@treasuredata/tdx 2026.8.4 → 2026.8.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 (264) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.d.ts.map +1 -1
  12. package/dist/commands/cas-segment-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js.map +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-campaign-pull-command.js +1 -1
  27. package/dist/commands/engage-campaign-push-command.js +1 -1
  28. package/dist/commands/engage-campaign-validate-command.js +1 -1
  29. package/dist/commands/engage-command.js +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.js +1 -1
  35. package/dist/commands/journey-validate-command.js +1 -1
  36. package/dist/commands/llm-command.js +1 -1
  37. package/dist/commands/mcp-command.js +1 -1
  38. package/dist/commands/p13n-command.js +1 -1
  39. package/dist/commands/parent-segment-command.js +1 -1
  40. package/dist/commands/policy-command.js +1 -1
  41. package/dist/commands/profile-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/schedule-command.js +1 -1
  45. package/dist/commands/segment-command.js +1 -1
  46. package/dist/commands/segment-create-command.js +1 -1
  47. package/dist/commands/segment-fields-command.js +1 -1
  48. package/dist/commands/segment-move-command.js +1 -1
  49. package/dist/commands/segment-pull-command.js +1 -1
  50. package/dist/commands/segment-push-command.js +1 -1
  51. package/dist/commands/segment-update-command.js +1 -1
  52. package/dist/commands/segment-use-command.js +1 -1
  53. package/dist/commands/segment-validate-command.js +1 -1
  54. package/dist/commands/segments.js +1 -1
  55. package/dist/commands/show.js +1 -1
  56. package/dist/commands/status-command.js +1 -1
  57. package/dist/commands/table-deleted.js +1 -1
  58. package/dist/commands/tables.js +1 -1
  59. package/dist/commands/unset-command.js +1 -1
  60. package/dist/commands/upgrade-command.js +1 -1
  61. package/dist/commands/use-command.js +1 -1
  62. package/dist/commands/user-command.js +1 -1
  63. package/dist/commands/work-command.js +1 -1
  64. package/dist/commands/workflow-command.js +1 -1
  65. package/dist/core/auth.js +1 -1
  66. package/dist/core/command-output.js +1 -1
  67. package/dist/core/config.js +1 -1
  68. package/dist/core/connection-cache.js +1 -1
  69. package/dist/core/constants.js +1 -1
  70. package/dist/core/credential-cache.js +1 -1
  71. package/dist/core/global-context.js +1 -1
  72. package/dist/core/keychain.js +1 -1
  73. package/dist/core/oauth-keychain.js +1 -1
  74. package/dist/core/oauth.js +1 -1
  75. package/dist/core/profile.js +1 -1
  76. package/dist/core/project-config.js +1 -1
  77. package/dist/core/session.js +1 -1
  78. package/dist/core/site-mismatch.js +1 -1
  79. package/dist/core/user-cache.js +1 -1
  80. package/dist/core/version.js +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/mcp/server.js +1 -1
  83. package/dist/mcp/tools/index.js +1 -1
  84. package/dist/mcp/tools/tdx-run.js +1 -1
  85. package/dist/mcp/tools/tdx-search.js +1 -1
  86. package/dist/mcp/tools/work-create-item.js +1 -1
  87. package/dist/mcp/utils.js +1 -1
  88. package/dist/proxy/claude-usage-tracker.js +1 -1
  89. package/dist/proxy/passthrough-server.js +1 -1
  90. package/dist/proxy/sse-usage-parser.js +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  93. package/dist/sdk/agent/agent-yaml.js +1 -1
  94. package/dist/sdk/agent/test/evaluator.js +1 -1
  95. package/dist/sdk/agent/test/executor.js +1 -1
  96. package/dist/sdk/agent/test/index.js +1 -1
  97. package/dist/sdk/agent/test/output.js +1 -1
  98. package/dist/sdk/agent/test/parser.js +1 -1
  99. package/dist/sdk/agent/tool-target-registry.js +1 -1
  100. package/dist/sdk/api.js +1 -1
  101. package/dist/sdk/auth-token.js +1 -1
  102. package/dist/sdk/cas/cas-api-client.js +1 -1
  103. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  104. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  105. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  106. package/dist/sdk/cas/cas-segment-schema.d.ts +63 -0
  107. package/dist/sdk/cas/cas-segment-schema.d.ts.map +1 -0
  108. package/dist/sdk/cas/cas-segment-schema.js +1 -0
  109. package/dist/sdk/cas/cas-segment-schema.js.map +1 -0
  110. package/dist/sdk/cas/cas-segment-validator.d.ts +76 -0
  111. package/dist/sdk/cas/cas-segment-validator.d.ts.map +1 -0
  112. package/dist/sdk/cas/cas-segment-validator.js +1 -0
  113. package/dist/sdk/cas/cas-segment-validator.js.map +1 -0
  114. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  115. package/dist/sdk/cas/index.js +1 -1
  116. package/dist/sdk/cas/pull-workflow.js +1 -1
  117. package/dist/sdk/cas/push-workflow.js +1 -1
  118. package/dist/sdk/cas/validate-files.d.ts +23 -6
  119. package/dist/sdk/cas/validate-files.d.ts.map +1 -1
  120. package/dist/sdk/cas/validate-files.js +1 -1
  121. package/dist/sdk/cas/validate-files.js.map +1 -1
  122. package/dist/sdk/client/cdp-api-client.js +1 -1
  123. package/dist/sdk/client/delivery-api-client.js +1 -1
  124. package/dist/sdk/client/endpoints.js +1 -1
  125. package/dist/sdk/client/engage-api-client.js +1 -1
  126. package/dist/sdk/client/http-client.js +1 -1
  127. package/dist/sdk/client/llm-api-client.js +1 -1
  128. package/dist/sdk/client/oauth-refresh.js +1 -1
  129. package/dist/sdk/client/p13n-studio-api-client.js +1 -1
  130. package/dist/sdk/client/rate-limiter.js +1 -1
  131. package/dist/sdk/client/td-api-client.js +1 -1
  132. package/dist/sdk/client/trino-api-client.js +1 -1
  133. package/dist/sdk/client/workflow-client.js +1 -1
  134. package/dist/sdk/connection-validator.js +1 -1
  135. package/dist/sdk/connection.js +1 -1
  136. package/dist/sdk/delivery.js +1 -1
  137. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  138. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  139. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  140. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  141. package/dist/sdk/engage/campaign-pull.js +1 -1
  142. package/dist/sdk/engage/campaign-push.js +1 -1
  143. package/dist/sdk/engage/campaign-validator.js +1 -1
  144. package/dist/sdk/engage/campaign-yaml.js +1 -1
  145. package/dist/sdk/engage/template-pull.js +1 -1
  146. package/dist/sdk/engage/template-push.js +1 -1
  147. package/dist/sdk/engage/template-validator.js +1 -1
  148. package/dist/sdk/engage/template-yaml.js +1 -1
  149. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  150. package/dist/sdk/engage/types/campaign-def.js +1 -1
  151. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  152. package/dist/sdk/engage/types/template-schema.js +1 -1
  153. package/dist/sdk/engage.js +1 -1
  154. package/dist/sdk/errors.js +1 -1
  155. package/dist/sdk/index.js +1 -1
  156. package/dist/sdk/io/index.js +1 -1
  157. package/dist/sdk/io/node-filesystem.js +1 -1
  158. package/dist/sdk/job.js +1 -1
  159. package/dist/sdk/journey.js +1 -1
  160. package/dist/sdk/llm/chat-cache.js +1 -1
  161. package/dist/sdk/llm/index.js +1 -1
  162. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  163. package/dist/sdk/llm/model-factors.js +1 -1
  164. package/dist/sdk/llm/user-settings.js +1 -1
  165. package/dist/sdk/p13n-studio.js +1 -1
  166. package/dist/sdk/personalization.js +1 -1
  167. package/dist/sdk/policy.js +1 -1
  168. package/dist/sdk/query/deleted-table-validation.js +1 -1
  169. package/dist/sdk/query/index.js +1 -1
  170. package/dist/sdk/query/sql-parser.js +1 -1
  171. package/dist/sdk/realtime.js +1 -1
  172. package/dist/sdk/schedule.js +1 -1
  173. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  174. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  175. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  176. package/dist/sdk/segment/fields-display.js +1 -1
  177. package/dist/sdk/segment/file-discovery.js +1 -1
  178. package/dist/sdk/segment/journey-utils.js +1 -1
  179. package/dist/sdk/segment/journey-validator.js +1 -1
  180. package/dist/sdk/segment/journey-yaml.js +1 -1
  181. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  182. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  183. package/dist/sdk/segment/pull-workflow.js +1 -1
  184. package/dist/sdk/segment/push-recovery.js +1 -1
  185. package/dist/sdk/segment/push-workflow.js +1 -1
  186. package/dist/sdk/segment/resolution-context.js +1 -1
  187. package/dist/sdk/segment/segment-path-parser.js +1 -1
  188. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  189. package/dist/sdk/segment/segment-validator.js +1 -1
  190. package/dist/sdk/segment/target-resolution.js +1 -1
  191. package/dist/sdk/segment/tdx-config.js +1 -1
  192. package/dist/sdk/segment/types/activation-schema.js +1 -1
  193. package/dist/sdk/segment/types/journey-def.js +1 -1
  194. package/dist/sdk/segment/types/journey-schema.js +1 -1
  195. package/dist/sdk/segment/types/segment-def.js +1 -1
  196. package/dist/sdk/segment/types/segment-schema.d.ts.map +1 -1
  197. package/dist/sdk/segment/types/segment-schema.js +1 -1
  198. package/dist/sdk/segment/types/segment-schema.js.map +1 -1
  199. package/dist/sdk/segment/validate-files.js +1 -1
  200. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  201. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  202. package/dist/sdk/segment/yaml-validator.js +1 -1
  203. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  204. package/dist/sdk/segment.js +1 -1
  205. package/dist/sdk/types/index.js +1 -1
  206. package/dist/sdk/types/progress.js +1 -1
  207. package/dist/sdk/types/workspace.js +1 -1
  208. package/dist/sdk/user.js +1 -1
  209. package/dist/sdk/util/format-detector.js +1 -1
  210. package/dist/sdk/util/formatters.js +1 -1
  211. package/dist/sdk/util/index.js +1 -1
  212. package/dist/sdk/util/paginate.js +1 -1
  213. package/dist/sdk/util/tree-formatter.js +1 -1
  214. package/dist/sdk/util/tree-search.js +1 -1
  215. package/dist/sdk/workflow/archive-validation.js +1 -1
  216. package/dist/sdk/workflow/clone-workflow.js +1 -1
  217. package/dist/sdk/workflow/index.js +1 -1
  218. package/dist/sdk/workflow/pull-workflow.js +1 -1
  219. package/dist/sdk/workflow/push-workflow.js +1 -1
  220. package/dist/sdk/workflow/task-graph.js +1 -1
  221. package/dist/sdk/workflow/tdx-config.js +1 -1
  222. package/dist/sdk/workflow/workflow-utils.js +1 -1
  223. package/dist/sdk/workspace/access-tracker.js +1 -1
  224. package/dist/sdk/workspace/frontmatter.js +1 -1
  225. package/dist/sdk/workspace/git.js +1 -1
  226. package/dist/sdk/workspace/index.js +1 -1
  227. package/dist/sdk/workspace/templates.js +1 -1
  228. package/dist/sdk/workspace/weekly.js +1 -1
  229. package/dist/sdk/workspace/wikilinks.js +1 -1
  230. package/dist/test-utils/command-runner.js +1 -1
  231. package/dist/test-utils/factories.js +1 -1
  232. package/dist/test-utils/fixtures.js +1 -1
  233. package/dist/test-utils/http-mock.js +1 -1
  234. package/dist/test-utils/index.js +1 -1
  235. package/dist/utils/async.js +1 -1
  236. package/dist/utils/claude-code-state.js +1 -1
  237. package/dist/utils/colors.js +1 -1
  238. package/dist/utils/diff.js +1 -1
  239. package/dist/utils/file-permissions.js +1 -1
  240. package/dist/utils/file-reader.js +1 -1
  241. package/dist/utils/github-releases.js +1 -1
  242. package/dist/utils/global-cache.js +1 -1
  243. package/dist/utils/json-loader.js +1 -1
  244. package/dist/utils/local-cache.js +1 -1
  245. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  246. package/dist/utils/logger/formatters/index.js +1 -1
  247. package/dist/utils/logger/handlers/console-handler.js +1 -1
  248. package/dist/utils/logger/handlers/file-handler.js +1 -1
  249. package/dist/utils/logger/handlers/index.js +1 -1
  250. package/dist/utils/logger/handlers/null-handler.js +1 -1
  251. package/dist/utils/logger/index.js +1 -1
  252. package/dist/utils/logger/logger.js +1 -1
  253. package/dist/utils/logger/types.js +1 -1
  254. package/dist/utils/option-validation.js +1 -1
  255. package/dist/utils/process.js +1 -1
  256. package/dist/utils/prompt.js +1 -1
  257. package/dist/utils/proxy-fetch.js +1 -1
  258. package/dist/utils/spinner.js +1 -1
  259. package/dist/utils/sse-parser.js +1 -1
  260. package/dist/utils/string-utils.js +1 -1
  261. package/dist/utils/table-ref-parser.js +1 -1
  262. package/dist/utils/tdx-logger.js +1 -1
  263. package/dist/utils/version-check.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- const a227_0x148e55=a227_0x329d;(function(_0x1f807d,_0x2a2c5){const _0xb223ce=a227_0x329d,_0x4bab71=_0x1f807d();while(!![]){try{const _0x5352ab=-parseInt(_0xb223ce(0x16f))/0x1+parseInt(_0xb223ce(0x170))/0x2+-parseInt(_0xb223ce(0x16b))/0x3+parseInt(_0xb223ce(0x16e))/0x4+-parseInt(_0xb223ce(0x171))/0x5+-parseInt(_0xb223ce(0x16a))/0x6*(parseInt(_0xb223ce(0x15c))/0x7)+parseInt(_0xb223ce(0x165))/0x8*(parseInt(_0xb223ce(0x169))/0x9);if(_0x5352ab===_0x2a2c5)break;else _0x4bab71['push'](_0x4bab71['shift']());}catch(_0x1a8652){_0x4bab71['push'](_0x4bab71['shift']());}}}(a227_0x1d7b,0xf170e));function a227_0x329d(_0x4e15db,_0x433a41){_0x4e15db=_0x4e15db-0x158;const _0x1d7bdd=a227_0x1d7b();let _0x329dfa=_0x1d7bdd[_0x4e15db];return _0x329dfa;}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a227_0x1d7b(){const _0x4d5d8a=['join','warn','createFetch','originalFetch','reset','runSequence','8VHhIAC','test-api-key-id/test-api-key-secret','setup','teardown','12667797VJOFoZ','4962jlwbuZ','319944VXodKI','map','push','6765084nMVGEa','754672HEZmIp','610012EAslGR','3988350DKUryc','run','fetch','exitCode','fail','us01','options','args','http','6398xdZBwd','log','error'];a227_0x1d7b=function(){return _0x4d5d8a;};return a227_0x1d7b();}export class CommandRunner{[a227_0x148e55(0x15b)];['originalFetch'];constructor(){const _0x269e3b=a227_0x148e55;this['http']=createHTTPMock(),this[_0x269e3b(0x162)]=global['fetch'];}[a227_0x148e55(0x167)](){const _0x2f697f=a227_0x148e55;this[_0x2f697f(0x162)]=global[_0x2f697f(0x173)],global[_0x2f697f(0x173)]=this[_0x2f697f(0x15b)][_0x2f697f(0x161)]();}[a227_0x148e55(0x168)](_0x4196e7){const _0x38a165=a227_0x148e55;try{_0x4196e7?.[_0x38a165(0x175)]&&this['http']['verify'](_0x4196e7);}finally{global[_0x38a165(0x173)]=this[_0x38a165(0x162)],this['http'][_0x38a165(0x163)]();}}async[a227_0x148e55(0x172)](_0x251492,_0x87a1d={}){const _0x33c760=a227_0x148e55,_0x198fa1=[],_0x452194=[],_0x1f249f=console['log'],_0x41d0b6=console[_0x33c760(0x15e)],_0x431cf2=console['warn'];console[_0x33c760(0x15d)]=(..._0x3459ab)=>{const _0x20460c=_0x33c760;_0x198fa1[_0x20460c(0x16d)](_0x3459ab[_0x20460c(0x16c)](String)[_0x20460c(0x15f)]('\x20'));},console['error']=(..._0xc737b3)=>{const _0x56b424=_0x33c760;_0x452194[_0x56b424(0x16d)](_0xc737b3[_0x56b424(0x16c)](String)[_0x56b424(0x15f)]('\x20'));},console[_0x33c760(0x160)]=(..._0x248caa)=>{const _0x1b5352=_0x33c760;_0x452194[_0x1b5352(0x16d)](_0x248caa[_0x1b5352(0x16c)](String)[_0x1b5352(0x15f)]('\x20'));};try{const _0x1107f1=new TDX({'site':_0x87a1d[_0x33c760(0x159)]?.['site']??_0x33c760(0x158),'apiKey':_0x33c760(0x166),'logLevel':LogLevel['ERROR']}),_0x48e8ef={'options':createTestGlobalOptions(_0x87a1d[_0x33c760(0x159)]),'args':_0x87a1d[_0x33c760(0x15a)]??[],'tdx':_0x1107f1},_0x218782=new _0x251492(),_0x382a10=await _0x218782[_0x33c760(0x172)](_0x48e8ef);return{'exitCode':_0x382a10,'stdout':_0x198fa1,'stderr':_0x452194};}finally{console[_0x33c760(0x15d)]=_0x1f249f,console[_0x33c760(0x15e)]=_0x41d0b6,console[_0x33c760(0x160)]=_0x431cf2;}}async[a227_0x148e55(0x164)](_0x1556f6){const _0x3a3c58=a227_0x148e55,_0x1c0223=[];for(const {command:_0x382eae,options:_0x56c560}of _0x1556f6){const _0x50deea=await this[_0x3a3c58(0x172)](_0x382eae,_0x56c560);_0x1c0223[_0x3a3c58(0x16d)](_0x50deea);if(_0x50deea[_0x3a3c58(0x174)]!==0x0)break;}return _0x1c0223;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a229_0x3c2e02=a229_0x30cd;(function(_0x28c8c5,_0x2cb908){const _0x629f81=a229_0x30cd,_0x1e78b3=_0x28c8c5();while(!![]){try{const _0x355edc=parseInt(_0x629f81(0x1cd))/0x1*(-parseInt(_0x629f81(0x1e2))/0x2)+parseInt(_0x629f81(0x1e1))/0x3+parseInt(_0x629f81(0x1cc))/0x4*(-parseInt(_0x629f81(0x1db))/0x5)+parseInt(_0x629f81(0x1da))/0x6+-parseInt(_0x629f81(0x1d6))/0x7+parseInt(_0x629f81(0x1cb))/0x8*(-parseInt(_0x629f81(0x1d9))/0x9)+parseInt(_0x629f81(0x1d1))/0xa;if(_0x355edc===_0x2cb908)break;else _0x1e78b3['push'](_0x1e78b3['shift']());}catch(_0x7ca36b){_0x1e78b3['push'](_0x1e78b3['shift']());}}}(a229_0x80f5,0xf12de));function a229_0x80f5(){const _0x5d6543=['2639745TxhjNO','1126796ajVPgy','fetch','map','join','createFetch','13328AzPTSJ','1897724jQQJov','3WaUnFK','http','error','run','21543710zVZurj','log','us01','exitCode','setup','1507191nDLDqN','warn','push','2664kXsyAL','10653120yePBsS','15GxGWZL','ERROR','verify','originalFetch','fail','site'];a229_0x80f5=function(){return _0x5d6543;};return a229_0x80f5();}import{TDX,LogLevel}from'../sdk/index.js';function a229_0x30cd(_0x131796,_0x27cc59){_0x131796=_0x131796-0x1ca;const _0x80f516=a229_0x80f5();let _0x30cd6a=_0x80f516[_0x131796];return _0x30cd6a;}import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a229_0x3c2e02(0x1ce)];[a229_0x3c2e02(0x1de)];constructor(){const _0xbef9da=a229_0x3c2e02;this[_0xbef9da(0x1ce)]=createHTTPMock(),this[_0xbef9da(0x1de)]=global[_0xbef9da(0x1e3)];}[a229_0x3c2e02(0x1d5)](){const _0x1264ed=a229_0x3c2e02;this[_0x1264ed(0x1de)]=global[_0x1264ed(0x1e3)],global['fetch']=this['http'][_0x1264ed(0x1ca)]();}['teardown'](_0x52161b){const _0x2302e4=a229_0x3c2e02;try{_0x52161b?.[_0x2302e4(0x1df)]&&this[_0x2302e4(0x1ce)][_0x2302e4(0x1dd)](_0x52161b);}finally{global[_0x2302e4(0x1e3)]=this[_0x2302e4(0x1de)],this['http']['reset']();}}async['run'](_0x3c38e5,_0x3d45ee={}){const _0x27477c=a229_0x3c2e02,_0x325f17=[],_0x15ef21=[],_0x30af7f=console['log'],_0x4beb44=console[_0x27477c(0x1cf)],_0x17d960=console[_0x27477c(0x1d7)];console[_0x27477c(0x1d2)]=(..._0x148772)=>{const _0x275312=_0x27477c;_0x325f17['push'](_0x148772['map'](String)[_0x275312(0x1e5)]('\x20'));},console['error']=(..._0xd887e9)=>{const _0x5813a2=_0x27477c;_0x15ef21[_0x5813a2(0x1d8)](_0xd887e9['map'](String)[_0x5813a2(0x1e5)]('\x20'));},console['warn']=(..._0x194fdd)=>{const _0x3bc030=_0x27477c;_0x15ef21[_0x3bc030(0x1d8)](_0x194fdd[_0x3bc030(0x1e4)](String)[_0x3bc030(0x1e5)]('\x20'));};try{const _0x267200=new TDX({'site':_0x3d45ee['options']?.[_0x27477c(0x1e0)]??_0x27477c(0x1d3),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x27477c(0x1dc)]}),_0x3f2ca1={'options':createTestGlobalOptions(_0x3d45ee['options']),'args':_0x3d45ee['args']??[],'tdx':_0x267200},_0x1a099f=new _0x3c38e5(),_0x30db08=await _0x1a099f[_0x27477c(0x1d0)](_0x3f2ca1);return{'exitCode':_0x30db08,'stdout':_0x325f17,'stderr':_0x15ef21};}finally{console[_0x27477c(0x1d2)]=_0x30af7f,console[_0x27477c(0x1cf)]=_0x4beb44,console[_0x27477c(0x1d7)]=_0x17d960;}}async['runSequence'](_0x427818){const _0x26137c=a229_0x3c2e02,_0x2f05cf=[];for(const {command:_0x22fc70,options:_0x162418}of _0x427818){const _0x62e5b0=await this[_0x26137c(0x1d0)](_0x22fc70,_0x162418);_0x2f05cf[_0x26137c(0x1d8)](_0x62e5b0);if(_0x62e5b0[_0x26137c(0x1d4)]!==0x0)break;}return _0x2f05cf;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x3ed55b,_0x20c943){const _0x57ca11=a228_0x43a8,_0x2ac6ad=_0x3ed55b();while(!![]){try{const _0x4a9372=-parseInt(_0x57ca11(0x166))/0x1*(-parseInt(_0x57ca11(0x15e))/0x2)+parseInt(_0x57ca11(0x144))/0x3*(-parseInt(_0x57ca11(0x15b))/0x4)+-parseInt(_0x57ca11(0x148))/0x5*(parseInt(_0x57ca11(0x146))/0x6)+-parseInt(_0x57ca11(0x14a))/0x7*(parseInt(_0x57ca11(0x147))/0x8)+-parseInt(_0x57ca11(0x164))/0x9*(-parseInt(_0x57ca11(0x143))/0xa)+-parseInt(_0x57ca11(0x15c))/0xb+-parseInt(_0x57ca11(0x152))/0xc*(-parseInt(_0x57ca11(0x157))/0xd);if(_0x4a9372===_0x20c943)break;else _0x2ac6ad['push'](_0x2ac6ad['shift']());}catch(_0x33b736){_0x2ac6ad['push'](_0x2ac6ad['shift']());}}}(a228_0x29f2,0xa2840));import{vi}from'vitest';import a228_0x1d4b13 from'fs';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';function a228_0x43a8(_0x5f052b,_0x382843){_0x5f052b=_0x5f052b-0x142;const _0x29f240=a228_0x29f2();let _0x43a80d=_0x29f240[_0x5f052b];return _0x43a80d;}export function createTestSDKContext(_0x343b4a){const _0x53548c=a228_0x43a8;return{'site':_0x53548c(0x159),'apiKey':_0x53548c(0x150),'logLevel':LogLevel['ERROR'],..._0x343b4a};}export function createTestGlobalOptions(_0x1abe33){const _0x4c0fcb=a228_0x43a8;return{'site':_0x4c0fcb(0x159),'format':_0x4c0fcb(0x145),'noColor':!![],'limit':0x64,'verbose':![],'timeout':'30000','dryRun':![],'yes':![],'logLevel':LogLevel[_0x4c0fcb(0x14f)],..._0x1abe33};}function a228_0x29f2(){const _0x49d638=['559669OAUJLM','journey','2zyiZXO','tdx','segment','warn','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','log','1251ciGLQP','stringify','256537zIAATH','join','workflow','9470FetBHN','15303jyFNAb','table','2826rWKCMA','448016IhFScS','9585qoLnAl','map','21tATsPP','error','push','args','api','ERROR','test-api-key-id/test-api-key-secret','tdx-test.log','13231464ufwZBo','options','reset','user','test-api-key','26UejwCc','tdx.json','us01','query','632JxBEYV'];a228_0x29f2=function(){return _0x49d638;};return a228_0x29f2();}export async function initTestLogger(){const _0x2bfefd=a228_0x43a8;Logger['reset']();const _0x5be516=join(getGlobalCacheDir(),'logs',_0x2bfefd(0x151));await Logger['init']({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x5be516,'rotate':![]})]});}export function resetTestLogger(){const _0x375a39=a228_0x43a8;Logger[_0x375a39(0x154)]();}export function createMockTDX(_0x5734c6){const _0x13a011=a228_0x43a8;return{'context':{'site':_0x13a011(0x159),'apiKey':_0x13a011(0x156),'logLevel':LogLevel[_0x13a011(0x14f)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x5734c6?.[_0x13a011(0x15a)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5734c6?.[_0x13a011(0x160)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5734c6?.[_0x13a011(0x15d)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x5734c6?.[_0x13a011(0x142)]},'user':{'show':vi['fn'](),..._0x5734c6?.[_0x13a011(0x155)]},'api':{'request':vi['fn'](),..._0x5734c6?.[_0x13a011(0x14e)]},..._0x5734c6};}export function createTestCommandContext(_0x284a2e){const _0x334138=a228_0x43a8,_0x27a931=createTestGlobalOptions(_0x284a2e?.[_0x334138(0x153)]),_0x6f3c4b=_0x284a2e?.[_0x334138(0x15f)]??createMockTDX();return{'options':_0x27a931,'args':_0x284a2e?.[_0x334138(0x14d)]??[],'tdx':_0x6f3c4b};}export function captureConsole(){const _0x79f5a4=a228_0x43a8,_0x108b63=[],_0x396c68=[],_0x459dc3=console[_0x79f5a4(0x163)],_0x31cace=console[_0x79f5a4(0x14b)],_0x28925d=console[_0x79f5a4(0x161)];return console[_0x79f5a4(0x163)]=(..._0x537ed1)=>{const _0x5e6788=_0x79f5a4;_0x108b63[_0x5e6788(0x14c)](_0x537ed1[_0x5e6788(0x149)](String)[_0x5e6788(0x167)]('\x20'));},console[_0x79f5a4(0x14b)]=(..._0x1bcb97)=>{const _0x1970fd=_0x79f5a4;_0x396c68[_0x1970fd(0x14c)](_0x1bcb97[_0x1970fd(0x149)](String)['join']('\x20'));},console['warn']=(..._0x363c3d)=>{const _0x66514c=_0x79f5a4;_0x396c68[_0x66514c(0x14c)](_0x363c3d[_0x66514c(0x149)](String)[_0x66514c(0x167)]('\x20'));},{'stdout':_0x108b63,'stderr':_0x396c68,'restore':()=>{const _0x490bd8=_0x79f5a4;console[_0x490bd8(0x163)]=_0x459dc3,console[_0x490bd8(0x14b)]=_0x31cace,console['warn']=_0x28925d;}};}export function writeTestProfile(_0x502931,_0xeaf260){const _0x1df913=a228_0x43a8,_0x7dec57=process.env.TDX_CONFIG_DIR;if(!_0x7dec57)throw new Error(_0x1df913(0x162));a228_0x1d4b13['writeFileSync'](join(_0x7dec57,_0x1df913(0x158)),JSON[_0x1df913(0x165)]({'profiles':{[_0x502931]:_0xeaf260}},null,0x2));}
