@treasuredata/tdx 0.8.10 → 0.8.12

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 (147) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +2 -2
  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/client/cdp-api-client.d.ts +10 -1
  8. package/dist/client/cdp-api-client.d.ts.map +1 -1
  9. package/dist/client/cdp-api-client.js +1 -1
  10. package/dist/client/cdp-api-client.js.map +1 -1
  11. package/dist/client/engage-api-client.js +1 -1
  12. package/dist/client/http-client.js +1 -1
  13. package/dist/client/llm-api-client.js +1 -1
  14. package/dist/client/rate-limiter.js +1 -1
  15. package/dist/client/td-api-client.js +1 -1
  16. package/dist/client/trino-api-client.js +1 -1
  17. package/dist/client/workflow-client.js +1 -1
  18. package/dist/commands/activations.js +1 -1
  19. package/dist/commands/api-command.js +1 -1
  20. package/dist/commands/auth-command.js +1 -1
  21. package/dist/commands/chat-command.js +1 -1
  22. package/dist/commands/claude-command.d.ts +23 -0
  23. package/dist/commands/claude-command.d.ts.map +1 -1
  24. package/dist/commands/claude-command.js +1 -1
  25. package/dist/commands/claude-command.js.map +1 -1
  26. package/dist/commands/claude-statusline-command.js +1 -1
  27. package/dist/commands/claude-usage-command.js +1 -1
  28. package/dist/commands/command.js +1 -1
  29. package/dist/commands/connection-command.js +1 -1
  30. package/dist/commands/context-command.js +1 -1
  31. package/dist/commands/databases.js +1 -1
  32. package/dist/commands/describe.js +1 -1
  33. package/dist/commands/engage-command.js +1 -1
  34. package/dist/commands/job-command.js +1 -1
  35. package/dist/commands/journey-command.d.ts +12 -0
  36. package/dist/commands/journey-command.d.ts.map +1 -1
  37. package/dist/commands/journey-command.js +1 -1
  38. package/dist/commands/journey-command.js.map +1 -1
  39. package/dist/commands/llm-command.js +1 -1
  40. package/dist/commands/llm-proxy.js +1 -1
  41. package/dist/commands/parent-segment-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pull-command.js +1 -1
  48. package/dist/commands/segment-push-command.d.ts.map +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-push-command.js.map +1 -1
  51. package/dist/commands/segment-update-command.js +1 -1
  52. package/dist/commands/segment-use-command.js +1 -1
  53. package/dist/commands/segments.d.ts.map +1 -1
  54. package/dist/commands/segments.js +1 -1
  55. package/dist/commands/segments.js.map +1 -1
  56. package/dist/commands/show.js +1 -1
  57. package/dist/commands/tables.js +1 -1
  58. package/dist/commands/use-command.js +1 -1
  59. package/dist/commands/user-command.js +1 -1
  60. package/dist/commands/workflow-command.js +1 -1
  61. package/dist/core/auth.js +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/connection-cache.js +1 -1
  64. package/dist/core/credential-cache.js +1 -1
  65. package/dist/core/global-context.js +1 -1
  66. package/dist/core/keychain.js +1 -1
  67. package/dist/core/profile.js +1 -1
  68. package/dist/core/project-config.js +1 -1
  69. package/dist/core/session.js +1 -1
  70. package/dist/core/user-cache.js +1 -1
  71. package/dist/index.js +1 -1
  72. package/dist/proxy/anthropic-adapter.js +1 -1
  73. package/dist/proxy/claude-usage-tracker.js +1 -1
  74. package/dist/proxy/context-signature.js +1 -1
  75. package/dist/proxy/conversation-utils.js +1 -1
  76. package/dist/proxy/server.js +1 -1
  77. package/dist/proxy/session-cache.js +1 -1
  78. package/dist/sdk/api.js +1 -1
  79. package/dist/sdk/connection.js +1 -1
  80. package/dist/sdk/engage.js +1 -1
  81. package/dist/sdk/errors.d.ts +2 -0
  82. package/dist/sdk/errors.d.ts.map +1 -1
  83. package/dist/sdk/errors.js +1 -1
  84. package/dist/sdk/errors.js.map +1 -1
  85. package/dist/sdk/index.js +1 -1
  86. package/dist/sdk/job.js +1 -1
  87. package/dist/sdk/journey.d.ts +15 -1
  88. package/dist/sdk/journey.d.ts.map +1 -1
  89. package/dist/sdk/journey.js +1 -1
  90. package/dist/sdk/journey.js.map +1 -1
  91. package/dist/sdk/llm.js +1 -1
  92. package/dist/sdk/query.js +1 -1
  93. package/dist/sdk/segment/child-segment-yaml.d.ts +5 -1
  94. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  95. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  96. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  97. package/dist/sdk/segment/journey-yaml.d.ts +18 -1
  98. package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
  99. package/dist/sdk/segment/journey-yaml.js +1 -1
  100. package/dist/sdk/segment/journey-yaml.js.map +1 -1
  101. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  102. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  103. package/dist/sdk/segment.js +1 -1
  104. package/dist/sdk/user.js +1 -1
  105. package/dist/sdk/workflow.js +1 -1
  106. package/dist/types/cdp.d.ts +37 -0
  107. package/dist/types/cdp.d.ts.map +1 -1
  108. package/dist/types/endpoints.js +1 -1
  109. package/dist/types/index.d.ts +1 -1
  110. package/dist/types/index.d.ts.map +1 -1
  111. package/dist/types/index.js +1 -1
  112. package/dist/utils/agent-ref-parser.js +1 -1
  113. package/dist/utils/async.js +1 -1
  114. package/dist/utils/chat-cache.js +1 -1
  115. package/dist/utils/colors.js +1 -1
  116. package/dist/utils/command-output.js +1 -1
  117. package/dist/utils/constants.js +1 -1
  118. package/dist/utils/diff.js +1 -1
  119. package/dist/utils/fields-display.js +1 -1
  120. package/dist/utils/file-permissions.js +1 -1
  121. package/dist/utils/format-detector.js +1 -1
  122. package/dist/utils/formatters.js +1 -1
  123. package/dist/utils/journey-utils.js +1 -1
  124. package/dist/utils/json-loader.js +1 -1
  125. package/dist/utils/llm-backup-utils.js +1 -1
  126. package/dist/utils/model-aliases.js +1 -1
  127. package/dist/utils/model-factors.js +1 -1
  128. package/dist/utils/option-validation.js +1 -1
  129. package/dist/utils/port.js +1 -1
  130. package/dist/utils/process.js +1 -1
  131. package/dist/utils/prompt.js +1 -1
  132. package/dist/utils/segment-path-parser.js +1 -1
  133. package/dist/utils/segment-ref-parser.js +1 -1
  134. package/dist/utils/spinner.js +1 -1
  135. package/dist/utils/sql-parser.js +1 -1
  136. package/dist/utils/sse-parser.js +1 -1
  137. package/dist/utils/string-utils.js +1 -1
  138. package/dist/utils/table-ref-parser.js +1 -1
  139. package/dist/utils/tdx-config.js +1 -1
  140. package/dist/utils/tdx-logger.js +1 -1
  141. package/dist/utils/tree-formatter.d.ts +2 -0
  142. package/dist/utils/tree-formatter.d.ts.map +1 -1
  143. package/dist/utils/tree-formatter.js +1 -1
  144. package/dist/utils/tree-formatter.js.map +1 -1
  145. package/dist/utils/version-check.js +1 -1
  146. package/dist/utils/workflow-utils.js +1 -1
  147. package/package.json +1 -1
@@ -1 +1 @@
1
- const a81_0x54f860=a81_0x8f19;(function(_0xf011f8,_0x27eec7){const _0x37ff21=a81_0x8f19,_0x6ff0ba=_0xf011f8();while(!![]){try{const _0x5db0ea=-parseInt(_0x37ff21(0x141))/0x1+-parseInt(_0x37ff21(0xff))/0x2*(parseInt(_0x37ff21(0x13d))/0x3)+parseInt(_0x37ff21(0xf7))/0x4+parseInt(_0x37ff21(0x11e))/0x5*(parseInt(_0x37ff21(0x105))/0x6)+-parseInt(_0x37ff21(0x132))/0x7+parseInt(_0x37ff21(0x124))/0x8*(-parseInt(_0x37ff21(0x10e))/0x9)+-parseInt(_0x37ff21(0x100))/0xa*(-parseInt(_0x37ff21(0x114))/0xb);if(_0x5db0ea===_0x27eec7)break;else _0x6ff0ba['push'](_0x6ff0ba['shift']());}catch(_0x204504){_0x6ff0ba['push'](_0x6ff0ba['shift']());}}}(a81_0x1c11,0xe2215));export const TD_ENDPOINTS={'us01':a81_0x54f860(0x131),'jp01':a81_0x54f860(0x117),'eu01':a81_0x54f860(0x112),'ap02':a81_0x54f860(0x12c),'ap03':a81_0x54f860(0xf8),'dev-us01':a81_0x54f860(0x12f),'dev-eu01':a81_0x54f860(0x11d),'stg-us01':a81_0x54f860(0x13e),'stg-jp01':a81_0x54f860(0x107),'stg-ap03':a81_0x54f860(0x120)};export const CDP_ENDPOINTS={'us01':'https://api-cdp.treasuredata.com','jp01':a81_0x54f860(0x12d),'eu01':'https://api-cdp.eu01.treasuredata.com','ap02':a81_0x54f860(0xfa),'ap03':a81_0x54f860(0xf6),'dev-us01':a81_0x54f860(0x133),'dev-eu01':a81_0x54f860(0x13c),'stg-us01':a81_0x54f860(0x122),'stg-jp01':a81_0x54f860(0x125),'stg-ap03':'https://api-staging-cdp.ap03.treasuredata.com'};export const WORKFLOW_ENDPOINTS={'us01':'https://api-workflow.treasuredata.com','jp01':a81_0x54f860(0x10a),'eu01':a81_0x54f860(0x13f),'ap02':a81_0x54f860(0x12e),'ap03':'https://api-workflow.ap03.treasuredata.com','dev-us01':a81_0x54f860(0x135),'dev-eu01':a81_0x54f860(0x12b),'stg-us01':a81_0x54f860(0x103),'stg-jp01':a81_0x54f860(0x106),'stg-ap03':a81_0x54f860(0xfc)};export const TRINO_ENDPOINTS={'us01':a81_0x54f860(0x118),'jp01':a81_0x54f860(0x102),'eu01':a81_0x54f860(0x121),'ap02':a81_0x54f860(0x116),'ap03':'https://api-presto.ap03.treasuredata.com','dev-us01':a81_0x54f860(0x101),'dev-eu01':a81_0x54f860(0x137),'stg-us01':a81_0x54f860(0x10b),'stg-jp01':a81_0x54f860(0x129),'stg-ap03':a81_0x54f860(0x136)};export const LLM_ENDPOINTS={'us01':'https://llm-api.treasuredata.com','jp01':'https://llm-api.treasuredata.co.jp','eu01':a81_0x54f860(0x109),'ap02':'https://llm-api.ap02.treasuredata.com','ap03':a81_0x54f860(0x134),'dev-us01':'https://llm-api-development.us01.treasuredata.com','dev-eu01':a81_0x54f860(0x11c),'stg-us01':a81_0x54f860(0xf9),'stg-jp01':a81_0x54f860(0x10d),'stg-ap03':'https://llm-api-staging.ap03.treasuredata.com'};export const ENGAGE_ENDPOINTS={'us01':a81_0x54f860(0x10f),'jp01':a81_0x54f860(0x13b),'eu01':a81_0x54f860(0x128),'ap02':'https://engage-api.ap02.treasuredata.com','ap03':'https://engage-api.ap03.treasuredata.com','dev-us01':'https://engage-api-development.us01.treasuredata.com','dev-eu01':'https://engage-api-development.eu01.treasuredata.com','stg-us01':a81_0x54f860(0x113),'stg-jp01':a81_0x54f860(0x104),'stg-ap03':a81_0x54f860(0xfe)};function a81_0x8f19(_0x34f34d,_0x37051c){_0x34f34d=_0x34f34d-0xf6;const _0x1c117c=a81_0x1c11();let _0x8f1915=_0x1c117c[_0x34f34d];return _0x8f1915;}export const CONSOLE_ENDPOINTS={'us01':a81_0x54f860(0x108),'jp01':a81_0x54f860(0x11a),'eu01':a81_0x54f860(0x140),'ap02':a81_0x54f860(0x139),'ap03':'https://console.ap03.treasuredata.com','dev-us01':a81_0x54f860(0x11f),'dev-eu01':a81_0x54f860(0x126),'stg-us01':a81_0x54f860(0x127),'stg-jp01':a81_0x54f860(0xfb),'stg-ap03':a81_0x54f860(0xfd)};export const CONSOLE_NEXT_ENDPOINTS={'us01':'https://console-next.us01.treasuredata.com','jp01':a81_0x54f860(0x110),'eu01':'https://console-next.eu01.treasuredata.com','ap02':a81_0x54f860(0x119),'ap03':a81_0x54f860(0x10c),'dev-us01':'https://console-development-next.us01.treasuredata.com','dev-eu01':a81_0x54f860(0x13a),'stg-us01':a81_0x54f860(0x123),'stg-jp01':a81_0x54f860(0x115),'stg-ap03':a81_0x54f860(0x111)};export function getConsoleUrl(_0xdb5708,_0x3f4c41){const _0x2ae8ac=a81_0x54f860,_0x4d50fa=CONSOLE_ENDPOINTS[_0xdb5708]||_0x2ae8ac(0x11b)+_0xdb5708+_0x2ae8ac(0x130);return _0x3f4c41?''+_0x4d50fa+_0x3f4c41:_0x4d50fa;}function a81_0x1c11(){const _0x11ba90=['https://api-staging-workflow.us01.treasuredata.com','https://engage-api-staging.treasuredata.co.jp','6TiOXDF','https://api-staging-workflow.treasuredata.co.jp','https://api-staging.treasuredata.co.jp','https://console.treasuredata.com','https://llm-api.eu01.treasuredata.com','https://api-workflow.treasuredata.co.jp','https://api-staging-presto.treasuredata.com','https://console-next.ap03.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','571797BhVRXf','https://engage-api.treasuredata.com','https://console-next.treasuredata.co.jp','https://console-staging-next.ap03.treasuredata.com','https://api.eu01.treasuredata.com','https://engage-api-staging.us01.treasuredata.com','3330052gFystG','https://console-staging-next.treasuredata.co.jp','https://api-presto.ap02.treasuredata.com','https://api.treasuredata.co.jp','https://api-presto.treasuredata.com','https://console-next.ap02.treasuredata.com','https://console.treasuredata.co.jp','https://console.','https://llm-api-development.eu01.treasuredata.com','https://api-development.eu01.treasuredata.com','2215945Gqkfma','https://console-development.treasuredata.com','https://api-staging.ap03.treasuredata.com','https://api-presto.eu01.treasuredata.com','https://api-staging-cdp.us01.treasuredata.com','https://console-staging-next.us01.treasuredata.com','152STwUko','https://api-staging-cdp.treasuredata.co.jp','https://console-development.eu01.treasuredata.com','https://console-staging.us01.treasuredata.com','https://engage-api.eu01.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','\x27\x20and\x20site\x20\x27','https://api-development-workflow.eu01.treasuredata.com','https://api.ap02.treasuredata.com','https://api-cdp.treasuredata.co.jp','https://api-workflow.ap02.treasuredata.com','https://api-development.treasuredata.com','.treasuredata.com','https://api.treasuredata.com','10492699rRBUlY','https://api-development-cdp.us01.treasuredata.com','https://llm-api.ap03.treasuredata.com','https://api-development-workflow.us01.treasuredata.com','https://api-staging-presto.ap03.treasuredata.com','https://api-development-presto.eu01.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://console.ap02.treasuredata.com','https://console-development-next.eu01.treasuredata.com','https://engage-api.treasuredata.co.jp','https://api-development-cdp.eu01.treasuredata.com','491241MVyZIw','https://api-staging.us01.treasuredata.com','https://api-workflow.eu01.treasuredata.com','https://console.eu01.treasuredata.com','49169zkamGl','https://api-cdp.ap03.treasuredata.com','2153868SCwelD','https://api.ap03.treasuredata.com','https://llm-api-staging.us01.treasuredata.com','https://api-cdp.ap02.treasuredata.com','https://console-staging.treasuredata.co.jp','https://api-staging-workflow.ap03.treasuredata.com','https://console-staging.ap03.treasuredata.com','https://engage-api-staging.ap03.treasuredata.com','4hSdXtW','100ovFqCn','https://api-development-presto.treasuredata.com','https://api-presto.treasuredata.co.jp'];a81_0x1c11=function(){return _0x11ba90;};return a81_0x1c11();}export function getConsoleNextUrl(_0x5a9ef3,_0x543271){const _0x289612=CONSOLE_NEXT_ENDPOINTS[_0x5a9ef3]||'https://console-next.'+_0x5a9ef3+'.treasuredata.com';return _0x543271?''+_0x289612+_0x543271:_0x289612;}export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS,'engage':ENGAGE_ENDPOINTS};export function getEndpoint(_0xbd9a36,_0x5a0788='td'){const _0x37e8e1=a81_0x54f860,_0x4694ef=API_ENDPOINTS[_0x5a0788]?.[_0xbd9a36];if(!_0x4694ef)throw new Error(_0x37e8e1(0x138)+_0x5a0788+_0x37e8e1(0x12a)+_0xbd9a36+'\x27');return _0x4694ef;}
1
+ function a81_0x4364(){const _0x5e56bf=['https://console-staging.us01.treasuredata.com','24iCTtFK','https://llm-api.ap02.treasuredata.com','https://llm-api-staging.ap03.treasuredata.com','1355768yibPKC','https://console-development-next.us01.treasuredata.com','609pRhTCx','https://api-development-presto.eu01.treasuredata.com','https://api-staging-workflow.ap03.treasuredata.com','https://api-staging-presto.treasuredata.com','https://api.ap03.treasuredata.com','https://llm-api-development.us01.treasuredata.com','https://api-workflow.eu01.treasuredata.com','https://api-presto.eu01.treasuredata.com','https://console-next.ap03.treasuredata.com','https://api-presto.treasuredata.co.jp','https://console-staging-next.treasuredata.co.jp','https://console-development.treasuredata.com','51656IQNubk','https://api-staging-workflow.us01.treasuredata.com','https://api-development.eu01.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','https://engage-api.ap02.treasuredata.com','https://api-staging.treasuredata.co.jp','https://console.','https://api-cdp.treasuredata.com','https://console-staging-next.us01.treasuredata.com','https://api-development-presto.treasuredata.com','1746868ExBCOO','https://api-staging.us01.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','https://api-staging-cdp.us01.treasuredata.com','8628037SuwbAa','1YuhlcW','https://api-staging-workflow.treasuredata.co.jp','https://console-staging-next.ap03.treasuredata.com','3979950oOVxgs','https://console.ap02.treasuredata.com','https://api-development-cdp.eu01.treasuredata.com','https://api-presto.treasuredata.com','https://api-presto.ap02.treasuredata.com','https://console.ap03.treasuredata.com','https://engage-api.treasuredata.com','2453169jUQjgB','https://engage-api-development.us01.treasuredata.com','https://api-presto.ap03.treasuredata.com','https://llm-api.treasuredata.com','https://engage-api.eu01.treasuredata.com','https://console.eu01.treasuredata.com','https://engage-api.ap03.treasuredata.com','https://console-development-next.eu01.treasuredata.com','https://console.treasuredata.co.jp','https://api.ap02.treasuredata.com','https://api-staging.ap03.treasuredata.com','https://console-next.eu01.treasuredata.com','96930tDbBQI','https://api-cdp.ap02.treasuredata.com','https://engage-api-staging.us01.treasuredata.com','.treasuredata.com','https://api-workflow.ap03.treasuredata.com','https://console-next.us01.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://llm-api.ap03.treasuredata.com','6NzONdJ','https://engage-api-staging.treasuredata.co.jp','https://console-next.treasuredata.co.jp','https://console-staging.ap03.treasuredata.com','https://api-cdp.eu01.treasuredata.com','https://console-next.','https://engage-api-development.eu01.treasuredata.com','https://api-staging-presto.ap03.treasuredata.com','https://console-next.ap02.treasuredata.com','https://api-workflow.treasuredata.com','https://api-cdp.treasuredata.co.jp','https://console.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','https://llm-api.eu01.treasuredata.com','https://api-development-workflow.us01.treasuredata.com','https://api-cdp.ap03.treasuredata.com','27UoWGVY'];a81_0x4364=function(){return _0x5e56bf;};return a81_0x4364();}const a81_0x2cf2e4=a81_0x1a32;(function(_0x10991c,_0xfcc175){const _0x4a4b90=a81_0x1a32,_0x1978f7=_0x10991c();while(!![]){try{const _0x5694a2=parseInt(_0x4a4b90(0xe0))/0x1*(parseInt(_0x4a4b90(0xdb))/0x2)+-parseInt(_0x4a4b90(0xea))/0x3+-parseInt(_0x4a4b90(0xc3))/0x4+-parseInt(_0x4a4b90(0xf6))/0x5*(parseInt(_0x4a4b90(0xfe))/0x6)+parseInt(_0x4a4b90(0xc5))/0x7*(parseInt(_0x4a4b90(0xd1))/0x8)+-parseInt(_0x4a4b90(0xbe))/0x9*(parseInt(_0x4a4b90(0xe3))/0xa)+parseInt(_0x4a4b90(0xdf))/0xb*(parseInt(_0x4a4b90(0xc0))/0xc);if(_0x5694a2===_0xfcc175)break;else _0x1978f7['push'](_0x1978f7['shift']());}catch(_0x4e8ee1){_0x1978f7['push'](_0x1978f7['shift']());}}}(a81_0x4364,0x9ac23));export const TD_ENDPOINTS={'us01':'https://api.treasuredata.com','jp01':'https://api.treasuredata.co.jp','eu01':'https://api.eu01.treasuredata.com','ap02':a81_0x2cf2e4(0xf3),'ap03':a81_0x2cf2e4(0xc9),'dev-us01':'https://api-development.treasuredata.com','dev-eu01':a81_0x2cf2e4(0xd3),'stg-us01':a81_0x2cf2e4(0xdc),'stg-jp01':a81_0x2cf2e4(0xd6),'stg-ap03':a81_0x2cf2e4(0xf4)};export const CDP_ENDPOINTS={'us01':a81_0x2cf2e4(0xd8),'jp01':a81_0x2cf2e4(0x108),'eu01':a81_0x2cf2e4(0x102),'ap02':a81_0x2cf2e4(0xf7),'ap03':a81_0x2cf2e4(0x10d),'dev-us01':'https://api-development-cdp.us01.treasuredata.com','dev-eu01':a81_0x2cf2e4(0xe5),'stg-us01':a81_0x2cf2e4(0xde),'stg-jp01':'https://api-staging-cdp.treasuredata.co.jp','stg-ap03':'https://api-staging-cdp.ap03.treasuredata.com'};export const WORKFLOW_ENDPOINTS={'us01':a81_0x2cf2e4(0x107),'jp01':'https://api-workflow.treasuredata.co.jp','eu01':a81_0x2cf2e4(0xcb),'ap02':'https://api-workflow.ap02.treasuredata.com','ap03':a81_0x2cf2e4(0xfa),'dev-us01':a81_0x2cf2e4(0x10c),'dev-eu01':a81_0x2cf2e4(0x10a),'stg-us01':a81_0x2cf2e4(0xd2),'stg-jp01':a81_0x2cf2e4(0xe1),'stg-ap03':a81_0x2cf2e4(0xc7)};export const TRINO_ENDPOINTS={'us01':a81_0x2cf2e4(0xe6),'jp01':a81_0x2cf2e4(0xce),'eu01':a81_0x2cf2e4(0xcc),'ap02':a81_0x2cf2e4(0xe7),'ap03':a81_0x2cf2e4(0xec),'dev-us01':a81_0x2cf2e4(0xda),'dev-eu01':a81_0x2cf2e4(0xc6),'stg-us01':a81_0x2cf2e4(0xc8),'stg-jp01':a81_0x2cf2e4(0xdd),'stg-ap03':a81_0x2cf2e4(0x105)};export const LLM_ENDPOINTS={'us01':a81_0x2cf2e4(0xed),'jp01':'https://llm-api.treasuredata.co.jp','eu01':a81_0x2cf2e4(0x10b),'ap02':a81_0x2cf2e4(0xc1),'ap03':a81_0x2cf2e4(0xfd),'dev-us01':a81_0x2cf2e4(0xca),'dev-eu01':a81_0x2cf2e4(0xd4),'stg-us01':'https://llm-api-staging.us01.treasuredata.com','stg-jp01':'https://llm-api-staging.treasuredata.co.jp','stg-ap03':a81_0x2cf2e4(0xc2)};export const ENGAGE_ENDPOINTS={'us01':a81_0x2cf2e4(0xe9),'jp01':'https://engage-api.treasuredata.co.jp','eu01':a81_0x2cf2e4(0xee),'ap02':a81_0x2cf2e4(0xd5),'ap03':a81_0x2cf2e4(0xf0),'dev-us01':a81_0x2cf2e4(0xeb),'dev-eu01':a81_0x2cf2e4(0x104),'stg-us01':a81_0x2cf2e4(0xf8),'stg-jp01':a81_0x2cf2e4(0xff),'stg-ap03':'https://engage-api-staging.ap03.treasuredata.com'};export const CONSOLE_ENDPOINTS={'us01':a81_0x2cf2e4(0x109),'jp01':a81_0x2cf2e4(0xf2),'eu01':a81_0x2cf2e4(0xef),'ap02':a81_0x2cf2e4(0xe4),'ap03':a81_0x2cf2e4(0xe8),'dev-us01':a81_0x2cf2e4(0xd0),'dev-eu01':'https://console-development.eu01.treasuredata.com','stg-us01':a81_0x2cf2e4(0xbf),'stg-jp01':'https://console-staging.treasuredata.co.jp','stg-ap03':a81_0x2cf2e4(0x101)};function a81_0x1a32(_0x152fe1,_0x38da4a){_0x152fe1=_0x152fe1-0xbe;const _0x436481=a81_0x4364();let _0x1a3231=_0x436481[_0x152fe1];return _0x1a3231;}export const CONSOLE_NEXT_ENDPOINTS={'us01':a81_0x2cf2e4(0xfb),'jp01':a81_0x2cf2e4(0x100),'eu01':a81_0x2cf2e4(0xf5),'ap02':a81_0x2cf2e4(0x106),'ap03':a81_0x2cf2e4(0xcd),'dev-us01':a81_0x2cf2e4(0xc4),'dev-eu01':a81_0x2cf2e4(0xf1),'stg-us01':a81_0x2cf2e4(0xd9),'stg-jp01':a81_0x2cf2e4(0xcf),'stg-ap03':a81_0x2cf2e4(0xe2)};export function getConsoleUrl(_0x4138ab,_0xe14d9e){const _0x581163=a81_0x2cf2e4,_0xd830c9=CONSOLE_ENDPOINTS[_0x4138ab]||_0x581163(0xd7)+_0x4138ab+_0x581163(0xf9);return _0xe14d9e?''+_0xd830c9+_0xe14d9e:_0xd830c9;}export function getConsoleNextUrl(_0x3e1e81,_0x1515c2){const _0x16f01d=a81_0x2cf2e4,_0x19795d=CONSOLE_NEXT_ENDPOINTS[_0x3e1e81]||_0x16f01d(0x103)+_0x3e1e81+'.treasuredata.com';return _0x1515c2?''+_0x19795d+_0x1515c2:_0x19795d;}export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS,'engage':ENGAGE_ENDPOINTS};export function getEndpoint(_0x53b14a,_0x51e15f='td'){const _0x50f491=a81_0x2cf2e4,_0x42e61e=API_ENDPOINTS[_0x51e15f]?.[_0x53b14a];if(!_0x42e61e)throw new Error(_0x50f491(0xfc)+_0x51e15f+'\x27\x20and\x20site\x20\x27'+_0x53b14a+'\x27');return _0x42e61e;}
@@ -125,7 +125,7 @@ export interface ProblemDetails {
125
125
  }
