@treasuredata/tdx 2026.6.1 → 2026.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (241) 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.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/cas-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.js +1 -1
  38. package/dist/commands/profile-command.js +1 -1
  39. package/dist/commands/profiles-command.js +1 -1
  40. package/dist/commands/query-command.js +1 -1
  41. package/dist/commands/schedule-command.js +1 -1
  42. package/dist/commands/segment-command.js +1 -1
  43. package/dist/commands/segment-create-command.js +1 -1
  44. package/dist/commands/segment-fields-command.js +1 -1
  45. package/dist/commands/segment-pull-command.js +1 -1
  46. package/dist/commands/segment-push-command.js +1 -1
  47. package/dist/commands/segment-update-command.js +1 -1
  48. package/dist/commands/segment-use-command.js +1 -1
  49. package/dist/commands/segment-validate-command.js +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/show.js +1 -1
  52. package/dist/commands/status-command.js +1 -1
  53. package/dist/commands/table-deleted.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/work-command.js +1 -1
  60. package/dist/commands/workflow-command.d.ts +2 -2
  61. package/dist/commands/workflow-command.d.ts.map +1 -1
  62. package/dist/commands/workflow-command.js +1 -1
  63. package/dist/commands/workflow-command.js.map +1 -1
  64. package/dist/core/auth.js +1 -1
  65. package/dist/core/command-output.js +1 -1
  66. package/dist/core/config.js +1 -1
  67. package/dist/core/connection-cache.js +1 -1
  68. package/dist/core/constants.js +1 -1
  69. package/dist/core/credential-cache.js +1 -1
  70. package/dist/core/global-context.js +1 -1
  71. package/dist/core/keychain.js +1 -1
  72. package/dist/core/oauth-keychain.js +1 -1
  73. package/dist/core/oauth.js +1 -1
  74. package/dist/core/profile.js +1 -1
  75. package/dist/core/project-config.js +1 -1
  76. package/dist/core/session.js +1 -1
  77. package/dist/core/user-cache.js +1 -1
  78. package/dist/core/version.js +1 -1
  79. package/dist/index.js +1 -1
  80. package/dist/mcp/server.js +1 -1
  81. package/dist/mcp/tools/index.js +1 -1
  82. package/dist/mcp/tools/tdx-run.js +1 -1
  83. package/dist/mcp/tools/tdx-search.js +1 -1
  84. package/dist/mcp/tools/work-create-item.js +1 -1
  85. package/dist/mcp/utils.js +1 -1
  86. package/dist/proxy/claude-usage-tracker.js +1 -1
  87. package/dist/proxy/passthrough-server.js +1 -1
  88. package/dist/proxy/sse-usage-parser.js +1 -1
  89. package/dist/sdk/agent/agent-config.js +1 -1
  90. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  91. package/dist/sdk/agent/agent-yaml.js +1 -1
  92. package/dist/sdk/agent/test/evaluator.js +1 -1
  93. package/dist/sdk/agent/test/executor.js +1 -1
  94. package/dist/sdk/agent/test/index.js +1 -1
  95. package/dist/sdk/agent/test/output.js +1 -1
  96. package/dist/sdk/agent/test/parser.js +1 -1
  97. package/dist/sdk/agent/tool-target-registry.js +1 -1
  98. package/dist/sdk/api.js +1 -1
  99. package/dist/sdk/cas/cas-api-client.js +1 -1
  100. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  101. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  102. package/dist/sdk/cas/index.js +1 -1
  103. package/dist/sdk/cas/pull-workflow.js +1 -1
  104. package/dist/sdk/cas/push-workflow.js +1 -1
  105. package/dist/sdk/client/cdp-api-client.js +1 -1
  106. package/dist/sdk/client/delivery-api-client.js +1 -1
  107. package/dist/sdk/client/endpoints.js +1 -1
  108. package/dist/sdk/client/engage-api-client.js +1 -1
  109. package/dist/sdk/client/http-client.js +1 -1
  110. package/dist/sdk/client/llm-api-client.js +1 -1
  111. package/dist/sdk/client/oauth-refresh.js +1 -1
  112. package/dist/sdk/client/rate-limiter.js +1 -1
  113. package/dist/sdk/client/td-api-client.js +1 -1
  114. package/dist/sdk/client/trino-api-client.js +1 -1
  115. package/dist/sdk/client/workflow-client.d.ts +23 -1
  116. package/dist/sdk/client/workflow-client.d.ts.map +1 -1
  117. package/dist/sdk/client/workflow-client.js +1 -1
  118. package/dist/sdk/client/workflow-client.js.map +1 -1
  119. package/dist/sdk/connection-validator.js +1 -1
  120. package/dist/sdk/connection.js +1 -1
  121. package/dist/sdk/delivery.js +1 -1
  122. package/dist/sdk/engage/campaign-pull.js +1 -1
  123. package/dist/sdk/engage/campaign-push.js +1 -1
  124. package/dist/sdk/engage/campaign-validator.js +1 -1
  125. package/dist/sdk/engage/campaign-yaml.js +1 -1
  126. package/dist/sdk/engage/template-pull.js +1 -1
  127. package/dist/sdk/engage/template-push.js +1 -1
  128. package/dist/sdk/engage/template-validator.js +1 -1
  129. package/dist/sdk/engage/template-yaml.js +1 -1
  130. package/dist/sdk/engage/types/campaign-def.js +1 -1
  131. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  132. package/dist/sdk/engage/types/template-schema.js +1 -1
  133. package/dist/sdk/engage.js +1 -1
  134. package/dist/sdk/errors.js +1 -1
  135. package/dist/sdk/index.js +1 -1
  136. package/dist/sdk/io/index.js +1 -1
  137. package/dist/sdk/io/node-filesystem.js +1 -1
  138. package/dist/sdk/job.js +1 -1
  139. package/dist/sdk/journey.js +1 -1
  140. package/dist/sdk/llm/chat-cache.js +1 -1
  141. package/dist/sdk/llm/index.js +1 -1
  142. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  143. package/dist/sdk/llm/model-factors.js +1 -1
  144. package/dist/sdk/llm/user-settings.js +1 -1
  145. package/dist/sdk/personalization.js +1 -1
  146. package/dist/sdk/policy.js +1 -1
  147. package/dist/sdk/query/deleted-table-validation.js +1 -1
  148. package/dist/sdk/query/index.js +1 -1
  149. package/dist/sdk/query/sql-parser.js +1 -1
  150. package/dist/sdk/realtime.js +1 -1
  151. package/dist/sdk/schedule.js +1 -1
  152. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  153. package/dist/sdk/segment/fields-display.js +1 -1
  154. package/dist/sdk/segment/file-discovery.js +1 -1
  155. package/dist/sdk/segment/journey-utils.js +1 -1
  156. package/dist/sdk/segment/journey-validator.js +1 -1
  157. package/dist/sdk/segment/journey-yaml.js +1 -1
  158. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  159. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  160. package/dist/sdk/segment/pull-workflow.js +1 -1
  161. package/dist/sdk/segment/push-recovery.js +1 -1
  162. package/dist/sdk/segment/push-workflow.js +1 -1
  163. package/dist/sdk/segment/resolution-context.js +1 -1
  164. package/dist/sdk/segment/segment-path-parser.js +1 -1
  165. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  166. package/dist/sdk/segment/segment-validator.js +1 -1
  167. package/dist/sdk/segment/target-resolution.js +1 -1
  168. package/dist/sdk/segment/tdx-config.js +1 -1
  169. package/dist/sdk/segment/types/activation-schema.js +1 -1
  170. package/dist/sdk/segment/types/journey-def.js +1 -1
  171. package/dist/sdk/segment/types/journey-schema.js +1 -1
  172. package/dist/sdk/segment/types/segment-def.js +1 -1
  173. package/dist/sdk/segment/types/segment-schema.js +1 -1
  174. package/dist/sdk/segment/validate-files.js +1 -1
  175. package/dist/sdk/segment/yaml-validator.js +1 -1
  176. package/dist/sdk/segment.js +1 -1
  177. package/dist/sdk/types/index.js +1 -1
  178. package/dist/sdk/types/progress.js +1 -1
  179. package/dist/sdk/types/workflow.d.ts +1 -1
  180. package/dist/sdk/types/workflow.d.ts.map +1 -1
  181. package/dist/sdk/types/workspace.js +1 -1
  182. package/dist/sdk/user.js +1 -1
  183. package/dist/sdk/util/format-detector.js +1 -1
  184. package/dist/sdk/util/formatters.js +1 -1
  185. package/dist/sdk/util/index.js +1 -1
  186. package/dist/sdk/util/paginate.js +1 -1
  187. package/dist/sdk/util/tree-formatter.js +1 -1
  188. package/dist/sdk/workflow/archive-validation.js +1 -1
  189. package/dist/sdk/workflow/clone-workflow.js +1 -1
  190. package/dist/sdk/workflow/index.d.ts +23 -2
  191. package/dist/sdk/workflow/index.d.ts.map +1 -1
  192. package/dist/sdk/workflow/index.js +1 -1
  193. package/dist/sdk/workflow/index.js.map +1 -1
  194. package/dist/sdk/workflow/pull-workflow.js +1 -1
  195. package/dist/sdk/workflow/push-workflow.d.ts +4 -0
  196. package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
  197. package/dist/sdk/workflow/push-workflow.js +1 -1
  198. package/dist/sdk/workflow/push-workflow.js.map +1 -1
  199. package/dist/sdk/workflow/task-graph.js +1 -1
  200. package/dist/sdk/workflow/tdx-config.js +1 -1
  201. package/dist/sdk/workflow/workflow-utils.js +1 -1
  202. package/dist/sdk/workspace/access-tracker.js +1 -1
  203. package/dist/sdk/workspace/frontmatter.js +1 -1
  204. package/dist/sdk/workspace/git.js +1 -1
  205. package/dist/sdk/workspace/index.js +1 -1
  206. package/dist/sdk/workspace/templates.js +1 -1
  207. package/dist/sdk/workspace/weekly.js +1 -1
  208. package/dist/sdk/workspace/wikilinks.js +1 -1
  209. package/dist/test-utils/command-runner.js +1 -1
  210. package/dist/test-utils/factories.js +1 -1
  211. package/dist/test-utils/fixtures.js +1 -1
  212. package/dist/test-utils/http-mock.js +1 -1
  213. package/dist/test-utils/index.js +1 -1
  214. package/dist/utils/async.js +1 -1
  215. package/dist/utils/colors.js +1 -1
  216. package/dist/utils/diff.js +1 -1
  217. package/dist/utils/file-permissions.js +1 -1
  218. package/dist/utils/file-reader.js +1 -1
  219. package/dist/utils/github-releases.js +1 -1
  220. package/dist/utils/global-cache.js +1 -1
  221. package/dist/utils/json-loader.js +1 -1
  222. package/dist/utils/local-cache.js +1 -1
  223. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  224. package/dist/utils/logger/formatters/index.js +1 -1
  225. package/dist/utils/logger/handlers/console-handler.js +1 -1
  226. package/dist/utils/logger/handlers/file-handler.js +1 -1
  227. package/dist/utils/logger/handlers/index.js +1 -1
  228. package/dist/utils/logger/handlers/null-handler.js +1 -1
  229. package/dist/utils/logger/index.js +1 -1
  230. package/dist/utils/logger/logger.js +1 -1
  231. package/dist/utils/logger/types.js +1 -1
  232. package/dist/utils/option-validation.js +1 -1
  233. package/dist/utils/process.js +1 -1
  234. package/dist/utils/prompt.js +1 -1
  235. package/dist/utils/spinner.js +1 -1
  236. package/dist/utils/sse-parser.js +1 -1
  237. package/dist/utils/string-utils.js +1 -1
  238. package/dist/utils/table-ref-parser.js +1 -1
  239. package/dist/utils/tdx-logger.js +1 -1
  240. package/dist/utils/version-check.js +1 -1
  241. package/package.json +1 -1
