@treasuredata/tdx 2026.3.28 → 2026.3.29

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 (203) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/auth-login-command.js +1 -1
  11. package/dist/commands/chat-command.js +1 -1
  12. package/dist/commands/claude-command.js +1 -1
  13. package/dist/commands/claude-statusline-command.js +1 -1
  14. package/dist/commands/claude-usage-command.js +1 -1
  15. package/dist/commands/command.js +1 -1
  16. package/dist/commands/connection-command.js +1 -1
  17. package/dist/commands/databases.js +1 -1
  18. package/dist/commands/delivery-command.js +1 -1
  19. package/dist/commands/describe.js +1 -1
  20. package/dist/commands/engage-campaign-pull-command.js +1 -1
  21. package/dist/commands/engage-campaign-push-command.js +1 -1
  22. package/dist/commands/engage-campaign-validate-command.js +1 -1
  23. package/dist/commands/engage-command.js +1 -1
  24. package/dist/commands/engage-template-pull-command.js +1 -1
  25. package/dist/commands/engage-template-push-command.js +1 -1
  26. package/dist/commands/engage-template-validate-command.js +1 -1
  27. package/dist/commands/job-command.js +1 -1
  28. package/dist/commands/journey-command.js +1 -1
  29. package/dist/commands/journey-validate-command.js +1 -1
  30. package/dist/commands/llm-command.js +1 -1
  31. package/dist/commands/mcp-command.js +1 -1
  32. package/dist/commands/parent-segment-command.js +1 -1
  33. package/dist/commands/policy-command.js +1 -1
  34. package/dist/commands/profile-command.js +1 -1
  35. package/dist/commands/profiles-command.js +1 -1
  36. package/dist/commands/query-command.js +1 -1
  37. package/dist/commands/schedule-command.js +1 -1
  38. package/dist/commands/segment-command.js +1 -1
  39. package/dist/commands/segment-create-command.js +1 -1
  40. package/dist/commands/segment-fields-command.js +1 -1
  41. package/dist/commands/segment-pull-command.js +1 -1
  42. package/dist/commands/segment-push-command.js +1 -1
  43. package/dist/commands/segment-update-command.js +1 -1
  44. package/dist/commands/segment-use-command.js +1 -1
  45. package/dist/commands/segment-validate-command.js +1 -1
  46. package/dist/commands/segments.js +1 -1
  47. package/dist/commands/show.js +1 -1
  48. package/dist/commands/status-command.js +1 -1
  49. package/dist/commands/tables.js +1 -1
  50. package/dist/commands/unset-command.js +1 -1
  51. package/dist/commands/upgrade-command.js +1 -1
  52. package/dist/commands/use-command.js +1 -1
  53. package/dist/commands/user-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/command-output.js +1 -1
  57. package/dist/core/config.js +1 -1
  58. package/dist/core/connection-cache.js +1 -1
  59. package/dist/core/constants.js +1 -1
  60. package/dist/core/credential-cache.js +1 -1
  61. package/dist/core/global-context.js +1 -1
  62. package/dist/core/keychain.js +1 -1
  63. package/dist/core/oauth-keychain.js +1 -1
  64. package/dist/core/oauth.js +1 -1
  65. package/dist/core/profile.js +1 -1
  66. package/dist/core/project-config.js +1 -1
  67. package/dist/core/session.js +1 -1
  68. package/dist/core/user-cache.js +1 -1
  69. package/dist/core/version.js +1 -1
  70. package/dist/index.js +1 -1
  71. package/dist/mcp/server.js +1 -1
  72. package/dist/mcp/tools/index.js +1 -1
  73. package/dist/mcp/tools/tdx-run.js +1 -1
  74. package/dist/mcp/tools/tdx-search.js +1 -1
  75. package/dist/mcp/utils.js +1 -1
  76. package/dist/proxy/claude-usage-tracker.js +1 -1
  77. package/dist/proxy/passthrough-server.js +1 -1
  78. package/dist/proxy/sse-usage-parser.js +1 -1
  79. package/dist/sdk/agent/agent-config.js +1 -1
  80. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  81. package/dist/sdk/agent/agent-yaml.js +1 -1
  82. package/dist/sdk/agent/test/evaluator.js +1 -1
  83. package/dist/sdk/agent/test/executor.js +1 -1
  84. package/dist/sdk/agent/test/index.js +1 -1
  85. package/dist/sdk/agent/test/output.js +1 -1
  86. package/dist/sdk/agent/test/parser.js +1 -1
  87. package/dist/sdk/agent/tool-target-registry.js +1 -1
  88. package/dist/sdk/api.js +1 -1
  89. package/dist/sdk/client/cdp-api-client.js +1 -1
  90. package/dist/sdk/client/delivery-api-client.js +1 -1
  91. package/dist/sdk/client/endpoints.js +1 -1
  92. package/dist/sdk/client/engage-api-client.js +1 -1
  93. package/dist/sdk/client/http-client.js +1 -1
  94. package/dist/sdk/client/llm-api-client.js +1 -1
  95. package/dist/sdk/client/oauth-refresh.js +1 -1
  96. package/dist/sdk/client/rate-limiter.js +1 -1
  97. package/dist/sdk/client/td-api-client.js +1 -1
  98. package/dist/sdk/client/trino-api-client.js +1 -1
  99. package/dist/sdk/client/workflow-client.js +1 -1
  100. package/dist/sdk/connection-validator.js +1 -1
  101. package/dist/sdk/connection.js +1 -1
  102. package/dist/sdk/delivery.js +1 -1
  103. package/dist/sdk/engage/campaign-pull.js +1 -1
  104. package/dist/sdk/engage/campaign-push.js +1 -1
  105. package/dist/sdk/engage/campaign-validator.js +1 -1
  106. package/dist/sdk/engage/campaign-yaml.js +1 -1
  107. package/dist/sdk/engage/template-pull.js +1 -1
  108. package/dist/sdk/engage/template-push.js +1 -1
  109. package/dist/sdk/engage/template-validator.js +1 -1
  110. package/dist/sdk/engage/template-yaml.js +1 -1
  111. package/dist/sdk/engage/types/campaign-def.js +1 -1
  112. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  113. package/dist/sdk/engage/types/template-schema.js +1 -1
  114. package/dist/sdk/engage.js +1 -1
  115. package/dist/sdk/errors.js +1 -1
  116. package/dist/sdk/index.js +1 -1
  117. package/dist/sdk/io/index.js +1 -1
  118. package/dist/sdk/io/node-filesystem.js +1 -1
  119. package/dist/sdk/job.js +1 -1
  120. package/dist/sdk/journey.js +1 -1
  121. package/dist/sdk/llm/chat-cache.js +1 -1
  122. package/dist/sdk/llm/index.js +1 -1
  123. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  124. package/dist/sdk/llm/model-factors.js +1 -1
  125. package/dist/sdk/personalization.js +1 -1
  126. package/dist/sdk/policy.js +1 -1
  127. package/dist/sdk/query/index.js +1 -1
  128. package/dist/sdk/query/sql-parser.js +1 -1
  129. package/dist/sdk/realtime.js +1 -1
  130. package/dist/sdk/schedule.js +1 -1
  131. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  132. package/dist/sdk/segment/fields-display.js +1 -1
  133. package/dist/sdk/segment/file-discovery.js +1 -1
  134. package/dist/sdk/segment/journey-utils.js +1 -1
  135. package/dist/sdk/segment/journey-validator.js +1 -1
  136. package/dist/sdk/segment/journey-yaml.js +1 -1
  137. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  138. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  139. package/dist/sdk/segment/pull-workflow.js +1 -1
  140. package/dist/sdk/segment/push-recovery.js +1 -1
  141. package/dist/sdk/segment/push-workflow.js +1 -1
  142. package/dist/sdk/segment/resolution-context.js +1 -1
  143. package/dist/sdk/segment/segment-path-parser.js +1 -1
  144. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  145. package/dist/sdk/segment/segment-validator.js +1 -1
  146. package/dist/sdk/segment/target-resolution.js +1 -1
  147. package/dist/sdk/segment/tdx-config.js +1 -1
  148. package/dist/sdk/segment/types/activation-schema.js +1 -1
  149. package/dist/sdk/segment/types/journey-def.js +1 -1
  150. package/dist/sdk/segment/types/journey-schema.js +1 -1
  151. package/dist/sdk/segment/types/segment-def.js +1 -1
  152. package/dist/sdk/segment/types/segment-schema.js +1 -1
  153. package/dist/sdk/segment/validate-files.js +1 -1
  154. package/dist/sdk/segment/yaml-validator.js +1 -1
  155. package/dist/sdk/segment.js +1 -1
  156. package/dist/sdk/types/index.js +1 -1
  157. package/dist/sdk/types/progress.js +1 -1
  158. package/dist/sdk/user.js +1 -1
  159. package/dist/sdk/util/format-detector.js +1 -1
  160. package/dist/sdk/util/formatters.js +1 -1
  161. package/dist/sdk/util/index.js +1 -1
  162. package/dist/sdk/util/paginate.js +1 -1
  163. package/dist/sdk/util/tree-formatter.js +1 -1
  164. package/dist/sdk/workflow/archive-validation.js +1 -1
  165. package/dist/sdk/workflow/clone-workflow.js +1 -1
  166. package/dist/sdk/workflow/index.js +1 -1
  167. package/dist/sdk/workflow/pull-workflow.js +1 -1
  168. package/dist/sdk/workflow/push-workflow.js +1 -1
  169. package/dist/sdk/workflow/tdx-config.js +1 -1
  170. package/dist/sdk/workflow/workflow-utils.js +1 -1
  171. package/dist/test-utils/command-runner.js +1 -1
  172. package/dist/test-utils/factories.js +1 -1
  173. package/dist/test-utils/fixtures.js +1 -1
  174. package/dist/test-utils/http-mock.js +1 -1
  175. package/dist/test-utils/index.js +1 -1
  176. package/dist/utils/async.js +1 -1
  177. package/dist/utils/colors.js +1 -1
  178. package/dist/utils/diff.js +1 -1
  179. package/dist/utils/file-permissions.js +1 -1
  180. package/dist/utils/file-reader.js +1 -1
  181. package/dist/utils/github-releases.js +1 -1
  182. package/dist/utils/global-cache.js +1 -1
  183. package/dist/utils/json-loader.js +1 -1
  184. package/dist/utils/local-cache.js +1 -1
  185. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  186. package/dist/utils/logger/formatters/index.js +1 -1
  187. package/dist/utils/logger/handlers/console-handler.js +1 -1
  188. package/dist/utils/logger/handlers/file-handler.js +1 -1
  189. package/dist/utils/logger/handlers/index.js +1 -1
  190. package/dist/utils/logger/handlers/null-handler.js +1 -1
  191. package/dist/utils/logger/index.js +1 -1
  192. package/dist/utils/logger/logger.js +1 -1
  193. package/dist/utils/logger/types.js +1 -1
  194. package/dist/utils/option-validation.js +1 -1
  195. package/dist/utils/process.js +1 -1
  196. package/dist/utils/prompt.js +1 -1
  197. package/dist/utils/spinner.js +1 -1
  198. package/dist/utils/sse-parser.js +1 -1
  199. package/dist/utils/string-utils.js +1 -1
  200. package/dist/utils/table-ref-parser.js +1 -1
  201. package/dist/utils/tdx-logger.js +1 -1
  202. package/dist/utils/version-check.js +1 -1
  203. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x1232df,_0x1eba9e){const _0x400ae1=a146_0x3bd3,_0x18ffec=_0x1232df();while(!![]){try{const _0x393435=-parseInt(_0x400ae1(0xb8))/0x1+parseInt(_0x400ae1(0xc5))/0x2*(parseInt(_0x400ae1(0xc3))/0x3)+-parseInt(_0x400ae1(0xac))/0x4+parseInt(_0x400ae1(0xc1))/0x5+parseInt(_0x400ae1(0xce))/0x6+-parseInt(_0x400ae1(0xdb))/0x7*(-parseInt(_0x400ae1(0xb2))/0x8)+-parseInt(_0x400ae1(0xd1))/0x9;if(_0x393435===_0x1eba9e)break;else _0x18ffec['push'](_0x18ffec['shift']());}catch(_0xb09402){_0x18ffec['push'](_0x18ffec['shift']());}}}(a146_0x42e4,0x3398f));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x241711,_0xbbfdc6={},_0x4e9fb7={}){const _0x4621d1=a146_0x3bd3;if(_0x4e9fb7[_0x4621d1(0xc2)])return runSemanticChecks(_0x241711,_0xbbfdc6);const _0x513277=SegmentDefSchema[_0x4621d1(0xbd)](_0x241711);if(_0x513277[_0x4621d1(0xc9)])return runSemanticChecks(_0x513277['data'],_0xbbfdc6);return zodErrorsToValidationResult(_0x513277['error'],_0xbbfdc6);}export function validateRuleDef(_0x50da61,_0x3fb173,_0x254aa5){const _0x549ba1=a146_0x3bd3;if(!_0x50da61)return[];const _0x34db4b=RuleDefSchema[_0x549ba1(0xbd)](_0x50da61);if(_0x34db4b[_0x549ba1(0xc9)])return checkRule(_0x34db4b['data'],_0x3fb173,_0x254aa5);const _0x4aed6d=flattenZodIssues(_0x34db4b['error'][_0x549ba1(0xe8)]);return _0x4aed6d[_0x549ba1(0xe9)](_0x37ac28=>{const _0x2bb0c4=_0x549ba1,_0x3e93a9=formatZodPath(_0x37ac28[_0x2bb0c4(0xb0)]),_0x5d60e8=_0x3e93a9?_0x3fb173+'.'+_0x3e93a9:_0x3fb173,_0x417954=mapZodIssueToCode(_0x37ac28,_0x3e93a9),_0x283019=getLocationFromPath(_0x254aa5['document'],_0x254aa5[_0x2bb0c4(0xb4)],pathToArray(_0x5d60e8));return{'level':'error','path':_0x5d60e8,'code':_0x417954,'message':_0x37ac28[_0x2bb0c4(0xe5)],..._0x283019&&{'location':_0x283019}};});}function zodErrorsToValidationResult(_0x2c9c35,_0x2af881){const _0x5a238b=a146_0x3bd3,_0x24fd40=flattenZodIssues(_0x2c9c35[_0x5a238b(0xe8)]),_0x387b58=_0x24fd40[_0x5a238b(0xe9)](_0x334441=>{const _0x1e1a79=_0x5a238b,_0x593fa3=formatZodPath(_0x334441[_0x1e1a79(0xb0)]),_0x85b299=mapZodIssueToCode(_0x334441,_0x593fa3),_0x4a4009=getLocationFromPath(_0x2af881[_0x1e1a79(0xda)],_0x2af881[_0x1e1a79(0xb4)],_0x334441[_0x1e1a79(0xb0)][_0x1e1a79(0xe9)](_0x44ebac=>typeof _0x44ebac===_0x1e1a79(0xba)?String(_0x44ebac):_0x44ebac));return{'level':_0x1e1a79(0xbb),'path':_0x593fa3,'code':_0x85b299,'message':_0x334441[_0x1e1a79(0xe5)],..._0x4a4009&&{'location':_0x4a4009}};});return{'valid':![],'errors':_0x387b58,'warnings':[]};}function mapZodIssueToCode(_0x52c6ab,_0x210028){const _0x46017d=a146_0x3bd3,_0x362092=_0x52c6ab[_0x46017d(0xb3)]===_0x46017d(0xcf)?_0x52c6ab[_0x46017d(0xb6)]:undefined;if(_0x210028===_0x46017d(0xe4))return _0x46017d(0xd7);if(_0x210028===_0x46017d(0xc4)||_0x210028['endsWith']('.type')){if(_0x52c6ab[_0x46017d(0xb3)]===_0x46017d(0xae)){if(_0x210028===_0x46017d(0xc4)||_0x210028[_0x46017d(0xcc)](/\.conditions\[\d+\]\.type$/))return _0x46017d(0xc8);}}if(_0x210028['endsWith']('.operator.type'))return'INVALID_OPERATOR_TYPE';if(_0x210028[_0x46017d(0xc6)](_0x46017d(0xad)))return'MISSING_OPERATOR_VALUE';if(_0x362092?.['validationCode']===_0x46017d(0xe3))return _0x46017d(0xe3);if(_0x362092?.[_0x46017d(0xd8)]===_0x46017d(0xd6))return _0x46017d(0xd6);if(_0x210028[_0x46017d(0xc6)]('.conditions')||_0x210028===_0x46017d(0xc0))return'MISSING_CONDITIONS';if(_0x210028[_0x46017d(0xd9)](_0x46017d(0xcd)))return'INVALID_ARRAY_MATCHING';if(_0x210028[_0x46017d(0xc6)](_0x46017d(0xab)))return _0x46017d(0xca);return _0x46017d(0xb7);}function a146_0x3bd3(_0x2b3127,_0x3b631e){_0x2b3127=_0x2b3127-0xa8;const _0x42e451=a146_0x42e4();let _0x3bd39f=_0x42e451[_0x2b3127];return _0x3bd39f;}function runSemanticChecks(_0x361c30,_0x480ae0){const _0x550298=a146_0x3bd3,_0x434386=[];_0x361c30[_0x550298(0xcb)]&&_0x434386[_0x550298(0xdd)](...checkRule(_0x361c30['rule'],_0x550298(0xcb),_0x480ae0));const _0x4138c8=_0x434386['filter'](_0xad1251=>_0xad1251['level']==='error'),_0x77ec7d=_0x434386[_0x550298(0xc7)](_0x5a28ae=>_0x5a28ae['level']===_0x550298(0xd5));return{'valid':_0x4138c8[_0x550298(0xd4)]===0x0,'errors':_0x4138c8,'warnings':_0x77ec7d};}function checkRule(_0x556655,_0xa5b3f1,_0x4640c1){const _0x24f10f=a146_0x3bd3,_0x548a01=[];if(_0x556655['conditions']['length']===0x0)return _0x548a01[_0x24f10f(0xdd)]({'level':_0x24f10f(0xbb),'path':_0xa5b3f1+_0x24f10f(0xde),'code':_0x24f10f(0xd3),'message':_0x24f10f(0xd2),'location':getLocationFromPath(_0x4640c1[_0x24f10f(0xda)],_0x4640c1[_0x24f10f(0xb4)],pathToArray(_0xa5b3f1+'.conditions'))}),_0x548a01;return _0x548a01['push'](...checkConditions(_0x556655['conditions'],_0xa5b3f1,_0x4640c1)),_0x548a01;}function checkConditions(_0x264418,_0x507705,_0x502616){const _0x3eb3a6=[];for(let _0x43e1d2=0x0;_0x43e1d2<_0x264418['length'];_0x43e1d2++){const _0x16780b=_0x264418[_0x43e1d2],_0x4849bb=_0x507705+'.conditions['+_0x43e1d2+']';_0x3eb3a6['push'](...checkCondition(_0x16780b,_0x4849bb,_0x502616));}return _0x3eb3a6;}function checkCondition(_0x32aae6,_0x584722,_0x5c41c0){const _0x13601f=a146_0x3bd3,_0x5d245a=[];if(_0x32aae6[_0x13601f(0xe7)]===_0x13601f(0xe6)||_0x32aae6[_0x13601f(0xe7)]==='Or')return _0x32aae6['conditions'][_0x13601f(0xd4)]===0x0?_0x5d245a[_0x13601f(0xdd)]({'level':_0x13601f(0xbb),'path':_0x584722+_0x13601f(0xde),'code':_0x13601f(0xd3),'message':_0x32aae6[_0x13601f(0xe7)]+_0x13601f(0xbc),'location':getLocationFromPath(_0x5c41c0['document'],_0x5c41c0[_0x13601f(0xb4)],pathToArray(_0x584722+'.conditions'))}):(_0x5d245a[_0x13601f(0xdd)]({'level':_0x13601f(0xd5),'path':_0x584722,'code':_0x13601f(0xb1),'message':_0x32aae6[_0x13601f(0xe7)]+_0x13601f(0xdf)+_0x13601f(0xea)+_0x13601f(0xbe),'location':getLocationFromPath(_0x5c41c0['document'],_0x5c41c0['source'],pathToArray(_0x584722))}),_0x5d245a[_0x13601f(0xdd)](...checkConditions(_0x32aae6[_0x13601f(0xc0)],_0x584722,_0x5c41c0))),_0x5d245a;if(_0x32aae6['type']==='Value'||_0x32aae6[_0x13601f(0xe7)]===_0x13601f(0xe1)){const _0x4e7169=_0x32aae6,_0x404548=_0x4e7169[_0x13601f(0xb4)],_0x1f6656=_0x4e7169[_0x13601f(0xe0)],_0x14c7a2=_0x404548||_0x1f6656;(!_0x4e7169[_0x13601f(0xeb)]||_0x4e7169['attribute']==='')&&(!_0x14c7a2&&_0x5d245a[_0x13601f(0xdd)]({'level':'error','path':_0x584722+_0x13601f(0xaf),'code':_0x13601f(0xdc),'message':_0x13601f(0xe2),'location':getLocationFromPath(_0x5c41c0[_0x13601f(0xda)],_0x5c41c0[_0x13601f(0xb4)],pathToArray(_0x584722+_0x13601f(0xaf)))}));_0x4e7169['filter']&&_0x5d245a[_0x13601f(0xdd)](...checkRule(_0x4e7169['filter'],_0x584722+_0x13601f(0xaa),_0x5c41c0));if(_0x4e7169[_0x13601f(0xb4)]){const _0x558876=_0x4e7169[_0x13601f(0xeb)]&&_0x4e7169['attribute']!=='';_0x558876&&!_0x4e7169['filter']&&_0x5d245a[_0x13601f(0xdd)]({'level':_0x13601f(0xbb),'path':_0x584722+_0x13601f(0xb5),'code':'BEHAVIOR_SOURCE_MISSING_FILTER','message':_0x13601f(0xd0)+_0x4e7169[_0x13601f(0xb4)]+_0x13601f(0xbf)+_0x4e7169['attribute']+'\x27\x20'+_0x13601f(0xa8)+'the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20'+'Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','location':getLocationFromPath(_0x5c41c0[_0x13601f(0xda)],_0x5c41c0[_0x13601f(0xb4)],pathToArray(_0x584722+_0x13601f(0xb5)))}),_0x558876&&_0x4e7169[_0x13601f(0xc7)]&&_0x5d245a[_0x13601f(0xdd)]({'level':_0x13601f(0xd5),'path':_0x584722+_0x13601f(0xaf),'code':'BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message':'Attribute\x20\x27'+_0x4e7169[_0x13601f(0xeb)]+_0x13601f(0xa9)+_0x13601f(0xb9),'location':getLocationFromPath(_0x5c41c0[_0x13601f(0xda)],_0x5c41c0[_0x13601f(0xb4)],pathToArray(_0x584722+'.attribute'))});}}return _0x5d245a;}function a146_0x42e4(){const _0x5d45e0=['4938eAxSEb','rule.type','72xlYNsR','endsWith','filter','INVALID_RULE_TYPE','success','MISSING_SEGMENT_REFERENCE','rule','match','arrayMatching','1489278TXzfhQ','custom','Behavior\x20source\x20\x27','72945XNjDSO','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','EMPTY_CONDITIONS','length','warning','MISSING_TIME_UNIT','MISSING_NAME','validationCode','includes','document','455IlPdzw','EMPTY_ATTRIBUTE','push','.conditions','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','aggregation','Behavior','Attribute\x20name\x20cannot\x20be\x20empty','MISSING_BETWEEN_BOUNDS','name','message','And','type','issues','map','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','attribute','requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','.filter','.segment','875052FyKTjT','.operator.value','invalid_value','.attribute','path','NESTED_CONDITION_GROUP','34160QRgMMT','code','source','.source','params','SEGMENT_SCHEMA_ERROR','295365jpzHAE','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','symbol','error','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','safeParse','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','\x27\x20with\x20attribute\x20\x27','conditions','742785iXEkuA','skipSchema'];a146_0x42e4=function(){return _0x5d45e0;};return a146_0x42e4();}