126
126
  export type { Database, Table } from './database.js';
127
127
  export type { Job, JobInfo, JobDetailsInfo } from './job.js';
128
- export type { ParentSegment, Segment, SegmentFolder, SegmentFolderDetails, Activation, ActivationColumn, ActivationExecution, ActivationBehavior, CreateActivationRequest, UpdateActivationRequest, SegmentRule, SegmentCondition, SegmentLeftValue, SegmentOperator, CreateSegmentRequest, CreateSegmentResponse, CreateJourneySegmentRequest, CreateJourneySegmentResponse, UpdateSegmentRequest, UpdateSegmentResponse, CreateSegmentFolderRequest, CreateSegmentFolderResponse, AttributeRequest, BehaviorRequest, BehaviorSchemaItem, CustomerGroupRequest, CustomerGroupAttribute, CustomerGroupBehavior, CustomerGroupBehaviorSchemaItem, AudienceFilter, CreateParentSegmentRequest, CreateParentSegmentResponse, ParentSegmentField, AudienceExecution, AudienceAttribute, AudienceBehavior, JourneyState, JourneyReentryMode, Journey, JourneyCriteria, JourneyStage, JourneyStepType, JourneyWaitUnit, JourneyStep, JourneyBranch, JourneyVariant, JourneyExecution, JourneyStatistics, JourneyStageStatistics, JourneyListItem, JourneyActivationStep, } from './cdp.js';
128
+ export type { ParentSegment, Segment, SegmentFolder, SegmentFolderDetails, Activation, ActivationColumn, ActivationExecution, ActivationBehavior, CreateActivationRequest, UpdateActivationRequest, SegmentRule, SegmentCondition, SegmentLeftValue, SegmentOperator, CreateSegmentRequest, CreateSegmentResponse, CreateJourneySegmentRequest, CreateJourneySegmentResponse, UpdateSegmentRequest, UpdateSegmentResponse, CreateSegmentFolderRequest, CreateSegmentFolderResponse, AttributeRequest, BehaviorRequest, BehaviorSchemaItem, CustomerGroupRequest, CustomerGroupAttribute, CustomerGroupBehavior, CustomerGroupBehaviorSchemaItem, AudienceFilter, CreateParentSegmentRequest, CreateParentSegmentResponse, ParentSegmentField, AudienceExecution, AudienceAttribute, AudienceBehavior, JourneyState, JourneyReentryMode, Journey, JourneyCriteria, JourneyStage, JourneyStepType, JourneyWaitUnit, JourneyStep, JourneyBranch, JourneyVariant, JourneyExecution, JourneyStatistics, JourneyStageStatistics, JourneyListItem, JourneyActivationStep, CreateJourneyActivationRequest, JourneyActivationParams, } from './cdp.js';
129
129
  export type { LLMProject, LLMProjectInfo, LLMProjectListResponse, Agent, AgentInfo, AgentListResponse, ChatMessage, Chat, ChatListResponse, ChatHistoryResponse, ModelInfo, UserSettingsResponse, ChatContentEvent, ChatInputEvent, ChatToolCallEvent, ChatToolResultEvent, ChatOutputEvent, ChatImageEvent, ChatErrorEvent, ChatReasoningEvent, ChatEvent, ChatSessionMetadata, ChatStreamEvent, KnowledgeBaseTable, KnowledgeBase, KnowledgeBaseListResponse, LLMPrompt, LLMPromptListResponse, IntegrationAction, Integration, IntegrationListResponse, AgentTool, AgentVariable, AgentOutput, AgentFull, ProjectBackupMetadata, BackupSummary, RestoreSummary, } from './llm.js';
130
130
  export type { WorkflowProject, Workflow, WorkflowSession, WorkflowAttempt, WorkflowTask, WorkflowLogEntry, LogFileHandle, WorkflowListResponse, SessionStatus, ListWorkflowsParams, ListSessionsParams, GetTaskLogsParams, RetrySessionParams, RetryAttemptParams, KillAttemptResponse, RetrySessionResponse, RetryAttemptResponse, StartAttemptParams, StartAttemptResponse, } from './workflow.js';
131
131
  export type { JsonApiResource, JsonApiRelationship, JsonApiResponse, JsonApiLinks, JsonApiError, JsonApiErrorResponse, Campaign, CampaignAttributes, CampaignStatus, CampaignType, CampaignInfo, EmailContent, PushContent, UtmParameters, ColumnMapping, ListCampaignsOptions, EmailTemplate, EmailTemplateAttributes, EmailTemplateInfo, TemplateVariable, MergeTag, SpecialLink, ListTemplatesOptions, Workspace, WorkspaceAttributes, WorkspaceInfo, WorkspaceConfig, Domain, ParentSegmentRef, OwnerUser, ListWorkspacesOptions, } from './engage.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
