@treasuredata/tdx 2026.8.1 → 2026.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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-always-on-campaign-pull-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
- package/dist/commands/engage-always-on-campaign-validate-command.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-move-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/table-deleted.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/site-mismatch.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/tools/work-create-item.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/auth-token.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.d.ts +2 -0
- package/dist/sdk/cas/cas-audience-schema.d.ts.map +1 -1
- package/dist/sdk/cas/cas-audience-schema.js +1 -1
- package/dist/sdk/cas/cas-audience-schema.js.map +1 -1
- package/dist/sdk/cas/cas-audience-validator.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.d.ts.map +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js.map +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.d.ts.map +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js.map +1 -1
- package/dist/sdk/cas/types.d.ts +2 -0
- package/dist/sdk/cas/types.d.ts.map +1 -1
- package/dist/sdk/cas/validate-files.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/always-on-campaign-pull.js +1 -1
- package/dist/sdk/engage/always-on-campaign-push.js +1 -1
- package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
- package/dist/sdk/engage/always-on-campaign-yaml.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/always-on-campaign-schema.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/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.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/cas.d.ts +4 -0
- package/dist/sdk/types/cas.d.ts.map +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/util/tree-search.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/task-graph.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/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.js +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/claude-code-state.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/proxy-fetch.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
|
@@ -1 +1 @@
|
|
|
1
|
-
const a34_0x43d0d4=a34_0x11ee;(function(_0x18a36f,_0x3cf4b8){const _0x4e170e=a34_0x11ee,_0x4a095d=_0x18a36f();while(!![]){try{const _0xa5cec0=parseInt(_0x4e170e(0x357))/0x1+parseInt(_0x4e170e(0x24a))/0x2+-parseInt(_0x4e170e(0x320))/0x3*(parseInt(_0x4e170e(0x247))/0x4)+-parseInt(_0x4e170e(0x26c))/0x5*(parseInt(_0x4e170e(0x22e))/0x6)+-parseInt(_0x4e170e(0x29b))/0x7*(-parseInt(_0x4e170e(0x1dc))/0x8)+parseInt(_0x4e170e(0x23b))/0x9*(parseInt(_0x4e170e(0x180))/0xa)+parseInt(_0x4e170e(0x23c))/0xb*(parseInt(_0x4e170e(0x215))/0xc);if(_0xa5cec0===_0x3cf4b8)break;else _0x4a095d['push'](_0x4a095d['shift']());}catch(_0x5a33a5){_0x4a095d['push'](_0x4a095d['shift']());}}}(a34_0x3059,0xc9147));import{writeFileSync,readFileSync,existsSync,mkdirSync,renameSync,statSync}from'fs';import{spawn}from'child_process';import a34_0x2baf04 from'path';import{BaseCommand}from'./command.js';import{handleSDKOutput,handleQueryOutput,handleSingleObjectOutput,writeOutput}from'../core/command-output.js';import{withSpinner,withProgressSpinner,createCommandSpinner,formatElapsed}from'../utils/spinner.js';import{loadJSONFromOptions,loadJSON}from'../utils/json-loader.js';import{generateDiff,formatDiffWithColors,hasChanges}from'../utils/diff.js';import{getConsoleUrl,getConsoleNextUrl}from'../sdk/client/endpoints.js';import{formatRows,formatAsTable,hyperlink}from'../sdk/util/formatters.js';import{parseDef,serializeDef}from'../sdk/segment/parent-segment-yaml.js';import{confirmKey,isInteractive}from'../utils/prompt.js';import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';import a34_0x270838 from'chalk';import{displayFieldsHumanReadable,executeSchemaQuery}from'../sdk/segment/fields-display.js';import{saveSessionContext}from'../core/session.js';import{sanitizeFileName}from'../utils/string-utils.js';const PARENT_SEGMENT_DIR=a34_0x43d0d4(0x187),LEGACY_PARENT_SEGMENT_DIR=a34_0x43d0d4(0x25d);function openBrowser(_0x2012d8){const _0x4b7cf0=a34_0x43d0d4,_0x3b3210=process[_0x4b7cf0(0x242)],_0x4b6171=_0x3b3210===_0x4b7cf0(0x284)?_0x4b7cf0(0x33d):_0x3b3210===_0x4b7cf0(0x2ba)?_0x4b7cf0(0x262):_0x4b7cf0(0x153);spawn(_0x4b6171,[_0x2012d8],{'detached':!![],'stdio':_0x4b7cf0(0x173)})[_0x4b7cf0(0x31c)]();}function migrateLegacyDirectory(){const _0x3e4e16=a34_0x43d0d4;if(!existsSync(LEGACY_PARENT_SEGMENT_DIR))return![];const _0x4413b8=statSync(LEGACY_PARENT_SEGMENT_DIR);if(!_0x4413b8[_0x3e4e16(0x2d0)]())return![];if(existsSync(PARENT_SEGMENT_DIR))return console[_0x3e4e16(0x1a0)](a34_0x270838[_0x3e4e16(0x194)]('\x0a⚠️\x20\x20Both\x20'+LEGACY_PARENT_SEGMENT_DIR+_0x3e4e16(0x35e)+PARENT_SEGMENT_DIR+'/\x20directories\x20exist.')),console[_0x3e4e16(0x1a0)](a34_0x270838['dim'](_0x3e4e16(0x1f0)+LEGACY_PARENT_SEGMENT_DIR+'/\x20directory.\x0a')),![];console[_0x3e4e16(0x1a0)](a34_0x270838[_0x3e4e16(0x194)](_0x3e4e16(0x1d5)+LEGACY_PARENT_SEGMENT_DIR+_0x3e4e16(0x342)+PARENT_SEGMENT_DIR+'/\x0a'));try{return renameSync(LEGACY_PARENT_SEGMENT_DIR,PARENT_SEGMENT_DIR),console[_0x3e4e16(0x1a0)](a34_0x270838['green'](_0x3e4e16(0x2a1)+PARENT_SEGMENT_DIR+'/\x0a')),!![];}catch(_0x50bee2){const _0x3fd1e8=_0x50bee2 instanceof Error?_0x50bee2['message']:String(_0x50bee2);return console[_0x3e4e16(0x1a0)](a34_0x270838[_0x3e4e16(0x1e0)]('✘\x20Failed\x20to\x20rename\x20directory:\x20'+_0x3fd1e8+'\x0a')),![];}}class BaseParentSegmentCommand extends BaseCommand{async[a34_0x43d0d4(0x249)](_0x4358e7){const _0x4c26ad=a34_0x43d0d4;return migrateLegacyDirectory(),super[_0x4c26ad(0x249)](_0x4358e7);}}function resolveYamlFile(_0xe8cf2a){const _0x3895b8=a34_0x43d0d4;if(_0xe8cf2a[_0x3895b8(0x246)](_0x3895b8(0x29d))||_0xe8cf2a[_0x3895b8(0x246)](_0x3895b8(0x31e)))return _0xe8cf2a;return a34_0x2baf04[_0x3895b8(0x2d4)](PARENT_SEGMENT_DIR,sanitizeFileName(_0xe8cf2a)+_0x3895b8(0x29d));}function formatProgressMessage(_0x265701){const _0x49386c=a34_0x43d0d4,_0x46dca2=_0x265701[_0x49386c(0x1b6)](/^(.+?):\s*(.+?)(\s*\(.+\))?$/);if(_0x46dca2){const [,_0x1c24ff,_0x443ad1,_0x3c202e='']=_0x46dca2;return a34_0x270838[_0x49386c(0x207)](_0x1c24ff+':')+'\x20'+_0x443ad1+a34_0x270838[_0x49386c(0x207)](_0x3c202e);}return a34_0x270838[_0x49386c(0x207)](_0x265701);}function showFileNotFoundError(_0x54717d,_0xd17283){const _0x2f5d98=a34_0x43d0d4;console[_0x2f5d98(0x1a0)](a34_0x270838[_0x2f5d98(0x1e0)](_0x2f5d98(0x165)+_0x54717d+'\x0a')),console[_0x2f5d98(0x1a0)](a34_0x270838[_0x2f5d98(0x32c)](_0x2f5d98(0x2d3)+_0xd17283+_0x2f5d98(0x287)));}function a34_0x11ee(_0x22b789,_0x24c044){_0x22b789=_0x22b789-0x14b;const _0x305984=a34_0x3059();let _0x11ee63=_0x305984[_0x22b789];return _0x11ee63;}function displayRealtimeValidation(_0x25c6fc){const _0x9c4050=a34_0x43d0d4;if(!_0x25c6fc['realtime'])return;const _0x267ebe=_0x25c6fc[_0x9c4050(0x291)],_0x382f44=_0x267ebe[_0x9c4050(0x2da)]?a34_0x270838[_0x9c4050(0x19d)](_0x9c4050(0x19c)):a34_0x270838[_0x9c4050(0x194)](_0x9c4050(0x350));console[_0x9c4050(0x1a0)]('\x0a'+a34_0x270838[_0x9c4050(0x207)](_0x9c4050(0x361))+'\x20'+_0x382f44);if(_0x267ebe[_0x9c4050(0x208)]&&_0x267ebe[_0x9c4050(0x208)][_0x9c4050(0x2c7)]>0x0){console['error']('\x20\x20'+a34_0x270838[_0x9c4050(0x207)](_0x9c4050(0x2b6))+'\x20'+_0x267ebe[_0x9c4050(0x208)]['length']+_0x9c4050(0x176));for(const _0x307e49 of _0x267ebe['events']){const _0x214f2d=_0x307e49[_0x9c4050(0x205)]===![]?a34_0x270838[_0x9c4050(0x1e0)]('✘'):a34_0x270838[_0x9c4050(0x19d)]('✔');console[_0x9c4050(0x1a0)](_0x9c4050(0x2e9)+_0x214f2d+'\x20'+_0x307e49['name']),_0x307e49[_0x9c4050(0x273)]&&console[_0x9c4050(0x1a0)](_0x9c4050(0x18e)+a34_0x270838[_0x9c4050(0x1e0)](_0x307e49[_0x9c4050(0x273)]));}}if(_0x267ebe[_0x9c4050(0x168)]&&_0x267ebe[_0x9c4050(0x168)][_0x9c4050(0x2c7)]>0x0){console[_0x9c4050(0x1a0)]('\x20\x20'+a34_0x270838['dim'](_0x9c4050(0x2a7))+'\x20'+_0x267ebe['attributes'][_0x9c4050(0x2c7)]+_0x9c4050(0x176));for(const _0xe975f of _0x267ebe[_0x9c4050(0x168)]){const _0x2aacf9=_0xe975f['valid']?a34_0x270838[_0x9c4050(0x19d)]('✔'):a34_0x270838[_0x9c4050(0x1e0)]('✘');console[_0x9c4050(0x1a0)](_0x9c4050(0x2e9)+_0x2aacf9+'\x20'+_0xe975f['name']+'\x20'+a34_0x270838[_0x9c4050(0x207)]('('+_0xe975f[_0x9c4050(0x1d6)]+')'));}}if(_0x267ebe['idStitching']){const _0x4fd093=_0x267ebe['idStitching'][_0x9c4050(0x1b3)]?.['length']?_0x9c4050(0x261)+_0x267ebe['idStitching'][_0x9c4050(0x1b3)][_0x9c4050(0x2d4)](',\x20')+']':'';console[_0x9c4050(0x1a0)]('\x20\x20'+a34_0x270838[_0x9c4050(0x207)](_0x9c4050(0x295))+'\x20'+_0x267ebe['idStitching'][_0x9c4050(0x2c4)]+_0x4fd093);}if(_0x267ebe['personalizationServices']&&_0x267ebe[_0x9c4050(0x2e3)]['length']>0x0){console[_0x9c4050(0x1a0)]('\x20\x20'+a34_0x270838[_0x9c4050(0x207)]('Personalization:')+'\x20'+_0x267ebe[_0x9c4050(0x2e3)]['length']+_0x9c4050(0x2b9)+(_0x267ebe[_0x9c4050(0x2e3)]['length']!==0x1?'s':''));for(const _0xaee540 of _0x267ebe[_0x9c4050(0x2e3)]){console[_0x9c4050(0x1a0)](_0x9c4050(0x2c5)+_0xaee540[_0x9c4050(0x2f9)]);}}}function showParentSegmentNotSetError(_0x105929){const _0x29166d=a34_0x43d0d4;console[_0x29166d(0x1a0)](a34_0x270838[_0x29166d(0x194)](_0x29166d(0x26f))),console['error'](_0x105929);}export class ParentSegmentListCommand extends BaseCommand{['name']=a34_0x43d0d4(0x2f4);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x2b2);async['execute'](_0x322ecf){const _0x24df1c=a34_0x43d0d4,{options:_0x930165,args:_0x53fe5f,tdx:_0x27a727}=_0x322ecf,_0x7a9fd=_0x53fe5f[0x0];_0x930165[_0x24df1c(0x235)]&&(console['error'](_0x24df1c(0x328)+_0x930165[_0x24df1c(0x213)]),_0x7a9fd&&console[_0x24df1c(0x1a0)](_0x24df1c(0x30c)+_0x7a9fd));const _0x177151=await withSpinner(_0x7a9fd?'Listing\x20parent\x20segments\x20matching\x20\x27'+_0x7a9fd+_0x24df1c(0x1f6):_0x24df1c(0x1e8),()=>_0x27a727[_0x24df1c(0x347)][_0x24df1c(0x169)](),{'verbose':_0x930165['verbose']});let _0x4b4519=_0x177151['data'];if(_0x7a9fd){const _0x4f96de=_0x7a9fd[_0x24df1c(0x238)](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x24df1c(0x238)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x572740=new RegExp('^'+_0x4f96de+'$','i');_0x4b4519=_0x4b4519[_0x24df1c(0x14b)](_0xce4c8c=>_0x572740[_0x24df1c(0x2af)](_0xce4c8c['attributes'][_0x24df1c(0x2f9)]));}_0x4b4519['sort']((_0x56218d,_0x5c51c2)=>_0x56218d[_0x24df1c(0x168)][_0x24df1c(0x2f9)][_0x24df1c(0x348)](_0x5c51c2['attributes'][_0x24df1c(0x2f9)])),console[_0x24df1c(0x1a0)]('✔\x20Found\x20'+_0x4b4519[_0x24df1c(0x2c7)]+_0x24df1c(0x2cd)+(_0x4b4519['length']!==0x1?'s':''));const _0x197e8e=_0x4d51be=>{const _0x266d5f=_0x24df1c;return getConsoleNextUrl(_0x930165[_0x266d5f(0x213)],_0x266d5f(0x23a)+_0x4d51be);};if(_0x930165['format']===_0x24df1c(0x294)||_0x930165[_0x24df1c(0x1d2)]==='jsonl'){const _0x56aaec=_0x4b4519['map'](_0x59805c=>({..._0x59805c,'url':_0x197e8e(_0x59805c['id'])}));await handleSDKOutput(_0x56aaec,_0x930165);}else{if(_0x4b4519[_0x24df1c(0x2c7)]===0x0)_0x7a9fd?console[_0x24df1c(0x167)](_0x24df1c(0x2b0)+_0x7a9fd):console[_0x24df1c(0x167)]('No\x20parent\x20segments\x20found');else for(const _0x36256e of _0x4b4519){const _0x1b3745=_0x36256e[_0x24df1c(0x168)]['population']?a34_0x270838['dim']('\x20('+formatRows(_0x36256e[_0x24df1c(0x168)][_0x24df1c(0x15e)])+')'):'',_0x10fe45=hyperlink(_0x36256e[_0x24df1c(0x168)]['name'],_0x197e8e(_0x36256e['id']));console[_0x24df1c(0x167)]('👥\x20'+_0x10fe45+_0x1b3745);}}return 0x0;}}export class ParentSegmentCreateCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]='segment:parent:create';[a34_0x43d0d4(0x241)]='Create\x20new\x20parent\x20segment\x20(audience)\x20[DEPRECATED]';async['execute'](_0x407490){const _0x2bcaf8=a34_0x43d0d4,{options:_0x5cc76d,args:_0xb45bd7,tdx:_0x5746d0}=_0x407490;console[_0x2bcaf8(0x1a0)]('\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20create`\x20is\x20deprecated.\x0a'+_0x2bcaf8(0x2e6)+_0x2bcaf8(0x236));const _0x2653df=_0x5cc76d;if(_0xb45bd7[_0x2bcaf8(0x2c7)]===0x0)return console[_0x2bcaf8(0x1a0)](a34_0x270838[_0x2bcaf8(0x1e0)]('Error:\x20Parent\x20segment\x20name\x20is\x20required')),console[_0x2bcaf8(0x1a0)](_0x2bcaf8(0x2c1)),0x1;const _0x79defa=_0xb45bd7[0x0];if(!_0x2653df[_0x2bcaf8(0x2bc)]||!_0x2653df['table'])return console[_0x2bcaf8(0x1a0)](_0x2bcaf8(0x183)),console[_0x2bcaf8(0x1a0)](_0x2bcaf8(0x2c1)),0x1;_0x2653df[_0x2bcaf8(0x235)]&&(console['error']('Site:\x20'+_0x2653df[_0x2bcaf8(0x213)]),console[_0x2bcaf8(0x1a0)]('Name:\x20'+_0x79defa),console['error']('Database:\x20'+_0x2653df['database']),console[_0x2bcaf8(0x1a0)](_0x2bcaf8(0x27c)+_0x2653df[_0x2bcaf8(0x230)]));const _0x3d1742=await loadJSONFromOptions(_0x2653df['attributes'],_0x2653df['attributesFile']),_0x3df1ac=await loadJSONFromOptions(_0x2653df[_0x2bcaf8(0x2d6)],_0x2653df['behaviorsFile']),_0x531ae5=await loadJSONFromOptions(_0x2653df[_0x2bcaf8(0x2a6)],_0x2653df[_0x2bcaf8(0x1ce)]),_0x167285={'name':_0x79defa,'description':_0x2653df[_0x2bcaf8(0x241)],'scheduleType':_0x2653df[_0x2bcaf8(0x29c)],'scheduleOption':_0x2653df[_0x2bcaf8(0x206)],'timezone':_0x2653df['timezone'],'master':{'parentDatabaseName':_0x2653df[_0x2bcaf8(0x2bc)],'parentTableName':_0x2653df[_0x2bcaf8(0x230)]},'attributes':_0x3d1742,'behaviors':_0x3df1ac,'customerGroup':_0x531ae5},_0x6fa3ab=await withSpinner(_0x2bcaf8(0x344)+_0x79defa+_0x2bcaf8(0x1f6),()=>_0x5746d0[_0x2bcaf8(0x347)][_0x2bcaf8(0x1aa)](_0x167285),{'verbose':_0x5cc76d[_0x2bcaf8(0x235)]}),_0x2e637d=_0x6fa3ab[_0x2bcaf8(0x369)];return console[_0x2bcaf8(0x1a0)](_0x2bcaf8(0x28e)+_0x2e637d[_0x2bcaf8(0x2f9)]+_0x2bcaf8(0x220)+_0x2e637d['id']),await handleSDKOutput([_0x2e637d],_0x5cc76d),0x0;}}export class ParentSegmentUpdateCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]='segment:parent:update';['description']='Update\x20existing\x20parent\x20segment\x20(audience)\x20[DEPRECATED]';async[a34_0x43d0d4(0x331)](_0x407819){const _0xdf99b7=a34_0x43d0d4,{options:_0x50ad21,args:_0xe78320,tdx:_0x3c6160}=_0x407819;console['error']('\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20update`\x20is\x20deprecated.\x0a'+_0xdf99b7(0x2e6)+_0xdf99b7(0x236));const _0x2e5433=_0x50ad21;if(_0xe78320[_0xdf99b7(0x2c7)]===0x0)return console['error'](a34_0x270838[_0xdf99b7(0x1e0)](_0xdf99b7(0x178))),console[_0xdf99b7(0x1a0)](_0xdf99b7(0x164)),0x1;const _0x371679=_0xe78320[0x0];_0x2e5433[_0xdf99b7(0x235)]&&(console[_0xdf99b7(0x1a0)](_0xdf99b7(0x328)+_0x2e5433['site']),console['error'](_0xdf99b7(0x191)+_0x371679));const _0x459e64=await withSpinner(_0xdf99b7(0x310)+_0x371679+_0xdf99b7(0x1f6),()=>_0x3c6160[_0xdf99b7(0x347)][_0xdf99b7(0x2f0)](_0x371679),{'verbose':_0x2e5433[_0xdf99b7(0x235)]}),_0x2ab8b0=_0x459e64[_0xdf99b7(0x369)],_0x44b7e7=await loadJSONFromOptions(_0x2e5433[_0xdf99b7(0x2ed)],_0x2e5433[_0xdf99b7(0x333)]),_0x419b7d=await loadJSONFromOptions(_0x2e5433[_0xdf99b7(0x18c)],_0x2e5433[_0xdf99b7(0x16e)]),_0x3f81e6={'name':_0x2ab8b0[_0xdf99b7(0x2f9)],'description':_0x2e5433[_0xdf99b7(0x241)]!==undefined?_0x2e5433[_0xdf99b7(0x241)]:_0x2ab8b0[_0xdf99b7(0x241)],'scheduleType':_0x2e5433[_0xdf99b7(0x29c)]!==undefined?_0x2e5433['scheduleType']:_0x2ab8b0[_0xdf99b7(0x29c)],'scheduleOption':_0x2e5433[_0xdf99b7(0x206)]!==undefined?_0x2e5433['scheduleOption']:_0x2ab8b0['scheduleOption'],'timezone':_0x2e5433['timezone']!==undefined?_0x2e5433[_0xdf99b7(0x179)]:_0x2ab8b0[_0xdf99b7(0x179)],'master':_0x2ab8b0['master'],'attributes':_0x44b7e7?[..._0x2ab8b0[_0xdf99b7(0x168)]||[],..._0x44b7e7]:_0x2ab8b0[_0xdf99b7(0x168)],'behaviors':_0x419b7d?[..._0x2ab8b0['behaviors']||[],..._0x419b7d]:_0x2ab8b0[_0xdf99b7(0x2d6)],'customerGroup':_0x2ab8b0[_0xdf99b7(0x2a6)]},_0xff3987=await withSpinner('Updating\x20parent\x20segment\x20\x27'+_0x371679+_0xdf99b7(0x1f6),()=>_0x3c6160['segment']['updateParent'](_0x371679,_0x3f81e6),{'verbose':_0x2e5433[_0xdf99b7(0x235)]}),_0x54d58b=_0xff3987['data'];return console['error'](_0xdf99b7(0x24c)+_0x54d58b[_0xdf99b7(0x2f9)]+'\x27'),await handleSDKOutput([_0x54d58b],_0x2e5433),0x0;}}export class ParentSegmentPullCommand extends BaseParentSegmentCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x32b);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x234);async['execute'](_0xff8f32){const _0x5e47b0=a34_0x43d0d4,{options:_0x49b53a,args:_0x503b86,tdx:_0x6bebea}=_0xff8f32,_0x5a8e6a=_0x49b53a,_0x171c44=_0x503b86[0x0]||_0x49b53a[_0x5e47b0(0x201)];if(!_0x171c44)return showParentSegmentNotSetError(_0x5e47b0(0x19e)+_0x5e47b0(0x2ad)),0x1;if(_0x5a8e6a[_0x5e47b0(0x28b)]&&_0x5a8e6a[_0x5e47b0(0x1ac)])return console[_0x5e47b0(0x1a0)](a34_0x270838[_0x5e47b0(0x1e0)](_0x5e47b0(0x16f))),console['error'](a34_0x270838['dim'](_0x5e47b0(0x186))),console[_0x5e47b0(0x1a0)](a34_0x270838[_0x5e47b0(0x207)](_0x5e47b0(0x21a)+PARENT_SEGMENT_DIR+'/{name}.yml\x0a')),console['error'](a34_0x270838[_0x5e47b0(0x32c)]('Tip:\x20Use\x20-u\x20without\x20-o,\x20or\x20-o\x20without\x20-u')),0x1;const _0x4f1f6e=_0x5a8e6a[_0x5e47b0(0x1ac)]||a34_0x2baf04[_0x5e47b0(0x2d4)](PARENT_SEGMENT_DIR,sanitizeFileName(_0x171c44)+_0x5e47b0(0x29d));_0x5a8e6a[_0x5e47b0(0x235)]&&(console[_0x5e47b0(0x1a0)](_0x5e47b0(0x328)+_0x5a8e6a[_0x5e47b0(0x213)]),console[_0x5e47b0(0x1a0)](_0x5e47b0(0x191)+_0x171c44),console[_0x5e47b0(0x1a0)](_0x5e47b0(0x16c)+_0x4f1f6e));const _0x217e01=await withSpinner(_0x5e47b0(0x36a)+_0x171c44+_0x5e47b0(0x1f6),()=>_0x6bebea[_0x5e47b0(0x347)][_0x5e47b0(0x2cb)](_0x171c44),{'verbose':_0x5a8e6a[_0x5e47b0(0x235)]}),_0x2c23b3=_0x217e01[_0x5e47b0(0x369)];if(existsSync(_0x4f1f6e)){const _0x2e87d0=readFileSync(_0x4f1f6e,'utf-8'),_0x36d831=generateDiff(_0x2e87d0,_0x2c23b3);if(!hasChanges(_0x36d831))console[_0x5e47b0(0x1a0)](a34_0x270838[_0x5e47b0(0x19d)]('✔')+_0x5e47b0(0x2ea)+a34_0x270838['cyan'](_0x4f1f6e)+_0x5e47b0(0x1c4));else{console[_0x5e47b0(0x1a0)](_0x5e47b0(0x170)+_0x4f1f6e+'\x27:'),console[_0x5e47b0(0x1a0)]('─'[_0x5e47b0(0x1e1)](0x3c)),console[_0x5e47b0(0x1a0)](formatDiffWithColors(_0x36d831)),console[_0x5e47b0(0x1a0)]('─'[_0x5e47b0(0x1e1)](0x3c));if(!_0x5a8e6a[_0x5e47b0(0x1b5)]){if(!isInteractive())return console[_0x5e47b0(0x1a0)](a34_0x270838[_0x5e47b0(0x1e0)](_0x5e47b0(0x286)),_0x5e47b0(0x2d8)),console[_0x5e47b0(0x1a0)](a34_0x270838['dim'](_0x5e47b0(0x1b1))),0x1;const _0x28f12f=await confirmKey(_0x5e47b0(0x35c)+_0x4f1f6e+'\x27?');if(!_0x28f12f)return console['error'](a34_0x270838[_0x5e47b0(0x194)](_0x5e47b0(0x2cf))),0x1;}writeFileSync(_0x4f1f6e,_0x2c23b3,_0x5e47b0(0x315)),console[_0x5e47b0(0x1a0)](a34_0x270838['green']('✔')+_0x5e47b0(0x2f2)+a34_0x270838[_0x5e47b0(0x32c)](_0x4f1f6e));}}else{const _0x23a841=a34_0x2baf04[_0x5e47b0(0x259)](_0x4f1f6e);!existsSync(_0x23a841)&&mkdirSync(_0x23a841,{'recursive':!![]}),writeFileSync(_0x4f1f6e,_0x2c23b3,'utf-8'),console['error'](a34_0x270838[_0x5e47b0(0x19d)]('✔')+_0x5e47b0(0x2f2)+a34_0x270838[_0x5e47b0(0x32c)](_0x4f1f6e));}return saveSessionContext({'parent_segment':_0x171c44},_0x5a8e6a[_0x5e47b0(0x343)]),console[_0x5e47b0(0x1a0)](a34_0x270838[_0x5e47b0(0x19d)]('✔')+_0x5e47b0(0x1a3)+a34_0x270838[_0x5e47b0(0x207)](_0x5e47b0(0x25d))+'\x20=\x20'+a34_0x270838['cyan'](_0x171c44)),0x0;}}export class ParentSegmentPushCommand extends BaseParentSegmentCommand{[a34_0x43d0d4(0x2f9)]='segment:parent:push';['description']=a34_0x43d0d4(0x324);async[a34_0x43d0d4(0x331)](_0x4f8c90){const _0x43ad2f=a34_0x43d0d4,{options:_0x3f9574,args:_0x342ea0,tdx:_0x3b76f2}=_0x4f8c90,_0x5db0b9=_0x3f9574,_0x5593dc=_0x342ea0[0x0]||_0x3f9574[_0x43ad2f(0x201)];if(!_0x5593dc)return showParentSegmentNotSetError(_0x43ad2f(0x1af)+_0x43ad2f(0x25e)),0x1;const _0x24afad=resolveYamlFile(_0x5593dc);if(!existsSync(_0x24afad))return showFileNotFoundError(_0x24afad,_0x5593dc),0x1;_0x5db0b9[_0x43ad2f(0x235)]&&(console['error']('Site:\x20'+_0x5db0b9[_0x43ad2f(0x213)]),console[_0x43ad2f(0x1a0)](_0x43ad2f(0x166)+_0x24afad));let _0xbd64de;try{_0xbd64de=readFileSync(_0x24afad,_0x43ad2f(0x315));}catch(_0x5474fd){const _0x16a1d2=_0x5474fd instanceof Error?_0x5474fd[_0x43ad2f(0x1ea)]:String(_0x5474fd);return console[_0x43ad2f(0x1a0)](_0x43ad2f(0x14e)+_0x16a1d2),0x1;}const _0x1adf86=await withSpinner(_0x43ad2f(0x27e),()=>_0x3b76f2[_0x43ad2f(0x347)][_0x43ad2f(0x269)](_0xbd64de),{'verbose':_0x5db0b9[_0x43ad2f(0x235)]}),_0x29efd2=_0x1adf86[_0x43ad2f(0x369)],{isNew:_0x10a0d6,name:_0x242b0f,hasChanges:_0x456b91,diffFormatted:_0x4746fb}=_0x29efd2;if(!_0x456b91)return console['error'](_0x43ad2f(0x229)+_0x242b0f+'\x27\x20is\x20already\x20up\x20to\x20date'),0x0;_0x10a0d6?console['error'](_0x43ad2f(0x2d7)+_0x242b0f+'\x27:'):console[_0x43ad2f(0x1a0)](_0x43ad2f(0x2a2)+_0x242b0f+'\x27:');console[_0x43ad2f(0x1a0)]('─'['repeat'](0x3c)),console[_0x43ad2f(0x1a0)](_0x4746fb),console['error']('─'[_0x43ad2f(0x1e1)](0x3c));const _0x2f5889=_0x10a0d6?'Create\x20parent\x20segment\x20\x27'+_0x242b0f+'\x27?':_0x43ad2f(0x335)+_0x242b0f+'\x27?';if(!_0x5db0b9[_0x43ad2f(0x1b5)]){if(!isInteractive())return console[_0x43ad2f(0x1a0)](a34_0x270838[_0x43ad2f(0x1e0)](_0x43ad2f(0x286)),_0x43ad2f(0x2d8)),console[_0x43ad2f(0x1a0)](a34_0x270838[_0x43ad2f(0x207)]('Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation')),0x1;const _0x6a897e=await confirmKey(_0x2f5889);if(!_0x6a897e)return console[_0x43ad2f(0x1a0)](a34_0x270838['yellow'](_0x43ad2f(0x2cf))),0x1;}const _0x73d51a=_0x10a0d6?_0x43ad2f(0x1b7):_0x43ad2f(0x312),_0x43831f=await withSpinner(_0x73d51a+_0x43ad2f(0x1ae)+_0x242b0f+_0x43ad2f(0x1f6),()=>_0x29efd2[_0x43ad2f(0x27f)](),{'verbose':_0x5db0b9[_0x43ad2f(0x235)]}),_0xadb4e0=_0x43831f['data'],_0x54d9c9=getConsoleNextUrl(_0x5db0b9[_0x43ad2f(0x213)],_0x43ad2f(0x23a)+_0xadb4e0['id']),_0x5e6fc2=_0x10a0d6?'Created':_0x43ad2f(0x222);return console[_0x43ad2f(0x1a0)]('✔\x20'+_0x5e6fc2+_0x43ad2f(0x1ae)+_0xadb4e0[_0x43ad2f(0x2f9)]+'\x27'),console['error']('\x20\x20'+_0x54d9c9),0x0;}}function a34_0x3059(){const _0x11d513=['message','{\x0a\x20\x20\x22database\x22:\x20\x22','sampleData','Error:\x20Service\x20ID\x20is\x20required','schemaValid','/sessions/','\x20\x20\x20Please\x20manually\x20merge\x20or\x20remove\x20','✔\x20Deleted\x20personalization\x20\x27','Attribute:','getBehaviorNames','List\x20personalization\x20services\x20for\x20a\x20parent\x20segment','includeSensitive','\x27...','\x20\x20Columns:\x20','Add\x20template\x20personalization\x20section\x20to\x20parent\x20segment\x20YAML','Personalization\x20service\x20description','displaySampleData','\x20to\x20configure\x20your\x20personalization\x20service','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]\x0a','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20\x20#\x20Uses\x20context','get','\x27\x20for\x20service\x20\x27','varchar','parentSegment','Usage:\x20tdx\x20ps\x20pz\x20show\x20<personalization_id>','FINISHED','Patching\x20personalization\x20\x27','sourceTableValid','scheduleOption','dim','events','Update\x20a\x20personalization\x20service\x20name\x20and/or\x20description','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]','\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior','any','Updating\x20personalization\x20service\x20\x27','ps:pz:service:token:create','\x20\x20\x22relationships\x22:\x20{\x20\x22parentFolder\x22:\x20{\x20\x22data\x22:\x20{\x20\x22id\x22:\x20\x22<id>\x22,\x20\x22type\x22:\x20\x22folder-segment\x22\x20}\x20}\x20}','Listing\x20RT-enabled\x20parent\x20segments\x20matching\x20\x27','setJobId','totalEvents','site','resumeJourney','12AXHsRN','\x27\x20not\x20found\x20in\x20any\x20personalization\x20service','Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID,\x20then\x20add:','payload:','Enriched:','using\x20the\x20default\x20path:\x20','stop','.customers)','\x20total','ps:pz:create','\x20tdx\x20wf\x20attempt\x20','\x27\x20with\x20ID:\x20','Error:\x20--name\x20is\x20required','Updated','\x0a✔\x20Workflow\x20started','stats','Error:\x20At\x20least\x20one\x20preview\x20option\x20required\x0a','\x0a\x20\x20\x20\x20]','Delete\x20a\x20personalization\x20service','updated:','✔\x20No\x20changes\x20-\x20\x27','Finding\x20service\x20for\x20token...','jsonl','joinKey','Default','12HspuxI','Status:','table','Usage:\x20tdx\x20parent-segment\x20preview\x20<name>\x20<option>\x0a','entryCriteria:','workflowAttemptId','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','verbose','\x20\x20\x20See:\x20tdx\x20segment\x20parent\x20pull\x20--help\x0a','Options:','replace','Master\x20+\x20Attributes','/app/dw/parentSegments/','9EbfGBv','10739003AsTCYF','Columns:','Create\x20a\x20personalization\x20service\x20for\x20a\x20parent\x20segment','\x20\x201.\x20Edit\x20','coveragePercent','description','platform','\x20Added\x20personalization\x20template\x20to\x20','label','null','endsWith','264492BvfLHF','displayAttributesStats','run','339932IBoKnG','keyEventCriteria','✔\x20Updated\x20parent\x20segment\x20\x27','Fetching\x20SQL\x20for\x20\x27','single','text','\x20stage','audienceId','✔\x20Created\x20personalization\x20\x27','\x20\x20\x20','\x20--enriched','double','Next\x20steps:','ps:rt:jn:resume','Error:\x20--description\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','dirname','validateParentYaml','tdx\x20ps\x20push\x20','sections:','parent_segment','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20push\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20specific\x20parent\x20segment','Attempt:','formatSchemaJson','\x20+\x20[','start','id:\x20','toLowerCase','stageCount','stringify','SELECT\x20*\x20FROM\x20','\x20\x20Tables:\x201\x20customers\x20+\x20','pushParentYaml','Source:','ps:rt:configuration_versions','2289205CAZozR','workflowId','segment:parent:show','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20ps\x20use\x20<name>`\x20to\x20set\x20it.\x0a','true','\x20[Job\x20ID:\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20view\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20View\x20specific\x20parent\x20segment\x0a\x0a','sourceTableError','✔\x20Paused\x20activations\x20for\x20RT\x20journey\x20\x27','displaySummary','Show\x20personalization\x20service\x20details','Error:\x20--name\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','ps:pz:service:token:delete','ps:pz:service:delete','entryCriteria','user_id','Table:\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20init\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20for\x20specific\x20parent\x20segment','Analyzing\x20changes...','apply','information_schema','Running\x20parent\x20segment\x20workflow\x20for\x20\x27','Create\x20parent\x20segment\x20\x27','Usage:\x20tdx\x20ps\x20pz\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20(requires\x20context)\x0a','darwin','list','\x0aError:','`\x20to\x20download\x20the\x20configuration\x20first','page_view','realtime:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20\x20#\x20Uses\x20context','use','token:','customerPercent','✔\x20Created\x20parent\x20segment\x20\x27','workflowSessionId','Error:','realtime','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service','\x20\x20--behavior\x20[name]\x20\x20\x20\x20Show\x20only\x20behaviors\x20(or\x20specific\x20one)\x0a','json','ID\x20Stitching:','\x20=\x20','resolveParentId','List\x20available\x20fields\x20for\x20segmentation','ps:rt:list','collectSchema','410578NaCnYV','scheduleType','.yml','status','eventKind','payload','✔\x20Renamed\x20directory\x20to\x20','\x0aChanges\x20to\x20apply\x20to\x20\x27','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]\x0a','Getting\x20personalization\x20\x27','Options\x20(one\x20required):\x0a','customerGroup','Attributes:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20fields\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20for\x20specific\x20parent\x20segment','parentFolder','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20configuration_versions\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20for\x20specific\x20parent\x20segment','indexOf','Join\x20on:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pull\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20specific\x20parent\x20segment','create','test','No\x20parent\x20segments\x20match\x20pattern:\x20','delete','List\x20parent\x20segments','\x22,\x0a\x20\x20\x22customers\x22:\x20{\x0a\x20\x20\x20\x20\x22table\x22:\x20\x22','✔\x20Retrieved\x20RT\x20configuration\x20version','<database>.<table>','Events:','Schema\x20saved\x20to\x20','Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)','\x20service','win32','deletePersonalization','database','Rows:','Listing\x20fields\x20for\x20\x27','matchedCount','\x0aNo\x20sample\x20data\x20available','Usage:\x20tdx\x20segment\x20parent\x20create\x20<name>\x20--database\x20<db>\x20--table\x20<table>','SQL\x20query:\x0a','processedRows','primaryKey','\x20\x20\x20\x20-\x20','no\x20tokens\x20configured','length','ps:pz:show','personalization','\x22,\x0a\x20\x20\x22parent_id\x22:\x20\x22','pullParentYaml','split','\x20parent\x20segment','Error:\x20No\x20attributes\x20defined\x20in\x20configuration','Aborted.','isDirectory','\x20--interval\x20','deleteToken','Tip:\x20Run\x20`tdx\x20ps\x20pull\x20-u\x20','join','Error:\x20--attribute\x20requires\x20a\x20name\x0a','behaviors','\x0aNew\x20parent\x20segment\x20\x27','Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode','Fetching\x20personalization\x20service\x20\x27','enabled','\x27\x20and\x20run\x20workflow?','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]\x0a','RT\x20Journey\x20ID:\x20','rowCount','Get\x20SQL\x20query\x20for\x20parent\x20segment','Get\x20current\x20RT\x20configuration\x20version\x20status','all','public:','personalizationServices','Usage:\x20tdx\x20ps\x20pz\x20service\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20(requires\x20context)\x0a','runParent','\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a','file','\x5c$&','\x20\x20\x20\x20','\x20No\x20changes\x20-\x20','Creating\x20token\x20\x27','\x0a\x20\x20},\x0a\x20\x20\x22behaviors\x22:\x20[\x0a','addAttributes','foreignKey','Errors:','getParentFull','bold','\x20Saved\x20parent\x20segment\x20configuration\x20to\x20','displayBehaviorsStats','segment:parent:list','\x20\x20-w,\x20--web\x20\x20Open\x20parent\x20segment\x20in\x20web\x20browser','in\x20','Preview:','segment:parent:preview','name','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20preview\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20specific\x20parent\x20segment\x0a\x0a','✔\x20Updated\x20personalization\x20service\x20\x27','attribute','pauseJourney','ps:pz:delete','Error:\x20Service\x20name\x20is\x20required','elapsedTimeMillis','Executing\x20parent\x20segment\x20query...','⚠️\x20\x20personalization_services\x20section\x20already\x20exists\x20in\x20','toLocaleString','Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]','customersWithEvents','Resume\x20activations\x20in\x20an\x20RT\x20journey','paused','\x20RT-enabled\x20parent\x20segment','public','createdAt','created:','Pattern:\x20','\x20\x20\x20\x20\x20\x20{\x20\x22name\x22:\x20\x22','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context','Deleting\x20personalization\x20\x27','Fetching\x20current\x20configuration\x20for\x20\x27','ps:rt:jn:list','Updating','ps:pz:service:list','(id:\x20','utf-8','behavior','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20create\x20--file\x20<path>','\x20field','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20for\x20specific\x20parent\x20segment','ps:rt:validate','\x20behavior\x20tables\x20not\x20yet\x20generated\x20(workflow\x20may\x20not\x20have\x20run)','unref','\x20Opening\x20','.yaml','No\x20RT\x20journeys\x20found','51WNWWiI','patch','✔\x20Deleted\x20token\x20\x27','\x22,\x20\x22type\x22:\x20\x22','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','columns','listPersonalizations','Creating\x20personalization\x20\x27','Site:\x20','✔\x20Query\x20completed:\x20Processed\x20','keyEventId:','segment:parent:pull','cyan','Show\x20a\x20specific\x20realtime\x20personalization','Usage:\x20tdx\x20ps\x20pz\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20(requires\x20context)\x0a','displayPreviewHints','allowedIps','execute','reduce','addAttributesFile','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20\x20#\x20Uses\x20context','Apply\x20changes\x20to\x20\x27','\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data','preview','ps:pz:init','Error:\x20Token\x20name\x20is\x20required','string','realtime_enabled','\x20rows)','open','folderId','List\x20realtime\x20personalizations\x20for\x20a\x20parent\x20segment','Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]\x0a','column_type','/\x20→\x20','session','Creating\x20parent\x20segment\x20\x27','Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs','displayRealtimeInfo','segment','localeCompare','Behavior:','Usage:\x20tdx\x20ps\x20rt\x20jn\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20(requires\x20context)\x0a','Execute\x20parent\x20segment\x20SQL\x20query\x20and\x20show\x20results','Error:\x20--folder-id\x20is\x20required.\x20Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID.','Session:','\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute\x0a','Audience\x20ID:','⚡\x20Not\x20enabled','Attributes','ps:rt:jn:pause','displayValidateResults','\x20--attribute\x20\x22<name>\x22','status:\x20','Fetching\x20behavior\x20list...','837012AtNVrm','value','-1d','toFixed','Join:','Overwrite\x20\x27','createPersonalization','/\x20and\x20','Usage:\x20tdx\x20ps\x20pz\x20delete\x20<personalization_id>','patchPersonalization','RT\x202.0:','column_name','✔\x20Deleted\x20personalization\x20service\x20\x27','Delete\x20a\x20realtime\x20personalization','jobId','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]','My\x20Service','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context','data','Fetching\x20parent\x20segment\x20\x27','filter','\x20RT\x20configuration\x20is\x20valid','query','Error\x20reading\x20file:\x20','customers','\x20--attribute\x20\x22','Master:','allValid','xdg-open','✔\x20Resumed\x20activations\x20for\x20RT\x20journey\x20\x27','segment:parent:fields','Usage:\x20tdx\x20ps\x20rt\x20configuration_versions\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20(requires\x20context)\x0a','displayMasterInfo','\x20\x20--attribute\x20[name]\x20\x20\x20Show\x20only\x20attributes\x20(or\x20specific\x20one)\x0a','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20--name\x20<name>\x20\x20#\x20Uses\x20context','Usage:\x20tdx\x20ps\x20view\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20View\x20(requires\x20context)\x0a','getParentSQL','Error\x20parsing\x20YAML:\x20','tdx\x20ps\x20preview\x20','population','parent_id','map','\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute','✔\x20Found\x20','sections','Usage:\x20tdx\x20segment\x20parent\x20update\x20<name>\x20[options]','Error:\x20File\x20not\x20found:\x20','YAML\x20file:\x20','log','attributes','listParents','\x20--behavior\x20\x22','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','Output\x20file:\x20','column','addBehaviorsFile','Error:\x20-u\x20(--use)\x20and\x20-o\x20(--output)\x20cannot\x20be\x20used\x20together\x0a','\x0aChanges\x20to\x20\x27','eventKind:\x20','/app/workflows/','ignore','Master\x20Table','Resolving\x20parent\x20segment\x20\x27','\x20configured','\x0a\x20\x20]\x0a}\x0a','Error:\x20Parent\x20segment\x20name\x20is\x20required','timezone','\x22,\x0a\x20\x20\x20\x20\x22columns\x22:\x20','\x0aUsage:\x20tdx\x20ps\x20preview\x20','To\x20cancel:','createToken','\x0a⚠\x20Save\x20this\x20token\x20value\x20-\x20it\x20will\x20not\x20be\x20shown\x20again:','enriched','2936050vNXoXC','Error:\x20Token\x20ID\x20is\x20required','\x20\x20Schema\x20not\x20available\x20(workflow\x20may\x20not\x20have\x20run\x20yet)','Error:\x20--database\x20and\x20--table\x20are\x20required','Listing\x20RT\x20journeys\x20for\x20\x27','Output\x20Database:','The\x20-u\x20flag\x20sets\x20the\x20context\x20to\x20the\x20pulled\x20segment,\x20which\x20requires','parent_segments','personalization_services','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20desc\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20for\x20parent\x20segment\x0a\x0a','segment:parent:view','Error:\x20RT\x20journey\x20ID\x20is\x20required\x0a','addBehaviors','getPersonalization','\x20\x20\x20\x20\x20\x20','last_page_viewed','segment:parent:sql','Parent\x20segment:\x20','Deleting\x20token\x20\x27','✔\x20Updated\x20personalization\x20\x27','yellow','schemaError','Usage:\x20tdx\x20ps\x20fields\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20(requires\x20context)\x0a','tokens','Usage:\x20tdx\x20ps\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20(requires\x20context)\x0a','\x20to\x20push\x20the\x20configuration','Error:\x20Personalization\x20ID\x20is\x20required','\x20Configuration\x20is\x20valid','⚡\x20Enabled','green','Usage:\x20tdx\x20ps\x20pull\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20(requires\x20context)\x0a','Usage:\x20tdx\x20ps\x20rt\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20(requires\x20context)\x0a','error','ps:pz:patch','Getting\x20RT\x20configuration\x20version\x20for\x20\x27','\x20Context\x20set:\x20','Options:\x0a','state','identifier','trim','\x20personalization\x20service','audienceId:','createParent','relationships','output','Usage:\x20tdx\x20ps\x20rt\x20jn\x20pause_activations\x20<journeyId>\x0a','\x20parent\x20segment\x20\x27','Usage:\x20tdx\x20ps\x20push\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20(requires\x20context)\x0a','getCurrentConfigVersion','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','master','stitchingKeys','Usage:\x20tdx\x20ps\x20pz\x20create\x20--name\x20<name>\x20--description\x20<desc>\x20--folder-id\x20<id>\x20[options]','yes','match','Creating','\x20--behavior\x20\x22<name>\x22','\x20\x20\x20\x20\x20\x20\x20Pass\x20null\x20to\x20place\x20in\x20the\x20root\x20folder.','\x20service(s)\x20configured','Coverage:','\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data\x0a','sort','\x27\x20(id:\x20','\x22\x20}','interval','displayPreviewResults','Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]','Show\x20parent\x20segment\x20details','\x20is\x20already\x20up\x20to\x20date','Validate:','Available\x20behaviors:','launched','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22columns\x22:\x20','\x0a\x20\x20\x20\x20}','audienceId:\x20','keyEventId','\x20(paused)','updatedAt','customerGroupFile','behavior_','number','Validating\x20RT\x20configuration...','format','\x20kill','ps:pz:service:create','\x0a⚠️\x20\x20Migrating:\x20','type','Error:\x20No\x20behaviors\x20defined\x20in\x20configuration','errors','Fetching\x20customers\x20schema...','getOutputDatabaseName','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]','80qpcwbS','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','\x20rows\x20','Error:\x20--behavior\x20requires\x20a\x20name\x0a','red','repeat','previewParentYaml','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20specific\x20parent\x20segment\x0a\x0a','Usage:\x20tdx\x20ps\x20show\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20(requires\x20context)\x0a','\x22,\x0a\x20\x20\x22parent_segment\x22:\x20\x22','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','displayColumns','Listing\x20parent\x20segments...','web'];a34_0x3059=function(){return _0x11d513;};return a34_0x3059();}export class ParentSegmentValidateCommand extends BaseParentSegmentCommand{['name']='segment:parent:validate';['description']=a34_0x43d0d4(0x16b);async['execute'](_0x14ab29){const _0x1934aa=a34_0x43d0d4,{options:_0x251c8c,args:_0x406aad,tdx:_0x13baf5}=_0x14ab29,_0x17047b=_0x251c8c,_0x4bb235=_0x406aad[0x0]||_0x251c8c[_0x1934aa(0x201)];if(!_0x4bb235)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20(requires\x20context)\x0a'+_0x1934aa(0x1e3)+_0x1934aa(0x1a4)+_0x1934aa(0x158)+_0x1934aa(0x293)+'\x20\x20--interval\x20<range>\x20\x20\x20TD_INTERVAL\x20time\x20range\x20for\x20behaviors\x20(default:\x20-1d)'),0x1;const _0x1485f0=resolveYamlFile(_0x4bb235);if(!existsSync(_0x1485f0))return showFileNotFoundError(_0x1485f0,_0x4bb235),0x1;_0x17047b[_0x1934aa(0x235)]&&(console[_0x1934aa(0x1a0)](_0x1934aa(0x328)+_0x17047b[_0x1934aa(0x213)]),console[_0x1934aa(0x1a0)](_0x1934aa(0x166)+_0x1485f0));let _0x26cd3e;try{_0x26cd3e=readFileSync(_0x1485f0,_0x1934aa(0x315));}catch(_0x1b3ffe){const _0x27ebfc=_0x1b3ffe instanceof Error?_0x1b3ffe[_0x1934aa(0x1ea)]:String(_0x1b3ffe);return console[_0x1934aa(0x1a0)]('Error\x20reading\x20file:\x20'+_0x27ebfc),0x1;}const _0x4df1a1=createCommandSpinner(a34_0x270838[_0x1934aa(0x207)]('Validating\x20configuration...'),{'verbose':_0x17047b[_0x1934aa(0x235)]});_0x4df1a1[_0x1934aa(0x262)]();const _0x29e51e={'onProgress':_0x29e8b3=>{const _0x576c9f=_0x1934aa;_0x4df1a1[_0x576c9f(0x24f)]=formatProgressMessage(_0x29e8b3);}};if(_0x17047b['master'])_0x29e51e[_0x1934aa(0x1b2)]=!![];if(_0x17047b['enriched'])_0x29e51e['enriched']=!![];_0x17047b[_0x1934aa(0x2fc)]&&(_0x29e51e[_0x1934aa(0x2fc)]=_0x17047b[_0x1934aa(0x2fc)]);_0x17047b[_0x1934aa(0x316)]&&(_0x29e51e[_0x1934aa(0x316)]=_0x17047b[_0x1934aa(0x316)]);if(_0x17047b[_0x1934aa(0x1c0)])_0x29e51e[_0x1934aa(0x1c0)]=_0x17047b[_0x1934aa(0x1c0)];let _0x344e9c;try{_0x344e9c=await _0x13baf5[_0x1934aa(0x347)][_0x1934aa(0x25a)](_0x26cd3e,_0x29e51e),_0x4df1a1[_0x1934aa(0x21b)]();}catch(_0x9c15e0){_0x4df1a1[_0x1934aa(0x21b)]();throw _0x9c15e0;}const _0x1613ae=_0x17047b[_0x1934aa(0x1c0)]||_0x1934aa(0x359);return this[_0x1934aa(0x353)](_0x344e9c,_0x29e51e,_0x1485f0,_0x1613ae),_0x344e9c[_0x1934aa(0x152)]?0x0:0x1;}[a34_0x43d0d4(0x353)](_0x52a5bf,_0x169614,_0x517b62,_0x22596e){const _0x3e649f=a34_0x43d0d4;console[_0x3e649f(0x1a0)]('\x0a'+a34_0x270838[_0x3e649f(0x2f1)](_0x3e649f(0x1c5))+'\x20'+_0x52a5bf[_0x3e649f(0x2f9)]),console[_0x3e649f(0x1a0)]('═'[_0x3e649f(0x1e1)](0x3c)),this[_0x3e649f(0x157)](_0x52a5bf);if(typeof _0x169614[_0x3e649f(0x2fc)]==='string'){this['displayAttributesStats'](_0x52a5bf),this[_0x3e649f(0x275)](_0x52a5bf),this[_0x3e649f(0x32f)](_0x517b62,_0x22596e,_0x3e649f(0x2fc),_0x169614[_0x3e649f(0x2fc)]);return;}if(_0x169614[_0x3e649f(0x2fc)]===!![]){this[_0x3e649f(0x248)](_0x52a5bf),this['displaySummary'](_0x52a5bf),this['displayPreviewHints'](_0x517b62,_0x22596e,_0x3e649f(0x168));return;}if(typeof _0x169614['behavior']===_0x3e649f(0x33a)){this['displayBehaviorsStats'](_0x52a5bf,_0x22596e),this[_0x3e649f(0x275)](_0x52a5bf),this[_0x3e649f(0x32f)](_0x517b62,_0x22596e,'behavior',_0x169614['behavior']);return;}if(_0x169614[_0x3e649f(0x316)]===!![]){this[_0x3e649f(0x2f3)](_0x52a5bf,_0x22596e),this[_0x3e649f(0x275)](_0x52a5bf),this['displayPreviewHints'](_0x517b62,_0x22596e,'behaviors');return;}this[_0x3e649f(0x248)](_0x52a5bf),this[_0x3e649f(0x2f3)](_0x52a5bf,_0x22596e),this[_0x3e649f(0x346)](_0x52a5bf),this[_0x3e649f(0x275)](_0x52a5bf),this[_0x3e649f(0x32f)](_0x517b62,_0x22596e,'all');}['displayRealtimeInfo'](_0x7bceb){displayRealtimeValidation(_0x7bceb);}['displayPreviewHints'](_0x10c2c3,_0x33a72b,_0x6ed508,_0x4550e6){const _0x45d78d=a34_0x43d0d4;console['error']('\x0a'+a34_0x270838[_0x45d78d(0x207)]('To\x20view\x20sample\x20data:'));const _0x36fc81=_0x33a72b!==_0x45d78d(0x359)?_0x45d78d(0x2d1)+_0x33a72b:'';if(_0x6ed508===_0x45d78d(0x2fc)&&_0x4550e6)console['error']('\x20\x20'+a34_0x270838[_0x45d78d(0x207)](_0x45d78d(0x15d)+_0x10c2c3+_0x45d78d(0x150)+_0x4550e6+'\x22'+_0x36fc81));else{if(_0x6ed508===_0x45d78d(0x316)&&_0x4550e6)console[_0x45d78d(0x1a0)]('\x20\x20'+a34_0x270838[_0x45d78d(0x207)]('tdx\x20ps\x20preview\x20'+_0x10c2c3+_0x45d78d(0x16a)+_0x4550e6+'\x22'+_0x36fc81));else(_0x6ed508==='attributes'||_0x6ed508===_0x45d78d(0x2e1))&&console[_0x45d78d(0x1a0)]('\x20\x20'+a34_0x270838[_0x45d78d(0x207)](_0x45d78d(0x15d)+_0x10c2c3+_0x45d78d(0x354)+_0x36fc81));}(_0x6ed508==='behaviors'||_0x6ed508==='all')&&console[_0x45d78d(0x1a0)]('\x20\x20'+a34_0x270838[_0x45d78d(0x207)](_0x45d78d(0x15d)+_0x10c2c3+_0x45d78d(0x1b8)+_0x36fc81)),_0x6ed508===_0x45d78d(0x2e1)&&console[_0x45d78d(0x1a0)]('\x20\x20'+a34_0x270838[_0x45d78d(0x207)](_0x45d78d(0x15d)+_0x10c2c3+_0x45d78d(0x254)+_0x36fc81));}['displayMasterInfo'](_0x3a8867){const _0xacea22=a34_0x43d0d4,{master:_0xa6848}=_0x3a8867,_0x41a7b5=_0xa6848[_0xacea22(0x1ee)]?a34_0x270838[_0xacea22(0x19d)]('✔'):a34_0x270838[_0xacea22(0x1e0)]('✘');console[_0xacea22(0x1a0)]('\x0a'+a34_0x270838[_0xacea22(0x207)](_0xacea22(0x174))),console['error'](_0x41a7b5+'\x20'+a34_0x270838[_0xacea22(0x2f1)](_0xa6848[_0xacea22(0x2bc)]+'.'+_0xa6848[_0xacea22(0x230)])),_0xa6848['schemaValid']?_0xa6848[_0xacea22(0x2de)]!==undefined&&console[_0xacea22(0x1a0)]('\x20\x20'+a34_0x270838[_0xacea22(0x207)](_0xacea22(0x2bd))+'\x20'+a34_0x270838[_0xacea22(0x32c)](formatRows(_0xa6848[_0xacea22(0x2de)]))):console[_0xacea22(0x1a0)]('\x20\x20'+a34_0x270838[_0xacea22(0x1e0)](_0xacea22(0x290))+'\x20'+_0xa6848[_0xacea22(0x195)]);}[a34_0x43d0d4(0x248)](_0x132107){const _0x4697a0=a34_0x43d0d4;if(_0x132107[_0x4697a0(0x168)][_0x4697a0(0x2c7)]===0x0)return;console['error']('\x0a'+a34_0x270838[_0x4697a0(0x207)](_0x4697a0(0x351)));for(const _0x286cff of _0x132107[_0x4697a0(0x168)]){const _0x2993fd=_0x286cff[_0x4697a0(0x1ee)]?a34_0x270838[_0x4697a0(0x19d)]('✔'):a34_0x270838[_0x4697a0(0x1e0)]('✘');let _0x4bbc37='';if(_0x286cff[_0x4697a0(0x1ee)]&&_0x286cff[_0x4697a0(0x2bf)]!==undefined&&_0x286cff[_0x4697a0(0x240)]!==undefined){const _0x29f15e=_0x286cff[_0x4697a0(0x240)][_0x4697a0(0x35a)](0x1),_0x4f1a4f=_0x286cff[_0x4697a0(0x240)]>=0x50?a34_0x270838[_0x4697a0(0x19d)]:_0x286cff['coveragePercent']>=0x32?a34_0x270838[_0x4697a0(0x194)]:a34_0x270838[_0x4697a0(0x1e0)];_0x4bbc37='\x20'+a34_0x270838['dim'](_0x4697a0(0x1bb))+'\x20'+_0x4f1a4f(_0x29f15e+'%')+'\x20('+formatRows(_0x286cff[_0x4697a0(0x2bf)])+_0x4697a0(0x33c);}console[_0x4697a0(0x1a0)](_0x2993fd+'\x20'+a34_0x270838[_0x4697a0(0x2f1)](_0x286cff[_0x4697a0(0x2f9)])+_0x4bbc37),console[_0x4697a0(0x1a0)]('\x20\x20'+a34_0x270838[_0x4697a0(0x207)](_0x4697a0(0x26a))+'\x20'+a34_0x270838['bold'](_0x286cff[_0x4697a0(0x2bc)]+'.'+_0x286cff['table']));const _0x6c6cf7=_0x286cff[_0x4697a0(0x22c)]===_0x286cff[_0x4697a0(0x2ee)]?a34_0x270838[_0x4697a0(0x207)]('Join\x20on:')+'\x20'+_0x286cff[_0x4697a0(0x22c)]:a34_0x270838[_0x4697a0(0x207)]('Join:')+'\x20'+_0x286cff[_0x4697a0(0x22c)]+_0x4697a0(0x296)+_0x286cff[_0x4697a0(0x2ee)];console[_0x4697a0(0x1a0)]('\x20\x20'+_0x6c6cf7),console['error']('\x20\x20'+a34_0x270838['dim'](_0x4697a0(0x23d))),this[_0x4697a0(0x1e7)](_0x286cff[_0x4697a0(0x325)]),!_0x286cff['schemaValid']&&console[_0x4697a0(0x1a0)]('\x20\x20'+a34_0x270838[_0x4697a0(0x1e0)](_0x4697a0(0x290))+'\x20'+_0x286cff['schemaError']);}}[a34_0x43d0d4(0x2f3)](_0x42f0b3,_0x45ec73){const _0x5d663e=a34_0x43d0d4;if(_0x42f0b3[_0x5d663e(0x2d6)][_0x5d663e(0x2c7)]===0x0)return;console['error']('\x0a'+a34_0x270838[_0x5d663e(0x207)]('Behaviors')+'\x20'+a34_0x270838[_0x5d663e(0x207)]('('+_0x45ec73+')'));for(const _0x533e3f of _0x42f0b3[_0x5d663e(0x2d6)]){const _0x49cf21=_0x533e3f[_0x5d663e(0x1ee)]?a34_0x270838[_0x5d663e(0x19d)]('✔'):a34_0x270838[_0x5d663e(0x1e0)]('✘');let _0x28b8ec='';if(_0x533e3f[_0x5d663e(0x1ee)]&&_0x533e3f[_0x5d663e(0x305)]!==undefined&&_0x533e3f['totalEvents']!==undefined){const _0x33172f=_0x533e3f[_0x5d663e(0x28d)]?.[_0x5d663e(0x35a)](0x1)||'?',_0x4989b8=(_0x533e3f[_0x5d663e(0x28d)]??0x0)>=0x32?a34_0x270838['green']:(_0x533e3f[_0x5d663e(0x28d)]??0x0)>=0x14?a34_0x270838[_0x5d663e(0x194)]:a34_0x270838[_0x5d663e(0x1e0)];_0x28b8ec='\x20'+a34_0x270838[_0x5d663e(0x207)]('Customers:')+'\x20'+_0x4989b8(formatRows(_0x533e3f[_0x5d663e(0x305)]))+'\x20('+_0x33172f+'%)\x20'+a34_0x270838[_0x5d663e(0x207)](_0x5d663e(0x2b6))+'\x20'+a34_0x270838[_0x5d663e(0x32c)](formatRows(_0x533e3f[_0x5d663e(0x212)]));}console[_0x5d663e(0x1a0)](_0x49cf21+'\x20'+a34_0x270838[_0x5d663e(0x2f1)](_0x533e3f[_0x5d663e(0x2f9)])+_0x28b8ec),console['error']('\x20\x20'+a34_0x270838[_0x5d663e(0x207)]('Source:')+'\x20'+a34_0x270838['bold'](_0x533e3f['database']+'.'+_0x533e3f['table']));const _0x5f0fc1=_0x533e3f[_0x5d663e(0x22c)]===_0x533e3f['foreignKey']?a34_0x270838[_0x5d663e(0x207)](_0x5d663e(0x2ac))+'\x20'+_0x533e3f[_0x5d663e(0x22c)]:a34_0x270838[_0x5d663e(0x207)](_0x5d663e(0x35b))+'\x20'+_0x533e3f[_0x5d663e(0x22c)]+'\x20=\x20'+_0x533e3f[_0x5d663e(0x2ee)];console['error']('\x20\x20'+_0x5f0fc1),console[_0x5d663e(0x1a0)]('\x20\x20'+a34_0x270838['dim'](_0x5d663e(0x23d))),this[_0x5d663e(0x1e7)](_0x533e3f[_0x5d663e(0x325)]),!_0x533e3f[_0x5d663e(0x1ee)]&&console[_0x5d663e(0x1a0)]('\x20\x20'+a34_0x270838[_0x5d663e(0x1e0)](_0x5d663e(0x290))+'\x20'+_0x533e3f[_0x5d663e(0x195)]);}}[a34_0x43d0d4(0x1e7)](_0x25cc5c){const _0x25755b=a34_0x43d0d4;for(const _0x48ffb8 of _0x25cc5c){_0x48ffb8[_0x25755b(0x244)]===_0x48ffb8[_0x25755b(0x16d)]||_0x48ffb8['column']==='*'?console[_0x25755b(0x1a0)]('\x20\x20\x20\x20-\x20'+_0x48ffb8['label']):console['error'](_0x25755b(0x2c5)+_0x48ffb8[_0x25755b(0x244)]+'\x20'+a34_0x270838['dim']('('+_0x48ffb8[_0x25755b(0x16d)]+')'));}}[a34_0x43d0d4(0x275)](_0x32052f){const _0x3dad5f=a34_0x43d0d4;console[_0x3dad5f(0x1a0)]('─'[_0x3dad5f(0x1e1)](0x3c));if(_0x32052f[_0x3dad5f(0x1d8)]['length']>0x0){console[_0x3dad5f(0x1a0)]('\x0a'+a34_0x270838['red']('Errors:'));for(const _0x4ea371 of _0x32052f[_0x3dad5f(0x1d8)]){console[_0x3dad5f(0x1a0)]('\x20\x20'+a34_0x270838[_0x3dad5f(0x1e0)]('•')+'\x20'+_0x4ea371);}}_0x32052f['allValid']&&console['error']('\x0a'+a34_0x270838[_0x3dad5f(0x19d)]('✔')+_0x3dad5f(0x19b));}}export class ParentSegmentPreviewCommand extends BaseParentSegmentCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x2f8);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x1e6);async['execute'](_0x57a233){const _0x1a448b=a34_0x43d0d4,{options:_0x3a9af8,args:_0x30077d,tdx:_0x43ee06}=_0x57a233,_0x449004=_0x3a9af8,_0x4f5878=_0x30077d[0x0]||_0x3a9af8[_0x1a448b(0x201)];if(!_0x4f5878)return showParentSegmentNotSetError(_0x1a448b(0x198)+_0x1a448b(0x2fa)+_0x1a448b(0x2a5)+_0x1a448b(0x1bc)+_0x1a448b(0x34e)+'\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior\x0a'+'\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data\x0a'+'\x20\x20--interval\x20<range>\x20\x20\x20TD_INTERVAL\x20time\x20range\x20for\x20behaviors\x20(default:\x20-1d)'),0x1;if(!_0x449004[_0x1a448b(0x1b2)]&&!_0x449004[_0x1a448b(0x2fc)]&&!_0x449004['behavior']&&!_0x449004[_0x1a448b(0x17f)])return console['error'](a34_0x270838['red'](_0x1a448b(0x225))),console[_0x1a448b(0x1a0)](_0x1a448b(0x231)),console[_0x1a448b(0x1a0)](_0x1a448b(0x237)),console[_0x1a448b(0x1a0)]('\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data'),console[_0x1a448b(0x1a0)](_0x1a448b(0x161)),console[_0x1a448b(0x1a0)](_0x1a448b(0x20b)),console['error'](_0x1a448b(0x336)),0x1;const _0x515324=resolveYamlFile(_0x4f5878);if(!existsSync(_0x515324))return showFileNotFoundError(_0x515324,_0x4f5878),0x1;_0x449004['verbose']&&(console[_0x1a448b(0x1a0)](_0x1a448b(0x328)+_0x449004[_0x1a448b(0x213)]),console[_0x1a448b(0x1a0)](_0x1a448b(0x166)+_0x515324));let _0x4c0bba;try{_0x4c0bba=readFileSync(_0x515324,_0x1a448b(0x315));}catch(_0x5b7abd){const _0x524a43=_0x5b7abd instanceof Error?_0x5b7abd[_0x1a448b(0x1ea)]:String(_0x5b7abd);return console[_0x1a448b(0x1a0)](_0x1a448b(0x14e)+_0x524a43),0x1;}let _0xedd341;try{_0xedd341=parseDef(_0x4c0bba);}catch(_0x58dc58){const _0x3275fe=_0x58dc58 instanceof Error?_0x58dc58[_0x1a448b(0x1ea)]:String(_0x58dc58);return console[_0x1a448b(0x1a0)](a34_0x270838[_0x1a448b(0x1e0)](_0x1a448b(0x15c)+_0x3275fe)),0x1;}if(_0x449004[_0x1a448b(0x2fc)]===!![]||_0x449004['attribute']===''){const _0x421ddc=_0xedd341['attributes']?.[_0x1a448b(0x160)](_0x1323d6=>_0x1323d6['name'])||[];if(_0x421ddc[_0x1a448b(0x2c7)]===0x0)console['error'](a34_0x270838[_0x1a448b(0x1e0)](_0x1a448b(0x2ce)));else{console[_0x1a448b(0x1a0)](a34_0x270838[_0x1a448b(0x1e0)](_0x1a448b(0x2d5))),console[_0x1a448b(0x1a0)]('Available\x20attributes:');for(const _0x1dd793 of _0x421ddc){console[_0x1a448b(0x1a0)]('\x20\x20'+a34_0x270838[_0x1a448b(0x32c)](_0x1dd793));}console['error'](_0x1a448b(0x17b)+_0x4f5878+_0x1a448b(0x150)+_0x421ddc[0x0]+'\x22');}return 0x1;}if(_0x449004[_0x1a448b(0x316)]===!![]||_0x449004['behavior']===''){const _0x252699=_0xedd341[_0x1a448b(0x2d6)]?.['map'](_0x1c1078=>_0x1c1078[_0x1a448b(0x2f9)])||[];if(_0x252699[_0x1a448b(0x2c7)]===0x0)console['error'](a34_0x270838[_0x1a448b(0x1e0)](_0x1a448b(0x1d7)));else{console[_0x1a448b(0x1a0)](a34_0x270838['red'](_0x1a448b(0x1df))),console['error'](_0x1a448b(0x1c6));for(const _0x3c1d87 of _0x252699){console['error']('\x20\x20'+a34_0x270838[_0x1a448b(0x32c)](_0x3c1d87));}console['error'](_0x1a448b(0x17b)+_0x4f5878+_0x1a448b(0x16a)+_0x252699[0x0]+'\x22');}return 0x1;}const _0x4657e6=createCommandSpinner(a34_0x270838[_0x1a448b(0x207)]('Fetching\x20sample\x20data...'),{'verbose':_0x449004['verbose']});_0x4657e6[_0x1a448b(0x262)]();const _0x2a3c04={'onProgress':_0x1a0302=>{const _0x1dc96d=_0x1a448b;_0x4657e6[_0x1dc96d(0x24f)]=formatProgressMessage(_0x1a0302);}};if(_0x449004[_0x1a448b(0x1b2)])_0x2a3c04['master']=!![];if(_0x449004['attribute']&&typeof _0x449004[_0x1a448b(0x2fc)]===_0x1a448b(0x33a))_0x2a3c04[_0x1a448b(0x2fc)]=_0x449004[_0x1a448b(0x2fc)];if(_0x449004[_0x1a448b(0x316)]&&typeof _0x449004[_0x1a448b(0x316)]==='string')_0x2a3c04[_0x1a448b(0x316)]=_0x449004[_0x1a448b(0x316)];if(_0x449004['enriched'])_0x2a3c04[_0x1a448b(0x17f)]=!![];if(_0x449004[_0x1a448b(0x1c0)])_0x2a3c04[_0x1a448b(0x1c0)]=_0x449004['interval'];let _0x550abc;try{_0x550abc=await _0x43ee06['segment'][_0x1a448b(0x1e2)](_0x4c0bba,_0x2a3c04),_0x4657e6['stop']();}catch(_0x3da8b4){_0x4657e6[_0x1a448b(0x21b)]();throw _0x3da8b4;}return await this['displayPreviewResults'](_0x550abc,{'master':_0x449004[_0x1a448b(0x1b2)],'attribute':typeof _0x449004[_0x1a448b(0x2fc)]===_0x1a448b(0x33a)?_0x449004[_0x1a448b(0x2fc)]:undefined,'behavior':typeof _0x449004[_0x1a448b(0x316)]===_0x1a448b(0x33a)?_0x449004[_0x1a448b(0x316)]:undefined,'enriched':_0x449004[_0x1a448b(0x17f)]}),_0x550abc[_0x1a448b(0x152)]?0x0:0x1;}async[a34_0x43d0d4(0x1c1)](_0x226aad,_0x170311){const _0x3d9168=a34_0x43d0d4;console[_0x3d9168(0x1a0)]('\x0a'+a34_0x270838[_0x3d9168(0x2f1)](_0x3d9168(0x2f7))+'\x20'+_0x226aad[_0x3d9168(0x2f9)]),console[_0x3d9168(0x1a0)]('═'['repeat'](0x3c));if(_0x170311['master']&&_0x226aad['sampleData']){const _0x925a21=a34_0x270838['dim'](_0x3d9168(0x151))+'\x20'+a34_0x270838[_0x3d9168(0x2f1)](_0x226aad[_0x3d9168(0x1b2)][_0x3d9168(0x2bc)]+'.'+_0x226aad['master'][_0x3d9168(0x230)]);await this[_0x3d9168(0x1fa)](_0x925a21,_0x226aad[_0x3d9168(0x1ec)]);}else{if(_0x170311[_0x3d9168(0x2fc)]&&_0x226aad['sampleData']){const _0x2cccf2=a34_0x270838[_0x3d9168(0x207)](_0x3d9168(0x1f2))+'\x20'+a34_0x270838[_0x3d9168(0x2f1)](_0x170311[_0x3d9168(0x2fc)]);await this[_0x3d9168(0x1fa)](_0x2cccf2,_0x226aad[_0x3d9168(0x1ec)]);}else{if(_0x170311['behavior']&&_0x226aad[_0x3d9168(0x1ec)]){const _0x55dfda=a34_0x270838['dim'](_0x3d9168(0x349))+'\x20'+a34_0x270838[_0x3d9168(0x2f1)](_0x170311[_0x3d9168(0x316)]);await this[_0x3d9168(0x1fa)](_0x55dfda,_0x226aad[_0x3d9168(0x1ec)]);}else{if(_0x170311['enriched']&&_0x226aad['sampleData']){const _0x1bf660=a34_0x270838['dim'](_0x3d9168(0x219))+'\x20'+a34_0x270838[_0x3d9168(0x2f1)](_0x3d9168(0x239));await this[_0x3d9168(0x1fa)](_0x1bf660,_0x226aad['sampleData']);}else!_0x226aad[_0x3d9168(0x1ec)]&&console[_0x3d9168(0x1a0)](_0x3d9168(0x2c0));}}}if(_0x226aad[_0x3d9168(0x1d8)][_0x3d9168(0x2c7)]>0x0){console[_0x3d9168(0x1a0)]('─'[_0x3d9168(0x1e1)](0x3c)),console[_0x3d9168(0x1a0)]('\x0a'+a34_0x270838[_0x3d9168(0x1e0)]('Errors:'));for(const _0x2137de of _0x226aad[_0x3d9168(0x1d8)]){console[_0x3d9168(0x1a0)]('\x20\x20'+a34_0x270838['red']('•')+'\x20'+_0x2137de);}}}async[a34_0x43d0d4(0x1fa)](_0x1e7eb1,_0x528bf5){const _0x53b533=a34_0x43d0d4;if(_0x528bf5[_0x53b533(0x2c7)]===0x0){console['error']('\x0a'+_0x1e7eb1),console[_0x53b533(0x1a0)]('\x20\x20No\x20sample\x20data\x20available');return;}console[_0x53b533(0x1a0)]('\x0a'+_0x1e7eb1);const _0x337bf4=Object['keys'](_0x528bf5[0x0])[_0x53b533(0x160)](_0x5d739e=>({'name':_0x5d739e,'type':typeof _0x528bf5[0x0][_0x5d739e]===_0x53b533(0x1d0)?_0x53b533(0x255):_0x53b533(0x200)})),_0x3d812b={'queryId':_0x53b533(0x337),'columns':_0x337bf4,'data':_0x528bf5,'stats':{'state':_0x53b533(0x203),'queued':![],'scheduled':![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x528bf5[_0x53b533(0x2c7)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}},_0x2020da=formatAsTable(_0x3d812b,_0x528bf5[_0x53b533(0x2c7)],!![]);await writeOutput(_0x2020da,undefined,_0x53b533(0x230));}}export class ParentSegmentRunCommand extends BaseParentSegmentCommand{[a34_0x43d0d4(0x2f9)]='segment:parent:run';[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x2b8);async[a34_0x43d0d4(0x331)](_0x21b1f5){const _0x51e1bb=a34_0x43d0d4,{options:_0x29e8cd,args:_0x45e968,tdx:_0x500e50}=_0x21b1f5,_0x44942f=_0x29e8cd,_0x163b79=_0x45e968[0x0]||_0x29e8cd['parentSegment'];if(!_0x163b79)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20run\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20specific\x20parent\x20segment'),0x1;const _0x574436=resolveYamlFile(_0x163b79);if(existsSync(_0x574436)){_0x44942f[_0x51e1bb(0x235)]&&console[_0x51e1bb(0x1a0)]('Found\x20YAML\x20file:\x20'+_0x574436);let _0x448695;try{_0x448695=readFileSync(_0x574436,_0x51e1bb(0x315));}catch(_0x271188){const _0x5b223e=_0x271188 instanceof Error?_0x271188[_0x51e1bb(0x1ea)]:String(_0x271188);return console[_0x51e1bb(0x1a0)](_0x51e1bb(0x14e)+_0x5b223e),0x1;}const _0x4c6fce=await withSpinner(_0x51e1bb(0x27e),()=>_0x500e50[_0x51e1bb(0x347)][_0x51e1bb(0x269)](_0x448695),{'verbose':_0x44942f[_0x51e1bb(0x235)]}),_0x59a497=_0x4c6fce[_0x51e1bb(0x369)],{isNew:_0x57c488,name:_0x135ea3,hasChanges:_0x4b9797,diffFormatted:_0x134aea}=_0x59a497;if(_0x4b9797){_0x57c488?console[_0x51e1bb(0x1a0)](_0x51e1bb(0x2d7)+_0x135ea3+'\x27:'):console[_0x51e1bb(0x1a0)]('\x0aChanges\x20to\x20apply\x20to\x20\x27'+_0x135ea3+'\x27:');console[_0x51e1bb(0x1a0)]('─'[_0x51e1bb(0x1e1)](0x3c)),console['error'](_0x134aea),console[_0x51e1bb(0x1a0)]('─'[_0x51e1bb(0x1e1)](0x3c));const _0x428b7f=_0x57c488?_0x51e1bb(0x282)+_0x135ea3+_0x51e1bb(0x2db):_0x51e1bb(0x335)+_0x135ea3+_0x51e1bb(0x2db);if(!_0x44942f[_0x51e1bb(0x1b5)]){if(!isInteractive())return console[_0x51e1bb(0x1a0)](a34_0x270838[_0x51e1bb(0x1e0)](_0x51e1bb(0x286)),_0x51e1bb(0x2d8)),console['error'](a34_0x270838[_0x51e1bb(0x207)](_0x51e1bb(0x1b1))),0x1;const _0x5f1edc=await confirmKey(_0x428b7f);if(!_0x5f1edc)return console['error'](a34_0x270838[_0x51e1bb(0x194)](_0x51e1bb(0x2cf))),0x1;}const _0x140857=_0x57c488?_0x51e1bb(0x1b7):'Updating';await withSpinner(_0x140857+_0x51e1bb(0x1ae)+_0x135ea3+'\x27...',()=>_0x59a497[_0x51e1bb(0x27f)](),{'verbose':_0x44942f[_0x51e1bb(0x235)]});const _0x28627a=_0x57c488?'Created':_0x51e1bb(0x222);console[_0x51e1bb(0x1a0)]('✔\x20'+_0x28627a+'\x20parent\x20segment\x20\x27'+_0x135ea3+'\x27');}else console[_0x51e1bb(0x1a0)]('✔\x20No\x20changes\x20-\x20\x27'+_0x135ea3+'\x27\x20is\x20up\x20to\x20date');}const _0x8730df=await withSpinner(_0x51e1bb(0x281)+_0x163b79+_0x51e1bb(0x1f6),()=>_0x500e50[_0x51e1bb(0x347)][_0x51e1bb(0x2e5)](_0x163b79),{'verbose':_0x44942f[_0x51e1bb(0x235)]}),_0x45dfb8=_0x8730df[_0x51e1bb(0x369)],_0x596d8f=getConsoleUrl(_0x44942f[_0x51e1bb(0x213)],_0x51e1bb(0x172)+_0x45dfb8[_0x51e1bb(0x26d)]+_0x51e1bb(0x1ef)+_0x45dfb8[_0x51e1bb(0x28f)]+'/attempt/'+_0x45dfb8['workflowAttemptId']);return console['error'](_0x51e1bb(0x223)),console[_0x51e1bb(0x1a0)]('\x20\x20'+a34_0x270838[_0x51e1bb(0x207)](_0x51e1bb(0x34f))+'\x20'+_0x45dfb8[_0x51e1bb(0x251)]),console[_0x51e1bb(0x1a0)]('\x20\x20'+a34_0x270838[_0x51e1bb(0x207)](_0x51e1bb(0x22f))+'\x20'+_0x45dfb8[_0x51e1bb(0x29e)]),console[_0x51e1bb(0x1a0)]('\x20\x20'+a34_0x270838[_0x51e1bb(0x207)](_0x51e1bb(0x34d))+'\x20'+_0x45dfb8[_0x51e1bb(0x28f)]),console[_0x51e1bb(0x1a0)]('\x20\x20'+a34_0x270838[_0x51e1bb(0x207)](_0x51e1bb(0x25f))+'\x20'+_0x45dfb8['workflowAttemptId']),console[_0x51e1bb(0x1a0)]('\x20\x20'+_0x596d8f),console['error']('\x0a'+a34_0x270838[_0x51e1bb(0x207)](_0x51e1bb(0x17c))+_0x51e1bb(0x21f)+_0x45dfb8[_0x51e1bb(0x233)]+_0x51e1bb(0x1d3)),0x0;}}export class ParentSegmentFieldsCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x155);['description']=a34_0x43d0d4(0x298);async[a34_0x43d0d4(0x331)](_0x1184cb){const _0x2a09eb=a34_0x43d0d4,{options:_0x3dedd7,args:_0x5ed8be,tdx:_0x1214ce}=_0x1184cb,_0xddd543=_0x5ed8be[0x0]||_0x3dedd7[_0x2a09eb(0x201)];if(!_0xddd543)return showParentSegmentNotSetError(_0x2a09eb(0x196)+_0x2a09eb(0x2a8)),0x1;_0x3dedd7['verbose']&&(console[_0x2a09eb(0x1a0)](_0x2a09eb(0x328)+_0x3dedd7[_0x2a09eb(0x213)]),console[_0x2a09eb(0x1a0)](_0x2a09eb(0x191)+_0xddd543));const _0x1ef02e=await withSpinner(_0x2a09eb(0x2be)+_0xddd543+_0x2a09eb(0x1f6),()=>_0x1214ce[_0x2a09eb(0x347)]['listFields'](_0xddd543),{'verbose':_0x3dedd7[_0x2a09eb(0x235)]}),_0x3815a3=_0x1ef02e[_0x2a09eb(0x369)];console[_0x2a09eb(0x1a0)]('✔\x20Found\x20'+_0x3815a3[_0x2a09eb(0x2c7)]+_0x2a09eb(0x318)+(_0x3815a3[_0x2a09eb(0x2c7)]!==0x1?'s':''));if(_0x3dedd7['json']||_0x3dedd7[_0x2a09eb(0x22b)])return await handleSDKOutput(_0x3815a3,_0x3dedd7),0x0;return displayFieldsHumanReadable(_0x3815a3,_0xddd543),0x0;}}export class ParentSegmentViewCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x18a);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x1c3);async[a34_0x43d0d4(0x331)](_0x5b3637){const _0x20470a=a34_0x43d0d4,{options:_0x148300,args:_0x404f50,tdx:_0x2800de}=_0x5b3637,_0x5828fc=_0x148300,_0x3d4fe1=_0x404f50[0x0]||_0x148300[_0x20470a(0x201)];if(!_0x3d4fe1)return showParentSegmentNotSetError(_0x20470a(0x15a)+_0x20470a(0x272)+_0x20470a(0x1a4)+_0x20470a(0x2f5)),0x1;_0x148300[_0x20470a(0x235)]&&(console['error'](_0x20470a(0x328)+_0x148300['site']),console[_0x20470a(0x1a0)](_0x20470a(0x191)+_0x3d4fe1));const _0x4fedd2=await withSpinner(_0x20470a(0x36a)+_0x3d4fe1+_0x20470a(0x1f6),()=>_0x2800de[_0x20470a(0x347)][_0x20470a(0x2f0)](_0x3d4fe1),{'verbose':_0x148300['verbose']}),_0x5c04ae=_0x4fedd2[_0x20470a(0x369)];if(_0x5828fc[_0x20470a(0x1e9)]){const _0xa6625c=getConsoleNextUrl(_0x5828fc[_0x20470a(0x213)],_0x20470a(0x23a)+_0x5c04ae['id']);return console['error'](a34_0x270838[_0x20470a(0x19d)]('✔')+_0x20470a(0x31d)+a34_0x270838['cyan'](_0xa6625c)),openBrowser(_0xa6625c),0x0;}return await handleSingleObjectOutput(_0x5c04ae,_0x148300),0x0;}}export class ParentSegmentDescCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]='segment:parent:desc';['description']='Show\x20parent\x20segment\x20schema\x20(column\x20types)';async[a34_0x43d0d4(0x331)](_0x1058ff){const _0x18e690=a34_0x43d0d4,{options:_0x5a4775,args:_0x269243,tdx:_0x439e90}=_0x1058ff,_0x492565=_0x5a4775,_0x39e6bd=_0x269243[0x0]||_0x5a4775['parentSegment'];if(!_0x39e6bd)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20desc\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20(requires\x20context)\x0a'+_0x18e690(0x189)+_0x18e690(0x1a4)+'\x20\x20-o,\x20--output\x20<file>\x20\x20Output\x20file\x20path'),0x1;_0x5a4775[_0x18e690(0x235)]&&(console[_0x18e690(0x1a0)](_0x18e690(0x328)+_0x5a4775[_0x18e690(0x213)]),console['error'](_0x18e690(0x191)+_0x39e6bd));const _0x55f9ff=await withSpinner(_0x18e690(0x175)+_0x39e6bd+_0x18e690(0x1f6),()=>_0x439e90[_0x18e690(0x347)][_0x18e690(0x297)](_0x39e6bd),{'verbose':_0x5a4775[_0x18e690(0x235)]}),_0x42ba6a=_0x55f9ff[_0x18e690(0x369)],_0x24870d=_0x439e90[_0x18e690(0x347)][_0x18e690(0x1da)](_0x42ba6a);if(_0x492565['output']){const _0xbbf54e=await this[_0x18e690(0x29a)](_0x1058ff,_0x39e6bd,_0x42ba6a,_0x24870d),_0x389aed=this[_0x18e690(0x260)](_0xbbf54e);writeFileSync(_0x492565[_0x18e690(0x1ac)],_0x389aed);const _0x421954=_0xbbf54e[_0x18e690(0x14f)][_0x18e690(0x325)]['length']+_0xbbf54e[_0x18e690(0x2d6)][_0x18e690(0x332)]((_0x16d8d4,_0x46a785)=>_0x16d8d4+_0x46a785['columns'][_0x18e690(0x2c7)],0x0),_0x504b14=_0xbbf54e[_0x18e690(0x2d6)][_0x18e690(0x14b)](_0x434d91=>_0x434d91[_0x18e690(0x325)]['length']===0x0)[_0x18e690(0x2c7)];return console[_0x18e690(0x167)](_0x18e690(0x2b7)+_0x492565[_0x18e690(0x1ac)]),console[_0x18e690(0x167)]('\x20\x20Database:\x20'+_0x24870d),console[_0x18e690(0x167)](_0x18e690(0x268)+_0xbbf54e[_0x18e690(0x2d6)][_0x18e690(0x2c7)]+'\x20behaviors'),console[_0x18e690(0x167)](_0x18e690(0x1f7)+_0x421954+_0x18e690(0x21d)),_0x504b14>0x0&&console[_0x18e690(0x167)]('\x20\x20Note:\x20'+_0x504b14+_0x18e690(0x31b)),0x0;}console[_0x18e690(0x1a0)]('\x0a'+a34_0x270838[_0x18e690(0x2f1)](_0x18e690(0x185))+'\x20'+a34_0x270838[_0x18e690(0x32c)](_0x24870d));const _0xb808fe=await withSpinner(_0x18e690(0x1d9),()=>_0x439e90['segment'][_0x18e690(0x15b)](_0x42ba6a),{'verbose':_0x5a4775['verbose']});console[_0x18e690(0x1a0)]('\x0a'+a34_0x270838['bold']('customers')+'\x20'+a34_0x270838[_0x18e690(0x207)]('('+_0x24870d+_0x18e690(0x21c)));const _0x597580=await executeSchemaQuery(_0xb808fe['data'],_0x439e90,_0x5a4775);await handleQueryOutput(_0x597580,_0x5a4775);const _0x3c1ee8=await withSpinner('Fetching\x20behavior\x20list...',()=>_0x439e90[_0x18e690(0x347)][_0x18e690(0x1f3)](_0x42ba6a),{'verbose':_0x5a4775[_0x18e690(0x235)]});for(const _0x2c10b4 of _0x3c1ee8[_0x18e690(0x369)]){const _0x23970b=_0x18e690(0x1cf)+_0x2c10b4[_0x18e690(0x264)]()['replace'](/\s+/g,'_'),_0x2fdf46=_0x18e690(0x267)+_0x24870d+'.'+_0x23970b;console[_0x18e690(0x1a0)]('\x0a'+a34_0x270838[_0x18e690(0x2f1)](_0x2c10b4)+'\x20'+a34_0x270838['dim']('('+_0x24870d+'.'+_0x23970b+')'));try{const _0x12a43f=await executeSchemaQuery(_0x2fdf46,_0x439e90,_0x5a4775);await handleQueryOutput(_0x12a43f,_0x5a4775);}catch{console[_0x18e690(0x1a0)](a34_0x270838[_0x18e690(0x194)](_0x18e690(0x182)));}}return 0x0;}async['collectSchema'](_0x3ea3b5,_0xc8ac6d,_0x17315e,_0x145e02){const _0x57fe15=a34_0x43d0d4,{options:_0x39f5e8,tdx:_0x121021}=_0x3ea3b5,_0x4be6e0=await withSpinner('Fetching\x20customers\x20schema...',()=>_0x121021[_0x57fe15(0x347)]['getParentSQL'](_0x17315e),{'verbose':_0x39f5e8[_0x57fe15(0x235)]}),_0x2f2e78=await executeSchemaQuery(_0x4be6e0[_0x57fe15(0x369)],_0x121021,_0x39f5e8),_0x520c2d=_0x2f2e78[_0x57fe15(0x369)][_0x57fe15(0x160)](_0x4f128d=>({'name':_0x4f128d[_0x57fe15(0x362)],'type':_0x4f128d[_0x57fe15(0x341)]})),_0x1c2028=await withSpinner(_0x57fe15(0x356),()=>_0x121021[_0x57fe15(0x347)][_0x57fe15(0x1f3)](_0x17315e),{'verbose':_0x39f5e8[_0x57fe15(0x235)]}),_0x4d0a0a=[];for(const _0x2a019d of _0x1c2028[_0x57fe15(0x369)]){const _0x1fdfac=_0x57fe15(0x1cf)+_0x2a019d[_0x57fe15(0x264)]()[_0x57fe15(0x238)](/\s+/g,'_'),_0x476d26='SELECT\x20*\x20FROM\x20'+_0x145e02+'.'+_0x1fdfac;let _0x15d1d1=[];try{const _0xf2c2de=await executeSchemaQuery(_0x476d26,_0x121021,_0x39f5e8);_0x15d1d1=_0xf2c2de[_0x57fe15(0x369)][_0x57fe15(0x160)](_0x56c94d=>({'name':_0x56c94d[_0x57fe15(0x362)],'type':_0x56c94d[_0x57fe15(0x341)]}));}catch{}_0x4d0a0a['push']({'table':_0x1fdfac,'columns':_0x15d1d1});}return{'database':_0x145e02,'parent_segment':_0xc8ac6d,'parent_id':_0x17315e,'customers':{'table':_0x57fe15(0x14f),'columns':_0x520c2d},'behaviors':_0x4d0a0a};}[a34_0x43d0d4(0x260)](_0x1f3362){const _0x122693=a34_0x43d0d4,_0x3b9f6d=_0x50d34a=>{const _0x4385bc=a34_0x11ee;if(_0x50d34a[_0x4385bc(0x2c7)]===0x0)return'[]';const _0x33887d=_0x50d34a[_0x4385bc(0x160)](_0x2b6911=>_0x4385bc(0x30d)+_0x2b6911[_0x4385bc(0x2f9)]+_0x4385bc(0x323)+_0x2b6911[_0x4385bc(0x1d6)]+_0x4385bc(0x1bf));return'[\x0a'+_0x33887d[_0x4385bc(0x2d4)](',\x0a')+_0x4385bc(0x226);},_0x408957=_0x1f3362[_0x122693(0x2d6)][_0x122693(0x160)](_0x580411=>{const _0x1a0072=_0x122693;return'\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x22table\x22:\x20\x22'+_0x580411['table']+_0x1a0072(0x1c8)+_0x3b9f6d(_0x580411['columns'])['replace'](/^/gm,'\x20\x20')[_0x1a0072(0x1a7)]()+_0x1a0072(0x1c9);})[_0x122693(0x2d4)](',\x0a');return _0x122693(0x1eb)+_0x1f3362[_0x122693(0x2bc)]+_0x122693(0x1e5)+_0x1f3362['parent_segment']+_0x122693(0x2ca)+_0x1f3362[_0x122693(0x15f)]+_0x122693(0x2b3)+_0x1f3362[_0x122693(0x14f)]['table']+_0x122693(0x17a)+_0x3b9f6d(_0x1f3362[_0x122693(0x14f)]['columns'])['replace'](/^/gm,'\x20\x20')['trim']()+_0x122693(0x2ec)+_0x408957+_0x122693(0x177);}}export class ParentSegmentSQLCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x190);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x2df);async[a34_0x43d0d4(0x331)](_0x39d583){const _0x386612=a34_0x43d0d4,{options:_0xd30fd0,args:_0x4ceafe,tdx:_0x586482}=_0x39d583,_0x30ad23=_0x4ceafe[0x0]||_0xd30fd0[_0x386612(0x201)];if(!_0x30ad23)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20sql\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20sql\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20for\x20specific\x20parent\x20segment'),0x1;_0xd30fd0[_0x386612(0x235)]&&(console['error'](_0x386612(0x328)+_0xd30fd0['site']),console[_0x386612(0x1a0)](_0x386612(0x191)+_0x30ad23));const _0x7ade70=await withSpinner(_0x386612(0x175)+_0x30ad23+_0x386612(0x1f6),()=>_0x586482[_0x386612(0x347)][_0x386612(0x297)](_0x30ad23),{'verbose':_0xd30fd0[_0x386612(0x235)]}),_0x2ff0d8=_0x7ade70[_0x386612(0x369)],_0x76aaf4=await withSpinner('Fetching\x20SQL\x20for\x20\x27'+_0x30ad23+_0x386612(0x1f6),()=>_0x586482['segment'][_0x386612(0x15b)](_0x2ff0d8),{'verbose':_0xd30fd0['verbose']}),_0x3ca8a1=_0x76aaf4['data'];return _0xd30fd0[_0x386612(0x1d2)]===_0x386612(0x294)||_0xd30fd0[_0x386612(0x1d2)]===_0x386612(0x22b)?await handleSDKOutput([{'sql':_0x3ca8a1}],_0xd30fd0):console[_0x386612(0x167)](_0x3ca8a1),0x0;}}export class ParentSegmentShowCommand extends BaseCommand{['name']=a34_0x43d0d4(0x26e);['description']=a34_0x43d0d4(0x34b);async[a34_0x43d0d4(0x331)](_0x1e8fa8){const _0x3657d1=a34_0x43d0d4,{options:_0x2f583d,args:_0x4e25c2,tdx:_0x378b59}=_0x1e8fa8,_0x482362=_0x4e25c2[0x0]||_0x2f583d['parentSegment'];if(!_0x482362)return showParentSegmentNotSetError(_0x3657d1(0x1e4)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20show\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20for\x20specific\x20parent\x20segment'),0x1;_0x2f583d[_0x3657d1(0x235)]&&(console[_0x3657d1(0x1a0)](_0x3657d1(0x328)+_0x2f583d[_0x3657d1(0x213)]),console[_0x3657d1(0x1a0)](_0x3657d1(0x191)+_0x482362));const _0x196dd0=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x482362+_0x3657d1(0x1f6),()=>_0x378b59[_0x3657d1(0x347)][_0x3657d1(0x297)](_0x482362),{'verbose':_0x2f583d[_0x3657d1(0x235)]}),_0x5e1925=_0x196dd0[_0x3657d1(0x369)],_0x142bd7=await withSpinner(_0x3657d1(0x24d)+_0x482362+_0x3657d1(0x1f6),()=>_0x378b59[_0x3657d1(0x347)][_0x3657d1(0x15b)](_0x5e1925),{'verbose':_0x2f583d[_0x3657d1(0x235)]});let _0xd57ef0=_0x142bd7['data'];const _0xc00047=resolveLimit(_0x2f583d['limit'],DEFAULT_DISPLAY_LIMIT),_0x5925e4=/\bLIMIT\s+\d+/i[_0x3657d1(0x2af)](_0xd57ef0);!_0x5925e4&&(_0xd57ef0=_0xd57ef0['trim']()['replace'](/;+$/,''),_0xd57ef0='SELECT\x20*\x20FROM\x20(\x0a'+_0xd57ef0+'\x0a)\x20AS\x20segment_query\x0aLIMIT\x20'+_0xc00047);_0x2f583d[_0x3657d1(0x235)]&&console[_0x3657d1(0x1a0)](_0x3657d1(0x2c2)+_0xd57ef0);const _0x2911c4=await withProgressSpinner(_0x3657d1(0x301),async _0x412a49=>{const _0x29dcc6=_0x3657d1,_0x248633=await _0x378b59[_0x29dcc6(0x14d)][_0x29dcc6(0x331)](_0xd57ef0,{'catalog':'td','schema':_0x29dcc6(0x280),'onJobId':_0x5a6494=>{const _0x5f0684=_0x29dcc6;_0x412a49[_0x5f0684(0x211)](_0x5a6494);}});return _0x248633;},{'verbose':_0x2f583d['verbose']}),_0x523769=_0x2911c4[_0x3657d1(0x369)],_0x59a844=_0x523769[_0x3657d1(0x365)]?_0x3657d1(0x271)+_0x523769[_0x3657d1(0x365)]+']':'';return console[_0x3657d1(0x1a0)](_0x3657d1(0x329)+_0x523769['stats'][_0x3657d1(0x2c3)][_0x3657d1(0x303)]()+_0x3657d1(0x1de)+(_0x3657d1(0x2f6)+formatElapsed(_0x523769[_0x3657d1(0x224)][_0x3657d1(0x300)])+_0x59a844)),await handleQueryOutput(_0x523769,_0x2f583d),0x0;}}export class PSRtListCommand extends BaseCommand{['name']=a34_0x43d0d4(0x299);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x1dd);async['execute'](_0x22194d){const _0x5db1c0=a34_0x43d0d4,{options:_0x55c771,args:_0x350aa4,tdx:_0x41db8f}=_0x22194d,_0x25e4cd=_0x350aa4[0x0],_0x2e01e0=await withSpinner(_0x25e4cd?_0x5db1c0(0x210)+_0x25e4cd+_0x5db1c0(0x1f6):'Listing\x20RT-enabled\x20parent\x20segments...',()=>_0x41db8f['realtime'][_0x5db1c0(0x285)](),{'verbose':_0x55c771[_0x5db1c0(0x235)]});let _0x36eb14=_0x2e01e0['data'][_0x5db1c0(0x14b)](_0x2b09d9=>_0x2b09d9[_0x5db1c0(0x33b)]);if(_0x25e4cd){const _0x214bfd=_0x25e4cd['replace'](/[.+^${}()|[\]\\]/g,_0x5db1c0(0x2e8))[_0x5db1c0(0x238)](/\*/g,'.*')['replace'](/\?/g,'.'),_0x4a4d66=new RegExp('^'+_0x214bfd+'$','i');_0x36eb14=_0x36eb14[_0x5db1c0(0x14b)](_0xe160be=>_0x4a4d66[_0x5db1c0(0x2af)](_0xe160be[_0x5db1c0(0x2f9)]));}_0x36eb14[_0x5db1c0(0x1bd)]((_0x4105bb,_0x314823)=>_0x4105bb[_0x5db1c0(0x2f9)]['localeCompare'](_0x314823[_0x5db1c0(0x2f9)])),console['error'](_0x5db1c0(0x162)+_0x36eb14[_0x5db1c0(0x2c7)]+_0x5db1c0(0x308)+(_0x36eb14['length']!==0x1?'s':''));const _0x2ea136=_0x449d84=>{const _0x14c858=_0x5db1c0;return getConsoleNextUrl(_0x55c771[_0x14c858(0x213)],'/app/dw/parentSegments/'+_0x449d84);};if(_0x55c771[_0x5db1c0(0x1d2)]===_0x5db1c0(0x294)||_0x55c771['format']===_0x5db1c0(0x22b)){const _0x8a27df=_0x36eb14['map'](_0x107aa5=>({..._0x107aa5,'url':_0x2ea136(_0x107aa5['id'])}));await handleSDKOutput(_0x8a27df,_0x55c771);}else{if(_0x36eb14[_0x5db1c0(0x2c7)]===0x0)console[_0x5db1c0(0x167)]('No\x20RT-enabled\x20parent\x20segments\x20found');else for(const _0x157da7 of _0x36eb14){const _0x518673=_0x157da7[_0x5db1c0(0x15e)]?a34_0x270838[_0x5db1c0(0x207)]('\x20('+formatRows(_0x157da7[_0x5db1c0(0x15e)])+')'):'',_0x29c2f2=hyperlink(_0x157da7[_0x5db1c0(0x2f9)],_0x2ea136(_0x157da7['id']));console[_0x5db1c0(0x167)]('⚡\x20'+_0x29c2f2+_0x518673);}}return 0x0;}}export class PSRtValidateCommand extends BaseParentSegmentCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x31a);['description']='Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML';async[a34_0x43d0d4(0x331)](_0x25a142){const _0x249845=a34_0x43d0d4,{options:_0x497c19,args:_0x1d4cb8,tdx:_0xeac59}=_0x25a142,_0x160de0=_0x1d4cb8[0x0]||_0x497c19[_0x249845(0x201)];if(!_0x160de0)return showParentSegmentNotSetError(_0x249845(0x19f)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20for\x20specific\x20parent\x20segment'),0x1;const _0x1aac35=resolveYamlFile(_0x160de0);if(!existsSync(_0x1aac35))return showFileNotFoundError(_0x1aac35,_0x160de0),0x1;let _0x16a60d;try{_0x16a60d=readFileSync(_0x1aac35,_0x249845(0x315));}catch(_0x41051b){const _0x4523e2=_0x41051b instanceof Error?_0x41051b[_0x249845(0x1ea)]:String(_0x41051b);return console['error']('Error\x20reading\x20file:\x20'+_0x4523e2),0x1;}const _0x564b51=createCommandSpinner(a34_0x270838[_0x249845(0x207)](_0x249845(0x1d1)),{'verbose':_0x497c19[_0x249845(0x235)]});_0x564b51[_0x249845(0x262)]();const _0x452a02={'realtime':!![],'onProgress':_0x2f0801=>{const _0x5dd78a=_0x249845;_0x564b51[_0x5dd78a(0x24f)]=formatProgressMessage(_0x2f0801);}};let _0x2b9393;try{_0x2b9393=await _0xeac59[_0x249845(0x347)]['validateParentYaml'](_0x16a60d,_0x452a02),_0x564b51[_0x249845(0x21b)]();}catch(_0x5650dd){_0x564b51[_0x249845(0x21b)]();throw _0x5650dd;}console['error']('\x0a'+a34_0x270838[_0x249845(0x2f1)]('RT\x202.0\x20Validate:')+'\x20'+_0x2b9393[_0x249845(0x2f9)]),console['error']('═'[_0x249845(0x1e1)](0x3c)),displayRealtimeValidation(_0x2b9393),console[_0x249845(0x1a0)]('─'[_0x249845(0x1e1)](0x3c));if(_0x2b9393[_0x249845(0x1d8)][_0x249845(0x2c7)]>0x0){console[_0x249845(0x1a0)]('\x0a'+a34_0x270838['red'](_0x249845(0x2ef)));for(const _0x4e84c3 of _0x2b9393[_0x249845(0x1d8)]){console[_0x249845(0x1a0)]('\x20\x20'+a34_0x270838['red']('•')+'\x20'+_0x4e84c3);}}return _0x2b9393[_0x249845(0x152)]&&console[_0x249845(0x1a0)]('\x0a'+a34_0x270838[_0x249845(0x19d)]('✔')+_0x249845(0x14c)),_0x2b9393[_0x249845(0x152)]?0x0:0x1;}}export class PSRtJnListCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x311);[a34_0x43d0d4(0x241)]='List\x20RT\x20journeys';async[a34_0x43d0d4(0x331)](_0x14dfee){const _0x33c0a3=a34_0x43d0d4,{options:_0x1f007a,args:_0x417330,tdx:_0x2bfeb1}=_0x14dfee,_0x5c2c2f=_0x417330[0x0]||_0x1f007a[_0x33c0a3(0x201)];if(!_0x5c2c2f)return showParentSegmentNotSetError(_0x33c0a3(0x34a)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20jn\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20for\x20specific\x20parent\x20segment'),0x1;_0x1f007a[_0x33c0a3(0x235)]&&(console['error']('Site:\x20'+_0x1f007a['site']),console[_0x33c0a3(0x1a0)](_0x33c0a3(0x191)+_0x5c2c2f));const _0x42b883=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x5c2c2f+_0x33c0a3(0x1f6),()=>_0x2bfeb1[_0x33c0a3(0x347)][_0x33c0a3(0x297)](_0x5c2c2f),{'verbose':_0x1f007a[_0x33c0a3(0x235)]}),_0x87d0ed=_0x42b883[_0x33c0a3(0x369)],_0x42797f=await withSpinner(_0x33c0a3(0x184)+_0x5c2c2f+_0x33c0a3(0x1f6),()=>_0x2bfeb1['realtime']['listJourneys'](_0x87d0ed),{'verbose':_0x1f007a[_0x33c0a3(0x235)]}),_0x6e46de=_0x42797f[_0x33c0a3(0x369)];console[_0x33c0a3(0x1a0)](_0x33c0a3(0x162)+_0x6e46de[_0x33c0a3(0x2c7)]+'\x20RT\x20journey'+(_0x6e46de[_0x33c0a3(0x2c7)]!==0x1?'s':''));if(_0x1f007a['format']==='json'||_0x1f007a[_0x33c0a3(0x1d2)]==='jsonl')await handleSDKOutput(_0x6e46de,_0x1f007a);else{if(_0x6e46de[_0x33c0a3(0x2c7)]===0x0)console[_0x33c0a3(0x167)](_0x33c0a3(0x31f));else for(const _0x5cbdb1 of _0x6e46de){const _0x67da04=_0x5cbdb1[_0x33c0a3(0x1a5)]===_0x33c0a3(0x1c7)?'🚀':'📝',_0x17da6e=_0x5cbdb1['paused']?a34_0x270838[_0x33c0a3(0x194)](_0x33c0a3(0x1cc)):'',_0x23af9e=a34_0x270838['dim']('\x20('+_0x5cbdb1[_0x33c0a3(0x265)]+_0x33c0a3(0x250)+(_0x5cbdb1[_0x33c0a3(0x265)]!==0x1?'s':'')+')');console[_0x33c0a3(0x167)](_0x67da04+'\x20'+_0x5cbdb1['name']+_0x17da6e+_0x23af9e);}}return 0x0;}}export class PSRtJnPauseCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x352);['description']='Pause\x20activations\x20in\x20an\x20RT\x20journey';async['execute'](_0xfb159f){const _0x500784=a34_0x43d0d4,{options:_0x2d043e,args:_0x6e74ea,tdx:_0x447b8a}=_0xfb159f,_0x21bd1e=_0x6e74ea[0x0];if(!_0x21bd1e)return console[_0x500784(0x1a0)](a34_0x270838[_0x500784(0x1e0)](_0x500784(0x18b))),console[_0x500784(0x1a0)](_0x500784(0x1ad)),console[_0x500784(0x1a0)](a34_0x270838[_0x500784(0x207)](_0x500784(0x345))),0x1;_0x2d043e[_0x500784(0x235)]&&(console[_0x500784(0x1a0)](_0x500784(0x328)+_0x2d043e[_0x500784(0x213)]),console[_0x500784(0x1a0)](_0x500784(0x2dd)+_0x21bd1e));const _0x198816=await withSpinner('Pausing\x20activations\x20for\x20RT\x20journey\x20\x27'+_0x21bd1e+'\x27...',()=>_0x447b8a['realtime'][_0x500784(0x2fd)](_0x21bd1e),{'verbose':_0x2d043e[_0x500784(0x235)]}),_0x575dc0=_0x198816['data'];console[_0x500784(0x1a0)](_0x500784(0x274)+_0x575dc0['name']+'\x27');if(_0x2d043e['format']===_0x500784(0x294)||_0x2d043e['format']===_0x500784(0x22b))await handleSDKOutput([_0x575dc0],_0x2d043e);else{const _0x530df2=_0x575dc0['state']===_0x500784(0x1c7)?'🚀':'📝',_0x2a89cb=_0x575dc0[_0x500784(0x307)]?a34_0x270838[_0x500784(0x194)](_0x500784(0x1cc)):'';console[_0x500784(0x167)](_0x530df2+'\x20'+_0x575dc0[_0x500784(0x2f9)]+_0x2a89cb);}return 0x0;}}export class PSRtJnResumeCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x257);['description']=a34_0x43d0d4(0x306);async[a34_0x43d0d4(0x331)](_0x589ace){const _0x1da213=a34_0x43d0d4,{options:_0x9bda2a,args:_0x14aea7,tdx:_0x3988f2}=_0x589ace,_0x6a4391=_0x14aea7[0x0];if(!_0x6a4391)return console[_0x1da213(0x1a0)](a34_0x270838[_0x1da213(0x1e0)]('Error:\x20RT\x20journey\x20ID\x20is\x20required\x0a')),console[_0x1da213(0x1a0)]('Usage:\x20tdx\x20ps\x20rt\x20jn\x20resume_activations\x20<journeyId>\x0a'),console[_0x1da213(0x1a0)](a34_0x270838[_0x1da213(0x207)]('Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs')),0x1;_0x9bda2a[_0x1da213(0x235)]&&(console[_0x1da213(0x1a0)](_0x1da213(0x328)+_0x9bda2a[_0x1da213(0x213)]),console[_0x1da213(0x1a0)](_0x1da213(0x2dd)+_0x6a4391));const _0x3d93d1=await withSpinner('Resuming\x20activations\x20for\x20RT\x20journey\x20\x27'+_0x6a4391+'\x27...',()=>_0x3988f2[_0x1da213(0x291)][_0x1da213(0x214)](_0x6a4391),{'verbose':_0x9bda2a[_0x1da213(0x235)]}),_0x3dc8d4=_0x3d93d1[_0x1da213(0x369)];console[_0x1da213(0x1a0)](_0x1da213(0x154)+_0x3dc8d4[_0x1da213(0x2f9)]+'\x27');if(_0x9bda2a['format']==='json'||_0x9bda2a[_0x1da213(0x1d2)]===_0x1da213(0x22b))await handleSDKOutput([_0x3dc8d4],_0x9bda2a);else{const _0x30045f=_0x3dc8d4[_0x1da213(0x1a5)]===_0x1da213(0x1c7)?'🚀':'📝',_0x22e1d1=_0x3dc8d4['paused']?a34_0x270838[_0x1da213(0x194)](_0x1da213(0x1cc)):'';console[_0x1da213(0x167)](_0x30045f+'\x20'+_0x3dc8d4[_0x1da213(0x2f9)]+_0x22e1d1);}return 0x0;}}export class PSRtConfigVersionCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x26b);['description']=a34_0x43d0d4(0x2e0);async[a34_0x43d0d4(0x331)](_0x2d34c9){const _0x385b10=a34_0x43d0d4,{options:_0x2c8faf,args:_0x27d035,tdx:_0x558cc0}=_0x2d34c9,_0x1ad78b=_0x27d035[0x0]||_0x2c8faf[_0x385b10(0x201)];if(!_0x1ad78b)return showParentSegmentNotSetError(_0x385b10(0x156)+_0x385b10(0x2aa)),0x1;_0x2c8faf[_0x385b10(0x235)]&&(console[_0x385b10(0x1a0)](_0x385b10(0x328)+_0x2c8faf[_0x385b10(0x213)]),console[_0x385b10(0x1a0)](_0x385b10(0x191)+_0x1ad78b));const _0x49df5d=await withSpinner(_0x385b10(0x175)+_0x1ad78b+_0x385b10(0x1f6),()=>_0x558cc0['segment'][_0x385b10(0x297)](_0x1ad78b),{'verbose':_0x2c8faf[_0x385b10(0x235)]}),_0x32a57b=_0x49df5d['data'],_0x7b7692=await withSpinner(_0x385b10(0x1a2)+_0x1ad78b+_0x385b10(0x1f6),()=>_0x558cc0['realtime'][_0x385b10(0x1b0)](_0x32a57b),{'verbose':_0x2c8faf['verbose']}),_0x4779bd=_0x7b7692[_0x385b10(0x369)];return console[_0x385b10(0x1a0)](_0x385b10(0x2b4)),_0x2c8faf[_0x385b10(0x1d2)]===_0x385b10(0x294)||_0x2c8faf[_0x385b10(0x1d2)]===_0x385b10(0x22b)?await handleSDKOutput([_0x4779bd],_0x2c8faf):(console['log'](_0x385b10(0x263)+_0x4779bd['id']),console[_0x385b10(0x167)](_0x385b10(0x1ca)+_0x4779bd[_0x385b10(0x251)]),console[_0x385b10(0x167)]('identifier:\x20'+_0x4779bd[_0x385b10(0x1a6)]),console[_0x385b10(0x167)](_0x385b10(0x171)+_0x4779bd[_0x385b10(0x29f)]),console['log'](_0x385b10(0x355)+_0x4779bd['status'])),0x0;}}export class PSPzServiceListCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x313);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x1f4);async[a34_0x43d0d4(0x331)](_0x1c446e){const _0x661f8c=a34_0x43d0d4,{options:_0x948174,args:_0x4b6359,tdx:_0x4cb1d2}=_0x1c446e,_0x41d3a4=_0x4b6359[0x0]||_0x948174[_0x661f8c(0x201)];if(!_0x41d3a4)return showParentSegmentNotSetError(_0x661f8c(0x2e4)+_0x661f8c(0x319)),0x1;const _0x1f0af6=await withSpinner(_0x661f8c(0x175)+_0x41d3a4+_0x661f8c(0x1f6),()=>_0x4cb1d2['segment'][_0x661f8c(0x297)](_0x41d3a4),{'verbose':_0x948174['verbose']}),_0x2f4d7f=_0x1f0af6[_0x661f8c(0x369)],_0x379762=await withSpinner('Listing\x20personalization\x20services\x20for\x20\x27'+_0x41d3a4+'\x27...',()=>_0x4cb1d2[_0x661f8c(0x2c9)][_0x661f8c(0x285)](_0x2f4d7f),{'verbose':_0x948174[_0x661f8c(0x235)]}),_0x5dd87c=_0x379762[_0x661f8c(0x369)];console[_0x661f8c(0x1a0)]('✔\x20Found\x20'+_0x5dd87c[_0x661f8c(0x2c7)]+_0x661f8c(0x1a8)+(_0x5dd87c['length']!==0x1?'s':''));if(_0x948174[_0x661f8c(0x1d2)]===_0x661f8c(0x294)||_0x948174['format']===_0x661f8c(0x22b))await handleSDKOutput(_0x5dd87c,_0x948174);else{if(_0x5dd87c[_0x661f8c(0x2c7)]===0x0)console[_0x661f8c(0x167)]('No\x20personalization\x20services\x20configured'),console['error'](a34_0x270838[_0x661f8c(0x32c)]('\x0aTip:\x20Run\x20`tdx\x20ps\x20pz\x20service\x20init`\x20to\x20add\x20a\x20template\x20personalization\x20section\x20to\x20your\x20YAML'));else for(const _0x24bb7d of _0x5dd87c){console[_0x661f8c(0x167)](a34_0x270838[_0x661f8c(0x2f1)](_0x24bb7d[_0x661f8c(0x2f9)])+'\x20'+a34_0x270838['dim'](_0x661f8c(0x314)+_0x24bb7d['id']+')'));_0x24bb7d['description']&&console[_0x661f8c(0x167)]('\x20\x20'+a34_0x270838[_0x661f8c(0x207)](_0x24bb7d[_0x661f8c(0x241)]));if(_0x24bb7d['tokens']&&_0x24bb7d[_0x661f8c(0x197)][_0x661f8c(0x2c7)]>0x0)for(const _0x2763a9 of _0x24bb7d['tokens']){const _0x4a7ba9=_0x2763a9[_0x661f8c(0x330)]?.[_0x661f8c(0x2c7)]?_0x2763a9[_0x661f8c(0x330)][_0x661f8c(0x2d4)](',\x20'):_0x661f8c(0x20c);console[_0x661f8c(0x167)]('\x20\x20'+a34_0x270838[_0x661f8c(0x32c)](_0x661f8c(0x28c))+'\x20'+_0x2763a9[_0x661f8c(0x2f9)]+'\x20'+a34_0x270838[_0x661f8c(0x207)](_0x661f8c(0x314)+_0x2763a9['id']+')')),console[_0x661f8c(0x167)](_0x661f8c(0x2e9)+a34_0x270838['dim']('allowed\x20IPs:')+'\x20'+_0x4a7ba9);}else console[_0x661f8c(0x167)]('\x20\x20'+a34_0x270838['dim']('no\x20tokens\x20configured'));}}return 0x0;}}export class PSPzServiceCreateCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x1d4);['description']=a34_0x43d0d4(0x23e);async['execute'](_0xaa4ec4){const _0x51ca00=a34_0x43d0d4,{options:_0x496f11,args:_0x10d8e5,tdx:_0x291a91}=_0xaa4ec4,_0x3262cf=_0x496f11,_0x2e3c27=_0x10d8e5[0x0],_0x41b31c=_0x10d8e5[0x1]||_0x496f11['parentSegment'];if(!_0x2e3c27)return console[_0x51ca00(0x1a0)](_0x51ca00(0x2ff)),console['error'](_0x51ca00(0x366)),console['error'](_0x51ca00(0x28a)),0x1;if(!_0x41b31c)return showParentSegmentNotSetError(_0x51ca00(0x2a3)+_0x51ca00(0x28a)),0x1;const _0x56ed43=await withSpinner(_0x51ca00(0x175)+_0x41b31c+_0x51ca00(0x1f6),()=>_0x291a91[_0x51ca00(0x347)][_0x51ca00(0x297)](_0x41b31c),{'verbose':_0x496f11[_0x51ca00(0x235)]}),_0x5402fc=_0x56ed43[_0x51ca00(0x369)],_0x4fdd57={'name':_0x2e3c27,'description':_0x3262cf[_0x51ca00(0x241)],'public':_0x3262cf['public']},_0x513be5=await withSpinner('Creating\x20personalization\x20service\x20\x27'+_0x2e3c27+_0x51ca00(0x1f6),()=>_0x291a91[_0x51ca00(0x2c9)][_0x51ca00(0x2ae)](_0x5402fc,_0x4fdd57),{'verbose':_0x496f11['verbose']}),_0x5d9dc9=_0x513be5[_0x51ca00(0x369)];return console[_0x51ca00(0x1a0)]('✔\x20Created\x20personalization\x20service\x20\x27'+_0x5d9dc9[_0x51ca00(0x2f9)]+_0x51ca00(0x220)+_0x5d9dc9['id']),await handleSDKOutput([_0x5d9dc9],_0x496f11),0x0;}}export class PSPzServiceShowCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]='ps:pz:service:show';[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x276);async[a34_0x43d0d4(0x331)](_0x185af4){const _0x3acb26=a34_0x43d0d4,{options:_0x31dc4d,args:_0x31d8ab,tdx:_0x2908c5}=_0x185af4,_0x350a9e=_0x31d8ab[0x0],_0x3a5fdf=_0x31d8ab[0x1]||_0x31dc4d[_0x3acb26(0x201)];if(!_0x350a9e)return console[_0x3acb26(0x1a0)](_0x3acb26(0x1ed)),console[_0x3acb26(0x1a0)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]'),console[_0x3acb26(0x1a0)](_0x3acb26(0x368)),0x1;if(!_0x3a5fdf)return showParentSegmentNotSetError(_0x3acb26(0x340)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;const _0x3be0a2=await withSpinner(_0x3acb26(0x175)+_0x3a5fdf+_0x3acb26(0x1f6),()=>_0x2908c5['segment'][_0x3acb26(0x297)](_0x3a5fdf),{'verbose':_0x31dc4d['verbose']}),_0x56b1b1=_0x3be0a2['data'],_0x22a348=await withSpinner(_0x3acb26(0x2d9)+_0x350a9e+'\x27...',()=>_0x2908c5[_0x3acb26(0x2c9)][_0x3acb26(0x1fe)](_0x56b1b1,_0x350a9e),{'verbose':_0x31dc4d['verbose']}),_0x3e2e2f=_0x22a348[_0x3acb26(0x369)];if(_0x31dc4d[_0x3acb26(0x294)]||_0x31dc4d[_0x3acb26(0x22b)])await handleSDKOutput([_0x3e2e2f],_0x31dc4d);else{console[_0x3acb26(0x167)](a34_0x270838[_0x3acb26(0x2f1)](_0x3e2e2f[_0x3acb26(0x2f9)])+'\x20'+a34_0x270838[_0x3acb26(0x207)](_0x3acb26(0x314)+_0x3e2e2f['id']+')'));_0x3e2e2f[_0x3acb26(0x241)]&&console[_0x3acb26(0x167)]('\x20\x20'+a34_0x270838[_0x3acb26(0x207)](_0x3e2e2f[_0x3acb26(0x241)]));console[_0x3acb26(0x167)]('\x20\x20'+a34_0x270838[_0x3acb26(0x32c)](_0x3acb26(0x2e2))+'\x20'+(_0x3e2e2f[_0x3acb26(0x309)]?'yes':'no'));if(_0x3e2e2f[_0x3acb26(0x197)]&&_0x3e2e2f[_0x3acb26(0x197)]['length']>0x0)for(const _0x1541fc of _0x3e2e2f['tokens']){const _0x4539b1=_0x1541fc['allowedIps']?.['length']?_0x1541fc[_0x3acb26(0x330)][_0x3acb26(0x2d4)](',\x20'):_0x3acb26(0x20c);console['log']('\x20\x20'+a34_0x270838[_0x3acb26(0x32c)](_0x3acb26(0x28c))+'\x20'+_0x1541fc[_0x3acb26(0x2f9)]+'\x20'+a34_0x270838[_0x3acb26(0x207)](_0x3acb26(0x314)+_0x1541fc['id']+')')),console[_0x3acb26(0x167)](_0x3acb26(0x2e9)+a34_0x270838['dim']('allowed\x20IPs:')+'\x20'+_0x4539b1);}else console[_0x3acb26(0x167)]('\x20\x20'+a34_0x270838[_0x3acb26(0x207)](_0x3acb26(0x2c6)));}return 0x0;}}export class PSPzServiceDeleteCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x279);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x227);async[a34_0x43d0d4(0x331)](_0x40f4a2){const _0x226928=a34_0x43d0d4,{options:_0xe7fb06,args:_0x195d9f,tdx:_0xef977}=_0x40f4a2,_0x39dbd5=_0x195d9f[0x0],_0x575c6f=_0x195d9f[0x1]||_0xe7fb06[_0x226928(0x201)];if(!_0x39dbd5)return console['error'](_0x226928(0x1ed)),console[_0x226928(0x1a0)](_0x226928(0x304)),console[_0x226928(0x1a0)](_0x226928(0x334)),0x1;if(!_0x575c6f)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]\x0a'+_0x226928(0x334)),0x1;const _0x3d860b=await withSpinner(_0x226928(0x175)+_0x575c6f+_0x226928(0x1f6),()=>_0xef977[_0x226928(0x347)][_0x226928(0x297)](_0x575c6f),{'verbose':_0xe7fb06[_0x226928(0x235)]}),_0x4f6146=_0x3d860b[_0x226928(0x369)];return await withSpinner('Deleting\x20personalization\x20service\x20\x27'+_0x39dbd5+_0x226928(0x1f6),()=>_0xef977['personalization'][_0x226928(0x2b1)](_0x4f6146,_0x39dbd5),{'verbose':_0xe7fb06[_0x226928(0x235)]}),console[_0x226928(0x1a0)](_0x226928(0x363)+_0x39dbd5+'\x27'),0x0;}}export class PSPzServiceUpdateCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]='ps:pz:service:update';[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x209);async[a34_0x43d0d4(0x331)](_0x54b848){const _0x131473=a34_0x43d0d4,{options:_0x15056d,args:_0x3dc637,tdx:_0xcdb553}=_0x54b848,_0x4c0627=_0x15056d,_0x138d7e=_0x3dc637[0x0],_0x555973=_0x3dc637[0x1]||_0x15056d[_0x131473(0x201)];if(!_0x138d7e)return console[_0x131473(0x1a0)](_0x131473(0x1ed)),console[_0x131473(0x1a0)](_0x131473(0x1db)),console[_0x131473(0x1a0)](_0x131473(0x159)),0x1;if(!_0x4c0627[_0x131473(0x2f9)])return console[_0x131473(0x1a0)](_0x131473(0x221)),console[_0x131473(0x1a0)](_0x131473(0x1db)),0x1;if(!_0x555973)return showParentSegmentNotSetError(_0x131473(0x1fc)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20--name\x20<name>\x20\x20#\x20Uses\x20context'),0x1;const _0x5f3ad4=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x555973+_0x131473(0x1f6),()=>_0xcdb553[_0x131473(0x347)][_0x131473(0x297)](_0x555973),{'verbose':_0x15056d[_0x131473(0x235)]}),_0x1ef4fd=_0x5f3ad4['data'],_0x4783fc={'name':_0x4c0627[_0x131473(0x2f9)]};_0x4c0627[_0x131473(0x241)]!==undefined&&(_0x4783fc[_0x131473(0x241)]=_0x4c0627[_0x131473(0x241)]);const _0xf54892=await withSpinner(_0x131473(0x20d)+_0x138d7e+_0x131473(0x1f6),()=>_0xcdb553[_0x131473(0x2c9)][_0x131473(0x321)](_0x1ef4fd,_0x138d7e,_0x4783fc),{'verbose':_0x15056d[_0x131473(0x235)]}),_0x41f358=_0xf54892[_0x131473(0x369)];return console[_0x131473(0x1a0)](_0x131473(0x2fb)+_0x41f358['name']+'\x27'),await handleSDKOutput([_0x41f358],_0x15056d),0x0;}}export class PSPzServiceTokenCreateCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x20e);[a34_0x43d0d4(0x241)]='Create\x20a\x20token\x20for\x20a\x20personalization\x20service';async[a34_0x43d0d4(0x331)](_0x50f2c8){const _0x1eb210=a34_0x43d0d4,{options:_0x39c48e,args:_0x3c9e06,tdx:_0x2b25e2}=_0x50f2c8,_0x1034da=_0x39c48e,_0x334c68=_0x3c9e06[0x0],_0x577b1a=_0x3c9e06[0x1],_0x27c998=_0x3c9e06[0x2]||_0x39c48e[_0x1eb210(0x201)];if(!_0x334c68)return console['error'](_0x1eb210(0x339)),console[_0x1eb210(0x1a0)](_0x1eb210(0x20a)),console[_0x1eb210(0x1a0)](_0x1eb210(0x30e)),0x1;if(!_0x577b1a)return console['error'](_0x1eb210(0x1ed)),console['error'](_0x1eb210(0x20a)),console[_0x1eb210(0x1a0)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;if(!_0x27c998)return showParentSegmentNotSetError(_0x1eb210(0x2dc)+_0x1eb210(0x30e)),0x1;const _0x13082b=await withSpinner(_0x1eb210(0x175)+_0x27c998+_0x1eb210(0x1f6),()=>_0x2b25e2[_0x1eb210(0x347)][_0x1eb210(0x297)](_0x27c998),{'verbose':_0x39c48e[_0x1eb210(0x235)]}),_0x3a0d73=_0x13082b[_0x1eb210(0x369)],_0x160713={'name':_0x334c68};_0x1034da[_0x1eb210(0x330)]&&(_0x160713[_0x1eb210(0x330)]=_0x1034da['allowedIps'][_0x1eb210(0x2cc)](',')[_0x1eb210(0x160)](_0x3a92d3=>_0x3a92d3['trim']()));_0x1034da[_0x1eb210(0x241)]&&(_0x160713[_0x1eb210(0x241)]=_0x1034da['description']);const _0x1e76c4=await withSpinner(_0x1eb210(0x2eb)+_0x334c68+_0x1eb210(0x1ff)+_0x577b1a+'\x27...',()=>_0x2b25e2[_0x1eb210(0x2c9)][_0x1eb210(0x17d)](_0x3a0d73,_0x577b1a,_0x160713),{'verbose':_0x39c48e['verbose']}),_0x21db65=_0x1e76c4['data'];return console['error']('✔\x20Created\x20token\x20\x27'+_0x21db65[_0x1eb210(0x2f9)]+_0x1eb210(0x220)+_0x21db65['id']),_0x21db65['value']&&(console[_0x1eb210(0x1a0)](a34_0x270838[_0x1eb210(0x194)](_0x1eb210(0x17e))),console[_0x1eb210(0x1a0)](a34_0x270838['cyan'](_0x21db65[_0x1eb210(0x358)])),console[_0x1eb210(0x1a0)]('')),await handleSDKOutput([_0x21db65],_0x39c48e),0x0;}}export class PSPzServiceTokenDeleteCommand extends BaseCommand{['name']=a34_0x43d0d4(0x278);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x292);async[a34_0x43d0d4(0x331)](_0xc323f5){const _0x592c96=a34_0x43d0d4,{options:_0x462620,args:_0x41ab37,tdx:_0xa91b94}=_0xc323f5,_0x2bad60=_0x41ab37[0x0],_0x35950c=_0x41ab37[0x1]||_0x462620[_0x592c96(0x201)];if(!_0x2bad60)return console['error'](_0x592c96(0x181)),console['error']('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]'),console[_0x592c96(0x1a0)](_0x592c96(0x1fd)),0x1;if(!_0x35950c)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]\x0a'+_0x592c96(0x1fd)),0x1;const _0x2e9b0b=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x35950c+_0x592c96(0x1f6),()=>_0xa91b94[_0x592c96(0x347)]['resolveParentId'](_0x35950c),{'verbose':_0x462620[_0x592c96(0x235)]}),_0x1444a5=_0x2e9b0b[_0x592c96(0x369)],_0x44b3cf=await withSpinner(_0x592c96(0x22a),()=>_0xa91b94[_0x592c96(0x2c9)][_0x592c96(0x285)](_0x1444a5),{'verbose':_0x462620[_0x592c96(0x235)]}),_0x2542b9=_0x44b3cf[_0x592c96(0x369)];let _0x39b20d;for(const _0x127f2d of _0x2542b9){if(_0x127f2d['tokens']?.['some'](_0x1fcadf=>_0x1fcadf['id']===_0x2bad60)){_0x39b20d=_0x127f2d['id'];break;}}if(!_0x39b20d)return console['error']('Error:\x20Token\x20\x27'+_0x2bad60+_0x592c96(0x216)),0x1;const _0x5df2ba=await withSpinner(_0x592c96(0x192)+_0x2bad60+_0x592c96(0x1f6),()=>_0xa91b94['personalization'][_0x592c96(0x2d2)](_0x1444a5,_0x39b20d,_0x2bad60),{'verbose':_0x462620['verbose']}),_0x3f09d6=_0x5df2ba['data'];return console['error'](_0x592c96(0x322)+(_0x3f09d6[_0x592c96(0x2f9)]||_0x2bad60)+'\x27'),await handleSDKOutput([_0x3f09d6],_0x462620),0x0;}}export class PSPzListCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]='ps:pz:list';[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x33f);async[a34_0x43d0d4(0x331)](_0x25d7d3){const _0x54d014=a34_0x43d0d4,{options:_0x31966a,args:_0xf9aa8d,tdx:_0x55a822}=_0x25d7d3,_0x398148=_0xf9aa8d[0x0]||_0x31966a[_0x54d014(0x201)];if(!_0x398148)return showParentSegmentNotSetError(_0x54d014(0x283)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20for\x20specific\x20parent\x20segment'),0x1;const _0x25d722=await withSpinner(_0x54d014(0x175)+_0x398148+_0x54d014(0x1f6),()=>_0x55a822['segment'][_0x54d014(0x297)](_0x398148),{'verbose':_0x31966a[_0x54d014(0x235)]}),_0x2b912d=_0x25d722['data'],_0x5c6606=await withSpinner('Listing\x20personalizations\x20for\x20\x27'+_0x398148+_0x54d014(0x1f6),()=>_0x55a822[_0x54d014(0x2c9)][_0x54d014(0x326)](_0x2b912d),{'verbose':_0x31966a[_0x54d014(0x235)]}),_0x43078f=_0x5c6606[_0x54d014(0x369)];console['error'](_0x54d014(0x162)+_0x43078f[_0x54d014(0x2c7)]+'\x20personalization'+(_0x43078f['length']!==0x1?'s':''));if(_0x31966a['format']==='json'||_0x31966a[_0x54d014(0x1d2)]===_0x54d014(0x22b))await handleSDKOutput(_0x43078f,_0x31966a);else{if(_0x43078f[_0x54d014(0x2c7)]===0x0)console[_0x54d014(0x167)]('No\x20personalizations\x20configured');else for(const _0x52a5cb of _0x43078f){console[_0x54d014(0x167)](a34_0x270838[_0x54d014(0x2f1)](_0x52a5cb['name'])+'\x20'+a34_0x270838['dim'](_0x54d014(0x314)+_0x52a5cb['id']+')'));_0x52a5cb[_0x54d014(0x241)]&&console[_0x54d014(0x167)]('\x20\x20'+a34_0x270838[_0x54d014(0x207)](_0x52a5cb[_0x54d014(0x241)]));const _0x279040=_0x52a5cb[_0x54d014(0x163)]?.[_0x54d014(0x2c7)]||0x0;console['log']('\x20\x20'+a34_0x270838[_0x54d014(0x32c)]('sections:')+'\x20'+_0x279040);if(_0x52a5cb[_0x54d014(0x163)]&&_0x52a5cb[_0x54d014(0x163)][_0x54d014(0x2c7)]>0x0)for(const _0x24ca72 of _0x52a5cb[_0x54d014(0x163)]){console['log'](_0x54d014(0x2c5)+_0x24ca72[_0x54d014(0x2f9)]);}}}return 0x0;}}export class PSPzShowCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x2c8);['description']=a34_0x43d0d4(0x32d);async[a34_0x43d0d4(0x331)](_0x403b03){const _0x574a9b=a34_0x43d0d4,{options:_0x107c5e,args:_0x5d47ac,tdx:_0xe1d83}=_0x403b03,_0x25f669=_0x5d47ac[0x0];if(!_0x25f669)return console[_0x574a9b(0x1a0)](_0x574a9b(0x19a)),console[_0x574a9b(0x1a0)](_0x574a9b(0x202)),0x1;const _0x4a0d89=await withSpinner(_0x574a9b(0x2a4)+_0x25f669+_0x574a9b(0x1f6),()=>_0xe1d83[_0x574a9b(0x2c9)][_0x574a9b(0x18d)](_0x25f669),{'verbose':_0x107c5e['verbose']}),_0x3e53e0=_0x4a0d89['data'];console[_0x574a9b(0x1a0)]('✔\x20Found\x20personalization\x20\x27'+_0x3e53e0[_0x574a9b(0x2f9)]+'\x27');if(_0x107c5e[_0x574a9b(0x1d2)]===_0x574a9b(0x294)||_0x107c5e[_0x574a9b(0x1d2)]===_0x574a9b(0x22b))await handleSDKOutput([_0x3e53e0],_0x107c5e);else{console[_0x574a9b(0x167)](a34_0x270838[_0x574a9b(0x2f1)](_0x3e53e0[_0x574a9b(0x2f9)])+'\x20'+a34_0x270838[_0x574a9b(0x207)](_0x574a9b(0x314)+_0x3e53e0['id']+')'));_0x3e53e0['description']&&console[_0x574a9b(0x167)]('\x20\x20'+a34_0x270838[_0x574a9b(0x207)](_0x3e53e0['description']));_0x3e53e0[_0x574a9b(0x251)]&&console[_0x574a9b(0x167)]('\x20\x20'+a34_0x270838[_0x574a9b(0x32c)](_0x574a9b(0x1a9))+'\x20'+_0x3e53e0[_0x574a9b(0x251)]);console[_0x574a9b(0x167)]('\x20\x20'+a34_0x270838[_0x574a9b(0x32c)](_0x574a9b(0x30b))+'\x20'+_0x3e53e0[_0x574a9b(0x30a)]),console['log']('\x20\x20'+a34_0x270838[_0x574a9b(0x32c)](_0x574a9b(0x228))+'\x20'+_0x3e53e0[_0x574a9b(0x1cd)]);const _0x26315a=_0x3e53e0[_0x574a9b(0x163)]?.[_0x574a9b(0x2c7)]||0x0;console['log']('\x20\x20'+a34_0x270838[_0x574a9b(0x32c)](_0x574a9b(0x25c))+'\x20'+_0x26315a);if(_0x3e53e0['sections']&&_0x3e53e0['sections']['length']>0x0)for(const _0x15fcd9 of _0x3e53e0['sections']){console[_0x574a9b(0x167)]('\x20\x20\x20\x20'+a34_0x270838[_0x574a9b(0x2f1)](_0x15fcd9[_0x574a9b(0x2f9)])+'\x20'+a34_0x270838[_0x574a9b(0x207)](_0x574a9b(0x314)+_0x15fcd9['id']+')')),_0x15fcd9[_0x574a9b(0x27a)]&&(console[_0x574a9b(0x167)](_0x574a9b(0x18e)+a34_0x270838[_0x574a9b(0x32c)](_0x574a9b(0x232))+'\x20'+_0x15fcd9['entryCriteria']['name']),_0x15fcd9[_0x574a9b(0x27a)][_0x574a9b(0x24b)]?.[_0x574a9b(0x1cb)]&&console[_0x574a9b(0x167)]('\x20\x20\x20\x20\x20\x20\x20\x20'+a34_0x270838[_0x574a9b(0x32c)](_0x574a9b(0x32a))+'\x20'+_0x15fcd9[_0x574a9b(0x27a)][_0x574a9b(0x24b)][_0x574a9b(0x1cb)])),_0x15fcd9[_0x574a9b(0x2a0)]&&console[_0x574a9b(0x167)]('\x20\x20\x20\x20\x20\x20'+a34_0x270838['cyan'](_0x574a9b(0x218))+'\x20'+JSON[_0x574a9b(0x266)](_0x15fcd9['payload'])),_0x15fcd9[_0x574a9b(0x1f5)]&&console['log'](_0x574a9b(0x18e)+a34_0x270838[_0x574a9b(0x32c)]('includeSensitive:')+'\x20true');}}return 0x0;}}export class PSPzDeleteCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x2fe);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x364);async['execute'](_0x12245f){const _0x19f781=a34_0x43d0d4,{options:_0x50f471,args:_0x24a1c3,tdx:_0x28c606}=_0x12245f,_0x346b5f=_0x24a1c3[0x0];if(!_0x346b5f)return console[_0x19f781(0x1a0)](_0x19f781(0x19a)),console[_0x19f781(0x1a0)](_0x19f781(0x35f)),0x1;return await withSpinner(_0x19f781(0x30f)+_0x346b5f+_0x19f781(0x1f6),()=>_0x28c606[_0x19f781(0x2c9)][_0x19f781(0x2bb)](_0x346b5f),{'verbose':_0x50f471[_0x19f781(0x235)]}),console[_0x19f781(0x1a0)](_0x19f781(0x1f1)+_0x346b5f+'\x27'),0x0;}}export class PSPzCreateCommand extends BaseCommand{['name']=a34_0x43d0d4(0x21e);['description']='Create\x20a\x20realtime\x20personalization\x20entity';async['execute'](_0x1b5e3e){const _0x527f1b=a34_0x43d0d4,{options:_0x5da8f5,tdx:_0x34903a}=_0x1b5e3e,_0x59a056=_0x5da8f5;let _0x1b1db6;if(_0x59a056[_0x527f1b(0x2e7)]){_0x1b1db6=await loadJSON(_0x59a056[_0x527f1b(0x2e7)],!![]);if(!_0x1b1db6[_0x527f1b(0x1ab)]?.[_0x527f1b(0x2a9)])return console[_0x527f1b(0x1a0)]('Error:\x20\x22relationships.parentFolder\x22\x20is\x20required\x20in\x20the\x20JSON\x20file.'),console[_0x527f1b(0x1a0)](_0x527f1b(0x217)),console[_0x527f1b(0x1a0)](_0x527f1b(0x20f)),0x1;}else{if(!_0x59a056[_0x527f1b(0x2f9)])return console[_0x527f1b(0x1a0)](_0x527f1b(0x277)),console['error']('Usage:\x20tdx\x20ps\x20pz\x20create\x20--name\x20<name>\x20--description\x20<desc>\x20--folder-id\x20<id>\x20[options]'),console[_0x527f1b(0x1a0)](_0x527f1b(0x317)),0x1;if(_0x59a056[_0x527f1b(0x241)]===undefined)return console[_0x527f1b(0x1a0)](_0x527f1b(0x258)),console[_0x527f1b(0x1a0)](_0x527f1b(0x1b4)),console[_0x527f1b(0x1a0)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20create\x20--file\x20<path>'),0x1;if(_0x59a056[_0x527f1b(0x33e)]===undefined)return console[_0x527f1b(0x1a0)](_0x527f1b(0x34c)),console[_0x527f1b(0x1a0)](_0x527f1b(0x1b9)),0x1;let _0xbcb7f7=_0x59a056[_0x527f1b(0x251)];if(!_0xbcb7f7&&_0x5da8f5[_0x527f1b(0x201)]){const _0x4e21af=await withSpinner(_0x527f1b(0x175)+_0x5da8f5[_0x527f1b(0x201)]+_0x527f1b(0x1f6),()=>_0x34903a[_0x527f1b(0x347)][_0x527f1b(0x297)](_0x5da8f5[_0x527f1b(0x201)]),{'verbose':_0x5da8f5[_0x527f1b(0x235)]});_0xbcb7f7=_0x4e21af[_0x527f1b(0x369)];}let _0x2a3f11;_0x59a056[_0x527f1b(0x163)]&&(_0x2a3f11=await loadJSON(_0x59a056[_0x527f1b(0x163)],![]));const _0x3655df=_0x59a056[_0x527f1b(0x33e)]===_0x527f1b(0x245)?null:{'id':_0x59a056['folderId'],'type':'folder-segment'};_0x1b1db6={'attributes':{'name':_0x59a056['name'],'description':_0x59a056[_0x527f1b(0x241)]||null,..._0xbcb7f7!==undefined&&{'audienceId':_0xbcb7f7},..._0x2a3f11!==undefined&&{'sections':_0x2a3f11}},'relationships':{'parentFolder':{'data':_0x3655df}}};}const _0x5a79a2=await withSpinner(_0x527f1b(0x327)+(_0x1b1db6['attributes']?.[_0x527f1b(0x2f9)]??'')+'\x27...',()=>_0x34903a[_0x527f1b(0x2c9)][_0x527f1b(0x35d)](_0x1b1db6),{'verbose':_0x5da8f5['verbose']}),_0x2e0810=_0x5a79a2[_0x527f1b(0x369)];return console['error'](_0x527f1b(0x252)+_0x2e0810[_0x527f1b(0x2f9)]+_0x527f1b(0x220)+_0x2e0810['id']),await handleSDKOutput([_0x2e0810],_0x5da8f5),0x0;}}export class PSPzPatchCommand extends BaseCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x1a1);[a34_0x43d0d4(0x241)]='Update\x20a\x20realtime\x20personalization\x20entity';async[a34_0x43d0d4(0x331)](_0x2b4b69){const _0x120e6f=a34_0x43d0d4,{options:_0x2d96ff,args:_0x208d51}=_0x2b4b69,_0x2ee6c7=_0x2d96ff,_0x44f0a9=_0x208d51[0x0];if(!_0x44f0a9)return console[_0x120e6f(0x1a0)](_0x120e6f(0x19a)),console[_0x120e6f(0x1a0)]('Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]'),console['error']('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--file\x20<path>'),0x1;let _0xeda06d;if(_0x2ee6c7[_0x120e6f(0x2e7)])_0xeda06d=await loadJSON(_0x2ee6c7['file'],!![]);else{if(!_0x2ee6c7['name'])return console[_0x120e6f(0x1a0)](_0x120e6f(0x277)),console[_0x120e6f(0x1a0)](_0x120e6f(0x1c2)),0x1;if(_0x2ee6c7[_0x120e6f(0x241)]===undefined)return console[_0x120e6f(0x1a0)](_0x120e6f(0x258)),console[_0x120e6f(0x1a0)](_0x120e6f(0x1c2)),0x1;let _0x4e426b;_0x2ee6c7[_0x120e6f(0x163)]&&(_0x4e426b=await loadJSON(_0x2ee6c7['sections'],![])),_0xeda06d={'attributes':{'name':_0x2ee6c7['name'],'description':_0x2ee6c7[_0x120e6f(0x241)]||null,..._0x4e426b!==undefined&&{'sections':_0x4e426b}}};}const {tdx:_0x557a16}=_0x2b4b69,_0x31e95f=await withSpinner(_0x120e6f(0x204)+_0x44f0a9+_0x120e6f(0x1f6),()=>_0x557a16[_0x120e6f(0x2c9)][_0x120e6f(0x360)](_0x44f0a9,_0xeda06d),{'verbose':_0x2d96ff[_0x120e6f(0x235)]}),_0x500b44=_0x31e95f['data'];return console['error'](_0x120e6f(0x193)+_0x500b44[_0x120e6f(0x2f9)]+_0x120e6f(0x1be)+_0x500b44['id']+')'),await handleSDKOutput([_0x500b44],_0x2d96ff),0x0;}}export class PSPzInitCommand extends BaseParentSegmentCommand{[a34_0x43d0d4(0x2f9)]=a34_0x43d0d4(0x338);[a34_0x43d0d4(0x241)]=a34_0x43d0d4(0x1f8);async[a34_0x43d0d4(0x331)](_0x512f69){const _0x4bc9eb=a34_0x43d0d4,{options:_0x2ec3de,args:_0x9137b7}=_0x512f69,_0x34d11d=_0x9137b7[0x0]||_0x2ec3de[_0x4bc9eb(0x201)];if(!_0x34d11d)return showParentSegmentNotSetError(_0x4bc9eb(0x32e)+_0x4bc9eb(0x27d)),0x1;const _0xa9afa3=resolveYamlFile(_0x34d11d);if(!existsSync(_0xa9afa3))return showFileNotFoundError(_0xa9afa3,_0x34d11d),0x1;let _0x2247f9;try{_0x2247f9=readFileSync(_0xa9afa3,'utf-8');}catch(_0xc8009f){const _0x62bb57=_0xc8009f instanceof Error?_0xc8009f[_0x4bc9eb(0x1ea)]:String(_0xc8009f);return console[_0x4bc9eb(0x1a0)](_0x4bc9eb(0x14e)+_0x62bb57),0x1;}let _0x4c455a;try{_0x4c455a=parseDef(_0x2247f9);}catch(_0x536875){const _0x4d1494=_0x536875 instanceof Error?_0x536875[_0x4bc9eb(0x1ea)]:String(_0x536875);return console[_0x4bc9eb(0x1a0)](a34_0x270838[_0x4bc9eb(0x1e0)](_0x4bc9eb(0x15c)+_0x4d1494)),0x1;}if(_0x4c455a[_0x4bc9eb(0x188)]&&_0x4c455a[_0x4bc9eb(0x188)][_0x4bc9eb(0x2c7)]>0x0)return console[_0x4bc9eb(0x1a0)](a34_0x270838[_0x4bc9eb(0x194)](_0x4bc9eb(0x302)+_0xa9afa3)),console[_0x4bc9eb(0x1a0)](a34_0x270838[_0x4bc9eb(0x207)](_0x4bc9eb(0x253)+_0x4c455a[_0x4bc9eb(0x188)][_0x4bc9eb(0x2c7)]+_0x4bc9eb(0x1ba))),0x1;!_0x4c455a[_0x4bc9eb(0x291)]&&(_0x4c455a[_0x4bc9eb(0x291)]={'events':[{'name':_0x4bc9eb(0x288),'source_table':_0x4bc9eb(0x2b5)}],'attributes':[{'name':_0x4bc9eb(0x18f),'type':_0x4bc9eb(0x24e)}],'id_stitching':{'primary_key':_0x4c455a[_0x4bc9eb(0x1b2)][_0x4bc9eb(0x230)]==='customers'?'td_client_id':_0x4bc9eb(0x27b)}});_0x4c455a[_0x4bc9eb(0x188)]=[{'name':_0x4bc9eb(0x367),'description':_0x4bc9eb(0x1f9),'trigger_event':_0x4bc9eb(0x288),'sections':[{'name':_0x4bc9eb(0x22d),'criteria':_0x4bc9eb(0x270),'attributes':[_0x4bc9eb(0x18f)]}]}];const _0x55ba8b=serializeDef(_0x4c455a);return writeFileSync(_0xa9afa3,_0x55ba8b,_0x4bc9eb(0x315)),console[_0x4bc9eb(0x1a0)](a34_0x270838[_0x4bc9eb(0x19d)]('✔')+_0x4bc9eb(0x243)+a34_0x270838[_0x4bc9eb(0x32c)](_0xa9afa3)),(!_0x4c455a[_0x4bc9eb(0x291)]||_0x2247f9[_0x4bc9eb(0x2ab)](_0x4bc9eb(0x289))===-0x1)&&console['error'](a34_0x270838[_0x4bc9eb(0x19d)]('✔')+'\x20Added\x20RT\x202.0\x20template\x20section'),console['error']('\x0a'+a34_0x270838[_0x4bc9eb(0x207)](_0x4bc9eb(0x256))),console['error'](_0x4bc9eb(0x23f)+_0xa9afa3+_0x4bc9eb(0x1fb)),console[_0x4bc9eb(0x1a0)]('\x20\x202.\x20Run\x20'+a34_0x270838[_0x4bc9eb(0x207)](_0x4bc9eb(0x25b)+_0x34d11d)+_0x4bc9eb(0x199)),0x0;}}
|
|
1
|
+
const a34_0xe3eda6=a34_0xff01;(function(_0x1dc2e4,_0x2dec79){const _0x4973e3=a34_0xff01,_0x4546c5=_0x1dc2e4();while(!![]){try{const _0xee8b7d=-parseInt(_0x4973e3(0x2d8))/0x1*(parseInt(_0x4973e3(0x2a3))/0x2)+-parseInt(_0x4973e3(0x227))/0x3+-parseInt(_0x4973e3(0x141))/0x4*(-parseInt(_0x4973e3(0x18e))/0x5)+parseInt(_0x4973e3(0x280))/0x6*(parseInt(_0x4973e3(0x19e))/0x7)+parseInt(_0x4973e3(0x183))/0x8+parseInt(_0x4973e3(0x1e5))/0x9+parseInt(_0x4973e3(0x287))/0xa;if(_0xee8b7d===_0x2dec79)break;else _0x4546c5['push'](_0x4546c5['shift']());}catch(_0x16c2b7){_0x4546c5['push'](_0x4546c5['shift']());}}}(a34_0x5674,0x3735a));import{writeFileSync,readFileSync,existsSync,mkdirSync,renameSync,statSync}from'fs';import{spawn}from'child_process';import a34_0x1183fe from'path';import{BaseCommand}from'./command.js';import{handleSDKOutput,handleQueryOutput,handleSingleObjectOutput,writeOutput}from'../core/command-output.js';import{withSpinner,withProgressSpinner,createCommandSpinner,formatElapsed}from'../utils/spinner.js';function a34_0xff01(_0x27bd76,_0x96457c){_0x27bd76=_0x27bd76-0xf9;const _0x5674e5=a34_0x5674();let _0xff014a=_0x5674e5[_0x27bd76];return _0xff014a;}import{loadJSONFromOptions,loadJSON}from'../utils/json-loader.js';import{generateDiff,formatDiffWithColors,hasChanges}from'../utils/diff.js';import{getConsoleUrl,getConsoleNextUrl}from'../sdk/client/endpoints.js';import{formatRows,formatAsTable,hyperlink}from'../sdk/util/formatters.js';import{parseDef,serializeDef}from'../sdk/segment/parent-segment-yaml.js';import{confirmKey,isInteractive}from'../utils/prompt.js';import{DEFAULT_DISPLAY_LIMIT,resolveLimit}from'../core/constants.js';import a34_0x427111 from'chalk';import{displayFieldsHumanReadable,executeSchemaQuery}from'../sdk/segment/fields-display.js';import{saveSessionContext}from'../core/session.js';import{sanitizeFileName}from'../utils/string-utils.js';const PARENT_SEGMENT_DIR=a34_0xe3eda6(0x136),LEGACY_PARENT_SEGMENT_DIR=a34_0xe3eda6(0x2cc);function openBrowser(_0x30698a){const _0x29b10c=a34_0xe3eda6,_0x222c85=process['platform'],_0x2d22ed=_0x222c85===_0x29b10c(0x2b1)?_0x29b10c(0x2d3):_0x222c85===_0x29b10c(0x115)?'start':_0x29b10c(0x182);spawn(_0x2d22ed,[_0x30698a],{'detached':!![],'stdio':_0x29b10c(0x2ba)})[_0x29b10c(0x158)]();}function migrateLegacyDirectory(){const _0x4ebe8e=a34_0xe3eda6;if(!existsSync(LEGACY_PARENT_SEGMENT_DIR))return![];const _0x48f897=statSync(LEGACY_PARENT_SEGMENT_DIR);if(!_0x48f897['isDirectory']())return![];if(existsSync(PARENT_SEGMENT_DIR))return console['error'](a34_0x427111['yellow'](_0x4ebe8e(0x301)+LEGACY_PARENT_SEGMENT_DIR+_0x4ebe8e(0x281)+PARENT_SEGMENT_DIR+'/\x20directories\x20exist.')),console['error'](a34_0x427111[_0x4ebe8e(0x18c)](_0x4ebe8e(0x28e)+LEGACY_PARENT_SEGMENT_DIR+_0x4ebe8e(0x140))),![];console[_0x4ebe8e(0x113)](a34_0x427111[_0x4ebe8e(0x1ce)](_0x4ebe8e(0x2c0)+LEGACY_PARENT_SEGMENT_DIR+_0x4ebe8e(0x1ee)+PARENT_SEGMENT_DIR+'/\x0a'));try{return renameSync(LEGACY_PARENT_SEGMENT_DIR,PARENT_SEGMENT_DIR),console[_0x4ebe8e(0x113)](a34_0x427111['green']('✔\x20Renamed\x20directory\x20to\x20'+PARENT_SEGMENT_DIR+'/\x0a')),!![];}catch(_0x33dc91){const _0x43e6e6=_0x33dc91 instanceof Error?_0x33dc91[_0x4ebe8e(0x23b)]:String(_0x33dc91);return console['error'](a34_0x427111['red']('✘\x20Failed\x20to\x20rename\x20directory:\x20'+_0x43e6e6+'\x0a')),![];}}class BaseParentSegmentCommand extends BaseCommand{async[a34_0xe3eda6(0x240)](_0x328edd){return migrateLegacyDirectory(),super['run'](_0x328edd);}}function resolveYamlFile(_0x277521){const _0x24fba1=a34_0xe3eda6;if(_0x277521[_0x24fba1(0x147)](_0x24fba1(0x1ca))||_0x277521[_0x24fba1(0x147)](_0x24fba1(0x1ba)))return _0x277521;return a34_0x1183fe[_0x24fba1(0x14a)](PARENT_SEGMENT_DIR,sanitizeFileName(_0x277521)+_0x24fba1(0x1ca));}function formatProgressMessage(_0x17700c){const _0x3f2a2e=a34_0xe3eda6,_0x9cd2cd=_0x17700c[_0x3f2a2e(0x296)](/^(.+?):\s*(.+?)(\s*\(.+\))?$/);if(_0x9cd2cd){const [,_0x373ade,_0x478215,_0x4f040a='']=_0x9cd2cd;return a34_0x427111[_0x3f2a2e(0x18c)](_0x373ade+':')+'\x20'+_0x478215+a34_0x427111[_0x3f2a2e(0x18c)](_0x4f040a);}return a34_0x427111[_0x3f2a2e(0x18c)](_0x17700c);}function showFileNotFoundError(_0x4c30a6,_0x41521c){const _0x4fa354=a34_0xe3eda6;console[_0x4fa354(0x113)](a34_0x427111[_0x4fa354(0x129)](_0x4fa354(0x171)+_0x4c30a6+'\x0a')),console[_0x4fa354(0x113)](a34_0x427111['cyan'](_0x4fa354(0x20e)+_0x41521c+_0x4fa354(0x1d1)));}function displayRealtimeValidation(_0x5ef34d){const _0x4cccd4=a34_0xe3eda6;if(!_0x5ef34d[_0x4cccd4(0x2d6)])return;const _0x59540e=_0x5ef34d[_0x4cccd4(0x2d6)],_0x30b99e=_0x59540e[_0x4cccd4(0x2fa)]?a34_0x427111[_0x4cccd4(0x276)](_0x4cccd4(0x192)):a34_0x427111['yellow'](_0x4cccd4(0x126));console[_0x4cccd4(0x113)]('\x0a'+a34_0x427111[_0x4cccd4(0x18c)]('RT\x202.0:')+'\x20'+_0x30b99e);if(_0x59540e[_0x4cccd4(0x2dc)]&&_0x59540e[_0x4cccd4(0x2dc)][_0x4cccd4(0x13f)]>0x0){console['error']('\x20\x20'+a34_0x427111[_0x4cccd4(0x18c)](_0x4cccd4(0x236))+'\x20'+_0x59540e[_0x4cccd4(0x2dc)][_0x4cccd4(0x13f)]+_0x4cccd4(0x1c1));for(const _0x4e9056 of _0x59540e[_0x4cccd4(0x2dc)]){const _0x40ef46=_0x4e9056[_0x4cccd4(0x27b)]===![]?a34_0x427111[_0x4cccd4(0x129)]('✘'):a34_0x427111['green']('✔');console['error'](_0x4cccd4(0x10b)+_0x40ef46+'\x20'+_0x4e9056[_0x4cccd4(0x205)]),_0x4e9056['sourceTableError']&&console[_0x4cccd4(0x113)](_0x4cccd4(0x16f)+a34_0x427111['red'](_0x4e9056[_0x4cccd4(0x12c)]));}}if(_0x59540e[_0x4cccd4(0x2ec)]&&_0x59540e['attributes'][_0x4cccd4(0x13f)]>0x0){console['error']('\x20\x20'+a34_0x427111[_0x4cccd4(0x18c)](_0x4cccd4(0x2f7))+'\x20'+_0x59540e[_0x4cccd4(0x2ec)][_0x4cccd4(0x13f)]+_0x4cccd4(0x1c1));for(const _0x39872a of _0x59540e[_0x4cccd4(0x2ec)]){const _0x586391=_0x39872a[_0x4cccd4(0x283)]?a34_0x427111[_0x4cccd4(0x276)]('✔'):a34_0x427111['red']('✘');console[_0x4cccd4(0x113)](_0x4cccd4(0x10b)+_0x586391+'\x20'+_0x39872a[_0x4cccd4(0x205)]+'\x20'+a34_0x427111[_0x4cccd4(0x18c)]('('+_0x39872a[_0x4cccd4(0x2bd)]+')'));}}if(_0x59540e[_0x4cccd4(0x2c4)]){const _0x35192e=_0x59540e['idStitching'][_0x4cccd4(0x202)]?.[_0x4cccd4(0x13f)]?_0x4cccd4(0x111)+_0x59540e[_0x4cccd4(0x2c4)][_0x4cccd4(0x202)]['join'](',\x20')+']':'';console[_0x4cccd4(0x113)]('\x20\x20'+a34_0x427111[_0x4cccd4(0x18c)]('ID\x20Stitching:')+'\x20'+_0x59540e[_0x4cccd4(0x2c4)]['primaryKey']+_0x35192e);}if(_0x59540e['personalizationServices']&&_0x59540e[_0x4cccd4(0x304)][_0x4cccd4(0x13f)]>0x0){console[_0x4cccd4(0x113)]('\x20\x20'+a34_0x427111[_0x4cccd4(0x18c)](_0x4cccd4(0x103))+'\x20'+_0x59540e['personalizationServices']['length']+_0x4cccd4(0x181)+(_0x59540e[_0x4cccd4(0x304)]['length']!==0x1?'s':''));for(const _0x4cb54a of _0x59540e[_0x4cccd4(0x304)]){console[_0x4cccd4(0x113)]('\x20\x20\x20\x20-\x20'+_0x4cb54a[_0x4cccd4(0x205)]);}}}function showParentSegmentNotSetError(_0x23e689){const _0x49b6e7=a34_0xe3eda6;console[_0x49b6e7(0x113)](a34_0x427111['yellow'](_0x49b6e7(0xfc))),console[_0x49b6e7(0x113)](_0x23e689);}export class ParentSegmentListCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='segment:parent:list';['description']=a34_0xe3eda6(0x290);async[a34_0xe3eda6(0x116)](_0x3485c6){const _0x4e0397=a34_0xe3eda6,{options:_0x5813a2,args:_0x4d65d4,tdx:_0x2f3840}=_0x3485c6,_0xff2e21=_0x4d65d4[0x0];_0x5813a2['verbose']&&(console[_0x4e0397(0x113)](_0x4e0397(0x1f7)+_0x5813a2[_0x4e0397(0x28f)]),_0xff2e21&&console['error'](_0x4e0397(0x155)+_0xff2e21));const _0x125df3=await withSpinner(_0xff2e21?_0x4e0397(0xff)+_0xff2e21+_0x4e0397(0x217):_0x4e0397(0x101),()=>_0x2f3840[_0x4e0397(0x159)][_0x4e0397(0x1b0)](),{'verbose':_0x5813a2[_0x4e0397(0x235)]});let _0x19a195=_0x125df3['data'];if(_0xff2e21){const _0x4cbf8e=_0xff2e21['replace'](/[.+^${}()|[\]\\]/g,'\x5c$&')[_0x4e0397(0x195)](/\*/g,'.*')[_0x4e0397(0x195)](/\?/g,'.'),_0x203c47=new RegExp('^'+_0x4cbf8e+'$','i');_0x19a195=_0x19a195[_0x4e0397(0x21c)](_0x976311=>_0x203c47[_0x4e0397(0x100)](_0x976311[_0x4e0397(0x2ec)][_0x4e0397(0x205)]));}_0x19a195[_0x4e0397(0x299)]((_0x1e9802,_0x16c660)=>_0x1e9802[_0x4e0397(0x2ec)][_0x4e0397(0x205)][_0x4e0397(0x2cb)](_0x16c660['attributes'][_0x4e0397(0x205)])),console[_0x4e0397(0x113)]('✔\x20Found\x20'+_0x19a195[_0x4e0397(0x13f)]+_0x4e0397(0x2fb)+(_0x19a195['length']!==0x1?'s':''));const _0x3f2f9b=_0x10bcf7=>{const _0x66b6de=_0x4e0397;return getConsoleNextUrl(_0x5813a2[_0x66b6de(0x28f)],_0x66b6de(0x17d)+_0x10bcf7);};if(_0x5813a2[_0x4e0397(0x19d)]===_0x4e0397(0x273)||_0x5813a2[_0x4e0397(0x19d)]===_0x4e0397(0x131)){const _0x35d484=_0x19a195[_0x4e0397(0x269)](_0x478d5e=>({..._0x478d5e,'url':_0x3f2f9b(_0x478d5e['id'])}));await handleSDKOutput(_0x35d484,_0x5813a2);}else{if(_0x19a195[_0x4e0397(0x13f)]===0x0)_0xff2e21?console[_0x4e0397(0x17c)](_0x4e0397(0x2d1)+_0xff2e21):console['log']('No\x20parent\x20segments\x20found');else for(const _0x47f62f of _0x19a195){const _0x2b8a46=_0x47f62f[_0x4e0397(0x2ec)][_0x4e0397(0x23e)]?a34_0x427111[_0x4e0397(0x18c)]('\x20('+formatRows(_0x47f62f[_0x4e0397(0x2ec)]['population'])+')'):'',_0x538c69=hyperlink(_0x47f62f[_0x4e0397(0x2ec)][_0x4e0397(0x205)],_0x3f2f9b(_0x47f62f['id']));console[_0x4e0397(0x17c)]('👥\x20'+_0x538c69+_0x2b8a46);}}return 0x0;}}export class ParentSegmentCreateCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x145);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x2df);async[a34_0xe3eda6(0x116)](_0x4d1857){const _0x173878=a34_0xe3eda6,{options:_0x16373b,args:_0x17aa5f,tdx:_0x2d24ad}=_0x4d1857;console[_0x173878(0x113)](_0x173878(0x21f)+'\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a'+_0x173878(0x22e));const _0x2cef4e=_0x16373b;if(_0x17aa5f[_0x173878(0x13f)]===0x0)return console[_0x173878(0x113)](a34_0x427111[_0x173878(0x129)](_0x173878(0x208))),console[_0x173878(0x113)](_0x173878(0x29b)),0x1;const _0xdc3d24=_0x17aa5f[0x0];if(!_0x2cef4e[_0x173878(0x2a7)]||!_0x2cef4e[_0x173878(0x152)])return console[_0x173878(0x113)](_0x173878(0x2f8)),console[_0x173878(0x113)](_0x173878(0x29b)),0x1;_0x2cef4e[_0x173878(0x235)]&&(console[_0x173878(0x113)](_0x173878(0x1f7)+_0x2cef4e[_0x173878(0x28f)]),console[_0x173878(0x113)]('Name:\x20'+_0xdc3d24),console[_0x173878(0x113)](_0x173878(0x15b)+_0x2cef4e['database']),console[_0x173878(0x113)]('Table:\x20'+_0x2cef4e[_0x173878(0x152)]));const _0x57aa59=await loadJSONFromOptions(_0x2cef4e[_0x173878(0x2ec)],_0x2cef4e[_0x173878(0x1ac)]),_0x56e107=await loadJSONFromOptions(_0x2cef4e[_0x173878(0x2c9)],_0x2cef4e[_0x173878(0x245)]),_0x471b3e=await loadJSONFromOptions(_0x2cef4e[_0x173878(0x1d8)],_0x2cef4e[_0x173878(0x25e)]),_0x2d292d={'name':_0xdc3d24,'description':_0x2cef4e['description'],'scheduleType':_0x2cef4e[_0x173878(0x221)],'scheduleOption':_0x2cef4e[_0x173878(0x197)],'timezone':_0x2cef4e[_0x173878(0x190)],'master':{'parentDatabaseName':_0x2cef4e[_0x173878(0x2a7)],'parentTableName':_0x2cef4e[_0x173878(0x152)]},'attributes':_0x57aa59,'behaviors':_0x56e107,'customerGroup':_0x471b3e},_0x5b28a2=await withSpinner(_0x173878(0x2ee)+_0xdc3d24+_0x173878(0x217),()=>_0x2d24ad[_0x173878(0x159)][_0x173878(0x2e3)](_0x2d292d),{'verbose':_0x16373b['verbose']}),_0x1c686f=_0x5b28a2['data'];return console['error'](_0x173878(0x2d9)+_0x1c686f[_0x173878(0x205)]+_0x173878(0x14d)+_0x1c686f['id']),await handleSDKOutput([_0x1c686f],_0x16373b),0x0;}}export class ParentSegmentUpdateCommand extends BaseCommand{['name']=a34_0xe3eda6(0x177);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x239);async[a34_0xe3eda6(0x116)](_0x25733b){const _0x5ef5e7=a34_0xe3eda6,{options:_0x4708ba,args:_0xd45873,tdx:_0x44397a}=_0x25733b;console[_0x5ef5e7(0x113)](_0x5ef5e7(0x133)+'\x20\x20\x20Use\x20`tdx\x20segment\x20parent\x20push\x20<file.yml>`\x20instead\x20for\x20better\x20configuration\x20management.\x0a'+_0x5ef5e7(0x22e));const _0x3f6cd2=_0x4708ba;if(_0xd45873[_0x5ef5e7(0x13f)]===0x0)return console['error'](a34_0x427111[_0x5ef5e7(0x129)](_0x5ef5e7(0x208))),console['error'](_0x5ef5e7(0x303)),0x1;const _0x2f0bc6=_0xd45873[0x0];_0x3f6cd2[_0x5ef5e7(0x235)]&&(console[_0x5ef5e7(0x113)](_0x5ef5e7(0x1f7)+_0x3f6cd2[_0x5ef5e7(0x28f)]),console[_0x5ef5e7(0x113)](_0x5ef5e7(0x2f5)+_0x2f0bc6));const _0x39a553=await withSpinner(_0x5ef5e7(0x167)+_0x2f0bc6+_0x5ef5e7(0x217),()=>_0x44397a['segment'][_0x5ef5e7(0x2ed)](_0x2f0bc6),{'verbose':_0x3f6cd2['verbose']}),_0x2311b5=_0x39a553[_0x5ef5e7(0x209)],_0x188b75=await loadJSONFromOptions(_0x3f6cd2[_0x5ef5e7(0x1fa)],_0x3f6cd2['addAttributesFile']),_0xf68fb7=await loadJSONFromOptions(_0x3f6cd2[_0x5ef5e7(0x305)],_0x3f6cd2[_0x5ef5e7(0x157)]),_0x46e37e={'name':_0x2311b5['name'],'description':_0x3f6cd2[_0x5ef5e7(0x16d)]!==undefined?_0x3f6cd2['description']:_0x2311b5[_0x5ef5e7(0x16d)],'scheduleType':_0x3f6cd2[_0x5ef5e7(0x221)]!==undefined?_0x3f6cd2[_0x5ef5e7(0x221)]:_0x2311b5['scheduleType'],'scheduleOption':_0x3f6cd2[_0x5ef5e7(0x197)]!==undefined?_0x3f6cd2[_0x5ef5e7(0x197)]:_0x2311b5['scheduleOption'],'timezone':_0x3f6cd2[_0x5ef5e7(0x190)]!==undefined?_0x3f6cd2['timezone']:_0x2311b5[_0x5ef5e7(0x190)],'master':_0x2311b5['master'],'attributes':_0x188b75?[..._0x2311b5[_0x5ef5e7(0x2ec)]||[],..._0x188b75]:_0x2311b5[_0x5ef5e7(0x2ec)],'behaviors':_0xf68fb7?[..._0x2311b5['behaviors']||[],..._0xf68fb7]:_0x2311b5['behaviors'],'customerGroup':_0x2311b5[_0x5ef5e7(0x1d8)]},_0x579389=await withSpinner('Updating\x20parent\x20segment\x20\x27'+_0x2f0bc6+_0x5ef5e7(0x217),()=>_0x44397a[_0x5ef5e7(0x159)][_0x5ef5e7(0x1e7)](_0x2f0bc6,_0x46e37e),{'verbose':_0x3f6cd2['verbose']}),_0x2c24b5=_0x579389[_0x5ef5e7(0x209)];return console[_0x5ef5e7(0x113)]('✔\x20Updated\x20parent\x20segment\x20\x27'+_0x2c24b5[_0x5ef5e7(0x205)]+'\x27'),await handleSDKOutput([_0x2c24b5],_0x3f6cd2),0x0;}}export class ParentSegmentPullCommand extends BaseParentSegmentCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x1a0);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x151);async['execute'](_0x579434){const _0x557ccc=a34_0xe3eda6,{options:_0x465ad8,args:_0x5b66e7,tdx:_0x104776}=_0x579434,_0x1e874f=_0x465ad8,_0x213a12=_0x5b66e7[0x0]||_0x465ad8['parentSegment'];if(!_0x213a12)return showParentSegmentNotSetError(_0x557ccc(0x2bb)+_0x557ccc(0x2ab)),0x1;if(_0x1e874f[_0x557ccc(0xfe)]&&_0x1e874f[_0x557ccc(0x27c)])return console['error'](a34_0x427111[_0x557ccc(0x129)](_0x557ccc(0x176))),console[_0x557ccc(0x113)](a34_0x427111['dim']('The\x20-u\x20flag\x20sets\x20the\x20context\x20to\x20the\x20pulled\x20segment,\x20which\x20requires')),console['error'](a34_0x427111['dim'](_0x557ccc(0x308)+PARENT_SEGMENT_DIR+_0x557ccc(0x1d3))),console[_0x557ccc(0x113)](a34_0x427111[_0x557ccc(0x23f)](_0x557ccc(0x275))),0x1;const _0x4d9095=_0x1e874f[_0x557ccc(0x27c)]||a34_0x1183fe[_0x557ccc(0x14a)](PARENT_SEGMENT_DIR,sanitizeFileName(_0x213a12)+_0x557ccc(0x1ca));_0x1e874f[_0x557ccc(0x235)]&&(console['error'](_0x557ccc(0x1f7)+_0x1e874f['site']),console[_0x557ccc(0x113)](_0x557ccc(0x2f5)+_0x213a12),console[_0x557ccc(0x113)](_0x557ccc(0x2c5)+_0x4d9095));const _0x165494=await withSpinner(_0x557ccc(0x259)+_0x213a12+_0x557ccc(0x217),()=>_0x104776[_0x557ccc(0x159)][_0x557ccc(0x2d2)](_0x213a12),{'verbose':_0x1e874f[_0x557ccc(0x235)]}),_0x2b9a40=_0x165494[_0x557ccc(0x209)];if(existsSync(_0x4d9095)){const _0x1085af=readFileSync(_0x4d9095,_0x557ccc(0x2e4)),_0x224fcd=generateDiff(_0x1085af,_0x2b9a40);if(!hasChanges(_0x224fcd))console[_0x557ccc(0x113)](a34_0x427111[_0x557ccc(0x276)]('✔')+'\x20No\x20changes\x20-\x20'+a34_0x427111[_0x557ccc(0x23f)](_0x4d9095)+_0x557ccc(0x29d));else{console['error'](_0x557ccc(0xfa)+_0x4d9095+'\x27:'),console[_0x557ccc(0x113)]('─'[_0x557ccc(0x2fe)](0x3c)),console[_0x557ccc(0x113)](formatDiffWithColors(_0x224fcd)),console[_0x557ccc(0x113)]('─'[_0x557ccc(0x2fe)](0x3c));if(!_0x1e874f['yes']){if(!isInteractive())return console['error'](a34_0x427111[_0x557ccc(0x129)](_0x557ccc(0x1cb)),_0x557ccc(0x186)),console[_0x557ccc(0x113)](a34_0x427111[_0x557ccc(0x18c)](_0x557ccc(0x241))),0x1;const _0x121f2b=await confirmKey(_0x557ccc(0x237)+_0x4d9095+'\x27?');if(!_0x121f2b)return console[_0x557ccc(0x113)](a34_0x427111[_0x557ccc(0x1ce)](_0x557ccc(0x104))),0x1;}writeFileSync(_0x4d9095,_0x2b9a40,'utf-8'),console[_0x557ccc(0x113)](a34_0x427111[_0x557ccc(0x276)]('✔')+'\x20Saved\x20parent\x20segment\x20configuration\x20to\x20'+a34_0x427111['cyan'](_0x4d9095));}}else{const _0x25fffb=a34_0x1183fe['dirname'](_0x4d9095);!existsSync(_0x25fffb)&&mkdirSync(_0x25fffb,{'recursive':!![]}),writeFileSync(_0x4d9095,_0x2b9a40,_0x557ccc(0x2e4)),console[_0x557ccc(0x113)](a34_0x427111[_0x557ccc(0x276)]('✔')+_0x557ccc(0x253)+a34_0x427111[_0x557ccc(0x23f)](_0x4d9095));}return saveSessionContext({'parent_segment':_0x213a12},_0x1e874f[_0x557ccc(0x112)]),console[_0x557ccc(0x113)](a34_0x427111['green']('✔')+'\x20Context\x20set:\x20'+a34_0x427111[_0x557ccc(0x18c)]('parent_segment')+_0x557ccc(0x27d)+a34_0x427111['cyan'](_0x213a12)),0x0;}}export class ParentSegmentPushCommand extends BaseParentSegmentCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x225);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x13d);async['execute'](_0x1f29fe){const _0x12cd9c=a34_0xe3eda6,{options:_0x59b7ee,args:_0x4a9fcd,tdx:_0x158483}=_0x1f29fe,_0x1181c7=_0x59b7ee,_0x1141a1=_0x4a9fcd[0x0]||_0x59b7ee[_0x12cd9c(0x119)];if(!_0x1141a1)return showParentSegmentNotSetError(_0x12cd9c(0x2a4)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20push\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20specific\x20parent\x20segment'),0x1;const _0x2602ca=resolveYamlFile(_0x1141a1);if(!existsSync(_0x2602ca))return showFileNotFoundError(_0x2602ca,_0x1141a1),0x1;_0x1181c7['verbose']&&(console[_0x12cd9c(0x113)](_0x12cd9c(0x1f7)+_0x1181c7['site']),console['error'](_0x12cd9c(0x29f)+_0x2602ca));let _0xb1bd95;try{_0xb1bd95=readFileSync(_0x2602ca,_0x12cd9c(0x2e4));}catch(_0x483648){const _0xa74716=_0x483648 instanceof Error?_0x483648['message']:String(_0x483648);return console[_0x12cd9c(0x113)]('Error\x20reading\x20file:\x20'+_0xa74716),0x1;}const _0x51d197=await withSpinner(_0x12cd9c(0x1e9),()=>_0x158483['segment']['pushParentYaml'](_0xb1bd95),{'verbose':_0x1181c7['verbose']}),_0x35761e=_0x51d197['data'],{isNew:_0x14949c,name:_0x13675f,hasChanges:_0x1eb2e1,diffFormatted:_0x5d21f7}=_0x35761e;if(!_0x1eb2e1)return console['error'](_0x12cd9c(0x10d)+_0x13675f+_0x12cd9c(0x1f4)),0x0;_0x14949c?console[_0x12cd9c(0x113)]('\x0aNew\x20parent\x20segment\x20\x27'+_0x13675f+'\x27:'):console['error'](_0x12cd9c(0x180)+_0x13675f+'\x27:');console[_0x12cd9c(0x113)]('─'['repeat'](0x3c)),console['error'](_0x5d21f7),console[_0x12cd9c(0x113)]('─'[_0x12cd9c(0x2fe)](0x3c));const _0x436ffc=_0x14949c?_0x12cd9c(0x250)+_0x13675f+'\x27?':_0x12cd9c(0x163)+_0x13675f+'\x27?';if(!_0x1181c7[_0x12cd9c(0x15c)]){if(!isInteractive())return console['error'](a34_0x427111[_0x12cd9c(0x129)](_0x12cd9c(0x1cb)),_0x12cd9c(0x186)),console[_0x12cd9c(0x113)](a34_0x427111[_0x12cd9c(0x18c)](_0x12cd9c(0x241))),0x1;const _0x491370=await confirmKey(_0x436ffc);if(!_0x491370)return console[_0x12cd9c(0x113)](a34_0x427111[_0x12cd9c(0x1ce)]('Aborted.')),0x1;}const _0x3836fa=_0x14949c?_0x12cd9c(0x2ea):_0x12cd9c(0x224),_0x2fc555=await withSpinner(_0x3836fa+_0x12cd9c(0x161)+_0x13675f+_0x12cd9c(0x217),()=>_0x35761e[_0x12cd9c(0x11b)](),{'verbose':_0x1181c7[_0x12cd9c(0x235)]}),_0x40cd8a=_0x2fc555['data'],_0x403f92=getConsoleNextUrl(_0x1181c7[_0x12cd9c(0x28f)],_0x12cd9c(0x17d)+_0x40cd8a['id']),_0xc130b5=_0x14949c?_0x12cd9c(0x2f3):'Updated';return console['error']('✔\x20'+_0xc130b5+_0x12cd9c(0x161)+_0x40cd8a[_0x12cd9c(0x205)]+'\x27'),console[_0x12cd9c(0x113)]('\x20\x20'+_0x403f92),0x0;}}export class ParentSegmentValidateCommand extends BaseParentSegmentCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x14b);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x2c8);async['execute'](_0x435725){const _0x2150cc=a34_0xe3eda6,{options:_0xc9d864,args:_0x1fffe5,tdx:_0x3d750c}=_0x435725,_0xfe5536=_0xc9d864,_0x4a4485=_0x1fffe5[0x0]||_0xc9d864['parentSegment'];if(!_0x4a4485)return showParentSegmentNotSetError(_0x2150cc(0x12a)+_0x2150cc(0x1a5)+_0x2150cc(0x207)+_0x2150cc(0x1fe)+_0x2150cc(0x110)+_0x2150cc(0x30b)),0x1;const _0x449829=resolveYamlFile(_0x4a4485);if(!existsSync(_0x449829))return showFileNotFoundError(_0x449829,_0x4a4485),0x1;_0xfe5536[_0x2150cc(0x235)]&&(console[_0x2150cc(0x113)](_0x2150cc(0x1f7)+_0xfe5536['site']),console[_0x2150cc(0x113)](_0x2150cc(0x29f)+_0x449829));let _0x468217;try{_0x468217=readFileSync(_0x449829,_0x2150cc(0x2e4));}catch(_0x206322){const _0x310644=_0x206322 instanceof Error?_0x206322[_0x2150cc(0x23b)]:String(_0x206322);return console['error'](_0x2150cc(0x10f)+_0x310644),0x1;}const _0x50ebff=createCommandSpinner(a34_0x427111[_0x2150cc(0x18c)](_0x2150cc(0x1a1)),{'verbose':_0xfe5536['verbose']});_0x50ebff[_0x2150cc(0x1d6)]();const _0x41447c={'onProgress':_0x303490=>{const _0x20a387=_0x2150cc;_0x50ebff[_0x20a387(0x2f0)]=formatProgressMessage(_0x303490);}};if(_0xfe5536[_0x2150cc(0x2ff)])_0x41447c[_0x2150cc(0x2ff)]=!![];if(_0xfe5536['enriched'])_0x41447c[_0x2150cc(0x2c7)]=!![];_0xfe5536[_0x2150cc(0x2a9)]&&(_0x41447c[_0x2150cc(0x2a9)]=_0xfe5536[_0x2150cc(0x2a9)]);_0xfe5536[_0x2150cc(0x22a)]&&(_0x41447c[_0x2150cc(0x22a)]=_0xfe5536[_0x2150cc(0x22a)]);if(_0xfe5536[_0x2150cc(0x210)])_0x41447c[_0x2150cc(0x210)]=_0xfe5536[_0x2150cc(0x210)];let _0x47d822;try{_0x47d822=await _0x3d750c['segment']['validateParentYaml'](_0x468217,_0x41447c),_0x50ebff[_0x2150cc(0x154)]();}catch(_0x4429fc){_0x50ebff[_0x2150cc(0x154)]();throw _0x4429fc;}const _0x22f65a=_0xfe5536[_0x2150cc(0x210)]||'-1d';return this[_0x2150cc(0x302)](_0x47d822,_0x41447c,_0x449829,_0x22f65a),_0x47d822[_0x2150cc(0x2cf)]?0x0:0x1;}[a34_0xe3eda6(0x302)](_0x1903e0,_0x9c74bf,_0x17698e,_0x364ead){const _0x427134=a34_0xe3eda6;console[_0x427134(0x113)]('\x0a'+a34_0x427111[_0x427134(0x260)](_0x427134(0x21d))+'\x20'+_0x1903e0[_0x427134(0x205)]),console[_0x427134(0x113)]('═'[_0x427134(0x2fe)](0x3c)),this[_0x427134(0x2d4)](_0x1903e0);if(typeof _0x9c74bf[_0x427134(0x2a9)]===_0x427134(0x150)){this[_0x427134(0x199)](_0x1903e0),this[_0x427134(0x106)](_0x1903e0),this[_0x427134(0x1e3)](_0x17698e,_0x364ead,_0x427134(0x2a9),_0x9c74bf['attribute']);return;}if(_0x9c74bf[_0x427134(0x2a9)]===!![]){this[_0x427134(0x199)](_0x1903e0),this['displaySummary'](_0x1903e0),this[_0x427134(0x1e3)](_0x17698e,_0x364ead,_0x427134(0x2ec));return;}if(typeof _0x9c74bf[_0x427134(0x22a)]===_0x427134(0x150)){this[_0x427134(0x203)](_0x1903e0,_0x364ead),this['displaySummary'](_0x1903e0),this[_0x427134(0x1e3)](_0x17698e,_0x364ead,'behavior',_0x9c74bf[_0x427134(0x22a)]);return;}if(_0x9c74bf[_0x427134(0x22a)]===!![]){this[_0x427134(0x203)](_0x1903e0,_0x364ead),this[_0x427134(0x106)](_0x1903e0),this[_0x427134(0x1e3)](_0x17698e,_0x364ead,_0x427134(0x2c9));return;}this['displayAttributesStats'](_0x1903e0),this[_0x427134(0x203)](_0x1903e0,_0x364ead),this[_0x427134(0x1c7)](_0x1903e0),this[_0x427134(0x106)](_0x1903e0),this[_0x427134(0x1e3)](_0x17698e,_0x364ead,_0x427134(0x114));}['displayRealtimeInfo'](_0x711522){displayRealtimeValidation(_0x711522);}[a34_0xe3eda6(0x1e3)](_0x292329,_0x434fef,_0x5caa86,_0x450577){const _0x4539e5=a34_0xe3eda6;console[_0x4539e5(0x113)]('\x0a'+a34_0x427111[_0x4539e5(0x18c)](_0x4539e5(0x1c5)));const _0x264688=_0x434fef!=='-1d'?_0x4539e5(0x228)+_0x434fef:'';if(_0x5caa86===_0x4539e5(0x2a9)&&_0x450577)console[_0x4539e5(0x113)]('\x20\x20'+a34_0x427111[_0x4539e5(0x18c)](_0x4539e5(0x19c)+_0x292329+_0x4539e5(0x1be)+_0x450577+'\x22'+_0x264688));else{if(_0x5caa86==='behavior'&&_0x450577)console[_0x4539e5(0x113)]('\x20\x20'+a34_0x427111['dim'](_0x4539e5(0x19c)+_0x292329+_0x4539e5(0x2dd)+_0x450577+'\x22'+_0x264688));else(_0x5caa86==='attributes'||_0x5caa86===_0x4539e5(0x114))&&console[_0x4539e5(0x113)]('\x20\x20'+a34_0x427111['dim'](_0x4539e5(0x19c)+_0x292329+_0x4539e5(0x25b)+_0x264688));}(_0x5caa86===_0x4539e5(0x2c9)||_0x5caa86===_0x4539e5(0x114))&&console['error']('\x20\x20'+a34_0x427111[_0x4539e5(0x18c)](_0x4539e5(0x19c)+_0x292329+_0x4539e5(0x2b5)+_0x264688)),_0x5caa86===_0x4539e5(0x114)&&console[_0x4539e5(0x113)]('\x20\x20'+a34_0x427111[_0x4539e5(0x18c)](_0x4539e5(0x19c)+_0x292329+_0x4539e5(0x1e4)+_0x264688));}['displayMasterInfo'](_0x9741a9){const _0x46cc6b=a34_0xe3eda6,{master:_0x1db52e}=_0x9741a9,_0x3705ab=_0x1db52e['schemaValid']?a34_0x427111[_0x46cc6b(0x276)]('✔'):a34_0x427111[_0x46cc6b(0x129)]('✘');console[_0x46cc6b(0x113)]('\x0a'+a34_0x427111[_0x46cc6b(0x18c)]('Master\x20Table')),console[_0x46cc6b(0x113)](_0x3705ab+'\x20'+a34_0x427111[_0x46cc6b(0x260)](_0x1db52e[_0x46cc6b(0x2a7)]+'.'+_0x1db52e[_0x46cc6b(0x152)])),_0x1db52e[_0x46cc6b(0x2ac)]?_0x1db52e[_0x46cc6b(0x173)]!==undefined&&console[_0x46cc6b(0x113)]('\x20\x20'+a34_0x427111['dim'](_0x46cc6b(0x27f))+'\x20'+a34_0x427111[_0x46cc6b(0x23f)](formatRows(_0x1db52e[_0x46cc6b(0x173)]))):console['error']('\x20\x20'+a34_0x427111[_0x46cc6b(0x129)]('Error:')+'\x20'+_0x1db52e[_0x46cc6b(0x2d0)]);}[a34_0xe3eda6(0x199)](_0x20d825){const _0x3d461b=a34_0xe3eda6;if(_0x20d825[_0x3d461b(0x2ec)]['length']===0x0)return;console[_0x3d461b(0x113)]('\x0a'+a34_0x427111[_0x3d461b(0x18c)]('Attributes'));for(const _0x39c2ad of _0x20d825[_0x3d461b(0x2ec)]){const _0x33c50b=_0x39c2ad['schemaValid']?a34_0x427111[_0x3d461b(0x276)]('✔'):a34_0x427111[_0x3d461b(0x129)]('✘');let _0x4a8310='';if(_0x39c2ad[_0x3d461b(0x2ac)]&&_0x39c2ad[_0x3d461b(0x1bb)]!==undefined&&_0x39c2ad[_0x3d461b(0x20a)]!==undefined){const _0x1ee5e3=_0x39c2ad['coveragePercent'][_0x3d461b(0x22c)](0x1),_0x59bd6c=_0x39c2ad['coveragePercent']>=0x50?a34_0x427111['green']:_0x39c2ad[_0x3d461b(0x20a)]>=0x32?a34_0x427111[_0x3d461b(0x1ce)]:a34_0x427111[_0x3d461b(0x129)];_0x4a8310='\x20'+a34_0x427111[_0x3d461b(0x18c)](_0x3d461b(0x2b3))+'\x20'+_0x59bd6c(_0x1ee5e3+'%')+'\x20('+formatRows(_0x39c2ad[_0x3d461b(0x1bb)])+_0x3d461b(0x174);}console[_0x3d461b(0x113)](_0x33c50b+'\x20'+a34_0x427111[_0x3d461b(0x260)](_0x39c2ad[_0x3d461b(0x205)])+_0x4a8310),console['error']('\x20\x20'+a34_0x427111[_0x3d461b(0x18c)](_0x3d461b(0x27a))+'\x20'+a34_0x427111[_0x3d461b(0x260)](_0x39c2ad[_0x3d461b(0x2a7)]+'.'+_0x39c2ad[_0x3d461b(0x152)]));const _0x338a37=_0x39c2ad[_0x3d461b(0x22f)]===_0x39c2ad[_0x3d461b(0x307)]?a34_0x427111[_0x3d461b(0x18c)](_0x3d461b(0x21b))+'\x20'+_0x39c2ad[_0x3d461b(0x22f)]:a34_0x427111[_0x3d461b(0x18c)](_0x3d461b(0x26b))+'\x20'+_0x39c2ad['joinKey']+_0x3d461b(0x27d)+_0x39c2ad[_0x3d461b(0x307)];console[_0x3d461b(0x113)]('\x20\x20'+_0x338a37),console[_0x3d461b(0x113)]('\x20\x20'+a34_0x427111['dim'](_0x3d461b(0x15f))),this['displayColumns'](_0x39c2ad[_0x3d461b(0x12d)]),!_0x39c2ad['schemaValid']&&console[_0x3d461b(0x113)]('\x20\x20'+a34_0x427111[_0x3d461b(0x129)](_0x3d461b(0x17f))+'\x20'+_0x39c2ad[_0x3d461b(0x2d0)]);}}[a34_0xe3eda6(0x203)](_0x40428e,_0x4ce863){const _0x7e1bf3=a34_0xe3eda6;if(_0x40428e[_0x7e1bf3(0x2c9)]['length']===0x0)return;console[_0x7e1bf3(0x113)]('\x0a'+a34_0x427111[_0x7e1bf3(0x18c)](_0x7e1bf3(0x153))+'\x20'+a34_0x427111['dim']('('+_0x4ce863+')'));for(const _0x35154d of _0x40428e[_0x7e1bf3(0x2c9)]){const _0x3a1f4a=_0x35154d['schemaValid']?a34_0x427111['green']('✔'):a34_0x427111[_0x7e1bf3(0x129)]('✘');let _0x4ecd5e='';if(_0x35154d['schemaValid']&&_0x35154d[_0x7e1bf3(0x21a)]!==undefined&&_0x35154d[_0x7e1bf3(0x294)]!==undefined){const _0x2f243f=_0x35154d['customerPercent']?.['toFixed'](0x1)||'?',_0x3a6574=(_0x35154d[_0x7e1bf3(0x15a)]??0x0)>=0x32?a34_0x427111['green']:(_0x35154d[_0x7e1bf3(0x15a)]??0x0)>=0x14?a34_0x427111[_0x7e1bf3(0x1ce)]:a34_0x427111[_0x7e1bf3(0x129)];_0x4ecd5e='\x20'+a34_0x427111[_0x7e1bf3(0x18c)](_0x7e1bf3(0x204))+'\x20'+_0x3a6574(formatRows(_0x35154d[_0x7e1bf3(0x21a)]))+'\x20('+_0x2f243f+_0x7e1bf3(0x23d)+a34_0x427111[_0x7e1bf3(0x18c)](_0x7e1bf3(0x236))+'\x20'+a34_0x427111[_0x7e1bf3(0x23f)](formatRows(_0x35154d[_0x7e1bf3(0x294)]));}console[_0x7e1bf3(0x113)](_0x3a1f4a+'\x20'+a34_0x427111['bold'](_0x35154d[_0x7e1bf3(0x205)])+_0x4ecd5e),console[_0x7e1bf3(0x113)]('\x20\x20'+a34_0x427111['dim'](_0x7e1bf3(0x27a))+'\x20'+a34_0x427111[_0x7e1bf3(0x260)](_0x35154d[_0x7e1bf3(0x2a7)]+'.'+_0x35154d[_0x7e1bf3(0x152)]));const _0xdf4d=_0x35154d[_0x7e1bf3(0x22f)]===_0x35154d[_0x7e1bf3(0x307)]?a34_0x427111[_0x7e1bf3(0x18c)](_0x7e1bf3(0x21b))+'\x20'+_0x35154d[_0x7e1bf3(0x22f)]:a34_0x427111[_0x7e1bf3(0x18c)](_0x7e1bf3(0x26b))+'\x20'+_0x35154d[_0x7e1bf3(0x22f)]+_0x7e1bf3(0x27d)+_0x35154d[_0x7e1bf3(0x307)];console[_0x7e1bf3(0x113)]('\x20\x20'+_0xdf4d),console[_0x7e1bf3(0x113)]('\x20\x20'+a34_0x427111[_0x7e1bf3(0x18c)](_0x7e1bf3(0x15f))),this[_0x7e1bf3(0x194)](_0x35154d[_0x7e1bf3(0x12d)]),!_0x35154d[_0x7e1bf3(0x2ac)]&&console[_0x7e1bf3(0x113)]('\x20\x20'+a34_0x427111['red'](_0x7e1bf3(0x17f))+'\x20'+_0x35154d[_0x7e1bf3(0x2d0)]);}}[a34_0xe3eda6(0x194)](_0x41d6a4){const _0x4b5d39=a34_0xe3eda6;for(const _0x3df97c of _0x41d6a4){_0x3df97c[_0x4b5d39(0x285)]===_0x3df97c[_0x4b5d39(0x28c)]||_0x3df97c[_0x4b5d39(0x28c)]==='*'?console[_0x4b5d39(0x113)](_0x4b5d39(0x189)+_0x3df97c[_0x4b5d39(0x285)]):console[_0x4b5d39(0x113)](_0x4b5d39(0x189)+_0x3df97c[_0x4b5d39(0x285)]+'\x20'+a34_0x427111[_0x4b5d39(0x18c)]('('+_0x3df97c['column']+')'));}}[a34_0xe3eda6(0x106)](_0xde6f67){const _0x969517=a34_0xe3eda6;console[_0x969517(0x113)]('─'[_0x969517(0x2fe)](0x3c));if(_0xde6f67[_0x969517(0x2ca)][_0x969517(0x13f)]>0x0){console[_0x969517(0x113)]('\x0a'+a34_0x427111[_0x969517(0x129)]('Errors:'));for(const _0x4dbb5c of _0xde6f67[_0x969517(0x2ca)]){console[_0x969517(0x113)]('\x20\x20'+a34_0x427111[_0x969517(0x129)]('•')+'\x20'+_0x4dbb5c);}}_0xde6f67[_0x969517(0x2cf)]&&console['error']('\x0a'+a34_0x427111['green']('✔')+_0x969517(0x271));}}export class ParentSegmentPreviewCommand extends BaseParentSegmentCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x1a2);['description']=a34_0xe3eda6(0x268);async[a34_0xe3eda6(0x116)](_0x4768d1){const _0x6d20c6=a34_0xe3eda6,{options:_0x5adf45,args:_0x316383,tdx:_0x31a470}=_0x4768d1,_0x3f434a=_0x5adf45,_0x23dfd6=_0x316383[0x0]||_0x5adf45[_0x6d20c6(0x119)];if(!_0x23dfd6)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20preview\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20(requires\x20context)\x0a'+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20preview\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Preview\x20specific\x20parent\x20segment\x0a\x0a'+_0x6d20c6(0x25f)+_0x6d20c6(0x26e)+'\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute\x0a'+'\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior\x0a'+_0x6d20c6(0x149)+_0x6d20c6(0x30b)),0x1;if(!_0x3f434a[_0x6d20c6(0x2ff)]&&!_0x3f434a[_0x6d20c6(0x2a9)]&&!_0x3f434a[_0x6d20c6(0x22a)]&&!_0x3f434a[_0x6d20c6(0x2c7)])return console[_0x6d20c6(0x113)](a34_0x427111['red']('Error:\x20At\x20least\x20one\x20preview\x20option\x20required\x0a')),console[_0x6d20c6(0x113)](_0x6d20c6(0x2af)),console[_0x6d20c6(0x113)]('Options:'),console[_0x6d20c6(0x113)](_0x6d20c6(0x1c6)),console['error']('\x20\x20--attribute\x20<name>\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20attribute'),console[_0x6d20c6(0x113)](_0x6d20c6(0x165)),console[_0x6d20c6(0x113)]('\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data'),0x1;const _0xf3afa7=resolveYamlFile(_0x23dfd6);if(!existsSync(_0xf3afa7))return showFileNotFoundError(_0xf3afa7,_0x23dfd6),0x1;_0x3f434a[_0x6d20c6(0x235)]&&(console['error'](_0x6d20c6(0x1f7)+_0x3f434a[_0x6d20c6(0x28f)]),console[_0x6d20c6(0x113)]('YAML\x20file:\x20'+_0xf3afa7));let _0x4b4791;try{_0x4b4791=readFileSync(_0xf3afa7,_0x6d20c6(0x2e4));}catch(_0x42832a){const _0x363153=_0x42832a instanceof Error?_0x42832a['message']:String(_0x42832a);return console[_0x6d20c6(0x113)](_0x6d20c6(0x10f)+_0x363153),0x1;}let _0x2157fe;try{_0x2157fe=parseDef(_0x4b4791);}catch(_0x41cfdc){const _0x5d4508=_0x41cfdc instanceof Error?_0x41cfdc[_0x6d20c6(0x23b)]:String(_0x41cfdc);return console[_0x6d20c6(0x113)](a34_0x427111[_0x6d20c6(0x129)]('Error\x20parsing\x20YAML:\x20'+_0x5d4508)),0x1;}if(_0x3f434a[_0x6d20c6(0x2a9)]===!![]||_0x3f434a['attribute']===''){const _0x56a480=_0x2157fe[_0x6d20c6(0x2ec)]?.['map'](_0x55c313=>_0x55c313['name'])||[];if(_0x56a480[_0x6d20c6(0x13f)]===0x0)console[_0x6d20c6(0x113)](a34_0x427111[_0x6d20c6(0x129)](_0x6d20c6(0x2e2)));else{console[_0x6d20c6(0x113)](a34_0x427111['red']('Error:\x20--attribute\x20requires\x20a\x20name\x0a')),console[_0x6d20c6(0x113)](_0x6d20c6(0x24a));for(const _0x251c6d of _0x56a480){console[_0x6d20c6(0x113)]('\x20\x20'+a34_0x427111['cyan'](_0x251c6d));}console['error'](_0x6d20c6(0x12f)+_0x23dfd6+_0x6d20c6(0x1be)+_0x56a480[0x0]+'\x22');}return 0x1;}if(_0x3f434a[_0x6d20c6(0x22a)]===!![]||_0x3f434a[_0x6d20c6(0x22a)]===''){const _0x226433=_0x2157fe[_0x6d20c6(0x2c9)]?.[_0x6d20c6(0x269)](_0x1fddaa=>_0x1fddaa[_0x6d20c6(0x205)])||[];if(_0x226433[_0x6d20c6(0x13f)]===0x0)console[_0x6d20c6(0x113)](a34_0x427111['red'](_0x6d20c6(0x2e7)));else{console['error'](a34_0x427111[_0x6d20c6(0x129)](_0x6d20c6(0x19f))),console[_0x6d20c6(0x113)](_0x6d20c6(0x231));for(const _0x5c9897 of _0x226433){console[_0x6d20c6(0x113)]('\x20\x20'+a34_0x427111[_0x6d20c6(0x23f)](_0x5c9897));}console[_0x6d20c6(0x113)](_0x6d20c6(0x12f)+_0x23dfd6+_0x6d20c6(0x2dd)+_0x226433[0x0]+'\x22');}return 0x1;}const _0x231ed3=createCommandSpinner(a34_0x427111['dim'](_0x6d20c6(0x144)),{'verbose':_0x3f434a['verbose']});_0x231ed3[_0x6d20c6(0x1d6)]();const _0x35c9a9={'onProgress':_0x219818=>{const _0x8bc523=_0x6d20c6;_0x231ed3[_0x8bc523(0x2f0)]=formatProgressMessage(_0x219818);}};if(_0x3f434a['master'])_0x35c9a9[_0x6d20c6(0x2ff)]=!![];if(_0x3f434a[_0x6d20c6(0x2a9)]&&typeof _0x3f434a[_0x6d20c6(0x2a9)]===_0x6d20c6(0x150))_0x35c9a9[_0x6d20c6(0x2a9)]=_0x3f434a[_0x6d20c6(0x2a9)];if(_0x3f434a['behavior']&&typeof _0x3f434a[_0x6d20c6(0x22a)]===_0x6d20c6(0x150))_0x35c9a9[_0x6d20c6(0x22a)]=_0x3f434a['behavior'];if(_0x3f434a['enriched'])_0x35c9a9['enriched']=!![];if(_0x3f434a[_0x6d20c6(0x210)])_0x35c9a9['interval']=_0x3f434a[_0x6d20c6(0x210)];let _0x407c0b;try{_0x407c0b=await _0x31a470[_0x6d20c6(0x159)]['previewParentYaml'](_0x4b4791,_0x35c9a9),_0x231ed3[_0x6d20c6(0x154)]();}catch(_0x23821e){_0x231ed3[_0x6d20c6(0x154)]();throw _0x23821e;}return await this[_0x6d20c6(0x223)](_0x407c0b,{'master':_0x3f434a['master'],'attribute':typeof _0x3f434a[_0x6d20c6(0x2a9)]===_0x6d20c6(0x150)?_0x3f434a[_0x6d20c6(0x2a9)]:undefined,'behavior':typeof _0x3f434a[_0x6d20c6(0x22a)]==='string'?_0x3f434a[_0x6d20c6(0x22a)]:undefined,'enriched':_0x3f434a['enriched']}),_0x407c0b[_0x6d20c6(0x2cf)]?0x0:0x1;}async[a34_0xe3eda6(0x223)](_0x2be7ef,_0x1ba72a){const _0x192e68=a34_0xe3eda6;console[_0x192e68(0x113)]('\x0a'+a34_0x427111['bold'](_0x192e68(0x1b2))+'\x20'+_0x2be7ef[_0x192e68(0x205)]),console[_0x192e68(0x113)]('═'[_0x192e68(0x2fe)](0x3c));if(_0x1ba72a[_0x192e68(0x2ff)]&&_0x2be7ef[_0x192e68(0x266)]){const _0x4aba6d=a34_0x427111['dim'](_0x192e68(0x20c))+'\x20'+a34_0x427111[_0x192e68(0x260)](_0x2be7ef['master'][_0x192e68(0x2a7)]+'.'+_0x2be7ef[_0x192e68(0x2ff)][_0x192e68(0x152)]);await this[_0x192e68(0x1de)](_0x4aba6d,_0x2be7ef[_0x192e68(0x266)]);}else{if(_0x1ba72a[_0x192e68(0x2a9)]&&_0x2be7ef['sampleData']){const _0x419d25=a34_0x427111['dim'](_0x192e68(0x20b))+'\x20'+a34_0x427111['bold'](_0x1ba72a[_0x192e68(0x2a9)]);await this[_0x192e68(0x1de)](_0x419d25,_0x2be7ef['sampleData']);}else{if(_0x1ba72a[_0x192e68(0x22a)]&&_0x2be7ef[_0x192e68(0x266)]){const _0x2156cb=a34_0x427111[_0x192e68(0x18c)]('Behavior:')+'\x20'+a34_0x427111[_0x192e68(0x260)](_0x1ba72a[_0x192e68(0x22a)]);await this[_0x192e68(0x1de)](_0x2156cb,_0x2be7ef[_0x192e68(0x266)]);}else{if(_0x1ba72a[_0x192e68(0x2c7)]&&_0x2be7ef[_0x192e68(0x266)]){const _0x4325ba=a34_0x427111['dim'](_0x192e68(0x211))+'\x20'+a34_0x427111[_0x192e68(0x260)]('Master\x20+\x20Attributes');await this[_0x192e68(0x1de)](_0x4325ba,_0x2be7ef[_0x192e68(0x266)]);}else!_0x2be7ef[_0x192e68(0x266)]&&console[_0x192e68(0x113)]('\x0aNo\x20sample\x20data\x20available');}}}if(_0x2be7ef[_0x192e68(0x2ca)]['length']>0x0){console[_0x192e68(0x113)]('─'[_0x192e68(0x2fe)](0x3c)),console['error']('\x0a'+a34_0x427111[_0x192e68(0x129)](_0x192e68(0x2b0)));for(const _0x162397 of _0x2be7ef[_0x192e68(0x2ca)]){console[_0x192e68(0x113)]('\x20\x20'+a34_0x427111['red']('•')+'\x20'+_0x162397);}}}async[a34_0xe3eda6(0x1de)](_0x54b753,_0x1a1bca){const _0x3a7ca8=a34_0xe3eda6;if(_0x1a1bca[_0x3a7ca8(0x13f)]===0x0){console['error']('\x0a'+_0x54b753),console['error'](_0x3a7ca8(0x28a));return;}console[_0x3a7ca8(0x113)]('\x0a'+_0x54b753);const _0xe76c7a=Object[_0x3a7ca8(0x200)](_0x1a1bca[0x0])[_0x3a7ca8(0x269)](_0x5539ac=>({'name':_0x5539ac,'type':typeof _0x1a1bca[0x0][_0x5539ac]===_0x3a7ca8(0x19b)?_0x3a7ca8(0x185):_0x3a7ca8(0x212)})),_0x3ddf53={'queryId':'preview','columns':_0xe76c7a,'data':_0x1a1bca,'stats':{'state':_0x3a7ca8(0x29e),'queued':![],'scheduled':![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x1a1bca['length'],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}},_0x2509b4=formatAsTable(_0x3ddf53,_0x1a1bca[_0x3a7ca8(0x13f)],!![]);await writeOutput(_0x2509b4,undefined,_0x3a7ca8(0x152));}}export class ParentSegmentRunCommand extends BaseParentSegmentCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x10c);[a34_0xe3eda6(0x16d)]='Run\x20parent\x20segment\x20workflow\x20(pushes\x20YAML\x20if\x20exists)';async[a34_0xe3eda6(0x116)](_0x3b3dd5){const _0x4364e4=a34_0xe3eda6,{options:_0x21185e,args:_0x547427,tdx:_0x5d1d7d}=_0x3b3dd5,_0x5db585=_0x21185e,_0x4176fa=_0x547427[0x0]||_0x21185e[_0x4364e4(0x119)];if(!_0x4176fa)return showParentSegmentNotSetError(_0x4364e4(0x1a8)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20run\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20specific\x20parent\x20segment'),0x1;const _0x45c3bb=resolveYamlFile(_0x4176fa);if(existsSync(_0x45c3bb)){_0x5db585[_0x4364e4(0x235)]&&console[_0x4364e4(0x113)](_0x4364e4(0x274)+_0x45c3bb);let _0x2edad2;try{_0x2edad2=readFileSync(_0x45c3bb,'utf-8');}catch(_0x3641a4){const _0x37bdc9=_0x3641a4 instanceof Error?_0x3641a4[_0x4364e4(0x23b)]:String(_0x3641a4);return console[_0x4364e4(0x113)]('Error\x20reading\x20file:\x20'+_0x37bdc9),0x1;}const _0x5257e8=await withSpinner(_0x4364e4(0x1e9),()=>_0x5d1d7d['segment'][_0x4364e4(0x142)](_0x2edad2),{'verbose':_0x5db585['verbose']}),_0x41f5c3=_0x5257e8['data'],{isNew:_0x4e58e0,name:_0x19573c,hasChanges:_0x3a815a,diffFormatted:_0x258a05}=_0x41f5c3;if(_0x3a815a){_0x4e58e0?console[_0x4364e4(0x113)](_0x4364e4(0x20f)+_0x19573c+'\x27:'):console[_0x4364e4(0x113)]('\x0aChanges\x20to\x20apply\x20to\x20\x27'+_0x19573c+'\x27:');console[_0x4364e4(0x113)]('─'[_0x4364e4(0x2fe)](0x3c)),console[_0x4364e4(0x113)](_0x258a05),console[_0x4364e4(0x113)]('─'[_0x4364e4(0x2fe)](0x3c));const _0x321435=_0x4e58e0?_0x4364e4(0x250)+_0x19573c+_0x4364e4(0x249):_0x4364e4(0x163)+_0x19573c+_0x4364e4(0x249);if(!_0x5db585[_0x4364e4(0x15c)]){if(!isInteractive())return console[_0x4364e4(0x113)](a34_0x427111[_0x4364e4(0x129)](_0x4364e4(0x1cb)),_0x4364e4(0x186)),console[_0x4364e4(0x113)](a34_0x427111[_0x4364e4(0x18c)](_0x4364e4(0x241))),0x1;const _0x5e7434=await confirmKey(_0x321435);if(!_0x5e7434)return console[_0x4364e4(0x113)](a34_0x427111[_0x4364e4(0x1ce)](_0x4364e4(0x104))),0x1;}const _0x49ec71=_0x4e58e0?_0x4364e4(0x2ea):_0x4364e4(0x224);await withSpinner(_0x49ec71+_0x4364e4(0x161)+_0x19573c+_0x4364e4(0x217),()=>_0x41f5c3[_0x4364e4(0x11b)](),{'verbose':_0x5db585['verbose']});const _0x2e27f2=_0x4e58e0?'Created':_0x4364e4(0x306);console['error']('✔\x20'+_0x2e27f2+_0x4364e4(0x161)+_0x19573c+'\x27');}else console[_0x4364e4(0x113)](_0x4364e4(0x10d)+_0x19573c+_0x4364e4(0x1cc));}const _0x12b537=await withSpinner(_0x4364e4(0x18d)+_0x4176fa+_0x4364e4(0x217),()=>_0x5d1d7d[_0x4364e4(0x159)][_0x4364e4(0x30a)](_0x4176fa),{'verbose':_0x5db585['verbose']}),_0x29e682=_0x12b537[_0x4364e4(0x209)],_0x156186=getConsoleUrl(_0x5db585['site'],_0x4364e4(0x1aa)+_0x29e682['workflowId']+'/sessions/'+_0x29e682['workflowSessionId']+_0x4364e4(0x22b)+_0x29e682[_0x4364e4(0x30c)]);return console[_0x4364e4(0x113)](_0x4364e4(0x178)),console[_0x4364e4(0x113)]('\x20\x20'+a34_0x427111[_0x4364e4(0x18c)](_0x4364e4(0x13a))+'\x20'+_0x29e682[_0x4364e4(0x13b)]),console[_0x4364e4(0x113)]('\x20\x20'+a34_0x427111[_0x4364e4(0x18c)](_0x4364e4(0x191))+'\x20'+_0x29e682[_0x4364e4(0x10a)]),console[_0x4364e4(0x113)]('\x20\x20'+a34_0x427111[_0x4364e4(0x18c)]('Session:')+'\x20'+_0x29e682['workflowSessionId']),console[_0x4364e4(0x113)]('\x20\x20'+a34_0x427111[_0x4364e4(0x18c)](_0x4364e4(0x263))+'\x20'+_0x29e682[_0x4364e4(0x30c)]),console['error']('\x20\x20'+_0x156186),console[_0x4364e4(0x113)]('\x0a'+a34_0x427111[_0x4364e4(0x18c)]('To\x20cancel:')+_0x4364e4(0x15d)+_0x29e682[_0x4364e4(0x30c)]+_0x4364e4(0x2e9)),0x0;}}function a34_0x5674(){const _0x42677c=['ps:rt:jn:list','relationships','database','Get\x20current\x20RT\x20configuration\x20version\x20status','attribute','sections:','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pull\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20specific\x20parent\x20segment','schemaValid','sections','allowed\x20IPs:','Usage:\x20tdx\x20parent-segment\x20preview\x20<name>\x20<option>\x0a','Errors:','darwin','Error:\x20Personalization\x20ID\x20is\x20required','Coverage:','keyEventId:','\x20--behavior\x20\x22<name>\x22','null','Error:\x20--description\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','Error:\x20Service\x20name\x20is\x20required','✔\x20Paused\x20activations\x20for\x20RT\x20journey\x20\x27','ignore','Usage:\x20tdx\x20ps\x20pull\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Pull\x20(requires\x20context)\x0a','\x20personalization','type','segment:parent:show','segment:parent:desc','\x0a⚠️\x20\x20Migrating:\x20','List\x20realtime\x20personalizations\x20for\x20a\x20parent\x20segment','\x20\x20Tables:\x201\x20customers\x20+\x20','✔\x20Retrieved\x20RT\x20configuration\x20version','idStitching','Output\x20file:\x20','ps:rt:jn:pause','enriched','Validate\x20parent\x20segment\x20YAML\x20configuration\x20and\x20show\x20statistics','behaviors','errors','localeCompare','parent_segment','List\x20personalization\x20services\x20for\x20a\x20parent\x20segment','Output\x20Database:','allValid','schemaError','No\x20parent\x20segments\x20match\x20pattern:\x20','pullParentYaml','open','displayMasterInfo','Usage:\x20tdx\x20ps\x20pz\x20show\x20<personalization_id>','realtime','RT\x202.0\x20Validate:','26xUIlPh','✔\x20Created\x20parent\x20segment\x20\x27','Error:\x20Token\x20name\x20is\x20required','ps:pz:init','events','\x20--behavior\x20\x22','No\x20RT-enabled\x20parent\x20segments\x20found','Create\x20new\x20parent\x20segment\x20(audience)\x20[DEPRECATED]','jobId','\x20\x20\x20\x20\x20\x20\x20\x20','Error:\x20No\x20attributes\x20defined\x20in\x20configuration','createParent','utf-8','\x20(paused)','Error:\x20Token\x20ID\x20is\x20required','Error:\x20No\x20behaviors\x20defined\x20in\x20configuration','getPersonalization','\x20kill','Creating','toLocaleString','attributes','getParentFull','Creating\x20parent\x20segment\x20\x27','stringify','text','Error:\x20--name\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20\x20#\x20Uses\x20context','Created','✔\x20Created\x20personalization\x20\x27','Parent\x20segment:\x20','No\x20personalization\x20services\x20configured','Attributes:','Error:\x20--database\x20and\x20--table\x20are\x20required','collectSchema','enabled','\x20parent\x20segment','ps:pz:service:token:create','Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]\x0a','repeat','master','ps:pz:service:list','\x0a⚠️\x20\x20Both\x20','displayValidateResults','Usage:\x20tdx\x20segment\x20parent\x20update\x20<name>\x20[options]','personalizationServices','addBehaviors','Updated','foreignKey','using\x20the\x20default\x20path:\x20','Get\x20SQL\x20query\x20for\x20parent\x20segment','runParent','\x20\x20--interval\x20<range>\x20\x20\x20TD_INTERVAL\x20time\x20range\x20for\x20behaviors\x20(default:\x20-1d)','workflowAttemptId','RT\x20Journey\x20ID:\x20','\x0aChanges\x20to\x20\x27','launched','parent_segment\x20is\x20not\x20set.\x20Use\x20`tdx\x20ps\x20use\x20<name>`\x20to\x20set\x20it.\x0a','segment:parent:view','use','Listing\x20parent\x20segments\x20matching\x20\x27','test','Listing\x20parent\x20segments...','✔\x20Deleted\x20personalization\x20service\x20\x27','Personalization:','Aborted.','Listing\x20RT-enabled\x20parent\x20segments\x20matching\x20\x27','displaySummary','value','Usage:\x20tdx\x20ps\x20rt\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20(requires\x20context)\x0a','toLowerCase','status','\x20\x20\x20\x20','segment:parent:run','✔\x20No\x20changes\x20-\x20\x27','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]','Error\x20reading\x20file:\x20','\x20\x20--behavior\x20[name]\x20\x20\x20\x20Show\x20only\x20behaviors\x20(or\x20specific\x20one)\x0a','\x20+\x20[','session','error','all','win32','execute','Listing\x20personalization\x20services\x20for\x20\x27','processedRows','parentSegment','entryCriteria','apply','\x20rows\x20','personalization','Getting\x20personalization\x20\x27','Create\x20a\x20realtime\x20personalization\x20entity','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]','\x27\x20not\x20found\x20in\x20any\x20personalization\x20service','SELECT\x20*\x20FROM\x20','\x20\x20\x20\x20\x20\x20{\x20\x22name\x22:\x20\x22','tdx\x20ps\x20push\x20','Next\x20steps:','⚡\x20Not\x20enabled','\x20[Job\x20ID:\x20','\x22\x20}','red','Usage:\x20tdx\x20ps\x20validate\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20(requires\x20context)\x0a','formatSchemaJson','sourceTableError','columns','Error:\x20\x22relationships.parentFolder\x22\x20is\x20required\x20in\x20the\x20JSON\x20file.','\x0aUsage:\x20tdx\x20ps\x20preview\x20','createToken','jsonl','deleteToken','\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20update`\x20is\x20deprecated.\x0a','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20fields\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20for\x20specific\x20parent\x20segment','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20\x20#\x20Uses\x20context','parent_segments','\x22,\x0a\x20\x20\x22parent_id\x22:\x20\x22','payload','\x20\x20\x20','Audience\x20ID:','audienceId','Validate\x20RT\x202.0\x20configuration\x20from\x20parent\x20segment\x20YAML','Push\x20parent\x20segment\x20configuration\x20from\x20YAML\x20file','Listing\x20RT-enabled\x20parent\x20segments...','length','/\x20directory.\x0a','450348YjQunR','pushParentYaml','ps:pz:service:update','Fetching\x20sample\x20data...','segment:parent:create','Listing\x20personalizations\x20for\x20\x27','endsWith','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context','\x20\x20--enriched\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20enriched\x20master\x20data\x0a','join','segment:parent:validate','(id:\x20','\x27\x20with\x20ID:\x20','\x22,\x20\x22type\x22:\x20\x22','✔\x20Query\x20completed:\x20Processed\x20','string','Pull\x20parent\x20segment\x20configuration\x20to\x20YAML\x20file','table','Behaviors','stop','Pattern:\x20','deletePersonalization','addBehaviorsFile','unref','segment','customerPercent','Database:\x20','yes','\x20tdx\x20wf\x20attempt\x20','getParentSQL','Columns:','token:','\x20parent\x20segment\x20\x27','Error:\x20Service\x20ID\x20is\x20required','Apply\x20changes\x20to\x20\x27','Listing\x20RT\x20journeys\x20for\x20\x27','\x20\x20--behavior\x20<name>\x20\x20\x20\x20Show\x20sample\x20data\x20for\x20specific\x20behavior','list','Fetching\x20current\x20configuration\x20for\x20\x27','List\x20parent\x20segments\x20with\x20RT\x202.0\x20status','\x22,\x0a\x20\x20\x22parent_segment\x22:\x20\x22','getOutputDatabaseName','reduce','\x20Opening\x20','description','Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]\x0a','\x20\x20\x20\x20\x20\x20','audienceId:','Error:\x20File\x20not\x20found:\x20','Usage:\x20tdx\x20ps\x20rt\x20jn\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20(requires\x20context)\x0a','rowCount','\x20rows)','tokens','Error:\x20-u\x20(--use)\x20and\x20-o\x20(--output)\x20cannot\x20be\x20used\x20together\x0a','segment:parent:update','\x0a✔\x20Workflow\x20started','\x0a\x20\x20]\x0a}\x0a','updated:','Usage:\x20tdx\x20ps\x20pz\x20create\x20--name\x20<name>\x20--description\x20<desc>\x20--folder-id\x20<id>\x20[options]','log','/app/dw/parentSegments/','Finding\x20service\x20for\x20token...','Error:','\x0aChanges\x20to\x20apply\x20to\x20\x27','\x20service','xdg-open','684960aQXtUp','allowedIps','double','Confirmation\x20required\x20but\x20running\x20in\x20non-interactive\x20mode','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20create\x20--file\x20<path>','Show\x20a\x20specific\x20realtime\x20personalization','\x20\x20\x20\x20-\x20','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20view\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20View\x20specific\x20parent\x20segment\x0a\x0a','\x20\x20-w,\x20--web\x20\x20Open\x20parent\x20segment\x20in\x20web\x20browser','dim','Running\x20parent\x20segment\x20workflow\x20for\x20\x27','5JPPFWa','Getting\x20RT\x20configuration\x20version\x20for\x20\x27','timezone','Status:','⚡\x20Enabled','Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID,\x20then\x20add:','displayColumns','replace','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20init\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20for\x20specific\x20parent\x20segment','scheduleOption','\x20\x20\x20\x20{\x0a\x20\x20\x20\x20\x20\x20\x22table\x22:\x20\x22','displayAttributesStats','Delete\x20a\x20token\x20from\x20a\x20personalization\x20service','number','tdx\x20ps\x20preview\x20','format','7aBeKYA','Error:\x20--behavior\x20requires\x20a\x20name\x0a','segment:parent:pull','Validating\x20configuration...','segment:parent:preview','\x22,\x0a\x20\x20\x20\x20\x22columns\x22:\x20','push','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20specific\x20parent\x20segment\x0a\x0a','ps:rt:configuration_versions','Fetching\x20customers\x20schema...','Usage:\x20tdx\x20ps\x20run\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Run\x20(requires\x20context)\x0a','Error:\x20--name\x20is\x20required','/app/workflows/','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20sql\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20for\x20specific\x20parent\x20segment','attributesFile','Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs','✔\x20Updated\x20personalization\x20\x27','ps:pz:service:token:delete','listParents','Listing\x20fields\x20for\x20\x27','Preview:','getBehaviorNames','ps:rt:validate','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]','Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]','some','Creating\x20token\x20\x27','Usage:\x20tdx\x20ps\x20rt\x20jn\x20resume_activations\x20<journeyId>\x0a','.yaml','matchedCount','behavior_','personalization_services','\x20--attribute\x20\x22','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20for\x20specific\x20parent\x20segment','realtime_enabled','\x20configured','Deleting\x20personalization\x20service\x20\x27','includeSensitive','file','To\x20view\x20sample\x20data:','\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data','displayRealtimeInfo','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20show\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20for\x20specific\x20parent\x20segment','Error:\x20RT\x20journey\x20ID\x20is\x20required\x0a','.yml','\x0aError:','\x27\x20is\x20up\x20to\x20date','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20--name\x20<name>\x20\x20#\x20Uses\x20context','yellow','folderId','Deleting\x20token\x20\x27','`\x20to\x20download\x20the\x20configuration\x20first','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20desc\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20for\x20parent\x20segment\x0a\x0a','/{name}.yml\x0a','\x20total','\x0a)\x20AS\x20segment_query\x0aLIMIT\x20','start','✔\x20Created\x20token\x20\x27','customerGroup','paused','no\x20tokens\x20configured','ps:rt:jn:resume','Creating\x20personalization\x20service\x20\x27','Create\x20a\x20personalization\x20service\x20for\x20a\x20parent\x20segment','displaySampleData','\x20true','status:\x20','keyEventCriteria','ps:pz:service:delete','displayPreviewHints','\x20--enriched','2071008wbeKMb','last_page_viewed','updateParent','\x22,\x0a\x20\x20\x22customers\x22:\x20{\x0a\x20\x20\x20\x20\x22table\x22:\x20\x22','Analyzing\x20changes...','\x20Added\x20RT\x202.0\x20template\x20section','identifier','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20for\x20specific\x20parent\x20segment','web','/\x20→\x20','eventKind','single','Patching\x20personalization\x20\x27','identifier:\x20','Schema\x20saved\x20to\x20','\x27\x20is\x20already\x20up\x20to\x20date','created:','Delete\x20a\x20realtime\x20personalization','Site:\x20','eventKind:\x20','create','addAttributes','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20validate\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Validate\x20RT\x20config\x20for\x20specific\x20parent\x20segment','Execute\x20parent\x20segment\x20SQL\x20query\x20and\x20show\x20results','elapsedTimeMillis','\x20\x20--attribute\x20[name]\x20\x20\x20Show\x20only\x20attributes\x20(or\x20specific\x20one)\x0a','stageCount','keys','split','stitchingKeys','displayBehaviorsStats','Customers:','name','public:','Options:\x0a','Error:\x20Parent\x20segment\x20name\x20is\x20required','data','coveragePercent','Attribute:','Master:','page_view','Tip:\x20Run\x20`tdx\x20ps\x20pull\x20-u\x20','\x0aNew\x20parent\x20segment\x20\x27','interval','Enriched:','varchar','\x22,\x0a\x20\x20\x20\x20\x20\x20\x22columns\x22:\x20','updatedAt','{\x0a\x20\x20\x22database\x22:\x20\x22','Fetching\x20SQL\x20for\x20\x27','\x27...','\x20\x20Columns:\x20','customers','customersWithEvents','Join\x20on:','filter','Validate:','✔\x20Found\x20','\x0a⚠️\x20\x20DEPRECATED:\x20`tdx\x20segment\x20parent\x20create`\x20is\x20deprecated.\x0a','✔\x20Updated\x20personalization\x20service\x20\x27','scheduleType','✔\x20Resumed\x20activations\x20for\x20RT\x20journey\x20\x27','displayPreviewResults','Updating','segment:parent:push','Default','308616yNNfbr','\x20--interval\x20','Delete\x20a\x20personalization\x20service','behavior','/attempt/','toFixed','any','\x20\x20\x20See:\x20tdx\x20segment\x20parent\x20pull\x20--help\x0a','joinKey','Usage:\x20tdx\x20ps\x20pz\x20init\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Add\x20PZ\x20template\x20(requires\x20context)\x0a','Available\x20behaviors:','Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]\x0a','Validating\x20RT\x20configuration...','parent_id','verbose','Events:','Overwrite\x20\x27','✔\x20Deleted\x20personalization\x20\x27','Update\x20existing\x20parent\x20segment\x20(audience)\x20[DEPRECATED]','\x27\x20for\x20service\x20\x27','message','td_client_id','%)\x20','population','cyan','run','Use\x20-y\x20or\x20--yes\x20flag\x20to\x20apply\x20changes\x20without\x20confirmation','column_type','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20configuration_versions\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20for\x20specific\x20parent\x20segment','segment:parent:sql','behaviorsFile','Fetching\x20behavior\x20list...','delete','\x20stage','\x27\x20and\x20run\x20workflow?','Available\x20attributes:','Show\x20parent\x20segment\x20details','public','Update\x20a\x20realtime\x20personalization\x20entity','Pause\x20activations\x20in\x20an\x20RT\x20journey','listJourneys','Create\x20parent\x20segment\x20\x27','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context','\x20\x202.\x20Run\x20','\x20Saved\x20parent\x20segment\x20configuration\x20to\x20','segment:parent:fields','Resolving\x20parent\x20segment\x20\x27','payload:','get','Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]\x0a','Fetching\x20parent\x20segment\x20\x27','\x20behaviors','\x20--attribute\x20\x22<name>\x22','ps:pz:list','Add\x20template\x20personalization\x20section\x20to\x20parent\x20segment\x20YAML','customerGroupFile','Options\x20(one\x20required):\x0a','bold','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20\x20#\x20Uses\x20context','No\x20RT\x20journeys\x20found','Attempt:','.customers)','Usage:\x20tdx\x20ps\x20pz\x20delete\x20<personalization_id>','sampleData','resolveParentId','Preview\x20sample\x20data\x20from\x20parent\x20segment\x20YAML\x20configuration','map','\x20\x20Database:\x20','Join:','Creating\x20personalization\x20\x27','trim','\x20\x20--master\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Show\x20sample\x20master\x20table\x20data\x0a','\x20\x20Schema\x20not\x20available\x20(workflow\x20may\x20not\x20have\x20run\x20yet)','Error:\x20--folder-id\x20is\x20required.\x20Use\x20`tdx\x20ps\x20folder\x20list\x20<name>`\x20to\x20find\x20the\x20folder\x20ID.','\x20Configuration\x20is\x20valid','user_id','json','Found\x20YAML\x20file:\x20','Tip:\x20Use\x20-u\x20without\x20-o,\x20or\x20-o\x20without\x20-u','green','\x20behavior\x20tables\x20not\x20yet\x20generated\x20(workflow\x20may\x20not\x20have\x20run)','column_name','Usage:\x20tdx\x20ps\x20rt\x20configuration_versions\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Get\x20RT\x20config\x20version\x20(requires\x20context)\x0a','Source:','sourceTableValid','output','\x20=\x20','true','Rows:','62904AbDvOG','/\x20and\x20','Usage:\x20tdx\x20ps\x20fields\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20fields\x20(requires\x20context)\x0a','valid','id:\x20','label','folder-segment','2995770bIfqqj','<database>.<table>','validateParentYaml','\x20\x20No\x20sample\x20data\x20available','List\x20available\x20fields\x20for\x20segmentation','column','✔\x20Deleted\x20token\x20\x27','\x20\x20\x20Please\x20manually\x20merge\x20or\x20remove\x20','site','List\x20parent\x20segments','SELECT\x20*\x20FROM\x20(\x0a','Pausing\x20activations\x20for\x20RT\x20journey\x20\x27','state','totalEvents','Error:\x20Token\x20\x27','match','\x5c$&','\x20Added\x20personalization\x20template\x20to\x20','sort','ps:pz:service:show','Usage:\x20tdx\x20segment\x20parent\x20create\x20<name>\x20--database\x20<db>\x20--table\x20<table>','\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20rt\x20jn\x20list\x20<name>\x20\x20\x20\x20\x20\x20\x20#\x20List\x20RT\x20journeys\x20for\x20specific\x20parent\x20segment','\x20is\x20already\x20up\x20to\x20date','FINISHED','YAML\x20file:\x20','Usage:\x20tdx\x20ps\x20pz\x20service\x20create\x20<name>\x20[parent_segment]\x0a','parentFolder','keyEventId','31490VMskbJ','Usage:\x20tdx\x20ps\x20push\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Push\x20(requires\x20context)\x0a'];a34_0x5674=function(){return _0x42677c;};return a34_0x5674();}export class ParentSegmentFieldsCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x254);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x28b);async[a34_0xe3eda6(0x116)](_0x33e20e){const _0x319b61=a34_0xe3eda6,{options:_0x3d81d6,args:_0x3644e8,tdx:_0x5617ce}=_0x33e20e,_0x2e46ee=_0x3644e8[0x0]||_0x3d81d6[_0x319b61(0x119)];if(!_0x2e46ee)return showParentSegmentNotSetError(_0x319b61(0x282)+_0x319b61(0x134)),0x1;_0x3d81d6['verbose']&&(console['error'](_0x319b61(0x1f7)+_0x3d81d6[_0x319b61(0x28f)]),console[_0x319b61(0x113)](_0x319b61(0x2f5)+_0x2e46ee));const _0x4a354c=await withSpinner(_0x319b61(0x1b1)+_0x2e46ee+_0x319b61(0x217),()=>_0x5617ce[_0x319b61(0x159)]['listFields'](_0x2e46ee),{'verbose':_0x3d81d6[_0x319b61(0x235)]}),_0x1e544d=_0x4a354c[_0x319b61(0x209)];console[_0x319b61(0x113)](_0x319b61(0x21e)+_0x1e544d[_0x319b61(0x13f)]+'\x20field'+(_0x1e544d[_0x319b61(0x13f)]!==0x1?'s':''));if(_0x3d81d6[_0x319b61(0x273)]||_0x3d81d6[_0x319b61(0x131)])return await handleSDKOutput(_0x1e544d,_0x3d81d6),0x0;return displayFieldsHumanReadable(_0x1e544d,_0x2e46ee),0x0;}}export class ParentSegmentViewCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0xfd);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x24b);async['execute'](_0x4cf8e6){const _0x2cfaa4=a34_0xe3eda6,{options:_0xe886d5,args:_0x1d9f73,tdx:_0x36ea36}=_0x4cf8e6,_0x4159d3=_0xe886d5,_0x470083=_0x1d9f73[0x0]||_0xe886d5[_0x2cfaa4(0x119)];if(!_0x470083)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20view\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20View\x20(requires\x20context)\x0a'+_0x2cfaa4(0x18a)+_0x2cfaa4(0x207)+_0x2cfaa4(0x18b)),0x1;_0xe886d5[_0x2cfaa4(0x235)]&&(console['error'](_0x2cfaa4(0x1f7)+_0xe886d5[_0x2cfaa4(0x28f)]),console[_0x2cfaa4(0x113)](_0x2cfaa4(0x2f5)+_0x470083));const _0x3cb1d5=await withSpinner(_0x2cfaa4(0x259)+_0x470083+_0x2cfaa4(0x217),()=>_0x36ea36[_0x2cfaa4(0x159)][_0x2cfaa4(0x2ed)](_0x470083),{'verbose':_0xe886d5[_0x2cfaa4(0x235)]}),_0x580456=_0x3cb1d5[_0x2cfaa4(0x209)];if(_0x4159d3[_0x2cfaa4(0x1ed)]){const _0x3995bb=getConsoleNextUrl(_0x4159d3['site'],'/app/dw/parentSegments/'+_0x580456['id']);return console[_0x2cfaa4(0x113)](a34_0x427111[_0x2cfaa4(0x276)]('✔')+_0x2cfaa4(0x16c)+a34_0x427111['cyan'](_0x3995bb)),openBrowser(_0x3995bb),0x0;}return await handleSingleObjectOutput(_0x580456,_0xe886d5),0x0;}}export class ParentSegmentDescCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x2bf);[a34_0xe3eda6(0x16d)]='Show\x20parent\x20segment\x20schema\x20(column\x20types)';async[a34_0xe3eda6(0x116)](_0x5743d5){const _0x1606e8=a34_0xe3eda6,{options:_0x493378,args:_0x40ee45,tdx:_0x1d611a}=_0x5743d5,_0x67e97a=_0x493378,_0x27fe0b=_0x40ee45[0x0]||_0x493378['parentSegment'];if(!_0x27fe0b)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20desc\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Describe\x20all\x20tables\x20(requires\x20context)\x0a'+_0x1606e8(0x1d2)+_0x1606e8(0x207)+'\x20\x20-o,\x20--output\x20<file>\x20\x20Output\x20file\x20path'),0x1;_0x493378[_0x1606e8(0x235)]&&(console[_0x1606e8(0x113)]('Site:\x20'+_0x493378[_0x1606e8(0x28f)]),console[_0x1606e8(0x113)]('Parent\x20segment:\x20'+_0x27fe0b));const _0x54bda6=await withSpinner(_0x1606e8(0x255)+_0x27fe0b+_0x1606e8(0x217),()=>_0x1d611a[_0x1606e8(0x159)][_0x1606e8(0x267)](_0x27fe0b),{'verbose':_0x493378[_0x1606e8(0x235)]}),_0x1721e8=_0x54bda6[_0x1606e8(0x209)],_0x5e4522=_0x1d611a[_0x1606e8(0x159)][_0x1606e8(0x16a)](_0x1721e8);if(_0x67e97a[_0x1606e8(0x27c)]){const _0x3d655d=await this[_0x1606e8(0x2f9)](_0x5743d5,_0x27fe0b,_0x1721e8,_0x5e4522),_0x2da307=this[_0x1606e8(0x12b)](_0x3d655d);writeFileSync(_0x67e97a[_0x1606e8(0x27c)],_0x2da307);const _0x5b38b5=_0x3d655d[_0x1606e8(0x219)]['columns'][_0x1606e8(0x13f)]+_0x3d655d[_0x1606e8(0x2c9)][_0x1606e8(0x16b)]((_0x1e9063,_0x1b05cd)=>_0x1e9063+_0x1b05cd[_0x1606e8(0x12d)][_0x1606e8(0x13f)],0x0),_0x16f2bb=_0x3d655d[_0x1606e8(0x2c9)][_0x1606e8(0x21c)](_0x4bab45=>_0x4bab45[_0x1606e8(0x12d)]['length']===0x0)['length'];return console['log'](_0x1606e8(0x1f3)+_0x67e97a['output']),console[_0x1606e8(0x17c)](_0x1606e8(0x26a)+_0x5e4522),console[_0x1606e8(0x17c)](_0x1606e8(0x2c2)+_0x3d655d['behaviors']['length']+_0x1606e8(0x25a)),console[_0x1606e8(0x17c)](_0x1606e8(0x218)+_0x5b38b5+_0x1606e8(0x1d4)),_0x16f2bb>0x0&&console[_0x1606e8(0x17c)]('\x20\x20Note:\x20'+_0x16f2bb+_0x1606e8(0x277)),0x0;}console[_0x1606e8(0x113)]('\x0a'+a34_0x427111[_0x1606e8(0x260)](_0x1606e8(0x2ce))+'\x20'+a34_0x427111[_0x1606e8(0x23f)](_0x5e4522));const _0x3e5c58=await withSpinner(_0x1606e8(0x1a7),()=>_0x1d611a[_0x1606e8(0x159)][_0x1606e8(0x15e)](_0x1721e8),{'verbose':_0x493378[_0x1606e8(0x235)]});console['error']('\x0a'+a34_0x427111[_0x1606e8(0x260)](_0x1606e8(0x219))+'\x20'+a34_0x427111['dim']('('+_0x5e4522+_0x1606e8(0x264)));const _0x1f1fc1=await executeSchemaQuery(_0x3e5c58[_0x1606e8(0x209)],_0x1d611a,_0x493378);await handleQueryOutput(_0x1f1fc1,_0x493378);const _0x41ca42=await withSpinner(_0x1606e8(0x246),()=>_0x1d611a['segment'][_0x1606e8(0x1b3)](_0x1721e8),{'verbose':_0x493378[_0x1606e8(0x235)]});for(const _0x1df34b of _0x41ca42[_0x1606e8(0x209)]){const _0x1974c0='behavior_'+_0x1df34b[_0x1606e8(0x109)]()[_0x1606e8(0x195)](/\s+/g,'_'),_0x13457b=_0x1606e8(0x122)+_0x5e4522+'.'+_0x1974c0;console[_0x1606e8(0x113)]('\x0a'+a34_0x427111['bold'](_0x1df34b)+'\x20'+a34_0x427111[_0x1606e8(0x18c)]('('+_0x5e4522+'.'+_0x1974c0+')'));try{const _0x5aab2b=await executeSchemaQuery(_0x13457b,_0x1d611a,_0x493378);await handleQueryOutput(_0x5aab2b,_0x493378);}catch{console['error'](a34_0x427111[_0x1606e8(0x1ce)](_0x1606e8(0x26f)));}}return 0x0;}async[a34_0xe3eda6(0x2f9)](_0x554494,_0x44de02,_0x4cdcba,_0x59b41d){const _0x16acb9=a34_0xe3eda6,{options:_0x1a26cd,tdx:_0x2ca079}=_0x554494,_0x1ba682=await withSpinner(_0x16acb9(0x1a7),()=>_0x2ca079['segment'][_0x16acb9(0x15e)](_0x4cdcba),{'verbose':_0x1a26cd['verbose']}),_0x4cf711=await executeSchemaQuery(_0x1ba682[_0x16acb9(0x209)],_0x2ca079,_0x1a26cd),_0x361bd2=_0x4cf711[_0x16acb9(0x209)][_0x16acb9(0x269)](_0x4392c6=>({'name':_0x4392c6['column_name'],'type':_0x4392c6[_0x16acb9(0x242)]})),_0x390434=await withSpinner(_0x16acb9(0x246),()=>_0x2ca079[_0x16acb9(0x159)]['getBehaviorNames'](_0x4cdcba),{'verbose':_0x1a26cd[_0x16acb9(0x235)]}),_0x415093=[];for(const _0x4a75b1 of _0x390434[_0x16acb9(0x209)]){const _0x1e62bb=_0x16acb9(0x1bc)+_0x4a75b1[_0x16acb9(0x109)]()['replace'](/\s+/g,'_'),_0x424478=_0x16acb9(0x122)+_0x59b41d+'.'+_0x1e62bb;let _0x2fab86=[];try{const _0x561074=await executeSchemaQuery(_0x424478,_0x2ca079,_0x1a26cd);_0x2fab86=_0x561074[_0x16acb9(0x209)][_0x16acb9(0x269)](_0x72f392=>({'name':_0x72f392[_0x16acb9(0x278)],'type':_0x72f392['column_type']}));}catch{}_0x415093[_0x16acb9(0x1a4)]({'table':_0x1e62bb,'columns':_0x2fab86});}return{'database':_0x59b41d,'parent_segment':_0x44de02,'parent_id':_0x4cdcba,'customers':{'table':_0x16acb9(0x219),'columns':_0x361bd2},'behaviors':_0x415093};}['formatSchemaJson'](_0xcaa501){const _0x5b4064=a34_0xe3eda6,_0x12ee54=_0x44a0b3=>{const _0x34d400=a34_0xff01;if(_0x44a0b3['length']===0x0)return'[]';const _0x45f148=_0x44a0b3[_0x34d400(0x269)](_0x17e589=>_0x34d400(0x123)+_0x17e589[_0x34d400(0x205)]+_0x34d400(0x14e)+_0x17e589['type']+_0x34d400(0x128));return'[\x0a'+_0x45f148[_0x34d400(0x14a)](',\x0a')+'\x0a\x20\x20\x20\x20]';},_0x1c8b2e=_0xcaa501['behaviors'][_0x5b4064(0x269)](_0x4da69f=>{const _0x5eeb9a=_0x5b4064;return _0x5eeb9a(0x198)+_0x4da69f['table']+_0x5eeb9a(0x213)+_0x12ee54(_0x4da69f[_0x5eeb9a(0x12d)])['replace'](/^/gm,'\x20\x20')['trim']()+'\x0a\x20\x20\x20\x20}';})[_0x5b4064(0x14a)](',\x0a');return _0x5b4064(0x215)+_0xcaa501[_0x5b4064(0x2a7)]+_0x5b4064(0x169)+_0xcaa501['parent_segment']+_0x5b4064(0x137)+_0xcaa501[_0x5b4064(0x234)]+_0x5b4064(0x1e8)+_0xcaa501[_0x5b4064(0x219)][_0x5b4064(0x152)]+_0x5b4064(0x1a3)+_0x12ee54(_0xcaa501['customers'][_0x5b4064(0x12d)])['replace'](/^/gm,'\x20\x20')[_0x5b4064(0x26d)]()+'\x0a\x20\x20},\x0a\x20\x20\x22behaviors\x22:\x20[\x0a'+_0x1c8b2e+_0x5b4064(0x179);}}export class ParentSegmentSQLCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x244);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x309);async[a34_0xe3eda6(0x116)](_0x135ad7){const _0x106002=a34_0xe3eda6,{options:_0x23d8a4,args:_0x98a0fb,tdx:_0x5541c7}=_0x135ad7,_0x1f3491=_0x98a0fb[0x0]||_0x23d8a4[_0x106002(0x119)];if(!_0x1f3491)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20sql\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20SQL\x20(requires\x20context)\x0a'+_0x106002(0x1ab)),0x1;_0x23d8a4['verbose']&&(console['error'](_0x106002(0x1f7)+_0x23d8a4[_0x106002(0x28f)]),console[_0x106002(0x113)]('Parent\x20segment:\x20'+_0x1f3491));const _0x3811c9=await withSpinner(_0x106002(0x255)+_0x1f3491+_0x106002(0x217),()=>_0x5541c7['segment'][_0x106002(0x267)](_0x1f3491),{'verbose':_0x23d8a4[_0x106002(0x235)]}),_0x392f24=_0x3811c9[_0x106002(0x209)],_0x416526=await withSpinner(_0x106002(0x216)+_0x1f3491+_0x106002(0x217),()=>_0x5541c7[_0x106002(0x159)]['getParentSQL'](_0x392f24),{'verbose':_0x23d8a4[_0x106002(0x235)]}),_0x32327e=_0x416526['data'];return _0x23d8a4[_0x106002(0x19d)]===_0x106002(0x273)||_0x23d8a4[_0x106002(0x19d)]===_0x106002(0x131)?await handleSDKOutput([{'sql':_0x32327e}],_0x23d8a4):console[_0x106002(0x17c)](_0x32327e),0x0;}}export class ParentSegmentShowCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x2be);['description']=a34_0xe3eda6(0x1fc);async[a34_0xe3eda6(0x116)](_0xcd93d3){const _0x1b0a9e=a34_0xe3eda6,{options:_0xa15367,args:_0x9089e2,tdx:_0x1136c7}=_0xcd93d3,_0x255126=_0x9089e2[0x0]||_0xa15367['parentSegment'];if(!_0x255126)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20show\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20Show\x20config\x20(requires\x20context)\x0a'+_0x1b0a9e(0x1c8)),0x1;_0xa15367[_0x1b0a9e(0x235)]&&(console[_0x1b0a9e(0x113)](_0x1b0a9e(0x1f7)+_0xa15367['site']),console[_0x1b0a9e(0x113)](_0x1b0a9e(0x2f5)+_0x255126));const _0x4be923=await withSpinner(_0x1b0a9e(0x255)+_0x255126+_0x1b0a9e(0x217),()=>_0x1136c7[_0x1b0a9e(0x159)]['resolveParentId'](_0x255126),{'verbose':_0xa15367[_0x1b0a9e(0x235)]}),_0x42a416=_0x4be923[_0x1b0a9e(0x209)],_0x3f9947=await withSpinner('Fetching\x20SQL\x20for\x20\x27'+_0x255126+_0x1b0a9e(0x217),()=>_0x1136c7[_0x1b0a9e(0x159)]['getParentSQL'](_0x42a416),{'verbose':_0xa15367[_0x1b0a9e(0x235)]});let _0x1faab0=_0x3f9947[_0x1b0a9e(0x209)];const _0x49b58b=resolveLimit(_0xa15367['limit'],DEFAULT_DISPLAY_LIMIT),_0x3ccb4d=/\bLIMIT\s+\d+/i['test'](_0x1faab0);!_0x3ccb4d&&(_0x1faab0=_0x1faab0['trim']()[_0x1b0a9e(0x195)](/;+$/,''),_0x1faab0=_0x1b0a9e(0x291)+_0x1faab0+_0x1b0a9e(0x1d5)+_0x49b58b);_0xa15367['verbose']&&console['error']('SQL\x20query:\x0a'+_0x1faab0);const _0x250087=await withProgressSpinner('Executing\x20parent\x20segment\x20query...',async _0x44f35a=>{const _0x3f5ff1=_0x1b0a9e,_0x44fff6=await _0x1136c7['query'][_0x3f5ff1(0x116)](_0x1faab0,{'catalog':'td','schema':'information_schema','onJobId':_0x2d6f4d=>{_0x44f35a['setJobId'](_0x2d6f4d);}});return _0x44fff6;},{'verbose':_0xa15367[_0x1b0a9e(0x235)]}),_0xf416bf=_0x250087[_0x1b0a9e(0x209)],_0x1bc1f9=_0xf416bf[_0x1b0a9e(0x2e0)]?_0x1b0a9e(0x127)+_0xf416bf['jobId']+']':'';return console['error'](_0x1b0a9e(0x14f)+_0xf416bf['stats'][_0x1b0a9e(0x118)][_0x1b0a9e(0x2eb)]()+_0x1b0a9e(0x11c)+('in\x20'+formatElapsed(_0xf416bf['stats'][_0x1b0a9e(0x1fd)])+_0x1bc1f9)),await handleQueryOutput(_0xf416bf,_0xa15367),0x0;}}export class PSRtListCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='ps:rt:list';[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x168);async[a34_0xe3eda6(0x116)](_0x372896){const _0xd403fa=a34_0xe3eda6,{options:_0x1bbb5a,args:_0x152af1,tdx:_0x4fd7ef}=_0x372896,_0xad390f=_0x152af1[0x0],_0x2fbb92=await withSpinner(_0xad390f?_0xd403fa(0x105)+_0xad390f+_0xd403fa(0x217):_0xd403fa(0x13e),()=>_0x4fd7ef[_0xd403fa(0x2d6)][_0xd403fa(0x166)](),{'verbose':_0x1bbb5a[_0xd403fa(0x235)]});let _0xca9077=_0x2fbb92[_0xd403fa(0x209)]['filter'](_0x4a849f=>_0x4a849f[_0xd403fa(0x1c0)]);if(_0xad390f){const _0x3e954c=_0xad390f[_0xd403fa(0x195)](/[.+^${}()|[\]\\]/g,_0xd403fa(0x297))[_0xd403fa(0x195)](/\*/g,'.*')[_0xd403fa(0x195)](/\?/g,'.'),_0xad3285=new RegExp('^'+_0x3e954c+'$','i');_0xca9077=_0xca9077[_0xd403fa(0x21c)](_0x2d7c33=>_0xad3285[_0xd403fa(0x100)](_0x2d7c33[_0xd403fa(0x205)]));}_0xca9077[_0xd403fa(0x299)]((_0x23607e,_0x778d4d)=>_0x23607e[_0xd403fa(0x205)][_0xd403fa(0x2cb)](_0x778d4d[_0xd403fa(0x205)])),console[_0xd403fa(0x113)](_0xd403fa(0x21e)+_0xca9077[_0xd403fa(0x13f)]+'\x20RT-enabled\x20parent\x20segment'+(_0xca9077[_0xd403fa(0x13f)]!==0x1?'s':''));const _0x3cd487=_0x422ef3=>{const _0xa7750c=_0xd403fa;return getConsoleNextUrl(_0x1bbb5a[_0xa7750c(0x28f)],_0xa7750c(0x17d)+_0x422ef3);};if(_0x1bbb5a['format']==='json'||_0x1bbb5a[_0xd403fa(0x19d)]==='jsonl'){const _0x1f1438=_0xca9077[_0xd403fa(0x269)](_0x375853=>({..._0x375853,'url':_0x3cd487(_0x375853['id'])}));await handleSDKOutput(_0x1f1438,_0x1bbb5a);}else{if(_0xca9077['length']===0x0)console[_0xd403fa(0x17c)](_0xd403fa(0x2de));else for(const _0x475e03 of _0xca9077){const _0x4b873d=_0x475e03[_0xd403fa(0x23e)]?a34_0x427111['dim']('\x20('+formatRows(_0x475e03[_0xd403fa(0x23e)])+')'):'',_0x6b8528=hyperlink(_0x475e03[_0xd403fa(0x205)],_0x3cd487(_0x475e03['id']));console['log']('⚡\x20'+_0x6b8528+_0x4b873d);}}return 0x0;}}export class PSRtValidateCommand extends BaseParentSegmentCommand{['name']=a34_0xe3eda6(0x1b4);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x13c);async[a34_0xe3eda6(0x116)](_0x20880){const _0x393d90=a34_0xe3eda6,{options:_0x523c40,args:_0x1302f0,tdx:_0x3f193f}=_0x20880,_0x8c87c8=_0x1302f0[0x0]||_0x523c40[_0x393d90(0x119)];if(!_0x8c87c8)return showParentSegmentNotSetError(_0x393d90(0x108)+_0x393d90(0x1fb)),0x1;const _0x53ffb5=resolveYamlFile(_0x8c87c8);if(!existsSync(_0x53ffb5))return showFileNotFoundError(_0x53ffb5,_0x8c87c8),0x1;let _0x29265f;try{_0x29265f=readFileSync(_0x53ffb5,'utf-8');}catch(_0x144a54){const _0x5425ea=_0x144a54 instanceof Error?_0x144a54[_0x393d90(0x23b)]:String(_0x144a54);return console[_0x393d90(0x113)](_0x393d90(0x10f)+_0x5425ea),0x1;}const _0x52e1e9=createCommandSpinner(a34_0x427111[_0x393d90(0x18c)](_0x393d90(0x233)),{'verbose':_0x523c40[_0x393d90(0x235)]});_0x52e1e9['start']();const _0x2c2497={'realtime':!![],'onProgress':_0x432d8d=>{const _0xb21012=_0x393d90;_0x52e1e9[_0xb21012(0x2f0)]=formatProgressMessage(_0x432d8d);}};let _0x232880;try{_0x232880=await _0x3f193f[_0x393d90(0x159)][_0x393d90(0x289)](_0x29265f,_0x2c2497),_0x52e1e9['stop']();}catch(_0x155e80){_0x52e1e9[_0x393d90(0x154)]();throw _0x155e80;}console[_0x393d90(0x113)]('\x0a'+a34_0x427111[_0x393d90(0x260)](_0x393d90(0x2d7))+'\x20'+_0x232880[_0x393d90(0x205)]),console['error']('═'['repeat'](0x3c)),displayRealtimeValidation(_0x232880),console[_0x393d90(0x113)]('─'['repeat'](0x3c));if(_0x232880[_0x393d90(0x2ca)]['length']>0x0){console[_0x393d90(0x113)]('\x0a'+a34_0x427111[_0x393d90(0x129)](_0x393d90(0x2b0)));for(const _0x9e47af of _0x232880[_0x393d90(0x2ca)]){console['error']('\x20\x20'+a34_0x427111[_0x393d90(0x129)]('•')+'\x20'+_0x9e47af);}}return _0x232880['allValid']&&console[_0x393d90(0x113)]('\x0a'+a34_0x427111[_0x393d90(0x276)]('✔')+'\x20RT\x20configuration\x20is\x20valid'),_0x232880[_0x393d90(0x2cf)]?0x0:0x1;}}export class PSRtJnListCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x2a5);['description']='List\x20RT\x20journeys';async['execute'](_0x544e9b){const _0x232add=a34_0xe3eda6,{options:_0xd30073,args:_0x1bee13,tdx:_0x297949}=_0x544e9b,_0x41d68d=_0x1bee13[0x0]||_0xd30073[_0x232add(0x119)];if(!_0x41d68d)return showParentSegmentNotSetError(_0x232add(0x172)+_0x232add(0x29c)),0x1;_0xd30073[_0x232add(0x235)]&&(console[_0x232add(0x113)](_0x232add(0x1f7)+_0xd30073[_0x232add(0x28f)]),console[_0x232add(0x113)]('Parent\x20segment:\x20'+_0x41d68d));const _0x4fe0b1=await withSpinner(_0x232add(0x255)+_0x41d68d+_0x232add(0x217),()=>_0x297949[_0x232add(0x159)][_0x232add(0x267)](_0x41d68d),{'verbose':_0xd30073[_0x232add(0x235)]}),_0x3141e6=_0x4fe0b1['data'],_0x4b73e3=await withSpinner(_0x232add(0x164)+_0x41d68d+_0x232add(0x217),()=>_0x297949[_0x232add(0x2d6)][_0x232add(0x24f)](_0x3141e6),{'verbose':_0xd30073['verbose']}),_0x2eb7a9=_0x4b73e3['data'];console[_0x232add(0x113)](_0x232add(0x21e)+_0x2eb7a9[_0x232add(0x13f)]+'\x20RT\x20journey'+(_0x2eb7a9['length']!==0x1?'s':''));if(_0xd30073[_0x232add(0x19d)]===_0x232add(0x273)||_0xd30073[_0x232add(0x19d)]===_0x232add(0x131))await handleSDKOutput(_0x2eb7a9,_0xd30073);else{if(_0x2eb7a9[_0x232add(0x13f)]===0x0)console[_0x232add(0x17c)](_0x232add(0x262));else for(const _0x21db9b of _0x2eb7a9){const _0x1625d3=_0x21db9b[_0x232add(0x293)]===_0x232add(0xfb)?'🚀':'📝',_0x1a707a=_0x21db9b[_0x232add(0x1d9)]?a34_0x427111['yellow'](_0x232add(0x2e5)):'',_0x526c05=a34_0x427111[_0x232add(0x18c)]('\x20('+_0x21db9b[_0x232add(0x1ff)]+_0x232add(0x248)+(_0x21db9b[_0x232add(0x1ff)]!==0x1?'s':'')+')');console[_0x232add(0x17c)](_0x1625d3+'\x20'+_0x21db9b[_0x232add(0x205)]+_0x1a707a+_0x526c05);}}return 0x0;}}export class PSRtJnPauseCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x2c6);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x24e);async[a34_0xe3eda6(0x116)](_0x25cba5){const _0x1fdf2a=a34_0xe3eda6,{options:_0x566859,args:_0xf3113f,tdx:_0x47c258}=_0x25cba5,_0x159f88=_0xf3113f[0x0];if(!_0x159f88)return console[_0x1fdf2a(0x113)](a34_0x427111['red'](_0x1fdf2a(0x1c9))),console[_0x1fdf2a(0x113)]('Usage:\x20tdx\x20ps\x20rt\x20jn\x20pause_activations\x20<journeyId>\x0a'),console['error'](a34_0x427111['dim']('Tip:\x20Use\x20`tdx\x20ps\x20rt\x20jn\x20list\x20<parent_segment>`\x20to\x20find\x20journey\x20IDs')),0x1;_0x566859[_0x1fdf2a(0x235)]&&(console[_0x1fdf2a(0x113)]('Site:\x20'+_0x566859[_0x1fdf2a(0x28f)]),console[_0x1fdf2a(0x113)](_0x1fdf2a(0xf9)+_0x159f88));const _0x333999=await withSpinner(_0x1fdf2a(0x292)+_0x159f88+'\x27...',()=>_0x47c258['realtime']['pauseJourney'](_0x159f88),{'verbose':_0x566859[_0x1fdf2a(0x235)]}),_0x1a1a66=_0x333999['data'];console[_0x1fdf2a(0x113)](_0x1fdf2a(0x2b9)+_0x1a1a66[_0x1fdf2a(0x205)]+'\x27');if(_0x566859[_0x1fdf2a(0x19d)]===_0x1fdf2a(0x273)||_0x566859['format']===_0x1fdf2a(0x131))await handleSDKOutput([_0x1a1a66],_0x566859);else{const _0x1378e9=_0x1a1a66[_0x1fdf2a(0x293)]===_0x1fdf2a(0xfb)?'🚀':'📝',_0x543b57=_0x1a1a66[_0x1fdf2a(0x1d9)]?a34_0x427111[_0x1fdf2a(0x1ce)](_0x1fdf2a(0x2e5)):'';console[_0x1fdf2a(0x17c)](_0x1378e9+'\x20'+_0x1a1a66[_0x1fdf2a(0x205)]+_0x543b57);}return 0x0;}}export class PSRtJnResumeCommand extends BaseCommand{['name']=a34_0xe3eda6(0x1db);[a34_0xe3eda6(0x16d)]='Resume\x20activations\x20in\x20an\x20RT\x20journey';async[a34_0xe3eda6(0x116)](_0x4f4a2e){const _0x5301e6=a34_0xe3eda6,{options:_0xb12cb0,args:_0x5ac7fa,tdx:_0x14b928}=_0x4f4a2e,_0x13030e=_0x5ac7fa[0x0];if(!_0x13030e)return console['error'](a34_0x427111['red'](_0x5301e6(0x1c9))),console[_0x5301e6(0x113)](_0x5301e6(0x1b9)),console[_0x5301e6(0x113)](a34_0x427111[_0x5301e6(0x18c)](_0x5301e6(0x1ad))),0x1;_0xb12cb0[_0x5301e6(0x235)]&&(console['error'](_0x5301e6(0x1f7)+_0xb12cb0[_0x5301e6(0x28f)]),console[_0x5301e6(0x113)](_0x5301e6(0xf9)+_0x13030e));const _0x3fc7de=await withSpinner('Resuming\x20activations\x20for\x20RT\x20journey\x20\x27'+_0x13030e+_0x5301e6(0x217),()=>_0x14b928[_0x5301e6(0x2d6)]['resumeJourney'](_0x13030e),{'verbose':_0xb12cb0['verbose']}),_0x3beaf7=_0x3fc7de[_0x5301e6(0x209)];console[_0x5301e6(0x113)](_0x5301e6(0x222)+_0x3beaf7[_0x5301e6(0x205)]+'\x27');if(_0xb12cb0[_0x5301e6(0x19d)]===_0x5301e6(0x273)||_0xb12cb0[_0x5301e6(0x19d)]==='jsonl')await handleSDKOutput([_0x3beaf7],_0xb12cb0);else{const _0x5a8ca7=_0x3beaf7[_0x5301e6(0x293)]===_0x5301e6(0xfb)?'🚀':'📝',_0x5657ce=_0x3beaf7[_0x5301e6(0x1d9)]?a34_0x427111[_0x5301e6(0x1ce)](_0x5301e6(0x2e5)):'';console[_0x5301e6(0x17c)](_0x5a8ca7+'\x20'+_0x3beaf7[_0x5301e6(0x205)]+_0x5657ce);}return 0x0;}}export class PSRtConfigVersionCommand extends BaseCommand{['name']=a34_0xe3eda6(0x1a6);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x2a8);async[a34_0xe3eda6(0x116)](_0x5e87fa){const _0x1297a1=a34_0xe3eda6,{options:_0x1848e8,args:_0x413c25,tdx:_0x23980a}=_0x5e87fa,_0x46bcb9=_0x413c25[0x0]||_0x1848e8[_0x1297a1(0x119)];if(!_0x46bcb9)return showParentSegmentNotSetError(_0x1297a1(0x279)+_0x1297a1(0x243)),0x1;_0x1848e8[_0x1297a1(0x235)]&&(console[_0x1297a1(0x113)](_0x1297a1(0x1f7)+_0x1848e8[_0x1297a1(0x28f)]),console[_0x1297a1(0x113)](_0x1297a1(0x2f5)+_0x46bcb9));const _0x3b504c=await withSpinner(_0x1297a1(0x255)+_0x46bcb9+_0x1297a1(0x217),()=>_0x23980a[_0x1297a1(0x159)][_0x1297a1(0x267)](_0x46bcb9),{'verbose':_0x1848e8[_0x1297a1(0x235)]}),_0x15de0d=_0x3b504c[_0x1297a1(0x209)],_0x579536=await withSpinner(_0x1297a1(0x18f)+_0x46bcb9+_0x1297a1(0x217),()=>_0x23980a['realtime']['getCurrentConfigVersion'](_0x15de0d),{'verbose':_0x1848e8[_0x1297a1(0x235)]}),_0x1d6a54=_0x579536['data'];return console['error'](_0x1297a1(0x2c3)),_0x1848e8['format']==='json'||_0x1848e8[_0x1297a1(0x19d)]===_0x1297a1(0x131)?await handleSDKOutput([_0x1d6a54],_0x1848e8):(console[_0x1297a1(0x17c)](_0x1297a1(0x284)+_0x1d6a54['id']),console['log']('audienceId:\x20'+_0x1d6a54['audienceId']),console[_0x1297a1(0x17c)](_0x1297a1(0x1f2)+_0x1d6a54[_0x1297a1(0x1eb)]),console[_0x1297a1(0x17c)](_0x1297a1(0x1f8)+_0x1d6a54[_0x1297a1(0x1ef)]),console[_0x1297a1(0x17c)](_0x1297a1(0x1e0)+_0x1d6a54[_0x1297a1(0x10a)])),0x0;}}export class PSPzServiceListCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x300);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x2cd);async['execute'](_0xbbc8cb){const _0x571e68=a34_0xe3eda6,{options:_0x1af48a,args:_0x2a381d,tdx:_0xa88d5}=_0xbbc8cb,_0x558b6c=_0x2a381d[0x0]||_0x1af48a[_0x571e68(0x119)];if(!_0x558b6c)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20PZ\x20services\x20(requires\x20context)\x0a'+_0x571e68(0x1bf)),0x1;const _0x13ada1=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x558b6c+'\x27...',()=>_0xa88d5[_0x571e68(0x159)][_0x571e68(0x267)](_0x558b6c),{'verbose':_0x1af48a['verbose']}),_0xb0ec24=_0x13ada1['data'],_0x3fcd6b=await withSpinner(_0x571e68(0x117)+_0x558b6c+'\x27...',()=>_0xa88d5[_0x571e68(0x11d)][_0x571e68(0x166)](_0xb0ec24),{'verbose':_0x1af48a[_0x571e68(0x235)]}),_0x3e9d67=_0x3fcd6b[_0x571e68(0x209)];console[_0x571e68(0x113)](_0x571e68(0x21e)+_0x3e9d67[_0x571e68(0x13f)]+'\x20personalization\x20service'+(_0x3e9d67[_0x571e68(0x13f)]!==0x1?'s':''));if(_0x1af48a[_0x571e68(0x19d)]===_0x571e68(0x273)||_0x1af48a[_0x571e68(0x19d)]===_0x571e68(0x131))await handleSDKOutput(_0x3e9d67,_0x1af48a);else{if(_0x3e9d67[_0x571e68(0x13f)]===0x0)console[_0x571e68(0x17c)](_0x571e68(0x2f6)),console['error'](a34_0x427111[_0x571e68(0x23f)]('\x0aTip:\x20Run\x20`tdx\x20ps\x20pz\x20service\x20init`\x20to\x20add\x20a\x20template\x20personalization\x20section\x20to\x20your\x20YAML'));else for(const _0xba45a2 of _0x3e9d67){console['log'](a34_0x427111['bold'](_0xba45a2['name'])+'\x20'+a34_0x427111[_0x571e68(0x18c)](_0x571e68(0x14c)+_0xba45a2['id']+')'));_0xba45a2[_0x571e68(0x16d)]&&console['log']('\x20\x20'+a34_0x427111['dim'](_0xba45a2[_0x571e68(0x16d)]));if(_0xba45a2[_0x571e68(0x175)]&&_0xba45a2['tokens'][_0x571e68(0x13f)]>0x0)for(const _0x329b1a of _0xba45a2['tokens']){const _0x1817b6=_0x329b1a['allowedIps']?.[_0x571e68(0x13f)]?_0x329b1a[_0x571e68(0x184)]['join'](',\x20'):_0x571e68(0x22d);console['log']('\x20\x20'+a34_0x427111[_0x571e68(0x23f)](_0x571e68(0x160))+'\x20'+_0x329b1a[_0x571e68(0x205)]+'\x20'+a34_0x427111[_0x571e68(0x18c)](_0x571e68(0x14c)+_0x329b1a['id']+')')),console[_0x571e68(0x17c)](_0x571e68(0x10b)+a34_0x427111[_0x571e68(0x18c)](_0x571e68(0x2ae))+'\x20'+_0x1817b6);}else console[_0x571e68(0x17c)]('\x20\x20'+a34_0x427111[_0x571e68(0x18c)](_0x571e68(0x1da)));}}return 0x0;}}export class PSPzServiceCreateCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='ps:pz:service:create';[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x1dd);async[a34_0xe3eda6(0x116)](_0x1152de){const _0x1f6fd7=a34_0xe3eda6,{options:_0x6851b8,args:_0x41b95f,tdx:_0x454fbf}=_0x1152de,_0x466260=_0x6851b8,_0x4c8e16=_0x41b95f[0x0],_0x2956ac=_0x41b95f[0x1]||_0x6851b8[_0x1f6fd7(0x119)];if(!_0x4c8e16)return console[_0x1f6fd7(0x113)](_0x1f6fd7(0x2b8)),console[_0x1f6fd7(0x113)](_0x1f6fd7(0x120)),console[_0x1f6fd7(0x113)](_0x1f6fd7(0x2f2)),0x1;if(!_0x2956ac)return showParentSegmentNotSetError(_0x1f6fd7(0x2a0)+_0x1f6fd7(0x2f2)),0x1;const _0x5969d3=await withSpinner(_0x1f6fd7(0x255)+_0x2956ac+_0x1f6fd7(0x217),()=>_0x454fbf[_0x1f6fd7(0x159)]['resolveParentId'](_0x2956ac),{'verbose':_0x6851b8[_0x1f6fd7(0x235)]}),_0x29378f=_0x5969d3['data'],_0x45c3e8={'name':_0x4c8e16,'description':_0x466260[_0x1f6fd7(0x16d)],'public':_0x466260[_0x1f6fd7(0x24c)]},_0x3c3cc9=await withSpinner(_0x1f6fd7(0x1dc)+_0x4c8e16+'\x27...',()=>_0x454fbf['personalization'][_0x1f6fd7(0x1f9)](_0x29378f,_0x45c3e8),{'verbose':_0x6851b8[_0x1f6fd7(0x235)]}),_0x5c1088=_0x3c3cc9[_0x1f6fd7(0x209)];return console[_0x1f6fd7(0x113)]('✔\x20Created\x20personalization\x20service\x20\x27'+_0x5c1088[_0x1f6fd7(0x205)]+'\x27\x20with\x20ID:\x20'+_0x5c1088['id']),await handleSDKOutput([_0x5c1088],_0x6851b8),0x0;}}export class PSPzServiceShowCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x29a);[a34_0xe3eda6(0x16d)]='Show\x20personalization\x20service\x20details';async[a34_0xe3eda6(0x116)](_0x5dd798){const _0x299254=a34_0xe3eda6,{options:_0x2d5d3c,args:_0x42a5b5,tdx:_0x51d88f}=_0x5dd798,_0x5bae75=_0x42a5b5[0x0],_0x5de407=_0x42a5b5[0x1]||_0x2d5d3c['parentSegment'];if(!_0x5bae75)return console['error'](_0x299254(0x162)),console[_0x299254(0x113)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20[parent_segment]'),console[_0x299254(0x113)](_0x299254(0x148)),0x1;if(!_0x5de407)return showParentSegmentNotSetError(_0x299254(0x232)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20show\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;const _0x1b2190=await withSpinner(_0x299254(0x255)+_0x5de407+'\x27...',()=>_0x51d88f['segment'][_0x299254(0x267)](_0x5de407),{'verbose':_0x2d5d3c[_0x299254(0x235)]}),_0x5eb408=_0x1b2190[_0x299254(0x209)],_0x2f4b95=await withSpinner('Fetching\x20personalization\x20service\x20\x27'+_0x5bae75+_0x299254(0x217),()=>_0x51d88f[_0x299254(0x11d)][_0x299254(0x257)](_0x5eb408,_0x5bae75),{'verbose':_0x2d5d3c[_0x299254(0x235)]}),_0x1794e5=_0x2f4b95['data'];if(_0x2d5d3c['json']||_0x2d5d3c[_0x299254(0x131)])await handleSDKOutput([_0x1794e5],_0x2d5d3c);else{console[_0x299254(0x17c)](a34_0x427111[_0x299254(0x260)](_0x1794e5[_0x299254(0x205)])+'\x20'+a34_0x427111[_0x299254(0x18c)](_0x299254(0x14c)+_0x1794e5['id']+')'));_0x1794e5[_0x299254(0x16d)]&&console[_0x299254(0x17c)]('\x20\x20'+a34_0x427111['dim'](_0x1794e5['description']));console[_0x299254(0x17c)]('\x20\x20'+a34_0x427111[_0x299254(0x23f)](_0x299254(0x206))+'\x20'+(_0x1794e5[_0x299254(0x24c)]?_0x299254(0x15c):'no'));if(_0x1794e5[_0x299254(0x175)]&&_0x1794e5[_0x299254(0x175)]['length']>0x0)for(const _0x231126 of _0x1794e5[_0x299254(0x175)]){const _0x5696b3=_0x231126[_0x299254(0x184)]?.[_0x299254(0x13f)]?_0x231126['allowedIps'][_0x299254(0x14a)](',\x20'):'any';console[_0x299254(0x17c)]('\x20\x20'+a34_0x427111[_0x299254(0x23f)]('token:')+'\x20'+_0x231126[_0x299254(0x205)]+'\x20'+a34_0x427111[_0x299254(0x18c)](_0x299254(0x14c)+_0x231126['id']+')')),console[_0x299254(0x17c)]('\x20\x20\x20\x20'+a34_0x427111[_0x299254(0x18c)](_0x299254(0x2ae))+'\x20'+_0x5696b3);}else console[_0x299254(0x17c)]('\x20\x20'+a34_0x427111[_0x299254(0x18c)]('no\x20tokens\x20configured'));}return 0x0;}}export class PSPzServiceDeleteCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x1e2);['description']=a34_0xe3eda6(0x229);async[a34_0xe3eda6(0x116)](_0x5621c9){const _0x2cbeaf=a34_0xe3eda6,{options:_0x25641d,args:_0x2e6fd2,tdx:_0x2b6dcb}=_0x5621c9,_0x39b5d7=_0x2e6fd2[0x0],_0x47d641=_0x2e6fd2[0x1]||_0x25641d[_0x2cbeaf(0x119)];if(!_0x39b5d7)return console['error']('Error:\x20Service\x20ID\x20is\x20required'),console['error']('Usage:\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20[parent_segment]'),console[_0x2cbeaf(0x113)](_0x2cbeaf(0x261)),0x1;if(!_0x47d641)return showParentSegmentNotSetError(_0x2cbeaf(0x2fd)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20delete\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;const _0x39e1c6=await withSpinner(_0x2cbeaf(0x255)+_0x47d641+_0x2cbeaf(0x217),()=>_0x2b6dcb[_0x2cbeaf(0x159)][_0x2cbeaf(0x267)](_0x47d641),{'verbose':_0x25641d[_0x2cbeaf(0x235)]}),_0x2c4dad=_0x39e1c6['data'];return await withSpinner(_0x2cbeaf(0x1c2)+_0x39b5d7+_0x2cbeaf(0x217),()=>_0x2b6dcb[_0x2cbeaf(0x11d)][_0x2cbeaf(0x247)](_0x2c4dad,_0x39b5d7),{'verbose':_0x25641d['verbose']}),console[_0x2cbeaf(0x113)](_0x2cbeaf(0x102)+_0x39b5d7+'\x27'),0x0;}}export class PSPzServiceUpdateCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x143);['description']='Update\x20a\x20personalization\x20service\x20name\x20and/or\x20description';async[a34_0xe3eda6(0x116)](_0x47606e){const _0x346a4d=a34_0xe3eda6,{options:_0x5c2ad7,args:_0x4ac5a6,tdx:_0x45289d}=_0x47606e,_0x28dac1=_0x5c2ad7,_0x9bae12=_0x4ac5a6[0x0],_0x5ad1d1=_0x4ac5a6[0x1]||_0x5c2ad7[_0x346a4d(0x119)];if(!_0x9bae12)return console[_0x346a4d(0x113)](_0x346a4d(0x162)),console[_0x346a4d(0x113)](_0x346a4d(0x1b5)),console[_0x346a4d(0x113)](_0x346a4d(0x1cd)),0x1;if(!_0x28dac1[_0x346a4d(0x205)])return console[_0x346a4d(0x113)](_0x346a4d(0x1a9)),console['error']('Usage:\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20[parent_segment]\x20--name\x20<name>\x20[--description\x20<text>]'),0x1;if(!_0x5ad1d1)return showParentSegmentNotSetError(_0x346a4d(0x258)+'\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20update\x20<service_id>\x20--name\x20<name>\x20\x20#\x20Uses\x20context'),0x1;const _0x8ac946=await withSpinner(_0x346a4d(0x255)+_0x5ad1d1+_0x346a4d(0x217),()=>_0x45289d['segment'][_0x346a4d(0x267)](_0x5ad1d1),{'verbose':_0x5c2ad7['verbose']}),_0x2d3ab7=_0x8ac946['data'],_0x3686a4={'name':_0x28dac1[_0x346a4d(0x205)]};_0x28dac1[_0x346a4d(0x16d)]!==undefined&&(_0x3686a4['description']=_0x28dac1[_0x346a4d(0x16d)]);const _0x2858fc=await withSpinner('Updating\x20personalization\x20service\x20\x27'+_0x9bae12+'\x27...',()=>_0x45289d[_0x346a4d(0x11d)]['patch'](_0x2d3ab7,_0x9bae12,_0x3686a4),{'verbose':_0x5c2ad7[_0x346a4d(0x235)]}),_0x3601ef=_0x2858fc[_0x346a4d(0x209)];return console[_0x346a4d(0x113)](_0x346a4d(0x220)+_0x3601ef[_0x346a4d(0x205)]+'\x27'),await handleSDKOutput([_0x3601ef],_0x5c2ad7),0x0;}}export class PSPzServiceTokenCreateCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x2fc);[a34_0xe3eda6(0x16d)]='Create\x20a\x20token\x20for\x20a\x20personalization\x20service';async[a34_0xe3eda6(0x116)](_0xd1760a){const _0x37d84e=a34_0xe3eda6,{options:_0x5b6db8,args:_0x145dcb,tdx:_0x29e4bf}=_0xd1760a,_0x311f23=_0x5b6db8,_0x4de745=_0x145dcb[0x0],_0x4f4eef=_0x145dcb[0x1],_0x1fd070=_0x145dcb[0x2]||_0x5b6db8[_0x37d84e(0x119)];if(!_0x4de745)return console['error'](_0x37d84e(0x2da)),console[_0x37d84e(0x113)](_0x37d84e(0x10e)),console['error'](_0x37d84e(0x251)),0x1;if(!_0x4f4eef)return console[_0x37d84e(0x113)](_0x37d84e(0x162)),console[_0x37d84e(0x113)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20[parent_segment]'),console[_0x37d84e(0x113)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20service\x20token\x20create\x20<name>\x20<service_id>\x20\x20#\x20Uses\x20context'),0x1;if(!_0x1fd070)return showParentSegmentNotSetError(_0x37d84e(0x16e)+_0x37d84e(0x251)),0x1;const _0x5196a0=await withSpinner('Resolving\x20parent\x20segment\x20\x27'+_0x1fd070+'\x27...',()=>_0x29e4bf['segment'][_0x37d84e(0x267)](_0x1fd070),{'verbose':_0x5b6db8['verbose']}),_0x20b3e7=_0x5196a0[_0x37d84e(0x209)],_0x29914f={'name':_0x4de745};_0x311f23['allowedIps']&&(_0x29914f[_0x37d84e(0x184)]=_0x311f23[_0x37d84e(0x184)][_0x37d84e(0x201)](',')[_0x37d84e(0x269)](_0x2415bf=>_0x2415bf[_0x37d84e(0x26d)]()));_0x311f23['description']&&(_0x29914f['description']=_0x311f23[_0x37d84e(0x16d)]);const _0x13bd5b=await withSpinner(_0x37d84e(0x1b8)+_0x4de745+_0x37d84e(0x23a)+_0x4f4eef+_0x37d84e(0x217),()=>_0x29e4bf[_0x37d84e(0x11d)][_0x37d84e(0x130)](_0x20b3e7,_0x4f4eef,_0x29914f),{'verbose':_0x5b6db8[_0x37d84e(0x235)]}),_0x3f9ddd=_0x13bd5b[_0x37d84e(0x209)];return console['error'](_0x37d84e(0x1d7)+_0x3f9ddd[_0x37d84e(0x205)]+'\x27\x20with\x20ID:\x20'+_0x3f9ddd['id']),_0x3f9ddd['value']&&(console[_0x37d84e(0x113)](a34_0x427111[_0x37d84e(0x1ce)]('\x0a⚠\x20Save\x20this\x20token\x20value\x20-\x20it\x20will\x20not\x20be\x20shown\x20again:')),console[_0x37d84e(0x113)](a34_0x427111[_0x37d84e(0x23f)](_0x3f9ddd[_0x37d84e(0x107)])),console[_0x37d84e(0x113)]('')),await handleSDKOutput([_0x3f9ddd],_0x5b6db8),0x0;}}export class PSPzServiceTokenDeleteCommand extends BaseCommand{['name']=a34_0xe3eda6(0x1af);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x19a);async[a34_0xe3eda6(0x116)](_0x103975){const _0x5307f4=a34_0xe3eda6,{options:_0x2d6276,args:_0x352173,tdx:_0x71d2d8}=_0x103975,_0x1429ea=_0x352173[0x0],_0x104ec0=_0x352173[0x1]||_0x2d6276['parentSegment'];if(!_0x1429ea)return console['error'](_0x5307f4(0x2e6)),console[_0x5307f4(0x113)]('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]'),console[_0x5307f4(0x113)](_0x5307f4(0x135)),0x1;if(!_0x104ec0)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20service\x20token\x20delete\x20<token_id>\x20[parent_segment]\x0a'+_0x5307f4(0x135)),0x1;const _0xcc6c7=await withSpinner(_0x5307f4(0x255)+_0x104ec0+_0x5307f4(0x217),()=>_0x71d2d8[_0x5307f4(0x159)]['resolveParentId'](_0x104ec0),{'verbose':_0x2d6276[_0x5307f4(0x235)]}),_0x330a06=_0xcc6c7['data'],_0x43af43=await withSpinner(_0x5307f4(0x17e),()=>_0x71d2d8[_0x5307f4(0x11d)]['list'](_0x330a06),{'verbose':_0x2d6276[_0x5307f4(0x235)]}),_0x5a0ff9=_0x43af43['data'];let _0x21c9c6;for(const _0x3946b6 of _0x5a0ff9){if(_0x3946b6['tokens']?.[_0x5307f4(0x1b7)](_0x137863=>_0x137863['id']===_0x1429ea)){_0x21c9c6=_0x3946b6['id'];break;}}if(!_0x21c9c6)return console[_0x5307f4(0x113)](_0x5307f4(0x295)+_0x1429ea+_0x5307f4(0x121)),0x1;const _0x50ba82=await withSpinner(_0x5307f4(0x1d0)+_0x1429ea+_0x5307f4(0x217),()=>_0x71d2d8[_0x5307f4(0x11d)][_0x5307f4(0x132)](_0x330a06,_0x21c9c6,_0x1429ea),{'verbose':_0x2d6276[_0x5307f4(0x235)]}),_0xa111=_0x50ba82['data'];return console[_0x5307f4(0x113)](_0x5307f4(0x28d)+(_0xa111[_0x5307f4(0x205)]||_0x1429ea)+'\x27'),await handleSDKOutput([_0xa111],_0x2d6276),0x0;}}export class PSPzListCommand extends BaseCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x25c);['description']=a34_0xe3eda6(0x2c1);async['execute'](_0x4a4693){const _0x16769a=a34_0xe3eda6,{options:_0x5a6e16,args:_0x4fdd68,tdx:_0xf9535b}=_0x4a4693,_0x5ee8b3=_0x4fdd68[0x0]||_0x5a6e16[_0x16769a(0x119)];if(!_0x5ee8b3)return showParentSegmentNotSetError('Usage:\x20tdx\x20ps\x20pz\x20list\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20#\x20List\x20personalizations\x20(requires\x20context)\x0a'+_0x16769a(0x1ec)),0x1;const _0x1d108e=await withSpinner(_0x16769a(0x255)+_0x5ee8b3+_0x16769a(0x217),()=>_0xf9535b[_0x16769a(0x159)][_0x16769a(0x267)](_0x5ee8b3),{'verbose':_0x5a6e16[_0x16769a(0x235)]}),_0x2e06fe=_0x1d108e[_0x16769a(0x209)],_0x36c118=await withSpinner(_0x16769a(0x146)+_0x5ee8b3+_0x16769a(0x217),()=>_0xf9535b[_0x16769a(0x11d)]['listPersonalizations'](_0x2e06fe),{'verbose':_0x5a6e16['verbose']}),_0x57925c=_0x36c118[_0x16769a(0x209)];console[_0x16769a(0x113)](_0x16769a(0x21e)+_0x57925c['length']+_0x16769a(0x2bc)+(_0x57925c['length']!==0x1?'s':''));if(_0x5a6e16[_0x16769a(0x19d)]===_0x16769a(0x273)||_0x5a6e16[_0x16769a(0x19d)]==='jsonl')await handleSDKOutput(_0x57925c,_0x5a6e16);else{if(_0x57925c[_0x16769a(0x13f)]===0x0)console['log']('No\x20personalizations\x20configured');else for(const _0x41782c of _0x57925c){console[_0x16769a(0x17c)](a34_0x427111[_0x16769a(0x260)](_0x41782c[_0x16769a(0x205)])+'\x20'+a34_0x427111[_0x16769a(0x18c)](_0x16769a(0x14c)+_0x41782c['id']+')'));_0x41782c['description']&&console['log']('\x20\x20'+a34_0x427111[_0x16769a(0x18c)](_0x41782c[_0x16769a(0x16d)]));const _0x5477c4=_0x41782c[_0x16769a(0x2ad)]?.[_0x16769a(0x13f)]||0x0;console[_0x16769a(0x17c)]('\x20\x20'+a34_0x427111[_0x16769a(0x23f)](_0x16769a(0x2aa))+'\x20'+_0x5477c4);if(_0x41782c[_0x16769a(0x2ad)]&&_0x41782c[_0x16769a(0x2ad)]['length']>0x0)for(const _0xc78a08 of _0x41782c[_0x16769a(0x2ad)]){console[_0x16769a(0x17c)](_0x16769a(0x189)+_0xc78a08[_0x16769a(0x205)]);}}}return 0x0;}}export class PSPzShowCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='ps:pz:show';[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x188);async[a34_0xe3eda6(0x116)](_0xd80a68){const _0x36aa2f=a34_0xe3eda6,{options:_0x36a785,args:_0x5d7871,tdx:_0x336fa3}=_0xd80a68,_0x1283de=_0x5d7871[0x0];if(!_0x1283de)return console['error'](_0x36aa2f(0x2b2)),console[_0x36aa2f(0x113)](_0x36aa2f(0x2d5)),0x1;const _0x2981f9=await withSpinner(_0x36aa2f(0x11e)+_0x1283de+_0x36aa2f(0x217),()=>_0x336fa3[_0x36aa2f(0x11d)][_0x36aa2f(0x2e8)](_0x1283de),{'verbose':_0x36a785[_0x36aa2f(0x235)]}),_0x4af6bc=_0x2981f9[_0x36aa2f(0x209)];console[_0x36aa2f(0x113)]('✔\x20Found\x20personalization\x20\x27'+_0x4af6bc[_0x36aa2f(0x205)]+'\x27');if(_0x36a785['format']===_0x36aa2f(0x273)||_0x36a785[_0x36aa2f(0x19d)]===_0x36aa2f(0x131))await handleSDKOutput([_0x4af6bc],_0x36a785);else{console[_0x36aa2f(0x17c)](a34_0x427111[_0x36aa2f(0x260)](_0x4af6bc['name'])+'\x20'+a34_0x427111[_0x36aa2f(0x18c)](_0x36aa2f(0x14c)+_0x4af6bc['id']+')'));_0x4af6bc[_0x36aa2f(0x16d)]&&console[_0x36aa2f(0x17c)]('\x20\x20'+a34_0x427111[_0x36aa2f(0x18c)](_0x4af6bc[_0x36aa2f(0x16d)]));_0x4af6bc[_0x36aa2f(0x13b)]&&console[_0x36aa2f(0x17c)]('\x20\x20'+a34_0x427111[_0x36aa2f(0x23f)](_0x36aa2f(0x170))+'\x20'+_0x4af6bc[_0x36aa2f(0x13b)]);console['log']('\x20\x20'+a34_0x427111[_0x36aa2f(0x23f)](_0x36aa2f(0x1f5))+'\x20'+_0x4af6bc['createdAt']),console[_0x36aa2f(0x17c)]('\x20\x20'+a34_0x427111[_0x36aa2f(0x23f)](_0x36aa2f(0x17a))+'\x20'+_0x4af6bc[_0x36aa2f(0x214)]);const _0x5f3c47=_0x4af6bc[_0x36aa2f(0x2ad)]?.[_0x36aa2f(0x13f)]||0x0;console[_0x36aa2f(0x17c)]('\x20\x20'+a34_0x427111[_0x36aa2f(0x23f)]('sections:')+'\x20'+_0x5f3c47);if(_0x4af6bc[_0x36aa2f(0x2ad)]&&_0x4af6bc['sections'][_0x36aa2f(0x13f)]>0x0)for(const _0x514d6c of _0x4af6bc['sections']){console['log'](_0x36aa2f(0x10b)+a34_0x427111['bold'](_0x514d6c[_0x36aa2f(0x205)])+'\x20'+a34_0x427111[_0x36aa2f(0x18c)]('(id:\x20'+_0x514d6c['id']+')')),_0x514d6c[_0x36aa2f(0x11a)]&&(console[_0x36aa2f(0x17c)](_0x36aa2f(0x16f)+a34_0x427111[_0x36aa2f(0x23f)]('entryCriteria:')+'\x20'+_0x514d6c[_0x36aa2f(0x11a)][_0x36aa2f(0x205)]),_0x514d6c[_0x36aa2f(0x11a)][_0x36aa2f(0x1e1)]?.[_0x36aa2f(0x2a2)]&&console[_0x36aa2f(0x17c)](_0x36aa2f(0x2e1)+a34_0x427111[_0x36aa2f(0x23f)](_0x36aa2f(0x2b4))+'\x20'+_0x514d6c[_0x36aa2f(0x11a)][_0x36aa2f(0x1e1)][_0x36aa2f(0x2a2)])),_0x514d6c[_0x36aa2f(0x138)]&&console[_0x36aa2f(0x17c)](_0x36aa2f(0x16f)+a34_0x427111[_0x36aa2f(0x23f)](_0x36aa2f(0x256))+'\x20'+JSON[_0x36aa2f(0x2ef)](_0x514d6c[_0x36aa2f(0x138)])),_0x514d6c[_0x36aa2f(0x1c3)]&&console[_0x36aa2f(0x17c)](_0x36aa2f(0x16f)+a34_0x427111['cyan']('includeSensitive:')+_0x36aa2f(0x1df));}}return 0x0;}}export class PSPzDeleteCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='ps:pz:delete';['description']=a34_0xe3eda6(0x1f6);async[a34_0xe3eda6(0x116)](_0x4904c3){const _0x4b8565=a34_0xe3eda6,{options:_0x52b003,args:_0x570b45,tdx:_0x141c90}=_0x4904c3,_0x17b463=_0x570b45[0x0];if(!_0x17b463)return console['error'](_0x4b8565(0x2b2)),console[_0x4b8565(0x113)](_0x4b8565(0x265)),0x1;return await withSpinner('Deleting\x20personalization\x20\x27'+_0x17b463+_0x4b8565(0x217),()=>_0x141c90['personalization'][_0x4b8565(0x156)](_0x17b463),{'verbose':_0x52b003[_0x4b8565(0x235)]}),console[_0x4b8565(0x113)](_0x4b8565(0x238)+_0x17b463+'\x27'),0x0;}}export class PSPzCreateCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='ps:pz:create';[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x11f);async[a34_0xe3eda6(0x116)](_0x24f7af){const _0x4786b1=a34_0xe3eda6,{options:_0x4ab5d0,tdx:_0xd89b67}=_0x24f7af,_0x4b12ad=_0x4ab5d0;let _0x3b30e3;if(_0x4b12ad[_0x4786b1(0x1c4)]){_0x3b30e3=await loadJSON(_0x4b12ad['file'],!![]);if(!_0x3b30e3[_0x4786b1(0x2a6)]?.[_0x4786b1(0x2a1)])return console[_0x4786b1(0x113)](_0x4786b1(0x12e)),console[_0x4786b1(0x113)](_0x4786b1(0x193)),console[_0x4786b1(0x113)]('\x20\x20\x22relationships\x22:\x20{\x20\x22parentFolder\x22:\x20{\x20\x22data\x22:\x20{\x20\x22id\x22:\x20\x22<id>\x22,\x20\x22type\x22:\x20\x22folder-segment\x22\x20}\x20}\x20}'),0x1;}else{if(!_0x4b12ad[_0x4786b1(0x205)])return console['error'](_0x4786b1(0x2f1)),console[_0x4786b1(0x113)](_0x4786b1(0x17b)),console['error'](_0x4786b1(0x187)),0x1;if(_0x4b12ad[_0x4786b1(0x16d)]===undefined)return console[_0x4786b1(0x113)](_0x4786b1(0x2b7)),console[_0x4786b1(0x113)](_0x4786b1(0x17b)),console[_0x4786b1(0x113)](_0x4786b1(0x187)),0x1;if(_0x4b12ad[_0x4786b1(0x1cf)]===undefined)return console[_0x4786b1(0x113)](_0x4786b1(0x270)),console[_0x4786b1(0x113)]('\x20\x20\x20\x20\x20\x20\x20Pass\x20null\x20to\x20place\x20in\x20the\x20root\x20folder.'),0x1;let _0x1052bb=_0x4b12ad[_0x4786b1(0x13b)];if(!_0x1052bb&&_0x4ab5d0[_0x4786b1(0x119)]){const _0x50acc4=await withSpinner(_0x4786b1(0x255)+_0x4ab5d0['parentSegment']+_0x4786b1(0x217),()=>_0xd89b67['segment'][_0x4786b1(0x267)](_0x4ab5d0[_0x4786b1(0x119)]),{'verbose':_0x4ab5d0[_0x4786b1(0x235)]});_0x1052bb=_0x50acc4['data'];}let _0x2f5096;_0x4b12ad[_0x4786b1(0x2ad)]&&(_0x2f5096=await loadJSON(_0x4b12ad[_0x4786b1(0x2ad)],![]));const _0x6c8f07=_0x4b12ad[_0x4786b1(0x1cf)]===_0x4786b1(0x2b6)?null:{'id':_0x4b12ad[_0x4786b1(0x1cf)],'type':_0x4786b1(0x286)};_0x3b30e3={'attributes':{'name':_0x4b12ad['name'],'description':_0x4b12ad[_0x4786b1(0x16d)]||null,..._0x1052bb!==undefined&&{'audienceId':_0x1052bb},..._0x2f5096!==undefined&&{'sections':_0x2f5096}},'relationships':{'parentFolder':{'data':_0x6c8f07}}};}const _0x14fcc6=await withSpinner(_0x4786b1(0x26c)+(_0x3b30e3[_0x4786b1(0x2ec)]?.[_0x4786b1(0x205)]??'')+_0x4786b1(0x217),()=>_0xd89b67[_0x4786b1(0x11d)]['createPersonalization'](_0x3b30e3),{'verbose':_0x4ab5d0[_0x4786b1(0x235)]}),_0x8a2ee0=_0x14fcc6[_0x4786b1(0x209)];return console[_0x4786b1(0x113)](_0x4786b1(0x2f4)+_0x8a2ee0[_0x4786b1(0x205)]+_0x4786b1(0x14d)+_0x8a2ee0['id']),await handleSDKOutput([_0x8a2ee0],_0x4ab5d0),0x0;}}export class PSPzPatchCommand extends BaseCommand{[a34_0xe3eda6(0x205)]='ps:pz:patch';[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x24d);async[a34_0xe3eda6(0x116)](_0x23e969){const _0x5f392f=a34_0xe3eda6,{options:_0x519a46,args:_0x4dbb83}=_0x23e969,_0x2f69f1=_0x519a46,_0x36d26b=_0x4dbb83[0x0];if(!_0x36d26b)return console[_0x5f392f(0x113)]('Error:\x20Personalization\x20ID\x20is\x20required'),console[_0x5f392f(0x113)](_0x5f392f(0x1b6)),console[_0x5f392f(0x113)]('\x20\x20\x20\x20\x20\x20\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--file\x20<path>'),0x1;let _0x2db3e6;if(_0x2f69f1[_0x5f392f(0x1c4)])_0x2db3e6=await loadJSON(_0x2f69f1[_0x5f392f(0x1c4)],!![]);else{if(!_0x2f69f1[_0x5f392f(0x205)])return console[_0x5f392f(0x113)](_0x5f392f(0x2f1)),console[_0x5f392f(0x113)]('Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]'),0x1;if(_0x2f69f1[_0x5f392f(0x16d)]===undefined)return console['error']('Error:\x20--description\x20is\x20required\x20(or\x20use\x20--file\x20for\x20a\x20full\x20request\x20body)'),console[_0x5f392f(0x113)]('Usage:\x20tdx\x20ps\x20pz\x20patch\x20<id>\x20--name\x20<name>\x20--description\x20<desc>\x20[--sections\x20<json>]'),0x1;let _0x1f7e9c;_0x2f69f1['sections']&&(_0x1f7e9c=await loadJSON(_0x2f69f1[_0x5f392f(0x2ad)],![])),_0x2db3e6={'attributes':{'name':_0x2f69f1[_0x5f392f(0x205)],'description':_0x2f69f1[_0x5f392f(0x16d)]||null,..._0x1f7e9c!==undefined&&{'sections':_0x1f7e9c}}};}const {tdx:_0x1abffb}=_0x23e969,_0x3d551e=await withSpinner(_0x5f392f(0x1f1)+_0x36d26b+_0x5f392f(0x217),()=>_0x1abffb[_0x5f392f(0x11d)]['patchPersonalization'](_0x36d26b,_0x2db3e6),{'verbose':_0x519a46[_0x5f392f(0x235)]}),_0x39bea4=_0x3d551e['data'];return console[_0x5f392f(0x113)](_0x5f392f(0x1ae)+_0x39bea4['name']+'\x27\x20(id:\x20'+_0x39bea4['id']+')'),await handleSDKOutput([_0x39bea4],_0x519a46),0x0;}}export class PSPzInitCommand extends BaseParentSegmentCommand{[a34_0xe3eda6(0x205)]=a34_0xe3eda6(0x2db);[a34_0xe3eda6(0x16d)]=a34_0xe3eda6(0x25d);async['execute'](_0x1e5351){const _0x4d382e=a34_0xe3eda6,{options:_0xe36990,args:_0x2b2f7c}=_0x1e5351,_0xe9d589=_0x2b2f7c[0x0]||_0xe36990['parentSegment'];if(!_0xe9d589)return showParentSegmentNotSetError(_0x4d382e(0x230)+_0x4d382e(0x196)),0x1;const _0x5273d9=resolveYamlFile(_0xe9d589);if(!existsSync(_0x5273d9))return showFileNotFoundError(_0x5273d9,_0xe9d589),0x1;let _0x1fa78d;try{_0x1fa78d=readFileSync(_0x5273d9,_0x4d382e(0x2e4));}catch(_0x410ae4){const _0xc94053=_0x410ae4 instanceof Error?_0x410ae4[_0x4d382e(0x23b)]:String(_0x410ae4);return console[_0x4d382e(0x113)]('Error\x20reading\x20file:\x20'+_0xc94053),0x1;}let _0x3b15f3;try{_0x3b15f3=parseDef(_0x1fa78d);}catch(_0x25eed8){const _0x1fbff7=_0x25eed8 instanceof Error?_0x25eed8['message']:String(_0x25eed8);return console[_0x4d382e(0x113)](a34_0x427111[_0x4d382e(0x129)]('Error\x20parsing\x20YAML:\x20'+_0x1fbff7)),0x1;}if(_0x3b15f3[_0x4d382e(0x1bd)]&&_0x3b15f3['personalization_services'][_0x4d382e(0x13f)]>0x0)return console['error'](a34_0x427111[_0x4d382e(0x1ce)]('⚠️\x20\x20personalization_services\x20section\x20already\x20exists\x20in\x20'+_0x5273d9)),console[_0x4d382e(0x113)](a34_0x427111['dim'](_0x4d382e(0x139)+_0x3b15f3[_0x4d382e(0x1bd)][_0x4d382e(0x13f)]+'\x20service(s)\x20configured')),0x1;!_0x3b15f3['realtime']&&(_0x3b15f3[_0x4d382e(0x2d6)]={'events':[{'name':_0x4d382e(0x20d),'source_table':_0x4d382e(0x288)}],'attributes':[{'name':_0x4d382e(0x1e6),'type':_0x4d382e(0x1f0)}],'id_stitching':{'primary_key':_0x3b15f3[_0x4d382e(0x2ff)]['table']===_0x4d382e(0x219)?_0x4d382e(0x23c):_0x4d382e(0x272)}});_0x3b15f3[_0x4d382e(0x1bd)]=[{'name':'My\x20Service','description':'Personalization\x20service\x20description','trigger_event':_0x4d382e(0x20d),'sections':[{'name':_0x4d382e(0x226),'criteria':_0x4d382e(0x27e),'attributes':[_0x4d382e(0x1e6)]}]}];const _0xfca570=serializeDef(_0x3b15f3);return writeFileSync(_0x5273d9,_0xfca570,_0x4d382e(0x2e4)),console[_0x4d382e(0x113)](a34_0x427111[_0x4d382e(0x276)]('✔')+_0x4d382e(0x298)+a34_0x427111[_0x4d382e(0x23f)](_0x5273d9)),(!_0x3b15f3['realtime']||_0x1fa78d['indexOf']('realtime:')===-0x1)&&console['error'](a34_0x427111[_0x4d382e(0x276)]('✔')+_0x4d382e(0x1ea)),console[_0x4d382e(0x113)]('\x0a'+a34_0x427111[_0x4d382e(0x18c)](_0x4d382e(0x125))),console[_0x4d382e(0x113)]('\x20\x201.\x20Edit\x20'+_0x5273d9+'\x20to\x20configure\x20your\x20personalization\x20service'),console[_0x4d382e(0x113)](_0x4d382e(0x252)+a34_0x427111['dim'](_0x4d382e(0x124)+_0xe9d589)+'\x20to\x20push\x20the\x20configuration'),0x0;}}
|