@treasuredata/tdx 0.28.0 → 0.28.1
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/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/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/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.d.ts +6 -0
- package/dist/sdk/llm/model-factors.d.ts.map +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/llm/model-factors.js.map +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x34a0e5,_0x3b438f){const _0x1f7a28=a118_0x5376,_0x5b4219=_0x34a0e5();while(!![]){try{const _0x4e2356=-parseInt(_0x1f7a28(0x1d3))/0x1*(parseInt(_0x1f7a28(0x1ae))/0x2)+parseInt(_0x1f7a28(0x1c4))/0x3*(-parseInt(_0x1f7a28(0x1d8))/0x4)+-parseInt(_0x1f7a28(0x1d2))/0x5*(parseInt(_0x1f7a28(0x1ab))/0x6)+-parseInt(_0x1f7a28(0x1d1))/0x7+-parseInt(_0x1f7a28(0x1b0))/0x8+parseInt(_0x1f7a28(0x1c0))/0x9+-parseInt(_0x1f7a28(0x1df))/0xa*(-parseInt(_0x1f7a28(0x1c6))/0xb);if(_0x4e2356===_0x3b438f)break;else _0x5b4219['push'](_0x5b4219['shift']());}catch(_0x5da9c5){_0x5b4219['push'](_0x5b4219['shift']());}}}(a118_0x4097,0x8a032));import a118_0x428c2d from'chalk';import{withProgressSpinner}from'../../utils/spinner.js';export function buildSchemaResult(_0x2aa431){const _0x22c20d=a118_0x5376,_0x3841b0=_0x2aa431[_0x22c20d(0x1b7)][_0x22c20d(0x1dd)](_0x2cb85a=>({'column_name':_0x2cb85a[_0x22c20d(0x1be)],'column_type':_0x2cb85a[_0x22c20d(0x1ba)],'null':_0x22c20d(0x1a9),'key':null,'default':null,'extra':null}));return{..._0x2aa431,'columns':[{'name':'column_name','type':'varchar'},{'name':_0x22c20d(0x1ad),'type':_0x22c20d(0x1d9)},{'name':_0x22c20d(0x1cc),'type':'varchar'},{'name':_0x22c20d(0x1db),'type':_0x22c20d(0x1d9)},{'name':_0x22c20d(0x1b5),'type':_0x22c20d(0x1d9)},{'name':'extra','type':'varchar'}],'data':_0x3841b0};}export async function executeSchemaQuery(_0x244ea8,_0x447b4e,_0x3bb908){const _0x2c25e0=a118_0x5376,_0x3391aa=_0x244ea8['trim']()[_0x2c25e0(0x1ce)](/;+$/,''),_0x7c9aaa='SELECT\x20*\x20FROM\x20(\x0a'+_0x3391aa+_0x2c25e0(0x1de);_0x3bb908[_0x2c25e0(0x1b8)]&&console['error'](_0x2c25e0(0x1a7)+_0x7c9aaa);const _0x392a31=await withProgressSpinner('Fetching\x20schema...',async _0x2d48aa=>{const _0x1d7a00=_0x2c25e0,_0x50be8f=await _0x447b4e[_0x1d7a00(0x1c5)]['execute'](_0x7c9aaa,{'catalog':'td','schema':'information_schema','onJobId':_0x3d95ed=>{_0x2d48aa['setJobId'](_0x3d95ed);}});return _0x50be8f;},{'verbose':_0x3bb908['verbose']});return buildSchemaResult(_0x392a31[_0x2c25e0(0x1b6)]);}function a118_0x5376(_0x2d0536,_0x13a9f0){_0x2d0536=_0x2d0536-0x1a6;const _0x409791=a118_0x4097();let _0x53762b=_0x409791[_0x2d0536];return _0x53762b;}function columnName(_0x16a4f9){const _0x2948a7=a118_0x5376;return _0x16a4f9[_0x2948a7(0x1c9)]||_0x16a4f9[_0x2948a7(0x1d6)]||_0x16a4f9[_0x2948a7(0x1be)];}function formatFieldLine(_0x37f42f,_0x265e71,_0xae449f){const _0x1095d3=a118_0x5376,_0x2232e8=_0x37f42f!==_0x265e71?'\x20'+a118_0x428c2d[_0x1095d3(0x1b2)]('('+_0x265e71+')'):'';return _0x1095d3(0x1e0)+_0x37f42f+_0x2232e8+':\x20'+a118_0x428c2d[_0x1095d3(0x1bc)](_0xae449f);}function sortByColumnName(_0x47eea9){const _0x31d3b9=a118_0x5376;return[..._0x47eea9][_0x31d3b9(0x1c8)]((_0x4c16e6,_0x20f344)=>columnName(_0x4c16e6)[_0x31d3b9(0x1c2)](columnName(_0x20f344)));}function a118_0x4097(){const _0x2b1568=['20aTiycZ','\x20\x20\x20\x20','entries','matrixTableName','Schema\x20query:\x0a','Attributes','YES','fields','18kyvJmU','error','column_type','24dYeIrI','bold','792960YmCabx','push','dim','displayName','get','default','data','columns','verbose','set','type','groupingName','cyan','filter','name','some','3033873azINMO','\x20\x20\x20\x20\x20Display\x20names\x20in\x20()\x20are\x20for\x20console\x20reference\x20only.','localeCompare','length','3zoKVHs','query','16003229YPGxvy','behaviorName','sort','matrixColumnName','Unknown','behavior','null','parentTableName','replace','tableName','source','2805502aIKiKz','767570QSFkdl','55199qHGlNb','startsWith','size','parentColumn','slice','4234564kgwKRV','varchar','Tip:\x20Names\x20shown\x20are\x20column\x20names\x20for\x20segment\x20YAML\x20(attribute/source).','key','attribute','map','\x0a)\x20AS\x20segment_query\x20LIMIT\x200'];a118_0x4097=function(){return _0x2b1568;};return a118_0x4097();}export function displayFieldsHumanReadable(_0x1d9efb,_0x2e94c8){const _0x274704=a118_0x5376,_0x17e5ba=_0x1d9efb[_0x274704(0x1bd)](_0x4ec297=>_0x4ec297[_0x274704(0x1d0)]===_0x274704(0x1dc)),_0x116258=_0x1d9efb['filter'](_0x581f3c=>_0x581f3c[_0x274704(0x1d0)]===_0x274704(0x1cb)),_0x427e3d=new Map();for(const _0x1fc589 of _0x17e5ba){const _0x4cedc1=_0x1fc589[_0x274704(0x1bb)]||_0x1fc589[_0x274704(0x1cd)]||_0x274704(0x1ca),_0x195b6b=_0x427e3d['get'](_0x4cedc1);_0x195b6b?_0x195b6b[_0x274704(0x1aa)]['push'](_0x1fc589):_0x427e3d[_0x274704(0x1b9)](_0x4cedc1,{'displayName':_0x4cedc1,'tableName':_0x1fc589['parentTableName'],'fields':[_0x1fc589]});}const _0x3ccf58=new Map();for(const _0x5bfb49 of _0x116258){const _0x1f5f8e=_0x5bfb49[_0x274704(0x1c7)]||_0x274704(0x1ca),_0x47e5ff=_0x3ccf58[_0x274704(0x1b4)](_0x1f5f8e)||[];_0x47e5ff[_0x274704(0x1b1)](_0x5bfb49),_0x3ccf58[_0x274704(0x1b9)](_0x1f5f8e,_0x47e5ff);}console[_0x274704(0x1ac)]('\x0a'+a118_0x428c2d[_0x274704(0x1af)](_0x2e94c8));if(_0x427e3d[_0x274704(0x1d5)]>0x0){console[_0x274704(0x1ac)]('\x0a'+a118_0x428c2d[_0x274704(0x1b2)](_0x274704(0x1a8)));const _0x5b2599=[..._0x427e3d['entries']()]['sort']((_0x153883,_0x1f3f32)=>_0x153883[0x0]['localeCompare'](_0x1f3f32[0x0]));for(const [,_0x188d1e]of _0x5b2599){const _0x5ac3d9=_0x188d1e['tableName']&&_0x188d1e[_0x274704(0x1cf)]!==_0x188d1e[_0x274704(0x1b3)]?'\x20'+a118_0x428c2d[_0x274704(0x1b2)]('('+_0x188d1e[_0x274704(0x1cf)]+')'):'';console[_0x274704(0x1ac)]('\x20\x20'+a118_0x428c2d[_0x274704(0x1af)](_0x188d1e['displayName'])+_0x5ac3d9);for(const _0x26b32f of sortByColumnName(_0x188d1e[_0x274704(0x1aa)])){console[_0x274704(0x1ac)](formatFieldLine(columnName(_0x26b32f),_0x26b32f[_0x274704(0x1be)],_0x26b32f[_0x274704(0x1ba)]));}}}if(_0x3ccf58[_0x274704(0x1d5)]>0x0){console['error']('\x0a'+a118_0x428c2d['dim']('Behaviors'));const _0x5c4494=[..._0x3ccf58[_0x274704(0x1e1)]()][_0x274704(0x1c8)]((_0x419f26,_0x1b1161)=>_0x419f26[0x0][_0x274704(0x1c2)](_0x1b1161[0x0]));for(const [_0x19f573,_0x4d58a9]of _0x5c4494){const _0x24157b=_0x4d58a9[0x0],_0x3854f0=_0x24157b?.[_0x274704(0x1a6)];if(_0x3854f0){const _0x36dc2d=_0x3854f0!==_0x19f573?'\x20'+a118_0x428c2d['dim']('('+_0x19f573+')'):'';console['error']('\x20\x20'+a118_0x428c2d[_0x274704(0x1af)](_0x3854f0)+_0x36dc2d);}else{const _0x172fee=_0x24157b?.[_0x274704(0x1cd)]||'';console[_0x274704(0x1ac)]('\x20\x20'+a118_0x428c2d[_0x274704(0x1af)](_0x19f573)+(_0x172fee?'\x20'+a118_0x428c2d[_0x274704(0x1b2)]('('+_0x172fee+')'):''));}for(const _0x158a45 of sortByColumnName(_0x4d58a9)){const _0x4ad569=_0x158a45[_0x274704(0x1be)][_0x274704(0x1d4)](_0x19f573+'.')?_0x158a45['name'][_0x274704(0x1d7)](_0x19f573[_0x274704(0x1c3)]+0x1):_0x158a45[_0x274704(0x1be)];console[_0x274704(0x1ac)](formatFieldLine(columnName(_0x158a45),_0x4ad569,_0x158a45[_0x274704(0x1ba)]));}}}const _0x1a19e4=_0x1d9efb[_0x274704(0x1bf)](_0x57b688=>_0x57b688[_0x274704(0x1c9)]||_0x57b688[_0x274704(0x1a6)]);_0x1a19e4&&(console['error']('\x0a'+a118_0x428c2d['dim'](_0x274704(0x1da))),console[_0x274704(0x1ac)](a118_0x428c2d['dim'](_0x274704(0x1c1)))),console[_0x274704(0x1ac)]('');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4e4c6a,_0x1e44a6){const _0xf61e07=a119_0x1741,_0x270090=_0x4e4c6a();while(!![]){try{const _0x2a579d=-parseInt(_0xf61e07(0x112))/0x1+parseInt(_0xf61e07(0x111))/0x2+-parseInt(_0xf61e07(0x118))/0x3+-parseInt(_0xf61e07(0x114))/0x4+-parseInt(_0xf61e07(0x10f))/0x5+-parseInt(_0xf61e07(0x110))/0x6+parseInt(_0xf61e07(0x10e))/0x7*(parseInt(_0xf61e07(0x119))/0x8);if(_0x2a579d===_0x1e44a6)break;else _0x270090['push'](_0x270090['shift']());}catch(_0x30b1cd){_0x270090['push'](_0x270090['shift']());}}}(a119_0x29c8,0x5724f));import{readdirSync,statSync}from'fs';function a119_0x29c8(){const _0x2d5e63=['.yaml','join','relative','name','6713LVJRRv','3257750ayCbKn','2151300ryqBpv','784254mjsPuJ','195822mrdjtH','push','1926520FbKgKZ','dirname','toLowerCase','extname','1519023GunCWF','18008OabCbb','isDirectory','isFile','endsWith'];a119_0x29c8=function(){return _0x2d5e63;};return a119_0x29c8();}function a119_0x1741(_0x276a5c,_0x1abac5){_0x276a5c=_0x276a5c-0x10d;const _0x29c8bf=a119_0x29c8();let _0x17416b=_0x29c8bf[_0x276a5c];return _0x17416b;}import a119_0x262e1c from'path';export function findYamlFiles(_0x5edb21){const _0x55404e=[];function _0x5a3a6e(_0x391906){const _0x12c0f0=a119_0x1741,_0x537763=readdirSync(_0x391906,{'withFileTypes':!![]});for(const _0x4e1274 of _0x537763){const _0x5c2f3c=a119_0x262e1c[_0x12c0f0(0x11e)](_0x391906,_0x4e1274[_0x12c0f0(0x10d)]);if(_0x4e1274[_0x12c0f0(0x11a)]())_0x5a3a6e(_0x5c2f3c);else(_0x4e1274['name'][_0x12c0f0(0x11c)]('.yml')||_0x4e1274[_0x12c0f0(0x10d)][_0x12c0f0(0x11c)](_0x12c0f0(0x11d)))&&_0x55404e[_0x12c0f0(0x113)](_0x5c2f3c);}}return _0x5a3a6e(_0x5edb21),_0x55404e;}export function discoverYamlFiles(_0x2af79c){const _0x33d5c3=findYamlFiles(_0x2af79c);return _0x33d5c3['map'](_0x29bbbc=>{const _0x3aca81=a119_0x1741,_0x3cc442=a119_0x262e1c[_0x3aca81(0x11f)](_0x2af79c,_0x29bbbc),_0x3a4784=a119_0x262e1c[_0x3aca81(0x115)](_0x3cc442);return{'absolutePath':_0x29bbbc,'relativePath':_0x3cc442,'folderPath':_0x3a4784==='.'?'':_0x3a4784};});}export function isYamlFile(_0xca412a){const _0x403d15=a119_0x1741;try{const _0x42fce2=statSync(_0xca412a);if(!_0x42fce2[_0x403d15(0x11b)]())return![];const _0x66443e=a119_0x262e1c[_0x403d15(0x117)](_0xca412a)[_0x403d15(0x116)]();return _0x66443e==='.yml'||_0x66443e===_0x403d15(0x11d);}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x8776cf,_0x44aedc){const _0x11d314=a120_0x56ad,_0x58c4cf=_0x8776cf();while(!![]){try{const _0x35ff74=parseInt(_0x11d314(0x1ea))/0x1+parseInt(_0x11d314(0x1ae))/0x2+parseInt(_0x11d314(0x1d1))/0x3*(-parseInt(_0x11d314(0x1b5))/0x4)+-parseInt(_0x11d314(0x1c8))/0x5+-parseInt(_0x11d314(0x1cf))/0x6+-parseInt(_0x11d314(0x1ac))/0x7+parseInt(_0x11d314(0x1b2))/0x8*(parseInt(_0x11d314(0x1a5))/0x9);if(_0x35ff74===_0x44aedc)break;else _0x58c4cf['push'](_0x58c4cf['shift']());}catch(_0x515e67){_0x58c4cf['push'](_0x58c4cf['shift']());}}}(a120_0x1f96,0x96ce6));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;function a120_0x1f96(){const _0x3b7105=['get','condition','stages','reentry','entry_criteria','exit_criteria','versions','values','bundle_name','schedule','merged','nameMapping','yaml','stringify','push','notification','type','exclude','connector_config','goal','992128mismwS','activation_template_id','activations','null','some','versionNumber','slice','entries','branches','journey','216IjtIad','decision_point','bundle_id','rule','max','keys','item','6069504vHrKUE','milestone','2242340Lvnohl','endsWith','columns','replace','540304MTrtHN','attributes','find','1601692RvmgdD','behavior','map','journeyBundleName','journeyStages','string','all_columns','sort','journeys','name','include','isArray','set','wait','description','with','version_number','.yaml','join','3865605UtCxls','conditions','object','startsWith','segment','activation','from','4052814RjWYfW','length','6UJGVZB','latest','steps','toLowerCase','segments'];a120_0x1f96=function(){return _0x3b7105;};return a120_0x1f96();}const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x196e5d){const _0x5bcc3e=a120_0x56ad;return _0x196e5d[_0x5bcc3e(0x1d4)]()[_0x5bcc3e(0x1b1)](/\s+/g,'_')[_0x5bcc3e(0x1b1)](/[^a-z0-9_]/g,'')[_0x5bcc3e(0x1b1)](/_+/g,'_')[_0x5bcc3e(0x1b1)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x8cbd9c){const _0x157997=a120_0x56ad,_0x36c0a5=_0x8cbd9c['match'](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x36c0a5){const _0x514210=_0x36c0a5[0x1][_0x157997(0x1d4)](),_0x1944b0=_0x36c0a5[0x2],_0x544ce3=_0x1944b0[_0x157997(0x1b1)](/-/g,'')[_0x157997(0x1a1)](0x0,0x4)[_0x157997(0x1d4)]();return _0x514210+'_'+_0x544ce3;}const _0x2ffa4b=_0x8cbd9c['match'](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x2ffa4b){const _0x2eb04a=_0x2ffa4b[0x1],_0x31d2ef=_0x2ffa4b[0x2][_0x157997(0x1d4)](),_0x540f6e=_0x2eb04a[_0x157997(0x1b1)](/-/g,'')[_0x157997(0x1a1)](0x0,0x4)['toLowerCase']();return _0x31d2ef+'_'+_0x540f6e;}return undefined;}function stableStringify(_0x4f652b){const _0x1c38c5=a120_0x56ad;if(Array['isArray'](_0x4f652b))return'['+_0x4f652b[_0x1c38c5(0x1b7)](_0x29c7ff=>stableStringify(_0x29c7ff))[_0x1c38c5(0x1c7)](',')+']';if(_0x4f652b&&typeof _0x4f652b===_0x1c38c5(0x1ca)){const _0x1cd34d=_0x4f652b,_0xcbadb9=Object[_0x1c38c5(0x1aa)](_0x1cd34d)[_0x1c38c5(0x1bc)](),_0x1ae8bb=_0xcbadb9[_0x1c38c5(0x1b7)](_0x51ca0a=>'\x22'+_0x51ca0a+'\x22:'+stableStringify(_0x1cd34d[_0x51ca0a]));return'{'+_0x1ae8bb[_0x1c38c5(0x1c7)](',')+'}';}const _0x3b9b7c=JSON['stringify'](_0x4f652b);return _0x3b9b7c===undefined?_0x1c38c5(0x1ed):_0x3b9b7c;}export function consolidateActivationsByContent(_0x4c9bab){const _0x3e7f78=a120_0x56ad,_0x34534f={},_0x53be24=new Map(),_0x32b170=new Map();for(const _0x3d356b of _0x4c9bab){if(!_0x3d356b)continue;for(const [_0x36323b,_0x30ca5a]of Object[_0x3e7f78(0x1a2)](_0x3d356b)){const _0x332d3c={'connection':_0x30ca5a['connection'],..._0x30ca5a[_0x3e7f78(0x1bb)]!==undefined&&{'all_columns':_0x30ca5a[_0x3e7f78(0x1bb)]},..._0x30ca5a[_0x3e7f78(0x1b0)]!==undefined&&{'columns':_0x30ca5a[_0x3e7f78(0x1b0)]},..._0x30ca5a[_0x3e7f78(0x1b6)]!==undefined&&{'behavior':_0x30ca5a[_0x3e7f78(0x1b6)]},..._0x30ca5a[_0x3e7f78(0x1df)]!==undefined&&{'schedule':_0x30ca5a[_0x3e7f78(0x1df)]},..._0x30ca5a[_0x3e7f78(0x1e5)]!==undefined&&{'notification':_0x30ca5a['notification']},..._0x30ca5a[_0x3e7f78(0x1e8)]!==undefined&&{'connector_config':_0x30ca5a[_0x3e7f78(0x1e8)]},..._0x30ca5a[_0x3e7f78(0x1eb)]!==undefined&&{'activation_template_id':_0x30ca5a[_0x3e7f78(0x1eb)]}},_0x335c23=stableStringify(_0x332d3c),_0x2428e8=_0x32b170[_0x3e7f78(0x1d6)](_0x335c23);_0x2428e8?_0x53be24[_0x3e7f78(0x1c1)](_0x36323b,_0x2428e8):(_0x34534f[_0x36323b]=_0x30ca5a,_0x53be24[_0x3e7f78(0x1c1)](_0x36323b,_0x36323b),_0x32b170[_0x3e7f78(0x1c1)](_0x335c23,_0x36323b));}}return{'merged':_0x34534f,'nameMapping':_0x53be24};}export function updateActivationReferences(_0x24c512,_0x5000c1){const _0xe91cd0=a120_0x56ad;if(!_0x24c512)return;for(const _0x1767f8 of _0x24c512){if(!_0x1767f8[_0xe91cd0(0x1d3)])continue;for(const _0x3bdd82 of _0x1767f8['steps']){if(_0x3bdd82[_0xe91cd0(0x1e6)]===_0xe91cd0(0x1cd)&&_0x3bdd82['with']?.[_0xe91cd0(0x1cd)]){const _0x44c3c5=_0x5000c1['get'](_0x3bdd82[_0xe91cd0(0x1c4)][_0xe91cd0(0x1cd)]);_0x44c3c5&&_0x44c3c5!==_0x3bdd82['with']['activation']&&(_0x3bdd82['with'][_0xe91cd0(0x1cd)]=_0x44c3c5);}}}}export function consolidateSegmentsByContent(_0x19ca7c,_0x52482a){const _0x291064=a120_0x56ad,_0x5da12f={},_0xc354e=new Map(),_0x817d2e=new Map();for(const _0x571741 of _0x19ca7c){if(!_0x571741)continue;for(const [_0x27908c,_0x2e5e4b]of Object[_0x291064(0x1a2)](_0x571741)){if(!_0x2e5e4b[_0x291064(0x1a8)]){_0x5da12f[_0x27908c]=_0x2e5e4b,_0xc354e[_0x291064(0x1c1)](_0x27908c,_0x27908c);continue;}const _0x5eac0e=_0x2e5e4b[_0x291064(0x1c3)]&&_0x2e5e4b['description']['trim']()?_0x2e5e4b[_0x291064(0x1c3)]:undefined,_0x3fb221=JSON[_0x291064(0x1e3)]({'description':_0x5eac0e,'rule':deepSortObject(_0x2e5e4b[_0x291064(0x1a8)])}),_0x5d0f21=_0x817d2e[_0x291064(0x1d6)](_0x3fb221);if(_0x5d0f21){const _0x520f28={..._0x2e5e4b['description']!==undefined&&{'description':_0x2e5e4b[_0x291064(0x1c3)]},'rule':_0x2e5e4b[_0x291064(0x1a8)]?deepSortObject(_0x2e5e4b[_0x291064(0x1a8)]):_0x2e5e4b[_0x291064(0x1a8)]};if(_0x27908c<_0x5d0f21){_0x5da12f[_0x27908c]=_0x520f28,delete _0x5da12f[_0x5d0f21];for(const [_0x55e6fc,_0x5d64d4]of _0xc354e['entries']()){_0x5d64d4===_0x5d0f21&&_0xc354e[_0x291064(0x1c1)](_0x55e6fc,_0x27908c);}_0xc354e[_0x291064(0x1c1)](_0x27908c,_0x27908c),_0x817d2e[_0x291064(0x1c1)](_0x3fb221,_0x27908c);}else _0x5da12f[_0x5d0f21]=_0x520f28,_0xc354e[_0x291064(0x1c1)](_0x27908c,_0x5d0f21);}else{let _0x5ab118=_0x27908c;if(_0x52482a){const _0x5280bc=_0x52482a[_0x291064(0x1d6)](_0x3fb221);_0x5280bc&&_0x5280bc[_0x291064(0x1d0)]>0x0&&(_0x5ab118=_0x5280bc[_0x291064(0x1a1)]()[_0x291064(0x1bc)]()[0x0]);}const _0x58e026={..._0x2e5e4b[_0x291064(0x1c3)]!==undefined&&{'description':_0x2e5e4b[_0x291064(0x1c3)]},'rule':_0x2e5e4b[_0x291064(0x1a8)]?deepSortObject(_0x2e5e4b['rule']):_0x2e5e4b['rule']};_0x5da12f[_0x5ab118]=_0x58e026,_0xc354e[_0x291064(0x1c1)](_0x27908c,_0x5ab118),_0x817d2e['set'](_0x3fb221,_0x5ab118);}}}return{'merged':_0x5da12f,'nameMapping':_0xc354e};}export function updateSegmentReferences(_0xfb3f68,_0x34e6b4){const _0x3a303c=a120_0x56ad;if(!_0xfb3f68)return;for(const _0x3d799e of _0xfb3f68){if(_0x3d799e[_0x3a303c(0x1da)]?.[_0x3a303c(0x1cc)]){const _0x5487ff=_0x34e6b4['get'](_0x3d799e[_0x3a303c(0x1da)]['segment']);_0x5487ff&&(_0x3d799e[_0x3a303c(0x1da)][_0x3a303c(0x1cc)]=_0x5487ff);}if(_0x3d799e['exit_criteria'])for(const _0x4f35e0 of _0x3d799e[_0x3a303c(0x1db)]){if(_0x4f35e0[_0x3a303c(0x1cc)]){const _0xf8927f=_0x34e6b4[_0x3a303c(0x1d6)](_0x4f35e0[_0x3a303c(0x1cc)]);_0xf8927f&&(_0x4f35e0[_0x3a303c(0x1cc)]=_0xf8927f);}}if(_0x3d799e['milestone']?.[_0x3a303c(0x1cc)]){const _0x28eef0=_0x34e6b4[_0x3a303c(0x1d6)](_0x3d799e[_0x3a303c(0x1ad)][_0x3a303c(0x1cc)]);_0x28eef0&&(_0x3d799e[_0x3a303c(0x1ad)][_0x3a303c(0x1cc)]=_0x28eef0);}if(_0x3d799e[_0x3a303c(0x1d3)])for(const _0x5a03f6 of _0x3d799e['steps']){if(_0x5a03f6[_0x3a303c(0x1e6)]===_0x3a303c(0x1a6)&&_0x5a03f6['with']?.['branches'])for(const _0xd88de0 of _0x5a03f6[_0x3a303c(0x1c4)][_0x3a303c(0x1a3)]){if(_0xd88de0['segment']){const _0x53b5c2=_0x34e6b4[_0x3a303c(0x1d6)](_0xd88de0[_0x3a303c(0x1cc)]);_0x53b5c2&&(_0xd88de0[_0x3a303c(0x1cc)]=_0x53b5c2);}}if(_0x5a03f6[_0x3a303c(0x1e6)]===_0x3a303c(0x1c2)&&_0x5a03f6['with']?.[_0x3a303c(0x1d7)]?.[_0x3a303c(0x1cc)]){const _0x57300c=_0x34e6b4[_0x3a303c(0x1d6)](_0x5a03f6[_0x3a303c(0x1c4)]['condition'][_0x3a303c(0x1cc)]);_0x57300c&&(_0x5a03f6[_0x3a303c(0x1c4)][_0x3a303c(0x1d7)][_0x3a303c(0x1cc)]=_0x57300c);}}}}export function updateSegmentRefsInSegments(_0x31a768,_0x127b66){const _0x1ac269=a120_0x56ad;for(const _0xff0fb5 of Object[_0x1ac269(0x1dd)](_0x31a768)){_0xff0fb5[_0x1ac269(0x1a8)]&&updateSegmentRefsInRule(_0xff0fb5['rule'],_0x127b66);}}function updateSegmentRefsInRule(_0x304fde,_0x1fe3fc){const _0x3e7bee=a120_0x56ad;if(_0x304fde===null||typeof _0x304fde!==_0x3e7bee(0x1ca))return;if(Array[_0x3e7bee(0x1c0)](_0x304fde)){for(const _0x146900 of _0x304fde){updateSegmentRefsInRule(_0x146900,_0x1fe3fc);}return;}const _0x3f9ae9=_0x304fde;if((_0x3f9ae9[_0x3e7bee(0x1e6)]===_0x3e7bee(0x1bf)||_0x3f9ae9[_0x3e7bee(0x1e6)]===_0x3e7bee(0x1e7))&&typeof _0x3f9ae9['segment']===_0x3e7bee(0x1ba)){const _0x43373d=_0x1fe3fc[_0x3e7bee(0x1d6)](_0x3f9ae9[_0x3e7bee(0x1cc)]);_0x43373d&&(_0x3f9ae9[_0x3e7bee(0x1cc)]=_0x43373d);}if(_0x3f9ae9[_0x3e7bee(0x1c9)]&&Array[_0x3e7bee(0x1c0)](_0x3f9ae9[_0x3e7bee(0x1c9)]))for(const _0x34af50 of _0x3f9ae9['conditions']){updateSegmentRefsInRule(_0x34af50,_0x1fe3fc);}}export function buildJourneysArray(_0x58ce3b){const _0x3de1c5=a120_0x56ad,_0x577bee=Math[_0x3de1c5(0x1a9)](..._0x58ce3b[_0x3de1c5(0x1b7)](_0x2813f3=>_0x2813f3['item'][_0x3de1c5(0x1a0)]||0x0));return _0x58ce3b['map'](_0x1ca39b=>{const _0x5eb67d=_0x3de1c5,_0x5625e2=(_0x1ca39b[_0x5eb67d(0x1ab)][_0x5eb67d(0x1a0)]||0x0)===_0x577bee,_0x15453a=_0x1ca39b[_0x5eb67d(0x1e2)]['journeys']?.[0x0],_0x5ba7e8={'version':_0x15453a?.['version']||_0x1ca39b[_0x5eb67d(0x1e2)]['version']||_0x1ca39b[_0x5eb67d(0x1ab)][_0x5eb67d(0x1be)],'state':_0x1ca39b[_0x5eb67d(0x1ab)]['state']==='launched'?'launched':'draft','stages':_0x15453a?.[_0x5eb67d(0x1d8)]||_0x1ca39b[_0x5eb67d(0x1e2)]['stages']||[],'id':_0x15453a?.['id']||_0x1ca39b[_0x5eb67d(0x1e2)]['id'],'version_number':_0x15453a?.[_0x5eb67d(0x1c5)]||_0x1ca39b['yaml']['version_number']};return _0x5625e2&&(_0x5ba7e8[_0x5eb67d(0x1d2)]=!![]),_0x5ba7e8;});}export function buildMergedJourneyDef(_0x2f66fa,_0x10a4b1){const _0x4e36b2=a120_0x56ad,_0x448bb1=_0x2f66fa[0x0][_0x4e36b2(0x1e2)],_0xe9856e=buildJourneysArray(_0x2f66fa),{merged:_0x114e17,nameMapping:_0x277dc5}=consolidateSegmentsByContent(_0x2f66fa[_0x4e36b2(0x1b7)](_0x4a3b21=>_0x4a3b21['yaml']['segments']),_0x10a4b1);updateSegmentRefsInSegments(_0x114e17,_0x277dc5);const _0x36be18=Array[_0x4e36b2(0x1ce)](_0x277dc5[_0x4e36b2(0x1a2)]())[_0x4e36b2(0x19f)](([_0x58660e,_0x11cd18])=>_0x58660e!==_0x11cd18&&_0x58660e[_0x4e36b2(0x1cb)](_0x4e36b2(0x1da)));let _0x34d2d3=_0x114e17,_0x33f678=new Map();if(_0x36be18){const _0x331d0e=consolidateSegmentsByContent([_0x114e17],_0x10a4b1);_0x34d2d3=_0x331d0e[_0x4e36b2(0x1e0)],_0x33f678=_0x331d0e[_0x4e36b2(0x1e1)];}const _0x9b80e7=new Map(_0x277dc5);for(const [_0x28938c,_0x425cdb]of _0x33f678['entries']()){_0x9b80e7[_0x4e36b2(0x1c1)](_0x28938c,_0x425cdb);}for(const [_0x5f0006,_0x4eef8d]of _0x9b80e7[_0x4e36b2(0x1a2)]()){let _0x9c8a92=_0x4eef8d,_0x2c8e83=0x0;while(_0x9b80e7['has'](_0x9c8a92)&&_0x9b80e7['get'](_0x9c8a92)!==_0x9c8a92&&_0x2c8e83<MAX_MAPPING_CHAIN_DEPTH){_0x9c8a92=_0x9b80e7[_0x4e36b2(0x1d6)](_0x9c8a92),_0x2c8e83++;}_0x9c8a92!==_0x4eef8d&&_0x9b80e7[_0x4e36b2(0x1c1)](_0x5f0006,_0x9c8a92);}for(const _0x2a3eda of _0xe9856e){updateSegmentReferences(_0x2a3eda[_0x4e36b2(0x1d8)],_0x9b80e7);}const {merged:_0x4efbe5,nameMapping:_0x4b4a6c}=consolidateActivationsByContent(_0x2f66fa[_0x4e36b2(0x1b7)](_0x51ec29=>_0x51ec29[_0x4e36b2(0x1e2)][_0x4e36b2(0x1ec)]));for(const _0x16861d of _0xe9856e){updateActivationReferences(_0x16861d[_0x4e36b2(0x1d8)],_0x4b4a6c);}let _0x47b26b=_0x448bb1[_0x4e36b2(0x1e9)];if(_0x47b26b?.[_0x4e36b2(0x1cc)]){const _0x32c7a7=_0x9b80e7[_0x4e36b2(0x1d6)](_0x47b26b['segment']);_0x32c7a7&&(_0x47b26b={..._0x47b26b,'segment':_0x32c7a7});}for(const _0x18a061 of _0xe9856e){if(_0x18a061[_0x4e36b2(0x1e9)]?.['segment']){const _0x381f06=_0x9b80e7[_0x4e36b2(0x1d6)](_0x18a061[_0x4e36b2(0x1e9)][_0x4e36b2(0x1cc)]);_0x381f06&&(_0x18a061['goal']={..._0x18a061[_0x4e36b2(0x1e9)],'segment':_0x381f06});}}return{'type':_0x4e36b2(0x1a4),'name':_0x448bb1[_0x4e36b2(0x1be)],'description':_0x448bb1[_0x4e36b2(0x1c3)],'goal':_0x47b26b,'reentry':_0x448bb1[_0x4e36b2(0x1d9)],'segments':Object[_0x4e36b2(0x1aa)](_0x34d2d3)[_0x4e36b2(0x1d0)]>0x0?_0x34d2d3:undefined,'activations':Object[_0x4e36b2(0x1aa)](_0x4efbe5)[_0x4e36b2(0x1d0)]>0x0?_0x4efbe5:undefined,'journeys':_0xe9856e,'bundle_id':_0x448bb1[_0x4e36b2(0x1a7)],'bundle_name':_0x448bb1[_0x4e36b2(0x1de)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x12d027,_0x1f4d20,_0x530e32,_0x278f18){const _0x3e5170=a120_0x56ad,_0x1661f5=_0x12d027+':'+_0x1f4d20,_0x534c9f=_0x530e32[_0x3e5170(0x1d6)](_0x1661f5);if(_0x534c9f)return _0x534c9f;const _0x480671=await _0x278f18(_0x12d027),_0x169edb=_0x480671[_0x3e5170(0x1b3)][_0x3e5170(0x1b8)]||_0x480671[_0x3e5170(0x1b3)]['name'],_0x2aadb1=_0x480671[_0x3e5170(0x1b3)][_0x3e5170(0x1b9)][_0x3e5170(0x1b4)](_0x3e94c1=>String(_0x3e94c1['id'])===String(_0x1f4d20)),_0x46809d=_0x2aadb1?.[_0x3e5170(0x1be)]||_0x1f4d20,_0x455e9c={'journeyName':_0x169edb,'stageName':_0x46809d};return _0x530e32[_0x3e5170(0x1c1)](_0x1661f5,_0x455e9c),_0x455e9c;}export function formatApiJourneyName(_0x48f381,_0x577180){return _0x577180+'\x20('+_0x48f381+')';}function a120_0x56ad(_0x4ebd56,_0x535669){_0x4ebd56=_0x4ebd56-0x19f;const _0x1f968a=a120_0x1f96();let _0x56ad72=_0x1f968a[_0x4ebd56];return _0x56ad72;}export function isLocalJourneyRef(_0x506e56){const _0x2e4c32=a120_0x56ad;return _0x506e56['endsWith']('.yml')||_0x506e56[_0x2e4c32(0x1af)](_0x2e4c32(0x1c6));}export function buildLocalRuleToNameMapping(_0x230239){const _0x280e96=a120_0x56ad,_0x151081=new Map();if(!_0x230239)return _0x151081;for(const [_0x31fedc,_0x10ac0a]of Object[_0x280e96(0x1a2)](_0x230239)){if(_0x10ac0a[_0x280e96(0x1a8)]){const _0x3108b7=serializeRule(_0x10ac0a[_0x280e96(0x1a8)]),_0x1b5ebb=_0x151081[_0x280e96(0x1d6)](_0x3108b7)||[];_0x1b5ebb[_0x280e96(0x1e4)](_0x31fedc),_0x151081[_0x280e96(0x1c1)](_0x3108b7,_0x1b5ebb);}}return _0x151081;}export function buildLocalRuleToNameMappingFromJourney(_0x2eae46){const _0xb5a425=a120_0x56ad,_0x49db3b=_0x2eae46[_0xb5a425(0x1d5)];if(!_0x49db3b)return new Map();const _0x43ae20=collectSegmentUsageCounts(_0x2eae46),_0x113730=new Map();let _0x2154f4=0x0;for(const [_0x169d98,_0x18517a]of Object[_0xb5a425(0x1a2)](_0x49db3b)){if(!_0x18517a[_0xb5a425(0x1a8)]){_0x2154f4++;continue;}const _0x2ae2ce=serializeRule(_0x18517a[_0xb5a425(0x1a8)]),_0x54b096=_0x113730[_0xb5a425(0x1d6)](_0x2ae2ce)||[];_0x54b096[_0xb5a425(0x1e4)]({'name':_0x169d98,'index':_0x2154f4}),_0x113730[_0xb5a425(0x1c1)](_0x2ae2ce,_0x54b096),_0x2154f4++;}const _0x3d080b=new Map();for(const [_0x4a67a2,_0x872a95]of _0x113730){const _0x3beba8=_0x872a95['slice']()[_0xb5a425(0x1bc)]((_0x2e7bd3,_0x3f310d)=>{const _0x33cc79=_0xb5a425,_0x35bb97=_0x43ae20[_0x33cc79(0x1d6)](_0x2e7bd3[_0x33cc79(0x1be)])||0x0,_0x415dbe=_0x43ae20[_0x33cc79(0x1d6)](_0x3f310d[_0x33cc79(0x1be)])||0x0;if(_0x35bb97!==_0x415dbe)return _0x415dbe-_0x35bb97;return _0x2e7bd3['index']-_0x3f310d['index'];})[_0xb5a425(0x1b7)](_0x2367fd=>_0x2367fd[_0xb5a425(0x1be)]);_0x3d080b[_0xb5a425(0x1c1)](_0x4a67a2,_0x3beba8);}return _0x3d080b;}export function collectSegmentUsageCounts(_0x6d8bae){const _0x119646=a120_0x56ad,_0x42dba4=new Map(),_0x186c7a=_0xe7d926=>{const _0x34cd69=a120_0x56ad;if(!_0xe7d926)return;_0x42dba4[_0x34cd69(0x1c1)](_0xe7d926,(_0x42dba4['get'](_0xe7d926)||0x0)+0x1);},_0x4ebb33=_0x3fde2a=>{const _0x874f2=a120_0x56ad;for(const _0x36cebe of _0x3fde2a){_0x186c7a(_0x36cebe[_0x874f2(0x1da)]?.[_0x874f2(0x1cc)]);if(_0x36cebe[_0x874f2(0x1db)])for(const _0xc228b0 of _0x36cebe['exit_criteria']){_0x186c7a(_0xc228b0[_0x874f2(0x1cc)]);}_0x186c7a(_0x36cebe[_0x874f2(0x1ad)]?.['segment']);if(_0x36cebe[_0x874f2(0x1d3)])for(const _0x247e37 of _0x36cebe['steps']){if(_0x247e37[_0x874f2(0x1e6)]==='decision_point')for(const _0x12da86 of _0x247e37['with'][_0x874f2(0x1a3)]){_0x186c7a(_0x12da86[_0x874f2(0x1cc)]);}else _0x247e37[_0x874f2(0x1e6)]===_0x874f2(0x1c2)&&_0x186c7a(_0x247e37[_0x874f2(0x1c4)][_0x874f2(0x1d7)]?.[_0x874f2(0x1cc)]);}}};_0x186c7a(_0x6d8bae['goal']?.[_0x119646(0x1cc)]);if(_0x6d8bae[_0x119646(0x1bd)])for(const _0x5b3937 of _0x6d8bae[_0x119646(0x1bd)]){_0x186c7a(_0x5b3937[_0x119646(0x1e9)]?.[_0x119646(0x1cc)]),_0x4ebb33(_0x5b3937[_0x119646(0x1d8)]);}_0x6d8bae[_0x119646(0x1d8)]&&_0x4ebb33(_0x6d8bae[_0x119646(0x1d8)]);if(_0x6d8bae[_0x119646(0x1dc)])for(const _0x5bbf0c of _0x6d8bae[_0x119646(0x1dc)]){_0x4ebb33(_0x5bbf0c[_0x119646(0x1d8)]);}return _0x42dba4;}
|
|
1
|
+
(function(_0x1e998e,_0x40dede){const _0x5df7a2=a120_0x33c8,_0x323096=_0x1e998e();while(!![]){try{const _0x43d4ea=parseInt(_0x5df7a2(0x9f))/0x1+-parseInt(_0x5df7a2(0xd3))/0x2+parseInt(_0x5df7a2(0xc0))/0x3+parseInt(_0x5df7a2(0x99))/0x4+parseInt(_0x5df7a2(0xbb))/0x5*(parseInt(_0x5df7a2(0xd7))/0x6)+-parseInt(_0x5df7a2(0xb6))/0x7+parseInt(_0x5df7a2(0xe4))/0x8;if(_0x43d4ea===_0x40dede)break;else _0x323096['push'](_0x323096['shift']());}catch(_0x4c9e46){_0x323096['push'](_0x323096['shift']());}}}(a120_0x20e4,0xe1e20));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;function a120_0x33c8(_0x43dbb7,_0x496d8e){_0x43dbb7=_0x43dbb7-0x97;const _0x20e462=a120_0x20e4();let _0x33c8d7=_0x20e462[_0x43dbb7];return _0x33c8d7;}const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0xb9be6){const _0x3bb5b4=a120_0x33c8;return _0xb9be6[_0x3bb5b4(0xde)]()['replace'](/\s+/g,'_')['replace'](/[^a-z0-9_]/g,'')[_0x3bb5b4(0xe6)](/_+/g,'_')[_0x3bb5b4(0xe6)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x395a33){const _0x529c43=a120_0x33c8,_0x4679b4=_0x395a33[_0x529c43(0xbe)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x4679b4){const _0x5b210a=_0x4679b4[0x1][_0x529c43(0xde)](),_0x2b1f16=_0x4679b4[0x2],_0x55be92=_0x2b1f16[_0x529c43(0xe6)](/-/g,'')[_0x529c43(0xd9)](0x0,0x4)[_0x529c43(0xde)]();return _0x5b210a+'_'+_0x55be92;}const _0x532858=_0x395a33[_0x529c43(0xbe)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x532858){const _0x3c0264=_0x532858[0x1],_0x52033f=_0x532858[0x2]['toLowerCase'](),_0x160857=_0x3c0264[_0x529c43(0xe6)](/-/g,'')[_0x529c43(0xd9)](0x0,0x4)[_0x529c43(0xde)]();return _0x52033f+'_'+_0x160857;}return undefined;}function stableStringify(_0x15dbec){const _0x424a91=a120_0x33c8;if(Array[_0x424a91(0xb7)](_0x15dbec))return'['+_0x15dbec[_0x424a91(0xc1)](_0x2448ae=>stableStringify(_0x2448ae))[_0x424a91(0xaa)](',')+']';if(_0x15dbec&&typeof _0x15dbec===_0x424a91(0xcd)){const _0x1d329b=_0x15dbec,_0x284d49=Object[_0x424a91(0xe7)](_0x1d329b)[_0x424a91(0x9b)](),_0x5c9897=_0x284d49[_0x424a91(0xc1)](_0x5a2dac=>'\x22'+_0x5a2dac+'\x22:'+stableStringify(_0x1d329b[_0x5a2dac]));return'{'+_0x5c9897[_0x424a91(0xaa)](',')+'}';}const _0x334a77=JSON[_0x424a91(0xe8)](_0x15dbec);return _0x334a77===undefined?_0x424a91(0xda):_0x334a77;}export function consolidateActivationsByContent(_0x5b99a6){const _0x4a1766=a120_0x33c8,_0x536b99={},_0x3323d2=new Map(),_0x17c726=new Map();for(const _0x5b5565 of _0x5b99a6){if(!_0x5b5565)continue;for(const [_0x3cd4b6,_0x1220c0]of Object['entries'](_0x5b5565)){const _0x33f927={'connection':_0x1220c0['connection'],..._0x1220c0[_0x4a1766(0xa7)]!==undefined&&{'all_columns':_0x1220c0[_0x4a1766(0xa7)]},..._0x1220c0[_0x4a1766(0xc6)]!==undefined&&{'columns':_0x1220c0['columns']},..._0x1220c0['behavior']!==undefined&&{'behavior':_0x1220c0[_0x4a1766(0xab)]},..._0x1220c0[_0x4a1766(0xcf)]!==undefined&&{'schedule':_0x1220c0[_0x4a1766(0xcf)]},..._0x1220c0[_0x4a1766(0xe3)]!==undefined&&{'notification':_0x1220c0[_0x4a1766(0xe3)]},..._0x1220c0[_0x4a1766(0xa9)]!==undefined&&{'connector_config':_0x1220c0[_0x4a1766(0xa9)]},..._0x1220c0[_0x4a1766(0xcc)]!==undefined&&{'activation_template_id':_0x1220c0[_0x4a1766(0xcc)]}},_0x4b0b85=stableStringify(_0x33f927),_0x3ee796=_0x17c726[_0x4a1766(0xe1)](_0x4b0b85);_0x3ee796?_0x3323d2[_0x4a1766(0xdc)](_0x3cd4b6,_0x3ee796):(_0x536b99[_0x3cd4b6]=_0x1220c0,_0x3323d2[_0x4a1766(0xdc)](_0x3cd4b6,_0x3cd4b6),_0x17c726[_0x4a1766(0xdc)](_0x4b0b85,_0x3cd4b6));}}return{'merged':_0x536b99,'nameMapping':_0x3323d2};}export function updateActivationReferences(_0x246729,_0x180566){const _0x3465d5=a120_0x33c8;if(!_0x246729)return;for(const _0xd75578 of _0x246729){if(!_0xd75578[_0x3465d5(0xdf)])continue;for(const _0x421954 of _0xd75578[_0x3465d5(0xdf)]){if(_0x421954[_0x3465d5(0xe5)]===_0x3465d5(0x9a)&&_0x421954[_0x3465d5(0xad)]?.[_0x3465d5(0x9a)]){const _0x323616=_0x180566[_0x3465d5(0xe1)](_0x421954['with']['activation']);_0x323616&&_0x323616!==_0x421954[_0x3465d5(0xad)][_0x3465d5(0x9a)]&&(_0x421954[_0x3465d5(0xad)][_0x3465d5(0x9a)]=_0x323616);}}}}export function consolidateSegmentsByContent(_0x10ff51,_0x37db2f){const _0x475deb=a120_0x33c8,_0x323606={},_0x5e26ba=new Map(),_0x3c07dd=new Map();for(const _0x4508dd of _0x10ff51){if(!_0x4508dd)continue;for(const [_0x189a60,_0xb244c6]of Object[_0x475deb(0xca)](_0x4508dd)){if(!_0xb244c6['rule']){_0x323606[_0x189a60]=_0xb244c6,_0x5e26ba[_0x475deb(0xdc)](_0x189a60,_0x189a60);continue;}const _0x368c66=_0xb244c6[_0x475deb(0xaf)]&&_0xb244c6[_0x475deb(0xaf)]['trim']()?_0xb244c6[_0x475deb(0xaf)]:undefined,_0x2e1bf2=JSON[_0x475deb(0xe8)]({'description':_0x368c66,'rule':deepSortObject(_0xb244c6[_0x475deb(0xdd)])}),_0x320e27=_0x3c07dd[_0x475deb(0xe1)](_0x2e1bf2);if(_0x320e27){const _0x1f89f2={..._0xb244c6[_0x475deb(0xaf)]!==undefined&&{'description':_0xb244c6[_0x475deb(0xaf)]},'rule':_0xb244c6['rule']?deepSortObject(_0xb244c6[_0x475deb(0xdd)]):_0xb244c6['rule']};if(_0x189a60<_0x320e27){_0x323606[_0x189a60]=_0x1f89f2,delete _0x323606[_0x320e27];for(const [_0xb117d9,_0x1b8166]of _0x5e26ba[_0x475deb(0xca)]()){_0x1b8166===_0x320e27&&_0x5e26ba[_0x475deb(0xdc)](_0xb117d9,_0x189a60);}_0x5e26ba[_0x475deb(0xdc)](_0x189a60,_0x189a60),_0x3c07dd[_0x475deb(0xdc)](_0x2e1bf2,_0x189a60);}else _0x323606[_0x320e27]=_0x1f89f2,_0x5e26ba['set'](_0x189a60,_0x320e27);}else{let _0x2af3aa=_0x189a60;if(_0x37db2f){const _0x330fa1=_0x37db2f['get'](_0x2e1bf2);_0x330fa1&&_0x330fa1[_0x475deb(0xc4)]>0x0&&(_0x2af3aa=_0x330fa1[_0x475deb(0xd9)]()[_0x475deb(0x9b)]()[0x0]);}const _0x3886c2={..._0xb244c6[_0x475deb(0xaf)]!==undefined&&{'description':_0xb244c6[_0x475deb(0xaf)]},'rule':_0xb244c6['rule']?deepSortObject(_0xb244c6['rule']):_0xb244c6[_0x475deb(0xdd)]};_0x323606[_0x2af3aa]=_0x3886c2,_0x5e26ba[_0x475deb(0xdc)](_0x189a60,_0x2af3aa),_0x3c07dd[_0x475deb(0xdc)](_0x2e1bf2,_0x2af3aa);}}}return{'merged':_0x323606,'nameMapping':_0x5e26ba};}export function updateSegmentReferences(_0x625d35,_0x4f4d5f){const _0x33c63e=a120_0x33c8;if(!_0x625d35)return;for(const _0x3d2959 of _0x625d35){if(_0x3d2959[_0x33c63e(0xbd)]?.[_0x33c63e(0xc7)]){const _0xd1490e=_0x4f4d5f['get'](_0x3d2959['entry_criteria']['segment']);_0xd1490e&&(_0x3d2959[_0x33c63e(0xbd)][_0x33c63e(0xc7)]=_0xd1490e);}if(_0x3d2959[_0x33c63e(0x9c)])for(const _0x31c7eb of _0x3d2959[_0x33c63e(0x9c)]){if(_0x31c7eb[_0x33c63e(0xc7)]){const _0x4ee039=_0x4f4d5f[_0x33c63e(0xe1)](_0x31c7eb[_0x33c63e(0xc7)]);_0x4ee039&&(_0x31c7eb[_0x33c63e(0xc7)]=_0x4ee039);}}if(_0x3d2959[_0x33c63e(0xa4)]?.['segment']){const _0x1ac778=_0x4f4d5f[_0x33c63e(0xe1)](_0x3d2959[_0x33c63e(0xa4)][_0x33c63e(0xc7)]);_0x1ac778&&(_0x3d2959[_0x33c63e(0xa4)][_0x33c63e(0xc7)]=_0x1ac778);}if(_0x3d2959['steps'])for(const _0x412be5 of _0x3d2959[_0x33c63e(0xdf)]){if(_0x412be5[_0x33c63e(0xe5)]===_0x33c63e(0x98)&&_0x412be5[_0x33c63e(0xad)]?.['branches'])for(const _0x23dc48 of _0x412be5[_0x33c63e(0xad)][_0x33c63e(0xc9)]){if(_0x23dc48['segment']){const _0x3da7b7=_0x4f4d5f[_0x33c63e(0xe1)](_0x23dc48['segment']);_0x3da7b7&&(_0x23dc48['segment']=_0x3da7b7);}}if(_0x412be5[_0x33c63e(0xe5)]==='wait'&&_0x412be5[_0x33c63e(0xad)]?.[_0x33c63e(0xdb)]?.[_0x33c63e(0xc7)]){const _0x42138e=_0x4f4d5f[_0x33c63e(0xe1)](_0x412be5[_0x33c63e(0xad)]['condition']['segment']);_0x42138e&&(_0x412be5[_0x33c63e(0xad)][_0x33c63e(0xdb)][_0x33c63e(0xc7)]=_0x42138e);}}}}export function updateSegmentRefsInSegments(_0x555e18,_0x1854a8){const _0x5683fb=a120_0x33c8;for(const _0x10bd88 of Object['values'](_0x555e18)){_0x10bd88[_0x5683fb(0xdd)]&&updateSegmentRefsInRule(_0x10bd88[_0x5683fb(0xdd)],_0x1854a8);}}function updateSegmentRefsInRule(_0x35ee15,_0x575595){const _0x3a624e=a120_0x33c8;if(_0x35ee15===null||typeof _0x35ee15!=='object')return;if(Array[_0x3a624e(0xb7)](_0x35ee15)){for(const _0x18e190 of _0x35ee15){updateSegmentRefsInRule(_0x18e190,_0x575595);}return;}const _0x2f111e=_0x35ee15;if((_0x2f111e[_0x3a624e(0xe5)]===_0x3a624e(0xd4)||_0x2f111e[_0x3a624e(0xe5)]===_0x3a624e(0x97))&&typeof _0x2f111e[_0x3a624e(0xc7)]===_0x3a624e(0xb5)){const _0x1b289c=_0x575595['get'](_0x2f111e[_0x3a624e(0xc7)]);_0x1b289c&&(_0x2f111e['segment']=_0x1b289c);}if(_0x2f111e[_0x3a624e(0xcb)]&&Array[_0x3a624e(0xb7)](_0x2f111e['conditions']))for(const _0x2fb2af of _0x2f111e[_0x3a624e(0xcb)]){updateSegmentRefsInRule(_0x2fb2af,_0x575595);}}export function buildJourneysArray(_0x41501f){const _0x12c1a=a120_0x33c8,_0x11b2af=Math[_0x12c1a(0xe2)](..._0x41501f[_0x12c1a(0xc1)](_0x51e8a2=>_0x51e8a2['item'][_0x12c1a(0x9d)]||0x0));return _0x41501f[_0x12c1a(0xc1)](_0x1d979f=>{const _0x59e35e=_0x12c1a,_0x1a2c86=(_0x1d979f['item'][_0x59e35e(0x9d)]||0x0)===_0x11b2af,_0x5c18f3=_0x1d979f[_0x59e35e(0xe0)][_0x59e35e(0xd6)]?.[0x0],_0x57ef74={'version':_0x5c18f3?.[_0x59e35e(0xd0)]||_0x1d979f[_0x59e35e(0xe0)][_0x59e35e(0xd0)]||_0x1d979f[_0x59e35e(0xb0)]['name'],'state':_0x1d979f[_0x59e35e(0xb0)][_0x59e35e(0xa1)]===_0x59e35e(0xb8)?'launched':_0x59e35e(0xa2),'stages':_0x5c18f3?.[_0x59e35e(0xc3)]||_0x1d979f[_0x59e35e(0xe0)]['stages']||[],'id':_0x5c18f3?.['id']||_0x1d979f[_0x59e35e(0xe0)]['id'],'version_number':_0x5c18f3?.['version_number']||_0x1d979f[_0x59e35e(0xe0)][_0x59e35e(0xc5)]};return _0x1a2c86&&(_0x57ef74[_0x59e35e(0xc8)]=!![]),_0x57ef74;});}export function buildMergedJourneyDef(_0x46bd38,_0x4fcfb0){const _0xfb4f14=a120_0x33c8,_0x20e8d6=_0x46bd38[0x0][_0xfb4f14(0xe0)],_0x31d255=buildJourneysArray(_0x46bd38),{merged:_0xa6b70f,nameMapping:_0xe6898a}=consolidateSegmentsByContent(_0x46bd38[_0xfb4f14(0xc1)](_0x182ca8=>_0x182ca8[_0xfb4f14(0xe0)][_0xfb4f14(0xce)]),_0x4fcfb0);updateSegmentRefsInSegments(_0xa6b70f,_0xe6898a);const _0x1b094b=Array[_0xfb4f14(0xa8)](_0xe6898a[_0xfb4f14(0xca)]())[_0xfb4f14(0xc2)](([_0x1261f7,_0x405f68])=>_0x1261f7!==_0x405f68&&_0x1261f7[_0xfb4f14(0xb9)](_0xfb4f14(0xbd)));let _0x5c64fa=_0xa6b70f,_0x2b5721=new Map();if(_0x1b094b){const _0x1250ea=consolidateSegmentsByContent([_0xa6b70f],_0x4fcfb0);_0x5c64fa=_0x1250ea[_0xfb4f14(0xae)],_0x2b5721=_0x1250ea[_0xfb4f14(0xbf)];}const _0x1b8b3e=new Map(_0xe6898a);for(const [_0x34cb5b,_0x2570f3]of _0x2b5721[_0xfb4f14(0xca)]()){_0x1b8b3e[_0xfb4f14(0xdc)](_0x34cb5b,_0x2570f3);}for(const [_0x134af6,_0x30d27e]of _0x1b8b3e[_0xfb4f14(0xca)]()){let _0x4ca524=_0x30d27e,_0xcf758c=0x0;while(_0x1b8b3e[_0xfb4f14(0xac)](_0x4ca524)&&_0x1b8b3e['get'](_0x4ca524)!==_0x4ca524&&_0xcf758c<MAX_MAPPING_CHAIN_DEPTH){_0x4ca524=_0x1b8b3e['get'](_0x4ca524),_0xcf758c++;}_0x4ca524!==_0x30d27e&&_0x1b8b3e['set'](_0x134af6,_0x4ca524);}for(const _0x43879a of _0x31d255){updateSegmentReferences(_0x43879a[_0xfb4f14(0xc3)],_0x1b8b3e);}const {merged:_0x143dbe,nameMapping:_0x167c93}=consolidateActivationsByContent(_0x46bd38[_0xfb4f14(0xc1)](_0x46d2d2=>_0x46d2d2[_0xfb4f14(0xe0)][_0xfb4f14(0xb4)]));for(const _0x25d613 of _0x31d255){updateActivationReferences(_0x25d613[_0xfb4f14(0xc3)],_0x167c93);}let _0x113bf5=_0x20e8d6[_0xfb4f14(0xd2)];if(_0x113bf5?.[_0xfb4f14(0xc7)]){const _0x1cac02=_0x1b8b3e[_0xfb4f14(0xe1)](_0x113bf5['segment']);_0x1cac02&&(_0x113bf5={..._0x113bf5,'segment':_0x1cac02});}for(const _0x36afe3 of _0x31d255){if(_0x36afe3[_0xfb4f14(0xd2)]?.['segment']){const _0x595c96=_0x1b8b3e['get'](_0x36afe3['goal'][_0xfb4f14(0xc7)]);_0x595c96&&(_0x36afe3['goal']={..._0x36afe3[_0xfb4f14(0xd2)],'segment':_0x595c96});}}return{'type':_0xfb4f14(0xa0),'name':_0x20e8d6[_0xfb4f14(0xd8)],'description':_0x20e8d6[_0xfb4f14(0xaf)],'goal':_0x113bf5,'reentry':_0x20e8d6[_0xfb4f14(0xbc)],'segments':Object[_0xfb4f14(0xe7)](_0x5c64fa)[_0xfb4f14(0xc4)]>0x0?_0x5c64fa:undefined,'activations':Object['keys'](_0x143dbe)[_0xfb4f14(0xc4)]>0x0?_0x143dbe:undefined,'journeys':_0x31d255,'bundle_id':_0x20e8d6[_0xfb4f14(0xa3)],'bundle_name':_0x20e8d6[_0xfb4f14(0xb3)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x4e9869,_0x5a1fa3,_0x4066ed,_0x98e9e9){const _0x4f02bc=a120_0x33c8,_0x3352f=_0x4e9869+':'+_0x5a1fa3,_0x197cca=_0x4066ed[_0x4f02bc(0xe1)](_0x3352f);if(_0x197cca)return _0x197cca;const _0x3d376e=await _0x98e9e9(_0x4e9869),_0x381ad6=_0x3d376e['attributes']['journeyBundleName']||_0x3d376e[_0x4f02bc(0xa6)][_0x4f02bc(0xd8)],_0x9c7d18=_0x3d376e[_0x4f02bc(0xa6)][_0x4f02bc(0xa5)]['find'](_0x3cdb3a=>String(_0x3cdb3a['id'])===String(_0x5a1fa3)),_0x523b11=_0x9c7d18?.[_0x4f02bc(0xd8)]||_0x5a1fa3,_0x27da70={'journeyName':_0x381ad6,'stageName':_0x523b11};return _0x4066ed[_0x4f02bc(0xdc)](_0x3352f,_0x27da70),_0x27da70;}function a120_0x20e4(){const _0x43f719=['exit_criteria','versionNumber','.yaml','417271KingUc','journey','state','draft','bundle_id','milestone','journeyStages','attributes','all_columns','from','connector_config','join','behavior','has','with','merged','description','item','index','push','bundle_name','activations','string','6485360jDTmcR','isArray','launched','startsWith','wait','945hLsCKk','reentry','entry_criteria','match','nameMapping','1484595tDNRCm','map','some','stages','length','version_number','columns','segment','latest','branches','entries','conditions','activation_template_id','object','segments','schedule','version','versions','goal','2886066NAQlnA','include','endsWith','journeys','8514mLdDVa','name','slice','null','condition','set','rule','toLowerCase','steps','yaml','get','max','notification','15851872lqNZDR','type','replace','keys','stringify','exclude','decision_point','531672apNkkm','activation','sort'];a120_0x20e4=function(){return _0x43f719;};return a120_0x20e4();}export function formatApiJourneyName(_0xda0245,_0x2d45ec){return _0x2d45ec+'\x20('+_0xda0245+')';}export function isLocalJourneyRef(_0x2c9769){const _0x5a2115=a120_0x33c8;return _0x2c9769[_0x5a2115(0xd5)]('.yml')||_0x2c9769[_0x5a2115(0xd5)](_0x5a2115(0x9e));}export function buildLocalRuleToNameMapping(_0x180b59){const _0x485464=a120_0x33c8,_0x56b5d0=new Map();if(!_0x180b59)return _0x56b5d0;for(const [_0x41439d,_0x425953]of Object[_0x485464(0xca)](_0x180b59)){if(_0x425953[_0x485464(0xdd)]){const _0x128295=serializeRule(_0x425953['rule']),_0x1f1ecf=_0x56b5d0['get'](_0x128295)||[];_0x1f1ecf[_0x485464(0xb2)](_0x41439d),_0x56b5d0['set'](_0x128295,_0x1f1ecf);}}return _0x56b5d0;}export function buildLocalRuleToNameMappingFromJourney(_0x217180){const _0x3f515c=a120_0x33c8,_0x8d6799=_0x217180[_0x3f515c(0xce)];if(!_0x8d6799)return new Map();const _0x4f8de7=collectSegmentUsageCounts(_0x217180),_0x4f1ffe=new Map();let _0x4df155=0x0;for(const [_0x247466,_0x5bc457]of Object['entries'](_0x8d6799)){if(!_0x5bc457[_0x3f515c(0xdd)]){_0x4df155++;continue;}const _0x2d2f6b=serializeRule(_0x5bc457[_0x3f515c(0xdd)]),_0x425df8=_0x4f1ffe[_0x3f515c(0xe1)](_0x2d2f6b)||[];_0x425df8[_0x3f515c(0xb2)]({'name':_0x247466,'index':_0x4df155}),_0x4f1ffe[_0x3f515c(0xdc)](_0x2d2f6b,_0x425df8),_0x4df155++;}const _0x95951f=new Map();for(const [_0x10a56a,_0x2402fc]of _0x4f1ffe){const _0x387239=_0x2402fc[_0x3f515c(0xd9)]()[_0x3f515c(0x9b)]((_0xb6d594,_0x1bf1d0)=>{const _0xd05459=_0x3f515c,_0x45368a=_0x4f8de7[_0xd05459(0xe1)](_0xb6d594['name'])||0x0,_0x35b86f=_0x4f8de7[_0xd05459(0xe1)](_0x1bf1d0[_0xd05459(0xd8)])||0x0;if(_0x45368a!==_0x35b86f)return _0x35b86f-_0x45368a;return _0xb6d594[_0xd05459(0xb1)]-_0x1bf1d0[_0xd05459(0xb1)];})[_0x3f515c(0xc1)](_0x38a754=>_0x38a754['name']);_0x95951f['set'](_0x10a56a,_0x387239);}return _0x95951f;}export function collectSegmentUsageCounts(_0x6e4bb0){const _0xcd05bb=a120_0x33c8,_0x1303f6=new Map(),_0x44a3bf=_0x435806=>{const _0x453668=a120_0x33c8;if(!_0x435806)return;_0x1303f6[_0x453668(0xdc)](_0x435806,(_0x1303f6[_0x453668(0xe1)](_0x435806)||0x0)+0x1);},_0x282ea3=_0x3e85e8=>{const _0x4a6d34=a120_0x33c8;for(const _0x403f5b of _0x3e85e8){_0x44a3bf(_0x403f5b[_0x4a6d34(0xbd)]?.[_0x4a6d34(0xc7)]);if(_0x403f5b[_0x4a6d34(0x9c)])for(const _0x1463af of _0x403f5b['exit_criteria']){_0x44a3bf(_0x1463af[_0x4a6d34(0xc7)]);}_0x44a3bf(_0x403f5b[_0x4a6d34(0xa4)]?.[_0x4a6d34(0xc7)]);if(_0x403f5b['steps'])for(const _0x754fc5 of _0x403f5b[_0x4a6d34(0xdf)]){if(_0x754fc5[_0x4a6d34(0xe5)]===_0x4a6d34(0x98))for(const _0x27571c of _0x754fc5['with']['branches']){_0x44a3bf(_0x27571c[_0x4a6d34(0xc7)]);}else _0x754fc5[_0x4a6d34(0xe5)]===_0x4a6d34(0xba)&&_0x44a3bf(_0x754fc5[_0x4a6d34(0xad)]['condition']?.[_0x4a6d34(0xc7)]);}}};_0x44a3bf(_0x6e4bb0[_0xcd05bb(0xd2)]?.[_0xcd05bb(0xc7)]);if(_0x6e4bb0['journeys'])for(const _0x50736e of _0x6e4bb0[_0xcd05bb(0xd6)]){_0x44a3bf(_0x50736e[_0xcd05bb(0xd2)]?.[_0xcd05bb(0xc7)]),_0x282ea3(_0x50736e['stages']);}_0x6e4bb0[_0xcd05bb(0xc3)]&&_0x282ea3(_0x6e4bb0['stages']);if(_0x6e4bb0[_0xcd05bb(0xd1)])for(const _0x2bf4c2 of _0x6e4bb0['versions']){_0x282ea3(_0x2bf4c2[_0xcd05bb(0xc3)]);}return _0x1303f6;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x2a3e2e,_0x3ddba9){const _0x8ae4d8=a121_0x120b,_0x460bdd=_0x2a3e2e();while(!![]){try{const _0x52165a=-parseInt(_0x8ae4d8(0x16f))/0x1*(-parseInt(_0x8ae4d8(0x15f))/0x2)+-parseInt(_0x8ae4d8(0x177))/0x3+parseInt(_0x8ae4d8(0x182))/0x4+parseInt(_0x8ae4d8(0x167))/0x5+-parseInt(_0x8ae4d8(0x149))/0x6*(parseInt(_0x8ae4d8(0x14b))/0x7)+-parseInt(_0x8ae4d8(0x1d4))/0x8+-parseInt(_0x8ae4d8(0x172))/0x9*(-parseInt(_0x8ae4d8(0x153))/0xa);if(_0x52165a===_0x3ddba9)break;else _0x460bdd['push'](_0x460bdd['shift']());}catch(_0x5c6d59){_0x460bdd['push'](_0x460bdd['shift']());}}}(a121_0x5380,0x9e80d));import{getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x54af17,_0x2b2835,_0x28dfa4,_0x5ae15c,_0xd2b66,_0x2bdb0e){const _0x178bf8=a121_0x120b;return{'level':_0x54af17,'path':_0x2b2835,'code':_0x28dfa4,'message':_0x5ae15c,'location':getLocationFromPath(_0xd2b66[_0x178bf8(0x18a)],_0xd2b66[_0x178bf8(0x1d9)],pathToArray(_0x2bdb0e??_0x2b2835))};}function validateVersionStructure(_0x42185d,_0x4cd61f){const _0x5820b3=a121_0x120b,_0x52587e=[];return _0x42185d[_0x5820b3(0x15c)]>MAX_STAGES&&_0x52587e[_0x5820b3(0x155)](createIssue(_0x5820b3(0x1c6),_0x5820b3(0x1ea),_0x5820b3(0x165),_0x5820b3(0x157)+_0x42185d[_0x5820b3(0x15c)]+'\x20stages\x20but\x20maximum\x20is\x20'+MAX_STAGES,_0x4cd61f)),_0x52587e;}function validateStageStructure(_0x33e440,_0x260041,_0x430a22,_0x4baa20){const _0x5d04a3=a121_0x120b,_0x402720=[],_0x229456=_0x5d04a3(0x1e2)+_0x260041+']';_0x260041===0x0&&!_0x33e440['entry_criteria']&&_0x402720[_0x5d04a3(0x155)](createIssue(_0x5d04a3(0x1c6),_0x229456+_0x5d04a3(0x173),_0x5d04a3(0x188),_0x5d04a3(0x1a8)+_0x33e440[_0x5d04a3(0x1a4)]+_0x5d04a3(0x1c9),_0x4baa20,_0x229456));const _0x5eff0d=_0x260041===_0x430a22-0x1;!_0x5eff0d&&!_0x33e440[_0x5d04a3(0x170)]&&_0x402720['push'](createIssue('error',_0x229456+_0x5d04a3(0x189),_0x5d04a3(0x1c8),_0x5d04a3(0x1a8)+_0x33e440['name']+_0x5d04a3(0x1eb),_0x4baa20,_0x229456));(!_0x33e440['exit_criteria']||_0x33e440[_0x5d04a3(0x1bc)][_0x5d04a3(0x15c)]===0x0)&&_0x402720['push'](createIssue('warning',_0x229456+'.exit_criteria',_0x5d04a3(0x1a6),_0x5d04a3(0x1a8)+_0x33e440[_0x5d04a3(0x1a4)]+'\x27\x20has\x20no\x20exit_criteria\x20defined',_0x4baa20,_0x229456));const _0x21238c=_0x33e440[_0x5d04a3(0x1e1)]?.['length']??0x0;if(_0x21238c===0x0)_0x402720['push'](createIssue(_0x5d04a3(0x1c6),_0x229456+_0x5d04a3(0x195),'INSUFFICIENT_STEPS',_0x5d04a3(0x1a8)+_0x33e440['name']+_0x5d04a3(0x175),_0x4baa20,_0x229456+_0x5d04a3(0x195)));else{if(_0x21238c===0x1)_0x402720[_0x5d04a3(0x155)](createIssue(_0x5d04a3(0x1cf),_0x229456+'.steps','INSUFFICIENT_STEPS',_0x5d04a3(0x1a8)+_0x33e440[_0x5d04a3(0x1a4)]+'\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)',_0x4baa20,_0x229456+_0x5d04a3(0x195)));else _0x21238c<=0x3&&_0x402720[_0x5d04a3(0x155)](createIssue('warning',_0x229456+_0x5d04a3(0x195),_0x5d04a3(0x1f1),_0x5d04a3(0x1a8)+_0x33e440[_0x5d04a3(0x1a4)]+_0x5d04a3(0x19b)+_0x21238c+_0x5d04a3(0x163),_0x4baa20,_0x229456+_0x5d04a3(0x195)));}return _0x402720;}function validateStep(_0x5132d2,_0x5e5b1f,_0x3c285a,_0x1476b4){const _0x36f9de=a121_0x120b,_0x2f68c0=[];if(_0x5132d2[_0x36f9de(0x15a)]==='end')return _0x5132d2[_0x36f9de(0x16a)]&&_0x2f68c0['push'](createIssue(_0x36f9de(0x1c6),_0x5e5b1f+_0x36f9de(0x194),_0x36f9de(0x158),_0x36f9de(0x1b9)+_0x5132d2['name']+_0x36f9de(0x174),_0x3c285a)),_0x36f9de(0x1aa)in _0x5132d2&&_0x5132d2[_0x36f9de(0x1aa)]!==undefined&&_0x2f68c0[_0x36f9de(0x155)](createIssue(_0x36f9de(0x1c6),_0x5e5b1f+_0x36f9de(0x1bb),_0x36f9de(0x158),_0x36f9de(0x1b9)+_0x5132d2[_0x36f9de(0x1a4)]+_0x36f9de(0x1cd),_0x3c285a)),_0x2f68c0;_0x5132d2['next']&&(_0x3c285a[_0x36f9de(0x196)]&&!_0x3c285a['stepNames'][_0x36f9de(0x180)](_0x5132d2[_0x36f9de(0x16a)])&&_0x2f68c0[_0x36f9de(0x155)](createIssue('error',_0x5e5b1f+_0x36f9de(0x194),_0x36f9de(0x148),'Step\x20references\x20non-existent\x20step\x20\x27'+_0x5132d2['next']+'\x27',_0x3c285a)));switch(_0x5132d2[_0x36f9de(0x15a)]){case _0x36f9de(0x1bd):_0x2f68c0[_0x36f9de(0x155)](...validateWaitStep(_0x5132d2,_0x5e5b1f,_0x3c285a,_0x1476b4));break;case'activation':_0x2f68c0['push'](...validateActivationStep(_0x5132d2,_0x5e5b1f,_0x3c285a));break;case _0x36f9de(0x1a2):_0x2f68c0[_0x36f9de(0x155)](...validateDecisionPointStep(_0x5132d2,_0x5e5b1f,_0x3c285a,_0x1476b4));break;case _0x36f9de(0x1a9):_0x2f68c0[_0x36f9de(0x155)](...validateAbTestStep(_0x5132d2,_0x5e5b1f,_0x3c285a,_0x1476b4));break;case _0x36f9de(0x1f0):_0x2f68c0[_0x36f9de(0x155)](...validateJumpStep(_0x5132d2,_0x5e5b1f,_0x3c285a));break;}return _0x2f68c0;}function validateWaitStep(_0x47fd3b,_0x3c7e65,_0x4c3b9d,_0x5b9e66){const _0x4b857f=a121_0x120b,_0x56664=[];if(!_0x47fd3b[_0x4b857f(0x1aa)])return _0x56664['push'](createIssue(_0x4b857f(0x1c6),_0x3c7e65+_0x4b857f(0x1bb),'MISSING_WAIT_PARAMS',_0x4b857f(0x1ed),_0x4c3b9d,_0x3c7e65)),_0x56664;if(_0x47fd3b[_0x4b857f(0x1aa)][_0x4b857f(0x1df)]){const _0x2ab3ae=_0x47fd3b[_0x4b857f(0x1aa)][_0x4b857f(0x1df)];if(_0x2ab3ae[_0x4b857f(0x1ab)]){_0x4c3b9d[_0x4b857f(0x1b0)]?.[_0x4b857f(0x1b8)](_0x2ab3ae[_0x4b857f(0x1ab)]);!_0x2ab3ae[_0x4b857f(0x1ab)][_0x4b857f(0x181)]('ref:')&&(_0x4c3b9d[_0x4b857f(0x1a0)]&&!_0x4c3b9d[_0x4b857f(0x1a0)][_0x4b857f(0x180)](_0x2ab3ae[_0x4b857f(0x1ab)])&&_0x56664['push'](createIssue(_0x4b857f(0x1c6),_0x3c7e65+'.with.condition.segment',_0x4b857f(0x183),_0x4b857f(0x17f)+_0x2ab3ae[_0x4b857f(0x1ab)]+_0x4b857f(0x17c),_0x4c3b9d)));_0x2ab3ae[_0x4b857f(0x16a)]&&_0x4c3b9d[_0x4b857f(0x196)]&&!_0x4c3b9d[_0x4b857f(0x196)][_0x4b857f(0x180)](_0x2ab3ae[_0x4b857f(0x16a)])&&_0x56664[_0x4b857f(0x155)](createIssue('error',_0x3c7e65+'.with.condition.next',_0x4b857f(0x148),'Wait\x20condition\x20references\x20non-existent\x20step\x20\x27'+_0x2ab3ae[_0x4b857f(0x16a)]+'\x27',_0x4c3b9d));_0x2ab3ae[_0x4b857f(0x1d0)]?.[_0x4b857f(0x16a)]&&_0x4c3b9d[_0x4b857f(0x196)]&&!_0x4c3b9d[_0x4b857f(0x196)][_0x4b857f(0x180)](_0x2ab3ae[_0x4b857f(0x1d0)][_0x4b857f(0x16a)])&&_0x56664[_0x4b857f(0x155)](createIssue(_0x4b857f(0x1c6),_0x3c7e65+_0x4b857f(0x1a3),_0x4b857f(0x148),_0x4b857f(0x1e3)+_0x2ab3ae[_0x4b857f(0x1d0)][_0x4b857f(0x16a)]+'\x27',_0x4c3b9d));const _0x20f61a=_0x2ab3ae[_0x4b857f(0x16a)]||_0x47fd3b[_0x4b857f(0x16a)],_0xbd423=_0x2ab3ae[_0x4b857f(0x1d0)]?.[_0x4b857f(0x16a)]||_0x47fd3b[_0x4b857f(0x16a)];if(_0x20f61a){const _0x4fc509=_0x5b9e66[_0x4b857f(0x193)](_0x20f61a);_0x4fc509?.['type']===_0x4b857f(0x1be)&&_0x56664[_0x4b857f(0x155)](createIssue(_0x4b857f(0x1cf),_0x3c7e65+'.with.condition.next','BRANCH_DIRECTLY_TO_MERGE',_0x4b857f(0x169)+_0x20f61a+_0x4b857f(0x1a1),_0x4c3b9d,_0x3c7e65+_0x4b857f(0x1c5)));}if(_0xbd423){const _0x1348e0=_0x5b9e66[_0x4b857f(0x193)](_0xbd423);_0x1348e0?.[_0x4b857f(0x15a)]===_0x4b857f(0x1be)&&_0x56664['push'](createIssue(_0x4b857f(0x1cf),_0x3c7e65+_0x4b857f(0x1a3),_0x4b857f(0x16e),'Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0xbd423+_0x4b857f(0x1a1),_0x4c3b9d,_0x3c7e65+_0x4b857f(0x18f)));}}}return _0x56664;}function validateActivationStep(_0x4b99ff,_0x1de7cd,_0x125cfa){const _0x1ddbe8=a121_0x120b,_0x4cfbd2=[];if(!_0x4b99ff[_0x1ddbe8(0x1aa)]?.['activation'])return _0x4cfbd2[_0x1ddbe8(0x155)](createIssue(_0x1ddbe8(0x1c6),_0x1de7cd+'.with.activation','MISSING_ACTIVATION_REF',_0x1ddbe8(0x1e5),_0x125cfa,_0x1de7cd)),_0x4cfbd2;const _0x343cbc=_0x4b99ff['with'][_0x1ddbe8(0x1d6)];return _0x125cfa[_0x1ddbe8(0x19a)]&&!_0x343cbc['startsWith']('ref:')&&(!_0x125cfa[_0x1ddbe8(0x19a)]['has'](_0x343cbc)&&_0x4cfbd2[_0x1ddbe8(0x155)](createIssue(_0x1ddbe8(0x1c6),_0x1de7cd+'.with.activation',_0x1ddbe8(0x154),_0x1ddbe8(0x1d8)+_0x343cbc+_0x1ddbe8(0x17a),_0x125cfa))),_0x4cfbd2;}function validateDecisionPointStep(_0x5ecb96,_0x298157,_0x5d7c89,_0x4d4d64){const _0x14f9d5=a121_0x120b,_0x2bc054=[];if(!_0x5ecb96[_0x14f9d5(0x1aa)]?.[_0x14f9d5(0x1ac)]||_0x5ecb96['with']['branches'][_0x14f9d5(0x15c)]===0x0)return _0x2bc054[_0x14f9d5(0x155)](createIssue(_0x14f9d5(0x1c6),_0x298157+_0x14f9d5(0x1c0),'MISSING_CONDITIONS',_0x14f9d5(0x178),_0x5d7c89,_0x298157)),_0x2bc054;for(let _0x3dddb5=0x0;_0x3dddb5<_0x5ecb96['with'][_0x14f9d5(0x1ac)][_0x14f9d5(0x15c)];_0x3dddb5++){const _0xa01629=_0x5ecb96[_0x14f9d5(0x1aa)][_0x14f9d5(0x1ac)][_0x3dddb5],_0x2095c4=_0x298157+'.with.branches['+_0x3dddb5+']';_0xa01629[_0x14f9d5(0x1ab)]&&!_0xa01629[_0x14f9d5(0x1dd)]&&(_0x5d7c89[_0x14f9d5(0x1b0)]?.[_0x14f9d5(0x1b8)](_0xa01629['segment']),!_0xa01629[_0x14f9d5(0x1ab)][_0x14f9d5(0x181)]('ref:')&&(_0x5d7c89[_0x14f9d5(0x1a0)]&&!_0x5d7c89[_0x14f9d5(0x1a0)][_0x14f9d5(0x180)](_0xa01629[_0x14f9d5(0x1ab)])&&_0x2bc054[_0x14f9d5(0x155)](createIssue(_0x14f9d5(0x1c6),_0x2095c4+_0x14f9d5(0x1db),_0x14f9d5(0x183),_0x14f9d5(0x14d)+_0xa01629[_0x14f9d5(0x1ab)]+'\x27',_0x5d7c89))));_0xa01629[_0x14f9d5(0x16a)]&&_0x5d7c89[_0x14f9d5(0x196)]&&!_0x5d7c89['stepNames'][_0x14f9d5(0x180)](_0xa01629[_0x14f9d5(0x16a)])&&_0x2bc054['push'](createIssue('error',_0x2095c4+_0x14f9d5(0x194),_0x14f9d5(0x148),_0x14f9d5(0x18c)+_0xa01629['next']+'\x27',_0x5d7c89));if(_0xa01629[_0x14f9d5(0x16a)]){const _0x3b9961=_0x4d4d64[_0x14f9d5(0x193)](_0xa01629[_0x14f9d5(0x16a)]);_0x3b9961?.[_0x14f9d5(0x15a)]===_0x14f9d5(0x1be)&&_0x2bc054[_0x14f9d5(0x155)](createIssue('warning',_0x2095c4+_0x14f9d5(0x194),_0x14f9d5(0x16e),_0x14f9d5(0x18b)+_0xa01629[_0x14f9d5(0x1a4)]+_0x14f9d5(0x1b6)+_0xa01629[_0x14f9d5(0x16a)]+_0x14f9d5(0x1e4),_0x5d7c89));}}return _0x2bc054;}function validateAbTestStep(_0x2557ff,_0x5c2bb2,_0x4522e2,_0x2d158f){const _0x320fd9=a121_0x120b,_0x3ddc7f=[];if(!_0x2557ff[_0x320fd9(0x1aa)]?.[_0x320fd9(0x160)]||_0x2557ff[_0x320fd9(0x1aa)][_0x320fd9(0x160)]['length']===0x0)return _0x3ddc7f[_0x320fd9(0x155)](createIssue(_0x320fd9(0x1c6),_0x5c2bb2+_0x320fd9(0x1ee),_0x320fd9(0x192),_0x320fd9(0x16b),_0x4522e2,_0x5c2bb2)),_0x3ddc7f;const _0x2777eb=_0x2557ff['with']['variants'][_0x320fd9(0x1d3)]((_0x9eb428,_0x5632aa)=>_0x9eb428+(_0x5632aa[_0x320fd9(0x1de)]||0x0),0x0);Math[_0x320fd9(0x156)](_0x2777eb-0x64)>0.01&&_0x3ddc7f['push'](createIssue(_0x320fd9(0x1c6),_0x5c2bb2+_0x320fd9(0x1ee),_0x320fd9(0x1c3),_0x320fd9(0x1cc)+_0x2777eb+'%)',_0x4522e2));for(let _0x29253d=0x0;_0x29253d<_0x2557ff['with']['variants'][_0x320fd9(0x15c)];_0x29253d++){const _0x5d2ad7=_0x2557ff[_0x320fd9(0x1aa)][_0x320fd9(0x160)][_0x29253d],_0x3ac503=_0x5c2bb2+_0x320fd9(0x152)+_0x29253d+']';_0x5d2ad7[_0x320fd9(0x16a)]&&_0x4522e2['stepNames']&&!_0x4522e2[_0x320fd9(0x196)][_0x320fd9(0x180)](_0x5d2ad7['next'])&&_0x3ddc7f[_0x320fd9(0x155)](createIssue(_0x320fd9(0x1c6),_0x3ac503+_0x320fd9(0x194),_0x320fd9(0x148),_0x320fd9(0x15b)+_0x5d2ad7[_0x320fd9(0x16a)]+'\x27',_0x4522e2));if(_0x5d2ad7['next']){const _0x4f2146=_0x2d158f['get'](_0x5d2ad7[_0x320fd9(0x16a)]);_0x4f2146?.[_0x320fd9(0x15a)]===_0x320fd9(0x1be)&&_0x3ddc7f[_0x320fd9(0x155)](createIssue(_0x320fd9(0x1cf),_0x3ac503+_0x320fd9(0x194),_0x320fd9(0x16e),_0x320fd9(0x1ad)+_0x5d2ad7['name']+'\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x5d2ad7[_0x320fd9(0x16a)]+_0x320fd9(0x1e4),_0x4522e2));}}return _0x3ddc7f;}function validateJumpStep(_0x2405f5,_0x4de937,_0x30b1f4){const _0x495452=a121_0x120b,_0x262977=[];if(!_0x2405f5[_0x495452(0x1aa)]?.['target'])return _0x262977[_0x495452(0x155)](createIssue('error',_0x4de937+'.with.target','INVALID_JUMP_TARGET',_0x495452(0x1e0),_0x30b1f4,_0x4de937)),_0x262977;return(!_0x2405f5['with'][_0x495452(0x1b1)][_0x495452(0x1ba)]||!_0x2405f5['with'][_0x495452(0x1b1)][_0x495452(0x1e8)])&&_0x262977['push'](createIssue('error',_0x4de937+_0x495452(0x1ae),_0x495452(0x198),_0x495452(0x1c1),_0x30b1f4)),_0x262977;}function buildConvergenceMap(_0x35cb1a){const _0x1f56c5=a121_0x120b,_0x42770c=new Map();function _0x1824fc(_0x3279f5,_0x726209){const _0x32fb53=a121_0x120b,_0x248cdc=_0x42770c[_0x32fb53(0x193)](_0x3279f5)||[];_0x248cdc[_0x32fb53(0x155)](_0x726209),_0x42770c[_0x32fb53(0x166)](_0x3279f5,_0x248cdc);}for(const _0x5d8a8f of _0x35cb1a){_0x5d8a8f[_0x1f56c5(0x16a)]&&_0x1824fc(_0x5d8a8f[_0x1f56c5(0x16a)],{'stepName':_0x5d8a8f['name'],'description':'step\x20\x27'+_0x5d8a8f[_0x1f56c5(0x1a4)]+'\x27'});if(_0x5d8a8f[_0x1f56c5(0x15a)]==='decision_point'&&_0x5d8a8f[_0x1f56c5(0x1aa)]?.[_0x1f56c5(0x1ac)])for(const _0x150ca4 of _0x5d8a8f[_0x1f56c5(0x1aa)]['branches']){_0x150ca4[_0x1f56c5(0x16a)]&&_0x1824fc(_0x150ca4[_0x1f56c5(0x16a)],{'stepName':_0x5d8a8f['name'],'description':_0x1f56c5(0x171)+_0x150ca4['name']+'\x27\x20of\x20\x27'+_0x5d8a8f[_0x1f56c5(0x1a4)]+'\x27'});}if(_0x5d8a8f['type']===_0x1f56c5(0x1a9)&&_0x5d8a8f['with']?.[_0x1f56c5(0x160)])for(const _0x2677bf of _0x5d8a8f[_0x1f56c5(0x1aa)][_0x1f56c5(0x160)]){_0x2677bf[_0x1f56c5(0x16a)]&&_0x1824fc(_0x2677bf[_0x1f56c5(0x16a)],{'stepName':_0x5d8a8f[_0x1f56c5(0x1a4)],'description':_0x1f56c5(0x1a7)+_0x2677bf[_0x1f56c5(0x1a4)]+_0x1f56c5(0x14e)+_0x5d8a8f['name']+'\x27'});}_0x5d8a8f[_0x1f56c5(0x15a)]===_0x1f56c5(0x1bd)&&_0x5d8a8f[_0x1f56c5(0x1aa)]?.['condition']&&(_0x5d8a8f['with'][_0x1f56c5(0x1df)][_0x1f56c5(0x16a)]&&_0x1824fc(_0x5d8a8f['with']['condition'][_0x1f56c5(0x16a)],{'stepName':_0x5d8a8f[_0x1f56c5(0x1a4)],'description':_0x1f56c5(0x1e7)+_0x5d8a8f['name']+'\x27'}),_0x5d8a8f['with']['condition'][_0x1f56c5(0x1d0)]?.['next']&&_0x1824fc(_0x5d8a8f[_0x1f56c5(0x1aa)]['condition']['timeout']['next'],{'stepName':_0x5d8a8f[_0x1f56c5(0x1a4)],'description':_0x1f56c5(0x1b4)+_0x5d8a8f[_0x1f56c5(0x1a4)]+'\x27'}));}return _0x42770c;}function a121_0x5380(){const _0x5e8472=['variants','\x20versions)','match','\x20steps\x20(may\x20be\x20too\x20simple)','entry_criteria','TOO_MANY_STAGES','set','1489150CgnxHL','indices','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','next','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','end','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','BRANCH_DIRECTLY_TO_MERGE','1VRYcSH','milestone','branch\x20\x27','63abgYrI','.entry_criteria','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','\x27\x20has\x20no\x20steps','MISSING_STAGES','2357781PbiGvl','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','goal','\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.','some','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','.name','rule','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','has','startsWith','3429976kHxJhW','MISSING_SEGMENT_REFERENCE','message','latest','every','\x20(across\x20','MISSING_ENTRY_CRITERIA','.milestone','document','Decision\x20branch\x20\x27','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','versions','versions[','.with.condition.timeout','Embedded\x20segment\x20\x27','segments.','MISSING_CONDITIONS','get','.next','.steps','stepNames','Journey\x20must\x20have\x20a\x20goal\x20defined','INVALID_JUMP_TARGET','description','activationKeys','\x27\x20has\x20only\x20','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','.rule','DUPLICATE_STEP_NAME','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','embeddedSegments','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','decision_point','.with.condition.timeout.next','name','activations','MISSING_EXIT_CRITERIA','variant\x20\x27','Stage\x20\x27','ab_test','with','segment','branches','A/B\x20test\x20variant\x20\x27','.with.target','launched','referencedSegments','target',').\x20Merge\x20is\x20unnecessary.','Merge\x20step\x20\x27','timeout\x20of\x20\x27','SINGLE_INPUT_MERGE','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','code','add','End\x20step\x20\x27','journey','.with','exit_criteria','wait','merge','journeys[','.with.branches','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','MISSING_NAME','INVALID_AB_TEST_PERCENTAGES','state','.with.condition','error','sort','MISSING_MILESTONE','\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)','path','goalIsInherited','A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','UNUSED_EMBEDDED_SEGMENT','warning','timeout','MISSING_GOAL','journeys','reduce','5806096NYSdDP','keys','activation','\x27\x20(from:\x20','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','source','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','.segment','size','excluded','percentage','condition','Jump\x20step\x20requires\x20a\x20target','steps','stages[','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','\x27\x20with\x20no\x20action\x20in\x20between','Activation\x20step\x20requires\x20an\x20activation\x20reference','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','condition\x20of\x20\x27','stage','MERGE_TO_MERGE_CHAIN','stages','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','\x27\x20has\x20no\x20end\x20step','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field','.with.variants','Criteria\x20references\x20undefined\x20segment\x20\x27','jump','FEW_STEPS','INVALID_NEXT_REFERENCE','635052edQXuA','segments','49mgYfTN','ref:','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27','\x27\x20of\x20\x27','MISSING_END_STEP','level','.steps[','.with.variants[','2331910bVcYcc','MISSING_ACTIVATION_DEFINITION','push','abs','Journey\x20has\x20','END_STEP_HAS_NEXT_OR_WITH','Journey\x20name\x20is\x20required','type','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','length','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','Duplicate\x20step\x20name\x20\x27','228302HILbxs'];a121_0x5380=function(){return _0x5e8472;};return a121_0x5380();}function a121_0x120b(_0xf24724,_0x3f848c){_0xf24724=_0xf24724-0x148;const _0x5380ca=a121_0x5380();let _0x120b5e=_0x5380ca[_0xf24724];return _0x120b5e;}function validateFlowControl(_0x4e829b,_0x427e86,_0x2398f4){const _0x20fd93=a121_0x120b,_0x339eaf=[],_0x301755=_0x20fd93(0x1e2)+_0x427e86+']',_0x386da7=_0x4e829b['steps']||[];if(_0x386da7[_0x20fd93(0x15c)]===0x0)return _0x339eaf;const _0x3597ed=new Map();for(const _0x2cd508 of _0x386da7){_0x2cd508['name']&&_0x3597ed[_0x20fd93(0x166)](_0x2cd508[_0x20fd93(0x1a4)],_0x2cd508);}const _0x17d826=buildConvergenceMap(_0x386da7),_0x323dbb=_0x386da7[_0x20fd93(0x17b)](_0x4f7eb9=>_0x4f7eb9[_0x20fd93(0x15a)]===_0x20fd93(0x16c));!_0x323dbb&&_0x339eaf[_0x20fd93(0x155)](createIssue(_0x20fd93(0x1c6),_0x301755+_0x20fd93(0x195),_0x20fd93(0x14f),_0x20fd93(0x1a8)+_0x4e829b[_0x20fd93(0x1a4)]+_0x20fd93(0x1ec),_0x2398f4));for(const [_0x57aa6e,_0x206c0f]of _0x17d826){const _0x23bd88=_0x3597ed['get'](_0x57aa6e);if(!_0x23bd88)continue;if(_0x206c0f['length']>0x1&&_0x23bd88[_0x20fd93(0x15a)]!==_0x20fd93(0x1be)){const _0x272f81=_0x206c0f['map'](_0x325201=>_0x325201[_0x20fd93(0x199)])['join'](',\x20');_0x339eaf['push'](createIssue(_0x20fd93(0x1c6),_0x301755+_0x20fd93(0x195),'CONVERGENCE_WITHOUT_MERGE',_0x20fd93(0x1e6)+_0x57aa6e+_0x20fd93(0x1d7)+_0x272f81+').\x20Use\x20a\x20merge\x20step.',_0x2398f4));}_0x206c0f[_0x20fd93(0x15c)]===0x1&&_0x23bd88[_0x20fd93(0x15a)]===_0x20fd93(0x1be)&&_0x339eaf['push'](createIssue(_0x20fd93(0x1cf),_0x301755+'.steps',_0x20fd93(0x1b5),_0x20fd93(0x1b3)+_0x57aa6e+_0x20fd93(0x19f)+_0x206c0f[0x0][_0x20fd93(0x199)]+_0x20fd93(0x1b2),_0x2398f4));}for(const _0x1e268b of _0x386da7){if(_0x1e268b['type']==='merge'&&_0x1e268b['next']){const _0x3aea31=_0x3597ed['get'](_0x1e268b['next']);_0x3aea31?.[_0x20fd93(0x15a)]===_0x20fd93(0x1be)&&_0x339eaf[_0x20fd93(0x155)](createIssue(_0x20fd93(0x1c6),_0x301755+_0x20fd93(0x195),_0x20fd93(0x1e9),_0x20fd93(0x1b3)+_0x1e268b[_0x20fd93(0x1a4)]+_0x20fd93(0x16d)+_0x1e268b[_0x20fd93(0x16a)]+_0x20fd93(0x15d),_0x2398f4));}}return _0x339eaf;}function validateCriteria(_0x51b69c,_0x5aa2bb,_0x32eeb0){const _0x351c7a=a121_0x120b,_0x5733e8=[];return _0x51b69c[_0x351c7a(0x1ab)]&&(_0x32eeb0[_0x351c7a(0x1b0)]?.[_0x351c7a(0x1b8)](_0x51b69c[_0x351c7a(0x1ab)]),!_0x51b69c[_0x351c7a(0x1ab)][_0x351c7a(0x181)](_0x351c7a(0x14c))&&(_0x32eeb0[_0x351c7a(0x1a0)]&&!_0x32eeb0[_0x351c7a(0x1a0)][_0x351c7a(0x180)](_0x51b69c['segment'])&&_0x5733e8[_0x351c7a(0x155)](createIssue(_0x351c7a(0x1c6),_0x5aa2bb+_0x351c7a(0x1db),_0x351c7a(0x183),_0x351c7a(0x1ef)+_0x51b69c[_0x351c7a(0x1ab)]+'\x27',_0x32eeb0)))),_0x5733e8;}function validateEmbeddedSegment(_0x4c3ff5,_0x5a3d3f,_0x3468c7){const _0x812f75=a121_0x120b,_0x2d79f5=[];return _0x4c3ff5[_0x812f75(0x17e)]&&_0x2d79f5[_0x812f75(0x155)](...validateRuleDef(_0x4c3ff5[_0x812f75(0x17e)],_0x5a3d3f+_0x812f75(0x19d),_0x3468c7)),_0x2d79f5;}function validateStage(_0x3c9ca9,_0x2b76c7,_0x1116f9,_0x4fc62d){const _0x2c86be=a121_0x120b,_0x2d1b31=[],_0xcf677=_0x2c86be(0x1e2)+_0x2b76c7+']',_0x446176=new Map(),_0x414776=new Map();if(_0x3c9ca9[_0x2c86be(0x1e1)]){for(let _0xe160b4=0x0;_0xe160b4<_0x3c9ca9[_0x2c86be(0x1e1)][_0x2c86be(0x15c)];_0xe160b4++){const _0x547a68=_0x3c9ca9[_0x2c86be(0x1e1)][_0xe160b4];_0x547a68[_0x2c86be(0x1a4)]&&_0x446176['set'](_0x547a68['name'],_0x547a68);}for(let _0x2ef1c5=0x0;_0x2ef1c5<_0x3c9ca9[_0x2c86be(0x1e1)][_0x2c86be(0x15c)];_0x2ef1c5++){const _0x5ecb88=_0x3c9ca9[_0x2c86be(0x1e1)][_0x2ef1c5],_0x23dd91=_0xcf677+_0x2c86be(0x151)+_0x2ef1c5+']';if(_0x5ecb88[_0x2c86be(0x1a4)]){if(_0x414776[_0x2c86be(0x180)](_0x5ecb88[_0x2c86be(0x1a4)])){const _0x499d5f=_0x414776[_0x2c86be(0x193)](_0x5ecb88[_0x2c86be(0x1a4)]);_0x2d1b31[_0x2c86be(0x155)](createIssue(_0x2c86be(0x1c6),_0x23dd91+_0x2c86be(0x17d),_0x2c86be(0x19e),_0x2c86be(0x15e)+_0x5ecb88[_0x2c86be(0x1a4)]+'\x27\x20(first\x20defined\x20at\x20steps['+_0x499d5f+'])',_0x4fc62d));}else _0x414776['set'](_0x5ecb88[_0x2c86be(0x1a4)],_0x2ef1c5);}_0x2d1b31[_0x2c86be(0x155)](...validateStep(_0x5ecb88,_0x23dd91,_0x4fc62d,_0x446176));}}_0x3c9ca9[_0x2c86be(0x164)]&&_0x2d1b31['push'](...validateCriteria(_0x3c9ca9[_0x2c86be(0x164)],_0xcf677+_0x2c86be(0x173),_0x4fc62d));if(_0x3c9ca9[_0x2c86be(0x1bc)])for(let _0x1bd92e=0x0;_0x1bd92e<_0x3c9ca9['exit_criteria'][_0x2c86be(0x15c)];_0x1bd92e++){_0x2d1b31[_0x2c86be(0x155)](...validateCriteria(_0x3c9ca9['exit_criteria'][_0x1bd92e],_0xcf677+'.exit_criteria['+_0x1bd92e+']',_0x4fc62d));}return _0x3c9ca9[_0x2c86be(0x170)]&&_0x2d1b31[_0x2c86be(0x155)](...validateCriteria(_0x3c9ca9['milestone'],_0xcf677+_0x2c86be(0x189),_0x4fc62d)),_0x2d1b31[_0x2c86be(0x155)](...validateStageStructure(_0x3c9ca9,_0x2b76c7,_0x1116f9,_0x4fc62d)),_0x2d1b31[_0x2c86be(0x155)](...validateFlowControl(_0x3c9ca9,_0x2b76c7,_0x4fc62d)),_0x2d1b31;}function validateStagesForVersion(_0x327bfb,_0x9bddbc,_0x2ec08b,_0x5e2025,_0x5936ab,_0x595bb3,_0x17c425){const _0x36b9f6=a121_0x120b;if(_0x327bfb[_0x36b9f6(0x15c)]===0x0){_0x5936ab['push']({'level':_0x36b9f6(0x1c6),'path':_0x5e2025+_0x36b9f6(0x1ea),'code':_0x36b9f6(0x176),'message':_0x36b9f6(0x1da),'location':getLocationFromPath(_0x2ec08b[_0x36b9f6(0x18a)],_0x2ec08b['source'],[_0x36b9f6(0x1ea)])});return;}const _0x46694e=new Set();for(const _0x2b2097 of _0x327bfb){if(_0x2b2097[_0x36b9f6(0x1e1)])for(const _0x2c486b of _0x2b2097[_0x36b9f6(0x1e1)]){_0x2c486b[_0x36b9f6(0x1a4)]&&_0x46694e[_0x36b9f6(0x1b8)](_0x2c486b[_0x36b9f6(0x1a4)]);}}const _0x2ca36c={..._0x2ec08b,'stepNames':_0x46694e},_0x29f417=validateVersionStructure(_0x327bfb,_0x2ca36c);for(const _0x520baf of _0x29f417){const _0x1ff2fd=_0x5e2025?{..._0x520baf,'path':''+_0x5e2025+_0x520baf['path']}:_0x520baf;if(_0x1ff2fd[_0x36b9f6(0x150)]===_0x36b9f6(0x1c6))_0x5936ab[_0x36b9f6(0x155)](_0x1ff2fd);else _0x595bb3['push'](_0x1ff2fd);}for(let _0x295fd1=0x0;_0x295fd1<_0x327bfb[_0x36b9f6(0x15c)];_0x295fd1++){const _0x2a1484=validateStage(_0x327bfb[_0x295fd1],_0x295fd1,_0x327bfb['length'],_0x2ca36c);for(const _0x30344f of _0x2a1484){const _0x44df91=_0x5e2025?{..._0x30344f,'path':''+_0x5e2025+_0x30344f['path']}:_0x30344f;if(_0x44df91[_0x36b9f6(0x150)]===_0x36b9f6(0x1c6))_0x5936ab[_0x36b9f6(0x155)](_0x44df91);else _0x595bb3[_0x36b9f6(0x155)](_0x44df91);}}if(_0x9bddbc[_0x36b9f6(0x179)]){const _0x3dd3a6=_0x17c425?.[_0x36b9f6(0x1cb)]?_0x36b9f6(0x179):_0x5e2025+_0x36b9f6(0x179),_0xa53571=validateCriteria(_0x9bddbc['goal'],_0x3dd3a6,_0x2ca36c);for(const _0x33d0dd of _0xa53571){if(_0x33d0dd[_0x36b9f6(0x150)]==='error')_0x5936ab['push'](_0x33d0dd);else _0x595bb3['push'](_0x33d0dd);}}}function extractVersionIndex(_0x4126da){const _0x40c763=a121_0x120b,_0x54df25=_0x4126da[_0x40c763(0x162)](/^journeys\[(\d+)\]\./);return _0x54df25?_0x54df25[0x1]:undefined;}function deduplicateAcrossVersions(_0x39a4d5){const _0x5e99b3=a121_0x120b,_0x4ee30a=new Map();for(let _0x2a0aaa=0x0;_0x2a0aaa<_0x39a4d5[_0x5e99b3(0x15c)];_0x2a0aaa++){const _0x407b18=_0x39a4d5[_0x2a0aaa][_0x5e99b3(0x1b7)]+':'+_0x39a4d5[_0x2a0aaa][_0x5e99b3(0x184)],_0x397e22=extractVersionIndex(_0x39a4d5[_0x2a0aaa][_0x5e99b3(0x1ca)]),_0x5bf738=_0x4ee30a[_0x5e99b3(0x193)](_0x407b18);if(_0x5bf738){_0x5bf738[_0x5e99b3(0x168)][_0x5e99b3(0x155)](_0x2a0aaa);if(_0x397e22)_0x5bf738[_0x5e99b3(0x18d)][_0x5e99b3(0x1b8)](_0x397e22);}else _0x4ee30a[_0x5e99b3(0x166)](_0x407b18,{'indices':[_0x2a0aaa],'versions':new Set(_0x397e22?[_0x397e22]:[])});}const _0x15156d=new Set();for(const {indices:_0x20e6b6,versions:_0x4754bf}of _0x4ee30a['values']()){if(_0x4754bf['size']<=0x1)continue;const _0x540e91=_0x39a4d5[_0x20e6b6[0x0]];_0x540e91['path']=_0x540e91[_0x5e99b3(0x1ca)]['replace'](/^journeys\[\d+\]\./,''),_0x540e91[_0x5e99b3(0x184)]=_0x540e91[_0x5e99b3(0x184)]+_0x5e99b3(0x187)+_0x4754bf[_0x5e99b3(0x1dc)]+_0x5e99b3(0x161);for(let _0x1976a6=0x1;_0x1976a6<_0x20e6b6[_0x5e99b3(0x15c)];_0x1976a6++){_0x15156d[_0x5e99b3(0x1b8)](_0x20e6b6[_0x1976a6]);}}const _0x315f31=[..._0x15156d][_0x5e99b3(0x1c7)]((_0xed304,_0x3bfefc)=>_0x3bfefc-_0xed304);for(const _0x437572 of _0x315f31){_0x39a4d5['splice'](_0x437572,0x1);}}export function validateJourneyDef(_0xa1a60,_0x3b91f2={}){const _0x4a66dd=a121_0x120b,_0x4ebbc0=[],_0x197c35=[];(!_0xa1a60[_0x4a66dd(0x1a4)]||_0xa1a60[_0x4a66dd(0x1a4)]['trim']()==='')&&_0x4ebbc0[_0x4a66dd(0x155)]({'level':_0x4a66dd(0x1c6),'path':_0x4a66dd(0x1a4),'code':_0x4a66dd(0x1c2),'message':_0x4a66dd(0x159),'location':getLocationFromPath(_0x3b91f2['document'],_0x3b91f2[_0x4a66dd(0x1d9)],[_0x4a66dd(0x1a4)])});const _0x47b21f=new Set();if(_0xa1a60[_0x4a66dd(0x14a)])for(const _0x1c0bb3 of Object[_0x4a66dd(0x1d5)](_0xa1a60[_0x4a66dd(0x14a)])){_0x47b21f[_0x4a66dd(0x1b8)](_0x1c0bb3);}const _0x301bd1=new Set();if(_0xa1a60['activations'])for(const _0x3ad455 of Object[_0x4a66dd(0x1d5)](_0xa1a60[_0x4a66dd(0x1a5)])){_0x301bd1[_0x4a66dd(0x1b8)](_0x3ad455);}const _0x5d1826=new Set(),_0x4ee939={..._0x3b91f2,'embeddedSegments':_0x47b21f,'referencedSegments':_0x5d1826,'activationKeys':_0x301bd1[_0x4a66dd(0x1dc)]>0x0?_0x301bd1:undefined};if(_0xa1a60[_0x4a66dd(0x14a)])for(const [_0x552dda,_0x190e4d]of Object['entries'](_0xa1a60[_0x4a66dd(0x14a)])){const _0x180152=validateEmbeddedSegment(_0x190e4d,_0x4a66dd(0x191)+_0x552dda,_0x4ee939);for(const _0x46a7e4 of _0x180152){if(_0x46a7e4[_0x4a66dd(0x150)]===_0x4a66dd(0x1c6))_0x4ebbc0['push'](_0x46a7e4);else _0x197c35[_0x4a66dd(0x155)](_0x46a7e4);}}const _0x31f9e7=!!_0xa1a60[_0x4a66dd(0x179)],_0x2220cd=_0xa1a60[_0x4a66dd(0x1d2)]?.[_0x4a66dd(0x186)](_0x2730f6=>!!_0x2730f6[_0x4a66dd(0x179)])??![];!_0x31f9e7&&!_0x2220cd&&_0x4ebbc0[_0x4a66dd(0x155)]({'level':_0x4a66dd(0x1c6),'path':_0x4a66dd(0x179),'code':_0x4a66dd(0x1d1),'message':_0x4a66dd(0x197),'location':getLocationFromPath(_0x3b91f2[_0x4a66dd(0x18a)],_0x3b91f2['source'],[_0x4a66dd(0x179)])});if(_0xa1a60[_0x4a66dd(0x1d2)]&&_0xa1a60[_0x4a66dd(0x1d2)][_0x4a66dd(0x15c)]>0x0)for(let _0x7f4b50=0x0;_0x7f4b50<_0xa1a60[_0x4a66dd(0x1d2)]['length'];_0x7f4b50++){const _0x2f5580=_0xa1a60[_0x4a66dd(0x1d2)][_0x7f4b50];if(_0xa1a60[_0x4a66dd(0x1d2)][_0x4a66dd(0x15c)]>0x1&&_0x2f5580[_0x4a66dd(0x1c4)]===_0x4a66dd(0x1af)&&!_0x2f5580[_0x4a66dd(0x185)])continue;const _0x5953a2=_0x2f5580[_0x4a66dd(0x1ea)]||[],_0x11dc7d=_0x4a66dd(0x1bf)+_0x7f4b50+'].',_0x22ac82=!!_0x2f5580[_0x4a66dd(0x179)],_0x20533c=_0x22ac82?{..._0xa1a60,'goal':_0x2f5580[_0x4a66dd(0x179)]}:_0xa1a60;validateStagesForVersion(_0x5953a2,_0x20533c,_0x4ee939,_0x11dc7d,_0x4ebbc0,_0x197c35,{'goalIsInherited':!_0x22ac82});}else{if(_0xa1a60[_0x4a66dd(0x18d)]&&_0xa1a60[_0x4a66dd(0x18d)][_0x4a66dd(0x15c)]>0x0)for(let _0x358eaf=0x0;_0x358eaf<_0xa1a60[_0x4a66dd(0x18d)][_0x4a66dd(0x15c)];_0x358eaf++){const _0x281dfe=_0xa1a60['versions'][_0x358eaf];if(_0xa1a60[_0x4a66dd(0x18d)][_0x4a66dd(0x15c)]>0x1&&_0x281dfe[_0x4a66dd(0x1c4)]===_0x4a66dd(0x1af)&&!_0x281dfe[_0x4a66dd(0x185)])continue;const _0x2ba015=_0x281dfe[_0x4a66dd(0x1ea)]||[],_0x324c19=_0x4a66dd(0x18e)+_0x358eaf+'].';validateStagesForVersion(_0x2ba015,_0xa1a60,_0x4ee939,_0x324c19,_0x4ebbc0,_0x197c35);}else{const _0x4ae9cf=_0xa1a60[_0x4a66dd(0x1ea)]||[];validateStagesForVersion(_0x4ae9cf,_0xa1a60,_0x4ee939,'',_0x4ebbc0,_0x197c35);}}_0xa1a60[_0x4a66dd(0x1d2)]&&_0xa1a60[_0x4a66dd(0x1d2)]['length']>0x1&&(deduplicateAcrossVersions(_0x4ebbc0),deduplicateAcrossVersions(_0x197c35));for(const _0x47f823 of _0x47b21f){!_0x5d1826['has'](_0x47f823)&&!_0x47f823['startsWith']('excluded_')&&_0x197c35[_0x4a66dd(0x155)]({'level':_0x4a66dd(0x1cf),'path':_0x4a66dd(0x191)+_0x47f823,'code':_0x4a66dd(0x1ce),'message':_0x4a66dd(0x190)+_0x47f823+_0x4a66dd(0x19c),'location':getLocationFromPath(_0x3b91f2['document'],_0x3b91f2[_0x4a66dd(0x1d9)],[_0x4a66dd(0x14a),_0x47f823])});}return{'valid':_0x4ebbc0[_0x4a66dd(0x15c)]===0x0,'errors':_0x4ebbc0,'warnings':_0x197c35};}
|
|
1
|
+
(function(_0x51a9cc,_0x34097b){const _0xbd42aa=a121_0x1711,_0x489148=_0x51a9cc();while(!![]){try{const _0x2cf982=parseInt(_0xbd42aa(0x1f2))/0x1*(parseInt(_0xbd42aa(0x1e9))/0x2)+parseInt(_0xbd42aa(0x21b))/0x3+-parseInt(_0xbd42aa(0x1b5))/0x4*(-parseInt(_0xbd42aa(0x1be))/0x5)+-parseInt(_0xbd42aa(0x1a2))/0x6*(parseInt(_0xbd42aa(0x1cc))/0x7)+parseInt(_0xbd42aa(0x231))/0x8+-parseInt(_0xbd42aa(0x1d1))/0x9*(-parseInt(_0xbd42aa(0x1eb))/0xa)+parseInt(_0xbd42aa(0x217))/0xb*(-parseInt(_0xbd42aa(0x1ad))/0xc);if(_0x2cf982===_0x34097b)break;else _0x489148['push'](_0x489148['shift']());}catch(_0x465c06){_0x489148['push'](_0x489148['shift']());}}}(a121_0x25ef,0x2c2cb));import{getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';function a121_0x1711(_0x3320f0,_0x2b9f00){_0x3320f0=_0x3320f0-0x1a1;const _0x25efb9=a121_0x25ef();let _0x17115f=_0x25efb9[_0x3320f0];return _0x17115f;}const MAX_STAGES=0x8;function createIssue(_0x23538b,_0x276712,_0x9c41de,_0x11f488,_0x1b3014,_0x6f9a17){const _0x2cab91=a121_0x1711;return{'level':_0x23538b,'path':_0x276712,'code':_0x9c41de,'message':_0x11f488,'location':getLocationFromPath(_0x1b3014[_0x2cab91(0x221)],_0x1b3014['source'],pathToArray(_0x6f9a17??_0x276712))};}function validateVersionStructure(_0x2c6dca,_0x1847be){const _0x3afd56=a121_0x1711,_0x31f06a=[];return _0x2c6dca['length']>MAX_STAGES&&_0x31f06a[_0x3afd56(0x22f)](createIssue(_0x3afd56(0x23d),'stages',_0x3afd56(0x219),_0x3afd56(0x1f0)+_0x2c6dca[_0x3afd56(0x1f8)]+_0x3afd56(0x245)+MAX_STAGES,_0x1847be)),_0x31f06a;}function validateStageStructure(_0x29ecd2,_0x417e1f,_0x1154fd,_0x56d5f5){const _0x550002=a121_0x1711,_0x368bd0=[],_0x5e21c0=_0x550002(0x1c1)+_0x417e1f+']';_0x417e1f===0x0&&!_0x29ecd2[_0x550002(0x1ca)]&&_0x368bd0[_0x550002(0x22f)](createIssue(_0x550002(0x23d),_0x5e21c0+_0x550002(0x1f7),_0x550002(0x248),_0x550002(0x240)+_0x29ecd2['name']+'\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)',_0x56d5f5,_0x5e21c0));const _0x535717=_0x417e1f===_0x1154fd-0x1;!_0x535717&&!_0x29ecd2['milestone']&&_0x368bd0[_0x550002(0x22f)](createIssue(_0x550002(0x23d),_0x5e21c0+_0x550002(0x1d7),_0x550002(0x1fd),'Stage\x20\x27'+_0x29ecd2['name']+_0x550002(0x20b),_0x56d5f5,_0x5e21c0));(!_0x29ecd2[_0x550002(0x227)]||_0x29ecd2[_0x550002(0x227)]['length']===0x0)&&_0x368bd0[_0x550002(0x22f)](createIssue('warning',_0x5e21c0+_0x550002(0x232),_0x550002(0x1ae),_0x550002(0x240)+_0x29ecd2[_0x550002(0x1c2)]+_0x550002(0x224),_0x56d5f5,_0x5e21c0));const _0x1c8450=_0x29ecd2['steps']?.[_0x550002(0x1f8)]??0x0;if(_0x1c8450===0x0)_0x368bd0[_0x550002(0x22f)](createIssue(_0x550002(0x23d),_0x5e21c0+_0x550002(0x203),_0x550002(0x23b),_0x550002(0x240)+_0x29ecd2['name']+_0x550002(0x23a),_0x56d5f5,_0x5e21c0+'.steps'));else{if(_0x1c8450===0x1)_0x368bd0[_0x550002(0x22f)](createIssue('warning',_0x5e21c0+_0x550002(0x203),'INSUFFICIENT_STEPS','Stage\x20\x27'+_0x29ecd2['name']+'\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)',_0x56d5f5,_0x5e21c0+_0x550002(0x203)));else _0x1c8450<=0x3&&_0x368bd0[_0x550002(0x22f)](createIssue(_0x550002(0x1b4),_0x5e21c0+_0x550002(0x203),_0x550002(0x1c9),_0x550002(0x240)+_0x29ecd2['name']+_0x550002(0x1d8)+_0x1c8450+_0x550002(0x214),_0x56d5f5,_0x5e21c0+'.steps'));}return _0x368bd0;}function validateStep(_0x38ee59,_0x3fb6d7,_0x491113,_0x405289){const _0xb8142a=a121_0x1711,_0x49cd03=[];if(_0x38ee59[_0xb8142a(0x222)]===_0xb8142a(0x1b3))return _0x38ee59[_0xb8142a(0x1f1)]&&_0x49cd03[_0xb8142a(0x22f)](createIssue(_0xb8142a(0x23d),_0x3fb6d7+_0xb8142a(0x1ff),_0xb8142a(0x1c3),_0xb8142a(0x243)+_0x38ee59['name']+_0xb8142a(0x22e),_0x491113)),_0xb8142a(0x1de)in _0x38ee59&&_0x38ee59[_0xb8142a(0x1de)]!==undefined&&_0x49cd03[_0xb8142a(0x22f)](createIssue(_0xb8142a(0x23d),_0x3fb6d7+_0xb8142a(0x237),_0xb8142a(0x1c3),_0xb8142a(0x243)+_0x38ee59[_0xb8142a(0x1c2)]+_0xb8142a(0x213),_0x491113)),_0x49cd03;_0x38ee59[_0xb8142a(0x1f1)]&&(_0x491113[_0xb8142a(0x23e)]&&!_0x491113['stepNames'][_0xb8142a(0x1ef)](_0x38ee59[_0xb8142a(0x1f1)])&&_0x49cd03[_0xb8142a(0x22f)](createIssue(_0xb8142a(0x23d),_0x3fb6d7+'.next','INVALID_NEXT_REFERENCE',_0xb8142a(0x1e0)+_0x38ee59[_0xb8142a(0x1f1)]+'\x27',_0x491113)));switch(_0x38ee59[_0xb8142a(0x222)]){case _0xb8142a(0x211):_0x49cd03['push'](...validateWaitStep(_0x38ee59,_0x3fb6d7,_0x491113,_0x405289));break;case _0xb8142a(0x207):_0x49cd03['push'](...validateActivationStep(_0x38ee59,_0x3fb6d7,_0x491113));break;case _0xb8142a(0x239):_0x49cd03[_0xb8142a(0x22f)](...validateDecisionPointStep(_0x38ee59,_0x3fb6d7,_0x491113,_0x405289));break;case _0xb8142a(0x21d):_0x49cd03[_0xb8142a(0x22f)](...validateAbTestStep(_0x38ee59,_0x3fb6d7,_0x491113,_0x405289));break;case _0xb8142a(0x1ee):_0x49cd03[_0xb8142a(0x22f)](...validateJumpStep(_0x38ee59,_0x3fb6d7,_0x491113));break;}return _0x49cd03;}function validateWaitStep(_0x1ebd7f,_0xc3ce8e,_0x43382b,_0x41d08d){const _0x26e486=a121_0x1711,_0x10516e=[];if(!_0x1ebd7f[_0x26e486(0x1de)])return _0x10516e[_0x26e486(0x22f)](createIssue(_0x26e486(0x23d),_0xc3ce8e+_0x26e486(0x237),_0x26e486(0x1d6),_0x26e486(0x23f),_0x43382b,_0xc3ce8e)),_0x10516e;if(_0x1ebd7f[_0x26e486(0x1de)][_0x26e486(0x1c5)]){const _0x120c29=_0x1ebd7f[_0x26e486(0x1de)][_0x26e486(0x1c5)];if(_0x120c29[_0x26e486(0x218)]){_0x43382b[_0x26e486(0x22d)]?.['add'](_0x120c29[_0x26e486(0x218)]);!_0x120c29[_0x26e486(0x218)][_0x26e486(0x1a8)](_0x26e486(0x1ba))&&(_0x43382b[_0x26e486(0x1fb)]&&!_0x43382b['embeddedSegments'][_0x26e486(0x1ef)](_0x120c29[_0x26e486(0x218)])&&_0x10516e[_0x26e486(0x22f)](createIssue(_0x26e486(0x23d),_0xc3ce8e+'.with.condition.segment',_0x26e486(0x20a),_0x26e486(0x201)+_0x120c29[_0x26e486(0x218)]+_0x26e486(0x235),_0x43382b)));_0x120c29[_0x26e486(0x1f1)]&&_0x43382b['stepNames']&&!_0x43382b[_0x26e486(0x23e)][_0x26e486(0x1ef)](_0x120c29[_0x26e486(0x1f1)])&&_0x10516e['push'](createIssue(_0x26e486(0x23d),_0xc3ce8e+'.with.condition.next',_0x26e486(0x20c),_0x26e486(0x1c8)+_0x120c29['next']+'\x27',_0x43382b));_0x120c29[_0x26e486(0x242)]?.[_0x26e486(0x1f1)]&&_0x43382b[_0x26e486(0x23e)]&&!_0x43382b[_0x26e486(0x23e)]['has'](_0x120c29[_0x26e486(0x242)][_0x26e486(0x1f1)])&&_0x10516e[_0x26e486(0x22f)](createIssue(_0x26e486(0x23d),_0xc3ce8e+_0x26e486(0x1dd),_0x26e486(0x20c),_0x26e486(0x1a3)+_0x120c29[_0x26e486(0x242)][_0x26e486(0x1f1)]+'\x27',_0x43382b));const _0x29f215=_0x120c29[_0x26e486(0x1f1)]||_0x1ebd7f[_0x26e486(0x1f1)],_0xc1455f=_0x120c29['timeout']?.['next']||_0x1ebd7f[_0x26e486(0x1f1)];if(_0x29f215){const _0x4d72c7=_0x41d08d[_0x26e486(0x1ce)](_0x29f215);_0x4d72c7?.[_0x26e486(0x222)]===_0x26e486(0x1a1)&&_0x10516e[_0x26e486(0x22f)](createIssue(_0x26e486(0x1b4),_0xc3ce8e+_0x26e486(0x1ab),'BRANCH_DIRECTLY_TO_MERGE',_0x26e486(0x236)+_0x29f215+_0x26e486(0x21a),_0x43382b,_0xc3ce8e+_0x26e486(0x1aa)));}if(_0xc1455f){const _0x18c999=_0x41d08d['get'](_0xc1455f);_0x18c999?.['type']==='merge'&&_0x10516e[_0x26e486(0x22f)](createIssue(_0x26e486(0x1b4),_0xc3ce8e+'.with.condition.timeout.next',_0x26e486(0x212),_0x26e486(0x1bc)+_0xc1455f+'\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.',_0x43382b,_0xc3ce8e+'.with.condition.timeout'));}}}return _0x10516e;}function validateActivationStep(_0x2f9909,_0xc1ae5b,_0x40dd6b){const _0x2500d6=a121_0x1711,_0x56e81c=[];if(!_0x2f9909[_0x2500d6(0x1de)]?.['activation'])return _0x56e81c[_0x2500d6(0x22f)](createIssue(_0x2500d6(0x23d),_0xc1ae5b+_0x2500d6(0x1db),'MISSING_ACTIVATION_REF','Activation\x20step\x20requires\x20an\x20activation\x20reference',_0x40dd6b,_0xc1ae5b)),_0x56e81c;const _0x2947d4=_0x2f9909[_0x2500d6(0x1de)][_0x2500d6(0x207)];return _0x40dd6b[_0x2500d6(0x1af)]&&!_0x2947d4['startsWith'](_0x2500d6(0x1ba))&&(!_0x40dd6b[_0x2500d6(0x1af)][_0x2500d6(0x1ef)](_0x2947d4)&&_0x56e81c['push'](createIssue(_0x2500d6(0x23d),_0xc1ae5b+_0x2500d6(0x1db),_0x2500d6(0x1f6),_0x2500d6(0x1e6)+_0x2947d4+_0x2500d6(0x216),_0x40dd6b))),_0x56e81c;}function validateDecisionPointStep(_0x1b85b3,_0x58ee35,_0x580837,_0x590421){const _0x47b4ba=a121_0x1711,_0x15fea4=[];if(!_0x1b85b3[_0x47b4ba(0x1de)]?.[_0x47b4ba(0x230)]||_0x1b85b3[_0x47b4ba(0x1de)]['branches'][_0x47b4ba(0x1f8)]===0x0)return _0x15fea4[_0x47b4ba(0x22f)](createIssue(_0x47b4ba(0x23d),_0x58ee35+_0x47b4ba(0x1d2),_0x47b4ba(0x1b0),_0x47b4ba(0x220),_0x580837,_0x58ee35)),_0x15fea4;for(let _0x3bcbc9=0x0;_0x3bcbc9<_0x1b85b3[_0x47b4ba(0x1de)][_0x47b4ba(0x230)]['length'];_0x3bcbc9++){const _0x3b977a=_0x1b85b3[_0x47b4ba(0x1de)][_0x47b4ba(0x230)][_0x3bcbc9],_0x2f8745=_0x58ee35+_0x47b4ba(0x210)+_0x3bcbc9+']';_0x3b977a[_0x47b4ba(0x218)]&&!_0x3b977a[_0x47b4ba(0x208)]&&(_0x580837[_0x47b4ba(0x22d)]?.[_0x47b4ba(0x1a5)](_0x3b977a[_0x47b4ba(0x218)]),!_0x3b977a['segment'][_0x47b4ba(0x1a8)](_0x47b4ba(0x1ba))&&(_0x580837[_0x47b4ba(0x1fb)]&&!_0x580837[_0x47b4ba(0x1fb)][_0x47b4ba(0x1ef)](_0x3b977a[_0x47b4ba(0x218)])&&_0x15fea4[_0x47b4ba(0x22f)](createIssue(_0x47b4ba(0x23d),_0x2f8745+_0x47b4ba(0x1e1),_0x47b4ba(0x20a),_0x47b4ba(0x241)+_0x3b977a[_0x47b4ba(0x218)]+'\x27',_0x580837))));_0x3b977a['next']&&_0x580837[_0x47b4ba(0x23e)]&&!_0x580837['stepNames'][_0x47b4ba(0x1ef)](_0x3b977a[_0x47b4ba(0x1f1)])&&_0x15fea4[_0x47b4ba(0x22f)](createIssue(_0x47b4ba(0x23d),_0x2f8745+_0x47b4ba(0x1ff),_0x47b4ba(0x20c),_0x47b4ba(0x1f4)+_0x3b977a[_0x47b4ba(0x1f1)]+'\x27',_0x580837));if(_0x3b977a[_0x47b4ba(0x1f1)]){const _0x2e3ab9=_0x590421[_0x47b4ba(0x1ce)](_0x3b977a[_0x47b4ba(0x1f1)]);_0x2e3ab9?.[_0x47b4ba(0x222)]===_0x47b4ba(0x1a1)&&_0x15fea4['push'](createIssue(_0x47b4ba(0x1b4),_0x2f8745+_0x47b4ba(0x1ff),_0x47b4ba(0x212),_0x47b4ba(0x209)+_0x3b977a[_0x47b4ba(0x1c2)]+_0x47b4ba(0x247)+_0x3b977a[_0x47b4ba(0x1f1)]+_0x47b4ba(0x1bd),_0x580837));}}return _0x15fea4;}function a121_0x25ef(){const _0x58cc49=['activation','excluded','Decision\x20branch\x20\x27','MISSING_SEGMENT_REFERENCE','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','INVALID_NEXT_REFERENCE','\x27\x20of\x20\x27','A/B\x20test\x20variant\x20\x27','step\x20\x27','.with.branches[','wait','BRANCH_DIRECTLY_TO_MERGE','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','\x20steps\x20(may\x20be\x20too\x20simple)','entries','\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.','5774549kGYITk','segment','TOO_MANY_STAGES','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','713313LDxlOY','path','ab_test','excluded_','launched','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','document','type','goal','\x27\x20has\x20no\x20exit_criteria\x20defined','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','values','exit_criteria','segments','Embedded\x20segment\x20\x27','Jump\x20step\x20requires\x20a\x20target','.exit_criteria[','message','referencedSegments','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','push','branches','982200kjAsza','.exit_criteria','UNUSED_EMBEDDED_SEGMENT','match','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','.with','MISSING_STAGES','decision_point','\x27\x20has\x20no\x20steps','INSUFFICIENT_STEPS','.rule','error','stepNames','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field','Stage\x20\x27','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27','timeout','End\x20step\x20\x27','map','\x20stages\x20but\x20maximum\x20is\x20','code','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','MISSING_ENTRY_CRITERIA','splice','state','latest','merge','4620uvbILH','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','variants','add','versions[',').\x20Merge\x20is\x20unnecessary.','startsWith','replace','.with.condition','.with.condition.next','stages','12DAwPKG','MISSING_EXIT_CRITERIA','activationKeys','MISSING_CONDITIONS','CONVERGENCE_WITHOUT_MERGE','keys','end','warning','44umHOzX','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','steps','join','Criteria\x20references\x20undefined\x20segment\x20\x27','ref:','\x27\x20has\x20no\x20end\x20step','Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','\x27\x20with\x20no\x20action\x20in\x20between','109015tUYgno','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','rule','stages[','name','END_STEP_HAS_NEXT_OR_WITH','MISSING_GOAL','condition','\x27\x20(from:\x20','\x27\x20(first\x20defined\x20at\x20steps[','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','FEW_STEPS','entry_criteria','MISSING_END_STEP','224QUYsoO','DUPLICATE_STEP_NAME','get','journeys','reduce','15480CZxigp','.with.branches','Merge\x20step\x20\x27','milestone','INVALID_JUMP_TARGET','MISSING_WAIT_PARAMS','.milestone','\x27\x20has\x20only\x20','stage','activations','.with.activation','versions','.with.condition.timeout.next','with','\x20versions)','Step\x20references\x20non-existent\x20step\x20\x27','.segment','some','level','.with.variants','branch\x20\x27','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','every','.with.target','2AgxWXg','set','350kDbPFj','size','source','jump','has','Journey\x20has\x20','next','69959HQxjkP','description','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','goalIsInherited','MISSING_ACTIVATION_DEFINITION','.entry_criteria','length','segments.','.with.variants[','embeddedSegments','MERGE_TO_MERGE_CHAIN','MISSING_MILESTONE','indices','.next','condition\x20of\x20\x27','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','target','.steps','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','.steps[','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27'];a121_0x25ef=function(){return _0x58cc49;};return a121_0x25ef();}function validateAbTestStep(_0x4229fb,_0x22b350,_0x2af0a7,_0x558e8e){const _0x3f1133=a121_0x1711,_0x4c6a96=[];if(!_0x4229fb[_0x3f1133(0x1de)]?.[_0x3f1133(0x1a4)]||_0x4229fb[_0x3f1133(0x1de)][_0x3f1133(0x1a4)][_0x3f1133(0x1f8)]===0x0)return _0x4c6a96['push'](createIssue(_0x3f1133(0x23d),_0x22b350+_0x3f1133(0x1e4),_0x3f1133(0x1b0),'A/B\x20test\x20requires\x20at\x20least\x20one\x20variant',_0x2af0a7,_0x22b350)),_0x4c6a96;const _0x4630da=_0x4229fb[_0x3f1133(0x1de)]['variants'][_0x3f1133(0x1d0)]((_0x4bb2a8,_0x47b919)=>_0x4bb2a8+(_0x47b919['percentage']||0x0),0x0);Math['abs'](_0x4630da-0x64)>0.01&&_0x4c6a96[_0x3f1133(0x22f)](createIssue(_0x3f1133(0x23d),_0x22b350+_0x3f1133(0x1e4),'INVALID_AB_TEST_PERCENTAGES','A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20'+_0x4630da+'%)',_0x2af0a7));for(let _0xc7bced=0x0;_0xc7bced<_0x4229fb['with'][_0x3f1133(0x1a4)][_0x3f1133(0x1f8)];_0xc7bced++){const _0x323e48=_0x4229fb[_0x3f1133(0x1de)]['variants'][_0xc7bced],_0x5a585b=_0x22b350+_0x3f1133(0x1fa)+_0xc7bced+']';_0x323e48[_0x3f1133(0x1f1)]&&_0x2af0a7['stepNames']&&!_0x2af0a7['stepNames'][_0x3f1133(0x1ef)](_0x323e48[_0x3f1133(0x1f1)])&&_0x4c6a96[_0x3f1133(0x22f)](createIssue('error',_0x5a585b+'.next',_0x3f1133(0x20c),_0x3f1133(0x225)+_0x323e48[_0x3f1133(0x1f1)]+'\x27',_0x2af0a7));if(_0x323e48[_0x3f1133(0x1f1)]){const _0x40c3eb=_0x558e8e[_0x3f1133(0x1ce)](_0x323e48[_0x3f1133(0x1f1)]);_0x40c3eb?.[_0x3f1133(0x222)]==='merge'&&_0x4c6a96[_0x3f1133(0x22f)](createIssue(_0x3f1133(0x1b4),_0x5a585b+_0x3f1133(0x1ff),_0x3f1133(0x212),_0x3f1133(0x20e)+_0x323e48[_0x3f1133(0x1c2)]+_0x3f1133(0x247)+_0x323e48['next']+_0x3f1133(0x1bd),_0x2af0a7));}}return _0x4c6a96;}function validateJumpStep(_0xc91755,_0x1a6164,_0x3bc530){const _0xf97075=a121_0x1711,_0x4e25d8=[];if(!_0xc91755['with']?.[_0xf97075(0x202)])return _0x4e25d8['push'](createIssue(_0xf97075(0x23d),_0x1a6164+_0xf97075(0x1e8),'INVALID_JUMP_TARGET',_0xf97075(0x22a),_0x3bc530,_0x1a6164)),_0x4e25d8;return(!_0xc91755[_0xf97075(0x1de)][_0xf97075(0x202)]['journey']||!_0xc91755[_0xf97075(0x1de)]['target'][_0xf97075(0x1d9)])&&_0x4e25d8[_0xf97075(0x22f)](createIssue(_0xf97075(0x23d),_0x1a6164+_0xf97075(0x1e8),_0xf97075(0x1d5),_0xf97075(0x1b6),_0x3bc530)),_0x4e25d8;}function buildConvergenceMap(_0x3c9891){const _0x743727=a121_0x1711,_0xa0bfdb=new Map();function _0x3e26b0(_0x46dff3,_0x485920){const _0x54be45=a121_0x1711,_0x31b046=_0xa0bfdb[_0x54be45(0x1ce)](_0x46dff3)||[];_0x31b046[_0x54be45(0x22f)](_0x485920),_0xa0bfdb['set'](_0x46dff3,_0x31b046);}for(const _0x29959f of _0x3c9891){_0x29959f['next']&&_0x3e26b0(_0x29959f[_0x743727(0x1f1)],{'stepName':_0x29959f[_0x743727(0x1c2)],'description':_0x743727(0x20f)+_0x29959f[_0x743727(0x1c2)]+'\x27'});if(_0x29959f[_0x743727(0x222)]==='decision_point'&&_0x29959f['with']?.['branches'])for(const _0x69bb82 of _0x29959f[_0x743727(0x1de)][_0x743727(0x230)]){_0x69bb82['next']&&_0x3e26b0(_0x69bb82['next'],{'stepName':_0x29959f['name'],'description':_0x743727(0x1e5)+_0x69bb82[_0x743727(0x1c2)]+'\x27\x20of\x20\x27'+_0x29959f[_0x743727(0x1c2)]+'\x27'});}if(_0x29959f[_0x743727(0x222)]===_0x743727(0x21d)&&_0x29959f[_0x743727(0x1de)]?.[_0x743727(0x1a4)])for(const _0x4e21cd of _0x29959f['with'][_0x743727(0x1a4)]){_0x4e21cd['next']&&_0x3e26b0(_0x4e21cd[_0x743727(0x1f1)],{'stepName':_0x29959f[_0x743727(0x1c2)],'description':'variant\x20\x27'+_0x4e21cd['name']+_0x743727(0x20d)+_0x29959f[_0x743727(0x1c2)]+'\x27'});}_0x29959f[_0x743727(0x222)]===_0x743727(0x211)&&_0x29959f[_0x743727(0x1de)]?.[_0x743727(0x1c5)]&&(_0x29959f[_0x743727(0x1de)][_0x743727(0x1c5)][_0x743727(0x1f1)]&&_0x3e26b0(_0x29959f[_0x743727(0x1de)][_0x743727(0x1c5)][_0x743727(0x1f1)],{'stepName':_0x29959f[_0x743727(0x1c2)],'description':_0x743727(0x200)+_0x29959f['name']+'\x27'}),_0x29959f[_0x743727(0x1de)][_0x743727(0x1c5)][_0x743727(0x242)]?.[_0x743727(0x1f1)]&&_0x3e26b0(_0x29959f[_0x743727(0x1de)][_0x743727(0x1c5)][_0x743727(0x242)]['next'],{'stepName':_0x29959f[_0x743727(0x1c2)],'description':'timeout\x20of\x20\x27'+_0x29959f[_0x743727(0x1c2)]+'\x27'}));}return _0xa0bfdb;}function validateFlowControl(_0xaff668,_0x32cd54,_0x53164b){const _0x336617=a121_0x1711,_0xf4252c=[],_0x51c24c=_0x336617(0x1c1)+_0x32cd54+']',_0x1e9981=_0xaff668[_0x336617(0x1b7)]||[];if(_0x1e9981[_0x336617(0x1f8)]===0x0)return _0xf4252c;const _0x121000=new Map();for(const _0x1cddd9 of _0x1e9981){_0x1cddd9[_0x336617(0x1c2)]&&_0x121000[_0x336617(0x1ea)](_0x1cddd9['name'],_0x1cddd9);}const _0x5a2d7a=buildConvergenceMap(_0x1e9981),_0xde8c49=_0x1e9981[_0x336617(0x1e2)](_0x1e509c=>_0x1e509c['type']===_0x336617(0x1b3));!_0xde8c49&&_0xf4252c[_0x336617(0x22f)](createIssue(_0x336617(0x23d),_0x51c24c+'.steps',_0x336617(0x1cb),_0x336617(0x240)+_0xaff668[_0x336617(0x1c2)]+_0x336617(0x1bb),_0x53164b));for(const [_0x14a899,_0x3eaf8b]of _0x5a2d7a){const _0xdab43b=_0x121000['get'](_0x14a899);if(!_0xdab43b)continue;if(_0x3eaf8b['length']>0x1&&_0xdab43b['type']!==_0x336617(0x1a1)){const _0x48b242=_0x3eaf8b[_0x336617(0x244)](_0x46cca9=>_0x46cca9[_0x336617(0x1f3)])[_0x336617(0x1b8)](',\x20');_0xf4252c[_0x336617(0x22f)](createIssue(_0x336617(0x23d),_0x51c24c+_0x336617(0x203),_0x336617(0x1b1),'Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27'+_0x14a899+_0x336617(0x1c6)+_0x48b242+').\x20Use\x20a\x20merge\x20step.',_0x53164b));}_0x3eaf8b['length']===0x1&&_0xdab43b[_0x336617(0x222)]===_0x336617(0x1a1)&&_0xf4252c[_0x336617(0x22f)](createIssue(_0x336617(0x1b4),_0x51c24c+_0x336617(0x203),'SINGLE_INPUT_MERGE',_0x336617(0x1d3)+_0x14a899+_0x336617(0x1bf)+_0x3eaf8b[0x0][_0x336617(0x1f3)]+_0x336617(0x1a7),_0x53164b));}for(const _0xe037f6 of _0x1e9981){if(_0xe037f6[_0x336617(0x222)]==='merge'&&_0xe037f6[_0x336617(0x1f1)]){const _0x179e10=_0x121000[_0x336617(0x1ce)](_0xe037f6[_0x336617(0x1f1)]);_0x179e10?.[_0x336617(0x222)]===_0x336617(0x1a1)&&_0xf4252c[_0x336617(0x22f)](createIssue('error',_0x51c24c+_0x336617(0x203),_0x336617(0x1fc),_0x336617(0x1d3)+_0xe037f6[_0x336617(0x1c2)]+_0x336617(0x206)+_0xe037f6[_0x336617(0x1f1)]+'\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.',_0x53164b));}}return _0xf4252c;}function validateCriteria(_0x4ae934,_0x1f8306,_0x422401){const _0x185c13=a121_0x1711,_0x373d7a=[];return _0x4ae934['segment']&&(_0x422401[_0x185c13(0x22d)]?.[_0x185c13(0x1a5)](_0x4ae934[_0x185c13(0x218)]),!_0x4ae934[_0x185c13(0x218)][_0x185c13(0x1a8)](_0x185c13(0x1ba))&&(_0x422401[_0x185c13(0x1fb)]&&!_0x422401['embeddedSegments'][_0x185c13(0x1ef)](_0x4ae934[_0x185c13(0x218)])&&_0x373d7a[_0x185c13(0x22f)](createIssue('error',_0x1f8306+_0x185c13(0x1e1),'MISSING_SEGMENT_REFERENCE',_0x185c13(0x1b9)+_0x4ae934[_0x185c13(0x218)]+'\x27',_0x422401)))),_0x373d7a;}function validateEmbeddedSegment(_0x48149f,_0x41f02a,_0x50b554){const _0x48bcad=a121_0x1711,_0x1aeef8=[];return _0x48149f['rule']&&_0x1aeef8[_0x48bcad(0x22f)](...validateRuleDef(_0x48149f[_0x48bcad(0x1c0)],_0x41f02a+_0x48bcad(0x23c),_0x50b554)),_0x1aeef8;}function validateStage(_0x3663dc,_0x1a5153,_0x50b8c3,_0x1ee449){const _0x4e1d84=a121_0x1711,_0x1454a4=[],_0x4dbac2='stages['+_0x1a5153+']',_0x16c94c=new Map(),_0x4fa4ba=new Map();if(_0x3663dc[_0x4e1d84(0x1b7)]){for(let _0x759186=0x0;_0x759186<_0x3663dc['steps']['length'];_0x759186++){const _0x2889dd=_0x3663dc[_0x4e1d84(0x1b7)][_0x759186];_0x2889dd[_0x4e1d84(0x1c2)]&&_0x16c94c['set'](_0x2889dd[_0x4e1d84(0x1c2)],_0x2889dd);}for(let _0x360366=0x0;_0x360366<_0x3663dc[_0x4e1d84(0x1b7)][_0x4e1d84(0x1f8)];_0x360366++){const _0x10290c=_0x3663dc[_0x4e1d84(0x1b7)][_0x360366],_0x3f65be=_0x4dbac2+_0x4e1d84(0x205)+_0x360366+']';if(_0x10290c['name']){if(_0x4fa4ba[_0x4e1d84(0x1ef)](_0x10290c['name'])){const _0x24a927=_0x4fa4ba[_0x4e1d84(0x1ce)](_0x10290c[_0x4e1d84(0x1c2)]);_0x1454a4[_0x4e1d84(0x22f)](createIssue(_0x4e1d84(0x23d),_0x3f65be+'.name',_0x4e1d84(0x1cd),'Duplicate\x20step\x20name\x20\x27'+_0x10290c['name']+_0x4e1d84(0x1c7)+_0x24a927+'])',_0x1ee449));}else _0x4fa4ba[_0x4e1d84(0x1ea)](_0x10290c[_0x4e1d84(0x1c2)],_0x360366);}_0x1454a4['push'](...validateStep(_0x10290c,_0x3f65be,_0x1ee449,_0x16c94c));}}_0x3663dc[_0x4e1d84(0x1ca)]&&_0x1454a4[_0x4e1d84(0x22f)](...validateCriteria(_0x3663dc[_0x4e1d84(0x1ca)],_0x4dbac2+_0x4e1d84(0x1f7),_0x1ee449));if(_0x3663dc['exit_criteria'])for(let _0x2efd2d=0x0;_0x2efd2d<_0x3663dc[_0x4e1d84(0x227)][_0x4e1d84(0x1f8)];_0x2efd2d++){_0x1454a4[_0x4e1d84(0x22f)](...validateCriteria(_0x3663dc[_0x4e1d84(0x227)][_0x2efd2d],_0x4dbac2+_0x4e1d84(0x22b)+_0x2efd2d+']',_0x1ee449));}return _0x3663dc[_0x4e1d84(0x1d4)]&&_0x1454a4[_0x4e1d84(0x22f)](...validateCriteria(_0x3663dc[_0x4e1d84(0x1d4)],_0x4dbac2+_0x4e1d84(0x1d7),_0x1ee449)),_0x1454a4[_0x4e1d84(0x22f)](...validateStageStructure(_0x3663dc,_0x1a5153,_0x50b8c3,_0x1ee449)),_0x1454a4['push'](...validateFlowControl(_0x3663dc,_0x1a5153,_0x1ee449)),_0x1454a4;}function validateStagesForVersion(_0x2fcdd1,_0x153f36,_0x4bd524,_0x1ccd5c,_0x412854,_0x491175,_0x142fa5){const _0x12e474=a121_0x1711;if(_0x2fcdd1[_0x12e474(0x1f8)]===0x0){_0x412854[_0x12e474(0x22f)]({'level':_0x12e474(0x23d),'path':_0x1ccd5c+'stages','code':_0x12e474(0x238),'message':'Journey\x20must\x20have\x20at\x20least\x20one\x20stage','location':getLocationFromPath(_0x4bd524[_0x12e474(0x221)],_0x4bd524[_0x12e474(0x1ed)],[_0x12e474(0x1ac)])});return;}const _0x3b00fa=new Set();for(const _0x2185cf of _0x2fcdd1){if(_0x2185cf[_0x12e474(0x1b7)])for(const _0x443565 of _0x2185cf[_0x12e474(0x1b7)]){_0x443565[_0x12e474(0x1c2)]&&_0x3b00fa[_0x12e474(0x1a5)](_0x443565['name']);}}const _0x5ae780={..._0x4bd524,'stepNames':_0x3b00fa},_0x578578=validateVersionStructure(_0x2fcdd1,_0x5ae780);for(const _0x5df561 of _0x578578){const _0x5501f6=_0x1ccd5c?{..._0x5df561,'path':''+_0x1ccd5c+_0x5df561[_0x12e474(0x21c)]}:_0x5df561;if(_0x5501f6[_0x12e474(0x1e3)]===_0x12e474(0x23d))_0x412854[_0x12e474(0x22f)](_0x5501f6);else _0x491175[_0x12e474(0x22f)](_0x5501f6);}for(let _0xe477da=0x0;_0xe477da<_0x2fcdd1['length'];_0xe477da++){const _0x5439fc=validateStage(_0x2fcdd1[_0xe477da],_0xe477da,_0x2fcdd1[_0x12e474(0x1f8)],_0x5ae780);for(const _0x195ebe of _0x5439fc){const _0x573f68=_0x1ccd5c?{..._0x195ebe,'path':''+_0x1ccd5c+_0x195ebe[_0x12e474(0x21c)]}:_0x195ebe;if(_0x573f68[_0x12e474(0x1e3)]===_0x12e474(0x23d))_0x412854[_0x12e474(0x22f)](_0x573f68);else _0x491175[_0x12e474(0x22f)](_0x573f68);}}if(_0x153f36['goal']){const _0x288758=_0x142fa5?.[_0x12e474(0x1f5)]?_0x12e474(0x223):_0x1ccd5c+_0x12e474(0x223),_0x246c5e=validateCriteria(_0x153f36[_0x12e474(0x223)],_0x288758,_0x5ae780);for(const _0x5bbe58 of _0x246c5e){if(_0x5bbe58[_0x12e474(0x1e3)]===_0x12e474(0x23d))_0x412854[_0x12e474(0x22f)](_0x5bbe58);else _0x491175[_0x12e474(0x22f)](_0x5bbe58);}}}function extractVersionIndex(_0x4085c0){const _0x41c209=a121_0x1711,_0x37d770=_0x4085c0[_0x41c209(0x234)](/^journeys\[(\d+)\]\./);return _0x37d770?_0x37d770[0x1]:undefined;}function deduplicateAcrossVersions(_0x4f1747){const _0x2c0eab=a121_0x1711,_0xbe6020=new Map();for(let _0x5dda18=0x0;_0x5dda18<_0x4f1747[_0x2c0eab(0x1f8)];_0x5dda18++){const _0x1e3a57=_0x4f1747[_0x5dda18][_0x2c0eab(0x246)]+':'+_0x4f1747[_0x5dda18][_0x2c0eab(0x22c)],_0x5dc19f=extractVersionIndex(_0x4f1747[_0x5dda18][_0x2c0eab(0x21c)]),_0x7b14c0=_0xbe6020[_0x2c0eab(0x1ce)](_0x1e3a57);if(_0x7b14c0){_0x7b14c0[_0x2c0eab(0x1fe)][_0x2c0eab(0x22f)](_0x5dda18);if(_0x5dc19f)_0x7b14c0['versions']['add'](_0x5dc19f);}else _0xbe6020[_0x2c0eab(0x1ea)](_0x1e3a57,{'indices':[_0x5dda18],'versions':new Set(_0x5dc19f?[_0x5dc19f]:[])});}const _0x5884ca=new Set();for(const {indices:_0x46548a,versions:_0xa059d4}of _0xbe6020[_0x2c0eab(0x226)]()){if(_0xa059d4[_0x2c0eab(0x1ec)]<=0x1)continue;const _0xb5df0b=_0x4f1747[_0x46548a[0x0]];_0xb5df0b[_0x2c0eab(0x21c)]=_0xb5df0b[_0x2c0eab(0x21c)][_0x2c0eab(0x1a9)](/^journeys\[\d+\]\./,''),_0xb5df0b[_0x2c0eab(0x22c)]=_0xb5df0b[_0x2c0eab(0x22c)]+'\x20(across\x20'+_0xa059d4[_0x2c0eab(0x1ec)]+_0x2c0eab(0x1df);for(let _0x1e6243=0x1;_0x1e6243<_0x46548a[_0x2c0eab(0x1f8)];_0x1e6243++){_0x5884ca[_0x2c0eab(0x1a5)](_0x46548a[_0x1e6243]);}}const _0x5014aa=[..._0x5884ca]['sort']((_0x581d11,_0x3b9d93)=>_0x3b9d93-_0x581d11);for(const _0x4dad78 of _0x5014aa){_0x4f1747[_0x2c0eab(0x249)](_0x4dad78,0x1);}}export function validateJourneyDef(_0x3847db,_0x5568a7={}){const _0x576f17=a121_0x1711,_0x41ea9b=[],_0x465a05=[];(!_0x3847db[_0x576f17(0x1c2)]||_0x3847db[_0x576f17(0x1c2)]['trim']()==='')&&_0x41ea9b['push']({'level':_0x576f17(0x23d),'path':_0x576f17(0x1c2),'code':'MISSING_NAME','message':'Journey\x20name\x20is\x20required','location':getLocationFromPath(_0x5568a7['document'],_0x5568a7[_0x576f17(0x1ed)],['name'])});const _0x59ffe1=new Set();if(_0x3847db['segments'])for(const _0x48a2c5 of Object[_0x576f17(0x1b2)](_0x3847db[_0x576f17(0x228)])){_0x59ffe1[_0x576f17(0x1a5)](_0x48a2c5);}const _0x4f32b7=new Set();if(_0x3847db[_0x576f17(0x1da)])for(const _0x500ef0 of Object[_0x576f17(0x1b2)](_0x3847db[_0x576f17(0x1da)])){_0x4f32b7[_0x576f17(0x1a5)](_0x500ef0);}const _0x5afad0=new Set(),_0x30ef7f={..._0x5568a7,'embeddedSegments':_0x59ffe1,'referencedSegments':_0x5afad0,'activationKeys':_0x4f32b7[_0x576f17(0x1ec)]>0x0?_0x4f32b7:undefined};if(_0x3847db['segments'])for(const [_0xf78e66,_0x55fd80]of Object[_0x576f17(0x215)](_0x3847db['segments'])){const _0x910545=validateEmbeddedSegment(_0x55fd80,_0x576f17(0x1f9)+_0xf78e66,_0x30ef7f);for(const _0x43b249 of _0x910545){if(_0x43b249[_0x576f17(0x1e3)]===_0x576f17(0x23d))_0x41ea9b['push'](_0x43b249);else _0x465a05[_0x576f17(0x22f)](_0x43b249);}}const _0x3a331b=!!_0x3847db[_0x576f17(0x223)],_0x276662=_0x3847db['journeys']?.[_0x576f17(0x1e7)](_0x52ebee=>!!_0x52ebee[_0x576f17(0x223)])??![];!_0x3a331b&&!_0x276662&&_0x41ea9b['push']({'level':_0x576f17(0x23d),'path':_0x576f17(0x223),'code':_0x576f17(0x1c4),'message':'Journey\x20must\x20have\x20a\x20goal\x20defined','location':getLocationFromPath(_0x5568a7[_0x576f17(0x221)],_0x5568a7[_0x576f17(0x1ed)],[_0x576f17(0x223)])});if(_0x3847db[_0x576f17(0x1cf)]&&_0x3847db['journeys']['length']>0x0)for(let _0x267853=0x0;_0x267853<_0x3847db[_0x576f17(0x1cf)][_0x576f17(0x1f8)];_0x267853++){const _0x2ec9e6=_0x3847db[_0x576f17(0x1cf)][_0x267853];if(_0x3847db['journeys']['length']>0x1&&_0x2ec9e6[_0x576f17(0x24a)]===_0x576f17(0x21f)&&!_0x2ec9e6[_0x576f17(0x24b)])continue;const _0x15476a=_0x2ec9e6[_0x576f17(0x1ac)]||[],_0x875bc1='journeys['+_0x267853+'].',_0x2dffab=!!_0x2ec9e6['goal'],_0xf06806=_0x2dffab?{..._0x3847db,'goal':_0x2ec9e6[_0x576f17(0x223)]}:_0x3847db;validateStagesForVersion(_0x15476a,_0xf06806,_0x30ef7f,_0x875bc1,_0x41ea9b,_0x465a05,{'goalIsInherited':!_0x2dffab});}else{if(_0x3847db[_0x576f17(0x1dc)]&&_0x3847db[_0x576f17(0x1dc)][_0x576f17(0x1f8)]>0x0)for(let _0x1b7e26=0x0;_0x1b7e26<_0x3847db[_0x576f17(0x1dc)][_0x576f17(0x1f8)];_0x1b7e26++){const _0x3baf6d=_0x3847db[_0x576f17(0x1dc)][_0x1b7e26];if(_0x3847db[_0x576f17(0x1dc)][_0x576f17(0x1f8)]>0x1&&_0x3baf6d['state']===_0x576f17(0x21f)&&!_0x3baf6d['latest'])continue;const _0x8bfe5a=_0x3baf6d[_0x576f17(0x1ac)]||[],_0x2d3c54=_0x576f17(0x1a6)+_0x1b7e26+'].';validateStagesForVersion(_0x8bfe5a,_0x3847db,_0x30ef7f,_0x2d3c54,_0x41ea9b,_0x465a05);}else{const _0x18269e=_0x3847db['stages']||[];validateStagesForVersion(_0x18269e,_0x3847db,_0x30ef7f,'',_0x41ea9b,_0x465a05);}}_0x3847db[_0x576f17(0x1cf)]&&_0x3847db[_0x576f17(0x1cf)]['length']>0x1&&(deduplicateAcrossVersions(_0x41ea9b),deduplicateAcrossVersions(_0x465a05));for(const _0x1e90c0 of _0x59ffe1){!_0x5afad0[_0x576f17(0x1ef)](_0x1e90c0)&&!_0x1e90c0[_0x576f17(0x1a8)](_0x576f17(0x21e))&&_0x465a05[_0x576f17(0x22f)]({'level':_0x576f17(0x1b4),'path':'segments.'+_0x1e90c0,'code':_0x576f17(0x233),'message':_0x576f17(0x229)+_0x1e90c0+_0x576f17(0x204),'location':getLocationFromPath(_0x5568a7[_0x576f17(0x221)],_0x5568a7[_0x576f17(0x1ed)],[_0x576f17(0x228),_0x1e90c0])});}return{'valid':_0x41ea9b[_0x576f17(0x1f8)]===0x0,'errors':_0x41ea9b,'warnings':_0x465a05};}
|