@treasuredata/tdx 2026.4.9 → 2026.4.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (228) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts.map +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-command.js.map +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-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-command.js +1 -1
  27. package/dist/commands/engage-template-pull-command.js +1 -1
  28. package/dist/commands/engage-template-push-command.js +1 -1
  29. package/dist/commands/engage-template-validate-command.js +1 -1
  30. package/dist/commands/job-command.js +1 -1
  31. package/dist/commands/journey-command.js +1 -1
  32. package/dist/commands/journey-validate-command.js +1 -1
  33. package/dist/commands/llm-command.js +1 -1
  34. package/dist/commands/mcp-command.js +1 -1
  35. package/dist/commands/parent-segment-command.js +1 -1
  36. package/dist/commands/policy-command.js +1 -1
  37. package/dist/commands/profile-command.js +1 -1
  38. package/dist/commands/profiles-command.js +1 -1
  39. package/dist/commands/query-command.js +1 -1
  40. package/dist/commands/schedule-command.js +1 -1
  41. package/dist/commands/segment-command.js +1 -1
  42. package/dist/commands/segment-create-command.js +1 -1
  43. package/dist/commands/segment-fields-command.js +1 -1
  44. package/dist/commands/segment-pull-command.js +1 -1
  45. package/dist/commands/segment-push-command.js +1 -1
  46. package/dist/commands/segment-update-command.js +1 -1
  47. package/dist/commands/segment-use-command.js +1 -1
  48. package/dist/commands/segment-validate-command.js +1 -1
  49. package/dist/commands/segments.js +1 -1
  50. package/dist/commands/show.js +1 -1
  51. package/dist/commands/status-command.js +1 -1
  52. package/dist/commands/tables.js +1 -1
  53. package/dist/commands/unset-command.js +1 -1
  54. package/dist/commands/upgrade-command.js +1 -1
  55. package/dist/commands/use-command.js +1 -1
  56. package/dist/commands/user-command.js +1 -1
  57. package/dist/commands/work-command.js +1 -1
  58. package/dist/commands/workflow-command.js +1 -1
  59. package/dist/core/auth.js +1 -1
  60. package/dist/core/command-output.js +1 -1
  61. package/dist/core/config.js +1 -1
  62. package/dist/core/connection-cache.js +1 -1
  63. package/dist/core/constants.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/oauth-keychain.js +1 -1
  68. package/dist/core/oauth.js +1 -1
  69. package/dist/core/profile.js +1 -1
  70. package/dist/core/project-config.js +1 -1
  71. package/dist/core/session.js +1 -1
  72. package/dist/core/user-cache.js +1 -1
  73. package/dist/core/version.js +1 -1
  74. package/dist/index.js +1 -1
  75. package/dist/mcp/server.js +1 -1
  76. package/dist/mcp/tools/index.js +1 -1
  77. package/dist/mcp/tools/tdx-run.js +1 -1
  78. package/dist/mcp/tools/tdx-search.js +1 -1
  79. package/dist/mcp/tools/work-create-item.js +1 -1
  80. package/dist/mcp/utils.js +1 -1
  81. package/dist/proxy/claude-usage-tracker.js +1 -1
  82. package/dist/proxy/passthrough-server.js +1 -1
  83. package/dist/proxy/sse-usage-parser.js +1 -1
  84. package/dist/sdk/agent/agent-config.js +1 -1
  85. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  86. package/dist/sdk/agent/agent-yaml.js +1 -1
  87. package/dist/sdk/agent/test/evaluator.js +1 -1
  88. package/dist/sdk/agent/test/executor.js +1 -1
  89. package/dist/sdk/agent/test/index.js +1 -1
  90. package/dist/sdk/agent/test/output.js +1 -1
  91. package/dist/sdk/agent/test/parser.js +1 -1
  92. package/dist/sdk/agent/tool-target-registry.js +1 -1
  93. package/dist/sdk/api.js +1 -1
  94. package/dist/sdk/cas/cas-api-client.js +1 -1
  95. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  96. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  97. package/dist/sdk/cas/index.js +1 -1
  98. package/dist/sdk/cas/pull-workflow.js +1 -1
  99. package/dist/sdk/cas/push-workflow.js +1 -1
  100. package/dist/sdk/client/cdp-api-client.js +1 -1
  101. package/dist/sdk/client/delivery-api-client.js +1 -1
  102. package/dist/sdk/client/endpoints.js +1 -1
  103. package/dist/sdk/client/engage-api-client.js +1 -1
  104. package/dist/sdk/client/http-client.js +1 -1
  105. package/dist/sdk/client/llm-api-client.js +1 -1
  106. package/dist/sdk/client/oauth-refresh.js +1 -1
  107. package/dist/sdk/client/rate-limiter.js +1 -1
  108. package/dist/sdk/client/td-api-client.js +1 -1
  109. package/dist/sdk/client/trino-api-client.js +1 -1
  110. package/dist/sdk/client/workflow-client.js +1 -1
  111. package/dist/sdk/connection-validator.js +1 -1
  112. package/dist/sdk/connection.js +1 -1
  113. package/dist/sdk/delivery.js +1 -1
  114. package/dist/sdk/engage/campaign-pull.js +1 -1
  115. package/dist/sdk/engage/campaign-push.js +1 -1
  116. package/dist/sdk/engage/campaign-validator.js +1 -1
  117. package/dist/sdk/engage/campaign-yaml.js +1 -1
  118. package/dist/sdk/engage/template-pull.js +1 -1
  119. package/dist/sdk/engage/template-push.js +1 -1
  120. package/dist/sdk/engage/template-validator.js +1 -1
  121. package/dist/sdk/engage/template-yaml.js +1 -1
  122. package/dist/sdk/engage/types/campaign-def.js +1 -1
  123. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  124. package/dist/sdk/engage/types/template-schema.js +1 -1
  125. package/dist/sdk/engage.js +1 -1
  126. package/dist/sdk/errors.js +1 -1
  127. package/dist/sdk/index.js +1 -1
  128. package/dist/sdk/io/index.js +1 -1
  129. package/dist/sdk/io/node-filesystem.js +1 -1
  130. package/dist/sdk/job.js +1 -1
  131. package/dist/sdk/journey.js +1 -1
  132. package/dist/sdk/llm/chat-cache.js +1 -1
  133. package/dist/sdk/llm/index.js +1 -1
  134. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  135. package/dist/sdk/llm/model-factors.js +1 -1
  136. package/dist/sdk/personalization.js +1 -1
  137. package/dist/sdk/policy.js +1 -1
  138. package/dist/sdk/query/index.js +1 -1
  139. package/dist/sdk/query/sql-parser.js +1 -1
  140. package/dist/sdk/realtime.js +1 -1
  141. package/dist/sdk/schedule.js +1 -1
  142. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  143. package/dist/sdk/segment/fields-display.js +1 -1
  144. package/dist/sdk/segment/file-discovery.js +1 -1
  145. package/dist/sdk/segment/journey-utils.js +1 -1
  146. package/dist/sdk/segment/journey-validator.js +1 -1
  147. package/dist/sdk/segment/journey-yaml.js +1 -1
  148. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  149. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  150. package/dist/sdk/segment/pull-workflow.js +1 -1
  151. package/dist/sdk/segment/push-recovery.js +1 -1
  152. package/dist/sdk/segment/push-workflow.js +1 -1
  153. package/dist/sdk/segment/resolution-context.js +1 -1
  154. package/dist/sdk/segment/segment-path-parser.js +1 -1
  155. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  156. package/dist/sdk/segment/segment-validator.js +1 -1
  157. package/dist/sdk/segment/target-resolution.js +1 -1
  158. package/dist/sdk/segment/tdx-config.js +1 -1
  159. package/dist/sdk/segment/types/activation-schema.js +1 -1
  160. package/dist/sdk/segment/types/journey-def.js +1 -1
  161. package/dist/sdk/segment/types/journey-schema.js +1 -1
  162. package/dist/sdk/segment/types/segment-def.js +1 -1
  163. package/dist/sdk/segment/types/segment-schema.js +1 -1
  164. package/dist/sdk/segment/validate-files.js +1 -1
  165. package/dist/sdk/segment/yaml-validator.js +1 -1
  166. package/dist/sdk/segment.js +1 -1
  167. package/dist/sdk/types/index.js +1 -1
  168. package/dist/sdk/types/progress.js +1 -1
  169. package/dist/sdk/types/workspace.js +1 -1
  170. package/dist/sdk/user.js +1 -1
  171. package/dist/sdk/util/format-detector.js +1 -1
  172. package/dist/sdk/util/formatters.js +1 -1
  173. package/dist/sdk/util/index.js +1 -1
  174. package/dist/sdk/util/paginate.js +1 -1
  175. package/dist/sdk/util/tree-formatter.js +1 -1
  176. package/dist/sdk/workflow/archive-validation.js +1 -1
  177. package/dist/sdk/workflow/clone-workflow.js +1 -1
  178. package/dist/sdk/workflow/index.js +1 -1
  179. package/dist/sdk/workflow/pull-workflow.js +1 -1
  180. package/dist/sdk/workflow/push-workflow.js +1 -1
  181. package/dist/sdk/workflow/tdx-config.js +1 -1
  182. package/dist/sdk/workflow/workflow-utils.js +1 -1
  183. package/dist/sdk/workspace/access-tracker.js +1 -1
  184. package/dist/sdk/workspace/frontmatter.js +1 -1
  185. package/dist/sdk/workspace/git.d.ts +52 -0
  186. package/dist/sdk/workspace/git.d.ts.map +1 -1
  187. package/dist/sdk/workspace/git.js +1 -1
  188. package/dist/sdk/workspace/git.js.map +1 -1
  189. package/dist/sdk/workspace/index.d.ts +14 -0
  190. package/dist/sdk/workspace/index.d.ts.map +1 -1
  191. package/dist/sdk/workspace/index.js +1 -1
  192. package/dist/sdk/workspace/index.js.map +1 -1
  193. package/dist/sdk/workspace/templates.js +1 -1
  194. package/dist/sdk/workspace/weekly.js +1 -1
  195. package/dist/sdk/workspace/wikilinks.js +1 -1
  196. package/dist/test-utils/command-runner.js +1 -1
  197. package/dist/test-utils/factories.js +1 -1
  198. package/dist/test-utils/fixtures.js +1 -1
  199. package/dist/test-utils/http-mock.js +1 -1
  200. package/dist/test-utils/index.js +1 -1
  201. package/dist/utils/async.js +1 -1
  202. package/dist/utils/colors.js +1 -1
  203. package/dist/utils/diff.js +1 -1
  204. package/dist/utils/file-permissions.js +1 -1
  205. package/dist/utils/file-reader.js +1 -1
  206. package/dist/utils/github-releases.js +1 -1
  207. package/dist/utils/global-cache.js +1 -1
  208. package/dist/utils/json-loader.js +1 -1
  209. package/dist/utils/local-cache.js +1 -1
  210. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  211. package/dist/utils/logger/formatters/index.js +1 -1
  212. package/dist/utils/logger/handlers/console-handler.js +1 -1
  213. package/dist/utils/logger/handlers/file-handler.js +1 -1
  214. package/dist/utils/logger/handlers/index.js +1 -1
  215. package/dist/utils/logger/handlers/null-handler.js +1 -1
  216. package/dist/utils/logger/index.js +1 -1
  217. package/dist/utils/logger/logger.js +1 -1
  218. package/dist/utils/logger/types.js +1 -1
  219. package/dist/utils/option-validation.js +1 -1
  220. package/dist/utils/process.js +1 -1
  221. package/dist/utils/prompt.js +1 -1
  222. package/dist/utils/spinner.js +1 -1
  223. package/dist/utils/sse-parser.js +1 -1
  224. package/dist/utils/string-utils.js +1 -1
  225. package/dist/utils/table-ref-parser.js +1 -1
  226. package/dist/utils/tdx-logger.js +1 -1
  227. package/dist/utils/version-check.js +1 -1
  228. package/package.json +2 -1
