@treasuredata/tdx 0.13.2 → 0.14.1

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 (166) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/api-command.js +1 -1
  10. package/dist/commands/api-command.js.map +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts +1 -0
  14. package/dist/commands/claude-command.d.ts.map +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/job-command.js +1 -1
  25. package/dist/commands/journey-command.js +1 -1
  26. package/dist/commands/journey-validate-command.js +1 -1
  27. package/dist/commands/llm-command.js +1 -1
  28. package/dist/commands/llm-proxy.js +1 -1
  29. package/dist/commands/parent-segment-command.js +1 -1
  30. package/dist/commands/profile-command.d.ts +3 -4
  31. package/dist/commands/profile-command.d.ts.map +1 -1
  32. package/dist/commands/profile-command.js +1 -1
  33. package/dist/commands/profile-command.js.map +1 -1
  34. package/dist/commands/profiles-command.js +1 -1
  35. package/dist/commands/query-command.js +1 -1
  36. package/dist/commands/segment-command.js +1 -1
  37. package/dist/commands/segment-create-command.js +1 -1
  38. package/dist/commands/segment-fields-command.js +1 -1
  39. package/dist/commands/segment-pull-command.js +1 -1
  40. package/dist/commands/segment-push-command.js +1 -1
  41. package/dist/commands/segment-update-command.js +1 -1
  42. package/dist/commands/segment-use-command.js +1 -1
  43. package/dist/commands/segment-validate-command.js +1 -1
  44. package/dist/commands/segments.js +1 -1
  45. package/dist/commands/show.js +1 -1
  46. package/dist/commands/tables.js +1 -1
  47. package/dist/commands/use-command.js +1 -1
  48. package/dist/commands/user-command.js +1 -1
  49. package/dist/commands/workflow-command.d.ts +37 -0
  50. package/dist/commands/workflow-command.d.ts.map +1 -1
  51. package/dist/commands/workflow-command.js +1 -1
  52. package/dist/commands/workflow-command.js.map +1 -1
  53. package/dist/core/auth.js +1 -1
  54. package/dist/core/command-output.js +1 -1
  55. package/dist/core/config.js +1 -1
  56. package/dist/core/connection-cache.js +1 -1
  57. package/dist/core/constants.js +1 -1
  58. package/dist/core/credential-cache.js +1 -1
  59. package/dist/core/global-context.js +1 -1
  60. package/dist/core/keychain.js +1 -1
  61. package/dist/core/profile.js +1 -1
  62. package/dist/core/project-config.js +1 -1
  63. package/dist/core/session.js +1 -1
  64. package/dist/core/user-cache.js +1 -1
  65. package/dist/core/version.js +1 -1
  66. package/dist/index.js +1 -1
  67. package/dist/proxy/anthropic-adapter.js +1 -1
  68. package/dist/proxy/claude-usage-tracker.d.ts +2 -0
  69. package/dist/proxy/claude-usage-tracker.d.ts.map +1 -1
  70. package/dist/proxy/claude-usage-tracker.js +1 -1
  71. package/dist/proxy/claude-usage-tracker.js.map +1 -1
  72. package/dist/proxy/context-signature.js +1 -1
  73. package/dist/proxy/conversation-utils.js +1 -1
  74. package/dist/proxy/passthrough-server.d.ts +86 -0
  75. package/dist/proxy/passthrough-server.d.ts.map +1 -0
  76. package/dist/proxy/passthrough-server.js +1 -0
  77. package/dist/proxy/passthrough-server.js.map +1 -0
  78. package/dist/proxy/server.js +1 -1
  79. package/dist/proxy/session-cache.js +1 -1
  80. package/dist/proxy/sse-usage-parser.d.ts +99 -0
  81. package/dist/proxy/sse-usage-parser.d.ts.map +1 -0
  82. package/dist/proxy/sse-usage-parser.js +1 -0
  83. package/dist/proxy/sse-usage-parser.js.map +1 -0
  84. package/dist/sdk/agent/agent-config.js +1 -1
  85. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  86. package/dist/sdk/agent/agent-yaml.js +1 -1
  87. package/dist/sdk/api.js +1 -1
  88. package/dist/sdk/client/cdp-api-client.js +1 -1
  89. package/dist/sdk/client/endpoints.d.ts +5 -0
  90. package/dist/sdk/client/endpoints.d.ts.map +1 -1
  91. package/dist/sdk/client/endpoints.js +1 -1
  92. package/dist/sdk/client/endpoints.js.map +1 -1
  93. package/dist/sdk/client/engage-api-client.js +1 -1
  94. package/dist/sdk/client/http-client.js +1 -1
  95. package/dist/sdk/client/llm-api-client.js +1 -1
  96. package/dist/sdk/client/rate-limiter.js +1 -1
  97. package/dist/sdk/client/td-api-client.js +1 -1
  98. package/dist/sdk/client/trino-api-client.js +1 -1
  99. package/dist/sdk/client/workflow-client.js +1 -1
  100. package/dist/sdk/connection-validator.js +1 -1
  101. package/dist/sdk/connection.js +1 -1
  102. package/dist/sdk/engage.js +1 -1
  103. package/dist/sdk/errors.js +1 -1
  104. package/dist/sdk/index.js +1 -1
  105. package/dist/sdk/io/index.js +1 -1
  106. package/dist/sdk/io/node-filesystem.js +1 -1
  107. package/dist/sdk/job.js +1 -1
  108. package/dist/sdk/journey.js +1 -1
  109. package/dist/sdk/llm/chat-cache.js +1 -1
  110. package/dist/sdk/llm/index.js +1 -1
  111. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  112. package/dist/sdk/llm/model-aliases.js +1 -1
  113. package/dist/sdk/llm/model-factors.js +1 -1
  114. package/dist/sdk/query/index.js +1 -1
  115. package/dist/sdk/query/sql-parser.js +1 -1
  116. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  117. package/dist/sdk/segment/fields-display.js +1 -1
  118. package/dist/sdk/segment/file-discovery.js +1 -1
  119. package/dist/sdk/segment/journey-utils.js +1 -1
  120. package/dist/sdk/segment/journey-yaml.js +1 -1
  121. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  122. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  123. package/dist/sdk/segment/pull-workflow.js +1 -1
  124. package/dist/sdk/segment/push-workflow.js +1 -1
  125. package/dist/sdk/segment/resolution-context.js +1 -1
  126. package/dist/sdk/segment/segment-path-parser.js +1 -1
  127. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  128. package/dist/sdk/segment/target-resolution.js +1 -1
  129. package/dist/sdk/segment/tdx-config.js +1 -1
  130. package/dist/sdk/segment/validate-files.js +1 -1
  131. package/dist/sdk/segment/yaml-validator.js +1 -1
  132. package/dist/sdk/segment.js +1 -1
  133. package/dist/sdk/types/index.d.ts +1 -1
  134. package/dist/sdk/types/index.d.ts.map +1 -1
  135. package/dist/sdk/types/index.js +1 -1
  136. package/dist/sdk/types/progress.js +1 -1
  137. package/dist/sdk/user.js +1 -1
  138. package/dist/sdk/util/format-detector.js +1 -1
  139. package/dist/sdk/util/formatters.js +1 -1
  140. package/dist/sdk/util/index.js +1 -1
  141. package/dist/sdk/util/tree-formatter.js +1 -1
  142. package/dist/sdk/workflow/clone-workflow.js +1 -1
  143. package/dist/sdk/workflow/index.d.ts +1 -1
  144. package/dist/sdk/workflow/index.d.ts.map +1 -1
  145. package/dist/sdk/workflow/index.js +1 -1
  146. package/dist/sdk/workflow/index.js.map +1 -1
  147. package/dist/sdk/workflow/pull-workflow.js +1 -1
  148. package/dist/sdk/workflow/push-workflow.js +1 -1
  149. package/dist/sdk/workflow/tdx-config.js +1 -1
  150. package/dist/sdk/workflow/workflow-utils.js +1 -1
  151. package/dist/utils/async.js +1 -1
  152. package/dist/utils/colors.js +1 -1
  153. package/dist/utils/diff.js +1 -1
  154. package/dist/utils/file-permissions.js +1 -1
  155. package/dist/utils/json-loader.js +1 -1
  156. package/dist/utils/option-validation.js +1 -1
  157. package/dist/utils/port.js +1 -1
  158. package/dist/utils/process.js +1 -1
  159. package/dist/utils/prompt.js +1 -1
  160. package/dist/utils/spinner.js +1 -1
  161. package/dist/utils/sse-parser.js +1 -1
  162. package/dist/utils/string-utils.js +1 -1
  163. package/dist/utils/table-ref-parser.js +1 -1
  164. package/dist/utils/tdx-logger.js +1 -1
  165. package/dist/utils/version-check.js +1 -1
  166. package/package.json +1 -1
