@treasuredata/tdx 2026.3.20 → 2026.3.22

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.
Files changed (223) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.d.ts +1 -1
  4. package/dist/cli-categories.js +1 -1
  5. package/dist/cli-categories.js.map +1 -1
  6. package/dist/cli.d.ts.map +1 -1
  7. package/dist/cli.js +1 -1
  8. package/dist/cli.js.map +1 -1
  9. package/dist/commands/activations.js +1 -1
  10. package/dist/commands/agent-command.js +1 -1
  11. package/dist/commands/agent-test-command.js +1 -1
  12. package/dist/commands/api-command.js +1 -1
  13. package/dist/commands/auth-command.js +1 -1
  14. package/dist/commands/auth-login-command.js +1 -1
  15. package/dist/commands/chat-command.js +1 -1
  16. package/dist/commands/claude-command.js +1 -1
  17. package/dist/commands/claude-statusline-command.js +1 -1
  18. package/dist/commands/claude-usage-command.js +1 -1
  19. package/dist/commands/command.js +1 -1
  20. package/dist/commands/connection-command.js +1 -1
  21. package/dist/commands/databases.js +1 -1
  22. package/dist/commands/delivery-command.js +1 -1
  23. package/dist/commands/describe.js +1 -1
  24. package/dist/commands/engage-campaign-pull-command.js +1 -1
  25. package/dist/commands/engage-campaign-push-command.js +1 -1
  26. package/dist/commands/engage-campaign-validate-command.js +1 -1
  27. package/dist/commands/engage-command.js +1 -1
  28. package/dist/commands/engage-template-pull-command.js +1 -1
  29. package/dist/commands/engage-template-push-command.js +1 -1
  30. package/dist/commands/engage-template-validate-command.js +1 -1
  31. package/dist/commands/job-command.js +1 -1
  32. package/dist/commands/journey-command.js +1 -1
  33. package/dist/commands/journey-validate-command.js +1 -1
  34. package/dist/commands/llm-command.js +1 -1
  35. package/dist/commands/mcp-command.js +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/policy-command.d.ts +33 -0
  38. package/dist/commands/policy-command.d.ts.map +1 -0
  39. package/dist/commands/policy-command.js +1 -0
  40. package/dist/commands/policy-command.js.map +1 -0
  41. package/dist/commands/profile-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/schedule-command.js +1 -1
  45. package/dist/commands/segment-command.js +1 -1
  46. package/dist/commands/segment-create-command.js +1 -1
  47. package/dist/commands/segment-fields-command.js +1 -1
  48. package/dist/commands/segment-pull-command.js +1 -1
  49. package/dist/commands/segment-push-command.js +1 -1
  50. package/dist/commands/segment-update-command.js +1 -1
  51. package/dist/commands/segment-use-command.js +1 -1
  52. package/dist/commands/segment-validate-command.js +1 -1
  53. package/dist/commands/segments.js +1 -1
  54. package/dist/commands/show.js +1 -1
  55. package/dist/commands/status-command.js +1 -1
  56. package/dist/commands/tables.js +1 -1
  57. package/dist/commands/unset-command.js +1 -1
  58. package/dist/commands/upgrade-command.js +1 -1
  59. package/dist/commands/use-command.js +1 -1
  60. package/dist/commands/user-command.js +1 -1
  61. package/dist/commands/workflow-command.js +1 -1
  62. package/dist/core/auth.js +1 -1
  63. package/dist/core/command-output.js +1 -1
  64. package/dist/core/config.js +1 -1
  65. package/dist/core/connection-cache.js +1 -1
  66. package/dist/core/constants.js +1 -1
  67. package/dist/core/credential-cache.js +1 -1
  68. package/dist/core/global-context.js +1 -1
  69. package/dist/core/keychain.js +1 -1
  70. package/dist/core/oauth-keychain.js +1 -1
  71. package/dist/core/oauth.js +1 -1
  72. package/dist/core/profile.js +1 -1
  73. package/dist/core/project-config.js +1 -1
  74. package/dist/core/session.js +1 -1
  75. package/dist/core/user-cache.js +1 -1
  76. package/dist/core/version.js +1 -1
  77. package/dist/index.js +1 -1
  78. package/dist/mcp/server.js +1 -1
  79. package/dist/mcp/tools/index.js +1 -1
  80. package/dist/mcp/tools/tdx-run.js +1 -1
  81. package/dist/mcp/tools/tdx-search.js +1 -1
  82. package/dist/mcp/utils.js +1 -1
  83. package/dist/proxy/claude-usage-tracker.js +1 -1
  84. package/dist/proxy/passthrough-server.js +1 -1
  85. package/dist/proxy/sse-usage-parser.js +1 -1
  86. package/dist/sdk/agent/agent-config.js +1 -1
  87. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  88. package/dist/sdk/agent/agent-yaml.js +1 -1
  89. package/dist/sdk/agent/test/evaluator.js +1 -1
  90. package/dist/sdk/agent/test/executor.js +1 -1
  91. package/dist/sdk/agent/test/index.js +1 -1
  92. package/dist/sdk/agent/test/output.js +1 -1
  93. package/dist/sdk/agent/test/parser.js +1 -1
  94. package/dist/sdk/agent/tool-target-registry.js +1 -1
  95. package/dist/sdk/api.js +1 -1
  96. package/dist/sdk/client/cdp-api-client.js +1 -1
  97. package/dist/sdk/client/delivery-api-client.js +1 -1
  98. package/dist/sdk/client/endpoints.js +1 -1
  99. package/dist/sdk/client/engage-api-client.js +1 -1
  100. package/dist/sdk/client/http-client.js +1 -1
  101. package/dist/sdk/client/llm-api-client.js +1 -1
  102. package/dist/sdk/client/oauth-refresh.js +1 -1
  103. package/dist/sdk/client/rate-limiter.js +1 -1
  104. package/dist/sdk/client/td-api-client.js +1 -1
  105. package/dist/sdk/client/trino-api-client.js +1 -1
  106. package/dist/sdk/client/workflow-client.js +1 -1
  107. package/dist/sdk/connection-validator.js +1 -1
  108. package/dist/sdk/connection.js +1 -1
  109. package/dist/sdk/delivery.js +1 -1
  110. package/dist/sdk/engage/campaign-pull.js +1 -1
  111. package/dist/sdk/engage/campaign-push.js +1 -1
  112. package/dist/sdk/engage/campaign-validator.js +1 -1
  113. package/dist/sdk/engage/campaign-yaml.js +1 -1
  114. package/dist/sdk/engage/template-pull.js +1 -1
  115. package/dist/sdk/engage/template-push.js +1 -1
  116. package/dist/sdk/engage/template-validator.js +1 -1
  117. package/dist/sdk/engage/template-yaml.js +1 -1
  118. package/dist/sdk/engage/types/campaign-def.js +1 -1
  119. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  120. package/dist/sdk/engage/types/template-schema.js +1 -1
  121. package/dist/sdk/engage.js +1 -1
  122. package/dist/sdk/errors.js +1 -1
  123. package/dist/sdk/index.d.ts +7 -0
  124. package/dist/sdk/index.d.ts.map +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/index.js.map +1 -1
  127. package/dist/sdk/io/index.js +1 -1
  128. package/dist/sdk/io/node-filesystem.js +1 -1
  129. package/dist/sdk/job.js +1 -1
  130. package/dist/sdk/journey.js +1 -1
  131. package/dist/sdk/llm/chat-cache.js +1 -1
  132. package/dist/sdk/llm/index.js +1 -1
  133. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  134. package/dist/sdk/llm/model-factors.js +1 -1
  135. package/dist/sdk/personalization.js +1 -1
  136. package/dist/sdk/policy.d.ts +41 -0
  137. package/dist/sdk/policy.d.ts.map +1 -0
  138. package/dist/sdk/policy.js +1 -0
  139. package/dist/sdk/policy.js.map +1 -0
  140. package/dist/sdk/query/index.js +1 -1
  141. package/dist/sdk/query/sql-parser.js +1 -1
  142. package/dist/sdk/realtime.js +1 -1
  143. package/dist/sdk/schedule.js +1 -1
  144. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  145. package/dist/sdk/segment/fields-display.js +1 -1
  146. package/dist/sdk/segment/file-discovery.js +1 -1
  147. package/dist/sdk/segment/journey-utils.js +1 -1
  148. package/dist/sdk/segment/journey-validator.js +1 -1
  149. package/dist/sdk/segment/journey-yaml.js +1 -1
  150. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  151. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  152. package/dist/sdk/segment/pull-workflow.js +1 -1
  153. package/dist/sdk/segment/push-recovery.js +1 -1
  154. package/dist/sdk/segment/push-workflow.js +1 -1
  155. package/dist/sdk/segment/resolution-context.js +1 -1
  156. package/dist/sdk/segment/segment-path-parser.js +1 -1
  157. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  158. package/dist/sdk/segment/segment-validator.js +1 -1
  159. package/dist/sdk/segment/target-resolution.js +1 -1
  160. package/dist/sdk/segment/tdx-config.js +1 -1
  161. package/dist/sdk/segment/types/activation-schema.js +1 -1
  162. package/dist/sdk/segment/types/journey-def.js +1 -1
  163. package/dist/sdk/segment/types/journey-schema.js +1 -1
  164. package/dist/sdk/segment/types/segment-def.js +1 -1
  165. package/dist/sdk/segment/types/segment-schema.js +1 -1
  166. package/dist/sdk/segment/validate-files.js +1 -1
  167. package/dist/sdk/segment/yaml-validator.js +1 -1
  168. package/dist/sdk/segment.js +1 -1
  169. package/dist/sdk/types/index.d.ts +1 -0
  170. package/dist/sdk/types/index.d.ts.map +1 -1
  171. package/dist/sdk/types/index.js +1 -1
  172. package/dist/sdk/types/index.js.map +1 -1
  173. package/dist/sdk/types/policy.d.ts +58 -0
  174. package/dist/sdk/types/policy.d.ts.map +1 -0
  175. package/dist/sdk/types/policy.js +1 -0
  176. package/dist/sdk/types/policy.js.map +1 -0
  177. package/dist/sdk/types/progress.js +1 -1
  178. package/dist/sdk/user.js +1 -1
  179. package/dist/sdk/util/format-detector.js +1 -1
  180. package/dist/sdk/util/formatters.js +1 -1
  181. package/dist/sdk/util/index.js +1 -1
  182. package/dist/sdk/util/paginate.js +1 -1
  183. package/dist/sdk/util/tree-formatter.js +1 -1
  184. package/dist/sdk/workflow/archive-validation.js +1 -1
  185. package/dist/sdk/workflow/clone-workflow.js +1 -1
  186. package/dist/sdk/workflow/index.js +1 -1
  187. package/dist/sdk/workflow/pull-workflow.js +1 -1
  188. package/dist/sdk/workflow/push-workflow.js +1 -1
  189. package/dist/sdk/workflow/tdx-config.js +1 -1
  190. package/dist/sdk/workflow/workflow-utils.js +1 -1
  191. package/dist/test-utils/command-runner.js +1 -1
  192. package/dist/test-utils/factories.js +1 -1
  193. package/dist/test-utils/fixtures.js +1 -1
  194. package/dist/test-utils/http-mock.js +1 -1
  195. package/dist/test-utils/index.js +1 -1
  196. package/dist/utils/async.js +1 -1
  197. package/dist/utils/colors.js +1 -1
  198. package/dist/utils/diff.js +1 -1
  199. package/dist/utils/file-permissions.js +1 -1
  200. package/dist/utils/file-reader.js +1 -1
  201. package/dist/utils/github-releases.js +1 -1
  202. package/dist/utils/global-cache.js +1 -1
  203. package/dist/utils/json-loader.js +1 -1
  204. package/dist/utils/local-cache.js +1 -1
  205. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  206. package/dist/utils/logger/formatters/index.js +1 -1
  207. package/dist/utils/logger/handlers/console-handler.js +1 -1
  208. package/dist/utils/logger/handlers/file-handler.js +1 -1
  209. package/dist/utils/logger/handlers/index.js +1 -1
  210. package/dist/utils/logger/handlers/null-handler.js +1 -1
  211. package/dist/utils/logger/index.js +1 -1
  212. package/dist/utils/logger/logger.js +1 -1
  213. package/dist/utils/logger/types.js +1 -1
  214. package/dist/utils/option-validation.js +1 -1
  215. package/dist/utils/process.js +1 -1
  216. package/dist/utils/prompt.js +1 -1
  217. package/dist/utils/spinner.js +1 -1
  218. package/dist/utils/sse-parser.js +1 -1
  219. package/dist/utils/string-utils.js +1 -1
  220. package/dist/utils/table-ref-parser.js +1 -1
  221. package/dist/utils/tdx-logger.js +1 -1
  222. package/dist/utils/version-check.js +1 -1
  223. package/package.json +1 -1