@@ -1 +1 @@
1
- function a206_0x7cd8(_0x3a6384,_0x40e57e){_0x3a6384=_0x3a6384-0x1b5;const _0x37be81=a206_0x37be();let _0x7cd8ba=_0x37be81[_0x3a6384];return _0x7cd8ba;}(function(_0x68132,_0x18beb4){const _0x74d410=a206_0x7cd8,_0x221d0a=_0x68132();while(!![]){try{const _0xad88cb=-parseInt(_0x74d410(0x1d7))/0x1+parseInt(_0x74d410(0x1eb))/0x2*(-parseInt(_0x74d410(0x1d5))/0x3)+-parseInt(_0x74d410(0x1c7))/0x4*(-parseInt(_0x74d410(0x1d3))/0x5)+-parseInt(_0x74d410(0x1e1))/0x6+parseInt(_0x74d410(0x1e8))/0x7*(-parseInt(_0x74d410(0x1c2))/0x8)+parseInt(_0x74d410(0x1d6))/0x9+parseInt(_0x74d410(0x1c1))/0xa*(parseInt(_0x74d410(0x1e0))/0xb);if(_0xad88cb===_0x18beb4)break;else _0x221d0a['push'](_0x221d0a['shift']());}catch(_0x29492d){_0x221d0a['push'](_0x221d0a['shift']());}}}(a206_0x37be,0x40cd4));import*as a206_0x228b1b from'node:fs';import*as a206_0x7d308b from'node:path';import{serializeFrontmatter}from'./frontmatter.js';function getWeekNumber(_0x4e38ee){const _0xbec9e3=a206_0x7cd8,_0x36baf4=new Date(Date[_0xbec9e3(0x1d1)](_0x4e38ee[_0xbec9e3(0x1d2)](),_0x4e38ee[_0xbec9e3(0x1f0)](),_0x4e38ee[_0xbec9e3(0x1da)]())),_0x5a467c=_0x36baf4[_0xbec9e3(0x1c9)]()||0x7;_0x36baf4[_0xbec9e3(0x1d8)](_0x36baf4[_0xbec9e3(0x1d4)]()+0x4-_0x5a467c);const _0x2aa4a4=new Date(Date[_0xbec9e3(0x1d1)](_0x36baf4['getUTCFullYear'](),0x0,0x1));return Math[_0xbec9e3(0x1e6)](((_0x36baf4[_0xbec9e3(0x1d0)]()-_0x2aa4a4[_0xbec9e3(0x1d0)]())/0x5265c00+0x1)/0x7);}function getWeekRange(_0x3c57bb){const _0x49c63e=a206_0x7cd8,_0x44ff7a=new Date(_0x3c57bb),_0x256ba8=_0x44ff7a[_0x49c63e(0x1c3)](),_0x484a8c=_0x44ff7a[_0x49c63e(0x1da)]()-_0x256ba8+(_0x256ba8===0x0?-0x6:0x1),_0x3147c1=new Date(_0x44ff7a['setDate'](_0x484a8c)),_0x513f52=new Date(_0x3147c1);return _0x513f52[_0x49c63e(0x1cc)](_0x3147c1['getDate']()+0x4),{'monday':_0x3147c1,'friday':_0x513f52};}function formatShortDate(_0x2b90de){const _0x369791=a206_0x7cd8;return _0x2b90de['toLocaleDateString'](_0x369791(0x1bc),{'month':_0x369791(0x1ef),'day':'numeric'});}function a206_0x37be(){const _0x12844a=['getGoalProgress','writeFileSync','short','getMonth','status','push','\x20items\x20done\x20(','frontmatter','title','transitiveDeps','goals','-\x20[x]\x20','todo','design_review','##\x20Reflection','items','en-US','percentage','-\x20[\x20]\x20','in_progress','total','129510UiprGh','504pSlFEH','getDay','weekDate','referencedBy','join','60opTMqd','utf-8','getUTCDay','filePath','done','setDate','notes','includes','review','getTime','UTC','getFullYear','27465DvFLRt','getUTCDate','496803emzKxI','277056VLlVoD','213016IhFEhb','setUTCDate','filter','getDate','length','##\x20This\x20Week',']]\x20—\x20no\x20items\x20linked',']]\x20—\x20','weekly','946SGPiwV','1317906BaSOSV','.md','-\x20[[','toISOString','Week\x20','ceil','fileName','3563sXgbEZ','\x20\x20-\x20_Transitive:\x20[[','padStart','6kIkYvA','basename'];a206_0x37be=function(){return _0x12844a;};return a206_0x37be();}export function generateWeeklyNote(_0x26b1b9){const _0x89498f=a206_0x7cd8,_0x2ca86b=_0x26b1b9[_0x89498f(0x1c4)]||new Date(),_0x517ecf=getWeekNumber(_0x2ca86b),_0x3b4c23=_0x2ca86b['getFullYear'](),{monday:_0x2bdce3,friday:_0x5970ff}=getWeekRange(_0x2ca86b),_0x255c56=_0x89498f(0x1e5)+_0x517ecf+'\x20('+formatShortDate(_0x2bdce3)+'-'+formatShortDate(_0x5970ff)+')',_0x2ee774=_0x3b4c23+'-W'+String(_0x517ecf)[_0x89498f(0x1ea)](0x2,'0')+'.md',_0x49432b={'title':_0x255c56,'tags':[_0x89498f(0x1df)],'created':_0x2ca86b[_0x89498f(0x1e4)]()['slice'](0x0,0xa)},_0x4a5b72=[];if(_0x26b1b9[_0x89498f(0x1b6)][_0x89498f(0x1db)]>0x0){_0x4a5b72[_0x89498f(0x1f2)]('##\x20Goals\x20Progress');for(const _0x459578 of _0x26b1b9[_0x89498f(0x1b6)]){const _0x2081eb=a206_0x7d308b['basename'](_0x459578[_0x89498f(0x1e7)],_0x89498f(0x1e2)),_0x2989af=_0x26b1b9[_0x89498f(0x1ed)](_0x459578[_0x89498f(0x1ca)]),_0x557634=_0x459578[_0x89498f(0x1f4)]['title']||_0x2081eb;if(_0x2989af['total']>0x0){_0x4a5b72['push']('-\x20[['+_0x2081eb+'|'+_0x557634+_0x89498f(0x1de)+_0x2989af[_0x89498f(0x1cb)]+'/'+_0x2989af[_0x89498f(0x1c0)]+_0x89498f(0x1f3)+_0x2989af[_0x89498f(0x1bd)]+'%)');if(_0x2989af[_0x89498f(0x1b5)]?.[_0x89498f(0x1db)])for(const _0x49dc2b of _0x2989af['transitiveDeps']){const _0x1888dd=a206_0x7d308b[_0x89498f(0x1ec)](_0x49dc2b['fileName'],_0x89498f(0x1e2));_0x4a5b72['push'](_0x89498f(0x1e9)+_0x1888dd+']]\x20('+_0x49dc2b[_0x89498f(0x1f1)]+')\x20—\x20via\x20'+_0x49dc2b[_0x89498f(0x1c5)][_0x89498f(0x1c6)](',\x20')+'_');}}else _0x4a5b72[_0x89498f(0x1f2)](_0x89498f(0x1e3)+_0x2081eb+'|'+_0x557634+_0x89498f(0x1dd));}_0x4a5b72[_0x89498f(0x1f2)]('');}const _0xb3cf5f=_0x26b1b9[_0x89498f(0x1bb)][_0x89498f(0x1d9)](_0x1c8759=>_0x1c8759['frontmatter'][_0x89498f(0x1f1)]===_0x89498f(0x1cb)),_0x493ee9=_0x26b1b9[_0x89498f(0x1bb)][_0x89498f(0x1d9)](_0x156bd9=>[_0x89498f(0x1bf),_0x89498f(0x1cf),'planning',_0x89498f(0x1b9)][_0x89498f(0x1ce)](_0x156bd9[_0x89498f(0x1f4)]['status'])),_0x5aac87=_0x26b1b9['items'][_0x89498f(0x1d9)](_0x2eec37=>['backlog',_0x89498f(0x1b8)][_0x89498f(0x1ce)](_0x2eec37[_0x89498f(0x1f4)][_0x89498f(0x1f1)]));_0x4a5b72[_0x89498f(0x1f2)](_0x89498f(0x1dc));if(_0xb3cf5f['length']>0x0)for(const _0x204698 of _0xb3cf5f){_0x4a5b72[_0x89498f(0x1f2)](_0x89498f(0x1b7)+_0x204698[_0x89498f(0x1f4)][_0x89498f(0x1f5)]);}if(_0x493ee9[_0x89498f(0x1db)]>0x0)for(const _0x25e2a7 of _0x493ee9){_0x4a5b72[_0x89498f(0x1f2)](_0x89498f(0x1be)+_0x25e2a7[_0x89498f(0x1f4)]['title']+'\x20_('+_0x25e2a7[_0x89498f(0x1f4)][_0x89498f(0x1f1)]+')_');}if(_0x5aac87[_0x89498f(0x1db)]>0x0)for(const _0x15bb55 of _0x5aac87){_0x4a5b72[_0x89498f(0x1f2)](_0x89498f(0x1be)+_0x15bb55[_0x89498f(0x1f4)][_0x89498f(0x1f5)]);}_0xb3cf5f[_0x89498f(0x1db)]===0x0&&_0x493ee9[_0x89498f(0x1db)]===0x0&&_0x5aac87[_0x89498f(0x1db)]===0x0&&_0x4a5b72[_0x89498f(0x1f2)]('_No\x20items\x20yet._');_0x4a5b72[_0x89498f(0x1f2)](''),_0x4a5b72[_0x89498f(0x1f2)](_0x89498f(0x1ba)),_0x4a5b72[_0x89498f(0x1f2)](''),_0x4a5b72[_0x89498f(0x1f2)]('');const _0x8e0a4a=_0x4a5b72['join']('\x0a'),_0x1585af=serializeFrontmatter(_0x49432b,_0x8e0a4a);return{'fileName':_0x2ee774,'content':_0x1585af};}export function writeWeeklyNote(_0x13a86f,_0x3183af){const _0x5ca1e9=a206_0x7cd8,{fileName:_0x2ae616,content:_0x4e2a3a}=generateWeeklyNote(_0x3183af),_0xdb3c4e=a206_0x7d308b['join'](_0x13a86f,_0x5ca1e9(0x1cd),'weekly');a206_0x228b1b['mkdirSync'](_0xdb3c4e,{'recursive':!![]});const _0x279ac8=a206_0x7d308b[_0x5ca1e9(0x1c6)](_0xdb3c4e,_0x2ae616);return a206_0x228b1b[_0x5ca1e9(0x1ee)](_0x279ac8,_0x4e2a3a,_0x5ca1e9(0x1c8)),{'filePath':_0x279ac8,'fileName':_0x2ae616};}
1
+ (function(_0x1d85b1,_0x42ca15){const _0x3fe532=a206_0x538d,_0x3410ac=_0x1d85b1();while(!![]){try{const _0x172f1e=parseInt(_0x3fe532(0xbe))/0x1+-parseInt(_0x3fe532(0xb3))/0x2*(parseInt(_0x3fe532(0x8e))/0x3)+parseInt(_0x3fe532(0xb5))/0x4*(parseInt(_0x3fe532(0x91))/0x5)+parseInt(_0x3fe532(0xa1))/0x6+parseInt(_0x3fe532(0xc9))/0x7+-parseInt(_0x3fe532(0xba))/0x8*(parseInt(_0x3fe532(0x93))/0x9)+-parseInt(_0x3fe532(0x9b))/0xa;if(_0x172f1e===_0x42ca15)break;else _0x3410ac['push'](_0x3410ac['shift']());}catch(_0x43c4eb){_0x3410ac['push'](_0x3410ac['shift']());}}}(a206_0xa6d9,0x9adbf));import*as a206_0x2948a9 from'node:fs';function a206_0x538d(_0x23cbfa,_0x4d2a69){_0x23cbfa=_0x23cbfa-0x8e;const _0xa6d9b0=a206_0xa6d9();let _0x538d0a=_0xa6d9b0[_0x23cbfa];return _0x538d0a;}import*as a206_0x27048d from'node:path';import{serializeFrontmatter}from'./frontmatter.js';function getWeekNumber(_0x1c085e){const _0x2cb37c=a206_0x538d,_0x36b340=new Date(Date[_0x2cb37c(0xc8)](_0x1c085e[_0x2cb37c(0xc2)](),_0x1c085e[_0x2cb37c(0xac)](),_0x1c085e[_0x2cb37c(0xb2)]())),_0xee564d=_0x36b340['getUTCDay']()||0x7;_0x36b340['setUTCDate'](_0x36b340[_0x2cb37c(0xcc)]()+0x4-_0xee564d);const _0x43320f=new Date(Date[_0x2cb37c(0xc8)](_0x36b340['getUTCFullYear'](),0x0,0x1));return Math[_0x2cb37c(0xb7)](((_0x36b340[_0x2cb37c(0x8f)]()-_0x43320f[_0x2cb37c(0x8f)]())/0x5265c00+0x1)/0x7);}function getWeekRange(_0x3833cf){const _0x1be303=a206_0x538d,_0x3716b6=new Date(_0x3833cf),_0x201e4e=_0x3716b6[_0x1be303(0xbc)](),_0x19ac8e=_0x3716b6[_0x1be303(0xb2)]()-_0x201e4e+(_0x201e4e===0x0?-0x6:0x1),_0x3cdf5f=new Date(_0x3716b6[_0x1be303(0xc4)](_0x19ac8e)),_0x217243=new Date(_0x3cdf5f);return _0x217243[_0x1be303(0xc4)](_0x3cdf5f[_0x1be303(0xb2)]()+0x4),{'monday':_0x3cdf5f,'friday':_0x217243};}function formatShortDate(_0x47b837){const _0x921a28=a206_0x538d;return _0x47b837[_0x921a28(0xb1)]('en-US',{'month':_0x921a28(0xaa),'day':'numeric'});}export function generateWeeklyNote(_0x4a78a5){const _0x129b50=a206_0x538d,_0xffdeb3=_0x4a78a5[_0x129b50(0xb8)]||new Date(),_0x5a08fa=getWeekNumber(_0xffdeb3),_0x571bbf=_0xffdeb3[_0x129b50(0xc2)](),{monday:_0x87735d,friday:_0x5c2e32}=getWeekRange(_0xffdeb3),_0x2b8689=_0x129b50(0xb9)+_0x5a08fa+'\x20('+formatShortDate(_0x87735d)+'-'+formatShortDate(_0x5c2e32)+')',_0x36bd19=_0x571bbf+'-W'+String(_0x5a08fa)[_0x129b50(0x96)](0x2,'0')+_0x129b50(0xc3),_0x4beda3={'title':_0x2b8689,'tags':['weekly'],'created':_0xffdeb3['toISOString']()[_0x129b50(0x98)](0x0,0xa)},_0x597982=[];if(_0x4a78a5[_0x129b50(0x9e)][_0x129b50(0xb0)]>0x0){_0x597982[_0x129b50(0xa4)](_0x129b50(0x9c));for(const _0x2fe1d of _0x4a78a5['goals']){const _0x431abf=a206_0x27048d[_0x129b50(0xa7)](_0x2fe1d[_0x129b50(0xa5)],_0x129b50(0xc3)),_0x2dafd9=_0x4a78a5[_0x129b50(0xad)](_0x2fe1d['filePath']),_0xb2547e=_0x2fe1d[_0x129b50(0xb6)][_0x129b50(0xca)]||_0x431abf;if(_0x2dafd9[_0x129b50(0xa6)]>0x0){_0x597982[_0x129b50(0xa4)](_0x129b50(0x94)+_0x431abf+'|'+_0xb2547e+']]\x20—\x20'+_0x2dafd9[_0x129b50(0xbd)]+'/'+_0x2dafd9[_0x129b50(0xa6)]+_0x129b50(0xc6)+_0x2dafd9[_0x129b50(0xc5)]+'%)');if(_0x2dafd9[_0x129b50(0xab)]?.['length'])for(const _0x304555 of _0x2dafd9[_0x129b50(0xab)]){const _0x57f673=a206_0x27048d[_0x129b50(0xa7)](_0x304555[_0x129b50(0xa5)],_0x129b50(0xc3));_0x597982[_0x129b50(0xa4)](_0x129b50(0xb4)+_0x57f673+']]\x20('+_0x304555[_0x129b50(0xa0)]+_0x129b50(0xa8)+_0x304555[_0x129b50(0xa9)][_0x129b50(0x9d)](',\x20')+'_');}}else _0x597982['push'](_0x129b50(0x94)+_0x431abf+'|'+_0xb2547e+_0x129b50(0x97));}_0x597982[_0x129b50(0xa4)]('');}const _0x5c9ff0=_0x4a78a5[_0x129b50(0xbb)][_0x129b50(0x90)](_0x3a0236=>_0x3a0236[_0x129b50(0xb6)][_0x129b50(0xa0)]===_0x129b50(0xbd)),_0xc013df=_0x4a78a5['items'][_0x129b50(0x90)](_0x4340d9=>[_0x129b50(0xc1),_0x129b50(0xa3),_0x129b50(0x99),_0x129b50(0xaf)][_0x129b50(0xbf)](_0x4340d9[_0x129b50(0xb6)][_0x129b50(0xa0)])),_0x32b1cf=_0x4a78a5[_0x129b50(0xbb)]['filter'](_0x2818e1=>[_0x129b50(0xa2),_0x129b50(0xc7)][_0x129b50(0xbf)](_0x2818e1['frontmatter']['status']));_0x597982[_0x129b50(0xa4)]('##\x20This\x20Week');if(_0x5c9ff0[_0x129b50(0xb0)]>0x0)for(const _0x2889c5 of _0x5c9ff0){_0x597982[_0x129b50(0xa4)](_0x129b50(0x95)+_0x2889c5['frontmatter'][_0x129b50(0xca)]);}if(_0xc013df[_0x129b50(0xb0)]>0x0)for(const _0xeb6721 of _0xc013df){_0x597982[_0x129b50(0xa4)](_0x129b50(0xc0)+_0xeb6721[_0x129b50(0xb6)]['title']+_0x129b50(0xae)+_0xeb6721['frontmatter'][_0x129b50(0xa0)]+')_');}if(_0x32b1cf[_0x129b50(0xb0)]>0x0)for(const _0x383a4f of _0x32b1cf){_0x597982['push'](_0x129b50(0xc0)+_0x383a4f[_0x129b50(0xb6)][_0x129b50(0xca)]);}_0x5c9ff0[_0x129b50(0xb0)]===0x0&&_0xc013df['length']===0x0&&_0x32b1cf[_0x129b50(0xb0)]===0x0&&_0x597982['push']('_No\x20items\x20yet._');_0x597982[_0x129b50(0xa4)](''),_0x597982[_0x129b50(0xa4)](_0x129b50(0x9a)),_0x597982[_0x129b50(0xa4)](''),_0x597982[_0x129b50(0xa4)]('');const _0x516727=_0x597982[_0x129b50(0x9d)]('\x0a'),_0x590d2c=serializeFrontmatter(_0x4beda3,_0x516727);return{'fileName':_0x36bd19,'content':_0x590d2c};}function a206_0xa6d9(){const _0x2a6451=['getDate','2MPTXOZ','\x20\x20-\x20_Transitive:\x20[[','52elPaqd','frontmatter','ceil','weekDate','Week\x20','16XoFvht','items','getDay','done','152894vRUhIv','includes','-\x20[\x20]\x20','in_progress','getFullYear','.md','setDate','percentage','\x20items\x20done\x20(','todo','UTC','4288424HpBWZm','title','utf-8','getUTCDate','2590581nGIAnM','getTime','filter','146620IGhHgl','writeFileSync','694647IkcBht','-\x20[[','-\x20[x]\x20','padStart',']]\x20—\x20no\x20items\x20linked','slice','planning','##\x20Reflection','5106100zmHHui','##\x20Goals\x20Progress','join','goals','weekly','status','6096408CrSaLD','backlog','review','push','fileName','total','basename',')\x20—\x20via\x20','referencedBy','short','transitiveDeps','getMonth','getGoalProgress','\x20_(','design_review','length','toLocaleDateString'];a206_0xa6d9=function(){return _0x2a6451;};return a206_0xa6d9();}export function writeWeeklyNote(_0x268b0b,_0x424c97){const _0x33803b=a206_0x538d,{fileName:_0x2481c4,content:_0x40d0d8}=generateWeeklyNote(_0x424c97),_0x2d3a40=a206_0x27048d[_0x33803b(0x9d)](_0x268b0b,'notes',_0x33803b(0x9f));a206_0x2948a9['mkdirSync'](_0x2d3a40,{'recursive':!![]});const _0x2397e9=a206_0x27048d[_0x33803b(0x9d)](_0x2d3a40,_0x2481c4);return a206_0x2948a9[_0x33803b(0x92)](_0x2397e9,_0x40d0d8,_0x33803b(0xcb)),{'filePath':_0x2397e9,'fileName':_0x2481c4};}
@@ -1 +1 @@
1
- (function(_0x1cd277,_0x31bac9){const _0x46034c=a207_0x75ba,_0x412793=_0x1cd277();while(!![]){try{const _0x50d853=-parseInt(_0x46034c(0x20f))/0x1+parseInt(_0x46034c(0x1fd))/0x2+-parseInt(_0x46034c(0x1f8))/0x3+parseInt(_0x46034c(0x1f1))/0x4+parseInt(_0x46034c(0x20e))/0x5+-parseInt(_0x46034c(0x205))/0x6*(-parseInt(_0x46034c(0x204))/0x7)+parseInt(_0x46034c(0x1ec))/0x8;if(_0x50d853===_0x31bac9)break;else _0x412793['push'](_0x412793['shift']());}catch(_0x13fdcf){_0x412793['push'](_0x412793['shift']());}}}(a207_0x4b54,0xcf3d6));import*as a207_0x5403e9 from'node:fs';import*as a207_0x26f9af from'node:path';import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';function a207_0x4b54(){const _0x3e5cba=['filePath','isSymbolicLink','resolvedKind','2168906btaSXT','entries','has','push','kind','resolvedPath','replace','14sulGgE','236514ffKqXP','find','some','readFileSync','.md','startsWith','indexOf','referencedBy','basename','7811890PcRQXu','1696938ItHKmN','folder','name','shift','get','workflows','1413568GAgwZL','sort','join','slice','trim','3790376jgAofv','slug','lastIndexOf','set','utf-8','match','length','3912501GxbRpS','lastIndex'];a207_0x4b54=function(){return _0x3e5cba;};return a207_0x4b54();}const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x3ddc86){const _0x221bdb=a207_0x75ba,_0x1d8046=[];let _0x396736;WIKI_LINK_REGEX[_0x221bdb(0x1f9)]=0x0;while((_0x396736=WIKI_LINK_REGEX['exec'](_0x3ddc86))!==null){const _0x514578=_0x396736[0x1],_0x5b12bd=_0x514578[_0x221bdb(0x20b)]('|');let _0x464328,_0x4ac3af;_0x5b12bd!==-0x1?(_0x464328=_0x514578['slice'](0x0,_0x5b12bd)[_0x221bdb(0x1f0)](),_0x4ac3af=_0x514578[_0x221bdb(0x1ef)](_0x5b12bd+0x1)[_0x221bdb(0x1f0)]()):_0x464328=_0x514578[_0x221bdb(0x1f0)](),_0x1d8046[_0x221bdb(0x200)]({'raw':_0x396736[0x0],'slug':_0x464328,'displayText':_0x4ac3af});}return _0x1d8046;}export function collectMarkdownFiles(_0xa1b790,_0x585194=0x0){const _0x4afafe=a207_0x75ba;if(_0x585194>0x5)return[];if(!a207_0x5403e9['existsSync'](_0xa1b790))return[];const _0x5831bb=[];try{for(const _0x4e48cc of a207_0x5403e9['readdirSync'](_0xa1b790,{'withFileTypes':!![]})){if(_0x4e48cc[_0x4afafe(0x211)][_0x4afafe(0x20a)]('.'))continue;if(_0x4e48cc[_0x4afafe(0x1fb)]())continue;const _0x2fac10=a207_0x26f9af[_0x4afafe(0x1ee)](_0xa1b790,_0x4e48cc['name']);if(_0x4e48cc['isDirectory']())_0x5831bb[_0x4afafe(0x200)](...collectMarkdownFiles(_0x2fac10,_0x585194+0x1));else _0x4e48cc[_0x4afafe(0x211)]['endsWith'](_0x4afafe(0x209))&&_0x5831bb['push'](_0x2fac10);}}catch{}return _0x5831bb;}export function buildFileIndex(_0x325d5f){const _0xc329e0=a207_0x75ba,_0x19df4c=new Map();for(const [_0x4156f1,_0x208398]of Object[_0xc329e0(0x1fe)](DOCUMENT_KIND_FOLDERS)){const _0x7c6377=a207_0x26f9af['join'](_0x325d5f,_0x208398),_0x4fbba7=collectMarkdownFiles(_0x7c6377);for(const _0x4e075d of _0x4fbba7){const _0x17dae3=a207_0x26f9af['basename'](_0x4e075d,'.md'),_0x56f2fa={'stem':_0x17dae3,'kind':_0x4156f1,'filePath':_0x4e075d,'folder':_0x208398},_0x2acca9=_0x19df4c[_0xc329e0(0x1ea)](_0x17dae3)||[];_0x2acca9[_0xc329e0(0x200)](_0x56f2fa),_0x19df4c[_0xc329e0(0x1f4)](_0x17dae3,_0x2acca9);}}return _0x19df4c;}function a207_0x75ba(_0x3793b5,_0x21ed88){_0x3793b5=_0x3793b5-0x1ea;const _0x4b54cd=a207_0x4b54();let _0x75ba1f=_0x4b54cd[_0x3793b5];return _0x75ba1f;}export function resolveWikiLinks(_0x3894a2,_0x40c401){const _0x39c539=a207_0x75ba,_0x318910=parseWikiLinks(_0x3894a2);for(const _0x5a0cd9 of _0x318910){const {slug:_0x5d3530}=_0x5a0cd9,_0x58dab6=_0x5d3530[_0x39c539(0x20b)]('/');if(_0x58dab6!==-0x1){const _0x38de78=_0x5d3530[_0x39c539(0x1ef)](0x0,_0x58dab6),_0x1a71f9=_0x5d3530[_0x39c539(0x1ef)](_0x58dab6+0x1),_0x487e4b=_0x40c401[_0x39c539(0x1ea)](_0x1a71f9);if(_0x487e4b){const _0x141734=_0x487e4b[_0x39c539(0x206)](_0x5550c9=>_0x5550c9[_0x39c539(0x210)]===_0x38de78);_0x141734&&(_0x5a0cd9[_0x39c539(0x202)]=_0x141734[_0x39c539(0x1fa)],_0x5a0cd9[_0x39c539(0x1fc)]=_0x141734['kind']);}continue;}const _0x499368=_0x40c401['get'](_0x5d3530);if(_0x499368&&_0x499368[_0x39c539(0x1f7)]>0x0){const _0x4d273d=_0x499368[_0x39c539(0x1ed)]((_0x3f21c0,_0x25bb08)=>(KIND_PRIORITY[_0x25bb08['kind']]||0x0)-(KIND_PRIORITY[_0x3f21c0[_0x39c539(0x201)]]||0x0));_0x5a0cd9[_0x39c539(0x202)]=_0x4d273d[0x0][_0x39c539(0x1fa)],_0x5a0cd9[_0x39c539(0x1fc)]=_0x4d273d[0x0][_0x39c539(0x201)];}}return _0x318910;}export function linkStem(_0x2f5d21){const _0x4790ae=a207_0x75ba,_0x5f0c70=_0x2f5d21[_0x4790ae(0x1f3)]('/');return _0x5f0c70!==-0x1?_0x2f5d21[_0x4790ae(0x1ef)](_0x5f0c70+0x1):_0x2f5d21;}function hasDocEntry(_0x27d3b9){const _0x2bb920=a207_0x75ba;return _0x27d3b9?.['some'](_0x2defdf=>isTrackableKind(_0x2defdf[_0x2bb920(0x201)]))??![];}export function findTransitiveDependencies(_0x200dfd,_0x101ea4,_0x10f36b){const _0x58bdb5=a207_0x75ba,_0xb620ad=new Map(),_0x52d0f3=new Set(_0x200dfd),_0x4fad82=[..._0x200dfd];function _0x811ef(_0x3b5452,_0x2f2b6a){const _0x58db7a=a207_0x75ba;for(const _0x2295e2 of parseWikiLinks(_0x2f2b6a)){const _0x759af1=_0x2295e2['slug'][_0x58db7a(0x20b)]('/');if(_0x759af1!==-0x1){const _0xde0d05=_0x2295e2[_0x58db7a(0x1f2)][_0x58db7a(0x1ef)](0x0,_0x759af1);if(_0xde0d05==='templates'||_0xde0d05===_0x58db7a(0x1eb))continue;}const _0x5f5899=linkStem(_0x2295e2[_0x58db7a(0x1f2)]);if(!hasDocEntry(_0x101ea4['get'](_0x5f5899)))continue;if(!_0x52d0f3[_0x58db7a(0x1ff)](_0x5f5899))_0x52d0f3['add'](_0x5f5899),_0x4fad82[_0x58db7a(0x200)](_0x5f5899),_0xb620ad[_0x58db7a(0x1f4)](_0x5f5899,{'referencedBy':[_0x3b5452]});else{if(_0xb620ad[_0x58db7a(0x1ff)](_0x5f5899)){const _0x4b7e70=_0xb620ad[_0x58db7a(0x1ea)](_0x5f5899);!_0x4b7e70['referencedBy']['includes'](_0x3b5452)&&_0x4b7e70[_0x58db7a(0x20c)][_0x58db7a(0x200)](_0x3b5452);}}}}while(_0x4fad82[_0x58bdb5(0x1f7)]>0x0){const _0x567316=_0x4fad82[_0x58bdb5(0x212)](),_0x3708b0=_0x10f36b(_0x567316);if(_0x3708b0)_0x811ef(_0x567316,_0x3708b0);}return _0xb620ad;}export function getBacklinks(_0x2118a0,_0x462edc){const _0x57837b=a207_0x75ba,_0x4d940f=[];for(const [_0x19d64b,_0x8a6876]of Object[_0x57837b(0x1fe)](DOCUMENT_KIND_FOLDERS)){const _0x5ae0b5=a207_0x26f9af[_0x57837b(0x1ee)](_0x462edc,_0x8a6876),_0x5ca50c=collectMarkdownFiles(_0x5ae0b5);for(const _0x49b141 of _0x5ca50c){const _0x31a9cf=a207_0x5403e9[_0x57837b(0x208)](_0x49b141,_0x57837b(0x1f5)),_0x466af9=parseWikiLinks(_0x31a9cf),_0x291a94=_0x466af9[_0x57837b(0x207)](_0x4fbeff=>{const _0x26929f=_0x57837b,_0x330082=_0x4fbeff[_0x26929f(0x1f2)][_0x26929f(0x20b)]('/'),_0x12002e=_0x330082!==-0x1?_0x4fbeff[_0x26929f(0x1f2)][_0x26929f(0x1ef)](_0x330082+0x1):_0x4fbeff[_0x26929f(0x1f2)];return _0x12002e===_0x2118a0;});if(_0x291a94){const _0x34034c=_0x31a9cf[_0x57837b(0x1f6)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x46dfd5=a207_0x26f9af[_0x57837b(0x20d)](_0x49b141),_0x55ab10=_0x34034c?_0x34034c[0x1][_0x57837b(0x203)](/^['"]|['"]$/g,''):_0x46dfd5;_0x4d940f[_0x57837b(0x200)]({'filePath':_0x49b141,'kind':_0x19d64b,'title':_0x55ab10});}}}return _0x4d940f;}
1
+ (function(_0x5f4288,_0x3d3c47){const _0xe29128=a207_0xf889,_0x52801c=_0x5f4288();while(!![]){try{const _0x9850d9=parseInt(_0xe29128(0x76))/0x1*(-parseInt(_0xe29128(0x6e))/0x2)+parseInt(_0xe29128(0x7e))/0x3+parseInt(_0xe29128(0x90))/0x4+parseInt(_0xe29128(0x71))/0x5*(-parseInt(_0xe29128(0x7f))/0x6)+-parseInt(_0xe29128(0x69))/0x7+-parseInt(_0xe29128(0x6b))/0x8*(-parseInt(_0xe29128(0x79))/0x9)+parseInt(_0xe29128(0x75))/0xa*(parseInt(_0xe29128(0x8c))/0xb);if(_0x9850d9===_0x3d3c47)break;else _0x52801c['push'](_0x52801c['shift']());}catch(_0x19fa2f){_0x52801c['push'](_0x52801c['shift']());}}}(a207_0x2f5d,0x5aca4));import*as a207_0x406a85 from'node:fs';import*as a207_0x2ae3ce from'node:path';function a207_0x2f5d(){const _0x335e9b=['join','slice','517vWlHff','utf-8','exec','slug','18732KZonHl','.md','readdirSync','isSymbolicLink','length','replace','set','filePath','resolvedPath','name','1188383WLydgA','isDirectory','8iLXMsT','kind','trim','76WCMCVs','templates','folder','5iARPws','entries','lastIndexOf','endsWith','71240srevYx','17407RQESRW','has','lastIndex','6305643iKhakB','shift','push','match','indexOf','961272dYpWyI','944706sIEcsH','existsSync','readFileSync','resolvedKind','startsWith','some','referencedBy','sort','get','find','add'];a207_0x2f5d=function(){return _0x335e9b;};return a207_0x2f5d();}import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x2a24c1){const _0x5a4535=a207_0xf889,_0x350d39=[];let _0x20f540;WIKI_LINK_REGEX[_0x5a4535(0x78)]=0x0;while((_0x20f540=WIKI_LINK_REGEX[_0x5a4535(0x8e)](_0x2a24c1))!==null){const _0x4fbc12=_0x20f540[0x1],_0x18ee02=_0x4fbc12['indexOf']('|');let _0x3c63a2,_0x3b1cf4;_0x18ee02!==-0x1?(_0x3c63a2=_0x4fbc12[_0x5a4535(0x8b)](0x0,_0x18ee02)['trim'](),_0x3b1cf4=_0x4fbc12[_0x5a4535(0x8b)](_0x18ee02+0x1)[_0x5a4535(0x6d)]()):_0x3c63a2=_0x4fbc12[_0x5a4535(0x6d)](),_0x350d39['push']({'raw':_0x20f540[0x0],'slug':_0x3c63a2,'displayText':_0x3b1cf4});}return _0x350d39;}function a207_0xf889(_0x427ce0,_0x66ffba){_0x427ce0=_0x427ce0-0x65;const _0x2f5d94=a207_0x2f5d();let _0xf8899e=_0x2f5d94[_0x427ce0];return _0xf8899e;}export function collectMarkdownFiles(_0x40bd28,_0x5a7459=0x0){const _0x1f3b46=a207_0xf889;if(_0x5a7459>0x5)return[];if(!a207_0x406a85[_0x1f3b46(0x80)](_0x40bd28))return[];const _0x3615b5=[];try{for(const _0x366ad6 of a207_0x406a85[_0x1f3b46(0x92)](_0x40bd28,{'withFileTypes':!![]})){if(_0x366ad6['name'][_0x1f3b46(0x83)]('.'))continue;if(_0x366ad6[_0x1f3b46(0x93)]())continue;const _0x444646=a207_0x2ae3ce[_0x1f3b46(0x8a)](_0x40bd28,_0x366ad6[_0x1f3b46(0x68)]);if(_0x366ad6[_0x1f3b46(0x6a)]())_0x3615b5['push'](...collectMarkdownFiles(_0x444646,_0x5a7459+0x1));else _0x366ad6[_0x1f3b46(0x68)][_0x1f3b46(0x74)](_0x1f3b46(0x91))&&_0x3615b5[_0x1f3b46(0x7b)](_0x444646);}}catch{}return _0x3615b5;}export function buildFileIndex(_0x2ee8bd){const _0x477ddc=a207_0xf889,_0x4b4c02=new Map();for(const [_0x52b9a5,_0x2b9ae1]of Object[_0x477ddc(0x72)](DOCUMENT_KIND_FOLDERS)){const _0xa36191=a207_0x2ae3ce['join'](_0x2ee8bd,_0x2b9ae1),_0x55a16f=collectMarkdownFiles(_0xa36191);for(const _0x5c2ffc of _0x55a16f){const _0x274d69=a207_0x2ae3ce['basename'](_0x5c2ffc,_0x477ddc(0x91)),_0x3e376e={'stem':_0x274d69,'kind':_0x52b9a5,'filePath':_0x5c2ffc,'folder':_0x2b9ae1},_0x40f3b9=_0x4b4c02[_0x477ddc(0x87)](_0x274d69)||[];_0x40f3b9[_0x477ddc(0x7b)](_0x3e376e),_0x4b4c02[_0x477ddc(0x65)](_0x274d69,_0x40f3b9);}}return _0x4b4c02;}export function resolveWikiLinks(_0x1b5667,_0x26640f){const _0x1c7e77=a207_0xf889,_0x416c32=parseWikiLinks(_0x1b5667);for(const _0x426cf1 of _0x416c32){const {slug:_0x1da80f}=_0x426cf1,_0x4c489f=_0x1da80f['indexOf']('/');if(_0x4c489f!==-0x1){const _0x5811b5=_0x1da80f['slice'](0x0,_0x4c489f),_0x196e99=_0x1da80f[_0x1c7e77(0x8b)](_0x4c489f+0x1),_0x22bf0f=_0x26640f[_0x1c7e77(0x87)](_0x196e99);if(_0x22bf0f){const _0x477a88=_0x22bf0f[_0x1c7e77(0x88)](_0x40c159=>_0x40c159[_0x1c7e77(0x70)]===_0x5811b5);_0x477a88&&(_0x426cf1[_0x1c7e77(0x67)]=_0x477a88[_0x1c7e77(0x66)],_0x426cf1[_0x1c7e77(0x82)]=_0x477a88[_0x1c7e77(0x6c)]);}continue;}const _0x363adc=_0x26640f['get'](_0x1da80f);if(_0x363adc&&_0x363adc['length']>0x0){const _0xa14e91=_0x363adc[_0x1c7e77(0x86)]((_0x402282,_0x2f56bb)=>(KIND_PRIORITY[_0x2f56bb[_0x1c7e77(0x6c)]]||0x0)-(KIND_PRIORITY[_0x402282[_0x1c7e77(0x6c)]]||0x0));_0x426cf1[_0x1c7e77(0x67)]=_0xa14e91[0x0][_0x1c7e77(0x66)],_0x426cf1[_0x1c7e77(0x82)]=_0xa14e91[0x0][_0x1c7e77(0x6c)];}}return _0x416c32;}export function linkStem(_0x4109ce){const _0x58eae9=a207_0xf889,_0x20c2a8=_0x4109ce[_0x58eae9(0x73)]('/');return _0x20c2a8!==-0x1?_0x4109ce['slice'](_0x20c2a8+0x1):_0x4109ce;}function hasDocEntry(_0x5bc71c){const _0x5dee17=a207_0xf889;return _0x5bc71c?.[_0x5dee17(0x84)](_0x577c11=>isTrackableKind(_0x577c11[_0x5dee17(0x6c)]))??![];}export function findTransitiveDependencies(_0x2ba199,_0x2acb14,_0x40572c){const _0x5b29f0=a207_0xf889,_0x133ca0=new Map(),_0x24c829=new Set(_0x2ba199),_0x1bcc2c=[..._0x2ba199];function _0x3bd5d9(_0x220c01,_0x28b5cf){const _0x1d1c11=a207_0xf889;for(const _0x7b279c of parseWikiLinks(_0x28b5cf)){const _0x356f80=_0x7b279c[_0x1d1c11(0x8f)][_0x1d1c11(0x7d)]('/');if(_0x356f80!==-0x1){const _0x1c71ad=_0x7b279c['slug']['slice'](0x0,_0x356f80);if(_0x1c71ad===_0x1d1c11(0x6f)||_0x1c71ad==='workflows')continue;}const _0x2c4a4b=linkStem(_0x7b279c['slug']);if(!hasDocEntry(_0x2acb14[_0x1d1c11(0x87)](_0x2c4a4b)))continue;if(!_0x24c829[_0x1d1c11(0x77)](_0x2c4a4b))_0x24c829[_0x1d1c11(0x89)](_0x2c4a4b),_0x1bcc2c[_0x1d1c11(0x7b)](_0x2c4a4b),_0x133ca0[_0x1d1c11(0x65)](_0x2c4a4b,{'referencedBy':[_0x220c01]});else{if(_0x133ca0[_0x1d1c11(0x77)](_0x2c4a4b)){const _0x19db2a=_0x133ca0[_0x1d1c11(0x87)](_0x2c4a4b);!_0x19db2a[_0x1d1c11(0x85)]['includes'](_0x220c01)&&_0x19db2a[_0x1d1c11(0x85)]['push'](_0x220c01);}}}}while(_0x1bcc2c[_0x5b29f0(0x94)]>0x0){const _0x5d263f=_0x1bcc2c[_0x5b29f0(0x7a)](),_0x150531=_0x40572c(_0x5d263f);if(_0x150531)_0x3bd5d9(_0x5d263f,_0x150531);}return _0x133ca0;}export function getBacklinks(_0x211e29,_0x126533){const _0x327293=a207_0xf889,_0x3fe9f8=[];for(const [_0x3fc3eb,_0xcf3222]of Object[_0x327293(0x72)](DOCUMENT_KIND_FOLDERS)){const _0x202128=a207_0x2ae3ce[_0x327293(0x8a)](_0x126533,_0xcf3222),_0x3e215f=collectMarkdownFiles(_0x202128);for(const _0x3453fb of _0x3e215f){const _0x4c6532=a207_0x406a85[_0x327293(0x81)](_0x3453fb,_0x327293(0x8d)),_0x318c7e=parseWikiLinks(_0x4c6532),_0x147f24=_0x318c7e[_0x327293(0x84)](_0x27aa9f=>{const _0x39e26b=_0x327293,_0x3a6cb0=_0x27aa9f[_0x39e26b(0x8f)]['indexOf']('/'),_0x50becc=_0x3a6cb0!==-0x1?_0x27aa9f[_0x39e26b(0x8f)]['slice'](_0x3a6cb0+0x1):_0x27aa9f['slug'];return _0x50becc===_0x211e29;});if(_0x147f24){const _0x227ce6=_0x4c6532[_0x327293(0x7c)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0xed098c=a207_0x2ae3ce['basename'](_0x3453fb),_0x459eea=_0x227ce6?_0x227ce6[0x1][_0x327293(0x95)](/^['"]|['"]$/g,''):_0xed098c;_0x3fe9f8[_0x327293(0x7b)]({'filePath':_0x3453fb,'kind':_0x3fc3eb,'title':_0x459eea});}}}return _0x3fe9f8;}
@@ -1 +1 @@
1
- function a208_0x327f(){const _0x2ee0ec=['2151095qKikhQ','6IPkRJC','exitCode','8176vvqjqb','verify','102842faCslc','20SlLLCE','fail','2465969ZLwGQj','site','fetch','push','setup','3890888cTDZYr','run','3022197eVkVKb','http','options','reset','runSequence','ERROR','6FYIalO','originalFetch','log','join','test-api-key-id/test-api-key-secret','8991603SzaypR','error','3824wftRNr','args','map','warn'];a208_0x327f=function(){return _0x2ee0ec;};return a208_0x327f();}const a208_0x40d134=a208_0x3704;(function(_0x41ef38,_0x4f0325){const _0x510b4f=a208_0x3704,_0x2c8738=_0x41ef38();while(!![]){try{const _0x440703=-parseInt(_0x510b4f(0x16b))/0x1*(-parseInt(_0x510b4f(0x17b))/0x2)+parseInt(_0x510b4f(0x185))/0x3+parseInt(_0x510b4f(0x183))/0x4+parseInt(_0x510b4f(0x176))/0x5*(-parseInt(_0x510b4f(0x177))/0x6)+-parseInt(_0x510b4f(0x179))/0x7*(-parseInt(_0x510b4f(0x172))/0x8)+-parseInt(_0x510b4f(0x170))/0x9+parseInt(_0x510b4f(0x17c))/0xa*(-parseInt(_0x510b4f(0x17e))/0xb);if(_0x440703===_0x4f0325)break;else _0x2c8738['push'](_0x2c8738['shift']());}catch(_0x4fcb4d){_0x2c8738['push'](_0x2c8738['shift']());}}}(a208_0x327f,0xeca5b));function a208_0x3704(_0x366ad7,_0x1bcbe2){_0x366ad7=_0x366ad7-0x168;const _0x327f0c=a208_0x327f();let _0x37041f=_0x327f0c[_0x366ad7];return _0x37041f;}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a208_0x40d134(0x186)];[a208_0x40d134(0x16c)];constructor(){const _0x4d429b=a208_0x40d134;this[_0x4d429b(0x186)]=createHTTPMock(),this['originalFetch']=global[_0x4d429b(0x180)];}[a208_0x40d134(0x182)](){const _0x4aefa1=a208_0x40d134;this[_0x4aefa1(0x16c)]=global[_0x4aefa1(0x180)],global['fetch']=this['http']['createFetch']();}['teardown'](_0x3a0267){const _0x547ddd=a208_0x40d134;try{_0x3a0267?.[_0x547ddd(0x17d)]&&this[_0x547ddd(0x186)][_0x547ddd(0x17a)](_0x3a0267);}finally{global['fetch']=this[_0x547ddd(0x16c)],this[_0x547ddd(0x186)][_0x547ddd(0x168)]();}}async[a208_0x40d134(0x184)](_0x128383,_0x34862b={}){const _0x4a1dcf=a208_0x40d134,_0x5185b8=[],_0x3855b9=[],_0x31bd0a=console[_0x4a1dcf(0x16d)],_0x41e767=console[_0x4a1dcf(0x171)],_0x218550=console[_0x4a1dcf(0x175)];console['log']=(..._0x5d9a14)=>{const _0x36c7ec=_0x4a1dcf;_0x5185b8[_0x36c7ec(0x181)](_0x5d9a14[_0x36c7ec(0x174)](String)[_0x36c7ec(0x16e)]('\x20'));},console[_0x4a1dcf(0x171)]=(..._0x1a1441)=>{const _0x23e89b=_0x4a1dcf;_0x3855b9[_0x23e89b(0x181)](_0x1a1441['map'](String)['join']('\x20'));},console[_0x4a1dcf(0x175)]=(..._0x99f225)=>{const _0x1e4c29=_0x4a1dcf;_0x3855b9[_0x1e4c29(0x181)](_0x99f225[_0x1e4c29(0x174)](String)[_0x1e4c29(0x16e)]('\x20'));};try{const _0x477b38=new TDX({'site':_0x34862b[_0x4a1dcf(0x187)]?.[_0x4a1dcf(0x17f)]??'us01','apiKey':_0x4a1dcf(0x16f),'logLevel':LogLevel[_0x4a1dcf(0x16a)]}),_0x48c206={'options':createTestGlobalOptions(_0x34862b['options']),'args':_0x34862b[_0x4a1dcf(0x173)]??[],'tdx':_0x477b38},_0x3693d2=new _0x128383(),_0x2731c1=await _0x3693d2[_0x4a1dcf(0x184)](_0x48c206);return{'exitCode':_0x2731c1,'stdout':_0x5185b8,'stderr':_0x3855b9};}finally{console[_0x4a1dcf(0x16d)]=_0x31bd0a,console['error']=_0x41e767,console[_0x4a1dcf(0x175)]=_0x218550;}}async[a208_0x40d134(0x169)](_0xea3887){const _0x5ac39d=a208_0x40d134,_0x62a487=[];for(const {command:_0x4e931e,options:_0x56a5e1}of _0xea3887){const _0x5b0c3c=await this[_0x5ac39d(0x184)](_0x4e931e,_0x56a5e1);_0x62a487[_0x5ac39d(0x181)](_0x5b0c3c);if(_0x5b0c3c[_0x5ac39d(0x178)]!==0x0)break;}return _0x62a487;}}export function createCommandRunner(){return new CommandRunner();}
1
+ const a208_0x3606a2=a208_0x55f8;(function(_0x3b08c8,_0x515148){const _0xcb30da=a208_0x55f8,_0x200eba=_0x3b08c8();while(!![]){try{const _0x240205=-parseInt(_0xcb30da(0x12c))/0x1+parseInt(_0xcb30da(0x137))/0x2+-parseInt(_0xcb30da(0x128))/0x3*(parseInt(_0xcb30da(0x11d))/0x4)+-parseInt(_0xcb30da(0x12d))/0x5+-parseInt(_0xcb30da(0x131))/0x6+-parseInt(_0xcb30da(0x11b))/0x7*(-parseInt(_0xcb30da(0x134))/0x8)+parseInt(_0xcb30da(0x122))/0x9;if(_0x240205===_0x515148)break;else _0x200eba['push'](_0x200eba['shift']());}catch(_0x3894ad){_0x200eba['push'](_0x200eba['shift']());}}}(a208_0x1553,0x884d8));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a208_0x55f8(_0x57b0be,_0x1ced36){_0x57b0be=_0x57b0be-0x11b;const _0x155377=a208_0x1553();let _0x55f85f=_0x155377[_0x57b0be];return _0x55f85f;}function a208_0x1553(){const _0x333a8b=['warn','createFetch','1447152RnGVSV','site','setup','1266744mbFpzT','teardown','us01','33328JlixMw','join','map','28iEuzmr','ERROR','52248CNScJx','verify','log','push','originalFetch','14576184ARwuxN','test-api-key-id/test-api-key-secret','options','http','error','run','213DTXQzn','fetch','reset','args','127227xrApwN','2077475KYhApP','runSequence'];a208_0x1553=function(){return _0x333a8b;};return a208_0x1553();}export class CommandRunner{['http'];[a208_0x3606a2(0x121)];constructor(){const _0x28121d=a208_0x3606a2;this[_0x28121d(0x125)]=createHTTPMock(),this[_0x28121d(0x121)]=global[_0x28121d(0x129)];}[a208_0x3606a2(0x133)](){const _0x359d6a=a208_0x3606a2;this['originalFetch']=global[_0x359d6a(0x129)],global[_0x359d6a(0x129)]=this['http'][_0x359d6a(0x130)]();}[a208_0x3606a2(0x135)](_0x3d5d41){const _0x1a6e7b=a208_0x3606a2;try{_0x3d5d41?.['fail']&&this[_0x1a6e7b(0x125)][_0x1a6e7b(0x11e)](_0x3d5d41);}finally{global[_0x1a6e7b(0x129)]=this['originalFetch'],this[_0x1a6e7b(0x125)][_0x1a6e7b(0x12a)]();}}async[a208_0x3606a2(0x127)](_0x25126e,_0x23e35={}){const _0x548d7c=a208_0x3606a2,_0x2bb342=[],_0x19697f=[],_0xa33599=console[_0x548d7c(0x11f)],_0x178fbb=console['error'],_0x11a0b3=console[_0x548d7c(0x12f)];console['log']=(..._0x3560b6)=>{const _0x31769b=_0x548d7c;_0x2bb342['push'](_0x3560b6[_0x31769b(0x139)](String)[_0x31769b(0x138)]('\x20'));},console[_0x548d7c(0x126)]=(..._0x541bbd)=>{const _0x2495a3=_0x548d7c;_0x19697f['push'](_0x541bbd[_0x2495a3(0x139)](String)[_0x2495a3(0x138)]('\x20'));},console[_0x548d7c(0x12f)]=(..._0x1032e)=>{const _0x1a2939=_0x548d7c;_0x19697f[_0x1a2939(0x120)](_0x1032e[_0x1a2939(0x139)](String)[_0x1a2939(0x138)]('\x20'));};try{const _0x91d912=new TDX({'site':_0x23e35[_0x548d7c(0x124)]?.[_0x548d7c(0x132)]??_0x548d7c(0x136),'apiKey':_0x548d7c(0x123),'logLevel':LogLevel[_0x548d7c(0x11c)]}),_0xccd3fe={'options':createTestGlobalOptions(_0x23e35[_0x548d7c(0x124)]),'args':_0x23e35[_0x548d7c(0x12b)]??[],'tdx':_0x91d912},_0x2e76e6=new _0x25126e(),_0x42310c=await _0x2e76e6[_0x548d7c(0x127)](_0xccd3fe);return{'exitCode':_0x42310c,'stdout':_0x2bb342,'stderr':_0x19697f};}finally{console[_0x548d7c(0x11f)]=_0xa33599,console['error']=_0x178fbb,console[_0x548d7c(0x12f)]=_0x11a0b3;}}async[a208_0x3606a2(0x12e)](_0x8bb12d){const _0x152e05=a208_0x3606a2,_0x33419c=[];for(const {command:_0x487859,options:_0x15c881}of _0x8bb12d){const _0x2a9ec7=await this[_0x152e05(0x127)](_0x487859,_0x15c881);_0x33419c[_0x152e05(0x120)](_0x2a9ec7);if(_0x2a9ec7['exitCode']!==0x0)break;}return _0x33419c;}}export function createCommandRunner(){return new CommandRunner();}
@@ -1 +1 @@
1
- (function(_0x203eb2,_0xa3cda5){const _0x3e8821=a209_0x45ff,_0x42925f=_0x203eb2();while(!![]){try{const _0x3434b4=parseInt(_0x3e8821(0x1e0))/0x1+parseInt(_0x3e8821(0x1da))/0x2+-parseInt(_0x3e8821(0x1d2))/0x3*(parseInt(_0x3e8821(0x1e5))/0x4)+-parseInt(_0x3e8821(0x1db))/0x5*(parseInt(_0x3e8821(0x1de))/0x6)+-parseInt(_0x3e8821(0x1df))/0x7+-parseInt(_0x3e8821(0x1cd))/0x8*(parseInt(_0x3e8821(0x1d4))/0x9)+parseInt(_0x3e8821(0x1d5))/0xa;if(_0x3434b4===_0xa3cda5)break;else _0x42925f['push'](_0x42925f['shift']());}catch(_0x3d90fc){_0x42925f['push'](_0x42925f['shift']());}}}(a209_0x2d30,0x894ac));import{vi}from'vitest';function a209_0x2d30(){const _0x55e2a9=['1652VUQHJB','tdx-test.log','DEBUG','tdx','warn','init','args','us01','10024uLVlKb','options','workflow','segment','test-api-key','4146GrKvDO','30000','3591tIsmnX','19403440iEVfew','reset','log','push','map','1610992Fcnatw','70945hYciPT','join','query','246hjrHtH','7495768jsnOPe','539794dFYlOS','test-api-key-id/test-api-key-secret','user','ERROR','error'];a209_0x2d30=function(){return _0x55e2a9;};return a209_0x2d30();}import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x22c347){const _0x348eb6=a209_0x45ff;return{'site':_0x348eb6(0x1cc),'apiKey':_0x348eb6(0x1e1),'logLevel':LogLevel[_0x348eb6(0x1e3)],..._0x22c347};}export function createTestGlobalOptions(_0x569cff){const _0xdc6507=a209_0x45ff;return{'site':'us01','format':'table','noColor':!![],'limit':0x64,'verbose':![],'timeout':_0xdc6507(0x1d3),'dryRun':![],'yes':![],'logLevel':LogLevel['ERROR'],..._0x569cff};}export async function initTestLogger(){const _0x3d5106=a209_0x45ff;Logger[_0x3d5106(0x1d6)]();const _0x273014=join(getGlobalCacheDir(),'logs',_0x3d5106(0x1e6));await Logger[_0x3d5106(0x1ca)]({'defaultLevel':LogLevel[_0x3d5106(0x1e7)],'handlers':[new FileHandler({'filePath':_0x273014,'rotate':![]})]});}function a209_0x45ff(_0x18be61,_0x523a70){_0x18be61=_0x18be61-0x1c9;const _0x2d3023=a209_0x2d30();let _0x45fff9=_0x2d3023[_0x18be61];return _0x45fff9;}export function resetTestLogger(){const _0x3539c9=a209_0x45ff;Logger[_0x3539c9(0x1d6)]();}export function createMockTDX(_0x5b05c4){const _0x46acb2=a209_0x45ff;return{'context':{'site':_0x46acb2(0x1cc),'apiKey':_0x46acb2(0x1d1),'logLevel':LogLevel[_0x46acb2(0x1e3)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x5b05c4?.[_0x46acb2(0x1dd)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5b05c4?.[_0x46acb2(0x1d0)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x5b05c4?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x5b05c4?.[_0x46acb2(0x1cf)]},'user':{'show':vi['fn'](),..._0x5b05c4?.[_0x46acb2(0x1e2)]},'api':{'request':vi['fn'](),..._0x5b05c4?.['api']},..._0x5b05c4};}export function createTestCommandContext(_0x56f141){const _0x5c3278=a209_0x45ff,_0x1b3b0b=createTestGlobalOptions(_0x56f141?.[_0x5c3278(0x1ce)]),_0x58a2c5=_0x56f141?.[_0x5c3278(0x1e8)]??createMockTDX();return{'options':_0x1b3b0b,'args':_0x56f141?.[_0x5c3278(0x1cb)]??[],'tdx':_0x58a2c5};}export function captureConsole(){const _0x3ba5a3=a209_0x45ff,_0x372378=[],_0x44e37b=[],_0x5cab0c=console[_0x3ba5a3(0x1d7)],_0x582da9=console[_0x3ba5a3(0x1e4)],_0x27a3d2=console[_0x3ba5a3(0x1c9)];return console[_0x3ba5a3(0x1d7)]=(..._0x441e1b)=>{const _0x188069=_0x3ba5a3;_0x372378[_0x188069(0x1d8)](_0x441e1b[_0x188069(0x1d9)](String)[_0x188069(0x1dc)]('\x20'));},console[_0x3ba5a3(0x1e4)]=(..._0xc86a9f)=>{const _0x310216=_0x3ba5a3;_0x44e37b[_0x310216(0x1d8)](_0xc86a9f['map'](String)['join']('\x20'));},console['warn']=(..._0x394896)=>{const _0xa3c40=_0x3ba5a3;_0x44e37b[_0xa3c40(0x1d8)](_0x394896[_0xa3c40(0x1d9)](String)[_0xa3c40(0x1dc)]('\x20'));},{'stdout':_0x372378,'stderr':_0x44e37b,'restore':()=>{const _0x291cc3=_0x3ba5a3;console[_0x291cc3(0x1d7)]=_0x5cab0c,console[_0x291cc3(0x1e4)]=_0x582da9,console[_0x291cc3(0x1c9)]=_0x27a3d2;}};}
1
+ (function(_0x5e937c,_0x37d6d8){const _0x4acb1a=a209_0x42dc,_0x39060b=_0x5e937c();while(!![]){try{const _0x3e609a=parseInt(_0x4acb1a(0x1d7))/0x1*(-parseInt(_0x4acb1a(0x1d0))/0x2)+parseInt(_0x4acb1a(0x1da))/0x3*(-parseInt(_0x4acb1a(0x1cd))/0x4)+parseInt(_0x4acb1a(0x1e1))/0x5*(-parseInt(_0x4acb1a(0x1c2))/0x6)+parseInt(_0x4acb1a(0x1e0))/0x7*(-parseInt(_0x4acb1a(0x1d2))/0x8)+-parseInt(_0x4acb1a(0x1d9))/0x9+parseInt(_0x4acb1a(0x1c4))/0xa+-parseInt(_0x4acb1a(0x1e4))/0xb*(-parseInt(_0x4acb1a(0x1de))/0xc);if(_0x3e609a===_0x37d6d8)break;else _0x39060b['push'](_0x39060b['shift']());}catch(_0x523de7){_0x39060b['push'](_0x39060b['shift']());}}}(a209_0x298e,0x41cb3));function a209_0x42dc(_0x4003b0,_0x21e21a){_0x4003b0=_0x4003b0-0x1c2;const _0x298eaf=a209_0x298e();let _0x42dc1d=_0x298eaf[_0x4003b0];return _0x42dc1d;}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(_0x178116){const _0x59ecc4=a209_0x42dc;return{'site':'us01','apiKey':_0x59ecc4(0x1ce),'logLevel':LogLevel[_0x59ecc4(0x1cf)],..._0x178116};}export function createTestGlobalOptions(_0x57cae4){const _0x471403=a209_0x42dc;return{'site':_0x471403(0x1db),'format':_0x471403(0x1df),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x471403(0x1d5),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x471403(0x1cf)],..._0x57cae4};}export async function initTestLogger(){const _0x106495=a209_0x42dc;Logger[_0x106495(0x1c3)]();const _0x2d7879=join(getGlobalCacheDir(),'logs',_0x106495(0x1c7));await Logger[_0x106495(0x1d6)]({'defaultLevel':LogLevel[_0x106495(0x1c5)],'handlers':[new FileHandler({'filePath':_0x2d7879,'rotate':![]})]});}export function resetTestLogger(){const _0x499d6d=a209_0x42dc;Logger[_0x499d6d(0x1c3)]();}export function createMockTDX(_0x41322c){const _0x37dc93=a209_0x42dc;return{'context':{'site':_0x37dc93(0x1db),'apiKey':_0x37dc93(0x1e3),'logLevel':LogLevel[_0x37dc93(0x1cf)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x41322c?.['query']},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x41322c?.[_0x37dc93(0x1d1)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x41322c?.[_0x37dc93(0x1cc)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x41322c?.[_0x37dc93(0x1cb)]},'user':{'show':vi['fn'](),..._0x41322c?.[_0x37dc93(0x1c9)]},'api':{'request':vi['fn'](),..._0x41322c?.[_0x37dc93(0x1ca)]},..._0x41322c};}export function createTestCommandContext(_0x3ff97b){const _0x25fe05=a209_0x42dc,_0x57c0a1=createTestGlobalOptions(_0x3ff97b?.['options']),_0x4b2648=_0x3ff97b?.[_0x25fe05(0x1c6)]??createMockTDX();return{'options':_0x57c0a1,'args':_0x3ff97b?.[_0x25fe05(0x1d8)]??[],'tdx':_0x4b2648};}function a209_0x298e(){const _0x243147=['push','test-api-key','10624757pFvtHj','6mubjTU','reset','5221990YpiYuT','DEBUG','tdx','tdx-test.log','map','user','api','workflow','journey','156zhSffH','test-api-key-id/test-api-key-secret','ERROR','5626ngwLWP','segment','177304NynlPs','warn','join','30000','init','24rbJoRc','args','1763352BjrZdl','23361XZdcUy','us01','error','log','12anndiK','table','91ILqjfq','1816715qSNHMZ'];a209_0x298e=function(){return _0x243147;};return a209_0x298e();}export function captureConsole(){const _0x1e1afd=a209_0x42dc,_0x969db0=[],_0x3d7911=[],_0x957400=console[_0x1e1afd(0x1dd)],_0x4bf464=console[_0x1e1afd(0x1dc)],_0x4a870a=console[_0x1e1afd(0x1d3)];return console['log']=(..._0x2d7ec0)=>{const _0x31b07b=_0x1e1afd;_0x969db0[_0x31b07b(0x1e2)](_0x2d7ec0[_0x31b07b(0x1c8)](String)[_0x31b07b(0x1d4)]('\x20'));},console['error']=(..._0x52143b)=>{const _0x522a49=_0x1e1afd;_0x3d7911[_0x522a49(0x1e2)](_0x52143b[_0x522a49(0x1c8)](String)['join']('\x20'));},console[_0x1e1afd(0x1d3)]=(..._0x472cb5)=>{const _0x403278=_0x1e1afd;_0x3d7911['push'](_0x472cb5[_0x403278(0x1c8)](String)[_0x403278(0x1d4)]('\x20'));},{'stdout':_0x969db0,'stderr':_0x3d7911,'restore':()=>{const _0x3b3973=_0x1e1afd;console[_0x3b3973(0x1dd)]=_0x957400,console[_0x3b3973(0x1dc)]=_0x4bf464,console[_0x3b3973(0x1d3)]=_0x4a870a;}};}
@@ -1 +1 @@
1
- const a210_0x4d123f=a210_0x1df5;(function(_0x508366,_0x41880d){const _0x22dd5a=a210_0x1df5,_0x39a14a=_0x508366();while(!![]){try{const _0x3d3714=-parseInt(_0x22dd5a(0x120))/0x1*(-parseInt(_0x22dd5a(0x13d))/0x2)+parseInt(_0x22dd5a(0x147))/0x3*(-parseInt(_0x22dd5a(0x169))/0x4)+-parseInt(_0x22dd5a(0x174))/0x5+parseInt(_0x22dd5a(0x16d))/0x6+parseInt(_0x22dd5a(0x11d))/0x7*(parseInt(_0x22dd5a(0x12c))/0x8)+-parseInt(_0x22dd5a(0x16a))/0x9*(parseInt(_0x22dd5a(0x12d))/0xa)+parseInt(_0x22dd5a(0x17e))/0xb;if(_0x3d3714===_0x41880d)break;else _0x39a14a['push'](_0x39a14a['shift']());}catch(_0x2207c7){_0x39a14a['push'](_0x39a14a['shift']());}}}(a210_0x36cc,0x877f4));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x172),'permission':'administrator'},'withTables':{'name':a210_0x4d123f(0x139),'count':0x64,'created_at':a210_0x4d123f(0x142),'updated_at':a210_0x4d123f(0x149),'permission':a210_0x4d123f(0x150)}},'table':{'basic':{'id':0x3039,'name':'users','type':'log','schema':JSON['stringify']([['id',a210_0x4d123f(0x12b)],['time',a210_0x4d123f(0x128)],[a210_0x4d123f(0x176),a210_0x4d123f(0x12b)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':'events','type':a210_0x4d123f(0x178),'schema':JSON[a210_0x4d123f(0x118)]([[a210_0x4d123f(0x170),'string'],[a210_0x4d123f(0x134),a210_0x4d123f(0x128)],[a210_0x4d123f(0x14e),a210_0x4d123f(0x12b)],[a210_0x4d123f(0x141),'string'],[a210_0x4d123f(0x11f),a210_0x4d123f(0x167)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a210_0x4d123f(0x161),'description':a210_0x4d123f(0x166),'status':'active','master_table':{'database':a210_0x4d123f(0x15e),'table':a210_0x4d123f(0x13a)},'attributes':[{'name':a210_0x4d123f(0x175),'type':a210_0x4d123f(0x12b),'key':!![]},{'name':a210_0x4d123f(0x123),'type':a210_0x4d123f(0x12b)},{'name':'created_at','type':a210_0x4d123f(0x13f)}],'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x125)},'withBehaviors':{'id':a210_0x4d123f(0x14a),'name':'Customers\x20with\x20Behaviors','description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a210_0x4d123f(0x157),'master_table':{'database':a210_0x4d123f(0x15e),'table':a210_0x4d123f(0x158)},'behaviors':[{'name':'purchases','table':{'database':a210_0x4d123f(0x12a),'table':a210_0x4d123f(0x124)},'join_key':a210_0x4d123f(0x175)},{'name':a210_0x4d123f(0x177),'table':{'database':'events_db','table':a210_0x4d123f(0x15a)},'join_key':a210_0x4d123f(0x175)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x4d123f(0x125)}},'segment':{'basic':{'id':'cs-456789','name':a210_0x4d123f(0x17a),'description':a210_0x4d123f(0x159),'parent_segment_id':a210_0x4d123f(0x15f),'status':a210_0x4d123f(0x157),'rules':[{'type':a210_0x4d123f(0x154),'field':'last_login','operator':a210_0x4d123f(0x140),'value':'30d'}],'count':0x1388,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':a210_0x4d123f(0x137),'name':a210_0x4d123f(0x146),'description':a210_0x4d123f(0x144),'parent_segment_id':a210_0x4d123f(0x15f),'status':'active','rules':[{'type':a210_0x4d123f(0x154),'field':'last_login','operator':'TimeWithinPast','value':a210_0x4d123f(0x11a)},{'type':a210_0x4d123f(0x154),'field':a210_0x4d123f(0x163),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':'j-abc123','name':'Welcome\x20Journey','description':a210_0x4d123f(0x143),'status':'draft','version':0x1,'steps':[{'id':a210_0x4d123f(0x173),'type':'wait','duration':'1d'},{'id':a210_0x4d123f(0x13c),'type':a210_0x4d123f(0x11c),'activation_id':a210_0x4d123f(0x164)}],'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x125)},'withDecision':{'id':a210_0x4d123f(0x122),'name':a210_0x4d123f(0x17d),'description':'Journey\x20with\x20decision\x20point','status':a210_0x4d123f(0x157),'version':0x2,'steps':[{'id':a210_0x4d123f(0x173),'type':a210_0x4d123f(0x14b),'segment_id':a210_0x4d123f(0x17c),'yes_path':a210_0x4d123f(0x13c),'no_path':a210_0x4d123f(0x14d)},{'id':'step-2','type':a210_0x4d123f(0x11c),'activation_id':'act-email'},{'id':a210_0x4d123f(0x14d),'type':a210_0x4d123f(0x14c)}],'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x125)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a210_0x4d123f(0x168)},{'name':a210_0x4d123f(0x176),'type':a210_0x4d123f(0x168)},{'name':a210_0x4d123f(0x16f),'type':a210_0x4d123f(0x132)}],'data':[['user-1','Alice',0x64],[a210_0x4d123f(0x130),a210_0x4d123f(0x160),0xc8],[a210_0x4d123f(0x135),a210_0x4d123f(0x15d),0x96]]},'empty':{'schema':[{'name':'id','type':a210_0x4d123f(0x168)},{'name':'name','type':a210_0x4d123f(0x168)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a210_0x4d123f(0x132)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a210_0x4d123f(0x16c),'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x4d123f(0x125),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':'admin@example.com','created_at':'2023-01-01T00:00:00Z','updated_at':a210_0x4d123f(0x125),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a210_0x4d123f(0x119),'status':'success','query':a210_0x4d123f(0x13e),'start_at':'2024-01-15T10:00:00Z','end_at':a210_0x4d123f(0x12e),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':'test_db','status':a210_0x4d123f(0x15c),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a210_0x4d123f(0x117),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a210_0x4d123f(0x129),'database':a210_0x4d123f(0x119),'status':a210_0x4d123f(0x153),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a210_0x4d123f(0x171),'end_at':a210_0x4d123f(0x14f),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a210_0x4d123f(0x145),'name':a210_0x4d123f(0x12f),'project':'data_pipeline','revision':a210_0x4d123f(0x11e),'timezone':'UTC','schedule':{'cron':a210_0x4d123f(0x136)}},'withSessions':{'id':a210_0x4d123f(0x148),'name':'hourly_sync','project':'data_sync','revision':a210_0x4d123f(0x138),'timezone':a210_0x4d123f(0x152),'schedule':{'cron':a210_0x4d123f(0x126)},'last_session':{'id':'sess-111','status':a210_0x4d123f(0x156),'started_at':a210_0x4d123f(0x16b),'finished_at':a210_0x4d123f(0x133)}}},'apiError':{'unauthorized':{'errors':{'error':a210_0x4d123f(0x151),'message':a210_0x4d123f(0x151),'severity':a210_0x4d123f(0x153),'status_code':0x191}},'notFound':{'errors':{'error':a210_0x4d123f(0x131),'message':a210_0x4d123f(0x116),'severity':a210_0x4d123f(0x153),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a210_0x4d123f(0x15b),'title':'Forbidden','status':0x193,'detail':a210_0x4d123f(0x155),'instance':a210_0x4d123f(0x11b)}}};export function createDatabase(_0x4ff928){const _0x3bf7ec=a210_0x4d123f;return{...fixtures[_0x3bf7ec(0x179)][_0x3bf7ec(0x165)],..._0x4ff928};}function a210_0x1df5(_0x3cba6f,_0xb166db){_0x3cba6f=_0x3cba6f-0x116;const _0x36cce9=a210_0x36cc();let _0x1df5ca=_0x36cce9[_0x3cba6f];return _0x1df5ca;}function a210_0x36cc(){const _0x3f1d52=['step-3','user_id','2024-01-15T10:10:01Z','full_access','Invalid\x20API\x20key','America/Los_Angeles','error','attribute','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','success','active','customers','Users\x20active\x20in\x20the\x20last\x2030\x20days','pageviews','https://api.treasuredata.com/errors/forbidden','running','Charlie','cdp_db','ps-123456','Bob','Test\x20Parent\x20Segment','queryResult','lifetime_value','act-123','basic','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','map<string,string>','varchar','614556zUehmN','20214USVmdG','2024-01-15T09:00:00Z','test@example.com','5017428WLSpry','completed','count','event_id','2024-01-15T10:10:00Z','2024-01-01T00:00:00Z','step-1','1648870FDCRwm','customer_id','name','page_views','log','database','Active\x20Users','table','cs-456789','Purchase\x20Reminder','10793310Tynpce','The\x20requested\x20resource\x20does\x20not\x20exist','2024-01-15T10:05:00Z','stringify','test_db','30d','/v3/database/list','activation','6802481VNdGxT','abc123','properties','15508zmivPD','user','j-def456','email','purchases','2024-01-15T00:00:00Z','0\x20*\x20*\x20*\x20*','segment','long','presto','events_db','string','8GSCGfR','3760ImMJPT','2024-01-15T10:00:05Z','daily_etl','user-2','Resource\x20not\x20found','bigint','2024-01-15T09:05:00Z','time','user-3','0\x200\x20*\x20*\x20*','cs-111222','def456','production_db','unified_customers','parentSegment','step-2','2ifJfBK','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','timestamp','TimeWithinPast','event_type','2023-06-15T10:30:00Z','Onboarding\x20journey\x20for\x20new\x20users','Active\x20users\x20with\x20high\x20lifetime\x20value','wf-12345','High\x20Value\x20Active\x20Users','21KuBVCE','wf-67890','2024-01-15T08:00:00Z','ps-789012','decision_point','end'];a210_0x36cc=function(){return _0x3f1d52;};return a210_0x36cc();}export function createTable(_0x3b2d7c){const _0x437af2=a210_0x4d123f;return{...fixtures[_0x437af2(0x17b)][_0x437af2(0x165)],..._0x3b2d7c};}export function createParentSegment(_0x118046){const _0x4fe10b=a210_0x4d123f;return{...fixtures[_0x4fe10b(0x13b)][_0x4fe10b(0x165)],..._0x118046};}export function createSegment(_0x1b1f43){const _0x3b0056=a210_0x4d123f;return{...fixtures[_0x3b0056(0x127)][_0x3b0056(0x165)],..._0x1b1f43};}export function createJourney(_0x4f93ee){const _0x413d27=a210_0x4d123f;return{...fixtures['journey'][_0x413d27(0x165)],..._0x4f93ee};}export function createQueryResult(_0x5d6db4){const _0x57ebc7=a210_0x4d123f;return{...fixtures[_0x57ebc7(0x162)][_0x57ebc7(0x165)],..._0x5d6db4};}export function createUser(_0x161ba6){const _0x3edb2b=a210_0x4d123f;return{...fixtures[_0x3edb2b(0x121)][_0x3edb2b(0x165)],..._0x161ba6};}export function createJob(_0x54fea5){const _0x135d3d=a210_0x4d123f;return{...fixtures['job'][_0x135d3d(0x16e)],..._0x54fea5};}export function createWorkflow(_0x3d54ec){const _0x48f9e6=a210_0x4d123f;return{...fixtures['workflow'][_0x48f9e6(0x165)],..._0x3d54ec};}
1
+ const a210_0x73a61f=a210_0x5133;(function(_0x148eb6,_0x1a3882){const _0x5c6d73=a210_0x5133,_0x4c91dd=_0x148eb6();while(!![]){try{const _0x208a47=parseInt(_0x5c6d73(0x248))/0x1*(parseInt(_0x5c6d73(0x1eb))/0x2)+-parseInt(_0x5c6d73(0x1f0))/0x3*(parseInt(_0x5c6d73(0x230))/0x4)+parseInt(_0x5c6d73(0x233))/0x5+parseInt(_0x5c6d73(0x21d))/0x6*(parseInt(_0x5c6d73(0x247))/0x7)+parseInt(_0x5c6d73(0x20d))/0x8+-parseInt(_0x5c6d73(0x1ee))/0x9+-parseInt(_0x5c6d73(0x1e6))/0xa;if(_0x208a47===_0x1a3882)break;else _0x4c91dd['push'](_0x4c91dd['shift']());}catch(_0x15dfb2){_0x4c91dd['push'](_0x4c91dd['shift']());}}}(a210_0xde27,0xe003e));export const fixtures={'database':{'basic':{'name':a210_0x73a61f(0x22a),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x73a61f(0x228),'permission':'administrator'},'withTables':{'name':a210_0x73a61f(0x244),'count':0x64,'created_at':a210_0x73a61f(0x20f),'updated_at':a210_0x73a61f(0x208),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a210_0x73a61f(0x24f),'type':a210_0x73a61f(0x1f5),'schema':JSON[a210_0x73a61f(0x219)]([['id',a210_0x73a61f(0x209)],[a210_0x73a61f(0x22c),a210_0x73a61f(0x20c)],[a210_0x73a61f(0x225),a210_0x73a61f(0x209)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a210_0x73a61f(0x228),'updated_at':a210_0x73a61f(0x228)},'events':{'id':0x303a,'name':'events','type':a210_0x73a61f(0x1f5),'schema':JSON[a210_0x73a61f(0x219)]([[a210_0x73a61f(0x240),a210_0x73a61f(0x209)],[a210_0x73a61f(0x22c),a210_0x73a61f(0x20c)],[a210_0x73a61f(0x1fa),a210_0x73a61f(0x209)],[a210_0x73a61f(0x220),a210_0x73a61f(0x209)],[a210_0x73a61f(0x245),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a210_0x73a61f(0x228),'updated_at':a210_0x73a61f(0x232)}},'parentSegment':{'basic':{'id':a210_0x73a61f(0x1f4),'name':a210_0x73a61f(0x24d),'description':a210_0x73a61f(0x1e5),'status':a210_0x73a61f(0x24b),'master_table':{'database':a210_0x73a61f(0x238),'table':a210_0x73a61f(0x1e1)},'attributes':[{'name':a210_0x73a61f(0x1f2),'type':a210_0x73a61f(0x209),'key':!![]},{'name':a210_0x73a61f(0x1e3),'type':a210_0x73a61f(0x209)},{'name':a210_0x73a61f(0x201),'type':a210_0x73a61f(0x226)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x73a61f(0x222)},'withBehaviors':{'id':a210_0x73a61f(0x1ec),'name':a210_0x73a61f(0x1fb),'description':a210_0x73a61f(0x216),'status':a210_0x73a61f(0x24b),'master_table':{'database':'cdp_db','table':'customers'},'behaviors':[{'name':a210_0x73a61f(0x21f),'table':{'database':a210_0x73a61f(0x221),'table':a210_0x73a61f(0x21f)},'join_key':a210_0x73a61f(0x1f2)},{'name':a210_0x73a61f(0x227),'table':{'database':a210_0x73a61f(0x221),'table':'pageviews'},'join_key':a210_0x73a61f(0x1f2)}],'created_at':a210_0x73a61f(0x228),'updated_at':a210_0x73a61f(0x222)}},'segment':{'basic':{'id':a210_0x73a61f(0x1f7),'name':'Active\x20Users','description':a210_0x73a61f(0x202),'parent_segment_id':a210_0x73a61f(0x1f4),'status':a210_0x73a61f(0x24b),'rules':[{'type':'attribute','field':'last_login','operator':a210_0x73a61f(0x213),'value':a210_0x73a61f(0x1f6)}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':'cs-111222','name':a210_0x73a61f(0x21a),'description':a210_0x73a61f(0x1ea),'parent_segment_id':a210_0x73a61f(0x1f4),'status':a210_0x73a61f(0x24b),'rules':[{'type':a210_0x73a61f(0x1e0),'field':'last_login','operator':a210_0x73a61f(0x213),'value':a210_0x73a61f(0x1f6)},{'type':a210_0x73a61f(0x1e0),'field':a210_0x73a61f(0x217),'operator':a210_0x73a61f(0x22d),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x73a61f(0x222)}},'journey':{'basic':{'id':a210_0x73a61f(0x242),'name':'Welcome\x20Journey','description':'Onboarding\x20journey\x20for\x20new\x20users','status':a210_0x73a61f(0x210),'version':0x1,'steps':[{'id':a210_0x73a61f(0x1f1),'type':a210_0x73a61f(0x214),'duration':'1d'},{'id':a210_0x73a61f(0x205),'type':a210_0x73a61f(0x215),'activation_id':a210_0x73a61f(0x203)}],'created_at':a210_0x73a61f(0x228),'updated_at':a210_0x73a61f(0x222)},'withDecision':{'id':a210_0x73a61f(0x1df),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':a210_0x73a61f(0x24b),'version':0x2,'steps':[{'id':a210_0x73a61f(0x1f1),'type':a210_0x73a61f(0x223),'segment_id':'cs-456789','yes_path':'step-2','no_path':a210_0x73a61f(0x249)},{'id':a210_0x73a61f(0x205),'type':a210_0x73a61f(0x215),'activation_id':a210_0x73a61f(0x224)},{'id':a210_0x73a61f(0x249),'type':a210_0x73a61f(0x1fe)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x73a61f(0x222)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a210_0x73a61f(0x21e)},{'name':'name','type':a210_0x73a61f(0x21e)},{'name':a210_0x73a61f(0x22b),'type':a210_0x73a61f(0x1fd)}],'data':[[a210_0x73a61f(0x1ff),a210_0x73a61f(0x20e),0x64],[a210_0x73a61f(0x243),a210_0x73a61f(0x1fc),0xc8],[a210_0x73a61f(0x239),a210_0x73a61f(0x1e8),0x96]]},'empty':{'schema':[{'name':'id','type':a210_0x73a61f(0x21e)},{'name':a210_0x73a61f(0x225),'type':a210_0x73a61f(0x21e)}],'data':[]},'singleRow':{'schema':[{'name':a210_0x73a61f(0x22f),'type':a210_0x73a61f(0x1fd)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a210_0x73a61f(0x207),'email':a210_0x73a61f(0x237),'created_at':a210_0x73a61f(0x228),'updated_at':a210_0x73a61f(0x222),'administrator':![]},'admin':{'id':0x1,'name':a210_0x73a61f(0x1ed),'email':'admin@example.com','created_at':a210_0x73a61f(0x204),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a210_0x73a61f(0x1e7),'database':'test_db','status':a210_0x73a61f(0x23e),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a210_0x73a61f(0x200),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':a210_0x73a61f(0x22a),'status':'running','query':a210_0x73a61f(0x24a),'start_at':a210_0x73a61f(0x23c),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a210_0x73a61f(0x1e7),'database':a210_0x73a61f(0x22a),'status':a210_0x73a61f(0x211),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a210_0x73a61f(0x1e2),'end_at':a210_0x73a61f(0x20a),'duration':0x1,'result_size':null,'error':a210_0x73a61f(0x234)}},'workflow':{'basic':{'id':'wf-12345','name':a210_0x73a61f(0x231),'project':a210_0x73a61f(0x23a),'revision':a210_0x73a61f(0x1e4),'timezone':a210_0x73a61f(0x235),'schedule':{'cron':a210_0x73a61f(0x1f3)}},'withSessions':{'id':a210_0x73a61f(0x23b),'name':a210_0x73a61f(0x212),'project':a210_0x73a61f(0x20b),'revision':'def456','timezone':a210_0x73a61f(0x218),'schedule':{'cron':a210_0x73a61f(0x206)},'last_session':{'id':a210_0x73a61f(0x23f),'status':'success','started_at':a210_0x73a61f(0x229),'finished_at':a210_0x73a61f(0x24e)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':a210_0x73a61f(0x21c),'severity':a210_0x73a61f(0x211),'status_code':0x191}},'notFound':{'errors':{'error':a210_0x73a61f(0x246),'message':a210_0x73a61f(0x21b),'severity':a210_0x73a61f(0x211),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a210_0x73a61f(0x24c),'title':a210_0x73a61f(0x241),'status':0x193,'detail':a210_0x73a61f(0x1e9),'instance':a210_0x73a61f(0x1f8)}}};function a210_0xde27(){const _0x965b3a=['42vgUgxq','varchar','purchases','event_type','events_db','2024-01-15T00:00:00Z','decision_point','act-email','name','timestamp','page_views','2024-01-01T00:00:00Z','2024-01-15T09:00:00Z','test_db','count','time','Greater','segment','total','3351748LqHPCV','daily_etl','2024-01-15T12:00:00Z','8551515ekbwLl','Table\x20does\x20not\x20exist:\x20nonexistent_table','UTC','database','test@example.com','cdp_db','user-3','data_pipeline','wf-67890','2024-01-15T10:05:00Z','basic','success','sess-111','event_id','Forbidden','j-abc123','user-2','production_db','properties','Resource\x20not\x20found','85309kfaifT','4MPuUGM','step-3','SELECT\x20COUNT(*)\x20FROM\x20events','active','https://api.treasuredata.com/errors/forbidden','Test\x20Parent\x20Segment','2024-01-15T09:05:00Z','users','j-def456','attribute','unified_customers','2024-01-15T10:10:00Z','email','abc123','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','16228410AqZySe','presto','Charlie','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','Active\x20users\x20with\x20high\x20lifetime\x20value','596690GnIdhX','ps-789012','Admin\x20User','8283456fqBtRB','parentSegment','3mYeDjN','step-1','customer_id','0\x200\x20*\x20*\x20*','ps-123456','log','30d','cs-456789','/v3/database/list','queryResult','user_id','Customers\x20with\x20Behaviors','Bob','bigint','end','user-1','2024-01-15T10:00:05Z','created_at','Users\x20active\x20in\x20the\x20last\x2030\x20days','act-123','2023-01-01T00:00:00Z','step-2','0\x20*\x20*\x20*\x20*','Test\x20User','2024-01-15T08:00:00Z','string','2024-01-15T10:10:01Z','data_sync','long','10477888iUiYDz','Alice','2023-06-15T10:30:00Z','draft','error','hourly_sync','TimeWithinPast','wait','activation','Parent\x20segment\x20with\x20behavioral\x20data','lifetime_value','America/Los_Angeles','stringify','High\x20Value\x20Active\x20Users','The\x20requested\x20resource\x20does\x20not\x20exist','Invalid\x20API\x20key'];a210_0xde27=function(){return _0x965b3a;};return a210_0xde27();}function a210_0x5133(_0x2d31fb,_0x4c172e){_0x2d31fb=_0x2d31fb-0x1df;const _0xde275a=a210_0xde27();let _0x513338=_0xde275a[_0x2d31fb];return _0x513338;}export function createDatabase(_0xd4e5e4){const _0x255ce2=a210_0x73a61f;return{...fixtures[_0x255ce2(0x236)][_0x255ce2(0x23d)],..._0xd4e5e4};}export function createTable(_0x16df36){const _0x2bc304=a210_0x73a61f;return{...fixtures['table'][_0x2bc304(0x23d)],..._0x16df36};}export function createParentSegment(_0x346013){const _0x46e0b7=a210_0x73a61f;return{...fixtures[_0x46e0b7(0x1ef)][_0x46e0b7(0x23d)],..._0x346013};}export function createSegment(_0x5c8330){const _0x4aa267=a210_0x73a61f;return{...fixtures[_0x4aa267(0x22e)][_0x4aa267(0x23d)],..._0x5c8330};}export function createJourney(_0x1d83b3){const _0x2d24a8=a210_0x73a61f;return{...fixtures['journey'][_0x2d24a8(0x23d)],..._0x1d83b3};}export function createQueryResult(_0x4a0d48){const _0x39fbfe=a210_0x73a61f;return{...fixtures[_0x39fbfe(0x1f9)][_0x39fbfe(0x23d)],..._0x4a0d48};}export function createUser(_0x322305){return{...fixtures['user']['basic'],..._0x322305};}export function createJob(_0x5508bd){return{...fixtures['job']['completed'],..._0x5508bd};}export function createWorkflow(_0xd894a){return{...fixtures['workflow']['basic'],..._0xd894a};}
@@ -1 +1 @@
1
- const a211_0x1f75c8=a211_0x10df;(function(_0x163209,_0x1159e4){const _0x30b39d=a211_0x10df,_0x39aa05=_0x163209();while(!![]){try{const _0x1d51b9=-parseInt(_0x30b39d(0x1df))/0x1+-parseInt(_0x30b39d(0x1c9))/0x2+-parseInt(_0x30b39d(0x1a8))/0x3*(-parseInt(_0x30b39d(0x193))/0x4)+parseInt(_0x30b39d(0x1cc))/0x5*(parseInt(_0x30b39d(0x1c3))/0x6)+parseInt(_0x30b39d(0x19b))/0x7+parseInt(_0x30b39d(0x1cf))/0x8+-parseInt(_0x30b39d(0x1c5))/0x9;if(_0x1d51b9===_0x1159e4)break;else _0x39aa05['push'](_0x39aa05['shift']());}catch(_0x46847c){_0x39aa05['push'](_0x39aa05['shift']());}}}(a211_0x5ee5,0x532cc));import{vi}from'vitest';function a211_0x10df(_0x424bd8,_0x2d4604){_0x424bd8=_0x424bd8-0x193;const _0x5ee507=a211_0x5ee5();let _0x10df4f=_0x5ee507[_0x424bd8];return _0x10df4f;}function a211_0x5ee5(){const _0x51b5d7=['verify','Service\x20Unavailable','Created','Bad\x20Request','6YKBPUW','Unauthorized','1798479nOlCEk','Not\x20Found','fetchMock','forEach','992690DyYyKQ','matched','No\x20Content','622785AnvXKf','error','length','4279472eHwArb','includes','split','getStatusText','matcher','errorResponse','REST','Unknown','GET','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','No\x20stub\x20matched\x20request:\x20','description','simple','wasCalled','matchCount','requests','556500cioEGP','host','4BSFzIS','searchParams','slice','some','parseRequest','reset','unnamed\x20stub','stringify','3680600wnwkOO','entries','body','push','networkError','mockImplementation','headers','test','fail','jsonResponse','stack','Registered\x20stubs:\x0a','Request\x20body:\x20','1224207gjBZbM','getRequests','map','createFetch','isArray','toLowerCase','filter','jsonResponseWithHeaders','url','rfc9457','get','pathname','Forbidden','method','application/json','every','join','https://api.treasuredata.com/errors/','\x20registered\x20at:\x0a','string','register','stubs','textResponse'];a211_0x5ee5=function(){return _0x51b5d7;};return a211_0x5ee5();}export class HTTPMockRegistry{[a211_0x1f75c8(0x1bd)]=[];[a211_0x1f75c8(0x1de)]=[];[a211_0x1f75c8(0x1c7)]=null;[a211_0x1f75c8(0x1d5)](_0x140ff6,_0x39e943){return _0x2c45d8=>{const _0x171be2=a211_0x10df;if(_0x2c45d8[_0x171be2(0x1b5)]['toUpperCase']()!==_0x140ff6['toUpperCase']())return![];const _0x505b7d=new URL(_0x2c45d8[_0x171be2(0x1b0)]);if(typeof _0x39e943===_0x171be2(0x1bb))return _0x505b7d[_0x171be2(0x1b3)]===_0x39e943||_0x505b7d[_0x171be2(0x1b3)][_0x171be2(0x1d0)](_0x39e943);return _0x39e943[_0x171be2(0x1a2)](_0x505b7d[_0x171be2(0x1b3)]);};}['withQuery'](_0x2efbcf,_0x17d923){return _0x8b9559=>{const _0x89bf8c=a211_0x10df;if(!_0x2efbcf(_0x8b9559))return![];const _0x28fcc6=new URL(_0x8b9559[_0x89bf8c(0x1b0)]);return Object[_0x89bf8c(0x19c)](_0x17d923)[_0x89bf8c(0x1b7)](([_0x55d476,_0x1a4980])=>_0x28fcc6[_0x89bf8c(0x194)][_0x89bf8c(0x1b2)](_0x55d476)===_0x1a4980);};}['withBody'](_0x38b9a8,_0x34002b){return _0x46d410=>{const _0x17eb1b=a211_0x10df;if(!_0x38b9a8(_0x46d410))return![];if(typeof _0x34002b==='function')return _0x34002b(_0x46d410[_0x17eb1b(0x19d)]);return JSON[_0x17eb1b(0x19a)](_0x46d410[_0x17eb1b(0x19d)])===JSON['stringify'](_0x34002b);};}['withHost'](_0x1b2056,_0x647a95){return _0xbee194=>{const _0x4c8456=a211_0x10df;if(!_0x1b2056(_0xbee194))return![];const _0x573128=new URL(_0xbee194['url']);return _0x573128[_0x4c8456(0x1e0)]===_0x647a95;};}[a211_0x1f75c8(0x1bc)](_0x586b56,_0x423cbc,_0x22d77a){const _0x5934aa=a211_0x1f75c8;this[_0x5934aa(0x1bd)]['push']({'matcher':_0x586b56,'responder':_0x423cbc,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5934aa(0x1a5)]??'','description':_0x22d77a?.[_0x5934aa(0x1da)]});}['registerWithInspector'](_0x3b537c,_0x5e084c,_0x30af66){const _0x27c263=a211_0x1f75c8,_0x18367c=_0x37e8ed=>{return _0x30af66(_0x37e8ed['body'],_0x37e8ed),_0x5e084c(_0x37e8ed);};this[_0x27c263(0x1bc)](_0x3b537c,_0x18367c);}static[a211_0x1f75c8(0x1a4)](_0x820fc0,_0x12f11f=0xc8){const _0x15e52d=a211_0x1f75c8;return()=>new Response(JSON['stringify'](_0x820fc0),{'status':_0x12f11f,'headers':{'Content-Type':_0x15e52d(0x1b6)}});}static[a211_0x1f75c8(0x1d4)](_0x2219e3,_0x5637e2,_0x9d3ac5=a211_0x1f75c8(0x1db)){return()=>{const _0x597c91=a211_0x10df;let _0x3b7e37;switch(_0x9d3ac5){case'td-api':_0x3b7e37={'errors':{'error':_0x5637e2,'message':_0x5637e2,'severity':_0x597c91(0x1cd),'status_code':_0x2219e3}};break;case _0x597c91(0x1b1):_0x3b7e37={'type':_0x597c91(0x1b9)+_0x2219e3,'title':HTTPMockRegistry[_0x597c91(0x1d2)](_0x2219e3),'status':_0x2219e3,'detail':_0x5637e2};break;default:_0x3b7e37={'error':_0x5637e2};}return new Response(JSON[_0x597c91(0x19a)](_0x3b7e37),{'status':_0x2219e3,'headers':{'Content-Type':_0x597c91(0x1b6)}});};}static[a211_0x1f75c8(0x1af)](_0x1c8fa6,_0x2f864a,_0x333940=0xc8){return()=>new Response(JSON['stringify'](_0x1c8fa6),{'status':_0x333940,'headers':{'Content-Type':'application/json',..._0x2f864a}});}static[a211_0x1f75c8(0x1be)](_0x2c8d7d,_0x28a8e3=0xc8){return()=>new Response(_0x2c8d7d,{'status':_0x28a8e3,'headers':{'Content-Type':'text/plain'}});}static[a211_0x1f75c8(0x19f)](_0x2ad488){return()=>{throw new Error(_0x2ad488);};}[a211_0x1f75c8(0x1ab)](){const _0x455481=a211_0x1f75c8;return this[_0x455481(0x1c7)]=vi['fn']()[_0x455481(0x1a0)](async(_0x36ddd4,_0x3c6502)=>{const _0x2d47c5=_0x455481,_0x53e96e=this['parseRequest'](_0x36ddd4,_0x3c6502);this['requests'][_0x2d47c5(0x19e)](_0x53e96e);for(const _0x30db7a of this[_0x2d47c5(0x1bd)]){if(_0x30db7a[_0x2d47c5(0x1d3)](_0x53e96e))return _0x30db7a[_0x2d47c5(0x1ca)]=!![],_0x30db7a[_0x2d47c5(0x1dd)]++,_0x30db7a['responder'](_0x53e96e);}const _0x37a8a6=this['stubs'][_0x2d47c5(0x1aa)]((_0xfec0fb,_0x107476)=>'\x20\x20'+(_0x107476+0x1)+'.\x20'+(_0xfec0fb[_0x2d47c5(0x1da)]??_0x2d47c5(0x199)))['join']('\x0a');throw new Error(_0x2d47c5(0x1d9)+_0x53e96e['method']+'\x20'+_0x53e96e[_0x2d47c5(0x1b0)]+'\x0a'+(_0x2d47c5(0x1a7)+JSON[_0x2d47c5(0x19a)](_0x53e96e['body'])+'\x0a')+(_0x2d47c5(0x1a6)+(_0x37a8a6||'\x20\x20(none)')));}),this[_0x455481(0x1c7)];}[a211_0x1f75c8(0x197)](_0x2810fb,_0x3bed3a){const _0x2218e3=a211_0x1f75c8,_0x4ebb40={};if(_0x3bed3a?.[_0x2218e3(0x1a1)]){if(_0x3bed3a['headers']instanceof Headers)_0x3bed3a[_0x2218e3(0x1a1)][_0x2218e3(0x1c8)]((_0x124641,_0x24c481)=>{const _0x55d39f=_0x2218e3;_0x4ebb40[_0x24c481[_0x55d39f(0x1ad)]()]=_0x124641;});else{if(Array[_0x2218e3(0x1ac)](_0x3bed3a['headers']))for(const [_0xf2bcae,_0x43f637]of _0x3bed3a[_0x2218e3(0x1a1)]){_0x4ebb40[_0xf2bcae[_0x2218e3(0x1ad)]()]=_0x43f637;}else for(const [_0x5264fb,_0x129051]of Object[_0x2218e3(0x19c)](_0x3bed3a['headers'])){_0x129051!==undefined&&(_0x4ebb40[_0x5264fb['toLowerCase']()]=_0x129051);}}}let _0x50c83d;if(_0x3bed3a?.[_0x2218e3(0x19d)])try{_0x50c83d=JSON['parse'](_0x3bed3a[_0x2218e3(0x19d)]);}catch{_0x50c83d=_0x3bed3a[_0x2218e3(0x19d)];}return{'method':_0x3bed3a?.[_0x2218e3(0x1b5)]??_0x2218e3(0x1d7),'url':_0x2810fb,'headers':_0x4ebb40,'body':_0x50c83d};}[a211_0x1f75c8(0x1bf)](_0x3f71aa){const _0x390ac9=a211_0x1f75c8,_0x181326=this[_0x390ac9(0x1bd)][_0x390ac9(0x1ae)](_0x1ff4a6=>!_0x1ff4a6[_0x390ac9(0x1ca)]);if(_0x181326['length']>0x0){const _0x58f250=_0x181326[_0x390ac9(0x1aa)](_0x33d362=>{const _0x55d267=_0x390ac9,_0x104814=_0x33d362[_0x55d267(0x1da)]?'\x20('+_0x33d362['description']+')':'',_0x39c263=_0x33d362['stack'][_0x55d267(0x1d1)]('\x0a')[_0x55d267(0x195)](0x2,0x5)['join']('\x0a');return'Unmatched\x20stub'+_0x104814+_0x55d267(0x1ba)+_0x39c263;});_0x3f71aa[_0x390ac9(0x1a3)](_0x181326[_0x390ac9(0x1ce)]+_0x390ac9(0x1d8)+_0x58f250[_0x390ac9(0x1b8)]('\x0a\x0a'));}}[a211_0x1f75c8(0x1a9)](){return[...this['requests']];}['getLastRequest'](){const _0x556a5c=a211_0x1f75c8;return this[_0x556a5c(0x1de)][this[_0x556a5c(0x1de)][_0x556a5c(0x1ce)]-0x1];}[a211_0x1f75c8(0x1dc)](_0x4f0b97,_0x48fb8b){const _0x4f7d38=a211_0x1f75c8;return this[_0x4f7d38(0x1de)][_0x4f7d38(0x196)](_0x562284=>{const _0x3be7bf=_0x4f7d38;if(_0x562284['method']['toUpperCase']()!==_0x4f0b97['toUpperCase']())return![];if(typeof _0x48fb8b===_0x3be7bf(0x1bb))return _0x562284[_0x3be7bf(0x1b0)][_0x3be7bf(0x1d0)](_0x48fb8b);return _0x48fb8b[_0x3be7bf(0x1a2)](_0x562284[_0x3be7bf(0x1b0)]);});}['getMatchCount'](_0x3446a7){const _0x111e5a=a211_0x1f75c8;return this[_0x111e5a(0x1bd)][_0x3446a7]?.['matchCount']??0x0;}[a211_0x1f75c8(0x198)](){this['stubs']=[],this['requests']=[],this['fetchMock']=null;}static['getStatusText'](_0x2f1f3b){const _0x399363=a211_0x1f75c8,_0x39ac21={0xc8:'OK',0xc9:_0x399363(0x1c1),0xcc:_0x399363(0x1cb),0x190:_0x399363(0x1c2),0x191:_0x399363(0x1c4),0x193:_0x399363(0x1b4),0x194:_0x399363(0x1c6),0x199:'Conflict',0x1a6:'Unprocessable\x20Entity',0x1ad:'Too\x20Many\x20Requests',0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0x399363(0x1c0)};return _0x39ac21[_0x2f1f3b]??_0x399363(0x1d6);}}export function createHTTPMock(){return new HTTPMockRegistry();}
1
+ const a211_0x3f1f33=a211_0x2c7e;(function(_0x3ee0db,_0x39d57b){const _0x49526f=a211_0x2c7e,_0x2f205c=_0x3ee0db();while(!![]){try{const _0x654e71=parseInt(_0x49526f(0xbc))/0x1*(parseInt(_0x49526f(0x89))/0x2)+-parseInt(_0x49526f(0xc0))/0x3*(-parseInt(_0x49526f(0x9a))/0x4)+-parseInt(_0x49526f(0xb0))/0x5+parseInt(_0x49526f(0x84))/0x6*(-parseInt(_0x49526f(0x98))/0x7)+-parseInt(_0x49526f(0xac))/0x8*(-parseInt(_0x49526f(0x86))/0x9)+parseInt(_0x49526f(0x8b))/0xa*(-parseInt(_0x49526f(0x70))/0xb)+-parseInt(_0x49526f(0xb8))/0xc*(-parseInt(_0x49526f(0x93))/0xd);if(_0x654e71===_0x39d57b)break;else _0x2f205c['push'](_0x2f205c['shift']());}catch(_0x20d3ba){_0x2f205c['push'](_0x2f205c['shift']());}}}(a211_0x34e5,0x2f977));function a211_0x34e5(){const _0x59774b=['getLastRequest','33fdWQgj','push','REST','string','Too\x20Many\x20Requests','Internal\x20Server\x20Error','textResponse','error','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','length','https://api.treasuredata.com/errors/','function','td-api','stubs','split','headers','method','url','requests','No\x20Content','8538WYDpSE','Bad\x20Request','18wXQaDr','body','get','152314cPMjUF','Service\x20Unavailable','617540ezUzVS','matched','application/json','matchCount','getMatchCount','isArray','matcher','every','1611506kfijor','register','rfc9457','includes','join','1841lCiGnr','description','15788iwBeLy','map','fetchMock','wasCalled','text/plain','parseRequest','withBody','Unknown','registerWithInspector','toLowerCase','mockImplementation','jsonResponse','entries','reset','\x20\x20(none)','Created','Request\x20body:\x20','responder','1435216VYBmQq','Bad\x20Gateway','withHost','Conflict','607005lXRYLw','toUpperCase','withQuery','stringify','Unauthorized','getStatusText','No\x20stub\x20matched\x20request:\x20','stack','12KzCgTz','test','fail','getRequests','2FAgzNr','slice','simple','searchParams','183bERwGP','Registered\x20stubs:\x0a','forEach'];a211_0x34e5=function(){return _0x59774b;};return a211_0x34e5();}function a211_0x2c7e(_0x5f4f10,_0x1c6225){_0x5f4f10=_0x5f4f10-0x6f;const _0x34e526=a211_0x34e5();let _0x2c7e5d=_0x34e526[_0x5f4f10];return _0x2c7e5d;}import{vi}from'vitest';export class HTTPMockRegistry{[a211_0x3f1f33(0x7d)]=[];[a211_0x3f1f33(0x82)]=[];[a211_0x3f1f33(0x9c)]=null;[a211_0x3f1f33(0x72)](_0x1e9ca1,_0x53faea){return _0x3510aa=>{const _0xa2f228=a211_0x2c7e;if(_0x3510aa[_0xa2f228(0x80)][_0xa2f228(0xb1)]()!==_0x1e9ca1['toUpperCase']())return![];const _0x4730c8=new URL(_0x3510aa['url']);if(typeof _0x53faea===_0xa2f228(0x73))return _0x4730c8['pathname']===_0x53faea||_0x4730c8['pathname'][_0xa2f228(0x96)](_0x53faea);return _0x53faea[_0xa2f228(0xb9)](_0x4730c8['pathname']);};}[a211_0x3f1f33(0xb2)](_0x5ba295,_0x75ce20){return _0x41f105=>{const _0x53a8f4=a211_0x2c7e;if(!_0x5ba295(_0x41f105))return![];const _0x4bf4c4=new URL(_0x41f105[_0x53a8f4(0x81)]);return Object['entries'](_0x75ce20)[_0x53a8f4(0x92)](([_0x45e79a,_0x3c47af])=>_0x4bf4c4[_0x53a8f4(0xbf)][_0x53a8f4(0x88)](_0x45e79a)===_0x3c47af);};}[a211_0x3f1f33(0xa0)](_0x2a707e,_0x4308c9){return _0x5cbbbd=>{const _0x332fa0=a211_0x2c7e;if(!_0x2a707e(_0x5cbbbd))return![];if(typeof _0x4308c9===_0x332fa0(0x7b))return _0x4308c9(_0x5cbbbd['body']);return JSON['stringify'](_0x5cbbbd[_0x332fa0(0x87)])===JSON[_0x332fa0(0xb3)](_0x4308c9);};}[a211_0x3f1f33(0xae)](_0x13d4dc,_0x5e19b5){return _0x21395a=>{const _0x342e1f=a211_0x2c7e;if(!_0x13d4dc(_0x21395a))return![];const _0x2e668f=new URL(_0x21395a[_0x342e1f(0x81)]);return _0x2e668f['host']===_0x5e19b5;};}[a211_0x3f1f33(0x94)](_0x388563,_0x209bdd,_0x3f1a77){const _0x1ee2b6=a211_0x3f1f33;this[_0x1ee2b6(0x7d)][_0x1ee2b6(0x71)]({'matcher':_0x388563,'responder':_0x209bdd,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1ee2b6(0xb7)]??'','description':_0x3f1a77?.[_0x1ee2b6(0x99)]});}[a211_0x3f1f33(0xa2)](_0x2100df,_0x3a9279,_0x394537){const _0x26172b=a211_0x3f1f33,_0x3fd500=_0x1a4fd2=>{const _0x55ab17=a211_0x2c7e;return _0x394537(_0x1a4fd2[_0x55ab17(0x87)],_0x1a4fd2),_0x3a9279(_0x1a4fd2);};this[_0x26172b(0x94)](_0x2100df,_0x3fd500);}static[a211_0x3f1f33(0xa5)](_0x2a089f,_0xa77012=0xc8){const _0x3c67a4=a211_0x3f1f33;return()=>new Response(JSON[_0x3c67a4(0xb3)](_0x2a089f),{'status':_0xa77012,'headers':{'Content-Type':_0x3c67a4(0x8d)}});}static['errorResponse'](_0x202ca6,_0x125a36,_0x3a0855=a211_0x3f1f33(0xbe)){return()=>{const _0x1050e5=a211_0x2c7e;let _0x446d22;switch(_0x3a0855){case _0x1050e5(0x7c):_0x446d22={'errors':{'error':_0x125a36,'message':_0x125a36,'severity':_0x1050e5(0x77),'status_code':_0x202ca6}};break;case _0x1050e5(0x95):_0x446d22={'type':_0x1050e5(0x7a)+_0x202ca6,'title':HTTPMockRegistry[_0x1050e5(0xb5)](_0x202ca6),'status':_0x202ca6,'detail':_0x125a36};break;default:_0x446d22={'error':_0x125a36};}return new Response(JSON[_0x1050e5(0xb3)](_0x446d22),{'status':_0x202ca6,'headers':{'Content-Type':_0x1050e5(0x8d)}});};}static['jsonResponseWithHeaders'](_0x513882,_0x455f70,_0x3848e8=0xc8){const _0x590582=a211_0x3f1f33;return()=>new Response(JSON[_0x590582(0xb3)](_0x513882),{'status':_0x3848e8,'headers':{'Content-Type':'application/json',..._0x455f70}});}static[a211_0x3f1f33(0x76)](_0x5124c0,_0x95d872=0xc8){const _0x1284b0=a211_0x3f1f33;return()=>new Response(_0x5124c0,{'status':_0x95d872,'headers':{'Content-Type':_0x1284b0(0x9e)}});}static['networkError'](_0x1bafc5){return()=>{throw new Error(_0x1bafc5);};}['createFetch'](){const _0x2edc95=a211_0x3f1f33;return this[_0x2edc95(0x9c)]=vi['fn']()[_0x2edc95(0xa4)](async(_0x4a1054,_0x45ee64)=>{const _0x5d40bc=_0x2edc95,_0x5d5373=this['parseRequest'](_0x4a1054,_0x45ee64);this[_0x5d40bc(0x82)][_0x5d40bc(0x71)](_0x5d5373);for(const _0x9d70cb of this[_0x5d40bc(0x7d)]){if(_0x9d70cb[_0x5d40bc(0x91)](_0x5d5373))return _0x9d70cb[_0x5d40bc(0x8c)]=!![],_0x9d70cb[_0x5d40bc(0x8e)]++,_0x9d70cb[_0x5d40bc(0xab)](_0x5d5373);}const _0x92f1ee=this[_0x5d40bc(0x7d)][_0x5d40bc(0x9b)]((_0x3a8ad6,_0xd9fff8)=>'\x20\x20'+(_0xd9fff8+0x1)+'.\x20'+(_0x3a8ad6['description']??'unnamed\x20stub'))['join']('\x0a');throw new Error(_0x5d40bc(0xb6)+_0x5d5373[_0x5d40bc(0x80)]+'\x20'+_0x5d5373['url']+'\x0a'+(_0x5d40bc(0xaa)+JSON[_0x5d40bc(0xb3)](_0x5d5373[_0x5d40bc(0x87)])+'\x0a')+(_0x5d40bc(0xc1)+(_0x92f1ee||_0x5d40bc(0xa8))));}),this[_0x2edc95(0x9c)];}[a211_0x3f1f33(0x9f)](_0x5f38b5,_0x4d4dd5){const _0x155175=a211_0x3f1f33,_0x35d7fe={};if(_0x4d4dd5?.[_0x155175(0x7f)]){if(_0x4d4dd5[_0x155175(0x7f)]instanceof Headers)_0x4d4dd5['headers'][_0x155175(0xc2)]((_0x47810e,_0x5a8e6e)=>{_0x35d7fe[_0x5a8e6e['toLowerCase']()]=_0x47810e;});else{if(Array[_0x155175(0x90)](_0x4d4dd5[_0x155175(0x7f)]))for(const [_0x998b60,_0x17a848]of _0x4d4dd5[_0x155175(0x7f)]){_0x35d7fe[_0x998b60[_0x155175(0xa3)]()]=_0x17a848;}else for(const [_0x5b0be0,_0x42a98c]of Object[_0x155175(0xa6)](_0x4d4dd5[_0x155175(0x7f)])){_0x42a98c!==undefined&&(_0x35d7fe[_0x5b0be0['toLowerCase']()]=_0x42a98c);}}}let _0x11fc74;if(_0x4d4dd5?.[_0x155175(0x87)])try{_0x11fc74=JSON['parse'](_0x4d4dd5[_0x155175(0x87)]);}catch{_0x11fc74=_0x4d4dd5[_0x155175(0x87)];}return{'method':_0x4d4dd5?.[_0x155175(0x80)]??'GET','url':_0x5f38b5,'headers':_0x35d7fe,'body':_0x11fc74};}['verify'](_0x13ec50){const _0x262ac5=a211_0x3f1f33,_0x13f473=this[_0x262ac5(0x7d)]['filter'](_0x6b7b0d=>!_0x6b7b0d[_0x262ac5(0x8c)]);if(_0x13f473[_0x262ac5(0x79)]>0x0){const _0x48e69b=_0x13f473[_0x262ac5(0x9b)](_0x3e1499=>{const _0x441da0=_0x262ac5,_0x1d7c95=_0x3e1499['description']?'\x20('+_0x3e1499[_0x441da0(0x99)]+')':'',_0x75b578=_0x3e1499[_0x441da0(0xb7)][_0x441da0(0x7e)]('\x0a')[_0x441da0(0xbd)](0x2,0x5)['join']('\x0a');return'Unmatched\x20stub'+_0x1d7c95+'\x20registered\x20at:\x0a'+_0x75b578;});_0x13ec50[_0x262ac5(0xba)](_0x13f473[_0x262ac5(0x79)]+_0x262ac5(0x78)+_0x48e69b[_0x262ac5(0x97)]('\x0a\x0a'));}}[a211_0x3f1f33(0xbb)](){const _0x5e79cc=a211_0x3f1f33;return[...this[_0x5e79cc(0x82)]];}[a211_0x3f1f33(0x6f)](){const _0x4f9ef0=a211_0x3f1f33;return this['requests'][this[_0x4f9ef0(0x82)]['length']-0x1];}[a211_0x3f1f33(0x9d)](_0x34783f,_0x3b6daa){const _0x1302c4=a211_0x3f1f33;return this[_0x1302c4(0x82)]['some'](_0xdea6b6=>{const _0xd92c2c=_0x1302c4;if(_0xdea6b6['method'][_0xd92c2c(0xb1)]()!==_0x34783f[_0xd92c2c(0xb1)]())return![];if(typeof _0x3b6daa===_0xd92c2c(0x73))return _0xdea6b6[_0xd92c2c(0x81)][_0xd92c2c(0x96)](_0x3b6daa);return _0x3b6daa[_0xd92c2c(0xb9)](_0xdea6b6[_0xd92c2c(0x81)]);});}[a211_0x3f1f33(0x8f)](_0x5ac7a0){const _0x15f60c=a211_0x3f1f33;return this['stubs'][_0x5ac7a0]?.[_0x15f60c(0x8e)]??0x0;}[a211_0x3f1f33(0xa7)](){const _0xf6fee0=a211_0x3f1f33;this[_0xf6fee0(0x7d)]=[],this[_0xf6fee0(0x82)]=[],this['fetchMock']=null;}static[a211_0x3f1f33(0xb5)](_0x448386){const _0x485245=a211_0x3f1f33,_0x3dfa87={0xc8:'OK',0xc9:_0x485245(0xa9),0xcc:_0x485245(0x83),0x190:_0x485245(0x85),0x191:_0x485245(0xb4),0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x485245(0xaf),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x485245(0x74),0x1f4:_0x485245(0x75),0x1f6:_0x485245(0xad),0x1f7:_0x485245(0x8a)};return _0x3dfa87[_0x448386]??_0x485245(0xa1);}}export function createHTTPMock(){return new HTTPMockRegistry();}
@@ -1 +1 @@
1
- (function(_0x306107,_0x3c3734){var _0x39555e=a212_0x54da,_0x30b8e9=_0x306107();while(!![]){try{var _0x146d5d=-parseInt(_0x39555e(0x89))/0x1+parseInt(_0x39555e(0x91))/0x2*(parseInt(_0x39555e(0x8f))/0x3)+parseInt(_0x39555e(0x8b))/0x4*(-parseInt(_0x39555e(0x94))/0x5)+-parseInt(_0x39555e(0x90))/0x6*(parseInt(_0x39555e(0x93))/0x7)+-parseInt(_0x39555e(0x8d))/0x8*(parseInt(_0x39555e(0x8a))/0x9)+parseInt(_0x39555e(0x8e))/0xa*(parseInt(_0x39555e(0x92))/0xb)+parseInt(_0x39555e(0x8c))/0xc;if(_0x146d5d===_0x3c3734)break;else _0x30b8e9['push'](_0x30b8e9['shift']());}catch(_0x16ae85){_0x30b8e9['push'](_0x30b8e9['shift']());}}}(a212_0x38b7,0xa9618));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a212_0x38b7(){var _0x4fa46b=['693LughaJ','128492EQyDXQ','72575dGgNeI','1062776hzLSMr','4392909wLFuGe','332PCLQlk','35174268AVUcSd','8XgTmRu','41890FpVvym','1368678YKFCKz','66NXYkmu','2IGmtag'];a212_0x38b7=function(){return _0x4fa46b;};return a212_0x38b7();}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a212_0x54da(_0x33a082,_0x2cbbd3){_0x33a082=_0x33a082-0x89;var _0x38b794=a212_0x38b7();var _0x54da30=_0x38b794[_0x33a082];return _0x54da30;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
1
+ (function(_0x1d116e,_0x193603){var _0x509fec=a212_0x33f6,_0x1e071d=_0x1d116e();while(!![]){try{var _0x378247=-parseInt(_0x509fec(0xbf))/0x1+-parseInt(_0x509fec(0xc3))/0x2*(parseInt(_0x509fec(0xc2))/0x3)+parseInt(_0x509fec(0xbe))/0x4+-parseInt(_0x509fec(0xc1))/0x5*(parseInt(_0x509fec(0xc0))/0x6)+parseInt(_0x509fec(0xbd))/0x7+-parseInt(_0x509fec(0xba))/0x8+-parseInt(_0x509fec(0xbc))/0x9*(-parseInt(_0x509fec(0xbb))/0xa);if(_0x378247===_0x193603)break;else _0x1e071d['push'](_0x1e071d['shift']());}catch(_0x50b886){_0x1e071d['push'](_0x1e071d['shift']());}}}(a212_0x2227,0xeb78d));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a212_0x33f6(_0x2644c3,_0xb273c){_0x2644c3=_0x2644c3-0xba;var _0x22277b=a212_0x2227();var _0x33f68c=_0x22277b[_0x2644c3];return _0x33f68c;}export{CommandRunner,createCommandRunner}from'./command-runner.js';function a212_0x2227(){var _0x41f117=['10OGgWmT','39770091EkefhT','6286119nvDHWR','3547540iumMYg','1582801WulbiH','264qqFarA','114670tzxQNh','573552MOMIdt','10AjXVRv','13531928kSGvpe'];a212_0x2227=function(){return _0x41f117;};return a212_0x2227();}
@@ -1 +1 @@
1
- (function(_0x5cfaed,_0xede56e){const _0x4d0baa=a213_0x3dea,_0x4f9706=_0x5cfaed();while(!![]){try{const _0x23f7f8=parseInt(_0x4d0baa(0x125))/0x1*(parseInt(_0x4d0baa(0x128))/0x2)+parseInt(_0x4d0baa(0x12b))/0x3*(-parseInt(_0x4d0baa(0x12d))/0x4)+parseInt(_0x4d0baa(0x126))/0x5*(parseInt(_0x4d0baa(0x123))/0x6)+-parseInt(_0x4d0baa(0x124))/0x7+-parseInt(_0x4d0baa(0x122))/0x8*(-parseInt(_0x4d0baa(0x121))/0x9)+parseInt(_0x4d0baa(0x12a))/0xa+-parseInt(_0x4d0baa(0x120))/0xb;if(_0x23f7f8===_0xede56e)break;else _0x4f9706['push'](_0x4f9706['shift']());}catch(_0x2bd2f2){_0x4f9706['push'](_0x4f9706['shift']());}}}(a213_0x1e63,0x9b269));export async function batchAsync(_0x1dbc44,_0x5beb58,_0xa680b=0xa){const _0x342275=a213_0x3dea,_0x1adebd=[];for(let _0x17d0f6=0x0;_0x17d0f6<_0x1dbc44[_0x342275(0x12c)];_0x17d0f6+=_0xa680b){const _0x26d9a0=_0x1dbc44[_0x342275(0x129)](_0x17d0f6,_0x17d0f6+_0xa680b),_0x3dc92b=await Promise[_0x342275(0x127)](_0x26d9a0[_0x342275(0x11f)](_0x5beb58));_0x1adebd[_0x342275(0x12e)](..._0x3dc92b);}return _0x1adebd;}function a213_0x3dea(_0x191f84,_0x576434){_0x191f84=_0x191f84-0x11f;const _0x1e63fc=a213_0x1e63();let _0x3deae9=_0x1e63fc[_0x191f84];return _0x3deae9;}function a213_0x1e63(){const _0x3c5191=['1847666gocrRS','slice','1883520vDtZXW','327yDaXTo','length','3972JgPRrX','push','map','17487613cLkXvT','60462AHWwRl','808cxKDeg','1593264Afmhas','3635534OaOQYX','1PRImKD','20cfOasv','all'];a213_0x1e63=function(){return _0x3c5191;};return a213_0x1e63();}
1
+ function a213_0x5dbe(){const _0x37c385=['3654909OfcgKP','51144ZRyzxK','177324jbHlPb','2248848NYwGdK','326368rOlXMt','all','620928vaQaji','5BrBEYm','length','1WaDnvQ','387304lMBmhE','map'];a213_0x5dbe=function(){return _0x37c385;};return a213_0x5dbe();}function a213_0x5285(_0x19f693,_0x141f57){_0x19f693=_0x19f693-0x152;const _0x5dbe97=a213_0x5dbe();let _0x5285bf=_0x5dbe97[_0x19f693];return _0x5285bf;}(function(_0x2d198c,_0x2d1680){const _0x43b30a=a213_0x5285,_0xff1669=_0x2d198c();while(!![]){try{const _0x27d0ca=-parseInt(_0x43b30a(0x15c))/0x1*(-parseInt(_0x43b30a(0x15d))/0x2)+parseInt(_0x43b30a(0x155))/0x3+-parseInt(_0x43b30a(0x157))/0x4+-parseInt(_0x43b30a(0x15a))/0x5*(-parseInt(_0x43b30a(0x154))/0x6)+parseInt(_0x43b30a(0x159))/0x7+parseInt(_0x43b30a(0x156))/0x8+-parseInt(_0x43b30a(0x153))/0x9;if(_0x27d0ca===_0x2d1680)break;else _0xff1669['push'](_0xff1669['shift']());}catch(_0x19f431){_0xff1669['push'](_0xff1669['shift']());}}}(a213_0x5dbe,0x23029));export async function batchAsync(_0x1bca13,_0x5503ca,_0x858a19=0xa){const _0x5cc5be=a213_0x5285,_0x5d9847=[];for(let _0xc81a80=0x0;_0xc81a80<_0x1bca13[_0x5cc5be(0x15b)];_0xc81a80+=_0x858a19){const _0x237fd5=_0x1bca13['slice'](_0xc81a80,_0xc81a80+_0x858a19),_0x2dc5f5=await Promise[_0x5cc5be(0x158)](_0x237fd5[_0x5cc5be(0x152)](_0x5503ca));_0x5d9847['push'](..._0x2dc5f5);}return _0x5d9847;}
@@ -1 +1 @@
1
- function a214_0x978c(){const _0x5d57e5=['80txSVeC','blue','repeat','noColor','1880790EjFmdS','number','1572764sIPUji','dim','stdout','string','join','object','entries','stringify','boolean','cyan','color','122559SavhOc','null','8195896pMtMvA','739669PWvqVV','3265038JYJwlV','isArray','isTTY','303250TFGKNm','green','length','map'];a214_0x978c=function(){return _0x5d57e5;};return a214_0x978c();}(function(_0x2e6514,_0x245a3c){const _0x357ae4=a214_0x2b7b,_0x35596f=_0x2e6514();while(!![]){try{const _0x48f670=parseInt(_0x357ae4(0x1cc))/0x1+-parseInt(_0x357ae4(0x1c8))/0x2*(parseInt(_0x357ae4(0x1d9))/0x3)+parseInt(_0x357ae4(0x1ce))/0x4+-parseInt(_0x357ae4(0x1e0))/0x5+-parseInt(_0x357ae4(0x1dd))/0x6+-parseInt(_0x357ae4(0x1dc))/0x7+parseInt(_0x357ae4(0x1db))/0x8;if(_0x48f670===_0x245a3c)break;else _0x35596f['push'](_0x35596f['shift']());}catch(_0x292f94){_0x35596f['push'](_0x35596f['shift']());}}}(a214_0x978c,0xe8e02));import*as a214_0x4d2c36 from'chalk';const Chalk=a214_0x4d2c36['Chalk'];export function shouldUseColor(_0x5b711b={}){const _0x1d2048=a214_0x2b7b;if(_0x5b711b[_0x1d2048(0x1cb)]===!![])return![];if(_0x5b711b[_0x1d2048(0x1d8)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x1d2048(0x1d0)][_0x1d2048(0x1df)]??![];}export function getChalk(_0x48f443={}){if(shouldUseColor(_0x48f443))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x12c3c6,_0x3cb2d4={}){const _0x19b5f8=a214_0x2b7b;return getChalk(_0x3cb2d4)[_0x19b5f8(0x1cf)](_0x12c3c6);}export function colorHeader(_0x2e277f,_0x2ffdf8={}){return getChalk(_0x2ffdf8)['cyan'](_0x2e277f);}export function colorType(_0xc2c931,_0x2e2966={}){const _0x9c0e3e=a214_0x2b7b;return getChalk(_0x2e2966)[_0x9c0e3e(0x1cf)](_0xc2c931);}export function colorJSONKey(_0x1a9ccf,_0x25e3cb={}){const _0x4c239c=a214_0x2b7b;return getChalk(_0x25e3cb)[_0x4c239c(0x1c9)](_0x1a9ccf);}export function colorJSONString(_0x20af21,_0xed2ac7={}){const _0x22ab1e=a214_0x2b7b;return getChalk(_0xed2ac7)[_0x22ab1e(0x1e1)](_0x20af21);}function a214_0x2b7b(_0x173689,_0x2dcbd7){_0x173689=_0x173689-0x1c8;const _0x978cbc=a214_0x978c();let _0x2b7b2e=_0x978cbc[_0x173689];return _0x2b7b2e;}export function colorJSONNumber(_0x2e0ad4,_0x4273bf={}){const _0x285dcf=a214_0x2b7b;return getChalk(_0x4273bf)[_0x285dcf(0x1d7)](_0x2e0ad4);}export function colorJSONBoolean(_0x36b278,_0x4854e6={}){return getChalk(_0x4854e6)['yellow'](_0x36b278);}export function colorJSONNull(_0x53938c,_0x3641a9={}){const _0x568028=a214_0x2b7b;return getChalk(_0x3641a9)[_0x568028(0x1cf)](_0x53938c);}export function colorizeJSONCompact(_0x557442,_0x5a66e7={}){const _0xec73d1=a214_0x2b7b;if(!shouldUseColor(_0x5a66e7))return JSON[_0xec73d1(0x1d5)](_0x557442);if(_0x557442===null)return colorJSONNull(_0xec73d1(0x1da),_0x5a66e7);if(typeof _0x557442===_0xec73d1(0x1d6))return colorJSONBoolean(String(_0x557442),_0x5a66e7);if(typeof _0x557442===_0xec73d1(0x1cd))return colorJSONNumber(String(_0x557442),_0x5a66e7);if(typeof _0x557442===_0xec73d1(0x1d1))return colorJSONString(JSON['stringify'](_0x557442),_0x5a66e7);if(Array[_0xec73d1(0x1de)](_0x557442)){if(_0x557442[_0xec73d1(0x1e2)]===0x0)return'[]';const _0x56e537=_0x557442['map'](_0x200210=>colorizeJSONCompact(_0x200210,_0x5a66e7));return'['+_0x56e537[_0xec73d1(0x1d2)](',')+']';}if(typeof _0x557442===_0xec73d1(0x1d3)){const _0x21f6c9=Object['entries'](_0x557442);if(_0x21f6c9['length']===0x0)return'{}';const _0x42ca46=_0x21f6c9[_0xec73d1(0x1e3)](([_0x745eb9,_0x135102])=>{const _0x2f9768=_0xec73d1,_0x58fb38=colorJSONKey(JSON[_0x2f9768(0x1d5)](_0x745eb9),_0x5a66e7),_0x3dfd25=colorizeJSONCompact(_0x135102,_0x5a66e7);return _0x58fb38+':'+_0x3dfd25;});return'{'+_0x42ca46[_0xec73d1(0x1d2)](',')+'}';}return String(_0x557442);}export function colorizeJSON(_0x1368ef,_0x418818={},_0x419ff9=0x0){const _0x2d0329=a214_0x2b7b;if(!shouldUseColor(_0x418818))return JSON['stringify'](_0x1368ef,null,0x2);const _0x5d6a9e='\x20'[_0x2d0329(0x1ca)](_0x419ff9),_0x4e8b7f=_0x419ff9+0x2;if(_0x1368ef===null)return colorJSONNull(_0x2d0329(0x1da),_0x418818);if(typeof _0x1368ef===_0x2d0329(0x1d6))return colorJSONBoolean(String(_0x1368ef),_0x418818);if(typeof _0x1368ef==='number')return colorJSONNumber(String(_0x1368ef),_0x418818);if(typeof _0x1368ef===_0x2d0329(0x1d1))return colorJSONString(JSON[_0x2d0329(0x1d5)](_0x1368ef),_0x418818);if(Array[_0x2d0329(0x1de)](_0x1368ef)){if(_0x1368ef[_0x2d0329(0x1e2)]===0x0)return'[]';const _0x51ad18=_0x1368ef[_0x2d0329(0x1e3)](_0x57e138=>{const _0x5b3ea7=colorizeJSON(_0x57e138,_0x418818,_0x4e8b7f);return''+'\x20'['repeat'](_0x4e8b7f)+_0x5b3ea7;});return'[\x0a'+_0x51ad18[_0x2d0329(0x1d2)](',\x0a')+('\x0a'+_0x5d6a9e+']');}if(typeof _0x1368ef===_0x2d0329(0x1d3)){const _0x205ae9=Object[_0x2d0329(0x1d4)](_0x1368ef);if(_0x205ae9[_0x2d0329(0x1e2)]===0x0)return'{}';const _0x45804c=_0x205ae9[_0x2d0329(0x1e3)](([_0x2ee2eb,_0x58f016])=>{const _0x2a7785=_0x2d0329,_0x377780=colorJSONKey(JSON[_0x2a7785(0x1d5)](_0x2ee2eb),_0x418818),_0xa6bd7f=colorizeJSON(_0x58f016,_0x418818,_0x4e8b7f);return''+'\x20'[_0x2a7785(0x1ca)](_0x4e8b7f)+_0x377780+':\x20'+_0xa6bd7f;});return'{\x0a'+_0x45804c[_0x2d0329(0x1d2)](',\x0a')+('\x0a'+_0x5d6a9e+'}');}return String(_0x1368ef);}
1
+ const a214_0x375228=a214_0xbd48;(function(_0x331703,_0x1eb612){const _0x2febd3=a214_0xbd48,_0x32d7b2=_0x331703();while(!![]){try{const _0x47d9e4=-parseInt(_0x2febd3(0x17e))/0x1+parseInt(_0x2febd3(0x19d))/0x2*(parseInt(_0x2febd3(0x17d))/0x3)+parseInt(_0x2febd3(0x186))/0x4*(parseInt(_0x2febd3(0x19b))/0x5)+-parseInt(_0x2febd3(0x196))/0x6*(parseInt(_0x2febd3(0x17f))/0x7)+-parseInt(_0x2febd3(0x192))/0x8*(-parseInt(_0x2febd3(0x19c))/0x9)+-parseInt(_0x2febd3(0x190))/0xa*(-parseInt(_0x2febd3(0x191))/0xb)+parseInt(_0x2febd3(0x194))/0xc*(-parseInt(_0x2febd3(0x187))/0xd);if(_0x47d9e4===_0x1eb612)break;else _0x32d7b2['push'](_0x32d7b2['shift']());}catch(_0x39c3ff){_0x32d7b2['push'](_0x32d7b2['shift']());}}}(a214_0xf489,0xc9346));import*as a214_0x6dfda8 from'chalk';const Chalk=a214_0x6dfda8[a214_0x375228(0x188)];export function shouldUseColor(_0x1aa0c4={}){const _0x5f4cf0=a214_0x375228;if(_0x1aa0c4[_0x5f4cf0(0x184)]===!![])return![];if(_0x1aa0c4[_0x5f4cf0(0x18b)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5f4cf0(0x195)]['isTTY']??![];}export function getChalk(_0x3e751e={}){if(shouldUseColor(_0x3e751e))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1e871c,_0x487f4e={}){const _0x4a7664=a214_0x375228;return getChalk(_0x487f4e)[_0x4a7664(0x183)](_0x1e871c);}export function colorHeader(_0x5610c8,_0x2a1d50={}){const _0x5d39ce=a214_0x375228;return getChalk(_0x2a1d50)[_0x5d39ce(0x189)](_0x5610c8);}export function colorType(_0xfd519e,_0x5b625b={}){return getChalk(_0x5b625b)['dim'](_0xfd519e);}export function colorJSONKey(_0x24489e,_0x1f8244={}){const _0x3053c0=a214_0x375228;return getChalk(_0x1f8244)[_0x3053c0(0x193)](_0x24489e);}export function colorJSONString(_0x39f637,_0x28b40d={}){const _0x391d35=a214_0x375228;return getChalk(_0x28b40d)[_0x391d35(0x19a)](_0x39f637);}export function colorJSONNumber(_0xe20eac,_0x3894ef={}){return getChalk(_0x3894ef)['cyan'](_0xe20eac);}function a214_0xbd48(_0x36e710,_0x5e558e){_0x36e710=_0x36e710-0x17d;const _0xf489dd=a214_0xf489();let _0xbd488d=_0xf489dd[_0x36e710];return _0xbd488d;}export function colorJSONBoolean(_0x3cf78d,_0x49a775={}){return getChalk(_0x49a775)['yellow'](_0x3cf78d);}export function colorJSONNull(_0x32843f,_0xa82e19={}){const _0x5afaf7=a214_0x375228;return getChalk(_0xa82e19)[_0x5afaf7(0x183)](_0x32843f);}export function colorizeJSONCompact(_0x1d7b63,_0x598c00={}){const _0x245171=a214_0x375228;if(!shouldUseColor(_0x598c00))return JSON[_0x245171(0x18f)](_0x1d7b63);if(_0x1d7b63===null)return colorJSONNull(_0x245171(0x199),_0x598c00);if(typeof _0x1d7b63==='boolean')return colorJSONBoolean(String(_0x1d7b63),_0x598c00);if(typeof _0x1d7b63===_0x245171(0x181))return colorJSONNumber(String(_0x1d7b63),_0x598c00);if(typeof _0x1d7b63===_0x245171(0x185))return colorJSONString(JSON['stringify'](_0x1d7b63),_0x598c00);if(Array[_0x245171(0x18d)](_0x1d7b63)){if(_0x1d7b63[_0x245171(0x182)]===0x0)return'[]';const _0x1deeed=_0x1d7b63[_0x245171(0x18c)](_0x470636=>colorizeJSONCompact(_0x470636,_0x598c00));return'['+_0x1deeed[_0x245171(0x18a)](',')+']';}if(typeof _0x1d7b63===_0x245171(0x18e)){const _0x29fe17=Object[_0x245171(0x197)](_0x1d7b63);if(_0x29fe17['length']===0x0)return'{}';const _0x46f2c6=_0x29fe17[_0x245171(0x18c)](([_0x28990d,_0x4d8a97])=>{const _0x3593d3=_0x245171,_0x93a54a=colorJSONKey(JSON[_0x3593d3(0x18f)](_0x28990d),_0x598c00),_0x253390=colorizeJSONCompact(_0x4d8a97,_0x598c00);return _0x93a54a+':'+_0x253390;});return'{'+_0x46f2c6[_0x245171(0x18a)](',')+'}';}return String(_0x1d7b63);}export function colorizeJSON(_0x19ed1c,_0x2fa8dc={},_0x734898=0x0){const _0x72210e=a214_0x375228;if(!shouldUseColor(_0x2fa8dc))return JSON['stringify'](_0x19ed1c,null,0x2);const _0x48e526='\x20'[_0x72210e(0x180)](_0x734898),_0x3830fc=_0x734898+0x2;if(_0x19ed1c===null)return colorJSONNull(_0x72210e(0x199),_0x2fa8dc);if(typeof _0x19ed1c===_0x72210e(0x198))return colorJSONBoolean(String(_0x19ed1c),_0x2fa8dc);if(typeof _0x19ed1c===_0x72210e(0x181))return colorJSONNumber(String(_0x19ed1c),_0x2fa8dc);if(typeof _0x19ed1c===_0x72210e(0x185))return colorJSONString(JSON[_0x72210e(0x18f)](_0x19ed1c),_0x2fa8dc);if(Array[_0x72210e(0x18d)](_0x19ed1c)){if(_0x19ed1c[_0x72210e(0x182)]===0x0)return'[]';const _0x3aee9c=_0x19ed1c[_0x72210e(0x18c)](_0x6fbd65=>{const _0x53e7fa=_0x72210e,_0x189f19=colorizeJSON(_0x6fbd65,_0x2fa8dc,_0x3830fc);return''+'\x20'[_0x53e7fa(0x180)](_0x3830fc)+_0x189f19;});return'[\x0a'+_0x3aee9c['join'](',\x0a')+('\x0a'+_0x48e526+']');}if(typeof _0x19ed1c===_0x72210e(0x18e)){const _0x5362c9=Object[_0x72210e(0x197)](_0x19ed1c);if(_0x5362c9[_0x72210e(0x182)]===0x0)return'{}';const _0x5085a1=_0x5362c9[_0x72210e(0x18c)](([_0x93c3f9,_0x23f292])=>{const _0x255db2=_0x72210e,_0x26653d=colorJSONKey(JSON[_0x255db2(0x18f)](_0x93c3f9),_0x2fa8dc),_0x39de1c=colorizeJSON(_0x23f292,_0x2fa8dc,_0x3830fc);return''+'\x20'[_0x255db2(0x180)](_0x3830fc)+_0x26653d+':\x20'+_0x39de1c;});return'{\x0a'+_0x5085a1[_0x72210e(0x18a)](',\x0a')+('\x0a'+_0x48e526+'}');}return String(_0x19ed1c);}function a214_0xf489(){const _0x132081=['Chalk','cyan','join','color','map','isArray','object','stringify','579520xIStAM','121CnJhuK','272QwaBNP','blue','24nlcAQW','stdout','161970cWztcS','entries','boolean','null','green','148310EDPuRm','305874DotfZj','8pyMGWP','540102XrLltZ','198008nBKOvq','42EHQdzs','repeat','number','length','dim','noColor','string','32xeuwGj','10181054npYebX'];a214_0xf489=function(){return _0x132081;};return a214_0xf489();}
@@ -1 +1 @@
1
- function a215_0x3627(){const _0xb56d8e=['min','map','push','new','598XZptYh','green','1247LXTDQF','228564UkiXPz','unshift','fill','old','dim','2696235sebFGc','1817568ttOxWM','has','repeat','some','padStart','added','length','10152260gcTNnK','\x20-\x20','add','cyan','split','max','3yqXUEK','\x20\x20\x20','\x20\x20...','type','unchanged','\x20+\x20','1080adquBd','size','19173bEAyzJ','2189754kQFTTl','removed'];a215_0x3627=function(){return _0xb56d8e;};return a215_0x3627();}function a215_0x55c8(_0x13edec,_0x42dfb3){_0x13edec=_0x13edec-0x1b0;const _0x3627f0=a215_0x3627();let _0x55c80e=_0x3627f0[_0x13edec];return _0x55c80e;}(function(_0x45995e,_0x28e174){const _0x4b355d=a215_0x55c8,_0x2f4f9d=_0x45995e();while(!![]){try{const _0xe4c0ca=-parseInt(_0x4b355d(0x1d3))/0x1*(parseInt(_0x4b355d(0x1d1))/0x2)+-parseInt(_0x4b355d(0x1c2))/0x3*(-parseInt(_0x4b355d(0x1d4))/0x4)+parseInt(_0x4b355d(0x1b4))/0x5+-parseInt(_0x4b355d(0x1b5))/0x6+parseInt(_0x4b355d(0x1ca))/0x7*(-parseInt(_0x4b355d(0x1c8))/0x8)+-parseInt(_0x4b355d(0x1cb))/0x9+parseInt(_0x4b355d(0x1bc))/0xa;if(_0xe4c0ca===_0x28e174)break;else _0x2f4f9d['push'](_0x2f4f9d['shift']());}catch(_0x80afcd){_0x2f4f9d['push'](_0x2f4f9d['shift']());}}}(a215_0x3627,0x4ecca));import a215_0x4c6115 from'chalk';export function generateDiff(_0x14c875,_0x1e0414){const _0x43edef=a215_0x55c8,_0x4e98e7=_0x14c875[_0x43edef(0x1c0)]('\x0a'),_0x4bff20=_0x1e0414['split']('\x0a'),_0x5092f4=[],_0xec51c4=computeLCS(_0x4e98e7,_0x4bff20);let _0x31fcb7=0x0,_0x49e4b7=0x0,_0x1c0ff6=0x0;while(_0x31fcb7<_0x4e98e7[_0x43edef(0x1bb)]||_0x49e4b7<_0x4bff20['length']){if(_0x1c0ff6<_0xec51c4[_0x43edef(0x1bb)]&&_0x31fcb7<_0x4e98e7['length']&&_0x4e98e7[_0x31fcb7]===_0xec51c4[_0x1c0ff6])_0x49e4b7<_0x4bff20[_0x43edef(0x1bb)]&&_0x4bff20[_0x49e4b7]===_0xec51c4[_0x1c0ff6]?(_0x5092f4[_0x43edef(0x1cf)]({'type':_0x43edef(0x1c6),'content':_0x4e98e7[_0x31fcb7]}),_0x31fcb7++,_0x49e4b7++,_0x1c0ff6++):(_0x5092f4[_0x43edef(0x1cf)]({'type':_0x43edef(0x1ba),'content':_0x4bff20[_0x49e4b7]}),_0x49e4b7++);else{if(_0x1c0ff6<_0xec51c4[_0x43edef(0x1bb)]&&_0x49e4b7<_0x4bff20['length']&&_0x4bff20[_0x49e4b7]===_0xec51c4[_0x1c0ff6])_0x5092f4[_0x43edef(0x1cf)]({'type':_0x43edef(0x1cc),'content':_0x4e98e7[_0x31fcb7]}),_0x31fcb7++;else{if(_0x31fcb7<_0x4e98e7['length']&&(_0x1c0ff6>=_0xec51c4[_0x43edef(0x1bb)]||_0x4e98e7[_0x31fcb7]!==_0xec51c4[_0x1c0ff6]))_0x5092f4['push']({'type':_0x43edef(0x1cc),'content':_0x4e98e7[_0x31fcb7]}),_0x31fcb7++;else _0x49e4b7<_0x4bff20[_0x43edef(0x1bb)]&&(_0x5092f4['push']({'type':_0x43edef(0x1ba),'content':_0x4bff20[_0x49e4b7]}),_0x49e4b7++);}}}return _0x5092f4;}function computeLCS(_0x5153d7,_0x2cee02){const _0x31c360=a215_0x55c8,_0x5e20a9=_0x5153d7['length'],_0x4fad5e=_0x2cee02['length'],_0x5cf644=Array(_0x5e20a9+0x1)[_0x31c360(0x1b1)](null)[_0x31c360(0x1ce)](()=>Array(_0x4fad5e+0x1)[_0x31c360(0x1b1)](0x0));for(let _0xd9cd81=0x1;_0xd9cd81<=_0x5e20a9;_0xd9cd81++){for(let _0x5c07a9=0x1;_0x5c07a9<=_0x4fad5e;_0x5c07a9++){_0x5153d7[_0xd9cd81-0x1]===_0x2cee02[_0x5c07a9-0x1]?_0x5cf644[_0xd9cd81][_0x5c07a9]=_0x5cf644[_0xd9cd81-0x1][_0x5c07a9-0x1]+0x1:_0x5cf644[_0xd9cd81][_0x5c07a9]=Math[_0x31c360(0x1c1)](_0x5cf644[_0xd9cd81-0x1][_0x5c07a9],_0x5cf644[_0xd9cd81][_0x5c07a9-0x1]);}}const _0x38a2a9=[];let _0x2ce015=_0x5e20a9,_0x1930bb=_0x4fad5e;while(_0x2ce015>0x0&&_0x1930bb>0x0){if(_0x5153d7[_0x2ce015-0x1]===_0x2cee02[_0x1930bb-0x1])_0x38a2a9[_0x31c360(0x1b0)](_0x5153d7[_0x2ce015-0x1]),_0x2ce015--,_0x1930bb--;else _0x5cf644[_0x2ce015-0x1][_0x1930bb]>_0x5cf644[_0x2ce015][_0x1930bb-0x1]?_0x2ce015--:_0x1930bb--;}return _0x38a2a9;}export function formatDiffWithColors(_0x59ab14,_0x351d9f=0x3){const _0x24bce7=a215_0x55c8,_0x464be9=new Set();_0x59ab14['forEach']((_0x50413d,_0x593875)=>{const _0x363dfa=a215_0x55c8;_0x50413d[_0x363dfa(0x1c5)]!==_0x363dfa(0x1c6)&&_0x464be9[_0x363dfa(0x1be)](_0x593875);});if(_0x464be9[_0x24bce7(0x1c9)]===0x0)return'';const _0x16871a=new Set();for(const _0x429c18 of _0x464be9){for(let _0xa9033b=Math[_0x24bce7(0x1c1)](0x0,_0x429c18-_0x351d9f);_0xa9033b<=Math[_0x24bce7(0x1cd)](_0x59ab14[_0x24bce7(0x1bb)]-0x1,_0x429c18+_0x351d9f);_0xa9033b++){_0x16871a[_0x24bce7(0x1be)](_0xa9033b);}}const _0x38de8e=[];let _0x2fff09=-0x1;const _0xcdc093=_0x59ab14['length'],_0x496511=Math[_0x24bce7(0x1c1)](0x3,String(_0xcdc093)[_0x24bce7(0x1bb)]),_0x6af9c5=[];let _0xec67a4=0x0,_0x1d4d9a=0x0;for(const _0x2d778f of _0x59ab14){if(_0x2d778f['type']==='removed')_0xec67a4++,_0x6af9c5[_0x24bce7(0x1cf)]({'old':_0xec67a4,'new':0x0});else _0x2d778f[_0x24bce7(0x1c5)]===_0x24bce7(0x1ba)?(_0x1d4d9a++,_0x6af9c5[_0x24bce7(0x1cf)]({'old':0x0,'new':_0x1d4d9a})):(_0xec67a4++,_0x1d4d9a++,_0x6af9c5[_0x24bce7(0x1cf)]({'old':_0xec67a4,'new':_0x1d4d9a}));}for(let _0x28a829=0x0;_0x28a829<_0x59ab14[_0x24bce7(0x1bb)];_0x28a829++){if(!_0x16871a[_0x24bce7(0x1b6)](_0x28a829))continue;_0x2fff09!==-0x1&&_0x28a829>_0x2fff09+0x1&&_0x38de8e['push'](a215_0x4c6115[_0x24bce7(0x1bf)](_0x24bce7(0x1c4)));_0x2fff09=_0x28a829;const _0x196f71=_0x59ab14[_0x28a829],_0x3ab742=_0x6af9c5[_0x28a829],_0x143267=_0x3ab742[_0x24bce7(0x1b2)]>0x0?String(_0x3ab742[_0x24bce7(0x1b2)])[_0x24bce7(0x1b9)](_0x496511):'\x20'['repeat'](_0x496511),_0x14df67=_0x3ab742['new']>0x0?String(_0x3ab742[_0x24bce7(0x1d0)])[_0x24bce7(0x1b9)](_0x496511):'\x20'[_0x24bce7(0x1b7)](_0x496511);switch(_0x196f71['type']){case _0x24bce7(0x1cc):_0x38de8e[_0x24bce7(0x1cf)](a215_0x4c6115['red'](_0x143267+'\x20'+_0x14df67+_0x24bce7(0x1bd)+_0x196f71['content']));break;case'added':_0x38de8e[_0x24bce7(0x1cf)](a215_0x4c6115[_0x24bce7(0x1d2)](_0x143267+'\x20'+_0x14df67+_0x24bce7(0x1c7)+_0x196f71['content']));break;default:_0x38de8e[_0x24bce7(0x1cf)](a215_0x4c6115[_0x24bce7(0x1b3)](_0x143267+'\x20'+_0x14df67+_0x24bce7(0x1c3)+_0x196f71['content']));break;}}return _0x38de8e['join']('\x0a');}export function hasChanges(_0x352b09){const _0x4be5cf=a215_0x55c8;return _0x352b09[_0x4be5cf(0x1b8)](_0x548abb=>_0x548abb['type']!==_0x4be5cf(0x1c6));}
1
+ (function(_0x41f141,_0x11e246){const _0xf43db4=a215_0x3969,_0x1cfd7f=_0x41f141();while(!![]){try{const _0x392e26=-parseInt(_0xf43db4(0xbf))/0x1+parseInt(_0xf43db4(0xbb))/0x2*(-parseInt(_0xf43db4(0xc4))/0x3)+-parseInt(_0xf43db4(0xc8))/0x4+-parseInt(_0xf43db4(0xcb))/0x5+parseInt(_0xf43db4(0xb4))/0x6+parseInt(_0xf43db4(0xca))/0x7+-parseInt(_0xf43db4(0xba))/0x8*(-parseInt(_0xf43db4(0xd0))/0x9);if(_0x392e26===_0x11e246)break;else _0x1cfd7f['push'](_0x1cfd7f['shift']());}catch(_0x5b8ef0){_0x1cfd7f['push'](_0x1cfd7f['shift']());}}}(a215_0x5653,0x977d4));import a215_0x37b050 from'chalk';function a215_0x3969(_0x34b334,_0x46ef5a){_0x34b334=_0x34b334-0xb2;const _0x5653ce=a215_0x5653();let _0x396933=_0x5653ce[_0x34b334];return _0x396933;}export function generateDiff(_0x5c85c6,_0x37704a){const _0x5b56b0=a215_0x3969,_0x567497=_0x5c85c6[_0x5b56b0(0xb3)]('\x0a'),_0x427624=_0x37704a[_0x5b56b0(0xb3)]('\x0a'),_0x2a3e61=[],_0x372ed4=computeLCS(_0x567497,_0x427624);let _0x449e16=0x0,_0x11256c=0x0,_0x337dcf=0x0;while(_0x449e16<_0x567497[_0x5b56b0(0xc5)]||_0x11256c<_0x427624[_0x5b56b0(0xc5)]){if(_0x337dcf<_0x372ed4[_0x5b56b0(0xc5)]&&_0x449e16<_0x567497[_0x5b56b0(0xc5)]&&_0x567497[_0x449e16]===_0x372ed4[_0x337dcf])_0x11256c<_0x427624[_0x5b56b0(0xc5)]&&_0x427624[_0x11256c]===_0x372ed4[_0x337dcf]?(_0x2a3e61[_0x5b56b0(0xcc)]({'type':'unchanged','content':_0x567497[_0x449e16]}),_0x449e16++,_0x11256c++,_0x337dcf++):(_0x2a3e61[_0x5b56b0(0xcc)]({'type':_0x5b56b0(0xd1),'content':_0x427624[_0x11256c]}),_0x11256c++);else{if(_0x337dcf<_0x372ed4[_0x5b56b0(0xc5)]&&_0x11256c<_0x427624['length']&&_0x427624[_0x11256c]===_0x372ed4[_0x337dcf])_0x2a3e61[_0x5b56b0(0xcc)]({'type':_0x5b56b0(0xb9),'content':_0x567497[_0x449e16]}),_0x449e16++;else{if(_0x449e16<_0x567497[_0x5b56b0(0xc5)]&&(_0x337dcf>=_0x372ed4['length']||_0x567497[_0x449e16]!==_0x372ed4[_0x337dcf]))_0x2a3e61[_0x5b56b0(0xcc)]({'type':_0x5b56b0(0xb9),'content':_0x567497[_0x449e16]}),_0x449e16++;else _0x11256c<_0x427624['length']&&(_0x2a3e61[_0x5b56b0(0xcc)]({'type':'added','content':_0x427624[_0x11256c]}),_0x11256c++);}}}return _0x2a3e61;}function computeLCS(_0x32222b,_0x2d59b8){const _0x2b0c27=a215_0x3969,_0x21f073=_0x32222b[_0x2b0c27(0xc5)],_0x43b638=_0x2d59b8[_0x2b0c27(0xc5)],_0x433a8b=Array(_0x21f073+0x1)['fill'](null)['map'](()=>Array(_0x43b638+0x1)['fill'](0x0));for(let _0x3c0b07=0x1;_0x3c0b07<=_0x21f073;_0x3c0b07++){for(let _0x3f4f1a=0x1;_0x3f4f1a<=_0x43b638;_0x3f4f1a++){_0x32222b[_0x3c0b07-0x1]===_0x2d59b8[_0x3f4f1a-0x1]?_0x433a8b[_0x3c0b07][_0x3f4f1a]=_0x433a8b[_0x3c0b07-0x1][_0x3f4f1a-0x1]+0x1:_0x433a8b[_0x3c0b07][_0x3f4f1a]=Math['max'](_0x433a8b[_0x3c0b07-0x1][_0x3f4f1a],_0x433a8b[_0x3c0b07][_0x3f4f1a-0x1]);}}const _0x4f7d8d=[];let _0x5e6dc1=_0x21f073,_0x394904=_0x43b638;while(_0x5e6dc1>0x0&&_0x394904>0x0){if(_0x32222b[_0x5e6dc1-0x1]===_0x2d59b8[_0x394904-0x1])_0x4f7d8d[_0x2b0c27(0xb8)](_0x32222b[_0x5e6dc1-0x1]),_0x5e6dc1--,_0x394904--;else _0x433a8b[_0x5e6dc1-0x1][_0x394904]>_0x433a8b[_0x5e6dc1][_0x394904-0x1]?_0x5e6dc1--:_0x394904--;}return _0x4f7d8d;}export function formatDiffWithColors(_0x1d4116,_0x383632=0x3){const _0x477270=a215_0x3969,_0x2a7f98=new Set();_0x1d4116[_0x477270(0xd3)]((_0x4ee1c3,_0x487b7d)=>{const _0x379048=_0x477270;_0x4ee1c3[_0x379048(0xbd)]!==_0x379048(0xce)&&_0x2a7f98[_0x379048(0xc2)](_0x487b7d);});if(_0x2a7f98[_0x477270(0xd2)]===0x0)return'';const _0x261eb8=new Set();for(const _0xfed8c4 of _0x2a7f98){for(let _0x8ae179=Math['max'](0x0,_0xfed8c4-_0x383632);_0x8ae179<=Math['min'](_0x1d4116['length']-0x1,_0xfed8c4+_0x383632);_0x8ae179++){_0x261eb8[_0x477270(0xc2)](_0x8ae179);}}const _0x3e6319=[];let _0x2d0480=-0x1;const _0xcf0fee=_0x1d4116['length'],_0x49879f=Math[_0x477270(0xb7)](0x3,String(_0xcf0fee)[_0x477270(0xc5)]),_0x22ada8=[];let _0x413cca=0x0,_0x3b5b5e=0x0;for(const _0x1ff54f of _0x1d4116){if(_0x1ff54f['type']===_0x477270(0xb9))_0x413cca++,_0x22ada8['push']({'old':_0x413cca,'new':0x0});else _0x1ff54f[_0x477270(0xbd)]===_0x477270(0xd1)?(_0x3b5b5e++,_0x22ada8[_0x477270(0xcc)]({'old':0x0,'new':_0x3b5b5e})):(_0x413cca++,_0x3b5b5e++,_0x22ada8[_0x477270(0xcc)]({'old':_0x413cca,'new':_0x3b5b5e}));}for(let _0x4cc350=0x0;_0x4cc350<_0x1d4116['length'];_0x4cc350++){if(!_0x261eb8['has'](_0x4cc350))continue;_0x2d0480!==-0x1&&_0x4cc350>_0x2d0480+0x1&&_0x3e6319['push'](a215_0x37b050[_0x477270(0xcf)]('\x20\x20...'));_0x2d0480=_0x4cc350;const _0x2ed69c=_0x1d4116[_0x4cc350],_0x4e4cb9=_0x22ada8[_0x4cc350],_0x3537a1=_0x4e4cb9[_0x477270(0xb5)]>0x0?String(_0x4e4cb9['old'])[_0x477270(0xb2)](_0x49879f):'\x20'['repeat'](_0x49879f),_0x34a9fd=_0x4e4cb9[_0x477270(0xbc)]>0x0?String(_0x4e4cb9['new'])['padStart'](_0x49879f):'\x20'['repeat'](_0x49879f);switch(_0x2ed69c[_0x477270(0xbd)]){case'removed':_0x3e6319[_0x477270(0xcc)](a215_0x37b050[_0x477270(0xc7)](_0x3537a1+'\x20'+_0x34a9fd+_0x477270(0xb6)+_0x2ed69c['content']));break;case'added':_0x3e6319[_0x477270(0xcc)](a215_0x37b050[_0x477270(0xc1)](_0x3537a1+'\x20'+_0x34a9fd+_0x477270(0xcd)+_0x2ed69c['content']));break;default:_0x3e6319[_0x477270(0xcc)](a215_0x37b050[_0x477270(0xc3)](_0x3537a1+'\x20'+_0x34a9fd+_0x477270(0xbe)+_0x2ed69c[_0x477270(0xc6)]));break;}}return _0x3e6319[_0x477270(0xc0)]('\x0a');}export function hasChanges(_0x18de8f){const _0x1bcb38=a215_0x3969;return _0x18de8f[_0x1bcb38(0xc9)](_0xfff72d=>_0xfff72d[_0x1bcb38(0xbd)]!==_0x1bcb38(0xce));}function a215_0x5653(){const _0x56e847=['add','dim','2979xXvCKv','length','content','red','173296nisAOP','some','7336273tmxMXp','4802955QohAvR','push','\x20+\x20','unchanged','cyan','189RfEqbS','added','size','forEach','padStart','split','2543586NRHPCf','old','\x20-\x20','max','unshift','removed','449352mUwqeu','1318ZwWauW','new','type','\x20\x20\x20','372717PncpWK','join','green'];a215_0x5653=function(){return _0x56e847;};return a215_0x5653();}
@@ -1 +1 @@
1
- (function(_0x55a876,_0xc015a2){const _0x47507c=a216_0x5859,_0x7c6177=_0x55a876();while(!![]){try{const _0x4b290c=parseInt(_0x47507c(0x19b))/0x1*(parseInt(_0x47507c(0x19d))/0x2)+-parseInt(_0x47507c(0x18f))/0x3+-parseInt(_0x47507c(0x194))/0x4*(-parseInt(_0x47507c(0x196))/0x5)+parseInt(_0x47507c(0x18d))/0x6*(parseInt(_0x47507c(0x192))/0x7)+-parseInt(_0x47507c(0x19a))/0x8+parseInt(_0x47507c(0x18e))/0x9+-parseInt(_0x47507c(0x198))/0xa;if(_0x4b290c===_0xc015a2)break;else _0x7c6177['push'](_0x7c6177['shift']());}catch(_0x5a2996){_0x7c6177['push'](_0x7c6177['shift']());}}}(a216_0x23d0,0x5dc14));import*as a216_0x5be401 from'node:fs';function a216_0x5859(_0x518fd9,_0x547bb0){_0x518fd9=_0x518fd9-0x188;const _0x23d0e9=a216_0x23d0();let _0x5859d5=_0x23d0e9[_0x518fd9];return _0x5859d5;}import*as a216_0x2cfbf2 from'node:path';export function setSecureFilePermissions(_0x7822ed){const _0x371d73=a216_0x5859;try{a216_0x5be401[_0x371d73(0x197)](_0x7822ed,0x180);}catch{console[_0x371d73(0x191)](_0x371d73(0x18c)+_0x7822ed);}}export function setSecureDirectoryPermissions(_0x26898b){const _0x4b0082=a216_0x5859;try{a216_0x5be401[_0x4b0082(0x197)](_0x26898b,0x1c0);}catch{console[_0x4b0082(0x191)](_0x4b0082(0x18c)+_0x26898b);}}function a216_0x23d0(){const _0xc8c7b0=[').\x20','4xTSOAQ','existsSync','1937215mZMohU','chmodSync','4763870MNiLtO','Should\x20be\x200600\x20or\x20more\x20restrictive.','3330208eKwupi','13FOhjry','mkdirSync','46304GFmDnM','toString','writeFileSync','mode','dirname','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','379986GlaMHG','297900zjtwJo','614424IXHwTa','Warning:\x20','warn','84eZSRmS'];a216_0x23d0=function(){return _0xc8c7b0;};return a216_0x23d0();}export function createSecureDirectory(_0xe70eb1){const _0x2ac71b=a216_0x5859;!a216_0x5be401[_0x2ac71b(0x195)](_0xe70eb1)&&(a216_0x5be401[_0x2ac71b(0x19c)](_0xe70eb1,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xe70eb1));}export function validateSecureFilePermissions(_0x5dfde1){const _0x35e030=a216_0x5859;try{const _0x308ff6=a216_0x5be401['statSync'](_0x5dfde1),_0x2b4780=_0x308ff6[_0x35e030(0x18a)]&0x1ff,_0x5a56ea=(_0x2b4780&0x3f)!==0x0;if(_0x5a56ea)return console[_0x35e030(0x191)](_0x35e030(0x190)+_0x5dfde1+'\x20has\x20insecure\x20permissions\x20('+_0x2b4780[_0x35e030(0x188)](0x8)+_0x35e030(0x193)+_0x35e030(0x199)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xe8ea6e,_0x2dad08){const _0x1d958f=a216_0x5859,_0x15430e=a216_0x2cfbf2[_0x1d958f(0x18b)](_0xe8ea6e);createSecureDirectory(_0x15430e),a216_0x5be401[_0x1d958f(0x189)](_0xe8ea6e,_0x2dad08,{'mode':0x180}),setSecureFilePermissions(_0xe8ea6e);}
1
+ function a216_0x4b09(){const _0x4cc11f=['\x20has\x20insecure\x20permissions\x20(','dirname','127150jezhAs','635514OGklbP','7715259WzVkrV','10FfnThZ','259902PVwisS','writeFileSync','503093QVzyeR','Should\x20be\x200600\x20or\x20more\x20restrictive.',').\x20','existsSync','Warning:\x20','warn','chmodSync','mkdirSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','7YQmnTr','mode','25FaLyxH','4363976hyzrXL','313480JjFUol','statSync'];a216_0x4b09=function(){return _0x4cc11f;};return a216_0x4b09();}(function(_0x429b12,_0x231243){const _0x79f832=a216_0x3b69,_0x5b5dba=_0x429b12();while(!![]){try{const _0x21486e=-parseInt(_0x79f832(0x106))/0x1+-parseInt(_0x79f832(0x100))/0x2+parseInt(_0x79f832(0x104))/0x3+-parseInt(_0x79f832(0xfc))/0x4+-parseInt(_0x79f832(0xfa))/0x5*(parseInt(_0x79f832(0x101))/0x6)+-parseInt(_0x79f832(0xf8))/0x7*(-parseInt(_0x79f832(0xfb))/0x8)+parseInt(_0x79f832(0x102))/0x9*(parseInt(_0x79f832(0x103))/0xa);if(_0x21486e===_0x231243)break;else _0x5b5dba['push'](_0x5b5dba['shift']());}catch(_0x1994ea){_0x5b5dba['push'](_0x5b5dba['shift']());}}}(a216_0x4b09,0x4cd7d));import*as a216_0x29e85d from'node:fs';function a216_0x3b69(_0x310b16,_0x2759de){_0x310b16=_0x310b16-0xf6;const _0x4b0949=a216_0x4b09();let _0x3b6979=_0x4b0949[_0x310b16];return _0x3b6979;}import*as a216_0x337559 from'node:path';export function setSecureFilePermissions(_0x5f515b){const _0x25b902=a216_0x3b69;try{a216_0x29e85d[_0x25b902(0x10c)](_0x5f515b,0x180);}catch{console[_0x25b902(0x10b)](_0x25b902(0xf7)+_0x5f515b);}}export function setSecureDirectoryPermissions(_0x5e38a5){const _0x5ec4f3=a216_0x3b69;try{a216_0x29e85d[_0x5ec4f3(0x10c)](_0x5e38a5,0x1c0);}catch{console['warn'](_0x5ec4f3(0xf7)+_0x5e38a5);}}export function createSecureDirectory(_0x173509){const _0x377ce0=a216_0x3b69;!a216_0x29e85d[_0x377ce0(0x109)](_0x173509)&&(a216_0x29e85d[_0x377ce0(0xf6)](_0x173509,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x173509));}export function validateSecureFilePermissions(_0x6ef5aa){const _0x3dfefa=a216_0x3b69;try{const _0x832d59=a216_0x29e85d[_0x3dfefa(0xfd)](_0x6ef5aa),_0x546fde=_0x832d59[_0x3dfefa(0xf9)]&0x1ff,_0x14aa2b=(_0x546fde&0x3f)!==0x0;if(_0x14aa2b)return console[_0x3dfefa(0x10b)](_0x3dfefa(0x10a)+_0x6ef5aa+_0x3dfefa(0xfe)+_0x546fde['toString'](0x8)+_0x3dfefa(0x108)+_0x3dfefa(0x107)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3ac141,_0x475290){const _0x1e216c=a216_0x3b69,_0x109882=a216_0x337559[_0x1e216c(0xff)](_0x3ac141);createSecureDirectory(_0x109882),a216_0x29e85d[_0x1e216c(0x105)](_0x3ac141,_0x475290,{'mode':0x180}),setSecureFilePermissions(_0x3ac141);}
@@ -1 +1 @@
1
- (function(_0x155e1e,_0x35efc7){const _0x1268ba=a217_0x22e8,_0x1580b2=_0x155e1e();while(!![]){try{const _0x3df219=parseInt(_0x1268ba(0xfc))/0x1*(parseInt(_0x1268ba(0x104))/0x2)+parseInt(_0x1268ba(0xfd))/0x3+-parseInt(_0x1268ba(0x102))/0x4*(parseInt(_0x1268ba(0xfe))/0x5)+parseInt(_0x1268ba(0xf6))/0x6+parseInt(_0x1268ba(0xf8))/0x7+parseInt(_0x1268ba(0xf5))/0x8+-parseInt(_0x1268ba(0x101))/0x9*(parseInt(_0x1268ba(0xfb))/0xa);if(_0x3df219===_0x35efc7)break;else _0x1580b2['push'](_0x1580b2['shift']());}catch(_0x31cf30){_0x1580b2['push'](_0x1580b2['shift']());}}}(a217_0x1bda,0xb5b37));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a217_0x1bda(){const _0x2214ff=['13231990kJfxLy','63442BLIskA','1613151HsaLgL','5RyLHXs','File\x20\x27','\x27\x20not\x20found','18mmyHPp','191116UwerUe','\x27:\x20','18sLpLxm','message','11385104WSuDbY','4233516XaVZNl','NOT_FOUND','1407035qNyKyA','utf-8','Permission\x20denied\x20reading\x20file\x20\x27'];a217_0x1bda=function(){return _0x2214ff;};return a217_0x1bda();}function a217_0x22e8(_0x252aea,_0x5501cf){_0x252aea=_0x252aea-0xf5;const _0x1bda08=a217_0x1bda();let _0x22e8d3=_0x1bda08[_0x252aea];return _0x22e8d3;}export function readFileContent(_0x4d1ede){const _0x367b93=a217_0x22e8;try{return readFileSync(_0x4d1ede,_0x367b93(0xf9));}catch(_0x4c0695){const _0x1bed61=_0x4c0695['code'];if(_0x1bed61==='ENOENT')throw new SDKError(ErrorCode[_0x367b93(0xf7)],_0x367b93(0xff)+_0x4d1ede+_0x367b93(0x100),_0x4c0695);else{if(_0x1bed61==='EACCES')throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x367b93(0xfa)+_0x4d1ede+'\x27',_0x4c0695);else throw new SDKError(ErrorCode['INTERNAL'],'Error\x20reading\x20file\x20\x27'+_0x4d1ede+_0x367b93(0x103)+_0x4c0695[_0x367b93(0x105)],_0x4c0695);}}}
1
+ (function(_0x38077f,_0x2b874d){const _0x3f92d5=a217_0x5d98,_0x2b0e8f=_0x38077f();while(!![]){try{const _0x4b4efc=parseInt(_0x3f92d5(0x1b9))/0x1*(-parseInt(_0x3f92d5(0x1b7))/0x2)+-parseInt(_0x3f92d5(0x1b4))/0x3*(parseInt(_0x3f92d5(0x1bf))/0x4)+parseInt(_0x3f92d5(0x1af))/0x5*(parseInt(_0x3f92d5(0x1b6))/0x6)+parseInt(_0x3f92d5(0x1ba))/0x7+parseInt(_0x3f92d5(0x1c0))/0x8*(parseInt(_0x3f92d5(0x1c1))/0x9)+-parseInt(_0x3f92d5(0x1c3))/0xa+-parseInt(_0x3f92d5(0x1bb))/0xb;if(_0x4b4efc===_0x2b874d)break;else _0x2b0e8f['push'](_0x2b0e8f['shift']());}catch(_0x3adc6a){_0x2b0e8f['push'](_0x2b0e8f['shift']());}}}(a217_0x1099,0x2fd0c));function a217_0x5d98(_0xffbb83,_0xc4073b){_0xffbb83=_0xffbb83-0x1af;const _0x1099bc=a217_0x1099();let _0x5d988e=_0x1099bc[_0xffbb83];return _0x5d988e;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a217_0x1099(){const _0x3427c5=['27gZQmRs','EACCES','24iGNawQ','12AdqXWd','utf-8','3847RTQiqb','118293PFNzfE','1071180EbzYKJ','code','Error\x20reading\x20file\x20\x27','File\x20\x27','86736pZnxzs','30568TOBdwR','585PNaDLu','\x27:\x20','427220yfcrlq','NOT_FOUND','INTERNAL','ENOENT','361160stthEF','message','PERMISSION_DENIED','\x27\x20not\x20found','Permission\x20denied\x20reading\x20file\x20\x27'];a217_0x1099=function(){return _0x3427c5;};return a217_0x1099();}export function readFileContent(_0x55061b){const _0x3cde71=a217_0x5d98;try{return readFileSync(_0x55061b,_0x3cde71(0x1b8));}catch(_0x36b598){const _0x2499e8=_0x36b598[_0x3cde71(0x1bc)];if(_0x2499e8===_0x3cde71(0x1c6))throw new SDKError(ErrorCode[_0x3cde71(0x1c4)],_0x3cde71(0x1be)+_0x55061b+_0x3cde71(0x1b2),_0x36b598);else{if(_0x2499e8===_0x3cde71(0x1b5))throw new SDKError(ErrorCode[_0x3cde71(0x1b1)],_0x3cde71(0x1b3)+_0x55061b+'\x27',_0x36b598);else throw new SDKError(ErrorCode[_0x3cde71(0x1c5)],_0x3cde71(0x1bd)+_0x55061b+_0x3cde71(0x1c2)+_0x36b598[_0x3cde71(0x1b0)],_0x36b598);}}}
@@ -1 +1 @@
1
- function a218_0x1e81(_0x1bc2cb,_0x1d04cb){_0x1bc2cb=_0x1bc2cb-0x1d1;const _0x268d64=a218_0x268d();let _0x1e81d5=_0x268d64[_0x1bc2cb];return _0x1e81d5;}(function(_0x55d8cc,_0x5da755){const _0x1a3ff3=a218_0x1e81,_0x2b91b6=_0x55d8cc();while(!![]){try{const _0x21dd0b=-parseInt(_0x1a3ff3(0x1e6))/0x1+parseInt(_0x1a3ff3(0x1d2))/0x2+parseInt(_0x1a3ff3(0x1e7))/0x3+-parseInt(_0x1a3ff3(0x1d1))/0x4+-parseInt(_0x1a3ff3(0x1d5))/0x5*(-parseInt(_0x1a3ff3(0x1e0))/0x6)+-parseInt(_0x1a3ff3(0x1e5))/0x7+-parseInt(_0x1a3ff3(0x1e8))/0x8;if(_0x21dd0b===_0x5da755)break;else _0x2b91b6['push'](_0x2b91b6['shift']());}catch(_0x1bb6ef){_0x2b91b6['push'](_0x2b91b6['shift']());}}}(a218_0x268d,0x80ce5));import*as a218_0x52e994 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x29213b,_0x484055,_0x9c1805){const _0x5ebb4a=a218_0x1e81,_0x3926b5=_0x29213b+'/'+_0x484055,_0x257210=cache['get'](_0x3926b5);if(_0x257210&&Date['now']()-_0x257210[_0x5ebb4a(0x1d8)]<CACHE_TTL_MS)return Promise[_0x5ebb4a(0x1ea)](_0x257210[_0x5ebb4a(0x1e9)]);return new Promise((_0x53e919,_0x33b9fc)=>{const _0x15e3fe=_0x5ebb4a,_0x4f4968={'hostname':_0x15e3fe(0x1d3),'path':_0x15e3fe(0x1df)+_0x29213b+'/'+_0x484055+'/releases?per_page=20','headers':{'User-Agent':_0x9c1805,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x132838=a218_0x52e994[_0x15e3fe(0x1de)](_0x4f4968,_0x3c8460=>{const _0x46ec0d=_0x15e3fe;let _0x31e7b6='';_0x3c8460['on']('data',_0x13082f=>{_0x31e7b6+=_0x13082f['toString']();}),_0x3c8460['on'](_0x46ec0d(0x1dd),()=>{const _0x33dee5=_0x46ec0d;if(_0x3c8460[_0x33dee5(0x1e1)]!==0xc8){_0x33b9fc(new Error(_0x33dee5(0x1d6)+_0x3c8460[_0x33dee5(0x1e1)]+':\x20'+_0x31e7b6[_0x33dee5(0x1d9)](0x0,0xc8)));return;}try{const _0x36dac0=JSON[_0x33dee5(0x1d7)](_0x31e7b6);cache['set'](_0x3926b5,{'releases':_0x36dac0,'fetchedAt':Date[_0x33dee5(0x1e2)]()}),_0x53e919(_0x36dac0);}catch(_0x1b1850){_0x33b9fc(_0x1b1850);}});});_0x132838['on'](_0x15e3fe(0x1e4),()=>{const _0x5a0e1f=_0x15e3fe;_0x132838['destroy'](),_0x33b9fc(new Error(_0x5a0e1f(0x1db)+REQUEST_TIMEOUT_MS+'ms'));}),_0x132838['on'](_0x15e3fe(0x1dc),_0x33b9fc);});}export async function resolveReleaseTag(_0x41d0b,_0x573ee3,_0x3cebbb,_0x6c7a03){const _0x1acf52=a218_0x1e81;if(_0x41d0b===_0x1acf52(0x1e3))return null;const _0x4f2cf2=await fetchGitHubReleases(_0x573ee3,_0x3cebbb,_0x6c7a03);if(_0x4f2cf2[_0x1acf52(0x1da)]===0x0)return null;const _0x5218a2=_0x4f2cf2['find'](_0x4ef827=>!_0x4ef827[_0x1acf52(0x1d4)]);return _0x5218a2?_0x5218a2['tag_name']:null;}function a218_0x268d(){const _0x5a92bd=['prerelease','740SuiAIJ','GitHub\x20API\x20returned\x20','parse','fetchedAt','slice','length','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','error','end','get','/repos/','23742TAnbqr','statusCode','now','next','timeout','1539678rKVMbe','62000fHVkCe','2881053GrbHiG','7655648jgObLl','releases','resolve','2157916WBFJaw','1519982TssHOR','api.github.com'];a218_0x268d=function(){return _0x5a92bd;};return a218_0x268d();}
1
+ function a218_0x4aec(){const _0x4949c3=['api.github.com','toString','timeout','286KpWUaq','4kvEYZd','42FDNrsT','1560936MuFkON','/repos/','statusCode','end','prerelease','next','tag_name','slice','application/vnd.github+json','destroy','3877660cfVBxg','7904SCjVPL','GitHub\x20API\x20returned\x20','parse','766970HrdMIU','get','releases','fetchedAt','4984098YyeCdr','resolve','1215ELNORs','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','975372teKUod','data','1497297rofWWa','now'];a218_0x4aec=function(){return _0x4949c3;};return a218_0x4aec();}(function(_0x5275ac,_0x2d1dd2){const _0x3cba8c=a218_0x445e,_0x414592=_0x5275ac();while(!![]){try{const _0x1ea1ec=-parseInt(_0x3cba8c(0x1ad))/0x1+parseInt(_0x3cba8c(0x195))/0x2+parseInt(_0x3cba8c(0x1a7))/0x3*(parseInt(_0x3cba8c(0x1b3))/0x4)+parseInt(_0x3cba8c(0x19f))/0x5+parseInt(_0x3cba8c(0x1ab))/0x6*(parseInt(_0x3cba8c(0x1b4))/0x7)+parseInt(_0x3cba8c(0x1a0))/0x8*(parseInt(_0x3cba8c(0x1a9))/0x9)+parseInt(_0x3cba8c(0x1a3))/0xa*(-parseInt(_0x3cba8c(0x1b2))/0xb);if(_0x1ea1ec===_0x2d1dd2)break;else _0x414592['push'](_0x414592['shift']());}catch(_0x3f0fb4){_0x414592['push'](_0x414592['shift']());}}}(a218_0x4aec,0xcbc8b));import*as a218_0x5d5916 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a218_0x445e(_0x545a37,_0x55561a){_0x545a37=_0x545a37-0x195;const _0x4aec93=a218_0x4aec();let _0x445ecf=_0x4aec93[_0x545a37];return _0x445ecf;}export function fetchGitHubReleases(_0x4ed493,_0x4c3bf6,_0x7093e5){const _0x196dc3=a218_0x445e,_0x109d18=_0x4ed493+'/'+_0x4c3bf6,_0x162857=cache[_0x196dc3(0x1a4)](_0x109d18);if(_0x162857&&Date[_0x196dc3(0x1ae)]()-_0x162857[_0x196dc3(0x1a6)]<CACHE_TTL_MS)return Promise[_0x196dc3(0x1a8)](_0x162857[_0x196dc3(0x1a5)]);return new Promise((_0x386913,_0x15b6ef)=>{const _0x180036=_0x196dc3,_0x2f7a0d={'hostname':_0x180036(0x1af),'path':_0x180036(0x196)+_0x4ed493+'/'+_0x4c3bf6+'/releases?per_page=20','headers':{'User-Agent':_0x7093e5,'Accept':_0x180036(0x19d)},'timeout':REQUEST_TIMEOUT_MS},_0x49c518=a218_0x5d5916[_0x180036(0x1a4)](_0x2f7a0d,_0x1e73d6=>{const _0x3dd68d=_0x180036;let _0x4ac720='';_0x1e73d6['on'](_0x3dd68d(0x1ac),_0x37d450=>{const _0x1cfc0b=_0x3dd68d;_0x4ac720+=_0x37d450[_0x1cfc0b(0x1b0)]();}),_0x1e73d6['on'](_0x3dd68d(0x198),()=>{const _0x2db80c=_0x3dd68d;if(_0x1e73d6[_0x2db80c(0x197)]!==0xc8){_0x15b6ef(new Error(_0x2db80c(0x1a1)+_0x1e73d6[_0x2db80c(0x197)]+':\x20'+_0x4ac720[_0x2db80c(0x19c)](0x0,0xc8)));return;}try{const _0x2709a3=JSON[_0x2db80c(0x1a2)](_0x4ac720);cache['set'](_0x109d18,{'releases':_0x2709a3,'fetchedAt':Date[_0x2db80c(0x1ae)]()}),_0x386913(_0x2709a3);}catch(_0x177c13){_0x15b6ef(_0x177c13);}});});_0x49c518['on'](_0x180036(0x1b1),()=>{const _0x52b831=_0x180036;_0x49c518[_0x52b831(0x19e)](),_0x15b6ef(new Error(_0x52b831(0x1aa)+REQUEST_TIMEOUT_MS+'ms'));}),_0x49c518['on']('error',_0x15b6ef);});}export async function resolveReleaseTag(_0x392d5e,_0x22b568,_0x59fc22,_0x163b63){const _0x36863a=a218_0x445e;if(_0x392d5e===_0x36863a(0x19a))return null;const _0x20a664=await fetchGitHubReleases(_0x22b568,_0x59fc22,_0x163b63);if(_0x20a664['length']===0x0)return null;const _0x3979b9=_0x20a664['find'](_0x149eee=>!_0x149eee[_0x36863a(0x199)]);return _0x3979b9?_0x3979b9[_0x36863a(0x19b)]:null;}