@@ -1 +1 @@
1
- function a203_0x1edb(_0x4728ac,_0x29df83){_0x4728ac=_0x4728ac-0xbd;const _0x370986=a203_0x3709();let _0x1edbd0=_0x370986[_0x4728ac];return _0x1edbd0;}(function(_0x2b2bee,_0x4e1b41){const _0x4a01b6=a203_0x1edb,_0x4703eb=_0x2b2bee();while(!![]){try{const _0x2532ac=-parseInt(_0x4a01b6(0xbe))/0x1*(parseInt(_0x4a01b6(0xe1))/0x2)+-parseInt(_0x4a01b6(0xc5))/0x3+-parseInt(_0x4a01b6(0xc2))/0x4+parseInt(_0x4a01b6(0xbd))/0x5*(parseInt(_0x4a01b6(0xd2))/0x6)+-parseInt(_0x4a01b6(0xd0))/0x7*(-parseInt(_0x4a01b6(0xc8))/0x8)+parseInt(_0x4a01b6(0xdd))/0x9*(-parseInt(_0x4a01b6(0xd5))/0xa)+parseInt(_0x4a01b6(0xde))/0xb*(parseInt(_0x4a01b6(0xdf))/0xc);if(_0x2532ac===_0x4e1b41)break;else _0x4703eb['push'](_0x4703eb['shift']());}catch(_0x26483e){_0x4703eb['push'](_0x4703eb['shift']());}}}(a203_0x3709,0xc7f4b));import*as a203_0x1e47d5 from'node:fs';import*as a203_0x86d4b from'node:path';import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x497b80){const _0x11e142=a203_0x1edb,_0x4d2c87=[];let _0x5db5ff;WIKI_LINK_REGEX['lastIndex']=0x0;while((_0x5db5ff=WIKI_LINK_REGEX[_0x11e142(0xeb)](_0x497b80))!==null){const _0x1081da=_0x5db5ff[0x1],_0x37e733=_0x1081da[_0x11e142(0xe0)]('|');let _0x5ef09a,_0x178d90;_0x37e733!==-0x1?(_0x5ef09a=_0x1081da[_0x11e142(0xe7)](0x0,_0x37e733)[_0x11e142(0xcd)](),_0x178d90=_0x1081da[_0x11e142(0xe7)](_0x37e733+0x1)[_0x11e142(0xcd)]()):_0x5ef09a=_0x1081da[_0x11e142(0xcd)](),_0x4d2c87[_0x11e142(0xe5)]({'raw':_0x5db5ff[0x0],'slug':_0x5ef09a,'displayText':_0x178d90});}return _0x4d2c87;}export function collectMarkdownFiles(_0x40a823,_0x3f857d=0x0){const _0x32285c=a203_0x1edb;if(_0x3f857d>0x5)return[];if(!a203_0x1e47d5[_0x32285c(0xc7)](_0x40a823))return[];const _0x3e91ae=[];try{for(const _0x301be5 of a203_0x1e47d5[_0x32285c(0xca)](_0x40a823,{'withFileTypes':!![]})){if(_0x301be5[_0x32285c(0xd1)][_0x32285c(0xe2)]('.'))continue;if(_0x301be5[_0x32285c(0xc4)]())continue;const _0x366877=a203_0x86d4b[_0x32285c(0xce)](_0x40a823,_0x301be5[_0x32285c(0xd1)]);if(_0x301be5[_0x32285c(0xdb)]())_0x3e91ae[_0x32285c(0xe5)](...collectMarkdownFiles(_0x366877,_0x3f857d+0x1));else _0x301be5[_0x32285c(0xd1)][_0x32285c(0xd6)](_0x32285c(0xed))&&_0x3e91ae[_0x32285c(0xe5)](_0x366877);}}catch{}return _0x3e91ae;}export function buildFileIndex(_0x1e0b92){const _0x398307=a203_0x1edb,_0x4c8f9c=new Map();for(const [_0x5630f8,_0x273193]of Object[_0x398307(0xe6)](DOCUMENT_KIND_FOLDERS)){const _0xb1d76d=a203_0x86d4b[_0x398307(0xce)](_0x1e0b92,_0x273193),_0x2775c3=collectMarkdownFiles(_0xb1d76d);for(const _0x35fe4c of _0x2775c3){const _0x17f931=a203_0x86d4b[_0x398307(0xe4)](_0x35fe4c,_0x398307(0xed)),_0xdf2c4b={'stem':_0x17f931,'kind':_0x5630f8,'filePath':_0x35fe4c,'folder':_0x273193},_0x32f24d=_0x4c8f9c[_0x398307(0xd9)](_0x17f931)||[];_0x32f24d['push'](_0xdf2c4b),_0x4c8f9c['set'](_0x17f931,_0x32f24d);}}return _0x4c8f9c;}function a203_0x3709(){const _0x2e1b81=['existsSync','328URMgGP','kind','readdirSync','templates','lastIndexOf','trim','join','folder','27706GtnNIj','name','5789130CDissF','has','referencedBy','40ybmaqu','endsWith','match','utf-8','get','filePath','isDirectory','replace','2025693LQwCAH','33GZZeFS','15243396LsbyWz','indexOf','1545816TFbNdi','startsWith','slug','basename','push','entries','slice','some','shift','set','exec','resolvedPath','.md','5WhvbET','2HxeqtZ','length','includes','readFileSync','4913704bsHotK','sort','isSymbolicLink','1333239FJWHCD','resolvedKind'];a203_0x3709=function(){return _0x2e1b81;};return a203_0x3709();}export function resolveWikiLinks(_0x454f67,_0x1a7ff8){const _0x5c8426=a203_0x1edb,_0x4589de=parseWikiLinks(_0x454f67);for(const _0x383347 of _0x4589de){const {slug:_0x58c000}=_0x383347,_0x2f42a4=_0x58c000['indexOf']('/');if(_0x2f42a4!==-0x1){const _0x43b49b=_0x58c000[_0x5c8426(0xe7)](0x0,_0x2f42a4),_0x2b469f=_0x58c000[_0x5c8426(0xe7)](_0x2f42a4+0x1),_0x425c00=_0x1a7ff8['get'](_0x2b469f);if(_0x425c00){const _0x28f4fc=_0x425c00['find'](_0x3ab50c=>_0x3ab50c[_0x5c8426(0xcf)]===_0x43b49b);_0x28f4fc&&(_0x383347[_0x5c8426(0xec)]=_0x28f4fc['filePath'],_0x383347[_0x5c8426(0xc6)]=_0x28f4fc[_0x5c8426(0xc9)]);}continue;}const _0x4e95d8=_0x1a7ff8['get'](_0x58c000);if(_0x4e95d8&&_0x4e95d8['length']>0x0){const _0x1388ff=_0x4e95d8[_0x5c8426(0xc3)]((_0x2f9614,_0x44c280)=>(KIND_PRIORITY[_0x44c280[_0x5c8426(0xc9)]]||0x0)-(KIND_PRIORITY[_0x2f9614[_0x5c8426(0xc9)]]||0x0));_0x383347[_0x5c8426(0xec)]=_0x1388ff[0x0][_0x5c8426(0xda)],_0x383347[_0x5c8426(0xc6)]=_0x1388ff[0x0][_0x5c8426(0xc9)];}}return _0x4589de;}export function linkStem(_0x12eba7){const _0x558911=a203_0x1edb,_0x5ea5a4=_0x12eba7[_0x558911(0xcc)]('/');return _0x5ea5a4!==-0x1?_0x12eba7['slice'](_0x5ea5a4+0x1):_0x12eba7;}function hasDocEntry(_0x10055f){const _0x362318=a203_0x1edb;return _0x10055f?.[_0x362318(0xe8)](_0x251cab=>isTrackableKind(_0x251cab[_0x362318(0xc9)]))??![];}export function findTransitiveDependencies(_0x225e26,_0x34384b,_0x3ad268){const _0x47d082=a203_0x1edb,_0x208c77=new Map(),_0x4c9156=new Set(_0x225e26),_0x533dab=[..._0x225e26];function _0x4bbdde(_0xdfdbbd,_0x1e2e91){const _0x19be2d=a203_0x1edb;for(const _0x2f6e9a of parseWikiLinks(_0x1e2e91)){const _0x5550b5=_0x2f6e9a[_0x19be2d(0xe3)][_0x19be2d(0xe0)]('/');if(_0x5550b5!==-0x1){const _0x95ce90=_0x2f6e9a[_0x19be2d(0xe3)]['slice'](0x0,_0x5550b5);if(_0x95ce90===_0x19be2d(0xcb)||_0x95ce90==='workflows')continue;}const _0x1859da=linkStem(_0x2f6e9a['slug']);if(!hasDocEntry(_0x34384b[_0x19be2d(0xd9)](_0x1859da)))continue;if(!_0x4c9156[_0x19be2d(0xd3)](_0x1859da))_0x4c9156['add'](_0x1859da),_0x533dab[_0x19be2d(0xe5)](_0x1859da),_0x208c77[_0x19be2d(0xea)](_0x1859da,{'referencedBy':[_0xdfdbbd]});else{if(_0x208c77[_0x19be2d(0xd3)](_0x1859da)){const _0x1dae6f=_0x208c77[_0x19be2d(0xd9)](_0x1859da);!_0x1dae6f[_0x19be2d(0xd4)][_0x19be2d(0xc0)](_0xdfdbbd)&&_0x1dae6f[_0x19be2d(0xd4)][_0x19be2d(0xe5)](_0xdfdbbd);}}}}while(_0x533dab[_0x47d082(0xbf)]>0x0){const _0x1253ea=_0x533dab[_0x47d082(0xe9)](),_0x574ce5=_0x3ad268(_0x1253ea);if(_0x574ce5)_0x4bbdde(_0x1253ea,_0x574ce5);}return _0x208c77;}export function getBacklinks(_0x45dbec,_0x47750d){const _0x21646a=a203_0x1edb,_0x3554d2=[];for(const [_0x474c03,_0x27c28a]of Object[_0x21646a(0xe6)](DOCUMENT_KIND_FOLDERS)){const _0xbbccee=a203_0x86d4b[_0x21646a(0xce)](_0x47750d,_0x27c28a),_0x5ced59=collectMarkdownFiles(_0xbbccee);for(const _0x5e6f24 of _0x5ced59){const _0x1f8922=a203_0x1e47d5[_0x21646a(0xc1)](_0x5e6f24,_0x21646a(0xd8)),_0x2372c5=parseWikiLinks(_0x1f8922),_0xa0006b=_0x2372c5[_0x21646a(0xe8)](_0x536b42=>{const _0x364be5=_0x21646a,_0x3b2aab=_0x536b42[_0x364be5(0xe3)]['indexOf']('/'),_0x33d12a=_0x3b2aab!==-0x1?_0x536b42[_0x364be5(0xe3)]['slice'](_0x3b2aab+0x1):_0x536b42[_0x364be5(0xe3)];return _0x33d12a===_0x45dbec;});if(_0xa0006b){const _0x3bcadb=_0x1f8922[_0x21646a(0xd7)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x1790af=a203_0x86d4b[_0x21646a(0xe4)](_0x5e6f24),_0x18f7b7=_0x3bcadb?_0x3bcadb[0x1][_0x21646a(0xdc)](/^['"]|['"]$/g,''):_0x1790af;_0x3554d2[_0x21646a(0xe5)]({'filePath':_0x5e6f24,'kind':_0x474c03,'title':_0x18f7b7});}}}return _0x3554d2;}
1
+ (function(_0x33fd8b,_0x185832){const _0x15ee5b=a203_0x477a,_0x283529=_0x33fd8b();while(!![]){try{const _0x49c78b=-parseInt(_0x15ee5b(0xb7))/0x1*(parseInt(_0x15ee5b(0x97))/0x2)+-parseInt(_0x15ee5b(0x91))/0x3*(parseInt(_0x15ee5b(0xa3))/0x4)+parseInt(_0x15ee5b(0xa7))/0x5+-parseInt(_0x15ee5b(0x99))/0x6+parseInt(_0x15ee5b(0x9f))/0x7*(parseInt(_0x15ee5b(0xbb))/0x8)+-parseInt(_0x15ee5b(0x92))/0x9+parseInt(_0x15ee5b(0xac))/0xa;if(_0x49c78b===_0x185832)break;else _0x283529['push'](_0x283529['shift']());}catch(_0x110029){_0x283529['push'](_0x283529['shift']());}}}(a203_0x16e5,0x61e13));import*as a203_0xc61c2 from'node:fs';import*as a203_0x9cc662 from'node:path';import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x158b77){const _0x5e6b3d=a203_0x477a,_0x4d6587=[];let _0x55357a;WIKI_LINK_REGEX[_0x5e6b3d(0x95)]=0x0;while((_0x55357a=WIKI_LINK_REGEX[_0x5e6b3d(0x9e)](_0x158b77))!==null){const _0x39bfe2=_0x55357a[0x1],_0x120eef=_0x39bfe2['indexOf']('|');let _0xa5af36,_0xa42827;_0x120eef!==-0x1?(_0xa5af36=_0x39bfe2[_0x5e6b3d(0xad)](0x0,_0x120eef)[_0x5e6b3d(0xbd)](),_0xa42827=_0x39bfe2[_0x5e6b3d(0xad)](_0x120eef+0x1)[_0x5e6b3d(0xbd)]()):_0xa5af36=_0x39bfe2[_0x5e6b3d(0xbd)](),_0x4d6587['push']({'raw':_0x55357a[0x0],'slug':_0xa5af36,'displayText':_0xa42827});}return _0x4d6587;}export function collectMarkdownFiles(_0x2b4fa4,_0x169b16=0x0){const _0x38bc33=a203_0x477a;if(_0x169b16>0x5)return[];if(!a203_0xc61c2[_0x38bc33(0x9d)](_0x2b4fa4))return[];const _0x50c893=[];try{for(const _0x253eea of a203_0xc61c2[_0x38bc33(0xb3)](_0x2b4fa4,{'withFileTypes':!![]})){if(_0x253eea[_0x38bc33(0xab)]['startsWith']('.'))continue;if(_0x253eea[_0x38bc33(0xa9)]())continue;const _0x4d4d2a=a203_0x9cc662[_0x38bc33(0xb6)](_0x2b4fa4,_0x253eea[_0x38bc33(0xab)]);if(_0x253eea[_0x38bc33(0xa4)]())_0x50c893[_0x38bc33(0xa2)](...collectMarkdownFiles(_0x4d4d2a,_0x169b16+0x1));else _0x253eea[_0x38bc33(0xab)][_0x38bc33(0xbc)](_0x38bc33(0xa8))&&_0x50c893['push'](_0x4d4d2a);}}catch{}return _0x50c893;}export function buildFileIndex(_0x51232a){const _0x5ccf37=a203_0x477a,_0x2da782=new Map();for(const [_0x3323b5,_0x273fdd]of Object[_0x5ccf37(0xaf)](DOCUMENT_KIND_FOLDERS)){const _0x1480d8=a203_0x9cc662[_0x5ccf37(0xb6)](_0x51232a,_0x273fdd),_0xe12051=collectMarkdownFiles(_0x1480d8);for(const _0x1c724a of _0xe12051){const _0x525a45=a203_0x9cc662[_0x5ccf37(0xa5)](_0x1c724a,'.md'),_0x57ee3f={'stem':_0x525a45,'kind':_0x3323b5,'filePath':_0x1c724a,'folder':_0x273fdd},_0x28554d=_0x2da782[_0x5ccf37(0xa0)](_0x525a45)||[];_0x28554d['push'](_0x57ee3f),_0x2da782[_0x5ccf37(0x96)](_0x525a45,_0x28554d);}}return _0x2da782;}function a203_0x477a(_0x1db1b8,_0x23c99c){_0x1db1b8=_0x1db1b8-0x91;const _0x16e5bc=a203_0x16e5();let _0x477a44=_0x16e5bc[_0x1db1b8];return _0x477a44;}export function resolveWikiLinks(_0xb7b389,_0x56cf98){const _0xecf007=a203_0x477a,_0x303124=parseWikiLinks(_0xb7b389);for(const _0x9140e9 of _0x303124){const {slug:_0x436eae}=_0x9140e9,_0x54a8d2=_0x436eae[_0xecf007(0x9c)]('/');if(_0x54a8d2!==-0x1){const _0x51239f=_0x436eae['slice'](0x0,_0x54a8d2),_0x5e920d=_0x436eae[_0xecf007(0xad)](_0x54a8d2+0x1),_0x49ed2b=_0x56cf98[_0xecf007(0xa0)](_0x5e920d);if(_0x49ed2b){const _0x1606d6=_0x49ed2b[_0xecf007(0x93)](_0x52766c=>_0x52766c['folder']===_0x51239f);_0x1606d6&&(_0x9140e9['resolvedPath']=_0x1606d6['filePath'],_0x9140e9['resolvedKind']=_0x1606d6['kind']);}continue;}const _0x236540=_0x56cf98['get'](_0x436eae);if(_0x236540&&_0x236540['length']>0x0){const _0xa30c2b=_0x236540[_0xecf007(0xae)]((_0x4f8968,_0x43fe5b)=>(KIND_PRIORITY[_0x43fe5b['kind']]||0x0)-(KIND_PRIORITY[_0x4f8968[_0xecf007(0xba)]]||0x0));_0x9140e9[_0xecf007(0x98)]=_0xa30c2b[0x0]['filePath'],_0x9140e9[_0xecf007(0xb4)]=_0xa30c2b[0x0][_0xecf007(0xba)];}}return _0x303124;}function a203_0x16e5(){const _0x393e74=['slice','sort','entries','add','referencedBy','has','readdirSync','resolvedKind','lastIndexOf','join','453415uzRPjU','readFileSync','some','kind','73736ERRoFD','endsWith','trim','workflows','6MxgOIi','2296080oQHLQG','find','slug','lastIndex','set','2hfNlKl','resolvedPath','1233852BTRbmB','includes','match','indexOf','existsSync','exec','77JZDdxT','get','replace','push','1528612oLpLtU','isDirectory','basename','length','3968060TQiQJu','.md','isSymbolicLink','templates','name','11843990sEIILy'];a203_0x16e5=function(){return _0x393e74;};return a203_0x16e5();}export function linkStem(_0x396fe1){const _0x2f6a54=a203_0x477a,_0x424cc2=_0x396fe1[_0x2f6a54(0xb5)]('/');return _0x424cc2!==-0x1?_0x396fe1[_0x2f6a54(0xad)](_0x424cc2+0x1):_0x396fe1;}function hasDocEntry(_0x567f12){return _0x567f12?.['some'](_0x462ce5=>isTrackableKind(_0x462ce5['kind']))??![];}export function findTransitiveDependencies(_0xf72734,_0x194b60,_0x576fb6){const _0x24966e=a203_0x477a,_0x50a076=new Map(),_0x5e3e11=new Set(_0xf72734),_0x438c9f=[..._0xf72734];function _0x443f2c(_0x36aa3d,_0x4b2a31){const _0xb041c7=a203_0x477a;for(const _0xf871bc of parseWikiLinks(_0x4b2a31)){const _0x2577f8=_0xf871bc[_0xb041c7(0x94)][_0xb041c7(0x9c)]('/');if(_0x2577f8!==-0x1){const _0x282b26=_0xf871bc[_0xb041c7(0x94)][_0xb041c7(0xad)](0x0,_0x2577f8);if(_0x282b26===_0xb041c7(0xaa)||_0x282b26===_0xb041c7(0xbe))continue;}const _0x5553bc=linkStem(_0xf871bc[_0xb041c7(0x94)]);if(!hasDocEntry(_0x194b60['get'](_0x5553bc)))continue;if(!_0x5e3e11[_0xb041c7(0xb2)](_0x5553bc))_0x5e3e11[_0xb041c7(0xb0)](_0x5553bc),_0x438c9f[_0xb041c7(0xa2)](_0x5553bc),_0x50a076[_0xb041c7(0x96)](_0x5553bc,{'referencedBy':[_0x36aa3d]});else{if(_0x50a076[_0xb041c7(0xb2)](_0x5553bc)){const _0x4fb151=_0x50a076['get'](_0x5553bc);!_0x4fb151[_0xb041c7(0xb1)][_0xb041c7(0x9a)](_0x36aa3d)&&_0x4fb151[_0xb041c7(0xb1)][_0xb041c7(0xa2)](_0x36aa3d);}}}}while(_0x438c9f[_0x24966e(0xa6)]>0x0){const _0x16a0e3=_0x438c9f['shift'](),_0x2fcbaa=_0x576fb6(_0x16a0e3);if(_0x2fcbaa)_0x443f2c(_0x16a0e3,_0x2fcbaa);}return _0x50a076;}export function getBacklinks(_0x58b612,_0x69f8cc){const _0x3f1bd1=a203_0x477a,_0xe8b42c=[];for(const [_0x6117b4,_0x31fdf4]of Object[_0x3f1bd1(0xaf)](DOCUMENT_KIND_FOLDERS)){const _0x54ff0b=a203_0x9cc662['join'](_0x69f8cc,_0x31fdf4),_0x4c1058=collectMarkdownFiles(_0x54ff0b);for(const _0x27fd25 of _0x4c1058){const _0x5ef7c3=a203_0xc61c2[_0x3f1bd1(0xb8)](_0x27fd25,'utf-8'),_0x1d9a3e=parseWikiLinks(_0x5ef7c3),_0x4e12e1=_0x1d9a3e[_0x3f1bd1(0xb9)](_0x59b841=>{const _0x433632=_0x3f1bd1,_0x1bec9a=_0x59b841[_0x433632(0x94)][_0x433632(0x9c)]('/'),_0x1b87a1=_0x1bec9a!==-0x1?_0x59b841[_0x433632(0x94)][_0x433632(0xad)](_0x1bec9a+0x1):_0x59b841[_0x433632(0x94)];return _0x1b87a1===_0x58b612;});if(_0x4e12e1){const _0x31d2f5=_0x5ef7c3[_0x3f1bd1(0x9b)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x30abfb=a203_0x9cc662[_0x3f1bd1(0xa5)](_0x27fd25),_0x42f6dc=_0x31d2f5?_0x31d2f5[0x1][_0x3f1bd1(0xa1)](/^['"]|['"]$/g,''):_0x30abfb;_0xe8b42c[_0x3f1bd1(0xa2)]({'filePath':_0x27fd25,'kind':_0x6117b4,'title':_0x42f6dc});}}}return _0xe8b42c;}
@@ -1 +1 @@
1
- const a204_0x274fac=a204_0x35b5;(function(_0x3f56dd,_0x2f40f2){const _0x2f344b=a204_0x35b5,_0x50dc3a=_0x3f56dd();while(!![]){try{const _0x450408=-parseInt(_0x2f344b(0xaf))/0x1+-parseInt(_0x2f344b(0xba))/0x2*(-parseInt(_0x2f344b(0xb6))/0x3)+-parseInt(_0x2f344b(0xac))/0x4+parseInt(_0x2f344b(0xaa))/0x5+parseInt(_0x2f344b(0xab))/0x6*(parseInt(_0x2f344b(0xae))/0x7)+-parseInt(_0x2f344b(0xbd))/0x8+parseInt(_0x2f344b(0xa1))/0x9*(parseInt(_0x2f344b(0xad))/0xa);if(_0x450408===_0x2f40f2)break;else _0x50dc3a['push'](_0x50dc3a['shift']());}catch(_0x155c63){_0x50dc3a['push'](_0x50dc3a['shift']());}}}(a204_0x5c13,0x4dcee));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';function a204_0x5c13(){const _0x44740c=['createFetch','map','fail','verify','reset','615399HQumLh','http','options','log','6ltxzUT','warn','test-api-key-id/test-api-key-secret','2817080tYIASy','9yCdYkq','push','setup','site','fetch','join','run','originalFetch','error','2312085qaByuQ','6PBvQiw','2134000qpgBvp','1057610PcvTjE','2296413wtcfCL','307299hEpIml','us01'];a204_0x5c13=function(){return _0x44740c;};return a204_0x5c13();}function a204_0x35b5(_0xc60a26,_0x54e361){_0xc60a26=_0xc60a26-0xa1;const _0x5c1357=a204_0x5c13();let _0x35b573=_0x5c1357[_0xc60a26];return _0x35b573;}import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a204_0x274fac(0xb7)];['originalFetch'];constructor(){const _0x123ef7=a204_0x274fac;this[_0x123ef7(0xb7)]=createHTTPMock(),this[_0x123ef7(0xa8)]=global[_0x123ef7(0xa5)];}[a204_0x274fac(0xa3)](){const _0x44c189=a204_0x274fac;this['originalFetch']=global[_0x44c189(0xa5)],global['fetch']=this['http'][_0x44c189(0xb1)]();}['teardown'](_0xfc72a7){const _0x38b618=a204_0x274fac;try{_0xfc72a7?.[_0x38b618(0xb3)]&&this[_0x38b618(0xb7)][_0x38b618(0xb4)](_0xfc72a7);}finally{global[_0x38b618(0xa5)]=this[_0x38b618(0xa8)],this[_0x38b618(0xb7)][_0x38b618(0xb5)]();}}async[a204_0x274fac(0xa7)](_0xaa3154,_0x4261b6={}){const _0x156eb0=a204_0x274fac,_0x4733f9=[],_0x13bfac=[],_0x6661e3=console[_0x156eb0(0xb9)],_0x23fdcd=console[_0x156eb0(0xa9)],_0x578615=console[_0x156eb0(0xbb)];console['log']=(..._0x5bbbaa)=>{const _0x28459b=_0x156eb0;_0x4733f9[_0x28459b(0xa2)](_0x5bbbaa[_0x28459b(0xb2)](String)['join']('\x20'));},console[_0x156eb0(0xa9)]=(..._0x449b45)=>{const _0x51a872=_0x156eb0;_0x13bfac[_0x51a872(0xa2)](_0x449b45[_0x51a872(0xb2)](String)[_0x51a872(0xa6)]('\x20'));},console['warn']=(..._0x39d0fd)=>{const _0x37303e=_0x156eb0;_0x13bfac[_0x37303e(0xa2)](_0x39d0fd[_0x37303e(0xb2)](String)['join']('\x20'));};try{const _0x122a62=new TDX({'site':_0x4261b6[_0x156eb0(0xb8)]?.[_0x156eb0(0xa4)]??_0x156eb0(0xb0),'apiKey':_0x156eb0(0xbc),'logLevel':LogLevel['ERROR']}),_0x2e95c4={'options':createTestGlobalOptions(_0x4261b6['options']),'args':_0x4261b6['args']??[],'tdx':_0x122a62},_0x400e12=new _0xaa3154(),_0x3207ff=await _0x400e12[_0x156eb0(0xa7)](_0x2e95c4);return{'exitCode':_0x3207ff,'stdout':_0x4733f9,'stderr':_0x13bfac};}finally{console[_0x156eb0(0xb9)]=_0x6661e3,console[_0x156eb0(0xa9)]=_0x23fdcd,console[_0x156eb0(0xbb)]=_0x578615;}}async['runSequence'](_0x29ba0f){const _0x3dac05=a204_0x274fac,_0x45c77a=[];for(const {command:_0x286252,options:_0x414273}of _0x29ba0f){const _0x355165=await this[_0x3dac05(0xa7)](_0x286252,_0x414273);_0x45c77a[_0x3dac05(0xa2)](_0x355165);if(_0x355165['exitCode']!==0x0)break;}return _0x45c77a;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a204_0x175f57=a204_0x5d1d;(function(_0x65ed2f,_0x34d218){const _0x4ee0b2=a204_0x5d1d,_0x5197ea=_0x65ed2f();while(!![]){try{const _0x157616=-parseInt(_0x4ee0b2(0x157))/0x1*(-parseInt(_0x4ee0b2(0x163))/0x2)+parseInt(_0x4ee0b2(0x161))/0x3+parseInt(_0x4ee0b2(0x159))/0x4+-parseInt(_0x4ee0b2(0x158))/0x5+-parseInt(_0x4ee0b2(0x152))/0x6*(-parseInt(_0x4ee0b2(0x16a))/0x7)+-parseInt(_0x4ee0b2(0x166))/0x8*(parseInt(_0x4ee0b2(0x155))/0x9)+parseInt(_0x4ee0b2(0x14f))/0xa*(parseInt(_0x4ee0b2(0x15c))/0xb);if(_0x157616===_0x34d218)break;else _0x5197ea['push'](_0x5197ea['shift']());}catch(_0x88935c){_0x5197ea['push'](_0x5197ea['shift']());}}}(a204_0x3038,0x200a6));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a204_0x5d1d(_0x5eafa6,_0x500c0c){_0x5eafa6=_0x5eafa6-0x14c;const _0x3038f9=a204_0x3038();let _0x5d1de2=_0x3038f9[_0x5eafa6];return _0x5d1de2;}export class CommandRunner{[a204_0x175f57(0x169)];[a204_0x175f57(0x162)];constructor(){const _0x4c58a0=a204_0x175f57;this[_0x4c58a0(0x169)]=createHTTPMock(),this[_0x4c58a0(0x162)]=global[_0x4c58a0(0x168)];}[a204_0x175f57(0x15e)](){const _0x178590=a204_0x175f57;this[_0x178590(0x162)]=global[_0x178590(0x168)],global[_0x178590(0x168)]=this[_0x178590(0x169)]['createFetch']();}[a204_0x175f57(0x165)](_0x17d72f){const _0x47b0b5=a204_0x175f57;try{_0x17d72f?.[_0x47b0b5(0x167)]&&this[_0x47b0b5(0x169)][_0x47b0b5(0x150)](_0x17d72f);}finally{global[_0x47b0b5(0x168)]=this[_0x47b0b5(0x162)],this[_0x47b0b5(0x169)][_0x47b0b5(0x15a)]();}}async['run'](_0xf624f1,_0x56244f={}){const _0x1680f0=a204_0x175f57,_0x1fcda5=[],_0x2e62ca=[],_0x4ebf7e=console[_0x1680f0(0x15f)],_0x5a8a62=console[_0x1680f0(0x151)],_0x108d62=console['warn'];console[_0x1680f0(0x15f)]=(..._0x17e300)=>{const _0x298cd6=_0x1680f0;_0x1fcda5[_0x298cd6(0x14d)](_0x17e300[_0x298cd6(0x156)](String)[_0x298cd6(0x164)]('\x20'));},console[_0x1680f0(0x151)]=(..._0x336e4d)=>{const _0x457f0f=_0x1680f0;_0x2e62ca['push'](_0x336e4d['map'](String)[_0x457f0f(0x164)]('\x20'));},console[_0x1680f0(0x154)]=(..._0x577ac6)=>{const _0x1452a7=_0x1680f0;_0x2e62ca[_0x1452a7(0x14d)](_0x577ac6['map'](String)[_0x1452a7(0x164)]('\x20'));};try{const _0x48c886=new TDX({'site':_0x56244f[_0x1680f0(0x153)]?.['site']??_0x1680f0(0x14e),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x1680f0(0x15d)]}),_0x496376={'options':createTestGlobalOptions(_0x56244f['options']),'args':_0x56244f[_0x1680f0(0x14c)]??[],'tdx':_0x48c886},_0x39879b=new _0xf624f1(),_0x1155c1=await _0x39879b[_0x1680f0(0x15b)](_0x496376);return{'exitCode':_0x1155c1,'stdout':_0x1fcda5,'stderr':_0x2e62ca};}finally{console[_0x1680f0(0x15f)]=_0x4ebf7e,console[_0x1680f0(0x151)]=_0x5a8a62,console['warn']=_0x108d62;}}async[a204_0x175f57(0x160)](_0x42b6e3){const _0x35b94a=a204_0x175f57,_0x206c14=[];for(const {command:_0x328926,options:_0x53629a}of _0x42b6e3){const _0x49bf81=await this[_0x35b94a(0x15b)](_0x328926,_0x53629a);_0x206c14['push'](_0x49bf81);if(_0x49bf81['exitCode']!==0x0)break;}return _0x206c14;}}export function createCommandRunner(){return new CommandRunner();}function a204_0x3038(){const _0x354c7d=['originalFetch','2cDaRqp','join','teardown','8HMoVek','fail','fetch','http','511YSpvqW','args','push','us01','1060WzwApx','verify','error','10716qDbojG','options','warn','109485kkkEtM','map','64587bWeWef','1174885gRwBCk','456444ISOLfh','reset','run','6952Dnvulx','ERROR','setup','log','runSequence','6936ZuEPnQ'];a204_0x3038=function(){return _0x354c7d;};return a204_0x3038();}
@@ -1 +1 @@
1
- (function(_0x3a809c,_0x5d2b4e){const _0x18dd20=a205_0x4d12,_0x4f792a=_0x3a809c();while(!![]){try{const _0x7d5a37=-parseInt(_0x18dd20(0xc0))/0x1*(parseInt(_0x18dd20(0xbf))/0x2)+parseInt(_0x18dd20(0xbc))/0x3*(-parseInt(_0x18dd20(0xb1))/0x4)+-parseInt(_0x18dd20(0xc6))/0x5+-parseInt(_0x18dd20(0xc9))/0x6+-parseInt(_0x18dd20(0xbb))/0x7*(parseInt(_0x18dd20(0xc5))/0x8)+parseInt(_0x18dd20(0xb6))/0x9+parseInt(_0x18dd20(0xb3))/0xa;if(_0x7d5a37===_0x5d2b4e)break;else _0x4f792a['push'](_0x4f792a['shift']());}catch(_0x1eec6f){_0x4f792a['push'](_0x4f792a['shift']());}}}(a205_0x16fc,0x21b66));function a205_0x4d12(_0x371900,_0x4f4471){_0x371900=_0x371900-0xb1;const _0x16fc19=a205_0x16fc();let _0x4d122b=_0x16fc19[_0x371900];return _0x4d122b;}import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x4104f3){const _0x4d5589=a205_0x4d12;return{'site':'us01','apiKey':_0x4d5589(0xca),'logLevel':LogLevel['ERROR'],..._0x4104f3};}export function createTestGlobalOptions(_0x57b553){const _0x47f555=a205_0x4d12;return{'site':_0x47f555(0xb5),'format':_0x47f555(0xb4),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x47f555(0xc2),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x47f555(0xb9)],..._0x57b553};}export async function initTestLogger(){const _0x38cb3b=a205_0x4d12;Logger['reset']();const _0x752546=join(getGlobalCacheDir(),'logs','tdx-test.log');await Logger['init']({'defaultLevel':LogLevel[_0x38cb3b(0xb7)],'handlers':[new FileHandler({'filePath':_0x752546,'rotate':![]})]});}export function resetTestLogger(){const _0x1a87e2=a205_0x4d12;Logger[_0x1a87e2(0xb8)]();}export function createMockTDX(_0x3e7916){const _0x3199b6=a205_0x4d12;return{'context':{'site':_0x3199b6(0xb5),'apiKey':'test-api-key','logLevel':LogLevel[_0x3199b6(0xb9)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xcd)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3e7916?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xc3)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x3e7916?.['workflow']},'user':{'show':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xb2)]},'api':{'request':vi['fn'](),..._0x3e7916?.[_0x3199b6(0xbe)]},..._0x3e7916};}export function createTestCommandContext(_0x24bacf){const _0x1a6ccb=a205_0x4d12,_0x2b7c90=createTestGlobalOptions(_0x24bacf?.[_0x1a6ccb(0xc1)]),_0x54ee1c=_0x24bacf?.[_0x1a6ccb(0xce)]??createMockTDX();return{'options':_0x2b7c90,'args':_0x24bacf?.[_0x1a6ccb(0xcb)]??[],'tdx':_0x54ee1c};}function a205_0x16fc(){const _0x2da043=['query','tdx','56mMFTHK','user','6804730fwwWSU','table','us01','1372383QauGrS','DEBUG','reset','ERROR','map','7WcfwdB','28146vUwrSy','error','api','2gsixiR','116854jXqEDg','options','30000','journey','push','1430456eYufIj','625820uvUglX','log','warn','856206hGpoHT','test-api-key-id/test-api-key-secret','args','join'];a205_0x16fc=function(){return _0x2da043;};return a205_0x16fc();}export function captureConsole(){const _0x23a3aa=a205_0x4d12,_0x298172=[],_0x17193d=[],_0x453335=console['log'],_0x178d48=console['error'],_0x568371=console[_0x23a3aa(0xc8)];return console[_0x23a3aa(0xc7)]=(..._0x174af7)=>{const _0x4e6092=_0x23a3aa;_0x298172['push'](_0x174af7[_0x4e6092(0xba)](String)[_0x4e6092(0xcc)]('\x20'));},console[_0x23a3aa(0xbd)]=(..._0x214bf4)=>{const _0x555550=_0x23a3aa;_0x17193d[_0x555550(0xc4)](_0x214bf4[_0x555550(0xba)](String)['join']('\x20'));},console[_0x23a3aa(0xc8)]=(..._0x3ceb96)=>{const _0x5c5480=_0x23a3aa;_0x17193d[_0x5c5480(0xc4)](_0x3ceb96[_0x5c5480(0xba)](String)[_0x5c5480(0xcc)]('\x20'));},{'stdout':_0x298172,'stderr':_0x17193d,'restore':()=>{const _0x38a728=_0x23a3aa;console[_0x38a728(0xc7)]=_0x453335,console['error']=_0x178d48,console[_0x38a728(0xc8)]=_0x568371;}};}
1
+ function a205_0x518f(_0x1f3394,_0xde64b9){_0x1f3394=_0x1f3394-0x121;const _0x4ea369=a205_0x4ea3();let _0x518f62=_0x4ea369[_0x1f3394];return _0x518f62;}function a205_0x4ea3(){const _0x584dff=['245397WcGguW','tdx','args','query','27132YFDsEA','665jDGzZC','api','reset','warn','test-api-key','9StEcKf','ERROR','866570hfChEn','599034DgFRwh','error','join','8WnCUqC','table','user','1105170AAdFue','DEBUG','test-api-key-id/test-api-key-secret','journey','push','3526784rLdxIK','30000','us01','workflow','tdx-test.log','map','log','options','381339FmGxiL'];a205_0x4ea3=function(){return _0x584dff;};return a205_0x4ea3();}(function(_0x1a1e99,_0x4a47ae){const _0x24ada3=a205_0x518f,_0x1f06ff=_0x1a1e99();while(!![]){try{const _0x5dd8ec=parseInt(_0x24ada3(0x131))/0x1+parseInt(_0x24ada3(0x13f))/0x2+parseInt(_0x24ada3(0x132))/0x3+parseInt(_0x24ada3(0x121))/0x4*(-parseInt(_0x24ada3(0x13e))/0x5)+-parseInt(_0x24ada3(0x136))/0x6*(-parseInt(_0x24ada3(0x137))/0x7)+parseInt(_0x24ada3(0x129))/0x8*(-parseInt(_0x24ada3(0x13c))/0x9)+-parseInt(_0x24ada3(0x124))/0xa;if(_0x5dd8ec===_0x4a47ae)break;else _0x1f06ff['push'](_0x1f06ff['shift']());}catch(_0x20363c){_0x1f06ff['push'](_0x1f06ff['shift']());}}}(a205_0x4ea3,0x47d6c));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0xe9024b){const _0x20f021=a205_0x518f;return{'site':'us01','apiKey':_0x20f021(0x126),'logLevel':LogLevel[_0x20f021(0x13d)],..._0xe9024b};}export function createTestGlobalOptions(_0x1574d5){const _0x124bc7=a205_0x518f;return{'site':_0x124bc7(0x12b),'format':_0x124bc7(0x122),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x124bc7(0x12a),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x124bc7(0x13d)],..._0x1574d5};}export async function initTestLogger(){const _0x3589d5=a205_0x518f;Logger[_0x3589d5(0x139)]();const _0x3c5152=join(getGlobalCacheDir(),'logs',_0x3589d5(0x12d));await Logger['init']({'defaultLevel':LogLevel[_0x3589d5(0x125)],'handlers':[new FileHandler({'filePath':_0x3c5152,'rotate':![]})]});}export function resetTestLogger(){const _0x4c0241=a205_0x518f;Logger[_0x4c0241(0x139)]();}export function createMockTDX(_0x301995){const _0xa30b01=a205_0x518f;return{'context':{'site':_0xa30b01(0x12b),'apiKey':_0xa30b01(0x13b),'logLevel':LogLevel['ERROR']},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x301995?.[_0xa30b01(0x135)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x301995?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x301995?.[_0xa30b01(0x127)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x301995?.[_0xa30b01(0x12c)]},'user':{'show':vi['fn'](),..._0x301995?.[_0xa30b01(0x123)]},'api':{'request':vi['fn'](),..._0x301995?.[_0xa30b01(0x138)]},..._0x301995};}export function createTestCommandContext(_0x4926a6){const _0x1ebaf8=a205_0x518f,_0x41c0eb=createTestGlobalOptions(_0x4926a6?.[_0x1ebaf8(0x130)]),_0x351038=_0x4926a6?.[_0x1ebaf8(0x133)]??createMockTDX();return{'options':_0x41c0eb,'args':_0x4926a6?.[_0x1ebaf8(0x134)]??[],'tdx':_0x351038};}export function captureConsole(){const _0x4ab662=a205_0x518f,_0x2bef8c=[],_0x516928=[],_0x4d9a57=console[_0x4ab662(0x12f)],_0x1ffb99=console[_0x4ab662(0x140)],_0x506a88=console['warn'];return console[_0x4ab662(0x12f)]=(..._0x162710)=>{const _0x2d3b30=_0x4ab662;_0x2bef8c[_0x2d3b30(0x128)](_0x162710[_0x2d3b30(0x12e)](String)['join']('\x20'));},console[_0x4ab662(0x140)]=(..._0xb23c8c)=>{const _0x5caf2f=_0x4ab662;_0x516928[_0x5caf2f(0x128)](_0xb23c8c[_0x5caf2f(0x12e)](String)[_0x5caf2f(0x141)]('\x20'));},console[_0x4ab662(0x13a)]=(..._0x5ce35f)=>{const _0x53beae=_0x4ab662;_0x516928[_0x53beae(0x128)](_0x5ce35f['map'](String)['join']('\x20'));},{'stdout':_0x2bef8c,'stderr':_0x516928,'restore':()=>{const _0x44443c=_0x4ab662;console[_0x44443c(0x12f)]=_0x4d9a57,console['error']=_0x1ffb99,console[_0x44443c(0x13a)]=_0x506a88;}};}
@@ -1 +1 @@
1
- const a206_0x1db324=a206_0x56d2;(function(_0x4fb3ba,_0x32e472){const _0x572abc=a206_0x56d2,_0x41b184=_0x4fb3ba();while(!![]){try{const _0x516b41=-parseInt(_0x572abc(0xb4))/0x1*(parseInt(_0x572abc(0xdb))/0x2)+parseInt(_0x572abc(0xc8))/0x3*(-parseInt(_0x572abc(0x98))/0x4)+-parseInt(_0x572abc(0x86))/0x5+-parseInt(_0x572abc(0xa1))/0x6+-parseInt(_0x572abc(0xa4))/0x7*(-parseInt(_0x572abc(0xbd))/0x8)+-parseInt(_0x572abc(0xdc))/0x9*(parseInt(_0x572abc(0xba))/0xa)+parseInt(_0x572abc(0xaa))/0xb;if(_0x516b41===_0x32e472)break;else _0x41b184['push'](_0x41b184['shift']());}catch(_0x5a44e4){_0x41b184['push'](_0x41b184['shift']());}}}(a206_0x3363,0x52b95));export const fixtures={'database':{'basic':{'name':a206_0x1db324(0xb1),'count':0x5,'created_at':a206_0x1db324(0x88),'updated_at':'2024-01-01T00:00:00Z','permission':'administrator'},'withTables':{'name':'production_db','count':0x64,'created_at':a206_0x1db324(0xb6),'updated_at':a206_0x1db324(0xb8),'permission':a206_0x1db324(0xbe)}},'table':{'basic':{'id':0x3039,'name':a206_0x1db324(0x8a),'type':a206_0x1db324(0xb3),'schema':JSON[a206_0x1db324(0xca)]([['id',a206_0x1db324(0x85)],[a206_0x1db324(0xc7),a206_0x1db324(0x99)],[a206_0x1db324(0xe8),a206_0x1db324(0x85)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0x88)},'events':{'id':0x303a,'name':a206_0x1db324(0x9d),'type':'log','schema':JSON['stringify']([[a206_0x1db324(0x8c),a206_0x1db324(0x85)],[a206_0x1db324(0xc7),a206_0x1db324(0x99)],[a206_0x1db324(0xa8),a206_0x1db324(0x85)],['event_type',a206_0x1db324(0x85)],[a206_0x1db324(0xd8),a206_0x1db324(0xa5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xa7)}},'parentSegment':{'basic':{'id':'ps-123456','name':'Test\x20Parent\x20Segment','description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':'active','master_table':{'database':a206_0x1db324(0xc0),'table':a206_0x1db324(0x9c)},'attributes':[{'name':'customer_id','type':a206_0x1db324(0x85),'key':!![]},{'name':'email','type':a206_0x1db324(0x85)},{'name':'created_at','type':'timestamp'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)},'withBehaviors':{'id':a206_0x1db324(0xe2),'name':a206_0x1db324(0x84),'description':a206_0x1db324(0x91),'status':a206_0x1db324(0xac),'master_table':{'database':a206_0x1db324(0xc0),'table':'customers'},'behaviors':[{'name':a206_0x1db324(0x8d),'table':{'database':a206_0x1db324(0xc4),'table':a206_0x1db324(0x8d)},'join_key':'customer_id'},{'name':a206_0x1db324(0x87),'table':{'database':a206_0x1db324(0xc4),'table':'pageviews'},'join_key':'customer_id'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)}},'segment':{'basic':{'id':a206_0x1db324(0xe5),'name':a206_0x1db324(0x89),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a206_0x1db324(0xc9),'status':a206_0x1db324(0xac),'rules':[{'type':a206_0x1db324(0x95),'field':a206_0x1db324(0xb2),'operator':a206_0x1db324(0xb9),'value':'30d'}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':a206_0x1db324(0x7e),'name':'High\x20Value\x20Active\x20Users','description':a206_0x1db324(0x90),'parent_segment_id':a206_0x1db324(0xc9),'status':a206_0x1db324(0xac),'rules':[{'type':a206_0x1db324(0x95),'field':'last_login','operator':a206_0x1db324(0xb9),'value':a206_0x1db324(0xa2)},{'type':a206_0x1db324(0x95),'field':a206_0x1db324(0xab),'operator':a206_0x1db324(0xcc),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x1db324(0xbb)}},'journey':{'basic':{'id':a206_0x1db324(0x7d),'name':a206_0x1db324(0xcd),'description':a206_0x1db324(0xa6),'status':a206_0x1db324(0xd0),'version':0x1,'steps':[{'id':a206_0x1db324(0xc1),'type':a206_0x1db324(0x96),'duration':'1d'},{'id':a206_0x1db324(0xbf),'type':a206_0x1db324(0x9b),'activation_id':a206_0x1db324(0xb7)}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)},'withDecision':{'id':'j-def456','name':'Purchase\x20Reminder','description':a206_0x1db324(0xd9),'status':'active','version':0x2,'steps':[{'id':a206_0x1db324(0xc1),'type':a206_0x1db324(0xce),'segment_id':'cs-456789','yes_path':'step-2','no_path':a206_0x1db324(0xae)},{'id':a206_0x1db324(0xbf),'type':a206_0x1db324(0x9b),'activation_id':a206_0x1db324(0xc3)},{'id':a206_0x1db324(0xae),'type':'end'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xe8),'type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xcb),'type':'bigint'}],'data':[[a206_0x1db324(0xda),a206_0x1db324(0xdf),0x64],[a206_0x1db324(0x7f),a206_0x1db324(0xd4),0xc8],[a206_0x1db324(0xb5),a206_0x1db324(0xd2),0x96]]},'empty':{'schema':[{'name':'id','type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xe8),'type':a206_0x1db324(0xd7)}],'data':[]},'singleRow':{'schema':[{'name':a206_0x1db324(0xaf),'type':a206_0x1db324(0x8f)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x1db324(0xbb),'administrator':![]},'admin':{'id':0x1,'name':a206_0x1db324(0xdd),'email':a206_0x1db324(0xc6),'created_at':a206_0x1db324(0x80),'updated_at':a206_0x1db324(0xbb),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xa0),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a206_0x1db324(0xe0),'end_at':a206_0x1db324(0x82),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xd3),'query':a206_0x1db324(0x9e),'start_at':a206_0x1db324(0xd6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xc2),'query':a206_0x1db324(0x9f),'start_at':a206_0x1db324(0x9a),'end_at':a206_0x1db324(0x94),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a206_0x1db324(0xd5),'revision':a206_0x1db324(0xe3),'timezone':a206_0x1db324(0xcf),'schedule':{'cron':a206_0x1db324(0xad)}},'withSessions':{'id':'wf-67890','name':a206_0x1db324(0xe6),'project':a206_0x1db324(0xde),'revision':'def456','timezone':'America/Los_Angeles','schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':'sess-111','status':a206_0x1db324(0xa0),'started_at':'2024-01-15T09:00:00Z','finished_at':a206_0x1db324(0x81)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':'Invalid\x20API\x20key','severity':a206_0x1db324(0xc2),'status_code':0x191}},'notFound':{'errors':{'error':a206_0x1db324(0x93),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':'error','status_code':0x194}},'rateLimited':{'detail':a206_0x1db324(0xa3)},'rfc9457':{'type':a206_0x1db324(0xe7),'title':a206_0x1db324(0xa9),'status':0x193,'detail':a206_0x1db324(0xe1),'instance':a206_0x1db324(0x97)}}};export function createDatabase(_0x1240a2){const _0x4d561a=a206_0x1db324;return{...fixtures[_0x4d561a(0x8e)]['basic'],..._0x1240a2};}export function createTable(_0x4991c4){const _0x495220=a206_0x1db324;return{...fixtures['table'][_0x495220(0x83)],..._0x4991c4};}export function createParentSegment(_0x51cc5c){const _0x497a6c=a206_0x1db324;return{...fixtures[_0x497a6c(0xc5)][_0x497a6c(0x83)],..._0x51cc5c};}export function createSegment(_0x3113f1){const _0x50e42c=a206_0x1db324;return{...fixtures[_0x50e42c(0xe4)][_0x50e42c(0x83)],..._0x3113f1};}export function createJourney(_0x114666){const _0x5c2375=a206_0x1db324;return{...fixtures[_0x5c2375(0x92)][_0x5c2375(0x83)],..._0x114666};}export function createQueryResult(_0x1f20d4){const _0x14c773=a206_0x1db324;return{...fixtures[_0x14c773(0xb0)]['basic'],..._0x1f20d4};}export function createUser(_0x2804ea){const _0x4ae02b=a206_0x1db324;return{...fixtures['user'][_0x4ae02b(0x83)],..._0x2804ea};}function a206_0x3363(){const _0x450a1b=['Active\x20Users','users','presto','event_id','purchases','database','bigint','Active\x20users\x20with\x20high\x20lifetime\x20value','Parent\x20segment\x20with\x20behavioral\x20data','journey','Resource\x20not\x20found','2024-01-15T10:10:01Z','attribute','wait','/v3/database/list','2988agsHBZ','long','2024-01-15T10:10:00Z','activation','unified_customers','events','SELECT\x20COUNT(*)\x20FROM\x20events','SELECT\x20*\x20FROM\x20nonexistent_table','success','2403282mQGZxw','30d','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','7nyUQnk','map<string,string>','Onboarding\x20journey\x20for\x20new\x20users','2024-01-15T12:00:00Z','user_id','Forbidden','12956460SGUxcu','lifetime_value','active','0\x200\x20*\x20*\x20*','step-3','total','queryResult','test_db','last_login','log','1Egkolz','user-3','2023-06-15T10:30:00Z','act-123','2024-01-15T08:00:00Z','TimeWithinPast','100LVwOjF','2024-01-15T00:00:00Z','workflow','2097224avmSgI','full_access','step-2','cdp_db','step-1','error','act-email','events_db','parentSegment','admin@example.com','time','330LZLehj','ps-123456','stringify','count','Greater','Welcome\x20Journey','decision_point','UTC','draft','completed','Charlie','running','Bob','data_pipeline','2024-01-15T10:05:00Z','varchar','properties','Journey\x20with\x20decision\x20point','user-1','64122FhFBfJ','179199qhNyYL','Admin\x20User','data_sync','Alice','2024-01-15T10:00:00Z','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','ps-789012','abc123','segment','cs-456789','hourly_sync','https://api.treasuredata.com/errors/forbidden','name','j-abc123','cs-111222','user-2','2023-01-01T00:00:00Z','2024-01-15T09:05:00Z','2024-01-15T10:00:05Z','basic','Customers\x20with\x20Behaviors','string','1936440pdkqaj','page_views','2024-01-01T00:00:00Z'];a206_0x3363=function(){return _0x450a1b;};return a206_0x3363();}function a206_0x56d2(_0x589e96,_0x542865){_0x589e96=_0x589e96-0x7d;const _0x336359=a206_0x3363();let _0x56d2c3=_0x336359[_0x589e96];return _0x56d2c3;}export function createJob(_0x45e60e){const _0x1f5bb6=a206_0x1db324;return{...fixtures['job'][_0x1f5bb6(0xd1)],..._0x45e60e};}export function createWorkflow(_0x33ee08){const _0x423faf=a206_0x1db324;return{...fixtures[_0x423faf(0xbc)][_0x423faf(0x83)],..._0x33ee08};}
1
+ function a206_0x1236(){const _0x444962=['events','Active\x20Users','long','j-abc123','step-1','daily_etl','data_sync','basic','table','admin@example.com','/v3/database/list','last_login','921732ebAffv','success','workflow','user-2','High\x20Value\x20Active\x20Users','job','Table\x20does\x20not\x20exist:\x20nonexistent_table','properties','Active\x20users\x20with\x20high\x20lifetime\x20value','attribute','string','abc123','Journey\x20with\x20decision\x20point','2024-01-15T08:00:00Z','Invalid\x20API\x20key','The\x20requested\x20resource\x20does\x20not\x20exist','Welcome\x20Journey','users','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','user','2oUfSAN','test@example.com','end','247563GULETn','1182gBxZAZ','Users\x20active\x20in\x20the\x20last\x2030\x20days','2024-01-15T10:00:05Z','Resource\x20not\x20found','step-3','act-123','2024-01-15T10:10:01Z','America/Los_Angeles','ps-789012','presto','data_pipeline','11MHPQvL','2023-01-01T00:00:00Z','TimeWithinPast','j-def456','hourly_sync','administrator','journey','cs-111222','user_id','2024-01-15T00:00:00Z','error','decision_point','UTC','test_db','map<string,string>','Alice','272972xcgNVK','Forbidden','cs-456789','events_db','customers','completed','Greater','log','4xmkXwU','2024-01-15T10:10:00Z','sess-111','activation','customer_id','varchar','full_access','stringify','1923410zFdNet','2024-01-15T10:00:00Z','SELECT\x20*\x20FROM\x20nonexistent_table','active','114043GGfTHm','415qpzHTb','ps-123456','queryResult','time','name','Bob','Purchase\x20Reminder','Charlie','draft','Test\x20User','2024-01-01T00:00:00Z','Parent\x20segment\x20with\x20behavioral\x20data','database','act-email','Customers\x20with\x20Behaviors','segment','step-2','parentSegment','running','2024-01-15T10:05:00Z','2024-01-15T09:05:00Z','30d','957808LpfOzo','wf-67890','SELECT\x20COUNT(*)\x20FROM\x20events','Test\x20Parent\x20Segment','2024-01-15T09:00:00Z','event_id','lifetime_value','wait','bigint','created_at','page_views','https://api.treasuredata.com/errors/forbidden'];a206_0x1236=function(){return _0x444962;};return a206_0x1236();}const a206_0x2925a1=a206_0x1df1;(function(_0xfdc6b5,_0x5aa307){const _0x1a5fcf=a206_0x1df1,_0x151f91=_0xfdc6b5();while(!![]){try{const _0x28466b=parseInt(_0x1a5fcf(0x1df))/0x1*(-parseInt(_0x1a5fcf(0x1ac))/0x2)+parseInt(_0x1a5fcf(0x198))/0x3*(parseInt(_0x1a5fcf(0x1d3))/0x4)+-parseInt(_0x1a5fcf(0x1e0))/0x5*(parseInt(_0x1a5fcf(0x1b0))/0x6)+-parseInt(_0x1a5fcf(0x1cb))/0x7+-parseInt(_0x1a5fcf(0x1f6))/0x8+-parseInt(_0x1a5fcf(0x1af))/0x9+-parseInt(_0x1a5fcf(0x1db))/0xa*(-parseInt(_0x1a5fcf(0x1bb))/0xb);if(_0x28466b===_0x5aa307)break;else _0x151f91['push'](_0x151f91['shift']());}catch(_0x1fcda8){_0x151f91['push'](_0x151f91['shift']());}}}(a206_0x1236,0x2cab2));export const fixtures={'database':{'basic':{'name':a206_0x2925a1(0x1c8),'count':0x5,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1ea),'permission':a206_0x2925a1(0x1c0)},'withTables':{'name':'production_db','count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a206_0x2925a1(0x1a5),'permission':a206_0x2925a1(0x1d9)}},'table':{'basic':{'id':0x3039,'name':a206_0x2925a1(0x1a9),'type':a206_0x2925a1(0x1d2),'schema':JSON[a206_0x2925a1(0x1da)]([['id','string'],[a206_0x2925a1(0x1e3),'long'],['name',a206_0x2925a1(0x1a2)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1ea)},'events':{'id':0x303a,'name':a206_0x2925a1(0x18c),'type':a206_0x2925a1(0x1d2),'schema':JSON[a206_0x2925a1(0x1da)]([[a206_0x2925a1(0x1fb),a206_0x2925a1(0x1a2)],[a206_0x2925a1(0x1e3),a206_0x2925a1(0x18e)],[a206_0x2925a1(0x1c3),a206_0x2925a1(0x1a2)],['event_type',a206_0x2925a1(0x1a2)],[a206_0x2925a1(0x19f),a206_0x2925a1(0x1c9)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a206_0x2925a1(0x1e1),'name':a206_0x2925a1(0x1f9),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':'active','master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a206_0x2925a1(0x1d7),'type':'string','key':!![]},{'name':'email','type':a206_0x2925a1(0x1a2)},{'name':a206_0x2925a1(0x1ff),'type':'timestamp'}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a206_0x2925a1(0x1b8),'name':a206_0x2925a1(0x1ee),'description':a206_0x2925a1(0x1eb),'status':'active','master_table':{'database':'cdp_db','table':a206_0x2925a1(0x1cf)},'behaviors':[{'name':'purchases','table':{'database':a206_0x2925a1(0x1ce),'table':'purchases'},'join_key':a206_0x2925a1(0x1d7)},{'name':a206_0x2925a1(0x200),'table':{'database':'events_db','table':'pageviews'},'join_key':a206_0x2925a1(0x1d7)}],'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)}},'segment':{'basic':{'id':'cs-456789','name':a206_0x2925a1(0x18d),'description':a206_0x2925a1(0x1b1),'parent_segment_id':a206_0x2925a1(0x1e1),'status':a206_0x2925a1(0x1de),'rules':[{'type':'attribute','field':'last_login','operator':a206_0x2925a1(0x1bd),'value':a206_0x2925a1(0x1f5)}],'count':0x1388,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)},'withMultipleRules':{'id':a206_0x2925a1(0x1c2),'name':a206_0x2925a1(0x19c),'description':a206_0x2925a1(0x1a0),'parent_segment_id':a206_0x2925a1(0x1e1),'status':'active','rules':[{'type':a206_0x2925a1(0x1a1),'field':a206_0x2925a1(0x197),'operator':a206_0x2925a1(0x1bd),'value':a206_0x2925a1(0x1f5)},{'type':a206_0x2925a1(0x1a1),'field':a206_0x2925a1(0x1fc),'operator':a206_0x2925a1(0x1d1),'value':0x3e8}],'count':0x5dc,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)}},'journey':{'basic':{'id':a206_0x2925a1(0x18f),'name':a206_0x2925a1(0x1a8),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':a206_0x2925a1(0x1e8),'version':0x1,'steps':[{'id':a206_0x2925a1(0x190),'type':a206_0x2925a1(0x1fd),'duration':'1d'},{'id':a206_0x2925a1(0x1f0),'type':a206_0x2925a1(0x1d6),'activation_id':a206_0x2925a1(0x1b5)}],'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)},'withDecision':{'id':a206_0x2925a1(0x1be),'name':a206_0x2925a1(0x1e6),'description':a206_0x2925a1(0x1a4),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a206_0x2925a1(0x1c6),'segment_id':a206_0x2925a1(0x1cd),'yes_path':a206_0x2925a1(0x1f0),'no_path':a206_0x2925a1(0x1b4)},{'id':a206_0x2925a1(0x1f0),'type':a206_0x2925a1(0x1d6),'activation_id':a206_0x2925a1(0x1ed)},{'id':a206_0x2925a1(0x1b4),'type':a206_0x2925a1(0x1ae)}],'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a206_0x2925a1(0x1d8)},{'name':a206_0x2925a1(0x1e4),'type':'varchar'},{'name':'count','type':a206_0x2925a1(0x1fe)}],'data':[['user-1',a206_0x2925a1(0x1ca),0x64],[a206_0x2925a1(0x19b),a206_0x2925a1(0x1e5),0xc8],['user-3',a206_0x2925a1(0x1e7),0x96]]},'empty':{'schema':[{'name':'id','type':a206_0x2925a1(0x1d8)},{'name':a206_0x2925a1(0x1e4),'type':a206_0x2925a1(0x1d8)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a206_0x2925a1(0x1fe)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a206_0x2925a1(0x1e9),'email':a206_0x2925a1(0x1ad),'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a206_0x2925a1(0x195),'created_at':a206_0x2925a1(0x1bc),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0x2925a1(0x1b9),'database':'test_db','status':a206_0x2925a1(0x199),'query':a206_0x2925a1(0x1aa),'start_at':a206_0x2925a1(0x1dc),'end_at':a206_0x2925a1(0x1b2),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a206_0x2925a1(0x1b9),'database':a206_0x2925a1(0x1c8),'status':a206_0x2925a1(0x1f2),'query':a206_0x2925a1(0x1f8),'start_at':a206_0x2925a1(0x1f3),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a206_0x2925a1(0x1b9),'database':a206_0x2925a1(0x1c8),'status':a206_0x2925a1(0x1c5),'query':a206_0x2925a1(0x1dd),'start_at':a206_0x2925a1(0x1d4),'end_at':a206_0x2925a1(0x1b6),'duration':0x1,'result_size':null,'error':a206_0x2925a1(0x19e)}},'workflow':{'basic':{'id':'wf-12345','name':a206_0x2925a1(0x191),'project':a206_0x2925a1(0x1ba),'revision':a206_0x2925a1(0x1a3),'timezone':a206_0x2925a1(0x1c7),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a206_0x2925a1(0x1f7),'name':a206_0x2925a1(0x1bf),'project':a206_0x2925a1(0x192),'revision':'def456','timezone':a206_0x2925a1(0x1b7),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a206_0x2925a1(0x1d5),'status':a206_0x2925a1(0x199),'started_at':a206_0x2925a1(0x1fa),'finished_at':a206_0x2925a1(0x1f4)}}},'apiError':{'unauthorized':{'errors':{'error':a206_0x2925a1(0x1a6),'message':'Invalid\x20API\x20key','severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a206_0x2925a1(0x1b3),'message':a206_0x2925a1(0x1a7),'severity':a206_0x2925a1(0x1c5),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a206_0x2925a1(0x201),'title':a206_0x2925a1(0x1cc),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a206_0x2925a1(0x196)}}};export function createDatabase(_0xd6559b){const _0x5a7739=a206_0x2925a1;return{...fixtures[_0x5a7739(0x1ec)][_0x5a7739(0x193)],..._0xd6559b};}export function createTable(_0x3e902e){const _0x4aaa42=a206_0x2925a1;return{...fixtures[_0x4aaa42(0x194)]['basic'],..._0x3e902e};}export function createParentSegment(_0x15471d){const _0x4168b0=a206_0x2925a1;return{...fixtures[_0x4168b0(0x1f1)][_0x4168b0(0x193)],..._0x15471d};}export function createSegment(_0x7ba39c){const _0x1a81fd=a206_0x2925a1;return{...fixtures[_0x1a81fd(0x1ef)][_0x1a81fd(0x193)],..._0x7ba39c};}export function createJourney(_0x3c02df){const _0x3e48de=a206_0x2925a1;return{...fixtures[_0x3e48de(0x1c1)][_0x3e48de(0x193)],..._0x3c02df};}export function createQueryResult(_0x15762e){const _0x2c471c=a206_0x2925a1;return{...fixtures[_0x2c471c(0x1e2)][_0x2c471c(0x193)],..._0x15762e};}export function createUser(_0x158004){const _0x5b597f=a206_0x2925a1;return{...fixtures[_0x5b597f(0x1ab)][_0x5b597f(0x193)],..._0x158004};}function a206_0x1df1(_0x657de0,_0x467e0d){_0x657de0=_0x657de0-0x18c;const _0x1236fa=a206_0x1236();let _0x1df1b8=_0x1236fa[_0x657de0];return _0x1df1b8;}export function createJob(_0x268077){const _0x4c1bfb=a206_0x2925a1;return{...fixtures[_0x4c1bfb(0x19d)][_0x4c1bfb(0x1d0)],..._0x268077};}export function createWorkflow(_0x16cd1a){const _0x58cec2=a206_0x2925a1;return{...fixtures[_0x58cec2(0x19a)]['basic'],..._0x16cd1a};}
@@ -1 +1 @@
1
- const a207_0x51cf70=a207_0x2683;function a207_0x41d9(){const _0x16fdbf=['filter','4416TOejMs','registerWithInspector','withQuery','jsonResponse','matched','reset','withBody','stack','text/plain','host','push','379612OMqQhk','https://api.treasuredata.com/errors/','Too\x20Many\x20Requests','Unknown','register','Internal\x20Server\x20Error','createFetch','117nqiDLy','\x20registered\x20at:\x0a','stubs','simple','join','\x20\x20(none)','isArray','4249qdwpKE','Bad\x20Request','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','fail','1474790uWpXmh','fetchMock','networkError','unnamed\x20stub','toLowerCase','pathname','parseRequest','searchParams','responder','url','function','withHost','split','wasCalled','entries','getStatusText','string','Service\x20Unavailable','Forbidden','1090fvNaLj','rfc9457','map','td-api','3882sgvIcw','No\x20stub\x20matched\x20request:\x20','description','No\x20Content','includes','Unprocessable\x20Entity','mockImplementation','Created','toUpperCase','jsonResponseWithHeaders','error','Unmatched\x20stub','textResponse','35649XarJZS','application/json','method','test','body','headers','stringify','Request\x20body:\x20','136504lOEavk','matcher','807728uYYEPA','length','matchCount','Unauthorized','errorResponse','parse','Conflict','getRequests','requests'];a207_0x41d9=function(){return _0x16fdbf;};return a207_0x41d9();}(function(_0x1a6cc7,_0x40c779){const _0x166025=a207_0x2683,_0x53c51f=_0x1a6cc7();while(!![]){try{const _0x4bb401=parseInt(_0x166025(0x1b0))/0x1+parseInt(_0x166025(0x184))/0x2*(-parseInt(_0x166025(0x1b7))/0x3)+-parseInt(_0x166025(0x19b))/0x4+parseInt(_0x166025(0x1c2))/0x5+parseInt(_0x166025(0x1a5))/0x6*(-parseInt(_0x166025(0x1be))/0x7)+-parseInt(_0x166025(0x199))/0x8+-parseInt(_0x166025(0x191))/0x9*(-parseInt(_0x166025(0x180))/0xa);if(_0x4bb401===_0x40c779)break;else _0x53c51f['push'](_0x53c51f['shift']());}catch(_0x35d02b){_0x53c51f['push'](_0x53c51f['shift']());}}}(a207_0x41d9,0x59149));import{vi}from'vitest';export class HTTPMockRegistry{[a207_0x51cf70(0x1b9)]=[];[a207_0x51cf70(0x1a3)]=[];[a207_0x51cf70(0x1c3)]=null;['REST'](_0x41a3b9,_0x3ad9e0){return _0x3702e6=>{const _0xf0ecc5=a207_0x2683;if(_0x3702e6[_0xf0ecc5(0x193)][_0xf0ecc5(0x18c)]()!==_0x41a3b9[_0xf0ecc5(0x18c)]())return![];const _0x5af9ae=new URL(_0x3702e6[_0xf0ecc5(0x176)]);if(typeof _0x3ad9e0===_0xf0ecc5(0x17d))return _0x5af9ae[_0xf0ecc5(0x1c7)]===_0x3ad9e0||_0x5af9ae[_0xf0ecc5(0x1c7)][_0xf0ecc5(0x188)](_0x3ad9e0);return _0x3ad9e0[_0xf0ecc5(0x194)](_0x5af9ae[_0xf0ecc5(0x1c7)]);};}[a207_0x51cf70(0x1a7)](_0x1bec76,_0x2125bb){return _0x2a6b24=>{const _0x296b7f=a207_0x2683;if(!_0x1bec76(_0x2a6b24))return![];const _0x448e93=new URL(_0x2a6b24['url']);return Object['entries'](_0x2125bb)['every'](([_0x5e6e27,_0x382553])=>_0x448e93[_0x296b7f(0x174)]['get'](_0x5e6e27)===_0x382553);};}[a207_0x51cf70(0x1ab)](_0x1e4d0b,_0x204504){return _0x291220=>{const _0x23f2a4=a207_0x2683;if(!_0x1e4d0b(_0x291220))return![];if(typeof _0x204504===_0x23f2a4(0x177))return _0x204504(_0x291220[_0x23f2a4(0x195)]);return JSON[_0x23f2a4(0x197)](_0x291220['body'])===JSON[_0x23f2a4(0x197)](_0x204504);};}[a207_0x51cf70(0x178)](_0x39e994,_0x450b1e){return _0x2991ee=>{const _0x219966=a207_0x2683;if(!_0x39e994(_0x2991ee))return![];const _0x5d9645=new URL(_0x2991ee[_0x219966(0x176)]);return _0x5d9645[_0x219966(0x1ae)]===_0x450b1e;};}[a207_0x51cf70(0x1b4)](_0x3b18e0,_0x49968a,_0x5ff148){const _0x1b77ec=a207_0x51cf70;this['stubs'][_0x1b77ec(0x1af)]({'matcher':_0x3b18e0,'responder':_0x49968a,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x5ff148?.[_0x1b77ec(0x186)]});}[a207_0x51cf70(0x1a6)](_0x3b26cb,_0x535faa,_0x3ea1d6){const _0x5691c6=a207_0x51cf70,_0x91a60f=_0x565c79=>{return _0x3ea1d6(_0x565c79['body'],_0x565c79),_0x535faa(_0x565c79);};this[_0x5691c6(0x1b4)](_0x3b26cb,_0x91a60f);}static[a207_0x51cf70(0x1a8)](_0x3adc72,_0x347d7b=0xc8){const _0x45435f=a207_0x51cf70;return()=>new Response(JSON[_0x45435f(0x197)](_0x3adc72),{'status':_0x347d7b,'headers':{'Content-Type':_0x45435f(0x192)}});}static[a207_0x51cf70(0x19f)](_0x395502,_0x1eb823,_0x27308c=a207_0x51cf70(0x1ba)){return()=>{const _0x5c7815=a207_0x2683;let _0x13cf15;switch(_0x27308c){case _0x5c7815(0x183):_0x13cf15={'errors':{'error':_0x1eb823,'message':_0x1eb823,'severity':_0x5c7815(0x18e),'status_code':_0x395502}};break;case _0x5c7815(0x181):_0x13cf15={'type':_0x5c7815(0x1b1)+_0x395502,'title':HTTPMockRegistry[_0x5c7815(0x17c)](_0x395502),'status':_0x395502,'detail':_0x1eb823};break;default:_0x13cf15={'error':_0x1eb823};}return new Response(JSON[_0x5c7815(0x197)](_0x13cf15),{'status':_0x395502,'headers':{'Content-Type':_0x5c7815(0x192)}});};}static[a207_0x51cf70(0x18d)](_0x2f18c7,_0xa97d22,_0x57f317=0xc8){const _0x5e1d50=a207_0x51cf70;return()=>new Response(JSON[_0x5e1d50(0x197)](_0x2f18c7),{'status':_0x57f317,'headers':{'Content-Type':_0x5e1d50(0x192),..._0xa97d22}});}static[a207_0x51cf70(0x190)](_0x32b219,_0x269e61=0xc8){const _0x3c1e7c=a207_0x51cf70;return()=>new Response(_0x32b219,{'status':_0x269e61,'headers':{'Content-Type':_0x3c1e7c(0x1ad)}});}static[a207_0x51cf70(0x1c4)](_0x2043fb){return()=>{throw new Error(_0x2043fb);};}[a207_0x51cf70(0x1b6)](){const _0x1c7b71=a207_0x51cf70;return this[_0x1c7b71(0x1c3)]=vi['fn']()[_0x1c7b71(0x18a)](async(_0x230db5,_0x1aa2b5)=>{const _0x1074a9=_0x1c7b71,_0x4a49af=this[_0x1074a9(0x173)](_0x230db5,_0x1aa2b5);this[_0x1074a9(0x1a3)][_0x1074a9(0x1af)](_0x4a49af);for(const _0x14a2c2 of this['stubs']){if(_0x14a2c2[_0x1074a9(0x19a)](_0x4a49af))return _0x14a2c2[_0x1074a9(0x1a9)]=!![],_0x14a2c2[_0x1074a9(0x19d)]++,_0x14a2c2[_0x1074a9(0x175)](_0x4a49af);}const _0x4070e8=this[_0x1074a9(0x1b9)][_0x1074a9(0x182)]((_0x1da571,_0x3f71c6)=>'\x20\x20'+(_0x3f71c6+0x1)+'.\x20'+(_0x1da571[_0x1074a9(0x186)]??_0x1074a9(0x1c5)))[_0x1074a9(0x1bb)]('\x0a');throw new Error(_0x1074a9(0x185)+_0x4a49af['method']+'\x20'+_0x4a49af[_0x1074a9(0x176)]+'\x0a'+(_0x1074a9(0x198)+JSON[_0x1074a9(0x197)](_0x4a49af[_0x1074a9(0x195)])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x4070e8||_0x1074a9(0x1bc))));}),this['fetchMock'];}[a207_0x51cf70(0x173)](_0x2c8273,_0x42b28f){const _0x57f284=a207_0x51cf70,_0x4acd43={};if(_0x42b28f?.[_0x57f284(0x196)]){if(_0x42b28f[_0x57f284(0x196)]instanceof Headers)_0x42b28f[_0x57f284(0x196)]['forEach']((_0x2543dd,_0x423081)=>{_0x4acd43[_0x423081['toLowerCase']()]=_0x2543dd;});else{if(Array[_0x57f284(0x1bd)](_0x42b28f[_0x57f284(0x196)]))for(const [_0xad1402,_0x656c14]of _0x42b28f[_0x57f284(0x196)]){_0x4acd43[_0xad1402[_0x57f284(0x1c6)]()]=_0x656c14;}else for(const [_0x58dcaa,_0x4e40d4]of Object[_0x57f284(0x17b)](_0x42b28f[_0x57f284(0x196)])){_0x4e40d4!==undefined&&(_0x4acd43[_0x58dcaa[_0x57f284(0x1c6)]()]=_0x4e40d4);}}}let _0xf4e6ae;if(_0x42b28f?.[_0x57f284(0x195)])try{_0xf4e6ae=JSON[_0x57f284(0x1a0)](_0x42b28f[_0x57f284(0x195)]);}catch{_0xf4e6ae=_0x42b28f[_0x57f284(0x195)];}return{'method':_0x42b28f?.['method']??'GET','url':_0x2c8273,'headers':_0x4acd43,'body':_0xf4e6ae};}['verify'](_0x5e99aa){const _0x2ed688=a207_0x51cf70,_0x1ff275=this[_0x2ed688(0x1b9)][_0x2ed688(0x1a4)](_0x354829=>!_0x354829[_0x2ed688(0x1a9)]);if(_0x1ff275['length']>0x0){const _0x876068=_0x1ff275['map'](_0x525695=>{const _0x221d7f=_0x2ed688,_0x392710=_0x525695[_0x221d7f(0x186)]?'\x20('+_0x525695['description']+')':'',_0x5e3b82=_0x525695[_0x221d7f(0x1ac)][_0x221d7f(0x179)]('\x0a')['slice'](0x2,0x5)[_0x221d7f(0x1bb)]('\x0a');return _0x221d7f(0x18f)+_0x392710+_0x221d7f(0x1b8)+_0x5e3b82;});_0x5e99aa[_0x2ed688(0x1c1)](_0x1ff275[_0x2ed688(0x19c)]+_0x2ed688(0x1c0)+_0x876068[_0x2ed688(0x1bb)]('\x0a\x0a'));}}[a207_0x51cf70(0x1a2)](){const _0x110d55=a207_0x51cf70;return[...this[_0x110d55(0x1a3)]];}['getLastRequest'](){const _0xd7be20=a207_0x51cf70;return this['requests'][this[_0xd7be20(0x1a3)][_0xd7be20(0x19c)]-0x1];}[a207_0x51cf70(0x17a)](_0x50737b,_0x496f9b){const _0x4d4720=a207_0x51cf70;return this[_0x4d4720(0x1a3)]['some'](_0xc2ac2b=>{const _0x4311aa=_0x4d4720;if(_0xc2ac2b[_0x4311aa(0x193)][_0x4311aa(0x18c)]()!==_0x50737b[_0x4311aa(0x18c)]())return![];if(typeof _0x496f9b===_0x4311aa(0x17d))return _0xc2ac2b[_0x4311aa(0x176)][_0x4311aa(0x188)](_0x496f9b);return _0x496f9b[_0x4311aa(0x194)](_0xc2ac2b['url']);});}['getMatchCount'](_0x3df3af){const _0x5abd41=a207_0x51cf70;return this[_0x5abd41(0x1b9)][_0x3df3af]?.['matchCount']??0x0;}[a207_0x51cf70(0x1aa)](){const _0x44bedc=a207_0x51cf70;this[_0x44bedc(0x1b9)]=[],this[_0x44bedc(0x1a3)]=[],this['fetchMock']=null;}static[a207_0x51cf70(0x17c)](_0x512617){const _0x4f3ff8=a207_0x51cf70,_0x353105={0xc8:'OK',0xc9:_0x4f3ff8(0x18b),0xcc:_0x4f3ff8(0x187),0x190:_0x4f3ff8(0x1bf),0x191:_0x4f3ff8(0x19e),0x193:_0x4f3ff8(0x17f),0x194:'Not\x20Found',0x199:_0x4f3ff8(0x1a1),0x1a6:_0x4f3ff8(0x189),0x1ad:_0x4f3ff8(0x1b2),0x1f4:_0x4f3ff8(0x1b5),0x1f6:'Bad\x20Gateway',0x1f7:_0x4f3ff8(0x17e)};return _0x353105[_0x512617]??_0x4f3ff8(0x1b3);}}function a207_0x2683(_0x19769d,_0x57fd04){_0x19769d=_0x19769d-0x173;const _0x41d93c=a207_0x41d9();let _0x268349=_0x41d93c[_0x19769d];return _0x268349;}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a207_0x46d778=a207_0x3ce8;(function(_0x3349a2,_0x527041){const _0x29e9bd=a207_0x3ce8,_0x70812f=_0x3349a2();while(!![]){try{const _0x2b298e=-parseInt(_0x29e9bd(0xa6))/0x1*(parseInt(_0x29e9bd(0x8a))/0x2)+parseInt(_0x29e9bd(0xa5))/0x3+parseInt(_0x29e9bd(0x85))/0x4*(parseInt(_0x29e9bd(0xbe))/0x5)+-parseInt(_0x29e9bd(0xd3))/0x6+parseInt(_0x29e9bd(0x87))/0x7*(-parseInt(_0x29e9bd(0xc6))/0x8)+parseInt(_0x29e9bd(0xb6))/0x9+-parseInt(_0x29e9bd(0xce))/0xa*(-parseInt(_0x29e9bd(0xac))/0xb);if(_0x2b298e===_0x527041)break;else _0x70812f['push'](_0x70812f['shift']());}catch(_0x396cd7){_0x70812f['push'](_0x70812f['shift']());}}}(a207_0xd22f,0x2af5d));import{vi}from'vitest';function a207_0x3ce8(_0x8c8c3b,_0x3ee575){_0x8c8c3b=_0x8c8c3b-0x84;const _0xd22fc5=a207_0xd22f();let _0x3ce826=_0xd22fc5[_0x8c8c3b];return _0x3ce826;}export class HTTPMockRegistry{[a207_0x46d778(0xb0)]=[];['requests']=[];['fetchMock']=null;[a207_0x46d778(0xa4)](_0x12c1ac,_0x4aa939){return _0x18a1c4=>{const _0x448785=a207_0x3ce8;if(_0x18a1c4[_0x448785(0xd4)][_0x448785(0x90)]()!==_0x12c1ac[_0x448785(0x90)]())return![];const _0x110959=new URL(_0x18a1c4[_0x448785(0x88)]);if(typeof _0x4aa939===_0x448785(0xab))return _0x110959[_0x448785(0x84)]===_0x4aa939||_0x110959[_0x448785(0x84)][_0x448785(0xa8)](_0x4aa939);return _0x4aa939[_0x448785(0x86)](_0x110959['pathname']);};}['withQuery'](_0x4da4ca,_0xa96422){return _0x50e19e=>{const _0x59fca4=a207_0x3ce8;if(!_0x4da4ca(_0x50e19e))return![];const _0x3b7e11=new URL(_0x50e19e[_0x59fca4(0x88)]);return Object[_0x59fca4(0xa3)](_0xa96422)[_0x59fca4(0xaa)](([_0x536808,_0x11c524])=>_0x3b7e11[_0x59fca4(0xb7)][_0x59fca4(0x89)](_0x536808)===_0x11c524);};}['withBody'](_0x1224c3,_0x475175){return _0x37e169=>{const _0x129ef4=a207_0x3ce8;if(!_0x1224c3(_0x37e169))return![];if(typeof _0x475175===_0x129ef4(0xb3))return _0x475175(_0x37e169[_0x129ef4(0xc5)]);return JSON['stringify'](_0x37e169[_0x129ef4(0xc5)])===JSON['stringify'](_0x475175);};}[a207_0x46d778(0xa7)](_0x5b49df,_0x56a448){return _0x3e8952=>{const _0x2a3a01=a207_0x3ce8;if(!_0x5b49df(_0x3e8952))return![];const _0x35fae3=new URL(_0x3e8952[_0x2a3a01(0x88)]);return _0x35fae3['host']===_0x56a448;};}['register'](_0x44078a,_0x284370,_0x32896e){const _0x5e54aa=a207_0x46d778;this[_0x5e54aa(0xb0)][_0x5e54aa(0x99)]({'matcher':_0x44078a,'responder':_0x284370,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5e54aa(0xb1)]??'','description':_0x32896e?.[_0x5e54aa(0xbd)]});}['registerWithInspector'](_0x16c82d,_0x1d3302,_0x30bb79){const _0x2ca160=a207_0x46d778,_0x255ed1=_0x1d518a=>{return _0x30bb79(_0x1d518a['body'],_0x1d518a),_0x1d3302(_0x1d518a);};this[_0x2ca160(0xa2)](_0x16c82d,_0x255ed1);}static[a207_0x46d778(0xb9)](_0x4ed88e,_0x5c5b0f=0xc8){const _0x26195b=a207_0x46d778;return()=>new Response(JSON[_0x26195b(0xd0)](_0x4ed88e),{'status':_0x5c5b0f,'headers':{'Content-Type':_0x26195b(0xb8)}});}static[a207_0x46d778(0xc0)](_0xa4af02,_0x4b3367,_0x22382f='simple'){return()=>{const _0x5c56a5=a207_0x3ce8;let _0x8346cf;switch(_0x22382f){case _0x5c56a5(0xcf):_0x8346cf={'errors':{'error':_0x4b3367,'message':_0x4b3367,'severity':_0x5c56a5(0xc2),'status_code':_0xa4af02}};break;case _0x5c56a5(0xaf):_0x8346cf={'type':'https://api.treasuredata.com/errors/'+_0xa4af02,'title':HTTPMockRegistry[_0x5c56a5(0xae)](_0xa4af02),'status':_0xa4af02,'detail':_0x4b3367};break;default:_0x8346cf={'error':_0x4b3367};}return new Response(JSON[_0x5c56a5(0xd0)](_0x8346cf),{'status':_0xa4af02,'headers':{'Content-Type':_0x5c56a5(0xb8)}});};}static[a207_0x46d778(0xd1)](_0x5b4f6d,_0x20a58e,_0x598798=0xc8){const _0x5c503b=a207_0x46d778;return()=>new Response(JSON[_0x5c503b(0xd0)](_0x5b4f6d),{'status':_0x598798,'headers':{'Content-Type':_0x5c503b(0xb8),..._0x20a58e}});}static[a207_0x46d778(0x8d)](_0x2448dc,_0x4da91d=0xc8){const _0x3f65aa=a207_0x46d778;return()=>new Response(_0x2448dc,{'status':_0x4da91d,'headers':{'Content-Type':_0x3f65aa(0x94)}});}static[a207_0x46d778(0x96)](_0x4337d1){return()=>{throw new Error(_0x4337d1);};}[a207_0x46d778(0x91)](){const _0x265f9c=a207_0x46d778;return this[_0x265f9c(0x8c)]=vi['fn']()['mockImplementation'](async(_0x3aa583,_0xaababc)=>{const _0x17fcdd=_0x265f9c,_0xee2765=this[_0x17fcdd(0xc9)](_0x3aa583,_0xaababc);this[_0x17fcdd(0xc7)][_0x17fcdd(0x99)](_0xee2765);for(const _0x51eaa3 of this[_0x17fcdd(0xb0)]){if(_0x51eaa3['matcher'](_0xee2765))return _0x51eaa3[_0x17fcdd(0x9d)]=!![],_0x51eaa3[_0x17fcdd(0xba)]++,_0x51eaa3['responder'](_0xee2765);}const _0x1bdfbf=this[_0x17fcdd(0xb0)][_0x17fcdd(0x8f)]((_0x5a965b,_0x550ba5)=>'\x20\x20'+(_0x550ba5+0x1)+'.\x20'+(_0x5a965b[_0x17fcdd(0xbd)]??_0x17fcdd(0xc4)))[_0x17fcdd(0xb4)]('\x0a');throw new Error(_0x17fcdd(0xc3)+_0xee2765[_0x17fcdd(0xd4)]+'\x20'+_0xee2765[_0x17fcdd(0x88)]+'\x0a'+(_0x17fcdd(0x95)+JSON[_0x17fcdd(0xd0)](_0xee2765[_0x17fcdd(0xc5)])+'\x0a')+(_0x17fcdd(0xb2)+(_0x1bdfbf||_0x17fcdd(0xcb))));}),this[_0x265f9c(0x8c)];}[a207_0x46d778(0xc9)](_0xe445b1,_0xdc158e){const _0x27d19e=a207_0x46d778,_0x21fc68={};if(_0xdc158e?.[_0x27d19e(0xbb)]){if(_0xdc158e[_0x27d19e(0xbb)]instanceof Headers)_0xdc158e['headers']['forEach']((_0x6b321a,_0x2a7e9c)=>{const _0x421a75=_0x27d19e;_0x21fc68[_0x2a7e9c[_0x421a75(0x8e)]()]=_0x6b321a;});else{if(Array[_0x27d19e(0xa9)](_0xdc158e[_0x27d19e(0xbb)]))for(const [_0x33a80c,_0x285246]of _0xdc158e[_0x27d19e(0xbb)]){_0x21fc68[_0x33a80c[_0x27d19e(0x8e)]()]=_0x285246;}else for(const [_0x47858f,_0x1ea57d]of Object['entries'](_0xdc158e[_0x27d19e(0xbb)])){_0x1ea57d!==undefined&&(_0x21fc68[_0x47858f[_0x27d19e(0x8e)]()]=_0x1ea57d);}}}let _0x731284;if(_0xdc158e?.[_0x27d19e(0xc5)])try{_0x731284=JSON[_0x27d19e(0xb5)](_0xdc158e['body']);}catch{_0x731284=_0xdc158e['body'];}return{'method':_0xdc158e?.[_0x27d19e(0xd4)]??'GET','url':_0xe445b1,'headers':_0x21fc68,'body':_0x731284};}[a207_0x46d778(0xbc)](_0x241699){const _0x427695=a207_0x46d778,_0x16873d=this['stubs'][_0x427695(0x9e)](_0x55cc73=>!_0x55cc73['matched']);if(_0x16873d[_0x427695(0x9f)]>0x0){const _0x2ed6d3=_0x16873d[_0x427695(0x8f)](_0x3c9c67=>{const _0x12913d=_0x427695,_0x4d19f8=_0x3c9c67[_0x12913d(0xbd)]?'\x20('+_0x3c9c67['description']+')':'',_0x56a09c=_0x3c9c67[_0x12913d(0xb1)][_0x12913d(0x98)]('\x0a')['slice'](0x2,0x5)[_0x12913d(0xb4)]('\x0a');return _0x12913d(0xd2)+_0x4d19f8+_0x12913d(0x92)+_0x56a09c;});_0x241699[_0x427695(0xcd)](_0x16873d['length']+_0x427695(0xca)+_0x2ed6d3[_0x427695(0xb4)]('\x0a\x0a'));}}[a207_0x46d778(0xa1)](){const _0x23a28a=a207_0x46d778;return[...this[_0x23a28a(0xc7)]];}['getLastRequest'](){const _0x33da6b=a207_0x46d778;return this[_0x33da6b(0xc7)][this['requests'][_0x33da6b(0x9f)]-0x1];}[a207_0x46d778(0x93)](_0xc854a8,_0x2a47e8){const _0x536032=a207_0x46d778;return this[_0x536032(0xc7)]['some'](_0x5051e5=>{const _0x157fd7=_0x536032;if(_0x5051e5['method'][_0x157fd7(0x90)]()!==_0xc854a8['toUpperCase']())return![];if(typeof _0x2a47e8===_0x157fd7(0xab))return _0x5051e5[_0x157fd7(0x88)]['includes'](_0x2a47e8);return _0x2a47e8[_0x157fd7(0x86)](_0x5051e5[_0x157fd7(0x88)]);});}[a207_0x46d778(0xbf)](_0x5cf80){const _0x5a5625=a207_0x46d778;return this['stubs'][_0x5cf80]?.[_0x5a5625(0xba)]??0x0;}[a207_0x46d778(0x8b)](){const _0x13b443=a207_0x46d778;this['stubs']=[],this[_0x13b443(0xc7)]=[],this['fetchMock']=null;}static['getStatusText'](_0x34aa3b){const _0x39d341=a207_0x46d778,_0x226ecf={0xc8:'OK',0xc9:_0x39d341(0xcc),0xcc:_0x39d341(0xad),0x190:_0x39d341(0x9c),0x191:'Unauthorized',0x193:_0x39d341(0x9b),0x194:_0x39d341(0xc8),0x199:_0x39d341(0x9a),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x39d341(0xa0),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x39d341(0x97),0x1f7:_0x39d341(0xc1)};return _0x226ecf[_0x34aa3b]??'Unknown';}}function a207_0xd22f(){const _0x275611=['join','parse','547119hsFvWP','searchParams','application/json','jsonResponse','matchCount','headers','verify','description','3035rZZMhB','getMatchCount','errorResponse','Service\x20Unavailable','error','No\x20stub\x20matched\x20request:\x20','unnamed\x20stub','body','656SkktYs','requests','Not\x20Found','parseRequest','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','\x20\x20(none)','Created','fail','60790tRXfSL','td-api','stringify','jsonResponseWithHeaders','Unmatched\x20stub','2099556wAtcdN','method','pathname','148cAyWFV','test','19663FWzwwt','url','get','4MAZFmH','reset','fetchMock','textResponse','toLowerCase','map','toUpperCase','createFetch','\x20registered\x20at:\x0a','wasCalled','text/plain','Request\x20body:\x20','networkError','Bad\x20Gateway','split','push','Conflict','Forbidden','Bad\x20Request','matched','filter','length','Too\x20Many\x20Requests','getRequests','register','entries','REST','687987qSasQd','155073uMSoSo','withHost','includes','isArray','every','string','1364pbPMQM','No\x20Content','getStatusText','rfc9457','stubs','stack','Registered\x20stubs:\x0a','function'];a207_0xd22f=function(){return _0x275611;};return a207_0xd22f();}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- function a208_0x4343(){var _0xd92ee=['27jjNuAl','43616jkgTwv','10xgpdVl','7259790XBmUAf','113689FVVWBD','679uJIAkQ','646425rxrZFq','5480064vBMzCl','4295255kOYftJ','2745104GfuKXK'];a208_0x4343=function(){return _0xd92ee;};return a208_0x4343();}(function(_0x39ef93,_0x262a44){var _0xe8aa19=a208_0x32c2,_0x31fed2=_0x39ef93();while(!![]){try{var _0x2f3f2f=-parseInt(_0xe8aa19(0x14f))/0x1*(-parseInt(_0xe8aa19(0x14d))/0x2)+parseInt(_0xe8aa19(0x147))/0x3+parseInt(_0xe8aa19(0x14a))/0x4+parseInt(_0xe8aa19(0x149))/0x5+parseInt(_0xe8aa19(0x148))/0x6+-parseInt(_0xe8aa19(0x146))/0x7*(parseInt(_0xe8aa19(0x14c))/0x8)+parseInt(_0xe8aa19(0x14b))/0x9*(-parseInt(_0xe8aa19(0x14e))/0xa);if(_0x2f3f2f===_0x262a44)break;else _0x31fed2['push'](_0x31fed2['shift']());}catch(_0x1ffaaf){_0x31fed2['push'](_0x31fed2['shift']());}}}(a208_0x4343,0x82d02));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a208_0x32c2(_0x40473a,_0x57ee3e){_0x40473a=_0x40473a-0x146;var _0x4343ef=a208_0x4343();var _0x32c27d=_0x4343ef[_0x40473a];return _0x32c27d;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ function a208_0xad5a(_0xb4e420,_0x114ad7){_0xb4e420=_0xb4e420-0x190;var _0x4a8f4c=a208_0x4a8f();var _0xad5a1d=_0x4a8f4c[_0xb4e420];return _0xad5a1d;}(function(_0x32b192,_0x3270b0){var _0x31736a=a208_0xad5a,_0x103d84=_0x32b192();while(!![]){try{var _0x18ba0f=parseInt(_0x31736a(0x193))/0x1*(-parseInt(_0x31736a(0x197))/0x2)+-parseInt(_0x31736a(0x190))/0x3*(parseInt(_0x31736a(0x196))/0x4)+-parseInt(_0x31736a(0x199))/0x5+parseInt(_0x31736a(0x194))/0x6+-parseInt(_0x31736a(0x198))/0x7+-parseInt(_0x31736a(0x19a))/0x8*(parseInt(_0x31736a(0x191))/0x9)+parseInt(_0x31736a(0x192))/0xa*(parseInt(_0x31736a(0x195))/0xb);if(_0x18ba0f===_0x3270b0)break;else _0x103d84['push'](_0x103d84['shift']());}catch(_0x162333){_0x103d84['push'](_0x103d84['shift']());}}}(a208_0x4a8f,0x29ce5));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a208_0x4a8f(){var _0x5d1a98=['121599qOLDGk','10vDPNwQ','107IfLvse','128790EIZKNx','13488673RyDVGM','172fLrZwE','5244ttjGfe','2337734GaiHXR','274960SJBpMz','48OKidMy','22737LFVDlJ'];a208_0x4a8f=function(){return _0x5d1a98;};return a208_0x4a8f();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
@@ -1 +1 @@
1
- function a209_0x9761(_0x160d06,_0x575c0e){_0x160d06=_0x160d06-0x99;const _0x1ae386=a209_0x1ae3();let _0x976141=_0x1ae386[_0x160d06];return _0x976141;}function a209_0x1ae3(){const _0x511289=['4022845ZBLzgC','slice','196615jfZHGb','all','7hLvLLN','904722YTYYIR','144aXXczG','1051410KzdhcN','119560QMZohX','52032ugiTPo','803710aHaIQx','push','length','87ryUPXU'];a209_0x1ae3=function(){return _0x511289;};return a209_0x1ae3();}(function(_0x2e919a,_0x3ab218){const _0x1d5409=a209_0x9761,_0x454f37=_0x2e919a();while(!![]){try{const _0x43cf56=-parseInt(_0x1d5409(0xa2))/0x1+-parseInt(_0x1d5409(0x99))/0x2+-parseInt(_0x1d5409(0x9f))/0x3*(-parseInt(_0x1d5409(0x9a))/0x4)+-parseInt(_0x1d5409(0xa0))/0x5+-parseInt(_0x1d5409(0xa5))/0x6+parseInt(_0x1d5409(0xa4))/0x7*(parseInt(_0x1d5409(0x9b))/0x8)+-parseInt(_0x1d5409(0xa6))/0x9*(-parseInt(_0x1d5409(0x9c))/0xa);if(_0x43cf56===_0x3ab218)break;else _0x454f37['push'](_0x454f37['shift']());}catch(_0x223ec5){_0x454f37['push'](_0x454f37['shift']());}}}(a209_0x1ae3,0x75926));export async function batchAsync(_0x5eb4fc,_0x24627e,_0x53c319=0xa){const _0x21add3=a209_0x9761,_0x4c4355=[];for(let _0x14dc94=0x0;_0x14dc94<_0x5eb4fc[_0x21add3(0x9e)];_0x14dc94+=_0x53c319){const _0x50e826=_0x5eb4fc[_0x21add3(0xa1)](_0x14dc94,_0x14dc94+_0x53c319),_0x546521=await Promise[_0x21add3(0xa3)](_0x50e826['map'](_0x24627e));_0x4c4355[_0x21add3(0x9d)](..._0x546521);}return _0x4c4355;}
1
+ function a209_0x5998(){const _0xda3a06=['925PAPoaK','all','8946clQmLh','3003750EbOrZU','12vDYZrl','36174wyQvHx','map','length','7954287RTGslx','86563hGbPYE','1686440QAYpDT','32YgUsaL','1184bXXuTq','4586444DTnntB','9tRkrWo'];a209_0x5998=function(){return _0xda3a06;};return a209_0x5998();}function a209_0x4e09(_0x533741,_0x59ad4a){_0x533741=_0x533741-0x118;const _0x5998d1=a209_0x5998();let _0x4e09e9=_0x5998d1[_0x533741];return _0x4e09e9;}(function(_0x30f4f4,_0x142728){const _0x53fe84=a209_0x4e09,_0x59159c=_0x30f4f4();while(!![]){try{const _0x317cf0=parseInt(_0x53fe84(0x123))/0x1*(-parseInt(_0x53fe84(0x125))/0x2)+parseInt(_0x53fe84(0x11d))/0x3+parseInt(_0x53fe84(0x118))/0x4+-parseInt(_0x53fe84(0x11a))/0x5*(-parseInt(_0x53fe84(0x11f))/0x6)+parseInt(_0x53fe84(0x11c))/0x7*(-parseInt(_0x53fe84(0x126))/0x8)+-parseInt(_0x53fe84(0x119))/0x9*(parseInt(_0x53fe84(0x124))/0xa)+-parseInt(_0x53fe84(0x122))/0xb*(parseInt(_0x53fe84(0x11e))/0xc);if(_0x317cf0===_0x142728)break;else _0x59159c['push'](_0x59159c['shift']());}catch(_0x3fb998){_0x59159c['push'](_0x59159c['shift']());}}}(a209_0x5998,0xc2a81));export async function batchAsync(_0x9df239,_0x2b14ec,_0x2e565d=0xa){const _0x4a0ce3=a209_0x4e09,_0x284ab6=[];for(let _0x4533f4=0x0;_0x4533f4<_0x9df239[_0x4a0ce3(0x121)];_0x4533f4+=_0x2e565d){const _0x5f2d32=_0x9df239['slice'](_0x4533f4,_0x4533f4+_0x2e565d),_0x3f92d1=await Promise[_0x4a0ce3(0x11b)](_0x5f2d32[_0x4a0ce3(0x120)](_0x2b14ec));_0x284ab6['push'](..._0x3f92d1);}return _0x284ab6;}
@@ -1 +1 @@
1
- (function(_0x3324c1,_0x27941f){const _0xf96d75=a210_0x2611,_0x1bbaec=_0x3324c1();while(!![]){try{const _0x173352=-parseInt(_0xf96d75(0x184))/0x1+-parseInt(_0xf96d75(0x182))/0x2+-parseInt(_0xf96d75(0x17d))/0x3+parseInt(_0xf96d75(0x18d))/0x4+parseInt(_0xf96d75(0x197))/0x5*(parseInt(_0xf96d75(0x190))/0x6)+parseInt(_0xf96d75(0x186))/0x7*(parseInt(_0xf96d75(0x192))/0x8)+parseInt(_0xf96d75(0x193))/0x9;if(_0x173352===_0x27941f)break;else _0x1bbaec['push'](_0x1bbaec['shift']());}catch(_0x531bde){_0x1bbaec['push'](_0x1bbaec['shift']());}}}(a210_0x516a,0x9dd86));import*as a210_0x56b6d9 from'chalk';const Chalk=a210_0x56b6d9['Chalk'];export function shouldUseColor(_0x4cc360={}){const _0x5bb03b=a210_0x2611;if(_0x4cc360[_0x5bb03b(0x18f)]===!![])return![];if(_0x4cc360[_0x5bb03b(0x187)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5bb03b(0x180)][_0x5bb03b(0x195)]??![];}export function getChalk(_0x34a341={}){if(shouldUseColor(_0x34a341))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a210_0x516a(){const _0x301e3f=['610782TVKsUj','length','8qoRfez','6099318NnPBdl','yellow','isTTY','dim','10yvudQz','object','2121678INUBCy','map','isArray','stdout','string','361528RyTHSD','entries','449833PXbFPJ','repeat','2101092FzvCXn','color','green','join','blue','stringify','number','3211620vyOdGk','null','noColor'];a210_0x516a=function(){return _0x301e3f;};return a210_0x516a();}export function colorBorder(_0x2d4bc3,_0x14b257={}){const _0x41ce0f=a210_0x2611;return getChalk(_0x14b257)[_0x41ce0f(0x196)](_0x2d4bc3);}export function colorHeader(_0x15bafe,_0x408885={}){return getChalk(_0x408885)['cyan'](_0x15bafe);}export function colorType(_0x4d7a9f,_0x207dc4={}){const _0x5a126a=a210_0x2611;return getChalk(_0x207dc4)[_0x5a126a(0x196)](_0x4d7a9f);}function a210_0x2611(_0x3f062f,_0x319e01){_0x3f062f=_0x3f062f-0x17c;const _0x516a6a=a210_0x516a();let _0x2611e0=_0x516a6a[_0x3f062f];return _0x2611e0;}export function colorJSONKey(_0x3bd06b,_0x2528d1={}){const _0x5b1bf3=a210_0x2611;return getChalk(_0x2528d1)[_0x5b1bf3(0x18a)](_0x3bd06b);}export function colorJSONString(_0x460130,_0x5a4bb4={}){const _0x213005=a210_0x2611;return getChalk(_0x5a4bb4)[_0x213005(0x188)](_0x460130);}export function colorJSONNumber(_0x231c57,_0x283a8e={}){return getChalk(_0x283a8e)['cyan'](_0x231c57);}export function colorJSONBoolean(_0x401c8b,_0x3bebf2={}){const _0x35c4c3=a210_0x2611;return getChalk(_0x3bebf2)[_0x35c4c3(0x194)](_0x401c8b);}export function colorJSONNull(_0x4d1abd,_0x27b495={}){const _0x233cfc=a210_0x2611;return getChalk(_0x27b495)[_0x233cfc(0x196)](_0x4d1abd);}export function colorizeJSONCompact(_0x4de247,_0x7cf78e={}){const _0x1fcd74=a210_0x2611;if(!shouldUseColor(_0x7cf78e))return JSON[_0x1fcd74(0x18b)](_0x4de247);if(_0x4de247===null)return colorJSONNull(_0x1fcd74(0x18e),_0x7cf78e);if(typeof _0x4de247==='boolean')return colorJSONBoolean(String(_0x4de247),_0x7cf78e);if(typeof _0x4de247==='number')return colorJSONNumber(String(_0x4de247),_0x7cf78e);if(typeof _0x4de247===_0x1fcd74(0x181))return colorJSONString(JSON[_0x1fcd74(0x18b)](_0x4de247),_0x7cf78e);if(Array[_0x1fcd74(0x17f)](_0x4de247)){if(_0x4de247[_0x1fcd74(0x191)]===0x0)return'[]';const _0x3fc007=_0x4de247[_0x1fcd74(0x17e)](_0x385d5d=>colorizeJSONCompact(_0x385d5d,_0x7cf78e));return'['+_0x3fc007[_0x1fcd74(0x189)](',')+']';}if(typeof _0x4de247===_0x1fcd74(0x17c)){const _0x22297b=Object[_0x1fcd74(0x183)](_0x4de247);if(_0x22297b['length']===0x0)return'{}';const _0x474a87=_0x22297b[_0x1fcd74(0x17e)](([_0xb6f112,_0x418ea0])=>{const _0x50a777=_0x1fcd74,_0x2f898a=colorJSONKey(JSON[_0x50a777(0x18b)](_0xb6f112),_0x7cf78e),_0x3141b5=colorizeJSONCompact(_0x418ea0,_0x7cf78e);return _0x2f898a+':'+_0x3141b5;});return'{'+_0x474a87[_0x1fcd74(0x189)](',')+'}';}return String(_0x4de247);}export function colorizeJSON(_0x1c84c0,_0x204a73={},_0x40f511=0x0){const _0x16aa98=a210_0x2611;if(!shouldUseColor(_0x204a73))return JSON[_0x16aa98(0x18b)](_0x1c84c0,null,0x2);const _0x3a4aca='\x20'[_0x16aa98(0x185)](_0x40f511),_0x5d388f=_0x40f511+0x2;if(_0x1c84c0===null)return colorJSONNull(_0x16aa98(0x18e),_0x204a73);if(typeof _0x1c84c0==='boolean')return colorJSONBoolean(String(_0x1c84c0),_0x204a73);if(typeof _0x1c84c0===_0x16aa98(0x18c))return colorJSONNumber(String(_0x1c84c0),_0x204a73);if(typeof _0x1c84c0===_0x16aa98(0x181))return colorJSONString(JSON[_0x16aa98(0x18b)](_0x1c84c0),_0x204a73);if(Array[_0x16aa98(0x17f)](_0x1c84c0)){if(_0x1c84c0[_0x16aa98(0x191)]===0x0)return'[]';const _0x4d2130=_0x1c84c0[_0x16aa98(0x17e)](_0x148592=>{const _0x465e20=colorizeJSON(_0x148592,_0x204a73,_0x5d388f);return''+'\x20'['repeat'](_0x5d388f)+_0x465e20;});return'[\x0a'+_0x4d2130[_0x16aa98(0x189)](',\x0a')+('\x0a'+_0x3a4aca+']');}if(typeof _0x1c84c0===_0x16aa98(0x17c)){const _0x44177c=Object[_0x16aa98(0x183)](_0x1c84c0);if(_0x44177c[_0x16aa98(0x191)]===0x0)return'{}';const _0x14b144=_0x44177c[_0x16aa98(0x17e)](([_0x55160d,_0x188e0d])=>{const _0x4b0e5e=_0x16aa98,_0x399d8e=colorJSONKey(JSON[_0x4b0e5e(0x18b)](_0x55160d),_0x204a73),_0x10ce8c=colorizeJSON(_0x188e0d,_0x204a73,_0x5d388f);return''+'\x20'['repeat'](_0x5d388f)+_0x399d8e+':\x20'+_0x10ce8c;});return'{\x0a'+_0x14b144[_0x16aa98(0x189)](',\x0a')+('\x0a'+_0x3a4aca+'}');}return String(_0x1c84c0);}
1
+ const a210_0x5e3692=a210_0x3140;function a210_0x76fc(){const _0x2d49fa=['number','101555kemaev','stringify','isTTY','object','88uwtpDk','406XdWrMJ','101656eVzfre','1749222KbRPDF','Chalk','2075116XCPQjK','join','null','length','4598790UiLySn','entries','dim','yellow','string','cyan','blue','map','stdout','3322194SlxLrt','isArray','20OSgMsd','repeat','1565649LFPXoJ','boolean'];a210_0x76fc=function(){return _0x2d49fa;};return a210_0x76fc();}(function(_0x4a9762,_0x30c070){const _0x5ea3ff=a210_0x3140,_0x4d641c=_0x4a9762();while(!![]){try{const _0x1fe774=parseInt(_0x5ea3ff(0x1ad))/0x1+parseInt(_0x5ea3ff(0x19c))/0x2+-parseInt(_0x5ea3ff(0x1a9))/0x3+-parseInt(_0x5ea3ff(0x197))/0x4*(-parseInt(_0x5ea3ff(0x193))/0x5)+-parseInt(_0x5ea3ff(0x1a0))/0x6+parseInt(_0x5ea3ff(0x198))/0x7*(-parseInt(_0x5ea3ff(0x199))/0x8)+parseInt(_0x5ea3ff(0x19a))/0x9*(parseInt(_0x5ea3ff(0x1ab))/0xa);if(_0x1fe774===_0x30c070)break;else _0x4d641c['push'](_0x4d641c['shift']());}catch(_0x7fdc29){_0x4d641c['push'](_0x4d641c['shift']());}}}(a210_0x76fc,0xca1f8));import*as a210_0x4f80ee from'chalk';const Chalk=a210_0x4f80ee[a210_0x5e3692(0x19b)];export function shouldUseColor(_0x24c995={}){const _0x3b86c3=a210_0x5e3692;if(_0x24c995['noColor']===!![])return![];if(_0x24c995['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3b86c3(0x1a8)][_0x3b86c3(0x195)]??![];}export function getChalk(_0x5afe05={}){if(shouldUseColor(_0x5afe05))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x36b976,_0x567813={}){const _0x28d05a=a210_0x5e3692;return getChalk(_0x567813)[_0x28d05a(0x1a2)](_0x36b976);}export function colorHeader(_0x309159,_0x578023={}){const _0x51c342=a210_0x5e3692;return getChalk(_0x578023)[_0x51c342(0x1a5)](_0x309159);}export function colorType(_0x32568d,_0x2e1dd3={}){return getChalk(_0x2e1dd3)['dim'](_0x32568d);}export function colorJSONKey(_0x1d3145,_0x501a4c={}){const _0x332d3e=a210_0x5e3692;return getChalk(_0x501a4c)[_0x332d3e(0x1a6)](_0x1d3145);}export function colorJSONString(_0x1b5659,_0x45a87b={}){return getChalk(_0x45a87b)['green'](_0x1b5659);}export function colorJSONNumber(_0xf2efff,_0x5caab4={}){const _0x306fdb=a210_0x5e3692;return getChalk(_0x5caab4)[_0x306fdb(0x1a5)](_0xf2efff);}export function colorJSONBoolean(_0x2fcd80,_0x53282e={}){const _0x57a60b=a210_0x5e3692;return getChalk(_0x53282e)[_0x57a60b(0x1a3)](_0x2fcd80);}export function colorJSONNull(_0x2fb8ea,_0x143ebb={}){const _0x30eab8=a210_0x5e3692;return getChalk(_0x143ebb)[_0x30eab8(0x1a2)](_0x2fb8ea);}function a210_0x3140(_0x51d0e2,_0x2ce981){_0x51d0e2=_0x51d0e2-0x192;const _0x76fc97=a210_0x76fc();let _0x3140fe=_0x76fc97[_0x51d0e2];return _0x3140fe;}export function colorizeJSONCompact(_0x145674,_0xed479d={}){const _0x1beaf4=a210_0x5e3692;if(!shouldUseColor(_0xed479d))return JSON[_0x1beaf4(0x194)](_0x145674);if(_0x145674===null)return colorJSONNull(_0x1beaf4(0x19e),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x1ae))return colorJSONBoolean(String(_0x145674),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x192))return colorJSONNumber(String(_0x145674),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x1a4))return colorJSONString(JSON['stringify'](_0x145674),_0xed479d);if(Array[_0x1beaf4(0x1aa)](_0x145674)){if(_0x145674[_0x1beaf4(0x19f)]===0x0)return'[]';const _0x437511=_0x145674[_0x1beaf4(0x1a7)](_0x3517f4=>colorizeJSONCompact(_0x3517f4,_0xed479d));return'['+_0x437511['join'](',')+']';}if(typeof _0x145674===_0x1beaf4(0x196)){const _0x4dc80d=Object['entries'](_0x145674);if(_0x4dc80d['length']===0x0)return'{}';const _0x17436f=_0x4dc80d[_0x1beaf4(0x1a7)](([_0x593193,_0x5f1c69])=>{const _0x458693=_0x1beaf4,_0x2e3fd2=colorJSONKey(JSON[_0x458693(0x194)](_0x593193),_0xed479d),_0x21bdf3=colorizeJSONCompact(_0x5f1c69,_0xed479d);return _0x2e3fd2+':'+_0x21bdf3;});return'{'+_0x17436f[_0x1beaf4(0x19d)](',')+'}';}return String(_0x145674);}export function colorizeJSON(_0x589468,_0xb4f296={},_0x563dc5=0x0){const _0x35f332=a210_0x5e3692;if(!shouldUseColor(_0xb4f296))return JSON[_0x35f332(0x194)](_0x589468,null,0x2);const _0x4f2328='\x20'[_0x35f332(0x1ac)](_0x563dc5),_0x4004b3=_0x563dc5+0x2;if(_0x589468===null)return colorJSONNull(_0x35f332(0x19e),_0xb4f296);if(typeof _0x589468===_0x35f332(0x1ae))return colorJSONBoolean(String(_0x589468),_0xb4f296);if(typeof _0x589468===_0x35f332(0x192))return colorJSONNumber(String(_0x589468),_0xb4f296);if(typeof _0x589468===_0x35f332(0x1a4))return colorJSONString(JSON[_0x35f332(0x194)](_0x589468),_0xb4f296);if(Array['isArray'](_0x589468)){if(_0x589468['length']===0x0)return'[]';const _0x6e6627=_0x589468[_0x35f332(0x1a7)](_0x523bf6=>{const _0x47b0e7=_0x35f332,_0x36f463=colorizeJSON(_0x523bf6,_0xb4f296,_0x4004b3);return''+'\x20'[_0x47b0e7(0x1ac)](_0x4004b3)+_0x36f463;});return'[\x0a'+_0x6e6627[_0x35f332(0x19d)](',\x0a')+('\x0a'+_0x4f2328+']');}if(typeof _0x589468===_0x35f332(0x196)){const _0x2c50d2=Object[_0x35f332(0x1a1)](_0x589468);if(_0x2c50d2[_0x35f332(0x19f)]===0x0)return'{}';const _0x3a66dc=_0x2c50d2['map'](([_0x329ae0,_0x4b7d53])=>{const _0x570ffc=_0x35f332,_0x1b41fb=colorJSONKey(JSON['stringify'](_0x329ae0),_0xb4f296),_0x3d8244=colorizeJSON(_0x4b7d53,_0xb4f296,_0x4004b3);return''+'\x20'[_0x570ffc(0x1ac)](_0x4004b3)+_0x1b41fb+':\x20'+_0x3d8244;});return'{\x0a'+_0x3a66dc[_0x35f332(0x19d)](',\x0a')+('\x0a'+_0x4f2328+'}');}return String(_0x589468);}
@@ -1 +1 @@
1
- (function(_0x5eef37,_0x160f4d){const _0x184618=a211_0x43bb,_0x36459e=_0x5eef37();while(!![]){try{const _0x37871d=-parseInt(_0x184618(0x8f))/0x1*(-parseInt(_0x184618(0x87))/0x2)+parseInt(_0x184618(0x85))/0x3*(-parseInt(_0x184618(0x94))/0x4)+-parseInt(_0x184618(0x8c))/0x5*(parseInt(_0x184618(0x95))/0x6)+parseInt(_0x184618(0x99))/0x7*(parseInt(_0x184618(0x8a))/0x8)+-parseInt(_0x184618(0x97))/0x9+parseInt(_0x184618(0x79))/0xa+-parseInt(_0x184618(0x88))/0xb;if(_0x37871d===_0x160f4d)break;else _0x36459e['push'](_0x36459e['shift']());}catch(_0x149f8c){_0x36459e['push'](_0x36459e['shift']());}}}(a211_0x3bae,0x26125));function a211_0x3bae(){const _0x251c9c=['type','cyan','old','map','\x20+\x20','fill','new','some','45sKhIEE','removed','96LEcQyB','263010QiETal','green','296RPolzZ','added','616915lDuPdn','forEach','unchanged','5002BNXawv','length','repeat','red','\x20\x20...','10248iYjYzA','6otNTTi','add','1735614fDEpxW','unshift','52115oegIuI','min','content','padStart','max','\x20\x20\x20','189490XcdNVa','push','split','join'];a211_0x3bae=function(){return _0x251c9c;};return a211_0x3bae();}function a211_0x43bb(_0x4ab55d,_0x343a63){_0x4ab55d=_0x4ab55d-0x79;const _0x3bae7b=a211_0x3bae();let _0x43bb00=_0x3bae7b[_0x4ab55d];return _0x43bb00;}import a211_0x235a94 from'chalk';export function generateDiff(_0x5a37ca,_0x58ee2e){const _0x23123b=a211_0x43bb,_0x32dbb2=_0x5a37ca[_0x23123b(0x7b)]('\x0a'),_0x2d0a15=_0x58ee2e['split']('\x0a'),_0x264269=[],_0x320d3e=computeLCS(_0x32dbb2,_0x2d0a15);let _0x3add20=0x0,_0x4f770e=0x0,_0x534e7b=0x0;while(_0x3add20<_0x32dbb2[_0x23123b(0x90)]||_0x4f770e<_0x2d0a15[_0x23123b(0x90)]){if(_0x534e7b<_0x320d3e[_0x23123b(0x90)]&&_0x3add20<_0x32dbb2[_0x23123b(0x90)]&&_0x32dbb2[_0x3add20]===_0x320d3e[_0x534e7b])_0x4f770e<_0x2d0a15[_0x23123b(0x90)]&&_0x2d0a15[_0x4f770e]===_0x320d3e[_0x534e7b]?(_0x264269['push']({'type':'unchanged','content':_0x32dbb2[_0x3add20]}),_0x3add20++,_0x4f770e++,_0x534e7b++):(_0x264269['push']({'type':_0x23123b(0x8b),'content':_0x2d0a15[_0x4f770e]}),_0x4f770e++);else{if(_0x534e7b<_0x320d3e[_0x23123b(0x90)]&&_0x4f770e<_0x2d0a15[_0x23123b(0x90)]&&_0x2d0a15[_0x4f770e]===_0x320d3e[_0x534e7b])_0x264269['push']({'type':_0x23123b(0x86),'content':_0x32dbb2[_0x3add20]}),_0x3add20++;else{if(_0x3add20<_0x32dbb2[_0x23123b(0x90)]&&(_0x534e7b>=_0x320d3e[_0x23123b(0x90)]||_0x32dbb2[_0x3add20]!==_0x320d3e[_0x534e7b]))_0x264269[_0x23123b(0x7a)]({'type':_0x23123b(0x86),'content':_0x32dbb2[_0x3add20]}),_0x3add20++;else _0x4f770e<_0x2d0a15[_0x23123b(0x90)]&&(_0x264269[_0x23123b(0x7a)]({'type':_0x23123b(0x8b),'content':_0x2d0a15[_0x4f770e]}),_0x4f770e++);}}}return _0x264269;}function computeLCS(_0x692d13,_0x267c01){const _0x49fa82=a211_0x43bb,_0x9449e7=_0x692d13['length'],_0x5665af=_0x267c01[_0x49fa82(0x90)],_0x5d8015=Array(_0x9449e7+0x1)['fill'](null)[_0x49fa82(0x80)](()=>Array(_0x5665af+0x1)[_0x49fa82(0x82)](0x0));for(let _0x4058e3=0x1;_0x4058e3<=_0x9449e7;_0x4058e3++){for(let _0x33aee5=0x1;_0x33aee5<=_0x5665af;_0x33aee5++){_0x692d13[_0x4058e3-0x1]===_0x267c01[_0x33aee5-0x1]?_0x5d8015[_0x4058e3][_0x33aee5]=_0x5d8015[_0x4058e3-0x1][_0x33aee5-0x1]+0x1:_0x5d8015[_0x4058e3][_0x33aee5]=Math[_0x49fa82(0x9d)](_0x5d8015[_0x4058e3-0x1][_0x33aee5],_0x5d8015[_0x4058e3][_0x33aee5-0x1]);}}const _0x27c61c=[];let _0x56c759=_0x9449e7,_0x40b540=_0x5665af;while(_0x56c759>0x0&&_0x40b540>0x0){if(_0x692d13[_0x56c759-0x1]===_0x267c01[_0x40b540-0x1])_0x27c61c[_0x49fa82(0x98)](_0x692d13[_0x56c759-0x1]),_0x56c759--,_0x40b540--;else _0x5d8015[_0x56c759-0x1][_0x40b540]>_0x5d8015[_0x56c759][_0x40b540-0x1]?_0x56c759--:_0x40b540--;}return _0x27c61c;}export function formatDiffWithColors(_0x562323,_0x91bc0b=0x3){const _0x1f246a=a211_0x43bb,_0x4bac2a=new Set();_0x562323[_0x1f246a(0x8d)]((_0xb6eeec,_0x4d0750)=>{const _0x3830a7=_0x1f246a;_0xb6eeec[_0x3830a7(0x7d)]!=='unchanged'&&_0x4bac2a[_0x3830a7(0x96)](_0x4d0750);});if(_0x4bac2a['size']===0x0)return'';const _0x336911=new Set();for(const _0x5395a6 of _0x4bac2a){for(let _0x21d54e=Math[_0x1f246a(0x9d)](0x0,_0x5395a6-_0x91bc0b);_0x21d54e<=Math[_0x1f246a(0x9a)](_0x562323['length']-0x1,_0x5395a6+_0x91bc0b);_0x21d54e++){_0x336911[_0x1f246a(0x96)](_0x21d54e);}}const _0x43b28e=[];let _0xc341f=-0x1;const _0x40980b=_0x562323[_0x1f246a(0x90)],_0x495d1c=Math['max'](0x3,String(_0x40980b)['length']),_0x5882ad=[];let _0x1dfdef=0x0,_0x31fd06=0x0;for(const _0x41c205 of _0x562323){if(_0x41c205['type']===_0x1f246a(0x86))_0x1dfdef++,_0x5882ad[_0x1f246a(0x7a)]({'old':_0x1dfdef,'new':0x0});else _0x41c205[_0x1f246a(0x7d)]===_0x1f246a(0x8b)?(_0x31fd06++,_0x5882ad[_0x1f246a(0x7a)]({'old':0x0,'new':_0x31fd06})):(_0x1dfdef++,_0x31fd06++,_0x5882ad[_0x1f246a(0x7a)]({'old':_0x1dfdef,'new':_0x31fd06}));}for(let _0x1efe3e=0x0;_0x1efe3e<_0x562323[_0x1f246a(0x90)];_0x1efe3e++){if(!_0x336911['has'](_0x1efe3e))continue;_0xc341f!==-0x1&&_0x1efe3e>_0xc341f+0x1&&_0x43b28e[_0x1f246a(0x7a)](a211_0x235a94[_0x1f246a(0x7e)](_0x1f246a(0x93)));_0xc341f=_0x1efe3e;const _0x276ad1=_0x562323[_0x1efe3e],_0x1025af=_0x5882ad[_0x1efe3e],_0x26b350=_0x1025af[_0x1f246a(0x7f)]>0x0?String(_0x1025af[_0x1f246a(0x7f)])[_0x1f246a(0x9c)](_0x495d1c):'\x20'[_0x1f246a(0x91)](_0x495d1c),_0xe43235=_0x1025af[_0x1f246a(0x83)]>0x0?String(_0x1025af['new'])[_0x1f246a(0x9c)](_0x495d1c):'\x20'[_0x1f246a(0x91)](_0x495d1c);switch(_0x276ad1[_0x1f246a(0x7d)]){case _0x1f246a(0x86):_0x43b28e[_0x1f246a(0x7a)](a211_0x235a94[_0x1f246a(0x92)](_0x26b350+'\x20'+_0xe43235+'\x20-\x20'+_0x276ad1[_0x1f246a(0x9b)]));break;case'added':_0x43b28e['push'](a211_0x235a94[_0x1f246a(0x89)](_0x26b350+'\x20'+_0xe43235+_0x1f246a(0x81)+_0x276ad1[_0x1f246a(0x9b)]));break;default:_0x43b28e[_0x1f246a(0x7a)](a211_0x235a94['dim'](_0x26b350+'\x20'+_0xe43235+_0x1f246a(0x9e)+_0x276ad1[_0x1f246a(0x9b)]));break;}}return _0x43b28e[_0x1f246a(0x7c)]('\x0a');}export function hasChanges(_0x248aa8){const _0x3f0b61=a211_0x43bb;return _0x248aa8[_0x3f0b61(0x84)](_0x17f5d5=>_0x17f5d5['type']!==_0x3f0b61(0x8e));}
1
+ (function(_0x46276d,_0x949595){const _0xacfd46=a211_0x2136,_0x3cc6d1=_0x46276d();while(!![]){try{const _0x3247e3=parseInt(_0xacfd46(0x1a0))/0x1*(parseInt(_0xacfd46(0x1a1))/0x2)+parseInt(_0xacfd46(0x1b7))/0x3*(parseInt(_0xacfd46(0x1ab))/0x4)+parseInt(_0xacfd46(0x195))/0x5+parseInt(_0xacfd46(0x1a7))/0x6+parseInt(_0xacfd46(0x1b0))/0x7*(-parseInt(_0xacfd46(0x1b8))/0x8)+parseInt(_0xacfd46(0x1a3))/0x9+-parseInt(_0xacfd46(0x1ba))/0xa*(parseInt(_0xacfd46(0x19f))/0xb);if(_0x3247e3===_0x949595)break;else _0x3cc6d1['push'](_0x3cc6d1['shift']());}catch(_0x5e923f){_0x3cc6d1['push'](_0x3cc6d1['shift']());}}}(a211_0x17c9,0xa5508));import a211_0x43b408 from'chalk';export function generateDiff(_0x172833,_0x275b7b){const _0x46985a=a211_0x2136,_0x1cea66=_0x172833[_0x46985a(0x1aa)]('\x0a'),_0x4509b3=_0x275b7b[_0x46985a(0x1aa)]('\x0a'),_0x1896b6=[],_0x5f23ec=computeLCS(_0x1cea66,_0x4509b3);let _0xb7f515=0x0,_0xa86983=0x0,_0x394456=0x0;while(_0xb7f515<_0x1cea66[_0x46985a(0x19d)]||_0xa86983<_0x4509b3[_0x46985a(0x19d)]){if(_0x394456<_0x5f23ec['length']&&_0xb7f515<_0x1cea66[_0x46985a(0x19d)]&&_0x1cea66[_0xb7f515]===_0x5f23ec[_0x394456])_0xa86983<_0x4509b3[_0x46985a(0x19d)]&&_0x4509b3[_0xa86983]===_0x5f23ec[_0x394456]?(_0x1896b6[_0x46985a(0x1b2)]({'type':'unchanged','content':_0x1cea66[_0xb7f515]}),_0xb7f515++,_0xa86983++,_0x394456++):(_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x1b5),'content':_0x4509b3[_0xa86983]}),_0xa86983++);else{if(_0x394456<_0x5f23ec[_0x46985a(0x19d)]&&_0xa86983<_0x4509b3[_0x46985a(0x19d)]&&_0x4509b3[_0xa86983]===_0x5f23ec[_0x394456])_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x19a),'content':_0x1cea66[_0xb7f515]}),_0xb7f515++;else{if(_0xb7f515<_0x1cea66[_0x46985a(0x19d)]&&(_0x394456>=_0x5f23ec[_0x46985a(0x19d)]||_0x1cea66[_0xb7f515]!==_0x5f23ec[_0x394456]))_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x19a),'content':_0x1cea66[_0xb7f515]}),_0xb7f515++;else _0xa86983<_0x4509b3[_0x46985a(0x19d)]&&(_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x1b5),'content':_0x4509b3[_0xa86983]}),_0xa86983++);}}}return _0x1896b6;}function computeLCS(_0x265851,_0x17f9f1){const _0x1fd089=a211_0x2136,_0xa1b89c=_0x265851[_0x1fd089(0x19d)],_0x2c08f5=_0x17f9f1[_0x1fd089(0x19d)],_0x4c8c9c=Array(_0xa1b89c+0x1)['fill'](null)[_0x1fd089(0x198)](()=>Array(_0x2c08f5+0x1)['fill'](0x0));for(let _0x553e42=0x1;_0x553e42<=_0xa1b89c;_0x553e42++){for(let _0xd749e3=0x1;_0xd749e3<=_0x2c08f5;_0xd749e3++){_0x265851[_0x553e42-0x1]===_0x17f9f1[_0xd749e3-0x1]?_0x4c8c9c[_0x553e42][_0xd749e3]=_0x4c8c9c[_0x553e42-0x1][_0xd749e3-0x1]+0x1:_0x4c8c9c[_0x553e42][_0xd749e3]=Math[_0x1fd089(0x1b3)](_0x4c8c9c[_0x553e42-0x1][_0xd749e3],_0x4c8c9c[_0x553e42][_0xd749e3-0x1]);}}const _0x3fb695=[];let _0x28652a=_0xa1b89c,_0x1f7476=_0x2c08f5;while(_0x28652a>0x0&&_0x1f7476>0x0){if(_0x265851[_0x28652a-0x1]===_0x17f9f1[_0x1f7476-0x1])_0x3fb695[_0x1fd089(0x199)](_0x265851[_0x28652a-0x1]),_0x28652a--,_0x1f7476--;else _0x4c8c9c[_0x28652a-0x1][_0x1f7476]>_0x4c8c9c[_0x28652a][_0x1f7476-0x1]?_0x28652a--:_0x1f7476--;}return _0x3fb695;}export function formatDiffWithColors(_0x4a7368,_0x710d7c=0x3){const _0x1bf418=a211_0x2136,_0x3bc17e=new Set();_0x4a7368[_0x1bf418(0x1ac)]((_0x203405,_0xdc90a4)=>{const _0x189ed1=_0x1bf418;_0x203405[_0x189ed1(0x1b1)]!==_0x189ed1(0x1a2)&&_0x3bc17e[_0x189ed1(0x1b4)](_0xdc90a4);});if(_0x3bc17e[_0x1bf418(0x1bb)]===0x0)return'';const _0x349e72=new Set();for(const _0x4c51d5 of _0x3bc17e){for(let _0x3a580e=Math['max'](0x0,_0x4c51d5-_0x710d7c);_0x3a580e<=Math[_0x1bf418(0x1b6)](_0x4a7368['length']-0x1,_0x4c51d5+_0x710d7c);_0x3a580e++){_0x349e72[_0x1bf418(0x1b4)](_0x3a580e);}}const _0x21bef5=[];let _0x236c1b=-0x1;const _0x2e6776=_0x4a7368[_0x1bf418(0x19d)],_0x6ee767=Math['max'](0x3,String(_0x2e6776)[_0x1bf418(0x19d)]),_0x2aa6a7=[];let _0x59dff0=0x0,_0x56cf4b=0x0;for(const _0x7f7cb of _0x4a7368){if(_0x7f7cb['type']==='removed')_0x59dff0++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':_0x59dff0,'new':0x0});else _0x7f7cb['type']==='added'?(_0x56cf4b++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':0x0,'new':_0x56cf4b})):(_0x59dff0++,_0x56cf4b++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':_0x59dff0,'new':_0x56cf4b}));}for(let _0x5cafea=0x0;_0x5cafea<_0x4a7368[_0x1bf418(0x19d)];_0x5cafea++){if(!_0x349e72[_0x1bf418(0x1a6)](_0x5cafea))continue;_0x236c1b!==-0x1&&_0x5cafea>_0x236c1b+0x1&&_0x21bef5[_0x1bf418(0x1b2)](a211_0x43b408[_0x1bf418(0x1a9)](_0x1bf418(0x1a5)));_0x236c1b=_0x5cafea;const _0x59850a=_0x4a7368[_0x5cafea],_0x30efc5=_0x2aa6a7[_0x5cafea],_0x5e2c4b=_0x30efc5['old']>0x0?String(_0x30efc5[_0x1bf418(0x197)])['padStart'](_0x6ee767):'\x20'[_0x1bf418(0x1ad)](_0x6ee767),_0x358d65=_0x30efc5[_0x1bf418(0x19b)]>0x0?String(_0x30efc5[_0x1bf418(0x19b)])[_0x1bf418(0x1b9)](_0x6ee767):'\x20'[_0x1bf418(0x1ad)](_0x6ee767);switch(_0x59850a[_0x1bf418(0x1b1)]){case _0x1bf418(0x19a):_0x21bef5['push'](a211_0x43b408[_0x1bf418(0x1a4)](_0x5e2c4b+'\x20'+_0x358d65+_0x1bf418(0x19e)+_0x59850a[_0x1bf418(0x1a8)]));break;case _0x1bf418(0x1b5):_0x21bef5[_0x1bf418(0x1b2)](a211_0x43b408['green'](_0x5e2c4b+'\x20'+_0x358d65+_0x1bf418(0x19c)+_0x59850a[_0x1bf418(0x1a8)]));break;default:_0x21bef5['push'](a211_0x43b408[_0x1bf418(0x1af)](_0x5e2c4b+'\x20'+_0x358d65+'\x20\x20\x20'+_0x59850a[_0x1bf418(0x1a8)]));break;}}return _0x21bef5[_0x1bf418(0x196)]('\x0a');}function a211_0x2136(_0x1d396d,_0x148847){_0x1d396d=_0x1d396d-0x195;const _0x17c9e5=a211_0x17c9();let _0x21367b=_0x17c9e5[_0x1d396d];return _0x21367b;}function a211_0x17c9(){const _0x3ddc0c=['push','max','add','added','min','11967QtfdsV','4808CsqYUW','padStart','8739950EKnpCA','size','6032855eoRxkJ','join','old','map','unshift','removed','new','\x20+\x20','length','\x20-\x20','33BXXxmQ','7jLtXee','276812QlOEMb','unchanged','4704741IcpqaI','red','\x20\x20...','has','3118350fYqSMy','content','cyan','split','1068FZNvXB','forEach','repeat','some','dim','11459ysMmMf','type'];a211_0x17c9=function(){return _0x3ddc0c;};return a211_0x17c9();}export function hasChanges(_0x4f042d){const _0xeebbd9=a211_0x2136;return _0x4f042d[_0xeebbd9(0x1ae)](_0x587522=>_0x587522[_0xeebbd9(0x1b1)]!==_0xeebbd9(0x1a2));}
@@ -1 +1 @@
1
- (function(_0xbb13b5,_0x3434c8){const _0x18377a=a212_0x11be,_0x43d00b=_0xbb13b5();while(!![]){try{const _0x3b0f6a=-parseInt(_0x18377a(0x9d))/0x1*(-parseInt(_0x18377a(0xa1))/0x2)+parseInt(_0x18377a(0x99))/0x3*(-parseInt(_0x18377a(0xa6))/0x4)+-parseInt(_0x18377a(0xa3))/0x5+parseInt(_0x18377a(0xa7))/0x6*(parseInt(_0x18377a(0x95))/0x7)+parseInt(_0x18377a(0x98))/0x8+-parseInt(_0x18377a(0xa5))/0x9*(parseInt(_0x18377a(0xa2))/0xa)+parseInt(_0x18377a(0xaa))/0xb*(parseInt(_0x18377a(0x9f))/0xc);if(_0x3b0f6a===_0x3434c8)break;else _0x43d00b['push'](_0x43d00b['shift']());}catch(_0x5ecb16){_0x43d00b['push'](_0x43d00b['shift']());}}}(a212_0x4bbe,0x54ebe));import*as a212_0x435cf1 from'node:fs';import*as a212_0x471f3c from'node:path';export function setSecureFilePermissions(_0x5c88d3){const _0x709da5=a212_0x11be;try{a212_0x435cf1[_0x709da5(0x9b)](_0x5c88d3,0x180);}catch{console['warn'](_0x709da5(0x97)+_0x5c88d3);}}function a212_0x4bbe(){const _0x5073ff=['142QBYjxB','16010UmKZvN','1631340Abjqpn','\x20has\x20insecure\x20permissions\x20(','2061ckOXES','332HsjKNv','1070052KttHyJ','writeFileSync','mode','7111940gSuVkH','7PpAOOb','existsSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','1616168WwgYDL','11523Wvloei','toString','chmodSync','mkdirSync','4685FYHFeg','statSync','12NjkGNJ','warn'];a212_0x4bbe=function(){return _0x5073ff;};return a212_0x4bbe();}export function setSecureDirectoryPermissions(_0x50fb5d){const _0x2f0aa1=a212_0x11be;try{a212_0x435cf1[_0x2f0aa1(0x9b)](_0x50fb5d,0x1c0);}catch{console[_0x2f0aa1(0xa0)](_0x2f0aa1(0x97)+_0x50fb5d);}}function a212_0x11be(_0x3ba026,_0x2710bd){_0x3ba026=_0x3ba026-0x95;const _0x4bbeb2=a212_0x4bbe();let _0x11be6c=_0x4bbeb2[_0x3ba026];return _0x11be6c;}export function createSecureDirectory(_0x819f45){const _0x541267=a212_0x11be;!a212_0x435cf1[_0x541267(0x96)](_0x819f45)&&(a212_0x435cf1[_0x541267(0x9c)](_0x819f45,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x819f45));}export function validateSecureFilePermissions(_0x12d2e9){const _0x5a4736=a212_0x11be;try{const _0xc32913=a212_0x435cf1[_0x5a4736(0x9e)](_0x12d2e9),_0x54d458=_0xc32913[_0x5a4736(0xa9)]&0x1ff,_0x21b329=(_0x54d458&0x3f)!==0x0;if(_0x21b329)return console[_0x5a4736(0xa0)]('Warning:\x20'+_0x12d2e9+_0x5a4736(0xa4)+_0x54d458[_0x5a4736(0x9a)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x30148c,_0x7882ff){const _0x438c52=a212_0x11be,_0x472b73=a212_0x471f3c['dirname'](_0x30148c);createSecureDirectory(_0x472b73),a212_0x435cf1[_0x438c52(0xa8)](_0x30148c,_0x7882ff,{'mode':0x180}),setSecureFilePermissions(_0x30148c);}
1
+ (function(_0x35e3b9,_0x5edbf2){const _0x48991a=a212_0x5b3d,_0x407834=_0x35e3b9();while(!![]){try{const _0x152b31=parseInt(_0x48991a(0xad))/0x1*(-parseInt(_0x48991a(0xb6))/0x2)+-parseInt(_0x48991a(0xbd))/0x3+parseInt(_0x48991a(0xb9))/0x4+parseInt(_0x48991a(0xb4))/0x5*(parseInt(_0x48991a(0xb1))/0x6)+parseInt(_0x48991a(0xb2))/0x7*(-parseInt(_0x48991a(0xaa))/0x8)+parseInt(_0x48991a(0xb5))/0x9+parseInt(_0x48991a(0xbc))/0xa*(parseInt(_0x48991a(0xbb))/0xb);if(_0x152b31===_0x5edbf2)break;else _0x407834['push'](_0x407834['shift']());}catch(_0x169169){_0x407834['push'](_0x407834['shift']());}}}(a212_0x1d16,0x90008));function a212_0x5b3d(_0x152c9c,_0x1cf231){_0x152c9c=_0x152c9c-0xaa;const _0x1d168b=a212_0x1d16();let _0x5b3d90=_0x1d168b[_0x152c9c];return _0x5b3d90;}function a212_0x1d16(){const _0x320c16=['mkdirSync','toString','1553106oAOdzQ','3696763dYeUGn','mode','5zYxRiZ','4528359lhCduN','362kZqDlJ','warn','Should\x20be\x200600\x20or\x20more\x20restrictive.','2042388MjYDMe',').\x20','16496689KVJcMM','10OjVhGr','2695107lOGdrz','Warning:\x20','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','16zPjPTz','writeFileSync','existsSync','1259xUcdIl','dirname'];a212_0x1d16=function(){return _0x320c16;};return a212_0x1d16();}import*as a212_0x4dfc0a from'node:fs';import*as a212_0x4259e1 from'node:path';export function setSecureFilePermissions(_0x1c4ada){const _0x4f0d7d=a212_0x5b3d;try{a212_0x4dfc0a[_0x4f0d7d(0xbf)](_0x1c4ada,0x180);}catch{console[_0x4f0d7d(0xb7)](_0x4f0d7d(0xc0)+_0x1c4ada);}}export function setSecureDirectoryPermissions(_0x197700){const _0x3a95a3=a212_0x5b3d;try{a212_0x4dfc0a['chmodSync'](_0x197700,0x1c0);}catch{console[_0x3a95a3(0xb7)](_0x3a95a3(0xc0)+_0x197700);}}export function createSecureDirectory(_0x26ca35){const _0x56b613=a212_0x5b3d;!a212_0x4dfc0a[_0x56b613(0xac)](_0x26ca35)&&(a212_0x4dfc0a[_0x56b613(0xaf)](_0x26ca35,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x26ca35));}export function validateSecureFilePermissions(_0x5113b4){const _0x3a43ec=a212_0x5b3d;try{const _0x500432=a212_0x4dfc0a['statSync'](_0x5113b4),_0x592dd2=_0x500432[_0x3a43ec(0xb3)]&0x1ff,_0xd886f2=(_0x592dd2&0x3f)!==0x0;if(_0xd886f2)return console[_0x3a43ec(0xb7)](_0x3a43ec(0xbe)+_0x5113b4+'\x20has\x20insecure\x20permissions\x20('+_0x592dd2[_0x3a43ec(0xb0)](0x8)+_0x3a43ec(0xba)+_0x3a43ec(0xb8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x13c547,_0x253157){const _0x2f1217=a212_0x5b3d,_0x25c292=a212_0x4259e1[_0x2f1217(0xae)](_0x13c547);createSecureDirectory(_0x25c292),a212_0x4dfc0a[_0x2f1217(0xab)](_0x13c547,_0x253157,{'mode':0x180}),setSecureFilePermissions(_0x13c547);}
@@ -1 +1 @@
1
- (function(_0xd7cb8f,_0x4f0f3a){const _0x2df420=a213_0x5b42,_0x490493=_0xd7cb8f();while(!![]){try{const _0xfedf76=-parseInt(_0x2df420(0x105))/0x1+-parseInt(_0x2df420(0x104))/0x2+parseInt(_0x2df420(0x10f))/0x3+-parseInt(_0x2df420(0x107))/0x4*(parseInt(_0x2df420(0x10a))/0x5)+parseInt(_0x2df420(0x10c))/0x6+-parseInt(_0x2df420(0x110))/0x7*(parseInt(_0x2df420(0x114))/0x8)+-parseInt(_0x2df420(0x10b))/0x9*(-parseInt(_0x2df420(0x10e))/0xa);if(_0xfedf76===_0x4f0f3a)break;else _0x490493['push'](_0x490493['shift']());}catch(_0x56866a){_0x490493['push'](_0x490493['shift']());}}}(a213_0x5d1f,0x95618));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x3c5385){const _0x2368ab=a213_0x5b42;try{return readFileSync(_0x3c5385,_0x2368ab(0x117));}catch(_0x1da6e2){const _0x309ee5=_0x1da6e2[_0x2368ab(0x10d)];if(_0x309ee5==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x2368ab(0x115)+_0x3c5385+_0x2368ab(0x106),_0x1da6e2);else{if(_0x309ee5===_0x2368ab(0x116))throw new SDKError(ErrorCode[_0x2368ab(0x108)],_0x2368ab(0x113)+_0x3c5385+'\x27',_0x1da6e2);else throw new SDKError(ErrorCode[_0x2368ab(0x112)],_0x2368ab(0x109)+_0x3c5385+_0x2368ab(0x111)+_0x1da6e2[_0x2368ab(0x103)],_0x1da6e2);}}}function a213_0x5b42(_0x5c7628,_0x5cb714){_0x5c7628=_0x5c7628-0x103;const _0x5d1fe5=a213_0x5d1f();let _0x5b42d5=_0x5d1fe5[_0x5c7628];return _0x5b42d5;}function a213_0x5d1f(){const _0x54425a=['2395266vUaurq','270315pzVCJB','\x27\x20not\x20found','12jxabfX','PERMISSION_DENIED','Error\x20reading\x20file\x20\x27','1581035sTCtzY','14067729UHJldC','4991652YTZxDw','code','10UQaVYG','3248892RuRdIF','15974drcCGw','\x27:\x20','INTERNAL','Permission\x20denied\x20reading\x20file\x20\x27','1576NbAvSO','File\x20\x27','EACCES','utf-8','message'];a213_0x5d1f=function(){return _0x54425a;};return a213_0x5d1f();}
1
+ function a213_0x4a59(){const _0x36e2e6=['12NjQnBd','4768621nRWofA','4645936NQgfnG','\x27\x20not\x20found','14631TsCnMd','Error\x20reading\x20file\x20\x27','message','5929xHXrNz','4292289EItPWi','INTERNAL','EACCES','File\x20\x27','ENOENT','2088180WbiMPo','utf-8','NOT_FOUND','712SrWHGl','\x27:\x20','10YovRZE','66TeIjfd','2307536BRaxhD'];a213_0x4a59=function(){return _0x36e2e6;};return a213_0x4a59();}function a213_0x4e96(_0x28fcd0,_0x4dd8df){_0x28fcd0=_0x28fcd0-0x1da;const _0x4a5999=a213_0x4a59();let _0x4e96e4=_0x4a5999[_0x28fcd0];return _0x4e96e4;}(function(_0x2d936d,_0xdfa9db){const _0x1c540b=a213_0x4e96,_0x58ebd2=_0x2d936d();while(!![]){try{const _0xcda9e4=-parseInt(_0x1c540b(0x1e8))/0x1*(-parseInt(_0x1c540b(0x1df))/0x2)+parseInt(_0x1c540b(0x1e5))/0x3*(parseInt(_0x1c540b(0x1dc))/0x4)+parseInt(_0x1c540b(0x1ee))/0x5*(-parseInt(_0x1c540b(0x1e1))/0x6)+-parseInt(_0x1c540b(0x1e0))/0x7+parseInt(_0x1c540b(0x1e3))/0x8+-parseInt(_0x1c540b(0x1e9))/0x9*(-parseInt(_0x1c540b(0x1de))/0xa)+-parseInt(_0x1c540b(0x1e2))/0xb;if(_0xcda9e4===_0xdfa9db)break;else _0x58ebd2['push'](_0x58ebd2['shift']());}catch(_0x375247){_0x58ebd2['push'](_0x58ebd2['shift']());}}}(a213_0x4a59,0x7faf3));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x42f668){const _0x26327d=a213_0x4e96;try{return readFileSync(_0x42f668,_0x26327d(0x1da));}catch(_0x1caa9a){const _0x4dd77a=_0x1caa9a['code'];if(_0x4dd77a===_0x26327d(0x1ed))throw new SDKError(ErrorCode[_0x26327d(0x1db)],_0x26327d(0x1ec)+_0x42f668+_0x26327d(0x1e4),_0x1caa9a);else{if(_0x4dd77a===_0x26327d(0x1eb))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x42f668+'\x27',_0x1caa9a);else throw new SDKError(ErrorCode[_0x26327d(0x1ea)],_0x26327d(0x1e6)+_0x42f668+_0x26327d(0x1dd)+_0x1caa9a[_0x26327d(0x1e7)],_0x1caa9a);}}}
@@ -1 +1 @@
1
- function a214_0x14c6(_0x51c77f,_0x31af34){_0x51c77f=_0x51c77f-0x161;const _0x111a7b=a214_0x111a();let _0x14c6de=_0x111a7b[_0x51c77f];return _0x14c6de;}(function(_0x426b53,_0x11176e){const _0x3aae3b=a214_0x14c6,_0x2b73dc=_0x426b53();while(!![]){try{const _0x3ea97e=-parseInt(_0x3aae3b(0x163))/0x1+parseInt(_0x3aae3b(0x16d))/0x2+parseInt(_0x3aae3b(0x162))/0x3+parseInt(_0x3aae3b(0x161))/0x4*(-parseInt(_0x3aae3b(0x16b))/0x5)+parseInt(_0x3aae3b(0x17d))/0x6*(parseInt(_0x3aae3b(0x17e))/0x7)+parseInt(_0x3aae3b(0x16a))/0x8+parseInt(_0x3aae3b(0x177))/0x9*(-parseInt(_0x3aae3b(0x165))/0xa);if(_0x3ea97e===_0x11176e)break;else _0x2b73dc['push'](_0x2b73dc['shift']());}catch(_0x110a9c){_0x2b73dc['push'](_0x2b73dc['shift']());}}}(a214_0x111a,0xaf9cf));import*as a214_0xdfe10b from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0xad5bd7,_0xfbbcc4,_0x226ad5){const _0x500665=a214_0x14c6,_0x52ca54=_0xad5bd7+'/'+_0xfbbcc4,_0x18f67e=cache[_0x500665(0x166)](_0x52ca54);if(_0x18f67e&&Date[_0x500665(0x17b)]()-_0x18f67e[_0x500665(0x167)]<CACHE_TTL_MS)return Promise[_0x500665(0x169)](_0x18f67e[_0x500665(0x170)]);return new Promise((_0x4ba034,_0x36c19b)=>{const _0x3a5b70=_0x500665,_0x711ed6={'hostname':_0x3a5b70(0x176),'path':_0x3a5b70(0x16e)+_0xad5bd7+'/'+_0xfbbcc4+_0x3a5b70(0x16f),'headers':{'User-Agent':_0x226ad5,'Accept':_0x3a5b70(0x179)},'timeout':REQUEST_TIMEOUT_MS},_0x373430=a214_0xdfe10b[_0x3a5b70(0x166)](_0x711ed6,_0x334b20=>{const _0x5d52c9=_0x3a5b70;let _0x66cc04='';_0x334b20['on'](_0x5d52c9(0x168),_0x497903=>{const _0x2933a6=_0x5d52c9;_0x66cc04+=_0x497903[_0x2933a6(0x175)]();}),_0x334b20['on'](_0x5d52c9(0x171),()=>{const _0x3e618f=_0x5d52c9;if(_0x334b20[_0x3e618f(0x173)]!==0xc8){_0x36c19b(new Error(_0x3e618f(0x17a)+_0x334b20[_0x3e618f(0x173)]+':\x20'+_0x66cc04['slice'](0x0,0xc8)));return;}try{const _0x566675=JSON[_0x3e618f(0x164)](_0x66cc04);cache['set'](_0x52ca54,{'releases':_0x566675,'fetchedAt':Date[_0x3e618f(0x17b)]()}),_0x4ba034(_0x566675);}catch(_0x2623e4){_0x36c19b(_0x2623e4);}});});_0x373430['on'](_0x3a5b70(0x16c),()=>{const _0x1bc47f=_0x3a5b70;_0x373430[_0x1bc47f(0x172)](),_0x36c19b(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x373430['on']('error',_0x36c19b);});}function a214_0x111a(){const _0x43f3d9=['timeout','1902508ILrJZK','/repos/','/releases?per_page=20','releases','end','destroy','statusCode','next','toString','api.github.com','18815292ptwUzo','find','application/vnd.github+json','GitHub\x20API\x20returned\x20','now','tag_name','162pCGznF','216559akhtQz','1450780OkOOiU','2263377pOgFMU','174486gSdDOU','parse','10qmkipG','get','fetchedAt','data','resolve','9350104ZyuErs','10NXEsIF'];a214_0x111a=function(){return _0x43f3d9;};return a214_0x111a();}export async function resolveReleaseTag(_0x2b2133,_0x363112,_0x419ff3,_0x590afe){const _0x215c87=a214_0x14c6;if(_0x2b2133===_0x215c87(0x174))return null;const _0x1a8eb1=await fetchGitHubReleases(_0x363112,_0x419ff3,_0x590afe);if(_0x1a8eb1['length']===0x0)return null;const _0x306b96=_0x1a8eb1[_0x215c87(0x178)](_0x4448be=>!_0x4448be['prerelease']);return _0x306b96?_0x306b96[_0x215c87(0x17c)]:null;}
1
+ function a214_0x57e9(_0x5161ed,_0x200aa0){_0x5161ed=_0x5161ed-0x1e1;const _0x4a46b1=a214_0x4a46();let _0x57e9fa=_0x4a46b1[_0x5161ed];return _0x57e9fa;}(function(_0x27d371,_0x2cb465){const _0xfb7c5f=a214_0x57e9,_0x58e5c1=_0x27d371();while(!![]){try{const _0x562fb9=-parseInt(_0xfb7c5f(0x1f8))/0x1*(parseInt(_0xfb7c5f(0x1e9))/0x2)+parseInt(_0xfb7c5f(0x1e6))/0x3*(parseInt(_0xfb7c5f(0x1f7))/0x4)+parseInt(_0xfb7c5f(0x1ef))/0x5+parseInt(_0xfb7c5f(0x1e3))/0x6+parseInt(_0xfb7c5f(0x1f4))/0x7+-parseInt(_0xfb7c5f(0x1e2))/0x8*(-parseInt(_0xfb7c5f(0x1f9))/0x9)+-parseInt(_0xfb7c5f(0x1e1))/0xa;if(_0x562fb9===_0x2cb465)break;else _0x58e5c1['push'](_0x58e5c1['shift']());}catch(_0x53dc7c){_0x58e5c1['push'](_0x58e5c1['shift']());}}}(a214_0x4a46,0xc7d1c));import*as a214_0x5bf953 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x373d69,_0x2de0c8,_0x380790){const _0xd38af8=a214_0x57e9,_0x13f852=_0x373d69+'/'+_0x2de0c8,_0x199079=cache[_0xd38af8(0x1ea)](_0x13f852);if(_0x199079&&Date['now']()-_0x199079['fetchedAt']<CACHE_TTL_MS)return Promise[_0xd38af8(0x1e7)](_0x199079['releases']);return new Promise((_0x45408e,_0x2aeebb)=>{const _0x203272=_0xd38af8,_0x409383={'hostname':'api.github.com','path':_0x203272(0x1eb)+_0x373d69+'/'+_0x2de0c8+'/releases?per_page=20','headers':{'User-Agent':_0x380790,'Accept':_0x203272(0x1ed)},'timeout':REQUEST_TIMEOUT_MS},_0x2e61fe=a214_0x5bf953[_0x203272(0x1ea)](_0x409383,_0x5c5ce9=>{const _0x494d24=_0x203272;let _0x7b7cbe='';_0x5c5ce9['on'](_0x494d24(0x1f6),_0x12e1ed=>{const _0x2d7e91=_0x494d24;_0x7b7cbe+=_0x12e1ed[_0x2d7e91(0x1f2)]();}),_0x5c5ce9['on']('end',()=>{const _0xcb1d6f=_0x494d24;if(_0x5c5ce9[_0xcb1d6f(0x1f3)]!==0xc8){_0x2aeebb(new Error(_0xcb1d6f(0x1f5)+_0x5c5ce9[_0xcb1d6f(0x1f3)]+':\x20'+_0x7b7cbe[_0xcb1d6f(0x1ee)](0x0,0xc8)));return;}try{const _0x3b8b94=JSON[_0xcb1d6f(0x1ec)](_0x7b7cbe);cache[_0xcb1d6f(0x1e4)](_0x13f852,{'releases':_0x3b8b94,'fetchedAt':Date['now']()}),_0x45408e(_0x3b8b94);}catch(_0x56a509){_0x2aeebb(_0x56a509);}});});_0x2e61fe['on']('timeout',()=>{const _0x4f4351=_0x203272;_0x2e61fe['destroy'](),_0x2aeebb(new Error(_0x4f4351(0x1e8)+REQUEST_TIMEOUT_MS+'ms'));}),_0x2e61fe['on'](_0x203272(0x1f0),_0x2aeebb);});}export async function resolveReleaseTag(_0x1f77f1,_0xe65036,_0x4183ad,_0x16fa66){const _0x2c6360=a214_0x57e9;if(_0x1f77f1===_0x2c6360(0x1f1))return null;const _0x4848b8=await fetchGitHubReleases(_0xe65036,_0x4183ad,_0x16fa66);if(_0x4848b8['length']===0x0)return null;const _0x48a1e5=_0x4848b8[_0x2c6360(0x1e5)](_0xfe6b66=>!_0xfe6b66['prerelease']);return _0x48a1e5?_0x48a1e5['tag_name']:null;}function a214_0x4a46(){const _0x300f43=['error','next','toString','statusCode','10630417lNjbKM','GitHub\x20API\x20returned\x20','data','17444rQPkND','1OtBwYK','429237IlBrSh','21364920lOahkd','152FHheTu','475386gQwWqb','set','find','597smpjCR','resolve','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2127742RbWDVV','get','/repos/','parse','application/vnd.github+json','slice','3234775Pwhiac'];a214_0x4a46=function(){return _0x300f43;};return a214_0x4a46();}
@@ -1 +1 @@
1
- (function(_0xd346b9,_0x56f444){const _0x12123a=a215_0x55b5,_0x3a58b5=_0xd346b9();while(!![]){try{const _0x4b529e=parseInt(_0x12123a(0xe1))/0x1*(-parseInt(_0x12123a(0xd8))/0x2)+-parseInt(_0x12123a(0xd9))/0x3*(parseInt(_0x12123a(0xe4))/0x4)+-parseInt(_0x12123a(0xea))/0x5+parseInt(_0x12123a(0xe8))/0x6+-parseInt(_0x12123a(0xd7))/0x7*(-parseInt(_0x12123a(0xe2))/0x8)+-parseInt(_0x12123a(0xe0))/0x9*(-parseInt(_0x12123a(0xdd))/0xa)+-parseInt(_0x12123a(0xda))/0xb;if(_0x4b529e===_0x56f444)break;else _0x3a58b5['push'](_0x3a58b5['shift']());}catch(_0x3df8ce){_0x3a58b5['push'](_0x3a58b5['shift']());}}}(a215_0x3471,0xd554d));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x27acec=a215_0x55b5;return process.env.TDX_CACHE_DIR||join(homedir(),_0x27acec(0xe3),_0x27acec(0xe7));}const registry=new Map();export function registerGlobalCacheKey(_0x711ddd,_0x594f3f){const _0x1aecae=a215_0x55b5,_0x55a477=registry[_0x1aecae(0xd6)](_0x711ddd);if(_0x55a477&&_0x55a477!==_0x594f3f)throw new Error('Global\x20cache\x20key\x20\x22'+_0x711ddd+_0x1aecae(0xdb)+_0x55a477+_0x1aecae(0xe5)+_0x594f3f+'\x22');registry['set'](_0x711ddd,_0x594f3f);}export function getGlobalCachePath(_0x134509){return join(getGlobalCacheDir(),_0x134509);}function ensureGlobalCacheDir(){const _0x3916cb=getGlobalCacheDir();!existsSync(_0x3916cb)&&mkdirSync(_0x3916cb,{'recursive':!![]});}function readCacheJson(_0x34a07f){const _0x41592b=a215_0x55b5,_0x1a4c2d=getGlobalCachePath(_0x34a07f);if(!existsSync(_0x1a4c2d))return undefined;try{const _0x3c6606=readFileSync(_0x1a4c2d,_0x41592b(0xe9));return JSON[_0x41592b(0xde)](_0x3c6606);}catch{return undefined;}}function writeCacheJson(_0x252a3b,_0x8dcbe4){const _0x52a90b=a215_0x55b5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x252a3b),JSON['stringify'](_0x8dcbe4,null,0x2),_0x52a90b(0xe9));}function readCacheText(_0x3bbd5d){const _0x14310c=getGlobalCachePath(_0x3bbd5d);if(!existsSync(_0x14310c))return undefined;try{return readFileSync(_0x14310c,'utf-8');}catch{return undefined;}}function writeCacheText(_0x505278,_0x5ab5a8){const _0x1fff13=a215_0x55b5;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x505278),_0x5ab5a8,_0x1fff13(0xe9));}function clearCache(_0x18a99d){const _0x4fbbc6=getGlobalCachePath(_0x18a99d);if(existsSync(_0x4fbbc6))try{unlinkSync(_0x4fbbc6);}catch{}}function cacheExists(_0x1e7eb5){return existsSync(getGlobalCachePath(_0x1e7eb5));}export function createGlobalCache(_0x3b6955,_0x3aad17){return registerGlobalCacheKey(_0x3b6955,_0x3aad17),{'read':()=>readCacheJson(_0x3b6955),'write':_0x7d0e74=>writeCacheJson(_0x3b6955,_0x7d0e74),'clear':()=>clearCache(_0x3b6955),'exists':()=>cacheExists(_0x3b6955),'path':()=>getGlobalCachePath(_0x3b6955)};}export function createGlobalTextCache(_0x399537,_0x26584){const _0x391c74=a215_0x55b5;return registerGlobalCacheKey(_0x399537,_0x26584),{'read':()=>readCacheText(_0x399537)?.[_0x391c74(0xdf)]()||undefined,'write':_0x418757=>writeCacheText(_0x399537,_0x418757),'clear':()=>clearCache(_0x399537),'exists':()=>cacheExists(_0x399537),'path':()=>getGlobalCachePath(_0x399537)};}function a215_0x3471(){const _0x13ea99=['1bTYvHI','198064Nloced','.cache','44weEQdQ','\x22,\x20cannot\x20register\x20for\x20\x22','default','tdx','9309936UgtnWz','utf-8','4635520rkSaXl','get','175NsNtpR','415286DOBcId','70011JmYHUv','16505852RtoICX','\x22\x20already\x20registered\x20by\x20\x22','replace','15951850WYKJxK','parse','trim','9ydohrG'];a215_0x3471=function(){return _0x13ea99;};return a215_0x3471();}export function createProfileCache(_0x4f8b6d,_0x580b23){const _0x181684=_0x532a4e=>{const _0x4894a6=a215_0x55b5,_0x4ad520=_0x532a4e||_0x4894a6(0xe6);return _0x4f8b6d[_0x4894a6(0xdc)]('{profile}',_0x4ad520);};return{'read':_0x49cb8f=>{const _0x27a86d=_0x181684(_0x49cb8f);return registerGlobalCacheKey(_0x27a86d,_0x580b23),readCacheJson(_0x27a86d);},'write':(_0xfbfd1c,_0x34d53e)=>{const _0x4d84ef=_0x181684(_0xfbfd1c);registerGlobalCacheKey(_0x4d84ef,_0x580b23),writeCacheJson(_0x4d84ef,_0x34d53e);},'clear':_0x22714d=>{const _0x58d27d=_0x181684(_0x22714d);clearCache(_0x58d27d);},'exists':_0x49543d=>{const _0x2fcc08=_0x181684(_0x49543d);return cacheExists(_0x2fcc08);},'path':_0x5d66c6=>{const _0x81e172=_0x181684(_0x5d66c6);return getGlobalCachePath(_0x81e172);}};}export function createOptionalProfileCache(_0x2cbccf,_0x12bfaf,_0x4a8275={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x4a8275,_0x2da2ff=_0x342bef=>{return _0x342bef?''+_0x2cbccf+profileSeparator+_0x342bef+suffix:''+_0x2cbccf+suffix;};return{'read':_0x25e644=>{const _0x4bf2c0=_0x2da2ff(_0x25e644);return registerGlobalCacheKey(_0x4bf2c0,_0x12bfaf),readCacheJson(_0x4bf2c0);},'write':(_0x3630a1,_0x34fa98)=>{const _0x56936a=_0x2da2ff(_0x34fa98);registerGlobalCacheKey(_0x56936a,_0x12bfaf),writeCacheJson(_0x56936a,_0x3630a1);},'clear':_0x4d8a92=>{const _0x468e8f=_0x2da2ff(_0x4d8a92);clearCache(_0x468e8f);},'exists':_0xddbce2=>{const _0x893276=_0x2da2ff(_0xddbce2);return cacheExists(_0x893276);},'path':_0x2f9cc3=>{const _0x1e2f68=_0x2da2ff(_0x2f9cc3);return getGlobalCachePath(_0x1e2f68);}};}function a215_0x55b5(_0x1b120a,_0x5014e6){_0x1b120a=_0x1b120a-0xd6;const _0x3471c4=a215_0x3471();let _0x55b55f=_0x3471c4[_0x1b120a];return _0x55b55f;}export function clearGlobalRegistry(){registry['clear']();}
1
+ (function(_0x1290b6,_0x4dafa0){const _0x248b8d=a215_0x2752,_0x2462f4=_0x1290b6();while(!![]){try{const _0x4e8a20=-parseInt(_0x248b8d(0x1d2))/0x1*(parseInt(_0x248b8d(0x1c5))/0x2)+parseInt(_0x248b8d(0x1cc))/0x3+parseInt(_0x248b8d(0x1d1))/0x4+parseInt(_0x248b8d(0x1cf))/0x5+-parseInt(_0x248b8d(0x1c1))/0x6+parseInt(_0x248b8d(0x1c9))/0x7*(parseInt(_0x248b8d(0x1d5))/0x8)+parseInt(_0x248b8d(0x1cb))/0x9;if(_0x4e8a20===_0x4dafa0)break;else _0x2462f4['push'](_0x2462f4['shift']());}catch(_0x4c1fb9){_0x2462f4['push'](_0x2462f4['shift']());}}}(a215_0x546e,0xa29a2));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x3160ec=a215_0x2752;return process.env.TDX_CACHE_DIR||join(homedir(),_0x3160ec(0x1c6),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x42df98,_0x58ec66){const _0x1e1a4d=a215_0x2752,_0x467a4c=registry[_0x1e1a4d(0x1c2)](_0x42df98);if(_0x467a4c&&_0x467a4c!==_0x58ec66)throw new Error(_0x1e1a4d(0x1d0)+_0x42df98+_0x1e1a4d(0x1c0)+_0x467a4c+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x58ec66+'\x22');registry[_0x1e1a4d(0x1ca)](_0x42df98,_0x58ec66);}export function getGlobalCachePath(_0x189daf){return join(getGlobalCacheDir(),_0x189daf);}function ensureGlobalCacheDir(){const _0x29b4a3=getGlobalCacheDir();!existsSync(_0x29b4a3)&&mkdirSync(_0x29b4a3,{'recursive':!![]});}function readCacheJson(_0x3e2592){const _0x2a2c4a=a215_0x2752,_0x282895=getGlobalCachePath(_0x3e2592);if(!existsSync(_0x282895))return undefined;try{const _0x3cf582=readFileSync(_0x282895,_0x2a2c4a(0x1c8));return JSON[_0x2a2c4a(0x1c4)](_0x3cf582);}catch{return undefined;}}function writeCacheJson(_0x46d9de,_0x320708){const _0xb98f33=a215_0x2752;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x46d9de),JSON[_0xb98f33(0x1ce)](_0x320708,null,0x2),_0xb98f33(0x1c8));}function readCacheText(_0x43561b){const _0x3b4883=getGlobalCachePath(_0x43561b);if(!existsSync(_0x3b4883))return undefined;try{return readFileSync(_0x3b4883,'utf-8');}catch{return undefined;}}function writeCacheText(_0x4ed4fc,_0x421b19){const _0x45e78a=a215_0x2752;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4ed4fc),_0x421b19,_0x45e78a(0x1c8));}function clearCache(_0x5871bf){const _0x180fee=getGlobalCachePath(_0x5871bf);if(existsSync(_0x180fee))try{unlinkSync(_0x180fee);}catch{}}function cacheExists(_0x4b1c0e){return existsSync(getGlobalCachePath(_0x4b1c0e));}export function createGlobalCache(_0x561508,_0x3c93b1){return registerGlobalCacheKey(_0x561508,_0x3c93b1),{'read':()=>readCacheJson(_0x561508),'write':_0x9a0dc8=>writeCacheJson(_0x561508,_0x9a0dc8),'clear':()=>clearCache(_0x561508),'exists':()=>cacheExists(_0x561508),'path':()=>getGlobalCachePath(_0x561508)};}function a215_0x2752(_0x283c38,_0x40fa03){_0x283c38=_0x283c38-0x1c0;const _0x546eed=a215_0x546e();let _0x2752a9=_0x546eed[_0x283c38];return _0x2752a9;}export function createGlobalTextCache(_0x8cce83,_0x55bed7){const _0x14d35b=a215_0x2752;return registerGlobalCacheKey(_0x8cce83,_0x55bed7),{'read':()=>readCacheText(_0x8cce83)?.[_0x14d35b(0x1cd)]()||undefined,'write':_0x315ca1=>writeCacheText(_0x8cce83,_0x315ca1),'clear':()=>clearCache(_0x8cce83),'exists':()=>cacheExists(_0x8cce83),'path':()=>getGlobalCachePath(_0x8cce83)};}export function createProfileCache(_0x42f332,_0x16bb5f){const _0x2adbe4=_0x55af4b=>{const _0x4b20f4=a215_0x2752,_0x12c699=_0x55af4b||_0x4b20f4(0x1d3);return _0x42f332[_0x4b20f4(0x1d4)](_0x4b20f4(0x1c3),_0x12c699);};return{'read':_0x3c65f3=>{const _0x18a934=_0x2adbe4(_0x3c65f3);return registerGlobalCacheKey(_0x18a934,_0x16bb5f),readCacheJson(_0x18a934);},'write':(_0x20df2c,_0x4f9807)=>{const _0x2a87ef=_0x2adbe4(_0x20df2c);registerGlobalCacheKey(_0x2a87ef,_0x16bb5f),writeCacheJson(_0x2a87ef,_0x4f9807);},'clear':_0x37b981=>{const _0xb3247e=_0x2adbe4(_0x37b981);clearCache(_0xb3247e);},'exists':_0x448def=>{const _0x3c99d3=_0x2adbe4(_0x448def);return cacheExists(_0x3c99d3);},'path':_0x3babd7=>{const _0x1afd48=_0x2adbe4(_0x3babd7);return getGlobalCachePath(_0x1afd48);}};}export function createOptionalProfileCache(_0x9c2a58,_0x3640c3,_0x2833be={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2833be,_0x6efb51=_0x4b1a21=>{return _0x4b1a21?''+_0x9c2a58+profileSeparator+_0x4b1a21+suffix:''+_0x9c2a58+suffix;};return{'read':_0x3db107=>{const _0x493e7c=_0x6efb51(_0x3db107);return registerGlobalCacheKey(_0x493e7c,_0x3640c3),readCacheJson(_0x493e7c);},'write':(_0x1fe598,_0x480981)=>{const _0x2517e3=_0x6efb51(_0x480981);registerGlobalCacheKey(_0x2517e3,_0x3640c3),writeCacheJson(_0x2517e3,_0x1fe598);},'clear':_0x1f9a8d=>{const _0x16ddb1=_0x6efb51(_0x1f9a8d);clearCache(_0x16ddb1);},'exists':_0x2757d3=>{const _0x18a28c=_0x6efb51(_0x2757d3);return cacheExists(_0x18a28c);},'path':_0x40bad9=>{const _0x1a4324=_0x6efb51(_0x40bad9);return getGlobalCachePath(_0x1a4324);}};}export function clearGlobalRegistry(){const _0x2ee5eb=a215_0x2752;registry[_0x2ee5eb(0x1c7)]();}function a215_0x546e(){const _0xb7dd30=['51296gXDaLE','set','12052161BltwCS','1324272pxeJSb','trim','stringify','6078820FOmSHe','Global\x20cache\x20key\x20\x22','756836CsUnRo','16222rrHUUV','default','replace','16onizyp','\x22\x20already\x20registered\x20by\x20\x22','7515756TqDlBQ','get','{profile}','parse','158NAszkw','.cache','clear','utf-8'];a215_0x546e=function(){return _0xb7dd30;};return a215_0x546e();}
@@ -1 +1 @@
1
- function a216_0x19d8(){const _0x53ae76=['3217672xBYxFV','125JilJDP','File\x20not\x20found:\x20','24426VtWRHB','2026504yzYBzb','INTERNAL','7wXDDxy','INVALID_ARGUMENT','64038ErNVmR','message','860zcALzV','627222trVdMx','6307212zAyWwb','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','Invalid\x20JSON\x20in\x20file\x20\x27','EACCES','ENOENT','Invalid\x20JSON\x20string:\x20','utf-8','Permission\x20denied\x20reading\x20file:\x20','3hTLLwL','2071069oMgNui','1TKMLLd','code'];a216_0x19d8=function(){return _0x53ae76;};return a216_0x19d8();}function a216_0x1b4c(_0x531dc6,_0x1e34af){_0x531dc6=_0x531dc6-0x197;const _0x19d816=a216_0x19d8();let _0x1b4c2c=_0x19d816[_0x531dc6];return _0x1b4c2c;}(function(_0x486606,_0x2c219f){const _0x48ce68=a216_0x1b4c,_0x288d8b=_0x486606();while(!![]){try{const _0x22a6ca=parseInt(_0x48ce68(0x1a7))/0x1*(-parseInt(_0x48ce68(0x19b))/0x2)+-parseInt(_0x48ce68(0x1a5))/0x3*(-parseInt(_0x48ce68(0x1ad))/0x4)+parseInt(_0x48ce68(0x1aa))/0x5*(parseInt(_0x48ce68(0x198))/0x6)+-parseInt(_0x48ce68(0x1af))/0x7*(-parseInt(_0x48ce68(0x1a9))/0x8)+-parseInt(_0x48ce68(0x1ac))/0x9*(parseInt(_0x48ce68(0x19a))/0xa)+parseInt(_0x48ce68(0x1a6))/0xb+-parseInt(_0x48ce68(0x19c))/0xc;if(_0x22a6ca===_0x2c219f)break;else _0x288d8b['push'](_0x288d8b['shift']());}catch(_0x4ab365){_0x288d8b['push'](_0x288d8b['shift']());}}}(a216_0x19d8,0x471fb));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x414a8c,_0x2a7005){const _0xc04ee6=a216_0x1b4c;try{if(_0x2a7005){const _0x1fe42c=await readFile(_0x414a8c,_0xc04ee6(0x1a3));try{return JSON[_0xc04ee6(0x19e)](_0x1fe42c);}catch(_0x2425fb){throw new SDKError(ErrorCode[_0xc04ee6(0x197)],_0xc04ee6(0x19f)+_0x414a8c+'\x27:\x20'+(_0x2425fb instanceof Error?_0x2425fb['message']:String(_0x2425fb)));}}else try{return JSON[_0xc04ee6(0x19e)](_0x414a8c);}catch(_0x176e5c){throw new SDKError(ErrorCode[_0xc04ee6(0x197)],_0xc04ee6(0x1a2)+(_0x176e5c instanceof Error?_0x176e5c[_0xc04ee6(0x199)]:String(_0x176e5c)));}}catch(_0x3db990){if(_0x3db990 instanceof SDKError)throw _0x3db990;if(_0x3db990 instanceof Error&&_0xc04ee6(0x1a8)in _0x3db990){const _0x47d099=_0x3db990;if(_0x47d099['code']===_0xc04ee6(0x1a1))throw new SDKError(ErrorCode['NOT_FOUND'],_0xc04ee6(0x1ab)+_0x414a8c);else{if(_0x47d099[_0xc04ee6(0x1a8)]===_0xc04ee6(0x1a0))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0xc04ee6(0x1a4)+_0x414a8c);}}throw new SDKError(ErrorCode[_0xc04ee6(0x1ae)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x3db990 instanceof Error?_0x3db990['message']:String(_0x3db990)));}}export async function loadJSONFromOptions(_0x582980,_0x242256){const _0x33e4ff=a216_0x1b4c;if(_0x582980&&_0x242256)throw new SDKError(ErrorCode[_0x33e4ff(0x197)],_0x33e4ff(0x19d));if(_0x582980)return await loadJSON(_0x582980,![]);if(_0x242256)return await loadJSON(_0x242256,!![]);return undefined;}
1
+ (function(_0x36f8bf,_0x56bbca){const _0x1432ee=a216_0x342a,_0x2aaf09=_0x36f8bf();while(!![]){try{const _0x380718=-parseInt(_0x1432ee(0x1dc))/0x1+-parseInt(_0x1432ee(0x1e2))/0x2+parseInt(_0x1432ee(0x1db))/0x3+parseInt(_0x1432ee(0x1ea))/0x4*(parseInt(_0x1432ee(0x1d8))/0x5)+parseInt(_0x1432ee(0x1e9))/0x6+-parseInt(_0x1432ee(0x1e5))/0x7+-parseInt(_0x1432ee(0x1e3))/0x8;if(_0x380718===_0x56bbca)break;else _0x2aaf09['push'](_0x2aaf09['shift']());}catch(_0x2816af){_0x2aaf09['push'](_0x2aaf09['shift']());}}}(a216_0x3738,0x9991a));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a216_0x342a(_0x1e23e2,_0x555e9a){_0x1e23e2=_0x1e23e2-0x1d5;const _0x3738d0=a216_0x3738();let _0x342ab4=_0x3738d0[_0x1e23e2];return _0x342ab4;}export async function loadJSON(_0x53372b,_0x279ca6){const _0x14360d=a216_0x342a;try{if(_0x279ca6){const _0x592263=await readFile(_0x53372b,_0x14360d(0x1da));try{return JSON[_0x14360d(0x1d9)](_0x592263);}catch(_0x59638f){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x53372b+'\x27:\x20'+(_0x59638f instanceof Error?_0x59638f['message']:String(_0x59638f)));}}else try{return JSON[_0x14360d(0x1d9)](_0x53372b);}catch(_0x1e5f0f){throw new SDKError(ErrorCode[_0x14360d(0x1e7)],'Invalid\x20JSON\x20string:\x20'+(_0x1e5f0f instanceof Error?_0x1e5f0f[_0x14360d(0x1e4)]:String(_0x1e5f0f)));}}catch(_0x215d72){if(_0x215d72 instanceof SDKError)throw _0x215d72;if(_0x215d72 instanceof Error&&_0x14360d(0x1d7)in _0x215d72){const _0x240314=_0x215d72;if(_0x240314[_0x14360d(0x1d7)]===_0x14360d(0x1dd))throw new SDKError(ErrorCode[_0x14360d(0x1e8)],_0x14360d(0x1de)+_0x53372b);else{if(_0x240314[_0x14360d(0x1d7)]===_0x14360d(0x1d6))throw new SDKError(ErrorCode[_0x14360d(0x1e1)],_0x14360d(0x1d5)+_0x53372b);}}throw new SDKError(ErrorCode[_0x14360d(0x1e0)],_0x14360d(0x1e6)+(_0x215d72 instanceof Error?_0x215d72[_0x14360d(0x1e4)]:String(_0x215d72)));}}export async function loadJSONFromOptions(_0x599766,_0x31f670){const _0x44d37d=a216_0x342a;if(_0x599766&&_0x31f670)throw new SDKError(ErrorCode[_0x44d37d(0x1e7)],_0x44d37d(0x1df));if(_0x599766)return await loadJSON(_0x599766,![]);if(_0x31f670)return await loadJSON(_0x31f670,!![]);return undefined;}function a216_0x3738(){const _0x39da9a=['File\x20not\x20found:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INTERNAL','PERMISSION_DENIED','1007294ethXtu','5723816PoafHg','message','5303123SlrEQK','Failed\x20to\x20load\x20JSON:\x20','INVALID_ARGUMENT','NOT_FOUND','4421646KAacaO','4758788OloUpa','Permission\x20denied\x20reading\x20file:\x20','EACCES','code','5VDeCFY','parse','utf-8','3251841IgAVFu','404854OCgDfv','ENOENT'];a216_0x3738=function(){return _0x39da9a;};return a216_0x3738();}