@@ -1 +1 @@
1
- const a83_0x57c80d=a83_0x5519;(function(_0x188542,_0x16f242){const _0x125752=a83_0x5519,_0x4667b9=_0x188542();while(!![]){try{const _0x3d8196=parseInt(_0x125752(0x13e))/0x1*(parseInt(_0x125752(0x13a))/0x2)+-parseInt(_0x125752(0x145))/0x3*(-parseInt(_0x125752(0x146))/0x4)+-parseInt(_0x125752(0x13c))/0x5+-parseInt(_0x125752(0x140))/0x6*(parseInt(_0x125752(0x13f))/0x7)+parseInt(_0x125752(0x141))/0x8+parseInt(_0x125752(0x144))/0x9*(-parseInt(_0x125752(0x138))/0xa)+parseInt(_0x125752(0x143))/0xb*(parseInt(_0x125752(0x139))/0xc);if(_0x3d8196===_0x16f242)break;else _0x4667b9['push'](_0x4667b9['shift']());}catch(_0x4805c8){_0x4667b9['push'](_0x4667b9['shift']());}}}(a83_0x5752,0xa9334));export const SITE_ALIASES={'us':a83_0x57c80d(0x142),'aws':a83_0x57c80d(0x142),'jp':a83_0x57c80d(0x13b),'aws-tokyo':'jp01','dev':'dev-us01','stg':a83_0x57c80d(0x13d)};export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';function a83_0x5519(_0x578ac6,_0x38b225){_0x578ac6=_0x578ac6-0x138;const _0x5752b5=a83_0x5752();let _0x5519fe=_0x5752b5[_0x578ac6];return _0x5519fe;}function a83_0x5752(){const _0x5141e9=['180dcukUl','1552sJUTOq','jp01','5699005PAXKXF','stg-us01','9OVcbWF','2727487AHprVU','18QxtBCC','4319928xRmIXl','us01','1365771LBjPIv','18KaZEgd','621fhUzgG','22864WWIwyB','2954170JbgEsX'];a83_0x5752=function(){return _0x5141e9;};return a83_0x5752();}
1
+ function a83_0x45af(_0x4396b4,_0x20adc9){_0x4396b4=_0x4396b4-0xed;const _0x13938b=a83_0x1393();let _0x45af12=_0x13938b[_0x4396b4];return _0x45af12;}const a83_0x395be7=a83_0x45af;(function(_0x492b90,_0xe57132){const _0x31c0f0=a83_0x45af,_0x3e91dc=_0x492b90();while(!![]){try{const _0x5d2157=-parseInt(_0x31c0f0(0xf6))/0x1+parseInt(_0x31c0f0(0xf7))/0x2+parseInt(_0x31c0f0(0xf0))/0x3*(parseInt(_0x31c0f0(0xef))/0x4)+parseInt(_0x31c0f0(0xf8))/0x5+-parseInt(_0x31c0f0(0xf5))/0x6+-parseInt(_0x31c0f0(0xf4))/0x7*(parseInt(_0x31c0f0(0xf2))/0x8)+-parseInt(_0x31c0f0(0xee))/0x9;if(_0x5d2157===_0xe57132)break;else _0x3e91dc['push'](_0x3e91dc['shift']());}catch(_0x260efe){_0x3e91dc['push'](_0x3e91dc['shift']());}}}(a83_0x1393,0x4f329));export const SITE_ALIASES={'us':a83_0x395be7(0xf1),'aws':a83_0x395be7(0xf1),'jp':a83_0x395be7(0xf3),'aws-tokyo':'jp01','dev':a83_0x395be7(0xf9),'stg':a83_0x395be7(0xed)};export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';function a83_0x1393(){const _0x12b0a7=['276209WfHrUP','488502aFxzkA','2964120VZAXou','dev-us01','stg-us01','1570491XUgtSB','25316yAIhdH','276wPEtwy','us01','19048GMNNFz','jp01','7dAOdxB','3851166hmqTWB'];a83_0x1393=function(){return _0x12b0a7;};return a83_0x1393();}
@@ -1 +1 @@
1
- function a88_0x541a(_0x214be1,_0x3cbc9b){_0x214be1=_0x214be1-0x123;const _0x26531e=a88_0x2653();let _0x541a93=_0x26531e[_0x214be1];return _0x541a93;}(function(_0xd91632,_0x18ef82){const _0x54ea5a=a88_0x541a,_0x4f9475=_0xd91632();while(!![]){try{const _0x62a850=-parseInt(_0x54ea5a(0x12f))/0x1*(-parseInt(_0x54ea5a(0x127))/0x2)+-parseInt(_0x54ea5a(0x12c))/0x3*(parseInt(_0x54ea5a(0x123))/0x4)+parseInt(_0x54ea5a(0x128))/0x5*(-parseInt(_0x54ea5a(0x133))/0x6)+parseInt(_0x54ea5a(0x12e))/0x7*(parseInt(_0x54ea5a(0x130))/0x8)+-parseInt(_0x54ea5a(0x12d))/0x9+-parseInt(_0x54ea5a(0x12a))/0xa+parseInt(_0x54ea5a(0x125))/0xb;if(_0x62a850===_0x18ef82)break;else _0x4f9475['push'](_0x4f9475['shift']());}catch(_0xe8cf2c){_0x4f9475['push'](_0x4f9475['shift']());}}}(a88_0x2653,0xeb5da));export function parseAgentRef(_0x275a7d){const _0x24669b=a88_0x541a;if(!_0x275a7d||_0x275a7d['trim']()==='')throw new Error(_0x24669b(0x126));const _0x240728=_0x275a7d['trim'](),_0x5e37ef=_0x240728[_0x24669b(0x131)]('/');if(_0x5e37ef[_0x24669b(0x135)]===0x1)return{'projectName':_0x5e37ef[0x0],'agentName':undefined};else{if(_0x5e37ef[_0x24669b(0x135)]===0x2){const [_0x1b7f34,_0x5606e4]=_0x5e37ef;if(!_0x1b7f34||_0x1b7f34[_0x24669b(0x12b)]()==='')throw new Error(_0x24669b(0x129));if(!_0x5606e4||_0x5606e4[_0x24669b(0x12b)]()==='')throw new Error(_0x24669b(0x124));return{'projectName':_0x1b7f34[_0x24669b(0x12b)](),'agentName':_0x5606e4[_0x24669b(0x12b)]()};}else throw new Error(_0x24669b(0x132)+_0x275a7d+_0x24669b(0x134));}}function a88_0x2653(){const _0x4dca74=['9FDIGhZ','10991475KMfXiE','7980lFTqPr','1MVonQH','10984wIpnwD','split','Invalid\x20agent\x20reference\x20format:\x20','6yEvDJX','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','length','1567432slvqif','Agent\x20name\x20cannot\x20be\x20empty','37728944KSNuzs','Agent\x20reference\x20cannot\x20be\x20empty','535550JxDRCx','9311785FHTkdY','Project\x20name\x20cannot\x20be\x20empty','396350URjHng','trim'];a88_0x2653=function(){return _0x4dca74;};return a88_0x2653();}
1
+ function a88_0x2c0a(){const _0x147fb4=['4482475YRhzEM','4970892OoNJjR','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','Project\x20name\x20cannot\x20be\x20empty','6299104lwtVPN','Agent\x20reference\x20cannot\x20be\x20empty','2917XibTVL','length','218IIDBse','2451516oZLvbu','trim','15957968WIdxTt','Agent\x20name\x20cannot\x20be\x20empty','1456964XCxRNA','Invalid\x20agent\x20reference\x20format:\x20'];a88_0x2c0a=function(){return _0x147fb4;};return a88_0x2c0a();}function a88_0x2539(_0x2977c8,_0x4b22c8){_0x2977c8=_0x2977c8-0xb3;const _0x2c0afd=a88_0x2c0a();let _0x2539c8=_0x2c0afd[_0x2977c8];return _0x2539c8;}(function(_0x2af747,_0x58a582){const _0x8fb2af=a88_0x2539,_0x3f1886=_0x2af747();while(!![]){try{const _0x25d501=parseInt(_0x8fb2af(0xc1))/0x1*(parseInt(_0x8fb2af(0xb4))/0x2)+-parseInt(_0x8fb2af(0xb5))/0x3+parseInt(_0x8fb2af(0xb9))/0x4+parseInt(_0x8fb2af(0xbb))/0x5+parseInt(_0x8fb2af(0xbc))/0x6+parseInt(_0x8fb2af(0xbf))/0x7+-parseInt(_0x8fb2af(0xb7))/0x8;if(_0x25d501===_0x58a582)break;else _0x3f1886['push'](_0x3f1886['shift']());}catch(_0x5153e7){_0x3f1886['push'](_0x3f1886['shift']());}}}(a88_0x2c0a,0x78e15));export function parseAgentRef(_0x11788d){const _0x5ea396=a88_0x2539;if(!_0x11788d||_0x11788d['trim']()==='')throw new Error(_0x5ea396(0xc0));const _0x1c1c7a=_0x11788d[_0x5ea396(0xb6)](),_0x216617=_0x1c1c7a['split']('/');if(_0x216617[_0x5ea396(0xb3)]===0x1)return{'projectName':_0x216617[0x0],'agentName':undefined};else{if(_0x216617[_0x5ea396(0xb3)]===0x2){const [_0x67853a,_0x5db811]=_0x216617;if(!_0x67853a||_0x67853a[_0x5ea396(0xb6)]()==='')throw new Error(_0x5ea396(0xbe));if(!_0x5db811||_0x5db811['trim']()==='')throw new Error(_0x5ea396(0xb8));return{'projectName':_0x67853a[_0x5ea396(0xb6)](),'agentName':_0x5db811[_0x5ea396(0xb6)]()};}else throw new Error(_0x5ea396(0xba)+_0x11788d+_0x5ea396(0xbd));}}
@@ -1 +1 @@
1
- function a89_0x1fab(_0xeb00a2,_0x37eee9){_0xeb00a2=_0xeb00a2-0x14e;const _0x24874d=a89_0x2487();let _0x1fab3d=_0x24874d[_0xeb00a2];return _0x1fab3d;}function a89_0x2487(){const _0x553c40=['35oRuyCQ','34240ZufEsU','42488IHeXNE','780519dtiHjJ','length','2JPdkle','815016siVPRj','402lbqhBH','220EUKatg','432539tOnRjd','slice','6082219vgNGtC','12SgrPfX','104931pbyIAg','map','push','all'];a89_0x2487=function(){return _0x553c40;};return a89_0x2487();}(function(_0x590328,_0x1c4a2b){const _0x1f3d99=a89_0x1fab,_0x24824b=_0x590328();while(!![]){try{const _0x548c96=parseInt(_0x1f3d99(0x15a))/0x1*(parseInt(_0x1f3d99(0x156))/0x2)+-parseInt(_0x1f3d99(0x154))/0x3+parseInt(_0x1f3d99(0x157))/0x4+parseInt(_0x1f3d99(0x152))/0x5*(-parseInt(_0x1f3d99(0x158))/0x6)+parseInt(_0x1f3d99(0x151))/0x7*(parseInt(_0x1f3d99(0x153))/0x8)+-parseInt(_0x1f3d99(0x15e))/0x9*(parseInt(_0x1f3d99(0x159))/0xa)+-parseInt(_0x1f3d99(0x15c))/0xb*(-parseInt(_0x1f3d99(0x15d))/0xc);if(_0x548c96===_0x1c4a2b)break;else _0x24824b['push'](_0x24824b['shift']());}catch(_0x49faa8){_0x24824b['push'](_0x24824b['shift']());}}}(a89_0x2487,0x3aaa2));export async function batchAsync(_0x38a878,_0x4a8bd7,_0x14d616=0xa){const _0x3fdb39=a89_0x1fab,_0x4e2989=[];for(let _0x17f692=0x0;_0x17f692<_0x38a878[_0x3fdb39(0x155)];_0x17f692+=_0x14d616){const _0x53a229=_0x38a878[_0x3fdb39(0x15b)](_0x17f692,_0x17f692+_0x14d616),_0x48704c=await Promise[_0x3fdb39(0x150)](_0x53a229[_0x3fdb39(0x14e)](_0x4a8bd7));_0x4e2989[_0x3fdb39(0x14f)](..._0x48704c);}return _0x4e2989;}
1
+ (function(_0x4435eb,_0x3464fe){const _0x1bfe38=a89_0x3bce,_0x5c1bc4=_0x4435eb();while(!![]){try{const _0x57e23e=parseInt(_0x1bfe38(0x187))/0x1+parseInt(_0x1bfe38(0x180))/0x2+parseInt(_0x1bfe38(0x184))/0x3*(parseInt(_0x1bfe38(0x186))/0x4)+-parseInt(_0x1bfe38(0x188))/0x5*(-parseInt(_0x1bfe38(0x17c))/0x6)+parseInt(_0x1bfe38(0x17a))/0x7*(parseInt(_0x1bfe38(0x185))/0x8)+parseInt(_0x1bfe38(0x17d))/0x9+parseInt(_0x1bfe38(0x17e))/0xa*(-parseInt(_0x1bfe38(0x181))/0xb);if(_0x57e23e===_0x3464fe)break;else _0x5c1bc4['push'](_0x5c1bc4['shift']());}catch(_0xcffd02){_0x5c1bc4['push'](_0x5c1bc4['shift']());}}}(a89_0x2370,0x5e648));function a89_0x2370(){const _0x3e5614=['all','6rOfOhF','3425193xehlEl','240fUuKgB','map','1426160upeDRb','762938tvxWcQ','length','slice','84JCNwGR','113272NbxutE','85348JSWwWj','63249ssHhYQ','1130435NEzYPM','35PfQMcf'];a89_0x2370=function(){return _0x3e5614;};return a89_0x2370();}function a89_0x3bce(_0xd68bab,_0x2b1019){_0xd68bab=_0xd68bab-0x17a;const _0x237087=a89_0x2370();let _0x3bcee2=_0x237087[_0xd68bab];return _0x3bcee2;}export async function batchAsync(_0x424f32,_0x25c2d0,_0x299d44=0xa){const _0x1eb8fe=a89_0x3bce,_0x31b30d=[];for(let _0x601017=0x0;_0x601017<_0x424f32[_0x1eb8fe(0x182)];_0x601017+=_0x299d44){const _0x42e873=_0x424f32[_0x1eb8fe(0x183)](_0x601017,_0x601017+_0x299d44),_0x3b8e35=await Promise[_0x1eb8fe(0x17b)](_0x42e873[_0x1eb8fe(0x17f)](_0x25c2d0));_0x31b30d['push'](..._0x3b8e35);}return _0x31b30d;}
@@ -1 +1 @@
1
- (function(_0x46bc94,_0x557180){const _0xe297fe=a90_0xf271,_0x3102af=_0x46bc94();while(!![]){try{const _0x307b9e=parseInt(_0xe297fe(0xe0))/0x1+parseInt(_0xe297fe(0xe7))/0x2*(-parseInt(_0xe297fe(0xe6))/0x3)+parseInt(_0xe297fe(0xea))/0x4+parseInt(_0xe297fe(0xe4))/0x5+parseInt(_0xe297fe(0xdf))/0x6*(parseInt(_0xe297fe(0xe9))/0x7)+parseInt(_0xe297fe(0xe3))/0x8*(parseInt(_0xe297fe(0xde))/0x9)+-parseInt(_0xe297fe(0xe5))/0xa;if(_0x307b9e===_0x557180)break;else _0x3102af['push'](_0x3102af['shift']());}catch(_0x1874ae){_0x3102af['push'](_0x3102af['shift']());}}}(a90_0xdd9b,0xda490));function a90_0xdd9b(){const _0x462588=['last_chat_id','800344JYEJOZ','4461405gcWjYk','24627930CowNbZ','24369BKOpmv','334jRyCZi','tdx','7TxAQeV','6440336LkbSuF','63XjXEcE','7107546rEOYYf','326173ORJBLj','utf-8'];a90_0xdd9b=function(){return _0x462588;};return a90_0xdd9b();}import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x10daf0=a90_0xf271;return join(process['cwd'](),'.cache',_0x10daf0(0xe8));}function getLastChatIdPath(){const _0x250cf4=a90_0xf271;return join(getCacheDir(),_0x250cf4(0xe2));}function ensureCacheDir(){const _0x15e6f1=getCacheDir();!existsSync(_0x15e6f1)&&mkdirSync(_0x15e6f1,{'recursive':!![]});}export function saveLastChatId(_0x3ce4e6){const _0xf5055a=a90_0xf271;ensureCacheDir();const _0x3fdcf8=getLastChatIdPath();writeFileSync(_0x3fdcf8,_0x3ce4e6,_0xf5055a(0xe1));}function a90_0xf271(_0x4f2e1c,_0x322086){_0x4f2e1c=_0x4f2e1c-0xde;const _0xdd9b2a=a90_0xdd9b();let _0xf2711a=_0xdd9b2a[_0x4f2e1c];return _0xf2711a;}export function loadLastChatId(){const _0x120192=a90_0xf271,_0x14c9a2=getLastChatIdPath();if(!existsSync(_0x14c9a2))return undefined;try{const _0x72db78=readFileSync(_0x14c9a2,_0x120192(0xe1))['trim']();return _0x72db78||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x4f47e6=a90_0xf271,_0x38d2f9=getLastChatIdPath();if(existsSync(_0x38d2f9))try{writeFileSync(_0x38d2f9,'',_0x4f47e6(0xe1));}catch{}}
1
+ (function(_0x3898b9,_0x533c5f){const _0x74c2bc=a90_0x3e42,_0x16e702=_0x3898b9();while(!![]){try{const _0x392be0=-parseInt(_0x74c2bc(0x191))/0x1*(parseInt(_0x74c2bc(0x187))/0x2)+parseInt(_0x74c2bc(0x190))/0x3+parseInt(_0x74c2bc(0x192))/0x4*(parseInt(_0x74c2bc(0x195))/0x5)+parseInt(_0x74c2bc(0x188))/0x6*(parseInt(_0x74c2bc(0x18d))/0x7)+-parseInt(_0x74c2bc(0x18f))/0x8*(parseInt(_0x74c2bc(0x196))/0x9)+parseInt(_0x74c2bc(0x194))/0xa+-parseInt(_0x74c2bc(0x18a))/0xb*(parseInt(_0x74c2bc(0x189))/0xc);if(_0x392be0===_0x533c5f)break;else _0x16e702['push'](_0x16e702['shift']());}catch(_0x228276){_0x16e702['push'](_0x16e702['shift']());}}}(a90_0x126e,0x9e585));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x2266dc=a90_0x3e42;return join(process[_0x2266dc(0x18b)](),_0x2266dc(0x18e),'tdx');}function a90_0x126e(){const _0x1b992d=['5687891nxLYVf','cwd','last_chat_id','7VXCojR','.cache','6344KEpzTx','3480378LkwNrh','17FMkaPY','1639420iUdNPU','utf-8','6964040blvphD','15QjTfpk','10350OTWryX','70754tpKNgB','660042TLWZZv','24GrNXpc'];a90_0x126e=function(){return _0x1b992d;};return a90_0x126e();}function a90_0x3e42(_0x609dd6,_0x276cea){_0x609dd6=_0x609dd6-0x187;const _0x126e68=a90_0x126e();let _0x3e42fa=_0x126e68[_0x609dd6];return _0x3e42fa;}function getLastChatIdPath(){const _0x140708=a90_0x3e42;return join(getCacheDir(),_0x140708(0x18c));}function ensureCacheDir(){const _0x5bb60c=getCacheDir();!existsSync(_0x5bb60c)&&mkdirSync(_0x5bb60c,{'recursive':!![]});}export function saveLastChatId(_0x11d124){const _0x224cb1=a90_0x3e42;ensureCacheDir();const _0x3744e0=getLastChatIdPath();writeFileSync(_0x3744e0,_0x11d124,_0x224cb1(0x193));}export function loadLastChatId(){const _0x258f7b=a90_0x3e42,_0x597d78=getLastChatIdPath();if(!existsSync(_0x597d78))return undefined;try{const _0x4f2e41=readFileSync(_0x597d78,_0x258f7b(0x193))['trim']();return _0x4f2e41||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x285387=a90_0x3e42,_0x58a59b=getLastChatIdPath();if(existsSync(_0x58a59b))try{writeFileSync(_0x58a59b,'',_0x285387(0x193));}catch{}}
@@ -1 +1 @@
1
- (function(_0x3c4437,_0xf4388){const _0x5502b8=a91_0x4203,_0xb64617=_0x3c4437();while(!![]){try{const _0x38a925=-parseInt(_0x5502b8(0x158))/0x1*(-parseInt(_0x5502b8(0x144))/0x2)+-parseInt(_0x5502b8(0x14e))/0x3+-parseInt(_0x5502b8(0x15b))/0x4+-parseInt(_0x5502b8(0x14d))/0x5*(-parseInt(_0x5502b8(0x152))/0x6)+-parseInt(_0x5502b8(0x143))/0x7+-parseInt(_0x5502b8(0x15c))/0x8+parseInt(_0x5502b8(0x149))/0x9;if(_0x38a925===_0xf4388)break;else _0xb64617['push'](_0xb64617['shift']());}catch(_0x2469be){_0xb64617['push'](_0xb64617['shift']());}}}(a91_0x451f,0x29cba));import{Chalk}from'chalk';export function shouldUseColor(_0x59d9be={}){const _0x330ae9=a91_0x4203;if(_0x59d9be[_0x330ae9(0x159)]===!![])return![];if(_0x59d9be[_0x330ae9(0x14c)]===!![])return!![];if(process[_0x330ae9(0x155)]['NO_COLOR']!==undefined)return![];return process[_0x330ae9(0x15a)][_0x330ae9(0x14a)]??![];}export function getChalk(_0x3063c5={}){if(shouldUseColor(_0x3063c5))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4fc3a9,_0x150caa={}){return getChalk(_0x150caa)['dim'](_0x4fc3a9);}export function colorHeader(_0xe337a8,_0x28615b={}){const _0x20fcbe=a91_0x4203;return getChalk(_0x28615b)[_0x20fcbe(0x141)](_0xe337a8);}function a91_0x4203(_0x10bdc1,_0x327274){_0x10bdc1=_0x10bdc1-0x140;const _0x451f7d=a91_0x451f();let _0x4203fa=_0x451f7d[_0x10bdc1];return _0x4203fa;}export function colorType(_0x21bd70,_0x18104e={}){const _0xcd7df7=a91_0x4203;return getChalk(_0x18104e)[_0xcd7df7(0x153)](_0x21bd70);}export function colorJSONKey(_0x69e6bb,_0xf38cc1={}){const _0x32ffaa=a91_0x4203;return getChalk(_0xf38cc1)[_0x32ffaa(0x154)](_0x69e6bb);}function a91_0x451f(){const _0x2fd445=['cyan','object','1145368aPpehD','298rBFAVZ','map','repeat','entries','null','6968970nGkLeb','isTTY','green','color','8905hteWIR','795987uZKVxz','length','string','stringify','12ykQYUP','dim','blue','env','join','boolean','871IlkwTf','noColor','stdout','315248yIgYSx','1829696CsaJAS','number','yellow'];a91_0x451f=function(){return _0x2fd445;};return a91_0x451f();}export function colorJSONString(_0x2767ac,_0x1c990f={}){const _0x4383ae=a91_0x4203;return getChalk(_0x1c990f)[_0x4383ae(0x14b)](_0x2767ac);}export function colorJSONNumber(_0x5ddd6d,_0x335361={}){const _0x4c9eac=a91_0x4203;return getChalk(_0x335361)[_0x4c9eac(0x141)](_0x5ddd6d);}export function colorJSONBoolean(_0x568b79,_0x31a4bb={}){const _0x3aa409=a91_0x4203;return getChalk(_0x31a4bb)[_0x3aa409(0x140)](_0x568b79);}export function colorJSONNull(_0xfd6dc6,_0x2fb291={}){const _0x556eb7=a91_0x4203;return getChalk(_0x2fb291)[_0x556eb7(0x153)](_0xfd6dc6);}export function colorizeJSONCompact(_0x51d9fe,_0x165964={}){const _0x3122a5=a91_0x4203;if(!shouldUseColor(_0x165964))return JSON[_0x3122a5(0x151)](_0x51d9fe);if(_0x51d9fe===null)return colorJSONNull('null',_0x165964);if(typeof _0x51d9fe===_0x3122a5(0x157))return colorJSONBoolean(String(_0x51d9fe),_0x165964);if(typeof _0x51d9fe===_0x3122a5(0x15d))return colorJSONNumber(String(_0x51d9fe),_0x165964);if(typeof _0x51d9fe===_0x3122a5(0x150))return colorJSONString(JSON[_0x3122a5(0x151)](_0x51d9fe),_0x165964);if(Array['isArray'](_0x51d9fe)){if(_0x51d9fe[_0x3122a5(0x14f)]===0x0)return'[]';const _0x47a019=_0x51d9fe[_0x3122a5(0x145)](_0x2affa5=>colorizeJSONCompact(_0x2affa5,_0x165964));return'['+_0x47a019[_0x3122a5(0x156)](',')+']';}if(typeof _0x51d9fe==='object'){const _0x1a16b9=Object[_0x3122a5(0x147)](_0x51d9fe);if(_0x1a16b9[_0x3122a5(0x14f)]===0x0)return'{}';const _0x4e7b76=_0x1a16b9[_0x3122a5(0x145)](([_0xdcc674,_0x3bfe7b])=>{const _0x44bb2f=_0x3122a5,_0x44734e=colorJSONKey(JSON[_0x44bb2f(0x151)](_0xdcc674),_0x165964),_0x1e9c5b=colorizeJSONCompact(_0x3bfe7b,_0x165964);return _0x44734e+':'+_0x1e9c5b;});return'{'+_0x4e7b76[_0x3122a5(0x156)](',')+'}';}return String(_0x51d9fe);}export function colorizeJSON(_0x35870d,_0x2bc1eb={},_0x222c6e=0x0){const _0x453d87=a91_0x4203;if(!shouldUseColor(_0x2bc1eb))return JSON[_0x453d87(0x151)](_0x35870d,null,0x2);const _0x1e5174='\x20'[_0x453d87(0x146)](_0x222c6e),_0x4c706c=_0x222c6e+0x2;if(_0x35870d===null)return colorJSONNull(_0x453d87(0x148),_0x2bc1eb);if(typeof _0x35870d==='boolean')return colorJSONBoolean(String(_0x35870d),_0x2bc1eb);if(typeof _0x35870d==='number')return colorJSONNumber(String(_0x35870d),_0x2bc1eb);if(typeof _0x35870d==='string')return colorJSONString(JSON[_0x453d87(0x151)](_0x35870d),_0x2bc1eb);if(Array['isArray'](_0x35870d)){if(_0x35870d[_0x453d87(0x14f)]===0x0)return'[]';const _0x401e35=_0x35870d[_0x453d87(0x145)](_0x3aefb4=>{const _0x55e11b=_0x453d87,_0x5191b3=colorizeJSON(_0x3aefb4,_0x2bc1eb,_0x4c706c);return''+'\x20'[_0x55e11b(0x146)](_0x4c706c)+_0x5191b3;});return'[\x0a'+_0x401e35['join'](',\x0a')+('\x0a'+_0x1e5174+']');}if(typeof _0x35870d===_0x453d87(0x142)){const _0x32103c=Object[_0x453d87(0x147)](_0x35870d);if(_0x32103c[_0x453d87(0x14f)]===0x0)return'{}';const _0x19714d=_0x32103c[_0x453d87(0x145)](([_0x162c8e,_0x14ff40])=>{const _0x581dfa=colorJSONKey(JSON['stringify'](_0x162c8e),_0x2bc1eb),_0x47824c=colorizeJSON(_0x14ff40,_0x2bc1eb,_0x4c706c);return''+'\x20'['repeat'](_0x4c706c)+_0x581dfa+':\x20'+_0x47824c;});return'{\x0a'+_0x19714d[_0x453d87(0x156)](',\x0a')+('\x0a'+_0x1e5174+'}');}return String(_0x35870d);}
1
+ function a91_0x5ceb(){const _0x46c7f4=['5356698bmTwTV','NO_COLOR','yellow','repeat','boolean','stringify','isTTY','3234128GQbzsd','1948RKIxBM','2447829YiIWmU','green','null','number','dim','length','1317hIMazZ','string','cyan','7378245YQmxLy','noColor','isArray','color','blue','object','entries','441347kgiBhF','381340owCogN','map','join','45XcazkH','env'];a91_0x5ceb=function(){return _0x46c7f4;};return a91_0x5ceb();}(function(_0x2a8952,_0x1a33dc){const _0x3c8971=a91_0x5a8b,_0x5f3ccd=_0x2a8952();while(!![]){try{const _0xe4a396=parseInt(_0x3c8971(0x120))/0x1+parseInt(_0x3c8971(0x12e))/0x2*(-parseInt(_0x3c8971(0x116))/0x3)+parseInt(_0x3c8971(0x121))/0x4*(parseInt(_0x3c8971(0x124))/0x5)+parseInt(_0x3c8971(0x126))/0x6+-parseInt(_0x3c8971(0x119))/0x7+-parseInt(_0x3c8971(0x12d))/0x8+parseInt(_0x3c8971(0x110))/0x9;if(_0xe4a396===_0x1a33dc)break;else _0x5f3ccd['push'](_0x5f3ccd['shift']());}catch(_0x2edfe2){_0x5f3ccd['push'](_0x5f3ccd['shift']());}}}(a91_0x5ceb,0x8d2bf));import{Chalk}from'chalk';export function shouldUseColor(_0x569a1e={}){const _0x38d416=a91_0x5a8b;if(_0x569a1e[_0x38d416(0x11a)]===!![])return![];if(_0x569a1e[_0x38d416(0x11c)]===!![])return!![];if(process[_0x38d416(0x125)][_0x38d416(0x127)]!==undefined)return![];return process['stdout'][_0x38d416(0x12c)]??![];}export function getChalk(_0xe43c02={}){if(shouldUseColor(_0xe43c02))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x553494,_0x55e940={}){const _0x268697=a91_0x5a8b;return getChalk(_0x55e940)[_0x268697(0x114)](_0x553494);}function a91_0x5a8b(_0x453299,_0x422f6b){_0x453299=_0x453299-0x110;const _0x5ceb07=a91_0x5ceb();let _0x5a8b25=_0x5ceb07[_0x453299];return _0x5a8b25;}export function colorHeader(_0x371215,_0x5848ba={}){const _0xf9a0df=a91_0x5a8b;return getChalk(_0x5848ba)[_0xf9a0df(0x118)](_0x371215);}export function colorType(_0xacfa51,_0x5a5435={}){return getChalk(_0x5a5435)['dim'](_0xacfa51);}export function colorJSONKey(_0x5bbef9,_0x17e25f={}){const _0x46d6eb=a91_0x5a8b;return getChalk(_0x17e25f)[_0x46d6eb(0x11d)](_0x5bbef9);}export function colorJSONString(_0x478a28,_0x186e0f={}){const _0x45785b=a91_0x5a8b;return getChalk(_0x186e0f)[_0x45785b(0x111)](_0x478a28);}export function colorJSONNumber(_0x42f67b,_0x5e9711={}){const _0x5803ea=a91_0x5a8b;return getChalk(_0x5e9711)[_0x5803ea(0x118)](_0x42f67b);}export function colorJSONBoolean(_0x5d833c,_0x1148c4={}){const _0x4306e2=a91_0x5a8b;return getChalk(_0x1148c4)[_0x4306e2(0x128)](_0x5d833c);}export function colorJSONNull(_0xb504ad,_0x456f41={}){return getChalk(_0x456f41)['dim'](_0xb504ad);}export function colorizeJSONCompact(_0x4d9052,_0x51b82f={}){const _0xd74795=a91_0x5a8b;if(!shouldUseColor(_0x51b82f))return JSON[_0xd74795(0x12b)](_0x4d9052);if(_0x4d9052===null)return colorJSONNull('null',_0x51b82f);if(typeof _0x4d9052===_0xd74795(0x12a))return colorJSONBoolean(String(_0x4d9052),_0x51b82f);if(typeof _0x4d9052===_0xd74795(0x113))return colorJSONNumber(String(_0x4d9052),_0x51b82f);if(typeof _0x4d9052===_0xd74795(0x117))return colorJSONString(JSON['stringify'](_0x4d9052),_0x51b82f);if(Array[_0xd74795(0x11b)](_0x4d9052)){if(_0x4d9052['length']===0x0)return'[]';const _0x51231a=_0x4d9052[_0xd74795(0x122)](_0x38ff37=>colorizeJSONCompact(_0x38ff37,_0x51b82f));return'['+_0x51231a[_0xd74795(0x123)](',')+']';}if(typeof _0x4d9052===_0xd74795(0x11e)){const _0x2388e8=Object[_0xd74795(0x11f)](_0x4d9052);if(_0x2388e8[_0xd74795(0x115)]===0x0)return'{}';const _0x52b566=_0x2388e8[_0xd74795(0x122)](([_0x562d8a,_0x2c96cf])=>{const _0x55a687=colorJSONKey(JSON['stringify'](_0x562d8a),_0x51b82f),_0xfbc6ee=colorizeJSONCompact(_0x2c96cf,_0x51b82f);return _0x55a687+':'+_0xfbc6ee;});return'{'+_0x52b566[_0xd74795(0x123)](',')+'}';}return String(_0x4d9052);}export function colorizeJSON(_0x5221f4,_0x4d2b79={},_0x52d50a=0x0){const _0x392bff=a91_0x5a8b;if(!shouldUseColor(_0x4d2b79))return JSON[_0x392bff(0x12b)](_0x5221f4,null,0x2);const _0x387e43='\x20'[_0x392bff(0x129)](_0x52d50a),_0x827568=_0x52d50a+0x2;if(_0x5221f4===null)return colorJSONNull(_0x392bff(0x112),_0x4d2b79);if(typeof _0x5221f4===_0x392bff(0x12a))return colorJSONBoolean(String(_0x5221f4),_0x4d2b79);if(typeof _0x5221f4===_0x392bff(0x113))return colorJSONNumber(String(_0x5221f4),_0x4d2b79);if(typeof _0x5221f4==='string')return colorJSONString(JSON['stringify'](_0x5221f4),_0x4d2b79);if(Array[_0x392bff(0x11b)](_0x5221f4)){if(_0x5221f4[_0x392bff(0x115)]===0x0)return'[]';const _0xc790cb=_0x5221f4[_0x392bff(0x122)](_0x1a7b8c=>{const _0x42d6b8=colorizeJSON(_0x1a7b8c,_0x4d2b79,_0x827568);return''+'\x20'['repeat'](_0x827568)+_0x42d6b8;});return'[\x0a'+_0xc790cb[_0x392bff(0x123)](',\x0a')+('\x0a'+_0x387e43+']');}if(typeof _0x5221f4===_0x392bff(0x11e)){const _0x46fcde=Object[_0x392bff(0x11f)](_0x5221f4);if(_0x46fcde[_0x392bff(0x115)]===0x0)return'{}';const _0x3d65c8=_0x46fcde[_0x392bff(0x122)](([_0xae027f,_0x416c58])=>{const _0x31b052=_0x392bff,_0xc10f56=colorJSONKey(JSON[_0x31b052(0x12b)](_0xae027f),_0x4d2b79),_0x2ca621=colorizeJSON(_0x416c58,_0x4d2b79,_0x827568);return''+'\x20'[_0x31b052(0x129)](_0x827568)+_0xc10f56+':\x20'+_0x2ca621;});return'{\x0a'+_0x3d65c8[_0x392bff(0x123)](',\x0a')+('\x0a'+_0x387e43+'}');}return String(_0x5221f4);}
@@ -1 +1 @@
1
- (function(_0x5b424e,_0x2e0365){const _0x7bbfe7=a92_0x4d48,_0x135af3=_0x5b424e();while(!![]){try{const _0x1000fa=parseInt(_0x7bbfe7(0x17b))/0x1+parseInt(_0x7bbfe7(0x194))/0x2+parseInt(_0x7bbfe7(0x199))/0x3+-parseInt(_0x7bbfe7(0x198))/0x4*(parseInt(_0x7bbfe7(0x16d))/0x5)+parseInt(_0x7bbfe7(0x170))/0x6*(parseInt(_0x7bbfe7(0x195))/0x7)+-parseInt(_0x7bbfe7(0x179))/0x8+parseInt(_0x7bbfe7(0x1a7))/0x9*(-parseInt(_0x7bbfe7(0x1a6))/0xa);if(_0x1000fa===_0x2e0365)break;else _0x135af3['push'](_0x135af3['shift']());}catch(_0x12ae7b){_0x135af3['push'](_0x135af3['shift']());}}}(a92_0x5bbb,0xda534));import{writeFileSync}from'fs';import{spawn}from'child_process';function a92_0x5bbb(){const _0x4ef6aa=['table','45155XdWYVI','[query]','map','90VVMkSk','repeat','number','stderr','log','[rule]','pipe','length','inherit','5569312ajnCZf','less','59322WCBPcz','[error]','stringify','Results\x20saved\x20to\x20','red','format','object','forEach','varchar','output','─┬─','isTTY','padEnd','keys','[params]','magenta','params','split','[Object]','stdout','blue','No\x20data','write','entries','push','333148FWZgpt','467117QepjcP','max','tsv','404zxsXzL','4035798RKVnek','join','double','boolean','limit','stdin','jsonl','bold','color','rule','noColor','cmdout','trim','20YwhoAe','313074HumRti','json','error','query','sdk-result','string','[logs]'];a92_0x5bbb=function(){return _0x4ef6aa;};return a92_0x5bbb();}import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a92_0x1daf11 from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x2508af){const _0xe96de8=a92_0x4d48;return _0x2508af[_0xe96de8(0x180)]==='json'||_0x2508af[_0xe96de8(0x180)]===_0xe96de8(0x19f)||_0x2508af[_0xe96de8(0x180)]===_0xe96de8(0x197)||_0x2508af['format']===_0xe96de8(0x16c)||_0x2508af[_0xe96de8(0x166)]===!![]||_0x2508af[_0xe96de8(0x19f)]===!![]||_0x2508af[_0xe96de8(0x197)]===!![]||_0x2508af[_0xe96de8(0x16c)]===!![];}function a92_0x4d48(_0x247d2a,_0x2e3e87){_0x247d2a=_0x247d2a-0x166;const _0x5bbbe4=a92_0x5bbb();let _0x4d4803=_0x5bbbe4[_0x247d2a];return _0x4d4803;}export function parseOutputOptions(_0x1a00c7){const _0x117b7b=a92_0x4d48;return{'format':_0x1a00c7['format']||_0x117b7b(0x16c),'output':_0x1a00c7[_0x117b7b(0x184)]||'','limit':_0x1a00c7[_0x117b7b(0x19d)],'color':_0x1a00c7[_0x117b7b(0x1a1)],'noColor':_0x1a00c7[_0x117b7b(0x1a3)]};}function convertSDKResultToQueryResult(_0x1d57d5){const _0x4e3f44=a92_0x4d48,_0x1cd2bd=[];if(_0x1d57d5[_0x4e3f44(0x177)]>0x0){const _0x8e4aa4=_0x1d57d5[0x0];for(const [_0x8a9f44,_0x4ec770]of Object[_0x4e3f44(0x192)](_0x8e4aa4)){let _0x1c7a17=_0x4e3f44(0x183);if(typeof _0x4ec770===_0x4e3f44(0x172))_0x1c7a17=Number['isInteger'](_0x4ec770)?'bigint':_0x4e3f44(0x19b);else{if(typeof _0x4ec770===_0x4e3f44(0x19c))_0x1c7a17=_0x4e3f44(0x19c);else _0x4ec770===null&&(_0x1c7a17='varchar');}_0x1cd2bd[_0x4e3f44(0x193)]({'name':_0x8a9f44,'type':_0x1c7a17});}}return{'queryId':_0x4e3f44(0x169),'columns':_0x1cd2bd,'data':_0x1d57d5,'stats':{'state':'FINISHED','queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x1d57d5[_0x4e3f44(0x177)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x4376d0,_0x27f8ff){const _0xbbf1ca=convertSDKResultToQueryResult(_0x4376d0);return formatQueryOutput(_0xbbf1ca,_0x27f8ff);}export async function formatQueryOutput(_0x5382cb,_0x352e44){const _0x2dc51e=a92_0x4d48,{format:_0x54d8e7,limit:_0x1c893e,output:_0x48ef2f,color:_0x31b61d,noColor:_0x5d6b6b}=_0x352e44,_0x3468ba=Boolean(_0x48ef2f)&&!_0x31b61d,_0xd52601={'color':_0x31b61d,'noColor':_0x5d6b6b||_0x3468ba};if(_0x54d8e7===_0x2dc51e(0x16c)){const _0x219b20=shouldUseLess(_0x54d8e7,_0x48ef2f);return formatAsTable(_0x5382cb,_0x1c893e,_0x219b20,_0xd52601);}else{if(_0x54d8e7===_0x2dc51e(0x166))return formatAsJSON(_0x5382cb,_0xd52601);else return _0x54d8e7===_0x2dc51e(0x19f)?formatAsJSONL(_0x5382cb,_0xd52601):formatQueryResult(_0x5382cb,_0x54d8e7);}}function shouldUseLess(_0xaf2fcd,_0x2a45ad){const _0x2846a0=a92_0x4d48;return _0xaf2fcd===_0x2846a0(0x16c)&&process[_0x2846a0(0x18e)][_0x2846a0(0x186)]&&!_0x2a45ad;}export function resolveOutputOptions(_0x16ae66){const _0x53bd84=a92_0x4d48,_0x499cf8=resolveOutputFormat(_0x16ae66[_0x53bd84(0x180)],_0x16ae66[_0x53bd84(0x184)],_0x53bd84(0x16c));let _0x112dab=typeof _0x16ae66['limit']===_0x53bd84(0x172)?_0x16ae66[_0x53bd84(0x19d)]:parseInt(_0x16ae66[_0x53bd84(0x19d)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x477e3e=_0x16ae66['output']||'';return shouldUseLess(_0x499cf8,_0x477e3e)&&(_0x112dab=Infinity),{'format':_0x499cf8,'output':_0x477e3e,'limit':_0x112dab,'color':_0x16ae66['color'],'noColor':_0x16ae66[_0x53bd84(0x1a3)]};}export function writeOutput(_0xdc377e,_0x5b2f75,_0x5354c7){const _0x23cfc9=a92_0x4d48;return _0x5b2f75?(writeFileSync(_0x5b2f75,_0xdc377e),console[_0x23cfc9(0x167)](_0x23cfc9(0x17e)+_0x5b2f75),Promise['resolve']()):shouldUseLess(_0x5354c7||'','')?new Promise(_0x53cefd=>{const _0x5d2ade=_0x23cfc9,_0x366783=spawn(_0x5d2ade(0x17a),['-FXRSn'],{'stdio':[_0x5d2ade(0x176),_0x5d2ade(0x178),'inherit']});let _0x2e8bbf=![];_0x366783['on'](_0x5d2ade(0x167),()=>{const _0x2f78f9=_0x5d2ade;!_0x2e8bbf&&(_0x2e8bbf=!![],console[_0x2f78f9(0x174)](_0xdc377e),_0x53cefd());}),_0x366783['on']('close',()=>{!_0x2e8bbf&&(_0x2e8bbf=!![],_0x53cefd());}),_0x366783['on']('spawn',()=>{const _0x2d7fd8=_0x5d2ade;!_0x2e8bbf&&_0x366783[_0x2d7fd8(0x19e)]&&(_0x366783[_0x2d7fd8(0x19e)]['on']('error',()=>{}),_0x366783['stdin'][_0x2d7fd8(0x191)](_0xdc377e),_0x366783['stdin']['end']());}),!_0x366783['stdin']&&(!_0x2e8bbf&&(_0x2e8bbf=!![],console['log'](_0xdc377e),_0x53cefd()));}):(console['log'](_0xdc377e),Promise['resolve']());}export async function handleSDKOutput(_0x55635a,_0x365683){const _0x1ddd42=a92_0x4d48,_0xfacbaa=resolveOutputOptions(_0x365683),_0x199052=await formatSDKOutput(_0x55635a,_0xfacbaa);await writeOutput(_0x199052,_0xfacbaa[_0x1ddd42(0x184)]||undefined,_0xfacbaa[_0x1ddd42(0x180)]);}export async function handleQueryOutput(_0x5b7df8,_0x5cf107){const _0x5ae056=a92_0x4d48,_0x1271f8=resolveOutputOptions(_0x5cf107),_0x244c7f=await formatQueryOutput(_0x5b7df8,_0x1271f8);await writeOutput(_0x244c7f,_0x1271f8[_0x5ae056(0x184)]||undefined,_0x1271f8[_0x5ae056(0x180)]);}async function formatSingleObject(_0x388111,_0x78529b){const _0x545959=a92_0x4d48,{format:_0x258b7a,color:_0x2469ec,noColor:_0x4bb9c5}=_0x78529b,_0x981685={'color':_0x2469ec,'noColor':_0x4bb9c5};if(_0x258b7a===_0x545959(0x166)){if(shouldUseColor(_0x981685))return colorizeJSON(_0x388111,_0x981685);return JSON['stringify'](_0x388111,null,0x2);}else{if(_0x258b7a===_0x545959(0x19f)){if(shouldUseColor(_0x981685))return colorizeJSONCompact(_0x388111,_0x981685);return JSON['stringify'](_0x388111);}else{if(_0x258b7a===_0x545959(0x197))return Object[_0x545959(0x192)](_0x388111)['map'](([_0x310f55,_0x20e928])=>_0x310f55+'\x09'+_0x20e928)['join']('\x0a');else{const _0xb8a8aa=Object[_0x545959(0x192)](_0x388111);if(_0xb8a8aa[_0x545959(0x177)]===0x0)return _0x545959(0x190);const _0xb196cd=_0x388111['debug'],_0x5ad1c0=_0x388111[_0x545959(0x168)],_0x58ddbd=_0x388111[_0x545959(0x18b)],_0x41ab81=_0x388111[_0x545959(0x1a2)],_0x3d5d3c=_0x5ad1c0?typeof _0x5ad1c0===_0x545959(0x16a)?_0x5ad1c0:JSON[_0x545959(0x17d)](_0x5ad1c0,null,0x2):undefined,_0xf4638f=_0x58ddbd&&Object[_0x545959(0x188)](_0x58ddbd)[_0x545959(0x177)]>0x0?JSON[_0x545959(0x17d)](_0x58ddbd,null,0x2):undefined,_0x1b9017=_0x41ab81&&Object[_0x545959(0x188)](_0x41ab81)[_0x545959(0x177)]>0x0?JSON[_0x545959(0x17d)](_0x41ab81,null,0x2):undefined,_0x4723e3=_0xb8a8aa['filter'](([_0xdf7986])=>_0xdf7986!=='debug'&&_0xdf7986!==_0x545959(0x168)&&_0xdf7986!==_0x545959(0x18b)&&_0xdf7986!=='rule'),_0x1c9b6e=Math[_0x545959(0x196)](..._0x4723e3[_0x545959(0x16f)](([_0x3d5c94])=>_0x3d5c94[_0x545959(0x177)])),_0x5bba15=Math['max'](..._0x4723e3[_0x545959(0x16f)](([,_0x3ad13c])=>{const _0x36a18e=_0x545959;try{const _0x4e54a7=_0x3ad13c===null||_0x3ad13c===undefined?'':typeof _0x3ad13c==='object'?JSON[_0x36a18e(0x17d)](_0x3ad13c):String(_0x3ad13c),_0x19bb6f=_0x4e54a7[_0x36a18e(0x18c)]('\x0a');return Math['max'](..._0x19bb6f['map'](_0x122777=>_0x122777[_0x36a18e(0x177)]),0x0);}catch{return 0x0;}}),0x14),_0x477160=[];_0x477160[_0x545959(0x193)](colorBorder('┌─'+'─'[_0x545959(0x171)](_0x1c9b6e)+_0x545959(0x185)+'─'[_0x545959(0x171)](_0x5bba15)+'─┐',_0x981685)),_0x4723e3['forEach'](([_0x2fce86,_0x4a5611])=>{const _0x319036=_0x545959;let _0x85d7e5;try{_0x85d7e5=_0x4a5611===null||_0x4a5611===undefined?'':typeof _0x4a5611===_0x319036(0x181)?JSON[_0x319036(0x17d)](_0x4a5611):String(_0x4a5611);}catch{_0x85d7e5=_0x319036(0x18d);}const _0x366312=_0x2fce86[_0x319036(0x187)](_0x1c9b6e),_0x1e12f5=_0x85d7e5[_0x319036(0x18c)]('\x0a');_0x1e12f5['forEach']((_0x251f4c,_0x4d54a4)=>{const _0x1fcf08=_0x319036,_0x2b5b15=colorBorder('│',_0x981685);_0x4d54a4===0x0?_0x477160['push'](_0x2b5b15+'\x20'+_0x366312+'\x20'+_0x2b5b15+'\x20'+_0x251f4c[_0x1fcf08(0x187)](_0x5bba15)+'\x20'+_0x2b5b15):_0x477160[_0x1fcf08(0x193)](_0x2b5b15+'\x20'+'\x20'[_0x1fcf08(0x171)](_0x1c9b6e)+'\x20'+_0x2b5b15+'\x20'+_0x251f4c[_0x1fcf08(0x187)](_0x5bba15)+'\x20'+_0x2b5b15);});}),_0x477160['push'](colorBorder('└─'+'─'['repeat'](_0x1c9b6e)+'─┴─'+'─'[_0x545959(0x171)](_0x5bba15)+'─┘',_0x981685));_0x3d5d3c&&(_0x477160[_0x545959(0x193)](''),_0x477160[_0x545959(0x193)](String(a92_0x1daf11['yellow'][_0x545959(0x1a0)](_0x545959(0x16e)))),_0x477160['push'](_0x3d5d3c));_0xf4638f&&(_0x477160['push'](''),_0x477160['push'](String(a92_0x1daf11[_0x545959(0x18f)][_0x545959(0x1a0)](_0x545959(0x189)))),_0x477160[_0x545959(0x193)](_0xf4638f));_0x1b9017&&(_0x477160[_0x545959(0x193)](''),_0x477160[_0x545959(0x193)](String(a92_0x1daf11[_0x545959(0x18a)][_0x545959(0x1a0)](_0x545959(0x175)))),_0x477160[_0x545959(0x193)](_0x1b9017));if(_0xb196cd){if(_0xb196cd[_0x545959(0x173)]){_0x477160[_0x545959(0x193)](''),_0x477160[_0x545959(0x193)](String(a92_0x1daf11[_0x545959(0x17f)][_0x545959(0x1a0)](_0x545959(0x17c))));const _0x17c4cd=_0xb196cd[_0x545959(0x173)][_0x545959(0x18c)]('\x0a');_0x17c4cd[_0x545959(0x182)](_0x1eb252=>{const _0x471550=_0x545959;_0x1eb252[_0x471550(0x1a5)]()&&_0x477160[_0x471550(0x193)](_0x1eb252);});}if(_0xb196cd['cmdout']){_0x477160[_0x545959(0x193)](''),_0x477160[_0x545959(0x193)](String(a92_0x1daf11['cyan']['bold'](_0x545959(0x16b))));const _0x2062b7=_0xb196cd[_0x545959(0x1a4)][_0x545959(0x18c)]('\x0a');_0x2062b7[_0x545959(0x182)](_0x2dd6d9=>{_0x2dd6d9['trim']()&&_0x477160['push'](_0x2dd6d9);});}}return _0x477160[_0x545959(0x19a)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x46b708,_0xc339f8){const _0x152538=a92_0x4d48;if(_0xc339f8[_0x152538(0x180)]==='table'){await handleSDKOutput([_0x46b708],_0xc339f8);return;}const _0x5c601e=resolveOutputOptions(_0xc339f8),_0xfc8463=await formatSingleObject(_0x46b708,_0x5c601e);await writeOutput(_0xfc8463,_0x5c601e[_0x152538(0x184)]||undefined,_0x5c601e[_0x152538(0x180)]);}
1
+ (function(_0x570ef4,_0x4e9271){const _0x2464aa=a92_0x181c,_0x597de3=_0x570ef4();while(!![]){try{const _0x2a545e=parseInt(_0x2464aa(0x6f))/0x1*(parseInt(_0x2464aa(0xb2))/0x2)+-parseInt(_0x2464aa(0xb6))/0x3+parseInt(_0x2464aa(0x76))/0x4+parseInt(_0x2464aa(0xaf))/0x5+-parseInt(_0x2464aa(0x80))/0x6*(-parseInt(_0x2464aa(0xb0))/0x7)+-parseInt(_0x2464aa(0xa8))/0x8+parseInt(_0x2464aa(0x82))/0x9;if(_0x2a545e===_0x4e9271)break;else _0x597de3['push'](_0x597de3['shift']());}catch(_0x4aaff2){_0x597de3['push'](_0x597de3['shift']());}}}(a92_0x4dc3,0x314cf));import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';import{colorBorder,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';import a92_0x365eed from'chalk';import{DEFAULT_DISPLAY_LIMIT}from'./constants.js';function a92_0x4dc3(){const _0x3cbe55=['push','join','resolve','blue','debug','table','─┬─','log','padEnd','entries','isInteger','red','double','boolean','spawn','rule','output','close','filter','write','bold','2738992cfVGqj','cmdout','length','error','Results\x20saved\x20to\x20','bigint','yellow','1590270ZnWQWP','161CCsRwr','limit','2966WaWGlT','string','repeat','color','770016twKawJ','[rule]','json','26yqnTUQ','jsonl','inherit','varchar','less','tsv','sdk-result','849832rfkmbo','format','split','[Object]','[query]','pipe','max','magenta','keys','FINISHED','2928ZDFgHa','forEach','1986183EpkWHw','stdout','isTTY','[params]','object','map','stringify','No\x20data','[error]','-FXRSn','params','stderr','query','trim','stdin','─┴─','number'];a92_0x4dc3=function(){return _0x3cbe55;};return a92_0x4dc3();}function a92_0x181c(_0x536ceb,_0x320872){_0x536ceb=_0x536ceb-0x6e;const _0x4dc3ff=a92_0x4dc3();let _0x181cb1=_0x4dc3ff[_0x536ceb];return _0x181cb1;}import{formatAsTable,formatAsJSON,formatAsJSONL,formatQueryResult}from'./formatters.js';export function isStructuredFormat(_0x24f22e){const _0x3193c4=a92_0x181c;return _0x24f22e['format']===_0x3193c4(0x6e)||_0x24f22e[_0x3193c4(0x77)]==='jsonl'||_0x24f22e['format']==='tsv'||_0x24f22e[_0x3193c4(0x77)]===_0x3193c4(0x98)||_0x24f22e[_0x3193c4(0x6e)]===!![]||_0x24f22e[_0x3193c4(0x70)]===!![]||_0x24f22e[_0x3193c4(0x74)]===!![]||_0x24f22e[_0x3193c4(0x98)]===!![];}export function parseOutputOptions(_0x41b4eb){const _0x581153=a92_0x181c;return{'format':_0x41b4eb[_0x581153(0x77)]||'table','output':_0x41b4eb[_0x581153(0xa3)]||'','limit':_0x41b4eb['limit'],'color':_0x41b4eb['color'],'noColor':_0x41b4eb['noColor']};}function convertSDKResultToQueryResult(_0x371655){const _0x58b888=a92_0x181c,_0x46818d=[];if(_0x371655[_0x58b888(0xaa)]>0x0){const _0x3f61cb=_0x371655[0x0];for(const [_0x409f1d,_0x144c3e]of Object[_0x58b888(0x9c)](_0x3f61cb)){let _0x274357='varchar';if(typeof _0x144c3e===_0x58b888(0x92))_0x274357=Number[_0x58b888(0x9d)](_0x144c3e)?_0x58b888(0xad):_0x58b888(0x9f);else{if(typeof _0x144c3e===_0x58b888(0xa0))_0x274357='boolean';else _0x144c3e===null&&(_0x274357=_0x58b888(0x72));}_0x46818d[_0x58b888(0x93)]({'name':_0x409f1d,'type':_0x274357});}}return{'queryId':_0x58b888(0x75),'columns':_0x46818d,'data':_0x371655,'stats':{'state':_0x58b888(0x7f),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x371655[_0x58b888(0xaa)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x4dce99,_0x5adb61){const _0x43d4a1=convertSDKResultToQueryResult(_0x4dce99);return formatQueryOutput(_0x43d4a1,_0x5adb61);}export async function formatQueryOutput(_0x50590a,_0x524b16){const _0x3b1daa=a92_0x181c,{format:_0x3ca9ef,limit:_0xa9b875,output:_0x388eea,color:_0x1c21aa,noColor:_0x1a8eca}=_0x524b16,_0x5c578e=Boolean(_0x388eea)&&!_0x1c21aa,_0x2a7024={'color':_0x1c21aa,'noColor':_0x1a8eca||_0x5c578e};if(_0x3ca9ef===_0x3b1daa(0x98)){const _0x4c9cdb=shouldUseLess(_0x3ca9ef,_0x388eea);return formatAsTable(_0x50590a,_0xa9b875,_0x4c9cdb,_0x2a7024);}else{if(_0x3ca9ef===_0x3b1daa(0x6e))return formatAsJSON(_0x50590a,_0x2a7024);else return _0x3ca9ef===_0x3b1daa(0x70)?formatAsJSONL(_0x50590a,_0x2a7024):formatQueryResult(_0x50590a,_0x3ca9ef);}}function shouldUseLess(_0x3e4530,_0xfeae19){const _0x32e333=a92_0x181c;return _0x3e4530===_0x32e333(0x98)&&process[_0x32e333(0x83)][_0x32e333(0x84)]&&!_0xfeae19;}export function resolveOutputOptions(_0x22877c){const _0x1e74cd=a92_0x181c,_0x13e53b=resolveOutputFormat(_0x22877c[_0x1e74cd(0x77)],_0x22877c[_0x1e74cd(0xa3)],_0x1e74cd(0x98));let _0x385f33=typeof _0x22877c['limit']===_0x1e74cd(0x92)?_0x22877c[_0x1e74cd(0xb1)]:parseInt(_0x22877c[_0x1e74cd(0xb1)]||String(DEFAULT_DISPLAY_LIMIT),0xa);const _0x2ce5ff=_0x22877c[_0x1e74cd(0xa3)]||'';return shouldUseLess(_0x13e53b,_0x2ce5ff)&&(_0x385f33=Infinity),{'format':_0x13e53b,'output':_0x2ce5ff,'limit':_0x385f33,'color':_0x22877c[_0x1e74cd(0xb5)],'noColor':_0x22877c['noColor']};}export function writeOutput(_0x220fc9,_0x4c6d27,_0x39b007){const _0x67bc10=a92_0x181c;return _0x4c6d27?(writeFileSync(_0x4c6d27,_0x220fc9),console[_0x67bc10(0xab)](_0x67bc10(0xac)+_0x4c6d27),Promise[_0x67bc10(0x95)]()):shouldUseLess(_0x39b007||'','')?new Promise(_0x1224bf=>{const _0x5adb34=_0x67bc10,_0x410788=spawn(_0x5adb34(0x73),[_0x5adb34(0x8b)],{'stdio':[_0x5adb34(0x7b),_0x5adb34(0x71),'inherit']});let _0x59df6e=![];_0x410788['on'](_0x5adb34(0xab),()=>{!_0x59df6e&&(_0x59df6e=!![],console['log'](_0x220fc9),_0x1224bf());}),_0x410788['on'](_0x5adb34(0xa4),()=>{!_0x59df6e&&(_0x59df6e=!![],_0x1224bf());}),_0x410788['on'](_0x5adb34(0xa1),()=>{const _0x386210=_0x5adb34;!_0x59df6e&&_0x410788[_0x386210(0x90)]&&(_0x410788[_0x386210(0x90)]['on'](_0x386210(0xab),()=>{}),_0x410788[_0x386210(0x90)][_0x386210(0xa6)](_0x220fc9),_0x410788['stdin']['end']());}),!_0x410788[_0x5adb34(0x90)]&&(!_0x59df6e&&(_0x59df6e=!![],console[_0x5adb34(0x9a)](_0x220fc9),_0x1224bf()));}):(console[_0x67bc10(0x9a)](_0x220fc9),Promise[_0x67bc10(0x95)]());}export async function handleSDKOutput(_0x558cf5,_0xbbed8e){const _0x1bcb29=a92_0x181c,_0x4bcfce=resolveOutputOptions(_0xbbed8e),_0x574140=await formatSDKOutput(_0x558cf5,_0x4bcfce);await writeOutput(_0x574140,_0x4bcfce[_0x1bcb29(0xa3)]||undefined,_0x4bcfce['format']);}export async function handleQueryOutput(_0x59d4ec,_0x7ddc4c){const _0x4fa2b9=a92_0x181c,_0x293730=resolveOutputOptions(_0x7ddc4c),_0x2d8816=await formatQueryOutput(_0x59d4ec,_0x293730);await writeOutput(_0x2d8816,_0x293730[_0x4fa2b9(0xa3)]||undefined,_0x293730[_0x4fa2b9(0x77)]);}async function formatSingleObject(_0x498d9b,_0x40d2fc){const _0x17c38a=a92_0x181c,{format:_0x3e90a8,color:_0x5ccb5f,noColor:_0x54d9da}=_0x40d2fc,_0x47a69f={'color':_0x5ccb5f,'noColor':_0x54d9da};if(_0x3e90a8===_0x17c38a(0x6e)){if(shouldUseColor(_0x47a69f))return colorizeJSON(_0x498d9b,_0x47a69f);return JSON['stringify'](_0x498d9b,null,0x2);}else{if(_0x3e90a8===_0x17c38a(0x70)){if(shouldUseColor(_0x47a69f))return colorizeJSONCompact(_0x498d9b,_0x47a69f);return JSON[_0x17c38a(0x88)](_0x498d9b);}else{if(_0x3e90a8===_0x17c38a(0x74))return Object[_0x17c38a(0x9c)](_0x498d9b)[_0x17c38a(0x87)](([_0x549cd3,_0x46decc])=>_0x549cd3+'\x09'+_0x46decc)[_0x17c38a(0x94)]('\x0a');else{const _0x152070=Object['entries'](_0x498d9b);if(_0x152070[_0x17c38a(0xaa)]===0x0)return _0x17c38a(0x89);const _0x30510b=_0x498d9b[_0x17c38a(0x97)],_0x11cc08=_0x498d9b['query'],_0x49e6dc=_0x498d9b[_0x17c38a(0x8c)],_0x43b475=_0x498d9b[_0x17c38a(0xa2)],_0x98cde3=_0x11cc08?typeof _0x11cc08===_0x17c38a(0xb3)?_0x11cc08:JSON['stringify'](_0x11cc08,null,0x2):undefined,_0x37b7ad=_0x49e6dc&&Object[_0x17c38a(0x7e)](_0x49e6dc)[_0x17c38a(0xaa)]>0x0?JSON[_0x17c38a(0x88)](_0x49e6dc,null,0x2):undefined,_0x8014a5=_0x43b475&&Object['keys'](_0x43b475)[_0x17c38a(0xaa)]>0x0?JSON[_0x17c38a(0x88)](_0x43b475,null,0x2):undefined,_0x4b07af=_0x152070[_0x17c38a(0xa5)](([_0x32bfda])=>_0x32bfda!==_0x17c38a(0x97)&&_0x32bfda!==_0x17c38a(0x8e)&&_0x32bfda!==_0x17c38a(0x8c)&&_0x32bfda!=='rule'),_0x120d2b=Math['max'](..._0x4b07af[_0x17c38a(0x87)](([_0x3487f0])=>_0x3487f0[_0x17c38a(0xaa)])),_0x33291b=Math[_0x17c38a(0x7c)](..._0x4b07af[_0x17c38a(0x87)](([,_0x445295])=>{const _0x48f634=_0x17c38a;try{const _0x13ab3f=_0x445295===null||_0x445295===undefined?'':typeof _0x445295===_0x48f634(0x86)?JSON[_0x48f634(0x88)](_0x445295):String(_0x445295),_0x3a8140=_0x13ab3f[_0x48f634(0x78)]('\x0a');return Math[_0x48f634(0x7c)](..._0x3a8140['map'](_0x3e8eb3=>_0x3e8eb3['length']),0x0);}catch{return 0x0;}}),0x14),_0x147fb7=[];_0x147fb7[_0x17c38a(0x93)](colorBorder('┌─'+'─'['repeat'](_0x120d2b)+_0x17c38a(0x99)+'─'['repeat'](_0x33291b)+'─┐',_0x47a69f)),_0x4b07af[_0x17c38a(0x81)](([_0x34683a,_0x399662])=>{const _0x16cfa6=_0x17c38a;let _0xab8b7c;try{_0xab8b7c=_0x399662===null||_0x399662===undefined?'':typeof _0x399662==='object'?JSON[_0x16cfa6(0x88)](_0x399662):String(_0x399662);}catch{_0xab8b7c=_0x16cfa6(0x79);}const _0x5c8e72=_0x34683a[_0x16cfa6(0x9b)](_0x120d2b),_0x2226e5=_0xab8b7c['split']('\x0a');_0x2226e5[_0x16cfa6(0x81)]((_0x4b757b,_0x551fc9)=>{const _0x184a14=_0x16cfa6,_0x29f568=colorBorder('│',_0x47a69f);_0x551fc9===0x0?_0x147fb7[_0x184a14(0x93)](_0x29f568+'\x20'+_0x5c8e72+'\x20'+_0x29f568+'\x20'+_0x4b757b['padEnd'](_0x33291b)+'\x20'+_0x29f568):_0x147fb7['push'](_0x29f568+'\x20'+'\x20'['repeat'](_0x120d2b)+'\x20'+_0x29f568+'\x20'+_0x4b757b[_0x184a14(0x9b)](_0x33291b)+'\x20'+_0x29f568);});}),_0x147fb7[_0x17c38a(0x93)](colorBorder('└─'+'─'[_0x17c38a(0xb4)](_0x120d2b)+_0x17c38a(0x91)+'─'['repeat'](_0x33291b)+'─┘',_0x47a69f));_0x98cde3&&(_0x147fb7[_0x17c38a(0x93)](''),_0x147fb7[_0x17c38a(0x93)](String(a92_0x365eed[_0x17c38a(0xae)][_0x17c38a(0xa7)](_0x17c38a(0x7a)))),_0x147fb7[_0x17c38a(0x93)](_0x98cde3));_0x37b7ad&&(_0x147fb7[_0x17c38a(0x93)](''),_0x147fb7[_0x17c38a(0x93)](String(a92_0x365eed[_0x17c38a(0x96)][_0x17c38a(0xa7)](_0x17c38a(0x85)))),_0x147fb7[_0x17c38a(0x93)](_0x37b7ad));_0x8014a5&&(_0x147fb7[_0x17c38a(0x93)](''),_0x147fb7[_0x17c38a(0x93)](String(a92_0x365eed[_0x17c38a(0x7d)][_0x17c38a(0xa7)](_0x17c38a(0xb7)))),_0x147fb7[_0x17c38a(0x93)](_0x8014a5));if(_0x30510b){if(_0x30510b[_0x17c38a(0x8d)]){_0x147fb7[_0x17c38a(0x93)](''),_0x147fb7[_0x17c38a(0x93)](String(a92_0x365eed[_0x17c38a(0x9e)][_0x17c38a(0xa7)](_0x17c38a(0x8a))));const _0x9e62f4=_0x30510b[_0x17c38a(0x8d)][_0x17c38a(0x78)]('\x0a');_0x9e62f4[_0x17c38a(0x81)](_0x30c66f=>{const _0x578c59=_0x17c38a;_0x30c66f['trim']()&&_0x147fb7[_0x578c59(0x93)](_0x30c66f);});}if(_0x30510b['cmdout']){_0x147fb7[_0x17c38a(0x93)](''),_0x147fb7[_0x17c38a(0x93)](String(a92_0x365eed['cyan'][_0x17c38a(0xa7)]('[logs]')));const _0x5338d3=_0x30510b[_0x17c38a(0xa9)][_0x17c38a(0x78)]('\x0a');_0x5338d3[_0x17c38a(0x81)](_0x50c0cc=>{const _0x509b17=_0x17c38a;_0x50c0cc[_0x509b17(0x8f)]()&&_0x147fb7[_0x509b17(0x93)](_0x50c0cc);});}}return _0x147fb7[_0x17c38a(0x94)]('\x0a');}}}}export async function handleSingleObjectOutput(_0x3138a3,_0x5aada5){const _0xf43ecd=a92_0x181c;if(_0x5aada5[_0xf43ecd(0x77)]===_0xf43ecd(0x98)){await handleSDKOutput([_0x3138a3],_0x5aada5);return;}const _0xe669da=resolveOutputOptions(_0x5aada5),_0x574830=await formatSingleObject(_0x3138a3,_0xe669da);await writeOutput(_0x574830,_0xe669da['output']||undefined,_0xe669da[_0xf43ecd(0x77)]);}
@@ -1 +1 @@
1
- (function(_0x69ea37,_0x5dafb1){const _0x162f0b=a93_0x26d8,_0x22435a=_0x69ea37();while(!![]){try{const _0x3ca970=-parseInt(_0x162f0b(0x166))/0x1+parseInt(_0x162f0b(0x162))/0x2*(-parseInt(_0x162f0b(0x160))/0x3)+parseInt(_0x162f0b(0x15f))/0x4+-parseInt(_0x162f0b(0x15d))/0x5*(parseInt(_0x162f0b(0x161))/0x6)+parseInt(_0x162f0b(0x165))/0x7+-parseInt(_0x162f0b(0x167))/0x8+parseInt(_0x162f0b(0x163))/0x9*(parseInt(_0x162f0b(0x15e))/0xa);if(_0x3ca970===_0x5dafb1)break;else _0x22435a['push'](_0x22435a['shift']());}catch(_0x468356){_0x22435a['push'](_0x22435a['shift']());}}}(a93_0x36b5,0xd3dc6));export const DEFAULT_DISPLAY_LIMIT=0x28;function a93_0x26d8(_0x47e4fb,_0xc14959){_0x47e4fb=_0x47e4fb-0x15d;const _0x36b53d=a93_0x36b5();let _0x26d89b=_0x36b53d[_0x47e4fb];return _0x26d89b;}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x55d3d8,_0x2da27e){const _0x3cea5f=a93_0x26d8;if(_0x55d3d8===undefined)return _0x2da27e;if(typeof _0x55d3d8===_0x3cea5f(0x164))return _0x55d3d8;return parseInt(_0x55d3d8,0xa);}function a93_0x36b5(){const _0x21fab1=['128922SNSFdq','5908112vWYgnu','85jLtACX','10HMBiGJ','1024792lJcbPD','6879YzLlnS','514218nsUAPZ','1146nBKOog','26074989XjyaDm','number','9468473bpkTAb'];a93_0x36b5=function(){return _0x21fab1;};return a93_0x36b5();}
1
+ (function(_0x50bddb,_0x56bd8c){const _0x4fc538=a93_0x5ccf,_0x19f29a=_0x50bddb();while(!![]){try{const _0x5164c5=parseInt(_0x4fc538(0x19a))/0x1*(-parseInt(_0x4fc538(0x197))/0x2)+-parseInt(_0x4fc538(0x195))/0x3*(parseInt(_0x4fc538(0x19c))/0x4)+-parseInt(_0x4fc538(0x192))/0x5+-parseInt(_0x4fc538(0x196))/0x6*(-parseInt(_0x4fc538(0x193))/0x7)+-parseInt(_0x4fc538(0x19b))/0x8+-parseInt(_0x4fc538(0x194))/0x9+parseInt(_0x4fc538(0x198))/0xa;if(_0x5164c5===_0x56bd8c)break;else _0x19f29a['push'](_0x19f29a['shift']());}catch(_0x4311fc){_0x19f29a['push'](_0x19f29a['shift']());}}}(a93_0x3990,0x25ad9));export const DEFAULT_DISPLAY_LIMIT=0x28;function a93_0x5ccf(_0x13a7c8,_0x5dc959){_0x13a7c8=_0x13a7c8-0x192;const _0x399063=a93_0x3990();let _0x5ccf6f=_0x399063[_0x13a7c8];return _0x5ccf6f;}function a93_0x3990(){const _0x29ec83=['8468rEtwEc','1054200aYNaIn','980DCvtHJ','154980yMaoMr','129rgCXuT','7818EOCPiZ','163808OAYYdQ','7531950tUOUKx','number','3CwmxMv','1731864yJajqb'];a93_0x3990=function(){return _0x29ec83;};return a93_0x3990();}export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x347cce,_0x2a4280){const _0x4897ae=a93_0x5ccf;if(_0x347cce===undefined)return _0x2a4280;if(typeof _0x347cce===_0x4897ae(0x199))return _0x347cce;return parseInt(_0x347cce,0xa);}
@@ -1 +1 @@
1
- (function(_0x27479e,_0x55c5b6){const _0x59df19=a94_0x4599,_0x32fac3=_0x27479e();while(!![]){try{const _0x4c3eb4=-parseInt(_0x59df19(0xf9))/0x1+-parseInt(_0x59df19(0xea))/0x2+parseInt(_0x59df19(0xfd))/0x3*(parseInt(_0x59df19(0x104))/0x4)+-parseInt(_0x59df19(0xf3))/0x5+parseInt(_0x59df19(0x109))/0x6*(-parseInt(_0x59df19(0x10a))/0x7)+parseInt(_0x59df19(0xf8))/0x8*(parseInt(_0x59df19(0xed))/0x9)+parseInt(_0x59df19(0x100))/0xa;if(_0x4c3eb4===_0x55c5b6)break;else _0x32fac3['push'](_0x32fac3['shift']());}catch(_0xb8a712){_0x32fac3['push'](_0x32fac3['shift']());}}}(a94_0x2195,0x84b96));import a94_0x5d5cf5 from'chalk';function a94_0x2195(){const _0xaf93f9=['size','push','1701400XMwBjU','\x20+\x20','some','repeat','removed','248dyITwk','26827sLEUBT','split','\x20-\x20','fill','1513209ceKfPF','\x20\x20\x20','type','9003480Oxxgic','length','green','add','4fVfIVA','content','has','padStart','added','18yteUfv','1985214YKolTR','new','unchanged','forEach','1221296bwPdHj','map','join','280872uwenKy','\x20\x20...','old','max'];a94_0x2195=function(){return _0xaf93f9;};return a94_0x2195();}export function generateDiff(_0x425453,_0xf3679a){const _0x209520=a94_0x4599,_0x5dfd7f=_0x425453[_0x209520(0xfa)]('\x0a'),_0x1c9835=_0xf3679a[_0x209520(0xfa)]('\x0a'),_0x29779a=[],_0x4d1cc1=computeLCS(_0x5dfd7f,_0x1c9835);let _0x1496c4=0x0,_0xd10fc0=0x0,_0x5dc660=0x0;while(_0x1496c4<_0x5dfd7f[_0x209520(0x101)]||_0xd10fc0<_0x1c9835['length']){if(_0x5dc660<_0x4d1cc1[_0x209520(0x101)]&&_0x1496c4<_0x5dfd7f[_0x209520(0x101)]&&_0x5dfd7f[_0x1496c4]===_0x4d1cc1[_0x5dc660])_0xd10fc0<_0x1c9835[_0x209520(0x101)]&&_0x1c9835[_0xd10fc0]===_0x4d1cc1[_0x5dc660]?(_0x29779a[_0x209520(0xf2)]({'type':'unchanged','content':_0x5dfd7f[_0x1496c4]}),_0x1496c4++,_0xd10fc0++,_0x5dc660++):(_0x29779a[_0x209520(0xf2)]({'type':_0x209520(0x108),'content':_0x1c9835[_0xd10fc0]}),_0xd10fc0++);else{if(_0x5dc660<_0x4d1cc1['length']&&_0xd10fc0<_0x1c9835[_0x209520(0x101)]&&_0x1c9835[_0xd10fc0]===_0x4d1cc1[_0x5dc660])_0x29779a['push']({'type':'removed','content':_0x5dfd7f[_0x1496c4]}),_0x1496c4++;else{if(_0x1496c4<_0x5dfd7f[_0x209520(0x101)]&&(_0x5dc660>=_0x4d1cc1[_0x209520(0x101)]||_0x5dfd7f[_0x1496c4]!==_0x4d1cc1[_0x5dc660]))_0x29779a[_0x209520(0xf2)]({'type':'removed','content':_0x5dfd7f[_0x1496c4]}),_0x1496c4++;else _0xd10fc0<_0x1c9835[_0x209520(0x101)]&&(_0x29779a[_0x209520(0xf2)]({'type':_0x209520(0x108),'content':_0x1c9835[_0xd10fc0]}),_0xd10fc0++);}}}return _0x29779a;}function computeLCS(_0x595f91,_0xc796e6){const _0x389ea6=a94_0x4599,_0xe57753=_0x595f91['length'],_0x4890c9=_0xc796e6[_0x389ea6(0x101)],_0x1e39b9=Array(_0xe57753+0x1)['fill'](null)[_0x389ea6(0xeb)](()=>Array(_0x4890c9+0x1)[_0x389ea6(0xfc)](0x0));for(let _0x2584ec=0x1;_0x2584ec<=_0xe57753;_0x2584ec++){for(let _0x297683=0x1;_0x297683<=_0x4890c9;_0x297683++){_0x595f91[_0x2584ec-0x1]===_0xc796e6[_0x297683-0x1]?_0x1e39b9[_0x2584ec][_0x297683]=_0x1e39b9[_0x2584ec-0x1][_0x297683-0x1]+0x1:_0x1e39b9[_0x2584ec][_0x297683]=Math[_0x389ea6(0xf0)](_0x1e39b9[_0x2584ec-0x1][_0x297683],_0x1e39b9[_0x2584ec][_0x297683-0x1]);}}const _0x3162ce=[];let _0x5ddb99=_0xe57753,_0x427047=_0x4890c9;while(_0x5ddb99>0x0&&_0x427047>0x0){if(_0x595f91[_0x5ddb99-0x1]===_0xc796e6[_0x427047-0x1])_0x3162ce['unshift'](_0x595f91[_0x5ddb99-0x1]),_0x5ddb99--,_0x427047--;else _0x1e39b9[_0x5ddb99-0x1][_0x427047]>_0x1e39b9[_0x5ddb99][_0x427047-0x1]?_0x5ddb99--:_0x427047--;}return _0x3162ce;}export function formatDiffWithColors(_0x222ec5,_0x147a3d=0x3){const _0x95a6ee=a94_0x4599,_0x14c818=new Set();_0x222ec5[_0x95a6ee(0x10d)]((_0x4c878b,_0x4b4f31)=>{const _0x32ff1a=_0x95a6ee;_0x4c878b[_0x32ff1a(0xff)]!=='unchanged'&&_0x14c818['add'](_0x4b4f31);});if(_0x14c818[_0x95a6ee(0xf1)]===0x0)return'';const _0x2f39ba=new Set();for(const _0x346fd0 of _0x14c818){for(let _0x3a1a9f=Math[_0x95a6ee(0xf0)](0x0,_0x346fd0-_0x147a3d);_0x3a1a9f<=Math['min'](_0x222ec5[_0x95a6ee(0x101)]-0x1,_0x346fd0+_0x147a3d);_0x3a1a9f++){_0x2f39ba[_0x95a6ee(0x103)](_0x3a1a9f);}}const _0x571a45=[];let _0x107581=-0x1;const _0x3c7b2e=_0x222ec5[_0x95a6ee(0x101)],_0x42a2a3=Math[_0x95a6ee(0xf0)](0x3,String(_0x3c7b2e)['length']),_0x4e75c8=[];let _0xe57f6b=0x0,_0x43f728=0x0;for(const _0x2c2760 of _0x222ec5){if(_0x2c2760[_0x95a6ee(0xff)]==='removed')_0xe57f6b++,_0x4e75c8['push']({'old':_0xe57f6b,'new':0x0});else _0x2c2760[_0x95a6ee(0xff)]===_0x95a6ee(0x108)?(_0x43f728++,_0x4e75c8[_0x95a6ee(0xf2)]({'old':0x0,'new':_0x43f728})):(_0xe57f6b++,_0x43f728++,_0x4e75c8[_0x95a6ee(0xf2)]({'old':_0xe57f6b,'new':_0x43f728}));}for(let _0x5d651d=0x0;_0x5d651d<_0x222ec5[_0x95a6ee(0x101)];_0x5d651d++){if(!_0x2f39ba[_0x95a6ee(0x106)](_0x5d651d))continue;_0x107581!==-0x1&&_0x5d651d>_0x107581+0x1&&_0x571a45['push'](a94_0x5d5cf5['cyan'](_0x95a6ee(0xee)));_0x107581=_0x5d651d;const _0x3c2fdb=_0x222ec5[_0x5d651d],_0x5641a0=_0x4e75c8[_0x5d651d],_0x19fe71=_0x5641a0['old']>0x0?String(_0x5641a0[_0x95a6ee(0xef)])[_0x95a6ee(0x107)](_0x42a2a3):'\x20'['repeat'](_0x42a2a3),_0x309597=_0x5641a0[_0x95a6ee(0x10b)]>0x0?String(_0x5641a0['new'])[_0x95a6ee(0x107)](_0x42a2a3):'\x20'[_0x95a6ee(0xf6)](_0x42a2a3);switch(_0x3c2fdb[_0x95a6ee(0xff)]){case _0x95a6ee(0xf7):_0x571a45['push'](a94_0x5d5cf5['red'](_0x19fe71+'\x20'+_0x309597+_0x95a6ee(0xfb)+_0x3c2fdb[_0x95a6ee(0x105)]));break;case'added':_0x571a45[_0x95a6ee(0xf2)](a94_0x5d5cf5[_0x95a6ee(0x102)](_0x19fe71+'\x20'+_0x309597+_0x95a6ee(0xf4)+_0x3c2fdb['content']));break;default:_0x571a45[_0x95a6ee(0xf2)](a94_0x5d5cf5['dim'](_0x19fe71+'\x20'+_0x309597+_0x95a6ee(0xfe)+_0x3c2fdb['content']));break;}}return _0x571a45[_0x95a6ee(0xec)]('\x0a');}function a94_0x4599(_0x4f3b38,_0x1467af){_0x4f3b38=_0x4f3b38-0xea;const _0x219583=a94_0x2195();let _0x4599fa=_0x219583[_0x4f3b38];return _0x4599fa;}export function hasChanges(_0x2e67e1){const _0x383b39=a94_0x4599;return _0x2e67e1[_0x383b39(0xf5)](_0x48cb4e=>_0x48cb4e[_0x383b39(0xff)]!==_0x383b39(0x10c));}
1
+ (function(_0x57a3fa,_0x199b63){const _0x106e3d=a94_0x3d79,_0x35c29b=_0x57a3fa();while(!![]){try{const _0x4a1e58=-parseInt(_0x106e3d(0x174))/0x1+-parseInt(_0x106e3d(0x188))/0x2+parseInt(_0x106e3d(0x194))/0x3*(parseInt(_0x106e3d(0x18d))/0x4)+parseInt(_0x106e3d(0x185))/0x5+parseInt(_0x106e3d(0x184))/0x6*(-parseInt(_0x106e3d(0x180))/0x7)+-parseInt(_0x106e3d(0x187))/0x8*(parseInt(_0x106e3d(0x191))/0x9)+parseInt(_0x106e3d(0x181))/0xa*(parseInt(_0x106e3d(0x17e))/0xb);if(_0x4a1e58===_0x199b63)break;else _0x35c29b['push'](_0x35c29b['shift']());}catch(_0x3e9482){_0x35c29b['push'](_0x35c29b['shift']());}}}(a94_0x43fb,0xe0325));function a94_0x43fb(){const _0x357f8e=['add','red','repeat','join','size','dim','unshift','3780535aGfyYA','new','14jlgyro','70yVLKvw','removed','has','3910818OpbpMx','6003840haqtJf','added','360zAldHm','1876006GSJusf','min','\x20-\x20','split','content','4nnethy','unchanged','length','padStart','119484mYHUIk','old','forEach','4446813AvsCKi','fill','type','1331496KDwVso','push','max'];a94_0x43fb=function(){return _0x357f8e;};return a94_0x43fb();}import a94_0x446d4f from'chalk';export function generateDiff(_0x7be14f,_0x1aa7fd){const _0x10707e=a94_0x3d79,_0x1bb3a6=_0x7be14f['split']('\x0a'),_0x19ca4c=_0x1aa7fd[_0x10707e(0x18b)]('\x0a'),_0x229a02=[],_0x11adda=computeLCS(_0x1bb3a6,_0x19ca4c);let _0x4cd819=0x0,_0x209f95=0x0,_0x595f8e=0x0;while(_0x4cd819<_0x1bb3a6[_0x10707e(0x18f)]||_0x209f95<_0x19ca4c[_0x10707e(0x18f)]){if(_0x595f8e<_0x11adda['length']&&_0x4cd819<_0x1bb3a6[_0x10707e(0x18f)]&&_0x1bb3a6[_0x4cd819]===_0x11adda[_0x595f8e])_0x209f95<_0x19ca4c[_0x10707e(0x18f)]&&_0x19ca4c[_0x209f95]===_0x11adda[_0x595f8e]?(_0x229a02['push']({'type':'unchanged','content':_0x1bb3a6[_0x4cd819]}),_0x4cd819++,_0x209f95++,_0x595f8e++):(_0x229a02['push']({'type':'added','content':_0x19ca4c[_0x209f95]}),_0x209f95++);else{if(_0x595f8e<_0x11adda[_0x10707e(0x18f)]&&_0x209f95<_0x19ca4c[_0x10707e(0x18f)]&&_0x19ca4c[_0x209f95]===_0x11adda[_0x595f8e])_0x229a02[_0x10707e(0x175)]({'type':_0x10707e(0x182),'content':_0x1bb3a6[_0x4cd819]}),_0x4cd819++;else{if(_0x4cd819<_0x1bb3a6[_0x10707e(0x18f)]&&(_0x595f8e>=_0x11adda[_0x10707e(0x18f)]||_0x1bb3a6[_0x4cd819]!==_0x11adda[_0x595f8e]))_0x229a02['push']({'type':_0x10707e(0x182),'content':_0x1bb3a6[_0x4cd819]}),_0x4cd819++;else _0x209f95<_0x19ca4c[_0x10707e(0x18f)]&&(_0x229a02[_0x10707e(0x175)]({'type':_0x10707e(0x186),'content':_0x19ca4c[_0x209f95]}),_0x209f95++);}}}return _0x229a02;}function a94_0x3d79(_0x5bb3cd,_0x507435){_0x5bb3cd=_0x5bb3cd-0x174;const _0x43fb9b=a94_0x43fb();let _0x3d797e=_0x43fb9b[_0x5bb3cd];return _0x3d797e;}function computeLCS(_0x1f00e6,_0x188189){const _0x53640a=a94_0x3d79,_0x2bc765=_0x1f00e6['length'],_0x4ddedd=_0x188189[_0x53640a(0x18f)],_0x135e70=Array(_0x2bc765+0x1)[_0x53640a(0x195)](null)['map'](()=>Array(_0x4ddedd+0x1)[_0x53640a(0x195)](0x0));for(let _0xbcce8e=0x1;_0xbcce8e<=_0x2bc765;_0xbcce8e++){for(let _0x165f8d=0x1;_0x165f8d<=_0x4ddedd;_0x165f8d++){_0x1f00e6[_0xbcce8e-0x1]===_0x188189[_0x165f8d-0x1]?_0x135e70[_0xbcce8e][_0x165f8d]=_0x135e70[_0xbcce8e-0x1][_0x165f8d-0x1]+0x1:_0x135e70[_0xbcce8e][_0x165f8d]=Math['max'](_0x135e70[_0xbcce8e-0x1][_0x165f8d],_0x135e70[_0xbcce8e][_0x165f8d-0x1]);}}const _0x29c17a=[];let _0x4b5220=_0x2bc765,_0x937d80=_0x4ddedd;while(_0x4b5220>0x0&&_0x937d80>0x0){if(_0x1f00e6[_0x4b5220-0x1]===_0x188189[_0x937d80-0x1])_0x29c17a[_0x53640a(0x17d)](_0x1f00e6[_0x4b5220-0x1]),_0x4b5220--,_0x937d80--;else _0x135e70[_0x4b5220-0x1][_0x937d80]>_0x135e70[_0x4b5220][_0x937d80-0x1]?_0x4b5220--:_0x937d80--;}return _0x29c17a;}export function formatDiffWithColors(_0x24a10e,_0x435cd0=0x3){const _0x427eb8=a94_0x3d79,_0x4abbb1=new Set();_0x24a10e[_0x427eb8(0x193)]((_0x49a8d8,_0x2e62c2)=>{const _0x327ddc=_0x427eb8;_0x49a8d8[_0x327ddc(0x196)]!==_0x327ddc(0x18e)&&_0x4abbb1[_0x327ddc(0x177)](_0x2e62c2);});if(_0x4abbb1[_0x427eb8(0x17b)]===0x0)return'';const _0x1618dc=new Set();for(const _0x327240 of _0x4abbb1){for(let _0x258da8=Math['max'](0x0,_0x327240-_0x435cd0);_0x258da8<=Math[_0x427eb8(0x189)](_0x24a10e[_0x427eb8(0x18f)]-0x1,_0x327240+_0x435cd0);_0x258da8++){_0x1618dc[_0x427eb8(0x177)](_0x258da8);}}const _0x792d06=[];let _0x4a4994=-0x1;const _0x1de5f8=_0x24a10e[_0x427eb8(0x18f)],_0x2564ba=Math[_0x427eb8(0x176)](0x3,String(_0x1de5f8)[_0x427eb8(0x18f)]),_0x330aea=[];let _0x33a08e=0x0,_0x4a33aa=0x0;for(const _0x117acc of _0x24a10e){if(_0x117acc['type']==='removed')_0x33a08e++,_0x330aea['push']({'old':_0x33a08e,'new':0x0});else _0x117acc[_0x427eb8(0x196)]==='added'?(_0x4a33aa++,_0x330aea[_0x427eb8(0x175)]({'old':0x0,'new':_0x4a33aa})):(_0x33a08e++,_0x4a33aa++,_0x330aea[_0x427eb8(0x175)]({'old':_0x33a08e,'new':_0x4a33aa}));}for(let _0x24e205=0x0;_0x24e205<_0x24a10e[_0x427eb8(0x18f)];_0x24e205++){if(!_0x1618dc[_0x427eb8(0x183)](_0x24e205))continue;_0x4a4994!==-0x1&&_0x24e205>_0x4a4994+0x1&&_0x792d06['push'](a94_0x446d4f['cyan']('\x20\x20...'));_0x4a4994=_0x24e205;const _0x20ba58=_0x24a10e[_0x24e205],_0x47ef2b=_0x330aea[_0x24e205],_0xc4a732=_0x47ef2b[_0x427eb8(0x192)]>0x0?String(_0x47ef2b[_0x427eb8(0x192)])[_0x427eb8(0x190)](_0x2564ba):'\x20'['repeat'](_0x2564ba),_0x38440b=_0x47ef2b[_0x427eb8(0x17f)]>0x0?String(_0x47ef2b[_0x427eb8(0x17f)])[_0x427eb8(0x190)](_0x2564ba):'\x20'[_0x427eb8(0x179)](_0x2564ba);switch(_0x20ba58[_0x427eb8(0x196)]){case _0x427eb8(0x182):_0x792d06['push'](a94_0x446d4f[_0x427eb8(0x178)](_0xc4a732+'\x20'+_0x38440b+_0x427eb8(0x18a)+_0x20ba58[_0x427eb8(0x18c)]));break;case _0x427eb8(0x186):_0x792d06[_0x427eb8(0x175)](a94_0x446d4f['green'](_0xc4a732+'\x20'+_0x38440b+'\x20+\x20'+_0x20ba58[_0x427eb8(0x18c)]));break;default:_0x792d06[_0x427eb8(0x175)](a94_0x446d4f[_0x427eb8(0x17c)](_0xc4a732+'\x20'+_0x38440b+'\x20\x20\x20'+_0x20ba58[_0x427eb8(0x18c)]));break;}}return _0x792d06[_0x427eb8(0x17a)]('\x0a');}export function hasChanges(_0x4e448c){const _0x3cf5bd=a94_0x3d79;return _0x4e448c['some'](_0x4118fc=>_0x4118fc[_0x3cf5bd(0x196)]!==_0x3cf5bd(0x18e));}
@@ -1 +1 @@
1
- (function(_0x4ee5e0,_0x9a206b){const _0x42590a=a95_0x3139,_0x35ba53=_0x4ee5e0();while(!![]){try{const _0x3d3702=parseInt(_0x42590a(0x169))/0x1+-parseInt(_0x42590a(0x173))/0x2+-parseInt(_0x42590a(0x176))/0x3*(-parseInt(_0x42590a(0x14d))/0x4)+parseInt(_0x42590a(0x15a))/0x5+-parseInt(_0x42590a(0x179))/0x6+-parseInt(_0x42590a(0x14c))/0x7+-parseInt(_0x42590a(0x16a))/0x8;if(_0x3d3702===_0x9a206b)break;else _0x35ba53['push'](_0x35ba53['shift']());}catch(_0x3726aa){_0x35ba53['push'](_0x35ba53['shift']());}}}(a95_0xb361,0x4965b));import a95_0x3893f8 from'chalk';function a95_0x3139(_0x41ee6,_0x4ce87a){_0x41ee6=_0x41ee6-0x14c;const _0xb3610e=a95_0xb361();let _0x3139ff=_0xb3610e[_0x41ee6];return _0x3139ff;}import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x423613){const _0x35c381=a95_0x3139,_0xa74069=_0x423613[_0x35c381(0x155)][_0x35c381(0x157)](_0x538ec5=>({'column_name':_0x538ec5['name'],'column_type':_0x538ec5[_0x35c381(0x166)],'null':_0x35c381(0x16b),'key':null,'default':null,'extra':null}));return{..._0x423613,'columns':[{'name':'column_name','type':_0x35c381(0x15d)},{'name':_0x35c381(0x156),'type':_0x35c381(0x15d)},{'name':'null','type':_0x35c381(0x15d)},{'name':_0x35c381(0x14e),'type':_0x35c381(0x15d)},{'name':_0x35c381(0x174),'type':_0x35c381(0x15d)},{'name':'extra','type':'varchar'}],'data':_0xa74069};}export async function executeSchemaQuery(_0x581f94,_0x10adfd,_0x25802b){const _0x30dec7=a95_0x3139,_0x4b0884=_0x581f94['trim']()[_0x30dec7(0x163)](/;+$/,''),_0x14fa6e=_0x30dec7(0x17a)+_0x4b0884+_0x30dec7(0x168);_0x25802b[_0x30dec7(0x171)]&&console[_0x30dec7(0x161)](_0x30dec7(0x17d)+_0x14fa6e);const _0x37aacf=await withQuerySpinner(_0x30dec7(0x178),async _0x5f2a6e=>{const _0x485a1d=_0x30dec7,_0x49ec9f=await _0x10adfd[_0x485a1d(0x165)]['execute'](_0x14fa6e,{'catalog':'td','schema':'information_schema','onJobId':_0xf645bc=>{const _0x5b71f3=_0x485a1d;_0x5f2a6e[_0x5b71f3(0x150)](_0xf645bc);}});return _0x49ec9f;},{'verbose':_0x25802b[_0x30dec7(0x171)]});return buildSchemaResult(_0x37aacf[_0x30dec7(0x15e)]);}export function displayFieldsHumanReadable(_0xfbb0b6,_0x20f3be){const _0xe182de=a95_0x3139,_0x5c75ae=_0xfbb0b6[_0xe182de(0x164)](_0x551db=>_0x551db[_0xe182de(0x16f)]===_0xe182de(0x15b)),_0x53a3aa=_0xfbb0b6['filter'](_0x1b88f8=>_0x1b88f8['source']==='behavior'),_0x3eeed9=new Map();for(const _0x1a2f6d of _0x5c75ae){const _0x328547=_0x1a2f6d[_0xe182de(0x16e)]||_0x1a2f6d[_0xe182de(0x153)]||_0xe182de(0x151),_0x2f476c=_0x3eeed9[_0xe182de(0x17b)](_0x328547);_0x2f476c?_0x2f476c['fields']['push'](_0x1a2f6d):_0x3eeed9[_0xe182de(0x175)](_0x328547,{'displayName':_0x328547,'tableName':_0x1a2f6d[_0xe182de(0x153)],'fields':[_0x1a2f6d]});}const _0xf54718=new Map();for(const _0x315683 of _0x53a3aa){const _0x251fd7=_0x315683[_0xe182de(0x17f)]||_0xe182de(0x151),_0x5e43bd=_0xf54718['get'](_0x251fd7)||[];_0x5e43bd[_0xe182de(0x159)](_0x315683),_0xf54718[_0xe182de(0x175)](_0x251fd7,_0x5e43bd);}console[_0xe182de(0x161)]('\x0a'+a95_0x3893f8['bold'](_0x20f3be));if(_0x3eeed9[_0xe182de(0x16d)]>0x0){console['error']('\x0a'+a95_0x3893f8[_0xe182de(0x158)]('Attributes'));const _0x3d97bf=[..._0x3eeed9[_0xe182de(0x177)]()]['sort']((_0x5c4c30,_0x1fffbf)=>_0x5c4c30[0x0][_0xe182de(0x14f)](_0x1fffbf[0x0]));for(const [,_0x375d05]of _0x3d97bf){const _0x5e9d02=_0x375d05[_0xe182de(0x15f)]&&_0x375d05['tableName']!==_0x375d05[_0xe182de(0x170)]?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0x375d05[_0xe182de(0x15f)]+')'):'';console[_0xe182de(0x161)]('\x20\x20'+a95_0x3893f8[_0xe182de(0x167)](_0x375d05['displayName'])+_0x5e9d02);const _0x8d575d=[..._0x375d05[_0xe182de(0x16c)]]['sort']((_0x210621,_0x203128)=>_0x210621[_0xe182de(0x154)][_0xe182de(0x14f)](_0x203128[_0xe182de(0x154)]));for(const _0x5c04d8 of _0x8d575d){const _0x3828f9=_0x5c04d8['parentColumn']&&_0x5c04d8['parentColumn']!==_0x5c04d8[_0xe182de(0x154)]?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0x5c04d8[_0xe182de(0x15c)]+')'):'';console[_0xe182de(0x161)](_0xe182de(0x17e)+_0x5c04d8['name']+_0x3828f9+':\x20'+a95_0x3893f8[_0xe182de(0x152)](_0x5c04d8[_0xe182de(0x166)]));}}}if(_0xf54718[_0xe182de(0x16d)]>0x0){console[_0xe182de(0x161)]('\x0a'+a95_0x3893f8[_0xe182de(0x158)](_0xe182de(0x172)));const _0x186660=[..._0xf54718[_0xe182de(0x177)]()][_0xe182de(0x160)]((_0x40ce18,_0x430916)=>_0x40ce18[0x0][_0xe182de(0x14f)](_0x430916[0x0]));for(const [_0x12354e,_0x2bd0cc]of _0x186660){const _0x45fc55=_0x2bd0cc[0x0],_0x5c3179=_0x45fc55?.[_0xe182de(0x153)]||'';console[_0xe182de(0x161)]('\x20\x20'+a95_0x3893f8[_0xe182de(0x167)](_0x12354e)+(_0x5c3179?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0x5c3179+')'):''));const _0x215f37=[..._0x2bd0cc][_0xe182de(0x160)]((_0x1d201d,_0xd715d8)=>_0x1d201d[_0xe182de(0x154)][_0xe182de(0x14f)](_0xd715d8[_0xe182de(0x154)]));for(const _0xd57387 of _0x215f37){const _0x4dce64=_0xd57387[_0xe182de(0x154)][_0xe182de(0x17c)](_0x12354e+'.')?_0xd57387['name'][_0xe182de(0x162)](_0x12354e['length']+0x1):_0xd57387['name'],_0x5b18f6=_0xd57387[_0xe182de(0x15c)]&&_0xd57387[_0xe182de(0x15c)]!==_0x4dce64?'\x20'+a95_0x3893f8[_0xe182de(0x158)]('('+_0xd57387[_0xe182de(0x15c)]+')'):'';console[_0xe182de(0x161)]('\x20\x20\x20\x20'+_0x4dce64+_0x5b18f6+':\x20'+a95_0x3893f8['cyan'](_0xd57387[_0xe182de(0x166)]));}}}console[_0xe182de(0x161)]('');}function a95_0xb361(){const _0x307a71=['replace','filter','query','type','bold','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','463938IQsfuh','5587576MbaePN','YES','fields','size','groupingName','source','displayName','verbose','Behaviors','31668gMxAHm','default','set','3MaIHYB','entries','Fetching\x20schema...','530844tBOqKt','SELECT\x20*\x20FROM\x20(\x0a','get','startsWith','Schema\x20query:\x0a','\x20\x20\x20\x20','behaviorName','251776wQKAOI','655256QBoJix','key','localeCompare','setJobId','Unknown','cyan','parentTableName','name','columns','column_type','map','dim','push','2558030pPXIBA','attribute','parentColumn','varchar','data','tableName','sort','error','slice'];a95_0xb361=function(){return _0x307a71;};return a95_0xb361();}
1
+ (function(_0x3f8b52,_0x1f3d14){const _0x509a4f=a95_0x3d62,_0x8fd84b=_0x3f8b52();while(!![]){try{const _0x363bce=-parseInt(_0x509a4f(0x15a))/0x1*(parseInt(_0x509a4f(0x16e))/0x2)+parseInt(_0x509a4f(0x152))/0x3+parseInt(_0x509a4f(0x156))/0x4+parseInt(_0x509a4f(0x159))/0x5*(parseInt(_0x509a4f(0x146))/0x6)+parseInt(_0x509a4f(0x171))/0x7+parseInt(_0x509a4f(0x160))/0x8*(parseInt(_0x509a4f(0x15f))/0x9)+-parseInt(_0x509a4f(0x14c))/0xa;if(_0x363bce===_0x1f3d14)break;else _0x8fd84b['push'](_0x8fd84b['shift']());}catch(_0x519125){_0x8fd84b['push'](_0x8fd84b['shift']());}}}(a95_0x4600,0x4f536));import a95_0x2df0c3 from'chalk';import{withQuerySpinner}from'./spinner.js';export function buildSchemaResult(_0x3babd1){const _0x25ef51=a95_0x3d62,_0x3d69ec=_0x3babd1['columns']['map'](_0x3a54b8=>({'column_name':_0x3a54b8[_0x25ef51(0x15c)],'column_type':_0x3a54b8['type'],'null':_0x25ef51(0x158),'key':null,'default':null,'extra':null}));return{..._0x3babd1,'columns':[{'name':_0x25ef51(0x164),'type':_0x25ef51(0x16f)},{'name':_0x25ef51(0x16d),'type':_0x25ef51(0x16f)},{'name':_0x25ef51(0x14b),'type':_0x25ef51(0x16f)},{'name':'key','type':_0x25ef51(0x16f)},{'name':_0x25ef51(0x167),'type':_0x25ef51(0x16f)},{'name':_0x25ef51(0x170),'type':_0x25ef51(0x16f)}],'data':_0x3d69ec};}export async function executeSchemaQuery(_0x36792d,_0xce5f1e,_0x353426){const _0xb32aa8=a95_0x3d62,_0x16406a=_0x36792d[_0xb32aa8(0x15e)]()['replace'](/;+$/,''),_0x128687=_0xb32aa8(0x172)+_0x16406a+'\x0a)\x20AS\x20segment_query\x20LIMIT\x200';_0x353426[_0xb32aa8(0x16b)]&&console[_0xb32aa8(0x175)](_0xb32aa8(0x166)+_0x128687);const _0x3ecb89=await withQuerySpinner(_0xb32aa8(0x148),async _0x4125ef=>{const _0x3bed8b=_0xb32aa8,_0x295e4e=await _0xce5f1e[_0x3bed8b(0x16a)][_0x3bed8b(0x153)](_0x128687,{'catalog':'td','schema':_0x3bed8b(0x176),'onJobId':_0x57514c=>{const _0x223fb6=_0x3bed8b;_0x4125ef[_0x223fb6(0x14e)](_0x57514c);}});return _0x295e4e;},{'verbose':_0x353426[_0xb32aa8(0x16b)]});return buildSchemaResult(_0x3ecb89[_0xb32aa8(0x147)]);}function a95_0x3d62(_0x74ccc0,_0x398f90){_0x74ccc0=_0x74ccc0-0x141;const _0x4600b3=a95_0x4600();let _0x3d62bf=_0x4600b3[_0x74ccc0];return _0x3d62bf;}export function displayFieldsHumanReadable(_0x3bd5e9,_0x5eb1e1){const _0x3f61c7=a95_0x3d62,_0x4b2fae=_0x3bd5e9['filter'](_0x22e1b9=>_0x22e1b9['source']===_0x3f61c7(0x173)),_0x4c7cd6=_0x3bd5e9[_0x3f61c7(0x14a)](_0x2ff573=>_0x2ff573[_0x3f61c7(0x177)]===_0x3f61c7(0x144)),_0x3a521b=new Map();for(const _0x5c31db of _0x4b2fae){const _0x51f274=_0x5c31db['groupingName']||_0x5c31db[_0x3f61c7(0x169)]||'Unknown',_0x39b306=_0x3a521b[_0x3f61c7(0x168)](_0x51f274);_0x39b306?_0x39b306[_0x3f61c7(0x163)][_0x3f61c7(0x143)](_0x5c31db):_0x3a521b[_0x3f61c7(0x150)](_0x51f274,{'displayName':_0x51f274,'tableName':_0x5c31db[_0x3f61c7(0x169)],'fields':[_0x5c31db]});}const _0x325d96=new Map();for(const _0x21e566 of _0x4c7cd6){const _0x532459=_0x21e566[_0x3f61c7(0x14f)]||'Unknown',_0x26841b=_0x325d96[_0x3f61c7(0x168)](_0x532459)||[];_0x26841b[_0x3f61c7(0x143)](_0x21e566),_0x325d96[_0x3f61c7(0x150)](_0x532459,_0x26841b);}console[_0x3f61c7(0x175)]('\x0a'+a95_0x2df0c3[_0x3f61c7(0x15b)](_0x5eb1e1));if(_0x3a521b[_0x3f61c7(0x145)]>0x0){console[_0x3f61c7(0x175)]('\x0a'+a95_0x2df0c3[_0x3f61c7(0x157)]('Attributes'));const _0x20cf56=[..._0x3a521b[_0x3f61c7(0x154)]()][_0x3f61c7(0x16c)]((_0xa6a398,_0x2d0df5)=>_0xa6a398[0x0][_0x3f61c7(0x155)](_0x2d0df5[0x0]));for(const [,_0x356726]of _0x20cf56){const _0x546b34=_0x356726[_0x3f61c7(0x174)]&&_0x356726['tableName']!==_0x356726[_0x3f61c7(0x141)]?'\x20'+a95_0x2df0c3[_0x3f61c7(0x157)]('('+_0x356726['tableName']+')'):'';console['error']('\x20\x20'+a95_0x2df0c3[_0x3f61c7(0x15b)](_0x356726[_0x3f61c7(0x141)])+_0x546b34);const _0x219618=[..._0x356726[_0x3f61c7(0x163)]][_0x3f61c7(0x16c)]((_0x236df4,_0x4a44db)=>_0x236df4['name'][_0x3f61c7(0x155)](_0x4a44db[_0x3f61c7(0x15c)]));for(const _0x509087 of _0x219618){const _0x123e3d=_0x509087['parentColumn']&&_0x509087[_0x3f61c7(0x14d)]!==_0x509087[_0x3f61c7(0x15c)]?'\x20'+a95_0x2df0c3[_0x3f61c7(0x157)]('('+_0x509087[_0x3f61c7(0x14d)]+')'):'';console['error']('\x20\x20\x20\x20'+_0x509087[_0x3f61c7(0x15c)]+_0x123e3d+':\x20'+a95_0x2df0c3[_0x3f61c7(0x151)](_0x509087['type']));}}}if(_0x325d96[_0x3f61c7(0x145)]>0x0){console[_0x3f61c7(0x175)]('\x0a'+a95_0x2df0c3[_0x3f61c7(0x157)](_0x3f61c7(0x149)));const _0x146f50=[..._0x325d96[_0x3f61c7(0x154)]()]['sort']((_0x576845,_0x5d064c)=>_0x576845[0x0][_0x3f61c7(0x155)](_0x5d064c[0x0]));for(const [_0x36da86,_0x2c7d47]of _0x146f50){const _0x244cb1=_0x2c7d47[0x0],_0x594824=_0x244cb1?.[_0x3f61c7(0x169)]||'';console[_0x3f61c7(0x175)]('\x20\x20'+a95_0x2df0c3['bold'](_0x36da86)+(_0x594824?'\x20'+a95_0x2df0c3['dim']('('+_0x594824+')'):''));const _0x2d458e=[..._0x2c7d47][_0x3f61c7(0x16c)]((_0x1ab26b,_0x30a050)=>_0x1ab26b['name'][_0x3f61c7(0x155)](_0x30a050[_0x3f61c7(0x15c)]));for(const _0x577f10 of _0x2d458e){const _0x255f28=_0x577f10['name'][_0x3f61c7(0x165)](_0x36da86+'.')?_0x577f10[_0x3f61c7(0x15c)][_0x3f61c7(0x142)](_0x36da86[_0x3f61c7(0x162)]+0x1):_0x577f10[_0x3f61c7(0x15c)],_0x56affe=_0x577f10[_0x3f61c7(0x14d)]&&_0x577f10['parentColumn']!==_0x255f28?'\x20'+a95_0x2df0c3[_0x3f61c7(0x157)]('('+_0x577f10['parentColumn']+')'):'';console[_0x3f61c7(0x175)](_0x3f61c7(0x15d)+_0x255f28+_0x56affe+':\x20'+a95_0x2df0c3[_0x3f61c7(0x151)](_0x577f10[_0x3f61c7(0x161)]));}}}console[_0x3f61c7(0x175)]('');}function a95_0x4600(){const _0x3af21f=['type','length','fields','column_name','startsWith','Schema\x20query:\x0a','default','get','parentTableName','query','verbose','sort','column_type','466544UhBPWZ','varchar','extra','769258XQkaPT','SELECT\x20*\x20FROM\x20(\x0a','attribute','tableName','error','information_schema','source','displayName','slice','push','behavior','size','9336MiaRdl','data','Fetching\x20schema...','Behaviors','filter','null','9126650vbNtzA','parentColumn','setJobId','behaviorName','set','cyan','990777lmcyBe','execute','entries','localeCompare','1778692qYIyFS','dim','YES','590dWvXQx','1npjSGU','bold','name','\x20\x20\x20\x20','trim','3621789vMTgCJ','8mkfXBL'];a95_0x4600=function(){return _0x3af21f;};return a95_0x4600();}
@@ -1 +1 @@
1
- function a96_0x7be7(_0x29a6ac,_0x4c7c60){_0x29a6ac=_0x29a6ac-0x188;const _0x291528=a96_0x2915();let _0x7be700=_0x291528[_0x29a6ac];return _0x7be700;}(function(_0x4864b1,_0x349738){const _0x4fe717=a96_0x7be7,_0x18e3cd=_0x4864b1();while(!![]){try{const _0xaa3fdc=parseInt(_0x4fe717(0x199))/0x1+-parseInt(_0x4fe717(0x18c))/0x2*(parseInt(_0x4fe717(0x192))/0x3)+-parseInt(_0x4fe717(0x18a))/0x4+-parseInt(_0x4fe717(0x193))/0x5+-parseInt(_0x4fe717(0x191))/0x6*(-parseInt(_0x4fe717(0x19b))/0x7)+-parseInt(_0x4fe717(0x198))/0x8*(-parseInt(_0x4fe717(0x19d))/0x9)+-parseInt(_0x4fe717(0x188))/0xa*(-parseInt(_0x4fe717(0x19c))/0xb);if(_0xaa3fdc===_0x349738)break;else _0x18e3cd['push'](_0x18e3cd['shift']());}catch(_0x195cbe){_0x18e3cd['push'](_0x18e3cd['shift']());}}}(a96_0x2915,0x54dfe));function a96_0x2915(){const _0x2cdc8e=['805755uNtatY','\x20has\x20insecure\x20permissions\x20(','dirname',').\x20','Warning:\x20','220840CIZbdb','168286RaPEEM','existsSync','50918RfkLli','22pZfuNZ','54zwJzcU','766910SZtmnp','chmodSync','2438548wuNDyy','toString','8VBKnVN','statSync','warn','writeFileSync','mkdirSync','540uTlEUG','17643dpwgFI'];a96_0x2915=function(){return _0x2cdc8e;};return a96_0x2915();}import*as a96_0x5427c4 from'node:fs';import*as a96_0x392d0e from'node:path';export function setSecureFilePermissions(_0xbc1380){const _0x24b09b=a96_0x7be7;try{a96_0x5427c4[_0x24b09b(0x189)](_0xbc1380,0x180);}catch{console[_0x24b09b(0x18e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xbc1380);}}export function setSecureDirectoryPermissions(_0x2e0925){const _0x3e01dd=a96_0x7be7;try{a96_0x5427c4[_0x3e01dd(0x189)](_0x2e0925,0x1c0);}catch{console[_0x3e01dd(0x18e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2e0925);}}export function createSecureDirectory(_0x32a41c){const _0x3bf82f=a96_0x7be7;!a96_0x5427c4[_0x3bf82f(0x19a)](_0x32a41c)&&(a96_0x5427c4[_0x3bf82f(0x190)](_0x32a41c,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x32a41c));}export function validateSecureFilePermissions(_0x189baa){const _0x1c7f4a=a96_0x7be7;try{const _0x3679be=a96_0x5427c4[_0x1c7f4a(0x18d)](_0x189baa),_0x14a8a6=_0x3679be['mode']&0x1ff,_0x2036a5=(_0x14a8a6&0x3f)!==0x0;if(_0x2036a5)return console[_0x1c7f4a(0x18e)](_0x1c7f4a(0x197)+_0x189baa+_0x1c7f4a(0x194)+_0x14a8a6[_0x1c7f4a(0x18b)](0x8)+_0x1c7f4a(0x196)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xd12734,_0x4aa7f5){const _0xd0ec95=a96_0x7be7,_0x548093=a96_0x392d0e[_0xd0ec95(0x195)](_0xd12734);createSecureDirectory(_0x548093),a96_0x5427c4[_0xd0ec95(0x18f)](_0xd12734,_0x4aa7f5,{'mode':0x180}),setSecureFilePermissions(_0xd12734);}
1
+ (function(_0x3c42a8,_0x21d757){const _0x4ac518=a96_0x24c3,_0x220756=_0x3c42a8();while(!![]){try{const _0x411753=-parseInt(_0x4ac518(0xe7))/0x1+-parseInt(_0x4ac518(0xe2))/0x2+parseInt(_0x4ac518(0xe4))/0x3+parseInt(_0x4ac518(0xee))/0x4+parseInt(_0x4ac518(0xe8))/0x5+parseInt(_0x4ac518(0xef))/0x6*(-parseInt(_0x4ac518(0xe1))/0x7)+-parseInt(_0x4ac518(0xeb))/0x8;if(_0x411753===_0x21d757)break;else _0x220756['push'](_0x220756['shift']());}catch(_0x119109){_0x220756['push'](_0x220756['shift']());}}}(a96_0x1f3e,0xd857c));function a96_0x24c3(_0x2df02a,_0x5d2d90){_0x2df02a=_0x2df02a-0xde;const _0x1f3e6a=a96_0x1f3e();let _0x24c3ef=_0x1f3e6a[_0x2df02a];return _0x24c3ef;}import*as a96_0x14e3fb from'node:fs';import*as a96_0x5eca66 from'node:path';export function setSecureFilePermissions(_0x3112a8){const _0xbcc14=a96_0x24c3;try{a96_0x14e3fb[_0xbcc14(0xec)](_0x3112a8,0x180);}catch{console[_0xbcc14(0xde)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x3112a8);}}export function setSecureDirectoryPermissions(_0x364c7d){const _0x3e4bfa=a96_0x24c3;try{a96_0x14e3fb[_0x3e4bfa(0xec)](_0x364c7d,0x1c0);}catch{console[_0x3e4bfa(0xde)](_0x3e4bfa(0xf0)+_0x364c7d);}}export function createSecureDirectory(_0xf024c1){const _0x558adf=a96_0x24c3;!a96_0x14e3fb[_0x558adf(0xe3)](_0xf024c1)&&(a96_0x14e3fb[_0x558adf(0xe9)](_0xf024c1,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xf024c1));}export function validateSecureFilePermissions(_0xc3845f){const _0x428270=a96_0x24c3;try{const _0xd105e=a96_0x14e3fb[_0x428270(0xe5)](_0xc3845f),_0x34ea82=_0xd105e['mode']&0x1ff,_0x4e0ce3=(_0x34ea82&0x3f)!==0x0;if(_0x4e0ce3)return console[_0x428270(0xde)]('Warning:\x20'+_0xc3845f+_0x428270(0xed)+_0x34ea82[_0x428270(0xe0)](0x8)+_0x428270(0xe6)+_0x428270(0xea)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3563d2,_0x10db8c){const _0x2a6ec9=a96_0x24c3,_0x51555b=a96_0x5eca66[_0x2a6ec9(0xdf)](_0x3563d2);createSecureDirectory(_0x51555b),a96_0x14e3fb['writeFileSync'](_0x3563d2,_0x10db8c,{'mode':0x180}),setSecureFilePermissions(_0x3563d2);}function a96_0x1f3e(){const _0x200b37=['\x20has\x20insecure\x20permissions\x20(','4212508Xdadqm','19764IyGZkD','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','warn','dirname','toString','448JFfKoo','649006czDjVi','existsSync','4348137UYRsgj','statSync',').\x20','569192Qlbpdb','8828470UhYgMn','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','18220392MHSywc','chmodSync'];a96_0x1f3e=function(){return _0x200b37;};return a96_0x1f3e();}
@@ -1 +1 @@
1
- (function(_0x6184a,_0x27a39f){const _0x1afa06=a97_0x46d9,_0x2bfd9a=_0x6184a();while(!![]){try{const _0x1a97ba=-parseInt(_0x1afa06(0xe1))/0x1*(parseInt(_0x1afa06(0xe3))/0x2)+-parseInt(_0x1afa06(0xe7))/0x3+-parseInt(_0x1afa06(0xdd))/0x4*(parseInt(_0x1afa06(0xe2))/0x5)+-parseInt(_0x1afa06(0xe0))/0x6*(-parseInt(_0x1afa06(0xed))/0x7)+parseInt(_0x1afa06(0xec))/0x8*(-parseInt(_0x1afa06(0xdf))/0x9)+parseInt(_0x1afa06(0xe8))/0xa*(parseInt(_0x1afa06(0xe4))/0xb)+parseInt(_0x1afa06(0xe9))/0xc*(parseInt(_0x1afa06(0xeb))/0xd);if(_0x1a97ba===_0x27a39f)break;else _0x2bfd9a['push'](_0x2bfd9a['shift']());}catch(_0x1cdb2e){_0x2bfd9a['push'](_0x2bfd9a['shift']());}}}(a97_0x456f,0x8e032));function a97_0x456f(){const _0x409ef8=['jsonl','json','1631949pZSDSK','20tDhXCM','4047852lMQMGv','tab','39DzBLPh','24zytTLh','7595462dtdxpd','text','pop','1631112Zywtth','tsv','203085xyqLYW','6ZOXhKy','67iSiuVW','10JKCqYB','33962xhnzhU','5772877WzIyVs'];a97_0x456f=function(){return _0x409ef8;};return a97_0x456f();}export function detectFormatFromExtension(_0xdc93d3){const _0xffe5e5=a97_0x46d9,_0x2c84a1=_0xdc93d3['toLowerCase']()['split']('.')[_0xffe5e5(0xdc)]();switch(_0x2c84a1){case _0xffe5e5(0xe6):return _0xffe5e5(0xe6);case _0xffe5e5(0xe5):return'jsonl';case _0xffe5e5(0xde):case _0xffe5e5(0xea):return _0xffe5e5(0xde);case'txt':case _0xffe5e5(0xdb):return'table';default:return undefined;}}function a97_0x46d9(_0x27f573,_0x444d5a){_0x27f573=_0x27f573-0xdb;const _0x456f80=a97_0x456f();let _0x46d9e2=_0x456f80[_0x27f573];return _0x46d9e2;}export function resolveOutputFormat(_0x2bf065,_0x11bc11,_0x2968db){if(_0x2bf065)return _0x2bf065;if(_0x11bc11){const _0xa09b9b=detectFormatFromExtension(_0x11bc11);if(_0xa09b9b)return _0xa09b9b;}return _0x2968db;}
1
+ function a97_0x393b(_0x1fe718,_0x2b0134){_0x1fe718=_0x1fe718-0x1a5;const _0x522615=a97_0x5226();let _0x393baa=_0x522615[_0x1fe718];return _0x393baa;}(function(_0x1ffab4,_0x2503cb){const _0x11dffd=a97_0x393b,_0x1416ef=_0x1ffab4();while(!![]){try{const _0x584661=parseInt(_0x11dffd(0x1b0))/0x1*(parseInt(_0x11dffd(0x1b5))/0x2)+parseInt(_0x11dffd(0x1aa))/0x3*(-parseInt(_0x11dffd(0x1ae))/0x4)+parseInt(_0x11dffd(0x1b6))/0x5+-parseInt(_0x11dffd(0x1b2))/0x6+-parseInt(_0x11dffd(0x1b4))/0x7+parseInt(_0x11dffd(0x1a5))/0x8*(-parseInt(_0x11dffd(0x1b8))/0x9)+parseInt(_0x11dffd(0x1ab))/0xa*(parseInt(_0x11dffd(0x1b7))/0xb);if(_0x584661===_0x2503cb)break;else _0x1416ef['push'](_0x1416ef['shift']());}catch(_0x38981d){_0x1416ef['push'](_0x1416ef['shift']());}}}(a97_0x5226,0xc71ea));function a97_0x5226(){const _0x4e5c00=['jsonl','text','txt','tab','920358HhffQq','34470660MLoAdY','split','tsv','12dGijPp','json','1gjhuLj','toLowerCase','8473638XNwYJE','pop','806624aOZTjk','1124306uJxtpp','1285950NkYUfm','11VjIbCg','2256642fykoWf','32ogciQy'];a97_0x5226=function(){return _0x4e5c00;};return a97_0x5226();}export function detectFormatFromExtension(_0x34088b){const _0x36d951=a97_0x393b,_0x53e06e=_0x34088b[_0x36d951(0x1b1)]()[_0x36d951(0x1ac)]('.')[_0x36d951(0x1b3)]();switch(_0x53e06e){case _0x36d951(0x1af):return _0x36d951(0x1af);case _0x36d951(0x1a6):return _0x36d951(0x1a6);case _0x36d951(0x1ad):case _0x36d951(0x1a9):return _0x36d951(0x1ad);case _0x36d951(0x1a8):case _0x36d951(0x1a7):return'table';default:return undefined;}}export function resolveOutputFormat(_0x577fe1,_0xcec521,_0x2402e6){if(_0x577fe1)return _0x577fe1;if(_0xcec521){const _0x3809d8=detectFormatFromExtension(_0xcec521);if(_0x3809d8)return _0x3809d8;}return _0x2402e6;}
@@ -1 +1 @@
1
- (function(_0xd696e0,_0x1a769d){const _0x46c3ab=a98_0xa888,_0x1d1bf8=_0xd696e0();while(!![]){try{const _0x29f6a4=parseInt(_0x46c3ab(0xf0))/0x1*(-parseInt(_0x46c3ab(0x10c))/0x2)+parseInt(_0x46c3ab(0x118))/0x3*(parseInt(_0x46c3ab(0x11f))/0x4)+-parseInt(_0x46c3ab(0x10a))/0x5*(-parseInt(_0x46c3ab(0x113))/0x6)+parseInt(_0x46c3ab(0x105))/0x7+-parseInt(_0x46c3ab(0x11c))/0x8*(parseInt(_0x46c3ab(0x108))/0x9)+parseInt(_0x46c3ab(0xe7))/0xa+-parseInt(_0x46c3ab(0xf5))/0xb*(parseInt(_0x46c3ab(0x106))/0xc);if(_0x29f6a4===_0x1a769d)break;else _0x1d1bf8['push'](_0x1d1bf8['shift']());}catch(_0x144462){_0x1d1bf8['push'](_0x1d1bf8['shift']());}}}(a98_0xa83b,0xa5de6));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';function a98_0xa888(_0x32630f,_0x4d40f5){_0x32630f=_0x32630f-0xe6;const _0xa83bec=a98_0xa83b();let _0xa88830=_0xa83bec[_0x32630f];return _0xa88830;}import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x56f779=a98_0xa888;return process[_0x56f779(0x101)][_0x56f779(0x110)]||Infinity;}export function formatAsTable(_0x941925,_0x41278f=DEFAULT_MAX_DISPLAY_ROWS,_0x28c29e=![],_0x500b76={}){const _0x21da9b=a98_0xa888;if(_0x941925['data'][_0x21da9b(0xea)]===0x0)return'No\x20rows\x20returned';const _0x424818=_0x941925['columns'][_0x21da9b(0xee)](_0x4eeeda=>_0x4eeeda[_0x21da9b(0xf8)]),_0x4445d2=_0x941925['columns'][_0x21da9b(0xee)](_0x5e6662=>simplifyType(_0x5e6662[_0x21da9b(0xf4)])),_0x3a1c4a=_0x941925[_0x21da9b(0xfe)][_0x21da9b(0xfd)](0x0,_0x41278f),_0x56faf5=_0x941925[_0x21da9b(0xfe)][_0x21da9b(0xea)],_0x4b123b=_0x56faf5>_0x41278f,_0xdba5ae=[],_0x57f943=getTerminalWidth(),_0x2ec4c2=_0x57f943!==Infinity,_0x2515be=0x32;let _0x4dce8a=_0x424818[_0x21da9b(0xee)]((_0xd13b93,_0x37ed63)=>{const _0x5ac77b=_0x21da9b,_0x1f7940=stringWidth(_0x4445d2[_0x37ed63]),_0x1bfec4=Math[_0x5ac77b(0xf3)](..._0x3a1c4a[_0x5ac77b(0xee)](_0x4609c0=>{const _0x569927=_0x4609c0[_0xd13b93];return stringWidth(formatValue(_0x569927));})),_0x53cf0a=Math[_0x5ac77b(0xf3)](stringWidth(_0xd13b93),_0x1f7940,_0x1bfec4);return _0x28c29e?_0x53cf0a:Math['min'](_0x53cf0a,_0x2515be);});if(_0x2ec4c2&&!_0x28c29e&&_0x424818['length']>0x0){const _0x4550e7=_0x37eb99=>{let _0x4db70c=0x1;for(const _0x4fb3b0 of _0x37eb99){_0x4db70c+=_0x4fb3b0+0x3;}return _0x4db70c+0x1;};let _0x12011c=_0x4550e7(_0x4dce8a);if(_0x12011c>_0x57f943){const _0x195f62=0x3;for(let _0x47f9a8=_0x4dce8a[_0x21da9b(0xea)]-0x1;_0x47f9a8>=0x0;_0x47f9a8--){_0x12011c=_0x4550e7(_0x4dce8a);if(_0x12011c<=_0x57f943)break;const _0xfa5e4e=_0x4dce8a[_0x47f9a8],_0xdeec1b=_0x12011c-_0x57f943,_0x2a4ef3=_0xfa5e4e-_0x195f62,_0x5f2f14=Math[_0x21da9b(0x116)](_0xdeec1b,_0x2a4ef3);_0x5f2f14>0x0&&(_0x4dce8a[_0x47f9a8]=_0xfa5e4e-_0x5f2f14);}}}const _0x3026db=_0x424818,_0x3eb1af=_0x4445d2,_0x4b8d2d=_0x4dce8a,_0x1cb2db=_0x4dce8a;_0xdba5ae[_0x21da9b(0xef)](colorBorder('┌'+_0x1cb2db['map'](_0x2cffba=>'─'['repeat'](_0x2cffba+0x2))[_0x21da9b(0xf6)]('┬')+'┐',_0x500b76));const _0x2a45fa=_0x3026db[_0x21da9b(0xee)]((_0x44b59e,_0x1b7aa5)=>centerAlign(_0x44b59e,_0x4b8d2d[_0x1b7aa5]));_0xdba5ae[_0x21da9b(0xef)](colorBorder('│',_0x500b76)+'\x20'+_0x2a45fa[_0x21da9b(0xf6)]('\x20'+colorBorder('│',_0x500b76)+'\x20')+'\x20'+colorBorder('│',_0x500b76));const _0x19def9=_0x3eb1af[_0x21da9b(0xee)]((_0x4c73f6,_0x3c19b2)=>colorType(centerAlign(_0x4c73f6,_0x4b8d2d[_0x3c19b2]),_0x500b76));_0xdba5ae['push'](colorBorder('│',_0x500b76)+'\x20'+_0x19def9[_0x21da9b(0xf6)]('\x20'+colorBorder('│',_0x500b76)+'\x20')+'\x20'+colorBorder('│',_0x500b76)),_0xdba5ae[_0x21da9b(0xef)](colorBorder('├'+_0x1cb2db['map'](_0x5404c0=>'─'['repeat'](_0x5404c0+0x2))[_0x21da9b(0xf6)]('┼')+'┤',_0x500b76));const _0x374a84=(_0x2b5dc1,_0x1d61e2)=>{const _0x337ae3=_0x21da9b,_0x2d1d99=stringWidth(_0x2b5dc1);if(_0x2d1d99<=_0x1d61e2)return _0x2b5dc1;let _0x3a0ccf=_0x2b5dc1;while(stringWidth(_0x3a0ccf+'…')>_0x1d61e2&&_0x3a0ccf[_0x337ae3(0xea)]>0x0){_0x3a0ccf=_0x3a0ccf['slice'](0x0,-0x1);}return _0x3a0ccf+'…';};_0x3a1c4a[_0x21da9b(0xf1)](_0x550801=>{const _0x200000=_0x21da9b,_0x469cb8=_0x424818[_0x200000(0xee)]((_0x146648,_0x3a3e77)=>{const _0x15cb86=_0x200000,_0x3f709b=_0x550801[_0x146648],_0x115050=formatValue(_0x3f709b),_0x5c2426=_0x4b8d2d[_0x3a3e77],_0x1fba33=_0x374a84(_0x115050,_0x5c2426),_0x13574a=typeof _0x3f709b===_0x15cb86(0x11d)||typeof _0x3f709b==='string'&&/^-?\d+$/[_0x15cb86(0xe8)](_0x3f709b);return _0x13574a?padStart(_0x1fba33,_0x5c2426):padEnd(_0x1fba33,_0x5c2426);});_0xdba5ae[_0x200000(0xef)](colorBorder('│',_0x500b76)+'\x20'+_0x469cb8[_0x200000(0xf6)]('\x20'+colorBorder('│',_0x500b76)+'\x20')+'\x20'+colorBorder('│',_0x500b76));});const _0x4f1ae1=_0x1cb2db[_0x21da9b(0x102)]((_0x280bdc,_0x3fa857)=>_0x280bdc+_0x3fa857+0x3,-0x1);_0xdba5ae[_0x21da9b(0xef)](colorBorder('├'+_0x1cb2db[_0x21da9b(0xee)](_0x1ebbf8=>'─'['repeat'](_0x1ebbf8+0x2))[_0x21da9b(0xf6)]('┴')+'┤',_0x500b76));let _0x42cfa7;_0x4b123b?_0x42cfa7=_0x56faf5+_0x21da9b(0x104)+_0x41278f+_0x21da9b(0x10b):_0x42cfa7=_0x56faf5+_0x21da9b(0x109)+(_0x56faf5===0x1?'':'s');const _0x1ade3c=_0x42cfa7[_0x21da9b(0x11a)](_0x4f1ae1-0x2);return _0xdba5ae[_0x21da9b(0xef)](colorBorder('│',_0x500b76)+'\x20'+_0x1ade3c+'\x20'+colorBorder('│',_0x500b76)),_0xdba5ae[_0x21da9b(0xef)](colorBorder('└'+'─'[_0x21da9b(0xf7)](_0x4f1ae1)+'┘',_0x500b76)),_0xdba5ae[_0x21da9b(0xf6)]('\x0a');}function simplifyType(_0x37bb34){const _0x40c005=a98_0xa888,_0x5e690a={'varchar':_0x40c005(0xfa),'bigint':_0x40c005(0x114),'integer':_0x40c005(0x107),'double':_0x40c005(0xe6),'boolean':_0x40c005(0x10f),'date':_0x40c005(0x123),'timestamp':_0x40c005(0xf2),'array':_0x40c005(0x100),'map':'map','row':_0x40c005(0x119)},_0x2ae93f=_0x37bb34[_0x40c005(0x121)]();for(const [_0x6bc60d,_0x1a5cb5]of Object[_0x40c005(0x115)](_0x5e690a)){if(_0x2ae93f[_0x40c005(0x117)](_0x6bc60d))return _0x1a5cb5;}return _0x37bb34[_0x40c005(0xea)]>0xa?_0x37bb34['substring'](0x0,0xa):_0x37bb34;}export function formatAsJSON(_0x20fcef,_0x1fa5a3={}){const _0x502df1=a98_0xa888;if(_0x20fcef[_0x502df1(0xfe)][_0x502df1(0xea)]===0x0)return'[]';if(shouldUseColor(_0x1fa5a3))return colorizeJSON(_0x20fcef['data'],_0x1fa5a3);const _0x22f5c2=_0x20fcef['data'][_0x502df1(0xee)](_0x53abe2=>'\x20\x20'+JSON['stringify'](_0x53abe2));return'[\x0a'+_0x22f5c2[_0x502df1(0xf6)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x34c5fd,_0x4c48db={}){const _0x463595=a98_0xa888;if(_0x34c5fd[_0x463595(0xfe)][_0x463595(0xea)]===0x0)return'';if(shouldUseColor(_0x4c48db))return _0x34c5fd['data'][_0x463595(0xee)](_0x2efb5f=>colorizeJSONCompact(_0x2efb5f,_0x4c48db))[_0x463595(0xf6)]('\x0a');return _0x34c5fd['data'][_0x463595(0xee)](_0x3ad785=>JSON[_0x463595(0xeb)](_0x3ad785))[_0x463595(0xf6)]('\x0a');}export function formatAsTSV(_0x581bc8){const _0x8d2e2c=a98_0xa888;if(_0x581bc8[_0x8d2e2c(0xfe)][_0x8d2e2c(0xea)]===0x0)return'';const _0x55fa5b=[],_0x89d821=_0x581bc8['columns'][_0x8d2e2c(0xee)](_0xc20859=>_0xc20859['name']);return _0x55fa5b[_0x8d2e2c(0xef)](_0x89d821[_0x8d2e2c(0xf6)]('\x09')),_0x581bc8[_0x8d2e2c(0xfe)]['forEach'](_0x3515c2=>{const _0x58b371=_0x8d2e2c,_0x2ec8ab=_0x89d821[_0x58b371(0xee)](_0x30f54b=>{const _0x5ae53a=_0x3515c2[_0x30f54b];return formatValueForTSV(_0x5ae53a);});_0x55fa5b['push'](_0x2ec8ab[_0x58b371(0xf6)]('\x09'));}),_0x55fa5b[_0x8d2e2c(0xf6)]('\x0a');}function formatValue(_0x56ac48){const _0x3c9ae3=a98_0xa888;if(_0x56ac48===null||_0x56ac48===undefined)return'';if(typeof _0x56ac48===_0x3c9ae3(0xfa)){const _0x4ff9ad=_0x56ac48[_0x3c9ae3(0x11e)](/\n/g,'\x5cn')[_0x3c9ae3(0x11e)](/\r/g,'\x5cr')[_0x3c9ae3(0x11e)](/\t/g,'\x5ct');return _0x4ff9ad;}if(typeof _0x56ac48===_0x3c9ae3(0x11d))return String(_0x56ac48);if(typeof _0x56ac48===_0x3c9ae3(0x10d))return _0x56ac48?_0x3c9ae3(0xf9):_0x3c9ae3(0xfc);if(_0x56ac48 instanceof Date)return _0x56ac48['toISOString']();if(typeof _0x56ac48===_0x3c9ae3(0x112))return JSON[_0x3c9ae3(0xeb)](_0x56ac48);return String(_0x56ac48);}function a98_0xa83b(){const _0x595563=['columns','json','object','5856EKdkIU','long','entries','min','startsWith','3HzIlff','row','padEnd','table','8OLLnwC','number','replace','3124388ZbDaiE','pow','toLowerCase','floor','date','double','8655660OclgyP','test','toFixed','length','stringify','0\x20B','jsonl','map','push','1hnvWZm','forEach','timestamp','max','type','44beMTTV','join','repeat','name','true','string','toString','false','slice','data','toISOString','array','stdout','reduce','log','\x20rows\x20(','7409178WUYfmb','8434584rhCqwm','int','1143459GGUkOs','\x20row','4985GuXjTD','\x20shown)','120424jpOHXR','boolean','tsv','bool'];a98_0xa83b=function(){return _0x595563;};return a98_0xa83b();}function formatValueForTSV(_0x5eb7c9){const _0x51a38d=a98_0xa888;if(_0x5eb7c9===null||_0x5eb7c9===undefined)return'';if(typeof _0x5eb7c9===_0x51a38d(0xfa))return _0x5eb7c9['replace'](/\t/g,'\x5ct')[_0x51a38d(0x11e)](/\n/g,'\x5cn');if(typeof _0x5eb7c9===_0x51a38d(0x11d)||typeof _0x5eb7c9==='boolean')return String(_0x5eb7c9);if(_0x5eb7c9 instanceof Date)return _0x5eb7c9[_0x51a38d(0xff)]();if(typeof _0x5eb7c9===_0x51a38d(0x112))return JSON[_0x51a38d(0xeb)](_0x5eb7c9);return String(_0x5eb7c9);}export function formatQueryResult(_0x195af6,_0x34338d){const _0x3405fd=a98_0xa888;switch(_0x34338d){case _0x3405fd(0x11b):return formatAsTable(_0x195af6);case _0x3405fd(0x111):return formatAsJSON(_0x195af6);case _0x3405fd(0xed):return formatAsJSONL(_0x195af6);case _0x3405fd(0x10e):return formatAsTSV(_0x195af6);default:return formatAsJSON(_0x195af6);}}export function formatBytes(_0x4310ee){const _0x1c6a91=a98_0xa888;if(_0x4310ee===0x0)return _0x1c6a91(0xec);const _0x3a6660=['B','KB','MB','GB','TB'],_0x485ebd=0x400,_0x2d133b=Math[_0x1c6a91(0x122)](Math[_0x1c6a91(0x103)](_0x4310ee)/Math['log'](_0x485ebd)),_0x263f3e=_0x4310ee/Math[_0x1c6a91(0x120)](_0x485ebd,_0x2d133b),_0x102eb1=_0x263f3e>=0xa?0x1:0x2;return _0x263f3e[_0x1c6a91(0xe9)](_0x102eb1)+'\x20'+_0x3a6660[_0x2d133b];}export function formatRows(_0x3deabb){const _0x15f926=a98_0xa888;if(_0x3deabb==null)return'-';if(_0x3deabb===0x0)return'0';if(_0x3deabb<0x3e8)return _0x3deabb[_0x15f926(0xfb)]();const _0x29385c=['','K','M','B','T'],_0x8cd05d=0x3e8,_0x1850a3=Math[_0x15f926(0x122)](Math[_0x15f926(0x103)](_0x3deabb)/Math[_0x15f926(0x103)](_0x8cd05d)),_0x1817a0=_0x3deabb/Math[_0x15f926(0x120)](_0x8cd05d,_0x1850a3),_0x53b537=_0x1817a0>=0xa?0x1:0x2;return''+_0x1817a0['toFixed'](_0x53b537)+_0x29385c[_0x1850a3];}
1
+ (function(_0x578b03,_0x290b43){const _0x23fadf=a98_0x37d2,_0x170d23=_0x578b03();while(!![]){try{const _0x48d879=parseInt(_0x23fadf(0x1b9))/0x1+parseInt(_0x23fadf(0x1be))/0x2*(-parseInt(_0x23fadf(0x1a6))/0x3)+parseInt(_0x23fadf(0x195))/0x4*(parseInt(_0x23fadf(0x19b))/0x5)+parseInt(_0x23fadf(0x1b8))/0x6*(-parseInt(_0x23fadf(0x1c4))/0x7)+-parseInt(_0x23fadf(0x1c2))/0x8+-parseInt(_0x23fadf(0x1a8))/0x9*(-parseInt(_0x23fadf(0x1a2))/0xa)+-parseInt(_0x23fadf(0x1c0))/0xb*(-parseInt(_0x23fadf(0x1bd))/0xc);if(_0x48d879===_0x290b43)break;else _0x170d23['push'](_0x170d23['shift']());}catch(_0x35dd67){_0x170d23['push'](_0x170d23['shift']());}}}(a98_0x411e,0xdf011));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x1ee7c0=a98_0x37d2;return process[_0x1ee7c0(0x1b0)][_0x1ee7c0(0x197)]||Infinity;}export function formatAsTable(_0x3bfed7,_0x32c60e=DEFAULT_MAX_DISPLAY_ROWS,_0x412ba0=![],_0x50f966={}){const _0x5b2c7b=a98_0x37d2;if(_0x3bfed7[_0x5b2c7b(0x1ad)][_0x5b2c7b(0x1a3)]===0x0)return'No\x20rows\x20returned';const _0x298319=_0x3bfed7[_0x5b2c7b(0x197)]['map'](_0x2141d4=>_0x2141d4[_0x5b2c7b(0x1b2)]),_0x2376d3=_0x3bfed7[_0x5b2c7b(0x197)]['map'](_0x56f69d=>simplifyType(_0x56f69d[_0x5b2c7b(0x199)])),_0x4f1486=_0x3bfed7[_0x5b2c7b(0x1ad)][_0x5b2c7b(0x1ae)](0x0,_0x32c60e),_0x557396=_0x3bfed7[_0x5b2c7b(0x1ad)]['length'],_0x51bebf=_0x557396>_0x32c60e,_0x560276=[],_0x76901b=getTerminalWidth(),_0x3f5b86=_0x76901b!==Infinity,_0x47593e=0x32;let _0x5c3888=_0x298319[_0x5b2c7b(0x19e)]((_0x1edba9,_0x3b0fb8)=>{const _0x1f0a4c=_0x5b2c7b,_0x455a3f=stringWidth(_0x2376d3[_0x3b0fb8]),_0x501db1=Math['max'](..._0x4f1486['map'](_0x4e43ab=>{const _0x396116=_0x4e43ab[_0x1edba9];return stringWidth(formatValue(_0x396116));})),_0x33f7bb=Math['max'](stringWidth(_0x1edba9),_0x455a3f,_0x501db1);return _0x412ba0?_0x33f7bb:Math[_0x1f0a4c(0x1b1)](_0x33f7bb,_0x47593e);});if(_0x3f5b86&&!_0x412ba0&&_0x298319[_0x5b2c7b(0x1a3)]>0x0){const _0x39b138=_0x2e0be3=>{let _0x170393=0x1;for(const _0x584759 of _0x2e0be3){_0x170393+=_0x584759+0x3;}return _0x170393+0x1;};let _0x12d764=_0x39b138(_0x5c3888);if(_0x12d764>_0x76901b){const _0x5f1443=0x3;for(let _0x1df103=_0x5c3888['length']-0x1;_0x1df103>=0x0;_0x1df103--){_0x12d764=_0x39b138(_0x5c3888);if(_0x12d764<=_0x76901b)break;const _0x584418=_0x5c3888[_0x1df103],_0x4d6328=_0x12d764-_0x76901b,_0x1b8eba=_0x584418-_0x5f1443,_0x45c23c=Math[_0x5b2c7b(0x1b1)](_0x4d6328,_0x1b8eba);_0x45c23c>0x0&&(_0x5c3888[_0x1df103]=_0x584418-_0x45c23c);}}}const _0x44d7ee=_0x298319,_0x13b551=_0x2376d3,_0xa88da=_0x5c3888,_0x5c985b=_0x5c3888;_0x560276[_0x5b2c7b(0x1af)](colorBorder('┌'+_0x5c985b[_0x5b2c7b(0x19e)](_0x140912=>'─'[_0x5b2c7b(0x1a5)](_0x140912+0x2))['join']('┬')+'┐',_0x50f966));const _0x1bbe94=_0x44d7ee[_0x5b2c7b(0x19e)]((_0x291f95,_0x218654)=>centerAlign(_0x291f95,_0xa88da[_0x218654]));_0x560276[_0x5b2c7b(0x1af)](colorBorder('│',_0x50f966)+'\x20'+_0x1bbe94[_0x5b2c7b(0x19c)]('\x20'+colorBorder('│',_0x50f966)+'\x20')+'\x20'+colorBorder('│',_0x50f966));const _0x36a12d=_0x13b551['map']((_0x33b498,_0x2c2952)=>colorType(centerAlign(_0x33b498,_0xa88da[_0x2c2952]),_0x50f966));_0x560276[_0x5b2c7b(0x1af)](colorBorder('│',_0x50f966)+'\x20'+_0x36a12d[_0x5b2c7b(0x19c)]('\x20'+colorBorder('│',_0x50f966)+'\x20')+'\x20'+colorBorder('│',_0x50f966)),_0x560276[_0x5b2c7b(0x1af)](colorBorder('├'+_0x5c985b[_0x5b2c7b(0x19e)](_0x476ac2=>'─'[_0x5b2c7b(0x1a5)](_0x476ac2+0x2))[_0x5b2c7b(0x19c)]('┼')+'┤',_0x50f966));const _0x4c8e68=(_0x1960c3,_0x483d16)=>{const _0x407ae9=_0x5b2c7b,_0x20e85c=stringWidth(_0x1960c3);if(_0x20e85c<=_0x483d16)return _0x1960c3;let _0x27fd7a=_0x1960c3;while(stringWidth(_0x27fd7a+'…')>_0x483d16&&_0x27fd7a['length']>0x0){_0x27fd7a=_0x27fd7a[_0x407ae9(0x1ae)](0x0,-0x1);}return _0x27fd7a+'…';};_0x4f1486[_0x5b2c7b(0x1b6)](_0x3ba46e=>{const _0x55b569=_0x5b2c7b,_0x2b0cb6=_0x298319[_0x55b569(0x19e)]((_0x5cacd3,_0x27d5df)=>{const _0x1dd844=_0x55b569,_0x46180b=_0x3ba46e[_0x5cacd3],_0x198ca1=formatValue(_0x46180b),_0x35ad37=_0xa88da[_0x27d5df],_0x85a211=_0x4c8e68(_0x198ca1,_0x35ad37),_0x5cf6ac=typeof _0x46180b===_0x1dd844(0x1a1)||typeof _0x46180b===_0x1dd844(0x1bc)&&/^-?\d+$/[_0x1dd844(0x1bf)](_0x46180b);return _0x5cf6ac?padStart(_0x85a211,_0x35ad37):padEnd(_0x85a211,_0x35ad37);});_0x560276['push'](colorBorder('│',_0x50f966)+'\x20'+_0x2b0cb6[_0x55b569(0x19c)]('\x20'+colorBorder('│',_0x50f966)+'\x20')+'\x20'+colorBorder('│',_0x50f966));});const _0x4b307f=_0x5c985b[_0x5b2c7b(0x1b5)]((_0x4d3724,_0x191a34)=>_0x4d3724+_0x191a34+0x3,-0x1);_0x560276['push'](colorBorder('├'+_0x5c985b[_0x5b2c7b(0x19e)](_0x142566=>'─'[_0x5b2c7b(0x1a5)](_0x142566+0x2))['join']('┴')+'┤',_0x50f966));let _0x58ee93;_0x51bebf?_0x58ee93=_0x557396+_0x5b2c7b(0x1c1)+_0x32c60e+_0x5b2c7b(0x1ab):_0x58ee93=_0x557396+_0x5b2c7b(0x18e)+(_0x557396===0x1?'':'s');const _0x477810=_0x58ee93[_0x5b2c7b(0x1a4)](_0x4b307f-0x2);return _0x560276[_0x5b2c7b(0x1af)](colorBorder('│',_0x50f966)+'\x20'+_0x477810+'\x20'+colorBorder('│',_0x50f966)),_0x560276[_0x5b2c7b(0x1af)](colorBorder('└'+'─'[_0x5b2c7b(0x1a5)](_0x4b307f)+'┘',_0x50f966)),_0x560276[_0x5b2c7b(0x19c)]('\x0a');}function simplifyType(_0x5230ea){const _0x5d2175=a98_0x37d2,_0x19e41e={'varchar':_0x5d2175(0x1bc),'bigint':'long','integer':'int','double':_0x5d2175(0x1aa),'boolean':_0x5d2175(0x1a9),'date':'date','timestamp':'timestamp','array':_0x5d2175(0x196),'map':_0x5d2175(0x19e),'row':_0x5d2175(0x1b3)},_0x291d7c=_0x5230ea[_0x5d2175(0x1b7)]();for(const [_0xdebd9e,_0x44ee07]of Object[_0x5d2175(0x19d)](_0x19e41e)){if(_0x291d7c[_0x5d2175(0x1c5)](_0xdebd9e))return _0x44ee07;}return _0x5230ea[_0x5d2175(0x1a3)]>0xa?_0x5230ea[_0x5d2175(0x193)](0x0,0xa):_0x5230ea;}export function formatAsJSON(_0x5efd98,_0x367761={}){const _0x3fc33b=a98_0x37d2;if(_0x5efd98[_0x3fc33b(0x1ad)][_0x3fc33b(0x1a3)]===0x0)return'[]';if(shouldUseColor(_0x367761))return colorizeJSON(_0x5efd98['data'],_0x367761);const _0x34b83d=_0x5efd98[_0x3fc33b(0x1ad)][_0x3fc33b(0x19e)](_0x1b1c96=>'\x20\x20'+JSON[_0x3fc33b(0x18f)](_0x1b1c96));return'[\x0a'+_0x34b83d[_0x3fc33b(0x19c)](',\x0a')+'\x0a]';}function a98_0x411e(){const _0x19804c=['min','name','row','0\x20B','reduce','forEach','toLowerCase','18uMgRhJ','1609368DoUvru','table','object','string','372840GuAecL','74wiQceS','test','209jIoWfl','\x20rows\x20(','5133000EjBhRU','jsonl','2850281nSxWzj','startsWith','\x20row','stringify','tsv','toString','toFixed','substring','true','108gNriKG','array','columns','log','type','pow','288255FVjfQr','join','entries','map','replace','floor','number','1621390YDCiPd','length','padEnd','repeat','105726MHhXgk','json','18FyXqiZ','bool','double','\x20shown)','boolean','data','slice','push','stdout'];a98_0x411e=function(){return _0x19804c;};return a98_0x411e();}export function formatAsJSONL(_0x155e8b,_0x223301={}){const _0x2e311f=a98_0x37d2;if(_0x155e8b[_0x2e311f(0x1ad)][_0x2e311f(0x1a3)]===0x0)return'';if(shouldUseColor(_0x223301))return _0x155e8b[_0x2e311f(0x1ad)][_0x2e311f(0x19e)](_0x159628=>colorizeJSONCompact(_0x159628,_0x223301))[_0x2e311f(0x19c)]('\x0a');return _0x155e8b[_0x2e311f(0x1ad)][_0x2e311f(0x19e)](_0x409570=>JSON[_0x2e311f(0x18f)](_0x409570))[_0x2e311f(0x19c)]('\x0a');}export function formatAsTSV(_0x37b214){const _0x3b1f3f=a98_0x37d2;if(_0x37b214[_0x3b1f3f(0x1ad)][_0x3b1f3f(0x1a3)]===0x0)return'';const _0x532e1e=[],_0x12e57d=_0x37b214['columns'][_0x3b1f3f(0x19e)](_0x5a1f4a=>_0x5a1f4a[_0x3b1f3f(0x1b2)]);return _0x532e1e[_0x3b1f3f(0x1af)](_0x12e57d['join']('\x09')),_0x37b214['data'][_0x3b1f3f(0x1b6)](_0x2cf21f=>{const _0x84adc6=_0x3b1f3f,_0x1c981f=_0x12e57d[_0x84adc6(0x19e)](_0x476a7f=>{const _0xe4586f=_0x2cf21f[_0x476a7f];return formatValueForTSV(_0xe4586f);});_0x532e1e[_0x84adc6(0x1af)](_0x1c981f[_0x84adc6(0x19c)]('\x09'));}),_0x532e1e[_0x3b1f3f(0x19c)]('\x0a');}function formatValue(_0x50b756){const _0x486d91=a98_0x37d2;if(_0x50b756===null||_0x50b756===undefined)return'';if(typeof _0x50b756==='string'){const _0x159879=_0x50b756[_0x486d91(0x19f)](/\n/g,'\x5cn')[_0x486d91(0x19f)](/\r/g,'\x5cr')[_0x486d91(0x19f)](/\t/g,'\x5ct');return _0x159879;}if(typeof _0x50b756===_0x486d91(0x1a1))return String(_0x50b756);if(typeof _0x50b756==='boolean')return _0x50b756?_0x486d91(0x194):'false';if(_0x50b756 instanceof Date)return _0x50b756['toISOString']();if(typeof _0x50b756===_0x486d91(0x1bb))return JSON[_0x486d91(0x18f)](_0x50b756);return String(_0x50b756);}function formatValueForTSV(_0x24cafc){const _0x2b9945=a98_0x37d2;if(_0x24cafc===null||_0x24cafc===undefined)return'';if(typeof _0x24cafc===_0x2b9945(0x1bc))return _0x24cafc[_0x2b9945(0x19f)](/\t/g,'\x5ct')['replace'](/\n/g,'\x5cn');if(typeof _0x24cafc===_0x2b9945(0x1a1)||typeof _0x24cafc===_0x2b9945(0x1ac))return String(_0x24cafc);if(_0x24cafc instanceof Date)return _0x24cafc['toISOString']();if(typeof _0x24cafc===_0x2b9945(0x1bb))return JSON[_0x2b9945(0x18f)](_0x24cafc);return String(_0x24cafc);}function a98_0x37d2(_0x2ed6e3,_0x507afd){_0x2ed6e3=_0x2ed6e3-0x18e;const _0x411eb6=a98_0x411e();let _0x37d253=_0x411eb6[_0x2ed6e3];return _0x37d253;}export function formatQueryResult(_0x4af9ef,_0x5e4ba3){const _0xe92d09=a98_0x37d2;switch(_0x5e4ba3){case _0xe92d09(0x1ba):return formatAsTable(_0x4af9ef);case _0xe92d09(0x1a7):return formatAsJSON(_0x4af9ef);case _0xe92d09(0x1c3):return formatAsJSONL(_0x4af9ef);case _0xe92d09(0x190):return formatAsTSV(_0x4af9ef);default:return formatAsJSON(_0x4af9ef);}}export function formatBytes(_0x1bd20f){const _0x534a1c=a98_0x37d2;if(_0x1bd20f===0x0)return _0x534a1c(0x1b4);const _0x4c3f63=['B','KB','MB','GB','TB'],_0x5ef07=0x400,_0x186d4e=Math[_0x534a1c(0x1a0)](Math['log'](_0x1bd20f)/Math['log'](_0x5ef07)),_0x1be962=_0x1bd20f/Math[_0x534a1c(0x19a)](_0x5ef07,_0x186d4e),_0x33d9e0=_0x1be962>=0xa?0x1:0x2;return _0x1be962['toFixed'](_0x33d9e0)+'\x20'+_0x4c3f63[_0x186d4e];}export function formatRows(_0x12e078){const _0x464371=a98_0x37d2;if(_0x12e078==null)return'-';if(_0x12e078===0x0)return'0';if(_0x12e078<0x3e8)return _0x12e078[_0x464371(0x191)]();const _0x1647b9=['','K','M','B','T'],_0x333013=0x3e8,_0x4a1b6c=Math[_0x464371(0x1a0)](Math[_0x464371(0x198)](_0x12e078)/Math[_0x464371(0x198)](_0x333013)),_0xaa08b=_0x12e078/Math[_0x464371(0x19a)](_0x333013,_0x4a1b6c),_0x4bda4d=_0xaa08b>=0xa?0x1:0x2;return''+_0xaa08b[_0x464371(0x192)](_0x4bda4d)+_0x1647b9[_0x4a1b6c];}
@@ -1 +1 @@
1
- (function(_0xb5ed88,_0x292550){const _0x38f800=a99_0x32c4,_0x3aef6c=_0xb5ed88();while(!![]){try{const _0x2763c2=parseInt(_0x38f800(0xbf))/0x1*(parseInt(_0x38f800(0xbd))/0x2)+parseInt(_0x38f800(0xb1))/0x3+-parseInt(_0x38f800(0xbc))/0x4+-parseInt(_0x38f800(0xc7))/0x5*(parseInt(_0x38f800(0xcb))/0x6)+parseInt(_0x38f800(0xcc))/0x7+parseInt(_0x38f800(0xb5))/0x8+parseInt(_0x38f800(0xcd))/0x9*(-parseInt(_0x38f800(0xa5))/0xa);if(_0x2763c2===_0x292550)break;else _0x3aef6c['push'](_0x3aef6c['shift']());}catch(_0x23c5ce){_0x3aef6c['push'](_0x3aef6c['shift']());}}}(a99_0x5251,0xa97a2));export const SEGMENT_KIND_JOURNEY=0x3;export function sanitizeYamlKey(_0xa56679){const _0x5b69f7=a99_0x32c4;return _0xa56679[_0x5b69f7(0xa9)]()[_0x5b69f7(0xb2)](/\s+/g,'_')['replace'](/[^a-z0-9_]/g,'')[_0x5b69f7(0xb2)](/_+/g,'_')[_0x5b69f7(0xb2)](/^_|_$/g,'');}function a99_0x32c4(_0x40377a,_0x2a914d){_0x40377a=_0x40377a-0xa2;const _0x525141=a99_0x5251();let _0x32c444=_0x525141[_0x40377a];return _0x32c444;}export function generateJourneyLocalName(_0x5e32cf){const _0x48828f=a99_0x32c4,_0x5521f5=_0x5e32cf[_0x48828f(0xc2)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x5521f5){const _0x23fd0c=_0x5521f5[0x1][_0x48828f(0xa9)](),_0x4e4832=_0x5521f5[0x2],_0x3f38f5=_0x4e4832[_0x48828f(0xb2)](/-/g,'')[_0x48828f(0xa6)](0x0,0x4)[_0x48828f(0xa9)]();return _0x23fd0c+'_'+_0x3f38f5;}return undefined;}export function consolidateActivationsByContent(_0x1b4d09){const _0x6762e8=a99_0x32c4,_0x554d13={},_0x5362a6=new Map(),_0x5ed227=new Map();for(const _0x5a81e7 of _0x1b4d09){if(!_0x5a81e7)continue;for(const [_0xf4f997,_0x2462ec]of Object[_0x6762e8(0xa4)](_0x5a81e7)){const _0x299085=JSON[_0x6762e8(0xc0)]({'name':_0x2462ec[_0x6762e8(0xc4)],'connection':_0x2462ec[_0x6762e8(0xca)],'connector_config':_0x2462ec[_0x6762e8(0xc9)]}),_0x302bbf=_0x5ed227[_0x6762e8(0xba)](_0x299085);_0x302bbf?_0x5362a6[_0x6762e8(0xc6)](_0xf4f997,_0x302bbf):(_0x554d13[_0xf4f997]=_0x2462ec,_0x5362a6[_0x6762e8(0xc6)](_0xf4f997,_0xf4f997),_0x5ed227[_0x6762e8(0xc6)](_0x299085,_0xf4f997));}}return{'merged':_0x554d13,'nameMapping':_0x5362a6};}export function updateActivationReferences(_0x6b81c,_0x590223){const _0x214819=a99_0x32c4;if(!_0x6b81c)return;for(const _0x36f035 of _0x6b81c){if(!_0x36f035['steps'])continue;for(const _0x211817 of _0x36f035['steps']){if(_0x211817['type']===_0x214819(0xaa)&&_0x211817['with']?.[_0x214819(0xaa)]){const _0x1e4839=_0x590223[_0x214819(0xba)](_0x211817['with'][_0x214819(0xaa)]);_0x1e4839&&_0x1e4839!==_0x211817[_0x214819(0xc5)][_0x214819(0xaa)]&&(_0x211817[_0x214819(0xc5)][_0x214819(0xaa)]=_0x1e4839);}}}}function a99_0x5251(){const _0x3d036f=['versionNumber','3423894EEYIha','replace','attributes','keys','5624800gJhgVh','launched','bundle_name','max','bundle_id','get','latest','233712CSZcOj','1222YiuFia','yaml','1161RqxvNy','stringify','activations','match','segments','name','with','set','5GZzmYF','version_number','connector_config','connection','3813132rQgFfr','9107819bVBiOE','882kWgqBx','journeys','map','find','entries','251710fOhuHs','slice','journeyBundleName','stages','toLowerCase','activation','journey','goal','item','version','draft'];a99_0x5251=function(){return _0x3d036f;};return a99_0x5251();}export function buildJourneysArray(_0x330fac){const _0x2382ce=a99_0x32c4,_0x2266c4=Math[_0x2382ce(0xb8)](..._0x330fac['map'](_0x2d488e=>_0x2d488e[_0x2382ce(0xad)][_0x2382ce(0xb0)]||0x0));return _0x330fac[_0x2382ce(0xa2)](_0x75a0d6=>{const _0x4caec9=_0x2382ce,_0x32ccea=(_0x75a0d6['item']['versionNumber']||0x0)===_0x2266c4,_0x39ccf9=_0x75a0d6['yaml'][_0x4caec9(0xce)]?.[0x0],_0x1eb09d={'version':_0x39ccf9?.[_0x4caec9(0xae)]||_0x75a0d6['yaml'][_0x4caec9(0xae)]||_0x75a0d6['item'][_0x4caec9(0xc4)],'state':_0x75a0d6[_0x4caec9(0xad)]['state']===_0x4caec9(0xb6)?_0x4caec9(0xb6):_0x4caec9(0xaf),'stages':_0x39ccf9?.['stages']||_0x75a0d6['yaml'][_0x4caec9(0xa8)]||[],'id':_0x39ccf9?.['id']||_0x75a0d6['yaml']['id'],'version_number':_0x39ccf9?.[_0x4caec9(0xc8)]||_0x75a0d6['yaml'][_0x4caec9(0xc8)]};return _0x32ccea&&(_0x1eb09d[_0x4caec9(0xbb)]=!![]),_0x1eb09d;});}export function buildMergedJourneyYaml(_0x51f76f){const _0x16ffed=a99_0x32c4,_0x4729ff=_0x51f76f[0x0][_0x16ffed(0xbe)],_0x4b49cb=buildJourneysArray(_0x51f76f),{merged:_0x37c316,nameMapping:_0xd0ff31}=consolidateActivationsByContent(_0x51f76f[_0x16ffed(0xa2)](_0x1a61a4=>_0x1a61a4['yaml'][_0x16ffed(0xc1)]));for(const _0x3a4c0a of _0x4b49cb){updateActivationReferences(_0x3a4c0a[_0x16ffed(0xa8)],_0xd0ff31);}return{'type':_0x16ffed(0xab),'name':_0x4729ff[_0x16ffed(0xc4)],'description':_0x4729ff['description'],'segments':_0x4729ff[_0x16ffed(0xc3)],'activations':Object[_0x16ffed(0xb4)](_0x37c316)['length']>0x0?_0x37c316:undefined,'goal':_0x4729ff[_0x16ffed(0xac)],'reentry':_0x4729ff['reentry'],'journeys':_0x4b49cb,'bundle_id':_0x4729ff[_0x16ffed(0xb9)],'bundle_name':_0x4729ff[_0x16ffed(0xb7)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x1d4085,_0x3f9bd5,_0x434fc5,_0x54fc85){const _0x5e1af8=a99_0x32c4,_0xdf6287=_0x1d4085+':'+_0x3f9bd5,_0x4b9917=_0x434fc5[_0x5e1af8(0xba)](_0xdf6287);if(_0x4b9917)return _0x4b9917;const _0x3ff456=await _0x54fc85(_0x1d4085),_0x4bacc6=_0x3ff456['attributes'][_0x5e1af8(0xa7)]||_0x3ff456[_0x5e1af8(0xb3)][_0x5e1af8(0xc4)],_0x89500=_0x3ff456[_0x5e1af8(0xb3)]['journeyStages'][_0x5e1af8(0xa3)](_0x373663=>_0x373663['id']===_0x3f9bd5),_0x5a55ac=_0x89500?.[_0x5e1af8(0xc4)]||_0x3f9bd5,_0x2cf5ee={'journeyName':_0x4bacc6,'stageName':_0x5a55ac};return _0x434fc5['set'](_0xdf6287,_0x2cf5ee),_0x2cf5ee;}
1
+ (function(_0x929dd7,_0x359418){const _0x3563c9=a99_0x3470,_0x149140=_0x929dd7();while(!![]){try{const _0x5bf360=-parseInt(_0x3563c9(0x140))/0x1*(parseInt(_0x3563c9(0x141))/0x2)+parseInt(_0x3563c9(0x136))/0x3*(-parseInt(_0x3563c9(0x11e))/0x4)+parseInt(_0x3563c9(0x135))/0x5+-parseInt(_0x3563c9(0x144))/0x6*(-parseInt(_0x3563c9(0x125))/0x7)+-parseInt(_0x3563c9(0x13b))/0x8+parseInt(_0x3563c9(0x124))/0x9+-parseInt(_0x3563c9(0x120))/0xa;if(_0x5bf360===_0x359418)break;else _0x149140['push'](_0x149140['shift']());}catch(_0x449b46){_0x149140['push'](_0x149140['shift']());}}}(a99_0x18c6,0x9f9a7));export const SEGMENT_KIND_JOURNEY=0x3;export function sanitizeYamlKey(_0x2559d1){const _0x4243f6=a99_0x3470;return _0x2559d1[_0x4243f6(0x132)]()[_0x4243f6(0x145)](/\s+/g,'_')[_0x4243f6(0x145)](/[^a-z0-9_]/g,'')[_0x4243f6(0x145)](/_+/g,'_')['replace'](/^_|_$/g,'');}function a99_0x3470(_0x49d5af,_0x560285){_0x49d5af=_0x49d5af-0x11c;const _0x18c670=a99_0x18c6();let _0x347041=_0x18c670[_0x49d5af];return _0x347041;}export function generateJourneyLocalName(_0x31eca8){const _0x31bd56=a99_0x3470,_0x987dd=_0x31eca8[_0x31bd56(0x13a)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x987dd){const _0x584ccc=_0x987dd[0x1][_0x31bd56(0x132)](),_0x6a173=_0x987dd[0x2],_0x467b1d=_0x6a173[_0x31bd56(0x145)](/-/g,'')[_0x31bd56(0x12f)](0x0,0x4)[_0x31bd56(0x132)]();return _0x584ccc+'_'+_0x467b1d;}return undefined;}export function consolidateActivationsByContent(_0x30aad9){const _0x1db574=a99_0x3470,_0x26288a={},_0x71d9ed=new Map(),_0x2c03e4=new Map();for(const _0x2204ef of _0x30aad9){if(!_0x2204ef)continue;for(const [_0x3ec419,_0x1bf79c]of Object[_0x1db574(0x11c)](_0x2204ef)){const _0x14c395=JSON[_0x1db574(0x11d)]({'name':_0x1bf79c['name'],'connection':_0x1bf79c['connection'],'connector_config':_0x1bf79c[_0x1db574(0x12e)]}),_0x578eae=_0x2c03e4[_0x1db574(0x138)](_0x14c395);_0x578eae?_0x71d9ed[_0x1db574(0x121)](_0x3ec419,_0x578eae):(_0x26288a[_0x3ec419]=_0x1bf79c,_0x71d9ed[_0x1db574(0x121)](_0x3ec419,_0x3ec419),_0x2c03e4[_0x1db574(0x121)](_0x14c395,_0x3ec419));}}return{'merged':_0x26288a,'nameMapping':_0x71d9ed};}export function updateActivationReferences(_0x5c859b,_0x1136b0){const _0x3135a3=a99_0x3470;if(!_0x5c859b)return;for(const _0x1171a0 of _0x5c859b){if(!_0x1171a0[_0x3135a3(0x131)])continue;for(const _0xec40c4 of _0x1171a0[_0x3135a3(0x131)]){if(_0xec40c4[_0x3135a3(0x126)]===_0x3135a3(0x13d)&&_0xec40c4[_0x3135a3(0x147)]?.[_0x3135a3(0x13d)]){const _0xd687f4=_0x1136b0[_0x3135a3(0x138)](_0xec40c4[_0x3135a3(0x147)][_0x3135a3(0x13d)]);_0xd687f4&&_0xd687f4!==_0xec40c4['with'][_0x3135a3(0x13d)]&&(_0xec40c4[_0x3135a3(0x147)][_0x3135a3(0x13d)]=_0xd687f4);}}}}export function buildJourneysArray(_0x20dacf){const _0x4be579=a99_0x3470,_0x542fe9=Math[_0x4be579(0x143)](..._0x20dacf[_0x4be579(0x123)](_0x2fe12f=>_0x2fe12f[_0x4be579(0x122)][_0x4be579(0x13c)]||0x0));return _0x20dacf['map'](_0xa7aa44=>{const _0x556249=_0x4be579,_0x20e57d=(_0xa7aa44[_0x556249(0x122)]['versionNumber']||0x0)===_0x542fe9,_0x23e564=_0xa7aa44['yaml']['journeys']?.[0x0],_0x48af10={'version':_0x23e564?.[_0x556249(0x146)]||_0xa7aa44[_0x556249(0x11f)]['version']||_0xa7aa44[_0x556249(0x122)][_0x556249(0x12a)],'state':_0xa7aa44[_0x556249(0x122)][_0x556249(0x137)]===_0x556249(0x133)?_0x556249(0x133):'draft','stages':_0x23e564?.[_0x556249(0x127)]||_0xa7aa44[_0x556249(0x11f)]['stages']||[],'id':_0x23e564?.['id']||_0xa7aa44[_0x556249(0x11f)]['id'],'version_number':_0x23e564?.[_0x556249(0x12d)]||_0xa7aa44[_0x556249(0x11f)][_0x556249(0x12d)]};return _0x20e57d&&(_0x48af10[_0x556249(0x13f)]=!![]),_0x48af10;});}export function buildMergedJourneyYaml(_0x2823e5){const _0x105de8=a99_0x3470,_0x2749cf=_0x2823e5[0x0][_0x105de8(0x11f)],_0x5173c6=buildJourneysArray(_0x2823e5),{merged:_0x48df39,nameMapping:_0x2fa363}=consolidateActivationsByContent(_0x2823e5['map'](_0x2148a0=>_0x2148a0['yaml']['activations']));for(const _0x4e8be3 of _0x5173c6){updateActivationReferences(_0x4e8be3[_0x105de8(0x127)],_0x2fa363);}return{'type':'journey','name':_0x2749cf[_0x105de8(0x12a)],'description':_0x2749cf['description'],'segments':_0x2749cf['segments'],'activations':Object[_0x105de8(0x139)](_0x48df39)[_0x105de8(0x12b)]>0x0?_0x48df39:undefined,'goal':_0x2749cf[_0x105de8(0x142)],'reentry':_0x2749cf[_0x105de8(0x134)],'journeys':_0x5173c6,'bundle_id':_0x2749cf[_0x105de8(0x129)],'bundle_name':_0x2749cf['bundle_name']};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x557d14,_0x67b4bd,_0xeac5c0,_0x3b033b){const _0x585dc7=a99_0x3470,_0x5de60f=_0x557d14+':'+_0x67b4bd,_0x179752=_0xeac5c0[_0x585dc7(0x138)](_0x5de60f);if(_0x179752)return _0x179752;const _0x403491=await _0x3b033b(_0x557d14),_0x6970c6=_0x403491['attributes'][_0x585dc7(0x130)]||_0x403491[_0x585dc7(0x12c)][_0x585dc7(0x12a)],_0x1ce8b7=_0x403491[_0x585dc7(0x12c)][_0x585dc7(0x128)][_0x585dc7(0x13e)](_0x1f98a8=>_0x1f98a8['id']===_0x67b4bd),_0x4e7172=_0x1ce8b7?.[_0x585dc7(0x12a)]||_0x67b4bd,_0x7fae22={'journeyName':_0x6970c6,'stageName':_0x4e7172};return _0xeac5c0[_0x585dc7(0x121)](_0x5de60f,_0x7fae22),_0x7fae22;}function a99_0x18c6(){const _0x4d91e9=['1482mudbna','replace','version','with','entries','stringify','861640zCnmuZ','yaml','7201080iZjozN','set','item','map','9631476UGeEEW','4137EYgoZd','type','stages','journeyStages','bundle_id','name','length','attributes','version_number','connector_config','slice','journeyBundleName','steps','toLowerCase','launched','reentry','5916380ytwtJa','6LybEjS','state','get','keys','match','356944kGRQBZ','versionNumber','activation','find','latest','8THxkrn','137534CXieey','goal','max'];a99_0x18c6=function(){return _0x4d91e9;};return a99_0x18c6();}