@treasuredata/tdx 0.9.4 → 0.9.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) 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.js +1 -1
  8. package/dist/client/engage-api-client.js +1 -1
  9. package/dist/client/http-client.js +1 -1
  10. package/dist/client/llm-api-client.js +1 -1
  11. package/dist/client/rate-limiter.js +1 -1
  12. package/dist/client/td-api-client.d.ts +45 -1
  13. package/dist/client/td-api-client.d.ts.map +1 -1
  14. package/dist/client/td-api-client.js +1 -1
  15. package/dist/client/td-api-client.js.map +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/agent-command.js +1 -1
  20. package/dist/commands/api-command.js +1 -1
  21. package/dist/commands/auth-command.js +1 -1
  22. package/dist/commands/chat-command.js +1 -1
  23. package/dist/commands/claude-command.js +1 -1
  24. package/dist/commands/claude-statusline-command.js +1 -1
  25. package/dist/commands/claude-usage-command.js +1 -1
  26. package/dist/commands/command.js +1 -1
  27. package/dist/commands/connection-command.d.ts +35 -0
  28. package/dist/commands/connection-command.d.ts.map +1 -1
  29. package/dist/commands/connection-command.js +1 -1
  30. package/dist/commands/connection-command.js.map +1 -1
  31. package/dist/commands/context-command.js +1 -1
  32. package/dist/commands/databases.js +1 -1
  33. package/dist/commands/describe.js +1 -1
  34. package/dist/commands/engage-command.js +1 -1
  35. package/dist/commands/job-command.js +1 -1
  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.d.ts.map +1 -1
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-pull-command.js.map +1 -1
  50. package/dist/commands/segment-push-command.d.ts.map +1 -1
  51. package/dist/commands/segment-push-command.js +1 -1
  52. package/dist/commands/segment-push-command.js.map +1 -1
  53. package/dist/commands/segment-update-command.js +1 -1
  54. package/dist/commands/segment-use-command.js +1 -1
  55. package/dist/commands/segments.js +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/agent/agent-yaml.js +1 -1
  79. package/dist/sdk/api.js +1 -1
  80. package/dist/sdk/connection-validator.d.ts +119 -0
  81. package/dist/sdk/connection-validator.d.ts.map +1 -0
  82. package/dist/sdk/connection-validator.js +1 -0
  83. package/dist/sdk/connection-validator.js.map +1 -0
  84. package/dist/sdk/connection.d.ts +120 -1
  85. package/dist/sdk/connection.d.ts.map +1 -1
  86. package/dist/sdk/connection.js +1 -1
  87. package/dist/sdk/connection.js.map +1 -1
  88. package/dist/sdk/engage.js +1 -1
  89. package/dist/sdk/errors.d.ts +4 -0
  90. package/dist/sdk/errors.d.ts.map +1 -1
  91. package/dist/sdk/errors.js +1 -1
  92. package/dist/sdk/errors.js.map +1 -1
  93. package/dist/sdk/index.js +1 -1
  94. package/dist/sdk/job.js +1 -1
  95. package/dist/sdk/journey.js +1 -1
  96. package/dist/sdk/llm.js +1 -1
  97. package/dist/sdk/query.js +1 -1
  98. package/dist/sdk/segment/child-segment-yaml.d.ts +22 -6
  99. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  100. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  101. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  102. package/dist/sdk/segment/journey-yaml.js +1 -1
  103. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  104. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  105. package/dist/sdk/segment.js +1 -1
  106. package/dist/sdk/user.js +1 -1
  107. package/dist/sdk/workflow.js +1 -1
  108. package/dist/types/connector-schema.d.ts +182 -0
  109. package/dist/types/connector-schema.d.ts.map +1 -0
  110. package/dist/types/connector-schema.js +1 -0
  111. package/dist/types/connector-schema.js.map +1 -0
  112. package/dist/types/endpoints.js +1 -1
  113. package/dist/types/index.d.ts +2 -0
  114. package/dist/types/index.d.ts.map +1 -1
  115. package/dist/types/index.js +1 -1
  116. package/dist/utils/agent-config.js +1 -1
  117. package/dist/utils/agent-ref-parser.js +1 -1
  118. package/dist/utils/async.js +1 -1
  119. package/dist/utils/chat-cache.js +1 -1
  120. package/dist/utils/colors.js +1 -1
  121. package/dist/utils/command-output.js +1 -1
  122. package/dist/utils/constants.js +1 -1
  123. package/dist/utils/diff.js +1 -1
  124. package/dist/utils/fields-display.js +1 -1
  125. package/dist/utils/file-permissions.js +1 -1
  126. package/dist/utils/format-detector.js +1 -1
  127. package/dist/utils/formatters.js +1 -1
  128. package/dist/utils/journey-utils.d.ts.map +1 -1
  129. package/dist/utils/journey-utils.js +1 -1
  130. package/dist/utils/journey-utils.js.map +1 -1
  131. package/dist/utils/json-loader.js +1 -1
  132. package/dist/utils/llm-backup-utils.js +1 -1
  133. package/dist/utils/model-aliases.js +1 -1
  134. package/dist/utils/model-factors.js +1 -1
  135. package/dist/utils/option-validation.js +1 -1
  136. package/dist/utils/port.js +1 -1
  137. package/dist/utils/process.js +1 -1
  138. package/dist/utils/prompt.js +1 -1
  139. package/dist/utils/segment-path-parser.js +1 -1
  140. package/dist/utils/segment-ref-parser.js +1 -1
  141. package/dist/utils/spinner.js +1 -1
  142. package/dist/utils/sql-parser.js +1 -1
  143. package/dist/utils/sse-parser.js +1 -1
  144. package/dist/utils/string-utils.js +1 -1
  145. package/dist/utils/table-ref-parser.js +1 -1
  146. package/dist/utils/tdx-config.js +1 -1
  147. package/dist/utils/tdx-logger.js +1 -1
  148. package/dist/utils/tree-formatter.js +1 -1
  149. package/dist/utils/version-check.js +1 -1
  150. package/dist/utils/workflow-utils.js +1 -1
  151. package/package.json +1 -1
