@treasuredata/tdx 0.13.1 → 0.13.2

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 (143) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/api-command.js +1 -1
  8. package/dist/commands/auth-command.js +1 -1
  9. package/dist/commands/chat-command.js +1 -1
  10. package/dist/commands/claude-command.js +1 -1
  11. package/dist/commands/claude-statusline-command.js +1 -1
  12. package/dist/commands/claude-usage-command.js +1 -1
  13. package/dist/commands/command.js +1 -1
  14. package/dist/commands/connection-command.js +1 -1
  15. package/dist/commands/databases.js +1 -1
  16. package/dist/commands/describe.js +1 -1
  17. package/dist/commands/engage-command.js +1 -1
  18. package/dist/commands/job-command.js +1 -1
  19. package/dist/commands/journey-command.d.ts.map +1 -1
  20. package/dist/commands/journey-command.js +1 -1
  21. package/dist/commands/journey-command.js.map +1 -1
  22. package/dist/commands/journey-validate-command.js +1 -1
  23. package/dist/commands/llm-command.js +1 -1
  24. package/dist/commands/llm-proxy.js +1 -1
  25. package/dist/commands/parent-segment-command.js +1 -1
  26. package/dist/commands/profile-command.js +1 -1
  27. package/dist/commands/profiles-command.js +1 -1
  28. package/dist/commands/query-command.js +1 -1
  29. package/dist/commands/segment-command.js +1 -1
  30. package/dist/commands/segment-create-command.js +1 -1
  31. package/dist/commands/segment-fields-command.js +1 -1
  32. package/dist/commands/segment-pull-command.js +1 -1
  33. package/dist/commands/segment-push-command.js +1 -1
  34. package/dist/commands/segment-push-command.js.map +1 -1
  35. package/dist/commands/segment-update-command.js +1 -1
  36. package/dist/commands/segment-use-command.js +1 -1
  37. package/dist/commands/segment-validate-command.js +1 -1
  38. package/dist/commands/segments.js +1 -1
  39. package/dist/commands/show.js +1 -1
  40. package/dist/commands/tables.js +1 -1
  41. package/dist/commands/use-command.js +1 -1
  42. package/dist/commands/user-command.js +1 -1
  43. package/dist/commands/workflow-command.js +1 -1
  44. package/dist/core/auth.js +1 -1
  45. package/dist/core/command-output.js +1 -1
  46. package/dist/core/config.js +1 -1
  47. package/dist/core/connection-cache.js +1 -1
  48. package/dist/core/constants.js +1 -1
  49. package/dist/core/credential-cache.js +1 -1
  50. package/dist/core/global-context.js +1 -1
  51. package/dist/core/keychain.js +1 -1
  52. package/dist/core/profile.js +1 -1
  53. package/dist/core/project-config.js +1 -1
  54. package/dist/core/session.js +1 -1
  55. package/dist/core/user-cache.js +1 -1
  56. package/dist/core/version.js +1 -1
  57. package/dist/index.js +1 -1
  58. package/dist/proxy/anthropic-adapter.js +1 -1
  59. package/dist/proxy/claude-usage-tracker.js +1 -1
  60. package/dist/proxy/context-signature.js +1 -1
  61. package/dist/proxy/conversation-utils.js +1 -1
  62. package/dist/proxy/server.js +1 -1
  63. package/dist/proxy/session-cache.js +1 -1
  64. package/dist/sdk/agent/agent-config.js +1 -1
  65. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  66. package/dist/sdk/agent/agent-yaml.js +1 -1
  67. package/dist/sdk/api.js +1 -1
  68. package/dist/sdk/client/cdp-api-client.js +1 -1
  69. package/dist/sdk/client/endpoints.js +1 -1
  70. package/dist/sdk/client/engage-api-client.js +1 -1
  71. package/dist/sdk/client/http-client.js +1 -1
  72. package/dist/sdk/client/llm-api-client.js +1 -1
  73. package/dist/sdk/client/rate-limiter.js +1 -1
  74. package/dist/sdk/client/td-api-client.js +1 -1
  75. package/dist/sdk/client/trino-api-client.js +1 -1
  76. package/dist/sdk/client/workflow-client.js +1 -1
  77. package/dist/sdk/connection-validator.js +1 -1
  78. package/dist/sdk/connection.js +1 -1
  79. package/dist/sdk/engage.js +1 -1
  80. package/dist/sdk/errors.js +1 -1
  81. package/dist/sdk/index.js +1 -1
  82. package/dist/sdk/io/index.js +1 -1
  83. package/dist/sdk/io/node-filesystem.js +1 -1
  84. package/dist/sdk/job.js +1 -1
  85. package/dist/sdk/journey.d.ts +19 -3
  86. package/dist/sdk/journey.d.ts.map +1 -1
  87. package/dist/sdk/journey.js +1 -1
  88. package/dist/sdk/journey.js.map +1 -1
  89. package/dist/sdk/llm/chat-cache.js +1 -1
  90. package/dist/sdk/llm/index.js +1 -1
  91. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  92. package/dist/sdk/llm/model-aliases.js +1 -1
  93. package/dist/sdk/llm/model-factors.js +1 -1
  94. package/dist/sdk/query/index.js +1 -1
  95. package/dist/sdk/query/sql-parser.js +1 -1
  96. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  97. package/dist/sdk/segment/fields-display.js +1 -1
  98. package/dist/sdk/segment/file-discovery.js +1 -1
  99. package/dist/sdk/segment/journey-utils.js +1 -1
  100. package/dist/sdk/segment/journey-yaml.js +1 -1
  101. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  102. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  103. package/dist/sdk/segment/pull-workflow.d.ts.map +1 -1
  104. package/dist/sdk/segment/pull-workflow.js +1 -1
  105. package/dist/sdk/segment/pull-workflow.js.map +1 -1
  106. package/dist/sdk/segment/push-workflow.js +1 -1
  107. package/dist/sdk/segment/resolution-context.js +1 -1
  108. package/dist/sdk/segment/segment-path-parser.js +1 -1
  109. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  110. package/dist/sdk/segment/target-resolution.js +1 -1
  111. package/dist/sdk/segment/tdx-config.js +1 -1
  112. package/dist/sdk/segment/validate-files.js +1 -1
  113. package/dist/sdk/segment/yaml-validator.js +1 -1
  114. package/dist/sdk/segment.js +1 -1
  115. package/dist/sdk/types/index.js +1 -1
  116. package/dist/sdk/types/progress.js +1 -1
  117. package/dist/sdk/user.js +1 -1
  118. package/dist/sdk/util/format-detector.js +1 -1
  119. package/dist/sdk/util/formatters.js +1 -1
  120. package/dist/sdk/util/index.js +1 -1
  121. package/dist/sdk/util/tree-formatter.js +1 -1
  122. package/dist/sdk/workflow/clone-workflow.js +1 -1
  123. package/dist/sdk/workflow/index.js +1 -1
  124. package/dist/sdk/workflow/pull-workflow.js +1 -1
  125. package/dist/sdk/workflow/push-workflow.js +1 -1
  126. package/dist/sdk/workflow/tdx-config.js +1 -1
  127. package/dist/sdk/workflow/workflow-utils.js +1 -1
  128. package/dist/utils/async.js +1 -1
  129. package/dist/utils/colors.js +1 -1
  130. package/dist/utils/diff.js +1 -1
  131. package/dist/utils/file-permissions.js +1 -1
  132. package/dist/utils/json-loader.js +1 -1
  133. package/dist/utils/option-validation.js +1 -1
  134. package/dist/utils/port.js +1 -1
  135. package/dist/utils/process.js +1 -1
  136. package/dist/utils/prompt.js +1 -1
  137. package/dist/utils/spinner.js +1 -1
  138. package/dist/utils/sse-parser.js +1 -1
  139. package/dist/utils/string-utils.js +1 -1
  140. package/dist/utils/table-ref-parser.js +1 -1
  141. package/dist/utils/tdx-logger.js +1 -1
  142. package/dist/utils/version-check.js +1 -1
  143. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x100c07,_0x5b36d0){const _0x3dcf36=a135_0x26f3,_0x4fff21=_0x100c07();while(!![]){try{const _0x19e9f3=-parseInt(_0x3dcf36(0x1dc))/0x1+-parseInt(_0x3dcf36(0x1dd))/0x2*(-parseInt(_0x3dcf36(0x1e2))/0x3)+parseInt(_0x3dcf36(0x1ec))/0x4*(parseInt(_0x3dcf36(0x1d6))/0x5)+-parseInt(_0x3dcf36(0x1ed))/0x6+-parseInt(_0x3dcf36(0x1e5))/0x7+-parseInt(_0x3dcf36(0x1db))/0x8+-parseInt(_0x3dcf36(0x1e1))/0x9*(-parseInt(_0x3dcf36(0x1d4))/0xa);if(_0x19e9f3===_0x5b36d0)break;else _0x4fff21['push'](_0x4fff21['shift']());}catch(_0x7dd3cc){_0x4fff21['push'](_0x4fff21['shift']());}}}(a135_0x4ecb,0x690ae));import{Chalk}from'chalk';function a135_0x26f3(_0x519df6,_0x1588ba){_0x519df6=_0x519df6-0x1d2;const _0x4ecb17=a135_0x4ecb();let _0x26f36d=_0x4ecb17[_0x519df6];return _0x26f36d;}function a135_0x4ecb(){const _0x5e3777=['isTTY','3298750iwPIBI','map','isArray','boolean','env','stringify','yellow','3472ShAtWS','3353100jmnbyt','join','null','20hwjgzP','string','4265eWxDGj','cyan','length','repeat','object','2263704sVipjf','182408fxlRCD','199742UNIeVx','entries','blue','dim','3985686PsNNWI','9hibxCM','number'];a135_0x4ecb=function(){return _0x5e3777;};return a135_0x4ecb();}export function shouldUseColor(_0x571379={}){const _0x3fbffa=a135_0x26f3;if(_0x571379['noColor']===!![])return![];if(_0x571379['color']===!![])return!![];if(process[_0x3fbffa(0x1e9)]['NO_COLOR']!==undefined)return![];return process['stdout'][_0x3fbffa(0x1e4)]??![];}export function getChalk(_0x3e7a10={}){if(shouldUseColor(_0x3e7a10))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x2c276d,_0x26afae={}){return getChalk(_0x26afae)['dim'](_0x2c276d);}export function colorHeader(_0xf7ef93,_0x1dffef={}){return getChalk(_0x1dffef)['cyan'](_0xf7ef93);}export function colorType(_0x4408fb,_0x155350={}){const _0x1a6958=a135_0x26f3;return getChalk(_0x155350)[_0x1a6958(0x1e0)](_0x4408fb);}export function colorJSONKey(_0x291206,_0x5a1404={}){const _0x40bfd2=a135_0x26f3;return getChalk(_0x5a1404)[_0x40bfd2(0x1df)](_0x291206);}export function colorJSONString(_0x5b8a8f,_0x12248e={}){return getChalk(_0x12248e)['green'](_0x5b8a8f);}export function colorJSONNumber(_0x4d43b8,_0x281264={}){const _0x8f172a=a135_0x26f3;return getChalk(_0x281264)[_0x8f172a(0x1d7)](_0x4d43b8);}export function colorJSONBoolean(_0x32a998,_0x2fb88e={}){const _0x1496b9=a135_0x26f3;return getChalk(_0x2fb88e)[_0x1496b9(0x1eb)](_0x32a998);}export function colorJSONNull(_0x25ecf8,_0x4eb78b={}){const _0x5f0f68=a135_0x26f3;return getChalk(_0x4eb78b)[_0x5f0f68(0x1e0)](_0x25ecf8);}export function colorizeJSONCompact(_0x54c8d7,_0x3f8c30={}){const _0x117a6b=a135_0x26f3;if(!shouldUseColor(_0x3f8c30))return JSON[_0x117a6b(0x1ea)](_0x54c8d7);if(_0x54c8d7===null)return colorJSONNull(_0x117a6b(0x1d3),_0x3f8c30);if(typeof _0x54c8d7===_0x117a6b(0x1e8))return colorJSONBoolean(String(_0x54c8d7),_0x3f8c30);if(typeof _0x54c8d7===_0x117a6b(0x1e3))return colorJSONNumber(String(_0x54c8d7),_0x3f8c30);if(typeof _0x54c8d7===_0x117a6b(0x1d5))return colorJSONString(JSON[_0x117a6b(0x1ea)](_0x54c8d7),_0x3f8c30);if(Array['isArray'](_0x54c8d7)){if(_0x54c8d7[_0x117a6b(0x1d8)]===0x0)return'[]';const _0x767f30=_0x54c8d7[_0x117a6b(0x1e6)](_0x468662=>colorizeJSONCompact(_0x468662,_0x3f8c30));return'['+_0x767f30[_0x117a6b(0x1d2)](',')+']';}if(typeof _0x54c8d7==='object'){const _0x2d77af=Object[_0x117a6b(0x1de)](_0x54c8d7);if(_0x2d77af[_0x117a6b(0x1d8)]===0x0)return'{}';const _0x53b16b=_0x2d77af[_0x117a6b(0x1e6)](([_0xef3118,_0x414c2f])=>{const _0x2d8457=_0x117a6b,_0x21a1b8=colorJSONKey(JSON[_0x2d8457(0x1ea)](_0xef3118),_0x3f8c30),_0x4d28ff=colorizeJSONCompact(_0x414c2f,_0x3f8c30);return _0x21a1b8+':'+_0x4d28ff;});return'{'+_0x53b16b[_0x117a6b(0x1d2)](',')+'}';}return String(_0x54c8d7);}export function colorizeJSON(_0x361f3f,_0x27df2a={},_0x2f0f45=0x0){const _0x7b41bb=a135_0x26f3;if(!shouldUseColor(_0x27df2a))return JSON[_0x7b41bb(0x1ea)](_0x361f3f,null,0x2);const _0x2f38e6='\x20'[_0x7b41bb(0x1d9)](_0x2f0f45),_0xa7a9d7=_0x2f0f45+0x2;if(_0x361f3f===null)return colorJSONNull('null',_0x27df2a);if(typeof _0x361f3f===_0x7b41bb(0x1e8))return colorJSONBoolean(String(_0x361f3f),_0x27df2a);if(typeof _0x361f3f===_0x7b41bb(0x1e3))return colorJSONNumber(String(_0x361f3f),_0x27df2a);if(typeof _0x361f3f===_0x7b41bb(0x1d5))return colorJSONString(JSON['stringify'](_0x361f3f),_0x27df2a);if(Array[_0x7b41bb(0x1e7)](_0x361f3f)){if(_0x361f3f[_0x7b41bb(0x1d8)]===0x0)return'[]';const _0x38c5da=_0x361f3f[_0x7b41bb(0x1e6)](_0x1f89f2=>{const _0x28138e=_0x7b41bb,_0x68eaed=colorizeJSON(_0x1f89f2,_0x27df2a,_0xa7a9d7);return''+'\x20'[_0x28138e(0x1d9)](_0xa7a9d7)+_0x68eaed;});return'[\x0a'+_0x38c5da[_0x7b41bb(0x1d2)](',\x0a')+('\x0a'+_0x2f38e6+']');}if(typeof _0x361f3f===_0x7b41bb(0x1da)){const _0x4a2296=Object[_0x7b41bb(0x1de)](_0x361f3f);if(_0x4a2296[_0x7b41bb(0x1d8)]===0x0)return'{}';const _0x40047b=_0x4a2296[_0x7b41bb(0x1e6)](([_0x7cf0b9,_0x3b3c2e])=>{const _0x2c0ee9=_0x7b41bb,_0x9684f=colorJSONKey(JSON[_0x2c0ee9(0x1ea)](_0x7cf0b9),_0x27df2a),_0xccfa96=colorizeJSON(_0x3b3c2e,_0x27df2a,_0xa7a9d7);return''+'\x20'[_0x2c0ee9(0x1d9)](_0xa7a9d7)+_0x9684f+':\x20'+_0xccfa96;});return'{\x0a'+_0x40047b['join'](',\x0a')+('\x0a'+_0x2f38e6+'}');}return String(_0x361f3f);}
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 +1 @@
1
- (function(_0x3570bd,_0x16f6be){const _0x1cb7fe=a136_0x484b,_0x153013=_0x3570bd();while(!![]){try{const _0x452d3f=-parseInt(_0x1cb7fe(0x19e))/0x1*(parseInt(_0x1cb7fe(0x1ae))/0x2)+-parseInt(_0x1cb7fe(0x1a6))/0x3*(parseInt(_0x1cb7fe(0x1ad))/0x4)+parseInt(_0x1cb7fe(0x1aa))/0x5*(-parseInt(_0x1cb7fe(0x1ab))/0x6)+-parseInt(_0x1cb7fe(0x1b7))/0x7*(parseInt(_0x1cb7fe(0x19a))/0x8)+parseInt(_0x1cb7fe(0x1a7))/0x9*(parseInt(_0x1cb7fe(0x1c0))/0xa)+parseInt(_0x1cb7fe(0x197))/0xb*(parseInt(_0x1cb7fe(0x1ac))/0xc)+parseInt(_0x1cb7fe(0x1a5))/0xd;if(_0x452d3f===_0x16f6be)break;else _0x153013['push'](_0x153013['shift']());}catch(_0x23c2c8){_0x153013['push'](_0x153013['shift']());}}}(a136_0x32d2,0xea2b3));function a136_0x32d2(){const _0x16d704=['30052854pPRbuY','28563jMiJgU','6696bgmerT','cyan','map','245QWnaLw','130368DPRTeD','3934188sZfBHa','100egjFqG','518242EdntHk','\x20\x20\x20','unshift','\x20+\x20','padStart','length','old','add','type','123298thhTTK','new','green','join','dim','forEach','push','unchanged','some','12420jMIBbQ','33covAtB','repeat','split','536krFLuc','min','added','removed','3IKCODm','has','content','\x20\x20...','max','red','size'];a136_0x32d2=function(){return _0x16d704;};return a136_0x32d2();}import a136_0xf7c870 from'chalk';export function generateDiff(_0x25581a,_0x4180be){const _0x5ba8b9=a136_0x484b,_0x9d0bc5=_0x25581a[_0x5ba8b9(0x199)]('\x0a'),_0x5909ce=_0x4180be[_0x5ba8b9(0x199)]('\x0a'),_0x31a2d2=[],_0x40f078=computeLCS(_0x9d0bc5,_0x5909ce);let _0x1b0a40=0x0,_0x5ee89e=0x0,_0x4b0dfa=0x0;while(_0x1b0a40<_0x9d0bc5[_0x5ba8b9(0x1b3)]||_0x5ee89e<_0x5909ce[_0x5ba8b9(0x1b3)]){if(_0x4b0dfa<_0x40f078['length']&&_0x1b0a40<_0x9d0bc5['length']&&_0x9d0bc5[_0x1b0a40]===_0x40f078[_0x4b0dfa])_0x5ee89e<_0x5909ce[_0x5ba8b9(0x1b3)]&&_0x5909ce[_0x5ee89e]===_0x40f078[_0x4b0dfa]?(_0x31a2d2[_0x5ba8b9(0x1bd)]({'type':'unchanged','content':_0x9d0bc5[_0x1b0a40]}),_0x1b0a40++,_0x5ee89e++,_0x4b0dfa++):(_0x31a2d2[_0x5ba8b9(0x1bd)]({'type':'added','content':_0x5909ce[_0x5ee89e]}),_0x5ee89e++);else{if(_0x4b0dfa<_0x40f078[_0x5ba8b9(0x1b3)]&&_0x5ee89e<_0x5909ce[_0x5ba8b9(0x1b3)]&&_0x5909ce[_0x5ee89e]===_0x40f078[_0x4b0dfa])_0x31a2d2[_0x5ba8b9(0x1bd)]({'type':_0x5ba8b9(0x19d),'content':_0x9d0bc5[_0x1b0a40]}),_0x1b0a40++;else{if(_0x1b0a40<_0x9d0bc5[_0x5ba8b9(0x1b3)]&&(_0x4b0dfa>=_0x40f078[_0x5ba8b9(0x1b3)]||_0x9d0bc5[_0x1b0a40]!==_0x40f078[_0x4b0dfa]))_0x31a2d2[_0x5ba8b9(0x1bd)]({'type':_0x5ba8b9(0x19d),'content':_0x9d0bc5[_0x1b0a40]}),_0x1b0a40++;else _0x5ee89e<_0x5909ce[_0x5ba8b9(0x1b3)]&&(_0x31a2d2[_0x5ba8b9(0x1bd)]({'type':_0x5ba8b9(0x19c),'content':_0x5909ce[_0x5ee89e]}),_0x5ee89e++);}}}return _0x31a2d2;}function computeLCS(_0x528ac5,_0xa18de5){const _0x286ec2=a136_0x484b,_0x35c501=_0x528ac5[_0x286ec2(0x1b3)],_0x59fa93=_0xa18de5[_0x286ec2(0x1b3)],_0x1acc78=Array(_0x35c501+0x1)['fill'](null)[_0x286ec2(0x1a9)](()=>Array(_0x59fa93+0x1)['fill'](0x0));for(let _0x4fce79=0x1;_0x4fce79<=_0x35c501;_0x4fce79++){for(let _0x20617f=0x1;_0x20617f<=_0x59fa93;_0x20617f++){_0x528ac5[_0x4fce79-0x1]===_0xa18de5[_0x20617f-0x1]?_0x1acc78[_0x4fce79][_0x20617f]=_0x1acc78[_0x4fce79-0x1][_0x20617f-0x1]+0x1:_0x1acc78[_0x4fce79][_0x20617f]=Math[_0x286ec2(0x1a2)](_0x1acc78[_0x4fce79-0x1][_0x20617f],_0x1acc78[_0x4fce79][_0x20617f-0x1]);}}const _0x3ed638=[];let _0x529864=_0x35c501,_0x1bbaf5=_0x59fa93;while(_0x529864>0x0&&_0x1bbaf5>0x0){if(_0x528ac5[_0x529864-0x1]===_0xa18de5[_0x1bbaf5-0x1])_0x3ed638[_0x286ec2(0x1b0)](_0x528ac5[_0x529864-0x1]),_0x529864--,_0x1bbaf5--;else _0x1acc78[_0x529864-0x1][_0x1bbaf5]>_0x1acc78[_0x529864][_0x1bbaf5-0x1]?_0x529864--:_0x1bbaf5--;}return _0x3ed638;}export function formatDiffWithColors(_0x263204,_0x579dfc=0x3){const _0x5715e5=a136_0x484b,_0x264ecb=new Set();_0x263204[_0x5715e5(0x1bc)]((_0x37c6e2,_0x1cf731)=>{const _0x3669d4=_0x5715e5;_0x37c6e2['type']!==_0x3669d4(0x1be)&&_0x264ecb[_0x3669d4(0x1b5)](_0x1cf731);});if(_0x264ecb[_0x5715e5(0x1a4)]===0x0)return'';const _0x1bf547=new Set();for(const _0x5db83f of _0x264ecb){for(let _0x5681ca=Math[_0x5715e5(0x1a2)](0x0,_0x5db83f-_0x579dfc);_0x5681ca<=Math[_0x5715e5(0x19b)](_0x263204[_0x5715e5(0x1b3)]-0x1,_0x5db83f+_0x579dfc);_0x5681ca++){_0x1bf547[_0x5715e5(0x1b5)](_0x5681ca);}}const _0x17d243=[];let _0x5e2579=-0x1;const _0x530c0c=_0x263204['length'],_0x3a8406=Math['max'](0x3,String(_0x530c0c)[_0x5715e5(0x1b3)]),_0x530803=[];let _0x296c8b=0x0,_0xd55617=0x0;for(const _0x4d2c97 of _0x263204){if(_0x4d2c97[_0x5715e5(0x1b6)]===_0x5715e5(0x19d))_0x296c8b++,_0x530803[_0x5715e5(0x1bd)]({'old':_0x296c8b,'new':0x0});else _0x4d2c97['type']===_0x5715e5(0x19c)?(_0xd55617++,_0x530803[_0x5715e5(0x1bd)]({'old':0x0,'new':_0xd55617})):(_0x296c8b++,_0xd55617++,_0x530803[_0x5715e5(0x1bd)]({'old':_0x296c8b,'new':_0xd55617}));}for(let _0x273d21=0x0;_0x273d21<_0x263204['length'];_0x273d21++){if(!_0x1bf547[_0x5715e5(0x19f)](_0x273d21))continue;_0x5e2579!==-0x1&&_0x273d21>_0x5e2579+0x1&&_0x17d243['push'](a136_0xf7c870[_0x5715e5(0x1a8)](_0x5715e5(0x1a1)));_0x5e2579=_0x273d21;const _0x2c23d8=_0x263204[_0x273d21],_0x408973=_0x530803[_0x273d21],_0x26946e=_0x408973[_0x5715e5(0x1b4)]>0x0?String(_0x408973['old'])[_0x5715e5(0x1b2)](_0x3a8406):'\x20'[_0x5715e5(0x198)](_0x3a8406),_0x105ac4=_0x408973[_0x5715e5(0x1b8)]>0x0?String(_0x408973[_0x5715e5(0x1b8)])[_0x5715e5(0x1b2)](_0x3a8406):'\x20'[_0x5715e5(0x198)](_0x3a8406);switch(_0x2c23d8[_0x5715e5(0x1b6)]){case _0x5715e5(0x19d):_0x17d243['push'](a136_0xf7c870[_0x5715e5(0x1a3)](_0x26946e+'\x20'+_0x105ac4+'\x20-\x20'+_0x2c23d8[_0x5715e5(0x1a0)]));break;case _0x5715e5(0x19c):_0x17d243['push'](a136_0xf7c870[_0x5715e5(0x1b9)](_0x26946e+'\x20'+_0x105ac4+_0x5715e5(0x1b1)+_0x2c23d8[_0x5715e5(0x1a0)]));break;default:_0x17d243[_0x5715e5(0x1bd)](a136_0xf7c870[_0x5715e5(0x1bb)](_0x26946e+'\x20'+_0x105ac4+_0x5715e5(0x1af)+_0x2c23d8['content']));break;}}return _0x17d243[_0x5715e5(0x1ba)]('\x0a');}function a136_0x484b(_0x1d150c,_0x4b90e2){_0x1d150c=_0x1d150c-0x197;const _0x32d2ec=a136_0x32d2();let _0x484b72=_0x32d2ec[_0x1d150c];return _0x484b72;}export function hasChanges(_0x19b1fa){const _0x3fa7a8=a136_0x484b;return _0x19b1fa[_0x3fa7a8(0x1bf)](_0x322931=>_0x322931[_0x3fa7a8(0x1b6)]!==_0x3fa7a8(0x1be));}
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 +1 @@
1
- (function(_0x4397c2,_0x44f05b){const _0x3c966f=a137_0x173d,_0x1941e4=_0x4397c2();while(!![]){try{const _0x3582ba=-parseInt(_0x3c966f(0xdd))/0x1*(-parseInt(_0x3c966f(0xe5))/0x2)+-parseInt(_0x3c966f(0xde))/0x3*(parseInt(_0x3c966f(0xd8))/0x4)+parseInt(_0x3c966f(0xe4))/0x5*(-parseInt(_0x3c966f(0xeb))/0x6)+-parseInt(_0x3c966f(0xe1))/0x7+-parseInt(_0x3c966f(0xec))/0x8+parseInt(_0x3c966f(0xe8))/0x9*(-parseInt(_0x3c966f(0xdc))/0xa)+-parseInt(_0x3c966f(0xe2))/0xb*(-parseInt(_0x3c966f(0xd9))/0xc);if(_0x3582ba===_0x44f05b)break;else _0x1941e4['push'](_0x1941e4['shift']());}catch(_0x272937){_0x1941e4['push'](_0x1941e4['shift']());}}}(a137_0x1f60,0x60d33));import*as a137_0x2ced46 from'node:fs';import*as a137_0x3d8c0d from'node:path';export function setSecureFilePermissions(_0x10749e){const _0x4063f7=a137_0x173d;try{a137_0x2ced46[_0x4063f7(0xe7)](_0x10749e,0x180);}catch{console[_0x4063f7(0xd6)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x10749e);}}function a137_0x1f60(){const _0x28de40=['2706865AIrxlQ','649BrkMXI',').\x20','10KrDClD','2rmhnsy','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','2937042AmrxIA','writeFileSync','toString','1689954cdJSKD','800448VQyPNh','warn','Should\x20be\x200600\x20or\x20more\x20restrictive.','53052CzRgAE','421404KJeVZV','Warning:\x20','mode','10rgpMKx','85726pNJocB','87ODaRjZ','existsSync','mkdirSync'];a137_0x1f60=function(){return _0x28de40;};return a137_0x1f60();}export function setSecureDirectoryPermissions(_0x181ddc){const _0x30e843=a137_0x173d;try{a137_0x2ced46['chmodSync'](_0x181ddc,0x1c0);}catch{console[_0x30e843(0xd6)](_0x30e843(0xe6)+_0x181ddc);}}export function createSecureDirectory(_0x5c2dfe){const _0x1c4a11=a137_0x173d;!a137_0x2ced46[_0x1c4a11(0xdf)](_0x5c2dfe)&&(a137_0x2ced46[_0x1c4a11(0xe0)](_0x5c2dfe,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x5c2dfe));}export function validateSecureFilePermissions(_0x12efa3){const _0x6b0261=a137_0x173d;try{const _0x4d515e=a137_0x2ced46['statSync'](_0x12efa3),_0x1aad5b=_0x4d515e[_0x6b0261(0xdb)]&0x1ff,_0x3b81a3=(_0x1aad5b&0x3f)!==0x0;if(_0x3b81a3)return console['warn'](_0x6b0261(0xda)+_0x12efa3+'\x20has\x20insecure\x20permissions\x20('+_0x1aad5b[_0x6b0261(0xea)](0x8)+_0x6b0261(0xe3)+_0x6b0261(0xd7)),![];return!![];}catch{return!![];}}function a137_0x173d(_0x27a093,_0x3e2ff9){_0x27a093=_0x27a093-0xd6;const _0x1f60bb=a137_0x1f60();let _0x173d62=_0x1f60bb[_0x27a093];return _0x173d62;}export function writeSecureFile(_0x44b38a,_0x1279bd){const _0xd208aa=a137_0x173d,_0x17a9b9=a137_0x3d8c0d['dirname'](_0x44b38a);createSecureDirectory(_0x17a9b9),a137_0x2ced46[_0xd208aa(0xe9)](_0x44b38a,_0x1279bd,{'mode':0x180}),setSecureFilePermissions(_0x44b38a);}
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 +1 @@
1
- (function(_0x1434d7,_0x34966a){const _0x5e6bed=a138_0x2488,_0x1659b9=_0x1434d7();while(!![]){try{const _0x1ce22d=parseInt(_0x5e6bed(0xe9))/0x1+-parseInt(_0x5e6bed(0xe6))/0x2*(parseInt(_0x5e6bed(0xd9))/0x3)+parseInt(_0x5e6bed(0xdb))/0x4*(parseInt(_0x5e6bed(0xdd))/0x5)+-parseInt(_0x5e6bed(0xd2))/0x6*(parseInt(_0x5e6bed(0xd3))/0x7)+-parseInt(_0x5e6bed(0xd5))/0x8*(parseInt(_0x5e6bed(0xda))/0x9)+parseInt(_0x5e6bed(0xe8))/0xa+-parseInt(_0x5e6bed(0xd4))/0xb*(parseInt(_0x5e6bed(0xe7))/0xc);if(_0x1ce22d===_0x34966a)break;else _0x1659b9['push'](_0x1659b9['shift']());}catch(_0x26f161){_0x1659b9['push'](_0x1659b9['shift']());}}}(a138_0x1b86,0x3fcbb));import{readFile}from'fs/promises';function a138_0x2488(_0x554a21,_0x54fa55){_0x554a21=_0x554a21-0xd2;const _0x1b867d=a138_0x1b86();let _0x2488a6=_0x1b867d[_0x554a21];return _0x2488a6;}import{SDKError,ErrorCode}from'../sdk/errors.js';function a138_0x1b86(){const _0x1fa6e0=['618OCBvRg','1098564XrSLCu','5158910RLVHUh','257973GxwMyT','6eYxrPQ','3422902HUggvV','11erllaG','304576iuecbO','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','PERMISSION_DENIED','2883uaSHxE','18xFlWWx','1764276FqhcfS','utf-8','5XEIwzW','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','code','File\x20not\x20found:\x20','message','INVALID_ARGUMENT','EACCES','NOT_FOUND'];a138_0x1b86=function(){return _0x1fa6e0;};return a138_0x1b86();}export async function loadJSON(_0x598257,_0x20ccd8){const _0x4f7374=a138_0x2488;try{if(_0x20ccd8){const _0x18bcc9=await readFile(_0x598257,_0x4f7374(0xdc));try{return JSON[_0x4f7374(0xd7)](_0x18bcc9);}catch(_0x3e087c){throw new SDKError(ErrorCode[_0x4f7374(0xe3)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x598257+'\x27:\x20'+(_0x3e087c instanceof Error?_0x3e087c[_0x4f7374(0xe2)]:String(_0x3e087c)));}}else try{return JSON[_0x4f7374(0xd7)](_0x598257);}catch(_0x34a1a6){throw new SDKError(ErrorCode[_0x4f7374(0xe3)],_0x4f7374(0xdf)+(_0x34a1a6 instanceof Error?_0x34a1a6['message']:String(_0x34a1a6)));}}catch(_0x417c6a){if(_0x417c6a instanceof SDKError)throw _0x417c6a;if(_0x417c6a instanceof Error&&_0x4f7374(0xe0)in _0x417c6a){const _0xa901ef=_0x417c6a;if(_0xa901ef[_0x4f7374(0xe0)]==='ENOENT')throw new SDKError(ErrorCode[_0x4f7374(0xe5)],_0x4f7374(0xe1)+_0x598257);else{if(_0xa901ef[_0x4f7374(0xe0)]===_0x4f7374(0xe4))throw new SDKError(ErrorCode[_0x4f7374(0xd8)],'Permission\x20denied\x20reading\x20file:\x20'+_0x598257);}}throw new SDKError(ErrorCode['INTERNAL'],_0x4f7374(0xde)+(_0x417c6a instanceof Error?_0x417c6a[_0x4f7374(0xe2)]:String(_0x417c6a)));}}export async function loadJSONFromOptions(_0x322c61,_0x415f66){const _0x11dbd5=a138_0x2488;if(_0x322c61&&_0x415f66)throw new SDKError(ErrorCode[_0x11dbd5(0xe3)],_0x11dbd5(0xd6));if(_0x322c61)return await loadJSON(_0x322c61,![]);if(_0x415f66)return await loadJSON(_0x415f66,!![]);return undefined;}
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 +1 @@
1
- (function(_0xf608d9,_0x150c8c){const _0x226ee3=a139_0x2e1d,_0x336acd=_0xf608d9();while(!![]){try{const _0x346cee=parseInt(_0x226ee3(0x1de))/0x1+-parseInt(_0x226ee3(0x1e0))/0x2+parseInt(_0x226ee3(0x1d7))/0x3*(parseInt(_0x226ee3(0x1dd))/0x4)+-parseInt(_0x226ee3(0x1df))/0x5+-parseInt(_0x226ee3(0x1d8))/0x6+parseInt(_0x226ee3(0x1db))/0x7+-parseInt(_0x226ee3(0x1d6))/0x8*(-parseInt(_0x226ee3(0x1d9))/0x9);if(_0x346cee===_0x150c8c)break;else _0x336acd['push'](_0x336acd['shift']());}catch(_0x352ff5){_0x336acd['push'](_0x336acd['shift']());}}}(a139_0x2147,0xb0bb0));function a139_0x2e1d(_0x9c1122,_0x2927e3){_0x9c1122=_0x9c1122-0x1d3;const _0x2147d7=a139_0x2147();let _0x2e1de4=_0x2147d7[_0x9c1122];return _0x2e1de4;}function a139_0x2147(){const _0x435ba4=['2420606lvECkB','Invalid\x20limit\x20value:\x20','number','isInteger','144bocolz','759XfVbKw','2104002hJbDKP','381564sYbJvJ','Invalid\x20timeout\x20value:\x20','7112994bYDKSg','.\x20Must\x20be\x20a\x20positive\x20integer.','10300dylBlK','1045909IoqPvo','5958980DlHVTl'];a139_0x2147=function(){return _0x435ba4;};return a139_0x2147();}export function validateLimitOption(_0x54d0a1){const _0x3becdc=a139_0x2e1d;if(!Number[_0x3becdc(0x1d5)](_0x54d0a1))return{'isValid':![],'error':_0x3becdc(0x1d3)+_0x54d0a1+'.\x20Must\x20be\x20an\x20integer.'};if(_0x54d0a1<=0x0)return{'isValid':![],'error':_0x3becdc(0x1d3)+_0x54d0a1+_0x3becdc(0x1dc)};return{'isValid':!![],'value':_0x54d0a1};}export function validateTimeoutOption(_0x3b46da,_0x789c0c=0x1e){const _0x55f443=a139_0x2e1d;if(_0x3b46da===undefined)return{'isValid':!![],'value':_0x789c0c};const _0x4ae07f=typeof _0x3b46da===_0x55f443(0x1d4)?_0x3b46da:parseFloat(_0x3b46da);if(isNaN(_0x4ae07f))return{'isValid':![],'error':_0x55f443(0x1da)+_0x3b46da+'.\x20Must\x20be\x20a\x20number.'};if(_0x4ae07f<=0x0)return{'isValid':![],'error':_0x55f443(0x1da)+_0x4ae07f+'.\x20Must\x20be\x20a\x20positive\x20number.'};return{'isValid':!![],'value':_0x4ae07f};}
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 +1 @@
1
- (function(_0xa5734e,_0x29485d){const _0x12f867=a140_0x3a71,_0x91f18c=_0xa5734e();while(!![]){try{const _0xd97fb6=-parseInt(_0x12f867(0x1be))/0x1+-parseInt(_0x12f867(0x1b8))/0x2*(-parseInt(_0x12f867(0x1c3))/0x3)+parseInt(_0x12f867(0x1c4))/0x4*(parseInt(_0x12f867(0x1b9))/0x5)+parseInt(_0x12f867(0x1b6))/0x6*(-parseInt(_0x12f867(0x1c2))/0x7)+-parseInt(_0x12f867(0x1c6))/0x8*(-parseInt(_0x12f867(0x1bc))/0x9)+-parseInt(_0x12f867(0x1b7))/0xa+-parseInt(_0x12f867(0x1ba))/0xb*(-parseInt(_0x12f867(0x1c5))/0xc);if(_0xd97fb6===_0x29485d)break;else _0x91f18c['push'](_0x91f18c['shift']());}catch(_0x2ba0ca){_0x91f18c['push'](_0x91f18c['shift']());}}}(a140_0x1cce,0x2d457));function a140_0x1cce(){const _0x3844af=['55298BwzHbo','EADDRINUSE','0.0.0.0','once','2373231drmEou','219fPICSg','4SmRldX','12WdjYfB','3824EqbiwJ','6Tfbuhf','2311270QrGIWl','6278PkdYmq','357745Mwibaa','1800073AcPxaY','code','6525QStlnR','close'];a140_0x1cce=function(){return _0x3844af;};return a140_0x1cce();}function a140_0x3a71(_0x56475b,_0x125512){_0x56475b=_0x56475b-0x1b6;const _0x1cced3=a140_0x1cce();let _0x3a71d8=_0x1cced3[_0x56475b];return _0x3a71d8;}import{createServer}from'node:net';export async function isPortAvailable(_0x444f28){return new Promise(_0x49d0d2=>{const _0x41fbb5=a140_0x3a71,_0x5ea1df=createServer();_0x5ea1df[_0x41fbb5(0x1c1)]('error',_0x19a68c=>{const _0x4a668e=_0x41fbb5;_0x19a68c[_0x4a668e(0x1bb)]===_0x4a668e(0x1bf)?_0x49d0d2(![]):_0x49d0d2(![]);}),_0x5ea1df[_0x41fbb5(0x1c1)]('listening',()=>{const _0x4c128f=_0x41fbb5;_0x5ea1df[_0x4c128f(0x1bd)](),_0x49d0d2(!![]);}),_0x5ea1df['listen'](_0x444f28,_0x41fbb5(0x1c0));});}export async function findAvailablePort(_0x169214=0xfa0,_0x3eec2a=0x64){for(let _0x4ee017=0x0;_0x4ee017<_0x3eec2a;_0x4ee017++){const _0x7b37d=_0x169214+_0x4ee017;if(await isPortAvailable(_0x7b37d))return _0x7b37d;}throw new Error('No\x20available\x20port\x20found\x20between\x20'+_0x169214+'\x20and\x20'+(_0x169214+_0x3eec2a-0x1));}
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 +1 @@
1
- const a141_0x4b45cd=a141_0x69cb;(function(_0x50ccfb,_0x45098e){const _0x4a36df=a141_0x69cb,_0x593568=_0x50ccfb();while(!![]){try{const _0x139c59=parseInt(_0x4a36df(0x1e2))/0x1+parseInt(_0x4a36df(0x201))/0x2+-parseInt(_0x4a36df(0x1f3))/0x3+parseInt(_0x4a36df(0x204))/0x4+parseInt(_0x4a36df(0x1f1))/0x5*(-parseInt(_0x4a36df(0x1de))/0x6)+-parseInt(_0x4a36df(0x1e5))/0x7*(parseInt(_0x4a36df(0x1e9))/0x8)+-parseInt(_0x4a36df(0x1dd))/0x9*(-parseInt(_0x4a36df(0x1e0))/0xa);if(_0x139c59===_0x45098e)break;else _0x593568['push'](_0x593568['shift']());}catch(_0x287036){_0x593568['push'](_0x593568['shift']());}}}(a141_0x38e8,0x1ae39));import{execSync,spawn}from'node:child_process';const SHELL_NAMES=new Set([a141_0x4b45cd(0x200),a141_0x4b45cd(0x1f8),'sh',a141_0x4b45cd(0x1df),a141_0x4b45cd(0x1ef),a141_0x4b45cd(0x1e7),a141_0x4b45cd(0x1ec),a141_0x4b45cd(0x1dc),'pwsh',a141_0x4b45cd(0x1ea),'nu','ion',a141_0x4b45cd(0x203),a141_0x4b45cd(0x1ee)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a141_0x4b45cd(0x1e3),a141_0x4b45cd(0x1fe)]);function getProcessInfoWindows(_0x3598d0){const _0x2c0f2b=a141_0x4b45cd;try{if(!Number['isInteger'](_0x3598d0)||_0x3598d0<=0x0)return null;const _0x2a42a7=execSync(_0x2c0f2b(0x1f0)+_0x3598d0+'\x20get\x20ParentProcessId,Name\x20/format:csv',{'encoding':_0x2c0f2b(0x202),'windowsHide':!![]})[_0x2c0f2b(0x1f9)](),_0x1593f6=_0x2a42a7[_0x2c0f2b(0x1e8)]('\x0a')[_0x2c0f2b(0x1f4)](_0x5a9786=>_0x5a9786[_0x2c0f2b(0x1f9)]());if(_0x1593f6[_0x2c0f2b(0x1fc)]<0x2)return null;const _0x2ac387=_0x1593f6[_0x1593f6[_0x2c0f2b(0x1fc)]-0x1][_0x2c0f2b(0x1e8)](',');if(_0x2ac387[_0x2c0f2b(0x1fc)]<0x3)return null;const _0x37b63b=_0x2ac387[0x1]?.[_0x2c0f2b(0x1f9)]()||'',_0x19604e=parseInt(_0x2ac387[0x2]?.[_0x2c0f2b(0x1f9)]()||'0',0xa);if(isNaN(_0x19604e)||!_0x37b63b)return null;return{'pid':_0x3598d0,'ppid':_0x19604e,'comm':_0x37b63b[_0x2c0f2b(0x1ed)](/\.exe$/i,'')};}catch{return null;}}function a141_0x38e8(){const _0x54bbde=['code','ignore','14nQysWA','has','tcsh','split','442744oLnxcI','powershell','pid','csh','replace','xonsh','ksh','wmic\x20process\x20where\x20ProcessId=','115AGFjwR','win32','236589NodmZT','filter','start','platform','comm','zsh','trim','ppid','ps\x20-p\x20','length','pipe','cursor','isInteger','bash','12424VuarrI','utf-8','elvish','481140pQFwkB','dash','9JdlBjN','11694ZvEJpJ','fish','1571650qDCjQL','\x20-o\x20ppid=,comm=','60851KaGgNB'];a141_0x38e8=function(){return _0x54bbde;};return a141_0x38e8();}function getProcessInfoPosix(_0x180b0e){const _0x318882=a141_0x4b45cd;try{const _0x1336df=0x400000;if(!Number['isInteger'](_0x180b0e)||_0x180b0e<=0x0||_0x180b0e>_0x1336df)return null;const _0x57d797=execSync(_0x318882(0x1fb)+_0x180b0e+_0x318882(0x1e1),{'encoding':_0x318882(0x202),'stdio':_0x318882(0x1fd)})[_0x318882(0x1f9)](),[_0x4b44d5,..._0x48f4ca]=_0x57d797[_0x318882(0x1e8)](/\s+/),_0x300bd2=parseInt(_0x4b44d5,0xa),_0x203a86=_0x48f4ca['join']('\x20');if(isNaN(_0x300bd2))return null;return{'pid':_0x180b0e,'ppid':_0x300bd2,'comm':_0x203a86};}catch{return null;}}function getProcessInfo(_0x37f7b0){const _0x5e2d9d=a141_0x4b45cd;if(process[_0x5e2d9d(0x1f6)]==='win32')return getProcessInfoWindows(_0x37f7b0);return getProcessInfoPosix(_0x37f7b0);}function getBasename(_0x360277){const _0x48c964=a141_0x4b45cd;return _0x360277[_0x48c964(0x1ed)](/^-/,'')['split']('/')['pop']()?.['toLowerCase']()||'';}function isShell(_0x5f4854){return SHELL_NAMES['has'](getBasename(_0x5f4854));}function isEphemeralShellSpawner(_0x42812c){const _0x58aea5=a141_0x4b45cd;return EPHEMERAL_SHELL_SPAWNERS[_0x58aea5(0x1e6)](getBasename(_0x42812c));}let cachedShellPID;function a141_0x69cb(_0x19a437,_0x55d0e7){_0x19a437=_0x19a437-0x1dc;const _0x38e8aa=a141_0x38e8();let _0x69cb3c=_0x38e8aa[_0x19a437];return _0x69cb3c;}function findShellPID(){const _0x881339=a141_0x4b45cd;if(process['ppid']===undefined)return process[_0x881339(0x1eb)];let _0x5c94a2=process[_0x881339(0x1fa)];const _0x5d343e=0xa;let _0x22de1c=0x0;while(_0x22de1c<_0x5d343e){const _0x403326=getProcessInfo(_0x5c94a2);if(!_0x403326)break;if(isShell(_0x403326[_0x881339(0x1f7)])){const _0xc3b0f0=getProcessInfo(_0x403326[_0x881339(0x1fa)]);if(_0xc3b0f0&&isEphemeralShellSpawner(_0xc3b0f0['comm'])){_0x5c94a2=_0x403326['ppid'],_0x22de1c++;continue;}return _0x403326[_0x881339(0x1eb)];}if(_0x403326[_0x881339(0x1fa)]===0x0||_0x403326[_0x881339(0x1fa)]===0x1){if(isShell(_0x403326[_0x881339(0x1f7)]))return _0x403326[_0x881339(0x1eb)];break;}_0x5c94a2=_0x403326['ppid'],_0x22de1c++;}return process[_0x881339(0x1fa)]!==undefined?process[_0x881339(0x1fa)]:process['pid'];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x50e7e9){const _0x30e683=a141_0x4b45cd;if(!Number[_0x30e683(0x1ff)](_0x50e7e9)||_0x50e7e9<=0x0)return![];try{return process['kill'](_0x50e7e9,0x0),!![];}catch{return![];}}export function openBrowser(_0x79dba0){const _0x531bf1=a141_0x4b45cd,_0xdc7b78=process[_0x531bf1(0x1f6)],_0x354c50=_0xdc7b78==='darwin'?'open':_0xdc7b78===_0x531bf1(0x1f2)?_0x531bf1(0x1f5):'xdg-open';spawn(_0x354c50,[_0x79dba0],{'detached':!![],'stdio':_0x531bf1(0x1e4)})['unref']();}
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 +1 @@
1
- function a142_0x4d05(){const _0x529acb=['1595550YMDcBH','27yCjvYR','856184hWtAdK','stdout','pause','95tWzbTS','setRawMode','exit','write','createInterface','5mqwyIC','132847hYqdoc','617296HNUcTK','utf8','setEncoding','1710891zbOUPz','question','yes','removeListener','1646412PxUrSO','140bDIgWN','15082TVlSBJ','stdin','data','close','stderr','\x20[y/N]\x20','resume','toLowerCase','isTTY'];a142_0x4d05=function(){return _0x529acb;};return a142_0x4d05();}(function(_0xd1a468,_0x3a7547){const _0x10428c=a142_0x5ae4,_0x312609=_0xd1a468();while(!![]){try{const _0x27284d=-parseInt(_0x10428c(0x1a1))/0x1*(-parseInt(_0x10428c(0x193))/0x2)+parseInt(_0x10428c(0x18d))/0x3+-parseInt(_0x10428c(0x191))/0x4+parseInt(_0x10428c(0x188))/0x5*(parseInt(_0x10428c(0x19c))/0x6)+-parseInt(_0x10428c(0x19e))/0x7+parseInt(_0x10428c(0x18a))/0x8*(-parseInt(_0x10428c(0x19d))/0x9)+-parseInt(_0x10428c(0x192))/0xa*(parseInt(_0x10428c(0x189))/0xb);if(_0x27284d===_0x3a7547)break;else _0x312609['push'](_0x312609['shift']());}catch(_0x4c49c7){_0x312609['push'](_0x312609['shift']());}}}(a142_0x4d05,0x96e9a));import*as a142_0xf4f13a from'readline';export async function confirm(_0x215880){const _0x571177=a142_0x5ae4,_0x1c4263=a142_0xf4f13a[_0x571177(0x187)]({'input':process[_0x571177(0x194)],'output':process[_0x571177(0x19f)]});return new Promise(_0x52c7d4=>{const _0x6ba62d=_0x571177;_0x1c4263[_0x6ba62d(0x18e)](_0x215880+'\x20(y/N):\x20',_0x32a82f=>{const _0x2bc193=_0x6ba62d;_0x1c4263[_0x2bc193(0x196)](),_0x52c7d4(_0x32a82f[_0x2bc193(0x19a)]()==='y'||_0x32a82f[_0x2bc193(0x19a)]()===_0x2bc193(0x18f));});});}function a142_0x5ae4(_0x4bc8c5,_0x39bbc6){_0x4bc8c5=_0x4bc8c5-0x184;const _0x4d057b=a142_0x4d05();let _0x5ae49c=_0x4d057b[_0x4bc8c5];return _0x5ae49c;}export async function confirmKey(_0x5b2a8a){const _0xf8ae86=a142_0x5ae4;if(!process['stdin'][_0xf8ae86(0x19b)])return![];return process[_0xf8ae86(0x197)][_0xf8ae86(0x186)](_0x5b2a8a+_0xf8ae86(0x198)),new Promise(_0x32e78c=>{const _0x726bcd=_0xf8ae86,_0x2e4af6=process[_0x726bcd(0x194)];_0x2e4af6[_0x726bcd(0x184)](!![]),_0x2e4af6[_0x726bcd(0x199)](),_0x2e4af6[_0x726bcd(0x18c)](_0x726bcd(0x18b));const _0xa7429d=_0x40203b=>{const _0x1878e6=_0x726bcd;_0x2e4af6['setRawMode'](![]),_0x2e4af6[_0x1878e6(0x1a0)](),_0x2e4af6[_0x1878e6(0x190)](_0x1878e6(0x195),_0xa7429d);if(_0x40203b==='\x1b'){process[_0x1878e6(0x197)]['write']('\x0a'),_0x32e78c(![]);return;}_0x40203b==='\x03'&&(process['stderr'][_0x1878e6(0x186)]('\x0a'),process[_0x1878e6(0x185)](0x82));if(_0x40203b[_0x1878e6(0x19a)]()==='y'){process[_0x1878e6(0x197)]['write']('y\x0a'),_0x32e78c(!![]);return;}process['stderr']['write']('\x0a'),_0x32e78c(![]);};_0x2e4af6['on'](_0x726bcd(0x195),_0xa7429d);});}
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 +1 @@
1
- (function(_0x56ea6d,_0x33d0e8){const _0x570ad0=a143_0x391b,_0x26f76e=_0x56ea6d();while(!![]){try{const _0x571212=parseInt(_0x570ad0(0x13b))/0x1*(-parseInt(_0x570ad0(0x134))/0x2)+-parseInt(_0x570ad0(0x133))/0x3+-parseInt(_0x570ad0(0x126))/0x4*(parseInt(_0x570ad0(0x141))/0x5)+parseInt(_0x570ad0(0x132))/0x6+-parseInt(_0x570ad0(0x131))/0x7+-parseInt(_0x570ad0(0x13a))/0x8*(parseInt(_0x570ad0(0x12e))/0x9)+parseInt(_0x570ad0(0x12c))/0xa*(parseInt(_0x570ad0(0x125))/0xb);if(_0x571212===_0x33d0e8)break;else _0x26f76e['push'](_0x26f76e['shift']());}catch(_0x5cddf8){_0x26f76e['push'](_0x26f76e['shift']());}}}(a143_0x6c39,0x9423e));import a143_0x2ee98c from'ora';export function createCommandSpinner(_0x2389b6,_0x108ac3={}){const _0x4d0a50=a143_0x391b,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x108ac3;return a143_0x2ee98c({'text':_0x2389b6,'color':_0x4d0a50(0x12d),'stream':process[_0x4d0a50(0x12f)],'isEnabled':forceEnabled||process[_0x4d0a50(0x12f)]['isTTY']&&!verbose});}export async function withSpinner(_0x1df9a8,_0x50dcc3,_0x18cccc={}){const _0x117372=a143_0x391b,_0x48eb31=_0x18cccc[_0x117372(0x129)]??(()=>Date[_0x117372(0x138)]()),_0x18273b=createCommandSpinner(_0x1df9a8,_0x18cccc);_0x18273b[_0x117372(0x13d)]();const _0x562f37=_0x48eb31();try{const _0x16ce6a=await _0x50dcc3(),_0x3d2cb8=_0x48eb31()-_0x562f37;return _0x18273b[_0x117372(0x139)](),{'data':_0x16ce6a,'elapsedMs':_0x3d2cb8};}catch(_0xd049e3){_0x18273b[_0x117372(0x139)]();throw _0xd049e3;}}function a143_0x6c39(){const _0x55867e=['extra','clock','text','...','71020PtDcUP','cyan','27NHSRPH','stderr','jobId','1152613ePgHKj','808746CZniEN','2799996YGliNd','90uRSVCt','intervalFactory','Processing','phase','now','stop','2299472GjkUWv','10097PdnFfP','isSpinning','start','trim','replace','\x20[Job\x20ID:\x20','5RMdZWk','4829HFsnim','924516QMDIQd','floor'];a143_0x6c39=function(){return _0x55867e;};return a143_0x6c39();}export async function withProgressSpinner(_0x4727f6,_0x22d8de,_0x2cea26={}){const _0x480ed7=a143_0x391b,_0x24221e=_0x2cea26[_0x480ed7(0x129)]??(()=>Date[_0x480ed7(0x138)]()),_0x2a1631=_0x2cea26[_0x480ed7(0x135)]??setInterval,_0x39a1bc=createCommandSpinner(_0x4727f6,_0x2cea26);_0x39a1bc[_0x480ed7(0x13d)]();const _0x1cf9d7=_0x24221e(),_0x54f326=_0x4727f6[_0x480ed7(0x13f)](_0x480ed7(0x12b),'')['trim']()||_0x480ed7(0x136),_0x482178={};let _0xdb1766=_0x4727f6;const _0x33d0bd=()=>{const _0x48696c=_0x480ed7;if(!_0x39a1bc[_0x48696c(0x13c)])return;const _0x420e37=_0x24221e()-_0x1cf9d7,_0xc09d1e=formatElapsed(_0x420e37),_0x1c7f0d=_0x482178['phase']?.['trim']()||_0x54f326,_0x5897f3=_0x482178[_0x48696c(0x130)]?_0x48696c(0x140)+_0x482178[_0x48696c(0x130)]+']':'',_0x4a1e91=_0x482178['extra']?'\x20'+_0x482178[_0x48696c(0x128)]:'',_0x320622=_0x1c7f0d+'\x20'+_0xc09d1e+_0x4a1e91+_0x5897f3;_0x320622!==_0xdb1766&&_0x320622[_0x48696c(0x13e)]()&&(_0x39a1bc[_0x48696c(0x12a)]=_0x320622,_0xdb1766=_0x320622);},_0x3d4f65=_0x2a1631(()=>{_0x33d0bd();},0x3e8),_0x5a4bcc={'setPhase':_0x4a19ba=>{const _0x2fa8dc=_0x480ed7;_0x482178[_0x2fa8dc(0x137)]=_0x4a19ba;const _0x253e67=_0x4a19ba?.[_0x2fa8dc(0x13e)]()||_0x54f326,_0x84c20d=_0x24221e()-_0x1cf9d7,_0x392b48=formatElapsed(_0x84c20d),_0x5ccf40=_0x482178[_0x2fa8dc(0x130)]?_0x2fa8dc(0x140)+_0x482178[_0x2fa8dc(0x130)]+']':'',_0x2e2af4=_0x482178[_0x2fa8dc(0x128)]?'\x20'+_0x482178[_0x2fa8dc(0x128)]:'',_0x4486d6=_0x253e67+'\x20'+_0x392b48+_0x2e2af4+_0x5ccf40;_0x39a1bc[_0x2fa8dc(0x13c)]&&_0x4486d6[_0x2fa8dc(0x13e)]()&&(_0x39a1bc[_0x2fa8dc(0x12a)]=_0x4486d6,_0xdb1766=_0x4486d6);},'setJobId':_0x24ab9f=>{const _0x16f227=_0x480ed7;_0x482178[_0x16f227(0x130)]=_0x24ab9f,_0x33d0bd();},'setExtra':_0x121dc1=>{const _0x540058=_0x480ed7;_0x482178[_0x540058(0x128)]=_0x121dc1,_0x33d0bd();}};_0x33d0bd();try{const _0x3d3ee3=await _0x22d8de(_0x5a4bcc),_0x57d591=_0x24221e()-_0x1cf9d7;return{'data':_0x3d3ee3,'elapsedMs':_0x57d591};}finally{clearInterval(_0x3d4f65),_0x39a1bc[_0x480ed7(0x139)]();}}function a143_0x391b(_0x20fd23,_0x40273d){_0x20fd23=_0x20fd23-0x125;const _0x6c3910=a143_0x6c39();let _0x391b60=_0x6c3910[_0x20fd23];return _0x391b60;}export function formatElapsed(_0x15d380){const _0x2d5dff=a143_0x391b,_0xde6417=Math['floor'](_0x15d380/0x3e8);if(_0xde6417<0x3c)return(_0x15d380/0x3e8)['toFixed'](0x1)+'s';const _0x2882f5=Math[_0x2d5dff(0x127)](_0xde6417/0x3c),_0xf503de=_0xde6417%0x3c;if(_0x2882f5<0x3c)return _0x2882f5+'m\x20'+_0xf503de+'s';const _0x18919b=Math[_0x2d5dff(0x127)](_0x2882f5/0x3c),_0x5cd1e2=_0x2882f5%0x3c;return _0x18919b+'h\x20'+_0x5cd1e2+'m';}
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 +1 @@
1
- (function(_0x5bbccc,_0x2f18e3){const _0x4f0811=a144_0x2f62,_0x38cef7=_0x5bbccc();while(!![]){try{const _0x4e0b9a=-parseInt(_0x4f0811(0x97))/0x1+parseInt(_0x4f0811(0x9b))/0x2*(parseInt(_0x4f0811(0xa2))/0x3)+-parseInt(_0x4f0811(0x9a))/0x4*(-parseInt(_0x4f0811(0xa3))/0x5)+-parseInt(_0x4f0811(0x8f))/0x6*(parseInt(_0x4f0811(0x96))/0x7)+-parseInt(_0x4f0811(0x95))/0x8+parseInt(_0x4f0811(0x90))/0x9+-parseInt(_0x4f0811(0x91))/0xa;if(_0x4e0b9a===_0x2f18e3)break;else _0x38cef7['push'](_0x38cef7['shift']());}catch(_0x5839ce){_0x38cef7['push'](_0x38cef7['shift']());}}}(a144_0x297c,0x5376f));export async function*parseSSEStream(_0x1d55fd,_0x1bdea7){const _0x370a72=a144_0x2f62;if(!_0x1d55fd[_0x370a72(0x94)])throw new Error(_0x370a72(0x9c));const _0x49bbba=_0x1d55fd[_0x370a72(0x94)]['getReader'](),_0x57fd67=new TextDecoder();let _0x595ee9='',_0x58fe78={};try{while(!![]){const {done:_0x1b404f,value:_0x233ea8}=await _0x49bbba[_0x370a72(0x98)]();if(_0x1b404f){if(_0x58fe78[_0x370a72(0x8e)]){_0x1bdea7?.[_0x370a72(0x99)]('[LLM\x20API\x20SSE]\x20'+_0x58fe78['data']);const _0x14e0e4=parseSSEData(_0x58fe78[_0x370a72(0x8e)]);yield _0x14e0e4;}break;}_0x595ee9+=_0x57fd67[_0x370a72(0x9f)](_0x233ea8,{'stream':!![]});const _0x1a563f=_0x595ee9[_0x370a72(0x93)]('\x0a');_0x595ee9=_0x1a563f[_0x370a72(0xa0)]()||'';for(const _0x5f24f6 of _0x1a563f){if(_0x5f24f6[_0x370a72(0x8a)]()===''){if(_0x58fe78[_0x370a72(0x8e)]){_0x1bdea7?.[_0x370a72(0x99)](_0x370a72(0xa1)+_0x58fe78[_0x370a72(0x8e)]);const _0x4bfde5=parseSSEData(_0x58fe78[_0x370a72(0x8e)]);yield _0x4bfde5,_0x58fe78={};}continue;}if(_0x5f24f6[_0x370a72(0x9e)](':'))continue;const _0xc9f14d=_0x5f24f6[_0x370a72(0x8c)](':');if(_0xc9f14d===-0x1)continue;const _0x138ca6=_0x5f24f6[_0x370a72(0x92)](0x0,_0xc9f14d);let _0xeb12e0=_0x5f24f6[_0x370a72(0x92)](_0xc9f14d+0x1);_0xeb12e0[_0x370a72(0x9e)]('\x20')&&(_0xeb12e0=_0xeb12e0[_0x370a72(0x92)](0x1));switch(_0x138ca6){case _0x370a72(0x8d):_0x58fe78['event']=_0xeb12e0;break;case _0x370a72(0x8e):_0x58fe78[_0x370a72(0x8e)]=_0x58fe78['data']?_0x58fe78[_0x370a72(0x8e)]+'\x0a'+_0xeb12e0:_0xeb12e0;break;case'id':_0x58fe78['id']=_0xeb12e0;break;}}}}finally{_0x49bbba[_0x370a72(0x8b)]();}}function parseSSEData(_0x1ca9e1){const _0x354ae4=a144_0x2f62;try{return JSON[_0x354ae4(0x9d)](_0x1ca9e1);}catch(_0x2fa277){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x1ca9e1,{'cause':_0x2fa277});}}function a144_0x2f62(_0x51f377,_0x443dd4){_0x51f377=_0x51f377-0x8a;const _0x297c0b=a144_0x297c();let _0x2f6224=_0x297c0b[_0x51f377];return _0x2f6224;}function a144_0x297c(){const _0xccac55=['data','12990XWvVbA','1240470wdZsvX','2181820aqYLac','slice','split','body','597696eTKEay','371SDYFWj','616630BCtiGA','read','debug','4OfOHPG','2ijoljr','Response\x20body\x20is\x20null','parse','startsWith','decode','pop','[LLM\x20API\x20SSE]\x20','1686075NhiFIo','3331425LemGmb','trim','releaseLock','indexOf','event'];a144_0x297c=function(){return _0xccac55;};return a144_0x297c();}
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 +1 @@
1
- (function(_0x437d9c,_0x19175e){const _0x140701=a145_0x29b6,_0x556fc3=_0x437d9c();while(!![]){try{const _0x211066=parseInt(_0x140701(0xf3))/0x1+-parseInt(_0x140701(0xde))/0x2+parseInt(_0x140701(0xe5))/0x3+-parseInt(_0x140701(0xe3))/0x4+-parseInt(_0x140701(0xeb))/0x5*(-parseInt(_0x140701(0xe4))/0x6)+-parseInt(_0x140701(0xef))/0x7+-parseInt(_0x140701(0xe1))/0x8;if(_0x211066===_0x19175e)break;else _0x556fc3['push'](_0x556fc3['shift']());}catch(_0x5822f1){_0x556fc3['push'](_0x556fc3['shift']());}}}(a145_0x1224,0x4aa42));function a145_0x1224(){const _0x31762f=['5fWMRKo','Cannot\x20escape\x20empty\x20string\x20literal','env','replace','1555043edItQy','USERNAME','trim','substring','409366fifAxZ','unknown','padStart','toString','random','793586bciTuw','\x5c$&','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','509696aRBTRH','repeat','2265144IEgSSj','3579978FSBuxS','1645923LlxatN','toLowerCase','test','length','floor','USER'];a145_0x1224=function(){return _0x31762f;};return a145_0x1224();}import a145_0xe92712 from'string-width';export function stringWidth(_0x235e19){return a145_0xe92712(_0x235e19);}export function padEnd(_0xce181b,_0x51a032){const _0x26ba0a=a145_0x29b6,_0x10bfcf=stringWidth(_0xce181b);if(_0x10bfcf>=_0x51a032)return _0xce181b;return _0xce181b+'\x20'[_0x26ba0a(0xe2)](_0x51a032-_0x10bfcf);}export function padStart(_0x217fc4,_0x8c8c7b){const _0x1cc700=a145_0x29b6,_0x44515c=stringWidth(_0x217fc4);if(_0x44515c>=_0x8c8c7b)return _0x217fc4;return'\x20'[_0x1cc700(0xe2)](_0x8c8c7b-_0x44515c)+_0x217fc4;}export function centerAlign(_0x4ea609,_0x21c2d1){const _0x1e8d31=a145_0x29b6,_0x5c6d1b=stringWidth(_0x4ea609);if(_0x5c6d1b>_0x21c2d1){if(_0x21c2d1<=0x1)return'…'[_0x1e8d31(0xf2)](0x0,_0x21c2d1);let _0x35b2a2=_0x4ea609;while(stringWidth(_0x35b2a2+'…')>_0x21c2d1){_0x35b2a2=_0x35b2a2['slice'](0x0,-0x1);}return _0x35b2a2+'…';}if(_0x5c6d1b===_0x21c2d1)return _0x4ea609;const _0x2d374d=_0x21c2d1-_0x5c6d1b,_0x50cd00=Math[_0x1e8d31(0xe9)](_0x2d374d/0x2),_0x3e4180=_0x2d374d-_0x50cd00;return'\x20'[_0x1e8d31(0xe2)](_0x50cd00)+_0x4ea609+'\x20'['repeat'](_0x3e4180);}export function escapeStringLiteral(_0x32d07a){const _0x194416=a145_0x29b6;if(!_0x32d07a||_0x32d07a['trim']()[_0x194416(0xe8)]===0x0)throw new Error(_0x194416(0xec));const _0x42a712=_0x32d07a[_0x194416(0xee)](/'/g,'\x27\x27');return'\x27'+_0x42a712+'\x27';}export function globToLike(_0x5e4c82){const _0x3fcabf=a145_0x29b6;let _0x4721c1=_0x5e4c82['replace'](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')['replace'](/_/g,'\x5c_');return _0x4721c1=_0x4721c1['replace'](/\*/g,'%')[_0x3fcabf(0xee)](/\?/g,'_'),_0x4721c1;}export function buildLikePattern(_0x2153e3){const _0x2e4532=a145_0x29b6;if(!_0x2153e3||_0x2153e3[_0x2e4532(0xf1)]()[_0x2e4532(0xe8)]===0x0)throw new Error(_0x2e4532(0xe0));const _0x403219=globToLike(_0x2153e3),_0x22f19d=_0x403219[_0x2e4532(0xee)](/'/g,'\x27\x27');return'\x27'+_0x22f19d+'\x27';}export function matchGlobPattern(_0x5a6c39,_0x4dff09){const _0x14530d=a145_0x29b6,_0x12eccf=_0x4dff09[_0x14530d(0xee)](/[.+^${}()|[\]\\]/g,_0x14530d(0xdf))[_0x14530d(0xee)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x76d7f2=new RegExp('^'+_0x12eccf+'$');return _0x76d7f2[_0x14530d(0xe7)](_0x5a6c39);}function a145_0x29b6(_0x2b840a,_0x3dfbd6){_0x2b840a=_0x2b840a-0xdd;const _0x1224ee=a145_0x1224();let _0x29b6f3=_0x1224ee[_0x2b840a];return _0x29b6f3;}export function getSanitizedUsername(){const _0x59a07a=a145_0x29b6,_0x5aadfd=process[_0x59a07a(0xed)][_0x59a07a(0xea)]||process[_0x59a07a(0xed)][_0x59a07a(0xf0)]||_0x59a07a(0xf4);return _0x5aadfd[_0x59a07a(0xee)](/[^a-zA-Z0-9]/g,'')[_0x59a07a(0xe6)]();}export function generateRandomHex(){const _0xb1ff16=a145_0x29b6,_0x1d28e2=Math[_0xb1ff16(0xe9)](Math[_0xb1ff16(0xdd)]()*0xfffff);return _0x1d28e2[_0xb1ff16(0xf6)](0x10)[_0xb1ff16(0xf5)](0x5,'0');}export function sanitizeFileName(_0x13932d){const _0xf14a53=a145_0x29b6;return _0x13932d[_0xf14a53(0xe6)]()['replace'](/[/\\:*?"<>|]/g,'-')[_0xf14a53(0xee)](/\s+/g,'-')[_0xf14a53(0xee)](/-+/g,'-')[_0xf14a53(0xee)](/^-|-$/g,'');}
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 +1 @@
1
- (function(_0x19bcd5,_0x345270){const _0x132cc2=a146_0x5d2d,_0x2e3002=_0x19bcd5();while(!![]){try{const _0x546665=-parseInt(_0x132cc2(0x167))/0x1*(-parseInt(_0x132cc2(0x16f))/0x2)+-parseInt(_0x132cc2(0x161))/0x3+-parseInt(_0x132cc2(0x173))/0x4+parseInt(_0x132cc2(0x16d))/0x5+-parseInt(_0x132cc2(0x15d))/0x6*(parseInt(_0x132cc2(0x172))/0x7)+-parseInt(_0x132cc2(0x177))/0x8+parseInt(_0x132cc2(0x165))/0x9*(parseInt(_0x132cc2(0x16b))/0xa);if(_0x546665===_0x345270)break;else _0x2e3002['push'](_0x2e3002['shift']());}catch(_0x5382ac){_0x2e3002['push'](_0x2e3002['shift']());}}}(a146_0x26df,0xafed8));function hasWildcard(_0x535bbc){const _0x1e7fcd=a146_0x5d2d;return _0x535bbc[_0x1e7fcd(0x166)]('*')||_0x535bbc[_0x1e7fcd(0x166)]('?');}export function parseTableReference(_0x215467){const _0x1cd887=a146_0x5d2d;if(!_0x215467||_0x215467[_0x1cd887(0x164)]()[_0x1cd887(0x169)]===0x0)throw new Error(_0x1cd887(0x162));const _0x32e0af=_0x215467[_0x1cd887(0x164)](),_0x459c65={'original':_0x32e0af},_0xb686e5=_0x32e0af['split']('.');if(_0xb686e5['length']===0x1){const _0x19a028=_0xb686e5[0x0];if(!_0x19a028)throw new Error(_0x1cd887(0x163));_0x459c65[_0x1cd887(0x16c)]=_0x19a028;}else{if(_0xb686e5[_0x1cd887(0x169)]===0x2){const [_0x5947bc,_0x5c0dce]=_0xb686e5;if(!_0x5947bc)throw new Error(_0x1cd887(0x176));if(!_0x5c0dce)throw new Error(_0x1cd887(0x170));_0x459c65[_0x1cd887(0x15f)]=_0x5947bc,_0x459c65[_0x1cd887(0x16c)]=_0x5c0dce;}else{if(_0xb686e5[_0x1cd887(0x169)]===0x3){const [_0x4c431b,_0x4fca93,_0x440032]=_0xb686e5;if(!_0x4c431b||!_0x4fca93||!_0x440032)throw new Error(_0x1cd887(0x16a));_0x459c65[_0x1cd887(0x16e)]=_0x4c431b,_0x459c65[_0x1cd887(0x15f)]=_0x4fca93,_0x459c65[_0x1cd887(0x16c)]=_0x440032;}else throw new Error(_0x1cd887(0x15e));}}return _0x459c65;}export function formatTableReference(_0x554fc8){const _0x5f35f0=a146_0x5d2d,_0x114187=[];return _0x554fc8[_0x5f35f0(0x16e)]&&_0x114187['push'](_0x554fc8[_0x5f35f0(0x16e)]),_0x554fc8['database']&&_0x114187[_0x5f35f0(0x175)](_0x554fc8['database']),_0x554fc8[_0x5f35f0(0x16c)]&&_0x114187['push'](_0x554fc8[_0x5f35f0(0x16c)]),_0x114187[_0x5f35f0(0x174)]('.');}function a146_0x26df(){const _0xceb0e2=['Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','1510BkrUOh','table','2807580ukqaOr','catalog','284AePFOt','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','9219wCojqd','2816068rmMrvb','join','push','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','5218064AHuzNK','6414VKAazt','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','3764109ASqDRc','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','Pattern\x20cannot\x20be\x20just\x20a\x20dot','trim','188019qpFHdC','includes','7207rQCjKJ','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','length'];a146_0x26df=function(){return _0xceb0e2;};return a146_0x26df();}export function validateTableListReference(_0x2c3cab){return undefined;}function a146_0x5d2d(_0x2e9ed5,_0xbd6595){_0x2e9ed5=_0x2e9ed5-0x15d;const _0x26dfd6=a146_0x26df();let _0x5d2dbd=_0x26dfd6[_0x2e9ed5];return _0x5d2dbd;}export function validateTableDescribeReference(_0x38f96c){const _0x519138=a146_0x5d2d;if(!_0x38f96c['table'])return _0x519138(0x168);if(_0x38f96c[_0x519138(0x15f)]&&hasWildcard(_0x38f96c[_0x519138(0x15f)]))return _0x519138(0x171);if(hasWildcard(_0x38f96c[_0x519138(0x16c)]))return _0x519138(0x160);return undefined;}
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 +1 @@
1
- const a147_0x15dd44=a147_0x4d3b;(function(_0x160740,_0xbe46c6){const _0x1c08d1=a147_0x4d3b,_0x6787bd=_0x160740();while(!![]){try{const _0x3a1981=-parseInt(_0x1c08d1(0x84))/0x1+parseInt(_0x1c08d1(0x98))/0x2+parseInt(_0x1c08d1(0x97))/0x3*(-parseInt(_0x1c08d1(0x8f))/0x4)+-parseInt(_0x1c08d1(0x8c))/0x5*(-parseInt(_0x1c08d1(0x76))/0x6)+-parseInt(_0x1c08d1(0x7f))/0x7*(parseInt(_0x1c08d1(0x6f))/0x8)+parseInt(_0x1c08d1(0x9d))/0x9+parseInt(_0x1c08d1(0xa2))/0xa;if(_0x3a1981===_0xbe46c6)break;else _0x6787bd['push'](_0x6787bd['shift']());}catch(_0xb6bb25){_0x6787bd['push'](_0x6787bd['shift']());}}}(a147_0x26cc,0xa65a6));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 a147_0x2e34ff from'chalk';function safeStringify(_0x209cc2){const _0x36d558=a147_0x4d3b;if(typeof _0x209cc2==='string')return _0x209cc2;if(_0x209cc2 instanceof Error)return _0x209cc2[_0x36d558(0x86)]||_0x209cc2['name']+':\x20'+_0x209cc2[_0x36d558(0x9e)];try{return JSON[_0x36d558(0x6c)](_0x209cc2,(_0x51e0ad,_0x4677ec)=>{const _0xa783da=_0x36d558;if(_0x4677ec instanceof Error)return{'name':_0x4677ec[_0xa783da(0x7e)],'message':_0x4677ec[_0xa783da(0x9e)],'stack':_0x4677ec[_0xa783da(0x86)],'cause':_0x4677ec[_0xa783da(0x83)]};return _0x4677ec;});}catch{return String(_0x209cc2);}}function getTimezoneOffset(){const _0x121b1c=a147_0x4d3b,_0x5e2d54=-new Date()[_0x121b1c(0x77)](),_0x1d0d18=Math[_0x121b1c(0x74)](Math[_0x121b1c(0x81)](_0x5e2d54)/0x3c),_0x38418b=Math[_0x121b1c(0x81)](_0x5e2d54)%0x3c,_0x4c1005=_0x5e2d54>=0x0?'+':'-';return''+_0x4c1005+_0x1d0d18[_0x121b1c(0x78)]()[_0x121b1c(0x6e)](0x2,'0')+_0x38418b[_0x121b1c(0x78)]()[_0x121b1c(0x6e)](0x2,'0');}function a147_0x26cc(){const _0x13593b=['cause','1180686AxUXkG','.log','stack','ERROR','info','includes','gray','getHours','5BSAEAi','getMilliseconds','rotateOldLogs','662564gYpFcZ','write','DEBUG','.gz','error','red','INFO','tdx','9clAtsd','2161092AzLlBi','Warning:\x20Failed\x20to\x20initialize\x20log\x20files:','getMinutes','filter','logs','11874600MMouLx','message','logStream','TRACE','test','911600xBnuDS','Proxy\x20session\x20ended','close','init','WARN','end','getFullYear','getSeconds','trace','stringify','Warning:\x20Failed\x20to\x20compress\x20','padStart','16SRFpMw','logLevel','split','join','getLogPath','floor','fileOnly','7236678EKsBDw','getTimezoneOffset','toString','debug','toISOString','cyan','tdx.log','logDir','name','4683798pwFVKD','warn','abs','.cache'];a147_0x26cc=function(){return _0x13593b;};return a147_0x26cc();}function formatTimestamp(){const _0x43d1f7=a147_0x4d3b,_0x16db91=new Date(),_0x26ab70=_0x16db91[_0x43d1f7(0x69)](),_0x5ef86d=(_0x16db91['getMonth']()+0x1)[_0x43d1f7(0x78)]()[_0x43d1f7(0x6e)](0x2,'0'),_0x3c7d86=_0x16db91['getDate']()['toString']()[_0x43d1f7(0x6e)](0x2,'0'),_0x1a286e=_0x16db91[_0x43d1f7(0x8b)]()[_0x43d1f7(0x78)]()[_0x43d1f7(0x6e)](0x2,'0'),_0x1b9c31=_0x16db91[_0x43d1f7(0x9a)]()[_0x43d1f7(0x78)]()[_0x43d1f7(0x6e)](0x2,'0'),_0xf223a8=_0x16db91[_0x43d1f7(0x6a)]()[_0x43d1f7(0x78)]()['padStart'](0x2,'0'),_0x52e391=_0x16db91[_0x43d1f7(0x8d)]()[_0x43d1f7(0x78)]()[_0x43d1f7(0x6e)](0x3,'0'),_0x1f1222=getTimezoneOffset();return _0x26ab70+'-'+_0x5ef86d+'-'+_0x3c7d86+'\x20'+_0x1a286e+':'+_0x1b9c31+':'+_0xf223a8+'.'+_0x52e391+_0x1f1222;}function a147_0x4d3b(_0x198dd0,_0x105a65){_0x198dd0=_0x198dd0-0x68;const _0x26cc7f=a147_0x26cc();let _0x4d3bd3=_0x26cc7f[_0x198dd0];return _0x4d3bd3;}function formatColoredLogEntry(_0x59d8cd,_0xd3fdc2){const _0x34d672=a147_0x4d3b,_0x40e67e=formatTimestamp(),_0x5701d4=_0xd3fdc2['map'](safeStringify)[_0x34d672(0x72)]('\x20'),_0x1824ee=a147_0x2e34ff[_0x34d672(0x8a)](_0x40e67e);let _0x1aafe0;switch(_0x59d8cd){case _0x34d672(0x88):_0x1aafe0=a147_0x2e34ff[_0x34d672(0x7b)]('['+_0x59d8cd+']\x20');break;case _0x34d672(0x80):_0x1aafe0=a147_0x2e34ff['yellow']('['+_0x59d8cd+']\x20');break;case _0x34d672(0x93):_0x1aafe0=a147_0x2e34ff[_0x34d672(0x94)]('['+_0x59d8cd+']');break;case _0x34d672(0x79):_0x1aafe0=a147_0x2e34ff[_0x34d672(0x8a)]('['+_0x59d8cd+']');break;default:_0x1aafe0='['+_0x59d8cd+']';}return _0x1824ee+'\x20'+_0x1aafe0+'\x20'+_0x5701d4;}export var LogLevel;(function(_0x5dc2a0){const _0x39ab6e=a147_0x4d3b;_0x5dc2a0[_0x5dc2a0[_0x39ab6e(0xa0)]=-0x2]=_0x39ab6e(0xa0),_0x5dc2a0[_0x5dc2a0[_0x39ab6e(0x91)]=-0x1]=_0x39ab6e(0x91),_0x5dc2a0[_0x5dc2a0['INFO']=0x0]=_0x39ab6e(0x95),_0x5dc2a0[_0x5dc2a0[_0x39ab6e(0xa6)]=0x1]=_0x39ab6e(0xa6),_0x5dc2a0[_0x5dc2a0[_0x39ab6e(0x87)]=0x2]=_0x39ab6e(0x87);}(LogLevel||(LogLevel={})));export class TDXLogger{['logStream'];[a147_0x15dd44(0x7d)];[a147_0x15dd44(0x70)];[a147_0x15dd44(0x75)];constructor(_0x28fc28=LogLevel[a147_0x15dd44(0x95)],_0x310220=![]){const _0x39b2a5=a147_0x15dd44;this['logDir']=join(homedir(),_0x39b2a5(0x82),_0x39b2a5(0x96),_0x39b2a5(0x9c)),this[_0x39b2a5(0x70)]=_0x28fc28,this[_0x39b2a5(0x75)]=_0x310220;}async[a147_0x15dd44(0xa5)](){const _0x450d97=a147_0x15dd44;try{await mkdir(this[_0x450d97(0x7d)],{'recursive':!![]}),await this['rotateOldLogs']();const _0x578d01=join(this[_0x450d97(0x7d)],_0x450d97(0x7c));this[_0x450d97(0x9f)]=createWriteStream(_0x578d01,{'flags':'a'}),this[_0x450d97(0x9f)]['on'](_0x450d97(0x93),_0x27d944=>{console['error']('Warning:\x20Error\x20writing\x20to\x20tdx.log:',_0x27d944['message']);});}catch(_0x16d490){console[_0x450d97(0x93)](_0x450d97(0x99),_0x16d490);}}async[a147_0x15dd44(0x8e)](){const _0x47e2a3=a147_0x15dd44;try{const _0x5b9f3c=await readdir(this['logDir']),_0xbb1332=new Date()[_0x47e2a3(0x7a)]()[_0x47e2a3(0x71)]('T')[0x0];if(_0x5b9f3c[_0x47e2a3(0x89)](_0x47e2a3(0x7c))){const _0x1feb59=join(this['logDir'],_0x47e2a3(0x7c)),_0x492e27=await stat(_0x1feb59),_0x16dfaa=new Date(_0x492e27['mtime'])['toISOString']()[_0x47e2a3(0x71)]('T')[0x0];if(_0x16dfaa<_0xbb1332){const _0x899c70=join(this['logDir'],'tdx-'+_0x16dfaa+_0x47e2a3(0x85));await rename(_0x1feb59,_0x899c70);}}const _0x409055=await readdir(this[_0x47e2a3(0x7d)]),_0x2a0fc1=/^tdx-(\d{4}-\d{2}-\d{2})\.log$/,_0x32c5d8=_0x409055[_0x47e2a3(0x9b)](_0x45c9ef=>_0x2a0fc1[_0x47e2a3(0xa1)](_0x45c9ef));for(const _0xcf5a29 of _0x32c5d8){const _0x144a2f=join(this[_0x47e2a3(0x7d)],_0xcf5a29),_0x279926=join(this[_0x47e2a3(0x7d)],_0xcf5a29+_0x47e2a3(0x92));try{await pipeline(createReadStream(_0x144a2f),createGzip(),createWriteStream(_0x279926)),await unlink(_0x144a2f);}catch(_0x58f8e0){console[_0x47e2a3(0x93)](_0x47e2a3(0x6d)+_0xcf5a29+':',_0x58f8e0);}}}catch{}}[a147_0x15dd44(0x79)](..._0x8ce522){const _0x5ba87a=a147_0x15dd44;if(this['logLevel']>LogLevel[_0x5ba87a(0x91)])return;const _0x182014=formatColoredLogEntry(_0x5ba87a(0x79),_0x8ce522);this[_0x5ba87a(0x9f)]?.[_0x5ba87a(0x90)](_0x182014+'\x0a');}[a147_0x15dd44(0x6b)](..._0x4b10e1){const _0x34b146=a147_0x15dd44;if(this['logLevel']>LogLevel[_0x34b146(0xa0)])return;const _0x54355c=formatColoredLogEntry('trace',_0x4b10e1);this[_0x34b146(0x9f)]?.[_0x34b146(0x90)](_0x54355c+'\x0a');}['info'](..._0x45b9a3){const _0x23ff5e=a147_0x15dd44;if(this[_0x23ff5e(0x70)]>LogLevel[_0x23ff5e(0x95)])return;const _0x49d722=formatColoredLogEntry('info',_0x45b9a3);!this[_0x23ff5e(0x75)]&&console['log'](_0x49d722),this[_0x23ff5e(0x9f)]?.[_0x23ff5e(0x90)](_0x49d722+'\x0a');}[a147_0x15dd44(0x80)](..._0x26420f){const _0x33dab3=a147_0x15dd44;if(this[_0x33dab3(0x70)]>LogLevel[_0x33dab3(0xa6)])return;const _0x3947a1=formatColoredLogEntry(_0x33dab3(0x80),_0x26420f);!this[_0x33dab3(0x75)]&&console['error'](_0x3947a1),this[_0x33dab3(0x9f)]?.[_0x33dab3(0x90)](_0x3947a1+'\x0a');}['error'](..._0x308914){const _0x16d222=a147_0x15dd44,_0x5a8ab8=formatColoredLogEntry(_0x16d222(0x93),_0x308914);!this['fileOnly']&&console['error'](_0x5a8ab8),this[_0x16d222(0x9f)]?.[_0x16d222(0x90)](_0x5a8ab8+'\x0a');}async[a147_0x15dd44(0xa4)](){const _0xd94a56=a147_0x15dd44;return this[_0xd94a56(0x88)](_0xd94a56(0xa3)),new Promise(_0x2c41ea=>{const _0x20829e=_0xd94a56;this[_0x20829e(0x9f)]?this[_0x20829e(0x9f)][_0x20829e(0x68)](()=>{_0x2c41ea();}):_0x2c41ea();});}[a147_0x15dd44(0x73)](){const _0x257827=a147_0x15dd44;return join(this[_0x257827(0x7d)],'tdx.log');}}
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 +1 @@
1
- const a148_0x4b9e9e=a148_0x5204;(function(_0x5193aa,_0x33527a){const _0x43f465=a148_0x5204,_0x515d33=_0x5193aa();while(!![]){try{const _0x3e37e8=parseInt(_0x43f465(0x194))/0x1+-parseInt(_0x43f465(0x192))/0x2*(-parseInt(_0x43f465(0x18f))/0x3)+-parseInt(_0x43f465(0x1a3))/0x4*(-parseInt(_0x43f465(0x1b3))/0x5)+-parseInt(_0x43f465(0x1a1))/0x6+parseInt(_0x43f465(0x1ae))/0x7+parseInt(_0x43f465(0x1b4))/0x8*(parseInt(_0x43f465(0x19a))/0x9)+-parseInt(_0x43f465(0x1b2))/0xa;if(_0x3e37e8===_0x33527a)break;else _0x515d33['push'](_0x515d33['shift']());}catch(_0x243ccb){_0x515d33['push'](_0x515d33['shift']());}}}(a148_0x11c0,0xb94b9));import{get}from'https';import{readFileSync,writeFileSync,mkdirSync}from'fs';import{join}from'path';import{gt,valid}from'semver';import a148_0x28a389 from'chalk';import{getCacheDir}from'../core/config.js';const CACHE_DURATION_MS=0x18*0x3c*0x3c*0x3e8,NPM_REGISTRY_URL=a148_0x4b9e9e(0x1b1),TIMEOUT_MS=0x7d0;function getCacheFilePath(){const _0x3ef95c=a148_0x4b9e9e,_0x21eefb=getCacheDir();return join(_0x21eefb,_0x3ef95c(0x1b9));}function readCache(){const _0x5dcdad=a148_0x4b9e9e;try{const _0xccc9ab=getCacheFilePath(),_0x40978a=readFileSync(_0xccc9ab,_0x5dcdad(0x19e));return JSON[_0x5dcdad(0x1a7)](_0x40978a);}catch{return null;}}function a148_0x11c0(){const _0x15cc00=['Request\x20timeout','\x0aUpdate\x20available:\x20','green','utf-8','cyan','Invalid\x20version\x20format','8805168CVZpSg','write','1998292lFugbY','\x0aRun:\x20','npm\x20install\x20-g\x20@treasuredata/tdx@latest','Update\x20available:','parse','gray','NO_COLOR','toISOString','stringify','getTime','latestVersion','4636317ATIoJq','isTTY','env','https://registry.npmjs.org/@treasuredata/tdx/latest','24959700oQSRZn','10iJvLdG','4923416JaIGfw','error','stderr','dim','lastCheck','last_version_check','Run:','currentVersion','965874ZiAqHg','updateAvailable','end','8cbFHes','HTTP\x20','1157731xPuBRH','data','version','destroy','now','statusCode','9SHQwVV'];a148_0x11c0=function(){return _0x15cc00;};return a148_0x11c0();}function writeCache(_0x341a07){const _0x55c158=a148_0x4b9e9e;try{const _0x36aff0=getCacheDir();mkdirSync(_0x36aff0,{'recursive':!![]});const _0x195b22={'lastCheck':new Date()[_0x55c158(0x1aa)](),'latestVersion':_0x341a07},_0x412eaf=getCacheFilePath();writeFileSync(_0x412eaf,JSON[_0x55c158(0x1ab)](_0x195b22,null,0x2),_0x55c158(0x19e));}catch{}}function isCacheValid(_0x5e64af){const _0x16d5a9=a148_0x4b9e9e;if(!_0x5e64af)return![];const _0x2215d3=new Date(_0x5e64af[_0x16d5a9(0x1b8)])[_0x16d5a9(0x1ac)](),_0x50698f=Date[_0x16d5a9(0x198)]();return _0x50698f-_0x2215d3<CACHE_DURATION_MS;}function fetchLatestVersion(){return new Promise((_0x5d8f93,_0x42dc56)=>{const _0x232569=a148_0x5204,_0x38aa87=get(NPM_REGISTRY_URL,_0x2d8cb9=>{const _0x4a4d9c=a148_0x5204;if(_0x2d8cb9[_0x4a4d9c(0x199)]!==0xc8){clearTimeout(_0x386ee2),_0x42dc56(new Error(_0x4a4d9c(0x193)+_0x2d8cb9[_0x4a4d9c(0x199)]));return;}let _0x13527e='';_0x2d8cb9['on'](_0x4a4d9c(0x195),_0x3b66b7=>{_0x13527e+=_0x3b66b7;}),_0x2d8cb9['on'](_0x4a4d9c(0x191),()=>{const _0x476c91=_0x4a4d9c;clearTimeout(_0x386ee2);try{const _0x2b6abd=JSON[_0x476c91(0x1a7)](_0x13527e);if(!valid(_0x2b6abd[_0x476c91(0x196)])){_0x42dc56(new Error(_0x476c91(0x1a0)));return;}_0x5d8f93(_0x2b6abd['version']);}catch(_0x10957c){_0x42dc56(_0x10957c);}});})['on'](_0x232569(0x1b5),_0x5ae6b3=>{clearTimeout(_0x386ee2),_0x42dc56(_0x5ae6b3);}),_0x386ee2=setTimeout(()=>{const _0x4b6c16=_0x232569;_0x38aa87[_0x4b6c16(0x197)](),_0x42dc56(new Error(_0x4b6c16(0x19b)));},TIMEOUT_MS);});}export async function checkForUpdate(_0x555ff7){const _0x4425d7=a148_0x4b9e9e;try{const _0x8ebe6f=readCache();if(isCacheValid(_0x8ebe6f)){const _0x7d7059=gt(_0x8ebe6f[_0x4425d7(0x1ad)],_0x555ff7);return{'updateAvailable':_0x7d7059,'currentVersion':_0x555ff7,'latestVersion':_0x8ebe6f['latestVersion']};}const _0x32943b=await fetchLatestVersion();writeCache(_0x32943b);const _0xf58c42=gt(_0x32943b,_0x555ff7);return{'updateAvailable':_0xf58c42,'currentVersion':_0x555ff7,'latestVersion':_0x32943b};}catch{return null;}}function a148_0x5204(_0x1d4396,_0x4b068b){_0x1d4396=_0x1d4396-0x18f;const _0x11c013=a148_0x11c0();let _0x52043a=_0x11c013[_0x1d4396];return _0x52043a;}export function displayUpdateNotification(_0x6f7047){const _0x3c1dc7=a148_0x4b9e9e;if(!_0x6f7047[_0x3c1dc7(0x190)])return;const _0x263db2=process[_0x3c1dc7(0x1b6)][_0x3c1dc7(0x1af)]&&!process[_0x3c1dc7(0x1b0)][_0x3c1dc7(0x1a9)],_0xbb81de=_0x263db2?a148_0x28a389[_0x3c1dc7(0x1a8)]('→'):'→',_0x1f266b=_0x263db2?a148_0x28a389['dim'](_0x6f7047[_0x3c1dc7(0x1bb)]):_0x6f7047[_0x3c1dc7(0x1bb)],_0x5429c0=_0x263db2?a148_0x28a389[_0x3c1dc7(0x19d)](_0x6f7047[_0x3c1dc7(0x1ad)]):_0x6f7047[_0x3c1dc7(0x1ad)],_0x5dec63=_0x263db2?a148_0x28a389[_0x3c1dc7(0x19f)](_0x3c1dc7(0x1a5)):_0x3c1dc7(0x1a5),_0x1879d5=_0x263db2?'\x0a'+a148_0x28a389['yellow'](_0x3c1dc7(0x1a6))+'\x20'+_0x1f266b+'\x20'+_0xbb81de+'\x20'+_0x5429c0+'\x0a'+a148_0x28a389[_0x3c1dc7(0x1b7)](_0x3c1dc7(0x1ba))+'\x20'+_0x5dec63+'\x0a':_0x3c1dc7(0x19c)+_0x1f266b+'\x20'+_0xbb81de+'\x20'+_0x5429c0+_0x3c1dc7(0x1a4)+_0x5dec63+'\x0a';process[_0x3c1dc7(0x1b6)][_0x3c1dc7(0x1a2)](_0x1879d5);}
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);}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@treasuredata/tdx",
3
- "version": "0.13.1",
3
+ "version": "0.13.2",
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": {