@@ -1 +1 @@
1
- function a131_0x3930(){const _0x33abbf=['sort','Tip:\x20Names\x20shown\x20are\x20column\x20names\x20for\x20segment\x20YAML\x20(attribute/source).','varchar','228WGzEco','source','trim','Schema\x20query:\x0a','name','slice','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','attribute','matrixColumnName','tableName','error','size','localeCompare','783762TEteAH','entries','columns','parentTableName','set','behaviorName','parentColumn','dim','253902jBJhkA','displayName','Attributes','type','YES','5wqtYoM','null','push','behavior','length','Unknown','SELECT\x20*\x20FROM\x20(\x0a','bold','replace','default','matrixTableName','query','5300iXuDAM','fields','14rlhPsd','40hzQyYi','startsWith','column_type','56697YonvYy','\x20\x20\x20\x20','key','317069WfdezI','545444poyjqb','groupingName','map','504EGldWk','165466KENkuC','Behaviors','extra','execute','get'];a131_0x3930=function(){return _0x33abbf;};return a131_0x3930();}(function(_0x4a6ab7,_0x3dc41b){const _0x353edd=a131_0x40b5,_0x9a2dc1=_0x4a6ab7();while(!![]){try{const _0x3f05be=-parseInt(_0x353edd(0x162))/0x1+parseInt(_0x353edd(0x15b))/0x2*(parseInt(_0x353edd(0x15f))/0x3)+-parseInt(_0x353edd(0x163))/0x4+parseInt(_0x353edd(0x14d))/0x5*(parseInt(_0x353edd(0x17c))/0x6)+-parseInt(_0x353edd(0x167))/0x7*(-parseInt(_0x353edd(0x15c))/0x8)+parseInt(_0x353edd(0x166))/0x9*(-parseInt(_0x353edd(0x159))/0xa)+-parseInt(_0x353edd(0x184))/0xb*(-parseInt(_0x353edd(0x16f))/0xc);if(_0x3f05be===_0x3dc41b)break;else _0x9a2dc1['push'](_0x9a2dc1['shift']());}catch(_0x309ac2){_0x9a2dc1['push'](_0x9a2dc1['shift']());}}}(a131_0x3930,0x522ae));import a131_0x150d5f from'chalk';import{withProgressSpinner}from'../../utils/spinner.js';export function buildSchemaResult(_0x163918){const _0x25e8cc=a131_0x40b5,_0x96c7fb=_0x163918[_0x25e8cc(0x17e)][_0x25e8cc(0x165)](_0x6bc0d5=>({'column_name':_0x6bc0d5['name'],'column_type':_0x6bc0d5[_0x25e8cc(0x14b)],'null':_0x25e8cc(0x14c),'key':null,'default':null,'extra':null}));return{..._0x163918,'columns':[{'name':'column_name','type':_0x25e8cc(0x16e)},{'name':_0x25e8cc(0x15e),'type':_0x25e8cc(0x16e)},{'name':_0x25e8cc(0x14e),'type':_0x25e8cc(0x16e)},{'name':_0x25e8cc(0x161),'type':'varchar'},{'name':_0x25e8cc(0x156),'type':'varchar'},{'name':_0x25e8cc(0x169),'type':'varchar'}],'data':_0x96c7fb};}function a131_0x40b5(_0xc2c833,_0x4d1047){_0xc2c833=_0xc2c833-0x149;const _0x393066=a131_0x3930();let _0x40b579=_0x393066[_0xc2c833];return _0x40b579;}export async function executeSchemaQuery(_0x2f14f3,_0xb95172,_0x372942){const _0x519447=a131_0x40b5,_0x16d525=_0x2f14f3[_0x519447(0x171)]()[_0x519447(0x155)](/;+$/,''),_0x5e1b1d=_0x519447(0x153)+_0x16d525+_0x519447(0x175);_0x372942['verbose']&&console['error'](_0x519447(0x172)+_0x5e1b1d);const _0x11a4db=await withProgressSpinner('Fetching\x20schema...',async _0x25232d=>{const _0x31a8e5=_0x519447,_0x4c81dc=await _0xb95172[_0x31a8e5(0x158)][_0x31a8e5(0x16a)](_0x5e1b1d,{'catalog':'td','schema':'information_schema','onJobId':_0x1f9dfb=>{_0x25232d['setJobId'](_0x1f9dfb);}});return _0x4c81dc;},{'verbose':_0x372942['verbose']});return buildSchemaResult(_0x11a4db['data']);}function columnName(_0x25bcf2){const _0xa6a690=a131_0x40b5;return _0x25bcf2[_0xa6a690(0x177)]||_0x25bcf2[_0xa6a690(0x182)]||_0x25bcf2[_0xa6a690(0x173)];}function formatFieldLine(_0x4cdcee,_0x24f640,_0x5a3ec6){const _0x155fa3=a131_0x40b5,_0x1bd9c4=_0x4cdcee!==_0x24f640?'\x20'+a131_0x150d5f[_0x155fa3(0x183)]('('+_0x24f640+')'):'';return _0x155fa3(0x160)+_0x4cdcee+_0x1bd9c4+':\x20'+a131_0x150d5f['cyan'](_0x5a3ec6);}function sortByColumnName(_0x4c3d71){const _0xb28f9c=a131_0x40b5;return[..._0x4c3d71][_0xb28f9c(0x16c)]((_0x151a08,_0xb368d4)=>columnName(_0x151a08)['localeCompare'](columnName(_0xb368d4)));}export function displayFieldsHumanReadable(_0x2c28f1,_0x100178){const _0x5f1dbc=a131_0x40b5,_0x26bb6a=_0x2c28f1['filter'](_0x564483=>_0x564483[_0x5f1dbc(0x170)]===_0x5f1dbc(0x176)),_0x37b077=_0x2c28f1['filter'](_0x33ee7a=>_0x33ee7a[_0x5f1dbc(0x170)]===_0x5f1dbc(0x150)),_0x10104b=new Map();for(const _0x2c8350 of _0x26bb6a){const _0x58e369=_0x2c8350[_0x5f1dbc(0x164)]||_0x2c8350[_0x5f1dbc(0x17f)]||_0x5f1dbc(0x152),_0x2401f6=_0x10104b[_0x5f1dbc(0x16b)](_0x58e369);_0x2401f6?_0x2401f6[_0x5f1dbc(0x15a)][_0x5f1dbc(0x14f)](_0x2c8350):_0x10104b[_0x5f1dbc(0x180)](_0x58e369,{'displayName':_0x58e369,'tableName':_0x2c8350[_0x5f1dbc(0x17f)],'fields':[_0x2c8350]});}const _0x2d51bf=new Map();for(const _0x5cc84c of _0x37b077){const _0x459326=_0x5cc84c[_0x5f1dbc(0x181)]||_0x5f1dbc(0x152),_0x8ed21b=_0x2d51bf[_0x5f1dbc(0x16b)](_0x459326)||[];_0x8ed21b['push'](_0x5cc84c),_0x2d51bf[_0x5f1dbc(0x180)](_0x459326,_0x8ed21b);}console[_0x5f1dbc(0x179)]('\x0a'+a131_0x150d5f[_0x5f1dbc(0x154)](_0x100178));if(_0x10104b[_0x5f1dbc(0x17a)]>0x0){console['error']('\x0a'+a131_0x150d5f['dim'](_0x5f1dbc(0x14a)));const _0x1025b9=[..._0x10104b[_0x5f1dbc(0x17d)]()][_0x5f1dbc(0x16c)]((_0x56358b,_0x3f9a5f)=>_0x56358b[0x0]['localeCompare'](_0x3f9a5f[0x0]));for(const [,_0x5ecfc1]of _0x1025b9){const _0xadadb2=_0x5ecfc1[_0x5f1dbc(0x178)]&&_0x5ecfc1[_0x5f1dbc(0x178)]!==_0x5ecfc1[_0x5f1dbc(0x149)]?'\x20'+a131_0x150d5f['dim']('('+_0x5ecfc1[_0x5f1dbc(0x178)]+')'):'';console[_0x5f1dbc(0x179)]('\x20\x20'+a131_0x150d5f['bold'](_0x5ecfc1[_0x5f1dbc(0x149)])+_0xadadb2);for(const _0x5c0a7d of sortByColumnName(_0x5ecfc1[_0x5f1dbc(0x15a)])){console[_0x5f1dbc(0x179)](formatFieldLine(columnName(_0x5c0a7d),_0x5c0a7d[_0x5f1dbc(0x173)],_0x5c0a7d[_0x5f1dbc(0x14b)]));}}}if(_0x2d51bf[_0x5f1dbc(0x17a)]>0x0){console[_0x5f1dbc(0x179)]('\x0a'+a131_0x150d5f[_0x5f1dbc(0x183)](_0x5f1dbc(0x168)));const _0x31142a=[..._0x2d51bf[_0x5f1dbc(0x17d)]()]['sort']((_0x529c89,_0x4be360)=>_0x529c89[0x0][_0x5f1dbc(0x17b)](_0x4be360[0x0]));for(const [_0x466419,_0x242094]of _0x31142a){const _0x10c27c=_0x242094[0x0],_0x111bf4=_0x10c27c?.[_0x5f1dbc(0x157)];if(_0x111bf4){const _0x48bfef=_0x111bf4!==_0x466419?'\x20'+a131_0x150d5f[_0x5f1dbc(0x183)]('('+_0x466419+')'):'';console[_0x5f1dbc(0x179)]('\x20\x20'+a131_0x150d5f[_0x5f1dbc(0x154)](_0x111bf4)+_0x48bfef);}else{const _0x54778c=_0x10c27c?.['parentTableName']||'';console[_0x5f1dbc(0x179)]('\x20\x20'+a131_0x150d5f[_0x5f1dbc(0x154)](_0x466419)+(_0x54778c?'\x20'+a131_0x150d5f['dim']('('+_0x54778c+')'):''));}for(const _0x3fd68f of sortByColumnName(_0x242094)){const _0x286d9b=_0x3fd68f[_0x5f1dbc(0x173)][_0x5f1dbc(0x15d)](_0x466419+'.')?_0x3fd68f[_0x5f1dbc(0x173)][_0x5f1dbc(0x174)](_0x466419[_0x5f1dbc(0x151)]+0x1):_0x3fd68f['name'];console['error'](formatFieldLine(columnName(_0x3fd68f),_0x286d9b,_0x3fd68f[_0x5f1dbc(0x14b)]));}}}const _0x29373f=_0x2c28f1['some'](_0x168ffd=>_0x168ffd['matrixColumnName']||_0x168ffd[_0x5f1dbc(0x157)]);_0x29373f&&(console[_0x5f1dbc(0x179)]('\x0a'+a131_0x150d5f[_0x5f1dbc(0x183)](_0x5f1dbc(0x16d))),console['error'](a131_0x150d5f[_0x5f1dbc(0x183)]('\x20\x20\x20\x20\x20Display\x20names\x20in\x20()\x20are\x20for\x20console\x20reference\x20only.'))),console[_0x5f1dbc(0x179)]('');}
1
+ (function(_0x54b73d,_0xa4bc8f){const _0x5c0c64=a133_0x2358,_0x1ec143=_0x54b73d();while(!![]){try{const _0x1f36da=-parseInt(_0x5c0c64(0x142))/0x1*(-parseInt(_0x5c0c64(0x125))/0x2)+parseInt(_0x5c0c64(0x12f))/0x3+parseInt(_0x5c0c64(0x146))/0x4+-parseInt(_0x5c0c64(0x121))/0x5+parseInt(_0x5c0c64(0x149))/0x6*(-parseInt(_0x5c0c64(0x157))/0x7)+parseInt(_0x5c0c64(0x155))/0x8+parseInt(_0x5c0c64(0x14c))/0x9;if(_0x1f36da===_0xa4bc8f)break;else _0x1ec143['push'](_0x1ec143['shift']());}catch(_0x223391){_0x1ec143['push'](_0x1ec143['shift']());}}}(a133_0x57bd,0x84128));function a133_0x57bd(){const _0x56faa5=['localeCompare','push','5251509anEPoF','query','startsWith','dim','set','Fetching\x20schema...','sort','columns','\x0a)\x20AS\x20segment_query\x20LIMIT\x200','2219864CEpTrN','size','7YKBtUB','attribute','bold','4041930nMSZqb','matrixTableName','name','error','202nviOeg','\x20\x20\x20\x20','entries','\x20\x20\x20\x20\x20Display\x20names\x20in\x20()\x20are\x20for\x20console\x20reference\x20only.','behavior','length','get','key','parentColumn','parentTableName','974466WRjHMf','Schema\x20query:\x0a','tableName','displayName','trim','data','Tip:\x20Names\x20shown\x20are\x20column\x20names\x20for\x20segment\x20YAML\x20(attribute/source).','slice','information_schema','type','fields','behaviorName','SELECT\x20*\x20FROM\x20(\x0a','execute','column_type','source','Unknown','matrixColumnName','filter','53jdAJyG','cyan','Attributes','YES','2386104zTShAT','varchar','verbose','2629986IrIGUO'];a133_0x57bd=function(){return _0x56faa5;};return a133_0x57bd();}import a133_0x21b61c from'chalk';import{withProgressSpinner}from'../../utils/spinner.js';export function buildSchemaResult(_0x1fc80f){const _0x522f3d=a133_0x2358,_0x241644=_0x1fc80f[_0x522f3d(0x153)]['map'](_0x46b8b2=>({'column_name':_0x46b8b2[_0x522f3d(0x123)],'column_type':_0x46b8b2[_0x522f3d(0x138)],'null':_0x522f3d(0x145),'key':null,'default':null,'extra':null}));return{..._0x1fc80f,'columns':[{'name':'column_name','type':_0x522f3d(0x147)},{'name':_0x522f3d(0x13d),'type':'varchar'},{'name':'null','type':_0x522f3d(0x147)},{'name':_0x522f3d(0x12c),'type':_0x522f3d(0x147)},{'name':'default','type':_0x522f3d(0x147)},{'name':'extra','type':_0x522f3d(0x147)}],'data':_0x241644};}export async function executeSchemaQuery(_0x36023a,_0x157d67,_0x15b2c3){const _0x37cfef=a133_0x2358,_0x51d1a5=_0x36023a[_0x37cfef(0x133)]()['replace'](/;+$/,''),_0x180ced=_0x37cfef(0x13b)+_0x51d1a5+_0x37cfef(0x154);_0x15b2c3['verbose']&&console[_0x37cfef(0x124)](_0x37cfef(0x130)+_0x180ced);const _0x4b578b=await withProgressSpinner(_0x37cfef(0x151),async _0x3ec583=>{const _0x3d8966=_0x37cfef,_0x5673a8=await _0x157d67[_0x3d8966(0x14d)][_0x3d8966(0x13c)](_0x180ced,{'catalog':'td','schema':_0x3d8966(0x137),'onJobId':_0x38779a=>{_0x3ec583['setJobId'](_0x38779a);}});return _0x5673a8;},{'verbose':_0x15b2c3[_0x37cfef(0x148)]});return buildSchemaResult(_0x4b578b[_0x37cfef(0x134)]);}function columnName(_0x280387){const _0x56d46b=a133_0x2358;return _0x280387[_0x56d46b(0x140)]||_0x280387[_0x56d46b(0x12d)]||_0x280387[_0x56d46b(0x123)];}function formatFieldLine(_0x1cb341,_0x5ecda2,_0x375293){const _0x1436bf=a133_0x2358,_0x7fd8c6=_0x1cb341!==_0x5ecda2?'\x20'+a133_0x21b61c[_0x1436bf(0x14f)]('('+_0x5ecda2+')'):'';return _0x1436bf(0x126)+_0x1cb341+_0x7fd8c6+':\x20'+a133_0x21b61c[_0x1436bf(0x143)](_0x375293);}function sortByColumnName(_0x464b54){const _0x379e03=a133_0x2358;return[..._0x464b54][_0x379e03(0x152)]((_0x38b72c,_0x4f0030)=>columnName(_0x38b72c)[_0x379e03(0x14a)](columnName(_0x4f0030)));}function a133_0x2358(_0x17ff14,_0x1b4d37){_0x17ff14=_0x17ff14-0x121;const _0x57bd9d=a133_0x57bd();let _0x2358e1=_0x57bd9d[_0x17ff14];return _0x2358e1;}export function displayFieldsHumanReadable(_0x5230c3,_0x44ebe4){const _0xafc7d9=a133_0x2358,_0x57cac4=_0x5230c3['filter'](_0xfc5941=>_0xfc5941[_0xafc7d9(0x13e)]===_0xafc7d9(0x158)),_0x3a8598=_0x5230c3[_0xafc7d9(0x141)](_0x439354=>_0x439354[_0xafc7d9(0x13e)]===_0xafc7d9(0x129)),_0x1e2627=new Map();for(const _0x126b20 of _0x57cac4){const _0x2cce4c=_0x126b20['groupingName']||_0x126b20[_0xafc7d9(0x12e)]||_0xafc7d9(0x13f),_0x388361=_0x1e2627[_0xafc7d9(0x12b)](_0x2cce4c);_0x388361?_0x388361[_0xafc7d9(0x139)][_0xafc7d9(0x14b)](_0x126b20):_0x1e2627[_0xafc7d9(0x150)](_0x2cce4c,{'displayName':_0x2cce4c,'tableName':_0x126b20[_0xafc7d9(0x12e)],'fields':[_0x126b20]});}const _0x516667=new Map();for(const _0x561c91 of _0x3a8598){const _0x20ba8d=_0x561c91[_0xafc7d9(0x13a)]||_0xafc7d9(0x13f),_0x91dccd=_0x516667[_0xafc7d9(0x12b)](_0x20ba8d)||[];_0x91dccd[_0xafc7d9(0x14b)](_0x561c91),_0x516667[_0xafc7d9(0x150)](_0x20ba8d,_0x91dccd);}console['error']('\x0a'+a133_0x21b61c[_0xafc7d9(0x159)](_0x44ebe4));if(_0x1e2627[_0xafc7d9(0x156)]>0x0){console['error']('\x0a'+a133_0x21b61c['dim'](_0xafc7d9(0x144)));const _0x434f67=[..._0x1e2627[_0xafc7d9(0x127)]()][_0xafc7d9(0x152)]((_0x542ded,_0x3cfe25)=>_0x542ded[0x0][_0xafc7d9(0x14a)](_0x3cfe25[0x0]));for(const [,_0x10af5e]of _0x434f67){const _0x406937=_0x10af5e[_0xafc7d9(0x131)]&&_0x10af5e[_0xafc7d9(0x131)]!==_0x10af5e[_0xafc7d9(0x132)]?'\x20'+a133_0x21b61c[_0xafc7d9(0x14f)]('('+_0x10af5e[_0xafc7d9(0x131)]+')'):'';console[_0xafc7d9(0x124)]('\x20\x20'+a133_0x21b61c['bold'](_0x10af5e[_0xafc7d9(0x132)])+_0x406937);for(const _0x79004d of sortByColumnName(_0x10af5e['fields'])){console[_0xafc7d9(0x124)](formatFieldLine(columnName(_0x79004d),_0x79004d[_0xafc7d9(0x123)],_0x79004d[_0xafc7d9(0x138)]));}}}if(_0x516667[_0xafc7d9(0x156)]>0x0){console['error']('\x0a'+a133_0x21b61c['dim']('Behaviors'));const _0x4be0db=[..._0x516667[_0xafc7d9(0x127)]()][_0xafc7d9(0x152)]((_0x38c3b9,_0x1780ec)=>_0x38c3b9[0x0]['localeCompare'](_0x1780ec[0x0]));for(const [_0x68cf5e,_0x231ec4]of _0x4be0db){const _0x2c23a5=_0x231ec4[0x0],_0x2be17e=_0x2c23a5?.['matrixTableName'];if(_0x2be17e){const _0xd5c3ce=_0x2be17e!==_0x68cf5e?'\x20'+a133_0x21b61c[_0xafc7d9(0x14f)]('('+_0x68cf5e+')'):'';console['error']('\x20\x20'+a133_0x21b61c['bold'](_0x2be17e)+_0xd5c3ce);}else{const _0x125c1b=_0x2c23a5?.[_0xafc7d9(0x12e)]||'';console[_0xafc7d9(0x124)]('\x20\x20'+a133_0x21b61c[_0xafc7d9(0x159)](_0x68cf5e)+(_0x125c1b?'\x20'+a133_0x21b61c[_0xafc7d9(0x14f)]('('+_0x125c1b+')'):''));}for(const _0x451d96 of sortByColumnName(_0x231ec4)){const _0x220cd4=_0x451d96[_0xafc7d9(0x123)][_0xafc7d9(0x14e)](_0x68cf5e+'.')?_0x451d96[_0xafc7d9(0x123)][_0xafc7d9(0x136)](_0x68cf5e[_0xafc7d9(0x12a)]+0x1):_0x451d96['name'];console[_0xafc7d9(0x124)](formatFieldLine(columnName(_0x451d96),_0x220cd4,_0x451d96[_0xafc7d9(0x138)]));}}}const _0x1d0183=_0x5230c3['some'](_0x559984=>_0x559984['matrixColumnName']||_0x559984[_0xafc7d9(0x122)]);_0x1d0183&&(console['error']('\x0a'+a133_0x21b61c[_0xafc7d9(0x14f)](_0xafc7d9(0x135))),console[_0xafc7d9(0x124)](a133_0x21b61c[_0xafc7d9(0x14f)](_0xafc7d9(0x128)))),console[_0xafc7d9(0x124)]('');}
@@ -1 +1 @@
1
- (function(_0x4a4640,_0x3197f8){const _0x24f91d=a132_0x54d1,_0x3123b4=_0x4a4640();while(!![]){try{const _0x1fe2c0=parseInt(_0x24f91d(0xa1))/0x1*(-parseInt(_0x24f91d(0xb2))/0x2)+-parseInt(_0x24f91d(0xb4))/0x3*(-parseInt(_0x24f91d(0xae))/0x4)+-parseInt(_0x24f91d(0xa8))/0x5+parseInt(_0x24f91d(0xb1))/0x6+parseInt(_0x24f91d(0xb0))/0x7*(parseInt(_0x24f91d(0xa2))/0x8)+-parseInt(_0x24f91d(0xac))/0x9*(parseInt(_0x24f91d(0xab))/0xa)+parseInt(_0x24f91d(0xa6))/0xb*(parseInt(_0x24f91d(0xa7))/0xc);if(_0x1fe2c0===_0x3197f8)break;else _0x3123b4['push'](_0x3123b4['shift']());}catch(_0x2dac54){_0x3123b4['push'](_0x3123b4['shift']());}}}(a132_0xbbd5,0xd3902));import{readdirSync,statSync}from'fs';import a132_0x5c27dc from'path';function a132_0x54d1(_0xf1597f,_0x2f0e4e){_0xf1597f=_0xf1597f-0xa1;const _0xbbd56e=a132_0xbbd5();let _0x54d18f=_0xbbd56e[_0xf1597f];return _0x54d18f;}export function findYamlFiles(_0x321b8f){const _0x4ded4e=[];function _0x1d0504(_0x15a805){const _0x5ec4fa=a132_0x54d1,_0x5d0e19=readdirSync(_0x15a805,{'withFileTypes':!![]});for(const _0x372412 of _0x5d0e19){const _0x229f70=a132_0x5c27dc[_0x5ec4fa(0xb3)](_0x15a805,_0x372412[_0x5ec4fa(0xa9)]);if(_0x372412[_0x5ec4fa(0xb5)]())_0x1d0504(_0x229f70);else(_0x372412['name'][_0x5ec4fa(0xa5)](_0x5ec4fa(0xaf))||_0x372412['name'][_0x5ec4fa(0xa5)](_0x5ec4fa(0xad)))&&_0x4ded4e['push'](_0x229f70);}}return _0x1d0504(_0x321b8f),_0x4ded4e;}export function discoverYamlFiles(_0x58cba5){const _0x163a8b=findYamlFiles(_0x58cba5);return _0x163a8b['map'](_0x42f83c=>{const _0x4fa4f0=a132_0x54d1,_0x20df0a=a132_0x5c27dc[_0x4fa4f0(0xa3)](_0x58cba5,_0x42f83c),_0x3c6e5c=a132_0x5c27dc['dirname'](_0x20df0a);return{'absolutePath':_0x42f83c,'relativePath':_0x20df0a,'folderPath':_0x3c6e5c==='.'?'':_0x3c6e5c};});}function a132_0xbbd5(){const _0x286e77=['.yaml','69888QCHUUx','.yml','161qSqzvY','6351072RxpIbh','5030yeOgvY','join','246blsxLe','isDirectory','62hRnRyE','114056AvqByE','relative','toLowerCase','endsWith','11taoFnZ','222036mYoRpD','1564190CPtIBi','name','extname','15023000SsACeH','9TUQXjV'];a132_0xbbd5=function(){return _0x286e77;};return a132_0xbbd5();}export function isYamlFile(_0x330deb){const _0x11c04a=a132_0x54d1;try{const _0xe05af4=statSync(_0x330deb);if(!_0xe05af4['isFile']())return![];const _0x4afcb8=a132_0x5c27dc[_0x11c04a(0xaa)](_0x330deb)[_0x11c04a(0xa4)]();return _0x4afcb8===_0x11c04a(0xaf)||_0x4afcb8===_0x11c04a(0xad);}catch{return![];}}
1
+ function a134_0x1aff(_0x23e98e,_0x1f5037){_0x23e98e=_0x23e98e-0xea;const _0x3ec546=a134_0x3ec5();let _0x1aff21=_0x3ec546[_0x23e98e];return _0x1aff21;}(function(_0x104880,_0x57b4b3){const _0x49f450=a134_0x1aff,_0x11184d=_0x104880();while(!![]){try{const _0x1a9320=-parseInt(_0x49f450(0xeb))/0x1+-parseInt(_0x49f450(0xf7))/0x2*(parseInt(_0x49f450(0xf5))/0x3)+-parseInt(_0x49f450(0xed))/0x4*(parseInt(_0x49f450(0xfd))/0x5)+-parseInt(_0x49f450(0xec))/0x6*(parseInt(_0x49f450(0xf1))/0x7)+-parseInt(_0x49f450(0xf4))/0x8+-parseInt(_0x49f450(0xf3))/0x9*(parseInt(_0x49f450(0xef))/0xa)+parseInt(_0x49f450(0xf2))/0xb*(parseInt(_0x49f450(0xfb))/0xc);if(_0x1a9320===_0x57b4b3)break;else _0x11184d['push'](_0x11184d['shift']());}catch(_0x5b64a5){_0x11184d['push'](_0x11184d['shift']());}}}(a134_0x3ec5,0x5c29b));import{readdirSync,statSync}from'fs';import a134_0x417cf7 from'path';export function findYamlFiles(_0x4b27c5){const _0x3e8b05=[];function _0x2b89c4(_0x473a58){const _0x496567=a134_0x1aff,_0x1e6b04=readdirSync(_0x473a58,{'withFileTypes':!![]});for(const _0x248651 of _0x1e6b04){const _0x531f69=a134_0x417cf7['join'](_0x473a58,_0x248651[_0x496567(0xee)]);if(_0x248651['isDirectory']())_0x2b89c4(_0x531f69);else(_0x248651[_0x496567(0xee)][_0x496567(0xf9)]('.yml')||_0x248651[_0x496567(0xee)][_0x496567(0xf9)](_0x496567(0xf0)))&&_0x3e8b05[_0x496567(0xfc)](_0x531f69);}}return _0x2b89c4(_0x4b27c5),_0x3e8b05;}function a134_0x3ec5(){const _0x5b542d=['map','endsWith','extname','792ktRCif','push','425FgetPJ','isFile','.yml','172559zbNjtn','4369548TSCYXs','32692IkKNAK','name','138540BUBuuT','.yaml','7ZyBCiu','549197vKDdcJ','297YNYZJw','5552096XrfBss','512901WRAdCr','relative','2tbJVOv'];a134_0x3ec5=function(){return _0x5b542d;};return a134_0x3ec5();}export function discoverYamlFiles(_0x2bed13){const _0x1d9ed6=a134_0x1aff,_0x528667=findYamlFiles(_0x2bed13);return _0x528667[_0x1d9ed6(0xf8)](_0x39bc64=>{const _0x183c7a=_0x1d9ed6,_0x365d58=a134_0x417cf7[_0x183c7a(0xf6)](_0x2bed13,_0x39bc64),_0xf6c3f9=a134_0x417cf7['dirname'](_0x365d58);return{'absolutePath':_0x39bc64,'relativePath':_0x365d58,'folderPath':_0xf6c3f9==='.'?'':_0xf6c3f9};});}export function isYamlFile(_0x244428){const _0xbdf417=a134_0x1aff;try{const _0x166d04=statSync(_0x244428);if(!_0x166d04[_0xbdf417(0xfe)]())return![];const _0x5d9109=a134_0x417cf7[_0xbdf417(0xfa)](_0x244428)['toLowerCase']();return _0x5d9109===_0xbdf417(0xea)||_0x5d9109==='.yaml';}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x3b8e2b,_0x3eda9b){const _0x1d95bf=a133_0x2249,_0x4817bf=_0x3b8e2b();while(!![]){try{const _0x51f10f=parseInt(_0x1d95bf(0x1b4))/0x1+parseInt(_0x1d95bf(0x1a7))/0x2*(parseInt(_0x1d95bf(0x179))/0x3)+-parseInt(_0x1d95bf(0x1b6))/0x4+-parseInt(_0x1d95bf(0x18b))/0x5*(-parseInt(_0x1d95bf(0x199))/0x6)+-parseInt(_0x1d95bf(0x1a0))/0x7*(-parseInt(_0x1d95bf(0x1b2))/0x8)+-parseInt(_0x1d95bf(0x173))/0x9*(-parseInt(_0x1d95bf(0x1bf))/0xa)+-parseInt(_0x1d95bf(0x181))/0xb;if(_0x51f10f===_0x3eda9b)break;else _0x4817bf['push'](_0x4817bf['shift']());}catch(_0x21fe70){_0x4817bf['push'](_0x4817bf['shift']());}}}(a133_0x596f,0xc697f));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x2cf628){const _0x217bab=a133_0x2249;return _0x2cf628[_0x217bab(0x1b0)]()[_0x217bab(0x188)](/\s+/g,'_')[_0x217bab(0x188)](/[^a-z0-9_\p{L}\p{N}]/gu,'')['replace'](/_+/g,'_')['replace'](/^_|_$/g,'');}export function generateJourneyLocalName(_0x341458){const _0x54d166=a133_0x2249,_0x4976d4=_0x341458[_0x54d166(0x19d)](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x4976d4){const _0x5ed384=_0x4976d4[0x1]['toLowerCase'](),_0x54413c=_0x4976d4[0x2],_0x216cec=_0x54413c[_0x54d166(0x188)](/-/g,'')['slice'](0x0,0x4)[_0x54d166(0x1b0)]();return _0x5ed384+'_'+_0x216cec;}const _0x1c4d0a=_0x341458[_0x54d166(0x19d)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x1c4d0a){const _0x11df0d=_0x1c4d0a[0x1],_0x596489=_0x1c4d0a[0x2][_0x54d166(0x1b0)](),_0x4c6aec=_0x11df0d['replace'](/-/g,'')[_0x54d166(0x17d)](0x0,0x4)[_0x54d166(0x1b0)]();return _0x596489+'_'+_0x4c6aec;}return undefined;}function stableStringify(_0x3a0bec){const _0x3240cb=a133_0x2249;if(Array[_0x3240cb(0x193)](_0x3a0bec))return'['+_0x3a0bec[_0x3240cb(0x174)](_0x4f6d1d=>stableStringify(_0x4f6d1d))[_0x3240cb(0x1ae)](',')+']';if(_0x3a0bec&&typeof _0x3a0bec===_0x3240cb(0x1b3)){const _0x2a27d0=_0x3a0bec,_0x268501=Object['keys'](_0x2a27d0)[_0x3240cb(0x176)](),_0x591405=_0x268501[_0x3240cb(0x174)](_0x354299=>'\x22'+_0x354299+'\x22:'+stableStringify(_0x2a27d0[_0x354299]));return'{'+_0x591405['join'](',')+'}';}const _0x2f0026=JSON[_0x3240cb(0x1ab)](_0x3a0bec);return _0x2f0026===undefined?_0x3240cb(0x195):_0x2f0026;}export function consolidateActivationsByContent(_0x4b52ef){const _0x34d392=a133_0x2249,_0xa4008d={},_0x4334dc=new Map(),_0x5a1adb=new Map();for(const _0x487006 of _0x4b52ef){if(!_0x487006)continue;for(const [_0x698e01,_0x429ee1]of Object[_0x34d392(0x17c)](_0x487006)){const _0x162e9c={'name':_0x429ee1[_0x34d392(0x18d)],'connection':_0x429ee1[_0x34d392(0x1af)],..._0x429ee1[_0x34d392(0x175)]!==undefined&&{'all_columns':_0x429ee1[_0x34d392(0x175)]},..._0x429ee1['columns']!==undefined&&{'columns':_0x429ee1['columns']},..._0x429ee1[_0x34d392(0x190)]!==undefined&&{'behavior':_0x429ee1[_0x34d392(0x190)]},..._0x429ee1[_0x34d392(0x19f)]!==undefined&&{'schedule':_0x429ee1[_0x34d392(0x19f)]},..._0x429ee1[_0x34d392(0x198)]!==undefined&&{'notification':_0x429ee1[_0x34d392(0x198)]},..._0x429ee1['connector_config']!==undefined&&{'connector_config':_0x429ee1[_0x34d392(0x1a9)]},..._0x429ee1[_0x34d392(0x191)]!==undefined&&{'activation_template_id':_0x429ee1[_0x34d392(0x191)]}},_0x5e4a8a=stableStringify(_0x162e9c),_0x22b02e=_0x5a1adb[_0x34d392(0x1c0)](_0x5e4a8a);_0x22b02e?_0x4334dc[_0x34d392(0x1bd)](_0x698e01,_0x22b02e):(_0xa4008d[_0x698e01]=_0x429ee1,_0x4334dc[_0x34d392(0x1bd)](_0x698e01,_0x698e01),_0x5a1adb['set'](_0x5e4a8a,_0x698e01));}}return{'merged':_0xa4008d,'nameMapping':_0x4334dc};}function a133_0x596f(){const _0x150587=['version_number','null','with','trim','notification','1819128rnCSuU','item','bundle_name','endsWith','match','some','schedule','4270AgRjOO','segments','merged','rule','activation','exit_criteria','type','6058rkLiVs','.yml','connector_config','exclude','stringify','index','journeys','join','connection','toLowerCase','journeyBundleName','11920DkfXbr','object','1590909iDjVSt','keys','6177656aqSehd','journey','journeyStages','condition','launched','length','has','set','stages','54010eNBxBD','get','push','version','1440PtHiuL','map','all_columns','sort','conditions','branches','192JiWrie','activations','steps','entries','slice','versions','attributes','segment','26539964ZNGiCZ','goal','startsWith','entry_criteria','from','bundle_id','values','replace','decision_point','milestone','20jJowVZ','yaml','name','description','include','behavior','activation_template_id','string','isArray'];a133_0x596f=function(){return _0x150587;};return a133_0x596f();}export function updateActivationReferences(_0x1df528,_0x55c078){const _0x3b0bf2=a133_0x2249;if(!_0x1df528)return;for(const _0x8ed417 of _0x1df528){if(!_0x8ed417[_0x3b0bf2(0x17b)])continue;for(const _0x118f23 of _0x8ed417['steps']){if(_0x118f23[_0x3b0bf2(0x1a6)]==='activation'&&_0x118f23[_0x3b0bf2(0x196)]?.[_0x3b0bf2(0x1a4)]){const _0xa011d0=_0x55c078[_0x3b0bf2(0x1c0)](_0x118f23[_0x3b0bf2(0x196)][_0x3b0bf2(0x1a4)]);_0xa011d0&&_0xa011d0!==_0x118f23[_0x3b0bf2(0x196)][_0x3b0bf2(0x1a4)]&&(_0x118f23[_0x3b0bf2(0x196)][_0x3b0bf2(0x1a4)]=_0xa011d0);}}}}function a133_0x2249(_0x513d06,_0x5b5d67){_0x513d06=_0x513d06-0x172;const _0x596f63=a133_0x596f();let _0x224982=_0x596f63[_0x513d06];return _0x224982;}export function consolidateSegmentsByContent(_0x3e2162,_0x549da6){const _0x4c7359=a133_0x2249,_0xc66a46={},_0x3ef6c5=new Map(),_0x450da3=new Map();for(const _0x36568b of _0x3e2162){if(!_0x36568b)continue;for(const [_0x20bb30,_0x2b4a50]of Object[_0x4c7359(0x17c)](_0x36568b)){if(!_0x2b4a50['rule']){_0xc66a46[_0x20bb30]=_0x2b4a50,_0x3ef6c5[_0x4c7359(0x1bd)](_0x20bb30,_0x20bb30);continue;}const _0xdb9abb=_0x2b4a50[_0x4c7359(0x18e)]&&_0x2b4a50[_0x4c7359(0x18e)][_0x4c7359(0x197)]()?_0x2b4a50[_0x4c7359(0x18e)]:undefined,_0x574e1a=JSON[_0x4c7359(0x1ab)]({'description':_0xdb9abb,'rule':deepSortObject(_0x2b4a50[_0x4c7359(0x1a3)])}),_0x42bfdd=_0x450da3[_0x4c7359(0x1c0)](_0x574e1a);if(_0x42bfdd){const _0x4351ca={..._0x2b4a50[_0x4c7359(0x18e)]!==undefined&&{'description':_0x2b4a50[_0x4c7359(0x18e)]},'rule':_0x2b4a50[_0x4c7359(0x1a3)]?deepSortObject(_0x2b4a50['rule']):_0x2b4a50['rule']};if(_0x20bb30<_0x42bfdd){_0xc66a46[_0x20bb30]=_0x4351ca,delete _0xc66a46[_0x42bfdd];for(const [_0x56cf08,_0x50fa00]of _0x3ef6c5[_0x4c7359(0x17c)]()){_0x50fa00===_0x42bfdd&&_0x3ef6c5[_0x4c7359(0x1bd)](_0x56cf08,_0x20bb30);}_0x3ef6c5[_0x4c7359(0x1bd)](_0x20bb30,_0x20bb30),_0x450da3[_0x4c7359(0x1bd)](_0x574e1a,_0x20bb30);}else _0xc66a46[_0x42bfdd]=_0x4351ca,_0x3ef6c5[_0x4c7359(0x1bd)](_0x20bb30,_0x42bfdd);}else{let _0x5a867b=_0x20bb30;if(_0x549da6){const _0x4e7eab=_0x549da6['get'](_0x574e1a);_0x4e7eab&&_0x4e7eab[_0x4c7359(0x1bb)]>0x0&&(_0x5a867b=_0x4e7eab[_0x4c7359(0x17d)]()[_0x4c7359(0x176)]()[0x0]);}const _0x55cb7c={..._0x2b4a50[_0x4c7359(0x18e)]!==undefined&&{'description':_0x2b4a50['description']},'rule':_0x2b4a50[_0x4c7359(0x1a3)]?deepSortObject(_0x2b4a50[_0x4c7359(0x1a3)]):_0x2b4a50[_0x4c7359(0x1a3)]};_0xc66a46[_0x5a867b]=_0x55cb7c,_0x3ef6c5['set'](_0x20bb30,_0x5a867b),_0x450da3[_0x4c7359(0x1bd)](_0x574e1a,_0x5a867b);}}}return{'merged':_0xc66a46,'nameMapping':_0x3ef6c5};}export function updateSegmentReferences(_0x405c7a,_0x3e6ba4){const _0x458377=a133_0x2249;if(!_0x405c7a)return;for(const _0x35e445 of _0x405c7a){if(_0x35e445[_0x458377(0x184)]?.[_0x458377(0x180)]){const _0x5aae1c=_0x3e6ba4[_0x458377(0x1c0)](_0x35e445[_0x458377(0x184)][_0x458377(0x180)]);_0x5aae1c&&(_0x35e445[_0x458377(0x184)][_0x458377(0x180)]=_0x5aae1c);}if(_0x35e445[_0x458377(0x1a5)])for(const _0x4ec5be of _0x35e445[_0x458377(0x1a5)]){if(_0x4ec5be['segment']){const _0x4794a1=_0x3e6ba4[_0x458377(0x1c0)](_0x4ec5be['segment']);_0x4794a1&&(_0x4ec5be[_0x458377(0x180)]=_0x4794a1);}}if(_0x35e445[_0x458377(0x18a)]?.[_0x458377(0x180)]){const _0x5aa88f=_0x3e6ba4[_0x458377(0x1c0)](_0x35e445[_0x458377(0x18a)][_0x458377(0x180)]);_0x5aa88f&&(_0x35e445[_0x458377(0x18a)][_0x458377(0x180)]=_0x5aa88f);}if(_0x35e445[_0x458377(0x17b)])for(const _0x24b538 of _0x35e445['steps']){if(_0x24b538['type']===_0x458377(0x189)&&_0x24b538['with']?.[_0x458377(0x178)])for(const _0x21d441 of _0x24b538[_0x458377(0x196)][_0x458377(0x178)]){if(_0x21d441[_0x458377(0x180)]){const _0x3cb653=_0x3e6ba4[_0x458377(0x1c0)](_0x21d441[_0x458377(0x180)]);_0x3cb653&&(_0x21d441['segment']=_0x3cb653);}}if(_0x24b538['type']==='wait'&&_0x24b538['with']?.['condition']?.[_0x458377(0x180)]){const _0x30e6ee=_0x3e6ba4[_0x458377(0x1c0)](_0x24b538[_0x458377(0x196)][_0x458377(0x1b9)][_0x458377(0x180)]);_0x30e6ee&&(_0x24b538[_0x458377(0x196)][_0x458377(0x1b9)][_0x458377(0x180)]=_0x30e6ee);}}}}export function updateSegmentRefsInSegments(_0xf9536b,_0x1b10fd){const _0x4fdb1b=a133_0x2249;for(const _0x5a745f of Object[_0x4fdb1b(0x187)](_0xf9536b)){_0x5a745f[_0x4fdb1b(0x1a3)]&&updateSegmentRefsInRule(_0x5a745f[_0x4fdb1b(0x1a3)],_0x1b10fd);}}function updateSegmentRefsInRule(_0x31a3b2,_0x2cc2b2){const _0x8edb7b=a133_0x2249;if(_0x31a3b2===null||typeof _0x31a3b2!==_0x8edb7b(0x1b3))return;if(Array[_0x8edb7b(0x193)](_0x31a3b2)){for(const _0x59470b of _0x31a3b2){updateSegmentRefsInRule(_0x59470b,_0x2cc2b2);}return;}const _0x2b9b21=_0x31a3b2;if((_0x2b9b21['type']===_0x8edb7b(0x18f)||_0x2b9b21[_0x8edb7b(0x1a6)]===_0x8edb7b(0x1aa))&&typeof _0x2b9b21[_0x8edb7b(0x180)]===_0x8edb7b(0x192)){const _0x482744=_0x2cc2b2[_0x8edb7b(0x1c0)](_0x2b9b21['segment']);_0x482744&&(_0x2b9b21[_0x8edb7b(0x180)]=_0x482744);}if(_0x2b9b21[_0x8edb7b(0x177)]&&Array[_0x8edb7b(0x193)](_0x2b9b21[_0x8edb7b(0x177)]))for(const _0x571dd7 of _0x2b9b21[_0x8edb7b(0x177)]){updateSegmentRefsInRule(_0x571dd7,_0x2cc2b2);}}export function buildJourneysArray(_0x1a16ce,_0x22f723){const _0x47c378=a133_0x2249;return _0x1a16ce[_0x47c378(0x174)](_0x3d4631=>{const _0x1b7457=_0x47c378,_0xe790c8=_0x22f723?_0x3d4631['item']['id']===_0x22f723:_0x1a16ce[_0x1b7457(0x1bb)]===0x1,_0x3c59ab=_0x3d4631[_0x1b7457(0x18c)][_0x1b7457(0x1ad)]?.[0x0],_0x49e58b=_0x3c59ab?.['goal']||_0x3d4631[_0x1b7457(0x18c)]['goal'],_0x52d72d={'version':_0x3c59ab?.[_0x1b7457(0x172)]||_0x3d4631[_0x1b7457(0x18c)][_0x1b7457(0x172)]||_0x3d4631[_0x1b7457(0x19a)][_0x1b7457(0x18d)],'state':_0x3d4631[_0x1b7457(0x19a)]['state']===_0x1b7457(0x1ba)?_0x1b7457(0x1ba):'draft','stages':_0x3c59ab?.[_0x1b7457(0x1be)]||_0x3d4631[_0x1b7457(0x18c)][_0x1b7457(0x1be)]||[],'id':_0x3c59ab?.['id']||_0x3d4631[_0x1b7457(0x18c)]['id'],'version_number':_0x3c59ab?.['version_number']||_0x3d4631[_0x1b7457(0x18c)][_0x1b7457(0x194)]};return _0x49e58b&&(_0x52d72d['goal']=_0x49e58b),_0xe790c8&&(_0x52d72d['latest']=!![]),_0x52d72d;});}export function buildMergedJourneyDef(_0x2f0cb2,_0x261d3c,_0x549b18){const _0x3508a6=a133_0x2249,_0x54df52=_0x2f0cb2[0x0][_0x3508a6(0x18c)],_0x45bfad=buildJourneysArray(_0x2f0cb2,_0x549b18),{merged:_0x2bd48e,nameMapping:_0x8fe607}=consolidateSegmentsByContent(_0x2f0cb2['map'](_0x7f6300=>_0x7f6300[_0x3508a6(0x18c)]['segments']),_0x261d3c);updateSegmentRefsInSegments(_0x2bd48e,_0x8fe607);const _0x3708bb=Array[_0x3508a6(0x185)](_0x8fe607['entries']())[_0x3508a6(0x19e)](([_0x2ea07d,_0x2ce4ac])=>_0x2ea07d!==_0x2ce4ac&&_0x2ea07d[_0x3508a6(0x183)](_0x3508a6(0x184)));let _0x4e539a=_0x2bd48e,_0x572bfe=new Map();if(_0x3708bb){const _0x5baf4f=consolidateSegmentsByContent([_0x2bd48e],_0x261d3c);_0x4e539a=_0x5baf4f[_0x3508a6(0x1a2)],_0x572bfe=_0x5baf4f['nameMapping'];}const _0x1b0605=new Map(_0x8fe607);for(const [_0x136995,_0x284a1a]of _0x572bfe[_0x3508a6(0x17c)]()){_0x1b0605[_0x3508a6(0x1bd)](_0x136995,_0x284a1a);}for(const [_0xa0137d,_0x6a6fdc]of _0x1b0605[_0x3508a6(0x17c)]()){let _0x17b517=_0x6a6fdc,_0x50e31e=0x0;while(_0x1b0605[_0x3508a6(0x1bc)](_0x17b517)&&_0x1b0605[_0x3508a6(0x1c0)](_0x17b517)!==_0x17b517&&_0x50e31e<MAX_MAPPING_CHAIN_DEPTH){_0x17b517=_0x1b0605['get'](_0x17b517),_0x50e31e++;}_0x17b517!==_0x6a6fdc&&_0x1b0605[_0x3508a6(0x1bd)](_0xa0137d,_0x17b517);}for(const _0x19774b of _0x45bfad){updateSegmentReferences(_0x19774b[_0x3508a6(0x1be)],_0x1b0605);}const {merged:_0x58a653,nameMapping:_0x2a37ad}=consolidateActivationsByContent(_0x2f0cb2[_0x3508a6(0x174)](_0x45f9e0=>_0x45f9e0['yaml'][_0x3508a6(0x17a)]));for(const _0x5da78d of _0x45bfad){updateActivationReferences(_0x5da78d[_0x3508a6(0x1be)],_0x2a37ad);}let _0x3e63d8=_0x54df52[_0x3508a6(0x182)];if(_0x3e63d8?.['segment']){const _0x597f18=_0x1b0605[_0x3508a6(0x1c0)](_0x3e63d8[_0x3508a6(0x180)]);_0x597f18&&(_0x3e63d8={..._0x3e63d8,'segment':_0x597f18});}for(const _0x1f9304 of _0x45bfad){if(_0x1f9304[_0x3508a6(0x182)]?.[_0x3508a6(0x180)]){const _0x2dad5e=_0x1b0605['get'](_0x1f9304[_0x3508a6(0x182)][_0x3508a6(0x180)]);_0x2dad5e&&(_0x1f9304[_0x3508a6(0x182)]={..._0x1f9304[_0x3508a6(0x182)],'segment':_0x2dad5e});}}return _0x45bfad[_0x3508a6(0x19e)](_0xd57959=>_0xd57959[_0x3508a6(0x182)])&&(_0x3e63d8=undefined),{'type':_0x3508a6(0x1b7),'name':_0x54df52[_0x3508a6(0x18d)],'description':_0x54df52['description'],'goal':_0x3e63d8,'reentry':_0x54df52['reentry'],'segments':Object[_0x3508a6(0x1b5)](_0x4e539a)[_0x3508a6(0x1bb)]>0x0?_0x4e539a:undefined,'activations':Object[_0x3508a6(0x1b5)](_0x58a653)['length']>0x0?_0x58a653:undefined,'journeys':_0x45bfad,'bundle_id':_0x54df52[_0x3508a6(0x186)],'bundle_name':_0x54df52[_0x3508a6(0x19b)]};}export function createJumpTargetCache(){return new Map();}export async function resolveJumpTarget(_0x21ffa8,_0x13a73b,_0x482e55,_0x5e2002){const _0x4fdaa2=a133_0x2249,_0x1107cd=_0x21ffa8+':'+_0x13a73b,_0x359273=_0x482e55[_0x4fdaa2(0x1c0)](_0x1107cd);if(_0x359273)return _0x359273;const _0x533160=await _0x5e2002(_0x21ffa8),_0x37b593=_0x533160[_0x4fdaa2(0x17f)][_0x4fdaa2(0x1b1)]||_0x533160[_0x4fdaa2(0x17f)]['name'],_0x3d63ca=_0x533160[_0x4fdaa2(0x17f)][_0x4fdaa2(0x1b8)]['find'](_0x349c72=>String(_0x349c72['id'])===String(_0x13a73b)),_0x577242=_0x3d63ca?.[_0x4fdaa2(0x18d)]||_0x13a73b,_0x48e1ab={'journeyName':_0x37b593,'stageName':_0x577242};return _0x482e55['set'](_0x1107cd,_0x48e1ab),_0x48e1ab;}export function formatApiJourneyName(_0x2696ea,_0xef9da0){return _0xef9da0+'\x20('+_0x2696ea+')';}export function isLocalJourneyRef(_0x5ee3db){const _0x1f3e75=a133_0x2249;return _0x5ee3db[_0x1f3e75(0x19c)](_0x1f3e75(0x1a8))||_0x5ee3db['endsWith']('.yaml');}export function buildLocalRuleToNameMapping(_0x21912a){const _0x2884e9=a133_0x2249,_0x519ec9=new Map();if(!_0x21912a)return _0x519ec9;for(const [_0x10fcf8,_0x6b287b]of Object['entries'](_0x21912a)){if(_0x6b287b[_0x2884e9(0x1a3)]){const _0x5b950d=serializeRule(_0x6b287b[_0x2884e9(0x1a3)]),_0x21b67c=_0x519ec9['get'](_0x5b950d)||[];_0x21b67c[_0x2884e9(0x1c1)](_0x10fcf8),_0x519ec9[_0x2884e9(0x1bd)](_0x5b950d,_0x21b67c);}}return _0x519ec9;}export function buildLocalRuleToNameMappingFromJourney(_0x1cb0d8){const _0x668d4a=a133_0x2249,_0x31bad6=_0x1cb0d8[_0x668d4a(0x1a1)];if(!_0x31bad6)return new Map();const _0x4f9948=collectSegmentUsageCounts(_0x1cb0d8),_0x2dd784=new Map();let _0x3ee0f7=0x0;for(const [_0x4758aa,_0x4eba28]of Object['entries'](_0x31bad6)){if(!_0x4eba28[_0x668d4a(0x1a3)]){_0x3ee0f7++;continue;}const _0x3caf35=serializeRule(_0x4eba28['rule']),_0x174cee=_0x2dd784[_0x668d4a(0x1c0)](_0x3caf35)||[];_0x174cee[_0x668d4a(0x1c1)]({'name':_0x4758aa,'index':_0x3ee0f7}),_0x2dd784[_0x668d4a(0x1bd)](_0x3caf35,_0x174cee),_0x3ee0f7++;}const _0x5833d0=new Map();for(const [_0x4bac53,_0x2ae24e]of _0x2dd784){const _0x411db1=_0x2ae24e['slice']()[_0x668d4a(0x176)]((_0x32b4dc,_0x4b2c0a)=>{const _0x23fac2=_0x668d4a,_0x3fd9e2=_0x4f9948[_0x23fac2(0x1c0)](_0x32b4dc[_0x23fac2(0x18d)])||0x0,_0x123e0a=_0x4f9948[_0x23fac2(0x1c0)](_0x4b2c0a['name'])||0x0;if(_0x3fd9e2!==_0x123e0a)return _0x123e0a-_0x3fd9e2;return _0x32b4dc[_0x23fac2(0x1ac)]-_0x4b2c0a[_0x23fac2(0x1ac)];})[_0x668d4a(0x174)](_0x3ac891=>_0x3ac891[_0x668d4a(0x18d)]);_0x5833d0[_0x668d4a(0x1bd)](_0x4bac53,_0x411db1);}return _0x5833d0;}export function collectSegmentUsageCounts(_0x5af5a2){const _0x5cf0ab=a133_0x2249,_0x1e6fe2=new Map(),_0x5d93bf=_0x6012a3=>{const _0x4059c8=a133_0x2249;if(!_0x6012a3)return;_0x1e6fe2[_0x4059c8(0x1bd)](_0x6012a3,(_0x1e6fe2['get'](_0x6012a3)||0x0)+0x1);},_0x2a1017=_0x40016b=>{const _0x27b7db=a133_0x2249;for(const _0x3faf2d of _0x40016b){_0x5d93bf(_0x3faf2d[_0x27b7db(0x184)]?.[_0x27b7db(0x180)]);if(_0x3faf2d[_0x27b7db(0x1a5)])for(const _0x609604 of _0x3faf2d['exit_criteria']){_0x5d93bf(_0x609604['segment']);}_0x5d93bf(_0x3faf2d['milestone']?.[_0x27b7db(0x180)]);if(_0x3faf2d['steps'])for(const _0x3ed1cb of _0x3faf2d[_0x27b7db(0x17b)]){if(_0x3ed1cb[_0x27b7db(0x1a6)]===_0x27b7db(0x189))for(const _0x17ada7 of _0x3ed1cb[_0x27b7db(0x196)][_0x27b7db(0x178)]){_0x5d93bf(_0x17ada7['segment']);}else _0x3ed1cb['type']==='wait'&&_0x5d93bf(_0x3ed1cb[_0x27b7db(0x196)][_0x27b7db(0x1b9)]?.[_0x27b7db(0x180)]);}}};_0x5d93bf(_0x5af5a2[_0x5cf0ab(0x182)]?.[_0x5cf0ab(0x180)]);if(_0x5af5a2[_0x5cf0ab(0x1ad)])for(const _0x50bf65 of _0x5af5a2['journeys']){_0x5d93bf(_0x50bf65[_0x5cf0ab(0x182)]?.[_0x5cf0ab(0x180)]),_0x2a1017(_0x50bf65[_0x5cf0ab(0x1be)]);}_0x5af5a2[_0x5cf0ab(0x1be)]&&_0x2a1017(_0x5af5a2[_0x5cf0ab(0x1be)]);if(_0x5af5a2[_0x5cf0ab(0x17e)])for(const _0xd13b28 of _0x5af5a2[_0x5cf0ab(0x17e)]){_0x2a1017(_0xd13b28['stages']);}return _0x1e6fe2;}
1
+ (function(_0x287ec2,_0x4f29f5){const _0x5375c4=a135_0x2159,_0x713cd3=_0x287ec2();while(!![]){try{const _0x47e91a=parseInt(_0x5375c4(0x1ec))/0x1+-parseInt(_0x5375c4(0x1ba))/0x2*(-parseInt(_0x5375c4(0x1bf))/0x3)+-parseInt(_0x5375c4(0x1b0))/0x4+-parseInt(_0x5375c4(0x1dc))/0x5*(-parseInt(_0x5375c4(0x1e8))/0x6)+parseInt(_0x5375c4(0x1bb))/0x7*(-parseInt(_0x5375c4(0x1db))/0x8)+parseInt(_0x5375c4(0x1a3))/0x9*(parseInt(_0x5375c4(0x1d7))/0xa)+parseInt(_0x5375c4(0x1c4))/0xb*(-parseInt(_0x5375c4(0x1c8))/0xc);if(_0x47e91a===_0x4f29f5)break;else _0x713cd3['push'](_0x713cd3['shift']());}catch(_0x57c799){_0x713cd3['push'](_0x713cd3['shift']());}}}(a135_0x448b,0x3371e));import{serializeRule,deepSortObject}from'./child-segment-yaml.js';export const SEGMENT_KIND_JOURNEY=0x3;const MAX_MAPPING_CHAIN_DEPTH=0xa;export function sanitizeYamlKey(_0x11b867){const _0x2c2587=a135_0x2159;return _0x11b867['toLowerCase']()[_0x2c2587(0x1ce)](/\s+/g,'_')[_0x2c2587(0x1ce)](/[^a-z0-9_\p{L}\p{N}]/gu,'')[_0x2c2587(0x1ce)](/_+/g,'_')[_0x2c2587(0x1ce)](/^_|_$/g,'');}export function generateJourneyLocalName(_0x5baab7){const _0x12859f=a135_0x2159,_0x532cb8=_0x5baab7['match'](/^journey_([a-z_]+)_([0-9a-f-]+)$/i);if(_0x532cb8){const _0xc9bd1d=_0x532cb8[0x1][_0x12859f(0x1ea)](),_0xaa4333=_0x532cb8[0x2],_0x258b24=_0xaa4333['replace'](/-/g,'')['slice'](0x0,0x4)[_0x12859f(0x1ea)]();return _0xc9bd1d+'_'+_0x258b24;}const _0x4ba45e=_0x5baab7[_0x12859f(0x19e)](/^journey_\d+_stage_\d+_step_([0-9a-f-]+)_([a-z_]+)$/i);if(_0x4ba45e){const _0x22473f=_0x4ba45e[0x1],_0x2e21cb=_0x4ba45e[0x2][_0x12859f(0x1ea)](),_0x24afcb=_0x22473f[_0x12859f(0x1ce)](/-/g,'')[_0x12859f(0x1b8)](0x0,0x4)[_0x12859f(0x1ea)]();return _0x2e21cb+'_'+_0x24afcb;}return undefined;}function stableStringify(_0x112a7a){const _0x5d1b6e=a135_0x2159;if(Array[_0x5d1b6e(0x1e4)](_0x112a7a))return'['+_0x112a7a[_0x5d1b6e(0x1cc)](_0x2ed6c0=>stableStringify(_0x2ed6c0))[_0x5d1b6e(0x1a8)](',')+']';if(_0x112a7a&&typeof _0x112a7a==='object'){const _0x272abe=_0x112a7a,_0x5a9512=Object['keys'](_0x272abe)[_0x5d1b6e(0x1e7)](),_0x400b29=_0x5a9512['map'](_0x545707=>'\x22'+_0x545707+'\x22:'+stableStringify(_0x272abe[_0x545707]));return'{'+_0x400b29['join'](',')+'}';}const _0x26236b=JSON[_0x5d1b6e(0x1b3)](_0x112a7a);return _0x26236b===undefined?_0x5d1b6e(0x1c3):_0x26236b;}export function consolidateActivationsByContent(_0x880ad4){const _0x4aee44=a135_0x2159,_0x351e14={},_0x4b2793=new Map(),_0x342806=new Map();for(const _0x1710d2 of _0x880ad4){if(!_0x1710d2)continue;for(const [_0x48603c,_0x261af8]of Object['entries'](_0x1710d2)){const _0x536ece={'name':_0x261af8['name'],'connection':_0x261af8[_0x4aee44(0x1b4)],..._0x261af8[_0x4aee44(0x1d1)]!==undefined&&{'all_columns':_0x261af8['all_columns']},..._0x261af8['columns']!==undefined&&{'columns':_0x261af8[_0x4aee44(0x1e2)]},..._0x261af8[_0x4aee44(0x1aa)]!==undefined&&{'behavior':_0x261af8[_0x4aee44(0x1aa)]},..._0x261af8[_0x4aee44(0x1b2)]!==undefined&&{'schedule':_0x261af8['schedule']},..._0x261af8['notification']!==undefined&&{'notification':_0x261af8['notification']},..._0x261af8['connector_config']!==undefined&&{'connector_config':_0x261af8[_0x4aee44(0x1a0)]},..._0x261af8[_0x4aee44(0x1c6)]!==undefined&&{'activation_template_id':_0x261af8[_0x4aee44(0x1c6)]}},_0x2604d2=stableStringify(_0x536ece),_0x535821=_0x342806[_0x4aee44(0x1a1)](_0x2604d2);_0x535821?_0x4b2793['set'](_0x48603c,_0x535821):(_0x351e14[_0x48603c]=_0x261af8,_0x4b2793[_0x4aee44(0x1c5)](_0x48603c,_0x48603c),_0x342806[_0x4aee44(0x1c5)](_0x2604d2,_0x48603c));}}return{'merged':_0x351e14,'nameMapping':_0x4b2793};}export function updateActivationReferences(_0x34f5cf,_0x24d9bd){const _0x27f55d=a135_0x2159;if(!_0x34f5cf)return;for(const _0x23ab52 of _0x34f5cf){if(!_0x23ab52[_0x27f55d(0x199)])continue;for(const _0x213695 of _0x23ab52[_0x27f55d(0x199)]){if(_0x213695['type']===_0x27f55d(0x1b6)&&_0x213695[_0x27f55d(0x1da)]?.[_0x27f55d(0x1b6)]){const _0x242fdf=_0x24d9bd[_0x27f55d(0x1a1)](_0x213695[_0x27f55d(0x1da)]['activation']);_0x242fdf&&_0x242fdf!==_0x213695[_0x27f55d(0x1da)]['activation']&&(_0x213695[_0x27f55d(0x1da)][_0x27f55d(0x1b6)]=_0x242fdf);}}}}export function consolidateSegmentsByContent(_0x2539f1,_0x1706bc){const _0x21ebeb=a135_0x2159,_0x14458e={},_0x465b92=new Map(),_0x5d46fe=new Map();for(const _0x4c2b21 of _0x2539f1){if(!_0x4c2b21)continue;for(const [_0x156355,_0x313bf7]of Object[_0x21ebeb(0x1d2)](_0x4c2b21)){if(!_0x313bf7[_0x21ebeb(0x1e3)]){_0x14458e[_0x156355]=_0x313bf7,_0x465b92[_0x21ebeb(0x1c5)](_0x156355,_0x156355);continue;}const _0x373fda=_0x313bf7[_0x21ebeb(0x1be)]&&_0x313bf7[_0x21ebeb(0x1be)][_0x21ebeb(0x19f)]()?_0x313bf7[_0x21ebeb(0x1be)]:undefined,_0x18b2fc=JSON[_0x21ebeb(0x1b3)]({'description':_0x373fda,'rule':deepSortObject(_0x313bf7['rule'])}),_0x181503=_0x5d46fe['get'](_0x18b2fc);if(_0x181503){const _0x5a37c6={..._0x313bf7[_0x21ebeb(0x1be)]!==undefined&&{'description':_0x313bf7[_0x21ebeb(0x1be)]},'rule':_0x313bf7[_0x21ebeb(0x1e3)]?deepSortObject(_0x313bf7[_0x21ebeb(0x1e3)]):_0x313bf7[_0x21ebeb(0x1e3)]};if(_0x156355<_0x181503){_0x14458e[_0x156355]=_0x5a37c6,delete _0x14458e[_0x181503];for(const [_0x5f6c2a,_0x58c7cc]of _0x465b92[_0x21ebeb(0x1d2)]()){_0x58c7cc===_0x181503&&_0x465b92[_0x21ebeb(0x1c5)](_0x5f6c2a,_0x156355);}_0x465b92[_0x21ebeb(0x1c5)](_0x156355,_0x156355),_0x5d46fe[_0x21ebeb(0x1c5)](_0x18b2fc,_0x156355);}else _0x14458e[_0x181503]=_0x5a37c6,_0x465b92[_0x21ebeb(0x1c5)](_0x156355,_0x181503);}else{let _0x66cb08=_0x156355;if(_0x1706bc){const _0x5656b7=_0x1706bc[_0x21ebeb(0x1a1)](_0x18b2fc);_0x5656b7&&_0x5656b7[_0x21ebeb(0x1c7)]>0x0&&(_0x66cb08=_0x5656b7[_0x21ebeb(0x1b8)]()['sort']()[0x0]);}const _0xcf27e6={..._0x313bf7['description']!==undefined&&{'description':_0x313bf7[_0x21ebeb(0x1be)]},'rule':_0x313bf7[_0x21ebeb(0x1e3)]?deepSortObject(_0x313bf7[_0x21ebeb(0x1e3)]):_0x313bf7[_0x21ebeb(0x1e3)]};_0x14458e[_0x66cb08]=_0xcf27e6,_0x465b92[_0x21ebeb(0x1c5)](_0x156355,_0x66cb08),_0x5d46fe[_0x21ebeb(0x1c5)](_0x18b2fc,_0x66cb08);}}}return{'merged':_0x14458e,'nameMapping':_0x465b92};}export function updateSegmentReferences(_0x87aa68,_0x146a4d){const _0x350935=a135_0x2159;if(!_0x87aa68)return;for(const _0x1c9b17 of _0x87aa68){if(_0x1c9b17[_0x350935(0x1eb)]?.[_0x350935(0x19a)]){const _0x347968=_0x146a4d[_0x350935(0x1a1)](_0x1c9b17['entry_criteria'][_0x350935(0x19a)]);_0x347968&&(_0x1c9b17[_0x350935(0x1eb)][_0x350935(0x19a)]=_0x347968);}if(_0x1c9b17[_0x350935(0x1bd)])for(const _0x247226 of _0x1c9b17[_0x350935(0x1bd)]){if(_0x247226[_0x350935(0x19a)]){const _0x4e18b5=_0x146a4d[_0x350935(0x1a1)](_0x247226['segment']);_0x4e18b5&&(_0x247226['segment']=_0x4e18b5);}}if(_0x1c9b17[_0x350935(0x1e9)]?.[_0x350935(0x19a)]){const _0x764d5a=_0x146a4d[_0x350935(0x1a1)](_0x1c9b17['milestone'][_0x350935(0x19a)]);_0x764d5a&&(_0x1c9b17[_0x350935(0x1e9)][_0x350935(0x19a)]=_0x764d5a);}if(_0x1c9b17[_0x350935(0x199)])for(const _0x47294e of _0x1c9b17['steps']){if(_0x47294e['type']==='decision_point'&&_0x47294e[_0x350935(0x1da)]?.[_0x350935(0x1b7)])for(const _0x512b07 of _0x47294e[_0x350935(0x1da)][_0x350935(0x1b7)]){if(_0x512b07[_0x350935(0x19a)]){const _0x5c5166=_0x146a4d[_0x350935(0x1a1)](_0x512b07[_0x350935(0x19a)]);_0x5c5166&&(_0x512b07[_0x350935(0x19a)]=_0x5c5166);}}if(_0x47294e[_0x350935(0x1ad)]===_0x350935(0x1d4)&&_0x47294e[_0x350935(0x1da)]?.[_0x350935(0x1df)]?.[_0x350935(0x19a)]){const _0x4f8258=_0x146a4d[_0x350935(0x1a1)](_0x47294e['with'][_0x350935(0x1df)][_0x350935(0x19a)]);_0x4f8258&&(_0x47294e[_0x350935(0x1da)][_0x350935(0x1df)][_0x350935(0x19a)]=_0x4f8258);}}}}export function updateSegmentRefsInSegments(_0x508742,_0x2c7a0d){const _0x4558e3=a135_0x2159;for(const _0xb846b3 of Object[_0x4558e3(0x1a6)](_0x508742)){_0xb846b3[_0x4558e3(0x1e3)]&&updateSegmentRefsInRule(_0xb846b3[_0x4558e3(0x1e3)],_0x2c7a0d);}}function updateSegmentRefsInRule(_0x108c0a,_0x49e93e){const _0x526e7d=a135_0x2159;if(_0x108c0a===null||typeof _0x108c0a!==_0x526e7d(0x1ac))return;if(Array['isArray'](_0x108c0a)){for(const _0xe6c89b of _0x108c0a){updateSegmentRefsInRule(_0xe6c89b,_0x49e93e);}return;}const _0x6f9d2a=_0x108c0a;if((_0x6f9d2a['type']===_0x526e7d(0x1c2)||_0x6f9d2a[_0x526e7d(0x1ad)]===_0x526e7d(0x1e1))&&typeof _0x6f9d2a[_0x526e7d(0x19a)]===_0x526e7d(0x1c1)){const _0x380adc=_0x49e93e['get'](_0x6f9d2a[_0x526e7d(0x19a)]);_0x380adc&&(_0x6f9d2a[_0x526e7d(0x19a)]=_0x380adc);}if(_0x6f9d2a[_0x526e7d(0x1cb)]&&Array[_0x526e7d(0x1e4)](_0x6f9d2a[_0x526e7d(0x1cb)]))for(const _0x134fad of _0x6f9d2a[_0x526e7d(0x1cb)]){updateSegmentRefsInRule(_0x134fad,_0x49e93e);}}export function buildJourneysArray(_0x1cc177,_0x298750){const _0x3a399d=a135_0x2159;return _0x1cc177[_0x3a399d(0x1cc)](_0x127b77=>{const _0x147648=_0x3a399d,_0x16c014=_0x298750?_0x127b77[_0x147648(0x1a5)]['id']===_0x298750:_0x1cc177[_0x147648(0x1c7)]===0x1,_0x5a3def=_0x127b77[_0x147648(0x1dd)]['journeys']?.[0x0],_0x3f4d01=_0x5a3def?.[_0x147648(0x1d6)]||_0x127b77['yaml'][_0x147648(0x1d6)],_0x3481f5={'version':_0x5a3def?.[_0x147648(0x1e5)]||_0x127b77[_0x147648(0x1dd)][_0x147648(0x1e5)]||_0x127b77[_0x147648(0x1a5)][_0x147648(0x1b9)],'state':_0x127b77[_0x147648(0x1a5)][_0x147648(0x1bc)]===_0x147648(0x1ae)?_0x147648(0x1ae):'draft','stages':_0x5a3def?.[_0x147648(0x1ca)]||_0x127b77[_0x147648(0x1dd)]['stages']||[],'id':_0x5a3def?.['id']||_0x127b77[_0x147648(0x1dd)]['id'],'version_number':_0x5a3def?.[_0x147648(0x1a2)]||_0x127b77[_0x147648(0x1dd)][_0x147648(0x1a2)]};return _0x3f4d01&&(_0x3481f5[_0x147648(0x1d6)]=_0x3f4d01),_0x16c014&&(_0x3481f5[_0x147648(0x1d9)]=!![]),_0x3481f5;});}export function buildMergedJourneyDef(_0xa176d,_0xbcb054,_0x506fc2){const _0x328a87=a135_0x2159,_0x4c8a5e=_0xa176d[0x0][_0x328a87(0x1dd)],_0x540fa6=buildJourneysArray(_0xa176d,_0x506fc2),{merged:_0x1d9522,nameMapping:_0xc1f99c}=consolidateSegmentsByContent(_0xa176d[_0x328a87(0x1cc)](_0x5d43eb=>_0x5d43eb[_0x328a87(0x1dd)]['segments']),_0xbcb054);updateSegmentRefsInSegments(_0x1d9522,_0xc1f99c);const _0x183b98=Array[_0x328a87(0x19c)](_0xc1f99c[_0x328a87(0x1d2)]())[_0x328a87(0x1b1)](([_0x33c7f9,_0x4b91cf])=>_0x33c7f9!==_0x4b91cf&&_0x33c7f9[_0x328a87(0x1ab)](_0x328a87(0x1eb)));let _0x51f37f=_0x1d9522,_0x1121de=new Map();if(_0x183b98){const _0x465255=consolidateSegmentsByContent([_0x1d9522],_0xbcb054);_0x51f37f=_0x465255[_0x328a87(0x19d)],_0x1121de=_0x465255['nameMapping'];}const _0x13c397=new Map(_0xc1f99c);for(const [_0x56ad59,_0x3742d7]of _0x1121de[_0x328a87(0x1d2)]()){_0x13c397[_0x328a87(0x1c5)](_0x56ad59,_0x3742d7);}for(const [_0x2eac0e,_0x4ba82b]of _0x13c397[_0x328a87(0x1d2)]()){let _0x470ccb=_0x4ba82b,_0x5672f3=0x0;while(_0x13c397['has'](_0x470ccb)&&_0x13c397[_0x328a87(0x1a1)](_0x470ccb)!==_0x470ccb&&_0x5672f3<MAX_MAPPING_CHAIN_DEPTH){_0x470ccb=_0x13c397[_0x328a87(0x1a1)](_0x470ccb),_0x5672f3++;}_0x470ccb!==_0x4ba82b&&_0x13c397[_0x328a87(0x1c5)](_0x2eac0e,_0x470ccb);}for(const _0x512b02 of _0x540fa6){updateSegmentReferences(_0x512b02[_0x328a87(0x1ca)],_0x13c397);}const {merged:_0x2fcded,nameMapping:_0x1b4a53}=consolidateActivationsByContent(_0xa176d[_0x328a87(0x1cc)](_0xb60b7=>_0xb60b7[_0x328a87(0x1dd)][_0x328a87(0x1cf)]));for(const _0x3bf5d2 of _0x540fa6){updateActivationReferences(_0x3bf5d2[_0x328a87(0x1ca)],_0x1b4a53);}let _0x23abcd=_0x4c8a5e[_0x328a87(0x1d6)];if(_0x23abcd?.[_0x328a87(0x19a)]){const _0x43c26a=_0x13c397[_0x328a87(0x1a1)](_0x23abcd[_0x328a87(0x19a)]);_0x43c26a&&(_0x23abcd={..._0x23abcd,'segment':_0x43c26a});}for(const _0xa37cd1 of _0x540fa6){if(_0xa37cd1[_0x328a87(0x1d6)]?.[_0x328a87(0x19a)]){const _0x33792c=_0x13c397[_0x328a87(0x1a1)](_0xa37cd1[_0x328a87(0x1d6)][_0x328a87(0x19a)]);_0x33792c&&(_0xa37cd1[_0x328a87(0x1d6)]={..._0xa37cd1['goal'],'segment':_0x33792c});}}return _0x540fa6[_0x328a87(0x1b1)](_0x58fef3=>_0x58fef3[_0x328a87(0x1d6)])&&(_0x23abcd=undefined),{'type':_0x328a87(0x1a7),'name':_0x4c8a5e['name'],'description':_0x4c8a5e[_0x328a87(0x1be)],'goal':_0x23abcd,'reentry':_0x4c8a5e[_0x328a87(0x1d0)],'segments':Object[_0x328a87(0x19b)](_0x51f37f)['length']>0x0?_0x51f37f:undefined,'activations':Object[_0x328a87(0x19b)](_0x2fcded)[_0x328a87(0x1c7)]>0x0?_0x2fcded:undefined,'journeys':_0x540fa6,'bundle_id':_0x4c8a5e['bundle_id'],'bundle_name':_0x4c8a5e[_0x328a87(0x1b5)]};}export function createJumpTargetCache(){return new Map();}function a135_0x448b(){const _0x346d85=['set','activation_template_id','length','336dFiGSo','versions','stages','conditions','map','.yaml','replace','activations','reentry','all_columns','entries','segments','wait','journeyStages','goal','90kjcaUQ','push','latest','with','8WEpbMB','5isCQnm','yaml','decision_point','condition','attributes','exclude','columns','rule','isArray','version','find','sort','2502678TVqtwO','milestone','toLowerCase','entry_criteria','383881bhtZBn','steps','segment','keys','from','merged','match','trim','connector_config','get','version_number','245070QxaBHo','journeyBundleName','item','values','journey','join','.yml','behavior','startsWith','object','type','launched','index','1078880xWoaiX','some','schedule','stringify','connection','bundle_name','activation','branches','slice','name','30826OZucLl','2347982UnSAGB','state','exit_criteria','description','36lzEDwI','endsWith','string','include','null','163097dwUbDO'];a135_0x448b=function(){return _0x346d85;};return a135_0x448b();}export async function resolveJumpTarget(_0x586b92,_0x2a30e5,_0x55aed6,_0x963640){const _0x57195b=a135_0x2159,_0x4ab3a5=_0x586b92+':'+_0x2a30e5,_0x4868cd=_0x55aed6[_0x57195b(0x1a1)](_0x4ab3a5);if(_0x4868cd)return _0x4868cd;const _0xfd6b31=await _0x963640(_0x586b92),_0x15228a=_0xfd6b31['attributes'][_0x57195b(0x1a4)]||_0xfd6b31[_0x57195b(0x1e0)][_0x57195b(0x1b9)],_0xb0990d=_0xfd6b31[_0x57195b(0x1e0)][_0x57195b(0x1d5)][_0x57195b(0x1e6)](_0x5ba822=>String(_0x5ba822['id'])===String(_0x2a30e5)),_0x1dc22f=_0xb0990d?.[_0x57195b(0x1b9)]||_0x2a30e5,_0x31437f={'journeyName':_0x15228a,'stageName':_0x1dc22f};return _0x55aed6[_0x57195b(0x1c5)](_0x4ab3a5,_0x31437f),_0x31437f;}function a135_0x2159(_0x4216aa,_0x1e3c4c){_0x4216aa=_0x4216aa-0x199;const _0x448b1b=a135_0x448b();let _0x2159e0=_0x448b1b[_0x4216aa];return _0x2159e0;}export function formatApiJourneyName(_0x4b3b06,_0x1519ae){return _0x1519ae+'\x20('+_0x4b3b06+')';}export function isLocalJourneyRef(_0x447a81){const _0x59f4e0=a135_0x2159;return _0x447a81[_0x59f4e0(0x1c0)](_0x59f4e0(0x1a9))||_0x447a81[_0x59f4e0(0x1c0)](_0x59f4e0(0x1cd));}export function buildLocalRuleToNameMapping(_0x309e57){const _0x21bca9=a135_0x2159,_0x3f7564=new Map();if(!_0x309e57)return _0x3f7564;for(const [_0x2896f4,_0x2724e5]of Object[_0x21bca9(0x1d2)](_0x309e57)){if(_0x2724e5[_0x21bca9(0x1e3)]){const _0x5360b1=serializeRule(_0x2724e5[_0x21bca9(0x1e3)]),_0x14f6dc=_0x3f7564['get'](_0x5360b1)||[];_0x14f6dc[_0x21bca9(0x1d8)](_0x2896f4),_0x3f7564[_0x21bca9(0x1c5)](_0x5360b1,_0x14f6dc);}}return _0x3f7564;}export function buildLocalRuleToNameMappingFromJourney(_0x24c579){const _0x1e355e=a135_0x2159,_0x1deff6=_0x24c579[_0x1e355e(0x1d3)];if(!_0x1deff6)return new Map();const _0x43709e=collectSegmentUsageCounts(_0x24c579),_0x4c1d3e=new Map();let _0x28adc1=0x0;for(const [_0x1b7dd1,_0x23e8ca]of Object['entries'](_0x1deff6)){if(!_0x23e8ca['rule']){_0x28adc1++;continue;}const _0x2fed3d=serializeRule(_0x23e8ca[_0x1e355e(0x1e3)]),_0x254ce3=_0x4c1d3e[_0x1e355e(0x1a1)](_0x2fed3d)||[];_0x254ce3['push']({'name':_0x1b7dd1,'index':_0x28adc1}),_0x4c1d3e[_0x1e355e(0x1c5)](_0x2fed3d,_0x254ce3),_0x28adc1++;}const _0x35282b=new Map();for(const [_0x2a29a7,_0x2c6ab8]of _0x4c1d3e){const _0x2bc5c0=_0x2c6ab8[_0x1e355e(0x1b8)]()[_0x1e355e(0x1e7)]((_0x17d5ad,_0x5e1bc1)=>{const _0x19519d=_0x1e355e,_0x507de1=_0x43709e['get'](_0x17d5ad[_0x19519d(0x1b9)])||0x0,_0x13f9f9=_0x43709e[_0x19519d(0x1a1)](_0x5e1bc1[_0x19519d(0x1b9)])||0x0;if(_0x507de1!==_0x13f9f9)return _0x13f9f9-_0x507de1;return _0x17d5ad[_0x19519d(0x1af)]-_0x5e1bc1['index'];})[_0x1e355e(0x1cc)](_0x585102=>_0x585102[_0x1e355e(0x1b9)]);_0x35282b[_0x1e355e(0x1c5)](_0x2a29a7,_0x2bc5c0);}return _0x35282b;}export function collectSegmentUsageCounts(_0x577809){const _0x3f2feb=a135_0x2159,_0x148072=new Map(),_0x5c1302=_0x3f0969=>{const _0x29c540=a135_0x2159;if(!_0x3f0969)return;_0x148072[_0x29c540(0x1c5)](_0x3f0969,(_0x148072[_0x29c540(0x1a1)](_0x3f0969)||0x0)+0x1);},_0x1dcaf2=_0x186499=>{const _0x3e0aec=a135_0x2159;for(const _0x1af1c3 of _0x186499){_0x5c1302(_0x1af1c3[_0x3e0aec(0x1eb)]?.[_0x3e0aec(0x19a)]);if(_0x1af1c3['exit_criteria'])for(const _0x568956 of _0x1af1c3[_0x3e0aec(0x1bd)]){_0x5c1302(_0x568956[_0x3e0aec(0x19a)]);}_0x5c1302(_0x1af1c3[_0x3e0aec(0x1e9)]?.[_0x3e0aec(0x19a)]);if(_0x1af1c3['steps'])for(const _0x4c3776 of _0x1af1c3['steps']){if(_0x4c3776['type']===_0x3e0aec(0x1de))for(const _0x472014 of _0x4c3776[_0x3e0aec(0x1da)][_0x3e0aec(0x1b7)]){_0x5c1302(_0x472014[_0x3e0aec(0x19a)]);}else _0x4c3776[_0x3e0aec(0x1ad)]===_0x3e0aec(0x1d4)&&_0x5c1302(_0x4c3776['with'][_0x3e0aec(0x1df)]?.['segment']);}}};_0x5c1302(_0x577809[_0x3f2feb(0x1d6)]?.[_0x3f2feb(0x19a)]);if(_0x577809['journeys'])for(const _0x545568 of _0x577809['journeys']){_0x5c1302(_0x545568['goal']?.[_0x3f2feb(0x19a)]),_0x1dcaf2(_0x545568[_0x3f2feb(0x1ca)]);}_0x577809[_0x3f2feb(0x1ca)]&&_0x1dcaf2(_0x577809[_0x3f2feb(0x1ca)]);if(_0x577809['versions'])for(const _0x1fb450 of _0x577809[_0x3f2feb(0x1c9)]){_0x1dcaf2(_0x1fb450['stages']);}return _0x148072;}
@@ -1 +1 @@
1
- (function(_0x420259,_0x2f2ded){const _0x4159a3=a134_0x164d,_0x466ce3=_0x420259();while(!![]){try{const _0x1f8c4f=-parseInt(_0x4159a3(0x1b3))/0x1*(-parseInt(_0x4159a3(0x147))/0x2)+-parseInt(_0x4159a3(0x12a))/0x3*(-parseInt(_0x4159a3(0x12d))/0x4)+parseInt(_0x4159a3(0x16f))/0x5+parseInt(_0x4159a3(0x150))/0x6+parseInt(_0x4159a3(0x1ad))/0x7+-parseInt(_0x4159a3(0x13f))/0x8*(-parseInt(_0x4159a3(0x18b))/0x9)+-parseInt(_0x4159a3(0x14a))/0xa;if(_0x1f8c4f===_0x2f2ded)break;else _0x466ce3['push'](_0x466ce3['shift']());}catch(_0x429ea9){_0x466ce3['push'](_0x466ce3['shift']());}}}(a134_0x21a0,0xccc61));import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x25f40b,_0x443ef1,_0xac29d3,_0x1ed8fe,_0x5b823d,_0x22dad6){const _0x3f6e23=a134_0x164d;return{'level':_0x25f40b,'path':_0x443ef1,'code':_0xac29d3,'message':_0x1ed8fe,'location':getLocationFromPath(_0x5b823d[_0x3f6e23(0x195)],_0x5b823d['source'],pathToArray(_0x22dad6??_0x443ef1))};}function validateVersionStructure(_0x3c8a45,_0x4a961f){const _0x4fd17b=a134_0x164d,_0x37a057=[];return _0x3c8a45[_0x4fd17b(0x1ae)]>MAX_STAGES&&_0x37a057[_0x4fd17b(0x13b)](createIssue(_0x4fd17b(0x154),_0x4fd17b(0x121),_0x4fd17b(0x187),'Journey\x20has\x20'+_0x3c8a45[_0x4fd17b(0x1ae)]+_0x4fd17b(0x159)+MAX_STAGES,_0x4a961f)),_0x37a057;}function validateStageStructure(_0x3c6c7b,_0x43634a,_0x797062,_0x324267){const _0x293b54=a134_0x164d,_0x310372=[],_0x18c769='stages['+_0x43634a+']';_0x43634a===0x0&&!_0x3c6c7b[_0x293b54(0x16b)]&&_0x310372[_0x293b54(0x13b)](createIssue('error',_0x18c769+'.entry_criteria','MISSING_ENTRY_CRITERIA','Stage\x20\x27'+_0x3c6c7b[_0x293b54(0x163)]+'\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)',_0x324267,_0x18c769));const _0x1a4607=_0x43634a===_0x797062-0x1;!_0x1a4607&&!_0x3c6c7b[_0x293b54(0x17d)]&&_0x310372[_0x293b54(0x13b)](createIssue(_0x293b54(0x154),_0x18c769+_0x293b54(0x143),_0x293b54(0x1a7),_0x293b54(0x11b)+_0x3c6c7b['name']+_0x293b54(0x135),_0x324267,_0x18c769));(!_0x3c6c7b[_0x293b54(0x188)]||_0x3c6c7b[_0x293b54(0x188)][_0x293b54(0x1ae)]===0x0)&&_0x310372[_0x293b54(0x13b)](createIssue(_0x293b54(0x16a),_0x18c769+_0x293b54(0x14e),_0x293b54(0x15c),_0x293b54(0x11b)+_0x3c6c7b[_0x293b54(0x163)]+_0x293b54(0x193),_0x324267,_0x18c769));const _0x59c909=_0x3c6c7b[_0x293b54(0x128)]?.[_0x293b54(0x1ae)]??0x0;if(_0x59c909===0x0)_0x310372[_0x293b54(0x13b)](createIssue(_0x293b54(0x154),_0x18c769+_0x293b54(0x189),_0x293b54(0x15a),_0x293b54(0x11b)+_0x3c6c7b[_0x293b54(0x163)]+'\x27\x20has\x20no\x20steps',_0x324267,_0x18c769+_0x293b54(0x189)));else{if(_0x59c909===0x1)_0x310372[_0x293b54(0x13b)](createIssue(_0x293b54(0x16a),_0x18c769+'.steps',_0x293b54(0x15a),_0x293b54(0x11b)+_0x3c6c7b[_0x293b54(0x163)]+'\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)',_0x324267,_0x18c769+_0x293b54(0x189)));else _0x59c909<=0x3&&_0x310372[_0x293b54(0x13b)](createIssue(_0x293b54(0x16a),_0x18c769+_0x293b54(0x189),_0x293b54(0x131),_0x293b54(0x11b)+_0x3c6c7b['name']+_0x293b54(0x133)+_0x59c909+'\x20steps\x20(may\x20be\x20too\x20simple)',_0x324267,_0x18c769+'.steps'));}return _0x310372;}function validateStep(_0x2209cb,_0x1d7be7,_0x2a760f,_0x10536b){const _0x579909=a134_0x164d,_0xf29859=[];if(_0x2209cb[_0x579909(0x15d)]===_0x579909(0x1b4))return _0x2209cb[_0x579909(0x177)]&&_0xf29859[_0x579909(0x13b)](createIssue('error',_0x1d7be7+_0x579909(0x1a6),'END_STEP_HAS_NEXT_OR_WITH',_0x579909(0x17c)+_0x2209cb[_0x579909(0x163)]+_0x579909(0x129),_0x2a760f)),'with'in _0x2209cb&&_0x2209cb[_0x579909(0x156)]!==undefined&&_0xf29859[_0x579909(0x13b)](createIssue(_0x579909(0x154),_0x1d7be7+_0x579909(0x170),_0x579909(0x106),_0x579909(0x17c)+_0x2209cb[_0x579909(0x163)]+_0x579909(0xfe),_0x2a760f)),_0xf29859;_0x2209cb[_0x579909(0x177)]&&(_0x2a760f[_0x579909(0x173)]&&!_0x2a760f[_0x579909(0x173)][_0x579909(0x10e)](_0x2209cb[_0x579909(0x177)])&&_0xf29859[_0x579909(0x13b)](createIssue(_0x579909(0x154),_0x1d7be7+_0x579909(0x1a6),_0x579909(0x1b2),_0x579909(0x16c)+_0x2209cb[_0x579909(0x177)]+'\x27',_0x2a760f)));switch(_0x2209cb[_0x579909(0x15d)]){case _0x579909(0x110):_0xf29859[_0x579909(0x13b)](...validateWaitStep(_0x2209cb,_0x1d7be7,_0x2a760f,_0x10536b));break;case _0x579909(0x162):_0xf29859[_0x579909(0x13b)](...validateActivationStep(_0x2209cb,_0x1d7be7,_0x2a760f));break;case'decision_point':_0xf29859[_0x579909(0x13b)](...validateDecisionPointStep(_0x2209cb,_0x1d7be7,_0x2a760f,_0x10536b));break;case'ab_test':_0xf29859[_0x579909(0x13b)](...validateAbTestStep(_0x2209cb,_0x1d7be7,_0x2a760f,_0x10536b));break;case _0x579909(0xff):_0xf29859[_0x579909(0x13b)](...validateJumpStep(_0x2209cb,_0x1d7be7,_0x2a760f));break;}return _0xf29859;}function validateWaitStep(_0x389d79,_0xac249e,_0x8262cc,_0x1d2e0d){const _0x110472=a134_0x164d,_0x526c51=[];if(!_0x389d79['with'])return _0x526c51['push'](createIssue('error',_0xac249e+_0x110472(0x170),_0x110472(0x112),'Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field',_0x8262cc,_0xac249e)),_0x526c51;if(_0x389d79[_0x110472(0x156)]['condition']){const _0x5a8c9f=_0x389d79['with']['condition'];if(_0x5a8c9f[_0x110472(0x12f)]){_0x8262cc[_0x110472(0x146)]?.[_0x110472(0x13a)](_0x5a8c9f[_0x110472(0x12f)]);!_0x5a8c9f['segment'][_0x110472(0x107)](_0x110472(0x172))&&(_0x8262cc['embeddedSegments']&&!_0x8262cc['embeddedSegments'][_0x110472(0x10e)](_0x5a8c9f[_0x110472(0x12f)])&&_0x526c51[_0x110472(0x13b)](createIssue(_0x110472(0x154),_0xac249e+_0x110472(0x186),'MISSING_SEGMENT_REFERENCE','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27'+_0x5a8c9f[_0x110472(0x12f)]+_0x110472(0x1a9),_0x8262cc)));_0x5a8c9f[_0x110472(0x177)]&&_0x8262cc[_0x110472(0x173)]&&!_0x8262cc[_0x110472(0x173)]['has'](_0x5a8c9f[_0x110472(0x177)])&&_0x526c51['push'](createIssue(_0x110472(0x154),_0xac249e+_0x110472(0x13e),_0x110472(0x1b2),_0x110472(0x10b)+_0x5a8c9f[_0x110472(0x177)]+'\x27',_0x8262cc));_0x5a8c9f[_0x110472(0x166)]?.[_0x110472(0x177)]&&_0x8262cc['stepNames']&&!_0x8262cc[_0x110472(0x173)][_0x110472(0x10e)](_0x5a8c9f[_0x110472(0x166)][_0x110472(0x177)])&&_0x526c51[_0x110472(0x13b)](createIssue(_0x110472(0x154),_0xac249e+_0x110472(0x192),_0x110472(0x1b2),_0x110472(0x152)+_0x5a8c9f['timeout']['next']+'\x27',_0x8262cc));const _0x249e5e=_0x5a8c9f[_0x110472(0x177)]||_0x389d79[_0x110472(0x177)],_0x4975e7=_0x5a8c9f[_0x110472(0x166)]?.[_0x110472(0x177)]||_0x389d79[_0x110472(0x177)];if(_0x249e5e){const _0x48edd0=_0x1d2e0d[_0x110472(0x108)](_0x249e5e);_0x48edd0?.['type']===_0x110472(0x1a8)&&_0x526c51['push'](createIssue('warning',_0xac249e+_0x110472(0x13e),_0x110472(0x15f),_0x110472(0x125)+_0x249e5e+_0x110472(0x171),_0x8262cc,_0xac249e+_0x110472(0x148)));}if(_0x4975e7){const _0x186a31=_0x1d2e0d[_0x110472(0x108)](_0x4975e7);_0x186a31?.[_0x110472(0x15d)]===_0x110472(0x1a8)&&_0x526c51[_0x110472(0x13b)](createIssue(_0x110472(0x16a),_0xac249e+_0x110472(0x192),'BRANCH_DIRECTLY_TO_MERGE','Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x4975e7+_0x110472(0x171),_0x8262cc,_0xac249e+_0x110472(0x11f)));}}}return _0x526c51;}function validateActivationStep(_0x170c4c,_0x4af7ca,_0x120587){const _0x18b8bf=a134_0x164d,_0x4059a7=[];if(!_0x170c4c[_0x18b8bf(0x156)]?.[_0x18b8bf(0x162)])return _0x4059a7[_0x18b8bf(0x13b)](createIssue('error',_0x4af7ca+_0x18b8bf(0x16e),_0x18b8bf(0x14f),_0x18b8bf(0x130),_0x120587,_0x4af7ca)),_0x4059a7;const _0x12c248=_0x170c4c['with']['activation'];return _0x120587['activationKeys']&&!_0x12c248['startsWith'](_0x18b8bf(0x172))&&(!_0x120587[_0x18b8bf(0x1a0)][_0x18b8bf(0x10e)](_0x12c248)&&_0x4059a7[_0x18b8bf(0x13b)](createIssue('error',_0x4af7ca+_0x18b8bf(0x16e),_0x18b8bf(0x118),'Activation\x20step\x20references\x20undefined\x20activation\x20\x27'+_0x12c248+'\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.',_0x120587))),_0x4059a7;}function validateDecisionPointStep(_0x14af59,_0x2b13f1,_0x2f4ce2,_0x472ae1){const _0x11688a=a134_0x164d,_0x2d495c=[];if(!_0x14af59[_0x11688a(0x156)]?.[_0x11688a(0x101)]||_0x14af59[_0x11688a(0x156)][_0x11688a(0x101)][_0x11688a(0x1ae)]===0x0)return _0x2d495c[_0x11688a(0x13b)](createIssue(_0x11688a(0x154),_0x2b13f1+_0x11688a(0x10d),'MISSING_CONDITIONS',_0x11688a(0x127),_0x2f4ce2,_0x2b13f1)),_0x2d495c;for(let _0x3fc9b3=0x0;_0x3fc9b3<_0x14af59[_0x11688a(0x156)]['branches']['length'];_0x3fc9b3++){const _0xc3906a=_0x14af59[_0x11688a(0x156)][_0x11688a(0x101)][_0x3fc9b3],_0x11b392=_0x2b13f1+_0x11688a(0x12c)+_0x3fc9b3+']';_0xc3906a[_0x11688a(0x12f)]&&!_0xc3906a[_0x11688a(0x11d)]&&(_0x2f4ce2['referencedSegments']?.[_0x11688a(0x13a)](_0xc3906a[_0x11688a(0x12f)]),!_0xc3906a[_0x11688a(0x12f)][_0x11688a(0x107)](_0x11688a(0x172))&&(_0x2f4ce2[_0x11688a(0x113)]&&!_0x2f4ce2[_0x11688a(0x113)][_0x11688a(0x10e)](_0xc3906a[_0x11688a(0x12f)])&&_0x2d495c[_0x11688a(0x13b)](createIssue('error',_0x11b392+_0x11688a(0x103),_0x11688a(0x12e),'Decision\x20branch\x20references\x20undefined\x20segment\x20\x27'+_0xc3906a[_0x11688a(0x12f)]+'\x27',_0x2f4ce2))));_0xc3906a['next']&&_0x2f4ce2[_0x11688a(0x173)]&&!_0x2f4ce2[_0x11688a(0x173)]['has'](_0xc3906a[_0x11688a(0x177)])&&_0x2d495c['push'](createIssue('error',_0x11b392+_0x11688a(0x1a6),'INVALID_NEXT_REFERENCE','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27'+_0xc3906a[_0x11688a(0x177)]+'\x27',_0x2f4ce2));if(_0xc3906a['next']){const _0x282d89=_0x472ae1['get'](_0xc3906a[_0x11688a(0x177)]);_0x282d89?.[_0x11688a(0x15d)]===_0x11688a(0x1a8)&&_0x2d495c[_0x11688a(0x13b)](createIssue('warning',_0x11b392+_0x11688a(0x1a6),'BRANCH_DIRECTLY_TO_MERGE',_0x11688a(0x104)+_0xc3906a[_0x11688a(0x163)]+_0x11688a(0x18d)+_0xc3906a['next']+'\x27\x20with\x20no\x20action\x20in\x20between',_0x2f4ce2));}}return _0x2d495c;}function validateAbTestStep(_0x5db377,_0x3f4f14,_0x1cc031,_0x4b46be){const _0x73ec5=a134_0x164d,_0x12ff32=[];if(!_0x5db377[_0x73ec5(0x156)]?.[_0x73ec5(0x18e)]||_0x5db377[_0x73ec5(0x156)][_0x73ec5(0x18e)][_0x73ec5(0x1ae)]===0x0)return _0x12ff32[_0x73ec5(0x13b)](createIssue(_0x73ec5(0x154),_0x3f4f14+'.with.variants',_0x73ec5(0x176),'A/B\x20test\x20requires\x20at\x20least\x20one\x20variant',_0x1cc031,_0x3f4f14)),_0x12ff32;const _0x44c841=_0x5db377[_0x73ec5(0x156)][_0x73ec5(0x18e)]['reduce']((_0x369235,_0x1b9942)=>_0x369235+(_0x1b9942['percentage']||0x0),0x0);Math[_0x73ec5(0x102)](_0x44c841-0x64)>0.01&&_0x12ff32['push'](createIssue(_0x73ec5(0x154),_0x3f4f14+'.with.variants',_0x73ec5(0x136),_0x73ec5(0x100)+_0x44c841+'%)',_0x1cc031));for(let _0x5a47a1=0x0;_0x5a47a1<_0x5db377['with'][_0x73ec5(0x18e)][_0x73ec5(0x1ae)];_0x5a47a1++){const _0x482e7d=_0x5db377[_0x73ec5(0x156)][_0x73ec5(0x18e)][_0x5a47a1],_0x5ad92c=_0x3f4f14+_0x73ec5(0x15b)+_0x5a47a1+']';_0x482e7d[_0x73ec5(0x177)]&&_0x1cc031[_0x73ec5(0x173)]&&!_0x1cc031[_0x73ec5(0x173)][_0x73ec5(0x10e)](_0x482e7d[_0x73ec5(0x177)])&&_0x12ff32[_0x73ec5(0x13b)](createIssue(_0x73ec5(0x154),_0x5ad92c+'.next',_0x73ec5(0x1b2),_0x73ec5(0x168)+_0x482e7d[_0x73ec5(0x177)]+'\x27',_0x1cc031));if(_0x482e7d[_0x73ec5(0x177)]){const _0x522ba0=_0x4b46be[_0x73ec5(0x108)](_0x482e7d[_0x73ec5(0x177)]);_0x522ba0?.['type']===_0x73ec5(0x1a8)&&_0x12ff32[_0x73ec5(0x13b)](createIssue(_0x73ec5(0x16a),_0x5ad92c+_0x73ec5(0x1a6),'BRANCH_DIRECTLY_TO_MERGE','A/B\x20test\x20variant\x20\x27'+_0x482e7d[_0x73ec5(0x163)]+_0x73ec5(0x18d)+_0x482e7d['next']+_0x73ec5(0x194),_0x1cc031));}}return _0x12ff32;}function a134_0x21a0(){const _0x49e384=['goal','versions','End\x20step\x20\x27','milestone','Embedded\x20segment\x20\x27','journeys,\x20stages,\x20or\x20versions','trim','.type','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','MERGE_TO_MERGE_CHAIN','SINGLE_INPUT_MERGE','safeParse','.with.condition.segment','TOO_MANY_STAGES','exit_criteria','.steps','set','938070rEFjvp','target','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','variants','MISSING_NAME','.with.target','versions[','.with.condition.timeout.next','\x27\x20has\x20no\x20exit_criteria\x20defined','\x27\x20with\x20no\x20action\x20in\x20between','document','\x20versions)','decision_point','symbol','success','every','values','MISSING_GOAL','segments','sort','ab_test','activationKeys','level','entries','journeys[','\x27\x20has\x20no\x20end\x20step','UNUSED_EMBEDDED_SEGMENT','.next','MISSING_MILESTONE','merge','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','join','.entry_criteria','3855586LONSNz','length','stage','Merge\x20step\x20\x27','message','INVALID_NEXT_REFERENCE','1173285lwoAdV','end','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','jump','A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20','branches','abs','.segment','Decision\x20branch\x20\x27','\x20with\x20latest:\x20true','END_STEP_HAS_NEXT_OR_WITH','startsWith','get','journey\x20entry','ACTIVATION_SCHEMA_ERROR','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','description','.with.branches','has','some','wait','variant\x20\x27','MISSING_WAIT_PARAMS','embeddedSegments','\x27\x20of\x20\x27','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','keys','map','MISSING_ACTIVATION_DEFINITION','Journey\x20has\x20no\x20goal\x20defined','source','Stage\x20\x27','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','excluded','latest','.with.condition.timeout','goalIsInherited','stages','Journey\x20name\x20is\x20required','timeout\x20of\x20\x27','step\x20\x27','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','\x27\x20(from:\x20','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','steps','\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field','9zddVcy','endsWith','.with.branches[','1075588YDPETE','MISSING_SEGMENT_REFERENCE','segment','Activation\x20step\x20requires\x20an\x20activation\x20reference','FEW_STEPS','path','\x27\x20has\x20only\x20','splice','\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone','INVALID_AB_TEST_PERCENTAGES','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','state','activations','add','push','includes','journey','.with.condition.next','64GeBRkl','size','MISSING_END_STEP','skipSchema','.milestone','filter','JOURNEY_SCHEMA_ERROR','referencedSegments','2IKIyZv','.with.condition','MISSING_STAGES','44318970QoHbuJ','excluded_','DUPLICATE_STEP_NAME','.rule','.exit_criteria','MISSING_ACTIVATION_REF','5334216fXKgFp','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','.name','error','stages[','with','match','\x27\x20(first\x20defined\x20at\x20steps[','\x20stages\x20but\x20maximum\x20is\x20','INSUFFICIENT_STEPS','.with.variants[','MISSING_EXIT_CRITERIA','type',').\x20Merge\x20is\x20unnecessary.','BRANCH_DIRECTLY_TO_MERGE','\x20(across\x20','condition','activation','name','INVALID_JUMP_TARGET','indices','timeout','journeys','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','segments.','warning','entry_criteria','Step\x20references\x20non-existent\x20step\x20\x27','data','.with.activation','5085000nYsLra','.with','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','ref:','stepNames','launched','rule','MISSING_CONDITIONS','next','condition\x20of\x20\x27','issues'];a134_0x21a0=function(){return _0x49e384;};return a134_0x21a0();}function validateJumpStep(_0x19e863,_0x5c4857,_0x3f45db){const _0x18ea1d=a134_0x164d,_0x4fa7a2=[];if(!_0x19e863[_0x18ea1d(0x156)]?.[_0x18ea1d(0x18c)])return _0x4fa7a2[_0x18ea1d(0x13b)](createIssue(_0x18ea1d(0x154),_0x5c4857+_0x18ea1d(0x190),'INVALID_JUMP_TARGET','Jump\x20step\x20requires\x20a\x20target',_0x3f45db,_0x5c4857)),_0x4fa7a2;return(!_0x19e863[_0x18ea1d(0x156)]['target'][_0x18ea1d(0x13d)]||!_0x19e863[_0x18ea1d(0x156)]['target'][_0x18ea1d(0x1af)])&&_0x4fa7a2['push'](createIssue(_0x18ea1d(0x154),_0x5c4857+'.with.target',_0x18ea1d(0x164),_0x18ea1d(0x137),_0x3f45db)),_0x4fa7a2;}function buildConvergenceMap(_0x55bfcf){const _0x420e91=a134_0x164d,_0x5d09a7=new Map();function _0x251c31(_0x24259b,_0x51f094){const _0x47f80f=a134_0x164d,_0x2784a0=_0x5d09a7[_0x47f80f(0x108)](_0x24259b)||[];_0x2784a0[_0x47f80f(0x13b)](_0x51f094),_0x5d09a7[_0x47f80f(0x18a)](_0x24259b,_0x2784a0);}for(const _0x269e04 of _0x55bfcf){_0x269e04[_0x420e91(0x177)]&&_0x251c31(_0x269e04[_0x420e91(0x177)],{'stepName':_0x269e04[_0x420e91(0x163)],'description':_0x420e91(0x124)+_0x269e04[_0x420e91(0x163)]+'\x27'});if(_0x269e04[_0x420e91(0x15d)]===_0x420e91(0x197)&&_0x269e04['with']?.[_0x420e91(0x101)])for(const _0x450e7d of _0x269e04[_0x420e91(0x156)]['branches']){_0x450e7d[_0x420e91(0x177)]&&_0x251c31(_0x450e7d['next'],{'stepName':_0x269e04[_0x420e91(0x163)],'description':'branch\x20\x27'+_0x450e7d[_0x420e91(0x163)]+_0x420e91(0x114)+_0x269e04[_0x420e91(0x163)]+'\x27'});}if(_0x269e04[_0x420e91(0x15d)]===_0x420e91(0x19f)&&_0x269e04[_0x420e91(0x156)]?.[_0x420e91(0x18e)])for(const _0x8cf766 of _0x269e04[_0x420e91(0x156)]['variants']){_0x8cf766['next']&&_0x251c31(_0x8cf766[_0x420e91(0x177)],{'stepName':_0x269e04[_0x420e91(0x163)],'description':_0x420e91(0x111)+_0x8cf766[_0x420e91(0x163)]+_0x420e91(0x114)+_0x269e04[_0x420e91(0x163)]+'\x27'});}_0x269e04[_0x420e91(0x15d)]===_0x420e91(0x110)&&_0x269e04[_0x420e91(0x156)]?.[_0x420e91(0x161)]&&(_0x269e04[_0x420e91(0x156)][_0x420e91(0x161)][_0x420e91(0x177)]&&_0x251c31(_0x269e04[_0x420e91(0x156)]['condition']['next'],{'stepName':_0x269e04['name'],'description':_0x420e91(0x178)+_0x269e04[_0x420e91(0x163)]+'\x27'}),_0x269e04[_0x420e91(0x156)]['condition'][_0x420e91(0x166)]?.[_0x420e91(0x177)]&&_0x251c31(_0x269e04[_0x420e91(0x156)][_0x420e91(0x161)][_0x420e91(0x166)][_0x420e91(0x177)],{'stepName':_0x269e04[_0x420e91(0x163)],'description':_0x420e91(0x123)+_0x269e04[_0x420e91(0x163)]+'\x27'}));}return _0x5d09a7;}function a134_0x164d(_0x5d44b7,_0x9d7a65){_0x5d44b7=_0x5d44b7-0xfe;const _0x21a096=a134_0x21a0();let _0x164d9d=_0x21a096[_0x5d44b7];return _0x164d9d;}function validateFlowControl(_0x5aa8be,_0x456263,_0x3f206d){const _0xaf499c=a134_0x164d,_0x579e48=[],_0x17325d=_0xaf499c(0x155)+_0x456263+']',_0x6e92de=_0x5aa8be['steps']||[];if(_0x6e92de[_0xaf499c(0x1ae)]===0x0)return _0x579e48;const _0x34a082=new Map();for(const _0x4078b4 of _0x6e92de){_0x4078b4[_0xaf499c(0x163)]&&_0x34a082[_0xaf499c(0x18a)](_0x4078b4[_0xaf499c(0x163)],_0x4078b4);}const _0x4713fb=buildConvergenceMap(_0x6e92de),_0x1cfb88=_0x6e92de[_0xaf499c(0x10f)](_0x613829=>_0x613829[_0xaf499c(0x15d)]===_0xaf499c(0x1b4));!_0x1cfb88&&_0x579e48[_0xaf499c(0x13b)](createIssue(_0xaf499c(0x154),_0x17325d+'.steps',_0xaf499c(0x141),_0xaf499c(0x11b)+_0x5aa8be[_0xaf499c(0x163)]+_0xaf499c(0x1a4),_0x3f206d));for(const [_0x2c4d7a,_0x31ade3]of _0x4713fb){const _0x5c3608=_0x34a082[_0xaf499c(0x108)](_0x2c4d7a);if(!_0x5c3608)continue;if(_0x31ade3['length']>0x1&&_0x5c3608[_0xaf499c(0x15d)]!==_0xaf499c(0x1a8)){const _0x57e970=_0x31ade3[_0xaf499c(0x117)](_0x44c689=>_0x44c689[_0xaf499c(0x10c)])[_0xaf499c(0x1ab)](',\x20');_0x579e48[_0xaf499c(0x13b)](createIssue(_0xaf499c(0x154),_0x17325d+_0xaf499c(0x189),'CONVERGENCE_WITHOUT_MERGE',_0xaf499c(0x151)+_0x2c4d7a+_0xaf499c(0x126)+_0x57e970+').\x20Use\x20a\x20merge\x20step.',_0x3f206d));}_0x31ade3[_0xaf499c(0x1ae)]===0x1&&_0x5c3608[_0xaf499c(0x15d)]==='merge'&&_0x579e48['push'](createIssue('warning',_0x17325d+_0xaf499c(0x189),_0xaf499c(0x184),_0xaf499c(0x1b0)+_0x2c4d7a+'\x27\x20has\x20only\x20one\x20input\x20(from:\x20'+_0x31ade3[0x0]['description']+_0xaf499c(0x15e),_0x3f206d));}for(const _0x345f87 of _0x6e92de){if(_0x345f87['type']===_0xaf499c(0x1a8)&&_0x345f87[_0xaf499c(0x177)]){const _0x178c04=_0x34a082[_0xaf499c(0x108)](_0x345f87['next']);_0x178c04?.[_0xaf499c(0x15d)]==='merge'&&_0x579e48[_0xaf499c(0x13b)](createIssue('error',_0x17325d+_0xaf499c(0x189),_0xaf499c(0x183),_0xaf499c(0x1b0)+_0x345f87[_0xaf499c(0x163)]+_0xaf499c(0x1aa)+_0x345f87['next']+_0xaf499c(0x182),_0x3f206d));}}return _0x579e48;}function validateCriteria(_0x54f241,_0x1b5dce,_0x2ecbb4){const _0x5434b2=a134_0x164d,_0x356a7c=[];return _0x54f241['segment']&&(_0x2ecbb4[_0x5434b2(0x146)]?.[_0x5434b2(0x13a)](_0x54f241[_0x5434b2(0x12f)]),!_0x54f241[_0x5434b2(0x12f)][_0x5434b2(0x107)](_0x5434b2(0x172))&&(_0x2ecbb4[_0x5434b2(0x113)]&&!_0x2ecbb4[_0x5434b2(0x113)][_0x5434b2(0x10e)](_0x54f241[_0x5434b2(0x12f)])&&_0x356a7c['push'](createIssue(_0x5434b2(0x154),_0x1b5dce+_0x5434b2(0x103),_0x5434b2(0x12e),'Criteria\x20references\x20undefined\x20segment\x20\x27'+_0x54f241['segment']+'\x27',_0x2ecbb4)))),_0x356a7c;}function validateEmbeddedSegment(_0x3cb83e,_0x519059,_0x2f2f9a){const _0x43ccda=a134_0x164d,_0x2bf672=[];return _0x3cb83e[_0x43ccda(0x175)]&&_0x2bf672[_0x43ccda(0x13b)](...validateRuleDef(_0x3cb83e[_0x43ccda(0x175)],_0x519059+_0x43ccda(0x14d),_0x2f2f9a)),_0x2bf672;}function validateStage(_0x2a2926,_0x3b823e,_0x4bcae5,_0x1a618b){const _0x4f2116=a134_0x164d,_0x11a5ec=[],_0x2392b0=_0x4f2116(0x155)+_0x3b823e+']',_0x14e33f=new Map(),_0x27b899=new Map();if(_0x2a2926[_0x4f2116(0x128)]){for(let _0x5522a9=0x0;_0x5522a9<_0x2a2926[_0x4f2116(0x128)][_0x4f2116(0x1ae)];_0x5522a9++){const _0x334026=_0x2a2926[_0x4f2116(0x128)][_0x5522a9];_0x334026['name']&&_0x14e33f['set'](_0x334026[_0x4f2116(0x163)],_0x334026);}for(let _0x28c512=0x0;_0x28c512<_0x2a2926[_0x4f2116(0x128)][_0x4f2116(0x1ae)];_0x28c512++){const _0x32cd87=_0x2a2926[_0x4f2116(0x128)][_0x28c512],_0xff9bd2=_0x2392b0+'.steps['+_0x28c512+']';if(_0x32cd87[_0x4f2116(0x163)]){if(_0x27b899[_0x4f2116(0x10e)](_0x32cd87[_0x4f2116(0x163)])){const _0x360606=_0x27b899['get'](_0x32cd87[_0x4f2116(0x163)]);_0x11a5ec[_0x4f2116(0x13b)](createIssue(_0x4f2116(0x154),_0xff9bd2+_0x4f2116(0x153),_0x4f2116(0x14c),'Duplicate\x20step\x20name\x20\x27'+_0x32cd87[_0x4f2116(0x163)]+_0x4f2116(0x158)+_0x360606+'])',_0x1a618b));}else _0x27b899[_0x4f2116(0x18a)](_0x32cd87[_0x4f2116(0x163)],_0x28c512);}_0x11a5ec[_0x4f2116(0x13b)](...validateStep(_0x32cd87,_0xff9bd2,_0x1a618b,_0x14e33f));}}_0x2a2926[_0x4f2116(0x16b)]&&_0x11a5ec[_0x4f2116(0x13b)](...validateCriteria(_0x2a2926[_0x4f2116(0x16b)],_0x2392b0+_0x4f2116(0x1ac),_0x1a618b));if(_0x2a2926[_0x4f2116(0x188)])for(let _0x359868=0x0;_0x359868<_0x2a2926[_0x4f2116(0x188)]['length'];_0x359868++){_0x11a5ec['push'](...validateCriteria(_0x2a2926['exit_criteria'][_0x359868],_0x2392b0+'.exit_criteria['+_0x359868+']',_0x1a618b));}return _0x2a2926[_0x4f2116(0x17d)]&&_0x11a5ec[_0x4f2116(0x13b)](...validateCriteria(_0x2a2926[_0x4f2116(0x17d)],_0x2392b0+'.milestone',_0x1a618b)),_0x11a5ec[_0x4f2116(0x13b)](...validateStageStructure(_0x2a2926,_0x3b823e,_0x4bcae5,_0x1a618b)),_0x11a5ec['push'](...validateFlowControl(_0x2a2926,_0x3b823e,_0x1a618b)),_0x11a5ec;}function validateStagesForVersion(_0x3d11e7,_0x5833a2,_0x37c90a,_0x25ca81,_0x512e4a,_0x2d40ec,_0x40297f){const _0x4ae0f3=a134_0x164d;if(_0x3d11e7[_0x4ae0f3(0x1ae)]===0x0){_0x512e4a[_0x4ae0f3(0x13b)]({'level':'error','path':_0x25ca81+_0x4ae0f3(0x121),'code':_0x4ae0f3(0x149),'message':_0x4ae0f3(0x115),'location':getLocationFromPath(_0x37c90a['document'],_0x37c90a[_0x4ae0f3(0x11a)],['stages'])});return;}const _0x2b1574=new Set();for(const _0x45f06b of _0x3d11e7){if(_0x45f06b[_0x4ae0f3(0x128)])for(const _0x49cf6e of _0x45f06b[_0x4ae0f3(0x128)]){_0x49cf6e[_0x4ae0f3(0x163)]&&_0x2b1574[_0x4ae0f3(0x13a)](_0x49cf6e[_0x4ae0f3(0x163)]);}}const _0xe61346={..._0x37c90a,'stepNames':_0x2b1574},_0x2351f3=validateVersionStructure(_0x3d11e7,_0xe61346);for(const _0x2c9023 of _0x2351f3){const _0x1a2180=_0x25ca81?{..._0x2c9023,'path':''+_0x25ca81+_0x2c9023['path']}:_0x2c9023;if(_0x1a2180['level']===_0x4ae0f3(0x154))_0x512e4a['push'](_0x1a2180);else _0x2d40ec['push'](_0x1a2180);}for(let _0x315345=0x0;_0x315345<_0x3d11e7[_0x4ae0f3(0x1ae)];_0x315345++){const _0x4bf596=validateStage(_0x3d11e7[_0x315345],_0x315345,_0x3d11e7[_0x4ae0f3(0x1ae)],_0xe61346);for(const _0x3d9ff2 of _0x4bf596){const _0xa24df2=_0x25ca81?{..._0x3d9ff2,'path':''+_0x25ca81+_0x3d9ff2[_0x4ae0f3(0x132)]}:_0x3d9ff2;if(_0xa24df2[_0x4ae0f3(0x1a1)]===_0x4ae0f3(0x154))_0x512e4a[_0x4ae0f3(0x13b)](_0xa24df2);else _0x2d40ec[_0x4ae0f3(0x13b)](_0xa24df2);}}if(_0x5833a2[_0x4ae0f3(0x17a)]){const _0x4e1010=_0x40297f?.[_0x4ae0f3(0x120)]?_0x4ae0f3(0x17a):_0x25ca81+_0x4ae0f3(0x17a),_0x742d4b=validateCriteria(_0x5833a2[_0x4ae0f3(0x17a)],_0x4e1010,_0xe61346);for(const _0x1361ac of _0x742d4b){if(_0x1361ac['level']==='error')_0x512e4a[_0x4ae0f3(0x13b)](_0x1361ac);else _0x2d40ec['push'](_0x1361ac);}}}function extractVersionIndex(_0x1b06de){const _0x319b15=a134_0x164d,_0x5db1a9=_0x1b06de[_0x319b15(0x157)](/^journeys\[(\d+)\]\./);return _0x5db1a9?_0x5db1a9[0x1]:undefined;}function deduplicateAcrossVersions(_0x1ab0c3){const _0x4186d3=a134_0x164d,_0x261eaa=new Map();for(let _0x3310e1=0x0;_0x3310e1<_0x1ab0c3[_0x4186d3(0x1ae)];_0x3310e1++){const _0x2e5a10=_0x1ab0c3[_0x3310e1]['code']+':'+_0x1ab0c3[_0x3310e1][_0x4186d3(0x1b1)],_0x13fed8=extractVersionIndex(_0x1ab0c3[_0x3310e1][_0x4186d3(0x132)]),_0x55e065=_0x261eaa[_0x4186d3(0x108)](_0x2e5a10);if(_0x55e065){_0x55e065[_0x4186d3(0x165)][_0x4186d3(0x13b)](_0x3310e1);if(_0x13fed8)_0x55e065['versions'][_0x4186d3(0x13a)](_0x13fed8);}else _0x261eaa[_0x4186d3(0x18a)](_0x2e5a10,{'indices':[_0x3310e1],'versions':new Set(_0x13fed8?[_0x13fed8]:[])});}const _0x3414c0=new Set();for(const {indices:_0x1d4137,versions:_0x1cf87a}of _0x261eaa[_0x4186d3(0x19b)]()){if(_0x1cf87a[_0x4186d3(0x140)]<=0x1)continue;const _0x5dadfb=_0x1ab0c3[_0x1d4137[0x0]];_0x5dadfb[_0x4186d3(0x132)]=_0x5dadfb['path']['replace'](/^journeys\[\d+\]\./,''),_0x5dadfb[_0x4186d3(0x1b1)]=_0x5dadfb[_0x4186d3(0x1b1)]+_0x4186d3(0x160)+_0x1cf87a[_0x4186d3(0x140)]+_0x4186d3(0x196);for(let _0x2a80c4=0x1;_0x2a80c4<_0x1d4137[_0x4186d3(0x1ae)];_0x2a80c4++){_0x3414c0[_0x4186d3(0x13a)](_0x1d4137[_0x2a80c4]);}}const _0xeb815=[..._0x3414c0][_0x4186d3(0x19e)]((_0x480562,_0x5d87d6)=>_0x5d87d6-_0x480562);for(const _0x29674e of _0xeb815){_0x1ab0c3[_0x4186d3(0x134)](_0x29674e,0x1);}}export function validateJourneyDef(_0x31c97b,_0xadea20={},_0x37f8fd={}){const _0x126801=a134_0x164d;if(_0x37f8fd[_0x126801(0x142)])return runJourneySemanticChecks(_0x31c97b,_0xadea20);const _0x2c6276=JourneyDefSchema[_0x126801(0x185)](_0x31c97b);if(_0x2c6276[_0x126801(0x199)])return runJourneySemanticChecks(_0x2c6276[_0x126801(0x16d)],_0xadea20);return zodErrorsToJourneyValidationResult(_0x2c6276[_0x126801(0x154)],_0xadea20);}function zodErrorsToJourneyValidationResult(_0x19e6ef,_0x8660ef){const _0x131e19=a134_0x164d,_0xc15c3=flattenZodIssues(_0x19e6ef[_0x131e19(0x179)]),_0x1ef081=_0xc15c3[_0x131e19(0x117)](_0x2368e2=>{const _0x223a3e=_0x131e19,_0x39cd4d=formatZodPath(_0x2368e2[_0x223a3e(0x132)]),_0x2c53bc=mapJourneyZodIssueToCode(_0x2368e2,_0x39cd4d),_0x47f64a=getLocationFromPath(_0x8660ef['document'],_0x8660ef[_0x223a3e(0x11a)],_0x2368e2[_0x223a3e(0x132)][_0x223a3e(0x117)](_0x29505d=>typeof _0x29505d===_0x223a3e(0x198)?String(_0x29505d):_0x29505d));return{'level':'error','path':_0x39cd4d,'code':_0x2c53bc,'message':_0x2368e2[_0x223a3e(0x1b1)],..._0x47f64a&&{'location':_0x47f64a}};});return{'valid':![],'errors':_0x1ef081,'warnings':[]};}function mapJourneyZodIssueToCode(_0x35e7d0,_0x2626cc){const _0x500c5f=a134_0x164d;if(_0x2626cc==='name')return _0x500c5f(0x18f);if(_0x2626cc['endsWith'](_0x500c5f(0x181))&&_0x2626cc['includes'](_0x500c5f(0x128)))return _0x500c5f(0x145);if(_0x2626cc===_0x500c5f(0x121)||_0x2626cc[_0x500c5f(0x12b)]('.stages'))return _0x500c5f(0x149);if(_0x2626cc===''&&_0x35e7d0['message'][_0x500c5f(0x13c)](_0x500c5f(0x17f)))return _0x500c5f(0x149);if(_0x2626cc[_0x500c5f(0x13c)](_0x500c5f(0x162)))return _0x500c5f(0x10a);return _0x500c5f(0x145);}function runJourneySemanticChecks(_0x31161f,_0x4b46ae){const _0x3a1cea=a134_0x164d,_0x14e2e6=[],_0x472f8f=[];(!_0x31161f[_0x3a1cea(0x163)]||_0x31161f[_0x3a1cea(0x163)][_0x3a1cea(0x180)]()==='')&&_0x14e2e6['push']({'level':_0x3a1cea(0x154),'path':_0x3a1cea(0x163),'code':'MISSING_NAME','message':_0x3a1cea(0x122),'location':getLocationFromPath(_0x4b46ae[_0x3a1cea(0x195)],_0x4b46ae[_0x3a1cea(0x11a)],[_0x3a1cea(0x163)])});const _0x871a18=new Set();if(_0x31161f[_0x3a1cea(0x19d)])for(const _0x13d6cb of Object[_0x3a1cea(0x116)](_0x31161f[_0x3a1cea(0x19d)])){_0x871a18['add'](_0x13d6cb);}const _0x5a1d05=new Set();if(_0x31161f[_0x3a1cea(0x139)])for(const _0x486a76 of Object[_0x3a1cea(0x116)](_0x31161f['activations'])){_0x5a1d05['add'](_0x486a76);}const _0x54da83=new Set(),_0x554942={..._0x4b46ae,'embeddedSegments':_0x871a18,'referencedSegments':_0x54da83,'activationKeys':_0x5a1d05[_0x3a1cea(0x140)]>0x0?_0x5a1d05:undefined};if(_0x31161f[_0x3a1cea(0x19d)])for(const [_0x216ce2,_0x1e6504]of Object[_0x3a1cea(0x1a2)](_0x31161f['segments'])){const _0x3579d5=validateEmbeddedSegment(_0x1e6504,_0x3a1cea(0x169)+_0x216ce2,_0x554942);for(const _0x3a7c92 of _0x3579d5){if(_0x3a7c92[_0x3a1cea(0x1a1)]===_0x3a1cea(0x154))_0x14e2e6[_0x3a1cea(0x13b)](_0x3a7c92);else _0x472f8f['push'](_0x3a7c92);}}const _0x1eba78=!!_0x31161f[_0x3a1cea(0x17a)],_0x3fbd02=_0x31161f[_0x3a1cea(0x167)]?.[_0x3a1cea(0x19a)](_0x523da2=>!!_0x523da2[_0x3a1cea(0x17a)])??![];!_0x1eba78&&!_0x3fbd02&&_0x472f8f[_0x3a1cea(0x13b)]({'level':_0x3a1cea(0x16a),'path':_0x3a1cea(0x17a),'code':_0x3a1cea(0x19c),'message':_0x3a1cea(0x119),'location':getLocationFromPath(_0x4b46ae[_0x3a1cea(0x195)],_0x4b46ae[_0x3a1cea(0x11a)],[_0x3a1cea(0x17a)])});const _0x2a24e9=_0x31161f['journeys']??_0x31161f[_0x3a1cea(0x17b)];if(_0x2a24e9&&_0x2a24e9[_0x3a1cea(0x144)](_0x1f9734=>_0x1f9734[_0x3a1cea(0x11e)]===!![])[_0x3a1cea(0x1ae)]>0x1){const _0xe410f2=_0x31161f[_0x3a1cea(0x167)]?_0x3a1cea(0x167):_0x3a1cea(0x17b);_0x14e2e6['push']({'level':_0x3a1cea(0x154),'path':_0xe410f2,'code':'DUPLICATE_LATEST','message':'Journey\x20can\x20have\x20at\x20most\x20one\x20'+(_0xe410f2===_0x3a1cea(0x167)?_0x3a1cea(0x109):'version')+_0x3a1cea(0x105),'location':getLocationFromPath(_0x4b46ae['document'],_0x4b46ae[_0x3a1cea(0x11a)],[_0xe410f2])});}if(_0x31161f[_0x3a1cea(0x167)]&&_0x31161f[_0x3a1cea(0x167)][_0x3a1cea(0x1ae)]>0x0)for(let _0x4f7921=0x0;_0x4f7921<_0x31161f['journeys'][_0x3a1cea(0x1ae)];_0x4f7921++){const _0x5eae82=_0x31161f[_0x3a1cea(0x167)][_0x4f7921];if(_0x31161f['journeys'][_0x3a1cea(0x1ae)]>0x1&&_0x5eae82[_0x3a1cea(0x138)]===_0x3a1cea(0x174))continue;const _0x42b914=_0x5eae82[_0x3a1cea(0x121)]||[],_0x496b6a=_0x3a1cea(0x1a3)+_0x4f7921+'].',_0xac3bdc=!!_0x5eae82[_0x3a1cea(0x17a)],_0x19a105=_0xac3bdc?{..._0x31161f,'goal':_0x5eae82[_0x3a1cea(0x17a)]}:_0x31161f;validateStagesForVersion(_0x42b914,_0x19a105,_0x554942,_0x496b6a,_0x14e2e6,_0x472f8f,{'goalIsInherited':!_0xac3bdc});}else{if(_0x31161f[_0x3a1cea(0x17b)]&&_0x31161f[_0x3a1cea(0x17b)][_0x3a1cea(0x1ae)]>0x0)for(let _0x59f029=0x0;_0x59f029<_0x31161f[_0x3a1cea(0x17b)][_0x3a1cea(0x1ae)];_0x59f029++){const _0xf8e450=_0x31161f['versions'][_0x59f029];if(_0x31161f[_0x3a1cea(0x17b)]['length']>0x1&&_0xf8e450[_0x3a1cea(0x138)]===_0x3a1cea(0x174))continue;const _0x22ddb2=_0xf8e450[_0x3a1cea(0x121)]||[],_0x448a9f=_0x3a1cea(0x191)+_0x59f029+'].';validateStagesForVersion(_0x22ddb2,_0x31161f,_0x554942,_0x448a9f,_0x14e2e6,_0x472f8f);}else{const _0x2ffdb5=_0x31161f[_0x3a1cea(0x121)]||[];validateStagesForVersion(_0x2ffdb5,_0x31161f,_0x554942,'',_0x14e2e6,_0x472f8f);}}_0x31161f['journeys']&&_0x31161f[_0x3a1cea(0x167)][_0x3a1cea(0x1ae)]>0x1&&(deduplicateAcrossVersions(_0x14e2e6),deduplicateAcrossVersions(_0x472f8f));for(const _0x32194a of _0x871a18){!_0x54da83['has'](_0x32194a)&&!_0x32194a[_0x3a1cea(0x107)](_0x3a1cea(0x14b))&&_0x472f8f[_0x3a1cea(0x13b)]({'level':'warning','path':'segments.'+_0x32194a,'code':_0x3a1cea(0x1a5),'message':_0x3a1cea(0x17e)+_0x32194a+_0x3a1cea(0x11c),'location':getLocationFromPath(_0x4b46ae[_0x3a1cea(0x195)],_0x4b46ae[_0x3a1cea(0x11a)],[_0x3a1cea(0x19d),_0x32194a])});}return{'valid':_0x14e2e6[_0x3a1cea(0x1ae)]===0x0,'errors':_0x14e2e6,'warnings':_0x472f8f};}
1
+ (function(_0x54a319,_0x3cbb9c){const _0x2aa886=a136_0x1779,_0x1959d2=_0x54a319();while(!![]){try{const _0x566686=parseInt(_0x2aa886(0x197))/0x1*(-parseInt(_0x2aa886(0x135))/0x2)+parseInt(_0x2aa886(0x1ab))/0x3+parseInt(_0x2aa886(0x129))/0x4+parseInt(_0x2aa886(0x166))/0x5+parseInt(_0x2aa886(0x193))/0x6*(parseInt(_0x2aa886(0x1b8))/0x7)+parseInt(_0x2aa886(0x16b))/0x8*(parseInt(_0x2aa886(0x15c))/0x9)+-parseInt(_0x2aa886(0x15b))/0xa;if(_0x566686===_0x3cbb9c)break;else _0x1959d2['push'](_0x1959d2['shift']());}catch(_0x2a4f6b){_0x1959d2['push'](_0x1959d2['shift']());}}}(a136_0x23ae,0xac69a));import{JourneyDefSchema}from'./types/journey-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray,validateRuleDef}from'./yaml-validator.js';const MAX_STAGES=0x8;function createIssue(_0x3569d0,_0x1cc71c,_0x4b1816,_0x4b5e4a,_0x45bf8c,_0x4380aa){const _0x512fff=a136_0x1779;return{'level':_0x3569d0,'path':_0x1cc71c,'code':_0x4b1816,'message':_0x4b5e4a,'location':getLocationFromPath(_0x45bf8c[_0x512fff(0x180)],_0x45bf8c[_0x512fff(0x196)],pathToArray(_0x4380aa??_0x1cc71c))};}function validateVersionStructure(_0x2899de,_0x47c6ee){const _0x40f387=a136_0x1779,_0x578e90=[];return _0x2899de[_0x40f387(0x1da)]>MAX_STAGES&&_0x578e90[_0x40f387(0x162)](createIssue(_0x40f387(0x18e),_0x40f387(0x1a3),_0x40f387(0x1bb),_0x40f387(0x172)+_0x2899de[_0x40f387(0x1da)]+_0x40f387(0x1c4)+MAX_STAGES,_0x47c6ee)),_0x578e90;}function validateStageStructure(_0x5228f4,_0x18231d,_0x563778,_0x127d63){const _0x2a1ceb=a136_0x1779,_0xe7d39b=[],_0x5d5075=_0x2a1ceb(0x149)+_0x18231d+']';_0x18231d===0x0&&!_0x5228f4[_0x2a1ceb(0x17e)]&&_0xe7d39b[_0x2a1ceb(0x162)](createIssue(_0x2a1ceb(0x18e),_0x5d5075+_0x2a1ceb(0x169),'MISSING_ENTRY_CRITERIA',_0x2a1ceb(0x1cb)+_0x5228f4[_0x2a1ceb(0x194)]+_0x2a1ceb(0x1c7),_0x127d63,_0x5d5075));const _0xa75cab=_0x18231d===_0x563778-0x1;!_0xa75cab&&!_0x5228f4[_0x2a1ceb(0x1df)]&&_0xe7d39b[_0x2a1ceb(0x162)](createIssue(_0x2a1ceb(0x18e),_0x5d5075+_0x2a1ceb(0x1c9),_0x2a1ceb(0x130),_0x2a1ceb(0x1cb)+_0x5228f4[_0x2a1ceb(0x194)]+'\x27\x20(non-last\x20stage)\x20is\x20missing\x20a\x20milestone',_0x127d63,_0x5d5075));(!_0x5228f4[_0x2a1ceb(0x12f)]||_0x5228f4[_0x2a1ceb(0x12f)][_0x2a1ceb(0x1da)]===0x0)&&_0xe7d39b['push'](createIssue(_0x2a1ceb(0x14a),_0x5d5075+'.exit_criteria',_0x2a1ceb(0x1ce),'Stage\x20\x27'+_0x5228f4[_0x2a1ceb(0x194)]+_0x2a1ceb(0x1c5),_0x127d63,_0x5d5075));const _0x429c61=_0x5228f4[_0x2a1ceb(0x1d3)]?.[_0x2a1ceb(0x1da)]??0x0;if(_0x429c61===0x0)_0xe7d39b['push'](createIssue(_0x2a1ceb(0x18e),_0x5d5075+_0x2a1ceb(0x16e),_0x2a1ceb(0x13a),_0x2a1ceb(0x1cb)+_0x5228f4[_0x2a1ceb(0x194)]+'\x27\x20has\x20no\x20steps',_0x127d63,_0x5d5075+'.steps'));else{if(_0x429c61===0x1)_0xe7d39b[_0x2a1ceb(0x162)](createIssue(_0x2a1ceb(0x14a),_0x5d5075+_0x2a1ceb(0x16e),_0x2a1ceb(0x13a),_0x2a1ceb(0x1cb)+_0x5228f4[_0x2a1ceb(0x194)]+_0x2a1ceb(0x134),_0x127d63,_0x5d5075+'.steps'));else _0x429c61<=0x3&&_0xe7d39b[_0x2a1ceb(0x162)](createIssue('warning',_0x5d5075+_0x2a1ceb(0x16e),'FEW_STEPS','Stage\x20\x27'+_0x5228f4['name']+_0x2a1ceb(0x16a)+_0x429c61+_0x2a1ceb(0x192),_0x127d63,_0x5d5075+'.steps'));}return _0xe7d39b;}function validateStep(_0x5bb5e7,_0x27e3f5,_0x261a5f,_0x2c9ed0){const _0x9303d6=a136_0x1779,_0x17c01e=[];if(_0x5bb5e7['type']===_0x9303d6(0x1dd))return _0x5bb5e7['next']&&_0x17c01e[_0x9303d6(0x162)](createIssue(_0x9303d6(0x18e),_0x27e3f5+_0x9303d6(0x1db),_0x9303d6(0x19a),_0x9303d6(0x167)+_0x5bb5e7[_0x9303d6(0x194)]+'\x27\x20should\x20not\x20have\x20a\x20\x27next\x27\x20field',_0x261a5f)),_0x9303d6(0x14c)in _0x5bb5e7&&_0x5bb5e7[_0x9303d6(0x14c)]!==undefined&&_0x17c01e[_0x9303d6(0x162)](createIssue(_0x9303d6(0x18e),_0x27e3f5+_0x9303d6(0x1b7),_0x9303d6(0x19a),'End\x20step\x20\x27'+_0x5bb5e7['name']+_0x9303d6(0x1c0),_0x261a5f)),_0x17c01e;_0x5bb5e7[_0x9303d6(0x13c)]&&(_0x261a5f[_0x9303d6(0x144)]&&!_0x261a5f[_0x9303d6(0x144)][_0x9303d6(0x146)](_0x5bb5e7[_0x9303d6(0x13c)])&&_0x17c01e[_0x9303d6(0x162)](createIssue(_0x9303d6(0x18e),_0x27e3f5+_0x9303d6(0x1db),'INVALID_NEXT_REFERENCE',_0x9303d6(0x198)+_0x5bb5e7[_0x9303d6(0x13c)]+'\x27',_0x261a5f)));switch(_0x5bb5e7[_0x9303d6(0x12e)]){case _0x9303d6(0x15d):_0x17c01e['push'](...validateWaitStep(_0x5bb5e7,_0x27e3f5,_0x261a5f,_0x2c9ed0));break;case'activation':_0x17c01e[_0x9303d6(0x162)](...validateActivationStep(_0x5bb5e7,_0x27e3f5,_0x261a5f));break;case'decision_point':_0x17c01e[_0x9303d6(0x162)](...validateDecisionPointStep(_0x5bb5e7,_0x27e3f5,_0x261a5f,_0x2c9ed0));break;case _0x9303d6(0x137):_0x17c01e[_0x9303d6(0x162)](...validateAbTestStep(_0x5bb5e7,_0x27e3f5,_0x261a5f,_0x2c9ed0));break;case _0x9303d6(0x1a2):_0x17c01e[_0x9303d6(0x162)](...validateJumpStep(_0x5bb5e7,_0x27e3f5,_0x261a5f));break;}return _0x17c01e;}function validateWaitStep(_0x41bc82,_0x35b0df,_0x4ee3f5,_0x2f9971){const _0x3391af=a136_0x1779,_0x4e81ed=[];if(!_0x41bc82[_0x3391af(0x14c)])return _0x4e81ed[_0x3391af(0x162)](createIssue(_0x3391af(0x18e),_0x35b0df+_0x3391af(0x1b7),'MISSING_WAIT_PARAMS','Wait\x20step\x20requires\x20parameters\x20in\x20\x22with\x22\x20field',_0x4ee3f5,_0x35b0df)),_0x4e81ed;if(_0x41bc82[_0x3391af(0x14c)][_0x3391af(0x174)]){const _0x498e7d=_0x41bc82['with'][_0x3391af(0x174)];if(_0x498e7d[_0x3391af(0x15f)]){_0x4ee3f5[_0x3391af(0x14b)]?.[_0x3391af(0x133)](_0x498e7d[_0x3391af(0x15f)]);!_0x498e7d[_0x3391af(0x15f)][_0x3391af(0x186)]('ref:')&&(_0x4ee3f5[_0x3391af(0x175)]&&!_0x4ee3f5[_0x3391af(0x175)]['has'](_0x498e7d['segment'])&&_0x4e81ed[_0x3391af(0x162)](createIssue(_0x3391af(0x18e),_0x35b0df+_0x3391af(0x1be),_0x3391af(0x142),_0x3391af(0x13b)+_0x498e7d[_0x3391af(0x15f)]+_0x3391af(0x18c),_0x4ee3f5)));_0x498e7d['next']&&_0x4ee3f5[_0x3391af(0x144)]&&!_0x4ee3f5[_0x3391af(0x144)]['has'](_0x498e7d[_0x3391af(0x13c)])&&_0x4e81ed[_0x3391af(0x162)](createIssue('error',_0x35b0df+_0x3391af(0x1d1),'INVALID_NEXT_REFERENCE',_0x3391af(0x195)+_0x498e7d[_0x3391af(0x13c)]+'\x27',_0x4ee3f5));_0x498e7d[_0x3391af(0x17a)]?.[_0x3391af(0x13c)]&&_0x4ee3f5[_0x3391af(0x144)]&&!_0x4ee3f5[_0x3391af(0x144)][_0x3391af(0x146)](_0x498e7d[_0x3391af(0x17a)]['next'])&&_0x4e81ed['push'](createIssue('error',_0x35b0df+_0x3391af(0x199),_0x3391af(0x160),_0x3391af(0x15e)+_0x498e7d[_0x3391af(0x17a)][_0x3391af(0x13c)]+'\x27',_0x4ee3f5));const _0x4c1096=_0x498e7d[_0x3391af(0x13c)]||_0x41bc82[_0x3391af(0x13c)],_0x48abb3=_0x498e7d[_0x3391af(0x17a)]?.[_0x3391af(0x13c)]||_0x41bc82[_0x3391af(0x13c)];if(_0x4c1096){const _0x2e4328=_0x2f9971[_0x3391af(0x1d8)](_0x4c1096);_0x2e4328?.[_0x3391af(0x12e)]==='merge'&&_0x4e81ed['push'](createIssue('warning',_0x35b0df+_0x3391af(0x1d1),_0x3391af(0x1d4),_0x3391af(0x12d)+_0x4c1096+'\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.',_0x4ee3f5,_0x35b0df+_0x3391af(0x1ac)));}if(_0x48abb3){const _0x32f328=_0x2f9971[_0x3391af(0x1d8)](_0x48abb3);_0x32f328?.[_0x3391af(0x12e)]===_0x3391af(0x1a4)&&_0x4e81ed[_0x3391af(0x162)](createIssue(_0x3391af(0x14a),_0x35b0df+_0x3391af(0x199),_0x3391af(0x1d4),'Wait\x20condition\x20timeout\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27'+_0x48abb3+_0x3391af(0x131),_0x4ee3f5,_0x35b0df+_0x3391af(0x14f)));}}}return _0x4e81ed;}function validateActivationStep(_0x3e9762,_0x169a9f,_0x27c3ec){const _0xe11898=a136_0x1779,_0x12b7a7=[];if(!_0x3e9762[_0xe11898(0x14c)]?.['activation'])return _0x12b7a7[_0xe11898(0x162)](createIssue(_0xe11898(0x18e),_0x169a9f+_0xe11898(0x1b6),_0xe11898(0x1ba),_0xe11898(0x1cf),_0x27c3ec,_0x169a9f)),_0x12b7a7;const _0x5c0e56=_0x3e9762['with']['activation'];return _0x27c3ec['activationKeys']&&!_0x5c0e56[_0xe11898(0x186)]('ref:')&&(!_0x27c3ec[_0xe11898(0x18a)][_0xe11898(0x146)](_0x5c0e56)&&_0x12b7a7[_0xe11898(0x162)](createIssue(_0xe11898(0x18e),_0x169a9f+'.with.activation',_0xe11898(0x1b2),'Activation\x20step\x20references\x20undefined\x20activation\x20\x27'+_0x5c0e56+_0xe11898(0x145),_0x27c3ec))),_0x12b7a7;}function validateDecisionPointStep(_0x2daeb3,_0x37f8e6,_0x1bea6b,_0x2e9e2e){const _0x8b9fdf=a136_0x1779,_0x5d22fc=[];if(!_0x2daeb3['with']?.['branches']||_0x2daeb3['with'][_0x8b9fdf(0x158)][_0x8b9fdf(0x1da)]===0x0)return _0x5d22fc[_0x8b9fdf(0x162)](createIssue(_0x8b9fdf(0x18e),_0x37f8e6+_0x8b9fdf(0x1b0),_0x8b9fdf(0x1af),_0x8b9fdf(0x188),_0x1bea6b,_0x37f8e6)),_0x5d22fc;for(let _0x491551=0x0;_0x491551<_0x2daeb3[_0x8b9fdf(0x14c)]['branches'][_0x8b9fdf(0x1da)];_0x491551++){const _0x17711c=_0x2daeb3[_0x8b9fdf(0x14c)][_0x8b9fdf(0x158)][_0x491551],_0x148649=_0x37f8e6+_0x8b9fdf(0x151)+_0x491551+']';_0x17711c[_0x8b9fdf(0x15f)]&&!_0x17711c[_0x8b9fdf(0x179)]&&(_0x1bea6b['referencedSegments']?.[_0x8b9fdf(0x133)](_0x17711c[_0x8b9fdf(0x15f)]),!_0x17711c['segment'][_0x8b9fdf(0x186)](_0x8b9fdf(0x16c))&&(_0x1bea6b['embeddedSegments']&&!_0x1bea6b[_0x8b9fdf(0x175)]['has'](_0x17711c['segment'])&&_0x5d22fc['push'](createIssue(_0x8b9fdf(0x18e),_0x148649+_0x8b9fdf(0x1ad),_0x8b9fdf(0x142),'Decision\x20branch\x20references\x20undefined\x20segment\x20\x27'+_0x17711c['segment']+'\x27',_0x1bea6b))));_0x17711c['next']&&_0x1bea6b[_0x8b9fdf(0x144)]&&!_0x1bea6b[_0x8b9fdf(0x144)][_0x8b9fdf(0x146)](_0x17711c['next'])&&_0x5d22fc['push'](createIssue('error',_0x148649+_0x8b9fdf(0x1db),_0x8b9fdf(0x160),_0x8b9fdf(0x1a0)+_0x17711c[_0x8b9fdf(0x13c)]+'\x27',_0x1bea6b));if(_0x17711c[_0x8b9fdf(0x13c)]){const _0x26c11f=_0x2e9e2e[_0x8b9fdf(0x1d8)](_0x17711c[_0x8b9fdf(0x13c)]);_0x26c11f?.[_0x8b9fdf(0x12e)]==='merge'&&_0x5d22fc['push'](createIssue(_0x8b9fdf(0x14a),_0x148649+_0x8b9fdf(0x1db),'BRANCH_DIRECTLY_TO_MERGE',_0x8b9fdf(0x19c)+_0x17711c['name']+_0x8b9fdf(0x13d)+_0x17711c[_0x8b9fdf(0x13c)]+'\x27\x20with\x20no\x20action\x20in\x20between',_0x1bea6b));}}return _0x5d22fc;}function validateAbTestStep(_0x5a3176,_0x3abd81,_0x8b0f2e,_0x1eacf4){const _0x5ed1cc=a136_0x1779,_0x4a2137=[];if(!_0x5a3176[_0x5ed1cc(0x14c)]?.[_0x5ed1cc(0x12b)]||_0x5a3176[_0x5ed1cc(0x14c)]['variants'][_0x5ed1cc(0x1da)]===0x0)return _0x4a2137[_0x5ed1cc(0x162)](createIssue(_0x5ed1cc(0x18e),_0x3abd81+'.with.variants',_0x5ed1cc(0x1af),_0x5ed1cc(0x128),_0x8b0f2e,_0x3abd81)),_0x4a2137;const _0x1dcfc7=_0x5a3176[_0x5ed1cc(0x14c)][_0x5ed1cc(0x12b)]['reduce']((_0x189819,_0x32eb1c)=>_0x189819+(_0x32eb1c['percentage']||0x0),0x0);Math['abs'](_0x1dcfc7-0x64)>0.01&&_0x4a2137[_0x5ed1cc(0x162)](createIssue(_0x5ed1cc(0x18e),_0x3abd81+_0x5ed1cc(0x168),_0x5ed1cc(0x154),_0x5ed1cc(0x1b5)+_0x1dcfc7+'%)',_0x8b0f2e));for(let _0x12171c=0x0;_0x12171c<_0x5a3176['with'][_0x5ed1cc(0x12b)]['length'];_0x12171c++){const _0x161f43=_0x5a3176[_0x5ed1cc(0x14c)][_0x5ed1cc(0x12b)][_0x12171c],_0x23f165=_0x3abd81+_0x5ed1cc(0x1c1)+_0x12171c+']';_0x161f43['next']&&_0x8b0f2e['stepNames']&&!_0x8b0f2e['stepNames'][_0x5ed1cc(0x146)](_0x161f43['next'])&&_0x4a2137[_0x5ed1cc(0x162)](createIssue(_0x5ed1cc(0x18e),_0x23f165+_0x5ed1cc(0x1db),_0x5ed1cc(0x160),_0x5ed1cc(0x189)+_0x161f43[_0x5ed1cc(0x13c)]+'\x27',_0x8b0f2e));if(_0x161f43[_0x5ed1cc(0x13c)]){const _0x293ca2=_0x1eacf4[_0x5ed1cc(0x1d8)](_0x161f43[_0x5ed1cc(0x13c)]);_0x293ca2?.[_0x5ed1cc(0x12e)]===_0x5ed1cc(0x1a4)&&_0x4a2137['push'](createIssue(_0x5ed1cc(0x14a),_0x23f165+_0x5ed1cc(0x1db),'BRANCH_DIRECTLY_TO_MERGE','A/B\x20test\x20variant\x20\x27'+_0x161f43[_0x5ed1cc(0x194)]+_0x5ed1cc(0x13d)+_0x161f43[_0x5ed1cc(0x13c)]+_0x5ed1cc(0x177),_0x8b0f2e));}}return _0x4a2137;}function validateJumpStep(_0x43e0c1,_0x331f6e,_0x4fb42f){const _0xfdc000=a136_0x1779,_0x5bc4b2=[];if(!_0x43e0c1[_0xfdc000(0x14c)]?.['target'])return _0x5bc4b2[_0xfdc000(0x162)](createIssue(_0xfdc000(0x18e),_0x331f6e+_0xfdc000(0x148),'INVALID_JUMP_TARGET','Jump\x20step\x20requires\x20a\x20target',_0x4fb42f,_0x331f6e)),_0x5bc4b2;return(!_0x43e0c1[_0xfdc000(0x14c)][_0xfdc000(0x1d2)]['journey']||!_0x43e0c1[_0xfdc000(0x14c)][_0xfdc000(0x1d2)][_0xfdc000(0x181)])&&_0x5bc4b2[_0xfdc000(0x162)](createIssue(_0xfdc000(0x18e),_0x331f6e+_0xfdc000(0x148),'INVALID_JUMP_TARGET',_0xfdc000(0x19f),_0x4fb42f)),_0x5bc4b2;}function buildConvergenceMap(_0x2e98b2){const _0x47e7d4=a136_0x1779,_0x1a93a7=new Map();function _0x3ea60b(_0x3b80c6,_0x575ec9){const _0x3546bd=a136_0x1779,_0x3fbdc4=_0x1a93a7[_0x3546bd(0x1d8)](_0x3b80c6)||[];_0x3fbdc4[_0x3546bd(0x162)](_0x575ec9),_0x1a93a7[_0x3546bd(0x16d)](_0x3b80c6,_0x3fbdc4);}for(const _0x36385a of _0x2e98b2){_0x36385a[_0x47e7d4(0x13c)]&&_0x3ea60b(_0x36385a['next'],{'stepName':_0x36385a[_0x47e7d4(0x194)],'description':_0x47e7d4(0x156)+_0x36385a[_0x47e7d4(0x194)]+'\x27'});if(_0x36385a['type']===_0x47e7d4(0x1a9)&&_0x36385a[_0x47e7d4(0x14c)]?.[_0x47e7d4(0x158)])for(const _0x1d2114 of _0x36385a[_0x47e7d4(0x14c)][_0x47e7d4(0x158)]){_0x1d2114['next']&&_0x3ea60b(_0x1d2114[_0x47e7d4(0x13c)],{'stepName':_0x36385a[_0x47e7d4(0x194)],'description':_0x47e7d4(0x14e)+_0x1d2114['name']+_0x47e7d4(0x1cd)+_0x36385a[_0x47e7d4(0x194)]+'\x27'});}if(_0x36385a[_0x47e7d4(0x12e)]===_0x47e7d4(0x137)&&_0x36385a[_0x47e7d4(0x14c)]?.[_0x47e7d4(0x12b)])for(const _0x1ed5d1 of _0x36385a[_0x47e7d4(0x14c)][_0x47e7d4(0x12b)]){_0x1ed5d1[_0x47e7d4(0x13c)]&&_0x3ea60b(_0x1ed5d1[_0x47e7d4(0x13c)],{'stepName':_0x36385a['name'],'description':_0x47e7d4(0x139)+_0x1ed5d1[_0x47e7d4(0x194)]+'\x27\x20of\x20\x27'+_0x36385a[_0x47e7d4(0x194)]+'\x27'});}_0x36385a['type']===_0x47e7d4(0x15d)&&_0x36385a[_0x47e7d4(0x14c)]?.[_0x47e7d4(0x174)]&&(_0x36385a[_0x47e7d4(0x14c)][_0x47e7d4(0x174)]['next']&&_0x3ea60b(_0x36385a['with'][_0x47e7d4(0x174)][_0x47e7d4(0x13c)],{'stepName':_0x36385a[_0x47e7d4(0x194)],'description':'condition\x20of\x20\x27'+_0x36385a[_0x47e7d4(0x194)]+'\x27'}),_0x36385a['with']['condition'][_0x47e7d4(0x17a)]?.['next']&&_0x3ea60b(_0x36385a['with'][_0x47e7d4(0x174)][_0x47e7d4(0x17a)][_0x47e7d4(0x13c)],{'stepName':_0x36385a['name'],'description':_0x47e7d4(0x1bc)+_0x36385a[_0x47e7d4(0x194)]+'\x27'}));}return _0x1a93a7;}function a136_0x23ae(){const _0x485101=['\x27\x20leads\x20to\x20another\x20merge\x20step\x20\x27','Merge\x20step\x20\x27','\x20steps\x20(may\x20be\x20too\x20simple)','610854PiEBXo','name','Wait\x20condition\x20references\x20non-existent\x20step\x20\x27','source','1pHPEQZ','Step\x20references\x20non-existent\x20step\x20\x27','.with.condition.timeout.next','END_STEP_HAS_NEXT_OR_WITH','keys','Decision\x20branch\x20\x27','SINGLE_INPUT_MERGE','version','Jump\x20target\x20requires\x20both\x20journey\x20and\x20stage\x20names','Decision\x20branch\x20references\x20non-existent\x20step\x20\x27','Journey\x20has\x20no\x20goal\x20defined','jump','stages','merge','Duplicate\x20step\x20name\x20\x27','data','DUPLICATE_LATEST','\x27.\x20Merge\x20chains\x20are\x20not\x20allowed.','decision_point','versions[','2012793KQALwO','.with.condition','.segment','rule','MISSING_CONDITIONS','.with.branches','Journey\x20must\x20have\x20at\x20least\x20one\x20stage','MISSING_ACTIVATION_DEFINITION','.name','\x27\x20has\x20no\x20end\x20step','A/B\x20test\x20variant\x20percentages\x20must\x20sum\x20to\x20100%\x20(got\x20','.with.activation','.with','42uupfgf','launched','MISSING_ACTIVATION_REF','TOO_MANY_STAGES','timeout\x20of\x20\x27','DUPLICATE_STEP_NAME','.with.condition.segment','endsWith','\x27\x20should\x20not\x20have\x20a\x20\x27with\x27\x20field','.with.variants[','goalIsInherited','MISSING_END_STEP','\x20stages\x20but\x20maximum\x20is\x20','\x27\x20has\x20no\x20exit_criteria\x20defined','\x27\x20is\x20defined\x20but\x20not\x20referenced\x20in\x20the\x20journey','\x27\x20is\x20missing\x20entry_criteria\x20(required\x20for\x20the\x20first\x20stage)','MISSING_GOAL','.milestone',').\x20Merge\x20is\x20unnecessary.','Stage\x20\x27','level','\x27\x20of\x20\x27','MISSING_EXIT_CRITERIA','Activation\x20step\x20requires\x20an\x20activation\x20reference','trim','.with.condition.next','target','steps','BRANCH_DIRECTLY_TO_MERGE','Journey\x20can\x20have\x20at\x20most\x20one\x20','Journey\x20name\x20is\x20required','Embedded\x20segment\x20\x27','get','state','length','.next','match','end','.stages','milestone','indices','Multiple\x20paths\x20converge\x20on\x20non-merge\x20step\x20\x27','A/B\x20test\x20requires\x20at\x20least\x20one\x20variant','1873036tIPGso','journeys','variants','JOURNEY_SCHEMA_ERROR','Wait\x20condition\x20matched\x20path\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','type','exit_criteria','MISSING_MILESTONE','\x27\x20with\x20no\x20action.\x20Each\x20branch\x20of\x20a\x20condition\x20wait\x20must\x20perform\x20a\x20different\x20action.','activation','add','\x27\x20has\x20only\x201\x20step\x20(may\x20be\x20too\x20simple)','2166940FNYMYV','segments.','ab_test','safeParse','variant\x20\x27','INSUFFICIENT_STEPS','Wait\x20condition\x20references\x20undefined\x20segment\x20\x27','next','\x27\x20goes\x20directly\x20to\x20merge\x20step\x20\x27','values','journeys[','excluded_','map','MISSING_SEGMENT_REFERENCE','UNUSED_EMBEDDED_SEGMENT','stepNames','\x27.\x20Define\x20it\x20in\x20the\x20\x27activations\x27\x20section\x20or\x20use\x20\x27ref:Name\x27\x20for\x20external\x20activations.','has','activations','.with.target','stages[','warning','referencedSegments','with','\x27\x20(from:\x20','branch\x20\x27','.with.condition.timeout','sort','.with.branches[',').\x20Use\x20a\x20merge\x20step.','description','INVALID_AB_TEST_PERCENTAGES','.steps[','step\x20\x27','success','branches','replace','skipSchema','13670690PDtDXO','95868klYSnd','wait','Wait\x20timeout\x20references\x20non-existent\x20step\x20\x27','segment','INVALID_NEXT_REFERENCE','includes','push','segments','code','filter','3198765RyuZDz','End\x20step\x20\x27','.with.variants','.entry_criteria','\x27\x20has\x20only\x20','576NQwfls','ref:','set','.steps','path','MISSING_NAME','symbol','Journey\x20has\x20','MISSING_STAGES','condition','embeddedSegments','versions','\x27\x20with\x20no\x20action\x20in\x20between','some','excluded','timeout','journeys,\x20stages,\x20or\x20versions','\x20(across\x20','MERGE_TO_MERGE_CHAIN','entry_criteria','.exit_criteria[','document','stage','goal','issues','.rule','size','startsWith','\x27\x20(first\x20defined\x20at\x20steps[','Decision\x20point\x20requires\x20at\x20least\x20one\x20branch','A/B\x20test\x20variant\x20references\x20non-existent\x20step\x20\x27','activationKeys','every','\x27.\x20Define\x20it\x20in\x20the\x20\x27segments\x27\x20section\x20or\x20use\x20\x27ref:Segment\x20Name\x27\x20for\x20external\x20segments.','message','error','Criteria\x20references\x20undefined\x20segment\x20\x27'];a136_0x23ae=function(){return _0x485101;};return a136_0x23ae();}function validateFlowControl(_0x565a26,_0x24a479,_0x2c69db){const _0x44cf50=a136_0x1779,_0x6d007f=[],_0x508a29='stages['+_0x24a479+']',_0x27235a=_0x565a26[_0x44cf50(0x1d3)]||[];if(_0x27235a[_0x44cf50(0x1da)]===0x0)return _0x6d007f;const _0x217f6c=new Map();for(const _0x5b954d of _0x27235a){_0x5b954d[_0x44cf50(0x194)]&&_0x217f6c[_0x44cf50(0x16d)](_0x5b954d[_0x44cf50(0x194)],_0x5b954d);}const _0x303759=buildConvergenceMap(_0x27235a),_0x164fbe=_0x27235a[_0x44cf50(0x178)](_0x54ecef=>_0x54ecef[_0x44cf50(0x12e)]===_0x44cf50(0x1dd));!_0x164fbe&&_0x6d007f[_0x44cf50(0x162)](createIssue(_0x44cf50(0x18e),_0x508a29+_0x44cf50(0x16e),_0x44cf50(0x1c3),_0x44cf50(0x1cb)+_0x565a26[_0x44cf50(0x194)]+_0x44cf50(0x1b4),_0x2c69db));for(const [_0xa0570b,_0x41630f]of _0x303759){const _0x4ddc80=_0x217f6c['get'](_0xa0570b);if(!_0x4ddc80)continue;if(_0x41630f[_0x44cf50(0x1da)]>0x1&&_0x4ddc80[_0x44cf50(0x12e)]!=='merge'){const _0x8f38aa=_0x41630f[_0x44cf50(0x141)](_0x318b0b=>_0x318b0b[_0x44cf50(0x153)])['join'](',\x20');_0x6d007f[_0x44cf50(0x162)](createIssue(_0x44cf50(0x18e),_0x508a29+_0x44cf50(0x16e),'CONVERGENCE_WITHOUT_MERGE',_0x44cf50(0x127)+_0xa0570b+_0x44cf50(0x14d)+_0x8f38aa+_0x44cf50(0x152),_0x2c69db));}_0x41630f[_0x44cf50(0x1da)]===0x1&&_0x4ddc80[_0x44cf50(0x12e)]==='merge'&&_0x6d007f[_0x44cf50(0x162)](createIssue(_0x44cf50(0x14a),_0x508a29+_0x44cf50(0x16e),_0x44cf50(0x19d),_0x44cf50(0x191)+_0xa0570b+'\x27\x20has\x20only\x20one\x20input\x20(from:\x20'+_0x41630f[0x0][_0x44cf50(0x153)]+_0x44cf50(0x1ca),_0x2c69db));}for(const _0x79e0db of _0x27235a){if(_0x79e0db[_0x44cf50(0x12e)]===_0x44cf50(0x1a4)&&_0x79e0db[_0x44cf50(0x13c)]){const _0x14621b=_0x217f6c[_0x44cf50(0x1d8)](_0x79e0db['next']);_0x14621b?.[_0x44cf50(0x12e)]===_0x44cf50(0x1a4)&&_0x6d007f[_0x44cf50(0x162)](createIssue(_0x44cf50(0x18e),_0x508a29+_0x44cf50(0x16e),_0x44cf50(0x17d),_0x44cf50(0x191)+_0x79e0db['name']+_0x44cf50(0x190)+_0x79e0db[_0x44cf50(0x13c)]+_0x44cf50(0x1a8),_0x2c69db));}}return _0x6d007f;}function a136_0x1779(_0x599d84,_0x22f252){_0x599d84=_0x599d84-0x127;const _0x23ae4c=a136_0x23ae();let _0x17799e=_0x23ae4c[_0x599d84];return _0x17799e;}function validateCriteria(_0x526f2e,_0x43b47f,_0x9dd6b0){const _0x35c617=a136_0x1779,_0x101b60=[];return _0x526f2e['segment']&&(_0x9dd6b0['referencedSegments']?.[_0x35c617(0x133)](_0x526f2e[_0x35c617(0x15f)]),!_0x526f2e['segment'][_0x35c617(0x186)]('ref:')&&(_0x9dd6b0['embeddedSegments']&&!_0x9dd6b0[_0x35c617(0x175)][_0x35c617(0x146)](_0x526f2e[_0x35c617(0x15f)])&&_0x101b60[_0x35c617(0x162)](createIssue(_0x35c617(0x18e),_0x43b47f+'.segment',_0x35c617(0x142),_0x35c617(0x18f)+_0x526f2e['segment']+'\x27',_0x9dd6b0)))),_0x101b60;}function validateEmbeddedSegment(_0x58f9fe,_0x55ff1f,_0xaec407){const _0x13d25c=a136_0x1779,_0x11627d=[];return _0x58f9fe['rule']&&_0x11627d[_0x13d25c(0x162)](...validateRuleDef(_0x58f9fe[_0x13d25c(0x1ae)],_0x55ff1f+_0x13d25c(0x184),_0xaec407)),_0x11627d;}function validateStage(_0x4f8a63,_0x318c8c,_0x12b720,_0x25e826){const _0x29c85d=a136_0x1779,_0x289e93=[],_0x2d1a55='stages['+_0x318c8c+']',_0x16f81e=new Map(),_0x57fb6e=new Map();if(_0x4f8a63[_0x29c85d(0x1d3)]){for(let _0x302c80=0x0;_0x302c80<_0x4f8a63[_0x29c85d(0x1d3)][_0x29c85d(0x1da)];_0x302c80++){const _0x3479df=_0x4f8a63[_0x29c85d(0x1d3)][_0x302c80];_0x3479df['name']&&_0x16f81e[_0x29c85d(0x16d)](_0x3479df[_0x29c85d(0x194)],_0x3479df);}for(let _0x36df8f=0x0;_0x36df8f<_0x4f8a63[_0x29c85d(0x1d3)][_0x29c85d(0x1da)];_0x36df8f++){const _0x59e47c=_0x4f8a63[_0x29c85d(0x1d3)][_0x36df8f],_0x48811d=_0x2d1a55+_0x29c85d(0x155)+_0x36df8f+']';if(_0x59e47c[_0x29c85d(0x194)]){if(_0x57fb6e['has'](_0x59e47c[_0x29c85d(0x194)])){const _0x40cf28=_0x57fb6e['get'](_0x59e47c[_0x29c85d(0x194)]);_0x289e93[_0x29c85d(0x162)](createIssue(_0x29c85d(0x18e),_0x48811d+_0x29c85d(0x1b3),_0x29c85d(0x1bd),_0x29c85d(0x1a5)+_0x59e47c[_0x29c85d(0x194)]+_0x29c85d(0x187)+_0x40cf28+'])',_0x25e826));}else _0x57fb6e[_0x29c85d(0x16d)](_0x59e47c['name'],_0x36df8f);}_0x289e93[_0x29c85d(0x162)](...validateStep(_0x59e47c,_0x48811d,_0x25e826,_0x16f81e));}}_0x4f8a63['entry_criteria']&&_0x289e93['push'](...validateCriteria(_0x4f8a63['entry_criteria'],_0x2d1a55+'.entry_criteria',_0x25e826));if(_0x4f8a63['exit_criteria'])for(let _0x43644f=0x0;_0x43644f<_0x4f8a63['exit_criteria']['length'];_0x43644f++){_0x289e93[_0x29c85d(0x162)](...validateCriteria(_0x4f8a63[_0x29c85d(0x12f)][_0x43644f],_0x2d1a55+_0x29c85d(0x17f)+_0x43644f+']',_0x25e826));}return _0x4f8a63[_0x29c85d(0x1df)]&&_0x289e93['push'](...validateCriteria(_0x4f8a63['milestone'],_0x2d1a55+_0x29c85d(0x1c9),_0x25e826)),_0x289e93['push'](...validateStageStructure(_0x4f8a63,_0x318c8c,_0x12b720,_0x25e826)),_0x289e93[_0x29c85d(0x162)](...validateFlowControl(_0x4f8a63,_0x318c8c,_0x25e826)),_0x289e93;}function validateStagesForVersion(_0x487732,_0x5ece82,_0x373aef,_0x15ab3e,_0x4257b4,_0xdf7e9d,_0x28ef1a){const _0xff8ab3=a136_0x1779;if(_0x487732[_0xff8ab3(0x1da)]===0x0){_0x4257b4[_0xff8ab3(0x162)]({'level':'error','path':_0x15ab3e+_0xff8ab3(0x1a3),'code':'MISSING_STAGES','message':_0xff8ab3(0x1b1),'location':getLocationFromPath(_0x373aef[_0xff8ab3(0x180)],_0x373aef[_0xff8ab3(0x196)],[_0xff8ab3(0x1a3)])});return;}const _0x4286c9=new Set();for(const _0x243941 of _0x487732){if(_0x243941[_0xff8ab3(0x1d3)])for(const _0x2f51c3 of _0x243941[_0xff8ab3(0x1d3)]){_0x2f51c3[_0xff8ab3(0x194)]&&_0x4286c9[_0xff8ab3(0x133)](_0x2f51c3[_0xff8ab3(0x194)]);}}const _0x1282c3={..._0x373aef,'stepNames':_0x4286c9},_0xf87c6c=validateVersionStructure(_0x487732,_0x1282c3);for(const _0x5492ba of _0xf87c6c){const _0x34d0e9=_0x15ab3e?{..._0x5492ba,'path':''+_0x15ab3e+_0x5492ba[_0xff8ab3(0x16f)]}:_0x5492ba;if(_0x34d0e9[_0xff8ab3(0x1cc)]==='error')_0x4257b4[_0xff8ab3(0x162)](_0x34d0e9);else _0xdf7e9d[_0xff8ab3(0x162)](_0x34d0e9);}for(let _0x122d6b=0x0;_0x122d6b<_0x487732[_0xff8ab3(0x1da)];_0x122d6b++){const _0x4e7739=validateStage(_0x487732[_0x122d6b],_0x122d6b,_0x487732[_0xff8ab3(0x1da)],_0x1282c3);for(const _0x5b3996 of _0x4e7739){const _0x327249=_0x15ab3e?{..._0x5b3996,'path':''+_0x15ab3e+_0x5b3996['path']}:_0x5b3996;if(_0x327249[_0xff8ab3(0x1cc)]==='error')_0x4257b4[_0xff8ab3(0x162)](_0x327249);else _0xdf7e9d[_0xff8ab3(0x162)](_0x327249);}}if(_0x5ece82['goal']){const _0x38abb=_0x28ef1a?.[_0xff8ab3(0x1c2)]?_0xff8ab3(0x182):_0x15ab3e+_0xff8ab3(0x182),_0x2a7af3=validateCriteria(_0x5ece82['goal'],_0x38abb,_0x1282c3);for(const _0x4d76e3 of _0x2a7af3){if(_0x4d76e3[_0xff8ab3(0x1cc)]===_0xff8ab3(0x18e))_0x4257b4[_0xff8ab3(0x162)](_0x4d76e3);else _0xdf7e9d[_0xff8ab3(0x162)](_0x4d76e3);}}}function extractVersionIndex(_0x444113){const _0x48f770=a136_0x1779,_0x43fcbd=_0x444113[_0x48f770(0x1dc)](/^journeys\[(\d+)\]\./);return _0x43fcbd?_0x43fcbd[0x1]:undefined;}function deduplicateAcrossVersions(_0xc1306b){const _0x56cc99=a136_0x1779,_0x2cc581=new Map();for(let _0x1f9ca4=0x0;_0x1f9ca4<_0xc1306b[_0x56cc99(0x1da)];_0x1f9ca4++){const _0x2982e1=_0xc1306b[_0x1f9ca4][_0x56cc99(0x164)]+':'+_0xc1306b[_0x1f9ca4][_0x56cc99(0x18d)],_0x4ed9d4=extractVersionIndex(_0xc1306b[_0x1f9ca4][_0x56cc99(0x16f)]),_0x45c815=_0x2cc581[_0x56cc99(0x1d8)](_0x2982e1);if(_0x45c815){_0x45c815[_0x56cc99(0x1e0)][_0x56cc99(0x162)](_0x1f9ca4);if(_0x4ed9d4)_0x45c815[_0x56cc99(0x176)]['add'](_0x4ed9d4);}else _0x2cc581[_0x56cc99(0x16d)](_0x2982e1,{'indices':[_0x1f9ca4],'versions':new Set(_0x4ed9d4?[_0x4ed9d4]:[])});}const _0x4d7d68=new Set();for(const {indices:_0x1b873b,versions:_0x5f20f2}of _0x2cc581[_0x56cc99(0x13e)]()){if(_0x5f20f2[_0x56cc99(0x185)]<=0x1)continue;const _0x2ecce9=_0xc1306b[_0x1b873b[0x0]];_0x2ecce9[_0x56cc99(0x16f)]=_0x2ecce9['path'][_0x56cc99(0x159)](/^journeys\[\d+\]\./,''),_0x2ecce9[_0x56cc99(0x18d)]=_0x2ecce9[_0x56cc99(0x18d)]+_0x56cc99(0x17c)+_0x5f20f2[_0x56cc99(0x185)]+'\x20versions)';for(let _0x471fd5=0x1;_0x471fd5<_0x1b873b[_0x56cc99(0x1da)];_0x471fd5++){_0x4d7d68[_0x56cc99(0x133)](_0x1b873b[_0x471fd5]);}}const _0x1cf320=[..._0x4d7d68][_0x56cc99(0x150)]((_0x1f4164,_0xd6a280)=>_0xd6a280-_0x1f4164);for(const _0x57f3c4 of _0x1cf320){_0xc1306b['splice'](_0x57f3c4,0x1);}}export function validateJourneyDef(_0x1424d2,_0x4e8d07={},_0x12e844={}){const _0xd1d852=a136_0x1779;if(_0x12e844[_0xd1d852(0x15a)])return runJourneySemanticChecks(_0x1424d2,_0x4e8d07);const _0x3ba911=JourneyDefSchema[_0xd1d852(0x138)](_0x1424d2);if(_0x3ba911[_0xd1d852(0x157)])return runJourneySemanticChecks(_0x3ba911[_0xd1d852(0x1a6)],_0x4e8d07);return zodErrorsToJourneyValidationResult(_0x3ba911[_0xd1d852(0x18e)],_0x4e8d07);}function zodErrorsToJourneyValidationResult(_0x3c23f7,_0x4c1cc2){const _0x55b0fd=a136_0x1779,_0x538cf0=flattenZodIssues(_0x3c23f7[_0x55b0fd(0x183)]),_0xe4bae=_0x538cf0[_0x55b0fd(0x141)](_0x1abd80=>{const _0x4704dc=_0x55b0fd,_0x8b4e45=formatZodPath(_0x1abd80[_0x4704dc(0x16f)]),_0x4bb0b6=mapJourneyZodIssueToCode(_0x1abd80,_0x8b4e45),_0x5d1320=getLocationFromPath(_0x4c1cc2[_0x4704dc(0x180)],_0x4c1cc2['source'],_0x1abd80[_0x4704dc(0x16f)][_0x4704dc(0x141)](_0x3f097d=>typeof _0x3f097d===_0x4704dc(0x171)?String(_0x3f097d):_0x3f097d));return{'level':_0x4704dc(0x18e),'path':_0x8b4e45,'code':_0x4bb0b6,'message':_0x1abd80[_0x4704dc(0x18d)],..._0x5d1320&&{'location':_0x5d1320}};});return{'valid':![],'errors':_0xe4bae,'warnings':[]};}function mapJourneyZodIssueToCode(_0xb00f57,_0x2e3329){const _0x1f9573=a136_0x1779;if(_0x2e3329===_0x1f9573(0x194))return _0x1f9573(0x170);if(_0x2e3329[_0x1f9573(0x1bf)]('.type')&&_0x2e3329['includes'](_0x1f9573(0x1d3)))return _0x1f9573(0x12c);if(_0x2e3329===_0x1f9573(0x1a3)||_0x2e3329['endsWith'](_0x1f9573(0x1de)))return'MISSING_STAGES';if(_0x2e3329===''&&_0xb00f57['message'][_0x1f9573(0x161)](_0x1f9573(0x17b)))return _0x1f9573(0x173);if(_0x2e3329[_0x1f9573(0x161)](_0x1f9573(0x132)))return'ACTIVATION_SCHEMA_ERROR';return _0x1f9573(0x12c);}function runJourneySemanticChecks(_0x577df4,_0x52a196){const _0x4192b7=a136_0x1779,_0xc91716=[],_0x19fe8e=[];(!_0x577df4[_0x4192b7(0x194)]||_0x577df4[_0x4192b7(0x194)][_0x4192b7(0x1d0)]()==='')&&_0xc91716[_0x4192b7(0x162)]({'level':_0x4192b7(0x18e),'path':_0x4192b7(0x194),'code':'MISSING_NAME','message':_0x4192b7(0x1d6),'location':getLocationFromPath(_0x52a196['document'],_0x52a196['source'],[_0x4192b7(0x194)])});const _0x2444be=new Set();if(_0x577df4['segments'])for(const _0x20c3c7 of Object[_0x4192b7(0x19b)](_0x577df4[_0x4192b7(0x163)])){_0x2444be[_0x4192b7(0x133)](_0x20c3c7);}const _0x24ab67=new Set();if(_0x577df4[_0x4192b7(0x147)])for(const _0x82f496 of Object[_0x4192b7(0x19b)](_0x577df4[_0x4192b7(0x147)])){_0x24ab67['add'](_0x82f496);}const _0x24dae3=new Set(),_0x2562df={..._0x52a196,'embeddedSegments':_0x2444be,'referencedSegments':_0x24dae3,'activationKeys':_0x24ab67[_0x4192b7(0x185)]>0x0?_0x24ab67:undefined};if(_0x577df4[_0x4192b7(0x163)])for(const [_0x733e97,_0x17a38b]of Object['entries'](_0x577df4[_0x4192b7(0x163)])){const _0x948306=validateEmbeddedSegment(_0x17a38b,_0x4192b7(0x136)+_0x733e97,_0x2562df);for(const _0x2e500b of _0x948306){if(_0x2e500b['level']===_0x4192b7(0x18e))_0xc91716[_0x4192b7(0x162)](_0x2e500b);else _0x19fe8e[_0x4192b7(0x162)](_0x2e500b);}}const _0x212018=!!_0x577df4[_0x4192b7(0x182)],_0x3f442f=_0x577df4['journeys']?.[_0x4192b7(0x18b)](_0x340818=>!!_0x340818[_0x4192b7(0x182)])??![];!_0x212018&&!_0x3f442f&&_0x19fe8e[_0x4192b7(0x162)]({'level':_0x4192b7(0x14a),'path':_0x4192b7(0x182),'code':_0x4192b7(0x1c8),'message':_0x4192b7(0x1a1),'location':getLocationFromPath(_0x52a196['document'],_0x52a196[_0x4192b7(0x196)],[_0x4192b7(0x182)])});const _0x18a430=_0x577df4[_0x4192b7(0x12a)]??_0x577df4[_0x4192b7(0x176)];if(_0x18a430&&_0x18a430[_0x4192b7(0x165)](_0x4d5e2f=>_0x4d5e2f['latest']===!![])[_0x4192b7(0x1da)]>0x1){const _0x124e2f=_0x577df4[_0x4192b7(0x12a)]?_0x4192b7(0x12a):_0x4192b7(0x176);_0xc91716[_0x4192b7(0x162)]({'level':'error','path':_0x124e2f,'code':_0x4192b7(0x1a7),'message':_0x4192b7(0x1d5)+(_0x124e2f==='journeys'?'journey\x20entry':_0x4192b7(0x19e))+'\x20with\x20latest:\x20true','location':getLocationFromPath(_0x52a196[_0x4192b7(0x180)],_0x52a196['source'],[_0x124e2f])});}if(_0x577df4[_0x4192b7(0x12a)]&&_0x577df4[_0x4192b7(0x12a)][_0x4192b7(0x1da)]>0x0)for(let _0x33209d=0x0;_0x33209d<_0x577df4[_0x4192b7(0x12a)][_0x4192b7(0x1da)];_0x33209d++){const _0x5742b1=_0x577df4[_0x4192b7(0x12a)][_0x33209d];if(_0x577df4[_0x4192b7(0x12a)][_0x4192b7(0x1da)]>0x1&&_0x5742b1[_0x4192b7(0x1d9)]===_0x4192b7(0x1b9))continue;const _0x714794=_0x5742b1[_0x4192b7(0x1a3)]||[],_0x44fe82=_0x4192b7(0x13f)+_0x33209d+'].',_0x2a0926=!!_0x5742b1[_0x4192b7(0x182)],_0x35fcc7=_0x2a0926?{..._0x577df4,'goal':_0x5742b1['goal']}:_0x577df4;validateStagesForVersion(_0x714794,_0x35fcc7,_0x2562df,_0x44fe82,_0xc91716,_0x19fe8e,{'goalIsInherited':!_0x2a0926});}else{if(_0x577df4[_0x4192b7(0x176)]&&_0x577df4[_0x4192b7(0x176)][_0x4192b7(0x1da)]>0x0)for(let _0x48f6e4=0x0;_0x48f6e4<_0x577df4[_0x4192b7(0x176)][_0x4192b7(0x1da)];_0x48f6e4++){const _0x147f50=_0x577df4['versions'][_0x48f6e4];if(_0x577df4[_0x4192b7(0x176)][_0x4192b7(0x1da)]>0x1&&_0x147f50[_0x4192b7(0x1d9)]===_0x4192b7(0x1b9))continue;const _0x119128=_0x147f50[_0x4192b7(0x1a3)]||[],_0x235bcd=_0x4192b7(0x1aa)+_0x48f6e4+'].';validateStagesForVersion(_0x119128,_0x577df4,_0x2562df,_0x235bcd,_0xc91716,_0x19fe8e);}else{const _0xd8d3b1=_0x577df4[_0x4192b7(0x1a3)]||[];validateStagesForVersion(_0xd8d3b1,_0x577df4,_0x2562df,'',_0xc91716,_0x19fe8e);}}_0x577df4[_0x4192b7(0x12a)]&&_0x577df4[_0x4192b7(0x12a)]['length']>0x1&&(deduplicateAcrossVersions(_0xc91716),deduplicateAcrossVersions(_0x19fe8e));for(const _0x37953f of _0x2444be){!_0x24dae3[_0x4192b7(0x146)](_0x37953f)&&!_0x37953f[_0x4192b7(0x186)](_0x4192b7(0x140))&&_0x19fe8e[_0x4192b7(0x162)]({'level':_0x4192b7(0x14a),'path':_0x4192b7(0x136)+_0x37953f,'code':_0x4192b7(0x143),'message':_0x4192b7(0x1d7)+_0x37953f+_0x4192b7(0x1c6),'location':getLocationFromPath(_0x52a196['document'],_0x52a196['source'],['segments',_0x37953f])});}return{'valid':_0xc91716[_0x4192b7(0x1da)]===0x0,'errors':_0xc91716,'warnings':_0x19fe8e};}