@treasuredata/tdx 2026.3.35 → 2026.3.36

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 (219) 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/cas-command.js +1 -1
  12. package/dist/commands/cas-segment-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-statusline-command.js +1 -1
  16. package/dist/commands/claude-usage-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/connection-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/delivery-command.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/engage-campaign-pull-command.js +1 -1
  23. package/dist/commands/engage-campaign-push-command.js +1 -1
  24. package/dist/commands/engage-campaign-validate-command.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/engage-template-pull-command.js +1 -1
  27. package/dist/commands/engage-template-push-command.js +1 -1
  28. package/dist/commands/engage-template-validate-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/journey-validate-command.js +1 -1
  32. package/dist/commands/llm-command.js +1 -1
  33. package/dist/commands/mcp-command.js +1 -1
  34. package/dist/commands/parent-segment-command.js +1 -1
  35. package/dist/commands/policy-command.js +1 -1
  36. package/dist/commands/profile-command.js +1 -1
  37. package/dist/commands/profiles-command.js +1 -1
  38. package/dist/commands/query-command.js +1 -1
  39. package/dist/commands/schedule-command.js +1 -1
  40. package/dist/commands/segment-command.js +1 -1
  41. package/dist/commands/segment-create-command.js +1 -1
  42. package/dist/commands/segment-fields-command.js +1 -1
  43. package/dist/commands/segment-pull-command.js +1 -1
  44. package/dist/commands/segment-push-command.js +1 -1
  45. package/dist/commands/segment-update-command.js +1 -1
  46. package/dist/commands/segment-use-command.js +1 -1
  47. package/dist/commands/segment-validate-command.js +1 -1
  48. package/dist/commands/segments.js +1 -1
  49. package/dist/commands/show.js +1 -1
  50. package/dist/commands/status-command.js +1 -1
  51. package/dist/commands/tables.js +1 -1
  52. package/dist/commands/unset-command.js +1 -1
  53. package/dist/commands/upgrade-command.js +1 -1
  54. package/dist/commands/use-command.js +1 -1
  55. package/dist/commands/user-command.js +1 -1
  56. package/dist/commands/work-command.js +1 -1
  57. package/dist/commands/workflow-command.js +1 -1
  58. package/dist/core/auth.js +1 -1
  59. package/dist/core/command-output.js +1 -1
  60. package/dist/core/config.js +1 -1
  61. package/dist/core/connection-cache.js +1 -1
  62. package/dist/core/constants.js +1 -1
  63. package/dist/core/credential-cache.js +1 -1
  64. package/dist/core/global-context.js +1 -1
  65. package/dist/core/keychain.js +1 -1
  66. package/dist/core/oauth-keychain.js +1 -1
  67. package/dist/core/oauth.js +1 -1
  68. package/dist/core/profile.js +1 -1
  69. package/dist/core/project-config.js +1 -1
  70. package/dist/core/session.js +1 -1
  71. package/dist/core/user-cache.js +1 -1
  72. package/dist/core/version.js +1 -1
  73. package/dist/index.js +1 -1
  74. package/dist/mcp/server.js +1 -1
  75. package/dist/mcp/tools/index.js +1 -1
  76. package/dist/mcp/tools/tdx-run.js +1 -1
  77. package/dist/mcp/tools/tdx-search.js +1 -1
  78. package/dist/mcp/utils.js +1 -1
  79. package/dist/proxy/claude-usage-tracker.js +1 -1
  80. package/dist/proxy/passthrough-server.js +1 -1
  81. package/dist/proxy/sse-usage-parser.js +1 -1
  82. package/dist/sdk/agent/agent-config.js +1 -1
  83. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  84. package/dist/sdk/agent/agent-yaml.js +1 -1
  85. package/dist/sdk/agent/test/evaluator.js +1 -1
  86. package/dist/sdk/agent/test/executor.js +1 -1
  87. package/dist/sdk/agent/test/index.js +1 -1
  88. package/dist/sdk/agent/test/output.js +1 -1
  89. package/dist/sdk/agent/test/parser.js +1 -1
  90. package/dist/sdk/agent/tool-target-registry.js +1 -1
  91. package/dist/sdk/api.js +1 -1
  92. package/dist/sdk/cas/cas-api-client.js +1 -1
  93. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  94. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  95. package/dist/sdk/cas/index.js +1 -1
  96. package/dist/sdk/cas/pull-workflow.js +1 -1
  97. package/dist/sdk/cas/push-workflow.js +1 -1
  98. package/dist/sdk/client/cdp-api-client.js +1 -1
  99. package/dist/sdk/client/delivery-api-client.js +1 -1
  100. package/dist/sdk/client/endpoints.js +1 -1
  101. package/dist/sdk/client/engage-api-client.js +1 -1
  102. package/dist/sdk/client/http-client.js +1 -1
  103. package/dist/sdk/client/llm-api-client.js +1 -1
  104. package/dist/sdk/client/oauth-refresh.js +1 -1
  105. package/dist/sdk/client/rate-limiter.js +1 -1
  106. package/dist/sdk/client/td-api-client.js +1 -1
  107. package/dist/sdk/client/trino-api-client.js +1 -1
  108. package/dist/sdk/client/workflow-client.js +1 -1
  109. package/dist/sdk/connection-validator.js +1 -1
  110. package/dist/sdk/connection.js +1 -1
  111. package/dist/sdk/delivery.js +1 -1
  112. package/dist/sdk/engage/campaign-pull.js +1 -1
  113. package/dist/sdk/engage/campaign-push.js +1 -1
  114. package/dist/sdk/engage/campaign-validator.js +1 -1
  115. package/dist/sdk/engage/campaign-yaml.js +1 -1
  116. package/dist/sdk/engage/template-pull.js +1 -1
  117. package/dist/sdk/engage/template-push.js +1 -1
  118. package/dist/sdk/engage/template-validator.js +1 -1
  119. package/dist/sdk/engage/template-yaml.js +1 -1
  120. package/dist/sdk/engage/types/campaign-def.js +1 -1
  121. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  122. package/dist/sdk/engage/types/template-schema.js +1 -1
  123. package/dist/sdk/engage.js +1 -1
  124. package/dist/sdk/errors.js +1 -1
  125. package/dist/sdk/index.js +1 -1
  126. package/dist/sdk/io/index.js +1 -1
  127. package/dist/sdk/io/node-filesystem.js +1 -1
  128. package/dist/sdk/job.js +1 -1
  129. package/dist/sdk/journey.js +1 -1
  130. package/dist/sdk/llm/chat-cache.js +1 -1
  131. package/dist/sdk/llm/index.js +1 -1
  132. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  133. package/dist/sdk/llm/model-factors.js +1 -1
  134. package/dist/sdk/personalization.js +1 -1
  135. package/dist/sdk/policy.js +1 -1
  136. package/dist/sdk/query/index.js +1 -1
  137. package/dist/sdk/query/sql-parser.js +1 -1
  138. package/dist/sdk/realtime.js +1 -1
  139. package/dist/sdk/schedule.js +1 -1
  140. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  141. package/dist/sdk/segment/fields-display.js +1 -1
  142. package/dist/sdk/segment/file-discovery.js +1 -1
  143. package/dist/sdk/segment/journey-utils.js +1 -1
  144. package/dist/sdk/segment/journey-validator.js +1 -1
  145. package/dist/sdk/segment/journey-yaml.js +1 -1
  146. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  147. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  148. package/dist/sdk/segment/pull-workflow.js +1 -1
  149. package/dist/sdk/segment/push-recovery.js +1 -1
  150. package/dist/sdk/segment/push-workflow.js +1 -1
  151. package/dist/sdk/segment/resolution-context.js +1 -1
  152. package/dist/sdk/segment/segment-path-parser.js +1 -1
  153. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  154. package/dist/sdk/segment/segment-validator.js +1 -1
  155. package/dist/sdk/segment/target-resolution.js +1 -1
  156. package/dist/sdk/segment/tdx-config.js +1 -1
  157. package/dist/sdk/segment/types/activation-schema.js +1 -1
  158. package/dist/sdk/segment/types/journey-def.js +1 -1
  159. package/dist/sdk/segment/types/journey-schema.js +1 -1
  160. package/dist/sdk/segment/types/segment-def.js +1 -1
  161. package/dist/sdk/segment/types/segment-schema.js +1 -1
  162. package/dist/sdk/segment/validate-files.js +1 -1
  163. package/dist/sdk/segment/yaml-validator.js +1 -1
  164. package/dist/sdk/segment.js +1 -1
  165. package/dist/sdk/types/index.js +1 -1
  166. package/dist/sdk/types/progress.js +1 -1
  167. package/dist/sdk/types/workspace.js +1 -1
  168. package/dist/sdk/user.js +1 -1
  169. package/dist/sdk/util/format-detector.js +1 -1
  170. package/dist/sdk/util/formatters.js +1 -1
  171. package/dist/sdk/util/index.js +1 -1
  172. package/dist/sdk/util/paginate.js +1 -1
  173. package/dist/sdk/util/tree-formatter.js +1 -1
  174. package/dist/sdk/workflow/archive-validation.js +1 -1
  175. package/dist/sdk/workflow/clone-workflow.js +1 -1
  176. package/dist/sdk/workflow/index.js +1 -1
  177. package/dist/sdk/workflow/pull-workflow.js +1 -1
  178. package/dist/sdk/workflow/push-workflow.js +1 -1
  179. package/dist/sdk/workflow/tdx-config.js +1 -1
  180. package/dist/sdk/workflow/workflow-utils.js +1 -1
  181. package/dist/sdk/workspace/frontmatter.js +1 -1
  182. package/dist/sdk/workspace/git.js +1 -1
  183. package/dist/sdk/workspace/index.js +1 -1
  184. package/dist/sdk/workspace/templates.js +1 -1
  185. package/dist/sdk/workspace/weekly.js +1 -1
  186. package/dist/sdk/workspace/wikilinks.js +1 -1
  187. package/dist/test-utils/command-runner.js +1 -1
  188. package/dist/test-utils/factories.js +1 -1
  189. package/dist/test-utils/fixtures.js +1 -1
  190. package/dist/test-utils/http-mock.js +1 -1
  191. package/dist/test-utils/index.js +1 -1
  192. package/dist/utils/async.js +1 -1
  193. package/dist/utils/colors.js +1 -1
  194. package/dist/utils/diff.js +1 -1
  195. package/dist/utils/file-permissions.js +1 -1
  196. package/dist/utils/file-reader.js +1 -1
  197. package/dist/utils/github-releases.js +1 -1
  198. package/dist/utils/global-cache.js +1 -1
  199. package/dist/utils/json-loader.js +1 -1
  200. package/dist/utils/local-cache.js +1 -1
  201. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  202. package/dist/utils/logger/formatters/index.js +1 -1
  203. package/dist/utils/logger/handlers/console-handler.js +1 -1
  204. package/dist/utils/logger/handlers/file-handler.js +1 -1
  205. package/dist/utils/logger/handlers/index.js +1 -1
  206. package/dist/utils/logger/handlers/null-handler.js +1 -1
  207. package/dist/utils/logger/index.js +1 -1
  208. package/dist/utils/logger/logger.js +1 -1
  209. package/dist/utils/logger/types.js +1 -1
  210. package/dist/utils/option-validation.js +1 -1
  211. package/dist/utils/process.js +1 -1
  212. package/dist/utils/prompt.js +1 -1
  213. package/dist/utils/spinner.js +1 -1
  214. package/dist/utils/sse-parser.js +1 -1
  215. package/dist/utils/string-utils.js +1 -1
  216. package/dist/utils/table-ref-parser.js +1 -1
  217. package/dist/utils/tdx-logger.js +1 -1
  218. package/dist/utils/version-check.js +1 -1
  219. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0xa60458,_0x22878d){const _0x5c0f1e=a157_0xf505,_0x459b9e=_0xa60458();while(!![]){try{const _0x4bb31e=parseInt(_0x5c0f1e(0xfc))/0x1+-parseInt(_0x5c0f1e(0xeb))/0x2*(parseInt(_0x5c0f1e(0xea))/0x3)+parseInt(_0x5c0f1e(0xf1))/0x4+-parseInt(_0x5c0f1e(0xd4))/0x5+-parseInt(_0x5c0f1e(0xd3))/0x6+-parseInt(_0x5c0f1e(0xde))/0x7+parseInt(_0x5c0f1e(0xe6))/0x8;if(_0x4bb31e===_0x22878d)break;else _0x459b9e['push'](_0x459b9e['shift']());}catch(_0x14ff44){_0x459b9e['push'](_0x459b9e['shift']());}}}(a157_0x1ecd,0x5ba46));function a157_0xf505(_0x50175e,_0xb6a86a){_0x50175e=_0x50175e-0xcf;const _0x1ecdd2=a157_0x1ecd();let _0xf5054d=_0x1ecdd2[_0x50175e];return _0xf5054d;}import a157_0x1c4c50 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(_0x51bd99){const _0x135263=a157_0xf505;return _0x51bd99['type']!==_0x135263(0xe2);}export function isScopedResolution(_0x2ba0a6){const _0x2765e9=a157_0xf505;return _0x2ba0a6[_0x2765e9(0xe9)]===_0x2765e9(0xd6)||_0x2ba0a6['type']===_0x2765e9(0x100)||_0x2ba0a6[_0x2765e9(0xe9)]===_0x2765e9(0xe1);}export function getScopedDetails(_0x4726c0){const _0x26a69f=a157_0xf505;if(isScopedResolution(_0x4726c0))return{'isScoped':_0x4726c0['isScoped'],'scopedFolderPath':_0x4726c0[_0x26a69f(0xd8)]};return undefined;}async function findTdxConfigAsync(_0x1a332f,_0x94be2){const _0x36ea3d=a157_0xf505;let _0x4bf412=a157_0x1c4c50[_0x36ea3d(0xf5)](_0x1a332f);const _0x4f1af6=a157_0x1c4c50[_0x36ea3d(0xfd)](_0x4bf412)[_0x36ea3d(0xf9)];while(_0x4bf412!==_0x4f1af6){const _0x27393e=a157_0x1c4c50[_0x36ea3d(0xe8)](_0x4bf412,'tdx.json');if(await _0x94be2[_0x36ea3d(0xd7)](_0x27393e))try{const _0x419da2=await _0x94be2[_0x36ea3d(0x101)](_0x27393e),_0x32df58=JSON[_0x36ea3d(0xfd)](_0x419da2);if(_0x32df58[_0x36ea3d(0xdb)]&&typeof _0x32df58[_0x36ea3d(0xdb)]===_0x36ea3d(0xfb))return{'configPath':_0x27393e,'configDir':_0x4bf412,'parentSegment':_0x32df58[_0x36ea3d(0xdb)]};}catch{}_0x4bf412=a157_0x1c4c50[_0x36ea3d(0xf0)](_0x4bf412);}return null;}function calculateScopedPath(_0xec3399,_0x55c28d){const _0x357be7=a157_0xf505,_0x526117=a157_0x1c4c50[_0x357be7(0xe0)](_0x55c28d,_0xec3399),_0x5cf3c4=_0x526117!==''&&_0x526117!=='.'&&!_0x526117[_0x357be7(0xda)]('..');return{'isScoped':_0x5cf3c4,'scopedFolderPath':_0x5cf3c4?_0x526117[_0x357be7(0xee)](/\\/g,'/'):''};}export async function resolveTarget(_0x312310){const _0x1b6c80=a157_0xf505,{arg:_0x34bacb,contextParent:_0x5edf60,cwd:cwd=process[_0x1b6c80(0xf4)](),fs:fs=nodeFileSystem}=_0x312310;if(_0x34bacb&&isYamlFilePath(_0x34bacb))try{const _0x5cf5f1=await resolveYamlFilePath(_0x34bacb,fs),_0x294025=a157_0x1c4c50[_0x1b6c80(0xf5)](_0x34bacb),_0x2b7266=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x294025),_0x28a1eb=await findTdxConfigAsync(_0x2b7266,fs);if(!_0x28a1eb){if(_0x5edf60){const _0x2a0ac4=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x294025);return{'type':_0x1b6c80(0x100),'parentName':_0x5edf60,'targetDir':_0x2a0ac4,'configRoot':_0x2a0ac4,'filePath':_0x294025,'resourceName':_0x5cf5f1['segmentName'],'folderPath':_0x5cf5f1['folderPath'],'resourceType':_0x5cf5f1[_0x1b6c80(0x104)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1b6c80(0xe2),'errorCode':'no_config','message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}const _0x3ff19d=calculateScopedPath(_0x2b7266,_0x28a1eb[_0x1b6c80(0xed)]);return{'type':_0x1b6c80(0x100),'parentName':_0x28a1eb[_0x1b6c80(0xf6)],'targetDir':_0x28a1eb[_0x1b6c80(0xed)],'configRoot':_0x28a1eb[_0x1b6c80(0xed)],'filePath':_0x294025,'resourceName':_0x5cf5f1[_0x1b6c80(0xec)],'folderPath':_0x5cf5f1[_0x1b6c80(0xd5)],'resourceType':_0x5cf5f1[_0x1b6c80(0x104)],'isScoped':_0x3ff19d[_0x1b6c80(0xd9)],'scopedFolderPath':_0x3ff19d['scopedFolderPath']};}catch(_0x438278){const _0x28b6cc=_0x438278 instanceof Error?_0x438278['message']:String(_0x438278);if(_0x28b6cc[_0x1b6c80(0x103)]('File\x20not\x20found'))return{'type':_0x1b6c80(0xe2),'errorCode':'file_not_found','message':_0x1b6c80(0xfe)+_0x34bacb,'arg':_0x34bacb};if(_0x28b6cc[_0x1b6c80(0x103)]('No\x20tdx.json\x20found')){if(_0x5edf60){const _0x41be55=a157_0x1c4c50['resolve'](_0x34bacb);if(await fs[_0x1b6c80(0xd7)](_0x41be55)){const _0x2804e7=a157_0x1c4c50[_0x1b6c80(0xf0)](_0x41be55),_0x57e57a=await fs[_0x1b6c80(0x101)](_0x41be55),_0x25a012=_0x57e57a[_0x1b6c80(0xf7)](/^name:\s*["']?([^"'\n]+)["']?/m),_0xb671fa=_0x57e57a[_0x1b6c80(0xf7)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x3fc615=_0x25a012?_0x25a012[0x1][_0x1b6c80(0x102)]():a157_0x1c4c50['basename'](_0x34bacb,a157_0x1c4c50[_0x1b6c80(0xe4)](_0x34bacb)),_0x3447ae=_0xb671fa&&_0xb671fa[0x1][_0x1b6c80(0x102)]()==='journey'?_0x1b6c80(0xf8):_0x1b6c80(0xdc);return{'type':_0x1b6c80(0x100),'parentName':_0x5edf60,'targetDir':_0x2804e7,'configRoot':_0x2804e7,'filePath':_0x41be55,'resourceName':_0x3fc615,'folderPath':'','resourceType':_0x3447ae,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xf3),'message':_0x1b6c80(0xf2)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xd1),'message':_0x28b6cc,'arg':_0x34bacb};}if(_0x34bacb){const _0x235f6c=a157_0x1c4c50[_0x1b6c80(0xf5)](cwd,_0x34bacb);let _0x511ba3=null;try{_0x511ba3=await fs[_0x1b6c80(0xe5)](_0x235f6c);}catch{}if(_0x511ba3?.[_0x1b6c80(0xfa)]()){const _0x5f25a0=await findTdxConfigAsync(_0x235f6c,fs);if(_0x5f25a0){const _0x591da6=calculateScopedPath(_0x235f6c,_0x5f25a0['configDir']);return{'type':'directory','parentName':_0x5f25a0[_0x1b6c80(0xf6)],'targetDir':_0x235f6c,'configRoot':_0x5f25a0['configDir'],'isScoped':_0x591da6[_0x1b6c80(0xd9)],'scopedFolderPath':_0x591da6[_0x1b6c80(0xd8)]};}if(_0x5edf60)return{'type':_0x1b6c80(0xd6),'parentName':_0x5edf60,'targetDir':_0x235f6c,'configRoot':_0x235f6c,'isScoped':![],'scopedFolderPath':''};return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xf3),'message':_0x1b6c80(0xcf)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xe7)};}if(_0x511ba3?.[_0x1b6c80(0xff)]())return{'type':'error','errorCode':'invalid_yaml','message':_0x1b6c80(0xd2)+_0x34bacb,'arg':_0x34bacb,'helpText':_0x1b6c80(0xdf)};const _0x2ea51c=sanitizeFileName(_0x34bacb),_0x4b62e4=getSegmentRootDir(_0x2ea51c,cwd);return{'type':_0x1b6c80(0xd0),'parentName':_0x34bacb,'targetDir':_0x4b62e4,'configRoot':_0x4b62e4};}const _0x3e793c=await findTdxConfigAsync(cwd,fs);if(_0x3e793c){const _0x1a6f65=calculateScopedPath(cwd,_0x3e793c[_0x1b6c80(0xed)]);return{'type':_0x1b6c80(0xe1),'parentName':_0x3e793c[_0x1b6c80(0xf6)],'targetDir':cwd,'configRoot':_0x3e793c[_0x1b6c80(0xed)],'isScoped':_0x1a6f65['isScoped'],'scopedFolderPath':_0x1a6f65['scopedFolderPath']};}if(_0x5edf60){const _0x51e939=sanitizeFileName(_0x5edf60),_0x4c4f8e=getSegmentRootDir(_0x51e939,cwd);return{'type':'context','parentName':_0x5edf60,'targetDir':_0x4c4f8e,'configRoot':_0x4c4f8e,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x1b6c80(0xe2),'errorCode':_0x1b6c80(0xe3),'message':_0x1b6c80(0xef),'helpText':_0x1b6c80(0xdd)};}function a157_0x1ecd(){const _0x528780=['no_config','cwd','resolve','parentSegment','match','journey','root','isDirectory','string','25966zOIYwA','parse','File\x20not\x20found:\x20','isFile','file','readFile','trim','includes','resourceType','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','parent_name','invalid_yaml','Not\x20a\x20YAML\x20file:\x20','1054998qBbgce','2126570TmMQtk','folderPath','directory','exists','scopedFolderPath','isScoped','startsWith','parent_segment','segment','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','2064041PKEhCz','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','relative','context','error','no_parent','extname','stat','9478352gXfiTh','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','join','type','3qJRiUt','870908ySYjkn','segmentName','configDir','replace','Parent\x20segment\x20not\x20specified','dirname','1984280AcKRTx','No\x20tdx.json\x20found\x20for\x20file:\x20'];a157_0x1ecd=function(){return _0x528780;};return a157_0x1ecd();}
1
+ (function(_0x1b8024,_0x2db6b2){const _0x3a0c03=a157_0x5434,_0x3338b0=_0x1b8024();while(!![]){try{const _0x3b7535=-parseInt(_0x3a0c03(0x128))/0x1*(-parseInt(_0x3a0c03(0x11a))/0x2)+parseInt(_0x3a0c03(0x12b))/0x3+parseInt(_0x3a0c03(0x117))/0x4*(parseInt(_0x3a0c03(0x12e))/0x5)+-parseInt(_0x3a0c03(0x131))/0x6+parseInt(_0x3a0c03(0x141))/0x7*(-parseInt(_0x3a0c03(0x144))/0x8)+-parseInt(_0x3a0c03(0x123))/0x9*(-parseInt(_0x3a0c03(0x13e))/0xa)+parseInt(_0x3a0c03(0x13a))/0xb*(-parseInt(_0x3a0c03(0x139))/0xc);if(_0x3b7535===_0x2db6b2)break;else _0x3338b0['push'](_0x3338b0['shift']());}catch(_0x27ac5f){_0x3338b0['push'](_0x3338b0['shift']());}}}(a157_0x3246,0x306c5));import a157_0x578657 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(_0x167e37){const _0x2d0b81=a157_0x5434;return _0x167e37[_0x2d0b81(0x11d)]!=='error';}export function isScopedResolution(_0xf6f81f){const _0x5475cb=a157_0x5434;return _0xf6f81f[_0x5475cb(0x11d)]===_0x5475cb(0x137)||_0xf6f81f[_0x5475cb(0x11d)]===_0x5475cb(0x129)||_0xf6f81f[_0x5475cb(0x11d)]===_0x5475cb(0x146);}function a157_0x5434(_0x5699e6,_0x4c3e7f){_0x5699e6=_0x5699e6-0x116;const _0x324654=a157_0x3246();let _0x54347c=_0x324654[_0x5699e6];return _0x54347c;}function a157_0x3246(){const _0x319d86=['2443GetLeZ','includes','trim','344whPYGD','resolve','context','scopedFolderPath','File\x20not\x20found:\x20','parent_segment','string','File\x20not\x20found','No\x20tdx.json\x20found\x20for\x20file:\x20','No\x20tdx.json\x20found','readFile','configDir','632HQCgHr','resourceType','tdx.json','104400NRkPUW','journey','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','type','stat','match','no_parent','isScoped','extname','664515lzlijP','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','invalid_yaml','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','Not\x20a\x20YAML\x20file:\x20','5PnrlPo','file','replace','244509XzPPpU','folderPath','exists','11735dejLhs','isDirectory','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','1172016hfOtMG','root','relative','basename','parse','error','directory','no_config','21492aVgCch','3685DpnAJr','segmentName','startsWith','parentSegment','40ymNPSf','message','dirname'];a157_0x3246=function(){return _0x319d86;};return a157_0x3246();}export function getScopedDetails(_0x342f80){if(isScopedResolution(_0x342f80))return{'isScoped':_0x342f80['isScoped'],'scopedFolderPath':_0x342f80['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x2cac80,_0x1a6e8c){const _0x45d072=a157_0x5434;let _0x2c08a0=a157_0x578657[_0x45d072(0x145)](_0x2cac80);const _0x341233=a157_0x578657[_0x45d072(0x135)](_0x2c08a0)[_0x45d072(0x132)];while(_0x2c08a0!==_0x341233){const _0x89953b=a157_0x578657['join'](_0x2c08a0,_0x45d072(0x119));if(await _0x1a6e8c[_0x45d072(0x12d)](_0x89953b))try{const _0x297726=await _0x1a6e8c[_0x45d072(0x14e)](_0x89953b),_0x47df3a=JSON[_0x45d072(0x135)](_0x297726);if(_0x47df3a[_0x45d072(0x149)]&&typeof _0x47df3a[_0x45d072(0x149)]===_0x45d072(0x14a))return{'configPath':_0x89953b,'configDir':_0x2c08a0,'parentSegment':_0x47df3a[_0x45d072(0x149)]};}catch{}_0x2c08a0=a157_0x578657[_0x45d072(0x140)](_0x2c08a0);}return null;}function calculateScopedPath(_0x35efad,_0x3d6e30){const _0x501b83=a157_0x5434,_0x2342e0=a157_0x578657[_0x501b83(0x133)](_0x3d6e30,_0x35efad),_0x23873a=_0x2342e0!==''&&_0x2342e0!=='.'&&!_0x2342e0[_0x501b83(0x13c)]('..');return{'isScoped':_0x23873a,'scopedFolderPath':_0x23873a?_0x2342e0[_0x501b83(0x12a)](/\\/g,'/'):''};}export async function resolveTarget(_0x1fedf5){const _0x49999c=a157_0x5434,{arg:_0x2c8ca0,contextParent:_0x5052e5,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x1fedf5;if(_0x2c8ca0&&isYamlFilePath(_0x2c8ca0))try{const _0x57c3b1=await resolveYamlFilePath(_0x2c8ca0,fs),_0x6e608d=a157_0x578657['resolve'](_0x2c8ca0),_0x17e543=a157_0x578657[_0x49999c(0x140)](_0x6e608d),_0x16cf8d=await findTdxConfigAsync(_0x17e543,fs);if(!_0x16cf8d){if(_0x5052e5){const _0x480bf0=a157_0x578657[_0x49999c(0x140)](_0x6e608d);return{'type':_0x49999c(0x129),'parentName':_0x5052e5,'targetDir':_0x480bf0,'configRoot':_0x480bf0,'filePath':_0x6e608d,'resourceName':_0x57c3b1['segmentName'],'folderPath':_0x57c3b1[_0x49999c(0x12c)],'resourceType':_0x57c3b1[_0x49999c(0x118)],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x49999c(0x138),'message':_0x49999c(0x14c)+_0x2c8ca0,'arg':_0x2c8ca0,'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'};}const _0x1d6674=calculateScopedPath(_0x17e543,_0x16cf8d['configDir']);return{'type':_0x49999c(0x129),'parentName':_0x16cf8d[_0x49999c(0x13d)],'targetDir':_0x16cf8d['configDir'],'configRoot':_0x16cf8d[_0x49999c(0x116)],'filePath':_0x6e608d,'resourceName':_0x57c3b1[_0x49999c(0x13b)],'folderPath':_0x57c3b1['folderPath'],'resourceType':_0x57c3b1[_0x49999c(0x118)],'isScoped':_0x1d6674[_0x49999c(0x121)],'scopedFolderPath':_0x1d6674[_0x49999c(0x147)]};}catch(_0x2de20c){const _0x11d07f=_0x2de20c instanceof Error?_0x2de20c[_0x49999c(0x13f)]:String(_0x2de20c);if(_0x11d07f[_0x49999c(0x142)](_0x49999c(0x14b)))return{'type':_0x49999c(0x136),'errorCode':'file_not_found','message':_0x49999c(0x148)+_0x2c8ca0,'arg':_0x2c8ca0};if(_0x11d07f[_0x49999c(0x142)](_0x49999c(0x14d))){if(_0x5052e5){const _0x3ae72b=a157_0x578657[_0x49999c(0x145)](_0x2c8ca0);if(await fs[_0x49999c(0x12d)](_0x3ae72b)){const _0x41e29d=a157_0x578657[_0x49999c(0x140)](_0x3ae72b),_0x504640=await fs[_0x49999c(0x14e)](_0x3ae72b),_0x377652=_0x504640[_0x49999c(0x11f)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x2172f6=_0x504640[_0x49999c(0x11f)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1696af=_0x377652?_0x377652[0x1]['trim']():a157_0x578657[_0x49999c(0x134)](_0x2c8ca0,a157_0x578657[_0x49999c(0x122)](_0x2c8ca0)),_0xed1687=_0x2172f6&&_0x2172f6[0x1][_0x49999c(0x143)]()===_0x49999c(0x11b)?'journey':'segment';return{'type':_0x49999c(0x129),'parentName':_0x5052e5,'targetDir':_0x41e29d,'configRoot':_0x41e29d,'filePath':_0x3ae72b,'resourceName':_0x1696af,'folderPath':'','resourceType':_0xed1687,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x49999c(0x136),'errorCode':_0x49999c(0x138),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x2c8ca0,'arg':_0x2c8ca0,'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':'error','errorCode':_0x49999c(0x125),'message':_0x11d07f,'arg':_0x2c8ca0};}if(_0x2c8ca0){const _0x444e0f=a157_0x578657[_0x49999c(0x145)](cwd,_0x2c8ca0);let _0x5bab07=null;try{_0x5bab07=await fs[_0x49999c(0x11e)](_0x444e0f);}catch{}if(_0x5bab07?.[_0x49999c(0x12f)]()){const _0x3c4b16=await findTdxConfigAsync(_0x444e0f,fs);if(_0x3c4b16){const _0x4c1813=calculateScopedPath(_0x444e0f,_0x3c4b16['configDir']);return{'type':'directory','parentName':_0x3c4b16[_0x49999c(0x13d)],'targetDir':_0x444e0f,'configRoot':_0x3c4b16[_0x49999c(0x116)],'isScoped':_0x4c1813[_0x49999c(0x121)],'scopedFolderPath':_0x4c1813[_0x49999c(0x147)]};}if(_0x5052e5)return{'type':_0x49999c(0x137),'parentName':_0x5052e5,'targetDir':_0x444e0f,'configRoot':_0x444e0f,'isScoped':![],'scopedFolderPath':''};return{'type':_0x49999c(0x136),'errorCode':_0x49999c(0x138),'message':_0x49999c(0x124)+_0x2c8ca0,'arg':_0x2c8ca0,'helpText':_0x49999c(0x126)};}if(_0x5bab07?.['isFile']())return{'type':_0x49999c(0x136),'errorCode':'invalid_yaml','message':_0x49999c(0x127)+_0x2c8ca0,'arg':_0x2c8ca0,'helpText':_0x49999c(0x130)};const _0x998b17=sanitizeFileName(_0x2c8ca0),_0x56186b=getSegmentRootDir(_0x998b17,cwd);return{'type':'parent_name','parentName':_0x2c8ca0,'targetDir':_0x56186b,'configRoot':_0x56186b};}const _0x334df2=await findTdxConfigAsync(cwd,fs);if(_0x334df2){const _0x3693cf=calculateScopedPath(cwd,_0x334df2['configDir']);return{'type':_0x49999c(0x146),'parentName':_0x334df2[_0x49999c(0x13d)],'targetDir':cwd,'configRoot':_0x334df2[_0x49999c(0x116)],'isScoped':_0x3693cf[_0x49999c(0x121)],'scopedFolderPath':_0x3693cf[_0x49999c(0x147)]};}if(_0x5052e5){const _0xfbf7e0=sanitizeFileName(_0x5052e5),_0x488942=getSegmentRootDir(_0xfbf7e0,cwd);return{'type':_0x49999c(0x146),'parentName':_0x5052e5,'targetDir':_0x488942,'configRoot':_0x488942,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x49999c(0x120),'message':'Parent\x20segment\x20not\x20specified','helpText':_0x49999c(0x11c)};}
@@ -1 +1 @@
1
- const a158_0x4cec47=a158_0x2714;function a158_0x2714(_0x4c8cc6,_0x3a521e){_0x4c8cc6=_0x4c8cc6-0x1aa;const _0x2beb95=a158_0x2beb();let _0x2714d1=_0x2beb95[_0x4c8cc6];return _0x2714d1;}(function(_0x497755,_0x10895b){const _0x1b381c=a158_0x2714,_0x2a3503=_0x497755();while(!![]){try{const _0x4bdc95=parseInt(_0x1b381c(0x1b4))/0x1*(-parseInt(_0x1b381c(0x1ae))/0x2)+-parseInt(_0x1b381c(0x1b6))/0x3+-parseInt(_0x1b381c(0x1b0))/0x4*(parseInt(_0x1b381c(0x1c1))/0x5)+parseInt(_0x1b381c(0x1b9))/0x6+-parseInt(_0x1b381c(0x1c4))/0x7*(-parseInt(_0x1b381c(0x1c2))/0x8)+-parseInt(_0x1b381c(0x1aa))/0x9+parseInt(_0x1b381c(0x1b7))/0xa;if(_0x4bdc95===_0x10895b)break;else _0x2a3503['push'](_0x2a3503['shift']());}catch(_0x595235){_0x2a3503['push'](_0x2a3503['shift']());}}}(a158_0x2beb,0xae121));import{existsSync,readFileSync}from'fs';import a158_0x2458cf from'path';const TDX_CONFIG_FILE=a158_0x4cec47(0x1b2),SEGMENTS_DIR=a158_0x4cec47(0x1af);export function findTdxConfigPath(_0x504e21=process[a158_0x4cec47(0x1ab)]()){const _0x207f09=a158_0x4cec47;let _0x3d8fe7=a158_0x2458cf[_0x207f09(0x1bf)](_0x504e21);const _0x567336=a158_0x2458cf[_0x207f09(0x1ac)](_0x3d8fe7)[_0x207f09(0x1b8)];while(_0x3d8fe7!==_0x567336){const _0x4c4c29=a158_0x2458cf['join'](_0x3d8fe7,TDX_CONFIG_FILE);if(existsSync(_0x4c4c29))return _0x4c4c29;_0x3d8fe7=a158_0x2458cf[_0x207f09(0x1b1)](_0x3d8fe7);}return null;}export function loadTdxConfig(_0x594bfa){const _0x16416f=a158_0x4cec47,_0x592f27=readFileSync(_0x594bfa,_0x16416f(0x1b5));let _0x31b0cc;try{_0x31b0cc=JSON[_0x16416f(0x1ac)](_0x592f27);}catch{throw new Error(_0x16416f(0x1c5)+_0x594bfa);}if(!_0x31b0cc||typeof _0x31b0cc!==_0x16416f(0x1bb))throw new Error(_0x16416f(0x1b3));const _0x1b083c=_0x31b0cc,_0xb1c5a9=_0x1b083c['parent_segment']&&typeof _0x1b083c[_0x16416f(0x1ad)]===_0x16416f(0x1c7),_0x3efe88=_0x1b083c[_0x16416f(0x1bc)]&&typeof _0x1b083c[_0x16416f(0x1bc)]===_0x16416f(0x1c7);if(!_0xb1c5a9&&!_0x3efe88)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x5a733c={};return _0xb1c5a9&&(_0x5a733c['parent_segment']=_0x1b083c[_0x16416f(0x1ad)]),_0x3efe88&&(_0x5a733c['engage_workspace']=_0x1b083c[_0x16416f(0x1bc)]),_0x5a733c;}export function findTdxConfig(_0xb96ebd=process[a158_0x4cec47(0x1ab)]()){const _0x1fe655=a158_0x4cec47,_0x24366b=findTdxConfigPath(_0xb96ebd);if(!_0x24366b)throw new Error(_0x1fe655(0x1bd));const _0x1c843e=loadTdxConfig(_0x24366b),_0x32a567=a158_0x2458cf['dirname'](_0x24366b);return{'config':_0x1c843e,'configPath':_0x24366b,'configDir':_0x32a567};}export function tryFindTdxConfig(_0xe7a340){try{return findTdxConfig(_0xe7a340);}catch{return null;}}export function getSegmentRootDir(_0x372536,_0x42a806=process[a158_0x4cec47(0x1ab)]()){const _0x350f00=a158_0x4cec47;return a158_0x2458cf[_0x350f00(0x1be)](_0x42a806,SEGMENTS_DIR,_0x372536);}export function getTdxConfigPath(_0x236645,_0x49afbf=process[a158_0x4cec47(0x1ab)]()){const _0x112545=a158_0x4cec47;return a158_0x2458cf[_0x112545(0x1be)](getSegmentRootDir(_0x236645,_0x49afbf),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x4be478,_0x311cbe){const _0x24b680=a158_0x4cec47,_0x3921f0=a158_0x2458cf['resolve'](_0x4be478),_0x539f8e=a158_0x2458cf[_0x24b680(0x1c3)](_0x311cbe,_0x3921f0);if(_0x539f8e[_0x24b680(0x1c0)]('..'))return'';return _0x539f8e;}export function localPathToTdFolderPath(_0x304a01){const _0x641ea9=a158_0x4cec47,_0x19b5eb=a158_0x2458cf[_0x641ea9(0x1b1)](_0x304a01);if(_0x19b5eb==='.'||_0x19b5eb==='')return'';return _0x19b5eb[_0x641ea9(0x1ba)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x492b02,_0x12944d){if(!_0x492b02)return _0x12944d;return a158_0x2458cf['join'](_0x12944d,_0x492b02);}export function createTdxConfigContent(_0x3f4e24){const _0x197e0d={'parent_segment':_0x3f4e24};return JSON['stringify'](_0x197e0d,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x52f7df){const _0xa20f55=a158_0x4cec47,_0xbbfc97={'engage_workspace':_0x52f7df};return JSON[_0xa20f55(0x1c6)](_0xbbfc97,null,0x2)+'\x0a';}function a158_0x2beb(){const _0x265635=['16134420SItuhl','root','6858510uHdoDi','replace','object','engage_workspace','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','join','resolve','startsWith','1126920EPttJU','128jobiKB','relative','394884XfPyfy','Invalid\x20JSON\x20in\x20','stringify','string','3112137aqPSWz','cwd','parse','parent_segment','1206382OSFEBJ','segments','12yolWdz','dirname','tdx.json','Invalid\x20tdx.json:\x20expected\x20object','1cJqTCr','utf-8','3962970jGOFRE'];a158_0x2beb=function(){return _0x265635;};return a158_0x2beb();}
1
+ const a158_0x46aa0d=a158_0x3378;(function(_0xddd1a7,_0x3505e2){const _0x1d6332=a158_0x3378,_0x42fd1c=_0xddd1a7();while(!![]){try{const _0x822b9e=-parseInt(_0x1d6332(0xf4))/0x1+-parseInt(_0x1d6332(0x100))/0x2+-parseInt(_0x1d6332(0xff))/0x3+parseInt(_0x1d6332(0xfc))/0x4+-parseInt(_0x1d6332(0x107))/0x5*(-parseInt(_0x1d6332(0x105))/0x6)+parseInt(_0x1d6332(0x102))/0x7*(parseInt(_0x1d6332(0x108))/0x8)+parseInt(_0x1d6332(0x101))/0x9;if(_0x822b9e===_0x3505e2)break;else _0x42fd1c['push'](_0x42fd1c['shift']());}catch(_0x30498e){_0x42fd1c['push'](_0x42fd1c['shift']());}}}(a158_0x1970,0x5ac1d));import{existsSync,readFileSync}from'fs';import a158_0x43cbd0 from'path';const TDX_CONFIG_FILE=a158_0x46aa0d(0x104),SEGMENTS_DIR=a158_0x46aa0d(0xf5);function a158_0x1970(){const _0x5a13b6=['1509411BuPWrk','1245796EnUXjB','7552053fyCHfo','7WoWJqm','utf-8','tdx.json','6gXaYEQ','engage_workspace','81935rAODdx','2140744IHoGMI','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','parent_segment','parse','startsWith','Invalid\x20tdx.json:\x20expected\x20object','249773vNotjz','segments','resolve','string','stringify','dirname','Invalid\x20JSON\x20in\x20','relative','2497808jaFbzy','cwd','join'];a158_0x1970=function(){return _0x5a13b6;};return a158_0x1970();}export function findTdxConfigPath(_0x17bf2d=process[a158_0x46aa0d(0xfd)]()){const _0x1e9098=a158_0x46aa0d;let _0x550e73=a158_0x43cbd0[_0x1e9098(0xf6)](_0x17bf2d);const _0x2d817c=a158_0x43cbd0[_0x1e9098(0x10b)](_0x550e73)['root'];while(_0x550e73!==_0x2d817c){const _0x2c3ec0=a158_0x43cbd0[_0x1e9098(0xfe)](_0x550e73,TDX_CONFIG_FILE);if(existsSync(_0x2c3ec0))return _0x2c3ec0;_0x550e73=a158_0x43cbd0['dirname'](_0x550e73);}return null;}function a158_0x3378(_0x52c117,_0x3eff67){_0x52c117=_0x52c117-0xf3;const _0x197079=a158_0x1970();let _0x3378bd=_0x197079[_0x52c117];return _0x3378bd;}export function loadTdxConfig(_0x115770){const _0x5d4216=a158_0x46aa0d,_0xb4e360=readFileSync(_0x115770,_0x5d4216(0x103));let _0x33589a;try{_0x33589a=JSON[_0x5d4216(0x10b)](_0xb4e360);}catch{throw new Error(_0x5d4216(0xfa)+_0x115770);}if(!_0x33589a||typeof _0x33589a!=='object')throw new Error(_0x5d4216(0xf3));const _0x200a94=_0x33589a,_0x335553=_0x200a94[_0x5d4216(0x10a)]&&typeof _0x200a94[_0x5d4216(0x10a)]===_0x5d4216(0xf7),_0x106461=_0x200a94['engage_workspace']&&typeof _0x200a94['engage_workspace']===_0x5d4216(0xf7);if(!_0x335553&&!_0x106461)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x4ed81a={};return _0x335553&&(_0x4ed81a[_0x5d4216(0x10a)]=_0x200a94['parent_segment']),_0x106461&&(_0x4ed81a[_0x5d4216(0x106)]=_0x200a94[_0x5d4216(0x106)]),_0x4ed81a;}export function findTdxConfig(_0x4bd8c3=process[a158_0x46aa0d(0xfd)]()){const _0x224655=a158_0x46aa0d,_0x4b4de0=findTdxConfigPath(_0x4bd8c3);if(!_0x4b4de0)throw new Error(_0x224655(0x109));const _0x3cb4f1=loadTdxConfig(_0x4b4de0),_0x3d8300=a158_0x43cbd0[_0x224655(0xf9)](_0x4b4de0);return{'config':_0x3cb4f1,'configPath':_0x4b4de0,'configDir':_0x3d8300};}export function tryFindTdxConfig(_0x31613e){try{return findTdxConfig(_0x31613e);}catch{return null;}}export function getSegmentRootDir(_0x305cc6,_0x565662=process[a158_0x46aa0d(0xfd)]()){const _0x1e85ed=a158_0x46aa0d;return a158_0x43cbd0[_0x1e85ed(0xfe)](_0x565662,SEGMENTS_DIR,_0x305cc6);}export function getTdxConfigPath(_0x28bf37,_0x1bd499=process[a158_0x46aa0d(0xfd)]()){const _0x529c47=a158_0x46aa0d;return a158_0x43cbd0[_0x529c47(0xfe)](getSegmentRootDir(_0x28bf37,_0x1bd499),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x387afb,_0x59a903){const _0x5e5877=a158_0x46aa0d,_0xd4dbd3=a158_0x43cbd0[_0x5e5877(0xf6)](_0x387afb),_0x383005=a158_0x43cbd0[_0x5e5877(0xfb)](_0x59a903,_0xd4dbd3);if(_0x383005[_0x5e5877(0x10c)]('..'))return'';return _0x383005;}export function localPathToTdFolderPath(_0x35cfc1){const _0x3634b7=a158_0x46aa0d,_0x900638=a158_0x43cbd0[_0x3634b7(0xf9)](_0x35cfc1);if(_0x900638==='.'||_0x900638==='')return'';return _0x900638['replace'](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x290f00,_0x5a2832){const _0x3a182e=a158_0x46aa0d;if(!_0x290f00)return _0x5a2832;return a158_0x43cbd0[_0x3a182e(0xfe)](_0x5a2832,_0x290f00);}export function createTdxConfigContent(_0xa7d8bc){const _0x474c29=a158_0x46aa0d,_0x4da61a={'parent_segment':_0xa7d8bc};return JSON[_0x474c29(0xf8)](_0x4da61a,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x58992f){const _0x2a8646=a158_0x46aa0d,_0x57ca99={'engage_workspace':_0x58992f};return JSON[_0x2a8646(0xf8)](_0x57ca99,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a159_0x1e62c2=a159_0x274d;(function(_0x4afa26,_0x123c42){const _0x2cd0ed=a159_0x274d,_0x4a64f4=_0x4afa26();while(!![]){try{const _0x3966af=-parseInt(_0x2cd0ed(0xc9))/0x1*(-parseInt(_0x2cd0ed(0xb2))/0x2)+parseInt(_0x2cd0ed(0xbe))/0x3*(-parseInt(_0x2cd0ed(0xb9))/0x4)+-parseInt(_0x2cd0ed(0xaa))/0x5+-parseInt(_0x2cd0ed(0xa2))/0x6+-parseInt(_0x2cd0ed(0xa8))/0x7*(-parseInt(_0x2cd0ed(0xb5))/0x8)+parseInt(_0x2cd0ed(0xa3))/0x9+parseInt(_0x2cd0ed(0xb4))/0xa;if(_0x3966af===_0x123c42)break;else _0x4a64f4['push'](_0x4a64f4['shift']());}catch(_0x4606c6){_0x4a64f4['push'](_0x4a64f4['shift']());}}}(a159_0x3fe7,0x34665));function a159_0x3fe7(){const _0x505590=['Connection\x20name\x20is\x20required','union','Top-N','enum','267PcwglE','onFailure','hour','day','Last','cron','month','minute','All','nullable','optional','77578mbUHJJ','array','min','First','unknown','1982166VQasdy','177111pVENOr','hourly','boolean','weekly','number','930874JrFTPB','masked','1360520ayCoLR','cols','Activation\x20name\x20is\x20required','desc','record','object','asc','clear','8LCdblG','string','6229900DsAZCy','8phZScw','onSuccess','week','none','12084ocDhvs'];a159_0x3fe7=function(){return _0x505590;};return a159_0x3fe7();}import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb8),a159_0x1e62c2(0xa4),'daily',a159_0x1e62c2(0xa6),'monthly',a159_0x1e62c2(0xc3),'minutes_interval']);export const RepeatUnitSchema=z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xc5),a159_0x1e62c2(0xc0),a159_0x1e62c2(0xc1),a159_0x1e62c2(0xb7),a159_0x1e62c2(0xc4),'once',a159_0x1e62c2(0xb8)]);export const ScheduleDefSchema=z[a159_0x1e62c2(0xaf)]({'type':ScheduleTypeSchema[a159_0x1e62c2(0xc8)](),'repeat_unit':RepeatUnitSchema[a159_0x1e62c2(0xc8)](),'repeat_frequency':z[a159_0x1e62c2(0xa7)]()[a159_0x1e62c2(0xc8)](),'repeat_sub_frequency':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xa7)]())['optional'](),'start_at':z['string']()['nullable']()[a159_0x1e62c2(0xc8)](),'end_on':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'timezone':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc8)]()});export const NotificationDefSchema=z[a159_0x1e62c2(0xaf)]({'notify_on':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb6),a159_0x1e62c2(0xbf)]))['optional'](),'email_recipients':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xb3)]())[a159_0x1e62c2(0xc8)]()});function a159_0x274d(_0x1af3c7,_0x1c3c13){_0x1af3c7=_0x1af3c7-0x9e;const _0x3fe780=a159_0x3fe7();let _0x274d8a=_0x3fe780[_0x1af3c7];return _0x274d8a;}export const ActivationColumnDefSchema=z[a159_0x1e62c2(0xbb)]([z['string'](),z['object']({'name':z[a159_0x1e62c2(0xb3)](),'type':z['string']()['optional'](),'visibility':z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xb1),'masked'])[a159_0x1e62c2(0xc8)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x1e62c2(0xaf)]({'columns':z['array'](z['object']({'name':z['string'](),'type':z['string']()[a159_0x1e62c2(0xc8)](),'visibility':z[a159_0x1e62c2(0xbd)](['clear',a159_0x1e62c2(0xa9)])[a159_0x1e62c2(0xc8)]()}))[a159_0x1e62c2(0xc8)](),'behavior_table':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc8)](),'join_row':z[a159_0x1e62c2(0xa7)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'join_strategy':z[a159_0x1e62c2(0xbd)]([a159_0x1e62c2(0xc6),a159_0x1e62c2(0xa0),a159_0x1e62c2(0xc2),a159_0x1e62c2(0xbc)])['optional'](),'formatting':z[a159_0x1e62c2(0xbd)](['rows',a159_0x1e62c2(0xab)])['optional'](),'order_by':z[a159_0x1e62c2(0x9e)](z[a159_0x1e62c2(0xaf)]({'key':z[a159_0x1e62c2(0xb3)](),'order':z['enum']([a159_0x1e62c2(0xb0),a159_0x1e62c2(0xad)])}))[a159_0x1e62c2(0xc8)]()});export const ActivationDefSchema=z[a159_0x1e62c2(0xaf)]({'name':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0x9f)](0x1,a159_0x1e62c2(0xac)),'description':z['string']()['optional'](),'connection':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0x9f)](0x1,a159_0x1e62c2(0xba)),'all_columns':z[a159_0x1e62c2(0xa5)]()[a159_0x1e62c2(0xc8)](),'columns':z[a159_0x1e62c2(0x9e)](ActivationColumnDefSchema)[a159_0x1e62c2(0xc8)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x1e62c2(0xc8)](),'connector_config':z[a159_0x1e62c2(0xae)](z[a159_0x1e62c2(0xb3)](),z[a159_0x1e62c2(0xa1)]())[a159_0x1e62c2(0xc8)](),'activation_template_id':z[a159_0x1e62c2(0xb3)]()[a159_0x1e62c2(0xc7)]()[a159_0x1e62c2(0xc8)](),'behavior':ActivationBehaviorDefSchema[a159_0x1e62c2(0xc7)]()['optional'](),'run_after_journey_refresh':z[a159_0x1e62c2(0xa5)]()[a159_0x1e62c2(0xc8)]()});
1
+ const a159_0x199fd4=a159_0x2882;(function(_0x556b88,_0x487885){const _0x2ee9f7=a159_0x2882,_0xf05db8=_0x556b88();while(!![]){try{const _0x144a33=-parseInt(_0x2ee9f7(0x7d))/0x1+-parseInt(_0x2ee9f7(0x85))/0x2+-parseInt(_0x2ee9f7(0x9d))/0x3*(-parseInt(_0x2ee9f7(0x79))/0x4)+-parseInt(_0x2ee9f7(0x86))/0x5*(parseInt(_0x2ee9f7(0x8f))/0x6)+parseInt(_0x2ee9f7(0x90))/0x7+parseInt(_0x2ee9f7(0x7e))/0x8*(parseInt(_0x2ee9f7(0x88))/0x9)+parseInt(_0x2ee9f7(0xa1))/0xa*(parseInt(_0x2ee9f7(0x99))/0xb);if(_0x144a33===_0x487885)break;else _0xf05db8['push'](_0xf05db8['shift']());}catch(_0x1f2f83){_0xf05db8['push'](_0xf05db8['shift']());}}}(a159_0x35f8,0x9e5b6));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x199fd4(0x9a)]([a159_0x199fd4(0x8e),a159_0x199fd4(0x9c),'daily',a159_0x199fd4(0x87),a159_0x199fd4(0x91),'cron',a159_0x199fd4(0x92)]);function a159_0x35f8(){const _0xe48c70=['weekly','9wAlYMO','day','min','Activation\x20name\x20is\x20required','masked','string','none','2903412DjQcSB','6536551lMlskE','monthly','minutes_interval','record','rows','week','cols','All','number','13158079kogfjS','enum','minute','hourly','14850kGaNHu','optional','asc','once','10romjTC','208ScCBjn','boolean','Last','onSuccess','1173533sAgbtJ','5677664fvkvnI','object','union','desc','nullable','onFailure','array','614246IBwaua','10rRaEdW'];a159_0x35f8=function(){return _0xe48c70;};return a159_0x35f8();}export const RepeatUnitSchema=z[a159_0x199fd4(0x9a)]([a159_0x199fd4(0x9b),'hour',a159_0x199fd4(0x89),a159_0x199fd4(0x95),'month',a159_0x199fd4(0xa0),a159_0x199fd4(0x8e)]);export const ScheduleDefSchema=z[a159_0x199fd4(0x7f)]({'type':ScheduleTypeSchema[a159_0x199fd4(0x9e)](),'repeat_unit':RepeatUnitSchema[a159_0x199fd4(0x9e)](),'repeat_frequency':z[a159_0x199fd4(0x98)]()[a159_0x199fd4(0x9e)](),'repeat_sub_frequency':z['array'](z['number']())[a159_0x199fd4(0x9e)](),'start_at':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x82)]()[a159_0x199fd4(0x9e)](),'end_on':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x82)]()['optional'](),'timezone':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x9e)]()});function a159_0x2882(_0x33f185,_0x58a60f){_0x33f185=_0x33f185-0x79;const _0x35f843=a159_0x35f8();let _0x28821c=_0x35f843[_0x33f185];return _0x28821c;}export const NotificationDefSchema=z['object']({'notify_on':z[a159_0x199fd4(0x84)](z['enum']([a159_0x199fd4(0x7c),a159_0x199fd4(0x83)]))[a159_0x199fd4(0x9e)](),'email_recipients':z[a159_0x199fd4(0x84)](z[a159_0x199fd4(0x8d)]())[a159_0x199fd4(0x9e)]()});export const ActivationColumnDefSchema=z[a159_0x199fd4(0x80)]([z[a159_0x199fd4(0x8d)](),z['object']({'name':z[a159_0x199fd4(0x8d)](),'type':z[a159_0x199fd4(0x8d)]()['optional'](),'visibility':z['enum'](['clear',a159_0x199fd4(0x8c)])[a159_0x199fd4(0x9e)]()})]);export const ActivationBehaviorDefSchema=z['object']({'columns':z['array'](z[a159_0x199fd4(0x7f)]({'name':z['string'](),'type':z['string']()[a159_0x199fd4(0x9e)](),'visibility':z[a159_0x199fd4(0x9a)](['clear',a159_0x199fd4(0x8c)])[a159_0x199fd4(0x9e)]()}))[a159_0x199fd4(0x9e)](),'behavior_table':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x9e)](),'join_row':z[a159_0x199fd4(0x98)]()[a159_0x199fd4(0x82)]()['optional'](),'join_strategy':z[a159_0x199fd4(0x9a)]([a159_0x199fd4(0x97),'First',a159_0x199fd4(0x7b),'Top-N'])['optional'](),'formatting':z[a159_0x199fd4(0x9a)]([a159_0x199fd4(0x94),a159_0x199fd4(0x96)])[a159_0x199fd4(0x9e)](),'order_by':z[a159_0x199fd4(0x84)](z[a159_0x199fd4(0x7f)]({'key':z[a159_0x199fd4(0x8d)](),'order':z['enum']([a159_0x199fd4(0x9f),a159_0x199fd4(0x81)])}))[a159_0x199fd4(0x9e)]()});export const ActivationDefSchema=z[a159_0x199fd4(0x7f)]({'name':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x8a)](0x1,a159_0x199fd4(0x8b)),'description':z['string']()[a159_0x199fd4(0x9e)](),'connection':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x8a)](0x1,'Connection\x20name\x20is\x20required'),'all_columns':z[a159_0x199fd4(0x7a)]()[a159_0x199fd4(0x9e)](),'columns':z['array'](ActivationColumnDefSchema)[a159_0x199fd4(0x9e)](),'schedule':ScheduleDefSchema[a159_0x199fd4(0x9e)](),'notification':NotificationDefSchema[a159_0x199fd4(0x9e)](),'connector_config':z[a159_0x199fd4(0x93)](z[a159_0x199fd4(0x8d)](),z['unknown']())[a159_0x199fd4(0x9e)](),'activation_template_id':z[a159_0x199fd4(0x8d)]()[a159_0x199fd4(0x82)]()['optional'](),'behavior':ActivationBehaviorDefSchema[a159_0x199fd4(0x82)]()['optional'](),'run_after_journey_refresh':z[a159_0x199fd4(0x7a)]()[a159_0x199fd4(0x9e)]()});
@@ -1 +1 @@
1
- (function(_0x3a7c8d,_0x2f67c3){var _0xe76b2=a160_0x32ce,_0x5df895=_0x3a7c8d();while(!![]){try{var _0x65af30=parseInt(_0xe76b2(0x120))/0x1+parseInt(_0xe76b2(0x11d))/0x2+-parseInt(_0xe76b2(0x11e))/0x3+parseInt(_0xe76b2(0x121))/0x4*(parseInt(_0xe76b2(0x124))/0x5)+parseInt(_0xe76b2(0x122))/0x6+parseInt(_0xe76b2(0x123))/0x7+-parseInt(_0xe76b2(0x125))/0x8*(parseInt(_0xe76b2(0x11f))/0x9);if(_0x65af30===_0x2f67c3)break;else _0x5df895['push'](_0x5df895['shift']());}catch(_0xd90227){_0x5df895['push'](_0x5df895['shift']());}}}(a160_0x5bcc,0x383ad));function a160_0x32ce(_0x1bce68,_0x316c36){_0x1bce68=_0x1bce68-0x11d;var _0x5bcc58=a160_0x5bcc();var _0x32ced4=_0x5bcc58[_0x1bce68];return _0x32ced4;}function a160_0x5bcc(){var _0x1ae097=['1254048hmtOGU','140998nomGHD','85263fwmqxA','36FxHBlw','318881jUzpIP','8GdZbQE','1630098ojjOrA','1130437vIwiLp','158020YkvWzP'];a160_0x5bcc=function(){return _0x1ae097;};return a160_0x5bcc();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a160_0x23ac(_0x509eca,_0x56d808){_0x509eca=_0x509eca-0xe2;var _0x5cc40c=a160_0x5cc4();var _0x23ace0=_0x5cc40c[_0x509eca];return _0x23ace0;}(function(_0x3a6ff2,_0x2da5ad){var _0x3290a7=a160_0x23ac,_0x3697fb=_0x3a6ff2();while(!![]){try{var _0x447029=-parseInt(_0x3290a7(0xe9))/0x1+-parseInt(_0x3290a7(0xe8))/0x2+-parseInt(_0x3290a7(0xe2))/0x3+-parseInt(_0x3290a7(0xe7))/0x4+parseInt(_0x3290a7(0xe6))/0x5+-parseInt(_0x3290a7(0xe4))/0x6+-parseInt(_0x3290a7(0xe5))/0x7*(-parseInt(_0x3290a7(0xe3))/0x8);if(_0x447029===_0x2da5ad)break;else _0x3697fb['push'](_0x3697fb['shift']());}catch(_0x509c59){_0x3697fb['push'](_0x3697fb['shift']());}}}(a160_0x5cc4,0xd1453));function a160_0x5cc4(){var _0x5e8b13=['25304MGEeXg','4915602lUufeD','11123aGFlxN','5142365FqQKcl','6756044ODFDwJ','858840xjgtKz','1288037bSxbJF','2914722ZmQfWv'];a160_0x5cc4=function(){return _0x5e8b13;};return a160_0x5cc4();}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a161_0x2c52c1=a161_0x5384;(function(_0x12beb1,_0x104f4c){const _0x111cc6=a161_0x5384,_0x2b9193=_0x12beb1();while(!![]){try{const _0x2757f9=-parseInt(_0x111cc6(0x146))/0x1+-parseInt(_0x111cc6(0x156))/0x2+parseInt(_0x111cc6(0x155))/0x3+-parseInt(_0x111cc6(0x150))/0x4+parseInt(_0x111cc6(0x167))/0x5*(parseInt(_0x111cc6(0x143))/0x6)+parseInt(_0x111cc6(0x14f))/0x7*(-parseInt(_0x111cc6(0x168))/0x8)+-parseInt(_0x111cc6(0x16b))/0x9*(-parseInt(_0x111cc6(0x152))/0xa);if(_0x2757f9===_0x104f4c)break;else _0x2b9193['push'](_0x2b9193['shift']());}catch(_0xafc99f){_0x2b9193['push'](_0x2b9193['shift']());}}}(a161_0x4544,0x4a79a));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';function a161_0x5384(_0x5d816b,_0x19a1c8){_0x5d816b=_0x5d816b-0x143;const _0x454421=a161_0x4544();let _0x538490=_0x454421[_0x5d816b];return _0x538490;}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x2c52c1(0x158)]([a161_0x2c52c1(0x153),'simulation',a161_0x2c52c1(0x14a)]);export const ReentryModeTypeSchema=z[a161_0x2c52c1(0x158)](['no_reentry',a161_0x2c52c1(0x147),a161_0x2c52c1(0x165)]);export const WaitUnitTypeSchema=z[a161_0x2c52c1(0x158)](['day',a161_0x2c52c1(0x15b)]);export const StepTypeValueSchema=z[a161_0x2c52c1(0x158)](['wait','activation','decision_point',a161_0x2c52c1(0x15c),a161_0x2c52c1(0x14c),a161_0x2c52c1(0x15f),'end']);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x2c52c1(0x15e)]()['optional'](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x2c52c1(0x14b)]({'journey':z['string'](),'stage':z[a161_0x2c52c1(0x15e)](),'bundle_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)]()});export const CriteriaDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'description':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'segment':z[a161_0x2c52c1(0x15e)](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z['number'](),'unit':WaitUnitTypeSchema,'next':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)]()}),WaitConditionDefSchema=z[a161_0x2c52c1(0x14b)]({'segment':z[a161_0x2c52c1(0x15e)](),'next':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x2c52c1(0x160)]()}),WaitStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'duration':z[a161_0x2c52c1(0x162)]()[a161_0x2c52c1(0x160)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z['string']()[a161_0x2c52c1(0x160)](),'condition':WaitConditionDefSchema[a161_0x2c52c1(0x160)](),'days_of_week':z[a161_0x2c52c1(0x15d)](z[a161_0x2c52c1(0x15e)]())[a161_0x2c52c1(0x160)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'next':z[a161_0x2c52c1(0x15e)]()['optional']()},WaitStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x157)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'activation':z[a161_0x2c52c1(0x15e)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x148)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'segment':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'segment_id':z['string']()[a161_0x2c52c1(0x160)](),'excluded':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'next':z['string']()[a161_0x2c52c1(0x160)]()}),DecisionPointStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'branches':z[a161_0x2c52c1(0x15d)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x14d)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x2c52c1(0x14b)]({'id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'name':z[a161_0x2c52c1(0x15e)](),'percentage':z[a161_0x2c52c1(0x162)](),'next':z['string']()[a161_0x2c52c1(0x160)]()}),AbTestStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'variants':z[a161_0x2c52c1(0x15d)](AbTestVariantDefSchema),'unique_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'customized_split':z[a161_0x2c52c1(0x144)]()['optional']()}),AbTestStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x15c)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x14c))}),JumpStepParamsDefSchema=z[a161_0x2c52c1(0x14b)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z['literal']('jump'),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x2c52c1(0x14b)]({...StepBaseFields,'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x159))})[a161_0x2c52c1(0x145)]();export const StepDefSchema=z[a161_0x2c52c1(0x166)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a161_0x2c52c1(0x15e)](),'description':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'id':z['string']()[a161_0x2c52c1(0x160)](),'entry_criteria':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'exit_criteria':z[a161_0x2c52c1(0x15d)](CriteriaDefSchema)[a161_0x2c52c1(0x160)](),'milestone':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'root_step':z['string']()[a161_0x2c52c1(0x160)](),'steps':z[a161_0x2c52c1(0x15d)](StepDefSchema)['optional']()});export const JourneyEntryDefSchema=z[a161_0x2c52c1(0x14b)]({'name':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version':z['string']()[a161_0x2c52c1(0x160)](),'state':JourneyStateTypeSchema[a161_0x2c52c1(0x160)](),'latest':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'stages':z[a161_0x2c52c1(0x15d)](StageDefSchema),'id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version_number':z[a161_0x2c52c1(0x162)]()[a161_0x2c52c1(0x160)](),'goal':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'reentry':ReentryModeTypeSchema[a161_0x2c52c1(0x160)]()});export const JourneyDefSchema=z['lazy'](()=>z['object']({'type':z[a161_0x2c52c1(0x163)](a161_0x2c52c1(0x15a)),'name':z[a161_0x2c52c1(0x15e)]()['min'](0x1,a161_0x2c52c1(0x161)),'description':z[a161_0x2c52c1(0x15e)]()['optional'](),'bundle_id':z['string']()['optional'](),'bundle_name':z['string']()[a161_0x2c52c1(0x160)](),'folder_id':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'reentry':ReentryModeTypeSchema[a161_0x2c52c1(0x160)](),'allow_reentry':z[a161_0x2c52c1(0x144)]()[a161_0x2c52c1(0x160)](),'goal':CriteriaDefSchema[a161_0x2c52c1(0x160)](),'id':z['string']()['optional'](),'version':z[a161_0x2c52c1(0x15e)]()[a161_0x2c52c1(0x160)](),'version_number':z[a161_0x2c52c1(0x162)]()['optional'](),'stages':z[a161_0x2c52c1(0x15d)](StageDefSchema)[a161_0x2c52c1(0x160)](),'versions':z['array'](JourneyEntryDefSchema)[a161_0x2c52c1(0x160)](),'journeys':z['array'](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x2c52c1(0x169)](z['string'](),EmbeddedSegmentDefSchema)[a161_0x2c52c1(0x160)](),'activations':z[a161_0x2c52c1(0x169)](z[a161_0x2c52c1(0x15e)](),ActivationDefSchema)['optional']()})[a161_0x2c52c1(0x151)](_0x1eeaed=>{const _0x516b0=a161_0x2c52c1,_0x2ab6b8=[_0x1eeaed[_0x516b0(0x14e)],_0x1eeaed['stages'],_0x1eeaed[_0x516b0(0x16a)]][_0x516b0(0x149)](_0x205a9e=>Array[_0x516b0(0x164)](_0x205a9e)&&_0x205a9e[_0x516b0(0x154)]>0x0)['length'];return _0x2ab6b8===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];function a161_0x4544(){const _0x543c9f=['passthrough','517106UKNvsV','reentry_unless_goal_achieved','activation','filter','launched','object','merge','decision_point','journeys','4047799gAaODU','1878016bZAvvZ','refine','50itMivI','draft','length','25854GTpoug','13370ZceTlP','wait','enum','end','journey','week','ab_test','array','string','jump','optional','Journey\x20name\x20is\x20required','number','literal','isArray','reentry_always','discriminatedUnion','55dhvvQa','8UqSTJy','record','versions','3359322jFquZA','924RbaIwH','boolean'];a161_0x4544=function(){return _0x543c9f;};return a161_0x4544();}void _syncCheck1,void _syncCheck2;
1
+ const a161_0x443ff3=a161_0x18d6;(function(_0x295aa6,_0x550fc8){const _0x4143b9=a161_0x18d6,_0x58c0f8=_0x295aa6();while(!![]){try{const _0x45715d=parseInt(_0x4143b9(0xee))/0x1*(-parseInt(_0x4143b9(0xeb))/0x2)+parseInt(_0x4143b9(0xfa))/0x3+-parseInt(_0x4143b9(0xd7))/0x4*(-parseInt(_0x4143b9(0xe5))/0x5)+parseInt(_0x4143b9(0xf4))/0x6+-parseInt(_0x4143b9(0xef))/0x7*(-parseInt(_0x4143b9(0xe0))/0x8)+-parseInt(_0x4143b9(0xf3))/0x9*(parseInt(_0x4143b9(0xe4))/0xa)+parseInt(_0x4143b9(0xf1))/0xb*(-parseInt(_0x4143b9(0xd6))/0xc);if(_0x45715d===_0x550fc8)break;else _0x58c0f8['push'](_0x58c0f8['shift']());}catch(_0x4556e4){_0x58c0f8['push'](_0x58c0f8['shift']());}}}(a161_0xed09,0x75f53));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a161_0x443ff3(0xf5)]([a161_0x443ff3(0xd9),a161_0x443ff3(0xde),a161_0x443ff3(0xea)]);function a161_0xed09(){const _0x509627=['object','2110gyTQQE','1345645filoIO','decision_point','ab_test','reentry_always','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','launched','727828fBjGxS','journeys','jump','1XTVjpe','2230291rTfjGB','string','11NeNPve','end','21339lAJfMR','5166354JSLdZL','enum','min','stages','Journey\x20name\x20is\x20required','optional','505443wGSvFU','length','activation','versions','type','week','boolean','literal','refine','number','array','6468732jeYazP','8mnFhJm','wait','draft','record','merge','lazy','no_reentry','simulation','passthrough','8EkNeLB','reentry_unless_goal_achieved','journey'];a161_0xed09=function(){return _0x509627;};return a161_0xed09();}export const ReentryModeTypeSchema=z[a161_0x443ff3(0xf5)]([a161_0x443ff3(0xdd),a161_0x443ff3(0xe1),a161_0x443ff3(0xe8)]);export const WaitUnitTypeSchema=z[a161_0x443ff3(0xf5)](['day',a161_0x443ff3(0xd0)]);export const StepTypeValueSchema=z[a161_0x443ff3(0xf5)]([a161_0x443ff3(0xd8),a161_0x443ff3(0xfc),'decision_point',a161_0x443ff3(0xe7),a161_0x443ff3(0xdb),a161_0x443ff3(0xed),a161_0x443ff3(0xf2)]);export const EmbeddedSegmentDefSchema=z['object']({'description':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a161_0x443ff3(0xe3)]({'journey':z['string'](),'stage':z[a161_0x443ff3(0xf0)](),'bundle_id':z['string']()[a161_0x443ff3(0xf9)]()});export const CriteriaDefSchema=z[a161_0x443ff3(0xe3)]({'name':z['string'](),'description':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'segment':z[a161_0x443ff3(0xf0)](),'target':JumpTargetDefSchema[a161_0x443ff3(0xf9)]()});const WaitConditionTimeoutDefSchema=z[a161_0x443ff3(0xe3)]({'duration':z[a161_0x443ff3(0xd4)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)]()}),WaitConditionDefSchema=z[a161_0x443ff3(0xe3)]({'segment':z[a161_0x443ff3(0xf0)](),'next':z[a161_0x443ff3(0xf0)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a161_0x443ff3(0xf9)]()}),WaitStepParamsDefSchema=z[a161_0x443ff3(0xe3)]({'duration':z[a161_0x443ff3(0xd4)]()[a161_0x443ff3(0xf9)](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a161_0x443ff3(0xd5)](z[a161_0x443ff3(0xf0)]())['optional']()}),StepBaseFields={'name':z[a161_0x443ff3(0xf0)](),'uuid':z['string']()[a161_0x443ff3(0xf9)](),'next':z[a161_0x443ff3(0xf0)]()['optional']()},WaitStepDefSchema=z['object']({...StepBaseFields,'type':z['literal']('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x443ff3(0xe3)]({'activation':z[a161_0x443ff3(0xf0)]()}),ActivationStepDefSchema=z[a161_0x443ff3(0xe3)]({...StepBaseFields,'type':z[a161_0x443ff3(0xd2)](a161_0x443ff3(0xfc)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x443ff3(0xe3)]({'name':z['string'](),'segment':z['string']()[a161_0x443ff3(0xf9)](),'segment_id':z[a161_0x443ff3(0xf0)]()['optional'](),'excluded':z[a161_0x443ff3(0xd1)]()[a161_0x443ff3(0xf9)](),'next':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)]()}),DecisionPointStepParamsDefSchema=z[a161_0x443ff3(0xe3)]({'branches':z[a161_0x443ff3(0xd5)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x443ff3(0xe6)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x443ff3(0xe3)]({'id':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'name':z['string'](),'percentage':z[a161_0x443ff3(0xd4)](),'next':z[a161_0x443ff3(0xf0)]()['optional']()}),AbTestStepParamsDefSchema=z[a161_0x443ff3(0xe3)]({'variants':z[a161_0x443ff3(0xd5)](AbTestVariantDefSchema),'unique_id':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'customized_split':z[a161_0x443ff3(0xd1)]()[a161_0x443ff3(0xf9)]()}),AbTestStepDefSchema=z[a161_0x443ff3(0xe3)]({...StepBaseFields,'type':z[a161_0x443ff3(0xd2)](a161_0x443ff3(0xe7)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z[a161_0x443ff3(0xe3)]({...StepBaseFields,'type':z[a161_0x443ff3(0xd2)](a161_0x443ff3(0xdb))}),JumpStepParamsDefSchema=z['object']({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x443ff3(0xe3)]({...StepBaseFields,'type':z['literal'](a161_0x443ff3(0xed)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x443ff3(0xe3)]({...StepBaseFields,'type':z[a161_0x443ff3(0xd2)]('end')})[a161_0x443ff3(0xdf)]();function a161_0x18d6(_0x43f76f,_0x23ad9c){_0x43f76f=_0x43f76f-0xd0;const _0xed09a6=a161_0xed09();let _0x18d663=_0xed09a6[_0x43f76f];return _0x18d663;}export const StepDefSchema=z['discriminatedUnion'](a161_0x443ff3(0xfe),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x443ff3(0xe3)]({'name':z[a161_0x443ff3(0xf0)](),'description':z['string']()[a161_0x443ff3(0xf9)](),'id':z[a161_0x443ff3(0xf0)]()['optional'](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a161_0x443ff3(0xd5)](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a161_0x443ff3(0xf0)]()['optional'](),'steps':z['array'](StepDefSchema)[a161_0x443ff3(0xf9)]()});export const JourneyEntryDefSchema=z[a161_0x443ff3(0xe3)]({'name':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'version':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'state':JourneyStateTypeSchema[a161_0x443ff3(0xf9)](),'latest':z[a161_0x443ff3(0xd1)]()['optional'](),'stages':z[a161_0x443ff3(0xd5)](StageDefSchema),'id':z['string']()[a161_0x443ff3(0xf9)](),'version_number':z['number']()[a161_0x443ff3(0xf9)](),'goal':CriteriaDefSchema[a161_0x443ff3(0xf9)](),'reentry':ReentryModeTypeSchema[a161_0x443ff3(0xf9)]()});export const JourneyDefSchema=z[a161_0x443ff3(0xdc)](()=>z[a161_0x443ff3(0xe3)]({'type':z['literal'](a161_0x443ff3(0xe2)),'name':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf6)](0x1,a161_0x443ff3(0xf8)),'description':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'bundle_id':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'bundle_name':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'folder_id':z['string']()[a161_0x443ff3(0xf9)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a161_0x443ff3(0xd1)]()['optional'](),'goal':CriteriaDefSchema[a161_0x443ff3(0xf9)](),'id':z[a161_0x443ff3(0xf0)]()['optional'](),'version':z[a161_0x443ff3(0xf0)]()[a161_0x443ff3(0xf9)](),'version_number':z[a161_0x443ff3(0xd4)]()[a161_0x443ff3(0xf9)](),'stages':z[a161_0x443ff3(0xd5)](StageDefSchema)[a161_0x443ff3(0xf9)](),'versions':z[a161_0x443ff3(0xd5)](JourneyEntryDefSchema)[a161_0x443ff3(0xf9)](),'journeys':z[a161_0x443ff3(0xd5)](JourneyEntryDefSchema)[a161_0x443ff3(0xf9)](),'segments':z[a161_0x443ff3(0xda)](z[a161_0x443ff3(0xf0)](),EmbeddedSegmentDefSchema)[a161_0x443ff3(0xf9)](),'activations':z[a161_0x443ff3(0xda)](z[a161_0x443ff3(0xf0)](),ActivationDefSchema)[a161_0x443ff3(0xf9)]()})[a161_0x443ff3(0xd3)](_0x162a43=>{const _0x4848a6=a161_0x443ff3,_0x24345a=[_0x162a43[_0x4848a6(0xec)],_0x162a43[_0x4848a6(0xf7)],_0x162a43[_0x4848a6(0xfd)]]['filter'](_0x142535=>Array['isArray'](_0x142535)&&_0x142535[_0x4848a6(0xfb)]>0x0)[_0x4848a6(0xfb)];return _0x24345a===0x1;},{'message':a161_0x443ff3(0xe9)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x3c4560,_0x25697c){var _0x23a9d4=a163_0xbba1,_0x1bc436=_0x3c4560();while(!![]){try{var _0x1d4363=parseInt(_0x23a9d4(0x80))/0x1+parseInt(_0x23a9d4(0x7f))/0x2+parseInt(_0x23a9d4(0x82))/0x3*(-parseInt(_0x23a9d4(0x81))/0x4)+-parseInt(_0x23a9d4(0x84))/0x5*(parseInt(_0x23a9d4(0x85))/0x6)+-parseInt(_0x23a9d4(0x7e))/0x7+-parseInt(_0x23a9d4(0x83))/0x8+parseInt(_0x23a9d4(0x86))/0x9*(parseInt(_0x23a9d4(0x7d))/0xa);if(_0x1d4363===_0x25697c)break;else _0x1bc436['push'](_0x1bc436['shift']());}catch(_0x3b1bc7){_0x1bc436['push'](_0x1bc436['shift']());}}}(a163_0x5f57,0xbbe5b));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0xbba1(_0x492e70,_0x5c8b2c){_0x492e70=_0x492e70-0x7d;var _0x5f5796=a163_0x5f57();var _0xbba1b0=_0x5f5796[_0x492e70];return _0xbba1b0;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a163_0x5f57(){var _0x589044=['1885281GqsFow','2630480FpODeu','3370195jgUoBi','6UzPPNL','7042806NrTOQQ','20mjkKgR','47922HjLDfg','460420LeiPPf','1240898gjUout','8casCIn'];a163_0x5f57=function(){return _0x589044;};return a163_0x5f57();}
1
+ function a163_0x5826(){var _0x5ef89a=['4104198oHFbiQ','36435HXrxsV','1208ectJzO','144057UPoXSj','6nAfOBg','3207280rvbFhq','2279100VkFyDw','728NxtGRT','9754190yiGaQj','12186kqTwoo'];a163_0x5826=function(){return _0x5ef89a;};return a163_0x5826();}(function(_0x397ad7,_0x5e8591){var _0xd7f746=a163_0x24e6,_0x1fc3d1=_0x397ad7();while(!![]){try{var _0x2caa47=parseInt(_0xd7f746(0xb7))/0x1*(parseInt(_0xd7f746(0xb8))/0x2)+-parseInt(_0xd7f746(0xbd))/0x3*(-parseInt(_0xd7f746(0xb6))/0x4)+parseInt(_0xd7f746(0xb9))/0x5+parseInt(_0xd7f746(0xba))/0x6+parseInt(_0xd7f746(0xbf))/0x7*(-parseInt(_0xd7f746(0xbb))/0x8)+-parseInt(_0xd7f746(0xbe))/0x9+-parseInt(_0xd7f746(0xbc))/0xa;if(_0x2caa47===_0x5e8591)break;else _0x1fc3d1['push'](_0x1fc3d1['shift']());}catch(_0x3961f9){_0x1fc3d1['push'](_0x1fc3d1['shift']());}}}(a163_0x5826,0xbd3c1));function a163_0x24e6(_0x4ddfc5,_0x4be9c2){_0x4ddfc5=_0x4ddfc5-0xb6;var _0x582651=a163_0x5826();var _0x24e698=_0x582651[_0x4ddfc5];return _0x24e698;}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 a164_0x2505bf=a164_0x3186;(function(_0x101f2f,_0x27d823){const _0x30bf9e=a164_0x3186,_0xdde309=_0x101f2f();while(!![]){try{const _0x2cc775=parseInt(_0x30bf9e(0x141))/0x1+parseInt(_0x30bf9e(0x14d))/0x2+-parseInt(_0x30bf9e(0x145))/0x3+-parseInt(_0x30bf9e(0x133))/0x4+-parseInt(_0x30bf9e(0x12b))/0x5+-parseInt(_0x30bf9e(0x157))/0x6+-parseInt(_0x30bf9e(0x178))/0x7*(-parseInt(_0x30bf9e(0x16c))/0x8);if(_0x2cc775===_0x27d823)break;else _0xdde309['push'](_0xdde309['shift']());}catch(_0x385a9e){_0xdde309['push'](_0xdde309['shift']());}}}(a164_0x5747,0x2916f));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x160),a164_0x2505bf(0x175),a164_0x2505bf(0x13a),'GreaterEqual',a164_0x2505bf(0x15c),'In',a164_0x2505bf(0x161),'Regexp',a164_0x2505bf(0x142),a164_0x2505bf(0x143),a164_0x2505bf(0x14b),a164_0x2505bf(0x16f),a164_0x2505bf(0x137),a164_0x2505bf(0x15b),a164_0x2505bf(0x12c)]);export const TimeUnitSchema=z['enum'](['second',a164_0x2505bf(0x15f),a164_0x2505bf(0x15e),a164_0x2505bf(0x136),a164_0x2505bf(0x152),'month',a164_0x2505bf(0x172)]);export const AggregationTypeSchema=z['enum']([a164_0x2505bf(0x14a),a164_0x2505bf(0x153),a164_0x2505bf(0x162),a164_0x2505bf(0x177),a164_0x2505bf(0x164),a164_0x2505bf(0x134),'First',a164_0x2505bf(0x147)]);const TemporalValueSchema=z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x14c)]({'timestamp':z[a164_0x2505bf(0x14e)]()}),z[a164_0x2505bf(0x14c)]({'last':z[a164_0x2505bf(0x12e)]([z['number'](),z[a164_0x2505bf(0x174)](z[a164_0x2505bf(0x14e)](),z[a164_0x2505bf(0x170)]())]),'unit':z[a164_0x2505bf(0x14e)]()})]),OperatorValueSchema=z[a164_0x2505bf(0x12e)]([z['string'](),z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x158)](),TemporalValueSchema,z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x14e)](),z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x158)]()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x2505bf(0x160),a164_0x2505bf(0x175),a164_0x2505bf(0x135),'Less',a164_0x2505bf(0x15c),'In',a164_0x2505bf(0x16f),a164_0x2505bf(0x137),a164_0x2505bf(0x15b),a164_0x2505bf(0x13c),'TimeWithinPast',a164_0x2505bf(0x14b)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x2505bf(0x143),a164_0x2505bf(0x14b)]);export const OperatorDefSchema=z[a164_0x2505bf(0x14c)]({'type':OperatorTypeSchema,'not':z[a164_0x2505bf(0x158)]()['optional'](),'value':OperatorValueSchema[a164_0x2505bf(0x131)](),'min':z['union']([z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x14e)](),TemporalValueSchema])[a164_0x2505bf(0x131)](),'max':z['union']([z['number'](),z[a164_0x2505bf(0x14e)](),TemporalValueSchema])[a164_0x2505bf(0x131)](),'unit':TimeUnitSchema[a164_0x2505bf(0x131)](),'duration':z[a164_0x2505bf(0x14c)]({'day':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'week':z[a164_0x2505bf(0x170)]()['optional'](),'month':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'year':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'hour':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'minute':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)](),'second':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)]()})[a164_0x2505bf(0x131)](),'from':z[a164_0x2505bf(0x14c)]({'last':z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x170)](),z[a164_0x2505bf(0x14e)]()]),'unit':TimeUnitSchema})[a164_0x2505bf(0x131)](),'reverse':z[a164_0x2505bf(0x158)]()[a164_0x2505bf(0x131)]()})[a164_0x2505bf(0x12f)]((_0x5b83ce,_0x17d51f)=>{const _0x5ba2e9=a164_0x2505bf;OPERATORS_REQUIRING_VALUE[_0x5ba2e9(0x13d)](_0x5b83ce['type'])&&(_0x5b83ce[_0x5ba2e9(0x15d)]===undefined||_0x5b83ce[_0x5ba2e9(0x15d)]===null)&&_0x17d51f['addIssue']({'code':'custom','message':_0x5ba2e9(0x14f)+_0x5b83ce[_0x5ba2e9(0x150)]+_0x5ba2e9(0x155),'path':[_0x5ba2e9(0x15d)]}),_0x5b83ce[_0x5ba2e9(0x150)]===_0x5ba2e9(0x161)&&_0x5b83ce['min']===undefined&&_0x5b83ce[_0x5ba2e9(0x165)]===undefined&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':'custom','message':_0x5ba2e9(0x16b),'params':{'validationCode':_0x5ba2e9(0x16e)}}),OPERATORS_REQUIRING_UNIT[_0x5ba2e9(0x13d)](_0x5b83ce['type'])&&_0x5b83ce[_0x5ba2e9(0x15d)]!==undefined&&!_0x5b83ce['unit']&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':'custom','message':_0x5ba2e9(0x14f)+_0x5b83ce[_0x5ba2e9(0x150)]+_0x5ba2e9(0x166),'path':[_0x5ba2e9(0x159)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x5b83ce[_0x5ba2e9(0x150)]===_0x5ba2e9(0x12c)&&(!_0x5b83ce['duration']&&_0x17d51f[_0x5ba2e9(0x16d)]({'code':_0x5ba2e9(0x151),'message':_0x5ba2e9(0x13e),'path':['duration']}),!_0x5b83ce[_0x5ba2e9(0x132)]&&_0x17d51f['addIssue']({'code':_0x5ba2e9(0x151),'message':_0x5ba2e9(0x12d),'path':[_0x5ba2e9(0x132)]}));});export const ArrayMatchingSchema=z[a164_0x2505bf(0x12e)]([z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x144)),z[a164_0x2505bf(0x13f)]('all'),z[a164_0x2505bf(0x14c)]({'atLeast':z['number']()}),z[a164_0x2505bf(0x14c)]({'atMost':z['number']()}),z['object']({'exactly':z['number']()})]);export const AggregationDefSchema=z[a164_0x2505bf(0x168)]('type',[z['object']({'type':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x153),a164_0x2505bf(0x177),a164_0x2505bf(0x164),a164_0x2505bf(0x162)]),'column':z[a164_0x2505bf(0x14e)](),'groupingColumns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()}),z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x14a)),'groupingColumns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()}),z['object']({'type':z['literal'](a164_0x2505bf(0x134)),'columns':z[a164_0x2505bf(0x156)](z[a164_0x2505bf(0x14e)]())}),z[a164_0x2505bf(0x14c)]({'type':z['enum']([a164_0x2505bf(0x130),a164_0x2505bf(0x147)]),'column':z[a164_0x2505bf(0x14e)](),'orderColumn':z[a164_0x2505bf(0x14e)](),'groupingColumns':z['array'](z[a164_0x2505bf(0x14e)]())[a164_0x2505bf(0x131)]()})]);export const TimeWindowDefSchema=z[a164_0x2505bf(0x14c)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x2505bf(0x143),a164_0x2505bf(0x14b),a164_0x2505bf(0x12c)]);export const FilterColumnConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x12a)),'column':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional']()})['superRefine']((_0x4e1bf9,_0x31a452)=>{const _0x401a28=a164_0x2505bf,_0x7aa338=_0x4e1bf9[_0x401a28(0x171)][_0x401a28(0x150)];_0x4e1bf9['column']==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x7aa338)&&_0x31a452[_0x401a28(0x16d)]({'code':_0x401a28(0x151),'message':_0x401a28(0x176)+_0x7aa338+'\x27)','path':[_0x401a28(0x171),_0x401a28(0x150)]}):TIMESTAMP_OPERATORS[_0x401a28(0x13d)](_0x7aa338)&&_0x31a452[_0x401a28(0x16d)]({'code':_0x401a28(0x151),'message':_0x401a28(0x14f)+_0x7aa338+_0x401a28(0x169),'path':[_0x401a28(0x171),_0x401a28(0x150)]});});export const FilterRuleDefSchema=z['object']({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x13b)),'conditions':z['array'](FilterColumnConditionDefSchema)});function a164_0x3186(_0x498110,_0x548456){_0x498110=_0x498110-0x12a;const _0x57477a=a164_0x5747();let _0x31861b=_0x57477a[_0x498110];return _0x31861b;}export const ValueConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x14c)]({'type':z['literal'](a164_0x2505bf(0x148)),'attribute':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2505bf(0x131)](),'exclude':z[a164_0x2505bf(0x158)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'filter':FilterRuleDefSchema[a164_0x2505bf(0x131)](),'limit':z[a164_0x2505bf(0x170)]()[a164_0x2505bf(0x131)]()}));export const BehaviorConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x146)),'attribute':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x2505bf(0x131)](),'exclude':z['boolean']()[a164_0x2505bf(0x131)](),'aggregation':AggregationDefSchema[a164_0x2505bf(0x131)](),'source':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'filter':FilterRuleDefSchema[a164_0x2505bf(0x131)](),'timeWindow':TimeWindowDefSchema[a164_0x2505bf(0x131)](),'limit':z['number']()[a164_0x2505bf(0x131)]()}));export const ColumnConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x12a)),'column':z[a164_0x2505bf(0x14e)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a164_0x2505bf(0x13b),'Or']),'conditions':z[a164_0x2505bf(0x156)](ConditionDefSchema),'description':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)]()}));export const SegmentRefConditionDefSchema=z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x15a),a164_0x2505bf(0x167)]),'segment':z['string']()[a164_0x2505bf(0x154)](0x1,a164_0x2505bf(0x179))});export const ConditionDefSchema=z[a164_0x2505bf(0x173)](()=>z[a164_0x2505bf(0x12e)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a164_0x2505bf(0x14c)]({'type':z[a164_0x2505bf(0x163)](['And','Or']),'conditions':z[a164_0x2505bf(0x156)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentDefSchema=z['object']({'type':z[a164_0x2505bf(0x13f)](a164_0x2505bf(0x138))[a164_0x2505bf(0x131)](),'name':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x154)](0x1,a164_0x2505bf(0x140)),'description':z[a164_0x2505bf(0x14e)]()['optional'](),'folder':z[a164_0x2505bf(0x14e)]()[a164_0x2505bf(0x131)](),'rule':RuleDefSchema[a164_0x2505bf(0x131)](),'kind':z[a164_0x2505bf(0x163)]([a164_0x2505bf(0x149),a164_0x2505bf(0x16a),a164_0x2505bf(0x139)])[a164_0x2505bf(0x131)](),'visible':z['boolean']()[a164_0x2505bf(0x131)](),'activations':z['array'](z['any']())[a164_0x2505bf(0x131)]()});function a164_0x5747(){const _0x2488dd=['Segment\x20name\x20is\x20required','132715DYiaUv','IsNull','TimeWithinPast','any','327426MQYiTy','Behavior','Last','Value','batch','Count','TimeWithinNext','object','410100gwReyT','string','Operator\x20\x27','type','custom','week','Sum','min','\x27\x20requires\x20a\x20value','array','967098mPPnGj','boolean','unit','include','EndWith','LessEqual','value','hour','minute','Equal','Between','Average','enum','Max','max','\x27\x20requires\x20a\x20time\x20unit','exclude','discriminatedUnion','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','realtime','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','916600SAXHnP','addIssue','MISSING_BETWEEN_BOUNDS','Contain','number','operator','year','lazy','record','Greater','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Min','21OdrhfK','Segment\x20reference\x20must\x20not\x20be\x20empty','Column','1121210EswUUH','TimeRange','TimeRange\x20operator\x20requires\x20\x27from\x27','union','superRefine','First','optional','from','74480VRKezD','CountDistinct','GreaterEqual','day','StartWith','segment','funnel_stage','Less','And','Regexp','has','TimeRange\x20operator\x20requires\x20\x27duration\x27','literal'];a164_0x5747=function(){return _0x2488dd;};return a164_0x5747();}const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x373ae2=a164_0x3add;function a164_0x3647(){const _0x2428ff=['TimeRange\x20operator\x20requires\x20\x27duration\x27','6652WaHySv','Regexp','from','minute','Max','Segment\x20name\x20is\x20required','include','MISSING_BETWEEN_BOUNDS','operator','has','LessEqual','value','Min','EndWith','number','duration','lazy','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Last','TimeRange','addIssue','realtime','Column','TimeWithinPast','second','CountDistinct','Count','union','2991816KcAEIQ','record','250NGvUbU','literal','StartWith','unit','2611oMhtiM','max','TimeWithinNext','batch','string','min','1828719XcvuUN','5694500ZXbhzQ','object','Greater','enum','GreaterEqual','hour','superRefine','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','Behavior','First','column','Less','4AtYKwZ','optional','week','And','Between','Equal','313401nUUNqt','all','7385180JFIoVo','Contain','exclude','timestamp','\x27\x20requires\x20a\x20value','boolean','7206KaSDlT','TimeRange\x20operator\x20requires\x20\x27from\x27','9rLzPHc','Average','Operator\x20\x27','Sum','custom','type','array','discriminatedUnion','Value','funnel_stage'];a164_0x3647=function(){return _0x2428ff;};return a164_0x3647();}(function(_0x46c50e,_0x2c6645){const _0x973909=a164_0x3add,_0x3deb4d=_0x46c50e();while(!![]){try{const _0x1907b0=parseInt(_0x973909(0xdb))/0x1*(parseInt(_0x973909(0xd5))/0x2)+-parseInt(_0x973909(0xc8))/0x3+parseInt(_0x973909(0xf0))/0x4*(-parseInt(_0x973909(0x10e))/0x5)+-parseInt(_0x973909(0xe3))/0x6*(parseInt(_0x973909(0x112))/0x7)+-parseInt(_0x973909(0x10c))/0x8*(parseInt(_0x973909(0xe5))/0x9)+parseInt(_0x973909(0xc9))/0xa+parseInt(_0x973909(0xdd))/0xb;if(_0x1907b0===_0x2c6645)break;else _0x3deb4d['push'](_0x3deb4d['shift']());}catch(_0x383416){_0x3deb4d['push'](_0x3deb4d['shift']());}}}(a164_0x3647,0x562bf));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x373ae2(0xcc)](['Equal',a164_0x373ae2(0xcb),'Less',a164_0x373ae2(0xcd),a164_0x373ae2(0xfa),'In',a164_0x373ae2(0xd9),a164_0x373ae2(0xf1),'IsNull',a164_0x373ae2(0x107),'TimeWithinNext',a164_0x373ae2(0xde),a164_0x373ae2(0x110),a164_0x373ae2(0xfd),a164_0x373ae2(0x103)]);export const TimeUnitSchema=z[a164_0x373ae2(0xcc)]([a164_0x373ae2(0x108),a164_0x373ae2(0xf3),a164_0x373ae2(0xce),'day',a164_0x373ae2(0xd7),'month','year']);export const AggregationTypeSchema=z[a164_0x373ae2(0xcc)]([a164_0x373ae2(0x10a),'Sum',a164_0x373ae2(0xe6),a164_0x373ae2(0xfc),a164_0x373ae2(0xf4),a164_0x373ae2(0x109),a164_0x373ae2(0xd2),'Last']);const TemporalValueSchema=z[a164_0x373ae2(0x10b)]([z[a164_0x373ae2(0xca)]({'timestamp':z['string']()}),z[a164_0x373ae2(0xca)]({'last':z[a164_0x373ae2(0x10b)]([z[a164_0x373ae2(0xfe)](),z[a164_0x373ae2(0x10d)](z['string'](),z[a164_0x373ae2(0xfe)]())]),'unit':z['string']()})]),OperatorValueSchema=z[a164_0x373ae2(0x10b)]([z[a164_0x373ae2(0x116)](),z[a164_0x373ae2(0xfe)](),z[a164_0x373ae2(0xe2)](),TemporalValueSchema,z[a164_0x373ae2(0xeb)](z['union']([z[a164_0x373ae2(0x116)](),z[a164_0x373ae2(0xfe)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x373ae2(0xda),'Greater',a164_0x373ae2(0xcd),a164_0x373ae2(0xd4),'LessEqual','In',a164_0x373ae2(0xde),a164_0x373ae2(0x110),'EndWith',a164_0x373ae2(0xf1),a164_0x373ae2(0x107),a164_0x373ae2(0x114)]),OPERATORS_REQUIRING_UNIT=new Set(['TimeWithinPast','TimeWithinNext']);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z['boolean']()[a164_0x373ae2(0xd6)](),'value':OperatorValueSchema[a164_0x373ae2(0xd6)](),'min':z[a164_0x373ae2(0x10b)]([z[a164_0x373ae2(0xfe)](),z['string'](),TemporalValueSchema])[a164_0x373ae2(0xd6)](),'max':z[a164_0x373ae2(0x10b)]([z[a164_0x373ae2(0xfe)](),z['string'](),TemporalValueSchema])[a164_0x373ae2(0xd6)](),'unit':TimeUnitSchema[a164_0x373ae2(0xd6)](),'duration':z['object']({'day':z[a164_0x373ae2(0xfe)]()['optional'](),'week':z['number']()['optional'](),'month':z['number']()[a164_0x373ae2(0xd6)](),'year':z['number']()[a164_0x373ae2(0xd6)](),'hour':z[a164_0x373ae2(0xfe)]()[a164_0x373ae2(0xd6)](),'minute':z['number']()['optional'](),'second':z[a164_0x373ae2(0xfe)]()[a164_0x373ae2(0xd6)]()})['optional'](),'from':z[a164_0x373ae2(0xca)]({'last':z[a164_0x373ae2(0x10b)]([z[a164_0x373ae2(0xfe)](),z[a164_0x373ae2(0x116)]()]),'unit':TimeUnitSchema})[a164_0x373ae2(0xd6)](),'reverse':z['boolean']()[a164_0x373ae2(0xd6)]()})[a164_0x373ae2(0xcf)]((_0x18e5b5,_0xb16dbe)=>{const _0x1ae304=a164_0x373ae2;OPERATORS_REQUIRING_VALUE[_0x1ae304(0xf9)](_0x18e5b5['type'])&&(_0x18e5b5[_0x1ae304(0xfb)]===undefined||_0x18e5b5['value']===null)&&_0xb16dbe[_0x1ae304(0x104)]({'code':'custom','message':'Operator\x20\x27'+_0x18e5b5[_0x1ae304(0xea)]+_0x1ae304(0xe1),'path':['value']}),_0x18e5b5['type']===_0x1ae304(0xd9)&&_0x18e5b5[_0x1ae304(0xc7)]===undefined&&_0x18e5b5[_0x1ae304(0x113)]===undefined&&_0xb16dbe['addIssue']({'code':_0x1ae304(0xe9),'message':_0x1ae304(0xd0),'params':{'validationCode':_0x1ae304(0xf7)}}),OPERATORS_REQUIRING_UNIT['has'](_0x18e5b5[_0x1ae304(0xea)])&&_0x18e5b5[_0x1ae304(0xfb)]!==undefined&&!_0x18e5b5[_0x1ae304(0x111)]&&_0xb16dbe[_0x1ae304(0x104)]({'code':_0x1ae304(0xe9),'message':'Operator\x20\x27'+_0x18e5b5[_0x1ae304(0xea)]+'\x27\x20requires\x20a\x20time\x20unit','path':[_0x1ae304(0x111)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x18e5b5[_0x1ae304(0xea)]===_0x1ae304(0x103)&&(!_0x18e5b5['duration']&&_0xb16dbe['addIssue']({'code':_0x1ae304(0xe9),'message':_0x1ae304(0xef),'path':[_0x1ae304(0xff)]}),!_0x18e5b5[_0x1ae304(0xf2)]&&_0xb16dbe[_0x1ae304(0x104)]({'code':_0x1ae304(0xe9),'message':_0x1ae304(0xe4),'path':[_0x1ae304(0xf2)]}));});export const ArrayMatchingSchema=z[a164_0x373ae2(0x10b)]([z['literal']('any'),z[a164_0x373ae2(0x10f)](a164_0x373ae2(0xdc)),z[a164_0x373ae2(0xca)]({'atLeast':z['number']()}),z[a164_0x373ae2(0xca)]({'atMost':z['number']()}),z[a164_0x373ae2(0xca)]({'exactly':z[a164_0x373ae2(0xfe)]()})]);export const AggregationDefSchema=z[a164_0x373ae2(0xec)]('type',[z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0xcc)]([a164_0x373ae2(0xe8),'Min',a164_0x373ae2(0xf4),a164_0x373ae2(0xe6)]),'column':z['string'](),'groupingColumns':z[a164_0x373ae2(0xeb)](z[a164_0x373ae2(0x116)]())[a164_0x373ae2(0xd6)]()}),z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0x10f)]('Count'),'groupingColumns':z[a164_0x373ae2(0xeb)](z[a164_0x373ae2(0x116)]())[a164_0x373ae2(0xd6)]()}),z['object']({'type':z[a164_0x373ae2(0x10f)](a164_0x373ae2(0x109)),'columns':z['array'](z[a164_0x373ae2(0x116)]())}),z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0xcc)]([a164_0x373ae2(0xd2),a164_0x373ae2(0x102)]),'column':z[a164_0x373ae2(0x116)](),'orderColumn':z[a164_0x373ae2(0x116)](),'groupingColumns':z['array'](z[a164_0x373ae2(0x116)]())[a164_0x373ae2(0xd6)]()})]);export const TimeWindowDefSchema=z[a164_0x373ae2(0xca)]({'duration':z['number'](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set(['TimeWithinPast',a164_0x373ae2(0x114),a164_0x373ae2(0x103)]);export const FilterColumnConditionDefSchema=z['object']({'type':z[a164_0x373ae2(0x10f)](a164_0x373ae2(0x106)),'column':z[a164_0x373ae2(0x116)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x373ae2(0xd6)]()})['superRefine']((_0x606967,_0xb96e35)=>{const _0x2bbc90=a164_0x373ae2,_0x48f0f0=_0x606967['operator'][_0x2bbc90(0xea)];_0x606967[_0x2bbc90(0xd3)]===_0x2bbc90(0xe0)?!TIMESTAMP_OPERATORS[_0x2bbc90(0xf9)](_0x48f0f0)&&_0xb96e35[_0x2bbc90(0x104)]({'code':_0x2bbc90(0xe9),'message':_0x2bbc90(0x101)+_0x48f0f0+'\x27)','path':[_0x2bbc90(0xf8),'type']}):TIMESTAMP_OPERATORS[_0x2bbc90(0xf9)](_0x48f0f0)&&_0xb96e35[_0x2bbc90(0x104)]({'code':_0x2bbc90(0xe9),'message':_0x2bbc90(0xe7)+_0x48f0f0+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0x2bbc90(0xf8),_0x2bbc90(0xea)]});});export const FilterRuleDefSchema=z['object']({'type':z[a164_0x373ae2(0x10f)]('And'),'conditions':z['array'](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x373ae2(0x100)](()=>z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0x10f)](a164_0x373ae2(0xed)),'attribute':z[a164_0x373ae2(0x116)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x373ae2(0xd6)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema[a164_0x373ae2(0xd6)](),'source':z['string']()[a164_0x373ae2(0xd6)](),'filter':FilterRuleDefSchema[a164_0x373ae2(0xd6)](),'limit':z[a164_0x373ae2(0xfe)]()[a164_0x373ae2(0xd6)]()}));export const BehaviorConditionDefSchema=z[a164_0x373ae2(0x100)](()=>z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0x10f)](a164_0x373ae2(0xd1)),'attribute':z[a164_0x373ae2(0x116)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x373ae2(0xd6)](),'exclude':z['boolean']()['optional'](),'aggregation':AggregationDefSchema[a164_0x373ae2(0xd6)](),'source':z[a164_0x373ae2(0x116)]()[a164_0x373ae2(0xd6)](),'filter':FilterRuleDefSchema[a164_0x373ae2(0xd6)](),'timeWindow':TimeWindowDefSchema['optional'](),'limit':z[a164_0x373ae2(0xfe)]()[a164_0x373ae2(0xd6)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a164_0x373ae2(0x10f)]('Column'),'column':z[a164_0x373ae2(0x116)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a164_0x373ae2(0x100)](()=>z[a164_0x373ae2(0xca)]({'type':z['enum']([a164_0x373ae2(0xd8),'Or']),'conditions':z[a164_0x373ae2(0xeb)](ConditionDefSchema),'description':z[a164_0x373ae2(0x116)]()[a164_0x373ae2(0xd6)]()}));function a164_0x3add(_0x46cf7b,_0x15b43b){_0x46cf7b=_0x46cf7b-0xc7;const _0x364734=a164_0x3647();let _0x3add3b=_0x364734[_0x46cf7b];return _0x3add3b;}export const SegmentRefConditionDefSchema=z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0xcc)]([a164_0x373ae2(0xf6),a164_0x373ae2(0xdf)]),'segment':z[a164_0x373ae2(0x116)]()['min'](0x1,'Segment\x20reference\x20must\x20not\x20be\x20empty')});export const ConditionDefSchema=z[a164_0x373ae2(0x100)](()=>z[a164_0x373ae2(0x10b)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a164_0x373ae2(0x100)](()=>z[a164_0x373ae2(0xca)]({'type':z[a164_0x373ae2(0xcc)](['And','Or']),'conditions':z[a164_0x373ae2(0xeb)](ConditionDefSchema),'description':z['string']()['optional']()}));export const SegmentDefSchema=z[a164_0x373ae2(0xca)]({'type':z['literal']('segment')['optional'](),'name':z['string']()['min'](0x1,a164_0x373ae2(0xf5)),'description':z[a164_0x373ae2(0x116)]()[a164_0x373ae2(0xd6)](),'folder':z[a164_0x373ae2(0x116)]()[a164_0x373ae2(0xd6)](),'rule':RuleDefSchema[a164_0x373ae2(0xd6)](),'kind':z[a164_0x373ae2(0xcc)]([a164_0x373ae2(0x115),a164_0x373ae2(0x105),a164_0x373ae2(0xee)])[a164_0x373ae2(0xd6)](),'visible':z[a164_0x373ae2(0xe2)]()['optional'](),'activations':z['array'](z['any']())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a165_0x74466c=a165_0x2794;(function(_0x59bbd1,_0x51bb44){const _0xd464e1=a165_0x2794,_0xb6d3a5=_0x59bbd1();while(!![]){try{const _0x531d71=-parseInt(_0xd464e1(0x1c3))/0x1*(-parseInt(_0xd464e1(0x1d4))/0x2)+-parseInt(_0xd464e1(0x1cb))/0x3*(-parseInt(_0xd464e1(0x1d1))/0x4)+parseInt(_0xd464e1(0x1c0))/0x5+parseInt(_0xd464e1(0x1d7))/0x6+-parseInt(_0xd464e1(0x1d3))/0x7*(-parseInt(_0xd464e1(0x1c9))/0x8)+parseInt(_0xd464e1(0x1ce))/0x9+-parseInt(_0xd464e1(0x1d0))/0xa;if(_0x531d71===_0x51bb44)break;else _0xb6d3a5['push'](_0xb6d3a5['shift']());}catch(_0x1d3027){_0xb6d3a5['push'](_0xb6d3a5['shift']());}}}(a165_0x5d87,0x4c495));function a165_0x5d87(){const _0x4c8ecb=['not\x20a\x20','result','1975565jslTgy','message','campaign','227LqQmoI','basename','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','warnings','YAML\x20parse\x20error:\x20','error','1744uzjAtT','template','12GEePvO','campaign_type','skipped','53163icXpTS','toJSON','17614960cFzgjE','606748qIoefx','parseDocument','13447yVGdrM','1222NJHYQN','has','email','3052332UCtYWH','map','type','journey','length','segment','push','object','YAML_PARSE_ERROR','filterType','utf-8'];a165_0x5d87=function(){return _0x4c8ecb;};return a165_0x5d87();}import{readFileSync}from'fs';import*as a165_0x2f0873 from'path';function a165_0x2794(_0x107a79,_0xae753f){_0x107a79=_0x107a79-0x1bb;const _0x5d8726=a165_0x5d87();let _0x2794fa=_0x5d8726[_0x107a79];return _0x2794fa;}import*as a165_0x5eb3eb 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([a165_0x74466c(0x1d6),a165_0x74466c(0x1dd)]);export function isJourneyDef(_0xff1eaa){const _0x5d699f=a165_0x74466c;return typeof _0xff1eaa===_0x5d699f(0x1de)&&_0xff1eaa!==null&&_0x5d699f(0x1d9)in _0xff1eaa&&_0xff1eaa[_0x5d699f(0x1d9)]===_0x5d699f(0x1da);}export function isCampaignDef(_0x4ed6b5){const _0x27e87a=a165_0x74466c;if(typeof _0x4ed6b5!=='object'||_0x4ed6b5===null)return![];const _0xbe6756=_0x4ed6b5,_0x3d4d1f=VALID_CAMPAIGN_TYPES[_0x27e87a(0x1d5)](_0xbe6756[_0x27e87a(0x1cc)]);if(_0xbe6756[_0x27e87a(0x1d9)]===_0x27e87a(0x1c2)&&_0x3d4d1f)return!![];if(_0x3d4d1f&&!_0xbe6756[_0x27e87a(0x1d9)])return!![];return![];}export function isTemplateDef(_0x206991){const _0x292a5e=a165_0x74466c;return typeof _0x206991==='object'&&_0x206991!==null&&_0x292a5e(0x1d9)in _0x206991&&_0x206991[_0x292a5e(0x1d9)]===_0x292a5e(0x1ca);}export function isValidationResult(_0x48b115){const _0x24908b=a165_0x74466c;return!(_0x24908b(0x1cd)in _0x48b115);}export function createParseErrorResult(_0x9d2f5f,_0x55e460,_0x145aab,_0x270bf5,_0x52633f='segment'){const _0x3d2f43=a165_0x74466c;return{'filePath':_0x9d2f5f,'relativePath':_0x55e460,'source':_0x145aab,'result':{'valid':![],'errors':[{'level':_0x3d2f43(0x1c8),'path':'','code':_0x3d2f43(0x1bb),'message':_0x270bf5}],'warnings':[]},'fileType':_0x52633f};}export function validateYamlFile(_0x17fe22,_0x6b8eff,_0x53a905={}){const _0x1ac9d3=a165_0x74466c,_0x50b928=a165_0x2f0873['relative'](_0x6b8eff,_0x17fe22)||a165_0x2f0873[_0x1ac9d3(0x1c4)](_0x17fe22);try{const _0x3c80d6=readFileSync(_0x17fe22,_0x1ac9d3(0x1bd)),_0x48b809=a165_0x5eb3eb[_0x1ac9d3(0x1d2)](_0x3c80d6),_0x25b5f2=_0x48b809[_0x1ac9d3(0x1cf)]();if(!_0x25b5f2)return createParseErrorResult(_0x17fe22,_0x50b928,_0x3c80d6,_0x1ac9d3(0x1c5));let _0x1dd1a3;if(isJourneyDef(_0x25b5f2))_0x1dd1a3=_0x1ac9d3(0x1da);else{if(isCampaignDef(_0x25b5f2))_0x1dd1a3='campaign';else isTemplateDef(_0x25b5f2)?_0x1dd1a3='template':_0x1dd1a3=_0x1ac9d3(0x1dc);}if(_0x53a905[_0x1ac9d3(0x1bc)]&&_0x1dd1a3!==_0x53a905[_0x1ac9d3(0x1bc)])return{'filePath':_0x17fe22,'relativePath':_0x50b928,'skipped':!![],'reason':_0x1ac9d3(0x1be)+_0x53a905[_0x1ac9d3(0x1bc)]};const _0x1056e5={'source':_0x3c80d6,'document':_0x48b809};let _0x173cca;if(_0x1dd1a3===_0x1ac9d3(0x1da))_0x173cca=validateJourneyDef(_0x25b5f2,_0x1056e5);else{if(_0x1dd1a3===_0x1ac9d3(0x1c2))_0x173cca=validateCampaignDef(_0x25b5f2,_0x1056e5);else _0x1dd1a3===_0x1ac9d3(0x1ca)?_0x173cca=validateTemplateDef(_0x25b5f2,_0x1056e5):_0x173cca=validateSegmentDef(_0x25b5f2,_0x1056e5);}return{'filePath':_0x17fe22,'relativePath':_0x50b928,'source':_0x3c80d6,'result':_0x173cca,'fileType':_0x1dd1a3};}catch(_0x5c3d05){const _0x106a3f=_0x5c3d05 instanceof Error?_0x5c3d05[_0x1ac9d3(0x1c1)]:String(_0x5c3d05);return createParseErrorResult(_0x17fe22,_0x50b928,'',_0x1ac9d3(0x1c7)+_0x106a3f);}}export function validateYamlFiles(_0x5449eb,_0x1f8bea,_0x4f2b49={}){const _0x1244b6=a165_0x74466c;return _0x5449eb[_0x1244b6(0x1d8)](_0x58f2d1=>validateYamlFile(_0x58f2d1,_0x1f8bea,_0x4f2b49));}export function calculateSummary(_0x31eebd){const _0x4ca496=a165_0x74466c;let _0x3b3815=0x0,_0x2c6253=0x0,_0x563449=0x0,_0x44a1cf=0x0;for(const _0x15be1c of _0x31eebd){if(!isValidationResult(_0x15be1c)){_0x44a1cf++;continue;}_0x15be1c[_0x4ca496(0x1bf)]['valid']?_0x3b3815++:_0x2c6253++,_0x563449+=_0x15be1c['result'][_0x4ca496(0x1c6)][_0x4ca496(0x1db)];}return{'validCount':_0x3b3815,'invalidCount':_0x2c6253,'warningCount':_0x563449,'skippedCount':_0x44a1cf,'hasErrors':_0x2c6253>0x0};}
1
+ const a165_0x25f2eb=a165_0x5e66;(function(_0x43789f,_0x5550f6){const _0x227d04=a165_0x5e66,_0x3caa70=_0x43789f();while(!![]){try{const _0x480c6c=-parseInt(_0x227d04(0x1bf))/0x1*(-parseInt(_0x227d04(0x1cf))/0x2)+parseInt(_0x227d04(0x1cd))/0x3+-parseInt(_0x227d04(0x1c3))/0x4*(parseInt(_0x227d04(0x1c0))/0x5)+-parseInt(_0x227d04(0x1d2))/0x6+-parseInt(_0x227d04(0x1c8))/0x7+parseInt(_0x227d04(0x1ca))/0x8*(parseInt(_0x227d04(0x1c5))/0x9)+parseInt(_0x227d04(0x1cb))/0xa;if(_0x480c6c===_0x5550f6)break;else _0x3caa70['push'](_0x3caa70['shift']());}catch(_0x3575da){_0x3caa70['push'](_0x3caa70['shift']());}}}(a165_0x57b2,0x41506));import{readFileSync}from'fs';import*as a165_0x16db5a from'path';function a165_0x5e66(_0x3c6191,_0x229cdb){_0x3c6191=_0x3c6191-0x1b8;const _0x57b20a=a165_0x57b2();let _0x5e6601=_0x57b20a[_0x3c6191];return _0x5e6601;}import*as a165_0x542335 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',a165_0x25f2eb(0x1bc)]);export function isJourneyDef(_0x1e3958){const _0xc55fdc=a165_0x25f2eb;return typeof _0x1e3958===_0xc55fdc(0x1b8)&&_0x1e3958!==null&&_0xc55fdc(0x1c1)in _0x1e3958&&_0x1e3958[_0xc55fdc(0x1c1)]===_0xc55fdc(0x1cc);}export function isCampaignDef(_0x1b5a71){const _0x3e7c05=a165_0x25f2eb;if(typeof _0x1b5a71!=='object'||_0x1b5a71===null)return![];const _0x58937f=_0x1b5a71,_0x590aa7=VALID_CAMPAIGN_TYPES['has'](_0x58937f[_0x3e7c05(0x1be)]);if(_0x58937f['type']===_0x3e7c05(0x1d1)&&_0x590aa7)return!![];if(_0x590aa7&&!_0x58937f[_0x3e7c05(0x1c1)])return!![];return![];}export function isTemplateDef(_0x317fc1){const _0x3295bc=a165_0x25f2eb;return typeof _0x317fc1==='object'&&_0x317fc1!==null&&'type'in _0x317fc1&&_0x317fc1[_0x3295bc(0x1c1)]==='template';}export function isValidationResult(_0x52c87e){const _0xe7bc09=a165_0x25f2eb;return!(_0xe7bc09(0x1c2)in _0x52c87e);}export function createParseErrorResult(_0x3f8670,_0x1ae370,_0x53dc45,_0x4e83b5,_0x519b9d=a165_0x25f2eb(0x1bd)){const _0x9b0d1a=a165_0x25f2eb;return{'filePath':_0x3f8670,'relativePath':_0x1ae370,'source':_0x53dc45,'result':{'valid':![],'errors':[{'level':_0x9b0d1a(0x1c9),'path':'','code':_0x9b0d1a(0x1c4),'message':_0x4e83b5}],'warnings':[]},'fileType':_0x519b9d};}export function validateYamlFile(_0x2ba55d,_0x2bf7e1,_0x517f76={}){const _0x46dc72=a165_0x25f2eb,_0x624bc4=a165_0x16db5a[_0x46dc72(0x1d0)](_0x2bf7e1,_0x2ba55d)||a165_0x16db5a[_0x46dc72(0x1d7)](_0x2ba55d);try{const _0x17de06=readFileSync(_0x2ba55d,_0x46dc72(0x1d4)),_0x42bbe8=a165_0x542335[_0x46dc72(0x1d6)](_0x17de06),_0x12f34d=_0x42bbe8[_0x46dc72(0x1c7)]();if(!_0x12f34d)return createParseErrorResult(_0x2ba55d,_0x624bc4,_0x17de06,_0x46dc72(0x1c6));let _0x23786c;if(isJourneyDef(_0x12f34d))_0x23786c=_0x46dc72(0x1cc);else{if(isCampaignDef(_0x12f34d))_0x23786c=_0x46dc72(0x1d1);else isTemplateDef(_0x12f34d)?_0x23786c=_0x46dc72(0x1d5):_0x23786c=_0x46dc72(0x1bd);}if(_0x517f76['filterType']&&_0x23786c!==_0x517f76[_0x46dc72(0x1ba)])return{'filePath':_0x2ba55d,'relativePath':_0x624bc4,'skipped':!![],'reason':'not\x20a\x20'+_0x517f76['filterType']};const _0x115ce8={'source':_0x17de06,'document':_0x42bbe8};let _0x3336f0;if(_0x23786c===_0x46dc72(0x1cc))_0x3336f0=validateJourneyDef(_0x12f34d,_0x115ce8);else{if(_0x23786c===_0x46dc72(0x1d1))_0x3336f0=validateCampaignDef(_0x12f34d,_0x115ce8);else _0x23786c===_0x46dc72(0x1d5)?_0x3336f0=validateTemplateDef(_0x12f34d,_0x115ce8):_0x3336f0=validateSegmentDef(_0x12f34d,_0x115ce8);}return{'filePath':_0x2ba55d,'relativePath':_0x624bc4,'source':_0x17de06,'result':_0x3336f0,'fileType':_0x23786c};}catch(_0x5fe46){const _0x1a19c1=_0x5fe46 instanceof Error?_0x5fe46['message']:String(_0x5fe46);return createParseErrorResult(_0x2ba55d,_0x624bc4,'',_0x46dc72(0x1ce)+_0x1a19c1);}}export function validateYamlFiles(_0x46566f,_0x1e52f3,_0x4207b4={}){return _0x46566f['map'](_0x44ba76=>validateYamlFile(_0x44ba76,_0x1e52f3,_0x4207b4));}export function calculateSummary(_0x112670){const _0x56ac16=a165_0x25f2eb;let _0x592d27=0x0,_0xbd1b91=0x0,_0x417eb0=0x0,_0x262e24=0x0;for(const _0x495111 of _0x112670){if(!isValidationResult(_0x495111)){_0x262e24++;continue;}_0x495111[_0x56ac16(0x1d3)][_0x56ac16(0x1bb)]?_0x592d27++:_0xbd1b91++,_0x417eb0+=_0x495111[_0x56ac16(0x1d3)][_0x56ac16(0x1d8)][_0x56ac16(0x1b9)];}return{'validCount':_0x592d27,'invalidCount':_0xbd1b91,'warningCount':_0x417eb0,'skippedCount':_0x262e24,'hasErrors':_0xbd1b91>0x0};}function a165_0x57b2(){const _0x7ddb19=['1137087sTixlU','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','toJSON','958643kqdzVY','error','8gLxrVc','7197650aEfapY','journey','334950DtiLPU','YAML\x20parse\x20error:\x20','994UgDICt','relative','campaign','1791690VfJUae','result','utf-8','template','parseDocument','basename','warnings','object','length','filterType','valid','push','segment','campaign_type','266rCGbux','17585vGvFPz','type','skipped','440vyptgP','YAML_PARSE_ERROR'];a165_0x57b2=function(){return _0x7ddb19;};return a165_0x57b2();}
@@ -1 +1 @@
1
- (function(_0x54173d,_0x20a655){const _0x2aa72e=a166_0x38a8,_0x21367d=_0x54173d();while(!![]){try{const _0x43e580=-parseInt(_0x2aa72e(0x1f1))/0x1+parseInt(_0x2aa72e(0x209))/0x2*(-parseInt(_0x2aa72e(0x215))/0x3)+parseInt(_0x2aa72e(0x20d))/0x4+parseInt(_0x2aa72e(0x1ef))/0x5+parseInt(_0x2aa72e(0x1fe))/0x6+parseInt(_0x2aa72e(0x20e))/0x7*(parseInt(_0x2aa72e(0x1ee))/0x8)+-parseInt(_0x2aa72e(0x203))/0x9;if(_0x43e580===_0x20a655)break;else _0x21367d['push'](_0x21367d['shift']());}catch(_0x3e77a4){_0x21367d['push'](_0x21367d['shift']());}}}(a166_0x4106,0xd1ee9));import*as a166_0x4abb15 from'yaml';function a166_0x38a8(_0x48c1ee,_0x3c093a){_0x48c1ee=_0x48c1ee-0x1ec;const _0x410672=a166_0x4106();let _0x38a818=_0x410672[_0x48c1ee];return _0x38a818;}import a166_0x335614 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x4cd911,_0x5188c9,_0x4dba60){const _0x25ce49=a166_0x38a8;if(!_0x4cd911||!_0x5188c9)return undefined;try{let _0x557419=_0x4cd911['getIn'](_0x4dba60,!![]),_0x5dac5e=[..._0x4dba60];while((!_0x557419||typeof _0x557419!==_0x25ce49(0x20f)||!(_0x25ce49(0x201)in _0x557419)||!_0x557419['range'])&&_0x5dac5e[_0x25ce49(0x205)]>0x0){_0x5dac5e[_0x25ce49(0x212)](),_0x557419=_0x5dac5e[_0x25ce49(0x205)]>0x0?_0x4cd911['getIn'](_0x5dac5e,!![]):_0x4cd911[_0x25ce49(0x206)];}if(!_0x557419||typeof _0x557419!==_0x25ce49(0x20f)||!(_0x25ce49(0x201)in _0x557419)||!_0x557419[_0x25ce49(0x201)])return undefined;const [_0x34fdfb]=_0x557419['range'];return offsetToLocation(_0x5188c9,_0x34fdfb);}catch{return undefined;}}function a166_0x4106(){const _0x279d5e=['push','4QFqqdr','success','cyan','errors','5093328cPojrW','203JytXSP','object','column','message','pop','match','YAML\x20validation\x20error\x20at\x20\x27','459231KLTkSl','flatMap','location','level','133576IevmzW','513105LOplsm','padStart','541292qFdZkC','invalid_union','Invalid\x20YAML:\x20expected\x20an\x20object','path','yellow','code','data','\x20|\x20','split','error','map','YAML\x20validation\x20error:\x20','red','7748082xmoNxH','line','number','range','dim','12997674yNFDCj','repeat','length','contents','join'];a166_0x4106=function(){return _0x279d5e;};return a166_0x4106();}export function offsetToLocation(_0x4fa688,_0x2e0cbb){let _0x3c7912=0x1,_0x2f5283=0x1;for(let _0x10f808=0x0;_0x10f808<_0x2e0cbb&&_0x10f808<_0x4fa688['length'];_0x10f808++){_0x4fa688[_0x10f808]==='\x0a'?(_0x3c7912++,_0x2f5283=0x1):_0x2f5283++;}return{'line':_0x3c7912,'column':_0x2f5283,'offset':_0x2e0cbb};}export function pathToArray(_0x49d9dc){const _0x360ec7=a166_0x38a8;if(!_0x49d9dc)return[];return _0x49d9dc['split']('.')[_0x360ec7(0x216)](_0x447cfc=>{const _0x38c87f=_0x360ec7,_0xdf02f7=_0x447cfc[_0x38c87f(0x213)](/^(\w+)\[(\d+)\]$/);if(_0xdf02f7)return[_0xdf02f7[0x1],parseInt(_0xdf02f7[0x2],0xa)];return[_0x447cfc];});}export function formatZodPath(_0x780a7d){const _0x4db987=a166_0x38a8;let _0x4656f5='';for(const _0x2310de of _0x780a7d){if(typeof _0x2310de===_0x4db987(0x200))_0x4656f5+='['+_0x2310de+']';else{const _0x4d0b70=String(_0x2310de);_0x4656f5+=_0x4656f5?'.'+_0x4d0b70:_0x4d0b70;}}return _0x4656f5;}export function flattenZodIssues(_0x4fec4e){const _0x1b2518=a166_0x38a8,_0x411a65=[];for(const _0x1b2b01 of _0x4fec4e){if(_0x1b2b01[_0x1b2518(0x1f6)]===_0x1b2518(0x1f2)&&_0x1b2518(0x20c)in _0x1b2b01){const _0x4ddd50=_0x1b2b01[_0x1b2518(0x20c)];let _0x5586fa=_0x4ddd50[0x0]||[];for(const _0x41c097 of _0x4ddd50){_0x41c097['length']<_0x5586fa['length']&&(_0x5586fa=_0x41c097);}const _0x578589=_0x5586fa[_0x1b2518(0x1fb)](_0xe8ff45=>({..._0xe8ff45,'path':[..._0x1b2b01[_0x1b2518(0x1f4)],..._0xe8ff45['path']]}));_0x411a65[_0x1b2518(0x208)](...flattenZodIssues(_0x578589));}else _0x411a65['push'](_0x1b2b01);}return _0x411a65;}export function safeParseYaml(_0x3cb8da,_0x2f8e4a){const _0x2b3c85=a166_0x38a8,_0x1156ce=a166_0x4abb15['parse'](_0x3cb8da);if(!_0x1156ce||typeof _0x1156ce!==_0x2b3c85(0x20f))throw new Error(_0x2b3c85(0x1f3));const _0x6a6a7d=_0x2f8e4a['safeParse'](_0x1156ce);if(!_0x6a6a7d[_0x2b3c85(0x20a)]){const _0x3fe0f4=_0x6a6a7d['error']['issues'][0x0],_0x246bb5=formatZodPath(_0x3fe0f4[_0x2b3c85(0x1f4)]);throw new Error(_0x246bb5?_0x2b3c85(0x214)+_0x246bb5+'\x27:\x20'+_0x3fe0f4[_0x2b3c85(0x211)]:_0x2b3c85(0x1fc)+_0x3fe0f4['message']);}return _0x6a6a7d[_0x2b3c85(0x1f7)];}export function formatIssueWithContext(_0x3d840a,_0x55689f,_0x459231){const _0x358ec9=a166_0x38a8,_0x45b971=[],_0x10e565=_0x3d840a['level']===_0x358ec9(0x1fa),_0x59ffe3=_0x10e565?a166_0x335614['red']:a166_0x335614[_0x358ec9(0x1f5)],_0x3ff372=_0x10e565?a166_0x335614[_0x358ec9(0x1fd)]:a166_0x335614[_0x358ec9(0x1f5)],_0x1e4db2=_0x459231?a166_0x335614[_0x358ec9(0x20b)](_0x459231+':'):'';if(_0x3d840a[_0x358ec9(0x1ec)]){const _0x2ee194=a166_0x335614['cyan'](_0x3d840a['location'][_0x358ec9(0x1ff)]+':'+_0x3d840a[_0x358ec9(0x1ec)][_0x358ec9(0x210)]);_0x45b971[_0x358ec9(0x208)](''+_0x1e4db2+_0x2ee194+':\x20'+_0x59ffe3(_0x3d840a[_0x358ec9(0x1ed)])+'\x20'+_0x3ff372('['+_0x3d840a[_0x358ec9(0x1f6)]+']'));}else _0x45b971[_0x358ec9(0x208)](''+_0x1e4db2+a166_0x335614[_0x358ec9(0x202)](_0x3d840a[_0x358ec9(0x1f4)])+':\x20'+_0x59ffe3(_0x3d840a[_0x358ec9(0x1ed)])+'\x20'+_0x3ff372('['+_0x3d840a[_0x358ec9(0x1f6)]+']'));_0x45b971[_0x358ec9(0x208)](_0x3d840a[_0x358ec9(0x211)]);if(_0x3d840a[_0x358ec9(0x1ec)]&&_0x55689f){const _0x2fe82e=_0x55689f[_0x358ec9(0x1f9)]('\x0a'),{line:_0x35f063,column:_0x15f32a}=_0x3d840a[_0x358ec9(0x1ec)],_0x45f24a=Math['max'](0x1,_0x35f063-0x1),_0x32f127=Math['min'](_0x2fe82e[_0x358ec9(0x205)],_0x35f063+0x1);_0x45b971[_0x358ec9(0x208)]('');for(let _0x344fda=_0x45f24a;_0x344fda<=_0x32f127;_0x344fda++){const _0x555277=_0x2fe82e[_0x344fda-0x1]||'',_0x2b6351=a166_0x335614[_0x358ec9(0x202)](_0x344fda['toString']()[_0x358ec9(0x1f0)](0x4)),_0x175d0a=a166_0x335614['dim'](_0x358ec9(0x1f8));if(_0x344fda===_0x35f063){_0x45b971[_0x358ec9(0x208)]('\x20\x20'+_0x2b6351+_0x175d0a+_0x59ffe3(_0x555277));const _0x5e7bb5='\x20'[_0x358ec9(0x204)](0x4+0x3+_0x15f32a-0x1);_0x45b971[_0x358ec9(0x208)]('\x20\x20'+_0x5e7bb5+_0x59ffe3('^'));}else _0x45b971['push']('\x20\x20'+_0x2b6351+_0x175d0a+a166_0x335614[_0x358ec9(0x202)](_0x555277));}}return _0x45b971[_0x358ec9(0x207)]('\x0a');}export function formatValidationResult(_0x1d1c73,_0x9d4cf5,_0x2e760f){const _0x259070=a166_0x38a8,_0x259535=[];for(const _0x12302a of _0x1d1c73['errors']){_0x259535['push'](formatIssueWithContext(_0x12302a,_0x9d4cf5,_0x2e760f)),_0x259535[_0x259070(0x208)]('');}for(const _0x2f5656 of _0x1d1c73['warnings']){_0x259535[_0x259070(0x208)](formatIssueWithContext(_0x2f5656,_0x9d4cf5,_0x2e760f)),_0x259535[_0x259070(0x208)]('');}return _0x259535[_0x259070(0x207)]('\x0a');}
1
+ (function(_0x487ed6,_0x567e01){const _0x507a1f=a166_0x3afe,_0x4627c2=_0x487ed6();while(!![]){try{const _0x1e4281=parseInt(_0x507a1f(0x183))/0x1*(-parseInt(_0x507a1f(0x17a))/0x2)+parseInt(_0x507a1f(0x16e))/0x3*(parseInt(_0x507a1f(0x17b))/0x4)+parseInt(_0x507a1f(0x15f))/0x5*(parseInt(_0x507a1f(0x164))/0x6)+parseInt(_0x507a1f(0x165))/0x7+-parseInt(_0x507a1f(0x185))/0x8*(-parseInt(_0x507a1f(0x189))/0x9)+parseInt(_0x507a1f(0x167))/0xa+-parseInt(_0x507a1f(0x172))/0xb;if(_0x1e4281===_0x567e01)break;else _0x4627c2['push'](_0x4627c2['shift']());}catch(_0x48401b){_0x4627c2['push'](_0x4627c2['shift']());}}}(a166_0x3281,0xd7aaa));import*as a166_0x2c1a7a from'yaml';import a166_0x221e2e from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x117f6e,_0x4caf6b,_0x47e8ba){const _0x39eab4=a166_0x3afe;if(!_0x117f6e||!_0x4caf6b)return undefined;try{let _0x5d6f5d=_0x117f6e[_0x39eab4(0x168)](_0x47e8ba,!![]),_0x4ff550=[..._0x47e8ba];while((!_0x5d6f5d||typeof _0x5d6f5d!=='object'||!(_0x39eab4(0x186)in _0x5d6f5d)||!_0x5d6f5d[_0x39eab4(0x186)])&&_0x4ff550[_0x39eab4(0x16a)]>0x0){_0x4ff550['pop'](),_0x5d6f5d=_0x4ff550[_0x39eab4(0x16a)]>0x0?_0x117f6e[_0x39eab4(0x168)](_0x4ff550,!![]):_0x117f6e[_0x39eab4(0x187)];}if(!_0x5d6f5d||typeof _0x5d6f5d!=='object'||!(_0x39eab4(0x186)in _0x5d6f5d)||!_0x5d6f5d[_0x39eab4(0x186)])return undefined;const [_0x483197]=_0x5d6f5d['range'];return offsetToLocation(_0x4caf6b,_0x483197);}catch{return undefined;}}export function offsetToLocation(_0xfbb3c8,_0x2a819d){let _0x5dd117=0x1,_0x503e4e=0x1;for(let _0x42b7de=0x0;_0x42b7de<_0x2a819d&&_0x42b7de<_0xfbb3c8['length'];_0x42b7de++){_0xfbb3c8[_0x42b7de]==='\x0a'?(_0x5dd117++,_0x503e4e=0x1):_0x503e4e++;}return{'line':_0x5dd117,'column':_0x503e4e,'offset':_0x2a819d};}export function pathToArray(_0x5951f7){const _0x15d9bf=a166_0x3afe;if(!_0x5951f7)return[];return _0x5951f7['split']('.')[_0x15d9bf(0x176)](_0x1a6a77=>{const _0x2d6d29=_0x1a6a77['match'](/^(\w+)\[(\d+)\]$/);if(_0x2d6d29)return[_0x2d6d29[0x1],parseInt(_0x2d6d29[0x2],0xa)];return[_0x1a6a77];});}export function formatZodPath(_0x553d75){const _0x4a1d5d=a166_0x3afe;let _0x46e651='';for(const _0x390a50 of _0x553d75){if(typeof _0x390a50===_0x4a1d5d(0x17c))_0x46e651+='['+_0x390a50+']';else{const _0x29f89c=String(_0x390a50);_0x46e651+=_0x46e651?'.'+_0x29f89c:_0x29f89c;}}return _0x46e651;}export function flattenZodIssues(_0x457d73){const _0xdbbe6f=a166_0x3afe,_0x457bd7=[];for(const _0x4b9290 of _0x457d73){if(_0x4b9290[_0xdbbe6f(0x171)]==='invalid_union'&&_0xdbbe6f(0x170)in _0x4b9290){const _0x2e5919=_0x4b9290[_0xdbbe6f(0x170)];let _0x149a7a=_0x2e5919[0x0]||[];for(const _0x3056e0 of _0x2e5919){_0x3056e0[_0xdbbe6f(0x16a)]<_0x149a7a[_0xdbbe6f(0x16a)]&&(_0x149a7a=_0x3056e0);}const _0x3a0a7f=_0x149a7a[_0xdbbe6f(0x15d)](_0x5eff35=>({..._0x5eff35,'path':[..._0x4b9290[_0xdbbe6f(0x16f)],..._0x5eff35[_0xdbbe6f(0x16f)]]}));_0x457bd7[_0xdbbe6f(0x180)](...flattenZodIssues(_0x3a0a7f));}else _0x457bd7[_0xdbbe6f(0x180)](_0x4b9290);}return _0x457bd7;}export function safeParseYaml(_0xcb6f5,_0x53e6fe){const _0x1546be=a166_0x3afe,_0x1e315f=a166_0x2c1a7a[_0x1546be(0x169)](_0xcb6f5);if(!_0x1e315f||typeof _0x1e315f!==_0x1546be(0x179))throw new Error(_0x1546be(0x175));const _0x6042e1=_0x53e6fe['safeParse'](_0x1e315f);if(!_0x6042e1[_0x1546be(0x161)]){const _0x5c6aca=_0x6042e1[_0x1546be(0x16c)][_0x1546be(0x16b)][0x0],_0x48595b=formatZodPath(_0x5c6aca[_0x1546be(0x16f)]);throw new Error(_0x48595b?_0x1546be(0x174)+_0x48595b+_0x1546be(0x173)+_0x5c6aca[_0x1546be(0x182)]:'YAML\x20validation\x20error:\x20'+_0x5c6aca[_0x1546be(0x182)]);}return _0x6042e1[_0x1546be(0x160)];}export function formatIssueWithContext(_0x56fae0,_0x2fb327,_0x9710c5){const _0x3bffec=a166_0x3afe,_0x4ee797=[],_0x5b7533=_0x56fae0[_0x3bffec(0x16d)]===_0x3bffec(0x16c),_0x3ac503=_0x5b7533?a166_0x221e2e['red']:a166_0x221e2e['yellow'],_0x2ba81a=_0x5b7533?a166_0x221e2e[_0x3bffec(0x17d)]:a166_0x221e2e[_0x3bffec(0x15c)],_0x28f8dd=_0x9710c5?a166_0x221e2e['cyan'](_0x9710c5+':'):'';if(_0x56fae0['location']){const _0x19240d=a166_0x221e2e[_0x3bffec(0x163)](_0x56fae0['location']['line']+':'+_0x56fae0[_0x3bffec(0x15e)][_0x3bffec(0x178)]);_0x4ee797[_0x3bffec(0x180)](''+_0x28f8dd+_0x19240d+':\x20'+_0x3ac503(_0x56fae0[_0x3bffec(0x16d)])+'\x20'+_0x2ba81a('['+_0x56fae0[_0x3bffec(0x171)]+']'));}else _0x4ee797[_0x3bffec(0x180)](''+_0x28f8dd+a166_0x221e2e[_0x3bffec(0x17e)](_0x56fae0[_0x3bffec(0x16f)])+':\x20'+_0x3ac503(_0x56fae0['level'])+'\x20'+_0x2ba81a('['+_0x56fae0['code']+']'));_0x4ee797[_0x3bffec(0x180)](_0x56fae0[_0x3bffec(0x182)]);if(_0x56fae0[_0x3bffec(0x15e)]&&_0x2fb327){const _0x387171=_0x2fb327[_0x3bffec(0x181)]('\x0a'),{line:_0xafd412,column:_0x16284d}=_0x56fae0[_0x3bffec(0x15e)],_0x3cf109=Math['max'](0x1,_0xafd412-0x1),_0xf10894=Math[_0x3bffec(0x166)](_0x387171['length'],_0xafd412+0x1);_0x4ee797[_0x3bffec(0x180)]('');for(let _0x57b57c=_0x3cf109;_0x57b57c<=_0xf10894;_0x57b57c++){const _0x5a9e70=_0x387171[_0x57b57c-0x1]||'',_0x4da60b=a166_0x221e2e[_0x3bffec(0x17e)](_0x57b57c[_0x3bffec(0x17f)]()[_0x3bffec(0x184)](0x4)),_0x1fa347=a166_0x221e2e['dim'](_0x3bffec(0x177));if(_0x57b57c===_0xafd412){_0x4ee797['push']('\x20\x20'+_0x4da60b+_0x1fa347+_0x3ac503(_0x5a9e70));const _0x4d0953='\x20'['repeat'](0x4+0x3+_0x16284d-0x1);_0x4ee797['push']('\x20\x20'+_0x4d0953+_0x3ac503('^'));}else _0x4ee797[_0x3bffec(0x180)]('\x20\x20'+_0x4da60b+_0x1fa347+a166_0x221e2e[_0x3bffec(0x17e)](_0x5a9e70));}}return _0x4ee797[_0x3bffec(0x162)]('\x0a');}function a166_0x3281(){const _0x414aeb=['errors','code','29757662qwWzDZ','\x27:\x20','YAML\x20validation\x20error\x20at\x20\x27','Invalid\x20YAML:\x20expected\x20an\x20object','flatMap','\x20|\x20','column','object','526iKDSOo','40ckaReu','number','red','dim','toString','push','split','message','3147PibJLu','padStart','16pGKMIy','range','contents','warnings','3294585BJZYme','yellow','map','location','18845gnqkSw','data','success','join','cyan','438oYfNDE','2712640jULyEo','min','14450260Yajsds','getIn','parse','length','issues','error','level','472938MyIKgW','path'];a166_0x3281=function(){return _0x414aeb;};return a166_0x3281();}function a166_0x3afe(_0x37c32c,_0x383095){_0x37c32c=_0x37c32c-0x15c;const _0x3281db=a166_0x3281();let _0x3afe1d=_0x3281db[_0x37c32c];return _0x3afe1d;}export function formatValidationResult(_0x54ee8e,_0x62f03a,_0x2f6cfe){const _0x3b3c32=a166_0x3afe,_0x2e1e13=[];for(const _0x565881 of _0x54ee8e[_0x3b3c32(0x170)]){_0x2e1e13['push'](formatIssueWithContext(_0x565881,_0x62f03a,_0x2f6cfe)),_0x2e1e13[_0x3b3c32(0x180)]('');}for(const _0x498bff of _0x54ee8e[_0x3b3c32(0x188)]){_0x2e1e13[_0x3b3c32(0x180)](formatIssueWithContext(_0x498bff,_0x62f03a,_0x2f6cfe)),_0x2e1e13[_0x3b3c32(0x180)]('');}return _0x2e1e13['join']('\x0a');}