@treasuredata/tdx 0.29.4 → 0.29.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-command.js.map +1 -1
- package/dist/commands/engage-template-pull-command.d.ts +15 -0
- package/dist/commands/engage-template-pull-command.d.ts.map +1 -0
- package/dist/commands/engage-template-pull-command.js +1 -0
- package/dist/commands/engage-template-pull-command.js.map +1 -0
- package/dist/commands/engage-template-push-command.d.ts +16 -0
- package/dist/commands/engage-template-push-command.d.ts.map +1 -0
- package/dist/commands/engage-template-push-command.js +1 -0
- package/dist/commands/engage-template-push-command.js.map +1 -0
- package/dist/commands/engage-template-validate-command.d.ts +19 -0
- package/dist/commands/engage-template-validate-command.d.ts.map +1 -0
- package/dist/commands/engage-template-validate-command.js +1 -0
- package/dist/commands/engage-template-validate-command.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/query-command.js.map +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.d.ts +6 -0
- package/dist/core/command-output.d.ts.map +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/command-output.js.map +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.d.ts +9 -0
- package/dist/sdk/client/endpoints.d.ts.map +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/endpoints.js.map +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.d.ts +73 -0
- package/dist/sdk/engage/template-pull.d.ts.map +1 -0
- package/dist/sdk/engage/template-pull.js +1 -0
- package/dist/sdk/engage/template-pull.js.map +1 -0
- package/dist/sdk/engage/template-push.d.ts +99 -0
- package/dist/sdk/engage/template-push.d.ts.map +1 -0
- package/dist/sdk/engage/template-push.js +1 -0
- package/dist/sdk/engage/template-push.js.map +1 -0
- package/dist/sdk/engage/template-validator.d.ts +18 -0
- package/dist/sdk/engage/template-validator.d.ts.map +1 -0
- package/dist/sdk/engage/template-validator.js +1 -0
- package/dist/sdk/engage/template-validator.js.map +1 -0
- package/dist/sdk/engage/template-yaml.d.ts +69 -0
- package/dist/sdk/engage/template-yaml.d.ts.map +1 -0
- package/dist/sdk/engage/template-yaml.js +1 -0
- package/dist/sdk/engage/template-yaml.js.map +1 -0
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.d.ts +33 -0
- package/dist/sdk/engage/types/template-schema.d.ts.map +1 -0
- package/dist/sdk/engage/types/template-schema.js +1 -0
- package/dist/sdk/engage/types/template-schema.js.map +1 -0
- package/dist/sdk/engage.d.ts +1 -0
- package/dist/sdk/engage.d.ts.map +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/engage.js.map +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.d.ts +6 -1
- package/dist/sdk/segment/validate-files.d.ts.map +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/validate-files.js.map +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment/yaml-validator.js.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/engage.d.ts +2 -0
- package/dist/sdk/types/engage.d.ts.map +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/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a128_0x1ea9(_0x39fe40,_0x3d1bcf){_0x39fe40=_0x39fe40-0xfc;const _0x25e486=a128_0x25e4();let _0x1ea9ed=_0x25e486[_0x39fe40];return _0x1ea9ed;}(function(_0x19d4a3,_0x3fa22a){const _0x1db76a=a128_0x1ea9,_0x45ab53=_0x19d4a3();while(!![]){try{const _0xa95f79=-parseInt(_0x1db76a(0x105))/0x1+-parseInt(_0x1db76a(0xfe))/0x2+parseInt(_0x1db76a(0x103))/0x3+-parseInt(_0x1db76a(0x108))/0x4*(-parseInt(_0x1db76a(0x10c))/0x5)+-parseInt(_0x1db76a(0x104))/0x6+parseInt(_0x1db76a(0xfc))/0x7*(parseInt(_0x1db76a(0x102))/0x8)+parseInt(_0x1db76a(0x107))/0x9;if(_0xa95f79===_0x3fa22a)break;else _0x45ab53['push'](_0x45ab53['shift']());}catch(_0x588870){_0x45ab53['push'](_0x45ab53['shift']());}}}(a128_0x25e4,0xb58d4));import{readdirSync,statSync}from'fs';import a128_0x4ba478 from'path';function a128_0x25e4(){const _0xb80bc8=['15arRlFx','.yaml','14xjcwTQ','.yml','2970140PaVePn','name','relative','dirname','3839576lYmOou','3643782kmXzGM','8725854uSxDXV','593612gYexOp','map','6516828SaeKfn','1837396yJohvh','toLowerCase','endsWith','join'];a128_0x25e4=function(){return _0xb80bc8;};return a128_0x25e4();}export function findYamlFiles(_0x2ac84b){const _0x2d8613=[];function _0x6b08bb(_0x2a1774){const _0x4ccceb=a128_0x1ea9,_0x36d811=readdirSync(_0x2a1774,{'withFileTypes':!![]});for(const _0xcc1608 of _0x36d811){const _0x3cf9d9=a128_0x4ba478[_0x4ccceb(0x10b)](_0x2a1774,_0xcc1608[_0x4ccceb(0xff)]);if(_0xcc1608['isDirectory']())_0x6b08bb(_0x3cf9d9);else(_0xcc1608[_0x4ccceb(0xff)][_0x4ccceb(0x10a)](_0x4ccceb(0xfd))||_0xcc1608[_0x4ccceb(0xff)][_0x4ccceb(0x10a)](_0x4ccceb(0x10d)))&&_0x2d8613['push'](_0x3cf9d9);}}return _0x6b08bb(_0x2ac84b),_0x2d8613;}export function discoverYamlFiles(_0x56db85){const _0x13edba=a128_0x1ea9,_0x41f776=findYamlFiles(_0x56db85);return _0x41f776[_0x13edba(0x106)](_0x15311b=>{const _0x40d076=_0x13edba,_0xcb0e76=a128_0x4ba478[_0x40d076(0x100)](_0x56db85,_0x15311b),_0x4d3d89=a128_0x4ba478[_0x40d076(0x101)](_0xcb0e76);return{'absolutePath':_0x15311b,'relativePath':_0xcb0e76,'folderPath':_0x4d3d89==='.'?'':_0x4d3d89};});}export function isYamlFile(_0xc8e9e6){const _0x271eaa=a128_0x1ea9;try{const _0x5102e6=statSync(_0xc8e9e6);if(!_0x5102e6['isFile']())return![];const _0x1d3081=a128_0x4ba478['extname'](_0xc8e9e6)[_0x271eaa(0x109)]();return _0x1d3081===_0x271eaa(0xfd)||_0x1d3081===_0x271eaa(0x10d);}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function a121_0x27f2(){const _0x1c086e=['replace','keys','columns','3972920mSWaHM','segment','1881356BdYukN','yaml','.yaml','1915050zRiuuL','exit_criteria','item','include','has','wait','reentry','decision_point','toLowerCase','journeyBundleName','values','push','journeyStages','notification','merged','startsWith','behavior','stages','isArray','find','connector_config','name','version','attributes','string','bundle_id','get','entry_criteria','trim','activations','482867QQOvJm','67RvNXFe','length','exclude','schedule','slice','type','version_number','some','entries','journeys','steps','journey','activation','1430091hMcfad','versions','with','match','description','milestone','state','stringify','endsWith','branches','conditions','null','segments','102AzgNCJ','rule','object','join','from','sort','nameMapping','20jmrnnI','12802bFSWXO','map','set','6883208YvgCKf','activation_template_id','index','goal','all_columns','connection','condition'];a121_0x27f2=function(){return _0x1c086e;};return a121_0x27f2();}(function(_0xcafc6a,_0x5e417e){const _0x3171eb=a121_0x14f8,_0x560c56=_0xcafc6a();while(!![]){try{const _0x30392f=parseInt(_0x3171eb(0xaa))/0x1*(parseInt(_0x3171eb(0xcc))/0x2)+parseInt(_0x3171eb(0x8b))/0x3+parseInt(_0x3171eb(0x88))/0x4+-parseInt(_0x3171eb(0x86))/0x5+-parseInt(_0x3171eb(0xc4))/0x6*(parseInt(_0x3171eb(0xa9))/0x7)+parseInt(_0x3171eb(0x7c))/0x8+-parseInt(_0x3171eb(0xb7))/0x9*(-parseInt(_0x3171eb(0xcb))/0xa);if(_0x30392f===_0x5e417e)break;else _0x560c56['push'](_0x560c56['shift']());}catch(_0x90675d){_0x560c56['push'](_0x560c56['shift']());}}}(a121_0x27f2,0xb6bce));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x21547e){const _0x5ef89c=a121_0x14f8;return _0x21547e[_0x5ef89c(0x93)]()[_0x5ef89c(0x83)](/\s+/g,'_')[_0x5ef89c(0x83)](/[^a-z0-9_]/g,'')[_0x5ef89c(0x83)](/_+/g,'_')[_0x5ef89c(0x83)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x38dcb0){const _0x21431a=a121_0x14f8,_0x570aaa=_0x38dcb0[_0x21431a(0xba)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x570aaa){const _0x19c524=_0x570aaa[0x1][_0x21431a(0x93)](),_0x3a95c0=_0x570aaa[0x2],_0x5ebfd4=_0x3a95c0[_0x21431a(0x83)](/-/g,'')[_0x21431a(0xae)](0x0,0x4)[_0x21431a(0x93)]();return _0x19c524+'_'+_0x5ebfd4;}const _0x5212fc=_0x38dcb0[_0x21431a(0xba)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x5212fc){const _0x53f01a=_0x5212fc[0x1],_0x679489=_0x5212fc[0x2][_0x21431a(0x93)](),_0x3889e6=_0x53f01a[_0x21431a(0x83)](/-/g,'')[_0x21431a(0xae)](0x0,0x4)[_0x21431a(0x93)]();return _0x679489+'_'+_0x3889e6;}return undefined;}function stableStringify(_0x3c889c){const _0x315ab6=a121_0x14f8;if(Array[_0x315ab6(0x9d)](_0x3c889c))return'['+_0x3c889c[_0x315ab6(0xcd)](_0x116525=>stableStringify(_0x116525))[_0x315ab6(0xc7)](',')+']';if(_0x3c889c&&typeof _0x3c889c===_0x315ab6(0xc6)){const _0x371f80=_0x3c889c,_0x5845ed=Object['keys'](_0x371f80)['sort'](),_0x185f9d=_0x5845ed['map'](_0x1276ee=>'\x22'+_0x1276ee+'\x22:'+stableStringify(_0x371f80[_0x1276ee]));return'{'+_0x185f9d['join'](',')+'}';}const _0x55c7fa=JSON[_0x315ab6(0xbe)](_0x3c889c);return _0x55c7fa===undefined?_0x315ab6(0xc2):_0x55c7fa;}export function consolidateActivationsByContent(_0x341ece){const _0x14bceb=a121_0x14f8,_0x1727e1={},_0x2f5488=new Map(),_0x5e3478=new Map();for(const _0x420f34 of _0x341ece){if(!_0x420f34)continue;for(const [_0x164fbd,_0x31954b]of Object[_0x14bceb(0xb2)](_0x420f34)){const _0xf0e68f={'connection':_0x31954b[_0x14bceb(0x81)],..._0x31954b[_0x14bceb(0x80)]!==undefined&&{'all_columns':_0x31954b['all_columns']},..._0x31954b[_0x14bceb(0x85)]!==undefined&&{'columns':_0x31954b[_0x14bceb(0x85)]},..._0x31954b[_0x14bceb(0x9b)]!==undefined&&{'behavior':_0x31954b[_0x14bceb(0x9b)]},..._0x31954b[_0x14bceb(0xad)]!==undefined&&{'schedule':_0x31954b[_0x14bceb(0xad)]},..._0x31954b[_0x14bceb(0x98)]!==undefined&&{'notification':_0x31954b['notification']},..._0x31954b[_0x14bceb(0x9f)]!==undefined&&{'connector_config':_0x31954b['connector_config']},..._0x31954b[_0x14bceb(0x7d)]!==undefined&&{'activation_template_id':_0x31954b['activation_template_id']}},_0x13bc1c=stableStringify(_0xf0e68f),_0x10a771=_0x5e3478[_0x14bceb(0xa5)](_0x13bc1c);_0x10a771?_0x2f5488[_0x14bceb(0x7b)](_0x164fbd,_0x10a771):(_0x1727e1[_0x164fbd]=_0x31954b,_0x2f5488[_0x14bceb(0x7b)](_0x164fbd,_0x164fbd),_0x5e3478[_0x14bceb(0x7b)](_0x13bc1c,_0x164fbd));}}return{'merged':_0x1727e1,'nameMapping':_0x2f5488};}export function updateActivationReferences(_0x963062,_0x2fefbd){const _0x2ecf54=a121_0x14f8;if(!_0x963062)return;for(const _0x59b1f4 of _0x963062){if(!_0x59b1f4[_0x2ecf54(0xb4)])continue;for(const _0x57d443 of _0x59b1f4[_0x2ecf54(0xb4)]){if(_0x57d443[_0x2ecf54(0xaf)]==='activation'&&_0x57d443['with']?.[_0x2ecf54(0xb6)]){const _0x8867a1=_0x2fefbd['get'](_0x57d443[_0x2ecf54(0xb9)][_0x2ecf54(0xb6)]);_0x8867a1&&_0x8867a1!==_0x57d443[_0x2ecf54(0xb9)][_0x2ecf54(0xb6)]&&(_0x57d443[_0x2ecf54(0xb9)][_0x2ecf54(0xb6)]=_0x8867a1);}}}}export function consolidateSegmentsByContent(_0x105ac3,_0x13321e){const _0x1cb06d=a121_0x14f8,_0x4ed0b5={},_0x471ca7=new Map(),_0x1a57af=new Map();for(const _0x4bae35 of _0x105ac3){if(!_0x4bae35)continue;for(const [_0x592121,_0x18a26b]of Object[_0x1cb06d(0xb2)](_0x4bae35)){if(!_0x18a26b[_0x1cb06d(0xc5)]){_0x4ed0b5[_0x592121]=_0x18a26b,_0x471ca7[_0x1cb06d(0x7b)](_0x592121,_0x592121);continue;}const _0x94783f=_0x18a26b[_0x1cb06d(0xbb)]&&_0x18a26b['description'][_0x1cb06d(0xa7)]()?_0x18a26b['description']:undefined,_0x4cfb73=JSON[_0x1cb06d(0xbe)]({'description':_0x94783f,'rule':deepSortObject(_0x18a26b[_0x1cb06d(0xc5)])}),_0x54676a=_0x1a57af[_0x1cb06d(0xa5)](_0x4cfb73);if(_0x54676a){const _0xbb6768={..._0x18a26b[_0x1cb06d(0xbb)]!==undefined&&{'description':_0x18a26b[_0x1cb06d(0xbb)]},'rule':_0x18a26b[_0x1cb06d(0xc5)]?deepSortObject(_0x18a26b[_0x1cb06d(0xc5)]):_0x18a26b[_0x1cb06d(0xc5)]};if(_0x592121<_0x54676a){_0x4ed0b5[_0x592121]=_0xbb6768,delete _0x4ed0b5[_0x54676a];for(const [_0x4abd80,_0x2a4113]of _0x471ca7[_0x1cb06d(0xb2)]()){_0x2a4113===_0x54676a&&_0x471ca7[_0x1cb06d(0x7b)](_0x4abd80,_0x592121);}_0x471ca7[_0x1cb06d(0x7b)](_0x592121,_0x592121),_0x1a57af['set'](_0x4cfb73,_0x592121);}else _0x4ed0b5[_0x54676a]=_0xbb6768,_0x471ca7['set'](_0x592121,_0x54676a);}else{let _0x308de8=_0x592121;if(_0x13321e){const _0x4817b1=_0x13321e[_0x1cb06d(0xa5)](_0x4cfb73);_0x4817b1&&_0x4817b1[_0x1cb06d(0xab)]>0x0&&(_0x308de8=_0x4817b1[_0x1cb06d(0xae)]()[_0x1cb06d(0xc9)]()[0x0]);}const _0x4adbf4={..._0x18a26b[_0x1cb06d(0xbb)]!==undefined&&{'description':_0x18a26b[_0x1cb06d(0xbb)]},'rule':_0x18a26b['rule']?deepSortObject(_0x18a26b[_0x1cb06d(0xc5)]):_0x18a26b[_0x1cb06d(0xc5)]};_0x4ed0b5[_0x308de8]=_0x4adbf4,_0x471ca7['set'](_0x592121,_0x308de8),_0x1a57af[_0x1cb06d(0x7b)](_0x4cfb73,_0x308de8);}}}return{'merged':_0x4ed0b5,'nameMapping':_0x471ca7};}export function updateSegmentReferences(_0x3da555,_0x1437d1){const _0x3f301a=a121_0x14f8;if(!_0x3da555)return;for(const _0xfcec4b of _0x3da555){if(_0xfcec4b[_0x3f301a(0xa6)]?.[_0x3f301a(0x87)]){const _0x5bc74a=_0x1437d1[_0x3f301a(0xa5)](_0xfcec4b['entry_criteria'][_0x3f301a(0x87)]);_0x5bc74a&&(_0xfcec4b[_0x3f301a(0xa6)][_0x3f301a(0x87)]=_0x5bc74a);}if(_0xfcec4b[_0x3f301a(0x8c)])for(const _0x19069e of _0xfcec4b[_0x3f301a(0x8c)]){if(_0x19069e[_0x3f301a(0x87)]){const _0xc4fdcd=_0x1437d1[_0x3f301a(0xa5)](_0x19069e[_0x3f301a(0x87)]);_0xc4fdcd&&(_0x19069e['segment']=_0xc4fdcd);}}if(_0xfcec4b[_0x3f301a(0xbc)]?.[_0x3f301a(0x87)]){const _0x32c67a=_0x1437d1[_0x3f301a(0xa5)](_0xfcec4b[_0x3f301a(0xbc)][_0x3f301a(0x87)]);_0x32c67a&&(_0xfcec4b[_0x3f301a(0xbc)]['segment']=_0x32c67a);}if(_0xfcec4b[_0x3f301a(0xb4)])for(const _0x85c362 of _0xfcec4b[_0x3f301a(0xb4)]){if(_0x85c362[_0x3f301a(0xaf)]===_0x3f301a(0x92)&&_0x85c362[_0x3f301a(0xb9)]?.['branches'])for(const _0x5de9f2 of _0x85c362[_0x3f301a(0xb9)]['branches']){if(_0x5de9f2['segment']){const _0x154031=_0x1437d1[_0x3f301a(0xa5)](_0x5de9f2[_0x3f301a(0x87)]);_0x154031&&(_0x5de9f2['segment']=_0x154031);}}if(_0x85c362[_0x3f301a(0xaf)]===_0x3f301a(0x90)&&_0x85c362[_0x3f301a(0xb9)]?.[_0x3f301a(0x82)]?.['segment']){const _0x4aae31=_0x1437d1[_0x3f301a(0xa5)](_0x85c362['with'][_0x3f301a(0x82)][_0x3f301a(0x87)]);_0x4aae31&&(_0x85c362[_0x3f301a(0xb9)][_0x3f301a(0x82)]['segment']=_0x4aae31);}}}}export function updateSegmentRefsInSegments(_0x3dc7a4,_0x7eca91){const _0x237f5d=a121_0x14f8;for(const _0x3d5da8 of Object[_0x237f5d(0x95)](_0x3dc7a4)){_0x3d5da8['rule']&&updateSegmentRefsInRule(_0x3d5da8['rule'],_0x7eca91);}}function updateSegmentRefsInRule(_0x6176b,_0x43c954){const _0x5556c5=a121_0x14f8;if(_0x6176b===null||typeof _0x6176b!==_0x5556c5(0xc6))return;if(Array[_0x5556c5(0x9d)](_0x6176b)){for(const _0x1ba019 of _0x6176b){updateSegmentRefsInRule(_0x1ba019,_0x43c954);}return;}const _0x531a8d=_0x6176b;if((_0x531a8d[_0x5556c5(0xaf)]===_0x5556c5(0x8e)||_0x531a8d[_0x5556c5(0xaf)]===_0x5556c5(0xac))&&typeof _0x531a8d['segment']===_0x5556c5(0xa3)){const _0xc65859=_0x43c954['get'](_0x531a8d[_0x5556c5(0x87)]);_0xc65859&&(_0x531a8d['segment']=_0xc65859);}if(_0x531a8d[_0x5556c5(0xc1)]&&Array[_0x5556c5(0x9d)](_0x531a8d[_0x5556c5(0xc1)]))for(const _0x3775ed of _0x531a8d[_0x5556c5(0xc1)]){updateSegmentRefsInRule(_0x3775ed,_0x43c954);}}export function buildJourneysArray(_0xae6db4,_0x509055){const _0xf64c80=a121_0x14f8;return _0xae6db4[_0xf64c80(0xcd)](_0x19e484=>{const _0x189aeb=_0xf64c80,_0x9300b8=_0x509055?_0x19e484[_0x189aeb(0x8d)]['id']===_0x509055:_0xae6db4['length']===0x1,_0x391e30=_0x19e484[_0x189aeb(0x89)][_0x189aeb(0xb3)]?.[0x0],_0x155c6d=_0x391e30?.[_0x189aeb(0x7f)]||_0x19e484[_0x189aeb(0x89)][_0x189aeb(0x7f)],_0x13415c={'version':_0x391e30?.[_0x189aeb(0xa1)]||_0x19e484[_0x189aeb(0x89)][_0x189aeb(0xa1)]||_0x19e484[_0x189aeb(0x8d)][_0x189aeb(0xa0)],'state':_0x19e484[_0x189aeb(0x8d)][_0x189aeb(0xbd)]==='launched'?'launched':'draft','stages':_0x391e30?.[_0x189aeb(0x9c)]||_0x19e484[_0x189aeb(0x89)][_0x189aeb(0x9c)]||[],'id':_0x391e30?.['id']||_0x19e484[_0x189aeb(0x89)]['id'],'version_number':_0x391e30?.[_0x189aeb(0xb0)]||_0x19e484[_0x189aeb(0x89)][_0x189aeb(0xb0)]};return _0x155c6d&&(_0x13415c['goal']=_0x155c6d),_0x9300b8&&(_0x13415c['latest']=!![]),_0x13415c;});}export function buildMergedJourneyDef(_0x926c46,_0x424498,_0x5aa899){const _0x4bd793=a121_0x14f8,_0x4ae81f=_0x926c46[0x0][_0x4bd793(0x89)],_0x40a3e9=buildJourneysArray(_0x926c46,_0x5aa899),{merged:_0xc24728,nameMapping:_0x4c73db}=consolidateSegmentsByContent(_0x926c46['map'](_0x2a474f=>_0x2a474f['yaml'][_0x4bd793(0xc3)]),_0x424498);updateSegmentRefsInSegments(_0xc24728,_0x4c73db);const _0xb86ae0=Array[_0x4bd793(0xc8)](_0x4c73db['entries']())[_0x4bd793(0xb1)](([_0x51a18a,_0x52d8cb])=>_0x51a18a!==_0x52d8cb&&_0x51a18a[_0x4bd793(0x9a)](_0x4bd793(0xa6)));let _0x49d9aa=_0xc24728,_0x1f9995=new Map();if(_0xb86ae0){const _0x1b0d3e=consolidateSegmentsByContent([_0xc24728],_0x424498);_0x49d9aa=_0x1b0d3e[_0x4bd793(0x99)],_0x1f9995=_0x1b0d3e[_0x4bd793(0xca)];}const _0x3a4a3a=new Map(_0x4c73db);for(const [_0x4f106b,_0x14115f]of _0x1f9995[_0x4bd793(0xb2)]()){_0x3a4a3a['set'](_0x4f106b,_0x14115f);}for(const [_0x19cd0c,_0x69ef]of _0x3a4a3a[_0x4bd793(0xb2)]()){let _0x29e8f9=_0x69ef,_0x537054=0x0;while(_0x3a4a3a[_0x4bd793(0x8f)](_0x29e8f9)&&_0x3a4a3a[_0x4bd793(0xa5)](_0x29e8f9)!==_0x29e8f9&&_0x537054<MAX_MAPPING_CHAIN_DEPTH){_0x29e8f9=_0x3a4a3a[_0x4bd793(0xa5)](_0x29e8f9),_0x537054++;}_0x29e8f9!==_0x69ef&&_0x3a4a3a[_0x4bd793(0x7b)](_0x19cd0c,_0x29e8f9);}for(const _0x52b13c of _0x40a3e9){updateSegmentReferences(_0x52b13c['stages'],_0x3a4a3a);}const {merged:_0x573287,nameMapping:_0xe62784}=consolidateActivationsByContent(_0x926c46[_0x4bd793(0xcd)](_0x5d02f3=>_0x5d02f3[_0x4bd793(0x89)][_0x4bd793(0xa8)]));for(const _0x1c0e7c of _0x40a3e9){updateActivationReferences(_0x1c0e7c[_0x4bd793(0x9c)],_0xe62784);}let _0x2c1298=_0x4ae81f[_0x4bd793(0x7f)];if(_0x2c1298?.[_0x4bd793(0x87)]){const _0x3e43b2=_0x3a4a3a['get'](_0x2c1298[_0x4bd793(0x87)]);_0x3e43b2&&(_0x2c1298={..._0x2c1298,'segment':_0x3e43b2});}for(const _0x3ba391 of _0x40a3e9){if(_0x3ba391[_0x4bd793(0x7f)]?.[_0x4bd793(0x87)]){const _0x520209=_0x3a4a3a[_0x4bd793(0xa5)](_0x3ba391[_0x4bd793(0x7f)][_0x4bd793(0x87)]);_0x520209&&(_0x3ba391['goal']={..._0x3ba391['goal'],'segment':_0x520209});}}return _0x40a3e9[_0x4bd793(0xb1)](_0x478523=>_0x478523[_0x4bd793(0x7f)])&&(_0x2c1298=undefined),{'type':_0x4bd793(0xb5),'name':_0x4ae81f[_0x4bd793(0xa0)],'description':_0x4ae81f[_0x4bd793(0xbb)],'goal':_0x2c1298,'reentry':_0x4ae81f[_0x4bd793(0x91)],'segments':Object[_0x4bd793(0x84)](_0x49d9aa)[_0x4bd793(0xab)]>0x0?_0x49d9aa:undefined,'activations':Object[_0x4bd793(0x84)](_0x573287)[_0x4bd793(0xab)]>0x0?_0x573287:undefined,'journeys':_0x40a3e9,'bundle_id':_0x4ae81f[_0x4bd793(0xa4)],'bundle_name':_0x4ae81f['bundle_name']};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x9d1207,_0x266d36,_0x4ffb81,_0x3742c7){const _0x1dfc75=a121_0x14f8,_0x4f9f0f=_0x9d1207+':'+_0x266d36,_0x42e332=_0x4ffb81['get'](_0x4f9f0f);if(_0x42e332)return _0x42e332;const _0x4e7c76=await _0x3742c7(_0x9d1207),_0x12a9fb=_0x4e7c76[_0x1dfc75(0xa2)][_0x1dfc75(0x94)]||_0x4e7c76[_0x1dfc75(0xa2)][_0x1dfc75(0xa0)],_0x2135dc=_0x4e7c76[_0x1dfc75(0xa2)][_0x1dfc75(0x97)][_0x1dfc75(0x9e)](_0x41d7c9=>String(_0x41d7c9['id'])===String(_0x266d36)),_0x2b9884=_0x2135dc?.[_0x1dfc75(0xa0)]||_0x266d36,_0x72bfe2={'journeyName':_0x12a9fb,'stageName':_0x2b9884};return _0x4ffb81[_0x1dfc75(0x7b)](_0x4f9f0f,_0x72bfe2),_0x72bfe2;}export function formatApiJourneyName(_0x309396,_0x2355ab){return _0x2355ab+'\x20('+_0x309396+')';}export function isLocalJourneyRef(_0x49861c){const _0x15c105=a121_0x14f8;return _0x49861c[_0x15c105(0xbf)]('.yml')||_0x49861c[_0x15c105(0xbf)](_0x15c105(0x8a));}function a121_0x14f8(_0x5bb1f1,_0xdaa29){_0x5bb1f1=_0x5bb1f1-0x7b;const _0x27f2fc=a121_0x27f2();let _0x14f8e6=_0x27f2fc[_0x5bb1f1];return _0x14f8e6;}export function buildLocalRuleToNameMapping(_0x47c058){const _0x2c0da2=a121_0x14f8,_0x199a73=new Map();if(!_0x47c058)return _0x199a73;for(const [_0x796e11,_0x22f929]of Object[_0x2c0da2(0xb2)](_0x47c058)){if(_0x22f929[_0x2c0da2(0xc5)]){const _0x13d287=serializeRule(_0x22f929[_0x2c0da2(0xc5)]),_0x5d417d=_0x199a73['get'](_0x13d287)||[];_0x5d417d[_0x2c0da2(0x96)](_0x796e11),_0x199a73[_0x2c0da2(0x7b)](_0x13d287,_0x5d417d);}}return _0x199a73;}export function buildLocalRuleToNameMappingFromJourney(_0x1ce710){const _0x22fb3c=a121_0x14f8,_0x269d58=_0x1ce710[_0x22fb3c(0xc3)];if(!_0x269d58)return new Map();const _0xa0b95c=collectSegmentUsageCounts(_0x1ce710),_0x2be23c=new Map();let _0x2ac90f=0x0;for(const [_0x152570,_0x208e1d]of Object[_0x22fb3c(0xb2)](_0x269d58)){if(!_0x208e1d[_0x22fb3c(0xc5)]){_0x2ac90f++;continue;}const _0x41dd1c=serializeRule(_0x208e1d['rule']),_0x4c4461=_0x2be23c[_0x22fb3c(0xa5)](_0x41dd1c)||[];_0x4c4461[_0x22fb3c(0x96)]({'name':_0x152570,'index':_0x2ac90f}),_0x2be23c[_0x22fb3c(0x7b)](_0x41dd1c,_0x4c4461),_0x2ac90f++;}const _0x3b3278=new Map();for(const [_0x3270bc,_0x28bdbd]of _0x2be23c){const _0x1ade24=_0x28bdbd[_0x22fb3c(0xae)]()[_0x22fb3c(0xc9)]((_0x7fd4ea,_0x483bde)=>{const _0xdc0e57=_0x22fb3c,_0x4b9369=_0xa0b95c[_0xdc0e57(0xa5)](_0x7fd4ea[_0xdc0e57(0xa0)])||0x0,_0x59b0c9=_0xa0b95c[_0xdc0e57(0xa5)](_0x483bde[_0xdc0e57(0xa0)])||0x0;if(_0x4b9369!==_0x59b0c9)return _0x59b0c9-_0x4b9369;return _0x7fd4ea[_0xdc0e57(0x7e)]-_0x483bde['index'];})[_0x22fb3c(0xcd)](_0x52e228=>_0x52e228[_0x22fb3c(0xa0)]);_0x3b3278[_0x22fb3c(0x7b)](_0x3270bc,_0x1ade24);}return _0x3b3278;}export function collectSegmentUsageCounts(_0x1bde06){const _0x2a05c7=a121_0x14f8,_0x428a39=new Map(),_0x4a2bf0=_0x5036c3=>{const _0x45a6be=a121_0x14f8;if(!_0x5036c3)return;_0x428a39[_0x45a6be(0x7b)](_0x5036c3,(_0x428a39[_0x45a6be(0xa5)](_0x5036c3)||0x0)+0x1);},_0x593d7d=_0x35504b=>{const _0x293f17=a121_0x14f8;for(const _0x138a6d of _0x35504b){_0x4a2bf0(_0x138a6d[_0x293f17(0xa6)]?.[_0x293f17(0x87)]);if(_0x138a6d[_0x293f17(0x8c)])for(const _0x3fdf47 of _0x138a6d[_0x293f17(0x8c)]){_0x4a2bf0(_0x3fdf47[_0x293f17(0x87)]);}_0x4a2bf0(_0x138a6d[_0x293f17(0xbc)]?.[_0x293f17(0x87)]);if(_0x138a6d['steps'])for(const _0x4c6a6c of _0x138a6d[_0x293f17(0xb4)]){if(_0x4c6a6c[_0x293f17(0xaf)]===_0x293f17(0x92))for(const _0x260b61 of _0x4c6a6c[_0x293f17(0xb9)][_0x293f17(0xc0)]){_0x4a2bf0(_0x260b61[_0x293f17(0x87)]);}else _0x4c6a6c[_0x293f17(0xaf)]===_0x293f17(0x90)&&_0x4a2bf0(_0x4c6a6c[_0x293f17(0xb9)][_0x293f17(0x82)]?.[_0x293f17(0x87)]);}}};_0x4a2bf0(_0x1bde06[_0x2a05c7(0x7f)]?.[_0x2a05c7(0x87)]);if(_0x1bde06[_0x2a05c7(0xb3)])for(const _0x1eca36 of _0x1bde06[_0x2a05c7(0xb3)]){_0x4a2bf0(_0x1eca36[_0x2a05c7(0x7f)]?.['segment']),_0x593d7d(_0x1eca36[_0x2a05c7(0x9c)]);}_0x1bde06[_0x2a05c7(0x9c)]&&_0x593d7d(_0x1bde06[_0x2a05c7(0x9c)]);if(_0x1bde06[_0x2a05c7(0xb8)])for(const _0x5d3711 of _0x1bde06['versions']){_0x593d7d(_0x5d3711['stages']);}return _0x428a39;}
|
|
1
|
+
(function(_0x4db1e5,_0x4ca498){const _0x1c704a=a129_0x5dab,_0x30b4bd=_0x4db1e5();while(!![]){try{const _0x45136a=parseInt(_0x1c704a(0x220))/0x1*(-parseInt(_0x1c704a(0x216))/0x2)+-parseInt(_0x1c704a(0x1f5))/0x3*(-parseInt(_0x1c704a(0x217))/0x4)+parseInt(_0x1c704a(0x20d))/0x5*(-parseInt(_0x1c704a(0x1f3))/0x6)+-parseInt(_0x1c704a(0x1e9))/0x7*(-parseInt(_0x1c704a(0x205))/0x8)+parseInt(_0x1c704a(0x1f1))/0x9+parseInt(_0x1c704a(0x237))/0xa+parseInt(_0x1c704a(0x202))/0xb*(-parseInt(_0x1c704a(0x1f4))/0xc);if(_0x45136a===_0x4ca498)break;else _0x30b4bd['push'](_0x30b4bd['shift']());}catch(_0xb630a8){_0x30b4bd['push'](_0x30b4bd['shift']());}}}(a129_0x4c76,0x4148d));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x10bc61){const _0x4faa20=a129_0x5dab;return _0x10bc61['toLowerCase']()[_0x4faa20(0x22d)](/\s+/g,'_')['replace'](/[^a-z0-9_]/g,'')[_0x4faa20(0x22d)](/_+/g,'_')[_0x4faa20(0x22d)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x434144){const _0x460ab7=a129_0x5dab,_0x424053=_0x434144['match'](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x424053){const _0x1f2f05=_0x424053[0x1][_0x460ab7(0x236)](),_0x56404f=_0x424053[0x2],_0x414219=_0x56404f[_0x460ab7(0x22d)](/-/g,'')[_0x460ab7(0x209)](0x0,0x4)['toLowerCase']();return _0x1f2f05+'_'+_0x414219;}const _0x5b52cb=_0x434144[_0x460ab7(0x1ec)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x5b52cb){const _0x50a5dc=_0x5b52cb[0x1],_0x447a6c=_0x5b52cb[0x2][_0x460ab7(0x236)](),_0x18d869=_0x50a5dc['replace'](/-/g,'')[_0x460ab7(0x209)](0x0,0x4)[_0x460ab7(0x236)]();return _0x447a6c+'_'+_0x18d869;}return undefined;}function stableStringify(_0x1ee258){const _0x48c6e5=a129_0x5dab;if(Array[_0x48c6e5(0x21d)](_0x1ee258))return'['+_0x1ee258['map'](_0x1772ca=>stableStringify(_0x1772ca))[_0x48c6e5(0x21a)](',')+']';if(_0x1ee258&&typeof _0x1ee258==='object'){const _0x3e7ad4=_0x1ee258,_0xd44283=Object[_0x48c6e5(0x1f8)](_0x3e7ad4)[_0x48c6e5(0x21f)](),_0x53b1fa=_0xd44283[_0x48c6e5(0x21b)](_0x5790ec=>'\x22'+_0x5790ec+'\x22:'+stableStringify(_0x3e7ad4[_0x5790ec]));return'{'+_0x53b1fa[_0x48c6e5(0x21a)](',')+'}';}const _0x3c0874=JSON[_0x48c6e5(0x212)](_0x1ee258);return _0x3c0874===undefined?'null':_0x3c0874;}export function consolidateActivationsByContent(_0x2bf961){const _0x13b96b=a129_0x5dab,_0x2011fd={},_0x46eb2f=new Map(),_0x3db589=new Map();for(const _0x24be08 of _0x2bf961){if(!_0x24be08)continue;for(const [_0x318f05,_0x2f393c]of Object[_0x13b96b(0x234)](_0x24be08)){const _0x406b71={'connection':_0x2f393c[_0x13b96b(0x200)],..._0x2f393c[_0x13b96b(0x215)]!==undefined&&{'all_columns':_0x2f393c[_0x13b96b(0x215)]},..._0x2f393c[_0x13b96b(0x204)]!==undefined&&{'columns':_0x2f393c[_0x13b96b(0x204)]},..._0x2f393c[_0x13b96b(0x1fb)]!==undefined&&{'behavior':_0x2f393c[_0x13b96b(0x1fb)]},..._0x2f393c['schedule']!==undefined&&{'schedule':_0x2f393c[_0x13b96b(0x235)]},..._0x2f393c[_0x13b96b(0x238)]!==undefined&&{'notification':_0x2f393c['notification']},..._0x2f393c[_0x13b96b(0x208)]!==undefined&&{'connector_config':_0x2f393c['connector_config']},..._0x2f393c[_0x13b96b(0x20c)]!==undefined&&{'activation_template_id':_0x2f393c[_0x13b96b(0x20c)]}},_0x1b2209=stableStringify(_0x406b71),_0x71e6e1=_0x3db589['get'](_0x1b2209);_0x71e6e1?_0x46eb2f['set'](_0x318f05,_0x71e6e1):(_0x2011fd[_0x318f05]=_0x2f393c,_0x46eb2f[_0x13b96b(0x20e)](_0x318f05,_0x318f05),_0x3db589[_0x13b96b(0x20e)](_0x1b2209,_0x318f05));}}return{'merged':_0x2011fd,'nameMapping':_0x46eb2f};}export function updateActivationReferences(_0x4843f5,_0x1ebceb){const _0x46d6da=a129_0x5dab;if(!_0x4843f5)return;for(const _0x4975ff of _0x4843f5){if(!_0x4975ff[_0x46d6da(0x221)])continue;for(const _0x815fb7 of _0x4975ff['steps']){if(_0x815fb7[_0x46d6da(0x1ff)]===_0x46d6da(0x20a)&&_0x815fb7[_0x46d6da(0x210)]?.[_0x46d6da(0x20a)]){const _0x4a5ff5=_0x1ebceb[_0x46d6da(0x233)](_0x815fb7[_0x46d6da(0x210)][_0x46d6da(0x20a)]);_0x4a5ff5&&_0x4a5ff5!==_0x815fb7[_0x46d6da(0x210)][_0x46d6da(0x20a)]&&(_0x815fb7[_0x46d6da(0x210)][_0x46d6da(0x20a)]=_0x4a5ff5);}}}}export function consolidateSegmentsByContent(_0x3b9714,_0x5ac6cd){const _0x1db7e6=a129_0x5dab,_0x57691c={},_0x244476=new Map(),_0x569db0=new Map();for(const _0x211535 of _0x3b9714){if(!_0x211535)continue;for(const [_0x3a593f,_0x306b1d]of Object[_0x1db7e6(0x234)](_0x211535)){if(!_0x306b1d[_0x1db7e6(0x1eb)]){_0x57691c[_0x3a593f]=_0x306b1d,_0x244476[_0x1db7e6(0x20e)](_0x3a593f,_0x3a593f);continue;}const _0x5a82f2=_0x306b1d[_0x1db7e6(0x229)]&&_0x306b1d[_0x1db7e6(0x229)]['trim']()?_0x306b1d[_0x1db7e6(0x229)]:undefined,_0x4354a3=JSON[_0x1db7e6(0x212)]({'description':_0x5a82f2,'rule':deepSortObject(_0x306b1d[_0x1db7e6(0x1eb)])}),_0x4d852c=_0x569db0[_0x1db7e6(0x233)](_0x4354a3);if(_0x4d852c){const _0x913b12={..._0x306b1d[_0x1db7e6(0x229)]!==undefined&&{'description':_0x306b1d['description']},'rule':_0x306b1d[_0x1db7e6(0x1eb)]?deepSortObject(_0x306b1d[_0x1db7e6(0x1eb)]):_0x306b1d[_0x1db7e6(0x1eb)]};if(_0x3a593f<_0x4d852c){_0x57691c[_0x3a593f]=_0x913b12,delete _0x57691c[_0x4d852c];for(const [_0x16b01f,_0x3cf231]of _0x244476[_0x1db7e6(0x234)]()){_0x3cf231===_0x4d852c&&_0x244476[_0x1db7e6(0x20e)](_0x16b01f,_0x3a593f);}_0x244476[_0x1db7e6(0x20e)](_0x3a593f,_0x3a593f),_0x569db0['set'](_0x4354a3,_0x3a593f);}else _0x57691c[_0x4d852c]=_0x913b12,_0x244476[_0x1db7e6(0x20e)](_0x3a593f,_0x4d852c);}else{let _0x36bc8c=_0x3a593f;if(_0x5ac6cd){const _0x59789d=_0x5ac6cd[_0x1db7e6(0x233)](_0x4354a3);_0x59789d&&_0x59789d[_0x1db7e6(0x219)]>0x0&&(_0x36bc8c=_0x59789d[_0x1db7e6(0x209)]()[_0x1db7e6(0x21f)]()[0x0]);}const _0x2b9b52={..._0x306b1d[_0x1db7e6(0x229)]!==undefined&&{'description':_0x306b1d[_0x1db7e6(0x229)]},'rule':_0x306b1d[_0x1db7e6(0x1eb)]?deepSortObject(_0x306b1d[_0x1db7e6(0x1eb)]):_0x306b1d[_0x1db7e6(0x1eb)]};_0x57691c[_0x36bc8c]=_0x2b9b52,_0x244476['set'](_0x3a593f,_0x36bc8c),_0x569db0[_0x1db7e6(0x20e)](_0x4354a3,_0x36bc8c);}}}return{'merged':_0x57691c,'nameMapping':_0x244476};}export function updateSegmentReferences(_0x3a76dd,_0x38847f){const _0x3ff554=a129_0x5dab;if(!_0x3a76dd)return;for(const _0x50b26a of _0x3a76dd){if(_0x50b26a[_0x3ff554(0x213)]?.[_0x3ff554(0x228)]){const _0x2e37b7=_0x38847f['get'](_0x50b26a[_0x3ff554(0x213)][_0x3ff554(0x228)]);_0x2e37b7&&(_0x50b26a[_0x3ff554(0x213)][_0x3ff554(0x228)]=_0x2e37b7);}if(_0x50b26a[_0x3ff554(0x218)])for(const _0x309656 of _0x50b26a[_0x3ff554(0x218)]){if(_0x309656['segment']){const _0x37d24c=_0x38847f[_0x3ff554(0x233)](_0x309656[_0x3ff554(0x228)]);_0x37d24c&&(_0x309656[_0x3ff554(0x228)]=_0x37d24c);}}if(_0x50b26a[_0x3ff554(0x1ee)]?.[_0x3ff554(0x228)]){const _0x50a386=_0x38847f[_0x3ff554(0x233)](_0x50b26a[_0x3ff554(0x1ee)][_0x3ff554(0x228)]);_0x50a386&&(_0x50b26a['milestone']['segment']=_0x50a386);}if(_0x50b26a[_0x3ff554(0x221)])for(const _0x5b0fc9 of _0x50b26a[_0x3ff554(0x221)]){if(_0x5b0fc9[_0x3ff554(0x1ff)]===_0x3ff554(0x21c)&&_0x5b0fc9['with']?.['branches'])for(const _0xa3e9cb of _0x5b0fc9[_0x3ff554(0x210)][_0x3ff554(0x227)]){if(_0xa3e9cb[_0x3ff554(0x228)]){const _0x3fd4a6=_0x38847f['get'](_0xa3e9cb[_0x3ff554(0x228)]);_0x3fd4a6&&(_0xa3e9cb[_0x3ff554(0x228)]=_0x3fd4a6);}}if(_0x5b0fc9[_0x3ff554(0x1ff)]==='wait'&&_0x5b0fc9[_0x3ff554(0x210)]?.[_0x3ff554(0x1ea)]?.[_0x3ff554(0x228)]){const _0x109960=_0x38847f[_0x3ff554(0x233)](_0x5b0fc9[_0x3ff554(0x210)]['condition'][_0x3ff554(0x228)]);_0x109960&&(_0x5b0fc9[_0x3ff554(0x210)][_0x3ff554(0x1ea)][_0x3ff554(0x228)]=_0x109960);}}}}export function updateSegmentRefsInSegments(_0x21f40c,_0x2699bf){const _0x556b8e=a129_0x5dab;for(const _0xf211 of Object[_0x556b8e(0x225)](_0x21f40c)){_0xf211['rule']&&updateSegmentRefsInRule(_0xf211[_0x556b8e(0x1eb)],_0x2699bf);}}function a129_0x5dab(_0x11d48f,_0x47331e){_0x11d48f=_0x11d48f-0x1e7;const _0x4c7657=a129_0x4c76();let _0x5dab1c=_0x4c7657[_0x11d48f];return _0x5dab1c;}function updateSegmentRefsInRule(_0x1efc01,_0x3178ff){const _0x988521=a129_0x5dab;if(_0x1efc01===null||typeof _0x1efc01!=='object')return;if(Array[_0x988521(0x21d)](_0x1efc01)){for(const _0x2a4506 of _0x1efc01){updateSegmentRefsInRule(_0x2a4506,_0x3178ff);}return;}const _0x14a1a8=_0x1efc01;if((_0x14a1a8['type']==='include'||_0x14a1a8[_0x988521(0x1ff)]==='exclude')&&typeof _0x14a1a8[_0x988521(0x228)]===_0x988521(0x20b)){const _0x14ad21=_0x3178ff['get'](_0x14a1a8[_0x988521(0x228)]);_0x14ad21&&(_0x14a1a8['segment']=_0x14ad21);}if(_0x14a1a8['conditions']&&Array[_0x988521(0x21d)](_0x14a1a8[_0x988521(0x22f)]))for(const _0x9c8ff0 of _0x14a1a8['conditions']){updateSegmentRefsInRule(_0x9c8ff0,_0x3178ff);}}export function buildJourneysArray(_0x27f92b,_0x166301){return _0x27f92b['map'](_0x5c0355=>{const _0x29b619=a129_0x5dab,_0x6e113c=_0x166301?_0x5c0355[_0x29b619(0x1ef)]['id']===_0x166301:_0x27f92b[_0x29b619(0x219)]===0x1,_0x23aa50=_0x5c0355[_0x29b619(0x22c)][_0x29b619(0x22b)]?.[0x0],_0x1d7ae2=_0x23aa50?.['goal']||_0x5c0355['yaml']['goal'],_0x4f0206={'version':_0x23aa50?.[_0x29b619(0x1f6)]||_0x5c0355[_0x29b619(0x22c)][_0x29b619(0x1f6)]||_0x5c0355[_0x29b619(0x1ef)][_0x29b619(0x206)],'state':_0x5c0355[_0x29b619(0x1ef)][_0x29b619(0x1ed)]===_0x29b619(0x20f)?_0x29b619(0x20f):_0x29b619(0x223),'stages':_0x23aa50?.[_0x29b619(0x1e8)]||_0x5c0355[_0x29b619(0x22c)][_0x29b619(0x1e8)]||[],'id':_0x23aa50?.['id']||_0x5c0355[_0x29b619(0x22c)]['id'],'version_number':_0x23aa50?.[_0x29b619(0x1f0)]||_0x5c0355[_0x29b619(0x22c)][_0x29b619(0x1f0)]};return _0x1d7ae2&&(_0x4f0206[_0x29b619(0x230)]=_0x1d7ae2),_0x6e113c&&(_0x4f0206[_0x29b619(0x207)]=!![]),_0x4f0206;});}export function buildMergedJourneyDef(_0x5347d1,_0x3a7a98,_0x3cf9c9){const _0x32013e=a129_0x5dab,_0x128de4=_0x5347d1[0x0][_0x32013e(0x22c)],_0x49bb91=buildJourneysArray(_0x5347d1,_0x3cf9c9),{merged:_0x3b5a0e,nameMapping:_0x2763d4}=consolidateSegmentsByContent(_0x5347d1['map'](_0x58999e=>_0x58999e[_0x32013e(0x22c)][_0x32013e(0x211)]),_0x3a7a98);updateSegmentRefsInSegments(_0x3b5a0e,_0x2763d4);const _0x28d6e0=Array[_0x32013e(0x203)](_0x2763d4[_0x32013e(0x234)]())['some'](([_0x50ecfb,_0x17957b])=>_0x50ecfb!==_0x17957b&&_0x50ecfb['startsWith']('entry_criteria'));let _0x4e2f18=_0x3b5a0e,_0x113f99=new Map();if(_0x28d6e0){const _0x532f3a=consolidateSegmentsByContent([_0x3b5a0e],_0x3a7a98);_0x4e2f18=_0x532f3a[_0x32013e(0x1f9)],_0x113f99=_0x532f3a[_0x32013e(0x1f2)];}const _0xfcaf02=new Map(_0x2763d4);for(const [_0x46a58d,_0x398c4d]of _0x113f99['entries']()){_0xfcaf02[_0x32013e(0x20e)](_0x46a58d,_0x398c4d);}for(const [_0x794035,_0x30fa2d]of _0xfcaf02[_0x32013e(0x234)]()){let _0xf6d58b=_0x30fa2d,_0x283c2e=0x0;while(_0xfcaf02[_0x32013e(0x22a)](_0xf6d58b)&&_0xfcaf02['get'](_0xf6d58b)!==_0xf6d58b&&_0x283c2e<MAX_MAPPING_CHAIN_DEPTH){_0xf6d58b=_0xfcaf02[_0x32013e(0x233)](_0xf6d58b),_0x283c2e++;}_0xf6d58b!==_0x30fa2d&&_0xfcaf02[_0x32013e(0x20e)](_0x794035,_0xf6d58b);}for(const _0x5df80f of _0x49bb91){updateSegmentReferences(_0x5df80f[_0x32013e(0x1e8)],_0xfcaf02);}const {merged:_0x48df64,nameMapping:_0x6596c2}=consolidateActivationsByContent(_0x5347d1['map'](_0x3cf7f0=>_0x3cf7f0[_0x32013e(0x22c)][_0x32013e(0x226)]));for(const _0x4ba393 of _0x49bb91){updateActivationReferences(_0x4ba393[_0x32013e(0x1e8)],_0x6596c2);}let _0x5c2ac8=_0x128de4['goal'];if(_0x5c2ac8?.[_0x32013e(0x228)]){const _0x36f5c7=_0xfcaf02['get'](_0x5c2ac8[_0x32013e(0x228)]);_0x36f5c7&&(_0x5c2ac8={..._0x5c2ac8,'segment':_0x36f5c7});}for(const _0x7d98f8 of _0x49bb91){if(_0x7d98f8[_0x32013e(0x230)]?.[_0x32013e(0x228)]){const _0x4c361f=_0xfcaf02[_0x32013e(0x233)](_0x7d98f8[_0x32013e(0x230)]['segment']);_0x4c361f&&(_0x7d98f8[_0x32013e(0x230)]={..._0x7d98f8[_0x32013e(0x230)],'segment':_0x4c361f});}}return _0x49bb91[_0x32013e(0x201)](_0x4601c9=>_0x4601c9[_0x32013e(0x230)])&&(_0x5c2ac8=undefined),{'type':_0x32013e(0x214),'name':_0x128de4[_0x32013e(0x206)],'description':_0x128de4[_0x32013e(0x229)],'goal':_0x5c2ac8,'reentry':_0x128de4[_0x32013e(0x1fc)],'segments':Object[_0x32013e(0x1f8)](_0x4e2f18)['length']>0x0?_0x4e2f18:undefined,'activations':Object[_0x32013e(0x1f8)](_0x48df64)[_0x32013e(0x219)]>0x0?_0x48df64:undefined,'journeys':_0x49bb91,'bundle_id':_0x128de4[_0x32013e(0x1fd)],'bundle_name':_0x128de4[_0x32013e(0x1f7)]};}export function createJumpTargetCache(){return new Map();}function a129_0x4c76(){const _0x6d5b9b=['index','push','stages','7IZjKev','condition','rule','match','state','milestone','item','version_number','2431917lKVUyu','nameMapping','6cLybPp','190092eWoSjk','15PzSVvy','version','bundle_name','keys','merged','attributes','behavior','reentry','bundle_id','endsWith','type','connection','some','374wCibPA','from','columns','2984728tOAQjY','name','latest','connector_config','slice','activation','string','activation_template_id','1448345jdbRng','set','launched','with','segments','stringify','entry_criteria','journey','all_columns','14jCeBqs','427520hlvrXN','exit_criteria','length','join','map','decision_point','isArray','wait','sort','33057YiXuIZ','steps','journeyBundleName','draft','journeyStages','values','activations','branches','segment','description','has','journeys','yaml','replace','versions','conditions','goal','find','.yml','get','entries','schedule','toLowerCase','1493630gPecSd','notification'];a129_0x4c76=function(){return _0x6d5b9b;};return a129_0x4c76();}export async function resolveJumpTarget(_0x4335b8,_0x192716,_0x2de91e,_0x1eb988){const _0x2dc3f8=a129_0x5dab,_0x5befb3=_0x4335b8+':'+_0x192716,_0x199980=_0x2de91e[_0x2dc3f8(0x233)](_0x5befb3);if(_0x199980)return _0x199980;const _0x44aaf8=await _0x1eb988(_0x4335b8),_0x35f973=_0x44aaf8[_0x2dc3f8(0x1fa)][_0x2dc3f8(0x222)]||_0x44aaf8[_0x2dc3f8(0x1fa)][_0x2dc3f8(0x206)],_0x2598b5=_0x44aaf8[_0x2dc3f8(0x1fa)][_0x2dc3f8(0x224)][_0x2dc3f8(0x231)](_0x26de64=>String(_0x26de64['id'])===String(_0x192716)),_0x38ce0e=_0x2598b5?.['name']||_0x192716,_0x10bcbd={'journeyName':_0x35f973,'stageName':_0x38ce0e};return _0x2de91e[_0x2dc3f8(0x20e)](_0x5befb3,_0x10bcbd),_0x10bcbd;}export function formatApiJourneyName(_0x23ad81,_0x10c685){return _0x10c685+'\x20('+_0x23ad81+')';}export function isLocalJourneyRef(_0x1cdc71){const _0x11e837=a129_0x5dab;return _0x1cdc71[_0x11e837(0x1fe)](_0x11e837(0x232))||_0x1cdc71[_0x11e837(0x1fe)]('.yaml');}export function buildLocalRuleToNameMapping(_0x251408){const _0x373237=a129_0x5dab,_0x4b8652=new Map();if(!_0x251408)return _0x4b8652;for(const [_0x3c98a6,_0x12002d]of Object[_0x373237(0x234)](_0x251408)){if(_0x12002d[_0x373237(0x1eb)]){const _0x4ca934=serializeRule(_0x12002d[_0x373237(0x1eb)]),_0x295f89=_0x4b8652[_0x373237(0x233)](_0x4ca934)||[];_0x295f89[_0x373237(0x1e7)](_0x3c98a6),_0x4b8652['set'](_0x4ca934,_0x295f89);}}return _0x4b8652;}export function buildLocalRuleToNameMappingFromJourney(_0x20d7f8){const _0x51f404=a129_0x5dab,_0x2e615e=_0x20d7f8[_0x51f404(0x211)];if(!_0x2e615e)return new Map();const _0x535e1b=collectSegmentUsageCounts(_0x20d7f8),_0x17de8d=new Map();let _0x44e144=0x0;for(const [_0x215e81,_0x257b2e]of Object['entries'](_0x2e615e)){if(!_0x257b2e[_0x51f404(0x1eb)]){_0x44e144++;continue;}const _0x83e9f5=serializeRule(_0x257b2e[_0x51f404(0x1eb)]),_0x4dd619=_0x17de8d[_0x51f404(0x233)](_0x83e9f5)||[];_0x4dd619['push']({'name':_0x215e81,'index':_0x44e144}),_0x17de8d[_0x51f404(0x20e)](_0x83e9f5,_0x4dd619),_0x44e144++;}const _0x6303a6=new Map();for(const [_0x883111,_0x2d76f4]of _0x17de8d){const _0x22afe1=_0x2d76f4[_0x51f404(0x209)]()[_0x51f404(0x21f)]((_0x2fd4c1,_0x3ecea6)=>{const _0x559f2f=_0x51f404,_0x1ba8cc=_0x535e1b[_0x559f2f(0x233)](_0x2fd4c1['name'])||0x0,_0x36d3e7=_0x535e1b[_0x559f2f(0x233)](_0x3ecea6[_0x559f2f(0x206)])||0x0;if(_0x1ba8cc!==_0x36d3e7)return _0x36d3e7-_0x1ba8cc;return _0x2fd4c1['index']-_0x3ecea6[_0x559f2f(0x239)];})[_0x51f404(0x21b)](_0x284ffe=>_0x284ffe[_0x51f404(0x206)]);_0x6303a6[_0x51f404(0x20e)](_0x883111,_0x22afe1);}return _0x6303a6;}export function collectSegmentUsageCounts(_0x5d3f66){const _0x56d2e7=a129_0x5dab,_0x3b4aa8=new Map(),_0x417001=_0x53876b=>{const _0x49367b=a129_0x5dab;if(!_0x53876b)return;_0x3b4aa8[_0x49367b(0x20e)](_0x53876b,(_0x3b4aa8[_0x49367b(0x233)](_0x53876b)||0x0)+0x1);},_0x5c7b0a=_0x34a983=>{const _0x4e0ebb=a129_0x5dab;for(const _0x6cdd2d of _0x34a983){_0x417001(_0x6cdd2d['entry_criteria']?.['segment']);if(_0x6cdd2d[_0x4e0ebb(0x218)])for(const _0x40c24b of _0x6cdd2d[_0x4e0ebb(0x218)]){_0x417001(_0x40c24b[_0x4e0ebb(0x228)]);}_0x417001(_0x6cdd2d['milestone']?.[_0x4e0ebb(0x228)]);if(_0x6cdd2d[_0x4e0ebb(0x221)])for(const _0x1fa751 of _0x6cdd2d[_0x4e0ebb(0x221)]){if(_0x1fa751[_0x4e0ebb(0x1ff)]===_0x4e0ebb(0x21c))for(const _0x2d7dac of _0x1fa751[_0x4e0ebb(0x210)][_0x4e0ebb(0x227)]){_0x417001(_0x2d7dac[_0x4e0ebb(0x228)]);}else _0x1fa751[_0x4e0ebb(0x1ff)]===_0x4e0ebb(0x21e)&&_0x417001(_0x1fa751['with'][_0x4e0ebb(0x1ea)]?.[_0x4e0ebb(0x228)]);}}};_0x417001(_0x5d3f66[_0x56d2e7(0x230)]?.[_0x56d2e7(0x228)]);if(_0x5d3f66[_0x56d2e7(0x22b)])for(const _0x185d4a of _0x5d3f66[_0x56d2e7(0x22b)]){_0x417001(_0x185d4a[_0x56d2e7(0x230)]?.[_0x56d2e7(0x228)]),_0x5c7b0a(_0x185d4a[_0x56d2e7(0x1e8)]);}_0x5d3f66[_0x56d2e7(0x1e8)]&&_0x5c7b0a(_0x5d3f66['stages']);if(_0x5d3f66[_0x56d2e7(0x22e)])for(const _0x2922f2 of _0x5d3f66['versions']){_0x5c7b0a(_0x2922f2[_0x56d2e7(0x1e8)]);}return _0x3b4aa8;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x3cd3cb,_0x9f3d87){const _0x473cea=a122_0x48a1,_0x274d35=_0x3cd3cb();while(!![]){try{const _0x1fa2b8=-parseInt(_0x473cea(0x106))/0x1+-parseInt(_0x473cea(0x11e))/0x2+-parseInt(_0x473cea(0xf1))/0x3*(parseInt(_0x473cea(0x9e))/0x4)+parseInt(_0x473cea(0x13e))/0x5*(parseInt(_0x473cea(0x11f))/0x6)+-parseInt(_0x473cea(0xd9))/0x7+parseInt(_0x473cea(0x148))/0x8+parseInt(_0x473cea(0x146))/0x9*(parseInt(_0x473cea(0xfd))/0xa);if(_0x1fa2b8===_0x9f3d87)break;else _0x274d35['push'](_0x274d35['shift']());}catch(_0x3bd98b){_0x274d35['push'](_0x274d35['shift']());}}}(a122_0x588e,0xec14b));import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x4195a9,_0x1dd882,_0x5c4c9e,_0x1957b9,_0x2266f6,_0x3e8af9){const _0x45bf6e=a122_0x48a1;return{'level':_0x4195a9,'path':_0x1dd882,'code':_0x5c4c9e,'message':_0x1957b9,'location':getLocationFromPath(_0x2266f6[_0x45bf6e(0xee)],_0x2266f6[_0x45bf6e(0xb0)],pathToArray(_0x3e8af9??_0x1dd882))};}function validateVersionStructure(_0x2ddd88,_0x17c2a3){const _0x3c765f=a122_0x48a1,_0x32d48b=[];return _0x2ddd88['length']>MAX_STAGES&&_0x32d48b[_0x3c765f(0xb5)](createIssue(_0x3c765f(0x103),'stages',_0x3c765f(0xdf),_0x3c765f(0x143)+_0x2ddd88[_0x3c765f(0xcf)]+_0x3c765f(0x126)+MAX_STAGES,_0x17c2a3)),_0x32d48b;}function validateStageStructure(_0x4b52cf,_0x1c7bc9,_0x5f001a,_0xbccd70){const _0x5703f5=a122_0x48a1,_0x1dcf8f=[],_0x464d09=_0x5703f5(0x108)+_0x1c7bc9+']';_0x1c7bc9===0x0&&!_0x4b52cf['entry_criteria']&&_0x1dcf8f[_0x5703f5(0xb5)](createIssue(_0x5703f5(0x103),_0x464d09+_0x5703f5(0xfc),_0x5703f5(0xbd),_0x5703f5(0xc4)+_0x4b52cf[_0x5703f5(0x116)]+_0x5703f5(0xa5),_0xbccd70,_0x464d09));const _0x5c86a7=_0x1c7bc9===_0x5f001a-0x1;!_0x5c86a7&&!_0x4b52cf[_0x5703f5(0xbb)]&&_0x1dcf8f[_0x5703f5(0xb5)](createIssue(_0x5703f5(0x103),_0x464d09+_0x5703f5(0xd8),_0x5703f5(0x139),_0x5703f5(0xc4)+_0x4b52cf['name']+_0x5703f5(0xaf),_0xbccd70,_0x464d09));(!_0x4b52cf[_0x5703f5(0xf4)]||_0x4b52cf[_0x5703f5(0xf4)][_0x5703f5(0xcf)]===0x0)&&_0x1dcf8f['push'](createIssue('warning',_0x464d09+_0x5703f5(0xd1),_0x5703f5(0xa6),_0x5703f5(0xc4)+_0x4b52cf[_0x5703f5(0x116)]+_0x5703f5(0x125),_0xbccd70,_0x464d09));const _0xf03448=_0x4b52cf[_0x5703f5(0x124)]?.[_0x5703f5(0xcf)]??0x0;if(_0xf03448===0x0)_0x1dcf8f[_0x5703f5(0xb5)](createIssue('error',_0x464d09+'.steps',_0x5703f5(0x147),'Stage\x20\x27'+_0x4b52cf[_0x5703f5(0x116)]+_0x5703f5(0x135),_0xbccd70,_0x464d09+_0x5703f5(0x118)));else{if(_0xf03448===0x1)_0x1dcf8f[_0x5703f5(0xb5)](createIssue(_0x5703f5(0x142),_0x464d09+'.steps',_0x5703f5(0x147),'Stage\x20\x27'+_0x4b52cf[_0x5703f5(0x116)]+_0x5703f5(0x11b),_0xbccd70,_0x464d09+_0x5703f5(0x118)));else _0xf03448<=0x3&&_0x1dcf8f['push'](createIssue('warning',_0x464d09+_0x5703f5(0x118),_0x5703f5(0x145),_0x5703f5(0xc4)+_0x4b52cf['name']+_0x5703f5(0x13d)+_0xf03448+_0x5703f5(0xcd),_0xbccd70,_0x464d09+_0x5703f5(0x118)));}return _0x1dcf8f;}function validateStep(_0x480cd1,_0x72ab33,_0x4d6bc2,_0x41296d){const _0x47b368=a122_0x48a1,_0x1d5628=[];if(_0x480cd1['type']===_0x47b368(0xc6))return _0x480cd1[_0x47b368(0x14b)]&&_0x1d5628['push'](createIssue(_0x47b368(0x103),_0x72ab33+_0x47b368(0xf2),_0x47b368(0xec),_0x47b368(0xbf)+_0x480cd1[_0x47b368(0x116)]+_0x47b368(0xbe),_0x4d6bc2)),'with'in _0x480cd1&&_0x480cd1['with']!==undefined&&_0x1d5628[_0x47b368(0xb5)](createIssue(_0x47b368(0x103),_0x72ab33+_0x47b368(0x112),'END_STEP_HAS_NEXT_OR_WITH',_0x47b368(0xbf)+_0x480cd1['name']+_0x47b368(0xdd),_0x4d6bc2)),_0x1d5628;_0x480cd1['next']&&(_0x4d6bc2[_0x47b368(0x99)]&&!_0x4d6bc2[_0x47b368(0x99)][_0x47b368(0xca)](_0x480cd1[_0x47b368(0x14b)])&&_0x1d5628[_0x47b368(0xb5)](createIssue('error',_0x72ab33+_0x47b368(0xf2),'INVALID_NEXT_REFERENCE','Step\x20references\x20non-existent\x20step\x20\x27'+_0x480cd1['next']+'\x27',_0x4d6bc2)));switch(_0x480cd1[_0x47b368(0xab)]){case _0x47b368(0x9a):_0x1d5628['push'](...validateWaitStep(_0x480cd1,_0x72ab33,_0x4d6bc2,_0x41296d));break;case _0x47b368(0x129):_0x1d5628[_0x47b368(0xb5)](...validateActivationStep(_0x480cd1,_0x72ab33,_0x4d6bc2));break;case'decision_point':_0x1d5628[_0x47b368(0xb5)](...validateDecisionPointStep(_0x480cd1,_0x72ab33,_0x4d6bc2,_0x41296d));break;case _0x47b368(0xda):_0x1d5628['push'](...validateAbTestStep(_0x480cd1,_0x72ab33,_0x4d6bc2,_0x41296d));break;case _0x47b368(0xc1):_0x1d5628[_0x47b368(0xb5)](...validateJumpStep(_0x480cd1,_0x72ab33,_0x4d6bc2));break;}return _0x1d5628;}function validateWaitStep(_0xa46c6e,_0x47a8ab,_0x4f58ef,_0x2934d7){const _0x30f3ae=a122_0x48a1,_0x22e5b8=[];if(!_0xa46c6e['with'])return _0x22e5b8[_0x30f3ae(0xb5)](createIssue(_0x30f3ae(0x103),_0x47a8ab+_0x30f3ae(0x112),_0x30f3ae(0xa3),'Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field',_0x4f58ef,_0x47a8ab)),_0x22e5b8;if(_0xa46c6e[_0x30f3ae(0x131)]['condition']){const _0x275893=_0xa46c6e[_0x30f3ae(0x131)][_0x30f3ae(0x9d)];if(_0x275893['segment']){_0x4f58ef[_0x30f3ae(0xb9)]?.[_0x30f3ae(0xe0)](_0x275893[_0x30f3ae(0x14d)]);!_0x275893[_0x30f3ae(0x14d)]['startsWith'](_0x30f3ae(0x110))&&(_0x4f58ef[_0x30f3ae(0xb8)]&&!_0x4f58ef[_0x30f3ae(0xb8)][_0x30f3ae(0xca)](_0x275893[_0x30f3ae(0x14d)])&&_0x22e5b8[_0x30f3ae(0xb5)](createIssue(_0x30f3ae(0x103),_0x47a8ab+'.with.condition.segment',_0x30f3ae(0x130),_0x30f3ae(0xfe)+_0x275893[_0x30f3ae(0x14d)]+'\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.',_0x4f58ef)));_0x275893[_0x30f3ae(0x14b)]&&_0x4f58ef['stepNames']&&!_0x4f58ef[_0x30f3ae(0x99)]['has'](_0x275893['next'])&&_0x22e5b8[_0x30f3ae(0xb5)](createIssue(_0x30f3ae(0x103),_0x47a8ab+_0x30f3ae(0xc9),'INVALID_NEXT_REFERENCE',_0x30f3ae(0x10c)+_0x275893[_0x30f3ae(0x14b)]+'\x27',_0x4f58ef));_0x275893[_0x30f3ae(0xbc)]?.['next']&&_0x4f58ef[_0x30f3ae(0x99)]&&!_0x4f58ef[_0x30f3ae(0x99)][_0x30f3ae(0xca)](_0x275893[_0x30f3ae(0xbc)][_0x30f3ae(0x14b)])&&_0x22e5b8[_0x30f3ae(0xb5)](createIssue(_0x30f3ae(0x103),_0x47a8ab+_0x30f3ae(0x138),_0x30f3ae(0x10f),'Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27'+_0x275893[_0x30f3ae(0xbc)]['next']+'\x27',_0x4f58ef));const _0x4658a6=_0x275893[_0x30f3ae(0x14b)]||_0xa46c6e[_0x30f3ae(0x14b)],_0x3c291c=_0x275893[_0x30f3ae(0xbc)]?.[_0x30f3ae(0x14b)]||_0xa46c6e[_0x30f3ae(0x14b)];if(_0x4658a6){const _0x24b566=_0x2934d7[_0x30f3ae(0x127)](_0x4658a6);_0x24b566?.['type']===_0x30f3ae(0xdb)&&_0x22e5b8[_0x30f3ae(0xb5)](createIssue(_0x30f3ae(0x142),_0x47a8ab+_0x30f3ae(0xc9),_0x30f3ae(0x12f),_0x30f3ae(0x9f)+_0x4658a6+'\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.',_0x4f58ef,_0x47a8ab+_0x30f3ae(0x11a)));}if(_0x3c291c){const _0x3fe5a5=_0x2934d7['get'](_0x3c291c);_0x3fe5a5?.['type']==='merge'&&_0x22e5b8[_0x30f3ae(0xb5)](createIssue(_0x30f3ae(0x142),_0x47a8ab+_0x30f3ae(0x138),'BRANCH_DIRECTLY_TO_MERGE',_0x30f3ae(0xce)+_0x3c291c+_0x30f3ae(0x133),_0x4f58ef,_0x47a8ab+_0x30f3ae(0xd0)));}}}return _0x22e5b8;}function validateActivationStep(_0x3ba7f6,_0x21b7ee,_0x60315a){const _0x39b4f8=a122_0x48a1,_0x3d8852=[];if(!_0x3ba7f6[_0x39b4f8(0x131)]?.[_0x39b4f8(0x129)])return _0x3d8852['push'](createIssue(_0x39b4f8(0x103),_0x21b7ee+_0x39b4f8(0x137),_0x39b4f8(0xef),_0x39b4f8(0x144),_0x60315a,_0x21b7ee)),_0x3d8852;const _0x27f77d=_0x3ba7f6[_0x39b4f8(0x131)][_0x39b4f8(0x129)];return _0x60315a[_0x39b4f8(0xd3)]&&!_0x27f77d[_0x39b4f8(0x12a)](_0x39b4f8(0x110))&&(!_0x60315a[_0x39b4f8(0xd3)][_0x39b4f8(0xca)](_0x27f77d)&&_0x3d8852[_0x39b4f8(0xb5)](createIssue(_0x39b4f8(0x103),_0x21b7ee+_0x39b4f8(0x137),_0x39b4f8(0x10d),'Activation\x20step\x20references\x20undefined\x20activation\x20\x27'+_0x27f77d+'\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.',_0x60315a))),_0x3d8852;}function validateDecisionPointStep(_0x4f0ae2,_0x4135bf,_0x376799,_0x27de2c){const _0x4ca11e=a122_0x48a1,_0x1ee8f4=[];if(!_0x4f0ae2['with']?.[_0x4ca11e(0xd2)]||_0x4f0ae2[_0x4ca11e(0x131)]['branches'][_0x4ca11e(0xcf)]===0x0)return _0x1ee8f4[_0x4ca11e(0xb5)](createIssue('error',_0x4135bf+_0x4ca11e(0x100),_0x4ca11e(0xad),'Decision\x20point\x20requires\x20at\x20least\x20one\x20branch',_0x376799,_0x4135bf)),_0x1ee8f4;for(let _0x323ade=0x0;_0x323ade<_0x4f0ae2[_0x4ca11e(0x131)]['branches'][_0x4ca11e(0xcf)];_0x323ade++){const _0x4cdde8=_0x4f0ae2[_0x4ca11e(0x131)]['branches'][_0x323ade],_0x4e7370=_0x4135bf+_0x4ca11e(0xe7)+_0x323ade+']';_0x4cdde8['segment']&&!_0x4cdde8[_0x4ca11e(0xc2)]&&(_0x376799[_0x4ca11e(0xb9)]?.['add'](_0x4cdde8[_0x4ca11e(0x14d)]),!_0x4cdde8['segment']['startsWith'](_0x4ca11e(0x110))&&(_0x376799[_0x4ca11e(0xb8)]&&!_0x376799['embeddedSegments']['has'](_0x4cdde8[_0x4ca11e(0x14d)])&&_0x1ee8f4[_0x4ca11e(0xb5)](createIssue(_0x4ca11e(0x103),_0x4e7370+_0x4ca11e(0xe9),_0x4ca11e(0x130),_0x4ca11e(0xb2)+_0x4cdde8[_0x4ca11e(0x14d)]+'\x27',_0x376799))));_0x4cdde8[_0x4ca11e(0x14b)]&&_0x376799['stepNames']&&!_0x376799['stepNames'][_0x4ca11e(0xca)](_0x4cdde8[_0x4ca11e(0x14b)])&&_0x1ee8f4[_0x4ca11e(0xb5)](createIssue(_0x4ca11e(0x103),_0x4e7370+_0x4ca11e(0xf2),_0x4ca11e(0x10f),'Decision\x20branch\x20references\x20non-existent\x20step\x20\x27'+_0x4cdde8['next']+'\x27',_0x376799));if(_0x4cdde8[_0x4ca11e(0x14b)]){const _0x52151b=_0x27de2c['get'](_0x4cdde8[_0x4ca11e(0x14b)]);_0x52151b?.['type']===_0x4ca11e(0xdb)&&_0x1ee8f4[_0x4ca11e(0xb5)](createIssue(_0x4ca11e(0x142),_0x4e7370+_0x4ca11e(0xf2),'BRANCH_DIRECTLY_TO_MERGE',_0x4ca11e(0xa2)+_0x4cdde8[_0x4ca11e(0x116)]+'\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x4cdde8['next']+_0x4ca11e(0xa4),_0x376799));}}return _0x1ee8f4;}function validateAbTestStep(_0x2478c4,_0x181de6,_0x408319,_0x274689){const _0x2e01e4=a122_0x48a1,_0x5b2b1d=[];if(!_0x2478c4[_0x2e01e4(0x131)]?.['variants']||_0x2478c4[_0x2e01e4(0x131)][_0x2e01e4(0xc3)][_0x2e01e4(0xcf)]===0x0)return _0x5b2b1d[_0x2e01e4(0xb5)](createIssue(_0x2e01e4(0x103),_0x181de6+_0x2e01e4(0xf6),'MISSING_CONDITIONS',_0x2e01e4(0xb7),_0x408319,_0x181de6)),_0x5b2b1d;const _0x59a0ec=_0x2478c4['with'][_0x2e01e4(0xc3)][_0x2e01e4(0x12b)]((_0x28aa8f,_0x2951e3)=>_0x28aa8f+(_0x2951e3['percentage']||0x0),0x0);Math['abs'](_0x59a0ec-0x64)>0.01&&_0x5b2b1d[_0x2e01e4(0xb5)](createIssue(_0x2e01e4(0x103),_0x181de6+_0x2e01e4(0xf6),_0x2e01e4(0xe5),'A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20'+_0x59a0ec+'%)',_0x408319));for(let _0x435368=0x0;_0x435368<_0x2478c4[_0x2e01e4(0x131)][_0x2e01e4(0xc3)][_0x2e01e4(0xcf)];_0x435368++){const _0x229b72=_0x2478c4[_0x2e01e4(0x131)][_0x2e01e4(0xc3)][_0x435368],_0x5cec8d=_0x181de6+_0x2e01e4(0x114)+_0x435368+']';_0x229b72[_0x2e01e4(0x14b)]&&_0x408319[_0x2e01e4(0x99)]&&!_0x408319[_0x2e01e4(0x99)][_0x2e01e4(0xca)](_0x229b72['next'])&&_0x5b2b1d[_0x2e01e4(0xb5)](createIssue('error',_0x5cec8d+_0x2e01e4(0xf2),_0x2e01e4(0x10f),_0x2e01e4(0xac)+_0x229b72[_0x2e01e4(0x14b)]+'\x27',_0x408319));if(_0x229b72[_0x2e01e4(0x14b)]){const _0x578f03=_0x274689[_0x2e01e4(0x127)](_0x229b72['next']);_0x578f03?.['type']===_0x2e01e4(0xdb)&&_0x5b2b1d['push'](createIssue(_0x2e01e4(0x142),_0x5cec8d+_0x2e01e4(0xf2),_0x2e01e4(0x12f),_0x2e01e4(0x13a)+_0x229b72[_0x2e01e4(0x116)]+_0x2e01e4(0x107)+_0x229b72['next']+'\x27\x20with\x20no\x20action\x20in\x20between',_0x408319));}}return _0x5b2b1d;}function validateJumpStep(_0x56a801,_0x547699,_0x40b1ca){const _0x4f960c=a122_0x48a1,_0x2b7e51=[];if(!_0x56a801[_0x4f960c(0x131)]?.[_0x4f960c(0xe2)])return _0x2b7e51[_0x4f960c(0xb5)](createIssue(_0x4f960c(0x103),_0x547699+_0x4f960c(0x109),_0x4f960c(0xed),'Jump\x20step\x20requires\x20a\x20target',_0x40b1ca,_0x547699)),_0x2b7e51;return(!_0x56a801[_0x4f960c(0x131)][_0x4f960c(0xe2)]['journey']||!_0x56a801[_0x4f960c(0x131)]['target'][_0x4f960c(0x140)])&&_0x2b7e51[_0x4f960c(0xb5)](createIssue(_0x4f960c(0x103),_0x547699+_0x4f960c(0x109),_0x4f960c(0xed),_0x4f960c(0x13f),_0x40b1ca)),_0x2b7e51;}function a122_0x48a1(_0x3ec556,_0x73767a){_0x3ec556=_0x3ec556-0x97;const _0x588e7b=a122_0x588e();let _0x48a1ee=_0x588e7b[_0x3ec556];return _0x48a1ee;}function buildConvergenceMap(_0x26c39f){const _0x25135b=a122_0x48a1,_0x44df3e=new Map();function _0x4f2043(_0x594012,_0x2c06ed){const _0xa4775b=a122_0x48a1,_0x5bcd51=_0x44df3e[_0xa4775b(0x127)](_0x594012)||[];_0x5bcd51['push'](_0x2c06ed),_0x44df3e[_0xa4775b(0x149)](_0x594012,_0x5bcd51);}for(const _0x12e585 of _0x26c39f){_0x12e585['next']&&_0x4f2043(_0x12e585[_0x25135b(0x14b)],{'stepName':_0x12e585['name'],'description':'step\x20\x27'+_0x12e585[_0x25135b(0x116)]+'\x27'});if(_0x12e585[_0x25135b(0xab)]==='decision_point'&&_0x12e585[_0x25135b(0x131)]?.[_0x25135b(0xd2)])for(const _0x469acb of _0x12e585['with'][_0x25135b(0xd2)]){_0x469acb[_0x25135b(0x14b)]&&_0x4f2043(_0x469acb['next'],{'stepName':_0x12e585['name'],'description':'branch\x20\x27'+_0x469acb[_0x25135b(0x116)]+_0x25135b(0x117)+_0x12e585[_0x25135b(0x116)]+'\x27'});}if(_0x12e585['type']===_0x25135b(0xda)&&_0x12e585[_0x25135b(0x131)]?.[_0x25135b(0xc3)])for(const _0x1aac0f of _0x12e585[_0x25135b(0x131)]['variants']){_0x1aac0f['next']&&_0x4f2043(_0x1aac0f[_0x25135b(0x14b)],{'stepName':_0x12e585[_0x25135b(0x116)],'description':_0x25135b(0x102)+_0x1aac0f[_0x25135b(0x116)]+_0x25135b(0x117)+_0x12e585['name']+'\x27'});}_0x12e585[_0x25135b(0xab)]===_0x25135b(0x9a)&&_0x12e585['with']?.[_0x25135b(0x9d)]&&(_0x12e585[_0x25135b(0x131)][_0x25135b(0x9d)]['next']&&_0x4f2043(_0x12e585[_0x25135b(0x131)]['condition'][_0x25135b(0x14b)],{'stepName':_0x12e585[_0x25135b(0x116)],'description':_0x25135b(0xc0)+_0x12e585[_0x25135b(0x116)]+'\x27'}),_0x12e585['with']['condition'][_0x25135b(0xbc)]?.[_0x25135b(0x14b)]&&_0x4f2043(_0x12e585[_0x25135b(0x131)][_0x25135b(0x9d)][_0x25135b(0xbc)][_0x25135b(0x14b)],{'stepName':_0x12e585['name'],'description':_0x25135b(0x141)+_0x12e585[_0x25135b(0x116)]+'\x27'}));}return _0x44df3e;}function validateFlowControl(_0x16b4c4,_0x50b0ca,_0x598c77){const _0x5cbcdd=a122_0x48a1,_0x2d060a=[],_0xc57f39=_0x5cbcdd(0x108)+_0x50b0ca+']',_0x20ffea=_0x16b4c4[_0x5cbcdd(0x124)]||[];if(_0x20ffea[_0x5cbcdd(0xcf)]===0x0)return _0x2d060a;const _0x16f24f=new Map();for(const _0x86f0e0 of _0x20ffea){_0x86f0e0[_0x5cbcdd(0x116)]&&_0x16f24f[_0x5cbcdd(0x149)](_0x86f0e0[_0x5cbcdd(0x116)],_0x86f0e0);}const _0x42cefc=buildConvergenceMap(_0x20ffea),_0x1a4791=_0x20ffea[_0x5cbcdd(0x120)](_0x272194=>_0x272194[_0x5cbcdd(0xab)]===_0x5cbcdd(0xc6));!_0x1a4791&&_0x2d060a[_0x5cbcdd(0xb5)](createIssue(_0x5cbcdd(0x103),_0xc57f39+_0x5cbcdd(0x118),_0x5cbcdd(0xb4),_0x5cbcdd(0xc4)+_0x16b4c4[_0x5cbcdd(0x116)]+'\x27\x20has\x20no\x20end\x20step',_0x598c77));for(const [_0x371802,_0x361284]of _0x42cefc){const _0x5386aa=_0x16f24f[_0x5cbcdd(0x127)](_0x371802);if(!_0x5386aa)continue;if(_0x361284['length']>0x1&&_0x5386aa[_0x5cbcdd(0xab)]!==_0x5cbcdd(0xdb)){const _0x133867=_0x361284[_0x5cbcdd(0xc7)](_0x53785d=>_0x53785d[_0x5cbcdd(0x132)])[_0x5cbcdd(0x134)](',\x20');_0x2d060a[_0x5cbcdd(0xb5)](createIssue('error',_0xc57f39+_0x5cbcdd(0x118),_0x5cbcdd(0xeb),_0x5cbcdd(0x14a)+_0x371802+_0x5cbcdd(0xb1)+_0x133867+').\x20Use\x20a\x20merge\x20step.',_0x598c77));}_0x361284[_0x5cbcdd(0xcf)]===0x1&&_0x5386aa[_0x5cbcdd(0xab)]===_0x5cbcdd(0xdb)&&_0x2d060a[_0x5cbcdd(0xb5)](createIssue(_0x5cbcdd(0x142),_0xc57f39+_0x5cbcdd(0x118),_0x5cbcdd(0x122),_0x5cbcdd(0xa7)+_0x371802+_0x5cbcdd(0xe1)+_0x361284[0x0][_0x5cbcdd(0x132)]+_0x5cbcdd(0xf0),_0x598c77));}for(const _0xf5f647 of _0x20ffea){if(_0xf5f647['type']==='merge'&&_0xf5f647['next']){const _0x303949=_0x16f24f[_0x5cbcdd(0x127)](_0xf5f647[_0x5cbcdd(0x14b)]);_0x303949?.[_0x5cbcdd(0xab)]==='merge'&&_0x2d060a['push'](createIssue(_0x5cbcdd(0x103),_0xc57f39+_0x5cbcdd(0x118),'MERGE_TO_MERGE_CHAIN',_0x5cbcdd(0xa7)+_0xf5f647[_0x5cbcdd(0x116)]+_0x5cbcdd(0x128)+_0xf5f647['next']+_0x5cbcdd(0xba),_0x598c77));}}return _0x2d060a;}function validateCriteria(_0xa7e614,_0x4f8b14,_0x58acb3){const _0x1ec799=a122_0x48a1,_0x3568b3=[];return _0xa7e614[_0x1ec799(0x14d)]&&(_0x58acb3['referencedSegments']?.['add'](_0xa7e614['segment']),!_0xa7e614[_0x1ec799(0x14d)]['startsWith']('ref:')&&(_0x58acb3[_0x1ec799(0xb8)]&&!_0x58acb3[_0x1ec799(0xb8)][_0x1ec799(0xca)](_0xa7e614['segment'])&&_0x3568b3[_0x1ec799(0xb5)](createIssue(_0x1ec799(0x103),_0x4f8b14+_0x1ec799(0xe9),_0x1ec799(0x130),_0x1ec799(0x101)+_0xa7e614[_0x1ec799(0x14d)]+'\x27',_0x58acb3)))),_0x3568b3;}function validateEmbeddedSegment(_0x19ac1c,_0x22d54c,_0x8ccdd3){const _0x16883b=a122_0x48a1,_0xc3dd8a=[];return _0x19ac1c[_0x16883b(0xe8)]&&_0xc3dd8a[_0x16883b(0xb5)](...validateRuleDef(_0x19ac1c[_0x16883b(0xe8)],_0x22d54c+_0x16883b(0x9b),_0x8ccdd3)),_0xc3dd8a;}function validateStage(_0x4355b0,_0x413224,_0x509c02,_0x41d789){const _0x21c688=a122_0x48a1,_0x189813=[],_0x5a9009=_0x21c688(0x108)+_0x413224+']',_0x58266f=new Map(),_0x3d6adb=new Map();if(_0x4355b0[_0x21c688(0x124)]){for(let _0x3a5b91=0x0;_0x3a5b91<_0x4355b0[_0x21c688(0x124)][_0x21c688(0xcf)];_0x3a5b91++){const _0x45d3b9=_0x4355b0['steps'][_0x3a5b91];_0x45d3b9[_0x21c688(0x116)]&&_0x58266f[_0x21c688(0x149)](_0x45d3b9[_0x21c688(0x116)],_0x45d3b9);}for(let _0x29c944=0x0;_0x29c944<_0x4355b0[_0x21c688(0x124)][_0x21c688(0xcf)];_0x29c944++){const _0x1bbbef=_0x4355b0[_0x21c688(0x124)][_0x29c944],_0x1f6869=_0x5a9009+_0x21c688(0xd5)+_0x29c944+']';if(_0x1bbbef[_0x21c688(0x116)]){if(_0x3d6adb['has'](_0x1bbbef['name'])){const _0x2a3f12=_0x3d6adb[_0x21c688(0x127)](_0x1bbbef[_0x21c688(0x116)]);_0x189813[_0x21c688(0xb5)](createIssue(_0x21c688(0x103),_0x1f6869+_0x21c688(0xe3),'DUPLICATE_STEP_NAME','Duplicate\x20step\x20name\x20\x27'+_0x1bbbef[_0x21c688(0x116)]+_0x21c688(0x11c)+_0x2a3f12+'])',_0x41d789));}else _0x3d6adb['set'](_0x1bbbef[_0x21c688(0x116)],_0x29c944);}_0x189813['push'](...validateStep(_0x1bbbef,_0x1f6869,_0x41d789,_0x58266f));}}_0x4355b0[_0x21c688(0x111)]&&_0x189813['push'](...validateCriteria(_0x4355b0['entry_criteria'],_0x5a9009+_0x21c688(0xfc),_0x41d789));if(_0x4355b0[_0x21c688(0xf4)])for(let _0x4ade01=0x0;_0x4ade01<_0x4355b0[_0x21c688(0xf4)][_0x21c688(0xcf)];_0x4ade01++){_0x189813['push'](...validateCriteria(_0x4355b0[_0x21c688(0xf4)][_0x4ade01],_0x5a9009+'.exit_criteria['+_0x4ade01+']',_0x41d789));}return _0x4355b0[_0x21c688(0xbb)]&&_0x189813['push'](...validateCriteria(_0x4355b0[_0x21c688(0xbb)],_0x5a9009+_0x21c688(0xd8),_0x41d789)),_0x189813[_0x21c688(0xb5)](...validateStageStructure(_0x4355b0,_0x413224,_0x509c02,_0x41d789)),_0x189813[_0x21c688(0xb5)](...validateFlowControl(_0x4355b0,_0x413224,_0x41d789)),_0x189813;}function a122_0x588e(){const _0x3f1c62=['\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','join','\x27\x20has\x20no\x20steps','skipSchema','.with.activation','.with.condition.timeout.next','MISSING_MILESTONE','A/B\x20test\x20variant\x20\x27','latest','journeys,\x20stages,\x20or\x20versions','\x27\x20has\x20only\x20','4514855LaSTyF','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','stage','timeout\x20of\x20\x27','warning','Journey\x20has\x20','Activation\x20step\x20requires\x20an\x20activation\x20reference','FEW_STEPS','9rOVGpQ','INSUFFICIENT_STEPS','2077232yPqjrp','set','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','next','goal','segment','versions[','every','stepNames','wait','.rule','stages','condition','58484QSiWRq','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','level','.type','Decision\x20branch\x20\x27','MISSING_WAIT_PARAMS','\x27\x20with\x20no\x20action\x20in\x20between','\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)','MISSING_EXIT_CRITERIA','Merge\x20step\x20\x27','\x20versions)','version','Embedded\x20segment\x20\x27','type','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','MISSING_CONDITIONS','.stages','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','source','\x27\x20(from:\x20','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27','Journey\x20has\x20no\x20goal\x20defined','MISSING_END_STEP','push','\x20with\x20latest:\x20true','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','embeddedSegments','referencedSegments','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','milestone','timeout','MISSING_ENTRY_CRITERIA','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','End\x20step\x20\x27','condition\x20of\x20\x27','jump','excluded','variants','Stage\x20\x27','path','end','map','success','.with.condition.next','has','UNUSED_EMBEDDED_SEGMENT','entries','\x20steps\x20(may\x20be\x20too\x20simple)','Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','length','.with.condition.timeout','.exit_criteria','branches','activationKeys','launched','.steps[','segments.','endsWith','.milestone','7497980keifjS','ab_test','merge','keys','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','MISSING_STAGES','TOO_MANY_STAGES','add','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','target','.name','issues','INVALID_AB_TEST_PERCENTAGES','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','.with.branches[','rule','.segment','goalIsInherited','CONVERGENCE_WITHOUT_MERGE','END_STEP_HAS_NEXT_OR_WITH','INVALID_JUMP_TARGET','document','MISSING_ACTIVATION_REF',').\x20Merge\x20is\x20unnecessary.','171RxeceV','.next','filter','exit_criteria','ACTIVATION_SCHEMA_ERROR','.with.variants','splice','journeys[','message','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','Journey\x20name\x20is\x20required','.entry_criteria','36807930EjHDEv','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','state','.with.branches','Criteria\x20references\x20undefined\x20segment\x20\x27','variant\x20\x27','error','excluded_','indices','1430496vNDnWI','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','stages[','.with.target','replace','JOURNEY_SCHEMA_ERROR','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','MISSING_ACTIVATION_DEFINITION','journey\x20entry','INVALID_NEXT_REFERENCE','ref:','entry_criteria','.with','symbol','.with.variants[','journeys','name','\x27\x20of\x20\x27','.steps','size','.with.condition','\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)','\x27\x20(first\x20defined\x20at\x20steps[','versions','1082796gnXOxt','6IdRxnu','some','segments','SINGLE_INPUT_MERGE','activations','steps','\x27\x20has\x20no\x20exit_criteria\x20defined','\x20stages\x20but\x20maximum\x20is\x20','get','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','activation','startsWith','reduce','MISSING_NAME','includes','trim','BRANCH_DIRECTLY_TO_MERGE','MISSING_SEGMENT_REFERENCE','with','description'];a122_0x588e=function(){return _0x3f1c62;};return a122_0x588e();}function validateStagesForVersion(_0x27417f,_0x29e479,_0x3ab698,_0x3f56be,_0x4ceb66,_0xeec5a0,_0x4ccaae){const _0x3219db=a122_0x48a1;if(_0x27417f['length']===0x0){_0x4ceb66[_0x3219db(0xb5)]({'level':'error','path':_0x3f56be+_0x3219db(0x9c),'code':_0x3219db(0xde),'message':_0x3219db(0xfa),'location':getLocationFromPath(_0x3ab698[_0x3219db(0xee)],_0x3ab698['source'],['stages'])});return;}const _0x552a5b=new Set();for(const _0x5ce108 of _0x27417f){if(_0x5ce108['steps'])for(const _0x6317f7 of _0x5ce108['steps']){_0x6317f7[_0x3219db(0x116)]&&_0x552a5b['add'](_0x6317f7[_0x3219db(0x116)]);}}const _0x8bd810={..._0x3ab698,'stepNames':_0x552a5b},_0x2ece13=validateVersionStructure(_0x27417f,_0x8bd810);for(const _0x35a74e of _0x2ece13){const _0x29a869=_0x3f56be?{..._0x35a74e,'path':''+_0x3f56be+_0x35a74e['path']}:_0x35a74e;if(_0x29a869[_0x3219db(0xa0)]==='error')_0x4ceb66[_0x3219db(0xb5)](_0x29a869);else _0xeec5a0[_0x3219db(0xb5)](_0x29a869);}for(let _0x1d48f0=0x0;_0x1d48f0<_0x27417f['length'];_0x1d48f0++){const _0x35971e=validateStage(_0x27417f[_0x1d48f0],_0x1d48f0,_0x27417f[_0x3219db(0xcf)],_0x8bd810);for(const _0x87b479 of _0x35971e){const _0x2156fd=_0x3f56be?{..._0x87b479,'path':''+_0x3f56be+_0x87b479['path']}:_0x87b479;if(_0x2156fd[_0x3219db(0xa0)]===_0x3219db(0x103))_0x4ceb66[_0x3219db(0xb5)](_0x2156fd);else _0xeec5a0[_0x3219db(0xb5)](_0x2156fd);}}if(_0x29e479[_0x3219db(0x14c)]){const _0x352432=_0x4ccaae?.[_0x3219db(0xea)]?'goal':_0x3f56be+_0x3219db(0x14c),_0x356c48=validateCriteria(_0x29e479[_0x3219db(0x14c)],_0x352432,_0x8bd810);for(const _0x1db0b6 of _0x356c48){if(_0x1db0b6[_0x3219db(0xa0)]===_0x3219db(0x103))_0x4ceb66[_0x3219db(0xb5)](_0x1db0b6);else _0xeec5a0[_0x3219db(0xb5)](_0x1db0b6);}}}function extractVersionIndex(_0x429a9b){const _0x534688=_0x429a9b['match'](/^journeys\[(\d+)\]\./);return _0x534688?_0x534688[0x1]:undefined;}function deduplicateAcrossVersions(_0x910a30){const _0xa65df7=a122_0x48a1,_0x597c7e=new Map();for(let _0x20acd6=0x0;_0x20acd6<_0x910a30[_0xa65df7(0xcf)];_0x20acd6++){const _0x558453=_0x910a30[_0x20acd6]['code']+':'+_0x910a30[_0x20acd6][_0xa65df7(0xf9)],_0x5d1286=extractVersionIndex(_0x910a30[_0x20acd6][_0xa65df7(0xc5)]),_0x4ce525=_0x597c7e[_0xa65df7(0x127)](_0x558453);if(_0x4ce525){_0x4ce525[_0xa65df7(0x105)]['push'](_0x20acd6);if(_0x5d1286)_0x4ce525[_0xa65df7(0x11d)][_0xa65df7(0xe0)](_0x5d1286);}else _0x597c7e['set'](_0x558453,{'indices':[_0x20acd6],'versions':new Set(_0x5d1286?[_0x5d1286]:[])});}const _0x309754=new Set();for(const {indices:_0xd88edc,versions:_0x5d0036}of _0x597c7e['values']()){if(_0x5d0036[_0xa65df7(0x119)]<=0x1)continue;const _0x2144e2=_0x910a30[_0xd88edc[0x0]];_0x2144e2[_0xa65df7(0xc5)]=_0x2144e2['path'][_0xa65df7(0x10a)](/^journeys\[\d+\]\./,''),_0x2144e2[_0xa65df7(0xf9)]=_0x2144e2[_0xa65df7(0xf9)]+'\x20(across\x20'+_0x5d0036[_0xa65df7(0x119)]+_0xa65df7(0xa8);for(let _0x2b97d9=0x1;_0x2b97d9<_0xd88edc[_0xa65df7(0xcf)];_0x2b97d9++){_0x309754[_0xa65df7(0xe0)](_0xd88edc[_0x2b97d9]);}}const _0x4b931e=[..._0x309754]['sort']((_0x1b3ec1,_0x1d6955)=>_0x1d6955-_0x1b3ec1);for(const _0x7d03d7 of _0x4b931e){_0x910a30[_0xa65df7(0xf7)](_0x7d03d7,0x1);}}export function validateJourneyDef(_0x43d0ce,_0x3f30be={},_0x1d5953={}){const _0x5e9227=a122_0x48a1;if(_0x1d5953[_0x5e9227(0x136)])return runJourneySemanticChecks(_0x43d0ce,_0x3f30be);const _0x345aad=JourneyDefSchema['safeParse'](_0x43d0ce);if(_0x345aad[_0x5e9227(0xc8)])return runJourneySemanticChecks(_0x345aad['data'],_0x3f30be);return zodErrorsToJourneyValidationResult(_0x345aad['error'],_0x3f30be);}function zodErrorsToJourneyValidationResult(_0x1dab48,_0x2bf836){const _0x5dc56f=a122_0x48a1,_0x376742=flattenZodIssues(_0x1dab48[_0x5dc56f(0xe4)]),_0x1f4bb1=_0x376742[_0x5dc56f(0xc7)](_0x4afda5=>{const _0x20af9=_0x5dc56f,_0x55e64e=formatZodPath(_0x4afda5[_0x20af9(0xc5)]),_0x22efef=mapJourneyZodIssueToCode(_0x4afda5,_0x55e64e),_0x33de8c=getLocationFromPath(_0x2bf836[_0x20af9(0xee)],_0x2bf836[_0x20af9(0xb0)],_0x4afda5['path']['map'](_0xdd1033=>typeof _0xdd1033===_0x20af9(0x113)?String(_0xdd1033):_0xdd1033));return{'level':_0x20af9(0x103),'path':_0x55e64e,'code':_0x22efef,'message':_0x4afda5[_0x20af9(0xf9)],..._0x33de8c&&{'location':_0x33de8c}};});return{'valid':![],'errors':_0x1f4bb1,'warnings':[]};}function mapJourneyZodIssueToCode(_0x24eafe,_0xf212ba){const _0xb5d09f=a122_0x48a1;if(_0xf212ba==='name')return _0xb5d09f(0x12c);if(_0xf212ba[_0xb5d09f(0xd7)](_0xb5d09f(0xa1))&&_0xf212ba['includes']('steps'))return _0xb5d09f(0x10b);if(_0xf212ba==='stages'||_0xf212ba[_0xb5d09f(0xd7)](_0xb5d09f(0xae)))return'MISSING_STAGES';if(_0xf212ba===''&&_0x24eafe['message'][_0xb5d09f(0x12d)](_0xb5d09f(0x13c)))return _0xb5d09f(0xde);if(_0xf212ba[_0xb5d09f(0x12d)]('activation'))return _0xb5d09f(0xf5);return _0xb5d09f(0x10b);}function runJourneySemanticChecks(_0xa84cef,_0x4d0226){const _0xc61f97=a122_0x48a1,_0x5728ef=[],_0x15ecc8=[];(!_0xa84cef['name']||_0xa84cef['name'][_0xc61f97(0x12e)]()==='')&&_0x5728ef[_0xc61f97(0xb5)]({'level':_0xc61f97(0x103),'path':_0xc61f97(0x116),'code':_0xc61f97(0x12c),'message':_0xc61f97(0xfb),'location':getLocationFromPath(_0x4d0226[_0xc61f97(0xee)],_0x4d0226[_0xc61f97(0xb0)],['name'])});const _0xe2abf3=new Set();if(_0xa84cef['segments'])for(const _0x4a75e6 of Object[_0xc61f97(0xdc)](_0xa84cef['segments'])){_0xe2abf3[_0xc61f97(0xe0)](_0x4a75e6);}const _0x1ab8b7=new Set();if(_0xa84cef[_0xc61f97(0x123)])for(const _0x5e9c85 of Object['keys'](_0xa84cef[_0xc61f97(0x123)])){_0x1ab8b7[_0xc61f97(0xe0)](_0x5e9c85);}const _0x5d31eb=new Set(),_0x574b67={..._0x4d0226,'embeddedSegments':_0xe2abf3,'referencedSegments':_0x5d31eb,'activationKeys':_0x1ab8b7[_0xc61f97(0x119)]>0x0?_0x1ab8b7:undefined};if(_0xa84cef[_0xc61f97(0x121)])for(const [_0x10c667,_0x30871c]of Object[_0xc61f97(0xcc)](_0xa84cef[_0xc61f97(0x121)])){const _0x210a6d=validateEmbeddedSegment(_0x30871c,_0xc61f97(0xd6)+_0x10c667,_0x574b67);for(const _0x18e7e2 of _0x210a6d){if(_0x18e7e2[_0xc61f97(0xa0)]===_0xc61f97(0x103))_0x5728ef[_0xc61f97(0xb5)](_0x18e7e2);else _0x15ecc8['push'](_0x18e7e2);}}const _0xc0da3a=!!_0xa84cef[_0xc61f97(0x14c)],_0x4ea2f6=_0xa84cef[_0xc61f97(0x115)]?.[_0xc61f97(0x98)](_0x95e93b=>!!_0x95e93b[_0xc61f97(0x14c)])??![];!_0xc0da3a&&!_0x4ea2f6&&_0x15ecc8[_0xc61f97(0xb5)]({'level':_0xc61f97(0x142),'path':_0xc61f97(0x14c),'code':'MISSING_GOAL','message':_0xc61f97(0xb3),'location':getLocationFromPath(_0x4d0226[_0xc61f97(0xee)],_0x4d0226[_0xc61f97(0xb0)],[_0xc61f97(0x14c)])});const _0x347952=_0xa84cef[_0xc61f97(0x115)]??_0xa84cef[_0xc61f97(0x11d)];if(_0x347952&&_0x347952[_0xc61f97(0xf3)](_0x18dbae=>_0x18dbae[_0xc61f97(0x13b)]===!![])[_0xc61f97(0xcf)]>0x1){const _0x44cff5=_0xa84cef[_0xc61f97(0x115)]?_0xc61f97(0x115):_0xc61f97(0x11d);_0x5728ef['push']({'level':_0xc61f97(0x103),'path':_0x44cff5,'code':'DUPLICATE_LATEST','message':'Journey\x20can\x20have\x20at\x20most\x20one\x20'+(_0x44cff5===_0xc61f97(0x115)?_0xc61f97(0x10e):_0xc61f97(0xa9))+_0xc61f97(0xb6),'location':getLocationFromPath(_0x4d0226[_0xc61f97(0xee)],_0x4d0226[_0xc61f97(0xb0)],[_0x44cff5])});}if(_0xa84cef[_0xc61f97(0x115)]&&_0xa84cef[_0xc61f97(0x115)][_0xc61f97(0xcf)]>0x0)for(let _0x2ef25b=0x0;_0x2ef25b<_0xa84cef['journeys'][_0xc61f97(0xcf)];_0x2ef25b++){const _0x1a4a56=_0xa84cef[_0xc61f97(0x115)][_0x2ef25b];if(_0xa84cef[_0xc61f97(0x115)][_0xc61f97(0xcf)]>0x1&&_0x1a4a56['state']===_0xc61f97(0xd4))continue;const _0x42328e=_0x1a4a56['stages']||[],_0x2b8426=_0xc61f97(0xf8)+_0x2ef25b+'].',_0xb36b1f=!!_0x1a4a56[_0xc61f97(0x14c)],_0x420177=_0xb36b1f?{..._0xa84cef,'goal':_0x1a4a56['goal']}:_0xa84cef;validateStagesForVersion(_0x42328e,_0x420177,_0x574b67,_0x2b8426,_0x5728ef,_0x15ecc8,{'goalIsInherited':!_0xb36b1f});}else{if(_0xa84cef[_0xc61f97(0x11d)]&&_0xa84cef['versions'][_0xc61f97(0xcf)]>0x0)for(let _0x7a7e11=0x0;_0x7a7e11<_0xa84cef['versions'][_0xc61f97(0xcf)];_0x7a7e11++){const _0x1302ff=_0xa84cef[_0xc61f97(0x11d)][_0x7a7e11];if(_0xa84cef[_0xc61f97(0x11d)][_0xc61f97(0xcf)]>0x1&&_0x1302ff[_0xc61f97(0xff)]===_0xc61f97(0xd4))continue;const _0x4a420e=_0x1302ff['stages']||[],_0x57d4da=_0xc61f97(0x97)+_0x7a7e11+'].';validateStagesForVersion(_0x4a420e,_0xa84cef,_0x574b67,_0x57d4da,_0x5728ef,_0x15ecc8);}else{const _0x343e17=_0xa84cef[_0xc61f97(0x9c)]||[];validateStagesForVersion(_0x343e17,_0xa84cef,_0x574b67,'',_0x5728ef,_0x15ecc8);}}_0xa84cef[_0xc61f97(0x115)]&&_0xa84cef[_0xc61f97(0x115)][_0xc61f97(0xcf)]>0x1&&(deduplicateAcrossVersions(_0x5728ef),deduplicateAcrossVersions(_0x15ecc8));for(const _0x467805 of _0xe2abf3){!_0x5d31eb[_0xc61f97(0xca)](_0x467805)&&!_0x467805['startsWith'](_0xc61f97(0x104))&&_0x15ecc8['push']({'level':'warning','path':_0xc61f97(0xd6)+_0x467805,'code':_0xc61f97(0xcb),'message':_0xc61f97(0xaa)+_0x467805+_0xc61f97(0xe6),'location':getLocationFromPath(_0x4d0226[_0xc61f97(0xee)],_0x4d0226[_0xc61f97(0xb0)],[_0xc61f97(0x121),_0x467805])});}return{'valid':_0x5728ef['length']===0x0,'errors':_0x5728ef,'warnings':_0x15ecc8};}
|
|
1
|
+
(function(_0x3bda37,_0x152325){const _0x2363d3=a130_0x420c,_0x2bffa6=_0x3bda37();while(!![]){try{const _0x17af9d=parseInt(_0x2363d3(0x1eb))/0x1+parseInt(_0x2363d3(0x180))/0x2+parseInt(_0x2363d3(0x1dd))/0x3*(parseInt(_0x2363d3(0x1a4))/0x4)+-parseInt(_0x2363d3(0x20a))/0x5*(-parseInt(_0x2363d3(0x1bf))/0x6)+-parseInt(_0x2363d3(0x190))/0x7*(-parseInt(_0x2363d3(0x184))/0x8)+parseInt(_0x2363d3(0x1be))/0x9+-parseInt(_0x2363d3(0x1d2))/0xa;if(_0x17af9d===_0x152325)break;else _0x2bffa6['push'](_0x2bffa6['shift']());}catch(_0x3dc293){_0x2bffa6['push'](_0x2bffa6['shift']());}}}(a130_0x4d7d,0xe10fb));import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x5e451d,_0x59e22c,_0x14f620,_0x580b3d,_0x3b51e7,_0x2a464a){const _0x1ebb37=a130_0x420c;return{'level':_0x5e451d,'path':_0x59e22c,'code':_0x14f620,'message':_0x580b3d,'location':getLocationFromPath(_0x3b51e7['document'],_0x3b51e7[_0x1ebb37(0x1de)],pathToArray(_0x2a464a??_0x59e22c))};}function validateVersionStructure(_0x47c67e,_0x39a044){const _0x6f60e2=a130_0x420c,_0xdfba10=[];return _0x47c67e[_0x6f60e2(0x1b3)]>MAX_STAGES&&_0xdfba10[_0x6f60e2(0x188)](createIssue(_0x6f60e2(0x1b7),'stages',_0x6f60e2(0x1f9),'Journey\x20has\x20'+_0x47c67e['length']+_0x6f60e2(0x18a)+MAX_STAGES,_0x39a044)),_0xdfba10;}function validateStageStructure(_0x5458b1,_0x5dd426,_0x2aeca7,_0x57aad4){const _0x206a88=a130_0x420c,_0x1c2336=[],_0x319e83=_0x206a88(0x210)+_0x5dd426+']';_0x5dd426===0x0&&!_0x5458b1[_0x206a88(0x1a7)]&&_0x1c2336[_0x206a88(0x188)](createIssue(_0x206a88(0x1b7),_0x319e83+_0x206a88(0x1d1),_0x206a88(0x216),_0x206a88(0x21c)+_0x5458b1['name']+_0x206a88(0x1af),_0x57aad4,_0x319e83));const _0x1900a3=_0x5dd426===_0x2aeca7-0x1;!_0x1900a3&&!_0x5458b1[_0x206a88(0x215)]&&_0x1c2336[_0x206a88(0x188)](createIssue(_0x206a88(0x1b7),_0x319e83+'.milestone',_0x206a88(0x196),'Stage\x20\x27'+_0x5458b1[_0x206a88(0x1b2)]+_0x206a88(0x1b1),_0x57aad4,_0x319e83));(!_0x5458b1[_0x206a88(0x1c6)]||_0x5458b1['exit_criteria'][_0x206a88(0x1b3)]===0x0)&&_0x1c2336[_0x206a88(0x188)](createIssue(_0x206a88(0x21f),_0x319e83+_0x206a88(0x1b5),_0x206a88(0x1b8),_0x206a88(0x21c)+_0x5458b1[_0x206a88(0x1b2)]+_0x206a88(0x1e5),_0x57aad4,_0x319e83));const _0x3541c4=_0x5458b1[_0x206a88(0x211)]?.[_0x206a88(0x1b3)]??0x0;if(_0x3541c4===0x0)_0x1c2336[_0x206a88(0x188)](createIssue(_0x206a88(0x1b7),_0x319e83+_0x206a88(0x1db),_0x206a88(0x1c8),_0x206a88(0x21c)+_0x5458b1[_0x206a88(0x1b2)]+'\x27\x20has\x20no\x20steps',_0x57aad4,_0x319e83+_0x206a88(0x1db)));else{if(_0x3541c4===0x1)_0x1c2336[_0x206a88(0x188)](createIssue(_0x206a88(0x21f),_0x319e83+_0x206a88(0x1db),_0x206a88(0x1c8),_0x206a88(0x21c)+_0x5458b1[_0x206a88(0x1b2)]+_0x206a88(0x1d0),_0x57aad4,_0x319e83+_0x206a88(0x1db)));else _0x3541c4<=0x3&&_0x1c2336[_0x206a88(0x188)](createIssue('warning',_0x319e83+_0x206a88(0x1db),_0x206a88(0x20d),_0x206a88(0x21c)+_0x5458b1[_0x206a88(0x1b2)]+_0x206a88(0x193)+_0x3541c4+_0x206a88(0x174),_0x57aad4,_0x319e83+_0x206a88(0x1db)));}return _0x1c2336;}function validateStep(_0x18fd8a,_0x4d73d1,_0x397e49,_0x5944ff){const _0x5ab8aa=a130_0x420c,_0x409eb4=[];if(_0x18fd8a['type']===_0x5ab8aa(0x176))return _0x18fd8a[_0x5ab8aa(0x20f)]&&_0x409eb4[_0x5ab8aa(0x188)](createIssue(_0x5ab8aa(0x1b7),_0x4d73d1+'.next',_0x5ab8aa(0x1ef),_0x5ab8aa(0x1ae)+_0x18fd8a[_0x5ab8aa(0x1b2)]+_0x5ab8aa(0x1cc),_0x397e49)),_0x5ab8aa(0x1ed)in _0x18fd8a&&_0x18fd8a[_0x5ab8aa(0x1ed)]!==undefined&&_0x409eb4[_0x5ab8aa(0x188)](createIssue(_0x5ab8aa(0x1b7),_0x4d73d1+'.with',_0x5ab8aa(0x1ef),'End\x20step\x20\x27'+_0x18fd8a[_0x5ab8aa(0x1b2)]+_0x5ab8aa(0x203),_0x397e49)),_0x409eb4;_0x18fd8a['next']&&(_0x397e49['stepNames']&&!_0x397e49[_0x5ab8aa(0x200)][_0x5ab8aa(0x205)](_0x18fd8a[_0x5ab8aa(0x20f)])&&_0x409eb4[_0x5ab8aa(0x188)](createIssue('error',_0x4d73d1+_0x5ab8aa(0x21b),_0x5ab8aa(0x17c),'Step\x20references\x20non-existent\x20step\x20\x27'+_0x18fd8a[_0x5ab8aa(0x20f)]+'\x27',_0x397e49)));switch(_0x18fd8a[_0x5ab8aa(0x189)]){case _0x5ab8aa(0x1df):_0x409eb4['push'](...validateWaitStep(_0x18fd8a,_0x4d73d1,_0x397e49,_0x5944ff));break;case _0x5ab8aa(0x18e):_0x409eb4['push'](...validateActivationStep(_0x18fd8a,_0x4d73d1,_0x397e49));break;case _0x5ab8aa(0x1e6):_0x409eb4['push'](...validateDecisionPointStep(_0x18fd8a,_0x4d73d1,_0x397e49,_0x5944ff));break;case'ab_test':_0x409eb4['push'](...validateAbTestStep(_0x18fd8a,_0x4d73d1,_0x397e49,_0x5944ff));break;case'jump':_0x409eb4[_0x5ab8aa(0x188)](...validateJumpStep(_0x18fd8a,_0x4d73d1,_0x397e49));break;}return _0x409eb4;}function validateWaitStep(_0x5a826f,_0x3225bd,_0x4a7142,_0x4e97cc){const _0x18a8ce=a130_0x420c,_0x10bc39=[];if(!_0x5a826f['with'])return _0x10bc39[_0x18a8ce(0x188)](createIssue(_0x18a8ce(0x1b7),_0x3225bd+_0x18a8ce(0x1a2),_0x18a8ce(0x1e0),_0x18a8ce(0x1a0),_0x4a7142,_0x3225bd)),_0x10bc39;if(_0x5a826f[_0x18a8ce(0x1ed)]['condition']){const _0x41aa08=_0x5a826f[_0x18a8ce(0x1ed)][_0x18a8ce(0x19f)];if(_0x41aa08[_0x18a8ce(0x1f8)]){_0x4a7142[_0x18a8ce(0x1f7)]?.[_0x18a8ce(0x1ba)](_0x41aa08[_0x18a8ce(0x1f8)]);!_0x41aa08[_0x18a8ce(0x1f8)]['startsWith'](_0x18a8ce(0x1d4))&&(_0x4a7142[_0x18a8ce(0x201)]&&!_0x4a7142[_0x18a8ce(0x201)][_0x18a8ce(0x205)](_0x41aa08[_0x18a8ce(0x1f8)])&&_0x10bc39[_0x18a8ce(0x188)](createIssue(_0x18a8ce(0x1b7),_0x3225bd+'.with.condition.segment','MISSING_SEGMENT_REFERENCE',_0x18a8ce(0x1ac)+_0x41aa08[_0x18a8ce(0x1f8)]+'\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.',_0x4a7142)));_0x41aa08['next']&&_0x4a7142['stepNames']&&!_0x4a7142[_0x18a8ce(0x200)]['has'](_0x41aa08['next'])&&_0x10bc39[_0x18a8ce(0x188)](createIssue('error',_0x3225bd+_0x18a8ce(0x20b),_0x18a8ce(0x17c),_0x18a8ce(0x1c3)+_0x41aa08['next']+'\x27',_0x4a7142));_0x41aa08[_0x18a8ce(0x21e)]?.['next']&&_0x4a7142[_0x18a8ce(0x200)]&&!_0x4a7142[_0x18a8ce(0x200)][_0x18a8ce(0x205)](_0x41aa08[_0x18a8ce(0x21e)][_0x18a8ce(0x20f)])&&_0x10bc39[_0x18a8ce(0x188)](createIssue(_0x18a8ce(0x1b7),_0x3225bd+'.with.condition.timeout.next',_0x18a8ce(0x17c),'Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27'+_0x41aa08[_0x18a8ce(0x21e)][_0x18a8ce(0x20f)]+'\x27',_0x4a7142));const _0x306fc9=_0x41aa08[_0x18a8ce(0x20f)]||_0x5a826f[_0x18a8ce(0x20f)],_0x40592a=_0x41aa08['timeout']?.[_0x18a8ce(0x20f)]||_0x5a826f[_0x18a8ce(0x20f)];if(_0x306fc9){const _0x12edf0=_0x4e97cc[_0x18a8ce(0x1e7)](_0x306fc9);_0x12edf0?.['type']==='merge'&&_0x10bc39[_0x18a8ce(0x188)](createIssue(_0x18a8ce(0x21f),_0x3225bd+_0x18a8ce(0x20b),'BRANCH_DIRECTLY_TO_MERGE','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x306fc9+'\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.',_0x4a7142,_0x3225bd+'.with.condition'));}if(_0x40592a){const _0x3dd131=_0x4e97cc[_0x18a8ce(0x1e7)](_0x40592a);_0x3dd131?.[_0x18a8ce(0x189)]===_0x18a8ce(0x202)&&_0x10bc39['push'](createIssue(_0x18a8ce(0x21f),_0x3225bd+'.with.condition.timeout.next',_0x18a8ce(0x1e9),'Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x40592a+_0x18a8ce(0x1dc),_0x4a7142,_0x3225bd+_0x18a8ce(0x20e)));}}}return _0x10bc39;}function validateActivationStep(_0x316bf2,_0x2aabd5,_0x2cde8c){const _0x97fbbb=a130_0x420c,_0x27d763=[];if(!_0x316bf2[_0x97fbbb(0x1ed)]?.['activation'])return _0x27d763[_0x97fbbb(0x188)](createIssue(_0x97fbbb(0x1b7),_0x2aabd5+'.with.activation',_0x97fbbb(0x213),_0x97fbbb(0x1c2),_0x2cde8c,_0x2aabd5)),_0x27d763;const _0x4c2d91=_0x316bf2[_0x97fbbb(0x1ed)][_0x97fbbb(0x18e)];return _0x2cde8c[_0x97fbbb(0x217)]&&!_0x4c2d91[_0x97fbbb(0x1d8)](_0x97fbbb(0x1d4))&&(!_0x2cde8c['activationKeys'][_0x97fbbb(0x205)](_0x4c2d91)&&_0x27d763[_0x97fbbb(0x188)](createIssue(_0x97fbbb(0x1b7),_0x2aabd5+_0x97fbbb(0x192),_0x97fbbb(0x1e8),_0x97fbbb(0x212)+_0x4c2d91+'\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.',_0x2cde8c))),_0x27d763;}function validateDecisionPointStep(_0x309079,_0x54e237,_0x50fede,_0x3222f9){const _0x449bf6=a130_0x420c,_0xd19b9a=[];if(!_0x309079[_0x449bf6(0x1ed)]?.['branches']||_0x309079[_0x449bf6(0x1ed)][_0x449bf6(0x1d5)][_0x449bf6(0x1b3)]===0x0)return _0xd19b9a[_0x449bf6(0x188)](createIssue(_0x449bf6(0x1b7),_0x54e237+_0x449bf6(0x1cf),_0x449bf6(0x1e2),_0x449bf6(0x1c5),_0x50fede,_0x54e237)),_0xd19b9a;for(let _0x47c9ff=0x0;_0x47c9ff<_0x309079[_0x449bf6(0x1ed)][_0x449bf6(0x1d5)]['length'];_0x47c9ff++){const _0x4ad4d5=_0x309079[_0x449bf6(0x1ed)][_0x449bf6(0x1d5)][_0x47c9ff],_0x2fae08=_0x54e237+_0x449bf6(0x182)+_0x47c9ff+']';_0x4ad4d5[_0x449bf6(0x1f8)]&&!_0x4ad4d5[_0x449bf6(0x20c)]&&(_0x50fede[_0x449bf6(0x1f7)]?.[_0x449bf6(0x1ba)](_0x4ad4d5[_0x449bf6(0x1f8)]),!_0x4ad4d5[_0x449bf6(0x1f8)]['startsWith']('ref:')&&(_0x50fede[_0x449bf6(0x201)]&&!_0x50fede[_0x449bf6(0x201)][_0x449bf6(0x205)](_0x4ad4d5[_0x449bf6(0x1f8)])&&_0xd19b9a[_0x449bf6(0x188)](createIssue(_0x449bf6(0x1b7),_0x2fae08+_0x449bf6(0x1c0),'MISSING_SEGMENT_REFERENCE',_0x449bf6(0x175)+_0x4ad4d5[_0x449bf6(0x1f8)]+'\x27',_0x50fede))));_0x4ad4d5[_0x449bf6(0x20f)]&&_0x50fede['stepNames']&&!_0x50fede['stepNames'][_0x449bf6(0x205)](_0x4ad4d5[_0x449bf6(0x20f)])&&_0xd19b9a[_0x449bf6(0x188)](createIssue(_0x449bf6(0x1b7),_0x2fae08+_0x449bf6(0x21b),'INVALID_NEXT_REFERENCE','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27'+_0x4ad4d5[_0x449bf6(0x20f)]+'\x27',_0x50fede));if(_0x4ad4d5[_0x449bf6(0x20f)]){const _0x468ac2=_0x3222f9[_0x449bf6(0x1e7)](_0x4ad4d5['next']);_0x468ac2?.[_0x449bf6(0x189)]==='merge'&&_0xd19b9a[_0x449bf6(0x188)](createIssue(_0x449bf6(0x21f),_0x2fae08+_0x449bf6(0x21b),_0x449bf6(0x1e9),'Decision\x20branch\x20\x27'+_0x4ad4d5[_0x449bf6(0x1b2)]+'\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x4ad4d5[_0x449bf6(0x20f)]+_0x449bf6(0x1a1),_0x50fede));}}return _0xd19b9a;}function validateAbTestStep(_0x23eb34,_0x130e43,_0x4946f5,_0xc095da){const _0x2dfdfc=a130_0x420c,_0xf21193=[];if(!_0x23eb34[_0x2dfdfc(0x1ed)]?.[_0x2dfdfc(0x191)]||_0x23eb34['with']['variants'][_0x2dfdfc(0x1b3)]===0x0)return _0xf21193[_0x2dfdfc(0x188)](createIssue(_0x2dfdfc(0x1b7),_0x130e43+_0x2dfdfc(0x19b),_0x2dfdfc(0x1e2),_0x2dfdfc(0x1bb),_0x4946f5,_0x130e43)),_0xf21193;const _0x1ad4f4=_0x23eb34['with'][_0x2dfdfc(0x191)][_0x2dfdfc(0x21d)]((_0x2e022e,_0xf024ea)=>_0x2e022e+(_0xf024ea['percentage']||0x0),0x0);Math[_0x2dfdfc(0x1b4)](_0x1ad4f4-0x64)>0.01&&_0xf21193[_0x2dfdfc(0x188)](createIssue(_0x2dfdfc(0x1b7),_0x130e43+_0x2dfdfc(0x19b),_0x2dfdfc(0x1a8),'A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20'+_0x1ad4f4+'%)',_0x4946f5));for(let _0x31447b=0x0;_0x31447b<_0x23eb34[_0x2dfdfc(0x1ed)][_0x2dfdfc(0x191)][_0x2dfdfc(0x1b3)];_0x31447b++){const _0x4b8d3b=_0x23eb34['with'][_0x2dfdfc(0x191)][_0x31447b],_0x19032b=_0x130e43+_0x2dfdfc(0x1a3)+_0x31447b+']';_0x4b8d3b[_0x2dfdfc(0x20f)]&&_0x4946f5['stepNames']&&!_0x4946f5[_0x2dfdfc(0x200)][_0x2dfdfc(0x205)](_0x4b8d3b[_0x2dfdfc(0x20f)])&&_0xf21193[_0x2dfdfc(0x188)](createIssue('error',_0x19032b+'.next',_0x2dfdfc(0x17c),'A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27'+_0x4b8d3b[_0x2dfdfc(0x20f)]+'\x27',_0x4946f5));if(_0x4b8d3b[_0x2dfdfc(0x20f)]){const _0x1b3a79=_0xc095da[_0x2dfdfc(0x1e7)](_0x4b8d3b[_0x2dfdfc(0x20f)]);_0x1b3a79?.[_0x2dfdfc(0x189)]==='merge'&&_0xf21193[_0x2dfdfc(0x188)](createIssue(_0x2dfdfc(0x21f),_0x19032b+_0x2dfdfc(0x21b),_0x2dfdfc(0x1e9),_0x2dfdfc(0x1f4)+_0x4b8d3b[_0x2dfdfc(0x1b2)]+_0x2dfdfc(0x204)+_0x4b8d3b[_0x2dfdfc(0x20f)]+'\x27\x20with\x20no\x20action\x20in\x20between',_0x4946f5));}}return _0xf21193;}function a130_0x4d7d(){const _0x6447cc=['length','abs','.exit_criteria','keys','error','MISSING_EXIT_CRITERIA','\x20(across\x20','add','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','some','issues','7296255edOEoI','12BOnxPV','.segment','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','Activation\x20step\x20requires\x20an\x20activation\x20reference','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','Embedded\x20segment\x20\x27','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','exit_criteria','skipSchema','INSUFFICIENT_STEPS','MERGE_TO_MERGE_CHAIN','MISSING_STAGES','document','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','Jump\x20step\x20requires\x20a\x20target','UNUSED_EMBEDDED_SEGMENT','.with.branches','\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)','.entry_criteria','48027910DkzwZS','launched','ref:','branches','safeParse','description','startsWith','.steps[','map','.steps','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','777291RvnPIx','source','wait','MISSING_WAIT_PARAMS','success','MISSING_CONDITIONS','\x27\x20(first\x20defined\x20at\x20steps[','.type','\x27\x20has\x20no\x20exit_criteria\x20defined','decision_point','get','MISSING_ACTIVATION_DEFINITION','BRANCH_DIRECTLY_TO_MERGE','.milestone','794582TYpWoi','versions','with','timeout\x20of\x20\x27','END_STEP_HAS_NEXT_OR_WITH','target','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','level','SINGLE_INPUT_MERGE','A/B\x20test\x20variant\x20\x27','includes','\x27\x20has\x20only\x20one\x20input\x20(from:\x20','referencedSegments','segment','TOO_MANY_STAGES','JOURNEY_SCHEMA_ERROR','DUPLICATE_STEP_NAME','segments.','every','path',').\x20Merge\x20is\x20unnecessary.','stepNames','embeddedSegments','merge','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','has','stages','.with.target','step\x20\x27','rule','4035845XdRUTh','.with.condition.next','excluded','FEW_STEPS','.with.condition.timeout','next','stages[','steps','Activation\x20step\x20references\x20undefined\x20activation\x20\x27','MISSING_ACTIVATION_REF','versions[','milestone','MISSING_ENTRY_CRITERIA','activationKeys','symbol','MISSING_GOAL','segments','.next','Stage\x20\x27','reduce','timeout','warning','replace','excluded_','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','journey','\x20steps\x20(may\x20be\x20too\x20simple)','Decision\x20branch\x20references\x20undefined\x20segment\x20\x27','end','version','data','latest','condition\x20of\x20\x27','set','INVALID_NEXT_REFERENCE','ab_test','MISSING_END_STEP','goal','1493770hkKgBc','size','.with.branches[','\x20with\x20latest:\x20true','13864SmWXbI','state','sort','Journey\x20has\x20no\x20goal\x20defined','push','type','\x20stages\x20but\x20maximum\x20is\x20','stage','join','journeys[','activation','DUPLICATE_LATEST','6055QFiNiu','variants','.with.activation','\x27\x20has\x20only\x20','.rule','code','MISSING_MILESTONE','journey\x20entry',').\x20Use\x20a\x20merge\x20step.','splice','.name','.with.variants','endsWith','journeys','\x27\x20has\x20no\x20end\x20step','condition','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field','\x27\x20with\x20no\x20action\x20in\x20between','.with','.with.variants[','4ARWqhs','trim','.exit_criteria[','entry_criteria','INVALID_AB_TEST_PERCENTAGES','Merge\x20step\x20\x27','message','variant\x20\x27','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','indices','End\x20step\x20\x27','\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)','activations','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','name'];a130_0x4d7d=function(){return _0x6447cc;};return a130_0x4d7d();}function validateJumpStep(_0x41b36e,_0x2e41e5,_0x47deec){const _0x51b635=a130_0x420c,_0x557836=[];if(!_0x41b36e[_0x51b635(0x1ed)]?.['target'])return _0x557836[_0x51b635(0x188)](createIssue(_0x51b635(0x1b7),_0x2e41e5+_0x51b635(0x207),'INVALID_JUMP_TARGET',_0x51b635(0x1cd),_0x47deec,_0x2e41e5)),_0x557836;return(!_0x41b36e[_0x51b635(0x1ed)][_0x51b635(0x1f0)][_0x51b635(0x173)]||!_0x41b36e[_0x51b635(0x1ed)][_0x51b635(0x1f0)][_0x51b635(0x18b)])&&_0x557836[_0x51b635(0x188)](createIssue(_0x51b635(0x1b7),_0x2e41e5+_0x51b635(0x207),'INVALID_JUMP_TARGET','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names',_0x47deec)),_0x557836;}function buildConvergenceMap(_0x2baf0d){const _0x5e6a17=a130_0x420c,_0x9df35f=new Map();function _0x13f241(_0x144581,_0x24a6a3){const _0x1d3360=a130_0x420c,_0x147969=_0x9df35f[_0x1d3360(0x1e7)](_0x144581)||[];_0x147969['push'](_0x24a6a3),_0x9df35f['set'](_0x144581,_0x147969);}for(const _0x528ac7 of _0x2baf0d){_0x528ac7['next']&&_0x13f241(_0x528ac7[_0x5e6a17(0x20f)],{'stepName':_0x528ac7[_0x5e6a17(0x1b2)],'description':_0x5e6a17(0x208)+_0x528ac7[_0x5e6a17(0x1b2)]+'\x27'});if(_0x528ac7[_0x5e6a17(0x189)]==='decision_point'&&_0x528ac7[_0x5e6a17(0x1ed)]?.[_0x5e6a17(0x1d5)])for(const _0x23eaa3 of _0x528ac7[_0x5e6a17(0x1ed)]['branches']){_0x23eaa3[_0x5e6a17(0x20f)]&&_0x13f241(_0x23eaa3[_0x5e6a17(0x20f)],{'stepName':_0x528ac7['name'],'description':'branch\x20\x27'+_0x23eaa3[_0x5e6a17(0x1b2)]+'\x27\x20of\x20\x27'+_0x528ac7['name']+'\x27'});}if(_0x528ac7[_0x5e6a17(0x189)]===_0x5e6a17(0x17d)&&_0x528ac7[_0x5e6a17(0x1ed)]?.[_0x5e6a17(0x191)])for(const _0x5e1796 of _0x528ac7['with'][_0x5e6a17(0x191)]){_0x5e1796[_0x5e6a17(0x20f)]&&_0x13f241(_0x5e1796[_0x5e6a17(0x20f)],{'stepName':_0x528ac7[_0x5e6a17(0x1b2)],'description':_0x5e6a17(0x1ab)+_0x5e1796[_0x5e6a17(0x1b2)]+'\x27\x20of\x20\x27'+_0x528ac7[_0x5e6a17(0x1b2)]+'\x27'});}_0x528ac7[_0x5e6a17(0x189)]===_0x5e6a17(0x1df)&&_0x528ac7['with']?.[_0x5e6a17(0x19f)]&&(_0x528ac7['with'][_0x5e6a17(0x19f)][_0x5e6a17(0x20f)]&&_0x13f241(_0x528ac7['with'][_0x5e6a17(0x19f)][_0x5e6a17(0x20f)],{'stepName':_0x528ac7['name'],'description':_0x5e6a17(0x17a)+_0x528ac7[_0x5e6a17(0x1b2)]+'\x27'}),_0x528ac7[_0x5e6a17(0x1ed)][_0x5e6a17(0x19f)]['timeout']?.[_0x5e6a17(0x20f)]&&_0x13f241(_0x528ac7['with']['condition'][_0x5e6a17(0x21e)][_0x5e6a17(0x20f)],{'stepName':_0x528ac7[_0x5e6a17(0x1b2)],'description':_0x5e6a17(0x1ee)+_0x528ac7[_0x5e6a17(0x1b2)]+'\x27'}));}return _0x9df35f;}function validateFlowControl(_0x4f88d8,_0x52e15c,_0x153f29){const _0xaf6b35=a130_0x420c,_0x54e35a=[],_0x452cdf=_0xaf6b35(0x210)+_0x52e15c+']',_0x37cf18=_0x4f88d8[_0xaf6b35(0x211)]||[];if(_0x37cf18[_0xaf6b35(0x1b3)]===0x0)return _0x54e35a;const _0x24adb3=new Map();for(const _0x4b6d63 of _0x37cf18){_0x4b6d63[_0xaf6b35(0x1b2)]&&_0x24adb3[_0xaf6b35(0x17b)](_0x4b6d63[_0xaf6b35(0x1b2)],_0x4b6d63);}const _0x1895e4=buildConvergenceMap(_0x37cf18),_0x5caac2=_0x37cf18[_0xaf6b35(0x1bc)](_0x3f8b92=>_0x3f8b92['type']===_0xaf6b35(0x176));!_0x5caac2&&_0x54e35a[_0xaf6b35(0x188)](createIssue(_0xaf6b35(0x1b7),_0x452cdf+_0xaf6b35(0x1db),_0xaf6b35(0x17e),_0xaf6b35(0x21c)+_0x4f88d8[_0xaf6b35(0x1b2)]+_0xaf6b35(0x19e),_0x153f29));for(const [_0x4a6c9a,_0x211c45]of _0x1895e4){const _0x73b57b=_0x24adb3[_0xaf6b35(0x1e7)](_0x4a6c9a);if(!_0x73b57b)continue;if(_0x211c45['length']>0x1&&_0x73b57b['type']!==_0xaf6b35(0x202)){const _0x1e90b8=_0x211c45[_0xaf6b35(0x1da)](_0x54c740=>_0x54c740[_0xaf6b35(0x1d7)])[_0xaf6b35(0x18c)](',\x20');_0x54e35a[_0xaf6b35(0x188)](createIssue(_0xaf6b35(0x1b7),_0x452cdf+_0xaf6b35(0x1db),'CONVERGENCE_WITHOUT_MERGE',_0xaf6b35(0x171)+_0x4a6c9a+'\x27\x20(from:\x20'+_0x1e90b8+_0xaf6b35(0x198),_0x153f29));}_0x211c45[_0xaf6b35(0x1b3)]===0x1&&_0x73b57b[_0xaf6b35(0x189)]===_0xaf6b35(0x202)&&_0x54e35a[_0xaf6b35(0x188)](createIssue(_0xaf6b35(0x21f),_0x452cdf+_0xaf6b35(0x1db),_0xaf6b35(0x1f3),'Merge\x20step\x20\x27'+_0x4a6c9a+_0xaf6b35(0x1f6)+_0x211c45[0x0][_0xaf6b35(0x1d7)]+_0xaf6b35(0x1ff),_0x153f29));}for(const _0x526b30 of _0x37cf18){if(_0x526b30[_0xaf6b35(0x189)]===_0xaf6b35(0x202)&&_0x526b30['next']){const _0x3659d3=_0x24adb3[_0xaf6b35(0x1e7)](_0x526b30[_0xaf6b35(0x20f)]);_0x3659d3?.['type']===_0xaf6b35(0x202)&&_0x54e35a[_0xaf6b35(0x188)](createIssue(_0xaf6b35(0x1b7),_0x452cdf+_0xaf6b35(0x1db),_0xaf6b35(0x1c9),_0xaf6b35(0x1a9)+_0x526b30['name']+'\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27'+_0x526b30['next']+_0xaf6b35(0x1f1),_0x153f29));}}return _0x54e35a;}function validateCriteria(_0xf43523,_0x4c6270,_0x4ec971){const _0x336c34=a130_0x420c,_0x671006=[];return _0xf43523[_0x336c34(0x1f8)]&&(_0x4ec971[_0x336c34(0x1f7)]?.[_0x336c34(0x1ba)](_0xf43523[_0x336c34(0x1f8)]),!_0xf43523[_0x336c34(0x1f8)][_0x336c34(0x1d8)](_0x336c34(0x1d4))&&(_0x4ec971[_0x336c34(0x201)]&&!_0x4ec971['embeddedSegments'][_0x336c34(0x205)](_0xf43523[_0x336c34(0x1f8)])&&_0x671006[_0x336c34(0x188)](createIssue('error',_0x4c6270+_0x336c34(0x1c0),'MISSING_SEGMENT_REFERENCE','Criteria\x20references\x20undefined\x20segment\x20\x27'+_0xf43523[_0x336c34(0x1f8)]+'\x27',_0x4ec971)))),_0x671006;}function validateEmbeddedSegment(_0x38fa0c,_0x3e9c68,_0xe2096a){const _0x18642c=a130_0x420c,_0x2229bd=[];return _0x38fa0c[_0x18642c(0x209)]&&_0x2229bd[_0x18642c(0x188)](...validateRuleDef(_0x38fa0c['rule'],_0x3e9c68+_0x18642c(0x194),_0xe2096a)),_0x2229bd;}function validateStage(_0x7ce415,_0x54852f,_0xce459a,_0x396cbd){const _0x4ce470=a130_0x420c,_0x4ab71c=[],_0x32736d='stages['+_0x54852f+']',_0x49a136=new Map(),_0x25cefc=new Map();if(_0x7ce415[_0x4ce470(0x211)]){for(let _0x489bf3=0x0;_0x489bf3<_0x7ce415['steps'][_0x4ce470(0x1b3)];_0x489bf3++){const _0x3978f6=_0x7ce415[_0x4ce470(0x211)][_0x489bf3];_0x3978f6[_0x4ce470(0x1b2)]&&_0x49a136['set'](_0x3978f6[_0x4ce470(0x1b2)],_0x3978f6);}for(let _0x5a219f=0x0;_0x5a219f<_0x7ce415['steps'][_0x4ce470(0x1b3)];_0x5a219f++){const _0x2f98d4=_0x7ce415['steps'][_0x5a219f],_0x1b8b2d=_0x32736d+_0x4ce470(0x1d9)+_0x5a219f+']';if(_0x2f98d4['name']){if(_0x25cefc[_0x4ce470(0x205)](_0x2f98d4['name'])){const _0x2ce45b=_0x25cefc['get'](_0x2f98d4['name']);_0x4ab71c[_0x4ce470(0x188)](createIssue('error',_0x1b8b2d+_0x4ce470(0x19a),_0x4ce470(0x1fb),'Duplicate\x20step\x20name\x20\x27'+_0x2f98d4[_0x4ce470(0x1b2)]+_0x4ce470(0x1e3)+_0x2ce45b+'])',_0x396cbd));}else _0x25cefc[_0x4ce470(0x17b)](_0x2f98d4[_0x4ce470(0x1b2)],_0x5a219f);}_0x4ab71c[_0x4ce470(0x188)](...validateStep(_0x2f98d4,_0x1b8b2d,_0x396cbd,_0x49a136));}}_0x7ce415['entry_criteria']&&_0x4ab71c[_0x4ce470(0x188)](...validateCriteria(_0x7ce415['entry_criteria'],_0x32736d+_0x4ce470(0x1d1),_0x396cbd));if(_0x7ce415[_0x4ce470(0x1c6)])for(let _0x1e5b6c=0x0;_0x1e5b6c<_0x7ce415[_0x4ce470(0x1c6)]['length'];_0x1e5b6c++){_0x4ab71c['push'](...validateCriteria(_0x7ce415[_0x4ce470(0x1c6)][_0x1e5b6c],_0x32736d+_0x4ce470(0x1a6)+_0x1e5b6c+']',_0x396cbd));}return _0x7ce415['milestone']&&_0x4ab71c[_0x4ce470(0x188)](...validateCriteria(_0x7ce415['milestone'],_0x32736d+_0x4ce470(0x1ea),_0x396cbd)),_0x4ab71c['push'](...validateStageStructure(_0x7ce415,_0x54852f,_0xce459a,_0x396cbd)),_0x4ab71c[_0x4ce470(0x188)](...validateFlowControl(_0x7ce415,_0x54852f,_0x396cbd)),_0x4ab71c;}function validateStagesForVersion(_0x167b9e,_0x1eeecd,_0x441bd6,_0x492b27,_0x46634c,_0x598848,_0xd5677){const _0x283b98=a130_0x420c;if(_0x167b9e[_0x283b98(0x1b3)]===0x0){_0x46634c[_0x283b98(0x188)]({'level':_0x283b98(0x1b7),'path':_0x492b27+_0x283b98(0x206),'code':_0x283b98(0x1ca),'message':_0x283b98(0x1c1),'location':getLocationFromPath(_0x441bd6[_0x283b98(0x1cb)],_0x441bd6['source'],[_0x283b98(0x206)])});return;}const _0x5b8ff8=new Set();for(const _0x34f40d of _0x167b9e){if(_0x34f40d[_0x283b98(0x211)])for(const _0x15cb43 of _0x34f40d[_0x283b98(0x211)]){_0x15cb43[_0x283b98(0x1b2)]&&_0x5b8ff8['add'](_0x15cb43[_0x283b98(0x1b2)]);}}const _0xbb4eaa={..._0x441bd6,'stepNames':_0x5b8ff8},_0x27fe27=validateVersionStructure(_0x167b9e,_0xbb4eaa);for(const _0x2f8f3c of _0x27fe27){const _0x2ecbad=_0x492b27?{..._0x2f8f3c,'path':''+_0x492b27+_0x2f8f3c[_0x283b98(0x1fe)]}:_0x2f8f3c;if(_0x2ecbad[_0x283b98(0x1f2)]==='error')_0x46634c[_0x283b98(0x188)](_0x2ecbad);else _0x598848[_0x283b98(0x188)](_0x2ecbad);}for(let _0x595ee8=0x0;_0x595ee8<_0x167b9e[_0x283b98(0x1b3)];_0x595ee8++){const _0x187d08=validateStage(_0x167b9e[_0x595ee8],_0x595ee8,_0x167b9e[_0x283b98(0x1b3)],_0xbb4eaa);for(const _0x52c410 of _0x187d08){const _0x457e44=_0x492b27?{..._0x52c410,'path':''+_0x492b27+_0x52c410['path']}:_0x52c410;if(_0x457e44[_0x283b98(0x1f2)]===_0x283b98(0x1b7))_0x46634c[_0x283b98(0x188)](_0x457e44);else _0x598848[_0x283b98(0x188)](_0x457e44);}}if(_0x1eeecd[_0x283b98(0x17f)]){const _0x17e669=_0xd5677?.['goalIsInherited']?'goal':_0x492b27+_0x283b98(0x17f),_0xd8de89=validateCriteria(_0x1eeecd[_0x283b98(0x17f)],_0x17e669,_0xbb4eaa);for(const _0x2907fb of _0xd8de89){if(_0x2907fb['level']==='error')_0x46634c[_0x283b98(0x188)](_0x2907fb);else _0x598848[_0x283b98(0x188)](_0x2907fb);}}}function extractVersionIndex(_0x138da3){const _0x291c12=_0x138da3['match'](/^journeys\[(\d+)\]\./);return _0x291c12?_0x291c12[0x1]:undefined;}function deduplicateAcrossVersions(_0x540476){const _0x27214f=a130_0x420c,_0x498d45=new Map();for(let _0x4a4705=0x0;_0x4a4705<_0x540476[_0x27214f(0x1b3)];_0x4a4705++){const _0x2288cc=_0x540476[_0x4a4705][_0x27214f(0x195)]+':'+_0x540476[_0x4a4705][_0x27214f(0x1aa)],_0x1f493b=extractVersionIndex(_0x540476[_0x4a4705][_0x27214f(0x1fe)]),_0x460614=_0x498d45[_0x27214f(0x1e7)](_0x2288cc);if(_0x460614){_0x460614[_0x27214f(0x1ad)][_0x27214f(0x188)](_0x4a4705);if(_0x1f493b)_0x460614[_0x27214f(0x1ec)]['add'](_0x1f493b);}else _0x498d45[_0x27214f(0x17b)](_0x2288cc,{'indices':[_0x4a4705],'versions':new Set(_0x1f493b?[_0x1f493b]:[])});}const _0x218173=new Set();for(const {indices:_0x5a4990,versions:_0x30bbeb}of _0x498d45['values']()){if(_0x30bbeb[_0x27214f(0x181)]<=0x1)continue;const _0xec830b=_0x540476[_0x5a4990[0x0]];_0xec830b['path']=_0xec830b[_0x27214f(0x1fe)][_0x27214f(0x220)](/^journeys\[\d+\]\./,''),_0xec830b['message']=_0xec830b[_0x27214f(0x1aa)]+_0x27214f(0x1b9)+_0x30bbeb[_0x27214f(0x181)]+'\x20versions)';for(let _0x210673=0x1;_0x210673<_0x5a4990['length'];_0x210673++){_0x218173[_0x27214f(0x1ba)](_0x5a4990[_0x210673]);}}const _0x470341=[..._0x218173][_0x27214f(0x186)]((_0x45bc6b,_0x17221b)=>_0x17221b-_0x45bc6b);for(const _0x1654e5 of _0x470341){_0x540476[_0x27214f(0x199)](_0x1654e5,0x1);}}function a130_0x420c(_0xbea8ee,_0x4df8aa){_0xbea8ee=_0xbea8ee-0x170;const _0x4d7d08=a130_0x4d7d();let _0x420c4b=_0x4d7d08[_0xbea8ee];return _0x420c4b;}export function validateJourneyDef(_0x1689ce,_0x552225={},_0x2993ce={}){const _0x55f279=a130_0x420c;if(_0x2993ce[_0x55f279(0x1c7)])return runJourneySemanticChecks(_0x1689ce,_0x552225);const _0x3a20f0=JourneyDefSchema[_0x55f279(0x1d6)](_0x1689ce);if(_0x3a20f0[_0x55f279(0x1e1)])return runJourneySemanticChecks(_0x3a20f0[_0x55f279(0x178)],_0x552225);return zodErrorsToJourneyValidationResult(_0x3a20f0[_0x55f279(0x1b7)],_0x552225);}function zodErrorsToJourneyValidationResult(_0x294bbe,_0x4f5286){const _0x3571ab=a130_0x420c,_0x1222d2=flattenZodIssues(_0x294bbe[_0x3571ab(0x1bd)]),_0x3dc496=_0x1222d2[_0x3571ab(0x1da)](_0x2824c9=>{const _0x2f66d1=_0x3571ab,_0x3c5b29=formatZodPath(_0x2824c9[_0x2f66d1(0x1fe)]),_0x3c0c72=mapJourneyZodIssueToCode(_0x2824c9,_0x3c5b29),_0x1c9502=getLocationFromPath(_0x4f5286[_0x2f66d1(0x1cb)],_0x4f5286[_0x2f66d1(0x1de)],_0x2824c9[_0x2f66d1(0x1fe)][_0x2f66d1(0x1da)](_0x1427fa=>typeof _0x1427fa===_0x2f66d1(0x218)?String(_0x1427fa):_0x1427fa));return{'level':_0x2f66d1(0x1b7),'path':_0x3c5b29,'code':_0x3c0c72,'message':_0x2824c9['message'],..._0x1c9502&&{'location':_0x1c9502}};});return{'valid':![],'errors':_0x3dc496,'warnings':[]};}function mapJourneyZodIssueToCode(_0xcd4208,_0x2b3bd9){const _0x580809=a130_0x420c;if(_0x2b3bd9===_0x580809(0x1b2))return'MISSING_NAME';if(_0x2b3bd9[_0x580809(0x19c)](_0x580809(0x1e4))&&_0x2b3bd9[_0x580809(0x1f5)]('steps'))return _0x580809(0x1fa);if(_0x2b3bd9===_0x580809(0x206)||_0x2b3bd9[_0x580809(0x19c)]('.stages'))return _0x580809(0x1ca);if(_0x2b3bd9===''&&_0xcd4208[_0x580809(0x1aa)][_0x580809(0x1f5)]('journeys,\x20stages,\x20or\x20versions'))return _0x580809(0x1ca);if(_0x2b3bd9[_0x580809(0x1f5)](_0x580809(0x18e)))return'ACTIVATION_SCHEMA_ERROR';return _0x580809(0x1fa);}function runJourneySemanticChecks(_0x1fd51b,_0x20ceab){const _0x4a387d=a130_0x420c,_0x12eeff=[],_0x1a0eda=[];(!_0x1fd51b[_0x4a387d(0x1b2)]||_0x1fd51b[_0x4a387d(0x1b2)][_0x4a387d(0x1a5)]()==='')&&_0x12eeff[_0x4a387d(0x188)]({'level':_0x4a387d(0x1b7),'path':_0x4a387d(0x1b2),'code':'MISSING_NAME','message':'Journey\x20name\x20is\x20required','location':getLocationFromPath(_0x20ceab['document'],_0x20ceab[_0x4a387d(0x1de)],[_0x4a387d(0x1b2)])});const _0x1516af=new Set();if(_0x1fd51b[_0x4a387d(0x21a)])for(const _0x57bf10 of Object[_0x4a387d(0x1b6)](_0x1fd51b[_0x4a387d(0x21a)])){_0x1516af[_0x4a387d(0x1ba)](_0x57bf10);}const _0x211418=new Set();if(_0x1fd51b['activations'])for(const _0x163268 of Object[_0x4a387d(0x1b6)](_0x1fd51b[_0x4a387d(0x1b0)])){_0x211418['add'](_0x163268);}const _0x4492c7=new Set(),_0x569e4b={..._0x20ceab,'embeddedSegments':_0x1516af,'referencedSegments':_0x4492c7,'activationKeys':_0x211418['size']>0x0?_0x211418:undefined};if(_0x1fd51b[_0x4a387d(0x21a)])for(const [_0x9c25fc,_0x5f001e]of Object['entries'](_0x1fd51b[_0x4a387d(0x21a)])){const _0x1d860d=validateEmbeddedSegment(_0x5f001e,'segments.'+_0x9c25fc,_0x569e4b);for(const _0x1cca74 of _0x1d860d){if(_0x1cca74[_0x4a387d(0x1f2)]===_0x4a387d(0x1b7))_0x12eeff[_0x4a387d(0x188)](_0x1cca74);else _0x1a0eda[_0x4a387d(0x188)](_0x1cca74);}}const _0x192958=!!_0x1fd51b[_0x4a387d(0x17f)],_0x2acd79=_0x1fd51b[_0x4a387d(0x19d)]?.[_0x4a387d(0x1fd)](_0x56e406=>!!_0x56e406[_0x4a387d(0x17f)])??![];!_0x192958&&!_0x2acd79&&_0x1a0eda[_0x4a387d(0x188)]({'level':'warning','path':_0x4a387d(0x17f),'code':_0x4a387d(0x219),'message':_0x4a387d(0x187),'location':getLocationFromPath(_0x20ceab[_0x4a387d(0x1cb)],_0x20ceab[_0x4a387d(0x1de)],['goal'])});const _0x52ee5e=_0x1fd51b[_0x4a387d(0x19d)]??_0x1fd51b[_0x4a387d(0x1ec)];if(_0x52ee5e&&_0x52ee5e['filter'](_0x4914e8=>_0x4914e8[_0x4a387d(0x179)]===!![])[_0x4a387d(0x1b3)]>0x1){const _0x2aaaf5=_0x1fd51b[_0x4a387d(0x19d)]?'journeys':'versions';_0x12eeff['push']({'level':_0x4a387d(0x1b7),'path':_0x2aaaf5,'code':_0x4a387d(0x18f),'message':'Journey\x20can\x20have\x20at\x20most\x20one\x20'+(_0x2aaaf5===_0x4a387d(0x19d)?_0x4a387d(0x197):_0x4a387d(0x177))+_0x4a387d(0x183),'location':getLocationFromPath(_0x20ceab['document'],_0x20ceab[_0x4a387d(0x1de)],[_0x2aaaf5])});}if(_0x1fd51b[_0x4a387d(0x19d)]&&_0x1fd51b[_0x4a387d(0x19d)][_0x4a387d(0x1b3)]>0x0)for(let _0x4a7297=0x0;_0x4a7297<_0x1fd51b['journeys'][_0x4a387d(0x1b3)];_0x4a7297++){const _0x5537a3=_0x1fd51b[_0x4a387d(0x19d)][_0x4a7297];if(_0x1fd51b[_0x4a387d(0x19d)][_0x4a387d(0x1b3)]>0x1&&_0x5537a3[_0x4a387d(0x185)]==='launched')continue;const _0x4ad9d3=_0x5537a3[_0x4a387d(0x206)]||[],_0x518224=_0x4a387d(0x18d)+_0x4a7297+'].',_0xd87256=!!_0x5537a3[_0x4a387d(0x17f)],_0x5dd843=_0xd87256?{..._0x1fd51b,'goal':_0x5537a3[_0x4a387d(0x17f)]}:_0x1fd51b;validateStagesForVersion(_0x4ad9d3,_0x5dd843,_0x569e4b,_0x518224,_0x12eeff,_0x1a0eda,{'goalIsInherited':!_0xd87256});}else{if(_0x1fd51b[_0x4a387d(0x1ec)]&&_0x1fd51b[_0x4a387d(0x1ec)][_0x4a387d(0x1b3)]>0x0)for(let _0xcf6c68=0x0;_0xcf6c68<_0x1fd51b[_0x4a387d(0x1ec)][_0x4a387d(0x1b3)];_0xcf6c68++){const _0x13ce4a=_0x1fd51b[_0x4a387d(0x1ec)][_0xcf6c68];if(_0x1fd51b[_0x4a387d(0x1ec)][_0x4a387d(0x1b3)]>0x1&&_0x13ce4a[_0x4a387d(0x185)]===_0x4a387d(0x1d3))continue;const _0x67f78b=_0x13ce4a[_0x4a387d(0x206)]||[],_0x564940=_0x4a387d(0x214)+_0xcf6c68+'].';validateStagesForVersion(_0x67f78b,_0x1fd51b,_0x569e4b,_0x564940,_0x12eeff,_0x1a0eda);}else{const _0x104150=_0x1fd51b[_0x4a387d(0x206)]||[];validateStagesForVersion(_0x104150,_0x1fd51b,_0x569e4b,'',_0x12eeff,_0x1a0eda);}}_0x1fd51b[_0x4a387d(0x19d)]&&_0x1fd51b[_0x4a387d(0x19d)][_0x4a387d(0x1b3)]>0x1&&(deduplicateAcrossVersions(_0x12eeff),deduplicateAcrossVersions(_0x1a0eda));for(const _0x7b4655 of _0x1516af){!_0x4492c7[_0x4a387d(0x205)](_0x7b4655)&&!_0x7b4655[_0x4a387d(0x1d8)](_0x4a387d(0x170))&&_0x1a0eda[_0x4a387d(0x188)]({'level':_0x4a387d(0x21f),'path':_0x4a387d(0x1fc)+_0x7b4655,'code':_0x4a387d(0x1ce),'message':_0x4a387d(0x1c4)+_0x7b4655+_0x4a387d(0x172),'location':getLocationFromPath(_0x20ceab[_0x4a387d(0x1cb)],_0x20ceab[_0x4a387d(0x1de)],[_0x4a387d(0x21a),_0x7b4655])});}return{'valid':_0x12eeff[_0x4a387d(0x1b3)]===0x0,'errors':_0x12eeff,'warnings':_0x1a0eda};}
|