@treasuredata/tdx 2026.3.5 → 2026.3.7
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.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.d.ts.map +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-command.js.map +1 -1
- package/dist/commands/auth-login-command.d.ts +29 -0
- package/dist/commands/auth-login-command.d.ts.map +1 -0
- package/dist/commands/auth-login-command.js +1 -0
- package/dist/commands/auth-login-command.js.map +1 -0
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.d.ts.map +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/mcp-command.js.map +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.d.ts.map +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profile-command.js.map +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.d.ts.map +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/status-command.js.map +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.d.ts +11 -0
- package/dist/core/constants.d.ts.map +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/constants.js.map +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.d.ts.map +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/global-context.js.map +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.d.ts +32 -0
- package/dist/core/oauth-keychain.d.ts.map +1 -0
- package/dist/core/oauth-keychain.js +1 -0
- package/dist/core/oauth-keychain.js.map +1 -0
- package/dist/core/oauth.d.ts +112 -0
- package/dist/core/oauth.d.ts.map +1 -0
- package/dist/core/oauth.js +1 -0
- package/dist/core/oauth.js.map +1 -0
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/endpoints.js.map +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.d.ts +16 -0
- package/dist/sdk/client/oauth-refresh.d.ts.map +1 -0
- package/dist/sdk/client/oauth-refresh.js +1 -0
- package/dist/sdk/client/oauth-refresh.js.map +1 -0
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a187_0x424d(){const _0x23d8ec=['push','slice','6200525IEZRxu','3LnPygW','6607790fHdJcK','6zzKXgQ','8PNicEy','62747592euQEUX','1855436RqmsOE','14333859OBlqFT','length','4590089ViKwsU','22TCXSRr','6816404TPtuOh','all','1IRrzqc'];a187_0x424d=function(){return _0x23d8ec;};return a187_0x424d();}(function(_0x2bcb0a,_0x44e6ea){const _0x4bcb95=a187_0x7b2c,_0x2f5e5b=_0x2bcb0a();while(!![]){try{const _0x389d1c=-parseInt(_0x4bcb95(0x13d))/0x1*(-parseInt(_0x4bcb95(0x136))/0x2)+parseInt(_0x4bcb95(0x141))/0x3*(parseInt(_0x4bcb95(0x13b))/0x4)+parseInt(_0x4bcb95(0x140))/0x5+-parseInt(_0x4bcb95(0x143))/0x6*(parseInt(_0x4bcb95(0x139))/0x7)+-parseInt(_0x4bcb95(0x134))/0x8*(-parseInt(_0x4bcb95(0x137))/0x9)+-parseInt(_0x4bcb95(0x142))/0xa*(-parseInt(_0x4bcb95(0x13a))/0xb)+-parseInt(_0x4bcb95(0x135))/0xc;if(_0x389d1c===_0x44e6ea)break;else _0x2f5e5b['push'](_0x2f5e5b['shift']());}catch(_0xacaac0){_0x2f5e5b['push'](_0x2f5e5b['shift']());}}}(a187_0x424d,0xdc140));function a187_0x7b2c(_0x9d033d,_0x5a51b5){_0x9d033d=_0x9d033d-0x134;const _0x424ddb=a187_0x424d();let _0x7b2c66=_0x424ddb[_0x9d033d];return _0x7b2c66;}export async function batchAsync(_0x30105b,_0x168198,_0x482add=0xa){const _0x18c480=a187_0x7b2c,_0x22a048=[];for(let _0x4ac39b=0x0;_0x4ac39b<_0x30105b[_0x18c480(0x138)];_0x4ac39b+=_0x482add){const _0x51055e=_0x30105b[_0x18c480(0x13f)](_0x4ac39b,_0x4ac39b+_0x482add),_0x59992e=await Promise[_0x18c480(0x13c)](_0x51055e['map'](_0x168198));_0x22a048[_0x18c480(0x13e)](..._0x59992e);}return _0x22a048;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a188_0x16e92e=a188_0x170b;(function(_0x3989fe,_0x11b30d){const _0x55066b=a188_0x170b,_0x53963f=_0x3989fe();while(!![]){try{const _0x51044a=parseInt(_0x55066b(0x15b))/0x1+-parseInt(_0x55066b(0x166))/0x2*(-parseInt(_0x55066b(0x164))/0x3)+parseInt(_0x55066b(0x14d))/0x4+parseInt(_0x55066b(0x152))/0x5*(-parseInt(_0x55066b(0x15e))/0x6)+parseInt(_0x55066b(0x155))/0x7*(parseInt(_0x55066b(0x156))/0x8)+parseInt(_0x55066b(0x168))/0x9+parseInt(_0x55066b(0x158))/0xa*(-parseInt(_0x55066b(0x150))/0xb);if(_0x51044a===_0x11b30d)break;else _0x53963f['push'](_0x53963f['shift']());}catch(_0x1292f8){_0x53963f['push'](_0x53963f['shift']());}}}(a188_0x530f,0xd68c4));function a188_0x170b(_0x100a08,_0x1c01c7){_0x100a08=_0x100a08-0x14d;const _0x530f1c=a188_0x530f();let _0x170b8a=_0x530f1c[_0x100a08];return _0x170b8a;}import*as a188_0x46056d from'chalk';const Chalk=a188_0x46056d[a188_0x16e92e(0x15c)];export function shouldUseColor(_0x31f1a9={}){const _0x4943f6=a188_0x16e92e;if(_0x31f1a9[_0x4943f6(0x151)]===!![])return![];if(_0x31f1a9[_0x4943f6(0x14e)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process['stdout'][_0x4943f6(0x165)]??![];}export function getChalk(_0x4bc9b3={}){if(shouldUseColor(_0x4bc9b3))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4942cf,_0x13a2e5={}){return getChalk(_0x13a2e5)['dim'](_0x4942cf);}export function colorHeader(_0x5f3c39,_0x39a16b={}){const _0x3a7ff5=a188_0x16e92e;return getChalk(_0x39a16b)[_0x3a7ff5(0x14f)](_0x5f3c39);}export function colorType(_0x5eb371,_0x290be6={}){const _0x39ebfb=a188_0x16e92e;return getChalk(_0x290be6)[_0x39ebfb(0x15f)](_0x5eb371);}export function colorJSONKey(_0x5d3fce,_0x3e3e32={}){const _0x5054c9=a188_0x16e92e;return getChalk(_0x3e3e32)[_0x5054c9(0x15a)](_0x5d3fce);}export function colorJSONString(_0x2c47a4,_0x2b7160={}){return getChalk(_0x2b7160)['green'](_0x2c47a4);}export function colorJSONNumber(_0x4e1e03,_0x7a73b4={}){const _0x126d15=a188_0x16e92e;return getChalk(_0x7a73b4)[_0x126d15(0x14f)](_0x4e1e03);}function a188_0x530f(){const _0x46a16d=['blue','432564McGmxv','Chalk','string','708PVvIwH','dim','yellow','join','number','length','33435cJzPNL','isTTY','142svRHzc','null','2948751kMjACY','map','2788300bqfuFs','color','cyan','32197qmbcuG','noColor','18985bJhraq','isArray','stringify','710906ECUpRu','24xIoYrW','repeat','4190KMxDnJ','boolean'];a188_0x530f=function(){return _0x46a16d;};return a188_0x530f();}export function colorJSONBoolean(_0x2d44a4,_0x5384cb={}){const _0x5c88c0=a188_0x16e92e;return getChalk(_0x5384cb)[_0x5c88c0(0x160)](_0x2d44a4);}export function colorJSONNull(_0x2d3235,_0x187e93={}){return getChalk(_0x187e93)['dim'](_0x2d3235);}export function colorizeJSONCompact(_0x5eb340,_0x252539={}){const _0x2abca1=a188_0x16e92e;if(!shouldUseColor(_0x252539))return JSON['stringify'](_0x5eb340);if(_0x5eb340===null)return colorJSONNull('null',_0x252539);if(typeof _0x5eb340===_0x2abca1(0x159))return colorJSONBoolean(String(_0x5eb340),_0x252539);if(typeof _0x5eb340===_0x2abca1(0x162))return colorJSONNumber(String(_0x5eb340),_0x252539);if(typeof _0x5eb340===_0x2abca1(0x15d))return colorJSONString(JSON[_0x2abca1(0x154)](_0x5eb340),_0x252539);if(Array[_0x2abca1(0x153)](_0x5eb340)){if(_0x5eb340[_0x2abca1(0x163)]===0x0)return'[]';const _0x11f524=_0x5eb340[_0x2abca1(0x169)](_0x43e667=>colorizeJSONCompact(_0x43e667,_0x252539));return'['+_0x11f524['join'](',')+']';}if(typeof _0x5eb340==='object'){const _0xa78295=Object['entries'](_0x5eb340);if(_0xa78295['length']===0x0)return'{}';const _0x41decb=_0xa78295[_0x2abca1(0x169)](([_0x2f7875,_0x3847e1])=>{const _0x147896=_0x2abca1,_0x1d1a3c=colorJSONKey(JSON[_0x147896(0x154)](_0x2f7875),_0x252539),_0x1abe7d=colorizeJSONCompact(_0x3847e1,_0x252539);return _0x1d1a3c+':'+_0x1abe7d;});return'{'+_0x41decb[_0x2abca1(0x161)](',')+'}';}return String(_0x5eb340);}export function colorizeJSON(_0x1b2f9d,_0x2ff9b6={},_0x49d675=0x0){const _0x36eaf0=a188_0x16e92e;if(!shouldUseColor(_0x2ff9b6))return JSON[_0x36eaf0(0x154)](_0x1b2f9d,null,0x2);const _0x517359='\x20'[_0x36eaf0(0x157)](_0x49d675),_0x5db97e=_0x49d675+0x2;if(_0x1b2f9d===null)return colorJSONNull(_0x36eaf0(0x167),_0x2ff9b6);if(typeof _0x1b2f9d===_0x36eaf0(0x159))return colorJSONBoolean(String(_0x1b2f9d),_0x2ff9b6);if(typeof _0x1b2f9d===_0x36eaf0(0x162))return colorJSONNumber(String(_0x1b2f9d),_0x2ff9b6);if(typeof _0x1b2f9d===_0x36eaf0(0x15d))return colorJSONString(JSON[_0x36eaf0(0x154)](_0x1b2f9d),_0x2ff9b6);if(Array[_0x36eaf0(0x153)](_0x1b2f9d)){if(_0x1b2f9d[_0x36eaf0(0x163)]===0x0)return'[]';const _0x1f9543=_0x1b2f9d[_0x36eaf0(0x169)](_0x3c6c51=>{const _0x111ceb=_0x36eaf0,_0x16a54a=colorizeJSON(_0x3c6c51,_0x2ff9b6,_0x5db97e);return''+'\x20'[_0x111ceb(0x157)](_0x5db97e)+_0x16a54a;});return'[\x0a'+_0x1f9543['join'](',\x0a')+('\x0a'+_0x517359+']');}if(typeof _0x1b2f9d==='object'){const _0x158a54=Object['entries'](_0x1b2f9d);if(_0x158a54[_0x36eaf0(0x163)]===0x0)return'{}';const _0x3a63a2=_0x158a54[_0x36eaf0(0x169)](([_0x50031b,_0x18ff82])=>{const _0x79f063=_0x36eaf0,_0x485994=colorJSONKey(JSON[_0x79f063(0x154)](_0x50031b),_0x2ff9b6),_0x1335b8=colorizeJSON(_0x18ff82,_0x2ff9b6,_0x5db97e);return''+'\x20'[_0x79f063(0x157)](_0x5db97e)+_0x485994+':\x20'+_0x1335b8;});return'{\x0a'+_0x3a63a2['join'](',\x0a')+('\x0a'+_0x517359+'}');}return String(_0x1b2f9d);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x10147e,_0x5be774){const _0x47caf7=a189_0xc7f4,_0x18576b=_0x10147e();while(!![]){try{const _0x45dc63=parseInt(_0x47caf7(0x176))/0x1+parseInt(_0x47caf7(0x17a))/0x2+parseInt(_0x47caf7(0x168))/0x3+parseInt(_0x47caf7(0x178))/0x4*(parseInt(_0x47caf7(0x163))/0x5)+parseInt(_0x47caf7(0x165))/0x6+parseInt(_0x47caf7(0x17e))/0x7*(parseInt(_0x47caf7(0x15b))/0x8)+-parseInt(_0x47caf7(0x16b))/0x9*(parseInt(_0x47caf7(0x160))/0xa);if(_0x45dc63===_0x5be774)break;else _0x18576b['push'](_0x18576b['shift']());}catch(_0x7c9904){_0x18576b['push'](_0x18576b['shift']());}}}(a189_0x480e,0x3f67a));import a189_0xe383c3 from'chalk';export function generateDiff(_0xb4cd53,_0x4cb1f1){const _0x17da68=a189_0xc7f4,_0x2461f1=_0xb4cd53[_0x17da68(0x15f)]('\x0a'),_0x1aea89=_0x4cb1f1[_0x17da68(0x15f)]('\x0a'),_0x1bc630=[],_0x300a12=computeLCS(_0x2461f1,_0x1aea89);let _0x4eb5d3=0x0,_0x1d6590=0x0,_0x3229e5=0x0;while(_0x4eb5d3<_0x2461f1[_0x17da68(0x179)]||_0x1d6590<_0x1aea89[_0x17da68(0x179)]){if(_0x3229e5<_0x300a12[_0x17da68(0x179)]&&_0x4eb5d3<_0x2461f1[_0x17da68(0x179)]&&_0x2461f1[_0x4eb5d3]===_0x300a12[_0x3229e5])_0x1d6590<_0x1aea89[_0x17da68(0x179)]&&_0x1aea89[_0x1d6590]===_0x300a12[_0x3229e5]?(_0x1bc630[_0x17da68(0x174)]({'type':'unchanged','content':_0x2461f1[_0x4eb5d3]}),_0x4eb5d3++,_0x1d6590++,_0x3229e5++):(_0x1bc630['push']({'type':'added','content':_0x1aea89[_0x1d6590]}),_0x1d6590++);else{if(_0x3229e5<_0x300a12[_0x17da68(0x179)]&&_0x1d6590<_0x1aea89[_0x17da68(0x179)]&&_0x1aea89[_0x1d6590]===_0x300a12[_0x3229e5])_0x1bc630[_0x17da68(0x174)]({'type':_0x17da68(0x172),'content':_0x2461f1[_0x4eb5d3]}),_0x4eb5d3++;else{if(_0x4eb5d3<_0x2461f1[_0x17da68(0x179)]&&(_0x3229e5>=_0x300a12[_0x17da68(0x179)]||_0x2461f1[_0x4eb5d3]!==_0x300a12[_0x3229e5]))_0x1bc630[_0x17da68(0x174)]({'type':_0x17da68(0x172),'content':_0x2461f1[_0x4eb5d3]}),_0x4eb5d3++;else _0x1d6590<_0x1aea89[_0x17da68(0x179)]&&(_0x1bc630[_0x17da68(0x174)]({'type':_0x17da68(0x15e),'content':_0x1aea89[_0x1d6590]}),_0x1d6590++);}}}return _0x1bc630;}function a189_0x480e(){const _0x2eb0ba=['\x20\x20\x20','unchanged','old','removed','add','push','repeat','307191DZMqru','cyan','68492sqnAsX','length','480284fjocEO','\x20-\x20','content','type','1548911yiwIMA','max','forEach','16WfBczk','\x20\x20...','new','added','split','1439730vMWBzd','padStart','join','115QSuKlW','fill','765108BiOCIp','dim','has','132711zbDrZS','unshift','min','81nQHTxU','size','map','green'];a189_0x480e=function(){return _0x2eb0ba;};return a189_0x480e();}function a189_0xc7f4(_0x2c03f9,_0x2845de){_0x2c03f9=_0x2c03f9-0x15b;const _0x480e0b=a189_0x480e();let _0xc7f4b3=_0x480e0b[_0x2c03f9];return _0xc7f4b3;}function computeLCS(_0x3d0130,_0x40a403){const _0x47ff0b=a189_0xc7f4,_0x2dfe1d=_0x3d0130[_0x47ff0b(0x179)],_0x250483=_0x40a403[_0x47ff0b(0x179)],_0x6148ae=Array(_0x2dfe1d+0x1)[_0x47ff0b(0x164)](null)[_0x47ff0b(0x16d)](()=>Array(_0x250483+0x1)[_0x47ff0b(0x164)](0x0));for(let _0x26bde8=0x1;_0x26bde8<=_0x2dfe1d;_0x26bde8++){for(let _0x3042cc=0x1;_0x3042cc<=_0x250483;_0x3042cc++){_0x3d0130[_0x26bde8-0x1]===_0x40a403[_0x3042cc-0x1]?_0x6148ae[_0x26bde8][_0x3042cc]=_0x6148ae[_0x26bde8-0x1][_0x3042cc-0x1]+0x1:_0x6148ae[_0x26bde8][_0x3042cc]=Math[_0x47ff0b(0x17f)](_0x6148ae[_0x26bde8-0x1][_0x3042cc],_0x6148ae[_0x26bde8][_0x3042cc-0x1]);}}const _0x3b7c00=[];let _0xfb668c=_0x2dfe1d,_0x5aa5a2=_0x250483;while(_0xfb668c>0x0&&_0x5aa5a2>0x0){if(_0x3d0130[_0xfb668c-0x1]===_0x40a403[_0x5aa5a2-0x1])_0x3b7c00[_0x47ff0b(0x169)](_0x3d0130[_0xfb668c-0x1]),_0xfb668c--,_0x5aa5a2--;else _0x6148ae[_0xfb668c-0x1][_0x5aa5a2]>_0x6148ae[_0xfb668c][_0x5aa5a2-0x1]?_0xfb668c--:_0x5aa5a2--;}return _0x3b7c00;}export function formatDiffWithColors(_0x37a1d0,_0x5954a4=0x3){const _0x2a0a01=a189_0xc7f4,_0x49f22f=new Set();_0x37a1d0[_0x2a0a01(0x180)]((_0x157f71,_0x1131c7)=>{const _0x13cb75=_0x2a0a01;_0x157f71[_0x13cb75(0x17d)]!==_0x13cb75(0x170)&&_0x49f22f[_0x13cb75(0x173)](_0x1131c7);});if(_0x49f22f[_0x2a0a01(0x16c)]===0x0)return'';const _0x3ff6c7=new Set();for(const _0x4f35e9 of _0x49f22f){for(let _0x293d1f=Math[_0x2a0a01(0x17f)](0x0,_0x4f35e9-_0x5954a4);_0x293d1f<=Math[_0x2a0a01(0x16a)](_0x37a1d0[_0x2a0a01(0x179)]-0x1,_0x4f35e9+_0x5954a4);_0x293d1f++){_0x3ff6c7['add'](_0x293d1f);}}const _0x1e8db7=[];let _0x12ab87=-0x1;const _0x275e28=_0x37a1d0['length'],_0x5b94c5=Math[_0x2a0a01(0x17f)](0x3,String(_0x275e28)[_0x2a0a01(0x179)]),_0x33e61a=[];let _0x3e8dfb=0x0,_0x3ed5b7=0x0;for(const _0x2cf25b of _0x37a1d0){if(_0x2cf25b[_0x2a0a01(0x17d)]===_0x2a0a01(0x172))_0x3e8dfb++,_0x33e61a[_0x2a0a01(0x174)]({'old':_0x3e8dfb,'new':0x0});else _0x2cf25b[_0x2a0a01(0x17d)]===_0x2a0a01(0x15e)?(_0x3ed5b7++,_0x33e61a[_0x2a0a01(0x174)]({'old':0x0,'new':_0x3ed5b7})):(_0x3e8dfb++,_0x3ed5b7++,_0x33e61a[_0x2a0a01(0x174)]({'old':_0x3e8dfb,'new':_0x3ed5b7}));}for(let _0x5144b6=0x0;_0x5144b6<_0x37a1d0[_0x2a0a01(0x179)];_0x5144b6++){if(!_0x3ff6c7[_0x2a0a01(0x167)](_0x5144b6))continue;_0x12ab87!==-0x1&&_0x5144b6>_0x12ab87+0x1&&_0x1e8db7[_0x2a0a01(0x174)](a189_0xe383c3[_0x2a0a01(0x177)](_0x2a0a01(0x15c)));_0x12ab87=_0x5144b6;const _0x2e7c2d=_0x37a1d0[_0x5144b6],_0x33b13a=_0x33e61a[_0x5144b6],_0x17e362=_0x33b13a[_0x2a0a01(0x171)]>0x0?String(_0x33b13a[_0x2a0a01(0x171)])['padStart'](_0x5b94c5):'\x20'[_0x2a0a01(0x175)](_0x5b94c5),_0x2abb0c=_0x33b13a[_0x2a0a01(0x15d)]>0x0?String(_0x33b13a[_0x2a0a01(0x15d)])[_0x2a0a01(0x161)](_0x5b94c5):'\x20'[_0x2a0a01(0x175)](_0x5b94c5);switch(_0x2e7c2d[_0x2a0a01(0x17d)]){case _0x2a0a01(0x172):_0x1e8db7[_0x2a0a01(0x174)](a189_0xe383c3['red'](_0x17e362+'\x20'+_0x2abb0c+_0x2a0a01(0x17b)+_0x2e7c2d[_0x2a0a01(0x17c)]));break;case'added':_0x1e8db7[_0x2a0a01(0x174)](a189_0xe383c3[_0x2a0a01(0x16e)](_0x17e362+'\x20'+_0x2abb0c+'\x20+\x20'+_0x2e7c2d[_0x2a0a01(0x17c)]));break;default:_0x1e8db7['push'](a189_0xe383c3[_0x2a0a01(0x166)](_0x17e362+'\x20'+_0x2abb0c+_0x2a0a01(0x16f)+_0x2e7c2d[_0x2a0a01(0x17c)]));break;}}return _0x1e8db7[_0x2a0a01(0x162)]('\x0a');}export function hasChanges(_0x3b9fd9){const _0x45fc7d=a189_0xc7f4;return _0x3b9fd9['some'](_0x4fb0f5=>_0x4fb0f5[_0x45fc7d(0x17d)]!==_0x45fc7d(0x170));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x26a966,_0x183119){const _0x3c99f3=a190_0x1c7c,_0x44db3d=_0x26a966();while(!![]){try{const _0x5382d9=-parseInt(_0x3c99f3(0x1be))/0x1*(-parseInt(_0x3c99f3(0x1b1))/0x2)+parseInt(_0x3c99f3(0x1b4))/0x3+-parseInt(_0x3c99f3(0x1b8))/0x4*(parseInt(_0x3c99f3(0x1bb))/0x5)+-parseInt(_0x3c99f3(0x1c0))/0x6+parseInt(_0x3c99f3(0x1ac))/0x7*(parseInt(_0x3c99f3(0x1b9))/0x8)+parseInt(_0x3c99f3(0x1af))/0x9+-parseInt(_0x3c99f3(0x1b5))/0xa;if(_0x5382d9===_0x183119)break;else _0x44db3d['push'](_0x44db3d['shift']());}catch(_0x2400c3){_0x44db3d['push'](_0x44db3d['shift']());}}}(a190_0x2473,0xaddf9));import*as a190_0x21a653 from'node:fs';import*as a190_0x380275 from'node:path';export function setSecureFilePermissions(_0x36e2b4){const _0x35ad6e=a190_0x1c7c;try{a190_0x21a653['chmodSync'](_0x36e2b4,0x180);}catch{console[_0x35ad6e(0x1b0)](_0x35ad6e(0x1ba)+_0x36e2b4);}}export function setSecureDirectoryPermissions(_0x14a77f){const _0x593d0f=a190_0x1c7c;try{a190_0x21a653['chmodSync'](_0x14a77f,0x1c0);}catch{console['warn'](_0x593d0f(0x1ba)+_0x14a77f);}}export function createSecureDirectory(_0x1d56e8){const _0x1a2e72=a190_0x1c7c;!a190_0x21a653[_0x1a2e72(0x1ad)](_0x1d56e8)&&(a190_0x21a653[_0x1a2e72(0x1b3)](_0x1d56e8,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1d56e8));}export function validateSecureFilePermissions(_0x302592){const _0x76b4fc=a190_0x1c7c;try{const _0xef9bda=a190_0x21a653['statSync'](_0x302592),_0x400677=_0xef9bda[_0x76b4fc(0x1bf)]&0x1ff,_0x2c868a=(_0x400677&0x3f)!==0x0;if(_0x2c868a)return console[_0x76b4fc(0x1b0)](_0x76b4fc(0x1ae)+_0x302592+'\x20has\x20insecure\x20permissions\x20('+_0x400677[_0x76b4fc(0x1b7)](0x8)+_0x76b4fc(0x1b6)+_0x76b4fc(0x1bd)),![];return!![];}catch{return!![];}}function a190_0x1c7c(_0x4d15e1,_0x1e1c4f){_0x4d15e1=_0x4d15e1-0x1ac;const _0x247355=a190_0x2473();let _0x1c7cdd=_0x247355[_0x4d15e1];return _0x1c7cdd;}export function writeSecureFile(_0x38d98a,_0x540a52){const _0x420ed2=a190_0x1c7c,_0x32d5c4=a190_0x380275[_0x420ed2(0x1bc)](_0x38d98a);createSecureDirectory(_0x32d5c4),a190_0x21a653[_0x420ed2(0x1b2)](_0x38d98a,_0x540a52,{'mode':0x180}),setSecureFilePermissions(_0x38d98a);}function a190_0x2473(){const _0x24dbb1=['writeFileSync','mkdirSync','688410RnXlel','6453100amgdUy',').\x20','toString','1516YapBbe','392COOiaT','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','3535YrWtjD','dirname','Should\x20be\x200600\x20or\x20more\x20restrictive.','777LxEuDA','mode','7120302KzQfBv','44247XTPOdy','existsSync','Warning:\x20','11722437cHAtiv','warn','2498KYJHSq'];a190_0x2473=function(){return _0x24dbb1;};return a190_0x2473();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a191_0xe500(){const _0x7561cd=['PERMISSION_DENIED','NOT_FOUND','message','\x27:\x20','Error\x20reading\x20file\x20\x27','302516NOEALt','12CLTWWc','669914EAdukJ','INTERNAL','Permission\x20denied\x20reading\x20file\x20\x27','3072340qruOsm','273TSihaO','1859850majCPT','344ScBzgk','utf-8','File\x20\x27','\x27\x20not\x20found','896566QVUtYk','184077zVwxbV','ENOENT','36968kwLcmY'];a191_0xe500=function(){return _0x7561cd;};return a191_0xe500();}function a191_0x1039(_0x1b1d0c,_0x470c5a){_0x1b1d0c=_0x1b1d0c-0x86;const _0xe500d8=a191_0xe500();let _0x103940=_0xe500d8[_0x1b1d0c];return _0x103940;}(function(_0x500830,_0x3ba345){const _0x283622=a191_0x1039,_0x33b3cb=_0x500830();while(!![]){try{const _0x4a5ab8=parseInt(_0x283622(0x95))/0x1+parseInt(_0x283622(0x8c))/0x2+-parseInt(_0x283622(0x86))/0x3*(parseInt(_0x283622(0x8f))/0x4)+-parseInt(_0x283622(0x87))/0x5*(parseInt(_0x283622(0x96))/0x6)+parseInt(_0x283622(0x97))/0x7+-parseInt(_0x283622(0x88))/0x8*(-parseInt(_0x283622(0x8d))/0x9)+parseInt(_0x283622(0x9a))/0xa;if(_0x4a5ab8===_0x3ba345)break;else _0x33b3cb['push'](_0x33b3cb['shift']());}catch(_0x2fe0b0){_0x33b3cb['push'](_0x33b3cb['shift']());}}}(a191_0xe500,0x6d6fc));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x279fe6){const _0x3084e8=a191_0x1039;try{return readFileSync(_0x279fe6,_0x3084e8(0x89));}catch(_0x4c7e63){const _0x30e3eb=_0x4c7e63['code'];if(_0x30e3eb===_0x3084e8(0x8e))throw new SDKError(ErrorCode[_0x3084e8(0x91)],_0x3084e8(0x8a)+_0x279fe6+_0x3084e8(0x8b),_0x4c7e63);else{if(_0x30e3eb==='EACCES')throw new SDKError(ErrorCode[_0x3084e8(0x90)],_0x3084e8(0x99)+_0x279fe6+'\x27',_0x4c7e63);else throw new SDKError(ErrorCode[_0x3084e8(0x98)],_0x3084e8(0x94)+_0x279fe6+_0x3084e8(0x93)+_0x4c7e63[_0x3084e8(0x92)],_0x4c7e63);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x402d99,_0x414b20){const _0x18962d=a192_0x1efc,_0x480b42=_0x402d99();while(!![]){try{const _0x4f3ccb=parseInt(_0x18962d(0x176))/0x1*(-parseInt(_0x18962d(0x169))/0x2)+-parseInt(_0x18962d(0x165))/0x3+-parseInt(_0x18962d(0x16a))/0x4+-parseInt(_0x18962d(0x164))/0x5+parseInt(_0x18962d(0x175))/0x6*(parseInt(_0x18962d(0x177))/0x7)+-parseInt(_0x18962d(0x17b))/0x8*(-parseInt(_0x18962d(0x17d))/0x9)+parseInt(_0x18962d(0x168))/0xa;if(_0x4f3ccb===_0x414b20)break;else _0x480b42['push'](_0x480b42['shift']());}catch(_0x496457){_0x480b42['push'](_0x480b42['shift']());}}}(a192_0x5b7e,0x68a34));function a192_0x1efc(_0x2b4f3e,_0x16141a){_0x2b4f3e=_0x2b4f3e-0x164;const _0x5b7ee1=a192_0x5b7e();let _0x1efcd3=_0x5b7ee1[_0x2b4f3e];return _0x1efcd3;}import*as a192_0x34e80f from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x3b41eb,_0x12a984,_0x5240da){const _0xba962d=a192_0x1efc,_0x15c10b=_0x3b41eb+'/'+_0x12a984,_0x1ecfe6=cache[_0xba962d(0x167)](_0x15c10b);if(_0x1ecfe6&&Date[_0xba962d(0x16b)]()-_0x1ecfe6['fetchedAt']<CACHE_TTL_MS)return Promise[_0xba962d(0x16f)](_0x1ecfe6[_0xba962d(0x17c)]);return new Promise((_0x1853a3,_0x4dddbd)=>{const _0x27dc91=_0xba962d,_0x12f5b4={'hostname':'api.github.com','path':'/repos/'+_0x3b41eb+'/'+_0x12a984+'/releases?per_page=20','headers':{'User-Agent':_0x5240da,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x4445a5=a192_0x34e80f['get'](_0x12f5b4,_0x1872cb=>{const _0x95d2df=a192_0x1efc;let _0x4f1aa3='';_0x1872cb['on']('data',_0x671699=>{const _0x542816=a192_0x1efc;_0x4f1aa3+=_0x671699[_0x542816(0x170)]();}),_0x1872cb['on'](_0x95d2df(0x174),()=>{const _0x26ff5c=_0x95d2df;if(_0x1872cb['statusCode']!==0xc8){_0x4dddbd(new Error('GitHub\x20API\x20returned\x20'+_0x1872cb['statusCode']+':\x20'+_0x4f1aa3[_0x26ff5c(0x166)](0x0,0xc8)));return;}try{const _0x23772f=JSON['parse'](_0x4f1aa3);cache[_0x26ff5c(0x16d)](_0x15c10b,{'releases':_0x23772f,'fetchedAt':Date[_0x26ff5c(0x16b)]()}),_0x1853a3(_0x23772f);}catch(_0x9745d0){_0x4dddbd(_0x9745d0);}});});_0x4445a5['on'](_0x27dc91(0x171),()=>{const _0x11407c=_0x27dc91;_0x4445a5[_0x11407c(0x173)](),_0x4dddbd(new Error(_0x11407c(0x172)+REQUEST_TIMEOUT_MS+'ms'));}),_0x4445a5['on']('error',_0x4dddbd);});}function a192_0x5b7e(){const _0x54f78a=['next','resolve','toString','timeout','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','destroy','end','618BaytjE','47374wuuuuf','39823lKePKz','find','length','tag_name','365656xKxkEC','releases','99PCfedN','2309195fxLDLM','1900773RhNSES','slice','get','11287720UwWBcx','2XuNFBs','2584464GXuvNs','now','prerelease','set'];a192_0x5b7e=function(){return _0x54f78a;};return a192_0x5b7e();}export async function resolveReleaseTag(_0x3cd1cf,_0xcebaeb,_0x4f6fab,_0x4f95de){const _0x2f6024=a192_0x1efc,_0x37e899=await fetchGitHubReleases(_0xcebaeb,_0x4f6fab,_0x4f95de);if(_0x37e899[_0x2f6024(0x179)]===0x0)return null;if(_0x3cd1cf===_0x2f6024(0x16e))return _0x37e899[0x0][_0x2f6024(0x17a)];const _0xaaf786=_0x37e899[_0x2f6024(0x178)](_0x16dda1=>!_0x16dda1[_0x2f6024(0x16c)]);return _0xaaf786?_0xaaf786['tag_name']:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3d42e9,_0x309b62){const _0x3b96c6=a193_0x5dc4,_0x214de9=_0x3d42e9();while(!![]){try{const _0x10f4ad=-parseInt(_0x3b96c6(0xe5))/0x1*(parseInt(_0x3b96c6(0xe3))/0x2)+-parseInt(_0x3b96c6(0xdd))/0x3*(parseInt(_0x3b96c6(0xec))/0x4)+parseInt(_0x3b96c6(0xdb))/0x5+-parseInt(_0x3b96c6(0xdc))/0x6+-parseInt(_0x3b96c6(0xdf))/0x7+parseInt(_0x3b96c6(0xe4))/0x8*(parseInt(_0x3b96c6(0xe8))/0x9)+parseInt(_0x3b96c6(0xef))/0xa*(parseInt(_0x3b96c6(0xee))/0xb);if(_0x10f4ad===_0x309b62)break;else _0x214de9['push'](_0x214de9['shift']());}catch(_0x21e3f2){_0x214de9['push'](_0x214de9['shift']());}}}(a193_0x4e5a,0x1f1d6));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x11da49=a193_0x5dc4;return process.env.TDX_CACHE_DIR||join(homedir(),_0x11da49(0xea),_0x11da49(0xe1));}const registry=new Map();export function registerGlobalCacheKey(_0x17aab3,_0x1dceb1){const _0x3280bc=a193_0x5dc4,_0x361eb6=registry[_0x3280bc(0xe6)](_0x17aab3);if(_0x361eb6&&_0x361eb6!==_0x1dceb1)throw new Error(_0x3280bc(0xe9)+_0x17aab3+_0x3280bc(0xe0)+_0x361eb6+_0x3280bc(0xeb)+_0x1dceb1+'\x22');registry[_0x3280bc(0xed)](_0x17aab3,_0x1dceb1);}export function getGlobalCachePath(_0x55847b){return join(getGlobalCacheDir(),_0x55847b);}function ensureGlobalCacheDir(){const _0x3a0513=getGlobalCacheDir();!existsSync(_0x3a0513)&&mkdirSync(_0x3a0513,{'recursive':!![]});}function readCacheJson(_0x3f5da5){const _0x1b3413=getGlobalCachePath(_0x3f5da5);if(!existsSync(_0x1b3413))return undefined;try{const _0x56d35b=readFileSync(_0x1b3413,'utf-8');return JSON['parse'](_0x56d35b);}catch{return undefined;}}function writeCacheJson(_0x4a338b,_0x305b6d){const _0x3e8442=a193_0x5dc4;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4a338b),JSON[_0x3e8442(0xde)](_0x305b6d,null,0x2),_0x3e8442(0xe7));}function readCacheText(_0xa7cc9f){const _0x44970f=a193_0x5dc4,_0x30892c=getGlobalCachePath(_0xa7cc9f);if(!existsSync(_0x30892c))return undefined;try{return readFileSync(_0x30892c,_0x44970f(0xe7));}catch{return undefined;}}function writeCacheText(_0x45ace2,_0x4c4ed6){const _0x108932=a193_0x5dc4;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x45ace2),_0x4c4ed6,_0x108932(0xe7));}function clearCache(_0x21106f){const _0x3f777a=getGlobalCachePath(_0x21106f);if(existsSync(_0x3f777a))try{unlinkSync(_0x3f777a);}catch{}}function cacheExists(_0x5b63e0){return existsSync(getGlobalCachePath(_0x5b63e0));}export function createGlobalCache(_0x2cbdb5,_0x464f12){return registerGlobalCacheKey(_0x2cbdb5,_0x464f12),{'read':()=>readCacheJson(_0x2cbdb5),'write':_0x368273=>writeCacheJson(_0x2cbdb5,_0x368273),'clear':()=>clearCache(_0x2cbdb5),'exists':()=>cacheExists(_0x2cbdb5),'path':()=>getGlobalCachePath(_0x2cbdb5)};}export function createGlobalTextCache(_0x37f861,_0x13d052){const _0x50b656=a193_0x5dc4;return registerGlobalCacheKey(_0x37f861,_0x13d052),{'read':()=>readCacheText(_0x37f861)?.[_0x50b656(0xf1)]()||undefined,'write':_0xb50c18=>writeCacheText(_0x37f861,_0xb50c18),'clear':()=>clearCache(_0x37f861),'exists':()=>cacheExists(_0x37f861),'path':()=>getGlobalCachePath(_0x37f861)};}export function createProfileCache(_0x3f1c6d,_0x52d57f){const _0x3d3a5e=_0x4aef7a=>{const _0x4162b8=a193_0x5dc4,_0x159e37=_0x4aef7a||'default';return _0x3f1c6d[_0x4162b8(0xf0)]('{profile}',_0x159e37);};return{'read':_0x1a275f=>{const _0x1023e5=_0x3d3a5e(_0x1a275f);return registerGlobalCacheKey(_0x1023e5,_0x52d57f),readCacheJson(_0x1023e5);},'write':(_0xbad74f,_0x9eca9e)=>{const _0x5633f8=_0x3d3a5e(_0xbad74f);registerGlobalCacheKey(_0x5633f8,_0x52d57f),writeCacheJson(_0x5633f8,_0x9eca9e);},'clear':_0x476a21=>{const _0x537dcc=_0x3d3a5e(_0x476a21);clearCache(_0x537dcc);},'exists':_0x20d8b9=>{const _0x55eb49=_0x3d3a5e(_0x20d8b9);return cacheExists(_0x55eb49);},'path':_0x1db5be=>{const _0x38cdd6=_0x3d3a5e(_0x1db5be);return getGlobalCachePath(_0x38cdd6);}};}function a193_0x4e5a(){const _0x4ceece=['tdx','clear','2KIJyYg','8rjfiFv','158961eyMDPw','get','utf-8','1926279ypjsyC','Global\x20cache\x20key\x20\x22','.cache','\x22,\x20cannot\x20register\x20for\x20\x22','156940CywBEd','set','317834vZeWKE','110xzOcjo','replace','trim','61370bBJXEK','1088022RkAwRB','3rVbiAZ','stringify','260120OOWKhx','\x22\x20already\x20registered\x20by\x20\x22'];a193_0x4e5a=function(){return _0x4ceece;};return a193_0x4e5a();}export function createOptionalProfileCache(_0x13b6ec,_0x6d6d8f,_0x1af0b8={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x1af0b8,_0x24400e=_0xb852e0=>{return _0xb852e0?''+_0x13b6ec+profileSeparator+_0xb852e0+suffix:''+_0x13b6ec+suffix;};return{'read':_0x2f2b9d=>{const _0xb7ee9b=_0x24400e(_0x2f2b9d);return registerGlobalCacheKey(_0xb7ee9b,_0x6d6d8f),readCacheJson(_0xb7ee9b);},'write':(_0x1230d2,_0x901158)=>{const _0x40b750=_0x24400e(_0x901158);registerGlobalCacheKey(_0x40b750,_0x6d6d8f),writeCacheJson(_0x40b750,_0x1230d2);},'clear':_0x2c8bf9=>{const _0x22f275=_0x24400e(_0x2c8bf9);clearCache(_0x22f275);},'exists':_0x395443=>{const _0x21fbde=_0x24400e(_0x395443);return cacheExists(_0x21fbde);},'path':_0x4d18c3=>{const _0x224739=_0x24400e(_0x4d18c3);return getGlobalCachePath(_0x224739);}};}function a193_0x5dc4(_0x287f1c,_0x653599){_0x287f1c=_0x287f1c-0xdb;const _0x4e5aca=a193_0x4e5a();let _0x5dc478=_0x4e5aca[_0x287f1c];return _0x5dc478;}export function clearGlobalRegistry(){const _0x79ba60=a193_0x5dc4;registry[_0x79ba60(0xe2)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a194_0x16de(_0x5e35de,_0x266de2){_0x5e35de=_0x5e35de-0x1c3;const _0xc87924=a194_0xc879();let _0x16de45=_0xc87924[_0x5e35de];return _0x16de45;}(function(_0x1a0870,_0x576aca){const _0x573ddd=a194_0x16de,_0x45a452=_0x1a0870();while(!![]){try{const _0x376e96=-parseInt(_0x573ddd(0x1db))/0x1+parseInt(_0x573ddd(0x1d0))/0x2+-parseInt(_0x573ddd(0x1d7))/0x3*(parseInt(_0x573ddd(0x1ce))/0x4)+-parseInt(_0x573ddd(0x1cf))/0x5+-parseInt(_0x573ddd(0x1c9))/0x6*(parseInt(_0x573ddd(0x1d8))/0x7)+-parseInt(_0x573ddd(0x1d3))/0x8*(-parseInt(_0x573ddd(0x1cb))/0x9)+-parseInt(_0x573ddd(0x1da))/0xa*(-parseInt(_0x573ddd(0x1c7))/0xb);if(_0x376e96===_0x576aca)break;else _0x45a452['push'](_0x45a452['shift']());}catch(_0x5d8b66){_0x45a452['push'](_0x45a452['shift']());}}}(a194_0xc879,0x6bc1d));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x559a7c,_0x1f620f){const _0x567df7=a194_0x16de;try{if(_0x1f620f){const _0x513738=await readFile(_0x559a7c,'utf-8');try{return JSON[_0x567df7(0x1c5)](_0x513738);}catch(_0x3c2c3e){throw new SDKError(ErrorCode[_0x567df7(0x1cd)],_0x567df7(0x1c6)+_0x559a7c+_0x567df7(0x1c8)+(_0x3c2c3e instanceof Error?_0x3c2c3e['message']:String(_0x3c2c3e)));}}else try{return JSON[_0x567df7(0x1c5)](_0x559a7c);}catch(_0x34647c){throw new SDKError(ErrorCode[_0x567df7(0x1cd)],_0x567df7(0x1d9)+(_0x34647c instanceof Error?_0x34647c['message']:String(_0x34647c)));}}catch(_0x375690){if(_0x375690 instanceof SDKError)throw _0x375690;if(_0x375690 instanceof Error&&_0x567df7(0x1d2)in _0x375690){const _0x1cd2a8=_0x375690;if(_0x1cd2a8[_0x567df7(0x1d2)]===_0x567df7(0x1c3))throw new SDKError(ErrorCode[_0x567df7(0x1d5)],'File\x20not\x20found:\x20'+_0x559a7c);else{if(_0x1cd2a8['code']==='EACCES')throw new SDKError(ErrorCode[_0x567df7(0x1cc)],_0x567df7(0x1d4)+_0x559a7c);}}throw new SDKError(ErrorCode[_0x567df7(0x1c4)],_0x567df7(0x1d1)+(_0x375690 instanceof Error?_0x375690[_0x567df7(0x1d6)]:String(_0x375690)));}}function a194_0xc879(){const _0x1c6a9a=['ENOENT','INTERNAL','parse','Invalid\x20JSON\x20in\x20file\x20\x27','55SxCyqM','\x27:\x20','17364nxjNCv','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','207sDJcjM','PERMISSION_DENIED','INVALID_ARGUMENT','4KiFfjy','4160295fcBrEe','787998QXcPEr','Failed\x20to\x20load\x20JSON:\x20','code','158152tlpsEH','Permission\x20denied\x20reading\x20file:\x20','NOT_FOUND','message','1897593vqjlir','1351pduKrx','Invalid\x20JSON\x20string:\x20','3852270sfXYDD','310316xUbMkC'];a194_0xc879=function(){return _0x1c6a9a;};return a194_0xc879();}export async function loadJSONFromOptions(_0x2f549d,_0x329a2a){const _0x47b7c7=a194_0x16de;if(_0x2f549d&&_0x329a2a)throw new SDKError(ErrorCode[_0x47b7c7(0x1cd)],_0x47b7c7(0x1ca));if(_0x2f549d)return await loadJSON(_0x2f549d,![]);if(_0x329a2a)return await loadJSON(_0x329a2a,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a195_0x503822=a195_0x315c;(function(_0xcd9858,_0x203868){const _0x17fcff=a195_0x315c,_0x395dd2=_0xcd9858();while(!![]){try{const _0x5b47e5=-parseInt(_0x17fcff(0x119))/0x1+parseInt(_0x17fcff(0x11b))/0x2+parseInt(_0x17fcff(0x10f))/0x3*(-parseInt(_0x17fcff(0x110))/0x4)+parseInt(_0x17fcff(0x113))/0x5+parseInt(_0x17fcff(0x10e))/0x6*(-parseInt(_0x17fcff(0x10c))/0x7)+-parseInt(_0x17fcff(0x111))/0x8+parseInt(_0x17fcff(0x115))/0x9;if(_0x5b47e5===_0x203868)break;else _0x395dd2['push'](_0x395dd2['shift']());}catch(_0x57b5c9){_0x395dd2['push'](_0x395dd2['shift']());}}}(a195_0xf18e,0x8a8c4));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a195_0x503822(0x116),registry=new Map();export function registerCacheKey(_0x1cc610,_0x186864){const _0x319b49=a195_0x503822,_0x23de25=registry['get'](_0x1cc610);if(_0x23de25&&_0x23de25!==_0x186864)throw new Error('Cache\x20key\x20\x22'+_0x1cc610+'\x22\x20already\x20registered\x20by\x20\x22'+_0x23de25+_0x319b49(0x10b)+_0x186864+'\x22');registry[_0x319b49(0x11a)](_0x1cc610,_0x186864);}export function getCacheDir(){const _0x49478a=a195_0x503822,_0x280f48=process['cwd'](),_0x2bf2b0=_0x280f48===parse(_0x280f48)[_0x49478a(0x10d)]?homedir():_0x280f48;return join(_0x2bf2b0,LOCAL_CACHE_DIR);}export function getCachePath(_0x4eded4){return join(getCacheDir(),_0x4eded4);}function ensureCacheDir(){const _0x1b709c=getCacheDir();!existsSync(_0x1b709c)&&mkdirSync(_0x1b709c,{'recursive':!![]});}function readCacheJson(_0x41fdc1){const _0x3517df=a195_0x503822,_0xf89274=getCachePath(_0x41fdc1);if(!existsSync(_0xf89274))return undefined;try{const _0xd730f1=readFileSync(_0xf89274,'utf-8');return JSON[_0x3517df(0x112)](_0xd730f1);}catch{return undefined;}}function writeCacheJson(_0x519d2d,_0x2fdcb2){const _0x1627dc=a195_0x503822;ensureCacheDir(),writeFileSync(getCachePath(_0x519d2d),JSON[_0x1627dc(0x114)](_0x2fdcb2,null,0x2),'utf-8');}function readCacheText(_0x566b57){const _0x989923=a195_0x503822,_0x341332=getCachePath(_0x566b57);if(!existsSync(_0x341332))return undefined;try{return readFileSync(_0x341332,_0x989923(0x117));}catch{return undefined;}}function a195_0xf18e(){const _0x11df55=['5037065rrNuQg','stringify','1895490rBMUbq','.cache/tdx','utf-8','trim','68370IWuCsD','set','1642376ZCIIsE','\x22,\x20cannot\x20register\x20for\x20\x22','7294MqwasX','root','3318ldkYKf','198VAFjdo','19620ylXtKK','4027144YLJmDz','parse'];a195_0xf18e=function(){return _0x11df55;};return a195_0xf18e();}function writeCacheText(_0x586914,_0x2ff6ee){const _0x4f6c55=a195_0x503822;ensureCacheDir(),writeFileSync(getCachePath(_0x586914),_0x2ff6ee,_0x4f6c55(0x117));}function clearCache(_0x512149){const _0x1721db=getCachePath(_0x512149);if(existsSync(_0x1721db))try{unlinkSync(_0x1721db);}catch{}}function a195_0x315c(_0x4e5954,_0x5ef523){_0x4e5954=_0x4e5954-0x10b;const _0xf18e82=a195_0xf18e();let _0x315c02=_0xf18e82[_0x4e5954];return _0x315c02;}function cacheExists(_0x5a6f66){return existsSync(getCachePath(_0x5a6f66));}export function createCache(_0x32fe56,_0x4ee560){return registerCacheKey(_0x32fe56,_0x4ee560),{'read':()=>readCacheJson(_0x32fe56),'write':_0x3cb1ff=>writeCacheJson(_0x32fe56,_0x3cb1ff),'clear':()=>clearCache(_0x32fe56),'exists':()=>cacheExists(_0x32fe56),'path':()=>getCachePath(_0x32fe56)};}export function createTextCache(_0x1ed4ff,_0x57c78b){const _0x33c301=a195_0x503822;return registerCacheKey(_0x1ed4ff,_0x57c78b),{'read':()=>readCacheText(_0x1ed4ff)?.[_0x33c301(0x118)]()||undefined,'write':_0x2904ed=>writeCacheText(_0x1ed4ff,_0x2904ed),'clear':()=>clearCache(_0x1ed4ff),'exists':()=>cacheExists(_0x1ed4ff),'path':()=>getCachePath(_0x1ed4ff)};}export function clearRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a196_0x2ba5af=a196_0x4630;function a196_0x12d3(){const _0x13ed38=['3Ijmdff','level','5797335KIQoOB','4666360DznHqM','59120tuIbkH','533864hLaXtu','INFO','timestamp','green','message','default','662356IWhIsG','colors','component','WARN','chalk','colorLevel','16854jbGnAK',']\x20[','78Moaxht','gray','ERROR','9EMmVuC','Chalk','24180233fFJCbo','TRACE','format','dim','3101tbCVrS','DEBUG'];a196_0x12d3=function(){return _0x13ed38;};return a196_0x12d3();}function a196_0x4630(_0x4be4b4,_0x44abe9){_0x4be4b4=_0x4be4b4-0x162;const _0x12d32c=a196_0x12d3();let _0x46301e=_0x12d32c[_0x4be4b4];return _0x46301e;}(function(_0x4e54df,_0x10cba3){const _0x278463=a196_0x4630,_0x240d7a=_0x4e54df();while(!![]){try{const _0x482c65=parseInt(_0x278463(0x16d))/0x1*(parseInt(_0x278463(0x178))/0x2)+-parseInt(_0x278463(0x162))/0x3*(parseInt(_0x278463(0x171))/0x4)+-parseInt(_0x278463(0x16f))/0x5+parseInt(_0x278463(0x17e))/0x6*(-parseInt(_0x278463(0x16b))/0x7)+parseInt(_0x278463(0x172))/0x8+-parseInt(_0x278463(0x165))/0x9*(-parseInt(_0x278463(0x170))/0xa)+parseInt(_0x278463(0x167))/0xb;if(_0x482c65===_0x10cba3)break;else _0x240d7a['push'](_0x240d7a['shift']());}catch(_0x2f40e0){_0x240d7a['push'](_0x240d7a['shift']());}}}(a196_0x12d3,0xe4c0c));import a196_0x531fd4 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a196_0x531fd4,ChalkClass=chalkModule['Chalk']||chalkModule[a196_0x2ba5af(0x177)]?.[a196_0x2ba5af(0x166)];export class DefaultLogFormatter{[a196_0x2ba5af(0x179)];[a196_0x2ba5af(0x17c)];constructor(_0x14b0d8={}){const _0x321f1c=a196_0x2ba5af;this['colors']=_0x14b0d8[_0x321f1c(0x179)]??![],this[_0x321f1c(0x17c)]=_0x14b0d8[_0x321f1c(0x179)]&&ChalkClass?new ChalkClass({'level':0x3}):a196_0x531fd4;}[a196_0x2ba5af(0x169)](_0x48df36){const _0x4c533a=a196_0x2ba5af,_0x3e39f0=formatTimestamp(_0x48df36[_0x4c533a(0x174)]),_0x8a2a41=logLevelToString(_0x48df36[_0x4c533a(0x16e)]);if(!this[_0x4c533a(0x179)])return _0x3e39f0+'\x20['+_0x8a2a41+_0x4c533a(0x17f)+_0x48df36[_0x4c533a(0x17a)]+']\x20'+_0x48df36[_0x4c533a(0x176)];const _0x34a3e5=this['chalk'][_0x4c533a(0x16a)](_0x3e39f0),_0x449dff=this[_0x4c533a(0x17d)](_0x8a2a41,_0x48df36[_0x4c533a(0x16e)]),_0x32f1df=this[_0x4c533a(0x17c)]['blue']('['+_0x48df36[_0x4c533a(0x17a)]+']');return _0x34a3e5+'\x20'+_0x449dff+'\x20'+_0x32f1df+'\x20'+_0x48df36['message'];}[a196_0x2ba5af(0x17d)](_0x488132,_0x3a9a1e){const _0x1cc392=a196_0x2ba5af;switch(_0x3a9a1e){case LogLevel[_0x1cc392(0x168)]:return this[_0x1cc392(0x17c)][_0x1cc392(0x163)]('['+_0x488132+']');case LogLevel[_0x1cc392(0x16c)]:return this[_0x1cc392(0x17c)][_0x1cc392(0x175)]('['+_0x488132+']');case LogLevel[_0x1cc392(0x173)]:return this[_0x1cc392(0x17c)]['cyan']('['+_0x488132+']');case LogLevel[_0x1cc392(0x17b)]:return this['chalk']['yellow']('['+_0x488132+']');case LogLevel[_0x1cc392(0x164)]:return this[_0x1cc392(0x17c)]['red']('['+_0x488132+']');default:return'['+_0x488132+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a197_0x4f98(_0x2ec4d9,_0x53293f){_0x2ec4d9=_0x2ec4d9-0x15c;var _0x4b9f35=a197_0x4b9f();var _0x4f9852=_0x4b9f35[_0x2ec4d9];return _0x4f9852;}(function(_0x104390,_0x3449ff){var _0x5d1bb5=a197_0x4f98,_0x37a5bb=_0x104390();while(!![]){try{var _0x544671=parseInt(_0x5d1bb5(0x161))/0x1*(parseInt(_0x5d1bb5(0x15f))/0x2)+parseInt(_0x5d1bb5(0x160))/0x3*(parseInt(_0x5d1bb5(0x15e))/0x4)+parseInt(_0x5d1bb5(0x163))/0x5+parseInt(_0x5d1bb5(0x15c))/0x6+-parseInt(_0x5d1bb5(0x15d))/0x7+parseInt(_0x5d1bb5(0x165))/0x8+parseInt(_0x5d1bb5(0x162))/0x9*(-parseInt(_0x5d1bb5(0x164))/0xa);if(_0x544671===_0x3449ff)break;else _0x37a5bb['push'](_0x37a5bb['shift']());}catch(_0x33bee3){_0x37a5bb['push'](_0x37a5bb['shift']());}}}(a197_0x4b9f,0x7b0cf));export{DefaultLogFormatter}from'./default-formatter.js';function a197_0x4b9f(){var _0x543fb6=['2053536JqKboQ','1419460XGRFqb','1232EWfglr','4130XpOiIo','1002ExTjXf','366pObdRd','12183894MxUoBs','2228535EyMOwO','10PHkSIK','3311488qEpQBU'];a197_0x4b9f=function(){return _0x543fb6;};return a197_0x4b9f();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a198_0x585ee4=a198_0x2950;(function(_0x66ca91,_0x18c74f){const _0x147cc8=a198_0x2950,_0x10b745=_0x66ca91();while(!![]){try{const _0x492c5a=-parseInt(_0x147cc8(0x119))/0x1+-parseInt(_0x147cc8(0x11f))/0x2+parseInt(_0x147cc8(0x10e))/0x3+parseInt(_0x147cc8(0x11d))/0x4+parseInt(_0x147cc8(0x10f))/0x5*(-parseInt(_0x147cc8(0x114))/0x6)+-parseInt(_0x147cc8(0x10d))/0x7*(parseInt(_0x147cc8(0x111))/0x8)+parseInt(_0x147cc8(0x11b))/0x9*(parseInt(_0x147cc8(0x115))/0xa);if(_0x492c5a===_0x18c74f)break;else _0x10b745['push'](_0x10b745['shift']());}catch(_0x2a7700){_0x10b745['push'](_0x10b745['shift']());}}}(a198_0x4b82,0xdbee3));import{LogLevel as a198_0x7e941a}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';function a198_0x2950(_0x4e96ed,_0x2f70ea){_0x4e96ed=_0x4e96ed-0x10c;const _0x4b82ae=a198_0x4b82();let _0x2950ae=_0x4b82ae[_0x4e96ed];return _0x2950ae;}export class ConsoleHandler{['minLevel'];['useStderr'];[a198_0x585ee4(0x116)];constructor(_0x28040a={}){const _0x522375=a198_0x585ee4;this[_0x522375(0x11e)]=_0x28040a[_0x522375(0x11e)]??a198_0x7e941a[_0x522375(0x117)],this[_0x522375(0x10c)]=_0x28040a[_0x522375(0x10c)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x28040a[_0x522375(0x11c)]??!![]});}[a198_0x585ee4(0x110)](_0x3f9bde){const _0x5eb888=a198_0x585ee4;if(_0x3f9bde[_0x5eb888(0x118)]<this[_0x5eb888(0x11e)])return;const _0x281979=this[_0x5eb888(0x116)][_0x5eb888(0x11a)](_0x3f9bde);this[_0x5eb888(0x10c)]&&_0x3f9bde[_0x5eb888(0x118)]>=a198_0x7e941a['WARN']?console[_0x5eb888(0x112)](_0x281979):console[_0x5eb888(0x113)](_0x281979);}}function a198_0x4b82(){const _0x1814c8=['useStderr','203ZipTzy','1695603kZUghn','12065pcWISL','handle','74488iSYayP','error','log','4314tRvsOY','18226690hQlNvc','formatter','WARN','level','1748415dtbFEc','format','18LFaLLE','colors','5910500FXXnnG','minLevel','2067896qTdRKt'];a198_0x4b82=function(){return _0x1814c8;};return a198_0x4b82();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x3c4473=a199_0x24ae;(function(_0xde790c,_0x57f668){const _0x55992d=a199_0x24ae,_0x366472=_0xde790c();while(!![]){try{const _0x48d186=parseInt(_0x55992d(0x71))/0x1*(-parseInt(_0x55992d(0x91))/0x2)+parseInt(_0x55992d(0x7f))/0x3+parseInt(_0x55992d(0x84))/0x4+-parseInt(_0x55992d(0x8b))/0x5*(-parseInt(_0x55992d(0x72))/0x6)+-parseInt(_0x55992d(0x86))/0x7+-parseInt(_0x55992d(0x81))/0x8*(parseInt(_0x55992d(0x76))/0x9)+-parseInt(_0x55992d(0x75))/0xa*(-parseInt(_0x55992d(0x7c))/0xb);if(_0x48d186===_0x57f668)break;else _0x366472['push'](_0x366472['shift']());}catch(_0x7ffb24){_0x366472['push'](_0x366472['shift']());}}}(a199_0x3bb5,0x6936e));function a199_0x3bb5(){const _0x407ec3=['filter','36289SZhWOR','rotateOldLogs','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','1204404FLohIP','init','1770232OQATte','replace','toISOString','373732zscOcC','.log','1172822Jjdqmp','rotate','.gz','logStream','message','24835wSiWSA','Warning:\x20Error\x20writing\x20to\x20','\x5c$&','Warning:\x20Failed\x20to\x20compress\x20','logs','format','138QGZQmW','getLogPath','logDir','logPath','logFileName','tdx.log','test','948fVqdsf','408JxQrUs','mtime','includes','830fKSPKo','18gEikQw','split','logBaseName','end','error'];a199_0x3bb5=function(){return _0x407ec3;};return a199_0x3bb5();}import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';function a199_0x24ae(_0x263bd4,_0x6c5174){_0x263bd4=_0x263bd4-0x6c;const _0x3bb5a8=a199_0x3bb5();let _0x24aeed=_0x3bb5a8[_0x263bd4];return _0x24aeed;}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{['logPath'];[a199_0x3c4473(0x6c)];[a199_0x3c4473(0x6e)];[a199_0x3c4473(0x78)];[a199_0x3c4473(0x89)]=null;[a199_0x3c4473(0x87)];constructor(_0x2505c5={}){const _0x5a2c1a=a199_0x3c4473;this['logPath']=_0x2505c5['filePath']??join(getGlobalCacheDir(),_0x5a2c1a(0x8f),_0x5a2c1a(0x6f)),this[_0x5a2c1a(0x6c)]=dirname(this['logPath']),this[_0x5a2c1a(0x6e)]=basename(this[_0x5a2c1a(0x6d)]),this['logBaseName']=this[_0x5a2c1a(0x6e)][_0x5a2c1a(0x82)](/\.log$/,''),this[_0x5a2c1a(0x87)]=_0x2505c5[_0x5a2c1a(0x87)]??!![];}async[a199_0x3c4473(0x80)](){const _0x6349b9=a199_0x3c4473;try{await mkdir(this[_0x6349b9(0x6c)],{'recursive':!![]}),this[_0x6349b9(0x87)]&&await this[_0x6349b9(0x7d)](),this[_0x6349b9(0x89)]=createWriteStream(this[_0x6349b9(0x6d)],{'flags':'a'}),this[_0x6349b9(0x89)]['on'](_0x6349b9(0x7a),_0x3ce89b=>{const _0x1373e1=_0x6349b9;console[_0x1373e1(0x7a)](_0x1373e1(0x8c)+this[_0x1373e1(0x6e)]+':',_0x3ce89b[_0x1373e1(0x8a)]);});}catch(_0x38b5e1){console[_0x6349b9(0x7a)](_0x6349b9(0x7e),_0x38b5e1);}}['handle'](_0x4b24fa){const _0x486924=a199_0x3c4473;if(!this[_0x486924(0x89)])return;const _0x4a5442=Logger[_0x486924(0x90)](_0x4b24fa);this[_0x486924(0x89)]['write'](_0x4a5442+'\x0a');}async['close'](){return new Promise(_0x3bf57e=>{const _0xb66a7e=a199_0x24ae;this[_0xb66a7e(0x89)]?this['logStream'][_0xb66a7e(0x79)](()=>{const _0x4b464f=_0xb66a7e;this[_0x4b464f(0x89)]=null,_0x3bf57e();}):_0x3bf57e();});}[a199_0x3c4473(0x92)](){const _0x35723b=a199_0x3c4473;return this[_0x35723b(0x6d)];}async[a199_0x3c4473(0x7d)](){const _0x1cf7f3=a199_0x3c4473;try{const _0x44869b=await readdir(this[_0x1cf7f3(0x6c)]),_0x3421bd=new Date()['toISOString']()['split']('T')[0x0];if(_0x44869b[_0x1cf7f3(0x74)](this[_0x1cf7f3(0x6e)])){const _0x53f8c7=join(this[_0x1cf7f3(0x6c)],this[_0x1cf7f3(0x6e)]),_0x55be89=await stat(_0x53f8c7),_0x2f22e1=new Date(_0x55be89[_0x1cf7f3(0x73)])[_0x1cf7f3(0x83)]()[_0x1cf7f3(0x77)]('T')[0x0];if(_0x2f22e1<_0x3421bd){const _0x3ee401=join(this['logDir'],this[_0x1cf7f3(0x78)]+'-'+_0x2f22e1+_0x1cf7f3(0x85));await rename(_0x53f8c7,_0x3ee401);}}const _0x7e0777=await readdir(this[_0x1cf7f3(0x6c)]),_0x33496e=this[_0x1cf7f3(0x78)][_0x1cf7f3(0x82)](/[.*+?^${}()|[\]\\]/g,_0x1cf7f3(0x8d)),_0x29f338=new RegExp('^'+_0x33496e+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x5b0bf2=_0x7e0777[_0x1cf7f3(0x7b)](_0x14f922=>_0x29f338[_0x1cf7f3(0x70)](_0x14f922));for(const _0x6c2ee4 of _0x5b0bf2){const _0x3fb2f7=join(this[_0x1cf7f3(0x6c)],_0x6c2ee4),_0x5208c7=join(this['logDir'],_0x6c2ee4+_0x1cf7f3(0x88));try{await pipeline(createReadStream(_0x3fb2f7),createGzip(),createWriteStream(_0x5208c7)),await unlink(_0x3fb2f7);}catch(_0x21fea5){console[_0x1cf7f3(0x7a)](_0x1cf7f3(0x8e)+_0x6c2ee4+':',_0x21fea5);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a200_0x377b(_0x3a11a5,_0x2e0b93){_0x3a11a5=_0x3a11a5-0x1c3;var _0xa0326c=a200_0xa032();var _0x377b89=_0xa0326c[_0x3a11a5];return _0x377b89;}(function(_0x1069df,_0x4561c2){var _0x210b21=a200_0x377b,_0x314fd9=_0x1069df();while(!![]){try{var _0x1679d1=-parseInt(_0x210b21(0x1cc))/0x1+parseInt(_0x210b21(0x1ca))/0x2+-parseInt(_0x210b21(0x1c5))/0x3*(parseInt(_0x210b21(0x1c9))/0x4)+parseInt(_0x210b21(0x1c3))/0x5*(parseInt(_0x210b21(0x1c6))/0x6)+parseInt(_0x210b21(0x1cb))/0x7+-parseInt(_0x210b21(0x1c4))/0x8*(parseInt(_0x210b21(0x1c8))/0x9)+-parseInt(_0x210b21(0x1c7))/0xa;if(_0x1679d1===_0x4561c2)break;else _0x314fd9['push'](_0x314fd9['shift']());}catch(_0x252864){_0x314fd9['push'](_0x314fd9['shift']());}}}(a200_0xa032,0x99f21));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';function a200_0xa032(){var _0x3a3ab9=['6499409GNDTEY','202096yIXQxA','190415kamjoq','72XTEMfJ','3kUnbSi','60oLBOap','5114040lCwnvA','454914bHSlCR','1013748eVaKCA','1486190SgbwTm'];a200_0xa032=function(){return _0x3a3ab9;};return a200_0xa032();}export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1f3393,_0x543069){var _0x376f87=a201_0x119d,_0xa65cc5=_0x1f3393();while(!![]){try{var _0x1f1b8a=-parseInt(_0x376f87(0xbd))/0x1+-parseInt(_0x376f87(0xbc))/0x2+parseInt(_0x376f87(0xba))/0x3+parseInt(_0x376f87(0xb9))/0x4+parseInt(_0x376f87(0xbb))/0x5*(-parseInt(_0x376f87(0xb8))/0x6)+parseInt(_0x376f87(0xb7))/0x7+-parseInt(_0x376f87(0xbe))/0x8;if(_0x1f1b8a===_0x543069)break;else _0xa65cc5['push'](_0xa65cc5['shift']());}catch(_0x998210){_0xa65cc5['push'](_0xa65cc5['shift']());}}}(a201_0x1a51,0xae4f5));function a201_0x119d(_0x3527fe,_0x435542){_0x3527fe=_0x3527fe-0xb7;var _0x1a5156=a201_0x1a51();var _0x119d38=_0x1a5156[_0x3527fe];return _0x119d38;}function a201_0x1a51(){var _0x16895b=['4576956UFRIUv','2831913uQEAIi','1870tkbMVv','489684EMeGZE','60982aTfgyq','18004384xigUnC','9199099iskqcX','2118Uprczv'];a201_0x1a51=function(){return _0x16895b;};return a201_0x1a51();}export class NullHandler{['handle'](_0x31fc89){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x2dba23,_0x2a9235){var _0x5e4da4=a202_0x4686,_0x5df6db=_0x2dba23();while(!![]){try{var _0x5ac7c1=-parseInt(_0x5e4da4(0xa4))/0x1+-parseInt(_0x5e4da4(0xaa))/0x2+parseInt(_0x5e4da4(0xa3))/0x3*(-parseInt(_0x5e4da4(0xa5))/0x4)+parseInt(_0x5e4da4(0xa9))/0x5+parseInt(_0x5e4da4(0xa8))/0x6*(-parseInt(_0x5e4da4(0xa2))/0x7)+parseInt(_0x5e4da4(0xa7))/0x8+-parseInt(_0x5e4da4(0xa6))/0x9*(-parseInt(_0x5e4da4(0xab))/0xa);if(_0x5ac7c1===_0x2a9235)break;else _0x5df6db['push'](_0x5df6db['shift']());}catch(_0x146ecf){_0x5df6db['push'](_0x5df6db['shift']());}}}(a202_0x574b,0x9cbde));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a202_0x4686(_0x2e05d7,_0x152fc7){_0x2e05d7=_0x2e05d7-0xa2;var _0x574bba=a202_0x574b();var _0x46868c=_0x574bba[_0x2e05d7];return _0x46868c;}export{DefaultLogFormatter}from'./formatters/index.js';function a202_0x574b(){var _0x2d63ed=['339723DktMvT','4918312yxgnwJ','2338158DJGTzC','4749395wTnhfY','2173570nWJcKB','630UyBqOA','7HVQMsp','3jwrGpZ','978424JbCOrf','3383252PBeybD'];a202_0x574b=function(){return _0x2d63ed;};return a202_0x574b();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a203_0x7b6870=a203_0x1142;(function(_0x4d4494,_0x3570db){const _0x5da4fb=a203_0x1142,_0x14777c=_0x4d4494();while(!![]){try{const _0x6ffe85=-parseInt(_0x5da4fb(0xd5))/0x1+parseInt(_0x5da4fb(0xce))/0x2+-parseInt(_0x5da4fb(0xe3))/0x3*(-parseInt(_0x5da4fb(0xda))/0x4)+-parseInt(_0x5da4fb(0xe5))/0x5+parseInt(_0x5da4fb(0xf5))/0x6+-parseInt(_0x5da4fb(0xec))/0x7*(parseInt(_0x5da4fb(0xfa))/0x8)+-parseInt(_0x5da4fb(0xf2))/0x9*(-parseInt(_0x5da4fb(0xd8))/0xa);if(_0x6ffe85===_0x3570db)break;else _0x14777c['push'](_0x14777c['shift']());}catch(_0x4f53c4){_0x14777c['push'](_0x14777c['shift']());}}}(a203_0x10b6,0xbc784));function a203_0x10b6(){const _0x581833=['defaultLevel','1097269LQJcRX','formatter','dispatch','30610zinnJf','setLogLevel','76JpYfvu','push','error','split','clear','loggers','clearHandlers','join','get','116349gLwlmW','shutdown','1631280NaVDVI','timestamp','debug','name','initialized','function','info','3836EwIvup','getFormatter',']\x20[','handlers','WARN','log','3807FwMMwL','set','length','7338162iQdkSW','component','setDefaultLevel','close','shouldLog','17824FWrdkW','stringify','level','string','INFO','addHandler','format','trace','init','map','stack','levelOverrides','ERROR','323468DGLFyy','slice','toISOString','getEffectiveLevel','has','pendingRecords'];a203_0x10b6=function(){return _0x581833;};return a203_0x10b6();}import{LogLevel as a203_0x150c17,logLevelToString}from'./types.js';const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a203_0x150c17[a203_0x7b6870(0xfe)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function a203_0x1142(_0x4da31c,_0x5ea141){_0x4da31c=_0x4da31c-0xc7;const _0x10b660=a203_0x10b6();let _0x11421e=_0x10b660[_0x4da31c];return _0x11421e;}function safeStringify(_0xb1101){const _0x265a7c=a203_0x7b6870;if(typeof _0xb1101==='string')return _0xb1101;if(_0xb1101 instanceof Error)return _0xb1101['stack']||_0xb1101[_0x265a7c(0xe8)]+':\x20'+_0xb1101['message'];try{return JSON[_0x265a7c(0xfb)](_0xb1101,(_0x15ecc9,_0x2640ec)=>{const _0x585e2e=_0x265a7c;if(_0x2640ec instanceof Error)return{'name':_0x2640ec[_0x585e2e(0xe8)],'message':_0x2640ec['message'],'stack':_0x2640ec[_0x585e2e(0xcb)],'cause':_0x2640ec['cause']};return _0x2640ec;});}catch{return String(_0xb1101);}}export class Logger{['component'];constructor(_0x5be8be){const _0x5e3c8f=a203_0x7b6870;this[_0x5e3c8f(0xf6)]=_0x5be8be;}static['of'](_0x13348c){const _0x496186=a203_0x7b6870,_0x5b310f=typeof _0x13348c===_0x496186(0xfd)?_0x13348c:_0x13348c['name'];let _0x4e2aed=state[_0x496186(0xdf)][_0x496186(0xe2)](_0x5b310f);return!_0x4e2aed&&(_0x4e2aed=new Logger(_0x5b310f),state[_0x496186(0xdf)][_0x496186(0xf3)](_0x5b310f,_0x4e2aed)),_0x4e2aed;}static async['init'](_0x4ac66f={}){const _0x1a627e=a203_0x7b6870;state[_0x1a627e(0xd4)]=_0x4ac66f[_0x1a627e(0xd4)]??a203_0x150c17[_0x1a627e(0xfe)],state[_0x1a627e(0xef)]=_0x4ac66f[_0x1a627e(0xef)]??[],state[_0x1a627e(0xd6)]=_0x4ac66f['formatter']??null,state[_0x1a627e(0xcc)][_0x1a627e(0xde)]();if(_0x4ac66f[_0x1a627e(0xcc)])for(const [_0x479cf1,_0x4574d6]of Object['entries'](_0x4ac66f[_0x1a627e(0xcc)])){state['levelOverrides'][_0x1a627e(0xf3)](_0x479cf1,_0x4574d6);}for(const _0x37c325 of state[_0x1a627e(0xef)]){_0x37c325[_0x1a627e(0xc9)]&&await _0x37c325[_0x1a627e(0xc9)]();}state[_0x1a627e(0xe9)]=!![];for(const _0x1b335b of state[_0x1a627e(0xd3)]){Logger['dispatch'](_0x1b335b);}state[_0x1a627e(0xd3)]=[];}static[a203_0x7b6870(0xd9)](_0x5890dc,_0x504192){const _0x15c35c=a203_0x7b6870;state[_0x15c35c(0xcc)]['set'](_0x5890dc,_0x504192);}static[a203_0x7b6870(0xf7)](_0x32b298){const _0xa33af1=a203_0x7b6870;state[_0xa33af1(0xd4)]=_0x32b298;}static[a203_0x7b6870(0xff)](_0x11ee00){const _0x5bebc3=a203_0x7b6870;state[_0x5bebc3(0xef)][_0x5bebc3(0xdb)](_0x11ee00),state[_0x5bebc3(0xe9)]&&_0x11ee00[_0x5bebc3(0xc9)]&&_0x11ee00[_0x5bebc3(0xc9)]();}static[a203_0x7b6870(0xe0)](){const _0x556607=a203_0x7b6870;state[_0x556607(0xef)]=[];}static async[a203_0x7b6870(0xe4)](){const _0x32f0e5=a203_0x7b6870;for(const _0x2a369d of state[_0x32f0e5(0xef)]){_0x2a369d[_0x32f0e5(0xf8)]&&await _0x2a369d['close']();}state[_0x32f0e5(0xef)]=[],state['initialized']=![],state['loggers'][_0x32f0e5(0xde)](),state['pendingRecords']=[];}static['reset'](){const _0x4d7741=a203_0x7b6870;state[_0x4d7741(0xe9)]=![],state[_0x4d7741(0xd4)]=a203_0x150c17[_0x4d7741(0xfe)],state[_0x4d7741(0xcc)]['clear'](),state[_0x4d7741(0xef)]=[],state[_0x4d7741(0xd6)]=null,state[_0x4d7741(0xdf)][_0x4d7741(0xde)](),state[_0x4d7741(0xd3)]=[];}static['isInitialized'](){const _0x3676bb=a203_0x7b6870;return state[_0x3676bb(0xe9)];}static[a203_0x7b6870(0xd1)](_0x118f2d){const _0x371b04=a203_0x7b6870;if(state[_0x371b04(0xcc)][_0x371b04(0xd2)](_0x118f2d))return state['levelOverrides'][_0x371b04(0xe2)](_0x118f2d);const _0x1a828f=_0x118f2d[_0x371b04(0xdd)]('.');for(let _0x28138c=_0x1a828f['length']-0x1;_0x28138c>0x0;_0x28138c--){const _0x3dd2a8=_0x1a828f[_0x371b04(0xcf)](0x0,_0x28138c)['join']('.');if(state[_0x371b04(0xcc)]['has'](_0x3dd2a8))return state['levelOverrides'][_0x371b04(0xe2)](_0x3dd2a8);}return state[_0x371b04(0xd4)];}['shouldLog'](_0x805c94){const _0x52fa99=a203_0x7b6870,_0xd1466d=Logger[_0x52fa99(0xd1)](this[_0x52fa99(0xf6)]);return _0x805c94>=_0xd1466d;}static['dispatch'](_0x1d4904){const _0x560eef=a203_0x7b6870;for(const _0x76dfba of state[_0x560eef(0xef)]){_0x76dfba['handle'](_0x1d4904);}}[a203_0x7b6870(0xf1)](_0x4d546a,_0x4d301e){const _0x114d7a=a203_0x7b6870;if(!this[_0x114d7a(0xf9)](_0x4d546a))return;const _0x35bdd=_0x4d301e[_0x114d7a(0xca)](_0x5bd2e1=>typeof _0x5bd2e1===_0x114d7a(0xea)?_0x5bd2e1():_0x5bd2e1),_0x3ed5b0=_0x35bdd[_0x114d7a(0xca)](safeStringify)[_0x114d7a(0xe1)]('\x20'),_0xd8511c={'timestamp':new Date(),'level':_0x4d546a,'component':this['component'],'message':_0x3ed5b0};if(!state['initialized']){state[_0x114d7a(0xd3)][_0x114d7a(0xf4)]<MAX_PENDING_RECORDS&&state['pendingRecords'][_0x114d7a(0xdb)](_0xd8511c);return;}Logger[_0x114d7a(0xd7)](_0xd8511c);}[a203_0x7b6870(0xc8)](..._0x2f8fa0){const _0x587b50=a203_0x7b6870;this[_0x587b50(0xf1)](a203_0x150c17['TRACE'],_0x2f8fa0);}[a203_0x7b6870(0xe7)](..._0x45dd5e){const _0x5dc946=a203_0x7b6870;this[_0x5dc946(0xf1)](a203_0x150c17['DEBUG'],_0x45dd5e);}[a203_0x7b6870(0xeb)](..._0x2e752c){this['log'](a203_0x150c17['INFO'],_0x2e752c);}['warn'](..._0xf85dec){const _0x51dce5=a203_0x7b6870;this[_0x51dce5(0xf1)](a203_0x150c17[_0x51dce5(0xf0)],_0xf85dec);}[a203_0x7b6870(0xdc)](..._0x3ede40){const _0x290af6=a203_0x7b6870;this[_0x290af6(0xf1)](a203_0x150c17[_0x290af6(0xcd)],_0x3ede40);}static[a203_0x7b6870(0xed)](){const _0x18e299=a203_0x7b6870;return state[_0x18e299(0xd6)];}static[a203_0x7b6870(0xc7)](_0x3b5a47){const _0x5cffe7=a203_0x7b6870;if(state[_0x5cffe7(0xd6)])return state['formatter'][_0x5cffe7(0xc7)](_0x3b5a47);return _0x3b5a47[_0x5cffe7(0xe6)][_0x5cffe7(0xd0)]()+'\x20['+logLevelToString(_0x3b5a47[_0x5cffe7(0xfc)])+_0x5cffe7(0xee)+_0x3b5a47[_0x5cffe7(0xf6)]+']\x20'+_0x3b5a47['message'];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x541beb,_0x10de70){const _0x3bc542=a204_0x6c0a,_0x1945c4=_0x541beb();while(!![]){try{const _0x217b6a=parseInt(_0x3bc542(0x15f))/0x1*(parseInt(_0x3bc542(0x170))/0x2)+parseInt(_0x3bc542(0x171))/0x3*(parseInt(_0x3bc542(0x15e))/0x4)+parseInt(_0x3bc542(0x161))/0x5*(-parseInt(_0x3bc542(0x164))/0x6)+parseInt(_0x3bc542(0x16e))/0x7+-parseInt(_0x3bc542(0x165))/0x8*(parseInt(_0x3bc542(0x179))/0x9)+parseInt(_0x3bc542(0x163))/0xa+parseInt(_0x3bc542(0x176))/0xb;if(_0x217b6a===_0x10de70)break;else _0x1945c4['push'](_0x1945c4['shift']());}catch(_0x4aa50e){_0x1945c4['push'](_0x1945c4['shift']());}}}(a204_0x878a,0x7bc56));export var LogLevel;function a204_0x6c0a(_0x4ae288,_0x20a56f){_0x4ae288=_0x4ae288-0x15c;const _0x878adc=a204_0x878a();let _0x6c0ae6=_0x878adc[_0x4ae288];return _0x6c0ae6;}(function(_0x554930){const _0xdb1a5e=a204_0x6c0a;_0x554930[_0x554930[_0xdb1a5e(0x178)]=-0x2]=_0xdb1a5e(0x178),_0x554930[_0x554930[_0xdb1a5e(0x16d)]=-0x1]=_0xdb1a5e(0x16d),_0x554930[_0x554930['INFO']=0x0]='INFO',_0x554930[_0x554930['WARN']=0x1]=_0xdb1a5e(0x177),_0x554930[_0x554930[_0xdb1a5e(0x169)]=0x2]=_0xdb1a5e(0x169);}(LogLevel||(LogLevel={})));function a204_0x878a(){const _0x1c00a2=['getMonth','floor','getMinutes','DEBUG','1923663nAStyU','debug','46502dJzskV','3uvTsJz','abs','getMilliseconds','warn','getFullYear','5385413arccKa','WARN','TRACE','9vrTqrN','WARNING','getDate','2009612zPzUJw','19YiAzkx','trace','5svCpAO','info','3049680DPxyhA','4199922VikFDh','6452632fSeazd','padStart','toString','INFO','ERROR'];a204_0x878a=function(){return _0x1c00a2;};return a204_0x878a();}export function parseLogLevel(_0x165161){const _0x15721d=a204_0x6c0a;switch(_0x165161['toUpperCase']()){case _0x15721d(0x178):return LogLevel['TRACE'];case _0x15721d(0x16d):return LogLevel[_0x15721d(0x16d)];case _0x15721d(0x168):return LogLevel[_0x15721d(0x168)];case _0x15721d(0x177):case _0x15721d(0x15c):return LogLevel[_0x15721d(0x177)];case _0x15721d(0x169):return LogLevel[_0x15721d(0x169)];default:return LogLevel[_0x15721d(0x168)];}}export function logLevelToString(_0x132ecd){const _0x41e3d2=a204_0x6c0a;switch(_0x132ecd){case LogLevel[_0x41e3d2(0x178)]:return _0x41e3d2(0x160);case LogLevel[_0x41e3d2(0x16d)]:return _0x41e3d2(0x16f);case LogLevel[_0x41e3d2(0x168)]:return'info';case LogLevel[_0x41e3d2(0x177)]:return _0x41e3d2(0x174);case LogLevel[_0x41e3d2(0x169)]:return'error';default:return _0x41e3d2(0x162);}}export function formatTimestamp(_0x20ca7f){const _0x44d43e=a204_0x6c0a,_0x253348=_0x20ca7f[_0x44d43e(0x175)](),_0x3c19c7=(_0x20ca7f[_0x44d43e(0x16a)]()+0x1)[_0x44d43e(0x167)]()[_0x44d43e(0x166)](0x2,'0'),_0x59cc66=_0x20ca7f[_0x44d43e(0x15d)]()[_0x44d43e(0x167)]()['padStart'](0x2,'0'),_0x21f19a=_0x20ca7f['getHours']()[_0x44d43e(0x167)]()[_0x44d43e(0x166)](0x2,'0'),_0x671e56=_0x20ca7f[_0x44d43e(0x16c)]()['toString']()[_0x44d43e(0x166)](0x2,'0'),_0x579bf9=_0x20ca7f['getSeconds']()[_0x44d43e(0x167)]()['padStart'](0x2,'0'),_0x187c08=_0x20ca7f[_0x44d43e(0x173)]()['toString']()[_0x44d43e(0x166)](0x3,'0'),_0x18d355=-_0x20ca7f['getTimezoneOffset'](),_0x3eec29=Math[_0x44d43e(0x16b)](Math[_0x44d43e(0x172)](_0x18d355)/0x3c),_0x49a90e=Math['abs'](_0x18d355)%0x3c,_0x4dac1e=_0x18d355>=0x0?'+':'-',_0x1139bd=''+_0x4dac1e+_0x3eec29[_0x44d43e(0x167)]()[_0x44d43e(0x166)](0x2,'0')+_0x49a90e['toString']()[_0x44d43e(0x166)](0x2,'0');return _0x253348+'-'+_0x3c19c7+'-'+_0x59cc66+'\x20'+_0x21f19a+':'+_0x671e56+':'+_0x579bf9+'.'+_0x187c08+_0x1139bd;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1fa927,_0xcbf59d){const _0x29a6f8=a205_0x4bdf,_0x2500f6=_0x1fa927();while(!![]){try{const _0x17e3ab=-parseInt(_0x29a6f8(0x108))/0x1+parseInt(_0x29a6f8(0x102))/0x2+-parseInt(_0x29a6f8(0x106))/0x3+-parseInt(_0x29a6f8(0x104))/0x4*(-parseInt(_0x29a6f8(0xfe))/0x5)+parseInt(_0x29a6f8(0x10a))/0x6+parseInt(_0x29a6f8(0x100))/0x7*(-parseInt(_0x29a6f8(0x103))/0x8)+parseInt(_0x29a6f8(0x109))/0x9;if(_0x17e3ab===_0xcbf59d)break;else _0x2500f6['push'](_0x2500f6['shift']());}catch(_0x4cbb59){_0x2500f6['push'](_0x2500f6['shift']());}}}(a205_0x2cc4,0xbb30c));function a205_0x2cc4(){const _0x269b96=['isInteger','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','1075xQoZvr','Invalid\x20timeout\x20value:\x20','14RGxpBX','.\x20Must\x20be\x20a\x20positive\x20integer.','1539864jTUpNu','1226624MJBvfK','164fpDXsg','number','145821LLByDa','Invalid\x20limit\x20value:\x20','1086546LJyMsw','4411764ilDdlT','5637588xhyDuE','.\x20Must\x20be\x20a\x20positive\x20number.'];a205_0x2cc4=function(){return _0x269b96;};return a205_0x2cc4();}export function validateLimitOption(_0x38925a){const _0x51fd3c=a205_0x4bdf;if(!Number[_0x51fd3c(0xfb)](_0x38925a))return{'isValid':![],'error':_0x51fd3c(0x107)+_0x38925a+_0x51fd3c(0xfc)};if(_0x38925a<=0x0)return{'isValid':![],'error':_0x51fd3c(0x107)+_0x38925a+_0x51fd3c(0x101)};return{'isValid':!![],'value':_0x38925a};}function a205_0x4bdf(_0x1ae018,_0x56272d){_0x1ae018=_0x1ae018-0xfa;const _0x2cc4a2=a205_0x2cc4();let _0x4bdf25=_0x2cc4a2[_0x1ae018];return _0x4bdf25;}export function validateTimeoutOption(_0x9cf0b,_0x37cb8a=0x1e){const _0x17e1c5=a205_0x4bdf;if(_0x9cf0b===undefined)return{'isValid':!![],'value':_0x37cb8a};const _0x7b9d62=typeof _0x9cf0b===_0x17e1c5(0x105)?_0x9cf0b:parseFloat(_0x9cf0b);if(isNaN(_0x7b9d62))return{'isValid':![],'error':_0x17e1c5(0xff)+_0x9cf0b+_0x17e1c5(0xfd)};if(_0x7b9d62<=0x0)return{'isValid':![],'error':_0x17e1c5(0xff)+_0x7b9d62+_0x17e1c5(0xfa)};return{'isValid':!![],'value':_0x7b9d62};}
|