@@ -1 +1 @@
1
- function a135_0x37d4(){const _0x144702=['NO_COLOR','250225TBUmJs','3172533HvHvLA','28375xzUiYm','null','stringify','dim','4778154JLRsJM','12808608CmzLwa','string','join','stdout','yellow','578550ohwOIt','entries','68euYHsK','object','cyan','number','isTTY','map','length','repeat','boolean','830454KjgEwV','green','noColor','color'];a135_0x37d4=function(){return _0x144702;};return a135_0x37d4();}(function(_0x599b70,_0xbf3748){const _0x423950=a135_0x2cc4,_0x343f83=_0x599b70();while(!![]){try{const _0x1cb9ac=parseInt(_0x423950(0x191))/0x1+-parseInt(_0x423950(0x19d))/0x2+parseInt(_0x423950(0x18c))/0x3+-parseInt(_0x423950(0x183))/0x4*(parseInt(_0x423950(0x193))/0x5)+-parseInt(_0x423950(0x197))/0x6+-parseInt(_0x423950(0x192))/0x7+parseInt(_0x423950(0x198))/0x8;if(_0x1cb9ac===_0xbf3748)break;else _0x343f83['push'](_0x343f83['shift']());}catch(_0x407a6e){_0x343f83['push'](_0x343f83['shift']());}}}(a135_0x37d4,0x784f7));import{Chalk}from'chalk';export function shouldUseColor(_0x34a245={}){const _0x7c00fc=a135_0x2cc4;if(_0x34a245[_0x7c00fc(0x18e)]===!![])return![];if(_0x34a245[_0x7c00fc(0x18f)]===!![])return!![];if(process['env'][_0x7c00fc(0x190)]!==undefined)return![];return process[_0x7c00fc(0x19b)][_0x7c00fc(0x187)]??![];}function a135_0x2cc4(_0x8b21b9,_0x2ecd85){_0x8b21b9=_0x8b21b9-0x183;const _0x37d467=a135_0x37d4();let _0x2cc42c=_0x37d467[_0x8b21b9];return _0x2cc42c;}export function getChalk(_0x3afb98={}){if(shouldUseColor(_0x3afb98))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2a426c,_0x257d32={}){const _0x4808ad=a135_0x2cc4;return getChalk(_0x257d32)[_0x4808ad(0x196)](_0x2a426c);}export function colorHeader(_0x35c58a,_0x3d85cd={}){const _0xe29ab7=a135_0x2cc4;return getChalk(_0x3d85cd)[_0xe29ab7(0x185)](_0x35c58a);}export function colorType(_0x2618cd,_0x240895={}){const _0x5bf37f=a135_0x2cc4;return getChalk(_0x240895)[_0x5bf37f(0x196)](_0x2618cd);}export function colorJSONKey(_0x4325cf,_0x9ed1e5={}){return getChalk(_0x9ed1e5)['blue'](_0x4325cf);}export function colorJSONString(_0x46501a,_0x314d50={}){const _0x4a6d4a=a135_0x2cc4;return getChalk(_0x314d50)[_0x4a6d4a(0x18d)](_0x46501a);}export function colorJSONNumber(_0x2a9cc4,_0x278c37={}){const _0xd3187a=a135_0x2cc4;return getChalk(_0x278c37)[_0xd3187a(0x185)](_0x2a9cc4);}export function colorJSONBoolean(_0x17af2c,_0x50ad87={}){const _0x12d282=a135_0x2cc4;return getChalk(_0x50ad87)[_0x12d282(0x19c)](_0x17af2c);}export function colorJSONNull(_0x47f3b8,_0x4a7099={}){return getChalk(_0x4a7099)['dim'](_0x47f3b8);}export function colorizeJSONCompact(_0x3955fc,_0x2e1fc0={}){const _0x3e70d9=a135_0x2cc4;if(!shouldUseColor(_0x2e1fc0))return JSON[_0x3e70d9(0x195)](_0x3955fc);if(_0x3955fc===null)return colorJSONNull('null',_0x2e1fc0);if(typeof _0x3955fc===_0x3e70d9(0x18b))return colorJSONBoolean(String(_0x3955fc),_0x2e1fc0);if(typeof _0x3955fc===_0x3e70d9(0x186))return colorJSONNumber(String(_0x3955fc),_0x2e1fc0);if(typeof _0x3955fc===_0x3e70d9(0x199))return colorJSONString(JSON['stringify'](_0x3955fc),_0x2e1fc0);if(Array['isArray'](_0x3955fc)){if(_0x3955fc[_0x3e70d9(0x189)]===0x0)return'[]';const _0x130efd=_0x3955fc[_0x3e70d9(0x188)](_0x2c2615=>colorizeJSONCompact(_0x2c2615,_0x2e1fc0));return'['+_0x130efd[_0x3e70d9(0x19a)](',')+']';}if(typeof _0x3955fc===_0x3e70d9(0x184)){const _0x5a3ddf=Object[_0x3e70d9(0x19e)](_0x3955fc);if(_0x5a3ddf[_0x3e70d9(0x189)]===0x0)return'{}';const _0x3989ad=_0x5a3ddf[_0x3e70d9(0x188)](([_0x3565ae,_0x1fc2ad])=>{const _0xd4664f=_0x3e70d9,_0x20bf8e=colorJSONKey(JSON[_0xd4664f(0x195)](_0x3565ae),_0x2e1fc0),_0x311cd5=colorizeJSONCompact(_0x1fc2ad,_0x2e1fc0);return _0x20bf8e+':'+_0x311cd5;});return'{'+_0x3989ad[_0x3e70d9(0x19a)](',')+'}';}return String(_0x3955fc);}export function colorizeJSON(_0x10918c,_0x4efae7={},_0x316678=0x0){const _0x13aa6b=a135_0x2cc4;if(!shouldUseColor(_0x4efae7))return JSON['stringify'](_0x10918c,null,0x2);const _0x4e4464='\x20'[_0x13aa6b(0x18a)](_0x316678),_0x3821d1=_0x316678+0x2;if(_0x10918c===null)return colorJSONNull(_0x13aa6b(0x194),_0x4efae7);if(typeof _0x10918c===_0x13aa6b(0x18b))return colorJSONBoolean(String(_0x10918c),_0x4efae7);if(typeof _0x10918c===_0x13aa6b(0x186))return colorJSONNumber(String(_0x10918c),_0x4efae7);if(typeof _0x10918c===_0x13aa6b(0x199))return colorJSONString(JSON[_0x13aa6b(0x195)](_0x10918c),_0x4efae7);if(Array['isArray'](_0x10918c)){if(_0x10918c[_0x13aa6b(0x189)]===0x0)return'[]';const _0x45e468=_0x10918c[_0x13aa6b(0x188)](_0x5c474e=>{const _0x2bba84=_0x13aa6b,_0x227f6d=colorizeJSON(_0x5c474e,_0x4efae7,_0x3821d1);return''+'\x20'[_0x2bba84(0x18a)](_0x3821d1)+_0x227f6d;});return'[\x0a'+_0x45e468['join'](',\x0a')+('\x0a'+_0x4e4464+']');}if(typeof _0x10918c==='object'){const _0x14ce62=Object[_0x13aa6b(0x19e)](_0x10918c);if(_0x14ce62[_0x13aa6b(0x189)]===0x0)return'{}';const _0x49c499=_0x14ce62[_0x13aa6b(0x188)](([_0xb26c52,_0x1d5580])=>{const _0x4c90fd=_0x13aa6b,_0x45f5e5=colorJSONKey(JSON[_0x4c90fd(0x195)](_0xb26c52),_0x4efae7),_0x50e8af=colorizeJSON(_0x1d5580,_0x4efae7,_0x3821d1);return''+'\x20'[_0x4c90fd(0x18a)](_0x3821d1)+_0x45f5e5+':\x20'+_0x50e8af;});return'{\x0a'+_0x49c499[_0x13aa6b(0x19a)](',\x0a')+('\x0a'+_0x4e4464+'}');}return String(_0x10918c);}
1
+ function a137_0x4c7a(){const _0x2c8ee1=['85itTdsV','12aUnwRN','boolean','noColor','green','join','192798YpQRXK','null','isTTY','cyan','blue','26YhNbFr','repeat','env','object','40LwXCLS','dim','stdout','map','number','360BOGGWk','length','322911jVHSRK','entries','413iKfhDh','20501569gKCqDX','string','stringify','8438pBNVEc','2173430CiMIRR','20418566RgigvV','yellow','8hzPqEH','328191qmNXtp'];a137_0x4c7a=function(){return _0x2c8ee1;};return a137_0x4c7a();}(function(_0x242614,_0x1973c5){const _0x214df3=a137_0x56df,_0x2a885c=_0x242614();while(!![]){try{const _0x291dde=parseInt(_0x214df3(0x1d5))/0x1*(-parseInt(_0x214df3(0x1d9))/0x2)+parseInt(_0x214df3(0x1de))/0x3*(parseInt(_0x214df3(0x1dd))/0x4)+-parseInt(_0x214df3(0x1df))/0x5*(-parseInt(_0x214df3(0x1e5))/0x6)+parseInt(_0x214df3(0x1da))/0x7*(-parseInt(_0x214df3(0x1ee))/0x8)+-parseInt(_0x214df3(0x1d3))/0x9*(parseInt(_0x214df3(0x1d1))/0xa)+parseInt(_0x214df3(0x1d6))/0xb*(parseInt(_0x214df3(0x1e0))/0xc)+-parseInt(_0x214df3(0x1ea))/0xd*(-parseInt(_0x214df3(0x1db))/0xe);if(_0x291dde===_0x1973c5)break;else _0x2a885c['push'](_0x2a885c['shift']());}catch(_0x3df1f2){_0x2a885c['push'](_0x2a885c['shift']());}}}(a137_0x4c7a,0xea2ff));import{Chalk}from'chalk';export function shouldUseColor(_0x344986={}){const _0x26907c=a137_0x56df;if(_0x344986[_0x26907c(0x1e2)]===!![])return![];if(_0x344986['color']===!![])return!![];if(process[_0x26907c(0x1ec)]['NO_COLOR']!==undefined)return![];return process[_0x26907c(0x1ce)][_0x26907c(0x1e7)]??![];}export function getChalk(_0x1d0f2a={}){if(shouldUseColor(_0x1d0f2a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1012ac,_0x5cbe56={}){return getChalk(_0x5cbe56)['dim'](_0x1012ac);}export function colorHeader(_0xe3f017,_0x10fbae={}){const _0x52ea15=a137_0x56df;return getChalk(_0x10fbae)[_0x52ea15(0x1e8)](_0xe3f017);}export function colorType(_0x3bc353,_0xca0a9e={}){const _0x268a9e=a137_0x56df;return getChalk(_0xca0a9e)[_0x268a9e(0x1ef)](_0x3bc353);}function a137_0x56df(_0x8a2dc5,_0x40f774){_0x8a2dc5=_0x8a2dc5-0x1ce;const _0x4c7a71=a137_0x4c7a();let _0x56df09=_0x4c7a71[_0x8a2dc5];return _0x56df09;}export function colorJSONKey(_0x5212c4,_0x56b536={}){const _0x42abb7=a137_0x56df;return getChalk(_0x56b536)[_0x42abb7(0x1e9)](_0x5212c4);}export function colorJSONString(_0x13dc3e,_0x362982={}){const _0x5c144a=a137_0x56df;return getChalk(_0x362982)[_0x5c144a(0x1e3)](_0x13dc3e);}export function colorJSONNumber(_0x3bd8cd,_0xab6519={}){return getChalk(_0xab6519)['cyan'](_0x3bd8cd);}export function colorJSONBoolean(_0xe441f,_0x254fda={}){const _0x1753c1=a137_0x56df;return getChalk(_0x254fda)[_0x1753c1(0x1dc)](_0xe441f);}export function colorJSONNull(_0xa545a5,_0x4d7d43={}){const _0x5340f7=a137_0x56df;return getChalk(_0x4d7d43)[_0x5340f7(0x1ef)](_0xa545a5);}export function colorizeJSONCompact(_0x214fd7,_0x3170da={}){const _0x52559b=a137_0x56df;if(!shouldUseColor(_0x3170da))return JSON['stringify'](_0x214fd7);if(_0x214fd7===null)return colorJSONNull(_0x52559b(0x1e6),_0x3170da);if(typeof _0x214fd7===_0x52559b(0x1e1))return colorJSONBoolean(String(_0x214fd7),_0x3170da);if(typeof _0x214fd7===_0x52559b(0x1d0))return colorJSONNumber(String(_0x214fd7),_0x3170da);if(typeof _0x214fd7===_0x52559b(0x1d7))return colorJSONString(JSON[_0x52559b(0x1d8)](_0x214fd7),_0x3170da);if(Array['isArray'](_0x214fd7)){if(_0x214fd7[_0x52559b(0x1d2)]===0x0)return'[]';const _0x31e2c5=_0x214fd7[_0x52559b(0x1cf)](_0x51dc70=>colorizeJSONCompact(_0x51dc70,_0x3170da));return'['+_0x31e2c5[_0x52559b(0x1e4)](',')+']';}if(typeof _0x214fd7===_0x52559b(0x1ed)){const _0x2c15d4=Object['entries'](_0x214fd7);if(_0x2c15d4[_0x52559b(0x1d2)]===0x0)return'{}';const _0x2e35a8=_0x2c15d4[_0x52559b(0x1cf)](([_0x18dcb5,_0x37d785])=>{const _0x95be7d=_0x52559b,_0xc4eb9=colorJSONKey(JSON[_0x95be7d(0x1d8)](_0x18dcb5),_0x3170da),_0x1e1ba4=colorizeJSONCompact(_0x37d785,_0x3170da);return _0xc4eb9+':'+_0x1e1ba4;});return'{'+_0x2e35a8[_0x52559b(0x1e4)](',')+'}';}return String(_0x214fd7);}export function colorizeJSON(_0x5761af,_0xf797e6={},_0x59a32c=0x0){const _0x45ca4f=a137_0x56df;if(!shouldUseColor(_0xf797e6))return JSON['stringify'](_0x5761af,null,0x2);const _0x5bbfbd='\x20'[_0x45ca4f(0x1eb)](_0x59a32c),_0x39aa0c=_0x59a32c+0x2;if(_0x5761af===null)return colorJSONNull(_0x45ca4f(0x1e6),_0xf797e6);if(typeof _0x5761af==='boolean')return colorJSONBoolean(String(_0x5761af),_0xf797e6);if(typeof _0x5761af==='number')return colorJSONNumber(String(_0x5761af),_0xf797e6);if(typeof _0x5761af===_0x45ca4f(0x1d7))return colorJSONString(JSON[_0x45ca4f(0x1d8)](_0x5761af),_0xf797e6);if(Array['isArray'](_0x5761af)){if(_0x5761af[_0x45ca4f(0x1d2)]===0x0)return'[]';const _0x322c2c=_0x5761af['map'](_0x4e6315=>{const _0x45dc77=_0x45ca4f,_0x263860=colorizeJSON(_0x4e6315,_0xf797e6,_0x39aa0c);return''+'\x20'[_0x45dc77(0x1eb)](_0x39aa0c)+_0x263860;});return'[\x0a'+_0x322c2c[_0x45ca4f(0x1e4)](',\x0a')+('\x0a'+_0x5bbfbd+']');}if(typeof _0x5761af===_0x45ca4f(0x1ed)){const _0x1f8e4f=Object[_0x45ca4f(0x1d4)](_0x5761af);if(_0x1f8e4f[_0x45ca4f(0x1d2)]===0x0)return'{}';const _0x7dd7db=_0x1f8e4f['map'](([_0x37b827,_0x396105])=>{const _0x1dcb6a=_0x45ca4f,_0x44028f=colorJSONKey(JSON['stringify'](_0x37b827),_0xf797e6),_0x2e63ae=colorizeJSON(_0x396105,_0xf797e6,_0x39aa0c);return''+'\x20'[_0x1dcb6a(0x1eb)](_0x39aa0c)+_0x44028f+':\x20'+_0x2e63ae;});return'{\x0a'+_0x7dd7db[_0x45ca4f(0x1e4)](',\x0a')+('\x0a'+_0x5bbfbd+'}');}return String(_0x5761af);}
@@ -1 +1 @@
1
- (function(_0x3a4b96,_0x3589a4){const _0x532964=a136_0x1bd7,_0x18a3e1=_0x3a4b96();while(!![]){try{const _0x3e5bea=-parseInt(_0x532964(0x1c6))/0x1*(parseInt(_0x532964(0x1cb))/0x2)+-parseInt(_0x532964(0x1c4))/0x3+parseInt(_0x532964(0x1df))/0x4+-parseInt(_0x532964(0x1d1))/0x5*(-parseInt(_0x532964(0x1d7))/0x6)+parseInt(_0x532964(0x1dc))/0x7+-parseInt(_0x532964(0x1cd))/0x8*(parseInt(_0x532964(0x1cc))/0x9)+-parseInt(_0x532964(0x1d4))/0xa*(parseInt(_0x532964(0x1c2))/0xb);if(_0x3e5bea===_0x3589a4)break;else _0x18a3e1['push'](_0x18a3e1['shift']());}catch(_0x138a96){_0x18a3e1['push'](_0x18a3e1['shift']());}}}(a136_0x28c7,0xcc08a));function a136_0x1bd7(_0x5cdeab,_0x4d4762){_0x5cdeab=_0x5cdeab-0x1c1;const _0x28c7bd=a136_0x28c7();let _0x1bd76b=_0x28c7bd[_0x5cdeab];return _0x1bd76b;}import a136_0x25691d from'chalk';export function generateDiff(_0x340b57,_0x2e9a4e){const _0x2ab88b=a136_0x1bd7,_0x4f100b=_0x340b57[_0x2ab88b(0x1e3)]('\x0a'),_0x4a94e4=_0x2e9a4e[_0x2ab88b(0x1e3)]('\x0a'),_0x42b768=[],_0x507f34=computeLCS(_0x4f100b,_0x4a94e4);let _0x323adf=0x0,_0x1c393e=0x0,_0x396fb1=0x0;while(_0x323adf<_0x4f100b[_0x2ab88b(0x1e1)]||_0x1c393e<_0x4a94e4[_0x2ab88b(0x1e1)]){if(_0x396fb1<_0x507f34[_0x2ab88b(0x1e1)]&&_0x323adf<_0x4f100b[_0x2ab88b(0x1e1)]&&_0x4f100b[_0x323adf]===_0x507f34[_0x396fb1])_0x1c393e<_0x4a94e4[_0x2ab88b(0x1e1)]&&_0x4a94e4[_0x1c393e]===_0x507f34[_0x396fb1]?(_0x42b768[_0x2ab88b(0x1ca)]({'type':_0x2ab88b(0x1c9),'content':_0x4f100b[_0x323adf]}),_0x323adf++,_0x1c393e++,_0x396fb1++):(_0x42b768[_0x2ab88b(0x1ca)]({'type':_0x2ab88b(0x1c1),'content':_0x4a94e4[_0x1c393e]}),_0x1c393e++);else{if(_0x396fb1<_0x507f34['length']&&_0x1c393e<_0x4a94e4[_0x2ab88b(0x1e1)]&&_0x4a94e4[_0x1c393e]===_0x507f34[_0x396fb1])_0x42b768[_0x2ab88b(0x1ca)]({'type':_0x2ab88b(0x1dd),'content':_0x4f100b[_0x323adf]}),_0x323adf++;else{if(_0x323adf<_0x4f100b[_0x2ab88b(0x1e1)]&&(_0x396fb1>=_0x507f34[_0x2ab88b(0x1e1)]||_0x4f100b[_0x323adf]!==_0x507f34[_0x396fb1]))_0x42b768[_0x2ab88b(0x1ca)]({'type':'removed','content':_0x4f100b[_0x323adf]}),_0x323adf++;else _0x1c393e<_0x4a94e4[_0x2ab88b(0x1e1)]&&(_0x42b768['push']({'type':'added','content':_0x4a94e4[_0x1c393e]}),_0x1c393e++);}}}return _0x42b768;}function computeLCS(_0x54bc53,_0x37cb1d){const _0x297cf5=a136_0x1bd7,_0x224379=_0x54bc53['length'],_0x5e96c5=_0x37cb1d[_0x297cf5(0x1e1)],_0x3fcb01=Array(_0x224379+0x1)[_0x297cf5(0x1de)](null)[_0x297cf5(0x1e0)](()=>Array(_0x5e96c5+0x1)[_0x297cf5(0x1de)](0x0));for(let _0x52c25b=0x1;_0x52c25b<=_0x224379;_0x52c25b++){for(let _0x46649a=0x1;_0x46649a<=_0x5e96c5;_0x46649a++){_0x54bc53[_0x52c25b-0x1]===_0x37cb1d[_0x46649a-0x1]?_0x3fcb01[_0x52c25b][_0x46649a]=_0x3fcb01[_0x52c25b-0x1][_0x46649a-0x1]+0x1:_0x3fcb01[_0x52c25b][_0x46649a]=Math['max'](_0x3fcb01[_0x52c25b-0x1][_0x46649a],_0x3fcb01[_0x52c25b][_0x46649a-0x1]);}}const _0x2aa76a=[];let _0x23007c=_0x224379,_0x434f47=_0x5e96c5;while(_0x23007c>0x0&&_0x434f47>0x0){if(_0x54bc53[_0x23007c-0x1]===_0x37cb1d[_0x434f47-0x1])_0x2aa76a[_0x297cf5(0x1d3)](_0x54bc53[_0x23007c-0x1]),_0x23007c--,_0x434f47--;else _0x3fcb01[_0x23007c-0x1][_0x434f47]>_0x3fcb01[_0x23007c][_0x434f47-0x1]?_0x23007c--:_0x434f47--;}return _0x2aa76a;}export function formatDiffWithColors(_0x3e69e3,_0x2a0318=0x3){const _0x2764fc=a136_0x1bd7,_0xbb36b7=new Set();_0x3e69e3[_0x2764fc(0x1d8)]((_0x144807,_0x502c52)=>{const _0x4e9ade=_0x2764fc;_0x144807[_0x4e9ade(0x1e5)]!==_0x4e9ade(0x1c9)&&_0xbb36b7[_0x4e9ade(0x1d9)](_0x502c52);});if(_0xbb36b7['size']===0x0)return'';const _0x2d738e=new Set();for(const _0x1578ac of _0xbb36b7){for(let _0x91ae4e=Math[_0x2764fc(0x1c5)](0x0,_0x1578ac-_0x2a0318);_0x91ae4e<=Math['min'](_0x3e69e3[_0x2764fc(0x1e1)]-0x1,_0x1578ac+_0x2a0318);_0x91ae4e++){_0x2d738e[_0x2764fc(0x1d9)](_0x91ae4e);}}const _0x18aae5=[];let _0x1809af=-0x1;const _0x39af76=_0x3e69e3[_0x2764fc(0x1e1)],_0x571a29=Math[_0x2764fc(0x1c5)](0x3,String(_0x39af76)[_0x2764fc(0x1e1)]),_0x499530=[];let _0x285432=0x0,_0x328895=0x0;for(const _0x3eae3f of _0x3e69e3){if(_0x3eae3f[_0x2764fc(0x1e5)]===_0x2764fc(0x1dd))_0x285432++,_0x499530[_0x2764fc(0x1ca)]({'old':_0x285432,'new':0x0});else _0x3eae3f[_0x2764fc(0x1e5)]===_0x2764fc(0x1c1)?(_0x328895++,_0x499530[_0x2764fc(0x1ca)]({'old':0x0,'new':_0x328895})):(_0x285432++,_0x328895++,_0x499530[_0x2764fc(0x1ca)]({'old':_0x285432,'new':_0x328895}));}for(let _0x59b2de=0x0;_0x59b2de<_0x3e69e3['length'];_0x59b2de++){if(!_0x2d738e[_0x2764fc(0x1c3)](_0x59b2de))continue;_0x1809af!==-0x1&&_0x59b2de>_0x1809af+0x1&&_0x18aae5[_0x2764fc(0x1ca)](a136_0x25691d[_0x2764fc(0x1e4)](_0x2764fc(0x1c8)));_0x1809af=_0x59b2de;const _0x2a563c=_0x3e69e3[_0x59b2de],_0x9f3e2d=_0x499530[_0x59b2de],_0x11a6a2=_0x9f3e2d['old']>0x0?String(_0x9f3e2d[_0x2764fc(0x1da)])[_0x2764fc(0x1d6)](_0x571a29):'\x20'[_0x2764fc(0x1cf)](_0x571a29),_0x86bd4d=_0x9f3e2d[_0x2764fc(0x1d2)]>0x0?String(_0x9f3e2d[_0x2764fc(0x1d2)])[_0x2764fc(0x1d6)](_0x571a29):'\x20'['repeat'](_0x571a29);switch(_0x2a563c[_0x2764fc(0x1e5)]){case'removed':_0x18aae5[_0x2764fc(0x1ca)](a136_0x25691d[_0x2764fc(0x1c7)](_0x11a6a2+'\x20'+_0x86bd4d+'\x20-\x20'+_0x2a563c[_0x2764fc(0x1e2)]));break;case'added':_0x18aae5[_0x2764fc(0x1ca)](a136_0x25691d[_0x2764fc(0x1ce)](_0x11a6a2+'\x20'+_0x86bd4d+_0x2764fc(0x1d5)+_0x2a563c[_0x2764fc(0x1e2)]));break;default:_0x18aae5['push'](a136_0x25691d[_0x2764fc(0x1d0)](_0x11a6a2+'\x20'+_0x86bd4d+_0x2764fc(0x1db)+_0x2a563c[_0x2764fc(0x1e2)]));break;}}return _0x18aae5['join']('\x0a');}function a136_0x28c7(){const _0x5e18b8=['type','added','33ZyMNis','has','3073953zZGbaV','max','1MNmYMX','red','\x20\x20...','unchanged','push','1964590BKkIyM','50121CkqzPN','1208DFaIKV','green','repeat','dim','935WBIOdo','new','unshift','2350390nKKkNi','\x20+\x20','padStart','47406OexsPE','forEach','add','old','\x20\x20\x20','9669436DQporR','removed','fill','6119476RXoPgZ','map','length','content','split','cyan'];a136_0x28c7=function(){return _0x5e18b8;};return a136_0x28c7();}export function hasChanges(_0x42f7fb){return _0x42f7fb['some'](_0x434990=>_0x434990['type']!=='unchanged');}
1
+ (function(_0x1bbe2f,_0x5ed1dc){const _0x487e26=a138_0x1b06,_0x47abf1=_0x1bbe2f();while(!![]){try{const _0xd3fb33=-parseInt(_0x487e26(0xf1))/0x1*(-parseInt(_0x487e26(0x106))/0x2)+parseInt(_0x487e26(0xed))/0x3+parseInt(_0x487e26(0xe9))/0x4*(-parseInt(_0x487e26(0xfa))/0x5)+-parseInt(_0x487e26(0xf7))/0x6+parseInt(_0x487e26(0x102))/0x7*(parseInt(_0x487e26(0xf3))/0x8)+-parseInt(_0x487e26(0xef))/0x9+parseInt(_0x487e26(0x101))/0xa;if(_0xd3fb33===_0x5ed1dc)break;else _0x47abf1['push'](_0x47abf1['shift']());}catch(_0x4271dd){_0x47abf1['push'](_0x47abf1['shift']());}}}(a138_0xf2bc,0x57359));import a138_0x151845 from'chalk';export function generateDiff(_0x4b5adb,_0x5eb285){const _0x3fe7d4=a138_0x1b06,_0x8b7f5e=_0x4b5adb[_0x3fe7d4(0xf2)]('\x0a'),_0x1f540e=_0x5eb285[_0x3fe7d4(0xf2)]('\x0a'),_0xa64525=[],_0x43d586=computeLCS(_0x8b7f5e,_0x1f540e);let _0x414755=0x0,_0x181efb=0x0,_0x539cae=0x0;while(_0x414755<_0x8b7f5e['length']||_0x181efb<_0x1f540e[_0x3fe7d4(0xeb)]){if(_0x539cae<_0x43d586['length']&&_0x414755<_0x8b7f5e[_0x3fe7d4(0xeb)]&&_0x8b7f5e[_0x414755]===_0x43d586[_0x539cae])_0x181efb<_0x1f540e[_0x3fe7d4(0xeb)]&&_0x1f540e[_0x181efb]===_0x43d586[_0x539cae]?(_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xf9),'content':_0x8b7f5e[_0x414755]}),_0x414755++,_0x181efb++,_0x539cae++):(_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xea),'content':_0x1f540e[_0x181efb]}),_0x181efb++);else{if(_0x539cae<_0x43d586[_0x3fe7d4(0xeb)]&&_0x181efb<_0x1f540e['length']&&_0x1f540e[_0x181efb]===_0x43d586[_0x539cae])_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xf5),'content':_0x8b7f5e[_0x414755]}),_0x414755++;else{if(_0x414755<_0x8b7f5e[_0x3fe7d4(0xeb)]&&(_0x539cae>=_0x43d586[_0x3fe7d4(0xeb)]||_0x8b7f5e[_0x414755]!==_0x43d586[_0x539cae]))_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xf5),'content':_0x8b7f5e[_0x414755]}),_0x414755++;else _0x181efb<_0x1f540e[_0x3fe7d4(0xeb)]&&(_0xa64525[_0x3fe7d4(0x108)]({'type':_0x3fe7d4(0xea),'content':_0x1f540e[_0x181efb]}),_0x181efb++);}}}return _0xa64525;}function a138_0x1b06(_0x355f05,_0x52a04a){_0x355f05=_0x355f05-0xe7;const _0xf2bc20=a138_0xf2bc();let _0x1b06ee=_0xf2bc20[_0x355f05];return _0x1b06ee;}function computeLCS(_0x5ebd88,_0x191842){const _0x711fc8=a138_0x1b06,_0x808f70=_0x5ebd88[_0x711fc8(0xeb)],_0x229475=_0x191842['length'],_0xcae2dc=Array(_0x808f70+0x1)[_0x711fc8(0xe7)](null)['map'](()=>Array(_0x229475+0x1)[_0x711fc8(0xe7)](0x0));for(let _0x379855=0x1;_0x379855<=_0x808f70;_0x379855++){for(let _0xa19b9b=0x1;_0xa19b9b<=_0x229475;_0xa19b9b++){_0x5ebd88[_0x379855-0x1]===_0x191842[_0xa19b9b-0x1]?_0xcae2dc[_0x379855][_0xa19b9b]=_0xcae2dc[_0x379855-0x1][_0xa19b9b-0x1]+0x1:_0xcae2dc[_0x379855][_0xa19b9b]=Math[_0x711fc8(0xf0)](_0xcae2dc[_0x379855-0x1][_0xa19b9b],_0xcae2dc[_0x379855][_0xa19b9b-0x1]);}}const _0x148d47=[];let _0x21a149=_0x808f70,_0x489c57=_0x229475;while(_0x21a149>0x0&&_0x489c57>0x0){if(_0x5ebd88[_0x21a149-0x1]===_0x191842[_0x489c57-0x1])_0x148d47[_0x711fc8(0xec)](_0x5ebd88[_0x21a149-0x1]),_0x21a149--,_0x489c57--;else _0xcae2dc[_0x21a149-0x1][_0x489c57]>_0xcae2dc[_0x21a149][_0x489c57-0x1]?_0x21a149--:_0x489c57--;}return _0x148d47;}export function formatDiffWithColors(_0x1cf1f0,_0x2afbfe=0x3){const _0x494dc7=a138_0x1b06,_0x4950de=new Set();_0x1cf1f0['forEach']((_0x2884fc,_0x3c11f3)=>{const _0x3a10b0=a138_0x1b06;_0x2884fc[_0x3a10b0(0x103)]!=='unchanged'&&_0x4950de[_0x3a10b0(0xf8)](_0x3c11f3);});if(_0x4950de[_0x494dc7(0xfc)]===0x0)return'';const _0x8c1168=new Set();for(const _0x5d0191 of _0x4950de){for(let _0x4ef473=Math[_0x494dc7(0xf0)](0x0,_0x5d0191-_0x2afbfe);_0x4ef473<=Math[_0x494dc7(0x107)](_0x1cf1f0[_0x494dc7(0xeb)]-0x1,_0x5d0191+_0x2afbfe);_0x4ef473++){_0x8c1168[_0x494dc7(0xf8)](_0x4ef473);}}const _0x4f3e91=[];let _0x1657b1=-0x1;const _0x648571=_0x1cf1f0['length'],_0x16da78=Math[_0x494dc7(0xf0)](0x3,String(_0x648571)[_0x494dc7(0xeb)]),_0x13a784=[];let _0x12bece=0x0,_0x54fcf2=0x0;for(const _0x241b25 of _0x1cf1f0){if(_0x241b25[_0x494dc7(0x103)]===_0x494dc7(0xf5))_0x12bece++,_0x13a784[_0x494dc7(0x108)]({'old':_0x12bece,'new':0x0});else _0x241b25[_0x494dc7(0x103)]===_0x494dc7(0xea)?(_0x54fcf2++,_0x13a784[_0x494dc7(0x108)]({'old':0x0,'new':_0x54fcf2})):(_0x12bece++,_0x54fcf2++,_0x13a784[_0x494dc7(0x108)]({'old':_0x12bece,'new':_0x54fcf2}));}for(let _0x484bdd=0x0;_0x484bdd<_0x1cf1f0[_0x494dc7(0xeb)];_0x484bdd++){if(!_0x8c1168[_0x494dc7(0xff)](_0x484bdd))continue;_0x1657b1!==-0x1&&_0x484bdd>_0x1657b1+0x1&&_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0x104)]('\x20\x20...'));_0x1657b1=_0x484bdd;const _0x407864=_0x1cf1f0[_0x484bdd],_0x3a3c30=_0x13a784[_0x484bdd],_0x52f7e6=_0x3a3c30[_0x494dc7(0xe8)]>0x0?String(_0x3a3c30['old'])[_0x494dc7(0xf6)](_0x16da78):'\x20'[_0x494dc7(0xf4)](_0x16da78),_0x5cda02=_0x3a3c30['new']>0x0?String(_0x3a3c30['new'])['padStart'](_0x16da78):'\x20'[_0x494dc7(0xf4)](_0x16da78);switch(_0x407864[_0x494dc7(0x103)]){case'removed':_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0xee)](_0x52f7e6+'\x20'+_0x5cda02+'\x20-\x20'+_0x407864[_0x494dc7(0x100)]));break;case _0x494dc7(0xea):_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0x105)](_0x52f7e6+'\x20'+_0x5cda02+_0x494dc7(0xfd)+_0x407864['content']));break;default:_0x4f3e91[_0x494dc7(0x108)](a138_0x151845[_0x494dc7(0xfb)](_0x52f7e6+'\x20'+_0x5cda02+'\x20\x20\x20'+_0x407864[_0x494dc7(0x100)]));break;}}return _0x4f3e91[_0x494dc7(0xfe)]('\x0a');}function a138_0xf2bc(){const _0x2e088d=['push','fill','old','556JMFxJC','added','length','unshift','343659wEQjUk','red','499788CQxDSz','max','5zKbMca','split','8oBZnzS','repeat','removed','padStart','2368818EmoMGT','add','unchanged','12065dopDeW','dim','size','\x20+\x20','join','has','content','1846440MaWoJe','3191993mUSxBn','type','cyan','green','155102ZdIyZk','min'];a138_0xf2bc=function(){return _0x2e088d;};return a138_0xf2bc();}export function hasChanges(_0x40102b){const _0x51ed95=a138_0x1b06;return _0x40102b['some'](_0x48bc0c=>_0x48bc0c[_0x51ed95(0x103)]!==_0x51ed95(0xf9));}
@@ -1 +1 @@
1
- (function(_0x9a6c97,_0x5e4434){const _0x46e58f=a137_0x58c8,_0x3ad557=_0x9a6c97();while(!![]){try{const _0x2c6709=parseInt(_0x46e58f(0xd0))/0x1*(parseInt(_0x46e58f(0xcf))/0x2)+parseInt(_0x46e58f(0xd3))/0x3*(parseInt(_0x46e58f(0xd5))/0x4)+-parseInt(_0x46e58f(0xd6))/0x5+parseInt(_0x46e58f(0xdb))/0x6+-parseInt(_0x46e58f(0xd4))/0x7*(parseInt(_0x46e58f(0xcc))/0x8)+-parseInt(_0x46e58f(0xc8))/0x9*(-parseInt(_0x46e58f(0xcb))/0xa)+parseInt(_0x46e58f(0xd9))/0xb*(-parseInt(_0x46e58f(0xc9))/0xc);if(_0x2c6709===_0x5e4434)break;else _0x3ad557['push'](_0x3ad557['shift']());}catch(_0x26154d){_0x3ad557['push'](_0x3ad557['shift']());}}}(a137_0x3a33,0xa6911));import*as a137_0x18d893 from'node:fs';import*as a137_0x25be72 from'node:path';export function setSecureFilePermissions(_0x53d293){const _0xcb7f9c=a137_0x58c8;try{a137_0x18d893[_0xcb7f9c(0xce)](_0x53d293,0x180);}catch{console[_0xcb7f9c(0xca)](_0xcb7f9c(0xc7)+_0x53d293);}}function a137_0x3a33(){const _0x4ae598=['36qVdyFY','8744113WOnHZF','258788GlhAOT','1069960xOZgtQ','mkdirSync','dirname','62711nzXXZp','existsSync','2442822FFkkvz','writeFileSync','\x20has\x20insecure\x20permissions\x20(','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','690732vrLiCq','1956QwvlvB','warn','150WSPtqH','8jaHFgd','Warning:\x20','chmodSync','49330FEeJZo','30UsSyEV','mode','Should\x20be\x200600\x20or\x20more\x20restrictive.'];a137_0x3a33=function(){return _0x4ae598;};return a137_0x3a33();}export function setSecureDirectoryPermissions(_0x40fff1){const _0x452695=a137_0x58c8;try{a137_0x18d893[_0x452695(0xce)](_0x40fff1,0x1c0);}catch{console[_0x452695(0xca)](_0x452695(0xc7)+_0x40fff1);}}export function createSecureDirectory(_0x108d45){const _0x446edc=a137_0x58c8;!a137_0x18d893[_0x446edc(0xda)](_0x108d45)&&(a137_0x18d893[_0x446edc(0xd7)](_0x108d45,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x108d45));}function a137_0x58c8(_0x1d60fc,_0x16d01a){_0x1d60fc=_0x1d60fc-0xc4;const _0x3a33a7=a137_0x3a33();let _0x58c895=_0x3a33a7[_0x1d60fc];return _0x58c895;}export function validateSecureFilePermissions(_0x216ab3){const _0x22a2c4=a137_0x58c8;try{const _0x5ce9ee=a137_0x18d893['statSync'](_0x216ab3),_0x6a4181=_0x5ce9ee[_0x22a2c4(0xd1)]&0x1ff,_0x477f46=(_0x6a4181&0x3f)!==0x0;if(_0x477f46)return console['warn'](_0x22a2c4(0xcd)+_0x216ab3+_0x22a2c4(0xc5)+_0x6a4181[_0x22a2c4(0xc6)](0x8)+').\x20'+_0x22a2c4(0xd2)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x57aaba,_0x5a2f69){const _0x5d4ff1=a137_0x58c8,_0x25345a=a137_0x25be72[_0x5d4ff1(0xd8)](_0x57aaba);createSecureDirectory(_0x25345a),a137_0x18d893[_0x5d4ff1(0xc4)](_0x57aaba,_0x5a2f69,{'mode':0x180}),setSecureFilePermissions(_0x57aaba);}
1
+ (function(_0x52db05,_0x235c4e){const _0x5aa1ae=a139_0x268b,_0x38856b=_0x52db05();while(!![]){try{const _0x14a8e0=parseInt(_0x5aa1ae(0xda))/0x1*(parseInt(_0x5aa1ae(0xdc))/0x2)+parseInt(_0x5aa1ae(0xcb))/0x3+-parseInt(_0x5aa1ae(0xd5))/0x4+parseInt(_0x5aa1ae(0xce))/0x5*(parseInt(_0x5aa1ae(0xd4))/0x6)+-parseInt(_0x5aa1ae(0xca))/0x7*(-parseInt(_0x5aa1ae(0xd1))/0x8)+-parseInt(_0x5aa1ae(0xd7))/0x9+-parseInt(_0x5aa1ae(0xd3))/0xa*(-parseInt(_0x5aa1ae(0xcf))/0xb);if(_0x14a8e0===_0x235c4e)break;else _0x38856b['push'](_0x38856b['shift']());}catch(_0x1ac6b1){_0x38856b['push'](_0x38856b['shift']());}}}(a139_0x14dd,0xe7a91));import*as a139_0x1366da from'node:fs';import*as a139_0x1de61b from'node:path';export function setSecureFilePermissions(_0x2e4dea){const _0x5f0935=a139_0x268b;try{a139_0x1366da[_0x5f0935(0xcc)](_0x2e4dea,0x180);}catch{console[_0x5f0935(0xcd)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x2e4dea);}}function a139_0x14dd(){const _0x160a07=['122SZBUpG','toString','872529NenLrm','5231331sQyJEl','chmodSync','warn','501755vYhHum','77ndKGuQ','existsSync','32SFuvmy','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','116710casovz','78oksVcc','4182140RivTAp','\x20has\x20insecure\x20permissions\x20(','15556635VTPhgW','mkdirSync','dirname','1546rySgvI',').\x20'];a139_0x14dd=function(){return _0x160a07;};return a139_0x14dd();}function a139_0x268b(_0x46c660,_0x48862a){_0x46c660=_0x46c660-0xca;const _0x14ddfc=a139_0x14dd();let _0x268b48=_0x14ddfc[_0x46c660];return _0x268b48;}export function setSecureDirectoryPermissions(_0xf59e46){const _0x13407a=a139_0x268b;try{a139_0x1366da[_0x13407a(0xcc)](_0xf59e46,0x1c0);}catch{console['warn'](_0x13407a(0xd2)+_0xf59e46);}}export function createSecureDirectory(_0x3add28){const _0x3bb0bc=a139_0x268b;!a139_0x1366da[_0x3bb0bc(0xd0)](_0x3add28)&&(a139_0x1366da[_0x3bb0bc(0xd8)](_0x3add28,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3add28));}export function validateSecureFilePermissions(_0x4a414f){const _0x5373e1=a139_0x268b;try{const _0xf67058=a139_0x1366da['statSync'](_0x4a414f),_0x3d42f7=_0xf67058['mode']&0x1ff,_0x2fe85b=(_0x3d42f7&0x3f)!==0x0;if(_0x2fe85b)return console['warn']('Warning:\x20'+_0x4a414f+_0x5373e1(0xd6)+_0x3d42f7[_0x5373e1(0xdd)](0x8)+_0x5373e1(0xdb)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x1349e8,_0x3e1d5d){const _0xd6ebf8=a139_0x268b,_0x5a914f=a139_0x1de61b[_0xd6ebf8(0xd9)](_0x1349e8);createSecureDirectory(_0x5a914f),a139_0x1366da['writeFileSync'](_0x1349e8,_0x3e1d5d,{'mode':0x180}),setSecureFilePermissions(_0x1349e8);}
@@ -1 +1 @@
1
- (function(_0x3452cd,_0x5e4522){const _0x5e4a7d=a138_0x502c,_0x135fd2=_0x3452cd();while(!![]){try{const _0x546624=parseInt(_0x5e4a7d(0x12c))/0x1+parseInt(_0x5e4a7d(0x135))/0x2+parseInt(_0x5e4a7d(0x138))/0x3*(parseInt(_0x5e4a7d(0x130))/0x4)+parseInt(_0x5e4a7d(0x133))/0x5*(-parseInt(_0x5e4a7d(0x134))/0x6)+-parseInt(_0x5e4a7d(0x12f))/0x7*(-parseInt(_0x5e4a7d(0x13a))/0x8)+parseInt(_0x5e4a7d(0x12b))/0x9*(parseInt(_0x5e4a7d(0x13c))/0xa)+-parseInt(_0x5e4a7d(0x12a))/0xb;if(_0x546624===_0x5e4522)break;else _0x135fd2['push'](_0x135fd2['shift']());}catch(_0x483faa){_0x135fd2['push'](_0x135fd2['shift']());}}}(a138_0x1469,0xa037f));function a138_0x502c(_0x4c9a25,_0x567850){_0x4c9a25=_0x4c9a25-0x128;const _0x1469f4=a138_0x1469();let _0x502cb8=_0x1469f4[_0x4c9a25];return _0x502cb8;}import{readFile}from'fs/promises';function a138_0x1469(){const _0xddd35d=['utf-8','code','Invalid\x20JSON\x20in\x20file\x20\x27','29064508yGxCyW','380934wrPRpj','560529FUOLzC','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','Permission\x20denied\x20reading\x20file:\x20','427AAvJjL','130980EFPwcO','parse','ENOENT','15940bcXGNy','528ltnkMi','2190708mwwokd','\x27:\x20','message','15SBrgvm','INVALID_ARGUMENT','58664AUTECZ','PERMISSION_DENIED','310hydvIy','Failed\x20to\x20load\x20JSON:\x20'];a138_0x1469=function(){return _0xddd35d;};return a138_0x1469();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x4d010f,_0x4a9792){const _0x436bd1=a138_0x502c;try{if(_0x4a9792){const _0x21eb92=await readFile(_0x4d010f,_0x436bd1(0x13e));try{return JSON[_0x436bd1(0x131)](_0x21eb92);}catch(_0x487c35){throw new SDKError(ErrorCode[_0x436bd1(0x139)],_0x436bd1(0x129)+_0x4d010f+_0x436bd1(0x136)+(_0x487c35 instanceof Error?_0x487c35[_0x436bd1(0x137)]:String(_0x487c35)));}}else try{return JSON[_0x436bd1(0x131)](_0x4d010f);}catch(_0x1391fa){throw new SDKError(ErrorCode[_0x436bd1(0x139)],'Invalid\x20JSON\x20string:\x20'+(_0x1391fa instanceof Error?_0x1391fa[_0x436bd1(0x137)]:String(_0x1391fa)));}}catch(_0x1072a3){if(_0x1072a3 instanceof SDKError)throw _0x1072a3;if(_0x1072a3 instanceof Error&&_0x436bd1(0x128)in _0x1072a3){const _0x3d0d5a=_0x1072a3;if(_0x3d0d5a[_0x436bd1(0x128)]===_0x436bd1(0x132))throw new SDKError(ErrorCode['NOT_FOUND'],'File\x20not\x20found:\x20'+_0x4d010f);else{if(_0x3d0d5a[_0x436bd1(0x128)]==='EACCES')throw new SDKError(ErrorCode[_0x436bd1(0x13b)],_0x436bd1(0x12e)+_0x4d010f);}}throw new SDKError(ErrorCode['INTERNAL'],_0x436bd1(0x13d)+(_0x1072a3 instanceof Error?_0x1072a3[_0x436bd1(0x137)]:String(_0x1072a3)));}}export async function loadJSONFromOptions(_0x13b8f1,_0x1196c0){const _0x12a87f=a138_0x502c;if(_0x13b8f1&&_0x1196c0)throw new SDKError(ErrorCode[_0x12a87f(0x139)],_0x12a87f(0x12d));if(_0x13b8f1)return await loadJSON(_0x13b8f1,![]);if(_0x1196c0)return await loadJSON(_0x1196c0,!![]);return undefined;}
1
+ (function(_0x17ee1b,_0x271787){const _0x1b734e=a140_0x533b,_0x2a079a=_0x17ee1b();while(!![]){try{const _0x50d1b6=parseInt(_0x1b734e(0xe1))/0x1*(parseInt(_0x1b734e(0xdc))/0x2)+parseInt(_0x1b734e(0xdd))/0x3+-parseInt(_0x1b734e(0xcf))/0x4*(-parseInt(_0x1b734e(0xd5))/0x5)+parseInt(_0x1b734e(0xde))/0x6*(parseInt(_0x1b734e(0xd7))/0x7)+-parseInt(_0x1b734e(0xd6))/0x8*(-parseInt(_0x1b734e(0xe4))/0x9)+parseInt(_0x1b734e(0xe3))/0xa*(parseInt(_0x1b734e(0xda))/0xb)+-parseInt(_0x1b734e(0xd2))/0xc;if(_0x50d1b6===_0x271787)break;else _0x2a079a['push'](_0x2a079a['shift']());}catch(_0x578a7f){_0x2a079a['push'](_0x2a079a['shift']());}}}(a140_0x5c0c,0xc1465));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x1cfcb7,_0x4fef86){const _0x389aa2=a140_0x533b;try{if(_0x4fef86){const _0x14f146=await readFile(_0x1cfcb7,_0x389aa2(0xdf));try{return JSON[_0x389aa2(0xd3)](_0x14f146);}catch(_0x2256de){throw new SDKError(ErrorCode[_0x389aa2(0xce)],_0x389aa2(0xe5)+_0x1cfcb7+_0x389aa2(0xe0)+(_0x2256de instanceof Error?_0x2256de[_0x389aa2(0xd8)]:String(_0x2256de)));}}else try{return JSON[_0x389aa2(0xd3)](_0x1cfcb7);}catch(_0x2ab3eb){throw new SDKError(ErrorCode[_0x389aa2(0xce)],'Invalid\x20JSON\x20string:\x20'+(_0x2ab3eb instanceof Error?_0x2ab3eb[_0x389aa2(0xd8)]:String(_0x2ab3eb)));}}catch(_0x200be4){if(_0x200be4 instanceof SDKError)throw _0x200be4;if(_0x200be4 instanceof Error&&'code'in _0x200be4){const _0x13cffd=_0x200be4;if(_0x13cffd[_0x389aa2(0xe6)]===_0x389aa2(0xd4))throw new SDKError(ErrorCode[_0x389aa2(0xd9)],'File\x20not\x20found:\x20'+_0x1cfcb7);else{if(_0x13cffd['code']===_0x389aa2(0xd1))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x389aa2(0xd0)+_0x1cfcb7);}}throw new SDKError(ErrorCode[_0x389aa2(0xe7)],_0x389aa2(0xdb)+(_0x200be4 instanceof Error?_0x200be4[_0x389aa2(0xd8)]:String(_0x200be4)));}}function a140_0x533b(_0xba7d0a,_0x32a5ac){_0xba7d0a=_0xba7d0a-0xce;const _0x5c0c90=a140_0x5c0c();let _0x533b51=_0x5c0c90[_0xba7d0a];return _0x533b51;}function a140_0x5c0c(){const _0x872c7f=['NOT_FOUND','363143wkYjWg','Failed\x20to\x20load\x20JSON:\x20','70eJWVpa','358533YeFaea','1506qVQKKG','utf-8','\x27:\x20','3922XbxtJm','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','310gjpgzo','9bfdzqm','Invalid\x20JSON\x20in\x20file\x20\x27','code','INTERNAL','INVALID_ARGUMENT','62068MOKZHS','Permission\x20denied\x20reading\x20file:\x20','EACCES','25487400KnUqwV','parse','ENOENT','305mhcXkE','537240RNWYOF','17339dODDGd','message'];a140_0x5c0c=function(){return _0x872c7f;};return a140_0x5c0c();}export async function loadJSONFromOptions(_0x37ebce,_0x5a25f3){const _0x59edf6=a140_0x533b;if(_0x37ebce&&_0x5a25f3)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x59edf6(0xe2));if(_0x37ebce)return await loadJSON(_0x37ebce,![]);if(_0x5a25f3)return await loadJSON(_0x5a25f3,!![]);return undefined;}
@@ -1 +1 @@
1
- (function(_0x38acec,_0x3300e2){const _0x13cd33=a139_0x481f,_0x25f67e=_0x38acec();while(!![]){try{const _0xf9a4f9=-parseInt(_0x13cd33(0x157))/0x1*(-parseInt(_0x13cd33(0x14a))/0x2)+-parseInt(_0x13cd33(0x151))/0x3+-parseInt(_0x13cd33(0x14c))/0x4+parseInt(_0x13cd33(0x14b))/0x5+parseInt(_0x13cd33(0x156))/0x6+parseInt(_0x13cd33(0x154))/0x7*(parseInt(_0x13cd33(0x153))/0x8)+-parseInt(_0x13cd33(0x152))/0x9;if(_0xf9a4f9===_0x3300e2)break;else _0x25f67e['push'](_0x25f67e['shift']());}catch(_0x8f30e6){_0x25f67e['push'](_0x25f67e['shift']());}}}(a139_0x50bc,0xbe875));function a139_0x481f(_0x6e0a09,_0x59cb64){_0x6e0a09=_0x6e0a09-0x149;const _0x50bcd0=a139_0x50bc();let _0x481f1e=_0x50bcd0[_0x6e0a09];return _0x481f1e;}export function validateLimitOption(_0x21d582){const _0x2c0ed2=a139_0x481f;if(!Number[_0x2c0ed2(0x149)](_0x21d582))return{'isValid':![],'error':_0x2c0ed2(0x150)+_0x21d582+_0x2c0ed2(0x14e)};if(_0x21d582<=0x0)return{'isValid':![],'error':_0x2c0ed2(0x150)+_0x21d582+_0x2c0ed2(0x155)};return{'isValid':!![],'value':_0x21d582};}function a139_0x50bc(){const _0x87d8b8=['4311645XeEojT','1759404JUeacw','number','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20positive\x20number.','Invalid\x20limit\x20value:\x20','1097028UJUTLl','24372585vYdXxI','3512632mPSELr','21crHfNu','.\x20Must\x20be\x20a\x20positive\x20integer.','6629346zgcGUL','72110hlkViP','Invalid\x20timeout\x20value:\x20','isInteger','28iPxSVI'];a139_0x50bc=function(){return _0x87d8b8;};return a139_0x50bc();}export function validateTimeoutOption(_0x48c02a,_0x38d079=0x1e){const _0x1c37e2=a139_0x481f;if(_0x48c02a===undefined)return{'isValid':!![],'value':_0x38d079};const _0x41ecfa=typeof _0x48c02a===_0x1c37e2(0x14d)?_0x48c02a:parseFloat(_0x48c02a);if(isNaN(_0x41ecfa))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x48c02a+'.\x20Must\x20be\x20a\x20number.'};if(_0x41ecfa<=0x0)return{'isValid':![],'error':_0x1c37e2(0x158)+_0x41ecfa+_0x1c37e2(0x14f)};return{'isValid':!![],'value':_0x41ecfa};}
1
+ function a141_0x1352(){const _0x216f38=['.\x20Must\x20be\x20a\x20positive\x20integer.','isInteger','.\x20Must\x20be\x20an\x20integer.','8abLHOS','849350ActGWM','3731838BvCQkx','63RBSyqK','Invalid\x20timeout\x20value:\x20','3qmvtaU','12bOcExK','2770472KwUAKR','2370qWjClR','Invalid\x20limit\x20value:\x20','3454016aNDmrU','7610TQfYds','476693qyHLXd','number','80213YBXqZk'];a141_0x1352=function(){return _0x216f38;};return a141_0x1352();}(function(_0x3a6ff4,_0x4d5662){const _0x39d036=a141_0x1d95,_0x285c5a=_0x3a6ff4();while(!![]){try{const _0x25431f=parseInt(_0x39d036(0xe3))/0x1*(-parseInt(_0x39d036(0xe7))/0x2)+parseInt(_0x39d036(0xec))/0x3*(parseInt(_0x39d036(0xee))/0x4)+parseInt(_0x39d036(0xf2))/0x5*(-parseInt(_0x39d036(0xef))/0x6)+-parseInt(_0x39d036(0xe1))/0x7+parseInt(_0x39d036(0xf1))/0x8+-parseInt(_0x39d036(0xea))/0x9*(-parseInt(_0x39d036(0xe8))/0xa)+-parseInt(_0x39d036(0xe9))/0xb*(parseInt(_0x39d036(0xed))/0xc);if(_0x25431f===_0x4d5662)break;else _0x285c5a['push'](_0x285c5a['shift']());}catch(_0x51c454){_0x285c5a['push'](_0x285c5a['shift']());}}}(a141_0x1352,0x5f18c));function a141_0x1d95(_0x516f2b,_0x316f80){_0x516f2b=_0x516f2b-0xe1;const _0x135277=a141_0x1352();let _0x1d950e=_0x135277[_0x516f2b];return _0x1d950e;}export function validateLimitOption(_0x513790){const _0x24bb73=a141_0x1d95;if(!Number[_0x24bb73(0xe5)](_0x513790))return{'isValid':![],'error':_0x24bb73(0xf0)+_0x513790+_0x24bb73(0xe6)};if(_0x513790<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x513790+_0x24bb73(0xe4)};return{'isValid':!![],'value':_0x513790};}export function validateTimeoutOption(_0x46155b,_0x5be005=0x1e){const _0x1098b7=a141_0x1d95;if(_0x46155b===undefined)return{'isValid':!![],'value':_0x5be005};const _0x396d83=typeof _0x46155b===_0x1098b7(0xe2)?_0x46155b:parseFloat(_0x46155b);if(isNaN(_0x396d83))return{'isValid':![],'error':_0x1098b7(0xeb)+_0x46155b+'.\x20Must\x20be\x20a\x20number.'};if(_0x396d83<=0x0)return{'isValid':![],'error':_0x1098b7(0xeb)+_0x396d83+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x396d83};}
@@ -1 +1 @@
1
- function a140_0x2ab3(_0x3bf6f5,_0x1f72c1){_0x3bf6f5=_0x3bf6f5-0x102;const _0x37aecf=a140_0x37ae();let _0x2ab353=_0x37aecf[_0x3bf6f5];return _0x2ab353;}(function(_0x334442,_0x53272b){const _0x23ae92=a140_0x2ab3,_0x1ec24e=_0x334442();while(!![]){try{const _0x319ae3=parseInt(_0x23ae92(0x107))/0x1+-parseInt(_0x23ae92(0x10c))/0x2*(parseInt(_0x23ae92(0x111))/0x3)+-parseInt(_0x23ae92(0x108))/0x4+-parseInt(_0x23ae92(0x104))/0x5+-parseInt(_0x23ae92(0x106))/0x6*(-parseInt(_0x23ae92(0x110))/0x7)+parseInt(_0x23ae92(0x10e))/0x8+-parseInt(_0x23ae92(0x112))/0x9;if(_0x319ae3===_0x53272b)break;else _0x1ec24e['push'](_0x1ec24e['shift']());}catch(_0x1c630f){_0x1ec24e['push'](_0x1ec24e['shift']());}}}(a140_0x37ae,0xc6116));import{createServer}from'node:net';function a140_0x37ae(){const _0x3d43bd=['4854gGXKCp','23479650ExBUaT','close','No\x20available\x20port\x20found\x20between\x20','1921220zWOHsR','code','11718GRLldO','1478885NJdOHR','418632bJpCka','once','error','0.0.0.0','460CmyQLw','EADDRINUSE','9825400tfSJiU','listen','5642FsdCCs'];a140_0x37ae=function(){return _0x3d43bd;};return a140_0x37ae();}export async function isPortAvailable(_0x106ac4){return new Promise(_0x1a108b=>{const _0x5098b4=a140_0x2ab3,_0x3dbb07=createServer();_0x3dbb07[_0x5098b4(0x109)](_0x5098b4(0x10a),_0x3b007e=>{const _0x118cf7=_0x5098b4;_0x3b007e[_0x118cf7(0x105)]===_0x118cf7(0x10d)?_0x1a108b(![]):_0x1a108b(![]);}),_0x3dbb07[_0x5098b4(0x109)]('listening',()=>{const _0x54b50a=_0x5098b4;_0x3dbb07[_0x54b50a(0x102)](),_0x1a108b(!![]);}),_0x3dbb07[_0x5098b4(0x10f)](_0x106ac4,_0x5098b4(0x10b));});}export async function findAvailablePort(_0x4829d3=0xfa0,_0x47eb7f=0x64){const _0x4e7921=a140_0x2ab3;for(let _0x5ed104=0x0;_0x5ed104<_0x47eb7f;_0x5ed104++){const _0x7320c7=_0x4829d3+_0x5ed104;if(await isPortAvailable(_0x7320c7))return _0x7320c7;}throw new Error(_0x4e7921(0x103)+_0x4829d3+'\x20and\x20'+(_0x4829d3+_0x47eb7f-0x1));}
1
+ (function(_0x3fee4c,_0x177389){const _0x2aa513=a142_0x4974,_0x2a0e06=_0x3fee4c();while(!![]){try{const _0x2eee45=parseInt(_0x2aa513(0x14c))/0x1+-parseInt(_0x2aa513(0x14a))/0x2*(parseInt(_0x2aa513(0x158))/0x3)+-parseInt(_0x2aa513(0x152))/0x4*(-parseInt(_0x2aa513(0x159))/0x5)+parseInt(_0x2aa513(0x14e))/0x6+-parseInt(_0x2aa513(0x155))/0x7+parseInt(_0x2aa513(0x14f))/0x8+parseInt(_0x2aa513(0x157))/0x9*(-parseInt(_0x2aa513(0x154))/0xa);if(_0x2eee45===_0x177389)break;else _0x2a0e06['push'](_0x2a0e06['shift']());}catch(_0x317a68){_0x2a0e06['push'](_0x2a0e06['shift']());}}}(a142_0x36f2,0x68ae6));import{createServer}from'node:net';export async function isPortAvailable(_0x377fb8){return new Promise(_0x3ebae1=>{const _0x31544d=a142_0x4974,_0x5c5666=createServer();_0x5c5666[_0x31544d(0x149)]('error',_0x414ec1=>{const _0x4e5280=_0x31544d;_0x414ec1[_0x4e5280(0x14d)]===_0x4e5280(0x156)?_0x3ebae1(![]):_0x3ebae1(![]);}),_0x5c5666[_0x31544d(0x149)](_0x31544d(0x151),()=>{const _0x183742=_0x31544d;_0x5c5666[_0x183742(0x14b)](),_0x3ebae1(!![]);}),_0x5c5666['listen'](_0x377fb8,_0x31544d(0x150));});}export async function findAvailablePort(_0x53170d=0xfa0,_0x990eea=0x64){const _0x338b5c=a142_0x4974;for(let _0x14c1b1=0x0;_0x14c1b1<_0x990eea;_0x14c1b1++){const _0x114cc8=_0x53170d+_0x14c1b1;if(await isPortAvailable(_0x114cc8))return _0x114cc8;}throw new Error(_0x338b5c(0x15a)+_0x53170d+_0x338b5c(0x153)+(_0x53170d+_0x990eea-0x1));}function a142_0x4974(_0x16e69a,_0x1d5162){_0x16e69a=_0x16e69a-0x149;const _0x36f284=a142_0x36f2();let _0x497431=_0x36f284[_0x16e69a];return _0x497431;}function a142_0x36f2(){const _0x1f3db8=['No\x20available\x20port\x20found\x20between\x20','once','58pzxujN','close','387517ApCKZq','code','3891156bXygqQ','6794576RJLgVR','0.0.0.0','listening','627952qbFIGT','\x20and\x20','10yCCgdb','5317193TicAhU','EADDRINUSE','4644387Uxkhvj','34959CJxDWV','5HEcZzj'];a142_0x36f2=function(){return _0x1f3db8;};return a142_0x36f2();}
@@ -1 +1 @@
1
- const a141_0x2ed376=a141_0x4ecc;(function(_0x1b9d03,_0x575189){const _0x49ad60=a141_0x4ecc,_0x1a5685=_0x1b9d03();while(!![]){try{const _0x5e7255=parseInt(_0x49ad60(0x1eb))/0x1*(-parseInt(_0x49ad60(0x1e6))/0x2)+-parseInt(_0x49ad60(0x1ff))/0x3+-parseInt(_0x49ad60(0x203))/0x4*(-parseInt(_0x49ad60(0x1fa))/0x5)+-parseInt(_0x49ad60(0x204))/0x6+parseInt(_0x49ad60(0x1fb))/0x7*(parseInt(_0x49ad60(0x1e1))/0x8)+-parseInt(_0x49ad60(0x1e4))/0x9*(-parseInt(_0x49ad60(0x1f0))/0xa)+parseInt(_0x49ad60(0x1ea))/0xb;if(_0x5e7255===_0x575189)break;else _0x1a5685['push'](_0x1a5685['shift']());}catch(_0x59f47e){_0x1a5685['push'](_0x1a5685['shift']());}}}(a141_0x4b14,0x49fca));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a141_0x2ed376(0x1f7),a141_0x2ed376(0x202),'sh',a141_0x2ed376(0x205),'ksh','tcsh',a141_0x2ed376(0x1f3),'dash',a141_0x2ed376(0x1fd),a141_0x2ed376(0x1f4),'nu',a141_0x2ed376(0x1e7),a141_0x2ed376(0x201),'xonsh']),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a141_0x2ed376(0x1e8),a141_0x2ed376(0x1dd)]);function getProcessInfoWindows(_0x5afd7e){const _0x4397a4=a141_0x2ed376;try{if(!Number[_0x4397a4(0x1ed)](_0x5afd7e)||_0x5afd7e<=0x0)return null;const _0x478ad6=execSync(_0x4397a4(0x1f9)+_0x5afd7e+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x4397a4(0x1fe),'windowsHide':!![]})[_0x4397a4(0x1f1)](),_0x382a4f=_0x478ad6[_0x4397a4(0x1f2)]('\x0a')['filter'](_0x28a178=>_0x28a178[_0x4397a4(0x1f1)]());if(_0x382a4f[_0x4397a4(0x1ec)]<0x2)return null;const _0x44fc8b=_0x382a4f[_0x382a4f[_0x4397a4(0x1ec)]-0x1][_0x4397a4(0x1f2)](',');if(_0x44fc8b[_0x4397a4(0x1ec)]<0x3)return null;const _0x12f763=_0x44fc8b[0x1]?.['trim']()||'',_0x1eaa1d=parseInt(_0x44fc8b[0x2]?.[_0x4397a4(0x1f1)]()||'0',0xa);if(isNaN(_0x1eaa1d)||!_0x12f763)return null;return{'pid':_0x5afd7e,'ppid':_0x1eaa1d,'comm':_0x12f763['replace'](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x339baf){const _0x7cf51e=a141_0x2ed376;try{const _0x2532d5=0x400000;if(!Number[_0x7cf51e(0x1ed)](_0x339baf)||_0x339baf<=0x0||_0x339baf>_0x2532d5)return null;const _0x42d278=execSync(_0x7cf51e(0x1fc)+_0x339baf+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x7cf51e(0x1e2)})[_0x7cf51e(0x1f1)](),[_0xaed473,..._0x4e8daf]=_0x42d278['split'](/\s+/),_0x4d88b0=parseInt(_0xaed473,0xa),_0x4d2997=_0x4e8daf[_0x7cf51e(0x1f5)]('\x20');if(isNaN(_0x4d88b0))return null;return{'pid':_0x339baf,'ppid':_0x4d88b0,'comm':_0x4d2997};}catch{return null;}}function getProcessInfo(_0x5c4bc6){if(process['platform']==='win32')return getProcessInfoWindows(_0x5c4bc6);return getProcessInfoPosix(_0x5c4bc6);}function getBasename(_0x34ecc8){const _0x3294af=a141_0x2ed376;return _0x34ecc8['replace'](/^-/,'')[_0x3294af(0x1f2)]('/')['pop']()?.[_0x3294af(0x1df)]()||'';}function a141_0x4b14(){const _0x4c98ea=['935796HKGtLd','darwin','elvish','zsh','4PTjrBv','1910424kgwseV','fish','cursor','xdg-open','toLowerCase','start','47576QBgBbL','pipe','comm','165582sKComY','open','6XYmaZS','ion','code','ignore','6748621trexSP','199594RpxiVG','length','isInteger','has','platform','290AhTWQi','trim','split','csh','powershell','join','pid','bash','ppid','wmic\x20process\x20where\x20ProcessId=','379355NglwWS','364nwSTts','ps\x20-p\x20','pwsh','utf-8'];a141_0x4b14=function(){return _0x4c98ea;};return a141_0x4b14();}function isShell(_0x5d3eff){const _0x358978=a141_0x2ed376;return SHELL_NAMES[_0x358978(0x1ee)](getBasename(_0x5d3eff));}function isEphemeralShellSpawner(_0xbe789){const _0x4817ba=a141_0x2ed376;return EPHEMERAL_SHELL_SPAWNERS[_0x4817ba(0x1ee)](getBasename(_0xbe789));}function a141_0x4ecc(_0x4aaee1,_0x42fad0){_0x4aaee1=_0x4aaee1-0x1dd;const _0x4b14fd=a141_0x4b14();let _0x4ecc07=_0x4b14fd[_0x4aaee1];return _0x4ecc07;}let cachedShellPID;function findShellPID(){const _0x4a1557=a141_0x2ed376;if(process['ppid']===undefined)return process[_0x4a1557(0x1f6)];let _0x57daf2=process[_0x4a1557(0x1f8)];const _0x30292d=0xa;let _0x18f240=0x0;while(_0x18f240<_0x30292d){const _0x463341=getProcessInfo(_0x57daf2);if(!_0x463341)break;if(isShell(_0x463341[_0x4a1557(0x1e3)])){const _0x172332=getProcessInfo(_0x463341['ppid']);if(_0x172332&&isEphemeralShellSpawner(_0x172332['comm'])){_0x57daf2=_0x463341[_0x4a1557(0x1f8)],_0x18f240++;continue;}return _0x463341[_0x4a1557(0x1f6)];}if(_0x463341[_0x4a1557(0x1f8)]===0x0||_0x463341[_0x4a1557(0x1f8)]===0x1){if(isShell(_0x463341[_0x4a1557(0x1e3)]))return _0x463341['pid'];break;}_0x57daf2=_0x463341[_0x4a1557(0x1f8)],_0x18f240++;}return process[_0x4a1557(0x1f8)]!==undefined?process['ppid']:process[_0x4a1557(0x1f6)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x4fe8ef){const _0x2fd2b9=a141_0x2ed376;if(!Number[_0x2fd2b9(0x1ed)](_0x4fe8ef)||_0x4fe8ef<=0x0)return![];try{return process['kill'](_0x4fe8ef,0x0),!![];}catch{return![];}}export function openBrowser(_0x5299c6){const _0x309f5d=a141_0x2ed376,_0x1cd384=process[_0x309f5d(0x1ef)],_0x1f6a56=_0x1cd384===_0x309f5d(0x200)?_0x309f5d(0x1e5):_0x1cd384==='win32'?_0x309f5d(0x1e0):_0x309f5d(0x1de);spawn(_0x1f6a56,[_0x5299c6],{'detached':!![],'stdio':_0x309f5d(0x1e9)})['unref']();}
1
+ const a143_0x5afb32=a143_0x338a;(function(_0x3e090d,_0x4773e3){const _0x228a8b=a143_0x338a,_0x8fdd1f=_0x3e090d();while(!![]){try{const _0x3672e8=-parseInt(_0x228a8b(0x117))/0x1+-parseInt(_0x228a8b(0x112))/0x2*(parseInt(_0x228a8b(0x10c))/0x3)+-parseInt(_0x228a8b(0xff))/0x4+-parseInt(_0x228a8b(0xf1))/0x5+-parseInt(_0x228a8b(0xfc))/0x6*(-parseInt(_0x228a8b(0xfe))/0x7)+-parseInt(_0x228a8b(0x10d))/0x8*(parseInt(_0x228a8b(0xf8))/0x9)+-parseInt(_0x228a8b(0x116))/0xa*(-parseInt(_0x228a8b(0x102))/0xb);if(_0x3672e8===_0x4773e3)break;else _0x8fdd1f['push'](_0x8fdd1f['shift']());}catch(_0x113978){_0x8fdd1f['push'](_0x8fdd1f['shift']());}}}(a143_0x1ecf,0x253d2));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a143_0x5afb32(0x103),a143_0x5afb32(0xf2),'sh',a143_0x5afb32(0x104),'ksh',a143_0x5afb32(0xfd),a143_0x5afb32(0x106),'dash',a143_0x5afb32(0x11a),a143_0x5afb32(0xee),'nu',a143_0x5afb32(0x111),a143_0x5afb32(0xf0),a143_0x5afb32(0x10e)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a143_0x5afb32(0xfa),a143_0x5afb32(0x115),a143_0x5afb32(0x11b)]);function getProcessInfoWindows(_0x581c58){const _0x1b8b6a=a143_0x5afb32;try{if(!Number[_0x1b8b6a(0x119)](_0x581c58)||_0x581c58<=0x0)return null;const _0x147a8b=execSync(_0x1b8b6a(0x10a)+_0x581c58+_0x1b8b6a(0xf4),{'encoding':'utf-8','windowsHide':!![]})['trim'](),_0x5e35d4=_0x147a8b[_0x1b8b6a(0x101)]('\x0a')[_0x1b8b6a(0x110)](_0x47c675=>_0x47c675['trim']());if(_0x5e35d4[_0x1b8b6a(0x114)]<0x2)return null;const _0x1eddf1=_0x5e35d4[_0x5e35d4[_0x1b8b6a(0x114)]-0x1]['split'](',');if(_0x1eddf1[_0x1b8b6a(0x114)]<0x3)return null;const _0x47803b=_0x1eddf1[0x1]?.['trim']()||'',_0x4b6f39=parseInt(_0x1eddf1[0x2]?.[_0x1b8b6a(0xf5)]()||'0',0xa);if(isNaN(_0x4b6f39)||!_0x47803b)return null;return{'pid':_0x581c58,'ppid':_0x4b6f39,'comm':_0x47803b[_0x1b8b6a(0x109)](/\.exe$/i,'')};}catch{return null;}}function getProcessInfoPosix(_0x54f2fb){const _0x243558=a143_0x5afb32;try{const _0x37928b=0x400000;if(!Number[_0x243558(0x119)](_0x54f2fb)||_0x54f2fb<=0x0||_0x54f2fb>_0x37928b)return null;const _0x481934=execSync(_0x243558(0x107)+_0x54f2fb+'\x20-o\x20ppid=,comm=',{'encoding':'utf-8','stdio':_0x243558(0x113)})['trim'](),[_0x1c5e05,..._0x490426]=_0x481934['split'](/\s+/),_0x56d9a5=parseInt(_0x1c5e05,0xa),_0x4ae17d=_0x490426['join']('\x20');if(isNaN(_0x56d9a5))return null;return{'pid':_0x54f2fb,'ppid':_0x56d9a5,'comm':_0x4ae17d};}catch{return null;}}function getProcessInfo(_0x4577d7){const _0x19ab26=a143_0x5afb32;if(process[_0x19ab26(0x10b)]===_0x19ab26(0xf6))return getProcessInfoWindows(_0x4577d7);return getProcessInfoPosix(_0x4577d7);}function getBasename(_0x33281e){const _0x3fb703=a143_0x5afb32;return _0x33281e[_0x3fb703(0x109)](/^-/,'')[_0x3fb703(0x101)]('/')[_0x3fb703(0xfb)]()?.['toLowerCase']()||'';}function a143_0x338a(_0xd8b6fa,_0xd6be53){_0xd8b6fa=_0xd8b6fa-0xee;const _0x1ecf4f=a143_0x1ecf();let _0x338aa1=_0x1ecf4f[_0xd8b6fa];return _0x338aa1;}function isShell(_0x1c6baa){const _0x5c3f99=a143_0x5afb32;return SHELL_NAMES[_0x5c3f99(0x10f)](getBasename(_0x1c6baa));}function a143_0x1ecf(){const _0x302480=['platform','48ERHryh','1736qtVDQw','xonsh','has','filter','ion','36724LZhptk','pipe','length','code','11320570WDjbTD','130937eXtaLx','pid','isInteger','pwsh','cursor','powershell','darwin','elvish','495530sjJBAo','zsh','comm','\x20get\x20ParentProcessId,Name\x20/format:csv','trim','win32','open','8784zAgeaU','ppid','claude','pop','5862XHRsQW','tcsh','273SbBANI','1128012rsDPch','unref','split','11HxTMGo','bash','fish','xdg-open','csh','ps\x20-p\x20','start','replace','wmic\x20process\x20where\x20ProcessId='];a143_0x1ecf=function(){return _0x302480;};return a143_0x1ecf();}function isEphemeralShellSpawner(_0x25c712){const _0x254506=a143_0x5afb32;return EPHEMERAL_SHELL_SPAWNERS[_0x254506(0x10f)](getBasename(_0x25c712));}let cachedShellPID;function findShellPID(){const _0x490e43=a143_0x5afb32;if(process[_0x490e43(0xf9)]===undefined)return process[_0x490e43(0x118)];let _0x235abd=process[_0x490e43(0xf9)];const _0x4e2c6b=0xa;let _0x283156=0x0;while(_0x283156<_0x4e2c6b){const _0x2bb3d6=getProcessInfo(_0x235abd);if(!_0x2bb3d6)break;if(isShell(_0x2bb3d6['comm'])){const _0x5714a3=getProcessInfo(_0x2bb3d6[_0x490e43(0xf9)]);if(_0x5714a3&&isEphemeralShellSpawner(_0x5714a3['comm'])){_0x235abd=_0x2bb3d6[_0x490e43(0xf9)],_0x283156++;continue;}return _0x2bb3d6[_0x490e43(0x118)];}if(_0x2bb3d6[_0x490e43(0xf9)]===0x0||_0x2bb3d6['ppid']===0x1){if(isShell(_0x2bb3d6[_0x490e43(0xf3)]))return _0x2bb3d6[_0x490e43(0x118)];break;}_0x235abd=_0x2bb3d6[_0x490e43(0xf9)],_0x283156++;}return process[_0x490e43(0xf9)]!==undefined?process[_0x490e43(0xf9)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x52a6cf){const _0x38b434=a143_0x5afb32;if(!Number[_0x38b434(0x119)](_0x52a6cf)||_0x52a6cf<=0x0)return![];try{return process['kill'](_0x52a6cf,0x0),!![];}catch{return![];}}export function openBrowser(_0x4d824a){const _0x1e3eb9=a143_0x5afb32,_0x364b63=process['platform'],_0xb2773=_0x364b63===_0x1e3eb9(0xef)?_0x1e3eb9(0xf7):_0x364b63===_0x1e3eb9(0xf6)?_0x1e3eb9(0x108):_0x1e3eb9(0x105);spawn(_0xb2773,[_0x4d824a],{'detached':!![],'stdio':'ignore'})[_0x1e3eb9(0x100)]();}
@@ -1 +1 @@
1
- (function(_0x4f1870,_0x168c6e){const _0x29915c=a142_0x48bb,_0x11a1c1=_0x4f1870();while(!![]){try{const _0x5c09c5=parseInt(_0x29915c(0x14a))/0x1+-parseInt(_0x29915c(0x151))/0x2+parseInt(_0x29915c(0x15b))/0x3*(-parseInt(_0x29915c(0x158))/0x4)+-parseInt(_0x29915c(0x147))/0x5*(-parseInt(_0x29915c(0x150))/0x6)+parseInt(_0x29915c(0x14e))/0x7+-parseInt(_0x29915c(0x14b))/0x8+-parseInt(_0x29915c(0x14d))/0x9*(-parseInt(_0x29915c(0x14f))/0xa);if(_0x5c09c5===_0x168c6e)break;else _0x11a1c1['push'](_0x11a1c1['shift']());}catch(_0x315881){_0x11a1c1['push'](_0x11a1c1['shift']());}}}(a142_0x16cf,0x88721));function a142_0x16cf(){const _0x51ff4f=['stdin','data','write','\x20[y/N]\x20','removeListener','toLowerCase','284DqCqSI','yes','createInterface','12018DpsOvy','stderr','utf8','5CexgqW','setRawMode','close','407469FsLIKd','4863504znPYju','isTTY','11601009IEuOEd','2449153kUsAlD','10VKNgmq','161874vUNTdF','1244166OKkCgm'];a142_0x16cf=function(){return _0x51ff4f;};return a142_0x16cf();}function a142_0x48bb(_0x43ab1d,_0x1a81d8){_0x43ab1d=_0x43ab1d-0x146;const _0x16cffc=a142_0x16cf();let _0x48bbb7=_0x16cffc[_0x43ab1d];return _0x48bbb7;}import*as a142_0x5c46ab from'readline';export async function confirm(_0x45c8af){const _0x2ef1e9=a142_0x48bb,_0x5caa04=a142_0x5c46ab[_0x2ef1e9(0x15a)]({'input':process[_0x2ef1e9(0x152)],'output':process['stdout']});return new Promise(_0x4b6514=>{_0x5caa04['question'](_0x45c8af+'\x20(y/N):\x20',_0x1023d8=>{const _0x5ac9d8=a142_0x48bb;_0x5caa04[_0x5ac9d8(0x149)](),_0x4b6514(_0x1023d8[_0x5ac9d8(0x157)]()==='y'||_0x1023d8[_0x5ac9d8(0x157)]()===_0x5ac9d8(0x159));});});}export async function confirmKey(_0x3d3099){const _0x2967fb=a142_0x48bb;if(!process[_0x2967fb(0x152)][_0x2967fb(0x14c)])return![];return process[_0x2967fb(0x15c)][_0x2967fb(0x154)](_0x3d3099+_0x2967fb(0x155)),new Promise(_0x1fabb8=>{const _0x174734=_0x2967fb,_0x5ec97e=process['stdin'];_0x5ec97e['setRawMode'](!![]),_0x5ec97e['resume'](),_0x5ec97e['setEncoding'](_0x174734(0x146));const _0x1e41cc=_0x17734b=>{const _0x123314=_0x174734;_0x5ec97e[_0x123314(0x148)](![]),_0x5ec97e['pause'](),_0x5ec97e[_0x123314(0x156)](_0x123314(0x153),_0x1e41cc);if(_0x17734b==='\x1b'){process[_0x123314(0x15c)][_0x123314(0x154)]('\x0a'),_0x1fabb8(![]);return;}_0x17734b==='\x03'&&(process[_0x123314(0x15c)][_0x123314(0x154)]('\x0a'),process['exit'](0x82));if(_0x17734b[_0x123314(0x157)]()==='y'){process['stderr'][_0x123314(0x154)]('y\x0a'),_0x1fabb8(!![]);return;}process[_0x123314(0x15c)][_0x123314(0x154)]('\x0a'),_0x1fabb8(![]);};_0x5ec97e['on'](_0x174734(0x153),_0x1e41cc);});}
1
+ function a144_0x8a1e(_0x290d5c,_0x948361){_0x290d5c=_0x290d5c-0xa6;const _0x102a4b=a144_0x102a();let _0x8a1e65=_0x102a4b[_0x290d5c];return _0x8a1e65;}(function(_0x59e2fd,_0x48c33d){const _0x458fcb=a144_0x8a1e,_0x560891=_0x59e2fd();while(!![]){try{const _0x29ee67=-parseInt(_0x458fcb(0xa9))/0x1*(-parseInt(_0x458fcb(0xb5))/0x2)+parseInt(_0x458fcb(0xab))/0x3*(parseInt(_0x458fcb(0xb1))/0x4)+parseInt(_0x458fcb(0xae))/0x5+-parseInt(_0x458fcb(0xb0))/0x6+parseInt(_0x458fcb(0xa8))/0x7*(-parseInt(_0x458fcb(0xaf))/0x8)+parseInt(_0x458fcb(0xb8))/0x9*(parseInt(_0x458fcb(0xb4))/0xa)+-parseInt(_0x458fcb(0xbc))/0xb;if(_0x29ee67===_0x48c33d)break;else _0x560891['push'](_0x560891['shift']());}catch(_0x89a78e){_0x560891['push'](_0x560891['shift']());}}}(a144_0x102a,0x24d1d));import*as a144_0x47efd3 from'readline';export async function confirm(_0x580bec){const _0x1c8060=a144_0x8a1e,_0x46b518=a144_0x47efd3['createInterface']({'input':process[_0x1c8060(0xaa)],'output':process[_0x1c8060(0xa6)]});return new Promise(_0xf27abf=>{const _0x11f68d=_0x1c8060;_0x46b518[_0x11f68d(0xb6)](_0x580bec+'\x20(y/N):\x20',_0x547689=>{const _0x121138=_0x11f68d;_0x46b518['close'](),_0xf27abf(_0x547689[_0x121138(0xac)]()==='y'||_0x547689[_0x121138(0xac)]()===_0x121138(0xb3));});});}export async function confirmKey(_0x41a1d9){const _0x2044ba=a144_0x8a1e;if(!process[_0x2044ba(0xaa)]['isTTY'])return![];return process[_0x2044ba(0xba)]['write'](_0x41a1d9+'\x20[y/N]\x20'),new Promise(_0x104f7a=>{const _0x27632d=_0x2044ba,_0x2334e2=process['stdin'];_0x2334e2[_0x27632d(0xad)](!![]),_0x2334e2['resume'](),_0x2334e2['setEncoding'](_0x27632d(0xb7));const _0x5d5458=_0x462075=>{const _0x2997d0=_0x27632d;_0x2334e2[_0x2997d0(0xad)](![]),_0x2334e2['pause'](),_0x2334e2[_0x2997d0(0xb2)](_0x2997d0(0xb9),_0x5d5458);if(_0x462075==='\x1b'){process[_0x2997d0(0xba)][_0x2997d0(0xbb)]('\x0a'),_0x104f7a(![]);return;}_0x462075==='\x03'&&(process[_0x2997d0(0xba)]['write']('\x0a'),process[_0x2997d0(0xa7)](0x82));if(_0x462075[_0x2997d0(0xac)]()==='y'){process[_0x2997d0(0xba)][_0x2997d0(0xbb)]('y\x0a'),_0x104f7a(!![]);return;}process[_0x2997d0(0xba)]['write']('\x0a'),_0x104f7a(![]);};_0x2334e2['on']('data',_0x5d5458);});}function a144_0x102a(){const _0x1b1e16=['exit','15281DZgNGQ','145777obinip','stdin','620439oYodoe','toLowerCase','setRawMode','1504805RMmCWf','152DftRkl','195006NQmIns','4nrJSrj','removeListener','yes','26070afgQlF','4aBnFuz','question','utf8','927kqRFxp','data','stderr','write','9273638ZKkuUW','stdout'];a144_0x102a=function(){return _0x1b1e16;};return a144_0x102a();}
@@ -1 +1 @@
1
- (function(_0xef50ee,_0xa85ef2){const _0xdf024d=a143_0x33b7,_0x3e9d2f=_0xef50ee();while(!![]){try{const _0x223366=-parseInt(_0xdf024d(0xfd))/0x1+-parseInt(_0xdf024d(0x10a))/0x2+parseInt(_0xdf024d(0x10b))/0x3+-parseInt(_0xdf024d(0x105))/0x4*(parseInt(_0xdf024d(0x100))/0x5)+-parseInt(_0xdf024d(0xfc))/0x6+parseInt(_0xdf024d(0x108))/0x7+parseInt(_0xdf024d(0x113))/0x8;if(_0x223366===_0xa85ef2)break;else _0x3e9d2f['push'](_0x3e9d2f['shift']());}catch(_0x547aea){_0x3e9d2f['push'](_0x3e9d2f['shift']());}}}(a143_0x1d18,0xa2e9b));import a143_0x40c4b6 from'ora';function a143_0x33b7(_0x484a4d,_0x115e56){_0x484a4d=_0x484a4d-0xfc;const _0x1d18b4=a143_0x1d18();let _0x33b74b=_0x1d18b4[_0x484a4d];return _0x33b74b;}export function createCommandSpinner(_0x30592a,_0x30df6e={}){const _0x5e038a=a143_0x33b7,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x30df6e;return a143_0x40c4b6({'text':_0x30592a,'color':_0x5e038a(0x106),'stream':process[_0x5e038a(0x107)],'isEnabled':forceEnabled||process['stderr'][_0x5e038a(0x10c)]&&!verbose});}export async function withSpinner(_0x2b50af,_0x121c1a,_0x27230b={}){const _0x26f6e6=a143_0x33b7,_0x4df6fe=_0x27230b[_0x26f6e6(0x109)]??(()=>Date[_0x26f6e6(0x101)]()),_0x3ea956=createCommandSpinner(_0x2b50af,_0x27230b);_0x3ea956[_0x26f6e6(0x112)]();const _0x4e2a2c=_0x4df6fe();try{const _0x267bcd=await _0x121c1a(),_0x13581f=_0x4df6fe()-_0x4e2a2c;return _0x3ea956[_0x26f6e6(0xff)](),{'data':_0x267bcd,'elapsedMs':_0x13581f};}catch(_0x49fb73){_0x3ea956[_0x26f6e6(0xff)]();throw _0x49fb73;}}export async function withProgressSpinner(_0x3911f4,_0x13f1f7,_0x234119={}){const _0x110b60=a143_0x33b7,_0x53bce7=_0x234119[_0x110b60(0x109)]??(()=>Date[_0x110b60(0x101)]()),_0x34849d=_0x234119[_0x110b60(0x111)]??setInterval,_0x1b0d4a=createCommandSpinner(_0x3911f4,_0x234119);_0x1b0d4a[_0x110b60(0x112)]();const _0x4e0b09=_0x53bce7(),_0x7e9920=_0x3911f4[_0x110b60(0x10e)]('...','')[_0x110b60(0x103)]()||'Processing',_0x3246a5={};let _0x54f184=_0x3911f4;const _0x488213=()=>{const _0x28ad1f=_0x110b60;if(!_0x1b0d4a[_0x28ad1f(0x10d)])return;const _0x5d0cd1=_0x53bce7()-_0x4e0b09,_0x159370=formatElapsed(_0x5d0cd1),_0x1e3c6c=_0x3246a5[_0x28ad1f(0xfe)]?.[_0x28ad1f(0x103)]()||_0x7e9920,_0x4bd404=_0x3246a5[_0x28ad1f(0x102)]?_0x28ad1f(0x115)+_0x3246a5[_0x28ad1f(0x102)]+']':'',_0x5af443=_0x3246a5[_0x28ad1f(0x104)]?'\x20'+_0x3246a5[_0x28ad1f(0x104)]:'',_0x1da777=_0x1e3c6c+'\x20'+_0x159370+_0x5af443+_0x4bd404;_0x1da777!==_0x54f184&&_0x1da777[_0x28ad1f(0x103)]()&&(_0x1b0d4a[_0x28ad1f(0x114)]=_0x1da777,_0x54f184=_0x1da777);},_0x580ae5=_0x34849d(()=>{_0x488213();},0x3e8),_0x1b3a0d={'setPhase':_0x56d8ce=>{const _0x1f7852=_0x110b60;_0x3246a5[_0x1f7852(0xfe)]=_0x56d8ce;const _0x1bc689=_0x56d8ce?.[_0x1f7852(0x103)]()||_0x7e9920,_0x46be2d=_0x53bce7()-_0x4e0b09,_0x4b41e3=formatElapsed(_0x46be2d),_0x50dc2c=_0x3246a5['jobId']?_0x1f7852(0x115)+_0x3246a5[_0x1f7852(0x102)]+']':'',_0x13b867=_0x3246a5[_0x1f7852(0x104)]?'\x20'+_0x3246a5[_0x1f7852(0x104)]:'',_0xf43736=_0x1bc689+'\x20'+_0x4b41e3+_0x13b867+_0x50dc2c;_0x1b0d4a[_0x1f7852(0x10d)]&&_0xf43736[_0x1f7852(0x103)]()&&(_0x1b0d4a['text']=_0xf43736,_0x54f184=_0xf43736);},'setJobId':_0x3992b1=>{const _0x1dd1cc=_0x110b60;_0x3246a5[_0x1dd1cc(0x102)]=_0x3992b1,_0x488213();},'setExtra':_0x4951ad=>{const _0x28d418=_0x110b60;_0x3246a5[_0x28d418(0x104)]=_0x4951ad,_0x488213();}};_0x488213();try{const _0x50fe40=await _0x13f1f7(_0x1b3a0d),_0x4c6e53=_0x53bce7()-_0x4e0b09;return{'data':_0x50fe40,'elapsedMs':_0x4c6e53};}finally{clearInterval(_0x580ae5),_0x1b0d4a[_0x110b60(0xff)]();}}function a143_0x1d18(){const _0x185452=['9894384UswPrN','text','\x20[Job\x20ID:\x20','4671180shYFuw','278535PMfkYL','phase','stop','5405wLxDok','now','jobId','trim','extra','3452DlzVth','cyan','stderr','8280552bVIAEL','clock','1484444MdOjBq','2939241IUSbBn','isTTY','isSpinning','replace','floor','toFixed','intervalFactory','start'];a143_0x1d18=function(){return _0x185452;};return a143_0x1d18();}export function formatElapsed(_0x439b0e){const _0x2d2c3f=a143_0x33b7,_0x5cf1b9=Math[_0x2d2c3f(0x10f)](_0x439b0e/0x3e8);if(_0x5cf1b9<0x3c)return(_0x439b0e/0x3e8)[_0x2d2c3f(0x110)](0x1)+'s';const _0x271387=Math[_0x2d2c3f(0x10f)](_0x5cf1b9/0x3c),_0x47b5d0=_0x5cf1b9%0x3c;if(_0x271387<0x3c)return _0x271387+'m\x20'+_0x47b5d0+'s';const _0x43fd3a=Math['floor'](_0x271387/0x3c),_0x4ba6c7=_0x271387%0x3c;return _0x43fd3a+'h\x20'+_0x4ba6c7+'m';}
1
+ (function(_0x41e37f,_0x29a53a){const _0xf039a3=a145_0x5136,_0xc0def5=_0x41e37f();while(!![]){try{const _0x1e5d64=-parseInt(_0xf039a3(0x155))/0x1*(-parseInt(_0xf039a3(0x16a))/0x2)+-parseInt(_0xf039a3(0x160))/0x3*(parseInt(_0xf039a3(0x164))/0x4)+-parseInt(_0xf039a3(0x15f))/0x5*(parseInt(_0xf039a3(0x153))/0x6)+parseInt(_0xf039a3(0x166))/0x7*(parseInt(_0xf039a3(0x168))/0x8)+parseInt(_0xf039a3(0x161))/0x9+parseInt(_0xf039a3(0x167))/0xa+-parseInt(_0xf039a3(0x15c))/0xb;if(_0x1e5d64===_0x29a53a)break;else _0xc0def5['push'](_0xc0def5['shift']());}catch(_0x2c1c6c){_0xc0def5['push'](_0xc0def5['shift']());}}}(a145_0x6dff,0xc111b));import a145_0x32bec1 from'ora';export function createCommandSpinner(_0x445048,_0x11254d={}){const _0x3b353a=a145_0x5136,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x11254d;return a145_0x32bec1({'text':_0x445048,'color':_0x3b353a(0x163),'stream':process[_0x3b353a(0x156)],'isEnabled':forceEnabled||process[_0x3b353a(0x156)][_0x3b353a(0x16d)]&&!verbose});}export async function withSpinner(_0x37117b,_0x383a19,_0x58f0e8={}){const _0x5a142=a145_0x5136,_0x345fe8=_0x58f0e8[_0x5a142(0x15a)]??(()=>Date[_0x5a142(0x154)]()),_0x28dfd7=createCommandSpinner(_0x37117b,_0x58f0e8);_0x28dfd7[_0x5a142(0x152)]();const _0x221fdb=_0x345fe8();try{const _0x2ecddd=await _0x383a19(),_0x5154b2=_0x345fe8()-_0x221fdb;return _0x28dfd7['stop'](),{'data':_0x2ecddd,'elapsedMs':_0x5154b2};}catch(_0x27d3b7){_0x28dfd7[_0x5a142(0x158)]();throw _0x27d3b7;}}function a145_0x6dff(){const _0x56df2e=['floor','5499142UfBmKb','\x20[Job\x20ID:\x20','Processing','1530245oWtewJ','3MBLCbZ','10394847vtvZDj','toFixed','cyan','233048jwaVTb','isSpinning','14ttjyDu','10313730XeRsWa','1511416LatuQC','replace','210020GJDFvw','jobId','trim','isTTY','text','start','30mpWLMo','now','3kJdIMr','stderr','phase','stop','extra','clock'];a145_0x6dff=function(){return _0x56df2e;};return a145_0x6dff();}function a145_0x5136(_0x47e2dc,_0x2f0f8f){_0x47e2dc=_0x47e2dc-0x152;const _0x6dffe0=a145_0x6dff();let _0x513644=_0x6dffe0[_0x47e2dc];return _0x513644;}export async function withProgressSpinner(_0x525287,_0x5033c5,_0x1e37aa={}){const _0x3e33d1=a145_0x5136,_0x38d3c8=_0x1e37aa[_0x3e33d1(0x15a)]??(()=>Date['now']()),_0x67b51a=_0x1e37aa['intervalFactory']??setInterval,_0x42e9b2=createCommandSpinner(_0x525287,_0x1e37aa);_0x42e9b2[_0x3e33d1(0x152)]();const _0x33728f=_0x38d3c8(),_0x18eaef=_0x525287[_0x3e33d1(0x169)]('...','')['trim']()||_0x3e33d1(0x15e),_0x80a810={};let _0x30f0a4=_0x525287;const _0x270c3d=()=>{const _0x17db25=_0x3e33d1;if(!_0x42e9b2['isSpinning'])return;const _0x275b27=_0x38d3c8()-_0x33728f,_0x150061=formatElapsed(_0x275b27),_0x3a4b9b=_0x80a810[_0x17db25(0x157)]?.[_0x17db25(0x16c)]()||_0x18eaef,_0x5bb1d0=_0x80a810[_0x17db25(0x16b)]?_0x17db25(0x15d)+_0x80a810[_0x17db25(0x16b)]+']':'',_0x2df154=_0x80a810[_0x17db25(0x159)]?'\x20'+_0x80a810[_0x17db25(0x159)]:'',_0x4f39e9=_0x3a4b9b+'\x20'+_0x150061+_0x2df154+_0x5bb1d0;_0x4f39e9!==_0x30f0a4&&_0x4f39e9[_0x17db25(0x16c)]()&&(_0x42e9b2[_0x17db25(0x16e)]=_0x4f39e9,_0x30f0a4=_0x4f39e9);},_0x22c1c0=_0x67b51a(()=>{_0x270c3d();},0x3e8),_0x32a46a={'setPhase':_0x3a3fbd=>{const _0x403119=_0x3e33d1;_0x80a810[_0x403119(0x157)]=_0x3a3fbd;const _0x4bb8db=_0x3a3fbd?.['trim']()||_0x18eaef,_0x127265=_0x38d3c8()-_0x33728f,_0x22d8db=formatElapsed(_0x127265),_0xc1ca40=_0x80a810[_0x403119(0x16b)]?_0x403119(0x15d)+_0x80a810['jobId']+']':'',_0x13e996=_0x80a810[_0x403119(0x159)]?'\x20'+_0x80a810['extra']:'',_0x1fb43a=_0x4bb8db+'\x20'+_0x22d8db+_0x13e996+_0xc1ca40;_0x42e9b2[_0x403119(0x165)]&&_0x1fb43a[_0x403119(0x16c)]()&&(_0x42e9b2['text']=_0x1fb43a,_0x30f0a4=_0x1fb43a);},'setJobId':_0xb168b6=>{const _0x5937f9=_0x3e33d1;_0x80a810[_0x5937f9(0x16b)]=_0xb168b6,_0x270c3d();},'setExtra':_0x17d7a8=>{const _0x86d9b8=_0x3e33d1;_0x80a810[_0x86d9b8(0x159)]=_0x17d7a8,_0x270c3d();}};_0x270c3d();try{const _0x5e1a0d=await _0x5033c5(_0x32a46a),_0x59a800=_0x38d3c8()-_0x33728f;return{'data':_0x5e1a0d,'elapsedMs':_0x59a800};}finally{clearInterval(_0x22c1c0),_0x42e9b2[_0x3e33d1(0x158)]();}}export function formatElapsed(_0x277e24){const _0x480f4b=a145_0x5136,_0xbdc78=Math['floor'](_0x277e24/0x3e8);if(_0xbdc78<0x3c)return(_0x277e24/0x3e8)[_0x480f4b(0x162)](0x1)+'s';const _0x297246=Math[_0x480f4b(0x15b)](_0xbdc78/0x3c),_0x35e1e3=_0xbdc78%0x3c;if(_0x297246<0x3c)return _0x297246+'m\x20'+_0x35e1e3+'s';const _0x3c7048=Math[_0x480f4b(0x15b)](_0x297246/0x3c),_0x2b90d5=_0x297246%0x3c;return _0x3c7048+'h\x20'+_0x2b90d5+'m';}
@@ -1 +1 @@
1
- function a144_0x5f33(_0x50f932,_0x185845){_0x50f932=_0x50f932-0x10c;const _0x132c44=a144_0x132c();let _0x5f3338=_0x132c44[_0x50f932];return _0x5f3338;}(function(_0x546fc3,_0x3f833a){const _0x5630bc=a144_0x5f33,_0x1da496=_0x546fc3();while(!![]){try{const _0x23a28b=-parseInt(_0x5630bc(0x10d))/0x1+-parseInt(_0x5630bc(0x115))/0x2+parseInt(_0x5630bc(0x11a))/0x3+-parseInt(_0x5630bc(0x112))/0x4*(-parseInt(_0x5630bc(0x116))/0x5)+-parseInt(_0x5630bc(0x10c))/0x6*(parseInt(_0x5630bc(0x117))/0x7)+-parseInt(_0x5630bc(0x10f))/0x8+parseInt(_0x5630bc(0x114))/0x9;if(_0x23a28b===_0x3f833a)break;else _0x1da496['push'](_0x1da496['shift']());}catch(_0x2fb037){_0x1da496['push'](_0x1da496['shift']());}}}(a144_0x132c,0xaba37));function a144_0x132c(){const _0x196fa8=['body','trim','1631454siHLak','decode','slice','indexOf','[LLM\x20API\x20SSE]\x20','data','parse','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','18CWwgxj','1247718dcjgWE','getReader','4446696wCjdLp','debug','startsWith','26668NYZvAB','pop','16338564ecyqNY','1568324dNUpqu','785jBOteF','268765VlOKVS'];a144_0x132c=function(){return _0x196fa8;};return a144_0x132c();}export async function*parseSSEStream(_0x2a3bc8,_0x301eef){const _0x43c1e5=a144_0x5f33;if(!_0x2a3bc8[_0x43c1e5(0x118)])throw new Error('Response\x20body\x20is\x20null');const _0x19e875=_0x2a3bc8[_0x43c1e5(0x118)][_0x43c1e5(0x10e)](),_0x1a7923=new TextDecoder();let _0x484506='',_0x468cff={};try{while(!![]){const {done:_0x38b34d,value:_0x2dcc16}=await _0x19e875['read']();if(_0x38b34d){if(_0x468cff[_0x43c1e5(0x11f)]){_0x301eef?.['debug'](_0x43c1e5(0x11e)+_0x468cff['data']);const _0x444a3b=parseSSEData(_0x468cff[_0x43c1e5(0x11f)]);yield _0x444a3b;}break;}_0x484506+=_0x1a7923[_0x43c1e5(0x11b)](_0x2dcc16,{'stream':!![]});const _0x7a615a=_0x484506['split']('\x0a');_0x484506=_0x7a615a[_0x43c1e5(0x113)]()||'';for(const _0x43dad2 of _0x7a615a){if(_0x43dad2[_0x43c1e5(0x119)]()===''){if(_0x468cff[_0x43c1e5(0x11f)]){_0x301eef?.[_0x43c1e5(0x110)](_0x43c1e5(0x11e)+_0x468cff['data']);const _0x36be5f=parseSSEData(_0x468cff[_0x43c1e5(0x11f)]);yield _0x36be5f,_0x468cff={};}continue;}if(_0x43dad2[_0x43c1e5(0x111)](':'))continue;const _0x4b40b0=_0x43dad2[_0x43c1e5(0x11d)](':');if(_0x4b40b0===-0x1)continue;const _0x420dc6=_0x43dad2['slice'](0x0,_0x4b40b0);let _0xc57259=_0x43dad2[_0x43c1e5(0x11c)](_0x4b40b0+0x1);_0xc57259[_0x43c1e5(0x111)]('\x20')&&(_0xc57259=_0xc57259['slice'](0x1));switch(_0x420dc6){case'event':_0x468cff['event']=_0xc57259;break;case'data':_0x468cff[_0x43c1e5(0x11f)]=_0x468cff[_0x43c1e5(0x11f)]?_0x468cff[_0x43c1e5(0x11f)]+'\x0a'+_0xc57259:_0xc57259;break;case'id':_0x468cff['id']=_0xc57259;break;}}}}finally{_0x19e875['releaseLock']();}}function parseSSEData(_0x23b19b){const _0x27918c=a144_0x5f33;try{return JSON[_0x27918c(0x120)](_0x23b19b);}catch(_0x1714a3){throw new Error(_0x27918c(0x121)+_0x23b19b,{'cause':_0x1714a3});}}
1
+ (function(_0x205209,_0x4eb0b3){const _0x49437b=a146_0x160b,_0x46f0b2=_0x205209();while(!![]){try{const _0x381028=-parseInt(_0x49437b(0x186))/0x1+-parseInt(_0x49437b(0x17f))/0x2+-parseInt(_0x49437b(0x191))/0x3*(parseInt(_0x49437b(0x192))/0x4)+-parseInt(_0x49437b(0x195))/0x5*(parseInt(_0x49437b(0x181))/0x6)+-parseInt(_0x49437b(0x18e))/0x7+parseInt(_0x49437b(0x190))/0x8+parseInt(_0x49437b(0x188))/0x9*(parseInt(_0x49437b(0x18a))/0xa);if(_0x381028===_0x4eb0b3)break;else _0x46f0b2['push'](_0x46f0b2['shift']());}catch(_0xdc0fd9){_0x46f0b2['push'](_0x46f0b2['shift']());}}}(a146_0x4dfe,0x94e66));export async function*parseSSEStream(_0x1cc71a,_0x5e5326){const _0x28b521=a146_0x160b;if(!_0x1cc71a[_0x28b521(0x185)])throw new Error(_0x28b521(0x193));const _0x47f518=_0x1cc71a[_0x28b521(0x185)][_0x28b521(0x182)](),_0x5e690b=new TextDecoder();let _0x1e704b='',_0x1fec7={};try{while(!![]){const {done:_0x4a7445,value:_0x1166f9}=await _0x47f518['read']();if(_0x4a7445){if(_0x1fec7[_0x28b521(0x18f)]){_0x5e5326?.[_0x28b521(0x184)](_0x28b521(0x189)+_0x1fec7[_0x28b521(0x18f)]);const _0x5224b2=parseSSEData(_0x1fec7[_0x28b521(0x18f)]);yield _0x5224b2;}break;}_0x1e704b+=_0x5e690b[_0x28b521(0x18b)](_0x1166f9,{'stream':!![]});const _0x1d3329=_0x1e704b[_0x28b521(0x196)]('\x0a');_0x1e704b=_0x1d3329[_0x28b521(0x183)]()||'';for(const _0x581652 of _0x1d3329){if(_0x581652[_0x28b521(0x18c)]()===''){if(_0x1fec7['data']){_0x5e5326?.[_0x28b521(0x184)](_0x28b521(0x189)+_0x1fec7[_0x28b521(0x18f)]);const _0x5bf7d1=parseSSEData(_0x1fec7[_0x28b521(0x18f)]);yield _0x5bf7d1,_0x1fec7={};}continue;}if(_0x581652[_0x28b521(0x197)](':'))continue;const _0x2c223e=_0x581652['indexOf'](':');if(_0x2c223e===-0x1)continue;const _0x5a8630=_0x581652[_0x28b521(0x194)](0x0,_0x2c223e);let _0x39a508=_0x581652['slice'](_0x2c223e+0x1);_0x39a508[_0x28b521(0x197)]('\x20')&&(_0x39a508=_0x39a508[_0x28b521(0x194)](0x1));switch(_0x5a8630){case _0x28b521(0x18d):_0x1fec7['event']=_0x39a508;break;case _0x28b521(0x18f):_0x1fec7[_0x28b521(0x18f)]=_0x1fec7[_0x28b521(0x18f)]?_0x1fec7[_0x28b521(0x18f)]+'\x0a'+_0x39a508:_0x39a508;break;case'id':_0x1fec7['id']=_0x39a508;break;}}}}finally{_0x47f518[_0x28b521(0x187)]();}}function a146_0x160b(_0x18b952,_0x2f6328){_0x18b952=_0x18b952-0x17f;const _0x4dfe45=a146_0x4dfe();let _0x160b7b=_0x4dfe45[_0x18b952];return _0x160b7b;}function a146_0x4dfe(){const _0x5c9305=['slice','45AuVFbK','split','startsWith','789050DIjwAQ','parse','652884JHSXqf','getReader','pop','debug','body','658371EEbCyl','releaseLock','162fXFRFC','[LLM\x20API\x20SSE]\x20','1603280SyrIzT','decode','trim','event','455777ozgWdd','data','7707488MkNxdJ','3mBsDTr','4568452ONdcdI','Response\x20body\x20is\x20null'];a146_0x4dfe=function(){return _0x5c9305;};return a146_0x4dfe();}function parseSSEData(_0x4a6585){const _0x1dac98=a146_0x160b;try{return JSON[_0x1dac98(0x180)](_0x4a6585);}catch(_0x3c2fac){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4a6585,{'cause':_0x3c2fac});}}
@@ -1 +1 @@
1
- (function(_0x52e1c8,_0x358f32){const _0x5ae9af=a145_0x3a00,_0x58a633=_0x52e1c8();while(!![]){try{const _0x511044=parseInt(_0x5ae9af(0x1ff))/0x1+-parseInt(_0x5ae9af(0x1e7))/0x2*(parseInt(_0x5ae9af(0x1f0))/0x3)+-parseInt(_0x5ae9af(0x1f2))/0x4*(-parseInt(_0x5ae9af(0x1e5))/0x5)+-parseInt(_0x5ae9af(0x1f5))/0x6*(parseInt(_0x5ae9af(0x1fa))/0x7)+parseInt(_0x5ae9af(0x200))/0x8*(parseInt(_0x5ae9af(0x1fd))/0x9)+parseInt(_0x5ae9af(0x1f1))/0xa*(parseInt(_0x5ae9af(0x1fe))/0xb)+-parseInt(_0x5ae9af(0x1ea))/0xc*(parseInt(_0x5ae9af(0x1e9))/0xd);if(_0x511044===_0x358f32)break;else _0x58a633['push'](_0x58a633['shift']());}catch(_0x1ca137){_0x58a633['push'](_0x58a633['shift']());}}}(a145_0x36a2,0x44d21));function a145_0x36a2(){const _0xf668b8=['Cannot\x20escape\x20empty\x20string\x20literal','toString','USERNAME','183duRXqN','10eCKrpM','860svPGXj','env','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','534JCcnNM','length','unknown','trim','floor','5327ddlrbn','replace','random','513jJXBlw','5364579ZFNyLO','320361CvdNWf','9368cPbnmK','repeat','substring','1535ekRZfm','toLowerCase','1256VOCinz','padStart','39EZhshC','2211504LdSzfB','USER','slice'];a145_0x36a2=function(){return _0xf668b8;};return a145_0x36a2();}function a145_0x3a00(_0x4804e0,_0x5cf512){_0x4804e0=_0x4804e0-0x1e3;const _0x36a20f=a145_0x36a2();let _0x3a000e=_0x36a20f[_0x4804e0];return _0x3a000e;}import a145_0x526365 from'string-width';export function stringWidth(_0x3d11c8){return a145_0x526365(_0x3d11c8);}export function padEnd(_0x58e95b,_0x1e79ac){const _0x40e3ab=a145_0x3a00,_0x120755=stringWidth(_0x58e95b);if(_0x120755>=_0x1e79ac)return _0x58e95b;return _0x58e95b+'\x20'[_0x40e3ab(0x1e3)](_0x1e79ac-_0x120755);}export function padStart(_0x1b9576,_0x465ad7){const _0x560a14=a145_0x3a00,_0x1bf6de=stringWidth(_0x1b9576);if(_0x1bf6de>=_0x465ad7)return _0x1b9576;return'\x20'[_0x560a14(0x1e3)](_0x465ad7-_0x1bf6de)+_0x1b9576;}export function centerAlign(_0x5bb3ab,_0x2b038c){const _0x357dcb=a145_0x3a00,_0x10c365=stringWidth(_0x5bb3ab);if(_0x10c365>_0x2b038c){if(_0x2b038c<=0x1)return'…'[_0x357dcb(0x1e4)](0x0,_0x2b038c);let _0x470479=_0x5bb3ab;while(stringWidth(_0x470479+'…')>_0x2b038c){_0x470479=_0x470479[_0x357dcb(0x1ec)](0x0,-0x1);}return _0x470479+'…';}if(_0x10c365===_0x2b038c)return _0x5bb3ab;const _0x34c1ac=_0x2b038c-_0x10c365,_0x4aa3a0=Math['floor'](_0x34c1ac/0x2),_0x3ac4d2=_0x34c1ac-_0x4aa3a0;return'\x20'[_0x357dcb(0x1e3)](_0x4aa3a0)+_0x5bb3ab+'\x20'[_0x357dcb(0x1e3)](_0x3ac4d2);}export function escapeStringLiteral(_0x4f1b69){const _0x228c15=a145_0x3a00;if(!_0x4f1b69||_0x4f1b69[_0x228c15(0x1f8)]()[_0x228c15(0x1f6)]===0x0)throw new Error(_0x228c15(0x1ed));const _0x7e6060=_0x4f1b69[_0x228c15(0x1fb)](/'/g,'\x27\x27');return'\x27'+_0x7e6060+'\x27';}export function globToLike(_0x3bf302){const _0xd0525a=a145_0x3a00;let _0x21948d=_0x3bf302[_0xd0525a(0x1fb)](/\\/g,'\x5c\x5c')[_0xd0525a(0x1fb)](/%/g,'\x5c%')[_0xd0525a(0x1fb)](/_/g,'\x5c_');return _0x21948d=_0x21948d[_0xd0525a(0x1fb)](/\*/g,'%')[_0xd0525a(0x1fb)](/\?/g,'_'),_0x21948d;}export function buildLikePattern(_0x254ff4){const _0x2cbb6a=a145_0x3a00;if(!_0x254ff4||_0x254ff4[_0x2cbb6a(0x1f8)]()['length']===0x0)throw new Error(_0x2cbb6a(0x1f4));const _0x95574f=globToLike(_0x254ff4),_0x4ab869=_0x95574f[_0x2cbb6a(0x1fb)](/'/g,'\x27\x27');return'\x27'+_0x4ab869+'\x27';}export function matchGlobPattern(_0x11e13b,_0x39af07){const _0x21d8cb=a145_0x3a00,_0x2c628e=_0x39af07[_0x21d8cb(0x1fb)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x21d8cb(0x1fb)](/\*/g,'.*')[_0x21d8cb(0x1fb)](/\?/g,'.'),_0x3cd3f5=new RegExp('^'+_0x2c628e+'$');return _0x3cd3f5['test'](_0x11e13b);}export function getSanitizedUsername(){const _0x338244=a145_0x3a00,_0x4f4388=process[_0x338244(0x1f3)][_0x338244(0x1eb)]||process[_0x338244(0x1f3)][_0x338244(0x1ef)]||_0x338244(0x1f7);return _0x4f4388[_0x338244(0x1fb)](/[^a-zA-Z0-9]/g,'')[_0x338244(0x1e6)]();}export function generateRandomHex(){const _0x3abb3e=a145_0x3a00,_0x11357d=Math[_0x3abb3e(0x1f9)](Math[_0x3abb3e(0x1fc)]()*0xfffff);return _0x11357d[_0x3abb3e(0x1ee)](0x10)[_0x3abb3e(0x1e8)](0x5,'0');}export function sanitizeFileName(_0x7ce053){const _0x28aa63=a145_0x3a00;return _0x7ce053[_0x28aa63(0x1e6)]()[_0x28aa63(0x1fb)](/[/\\:*?"<>|]/g,'-')['replace'](/\s+/g,'-')[_0x28aa63(0x1fb)](/-+/g,'-')[_0x28aa63(0x1fb)](/^-|-$/g,'');}
1
+ (function(_0x2dc9aa,_0xf55b96){const _0x4bbe39=a147_0x324a,_0x4074b0=_0x2dc9aa();while(!![]){try{const _0x1dabf7=parseInt(_0x4bbe39(0xe0))/0x1*(-parseInt(_0x4bbe39(0xe7))/0x2)+parseInt(_0x4bbe39(0xdf))/0x3+parseInt(_0x4bbe39(0xdd))/0x4*(parseInt(_0x4bbe39(0xe2))/0x5)+parseInt(_0x4bbe39(0xde))/0x6+-parseInt(_0x4bbe39(0xea))/0x7+parseInt(_0x4bbe39(0xda))/0x8+-parseInt(_0x4bbe39(0xe1))/0x9*(-parseInt(_0x4bbe39(0xec))/0xa);if(_0x1dabf7===_0xf55b96)break;else _0x4074b0['push'](_0x4074b0['shift']());}catch(_0x3d51f6){_0x4074b0['push'](_0x4074b0['shift']());}}}(a147_0x25a4,0x5a967));function a147_0x25a4(){const _0x6b548c=['floor','USER','1501984yyIXHl','length','Cannot\x20escape\x20empty\x20string\x20literal','236712dCTCKY','2666184LvoWXu','640266vlAEGR','196437pXGmzd','63QBQllN','5rPBpcQ','padStart','test','trim','toLowerCase','6sxIMCi','env','substring','1555337ZtqVpK','repeat','396910PuFjxr','replace','USERNAME','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string'];a147_0x25a4=function(){return _0x6b548c;};return a147_0x25a4();}import a147_0x1aed20 from'string-width';function a147_0x324a(_0x1b99e3,_0x188614){_0x1b99e3=_0x1b99e3-0xd9;const _0x25a445=a147_0x25a4();let _0x324a67=_0x25a445[_0x1b99e3];return _0x324a67;}export function stringWidth(_0x1162b3){return a147_0x1aed20(_0x1162b3);}export function padEnd(_0x3f1857,_0x1206aa){const _0x2df753=a147_0x324a,_0x451b12=stringWidth(_0x3f1857);if(_0x451b12>=_0x1206aa)return _0x3f1857;return _0x3f1857+'\x20'[_0x2df753(0xeb)](_0x1206aa-_0x451b12);}export function padStart(_0x5ba7d0,_0x346be4){const _0x2fa778=a147_0x324a,_0x4e331c=stringWidth(_0x5ba7d0);if(_0x4e331c>=_0x346be4)return _0x5ba7d0;return'\x20'[_0x2fa778(0xeb)](_0x346be4-_0x4e331c)+_0x5ba7d0;}export function centerAlign(_0x471b87,_0x15549e){const _0x57c4e9=a147_0x324a,_0x49f1e8=stringWidth(_0x471b87);if(_0x49f1e8>_0x15549e){if(_0x15549e<=0x1)return'…'[_0x57c4e9(0xe9)](0x0,_0x15549e);let _0x53ed8f=_0x471b87;while(stringWidth(_0x53ed8f+'…')>_0x15549e){_0x53ed8f=_0x53ed8f['slice'](0x0,-0x1);}return _0x53ed8f+'…';}if(_0x49f1e8===_0x15549e)return _0x471b87;const _0x6b6011=_0x15549e-_0x49f1e8,_0x49b39a=Math[_0x57c4e9(0xf0)](_0x6b6011/0x2),_0x3fe3e7=_0x6b6011-_0x49b39a;return'\x20'[_0x57c4e9(0xeb)](_0x49b39a)+_0x471b87+'\x20'['repeat'](_0x3fe3e7);}export function escapeStringLiteral(_0x407cb2){const _0x1aaf8c=a147_0x324a;if(!_0x407cb2||_0x407cb2[_0x1aaf8c(0xe5)]()['length']===0x0)throw new Error(_0x1aaf8c(0xdc));const _0x4cdbe2=_0x407cb2['replace'](/'/g,'\x27\x27');return'\x27'+_0x4cdbe2+'\x27';}export function globToLike(_0x3c570d){const _0x318bb2=a147_0x324a;let _0x2344a6=_0x3c570d[_0x318bb2(0xed)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x318bb2(0xed)](/_/g,'\x5c_');return _0x2344a6=_0x2344a6['replace'](/\*/g,'%')[_0x318bb2(0xed)](/\?/g,'_'),_0x2344a6;}export function buildLikePattern(_0x46fd5d){const _0x361927=a147_0x324a;if(!_0x46fd5d||_0x46fd5d[_0x361927(0xe5)]()[_0x361927(0xdb)]===0x0)throw new Error(_0x361927(0xef));const _0x1353cf=globToLike(_0x46fd5d),_0x498901=_0x1353cf[_0x361927(0xed)](/'/g,'\x27\x27');return'\x27'+_0x498901+'\x27';}export function matchGlobPattern(_0x42465e,_0x279faf){const _0x33d118=a147_0x324a,_0x49a072=_0x279faf['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x33d118(0xed)](/\*/g,'.*')[_0x33d118(0xed)](/\?/g,'.'),_0x3475b8=new RegExp('^'+_0x49a072+'$');return _0x3475b8[_0x33d118(0xe4)](_0x42465e);}export function getSanitizedUsername(){const _0xf359e7=a147_0x324a,_0x4283de=process[_0xf359e7(0xe8)][_0xf359e7(0xd9)]||process[_0xf359e7(0xe8)][_0xf359e7(0xee)]||'unknown';return _0x4283de['replace'](/[^a-zA-Z0-9]/g,'')[_0xf359e7(0xe6)]();}export function generateRandomHex(){const _0x18f033=a147_0x324a,_0x1a1fb6=Math[_0x18f033(0xf0)](Math['random']()*0xfffff);return _0x1a1fb6['toString'](0x10)[_0x18f033(0xe3)](0x5,'0');}export function sanitizeFileName(_0x48b3d3){const _0x5dfd2f=a147_0x324a;return _0x48b3d3[_0x5dfd2f(0xe6)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0x5dfd2f(0xed)](/\s+/g,'-')[_0x5dfd2f(0xed)](/-+/g,'-')['replace'](/^-|-$/g,'');}
@@ -1 +1 @@
1
- function a146_0x5f14(){const _0xc840e8=['trim','72258MUIPuS','split','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','194pQeblS','10529288KrYhkN','catalog','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','table','4436192FMSQSd','length','13087827akMGjS','3826229voAzuI','14829XQcORF','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','push','20SFICZe','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','3BkMpmT','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','365XLpdiu','7642408osCIKs','database','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation'];a146_0x5f14=function(){return _0xc840e8;};return a146_0x5f14();}(function(_0x700de9,_0x91c18){const _0x4e8ad6=a146_0xafe3,_0x299f0b=_0x700de9();while(!![]){try{const _0x5afd62=parseInt(_0x4e8ad6(0x1f9))/0x1*(-parseInt(_0x4e8ad6(0x1ee))/0x2)+-parseInt(_0x4e8ad6(0x1e3))/0x3*(-parseInt(_0x4e8ad6(0x1f5))/0x4)+-parseInt(_0x4e8ad6(0x1e5))/0x5*(-parseInt(_0x4e8ad6(0x1eb))/0x6)+-parseInt(_0x4e8ad6(0x1ef))/0x7+parseInt(_0x4e8ad6(0x1e6))/0x8+parseInt(_0x4e8ad6(0x1f7))/0x9+-parseInt(_0x4e8ad6(0x1fc))/0xa*(parseInt(_0x4e8ad6(0x1f8))/0xb);if(_0x5afd62===_0x91c18)break;else _0x299f0b['push'](_0x299f0b['shift']());}catch(_0x487c6d){_0x299f0b['push'](_0x299f0b['shift']());}}}(a146_0x5f14,0xb9678));function hasWildcard(_0x1c66ca){const _0x2667ac=a146_0xafe3;return _0x1c66ca['includes']('*')||_0x1c66ca[_0x2667ac(0x1f3)]('?');}export function parseTableReference(_0x65a8c3){const _0x272a8c=a146_0xafe3;if(!_0x65a8c3||_0x65a8c3['trim']()[_0x272a8c(0x1f6)]===0x0)throw new Error(_0x272a8c(0x1fa));const _0x1424e6=_0x65a8c3[_0x272a8c(0x1ea)](),_0x568ab4={'original':_0x1424e6},_0x116045=_0x1424e6[_0x272a8c(0x1ec)]('.');if(_0x116045['length']===0x1){const _0x5148f7=_0x116045[0x0];if(!_0x5148f7)throw new Error(_0x272a8c(0x1f2));_0x568ab4[_0x272a8c(0x1f4)]=_0x5148f7;}else{if(_0x116045[_0x272a8c(0x1f6)]===0x2){const [_0x144780,_0x4ce02a]=_0x116045;if(!_0x144780)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x4ce02a)throw new Error(_0x272a8c(0x1e8));_0x568ab4['database']=_0x144780,_0x568ab4[_0x272a8c(0x1f4)]=_0x4ce02a;}else{if(_0x116045[_0x272a8c(0x1f6)]===0x3){const [_0x5cf5d3,_0x5379e3,_0x1581fa]=_0x116045;if(!_0x5cf5d3||!_0x5379e3||!_0x1581fa)throw new Error(_0x272a8c(0x1e4));_0x568ab4[_0x272a8c(0x1f0)]=_0x5cf5d3,_0x568ab4[_0x272a8c(0x1e7)]=_0x5379e3,_0x568ab4[_0x272a8c(0x1f4)]=_0x1581fa;}else throw new Error(_0x272a8c(0x1fd));}}return _0x568ab4;}export function formatTableReference(_0x5082fc){const _0x512637=a146_0xafe3,_0x3a65b0=[];return _0x5082fc['catalog']&&_0x3a65b0[_0x512637(0x1fb)](_0x5082fc[_0x512637(0x1f0)]),_0x5082fc['database']&&_0x3a65b0[_0x512637(0x1fb)](_0x5082fc['database']),_0x5082fc[_0x512637(0x1f4)]&&_0x3a65b0[_0x512637(0x1fb)](_0x5082fc[_0x512637(0x1f4)]),_0x3a65b0['join']('.');}function a146_0xafe3(_0x309931,_0x350047){_0x309931=_0x309931-0x1e3;const _0x5f1405=a146_0x5f14();let _0xafe327=_0x5f1405[_0x309931];return _0xafe327;}export function validateTableListReference(_0x4cbd95){return undefined;}export function validateTableDescribeReference(_0x247f59){const _0x5e9df7=a146_0xafe3;if(!_0x247f59[_0x5e9df7(0x1f4)])return _0x5e9df7(0x1f1);if(_0x247f59[_0x5e9df7(0x1e7)]&&hasWildcard(_0x247f59[_0x5e9df7(0x1e7)]))return _0x5e9df7(0x1ed);if(hasWildcard(_0x247f59['table']))return _0x5e9df7(0x1e9);return undefined;}
1
+ (function(_0xaf86d2,_0x5b5519){const _0x5af286=a148_0x2585,_0x364c7f=_0xaf86d2();while(!![]){try{const _0x325259=-parseInt(_0x5af286(0x19b))/0x1+parseInt(_0x5af286(0x192))/0x2*(-parseInt(_0x5af286(0x195))/0x3)+-parseInt(_0x5af286(0x18c))/0x4+-parseInt(_0x5af286(0x197))/0x5*(parseInt(_0x5af286(0x18b))/0x6)+-parseInt(_0x5af286(0x193))/0x7+parseInt(_0x5af286(0x1a4))/0x8*(parseInt(_0x5af286(0x199))/0x9)+-parseInt(_0x5af286(0x18d))/0xa*(-parseInt(_0x5af286(0x196))/0xb);if(_0x325259===_0x5b5519)break;else _0x364c7f['push'](_0x364c7f['shift']());}catch(_0x158e54){_0x364c7f['push'](_0x364c7f['shift']());}}}(a148_0x4044,0xa68d2));function a148_0x2585(_0x447b46,_0x5221bc){_0x447b46=_0x447b46-0x18b;const _0x40443e=a148_0x4044();let _0x258524=_0x40443e[_0x447b46];return _0x258524;}function hasWildcard(_0x2ccfec){const _0x1b268d=a148_0x2585;return _0x2ccfec['includes']('*')||_0x2ccfec[_0x1b268d(0x19f)]('?');}export function parseTableReference(_0x4abc28){const _0x545006=a148_0x2585;if(!_0x4abc28||_0x4abc28[_0x545006(0x198)]()['length']===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x3d381b=_0x4abc28[_0x545006(0x198)](),_0x36ea71={'original':_0x3d381b},_0x55377f=_0x3d381b[_0x545006(0x1a2)]('.');if(_0x55377f[_0x545006(0x18f)]===0x1){const _0xde9f1c=_0x55377f[0x0];if(!_0xde9f1c)throw new Error('Pattern\x20cannot\x20be\x20just\x20a\x20dot');_0x36ea71[_0x545006(0x19e)]=_0xde9f1c;}else{if(_0x55377f[_0x545006(0x18f)]===0x2){const [_0xafccc6,_0xc549d1]=_0x55377f;if(!_0xafccc6)throw new Error(_0x545006(0x190));if(!_0xc549d1)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x36ea71[_0x545006(0x19c)]=_0xafccc6,_0x36ea71[_0x545006(0x19e)]=_0xc549d1;}else{if(_0x55377f[_0x545006(0x18f)]===0x3){const [_0x33df4e,_0x52bd7b,_0x2386af]=_0x55377f;if(!_0x33df4e||!_0x52bd7b||!_0x2386af)throw new Error(_0x545006(0x19a));_0x36ea71[_0x545006(0x191)]=_0x33df4e,_0x36ea71[_0x545006(0x19c)]=_0x52bd7b,_0x36ea71[_0x545006(0x19e)]=_0x2386af;}else throw new Error(_0x545006(0x194));}}return _0x36ea71;}export function formatTableReference(_0x62bf46){const _0x596f2a=a148_0x2585,_0x4386d6=[];return _0x62bf46[_0x596f2a(0x191)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x191)]),_0x62bf46[_0x596f2a(0x19c)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x19c)]),_0x62bf46[_0x596f2a(0x19e)]&&_0x4386d6[_0x596f2a(0x1a0)](_0x62bf46[_0x596f2a(0x19e)]),_0x4386d6[_0x596f2a(0x18e)]('.');}function a148_0x4044(){const _0x206560=['460635jYZJuS','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','6bUPLYt','33XEFIPb','6935OSNqpf','trim','63OTDMxH','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1160984ulzOWZ','database','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','table','includes','push','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','split','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','675856HuNDEJ','2580QKggsE','3482440cVDzps','10486990BGJOLS','join','length','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','catalog','361468VARNcR'];a148_0x4044=function(){return _0x206560;};return a148_0x4044();}export function validateTableListReference(_0x222de6){return undefined;}export function validateTableDescribeReference(_0x2c9ad0){const _0x44b172=a148_0x2585;if(!_0x2c9ad0[_0x44b172(0x19e)])return _0x44b172(0x1a3);if(_0x2c9ad0['database']&&hasWildcard(_0x2c9ad0[_0x44b172(0x19c)]))return _0x44b172(0x19d);if(hasWildcard(_0x2c9ad0[_0x44b172(0x19e)]))return _0x44b172(0x1a1);return undefined;}
@@ -1 +1 @@
1
- function a147_0x9812(){const _0xa3709c=['padStart','message','getLogPath','tdx','174856ZhugGE','INFO','error','abs','getFullYear','46416768IFRWCH','split','cause','join','getMilliseconds','stringify','toISOString','toString','trace','1743584pyQUlR','log','DEBUG','9390534vzRNhQ','logs','.gz','stack','logDir','name','write','debug','fileOnly','9213197PWsuxB','mtime','getSeconds','filter','info','ERROR','cyan','logStream','rotateOldLogs','includes','test','4428249SOUQkm','getHours','tdx.log','Proxy\x20session\x20ended','tdx-','close','13000mpasfm','TRACE','yellow','warn','logLevel','WARN','gray','getMonth','end','Warning:\x20Error\x20writing\x20to\x20tdx.log:','getMinutes','.log','615yZfppi','red'];a147_0x9812=function(){return _0xa3709c;};return a147_0x9812();}const a147_0x4759e5=a147_0x2127;(function(_0x34ef9d,_0x25e9f8){const _0x21e6d6=a147_0x2127,_0x4dbc09=_0x34ef9d();while(!![]){try{const _0x35fd0c=-parseInt(_0x21e6d6(0xdc))/0x1+-parseInt(_0x21e6d6(0xad))/0x2+-parseInt(_0x21e6d6(0xc4))/0x3+-parseInt(_0x21e6d6(0xca))/0x4*(-parseInt(_0x21e6d6(0xd6))/0x5)+-parseInt(_0x21e6d6(0xb0))/0x6+-parseInt(_0x21e6d6(0xb9))/0x7+parseInt(_0x21e6d6(0xe1))/0x8;if(_0x35fd0c===_0x25e9f8)break;else _0x4dbc09['push'](_0x4dbc09['shift']());}catch(_0x115bd7){_0x4dbc09['push'](_0x4dbc09['shift']());}}}(a147_0x9812,0xc2c9f));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join}from'path';import{homedir}from'os';function a147_0x2127(_0x2e277d,_0x5de30e){_0x2e277d=_0x2e277d-0xa7;const _0x981296=a147_0x9812();let _0x212732=_0x981296[_0x2e277d];return _0x212732;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import a147_0xb47a47 from'chalk';function safeStringify(_0x4a865b){const _0x55ea11=a147_0x2127;if(typeof _0x4a865b==='string')return _0x4a865b;if(_0x4a865b instanceof Error)return _0x4a865b[_0x55ea11(0xb3)]||_0x4a865b[_0x55ea11(0xb5)]+':\x20'+_0x4a865b[_0x55ea11(0xd9)];try{return JSON[_0x55ea11(0xa9)](_0x4a865b,(_0x517120,_0x1ac4ae)=>{const _0x19a5b8=_0x55ea11;if(_0x1ac4ae instanceof Error)return{'name':_0x1ac4ae[_0x19a5b8(0xb5)],'message':_0x1ac4ae[_0x19a5b8(0xd9)],'stack':_0x1ac4ae[_0x19a5b8(0xb3)],'cause':_0x1ac4ae[_0x19a5b8(0xe3)]};return _0x1ac4ae;});}catch{return String(_0x4a865b);}}function getTimezoneOffset(){const _0x1294b6=a147_0x2127,_0x114ccd=-new Date()['getTimezoneOffset'](),_0x2a37cb=Math['floor'](Math[_0x1294b6(0xdf)](_0x114ccd)/0x3c),_0x2532e2=Math[_0x1294b6(0xdf)](_0x114ccd)%0x3c,_0x400356=_0x114ccd>=0x0?'+':'-';return''+_0x400356+_0x2a37cb['toString']()[_0x1294b6(0xd8)](0x2,'0')+_0x2532e2['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0x315dab=a147_0x2127,_0x3fd769=new Date(),_0x523b10=_0x3fd769[_0x315dab(0xe0)](),_0x25ce3d=(_0x3fd769[_0x315dab(0xd1)]()+0x1)[_0x315dab(0xab)]()[_0x315dab(0xd8)](0x2,'0'),_0x5bf96c=_0x3fd769['getDate']()[_0x315dab(0xab)]()[_0x315dab(0xd8)](0x2,'0'),_0x3b54a0=_0x3fd769[_0x315dab(0xc5)]()[_0x315dab(0xab)]()['padStart'](0x2,'0'),_0x178b41=_0x3fd769[_0x315dab(0xd4)]()['toString']()[_0x315dab(0xd8)](0x2,'0'),_0xe28019=_0x3fd769[_0x315dab(0xbb)]()[_0x315dab(0xab)]()[_0x315dab(0xd8)](0x2,'0'),_0x3d5c01=_0x3fd769[_0x315dab(0xa8)]()['toString']()[_0x315dab(0xd8)](0x3,'0'),_0x2122fc=getTimezoneOffset();return _0x523b10+'-'+_0x25ce3d+'-'+_0x5bf96c+'\x20'+_0x3b54a0+':'+_0x178b41+':'+_0xe28019+'.'+_0x3d5c01+_0x2122fc;}function formatColoredLogEntry(_0xe46678,_0x366c78){const _0x14a0ff=a147_0x2127,_0x481e1b=formatTimestamp(),_0x31fdbd=_0x366c78['map'](safeStringify)[_0x14a0ff(0xa7)]('\x20'),_0xb96da5=a147_0xb47a47[_0x14a0ff(0xd0)](_0x481e1b);let _0x504218;switch(_0xe46678){case _0x14a0ff(0xbd):_0x504218=a147_0xb47a47[_0x14a0ff(0xbf)]('['+_0xe46678+']\x20');break;case _0x14a0ff(0xcd):_0x504218=a147_0xb47a47[_0x14a0ff(0xcc)]('['+_0xe46678+']\x20');break;case _0x14a0ff(0xde):_0x504218=a147_0xb47a47[_0x14a0ff(0xd7)]('['+_0xe46678+']');break;case _0x14a0ff(0xb7):_0x504218=a147_0xb47a47[_0x14a0ff(0xd0)]('['+_0xe46678+']');break;default:_0x504218='['+_0xe46678+']';}return _0xb96da5+'\x20'+_0x504218+'\x20'+_0x31fdbd;}export var LogLevel;(function(_0x4ee04a){const _0x4cae33=a147_0x2127;_0x4ee04a[_0x4ee04a[_0x4cae33(0xcb)]=-0x2]=_0x4cae33(0xcb),_0x4ee04a[_0x4ee04a[_0x4cae33(0xaf)]=-0x1]=_0x4cae33(0xaf),_0x4ee04a[_0x4ee04a['INFO']=0x0]=_0x4cae33(0xdd),_0x4ee04a[_0x4ee04a[_0x4cae33(0xcf)]=0x1]=_0x4cae33(0xcf),_0x4ee04a[_0x4ee04a[_0x4cae33(0xbe)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a147_0x4759e5(0xc0)];[a147_0x4759e5(0xb4)];[a147_0x4759e5(0xce)];[a147_0x4759e5(0xb8)];constructor(_0x51bcde=LogLevel['INFO'],_0x1e8a64=![]){const _0x15f3b2=a147_0x4759e5;this[_0x15f3b2(0xb4)]=join(homedir(),'.cache',_0x15f3b2(0xdb),_0x15f3b2(0xb1)),this[_0x15f3b2(0xce)]=_0x51bcde,this['fileOnly']=_0x1e8a64;}async['init'](){const _0x1aacf7=a147_0x4759e5;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x1aacf7(0xc1)]();const _0x389170=join(this[_0x1aacf7(0xb4)],_0x1aacf7(0xc6));this[_0x1aacf7(0xc0)]=createWriteStream(_0x389170,{'flags':'a'}),this[_0x1aacf7(0xc0)]['on'](_0x1aacf7(0xde),_0x30c718=>{const _0x30a49e=_0x1aacf7;console[_0x30a49e(0xde)](_0x30a49e(0xd3),_0x30c718['message']);});}catch(_0x525961){console[_0x1aacf7(0xde)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20files:',_0x525961);}}async[a147_0x4759e5(0xc1)](){const _0x4774a7=a147_0x4759e5;try{const _0x15aa96=await readdir(this[_0x4774a7(0xb4)]),_0x1fc829=new Date()[_0x4774a7(0xaa)]()['split']('T')[0x0];if(_0x15aa96[_0x4774a7(0xc2)](_0x4774a7(0xc6))){const _0x139575=join(this['logDir'],_0x4774a7(0xc6)),_0x2193f5=await stat(_0x139575),_0x21b461=new Date(_0x2193f5[_0x4774a7(0xba)])[_0x4774a7(0xaa)]()[_0x4774a7(0xe2)]('T')[0x0];if(_0x21b461<_0x1fc829){const _0x59422e=join(this[_0x4774a7(0xb4)],_0x4774a7(0xc8)+_0x21b461+_0x4774a7(0xd5));await rename(_0x139575,_0x59422e);}}const _0x500c16=await readdir(this[_0x4774a7(0xb4)]),_0x3690b9=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x1d3c3a=_0x500c16[_0x4774a7(0xbc)](_0x319489=>_0x3690b9[_0x4774a7(0xc3)](_0x319489));for(const _0x166cc8 of _0x1d3c3a){const _0x50add6=join(this[_0x4774a7(0xb4)],_0x166cc8),_0x21e548=join(this[_0x4774a7(0xb4)],_0x166cc8+_0x4774a7(0xb2));try{await pipeline(createReadStream(_0x50add6),createGzip(),createWriteStream(_0x21e548)),await unlink(_0x50add6);}catch(_0x219fcb){console[_0x4774a7(0xde)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x166cc8+':',_0x219fcb);}}}catch{}}['debug'](..._0x383f7c){const _0x57fc0e=a147_0x4759e5;if(this['logLevel']>LogLevel[_0x57fc0e(0xaf)])return;const _0x3b8992=formatColoredLogEntry(_0x57fc0e(0xb7),_0x383f7c);this['logStream']?.['write'](_0x3b8992+'\x0a');}[a147_0x4759e5(0xac)](..._0x2925a3){const _0x5a3538=a147_0x4759e5;if(this[_0x5a3538(0xce)]>LogLevel[_0x5a3538(0xcb)])return;const _0x228a41=formatColoredLogEntry('trace',_0x2925a3);this[_0x5a3538(0xc0)]?.['write'](_0x228a41+'\x0a');}['info'](..._0x5cf323){const _0x2ff9e0=a147_0x4759e5;if(this[_0x2ff9e0(0xce)]>LogLevel[_0x2ff9e0(0xdd)])return;const _0x235da6=formatColoredLogEntry('info',_0x5cf323);!this[_0x2ff9e0(0xb8)]&&console[_0x2ff9e0(0xae)](_0x235da6),this[_0x2ff9e0(0xc0)]?.[_0x2ff9e0(0xb6)](_0x235da6+'\x0a');}[a147_0x4759e5(0xcd)](..._0x25e118){const _0x30b69c=a147_0x4759e5;if(this[_0x30b69c(0xce)]>LogLevel[_0x30b69c(0xcf)])return;const _0x49d50d=formatColoredLogEntry(_0x30b69c(0xcd),_0x25e118);!this['fileOnly']&&console[_0x30b69c(0xde)](_0x49d50d),this[_0x30b69c(0xc0)]?.[_0x30b69c(0xb6)](_0x49d50d+'\x0a');}[a147_0x4759e5(0xde)](..._0x533afb){const _0x15104c=a147_0x4759e5,_0x29302f=formatColoredLogEntry(_0x15104c(0xde),_0x533afb);!this['fileOnly']&&console[_0x15104c(0xde)](_0x29302f),this[_0x15104c(0xc0)]?.[_0x15104c(0xb6)](_0x29302f+'\x0a');}async[a147_0x4759e5(0xc9)](){const _0xf66e22=a147_0x4759e5;return this[_0xf66e22(0xbd)](_0xf66e22(0xc7)),new Promise(_0x5c29ef=>{const _0x3f991f=_0xf66e22;this[_0x3f991f(0xc0)]?this['logStream'][_0x3f991f(0xd2)](()=>{_0x5c29ef();}):_0x5c29ef();});}[a147_0x4759e5(0xda)](){const _0x1a58c9=a147_0x4759e5;return join(this[_0x1a58c9(0xb4)],_0x1a58c9(0xc6));}}
1
+ const a149_0x359bfa=a149_0xe018;(function(_0x470ca3,_0x2a8a75){const _0x360893=a149_0xe018,_0x232921=_0x470ca3();while(!![]){try{const _0x831b3d=parseInt(_0x360893(0x151))/0x1+parseInt(_0x360893(0x13a))/0x2+parseInt(_0x360893(0x174))/0x3*(-parseInt(_0x360893(0x140))/0x4)+-parseInt(_0x360893(0x156))/0x5+parseInt(_0x360893(0x15a))/0x6*(-parseInt(_0x360893(0x15b))/0x7)+parseInt(_0x360893(0x14a))/0x8*(-parseInt(_0x360893(0x16f))/0x9)+parseInt(_0x360893(0x162))/0xa*(parseInt(_0x360893(0x148))/0xb);if(_0x831b3d===_0x2a8a75)break;else _0x232921['push'](_0x232921['shift']());}catch(_0x3bd3cf){_0x232921['push'](_0x232921['shift']());}}}(a149_0x87d7,0xd9dc5));function a149_0xe018(_0x3e5013,_0x2c7da8){_0x3e5013=_0x3e5013-0x132;const _0x87d750=a149_0x87d7();let _0xe0187e=_0x87d750[_0x3e5013];return _0xe0187e;}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 a149_0x5a3e15 from'chalk';function safeStringify(_0x3508b3){const _0x56596b=a149_0xe018;if(typeof _0x3508b3===_0x56596b(0x15e))return _0x3508b3;if(_0x3508b3 instanceof Error)return _0x3508b3['stack']||_0x3508b3['name']+':\x20'+_0x3508b3[_0x56596b(0x133)];try{return JSON[_0x56596b(0x136)](_0x3508b3,(_0x25f75e,_0x2c3d58)=>{const _0x278118=_0x56596b;if(_0x2c3d58 instanceof Error)return{'name':_0x2c3d58[_0x278118(0x165)],'message':_0x2c3d58[_0x278118(0x133)],'stack':_0x2c3d58[_0x278118(0x173)],'cause':_0x2c3d58[_0x278118(0x172)]};return _0x2c3d58;});}catch{return String(_0x3508b3);}}function getTimezoneOffset(){const _0x5d930c=a149_0xe018,_0x22cea7=-new Date()['getTimezoneOffset'](),_0x2f3857=Math[_0x5d930c(0x16d)](Math['abs'](_0x22cea7)/0x3c),_0x3b651e=Math[_0x5d930c(0x157)](_0x22cea7)%0x3c,_0x1d8bc9=_0x22cea7>=0x0?'+':'-';return''+_0x1d8bc9+_0x2f3857[_0x5d930c(0x147)]()[_0x5d930c(0x161)](0x2,'0')+_0x3b651e['toString']()['padStart'](0x2,'0');}function formatTimestamp(){const _0xbed176=a149_0xe018,_0x131e81=new Date(),_0xcab1ab=_0x131e81[_0xbed176(0x13c)](),_0xa881f0=(_0x131e81['getMonth']()+0x1)['toString']()[_0xbed176(0x161)](0x2,'0'),_0x4d3f56=_0x131e81['getDate']()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x39908a=_0x131e81[_0xbed176(0x16c)]()['toString']()[_0xbed176(0x161)](0x2,'0'),_0xe7e57a=_0x131e81[_0xbed176(0x142)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x1333eb=_0x131e81[_0xbed176(0x15d)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x2,'0'),_0x32de12=_0x131e81[_0xbed176(0x171)]()[_0xbed176(0x147)]()[_0xbed176(0x161)](0x3,'0'),_0x443095=getTimezoneOffset();return _0xcab1ab+'-'+_0xa881f0+'-'+_0x4d3f56+'\x20'+_0x39908a+':'+_0xe7e57a+':'+_0x1333eb+'.'+_0x32de12+_0x443095;}function formatColoredLogEntry(_0x5758b6,_0x313ffc){const _0x2403b6=a149_0xe018,_0x3e84bd=formatTimestamp(),_0x1d36d7=_0x313ffc[_0x2403b6(0x164)](safeStringify)[_0x2403b6(0x149)]('\x20'),_0x4e808b=a149_0x5a3e15[_0x2403b6(0x154)](_0x3e84bd);let _0x98db95;switch(_0x5758b6){case'info':_0x98db95=a149_0x5a3e15[_0x2403b6(0x166)]('['+_0x5758b6+']\x20');break;case _0x2403b6(0x169):_0x98db95=a149_0x5a3e15[_0x2403b6(0x15f)]('['+_0x5758b6+']\x20');break;case _0x2403b6(0x16a):_0x98db95=a149_0x5a3e15[_0x2403b6(0x146)]('['+_0x5758b6+']');break;case _0x2403b6(0x14f):_0x98db95=a149_0x5a3e15[_0x2403b6(0x154)]('['+_0x5758b6+']');break;default:_0x98db95='['+_0x5758b6+']';}return _0x4e808b+'\x20'+_0x98db95+'\x20'+_0x1d36d7;}export var LogLevel;function a149_0x87d7(){const _0x2f45af=['trace','warn','error','write','getHours','floor','info','238617bXRDom','tdx','getMilliseconds','cause','stack','63321rzvLaQ','logs','message','TRACE','.log','stringify','end','logStream','mtime','3354136ZwLJIH','includes','getFullYear','Proxy\x20session\x20ended','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','WARN','116VRCOik','test','getMinutes','toISOString','Warning:\x20Failed\x20to\x20compress\x20','tdx-','red','toString','12727847GsAZAI','join','40GNyvtA','getLogPath','log','Warning:\x20Error\x20writing\x20to\x20tdx.log:','split','debug','ERROR','295778AObZWB','DEBUG','logLevel','gray','fileOnly','4451665brtPqc','abs','logDir','tdx.log','8670IClmtP','2919QIvedB','rotateOldLogs','getSeconds','string','yellow','.gz','padStart','10saQMHC','INFO','map','name','cyan','close'];a149_0x87d7=function(){return _0x2f45af;};return a149_0x87d7();}(function(_0x5c5211){const _0x5def85=a149_0xe018;_0x5c5211[_0x5c5211[_0x5def85(0x134)]=-0x2]=_0x5def85(0x134),_0x5c5211[_0x5c5211[_0x5def85(0x152)]=-0x1]='DEBUG',_0x5c5211[_0x5c5211[_0x5def85(0x163)]=0x0]=_0x5def85(0x163),_0x5c5211[_0x5c5211['WARN']=0x1]='WARN',_0x5c5211[_0x5c5211[_0x5def85(0x150)]=0x2]='ERROR';}(LogLevel||(LogLevel={})));export class TDXLogger{[a149_0x359bfa(0x138)];[a149_0x359bfa(0x158)];['logLevel'];[a149_0x359bfa(0x155)];constructor(_0x25b320=LogLevel[a149_0x359bfa(0x163)],_0x2ea08e=![]){const _0x155e5b=a149_0x359bfa;this['logDir']=join(homedir(),'.cache',_0x155e5b(0x170),_0x155e5b(0x132)),this[_0x155e5b(0x153)]=_0x25b320,this['fileOnly']=_0x2ea08e;}async['init'](){const _0x5bc89a=a149_0x359bfa;try{await mkdir(this['logDir'],{'recursive':!![]}),await this[_0x5bc89a(0x15c)]();const _0x2aa227=join(this[_0x5bc89a(0x158)],'tdx.log');this['logStream']=createWriteStream(_0x2aa227,{'flags':'a'}),this[_0x5bc89a(0x138)]['on'](_0x5bc89a(0x16a),_0x5f579c=>{const _0x5a0dde=_0x5bc89a;console[_0x5a0dde(0x16a)](_0x5a0dde(0x14d),_0x5f579c[_0x5a0dde(0x133)]);});}catch(_0x2dc7b0){console[_0x5bc89a(0x16a)](_0x5bc89a(0x13e),_0x2dc7b0);}}async['rotateOldLogs'](){const _0x311f24=a149_0x359bfa;try{const _0x5bb18e=await readdir(this[_0x311f24(0x158)]),_0x5e8c9c=new Date()[_0x311f24(0x143)]()[_0x311f24(0x14e)]('T')[0x0];if(_0x5bb18e[_0x311f24(0x13b)]('tdx.log')){const _0x22f43d=join(this[_0x311f24(0x158)],_0x311f24(0x159)),_0x4e978f=await stat(_0x22f43d),_0x257919=new Date(_0x4e978f[_0x311f24(0x139)])[_0x311f24(0x143)]()['split']('T')[0x0];if(_0x257919<_0x5e8c9c){const _0x5937fe=join(this[_0x311f24(0x158)],_0x311f24(0x145)+_0x257919+_0x311f24(0x135));await rename(_0x22f43d,_0x5937fe);}}const _0x3214ca=await readdir(this['logDir']),_0x266603=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x1e9c25=_0x3214ca['filter'](_0x10158f=>_0x266603[_0x311f24(0x141)](_0x10158f));for(const _0xa79aad of _0x1e9c25){const _0x21e338=join(this[_0x311f24(0x158)],_0xa79aad),_0x302061=join(this[_0x311f24(0x158)],_0xa79aad+_0x311f24(0x160));try{await pipeline(createReadStream(_0x21e338),createGzip(),createWriteStream(_0x302061)),await unlink(_0x21e338);}catch(_0xd4a7aa){console[_0x311f24(0x16a)](_0x311f24(0x144)+_0xa79aad+':',_0xd4a7aa);}}}catch{}}[a149_0x359bfa(0x14f)](..._0x21bfd5){const _0x53c649=a149_0x359bfa;if(this[_0x53c649(0x153)]>LogLevel[_0x53c649(0x152)])return;const _0x156c68=formatColoredLogEntry(_0x53c649(0x14f),_0x21bfd5);this[_0x53c649(0x138)]?.[_0x53c649(0x16b)](_0x156c68+'\x0a');}[a149_0x359bfa(0x168)](..._0x2a144a){const _0x1aa9a4=a149_0x359bfa;if(this['logLevel']>LogLevel[_0x1aa9a4(0x134)])return;const _0x4265a1=formatColoredLogEntry(_0x1aa9a4(0x168),_0x2a144a);this['logStream']?.['write'](_0x4265a1+'\x0a');}[a149_0x359bfa(0x16e)](..._0x53e1ee){const _0x24ac12=a149_0x359bfa;if(this['logLevel']>LogLevel['INFO'])return;const _0x22ea7f=formatColoredLogEntry('info',_0x53e1ee);!this['fileOnly']&&console[_0x24ac12(0x14c)](_0x22ea7f),this[_0x24ac12(0x138)]?.[_0x24ac12(0x16b)](_0x22ea7f+'\x0a');}['warn'](..._0x47b711){const _0x29366a=a149_0x359bfa;if(this[_0x29366a(0x153)]>LogLevel[_0x29366a(0x13f)])return;const _0x23db20=formatColoredLogEntry('warn',_0x47b711);!this[_0x29366a(0x155)]&&console[_0x29366a(0x16a)](_0x23db20),this['logStream']?.[_0x29366a(0x16b)](_0x23db20+'\x0a');}[a149_0x359bfa(0x16a)](..._0x1eda00){const _0x5575f2=a149_0x359bfa,_0x1e715f=formatColoredLogEntry(_0x5575f2(0x16a),_0x1eda00);!this[_0x5575f2(0x155)]&&console[_0x5575f2(0x16a)](_0x1e715f),this[_0x5575f2(0x138)]?.[_0x5575f2(0x16b)](_0x1e715f+'\x0a');}async[a149_0x359bfa(0x167)](){const _0x15434c=a149_0x359bfa;return this[_0x15434c(0x16e)](_0x15434c(0x13d)),new Promise(_0x304d94=>{const _0x8b5f56=_0x15434c;this[_0x8b5f56(0x138)]?this[_0x8b5f56(0x138)][_0x8b5f56(0x137)](()=>{_0x304d94();}):_0x304d94();});}[a149_0x359bfa(0x14b)](){const _0xffa0e8=a149_0x359bfa;return join(this[_0xffa0e8(0x158)],_0xffa0e8(0x159));}}
@@ -1 +1 @@
1
- const a148_0x46ad2c=a148_0x4576;(function(_0x3424c4,_0x41f7fe){const _0x50ebc8=a148_0x4576,_0x462fe4=_0x3424c4();while(!![]){try{const _0xda7e2e=-parseInt(_0x50ebc8(0xb7))/0x1*(parseInt(_0x50ebc8(0xc8))/0x2)+-parseInt(_0x50ebc8(0xb9))/0x3+parseInt(_0x50ebc8(0xab))/0x4+parseInt(_0x50ebc8(0xc2))/0x5*(parseInt(_0x50ebc8(0xba))/0x6)+-parseInt(_0x50ebc8(0xcd))/0x7*(parseInt(_0x50ebc8(0xad))/0x8)+parseInt(_0x50ebc8(0xc5))/0x9+-parseInt(_0x50ebc8(0xb5))/0xa*(-parseInt(_0x50ebc8(0xb6))/0xb);if(_0xda7e2e===_0x41f7fe)break;else _0x462fe4['push'](_0x462fe4['shift']());}catch(_0x2f09e7){_0x462fe4['push'](_0x462fe4['shift']());}}}(a148_0x2571,0x20b6e));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a148_0x528007 from'chalk';import{getCacheDir}from'../core/config.js';function a148_0x4576(_0x341f5a,_0xb648e5){_0x341f5a=_0x341f5a-0xa8;const _0x257159=a148_0x2571();let _0x45762b=_0x257159[_0x341f5a];return _0x45762b;}const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a148_0x46ad2c(0xb3),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x415ae1=a148_0x46ad2c,_0x3ecc05=getCacheDir();return join(_0x3ecc05,_0x415ae1(0xca));}function a148_0x2571(){const _0x25bd6b=['https://registry.npmjs.org/@treasuredata/tdx/latest','stderr','228050kjVnpd','121QBUiss','1921JQwxde','end','81273uPjwJa','678JIqAXy','green','lastCheck','isTTY','currentVersion','error','updateAvailable','HTTP\x20','8215UtHWAS','latestVersion','toISOString','101520mbCcNE','data','stringify','206DLUCrr','\x0aUpdate\x20available:\x20','last_version_check','parse','Run:','49BQPemz','NO_COLOR','now','\x0aRun:\x20','yellow','58808eqWBcb','gray','118336NhdVVD','version','cyan','npm\x20install\x20-g\x20@treasuredata/tdx@latest','utf-8','dim'];a148_0x2571=function(){return _0x25bd6b;};return a148_0x2571();}function readCache(){const _0x407171=a148_0x46ad2c;try{const _0x41ce33=getCacheFilePath(),_0x51106c=readFileSync(_0x41ce33,_0x407171(0xb1));return JSON[_0x407171(0xcb)](_0x51106c);}catch{return null;}}function writeCache(_0x117e4e){const _0x44aa44=a148_0x46ad2c;try{const _0x2eb566=getCacheDir();mkdirSync(_0x2eb566,{'recursive':!![]});const _0xfae375={'lastCheck':new Date()[_0x44aa44(0xc4)](),'latestVersion':_0x117e4e},_0x40bb5c=getCacheFilePath();writeFileSync(_0x40bb5c,JSON[_0x44aa44(0xc7)](_0xfae375,null,0x2),_0x44aa44(0xb1));}catch{}}function isCacheValid(_0x25e989){const _0x5fd4ad=a148_0x46ad2c;if(!_0x25e989)return![];const _0x8c9a9c=new Date(_0x25e989[_0x5fd4ad(0xbc)])['getTime'](),_0x34ceaa=Date[_0x5fd4ad(0xa8)]();return _0x34ceaa-_0x8c9a9c<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x4403db,_0xde3a2c)=>{const _0x270ca1=a148_0x4576,_0x59353b=get(NPM_REGISTRY_URL,_0x476e46=>{const _0x23a4da=a148_0x4576;if(_0x476e46['statusCode']!==0xc8){clearTimeout(_0x34818a),_0xde3a2c(new Error(_0x23a4da(0xc1)+_0x476e46['statusCode']));return;}let _0x303880='';_0x476e46['on'](_0x23a4da(0xc6),_0xa995b=>{_0x303880+=_0xa995b;}),_0x476e46['on'](_0x23a4da(0xb8),()=>{const _0x5c29b9=_0x23a4da;clearTimeout(_0x34818a);try{const _0x239cb1=JSON[_0x5c29b9(0xcb)](_0x303880);if(!valid(_0x239cb1[_0x5c29b9(0xae)])){_0xde3a2c(new Error('Invalid\x20version\x20format'));return;}_0x4403db(_0x239cb1['version']);}catch(_0xb53039){_0xde3a2c(_0xb53039);}});})['on'](_0x270ca1(0xbf),_0x329c2b=>{clearTimeout(_0x34818a),_0xde3a2c(_0x329c2b);}),_0x34818a=setTimeout(()=>{_0x59353b['destroy'](),_0xde3a2c(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x123dca){const _0x175c67=a148_0x46ad2c;try{const _0x389263=readCache();if(isCacheValid(_0x389263)){const _0x5068a7=gt(_0x389263['latestVersion'],_0x123dca);return{'updateAvailable':_0x5068a7,'currentVersion':_0x123dca,'latestVersion':_0x389263[_0x175c67(0xc3)]};}const _0x367a8b=await fetchLatestVersion();writeCache(_0x367a8b);const _0x38189e=gt(_0x367a8b,_0x123dca);return{'updateAvailable':_0x38189e,'currentVersion':_0x123dca,'latestVersion':_0x367a8b};}catch{return null;}}export function displayUpdateNotification(_0x1d18f0){const _0x27ce42=a148_0x46ad2c;if(!_0x1d18f0[_0x27ce42(0xc0)])return;const _0x1604d2=process['stderr'][_0x27ce42(0xbd)]&&!process['env'][_0x27ce42(0xce)],_0x42e941=_0x1604d2?a148_0x528007[_0x27ce42(0xac)]('→'):'→',_0x262fb3=_0x1604d2?a148_0x528007[_0x27ce42(0xb2)](_0x1d18f0[_0x27ce42(0xbe)]):_0x1d18f0[_0x27ce42(0xbe)],_0x2cc55e=_0x1604d2?a148_0x528007[_0x27ce42(0xbb)](_0x1d18f0['latestVersion']):_0x1d18f0['latestVersion'],_0x582c37=_0x1604d2?a148_0x528007[_0x27ce42(0xaf)](_0x27ce42(0xb0)):_0x27ce42(0xb0),_0x453934=_0x1604d2?'\x0a'+a148_0x528007[_0x27ce42(0xaa)]('Update\x20available:')+'\x20'+_0x262fb3+'\x20'+_0x42e941+'\x20'+_0x2cc55e+'\x0a'+a148_0x528007[_0x27ce42(0xb2)](_0x27ce42(0xcc))+'\x20'+_0x582c37+'\x0a':_0x27ce42(0xc9)+_0x262fb3+'\x20'+_0x42e941+'\x20'+_0x2cc55e+_0x27ce42(0xa9)+_0x582c37+'\x0a';process[_0x27ce42(0xb4)]['write'](_0x453934);}
1
+ const a150_0x4259cf=a150_0x2085;(function(_0x370147,_0x40cc7d){const _0x20181c=a150_0x2085,_0x1b61eb=_0x370147();while(!![]){try{const _0x1ff877=-parseInt(_0x20181c(0x98))/0x1*(parseInt(_0x20181c(0xa8))/0x2)+parseInt(_0x20181c(0xad))/0x3*(parseInt(_0x20181c(0xab))/0x4)+-parseInt(_0x20181c(0x9f))/0x5+parseInt(_0x20181c(0x9e))/0x6*(parseInt(_0x20181c(0xa9))/0x7)+parseInt(_0x20181c(0x8d))/0x8*(-parseInt(_0x20181c(0xa7))/0x9)+-parseInt(_0x20181c(0xaf))/0xa+parseInt(_0x20181c(0xa0))/0xb*(parseInt(_0x20181c(0x93))/0xc);if(_0x1ff877===_0x40cc7d)break;else _0x1b61eb['push'](_0x1b61eb['shift']());}catch(_0x5467b5){_0x1b61eb['push'](_0x1b61eb['shift']());}}}(a150_0xa035,0x84037));import{get}from'https';function a150_0x2085(_0x3afb9b,_0x38dd84){_0x3afb9b=_0x3afb9b-0x86;const _0xa03587=a150_0xa035();let _0x208542=_0xa03587[_0x3afb9b];return _0x208542;}import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a150_0x5694a0 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a150_0x4259cf(0x94),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x47f9d3=a150_0x4259cf,_0x3acd2b=getCacheDir();return join(_0x3acd2b,_0x47f9d3(0x9d));}function readCache(){const _0x484fde=a150_0x4259cf;try{const _0x4bc0de=getCacheFilePath(),_0xedd2ca=readFileSync(_0x4bc0de,_0x484fde(0x91));return JSON[_0x484fde(0x95)](_0xedd2ca);}catch{return null;}}function writeCache(_0x24b1bb){const _0x444170=a150_0x4259cf;try{const _0x26df9a=getCacheDir();mkdirSync(_0x26df9a,{'recursive':!![]});const _0x43340d={'lastCheck':new Date()[_0x444170(0x88)](),'latestVersion':_0x24b1bb},_0x2ae67f=getCacheFilePath();writeFileSync(_0x2ae67f,JSON['stringify'](_0x43340d,null,0x2),_0x444170(0x91));}catch{}}function isCacheValid(_0x45e36a){const _0x217211=a150_0x4259cf;if(!_0x45e36a)return![];const _0x2f5f24=new Date(_0x45e36a[_0x217211(0x97)])[_0x217211(0xa1)](),_0x463fb9=Date[_0x217211(0x9b)]();return _0x463fb9-_0x2f5f24<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x403486,_0x12599c)=>{const _0x52fe03=a150_0x2085,_0x4dd587=get(NPM_REGISTRY_URL,_0x47dfe5=>{const _0x4c152a=a150_0x2085;if(_0x47dfe5[_0x4c152a(0x86)]!==0xc8){clearTimeout(_0x475d52),_0x12599c(new Error(_0x4c152a(0xa6)+_0x47dfe5[_0x4c152a(0x86)]));return;}let _0x28f3be='';_0x47dfe5['on']('data',_0x393825=>{_0x28f3be+=_0x393825;}),_0x47dfe5['on'](_0x4c152a(0xa4),()=>{const _0x4af791=_0x4c152a;clearTimeout(_0x475d52);try{const _0x701fad=JSON['parse'](_0x28f3be);if(!valid(_0x701fad[_0x4af791(0x9a)])){_0x12599c(new Error(_0x4af791(0x8b)));return;}_0x403486(_0x701fad[_0x4af791(0x9a)]);}catch(_0x201e1d){_0x12599c(_0x201e1d);}});})['on'](_0x52fe03(0xaa),_0xd4dc2b=>{clearTimeout(_0x475d52),_0x12599c(_0xd4dc2b);}),_0x475d52=setTimeout(()=>{const _0x3e7ff4=_0x52fe03;_0x4dd587[_0x3e7ff4(0xb0)](),_0x12599c(new Error('Request\x20timeout'));},TIMEOUT_MS);});}export async function checkForUpdate(_0x18d15b){const _0x373134=a150_0x4259cf;try{const _0x25a1ec=readCache();if(isCacheValid(_0x25a1ec)){const _0x25df36=gt(_0x25a1ec[_0x373134(0x87)],_0x18d15b);return{'updateAvailable':_0x25df36,'currentVersion':_0x18d15b,'latestVersion':_0x25a1ec[_0x373134(0x87)]};}const _0x33ea3a=await fetchLatestVersion();writeCache(_0x33ea3a);const _0x5ddc99=gt(_0x33ea3a,_0x18d15b);return{'updateAvailable':_0x5ddc99,'currentVersion':_0x18d15b,'latestVersion':_0x33ea3a};}catch{return null;}}function a150_0xa035(){const _0x152247=['506791FvdrdG','write','version','now','currentVersion','last_version_check','12sXSpVQ','2406200nzXceI','3344YwLRTP','getTime','cyan','Run:','end','\x0aRun:\x20','HTTP\x20','5041287cbPHyg','2VMazYg','1736602pKmvnx','error','4WlBwWx','env','3220392XcAUwb','NO_COLOR','2845110jniEzH','destroy','updateAvailable','statusCode','latestVersion','toISOString','green','dim','Invalid\x20version\x20format','Update\x20available:','8hZVgFt','isTTY','stderr','\x0aUpdate\x20available:\x20','utf-8','npm\x20install\x20-g\x20@treasuredata/tdx@latest','31728LIshRD','https://registry.npmjs.org/@treasuredata/tdx/latest','parse','gray','lastCheck'];a150_0xa035=function(){return _0x152247;};return a150_0xa035();}export function displayUpdateNotification(_0x4a999b){const _0x21a5e0=a150_0x4259cf;if(!_0x4a999b[_0x21a5e0(0xb1)])return;const _0x93de32=process['stderr'][_0x21a5e0(0x8e)]&&!process[_0x21a5e0(0xac)][_0x21a5e0(0xae)],_0x272c95=_0x93de32?a150_0x5694a0[_0x21a5e0(0x96)]('→'):'→',_0x38b242=_0x93de32?a150_0x5694a0[_0x21a5e0(0x8a)](_0x4a999b[_0x21a5e0(0x9c)]):_0x4a999b[_0x21a5e0(0x9c)],_0x3951b1=_0x93de32?a150_0x5694a0[_0x21a5e0(0x89)](_0x4a999b[_0x21a5e0(0x87)]):_0x4a999b[_0x21a5e0(0x87)],_0x538585=_0x93de32?a150_0x5694a0[_0x21a5e0(0xa2)](_0x21a5e0(0x92)):'npm\x20install\x20-g\x20@treasuredata/tdx@latest',_0x540a3d=_0x93de32?'\x0a'+a150_0x5694a0['yellow'](_0x21a5e0(0x8c))+'\x20'+_0x38b242+'\x20'+_0x272c95+'\x20'+_0x3951b1+'\x0a'+a150_0x5694a0[_0x21a5e0(0x8a)](_0x21a5e0(0xa3))+'\x20'+_0x538585+'\x0a':_0x21a5e0(0x90)+_0x38b242+'\x20'+_0x272c95+'\x20'+_0x3951b1+_0x21a5e0(0xa5)+_0x538585+'\x0a';process[_0x21a5e0(0x8f)][_0x21a5e0(0x99)](_0x540a3d);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.13.2",
3
+ "version": "0.14.1",
4
4
  "description": "AI-native CLI for Treasure Data - optimized for both human engineers and AI coding assistants",
5
5
  "type": "module",
6
6
  "bin": {