@treasuredata/tdx 2026.3.45 → 2026.3.47
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/cas-command.js +1 -1
- package/dist/commands/cas-segment-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/work-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/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.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/types/workspace.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/sdk/workspace/builtin-schedules/builtin-schedules/execute-items/TASK.md +62 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/execute-items/schedule.yaml +20 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/item-triage/TASK.md +106 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/item-triage/schedule.yaml +18 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/stale-item-cleanup/TASK.md +26 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/stale-item-cleanup/schedule.yaml +15 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/synthesize-knowledge/TASK.md +26 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/synthesize-knowledge/schedule.yaml +16 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/weekly-review/TASK.md +21 -0
- package/dist/sdk/workspace/builtin-schedules/builtin-schedules/weekly-review/schedule.yaml +14 -0
- package/dist/sdk/workspace/builtin-schedules/execute-items/TASK.md +62 -0
- package/dist/sdk/workspace/builtin-schedules/execute-items/schedule.yaml +20 -0
- package/dist/sdk/workspace/builtin-schedules/item-triage/TASK.md +106 -0
- package/dist/sdk/workspace/builtin-schedules/item-triage/schedule.yaml +18 -0
- package/dist/sdk/workspace/builtin-schedules/stale-item-cleanup/TASK.md +26 -0
- package/dist/sdk/workspace/builtin-schedules/stale-item-cleanup/schedule.yaml +15 -0
- package/dist/sdk/workspace/builtin-schedules/synthesize-knowledge/TASK.md +26 -0
- package/dist/sdk/workspace/builtin-schedules/synthesize-knowledge/schedule.yaml +16 -0
- package/dist/sdk/workspace/builtin-schedules/weekly-review/TASK.md +21 -0
- package/dist/sdk/workspace/builtin-schedules/weekly-review/schedule.yaml +14 -0
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.d.ts +5 -1
- package/dist/sdk/workspace/index.d.ts.map +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/index.js.map +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.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 +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
const a205_0x443d53=a205_0x5247;(function(_0x157828,_0x756f48){const _0x3f979f=a205_0x5247,_0x4f6403=_0x157828();while(!![]){try{const _0x6b91c4=parseInt(_0x3f979f(0xef))/0x1+-parseInt(_0x3f979f(0x151))/0x2*(parseInt(_0x3f979f(0x11b))/0x3)+-parseInt(_0x3f979f(0x13b))/0x4*(parseInt(_0x3f979f(0x108))/0x5)+-parseInt(_0x3f979f(0x106))/0x6+-parseInt(_0x3f979f(0x105))/0x7+parseInt(_0x3f979f(0x15a))/0x8+parseInt(_0x3f979f(0x13e))/0x9*(parseInt(_0x3f979f(0x11e))/0xa);if(_0x6b91c4===_0x756f48)break;else _0x4f6403['push'](_0x4f6403['shift']());}catch(_0x4834c9){_0x4f6403['push'](_0x4f6403['shift']());}}}(a205_0x4eb9,0xc0767));function a205_0x5247(_0x40da9a,_0x287fdb){_0x40da9a=_0x40da9a-0xee;const _0x4eb961=a205_0x4eb9();let _0x524783=_0x4eb961[_0x40da9a];return _0x524783;}export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a205_0x443d53(0x10a),'updated_at':a205_0x443d53(0x10a),'permission':'administrator'},'withTables':{'name':a205_0x443d53(0x15d),'count':0x64,'created_at':a205_0x443d53(0x150),'updated_at':a205_0x443d53(0x128),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a205_0x443d53(0x102),'type':a205_0x443d53(0x119),'schema':JSON[a205_0x443d53(0x12d)]([['id',a205_0x443d53(0x146)],[a205_0x443d53(0x14d),'long'],[a205_0x443d53(0xf6),a205_0x443d53(0x146)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a205_0x443d53(0x13c),'type':'log','schema':JSON[a205_0x443d53(0x12d)]([[a205_0x443d53(0x12e),a205_0x443d53(0x146)],[a205_0x443d53(0x14d),a205_0x443d53(0x140)],['user_id','string'],[a205_0x443d53(0x113),a205_0x443d53(0x146)],[a205_0x443d53(0x14e),a205_0x443d53(0x126)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x443d53(0x103)}},'parentSegment':{'basic':{'id':a205_0x443d53(0x143),'name':'Test\x20Parent\x20Segment','description':a205_0x443d53(0x10d),'status':a205_0x443d53(0x118),'master_table':{'database':a205_0x443d53(0x11f),'table':'unified_customers'},'attributes':[{'name':a205_0x443d53(0x10c),'type':a205_0x443d53(0x146),'key':!![]},{'name':'email','type':a205_0x443d53(0x146)},{'name':a205_0x443d53(0x142),'type':a205_0x443d53(0xf1)}],'created_at':a205_0x443d53(0x10a),'updated_at':a205_0x443d53(0x14b)},'withBehaviors':{'id':a205_0x443d53(0x157),'name':a205_0x443d53(0x111),'description':a205_0x443d53(0x109),'status':a205_0x443d53(0x118),'master_table':{'database':a205_0x443d53(0x11f),'table':a205_0x443d53(0x107)},'behaviors':[{'name':a205_0x443d53(0xf0),'table':{'database':a205_0x443d53(0xfd),'table':a205_0x443d53(0xf0)},'join_key':a205_0x443d53(0x10c)},{'name':'page_views','table':{'database':a205_0x443d53(0xfd),'table':a205_0x443d53(0x10f)},'join_key':'customer_id'}],'created_at':a205_0x443d53(0x10a),'updated_at':a205_0x443d53(0x14b)}},'segment':{'basic':{'id':a205_0x443d53(0x133),'name':a205_0x443d53(0x14c),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a205_0x443d53(0x143),'status':a205_0x443d53(0x118),'rules':[{'type':'attribute','field':a205_0x443d53(0xfb),'operator':a205_0x443d53(0xfa),'value':a205_0x443d53(0x132)}],'count':0x1388,'created_at':a205_0x443d53(0x10a),'updated_at':a205_0x443d53(0x14b)},'withMultipleRules':{'id':a205_0x443d53(0xf2),'name':'High\x20Value\x20Active\x20Users','description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a205_0x443d53(0x143),'status':a205_0x443d53(0x118),'rules':[{'type':a205_0x443d53(0x13a),'field':'last_login','operator':a205_0x443d53(0xfa),'value':a205_0x443d53(0x132)},{'type':'attribute','field':a205_0x443d53(0x110),'operator':a205_0x443d53(0x155),'value':0x3e8}],'count':0x5dc,'created_at':a205_0x443d53(0x10a),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':a205_0x443d53(0x127),'name':'Welcome\x20Journey','description':a205_0x443d53(0x14f),'status':a205_0x443d53(0x11d),'version':0x1,'steps':[{'id':'step-1','type':a205_0x443d53(0x130),'duration':'1d'},{'id':a205_0x443d53(0x14a),'type':a205_0x443d53(0x147),'activation_id':a205_0x443d53(0xf3)}],'created_at':a205_0x443d53(0x10a),'updated_at':a205_0x443d53(0x14b)},'withDecision':{'id':a205_0x443d53(0x152),'name':a205_0x443d53(0x131),'description':a205_0x443d53(0x10b),'status':a205_0x443d53(0x118),'version':0x2,'steps':[{'id':a205_0x443d53(0x12b),'type':a205_0x443d53(0x153),'segment_id':a205_0x443d53(0x133),'yes_path':a205_0x443d53(0x14a),'no_path':a205_0x443d53(0x13d)},{'id':a205_0x443d53(0x14a),'type':'activation','activation_id':a205_0x443d53(0x145)},{'id':'step-3','type':a205_0x443d53(0x149)}],'created_at':a205_0x443d53(0x10a),'updated_at':a205_0x443d53(0x14b)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a205_0x443d53(0x112)},{'name':'name','type':a205_0x443d53(0x112)},{'name':a205_0x443d53(0x137),'type':a205_0x443d53(0x15c)}],'data':[[a205_0x443d53(0x135),'Alice',0x64],[a205_0x443d53(0x104),a205_0x443d53(0xf9),0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a205_0x443d53(0xf6),'type':a205_0x443d53(0x112)}],'data':[]},'singleRow':{'schema':[{'name':a205_0x443d53(0xf5),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a205_0x443d53(0xf8),'email':a205_0x443d53(0x114),'created_at':a205_0x443d53(0x10a),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a205_0x443d53(0x11a),'created_at':a205_0x443d53(0x125),'updated_at':a205_0x443d53(0x14b),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a205_0x443d53(0xee),'database':'test_db','status':a205_0x443d53(0x134),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':a205_0x443d53(0x15b),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a205_0x443d53(0xee),'database':a205_0x443d53(0x158),'status':'running','query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a205_0x443d53(0x154),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':'test_db','status':'error','query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a205_0x443d53(0x120),'end_at':a205_0x443d53(0x117),'duration':0x1,'result_size':null,'error':a205_0x443d53(0x124)}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a205_0x443d53(0x123),'revision':a205_0x443d53(0xfe),'timezone':a205_0x443d53(0xf7),'schedule':{'cron':a205_0x443d53(0x12f)}},'withSessions':{'id':a205_0x443d53(0x138),'name':a205_0x443d53(0x116),'project':a205_0x443d53(0x12c),'revision':a205_0x443d53(0x100),'timezone':a205_0x443d53(0x141),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a205_0x443d53(0x129),'status':a205_0x443d53(0x134),'started_at':a205_0x443d53(0x159),'finished_at':a205_0x443d53(0x139)}}},'apiError':{'unauthorized':{'errors':{'error':a205_0x443d53(0x136),'message':a205_0x443d53(0x136),'severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a205_0x443d53(0xfc),'message':a205_0x443d53(0x115),'severity':a205_0x443d53(0x121),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':a205_0x443d53(0x156),'instance':'/v3/database/list'}}};export function createDatabase(_0x26c995){const _0x460482=a205_0x443d53;return{...fixtures[_0x460482(0x148)]['basic'],..._0x26c995};}function a205_0x4eb9(){const _0x5c560c=['events_db','abc123','table','def456','workflow','users','2024-01-15T12:00:00Z','user-2','8370670Evpnda','8235426TfMpAj','customers','10zknimd','Parent\x20segment\x20with\x20behavioral\x20data','2024-01-01T00:00:00Z','Journey\x20with\x20decision\x20point','customer_id','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','completed','pageviews','lifetime_value','Customers\x20with\x20Behaviors','varchar','event_type','test@example.com','The\x20requested\x20resource\x20does\x20not\x20exist','hourly_sync','2024-01-15T10:10:01Z','active','log','admin@example.com','9krXQvd','job','draft','10920eUIeFO','cdp_db','2024-01-15T10:10:00Z','error','parentSegment','data_pipeline','Table\x20does\x20not\x20exist:\x20nonexistent_table','2023-01-01T00:00:00Z','map<string,string>','j-abc123','2024-01-15T08:00:00Z','sess-111','user','step-1','data_sync','stringify','event_id','0\x200\x20*\x20*\x20*','wait','Purchase\x20Reminder','30d','cs-456789','success','user-1','Invalid\x20API\x20key','count','wf-67890','2024-01-15T09:05:00Z','attribute','731560joDaRN','events','step-3','16938mtrzDt','queryResult','long','America/Los_Angeles','created_at','ps-123456','journey','act-email','string','activation','database','end','step-2','2024-01-15T00:00:00Z','Active\x20Users','time','properties','Onboarding\x20journey\x20for\x20new\x20users','2023-06-15T10:30:00Z','458982HkzVcw','j-def456','decision_point','2024-01-15T10:05:00Z','Greater','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','ps-789012','test_db','2024-01-15T09:00:00Z','8840944GxLuiG','2024-01-15T10:00:05Z','bigint','production_db','presto','1250699nUkYDA','purchases','timestamp','cs-111222','act-123','basic','total','name','UTC','Test\x20User','Bob','TimeWithinPast','last_login','Resource\x20not\x20found'];a205_0x4eb9=function(){return _0x5c560c;};return a205_0x4eb9();}export function createTable(_0x50d3b9){const _0x1f4993=a205_0x443d53;return{...fixtures[_0x1f4993(0xff)][_0x1f4993(0xf4)],..._0x50d3b9};}export function createParentSegment(_0x58efec){const _0x2d4a11=a205_0x443d53;return{...fixtures[_0x2d4a11(0x122)][_0x2d4a11(0xf4)],..._0x58efec};}export function createSegment(_0x1b2d13){const _0x2ac25c=a205_0x443d53;return{...fixtures['segment'][_0x2ac25c(0xf4)],..._0x1b2d13};}export function createJourney(_0x3bf8ef){const _0x6e603c=a205_0x443d53;return{...fixtures[_0x6e603c(0x144)][_0x6e603c(0xf4)],..._0x3bf8ef};}export function createQueryResult(_0x1abd36){const _0x26119a=a205_0x443d53;return{...fixtures[_0x26119a(0x13f)]['basic'],..._0x1abd36};}export function createUser(_0x5c2438){const _0x4f5227=a205_0x443d53;return{...fixtures[_0x4f5227(0x12a)][_0x4f5227(0xf4)],..._0x5c2438};}export function createJob(_0x2f5f5e){const _0x4f594a=a205_0x443d53;return{...fixtures[_0x4f594a(0x11c)][_0x4f594a(0x10e)],..._0x2f5f5e};}export function createWorkflow(_0x3a708d){const _0x445d15=a205_0x443d53;return{...fixtures[_0x445d15(0x101)][_0x445d15(0xf4)],..._0x3a708d};}
|
|
1
|
+
const a205_0x32515d=a205_0x2036;(function(_0x2754f0,_0x1b0ac6){const _0x592be2=a205_0x2036,_0x12fd8c=_0x2754f0();while(!![]){try{const _0x49d18d=-parseInt(_0x592be2(0x257))/0x1+parseInt(_0x592be2(0x22b))/0x2+parseInt(_0x592be2(0x213))/0x3+-parseInt(_0x592be2(0x23f))/0x4*(-parseInt(_0x592be2(0x248))/0x5)+-parseInt(_0x592be2(0x242))/0x6*(-parseInt(_0x592be2(0x1f8))/0x7)+parseInt(_0x592be2(0x1fe))/0x8*(-parseInt(_0x592be2(0x268))/0x9)+parseInt(_0x592be2(0x24e))/0xa*(-parseInt(_0x592be2(0x220))/0xb);if(_0x49d18d===_0x1b0ac6)break;else _0x12fd8c['push'](_0x12fd8c['shift']());}catch(_0x38a079){_0x12fd8c['push'](_0x12fd8c['shift']());}}}(a205_0x2596,0x7f697));export const fixtures={'database':{'basic':{'name':a205_0x32515d(0x25a),'count':0x5,'created_at':a205_0x32515d(0x23d),'updated_at':a205_0x32515d(0x23d),'permission':a205_0x32515d(0x231)},'withTables':{'name':'production_db','count':0x64,'created_at':a205_0x32515d(0x206),'updated_at':a205_0x32515d(0x23c),'permission':a205_0x32515d(0x240)}},'table':{'basic':{'id':0x3039,'name':a205_0x32515d(0x209),'type':'log','schema':JSON[a205_0x32515d(0x225)]([['id',a205_0x32515d(0x214)],['time','long'],[a205_0x32515d(0x21f),a205_0x32515d(0x214)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a205_0x32515d(0x23d),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a205_0x32515d(0x23a),'type':a205_0x32515d(0x239),'schema':JSON[a205_0x32515d(0x225)]([[a205_0x32515d(0x21e),a205_0x32515d(0x214)],[a205_0x32515d(0x22c),'long'],[a205_0x32515d(0x210),a205_0x32515d(0x214)],[a205_0x32515d(0x211),a205_0x32515d(0x214)],[a205_0x32515d(0x236),a205_0x32515d(0x250)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x32515d(0x22e)}},'parentSegment':{'basic':{'id':a205_0x32515d(0x251),'name':a205_0x32515d(0x247),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a205_0x32515d(0x26a),'master_table':{'database':a205_0x32515d(0x208),'table':a205_0x32515d(0x1f5)},'attributes':[{'name':a205_0x32515d(0x267),'type':a205_0x32515d(0x214),'key':!![]},{'name':'email','type':a205_0x32515d(0x214)},{'name':a205_0x32515d(0x233),'type':'timestamp'}],'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x32515d(0x229)},'withBehaviors':{'id':a205_0x32515d(0x24f),'name':a205_0x32515d(0x241),'description':a205_0x32515d(0x217),'status':a205_0x32515d(0x26a),'master_table':{'database':a205_0x32515d(0x208),'table':a205_0x32515d(0x20d)},'behaviors':[{'name':a205_0x32515d(0x216),'table':{'database':a205_0x32515d(0x244),'table':a205_0x32515d(0x216)},'join_key':a205_0x32515d(0x267)},{'name':a205_0x32515d(0x254),'table':{'database':a205_0x32515d(0x244),'table':a205_0x32515d(0x1fa)},'join_key':a205_0x32515d(0x267)}],'created_at':a205_0x32515d(0x23d),'updated_at':a205_0x32515d(0x229)}},'segment':{'basic':{'id':a205_0x32515d(0x230),'name':a205_0x32515d(0x234),'description':a205_0x32515d(0x24c),'parent_segment_id':a205_0x32515d(0x251),'status':a205_0x32515d(0x26a),'rules':[{'type':a205_0x32515d(0x264),'field':a205_0x32515d(0x202),'operator':'TimeWithinPast','value':a205_0x32515d(0x243)}],'count':0x1388,'created_at':a205_0x32515d(0x23d),'updated_at':a205_0x32515d(0x229)},'withMultipleRules':{'id':a205_0x32515d(0x20b),'name':a205_0x32515d(0x25b),'description':a205_0x32515d(0x20e),'parent_segment_id':a205_0x32515d(0x251),'status':'active','rules':[{'type':a205_0x32515d(0x264),'field':'last_login','operator':'TimeWithinPast','value':a205_0x32515d(0x243)},{'type':'attribute','field':a205_0x32515d(0x219),'operator':a205_0x32515d(0x20f),'value':0x3e8}],'count':0x5dc,'created_at':a205_0x32515d(0x23d),'updated_at':a205_0x32515d(0x229)}},'journey':{'basic':{'id':a205_0x32515d(0x226),'name':a205_0x32515d(0x1ff),'description':a205_0x32515d(0x212),'status':a205_0x32515d(0x1fb),'version':0x1,'steps':[{'id':'step-1','type':a205_0x32515d(0x221),'duration':'1d'},{'id':a205_0x32515d(0x262),'type':a205_0x32515d(0x224),'activation_id':'act-123'}],'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x32515d(0x229)},'withDecision':{'id':a205_0x32515d(0x265),'name':a205_0x32515d(0x21a),'description':a205_0x32515d(0x21b),'status':a205_0x32515d(0x26a),'version':0x2,'steps':[{'id':a205_0x32515d(0x203),'type':a205_0x32515d(0x22d),'segment_id':a205_0x32515d(0x230),'yes_path':a205_0x32515d(0x262),'no_path':a205_0x32515d(0x256)},{'id':a205_0x32515d(0x262),'type':a205_0x32515d(0x224),'activation_id':'act-email'},{'id':a205_0x32515d(0x256),'type':'end'}],'created_at':a205_0x32515d(0x23d),'updated_at':a205_0x32515d(0x229)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a205_0x32515d(0x21c)},{'name':a205_0x32515d(0x21f),'type':'varchar'},{'name':'count','type':a205_0x32515d(0x204)}],'data':[[a205_0x32515d(0x23e),a205_0x32515d(0x261),0x64],['user-2',a205_0x32515d(0x222),0xc8],[a205_0x32515d(0x258),a205_0x32515d(0x249),0x96]]},'empty':{'schema':[{'name':'id','type':a205_0x32515d(0x21c)},{'name':'name','type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a205_0x32515d(0x20a),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a205_0x32515d(0x227),'email':a205_0x32515d(0x260),'created_at':a205_0x32515d(0x23d),'updated_at':a205_0x32515d(0x229),'administrator':![]},'admin':{'id':0x1,'name':a205_0x32515d(0x263),'email':'admin@example.com','created_at':a205_0x32515d(0x22a),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a205_0x32515d(0x1f6),'database':a205_0x32515d(0x25a),'status':a205_0x32515d(0x22f),'query':a205_0x32515d(0x223),'start_at':a205_0x32515d(0x24d),'end_at':a205_0x32515d(0x269),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a205_0x32515d(0x1f6),'database':'test_db','status':a205_0x32515d(0x25d),'query':a205_0x32515d(0x218),'start_at':a205_0x32515d(0x1f4),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a205_0x32515d(0x1f6),'database':a205_0x32515d(0x25a),'status':a205_0x32515d(0x215),'query':a205_0x32515d(0x23b),'start_at':a205_0x32515d(0x21d),'end_at':a205_0x32515d(0x252),'duration':0x1,'result_size':null,'error':a205_0x32515d(0x228)}},'workflow':{'basic':{'id':a205_0x32515d(0x205),'name':a205_0x32515d(0x1fc),'project':a205_0x32515d(0x1fd),'revision':a205_0x32515d(0x238),'timezone':a205_0x32515d(0x25f),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a205_0x32515d(0x24a),'name':a205_0x32515d(0x1f9),'project':'data_sync','revision':'def456','timezone':a205_0x32515d(0x207),'schedule':{'cron':a205_0x32515d(0x266)},'last_session':{'id':'sess-111','status':a205_0x32515d(0x22f),'started_at':a205_0x32515d(0x25e),'finished_at':a205_0x32515d(0x246)}}},'apiError':{'unauthorized':{'errors':{'error':a205_0x32515d(0x200),'message':a205_0x32515d(0x200),'severity':a205_0x32515d(0x215),'status_code':0x191}},'notFound':{'errors':{'error':a205_0x32515d(0x253),'message':a205_0x32515d(0x201),'severity':a205_0x32515d(0x215),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a205_0x32515d(0x25c),'title':a205_0x32515d(0x259),'status':0x193,'detail':a205_0x32515d(0x245),'instance':'/v3/database/list'}}};export function createDatabase(_0x44fc42){const _0x3ba1bf=a205_0x32515d;return{...fixtures[_0x3ba1bf(0x20c)][_0x3ba1bf(0x232)],..._0x44fc42};}export function createTable(_0x5b639d){const _0x369d35=a205_0x32515d;return{...fixtures['table'][_0x369d35(0x232)],..._0x5b639d};}export function createParentSegment(_0x384130){const _0x10cef8=a205_0x32515d;return{...fixtures[_0x10cef8(0x255)][_0x10cef8(0x232)],..._0x384130};}function a205_0x2036(_0x3a0074,_0x4ed70c){_0x3a0074=_0x3a0074-0x1f4;const _0x25963a=a205_0x2596();let _0x203610=_0x25963a[_0x3a0074];return _0x203610;}export function createSegment(_0x586860){const _0x427911=a205_0x32515d;return{...fixtures['segment'][_0x427911(0x232)],..._0x586860};}export function createJourney(_0x2ac930){const _0x26b050=a205_0x32515d;return{...fixtures[_0x26b050(0x237)][_0x26b050(0x232)],..._0x2ac930};}export function createQueryResult(_0x24d215){const _0x382ec8=a205_0x32515d;return{...fixtures['queryResult'][_0x382ec8(0x232)],..._0x24d215};}export function createUser(_0x497229){const _0x1e95e0=a205_0x32515d;return{...fixtures[_0x1e95e0(0x1f7)]['basic'],..._0x497229};}export function createJob(_0x44da4d){const _0x2b6fe8=a205_0x32515d;return{...fixtures[_0x2b6fe8(0x24b)][_0x2b6fe8(0x235)],..._0x44da4d};}function a205_0x2596(){const _0x34a748=['administrator','basic','created_at','Active\x20Users','completed','properties','journey','abc123','log','events','SELECT\x20*\x20FROM\x20nonexistent_table','2024-01-15T08:00:00Z','2024-01-01T00:00:00Z','user-1','4724xoZKWe','full_access','Customers\x20with\x20Behaviors','127398VcBLig','30d','events_db','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-15T09:05:00Z','Test\x20Parent\x20Segment','3365OvyuOR','Charlie','wf-67890','job','Users\x20active\x20in\x20the\x20last\x2030\x20days','2024-01-15T10:00:00Z','4953220NElrsg','ps-789012','map<string,string>','ps-123456','2024-01-15T10:10:01Z','Resource\x20not\x20found','page_views','parentSegment','step-3','19082PSkJCS','user-3','Forbidden','test_db','High\x20Value\x20Active\x20Users','https://api.treasuredata.com/errors/forbidden','running','2024-01-15T09:00:00Z','UTC','test@example.com','Alice','step-2','Admin\x20User','attribute','j-def456','0\x20*\x20*\x20*\x20*','customer_id','2313JNQHfs','2024-01-15T10:00:05Z','active','2024-01-15T10:05:00Z','unified_customers','presto','user','49qZNQxK','hourly_sync','pageviews','draft','daily_etl','data_pipeline','176xFHrsU','Welcome\x20Journey','Invalid\x20API\x20key','The\x20requested\x20resource\x20does\x20not\x20exist','last_login','step-1','bigint','wf-12345','2023-06-15T10:30:00Z','America/Los_Angeles','cdp_db','users','total','cs-111222','database','customers','Active\x20users\x20with\x20high\x20lifetime\x20value','Greater','user_id','event_type','Onboarding\x20journey\x20for\x20new\x20users','1125990GAiSBf','string','error','purchases','Parent\x20segment\x20with\x20behavioral\x20data','SELECT\x20COUNT(*)\x20FROM\x20events','lifetime_value','Purchase\x20Reminder','Journey\x20with\x20decision\x20point','varchar','2024-01-15T10:10:00Z','event_id','name','22aZKfWq','wait','Bob','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','activation','stringify','j-abc123','Test\x20User','Table\x20does\x20not\x20exist:\x20nonexistent_table','2024-01-15T00:00:00Z','2023-01-01T00:00:00Z','436970lQZAzs','time','decision_point','2024-01-15T12:00:00Z','success','cs-456789'];a205_0x2596=function(){return _0x34a748;};return a205_0x2596();}export function createWorkflow(_0x5847a4){const _0x2e5b20=a205_0x32515d;return{...fixtures['workflow'][_0x2e5b20(0x232)],..._0x5847a4};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x2a3bb9=a206_0x16a7;(function(_0x24a9b7,_0x56695d){const _0x41d599=a206_0x16a7,_0x48de03=_0x24a9b7();while(!![]){try{const _0x5bcf29=-parseInt(_0x41d599(0x11d))/0x1+parseInt(_0x41d599(0x102))/0x2+-parseInt(_0x41d599(0x119))/0x3*(parseInt(_0x41d599(0x126))/0x4)+-parseInt(_0x41d599(0xec))/0x5+parseInt(_0x41d599(0x11a))/0x6+parseInt(_0x41d599(0xff))/0x7*(parseInt(_0x41d599(0x122))/0x8)+-parseInt(_0x41d599(0x12d))/0x9;if(_0x5bcf29===_0x56695d)break;else _0x48de03['push'](_0x48de03['shift']());}catch(_0x29d742){_0x48de03['push'](_0x48de03['shift']());}}}(a206_0x27ac,0xe1fa4));import{vi}from'vitest';function a206_0x16a7(_0x24195f,_0x1817b4){_0x24195f=_0x24195f-0xe1;const _0x27ac0c=a206_0x27ac();let _0x16a73f=_0x27ac0c[_0x24195f];return _0x16a73f;}export class HTTPMockRegistry{[a206_0x2a3bb9(0x115)]=[];[a206_0x2a3bb9(0x120)]=[];[a206_0x2a3bb9(0x106)]=null;['REST'](_0xede45c,_0x5c1b28){return _0x1db417=>{const _0x433185=a206_0x16a7;if(_0x1db417[_0x433185(0xe1)][_0x433185(0x118)]()!==_0xede45c[_0x433185(0x118)]())return![];const _0x113703=new URL(_0x1db417[_0x433185(0x121)]);if(typeof _0x5c1b28===_0x433185(0xed))return _0x113703[_0x433185(0xfd)]===_0x5c1b28||_0x113703[_0x433185(0xfd)][_0x433185(0x10c)](_0x5c1b28);return _0x5c1b28['test'](_0x113703[_0x433185(0xfd)]);};}['withQuery'](_0x6ccfe0,_0x5dd8bd){return _0x182ee4=>{const _0x3f88a2=a206_0x16a7;if(!_0x6ccfe0(_0x182ee4))return![];const _0xdee590=new URL(_0x182ee4[_0x3f88a2(0x121)]);return Object['entries'](_0x5dd8bd)[_0x3f88a2(0x10e)](([_0x1fe508,_0x3a9e19])=>_0xdee590[_0x3f88a2(0x10a)][_0x3f88a2(0xf4)](_0x1fe508)===_0x3a9e19);};}[a206_0x2a3bb9(0xe8)](_0x2380d3,_0x320139){return _0x2d62f4=>{const _0x580845=a206_0x16a7;if(!_0x2380d3(_0x2d62f4))return![];if(typeof _0x320139===_0x580845(0x111))return _0x320139(_0x2d62f4[_0x580845(0x109)]);return JSON['stringify'](_0x2d62f4[_0x580845(0x109)])===JSON[_0x580845(0xfc)](_0x320139);};}[a206_0x2a3bb9(0xf0)](_0x21016d,_0x35e1cd){return _0x29d8e5=>{if(!_0x21016d(_0x29d8e5))return![];const _0x9b2af7=new URL(_0x29d8e5['url']);return _0x9b2af7['host']===_0x35e1cd;};}[a206_0x2a3bb9(0x12a)](_0x114ea4,_0x3919be,_0x28c55a){const _0x2e5638=a206_0x2a3bb9;this[_0x2e5638(0x115)]['push']({'matcher':_0x114ea4,'responder':_0x3919be,'matched':![],'matchCount':0x0,'stack':new Error()['stack']??'','description':_0x28c55a?.[_0x2e5638(0x11c)]});}[a206_0x2a3bb9(0x101)](_0x47904c,_0x153d77,_0x5d8f8b){const _0x23fe73=_0x47de28=>{return _0x5d8f8b(_0x47de28['body'],_0x47de28),_0x153d77(_0x47de28);};this['register'](_0x47904c,_0x23fe73);}static[a206_0x2a3bb9(0x10d)](_0x33ba8e,_0x99fcf9=0xc8){const _0x2680d1=a206_0x2a3bb9;return()=>new Response(JSON['stringify'](_0x33ba8e),{'status':_0x99fcf9,'headers':{'Content-Type':_0x2680d1(0x100)}});}static[a206_0x2a3bb9(0x124)](_0x220401,_0x54184c,_0x314174='simple'){return()=>{const _0x4c66c4=a206_0x16a7;let _0x4a34ad;switch(_0x314174){case _0x4c66c4(0x103):_0x4a34ad={'errors':{'error':_0x54184c,'message':_0x54184c,'severity':_0x4c66c4(0xee),'status_code':_0x220401}};break;case _0x4c66c4(0xf7):_0x4a34ad={'type':_0x4c66c4(0xf9)+_0x220401,'title':HTTPMockRegistry[_0x4c66c4(0x11e)](_0x220401),'status':_0x220401,'detail':_0x54184c};break;default:_0x4a34ad={'error':_0x54184c};}return new Response(JSON[_0x4c66c4(0xfc)](_0x4a34ad),{'status':_0x220401,'headers':{'Content-Type':'application/json'}});};}static['jsonResponseWithHeaders'](_0x20712a,_0x290cf7,_0x1fa6b4=0xc8){const _0xdf5da7=a206_0x2a3bb9;return()=>new Response(JSON[_0xdf5da7(0xfc)](_0x20712a),{'status':_0x1fa6b4,'headers':{'Content-Type':'application/json',..._0x290cf7}});}static[a206_0x2a3bb9(0xe5)](_0x915366,_0x4cb49c=0xc8){return()=>new Response(_0x915366,{'status':_0x4cb49c,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0x48f4f8){return()=>{throw new Error(_0x48f4f8);};}[a206_0x2a3bb9(0x128)](){const _0x5b60f2=a206_0x2a3bb9;return this[_0x5b60f2(0x106)]=vi['fn']()[_0x5b60f2(0xe2)](async(_0x2a0d94,_0x5707cf)=>{const _0x2ae237=_0x5b60f2,_0x35118d=this[_0x2ae237(0x123)](_0x2a0d94,_0x5707cf);this[_0x2ae237(0x120)][_0x2ae237(0x12c)](_0x35118d);for(const _0x4a6c08 of this[_0x2ae237(0x115)]){if(_0x4a6c08['matcher'](_0x35118d))return _0x4a6c08[_0x2ae237(0x12b)]=!![],_0x4a6c08['matchCount']++,_0x4a6c08[_0x2ae237(0x125)](_0x35118d);}const _0x47a0d7=this[_0x2ae237(0x115)]['map']((_0x4ccb45,_0x16ade8)=>'\x20\x20'+(_0x16ade8+0x1)+'.\x20'+(_0x4ccb45[_0x2ae237(0x11c)]??_0x2ae237(0x129)))[_0x2ae237(0xf5)]('\x0a');throw new Error(_0x2ae237(0xf1)+_0x35118d['method']+'\x20'+_0x35118d[_0x2ae237(0x121)]+'\x0a'+(_0x2ae237(0xf3)+JSON[_0x2ae237(0xfc)](_0x35118d[_0x2ae237(0x109)])+'\x0a')+(_0x2ae237(0x11f)+(_0x47a0d7||_0x2ae237(0xf6))));}),this[_0x5b60f2(0x106)];}['parseRequest'](_0xcc40af,_0x3b5f13){const _0x3e8402=a206_0x2a3bb9,_0x147141={};if(_0x3b5f13?.[_0x3e8402(0xfb)]){if(_0x3b5f13['headers']instanceof Headers)_0x3b5f13[_0x3e8402(0xfb)][_0x3e8402(0xf2)]((_0xa3a8af,_0x59d4fd)=>{const _0x3a1925=_0x3e8402;_0x147141[_0x59d4fd[_0x3a1925(0x10b)]()]=_0xa3a8af;});else{if(Array['isArray'](_0x3b5f13['headers']))for(const [_0x3a37bc,_0x2a1a3b]of _0x3b5f13[_0x3e8402(0xfb)]){_0x147141[_0x3a37bc[_0x3e8402(0x10b)]()]=_0x2a1a3b;}else for(const [_0x1f511e,_0xb1fb11]of Object[_0x3e8402(0x117)](_0x3b5f13[_0x3e8402(0xfb)])){_0xb1fb11!==undefined&&(_0x147141[_0x1f511e[_0x3e8402(0x10b)]()]=_0xb1fb11);}}}let _0x2d3df8;if(_0x3b5f13?.[_0x3e8402(0x109)])try{_0x2d3df8=JSON['parse'](_0x3b5f13[_0x3e8402(0x109)]);}catch{_0x2d3df8=_0x3b5f13[_0x3e8402(0x109)];}return{'method':_0x3b5f13?.['method']??_0x3e8402(0x104),'url':_0xcc40af,'headers':_0x147141,'body':_0x2d3df8};}[a206_0x2a3bb9(0xf8)](_0x5dbb80){const _0x4608d5=a206_0x2a3bb9,_0x2a6ea3=this[_0x4608d5(0x115)][_0x4608d5(0x113)](_0x57dfe9=>!_0x57dfe9['matched']);if(_0x2a6ea3[_0x4608d5(0x116)]>0x0){const _0x172292=_0x2a6ea3[_0x4608d5(0xe7)](_0x153b5c=>{const _0x3c20a3=_0x4608d5,_0x4a5082=_0x153b5c[_0x3c20a3(0x11c)]?'\x20('+_0x153b5c[_0x3c20a3(0x11c)]+')':'',_0x21b1c0=_0x153b5c[_0x3c20a3(0xe9)][_0x3c20a3(0x11b)]('\x0a')[_0x3c20a3(0x108)](0x2,0x5)['join']('\x0a');return _0x3c20a3(0xea)+_0x4a5082+_0x3c20a3(0x10f)+_0x21b1c0;});_0x5dbb80[_0x4608d5(0xeb)](_0x2a6ea3[_0x4608d5(0x116)]+'\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a'+_0x172292[_0x4608d5(0xf5)]('\x0a\x0a'));}}['getRequests'](){return[...this['requests']];}['getLastRequest'](){const _0x9e1615=a206_0x2a3bb9;return this[_0x9e1615(0x120)][this[_0x9e1615(0x120)][_0x9e1615(0x116)]-0x1];}['wasCalled'](_0x3fcdcf,_0xf360bd){const _0x5df107=a206_0x2a3bb9;return this[_0x5df107(0x120)][_0x5df107(0x112)](_0x26c6c6=>{const _0x21e13b=_0x5df107;if(_0x26c6c6[_0x21e13b(0xe1)][_0x21e13b(0x118)]()!==_0x3fcdcf[_0x21e13b(0x118)]())return![];if(typeof _0xf360bd===_0x21e13b(0xed))return _0x26c6c6[_0x21e13b(0x121)][_0x21e13b(0x10c)](_0xf360bd);return _0xf360bd[_0x21e13b(0xfa)](_0x26c6c6[_0x21e13b(0x121)]);});}['getMatchCount'](_0x2a0854){const _0x4a3b1f=a206_0x2a3bb9;return this[_0x4a3b1f(0x115)][_0x2a0854]?.['matchCount']??0x0;}[a206_0x2a3bb9(0x105)](){const _0x52448a=a206_0x2a3bb9;this['stubs']=[],this[_0x52448a(0x120)]=[],this[_0x52448a(0x106)]=null;}static['getStatusText'](_0x713f6f){const _0x4674b7=a206_0x2a3bb9,_0x425901={0xc8:'OK',0xc9:_0x4674b7(0xfe),0xcc:_0x4674b7(0x110),0x190:'Bad\x20Request',0x191:_0x4674b7(0xe3),0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x4674b7(0xef),0x1a6:_0x4674b7(0x107),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x4674b7(0xe4),0x1f6:_0x4674b7(0x127),0x1f7:_0x4674b7(0x114)};return _0x425901[_0x713f6f]??_0x4674b7(0xe6);}}export function createHTTPMock(){return new HTTPMockRegistry();}function a206_0x27ac(){const _0xdfe8e3=['3679232XsMtId','td-api','GET','reset','fetchMock','Unprocessable\x20Entity','slice','body','searchParams','toLowerCase','includes','jsonResponse','every','\x20registered\x20at:\x0a','No\x20Content','function','some','filter','Service\x20Unavailable','stubs','length','entries','toUpperCase','3vRHkUw','1884120yXLERp','split','description','461672XikXOM','getStatusText','Registered\x20stubs:\x0a','requests','url','8CdLExd','parseRequest','errorResponse','responder','555224vTZdBP','Bad\x20Gateway','createFetch','unnamed\x20stub','register','matched','push','939627pYjEnK','method','mockImplementation','Unauthorized','Internal\x20Server\x20Error','textResponse','Unknown','map','withBody','stack','Unmatched\x20stub','fail','7093685uJKaox','string','error','Conflict','withHost','No\x20stub\x20matched\x20request:\x20','forEach','Request\x20body:\x20','get','join','\x20\x20(none)','rfc9457','verify','https://api.treasuredata.com/errors/','test','headers','stringify','pathname','Created','6269102zxdJxV','application/json','registerWithInspector'];a206_0x27ac=function(){return _0xdfe8e3;};return a206_0x27ac();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x761f3a,_0x4c0501){var _0x700f98=a207_0x333a,_0x4598b5=_0x761f3a();while(!![]){try{var _0x5ac057=-parseInt(_0x700f98(0xe6))/0x1+-parseInt(_0x700f98(0xe1))/0x2*(-parseInt(_0x700f98(0xdf))/0x3)+parseInt(_0x700f98(0xe3))/0x4+parseInt(_0x700f98(0xe5))/0x5*(parseInt(_0x700f98(0xe7))/0x6)+parseInt(_0x700f98(0xe0))/0x7+-parseInt(_0x700f98(0xe2))/0x8+-parseInt(_0x700f98(0xe4))/0x9;if(_0x5ac057===_0x4c0501)break;else _0x4598b5['push'](_0x4598b5['shift']());}catch(_0x146dbe){_0x4598b5['push'](_0x4598b5['shift']());}}}(a207_0x1e4c,0xa3380));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a207_0x1e4c(){var _0x5d8949=['397928BYdfSj','2271969Oqhhmx','37435kZIltD','939444WUlYfv','750kwLBxN','128862DzNbdR','5120171SUQMmh','46uNtyOw','7154584YmIuKz'];a207_0x1e4c=function(){return _0x5d8949;};return a207_0x1e4c();}function a207_0x333a(_0x34a325,_0x4b4f33){_0x34a325=_0x34a325-0xdf;var _0x1e4c86=a207_0x1e4c();var _0x333a25=_0x1e4c86[_0x34a325];return _0x333a25;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a208_0x4542(_0x523c7d,_0x15bba9){_0x523c7d=_0x523c7d-0x157;const _0x4a2451=a208_0x4a24();let _0x454291=_0x4a2451[_0x523c7d];return _0x454291;}(function(_0x1e1eb1,_0x13881a){const _0x2efbed=a208_0x4542,_0x1e024d=_0x1e1eb1();while(!![]){try{const _0x404c94=parseInt(_0x2efbed(0x15e))/0x1*(-parseInt(_0x2efbed(0x15a))/0x2)+parseInt(_0x2efbed(0x162))/0x3*(parseInt(_0x2efbed(0x158))/0x4)+-parseInt(_0x2efbed(0x15d))/0x5+parseInt(_0x2efbed(0x157))/0x6*(parseInt(_0x2efbed(0x163))/0x7)+-parseInt(_0x2efbed(0x15c))/0x8+-parseInt(_0x2efbed(0x159))/0x9+parseInt(_0x2efbed(0x15f))/0xa;if(_0x404c94===_0x13881a)break;else _0x1e024d['push'](_0x1e024d['shift']());}catch(_0x565092){_0x1e024d['push'](_0x1e024d['shift']());}}}(a208_0x4a24,0x44d61));function a208_0x4a24(){const _0x2358d3=['push','1251759YRfVVA','3049403rOnlEb','6SDCrDf','4HwEkuI','2261412smtrYW','2oCygMB','slice','3220768SznZDI','329935UDLUbU','278231rkcxQk','4271530SdjpQw','length'];a208_0x4a24=function(){return _0x2358d3;};return a208_0x4a24();}export async function batchAsync(_0x130eeb,_0x52d2e2,_0x229443=0xa){const _0x89cfed=a208_0x4542,_0x5c9295=[];for(let _0x23352a=0x0;_0x23352a<_0x130eeb[_0x89cfed(0x160)];_0x23352a+=_0x229443){const _0x551324=_0x130eeb[_0x89cfed(0x15b)](_0x23352a,_0x23352a+_0x229443),_0x471eee=await Promise['all'](_0x551324['map'](_0x52d2e2));_0x5c9295[_0x89cfed(0x161)](..._0x471eee);}return _0x5c9295;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a209_0x502ed6=a209_0x345d;(function(_0xb1e1c0,_0x41b8dc){const _0x145a75=a209_0x345d,_0xe57741=_0xb1e1c0();while(!![]){try{const _0x1ac893=-parseInt(_0x145a75(0xd5))/0x1+-parseInt(_0x145a75(0xc7))/0x2*(-parseInt(_0x145a75(0xca))/0x3)+-parseInt(_0x145a75(0xd9))/0x4*(parseInt(_0x145a75(0xe1))/0x5)+parseInt(_0x145a75(0xde))/0x6*(-parseInt(_0x145a75(0xd1))/0x7)+-parseInt(_0x145a75(0xdb))/0x8*(parseInt(_0x145a75(0xd2))/0x9)+-parseInt(_0x145a75(0xd8))/0xa+parseInt(_0x145a75(0xe6))/0xb*(parseInt(_0x145a75(0xda))/0xc);if(_0x1ac893===_0x41b8dc)break;else _0xe57741['push'](_0xe57741['shift']());}catch(_0x1fe7ef){_0xe57741['push'](_0xe57741['shift']());}}}(a209_0x9348,0xaef5a));import*as a209_0x472e64 from'chalk';const Chalk=a209_0x472e64[a209_0x502ed6(0xdc)];export function shouldUseColor(_0xe0e46f={}){const _0x44968f=a209_0x502ed6;if(_0xe0e46f[_0x44968f(0xdf)]===!![])return![];if(_0xe0e46f[_0x44968f(0xe5)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x44968f(0xd4)][_0x44968f(0xd3)]??![];}export function getChalk(_0xdaca0a={}){if(shouldUseColor(_0xdaca0a))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0xe5e2a8,_0x5e135d={}){const _0x236b46=a209_0x502ed6;return getChalk(_0x5e135d)[_0x236b46(0xcf)](_0xe5e2a8);}export function colorHeader(_0x42d038,_0x219d40={}){const _0x327783=a209_0x502ed6;return getChalk(_0x219d40)[_0x327783(0xce)](_0x42d038);}export function colorType(_0x302cd8,_0x3d6317={}){const _0x1dd2d7=a209_0x502ed6;return getChalk(_0x3d6317)[_0x1dd2d7(0xcf)](_0x302cd8);}export function colorJSONKey(_0x304bf6,_0x1c98c4={}){const _0x2c776e=a209_0x502ed6;return getChalk(_0x1c98c4)[_0x2c776e(0xd6)](_0x304bf6);}export function colorJSONString(_0x743a8e,_0x92e508={}){const _0x35d575=a209_0x502ed6;return getChalk(_0x92e508)[_0x35d575(0xcc)](_0x743a8e);}export function colorJSONNumber(_0x199285,_0x130970={}){const _0x53986c=a209_0x502ed6;return getChalk(_0x130970)[_0x53986c(0xce)](_0x199285);}export function colorJSONBoolean(_0x5dcac6,_0x2977f5={}){return getChalk(_0x2977f5)['yellow'](_0x5dcac6);}export function colorJSONNull(_0x5882d5,_0x3bc40c={}){return getChalk(_0x3bc40c)['dim'](_0x5882d5);}function a209_0x345d(_0x588a45,_0x493e95){_0x588a45=_0x588a45-0xc7;const _0x93486e=a209_0x9348();let _0x345de6=_0x93486e[_0x588a45];return _0x345de6;}export function colorizeJSONCompact(_0x1a4053,_0x38b3b8={}){const _0x22541d=a209_0x502ed6;if(!shouldUseColor(_0x38b3b8))return JSON[_0x22541d(0xe2)](_0x1a4053);if(_0x1a4053===null)return colorJSONNull('null',_0x38b3b8);if(typeof _0x1a4053===_0x22541d(0xd0))return colorJSONBoolean(String(_0x1a4053),_0x38b3b8);if(typeof _0x1a4053===_0x22541d(0xc8))return colorJSONNumber(String(_0x1a4053),_0x38b3b8);if(typeof _0x1a4053===_0x22541d(0xe4))return colorJSONString(JSON[_0x22541d(0xe2)](_0x1a4053),_0x38b3b8);if(Array[_0x22541d(0xdd)](_0x1a4053)){if(_0x1a4053[_0x22541d(0xcb)]===0x0)return'[]';const _0x35dc57=_0x1a4053[_0x22541d(0xe7)](_0x25d818=>colorizeJSONCompact(_0x25d818,_0x38b3b8));return'['+_0x35dc57[_0x22541d(0xe3)](',')+']';}if(typeof _0x1a4053===_0x22541d(0xe0)){const _0x34e0b1=Object[_0x22541d(0xcd)](_0x1a4053);if(_0x34e0b1[_0x22541d(0xcb)]===0x0)return'{}';const _0x2524f3=_0x34e0b1['map'](([_0x54573e,_0x268dcc])=>{const _0x23e85e=_0x22541d,_0x44d444=colorJSONKey(JSON[_0x23e85e(0xe2)](_0x54573e),_0x38b3b8),_0x471314=colorizeJSONCompact(_0x268dcc,_0x38b3b8);return _0x44d444+':'+_0x471314;});return'{'+_0x2524f3[_0x22541d(0xe3)](',')+'}';}return String(_0x1a4053);}export function colorizeJSON(_0x44834a,_0x2531f5={},_0x94d0b1=0x0){const _0x4f94e8=a209_0x502ed6;if(!shouldUseColor(_0x2531f5))return JSON['stringify'](_0x44834a,null,0x2);const _0x2a05cd='\x20'['repeat'](_0x94d0b1),_0x61702b=_0x94d0b1+0x2;if(_0x44834a===null)return colorJSONNull(_0x4f94e8(0xc9),_0x2531f5);if(typeof _0x44834a==='boolean')return colorJSONBoolean(String(_0x44834a),_0x2531f5);if(typeof _0x44834a===_0x4f94e8(0xc8))return colorJSONNumber(String(_0x44834a),_0x2531f5);if(typeof _0x44834a===_0x4f94e8(0xe4))return colorJSONString(JSON[_0x4f94e8(0xe2)](_0x44834a),_0x2531f5);if(Array[_0x4f94e8(0xdd)](_0x44834a)){if(_0x44834a[_0x4f94e8(0xcb)]===0x0)return'[]';const _0x3ec552=_0x44834a[_0x4f94e8(0xe7)](_0x5e4141=>{const _0x23f370=_0x4f94e8,_0x45d72e=colorizeJSON(_0x5e4141,_0x2531f5,_0x61702b);return''+'\x20'[_0x23f370(0xd7)](_0x61702b)+_0x45d72e;});return'[\x0a'+_0x3ec552[_0x4f94e8(0xe3)](',\x0a')+('\x0a'+_0x2a05cd+']');}if(typeof _0x44834a===_0x4f94e8(0xe0)){const _0x52f5c5=Object['entries'](_0x44834a);if(_0x52f5c5[_0x4f94e8(0xcb)]===0x0)return'{}';const _0x395ab4=_0x52f5c5['map'](([_0x31d987,_0x2a9328])=>{const _0x24770d=_0x4f94e8,_0x3419e7=colorJSONKey(JSON[_0x24770d(0xe2)](_0x31d987),_0x2531f5),_0x4a4f5c=colorizeJSON(_0x2a9328,_0x2531f5,_0x61702b);return''+'\x20'[_0x24770d(0xd7)](_0x61702b)+_0x3419e7+':\x20'+_0x4a4f5c;});return'{\x0a'+_0x395ab4[_0x4f94e8(0xe3)](',\x0a')+('\x0a'+_0x2a05cd+'}');}return String(_0x44834a);}function a209_0x9348(){const _0x3ef1ca=['Chalk','isArray','14466cVTRoV','noColor','object','5TjoREq','stringify','join','string','color','251724ZLgQIr','map','1412Hufvxd','number','null','2838DjPFhB','length','green','entries','cyan','dim','boolean','3227aIKMzj','63AGaSVl','isTTY','stdout','598965FsNadZ','blue','repeat','2503290TjpIpa','1848972xcfoNb','1800crIXVQ','1098096IXpiNg'];a209_0x9348=function(){return _0x3ef1ca;};return a209_0x9348();}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a210_0x47ae(){const _0x19fc66=['180592UkHzzb','cyan','3005415uGljfv','has','1245441mHLOeM','content','add','3521928CYZLLv','max','length','padStart','added','old','min','forEach','40roHMak','164855Keieqs','fill','\x20+\x20','type','dim','1SHSads','4WsrIxV','222RAalqs','\x20-\x20','repeat','size','some','5902884UUITbu','33YUBCFc','green','push','unshift','removed','2155446LmnvGJ','\x20\x20\x20','join'];a210_0x47ae=function(){return _0x19fc66;};return a210_0x47ae();}(function(_0x38b8f3,_0x97e253){const _0x469fa9=a210_0x4614,_0x243aae=_0x38b8f3();while(!![]){try{const _0x82cf81=parseInt(_0x469fa9(0x19a))/0x1*(parseInt(_0x469fa9(0x185))/0x2)+-parseInt(_0x469fa9(0x189))/0x3*(-parseInt(_0x469fa9(0x19b))/0x4)+parseInt(_0x469fa9(0x195))/0x5*(-parseInt(_0x469fa9(0x19c))/0x6)+parseInt(_0x469fa9(0x187))/0x7+parseInt(_0x469fa9(0x18c))/0x8+parseInt(_0x469fa9(0x1a7))/0x9*(-parseInt(_0x469fa9(0x194))/0xa)+-parseInt(_0x469fa9(0x1a2))/0xb*(-parseInt(_0x469fa9(0x1a1))/0xc);if(_0x82cf81===_0x97e253)break;else _0x243aae['push'](_0x243aae['shift']());}catch(_0x500874){_0x243aae['push'](_0x243aae['shift']());}}}(a210_0x47ae,0xa444f));import a210_0x35354a from'chalk';function a210_0x4614(_0x4cdc79,_0xcef1c5){_0x4cdc79=_0x4cdc79-0x184;const _0x47ae88=a210_0x47ae();let _0x4614cb=_0x47ae88[_0x4cdc79];return _0x4614cb;}export function generateDiff(_0x19ecfd,_0x375131){const _0x2bacfd=a210_0x4614,_0x1b6a89=_0x19ecfd['split']('\x0a'),_0x28d17d=_0x375131['split']('\x0a'),_0x169cab=[],_0x333ccc=computeLCS(_0x1b6a89,_0x28d17d);let _0x59e25=0x0,_0x56e964=0x0,_0x176800=0x0;while(_0x59e25<_0x1b6a89[_0x2bacfd(0x18e)]||_0x56e964<_0x28d17d[_0x2bacfd(0x18e)]){if(_0x176800<_0x333ccc[_0x2bacfd(0x18e)]&&_0x59e25<_0x1b6a89[_0x2bacfd(0x18e)]&&_0x1b6a89[_0x59e25]===_0x333ccc[_0x176800])_0x56e964<_0x28d17d['length']&&_0x28d17d[_0x56e964]===_0x333ccc[_0x176800]?(_0x169cab[_0x2bacfd(0x1a4)]({'type':'unchanged','content':_0x1b6a89[_0x59e25]}),_0x59e25++,_0x56e964++,_0x176800++):(_0x169cab[_0x2bacfd(0x1a4)]({'type':'added','content':_0x28d17d[_0x56e964]}),_0x56e964++);else{if(_0x176800<_0x333ccc[_0x2bacfd(0x18e)]&&_0x56e964<_0x28d17d[_0x2bacfd(0x18e)]&&_0x28d17d[_0x56e964]===_0x333ccc[_0x176800])_0x169cab[_0x2bacfd(0x1a4)]({'type':_0x2bacfd(0x1a6),'content':_0x1b6a89[_0x59e25]}),_0x59e25++;else{if(_0x59e25<_0x1b6a89[_0x2bacfd(0x18e)]&&(_0x176800>=_0x333ccc[_0x2bacfd(0x18e)]||_0x1b6a89[_0x59e25]!==_0x333ccc[_0x176800]))_0x169cab[_0x2bacfd(0x1a4)]({'type':'removed','content':_0x1b6a89[_0x59e25]}),_0x59e25++;else _0x56e964<_0x28d17d['length']&&(_0x169cab['push']({'type':_0x2bacfd(0x190),'content':_0x28d17d[_0x56e964]}),_0x56e964++);}}}return _0x169cab;}function computeLCS(_0x12a776,_0x2cb5f6){const _0x13fcbb=a210_0x4614,_0x1192b2=_0x12a776[_0x13fcbb(0x18e)],_0x1963bf=_0x2cb5f6['length'],_0x325dc9=Array(_0x1192b2+0x1)[_0x13fcbb(0x196)](null)['map'](()=>Array(_0x1963bf+0x1)['fill'](0x0));for(let _0x1b60bd=0x1;_0x1b60bd<=_0x1192b2;_0x1b60bd++){for(let _0x591222=0x1;_0x591222<=_0x1963bf;_0x591222++){_0x12a776[_0x1b60bd-0x1]===_0x2cb5f6[_0x591222-0x1]?_0x325dc9[_0x1b60bd][_0x591222]=_0x325dc9[_0x1b60bd-0x1][_0x591222-0x1]+0x1:_0x325dc9[_0x1b60bd][_0x591222]=Math[_0x13fcbb(0x18d)](_0x325dc9[_0x1b60bd-0x1][_0x591222],_0x325dc9[_0x1b60bd][_0x591222-0x1]);}}const _0x249d02=[];let _0x572782=_0x1192b2,_0x2d655e=_0x1963bf;while(_0x572782>0x0&&_0x2d655e>0x0){if(_0x12a776[_0x572782-0x1]===_0x2cb5f6[_0x2d655e-0x1])_0x249d02[_0x13fcbb(0x1a5)](_0x12a776[_0x572782-0x1]),_0x572782--,_0x2d655e--;else _0x325dc9[_0x572782-0x1][_0x2d655e]>_0x325dc9[_0x572782][_0x2d655e-0x1]?_0x572782--:_0x2d655e--;}return _0x249d02;}export function formatDiffWithColors(_0x519820,_0x29f2d1=0x3){const _0x2f1056=a210_0x4614,_0x182d39=new Set();_0x519820[_0x2f1056(0x193)]((_0x498c09,_0x1c68b8)=>{const _0x349052=_0x2f1056;_0x498c09[_0x349052(0x198)]!=='unchanged'&&_0x182d39[_0x349052(0x18b)](_0x1c68b8);});if(_0x182d39[_0x2f1056(0x19f)]===0x0)return'';const _0x24c599=new Set();for(const _0x923c7b of _0x182d39){for(let _0x4a92e6=Math['max'](0x0,_0x923c7b-_0x29f2d1);_0x4a92e6<=Math[_0x2f1056(0x192)](_0x519820['length']-0x1,_0x923c7b+_0x29f2d1);_0x4a92e6++){_0x24c599[_0x2f1056(0x18b)](_0x4a92e6);}}const _0x356d9a=[];let _0x530494=-0x1;const _0x1412d0=_0x519820['length'],_0x527f72=Math['max'](0x3,String(_0x1412d0)[_0x2f1056(0x18e)]),_0x389776=[];let _0x32dc64=0x0,_0x6b2998=0x0;for(const _0x5ef98a of _0x519820){if(_0x5ef98a['type']===_0x2f1056(0x1a6))_0x32dc64++,_0x389776['push']({'old':_0x32dc64,'new':0x0});else _0x5ef98a['type']===_0x2f1056(0x190)?(_0x6b2998++,_0x389776[_0x2f1056(0x1a4)]({'old':0x0,'new':_0x6b2998})):(_0x32dc64++,_0x6b2998++,_0x389776[_0x2f1056(0x1a4)]({'old':_0x32dc64,'new':_0x6b2998}));}for(let _0x36235a=0x0;_0x36235a<_0x519820['length'];_0x36235a++){if(!_0x24c599[_0x2f1056(0x188)](_0x36235a))continue;_0x530494!==-0x1&&_0x36235a>_0x530494+0x1&&_0x356d9a[_0x2f1056(0x1a4)](a210_0x35354a[_0x2f1056(0x186)]('\x20\x20...'));_0x530494=_0x36235a;const _0x37563d=_0x519820[_0x36235a],_0x25e84d=_0x389776[_0x36235a],_0x5c4a5f=_0x25e84d[_0x2f1056(0x191)]>0x0?String(_0x25e84d['old'])[_0x2f1056(0x18f)](_0x527f72):'\x20'[_0x2f1056(0x19e)](_0x527f72),_0x226858=_0x25e84d['new']>0x0?String(_0x25e84d['new'])[_0x2f1056(0x18f)](_0x527f72):'\x20'[_0x2f1056(0x19e)](_0x527f72);switch(_0x37563d[_0x2f1056(0x198)]){case _0x2f1056(0x1a6):_0x356d9a[_0x2f1056(0x1a4)](a210_0x35354a['red'](_0x5c4a5f+'\x20'+_0x226858+_0x2f1056(0x19d)+_0x37563d[_0x2f1056(0x18a)]));break;case _0x2f1056(0x190):_0x356d9a[_0x2f1056(0x1a4)](a210_0x35354a[_0x2f1056(0x1a3)](_0x5c4a5f+'\x20'+_0x226858+_0x2f1056(0x197)+_0x37563d[_0x2f1056(0x18a)]));break;default:_0x356d9a[_0x2f1056(0x1a4)](a210_0x35354a[_0x2f1056(0x199)](_0x5c4a5f+'\x20'+_0x226858+_0x2f1056(0x1a8)+_0x37563d['content']));break;}}return _0x356d9a[_0x2f1056(0x184)]('\x0a');}export function hasChanges(_0x4097c1){const _0x494945=a210_0x4614;return _0x4097c1[_0x494945(0x1a0)](_0x1973e2=>_0x1973e2[_0x494945(0x198)]!=='unchanged');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1e6420,_0x17bf31){const _0xc3a2f7=a211_0x5178,_0x5331f7=_0x1e6420();while(!![]){try{const _0x2974d5=-parseInt(_0xc3a2f7(0xd3))/0x1*(parseInt(_0xc3a2f7(0xd1))/0x2)+-parseInt(_0xc3a2f7(0xe3))/0x3+parseInt(_0xc3a2f7(0xe0))/0x4*(parseInt(_0xc3a2f7(0xdf))/0x5)+parseInt(_0xc3a2f7(0xd5))/0x6*(parseInt(_0xc3a2f7(0xde))/0x7)+-parseInt(_0xc3a2f7(0xdc))/0x8+parseInt(_0xc3a2f7(0xce))/0x9+parseInt(_0xc3a2f7(0xe1))/0xa*(parseInt(_0xc3a2f7(0xd6))/0xb);if(_0x2974d5===_0x17bf31)break;else _0x5331f7['push'](_0x5331f7['shift']());}catch(_0x322a5d){_0x5331f7['push'](_0x5331f7['shift']());}}}(a211_0x5602,0x58ab0));function a211_0x5178(_0x132994,_0x5afc25){_0x132994=_0x132994-0xcd;const _0x5602ac=a211_0x5602();let _0x517873=_0x5602ac[_0x132994];return _0x517873;}import*as a211_0x50cef7 from'node:fs';function a211_0x5602(){const _0x286ce3=['7ZbiMrQ','6310EuHoNB','1040BtUtFq','491350ZxjqjV','dirname','1025196BTzOqM','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','4697622OCGMFn','writeFileSync','chmodSync','7654mlLdrv','mode','71aCoSmm','Should\x20be\x200600\x20or\x20more\x20restrictive.','3595266GodxmB','11VrvNDT','warn','toString','Warning:\x20','statSync','mkdirSync','4174328yBFNxQ',').\x20'];a211_0x5602=function(){return _0x286ce3;};return a211_0x5602();}import*as a211_0x43f8d8 from'node:path';export function setSecureFilePermissions(_0x262a6f){const _0x237ade=a211_0x5178;try{a211_0x50cef7[_0x237ade(0xd0)](_0x262a6f,0x180);}catch{console['warn'](_0x237ade(0xcd)+_0x262a6f);}}export function setSecureDirectoryPermissions(_0x4dcf62){const _0x52b98d=a211_0x5178;try{a211_0x50cef7[_0x52b98d(0xd0)](_0x4dcf62,0x1c0);}catch{console[_0x52b98d(0xd7)](_0x52b98d(0xcd)+_0x4dcf62);}}export function createSecureDirectory(_0x1b0786){const _0x4de806=a211_0x5178;!a211_0x50cef7['existsSync'](_0x1b0786)&&(a211_0x50cef7[_0x4de806(0xdb)](_0x1b0786,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1b0786));}export function validateSecureFilePermissions(_0x1e3627){const _0x1e4cff=a211_0x5178;try{const _0x52243c=a211_0x50cef7[_0x1e4cff(0xda)](_0x1e3627),_0x559e36=_0x52243c[_0x1e4cff(0xd2)]&0x1ff,_0x48934c=(_0x559e36&0x3f)!==0x0;if(_0x48934c)return console[_0x1e4cff(0xd7)](_0x1e4cff(0xd9)+_0x1e3627+'\x20has\x20insecure\x20permissions\x20('+_0x559e36[_0x1e4cff(0xd8)](0x8)+_0x1e4cff(0xdd)+_0x1e4cff(0xd4)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x4be069,_0x3bb807){const _0x2b965a=a211_0x5178,_0x48f6c4=a211_0x43f8d8[_0x2b965a(0xe2)](_0x4be069);createSecureDirectory(_0x48f6c4),a211_0x50cef7[_0x2b965a(0xcf)](_0x4be069,_0x3bb807,{'mode':0x180}),setSecureFilePermissions(_0x4be069);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4c05b1,_0x5def99){const _0x5503dd=a212_0x3890,_0x2e45bc=_0x4c05b1();while(!![]){try{const _0x123707=parseInt(_0x5503dd(0x198))/0x1+parseInt(_0x5503dd(0x1ab))/0x2*(-parseInt(_0x5503dd(0x1a3))/0x3)+parseInt(_0x5503dd(0x1a5))/0x4*(parseInt(_0x5503dd(0x19a))/0x5)+parseInt(_0x5503dd(0x1a2))/0x6+-parseInt(_0x5503dd(0x1ad))/0x7*(parseInt(_0x5503dd(0x1a9))/0x8)+parseInt(_0x5503dd(0x19d))/0x9+-parseInt(_0x5503dd(0x1a1))/0xa*(parseInt(_0x5503dd(0x19e))/0xb);if(_0x123707===_0x5def99)break;else _0x2e45bc['push'](_0x2e45bc['shift']());}catch(_0x4e979d){_0x2e45bc['push'](_0x2e45bc['shift']());}}}(a212_0x40f2,0xd8e90));function a212_0x3890(_0x202403,_0x361a7b){_0x202403=_0x202403-0x198;const _0x40f2de=a212_0x40f2();let _0x3890bc=_0x40f2de[_0x202403];return _0x3890bc;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a212_0x40f2(){const _0x4f39ab=['NOT_FOUND','56693hiPGng','1182402xZHBWr','message','2370200keaUUr','code','\x27:\x20','13179609QsrJoT','11jNcWRf','PERMISSION_DENIED','utf-8','20870540PfUhxM','6891894nQBBVj','3Moghdp','Error\x20reading\x20file\x20\x27','12FAOfVh','EACCES','File\x20\x27','Permission\x20denied\x20reading\x20file\x20\x27','1208oXHkdo','INTERNAL','2038210QaycTd'];a212_0x40f2=function(){return _0x4f39ab;};return a212_0x40f2();}export function readFileContent(_0x5223da){const _0x22ecbc=a212_0x3890;try{return readFileSync(_0x5223da,_0x22ecbc(0x1a0));}catch(_0x1eb2fc){const _0x24c46d=_0x1eb2fc[_0x22ecbc(0x19b)];if(_0x24c46d==='ENOENT')throw new SDKError(ErrorCode[_0x22ecbc(0x1ac)],_0x22ecbc(0x1a7)+_0x5223da+'\x27\x20not\x20found',_0x1eb2fc);else{if(_0x24c46d===_0x22ecbc(0x1a6))throw new SDKError(ErrorCode[_0x22ecbc(0x19f)],_0x22ecbc(0x1a8)+_0x5223da+'\x27',_0x1eb2fc);else throw new SDKError(ErrorCode[_0x22ecbc(0x1aa)],_0x22ecbc(0x1a4)+_0x5223da+_0x22ecbc(0x19c)+_0x1eb2fc[_0x22ecbc(0x199)],_0x1eb2fc);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x291119,_0x19b37f){const _0xdc1db8=a213_0xd33a,_0x29075e=_0x291119();while(!![]){try{const _0x502bf7=-parseInt(_0xdc1db8(0x159))/0x1*(-parseInt(_0xdc1db8(0x163))/0x2)+-parseInt(_0xdc1db8(0x158))/0x3*(-parseInt(_0xdc1db8(0x157))/0x4)+parseInt(_0xdc1db8(0x166))/0x5+parseInt(_0xdc1db8(0x169))/0x6*(-parseInt(_0xdc1db8(0x16a))/0x7)+-parseInt(_0xdc1db8(0x16b))/0x8+parseInt(_0xdc1db8(0x153))/0x9*(-parseInt(_0xdc1db8(0x15e))/0xa)+parseInt(_0xdc1db8(0x152))/0xb;if(_0x502bf7===_0x19b37f)break;else _0x29075e['push'](_0x29075e['shift']());}catch(_0x4992d9){_0x29075e['push'](_0x29075e['shift']());}}}(a213_0xab90,0x4513b));import*as a213_0x3b4ad5 from'node:https';function a213_0xab90(){const _0x307e70=['tag_name','558EQxGQx','31087HMnsbg','1879808oCPAob','now','/repos/','application/vnd.github+json','error','timeout','/releases?per_page=20','parse','7963802lSkoNS','168228wvyyHq','length','toString','statusCode','25644HhkcZX','3mDsGFa','15757CZjGNl','releases','GitHub\x20API\x20returned\x20','slice','fetchedAt','90DLqMTv','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','api.github.com','set','prerelease','4wQRylH','find','next','1686245gTblsQ','destroy'];a213_0xab90=function(){return _0x307e70;};return a213_0xab90();}function a213_0xd33a(_0x818a0,_0x4fa89e){_0x818a0=_0x818a0-0x152;const _0xab90cc=a213_0xab90();let _0xd33a4=_0xab90cc[_0x818a0];return _0xd33a4;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x5732d7,_0x308d2f,_0x14ece0){const _0x2eb9d6=a213_0xd33a,_0x4eaa8d=_0x5732d7+'/'+_0x308d2f,_0x1e2dea=cache['get'](_0x4eaa8d);if(_0x1e2dea&&Date[_0x2eb9d6(0x16c)]()-_0x1e2dea[_0x2eb9d6(0x15d)]<CACHE_TTL_MS)return Promise['resolve'](_0x1e2dea[_0x2eb9d6(0x15a)]);return new Promise((_0xe5945c,_0x36092b)=>{const _0x581138=_0x2eb9d6,_0x2b680e={'hostname':_0x581138(0x160),'path':_0x581138(0x16d)+_0x5732d7+'/'+_0x308d2f+_0x581138(0x171),'headers':{'User-Agent':_0x14ece0,'Accept':_0x581138(0x16e)},'timeout':REQUEST_TIMEOUT_MS},_0x3eb599=a213_0x3b4ad5['get'](_0x2b680e,_0x57f1a2=>{let _0x2e90f9='';_0x57f1a2['on']('data',_0x1f699a=>{const _0xccfe09=a213_0xd33a;_0x2e90f9+=_0x1f699a[_0xccfe09(0x155)]();}),_0x57f1a2['on']('end',()=>{const _0x1668b5=a213_0xd33a;if(_0x57f1a2[_0x1668b5(0x156)]!==0xc8){_0x36092b(new Error(_0x1668b5(0x15b)+_0x57f1a2['statusCode']+':\x20'+_0x2e90f9[_0x1668b5(0x15c)](0x0,0xc8)));return;}try{const _0x5de49b=JSON[_0x1668b5(0x172)](_0x2e90f9);cache[_0x1668b5(0x161)](_0x4eaa8d,{'releases':_0x5de49b,'fetchedAt':Date[_0x1668b5(0x16c)]()}),_0xe5945c(_0x5de49b);}catch(_0x3ba6f4){_0x36092b(_0x3ba6f4);}});});_0x3eb599['on'](_0x581138(0x170),()=>{const _0x3d3169=_0x581138;_0x3eb599[_0x3d3169(0x167)](),_0x36092b(new Error(_0x3d3169(0x15f)+REQUEST_TIMEOUT_MS+'ms'));}),_0x3eb599['on'](_0x581138(0x16f),_0x36092b);});}export async function resolveReleaseTag(_0x279ee6,_0x3f46e7,_0x48d1b2,_0x5e48c2){const _0x3616b7=a213_0xd33a;if(_0x279ee6===_0x3616b7(0x165))return null;const _0x4db955=await fetchGitHubReleases(_0x3f46e7,_0x48d1b2,_0x5e48c2);if(_0x4db955[_0x3616b7(0x154)]===0x0)return null;const _0x283f4b=_0x4db955[_0x3616b7(0x164)](_0x2257ef=>!_0x2257ef[_0x3616b7(0x162)]);return _0x283f4b?_0x283f4b[_0x3616b7(0x168)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x51fe73,_0x27c5eb){const _0x9cd1b0=a214_0x4598,_0x4c48fd=_0x51fe73();while(!![]){try{const _0x487737=-parseInt(_0x9cd1b0(0xef))/0x1*(parseInt(_0x9cd1b0(0xee))/0x2)+-parseInt(_0x9cd1b0(0xe9))/0x3*(-parseInt(_0x9cd1b0(0xde))/0x4)+parseInt(_0x9cd1b0(0xeb))/0x5+-parseInt(_0x9cd1b0(0xe4))/0x6*(-parseInt(_0x9cd1b0(0xdf))/0x7)+parseInt(_0x9cd1b0(0xe8))/0x8*(parseInt(_0x9cd1b0(0xe3))/0x9)+parseInt(_0x9cd1b0(0xf2))/0xa+-parseInt(_0x9cd1b0(0xdd))/0xb;if(_0x487737===_0x27c5eb)break;else _0x4c48fd['push'](_0x4c48fd['shift']());}catch(_0x138247){_0x4c48fd['push'](_0x4c48fd['shift']());}}}(a214_0xac20,0x95152));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a214_0xac20(){const _0x2e1b65=['parse','{profile}','9WwFtdS','8880HtQsjn','.cache','trim','\x22,\x20cannot\x20register\x20for\x20\x22','8946472dUBFny','177hBjnkW','\x22\x20already\x20registered\x20by\x20\x22','4940430JwqtIn','stringify','tdx','147044zvzfPw','13FNcyww','replace','default','10259090rVcaFP','set','utf-8','28514849JiLNyl','34868oizpVV','2422EiSBAg','get'];a214_0xac20=function(){return _0x2e1b65;};return a214_0xac20();}import{join}from'path';function a214_0x4598(_0x32055c,_0x465e05){_0x32055c=_0x32055c-0xdb;const _0xac20d5=a214_0xac20();let _0x45989c=_0xac20d5[_0x32055c];return _0x45989c;}import{homedir}from'os';export function getGlobalCacheDir(){const _0x5926bc=a214_0x4598;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5926bc(0xe5),_0x5926bc(0xed));}const registry=new Map();export function registerGlobalCacheKey(_0x45d3da,_0x4f119c){const _0x632022=a214_0x4598,_0x5a134c=registry[_0x632022(0xe0)](_0x45d3da);if(_0x5a134c&&_0x5a134c!==_0x4f119c)throw new Error('Global\x20cache\x20key\x20\x22'+_0x45d3da+_0x632022(0xea)+_0x5a134c+_0x632022(0xe7)+_0x4f119c+'\x22');registry[_0x632022(0xdb)](_0x45d3da,_0x4f119c);}export function getGlobalCachePath(_0x7c989d){return join(getGlobalCacheDir(),_0x7c989d);}function ensureGlobalCacheDir(){const _0x2b072f=getGlobalCacheDir();!existsSync(_0x2b072f)&&mkdirSync(_0x2b072f,{'recursive':!![]});}function readCacheJson(_0x1f7a86){const _0x2f8b71=a214_0x4598,_0x4086b4=getGlobalCachePath(_0x1f7a86);if(!existsSync(_0x4086b4))return undefined;try{const _0x3b6043=readFileSync(_0x4086b4,_0x2f8b71(0xdc));return JSON[_0x2f8b71(0xe1)](_0x3b6043);}catch{return undefined;}}function writeCacheJson(_0x434f96,_0x25b374){const _0x20baa7=a214_0x4598;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x434f96),JSON[_0x20baa7(0xec)](_0x25b374,null,0x2),_0x20baa7(0xdc));}function readCacheText(_0x5d6b46){const _0x119bf1=a214_0x4598,_0xe21a92=getGlobalCachePath(_0x5d6b46);if(!existsSync(_0xe21a92))return undefined;try{return readFileSync(_0xe21a92,_0x119bf1(0xdc));}catch{return undefined;}}function writeCacheText(_0x175ce1,_0x31c325){const _0x221a77=a214_0x4598;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x175ce1),_0x31c325,_0x221a77(0xdc));}function clearCache(_0x3a59ed){const _0x37f3b3=getGlobalCachePath(_0x3a59ed);if(existsSync(_0x37f3b3))try{unlinkSync(_0x37f3b3);}catch{}}function cacheExists(_0x4e00ac){return existsSync(getGlobalCachePath(_0x4e00ac));}export function createGlobalCache(_0x12008d,_0x7c8332){return registerGlobalCacheKey(_0x12008d,_0x7c8332),{'read':()=>readCacheJson(_0x12008d),'write':_0x1148eb=>writeCacheJson(_0x12008d,_0x1148eb),'clear':()=>clearCache(_0x12008d),'exists':()=>cacheExists(_0x12008d),'path':()=>getGlobalCachePath(_0x12008d)};}export function createGlobalTextCache(_0x4b2bbe,_0x363696){const _0x277135=a214_0x4598;return registerGlobalCacheKey(_0x4b2bbe,_0x363696),{'read':()=>readCacheText(_0x4b2bbe)?.[_0x277135(0xe6)]()||undefined,'write':_0x2c0c67=>writeCacheText(_0x4b2bbe,_0x2c0c67),'clear':()=>clearCache(_0x4b2bbe),'exists':()=>cacheExists(_0x4b2bbe),'path':()=>getGlobalCachePath(_0x4b2bbe)};}export function createProfileCache(_0x49be50,_0x34c949){const _0x24e429=_0x2c19af=>{const _0x28c1d8=a214_0x4598,_0x5e6c9b=_0x2c19af||_0x28c1d8(0xf1);return _0x49be50[_0x28c1d8(0xf0)](_0x28c1d8(0xe2),_0x5e6c9b);};return{'read':_0x743f00=>{const _0x4d275a=_0x24e429(_0x743f00);return registerGlobalCacheKey(_0x4d275a,_0x34c949),readCacheJson(_0x4d275a);},'write':(_0x2bda4d,_0x4acf7f)=>{const _0x5ab112=_0x24e429(_0x2bda4d);registerGlobalCacheKey(_0x5ab112,_0x34c949),writeCacheJson(_0x5ab112,_0x4acf7f);},'clear':_0x50c1c0=>{const _0x45368c=_0x24e429(_0x50c1c0);clearCache(_0x45368c);},'exists':_0x166cfb=>{const _0x2866bd=_0x24e429(_0x166cfb);return cacheExists(_0x2866bd);},'path':_0x50dab6=>{const _0x1ee14c=_0x24e429(_0x50dab6);return getGlobalCachePath(_0x1ee14c);}};}export function createOptionalProfileCache(_0xd7b301,_0x20ba7f,_0x3fe9be={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x3fe9be,_0x136477=_0x4f5a98=>{return _0x4f5a98?''+_0xd7b301+profileSeparator+_0x4f5a98+suffix:''+_0xd7b301+suffix;};return{'read':_0x340e3f=>{const _0x3de7cd=_0x136477(_0x340e3f);return registerGlobalCacheKey(_0x3de7cd,_0x20ba7f),readCacheJson(_0x3de7cd);},'write':(_0x5c1bff,_0x49b6a9)=>{const _0x2072d1=_0x136477(_0x49b6a9);registerGlobalCacheKey(_0x2072d1,_0x20ba7f),writeCacheJson(_0x2072d1,_0x5c1bff);},'clear':_0x496bba=>{const _0x15221a=_0x136477(_0x496bba);clearCache(_0x15221a);},'exists':_0x45277c=>{const _0x5b1fdd=_0x136477(_0x45277c);return cacheExists(_0x5b1fdd);},'path':_0x9b258b=>{const _0x38d846=_0x136477(_0x9b258b);return getGlobalCachePath(_0x38d846);}};}export function clearGlobalRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a215_0x3724(_0x1cd019,_0x2633ed){_0x1cd019=_0x1cd019-0x1df;const _0x40db3c=a215_0x40db();let _0x372484=_0x40db3c[_0x1cd019];return _0x372484;}(function(_0x491149,_0xde6a9a){const _0x5e6f85=a215_0x3724,_0x3f2eda=_0x491149();while(!![]){try{const _0x25b6e8=parseInt(_0x5e6f85(0x1e2))/0x1+-parseInt(_0x5e6f85(0x1f3))/0x2*(parseInt(_0x5e6f85(0x1ef))/0x3)+parseInt(_0x5e6f85(0x1e9))/0x4+parseInt(_0x5e6f85(0x1f2))/0x5*(parseInt(_0x5e6f85(0x1df))/0x6)+parseInt(_0x5e6f85(0x1e3))/0x7*(-parseInt(_0x5e6f85(0x1ea))/0x8)+-parseInt(_0x5e6f85(0x1ec))/0x9+parseInt(_0x5e6f85(0x1f0))/0xa;if(_0x25b6e8===_0xde6a9a)break;else _0x3f2eda['push'](_0x3f2eda['shift']());}catch(_0x22aa90){_0x3f2eda['push'](_0x3f2eda['shift']());}}}(a215_0x40db,0x8f609));import{readFile}from'fs/promises';function a215_0x40db(){const _0x28323d=['ENOENT','980466BOFjQw','Invalid\x20JSON\x20in\x20file\x20\x27','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','366613vLuvYv','24787WfnhBr','utf-8','\x27:\x20','message','Invalid\x20JSON\x20string:\x20','NOT_FOUND','2395996wSybTS','360AwuLYg','INVALID_ARGUMENT','7161291wZADJB','Failed\x20to\x20load\x20JSON:\x20','code','97707bluyuv','4784320xHlFsa','EACCES','5VkrBmw','4FfnqNP','parse','Permission\x20denied\x20reading\x20file:\x20'];a215_0x40db=function(){return _0x28323d;};return a215_0x40db();}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x2b07d4,_0xd79526){const _0x1e5f3a=a215_0x3724;try{if(_0xd79526){const _0x50ee2a=await readFile(_0x2b07d4,_0x1e5f3a(0x1e4));try{return JSON['parse'](_0x50ee2a);}catch(_0x47004f){throw new SDKError(ErrorCode[_0x1e5f3a(0x1eb)],_0x1e5f3a(0x1e0)+_0x2b07d4+_0x1e5f3a(0x1e5)+(_0x47004f instanceof Error?_0x47004f[_0x1e5f3a(0x1e6)]:String(_0x47004f)));}}else try{return JSON[_0x1e5f3a(0x1f4)](_0x2b07d4);}catch(_0x3a0ea6){throw new SDKError(ErrorCode[_0x1e5f3a(0x1eb)],_0x1e5f3a(0x1e7)+(_0x3a0ea6 instanceof Error?_0x3a0ea6[_0x1e5f3a(0x1e6)]:String(_0x3a0ea6)));}}catch(_0x5ac51d){if(_0x5ac51d instanceof SDKError)throw _0x5ac51d;if(_0x5ac51d instanceof Error&&_0x1e5f3a(0x1ee)in _0x5ac51d){const _0x1d4c15=_0x5ac51d;if(_0x1d4c15[_0x1e5f3a(0x1ee)]===_0x1e5f3a(0x1f6))throw new SDKError(ErrorCode[_0x1e5f3a(0x1e8)],'File\x20not\x20found:\x20'+_0x2b07d4);else{if(_0x1d4c15[_0x1e5f3a(0x1ee)]===_0x1e5f3a(0x1f1))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1e5f3a(0x1f5)+_0x2b07d4);}}throw new SDKError(ErrorCode['INTERNAL'],_0x1e5f3a(0x1ed)+(_0x5ac51d instanceof Error?_0x5ac51d[_0x1e5f3a(0x1e6)]:String(_0x5ac51d)));}}export async function loadJSONFromOptions(_0x1c7254,_0x20b549){const _0x1c4149=a215_0x3724;if(_0x1c7254&&_0x20b549)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x1c4149(0x1e1));if(_0x1c7254)return await loadJSON(_0x1c7254,![]);if(_0x20b549)return await loadJSON(_0x20b549,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0x57af68=a216_0x2485;(function(_0x339aeb,_0x4abda9){const _0xcfa9cc=a216_0x2485,_0x1db44f=_0x339aeb();while(!![]){try{const _0xbc37f3=-parseInt(_0xcfa9cc(0x1df))/0x1*(-parseInt(_0xcfa9cc(0x1de))/0x2)+parseInt(_0xcfa9cc(0x1cf))/0x3*(-parseInt(_0xcfa9cc(0x1d6))/0x4)+parseInt(_0xcfa9cc(0x1e0))/0x5+parseInt(_0xcfa9cc(0x1d3))/0x6*(parseInt(_0xcfa9cc(0x1d8))/0x7)+parseInt(_0xcfa9cc(0x1dc))/0x8+-parseInt(_0xcfa9cc(0x1d1))/0x9+-parseInt(_0xcfa9cc(0x1d4))/0xa;if(_0xbc37f3===_0x4abda9)break;else _0x1db44f['push'](_0x1db44f['shift']());}catch(_0xd888b){_0x1db44f['push'](_0x1db44f['shift']());}}}(a216_0x25c7,0xf2fbc));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';function a216_0x2485(_0x6de227,_0xd6eb93){_0x6de227=_0x6de227-0x1cf;const _0x25c773=a216_0x25c7();let _0x24851d=_0x25c773[_0x6de227];return _0x24851d;}const LOCAL_CACHE_DIR=a216_0x57af68(0x1d0),registry=new Map();export function registerCacheKey(_0x54eae8,_0x2ee67c){const _0x1f642f=a216_0x57af68,_0x10a549=registry[_0x1f642f(0x1dd)](_0x54eae8);if(_0x10a549&&_0x10a549!==_0x2ee67c)throw new Error('Cache\x20key\x20\x22'+_0x54eae8+_0x1f642f(0x1d5)+_0x10a549+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x2ee67c+'\x22');registry['set'](_0x54eae8,_0x2ee67c);}function a216_0x25c7(){const _0x92ebe6=['11824040MImbot','get','1947916lzXZyL','2JDcapj','6649200useVed','cwd','54tDEElt','.cache/tdx','12339252pLlqtp','clear','1145010hgZvWs','16245780urskgz','\x22\x20already\x20registered\x20by\x20\x22','297200NAitNb','utf-8','21mAEJbl','root','stringify','parse'];a216_0x25c7=function(){return _0x92ebe6;};return a216_0x25c7();}export function getCacheDir(){const _0x20fdd7=a216_0x57af68,_0x59ba87=process[_0x20fdd7(0x1e1)](),_0x4ff2f4=_0x59ba87===parse(_0x59ba87)[_0x20fdd7(0x1d9)]?homedir():_0x59ba87;return join(_0x4ff2f4,LOCAL_CACHE_DIR);}export function getCachePath(_0x10853e){return join(getCacheDir(),_0x10853e);}function ensureCacheDir(){const _0x412db4=getCacheDir();!existsSync(_0x412db4)&&mkdirSync(_0x412db4,{'recursive':!![]});}function readCacheJson(_0x5597cb){const _0x540bb4=a216_0x57af68,_0x278ed8=getCachePath(_0x5597cb);if(!existsSync(_0x278ed8))return undefined;try{const _0x3dc18d=readFileSync(_0x278ed8,_0x540bb4(0x1d7));return JSON[_0x540bb4(0x1db)](_0x3dc18d);}catch{return undefined;}}function writeCacheJson(_0x5b83e6,_0x44a287){const _0x2eeba4=a216_0x57af68;ensureCacheDir(),writeFileSync(getCachePath(_0x5b83e6),JSON[_0x2eeba4(0x1da)](_0x44a287,null,0x2),_0x2eeba4(0x1d7));}function readCacheText(_0x34a1f6){const _0x1ab393=a216_0x57af68,_0x3dd53b=getCachePath(_0x34a1f6);if(!existsSync(_0x3dd53b))return undefined;try{return readFileSync(_0x3dd53b,_0x1ab393(0x1d7));}catch{return undefined;}}function writeCacheText(_0x2e630f,_0x13a718){const _0x43ea3a=a216_0x57af68;ensureCacheDir(),writeFileSync(getCachePath(_0x2e630f),_0x13a718,_0x43ea3a(0x1d7));}function clearCache(_0x2eeed7){const _0xe47384=getCachePath(_0x2eeed7);if(existsSync(_0xe47384))try{unlinkSync(_0xe47384);}catch{}}function cacheExists(_0x1356df){return existsSync(getCachePath(_0x1356df));}export function createCache(_0x518c59,_0x266aeb){return registerCacheKey(_0x518c59,_0x266aeb),{'read':()=>readCacheJson(_0x518c59),'write':_0x253c4a=>writeCacheJson(_0x518c59,_0x253c4a),'clear':()=>clearCache(_0x518c59),'exists':()=>cacheExists(_0x518c59),'path':()=>getCachePath(_0x518c59)};}export function createTextCache(_0x539277,_0xa0c8f3){return registerCacheKey(_0x539277,_0xa0c8f3),{'read':()=>readCacheText(_0x539277)?.['trim']()||undefined,'write':_0x30e643=>writeCacheText(_0x539277,_0x30e643),'clear':()=>clearCache(_0x539277),'exists':()=>cacheExists(_0x539277),'path':()=>getCachePath(_0x539277)};}export function clearRegistry(){const _0x5df3db=a216_0x57af68;registry[_0x5df3db(0x1d2)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a217_0x450d18=a217_0x37dd;(function(_0x26885a,_0x307694){const _0x50d0c3=a217_0x37dd,_0x2bc8f0=_0x26885a();while(!![]){try{const _0x12433d=-parseInt(_0x50d0c3(0x6d))/0x1*(-parseInt(_0x50d0c3(0x78))/0x2)+-parseInt(_0x50d0c3(0x79))/0x3+-parseInt(_0x50d0c3(0x72))/0x4+-parseInt(_0x50d0c3(0x6b))/0x5+parseInt(_0x50d0c3(0x70))/0x6+parseInt(_0x50d0c3(0x75))/0x7+-parseInt(_0x50d0c3(0x71))/0x8;if(_0x12433d===_0x307694)break;else _0x2bc8f0['push'](_0x2bc8f0['shift']());}catch(_0x3d2762){_0x2bc8f0['push'](_0x2bc8f0['shift']());}}}(a217_0xddd7,0xa6061));import a217_0x36b33c from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x36b33c,ChalkClass=chalkModule['Chalk']||chalkModule[a217_0x450d18(0x80)]?.[a217_0x450d18(0x66)];export class DefaultLogFormatter{[a217_0x450d18(0x67)];['chalk'];constructor(_0x45db96={}){const _0x28c972=a217_0x450d18;this[_0x28c972(0x67)]=_0x45db96['colors']??![],this[_0x28c972(0x65)]=_0x45db96[_0x28c972(0x67)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x36b33c;}['format'](_0x1a3836){const _0x2c46f0=a217_0x450d18,_0x2d9cf9=formatTimestamp(_0x1a3836[_0x2c46f0(0x7b)]),_0x1913fe=logLevelToString(_0x1a3836[_0x2c46f0(0x77)]);if(!this[_0x2c46f0(0x67)])return _0x2d9cf9+'\x20['+_0x1913fe+_0x2c46f0(0x7f)+_0x1a3836[_0x2c46f0(0x7d)]+']\x20'+_0x1a3836[_0x2c46f0(0x6a)];const _0x39246b=this[_0x2c46f0(0x65)][_0x2c46f0(0x76)](_0x2d9cf9),_0x24325c=this[_0x2c46f0(0x68)](_0x1913fe,_0x1a3836[_0x2c46f0(0x77)]),_0x1f6b25=this[_0x2c46f0(0x65)][_0x2c46f0(0x69)]('['+_0x1a3836[_0x2c46f0(0x7d)]+']');return _0x39246b+'\x20'+_0x24325c+'\x20'+_0x1f6b25+'\x20'+_0x1a3836[_0x2c46f0(0x6a)];}[a217_0x450d18(0x68)](_0x482800,_0x110567){const _0x4256ab=a217_0x450d18;switch(_0x110567){case LogLevel[_0x4256ab(0x7a)]:return this['chalk'][_0x4256ab(0x6c)]('['+_0x482800+']');case LogLevel[_0x4256ab(0x7c)]:return this['chalk']['green']('['+_0x482800+']');case LogLevel['INFO']:return this[_0x4256ab(0x65)][_0x4256ab(0x6f)]('['+_0x482800+']');case LogLevel[_0x4256ab(0x73)]:return this[_0x4256ab(0x65)][_0x4256ab(0x7e)]('['+_0x482800+']');case LogLevel[_0x4256ab(0x74)]:return this['chalk'][_0x4256ab(0x6e)]('['+_0x482800+']');default:return'['+_0x482800+']';}}}function a217_0x37dd(_0x5dd849,_0x4629ae){_0x5dd849=_0x5dd849-0x65;const _0xddd72e=a217_0xddd7();let _0x37ddea=_0xddd72e[_0x5dd849];return _0x37ddea;}function a217_0xddd7(){const _0x182ea8=['timestamp','DEBUG','component','yellow',']\x20[','default','chalk','Chalk','colors','colorLevel','blue','message','1605480GlxITg','gray','109177dGQALc','red','cyan','2161656rEFmwZ','3291792GOdsLd','1514876CFqlZF','WARN','ERROR','8881866cpwACA','dim','level','16neOmiB','2133624vzXdDK','TRACE'];a217_0xddd7=function(){return _0x182ea8;};return a217_0xddd7();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1d0e53,_0x6aa322){var _0x951feb=a218_0x1842,_0x3136ec=_0x1d0e53();while(!![]){try{var _0x53f3f6=-parseInt(_0x951feb(0x1dc))/0x1*(parseInt(_0x951feb(0x1e4))/0x2)+parseInt(_0x951feb(0x1d9))/0x3+-parseInt(_0x951feb(0x1de))/0x4*(-parseInt(_0x951feb(0x1e3))/0x5)+-parseInt(_0x951feb(0x1df))/0x6*(-parseInt(_0x951feb(0x1da))/0x7)+-parseInt(_0x951feb(0x1dd))/0x8*(parseInt(_0x951feb(0x1e2))/0x9)+-parseInt(_0x951feb(0x1e0))/0xa*(parseInt(_0x951feb(0x1db))/0xb)+parseInt(_0x951feb(0x1e1))/0xc;if(_0x53f3f6===_0x6aa322)break;else _0x3136ec['push'](_0x3136ec['shift']());}catch(_0x59c78e){_0x3136ec['push'](_0x3136ec['shift']());}}}(a218_0x3a16,0x6dd13));function a218_0x1842(_0x50fcfd,_0x5c2e66){_0x50fcfd=_0x50fcfd-0x1d9;var _0x3a167=a218_0x3a16();var _0x18424e=_0x3a167[_0x50fcfd];return _0x18424e;}export{DefaultLogFormatter}from'./default-formatter.js';function a218_0x3a16(){var _0x443fbb=['90463TGAdPo','4168JEoxlO','12siIqPV','6xowHZi','2209730mGZwAQ','3229488kfVZkE','9909YtOvEc','1371290pQfxsB','2wtkPSX','1056171VKmroi','3876824DfowUR','44sgJmmQ'];a218_0x3a16=function(){return _0x443fbb;};return a218_0x3a16();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a219_0x4b4c46=a219_0x29ec;(function(_0x4c8348,_0x477fd2){const _0x3abe57=a219_0x29ec,_0x429dc0=_0x4c8348();while(!![]){try{const _0xc2b0d5=-parseInt(_0x3abe57(0xce))/0x1+parseInt(_0x3abe57(0xc8))/0x2+parseInt(_0x3abe57(0xc2))/0x3*(parseInt(_0x3abe57(0xc3))/0x4)+parseInt(_0x3abe57(0xbf))/0x5*(parseInt(_0x3abe57(0xc7))/0x6)+parseInt(_0x3abe57(0xca))/0x7*(-parseInt(_0x3abe57(0xc5))/0x8)+-parseInt(_0x3abe57(0xcd))/0x9+parseInt(_0x3abe57(0xc6))/0xa*(-parseInt(_0x3abe57(0xbc))/0xb);if(_0xc2b0d5===_0x477fd2)break;else _0x429dc0['push'](_0x429dc0['shift']());}catch(_0x40bd23){_0x429dc0['push'](_0x429dc0['shift']());}}}(a219_0x58d8,0xea4ff));import{LogLevel as a219_0x16c5a9}from'../types.js';function a219_0x58d8(){const _0x11d760=['1042569JWKHNh','382455HKVVuT','19631271mJGJIv','colors','minLevel','10aFKoGT','format','level','2859jMPGev','7748FbiDqP','handle','5053960mpCcDb','10pkiWlW','2064246fqOMEr','2680804rctSBj','WARN','7CDKNTf','useStderr','formatter'];a219_0x58d8=function(){return _0x11d760;};return a219_0x58d8();}function a219_0x29ec(_0x1f91a3,_0x411537){_0x1f91a3=_0x1f91a3-0xbc;const _0x58d80a=a219_0x58d8();let _0x29eca8=_0x58d80a[_0x1f91a3];return _0x29eca8;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a219_0x4b4c46(0xcb)];[a219_0x4b4c46(0xcc)];constructor(_0x320623={}){const _0x1f8b3f=a219_0x4b4c46;this[_0x1f8b3f(0xbe)]=_0x320623[_0x1f8b3f(0xbe)]??a219_0x16c5a9[_0x1f8b3f(0xc9)],this['useStderr']=_0x320623[_0x1f8b3f(0xcb)]??!![],this[_0x1f8b3f(0xcc)]=new DefaultLogFormatter({'colors':_0x320623[_0x1f8b3f(0xbd)]??!![]});}[a219_0x4b4c46(0xc4)](_0x3d6bbe){const _0x4d5117=a219_0x4b4c46;if(_0x3d6bbe['level']<this[_0x4d5117(0xbe)])return;const _0x436241=this[_0x4d5117(0xcc)][_0x4d5117(0xc0)](_0x3d6bbe);this['useStderr']&&_0x3d6bbe[_0x4d5117(0xc1)]>=a219_0x16c5a9[_0x4d5117(0xc9)]?console['error'](_0x436241):console['log'](_0x436241);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a220_0x40f499=a220_0x5464;(function(_0x507f9f,_0x346c7d){const _0x119523=a220_0x5464,_0x1f9023=_0x507f9f();while(!![]){try{const _0x296be4=-parseInt(_0x119523(0x1c4))/0x1+parseInt(_0x119523(0x1af))/0x2*(-parseInt(_0x119523(0x1ac))/0x3)+-parseInt(_0x119523(0x1c6))/0x4+parseInt(_0x119523(0x1aa))/0x5*(-parseInt(_0x119523(0x1ce))/0x6)+parseInt(_0x119523(0x1b4))/0x7+parseInt(_0x119523(0x1b7))/0x8*(parseInt(_0x119523(0x1b1))/0x9)+-parseInt(_0x119523(0x1c7))/0xa*(-parseInt(_0x119523(0x1d1))/0xb);if(_0x296be4===_0x346c7d)break;else _0x1f9023['push'](_0x1f9023['shift']());}catch(_0x24e453){_0x1f9023['push'](_0x1f9023['shift']());}}}(a220_0x50a0,0x38534));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';function a220_0x5464(_0x3cf8ae,_0x192075){_0x3cf8ae=_0x3cf8ae-0x1a9;const _0x50a027=a220_0x50a0();let _0x5464ab=_0x50a027[_0x3cf8ae];return _0x5464ab;}import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a220_0x40f499(0x1bb)];[a220_0x40f499(0x1b8)];[a220_0x40f499(0x1c1)];['logBaseName'];[a220_0x40f499(0x1bf)]=null;['rotate'];constructor(_0x3314c2={}){const _0x45806e=a220_0x40f499;this[_0x45806e(0x1bb)]=_0x3314c2['filePath']??join(getGlobalCacheDir(),_0x45806e(0x1ad),_0x45806e(0x1d0)),this['logDir']=dirname(this[_0x45806e(0x1bb)]),this[_0x45806e(0x1c1)]=basename(this['logPath']),this[_0x45806e(0x1cc)]=this[_0x45806e(0x1c1)][_0x45806e(0x1cd)](/\.log$/,''),this[_0x45806e(0x1ca)]=_0x3314c2[_0x45806e(0x1ca)]??!![];}async[a220_0x40f499(0x1c8)](){const _0x1fd9ed=a220_0x40f499;try{await mkdir(this[_0x1fd9ed(0x1b8)],{'recursive':!![]}),this['rotate']&&await this['rotateOldLogs'](),this[_0x1fd9ed(0x1bf)]=createWriteStream(this[_0x1fd9ed(0x1bb)],{'flags':'a'}),this[_0x1fd9ed(0x1bf)]['on']('error',_0x6f4f32=>{const _0x3a8118=_0x1fd9ed;console['error'](_0x3a8118(0x1c5)+this[_0x3a8118(0x1c1)]+':',_0x6f4f32[_0x3a8118(0x1b9)]);});}catch(_0x32f52c){console[_0x1fd9ed(0x1b0)](_0x1fd9ed(0x1c0),_0x32f52c);}}['handle'](_0x2ff081){const _0xfd06e9=a220_0x40f499;if(!this['logStream'])return;const _0x261f47=Logger[_0xfd06e9(0x1b2)](_0x2ff081);this['logStream'][_0xfd06e9(0x1c3)](_0x261f47+'\x0a');}async[a220_0x40f499(0x1be)](){return new Promise(_0x3f1d1e=>{const _0x20e868=a220_0x5464;this[_0x20e868(0x1bf)]?this['logStream'][_0x20e868(0x1ba)](()=>{this['logStream']=null,_0x3f1d1e();}):_0x3f1d1e();});}[a220_0x40f499(0x1bd)](){return this['logPath'];}async[a220_0x40f499(0x1c2)](){const _0x12df5d=a220_0x40f499;try{const _0x541c41=await readdir(this[_0x12df5d(0x1b8)]),_0x40ad10=new Date()[_0x12df5d(0x1ab)]()['split']('T')[0x0];if(_0x541c41[_0x12df5d(0x1b6)](this['logFileName'])){const _0x172b4c=join(this['logDir'],this[_0x12df5d(0x1c1)]),_0x36a7ff=await stat(_0x172b4c),_0x526c0b=new Date(_0x36a7ff[_0x12df5d(0x1b3)])[_0x12df5d(0x1ab)]()[_0x12df5d(0x1c9)]('T')[0x0];if(_0x526c0b<_0x40ad10){const _0xb73026=join(this[_0x12df5d(0x1b8)],this[_0x12df5d(0x1cc)]+'-'+_0x526c0b+_0x12df5d(0x1ae));await rename(_0x172b4c,_0xb73026);}}const _0x1764ac=await readdir(this[_0x12df5d(0x1b8)]),_0x2eef71=this[_0x12df5d(0x1cc)][_0x12df5d(0x1cd)](/[.*+?^${}()|[\]\\]/g,_0x12df5d(0x1b5)),_0x10fc15=new RegExp('^'+_0x2eef71+_0x12df5d(0x1bc)),_0x198b6d=_0x1764ac[_0x12df5d(0x1a9)](_0x32cdce=>_0x10fc15[_0x12df5d(0x1cf)](_0x32cdce));for(const _0x167f7c of _0x198b6d){const _0x16c841=join(this[_0x12df5d(0x1b8)],_0x167f7c),_0xfa034e=join(this[_0x12df5d(0x1b8)],_0x167f7c+_0x12df5d(0x1cb));try{await pipeline(createReadStream(_0x16c841),createGzip(),createWriteStream(_0xfa034e)),await unlink(_0x16c841);}catch(_0x2ef82e){console[_0x12df5d(0x1b0)]('Warning:\x20Failed\x20to\x20compress\x20'+_0x167f7c+':',_0x2ef82e);}}}catch{}}}function a220_0x50a0(){const _0x10b301=['Warning:\x20Error\x20writing\x20to\x20','618616UbuDhO','32390QrHvRo','init','split','rotate','.gz','logBaseName','replace','306gzDZrJ','test','tdx.log','1441RnIDMF','filter','8440MKXndy','toISOString','3993gRkDrD','logs','.log','398pamvtO','error','1306269HduGrC','format','mtime','1654373vgJHeZ','\x5c$&','includes','16KoKmjf','logDir','message','end','logPath','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','getLogPath','close','logStream','Warning:\x20Failed\x20to\x20initialize\x20log\x20file:','logFileName','rotateOldLogs','write','214611GZAlzO'];a220_0x50a0=function(){return _0x10b301;};return a220_0x50a0();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a221_0x3ab2(_0x35dc6b,_0x36d5c7){_0x35dc6b=_0x35dc6b-0x6b;var _0x541d8d=a221_0x541d();var _0x3ab232=_0x541d8d[_0x35dc6b];return _0x3ab232;}(function(_0x169e3e,_0x310ff7){var _0x2a3544=a221_0x3ab2,_0x5973aa=_0x169e3e();while(!![]){try{var _0x58002f=parseInt(_0x2a3544(0x6f))/0x1+parseInt(_0x2a3544(0x6c))/0x2+-parseInt(_0x2a3544(0x74))/0x3+-parseInt(_0x2a3544(0x73))/0x4*(parseInt(_0x2a3544(0x6d))/0x5)+-parseInt(_0x2a3544(0x6e))/0x6+parseInt(_0x2a3544(0x70))/0x7*(-parseInt(_0x2a3544(0x6b))/0x8)+parseInt(_0x2a3544(0x72))/0x9*(parseInt(_0x2a3544(0x71))/0xa);if(_0x58002f===_0x310ff7)break;else _0x5973aa['push'](_0x5973aa['shift']());}catch(_0x417e7f){_0x5973aa['push'](_0x5973aa['shift']());}}}(a221_0x541d,0xba519));export{FileHandler}from'./file-handler.js';export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';function a221_0x541d(){var _0x3fd0dc=['2098480JsZwsP','35545xBHhAJ','6192180YwzhSb','1265175QKblnG','70MaJPiS','40StUQsw','3267414thIBLi','500RwsTjH','2635509YniDsB','163424KYNRIi'];a221_0x541d=function(){return _0x3fd0dc;};return a221_0x541d();}
|