@treasuredata/tdx 2026.3.28 → 2026.3.30
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.js +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.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- 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.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +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.js +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.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- 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/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.js +1 -1
- 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.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.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 a190_0x3c26(){const _0x1f8cca=['2642761kgzmNJ','38455MSfXaC','length','236rxRmBO','1289sVCXeT','19064HSszqg','slice','2129121NWGYBo','844BJFskc','975102PALiFk','156ngLdSj','10BcOXdu','1015ZdCGWe','4465338KTBeIw','map'];a190_0x3c26=function(){return _0x1f8cca;};return a190_0x3c26();}function a190_0x2634(_0x30d7df,_0x678f9a){_0x30d7df=_0x30d7df-0xb4;const _0x3c2687=a190_0x3c26();let _0x26345a=_0x3c2687[_0x30d7df];return _0x26345a;}(function(_0xc33af,_0x582e0f){const _0x364806=a190_0x2634,_0x1676ae=_0xc33af();while(!![]){try{const _0x230c51=parseInt(_0x364806(0xbd))/0x1*(-parseInt(_0x364806(0xc1))/0x2)+-parseInt(_0x364806(0xb7))/0x3+parseInt(_0x364806(0xbc))/0x4*(parseInt(_0x364806(0xba))/0x5)+-parseInt(_0x364806(0xc2))/0x6+-parseInt(_0x364806(0xb6))/0x7*(parseInt(_0x364806(0xbe))/0x8)+-parseInt(_0x364806(0xc0))/0x9*(parseInt(_0x364806(0xb5))/0xa)+-parseInt(_0x364806(0xb9))/0xb*(-parseInt(_0x364806(0xb4))/0xc);if(_0x230c51===_0x582e0f)break;else _0x1676ae['push'](_0x1676ae['shift']());}catch(_0x5f59d5){_0x1676ae['push'](_0x1676ae['shift']());}}}(a190_0x3c26,0xc3507));export async function batchAsync(_0x2b7913,_0x2e3432,_0x5e3312=0xa){const _0xea3b87=a190_0x2634,_0x4eb361=[];for(let _0x5b687a=0x0;_0x5b687a<_0x2b7913[_0xea3b87(0xbb)];_0x5b687a+=_0x5e3312){const _0x34e214=_0x2b7913[_0xea3b87(0xbf)](_0x5b687a,_0x5b687a+_0x5e3312),_0x12e553=await Promise['all'](_0x34e214[_0xea3b87(0xb8)](_0x2e3432));_0x4eb361['push'](..._0x12e553);}return _0x4eb361;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a191_0xb5593a=a191_0xd62f;(function(_0x436791,_0xb776dd){const _0x3e9135=a191_0xd62f,_0x302e9b=_0x436791();while(!![]){try{const _0x309978=-parseInt(_0x3e9135(0x1ca))/0x1*(parseInt(_0x3e9135(0x1be))/0x2)+parseInt(_0x3e9135(0x1c3))/0x3*(parseInt(_0x3e9135(0x1b5))/0x4)+-parseInt(_0x3e9135(0x1bf))/0x5*(-parseInt(_0x3e9135(0x1ae))/0x6)+-parseInt(_0x3e9135(0x1c8))/0x7+-parseInt(_0x3e9135(0x1bb))/0x8*(parseInt(_0x3e9135(0x1b3))/0x9)+-parseInt(_0x3e9135(0x1c1))/0xa+parseInt(_0x3e9135(0x1ba))/0xb;if(_0x309978===_0xb776dd)break;else _0x302e9b['push'](_0x302e9b['shift']());}catch(_0x23c343){_0x302e9b['push'](_0x302e9b['shift']());}}}(a191_0x1da0,0x586b6));import*as a191_0x2d1512 from'chalk';function a191_0xd62f(_0x50c981,_0x5eab9f){_0x50c981=_0x50c981-0x1ad;const _0x1da089=a191_0x1da0();let _0xd62fd6=_0x1da089[_0x50c981];return _0xd62fd6;}const Chalk=a191_0x2d1512[a191_0xb5593a(0x1af)];export function shouldUseColor(_0x39b7ab={}){const _0x496410=a191_0xb5593a;if(_0x39b7ab['noColor']===!![])return![];if(_0x39b7ab[_0x496410(0x1bd)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x496410(0x1c2)][_0x496410(0x1b1)]??![];}export function getChalk(_0x57dd5d={}){if(shouldUseColor(_0x57dd5d))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x296684,_0x2c57ea={}){const _0x19167a=a191_0xb5593a;return getChalk(_0x2c57ea)[_0x19167a(0x1c9)](_0x296684);}function a191_0x1da0(){const _0x1c9626=['object','15401606DglDgv','336OnnBiA','repeat','color','60370cUXGek','2270lwxIpn','join','3681080fVbDgy','stdout','467496CgPdwm','stringify','entries','length','cyan','643566hEeLKp','dim','22QREEjO','string','5274NqMRLx','Chalk','blue','isTTY','yellow','100449HaNcLX','boolean','4adOmyU','isArray','map','null'];a191_0x1da0=function(){return _0x1c9626;};return a191_0x1da0();}export function colorHeader(_0x523512,_0x1ec6fb={}){const _0x15e94a=a191_0xb5593a;return getChalk(_0x1ec6fb)[_0x15e94a(0x1c7)](_0x523512);}export function colorType(_0x3139cf,_0xe64547={}){return getChalk(_0xe64547)['dim'](_0x3139cf);}export function colorJSONKey(_0x12165f,_0x42b944={}){const _0x55d882=a191_0xb5593a;return getChalk(_0x42b944)[_0x55d882(0x1b0)](_0x12165f);}export function colorJSONString(_0x4dbb40,_0x4a896f={}){return getChalk(_0x4a896f)['green'](_0x4dbb40);}export function colorJSONNumber(_0x41d57c,_0x9aa06c={}){const _0x49642a=a191_0xb5593a;return getChalk(_0x9aa06c)[_0x49642a(0x1c7)](_0x41d57c);}export function colorJSONBoolean(_0x17b716,_0x2c35d5={}){const _0x233379=a191_0xb5593a;return getChalk(_0x2c35d5)[_0x233379(0x1b2)](_0x17b716);}export function colorJSONNull(_0x5b6013,_0x2fba6e={}){return getChalk(_0x2fba6e)['dim'](_0x5b6013);}export function colorizeJSONCompact(_0x205294,_0x1d49d5={}){const _0x1d71e7=a191_0xb5593a;if(!shouldUseColor(_0x1d49d5))return JSON[_0x1d71e7(0x1c4)](_0x205294);if(_0x205294===null)return colorJSONNull(_0x1d71e7(0x1b8),_0x1d49d5);if(typeof _0x205294===_0x1d71e7(0x1b4))return colorJSONBoolean(String(_0x205294),_0x1d49d5);if(typeof _0x205294==='number')return colorJSONNumber(String(_0x205294),_0x1d49d5);if(typeof _0x205294===_0x1d71e7(0x1ad))return colorJSONString(JSON[_0x1d71e7(0x1c4)](_0x205294),_0x1d49d5);if(Array[_0x1d71e7(0x1b6)](_0x205294)){if(_0x205294[_0x1d71e7(0x1c6)]===0x0)return'[]';const _0x45ee2b=_0x205294[_0x1d71e7(0x1b7)](_0x1e5e7a=>colorizeJSONCompact(_0x1e5e7a,_0x1d49d5));return'['+_0x45ee2b[_0x1d71e7(0x1c0)](',')+']';}if(typeof _0x205294===_0x1d71e7(0x1b9)){const _0x568289=Object[_0x1d71e7(0x1c5)](_0x205294);if(_0x568289[_0x1d71e7(0x1c6)]===0x0)return'{}';const _0x1f3bd9=_0x568289[_0x1d71e7(0x1b7)](([_0x19a526,_0x63e7ec])=>{const _0x3e9abf=_0x1d71e7,_0x3cf041=colorJSONKey(JSON[_0x3e9abf(0x1c4)](_0x19a526),_0x1d49d5),_0x1d0a69=colorizeJSONCompact(_0x63e7ec,_0x1d49d5);return _0x3cf041+':'+_0x1d0a69;});return'{'+_0x1f3bd9[_0x1d71e7(0x1c0)](',')+'}';}return String(_0x205294);}export function colorizeJSON(_0x428ad6,_0x5eed42={},_0x7f2a27=0x0){const _0x81af14=a191_0xb5593a;if(!shouldUseColor(_0x5eed42))return JSON[_0x81af14(0x1c4)](_0x428ad6,null,0x2);const _0x11fd9c='\x20'[_0x81af14(0x1bc)](_0x7f2a27),_0x73b776=_0x7f2a27+0x2;if(_0x428ad6===null)return colorJSONNull('null',_0x5eed42);if(typeof _0x428ad6===_0x81af14(0x1b4))return colorJSONBoolean(String(_0x428ad6),_0x5eed42);if(typeof _0x428ad6==='number')return colorJSONNumber(String(_0x428ad6),_0x5eed42);if(typeof _0x428ad6===_0x81af14(0x1ad))return colorJSONString(JSON[_0x81af14(0x1c4)](_0x428ad6),_0x5eed42);if(Array[_0x81af14(0x1b6)](_0x428ad6)){if(_0x428ad6[_0x81af14(0x1c6)]===0x0)return'[]';const _0x7ac706=_0x428ad6[_0x81af14(0x1b7)](_0x18d205=>{const _0x562dc7=_0x81af14,_0x1dce52=colorizeJSON(_0x18d205,_0x5eed42,_0x73b776);return''+'\x20'[_0x562dc7(0x1bc)](_0x73b776)+_0x1dce52;});return'[\x0a'+_0x7ac706[_0x81af14(0x1c0)](',\x0a')+('\x0a'+_0x11fd9c+']');}if(typeof _0x428ad6===_0x81af14(0x1b9)){const _0x220570=Object[_0x81af14(0x1c5)](_0x428ad6);if(_0x220570[_0x81af14(0x1c6)]===0x0)return'{}';const _0x1e588a=_0x220570[_0x81af14(0x1b7)](([_0x397203,_0x4177fa])=>{const _0x3053a9=colorJSONKey(JSON['stringify'](_0x397203),_0x5eed42),_0x1a2aa0=colorizeJSON(_0x4177fa,_0x5eed42,_0x73b776);return''+'\x20'['repeat'](_0x73b776)+_0x3053a9+':\x20'+_0x1a2aa0;});return'{\x0a'+_0x1e588a['join'](',\x0a')+('\x0a'+_0x11fd9c+'}');}return String(_0x428ad6);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a192_0xc55f(_0xb2ab05,_0x182180){_0xb2ab05=_0xb2ab05-0x1de;const _0x16ab05=a192_0x16ab();let _0xc55fb=_0x16ab05[_0xb2ab05];return _0xc55fb;}(function(_0x49ee6c,_0x51dfa1){const _0x42d246=a192_0xc55f,_0x3f9f51=_0x49ee6c();while(!![]){try{const _0x453151=-parseInt(_0x42d246(0x1e9))/0x1+-parseInt(_0x42d246(0x1e7))/0x2+parseInt(_0x42d246(0x1e3))/0x3*(parseInt(_0x42d246(0x1ea))/0x4)+-parseInt(_0x42d246(0x1f6))/0x5*(parseInt(_0x42d246(0x1e5))/0x6)+-parseInt(_0x42d246(0x1f2))/0x7+parseInt(_0x42d246(0x1de))/0x8+parseInt(_0x42d246(0x1e6))/0x9*(parseInt(_0x42d246(0x1f1))/0xa);if(_0x453151===_0x51dfa1)break;else _0x3f9f51['push'](_0x3f9f51['shift']());}catch(_0x7663c7){_0x3f9f51['push'](_0x3f9f51['shift']());}}}(a192_0x16ab,0x4fdb8));function a192_0x16ab(){const _0x29fa17=['unshift','619900XJnoVk','add','has','padStart','content','new','push','map','cyan','unchanged','4744232OpLSMc','some','split','\x20\x20...','length','3SzROax','repeat','6iHgbAg','9nIdHyr','956056ihGIbz','old','515993EtiFfd','2095288wSFjxI','size','\x20+\x20','join','fill','min','removed','9023710UfNsze','4018875yVxKIf','type','max'];a192_0x16ab=function(){return _0x29fa17;};return a192_0x16ab();}import a192_0x1f5531 from'chalk';export function generateDiff(_0x5ca1ea,_0xfe3179){const _0x17811e=a192_0xc55f,_0xae9091=_0x5ca1ea[_0x17811e(0x1e0)]('\x0a'),_0x458c54=_0xfe3179[_0x17811e(0x1e0)]('\x0a'),_0x338ce6=[],_0x1738a5=computeLCS(_0xae9091,_0x458c54);let _0x5724d3=0x0,_0x174cd6=0x0,_0x3e19fc=0x0;while(_0x5724d3<_0xae9091[_0x17811e(0x1e2)]||_0x174cd6<_0x458c54[_0x17811e(0x1e2)]){if(_0x3e19fc<_0x1738a5[_0x17811e(0x1e2)]&&_0x5724d3<_0xae9091['length']&&_0xae9091[_0x5724d3]===_0x1738a5[_0x3e19fc])_0x174cd6<_0x458c54[_0x17811e(0x1e2)]&&_0x458c54[_0x174cd6]===_0x1738a5[_0x3e19fc]?(_0x338ce6['push']({'type':_0x17811e(0x1ff),'content':_0xae9091[_0x5724d3]}),_0x5724d3++,_0x174cd6++,_0x3e19fc++):(_0x338ce6['push']({'type':'added','content':_0x458c54[_0x174cd6]}),_0x174cd6++);else{if(_0x3e19fc<_0x1738a5[_0x17811e(0x1e2)]&&_0x174cd6<_0x458c54['length']&&_0x458c54[_0x174cd6]===_0x1738a5[_0x3e19fc])_0x338ce6[_0x17811e(0x1fc)]({'type':_0x17811e(0x1f0),'content':_0xae9091[_0x5724d3]}),_0x5724d3++;else{if(_0x5724d3<_0xae9091[_0x17811e(0x1e2)]&&(_0x3e19fc>=_0x1738a5[_0x17811e(0x1e2)]||_0xae9091[_0x5724d3]!==_0x1738a5[_0x3e19fc]))_0x338ce6[_0x17811e(0x1fc)]({'type':'removed','content':_0xae9091[_0x5724d3]}),_0x5724d3++;else _0x174cd6<_0x458c54[_0x17811e(0x1e2)]&&(_0x338ce6['push']({'type':'added','content':_0x458c54[_0x174cd6]}),_0x174cd6++);}}}return _0x338ce6;}function computeLCS(_0x7b23b8,_0x3dc1ed){const _0xb4f1c7=a192_0xc55f,_0x4106ac=_0x7b23b8[_0xb4f1c7(0x1e2)],_0x51c16f=_0x3dc1ed[_0xb4f1c7(0x1e2)],_0x1b4070=Array(_0x4106ac+0x1)[_0xb4f1c7(0x1ee)](null)[_0xb4f1c7(0x1fd)](()=>Array(_0x51c16f+0x1)['fill'](0x0));for(let _0x25e9f0=0x1;_0x25e9f0<=_0x4106ac;_0x25e9f0++){for(let _0x57871a=0x1;_0x57871a<=_0x51c16f;_0x57871a++){_0x7b23b8[_0x25e9f0-0x1]===_0x3dc1ed[_0x57871a-0x1]?_0x1b4070[_0x25e9f0][_0x57871a]=_0x1b4070[_0x25e9f0-0x1][_0x57871a-0x1]+0x1:_0x1b4070[_0x25e9f0][_0x57871a]=Math[_0xb4f1c7(0x1f4)](_0x1b4070[_0x25e9f0-0x1][_0x57871a],_0x1b4070[_0x25e9f0][_0x57871a-0x1]);}}const _0x41c8f1=[];let _0x206fc9=_0x4106ac,_0x310ebd=_0x51c16f;while(_0x206fc9>0x0&&_0x310ebd>0x0){if(_0x7b23b8[_0x206fc9-0x1]===_0x3dc1ed[_0x310ebd-0x1])_0x41c8f1[_0xb4f1c7(0x1f5)](_0x7b23b8[_0x206fc9-0x1]),_0x206fc9--,_0x310ebd--;else _0x1b4070[_0x206fc9-0x1][_0x310ebd]>_0x1b4070[_0x206fc9][_0x310ebd-0x1]?_0x206fc9--:_0x310ebd--;}return _0x41c8f1;}export function formatDiffWithColors(_0xa5b19e,_0x398544=0x3){const _0x25cb7b=a192_0xc55f,_0x559b92=new Set();_0xa5b19e['forEach']((_0x5ec5cc,_0x99548f)=>{const _0x3ad00f=a192_0xc55f;_0x5ec5cc[_0x3ad00f(0x1f3)]!=='unchanged'&&_0x559b92[_0x3ad00f(0x1f7)](_0x99548f);});if(_0x559b92[_0x25cb7b(0x1eb)]===0x0)return'';const _0x469357=new Set();for(const _0x357b66 of _0x559b92){for(let _0x18244a=Math[_0x25cb7b(0x1f4)](0x0,_0x357b66-_0x398544);_0x18244a<=Math[_0x25cb7b(0x1ef)](_0xa5b19e[_0x25cb7b(0x1e2)]-0x1,_0x357b66+_0x398544);_0x18244a++){_0x469357['add'](_0x18244a);}}const _0x495360=[];let _0x143d5c=-0x1;const _0x558023=_0xa5b19e['length'],_0x5125b2=Math[_0x25cb7b(0x1f4)](0x3,String(_0x558023)[_0x25cb7b(0x1e2)]),_0x3ed9ce=[];let _0x1a5c02=0x0,_0xc36e9=0x0;for(const _0x44d90f of _0xa5b19e){if(_0x44d90f[_0x25cb7b(0x1f3)]===_0x25cb7b(0x1f0))_0x1a5c02++,_0x3ed9ce[_0x25cb7b(0x1fc)]({'old':_0x1a5c02,'new':0x0});else _0x44d90f[_0x25cb7b(0x1f3)]==='added'?(_0xc36e9++,_0x3ed9ce['push']({'old':0x0,'new':_0xc36e9})):(_0x1a5c02++,_0xc36e9++,_0x3ed9ce[_0x25cb7b(0x1fc)]({'old':_0x1a5c02,'new':_0xc36e9}));}for(let _0x95a14b=0x0;_0x95a14b<_0xa5b19e[_0x25cb7b(0x1e2)];_0x95a14b++){if(!_0x469357[_0x25cb7b(0x1f8)](_0x95a14b))continue;_0x143d5c!==-0x1&&_0x95a14b>_0x143d5c+0x1&&_0x495360[_0x25cb7b(0x1fc)](a192_0x1f5531[_0x25cb7b(0x1fe)](_0x25cb7b(0x1e1)));_0x143d5c=_0x95a14b;const _0x465f94=_0xa5b19e[_0x95a14b],_0x2c6d29=_0x3ed9ce[_0x95a14b],_0x25be08=_0x2c6d29[_0x25cb7b(0x1e8)]>0x0?String(_0x2c6d29[_0x25cb7b(0x1e8)])['padStart'](_0x5125b2):'\x20'[_0x25cb7b(0x1e4)](_0x5125b2),_0x104b2a=_0x2c6d29['new']>0x0?String(_0x2c6d29[_0x25cb7b(0x1fb)])[_0x25cb7b(0x1f9)](_0x5125b2):'\x20'[_0x25cb7b(0x1e4)](_0x5125b2);switch(_0x465f94[_0x25cb7b(0x1f3)]){case'removed':_0x495360['push'](a192_0x1f5531['red'](_0x25be08+'\x20'+_0x104b2a+'\x20-\x20'+_0x465f94[_0x25cb7b(0x1fa)]));break;case'added':_0x495360[_0x25cb7b(0x1fc)](a192_0x1f5531['green'](_0x25be08+'\x20'+_0x104b2a+_0x25cb7b(0x1ec)+_0x465f94[_0x25cb7b(0x1fa)]));break;default:_0x495360[_0x25cb7b(0x1fc)](a192_0x1f5531['dim'](_0x25be08+'\x20'+_0x104b2a+'\x20\x20\x20'+_0x465f94[_0x25cb7b(0x1fa)]));break;}}return _0x495360[_0x25cb7b(0x1ed)]('\x0a');}export function hasChanges(_0x2163f9){const _0x2c678c=a192_0xc55f;return _0x2163f9[_0x2c678c(0x1df)](_0x475454=>_0x475454[_0x2c678c(0x1f3)]!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41cc8c,_0x34c4ed){const _0x1223ed=a193_0x4a6a,_0x32d6df=_0x41cc8c();while(!![]){try{const _0x494c65=-parseInt(_0x1223ed(0xa5))/0x1*(parseInt(_0x1223ed(0x9d))/0x2)+-parseInt(_0x1223ed(0x93))/0x3*(parseInt(_0x1223ed(0x9e))/0x4)+-parseInt(_0x1223ed(0x99))/0x5*(-parseInt(_0x1223ed(0x95))/0x6)+-parseInt(_0x1223ed(0x98))/0x7*(parseInt(_0x1223ed(0x8d))/0x8)+parseInt(_0x1223ed(0x8e))/0x9*(parseInt(_0x1223ed(0xa4))/0xa)+parseInt(_0x1223ed(0x92))/0xb*(-parseInt(_0x1223ed(0x8f))/0xc)+parseInt(_0x1223ed(0x8c))/0xd;if(_0x494c65===_0x34c4ed)break;else _0x32d6df['push'](_0x32d6df['shift']());}catch(_0x356f48){_0x32d6df['push'](_0x32d6df['shift']());}}}(a193_0x5c70,0x1f5a7));import*as a193_0x2cf083 from'node:fs';import*as a193_0x5c08bd from'node:path';function a193_0x4a6a(_0x372483,_0x39dac9){_0x372483=_0x372483-0x8c;const _0x5c7029=a193_0x5c70();let _0x4a6a31=_0x5c7029[_0x372483];return _0x4a6a31;}export function setSecureFilePermissions(_0x4a7429){const _0x173ae1=a193_0x4a6a;try{a193_0x2cf083[_0x173ae1(0x97)](_0x4a7429,0x180);}catch{console['warn'](_0x173ae1(0x96)+_0x4a7429);}}export function setSecureDirectoryPermissions(_0x1c8e30){const _0x50b055=a193_0x4a6a;try{a193_0x2cf083[_0x50b055(0x97)](_0x1c8e30,0x1c0);}catch{console[_0x50b055(0x9b)](_0x50b055(0x96)+_0x1c8e30);}}export function createSecureDirectory(_0x606ee3){const _0x3a6c9e=a193_0x4a6a;!a193_0x2cf083[_0x3a6c9e(0x94)](_0x606ee3)&&(a193_0x2cf083[_0x3a6c9e(0x9f)](_0x606ee3,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x606ee3));}export function validateSecureFilePermissions(_0x2f190f){const _0x431446=a193_0x4a6a;try{const _0x2343c9=a193_0x2cf083['statSync'](_0x2f190f),_0x35a8a8=_0x2343c9[_0x431446(0xa2)]&0x1ff,_0x8e53ea=(_0x35a8a8&0x3f)!==0x0;if(_0x8e53ea)return console['warn'](_0x431446(0x9c)+_0x2f190f+_0x431446(0xa3)+_0x35a8a8[_0x431446(0xa1)](0x8)+_0x431446(0x91)+_0x431446(0xa0)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xc416bc,_0x592772){const _0x48a102=a193_0x4a6a,_0x477b24=a193_0x5c08bd[_0x48a102(0x90)](_0xc416bc);createSecureDirectory(_0x477b24),a193_0x2cf083[_0x48a102(0x9a)](_0xc416bc,_0x592772,{'mode':0x180}),setSecureFilePermissions(_0xc416bc);}function a193_0x5c70(){const _0x1cfca1=['1045mpVXKe','2034IZGNwY','existsSync','209784miIWij','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','182UMBTSQ','10JpJkQv','writeFileSync','warn','Warning:\x20','2lRfOcR','1000xMlTeE','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','toString','mode','\x20has\x20insecure\x20permissions\x20(','638100oLbyLG','141454DDQONR','5805436iKXfkU','52144KVDuzj','27kSzCch','12516LLLhBs','dirname',').\x20'];a193_0x5c70=function(){return _0x1cfca1;};return a193_0x5c70();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xc15ed0,_0x3d5577){const _0x4bdb55=a194_0xf9b4,_0x3cf692=_0xc15ed0();while(!![]){try{const _0x30c55b=-parseInt(_0x4bdb55(0x1c8))/0x1+parseInt(_0x4bdb55(0x1d0))/0x2+-parseInt(_0x4bdb55(0x1cf))/0x3*(parseInt(_0x4bdb55(0x1d3))/0x4)+parseInt(_0x4bdb55(0x1cb))/0x5*(-parseInt(_0x4bdb55(0x1d2))/0x6)+-parseInt(_0x4bdb55(0x1d6))/0x7+parseInt(_0x4bdb55(0x1c9))/0x8+-parseInt(_0x4bdb55(0x1d1))/0x9*(-parseInt(_0x4bdb55(0x1c7))/0xa);if(_0x30c55b===_0x3d5577)break;else _0x3cf692['push'](_0x3cf692['shift']());}catch(_0x5b3e88){_0x3cf692['push'](_0x3cf692['shift']());}}}(a194_0x2b7f,0xea0d7));function a194_0xf9b4(_0x365831,_0x2e6746){_0x365831=_0x365831-0x1c7;const _0x2b7f6c=a194_0x2b7f();let _0xf9b4e3=_0x2b7f6c[_0x365831];return _0xf9b4e3;}function a194_0x2b7f(){const _0x26a302=['99vmGxBj','554182nHbiBP','441mlEKPp','912exHaWk','101072ujmZhA','Permission\x20denied\x20reading\x20file\x20\x27','message','9179366KGgkyl','EACCES','\x27\x20not\x20found','code','NOT_FOUND','658480hTWMUT','616108IEcWhS','6841456queArx','ENOENT','21015IQnByf','Error\x20reading\x20file\x20\x27','File\x20\x27','\x27:\x20'];a194_0x2b7f=function(){return _0x26a302;};return a194_0x2b7f();}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x4d0e41){const _0x5c0cbb=a194_0xf9b4;try{return readFileSync(_0x4d0e41,'utf-8');}catch(_0x1dcb56){const _0xe83e29=_0x1dcb56[_0x5c0cbb(0x1d9)];if(_0xe83e29===_0x5c0cbb(0x1ca))throw new SDKError(ErrorCode[_0x5c0cbb(0x1da)],_0x5c0cbb(0x1cd)+_0x4d0e41+_0x5c0cbb(0x1d8),_0x1dcb56);else{if(_0xe83e29===_0x5c0cbb(0x1d7))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x5c0cbb(0x1d4)+_0x4d0e41+'\x27',_0x1dcb56);else throw new SDKError(ErrorCode['INTERNAL'],_0x5c0cbb(0x1cc)+_0x4d0e41+_0x5c0cbb(0x1ce)+_0x1dcb56[_0x5c0cbb(0x1d5)],_0x1dcb56);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x528fae,_0x202c88){const _0x2c065b=a195_0x449c,_0x4825e4=_0x528fae();while(!![]){try{const _0x100a2d=parseInt(_0x2c065b(0x1fe))/0x1*(parseInt(_0x2c065b(0x1ee))/0x2)+parseInt(_0x2c065b(0x20b))/0x3*(-parseInt(_0x2c065b(0x1f2))/0x4)+-parseInt(_0x2c065b(0x1ff))/0x5+parseInt(_0x2c065b(0x203))/0x6+-parseInt(_0x2c065b(0x200))/0x7+parseInt(_0x2c065b(0x209))/0x8+-parseInt(_0x2c065b(0x1fa))/0x9;if(_0x100a2d===_0x202c88)break;else _0x4825e4['push'](_0x4825e4['shift']());}catch(_0x4aa407){_0x4825e4['push'](_0x4825e4['shift']());}}}(a195_0x56f5,0x677f8));import*as a195_0x1598be from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();function a195_0x449c(_0x1b4ad5,_0x4ef470){_0x1b4ad5=_0x1b4ad5-0x1ee;const _0x56f53e=a195_0x56f5();let _0x449cb2=_0x56f53e[_0x1b4ad5];return _0x449cb2;}export function fetchGitHubReleases(_0x444302,_0x555ff9,_0x1d5f45){const _0x4089ab=a195_0x449c,_0x58461a=_0x444302+'/'+_0x555ff9,_0x312eca=cache[_0x4089ab(0x20a)](_0x58461a);if(_0x312eca&&Date[_0x4089ab(0x1fc)]()-_0x312eca[_0x4089ab(0x204)]<CACHE_TTL_MS)return Promise[_0x4089ab(0x205)](_0x312eca['releases']);return new Promise((_0x57084f,_0x3e8d4f)=>{const _0x2741a3=_0x4089ab,_0x3d2a74={'hostname':_0x2741a3(0x1fb),'path':_0x2741a3(0x1fd)+_0x444302+'/'+_0x555ff9+_0x2741a3(0x208),'headers':{'User-Agent':_0x1d5f45,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x193955=a195_0x1598be[_0x2741a3(0x20a)](_0x3d2a74,_0x4496aa=>{const _0x397e65=_0x2741a3;let _0xf5710a='';_0x4496aa['on'](_0x397e65(0x1f9),_0x29e00a=>{const _0xd3eaf2=_0x397e65;_0xf5710a+=_0x29e00a[_0xd3eaf2(0x202)]();}),_0x4496aa['on'](_0x397e65(0x1ef),()=>{const _0x13e769=_0x397e65;if(_0x4496aa[_0x13e769(0x20c)]!==0xc8){_0x3e8d4f(new Error(_0x13e769(0x1f5)+_0x4496aa['statusCode']+':\x20'+_0xf5710a[_0x13e769(0x1f3)](0x0,0xc8)));return;}try{const _0x2bf782=JSON[_0x13e769(0x1f7)](_0xf5710a);cache[_0x13e769(0x1f1)](_0x58461a,{'releases':_0x2bf782,'fetchedAt':Date[_0x13e769(0x1fc)]()}),_0x57084f(_0x2bf782);}catch(_0x398c54){_0x3e8d4f(_0x398c54);}});});_0x193955['on'](_0x2741a3(0x1f4),()=>{const _0x3b76bd=_0x2741a3;_0x193955[_0x3b76bd(0x1f8)](),_0x3e8d4f(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x193955['on'](_0x2741a3(0x206),_0x3e8d4f);});}export async function resolveReleaseTag(_0xa6ee36,_0x10cc9e,_0x10ae60,_0x4b7f66){const _0x44d989=a195_0x449c,_0x508b32=await fetchGitHubReleases(_0x10cc9e,_0x10ae60,_0x4b7f66);if(_0x508b32['length']===0x0)return null;if(_0xa6ee36===_0x44d989(0x1f6))return _0x508b32[0x0][_0x44d989(0x1f0)];const _0x4acf38=_0x508b32[_0x44d989(0x207)](_0x590ab0=>!_0x590ab0[_0x44d989(0x201)]);return _0x4acf38?_0x4acf38['tag_name']:null;}function a195_0x56f5(){const _0x1ebbf0=['/repos/','806471HyyvdT','693900TGdrkD','2794652kfKnMS','prerelease','toString','3753390NwVrSD','fetchedAt','resolve','error','find','/releases?per_page=20','4357176yqRvyg','get','1324059oojjXq','statusCode','2yVHTIq','end','tag_name','set','4McFozG','slice','timeout','GitHub\x20API\x20returned\x20','next','parse','destroy','data','5160474PwNgvT','api.github.com','now'];a195_0x56f5=function(){return _0x1ebbf0;};return a195_0x56f5();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xa935ce,_0x28a340){const _0x56a93c=a196_0x4ed7,_0x50ada3=_0xa935ce();while(!![]){try{const _0x194fcc=-parseInt(_0x56a93c(0x1a3))/0x1+parseInt(_0x56a93c(0x1b3))/0x2*(parseInt(_0x56a93c(0x1a1))/0x3)+parseInt(_0x56a93c(0x1a2))/0x4+-parseInt(_0x56a93c(0x1ad))/0x5*(parseInt(_0x56a93c(0x1a0))/0x6)+parseInt(_0x56a93c(0x1ab))/0x7*(parseInt(_0x56a93c(0x19f))/0x8)+-parseInt(_0x56a93c(0x1a5))/0x9+-parseInt(_0x56a93c(0x1ac))/0xa*(-parseInt(_0x56a93c(0x1b2))/0xb);if(_0x194fcc===_0x28a340)break;else _0x50ada3['push'](_0x50ada3['shift']());}catch(_0x11bdbe){_0x50ada3['push'](_0x50ada3['shift']());}}}(a196_0x4a7f,0x5e0a4));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x39c632=a196_0x4ed7;return process.env.TDX_CACHE_DIR||join(homedir(),_0x39c632(0x1aa),_0x39c632(0x1a9));}const registry=new Map();export function registerGlobalCacheKey(_0x501f89,_0x302b1e){const _0x209832=a196_0x4ed7,_0x30a6b1=registry[_0x209832(0x1af)](_0x501f89);if(_0x30a6b1&&_0x30a6b1!==_0x302b1e)throw new Error('Global\x20cache\x20key\x20\x22'+_0x501f89+'\x22\x20already\x20registered\x20by\x20\x22'+_0x30a6b1+_0x209832(0x1a6)+_0x302b1e+'\x22');registry[_0x209832(0x1b0)](_0x501f89,_0x302b1e);}export function getGlobalCachePath(_0x137827){return join(getGlobalCacheDir(),_0x137827);}function ensureGlobalCacheDir(){const _0x463c88=getGlobalCacheDir();!existsSync(_0x463c88)&&mkdirSync(_0x463c88,{'recursive':!![]});}function readCacheJson(_0x1b4c2f){const _0x2a5088=a196_0x4ed7,_0xa00913=getGlobalCachePath(_0x1b4c2f);if(!existsSync(_0xa00913))return undefined;try{const _0xac45f7=readFileSync(_0xa00913,_0x2a5088(0x1b1));return JSON[_0x2a5088(0x1a7)](_0xac45f7);}catch{return undefined;}}function writeCacheJson(_0x128051,_0x2b4144){const _0x120793=a196_0x4ed7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x128051),JSON[_0x120793(0x1a8)](_0x2b4144,null,0x2),_0x120793(0x1b1));}function readCacheText(_0x3fc8c8){const _0x3f9256=a196_0x4ed7,_0x594b07=getGlobalCachePath(_0x3fc8c8);if(!existsSync(_0x594b07))return undefined;try{return readFileSync(_0x594b07,_0x3f9256(0x1b1));}catch{return undefined;}}function writeCacheText(_0x281e12,_0x22000b){const _0x8dad66=a196_0x4ed7;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x281e12),_0x22000b,_0x8dad66(0x1b1));}function a196_0x4a7f(){const _0x52dc88=['6628518IrXCiH','\x22,\x20cannot\x20register\x20for\x20\x22','parse','stringify','tdx','.cache','7LZrHVQ','410tUNYIY','43205GJbYJa','clear','get','set','utf-8','122749MYIMuu','602114zizGGP','trim','5762296yKmvWz','192VaVWdh','6SGmURG','1477740hzMKNh','751153ewzQOs','{profile}'];a196_0x4a7f=function(){return _0x52dc88;};return a196_0x4a7f();}function clearCache(_0x56636a){const _0x1f8a4f=getGlobalCachePath(_0x56636a);if(existsSync(_0x1f8a4f))try{unlinkSync(_0x1f8a4f);}catch{}}function cacheExists(_0x3b37d2){return existsSync(getGlobalCachePath(_0x3b37d2));}export function createGlobalCache(_0x55fe59,_0xcc1547){return registerGlobalCacheKey(_0x55fe59,_0xcc1547),{'read':()=>readCacheJson(_0x55fe59),'write':_0x324834=>writeCacheJson(_0x55fe59,_0x324834),'clear':()=>clearCache(_0x55fe59),'exists':()=>cacheExists(_0x55fe59),'path':()=>getGlobalCachePath(_0x55fe59)};}export function createGlobalTextCache(_0x2cd147,_0x1a49bb){const _0x20a4ac=a196_0x4ed7;return registerGlobalCacheKey(_0x2cd147,_0x1a49bb),{'read':()=>readCacheText(_0x2cd147)?.[_0x20a4ac(0x19e)]()||undefined,'write':_0xbfc30e=>writeCacheText(_0x2cd147,_0xbfc30e),'clear':()=>clearCache(_0x2cd147),'exists':()=>cacheExists(_0x2cd147),'path':()=>getGlobalCachePath(_0x2cd147)};}export function createProfileCache(_0x4382d5,_0x2d69b3){const _0x4cbf18=_0x4c08b2=>{const _0x366a33=a196_0x4ed7,_0x27701d=_0x4c08b2||'default';return _0x4382d5['replace'](_0x366a33(0x1a4),_0x27701d);};return{'read':_0x2adf74=>{const _0x487e88=_0x4cbf18(_0x2adf74);return registerGlobalCacheKey(_0x487e88,_0x2d69b3),readCacheJson(_0x487e88);},'write':(_0x51fe6f,_0x19fc48)=>{const _0x511300=_0x4cbf18(_0x51fe6f);registerGlobalCacheKey(_0x511300,_0x2d69b3),writeCacheJson(_0x511300,_0x19fc48);},'clear':_0x536ff0=>{const _0x17196e=_0x4cbf18(_0x536ff0);clearCache(_0x17196e);},'exists':_0x4304d2=>{const _0x5f57b3=_0x4cbf18(_0x4304d2);return cacheExists(_0x5f57b3);},'path':_0x4248cf=>{const _0x228370=_0x4cbf18(_0x4248cf);return getGlobalCachePath(_0x228370);}};}export function createOptionalProfileCache(_0x2844bb,_0x1acb3b,_0x52dba1={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x52dba1,_0x544933=_0x4112b7=>{return _0x4112b7?''+_0x2844bb+profileSeparator+_0x4112b7+suffix:''+_0x2844bb+suffix;};return{'read':_0xf33bc4=>{const _0x32acf3=_0x544933(_0xf33bc4);return registerGlobalCacheKey(_0x32acf3,_0x1acb3b),readCacheJson(_0x32acf3);},'write':(_0x5b08c4,_0xc78d70)=>{const _0x3d6e97=_0x544933(_0xc78d70);registerGlobalCacheKey(_0x3d6e97,_0x1acb3b),writeCacheJson(_0x3d6e97,_0x5b08c4);},'clear':_0x40cd50=>{const _0x16c5c7=_0x544933(_0x40cd50);clearCache(_0x16c5c7);},'exists':_0x41e278=>{const _0x1b2a4d=_0x544933(_0x41e278);return cacheExists(_0x1b2a4d);},'path':_0x1746ce=>{const _0x43e600=_0x544933(_0x1746ce);return getGlobalCachePath(_0x43e600);}};}function a196_0x4ed7(_0x38a0f9,_0x3c9d25){_0x38a0f9=_0x38a0f9-0x19e;const _0x4a7ff3=a196_0x4a7f();let _0x4ed78c=_0x4a7ff3[_0x38a0f9];return _0x4ed78c;}export function clearGlobalRegistry(){const _0x386c49=a196_0x4ed7;registry[_0x386c49(0x1ae)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4bfc71,_0x6b7edd){const _0x557c69=a197_0x9fda,_0x393aa9=_0x4bfc71();while(!![]){try{const _0x40f689=parseInt(_0x557c69(0x17c))/0x1*(parseInt(_0x557c69(0x188))/0x2)+-parseInt(_0x557c69(0x177))/0x3+parseInt(_0x557c69(0x174))/0x4+-parseInt(_0x557c69(0x18a))/0x5+-parseInt(_0x557c69(0x184))/0x6*(-parseInt(_0x557c69(0x17b))/0x7)+parseInt(_0x557c69(0x189))/0x8*(parseInt(_0x557c69(0x17a))/0x9)+-parseInt(_0x557c69(0x180))/0xa*(-parseInt(_0x557c69(0x176))/0xb);if(_0x40f689===_0x6b7edd)break;else _0x393aa9['push'](_0x393aa9['shift']());}catch(_0x538296){_0x393aa9['push'](_0x393aa9['shift']());}}}(a197_0x2a02,0x1cdd4));function a197_0x2a02(){const _0x377071=['parse','\x27:\x20','108656edRvFV','code','22efexvN','423627AckSYD','Permission\x20denied\x20reading\x20file:\x20','EACCES','15174jnMhOv','7xYPqCo','73IfSvLT','Invalid\x20JSON\x20in\x20file\x20\x27','Failed\x20to\x20load\x20JSON:\x20','Invalid\x20JSON\x20string:\x20','512570NfVbEo','message','utf-8','File\x20not\x20found:\x20','713904AjeHYx','NOT_FOUND','INVALID_ARGUMENT','INTERNAL','52TWfRDR','888KnqKXF','891345RWUNBE','ENOENT'];a197_0x2a02=function(){return _0x377071;};return a197_0x2a02();}import{readFile}from'fs/promises';function a197_0x9fda(_0x542eb6,_0x2515b2){_0x542eb6=_0x542eb6-0x171;const _0x2a0288=a197_0x2a02();let _0x9fda9e=_0x2a0288[_0x542eb6];return _0x9fda9e;}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x17873f,_0x4cfc03){const _0x39b652=a197_0x9fda;try{if(_0x4cfc03){const _0x46a020=await readFile(_0x17873f,_0x39b652(0x182));try{return JSON['parse'](_0x46a020);}catch(_0x2ce426){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x39b652(0x17d)+_0x17873f+_0x39b652(0x173)+(_0x2ce426 instanceof Error?_0x2ce426[_0x39b652(0x181)]:String(_0x2ce426)));}}else try{return JSON[_0x39b652(0x172)](_0x17873f);}catch(_0x120f83){throw new SDKError(ErrorCode[_0x39b652(0x186)],_0x39b652(0x17f)+(_0x120f83 instanceof Error?_0x120f83[_0x39b652(0x181)]:String(_0x120f83)));}}catch(_0x3d1acd){if(_0x3d1acd instanceof SDKError)throw _0x3d1acd;if(_0x3d1acd instanceof Error&&_0x39b652(0x175)in _0x3d1acd){const _0x447a7f=_0x3d1acd;if(_0x447a7f['code']===_0x39b652(0x171))throw new SDKError(ErrorCode[_0x39b652(0x185)],_0x39b652(0x183)+_0x17873f);else{if(_0x447a7f[_0x39b652(0x175)]===_0x39b652(0x179))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x39b652(0x178)+_0x17873f);}}throw new SDKError(ErrorCode[_0x39b652(0x187)],_0x39b652(0x17e)+(_0x3d1acd instanceof Error?_0x3d1acd[_0x39b652(0x181)]:String(_0x3d1acd)));}}export async function loadJSONFromOptions(_0x19bbcd,_0x499105){const _0x343f33=a197_0x9fda;if(_0x19bbcd&&_0x499105)throw new SDKError(ErrorCode[_0x343f33(0x186)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x19bbcd)return await loadJSON(_0x19bbcd,![]);if(_0x499105)return await loadJSON(_0x499105,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a198_0x299f7f=a198_0x16df;function a198_0x4784(){const _0x5d9148=['parse','2019936CwjNLT','\x22,\x20cannot\x20register\x20for\x20\x22','trim','324eXlVCE','5853890aqNbiS','11806tfPQXo','12258554sVWOYB','251ghXICk','21927IKrhud','\x22\x20already\x20registered\x20by\x20\x22','Cache\x20key\x20\x22','2032655qsPZaj','.cache/tdx','15280533IjWJQc','clear','6eSFTll','utf-8'];a198_0x4784=function(){return _0x5d9148;};return a198_0x4784();}(function(_0x38b713,_0x22c54a){const _0x460203=a198_0x16df,_0x328ec2=_0x38b713();while(!![]){try{const _0x53e955=parseInt(_0x460203(0x1d4))/0x1*(-parseInt(_0x460203(0x1d2))/0x2)+parseInt(_0x460203(0x1d5))/0x3*(-parseInt(_0x460203(0x1d0))/0x4)+parseInt(_0x460203(0x1d8))/0x5*(parseInt(_0x460203(0x1dc))/0x6)+parseInt(_0x460203(0x1d3))/0x7+-parseInt(_0x460203(0x1cd))/0x8+parseInt(_0x460203(0x1da))/0x9+-parseInt(_0x460203(0x1d1))/0xa;if(_0x53e955===_0x22c54a)break;else _0x328ec2['push'](_0x328ec2['shift']());}catch(_0x3cba30){_0x328ec2['push'](_0x328ec2['shift']());}}}(a198_0x4784,0xe679b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a198_0x299f7f(0x1d9),registry=new Map();export function registerCacheKey(_0x11def0,_0x3eb562){const _0x538425=a198_0x299f7f,_0x40406b=registry['get'](_0x11def0);if(_0x40406b&&_0x40406b!==_0x3eb562)throw new Error(_0x538425(0x1d7)+_0x11def0+_0x538425(0x1d6)+_0x40406b+_0x538425(0x1ce)+_0x3eb562+'\x22');registry['set'](_0x11def0,_0x3eb562);}function a198_0x16df(_0x937f24,_0x2a735f){_0x937f24=_0x937f24-0x1cd;const _0x4784ce=a198_0x4784();let _0x16df79=_0x4784ce[_0x937f24];return _0x16df79;}export function getCacheDir(){const _0x4330fe=process['cwd'](),_0x15dbae=_0x4330fe===parse(_0x4330fe)['root']?homedir():_0x4330fe;return join(_0x15dbae,LOCAL_CACHE_DIR);}export function getCachePath(_0xc97632){return join(getCacheDir(),_0xc97632);}function ensureCacheDir(){const _0x14b72d=getCacheDir();!existsSync(_0x14b72d)&&mkdirSync(_0x14b72d,{'recursive':!![]});}function readCacheJson(_0x515b60){const _0x2529e3=a198_0x299f7f,_0x5a7019=getCachePath(_0x515b60);if(!existsSync(_0x5a7019))return undefined;try{const _0x4e49e1=readFileSync(_0x5a7019,'utf-8');return JSON[_0x2529e3(0x1de)](_0x4e49e1);}catch{return undefined;}}function writeCacheJson(_0x39a5a9,_0x2549e8){const _0xa0e95d=a198_0x299f7f;ensureCacheDir(),writeFileSync(getCachePath(_0x39a5a9),JSON['stringify'](_0x2549e8,null,0x2),_0xa0e95d(0x1dd));}function readCacheText(_0x2ffb92){const _0x34e4ca=a198_0x299f7f,_0x5f509e=getCachePath(_0x2ffb92);if(!existsSync(_0x5f509e))return undefined;try{return readFileSync(_0x5f509e,_0x34e4ca(0x1dd));}catch{return undefined;}}function writeCacheText(_0x5ef8b7,_0x5c8e8c){const _0x46e8a1=a198_0x299f7f;ensureCacheDir(),writeFileSync(getCachePath(_0x5ef8b7),_0x5c8e8c,_0x46e8a1(0x1dd));}function clearCache(_0x42df3c){const _0x329bc9=getCachePath(_0x42df3c);if(existsSync(_0x329bc9))try{unlinkSync(_0x329bc9);}catch{}}function cacheExists(_0x4435ce){return existsSync(getCachePath(_0x4435ce));}export function createCache(_0x289d1c,_0x3cc1af){return registerCacheKey(_0x289d1c,_0x3cc1af),{'read':()=>readCacheJson(_0x289d1c),'write':_0x7518a6=>writeCacheJson(_0x289d1c,_0x7518a6),'clear':()=>clearCache(_0x289d1c),'exists':()=>cacheExists(_0x289d1c),'path':()=>getCachePath(_0x289d1c)};}export function createTextCache(_0x31ef77,_0x27b5c5){const _0x240092=a198_0x299f7f;return registerCacheKey(_0x31ef77,_0x27b5c5),{'read':()=>readCacheText(_0x31ef77)?.[_0x240092(0x1cf)]()||undefined,'write':_0x3738ee=>writeCacheText(_0x31ef77,_0x3738ee),'clear':()=>clearCache(_0x31ef77),'exists':()=>cacheExists(_0x31ef77),'path':()=>getCachePath(_0x31ef77)};}export function clearRegistry(){const _0x32e30b=a198_0x299f7f;registry[_0x32e30b(0x1db)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x1597ba=a199_0x2cd9;(function(_0x4768c2,_0x44af22){const _0x2002b0=a199_0x2cd9,_0x3d9f9f=_0x4768c2();while(!![]){try{const _0x1f8327=parseInt(_0x2002b0(0x1fb))/0x1+parseInt(_0x2002b0(0x1e6))/0x2*(-parseInt(_0x2002b0(0x1ea))/0x3)+-parseInt(_0x2002b0(0x1f7))/0x4+parseInt(_0x2002b0(0x1ef))/0x5+parseInt(_0x2002b0(0x1e9))/0x6+parseInt(_0x2002b0(0x1ff))/0x7+-parseInt(_0x2002b0(0x1ec))/0x8*(parseInt(_0x2002b0(0x1ee))/0x9);if(_0x1f8327===_0x44af22)break;else _0x3d9f9f['push'](_0x3d9f9f['shift']());}catch(_0x4ed324){_0x3d9f9f['push'](_0x3d9f9f['shift']());}}}(a199_0x4f1c,0xad87c));function a199_0x4f1c(){const _0x20c1cf=['default','3441036aPLLbn','DEBUG','timestamp','cyan','349406aqRXxa','colors','gray','component','3538885YPBzrY','TRACE','colorLevel','566122ipsoNN','red','dim','4903212tvBOnS','3rvGsGo','level','16XbOIeQ','WARN','4665492sHaZXE','6093565YktYHe','yellow','ERROR','Chalk','chalk','format','INFO'];a199_0x4f1c=function(){return _0x20c1cf;};return a199_0x4f1c();}import a199_0x43b4eb from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a199_0x43b4eb,ChalkClass=chalkModule[a199_0x1597ba(0x1f2)]||chalkModule[a199_0x1597ba(0x1f6)]?.[a199_0x1597ba(0x1f2)];function a199_0x2cd9(_0xd1830,_0x3f4e9d){_0xd1830=_0xd1830-0x1e6;const _0x4f1c49=a199_0x4f1c();let _0x2cd9de=_0x4f1c49[_0xd1830];return _0x2cd9de;}export class DefaultLogFormatter{[a199_0x1597ba(0x1fc)];[a199_0x1597ba(0x1f3)];constructor(_0x126c33={}){const _0x562fd8=a199_0x1597ba;this['colors']=_0x126c33[_0x562fd8(0x1fc)]??![],this[_0x562fd8(0x1f3)]=_0x126c33[_0x562fd8(0x1fc)]&&ChalkClass?new ChalkClass({'level':0x3}):a199_0x43b4eb;}[a199_0x1597ba(0x1f4)](_0x21b952){const _0x4116a4=a199_0x1597ba,_0x230d0c=formatTimestamp(_0x21b952[_0x4116a4(0x1f9)]),_0x2408a5=logLevelToString(_0x21b952[_0x4116a4(0x1eb)]);if(!this[_0x4116a4(0x1fc)])return _0x230d0c+'\x20['+_0x2408a5+']\x20['+_0x21b952[_0x4116a4(0x1fe)]+']\x20'+_0x21b952['message'];const _0x7fdc9c=this[_0x4116a4(0x1f3)][_0x4116a4(0x1e8)](_0x230d0c),_0x358dc6=this[_0x4116a4(0x201)](_0x2408a5,_0x21b952[_0x4116a4(0x1eb)]),_0x1fdac0=this[_0x4116a4(0x1f3)]['blue']('['+_0x21b952[_0x4116a4(0x1fe)]+']');return _0x7fdc9c+'\x20'+_0x358dc6+'\x20'+_0x1fdac0+'\x20'+_0x21b952['message'];}[a199_0x1597ba(0x201)](_0x489d81,_0x27bb44){const _0x2afb8c=a199_0x1597ba;switch(_0x27bb44){case LogLevel[_0x2afb8c(0x200)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1fd)]('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1f8)]:return this[_0x2afb8c(0x1f3)]['green']('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1f5)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1fa)]('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1ed)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1f0)]('['+_0x489d81+']');case LogLevel[_0x2afb8c(0x1f1)]:return this[_0x2afb8c(0x1f3)][_0x2afb8c(0x1e7)]('['+_0x489d81+']');default:return'['+_0x489d81+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5635d1,_0x249de3){var _0x1e37f5=a200_0x49aa,_0x617082=_0x5635d1();while(!![]){try{var _0x5305d4=parseInt(_0x1e37f5(0x156))/0x1+parseInt(_0x1e37f5(0x152))/0x2+-parseInt(_0x1e37f5(0x155))/0x3+parseInt(_0x1e37f5(0x154))/0x4+parseInt(_0x1e37f5(0x151))/0x5*(parseInt(_0x1e37f5(0x150))/0x6)+-parseInt(_0x1e37f5(0x14e))/0x7*(parseInt(_0x1e37f5(0x153))/0x8)+parseInt(_0x1e37f5(0x14f))/0x9;if(_0x5305d4===_0x249de3)break;else _0x617082['push'](_0x617082['shift']());}catch(_0x1a20ed){_0x617082['push'](_0x617082['shift']());}}}(a200_0x3697,0x71b74));function a200_0x49aa(_0x5e1a90,_0x2fc031){_0x5e1a90=_0x5e1a90-0x14e;var _0x369776=a200_0x3697();var _0x49aa79=_0x369776[_0x5e1a90];return _0x49aa79;}export{DefaultLogFormatter}from'./default-formatter.js';function a200_0x3697(){var _0x3ec44c=['2172812XzWpaF','2569353nlZjFg','545957MYPTic','14uNSfCF','5128416DQbsPg','276RbYMYf','6505UyrqFH','458562UwFzxH','2503520MgURbz'];a200_0x3697=function(){return _0x3ec44c;};return a200_0x3697();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a201_0xed33(){const _0x50f1fa=['266YPutIu','format','useStderr','handle','528520HoVahr','208989EqAXqk','68909jfclMp','80095aEyaFI','formatter','colors','2ODUExb','level','76470ezqmYr','minLevel','2196843RAhvlJ','510luXrQf','468dnKRmz','112184KTmPOZ','error'];a201_0xed33=function(){return _0x50f1fa;};return a201_0xed33();}const a201_0x1c1fc3=a201_0x39ce;(function(_0x24c02c,_0x504ac6){const _0x195e4d=a201_0x39ce,_0x1bb882=_0x24c02c();while(!![]){try{const _0x512f98=parseInt(_0x195e4d(0x14c))/0x1*(parseInt(_0x195e4d(0x150))/0x2)+parseInt(_0x195e4d(0x154))/0x3+-parseInt(_0x195e4d(0x14a))/0x4+-parseInt(_0x195e4d(0x14d))/0x5+parseInt(_0x195e4d(0x152))/0x6*(parseInt(_0x195e4d(0x159))/0x7)+parseInt(_0x195e4d(0x157))/0x8*(parseInt(_0x195e4d(0x156))/0x9)+parseInt(_0x195e4d(0x155))/0xa*(-parseInt(_0x195e4d(0x14b))/0xb);if(_0x512f98===_0x504ac6)break;else _0x1bb882['push'](_0x1bb882['shift']());}catch(_0x118e79){_0x1bb882['push'](_0x1bb882['shift']());}}}(a201_0xed33,0xdb23e));import{LogLevel as a201_0x106d4b}from'../types.js';function a201_0x39ce(_0xdb54d8,_0x367a0e){_0xdb54d8=_0xdb54d8-0x147;const _0xed3367=a201_0xed33();let _0x39ce45=_0xed3367[_0xdb54d8];return _0x39ce45;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{[a201_0x1c1fc3(0x153)];[a201_0x1c1fc3(0x148)];[a201_0x1c1fc3(0x14e)];constructor(_0x380d10={}){const _0x25b133=a201_0x1c1fc3;this[_0x25b133(0x153)]=_0x380d10[_0x25b133(0x153)]??a201_0x106d4b['WARN'],this['useStderr']=_0x380d10[_0x25b133(0x148)]??!![],this[_0x25b133(0x14e)]=new DefaultLogFormatter({'colors':_0x380d10[_0x25b133(0x14f)]??!![]});}[a201_0x1c1fc3(0x149)](_0x1ccd93){const _0xa37ffc=a201_0x1c1fc3;if(_0x1ccd93[_0xa37ffc(0x151)]<this[_0xa37ffc(0x153)])return;const _0xaf239d=this[_0xa37ffc(0x14e)][_0xa37ffc(0x147)](_0x1ccd93);this[_0xa37ffc(0x148)]&&_0x1ccd93['level']>=a201_0x106d4b['WARN']?console[_0xa37ffc(0x158)](_0xaf239d):console['log'](_0xaf239d);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a202_0x1eded4=a202_0x67c1;function a202_0x67c1(_0x3d01e4,_0x5164ce){_0x3d01e4=_0x3d01e4-0x1c4;const _0x25b860=a202_0x25b8();let _0x67c15b=_0x25b860[_0x3d01e4];return _0x67c15b;}(function(_0xf6fc14,_0x587fce){const _0x55993a=a202_0x67c1,_0xd3386e=_0xf6fc14();while(!![]){try{const _0x912202=parseInt(_0x55993a(0x1cd))/0x1+parseInt(_0x55993a(0x1c6))/0x2*(parseInt(_0x55993a(0x1d5))/0x3)+-parseInt(_0x55993a(0x1d2))/0x4+-parseInt(_0x55993a(0x1df))/0x5*(parseInt(_0x55993a(0x1e8))/0x6)+parseInt(_0x55993a(0x1db))/0x7*(parseInt(_0x55993a(0x1e6))/0x8)+parseInt(_0x55993a(0x1e5))/0x9*(parseInt(_0x55993a(0x1d0))/0xa)+-parseInt(_0x55993a(0x1cf))/0xb;if(_0x912202===_0x587fce)break;else _0xd3386e['push'](_0xd3386e['shift']());}catch(_0x2b7992){_0xd3386e['push'](_0xd3386e['shift']());}}}(a202_0x25b8,0x9c745));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 a202_0x25b8(){const _0x5a86c9=['5530393DcIKbA','1640JGfPqp','.gz','4560388jhRQDb','handle','split','3IuFkgO','\x5c$&','logFileName','toISOString','test','tdx.log','133MUpJFl','logStream','error','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','903635aHnRrS','logPath','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','getLogPath','rotateOldLogs','Warning:\x20Error\x20writing\x20to\x20','46179rrRiiZ','29224CaCkXR','filePath','6zhTEBB','logBaseName','close','filter','1749934MWGSWJ','end','message','mtime','logDir','rotate','includes','678566aAhWyW','write'];a202_0x25b8=function(){return _0x5a86c9;};return a202_0x25b8();}import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a202_0x1eded4(0x1e0)];[a202_0x1eded4(0x1ca)];['logFileName'];[a202_0x1eded4(0x1e9)];[a202_0x1eded4(0x1dc)]=null;['rotate'];constructor(_0x1251e4={}){const _0x16dc57=a202_0x1eded4;this[_0x16dc57(0x1e0)]=_0x1251e4[_0x16dc57(0x1e7)]??join(getGlobalCacheDir(),'logs',_0x16dc57(0x1da)),this[_0x16dc57(0x1ca)]=dirname(this[_0x16dc57(0x1e0)]),this[_0x16dc57(0x1d7)]=basename(this[_0x16dc57(0x1e0)]),this[_0x16dc57(0x1e9)]=this[_0x16dc57(0x1d7)]['replace'](/\.log$/,''),this[_0x16dc57(0x1cb)]=_0x1251e4['rotate']??!![];}async['init'](){const _0x4f0e65=a202_0x1eded4;try{await mkdir(this[_0x4f0e65(0x1ca)],{'recursive':!![]}),this[_0x4f0e65(0x1cb)]&&await this[_0x4f0e65(0x1e3)](),this['logStream']=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x4f0e65(0x1dc)]['on'](_0x4f0e65(0x1dd),_0x4ef4a9=>{const _0x1b3d36=_0x4f0e65;console['error'](_0x1b3d36(0x1e4)+this['logFileName']+':',_0x4ef4a9[_0x1b3d36(0x1c8)]);});}catch(_0x51f887){console[_0x4f0e65(0x1dd)](_0x4f0e65(0x1e1),_0x51f887);}}[a202_0x1eded4(0x1d3)](_0x2d72a){const _0x2f179a=a202_0x1eded4;if(!this[_0x2f179a(0x1dc)])return;const _0x34dd32=Logger['format'](_0x2d72a);this['logStream'][_0x2f179a(0x1ce)](_0x34dd32+'\x0a');}async[a202_0x1eded4(0x1c4)](){return new Promise(_0x327aa1=>{const _0x28c1fd=a202_0x67c1;this[_0x28c1fd(0x1dc)]?this[_0x28c1fd(0x1dc)][_0x28c1fd(0x1c7)](()=>{this['logStream']=null,_0x327aa1();}):_0x327aa1();});}[a202_0x1eded4(0x1e2)](){return this['logPath'];}async[a202_0x1eded4(0x1e3)](){const _0x21a454=a202_0x1eded4;try{const _0x46eca8=await readdir(this['logDir']),_0x5747e4=new Date()[_0x21a454(0x1d8)]()[_0x21a454(0x1d4)]('T')[0x0];if(_0x46eca8[_0x21a454(0x1cc)](this[_0x21a454(0x1d7)])){const _0x26c3c8=join(this['logDir'],this[_0x21a454(0x1d7)]),_0x58c174=await stat(_0x26c3c8),_0xc9b81=new Date(_0x58c174[_0x21a454(0x1c9)])[_0x21a454(0x1d8)]()[_0x21a454(0x1d4)]('T')[0x0];if(_0xc9b81<_0x5747e4){const _0x3a897c=join(this['logDir'],this[_0x21a454(0x1e9)]+'-'+_0xc9b81+'.log');await rename(_0x26c3c8,_0x3a897c);}}const _0x32739e=await readdir(this[_0x21a454(0x1ca)]),_0x3f4415=this[_0x21a454(0x1e9)]['replace'](/[.*+?^${}()|[\]\\]/g,_0x21a454(0x1d6)),_0x2d6b53=new RegExp('^'+_0x3f4415+_0x21a454(0x1de)),_0xb46cc4=_0x32739e[_0x21a454(0x1c5)](_0x4aedd3=>_0x2d6b53[_0x21a454(0x1d9)](_0x4aedd3));for(const _0x5cd1c6 of _0xb46cc4){const _0x3d0ba7=join(this[_0x21a454(0x1ca)],_0x5cd1c6),_0x33d60b=join(this[_0x21a454(0x1ca)],_0x5cd1c6+_0x21a454(0x1d1));try{await pipeline(createReadStream(_0x3d0ba7),createGzip(),createWriteStream(_0x33d60b)),await unlink(_0x3d0ba7);}catch(_0x245306){console[_0x21a454(0x1dd)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x5cd1c6+':',_0x245306);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x475bb4,_0x5e6f4b){var _0x57b52e=a203_0x2c63,_0x459de3=_0x475bb4();while(!![]){try{var _0x4e07ec=parseInt(_0x57b52e(0x19b))/0x1+parseInt(_0x57b52e(0x19f))/0x2*(parseInt(_0x57b52e(0x1a0))/0x3)+-parseInt(_0x57b52e(0x19a))/0x4*(parseInt(_0x57b52e(0x1a2))/0x5)+-parseInt(_0x57b52e(0x19d))/0x6*(parseInt(_0x57b52e(0x1a3))/0x7)+parseInt(_0x57b52e(0x19c))/0x8*(-parseInt(_0x57b52e(0x19e))/0x9)+-parseInt(_0x57b52e(0x1a4))/0xa+parseInt(_0x57b52e(0x1a1))/0xb*(parseInt(_0x57b52e(0x1a5))/0xc);if(_0x4e07ec===_0x5e6f4b)break;else _0x459de3['push'](_0x459de3['shift']());}catch(_0x1ac4b9){_0x459de3['push'](_0x459de3['shift']());}}}(a203_0x559f,0xc0180));export{FileHandler}from'./file-handler.js';function a203_0x559f(){var _0x301154=['7503850KkmGOc','2510004ijUdsb','4IhokWM','7573AvOQlN','8gDelts','6yqIutU','1751373CaDQNg','2391604khEsoN','3wtEHmC','99CyscNO','4586525lFTRaF','3057425gFQNgW'];a203_0x559f=function(){return _0x301154;};return a203_0x559f();}function a203_0x2c63(_0x6acafa,_0x43cc44){_0x6acafa=_0x6acafa-0x19a;var _0x559f1b=a203_0x559f();var _0x2c634f=_0x559f1b[_0x6acafa];return _0x2c634f;}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var a204_0x59c016=a204_0x1b36;function a204_0x1b36(_0x181102,_0x494f72){_0x181102=_0x181102-0x1d7;var _0x91725e=a204_0x9172();var _0x1b3673=_0x91725e[_0x181102];return _0x1b3673;}(function(_0x27ae0f,_0x217ecc){var _0x5c2692=a204_0x1b36,_0x14f303=_0x27ae0f();while(!![]){try{var _0x106ba2=parseInt(_0x5c2692(0x1de))/0x1+parseInt(_0x5c2692(0x1dc))/0x2+parseInt(_0x5c2692(0x1e1))/0x3*(-parseInt(_0x5c2692(0x1d7))/0x4)+-parseInt(_0x5c2692(0x1d9))/0x5*(-parseInt(_0x5c2692(0x1db))/0x6)+-parseInt(_0x5c2692(0x1da))/0x7+-parseInt(_0x5c2692(0x1d8))/0x8*(-parseInt(_0x5c2692(0x1df))/0x9)+parseInt(_0x5c2692(0x1dd))/0xa;if(_0x106ba2===_0x217ecc)break;else _0x14f303['push'](_0x14f303['shift']());}catch(_0x4664e6){_0x14f303['push'](_0x14f303['shift']());}}}(a204_0x9172,0x82568));export class NullHandler{[a204_0x59c016(0x1e0)](_0x116f79){}}function a204_0x9172(){var _0x3b0230=['5403671cvaFLQ','3162GeAFho','1075762uChlRq','3768020WPnIvf','353010IsXFSe','63oblTFt','handle','733314Ewkick','4Dqhlcn','32024xcLmst','2415UsJBCL'];a204_0x9172=function(){return _0x3b0230;};return a204_0x9172();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x1b5f(_0x549280,_0x2d54ae){_0x549280=_0x549280-0x181;var _0x5e5b58=a205_0x5e5b();var _0x1b5f23=_0x5e5b58[_0x549280];return _0x1b5f23;}(function(_0x9d0924,_0x3b1005){var _0x1dfab5=a205_0x1b5f,_0x146513=_0x9d0924();while(!![]){try{var _0x2f2f42=-parseInt(_0x1dfab5(0x18a))/0x1+parseInt(_0x1dfab5(0x184))/0x2+-parseInt(_0x1dfab5(0x185))/0x3*(-parseInt(_0x1dfab5(0x189))/0x4)+parseInt(_0x1dfab5(0x182))/0x5+parseInt(_0x1dfab5(0x186))/0x6+parseInt(_0x1dfab5(0x188))/0x7*(-parseInt(_0x1dfab5(0x187))/0x8)+parseInt(_0x1dfab5(0x181))/0x9*(-parseInt(_0x1dfab5(0x183))/0xa);if(_0x2f2f42===_0x3b1005)break;else _0x146513['push'](_0x146513['shift']());}catch(_0x3da1af){_0x146513['push'](_0x146513['shift']());}}}(a205_0x5e5b,0xd1ab5));export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';function a205_0x5e5b(){var _0x5c7af8=['9202890XwAApq','9758104LKuyuw','7yNgdoh','4YHEUFv','432261mjLJWn','27QQWvnW','6470565QxDxps','9559060QzezTD','2989900vJhgsx','3167007wHqOgM'];a205_0x5e5b=function(){return _0x5c7af8;};return a205_0x5e5b();}export{DefaultLogFormatter}from'./formatters/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x31bc0f=a206_0x3864;(function(_0xda2bae,_0x573dc8){const _0xcd9e9d=a206_0x3864,_0x14a68f=_0xda2bae();while(!![]){try{const _0x4d36ac=-parseInt(_0xcd9e9d(0x1bc))/0x1+-parseInt(_0xcd9e9d(0x1c1))/0x2*(parseInt(_0xcd9e9d(0x1cb))/0x3)+parseInt(_0xcd9e9d(0x1a7))/0x4+parseInt(_0xcd9e9d(0x1a1))/0x5*(parseInt(_0xcd9e9d(0x1c2))/0x6)+parseInt(_0xcd9e9d(0x1cf))/0x7*(parseInt(_0xcd9e9d(0x19d))/0x8)+-parseInt(_0xcd9e9d(0x1c9))/0x9*(-parseInt(_0xcd9e9d(0x1b6))/0xa)+-parseInt(_0xcd9e9d(0x1ab))/0xb;if(_0x4d36ac===_0x573dc8)break;else _0x14a68f['push'](_0x14a68f['shift']());}catch(_0x26c407){_0x14a68f['push'](_0x14a68f['shift']());}}}(a206_0x178a,0x59f96));import{LogLevel as a206_0x366e46,logLevelToString}from'./types.js';function a206_0x178a(){const _0x181523=['getFormatter','format','handlers','slice','function','TRACE','length','push','handle','clearHandlers','43864Kbbksd','has',']\x20[','init','108525nBeUMZ','WARN','formatter','warn','pendingRecords','initialized','599200xNoivS','cause','level','clear','7626267QLFjeh','loggers','log','toISOString','INFO','addHandler','ERROR','timestamp','stack','map','reset','2360DwYumu','set','string','get','shouldLog','getEffectiveLevel','270654Wyqwfd','levelOverrides','debug','DEBUG','trace','266ySMYgy','102uEMqKE','setLogLevel','isInitialized','defaultLevel','name','info','join','25371PInzAD','close','9762vdyegG','message','component','split','742mAQuJi'];a206_0x178a=function(){return _0x181523;};return a206_0x178a();}const MAX_PENDING_RECORDS=0x3e8,state={'initialized':![],'defaultLevel':a206_0x366e46[a206_0x31bc0f(0x1af)],'levelOverrides':new Map(),'handlers':[],'formatter':null,'loggers':new Map(),'pendingRecords':[]};function safeStringify(_0x36b454){const _0x14614b=a206_0x31bc0f;if(typeof _0x36b454===_0x14614b(0x1b8))return _0x36b454;if(_0x36b454 instanceof Error)return _0x36b454[_0x14614b(0x1b3)]||_0x36b454[_0x14614b(0x1c6)]+':\x20'+_0x36b454['message'];try{return JSON['stringify'](_0x36b454,(_0x111ac5,_0x1365d2)=>{const _0xea13dc=_0x14614b;if(_0x1365d2 instanceof Error)return{'name':_0x1365d2[_0xea13dc(0x1c6)],'message':_0x1365d2[_0xea13dc(0x1cc)],'stack':_0x1365d2[_0xea13dc(0x1b3)],'cause':_0x1365d2[_0xea13dc(0x1a8)]};return _0x1365d2;});}catch{return String(_0x36b454);}}function a206_0x3864(_0x395232,_0x341f36){_0x395232=_0x395232-0x196;const _0x178ac1=a206_0x178a();let _0x38646c=_0x178ac1[_0x395232];return _0x38646c;}export class Logger{[a206_0x31bc0f(0x1cd)];constructor(_0x63da3){const _0x2411f1=a206_0x31bc0f;this[_0x2411f1(0x1cd)]=_0x63da3;}static['of'](_0x211765){const _0x2d9bdf=a206_0x31bc0f,_0x2cb05a=typeof _0x211765==='string'?_0x211765:_0x211765[_0x2d9bdf(0x1c6)];let _0x59549d=state[_0x2d9bdf(0x1ac)]['get'](_0x2cb05a);return!_0x59549d&&(_0x59549d=new Logger(_0x2cb05a),state[_0x2d9bdf(0x1ac)][_0x2d9bdf(0x1b7)](_0x2cb05a,_0x59549d)),_0x59549d;}static async['init'](_0x9a56f0={}){const _0x56a049=a206_0x31bc0f;state[_0x56a049(0x1c5)]=_0x9a56f0[_0x56a049(0x1c5)]??a206_0x366e46[_0x56a049(0x1af)],state[_0x56a049(0x1d2)]=_0x9a56f0[_0x56a049(0x1d2)]??[],state[_0x56a049(0x1a3)]=_0x9a56f0[_0x56a049(0x1a3)]??null,state[_0x56a049(0x1bd)][_0x56a049(0x1aa)]();if(_0x9a56f0[_0x56a049(0x1bd)])for(const [_0x1b7cd1,_0x592a08]of Object['entries'](_0x9a56f0[_0x56a049(0x1bd)])){state['levelOverrides'][_0x56a049(0x1b7)](_0x1b7cd1,_0x592a08);}for(const _0x16d8c6 of state['handlers']){_0x16d8c6[_0x56a049(0x1a0)]&&await _0x16d8c6[_0x56a049(0x1a0)]();}state['initialized']=!![];for(const _0x1381a6 of state[_0x56a049(0x1a5)]){Logger['dispatch'](_0x1381a6);}state[_0x56a049(0x1a5)]=[];}static[a206_0x31bc0f(0x1c3)](_0x299e55,_0x10e233){const _0x219194=a206_0x31bc0f;state[_0x219194(0x1bd)]['set'](_0x299e55,_0x10e233);}static['setDefaultLevel'](_0x5860c0){const _0x2bb41a=a206_0x31bc0f;state[_0x2bb41a(0x1c5)]=_0x5860c0;}static[a206_0x31bc0f(0x1b0)](_0x56c6d7){const _0x5d3686=a206_0x31bc0f;state[_0x5d3686(0x1d2)][_0x5d3686(0x19a)](_0x56c6d7),state[_0x5d3686(0x1a6)]&&_0x56c6d7[_0x5d3686(0x1a0)]&&_0x56c6d7[_0x5d3686(0x1a0)]();}static[a206_0x31bc0f(0x19c)](){const _0x3924b7=a206_0x31bc0f;state[_0x3924b7(0x1d2)]=[];}static async['shutdown'](){const _0x6720c2=a206_0x31bc0f;for(const _0x2da50b of state[_0x6720c2(0x1d2)]){_0x2da50b[_0x6720c2(0x1ca)]&&await _0x2da50b[_0x6720c2(0x1ca)]();}state[_0x6720c2(0x1d2)]=[],state['initialized']=![],state['loggers'][_0x6720c2(0x1aa)](),state['pendingRecords']=[];}static[a206_0x31bc0f(0x1b5)](){const _0xd4a86f=a206_0x31bc0f;state[_0xd4a86f(0x1a6)]=![],state['defaultLevel']=a206_0x366e46[_0xd4a86f(0x1af)],state[_0xd4a86f(0x1bd)][_0xd4a86f(0x1aa)](),state[_0xd4a86f(0x1d2)]=[],state['formatter']=null,state['loggers'][_0xd4a86f(0x1aa)](),state[_0xd4a86f(0x1a5)]=[];}static[a206_0x31bc0f(0x1c4)](){const _0x58767c=a206_0x31bc0f;return state[_0x58767c(0x1a6)];}static[a206_0x31bc0f(0x1bb)](_0x1aca15){const _0x2c6871=a206_0x31bc0f;if(state['levelOverrides'][_0x2c6871(0x19e)](_0x1aca15))return state[_0x2c6871(0x1bd)][_0x2c6871(0x1b9)](_0x1aca15);const _0x445fc7=_0x1aca15[_0x2c6871(0x1ce)]('.');for(let _0x525279=_0x445fc7[_0x2c6871(0x199)]-0x1;_0x525279>0x0;_0x525279--){const _0x509f41=_0x445fc7[_0x2c6871(0x196)](0x0,_0x525279)[_0x2c6871(0x1c8)]('.');if(state[_0x2c6871(0x1bd)][_0x2c6871(0x19e)](_0x509f41))return state[_0x2c6871(0x1bd)][_0x2c6871(0x1b9)](_0x509f41);}return state[_0x2c6871(0x1c5)];}[a206_0x31bc0f(0x1ba)](_0x1c93e2){const _0x502004=a206_0x31bc0f,_0x1f36fc=Logger[_0x502004(0x1bb)](this[_0x502004(0x1cd)]);return _0x1c93e2>=_0x1f36fc;}static['dispatch'](_0x4affd8){const _0x548ae6=a206_0x31bc0f;for(const _0x44bcae of state[_0x548ae6(0x1d2)]){_0x44bcae[_0x548ae6(0x19b)](_0x4affd8);}}[a206_0x31bc0f(0x1ad)](_0x4b0a7e,_0x2a6b85){const _0x3292ac=a206_0x31bc0f;if(!this[_0x3292ac(0x1ba)](_0x4b0a7e))return;const _0x424ed5=_0x2a6b85[_0x3292ac(0x1b4)](_0x5284df=>typeof _0x5284df===_0x3292ac(0x197)?_0x5284df():_0x5284df),_0x4ff9cd=_0x424ed5[_0x3292ac(0x1b4)](safeStringify)[_0x3292ac(0x1c8)]('\x20'),_0x2a0ef2={'timestamp':new Date(),'level':_0x4b0a7e,'component':this[_0x3292ac(0x1cd)],'message':_0x4ff9cd};if(!state[_0x3292ac(0x1a6)]){state[_0x3292ac(0x1a5)][_0x3292ac(0x199)]<MAX_PENDING_RECORDS&&state[_0x3292ac(0x1a5)]['push'](_0x2a0ef2);return;}Logger['dispatch'](_0x2a0ef2);}[a206_0x31bc0f(0x1c0)](..._0x5a79bf){const _0x43e5e5=a206_0x31bc0f;this[_0x43e5e5(0x1ad)](a206_0x366e46[_0x43e5e5(0x198)],_0x5a79bf);}[a206_0x31bc0f(0x1be)](..._0x512d1e){const _0x442cbe=a206_0x31bc0f;this['log'](a206_0x366e46[_0x442cbe(0x1bf)],_0x512d1e);}[a206_0x31bc0f(0x1c7)](..._0x3b47bc){const _0x1c2140=a206_0x31bc0f;this['log'](a206_0x366e46[_0x1c2140(0x1af)],_0x3b47bc);}[a206_0x31bc0f(0x1a4)](..._0x31529a){const _0x582bbf=a206_0x31bc0f;this['log'](a206_0x366e46[_0x582bbf(0x1a2)],_0x31529a);}['error'](..._0x198c68){const _0x2c78bb=a206_0x31bc0f;this['log'](a206_0x366e46[_0x2c78bb(0x1b1)],_0x198c68);}static[a206_0x31bc0f(0x1d0)](){const _0x458c36=a206_0x31bc0f;return state[_0x458c36(0x1a3)];}static[a206_0x31bc0f(0x1d1)](_0x58f750){const _0x17541f=a206_0x31bc0f;if(state[_0x17541f(0x1a3)])return state[_0x17541f(0x1a3)][_0x17541f(0x1d1)](_0x58f750);return _0x58f750[_0x17541f(0x1b2)][_0x17541f(0x1ae)]()+'\x20['+logLevelToString(_0x58f750[_0x17541f(0x1a9)])+_0x17541f(0x19f)+_0x58f750[_0x17541f(0x1cd)]+']\x20'+_0x58f750[_0x17541f(0x1cc)];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2fb6fa,_0x38305a){const _0x20fd75=a207_0x3fdf,_0x1a37ca=_0x2fb6fa();while(!![]){try{const _0x303ba3=-parseInt(_0x20fd75(0x134))/0x1+-parseInt(_0x20fd75(0x12f))/0x2*(-parseInt(_0x20fd75(0x130))/0x3)+-parseInt(_0x20fd75(0x13c))/0x4+-parseInt(_0x20fd75(0x137))/0x5+-parseInt(_0x20fd75(0x132))/0x6*(-parseInt(_0x20fd75(0x144))/0x7)+parseInt(_0x20fd75(0x13b))/0x8+-parseInt(_0x20fd75(0x133))/0x9*(-parseInt(_0x20fd75(0x143))/0xa);if(_0x303ba3===_0x38305a)break;else _0x1a37ca['push'](_0x1a37ca['shift']());}catch(_0x5c7c1a){_0x1a37ca['push'](_0x1a37ca['shift']());}}}(a207_0xc6ac,0xa3a0c));export var LogLevel;(function(_0x266429){const _0x111654=a207_0x3fdf;_0x266429[_0x266429[_0x111654(0x142)]=-0x2]=_0x111654(0x142),_0x266429[_0x266429[_0x111654(0x12c)]=-0x1]='DEBUG',_0x266429[_0x266429[_0x111654(0x131)]=0x0]=_0x111654(0x131),_0x266429[_0x266429[_0x111654(0x129)]=0x1]=_0x111654(0x129),_0x266429[_0x266429[_0x111654(0x13a)]=0x2]=_0x111654(0x13a);}(LogLevel||(LogLevel={})));export function parseLogLevel(_0xe9ba1c){const _0x242037=a207_0x3fdf;switch(_0xe9ba1c[_0x242037(0x13d)]()){case _0x242037(0x142):return LogLevel[_0x242037(0x142)];case _0x242037(0x12c):return LogLevel[_0x242037(0x12c)];case _0x242037(0x131):return LogLevel[_0x242037(0x131)];case _0x242037(0x129):case _0x242037(0x12a):return LogLevel['WARN'];case _0x242037(0x13a):return LogLevel[_0x242037(0x13a)];default:return LogLevel[_0x242037(0x131)];}}function a207_0xc6ac(){const _0x29855c=['5576315hwnfHg','warn','debug','ERROR','8198376RiloVN','864132DqJgFX','toUpperCase','getHours','getFullYear','padStart','getMilliseconds','TRACE','11320ExmjCu','6314oQFOSR','trace','getMinutes','getSeconds','abs','getDate','WARN','WARNING','info','DEBUG','getTimezoneOffset','getMonth','554XRyLEO','8247iaglsA','INFO','4134GTCJXt','2763WQxlaG','753756cjUhCL','toString','floor'];a207_0xc6ac=function(){return _0x29855c;};return a207_0xc6ac();}export function logLevelToString(_0x316390){const _0x356ef1=a207_0x3fdf;switch(_0x316390){case LogLevel[_0x356ef1(0x142)]:return _0x356ef1(0x145);case LogLevel[_0x356ef1(0x12c)]:return _0x356ef1(0x139);case LogLevel[_0x356ef1(0x131)]:return _0x356ef1(0x12b);case LogLevel[_0x356ef1(0x129)]:return _0x356ef1(0x138);case LogLevel['ERROR']:return'error';default:return _0x356ef1(0x12b);}}function a207_0x3fdf(_0x19c3a6,_0x5a7f70){_0x19c3a6=_0x19c3a6-0x125;const _0xc6ac3a=a207_0xc6ac();let _0x3fdf3e=_0xc6ac3a[_0x19c3a6];return _0x3fdf3e;}export function formatTimestamp(_0x570489){const _0x204afa=a207_0x3fdf,_0x14554=_0x570489[_0x204afa(0x13f)](),_0x11183b=(_0x570489[_0x204afa(0x12e)]()+0x1)[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x2dec6d=_0x570489[_0x204afa(0x128)]()[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x2adefc=_0x570489[_0x204afa(0x13e)]()[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x464b23=_0x570489[_0x204afa(0x125)]()[_0x204afa(0x135)]()[_0x204afa(0x140)](0x2,'0'),_0x37c777=_0x570489[_0x204afa(0x126)]()['toString']()[_0x204afa(0x140)](0x2,'0'),_0x302af8=_0x570489[_0x204afa(0x141)]()[_0x204afa(0x135)]()['padStart'](0x3,'0'),_0x275618=-_0x570489[_0x204afa(0x12d)](),_0x53fdda=Math[_0x204afa(0x136)](Math[_0x204afa(0x127)](_0x275618)/0x3c),_0x1b6dec=Math['abs'](_0x275618)%0x3c,_0x1d124e=_0x275618>=0x0?'+':'-',_0x32e706=''+_0x1d124e+_0x53fdda['toString']()[_0x204afa(0x140)](0x2,'0')+_0x1b6dec['toString']()[_0x204afa(0x140)](0x2,'0');return _0x14554+'-'+_0x11183b+'-'+_0x2dec6d+'\x20'+_0x2adefc+':'+_0x464b23+':'+_0x37c777+'.'+_0x302af8+_0x32e706;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x30b55d,_0x5399b1){const _0x234144=a208_0x1bc0,_0x4a36b7=_0x30b55d();while(!![]){try{const _0x1fe43=parseInt(_0x234144(0x1c8))/0x1+parseInt(_0x234144(0x1ce))/0x2*(-parseInt(_0x234144(0x1cf))/0x3)+parseInt(_0x234144(0x1cb))/0x4*(parseInt(_0x234144(0x1d6))/0x5)+-parseInt(_0x234144(0x1d0))/0x6+-parseInt(_0x234144(0x1c9))/0x7*(-parseInt(_0x234144(0x1c5))/0x8)+-parseInt(_0x234144(0x1d4))/0x9*(parseInt(_0x234144(0x1d2))/0xa)+parseInt(_0x234144(0x1cd))/0xb*(parseInt(_0x234144(0x1d5))/0xc);if(_0x1fe43===_0x5399b1)break;else _0x4a36b7['push'](_0x4a36b7['shift']());}catch(_0x27155e){_0x4a36b7['push'](_0x4a36b7['shift']());}}}(a208_0x33d5,0xb1336));function a208_0x1bc0(_0x245fae,_0x2fcdc9){_0x245fae=_0x245fae-0x1c5;const _0x33d55c=a208_0x33d5();let _0x1bc095=_0x33d55c[_0x245fae];return _0x1bc095;}function a208_0x33d5(){const _0x158859=['.\x20Must\x20be\x20a\x20positive\x20integer.','452061KfjWdK','392889awLggo','.\x20Must\x20be\x20a\x20number.','152116XCdWZH','.\x20Must\x20be\x20a\x20positive\x20number.','30569zZPqhv','2SpCgxh','3580494OdmmBC','3985254huXxzl','Invalid\x20limit\x20value:\x20','942350HJmdkV','isInteger','27YSDtOn','3864GyZbfZ','185agRKNq','16RXAwhn','Invalid\x20timeout\x20value:\x20'];a208_0x33d5=function(){return _0x158859;};return a208_0x33d5();}export function validateLimitOption(_0x2ae475){const _0x489e37=a208_0x1bc0;if(!Number[_0x489e37(0x1d3)](_0x2ae475))return{'isValid':![],'error':_0x489e37(0x1d1)+_0x2ae475+'.\x20Must\x20be\x20an\x20integer.'};if(_0x2ae475<=0x0)return{'isValid':![],'error':_0x489e37(0x1d1)+_0x2ae475+_0x489e37(0x1c7)};return{'isValid':!![],'value':_0x2ae475};}export function validateTimeoutOption(_0x52c153,_0x2252e3=0x1e){const _0x32993c=a208_0x1bc0;if(_0x52c153===undefined)return{'isValid':!![],'value':_0x2252e3};const _0x12e112=typeof _0x52c153==='number'?_0x52c153:parseFloat(_0x52c153);if(isNaN(_0x12e112))return{'isValid':![],'error':_0x32993c(0x1c6)+_0x52c153+_0x32993c(0x1ca)};if(_0x12e112<=0x0)return{'isValid':![],'error':_0x32993c(0x1c6)+_0x12e112+_0x32993c(0x1cc)};return{'isValid':!![],'value':_0x12e112};}
|