@@ -1 +1 @@
1
- const a105_0x398315=a105_0x421d;(function(_0x453bfb,_0x4c3e0d){const _0x42a255=a105_0x421d,_0x4db77c=_0x453bfb();while(!![]){try{const _0x3e5e2f=parseInt(_0x42a255(0xdc))/0x1*(-parseInt(_0x42a255(0xd7))/0x2)+parseInt(_0x42a255(0xe0))/0x3*(parseInt(_0x42a255(0xd6))/0x4)+parseInt(_0x42a255(0xdf))/0x5+parseInt(_0x42a255(0xe3))/0x6+parseInt(_0x42a255(0xdb))/0x7+parseInt(_0x42a255(0xda))/0x8*(parseInt(_0x42a255(0xe1))/0x9)+-parseInt(_0x42a255(0xd9))/0xa*(parseInt(_0x42a255(0xdd))/0xb);if(_0x3e5e2f===_0x4c3e0d)break;else _0x4db77c['push'](_0x4db77c['shift']());}catch(_0x290aa1){_0x4db77c['push'](_0x4db77c['shift']());}}}(a105_0x4a0c,0x1e6ea));const MODEL_ALIASES={'haiku':a105_0x398315(0xe2),'sonnet':'claude-4.5-sonnet'};export function extractModelAlias(_0x2f6db9){const _0x18d64f=a105_0x398315,_0x2d1eb1=_0x2f6db9[_0x18d64f(0xd8)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x2d1eb1)return _0x2d1eb1[0x1]['toLowerCase']();return _0x2f6db9;}function a105_0x421d(_0x15ebac,_0xe2971a){_0x15ebac=_0x15ebac-0xd6;const _0x4a0c0c=a105_0x4a0c();let _0x421dd9=_0x4a0c0c[_0x15ebac];return _0x421dd9;}function a105_0x4a0c(){const _0x36c825=['399608TPQAkg','6892AqKUeD','match','100bhivMc','597408CKZaTA','913843YdumEe','65BYsqQE','156277sLjhaj','toLowerCase','28475zDkzvI','3XZryJY','9frstRo','claude-4.5-haiku','1079328HxQYOV'];a105_0x4a0c=function(){return _0x36c825;};return a105_0x4a0c();}export function resolveModelAlias(_0x1abff2){const _0x320894=a105_0x398315;return MODEL_ALIASES[_0x1abff2[_0x320894(0xde)]()]||_0x1abff2;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a107_0x3ef1df=a107_0x482c;(function(_0x1a7d0b,_0x34bd11){const _0x417417=a107_0x482c,_0x2e53df=_0x1a7d0b();while(!![]){try{const _0x19ac0a=parseInt(_0x417417(0xd7))/0x1*(parseInt(_0x417417(0xd1))/0x2)+-parseInt(_0x417417(0xdc))/0x3*(-parseInt(_0x417417(0xd2))/0x4)+parseInt(_0x417417(0xda))/0x5+-parseInt(_0x417417(0xd9))/0x6*(parseInt(_0x417417(0xd3))/0x7)+-parseInt(_0x417417(0xd5))/0x8*(-parseInt(_0x417417(0xd8))/0x9)+parseInt(_0x417417(0xdb))/0xa+-parseInt(_0x417417(0xdd))/0xb*(parseInt(_0x417417(0xd4))/0xc);if(_0x19ac0a===_0x34bd11)break;else _0x2e53df['push'](_0x2e53df['shift']());}catch(_0x18bd79){_0x2e53df['push'](_0x2e53df['shift']());}}}(a107_0x1969,0x18cae));const MODEL_ALIASES={'haiku':a107_0x3ef1df(0xd6),'sonnet':'claude-4.5-sonnet'};function a107_0x482c(_0x58fdfa,_0x3cee9b){_0x58fdfa=_0x58fdfa-0xd1;const _0x1969fa=a107_0x1969();let _0x482cf6=_0x1969fa[_0x58fdfa];return _0x482cf6;}function a107_0x1969(){const _0x4500f1=['1IpUbfZ','4203uqFQWn','112830SfkfUb','75735nXYHeQ','1560170GHmkfh','318ZzJcUy','88OCsKIS','toLowerCase','329502IwuGGg','2108SOEdAp','7AEWlAK','657912YHNCuf','2864rOWIMc','claude-4.5-haiku'];a107_0x1969=function(){return _0x4500f1;};return a107_0x1969();}export function extractModelAlias(_0x137ca2){const _0x3ab78b=a107_0x3ef1df,_0x3b55e5=_0x137ca2['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x3b55e5)return _0x3b55e5[0x1][_0x3ab78b(0xde)]();return _0x137ca2;}export function resolveModelAlias(_0x3d5259){return MODEL_ALIASES[_0x3d5259['toLowerCase']()]||_0x3d5259;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x428456,_0x5a71ed){const _0x3debc0=a106_0x1f8a,_0x32d53d=_0x428456();while(!![]){try{const _0x184b60=-parseInt(_0x3debc0(0xce))/0x1+parseInt(_0x3debc0(0xc4))/0x2*(-parseInt(_0x3debc0(0xc2))/0x3)+-parseInt(_0x3debc0(0xbf))/0x4+parseInt(_0x3debc0(0xc8))/0x5*(-parseInt(_0x3debc0(0xc1))/0x6)+-parseInt(_0x3debc0(0xc0))/0x7+-parseInt(_0x3debc0(0xc9))/0x8*(-parseInt(_0x3debc0(0xcd))/0x9)+parseInt(_0x3debc0(0xcf))/0xa;if(_0x184b60===_0x5a71ed)break;else _0x32d53d['push'](_0x32d53d['shift']());}catch(_0x29ba5e){_0x32d53d['push'](_0x32d53d['shift']());}}}(a106_0x5456,0x238b4));function a106_0x1f8a(_0x3ef822,_0x2a5089){_0x3ef822=_0x3ef822-0xbf;const _0x545650=a106_0x5456();let _0x1f8a55=_0x545650[_0x3ef822];return _0x1f8a55;}export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x41aff2){const _0x5ef154=a106_0x1f8a,_0x1432f5=_0x41aff2[_0x5ef154(0xd6)]();if(MODEL_FACTORS[_0x1432f5])return MODEL_FACTORS[_0x1432f5];if(_0x1432f5[_0x5ef154(0xd4)](_0x5ef154(0xcb)))return MODEL_FACTORS[_0x5ef154(0xcb)];if(_0x1432f5['includes'](_0x5ef154(0xd2)))return MODEL_FACTORS[_0x5ef154(0xd2)];if(_0x1432f5[_0x5ef154(0xd4)](_0x5ef154(0xc5)))return MODEL_FACTORS['opus'];return MODEL_FACTORS[_0x5ef154(0xcb)];}export function getContextLimit(_0x2e6dc2){const _0x78f57d=a106_0x1f8a,_0x39fbd3=_0x2e6dc2['toLowerCase']();if(_0x39fbd3[_0x78f57d(0xd4)](_0x78f57d(0xcb)))return CONTEXT_LIMITS[_0x78f57d(0xcb)];if(_0x39fbd3['includes'](_0x78f57d(0xd2)))return CONTEXT_LIMITS[_0x78f57d(0xd2)];if(_0x39fbd3[_0x78f57d(0xd4)](_0x78f57d(0xc5)))return CONTEXT_LIMITS[_0x78f57d(0xc5)];return CONTEXT_LIMITS[_0x78f57d(0xc7)];}export function calculateChatUnit(_0x43b4f6,_0x5028a0,_0x5d7094){return(_0x43b4f6+_0x5028a0)/0x1388*_0x5d7094;}export function calculateCredits(_0x5509c5){return _0x5509c5/0x2904;}function a106_0x5456(){const _0x6e46f1=['toLocaleString','toLowerCase','53812WDYxiu','1894326cEdzoG','6EjKKwv','297339mreNqq','4-5','2PotOTc','opus','Sonnet\x204','default','2180EPqVlX','48zBiUAs','Haiku\x204','sonnet','en-US','297207kXruyu','213044AdxNNV','5441140OLUKbQ','Sonnet\x204.5','4.5','haiku','Claude','includes'];a106_0x5456=function(){return _0x6e46f1;};return a106_0x5456();}export function getModelDisplayName(_0x1ff3f8){const _0x1e7b68=a106_0x1f8a,_0xb82c6c=_0x1ff3f8[_0x1e7b68(0xd6)]();if(_0xb82c6c[_0x1e7b68(0xd4)](_0x1e7b68(0xcb))){if(_0xb82c6c[_0x1e7b68(0xd4)](_0x1e7b68(0xc3))||_0xb82c6c[_0x1e7b68(0xd4)](_0x1e7b68(0xd1)))return _0x1e7b68(0xd0);return _0x1e7b68(0xc6);}if(_0xb82c6c[_0x1e7b68(0xd4)](_0x1e7b68(0xd2))){if(_0xb82c6c[_0x1e7b68(0xd4)]('4-5')||_0xb82c6c['includes']('4.5'))return'Haiku\x204.5';return _0x1e7b68(0xca);}if(_0xb82c6c[_0x1e7b68(0xd4)](_0x1e7b68(0xc5))){if(_0xb82c6c[_0x1e7b68(0xd4)](_0x1e7b68(0xc3))||_0xb82c6c[_0x1e7b68(0xd4)]('4.5'))return'Opus\x204.5';return'Opus\x204';}return _0x1e7b68(0xd3);}export function formatTokenCount(_0x3b0dc8){const _0x113b24=a106_0x1f8a;return _0x3b0dc8[_0x113b24(0xd5)](_0x113b24(0xcc));}export function calculateContextPercentage(_0x397425,_0x3770d1){const _0x2eeda3=getContextLimit(_0x3770d1);return Math['round'](_0x397425/_0x2eeda3*0x64);}
1
+ (function(_0x53b0fe,_0x32e8d2){const _0x4c43a5=a108_0xe856,_0x2149cb=_0x53b0fe();while(!![]){try{const _0x5103ab=-parseInt(_0x4c43a5(0xde))/0x1+-parseInt(_0x4c43a5(0xdc))/0x2+parseInt(_0x4c43a5(0xc8))/0x3+parseInt(_0x4c43a5(0xce))/0x4+parseInt(_0x4c43a5(0xd5))/0x5*(parseInt(_0x4c43a5(0xda))/0x6)+parseInt(_0x4c43a5(0xcb))/0x7*(parseInt(_0x4c43a5(0xd9))/0x8)+-parseInt(_0x4c43a5(0xd2))/0x9;if(_0x5103ab===_0x32e8d2)break;else _0x2149cb['push'](_0x2149cb['shift']());}catch(_0x6ddb15){_0x2149cb['push'](_0x2149cb['shift']());}}}(a108_0xd685,0xc41cb));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};function a108_0xd685(){const _0x421c8e=['4.5','Sonnet\x204.5','9937795mndpoR','opus','4-5','5612848IOqYTm','round','toLowerCase','haiku','17135676TolHUG','Haiku\x204','Opus\x204','45Gyjlhz','default','en-US','toLocaleString','8eFAOho','818310BbjbxV','Haiku\x204.5','2409198LRKZyE','includes','1450223ErZQVF','sonnet','3935097XbUDKM'];a108_0xd685=function(){return _0x421c8e;};return a108_0xd685();}function a108_0xe856(_0x102024,_0x3e7610){_0x102024=_0x102024-0xc8;const _0xd68559=a108_0xd685();let _0xe856c3=_0xd68559[_0x102024];return _0xe856c3;}export function getModelFactor(_0x1c68e1){const _0x30cd0b=a108_0xe856,_0x2f337d=_0x1c68e1[_0x30cd0b(0xd0)]();if(MODEL_FACTORS[_0x2f337d])return MODEL_FACTORS[_0x2f337d];if(_0x2f337d['includes'](_0x30cd0b(0xdf)))return MODEL_FACTORS[_0x30cd0b(0xdf)];if(_0x2f337d['includes'](_0x30cd0b(0xd1)))return MODEL_FACTORS[_0x30cd0b(0xd1)];if(_0x2f337d[_0x30cd0b(0xdd)]('opus'))return MODEL_FACTORS[_0x30cd0b(0xcc)];return MODEL_FACTORS[_0x30cd0b(0xdf)];}export function getContextLimit(_0x355aaf){const _0xa7f431=a108_0xe856,_0x2f5410=_0x355aaf['toLowerCase']();if(_0x2f5410[_0xa7f431(0xdd)](_0xa7f431(0xdf)))return CONTEXT_LIMITS[_0xa7f431(0xdf)];if(_0x2f5410['includes'](_0xa7f431(0xd1)))return CONTEXT_LIMITS[_0xa7f431(0xd1)];if(_0x2f5410['includes'](_0xa7f431(0xcc)))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0xa7f431(0xd6)];}export function calculateChatUnit(_0xb77b11,_0x293a30,_0x30d760){return(_0xb77b11+_0x293a30)/0x1388*_0x30d760;}export function calculateCredits(_0x4e7b47){return _0x4e7b47/0x2904;}export function getModelDisplayName(_0x365326){const _0x52f8f6=a108_0xe856,_0x5a2278=_0x365326[_0x52f8f6(0xd0)]();if(_0x5a2278[_0x52f8f6(0xdd)](_0x52f8f6(0xdf))){if(_0x5a2278[_0x52f8f6(0xdd)](_0x52f8f6(0xcd))||_0x5a2278[_0x52f8f6(0xdd)](_0x52f8f6(0xc9)))return _0x52f8f6(0xca);return'Sonnet\x204';}if(_0x5a2278['includes'](_0x52f8f6(0xd1))){if(_0x5a2278[_0x52f8f6(0xdd)](_0x52f8f6(0xcd))||_0x5a2278[_0x52f8f6(0xdd)](_0x52f8f6(0xc9)))return _0x52f8f6(0xdb);return _0x52f8f6(0xd3);}if(_0x5a2278['includes'](_0x52f8f6(0xcc))){if(_0x5a2278[_0x52f8f6(0xdd)](_0x52f8f6(0xcd))||_0x5a2278['includes'](_0x52f8f6(0xc9)))return'Opus\x204.5';return _0x52f8f6(0xd4);}return'Claude';}export function formatTokenCount(_0x52c52b){const _0x5bb199=a108_0xe856;return _0x52c52b[_0x5bb199(0xd8)](_0x5bb199(0xd7));}export function calculateContextPercentage(_0x549e90,_0x2df00e){const _0x1b2c89=a108_0xe856,_0x39ebe1=getContextLimit(_0x2df00e);return Math[_0x1b2c89(0xcf)](_0x549e90/_0x39ebe1*0x64);}
@@ -1 +1 @@
1
- (function(_0x54f08d,_0x3e48d4){const _0x1b3195=a107_0x1b5e,_0x59f904=_0x54f08d();while(!![]){try{const _0x249c14=parseInt(_0x1b3195(0xd0))/0x1+parseInt(_0x1b3195(0xdb))/0x2*(parseInt(_0x1b3195(0xd8))/0x3)+parseInt(_0x1b3195(0xd6))/0x4+parseInt(_0x1b3195(0xca))/0x5*(parseInt(_0x1b3195(0xd4))/0x6)+parseInt(_0x1b3195(0xda))/0x7+-parseInt(_0x1b3195(0xd2))/0x8*(parseInt(_0x1b3195(0xd9))/0x9)+-parseInt(_0x1b3195(0xcd))/0xa*(parseInt(_0x1b3195(0xce))/0xb);if(_0x249c14===_0x3e48d4)break;else _0x59f904['push'](_0x59f904['shift']());}catch(_0x2fa9ac){_0x59f904['push'](_0x59f904['shift']());}}}(a107_0x3175,0x6ff3e));function a107_0x1b5e(_0x50dd56,_0x51d004){_0x50dd56=_0x50dd56-0xca;const _0x3175c2=a107_0x3175();let _0x1b5e73=_0x3175c2[_0x50dd56];return _0x1b5e73;}function a107_0x3175(){const _0x30bc6f=['824082nsXxhE','2ydLjvf','110aMIwuL','.\x20Must\x20be\x20an\x20integer.','Invalid\x20limit\x20value:\x20','13070SZCfYO','7843UyhOOX','.\x20Must\x20be\x20a\x20positive\x20number.','652987vigmYI','Invalid\x20timeout\x20value:\x20','16Oidaxp','.\x20Must\x20be\x20a\x20positive\x20integer.','179520ZwzNsL','.\x20Must\x20be\x20a\x20number.','61884oDlufF','isInteger','1129929AOeohO','1937781YmuRdp'];a107_0x3175=function(){return _0x30bc6f;};return a107_0x3175();}export function validateLimitOption(_0x2baf6e){const _0x3bd8b1=a107_0x1b5e;if(!Number[_0x3bd8b1(0xd7)](_0x2baf6e))return{'isValid':![],'error':_0x3bd8b1(0xcc)+_0x2baf6e+_0x3bd8b1(0xcb)};if(_0x2baf6e<=0x0)return{'isValid':![],'error':_0x3bd8b1(0xcc)+_0x2baf6e+_0x3bd8b1(0xd3)};return{'isValid':!![],'value':_0x2baf6e};}export function validateTimeoutOption(_0x4c6c01,_0x42c4fa=0x1e){const _0x457add=a107_0x1b5e;if(_0x4c6c01===undefined)return{'isValid':!![],'value':_0x42c4fa};const _0x517270=typeof _0x4c6c01==='number'?_0x4c6c01:parseFloat(_0x4c6c01);if(isNaN(_0x517270))return{'isValid':![],'error':_0x457add(0xd1)+_0x4c6c01+_0x457add(0xd5)};if(_0x517270<=0x0)return{'isValid':![],'error':_0x457add(0xd1)+_0x517270+_0x457add(0xcf)};return{'isValid':!![],'value':_0x517270};}
1
+ function a109_0x51f9(){const _0x5d5468=['3753928AZKhSG','10AYFrDG','isInteger','.\x20Must\x20be\x20a\x20positive\x20integer.','number','1831039PktDHY','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20number.','3VlGNeO','336731Cgwsvu','2286ffjBgf','Invalid\x20limit\x20value:\x20','998616UGfPxB','44790MQdwCS','839224cwTqPt','Invalid\x20timeout\x20value:\x20','888298sblFGT'];a109_0x51f9=function(){return _0x5d5468;};return a109_0x51f9();}(function(_0x1d46bd,_0x4548de){const _0x229f0a=a109_0x224f,_0x5a7ef4=_0x1d46bd();while(!![]){try{const _0xf2ad38=parseInt(_0x229f0a(0xbb))/0x1+parseInt(_0x229f0a(0xc2))/0x2+parseInt(_0x229f0a(0xcb))/0x3*(parseInt(_0x229f0a(0xc3))/0x4)+parseInt(_0x229f0a(0xc4))/0x5*(-parseInt(_0x229f0a(0xbe))/0x6)+parseInt(_0x229f0a(0xc8))/0x7+parseInt(_0x229f0a(0xc0))/0x8+parseInt(_0x229f0a(0xbc))/0x9*(-parseInt(_0x229f0a(0xbf))/0xa);if(_0xf2ad38===_0x4548de)break;else _0x5a7ef4['push'](_0x5a7ef4['shift']());}catch(_0x5aa707){_0x5a7ef4['push'](_0x5a7ef4['shift']());}}}(a109_0x51f9,0x96388));export function validateLimitOption(_0x2a275c){const _0x2d8b06=a109_0x224f;if(!Number[_0x2d8b06(0xc5)](_0x2a275c))return{'isValid':![],'error':_0x2d8b06(0xbd)+_0x2a275c+'.\x20Must\x20be\x20an\x20integer.'};if(_0x2a275c<=0x0)return{'isValid':![],'error':_0x2d8b06(0xbd)+_0x2a275c+_0x2d8b06(0xc6)};return{'isValid':!![],'value':_0x2a275c};}function a109_0x224f(_0x1a5c0f,_0x275df2){_0x1a5c0f=_0x1a5c0f-0xbb;const _0x51f948=a109_0x51f9();let _0x224f33=_0x51f948[_0x1a5c0f];return _0x224f33;}export function validateTimeoutOption(_0x5d90bf,_0x7e6f23=0x1e){const _0x3a0e1b=a109_0x224f;if(_0x5d90bf===undefined)return{'isValid':!![],'value':_0x7e6f23};const _0x257ca8=typeof _0x5d90bf===_0x3a0e1b(0xc7)?_0x5d90bf:parseFloat(_0x5d90bf);if(isNaN(_0x257ca8))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x5d90bf+_0x3a0e1b(0xc9)};if(_0x257ca8<=0x0)return{'isValid':![],'error':_0x3a0e1b(0xc1)+_0x257ca8+_0x3a0e1b(0xca)};return{'isValid':!![],'value':_0x257ca8};}
@@ -1 +1 @@
1
- (function(_0x537bc9,_0x4cde46){const _0x472c9c=a108_0x1ba7,_0x1b9532=_0x537bc9();while(!![]){try{const _0x41cc3d=parseInt(_0x472c9c(0xe9))/0x1*(-parseInt(_0x472c9c(0xec))/0x2)+-parseInt(_0x472c9c(0xe8))/0x3+parseInt(_0x472c9c(0xee))/0x4*(-parseInt(_0x472c9c(0xed))/0x5)+-parseInt(_0x472c9c(0xf7))/0x6*(parseInt(_0x472c9c(0xe3))/0x7)+-parseInt(_0x472c9c(0xea))/0x8*(-parseInt(_0x472c9c(0xf1))/0x9)+-parseInt(_0x472c9c(0xf2))/0xa*(-parseInt(_0x472c9c(0xe4))/0xb)+parseInt(_0x472c9c(0xe5))/0xc*(-parseInt(_0x472c9c(0xeb))/0xd);if(_0x41cc3d===_0x4cde46)break;else _0x1b9532['push'](_0x1b9532['shift']());}catch(_0x2eedab){_0x1b9532['push'](_0x1b9532['shift']());}}}(a108_0x4016,0x5dbff));function a108_0x1ba7(_0x5f07a2,_0x2cc282){_0x5f07a2=_0x5f07a2-0xe3;const _0x401692=a108_0x4016();let _0x1ba7a0=_0x401692[_0x5f07a2];return _0x1ba7a0;}import{createServer}from'node:net';export async function isPortAvailable(_0x1ab876){return new Promise(_0xdc5b8b=>{const _0x4c7beb=a108_0x1ba7,_0x1651c6=createServer();_0x1651c6[_0x4c7beb(0xf4)](_0x4c7beb(0xf0),_0x58f308=>{const _0xeb9eb2=_0x4c7beb;_0x58f308[_0xeb9eb2(0xf6)]===_0xeb9eb2(0xe6)?_0xdc5b8b(![]):_0xdc5b8b(![]);}),_0x1651c6['once'](_0x4c7beb(0xf5),()=>{const _0x5d8a4d=_0x4c7beb;_0x1651c6[_0x5d8a4d(0xe7)](),_0xdc5b8b(!![]);}),_0x1651c6['listen'](_0x1ab876,_0x4c7beb(0xf8));});}export async function findAvailablePort(_0x2104e6=0xfa0,_0x5941a2=0x64){const _0x34c040=a108_0x1ba7;for(let _0xf04958=0x0;_0xf04958<_0x5941a2;_0xf04958++){const _0x3d8b34=_0x2104e6+_0xf04958;if(await isPortAvailable(_0x3d8b34))return _0x3d8b34;}throw new Error(_0x34c040(0xef)+_0x2104e6+_0x34c040(0xf3)+(_0x2104e6+_0x5941a2-0x1));}function a108_0x4016(){const _0x4c7ea6=['code','684606pOpQwc','0.0.0.0','7IqXzzv','11NWiPgA','36rtHQsF','EADDRINUSE','close','35895XYvZEy','4iFYHIH','1688GzQKYu','116311VRNLBt','140810hwrFRz','864925LBfiaa','4FAKwbD','No\x20available\x20port\x20found\x20between\x20','error','19611VTdban','5317420uOriVi','\x20and\x20','once','listening'];a108_0x4016=function(){return _0x4c7ea6;};return a108_0x4016();}
1
+ (function(_0x54f405,_0x31807c){const _0x410858=a110_0x472d,_0x555b49=_0x54f405();while(!![]){try{const _0x32036b=-parseInt(_0x410858(0x132))/0x1*(parseInt(_0x410858(0x13f))/0x2)+-parseInt(_0x410858(0x141))/0x3*(parseInt(_0x410858(0x137))/0x4)+-parseInt(_0x410858(0x13b))/0x5+parseInt(_0x410858(0x140))/0x6*(-parseInt(_0x410858(0x13d))/0x7)+parseInt(_0x410858(0x131))/0x8*(parseInt(_0x410858(0x136))/0x9)+parseInt(_0x410858(0x138))/0xa*(-parseInt(_0x410858(0x134))/0xb)+parseInt(_0x410858(0x13e))/0xc;if(_0x32036b===_0x31807c)break;else _0x555b49['push'](_0x555b49['shift']());}catch(_0x18fd73){_0x555b49['push'](_0x555b49['shift']());}}}(a110_0x55f9,0x50a4e));import{createServer}from'node:net';export async function isPortAvailable(_0x4a9745){return new Promise(_0x259810=>{const _0x14b6d8=a110_0x472d,_0x28fb21=createServer();_0x28fb21[_0x14b6d8(0x133)]('error',_0x58b175=>{const _0x1df3e3=_0x14b6d8;_0x58b175[_0x1df3e3(0x13a)]===_0x1df3e3(0x142)?_0x259810(![]):_0x259810(![]);}),_0x28fb21[_0x14b6d8(0x133)](_0x14b6d8(0x135),()=>{const _0xdbc2fe=_0x14b6d8;_0x28fb21[_0xdbc2fe(0x13c)](),_0x259810(!![]);}),_0x28fb21[_0x14b6d8(0x130)](_0x4a9745,_0x14b6d8(0x139));});}function a110_0x472d(_0xad40df,_0x43ae06){_0xad40df=_0xad40df-0x130;const _0x55f939=a110_0x55f9();let _0x472dd7=_0x55f939[_0xad40df];return _0x472dd7;}export async function findAvailablePort(_0x2f5da0=0xfa0,_0x3ad29b=0x64){for(let _0x294d64=0x0;_0x294d64<_0x3ad29b;_0x294d64++){const _0x464704=_0x2f5da0+_0x294d64;if(await isPortAvailable(_0x464704))return _0x464704;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x2f5da0+'\x20and\x20'+(_0x2f5da0+_0x3ad29b-0x1));}function a110_0x55f9(){const _0x30ede6=['EADDRINUSE','listen','8zeheRT','281260vZaNWk','once','5790587NlkVSJ','listening','5261139tkhMbn','393644LFtpxw','10ZSiNmK','0.0.0.0','code','893710Ijjxdg','close','7uagDZb','16344888BMqJFK','2zNrhpO','3188982XaqXVu','3TNsHJW'];a110_0x55f9=function(){return _0x30ede6;};return a110_0x55f9();}
@@ -1 +1 @@
1
- const a109_0x1e3e08=a109_0x4d14;(function(_0x110525,_0xad7a30){const _0x483def=a109_0x4d14,_0x1475f5=_0x110525();while(!![]){try{const _0x5d989f=parseInt(_0x483def(0x1f9))/0x1+-parseInt(_0x483def(0x209))/0x2*(-parseInt(_0x483def(0x212))/0x3)+parseInt(_0x483def(0x1ef))/0x4+-parseInt(_0x483def(0x1fc))/0x5*(-parseInt(_0x483def(0x1f0))/0x6)+parseInt(_0x483def(0x1f6))/0x7+parseInt(_0x483def(0x1f7))/0x8*(-parseInt(_0x483def(0x20f))/0x9)+-parseInt(_0x483def(0x1f2))/0xa;if(_0x5d989f===_0xad7a30)break;else _0x1475f5['push'](_0x1475f5['shift']());}catch(_0xab9702){_0x1475f5['push'](_0x1475f5['shift']());}}}(a109_0x1317,0xecc7b));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a109_0x1e3e08(0x1ea),'sh',a109_0x1e3e08(0x20e),a109_0x1e3e08(0x202),a109_0x1e3e08(0x20b),a109_0x1e3e08(0x1f8),a109_0x1e3e08(0x204),a109_0x1e3e08(0x217),a109_0x1e3e08(0x207),'nu',a109_0x1e3e08(0x1ed),'elvish',a109_0x1e3e08(0x214)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a109_0x1e3e08(0x208),a109_0x1e3e08(0x20a)]);function getProcessInfoWindows(_0x2c60f7){const _0x25bddb=a109_0x1e3e08;try{if(!Number[_0x25bddb(0x215)](_0x2c60f7)||_0x2c60f7<=0x0)return null;const _0x226153=execSync('wmic\x20process\x20where\x20ProcessId='+_0x2c60f7+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x25bddb(0x216),'windowsHide':!![]})[_0x25bddb(0x1f1)](),_0x353bd8=_0x226153[_0x25bddb(0x1ee)]('\x0a')[_0x25bddb(0x203)](_0x562d90=>_0x562d90[_0x25bddb(0x1f1)]());if(_0x353bd8[_0x25bddb(0x201)]<0x2)return null;const _0x311b83=_0x353bd8[_0x353bd8[_0x25bddb(0x201)]-0x1][_0x25bddb(0x1ee)](',');if(_0x311b83[_0x25bddb(0x201)]<0x3)return null;const _0x3a9479=_0x311b83[0x1]?.[_0x25bddb(0x1f1)]()||'',_0x55161a=parseInt(_0x311b83[0x2]?.[_0x25bddb(0x1f1)]()||'0',0xa);if(isNaN(_0x55161a)||!_0x3a9479)return null;return{'pid':_0x2c60f7,'ppid':_0x55161a,'comm':_0x3a9479['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x99bd98){const _0x19b5f8=a109_0x1e3e08;try{const _0x567aca=0x400000;if(!Number[_0x19b5f8(0x215)](_0x99bd98)||_0x99bd98<=0x0||_0x99bd98>_0x567aca)return null;const _0x81540e=execSync(_0x19b5f8(0x211)+_0x99bd98+_0x19b5f8(0x1fa),{'encoding':'utf-8','stdio':_0x19b5f8(0x1ec)})[_0x19b5f8(0x1f1)](),[_0x3badf9,..._0x284b7f]=_0x81540e[_0x19b5f8(0x1ee)](/\s+/),_0x185b02=parseInt(_0x3badf9,0xa),_0xcbcd32=_0x284b7f[_0x19b5f8(0x1fd)]('\x20');if(isNaN(_0x185b02))return null;return{'pid':_0x99bd98,'ppid':_0x185b02,'comm':_0xcbcd32};}catch{return null;}}function getProcessInfo(_0x5e4807){if(process['platform']==='win32')return getProcessInfoWindows(_0x5e4807);return getProcessInfoPosix(_0x5e4807);}function getBasename(_0x2fb217){const _0x5c65e8=a109_0x1e3e08;return _0x2fb217[_0x5c65e8(0x205)](/^-/,'')[_0x5c65e8(0x1ee)]('/')[_0x5c65e8(0x20d)]()?.[_0x5c65e8(0x1ff)]()||'';}function isShell(_0x462782){const _0x3080bf=a109_0x1e3e08;return SHELL_NAMES[_0x3080bf(0x210)](getBasename(_0x462782));}function isEphemeralShellSpawner(_0x28a735){const _0x441b8e=a109_0x1e3e08;return EPHEMERAL_SHELL_SPAWNERS[_0x441b8e(0x210)](getBasename(_0x28a735));}let cachedShellPID;function findShellPID(){const _0x3eef6c=a109_0x1e3e08;if(process[_0x3eef6c(0x200)]===undefined)return process[_0x3eef6c(0x213)];let _0x535f90=process[_0x3eef6c(0x200)];const _0x214abe=0xa;let _0x184883=0x0;while(_0x184883<_0x214abe){const _0x48d7fa=getProcessInfo(_0x535f90);if(!_0x48d7fa)break;if(isShell(_0x48d7fa[_0x3eef6c(0x1f3)])){const _0x3f9e39=getProcessInfo(_0x48d7fa[_0x3eef6c(0x200)]);if(_0x3f9e39&&isEphemeralShellSpawner(_0x3f9e39[_0x3eef6c(0x1f3)])){_0x535f90=_0x48d7fa[_0x3eef6c(0x200)],_0x184883++;continue;}return _0x48d7fa['pid'];}if(_0x48d7fa[_0x3eef6c(0x200)]===0x0||_0x48d7fa[_0x3eef6c(0x200)]===0x1){if(isShell(_0x48d7fa['comm']))return _0x48d7fa['pid'];break;}_0x535f90=_0x48d7fa['ppid'],_0x184883++;}return process[_0x3eef6c(0x200)]!==undefined?process[_0x3eef6c(0x200)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x3db059){if(!Number['isInteger'](_0x3db059)||_0x3db059<=0x0)return![];try{return process['kill'](_0x3db059,0x0),!![];}catch{return![];}}function a109_0x4d14(_0x3dbb68,_0x4fa301){_0x3dbb68=_0x3dbb68-0x1ea;const _0x131779=a109_0x1317();let _0x4d14ef=_0x131779[_0x3dbb68];return _0x4d14ef;}export function openBrowser(_0x20b672){const _0x281b09=a109_0x1e3e08,_0x520e62=process['platform'],_0x2b8bee=_0x520e62===_0x281b09(0x1f5)?_0x281b09(0x20c):_0x520e62===_0x281b09(0x1eb)?_0x281b09(0x1f4):_0x281b09(0x206);spawn(_0x2b8bee,[_0x20b672],{'detached':!![],'stdio':_0x281b09(0x1fb)})[_0x281b09(0x1fe)]();}function a109_0x1317(){const _0x3d7ec5=['ion','split','6154848PyOigB','162pbqVpg','trim','38279120shVgYn','comm','start','darwin','9379909RZsGOJ','8SEvyEx','csh','1142162iprGtR','\x20-o\x20ppid=,comm=','ignore','45enzcoQ','join','unref','toLowerCase','ppid','length','ksh','filter','dash','replace','xdg-open','powershell','code','2YyHSpn','cursor','tcsh','open','pop','fish','8238834CELwvT','has','ps\x20-p\x20','5076255cYayAf','pid','xonsh','isInteger','utf-8','pwsh','zsh','win32','pipe'];a109_0x1317=function(){return _0x3d7ec5;};return a109_0x1317();}
1
+ const a111_0x3c3f82=a111_0xadae;function a111_0x3542(){const _0x16791f=['ignore','unref','has','powershell','wmic\x20process\x20where\x20ProcessId=','length','cursor','\x20-o\x20ppid=,comm=','pipe','137487kGcCAm','darwin','split','utf-8','pop','ksh','trim','elvish','8403795pFCFPs','replace','14259110iJsoKo','win32','1209060IVkaQG','csh','ps\x20-p\x20','claude','dash','\x20get\x20ParentProcessId,Name\x20/format:csv','4350485xFJcJt','open','platform','toLowerCase','795810OaPKtb','5OOBrgN','filter','xdg-open','zsh','ppid','tcsh','ion','329456mEQBjl','4NJfnzR','join','pid','code','xonsh','pwsh','comm','328tQYUAr','isInteger'];a111_0x3542=function(){return _0x16791f;};return a111_0x3542();}(function(_0x4d9bde,_0x49a887){const _0xe6bef6=a111_0xadae,_0x517474=_0x4d9bde();while(!![]){try{const _0x449f20=parseInt(_0xe6bef6(0x1d3))/0x1*(parseInt(_0xe6bef6(0x1a9))/0x2)+parseInt(_0xe6bef6(0x1c8))/0x3+-parseInt(_0xe6bef6(0x1aa))/0x4*(parseInt(_0xe6bef6(0x1ce))/0x5)+-parseInt(_0xe6bef6(0x1d2))/0x6+parseInt(_0xe6bef6(0x1bc))/0x7*(parseInt(_0xe6bef6(0x1b1))/0x8)+parseInt(_0xe6bef6(0x1c4))/0x9+-parseInt(_0xe6bef6(0x1c6))/0xa;if(_0x449f20===_0x49a887)break;else _0x517474['push'](_0x517474['shift']());}catch(_0x5304ed){_0x517474['push'](_0x517474['shift']());}}}(a111_0x3542,0x831dd));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set(['bash',a111_0x3c3f82(0x1d6),'sh','fish',a111_0x3c3f82(0x1c1),a111_0x3c3f82(0x1d8),a111_0x3c3f82(0x1c9),a111_0x3c3f82(0x1cc),a111_0x3c3f82(0x1af),a111_0x3c3f82(0x1b6),'nu',a111_0x3c3f82(0x1a8),a111_0x3c3f82(0x1c3),a111_0x3c3f82(0x1ae)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a111_0x3c3f82(0x1cb),a111_0x3c3f82(0x1ad),a111_0x3c3f82(0x1b9)]);function getProcessInfoWindows(_0x43918c){const _0x15da5b=a111_0x3c3f82;try{if(!Number['isInteger'](_0x43918c)||_0x43918c<=0x0)return null;const _0x527f28=execSync(_0x15da5b(0x1b7)+_0x43918c+_0x15da5b(0x1cd),{'encoding':_0x15da5b(0x1bf),'windowsHide':!![]})[_0x15da5b(0x1c2)](),_0xd84cac=_0x527f28['split']('\x0a')[_0x15da5b(0x1d4)](_0x494953=>_0x494953['trim']());if(_0xd84cac[_0x15da5b(0x1b8)]<0x2)return null;const _0x3cf04b=_0xd84cac[_0xd84cac[_0x15da5b(0x1b8)]-0x1][_0x15da5b(0x1be)](',');if(_0x3cf04b[_0x15da5b(0x1b8)]<0x3)return null;const _0x5ad118=_0x3cf04b[0x1]?.[_0x15da5b(0x1c2)]()||'',_0x568119=parseInt(_0x3cf04b[0x2]?.[_0x15da5b(0x1c2)]()||'0',0xa);if(isNaN(_0x568119)||!_0x5ad118)return null;return{'pid':_0x43918c,'ppid':_0x568119,'comm':_0x5ad118['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x30abbf){const _0x51ed59=a111_0x3c3f82;try{const _0x5574f5=0x400000;if(!Number[_0x51ed59(0x1b2)](_0x30abbf)||_0x30abbf<=0x0||_0x30abbf>_0x5574f5)return null;const _0x3e3c1d=execSync(_0x51ed59(0x1ca)+_0x30abbf+_0x51ed59(0x1ba),{'encoding':_0x51ed59(0x1bf),'stdio':_0x51ed59(0x1bb)})[_0x51ed59(0x1c2)](),[_0x1abb3c,..._0x299d4e]=_0x3e3c1d['split'](/\s+/),_0x5b2a09=parseInt(_0x1abb3c,0xa),_0x47fb43=_0x299d4e[_0x51ed59(0x1ab)]('\x20');if(isNaN(_0x5b2a09))return null;return{'pid':_0x30abbf,'ppid':_0x5b2a09,'comm':_0x47fb43};}catch{return null;}}function getProcessInfo(_0x7a829f){const _0x412f55=a111_0x3c3f82;if(process[_0x412f55(0x1d0)]==='win32')return getProcessInfoWindows(_0x7a829f);return getProcessInfoPosix(_0x7a829f);}function getBasename(_0x4ca066){const _0x48248e=a111_0x3c3f82;return _0x4ca066[_0x48248e(0x1c5)](/^-/,'')[_0x48248e(0x1be)]('/')[_0x48248e(0x1c0)]()?.[_0x48248e(0x1d1)]()||'';}function isShell(_0x200f81){return SHELL_NAMES['has'](getBasename(_0x200f81));}function isEphemeralShellSpawner(_0x477d2a){const _0x4178f8=a111_0x3c3f82;return EPHEMERAL_SHELL_SPAWNERS[_0x4178f8(0x1b5)](getBasename(_0x477d2a));}let cachedShellPID;function findShellPID(){const _0x18ad5c=a111_0x3c3f82;if(process['ppid']===undefined)return process[_0x18ad5c(0x1ac)];let _0xc0ba2b=process['ppid'];const _0x308a=0xa;let _0x4ac9c2=0x0;while(_0x4ac9c2<_0x308a){const _0x5a2e9e=getProcessInfo(_0xc0ba2b);if(!_0x5a2e9e)break;if(isShell(_0x5a2e9e['comm'])){const _0x2eeb54=getProcessInfo(_0x5a2e9e['ppid']);if(_0x2eeb54&&isEphemeralShellSpawner(_0x2eeb54[_0x18ad5c(0x1b0)])){_0xc0ba2b=_0x5a2e9e[_0x18ad5c(0x1d7)],_0x4ac9c2++;continue;}return _0x5a2e9e[_0x18ad5c(0x1ac)];}if(_0x5a2e9e[_0x18ad5c(0x1d7)]===0x0||_0x5a2e9e[_0x18ad5c(0x1d7)]===0x1){if(isShell(_0x5a2e9e['comm']))return _0x5a2e9e['pid'];break;}_0xc0ba2b=_0x5a2e9e[_0x18ad5c(0x1d7)],_0x4ac9c2++;}return process[_0x18ad5c(0x1d7)]!==undefined?process[_0x18ad5c(0x1d7)]:process[_0x18ad5c(0x1ac)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}function a111_0xadae(_0x7805bb,_0x30b4ed){_0x7805bb=_0x7805bb-0x1a8;const _0x354211=a111_0x3542();let _0xadae22=_0x354211[_0x7805bb];return _0xadae22;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x41f761){const _0xf4a339=a111_0x3c3f82;if(!Number[_0xf4a339(0x1b2)](_0x41f761)||_0x41f761<=0x0)return![];try{return process['kill'](_0x41f761,0x0),!![];}catch{return![];}}export function openBrowser(_0x52abb9){const _0x4abc83=a111_0x3c3f82,_0x4d98dc=process['platform'],_0x3fe92b=_0x4d98dc===_0x4abc83(0x1bd)?_0x4abc83(0x1cf):_0x4d98dc===_0x4abc83(0x1c7)?'start':_0x4abc83(0x1d5);spawn(_0x3fe92b,[_0x52abb9],{'detached':!![],'stdio':_0x4abc83(0x1b3)})[_0x4abc83(0x1b4)]();}
@@ -1 +1 @@
1
- (function(_0x4e93f0,_0x2127c2){const _0x5cd84a=a110_0x3327,_0x555376=_0x4e93f0();while(!![]){try{const _0x517883=parseInt(_0x5cd84a(0x1c4))/0x1*(parseInt(_0x5cd84a(0x1cd))/0x2)+parseInt(_0x5cd84a(0x1bb))/0x3+parseInt(_0x5cd84a(0x1d1))/0x4*(-parseInt(_0x5cd84a(0x1c3))/0x5)+-parseInt(_0x5cd84a(0x1c6))/0x6+parseInt(_0x5cd84a(0x1cb))/0x7+parseInt(_0x5cd84a(0x1d2))/0x8*(parseInt(_0x5cd84a(0x1c1))/0x9)+parseInt(_0x5cd84a(0x1ce))/0xa;if(_0x517883===_0x2127c2)break;else _0x555376['push'](_0x555376['shift']());}catch(_0x306f5d){_0x555376['push'](_0x555376['shift']());}}}(a110_0x2759,0x4733f));function a110_0x2759(){const _0x34c2f8=['133275NQGTPq','setRawMode','toLowerCase','resume','\x20[y/N]\x20','\x20(y/N):\x20','58599Ofudwv','utf8','20yVwgNI','1mSFuvl','question','1396188CGdunQ','stderr','data','stdin','exit','2319282pTqqrX','yes','587230bmwRDY','3387840HwSzpg','isTTY','write','542404WqrgQE','72KGPzEB','close','setEncoding'];a110_0x2759=function(){return _0x34c2f8;};return a110_0x2759();}import*as a110_0xb98ba4 from'readline';export async function confirm(_0x432481){const _0x191a1e=a110_0x3327,_0x39a4a0=a110_0xb98ba4['createInterface']({'input':process[_0x191a1e(0x1c9)],'output':process['stdout']});return new Promise(_0xe7aae9=>{const _0x3d4ddf=_0x191a1e;_0x39a4a0[_0x3d4ddf(0x1c5)](_0x432481+_0x3d4ddf(0x1c0),_0x51fe76=>{const _0x5b87f2=_0x3d4ddf;_0x39a4a0[_0x5b87f2(0x1d3)](),_0xe7aae9(_0x51fe76[_0x5b87f2(0x1bd)]()==='y'||_0x51fe76['toLowerCase']()===_0x5b87f2(0x1cc));});});}function a110_0x3327(_0x4b90fe,_0x589adf){_0x4b90fe=_0x4b90fe-0x1bb;const _0x2759e6=a110_0x2759();let _0x3327ab=_0x2759e6[_0x4b90fe];return _0x3327ab;}export async function confirmKey(_0x399096){const _0x359cfa=a110_0x3327;if(!process[_0x359cfa(0x1c9)][_0x359cfa(0x1cf)])return![];return process[_0x359cfa(0x1c7)][_0x359cfa(0x1d0)](_0x399096+_0x359cfa(0x1bf)),new Promise(_0x4a2633=>{const _0x2a7948=_0x359cfa,_0x24a488=process[_0x2a7948(0x1c9)];_0x24a488[_0x2a7948(0x1bc)](!![]),_0x24a488[_0x2a7948(0x1be)](),_0x24a488[_0x2a7948(0x1d4)](_0x2a7948(0x1c2));const _0x22c190=_0x122384=>{const _0x8c4dd1=_0x2a7948;_0x24a488[_0x8c4dd1(0x1bc)](![]),_0x24a488['pause'](),_0x24a488['removeListener'](_0x8c4dd1(0x1c8),_0x22c190);if(_0x122384==='\x1b'){process[_0x8c4dd1(0x1c7)][_0x8c4dd1(0x1d0)]('\x0a'),_0x4a2633(![]);return;}_0x122384==='\x03'&&(process['stderr'][_0x8c4dd1(0x1d0)]('\x0a'),process[_0x8c4dd1(0x1ca)](0x82));if(_0x122384['toLowerCase']()==='y'){process[_0x8c4dd1(0x1c7)][_0x8c4dd1(0x1d0)]('y\x0a'),_0x4a2633(!![]);return;}process[_0x8c4dd1(0x1c7)]['write']('\x0a'),_0x4a2633(![]);};_0x24a488['on'](_0x2a7948(0x1c8),_0x22c190);});}
1
+ (function(_0x12d4b1,_0x3f2547){const _0x5c722a=a112_0x5d8a,_0x158690=_0x12d4b1();while(!![]){try{const _0x16d16b=-parseInt(_0x5c722a(0x8f))/0x1*(parseInt(_0x5c722a(0x88))/0x2)+-parseInt(_0x5c722a(0x8c))/0x3*(-parseInt(_0x5c722a(0x81))/0x4)+-parseInt(_0x5c722a(0x8d))/0x5*(-parseInt(_0x5c722a(0x86))/0x6)+parseInt(_0x5c722a(0x8e))/0x7*(parseInt(_0x5c722a(0x90))/0x8)+-parseInt(_0x5c722a(0x84))/0x9+parseInt(_0x5c722a(0x8b))/0xa*(-parseInt(_0x5c722a(0x8a))/0xb)+parseInt(_0x5c722a(0x79))/0xc*(parseInt(_0x5c722a(0x7f))/0xd);if(_0x16d16b===_0x3f2547)break;else _0x158690['push'](_0x158690['shift']());}catch(_0x29f72e){_0x158690['push'](_0x158690['shift']());}}}(a112_0x308b,0x52b1e));import*as a112_0x3756ff from'readline';export async function confirm(_0x4f76cd){const _0x141a74=a112_0x5d8a,_0xd4de9c=a112_0x3756ff['createInterface']({'input':process[_0x141a74(0x76)],'output':process[_0x141a74(0x87)]});return new Promise(_0x1ce53f=>{const _0x2a700b=_0x141a74;_0xd4de9c[_0x2a700b(0x82)](_0x4f76cd+'\x20(y/N):\x20',_0x530a32=>{const _0x586718=_0x2a700b;_0xd4de9c[_0x586718(0x7e)](),_0x1ce53f(_0x530a32['toLowerCase']()==='y'||_0x530a32[_0x586718(0x80)]()===_0x586718(0x7a));});});}function a112_0x308b(){const _0x2b80df=['\x20[y/N]\x20','1698258jQZiTJ','stdout','38ITEmvi','stderr','11wtIZcp','5767570lHwwsR','3gQroPs','5DNvBuy','56zFTfqb','34891tNKREh','361952CwGwqt','write','stdin','setEncoding','setRawMode','19068HSmPQg','yes','isTTY','pause','utf8','close','9087WqagHS','toLowerCase','1930036foAlAV','question','data','5938299QRyLED'];a112_0x308b=function(){return _0x2b80df;};return a112_0x308b();}function a112_0x5d8a(_0x352605,_0x4ec6c6){_0x352605=_0x352605-0x76;const _0x308b9d=a112_0x308b();let _0x5d8aec=_0x308b9d[_0x352605];return _0x5d8aec;}export async function confirmKey(_0x12fd68){const _0x5ae4aa=a112_0x5d8a;if(!process[_0x5ae4aa(0x76)][_0x5ae4aa(0x7b)])return![];return process[_0x5ae4aa(0x89)][_0x5ae4aa(0x91)](_0x12fd68+_0x5ae4aa(0x85)),new Promise(_0x5399b9=>{const _0x361c48=_0x5ae4aa,_0x39274d=process[_0x361c48(0x76)];_0x39274d[_0x361c48(0x78)](!![]),_0x39274d['resume'](),_0x39274d[_0x361c48(0x77)](_0x361c48(0x7d));const _0x117188=_0xc8a4b7=>{const _0x3f5838=_0x361c48;_0x39274d[_0x3f5838(0x78)](![]),_0x39274d[_0x3f5838(0x7c)](),_0x39274d['removeListener'](_0x3f5838(0x83),_0x117188);if(_0xc8a4b7==='\x1b'){process['stderr']['write']('\x0a'),_0x5399b9(![]);return;}_0xc8a4b7==='\x03'&&(process['stderr'][_0x3f5838(0x91)]('\x0a'),process['exit'](0x82));if(_0xc8a4b7[_0x3f5838(0x80)]()==='y'){process[_0x3f5838(0x89)][_0x3f5838(0x91)]('y\x0a'),_0x5399b9(!![]);return;}process[_0x3f5838(0x89)]['write']('\x0a'),_0x5399b9(![]);};_0x39274d['on'](_0x361c48(0x83),_0x117188);});}
@@ -1 +1 @@
1
- (function(_0x5a44f5,_0x31b6cc){const _0x24b43a=a111_0x10b6,_0x30255f=_0x5a44f5();while(!![]){try{const _0x18887e=-parseInt(_0x24b43a(0x163))/0x1*(parseInt(_0x24b43a(0x165))/0x2)+-parseInt(_0x24b43a(0x13e))/0x3*(parseInt(_0x24b43a(0x149))/0x4)+parseInt(_0x24b43a(0x159))/0x5+parseInt(_0x24b43a(0x14b))/0x6+-parseInt(_0x24b43a(0x156))/0x7+-parseInt(_0x24b43a(0x15a))/0x8*(parseInt(_0x24b43a(0x166))/0x9)+-parseInt(_0x24b43a(0x148))/0xa*(-parseInt(_0x24b43a(0x155))/0xb);if(_0x18887e===_0x31b6cc)break;else _0x30255f['push'](_0x30255f['shift']());}catch(_0x4b933a){_0x30255f['push'](_0x30255f['shift']());}}}(a111_0x4a10,0xaf7d3));import{existsSync,readFileSync}from'fs';import a111_0x257686 from'path';import{parse as a111_0x254431}from'yaml';export function parsePath(_0x4e32e9){const _0x38f54c=a111_0x10b6;if(!_0x4e32e9||_0x4e32e9[_0x38f54c(0x154)]()==='')throw new Error(_0x38f54c(0x141));const _0x14c355=_0x4e32e9[_0x38f54c(0x154)]();if(_0x14c355==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x4e32e9};const _0x43eafb=_0x14c355[_0x38f54c(0x150)]('/')?_0x14c355[_0x38f54c(0x167)](0x1):_0x14c355,_0x1ca769=_0x43eafb[_0x38f54c(0x162)]('/')[_0x38f54c(0x14e)](_0x4764de=>_0x4764de!=='');if(_0x1ca769[_0x38f54c(0x14f)]===0x0)throw new Error(_0x38f54c(0x169));const _0x255d2f=_0x14c355[_0x38f54c(0x150)]('/')||!isRelativePathSegment(_0x1ca769[0x0]);for(const _0x53661a of _0x1ca769){validatePathSegment(_0x53661a);}return{'segments':_0x1ca769,'isAbsolute':_0x255d2f,'raw':_0x4e32e9};}function isRelativePathSegment(_0x1d6031){return _0x1d6031==='.'||_0x1d6031==='..';}function validatePathSegment(_0x5643cc){const _0x5782b7=a111_0x10b6;if(_0x5643cc==='')throw new Error('Path\x20segment\x20cannot\x20be\x20empty');if(_0x5643cc==='.'||_0x5643cc==='..')return;if(/[\x00-\x1F\x7F]/[_0x5782b7(0x15e)](_0x5643cc))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x5643cc);if(_0x5643cc!==_0x5643cc['trim']()){}}export function validatePath(_0x295dfd){const _0x9c65f4=a111_0x10b6;if(_0x295dfd['segments'][_0x9c65f4(0x14f)]===0x0&&!_0x295dfd[_0x9c65f4(0x13f)])throw new Error(_0x9c65f4(0x160));if(_0x295dfd[_0x9c65f4(0x13f)]){if(_0x295dfd['segments'][0x0]==='..')throw new Error(_0x9c65f4(0x147));let _0x2a2c40=0x0;for(const _0x3a5256 of _0x295dfd[_0x9c65f4(0x14d)]){if(_0x3a5256==='..'){if(_0x2a2c40===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x2a2c40--;}else _0x3a5256!=='.'&&_0x2a2c40++;}}}export function joinPaths(_0x50d303,_0x53614a){const _0x25eee0=a111_0x10b6;if(!_0x50d303||_0x50d303==='/')return _0x53614a;if(!_0x53614a||_0x53614a==='.')return _0x50d303;if(_0x53614a['startsWith']('/'))return _0x53614a;const _0x25b227=parsePath(_0x50d303),_0x26f011=parsePath(_0x53614a),_0x573736=[..._0x25b227[_0x25eee0(0x14d)]];for(const _0x1fa694 of _0x26f011[_0x25eee0(0x14d)]){if(_0x1fa694==='.')continue;else{if(_0x1fa694==='..'){if(_0x573736[_0x25eee0(0x14f)]===0x0)throw new Error('Cannot\x20navigate\x20above\x20root');_0x573736['pop']();}else _0x573736[_0x25eee0(0x15b)](_0x1fa694);}}const _0x1c30ec=_0x573736[_0x25eee0(0x164)]('/');return _0x25b227['raw'][_0x25eee0(0x150)]('/')?'/'+_0x1c30ec:_0x1c30ec;}export function normalizePath(_0x199788){const _0x5293e5=a111_0x10b6,_0x2bb0cb=parsePath(_0x199788),_0x51c97d=[];for(const _0x42e374 of _0x2bb0cb['segments']){if(_0x42e374==='.')continue;else{if(_0x42e374==='..'){if(_0x51c97d[_0x5293e5(0x14f)]===0x0){if(_0x2bb0cb['isAbsolute'])throw new Error(_0x5293e5(0x144));_0x51c97d['push']('..');}else _0x51c97d[_0x51c97d[_0x5293e5(0x14f)]-0x1]==='..'?_0x51c97d[_0x5293e5(0x15b)]('..'):_0x51c97d['pop']();}else _0x51c97d['push'](_0x42e374);}}if(_0x51c97d['length']===0x0)return _0x2bb0cb[_0x5293e5(0x13f)]?'/':'.';const _0x46943c=_0x51c97d[_0x5293e5(0x164)]('/');return _0x2bb0cb[_0x5293e5(0x14a)]['startsWith']('/')?'/'+_0x46943c:_0x46943c;}function a111_0x10b6(_0x456657,_0x4d6528){_0x456657=_0x456657-0x13e;const _0x4a10b5=a111_0x4a10();let _0x10b6f=_0x4a10b5[_0x456657];return _0x10b6f;}function a111_0x4a10(){const _0x40cfde=['Relative\x20path\x20cannot\x20be\x20empty','slice','split','11VcLOJj','join','108388bfnvan','9081YwAaGx','substring','name','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','relative','138ilcOXw','isAbsolute','type','Path\x20cannot\x20be\x20empty','journey','dirname','Cannot\x20navigate\x20above\x20root','endsWith','File\x20not\x20found:\x20','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','20jgzUgS','45644ELgeEI','raw','7987044pDYCbG','utf-8','segments','filter','length','startsWith','root','parent_segment','resolve','trim','9178136htOzvZ','9921905YGfGcI','tdx.json','parse','3698170VeGAqD','3824Zintym','push','No\x20tdx.json\x20found\x20for\x20file:\x20','.yaml','test','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'];a111_0x4a10=function(){return _0x40cfde;};return a111_0x4a10();}export function getParentPath(_0x42d898){const _0xdcb544=a111_0x10b6,_0x42ca2c=parsePath(_0x42d898);if(_0x42ca2c[_0xdcb544(0x14d)][_0xdcb544(0x14f)]<=0x1)return'/';const _0x3a6274=_0x42ca2c['segments'][_0xdcb544(0x161)](0x0,-0x1)[_0xdcb544(0x164)]('/');return _0x42ca2c[_0xdcb544(0x14a)][_0xdcb544(0x150)]('/')?'/'+_0x3a6274:_0x3a6274;}export function getBaseName(_0x1258c1){const _0x3ec7bf=a111_0x10b6,_0x5c7c60=parsePath(_0x1258c1);return _0x5c7c60[_0x3ec7bf(0x14d)][_0x5c7c60[_0x3ec7bf(0x14d)]['length']-0x1]||'';}export function isChildPath(_0x59c25c,_0x4e04be){const _0x5adcfb=a111_0x10b6,_0x1c8af5=parsePath(_0x59c25c),_0x1fa515=parsePath(_0x4e04be);if(_0x1c8af5[_0x5adcfb(0x14d)]['length']<=_0x1fa515[_0x5adcfb(0x14d)][_0x5adcfb(0x14f)])return![];for(let _0x202b38=0x0;_0x202b38<_0x1fa515[_0x5adcfb(0x14d)]['length'];_0x202b38++){if(_0x1c8af5[_0x5adcfb(0x14d)][_0x202b38]!==_0x1fa515[_0x5adcfb(0x14d)][_0x202b38])return![];}return!![];}export function splitPath(_0x284970){const _0x4751ec=a111_0x10b6,_0x478e9e=parsePath(_0x284970);if(_0x478e9e[_0x4751ec(0x14d)][_0x4751ec(0x14f)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x478e9e['segments']['length']===0x1)return{'parent':_0x478e9e[_0x4751ec(0x14d)][0x0]};return{'parent':_0x478e9e[_0x4751ec(0x14d)][0x0],'child':_0x478e9e['segments'][_0x4751ec(0x161)](0x1)[_0x4751ec(0x164)]('/')};}export function isYamlFilePath(_0x29e712){const _0x2f75b5=a111_0x10b6;return _0x29e712[_0x2f75b5(0x145)]('.yml')||_0x29e712[_0x2f75b5(0x145)](_0x2f75b5(0x15d));}export function resolveYamlFilePath(_0x2355b1){const _0x335e37=a111_0x10b6,_0x2399ca=a111_0x257686[_0x335e37(0x153)](_0x2355b1);if(!existsSync(_0x2399ca))throw new Error(_0x335e37(0x146)+_0x2355b1);let _0x5ccc5d=a111_0x257686[_0x335e37(0x143)](_0x2399ca),_0x3af187=null,_0x2c92ef=null;const _0xf9df74=a111_0x257686[_0x335e37(0x158)](_0x5ccc5d)[_0x335e37(0x151)];while(_0x5ccc5d!==_0xf9df74){const _0x498eba=a111_0x257686[_0x335e37(0x164)](_0x5ccc5d,_0x335e37(0x157));if(existsSync(_0x498eba)){_0x3af187=_0x498eba,_0x2c92ef=_0x5ccc5d;break;}_0x5ccc5d=a111_0x257686[_0x335e37(0x143)](_0x5ccc5d);}if(!_0x3af187||!_0x2c92ef)throw new Error(_0x335e37(0x15c)+_0x2355b1);const _0x514908=readFileSync(_0x3af187,_0x335e37(0x14c)),_0x3d84f1=JSON[_0x335e37(0x158)](_0x514908),_0x1e8b12=_0x3d84f1[_0x335e37(0x152)];if(!_0x1e8b12)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x4983f8=readFileSync(_0x2399ca,_0x335e37(0x14c)),_0x214464=a111_0x254431(_0x4983f8),_0x3acbd1=_0x214464[_0x335e37(0x168)];if(!_0x3acbd1)throw new Error(_0x335e37(0x15f)+_0x2355b1);const _0x16530b=_0x214464[_0x335e37(0x140)]===_0x335e37(0x142)?'journey':'segment',_0x46de3f=a111_0x257686[_0x335e37(0x16a)](_0x2c92ef,_0x2399ca),_0x2767fb=a111_0x257686[_0x335e37(0x143)](_0x46de3f),_0x57d674=_0x2767fb==='.'?'':_0x2767fb['replace'](/\\/g,'/'),_0x5f319c=_0x57d674?_0x1e8b12+'/'+_0x57d674+'/'+_0x3acbd1:_0x1e8b12+'/'+_0x3acbd1;return{'parentSegment':_0x1e8b12,'segmentName':_0x3acbd1,'folderPath':_0x57d674,'fullPath':_0x5f319c,'resourceType':_0x16530b};}
1
+ (function(_0x48b471,_0x52e384){const _0x40ab77=a113_0xb61a,_0x50c881=_0x48b471();while(!![]){try{const _0xc42ae5=-parseInt(_0x40ab77(0xda))/0x1+parseInt(_0x40ab77(0xe3))/0x2+parseInt(_0x40ab77(0xcf))/0x3*(parseInt(_0x40ab77(0xc9))/0x4)+parseInt(_0x40ab77(0xc5))/0x5*(parseInt(_0x40ab77(0xce))/0x6)+-parseInt(_0x40ab77(0xbf))/0x7+parseInt(_0x40ab77(0xdd))/0x8*(parseInt(_0x40ab77(0xc0))/0x9)+-parseInt(_0x40ab77(0xe2))/0xa;if(_0xc42ae5===_0x52e384)break;else _0x50c881['push'](_0x50c881['shift']());}catch(_0x243026){_0x50c881['push'](_0x50c881['shift']());}}}(a113_0x36d1,0x947eb));import{existsSync,readFileSync}from'fs';import a113_0x2a845b from'path';import{parse as a113_0x333d82}from'yaml';export function parsePath(_0xc6e078){const _0x51f72f=a113_0xb61a;if(!_0xc6e078||_0xc6e078[_0x51f72f(0xc7)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0xc07dad=_0xc6e078[_0x51f72f(0xc7)]();if(_0xc07dad==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xc6e078};const _0xa84b33=_0xc07dad[_0x51f72f(0xde)]('/')?_0xc07dad['substring'](0x1):_0xc07dad,_0x1a9e8a=_0xa84b33[_0x51f72f(0xc1)]('/')['filter'](_0x3fb474=>_0x3fb474!=='');if(_0x1a9e8a[_0x51f72f(0xc4)]===0x0)throw new Error('Path\x20must\x20contain\x20at\x20least\x20one\x20segment');const _0x49aa20=_0xc07dad[_0x51f72f(0xde)]('/')||!isRelativePathSegment(_0x1a9e8a[0x0]);for(const _0x4820fa of _0x1a9e8a){validatePathSegment(_0x4820fa);}return{'segments':_0x1a9e8a,'isAbsolute':_0x49aa20,'raw':_0xc6e078};}function isRelativePathSegment(_0x3d446d){return _0x3d446d==='.'||_0x3d446d==='..';}function validatePathSegment(_0x281559){const _0x21ec19=a113_0xb61a;if(_0x281559==='')throw new Error(_0x21ec19(0xc8));if(_0x281559==='.'||_0x281559==='..')return;if(/[\x00-\x1F\x7F]/[_0x21ec19(0xe4)](_0x281559))throw new Error(_0x21ec19(0xd1)+_0x281559);if(_0x281559!==_0x281559['trim']()){}}export function validatePath(_0x174518){const _0x420311=a113_0xb61a;if(_0x174518[_0x420311(0xdb)][_0x420311(0xc4)]===0x0&&!_0x174518[_0x420311(0xd3)])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x174518[_0x420311(0xd3)]){if(_0x174518['segments'][0x0]==='..')throw new Error(_0x420311(0xd8));let _0x4f79ab=0x0;for(const _0x3cb85f of _0x174518[_0x420311(0xdb)]){if(_0x3cb85f==='..'){if(_0x4f79ab===0x0)throw new Error('Path\x20attempts\x20to\x20navigate\x20above\x20root');_0x4f79ab--;}else _0x3cb85f!=='.'&&_0x4f79ab++;}}}export function joinPaths(_0xef6bc,_0x1d6633){const _0x27313a=a113_0xb61a;if(!_0xef6bc||_0xef6bc==='/')return _0x1d6633;if(!_0x1d6633||_0x1d6633==='.')return _0xef6bc;if(_0x1d6633[_0x27313a(0xde)]('/'))return _0x1d6633;const _0x46145e=parsePath(_0xef6bc),_0x183b32=parsePath(_0x1d6633),_0x4b4edd=[..._0x46145e[_0x27313a(0xdb)]];for(const _0x295105 of _0x183b32[_0x27313a(0xdb)]){if(_0x295105==='.')continue;else{if(_0x295105==='..'){if(_0x4b4edd['length']===0x0)throw new Error(_0x27313a(0xbe));_0x4b4edd['pop']();}else _0x4b4edd[_0x27313a(0xca)](_0x295105);}}const _0x3e0ad5=_0x4b4edd[_0x27313a(0xcb)]('/');return _0x46145e['raw'][_0x27313a(0xde)]('/')?'/'+_0x3e0ad5:_0x3e0ad5;}export function normalizePath(_0x387ed0){const _0xf2c529=a113_0xb61a,_0xfb4dcd=parsePath(_0x387ed0),_0x2cd80d=[];for(const _0x2c8374 of _0xfb4dcd['segments']){if(_0x2c8374==='.')continue;else{if(_0x2c8374==='..'){if(_0x2cd80d[_0xf2c529(0xc4)]===0x0){if(_0xfb4dcd[_0xf2c529(0xd3)])throw new Error(_0xf2c529(0xbe));_0x2cd80d[_0xf2c529(0xca)]('..');}else _0x2cd80d[_0x2cd80d[_0xf2c529(0xc4)]-0x1]==='..'?_0x2cd80d[_0xf2c529(0xca)]('..'):_0x2cd80d[_0xf2c529(0xdf)]();}else _0x2cd80d[_0xf2c529(0xca)](_0x2c8374);}}if(_0x2cd80d[_0xf2c529(0xc4)]===0x0)return _0xfb4dcd['isAbsolute']?'/':'.';const _0x268de4=_0x2cd80d[_0xf2c529(0xcb)]('/');return _0xfb4dcd[_0xf2c529(0xe1)][_0xf2c529(0xde)]('/')?'/'+_0x268de4:_0x268de4;}export function getParentPath(_0x4882c1){const _0x599952=a113_0xb61a,_0xd2a6b2=parsePath(_0x4882c1);if(_0xd2a6b2['segments'][_0x599952(0xc4)]<=0x1)return'/';const _0x544614=_0xd2a6b2[_0x599952(0xdb)]['slice'](0x0,-0x1)[_0x599952(0xcb)]('/');return _0xd2a6b2[_0x599952(0xe1)]['startsWith']('/')?'/'+_0x544614:_0x544614;}export function getBaseName(_0x2741fc){const _0x570e00=a113_0xb61a,_0x2d0862=parsePath(_0x2741fc);return _0x2d0862[_0x570e00(0xdb)][_0x2d0862[_0x570e00(0xdb)][_0x570e00(0xc4)]-0x1]||'';}function a113_0x36d1(){const _0x454495=['Path\x20segment\x20cannot\x20be\x20empty','2393540cWvtgB','push','join','utf-8','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','48htJEwg','3SWBkQy','resolve','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','tdx.json','isAbsolute','replace','endsWith','journey','relative','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','parent_segment','331603vzEpFa','segments','No\x20tdx.json\x20found\x20for\x20file:\x20','256hYcahH','startsWith','pop','dirname','raw','10217880HJXDgf','2005032RPOuvk','test','name','Cannot\x20navigate\x20above\x20root','6139469xOsxMz','257517qAyQqG','split','.yml','type','length','201360qookXl','parse','trim'];a113_0x36d1=function(){return _0x454495;};return a113_0x36d1();}export function isChildPath(_0xc20c66,_0x267f05){const _0xee2bba=a113_0xb61a,_0x240de7=parsePath(_0xc20c66),_0x4d9b75=parsePath(_0x267f05);if(_0x240de7[_0xee2bba(0xdb)]['length']<=_0x4d9b75['segments'][_0xee2bba(0xc4)])return![];for(let _0x321462=0x0;_0x321462<_0x4d9b75[_0xee2bba(0xdb)][_0xee2bba(0xc4)];_0x321462++){if(_0x240de7[_0xee2bba(0xdb)][_0x321462]!==_0x4d9b75['segments'][_0x321462])return![];}return!![];}function a113_0xb61a(_0x5950e9,_0x166569){_0x5950e9=_0x5950e9-0xbd;const _0x36d1e3=a113_0x36d1();let _0xb61a1b=_0x36d1e3[_0x5950e9];return _0xb61a1b;}export function splitPath(_0x154743){const _0x1a47f4=a113_0xb61a,_0x46f59d=parsePath(_0x154743);if(_0x46f59d['segments'][_0x1a47f4(0xc4)]===0x0)throw new Error('Cannot\x20split\x20empty\x20path');if(_0x46f59d['segments'][_0x1a47f4(0xc4)]===0x1)return{'parent':_0x46f59d[_0x1a47f4(0xdb)][0x0]};return{'parent':_0x46f59d[_0x1a47f4(0xdb)][0x0],'child':_0x46f59d[_0x1a47f4(0xdb)]['slice'](0x1)[_0x1a47f4(0xcb)]('/')};}export function isYamlFilePath(_0x21d375){const _0xd31c59=a113_0xb61a;return _0x21d375[_0xd31c59(0xd5)](_0xd31c59(0xc2))||_0x21d375[_0xd31c59(0xd5)]('.yaml');}export function resolveYamlFilePath(_0x4161c1){const _0xd0e9fe=a113_0xb61a,_0x5cdccc=a113_0x2a845b[_0xd0e9fe(0xd0)](_0x4161c1);if(!existsSync(_0x5cdccc))throw new Error('File\x20not\x20found:\x20'+_0x4161c1);let _0xb81140=a113_0x2a845b['dirname'](_0x5cdccc),_0x3bef0e=null,_0x358de1=null;const _0x26c345=a113_0x2a845b[_0xd0e9fe(0xc6)](_0xb81140)['root'];while(_0xb81140!==_0x26c345){const _0x48be24=a113_0x2a845b['join'](_0xb81140,_0xd0e9fe(0xd2));if(existsSync(_0x48be24)){_0x3bef0e=_0x48be24,_0x358de1=_0xb81140;break;}_0xb81140=a113_0x2a845b['dirname'](_0xb81140);}if(!_0x3bef0e||!_0x358de1)throw new Error(_0xd0e9fe(0xdc)+_0x4161c1);const _0x8079f=readFileSync(_0x3bef0e,_0xd0e9fe(0xcc)),_0x17b73a=JSON['parse'](_0x8079f),_0x3c5c19=_0x17b73a[_0xd0e9fe(0xd9)];if(!_0x3c5c19)throw new Error(_0xd0e9fe(0xcd));const _0x6a4aa7=readFileSync(_0x5cdccc,_0xd0e9fe(0xcc)),_0x2bd3c1=a113_0x333d82(_0x6a4aa7),_0x59452e=_0x2bd3c1[_0xd0e9fe(0xbd)];if(!_0x59452e)throw new Error('Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20'+_0x4161c1);const _0x226060=_0x2bd3c1[_0xd0e9fe(0xc3)]===_0xd0e9fe(0xd6)?_0xd0e9fe(0xd6):'segment',_0x9963ba=a113_0x2a845b[_0xd0e9fe(0xd7)](_0x358de1,_0x5cdccc),_0x35683d=a113_0x2a845b[_0xd0e9fe(0xe0)](_0x9963ba),_0x5f3ddc=_0x35683d==='.'?'':_0x35683d[_0xd0e9fe(0xd4)](/\\/g,'/'),_0x635690=_0x5f3ddc?_0x3c5c19+'/'+_0x5f3ddc+'/'+_0x59452e:_0x3c5c19+'/'+_0x59452e;return{'parentSegment':_0x3c5c19,'segmentName':_0x59452e,'folderPath':_0x5f3ddc,'fullPath':_0x635690,'resourceType':_0x226060};}
@@ -1 +1 @@
1
- function a112_0x2535(_0x4c4ab4,_0x4d0a21){_0x4c4ab4=_0x4c4ab4-0x192;const _0x506f4c=a112_0x506f();let _0x2535bb=_0x506f4c[_0x4c4ab4];return _0x2535bb;}(function(_0x133c5d,_0x46550a){const _0x613741=a112_0x2535,_0x45716d=_0x133c5d();while(!![]){try{const _0x50ce9e=parseInt(_0x613741(0x199))/0x1+parseInt(_0x613741(0x19f))/0x2*(parseInt(_0x613741(0x198))/0x3)+-parseInt(_0x613741(0x19d))/0x4*(-parseInt(_0x613741(0x19c))/0x5)+-parseInt(_0x613741(0x197))/0x6+-parseInt(_0x613741(0x196))/0x7+parseInt(_0x613741(0x19a))/0x8*(-parseInt(_0x613741(0x195))/0x9)+parseInt(_0x613741(0x19e))/0xa;if(_0x50ce9e===_0x46550a)break;else _0x45716d['push'](_0x45716d['shift']());}catch(_0x532458){_0x45716d['push'](_0x45716d['shift']());}}}(a112_0x506f,0xe9ee6));function a112_0x506f(){const _0x443d90=['.\x20Child\x20name\x20cannot\x20be\x20empty','7578FnTITm','11353601NRQTWV','772308ZQPrUK','86799YBZZSC','763198jzmsbr','10096NiTqae','indexOf','6647645GrOdrs','4LwPggF','5792660vptbUn','76kiJuVM','Invalid\x20segment\x20reference\x20format:\x20','substring'];a112_0x506f=function(){return _0x443d90;};return a112_0x506f();}export function parseSegmentRef(_0x230ffd){const _0x13bb78=a112_0x2535,_0x3a95e0=_0x230ffd[_0x13bb78(0x19b)]('/');if(_0x3a95e0===-0x1)return{'parentId':_0x230ffd};if(_0x3a95e0===0x0)throw new Error(_0x13bb78(0x192)+_0x230ffd+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x2886ca=_0x230ffd['substring'](0x0,_0x3a95e0),_0x42f20d=_0x230ffd[_0x13bb78(0x193)](_0x3a95e0+0x1);if(_0x42f20d==='')throw new Error(_0x13bb78(0x192)+_0x230ffd+_0x13bb78(0x194));return{'parentId':_0x2886ca,'childId':_0x42f20d};}
1
+ (function(_0x4d3b2e,_0x50abf3){const _0x8a3713=a114_0x5cba,_0xede3e4=_0x4d3b2e();while(!![]){try{const _0x31d6ef=-parseInt(_0x8a3713(0x146))/0x1*(-parseInt(_0x8a3713(0x13e))/0x2)+-parseInt(_0x8a3713(0x142))/0x3+-parseInt(_0x8a3713(0x13c))/0x4*(-parseInt(_0x8a3713(0x13d))/0x5)+parseInt(_0x8a3713(0x145))/0x6+parseInt(_0x8a3713(0x13f))/0x7+-parseInt(_0x8a3713(0x141))/0x8*(-parseInt(_0x8a3713(0x148))/0x9)+-parseInt(_0x8a3713(0x140))/0xa;if(_0x31d6ef===_0x50abf3)break;else _0xede3e4['push'](_0xede3e4['shift']());}catch(_0x335439){_0xede3e4['push'](_0xede3e4['shift']());}}}(a114_0x31e9,0x5c749));function a114_0x31e9(){const _0x1a20ff=['Invalid\x20segment\x20reference\x20format:\x20','2026844SXvZIH','5JLwSFV','4wtysBI','4487483zmhrCj','14185630gIMAnY','4184nMfOHa','727743fQkwFC','.\x20Parent\x20name\x20cannot\x20be\x20empty','indexOf','2843160MMXqxY','61353SodRaB','.\x20Child\x20name\x20cannot\x20be\x20empty','5085WiRyoR'];a114_0x31e9=function(){return _0x1a20ff;};return a114_0x31e9();}function a114_0x5cba(_0xc98238,_0x526f9a){_0xc98238=_0xc98238-0x13c;const _0x31e996=a114_0x31e9();let _0x5cba6c=_0x31e996[_0xc98238];return _0x5cba6c;}export function parseSegmentRef(_0x57f25c){const _0x5a2a56=a114_0x5cba,_0x38f481=_0x57f25c[_0x5a2a56(0x144)]('/');if(_0x38f481===-0x1)return{'parentId':_0x57f25c};if(_0x38f481===0x0)throw new Error(_0x5a2a56(0x149)+_0x57f25c+_0x5a2a56(0x143));const _0x4b0de5=_0x57f25c['substring'](0x0,_0x38f481),_0xc52667=_0x57f25c['substring'](_0x38f481+0x1);if(_0xc52667==='')throw new Error(_0x5a2a56(0x149)+_0x57f25c+_0x5a2a56(0x147));return{'parentId':_0x4b0de5,'childId':_0xc52667};}
@@ -1 +1 @@
1
- (function(_0x5b1967,_0x3f25fe){const _0x419996=a113_0x472f,_0x194dc2=_0x5b1967();while(!![]){try{const _0x49e8c0=-parseInt(_0x419996(0x1e4))/0x1*(-parseInt(_0x419996(0x1d8))/0x2)+-parseInt(_0x419996(0x1e3))/0x3*(-parseInt(_0x419996(0x1cf))/0x4)+parseInt(_0x419996(0x1dd))/0x5+-parseInt(_0x419996(0x1d9))/0x6+-parseInt(_0x419996(0x1d7))/0x7+-parseInt(_0x419996(0x1e5))/0x8+parseInt(_0x419996(0x1de))/0x9*(parseInt(_0x419996(0x1d6))/0xa);if(_0x49e8c0===_0x3f25fe)break;else _0x194dc2['push'](_0x194dc2['shift']());}catch(_0x3a16f1){_0x194dc2['push'](_0x194dc2['shift']());}}}(a113_0x4144,0x406ca));function a113_0x4144(){const _0x172e9b=['257166hEhZxx','13758lpjwYS','1939536ECRdan','extra','stdout','isTTY','2152600erUJZL','80199NpkWFM','\x20[Job\x20ID:\x20','clock','...','phase','138fHiJpy','27eWTLMH','2783504viqLWX','jobId','now','stop','27044vEOzkM','toFixed','floor','cyan','start','replace','text','50CAOGax'];a113_0x4144=function(){return _0x172e9b;};return a113_0x4144();}function a113_0x472f(_0x5d8aff,_0x168bfb){_0x5d8aff=_0x5d8aff-0x1ce;const _0x4144f8=a113_0x4144();let _0x472fcf=_0x4144f8[_0x5d8aff];return _0x472fcf;}import a113_0x287ffa from'ora';export function createCommandSpinner(_0x4b8778,_0x2b8d33={}){const _0x1af7cc=a113_0x472f,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x2b8d33;return a113_0x287ffa({'text':_0x4b8778,'color':_0x1af7cc(0x1d2),'isEnabled':forceEnabled||process[_0x1af7cc(0x1db)][_0x1af7cc(0x1dc)]&&!verbose});}export async function withSpinner(_0x1517fb,_0x2136c9,_0x5e7c2c={}){const _0x4c4e4a=a113_0x472f,_0x1b6487=_0x5e7c2c[_0x4c4e4a(0x1e0)]??(()=>Date[_0x4c4e4a(0x1e7)]()),_0x4feb37=createCommandSpinner(_0x1517fb,_0x5e7c2c);_0x4feb37[_0x4c4e4a(0x1d3)]();const _0x120c27=_0x1b6487();try{const _0xf6f881=await _0x2136c9(),_0x3fa3da=_0x1b6487()-_0x120c27;return _0x4feb37['stop'](),{'data':_0xf6f881,'elapsedMs':_0x3fa3da};}catch(_0x21de4f){_0x4feb37[_0x4c4e4a(0x1ce)]();throw _0x21de4f;}}export async function withQuerySpinner(_0x10ec8f,_0x52588c,_0x1a7484={}){const _0x1577c7=a113_0x472f,_0x22a3c5=_0x1a7484[_0x1577c7(0x1e0)]??(()=>Date['now']()),_0x12edae=_0x1a7484['intervalFactory']??setInterval,_0x2ce560=createCommandSpinner(_0x10ec8f,_0x1a7484);_0x2ce560[_0x1577c7(0x1d3)]();const _0x782075=_0x22a3c5(),_0x5cafe2=_0x10ec8f[_0x1577c7(0x1d4)](_0x1577c7(0x1e1),''),_0x577b9b={},_0x1bcdc4=()=>{const _0x1c0585=_0x1577c7;if(!_0x2ce560['isSpinning'])return;const _0x288647=_0x22a3c5()-_0x782075,_0x419b9b=formatElapsed(_0x288647),_0x4dbc76=_0x577b9b[_0x1c0585(0x1e2)]??_0x5cafe2,_0x3266bf=_0x577b9b[_0x1c0585(0x1e6)]?_0x1c0585(0x1df)+_0x577b9b[_0x1c0585(0x1e6)]+']':'',_0x4471cf=_0x577b9b[_0x1c0585(0x1da)]?'\x20'+_0x577b9b[_0x1c0585(0x1da)]:'';_0x2ce560[_0x1c0585(0x1d5)]=_0x4dbc76+'\x20'+_0x419b9b+_0x4471cf+_0x3266bf;},_0x54da68=_0x12edae(()=>{_0x1bcdc4();},0x3e8),_0x15b6e5={'setPhase':_0x19f920=>{_0x577b9b['phase']=_0x19f920,_0x1bcdc4();},'setJobId':_0x41c9d5=>{const _0x2b3d5b=_0x1577c7;_0x577b9b[_0x2b3d5b(0x1e6)]=_0x41c9d5,_0x1bcdc4();},'setExtra':_0x20d008=>{const _0x597fbe=_0x1577c7;_0x577b9b[_0x597fbe(0x1da)]=_0x20d008,_0x1bcdc4();}};_0x1bcdc4();try{const _0x1a08b4=await _0x52588c(_0x15b6e5),_0x1e2d61=_0x22a3c5()-_0x782075;return{'data':_0x1a08b4,'elapsedMs':_0x1e2d61};}finally{clearInterval(_0x54da68),_0x2ce560[_0x1577c7(0x1ce)]();}}export function formatElapsed(_0x3bbad2){const _0x1e1b41=a113_0x472f,_0x49f32a=Math[_0x1e1b41(0x1d1)](_0x3bbad2/0x3e8);if(_0x49f32a<0x3c)return(_0x3bbad2/0x3e8)[_0x1e1b41(0x1d0)](0x1)+'s';const _0x46ae63=Math['floor'](_0x49f32a/0x3c),_0x40924d=_0x49f32a%0x3c;if(_0x46ae63<0x3c)return _0x46ae63+'m\x20'+_0x40924d+'s';const _0x2759d0=Math[_0x1e1b41(0x1d1)](_0x46ae63/0x3c),_0x2285c1=_0x46ae63%0x3c;return _0x2759d0+'h\x20'+_0x2285c1+'m';}
1
+ (function(_0x1dab73,_0x98f0ea){const _0x1421b9=a115_0x551a,_0x1ef6a8=_0x1dab73();while(!![]){try{const _0x5ab79e=parseInt(_0x1421b9(0x1c2))/0x1+parseInt(_0x1421b9(0x1b4))/0x2+-parseInt(_0x1421b9(0x1bd))/0x3*(-parseInt(_0x1421b9(0x1b6))/0x4)+parseInt(_0x1421b9(0x1c1))/0x5+parseInt(_0x1421b9(0x1b9))/0x6*(parseInt(_0x1421b9(0x1b7))/0x7)+-parseInt(_0x1421b9(0x1c4))/0x8*(parseInt(_0x1421b9(0x1c3))/0x9)+parseInt(_0x1421b9(0x1b8))/0xa*(-parseInt(_0x1421b9(0x1c8))/0xb);if(_0x5ab79e===_0x98f0ea)break;else _0x1ef6a8['push'](_0x1ef6a8['shift']());}catch(_0x583b9d){_0x1ef6a8['push'](_0x1ef6a8['shift']());}}}(a115_0x139d,0x71288));function a115_0x551a(_0xfd9dd8,_0x3f849f){_0xfd9dd8=_0xfd9dd8-0x1ae;const _0x139df0=a115_0x139d();let _0x551a8c=_0x139df0[_0xfd9dd8];return _0x551a8c;}import a115_0xc7f32e from'ora';export function createCommandSpinner(_0x30ed57,_0x7d035f={}){const _0x3424fe=a115_0x551a,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x7d035f;return a115_0xc7f32e({'text':_0x30ed57,'color':_0x3424fe(0x1af),'isEnabled':forceEnabled||process[_0x3424fe(0x1c9)][_0x3424fe(0x1bc)]&&!verbose});}export async function withSpinner(_0x40b334,_0x302d81,_0x33ad58={}){const _0x5738b0=a115_0x551a,_0x4bae19=_0x33ad58['clock']??(()=>Date[_0x5738b0(0x1bf)]()),_0xb768b8=createCommandSpinner(_0x40b334,_0x33ad58);_0xb768b8[_0x5738b0(0x1c5)]();const _0x1967de=_0x4bae19();try{const _0x5d4fcd=await _0x302d81(),_0x369a8b=_0x4bae19()-_0x1967de;return _0xb768b8['stop'](),{'data':_0x5d4fcd,'elapsedMs':_0x369a8b};}catch(_0x47e6dc){_0xb768b8['stop']();throw _0x47e6dc;}}export async function withQuerySpinner(_0x3386b7,_0x19cd8e,_0x3a0d03={}){const _0x346f20=a115_0x551a,_0x7de663=_0x3a0d03[_0x346f20(0x1ae)]??(()=>Date['now']()),_0x21c0c2=_0x3a0d03[_0x346f20(0x1b2)]??setInterval,_0x3e7765=createCommandSpinner(_0x3386b7,_0x3a0d03);_0x3e7765[_0x346f20(0x1c5)]();const _0x5e11bf=_0x7de663(),_0x25fcbd=_0x3386b7['replace'](_0x346f20(0x1c6),''),_0x1e5fb3={},_0x13c41d=()=>{const _0x2dd0d=_0x346f20;if(!_0x3e7765[_0x2dd0d(0x1ba)])return;const _0xef22d5=_0x7de663()-_0x5e11bf,_0x4f7302=formatElapsed(_0xef22d5),_0x67ba9c=_0x1e5fb3[_0x2dd0d(0x1be)]??_0x25fcbd,_0x2397cf=_0x1e5fb3[_0x2dd0d(0x1b1)]?_0x2dd0d(0x1b5)+_0x1e5fb3['jobId']+']':'',_0x4f369f=_0x1e5fb3['extra']?'\x20'+_0x1e5fb3[_0x2dd0d(0x1bb)]:'';_0x3e7765[_0x2dd0d(0x1b3)]=_0x67ba9c+'\x20'+_0x4f7302+_0x4f369f+_0x2397cf;},_0x401881=_0x21c0c2(()=>{_0x13c41d();},0x3e8),_0x3ad6ca={'setPhase':_0x176886=>{const _0x2f65ef=_0x346f20;_0x1e5fb3[_0x2f65ef(0x1be)]=_0x176886,_0x13c41d();},'setJobId':_0x1bfc0e=>{const _0x50eb49=_0x346f20;_0x1e5fb3[_0x50eb49(0x1b1)]=_0x1bfc0e,_0x13c41d();},'setExtra':_0xe684ce=>{const _0x3f6e5b=_0x346f20;_0x1e5fb3[_0x3f6e5b(0x1bb)]=_0xe684ce,_0x13c41d();}};_0x13c41d();try{const _0x3697d6=await _0x19cd8e(_0x3ad6ca),_0x3bf95b=_0x7de663()-_0x5e11bf;return{'data':_0x3697d6,'elapsedMs':_0x3bf95b};}finally{clearInterval(_0x401881),_0x3e7765[_0x346f20(0x1c0)]();}}export function formatElapsed(_0x4cd58){const _0x38212b=a115_0x551a,_0x46d50a=Math[_0x38212b(0x1b0)](_0x4cd58/0x3e8);if(_0x46d50a<0x3c)return(_0x4cd58/0x3e8)[_0x38212b(0x1c7)](0x1)+'s';const _0x21764f=Math['floor'](_0x46d50a/0x3c),_0x187924=_0x46d50a%0x3c;if(_0x21764f<0x3c)return _0x21764f+'m\x20'+_0x187924+'s';const _0x1e2519=Math['floor'](_0x21764f/0x3c),_0x4ef09a=_0x21764f%0x3c;return _0x1e2519+'h\x20'+_0x4ef09a+'m';}function a115_0x139d(){const _0x2e7ccd=['323746PhXeWc','11268BDdhBT','3736UxzqgL','start','...','toFixed','11IMZUCz','stdout','clock','cyan','floor','jobId','intervalFactory','text','830594rbOblY','\x20[Job\x20ID:\x20','660ABnimR','78925MswFYl','19584520BwxxuU','282Nqddbh','isSpinning','extra','isTTY','15861rSVtRi','phase','now','stop','4326545DhNwhI'];a115_0x139d=function(){return _0x2e7ccd;};return a115_0x139d();}
@@ -1 +1 @@
1
- function a114_0x259c(_0x5ad8c9,_0x3ecbd1){_0x5ad8c9=_0x5ad8c9-0xe5;const _0x11e475=a114_0x11e4();let _0x259ccf=_0x11e475[_0x5ad8c9];return _0x259ccf;}(function(_0x50c4c4,_0x242aec){const _0x4c7d41=a114_0x259c,_0x428eaf=_0x50c4c4();while(!![]){try{const _0x4f24e7=-parseInt(_0x4c7d41(0xfb))/0x1+parseInt(_0x4c7d41(0xe7))/0x2*(-parseInt(_0x4c7d41(0xf5))/0x3)+-parseInt(_0x4c7d41(0x101))/0x4*(parseInt(_0x4c7d41(0xeb))/0x5)+parseInt(_0x4c7d41(0xf6))/0x6*(parseInt(_0x4c7d41(0xe8))/0x7)+-parseInt(_0x4c7d41(0xf2))/0x8+-parseInt(_0x4c7d41(0xfe))/0x9*(parseInt(_0x4c7d41(0x104))/0xa)+-parseInt(_0x4c7d41(0xf8))/0xb*(-parseInt(_0x4c7d41(0xef))/0xc);if(_0x4f24e7===_0x242aec)break;else _0x428eaf['push'](_0x428eaf['shift']());}catch(_0x1dd28b){_0x428eaf['push'](_0x428eaf['shift']());}}}(a114_0x11e4,0x2ac61));import{readFileSync}from'fs';import{createInterface}from'readline';export function stripSqlComments(_0x2e1e19){const _0x21ae62=a114_0x259c;let _0x35b788=_0x2e1e19[_0x21ae62(0xfd)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x35b788=_0x35b788[_0x21ae62(0xfd)](/--.*$/gm,''),_0x35b788[_0x21ae62(0xed)]();}function isEscaped(_0x1086ac,_0x526fc1){let _0x162f53=0x0;for(let _0x3d84b8=_0x526fc1-0x1;_0x3d84b8>=0x0&&_0x1086ac[_0x3d84b8]==='\x5c';_0x3d84b8--){_0x162f53++;}return _0x162f53%0x2===0x1;}function a114_0x11e4(){const _0x2f2fab=['1315iYoTHQ','utf-8','trim','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','14799516xTdZNN','Permission\x20denied\x20reading\x20file\x20\x27','File\x20\x27','1578064DCsOkK','message','join','960669SbwhjL','2466eYfmtM','length','11PDWKHu','close','isTTY','345065mhIIzV','push','replace','27xGNLtD','test','toLowerCase','1932RuRGjc','Error\x20reading\x20from\x20stdin:\x20','Content\x20contains\x20no\x20SQL\x20statements','709260SQSygQ','Error\x20reading\x20file\x20\x27','line','stdin\x20','2VGfdDD','2457tCZbZP','filter','\x27\x20not\x20found'];a114_0x11e4=function(){return _0x2f2fab;};return a114_0x11e4();}export function splitSqlStatements(_0x59f7f6){const _0x40e181=a114_0x259c,_0x3bf075=stripSqlComments(_0x59f7f6);if(!_0x3bf075)throw new Error(_0x40e181(0x103));const _0x560c15=[];let _0x39d641='',_0x3863b0=![],_0x233eb6=![],_0x31a744=![];for(let _0x4d58ef=0x0;_0x4d58ef<_0x59f7f6[_0x40e181(0xf7)];_0x4d58ef++){const _0x3a5c64=_0x59f7f6[_0x4d58ef];if(_0x3a5c64==='\x27'&&!isEscaped(_0x59f7f6,_0x4d58ef)&&!_0x233eb6&&!_0x31a744)_0x3863b0=!_0x3863b0;else{if(_0x3a5c64==='\x22'&&!isEscaped(_0x59f7f6,_0x4d58ef)&&!_0x3863b0&&!_0x31a744)_0x233eb6=!_0x233eb6;else _0x3a5c64==='`'&&!isEscaped(_0x59f7f6,_0x4d58ef)&&!_0x3863b0&&!_0x233eb6&&(_0x31a744=!_0x31a744);}if(_0x3a5c64===';'&&!_0x3863b0&&!_0x233eb6&&!_0x31a744){const _0x74053f=_0x39d641[_0x40e181(0xed)]();_0x74053f&&_0x560c15['push'](_0x74053f),_0x39d641='';}else _0x39d641+=_0x3a5c64;}const _0x4ebcbd=_0x39d641['trim']();_0x4ebcbd&&_0x560c15[_0x40e181(0xfc)](_0x4ebcbd);const _0x5b5ec0=_0x560c15['map'](_0x270e6c=>_0x270e6c[_0x40e181(0xed)]())[_0x40e181(0xe9)](_0x2af461=>{const _0xab20b3=_0x40e181,_0x1856be=stripSqlComments(_0x2af461);return _0x1856be[_0xab20b3(0xf7)]>0x0;});if(_0x5b5ec0[_0x40e181(0xf7)]===0x0)throw new Error(_0x40e181(0x103));return _0x5b5ec0;}export function readFileContent(_0x4ee16a){const _0x19c160=a114_0x259c;try{return readFileSync(_0x4ee16a,_0x19c160(0xec));}catch(_0x22f8f2){const _0x41bd70=_0x22f8f2['code'];if(_0x41bd70==='ENOENT')throw new Error(_0x19c160(0xf1)+_0x4ee16a+_0x19c160(0xea));else{if(_0x41bd70==='EACCES')throw new Error(_0x19c160(0xf0)+_0x4ee16a+'\x27');else throw new Error(_0x19c160(0x105)+_0x4ee16a+'\x27:\x20'+_0x22f8f2[_0x19c160(0xf3)]);}}}export function readSqlStatementsFromFile(_0x2dfea0){const _0x26958a=a114_0x259c,_0x346480=readFileContent(_0x2dfea0);try{return splitSqlStatements(_0x346480);}catch(_0x48ee76){throw new Error(_0x26958a(0xf1)+_0x2dfea0+'\x27\x20'+_0x48ee76[_0x26958a(0xf3)][_0x26958a(0x100)]());}}export async function readStdinContent(){const _0x2b6df9=a114_0x259c;if(process['stdin'][_0x2b6df9(0xfa)])throw new Error(_0x2b6df9(0xee));return new Promise((_0x5598c9,_0x5385a2)=>{const _0x1bd02c=_0x2b6df9,_0x123686=[],_0x15bf3e=createInterface({'input':process['stdin'],'terminal':![]});_0x15bf3e['on'](_0x1bd02c(0xe5),_0x373e16=>{const _0x3779dd=_0x1bd02c;_0x123686[_0x3779dd(0xfc)](_0x373e16);}),_0x15bf3e['on'](_0x1bd02c(0xf9),()=>{const _0x55d9fd=_0x1bd02c;_0x5598c9(_0x123686[_0x55d9fd(0xf4)]('\x0a'));}),_0x15bf3e['on']('error',_0x119eff=>{const _0x1308b2=_0x1bd02c;_0x15bf3e['close'](),_0x5385a2(new Error(_0x1308b2(0x102)+_0x119eff[_0x1308b2(0xf3)]));});});}export async function readSqlStatementsFromStdin(){const _0x2f160f=a114_0x259c,_0x4ff6b1=await readStdinContent();try{return splitSqlStatements(_0x4ff6b1);}catch(_0x476890){throw new Error(_0x2f160f(0xe6)+_0x476890[_0x2f160f(0xf3)]['toLowerCase']());}}export function isSqlFilePath(_0x2f0d04){const _0x17abd4=a114_0x259c;return/\w\.sql$/[_0x17abd4(0xff)](_0x2f0d04);}
1
+ function a116_0x1fbb(){const _0x51512c=['1130312ywgKuq','join','trim','File\x20\x27','\x27\x20not\x20found','stdin\x20','close','125ZCaNfy','code','130LemUjV','EACCES','isTTY','3995757sSLARq','filter','length','164468KPHNhN','Content\x20contains\x20no\x20SQL\x20statements','message','push','ENOENT','stdin','14oDNnnC','Permission\x20denied\x20reading\x20file\x20\x27','Error\x20reading\x20file\x20\x27','636450ZOMFIf','replace','No\x20input\x20provided.\x20Pipe\x20SQL\x20to\x20stdin\x20or\x20use\x20a\x20file.\x0aExample:\x20echo\x20\x22SELECT\x201\x22\x20|\x20tdx\x20query\x20-','utf-8','map','test','1312854eSfSxc','446517ejbGio','Error\x20reading\x20from\x20stdin:\x20','\x27:\x20','80211AyXkBO'];a116_0x1fbb=function(){return _0x51512c;};return a116_0x1fbb();}(function(_0x54befd,_0x4e7d51){const _0x23fafd=a116_0x1f18,_0x45f916=_0x54befd();while(!![]){try{const _0x5619a3=-parseInt(_0x23fafd(0x1fd))/0x1+-parseInt(_0x23fafd(0x1f9))/0x2+parseInt(_0x23fafd(0x20a))/0x3+parseInt(_0x23fafd(0x20d))/0x4*(parseInt(_0x23fafd(0x205))/0x5)+parseInt(_0x23fafd(0x216))/0x6+-parseInt(_0x23fafd(0x213))/0x7*(parseInt(_0x23fafd(0x1fe))/0x8)+parseInt(_0x23fafd(0x1fa))/0x9*(-parseInt(_0x23fafd(0x207))/0xa);if(_0x5619a3===_0x4e7d51)break;else _0x45f916['push'](_0x45f916['shift']());}catch(_0x592268){_0x45f916['push'](_0x45f916['shift']());}}}(a116_0x1fbb,0xc3bc6));import{readFileSync}from'fs';import{createInterface}from'readline';function a116_0x1f18(_0x19c6c0,_0x21175d){_0x19c6c0=_0x19c6c0-0x1f4;const _0x1fbb00=a116_0x1fbb();let _0x1f1848=_0x1fbb00[_0x19c6c0];return _0x1f1848;}export function stripSqlComments(_0xdd6356){const _0x449845=a116_0x1f18;let _0x2b9293=_0xdd6356[_0x449845(0x1f4)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x2b9293=_0x2b9293[_0x449845(0x1f4)](/--.*$/gm,''),_0x2b9293[_0x449845(0x200)]();}function isEscaped(_0x1b2034,_0x25d5fb){let _0x331589=0x0;for(let _0xe797a=_0x25d5fb-0x1;_0xe797a>=0x0&&_0x1b2034[_0xe797a]==='\x5c';_0xe797a--){_0x331589++;}return _0x331589%0x2===0x1;}export function splitSqlStatements(_0x566da6){const _0x4923a4=a116_0x1f18,_0x559df9=stripSqlComments(_0x566da6);if(!_0x559df9)throw new Error(_0x4923a4(0x20e));const _0x245b9c=[];let _0x13f808='',_0x2f2896=![],_0x12d52a=![],_0x4e50f5=![];for(let _0x4b94d0=0x0;_0x4b94d0<_0x566da6[_0x4923a4(0x20c)];_0x4b94d0++){const _0x9f856c=_0x566da6[_0x4b94d0];if(_0x9f856c==='\x27'&&!isEscaped(_0x566da6,_0x4b94d0)&&!_0x12d52a&&!_0x4e50f5)_0x2f2896=!_0x2f2896;else{if(_0x9f856c==='\x22'&&!isEscaped(_0x566da6,_0x4b94d0)&&!_0x2f2896&&!_0x4e50f5)_0x12d52a=!_0x12d52a;else _0x9f856c==='`'&&!isEscaped(_0x566da6,_0x4b94d0)&&!_0x2f2896&&!_0x12d52a&&(_0x4e50f5=!_0x4e50f5);}if(_0x9f856c===';'&&!_0x2f2896&&!_0x12d52a&&!_0x4e50f5){const _0x1af6c8=_0x13f808[_0x4923a4(0x200)]();_0x1af6c8&&_0x245b9c['push'](_0x1af6c8),_0x13f808='';}else _0x13f808+=_0x9f856c;}const _0x38fc3b=_0x13f808['trim']();_0x38fc3b&&_0x245b9c['push'](_0x38fc3b);const _0x57c764=_0x245b9c[_0x4923a4(0x1f7)](_0x13bc9e=>_0x13bc9e[_0x4923a4(0x200)]())[_0x4923a4(0x20b)](_0x1b461c=>{const _0x392e26=_0x4923a4,_0x18e35f=stripSqlComments(_0x1b461c);return _0x18e35f[_0x392e26(0x20c)]>0x0;});if(_0x57c764['length']===0x0)throw new Error(_0x4923a4(0x20e));return _0x57c764;}export function readFileContent(_0x3cc8fb){const _0x469c48=a116_0x1f18;try{return readFileSync(_0x3cc8fb,_0x469c48(0x1f6));}catch(_0x555a2d){const _0x149dd1=_0x555a2d[_0x469c48(0x206)];if(_0x149dd1===_0x469c48(0x211))throw new Error(_0x469c48(0x201)+_0x3cc8fb+_0x469c48(0x202));else{if(_0x149dd1===_0x469c48(0x208))throw new Error(_0x469c48(0x214)+_0x3cc8fb+'\x27');else throw new Error(_0x469c48(0x215)+_0x3cc8fb+_0x469c48(0x1fc)+_0x555a2d['message']);}}}export function readSqlStatementsFromFile(_0x542656){const _0x5511da=a116_0x1f18,_0x36fdac=readFileContent(_0x542656);try{return splitSqlStatements(_0x36fdac);}catch(_0x2306c7){throw new Error(_0x5511da(0x201)+_0x542656+'\x27\x20'+_0x2306c7[_0x5511da(0x20f)]['toLowerCase']());}}export async function readStdinContent(){const _0x3d1464=a116_0x1f18;if(process[_0x3d1464(0x212)][_0x3d1464(0x209)])throw new Error(_0x3d1464(0x1f5));return new Promise((_0x428213,_0x40ef98)=>{const _0x4825d2=_0x3d1464,_0x31fb33=[],_0x5a9719=createInterface({'input':process[_0x4825d2(0x212)],'terminal':![]});_0x5a9719['on']('line',_0x49c91a=>{const _0x5203fd=_0x4825d2;_0x31fb33[_0x5203fd(0x210)](_0x49c91a);}),_0x5a9719['on'](_0x4825d2(0x204),()=>{const _0x2b8fc2=_0x4825d2;_0x428213(_0x31fb33[_0x2b8fc2(0x1ff)]('\x0a'));}),_0x5a9719['on']('error',_0x5c12a8=>{const _0x16463d=_0x4825d2;_0x5a9719['close'](),_0x40ef98(new Error(_0x16463d(0x1fb)+_0x5c12a8[_0x16463d(0x20f)]));});});}export async function readSqlStatementsFromStdin(){const _0x5946ce=a116_0x1f18,_0x4bc746=await readStdinContent();try{return splitSqlStatements(_0x4bc746);}catch(_0x1660a9){throw new Error(_0x5946ce(0x203)+_0x1660a9[_0x5946ce(0x20f)]['toLowerCase']());}}export function isSqlFilePath(_0x29d233){const _0x5f26b2=a116_0x1f18;return/\w\.sql$/[_0x5f26b2(0x1f8)](_0x29d233);}
@@ -1 +1 @@
1
- function a115_0x1de6(_0x3c33bf,_0x1467b8){_0x3c33bf=_0x3c33bf-0xde;const _0x570e25=a115_0x570e();let _0x1de66d=_0x570e25[_0x3c33bf];return _0x1de66d;}(function(_0x1c2eba,_0x311c76){const _0x393d53=a115_0x1de6,_0x12874b=_0x1c2eba();while(!![]){try{const _0xba0a91=-parseInt(_0x393d53(0xec))/0x1+-parseInt(_0x393d53(0xf0))/0x2+-parseInt(_0x393d53(0xf4))/0x3*(parseInt(_0x393d53(0xf2))/0x4)+-parseInt(_0x393d53(0xf5))/0x5*(parseInt(_0x393d53(0xf6))/0x6)+parseInt(_0x393d53(0xe2))/0x7+parseInt(_0x393d53(0xe4))/0x8*(parseInt(_0x393d53(0xe0))/0x9)+parseInt(_0x393d53(0xe8))/0xa;if(_0xba0a91===_0x311c76)break;else _0x12874b['push'](_0x12874b['shift']());}catch(_0x3efeb4){_0x12874b['push'](_0x12874b['shift']());}}}(a115_0x570e,0x2c934));export async function*parseSSEStream(_0x5d3092,_0x802332){const _0x483610=a115_0x1de6;if(!_0x5d3092[_0x483610(0xde)])throw new Error('Response\x20body\x20is\x20null');const _0x5b727c=_0x5d3092['body'][_0x483610(0xed)](),_0x474809=new TextDecoder();let _0x481d43='',_0x563ec4={};try{while(!![]){const {done:_0x93bf70,value:_0x1d2095}=await _0x5b727c[_0x483610(0xe1)]();if(_0x93bf70){if(_0x563ec4['data']){_0x802332?.[_0x483610(0xf7)](_0x483610(0xe7)+_0x563ec4[_0x483610(0xeb)]);const _0x239499=parseSSEData(_0x563ec4[_0x483610(0xeb)]);yield _0x239499;}break;}_0x481d43+=_0x474809[_0x483610(0xe5)](_0x1d2095,{'stream':!![]});const _0x4c9cac=_0x481d43[_0x483610(0xea)]('\x0a');_0x481d43=_0x4c9cac[_0x483610(0xdf)]()||'';for(const _0x80fe28 of _0x4c9cac){if(_0x80fe28[_0x483610(0xf1)]()===''){if(_0x563ec4[_0x483610(0xeb)]){_0x802332?.[_0x483610(0xf7)](_0x483610(0xe7)+_0x563ec4['data']);const _0xff1cd2=parseSSEData(_0x563ec4[_0x483610(0xeb)]);yield _0xff1cd2,_0x563ec4={};}continue;}if(_0x80fe28[_0x483610(0xef)](':'))continue;const _0x4f61d4=_0x80fe28[_0x483610(0xee)](':');if(_0x4f61d4===-0x1)continue;const _0x3b067a=_0x80fe28[_0x483610(0xe9)](0x0,_0x4f61d4);let _0x24f929=_0x80fe28[_0x483610(0xe9)](_0x4f61d4+0x1);_0x24f929[_0x483610(0xef)]('\x20')&&(_0x24f929=_0x24f929['slice'](0x1));switch(_0x3b067a){case _0x483610(0xe3):_0x563ec4[_0x483610(0xe3)]=_0x24f929;break;case'data':_0x563ec4['data']=_0x563ec4[_0x483610(0xeb)]?_0x563ec4[_0x483610(0xeb)]+'\x0a'+_0x24f929:_0x24f929;break;case'id':_0x563ec4['id']=_0x24f929;break;}}}}finally{_0x5b727c['releaseLock']();}}function a115_0x570e(){const _0x54bb43=['getReader','indexOf','startsWith','477544TMtStt','trim','12892TJEIgD','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','297rUDStC','15FkqkIX','286734ssrDGb','debug','body','pop','18otEUJc','read','722260RyqhAT','event','1278104tJvFdw','decode','parse','[LLM\x20API\x20SSE]\x20','4992640zYffgO','slice','split','data','38174HSfzZy'];a115_0x570e=function(){return _0x54bb43;};return a115_0x570e();}function parseSSEData(_0x3a8d00){const _0x28ed0e=a115_0x1de6;try{return JSON[_0x28ed0e(0xe6)](_0x3a8d00);}catch(_0x339245){throw new Error(_0x28ed0e(0xf3)+_0x3a8d00,{'cause':_0x339245});}}
1
+ (function(_0x4b85a7,_0x2315c0){const _0x46cacd=a117_0x6922,_0x980d0b=_0x4b85a7();while(!![]){try{const _0x50eb70=-parseInt(_0x46cacd(0x1e2))/0x1*(-parseInt(_0x46cacd(0x1c7))/0x2)+-parseInt(_0x46cacd(0x1e3))/0x3*(-parseInt(_0x46cacd(0x1c8))/0x4)+parseInt(_0x46cacd(0x1d7))/0x5*(-parseInt(_0x46cacd(0x1c6))/0x6)+-parseInt(_0x46cacd(0x1d3))/0x7*(-parseInt(_0x46cacd(0x1d8))/0x8)+-parseInt(_0x46cacd(0x1ce))/0x9*(parseInt(_0x46cacd(0x1de))/0xa)+parseInt(_0x46cacd(0x1d0))/0xb+-parseInt(_0x46cacd(0x1cc))/0xc*(parseInt(_0x46cacd(0x1cb))/0xd);if(_0x50eb70===_0x2315c0)break;else _0x980d0b['push'](_0x980d0b['shift']());}catch(_0xcce84a){_0x980d0b['push'](_0x980d0b['shift']());}}}(a117_0x29df,0x619de));function a117_0x6922(_0x2364b6,_0x9e81f6){_0x2364b6=_0x2364b6-0x1c5;const _0x29dfd0=a117_0x29df();let _0x692244=_0x29dfd0[_0x2364b6];return _0x692244;}export async function*parseSSEStream(_0x4efeff,_0x4168af){const _0x50e9a4=a117_0x6922;if(!_0x4efeff[_0x50e9a4(0x1d9)])throw new Error(_0x50e9a4(0x1d4));const _0x280cb7=_0x4efeff[_0x50e9a4(0x1d9)][_0x50e9a4(0x1d6)](),_0xd0cbd4=new TextDecoder();let _0x1fbc59='',_0x55a970={};try{while(!![]){const {done:_0x5a5872,value:_0x5f148a}=await _0x280cb7[_0x50e9a4(0x1ca)]();if(_0x5a5872){if(_0x55a970[_0x50e9a4(0x1c5)]){_0x4168af?.['debug'](_0x50e9a4(0x1cf)+_0x55a970[_0x50e9a4(0x1c5)]);const _0x5ac991=parseSSEData(_0x55a970[_0x50e9a4(0x1c5)]);yield _0x5ac991;}break;}_0x1fbc59+=_0xd0cbd4[_0x50e9a4(0x1db)](_0x5f148a,{'stream':!![]});const _0x166ef0=_0x1fbc59[_0x50e9a4(0x1cd)]('\x0a');_0x1fbc59=_0x166ef0[_0x50e9a4(0x1da)]()||'';for(const _0x1a784a of _0x166ef0){if(_0x1a784a[_0x50e9a4(0x1dd)]()===''){if(_0x55a970[_0x50e9a4(0x1c5)]){_0x4168af?.[_0x50e9a4(0x1c9)](_0x50e9a4(0x1cf)+_0x55a970['data']);const _0x30e4c5=parseSSEData(_0x55a970[_0x50e9a4(0x1c5)]);yield _0x30e4c5,_0x55a970={};}continue;}if(_0x1a784a[_0x50e9a4(0x1d5)](':'))continue;const _0x1522d3=_0x1a784a[_0x50e9a4(0x1d1)](':');if(_0x1522d3===-0x1)continue;const _0x34ae36=_0x1a784a[_0x50e9a4(0x1d2)](0x0,_0x1522d3);let _0xb23c0f=_0x1a784a[_0x50e9a4(0x1d2)](_0x1522d3+0x1);_0xb23c0f['startsWith']('\x20')&&(_0xb23c0f=_0xb23c0f['slice'](0x1));switch(_0x34ae36){case _0x50e9a4(0x1dc):_0x55a970[_0x50e9a4(0x1dc)]=_0xb23c0f;break;case _0x50e9a4(0x1c5):_0x55a970[_0x50e9a4(0x1c5)]=_0x55a970[_0x50e9a4(0x1c5)]?_0x55a970[_0x50e9a4(0x1c5)]+'\x0a'+_0xb23c0f:_0xb23c0f;break;case'id':_0x55a970['id']=_0xb23c0f;break;}}}}finally{_0x280cb7[_0x50e9a4(0x1e0)]();}}function a117_0x29df(){const _0x150baa=['39LvCQLD','1588188pHUfzv','split','1966869WboQCc','[LLM\x20API\x20SSE]\x20','2181399pXTlsw','indexOf','slice','119vvzztN','Response\x20body\x20is\x20null','startsWith','getReader','9070zukXXx','226864AWOKIL','body','pop','decode','event','trim','30PRiOqa','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','releaseLock','parse','11dbvZPm','3HmKDJa','data','366eyeGpU','105328ezrzrU','1213852OPPKdO','debug','read'];a117_0x29df=function(){return _0x150baa;};return a117_0x29df();}function parseSSEData(_0x4c718e){const _0x3eff70=a117_0x6922;try{return JSON[_0x3eff70(0x1e1)](_0x4c718e);}catch(_0x3d5da2){throw new Error(_0x3eff70(0x1df)+_0x4c718e,{'cause':_0x3d5da2});}}
@@ -1 +1 @@
1
- (function(_0x5375bd,_0x464479){const _0x59300e=a116_0xf392,_0x3b5299=_0x5375bd();while(!![]){try{const _0x57b1a5=-parseInt(_0x59300e(0x174))/0x1+-parseInt(_0x59300e(0x179))/0x2*(parseInt(_0x59300e(0x16f))/0x3)+parseInt(_0x59300e(0x170))/0x4*(parseInt(_0x59300e(0x16c))/0x5)+-parseInt(_0x59300e(0x17a))/0x6+-parseInt(_0x59300e(0x16b))/0x7+parseInt(_0x59300e(0x168))/0x8+parseInt(_0x59300e(0x161))/0x9;if(_0x57b1a5===_0x464479)break;else _0x3b5299['push'](_0x3b5299['shift']());}catch(_0x145a8d){_0x3b5299['push'](_0x3b5299['shift']());}}}(a116_0x4bfe,0x7a142));import a116_0x36e2ef from'string-width';function a116_0x4bfe(){const _0x44cbb5=['toLowerCase','USER','slice','3388SDTUIn','4285338sYOwNt','unknown','replace','8497980IcRJOc','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','substring','length','\x5c$&','USERNAME','random','3257208VDJDli','padStart','repeat','1138725GeDZjG','603460vpToWp','trim','toString','279rktFKM','12NSwOrC','env','Cannot\x20escape\x20empty\x20string\x20literal','test','178973IzGSum','floor'];a116_0x4bfe=function(){return _0x44cbb5;};return a116_0x4bfe();}export function stringWidth(_0x42ebeb){return a116_0x36e2ef(_0x42ebeb);}export function padEnd(_0x590da9,_0x542a0b){const _0x3571b1=a116_0xf392,_0x37daf5=stringWidth(_0x590da9);if(_0x37daf5>=_0x542a0b)return _0x590da9;return _0x590da9+'\x20'[_0x3571b1(0x16a)](_0x542a0b-_0x37daf5);}export function padStart(_0x4ab289,_0x1c476d){const _0x5edf72=a116_0xf392,_0x549779=stringWidth(_0x4ab289);if(_0x549779>=_0x1c476d)return _0x4ab289;return'\x20'[_0x5edf72(0x16a)](_0x1c476d-_0x549779)+_0x4ab289;}export function centerAlign(_0x3edc4b,_0x2b655c){const _0xf6404e=a116_0xf392,_0xc42c49=stringWidth(_0x3edc4b);if(_0xc42c49>_0x2b655c){if(_0x2b655c<=0x1)return'…'[_0xf6404e(0x163)](0x0,_0x2b655c);let _0x38241f=_0x3edc4b;while(stringWidth(_0x38241f+'…')>_0x2b655c){_0x38241f=_0x38241f[_0xf6404e(0x178)](0x0,-0x1);}return _0x38241f+'…';}if(_0xc42c49===_0x2b655c)return _0x3edc4b;const _0x2e7b37=_0x2b655c-_0xc42c49,_0x5cfe40=Math['floor'](_0x2e7b37/0x2),_0x475f7e=_0x2e7b37-_0x5cfe40;return'\x20'[_0xf6404e(0x16a)](_0x5cfe40)+_0x3edc4b+'\x20'[_0xf6404e(0x16a)](_0x475f7e);}export function escapeStringLiteral(_0x30cfbb){const _0xc1c630=a116_0xf392;if(!_0x30cfbb||_0x30cfbb[_0xc1c630(0x16d)]()[_0xc1c630(0x164)]===0x0)throw new Error(_0xc1c630(0x172));const _0x23f7a4=_0x30cfbb['replace'](/'/g,'\x27\x27');return'\x27'+_0x23f7a4+'\x27';}export function globToLike(_0x5086b7){const _0x72efb4=a116_0xf392;let _0x244b3b=_0x5086b7[_0x72efb4(0x160)](/\\/g,'\x5c\x5c')[_0x72efb4(0x160)](/%/g,'\x5c%')[_0x72efb4(0x160)](/_/g,'\x5c_');return _0x244b3b=_0x244b3b[_0x72efb4(0x160)](/\*/g,'%')[_0x72efb4(0x160)](/\?/g,'_'),_0x244b3b;}export function buildLikePattern(_0x183567){const _0x1a2b91=a116_0xf392;if(!_0x183567||_0x183567[_0x1a2b91(0x16d)]()[_0x1a2b91(0x164)]===0x0)throw new Error(_0x1a2b91(0x162));const _0xa6a984=globToLike(_0x183567),_0x51bd89=_0xa6a984[_0x1a2b91(0x160)](/'/g,'\x27\x27');return'\x27'+_0x51bd89+'\x27';}export function matchGlobPattern(_0x502036,_0x398ab1){const _0x20157a=a116_0xf392,_0x59d41f=_0x398ab1[_0x20157a(0x160)](/[.+^${}()|[\]\\]/g,_0x20157a(0x165))[_0x20157a(0x160)](/\*/g,'.*')[_0x20157a(0x160)](/\?/g,'.'),_0x4954ed=new RegExp('^'+_0x59d41f+'$');return _0x4954ed[_0x20157a(0x173)](_0x502036);}export function getSanitizedUsername(){const _0x4c68ae=a116_0xf392,_0x23da0d=process['env'][_0x4c68ae(0x177)]||process[_0x4c68ae(0x171)][_0x4c68ae(0x166)]||_0x4c68ae(0x15f);return _0x23da0d[_0x4c68ae(0x160)](/[^a-zA-Z0-9]/g,'')[_0x4c68ae(0x176)]();}function a116_0xf392(_0x25868c,_0x4232f4){_0x25868c=_0x25868c-0x15f;const _0x4bfeae=a116_0x4bfe();let _0xf3923=_0x4bfeae[_0x25868c];return _0xf3923;}export function generateRandomHex(){const _0x3d6dcc=a116_0xf392,_0x2a1fb6=Math[_0x3d6dcc(0x175)](Math[_0x3d6dcc(0x167)]()*0xfffff);return _0x2a1fb6[_0x3d6dcc(0x16e)](0x10)[_0x3d6dcc(0x169)](0x5,'0');}export function sanitizeFileName(_0x363c17){const _0x1818b3=a116_0xf392;return _0x363c17[_0x1818b3(0x176)]()[_0x1818b3(0x160)](/[/\\:*?"<>|]/g,'-')[_0x1818b3(0x160)](/\s+/g,'-')[_0x1818b3(0x160)](/-+/g,'-')[_0x1818b3(0x160)](/^-|-$/g,'');}
1
+ (function(_0x235c0d,_0x113b5c){const _0x3fc2a6=a118_0x19d9,_0x30fe07=_0x235c0d();while(!![]){try{const _0x54ffc3=-parseInt(_0x3fc2a6(0x6b))/0x1+parseInt(_0x3fc2a6(0x7f))/0x2*(-parseInt(_0x3fc2a6(0x6a))/0x3)+-parseInt(_0x3fc2a6(0x78))/0x4*(-parseInt(_0x3fc2a6(0x7b))/0x5)+parseInt(_0x3fc2a6(0x7a))/0x6+-parseInt(_0x3fc2a6(0x79))/0x7+-parseInt(_0x3fc2a6(0x70))/0x8+-parseInt(_0x3fc2a6(0x6d))/0x9*(-parseInt(_0x3fc2a6(0x76))/0xa);if(_0x54ffc3===_0x113b5c)break;else _0x30fe07['push'](_0x30fe07['shift']());}catch(_0x19ed0e){_0x30fe07['push'](_0x30fe07['shift']());}}}(a118_0x3501,0x77f40));import a118_0x2627d5 from'string-width';export function stringWidth(_0x3bca02){return a118_0x2627d5(_0x3bca02);}export function padEnd(_0x501e3e,_0x4bf685){const _0x4617c9=a118_0x19d9,_0x5e99a7=stringWidth(_0x501e3e);if(_0x5e99a7>=_0x4bf685)return _0x501e3e;return _0x501e3e+'\x20'[_0x4617c9(0x71)](_0x4bf685-_0x5e99a7);}export function padStart(_0x3929ff,_0x9be6a4){const _0x2953e9=a118_0x19d9,_0x4612b9=stringWidth(_0x3929ff);if(_0x4612b9>=_0x9be6a4)return _0x3929ff;return'\x20'[_0x2953e9(0x71)](_0x9be6a4-_0x4612b9)+_0x3929ff;}export function centerAlign(_0x392915,_0x1d525b){const _0x556008=a118_0x19d9,_0x26c0d2=stringWidth(_0x392915);if(_0x26c0d2>_0x1d525b){if(_0x1d525b<=0x1)return'…'[_0x556008(0x6e)](0x0,_0x1d525b);let _0x4e11ad=_0x392915;while(stringWidth(_0x4e11ad+'…')>_0x1d525b){_0x4e11ad=_0x4e11ad['slice'](0x0,-0x1);}return _0x4e11ad+'…';}if(_0x26c0d2===_0x1d525b)return _0x392915;const _0x2ca169=_0x1d525b-_0x26c0d2,_0x1168e7=Math[_0x556008(0x7e)](_0x2ca169/0x2),_0x3c8bc4=_0x2ca169-_0x1168e7;return'\x20'[_0x556008(0x71)](_0x1168e7)+_0x392915+'\x20'['repeat'](_0x3c8bc4);}export function escapeStringLiteral(_0x42ed2e){const _0x7346fa=a118_0x19d9;if(!_0x42ed2e||_0x42ed2e['trim']()[_0x7346fa(0x75)]===0x0)throw new Error(_0x7346fa(0x74));const _0x286b2e=_0x42ed2e[_0x7346fa(0x69)](/'/g,'\x27\x27');return'\x27'+_0x286b2e+'\x27';}export function globToLike(_0x13c1b3){const _0x29df3b=a118_0x19d9;let _0x24e69e=_0x13c1b3[_0x29df3b(0x69)](/\\/g,'\x5c\x5c')[_0x29df3b(0x69)](/%/g,'\x5c%')[_0x29df3b(0x69)](/_/g,'\x5c_');return _0x24e69e=_0x24e69e[_0x29df3b(0x69)](/\*/g,'%')[_0x29df3b(0x69)](/\?/g,'_'),_0x24e69e;}function a118_0x19d9(_0x3e7275,_0x12c7ca){_0x3e7275=_0x3e7275-0x69;const _0x35011a=a118_0x3501();let _0x19d988=_0x35011a[_0x3e7275];return _0x19d988;}export function buildLikePattern(_0x50249a){const _0x43040a=a118_0x19d9;if(!_0x50249a||_0x50249a['trim']()[_0x43040a(0x75)]===0x0)throw new Error(_0x43040a(0x6c));const _0x28cef0=globToLike(_0x50249a),_0x1b619c=_0x28cef0[_0x43040a(0x69)](/'/g,'\x27\x27');return'\x27'+_0x1b619c+'\x27';}export function matchGlobPattern(_0xa97665,_0x827049){const _0x19c7d7=a118_0x19d9,_0xfdca17=_0x827049[_0x19c7d7(0x69)](/[.+^${}()|[\]\\]/g,_0x19c7d7(0x6f))[_0x19c7d7(0x69)](/\*/g,'.*')[_0x19c7d7(0x69)](/\?/g,'.'),_0x4235b4=new RegExp('^'+_0xfdca17+'$');return _0x4235b4['test'](_0xa97665);}export function getSanitizedUsername(){const _0x4acea8=a118_0x19d9,_0x380e75=process['env'][_0x4acea8(0x72)]||process[_0x4acea8(0x77)][_0x4acea8(0x80)]||_0x4acea8(0x73);return _0x380e75[_0x4acea8(0x69)](/[^a-zA-Z0-9]/g,'')[_0x4acea8(0x7d)]();}export function generateRandomHex(){const _0x343e99=a118_0x19d9,_0x2f1ecd=Math[_0x343e99(0x7e)](Math['random']()*0xfffff);return _0x2f1ecd[_0x343e99(0x7c)](0x10)['padStart'](0x5,'0');}function a118_0x3501(){const _0x2be17b=['unknown','Cannot\x20escape\x20empty\x20string\x20literal','length','14778510thDDhT','env','1004XlDHgr','4400326CgGcTI','991500nmuJnf','18955cxmXYk','toString','toLowerCase','floor','2fsWkri','USERNAME','replace','1295661bCeTwf','403186RhVnGV','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','9xBJTnU','substring','\x5c$&','5116984ubhRoZ','repeat','USER'];a118_0x3501=function(){return _0x2be17b;};return a118_0x3501();}export function sanitizeFileName(_0x4f5ff7){const _0x303388=a118_0x19d9;return _0x4f5ff7[_0x303388(0x7d)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x303388(0x69)](/\s+/g,'-')['replace'](/-+/g,'-')[_0x303388(0x69)](/^-|-$/g,'');}
@@ -1 +1 @@
1
- (function(_0x132e81,_0x23b41a){const _0x525958=a117_0x2952,_0x2ee329=_0x132e81();while(!![]){try{const _0x70111e=parseInt(_0x525958(0x8c))/0x1+parseInt(_0x525958(0x8b))/0x2+parseInt(_0x525958(0x8e))/0x3+-parseInt(_0x525958(0x99))/0x4+parseInt(_0x525958(0xa1))/0x5*(-parseInt(_0x525958(0x97))/0x6)+parseInt(_0x525958(0x98))/0x7+parseInt(_0x525958(0x96))/0x8*(parseInt(_0x525958(0x9b))/0x9);if(_0x70111e===_0x23b41a)break;else _0x2ee329['push'](_0x2ee329['shift']());}catch(_0x1403f9){_0x2ee329['push'](_0x2ee329['shift']());}}}(a117_0x236c,0xd3d21));function hasWildcard(_0x103b2c){const _0x15f623=a117_0x2952;return _0x103b2c[_0x15f623(0x9a)]('*')||_0x103b2c['includes']('?');}export function parseTableReference(_0x12c579){const _0x183ea5=a117_0x2952;if(!_0x12c579||_0x12c579['trim']()[_0x183ea5(0x93)]===0x0)throw new Error(_0x183ea5(0x8f));const _0x21c295=_0x12c579[_0x183ea5(0x9f)](),_0x4ebe1c={'original':_0x21c295},_0x1fd3d8=_0x21c295[_0x183ea5(0xa0)]('.');if(_0x1fd3d8[_0x183ea5(0x93)]===0x1){const _0x524955=_0x1fd3d8[0x0];if(!_0x524955)throw new Error(_0x183ea5(0x91));_0x4ebe1c[_0x183ea5(0x92)]=_0x524955;}else{if(_0x1fd3d8[_0x183ea5(0x93)]===0x2){const [_0x59f9a1,_0x1fac53]=_0x1fd3d8;if(!_0x59f9a1)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x1fac53)throw new Error(_0x183ea5(0x94));_0x4ebe1c[_0x183ea5(0x9e)]=_0x59f9a1,_0x4ebe1c[_0x183ea5(0x92)]=_0x1fac53;}else{if(_0x1fd3d8['length']===0x3){const [_0x4b3c6c,_0x1a8c53,_0x337134]=_0x1fd3d8;if(!_0x4b3c6c||!_0x1a8c53||!_0x337134)throw new Error(_0x183ea5(0x9d));_0x4ebe1c[_0x183ea5(0xa2)]=_0x4b3c6c,_0x4ebe1c['database']=_0x1a8c53,_0x4ebe1c[_0x183ea5(0x92)]=_0x337134;}else throw new Error(_0x183ea5(0x90));}}return _0x4ebe1c;}export function formatTableReference(_0x27356b){const _0x4f7a28=a117_0x2952,_0x2be63b=[];return _0x27356b[_0x4f7a28(0xa2)]&&_0x2be63b[_0x4f7a28(0x95)](_0x27356b[_0x4f7a28(0xa2)]),_0x27356b['database']&&_0x2be63b[_0x4f7a28(0x95)](_0x27356b[_0x4f7a28(0x9e)]),_0x27356b[_0x4f7a28(0x92)]&&_0x2be63b['push'](_0x27356b[_0x4f7a28(0x92)]),_0x2be63b['join']('.');}function a117_0x2952(_0x5d9791,_0x3f6e6c){_0x5d9791=_0x5d9791-0x8b;const _0x236cde=a117_0x236c();let _0x2952c5=_0x236cde[_0x5d9791];return _0x2952c5;}function a117_0x236c(){const _0x2dba63=['1270161eWHZrr','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','table','length','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','push','24uQphXw','18SRxTjV','4293443VKovOd','5194024UIUYdM','includes','1047699sJVZYA','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','database','trim','split','1531775gdXunW','catalog','527382Vileju','1435528sQpuig','Table\x20name\x20is\x20required\x20for\x20describe\x20operation'];a117_0x236c=function(){return _0x2dba63;};return a117_0x236c();}export function validateTableListReference(_0x1ad8d3){return undefined;}export function validateTableDescribeReference(_0x325f8b){const _0xac3d9c=a117_0x2952;if(!_0x325f8b['table'])return _0xac3d9c(0x8d);if(_0x325f8b[_0xac3d9c(0x9e)]&&hasWildcard(_0x325f8b[_0xac3d9c(0x9e)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x325f8b[_0xac3d9c(0x92)]))return _0xac3d9c(0x9c);return undefined;}
1
+ function a119_0x2c36(){const _0x5372a7=['catalog','255545tlRmqs','2967gAgraV','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','5222CGPjKh','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','524810dWStyo','66022JpjykI','2mNSwkN','2088KEwfZW','join','table','length','459qZRlbP','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','includes','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','51608LPtyyn','60Dklqav','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','363898qESKHC','trim','796ufxBLV','push','database'];a119_0x2c36=function(){return _0x5372a7;};return a119_0x2c36();}(function(_0x51126b,_0x29fd71){const _0xb3845b=a119_0x4d3f,_0x2bec0c=_0x51126b();while(!![]){try{const _0x536dd3=-parseInt(_0xb3845b(0x9d))/0x1*(-parseInt(_0xb3845b(0x90))/0x2)+parseInt(_0xb3845b(0x97))/0x3*(-parseInt(_0xb3845b(0x92))/0x4)+-parseInt(_0xb3845b(0x96))/0x5+parseInt(_0xb3845b(0x9e))/0x6*(-parseInt(_0xb3845b(0x99))/0x7)+parseInt(_0xb3845b(0xa7))/0x8*(parseInt(_0xb3845b(0xa2))/0x9)+parseInt(_0xb3845b(0x9b))/0xa+parseInt(_0xb3845b(0x9c))/0xb*(-parseInt(_0xb3845b(0xa8))/0xc);if(_0x536dd3===_0x29fd71)break;else _0x2bec0c['push'](_0x2bec0c['shift']());}catch(_0x5347a9){_0x2bec0c['push'](_0x2bec0c['shift']());}}}(a119_0x2c36,0x32be2));function hasWildcard(_0x267a5b){const _0x385553=a119_0x4d3f;return _0x267a5b[_0x385553(0xa5)]('*')||_0x267a5b[_0x385553(0xa5)]('?');}export function parseTableReference(_0x200de2){const _0x1737fc=a119_0x4d3f;if(!_0x200de2||_0x200de2[_0x1737fc(0x91)]()['length']===0x0)throw new Error(_0x1737fc(0xa3));const _0x3180e2=_0x200de2[_0x1737fc(0x91)](),_0x4079df={'original':_0x3180e2},_0x5eee53=_0x3180e2['split']('.');if(_0x5eee53['length']===0x1){const _0x404441=_0x5eee53[0x0];if(!_0x404441)throw new Error(_0x1737fc(0x8e));_0x4079df['table']=_0x404441;}else{if(_0x5eee53[_0x1737fc(0xa1)]===0x2){const [_0x588c90,_0x451226]=_0x5eee53;if(!_0x588c90)throw new Error(_0x1737fc(0x98));if(!_0x451226)throw new Error(_0x1737fc(0xa4));_0x4079df[_0x1737fc(0x94)]=_0x588c90,_0x4079df['table']=_0x451226;}else{if(_0x5eee53[_0x1737fc(0xa1)]===0x3){const [_0x4ef149,_0x3fc445,_0x2bf34a]=_0x5eee53;if(!_0x4ef149||!_0x3fc445||!_0x2bf34a)throw new Error(_0x1737fc(0x9a));_0x4079df[_0x1737fc(0x95)]=_0x4ef149,_0x4079df[_0x1737fc(0x94)]=_0x3fc445,_0x4079df[_0x1737fc(0xa0)]=_0x2bf34a;}else throw new Error(_0x1737fc(0xa6));}}return _0x4079df;}function a119_0x4d3f(_0x2ba090,_0x31b00e){_0x2ba090=_0x2ba090-0x8e;const _0x2c368c=a119_0x2c36();let _0x4d3f05=_0x2c368c[_0x2ba090];return _0x4d3f05;}export function formatTableReference(_0x5ea697){const _0x30c165=a119_0x4d3f,_0x4e2c36=[];return _0x5ea697[_0x30c165(0x95)]&&_0x4e2c36[_0x30c165(0x93)](_0x5ea697[_0x30c165(0x95)]),_0x5ea697[_0x30c165(0x94)]&&_0x4e2c36[_0x30c165(0x93)](_0x5ea697['database']),_0x5ea697[_0x30c165(0xa0)]&&_0x4e2c36[_0x30c165(0x93)](_0x5ea697[_0x30c165(0xa0)]),_0x4e2c36[_0x30c165(0x9f)]('.');}export function validateTableListReference(_0x962d8b){return undefined;}export function validateTableDescribeReference(_0x26b8b6){const _0x5966aa=a119_0x4d3f;if(!_0x26b8b6[_0x5966aa(0xa0)])return _0x5966aa(0x8f);if(_0x26b8b6[_0x5966aa(0x94)]&&hasWildcard(_0x26b8b6[_0x5966aa(0x94)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x26b8b6[_0x5966aa(0xa0)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}
@@ -1 +1 @@
1
- const a118_0xd32284=a118_0x46ab;(function(_0x3a1eec,_0x42ea5a){const _0x4ae77b=a118_0x46ab,_0x171277=_0x3a1eec();while(!![]){try{const _0x432c27=-parseInt(_0x4ae77b(0x148))/0x1+-parseInt(_0x4ae77b(0x14e))/0x2+-parseInt(_0x4ae77b(0x146))/0x3+parseInt(_0x4ae77b(0x13c))/0x4+-parseInt(_0x4ae77b(0x13b))/0x5+-parseInt(_0x4ae77b(0x149))/0x6*(parseInt(_0x4ae77b(0x13a))/0x7)+parseInt(_0x4ae77b(0x14a))/0x8;if(_0x432c27===_0x42ea5a)break;else _0x171277['push'](_0x171277['shift']());}catch(_0x528fb3){_0x171277['push'](_0x171277['shift']());}}}(a118_0x1073,0x25c62));import{existsSync,readFileSync}from'fs';import a118_0x24ef6e from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR='segments';export function findTdxConfigPath(_0x2acdd7=process['cwd']()){const _0x2c07ef=a118_0x46ab;let _0x525a26=a118_0x24ef6e[_0x2c07ef(0x13e)](_0x2acdd7);const _0xf9120e=a118_0x24ef6e[_0x2c07ef(0x13d)](_0x525a26)[_0x2c07ef(0x147)];while(_0x525a26!==_0xf9120e){const _0x420bce=a118_0x24ef6e[_0x2c07ef(0x144)](_0x525a26,TDX_CONFIG_FILE);if(existsSync(_0x420bce))return _0x420bce;_0x525a26=a118_0x24ef6e['dirname'](_0x525a26);}return null;}export function loadTdxConfig(_0x6220f){const _0x57aa64=a118_0x46ab,_0x4c5119=readFileSync(_0x6220f,'utf-8');let _0x1f01e2;try{_0x1f01e2=JSON[_0x57aa64(0x13d)](_0x4c5119);}catch{throw new Error(_0x57aa64(0x143)+_0x6220f);}if(!_0x1f01e2||typeof _0x1f01e2!=='object')throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x5a5ef1=_0x1f01e2;if(!_0x5a5ef1[_0x57aa64(0x145)]||typeof _0x5a5ef1[_0x57aa64(0x145)]!==_0x57aa64(0x14c))throw new Error(_0x57aa64(0x141));return{'parent_segment':_0x5a5ef1[_0x57aa64(0x145)]};}export function findTdxConfig(_0x370c79=process[a118_0xd32284(0x140)]()){const _0x4a9ce2=a118_0xd32284,_0xfc7c3d=findTdxConfigPath(_0x370c79);if(!_0xfc7c3d)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x42832f=loadTdxConfig(_0xfc7c3d),_0xadb939=a118_0x24ef6e[_0x4a9ce2(0x13f)](_0xfc7c3d);return{'config':_0x42832f,'configPath':_0xfc7c3d,'configDir':_0xadb939};}export function getSegmentRootDir(_0x41ec10,_0x53d51f=process[a118_0xd32284(0x140)]()){const _0x4d5408=a118_0xd32284;return a118_0x24ef6e[_0x4d5408(0x144)](_0x53d51f,SEGMENTS_DIR,_0x41ec10);}function a118_0x1073(){const _0x49b07b=['510495rWphES','959684lnzTER','parse','resolve','dirname','cwd','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','replace','Invalid\x20JSON\x20in\x20','join','parent_segment','869223xWhvRt','root','112215CLdHMx','24LQSfmv','4852224rxFmzN','relative','string','stringify','170632OeHfpJ','179123OpRDNX'];a118_0x1073=function(){return _0x49b07b;};return a118_0x1073();}export function getTdxConfigPath(_0x1a8e52,_0x4a30ad=process[a118_0xd32284(0x140)]()){return a118_0x24ef6e['join'](getSegmentRootDir(_0x1a8e52,_0x4a30ad),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x6ec86d,_0x3e4553){const _0x52d3c0=a118_0xd32284,_0x27747d=a118_0x24ef6e[_0x52d3c0(0x13e)](_0x6ec86d),_0x1e7c6a=a118_0x24ef6e[_0x52d3c0(0x14b)](_0x3e4553,_0x27747d);if(_0x1e7c6a['startsWith']('..'))return'';return _0x1e7c6a;}function a118_0x46ab(_0x4c46d6,_0x1e01ad){_0x4c46d6=_0x4c46d6-0x13a;const _0x1073a2=a118_0x1073();let _0x46aba3=_0x1073a2[_0x4c46d6];return _0x46aba3;}export function localPathToTdFolderPath(_0x19ff25){const _0x543716=a118_0xd32284,_0x2f011a=a118_0x24ef6e['dirname'](_0x19ff25);if(_0x2f011a==='.'||_0x2f011a==='')return'';return _0x2f011a[_0x543716(0x142)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x26ce06,_0x1bd87b){const _0x24109a=a118_0xd32284;if(!_0x26ce06)return _0x1bd87b;return a118_0x24ef6e[_0x24109a(0x144)](_0x1bd87b,_0x26ce06);}export function createTdxConfigContent(_0x5b182c){const _0x2f4006=a118_0xd32284,_0x170f5a={'parent_segment':_0x5b182c};return JSON[_0x2f4006(0x14d)](_0x170f5a,null,0x2)+'\x0a';}
1
+ const a120_0x33149d=a120_0x5ef5;(function(_0x3e2826,_0x419843){const _0x917b42=a120_0x5ef5,_0x44a88c=_0x3e2826();while(!![]){try{const _0x4fbfb0=-parseInt(_0x917b42(0x167))/0x1*(-parseInt(_0x917b42(0x16e))/0x2)+-parseInt(_0x917b42(0x17b))/0x3+-parseInt(_0x917b42(0x164))/0x4+parseInt(_0x917b42(0x16f))/0x5*(-parseInt(_0x917b42(0x174))/0x6)+parseInt(_0x917b42(0x16a))/0x7+-parseInt(_0x917b42(0x179))/0x8*(parseInt(_0x917b42(0x16b))/0x9)+-parseInt(_0x917b42(0x166))/0xa*(-parseInt(_0x917b42(0x165))/0xb);if(_0x4fbfb0===_0x419843)break;else _0x44a88c['push'](_0x44a88c['shift']());}catch(_0x26b731){_0x44a88c['push'](_0x44a88c['shift']());}}}(a120_0x7c75,0x6be64));import{existsSync,readFileSync}from'fs';import a120_0x4d6c4a from'path';const TDX_CONFIG_FILE='tdx.json',SEGMENTS_DIR=a120_0x33149d(0x169);export function findTdxConfigPath(_0x42ff9f=process[a120_0x33149d(0x168)]()){const _0x2faa97=a120_0x33149d;let _0xd7563e=a120_0x4d6c4a['resolve'](_0x42ff9f);const _0x556748=a120_0x4d6c4a[_0x2faa97(0x175)](_0xd7563e)[_0x2faa97(0x178)];while(_0xd7563e!==_0x556748){const _0x58f045=a120_0x4d6c4a['join'](_0xd7563e,TDX_CONFIG_FILE);if(existsSync(_0x58f045))return _0x58f045;_0xd7563e=a120_0x4d6c4a[_0x2faa97(0x17d)](_0xd7563e);}return null;}export function loadTdxConfig(_0xa149b2){const _0x3cdaee=a120_0x33149d,_0x50d638=readFileSync(_0xa149b2,_0x3cdaee(0x16c));let _0x5541ee;try{_0x5541ee=JSON[_0x3cdaee(0x175)](_0x50d638);}catch{throw new Error(_0x3cdaee(0x163)+_0xa149b2);}if(!_0x5541ee||typeof _0x5541ee!=='object')throw new Error(_0x3cdaee(0x17a));const _0x145ab7=_0x5541ee;if(!_0x145ab7[_0x3cdaee(0x16d)]||typeof _0x145ab7[_0x3cdaee(0x16d)]!==_0x3cdaee(0x172))throw new Error(_0x3cdaee(0x176));return{'parent_segment':_0x145ab7['parent_segment']};}export function findTdxConfig(_0x16ea93=process[a120_0x33149d(0x168)]()){const _0x4b33be=a120_0x33149d,_0xb176ea=findTdxConfigPath(_0x16ea93);if(!_0xb176ea)throw new Error('No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.');const _0x4896e2=loadTdxConfig(_0xb176ea),_0x4c64cf=a120_0x4d6c4a[_0x4b33be(0x17d)](_0xb176ea);return{'config':_0x4896e2,'configPath':_0xb176ea,'configDir':_0x4c64cf};}export function getSegmentRootDir(_0x190898,_0x54a2b1=process['cwd']()){const _0x1e5110=a120_0x33149d;return a120_0x4d6c4a[_0x1e5110(0x170)](_0x54a2b1,SEGMENTS_DIR,_0x190898);}export function getTdxConfigPath(_0x5ea092,_0x231eb0=process[a120_0x33149d(0x168)]()){const _0x22fc99=a120_0x33149d;return a120_0x4d6c4a[_0x22fc99(0x170)](getSegmentRootDir(_0x5ea092,_0x231eb0),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x3ccccd,_0x3ce8d5){const _0x1c4e56=a120_0x33149d,_0x493ccc=a120_0x4d6c4a[_0x1c4e56(0x171)](_0x3ccccd),_0x303566=a120_0x4d6c4a[_0x1c4e56(0x177)](_0x3ce8d5,_0x493ccc);if(_0x303566[_0x1c4e56(0x17c)]('..'))return'';return _0x303566;}export function localPathToTdFolderPath(_0x35ba37){const _0x44587a=a120_0x4d6c4a['dirname'](_0x35ba37);if(_0x44587a==='.'||_0x44587a==='')return'';return _0x44587a['replace'](/\\/g,'/');}function a120_0x7c75(){const _0x557f50=['root','768344slLXRE','Invalid\x20tdx.json:\x20expected\x20object','1164936aMetTQ','startsWith','dirname','Invalid\x20JSON\x20in\x20','566984xFzrmS','5094177fLXTCV','10FHAztF','227327EDtorP','cwd','segments','5565385GTgAkd','27CGGNZB','utf-8','parent_segment','2MSmIpp','563365AKKaoy','join','resolve','string','stringify','12ikklFJ','parse','Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27parent_segment\x27\x20field','relative'];a120_0x7c75=function(){return _0x557f50;};return a120_0x7c75();}function a120_0x5ef5(_0x51becd,_0x255ef5){_0x51becd=_0x51becd-0x163;const _0x7c757e=a120_0x7c75();let _0x5ef50f=_0x7c757e[_0x51becd];return _0x5ef50f;}export function tdFolderPathToLocalPath(_0x1fef1b,_0x38a431){if(!_0x1fef1b)return _0x38a431;return a120_0x4d6c4a['join'](_0x38a431,_0x1fef1b);}export function createTdxConfigContent(_0x50124d){const _0xcc2166=a120_0x33149d,_0x388d1d={'parent_segment':_0x50124d};return JSON[_0xcc2166(0x173)](_0x388d1d,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a119_0x2a998f=a119_0x5aad;(function(_0x3a5162,_0x128719){const _0x47ca82=a119_0x5aad,_0x3b979b=_0x3a5162();while(!![]){try{const _0x47fe51=-parseInt(_0x47ca82(0xbd))/0x1+parseInt(_0x47ca82(0xee))/0x2*(-parseInt(_0x47ca82(0xdb))/0x3)+-parseInt(_0x47ca82(0xf4))/0x4*(parseInt(_0x47ca82(0xc9))/0x5)+parseInt(_0x47ca82(0xba))/0x6*(parseInt(_0x47ca82(0xf0))/0x7)+-parseInt(_0x47ca82(0xea))/0x8+-parseInt(_0x47ca82(0xc6))/0x9+parseInt(_0x47ca82(0xd6))/0xa*(parseInt(_0x47ca82(0xbf))/0xb);if(_0x47fe51===_0x128719)break;else _0x3b979b['push'](_0x3b979b['shift']());}catch(_0x22077d){_0x3b979b['push'](_0x3b979b['shift']());}}}(a119_0x51fe,0xe97ef));function a119_0x5aad(_0x11c53f,_0x1d5040){_0x11c53f=_0x11c53f-0xb8;const _0x51fea1=a119_0x51fe();let _0x5aadc0=_0x51fea1[_0x11c53f];return _0x5aadc0;}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a119_0x16b4fc from'chalk';function safeStringify(_0x110843){const _0x5b01ef=a119_0x5aad;if(typeof _0x110843===_0x5b01ef(0xbb))return _0x110843;if(_0x110843 instanceof Error)return _0x110843[_0x5b01ef(0xe0)]||_0x110843[_0x5b01ef(0xca)]+':\x20'+_0x110843[_0x5b01ef(0xe3)];try{return JSON[_0x5b01ef(0xe4)](_0x110843,(_0x5a3e37,_0x49fb8d)=>{const _0x53ce39=_0x5b01ef;if(_0x49fb8d instanceof Error)return{'name':_0x49fb8d['name'],'message':_0x49fb8d['message'],'stack':_0x49fb8d[_0x53ce39(0xe0)],'cause':_0x49fb8d[_0x53ce39(0xbc)]};return _0x49fb8d;});}catch{return String(_0x110843);}}function a119_0x51fe(){const _0x240674=['getHours','stack','DEBUG','test','message','stringify','.gz','gray','warn','includes','tdx-','6569736xBjTMC','padStart','WARN','INFO','2iAnxGM','logLevel','105rpegfu','fileOnly','info','getFullYear','1724jiGaYY','error','red','217818dRGrLL','string','cause','1018395elviZo','init','11ILgrXT','write','logStream','.log','tdx.log','logs','abs','965727PEEbuf','log','rotateOldLogs','4615dVirzQ','name','trace','getMinutes','split','.cache','TRACE','Warning:\x20Error\x20writing\x20to\x20tdx.log:','yellow','getTimezoneOffset','toString','getMilliseconds','end','42077910tmpMPS','ERROR','getDate','mtime','debug','4353627SyULTM','Warning:\x20Failed\x20to\x20compress\x20','toISOString','logDir'];a119_0x51fe=function(){return _0x240674;};return a119_0x51fe();}function getTimezoneOffset(){const _0x599818=a119_0x5aad,_0x25cfe=-new Date()[_0x599818(0xd2)](),_0x16195c=Math['floor'](Math[_0x599818(0xc5)](_0x25cfe)/0x3c),_0x2f5121=Math['abs'](_0x25cfe)%0x3c,_0x42010c=_0x25cfe>=0x0?'+':'-';return''+_0x42010c+_0x16195c['toString']()[_0x599818(0xeb)](0x2,'0')+_0x2f5121[_0x599818(0xd3)]()[_0x599818(0xeb)](0x2,'0');}function formatTimestamp(){const _0x405e4f=a119_0x5aad,_0x27764e=new Date(),_0x4358c4=_0x27764e[_0x405e4f(0xf3)](),_0x51727a=(_0x27764e['getMonth']()+0x1)[_0x405e4f(0xd3)]()[_0x405e4f(0xeb)](0x2,'0'),_0x438063=_0x27764e[_0x405e4f(0xd8)]()[_0x405e4f(0xd3)]()[_0x405e4f(0xeb)](0x2,'0'),_0x184f67=_0x27764e[_0x405e4f(0xdf)]()[_0x405e4f(0xd3)]()['padStart'](0x2,'0'),_0x2e6e1b=_0x27764e[_0x405e4f(0xcc)]()['toString']()[_0x405e4f(0xeb)](0x2,'0'),_0x271514=_0x27764e['getSeconds']()['toString']()[_0x405e4f(0xeb)](0x2,'0'),_0x9b3fa6=_0x27764e[_0x405e4f(0xd4)]()[_0x405e4f(0xd3)]()[_0x405e4f(0xeb)](0x3,'0'),_0x75e703=getTimezoneOffset();return _0x4358c4+'-'+_0x51727a+'-'+_0x438063+'\x20'+_0x184f67+':'+_0x2e6e1b+':'+_0x271514+'.'+_0x9b3fa6+_0x75e703;}function formatColoredLogEntry(_0x268e81,_0x53f5b3){const _0x4eaf6c=a119_0x5aad,_0x765bfd=formatTimestamp(),_0x303faa=_0x53f5b3['map'](safeStringify)['join']('\x20'),_0x5850ff=a119_0x16b4fc[_0x4eaf6c(0xe6)](_0x765bfd);let _0x4c29b1;switch(_0x268e81){case _0x4eaf6c(0xf2):_0x4c29b1=a119_0x16b4fc['cyan']('['+_0x268e81+']\x20');break;case _0x4eaf6c(0xe7):_0x4c29b1=a119_0x16b4fc[_0x4eaf6c(0xd1)]('['+_0x268e81+']\x20');break;case _0x4eaf6c(0xb8):_0x4c29b1=a119_0x16b4fc[_0x4eaf6c(0xb9)]('['+_0x268e81+']');break;case _0x4eaf6c(0xda):_0x4c29b1=a119_0x16b4fc[_0x4eaf6c(0xe6)]('['+_0x268e81+']');break;default:_0x4c29b1='['+_0x268e81+']';}return _0x5850ff+'\x20'+_0x4c29b1+'\x20'+_0x303faa;}export var LogLevel;(function(_0x208a01){const _0x5041ba=a119_0x5aad;_0x208a01[_0x208a01[_0x5041ba(0xcf)]=-0x2]=_0x5041ba(0xcf),_0x208a01[_0x208a01[_0x5041ba(0xe1)]=-0x1]=_0x5041ba(0xe1),_0x208a01[_0x208a01[_0x5041ba(0xed)]=0x0]=_0x5041ba(0xed),_0x208a01[_0x208a01[_0x5041ba(0xec)]=0x1]=_0x5041ba(0xec),_0x208a01[_0x208a01[_0x5041ba(0xd7)]=0x2]=_0x5041ba(0xd7);}(LogLevel||(LogLevel={})));export class TDXLogger{[a119_0x2a998f(0xc1)];['logDir'];[a119_0x2a998f(0xef)];[a119_0x2a998f(0xf1)];constructor(_0x56d70c=LogLevel[a119_0x2a998f(0xed)],_0x3d5754=![]){const _0x17f67a=a119_0x2a998f;this[_0x17f67a(0xde)]=join(homedir(),_0x17f67a(0xce),'tdx',_0x17f67a(0xc4)),this[_0x17f67a(0xef)]=_0x56d70c,this[_0x17f67a(0xf1)]=_0x3d5754;}async[a119_0x2a998f(0xbe)](){const _0x2057a8=a119_0x2a998f;try{await mkdir(this[_0x2057a8(0xde)],{'recursive':!![]}),await this[_0x2057a8(0xc8)]();const _0x455353=join(this[_0x2057a8(0xde)],_0x2057a8(0xc3));this[_0x2057a8(0xc1)]=createWriteStream(_0x455353,{'flags':'a'}),this['logStream']['on'](_0x2057a8(0xb8),_0x4acbd5=>{const _0x2346ab=_0x2057a8;console[_0x2346ab(0xb8)](_0x2346ab(0xd0),_0x4acbd5[_0x2346ab(0xe3)]);});}catch(_0x41672a){console[_0x2057a8(0xb8)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0x41672a);}}async[a119_0x2a998f(0xc8)](){const _0x1d1462=a119_0x2a998f;try{const _0xc588b6=await readdir(this[_0x1d1462(0xde)]),_0x6bd302=new Date()['toISOString']()[_0x1d1462(0xcd)]('T')[0x0];if(_0xc588b6[_0x1d1462(0xe8)]('tdx.log')){const _0x2593d6=join(this[_0x1d1462(0xde)],'tdx.log'),_0x4510f6=await stat(_0x2593d6),_0x5cda60=new Date(_0x4510f6[_0x1d1462(0xd9)])[_0x1d1462(0xdd)]()[_0x1d1462(0xcd)]('T')[0x0];if(_0x5cda60<_0x6bd302){const _0x1ff87a=join(this['logDir'],_0x1d1462(0xe9)+_0x5cda60+_0x1d1462(0xc2));await rename(_0x2593d6,_0x1ff87a);}}const _0x20fa30=await readdir(this[_0x1d1462(0xde)]),_0x2a3c1e=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x38b5b5=_0x20fa30['filter'](_0x54aa72=>_0x2a3c1e[_0x1d1462(0xe2)](_0x54aa72));for(const _0x5b884e of _0x38b5b5){const _0x2903aa=join(this['logDir'],_0x5b884e),_0x38b949=join(this[_0x1d1462(0xde)],_0x5b884e+_0x1d1462(0xe5));try{await pipeline(createReadStream(_0x2903aa),createGzip(),createWriteStream(_0x38b949)),await unlink(_0x2903aa);}catch(_0x25035c){console[_0x1d1462(0xb8)](_0x1d1462(0xdc)+_0x5b884e+':',_0x25035c);}}}catch{}}[a119_0x2a998f(0xda)](..._0x41cb8d){const _0x1ea673=a119_0x2a998f;if(this['logLevel']>LogLevel[_0x1ea673(0xe1)])return;const _0x4d491b=formatColoredLogEntry('debug',_0x41cb8d);this[_0x1ea673(0xc1)]?.['write'](_0x4d491b+'\x0a');}[a119_0x2a998f(0xcb)](..._0x1428b6){const _0x1aa491=a119_0x2a998f;if(this[_0x1aa491(0xef)]>LogLevel['TRACE'])return;const _0x325658=formatColoredLogEntry(_0x1aa491(0xcb),_0x1428b6);this[_0x1aa491(0xc1)]?.[_0x1aa491(0xc0)](_0x325658+'\x0a');}[a119_0x2a998f(0xf2)](..._0x5b71bc){const _0x5b2e41=a119_0x2a998f;if(this['logLevel']>LogLevel[_0x5b2e41(0xed)])return;const _0x27a04a=formatColoredLogEntry(_0x5b2e41(0xf2),_0x5b71bc);!this[_0x5b2e41(0xf1)]&&console[_0x5b2e41(0xc7)](_0x27a04a),this[_0x5b2e41(0xc1)]?.['write'](_0x27a04a+'\x0a');}[a119_0x2a998f(0xe7)](..._0x51d353){const _0x334c59=a119_0x2a998f;if(this[_0x334c59(0xef)]>LogLevel[_0x334c59(0xec)])return;const _0x572d1c=formatColoredLogEntry('warn',_0x51d353);!this[_0x334c59(0xf1)]&&console[_0x334c59(0xb8)](_0x572d1c),this[_0x334c59(0xc1)]?.[_0x334c59(0xc0)](_0x572d1c+'\x0a');}[a119_0x2a998f(0xb8)](..._0x111874){const _0x546494=a119_0x2a998f,_0x4e9e3b=formatColoredLogEntry(_0x546494(0xb8),_0x111874);!this[_0x546494(0xf1)]&&console['error'](_0x4e9e3b),this[_0x546494(0xc1)]?.[_0x546494(0xc0)](_0x4e9e3b+'\x0a');}async['close'](){const _0x368604=a119_0x2a998f;return this[_0x368604(0xf2)]('Proxy\x20session\x20ended'),new Promise(_0x376680=>{const _0x1ef839=_0x368604;this[_0x1ef839(0xc1)]?this['logStream'][_0x1ef839(0xd5)](()=>{_0x376680();}):_0x376680();});}['getLogPath'](){const _0x1c1032=a119_0x2a998f;return join(this[_0x1c1032(0xde)],_0x1c1032(0xc3));}}
1
+ const a121_0x2fa420=a121_0x5d37;(function(_0x16284b,_0x4364eb){const _0x208c17=a121_0x5d37,_0x3f4a45=_0x16284b();while(!![]){try{const _0x1e43c2=parseInt(_0x208c17(0x160))/0x1+parseInt(_0x208c17(0x13b))/0x2*(-parseInt(_0x208c17(0x13a))/0x3)+parseInt(_0x208c17(0x134))/0x4+parseInt(_0x208c17(0x125))/0x5+parseInt(_0x208c17(0x144))/0x6+parseInt(_0x208c17(0x146))/0x7+parseInt(_0x208c17(0x158))/0x8*(-parseInt(_0x208c17(0x15b))/0x9);if(_0x1e43c2===_0x4364eb)break;else _0x3f4a45['push'](_0x3f4a45['shift']());}catch(_0x5bfc0d){_0x3f4a45['push'](_0x3f4a45['shift']());}}}(a121_0x31dc,0xdfcfa));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a121_0x1a8476 from'chalk';function safeStringify(_0x381d2f){const _0x5ebbb5=a121_0x5d37;if(typeof _0x381d2f===_0x5ebbb5(0x131))return _0x381d2f;if(_0x381d2f instanceof Error)return _0x381d2f[_0x5ebbb5(0x143)]||_0x381d2f[_0x5ebbb5(0x12d)]+':\x20'+_0x381d2f[_0x5ebbb5(0x12a)];try{return JSON['stringify'](_0x381d2f,(_0x588960,_0x1cb218)=>{const _0x6f34b7=_0x5ebbb5;if(_0x1cb218 instanceof Error)return{'name':_0x1cb218[_0x6f34b7(0x12d)],'message':_0x1cb218[_0x6f34b7(0x12a)],'stack':_0x1cb218[_0x6f34b7(0x143)],'cause':_0x1cb218['cause']};return _0x1cb218;});}catch{return String(_0x381d2f);}}function getTimezoneOffset(){const _0x36c09d=a121_0x5d37,_0x41840f=-new Date()[_0x36c09d(0x157)](),_0x3b73df=Math['floor'](Math[_0x36c09d(0x15f)](_0x41840f)/0x3c),_0x3f4be5=Math['abs'](_0x41840f)%0x3c,_0x3dfdf8=_0x41840f>=0x0?'+':'-';return''+_0x3dfdf8+_0x3b73df[_0x36c09d(0x155)]()['padStart'](0x2,'0')+_0x3f4be5[_0x36c09d(0x155)]()[_0x36c09d(0x13f)](0x2,'0');}function formatTimestamp(){const _0x290001=a121_0x5d37,_0x588ce0=new Date(),_0x3d278f=_0x588ce0['getFullYear'](),_0x325da6=(_0x588ce0[_0x290001(0x14e)]()+0x1)[_0x290001(0x155)]()['padStart'](0x2,'0'),_0x345b1d=_0x588ce0[_0x290001(0x159)]()[_0x290001(0x155)]()[_0x290001(0x13f)](0x2,'0'),_0x583ce0=_0x588ce0[_0x290001(0x152)]()[_0x290001(0x155)]()['padStart'](0x2,'0'),_0x4543f9=_0x588ce0['getMinutes']()[_0x290001(0x155)]()[_0x290001(0x13f)](0x2,'0'),_0x4da875=_0x588ce0[_0x290001(0x13d)]()[_0x290001(0x155)]()[_0x290001(0x13f)](0x2,'0'),_0xd50fdb=_0x588ce0[_0x290001(0x132)]()['toString']()['padStart'](0x3,'0'),_0x8f19f6=getTimezoneOffset();return _0x3d278f+'-'+_0x325da6+'-'+_0x345b1d+'\x20'+_0x583ce0+':'+_0x4543f9+':'+_0x4da875+'.'+_0xd50fdb+_0x8f19f6;}function a121_0x31dc(){const _0x1161b2=['234eskfGP','logs','tdx.log','cyan','abs','98103mnjbdk','toISOString','1509585iZQrwU','logLevel','getLogPath','logDir','close','message','log','warn','name','error','.gz','join','string','getMilliseconds','Proxy\x20session\x20ended','626268wIaeXL','Warning:\x20Error\x20writing\x20to\x20tdx.log:','DEBUG','WARN','fileOnly','.log','454827GdefDE','2mXDVVG','Warning:\x20Failed\x20to\x20compress\x20','getSeconds','includes','padStart','debug','trace','.cache','stack','9640014AaBjPb','red','4423839CmFrSj','rotateOldLogs','INFO','yellow','ERROR','TRACE','map','end','getMonth','logStream','mtime','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','getHours','write','info','toString','gray','getTimezoneOffset','531352dgTOxg','getDate','tdx-'];a121_0x31dc=function(){return _0x1161b2;};return a121_0x31dc();}function formatColoredLogEntry(_0x751edd,_0x29501c){const _0x206786=a121_0x5d37,_0x477dfc=formatTimestamp(),_0x302381=_0x29501c[_0x206786(0x14c)](safeStringify)[_0x206786(0x130)]('\x20'),_0x51082a=a121_0x1a8476[_0x206786(0x156)](_0x477dfc);let _0x5f50d8;switch(_0x751edd){case _0x206786(0x154):_0x5f50d8=a121_0x1a8476[_0x206786(0x15e)]('['+_0x751edd+']\x20');break;case _0x206786(0x12c):_0x5f50d8=a121_0x1a8476[_0x206786(0x149)]('['+_0x751edd+']\x20');break;case'error':_0x5f50d8=a121_0x1a8476[_0x206786(0x145)]('['+_0x751edd+']');break;case _0x206786(0x140):_0x5f50d8=a121_0x1a8476[_0x206786(0x156)]('['+_0x751edd+']');break;default:_0x5f50d8='['+_0x751edd+']';}return _0x51082a+'\x20'+_0x5f50d8+'\x20'+_0x302381;}function a121_0x5d37(_0x1d39ec,_0x4087c5){_0x1d39ec=_0x1d39ec-0x125;const _0x31dcd0=a121_0x31dc();let _0x5d37ba=_0x31dcd0[_0x1d39ec];return _0x5d37ba;}export var LogLevel;(function(_0x2f2f1b){const _0x352291=a121_0x5d37;_0x2f2f1b[_0x2f2f1b[_0x352291(0x14b)]=-0x2]=_0x352291(0x14b),_0x2f2f1b[_0x2f2f1b[_0x352291(0x136)]=-0x1]=_0x352291(0x136),_0x2f2f1b[_0x2f2f1b[_0x352291(0x148)]=0x0]=_0x352291(0x148),_0x2f2f1b[_0x2f2f1b[_0x352291(0x137)]=0x1]=_0x352291(0x137),_0x2f2f1b[_0x2f2f1b['ERROR']=0x2]=_0x352291(0x14a);}(LogLevel||(LogLevel={})));export class TDXLogger{[a121_0x2fa420(0x14f)];[a121_0x2fa420(0x128)];[a121_0x2fa420(0x126)];[a121_0x2fa420(0x138)];constructor(_0x291b07=LogLevel['INFO'],_0x2889da=![]){const _0x3badbb=a121_0x2fa420;this[_0x3badbb(0x128)]=join(homedir(),_0x3badbb(0x142),'tdx',_0x3badbb(0x15c)),this[_0x3badbb(0x126)]=_0x291b07,this['fileOnly']=_0x2889da;}async['init'](){const _0x1bca7f=a121_0x2fa420;try{await mkdir(this[_0x1bca7f(0x128)],{'recursive':!![]}),await this[_0x1bca7f(0x147)]();const _0x306db5=join(this[_0x1bca7f(0x128)],_0x1bca7f(0x15d));this[_0x1bca7f(0x14f)]=createWriteStream(_0x306db5,{'flags':'a'}),this[_0x1bca7f(0x14f)]['on'](_0x1bca7f(0x12e),_0x51c94c=>{const _0x256da1=_0x1bca7f;console[_0x256da1(0x12e)](_0x256da1(0x135),_0x51c94c[_0x256da1(0x12a)]);});}catch(_0x32cfd5){console[_0x1bca7f(0x12e)](_0x1bca7f(0x151),_0x32cfd5);}}async[a121_0x2fa420(0x147)](){const _0xda2b2b=a121_0x2fa420;try{const _0x1cba80=await readdir(this[_0xda2b2b(0x128)]),_0x50b1ab=new Date()[_0xda2b2b(0x161)]()['split']('T')[0x0];if(_0x1cba80[_0xda2b2b(0x13e)](_0xda2b2b(0x15d))){const _0x5319c0=join(this[_0xda2b2b(0x128)],_0xda2b2b(0x15d)),_0x46b0d1=await stat(_0x5319c0),_0x4da8f6=new Date(_0x46b0d1[_0xda2b2b(0x150)])['toISOString']()['split']('T')[0x0];if(_0x4da8f6<_0x50b1ab){const _0x3bbcc3=join(this[_0xda2b2b(0x128)],_0xda2b2b(0x15a)+_0x4da8f6+_0xda2b2b(0x139));await rename(_0x5319c0,_0x3bbcc3);}}const _0x39d4ce=await readdir(this[_0xda2b2b(0x128)]),_0x2ab6a8=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x3dfa3f=_0x39d4ce['filter'](_0x241cb9=>_0x2ab6a8['test'](_0x241cb9));for(const _0x42044f of _0x3dfa3f){const _0x3b7962=join(this[_0xda2b2b(0x128)],_0x42044f),_0x3fa3f0=join(this[_0xda2b2b(0x128)],_0x42044f+_0xda2b2b(0x12f));try{await pipeline(createReadStream(_0x3b7962),createGzip(),createWriteStream(_0x3fa3f0)),await unlink(_0x3b7962);}catch(_0x551aac){console[_0xda2b2b(0x12e)](_0xda2b2b(0x13c)+_0x42044f+':',_0x551aac);}}}catch{}}[a121_0x2fa420(0x140)](..._0x4f0e5f){const _0x1810c4=a121_0x2fa420;if(this[_0x1810c4(0x126)]>LogLevel[_0x1810c4(0x136)])return;const _0x5336b0=formatColoredLogEntry(_0x1810c4(0x140),_0x4f0e5f);this[_0x1810c4(0x14f)]?.[_0x1810c4(0x153)](_0x5336b0+'\x0a');}[a121_0x2fa420(0x141)](..._0x54717b){const _0x18d4fa=a121_0x2fa420;if(this[_0x18d4fa(0x126)]>LogLevel['TRACE'])return;const _0x195203=formatColoredLogEntry(_0x18d4fa(0x141),_0x54717b);this['logStream']?.[_0x18d4fa(0x153)](_0x195203+'\x0a');}[a121_0x2fa420(0x154)](..._0x57c38d){const _0x112646=a121_0x2fa420;if(this[_0x112646(0x126)]>LogLevel[_0x112646(0x148)])return;const _0x4ed4fd=formatColoredLogEntry(_0x112646(0x154),_0x57c38d);!this[_0x112646(0x138)]&&console[_0x112646(0x12b)](_0x4ed4fd),this[_0x112646(0x14f)]?.[_0x112646(0x153)](_0x4ed4fd+'\x0a');}[a121_0x2fa420(0x12c)](..._0x3ce6db){const _0x3652b1=a121_0x2fa420;if(this['logLevel']>LogLevel[_0x3652b1(0x137)])return;const _0x496dff=formatColoredLogEntry(_0x3652b1(0x12c),_0x3ce6db);!this[_0x3652b1(0x138)]&&console[_0x3652b1(0x12e)](_0x496dff),this[_0x3652b1(0x14f)]?.[_0x3652b1(0x153)](_0x496dff+'\x0a');}[a121_0x2fa420(0x12e)](..._0x3a448d){const _0x402595=a121_0x2fa420,_0xe747a8=formatColoredLogEntry(_0x402595(0x12e),_0x3a448d);!this['fileOnly']&&console['error'](_0xe747a8),this[_0x402595(0x14f)]?.['write'](_0xe747a8+'\x0a');}async[a121_0x2fa420(0x129)](){const _0x459fd5=a121_0x2fa420;return this[_0x459fd5(0x154)](_0x459fd5(0x133)),new Promise(_0x5042fc=>{const _0x1c2bc1=_0x459fd5;this['logStream']?this[_0x1c2bc1(0x14f)][_0x1c2bc1(0x14d)](()=>{_0x5042fc();}):_0x5042fc();});}[a121_0x2fa420(0x127)](){const _0x1f8122=a121_0x2fa420;return join(this[_0x1f8122(0x128)],'tdx.log');}}