1
+ (function(_0x2cc245,_0x2d8ab6){const _0x4e50b4=a146_0x4ad3,_0x47dee3=_0x2cc245();while(!![]){try{const _0x517081=parseInt(_0x4e50b4(0x128))/0x1*(-parseInt(_0x4e50b4(0x120))/0x2)+parseInt(_0x4e50b4(0x12c))/0x3*(-parseInt(_0x4e50b4(0x116))/0x4)+-parseInt(_0x4e50b4(0x13d))/0x5*(parseInt(_0x4e50b4(0x114))/0x6)+-parseInt(_0x4e50b4(0x138))/0x7+-parseInt(_0x4e50b4(0x111))/0x8+parseInt(_0x4e50b4(0x146))/0x9+parseInt(_0x4e50b4(0x145))/0xa;if(_0x517081===_0x2d8ab6)break;else _0x47dee3['push'](_0x47dee3['shift']());}catch(_0x248422){_0x47dee3['push'](_0x47dee3['shift']());}}}(a146_0x40c5,0xe1aa3));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x410c4a,_0x4b26de={},_0x5cf13c={}){const _0x4f4dec=a146_0x4ad3;if(_0x5cf13c['skipSchema'])return runSemanticChecks(_0x410c4a,_0x4b26de);const _0x5535dc=SegmentDefSchema[_0x4f4dec(0x139)](_0x410c4a);if(_0x5535dc[_0x4f4dec(0x11b)])return runSemanticChecks(_0x5535dc['data'],_0x4b26de);return zodErrorsToValidationResult(_0x5535dc[_0x4f4dec(0x13c)],_0x4b26de);}export function validateRuleDef(_0x2823fc,_0x152baa,_0x50a4da){const _0x21f545=a146_0x4ad3;if(!_0x2823fc)return[];const _0x10149d=RuleDefSchema[_0x21f545(0x139)](_0x2823fc);if(_0x10149d[_0x21f545(0x11b)])return checkRule(_0x10149d[_0x21f545(0x137)],_0x152baa,_0x50a4da);const _0x41f1ec=flattenZodIssues(_0x10149d[_0x21f545(0x13c)][_0x21f545(0x133)]);return _0x41f1ec['map'](_0x5959dd=>{const _0x410906=_0x21f545,_0x256a76=formatZodPath(_0x5959dd[_0x410906(0x140)]),_0x1317e7=_0x256a76?_0x152baa+'.'+_0x256a76:_0x152baa,_0x1c16dc=mapZodIssueToCode(_0x5959dd,_0x256a76),_0x527d67=getLocationFromPath(_0x50a4da[_0x410906(0x10a)],_0x50a4da['source'],pathToArray(_0x1317e7));return{'level':_0x410906(0x13c),'path':_0x1317e7,'code':_0x1c16dc,'message':_0x5959dd['message'],..._0x527d67&&{'location':_0x527d67}};});}function zodErrorsToValidationResult(_0x4f78a4,_0x4f93a7){const _0x4e6692=a146_0x4ad3,_0x2864c8=flattenZodIssues(_0x4f78a4['issues']),_0x2bafcb=_0x2864c8[_0x4e6692(0x118)](_0x28b1ac=>{const _0x235675=_0x4e6692,_0x11432d=formatZodPath(_0x28b1ac[_0x235675(0x140)]),_0x1645a7=mapZodIssueToCode(_0x28b1ac,_0x11432d),_0x1ed4b7=getLocationFromPath(_0x4f93a7[_0x235675(0x10a)],_0x4f93a7['source'],_0x28b1ac['path'][_0x235675(0x118)](_0x586222=>typeof _0x586222===_0x235675(0x12f)?String(_0x586222):_0x586222));return{'level':_0x235675(0x13c),'path':_0x11432d,'code':_0x1645a7,'message':_0x28b1ac[_0x235675(0x131)],..._0x1ed4b7&&{'location':_0x1ed4b7}};});return{'valid':![],'errors':_0x2bafcb,'warnings':[]};}function a146_0x40c5(){const _0x16b533=['endsWith','match','1186674AGxHyg','validationCode','180YROCWV','code','map','rule.type','INVALID_ARRAY_MATCHING','success','EMPTY_CONDITIONS','MISSING_TIME_UNIT','And','.conditions','3268NQluzY','aggregation','.filter','.source','NESTED_CONDITION_GROUP','length','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','Behavior\x20source\x20\x27','5oCUZsI','conditions','source','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','81210zrUNSO','Value','Attribute\x20name\x20cannot\x20be\x20empty','symbol','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','message','EMPTY_ATTRIBUTE','issues','warning','Attribute\x20\x27','MISSING_BETWEEN_BOUNDS','data','7237076MsmkQv','safeParse','level','MISSING_CONDITIONS','error','40NqApUm','custom','type','path','attribute','.operator.type','MISSING_OPERATOR_VALUE','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','47806150AbKKRd','8593434LUgkdo','INVALID_OPERATOR_TYPE','MISSING_SEGMENT_REFERENCE','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','.attribute','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','filter','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','includes','document','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','BEHAVIOR_SOURCE_MISSING_FILTER','arrayMatching','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','push','INVALID_RULE_TYPE','7749584bhtSWT'];a146_0x40c5=function(){return _0x16b533;};return a146_0x40c5();}function a146_0x4ad3(_0x5d8318,_0x289c2f){_0x5d8318=_0x5d8318-0x104;const _0x40c5da=a146_0x40c5();let _0x4ad38c=_0x40c5da[_0x5d8318];return _0x4ad38c;}function mapZodIssueToCode(_0x26037a,_0x255dd7){const _0x52417d=a146_0x4ad3,_0x5f4a3c=_0x26037a['code']===_0x52417d(0x13e)?_0x26037a['params']:undefined;if(_0x255dd7==='name')return'MISSING_NAME';if(_0x255dd7===_0x52417d(0x119)||_0x255dd7['endsWith']('.type')){if(_0x26037a[_0x52417d(0x117)]==='invalid_value'){if(_0x255dd7===_0x52417d(0x119)||_0x255dd7[_0x52417d(0x113)](/\.conditions\[\d+\]\.type$/))return _0x52417d(0x110);}}if(_0x255dd7[_0x52417d(0x112)](_0x52417d(0x142)))return _0x52417d(0x147);if(_0x255dd7['endsWith']('.operator.value'))return _0x52417d(0x143);if(_0x5f4a3c?.[_0x52417d(0x115)]==='MISSING_BETWEEN_BOUNDS')return _0x52417d(0x136);if(_0x5f4a3c?.[_0x52417d(0x115)]===_0x52417d(0x11d))return _0x52417d(0x11d);if(_0x255dd7[_0x52417d(0x112)](_0x52417d(0x11f))||_0x255dd7==='conditions')return _0x52417d(0x13b);if(_0x255dd7[_0x52417d(0x109)](_0x52417d(0x10d)))return _0x52417d(0x11a);if(_0x255dd7[_0x52417d(0x112)]('.segment'))return _0x52417d(0x148);return'SEGMENT_SCHEMA_ERROR';}function runSemanticChecks(_0x41a0b5,_0x321bd2){const _0x4a1b58=a146_0x4ad3,_0x54718a=[];_0x41a0b5['rule']&&_0x54718a[_0x4a1b58(0x10f)](...checkRule(_0x41a0b5['rule'],'rule',_0x321bd2));const _0xc55993=_0x54718a['filter'](_0x1d5cf0=>_0x1d5cf0['level']==='error'),_0x5cc9fb=_0x54718a['filter'](_0x582526=>_0x582526[_0x4a1b58(0x13a)]===_0x4a1b58(0x134));return{'valid':_0xc55993[_0x4a1b58(0x125)]===0x0,'errors':_0xc55993,'warnings':_0x5cc9fb};}function checkRule(_0x30cc0b,_0x3cca31,_0x2dd17c){const _0x53282c=a146_0x4ad3,_0xd85f1c=[];if(_0x30cc0b[_0x53282c(0x129)][_0x53282c(0x125)]===0x0)return _0xd85f1c[_0x53282c(0x10f)]({'level':_0x53282c(0x13c),'path':_0x3cca31+_0x53282c(0x11f),'code':'EMPTY_CONDITIONS','message':_0x53282c(0x108),'location':getLocationFromPath(_0x2dd17c[_0x53282c(0x10a)],_0x2dd17c['source'],pathToArray(_0x3cca31+'.conditions'))}),_0xd85f1c;return _0xd85f1c[_0x53282c(0x10f)](...checkConditions(_0x30cc0b['conditions'],_0x3cca31,_0x2dd17c)),_0xd85f1c;}function checkConditions(_0xf8f22a,_0x271850,_0x9542f3){const _0x3f6233=a146_0x4ad3,_0x11397f=[];for(let _0x1f51c6=0x0;_0x1f51c6<_0xf8f22a[_0x3f6233(0x125)];_0x1f51c6++){const _0x28671b=_0xf8f22a[_0x1f51c6],_0x4b99ab=_0x271850+'.conditions['+_0x1f51c6+']';_0x11397f[_0x3f6233(0x10f)](...checkCondition(_0x28671b,_0x4b99ab,_0x9542f3));}return _0x11397f;}function checkCondition(_0x203d1f,_0x3c7ca4,_0x5b93d7){const _0x551e64=a146_0x4ad3,_0x4c0896=[];if(_0x203d1f[_0x551e64(0x13f)]===_0x551e64(0x11e)||_0x203d1f[_0x551e64(0x13f)]==='Or')return _0x203d1f[_0x551e64(0x129)][_0x551e64(0x125)]===0x0?_0x4c0896[_0x551e64(0x10f)]({'level':'error','path':_0x3c7ca4+_0x551e64(0x11f),'code':_0x551e64(0x11c),'message':_0x203d1f[_0x551e64(0x13f)]+_0x551e64(0x130),'location':getLocationFromPath(_0x5b93d7['document'],_0x5b93d7[_0x551e64(0x12a)],pathToArray(_0x3c7ca4+_0x551e64(0x11f)))}):(_0x4c0896[_0x551e64(0x10f)]({'level':_0x551e64(0x134),'path':_0x3c7ca4,'code':_0x551e64(0x124),'message':_0x203d1f[_0x551e64(0x13f)]+_0x551e64(0x144)+_0x551e64(0x10e)+_0x551e64(0x104),'location':getLocationFromPath(_0x5b93d7['document'],_0x5b93d7[_0x551e64(0x12a)],pathToArray(_0x3c7ca4))}),_0x4c0896[_0x551e64(0x10f)](...checkConditions(_0x203d1f[_0x551e64(0x129)],_0x3c7ca4,_0x5b93d7))),_0x4c0896;if(_0x203d1f[_0x551e64(0x13f)]===_0x551e64(0x12d)||_0x203d1f[_0x551e64(0x13f)]==='Behavior'){const _0x5f12d4=_0x203d1f,_0x29d889=_0x5f12d4[_0x551e64(0x12a)],_0xfc2530=_0x5f12d4[_0x551e64(0x121)],_0x2ab2f1=_0x29d889||_0xfc2530;(!_0x5f12d4[_0x551e64(0x141)]||_0x5f12d4[_0x551e64(0x141)]==='')&&(!_0x2ab2f1&&_0x4c0896[_0x551e64(0x10f)]({'level':_0x551e64(0x13c),'path':_0x3c7ca4+'.attribute','code':_0x551e64(0x132),'message':_0x551e64(0x12e),'location':getLocationFromPath(_0x5b93d7['document'],_0x5b93d7[_0x551e64(0x12a)],pathToArray(_0x3c7ca4+_0x551e64(0x105)))}));_0x5f12d4[_0x551e64(0x107)]&&_0x4c0896[_0x551e64(0x10f)](...checkRule(_0x5f12d4[_0x551e64(0x107)],_0x3c7ca4+_0x551e64(0x122),_0x5b93d7));if(_0x5f12d4[_0x551e64(0x12a)]){const _0x403c20=_0x5f12d4[_0x551e64(0x141)]&&_0x5f12d4['attribute']!=='';_0x403c20&&!_0x5f12d4[_0x551e64(0x107)]&&_0x4c0896['push']({'level':_0x551e64(0x13c),'path':_0x3c7ca4+_0x551e64(0x123),'code':_0x551e64(0x10c),'message':_0x551e64(0x127)+_0x5f12d4['source']+'\x27\x20with\x20attribute\x20\x27'+_0x5f12d4[_0x551e64(0x141)]+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+_0x551e64(0x10b)+_0x551e64(0x126),'location':getLocationFromPath(_0x5b93d7['document'],_0x5b93d7[_0x551e64(0x12a)],pathToArray(_0x3c7ca4+_0x551e64(0x123)))}),_0x403c20&&_0x5f12d4[_0x551e64(0x107)]&&_0x4c0896[_0x551e64(0x10f)]({'level':_0x551e64(0x134),'path':_0x3c7ca4+'.attribute','code':_0x551e64(0x12b),'message':_0x551e64(0x135)+_0x5f12d4[_0x551e64(0x141)]+'\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20'+_0x551e64(0x106),'location':getLocationFromPath(_0x5b93d7[_0x551e64(0x10a)],_0x5b93d7[_0x551e64(0x12a)],pathToArray(_0x3c7ca4+_0x551e64(0x105)))});}}return _0x4c0896;}
@@ -1 +1 @@
1
- (function(_0xec6401,_0x4cebda){const _0x5ca8e4=a147_0x13bf,_0x4d427f=_0xec6401();while(!![]){try{const _0x2111f8=parseInt(_0x5ca8e4(0xda))/0x1*(parseInt(_0x5ca8e4(0xdf))/0x2)+-parseInt(_0x5ca8e4(0xeb))/0x3*(parseInt(_0x5ca8e4(0xde))/0x4)+-parseInt(_0x5ca8e4(0xe3))/0x5+parseInt(_0x5ca8e4(0xe6))/0x6*(-parseInt(_0x5ca8e4(0xf4))/0x7)+parseInt(_0x5ca8e4(0xe1))/0x8*(parseInt(_0x5ca8e4(0xfb))/0x9)+parseInt(_0x5ca8e4(0xef))/0xa+-parseInt(_0x5ca8e4(0xf0))/0xb*(-parseInt(_0x5ca8e4(0x103))/0xc);if(_0x2111f8===_0x4cebda)break;else _0x4d427f['push'](_0x4d427f['shift']());}catch(_0x346cc2){_0x4d427f['push'](_0x4d427f['shift']());}}}(a147_0x1357,0xb02dc));function a147_0x1357(){const _0x4eddc2=['Parent\x20segment\x20not\x20specified','692628pNLEqS','file','trim','no_config','stat','3QCFdiR','startsWith','folderPath','join','2214600hwjGPT','578941ZFgoRW','resolve','string','type','7rJnaPN','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','resourceType','error','exists','isFile','scopedFolderPath','770589EBjlxx','dirname','segmentName','basename','parentSegment','configDir','No\x20tdx.json\x20found','journey','276JjZwnR','readFile','relative','directory','File\x20not\x20found:\x20','no_parent','isDirectory','context','cwd','match','includes','parent_segment','root','63087ITUMGv','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','invalid_yaml','message','1193732noWzRN','26PmBBaS','extname','16DZxDfa','No\x20tdx.json\x20found\x20for\x20file:\x20','6439235CWDXrm','isScoped'];a147_0x1357=function(){return _0x4eddc2;};return a147_0x1357();}import a147_0xcfb9 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x5237f7){const _0x230016=a147_0x13bf;return _0x5237f7['type']!==_0x230016(0xf7);}export function isScopedResolution(_0x306147){const _0x25c9e9=a147_0x13bf;return _0x306147[_0x25c9e9(0xf3)]===_0x25c9e9(0xd0)||_0x306147['type']===_0x25c9e9(0xe7)||_0x306147[_0x25c9e9(0xf3)]===_0x25c9e9(0xd4);}export function getScopedDetails(_0x4dfa6b){const _0x3b2884=a147_0x13bf;if(isScopedResolution(_0x4dfa6b))return{'isScoped':_0x4dfa6b[_0x3b2884(0xe4)],'scopedFolderPath':_0x4dfa6b[_0x3b2884(0xfa)]};return undefined;}function a147_0x13bf(_0x47f9e4,_0xa7701){_0x47f9e4=_0x47f9e4-0xd0;const _0x1357fa=a147_0x1357();let _0x13bff4=_0x1357fa[_0x47f9e4];return _0x13bff4;}async function findTdxConfigAsync(_0x5851bb,_0x119b92){const _0x513e73=a147_0x13bf;let _0x5eb48e=a147_0xcfb9[_0x513e73(0xf1)](_0x5851bb);const _0x530ec5=a147_0xcfb9['parse'](_0x5eb48e)[_0x513e73(0xd9)];while(_0x5eb48e!==_0x530ec5){const _0x31021b=a147_0xcfb9[_0x513e73(0xee)](_0x5eb48e,'tdx.json');if(await _0x119b92[_0x513e73(0xf8)](_0x31021b))try{const _0x5f137c=await _0x119b92[_0x513e73(0x104)](_0x31021b),_0x3b0142=JSON['parse'](_0x5f137c);if(_0x3b0142[_0x513e73(0xd8)]&&typeof _0x3b0142[_0x513e73(0xd8)]===_0x513e73(0xf2))return{'configPath':_0x31021b,'configDir':_0x5eb48e,'parentSegment':_0x3b0142['parent_segment']};}catch{}_0x5eb48e=a147_0xcfb9['dirname'](_0x5eb48e);}return null;}function calculateScopedPath(_0x54b5ed,_0x29cbd4){const _0x3ab514=a147_0x13bf,_0x384315=a147_0xcfb9[_0x3ab514(0x105)](_0x29cbd4,_0x54b5ed),_0x31b2e0=_0x384315!==''&&_0x384315!=='.'&&!_0x384315[_0x3ab514(0xec)]('..');return{'isScoped':_0x31b2e0,'scopedFolderPath':_0x31b2e0?_0x384315['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x4d1ff1){const _0x393935=a147_0x13bf,{arg:_0x354efd,contextParent:_0x5c498a,cwd:cwd=process[_0x393935(0xd5)](),fs:fs=nodeFileSystem}=_0x4d1ff1;if(_0x354efd&&isYamlFilePath(_0x354efd))try{const _0x5dd5cd=await resolveYamlFilePath(_0x354efd,fs),_0x7f4c6a=a147_0xcfb9['resolve'](_0x354efd),_0x5d6e65=a147_0xcfb9[_0x393935(0xfc)](_0x7f4c6a),_0x239e36=await findTdxConfigAsync(_0x5d6e65,fs);if(!_0x239e36){if(_0x5c498a){const _0x3582c7=a147_0xcfb9['dirname'](_0x7f4c6a);return{'type':_0x393935(0xe7),'parentName':_0x5c498a,'targetDir':_0x3582c7,'configRoot':_0x3582c7,'filePath':_0x7f4c6a,'resourceName':_0x5dd5cd[_0x393935(0xfd)],'folderPath':_0x5dd5cd[_0x393935(0xed)],'resourceType':_0x5dd5cd[_0x393935(0xf6)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xe2)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}const _0x32318d=calculateScopedPath(_0x5d6e65,_0x239e36['configDir']);return{'type':'file','parentName':_0x239e36[_0x393935(0xff)],'targetDir':_0x239e36[_0x393935(0x100)],'configRoot':_0x239e36[_0x393935(0x100)],'filePath':_0x7f4c6a,'resourceName':_0x5dd5cd[_0x393935(0xfd)],'folderPath':_0x5dd5cd[_0x393935(0xed)],'resourceType':_0x5dd5cd[_0x393935(0xf6)],'isScoped':_0x32318d[_0x393935(0xe4)],'scopedFolderPath':_0x32318d[_0x393935(0xfa)]};}catch(_0x1afa04){const _0x3233ba=_0x1afa04 instanceof Error?_0x1afa04[_0x393935(0xdd)]:String(_0x1afa04);if(_0x3233ba[_0x393935(0xd7)]('File\x20not\x20found'))return{'type':_0x393935(0xf7),'errorCode':'file_not_found','message':_0x393935(0xd1)+_0x354efd,'arg':_0x354efd};if(_0x3233ba[_0x393935(0xd7)](_0x393935(0x101))){if(_0x5c498a){const _0x298ce0=a147_0xcfb9['resolve'](_0x354efd);if(await fs['exists'](_0x298ce0)){const _0x20eded=a147_0xcfb9[_0x393935(0xfc)](_0x298ce0),_0xc01794=await fs[_0x393935(0x104)](_0x298ce0),_0x3a8b18=_0xc01794[_0x393935(0xd6)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x287be0=_0xc01794[_0x393935(0xd6)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5de946=_0x3a8b18?_0x3a8b18[0x1][_0x393935(0xe8)]():a147_0xcfb9[_0x393935(0xfe)](_0x354efd,a147_0xcfb9[_0x393935(0xe0)](_0x354efd)),_0x5a4abb=_0x287be0&&_0x287be0[0x1][_0x393935(0xe8)]()===_0x393935(0x102)?_0x393935(0x102):'segment';return{'type':_0x393935(0xe7),'parentName':_0x5c498a,'targetDir':_0x20eded,'configRoot':_0x20eded,'filePath':_0x298ce0,'resourceName':_0x5de946,'folderPath':'','resourceType':_0x5a4abb,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xe2)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}return{'type':_0x393935(0xf7),'errorCode':'invalid_yaml','message':_0x3233ba,'arg':_0x354efd};}if(_0x354efd){const _0x3928e7=a147_0xcfb9['resolve'](cwd,_0x354efd);let _0x3e3be1=null;try{_0x3e3be1=await fs[_0x393935(0xea)](_0x3928e7);}catch{}if(_0x3e3be1?.[_0x393935(0xd3)]()){const _0x311fc6=await findTdxConfigAsync(_0x3928e7,fs);if(_0x311fc6){const _0x1dc35d=calculateScopedPath(_0x3928e7,_0x311fc6['configDir']);return{'type':_0x393935(0xd0),'parentName':_0x311fc6['parentSegment'],'targetDir':_0x3928e7,'configRoot':_0x311fc6['configDir'],'isScoped':_0x1dc35d[_0x393935(0xe4)],'scopedFolderPath':_0x1dc35d[_0x393935(0xfa)]};}if(_0x5c498a)return{'type':_0x393935(0xd0),'parentName':_0x5c498a,'targetDir':_0x3928e7,'configRoot':_0x3928e7,'isScoped':![],'scopedFolderPath':''};return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xdb)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}if(_0x3e3be1?.[_0x393935(0xf9)]())return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xdc),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x354efd,'arg':_0x354efd,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x1b1fb8=sanitizeFileName(_0x354efd),_0x404f1f=getSegmentRootDir(_0x1b1fb8,cwd);return{'type':'parent_name','parentName':_0x354efd,'targetDir':_0x404f1f,'configRoot':_0x404f1f};}const _0x6aa521=await findTdxConfigAsync(cwd,fs);if(_0x6aa521){const _0x43282b=calculateScopedPath(cwd,_0x6aa521['configDir']);return{'type':_0x393935(0xd4),'parentName':_0x6aa521[_0x393935(0xff)],'targetDir':cwd,'configRoot':_0x6aa521['configDir'],'isScoped':_0x43282b[_0x393935(0xe4)],'scopedFolderPath':_0x43282b['scopedFolderPath']};}if(_0x5c498a){const _0x256b1b=sanitizeFileName(_0x5c498a),_0x1e2e2b=getSegmentRootDir(_0x256b1b,cwd);return{'type':_0x393935(0xd4),'parentName':_0x5c498a,'targetDir':_0x1e2e2b,'configRoot':_0x1e2e2b,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x393935(0xd2),'message':_0x393935(0xe5),'helpText':'Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure'};}
1
+ function a147_0x22d2(_0x1074c2,_0x554e48){_0x1074c2=_0x1074c2-0xba;const _0x2042a3=a147_0x2042();let _0x22d2b3=_0x2042a3[_0x1074c2];return _0x22d2b3;}(function(_0x43db83,_0x53f46c){const _0x1d8a66=a147_0x22d2,_0x45cba5=_0x43db83();while(!![]){try{const _0x23d5d8=parseInt(_0x1d8a66(0xc6))/0x1*(-parseInt(_0x1d8a66(0xe2))/0x2)+parseInt(_0x1d8a66(0xca))/0x3+parseInt(_0x1d8a66(0xdb))/0x4+parseInt(_0x1d8a66(0xd7))/0x5+parseInt(_0x1d8a66(0xea))/0x6+parseInt(_0x1d8a66(0xce))/0x7+-parseInt(_0x1d8a66(0xd4))/0x8;if(_0x23d5d8===_0x53f46c)break;else _0x45cba5['push'](_0x45cba5['shift']());}catch(_0x163732){_0x45cba5['push'](_0x45cba5['shift']());}}}(a147_0x2042,0xb6150));import a147_0x5d979c from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x5f44a6){const _0x3c0dba=a147_0x22d2;return _0x5f44a6[_0x3c0dba(0xe8)]!==_0x3c0dba(0xe0);}export function isScopedResolution(_0x498dbd){const _0x5e9753=a147_0x22d2;return _0x498dbd[_0x5e9753(0xe8)]===_0x5e9753(0xc2)||_0x498dbd[_0x5e9753(0xe8)]===_0x5e9753(0xcc)||_0x498dbd[_0x5e9753(0xe8)]===_0x5e9753(0xe4);}export function getScopedDetails(_0x5ee112){if(isScopedResolution(_0x5ee112))return{'isScoped':_0x5ee112['isScoped'],'scopedFolderPath':_0x5ee112['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x5c1930,_0x3bb715){const _0x13ca03=a147_0x22d2;let _0x98328d=a147_0x5d979c[_0x13ca03(0xde)](_0x5c1930);const _0x4a2a0f=a147_0x5d979c[_0x13ca03(0xc9)](_0x98328d)['root'];while(_0x98328d!==_0x4a2a0f){const _0x1e7b01=a147_0x5d979c[_0x13ca03(0xe3)](_0x98328d,_0x13ca03(0xc0));if(await _0x3bb715[_0x13ca03(0xd8)](_0x1e7b01))try{const _0x183acf=await _0x3bb715[_0x13ca03(0xcf)](_0x1e7b01),_0x51987d=JSON[_0x13ca03(0xc9)](_0x183acf);if(_0x51987d[_0x13ca03(0xba)]&&typeof _0x51987d[_0x13ca03(0xba)]==='string')return{'configPath':_0x1e7b01,'configDir':_0x98328d,'parentSegment':_0x51987d[_0x13ca03(0xba)]};}catch{}_0x98328d=a147_0x5d979c[_0x13ca03(0xc5)](_0x98328d);}return null;}function calculateScopedPath(_0x2b6d34,_0xafbecf){const _0x208ad0=a147_0x22d2,_0x1e6650=a147_0x5d979c[_0x208ad0(0xc7)](_0xafbecf,_0x2b6d34),_0x50a392=_0x1e6650!==''&&_0x1e6650!=='.'&&!_0x1e6650['startsWith']('..');return{'isScoped':_0x50a392,'scopedFolderPath':_0x50a392?_0x1e6650[_0x208ad0(0xc8)](/\\/g,'/'):''};}function a147_0x2042(){const _0x7c96ac=['tdx.json','resourceType','directory','isDirectory','file_not_found','dirname','2GpZVzg','relative','replace','parse','3582306AmKqUK','includes','file','journey','9427985OwAGFF','readFile','parentSegment','segmentName','folderPath','stat','37514928CWSkdw','scopedFolderPath','cwd','6073830CJbQSb','exists','message','isFile','5667840JKnsgT','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','match','resolve','File\x20not\x20found:\x20','error','File\x20not\x20found','127418NdRSnD','join','context','extname','trim','configDir','type','no_parent','2339454OssCDQ','parent_segment','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','No\x20tdx.json\x20found\x20for\x20file:\x20','invalid_yaml','no_config','basename'];a147_0x2042=function(){return _0x7c96ac;};return a147_0x2042();}export async function resolveTarget(_0x31e017){const _0x150843=a147_0x22d2,{arg:_0x4e7063,contextParent:_0x33631a,cwd:cwd=process[_0x150843(0xd6)](),fs:fs=nodeFileSystem}=_0x31e017;if(_0x4e7063&&isYamlFilePath(_0x4e7063))try{const _0xb7896f=await resolveYamlFilePath(_0x4e7063,fs),_0x1374ff=a147_0x5d979c[_0x150843(0xde)](_0x4e7063),_0xacbc3f=a147_0x5d979c[_0x150843(0xc5)](_0x1374ff),_0x22476e=await findTdxConfigAsync(_0xacbc3f,fs);if(!_0x22476e){if(_0x33631a){const _0xcf17f4=a147_0x5d979c[_0x150843(0xc5)](_0x1374ff);return{'type':_0x150843(0xcc),'parentName':_0x33631a,'targetDir':_0xcf17f4,'configRoot':_0xcf17f4,'filePath':_0x1374ff,'resourceName':_0xb7896f[_0x150843(0xd1)],'folderPath':_0xb7896f[_0x150843(0xd2)],'resourceType':_0xb7896f['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x150843(0xe0),'errorCode':'no_config','message':_0x150843(0xbc)+_0x4e7063,'arg':_0x4e7063,'helpText':_0x150843(0xdc)};}const _0x51aa88=calculateScopedPath(_0xacbc3f,_0x22476e[_0x150843(0xe7)]);return{'type':'file','parentName':_0x22476e[_0x150843(0xd0)],'targetDir':_0x22476e[_0x150843(0xe7)],'configRoot':_0x22476e[_0x150843(0xe7)],'filePath':_0x1374ff,'resourceName':_0xb7896f[_0x150843(0xd1)],'folderPath':_0xb7896f[_0x150843(0xd2)],'resourceType':_0xb7896f[_0x150843(0xc1)],'isScoped':_0x51aa88['isScoped'],'scopedFolderPath':_0x51aa88[_0x150843(0xd5)]};}catch(_0x45b779){const _0x35f7f1=_0x45b779 instanceof Error?_0x45b779[_0x150843(0xd9)]:String(_0x45b779);if(_0x35f7f1[_0x150843(0xcb)](_0x150843(0xe1)))return{'type':_0x150843(0xe0),'errorCode':_0x150843(0xc4),'message':_0x150843(0xdf)+_0x4e7063,'arg':_0x4e7063};if(_0x35f7f1['includes']('No\x20tdx.json\x20found')){if(_0x33631a){const _0x5ba9c9=a147_0x5d979c[_0x150843(0xde)](_0x4e7063);if(await fs[_0x150843(0xd8)](_0x5ba9c9)){const _0x19f42f=a147_0x5d979c[_0x150843(0xc5)](_0x5ba9c9),_0x37e8a8=await fs['readFile'](_0x5ba9c9),_0x1d6115=_0x37e8a8[_0x150843(0xdd)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x8412cf=_0x37e8a8[_0x150843(0xdd)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x48bfbe=_0x1d6115?_0x1d6115[0x1][_0x150843(0xe6)]():a147_0x5d979c[_0x150843(0xbf)](_0x4e7063,a147_0x5d979c[_0x150843(0xe5)](_0x4e7063)),_0xfadbfb=_0x8412cf&&_0x8412cf[0x1][_0x150843(0xe6)]()===_0x150843(0xcd)?_0x150843(0xcd):'segment';return{'type':_0x150843(0xcc),'parentName':_0x33631a,'targetDir':_0x19f42f,'configRoot':_0x19f42f,'filePath':_0x5ba9c9,'resourceName':_0x48bfbe,'folderPath':'','resourceType':_0xfadbfb,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x150843(0xe0),'errorCode':_0x150843(0xbe),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x4e7063,'arg':_0x4e7063,'helpText':'Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27'};}return{'type':_0x150843(0xe0),'errorCode':_0x150843(0xbd),'message':_0x35f7f1,'arg':_0x4e7063};}if(_0x4e7063){const _0x2ad93f=a147_0x5d979c[_0x150843(0xde)](cwd,_0x4e7063);let _0x4d5cb5=null;try{_0x4d5cb5=await fs[_0x150843(0xd3)](_0x2ad93f);}catch{}if(_0x4d5cb5?.[_0x150843(0xc3)]()){const _0x3d1e56=await findTdxConfigAsync(_0x2ad93f,fs);if(_0x3d1e56){const _0x2d47fd=calculateScopedPath(_0x2ad93f,_0x3d1e56['configDir']);return{'type':_0x150843(0xc2),'parentName':_0x3d1e56[_0x150843(0xd0)],'targetDir':_0x2ad93f,'configRoot':_0x3d1e56[_0x150843(0xe7)],'isScoped':_0x2d47fd['isScoped'],'scopedFolderPath':_0x2d47fd[_0x150843(0xd5)]};}if(_0x33631a)return{'type':_0x150843(0xc2),'parentName':_0x33631a,'targetDir':_0x2ad93f,'configRoot':_0x2ad93f,'isScoped':![],'scopedFolderPath':''};return{'type':_0x150843(0xe0),'errorCode':'no_config','message':'No\x20tdx.json\x20found\x20in\x20or\x20above:\x20'+_0x4e7063,'arg':_0x4e7063,'helpText':_0x150843(0xdc)};}if(_0x4d5cb5?.[_0x150843(0xda)]())return{'type':_0x150843(0xe0),'errorCode':'invalid_yaml','message':'Not\x20a\x20YAML\x20file:\x20'+_0x4e7063,'arg':_0x4e7063,'helpText':_0x150843(0xbb)};const _0xbe49ae=sanitizeFileName(_0x4e7063),_0xf56659=getSegmentRootDir(_0xbe49ae,cwd);return{'type':'parent_name','parentName':_0x4e7063,'targetDir':_0xf56659,'configRoot':_0xf56659};}const _0x419c68=await findTdxConfigAsync(cwd,fs);if(_0x419c68){const _0x36adbd=calculateScopedPath(cwd,_0x419c68[_0x150843(0xe7)]);return{'type':_0x150843(0xe4),'parentName':_0x419c68['parentSegment'],'targetDir':cwd,'configRoot':_0x419c68[_0x150843(0xe7)],'isScoped':_0x36adbd['isScoped'],'scopedFolderPath':_0x36adbd[_0x150843(0xd5)]};}if(_0x33631a){const _0x2a4bdb=sanitizeFileName(_0x33631a),_0x59f297=getSegmentRootDir(_0x2a4bdb,cwd);return{'type':'context','parentName':_0x33631a,'targetDir':_0x59f297,'configRoot':_0x59f297,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x150843(0xe0),'errorCode':_0x150843(0xe9),'message':'Parent\x20segment\x20not\x20specified','helpText':'Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure'};}
@@ -1 +1 @@
1
- const a148_0x48d31d=a148_0x54c0;(function(_0x3bdb56,_0x36ad62){const _0x5ed044=a148_0x54c0,_0x47388d=_0x3bdb56();while(!![]){try{const _0x4bc162=parseInt(_0x5ed044(0x1cd))/0x1+parseInt(_0x5ed044(0x1c3))/0x2+parseInt(_0x5ed044(0x1c8))/0x3+parseInt(_0x5ed044(0x1cb))/0x4*(parseInt(_0x5ed044(0x1c9))/0x5)+parseInt(_0x5ed044(0x1c0))/0x6*(parseInt(_0x5ed044(0x1c6))/0x7)+parseInt(_0x5ed044(0x1d1))/0x8+-parseInt(_0x5ed044(0x1ce))/0x9*(parseInt(_0x5ed044(0x1dc))/0xa);if(_0x4bc162===_0x36ad62)break;else _0x47388d['push'](_0x47388d['shift']());}catch(_0x5b145f){_0x47388d['push'](_0x47388d['shift']());}}}(a148_0x1a91,0x84646));import{existsSync,readFileSync}from'fs';function a148_0x54c0(_0x1af107,_0x4fa6a0){_0x1af107=_0x1af107-0x1c0;const _0x1a914c=a148_0x1a91();let _0x54c0b7=_0x1a914c[_0x1af107];return _0x54c0b7;}import a148_0x1c3713 from'path';const TDX_CONFIG_FILE=a148_0x48d31d(0x1c5),SEGMENTS_DIR=a148_0x48d31d(0x1d3);export function findTdxConfigPath(_0x46b083=process[a148_0x48d31d(0x1d2)]()){const _0x562146=a148_0x48d31d;let _0x2e9491=a148_0x1c3713['resolve'](_0x46b083);const _0x470bc7=a148_0x1c3713[_0x562146(0x1d4)](_0x2e9491)[_0x562146(0x1c1)];while(_0x2e9491!==_0x470bc7){const _0x233cc5=a148_0x1c3713[_0x562146(0x1cf)](_0x2e9491,TDX_CONFIG_FILE);if(existsSync(_0x233cc5))return _0x233cc5;_0x2e9491=a148_0x1c3713[_0x562146(0x1cc)](_0x2e9491);}return null;}export function loadTdxConfig(_0x136b2e){const _0x583b47=a148_0x48d31d,_0x62cacd=readFileSync(_0x136b2e,'utf-8');let _0x5567df;try{_0x5567df=JSON[_0x583b47(0x1d4)](_0x62cacd);}catch{throw new Error(_0x583b47(0x1c7)+_0x136b2e);}if(!_0x5567df||typeof _0x5567df!=='object')throw new Error(_0x583b47(0x1d6));const _0x598ad5=_0x5567df,_0x17b286=_0x598ad5[_0x583b47(0x1c2)]&&typeof _0x598ad5['parent_segment']===_0x583b47(0x1d5),_0x23f916=_0x598ad5[_0x583b47(0x1d7)]&&typeof _0x598ad5[_0x583b47(0x1d7)]===_0x583b47(0x1d5);if(!_0x17b286&&!_0x23f916)throw new Error(_0x583b47(0x1da));const _0xdf2d81={};return _0x17b286&&(_0xdf2d81[_0x583b47(0x1c2)]=_0x598ad5[_0x583b47(0x1c2)]),_0x23f916&&(_0xdf2d81[_0x583b47(0x1d7)]=_0x598ad5[_0x583b47(0x1d7)]),_0xdf2d81;}export function findTdxConfig(_0x45b140=process[a148_0x48d31d(0x1d2)]()){const _0xf8d0a3=a148_0x48d31d,_0x572200=findTdxConfigPath(_0x45b140);if(!_0x572200)throw new Error(_0xf8d0a3(0x1ca));const _0x342984=loadTdxConfig(_0x572200),_0x4dbd2c=a148_0x1c3713['dirname'](_0x572200);return{'config':_0x342984,'configPath':_0x572200,'configDir':_0x4dbd2c};}export function tryFindTdxConfig(_0x1ee979){try{return findTdxConfig(_0x1ee979);}catch{return null;}}export function getSegmentRootDir(_0x5ebfa2,_0x237558=process[a148_0x48d31d(0x1d2)]()){const _0x41b317=a148_0x48d31d;return a148_0x1c3713[_0x41b317(0x1cf)](_0x237558,SEGMENTS_DIR,_0x5ebfa2);}export function getTdxConfigPath(_0x5352de,_0x25a8f1=process[a148_0x48d31d(0x1d2)]()){const _0x418a77=a148_0x48d31d;return a148_0x1c3713[_0x418a77(0x1cf)](getSegmentRootDir(_0x5352de,_0x25a8f1),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5160e7,_0x3bb4ec){const _0x18b463=a148_0x48d31d,_0x18cef9=a148_0x1c3713[_0x18b463(0x1d9)](_0x5160e7),_0x22b095=a148_0x1c3713[_0x18b463(0x1d0)](_0x3bb4ec,_0x18cef9);if(_0x22b095[_0x18b463(0x1db)]('..'))return'';return _0x22b095;}export function localPathToTdFolderPath(_0x33950f){const _0xd487b0=a148_0x48d31d,_0x2946b8=a148_0x1c3713['dirname'](_0x33950f);if(_0x2946b8==='.'||_0x2946b8==='')return'';return _0x2946b8[_0xd487b0(0x1c4)](/\\/g,'/');}function a148_0x1a91(){const _0x2b8a41=['84mgGahA','Invalid\x20JSON\x20in\x20','961326OVUTUP','7705LYKyAl','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','1468GcvHVA','dirname','206737mzSfnb','262674odLRGR','join','relative','8314200aEIOQg','cwd','segments','parse','string','Invalid\x20tdx.json:\x20expected\x20object','engage_workspace','stringify','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','startsWith','780pMqChU','284592TIZpEc','root','parent_segment','235202yiXmMB','replace','tdx.json'];a148_0x1a91=function(){return _0x2b8a41;};return a148_0x1a91();}export function tdFolderPathToLocalPath(_0x2415c9,_0x51a647){const _0x290969=a148_0x48d31d;if(!_0x2415c9)return _0x51a647;return a148_0x1c3713[_0x290969(0x1cf)](_0x51a647,_0x2415c9);}export function createTdxConfigContent(_0x1bba24){const _0x362154={'parent_segment':_0x1bba24};return JSON['stringify'](_0x362154,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x292122){const _0x1436d1=a148_0x48d31d,_0x492101={'engage_workspace':_0x292122};return JSON[_0x1436d1(0x1d8)](_0x492101,null,0x2)+'\x0a';}
1
+ const a148_0x107ac7=a148_0x4094;(function(_0x5031cb,_0x35096d){const _0x4b1342=a148_0x4094,_0x2d6eea=_0x5031cb();while(!![]){try{const _0x4a575d=parseInt(_0x4b1342(0x15e))/0x1+parseInt(_0x4b1342(0x161))/0x2+parseInt(_0x4b1342(0x155))/0x3*(parseInt(_0x4b1342(0x160))/0x4)+-parseInt(_0x4b1342(0x15a))/0x5*(parseInt(_0x4b1342(0x158))/0x6)+-parseInt(_0x4b1342(0x152))/0x7*(-parseInt(_0x4b1342(0x159))/0x8)+-parseInt(_0x4b1342(0x15d))/0x9*(parseInt(_0x4b1342(0x164))/0xa)+-parseInt(_0x4b1342(0x162))/0xb*(parseInt(_0x4b1342(0x157))/0xc);if(_0x4a575d===_0x35096d)break;else _0x2d6eea['push'](_0x2d6eea['shift']());}catch(_0x481a2f){_0x2d6eea['push'](_0x2d6eea['shift']());}}}(a148_0x19cd,0xcf4c4));import{existsSync,readFileSync}from'fs';import a148_0x57bcc2 from'path';const TDX_CONFIG_FILE=a148_0x107ac7(0x153),SEGMENTS_DIR=a148_0x107ac7(0x166);export function findTdxConfigPath(_0x4295c8=process[a148_0x107ac7(0x15c)]()){const _0x52b6b3=a148_0x107ac7;let _0x296d34=a148_0x57bcc2['resolve'](_0x4295c8);const _0x19dfec=a148_0x57bcc2[_0x52b6b3(0x150)](_0x296d34)['root'];while(_0x296d34!==_0x19dfec){const _0x30edf6=a148_0x57bcc2[_0x52b6b3(0x156)](_0x296d34,TDX_CONFIG_FILE);if(existsSync(_0x30edf6))return _0x30edf6;_0x296d34=a148_0x57bcc2['dirname'](_0x296d34);}return null;}export function loadTdxConfig(_0x1fb4cf){const _0x1947f8=a148_0x107ac7,_0x361168=readFileSync(_0x1fb4cf,_0x1947f8(0x167));let _0x360020;try{_0x360020=JSON['parse'](_0x361168);}catch{throw new Error(_0x1947f8(0x168)+_0x1fb4cf);}if(!_0x360020||typeof _0x360020!==_0x1947f8(0x165))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x3783b6=_0x360020,_0x2a1bc7=_0x3783b6['parent_segment']&&typeof _0x3783b6[_0x1947f8(0x151)]===_0x1947f8(0x169),_0x46439c=_0x3783b6[_0x1947f8(0x15b)]&&typeof _0x3783b6[_0x1947f8(0x15b)]===_0x1947f8(0x169);if(!_0x2a1bc7&&!_0x46439c)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x330d96={};return _0x2a1bc7&&(_0x330d96[_0x1947f8(0x151)]=_0x3783b6['parent_segment']),_0x46439c&&(_0x330d96[_0x1947f8(0x15b)]=_0x3783b6[_0x1947f8(0x15b)]),_0x330d96;}export function findTdxConfig(_0x7f5303=process['cwd']()){const _0x172660=a148_0x107ac7,_0x39af0c=findTdxConfigPath(_0x7f5303);if(!_0x39af0c)throw new Error(_0x172660(0x16b));const _0x3701e6=loadTdxConfig(_0x39af0c),_0x57cb9b=a148_0x57bcc2[_0x172660(0x16c)](_0x39af0c);return{'config':_0x3701e6,'configPath':_0x39af0c,'configDir':_0x57cb9b};}export function tryFindTdxConfig(_0x2b94a8){try{return findTdxConfig(_0x2b94a8);}catch{return null;}}export function getSegmentRootDir(_0x5a3b7e,_0x40effb=process[a148_0x107ac7(0x15c)]()){const _0x109c4b=a148_0x107ac7;return a148_0x57bcc2[_0x109c4b(0x156)](_0x40effb,SEGMENTS_DIR,_0x5a3b7e);}export function getTdxConfigPath(_0x18f9a3,_0x44c339=process[a148_0x107ac7(0x15c)]()){const _0x265f50=a148_0x107ac7;return a148_0x57bcc2[_0x265f50(0x156)](getSegmentRootDir(_0x18f9a3,_0x44c339),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5626bf,_0x37847d){const _0x182c4c=a148_0x107ac7,_0x4c1fac=a148_0x57bcc2[_0x182c4c(0x16a)](_0x5626bf),_0x52d6ce=a148_0x57bcc2['relative'](_0x37847d,_0x4c1fac);if(_0x52d6ce[_0x182c4c(0x15f)]('..'))return'';return _0x52d6ce;}function a148_0x19cd(){const _0x50f840=['1036796gWqkJd','1090914nIYuty','506CugBDn','replace','30INttnx','object','segments','utf-8','Invalid\x20JSON\x20in\x20','string','resolve','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','dirname','parse','parent_segment','1731653xJJbDt','tdx.json','stringify','15dHZkdY','join','279924goFJNg','15258wFUmqp','8MyhylS','1545uijOfR','engage_workspace','cwd','2874798kfQBYs','1577356rBmiNa','startsWith'];a148_0x19cd=function(){return _0x50f840;};return a148_0x19cd();}function a148_0x4094(_0x4501c2,_0x268571){_0x4501c2=_0x4501c2-0x150;const _0x19cd43=a148_0x19cd();let _0x409428=_0x19cd43[_0x4501c2];return _0x409428;}export function localPathToTdFolderPath(_0x1a8243){const _0xe88669=a148_0x107ac7,_0x17c097=a148_0x57bcc2[_0xe88669(0x16c)](_0x1a8243);if(_0x17c097==='.'||_0x17c097==='')return'';return _0x17c097[_0xe88669(0x163)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x2990fa,_0x28c3b6){const _0x4c6dc8=a148_0x107ac7;if(!_0x2990fa)return _0x28c3b6;return a148_0x57bcc2[_0x4c6dc8(0x156)](_0x28c3b6,_0x2990fa);}export function createTdxConfigContent(_0x2e8c61){const _0x16b760=a148_0x107ac7,_0x49985e={'parent_segment':_0x2e8c61};return JSON[_0x16b760(0x154)](_0x49985e,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x35078f){const _0x45a8e4={'engage_workspace':_0x35078f};return JSON['stringify'](_0x45a8e4,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a149_0x358bbe=a149_0xb35a;(function(_0x4e5bf6,_0x3ab19b){const _0x55824f=a149_0xb35a,_0x2f92f7=_0x4e5bf6();while(!![]){try{const _0xb3b2ff=parseInt(_0x55824f(0x92))/0x1+parseInt(_0x55824f(0x71))/0x2+parseInt(_0x55824f(0x83))/0x3+-parseInt(_0x55824f(0x70))/0x4+-parseInt(_0x55824f(0x94))/0x5+parseInt(_0x55824f(0x73))/0x6+-parseInt(_0x55824f(0x78))/0x7;if(_0xb3b2ff===_0x3ab19b)break;else _0x2f92f7['push'](_0x2f92f7['shift']());}catch(_0x1d27f9){_0x2f92f7['push'](_0x2f92f7['shift']());}}}(a149_0x46bf,0x71f45));import{z}from'zod';export const ScheduleTypeSchema=z['enum']([a149_0x358bbe(0x75),'hourly',a149_0x358bbe(0x72),a149_0x358bbe(0x7f),'monthly',a149_0x358bbe(0x79),a149_0x358bbe(0x7e)]);export const RepeatUnitSchema=z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x89),a149_0x358bbe(0x82),a149_0x358bbe(0x81),a149_0x358bbe(0x8f),a149_0x358bbe(0x74),a149_0x358bbe(0x6f),a149_0x358bbe(0x75)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a149_0x358bbe(0x8d)]()[a149_0x358bbe(0x85)](),'repeat_sub_frequency':z['array'](z[a149_0x358bbe(0x8d)]())[a149_0x358bbe(0x85)](),'start_at':z[a149_0x358bbe(0x7a)]()['nullable']()[a149_0x358bbe(0x85)](),'end_on':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'timezone':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)]()});export const NotificationDefSchema=z[a149_0x358bbe(0x90)]({'notify_on':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x80),'onFailure']))[a149_0x358bbe(0x85)](),'email_recipients':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x7a)]())[a149_0x358bbe(0x85)]()});export const ActivationColumnDefSchema=z[a149_0x358bbe(0x8a)]([z[a149_0x358bbe(0x7a)](),z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)](),'type':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'visibility':z['enum']([a149_0x358bbe(0x7d),a149_0x358bbe(0x86)])[a149_0x358bbe(0x85)]()})]);function a149_0xb35a(_0x1bbd30,_0x106529){_0x1bbd30=_0x1bbd30-0x6f;const _0x46bf38=a149_0x46bf();let _0xb35a03=_0x46bf38[_0x1bbd30];return _0xb35a03;}function a149_0x46bf(){const _0x514195=['cron','string','First','Activation\x20name\x20is\x20required','clear','minutes_interval','weekly','onSuccess','day','hour','2341194RdXZOk','asc','optional','masked','All','record','minute','union','enum','min','number','cols','week','object','Connection\x20name\x20is\x20required','589834DfuuTj','nullable','836785NgnEXG','unknown','Top-N','Last','once','2928924LPEkJC','368172WZFUci','daily','5072628qmIfkY','month','none','boolean','array','7233877SXQwcz'];a149_0x46bf=function(){return _0x514195;};return a149_0x46bf();}export const ActivationBehaviorDefSchema=z[a149_0x358bbe(0x90)]({'columns':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)](),'type':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'visibility':z[a149_0x358bbe(0x8b)](['clear',a149_0x358bbe(0x86)])[a149_0x358bbe(0x85)]()}))[a149_0x358bbe(0x85)](),'behavior_table':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'join_row':z[a149_0x358bbe(0x8d)]()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'join_strategy':z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x87),a149_0x358bbe(0x7b),a149_0x358bbe(0x97),a149_0x358bbe(0x96)])[a149_0x358bbe(0x85)](),'formatting':z[a149_0x358bbe(0x8b)](['rows',a149_0x358bbe(0x8e)])['optional'](),'order_by':z['array'](z[a149_0x358bbe(0x90)]({'key':z[a149_0x358bbe(0x7a)](),'order':z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x84),'desc'])}))['optional']()});export const ActivationDefSchema=z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)]()['min'](0x1,a149_0x358bbe(0x7c)),'description':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'connection':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x8c)](0x1,a149_0x358bbe(0x91)),'all_columns':z[a149_0x358bbe(0x76)]()[a149_0x358bbe(0x85)](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a149_0x358bbe(0x85)](),'notification':NotificationDefSchema[a149_0x358bbe(0x85)](),'connector_config':z[a149_0x358bbe(0x88)](z['string'](),z[a149_0x358bbe(0x95)]())[a149_0x358bbe(0x85)](),'activation_template_id':z['string']()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'behavior':ActivationBehaviorDefSchema[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'run_after_journey_refresh':z['boolean']()['optional']()});
1
+ const a149_0x58a373=a149_0x7981;(function(_0x392c74,_0x37d610){const _0x389c2f=a149_0x7981,_0x1b8b4b=_0x392c74();while(!![]){try{const _0x234c93=parseInt(_0x389c2f(0x136))/0x1*(parseInt(_0x389c2f(0x133))/0x2)+-parseInt(_0x389c2f(0x12a))/0x3+-parseInt(_0x389c2f(0x125))/0x4*(parseInt(_0x389c2f(0x119))/0x5)+-parseInt(_0x389c2f(0x126))/0x6+parseInt(_0x389c2f(0x130))/0x7*(parseInt(_0x389c2f(0x118))/0x8)+parseInt(_0x389c2f(0x11e))/0x9+parseInt(_0x389c2f(0x117))/0xa;if(_0x234c93===_0x37d610)break;else _0x1b8b4b['push'](_0x1b8b4b['shift']());}catch(_0x2af3fd){_0x1b8b4b['push'](_0x1b8b4b['shift']());}}}(a149_0x4e34,0x47476));import{z}from'zod';export const ScheduleTypeSchema=z[a149_0x58a373(0x124)](['none','hourly',a149_0x58a373(0x129),a149_0x58a373(0x13c),a149_0x58a373(0x120),a149_0x58a373(0x128),a149_0x58a373(0x135)]);export const RepeatUnitSchema=z[a149_0x58a373(0x124)]([a149_0x58a373(0x134),'hour',a149_0x58a373(0x12e),a149_0x58a373(0x13d),a149_0x58a373(0x122),a149_0x58a373(0x138),a149_0x58a373(0x11a)]);function a149_0x4e34(){const _0xa87f0b=['desc','asc','Activation\x20name\x20is\x20required','onSuccess','min','341990eXcRye','5264tzTuag','5SzPADO','none','object','Top-N','array','3963024ANOKTE','First','monthly','optional','month','nullable','enum','937828yObMvg','401718tOzvFz','string','cron','daily','1237995jGVdar','union','rows','All','day','clear','2107czvVsK','boolean','Last','10420rsEtuk','minute','minutes_interval','64lLQJly','number','once','masked','record','onFailure','weekly','week'];a149_0x4e34=function(){return _0xa87f0b;};return a149_0x4e34();}export const ScheduleDefSchema=z[a149_0x58a373(0x11b)]({'type':ScheduleTypeSchema[a149_0x58a373(0x121)](),'repeat_unit':RepeatUnitSchema[a149_0x58a373(0x121)](),'repeat_frequency':z['number']()[a149_0x58a373(0x121)](),'repeat_sub_frequency':z[a149_0x58a373(0x11d)](z[a149_0x58a373(0x137)]())['optional'](),'start_at':z[a149_0x58a373(0x127)]()['nullable']()[a149_0x58a373(0x121)](),'end_on':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x123)]()[a149_0x58a373(0x121)](),'timezone':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x121)]()});function a149_0x7981(_0x2b495b,_0x391a81){_0x2b495b=_0x2b495b-0x112;const _0x4e346=a149_0x4e34();let _0x7981f3=_0x4e346[_0x2b495b];return _0x7981f3;}export const NotificationDefSchema=z['object']({'notify_on':z['array'](z['enum']([a149_0x58a373(0x115),a149_0x58a373(0x13b)]))[a149_0x58a373(0x121)](),'email_recipients':z['array'](z['string']())[a149_0x58a373(0x121)]()});export const ActivationColumnDefSchema=z[a149_0x58a373(0x12b)]([z['string'](),z['object']({'name':z[a149_0x58a373(0x127)](),'type':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x121)](),'visibility':z[a149_0x58a373(0x124)]([a149_0x58a373(0x12f),a149_0x58a373(0x139)])['optional']()})]);export const ActivationBehaviorDefSchema=z[a149_0x58a373(0x11b)]({'columns':z['array'](z[a149_0x58a373(0x11b)]({'name':z['string'](),'type':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x121)](),'visibility':z['enum'](['clear',a149_0x58a373(0x139)])[a149_0x58a373(0x121)]()}))[a149_0x58a373(0x121)](),'behavior_table':z[a149_0x58a373(0x127)]()['optional'](),'join_row':z[a149_0x58a373(0x137)]()[a149_0x58a373(0x123)]()[a149_0x58a373(0x121)](),'join_strategy':z['enum']([a149_0x58a373(0x12d),a149_0x58a373(0x11f),a149_0x58a373(0x132),a149_0x58a373(0x11c)])[a149_0x58a373(0x121)](),'formatting':z[a149_0x58a373(0x124)]([a149_0x58a373(0x12c),'cols'])[a149_0x58a373(0x121)](),'order_by':z[a149_0x58a373(0x11d)](z[a149_0x58a373(0x11b)]({'key':z[a149_0x58a373(0x127)](),'order':z[a149_0x58a373(0x124)]([a149_0x58a373(0x113),a149_0x58a373(0x112)])}))[a149_0x58a373(0x121)]()});export const ActivationDefSchema=z[a149_0x58a373(0x11b)]({'name':z['string']()[a149_0x58a373(0x116)](0x1,a149_0x58a373(0x114)),'description':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x121)](),'connection':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x116)](0x1,'Connection\x20name\x20is\x20required'),'all_columns':z[a149_0x58a373(0x131)]()['optional'](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a149_0x58a373(0x121)](),'notification':NotificationDefSchema[a149_0x58a373(0x121)](),'connector_config':z[a149_0x58a373(0x13a)](z['string'](),z['unknown']())[a149_0x58a373(0x121)](),'activation_template_id':z[a149_0x58a373(0x127)]()[a149_0x58a373(0x123)]()[a149_0x58a373(0x121)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a149_0x58a373(0x121)](),'run_after_journey_refresh':z[a149_0x58a373(0x131)]()[a149_0x58a373(0x121)]()});
@@ -1 +1 @@
1
- function a150_0x2850(){var _0x5848a5=['10pTeIGt','4dLacsA','2193735TfKMdo','27993876SpzZsC','842YjUuCW','1956NuQGPk','288edoIPo','5382168PgPkaG','287539IAUwJu','11QADUyB','6037929afBCzA','3423963UNxMOB'];a150_0x2850=function(){return _0x5848a5;};return a150_0x2850();}(function(_0x558727,_0x33af70){var _0x5b4913=a150_0x1ec7,_0x1b2442=_0x558727();while(!![]){try{var _0x14a025=parseInt(_0x5b4913(0xe3))/0x1*(parseInt(_0x5b4913(0xe2))/0x2)+-parseInt(_0x5b4913(0xe9))/0x3*(parseInt(_0x5b4913(0xeb))/0x4)+parseInt(_0x5b4913(0xe0))/0x5+-parseInt(_0x5b4913(0xe5))/0x6+-parseInt(_0x5b4913(0xe6))/0x7*(parseInt(_0x5b4913(0xe4))/0x8)+-parseInt(_0x5b4913(0xe8))/0x9*(-parseInt(_0x5b4913(0xea))/0xa)+-parseInt(_0x5b4913(0xe7))/0xb*(-parseInt(_0x5b4913(0xe1))/0xc);if(_0x14a025===_0x33af70)break;else _0x1b2442['push'](_0x1b2442['shift']());}catch(_0x543020){_0x1b2442['push'](_0x1b2442['shift']());}}}(a150_0x2850,0xb6d06));function a150_0x1ec7(_0x46194a,_0x4ac454){_0x46194a=_0x46194a-0xe0;var _0x28507f=a150_0x2850();var _0x1ec7df=_0x28507f[_0x46194a];return _0x1ec7df;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ (function(_0x32ae3f,_0x9aea62){var _0xcd4b33=a150_0x56f6,_0x327371=_0x32ae3f();while(!![]){try{var _0xf06266=parseInt(_0xcd4b33(0x6e))/0x1*(parseInt(_0xcd4b33(0x69))/0x2)+-parseInt(_0xcd4b33(0x68))/0x3+parseInt(_0xcd4b33(0x6c))/0x4*(parseInt(_0xcd4b33(0x6f))/0x5)+parseInt(_0xcd4b33(0x66))/0x6+parseInt(_0xcd4b33(0x6d))/0x7+-parseInt(_0xcd4b33(0x67))/0x8*(-parseInt(_0xcd4b33(0x6b))/0x9)+-parseInt(_0xcd4b33(0x6a))/0xa;if(_0xf06266===_0x9aea62)break;else _0x327371['push'](_0x327371['shift']());}catch(_0x4535c2){_0x327371['push'](_0x327371['shift']());}}}(a150_0x35db,0x8d27c));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a150_0x56f6(_0x11a141,_0x33da5c){_0x11a141=_0x11a141-0x66;var _0x35db77=a150_0x35db();var _0x56f6dc=_0x35db77[_0x11a141];return _0x56f6dc;}function a150_0x35db(){var _0x482499=['9673479tXOlyC','69100PvrQbM','6227368VITabd','189089MVDpER','150LspLcm','5723352yNfIGW','8ktXmIx','2109750Jxubcu','4CvjfIY','25333530bBdPYm'];a150_0x35db=function(){return _0x482499;};return a150_0x35db();}
@@ -1 +1 @@
1
- const a151_0x3e8b47=a151_0x567f;(function(_0x6e20d1,_0x572b67){const _0x4e1dbb=a151_0x567f,_0x5d421a=_0x6e20d1();while(!![]){try{const _0x21bc86=-parseInt(_0x4e1dbb(0x1ad))/0x1*(-parseInt(_0x4e1dbb(0x1b0))/0x2)+-parseInt(_0x4e1dbb(0x1c7))/0x3+parseInt(_0x4e1dbb(0x1a3))/0x4*(-parseInt(_0x4e1dbb(0x1c3))/0x5)+-parseInt(_0x4e1dbb(0x19f))/0x6*(-parseInt(_0x4e1dbb(0x1c8))/0x7)+-parseInt(_0x4e1dbb(0x1b6))/0x8*(-parseInt(_0x4e1dbb(0x1be))/0x9)+-parseInt(_0x4e1dbb(0x1a2))/0xa*(parseInt(_0x4e1dbb(0x1c0))/0xb)+parseInt(_0x4e1dbb(0x1a7))/0xc;if(_0x21bc86===_0x572b67)break;else _0x5d421a['push'](_0x5d421a['shift']());}catch(_0x42461f){_0x5d421a['push'](_0x5d421a['shift']());}}}(a151_0x158a,0x6b47f));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a151_0x3e8b47(0x1c2),a151_0x3e8b47(0x1c1),a151_0x3e8b47(0x1b2)]);export const ReentryModeTypeSchema=z[a151_0x3e8b47(0x1a0)]([a151_0x3e8b47(0x1aa),'reentry_unless_goal_achieved',a151_0x3e8b47(0x1bc)]);export const WaitUnitTypeSchema=z[a151_0x3e8b47(0x1a0)]([a151_0x3e8b47(0x1ab),a151_0x3e8b47(0x1b9)]);export const StepTypeValueSchema=z['enum']([a151_0x3e8b47(0x1b4),a151_0x3e8b47(0x1ba),'decision_point',a151_0x3e8b47(0x1a5),a151_0x3e8b47(0x1ae),a151_0x3e8b47(0x1c6),a151_0x3e8b47(0x1b1)]);export const EmbeddedSegmentDefSchema=z[a151_0x3e8b47(0x1a1)]({'description':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a151_0x3e8b47(0x1c5)](),'stage':z['string'](),'bundle_id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()});function a151_0x567f(_0x236dd2,_0x1e8d45){_0x236dd2=_0x236dd2-0x19d;const _0x158a11=a151_0x158a();let _0x567fee=_0x158a11[_0x236dd2];return _0x567fee;}export const CriteriaDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z['string'](),'description':z[a151_0x3e8b47(0x1c5)]()['optional'](),'segment':z[a151_0x3e8b47(0x1c5)](),'target':JumpTargetDefSchema[a151_0x3e8b47(0x1a6)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a151_0x3e8b47(0x1b8)](),'unit':WaitUnitTypeSchema,'next':z[a151_0x3e8b47(0x1c5)]()['optional']()}),WaitConditionDefSchema=z[a151_0x3e8b47(0x1a1)]({'segment':z[a151_0x3e8b47(0x1c5)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'duration':z[a151_0x3e8b47(0x1b8)]()[a151_0x3e8b47(0x1a6)](),'unit':WaitUnitTypeSchema[a151_0x3e8b47(0x1a6)](),'wait_until':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a151_0x3e8b47(0x19d)](z['string']())[a151_0x3e8b47(0x1a6)]()}),StepBaseFields={'name':z[a151_0x3e8b47(0x1c5)](),'uuid':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()},WaitStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1b4)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'activation':z['string']()}),ActivationStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1ba)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z[a151_0x3e8b47(0x1c5)](),'segment':z[a151_0x3e8b47(0x1c5)]()['optional'](),'segment_id':z['string']()[a151_0x3e8b47(0x1a6)](),'excluded':z[a151_0x3e8b47(0x1bb)]()[a151_0x3e8b47(0x1a6)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1ac)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x3e8b47(0x1a1)]({'id':z['string']()[a151_0x3e8b47(0x1a6)](),'name':z['string'](),'percentage':z['number'](),'next':z['string']()[a151_0x3e8b47(0x1a6)]()}),AbTestStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'customized_split':z[a151_0x3e8b47(0x1bb)]()['optional']()}),AbTestStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1a5)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1ae))}),JumpStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1c6)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1b1))})[a151_0x3e8b47(0x19e)]();export const StepDefSchema=z['discriminatedUnion'](a151_0x3e8b47(0x1a8),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a151_0x3e8b47(0x1c5)](),'description':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'id':z['string']()[a151_0x3e8b47(0x1a6)](),'entry_criteria':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'exit_criteria':z[a151_0x3e8b47(0x19d)](CriteriaDefSchema)[a151_0x3e8b47(0x1a6)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'steps':z[a151_0x3e8b47(0x19d)](StepDefSchema)[a151_0x3e8b47(0x1a6)]()});export const JourneyEntryDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z['string']()[a151_0x3e8b47(0x1a6)](),'version':z[a151_0x3e8b47(0x1c5)]()['optional'](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a151_0x3e8b47(0x1bb)]()[a151_0x3e8b47(0x1a6)](),'stages':z['array'](StageDefSchema),'id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'version_number':z['number']()[a151_0x3e8b47(0x1a6)](),'goal':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'reentry':ReentryModeTypeSchema[a151_0x3e8b47(0x1a6)]()});export const JourneyDefSchema=z[a151_0x3e8b47(0x1a4)](()=>z['object']({'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1a9)),'name':z[a151_0x3e8b47(0x1c5)]()['min'](0x1,a151_0x3e8b47(0x1ca)),'description':z[a151_0x3e8b47(0x1c5)]()['optional'](),'bundle_id':z['string']()[a151_0x3e8b47(0x1a6)](),'bundle_name':z['string']()[a151_0x3e8b47(0x1a6)](),'folder_id':z['string']()['optional'](),'reentry':ReentryModeTypeSchema[a151_0x3e8b47(0x1a6)](),'allow_reentry':z['boolean']()[a151_0x3e8b47(0x1a6)](),'goal':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'version':z[a151_0x3e8b47(0x1c5)]()['optional'](),'version_number':z[a151_0x3e8b47(0x1b8)]()[a151_0x3e8b47(0x1a6)](),'stages':z['array'](StageDefSchema)[a151_0x3e8b47(0x1a6)](),'versions':z[a151_0x3e8b47(0x19d)](JourneyEntryDefSchema)[a151_0x3e8b47(0x1a6)](),'journeys':z['array'](JourneyEntryDefSchema)[a151_0x3e8b47(0x1a6)](),'segments':z[a151_0x3e8b47(0x1b3)](z[a151_0x3e8b47(0x1c5)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a151_0x3e8b47(0x1b3)](z[a151_0x3e8b47(0x1c5)](),ActivationDefSchema)[a151_0x3e8b47(0x1a6)]()})[a151_0x3e8b47(0x1bd)](_0x191c68=>{const _0x40b6a6=a151_0x3e8b47,_0x2e047f=[_0x191c68['journeys'],_0x191c68[_0x40b6a6(0x1c9)],_0x191c68['versions']][_0x40b6a6(0x1af)](_0x337c36=>Array[_0x40b6a6(0x1b7)](_0x337c36)&&_0x337c36[_0x40b6a6(0x1b5)]>0x0)[_0x40b6a6(0x1b5)];return _0x2e047f===0x1;},{'message':a151_0x3e8b47(0x1c4)}));const _syncCheck1=!![],_syncCheck2=!![];function a151_0x158a(){const _0x82826=['4981944jTdOrY','type','journey','no_reentry','day','decision_point','1597oqiMSx','merge','filter','4KObvYX','end','launched','record','wait','length','191408xVtCAx','isArray','number','week','activation','boolean','reentry_always','refine','162zwtOHU','literal','11epvNQr','simulation','draft','5EMvwUO','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','string','jump','543669qUUjKA','364bQlGlr','stages','Journey\x20name\x20is\x20required','array','passthrough','63402lWCbEt','enum','object','1061210rSOgMw','2686964ZNLRdA','lazy','ab_test','optional'];a151_0x158a=function(){return _0x82826;};return a151_0x158a();}void _syncCheck1,void _syncCheck2;
1
+ const a151_0x3cffe1=a151_0x112e;(function(_0x185368,_0x4af842){const _0x226f8b=a151_0x112e,_0x1cce64=_0x185368();while(!![]){try{const _0x521d10=-parseInt(_0x226f8b(0x1d5))/0x1+parseInt(_0x226f8b(0x1da))/0x2+parseInt(_0x226f8b(0x1d4))/0x3+parseInt(_0x226f8b(0x1f9))/0x4*(-parseInt(_0x226f8b(0x1ee))/0x5)+-parseInt(_0x226f8b(0x1fb))/0x6*(parseInt(_0x226f8b(0x1e7))/0x7)+parseInt(_0x226f8b(0x1d2))/0x8+parseInt(_0x226f8b(0x1e1))/0x9*(parseInt(_0x226f8b(0x1ef))/0xa);if(_0x521d10===_0x4af842)break;else _0x1cce64['push'](_0x1cce64['shift']());}catch(_0x5022b5){_0x1cce64['push'](_0x1cce64['shift']());}}}(a151_0x2f38,0x628be));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a151_0x3cffe1(0x1ec)]([a151_0x3cffe1(0x1ea),'simulation','launched']);export const ReentryModeTypeSchema=z[a151_0x3cffe1(0x1ec)]([a151_0x3cffe1(0x1f5),a151_0x3cffe1(0x1e0),a151_0x3cffe1(0x1eb)]);export const WaitUnitTypeSchema=z[a151_0x3cffe1(0x1ec)]([a151_0x3cffe1(0x1d6),a151_0x3cffe1(0x1f4)]);export const StepTypeValueSchema=z[a151_0x3cffe1(0x1ec)]([a151_0x3cffe1(0x1f1),'activation','decision_point',a151_0x3cffe1(0x1e4),a151_0x3cffe1(0x1e9),a151_0x3cffe1(0x1f8),'end']);export const EmbeddedSegmentDefSchema=z[a151_0x3cffe1(0x1f0)]({'description':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z['string'](),'stage':z[a151_0x3cffe1(0x1dd)](),'bundle_id':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)]()});export const CriteriaDefSchema=z[a151_0x3cffe1(0x1f0)]({'name':z[a151_0x3cffe1(0x1dd)](),'description':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'segment':z[a151_0x3cffe1(0x1dd)](),'target':JumpTargetDefSchema[a151_0x3cffe1(0x1f7)]()});const WaitConditionTimeoutDefSchema=z[a151_0x3cffe1(0x1f0)]({'duration':z[a151_0x3cffe1(0x1f6)](),'unit':WaitUnitTypeSchema,'next':z[a151_0x3cffe1(0x1dd)]()['optional']()}),WaitConditionDefSchema=z[a151_0x3cffe1(0x1f0)]({'segment':z[a151_0x3cffe1(0x1dd)](),'next':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'timeout':WaitConditionTimeoutDefSchema[a151_0x3cffe1(0x1f7)]()}),WaitStepParamsDefSchema=z[a151_0x3cffe1(0x1f0)]({'duration':z['number']()[a151_0x3cffe1(0x1f7)](),'unit':WaitUnitTypeSchema[a151_0x3cffe1(0x1f7)](),'wait_until':z['string']()[a151_0x3cffe1(0x1f7)](),'condition':WaitConditionDefSchema[a151_0x3cffe1(0x1f7)](),'days_of_week':z[a151_0x3cffe1(0x1e6)](z[a151_0x3cffe1(0x1dd)]())[a151_0x3cffe1(0x1f7)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a151_0x3cffe1(0x1dd)]()['optional'](),'next':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)]()},WaitStepDefSchema=z[a151_0x3cffe1(0x1f0)]({...StepBaseFields,'type':z[a151_0x3cffe1(0x1d7)](a151_0x3cffe1(0x1f1)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a151_0x3cffe1(0x1dd)]()}),ActivationStepDefSchema=z[a151_0x3cffe1(0x1f0)]({...StepBaseFields,'type':z[a151_0x3cffe1(0x1d7)](a151_0x3cffe1(0x1df)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z['string'](),'segment':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'segment_id':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'excluded':z[a151_0x3cffe1(0x1f2)]()[a151_0x3cffe1(0x1f7)](),'next':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)]()}),DecisionPointStepParamsDefSchema=z[a151_0x3cffe1(0x1f0)]({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x3cffe1(0x1f0)]({...StepBaseFields,'type':z['literal']('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x3cffe1(0x1f0)]({'id':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'name':z[a151_0x3cffe1(0x1dd)](),'percentage':z[a151_0x3cffe1(0x1f6)](),'next':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)]()}),AbTestStepParamsDefSchema=z[a151_0x3cffe1(0x1f0)]({'variants':z[a151_0x3cffe1(0x1e6)](AbTestVariantDefSchema),'unique_id':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'customized_split':z[a151_0x3cffe1(0x1f2)]()['optional']()}),AbTestStepDefSchema=z[a151_0x3cffe1(0x1f0)]({...StepBaseFields,'type':z['literal']('ab_test'),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3cffe1(0x1d7)](a151_0x3cffe1(0x1e9))}),JumpStepParamsDefSchema=z[a151_0x3cffe1(0x1f0)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x3cffe1(0x1f0)]({...StepBaseFields,'type':z[a151_0x3cffe1(0x1d7)]('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a151_0x3cffe1(0x1f0)]({...StepBaseFields,'type':z[a151_0x3cffe1(0x1d7)]('end')})[a151_0x3cffe1(0x1db)]();export const StepDefSchema=z['discriminatedUnion']('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a151_0x3cffe1(0x1f0)]({'name':z[a151_0x3cffe1(0x1dd)](),'description':z['string']()[a151_0x3cffe1(0x1f7)](),'id':z[a151_0x3cffe1(0x1dd)]()['optional'](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z['array'](CriteriaDefSchema)[a151_0x3cffe1(0x1f7)](),'milestone':CriteriaDefSchema[a151_0x3cffe1(0x1f7)](),'root_step':z['string']()['optional'](),'steps':z[a151_0x3cffe1(0x1e6)](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z['object']({'name':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'version':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'state':JourneyStateTypeSchema[a151_0x3cffe1(0x1f7)](),'latest':z[a151_0x3cffe1(0x1f2)]()[a151_0x3cffe1(0x1f7)](),'stages':z[a151_0x3cffe1(0x1e6)](StageDefSchema),'id':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'version_number':z[a151_0x3cffe1(0x1f6)]()['optional'](),'goal':CriteriaDefSchema[a151_0x3cffe1(0x1f7)](),'reentry':ReentryModeTypeSchema[a151_0x3cffe1(0x1f7)]()});export const JourneyDefSchema=z[a151_0x3cffe1(0x1d3)](()=>z[a151_0x3cffe1(0x1f0)]({'type':z[a151_0x3cffe1(0x1d7)]('journey'),'name':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1fa)](0x1,a151_0x3cffe1(0x1d9)),'description':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'bundle_id':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'bundle_name':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'folder_id':z[a151_0x3cffe1(0x1dd)]()['optional'](),'reentry':ReentryModeTypeSchema[a151_0x3cffe1(0x1f7)](),'allow_reentry':z[a151_0x3cffe1(0x1f2)]()[a151_0x3cffe1(0x1f7)](),'goal':CriteriaDefSchema[a151_0x3cffe1(0x1f7)](),'id':z[a151_0x3cffe1(0x1dd)]()['optional'](),'version':z[a151_0x3cffe1(0x1dd)]()[a151_0x3cffe1(0x1f7)](),'version_number':z[a151_0x3cffe1(0x1f6)]()['optional'](),'stages':z[a151_0x3cffe1(0x1e6)](StageDefSchema)['optional'](),'versions':z[a151_0x3cffe1(0x1e6)](JourneyEntryDefSchema)['optional'](),'journeys':z['array'](JourneyEntryDefSchema)[a151_0x3cffe1(0x1f7)](),'segments':z[a151_0x3cffe1(0x1e5)](z['string'](),EmbeddedSegmentDefSchema)[a151_0x3cffe1(0x1f7)](),'activations':z['record'](z['string'](),ActivationDefSchema)['optional']()})[a151_0x3cffe1(0x1de)](_0x485e8b=>{const _0x3826f0=a151_0x3cffe1,_0x216a75=[_0x485e8b[_0x3826f0(0x1dc)],_0x485e8b[_0x3826f0(0x1e2)],_0x485e8b[_0x3826f0(0x1f3)]][_0x3826f0(0x1ed)](_0x2b85bf=>Array[_0x3826f0(0x1e8)](_0x2b85bf)&&_0x2b85bf[_0x3826f0(0x1e3)]>0x0)['length'];return _0x216a75===0x1;},{'message':a151_0x3cffe1(0x1d8)}));const _syncCheck1=!![],_syncCheck2=!![];function a151_0x112e(_0x493bd9,_0xeab2f1){_0x493bd9=_0x493bd9-0x1d2;const _0x2f3804=a151_0x2f38();let _0x112e21=_0x2f3804[_0x493bd9];return _0x112e21;}function a151_0x2f38(){const _0x57a8a6=['string','refine','activation','reentry_unless_goal_achieved','9HhhcuS','stages','length','ab_test','record','array','1409065QgnIOS','isArray','merge','draft','reentry_always','enum','filter','1739715NXfISf','2910130tIUDHr','object','wait','boolean','versions','week','no_reentry','number','optional','jump','4rJhcNK','min','18ZtzKQz','1818648AhPWvs','lazy','1912497cdhrlc','316334tzCNej','day','literal','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','Journey\x20name\x20is\x20required','1031930iwgCYF','passthrough','journeys'];a151_0x2f38=function(){return _0x57a8a6;};return a151_0x2f38();}void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x263325,_0x5bbed5){var _0x5c4e0c=a153_0x23e0,_0x2a6aac=_0x263325();while(!![]){try{var _0x3f7e6b=-parseInt(_0x5c4e0c(0x167))/0x1+parseInt(_0x5c4e0c(0x16c))/0x2*(-parseInt(_0x5c4e0c(0x16e))/0x3)+parseInt(_0x5c4e0c(0x169))/0x4+parseInt(_0x5c4e0c(0x166))/0x5*(-parseInt(_0x5c4e0c(0x16f))/0x6)+-parseInt(_0x5c4e0c(0x16b))/0x7+parseInt(_0x5c4e0c(0x16a))/0x8*(parseInt(_0x5c4e0c(0x16d))/0x9)+parseInt(_0x5c4e0c(0x168))/0xa;if(_0x3f7e6b===_0x5bbed5)break;else _0x2a6aac['push'](_0x2a6aac['shift']());}catch(_0x198ea9){_0x2a6aac['push'](_0x2a6aac['shift']());}}}(a153_0x23e1,0xdb3a0));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x23e0(_0x1864aa,_0x12b7f9){_0x1864aa=_0x1864aa-0x166;var _0x23e1f3=a153_0x23e1();var _0x23e0b7=_0x23e1f3[_0x1864aa];return _0x23e0b7;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a153_0x23e1(){var _0x5bd118=['7869911jhErbB','666zAjtMn','45FIaGBU','15027BAalvX','6778698HCzZFm','5KoQWTc','111613wDNAEQ','39219680ZExKuh','2811860jUJVgN','490696eXigcH'];a153_0x23e1=function(){return _0x5bd118;};return a153_0x23e1();}
1
+ (function(_0x3adfbb,_0x4bee88){var _0x4e2ea8=a153_0x26de,_0x4101e7=_0x3adfbb();while(!![]){try{var _0x2ee59b=parseInt(_0x4e2ea8(0x186))/0x1+-parseInt(_0x4e2ea8(0x180))/0x2*(-parseInt(_0x4e2ea8(0x187))/0x3)+parseInt(_0x4e2ea8(0x189))/0x4*(parseInt(_0x4e2ea8(0x183))/0x5)+-parseInt(_0x4e2ea8(0x17f))/0x6*(parseInt(_0x4e2ea8(0x185))/0x7)+parseInt(_0x4e2ea8(0x182))/0x8*(-parseInt(_0x4e2ea8(0x184))/0x9)+parseInt(_0x4e2ea8(0x18a))/0xa+-parseInt(_0x4e2ea8(0x188))/0xb*(-parseInt(_0x4e2ea8(0x181))/0xc);if(_0x2ee59b===_0x4bee88)break;else _0x4101e7['push'](_0x4101e7['shift']());}catch(_0x132ef3){_0x4101e7['push'](_0x4101e7['shift']());}}}(a153_0x69a2,0x89e5d));function a153_0x26de(_0x3ff02c,_0x5171f8){_0x3ff02c=_0x3ff02c-0x17f;var _0x69a28d=a153_0x69a2();var _0x26de7f=_0x69a28d[_0x3ff02c];return _0x26de7f;}function a153_0x69a2(){var _0x2aa3d0=['144MwUdJZ','1106EIGQTH','22527jJoSLM','38289nAkdiu','88VjFQFf','449628LRIRXf','3088150WRXTyL','5064IZvAqE','16JihhXm','1051740HlkHWs','274416QnmKQQ','5npBUzR'];a153_0x69a2=function(){return _0x2aa3d0;};return a153_0x69a2();}export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
@@ -1 +1 @@
1
- const a154_0x48a438=a154_0x5d65;(function(_0x18a3fe,_0x3ff2aa){const _0x5477c5=a154_0x5d65,_0xb9b1d=_0x18a3fe();while(!![]){try{const _0x1de1ca=parseInt(_0x5477c5(0x201))/0x1*(parseInt(_0x5477c5(0x205))/0x2)+parseInt(_0x5477c5(0x1e5))/0x3*(-parseInt(_0x5477c5(0x1e1))/0x4)+parseInt(_0x5477c5(0x1f3))/0x5+parseInt(_0x5477c5(0x211))/0x6+parseInt(_0x5477c5(0x1df))/0x7*(parseInt(_0x5477c5(0x1f4))/0x8)+parseInt(_0x5477c5(0x217))/0x9+-parseInt(_0x5477c5(0x202))/0xa*(parseInt(_0x5477c5(0x1ea))/0xb);if(_0x1de1ca===_0x3ff2aa)break;else _0xb9b1d['push'](_0xb9b1d['shift']());}catch(_0x544c85){_0xb9b1d['push'](_0xb9b1d['shift']());}}}(a154_0x3726,0x9a047));function a154_0x3726(){const _0x29f83d=['5057085EnNxae','9247032JgVsmg','realtime','lazy','segment','TimeRange\x20operator\x20requires\x20\x27duration\x27','operator','duration','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','TimeRange','Segment\x20name\x20is\x20required','union','hour','addIssue','1VUIvdo','5674210DozLHy','First','Sum','911158uJnUZL','Count','TimeWithinNext','Between','literal','Column','superRefine','object','record','enum','CountDistinct','And','6516168CqrZSl','Greater','\x27\x20requires\x20a\x20time\x20unit','any','Max','unit','1353708QgWKow','month','boolean','type','include','value','Contain','week','StartWith','Less','TimeWithinPast','EndWith','min','year','has','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','day','string','Segment\x20reference\x20must\x20not\x20be\x20empty','timestamp','7YtQehr','funnel_stage','147504xRZNWb','GreaterEqual','Regexp','Operator\x20\x27','78bEqeSK','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','LessEqual','from','Min','44tictFt','Average','array','batch','second','optional','Last','custom','number'];a154_0x3726=function(){return _0x29f83d;};return a154_0x3726();}import{z}from'zod';export const OperatorTypeSchema=z[a154_0x48a438(0x20e)](['Equal',a154_0x48a438(0x212),a154_0x48a438(0x220),a154_0x48a438(0x1e2),'LessEqual','In',a154_0x48a438(0x208),a154_0x48a438(0x1e3),'IsNull','TimeWithinPast','TimeWithinNext',a154_0x48a438(0x21d),'StartWith',a154_0x48a438(0x222),a154_0x48a438(0x1fc)]);export const TimeUnitSchema=z['enum']([a154_0x48a438(0x1ee),'minute',a154_0x48a438(0x1ff),a154_0x48a438(0x1db),a154_0x48a438(0x21e),a154_0x48a438(0x218),a154_0x48a438(0x1d8)]);export const AggregationTypeSchema=z[a154_0x48a438(0x20e)](['Count',a154_0x48a438(0x204),a154_0x48a438(0x1eb),'Min',a154_0x48a438(0x215),a154_0x48a438(0x20f),a154_0x48a438(0x203),a154_0x48a438(0x1f0)]);const TemporalValueSchema=z['union']([z[a154_0x48a438(0x20c)]({'timestamp':z[a154_0x48a438(0x1dc)]()}),z[a154_0x48a438(0x20c)]({'last':z['union']([z['number'](),z[a154_0x48a438(0x20d)](z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)]())]),'unit':z['string']()})]),OperatorValueSchema=z['union']([z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x219)](),TemporalValueSchema,z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x219)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a154_0x48a438(0x212),'GreaterEqual',a154_0x48a438(0x220),a154_0x48a438(0x1e7),'In','Contain',a154_0x48a438(0x21f),a154_0x48a438(0x222),a154_0x48a438(0x1e3),a154_0x48a438(0x221),a154_0x48a438(0x207)]),OPERATORS_REQUIRING_UNIT=new Set([a154_0x48a438(0x221),a154_0x48a438(0x207)]);export const OperatorDefSchema=z[a154_0x48a438(0x20c)]({'type':OperatorTypeSchema,'not':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)](),'value':OperatorValueSchema[a154_0x48a438(0x1ef)](),'min':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)](),TemporalValueSchema])[a154_0x48a438(0x1ef)](),'max':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)](),TemporalValueSchema])[a154_0x48a438(0x1ef)](),'unit':TimeUnitSchema[a154_0x48a438(0x1ef)](),'duration':z['object']({'day':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)](),'week':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)](),'month':z['number']()[a154_0x48a438(0x1ef)](),'year':z[a154_0x48a438(0x1f2)]()['optional'](),'hour':z['number']()['optional'](),'minute':z['number']()['optional'](),'second':z[a154_0x48a438(0x1f2)]()['optional']()})['optional'](),'from':z['object']({'last':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)]()]),'unit':TimeUnitSchema})[a154_0x48a438(0x1ef)](),'reverse':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)]()})[a154_0x48a438(0x20b)]((_0x12495b,_0x3ae63c)=>{const _0x5a5684=a154_0x48a438;OPERATORS_REQUIRING_VALUE[_0x5a5684(0x1d9)](_0x12495b[_0x5a5684(0x21a)])&&(_0x12495b[_0x5a5684(0x21c)]===undefined||_0x12495b[_0x5a5684(0x21c)]===null)&&_0x3ae63c[_0x5a5684(0x200)]({'code':'custom','message':_0x5a5684(0x1e4)+_0x12495b['type']+'\x27\x20requires\x20a\x20value','path':[_0x5a5684(0x21c)]}),_0x12495b[_0x5a5684(0x21a)]==='Between'&&_0x12495b[_0x5a5684(0x1d7)]===undefined&&_0x12495b['max']===undefined&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':_0x5a5684(0x1e6),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x5a5684(0x1d9)](_0x12495b['type'])&&_0x12495b[_0x5a5684(0x21c)]!==undefined&&!_0x12495b[_0x5a5684(0x216)]&&_0x3ae63c['addIssue']({'code':_0x5a5684(0x1f1),'message':'Operator\x20\x27'+_0x12495b['type']+_0x5a5684(0x213),'path':[_0x5a5684(0x216)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x12495b[_0x5a5684(0x21a)]===_0x5a5684(0x1fc)&&(!_0x12495b[_0x5a5684(0x1fa)]&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':_0x5a5684(0x1f8),'path':[_0x5a5684(0x1fa)]}),!_0x12495b[_0x5a5684(0x1e8)]&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x5a5684(0x1e8)]}));});export const ArrayMatchingSchema=z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x209)](a154_0x48a438(0x214)),z[a154_0x48a438(0x209)]('all'),z[a154_0x48a438(0x20c)]({'atLeast':z[a154_0x48a438(0x1f2)]()}),z['object']({'atMost':z[a154_0x48a438(0x1f2)]()}),z[a154_0x48a438(0x20c)]({'exactly':z[a154_0x48a438(0x1f2)]()})]);export const AggregationDefSchema=z['discriminatedUnion']('type',[z['object']({'type':z[a154_0x48a438(0x20e)](['Sum',a154_0x48a438(0x1e9),a154_0x48a438(0x215),'Average']),'column':z['string'](),'groupingColumns':z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1dc)]())['optional']()}),z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x206)),'groupingColumns':z[a154_0x48a438(0x1ec)](z['string']())[a154_0x48a438(0x1ef)]()}),z[a154_0x48a438(0x20c)]({'type':z['literal']('CountDistinct'),'columns':z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1dc)]())}),z['object']({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x203),'Last']),'column':z[a154_0x48a438(0x1dc)](),'orderColumn':z[a154_0x48a438(0x1dc)](),'groupingColumns':z[a154_0x48a438(0x1ec)](z['string']())[a154_0x48a438(0x1ef)]()})]);export const TimeWindowDefSchema=z[a154_0x48a438(0x20c)]({'duration':z[a154_0x48a438(0x1f2)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x48a438(0x221),a154_0x48a438(0x207),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x20a)),'column':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)]()})[a154_0x48a438(0x20b)]((_0x78629f,_0x2b9a02)=>{const _0x2afb63=a154_0x48a438,_0x967485=_0x78629f['operator']['type'];_0x78629f['column']===_0x2afb63(0x1de)?!TIMESTAMP_OPERATORS[_0x2afb63(0x1d9)](_0x967485)&&_0x2b9a02[_0x2afb63(0x200)]({'code':_0x2afb63(0x1f1),'message':_0x2afb63(0x1fb)+_0x967485+'\x27)','path':['operator',_0x2afb63(0x21a)]}):TIMESTAMP_OPERATORS[_0x2afb63(0x1d9)](_0x967485)&&_0x2b9a02[_0x2afb63(0x200)]({'code':_0x2afb63(0x1f1),'message':_0x2afb63(0x1e4)+_0x967485+_0x2afb63(0x1da),'path':[_0x2afb63(0x1f9),_0x2afb63(0x21a)]});});export const FilterRuleDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x210)),'conditions':z[a154_0x48a438(0x1ec)](FilterColumnConditionDefSchema)});function a154_0x5d65(_0x193daa,_0x579ff9){_0x193daa=_0x193daa-0x1d7;const _0x372625=a154_0x3726();let _0x5d65d2=_0x372625[_0x193daa];return _0x5d65d2;}export const ValueConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z[a154_0x48a438(0x20c)]({'type':z['literal']('Value'),'attribute':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)](),'exclude':z[a154_0x48a438(0x219)]()['optional'](),'aggregation':AggregationDefSchema[a154_0x48a438(0x1ef)](),'source':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)](),'filter':FilterRuleDefSchema[a154_0x48a438(0x1ef)](),'limit':z['number']()[a154_0x48a438(0x1ef)]()}));export const BehaviorConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z['object']({'type':z[a154_0x48a438(0x209)]('Behavior'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)](),'exclude':z['boolean']()[a154_0x48a438(0x1ef)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)](),'filter':FilterRuleDefSchema[a154_0x48a438(0x1ef)](),'timeWindow':TimeWindowDefSchema[a154_0x48a438(0x1ef)](),'limit':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)]()}));export const ColumnConditionDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x20a)),'column':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z['object']({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x210),'Or']),'conditions':z[a154_0x48a438(0x1ec)](ConditionDefSchema),'description':z['string']()[a154_0x48a438(0x1ef)]()}));export const SegmentRefConditionDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x21b),'exclude']),'segment':z['string']()['min'](0x1,a154_0x48a438(0x1dd))});export const ConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z[a154_0x48a438(0x1fe)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a154_0x48a438(0x210),'Or']),'conditions':z[a154_0x48a438(0x1ec)](ConditionDefSchema),'description':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)]()}));export const SegmentDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x1f7))[a154_0x48a438(0x1ef)](),'name':z['string']()['min'](0x1,a154_0x48a438(0x1fd)),'description':z['string']()['optional'](),'folder':z[a154_0x48a438(0x1dc)]()['optional'](),'rule':RuleDefSchema[a154_0x48a438(0x1ef)](),'kind':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x1ed),a154_0x48a438(0x1f5),a154_0x48a438(0x1e0)])[a154_0x48a438(0x1ef)](),'visible':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)](),'activations':z['array'](z['any']())[a154_0x48a438(0x1ef)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a154_0x65eaaf=a154_0xb136;(function(_0x4c86c4,_0x577ceb){const _0x37b42e=a154_0xb136,_0xf085e2=_0x4c86c4();while(!![]){try{const _0x22e31=parseInt(_0x37b42e(0xad))/0x1+-parseInt(_0x37b42e(0xc3))/0x2*(-parseInt(_0x37b42e(0xa4))/0x3)+parseInt(_0x37b42e(0xd8))/0x4*(-parseInt(_0x37b42e(0xa9))/0x5)+-parseInt(_0x37b42e(0xd6))/0x6+parseInt(_0x37b42e(0xcb))/0x7+-parseInt(_0x37b42e(0xb1))/0x8*(-parseInt(_0x37b42e(0xb0))/0x9)+-parseInt(_0x37b42e(0xae))/0xa;if(_0x22e31===_0x577ceb)break;else _0xf085e2['push'](_0xf085e2['shift']());}catch(_0x134df4){_0xf085e2['push'](_0xf085e2['shift']());}}}(a154_0x30f0,0xd0ea5));import{z}from'zod';export const OperatorTypeSchema=z[a154_0x65eaaf(0xbc)]([a154_0x65eaaf(0xb6),'Greater','Less',a154_0x65eaaf(0xc7),'LessEqual','In',a154_0x65eaaf(0xba),a154_0x65eaaf(0xa7),a154_0x65eaaf(0xc4),a154_0x65eaaf(0x90),a154_0x65eaaf(0xc9),a154_0x65eaaf(0xa8),a154_0x65eaaf(0xa1),'EndWith',a154_0x65eaaf(0xc0)]);export const TimeUnitSchema=z[a154_0x65eaaf(0xbc)](['second',a154_0x65eaaf(0xc5),a154_0x65eaaf(0x9a),a154_0x65eaaf(0xa5),a154_0x65eaaf(0xb8),a154_0x65eaaf(0xbb),a154_0x65eaaf(0x99)]);export const AggregationTypeSchema=z['enum']([a154_0x65eaaf(0xab),a154_0x65eaaf(0x9b),'Average',a154_0x65eaaf(0x94),a154_0x65eaaf(0xb2),'CountDistinct',a154_0x65eaaf(0x8b),a154_0x65eaaf(0x8e)]);const TemporalValueSchema=z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0x8c)]({'timestamp':z[a154_0x65eaaf(0xb9)]()}),z['object']({'last':z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0x9f)](),z[a154_0x65eaaf(0xd7)](z[a154_0x65eaaf(0xb9)](),z['number']())]),'unit':z['string']()})]),OperatorValueSchema=z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0xb9)](),z[a154_0x65eaaf(0x9f)](),z['boolean'](),TemporalValueSchema,z[a154_0x65eaaf(0x9e)](z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0xb9)](),z[a154_0x65eaaf(0x9f)](),z[a154_0x65eaaf(0xd0)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a154_0x65eaaf(0xb6),'Greater','GreaterEqual','Less',a154_0x65eaaf(0xca),'In',a154_0x65eaaf(0xa8),a154_0x65eaaf(0xa1),'EndWith',a154_0x65eaaf(0xa7),a154_0x65eaaf(0x90),a154_0x65eaaf(0xc9)]),OPERATORS_REQUIRING_UNIT=new Set([a154_0x65eaaf(0x90),'TimeWithinNext']);export const OperatorDefSchema=z[a154_0x65eaaf(0x8c)]({'type':OperatorTypeSchema,'not':z[a154_0x65eaaf(0xd0)]()[a154_0x65eaaf(0x8f)](),'value':OperatorValueSchema[a154_0x65eaaf(0x8f)](),'min':z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0x9f)](),z[a154_0x65eaaf(0xb9)](),TemporalValueSchema])[a154_0x65eaaf(0x8f)](),'max':z['union']([z[a154_0x65eaaf(0x9f)](),z[a154_0x65eaaf(0xb9)](),TemporalValueSchema])['optional'](),'unit':TimeUnitSchema[a154_0x65eaaf(0x8f)](),'duration':z[a154_0x65eaaf(0x8c)]({'day':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)](),'week':z['number']()[a154_0x65eaaf(0x8f)](),'month':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)](),'year':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)](),'hour':z['number']()[a154_0x65eaaf(0x8f)](),'minute':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)](),'second':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)]()})[a154_0x65eaaf(0x8f)](),'from':z[a154_0x65eaaf(0x8c)]({'last':z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0x9f)](),z[a154_0x65eaaf(0xb9)]()]),'unit':TimeUnitSchema})[a154_0x65eaaf(0x8f)](),'reverse':z[a154_0x65eaaf(0xd0)]()['optional']()})[a154_0x65eaaf(0xc2)]((_0x547380,_0x3d398e)=>{const _0x24e81b=a154_0x65eaaf;OPERATORS_REQUIRING_VALUE[_0x24e81b(0x9c)](_0x547380[_0x24e81b(0x95)])&&(_0x547380[_0x24e81b(0xaf)]===undefined||_0x547380[_0x24e81b(0xaf)]===null)&&_0x3d398e['addIssue']({'code':'custom','message':_0x24e81b(0xb7)+_0x547380['type']+'\x27\x20requires\x20a\x20value','path':[_0x24e81b(0xaf)]}),_0x547380['type']==='Between'&&_0x547380[_0x24e81b(0x8d)]===undefined&&_0x547380[_0x24e81b(0xd5)]===undefined&&_0x3d398e[_0x24e81b(0x97)]({'code':_0x24e81b(0xac),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x24e81b(0x9c)](_0x547380[_0x24e81b(0x95)])&&_0x547380[_0x24e81b(0xaf)]!==undefined&&!_0x547380[_0x24e81b(0xc8)]&&_0x3d398e[_0x24e81b(0x97)]({'code':_0x24e81b(0xac),'message':_0x24e81b(0xb7)+_0x547380[_0x24e81b(0x95)]+_0x24e81b(0x96),'path':[_0x24e81b(0xc8)],'params':{'validationCode':_0x24e81b(0x92)}}),_0x547380[_0x24e81b(0x95)]===_0x24e81b(0xc0)&&(!_0x547380[_0x24e81b(0x98)]&&_0x3d398e[_0x24e81b(0x97)]({'code':'custom','message':_0x24e81b(0xce),'path':[_0x24e81b(0x98)]}),!_0x547380[_0x24e81b(0xcd)]&&_0x3d398e['addIssue']({'code':_0x24e81b(0xac),'message':_0x24e81b(0xd1),'path':[_0x24e81b(0xcd)]}));});export const ArrayMatchingSchema=z[a154_0x65eaaf(0xbe)]([z[a154_0x65eaaf(0xa2)](a154_0x65eaaf(0x9d)),z[a154_0x65eaaf(0xa2)]('all'),z[a154_0x65eaaf(0x8c)]({'atLeast':z[a154_0x65eaaf(0x9f)]()}),z[a154_0x65eaaf(0x8c)]({'atMost':z['number']()}),z[a154_0x65eaaf(0x8c)]({'exactly':z[a154_0x65eaaf(0x9f)]()})]);export const AggregationDefSchema=z[a154_0x65eaaf(0xbd)]('type',[z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xbc)](['Sum',a154_0x65eaaf(0x94),a154_0x65eaaf(0xb2),a154_0x65eaaf(0xaa)]),'column':z[a154_0x65eaaf(0xb9)](),'groupingColumns':z[a154_0x65eaaf(0x9e)](z[a154_0x65eaaf(0xb9)]())[a154_0x65eaaf(0x8f)]()}),z['object']({'type':z['literal'](a154_0x65eaaf(0xab)),'groupingColumns':z['array'](z[a154_0x65eaaf(0xb9)]())[a154_0x65eaaf(0x8f)]()}),z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xa2)]('CountDistinct'),'columns':z['array'](z['string']())}),z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xbc)](['First',a154_0x65eaaf(0x8e)]),'column':z[a154_0x65eaaf(0xb9)](),'orderColumn':z['string'](),'groupingColumns':z[a154_0x65eaaf(0x9e)](z[a154_0x65eaaf(0xb9)]())[a154_0x65eaaf(0x8f)]()})]);export const TimeWindowDefSchema=z[a154_0x65eaaf(0x8c)]({'duration':z[a154_0x65eaaf(0x9f)](),'unit':TimeUnitSchema});function a154_0xb136(_0x2b2cde,_0x5a7541){_0x2b2cde=_0x2b2cde-0x8b;const _0x30f06c=a154_0x30f0();let _0xb136c8=_0x30f06c[_0x2b2cde];return _0xb136c8;}const TIMESTAMP_OPERATORS=new Set([a154_0x65eaaf(0x90),a154_0x65eaaf(0xc9),a154_0x65eaaf(0xc0)]);function a154_0x30f0(){const _0x806434=['And','segment','batch','max','2340576aeQCgr','record','5188moAlpH','Value','First','object','min','Last','optional','TimeWithinPast','include','MISSING_TIME_UNIT','operator','Min','type','\x27\x20requires\x20a\x20time\x20unit','addIssue','duration','year','hour','Sum','has','any','array','number','realtime','StartWith','literal','Column','920556HLhMUR','day','funnel_stage','Regexp','Contain','2815JduKwl','Average','Count','custom','1048033WPWhJK','6762280IGNDXA','value','940419xbqPwZ','40Dpamid','Max','Segment\x20reference\x20must\x20not\x20be\x20empty','column','lazy','Equal','Operator\x20\x27','week','string','Between','month','enum','discriminatedUnion','union','Behavior','TimeRange','Segment\x20name\x20is\x20required','superRefine','2zjaJsr','IsNull','minute','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','GreaterEqual','unit','TimeWithinNext','LessEqual','5424384wgwmOP','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','from','TimeRange\x20operator\x20requires\x20\x27duration\x27','exclude','boolean','TimeRange\x20operator\x20requires\x20\x27from\x27'];a154_0x30f0=function(){return _0x806434;};return a154_0x30f0();}export const FilterColumnConditionDefSchema=z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xa2)](a154_0x65eaaf(0xa3)),'column':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x65eaaf(0x8f)]()})['superRefine']((_0x5244ef,_0x5de792)=>{const _0x5d420b=a154_0x65eaaf,_0x35720f=_0x5244ef[_0x5d420b(0x93)][_0x5d420b(0x95)];_0x5244ef[_0x5d420b(0xb4)]==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x35720f)&&_0x5de792[_0x5d420b(0x97)]({'code':_0x5d420b(0xac),'message':_0x5d420b(0xc6)+_0x35720f+'\x27)','path':['operator',_0x5d420b(0x95)]}):TIMESTAMP_OPERATORS[_0x5d420b(0x9c)](_0x35720f)&&_0x5de792[_0x5d420b(0x97)]({'code':_0x5d420b(0xac),'message':'Operator\x20\x27'+_0x35720f+_0x5d420b(0xcc),'path':[_0x5d420b(0x93),_0x5d420b(0x95)]});});export const FilterRuleDefSchema=z[a154_0x65eaaf(0x8c)]({'type':z['literal'](a154_0x65eaaf(0xd2)),'conditions':z[a154_0x65eaaf(0x9e)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a154_0x65eaaf(0xb5)](()=>z['object']({'type':z[a154_0x65eaaf(0xa2)](a154_0x65eaaf(0xd9)),'attribute':z[a154_0x65eaaf(0xb9)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x65eaaf(0x8f)](),'exclude':z[a154_0x65eaaf(0xd0)]()[a154_0x65eaaf(0x8f)](),'aggregation':AggregationDefSchema[a154_0x65eaaf(0x8f)](),'source':z[a154_0x65eaaf(0xb9)]()[a154_0x65eaaf(0x8f)](),'filter':FilterRuleDefSchema[a154_0x65eaaf(0x8f)](),'limit':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)]()}));export const BehaviorConditionDefSchema=z[a154_0x65eaaf(0xb5)](()=>z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xa2)](a154_0x65eaaf(0xbf)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x65eaaf(0x8f)](),'exclude':z[a154_0x65eaaf(0xd0)]()[a154_0x65eaaf(0x8f)](),'aggregation':AggregationDefSchema[a154_0x65eaaf(0x8f)](),'source':z['string']()['optional'](),'filter':FilterRuleDefSchema[a154_0x65eaaf(0x8f)](),'timeWindow':TimeWindowDefSchema[a154_0x65eaaf(0x8f)](),'limit':z[a154_0x65eaaf(0x9f)]()[a154_0x65eaaf(0x8f)]()}));export const ColumnConditionDefSchema=z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xa2)]('Column'),'column':z['string'](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a154_0x65eaaf(0xb5)](()=>z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xbc)]([a154_0x65eaaf(0xd2),'Or']),'conditions':z[a154_0x65eaaf(0x9e)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentRefConditionDefSchema=z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xbc)]([a154_0x65eaaf(0x91),a154_0x65eaaf(0xcf)]),'segment':z[a154_0x65eaaf(0xb9)]()[a154_0x65eaaf(0x8d)](0x1,a154_0x65eaaf(0xb3))});export const ConditionDefSchema=z['lazy'](()=>z[a154_0x65eaaf(0xbe)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xbc)]([a154_0x65eaaf(0xd2),'Or']),'conditions':z['array'](ConditionDefSchema),'description':z[a154_0x65eaaf(0xb9)]()[a154_0x65eaaf(0x8f)]()}));export const SegmentDefSchema=z[a154_0x65eaaf(0x8c)]({'type':z[a154_0x65eaaf(0xa2)](a154_0x65eaaf(0xd3))[a154_0x65eaaf(0x8f)](),'name':z[a154_0x65eaaf(0xb9)]()[a154_0x65eaaf(0x8d)](0x1,a154_0x65eaaf(0xc1)),'description':z['string']()['optional'](),'folder':z['string']()['optional'](),'rule':RuleDefSchema[a154_0x65eaaf(0x8f)](),'kind':z['enum']([a154_0x65eaaf(0xd4),a154_0x65eaaf(0xa0),a154_0x65eaaf(0xa6)])[a154_0x65eaaf(0x8f)](),'visible':z[a154_0x65eaaf(0xd0)]()[a154_0x65eaaf(0x8f)](),'activations':z['array'](z[a154_0x65eaaf(0x9d)]())[a154_0x65eaaf(0x8f)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a155_0x1b2458=a155_0x37df;(function(_0x37e938,_0xf5b4a4){const _0x536b19=a155_0x37df,_0x52402e=_0x37e938();while(!![]){try{const _0x143188=parseInt(_0x536b19(0xe0))/0x1*(-parseInt(_0x536b19(0xe8))/0x2)+parseInt(_0x536b19(0xde))/0x3*(-parseInt(_0x536b19(0xfd))/0x4)+-parseInt(_0x536b19(0xdb))/0x5+-parseInt(_0x536b19(0xe1))/0x6*(-parseInt(_0x536b19(0xe4))/0x7)+-parseInt(_0x536b19(0xec))/0x8*(parseInt(_0x536b19(0xf1))/0x9)+parseInt(_0x536b19(0xf6))/0xa*(parseInt(_0x536b19(0xf0))/0xb)+parseInt(_0x536b19(0xed))/0xc*(-parseInt(_0x536b19(0xe7))/0xd);if(_0x143188===_0xf5b4a4)break;else _0x52402e['push'](_0x52402e['shift']());}catch(_0x3376be){_0x52402e['push'](_0x52402e['shift']());}}}(a155_0x1f4f,0x24607));function a155_0x1f4f(){const _0x39fdfe=['2316VPNzxu','object','warnings','671DCorQy','31131edeRcU','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','YAML_PARSE_ERROR','error','toJSON','39770YjOQvt','not\x20a\x20','YAML\x20parse\x20error:\x20','push','type','parseDocument','template','36880oDSnyB','378330YJUlrv','journey','relative','48pWqyzD','campaign','2PcmwbJ','850404uYiRuQ','utf-8','length','14WiBNHo','map','result','793sPmSZJ','7206RLraZR','segment','skipped','filterType','312NyjVRv'];a155_0x1f4f=function(){return _0x39fdfe;};return a155_0x1f4f();}import{readFileSync}from'fs';import*as a155_0x5c32a8 from'path';import*as a155_0x3cdd36 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set(['email',a155_0x1b2458(0xf9)]);function a155_0x37df(_0x500026,_0x134c57){_0x500026=_0x500026-0xdb;const _0x1f4f37=a155_0x1f4f();let _0x37df27=_0x1f4f37[_0x500026];return _0x37df27;}export function isJourneyDef(_0x2ab67a){const _0x4492c2=a155_0x1b2458;return typeof _0x2ab67a===_0x4492c2(0xee)&&_0x2ab67a!==null&&'type'in _0x2ab67a&&_0x2ab67a[_0x4492c2(0xfa)]==='journey';}export function isCampaignDef(_0x1ba0ce){const _0x525275=a155_0x1b2458;if(typeof _0x1ba0ce!=='object'||_0x1ba0ce===null)return![];const _0x17070f=_0x1ba0ce,_0x497320=VALID_CAMPAIGN_TYPES['has'](_0x17070f['campaign_type']);if(_0x17070f[_0x525275(0xfa)]===_0x525275(0xdf)&&_0x497320)return!![];if(_0x497320&&!_0x17070f[_0x525275(0xfa)])return!![];return![];}export function isTemplateDef(_0x4487d6){const _0x5c68ba=a155_0x1b2458;return typeof _0x4487d6==='object'&&_0x4487d6!==null&&_0x5c68ba(0xfa)in _0x4487d6&&_0x4487d6['type']==='template';}export function isValidationResult(_0x3dbd61){const _0xd2d06c=a155_0x1b2458;return!(_0xd2d06c(0xea)in _0x3dbd61);}export function createParseErrorResult(_0xc00334,_0x40367b,_0x2b9d5e,_0x5161d6,_0x4e6029=a155_0x1b2458(0xe9)){const _0x304db7=a155_0x1b2458;return{'filePath':_0xc00334,'relativePath':_0x40367b,'source':_0x2b9d5e,'result':{'valid':![],'errors':[{'level':_0x304db7(0xf4),'path':'','code':_0x304db7(0xf3),'message':_0x5161d6}],'warnings':[]},'fileType':_0x4e6029};}export function validateYamlFile(_0x43af21,_0x472e88,_0x100fe5={}){const _0xae63cb=a155_0x1b2458,_0x3a1a90=a155_0x5c32a8[_0xae63cb(0xdd)](_0x472e88,_0x43af21)||a155_0x5c32a8['basename'](_0x43af21);try{const _0x20b104=readFileSync(_0x43af21,_0xae63cb(0xe2)),_0x148d17=a155_0x3cdd36[_0xae63cb(0xfb)](_0x20b104),_0x344299=_0x148d17[_0xae63cb(0xf5)]();if(!_0x344299)return createParseErrorResult(_0x43af21,_0x3a1a90,_0x20b104,_0xae63cb(0xf2));let _0x1b4847;if(isJourneyDef(_0x344299))_0x1b4847=_0xae63cb(0xdc);else{if(isCampaignDef(_0x344299))_0x1b4847=_0xae63cb(0xdf);else isTemplateDef(_0x344299)?_0x1b4847=_0xae63cb(0xfc):_0x1b4847=_0xae63cb(0xe9);}if(_0x100fe5[_0xae63cb(0xeb)]&&_0x1b4847!==_0x100fe5[_0xae63cb(0xeb)])return{'filePath':_0x43af21,'relativePath':_0x3a1a90,'skipped':!![],'reason':_0xae63cb(0xf7)+_0x100fe5[_0xae63cb(0xeb)]};const _0x4542e7={'source':_0x20b104,'document':_0x148d17};let _0x47bcc5;if(_0x1b4847===_0xae63cb(0xdc))_0x47bcc5=validateJourneyDef(_0x344299,_0x4542e7);else{if(_0x1b4847==='campaign')_0x47bcc5=validateCampaignDef(_0x344299,_0x4542e7);else _0x1b4847===_0xae63cb(0xfc)?_0x47bcc5=validateTemplateDef(_0x344299,_0x4542e7):_0x47bcc5=validateSegmentDef(_0x344299,_0x4542e7);}return{'filePath':_0x43af21,'relativePath':_0x3a1a90,'source':_0x20b104,'result':_0x47bcc5,'fileType':_0x1b4847};}catch(_0x918eff){const _0x3c5c4c=_0x918eff instanceof Error?_0x918eff['message']:String(_0x918eff);return createParseErrorResult(_0x43af21,_0x3a1a90,'',_0xae63cb(0xf8)+_0x3c5c4c);}}export function validateYamlFiles(_0x46bdc9,_0xf8ff2a,_0x32dfbf={}){const _0x2178a2=a155_0x1b2458;return _0x46bdc9[_0x2178a2(0xe5)](_0x404a76=>validateYamlFile(_0x404a76,_0xf8ff2a,_0x32dfbf));}export function calculateSummary(_0x2bc3d3){const _0x30f51e=a155_0x1b2458;let _0x5ca27d=0x0,_0x58760f=0x0,_0x342856=0x0,_0x2e3601=0x0;for(const _0x53f7a4 of _0x2bc3d3){if(!isValidationResult(_0x53f7a4)){_0x2e3601++;continue;}_0x53f7a4['result']['valid']?_0x5ca27d++:_0x58760f++,_0x342856+=_0x53f7a4[_0x30f51e(0xe6)][_0x30f51e(0xef)][_0x30f51e(0xe3)];}return{'validCount':_0x5ca27d,'invalidCount':_0x58760f,'warningCount':_0x342856,'skippedCount':_0x2e3601,'hasErrors':_0x58760f>0x0};}
1
+ const a155_0x39f2ca=a155_0x239d;(function(_0x126682,_0x433f66){const _0x32241e=a155_0x239d,_0x5c1182=_0x126682();while(!![]){try{const _0x1a4048=parseInt(_0x32241e(0x1af))/0x1+-parseInt(_0x32241e(0x1bb))/0x2+parseInt(_0x32241e(0x1aa))/0x3*(-parseInt(_0x32241e(0x1c9))/0x4)+-parseInt(_0x32241e(0x1cc))/0x5*(parseInt(_0x32241e(0x1b0))/0x6)+-parseInt(_0x32241e(0x1ad))/0x7*(-parseInt(_0x32241e(0x1ab))/0x8)+parseInt(_0x32241e(0x1c7))/0x9*(-parseInt(_0x32241e(0x1be))/0xa)+parseInt(_0x32241e(0x1c8))/0xb*(parseInt(_0x32241e(0x1b3))/0xc);if(_0x1a4048===_0x433f66)break;else _0x5c1182['push'](_0x5c1182['shift']());}catch(_0x4e37b8){_0x5c1182['push'](_0x5c1182['shift']());}}}(a155_0x2881,0xa76c9));function a155_0x2881(){const _0x215e01=['YAML\x20parse\x20error:\x20','1102706EDsVkG','724422HDLFFg','campaign_type','valid','2052itMcSt','warnings','object','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','has','journey','segment','email','2379024NWsaWf','parseDocument','template','3500010ViDqym','result','filterType','YAML_PARSE_ERROR','utf-8','error','push','skipped','type','18KrEdTd','142527gNWqWa','71084qzfwIB','relative','message','20BFqmRi','campaign','not\x20a\x20','216fnURsm','40SoDIjT','map','1427146rDcgqo'];a155_0x2881=function(){return _0x215e01;};return a155_0x2881();}import{readFileSync}from'fs';import*as a155_0x4a2aef from'path';import*as a155_0x2064eb from'yaml';import{validateSegmentDef}from'./yaml-validator.js';function a155_0x239d(_0x3a0caf,_0xd31878){_0x3a0caf=_0x3a0caf-0x1aa;const _0x2881e7=a155_0x2881();let _0x239d6d=_0x2881e7[_0x3a0caf];return _0x239d6d;}import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a155_0x39f2ca(0x1ba),a155_0x39f2ca(0x1c4)]);export function isJourneyDef(_0x2cdf55){const _0x16baf6=a155_0x39f2ca;return typeof _0x2cdf55===_0x16baf6(0x1b5)&&_0x2cdf55!==null&&'type'in _0x2cdf55&&_0x2cdf55['type']==='journey';}export function isCampaignDef(_0x16b0a0){const _0x4540b7=a155_0x39f2ca;if(typeof _0x16b0a0!==_0x4540b7(0x1b5)||_0x16b0a0===null)return![];const _0x10162c=_0x16b0a0,_0x1a4e8e=VALID_CAMPAIGN_TYPES[_0x4540b7(0x1b7)](_0x10162c[_0x4540b7(0x1b1)]);if(_0x10162c[_0x4540b7(0x1c6)]===_0x4540b7(0x1cd)&&_0x1a4e8e)return!![];if(_0x1a4e8e&&!_0x10162c['type'])return!![];return![];}export function isTemplateDef(_0x12efea){const _0x334022=a155_0x39f2ca;return typeof _0x12efea===_0x334022(0x1b5)&&_0x12efea!==null&&'type'in _0x12efea&&_0x12efea[_0x334022(0x1c6)]===_0x334022(0x1bd);}export function isValidationResult(_0x1a61a4){const _0x114458=a155_0x39f2ca;return!(_0x114458(0x1c5)in _0x1a61a4);}export function createParseErrorResult(_0x3640ee,_0x2b80e4,_0x5ba71d,_0x4655b7,_0xaf154f='segment'){const _0x530397=a155_0x39f2ca;return{'filePath':_0x3640ee,'relativePath':_0x2b80e4,'source':_0x5ba71d,'result':{'valid':![],'errors':[{'level':_0x530397(0x1c3),'path':'','code':_0x530397(0x1c1),'message':_0x4655b7}],'warnings':[]},'fileType':_0xaf154f};}export function validateYamlFile(_0x172c39,_0x501120,_0xc9d71={}){const _0x4d2d53=a155_0x39f2ca,_0x481319=a155_0x4a2aef[_0x4d2d53(0x1ca)](_0x501120,_0x172c39)||a155_0x4a2aef['basename'](_0x172c39);try{const _0xc8ac40=readFileSync(_0x172c39,_0x4d2d53(0x1c2)),_0x12f892=a155_0x2064eb[_0x4d2d53(0x1bc)](_0xc8ac40),_0x2cf6a1=_0x12f892['toJSON']();if(!_0x2cf6a1)return createParseErrorResult(_0x172c39,_0x481319,_0xc8ac40,_0x4d2d53(0x1b6));let _0x29d4f0;if(isJourneyDef(_0x2cf6a1))_0x29d4f0=_0x4d2d53(0x1b8);else{if(isCampaignDef(_0x2cf6a1))_0x29d4f0='campaign';else isTemplateDef(_0x2cf6a1)?_0x29d4f0=_0x4d2d53(0x1bd):_0x29d4f0=_0x4d2d53(0x1b9);}if(_0xc9d71['filterType']&&_0x29d4f0!==_0xc9d71[_0x4d2d53(0x1c0)])return{'filePath':_0x172c39,'relativePath':_0x481319,'skipped':!![],'reason':_0x4d2d53(0x1ce)+_0xc9d71['filterType']};const _0xcda51e={'source':_0xc8ac40,'document':_0x12f892};let _0x28d958;if(_0x29d4f0===_0x4d2d53(0x1b8))_0x28d958=validateJourneyDef(_0x2cf6a1,_0xcda51e);else{if(_0x29d4f0===_0x4d2d53(0x1cd))_0x28d958=validateCampaignDef(_0x2cf6a1,_0xcda51e);else _0x29d4f0===_0x4d2d53(0x1bd)?_0x28d958=validateTemplateDef(_0x2cf6a1,_0xcda51e):_0x28d958=validateSegmentDef(_0x2cf6a1,_0xcda51e);}return{'filePath':_0x172c39,'relativePath':_0x481319,'source':_0xc8ac40,'result':_0x28d958,'fileType':_0x29d4f0};}catch(_0xd78298){const _0x2645c4=_0xd78298 instanceof Error?_0xd78298[_0x4d2d53(0x1cb)]:String(_0xd78298);return createParseErrorResult(_0x172c39,_0x481319,'',_0x4d2d53(0x1ae)+_0x2645c4);}}export function validateYamlFiles(_0x442ddf,_0x56b14f,_0x2b2bc6={}){const _0x25ce69=a155_0x39f2ca;return _0x442ddf[_0x25ce69(0x1ac)](_0x4148c4=>validateYamlFile(_0x4148c4,_0x56b14f,_0x2b2bc6));}export function calculateSummary(_0x397952){const _0x4cb286=a155_0x39f2ca;let _0x20c45b=0x0,_0x3d4dc1=0x0,_0x4f8e9d=0x0,_0x3e2da9=0x0;for(const _0x42ac3e of _0x397952){if(!isValidationResult(_0x42ac3e)){_0x3e2da9++;continue;}_0x42ac3e[_0x4cb286(0x1bf)][_0x4cb286(0x1b2)]?_0x20c45b++:_0x3d4dc1++,_0x4f8e9d+=_0x42ac3e[_0x4cb286(0x1bf)][_0x4cb286(0x1b4)]['length'];}return{'validCount':_0x20c45b,'invalidCount':_0x3d4dc1,'warningCount':_0x4f8e9d,'skippedCount':_0x3e2da9,'hasErrors':_0x3d4dc1>0x0};}
@@ -1 +1 @@
1
- function a156_0x283a(){const _0x473f81=['message','map','contents','errors','range','4110qWGDmR','806742WxFGML','warnings','path','split','error','getIn','level','flatMap','repeat','column','length','object','cyan','location','safeParse','parse','join','\x20|\x20','465587dWiIsE','issues','data','\x27:\x20','74SXDitd','success','15093ExtwQv','yellow','5EakORm','push','43757JYNtEx','4201752fDkshO','dim','red','YAML\x20validation\x20error\x20at\x20\x27','44737OkBZcw','Invalid\x20YAML:\x20expected\x20an\x20object','221980eUZBLU','1016aQIjyl','toString','code'];a156_0x283a=function(){return _0x473f81;};return a156_0x283a();}(function(_0x5e031f,_0x2ba4c6){const _0x63ea1b=a156_0x154e,_0x56c7e8=_0x5e031f();while(!![]){try{const _0x1b1d0c=parseInt(_0x63ea1b(0x9d))/0x1+-parseInt(_0x63ea1b(0xa1))/0x2*(parseInt(_0x63ea1b(0xa3))/0x3)+parseInt(_0x63ea1b(0xae))/0x4+-parseInt(_0x63ea1b(0xa5))/0x5*(parseInt(_0x63ea1b(0xa8))/0x6)+parseInt(_0x63ea1b(0xa7))/0x7*(-parseInt(_0x63ea1b(0xaf))/0x8)+-parseInt(_0x63ea1b(0x8b))/0x9+parseInt(_0x63ea1b(0x8a))/0xa*(parseInt(_0x63ea1b(0xac))/0xb);if(_0x1b1d0c===_0x2ba4c6)break;else _0x56c7e8['push'](_0x56c7e8['shift']());}catch(_0xc3a7fb){_0x56c7e8['push'](_0x56c7e8['shift']());}}}(a156_0x283a,0x67309));import*as a156_0x23cac7 from'yaml';import a156_0x498b15 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x2b2e59,_0x157a81,_0x5001ed){const _0x11a651=a156_0x154e;if(!_0x2b2e59||!_0x157a81)return undefined;try{let _0x1f0ff3=_0x2b2e59[_0x11a651(0x90)](_0x5001ed,!![]),_0x390e4d=[..._0x5001ed];while((!_0x1f0ff3||typeof _0x1f0ff3!==_0x11a651(0x96)||!('range'in _0x1f0ff3)||!_0x1f0ff3[_0x11a651(0x89)])&&_0x390e4d['length']>0x0){_0x390e4d['pop'](),_0x1f0ff3=_0x390e4d[_0x11a651(0x95)]>0x0?_0x2b2e59[_0x11a651(0x90)](_0x390e4d,!![]):_0x2b2e59[_0x11a651(0x87)];}if(!_0x1f0ff3||typeof _0x1f0ff3!==_0x11a651(0x96)||!(_0x11a651(0x89)in _0x1f0ff3)||!_0x1f0ff3[_0x11a651(0x89)])return undefined;const [_0x5844ea]=_0x1f0ff3[_0x11a651(0x89)];return offsetToLocation(_0x157a81,_0x5844ea);}catch{return undefined;}}export function offsetToLocation(_0x5e492f,_0x491e7a){const _0x5c91bf=a156_0x154e;let _0x5a2729=0x1,_0x3dc2ec=0x1;for(let _0x231733=0x0;_0x231733<_0x491e7a&&_0x231733<_0x5e492f[_0x5c91bf(0x95)];_0x231733++){_0x5e492f[_0x231733]==='\x0a'?(_0x5a2729++,_0x3dc2ec=0x1):_0x3dc2ec++;}return{'line':_0x5a2729,'column':_0x3dc2ec,'offset':_0x491e7a};}function a156_0x154e(_0x22dd58,_0x13b496){_0x22dd58=_0x22dd58-0x87;const _0x283ab9=a156_0x283a();let _0x154e96=_0x283ab9[_0x22dd58];return _0x154e96;}export function pathToArray(_0x19b484){const _0x201648=a156_0x154e;if(!_0x19b484)return[];return _0x19b484[_0x201648(0x8e)]('.')[_0x201648(0x92)](_0x233e58=>{const _0x164403=_0x233e58['match'](/^(\w+)\[(\d+)\]$/);if(_0x164403)return[_0x164403[0x1],parseInt(_0x164403[0x2],0xa)];return[_0x233e58];});}export function formatZodPath(_0x2e8861){let _0x3c8881='';for(const _0x21ee92 of _0x2e8861){if(typeof _0x21ee92==='number')_0x3c8881+='['+_0x21ee92+']';else{const _0x2ee155=String(_0x21ee92);_0x3c8881+=_0x3c8881?'.'+_0x2ee155:_0x2ee155;}}return _0x3c8881;}export function flattenZodIssues(_0x32a6aa){const _0x16eb9d=a156_0x154e,_0x4d8310=[];for(const _0x3eecc6 of _0x32a6aa){if(_0x3eecc6[_0x16eb9d(0xb1)]==='invalid_union'&&'errors'in _0x3eecc6){const _0x6d8ad5=_0x3eecc6[_0x16eb9d(0x88)];let _0x1f9bd1=_0x6d8ad5[0x0]||[];for(const _0x35f57c of _0x6d8ad5){_0x35f57c[_0x16eb9d(0x95)]<_0x1f9bd1[_0x16eb9d(0x95)]&&(_0x1f9bd1=_0x35f57c);}const _0x27fef1=_0x1f9bd1[_0x16eb9d(0xb3)](_0x313d8e=>({..._0x313d8e,'path':[..._0x3eecc6[_0x16eb9d(0x8d)],..._0x313d8e[_0x16eb9d(0x8d)]]}));_0x4d8310[_0x16eb9d(0xa6)](...flattenZodIssues(_0x27fef1));}else _0x4d8310[_0x16eb9d(0xa6)](_0x3eecc6);}return _0x4d8310;}export function safeParseYaml(_0x35f05d,_0x2d720a){const _0xd4ddbf=a156_0x154e,_0x117a15=a156_0x23cac7[_0xd4ddbf(0x9a)](_0x35f05d);if(!_0x117a15||typeof _0x117a15!==_0xd4ddbf(0x96))throw new Error(_0xd4ddbf(0xad));const _0x259803=_0x2d720a[_0xd4ddbf(0x99)](_0x117a15);if(!_0x259803[_0xd4ddbf(0xa2)]){const _0x193dab=_0x259803[_0xd4ddbf(0x8f)][_0xd4ddbf(0x9e)][0x0],_0xff6cc5=formatZodPath(_0x193dab[_0xd4ddbf(0x8d)]);throw new Error(_0xff6cc5?_0xd4ddbf(0xab)+_0xff6cc5+_0xd4ddbf(0xa0)+_0x193dab[_0xd4ddbf(0xb2)]:'YAML\x20validation\x20error:\x20'+_0x193dab[_0xd4ddbf(0xb2)]);}return _0x259803[_0xd4ddbf(0x9f)];}export function formatIssueWithContext(_0x38432f,_0x2c548a,_0x19e913){const _0x459435=a156_0x154e,_0x1f17a3=[],_0x2a2852=_0x38432f['level']===_0x459435(0x8f),_0x28aa80=_0x2a2852?a156_0x498b15[_0x459435(0xaa)]:a156_0x498b15[_0x459435(0xa4)],_0x4e6282=_0x2a2852?a156_0x498b15[_0x459435(0xaa)]:a156_0x498b15[_0x459435(0xa4)],_0x513a90=_0x19e913?a156_0x498b15[_0x459435(0x97)](_0x19e913+':'):'';if(_0x38432f['location']){const _0x3ad3d3=a156_0x498b15[_0x459435(0x97)](_0x38432f['location']['line']+':'+_0x38432f[_0x459435(0x98)][_0x459435(0x94)]);_0x1f17a3[_0x459435(0xa6)](''+_0x513a90+_0x3ad3d3+':\x20'+_0x28aa80(_0x38432f[_0x459435(0x91)])+'\x20'+_0x4e6282('['+_0x38432f['code']+']'));}else _0x1f17a3[_0x459435(0xa6)](''+_0x513a90+a156_0x498b15[_0x459435(0xa9)](_0x38432f[_0x459435(0x8d)])+':\x20'+_0x28aa80(_0x38432f[_0x459435(0x91)])+'\x20'+_0x4e6282('['+_0x38432f[_0x459435(0xb1)]+']'));_0x1f17a3['push'](_0x38432f['message']);if(_0x38432f[_0x459435(0x98)]&&_0x2c548a){const _0x335257=_0x2c548a[_0x459435(0x8e)]('\x0a'),{line:_0x351d87,column:_0x4d420f}=_0x38432f[_0x459435(0x98)],_0x104231=Math['max'](0x1,_0x351d87-0x1),_0x1993ff=Math['min'](_0x335257[_0x459435(0x95)],_0x351d87+0x1);_0x1f17a3['push']('');for(let _0x5c0c51=_0x104231;_0x5c0c51<=_0x1993ff;_0x5c0c51++){const _0x181749=_0x335257[_0x5c0c51-0x1]||'',_0x14878b=a156_0x498b15['dim'](_0x5c0c51[_0x459435(0xb0)]()['padStart'](0x4)),_0x16ce09=a156_0x498b15[_0x459435(0xa9)](_0x459435(0x9c));if(_0x5c0c51===_0x351d87){_0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x14878b+_0x16ce09+_0x28aa80(_0x181749));const _0x3890c6='\x20'[_0x459435(0x93)](0x4+0x3+_0x4d420f-0x1);_0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x3890c6+_0x28aa80('^'));}else _0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x14878b+_0x16ce09+a156_0x498b15[_0x459435(0xa9)](_0x181749));}}return _0x1f17a3[_0x459435(0x9b)]('\x0a');}export function formatValidationResult(_0x1d44b7,_0x36c5a2,_0x3050c1){const _0x43c930=a156_0x154e,_0x345882=[];for(const _0x352461 of _0x1d44b7[_0x43c930(0x88)]){_0x345882[_0x43c930(0xa6)](formatIssueWithContext(_0x352461,_0x36c5a2,_0x3050c1)),_0x345882[_0x43c930(0xa6)]('');}for(const _0x3eac03 of _0x1d44b7[_0x43c930(0x8c)]){_0x345882['push'](formatIssueWithContext(_0x3eac03,_0x36c5a2,_0x3050c1)),_0x345882[_0x43c930(0xa6)]('');}return _0x345882[_0x43c930(0x9b)]('\x0a');}
1
+ (function(_0x82f7e6,_0x404c8d){const _0x502ad2=a156_0x8a33,_0x1a5c76=_0x82f7e6();while(!![]){try{const _0x4df950=-parseInt(_0x502ad2(0x14f))/0x1+parseInt(_0x502ad2(0x150))/0x2*(-parseInt(_0x502ad2(0x143))/0x3)+parseInt(_0x502ad2(0x15c))/0x4*(parseInt(_0x502ad2(0x156))/0x5)+-parseInt(_0x502ad2(0x161))/0x6*(-parseInt(_0x502ad2(0x147))/0x7)+parseInt(_0x502ad2(0x165))/0x8*(-parseInt(_0x502ad2(0x13a))/0x9)+parseInt(_0x502ad2(0x15a))/0xa+-parseInt(_0x502ad2(0x140))/0xb;if(_0x4df950===_0x404c8d)break;else _0x1a5c76['push'](_0x1a5c76['shift']());}catch(_0xeda2b9){_0x1a5c76['push'](_0x1a5c76['shift']());}}}(a156_0x3575,0xbf32b));import*as a156_0x4a8532 from'yaml';import a156_0x248470 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';function a156_0x8a33(_0x48a6ca,_0x6c7a1c){_0x48a6ca=_0x48a6ca-0x138;const _0x35753b=a156_0x3575();let _0x8a33cc=_0x35753b[_0x48a6ca];return _0x8a33cc;}function a156_0x3575(){const _0x2cdbd8=['path','flatMap','line','warnings','429486XQoSvN','2acXfLn','join','length','code','location','level','4685yLVDGR','push','YAML\x20validation\x20error\x20at\x20\x27','errors','11167420pAcKRT','dim','6640Aenbyh','message','getIn','red','match','6zNoIgD','cyan','safeParse','number','62856DCwcGB','max','Invalid\x20YAML:\x20expected\x20an\x20object','object','243SCQXDJ','yellow','range','parse','padStart','success','20013884NfrMIl','pop','split','2630499Khanaw','\x27:\x20','min','toString','10142209aItNkl','data','error','\x20|\x20'];a156_0x3575=function(){return _0x2cdbd8;};return a156_0x3575();}export function getLocationFromPath(_0x4c69b8,_0xdcce16,_0x5cb42d){const _0x8ee2fd=a156_0x8a33;if(!_0x4c69b8||!_0xdcce16)return undefined;try{let _0x22232f=_0x4c69b8['getIn'](_0x5cb42d,!![]),_0x514237=[..._0x5cb42d];while((!_0x22232f||typeof _0x22232f!==_0x8ee2fd(0x139)||!(_0x8ee2fd(0x13c)in _0x22232f)||!_0x22232f['range'])&&_0x514237['length']>0x0){_0x514237[_0x8ee2fd(0x141)](),_0x22232f=_0x514237[_0x8ee2fd(0x152)]>0x0?_0x4c69b8[_0x8ee2fd(0x15e)](_0x514237,!![]):_0x4c69b8['contents'];}if(!_0x22232f||typeof _0x22232f!==_0x8ee2fd(0x139)||!('range'in _0x22232f)||!_0x22232f[_0x8ee2fd(0x13c)])return undefined;const [_0x1da66e]=_0x22232f['range'];return offsetToLocation(_0xdcce16,_0x1da66e);}catch{return undefined;}}export function offsetToLocation(_0x532a6a,_0x73eacc){const _0x4cf8bf=a156_0x8a33;let _0x119c4d=0x1,_0x2b1fd5=0x1;for(let _0x306342=0x0;_0x306342<_0x73eacc&&_0x306342<_0x532a6a[_0x4cf8bf(0x152)];_0x306342++){_0x532a6a[_0x306342]==='\x0a'?(_0x119c4d++,_0x2b1fd5=0x1):_0x2b1fd5++;}return{'line':_0x119c4d,'column':_0x2b1fd5,'offset':_0x73eacc};}export function pathToArray(_0x562f0b){const _0x49cd3d=a156_0x8a33;if(!_0x562f0b)return[];return _0x562f0b[_0x49cd3d(0x142)]('.')[_0x49cd3d(0x14c)](_0x259b1a=>{const _0x57d652=_0x49cd3d,_0x151c02=_0x259b1a[_0x57d652(0x160)](/^(\w+)\[(\d+)\]$/);if(_0x151c02)return[_0x151c02[0x1],parseInt(_0x151c02[0x2],0xa)];return[_0x259b1a];});}export function formatZodPath(_0x15a6f0){const _0x34a009=a156_0x8a33;let _0x31907f='';for(const _0x330a30 of _0x15a6f0){if(typeof _0x330a30===_0x34a009(0x164))_0x31907f+='['+_0x330a30+']';else{const _0x3e7a8b=String(_0x330a30);_0x31907f+=_0x31907f?'.'+_0x3e7a8b:_0x3e7a8b;}}return _0x31907f;}export function flattenZodIssues(_0x30782e){const _0x154f46=a156_0x8a33,_0x38fb87=[];for(const _0x47a368 of _0x30782e){if(_0x47a368[_0x154f46(0x153)]==='invalid_union'&&_0x154f46(0x159)in _0x47a368){const _0x11fc12=_0x47a368[_0x154f46(0x159)];let _0x1b41a2=_0x11fc12[0x0]||[];for(const _0x4f28f7 of _0x11fc12){_0x4f28f7[_0x154f46(0x152)]<_0x1b41a2[_0x154f46(0x152)]&&(_0x1b41a2=_0x4f28f7);}const _0x173b91=_0x1b41a2['map'](_0x16c73b=>({..._0x16c73b,'path':[..._0x47a368[_0x154f46(0x14b)],..._0x16c73b['path']]}));_0x38fb87[_0x154f46(0x157)](...flattenZodIssues(_0x173b91));}else _0x38fb87['push'](_0x47a368);}return _0x38fb87;}export function safeParseYaml(_0x364f3d,_0x59c534){const _0x1748ed=a156_0x8a33,_0x1661ba=a156_0x4a8532[_0x1748ed(0x13d)](_0x364f3d);if(!_0x1661ba||typeof _0x1661ba!==_0x1748ed(0x139))throw new Error(_0x1748ed(0x138));const _0x1e1d1b=_0x59c534[_0x1748ed(0x163)](_0x1661ba);if(!_0x1e1d1b[_0x1748ed(0x13f)]){const _0x394511=_0x1e1d1b['error']['issues'][0x0],_0x9c51bd=formatZodPath(_0x394511[_0x1748ed(0x14b)]);throw new Error(_0x9c51bd?_0x1748ed(0x158)+_0x9c51bd+_0x1748ed(0x144)+_0x394511[_0x1748ed(0x15d)]:'YAML\x20validation\x20error:\x20'+_0x394511[_0x1748ed(0x15d)]);}return _0x1e1d1b[_0x1748ed(0x148)];}export function formatIssueWithContext(_0x60f54c,_0x352354,_0x462158){const _0x121e72=a156_0x8a33,_0x285f22=[],_0x439b4f=_0x60f54c[_0x121e72(0x155)]===_0x121e72(0x149),_0x371a94=_0x439b4f?a156_0x248470[_0x121e72(0x15f)]:a156_0x248470[_0x121e72(0x13b)],_0x4439ef=_0x439b4f?a156_0x248470[_0x121e72(0x15f)]:a156_0x248470[_0x121e72(0x13b)],_0x54f6ec=_0x462158?a156_0x248470['cyan'](_0x462158+':'):'';if(_0x60f54c[_0x121e72(0x154)]){const _0x4f470c=a156_0x248470[_0x121e72(0x162)](_0x60f54c[_0x121e72(0x154)][_0x121e72(0x14d)]+':'+_0x60f54c['location']['column']);_0x285f22['push'](''+_0x54f6ec+_0x4f470c+':\x20'+_0x371a94(_0x60f54c[_0x121e72(0x155)])+'\x20'+_0x4439ef('['+_0x60f54c[_0x121e72(0x153)]+']'));}else _0x285f22['push'](''+_0x54f6ec+a156_0x248470[_0x121e72(0x15b)](_0x60f54c['path'])+':\x20'+_0x371a94(_0x60f54c[_0x121e72(0x155)])+'\x20'+_0x4439ef('['+_0x60f54c[_0x121e72(0x153)]+']'));_0x285f22['push'](_0x60f54c['message']);if(_0x60f54c[_0x121e72(0x154)]&&_0x352354){const _0x46d9f1=_0x352354[_0x121e72(0x142)]('\x0a'),{line:_0x473d1a,column:_0x1b3558}=_0x60f54c[_0x121e72(0x154)],_0x4bce7f=Math[_0x121e72(0x166)](0x1,_0x473d1a-0x1),_0x1f366a=Math[_0x121e72(0x145)](_0x46d9f1[_0x121e72(0x152)],_0x473d1a+0x1);_0x285f22[_0x121e72(0x157)]('');for(let _0x487b4b=_0x4bce7f;_0x487b4b<=_0x1f366a;_0x487b4b++){const _0x541d79=_0x46d9f1[_0x487b4b-0x1]||'',_0x20957f=a156_0x248470[_0x121e72(0x15b)](_0x487b4b[_0x121e72(0x146)]()[_0x121e72(0x13e)](0x4)),_0x489eeb=a156_0x248470[_0x121e72(0x15b)](_0x121e72(0x14a));if(_0x487b4b===_0x473d1a){_0x285f22[_0x121e72(0x157)]('\x20\x20'+_0x20957f+_0x489eeb+_0x371a94(_0x541d79));const _0x2bfac8='\x20'['repeat'](0x4+0x3+_0x1b3558-0x1);_0x285f22['push']('\x20\x20'+_0x2bfac8+_0x371a94('^'));}else _0x285f22[_0x121e72(0x157)]('\x20\x20'+_0x20957f+_0x489eeb+a156_0x248470[_0x121e72(0x15b)](_0x541d79));}}return _0x285f22[_0x121e72(0x151)]('\x0a');}export function formatValidationResult(_0x9854ad,_0x5c6c97,_0x169b17){const _0x16a49e=a156_0x8a33,_0x35a89e=[];for(const _0xb857f8 of _0x9854ad[_0x16a49e(0x159)]){_0x35a89e['push'](formatIssueWithContext(_0xb857f8,_0x5c6c97,_0x169b17)),_0x35a89e[_0x16a49e(0x157)]('');}for(const _0x42d95c of _0x9854ad[_0x16a49e(0x14e)]){_0x35a89e[_0x16a49e(0x157)](formatIssueWithContext(_0x42d95c,_0x5c6c97,_0x169b17)),_0x35a89e[_0x16a49e(0x157)]('');}return _0x35a89e[_0x16a49e(0x151)]('\x0a');}