1
+ (function(_0x1e066d,_0x467582){const _0x56b7a3=a230_0x5e8b,_0x8d522b=_0x1e066d();while(!![]){try{const _0x20fa5c=parseInt(_0x56b7a3(0xcf))/0x1+-parseInt(_0x56b7a3(0xea))/0x2*(-parseInt(_0x56b7a3(0xd7))/0x3)+-parseInt(_0x56b7a3(0xe9))/0x4+parseInt(_0x56b7a3(0xd2))/0x5+parseInt(_0x56b7a3(0xee))/0x6+-parseInt(_0x56b7a3(0xdb))/0x7*(-parseInt(_0x56b7a3(0xe8))/0x8)+-parseInt(_0x56b7a3(0xe1))/0x9*(parseInt(_0x56b7a3(0xce))/0xa);if(_0x20fa5c===_0x467582)break;else _0x8d522b['push'](_0x8d522b['shift']());}catch(_0x4e840c){_0x8d522b['push'](_0x8d522b['shift']());}}}(a230_0x4fb1,0x7ee91));import{vi}from'vitest';import a230_0x17a606 from'fs';function a230_0x5e8b(_0x70474c,_0x547b4c){_0x70474c=_0x70474c-0xce;const _0x4fb16c=a230_0x4fb1();let _0x5e8bc8=_0x4fb16c[_0x70474c];return _0x5e8bc8;}import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x335d57){const _0x286d36=a230_0x5e8b;return{'site':_0x286d36(0xe7),'apiKey':_0x286d36(0xd0),'logLevel':LogLevel[_0x286d36(0xd9)],..._0x335d57};}function a230_0x4fb1(){const _0xfd72e7=['error','push','tdx.json','log','6883119UhnqnD','map','args','30000','logs','user','us01','5784KupSqZ','2172376YkPczK','80398DNsqyj','query','init','join','2581914mwSkkX','tdx','30wCleaQ','336186zXIjus','test-api-key-id/test-api-key-secret','workflow','4274295NXOnnA','writeTestProfile\x20requires\x20TDX_CONFIG_DIR\x20to\x20be\x20set','writeFileSync','segment','test-api-key','75NktIld','warn','ERROR','table','7077bZwCWB','api'];a230_0x4fb1=function(){return _0xfd72e7;};return a230_0x4fb1();}export function createTestGlobalOptions(_0x5dba70){const _0x4d653a=a230_0x5e8b;return{'site':_0x4d653a(0xe7),'format':_0x4d653a(0xda),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x4d653a(0xe4),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x4d653a(0xd9)],..._0x5dba70};}export async function initTestLogger(){const _0xffee0a=a230_0x5e8b;Logger['reset']();const _0x1b8c77=join(getGlobalCacheDir(),_0xffee0a(0xe5),'tdx-test.log');await Logger[_0xffee0a(0xec)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0x1b8c77,'rotate':![]})]});}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x5ade69){const _0x41deb9=a230_0x5e8b;return{'context':{'site':_0x41deb9(0xe7),'apiKey':_0x41deb9(0xd6),'logLevel':LogLevel[_0x41deb9(0xd9)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xeb)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xd5)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5ade69?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xd1)]},'user':{'show':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xe6)]},'api':{'request':vi['fn'](),..._0x5ade69?.[_0x41deb9(0xdc)]},..._0x5ade69};}export function createTestCommandContext(_0x170b8b){const _0x4bfb70=a230_0x5e8b,_0x4552bf=createTestGlobalOptions(_0x170b8b?.['options']),_0x5e0f96=_0x170b8b?.[_0x4bfb70(0xef)]??createMockTDX();return{'options':_0x4552bf,'args':_0x170b8b?.[_0x4bfb70(0xe3)]??[],'tdx':_0x5e0f96};}export function captureConsole(){const _0x1c4305=a230_0x5e8b,_0x5a8c70=[],_0x43aaba=[],_0x9819fd=console[_0x1c4305(0xe0)],_0x213a33=console['error'],_0x4cedc2=console[_0x1c4305(0xd8)];return console['log']=(..._0x881129)=>{const _0x4bb83c=_0x1c4305;_0x5a8c70[_0x4bb83c(0xde)](_0x881129[_0x4bb83c(0xe2)](String)[_0x4bb83c(0xed)]('\x20'));},console[_0x1c4305(0xdd)]=(..._0x5a6f93)=>{const _0x30bb88=_0x1c4305;_0x43aaba[_0x30bb88(0xde)](_0x5a6f93['map'](String)['join']('\x20'));},console[_0x1c4305(0xd8)]=(..._0x59d71d)=>{const _0x20b730=_0x1c4305;_0x43aaba[_0x20b730(0xde)](_0x59d71d[_0x20b730(0xe2)](String)['join']('\x20'));},{'stdout':_0x5a8c70,'stderr':_0x43aaba,'restore':()=>{const _0x2a6208=_0x1c4305;console[_0x2a6208(0xe0)]=_0x9819fd,console[_0x2a6208(0xdd)]=_0x213a33,console[_0x2a6208(0xd8)]=_0x4cedc2;}};}export function writeTestProfile(_0x287aef,_0x54f2a0){const _0x95cd63=a230_0x5e8b,_0x4a1c4c=process.env.TDX_CONFIG_DIR;if(!_0x4a1c4c)throw new Error(_0x95cd63(0xd3));a230_0x17a606[_0x95cd63(0xd4)](join(_0x4a1c4c,_0x95cd63(0xdf)),JSON['stringify']({'profiles':{[_0x287aef]:_0x54f2a0}},null,0x2));}
@@ -1 +1 @@
1
- function a229_0x2010(){const _0x22bba5=['unified_customers','test_db','Active\x20Users','ps-789012','events_db','activation','administrator','purchases','SELECT\x20COUNT(*)\x20FROM\x20events','table','Test\x20Parent\x20Segment','Greater','111280aIsQum','2024-01-15T10:00:00Z','user_id','j-abc123','2023-06-15T10:30:00Z','user-1','users','properties','Welcome\x20Journey','2024-01-01T00:00:00Z','error','2024-01-15T10:00:05Z','Admin\x20User','cs-111222','basic','completed','2024-01-15T09:00:00Z','TimeWithinPast','production_db','varchar','string','draft','Alice','5496180JCiJpV','cs-456789','30d','parentSegment','wf-67890','active','lifetime_value','event_id','cdp_db','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','371Mdbqvy','Parent\x20segment\x20with\x20behavioral\x20data','data_sync','created_at','2024-01-15T10:10:00Z','running','segment','abc123','email','3500940EGvZlK','2024-01-15T00:00:00Z','long','count','admin@example.com','https://api.treasuredata.com/errors/forbidden','632784ZhFBGw','event_type','High\x20Value\x20Active\x20Users','4852RNHIGk','Users\x20active\x20in\x20the\x20last\x2030\x20days','hourly_sync','last_login','2024-01-15T10:05:00Z','Onboarding\x20journey\x20for\x20new\x20users','j-def456','daily_etl','Customers\x20with\x20Behaviors','step-3','name','ps-123456','presto','events','Charlie','queryResult','33IlTqGb','Bob','0\x200\x20*\x20*\x20*','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','full_access','sess-111','Forbidden','success','timestamp','total','5cYfJJU','map<string,string>','attribute','def456','600417CaFRQB','customer_id','step-2','2023-01-01T00:00:00Z','wait','281DBAFch','SELECT\x20*\x20FROM\x20nonexistent_table','workflow','log','Resource\x20not\x20found','pageviews','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','bigint','user-2','stringify','act-123','2024-01-15T08:00:00Z','2024-01-15T10:10:01Z','customers','Invalid\x20API\x20key','step-1','1446000kgHpCp','Purchase\x20Reminder','job','page_views','end','UTC'];a229_0x2010=function(){return _0x22bba5;};return a229_0x2010();}const a229_0x399ff2=a229_0x4df1;(function(_0x4c4e7f,_0xe522ec){const _0x2eae54=a229_0x4df1,_0x1918b0=_0x4c4e7f();while(!![]){try{const _0x4aedb3=-parseInt(_0x2eae54(0xad))/0x1*(-parseInt(_0x2eae54(0x102))/0x2)+-parseInt(_0x2eae54(0xff))/0x3+-parseInt(_0x2eae54(0xbd))/0x4*(-parseInt(_0x2eae54(0xa4))/0x5)+parseInt(_0x2eae54(0xf9))/0x6+-parseInt(_0x2eae54(0xf0))/0x7*(-parseInt(_0x2eae54(0xcf))/0x8)+-parseInt(_0x2eae54(0xa8))/0x9+parseInt(_0x2eae54(0xe6))/0xa*(-parseInt(_0x2eae54(0x112))/0xb);if(_0x4aedb3===_0xe522ec)break;else _0x1918b0['push'](_0x1918b0['shift']());}catch(_0x4c112e){_0x1918b0['push'](_0x1918b0['shift']());}}}(a229_0x2010,0x6acb7));export const fixtures={'database':{'basic':{'name':a229_0x399ff2(0xc4),'count':0x5,'created_at':a229_0x399ff2(0xd8),'updated_at':'2024-01-01T00:00:00Z','permission':a229_0x399ff2(0xc9)},'withTables':{'name':a229_0x399ff2(0xe1),'count':0x64,'created_at':a229_0x399ff2(0xd3),'updated_at':a229_0x399ff2(0xb8),'permission':a229_0x399ff2(0x116)}},'table':{'basic':{'id':0x3039,'name':a229_0x399ff2(0xd5),'type':a229_0x399ff2(0xb0),'schema':JSON['stringify']([['id',a229_0x399ff2(0xe3)],['time',a229_0x399ff2(0xfb)],[a229_0x399ff2(0x10c),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a229_0x399ff2(0xd8)},'events':{'id':0x303a,'name':a229_0x399ff2(0x10f),'type':a229_0x399ff2(0xb0),'schema':JSON[a229_0x399ff2(0xb6)]([[a229_0x399ff2(0xed),a229_0x399ff2(0xe3)],['time',a229_0x399ff2(0xfb)],[a229_0x399ff2(0xd1),a229_0x399ff2(0xe3)],[a229_0x399ff2(0x100),a229_0x399ff2(0xe3)],[a229_0x399ff2(0xd6),a229_0x399ff2(0xa5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a229_0x399ff2(0x10d),'name':a229_0x399ff2(0xcd),'description':a229_0x399ff2(0xef),'status':a229_0x399ff2(0xeb),'master_table':{'database':a229_0x399ff2(0xee),'table':a229_0x399ff2(0xc3)},'attributes':[{'name':a229_0x399ff2(0xa9),'type':'string','key':!![]},{'name':a229_0x399ff2(0xf8),'type':a229_0x399ff2(0xe3)},{'name':a229_0x399ff2(0xf3),'type':a229_0x399ff2(0xa2)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a229_0x399ff2(0xfa)},'withBehaviors':{'id':a229_0x399ff2(0xc6),'name':a229_0x399ff2(0x10a),'description':a229_0x399ff2(0xf1),'status':a229_0x399ff2(0xeb),'master_table':{'database':a229_0x399ff2(0xee),'table':a229_0x399ff2(0xba)},'behaviors':[{'name':a229_0x399ff2(0xca),'table':{'database':'events_db','table':a229_0x399ff2(0xca)},'join_key':'customer_id'},{'name':a229_0x399ff2(0xc0),'table':{'database':a229_0x399ff2(0xc7),'table':a229_0x399ff2(0xb2)},'join_key':a229_0x399ff2(0xa9)}],'created_at':a229_0x399ff2(0xd8),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a229_0x399ff2(0xe7),'name':a229_0x399ff2(0xc5),'description':a229_0x399ff2(0x103),'parent_segment_id':a229_0x399ff2(0x10d),'status':'active','rules':[{'type':'attribute','field':a229_0x399ff2(0x105),'operator':a229_0x399ff2(0xe0),'value':a229_0x399ff2(0xe8)}],'count':0x1388,'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)},'withMultipleRules':{'id':a229_0x399ff2(0xdc),'name':a229_0x399ff2(0x101),'description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a229_0x399ff2(0x10d),'status':a229_0x399ff2(0xeb),'rules':[{'type':a229_0x399ff2(0xa6),'field':a229_0x399ff2(0x105),'operator':'TimeWithinPast','value':a229_0x399ff2(0xe8)},{'type':'attribute','field':a229_0x399ff2(0xec),'operator':a229_0x399ff2(0xce),'value':0x3e8}],'count':0x5dc,'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)}},'journey':{'basic':{'id':a229_0x399ff2(0xd2),'name':a229_0x399ff2(0xd7),'description':a229_0x399ff2(0x107),'status':a229_0x399ff2(0xe4),'version':0x1,'steps':[{'id':a229_0x399ff2(0xbc),'type':a229_0x399ff2(0xac),'duration':'1d'},{'id':'step-2','type':a229_0x399ff2(0xc8),'activation_id':a229_0x399ff2(0xb7)}],'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)},'withDecision':{'id':a229_0x399ff2(0x108),'name':a229_0x399ff2(0xbe),'description':'Journey\x20with\x20decision\x20point','status':a229_0x399ff2(0xeb),'version':0x2,'steps':[{'id':'step-1','type':'decision_point','segment_id':'cs-456789','yes_path':a229_0x399ff2(0xaa),'no_path':'step-3'},{'id':a229_0x399ff2(0xaa),'type':a229_0x399ff2(0xc8),'activation_id':'act-email'},{'id':a229_0x399ff2(0x10b),'type':a229_0x399ff2(0xc1)}],'created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a229_0x399ff2(0xe2)},{'name':a229_0x399ff2(0x10c),'type':'varchar'},{'name':a229_0x399ff2(0xfc),'type':a229_0x399ff2(0xb4)}],'data':[[a229_0x399ff2(0xd4),a229_0x399ff2(0xe5),0x64],[a229_0x399ff2(0xb5),a229_0x399ff2(0x113),0xc8],['user-3',a229_0x399ff2(0x110),0x96]]},'empty':{'schema':[{'name':'id','type':a229_0x399ff2(0xe2)},{'name':a229_0x399ff2(0x10c),'type':a229_0x399ff2(0xe2)}],'data':[]},'singleRow':{'schema':[{'name':a229_0x399ff2(0xa3),'type':a229_0x399ff2(0xb4)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a229_0x399ff2(0xd8),'updated_at':a229_0x399ff2(0xfa),'administrator':![]},'admin':{'id':0x1,'name':a229_0x399ff2(0xdb),'email':a229_0x399ff2(0xfd),'created_at':a229_0x399ff2(0xab),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a229_0x399ff2(0x10e),'database':a229_0x399ff2(0xc4),'status':a229_0x399ff2(0x119),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a229_0x399ff2(0xd0),'end_at':a229_0x399ff2(0xda),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a229_0x399ff2(0x10e),'database':a229_0x399ff2(0xc4),'status':a229_0x399ff2(0xf5),'query':a229_0x399ff2(0xcb),'start_at':a229_0x399ff2(0x106),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a229_0x399ff2(0x10e),'database':a229_0x399ff2(0xc4),'status':a229_0x399ff2(0xd9),'query':a229_0x399ff2(0xae),'start_at':a229_0x399ff2(0xf4),'end_at':a229_0x399ff2(0xb9),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':'wf-12345','name':a229_0x399ff2(0x109),'project':'data_pipeline','revision':a229_0x399ff2(0xf7),'timezone':a229_0x399ff2(0xc2),'schedule':{'cron':a229_0x399ff2(0x114)}},'withSessions':{'id':a229_0x399ff2(0xea),'name':a229_0x399ff2(0x104),'project':a229_0x399ff2(0xf2),'revision':a229_0x399ff2(0xa7),'timezone':'America/Los_Angeles','schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a229_0x399ff2(0x117),'status':a229_0x399ff2(0x119),'started_at':a229_0x399ff2(0xdf),'finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':a229_0x399ff2(0xbb),'message':a229_0x399ff2(0xbb),'severity':a229_0x399ff2(0xd9),'status_code':0x191}},'notFound':{'errors':{'error':a229_0x399ff2(0xb1),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a229_0x399ff2(0xd9),'status_code':0x194}},'rateLimited':{'detail':a229_0x399ff2(0x115)},'rfc9457':{'type':a229_0x399ff2(0xfe),'title':a229_0x399ff2(0x118),'status':0x193,'detail':a229_0x399ff2(0xb3),'instance':'/v3/database/list'}}};export function createDatabase(_0x5093c8){const _0x2f8d8c=a229_0x399ff2;return{...fixtures['database'][_0x2f8d8c(0xdd)],..._0x5093c8};}export function createTable(_0xde837d){const _0x572892=a229_0x399ff2;return{...fixtures[_0x572892(0xcc)][_0x572892(0xdd)],..._0xde837d};}export function createParentSegment(_0x11c5cf){const _0x3acdbb=a229_0x399ff2;return{...fixtures[_0x3acdbb(0xe9)][_0x3acdbb(0xdd)],..._0x11c5cf};}export function createSegment(_0x55f39a){const _0x27bf64=a229_0x399ff2;return{...fixtures[_0x27bf64(0xf6)][_0x27bf64(0xdd)],..._0x55f39a};}export function createJourney(_0x385f63){const _0x22b239=a229_0x399ff2;return{...fixtures['journey'][_0x22b239(0xdd)],..._0x385f63};}function a229_0x4df1(_0x5716cc,_0x1c69a5){_0x5716cc=_0x5716cc-0xa2;const _0x2010bc=a229_0x2010();let _0x4df134=_0x2010bc[_0x5716cc];return _0x4df134;}export function createQueryResult(_0x30551f){const _0x1966e5=a229_0x399ff2;return{...fixtures[_0x1966e5(0x111)][_0x1966e5(0xdd)],..._0x30551f};}export function createUser(_0x33e659){const _0x151ff1=a229_0x399ff2;return{...fixtures['user'][_0x151ff1(0xdd)],..._0x33e659};}export function createJob(_0x27067c){const _0x91423f=a229_0x399ff2;return{...fixtures[_0x91423f(0xbf)][_0x91423f(0xde)],..._0x27067c};}export function createWorkflow(_0x2bda2a){const _0x4cacd4=a229_0x399ff2;return{...fixtures[_0x4cacd4(0xaf)][_0x4cacd4(0xdd)],..._0x2bda2a};}
1
+ const a231_0x12663e=a231_0x354b;(function(_0x51682d,_0x5b9d0c){const _0x157f97=a231_0x354b,_0x2fae1f=_0x51682d();while(!![]){try{const _0x171c66=-parseInt(_0x157f97(0x16e))/0x1+-parseInt(_0x157f97(0x10d))/0x2*(-parseInt(_0x157f97(0x15e))/0x3)+-parseInt(_0x157f97(0x14b))/0x4*(-parseInt(_0x157f97(0x158))/0x5)+-parseInt(_0x157f97(0x13a))/0x6*(parseInt(_0x157f97(0x16b))/0x7)+parseInt(_0x157f97(0x155))/0x8+parseInt(_0x157f97(0x171))/0x9*(parseInt(_0x157f97(0x149))/0xa)+-parseInt(_0x157f97(0x109))/0xb*(parseInt(_0x157f97(0x11e))/0xc);if(_0x171c66===_0x5b9d0c)break;else _0x2fae1f['push'](_0x2fae1f['shift']());}catch(_0x300205){_0x2fae1f['push'](_0x2fae1f['shift']());}}}(a231_0x15fe,0x5c8e1));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-01T00:00:00Z','permission':a231_0x12663e(0x148)},'withTables':{'name':a231_0x12663e(0x10b),'count':0x64,'created_at':a231_0x12663e(0x126),'updated_at':a231_0x12663e(0x16a),'permission':a231_0x12663e(0x124)}},'table':{'basic':{'id':0x3039,'name':'users','type':a231_0x12663e(0x12a),'schema':JSON[a231_0x12663e(0x147)]([['id',a231_0x12663e(0x108)],[a231_0x12663e(0x170),a231_0x12663e(0x15c)],['name',a231_0x12663e(0x108)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x140)},'events':{'id':0x303a,'name':a231_0x12663e(0x150),'type':a231_0x12663e(0x12a),'schema':JSON['stringify']([['event_id',a231_0x12663e(0x108)],[a231_0x12663e(0x170),a231_0x12663e(0x15c)],['user_id',a231_0x12663e(0x108)],[a231_0x12663e(0x127),'string'],['properties',a231_0x12663e(0x145)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a231_0x12663e(0x122),'description':a231_0x12663e(0x118),'status':a231_0x12663e(0x132),'master_table':{'database':a231_0x12663e(0x11b),'table':'unified_customers'},'attributes':[{'name':a231_0x12663e(0x107),'type':a231_0x12663e(0x108),'key':!![]},{'name':'email','type':a231_0x12663e(0x108)},{'name':a231_0x12663e(0x138),'type':'timestamp'}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withBehaviors':{'id':a231_0x12663e(0x131),'name':a231_0x12663e(0x165),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a231_0x12663e(0x132),'master_table':{'database':a231_0x12663e(0x11b),'table':a231_0x12663e(0x105)},'behaviors':[{'name':a231_0x12663e(0x162),'table':{'database':a231_0x12663e(0x151),'table':a231_0x12663e(0x162)},'join_key':a231_0x12663e(0x107)},{'name':'page_views','table':{'database':a231_0x12663e(0x151),'table':a231_0x12663e(0x123)},'join_key':'customer_id'}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)}},'segment':{'basic':{'id':a231_0x12663e(0x104),'name':a231_0x12663e(0x135),'description':a231_0x12663e(0x11a),'parent_segment_id':a231_0x12663e(0x10f),'status':a231_0x12663e(0x132),'rules':[{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x141),'operator':a231_0x12663e(0x102),'value':a231_0x12663e(0x112)}],'count':0x1388,'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withMultipleRules':{'id':a231_0x12663e(0x125),'name':a231_0x12663e(0x115),'description':a231_0x12663e(0x164),'parent_segment_id':a231_0x12663e(0x10f),'status':a231_0x12663e(0x132),'rules':[{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x141),'operator':a231_0x12663e(0x102),'value':a231_0x12663e(0x112)},{'type':a231_0x12663e(0x169),'field':a231_0x12663e(0x119),'operator':a231_0x12663e(0x163),'value':0x3e8}],'count':0x5dc,'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a231_0x12663e(0x168),'name':a231_0x12663e(0x139),'description':a231_0x12663e(0x142),'status':a231_0x12663e(0x159),'version':0x1,'steps':[{'id':a231_0x12663e(0x15a),'type':'wait','duration':'1d'},{'id':a231_0x12663e(0x12f),'type':a231_0x12663e(0x15b),'activation_id':a231_0x12663e(0x113)}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)},'withDecision':{'id':a231_0x12663e(0x152),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a231_0x12663e(0x132),'version':0x2,'steps':[{'id':'step-1','type':a231_0x12663e(0x12e),'segment_id':a231_0x12663e(0x104),'yes_path':'step-2','no_path':'step-3'},{'id':a231_0x12663e(0x12f),'type':a231_0x12663e(0x15b),'activation_id':a231_0x12663e(0x137)},{'id':'step-3','type':a231_0x12663e(0x15d)}],'created_at':a231_0x12663e(0x140),'updated_at':a231_0x12663e(0x116)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a231_0x12663e(0x14c)},{'name':'name','type':'varchar'},{'name':a231_0x12663e(0x16c),'type':'bigint'}],'data':[[a231_0x12663e(0x111),a231_0x12663e(0x114),0x64],[a231_0x12663e(0x121),a231_0x12663e(0x13c),0xc8],[a231_0x12663e(0x154),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a231_0x12663e(0x172),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a231_0x12663e(0x117),'type':a231_0x12663e(0x13e)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a231_0x12663e(0x110),'email':a231_0x12663e(0x16d),'created_at':a231_0x12663e(0x140),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a231_0x12663e(0x136),'email':'admin@example.com','created_at':a231_0x12663e(0x161),'updated_at':a231_0x12663e(0x116),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a231_0x12663e(0x146),'database':a231_0x12663e(0x153),'status':a231_0x12663e(0x157),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a231_0x12663e(0x14f),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a231_0x12663e(0x146),'database':a231_0x12663e(0x153),'status':a231_0x12663e(0x11d),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a231_0x12663e(0x153),'status':a231_0x12663e(0x106),'query':a231_0x12663e(0x12c),'start_at':a231_0x12663e(0x120),'end_at':a231_0x12663e(0x12d),'duration':0x1,'result_size':null,'error':a231_0x12663e(0x167)}},'workflow':{'basic':{'id':a231_0x12663e(0x14a),'name':a231_0x12663e(0x143),'project':'data_pipeline','revision':a231_0x12663e(0x13f),'timezone':a231_0x12663e(0x14e),'schedule':{'cron':a231_0x12663e(0x10c)}},'withSessions':{'id':a231_0x12663e(0x144),'name':a231_0x12663e(0x130),'project':a231_0x12663e(0x166),'revision':a231_0x12663e(0x156),'timezone':a231_0x12663e(0x16f),'schedule':{'cron':a231_0x12663e(0x160)},'last_session':{'id':a231_0x12663e(0x11c),'status':a231_0x12663e(0x157),'started_at':'2024-01-15T09:00:00Z','finished_at':a231_0x12663e(0x11f)}}},'apiError':{'unauthorized':{'errors':{'error':a231_0x12663e(0x10a),'message':a231_0x12663e(0x10a),'severity':a231_0x12663e(0x106),'status_code':0x191}},'notFound':{'errors':{'error':a231_0x12663e(0x14d),'message':a231_0x12663e(0x100),'severity':a231_0x12663e(0x106),'status_code':0x194}},'rateLimited':{'detail':a231_0x12663e(0x12b)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a231_0x12663e(0x128),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a231_0x12663e(0x101)}}};export function createDatabase(_0x23e80d){const _0x750014=a231_0x12663e;return{...fixtures[_0x750014(0x15f)][_0x750014(0x13d)],..._0x23e80d};}export function createTable(_0x4f050d){const _0x1ac144=a231_0x12663e;return{...fixtures[_0x1ac144(0x10e)][_0x1ac144(0x13d)],..._0x4f050d};}export function createParentSegment(_0x1d6251){const _0x2da222=a231_0x12663e;return{...fixtures[_0x2da222(0x129)][_0x2da222(0x13d)],..._0x1d6251};}function a231_0x354b(_0x38879a,_0x32c2fe){_0x38879a=_0x38879a-0x100;const _0x15fe13=a231_0x15fe();let _0x354b87=_0x15fe13[_0x38879a];return _0x354b87;}export function createSegment(_0x4c1ae3){const _0x3a542d=a231_0x12663e;return{...fixtures['segment'][_0x3a542d(0x13d)],..._0x4c1ae3};}export function createJourney(_0x3e6ba6){return{...fixtures['journey']['basic'],..._0x3e6ba6};}export function createQueryResult(_0x3d7c83){const _0x115dc1=a231_0x12663e;return{...fixtures[_0x115dc1(0x13b)][_0x115dc1(0x13d)],..._0x3d7c83};}export function createUser(_0x392dfb){const _0x4161b8=a231_0x12663e;return{...fixtures[_0x4161b8(0x103)][_0x4161b8(0x13d)],..._0x392dfb};}function a231_0x15fe(){const _0x436824=['Alice','High\x20Value\x20Active\x20Users','2024-01-15T00:00:00Z','total','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','lifetime_value','Users\x20active\x20in\x20the\x20last\x2030\x20days','cdp_db','sess-111','running','84vSlTTs','2024-01-15T09:05:00Z','2024-01-15T10:10:00Z','user-2','Test\x20Parent\x20Segment','pageviews','full_access','cs-111222','2023-06-15T10:30:00Z','event_type','Forbidden','parentSegment','log','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','SELECT\x20*\x20FROM\x20nonexistent_table','2024-01-15T10:10:01Z','decision_point','step-2','hourly_sync','ps-789012','active','completed','job','Active\x20Users','Admin\x20User','act-email','created_at','Welcome\x20Journey','6FXmFnQ','queryResult','Bob','basic','bigint','abc123','2024-01-01T00:00:00Z','last_login','Onboarding\x20journey\x20for\x20new\x20users','daily_etl','wf-67890','map<string,string>','presto','stringify','administrator','490430VeLVqK','wf-12345','148OSMlri','varchar','Resource\x20not\x20found','UTC','2024-01-15T10:00:05Z','events','events_db','j-def456','test_db','user-3','3952752fBQNlD','def456','success','51915TEUvHH','draft','step-1','activation','long','end','3sARTaU','database','0\x20*\x20*\x20*\x20*','2023-01-01T00:00:00Z','purchases','Greater','Active\x20users\x20with\x20high\x20lifetime\x20value','Customers\x20with\x20Behaviors','data_sync','Table\x20does\x20not\x20exist:\x20nonexistent_table','j-abc123','attribute','2024-01-15T08:00:00Z','2487065kmnOEc','count','test@example.com','341893qXCxnJ','America/Los_Angeles','time','135mweFIo','name','The\x20requested\x20resource\x20does\x20not\x20exist','/v3/database/list','TimeWithinPast','user','cs-456789','customers','error','customer_id','string','1511477GtRGKa','Invalid\x20API\x20key','production_db','0\x200\x20*\x20*\x20*','848464sXTwLV','table','ps-123456','Test\x20User','user-1','30d','act-123'];a231_0x15fe=function(){return _0x436824;};return a231_0x15fe();}export function createJob(_0x1869bf){const _0x2bb4d2=a231_0x12663e;return{...fixtures[_0x2bb4d2(0x134)][_0x2bb4d2(0x133)],..._0x1869bf};}export function createWorkflow(_0x507aed){return{...fixtures['workflow']['basic'],..._0x507aed};}
@@ -1 +1 @@
1
- const a230_0xeca665=a230_0x306e;(function(_0x305ff0,_0x2b3acd){const _0x474fb6=a230_0x306e,_0x59d798=_0x305ff0();while(!![]){try{const _0x1b2628=parseInt(_0x474fb6(0x15e))/0x1+-parseInt(_0x474fb6(0x165))/0x2+-parseInt(_0x474fb6(0x17a))/0x3+parseInt(_0x474fb6(0x16d))/0x4+parseInt(_0x474fb6(0x154))/0x5*(-parseInt(_0x474fb6(0x162))/0x6)+parseInt(_0x474fb6(0x15b))/0x7*(parseInt(_0x474fb6(0x131))/0x8)+parseInt(_0x474fb6(0x126))/0x9*(parseInt(_0x474fb6(0x161))/0xa);if(_0x1b2628===_0x2b3acd)break;else _0x59d798['push'](_0x59d798['shift']());}catch(_0x419c39){_0x59d798['push'](_0x59d798['shift']());}}}(a230_0x2c60,0x21868));function a230_0x306e(_0x5a3d79,_0x5523e7){_0x5a3d79=_0x5a3d79-0x124;const _0x2c6062=a230_0x2c60();let _0x306e21=_0x2c6062[_0x5a3d79];return _0x306e21;}import{vi}from'vitest';function a230_0x2c60(){const _0xd4f40=['textResponse','Unmatched\x20stub','Conflict','body','matched','requests','reset','networkError','getMatchCount','isArray','createFetch','description','map','method','getStatusText','Unknown','matcher','join','Not\x20Found','responder','length','unnamed\x20stub','matchCount','jsonResponseWithHeaders','url','getLastRequest','parse','entries','mockImplementation','text/plain','slice','GET','forEach','5tOgwOg','No\x20stub\x20matched\x20request:\x20','jsonResponse','toLowerCase','Request\x20body:\x20','Created','application/json','98315jprBEO','Service\x20Unavailable','registerWithInspector','170023GXNpXl','function','Bad\x20Request','168110yjrQia','1110036Vdhkxj','Registered\x20stubs:\x0a','searchParams','434090NpyQZr','parseRequest','getRequests','wasCalled','filter','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','Unauthorized','simple','876908XNeVvs','stack','fetchMock','stubs','test','string','Bad\x20Gateway','withHost','rfc9457','push','errorResponse','stringify','headers','642567VVXKKE','register','\x20\x20(none)','toUpperCase','180ZtGhRW','every','REST','pathname','includes','Unprocessable\x20Entity','error','\x20registered\x20at:\x0a','td-api','Too\x20Many\x20Requests','https://api.treasuredata.com/errors/','16binJlM','host'];a230_0x2c60=function(){return _0xd4f40;};return a230_0x2c60();}export class HTTPMockRegistry{[a230_0xeca665(0x170)]=[];[a230_0xeca665(0x138)]=[];[a230_0xeca665(0x16f)]=null;[a230_0xeca665(0x128)](_0x1c7b06,_0x4dd21c){return _0xaa8c41=>{const _0x201dc9=a230_0x306e;if(_0xaa8c41[_0x201dc9(0x140)]['toUpperCase']()!==_0x1c7b06[_0x201dc9(0x125)]())return![];const _0x88e9b2=new URL(_0xaa8c41[_0x201dc9(0x14b)]);if(typeof _0x4dd21c===_0x201dc9(0x172))return _0x88e9b2[_0x201dc9(0x129)]===_0x4dd21c||_0x88e9b2[_0x201dc9(0x129)][_0x201dc9(0x12a)](_0x4dd21c);return _0x4dd21c['test'](_0x88e9b2['pathname']);};}['withQuery'](_0x118fdc,_0x4b98a2){return _0x299c82=>{const _0x373711=a230_0x306e;if(!_0x118fdc(_0x299c82))return![];const _0x11d580=new URL(_0x299c82[_0x373711(0x14b)]);return Object['entries'](_0x4b98a2)[_0x373711(0x127)](([_0x211538,_0x17983d])=>_0x11d580[_0x373711(0x164)]['get'](_0x211538)===_0x17983d);};}['withBody'](_0x3a08cd,_0x464c08){return _0x53e34a=>{const _0x58bcaf=a230_0x306e;if(!_0x3a08cd(_0x53e34a))return![];if(typeof _0x464c08===_0x58bcaf(0x15f))return _0x464c08(_0x53e34a['body']);return JSON[_0x58bcaf(0x178)](_0x53e34a[_0x58bcaf(0x136)])===JSON['stringify'](_0x464c08);};}[a230_0xeca665(0x174)](_0x356e34,_0x4cee56){return _0x4b82a2=>{const _0x10e390=a230_0x306e;if(!_0x356e34(_0x4b82a2))return![];const _0x397a64=new URL(_0x4b82a2[_0x10e390(0x14b)]);return _0x397a64[_0x10e390(0x132)]===_0x4cee56;};}[a230_0xeca665(0x17b)](_0x55ec69,_0x467bac,_0x126a2f){const _0x24aaaf=a230_0xeca665;this['stubs']['push']({'matcher':_0x55ec69,'responder':_0x467bac,'matched':![],'matchCount':0x0,'stack':new Error()[_0x24aaaf(0x16e)]??'','description':_0x126a2f?.[_0x24aaaf(0x13e)]});}[a230_0xeca665(0x15d)](_0xa782f3,_0x5c7cbb,_0x1f1a9d){const _0x5885e4=_0x54a3fd=>{const _0x113fdd=a230_0x306e;return _0x1f1a9d(_0x54a3fd[_0x113fdd(0x136)],_0x54a3fd),_0x5c7cbb(_0x54a3fd);};this['register'](_0xa782f3,_0x5885e4);}static[a230_0xeca665(0x156)](_0x240a5a,_0x263930=0xc8){const _0x45cf16=a230_0xeca665;return()=>new Response(JSON[_0x45cf16(0x178)](_0x240a5a),{'status':_0x263930,'headers':{'Content-Type':_0x45cf16(0x15a)}});}static[a230_0xeca665(0x177)](_0x1d74d8,_0x38072b,_0x980675=a230_0xeca665(0x16c)){return()=>{const _0x2cf11e=a230_0x306e;let _0x3e2045;switch(_0x980675){case _0x2cf11e(0x12e):_0x3e2045={'errors':{'error':_0x38072b,'message':_0x38072b,'severity':_0x2cf11e(0x12c),'status_code':_0x1d74d8}};break;case _0x2cf11e(0x175):_0x3e2045={'type':_0x2cf11e(0x130)+_0x1d74d8,'title':HTTPMockRegistry[_0x2cf11e(0x141)](_0x1d74d8),'status':_0x1d74d8,'detail':_0x38072b};break;default:_0x3e2045={'error':_0x38072b};}return new Response(JSON['stringify'](_0x3e2045),{'status':_0x1d74d8,'headers':{'Content-Type':_0x2cf11e(0x15a)}});};}static[a230_0xeca665(0x14a)](_0x6ba6f5,_0x4816b0,_0x337d98=0xc8){const _0x2a9fd4=a230_0xeca665;return()=>new Response(JSON[_0x2a9fd4(0x178)](_0x6ba6f5),{'status':_0x337d98,'headers':{'Content-Type':_0x2a9fd4(0x15a),..._0x4816b0}});}static[a230_0xeca665(0x133)](_0x4c9c6d,_0x57b597=0xc8){const _0x560f36=a230_0xeca665;return()=>new Response(_0x4c9c6d,{'status':_0x57b597,'headers':{'Content-Type':_0x560f36(0x150)}});}static[a230_0xeca665(0x13a)](_0x2920e6){return()=>{throw new Error(_0x2920e6);};}[a230_0xeca665(0x13d)](){const _0x3387f6=a230_0xeca665;return this[_0x3387f6(0x16f)]=vi['fn']()[_0x3387f6(0x14f)](async(_0x1c3041,_0x3542b6)=>{const _0x2e3089=_0x3387f6,_0x2af61f=this[_0x2e3089(0x166)](_0x1c3041,_0x3542b6);this['requests'][_0x2e3089(0x176)](_0x2af61f);for(const _0x345f8b of this[_0x2e3089(0x170)]){if(_0x345f8b[_0x2e3089(0x143)](_0x2af61f))return _0x345f8b['matched']=!![],_0x345f8b['matchCount']++,_0x345f8b[_0x2e3089(0x146)](_0x2af61f);}const _0x390c27=this['stubs'][_0x2e3089(0x13f)]((_0x4d3d35,_0x974b7c)=>'\x20\x20'+(_0x974b7c+0x1)+'.\x20'+(_0x4d3d35[_0x2e3089(0x13e)]??_0x2e3089(0x148)))['join']('\x0a');throw new Error(_0x2e3089(0x155)+_0x2af61f[_0x2e3089(0x140)]+'\x20'+_0x2af61f[_0x2e3089(0x14b)]+'\x0a'+(_0x2e3089(0x158)+JSON[_0x2e3089(0x178)](_0x2af61f[_0x2e3089(0x136)])+'\x0a')+(_0x2e3089(0x163)+(_0x390c27||_0x2e3089(0x124))));}),this[_0x3387f6(0x16f)];}[a230_0xeca665(0x166)](_0x3cfb7b,_0x20310d){const _0x3bf009=a230_0xeca665,_0x5cc0d6={};if(_0x20310d?.[_0x3bf009(0x179)]){if(_0x20310d[_0x3bf009(0x179)]instanceof Headers)_0x20310d[_0x3bf009(0x179)][_0x3bf009(0x153)]((_0x476273,_0x3c0f89)=>{const _0x89e501=_0x3bf009;_0x5cc0d6[_0x3c0f89[_0x89e501(0x157)]()]=_0x476273;});else{if(Array[_0x3bf009(0x13c)](_0x20310d[_0x3bf009(0x179)]))for(const [_0x1fa27e,_0xc757ec]of _0x20310d[_0x3bf009(0x179)]){_0x5cc0d6[_0x1fa27e[_0x3bf009(0x157)]()]=_0xc757ec;}else for(const [_0x2d5429,_0x34662a]of Object[_0x3bf009(0x14e)](_0x20310d[_0x3bf009(0x179)])){_0x34662a!==undefined&&(_0x5cc0d6[_0x2d5429[_0x3bf009(0x157)]()]=_0x34662a);}}}let _0x4063d7;if(_0x20310d?.['body'])try{_0x4063d7=JSON[_0x3bf009(0x14d)](_0x20310d[_0x3bf009(0x136)]);}catch{_0x4063d7=_0x20310d[_0x3bf009(0x136)];}return{'method':_0x20310d?.['method']??_0x3bf009(0x152),'url':_0x3cfb7b,'headers':_0x5cc0d6,'body':_0x4063d7};}['verify'](_0x46ce78){const _0x1d7e43=a230_0xeca665,_0x2c6472=this['stubs'][_0x1d7e43(0x169)](_0x5c6e5e=>!_0x5c6e5e[_0x1d7e43(0x137)]);if(_0x2c6472[_0x1d7e43(0x147)]>0x0){const _0x271fca=_0x2c6472[_0x1d7e43(0x13f)](_0xf4e49e=>{const _0x5c9543=_0x1d7e43,_0x590cde=_0xf4e49e['description']?'\x20('+_0xf4e49e['description']+')':'',_0x38793a=_0xf4e49e[_0x5c9543(0x16e)]['split']('\x0a')[_0x5c9543(0x151)](0x2,0x5)[_0x5c9543(0x144)]('\x0a');return _0x5c9543(0x134)+_0x590cde+_0x5c9543(0x12d)+_0x38793a;});_0x46ce78['fail'](_0x2c6472[_0x1d7e43(0x147)]+_0x1d7e43(0x16a)+_0x271fca[_0x1d7e43(0x144)]('\x0a\x0a'));}}[a230_0xeca665(0x167)](){return[...this['requests']];}[a230_0xeca665(0x14c)](){const _0x45f3c0=a230_0xeca665;return this[_0x45f3c0(0x138)][this[_0x45f3c0(0x138)][_0x45f3c0(0x147)]-0x1];}[a230_0xeca665(0x168)](_0x10f2ea,_0x321ea1){const _0x4efe32=a230_0xeca665;return this[_0x4efe32(0x138)]['some'](_0x7c6719=>{const _0x56b1ec=_0x4efe32;if(_0x7c6719['method'][_0x56b1ec(0x125)]()!==_0x10f2ea[_0x56b1ec(0x125)]())return![];if(typeof _0x321ea1===_0x56b1ec(0x172))return _0x7c6719[_0x56b1ec(0x14b)][_0x56b1ec(0x12a)](_0x321ea1);return _0x321ea1[_0x56b1ec(0x171)](_0x7c6719[_0x56b1ec(0x14b)]);});}[a230_0xeca665(0x13b)](_0x1a0bac){const _0x1174d4=a230_0xeca665;return this[_0x1174d4(0x170)][_0x1a0bac]?.[_0x1174d4(0x149)]??0x0;}[a230_0xeca665(0x139)](){const _0x4137b1=a230_0xeca665;this[_0x4137b1(0x170)]=[],this['requests']=[],this[_0x4137b1(0x16f)]=null;}static[a230_0xeca665(0x141)](_0xf4390f){const _0xd7a7fa=a230_0xeca665,_0xc291e4={0xc8:'OK',0xc9:_0xd7a7fa(0x159),0xcc:'No\x20Content',0x190:_0xd7a7fa(0x160),0x191:_0xd7a7fa(0x16b),0x193:'Forbidden',0x194:_0xd7a7fa(0x145),0x199:_0xd7a7fa(0x135),0x1a6:_0xd7a7fa(0x12b),0x1ad:_0xd7a7fa(0x12f),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0xd7a7fa(0x173),0x1f7:_0xd7a7fa(0x15c)};return _0xc291e4[_0xf4390f]??_0xd7a7fa(0x142);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a232_0x2e5256=a232_0x2eea;(function(_0xd1987d,_0x20d3b0){const _0x48c093=a232_0x2eea,_0x1b50d6=_0xd1987d();while(!![]){try{const _0x339050=parseInt(_0x48c093(0x1bb))/0x1+-parseInt(_0x48c093(0x191))/0x2+-parseInt(_0x48c093(0x1c3))/0x3*(-parseInt(_0x48c093(0x1dc))/0x4)+-parseInt(_0x48c093(0x18e))/0x5*(-parseInt(_0x48c093(0x1d6))/0x6)+parseInt(_0x48c093(0x1cf))/0x7*(parseInt(_0x48c093(0x1e1))/0x8)+parseInt(_0x48c093(0x1ab))/0x9*(-parseInt(_0x48c093(0x1ba))/0xa)+parseInt(_0x48c093(0x1d4))/0xb;if(_0x339050===_0x20d3b0)break;else _0x1b50d6['push'](_0x1b50d6['shift']());}catch(_0x332e46){_0x1b50d6['push'](_0x1b50d6['shift']());}}}(a232_0x1250,0x1b84e));function a232_0x1250(){const _0x3b94f9=['withBody','toLowerCase','12SrdOyA','toUpperCase','getStatusText','responder','mockImplementation','16SHtUKD','register','60370PMmSAr','withQuery','jsonResponse','249976GwwOdB','Forbidden','\x20registered\x20at:\x0a','fetchMock','GET','split','pathname','host','Created','error','entries','getRequests','simple','matched','reset','rfc9457','Not\x20Found','string','url','description','No\x20stub\x20matched\x20request:\x20','Bad\x20Request','text/plain','Request\x20body:\x20','requests','stubs','18EDcxMg','some','push','No\x20Content','createFetch','isArray','length','every','join','application/json','https://api.treasuredata.com/errors/','errorResponse','wasCalled','Too\x20Many\x20Requests','get','846050NDqOiE','133961oudJHx','Internal\x20Server\x20Error','filter','body','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','test','parse','map','2067uUTdEt','jsonResponseWithHeaders','method','matchCount','networkError','getLastRequest','headers','REST','Unprocessable\x20Entity','matcher','forEach','Registered\x20stubs:\x0a','252581mwHWji','Unknown','getMatchCount','includes','registerWithInspector','326546lDevNh','withHost','84MKxEOK','stringify','function','Bad\x20Gateway'];a232_0x1250=function(){return _0x3b94f9;};return a232_0x1250();}function a232_0x2eea(_0x266218,_0xffc68c){_0x266218=_0x266218-0x18d;const _0x1250a6=a232_0x1250();let _0x2eea76=_0x1250a6[_0x266218];return _0x2eea76;}import{vi}from'vitest';export class HTTPMockRegistry{[a232_0x2e5256(0x1aa)]=[];[a232_0x2e5256(0x1a9)]=[];[a232_0x2e5256(0x194)]=null;[a232_0x2e5256(0x1ca)](_0x21bbca,_0x2272fa){return _0x47cecd=>{const _0x1ca611=a232_0x2eea;if(_0x47cecd[_0x1ca611(0x1c5)]['toUpperCase']()!==_0x21bbca[_0x1ca611(0x1dd)]())return![];const _0x59e6a2=new URL(_0x47cecd['url']);if(typeof _0x2272fa===_0x1ca611(0x1a2))return _0x59e6a2[_0x1ca611(0x197)]===_0x2272fa||_0x59e6a2[_0x1ca611(0x197)][_0x1ca611(0x1d2)](_0x2272fa);return _0x2272fa[_0x1ca611(0x1c0)](_0x59e6a2['pathname']);};}[a232_0x2e5256(0x18f)](_0x354631,_0x72c0fb){return _0x44114b=>{const _0x2f598d=a232_0x2eea;if(!_0x354631(_0x44114b))return![];const _0xd7fcef=new URL(_0x44114b[_0x2f598d(0x1a3)]);return Object[_0x2f598d(0x19b)](_0x72c0fb)[_0x2f598d(0x1b2)](([_0x3ac93e,_0x3e960a])=>_0xd7fcef['searchParams'][_0x2f598d(0x1b9)](_0x3ac93e)===_0x3e960a);};}[a232_0x2e5256(0x1da)](_0x2300a3,_0x27e324){return _0x231170=>{const _0x438a04=a232_0x2eea;if(!_0x2300a3(_0x231170))return![];if(typeof _0x27e324===_0x438a04(0x1d8))return _0x27e324(_0x231170[_0x438a04(0x1be)]);return JSON['stringify'](_0x231170[_0x438a04(0x1be)])===JSON[_0x438a04(0x1d7)](_0x27e324);};}[a232_0x2e5256(0x1d5)](_0x21e867,_0x4fccfd){return _0x419b49=>{const _0x215973=a232_0x2eea;if(!_0x21e867(_0x419b49))return![];const _0x22e41d=new URL(_0x419b49[_0x215973(0x1a3)]);return _0x22e41d[_0x215973(0x198)]===_0x4fccfd;};}[a232_0x2e5256(0x18d)](_0x116202,_0x2c94be,_0x21bea7){const _0x5316ac=a232_0x2e5256;this[_0x5316ac(0x1aa)][_0x5316ac(0x1ad)]({'matcher':_0x116202,'responder':_0x2c94be,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x21bea7?.['description']});}[a232_0x2e5256(0x1d3)](_0x3a3ddb,_0x27ccc7,_0x32974f){const _0x3c1023=a232_0x2e5256,_0x21dff6=_0x5f1bf3=>{const _0x2c151e=a232_0x2eea;return _0x32974f(_0x5f1bf3[_0x2c151e(0x1be)],_0x5f1bf3),_0x27ccc7(_0x5f1bf3);};this[_0x3c1023(0x18d)](_0x3a3ddb,_0x21dff6);}static[a232_0x2e5256(0x190)](_0x2a4996,_0x1baa7f=0xc8){const _0x41f52c=a232_0x2e5256;return()=>new Response(JSON['stringify'](_0x2a4996),{'status':_0x1baa7f,'headers':{'Content-Type':_0x41f52c(0x1b4)}});}static[a232_0x2e5256(0x1b6)](_0x1a0e6b,_0x4ad0a5,_0x1a2194=a232_0x2e5256(0x19d)){return()=>{const _0x2ae612=a232_0x2eea;let _0x1e302a;switch(_0x1a2194){case'td-api':_0x1e302a={'errors':{'error':_0x4ad0a5,'message':_0x4ad0a5,'severity':_0x2ae612(0x19a),'status_code':_0x1a0e6b}};break;case _0x2ae612(0x1a0):_0x1e302a={'type':_0x2ae612(0x1b5)+_0x1a0e6b,'title':HTTPMockRegistry[_0x2ae612(0x1de)](_0x1a0e6b),'status':_0x1a0e6b,'detail':_0x4ad0a5};break;default:_0x1e302a={'error':_0x4ad0a5};}return new Response(JSON[_0x2ae612(0x1d7)](_0x1e302a),{'status':_0x1a0e6b,'headers':{'Content-Type':_0x2ae612(0x1b4)}});};}static[a232_0x2e5256(0x1c4)](_0x52d48a,_0x533372,_0x3b8a81=0xc8){const _0x1f4f33=a232_0x2e5256;return()=>new Response(JSON['stringify'](_0x52d48a),{'status':_0x3b8a81,'headers':{'Content-Type':_0x1f4f33(0x1b4),..._0x533372}});}static['textResponse'](_0x4bb7b7,_0x454d0b=0xc8){const _0x316009=a232_0x2e5256;return()=>new Response(_0x4bb7b7,{'status':_0x454d0b,'headers':{'Content-Type':_0x316009(0x1a7)}});}static[a232_0x2e5256(0x1c7)](_0x193cea){return()=>{throw new Error(_0x193cea);};}[a232_0x2e5256(0x1af)](){const _0x50692f=a232_0x2e5256;return this[_0x50692f(0x194)]=vi['fn']()[_0x50692f(0x1e0)](async(_0x5d950a,_0x299df9)=>{const _0x1c6e1a=_0x50692f,_0x99a0df=this['parseRequest'](_0x5d950a,_0x299df9);this[_0x1c6e1a(0x1a9)][_0x1c6e1a(0x1ad)](_0x99a0df);for(const _0x4ddb7e of this[_0x1c6e1a(0x1aa)]){if(_0x4ddb7e[_0x1c6e1a(0x1cc)](_0x99a0df))return _0x4ddb7e['matched']=!![],_0x4ddb7e['matchCount']++,_0x4ddb7e[_0x1c6e1a(0x1df)](_0x99a0df);}const _0x561d70=this[_0x1c6e1a(0x1aa)][_0x1c6e1a(0x1c2)]((_0x30890d,_0x462f87)=>'\x20\x20'+(_0x462f87+0x1)+'.\x20'+(_0x30890d['description']??'unnamed\x20stub'))[_0x1c6e1a(0x1b3)]('\x0a');throw new Error(_0x1c6e1a(0x1a5)+_0x99a0df[_0x1c6e1a(0x1c5)]+'\x20'+_0x99a0df[_0x1c6e1a(0x1a3)]+'\x0a'+(_0x1c6e1a(0x1a8)+JSON[_0x1c6e1a(0x1d7)](_0x99a0df[_0x1c6e1a(0x1be)])+'\x0a')+(_0x1c6e1a(0x1ce)+(_0x561d70||'\x20\x20(none)')));}),this[_0x50692f(0x194)];}['parseRequest'](_0x25e733,_0x220519){const _0x180bf5=a232_0x2e5256,_0x452d9e={};if(_0x220519?.[_0x180bf5(0x1c9)]){if(_0x220519[_0x180bf5(0x1c9)]instanceof Headers)_0x220519[_0x180bf5(0x1c9)][_0x180bf5(0x1cd)]((_0x4cf5e0,_0xc6718b)=>{const _0x32d370=_0x180bf5;_0x452d9e[_0xc6718b[_0x32d370(0x1db)]()]=_0x4cf5e0;});else{if(Array[_0x180bf5(0x1b0)](_0x220519[_0x180bf5(0x1c9)]))for(const [_0x1baef4,_0x38abd8]of _0x220519[_0x180bf5(0x1c9)]){_0x452d9e[_0x1baef4['toLowerCase']()]=_0x38abd8;}else for(const [_0x144f65,_0x394bda]of Object['entries'](_0x220519[_0x180bf5(0x1c9)])){_0x394bda!==undefined&&(_0x452d9e[_0x144f65[_0x180bf5(0x1db)]()]=_0x394bda);}}}let _0x50f5e4;if(_0x220519?.[_0x180bf5(0x1be)])try{_0x50f5e4=JSON[_0x180bf5(0x1c1)](_0x220519[_0x180bf5(0x1be)]);}catch{_0x50f5e4=_0x220519[_0x180bf5(0x1be)];}return{'method':_0x220519?.[_0x180bf5(0x1c5)]??_0x180bf5(0x195),'url':_0x25e733,'headers':_0x452d9e,'body':_0x50f5e4};}['verify'](_0x213744){const _0xf99a84=a232_0x2e5256,_0x7eb785=this['stubs'][_0xf99a84(0x1bd)](_0x498031=>!_0x498031[_0xf99a84(0x19e)]);if(_0x7eb785[_0xf99a84(0x1b1)]>0x0){const _0x4f03ef=_0x7eb785[_0xf99a84(0x1c2)](_0x384d99=>{const _0x37b60b=_0xf99a84,_0x51677b=_0x384d99[_0x37b60b(0x1a4)]?'\x20('+_0x384d99['description']+')':'',_0x3ac882=_0x384d99['stack'][_0x37b60b(0x196)]('\x0a')['slice'](0x2,0x5)[_0x37b60b(0x1b3)]('\x0a');return'Unmatched\x20stub'+_0x51677b+_0x37b60b(0x193)+_0x3ac882;});_0x213744['fail'](_0x7eb785[_0xf99a84(0x1b1)]+_0xf99a84(0x1bf)+_0x4f03ef['join']('\x0a\x0a'));}}[a232_0x2e5256(0x19c)](){const _0x1dd922=a232_0x2e5256;return[...this[_0x1dd922(0x1a9)]];}[a232_0x2e5256(0x1c8)](){const _0x25c74a=a232_0x2e5256;return this[_0x25c74a(0x1a9)][this[_0x25c74a(0x1a9)][_0x25c74a(0x1b1)]-0x1];}[a232_0x2e5256(0x1b7)](_0x31db09,_0x3a25ef){const _0x419f3f=a232_0x2e5256;return this[_0x419f3f(0x1a9)][_0x419f3f(0x1ac)](_0x4b46be=>{const _0x2be381=_0x419f3f;if(_0x4b46be[_0x2be381(0x1c5)]['toUpperCase']()!==_0x31db09['toUpperCase']())return![];if(typeof _0x3a25ef===_0x2be381(0x1a2))return _0x4b46be['url']['includes'](_0x3a25ef);return _0x3a25ef['test'](_0x4b46be['url']);});}[a232_0x2e5256(0x1d1)](_0x4a5439){const _0x1dd9e2=a232_0x2e5256;return this['stubs'][_0x4a5439]?.[_0x1dd9e2(0x1c6)]??0x0;}[a232_0x2e5256(0x19f)](){const _0x15f48b=a232_0x2e5256;this[_0x15f48b(0x1aa)]=[],this[_0x15f48b(0x1a9)]=[],this[_0x15f48b(0x194)]=null;}static[a232_0x2e5256(0x1de)](_0x47e0d6){const _0x26e0fa=a232_0x2e5256,_0x526349={0xc8:'OK',0xc9:_0x26e0fa(0x199),0xcc:_0x26e0fa(0x1ae),0x190:_0x26e0fa(0x1a6),0x191:'Unauthorized',0x193:_0x26e0fa(0x192),0x194:_0x26e0fa(0x1a1),0x199:'Conflict',0x1a6:_0x26e0fa(0x1cb),0x1ad:_0x26e0fa(0x1b8),0x1f4:_0x26e0fa(0x1bc),0x1f6:_0x26e0fa(0x1d9),0x1f7:'Service\x20Unavailable'};return _0x526349[_0x47e0d6]??_0x26e0fa(0x1d0);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x1e746b,_0x1a56ca){var _0x22dff0=a231_0x9e70,_0x2b9c11=_0x1e746b();while(!![]){try{var _0x20748d=-parseInt(_0x22dff0(0x1c2))/0x1+parseInt(_0x22dff0(0x1c5))/0x2*(parseInt(_0x22dff0(0x1c3))/0x3)+-parseInt(_0x22dff0(0x1c6))/0x4*(-parseInt(_0x22dff0(0x1c9))/0x5)+parseInt(_0x22dff0(0x1c4))/0x6+-parseInt(_0x22dff0(0x1c7))/0x7+parseInt(_0x22dff0(0x1c8))/0x8+-parseInt(_0x22dff0(0x1c1))/0x9;if(_0x20748d===_0x1a56ca)break;else _0x2b9c11['push'](_0x2b9c11['shift']());}catch(_0x32f998){_0x2b9c11['push'](_0x2b9c11['shift']());}}}(a231_0x24b2,0xd4252));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a231_0x24b2(){var _0x5ce7cb=['7261120zFUIpS','15yGUveN','6085143XZweLg','1365331qhmtXG','12qbaKrn','4457892GAGZBY','204090ZrbRzh','1979756YQefcJ','4432505CgOXfO'];a231_0x24b2=function(){return _0x5ce7cb;};return a231_0x24b2();}function a231_0x9e70(_0x41270f,_0x47a7ce){_0x41270f=_0x41270f-0x1c1;var _0x24b26e=a231_0x24b2();var _0x9e70b1=_0x24b26e[_0x41270f];return _0x9e70b1;}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x5df374,_0x18f817){var _0x42c3b0=a233_0x2b59,_0xa5cbb0=_0x5df374();while(!![]){try{var _0x5e175f=parseInt(_0x42c3b0(0x1b1))/0x1+-parseInt(_0x42c3b0(0x1a9))/0x2+-parseInt(_0x42c3b0(0x1af))/0x3*(-parseInt(_0x42c3b0(0x1ad))/0x4)+parseInt(_0x42c3b0(0x1ac))/0x5*(parseInt(_0x42c3b0(0x1ab))/0x6)+-parseInt(_0x42c3b0(0x1aa))/0x7*(-parseInt(_0x42c3b0(0x1b3))/0x8)+parseInt(_0x42c3b0(0x1b0))/0x9+-parseInt(_0x42c3b0(0x1b2))/0xa*(parseInt(_0x42c3b0(0x1ae))/0xb);if(_0x5e175f===_0x18f817)break;else _0xa5cbb0['push'](_0xa5cbb0['shift']());}catch(_0x2e2d9c){_0xa5cbb0['push'](_0xa5cbb0['shift']());}}}(a233_0xee8a,0x8a5d3));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a233_0x2b59(_0x414e66,_0xda6092){_0x414e66=_0x414e66-0x1a9;var _0xee8ad4=a233_0xee8a();var _0x2b5921=_0xee8ad4[_0x414e66];return _0x2b5921;}function a233_0xee8a(){var _0x1dfc5a=['148562QvcgGC','411754tJydQY','1155318YeWavH','20iwhDMC','4401832BMsdwE','146641iVsvTz','3nqIuIQ','1662822vVRtEs','796882UuBDjU','2100UISrgh','80CEVPed'];a233_0xee8a=function(){return _0x1dfc5a;};return a233_0xee8a();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole,writeTestProfile}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 a232_0x3c61(_0x1bf5ce,_0x5609fe){_0x1bf5ce=_0x1bf5ce-0x1a7;const _0xbee738=a232_0xbee7();let _0x3c6189=_0xbee738[_0x1bf5ce];return _0x3c6189;}function a232_0xbee7(){const _0x5eaa58=['12Ddgwrk','slice','196loaNmW','length','14316xzmqLh','all','15046570YykMre','3712665KSbeMr','4lPBxVn','6853608liRoag','519633GACXPS','13545423IhKgEe','push','2680090ZQGSWB'];a232_0xbee7=function(){return _0x5eaa58;};return a232_0xbee7();}(function(_0x264b46,_0x580faa){const _0x3e4da2=a232_0x3c61,_0xd05d28=_0x264b46();while(!![]){try{const _0x18454c=-parseInt(_0x3e4da2(0x1aa))/0x1*(parseInt(_0x3e4da2(0x1ac))/0x2)+-parseInt(_0x3e4da2(0x1b2))/0x3*(parseInt(_0x3e4da2(0x1b0))/0x4)+parseInt(_0x3e4da2(0x1af))/0x5+parseInt(_0x3e4da2(0x1a8))/0x6*(parseInt(_0x3e4da2(0x1a7))/0x7)+parseInt(_0x3e4da2(0x1b1))/0x8+parseInt(_0x3e4da2(0x1b3))/0x9+-parseInt(_0x3e4da2(0x1ae))/0xa;if(_0x18454c===_0x580faa)break;else _0xd05d28['push'](_0xd05d28['shift']());}catch(_0x591f3f){_0xd05d28['push'](_0xd05d28['shift']());}}}(a232_0xbee7,0xc0ac1));export async function batchAsync(_0x2e1945,_0x3b299c,_0x4510f3=0xa){const _0x3a0e9a=a232_0x3c61,_0x3a63f3=[];for(let _0x55f969=0x0;_0x55f969<_0x2e1945[_0x3a0e9a(0x1ab)];_0x55f969+=_0x4510f3){const _0x4ccba7=_0x2e1945[_0x3a0e9a(0x1a9)](_0x55f969,_0x55f969+_0x4510f3),_0x3306db=await Promise[_0x3a0e9a(0x1ad)](_0x4ccba7['map'](_0x3b299c));_0x3a63f3[_0x3a0e9a(0x1b4)](..._0x3306db);}return _0x3a63f3;}
1
+ (function(_0x2bed97,_0x47b21e){const _0x1d405b=a234_0x1a98,_0x580578=_0x2bed97();while(!![]){try{const _0xa66d60=-parseInt(_0x1d405b(0x125))/0x1+-parseInt(_0x1d405b(0x12a))/0x2+parseInt(_0x1d405b(0x121))/0x3*(parseInt(_0x1d405b(0x122))/0x4)+parseInt(_0x1d405b(0x128))/0x5+-parseInt(_0x1d405b(0x126))/0x6*(-parseInt(_0x1d405b(0x12b))/0x7)+parseInt(_0x1d405b(0x129))/0x8+parseInt(_0x1d405b(0x127))/0x9;if(_0xa66d60===_0x47b21e)break;else _0x580578['push'](_0x580578['shift']());}catch(_0x3a718b){_0x580578['push'](_0x580578['shift']());}}}(a234_0x5690,0xbfea4));export async function batchAsync(_0x3bb98e,_0x31ea4d,_0x1272e3=0xa){const _0x1b667b=a234_0x1a98,_0x256829=[];for(let _0x5f3a8f=0x0;_0x5f3a8f<_0x3bb98e[_0x1b667b(0x124)];_0x5f3a8f+=_0x1272e3){const _0x2bcf11=_0x3bb98e['slice'](_0x5f3a8f,_0x5f3a8f+_0x1272e3),_0x49d743=await Promise[_0x1b667b(0x12c)](_0x2bcf11[_0x1b667b(0x123)](_0x31ea4d));_0x256829['push'](..._0x49d743);}return _0x256829;}function a234_0x1a98(_0x4befde,_0x4574b9){_0x4befde=_0x4befde-0x121;const _0x5690fd=a234_0x5690();let _0x1a9838=_0x5690fd[_0x4befde];return _0x1a9838;}function a234_0x5690(){const _0x388f45=['630819qyusTY','146210zDiWJg','11463728IrlXjA','1800344jDLfoe','9527FOCdEh','all','1362081TmpagV','8mfCqAB','map','length','1555726yDiZDT','3534HaXDzF'];a234_0x5690=function(){return _0x388f45;};return a234_0x5690();}
@@ -1 +1 @@
1
- (function(_0x2eb7c3,_0x8781fc){const _0x19d31a=a233_0xeadc,_0x498d00=_0x2eb7c3();while(!![]){try{const _0x5f0a66=parseInt(_0x19d31a(0xec))/0x1+-parseInt(_0x19d31a(0xf3))/0x2+parseInt(_0x19d31a(0xfa))/0x3+parseInt(_0x19d31a(0xff))/0x4*(-parseInt(_0x19d31a(0x104))/0x5)+-parseInt(_0x19d31a(0xfe))/0x6*(-parseInt(_0x19d31a(0xf7))/0x7)+parseInt(_0x19d31a(0xf6))/0x8*(-parseInt(_0x19d31a(0x101))/0x9)+parseInt(_0x19d31a(0xf1))/0xa;if(_0x5f0a66===_0x8781fc)break;else _0x498d00['push'](_0x498d00['shift']());}catch(_0x5a384c){_0x498d00['push'](_0x498d00['shift']());}}}(a233_0x24ec,0x9e745));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';function a233_0xeadc(_0x43e09d,_0x4b204c){_0x43e09d=_0x43e09d-0xec;const _0x24ec59=a233_0x24ec();let _0xeadcbd=_0x24ec59[_0x43e09d];return _0xeadcbd;}export function getClaudeConfigDir(){const _0x3502de=a233_0xeadc;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x3502de(0xfb));}function a233_0x24ec(){const _0x1dd625=['isArray','2553090iRDlqa','plugins','mcpServers','8VXUUmk','7MsoKxh','utf-8','known_marketplaces.json','2711547ytAMOs','.claude','string','url','3162114gKWrUG','8lrZdgK','trim','2080962gZIouO','https://github.com/','replace','1022665PAQkaP','installed_plugins.json','object','1010616nRnIiJ','.json','parse','repo','.claude.json','1243740WhXXiI'];a233_0x24ec=function(){return _0x1dd625;};return a233_0x24ec();}function getClaudeJsonPath(){const _0xe719ab=a233_0xeadc,_0x56cbfd=getClaudeConfigDir(),_0x10c184=join(_0x56cbfd,_0xe719ab(0xf0));return existsSync(_0x10c184)?_0x10c184:_0x56cbfd+_0xe719ab(0xed);}function readJsonFile(_0x2b1d7d){const _0x4bcce8=a233_0xeadc;if(!existsSync(_0x2b1d7d))return undefined;try{return JSON[_0x4bcce8(0xee)](readFileSync(_0x2b1d7d,_0x4bcce8(0xf8)));}catch{return undefined;}}function asRecord(_0x5d8273){const _0x4798e1=a233_0xeadc;return typeof _0x5d8273===_0x4798e1(0x106)&&_0x5d8273!==null&&!Array[_0x4798e1(0xf2)](_0x5d8273)?_0x5d8273:undefined;}function mcpServerUrl(_0xe80805,_0x5374c4){const _0x526cec=a233_0xeadc,_0x3e98d3=asRecord(asRecord(_0xe80805)?.[_0x5374c4]);return typeof _0x3e98d3?.[_0x526cec(0xfd)]===_0x526cec(0xfc)?_0x3e98d3[_0x526cec(0xfd)]:undefined;}export function findMcpServerUrl(_0x285aff,_0xcd3440){const _0x50e153=a233_0xeadc,_0x236bb=asRecord(readJsonFile(getClaudeJsonPath())),_0x336b78=asRecord(asRecord(_0x236bb?.['projects'])?.[_0xcd3440]),_0x4ea9fd=mcpServerUrl(_0x336b78?.[_0x50e153(0xf5)],_0x285aff);if(_0x4ea9fd)return _0x4ea9fd;const _0x42992f=mcpServerUrl(_0x236bb?.[_0x50e153(0xf5)],_0x285aff);if(_0x42992f)return _0x42992f;return mcpServerUrl(asRecord(readJsonFile(join(_0xcd3440,'.mcp.json')))?.[_0x50e153(0xf5)],_0x285aff);}export function normalizeRepoUrl(_0x3b6b9c){const _0x394e92=a233_0xeadc;return _0x3b6b9c[_0x394e92(0x100)]()['toLowerCase']()[_0x394e92(0x103)](/\.git$/,'')[_0x394e92(0x103)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x1ba5f6){const _0x46db74=a233_0xeadc,_0x51a2c3=join(getClaudeConfigDir(),_0x46db74(0xf4),_0x46db74(0xf9)),_0x55b7a3=asRecord(asRecord(readJsonFile(_0x51a2c3))?.[_0x1ba5f6])?.['source'],_0x287816=asRecord(_0x55b7a3);if(!_0x287816)return undefined;if(typeof _0x287816[_0x46db74(0xfd)]===_0x46db74(0xfc))return normalizeRepoUrl(_0x287816[_0x46db74(0xfd)]);if(typeof _0x287816[_0x46db74(0xef)]===_0x46db74(0xfc))return normalizeRepoUrl(_0x46db74(0x102)+_0x287816['repo']);return undefined;}export function isPluginInstalled(_0x2c751b,_0x1882a1){const _0x508009=a233_0xeadc,_0x15feb8=join(getClaudeConfigDir(),_0x508009(0xf4),_0x508009(0x105)),_0x501c5b=readJsonFile(_0x15feb8),_0x5bdd6b=_0x501c5b?.['plugins']?.[_0x2c751b+'@'+_0x1882a1];return Array[_0x508009(0xf2)](_0x5bdd6b)&&_0x5bdd6b['length']>0x0;}
1
+ (function(_0x2cbd14,_0x53005b){const _0x144081=a235_0x1d7a,_0x3de9dd=_0x2cbd14();while(!![]){try{const _0x399a88=parseInt(_0x144081(0xc9))/0x1+-parseInt(_0x144081(0xc5))/0x2+-parseInt(_0x144081(0xb6))/0x3+parseInt(_0x144081(0xb7))/0x4+-parseInt(_0x144081(0xbc))/0x5+-parseInt(_0x144081(0xba))/0x6+parseInt(_0x144081(0xbf))/0x7;if(_0x399a88===_0x53005b)break;else _0x3de9dd['push'](_0x3de9dd['shift']());}catch(_0x427171){_0x3de9dd['push'](_0x3de9dd['shift']());}}}(a235_0x92e0,0x605df));import{existsSync,readFileSync}from'node:fs';import{homedir}from'node:os';import{join}from'node:path';export function getClaudeConfigDir(){const _0x1bbf10=a235_0x1d7a;return process.env.CLAUDE_CONFIG_DIR||join(homedir(),_0x1bbf10(0xb9));}function getClaudeJsonPath(){const _0x363be6=a235_0x1d7a,_0x3e5626=getClaudeConfigDir(),_0x4565e4=join(_0x3e5626,'.claude.json');return existsSync(_0x4565e4)?_0x4565e4:_0x3e5626+_0x363be6(0xc2);}function a235_0x92e0(){const _0x1f4ed9=['projects','3321975jQBCzH','trim','mcpServers','7454573iMUkUn','string','plugins','.json','.mcp.json','source','106400TDOwIL','replace','known_marketplaces.json','isArray','389054PHVAEn','repo','object','url','installed_plugins.json','https://github.com/','1713471IDZYQT','2648632HTohBq','length','.claude','2596080zkpWzZ'];a235_0x92e0=function(){return _0x1f4ed9;};return a235_0x92e0();}function a235_0x1d7a(_0x32535c,_0x24c58a){_0x32535c=_0x32535c-0xb3;const _0x92e0e4=a235_0x92e0();let _0x1d7a47=_0x92e0e4[_0x32535c];return _0x1d7a47;}function readJsonFile(_0x519573){if(!existsSync(_0x519573))return undefined;try{return JSON['parse'](readFileSync(_0x519573,'utf-8'));}catch{return undefined;}}function asRecord(_0x3dea36){const _0x8cbac4=a235_0x1d7a;return typeof _0x3dea36===_0x8cbac4(0xcb)&&_0x3dea36!==null&&!Array[_0x8cbac4(0xc8)](_0x3dea36)?_0x3dea36:undefined;}function mcpServerUrl(_0x34539e,_0x455171){const _0x2fb53b=a235_0x1d7a,_0x529acc=asRecord(asRecord(_0x34539e)?.[_0x455171]);return typeof _0x529acc?.[_0x2fb53b(0xb3)]===_0x2fb53b(0xc0)?_0x529acc[_0x2fb53b(0xb3)]:undefined;}export function findMcpServerUrl(_0x4d73e2,_0x284317){const _0x3e67bd=a235_0x1d7a,_0x570a13=asRecord(readJsonFile(getClaudeJsonPath())),_0x28fc43=asRecord(asRecord(_0x570a13?.[_0x3e67bd(0xbb)])?.[_0x284317]),_0x3e9ca7=mcpServerUrl(_0x28fc43?.['mcpServers'],_0x4d73e2);if(_0x3e9ca7)return _0x3e9ca7;const _0x45a486=mcpServerUrl(_0x570a13?.[_0x3e67bd(0xbe)],_0x4d73e2);if(_0x45a486)return _0x45a486;return mcpServerUrl(asRecord(readJsonFile(join(_0x284317,_0x3e67bd(0xc3))))?.[_0x3e67bd(0xbe)],_0x4d73e2);}export function normalizeRepoUrl(_0x447b5a){const _0x3e18b5=a235_0x1d7a;return _0x447b5a[_0x3e18b5(0xbd)]()['toLowerCase']()[_0x3e18b5(0xc6)](/\.git$/,'')[_0x3e18b5(0xc6)](/\/+$/,'');}export function readMarketplaceSourceUrl(_0x3076d7){const _0x25faa6=a235_0x1d7a,_0x5dc371=join(getClaudeConfigDir(),'plugins',_0x25faa6(0xc7)),_0x18c3da=asRecord(asRecord(readJsonFile(_0x5dc371))?.[_0x3076d7])?.[_0x25faa6(0xc4)],_0x50620f=asRecord(_0x18c3da);if(!_0x50620f)return undefined;if(typeof _0x50620f['url']===_0x25faa6(0xc0))return normalizeRepoUrl(_0x50620f[_0x25faa6(0xb3)]);if(typeof _0x50620f[_0x25faa6(0xca)]===_0x25faa6(0xc0))return normalizeRepoUrl(_0x25faa6(0xb5)+_0x50620f[_0x25faa6(0xca)]);return undefined;}export function isPluginInstalled(_0x4c2822,_0x12c7b3){const _0x8c7fce=a235_0x1d7a,_0x36be4b=join(getClaudeConfigDir(),_0x8c7fce(0xc1),_0x8c7fce(0xb4)),_0x4c920b=readJsonFile(_0x36be4b),_0x2a67dd=_0x4c920b?.['plugins']?.[_0x4c2822+'@'+_0x12c7b3];return Array['isArray'](_0x2a67dd)&&_0x2a67dd[_0x8c7fce(0xb8)]>0x0;}
@@ -1 +1 @@
1
- const a234_0x240c7c=a234_0x376a;(function(_0x4d60a2,_0x208e47){const _0x57379e=a234_0x376a,_0xc8bb25=_0x4d60a2();while(!![]){try{const _0x34f0de=-parseInt(_0x57379e(0x148))/0x1*(parseInt(_0x57379e(0x15b))/0x2)+-parseInt(_0x57379e(0x13f))/0x3*(-parseInt(_0x57379e(0x149))/0x4)+-parseInt(_0x57379e(0x159))/0x5+parseInt(_0x57379e(0x14d))/0x6*(parseInt(_0x57379e(0x155))/0x7)+-parseInt(_0x57379e(0x145))/0x8*(-parseInt(_0x57379e(0x157))/0x9)+parseInt(_0x57379e(0x146))/0xa*(parseInt(_0x57379e(0x156))/0xb)+parseInt(_0x57379e(0x14e))/0xc;if(_0x34f0de===_0x208e47)break;else _0xc8bb25['push'](_0xc8bb25['shift']());}catch(_0x586ebc){_0xc8bb25['push'](_0xc8bb25['shift']());}}}(a234_0x2e4e,0x8383d));import*as a234_0x81317a from'chalk';const Chalk=a234_0x81317a[a234_0x240c7c(0x153)];export function shouldUseColor(_0x5a6b12={}){const _0x3fca03=a234_0x240c7c;if(_0x5a6b12[_0x3fca03(0x15a)]===!![])return![];if(_0x5a6b12[_0x3fca03(0x141)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3fca03(0x144)][_0x3fca03(0x143)]??![];}export function getChalk(_0x1e01bb={}){if(shouldUseColor(_0x1e01bb))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x352c5d,_0x369bda={}){const _0x5bc8a4=a234_0x240c7c;return getChalk(_0x369bda)[_0x5bc8a4(0x152)](_0x352c5d);}export function colorHeader(_0x16461d,_0x3c28f5={}){const _0x3348ef=a234_0x240c7c;return getChalk(_0x3c28f5)[_0x3348ef(0x158)](_0x16461d);}export function colorType(_0x499277,_0x3bc6c0={}){return getChalk(_0x3bc6c0)['dim'](_0x499277);}export function colorJSONKey(_0x2e68ec,_0x6e579f={}){return getChalk(_0x6e579f)['blue'](_0x2e68ec);}function a234_0x2e4e(){const _0x15eba8=['isArray','dim','Chalk','object','38451ZDOHgU','1075382sZgMVH','1212291FLLdYy','cyan','234170SWbSJG','noColor','121812zRaHJv','repeat','entries','75078yXelcf','boolean','color','map','isTTY','stdout','16FJPAqY','50HRchJi','join','13QDCkEy','20tQmAOp','number','null','yellow','354kACIbk','2038464mgKvma','length','stringify'];a234_0x2e4e=function(){return _0x15eba8;};return a234_0x2e4e();}function a234_0x376a(_0x23ff34,_0x482523){_0x23ff34=_0x23ff34-0x13d;const _0x2e4ef6=a234_0x2e4e();let _0x376a71=_0x2e4ef6[_0x23ff34];return _0x376a71;}export function colorJSONString(_0x2dd43b,_0x1e9e84={}){return getChalk(_0x1e9e84)['green'](_0x2dd43b);}export function colorJSONNumber(_0x684871,_0x56ffcd={}){const _0x1ec65a=a234_0x240c7c;return getChalk(_0x56ffcd)[_0x1ec65a(0x158)](_0x684871);}export function colorJSONBoolean(_0x5c90b7,_0x1cb0e6={}){const _0x7234b5=a234_0x240c7c;return getChalk(_0x1cb0e6)[_0x7234b5(0x14c)](_0x5c90b7);}export function colorJSONNull(_0x6dc56e,_0x3eaa9c={}){const _0x566df6=a234_0x240c7c;return getChalk(_0x3eaa9c)[_0x566df6(0x152)](_0x6dc56e);}export function colorizeJSONCompact(_0x276ee6,_0x350386={}){const _0x583bc3=a234_0x240c7c;if(!shouldUseColor(_0x350386))return JSON['stringify'](_0x276ee6);if(_0x276ee6===null)return colorJSONNull(_0x583bc3(0x14b),_0x350386);if(typeof _0x276ee6===_0x583bc3(0x140))return colorJSONBoolean(String(_0x276ee6),_0x350386);if(typeof _0x276ee6===_0x583bc3(0x14a))return colorJSONNumber(String(_0x276ee6),_0x350386);if(typeof _0x276ee6==='string')return colorJSONString(JSON[_0x583bc3(0x150)](_0x276ee6),_0x350386);if(Array[_0x583bc3(0x151)](_0x276ee6)){if(_0x276ee6[_0x583bc3(0x14f)]===0x0)return'[]';const _0x3f603a=_0x276ee6[_0x583bc3(0x142)](_0x2008c2=>colorizeJSONCompact(_0x2008c2,_0x350386));return'['+_0x3f603a[_0x583bc3(0x147)](',')+']';}if(typeof _0x276ee6==='object'){const _0x2fc974=Object[_0x583bc3(0x13e)](_0x276ee6);if(_0x2fc974[_0x583bc3(0x14f)]===0x0)return'{}';const _0x277f91=_0x2fc974[_0x583bc3(0x142)](([_0x5ce489,_0x4bf4da])=>{const _0xe3dbe=colorJSONKey(JSON['stringify'](_0x5ce489),_0x350386),_0x257ef8=colorizeJSONCompact(_0x4bf4da,_0x350386);return _0xe3dbe+':'+_0x257ef8;});return'{'+_0x277f91['join'](',')+'}';}return String(_0x276ee6);}export function colorizeJSON(_0x170f2f,_0x1bd861={},_0x2a1097=0x0){const _0x294c88=a234_0x240c7c;if(!shouldUseColor(_0x1bd861))return JSON[_0x294c88(0x150)](_0x170f2f,null,0x2);const _0x57db6f='\x20'[_0x294c88(0x13d)](_0x2a1097),_0x531d92=_0x2a1097+0x2;if(_0x170f2f===null)return colorJSONNull(_0x294c88(0x14b),_0x1bd861);if(typeof _0x170f2f===_0x294c88(0x140))return colorJSONBoolean(String(_0x170f2f),_0x1bd861);if(typeof _0x170f2f===_0x294c88(0x14a))return colorJSONNumber(String(_0x170f2f),_0x1bd861);if(typeof _0x170f2f==='string')return colorJSONString(JSON[_0x294c88(0x150)](_0x170f2f),_0x1bd861);if(Array[_0x294c88(0x151)](_0x170f2f)){if(_0x170f2f['length']===0x0)return'[]';const _0x279eb5=_0x170f2f[_0x294c88(0x142)](_0x1b38d3=>{const _0x1dd015=_0x294c88,_0x5b691b=colorizeJSON(_0x1b38d3,_0x1bd861,_0x531d92);return''+'\x20'[_0x1dd015(0x13d)](_0x531d92)+_0x5b691b;});return'[\x0a'+_0x279eb5[_0x294c88(0x147)](',\x0a')+('\x0a'+_0x57db6f+']');}if(typeof _0x170f2f===_0x294c88(0x154)){const _0x30b1f9=Object[_0x294c88(0x13e)](_0x170f2f);if(_0x30b1f9[_0x294c88(0x14f)]===0x0)return'{}';const _0x216011=_0x30b1f9['map'](([_0x5261cc,_0x20033c])=>{const _0x5274fd=_0x294c88,_0x12e97e=colorJSONKey(JSON[_0x5274fd(0x150)](_0x5261cc),_0x1bd861),_0x24d34d=colorizeJSON(_0x20033c,_0x1bd861,_0x531d92);return''+'\x20'[_0x5274fd(0x13d)](_0x531d92)+_0x12e97e+':\x20'+_0x24d34d;});return'{\x0a'+_0x216011[_0x294c88(0x147)](',\x0a')+('\x0a'+_0x57db6f+'}');}return String(_0x170f2f);}
1
+ const a236_0x4628ba=a236_0x342d;function a236_0x342d(_0x1e9468,_0x3d0526){_0x1e9468=_0x1e9468-0x85;const _0xdcbe82=a236_0xdcbe();let _0x342d41=_0xdcbe82[_0x1e9468];return _0x342d41;}(function(_0x233c41,_0x204b5d){const _0x16cf68=a236_0x342d,_0x2e7e65=_0x233c41();while(!![]){try{const _0x2a103b=-parseInt(_0x16cf68(0x8d))/0x1+parseInt(_0x16cf68(0xa0))/0x2*(parseInt(_0x16cf68(0x92))/0x3)+parseInt(_0x16cf68(0x8e))/0x4+-parseInt(_0x16cf68(0x8f))/0x5+parseInt(_0x16cf68(0x8c))/0x6*(parseInt(_0x16cf68(0x8b))/0x7)+-parseInt(_0x16cf68(0x9b))/0x8*(parseInt(_0x16cf68(0x9c))/0x9)+-parseInt(_0x16cf68(0x85))/0xa*(parseInt(_0x16cf68(0x9f))/0xb);if(_0x2a103b===_0x204b5d)break;else _0x2e7e65['push'](_0x2e7e65['shift']());}catch(_0x827db0){_0x2e7e65['push'](_0x2e7e65['shift']());}}}(a236_0xdcbe,0xecc32));import*as a236_0x217595 from'chalk';const Chalk=a236_0x217595[a236_0x4628ba(0x93)];export function shouldUseColor(_0x138626={}){const _0x71f18d=a236_0x4628ba;if(_0x138626[_0x71f18d(0x98)]===!![])return![];if(_0x138626[_0x71f18d(0x95)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x71f18d(0x8a)][_0x71f18d(0xa2)]??![];}export function getChalk(_0x59b733={}){if(shouldUseColor(_0x59b733))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xebc469,_0x1b76f4={}){const _0x4b816b=a236_0x4628ba;return getChalk(_0x1b76f4)[_0x4b816b(0x97)](_0xebc469);}export function colorHeader(_0x1542c3,_0x823c09={}){const _0xf47789=a236_0x4628ba;return getChalk(_0x823c09)[_0xf47789(0x99)](_0x1542c3);}export function colorType(_0x45ebf4,_0x5074f2={}){return getChalk(_0x5074f2)['dim'](_0x45ebf4);}export function colorJSONKey(_0x473f88,_0x420b99={}){return getChalk(_0x420b99)['blue'](_0x473f88);}export function colorJSONString(_0x127614,_0x357f72={}){const _0x4e73fd=a236_0x4628ba;return getChalk(_0x357f72)[_0x4e73fd(0x96)](_0x127614);}function a236_0xdcbe(){const _0x4f2510=['repeat','8716873IINDTT','562NhCmhH','string','isTTY','boolean','10eIlthx','length','isArray','join','object','stdout','35wTplCX','1449738YfxoLk','230489xfmpwQ','5422780EgBTbh','2815180AOqqqH','map','entries','18822nDoLDp','Chalk','null','color','green','dim','noColor','cyan','stringify','14168464zoruAI','9VgTLrZ','number'];a236_0xdcbe=function(){return _0x4f2510;};return a236_0xdcbe();}export function colorJSONNumber(_0x3e11f2,_0xa546ee={}){const _0x519fdc=a236_0x4628ba;return getChalk(_0xa546ee)[_0x519fdc(0x99)](_0x3e11f2);}export function colorJSONBoolean(_0x1cc5c5,_0x27315c={}){return getChalk(_0x27315c)['yellow'](_0x1cc5c5);}export function colorJSONNull(_0x4b5c9e,_0x38a242={}){const _0x139006=a236_0x4628ba;return getChalk(_0x38a242)[_0x139006(0x97)](_0x4b5c9e);}export function colorizeJSONCompact(_0x4259f8,_0x55044f={}){const _0xe4e1f9=a236_0x4628ba;if(!shouldUseColor(_0x55044f))return JSON[_0xe4e1f9(0x9a)](_0x4259f8);if(_0x4259f8===null)return colorJSONNull(_0xe4e1f9(0x94),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0xa3))return colorJSONBoolean(String(_0x4259f8),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0x9d))return colorJSONNumber(String(_0x4259f8),_0x55044f);if(typeof _0x4259f8===_0xe4e1f9(0xa1))return colorJSONString(JSON['stringify'](_0x4259f8),_0x55044f);if(Array[_0xe4e1f9(0x87)](_0x4259f8)){if(_0x4259f8[_0xe4e1f9(0x86)]===0x0)return'[]';const _0x29cb77=_0x4259f8[_0xe4e1f9(0x90)](_0xd4febc=>colorizeJSONCompact(_0xd4febc,_0x55044f));return'['+_0x29cb77[_0xe4e1f9(0x88)](',')+']';}if(typeof _0x4259f8===_0xe4e1f9(0x89)){const _0x433603=Object[_0xe4e1f9(0x91)](_0x4259f8);if(_0x433603[_0xe4e1f9(0x86)]===0x0)return'{}';const _0x461027=_0x433603[_0xe4e1f9(0x90)](([_0x57f221,_0xdb59f0])=>{const _0x12b4c1=_0xe4e1f9,_0xd336fa=colorJSONKey(JSON[_0x12b4c1(0x9a)](_0x57f221),_0x55044f),_0x375201=colorizeJSONCompact(_0xdb59f0,_0x55044f);return _0xd336fa+':'+_0x375201;});return'{'+_0x461027[_0xe4e1f9(0x88)](',')+'}';}return String(_0x4259f8);}export function colorizeJSON(_0x29dd60,_0x304bf6={},_0x117b51=0x0){const _0x21792f=a236_0x4628ba;if(!shouldUseColor(_0x304bf6))return JSON[_0x21792f(0x9a)](_0x29dd60,null,0x2);const _0x3f7ee7='\x20'[_0x21792f(0x9e)](_0x117b51),_0x510da0=_0x117b51+0x2;if(_0x29dd60===null)return colorJSONNull('null',_0x304bf6);if(typeof _0x29dd60==='boolean')return colorJSONBoolean(String(_0x29dd60),_0x304bf6);if(typeof _0x29dd60===_0x21792f(0x9d))return colorJSONNumber(String(_0x29dd60),_0x304bf6);if(typeof _0x29dd60==='string')return colorJSONString(JSON[_0x21792f(0x9a)](_0x29dd60),_0x304bf6);if(Array[_0x21792f(0x87)](_0x29dd60)){if(_0x29dd60['length']===0x0)return'[]';const _0x2a29f7=_0x29dd60[_0x21792f(0x90)](_0x958cf5=>{const _0xf7c11f=colorizeJSON(_0x958cf5,_0x304bf6,_0x510da0);return''+'\x20'['repeat'](_0x510da0)+_0xf7c11f;});return'[\x0a'+_0x2a29f7[_0x21792f(0x88)](',\x0a')+('\x0a'+_0x3f7ee7+']');}if(typeof _0x29dd60===_0x21792f(0x89)){const _0x56268e=Object['entries'](_0x29dd60);if(_0x56268e[_0x21792f(0x86)]===0x0)return'{}';const _0x25a4cf=_0x56268e[_0x21792f(0x90)](([_0x18ca20,_0x3345df])=>{const _0x5b1dd2=colorJSONKey(JSON['stringify'](_0x18ca20),_0x304bf6),_0x26437a=colorizeJSON(_0x3345df,_0x304bf6,_0x510da0);return''+'\x20'['repeat'](_0x510da0)+_0x5b1dd2+':\x20'+_0x26437a;});return'{\x0a'+_0x25a4cf['join'](',\x0a')+('\x0a'+_0x3f7ee7+'}');}return String(_0x29dd60);}
@@ -1 +1 @@
1
- (function(_0x8a9866,_0x273af8){const _0x106c2c=a235_0x1de3,_0x3bb87d=_0x8a9866();while(!![]){try{const _0x3be64f=parseInt(_0x106c2c(0x95))/0x1+-parseInt(_0x106c2c(0x97))/0x2+parseInt(_0x106c2c(0x90))/0x3*(parseInt(_0x106c2c(0x9d))/0x4)+parseInt(_0x106c2c(0x87))/0x5*(parseInt(_0x106c2c(0x89))/0x6)+parseInt(_0x106c2c(0x85))/0x7+-parseInt(_0x106c2c(0x98))/0x8+-parseInt(_0x106c2c(0x88))/0x9*(-parseInt(_0x106c2c(0x9a))/0xa);if(_0x3be64f===_0x273af8)break;else _0x3bb87d['push'](_0x3bb87d['shift']());}catch(_0x4660c7){_0x3bb87d['push'](_0x3bb87d['shift']());}}}(a235_0x2f3c,0xddac7));function a235_0x1de3(_0x42779f,_0x37eb0c){_0x42779f=_0x42779f-0x83;const _0x2f3cd8=a235_0x2f3c();let _0x1de35f=_0x2f3cd8[_0x42779f];return _0x1de35f;}import a235_0x3186cf from'chalk';function a235_0x2f3c(){const _0x4fdf56=['size','\x20-\x20','\x20+\x20','min','11249588wZvrmN','map','5KLPBIc','1684341vtCZOI','2461842QruKGR','length','split','repeat','added','red','padStart','12882PmVEBH','removed','has','type','new','4533wsRoaF','max','3499176TypsuB','7230184CqWVnx','fill','60cyYNxV','unshift','join','388eCTyqP','old','unchanged','content','push','add'];a235_0x2f3c=function(){return _0x4fdf56;};return a235_0x2f3c();}export function generateDiff(_0x1cfc12,_0x52c857){const _0x33df43=a235_0x1de3,_0x21e44c=_0x1cfc12[_0x33df43(0x8b)]('\x0a'),_0x1a574b=_0x52c857[_0x33df43(0x8b)]('\x0a'),_0xd5925a=[],_0x13158c=computeLCS(_0x21e44c,_0x1a574b);let _0x38b43f=0x0,_0x14c728=0x0,_0x34081f=0x0;while(_0x38b43f<_0x21e44c['length']||_0x14c728<_0x1a574b[_0x33df43(0x8a)]){if(_0x34081f<_0x13158c[_0x33df43(0x8a)]&&_0x38b43f<_0x21e44c['length']&&_0x21e44c[_0x38b43f]===_0x13158c[_0x34081f])_0x14c728<_0x1a574b['length']&&_0x1a574b[_0x14c728]===_0x13158c[_0x34081f]?(_0xd5925a[_0x33df43(0xa1)]({'type':_0x33df43(0x9f),'content':_0x21e44c[_0x38b43f]}),_0x38b43f++,_0x14c728++,_0x34081f++):(_0xd5925a[_0x33df43(0xa1)]({'type':_0x33df43(0x8d),'content':_0x1a574b[_0x14c728]}),_0x14c728++);else{if(_0x34081f<_0x13158c[_0x33df43(0x8a)]&&_0x14c728<_0x1a574b[_0x33df43(0x8a)]&&_0x1a574b[_0x14c728]===_0x13158c[_0x34081f])_0xd5925a[_0x33df43(0xa1)]({'type':'removed','content':_0x21e44c[_0x38b43f]}),_0x38b43f++;else{if(_0x38b43f<_0x21e44c[_0x33df43(0x8a)]&&(_0x34081f>=_0x13158c[_0x33df43(0x8a)]||_0x21e44c[_0x38b43f]!==_0x13158c[_0x34081f]))_0xd5925a['push']({'type':'removed','content':_0x21e44c[_0x38b43f]}),_0x38b43f++;else _0x14c728<_0x1a574b[_0x33df43(0x8a)]&&(_0xd5925a[_0x33df43(0xa1)]({'type':_0x33df43(0x8d),'content':_0x1a574b[_0x14c728]}),_0x14c728++);}}}return _0xd5925a;}function computeLCS(_0x33133a,_0x10a0e5){const _0x14ac5e=a235_0x1de3,_0x35734c=_0x33133a['length'],_0x28e197=_0x10a0e5[_0x14ac5e(0x8a)],_0x4ff82a=Array(_0x35734c+0x1)[_0x14ac5e(0x99)](null)[_0x14ac5e(0x86)](()=>Array(_0x28e197+0x1)['fill'](0x0));for(let _0x2982a2=0x1;_0x2982a2<=_0x35734c;_0x2982a2++){for(let _0x1cd8bb=0x1;_0x1cd8bb<=_0x28e197;_0x1cd8bb++){_0x33133a[_0x2982a2-0x1]===_0x10a0e5[_0x1cd8bb-0x1]?_0x4ff82a[_0x2982a2][_0x1cd8bb]=_0x4ff82a[_0x2982a2-0x1][_0x1cd8bb-0x1]+0x1:_0x4ff82a[_0x2982a2][_0x1cd8bb]=Math['max'](_0x4ff82a[_0x2982a2-0x1][_0x1cd8bb],_0x4ff82a[_0x2982a2][_0x1cd8bb-0x1]);}}const _0x4e253e=[];let _0x2c611d=_0x35734c,_0x593f61=_0x28e197;while(_0x2c611d>0x0&&_0x593f61>0x0){if(_0x33133a[_0x2c611d-0x1]===_0x10a0e5[_0x593f61-0x1])_0x4e253e[_0x14ac5e(0x9b)](_0x33133a[_0x2c611d-0x1]),_0x2c611d--,_0x593f61--;else _0x4ff82a[_0x2c611d-0x1][_0x593f61]>_0x4ff82a[_0x2c611d][_0x593f61-0x1]?_0x2c611d--:_0x593f61--;}return _0x4e253e;}export function formatDiffWithColors(_0xfa09f7,_0x473df0=0x3){const _0x16fb49=a235_0x1de3,_0x2b3ba1=new Set();_0xfa09f7['forEach']((_0x15527c,_0x27535d)=>{const _0x54552d=a235_0x1de3;_0x15527c[_0x54552d(0x93)]!=='unchanged'&&_0x2b3ba1['add'](_0x27535d);});if(_0x2b3ba1[_0x16fb49(0xa3)]===0x0)return'';const _0x6094ca=new Set();for(const _0x7a4b17 of _0x2b3ba1){for(let _0x4cb275=Math[_0x16fb49(0x96)](0x0,_0x7a4b17-_0x473df0);_0x4cb275<=Math[_0x16fb49(0x84)](_0xfa09f7[_0x16fb49(0x8a)]-0x1,_0x7a4b17+_0x473df0);_0x4cb275++){_0x6094ca[_0x16fb49(0xa2)](_0x4cb275);}}const _0x5beaee=[];let _0x872d80=-0x1;const _0x2899ea=_0xfa09f7['length'],_0xfc3056=Math[_0x16fb49(0x96)](0x3,String(_0x2899ea)[_0x16fb49(0x8a)]),_0x19a9e1=[];let _0x54fffd=0x0,_0x35e6de=0x0;for(const _0x4c7aa0 of _0xfa09f7){if(_0x4c7aa0[_0x16fb49(0x93)]===_0x16fb49(0x91))_0x54fffd++,_0x19a9e1[_0x16fb49(0xa1)]({'old':_0x54fffd,'new':0x0});else _0x4c7aa0[_0x16fb49(0x93)]===_0x16fb49(0x8d)?(_0x35e6de++,_0x19a9e1[_0x16fb49(0xa1)]({'old':0x0,'new':_0x35e6de})):(_0x54fffd++,_0x35e6de++,_0x19a9e1['push']({'old':_0x54fffd,'new':_0x35e6de}));}for(let _0x5648b6=0x0;_0x5648b6<_0xfa09f7['length'];_0x5648b6++){if(!_0x6094ca[_0x16fb49(0x92)](_0x5648b6))continue;_0x872d80!==-0x1&&_0x5648b6>_0x872d80+0x1&&_0x5beaee[_0x16fb49(0xa1)](a235_0x3186cf['cyan']('\x20\x20...'));_0x872d80=_0x5648b6;const _0x1a6258=_0xfa09f7[_0x5648b6],_0x5076ee=_0x19a9e1[_0x5648b6],_0x26e23e=_0x5076ee[_0x16fb49(0x9e)]>0x0?String(_0x5076ee[_0x16fb49(0x9e)])['padStart'](_0xfc3056):'\x20'[_0x16fb49(0x8c)](_0xfc3056),_0x2bff43=_0x5076ee[_0x16fb49(0x94)]>0x0?String(_0x5076ee[_0x16fb49(0x94)])[_0x16fb49(0x8f)](_0xfc3056):'\x20'['repeat'](_0xfc3056);switch(_0x1a6258[_0x16fb49(0x93)]){case _0x16fb49(0x91):_0x5beaee['push'](a235_0x3186cf[_0x16fb49(0x8e)](_0x26e23e+'\x20'+_0x2bff43+_0x16fb49(0xa4)+_0x1a6258[_0x16fb49(0xa0)]));break;case'added':_0x5beaee[_0x16fb49(0xa1)](a235_0x3186cf['green'](_0x26e23e+'\x20'+_0x2bff43+_0x16fb49(0x83)+_0x1a6258[_0x16fb49(0xa0)]));break;default:_0x5beaee[_0x16fb49(0xa1)](a235_0x3186cf['dim'](_0x26e23e+'\x20'+_0x2bff43+'\x20\x20\x20'+_0x1a6258[_0x16fb49(0xa0)]));break;}}return _0x5beaee[_0x16fb49(0x9c)]('\x0a');}export function hasChanges(_0x333a08){const _0x451ed9=a235_0x1de3;return _0x333a08['some'](_0x40fdde=>_0x40fdde['type']!==_0x451ed9(0x9f));}
1
+ function a237_0x2355(){const _0x38c3d1=['map','content','\x20\x20\x20','padStart','2885004iwcWmK','2397132oKMpVy','max','some','repeat','min','640808tvDCrI','green','has','added','removed','join','fill','34GSxcOr','cyan','1034939EzeIww','forEach','old','161fOGJYE','size','split','312483VJtsHC','\x20+\x20','unshift','push','60czoNzS','\x20-\x20','2444840rEEUNg','length','red','new','856465TvbgrB','unchanged','add','type'];a237_0x2355=function(){return _0x38c3d1;};return a237_0x2355();}(function(_0x1d0ae4,_0x4aee98){const _0x278342=a237_0xbe63,_0x49b3f1=_0x1d0ae4();while(!![]){try{const _0x68b871=-parseInt(_0x278342(0x1a3))/0x1+parseInt(_0x278342(0x1a1))/0x2*(-parseInt(_0x278342(0x1a9))/0x3)+parseInt(_0x278342(0x1bb))/0x4+parseInt(_0x278342(0x1b3))/0x5*(parseInt(_0x278342(0x1ad))/0x6)+-parseInt(_0x278342(0x1a6))/0x7*(-parseInt(_0x278342(0x19a))/0x8)+-parseInt(_0x278342(0x1bc))/0x9+-parseInt(_0x278342(0x1af))/0xa;if(_0x68b871===_0x4aee98)break;else _0x49b3f1['push'](_0x49b3f1['shift']());}catch(_0x7ec7ad){_0x49b3f1['push'](_0x49b3f1['shift']());}}}(a237_0x2355,0xea5fc));import a237_0x56d619 from'chalk';export function generateDiff(_0x514be4,_0x433d77){const _0xd0ac10=a237_0xbe63,_0x58ca76=_0x514be4[_0xd0ac10(0x1a8)]('\x0a'),_0x4acf7d=_0x433d77['split']('\x0a'),_0x1bfe8f=[],_0x18971d=computeLCS(_0x58ca76,_0x4acf7d);let _0x29e3c6=0x0,_0x13d30f=0x0,_0x10e9ba=0x0;while(_0x29e3c6<_0x58ca76[_0xd0ac10(0x1b0)]||_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]){if(_0x10e9ba<_0x18971d[_0xd0ac10(0x1b0)]&&_0x29e3c6<_0x58ca76['length']&&_0x58ca76[_0x29e3c6]===_0x18971d[_0x10e9ba])_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]&&_0x4acf7d[_0x13d30f]===_0x18971d[_0x10e9ba]?(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x1b4),'content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++,_0x13d30f++,_0x10e9ba++):(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x19d),'content':_0x4acf7d[_0x13d30f]}),_0x13d30f++);else{if(_0x10e9ba<_0x18971d[_0xd0ac10(0x1b0)]&&_0x13d30f<_0x4acf7d[_0xd0ac10(0x1b0)]&&_0x4acf7d[_0x13d30f]===_0x18971d[_0x10e9ba])_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':'removed','content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++;else{if(_0x29e3c6<_0x58ca76[_0xd0ac10(0x1b0)]&&(_0x10e9ba>=_0x18971d[_0xd0ac10(0x1b0)]||_0x58ca76[_0x29e3c6]!==_0x18971d[_0x10e9ba]))_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':'removed','content':_0x58ca76[_0x29e3c6]}),_0x29e3c6++;else _0x13d30f<_0x4acf7d['length']&&(_0x1bfe8f[_0xd0ac10(0x1ac)]({'type':_0xd0ac10(0x19d),'content':_0x4acf7d[_0x13d30f]}),_0x13d30f++);}}}return _0x1bfe8f;}function computeLCS(_0x2db862,_0x51ead3){const _0xae9b49=a237_0xbe63,_0x28caba=_0x2db862[_0xae9b49(0x1b0)],_0x4b19f4=_0x51ead3[_0xae9b49(0x1b0)],_0x5a7aa7=Array(_0x28caba+0x1)['fill'](null)[_0xae9b49(0x1b7)](()=>Array(_0x4b19f4+0x1)[_0xae9b49(0x1a0)](0x0));for(let _0x5e23e5=0x1;_0x5e23e5<=_0x28caba;_0x5e23e5++){for(let _0xd552f7=0x1;_0xd552f7<=_0x4b19f4;_0xd552f7++){_0x2db862[_0x5e23e5-0x1]===_0x51ead3[_0xd552f7-0x1]?_0x5a7aa7[_0x5e23e5][_0xd552f7]=_0x5a7aa7[_0x5e23e5-0x1][_0xd552f7-0x1]+0x1:_0x5a7aa7[_0x5e23e5][_0xd552f7]=Math['max'](_0x5a7aa7[_0x5e23e5-0x1][_0xd552f7],_0x5a7aa7[_0x5e23e5][_0xd552f7-0x1]);}}const _0x411bcb=[];let _0x4bd89a=_0x28caba,_0x3ef8b4=_0x4b19f4;while(_0x4bd89a>0x0&&_0x3ef8b4>0x0){if(_0x2db862[_0x4bd89a-0x1]===_0x51ead3[_0x3ef8b4-0x1])_0x411bcb[_0xae9b49(0x1ab)](_0x2db862[_0x4bd89a-0x1]),_0x4bd89a--,_0x3ef8b4--;else _0x5a7aa7[_0x4bd89a-0x1][_0x3ef8b4]>_0x5a7aa7[_0x4bd89a][_0x3ef8b4-0x1]?_0x4bd89a--:_0x3ef8b4--;}return _0x411bcb;}function a237_0xbe63(_0x5e00d8,_0x5dd1a3){_0x5e00d8=_0x5e00d8-0x19a;const _0x235530=a237_0x2355();let _0xbe636a=_0x235530[_0x5e00d8];return _0xbe636a;}export function formatDiffWithColors(_0x2457ba,_0x46b89f=0x3){const _0x443f09=a237_0xbe63,_0x46ce11=new Set();_0x2457ba[_0x443f09(0x1a4)]((_0x54cf16,_0x1fd9fb)=>{const _0x4925e0=_0x443f09;_0x54cf16[_0x4925e0(0x1b6)]!=='unchanged'&&_0x46ce11['add'](_0x1fd9fb);});if(_0x46ce11[_0x443f09(0x1a7)]===0x0)return'';const _0x14eb56=new Set();for(const _0x38f309 of _0x46ce11){for(let _0x1f2d31=Math[_0x443f09(0x1bd)](0x0,_0x38f309-_0x46b89f);_0x1f2d31<=Math[_0x443f09(0x1c0)](_0x2457ba[_0x443f09(0x1b0)]-0x1,_0x38f309+_0x46b89f);_0x1f2d31++){_0x14eb56[_0x443f09(0x1b5)](_0x1f2d31);}}const _0xf56ee8=[];let _0x1e69c7=-0x1;const _0x4365e5=_0x2457ba['length'],_0x2adf22=Math['max'](0x3,String(_0x4365e5)[_0x443f09(0x1b0)]),_0x27afe2=[];let _0x238985=0x0,_0x2a9cf1=0x0;for(const _0x4a85fc of _0x2457ba){if(_0x4a85fc['type']==='removed')_0x238985++,_0x27afe2[_0x443f09(0x1ac)]({'old':_0x238985,'new':0x0});else _0x4a85fc['type']===_0x443f09(0x19d)?(_0x2a9cf1++,_0x27afe2[_0x443f09(0x1ac)]({'old':0x0,'new':_0x2a9cf1})):(_0x238985++,_0x2a9cf1++,_0x27afe2['push']({'old':_0x238985,'new':_0x2a9cf1}));}for(let _0x197c5e=0x0;_0x197c5e<_0x2457ba[_0x443f09(0x1b0)];_0x197c5e++){if(!_0x14eb56[_0x443f09(0x19c)](_0x197c5e))continue;_0x1e69c7!==-0x1&&_0x197c5e>_0x1e69c7+0x1&&_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x1a2)]('\x20\x20...'));_0x1e69c7=_0x197c5e;const _0xe8146a=_0x2457ba[_0x197c5e],_0x302d22=_0x27afe2[_0x197c5e],_0x433b4d=_0x302d22[_0x443f09(0x1a5)]>0x0?String(_0x302d22[_0x443f09(0x1a5)])[_0x443f09(0x1ba)](_0x2adf22):'\x20'['repeat'](_0x2adf22),_0x97280a=_0x302d22[_0x443f09(0x1b2)]>0x0?String(_0x302d22[_0x443f09(0x1b2)])[_0x443f09(0x1ba)](_0x2adf22):'\x20'[_0x443f09(0x1bf)](_0x2adf22);switch(_0xe8146a[_0x443f09(0x1b6)]){case _0x443f09(0x19e):_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x1b1)](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1ae)+_0xe8146a[_0x443f09(0x1b8)]));break;case _0x443f09(0x19d):_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619[_0x443f09(0x19b)](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1aa)+_0xe8146a[_0x443f09(0x1b8)]));break;default:_0xf56ee8[_0x443f09(0x1ac)](a237_0x56d619['dim'](_0x433b4d+'\x20'+_0x97280a+_0x443f09(0x1b9)+_0xe8146a[_0x443f09(0x1b8)]));break;}}return _0xf56ee8[_0x443f09(0x19f)]('\x0a');}export function hasChanges(_0x3523f0){const _0x5bf639=a237_0xbe63;return _0x3523f0[_0x5bf639(0x1be)](_0x5161f7=>_0x5161f7[_0x5bf639(0x1b6)]!=='unchanged');}
@@ -1 +1 @@
1
- (function(_0x1c5c61,_0x148b3b){const _0x2fe88f=a236_0x2a93,_0x13990a=_0x1c5c61();while(!![]){try{const _0x53e989=parseInt(_0x2fe88f(0x1c1))/0x1*(parseInt(_0x2fe88f(0x1b8))/0x2)+-parseInt(_0x2fe88f(0x1be))/0x3*(-parseInt(_0x2fe88f(0x1b1))/0x4)+-parseInt(_0x2fe88f(0x1bf))/0x5+parseInt(_0x2fe88f(0x1c0))/0x6*(parseInt(_0x2fe88f(0x1b0))/0x7)+-parseInt(_0x2fe88f(0x1b3))/0x8+-parseInt(_0x2fe88f(0x1af))/0x9*(-parseInt(_0x2fe88f(0x1ba))/0xa)+-parseInt(_0x2fe88f(0x1b6))/0xb;if(_0x53e989===_0x148b3b)break;else _0x13990a['push'](_0x13990a['shift']());}catch(_0x366514){_0x13990a['push'](_0x13990a['shift']());}}}(a236_0x27bd,0x79bbb));import*as a236_0x527daf from'node:fs';import*as a236_0x7e5a48 from'node:path';export function setSecureFilePermissions(_0x1ff52b){const _0x4a3d5e=a236_0x2a93;try{a236_0x527daf[_0x4a3d5e(0x1ae)](_0x1ff52b,0x180);}catch{console[_0x4a3d5e(0x1bd)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1ff52b);}}export function setSecureDirectoryPermissions(_0x297a71){const _0x47d9a6=a236_0x2a93;try{a236_0x527daf[_0x47d9a6(0x1ae)](_0x297a71,0x1c0);}catch{console[_0x47d9a6(0x1bd)](_0x47d9a6(0x1bb)+_0x297a71);}}export function createSecureDirectory(_0x2ca36f){const _0x396a1f=a236_0x2a93;!a236_0x527daf[_0x396a1f(0x1b5)](_0x2ca36f)&&(a236_0x527daf[_0x396a1f(0x1b4)](_0x2ca36f,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2ca36f));}export function validateSecureFilePermissions(_0x1416a6){const _0x45bf15=a236_0x2a93;try{const _0x4666f9=a236_0x527daf['statSync'](_0x1416a6),_0x4c5b45=_0x4666f9[_0x45bf15(0x1b2)]&0x1ff,_0x10f136=(_0x4c5b45&0x3f)!==0x0;if(_0x10f136)return console['warn'](_0x45bf15(0x1b9)+_0x1416a6+'\x20has\x20insecure\x20permissions\x20('+_0x4c5b45[_0x45bf15(0x1b7)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3c903c,_0x52ba15){const _0x38b8cf=a236_0x2a93,_0x2fd5f8=a236_0x7e5a48[_0x38b8cf(0x1bc)](_0x3c903c);createSecureDirectory(_0x2fd5f8),a236_0x527daf['writeFileSync'](_0x3c903c,_0x52ba15,{'mode':0x180}),setSecureFilePermissions(_0x3c903c);}function a236_0x2a93(_0x27e10c,_0x3eb5ab){_0x27e10c=_0x27e10c-0x1ae;const _0x27bd06=a236_0x27bd();let _0x2a93ae=_0x27bd06[_0x27e10c];return _0x2a93ae;}function a236_0x27bd(){const _0xdfab45=['351mGjBhB','4283900rLCXoJ','6lJrRcv','1WdpluT','chmodSync','477NCQaEl','6200159zuAxVQ','2764iuBiIs','mode','468432JaOhFe','mkdirSync','existsSync','2432793sblXwi','toString','426842XhZBEr','Warning:\x20','85870RkGSTJ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname','warn'];a236_0x27bd=function(){return _0xdfab45;};return a236_0x27bd();}
1
+ (function(_0x56852e,_0x56472f){const _0x7f35e6=a238_0x15ad,_0x3a1bd5=_0x56852e();while(!![]){try{const _0x4bd7ba=-parseInt(_0x7f35e6(0x19a))/0x1*(-parseInt(_0x7f35e6(0x1a6))/0x2)+-parseInt(_0x7f35e6(0x19e))/0x3*(parseInt(_0x7f35e6(0x1a5))/0x4)+parseInt(_0x7f35e6(0x1a2))/0x5+-parseInt(_0x7f35e6(0x199))/0x6*(parseInt(_0x7f35e6(0x1a8))/0x7)+-parseInt(_0x7f35e6(0x19c))/0x8+-parseInt(_0x7f35e6(0x1a9))/0x9*(-parseInt(_0x7f35e6(0x19f))/0xa)+parseInt(_0x7f35e6(0x197))/0xb;if(_0x4bd7ba===_0x56472f)break;else _0x3a1bd5['push'](_0x3a1bd5['shift']());}catch(_0x562baf){_0x3a1bd5['push'](_0x3a1bd5['shift']());}}}(a238_0x2f35,0x9bd86));import*as a238_0x34742d from'node:fs';import*as a238_0x441a6a from'node:path';function a238_0x15ad(_0x13d5f4,_0x5dbe9a){_0x13d5f4=_0x13d5f4-0x196;const _0x2f355c=a238_0x2f35();let _0x15ad78=_0x2f355c[_0x13d5f4];return _0x15ad78;}export function setSecureFilePermissions(_0x2a5921){const _0x55c886=a238_0x15ad;try{a238_0x34742d[_0x55c886(0x198)](_0x2a5921,0x180);}catch{console[_0x55c886(0x19b)](_0x55c886(0x1ab)+_0x2a5921);}}function a238_0x2f35(){const _0x409e6b=['existsSync','11420761cMYhLl','chmodSync','12GcPjgG','211431VvYTcE','warn','7731312aqmPvq',').\x20','27GXDtcu','50620TYoCTk','toString','dirname','5397100ofGLzb','statSync','\x20has\x20insecure\x20permissions\x20(','514844joyYwt','4grAAth','Warning:\x20','1151976GiTzfv','981WYWutA','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync'];a238_0x2f35=function(){return _0x409e6b;};return a238_0x2f35();}export function setSecureDirectoryPermissions(_0x37fe74){const _0x5d6c7f=a238_0x15ad;try{a238_0x34742d[_0x5d6c7f(0x198)](_0x37fe74,0x1c0);}catch{console['warn'](_0x5d6c7f(0x1ab)+_0x37fe74);}}export function createSecureDirectory(_0x1d2fa7){const _0x14b427=a238_0x15ad;!a238_0x34742d[_0x14b427(0x196)](_0x1d2fa7)&&(a238_0x34742d['mkdirSync'](_0x1d2fa7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1d2fa7));}export function validateSecureFilePermissions(_0x183117){const _0x5916a5=a238_0x15ad;try{const _0x8c301a=a238_0x34742d[_0x5916a5(0x1a3)](_0x183117),_0x4ee861=_0x8c301a['mode']&0x1ff,_0x21437b=(_0x4ee861&0x3f)!==0x0;if(_0x21437b)return console[_0x5916a5(0x19b)](_0x5916a5(0x1a7)+_0x183117+_0x5916a5(0x1a4)+_0x4ee861[_0x5916a5(0x1a0)](0x8)+_0x5916a5(0x19d)+_0x5916a5(0x1aa)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x50c6e7,_0x5350ea){const _0xfaf5f3=a238_0x15ad,_0x2c5f97=a238_0x441a6a[_0xfaf5f3(0x1a1)](_0x50c6e7);createSecureDirectory(_0x2c5f97),a238_0x34742d[_0xfaf5f3(0x1ac)](_0x50c6e7,_0x5350ea,{'mode':0x180}),setSecureFilePermissions(_0x50c6e7);}
@@ -1 +1 @@
1
- function a237_0x5cb9(_0x2c79f9,_0x5dc1f4){_0x2c79f9=_0x2c79f9-0x1a8;const _0x5ae3fe=a237_0x5ae3();let _0x5cb96a=_0x5ae3fe[_0x2c79f9];return _0x5cb96a;}(function(_0x13d597,_0x280e4c){const _0x2bc27e=a237_0x5cb9,_0x13f891=_0x13d597();while(!![]){try{const _0x4cbc68=parseInt(_0x2bc27e(0x1b8))/0x1*(-parseInt(_0x2bc27e(0x1b6))/0x2)+-parseInt(_0x2bc27e(0x1ae))/0x3*(-parseInt(_0x2bc27e(0x1b1))/0x4)+parseInt(_0x2bc27e(0x1b5))/0x5+-parseInt(_0x2bc27e(0x1bb))/0x6*(-parseInt(_0x2bc27e(0x1b7))/0x7)+parseInt(_0x2bc27e(0x1a8))/0x8+-parseInt(_0x2bc27e(0x1ac))/0x9+-parseInt(_0x2bc27e(0x1aa))/0xa;if(_0x4cbc68===_0x280e4c)break;else _0x13f891['push'](_0x13f891['shift']());}catch(_0x35d646){_0x13f891['push'](_0x13f891['shift']());}}}(a237_0x5ae3,0xbeb6f));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a237_0x5ae3(){const _0x66c20f=['4109410WDLbWM','891130OUQGtq','189ZEqTjr','3vIgrbV','ENOENT','\x27:\x20','337686sxxDmJ','1205472GDEcdr','Permission\x20denied\x20reading\x20file\x20\x27','11142090oMtWNt','File\x20\x27','6656220fwSSMb','EACCES','1479498gaKtab','code','message','12JAPNXB','\x27\x20not\x20found','PERMISSION_DENIED','NOT_FOUND'];a237_0x5ae3=function(){return _0x66c20f;};return a237_0x5ae3();}export function readFileContent(_0x31611e){const _0x2c436b=a237_0x5cb9;try{return readFileSync(_0x31611e,'utf-8');}catch(_0x3065da){const _0x41a398=_0x3065da[_0x2c436b(0x1af)];if(_0x41a398===_0x2c436b(0x1b9))throw new SDKError(ErrorCode[_0x2c436b(0x1b4)],_0x2c436b(0x1ab)+_0x31611e+_0x2c436b(0x1b2),_0x3065da);else{if(_0x41a398===_0x2c436b(0x1ad))throw new SDKError(ErrorCode[_0x2c436b(0x1b3)],_0x2c436b(0x1a9)+_0x31611e+'\x27',_0x3065da);else throw new SDKError(ErrorCode['INTERNAL'],'Error\x20reading\x20file\x20\x27'+_0x31611e+_0x2c436b(0x1ba)+_0x3065da[_0x2c436b(0x1b0)],_0x3065da);}}}
1
+ function a239_0x17d8(){const _0x18068e=['3847656XeTUZx','7HxZbHE','468215kdNwyH','INTERNAL','message','EACCES','2107551XhrgRv','NOT_FOUND','\x27\x20not\x20found','1509230nGnwHG','utf-8','Error\x20reading\x20file\x20\x27','11517050UnfmAv','\x27:\x20','9257280jjWERy','1439081LwyRHe','ENOENT','9WQyNZa','4BUsnPu'];a239_0x17d8=function(){return _0x18068e;};return a239_0x17d8();}(function(_0x36b9cb,_0x38ef71){const _0x45e026=a239_0x384f,_0x4fde33=_0x36b9cb();while(!![]){try{const _0x5b3cd1=parseInt(_0x45e026(0x16c))/0x1+parseInt(_0x45e026(0x179))/0x2+parseInt(_0x45e026(0x176))/0x3*(parseInt(_0x45e026(0x16f))/0x4)+parseInt(_0x45e026(0x172))/0x5+-parseInt(_0x45e026(0x17e))/0x6+-parseInt(_0x45e026(0x171))/0x7*(-parseInt(_0x45e026(0x170))/0x8)+-parseInt(_0x45e026(0x16e))/0x9*(parseInt(_0x45e026(0x17c))/0xa);if(_0x5b3cd1===_0x38ef71)break;else _0x4fde33['push'](_0x4fde33['shift']());}catch(_0x336b81){_0x4fde33['push'](_0x4fde33['shift']());}}}(a239_0x17d8,0xbd824));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a239_0x384f(_0x54195f,_0x4b58d3){_0x54195f=_0x54195f-0x16c;const _0x17d8b2=a239_0x17d8();let _0x384f35=_0x17d8b2[_0x54195f];return _0x384f35;}export function readFileContent(_0x3a4371){const _0x1eb8e6=a239_0x384f;try{return readFileSync(_0x3a4371,_0x1eb8e6(0x17a));}catch(_0x2c44d7){const _0x4e10c0=_0x2c44d7['code'];if(_0x4e10c0===_0x1eb8e6(0x16d))throw new SDKError(ErrorCode[_0x1eb8e6(0x177)],'File\x20\x27'+_0x3a4371+_0x1eb8e6(0x178),_0x2c44d7);else{if(_0x4e10c0===_0x1eb8e6(0x175))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x3a4371+'\x27',_0x2c44d7);else throw new SDKError(ErrorCode[_0x1eb8e6(0x173)],_0x1eb8e6(0x17b)+_0x3a4371+_0x1eb8e6(0x17d)+_0x2c44d7[_0x1eb8e6(0x174)],_0x2c44d7);}}}
@@ -1 +1 @@
1
- function a238_0x2239(_0x4cf8a4,_0x4a75d1){_0x4cf8a4=_0x4cf8a4-0x174;const _0x37907b=a238_0x3790();let _0x223989=_0x37907b[_0x4cf8a4];return _0x223989;}(function(_0x48942d,_0x4bb658){const _0x581859=a238_0x2239,_0x41d6f7=_0x48942d();while(!![]){try{const _0x312e9b=-parseInt(_0x581859(0x17b))/0x1+-parseInt(_0x581859(0x190))/0x2+-parseInt(_0x581859(0x189))/0x3*(parseInt(_0x581859(0x18e))/0x4)+-parseInt(_0x581859(0x186))/0x5+parseInt(_0x581859(0x188))/0x6+parseInt(_0x581859(0x18d))/0x7*(parseInt(_0x581859(0x17e))/0x8)+-parseInt(_0x581859(0x18f))/0x9*(-parseInt(_0x581859(0x17c))/0xa);if(_0x312e9b===_0x4bb658)break;else _0x41d6f7['push'](_0x41d6f7['shift']());}catch(_0x4d8e60){_0x41d6f7['push'](_0x41d6f7['shift']());}}}(a238_0x3790,0xba774));import*as a238_0x593ffc from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x593b6a,_0xcf1268,_0x498a0b){const _0x42e4a2=a238_0x2239,_0x171758=_0x593b6a+'/'+_0xcf1268,_0x57f3be=cache[_0x42e4a2(0x18a)](_0x171758);if(_0x57f3be&&Date[_0x42e4a2(0x18c)]()-_0x57f3be[_0x42e4a2(0x17d)]<CACHE_TTL_MS)return Promise[_0x42e4a2(0x185)](_0x57f3be[_0x42e4a2(0x175)]);return new Promise((_0x5a2f91,_0x46030c)=>{const _0x202306=_0x42e4a2,_0x2d9326={'hostname':_0x202306(0x176),'path':'/repos/'+_0x593b6a+'/'+_0xcf1268+_0x202306(0x181),'headers':{'User-Agent':_0x498a0b,'Accept':_0x202306(0x187)},'timeout':REQUEST_TIMEOUT_MS},_0x3b950a=a238_0x593ffc[_0x202306(0x18a)](_0x2d9326,_0x334d5b=>{const _0xe402c1=_0x202306;let _0x225900='';_0x334d5b['on']('data',_0x1feb4d=>{const _0x33806b=a238_0x2239;_0x225900+=_0x1feb4d[_0x33806b(0x178)]();}),_0x334d5b['on'](_0xe402c1(0x17a),()=>{const _0x5d7f5c=_0xe402c1;if(_0x334d5b[_0x5d7f5c(0x177)]!==0xc8){_0x46030c(new Error(_0x5d7f5c(0x191)+_0x334d5b[_0x5d7f5c(0x177)]+':\x20'+_0x225900[_0x5d7f5c(0x18b)](0x0,0xc8)));return;}try{const _0xfeb14d=JSON['parse'](_0x225900);cache[_0x5d7f5c(0x174)](_0x171758,{'releases':_0xfeb14d,'fetchedAt':Date[_0x5d7f5c(0x18c)]()}),_0x5a2f91(_0xfeb14d);}catch(_0x481cb0){_0x46030c(_0x481cb0);}});});_0x3b950a['on'](_0x202306(0x180),()=>{const _0x7f1275=_0x202306;_0x3b950a[_0x7f1275(0x183)](),_0x46030c(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x3b950a['on'](_0x202306(0x179),_0x46030c);});}function a238_0x3790(){const _0x3c6546=['4360LpmTjP','fetchedAt','4464pVngHB','length','timeout','/releases?per_page=20','tag_name','destroy','next','resolve','3045210SFpCre','application/vnd.github+json','2973294cKAPtE','8406VKuaec','get','slice','now','4228oWeZmR','1864TxZpIo','65502RvkfeW','1513806ImebFz','GitHub\x20API\x20returned\x20','set','releases','api.github.com','statusCode','toString','error','end','570348GFvXvu'];a238_0x3790=function(){return _0x3c6546;};return a238_0x3790();}export async function resolveReleaseTag(_0x23bd2c,_0x2d175a,_0x2a81cb,_0x430e02){const _0x966d7b=a238_0x2239;if(_0x23bd2c===_0x966d7b(0x184))return null;const _0x1c9c75=await fetchGitHubReleases(_0x2d175a,_0x2a81cb,_0x430e02);if(_0x1c9c75[_0x966d7b(0x17f)]===0x0)return null;const _0x1fc672=_0x1c9c75['find'](_0x33b1f8=>!_0x33b1f8['prerelease']);return _0x1fc672?_0x1fc672[_0x966d7b(0x182)]:null;}
1
+ (function(_0x408b78,_0x2f6fe1){const _0x5ea674=a240_0x5e40,_0x46ca68=_0x408b78();while(!![]){try{const _0x1d3882=parseInt(_0x5ea674(0x1a0))/0x1+parseInt(_0x5ea674(0x193))/0x2+-parseInt(_0x5ea674(0x1a8))/0x3+parseInt(_0x5ea674(0x199))/0x4+-parseInt(_0x5ea674(0x192))/0x5+-parseInt(_0x5ea674(0x1a2))/0x6*(-parseInt(_0x5ea674(0x1a3))/0x7)+parseInt(_0x5ea674(0x1a9))/0x8*(parseInt(_0x5ea674(0x1ad))/0x9);if(_0x1d3882===_0x2f6fe1)break;else _0x46ca68['push'](_0x46ca68['shift']());}catch(_0x574287){_0x46ca68['push'](_0x46ca68['shift']());}}}(a240_0x9385,0xb5f89));import*as a240_0x3e3b95 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x58ae1d,_0x595ed0,_0x3fb711){const _0x57ccdb=a240_0x5e40,_0x20e7c7=_0x58ae1d+'/'+_0x595ed0,_0x13dd42=cache[_0x57ccdb(0x19f)](_0x20e7c7);if(_0x13dd42&&Date[_0x57ccdb(0x1ac)]()-_0x13dd42[_0x57ccdb(0x19c)]<CACHE_TTL_MS)return Promise[_0x57ccdb(0x198)](_0x13dd42['releases']);return new Promise((_0x3eaaa4,_0xdfc45b)=>{const _0x2917ce=_0x57ccdb,_0x36d44f={'hostname':_0x2917ce(0x1aa),'path':_0x2917ce(0x1a6)+_0x58ae1d+'/'+_0x595ed0+_0x2917ce(0x19a),'headers':{'User-Agent':_0x3fb711,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x2f1cb6=a240_0x3e3b95[_0x2917ce(0x19f)](_0x36d44f,_0x3191cf=>{const _0x572f13=_0x2917ce;let _0x3340e2='';_0x3191cf['on'](_0x572f13(0x19d),_0x581c85=>{const _0x43805d=_0x572f13;_0x3340e2+=_0x581c85[_0x43805d(0x196)]();}),_0x3191cf['on'](_0x572f13(0x1ab),()=>{const _0x5055ab=_0x572f13;if(_0x3191cf['statusCode']!==0xc8){_0xdfc45b(new Error(_0x5055ab(0x191)+_0x3191cf[_0x5055ab(0x19e)]+':\x20'+_0x3340e2[_0x5055ab(0x197)](0x0,0xc8)));return;}try{const _0x68bca4=JSON[_0x5055ab(0x1a5)](_0x3340e2);cache[_0x5055ab(0x19b)](_0x20e7c7,{'releases':_0x68bca4,'fetchedAt':Date['now']()}),_0x3eaaa4(_0x68bca4);}catch(_0x3b5255){_0xdfc45b(_0x3b5255);}});});_0x2f1cb6['on'](_0x2917ce(0x1a4),()=>{const _0x53731b=_0x2917ce;_0x2f1cb6[_0x53731b(0x195)](),_0xdfc45b(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x2f1cb6['on']('error',_0xdfc45b);});}function a240_0x5e40(_0x4a1756,_0x3ca886){_0x4a1756=_0x4a1756-0x190;const _0x9385b6=a240_0x9385();let _0x5e4022=_0x9385b6[_0x4a1756];return _0x5e4022;}export async function resolveReleaseTag(_0x56215c,_0x4ef01c,_0x143f0f,_0x7102c1){const _0x38bf66=a240_0x5e40;if(_0x56215c===_0x38bf66(0x1a1))return null;const _0x2cfc1b=await fetchGitHubReleases(_0x4ef01c,_0x143f0f,_0x7102c1);if(_0x2cfc1b[_0x38bf66(0x194)]===0x0)return null;const _0x64afc0=_0x2cfc1b[_0x38bf66(0x1a7)](_0x55f2ce=>!_0x55f2ce[_0x38bf66(0x190)]);return _0x64afc0?_0x64afc0['tag_name']:null;}function a240_0x9385(){const _0x3fb7d2=['/repos/','find','1301715xYicaB','97976ksAeig','api.github.com','end','now','180qCUMct','prerelease','GitHub\x20API\x20returned\x20','5181315EUIeXY','116986XcYKta','length','destroy','toString','slice','resolve','263476WzClvc','/releases?per_page=20','set','fetchedAt','data','statusCode','get','1244790gUvzdR','next','6Myglza','4210003XRszcU','timeout','parse'];a240_0x9385=function(){return _0x3fb7d2;};return a240_0x9385();}
@@ -1 +1 @@
1
- (function(_0x2b7ea1,_0x251e4c){const _0x446339=a239_0x2aa5,_0xc6e4de=_0x2b7ea1();while(!![]){try{const _0x28c55a=-parseInt(_0x446339(0x10f))/0x1+-parseInt(_0x446339(0x117))/0x2+-parseInt(_0x446339(0x11a))/0x3*(-parseInt(_0x446339(0x110))/0x4)+-parseInt(_0x446339(0x116))/0x5+parseInt(_0x446339(0x115))/0x6+-parseInt(_0x446339(0x111))/0x7+parseInt(_0x446339(0x114))/0x8*(parseInt(_0x446339(0x10d))/0x9);if(_0x28c55a===_0x251e4c)break;else _0xc6e4de['push'](_0xc6e4de['shift']());}catch(_0x517f36){_0xc6e4de['push'](_0xc6e4de['shift']());}}}(a239_0xa094,0xbba26));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x4267d4=a239_0x2aa5;return process.env.TDX_CACHE_DIR||join(homedir(),_0x4267d4(0x11d),_0x4267d4(0x11b));}const registry=new Map();export function registerGlobalCacheKey(_0x1ca752,_0xaec207){const _0x4593f5=a239_0x2aa5,_0x1b8bbb=registry[_0x4593f5(0x112)](_0x1ca752);if(_0x1b8bbb&&_0x1b8bbb!==_0xaec207)throw new Error(_0x4593f5(0x119)+_0x1ca752+_0x4593f5(0x10c)+_0x1b8bbb+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0xaec207+'\x22');registry[_0x4593f5(0x121)](_0x1ca752,_0xaec207);}export function getGlobalCachePath(_0x228a04){return join(getGlobalCacheDir(),_0x228a04);}function ensureGlobalCacheDir(){const _0x28d4af=getGlobalCacheDir();!existsSync(_0x28d4af)&&mkdirSync(_0x28d4af,{'recursive':!![]});}function a239_0xa094(){const _0x24482e=['trim','88AjHCaE','5545266dUHEzU','395390uPlkSH','2471374zwNqJI','utf-8','Global\x20cache\x20key\x20\x22','3IyRGjW','tdx','stringify','.cache','default','replace','{profile}','set','\x22\x20already\x20registered\x20by\x20\x22','1954890nwaCkF','clear','989734pJfnDb','1734152tnyYrM','4718070jgNrim','get'];a239_0xa094=function(){return _0x24482e;};return a239_0xa094();}function a239_0x2aa5(_0x86902a,_0x10c238){_0x86902a=_0x86902a-0x10c;const _0xa094c=a239_0xa094();let _0x2aa53f=_0xa094c[_0x86902a];return _0x2aa53f;}function readCacheJson(_0x5aa925){const _0x357dca=a239_0x2aa5,_0x15b440=getGlobalCachePath(_0x5aa925);if(!existsSync(_0x15b440))return undefined;try{const _0x1c31ad=readFileSync(_0x15b440,_0x357dca(0x118));return JSON['parse'](_0x1c31ad);}catch{return undefined;}}function writeCacheJson(_0x5c6a18,_0x2f6b88){const _0x9f7751=a239_0x2aa5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5c6a18),JSON[_0x9f7751(0x11c)](_0x2f6b88,null,0x2),_0x9f7751(0x118));}function readCacheText(_0xccb598){const _0x423b7e=a239_0x2aa5,_0x5c3a46=getGlobalCachePath(_0xccb598);if(!existsSync(_0x5c3a46))return undefined;try{return readFileSync(_0x5c3a46,_0x423b7e(0x118));}catch{return undefined;}}function writeCacheText(_0x1dbb86,_0x107ef2){const _0x105d18=a239_0x2aa5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1dbb86),_0x107ef2,_0x105d18(0x118));}function clearCache(_0x525304){const _0x20da69=getGlobalCachePath(_0x525304);if(existsSync(_0x20da69))try{unlinkSync(_0x20da69);}catch{}}function cacheExists(_0x3b14d3){return existsSync(getGlobalCachePath(_0x3b14d3));}export function createGlobalCache(_0x2cdf93,_0x84acc1){return registerGlobalCacheKey(_0x2cdf93,_0x84acc1),{'read':()=>readCacheJson(_0x2cdf93),'write':_0x522500=>writeCacheJson(_0x2cdf93,_0x522500),'clear':()=>clearCache(_0x2cdf93),'exists':()=>cacheExists(_0x2cdf93),'path':()=>getGlobalCachePath(_0x2cdf93)};}export function createGlobalTextCache(_0x5459c3,_0x16e164){const _0x56faf8=a239_0x2aa5;return registerGlobalCacheKey(_0x5459c3,_0x16e164),{'read':()=>readCacheText(_0x5459c3)?.[_0x56faf8(0x113)]()||undefined,'write':_0x426675=>writeCacheText(_0x5459c3,_0x426675),'clear':()=>clearCache(_0x5459c3),'exists':()=>cacheExists(_0x5459c3),'path':()=>getGlobalCachePath(_0x5459c3)};}export function createProfileCache(_0x49186c,_0x46c5ac){const _0x45d1b5=_0x3a2f1d=>{const _0x3c8ea5=a239_0x2aa5,_0x590023=_0x3a2f1d||_0x3c8ea5(0x11e);return _0x49186c[_0x3c8ea5(0x11f)](_0x3c8ea5(0x120),_0x590023);};return{'read':_0x5b5ff6=>{const _0x2ca5d3=_0x45d1b5(_0x5b5ff6);return registerGlobalCacheKey(_0x2ca5d3,_0x46c5ac),readCacheJson(_0x2ca5d3);},'write':(_0x573af2,_0x4f50f8)=>{const _0x595a83=_0x45d1b5(_0x573af2);registerGlobalCacheKey(_0x595a83,_0x46c5ac),writeCacheJson(_0x595a83,_0x4f50f8);},'clear':_0x2ab4ae=>{const _0x51f1f2=_0x45d1b5(_0x2ab4ae);clearCache(_0x51f1f2);},'exists':_0x45c6ab=>{const _0x59f42f=_0x45d1b5(_0x45c6ab);return cacheExists(_0x59f42f);},'path':_0x4ec11c=>{const _0x328941=_0x45d1b5(_0x4ec11c);return getGlobalCachePath(_0x328941);}};}export function createOptionalProfileCache(_0x1ebe10,_0x27b27d,_0x3da1e7={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3da1e7,_0x39b0ba=_0x2d485d=>{return _0x2d485d?''+_0x1ebe10+profileSeparator+_0x2d485d+suffix:''+_0x1ebe10+suffix;};return{'read':_0x515483=>{const _0x5813d5=_0x39b0ba(_0x515483);return registerGlobalCacheKey(_0x5813d5,_0x27b27d),readCacheJson(_0x5813d5);},'write':(_0x3a3c83,_0x28a51f)=>{const _0x4387a5=_0x39b0ba(_0x28a51f);registerGlobalCacheKey(_0x4387a5,_0x27b27d),writeCacheJson(_0x4387a5,_0x3a3c83);},'clear':_0x2a92b0=>{const _0x95bfff=_0x39b0ba(_0x2a92b0);clearCache(_0x95bfff);},'exists':_0x28a9b6=>{const _0x1c41a6=_0x39b0ba(_0x28a9b6);return cacheExists(_0x1c41a6);},'path':_0x462d60=>{const _0x22a3ac=_0x39b0ba(_0x462d60);return getGlobalCachePath(_0x22a3ac);}};}export function clearGlobalRegistry(){const _0x50783a=a239_0x2aa5;registry[_0x50783a(0x10e)]();}
1
+ (function(_0x296561,_0x210c71){const _0xf2bb03=a241_0x5535,_0x5a1dff=_0x296561();while(!![]){try{const _0x190199=parseInt(_0xf2bb03(0x142))/0x1+-parseInt(_0xf2bb03(0x140))/0x2+parseInt(_0xf2bb03(0x12d))/0x3*(parseInt(_0xf2bb03(0x135))/0x4)+parseInt(_0xf2bb03(0x137))/0x5+-parseInt(_0xf2bb03(0x139))/0x6*(-parseInt(_0xf2bb03(0x134))/0x7)+parseInt(_0xf2bb03(0x136))/0x8*(-parseInt(_0xf2bb03(0x132))/0x9)+-parseInt(_0xf2bb03(0x131))/0xa*(parseInt(_0xf2bb03(0x13d))/0xb);if(_0x190199===_0x210c71)break;else _0x5a1dff['push'](_0x5a1dff['shift']());}catch(_0x305c03){_0x5a1dff['push'](_0x5a1dff['shift']());}}}(a241_0x43ee,0x7f167));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x2be228=a241_0x5535;return process.env.TDX_CACHE_DIR||join(homedir(),_0x2be228(0x13c),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x286313,_0x22a871){const _0x4bd235=a241_0x5535,_0x591ff7=registry[_0x4bd235(0x13a)](_0x286313);if(_0x591ff7&&_0x591ff7!==_0x22a871)throw new Error(_0x4bd235(0x133)+_0x286313+_0x4bd235(0x12e)+_0x591ff7+_0x4bd235(0x13f)+_0x22a871+'\x22');registry[_0x4bd235(0x130)](_0x286313,_0x22a871);}export function getGlobalCachePath(_0x2542e3){return join(getGlobalCacheDir(),_0x2542e3);}function ensureGlobalCacheDir(){const _0x167129=getGlobalCacheDir();!existsSync(_0x167129)&&mkdirSync(_0x167129,{'recursive':!![]});}function readCacheJson(_0x3eee0c){const _0x1ccd15=getGlobalCachePath(_0x3eee0c);if(!existsSync(_0x1ccd15))return undefined;try{const _0xe4ba4e=readFileSync(_0x1ccd15,'utf-8');return JSON['parse'](_0xe4ba4e);}catch{return undefined;}}function writeCacheJson(_0x3c27e4,_0x17755e){const _0x15e264=a241_0x5535;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3c27e4),JSON['stringify'](_0x17755e,null,0x2),_0x15e264(0x13e));}function readCacheText(_0x12b0c4){const _0x22384d=getGlobalCachePath(_0x12b0c4);if(!existsSync(_0x22384d))return undefined;try{return readFileSync(_0x22384d,'utf-8');}catch{return undefined;}}function a241_0x43ee(){const _0xb23a2d=['9DNcKRg','Global\x20cache\x20key\x20\x22','2942191dNrxmA','777772yrDsYT','3948728Ckwlvq','4525845BnMVbW','default','6jQEnHB','get','{profile}','.cache','11hAzBrt','utf-8','\x22,\x20cannot\x20register\x20for\x20\x22','777834QniSyW','clear','268256OArvbM','3VPnNoa','\x22\x20already\x20registered\x20by\x20\x22','replace','set','3851220gENHBW'];a241_0x43ee=function(){return _0xb23a2d;};return a241_0x43ee();}function writeCacheText(_0x26bcad,_0x1e6392){const _0x431d6d=a241_0x5535;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x26bcad),_0x1e6392,_0x431d6d(0x13e));}function clearCache(_0x597b21){const _0x170e3d=getGlobalCachePath(_0x597b21);if(existsSync(_0x170e3d))try{unlinkSync(_0x170e3d);}catch{}}function cacheExists(_0x4467e7){return existsSync(getGlobalCachePath(_0x4467e7));}export function createGlobalCache(_0x1809f7,_0x1d3080){return registerGlobalCacheKey(_0x1809f7,_0x1d3080),{'read':()=>readCacheJson(_0x1809f7),'write':_0x3d56cf=>writeCacheJson(_0x1809f7,_0x3d56cf),'clear':()=>clearCache(_0x1809f7),'exists':()=>cacheExists(_0x1809f7),'path':()=>getGlobalCachePath(_0x1809f7)};}export function createGlobalTextCache(_0x4ad410,_0x1308b0){return registerGlobalCacheKey(_0x4ad410,_0x1308b0),{'read':()=>readCacheText(_0x4ad410)?.['trim']()||undefined,'write':_0xdb4226=>writeCacheText(_0x4ad410,_0xdb4226),'clear':()=>clearCache(_0x4ad410),'exists':()=>cacheExists(_0x4ad410),'path':()=>getGlobalCachePath(_0x4ad410)};}export function createProfileCache(_0x58652b,_0x38e353){const _0x57009b=_0x264887=>{const _0x351c4e=a241_0x5535,_0x2bbf0c=_0x264887||_0x351c4e(0x138);return _0x58652b[_0x351c4e(0x12f)](_0x351c4e(0x13b),_0x2bbf0c);};return{'read':_0x3a9644=>{const _0x4158c6=_0x57009b(_0x3a9644);return registerGlobalCacheKey(_0x4158c6,_0x38e353),readCacheJson(_0x4158c6);},'write':(_0x4a9199,_0x890364)=>{const _0x27c8f0=_0x57009b(_0x4a9199);registerGlobalCacheKey(_0x27c8f0,_0x38e353),writeCacheJson(_0x27c8f0,_0x890364);},'clear':_0x2447b5=>{const _0x344584=_0x57009b(_0x2447b5);clearCache(_0x344584);},'exists':_0x50ac22=>{const _0x5b46dc=_0x57009b(_0x50ac22);return cacheExists(_0x5b46dc);},'path':_0x26e95d=>{const _0x432e99=_0x57009b(_0x26e95d);return getGlobalCachePath(_0x432e99);}};}export function createOptionalProfileCache(_0x2533fd,_0x58001d,_0x2dc0b6={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2dc0b6,_0x3dad14=_0x3c0442=>{return _0x3c0442?''+_0x2533fd+profileSeparator+_0x3c0442+suffix:''+_0x2533fd+suffix;};return{'read':_0xf7605e=>{const _0x4b3d3f=_0x3dad14(_0xf7605e);return registerGlobalCacheKey(_0x4b3d3f,_0x58001d),readCacheJson(_0x4b3d3f);},'write':(_0x170ce6,_0x4d61e9)=>{const _0x548fa0=_0x3dad14(_0x4d61e9);registerGlobalCacheKey(_0x548fa0,_0x58001d),writeCacheJson(_0x548fa0,_0x170ce6);},'clear':_0x31e86b=>{const _0x4c947d=_0x3dad14(_0x31e86b);clearCache(_0x4c947d);},'exists':_0x7cc0e4=>{const _0x5b355a=_0x3dad14(_0x7cc0e4);return cacheExists(_0x5b355a);},'path':_0xb7a2a2=>{const _0x3bd8fa=_0x3dad14(_0xb7a2a2);return getGlobalCachePath(_0x3bd8fa);}};}function a241_0x5535(_0x2d67e6,_0x5b013c){_0x2d67e6=_0x2d67e6-0x12d;const _0x43ee93=a241_0x43ee();let _0x5535ef=_0x43ee93[_0x2d67e6];return _0x5535ef;}export function clearGlobalRegistry(){const _0x4c24ef=a241_0x5535;registry[_0x4c24ef(0x141)]();}
@@ -1 +1 @@
1
- (function(_0x135601,_0x40cbaa){const _0x1b3af6=a240_0x269c,_0xe6b1f8=_0x135601();while(!![]){try{const _0x51fc0c=-parseInt(_0x1b3af6(0x14a))/0x1*(parseInt(_0x1b3af6(0x141))/0x2)+parseInt(_0x1b3af6(0x149))/0x3*(parseInt(_0x1b3af6(0x135))/0x4)+parseInt(_0x1b3af6(0x133))/0x5+parseInt(_0x1b3af6(0x13e))/0x6+parseInt(_0x1b3af6(0x13d))/0x7*(-parseInt(_0x1b3af6(0x132))/0x8)+-parseInt(_0x1b3af6(0x14b))/0x9*(parseInt(_0x1b3af6(0x13b))/0xa)+-parseInt(_0x1b3af6(0x138))/0xb*(-parseInt(_0x1b3af6(0x130))/0xc);if(_0x51fc0c===_0x40cbaa)break;else _0xe6b1f8['push'](_0xe6b1f8['shift']());}catch(_0x401d16){_0xe6b1f8['push'](_0xe6b1f8['shift']());}}}(a240_0x45a4,0x21a8b));import{readFile}from'fs/promises';function a240_0x269c(_0x285546,_0x14aa49){_0x285546=_0x285546-0x130;const _0x45a42f=a240_0x45a4();let _0x269c4b=_0x45a42f[_0x285546];return _0x269c4b;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x56a5b0,_0x4a6464){const _0x54a20d=a240_0x269c;try{if(_0x4a6464){const _0x1c5253=await readFile(_0x56a5b0,_0x54a20d(0x147));try{return JSON[_0x54a20d(0x137)](_0x1c5253);}catch(_0x489f9e){throw new SDKError(ErrorCode[_0x54a20d(0x13a)],_0x54a20d(0x146)+_0x56a5b0+_0x54a20d(0x134)+(_0x489f9e instanceof Error?_0x489f9e[_0x54a20d(0x143)]:String(_0x489f9e)));}}else try{return JSON[_0x54a20d(0x137)](_0x56a5b0);}catch(_0x3f0bb6){throw new SDKError(ErrorCode[_0x54a20d(0x13a)],_0x54a20d(0x13c)+(_0x3f0bb6 instanceof Error?_0x3f0bb6[_0x54a20d(0x143)]:String(_0x3f0bb6)));}}catch(_0x20fb09){if(_0x20fb09 instanceof SDKError)throw _0x20fb09;if(_0x20fb09 instanceof Error&&_0x54a20d(0x145)in _0x20fb09){const _0x5446ab=_0x20fb09;if(_0x5446ab[_0x54a20d(0x145)]===_0x54a20d(0x140))throw new SDKError(ErrorCode[_0x54a20d(0x14c)],_0x54a20d(0x142)+_0x56a5b0);else{if(_0x5446ab[_0x54a20d(0x145)]===_0x54a20d(0x136))throw new SDKError(ErrorCode[_0x54a20d(0x13f)],_0x54a20d(0x139)+_0x56a5b0);}}throw new SDKError(ErrorCode[_0x54a20d(0x131)],_0x54a20d(0x144)+(_0x20fb09 instanceof Error?_0x20fb09[_0x54a20d(0x143)]:String(_0x20fb09)));}}export async function loadJSONFromOptions(_0x4955df,_0x38a025){const _0x27ce4d=a240_0x269c;if(_0x4955df&&_0x38a025)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x27ce4d(0x148));if(_0x4955df)return await loadJSON(_0x4955df,![]);if(_0x38a025)return await loadJSON(_0x38a025,!![]);return undefined;}function a240_0x45a4(){const _0x4898dd=['NOT_FOUND','34584gGImtD','INTERNAL','1643536JcVinu','407275cwuWLb','\x27:\x20','73532ZLniKg','EACCES','parse','1243XLxRBM','Permission\x20denied\x20reading\x20file:\x20','INVALID_ARGUMENT','10HwDrQu','Invalid\x20JSON\x20string:\x20','7iFPtCU','1530762yDjzcp','PERMISSION_DENIED','ENOENT','6066TjkymY','File\x20not\x20found:\x20','message','Failed\x20to\x20load\x20JSON:\x20','code','Invalid\x20JSON\x20in\x20file\x20\x27','utf-8','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','15yVmxiq','84thFgAS','1404738klsNWa'];a240_0x45a4=function(){return _0x4898dd;};return a240_0x45a4();}
1
+ (function(_0x4a3228,_0x37e48e){const _0x3ae5e6=a242_0xb538,_0x312a85=_0x4a3228();while(!![]){try{const _0x5ad70a=-parseInt(_0x3ae5e6(0x1ab))/0x1+parseInt(_0x3ae5e6(0x1ae))/0x2+-parseInt(_0x3ae5e6(0x1b8))/0x3+-parseInt(_0x3ae5e6(0x1ac))/0x4+-parseInt(_0x3ae5e6(0x1af))/0x5+parseInt(_0x3ae5e6(0x1b4))/0x6+parseInt(_0x3ae5e6(0x1a7))/0x7;if(_0x5ad70a===_0x37e48e)break;else _0x312a85['push'](_0x312a85['shift']());}catch(_0x5ac478){_0x312a85['push'](_0x312a85['shift']());}}}(a242_0x34bb,0x658f3));function a242_0x34bb(){const _0x45999f=['EACCES','Invalid\x20JSON\x20in\x20file\x20\x27','1281780kuenjV','PERMISSION_DENIED','NOT_FOUND','parse','1990560mNiUCD','message','INVALID_ARGUMENT','11099102wewJfz','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','utf-8','code','186383nrhASC','1280540kGSGUU','Invalid\x20JSON\x20string:\x20','295346rHSFtJ','1804320aidamO','ENOENT','\x27:\x20'];a242_0x34bb=function(){return _0x45999f;};return a242_0x34bb();}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a242_0xb538(_0x24d1a8,_0xd36b2c){_0x24d1a8=_0x24d1a8-0x1a5;const _0x34bb47=a242_0x34bb();let _0xb538da=_0x34bb47[_0x24d1a8];return _0xb538da;}export async function loadJSON(_0x549c08,_0x3ef1f1){const _0xd861d8=a242_0xb538;try{if(_0x3ef1f1){const _0x292303=await readFile(_0x549c08,_0xd861d8(0x1a9));try{return JSON[_0xd861d8(0x1b7)](_0x292303);}catch(_0x532c90){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0xd861d8(0x1b3)+_0x549c08+_0xd861d8(0x1b1)+(_0x532c90 instanceof Error?_0x532c90[_0xd861d8(0x1a5)]:String(_0x532c90)));}}else try{return JSON[_0xd861d8(0x1b7)](_0x549c08);}catch(_0x4f8429){throw new SDKError(ErrorCode[_0xd861d8(0x1a6)],_0xd861d8(0x1ad)+(_0x4f8429 instanceof Error?_0x4f8429[_0xd861d8(0x1a5)]:String(_0x4f8429)));}}catch(_0x3a2721){if(_0x3a2721 instanceof SDKError)throw _0x3a2721;if(_0x3a2721 instanceof Error&&_0xd861d8(0x1aa)in _0x3a2721){const _0x1b5773=_0x3a2721;if(_0x1b5773[_0xd861d8(0x1aa)]===_0xd861d8(0x1b0))throw new SDKError(ErrorCode[_0xd861d8(0x1b6)],'File\x20not\x20found:\x20'+_0x549c08);else{if(_0x1b5773[_0xd861d8(0x1aa)]===_0xd861d8(0x1b2))throw new SDKError(ErrorCode[_0xd861d8(0x1b5)],'Permission\x20denied\x20reading\x20file:\x20'+_0x549c08);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3a2721 instanceof Error?_0x3a2721['message']:String(_0x3a2721)));}}export async function loadJSONFromOptions(_0x7002f1,_0x322c82){const _0x395477=a242_0xb538;if(_0x7002f1&&_0x322c82)throw new SDKError(ErrorCode[_0x395477(0x1a6)],_0x395477(0x1a8));if(_0x7002f1)return await loadJSON(_0x7002f1,![]);if(_0x322c82)return await loadJSON(_0x322c82,!![]);return undefined;}
@@ -1 +1 @@
1
- const a241_0x523223=a241_0x317b;(function(_0x1fc3f2,_0x385f5b){const _0x272e5b=a241_0x317b,_0x3802a4=_0x1fc3f2();while(!![]){try{const _0x5aa832=-parseInt(_0x272e5b(0x1a4))/0x1*(parseInt(_0x272e5b(0x1ac))/0x2)+parseInt(_0x272e5b(0x1aa))/0x3+parseInt(_0x272e5b(0x1a2))/0x4*(-parseInt(_0x272e5b(0x1ae))/0x5)+-parseInt(_0x272e5b(0x1ad))/0x6*(parseInt(_0x272e5b(0x1b0))/0x7)+parseInt(_0x272e5b(0x1a6))/0x8+parseInt(_0x272e5b(0x1b5))/0x9+parseInt(_0x272e5b(0x1a5))/0xa*(parseInt(_0x272e5b(0x1b1))/0xb);if(_0x5aa832===_0x385f5b)break;else _0x3802a4['push'](_0x3802a4['shift']());}catch(_0x2e2eb8){_0x3802a4['push'](_0x3802a4['shift']());}}}(a241_0x3b1d,0x26057));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a241_0x523223(0x1b2),registry=new Map();export function registerCacheKey(_0x6207ac,_0xaaa9a1){const _0xb6f69f=a241_0x523223,_0x2e3d78=registry[_0xb6f69f(0x1b4)](_0x6207ac);if(_0x2e3d78&&_0x2e3d78!==_0xaaa9a1)throw new Error(_0xb6f69f(0x1b3)+_0x6207ac+_0xb6f69f(0x1ab)+_0x2e3d78+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0xaaa9a1+'\x22');registry[_0xb6f69f(0x1a7)](_0x6207ac,_0xaaa9a1);}function a241_0x3b1d(){const _0xe6a35e=['set','cwd','stringify','275271HtzZbv','\x22\x20already\x20registered\x20by\x20\x22','2586yzmsFY','278940dusMwl','851315xyMYNO','utf-8','21MccDEB','33NMnyGe','.cache/tdx','Cache\x20key\x20\x22','get','114543FRKMvQ','4WiFiYP','clear','97KJslkw','1073690upjGUd','1314384yNBPqp'];a241_0x3b1d=function(){return _0xe6a35e;};return a241_0x3b1d();}export function getCacheDir(){const _0x388f3d=a241_0x523223,_0x940a38=process[_0x388f3d(0x1a8)](),_0x527ae7=_0x940a38===parse(_0x940a38)['root']?homedir():_0x940a38;return join(_0x527ae7,LOCAL_CACHE_DIR);}export function getCachePath(_0x272e96){return join(getCacheDir(),_0x272e96);}function ensureCacheDir(){const _0x2342bb=getCacheDir();!existsSync(_0x2342bb)&&mkdirSync(_0x2342bb,{'recursive':!![]});}function readCacheJson(_0x465bcb){const _0x3f79d4=getCachePath(_0x465bcb);if(!existsSync(_0x3f79d4))return undefined;try{const _0x2c4d64=readFileSync(_0x3f79d4,'utf-8');return JSON['parse'](_0x2c4d64);}catch{return undefined;}}function writeCacheJson(_0x685259,_0x11abca){const _0x4eebc5=a241_0x523223;ensureCacheDir(),writeFileSync(getCachePath(_0x685259),JSON[_0x4eebc5(0x1a9)](_0x11abca,null,0x2),_0x4eebc5(0x1af));}function a241_0x317b(_0xcb88ad,_0x552fa8){_0xcb88ad=_0xcb88ad-0x1a2;const _0x3b1dec=a241_0x3b1d();let _0x317b47=_0x3b1dec[_0xcb88ad];return _0x317b47;}function readCacheText(_0x17c872){const _0x46afe3=a241_0x523223,_0x290fe7=getCachePath(_0x17c872);if(!existsSync(_0x290fe7))return undefined;try{return readFileSync(_0x290fe7,_0x46afe3(0x1af));}catch{return undefined;}}function writeCacheText(_0x5f99d0,_0x597956){const _0x347ac4=a241_0x523223;ensureCacheDir(),writeFileSync(getCachePath(_0x5f99d0),_0x597956,_0x347ac4(0x1af));}function clearCache(_0x36b06b){const _0x5c7b01=getCachePath(_0x36b06b);if(existsSync(_0x5c7b01))try{unlinkSync(_0x5c7b01);}catch{}}function cacheExists(_0x33532a){return existsSync(getCachePath(_0x33532a));}export function createCache(_0x36e6d5,_0x5e71d6){return registerCacheKey(_0x36e6d5,_0x5e71d6),{'read':()=>readCacheJson(_0x36e6d5),'write':_0x3b5037=>writeCacheJson(_0x36e6d5,_0x3b5037),'clear':()=>clearCache(_0x36e6d5),'exists':()=>cacheExists(_0x36e6d5),'path':()=>getCachePath(_0x36e6d5)};}export function createTextCache(_0x2b1198,_0x4dde0d){return registerCacheKey(_0x2b1198,_0x4dde0d),{'read':()=>readCacheText(_0x2b1198)?.['trim']()||undefined,'write':_0x559c6d=>writeCacheText(_0x2b1198,_0x559c6d),'clear':()=>clearCache(_0x2b1198),'exists':()=>cacheExists(_0x2b1198),'path':()=>getCachePath(_0x2b1198)};}export function clearRegistry(){const _0x2483e3=a241_0x523223;registry[_0x2483e3(0x1a3)]();}
1
+ const a243_0x1233ee=a243_0x3fa5;(function(_0x1671f9,_0x2d46c1){const _0x2cb9e5=a243_0x3fa5,_0x452f07=_0x1671f9();while(!![]){try{const _0x30f850=-parseInt(_0x2cb9e5(0x1b7))/0x1+-parseInt(_0x2cb9e5(0x1c6))/0x2*(-parseInt(_0x2cb9e5(0x1c1))/0x3)+parseInt(_0x2cb9e5(0x1cb))/0x4*(parseInt(_0x2cb9e5(0x1bb))/0x5)+parseInt(_0x2cb9e5(0x1bf))/0x6*(-parseInt(_0x2cb9e5(0x1b8))/0x7)+-parseInt(_0x2cb9e5(0x1be))/0x8*(parseInt(_0x2cb9e5(0x1b9))/0x9)+parseInt(_0x2cb9e5(0x1bd))/0xa*(parseInt(_0x2cb9e5(0x1c8))/0xb)+parseInt(_0x2cb9e5(0x1c0))/0xc;if(_0x30f850===_0x2d46c1)break;else _0x452f07['push'](_0x452f07['shift']());}catch(_0x13ae2c){_0x452f07['push'](_0x452f07['shift']());}}}(a243_0x1529,0xa983a));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a243_0x1233ee(0x1c9),registry=new Map();export function registerCacheKey(_0x2f5853,_0x1efe67){const _0x2897e5=a243_0x1233ee,_0x82223f=registry[_0x2897e5(0x1cd)](_0x2f5853);if(_0x82223f&&_0x82223f!==_0x1efe67)throw new Error('Cache\x20key\x20\x22'+_0x2f5853+_0x2897e5(0x1c5)+_0x82223f+_0x2897e5(0x1ba)+_0x1efe67+'\x22');registry[_0x2897e5(0x1c7)](_0x2f5853,_0x1efe67);}export function getCacheDir(){const _0x51d2e5=a243_0x1233ee,_0x4079d3=process[_0x51d2e5(0x1ca)](),_0x548aaf=_0x4079d3===parse(_0x4079d3)[_0x51d2e5(0x1c3)]?homedir():_0x4079d3;return join(_0x548aaf,LOCAL_CACHE_DIR);}export function getCachePath(_0x49ffc8){return join(getCacheDir(),_0x49ffc8);}function ensureCacheDir(){const _0x41b57f=getCacheDir();!existsSync(_0x41b57f)&&mkdirSync(_0x41b57f,{'recursive':!![]});}function readCacheJson(_0x56e5de){const _0xc35d86=a243_0x1233ee,_0x277362=getCachePath(_0x56e5de);if(!existsSync(_0x277362))return undefined;try{const _0x123714=readFileSync(_0x277362,_0xc35d86(0x1bc));return JSON[_0xc35d86(0x1cc)](_0x123714);}catch{return undefined;}}function writeCacheJson(_0x3de832,_0x37dac6){const _0x56f285=a243_0x1233ee;ensureCacheDir(),writeFileSync(getCachePath(_0x3de832),JSON[_0x56f285(0x1c2)](_0x37dac6,null,0x2),_0x56f285(0x1bc));}function readCacheText(_0x572075){const _0x4c33b1=a243_0x1233ee,_0x28c2e0=getCachePath(_0x572075);if(!existsSync(_0x28c2e0))return undefined;try{return readFileSync(_0x28c2e0,_0x4c33b1(0x1bc));}catch{return undefined;}}function writeCacheText(_0xb9ccc1,_0x3e257e){const _0x5ccfbe=a243_0x1233ee;ensureCacheDir(),writeFileSync(getCachePath(_0xb9ccc1),_0x3e257e,_0x5ccfbe(0x1bc));}function clearCache(_0x589d36){const _0x55bab6=getCachePath(_0x589d36);if(existsSync(_0x55bab6))try{unlinkSync(_0x55bab6);}catch{}}function cacheExists(_0x2dc128){return existsSync(getCachePath(_0x2dc128));}export function createCache(_0x1572b3,_0x5b30b7){return registerCacheKey(_0x1572b3,_0x5b30b7),{'read':()=>readCacheJson(_0x1572b3),'write':_0x1f6a43=>writeCacheJson(_0x1572b3,_0x1f6a43),'clear':()=>clearCache(_0x1572b3),'exists':()=>cacheExists(_0x1572b3),'path':()=>getCachePath(_0x1572b3)};}function a243_0x3fa5(_0x230ecb,_0x52e01b){_0x230ecb=_0x230ecb-0x1b7;const _0x1529ea=a243_0x1529();let _0x3fa5d5=_0x1529ea[_0x230ecb];return _0x3fa5d5;}export function createTextCache(_0x122072,_0x3a6b5e){return registerCacheKey(_0x122072,_0x3a6b5e),{'read':()=>readCacheText(_0x122072)?.['trim']()||undefined,'write':_0x5de716=>writeCacheText(_0x122072,_0x5de716),'clear':()=>clearCache(_0x122072),'exists':()=>cacheExists(_0x122072),'path':()=>getCachePath(_0x122072)};}export function clearRegistry(){const _0x22f023=a243_0x1233ee;registry[_0x22f023(0x1c4)]();}function a243_0x1529(){const _0x15e789=['120IrfagU','128988fzqeUF','14617764HLmrup','3378TDKsEV','stringify','root','clear','\x22\x20already\x20registered\x20by\x20\x22','1072LCsffm','set','781mUVFVl','.cache/tdx','cwd','12yUuGpc','parse','get','1318566pfrXNo','77ZiZiHy','82305NoMfdQ','\x22,\x20cannot\x20register\x20for\x20\x22','845120uvwkWL','utf-8','8140aPtuEK'];a243_0x1529=function(){return _0x15e789;};return a243_0x1529();}