@treasuredata/tdx 2026.3.39 → 2026.3.40

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(_0x1dd1ae,_0x2b2b59){const _0x56aba7=a153_0x1471,_0x31b4fe=_0x1dd1ae();while(!![]){try{const _0x47bce8=-parseInt(_0x56aba7(0x7a))/0x1+-parseInt(_0x56aba7(0x6f))/0x2*(parseInt(_0x56aba7(0x71))/0x3)+-parseInt(_0x56aba7(0x70))/0x4+parseInt(_0x56aba7(0x77))/0x5*(-parseInt(_0x56aba7(0x6d))/0x6)+-parseInt(_0x56aba7(0x6e))/0x7*(parseInt(_0x56aba7(0x79))/0x8)+-parseInt(_0x56aba7(0x73))/0x9*(-parseInt(_0x56aba7(0x75))/0xa)+parseInt(_0x56aba7(0x6a))/0xb;if(_0x47bce8===_0x2b2b59)break;else _0x31b4fe['push'](_0x31b4fe['shift']());}catch(_0x5466f4){_0x31b4fe['push'](_0x31b4fe['shift']());}}}(a153_0xe1ba,0x3c050));function a153_0x1471(_0x3b5118,_0x56353b){_0x3b5118=_0x3b5118-0x6a;const _0xe1ba3f=a153_0xe1ba();let _0x1471a2=_0xe1ba3f[_0x3b5118];return _0x1471a2;}function a153_0xe1ba(){const _0x897d5f=['add','2910hKjJrT','182924kpKfJx','757272YhiDNa','252596YWDyUe','3bzymWG','has','245205rZrvRk','set','70bqnwuI','name','1485QXrUkt','get','64FZEyRY','236446ojFTaM','11951027NwCWzi','parentFolderId'];a153_0xe1ba=function(){return _0x897d5f;};return a153_0xe1ba();}export function buildFolderIdToPathMap(_0x1afea5){const _0x5ef855=a153_0x1471,_0x3198ec=new Map(),_0x3b40f0=new Map();for(const _0x1668ea of _0x1afea5){_0x3b40f0['set'](_0x1668ea['id'],_0x1668ea);}const _0x6d30e8=new Set();for(const _0x319f86 of _0x1afea5){!_0x319f86[_0x5ef855(0x6b)]&&_0x6d30e8[_0x5ef855(0x6c)](_0x319f86['id']);}function _0x4246fc(_0x7a1ab3){const _0x7d0bfe=_0x5ef855;if(_0x3198ec[_0x7d0bfe(0x72)](_0x7a1ab3['id']))return _0x3198ec[_0x7d0bfe(0x78)](_0x7a1ab3['id']);if(_0x6d30e8[_0x7d0bfe(0x72)](_0x7a1ab3['id']))return _0x3198ec[_0x7d0bfe(0x74)](_0x7a1ab3['id'],''),'';if(_0x7a1ab3['parentFolderId']){const _0x30d6d0=_0x3b40f0[_0x7d0bfe(0x78)](_0x7a1ab3[_0x7d0bfe(0x6b)]);if(_0x30d6d0){const _0x1e7530=_0x4246fc(_0x30d6d0),_0x1a063b=_0x1e7530?_0x1e7530+'/'+_0x7a1ab3[_0x7d0bfe(0x76)]:_0x7a1ab3[_0x7d0bfe(0x76)];return _0x3198ec[_0x7d0bfe(0x74)](_0x7a1ab3['id'],_0x1a063b),_0x1a063b;}}const _0x105b84=_0x7a1ab3[_0x7d0bfe(0x76)];return _0x3198ec[_0x7d0bfe(0x74)](_0x7a1ab3['id'],_0x105b84),_0x105b84;}for(const _0x4270f3 of _0x1afea5){_0x4246fc(_0x4270f3);}return _0x3198ec;}export function buildFolderPathToIdMap(_0x5d8e3c){const _0x207645=a153_0x1471,_0x5723dc=new Map(),_0x110c48=new Map();for(const _0x5d6f6f of _0x5d8e3c){_0x110c48[_0x207645(0x74)](_0x5d6f6f['id'],_0x5d6f6f);}const _0x40c045=new Set();for(const _0x2d53ab of _0x5d8e3c){!_0x2d53ab[_0x207645(0x6b)]&&_0x40c045[_0x207645(0x6c)](_0x2d53ab['id']);}function _0x111d86(_0x24d2d1){const _0xce7a30=_0x207645;if(_0x40c045[_0xce7a30(0x72)](_0x24d2d1['id']))return'';if(_0x24d2d1['parentFolderId']){const _0x401c3f=_0x110c48[_0xce7a30(0x78)](_0x24d2d1[_0xce7a30(0x6b)]);if(_0x401c3f){const _0x40c337=_0x111d86(_0x401c3f);return _0x40c337?_0x40c337+'/'+_0x24d2d1[_0xce7a30(0x76)]:_0x24d2d1[_0xce7a30(0x76)];}}return _0x24d2d1[_0xce7a30(0x76)];}for(const _0x33ecea of _0x5d8e3c){const _0xd84cfb=_0x111d86(_0x33ecea);_0x5723dc[_0x207645(0x74)](_0xd84cfb,_0x33ecea['id']);}return _0x5723dc;}export function buildFolderMaps(_0x43406a){const _0x65c75e=a153_0x1471,_0x19fe26=buildFolderIdToPathMap(_0x43406a),_0x5975b9=new Map();for(const [_0xd05ec5,_0x42e3a9]of _0x19fe26){_0x5975b9[_0x65c75e(0x74)](_0x42e3a9,_0xd05ec5);}return{'idToPath':_0x19fe26,'pathToId':_0x5975b9};}export function getFolderPath(_0xd49072,_0x181356){const _0x35a21f=a153_0x1471;if(!_0xd49072)return'';return _0x181356[_0x35a21f(0x78)](_0xd49072)??'';}
1
+ (function(_0x4092f8,_0x20dcb0){const _0x32a46b=a153_0x647d,_0x299a96=_0x4092f8();while(!![]){try{const _0x4e082e=-parseInt(_0x32a46b(0x110))/0x1*(parseInt(_0x32a46b(0x10e))/0x2)+-parseInt(_0x32a46b(0x101))/0x3+-parseInt(_0x32a46b(0x104))/0x4+parseInt(_0x32a46b(0x108))/0x5*(parseInt(_0x32a46b(0x107))/0x6)+parseInt(_0x32a46b(0x102))/0x7+-parseInt(_0x32a46b(0x10b))/0x8*(parseInt(_0x32a46b(0x10a))/0x9)+parseInt(_0x32a46b(0x103))/0xa;if(_0x4e082e===_0x20dcb0)break;else _0x299a96['push'](_0x299a96['shift']());}catch(_0x578004){_0x299a96['push'](_0x299a96['shift']());}}}(a153_0x3d00,0x9b25b));function a153_0x647d(_0x4a2168,_0x4c66ef){_0x4a2168=_0x4a2168-0x101;const _0x3d00de=a153_0x3d00();let _0x647d8=_0x3d00de[_0x4a2168];return _0x647d8;}export function buildFolderIdToPathMap(_0x8471b7){const _0x420ab0=a153_0x647d,_0x19f2dc=new Map(),_0x1374e8=new Map();for(const _0x147be5 of _0x8471b7){_0x1374e8[_0x420ab0(0x10c)](_0x147be5['id'],_0x147be5);}const _0x2af252=new Set();for(const _0x4736a3 of _0x8471b7){!_0x4736a3[_0x420ab0(0x106)]&&_0x2af252[_0x420ab0(0x10d)](_0x4736a3['id']);}function _0x59322e(_0x9ac3cc){const _0x422df4=_0x420ab0;if(_0x19f2dc[_0x422df4(0x109)](_0x9ac3cc['id']))return _0x19f2dc[_0x422df4(0x105)](_0x9ac3cc['id']);if(_0x2af252[_0x422df4(0x109)](_0x9ac3cc['id']))return _0x19f2dc[_0x422df4(0x10c)](_0x9ac3cc['id'],''),'';if(_0x9ac3cc[_0x422df4(0x106)]){const _0x516f40=_0x1374e8[_0x422df4(0x105)](_0x9ac3cc[_0x422df4(0x106)]);if(_0x516f40){const _0x1feb42=_0x59322e(_0x516f40),_0x402d3a=_0x1feb42?_0x1feb42+'/'+_0x9ac3cc[_0x422df4(0x10f)]:_0x9ac3cc[_0x422df4(0x10f)];return _0x19f2dc[_0x422df4(0x10c)](_0x9ac3cc['id'],_0x402d3a),_0x402d3a;}}const _0x1e3bc7=_0x9ac3cc[_0x422df4(0x10f)];return _0x19f2dc[_0x422df4(0x10c)](_0x9ac3cc['id'],_0x1e3bc7),_0x1e3bc7;}for(const _0x50f7a0 of _0x8471b7){_0x59322e(_0x50f7a0);}return _0x19f2dc;}export function buildFolderPathToIdMap(_0x11b64f){const _0x5b53ef=a153_0x647d,_0x1b5562=new Map(),_0x54278d=new Map();for(const _0x299258 of _0x11b64f){_0x54278d[_0x5b53ef(0x10c)](_0x299258['id'],_0x299258);}const _0x68d016=new Set();for(const _0x5e1891 of _0x11b64f){!_0x5e1891[_0x5b53ef(0x106)]&&_0x68d016[_0x5b53ef(0x10d)](_0x5e1891['id']);}function _0x15fb13(_0x241494){if(_0x68d016['has'](_0x241494['id']))return'';if(_0x241494['parentFolderId']){const _0x17a17a=_0x54278d['get'](_0x241494['parentFolderId']);if(_0x17a17a){const _0x102a85=_0x15fb13(_0x17a17a);return _0x102a85?_0x102a85+'/'+_0x241494['name']:_0x241494['name'];}}return _0x241494['name'];}for(const _0x3bb5cd of _0x11b64f){const _0x2c3eb5=_0x15fb13(_0x3bb5cd);_0x1b5562[_0x5b53ef(0x10c)](_0x2c3eb5,_0x3bb5cd['id']);}return _0x1b5562;}export function buildFolderMaps(_0x2f9e6d){const _0x416a7c=a153_0x647d,_0x30b6aa=buildFolderIdToPathMap(_0x2f9e6d),_0x35dfdf=new Map();for(const [_0x7ac10e,_0x35b274]of _0x30b6aa){_0x35dfdf[_0x416a7c(0x10c)](_0x35b274,_0x7ac10e);}return{'idToPath':_0x30b6aa,'pathToId':_0x35dfdf};}function a153_0x3d00(){const _0x33a4a9=['23889270XtMuaw','2381644ymdrlP','get','parentFolderId','24IdgeNB','1299525OUUSRY','has','417879vYQSjq','80WBdjUF','set','add','382VEyLUj','name','6101DehvdR','3555918oBLRgl','4320778LlLtUO'];a153_0x3d00=function(){return _0x33a4a9;};return a153_0x3d00();}export function getFolderPath(_0xee07b2,_0x25687b){if(!_0xee07b2)return'';return _0x25687b['get'](_0xee07b2)??'';}
@@ -1 +1 @@
1
- (function(_0x3cd180,_0x1b2d8d){const _0x386fb9=a154_0x5ec5,_0x190fe2=_0x3cd180();while(!![]){try{const _0x3091df=-parseInt(_0x386fb9(0x13c))/0x1*(-parseInt(_0x386fb9(0x127))/0x2)+parseInt(_0x386fb9(0x141))/0x3+parseInt(_0x386fb9(0x12e))/0x4*(-parseInt(_0x386fb9(0x14e))/0x5)+parseInt(_0x386fb9(0x156))/0x6+parseInt(_0x386fb9(0x134))/0x7+parseInt(_0x386fb9(0x128))/0x8+-parseInt(_0x386fb9(0x131))/0x9*(parseInt(_0x386fb9(0x12c))/0xa);if(_0x3091df===_0x1b2d8d)break;else _0x190fe2['push'](_0x190fe2['shift']());}catch(_0x41ea73){_0x190fe2['push'](_0x190fe2['shift']());}}}(a154_0x4e85,0x9b281));import a154_0x303a64 from'path';import{parse as a154_0x1b7ed9}from'yaml';function a154_0x5ec5(_0x59c4be,_0xec0e10){_0x59c4be=_0x59c4be-0x125;const _0x4e85e0=a154_0x4e85();let _0x5ec515=_0x4e85e0[_0x59c4be];return _0x5ec515;}import{nodeFileSystem}from'../io/node-filesystem.js';export function parsePath(_0xdc0110){const _0x25a7cd=a154_0x5ec5;if(!_0xdc0110||_0xdc0110[_0x25a7cd(0x13b)]()==='')throw new Error(_0x25a7cd(0x153));const _0x3fd7e5=_0xdc0110[_0x25a7cd(0x13b)]();if(_0x3fd7e5==='/')return{'segments':[],'isAbsolute':!![],'raw':_0xdc0110};const _0x349baf=_0x3fd7e5[_0x25a7cd(0x152)]('/')?_0x3fd7e5[_0x25a7cd(0x138)](0x1):_0x3fd7e5,_0x28cd59=_0x349baf[_0x25a7cd(0x135)]('/')[_0x25a7cd(0x14a)](_0x1176a3=>_0x1176a3!=='');if(_0x28cd59[_0x25a7cd(0x146)]===0x0)throw new Error(_0x25a7cd(0x12d));const _0x18d8a7=_0x3fd7e5['startsWith']('/')||!isRelativePathSegment(_0x28cd59[0x0]);for(const _0x16b97b of _0x28cd59){validatePathSegment(_0x16b97b);}return{'segments':_0x28cd59,'isAbsolute':_0x18d8a7,'raw':_0xdc0110};}function isRelativePathSegment(_0xfff452){return _0xfff452==='.'||_0xfff452==='..';}function validatePathSegment(_0x241724){const _0x48cab1=a154_0x5ec5;if(_0x241724==='')throw new Error(_0x48cab1(0x12f));if(_0x241724==='.'||_0x241724==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x241724))throw new Error(_0x48cab1(0x12a)+_0x241724);if(_0x241724!==_0x241724[_0x48cab1(0x13b)]()){}}export function validatePath(_0x3a0fdb){const _0x10eb6a=a154_0x5ec5;if(_0x3a0fdb['segments'][_0x10eb6a(0x146)]===0x0&&!_0x3a0fdb['isAbsolute'])throw new Error(_0x10eb6a(0x14f));if(_0x3a0fdb['isAbsolute']){if(_0x3a0fdb[_0x10eb6a(0x126)][0x0]==='..')throw new Error(_0x10eb6a(0x150));let _0x3fc020=0x0;for(const _0x3175b6 of _0x3a0fdb[_0x10eb6a(0x126)]){if(_0x3175b6==='..'){if(_0x3fc020===0x0)throw new Error(_0x10eb6a(0x137));_0x3fc020--;}else _0x3175b6!=='.'&&_0x3fc020++;}}}export function joinPaths(_0x3b5fc1,_0x1b4c8d){const _0x97f922=a154_0x5ec5;if(!_0x3b5fc1||_0x3b5fc1==='/')return _0x1b4c8d;if(!_0x1b4c8d||_0x1b4c8d==='.')return _0x3b5fc1;if(_0x1b4c8d[_0x97f922(0x152)]('/'))return _0x1b4c8d;const _0x52f750=parsePath(_0x3b5fc1),_0x27c201=parsePath(_0x1b4c8d),_0x5611e3=[..._0x52f750[_0x97f922(0x126)]];for(const _0x22c354 of _0x27c201[_0x97f922(0x126)]){if(_0x22c354==='.')continue;else{if(_0x22c354==='..'){if(_0x5611e3['length']===0x0)throw new Error(_0x97f922(0x145));_0x5611e3[_0x97f922(0x140)]();}else _0x5611e3['push'](_0x22c354);}}const _0x41adb5=_0x5611e3['join']('/');return _0x52f750['raw'][_0x97f922(0x152)]('/')?'/'+_0x41adb5:_0x41adb5;}export function normalizePath(_0x42d22c){const _0x2b505a=a154_0x5ec5,_0x11f45d=parsePath(_0x42d22c),_0x5dedee=[];for(const _0x503a0f of _0x11f45d[_0x2b505a(0x126)]){if(_0x503a0f==='.')continue;else{if(_0x503a0f==='..'){if(_0x5dedee['length']===0x0){if(_0x11f45d[_0x2b505a(0x14b)])throw new Error(_0x2b505a(0x145));_0x5dedee['push']('..');}else _0x5dedee[_0x5dedee[_0x2b505a(0x146)]-0x1]==='..'?_0x5dedee[_0x2b505a(0x151)]('..'):_0x5dedee[_0x2b505a(0x140)]();}else _0x5dedee[_0x2b505a(0x151)](_0x503a0f);}}if(_0x5dedee[_0x2b505a(0x146)]===0x0)return _0x11f45d[_0x2b505a(0x14b)]?'/':'.';const _0x171808=_0x5dedee['join']('/');return _0x11f45d['raw']['startsWith']('/')?'/'+_0x171808:_0x171808;}export function getParentPath(_0x31ff17){const _0xd00a95=a154_0x5ec5,_0x15a6d8=parsePath(_0x31ff17);if(_0x15a6d8[_0xd00a95(0x126)]['length']<=0x1)return'/';const _0x577bf9=_0x15a6d8[_0xd00a95(0x126)][_0xd00a95(0x125)](0x0,-0x1)[_0xd00a95(0x12b)]('/');return _0x15a6d8['raw'][_0xd00a95(0x152)]('/')?'/'+_0x577bf9:_0x577bf9;}function a154_0x4e85(){const _0x1a142d=['replace','trim','5pXtCyo','No\x20tdx.json\x20found\x20for\x20file:\x20','File\x20not\x20found:\x20','type','pop','1866393pnxatu','journey','resolve','parse','Cannot\x20navigate\x20above\x20root','length','dirname','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','tdx.json','filter','isAbsolute','segment','Cannot\x20split\x20empty\x20path','1280540AJHUwo','Relative\x20path\x20cannot\x20be\x20empty','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','push','startsWith','Path\x20cannot\x20be\x20empty','Hint:\x20Run\x20`tdx\x20sg\x20pull\x20\x22Parent\x20Segment\x20Name\x22`\x20first\x20to\x20create\x20a\x20project\x20directory,\x20then\x20work\x20within\x20that\x20directory.','.yml','5242248RtUEYQ','readFile','slice','segments','438862fDycUw','1591480GLLYfu','root','Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20','join','4932470KtwEYt','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','4gQNqUk','Path\x20segment\x20cannot\x20be\x20empty','relative','36XipeJn','endsWith','exists','508816xErrXO','split','.yaml','Path\x20attempts\x20to\x20navigate\x20above\x20root','substring','name'];a154_0x4e85=function(){return _0x1a142d;};return a154_0x4e85();}export function getBaseName(_0x244eb9){const _0x1023b6=a154_0x5ec5,_0xb08d57=parsePath(_0x244eb9);return _0xb08d57[_0x1023b6(0x126)][_0xb08d57[_0x1023b6(0x126)][_0x1023b6(0x146)]-0x1]||'';}export function isChildPath(_0x3a9115,_0x166dc9){const _0x8b7967=a154_0x5ec5,_0x429711=parsePath(_0x3a9115),_0x5f1477=parsePath(_0x166dc9);if(_0x429711[_0x8b7967(0x126)][_0x8b7967(0x146)]<=_0x5f1477['segments'][_0x8b7967(0x146)])return![];for(let _0xb10bd2=0x0;_0xb10bd2<_0x5f1477[_0x8b7967(0x126)]['length'];_0xb10bd2++){if(_0x429711[_0x8b7967(0x126)][_0xb10bd2]!==_0x5f1477[_0x8b7967(0x126)][_0xb10bd2])return![];}return!![];}export function splitPath(_0x40cf80){const _0x44f015=a154_0x5ec5,_0x3bf955=parsePath(_0x40cf80);if(_0x3bf955[_0x44f015(0x126)][_0x44f015(0x146)]===0x0)throw new Error(_0x44f015(0x14d));if(_0x3bf955[_0x44f015(0x126)][_0x44f015(0x146)]===0x1)return{'parent':_0x3bf955[_0x44f015(0x126)][0x0]};return{'parent':_0x3bf955[_0x44f015(0x126)][0x0],'child':_0x3bf955[_0x44f015(0x126)]['slice'](0x1)[_0x44f015(0x12b)]('/')};}export function isYamlFilePath(_0x1d0470){const _0xc05d93=a154_0x5ec5;return _0x1d0470['endsWith'](_0xc05d93(0x155))||_0x1d0470[_0xc05d93(0x132)](_0xc05d93(0x136));}export async function resolveYamlFilePath(_0x15b933,_0x5e5c69=nodeFileSystem){const _0x2b6401=a154_0x5ec5,_0x22611e=a154_0x303a64[_0x2b6401(0x143)](_0x15b933);if(!await _0x5e5c69[_0x2b6401(0x133)](_0x22611e))throw new Error(_0x2b6401(0x13e)+_0x15b933);let _0x35c42f=a154_0x303a64[_0x2b6401(0x147)](_0x22611e),_0x3d9eb2=null,_0x14b3d5=null;const _0x50c2aa=a154_0x303a64[_0x2b6401(0x144)](_0x35c42f)[_0x2b6401(0x129)];while(_0x35c42f!==_0x50c2aa){const _0x216217=a154_0x303a64[_0x2b6401(0x12b)](_0x35c42f,_0x2b6401(0x149));if(await _0x5e5c69[_0x2b6401(0x133)](_0x216217)){_0x3d9eb2=_0x216217,_0x14b3d5=_0x35c42f;break;}_0x35c42f=a154_0x303a64['dirname'](_0x35c42f);}if(!_0x3d9eb2||!_0x14b3d5)throw new Error(_0x2b6401(0x13d)+_0x15b933+'\x0a'+_0x2b6401(0x154));const _0x17de7f=await _0x5e5c69[_0x2b6401(0x157)](_0x3d9eb2),_0x5b619e=JSON[_0x2b6401(0x144)](_0x17de7f),_0x3f6314=_0x5b619e['parent_segment'];if(!_0x3f6314)throw new Error('Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field');const _0x404670=await _0x5e5c69[_0x2b6401(0x157)](_0x22611e),_0x48465a=a154_0x1b7ed9(_0x404670),_0x5dbc42=_0x48465a[_0x2b6401(0x139)];if(!_0x5dbc42)throw new Error(_0x2b6401(0x148)+_0x15b933);const _0x3706de=_0x48465a[_0x2b6401(0x13f)]===_0x2b6401(0x142)?_0x2b6401(0x142):_0x2b6401(0x14c),_0xf624c3=a154_0x303a64[_0x2b6401(0x130)](_0x14b3d5,_0x22611e),_0x16b9a8=a154_0x303a64[_0x2b6401(0x147)](_0xf624c3),_0x96ec6d=_0x16b9a8==='.'?'':_0x16b9a8[_0x2b6401(0x13a)](/\\/g,'/'),_0x2a504b=_0x96ec6d?_0x3f6314+'/'+_0x96ec6d+'/'+_0x5dbc42:_0x3f6314+'/'+_0x5dbc42;return{'parentSegment':_0x3f6314,'segmentName':_0x5dbc42,'folderPath':_0x96ec6d,'fullPath':_0x2a504b,'resourceType':_0x3706de,'content':_0x404670};}
1
+ (function(_0x5438cf,_0x54cc3d){const _0x2ee959=a154_0x2e8b,_0x26d1e4=_0x5438cf();while(!![]){try{const _0x74c74e=-parseInt(_0x2ee959(0x146))/0x1+parseInt(_0x2ee959(0x15d))/0x2+parseInt(_0x2ee959(0x15a))/0x3+parseInt(_0x2ee959(0x159))/0x4*(parseInt(_0x2ee959(0x14c))/0x5)+-parseInt(_0x2ee959(0x14d))/0x6+parseInt(_0x2ee959(0x13e))/0x7*(parseInt(_0x2ee959(0x147))/0x8)+parseInt(_0x2ee959(0x164))/0x9*(parseInt(_0x2ee959(0x13a))/0xa);if(_0x74c74e===_0x54cc3d)break;else _0x26d1e4['push'](_0x26d1e4['shift']());}catch(_0x275ce6){_0x26d1e4['push'](_0x26d1e4['shift']());}}}(a154_0x1cdf,0xbda40));function a154_0x1cdf(){const _0xb2a782=['pop','Invalid\x20tdx.json:\x20missing\x20parent_segment\x20field','push','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','40zKmqvU','856968KepHRB','Path\x20segment\x20cannot\x20be\x20empty','segment','1705380CdgFPo','raw','trim','replace','.yml','startsWith','join','2007MGpuMR','slice','Relative\x20path\x20cannot\x20be\x20empty','isAbsolute','length','parse','13540DUiKRs','filter','segments','exists','60116nFLVxf','test','dirname','readFile','Cannot\x20navigate\x20above\x20root','tdx.json','relative','parent_segment','1411005qLnsoo','344KPzsao','Path\x20attempts\x20to\x20navigate\x20above\x20root','Invalid\x20YAML:\x20missing\x20name\x20field\x20in\x20','journey','File\x20not\x20found:\x20','695135ILSUDw','6072414qrrHor','endsWith','resolve','split','type','Path\x20cannot\x20be\x20empty','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','Cannot\x20split\x20empty\x20path'];a154_0x1cdf=function(){return _0xb2a782;};return a154_0x1cdf();}import a154_0x496399 from'path';import{parse as a154_0xfe0204}from'yaml';import{nodeFileSystem}from'../io/node-filesystem.js';export function parsePath(_0x4eb0b6){const _0x21f20a=a154_0x2e8b;if(!_0x4eb0b6||_0x4eb0b6[_0x21f20a(0x15f)]()==='')throw new Error(_0x21f20a(0x152));const _0x33cccb=_0x4eb0b6[_0x21f20a(0x15f)]();if(_0x33cccb==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x4eb0b6};const _0x43c665=_0x33cccb[_0x21f20a(0x162)]('/')?_0x33cccb['substring'](0x1):_0x33cccb,_0x245b70=_0x43c665[_0x21f20a(0x150)]('/')[_0x21f20a(0x13b)](_0x155cb9=>_0x155cb9!=='');if(_0x245b70[_0x21f20a(0x168)]===0x0)throw new Error(_0x21f20a(0x158));const _0x1b0553=_0x33cccb[_0x21f20a(0x162)]('/')||!isRelativePathSegment(_0x245b70[0x0]);for(const _0x162a6f of _0x245b70){validatePathSegment(_0x162a6f);}return{'segments':_0x245b70,'isAbsolute':_0x1b0553,'raw':_0x4eb0b6};}function isRelativePathSegment(_0x2ad8ab){return _0x2ad8ab==='.'||_0x2ad8ab==='..';}function validatePathSegment(_0xad69bc){const _0x1d7786=a154_0x2e8b;if(_0xad69bc==='')throw new Error(_0x1d7786(0x15b));if(_0xad69bc==='.'||_0xad69bc==='..')return;if(/[\x00-\x1F\x7F]/[_0x1d7786(0x13f)](_0xad69bc))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0xad69bc);if(_0xad69bc!==_0xad69bc[_0x1d7786(0x15f)]()){}}export function validatePath(_0x4dacd6){const _0x45b655=a154_0x2e8b;if(_0x4dacd6[_0x45b655(0x13c)][_0x45b655(0x168)]===0x0&&!_0x4dacd6['isAbsolute'])throw new Error(_0x45b655(0x166));if(_0x4dacd6[_0x45b655(0x167)]){if(_0x4dacd6[_0x45b655(0x13c)][0x0]==='..')throw new Error(_0x45b655(0x153));let _0xc8238e=0x0;for(const _0x3902b5 of _0x4dacd6[_0x45b655(0x13c)]){if(_0x3902b5==='..'){if(_0xc8238e===0x0)throw new Error(_0x45b655(0x148));_0xc8238e--;}else _0x3902b5!=='.'&&_0xc8238e++;}}}export function joinPaths(_0xc2e092,_0x3d3077){const _0x58fd2d=a154_0x2e8b;if(!_0xc2e092||_0xc2e092==='/')return _0x3d3077;if(!_0x3d3077||_0x3d3077==='.')return _0xc2e092;if(_0x3d3077[_0x58fd2d(0x162)]('/'))return _0x3d3077;const _0x4db595=parsePath(_0xc2e092),_0x312b9d=parsePath(_0x3d3077),_0x538f53=[..._0x4db595['segments']];for(const _0x46bc45 of _0x312b9d['segments']){if(_0x46bc45==='.')continue;else{if(_0x46bc45==='..'){if(_0x538f53[_0x58fd2d(0x168)]===0x0)throw new Error(_0x58fd2d(0x142));_0x538f53[_0x58fd2d(0x155)]();}else _0x538f53['push'](_0x46bc45);}}const _0x4e8c67=_0x538f53[_0x58fd2d(0x163)]('/');return _0x4db595[_0x58fd2d(0x15e)][_0x58fd2d(0x162)]('/')?'/'+_0x4e8c67:_0x4e8c67;}export function normalizePath(_0x2a9a9a){const _0x159844=a154_0x2e8b,_0x5ecec8=parsePath(_0x2a9a9a),_0x21c715=[];for(const _0x1911ae of _0x5ecec8['segments']){if(_0x1911ae==='.')continue;else{if(_0x1911ae==='..'){if(_0x21c715[_0x159844(0x168)]===0x0){if(_0x5ecec8[_0x159844(0x167)])throw new Error(_0x159844(0x142));_0x21c715[_0x159844(0x157)]('..');}else _0x21c715[_0x21c715[_0x159844(0x168)]-0x1]==='..'?_0x21c715['push']('..'):_0x21c715[_0x159844(0x155)]();}else _0x21c715[_0x159844(0x157)](_0x1911ae);}}if(_0x21c715[_0x159844(0x168)]===0x0)return _0x5ecec8[_0x159844(0x167)]?'/':'.';const _0x186ed9=_0x21c715['join']('/');return _0x5ecec8['raw'][_0x159844(0x162)]('/')?'/'+_0x186ed9:_0x186ed9;}export function getParentPath(_0x9823f4){const _0x249174=a154_0x2e8b,_0x4984ed=parsePath(_0x9823f4);if(_0x4984ed[_0x249174(0x13c)][_0x249174(0x168)]<=0x1)return'/';const _0x105fde=_0x4984ed[_0x249174(0x13c)][_0x249174(0x165)](0x0,-0x1)[_0x249174(0x163)]('/');return _0x4984ed[_0x249174(0x15e)][_0x249174(0x162)]('/')?'/'+_0x105fde:_0x105fde;}function a154_0x2e8b(_0x57f973,_0x2703db){_0x57f973=_0x57f973-0x139;const _0x1cdf55=a154_0x1cdf();let _0x2e8be9=_0x1cdf55[_0x57f973];return _0x2e8be9;}export function getBaseName(_0x575b2b){const _0x7c17e3=a154_0x2e8b,_0x59cffe=parsePath(_0x575b2b);return _0x59cffe[_0x7c17e3(0x13c)][_0x59cffe[_0x7c17e3(0x13c)][_0x7c17e3(0x168)]-0x1]||'';}export function isChildPath(_0x232d71,_0x11adc4){const _0x4ba72d=a154_0x2e8b,_0x5f1f94=parsePath(_0x232d71),_0x11bb55=parsePath(_0x11adc4);if(_0x5f1f94[_0x4ba72d(0x13c)][_0x4ba72d(0x168)]<=_0x11bb55['segments'][_0x4ba72d(0x168)])return![];for(let _0x50dfa2=0x0;_0x50dfa2<_0x11bb55[_0x4ba72d(0x13c)][_0x4ba72d(0x168)];_0x50dfa2++){if(_0x5f1f94[_0x4ba72d(0x13c)][_0x50dfa2]!==_0x11bb55['segments'][_0x50dfa2])return![];}return!![];}export function splitPath(_0x362595){const _0x28ec7f=a154_0x2e8b,_0x4d7272=parsePath(_0x362595);if(_0x4d7272[_0x28ec7f(0x13c)]['length']===0x0)throw new Error(_0x28ec7f(0x154));if(_0x4d7272[_0x28ec7f(0x13c)]['length']===0x1)return{'parent':_0x4d7272[_0x28ec7f(0x13c)][0x0]};return{'parent':_0x4d7272[_0x28ec7f(0x13c)][0x0],'child':_0x4d7272[_0x28ec7f(0x13c)][_0x28ec7f(0x165)](0x1)[_0x28ec7f(0x163)]('/')};}export function isYamlFilePath(_0x59cc6a){const _0x24ac88=a154_0x2e8b;return _0x59cc6a[_0x24ac88(0x14e)](_0x24ac88(0x161))||_0x59cc6a[_0x24ac88(0x14e)]('.yaml');}export async function resolveYamlFilePath(_0x526281,_0x5081dd=nodeFileSystem){const _0x1b8b17=a154_0x2e8b,_0x503343=a154_0x496399[_0x1b8b17(0x14f)](_0x526281);if(!await _0x5081dd[_0x1b8b17(0x13d)](_0x503343))throw new Error(_0x1b8b17(0x14b)+_0x526281);let _0x4667d1=a154_0x496399[_0x1b8b17(0x140)](_0x503343),_0x5ac430=null,_0x53361b=null;const _0x3c7bac=a154_0x496399[_0x1b8b17(0x139)](_0x4667d1)['root'];while(_0x4667d1!==_0x3c7bac){const _0x3c5152=a154_0x496399['join'](_0x4667d1,_0x1b8b17(0x143));if(await _0x5081dd[_0x1b8b17(0x13d)](_0x3c5152)){_0x5ac430=_0x3c5152,_0x53361b=_0x4667d1;break;}_0x4667d1=a154_0x496399[_0x1b8b17(0x140)](_0x4667d1);}if(!_0x5ac430||!_0x53361b)throw new Error('No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x526281+'\x0a'+'Hint:\x20Run\x20`tdx\x20sg\x20pull\x20\x22Parent\x20Segment\x20Name\x22`\x20first\x20to\x20create\x20a\x20project\x20directory,\x20then\x20work\x20within\x20that\x20directory.');const _0x4ba132=await _0x5081dd[_0x1b8b17(0x141)](_0x5ac430),_0x15446e=JSON['parse'](_0x4ba132),_0x418cad=_0x15446e[_0x1b8b17(0x145)];if(!_0x418cad)throw new Error(_0x1b8b17(0x156));const _0x4afb78=await _0x5081dd[_0x1b8b17(0x141)](_0x503343),_0x5ecea7=a154_0xfe0204(_0x4afb78),_0x3508ba=_0x5ecea7['name'];if(!_0x3508ba)throw new Error(_0x1b8b17(0x149)+_0x526281);const _0x4697af=_0x5ecea7[_0x1b8b17(0x151)]===_0x1b8b17(0x14a)?_0x1b8b17(0x14a):_0x1b8b17(0x15c),_0x5882ab=a154_0x496399[_0x1b8b17(0x144)](_0x53361b,_0x503343),_0x3adba7=a154_0x496399[_0x1b8b17(0x140)](_0x5882ab),_0x53ee55=_0x3adba7==='.'?'':_0x3adba7[_0x1b8b17(0x160)](/\\/g,'/'),_0x1f699b=_0x53ee55?_0x418cad+'/'+_0x53ee55+'/'+_0x3508ba:_0x418cad+'/'+_0x3508ba;return{'parentSegment':_0x418cad,'segmentName':_0x3508ba,'folderPath':_0x53ee55,'fullPath':_0x1f699b,'resourceType':_0x4697af,'content':_0x4afb78};}
@@ -1 +1 @@
1
- (function(_0x32a7c3,_0x34e8fd){const _0x593b97=a155_0x42ec,_0x131191=_0x32a7c3();while(!![]){try{const _0x592a58=-parseInt(_0x593b97(0x159))/0x1*(parseInt(_0x593b97(0x158))/0x2)+parseInt(_0x593b97(0x15d))/0x3+-parseInt(_0x593b97(0x15a))/0x4+-parseInt(_0x593b97(0x15f))/0x5*(-parseInt(_0x593b97(0x157))/0x6)+parseInt(_0x593b97(0x155))/0x7+parseInt(_0x593b97(0x15c))/0x8+-parseInt(_0x593b97(0x154))/0x9;if(_0x592a58===_0x34e8fd)break;else _0x131191['push'](_0x131191['shift']());}catch(_0x2bd678){_0x131191['push'](_0x131191['shift']());}}}(a155_0x170a,0xf195e));export function parseSegmentRef(_0x471324){const _0x790eb3=a155_0x42ec,_0x2aabce=_0x471324['indexOf']('/');if(_0x2aabce===-0x1)return{'parentId':_0x471324};if(_0x2aabce===0x0)throw new Error(_0x790eb3(0x156)+_0x471324+_0x790eb3(0x15e));const _0x15e29a=_0x471324[_0x790eb3(0x15b)](0x0,_0x2aabce),_0x40ebdd=_0x471324[_0x790eb3(0x15b)](_0x2aabce+0x1);if(_0x40ebdd==='')throw new Error(_0x790eb3(0x156)+_0x471324+_0x790eb3(0x160));return{'parentId':_0x15e29a,'childId':_0x40ebdd};}function a155_0x42ec(_0x5f55cb,_0x1e087d){_0x5f55cb=_0x5f55cb-0x154;const _0x170aa6=a155_0x170a();let _0x42ec8e=_0x170aa6[_0x5f55cb];return _0x42ec8e;}function a155_0x170a(){const _0x119a17=['1158212FeLmwR','substring','12506600oKoPyC','2270334Nlmkkd','.\x20Parent\x20name\x20cannot\x20be\x20empty','765655WketSQ','.\x20Child\x20name\x20cannot\x20be\x20empty','26183457GukeOf','9349116CAogop','Invalid\x20segment\x20reference\x20format:\x20','54nZdHcq','4vZRWta','422755dWSDFG'];a155_0x170a=function(){return _0x119a17;};return a155_0x170a();}
1
+ (function(_0x2ad66d,_0x6e538b){const _0xb218a=a155_0x3342,_0x54d07b=_0x2ad66d();while(!![]){try{const _0x23a90f=-parseInt(_0xb218a(0xd6))/0x1*(parseInt(_0xb218a(0xda))/0x2)+parseInt(_0xb218a(0xde))/0x3*(-parseInt(_0xb218a(0xd7))/0x4)+parseInt(_0xb218a(0xdc))/0x5+-parseInt(_0xb218a(0xe2))/0x6+-parseInt(_0xb218a(0xd5))/0x7*(-parseInt(_0xb218a(0xdd))/0x8)+parseInt(_0xb218a(0xdf))/0x9*(-parseInt(_0xb218a(0xe1))/0xa)+parseInt(_0xb218a(0xd4))/0xb*(parseInt(_0xb218a(0xe3))/0xc);if(_0x23a90f===_0x6e538b)break;else _0x54d07b['push'](_0x54d07b['shift']());}catch(_0x495348){_0x54d07b['push'](_0x54d07b['shift']());}}}(a155_0x1ab6,0x368d8));function a155_0x1ab6(){const _0x6bf479=['Invalid\x20segment\x20reference\x20format:\x20','11DHPFPZ','686ZrthHN','317887OaqDob','8524UBpGdO','substring','indexOf','2QKmDea','.\x20Parent\x20name\x20cannot\x20be\x20empty','705740PnaaEr','14080ersqfE','393FOZvfY','93861RVArRK','.\x20Child\x20name\x20cannot\x20be\x20empty','390OjraJd','118890nkHZph','11200968AxmekR'];a155_0x1ab6=function(){return _0x6bf479;};return a155_0x1ab6();}function a155_0x3342(_0x5c7c57,_0x35ed34){_0x5c7c57=_0x5c7c57-0xd3;const _0x1ab608=a155_0x1ab6();let _0x3342d5=_0x1ab608[_0x5c7c57];return _0x3342d5;}export function parseSegmentRef(_0x15f38c){const _0x465b71=a155_0x3342,_0x129712=_0x15f38c[_0x465b71(0xd9)]('/');if(_0x129712===-0x1)return{'parentId':_0x15f38c};if(_0x129712===0x0)throw new Error(_0x465b71(0xd3)+_0x15f38c+_0x465b71(0xdb));const _0x8570e4=_0x15f38c[_0x465b71(0xd8)](0x0,_0x129712),_0x4b6bc5=_0x15f38c['substring'](_0x129712+0x1);if(_0x4b6bc5==='')throw new Error(_0x465b71(0xd3)+_0x15f38c+_0x465b71(0xe0));return{'parentId':_0x8570e4,'childId':_0x4b6bc5};}
@@ -1 +1 @@
1
- (function(_0xcc4f8c,_0x4b28cb){const _0x5c5617=a156_0x2eea,_0x5ecd6a=_0xcc4f8c();while(!![]){try{const _0x87d505=-parseInt(_0x5c5617(0x131))/0x1+-parseInt(_0x5c5617(0x13d))/0x2*(-parseInt(_0x5c5617(0x15d))/0x3)+parseInt(_0x5c5617(0x13a))/0x4*(-parseInt(_0x5c5617(0x13f))/0x5)+-parseInt(_0x5c5617(0x152))/0x6*(parseInt(_0x5c5617(0x157))/0x7)+parseInt(_0x5c5617(0x13b))/0x8*(parseInt(_0x5c5617(0x144))/0x9)+parseInt(_0x5c5617(0x159))/0xa+-parseInt(_0x5c5617(0x173))/0xb*(-parseInt(_0x5c5617(0x141))/0xc);if(_0x87d505===_0x4b28cb)break;else _0x5ecd6a['push'](_0x5ecd6a['shift']());}catch(_0x22c85c){_0x5ecd6a['push'](_0x5ecd6a['shift']());}}}(a156_0x2ee5,0xd8f78));function a156_0x2eea(_0x981b8b,_0x11ec82){_0x981b8b=_0x981b8b-0x12f;const _0x2ee5a4=a156_0x2ee5();let _0x2eea36=_0x2ee5a4[_0x981b8b];return _0x2eea36;}import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x465270,_0x17a23a={},_0x5857bf={}){const _0x3a5d63=a156_0x2eea;if(_0x5857bf['skipSchema'])return runSemanticChecks(_0x465270,_0x17a23a);const _0x266c6a=SegmentDefSchema[_0x3a5d63(0x162)](_0x465270);if(_0x266c6a['success'])return runSemanticChecks(_0x266c6a[_0x3a5d63(0x15b)],_0x17a23a);return zodErrorsToValidationResult(_0x266c6a[_0x3a5d63(0x151)],_0x17a23a);}export function validateRuleDef(_0x9f50ec,_0x27f81a,_0x70a4f4){const _0x54792f=a156_0x2eea;if(!_0x9f50ec)return[];const _0x53b296=RuleDefSchema['safeParse'](_0x9f50ec);if(_0x53b296[_0x54792f(0x138)])return checkRule(_0x53b296[_0x54792f(0x15b)],_0x27f81a,_0x70a4f4);const _0x1bb035=flattenZodIssues(_0x53b296[_0x54792f(0x151)][_0x54792f(0x15e)]);return _0x1bb035[_0x54792f(0x146)](_0x2ffc01=>{const _0x5bfc39=_0x54792f,_0x2f6cea=formatZodPath(_0x2ffc01['path']),_0x1d4e8f=_0x2f6cea?_0x27f81a+'.'+_0x2f6cea:_0x27f81a,_0x35fbb7=mapZodIssueToCode(_0x2ffc01,_0x2f6cea),_0x37be8b=getLocationFromPath(_0x70a4f4[_0x5bfc39(0x171)],_0x70a4f4[_0x5bfc39(0x14f)],pathToArray(_0x1d4e8f));return{'level':_0x5bfc39(0x151),'path':_0x1d4e8f,'code':_0x35fbb7,'message':_0x2ffc01[_0x5bfc39(0x16a)],..._0x37be8b&&{'location':_0x37be8b}};});}function zodErrorsToValidationResult(_0x482a15,_0x18cb53){const _0x238714=a156_0x2eea,_0x11b386=flattenZodIssues(_0x482a15[_0x238714(0x15e)]),_0x5915fe=_0x11b386[_0x238714(0x146)](_0x4e4176=>{const _0x205c60=_0x238714,_0x2138f5=formatZodPath(_0x4e4176[_0x205c60(0x133)]),_0x30a90c=mapZodIssueToCode(_0x4e4176,_0x2138f5),_0x4b8b36=getLocationFromPath(_0x18cb53[_0x205c60(0x171)],_0x18cb53[_0x205c60(0x14f)],_0x4e4176['path'][_0x205c60(0x146)](_0x55920a=>typeof _0x55920a===_0x205c60(0x172)?String(_0x55920a):_0x55920a));return{'level':'error','path':_0x2138f5,'code':_0x30a90c,'message':_0x4e4176['message'],..._0x4b8b36&&{'location':_0x4b8b36}};});return{'valid':![],'errors':_0x5915fe,'warnings':[]};}function mapZodIssueToCode(_0x3947b0,_0x3dc200){const _0x467122=a156_0x2eea,_0x5cd74d=_0x3947b0['code']===_0x467122(0x16e)?_0x3947b0[_0x467122(0x158)]:undefined;if(_0x3dc200===_0x467122(0x143))return _0x467122(0x165);if(_0x3dc200===_0x467122(0x149)||_0x3dc200[_0x467122(0x163)](_0x467122(0x16b))){if(_0x3947b0[_0x467122(0x14b)]===_0x467122(0x16c)){if(_0x3dc200==='rule.type'||_0x3dc200[_0x467122(0x175)](/\.conditions\[\d+\]\.type$/))return'INVALID_RULE_TYPE';}}if(_0x3dc200[_0x467122(0x163)]('.operator.type'))return'INVALID_OPERATOR_TYPE';if(_0x3dc200['endsWith'](_0x467122(0x16f)))return'MISSING_OPERATOR_VALUE';if(_0x5cd74d?.[_0x467122(0x155)]==='MISSING_BETWEEN_BOUNDS')return'MISSING_BETWEEN_BOUNDS';if(_0x5cd74d?.[_0x467122(0x155)]===_0x467122(0x150))return _0x467122(0x150);if(_0x3dc200[_0x467122(0x163)]('.conditions')||_0x3dc200===_0x467122(0x14a))return _0x467122(0x15c);if(_0x3dc200[_0x467122(0x169)](_0x467122(0x176)))return _0x467122(0x154);if(_0x3dc200[_0x467122(0x163)]('.segment'))return _0x467122(0x132);return _0x467122(0x13e);}function runSemanticChecks(_0x936235,_0x2d63c1){const _0x4f7982=a156_0x2eea,_0x199a3f=[];_0x936235[_0x4f7982(0x166)]&&_0x199a3f[_0x4f7982(0x14e)](...checkRule(_0x936235[_0x4f7982(0x166)],_0x4f7982(0x166),_0x2d63c1));const _0x47c4db=_0x199a3f[_0x4f7982(0x139)](_0x141b0c=>_0x141b0c[_0x4f7982(0x14d)]===_0x4f7982(0x151)),_0x49fba5=_0x199a3f['filter'](_0x5b7597=>_0x5b7597[_0x4f7982(0x14d)]===_0x4f7982(0x16d));return{'valid':_0x47c4db[_0x4f7982(0x161)]===0x0,'errors':_0x47c4db,'warnings':_0x49fba5};}function checkRule(_0x28bc6c,_0x1976b9,_0x24cb25){const _0x34b219=a156_0x2eea,_0x1c692f=[];if(_0x28bc6c[_0x34b219(0x14a)][_0x34b219(0x161)]===0x0)return _0x1c692f[_0x34b219(0x14e)]({'level':_0x34b219(0x151),'path':_0x1976b9+_0x34b219(0x12f),'code':_0x34b219(0x148),'message':'Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','location':getLocationFromPath(_0x24cb25['document'],_0x24cb25[_0x34b219(0x14f)],pathToArray(_0x1976b9+_0x34b219(0x12f)))}),_0x1c692f;return _0x1c692f[_0x34b219(0x14e)](...checkConditions(_0x28bc6c[_0x34b219(0x14a)],_0x1976b9,_0x24cb25)),_0x1c692f;}function checkConditions(_0x334415,_0x14a16d,_0xa6e356){const _0x583601=a156_0x2eea,_0x3281a0=[];for(let _0x331c34=0x0;_0x331c34<_0x334415['length'];_0x331c34++){const _0x477dc4=_0x334415[_0x331c34],_0x2f88ee=_0x14a16d+_0x583601(0x156)+_0x331c34+']';_0x3281a0[_0x583601(0x14e)](...checkCondition(_0x477dc4,_0x2f88ee,_0xa6e356));}return _0x3281a0;}function a156_0x2ee5(){const _0x3becd9=['\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','name','3401532MLRRXF','.source','map','attribute','EMPTY_CONDITIONS','rule.type','conditions','code','Attribute\x20name\x20cannot\x20be\x20empty','level','push','source','MISSING_TIME_UNIT','error','8450034EywQgA','type','INVALID_ARRAY_MATCHING','validationCode','.conditions[','7PSNoGH','params','596820VgjCXH','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','data','MISSING_CONDITIONS','3OvghfW','issues','\x27\x20with\x20attribute\x20\x27','.filter','length','safeParse','endsWith','aggregation','MISSING_NAME','rule','.attribute','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','includes','message','.type','invalid_value','warning','custom','.operator.value','conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','document','symbol','27126682xDuKJu','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','match','arrayMatching','.conditions','BEHAVIOR_SOURCE_WITH_ATTRIBUTE','1593787aOuuqt','MISSING_SEGMENT_REFERENCE','path','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','BEHAVIOR_SOURCE_MISSING_FILTER','And','Attribute\x20\x27','success','filter','573680wsnvgP','16LkcgKr','Behavior','2652564bSdvkE','SEGMENT_SCHEMA_ERROR','25jLVfAH','EMPTY_ATTRIBUTE','12HQRtaN'];a156_0x2ee5=function(){return _0x3becd9;};return a156_0x2ee5();}function checkCondition(_0x374085,_0x3be6ee,_0x556c01){const _0x4d3c24=a156_0x2eea,_0x4cac08=[];if(_0x374085['type']===_0x4d3c24(0x136)||_0x374085[_0x4d3c24(0x153)]==='Or')return _0x374085['conditions']['length']===0x0?_0x4cac08[_0x4d3c24(0x14e)]({'level':'error','path':_0x3be6ee+'.conditions','code':_0x4d3c24(0x148),'message':_0x374085[_0x4d3c24(0x153)]+_0x4d3c24(0x168),'location':getLocationFromPath(_0x556c01['document'],_0x556c01[_0x4d3c24(0x14f)],pathToArray(_0x3be6ee+_0x4d3c24(0x12f)))}):(_0x4cac08[_0x4d3c24(0x14e)]({'level':_0x4d3c24(0x16d),'path':_0x3be6ee,'code':'NESTED_CONDITION_GROUP','message':_0x374085[_0x4d3c24(0x153)]+_0x4d3c24(0x142)+_0x4d3c24(0x174)+_0x4d3c24(0x170),'location':getLocationFromPath(_0x556c01[_0x4d3c24(0x171)],_0x556c01[_0x4d3c24(0x14f)],pathToArray(_0x3be6ee))}),_0x4cac08[_0x4d3c24(0x14e)](...checkConditions(_0x374085['conditions'],_0x3be6ee,_0x556c01))),_0x4cac08;if(_0x374085['type']==='Value'||_0x374085[_0x4d3c24(0x153)]===_0x4d3c24(0x13c)){const _0x5ede2b=_0x374085,_0x3613ba=_0x5ede2b[_0x4d3c24(0x14f)],_0x3d7d5e=_0x5ede2b[_0x4d3c24(0x164)],_0xbebdb0=_0x3613ba||_0x3d7d5e;(!_0x5ede2b[_0x4d3c24(0x147)]||_0x5ede2b[_0x4d3c24(0x147)]==='')&&(!_0xbebdb0&&_0x4cac08[_0x4d3c24(0x14e)]({'level':_0x4d3c24(0x151),'path':_0x3be6ee+_0x4d3c24(0x167),'code':_0x4d3c24(0x140),'message':_0x4d3c24(0x14c),'location':getLocationFromPath(_0x556c01[_0x4d3c24(0x171)],_0x556c01['source'],pathToArray(_0x3be6ee+'.attribute'))}));_0x5ede2b[_0x4d3c24(0x139)]&&_0x4cac08['push'](...checkRule(_0x5ede2b[_0x4d3c24(0x139)],_0x3be6ee+_0x4d3c24(0x160),_0x556c01));if(_0x5ede2b[_0x4d3c24(0x14f)]){const _0x12e037=_0x5ede2b[_0x4d3c24(0x147)]&&_0x5ede2b[_0x4d3c24(0x147)]!=='';_0x12e037&&!_0x5ede2b['filter']&&_0x4cac08[_0x4d3c24(0x14e)]({'level':_0x4d3c24(0x151),'path':_0x3be6ee+_0x4d3c24(0x145),'code':_0x4d3c24(0x135),'message':'Behavior\x20source\x20\x27'+_0x5ede2b[_0x4d3c24(0x14f)]+_0x4d3c24(0x15f)+_0x5ede2b[_0x4d3c24(0x147)]+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+_0x4d3c24(0x15a)+'Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','location':getLocationFromPath(_0x556c01[_0x4d3c24(0x171)],_0x556c01[_0x4d3c24(0x14f)],pathToArray(_0x3be6ee+_0x4d3c24(0x145)))}),_0x12e037&&_0x5ede2b[_0x4d3c24(0x139)]&&_0x4cac08[_0x4d3c24(0x14e)]({'level':'warning','path':_0x3be6ee+_0x4d3c24(0x167),'code':_0x4d3c24(0x130),'message':_0x4d3c24(0x137)+_0x5ede2b[_0x4d3c24(0x147)]+'\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20'+_0x4d3c24(0x134),'location':getLocationFromPath(_0x556c01['document'],_0x556c01['source'],pathToArray(_0x3be6ee+_0x4d3c24(0x167)))});}}return _0x4cac08;}
1
+ function a156_0x4e49(_0x1efe7b,_0xd6baff){_0x1efe7b=_0x1efe7b-0x81;const _0x361ed3=a156_0x361e();let _0x4e494d=_0x361ed3[_0x1efe7b];return _0x4e494d;}(function(_0x18b978,_0x5429a8){const _0x3c4c5f=a156_0x4e49,_0x1a079d=_0x18b978();while(!![]){try{const _0x41b9c2=parseInt(_0x3c4c5f(0xaf))/0x1+parseInt(_0x3c4c5f(0xa5))/0x2+parseInt(_0x3c4c5f(0xb4))/0x3*(parseInt(_0x3c4c5f(0x8c))/0x4)+-parseInt(_0x3c4c5f(0x83))/0x5+parseInt(_0x3c4c5f(0x93))/0x6*(parseInt(_0x3c4c5f(0x98))/0x7)+-parseInt(_0x3c4c5f(0x94))/0x8*(-parseInt(_0x3c4c5f(0x99))/0x9)+-parseInt(_0x3c4c5f(0x84))/0xa;if(_0x41b9c2===_0x5429a8)break;else _0x1a079d['push'](_0x1a079d['shift']());}catch(_0xe5e9dc){_0x1a079d['push'](_0x1a079d['shift']());}}}(a156_0x361e,0x6908e));import{SegmentDefSchema,RuleDefSchema}from'./types/segment-schema.js';import{formatZodPath,flattenZodIssues,getLocationFromPath,pathToArray}from'./yaml-validator.js';export function validateSegmentDef(_0x33fea7,_0x171941={},_0x3f4329={}){const _0x186fe7=a156_0x4e49;if(_0x3f4329[_0x186fe7(0xb2)])return runSemanticChecks(_0x33fea7,_0x171941);const _0x4ef0f4=SegmentDefSchema[_0x186fe7(0x96)](_0x33fea7);if(_0x4ef0f4[_0x186fe7(0x89)])return runSemanticChecks(_0x4ef0f4['data'],_0x171941);return zodErrorsToValidationResult(_0x4ef0f4[_0x186fe7(0xc1)],_0x171941);}export function validateRuleDef(_0x1bd765,_0x4a6651,_0x33ffec){const _0x4945c8=a156_0x4e49;if(!_0x1bd765)return[];const _0x1e98d6=RuleDefSchema[_0x4945c8(0x96)](_0x1bd765);if(_0x1e98d6[_0x4945c8(0x89)])return checkRule(_0x1e98d6['data'],_0x4a6651,_0x33ffec);const _0x34ba1a=flattenZodIssues(_0x1e98d6[_0x4945c8(0xc1)][_0x4945c8(0x88)]);return _0x34ba1a['map'](_0x1d783f=>{const _0x31349e=_0x4945c8,_0xab01ea=formatZodPath(_0x1d783f[_0x31349e(0x9c)]),_0x5433ca=_0xab01ea?_0x4a6651+'.'+_0xab01ea:_0x4a6651,_0x34ca75=mapZodIssueToCode(_0x1d783f,_0xab01ea),_0x5eca7a=getLocationFromPath(_0x33ffec[_0x31349e(0xbc)],_0x33ffec[_0x31349e(0xa7)],pathToArray(_0x5433ca));return{'level':_0x31349e(0xc1),'path':_0x5433ca,'code':_0x34ca75,'message':_0x1d783f['message'],..._0x5eca7a&&{'location':_0x5eca7a}};});}function zodErrorsToValidationResult(_0x1091ef,_0x151351){const _0x4f81c1=a156_0x4e49,_0x1e2000=flattenZodIssues(_0x1091ef['issues']),_0xa1aa70=_0x1e2000[_0x4f81c1(0x9a)](_0x2a58a5=>{const _0x46b75a=_0x4f81c1,_0xdb8d4f=formatZodPath(_0x2a58a5[_0x46b75a(0x9c)]),_0x2437e6=mapZodIssueToCode(_0x2a58a5,_0xdb8d4f),_0x2584b6=getLocationFromPath(_0x151351[_0x46b75a(0xbc)],_0x151351[_0x46b75a(0xa7)],_0x2a58a5[_0x46b75a(0x9c)][_0x46b75a(0x9a)](_0x3556a1=>typeof _0x3556a1===_0x46b75a(0xbf)?String(_0x3556a1):_0x3556a1));return{'level':_0x46b75a(0xc1),'path':_0xdb8d4f,'code':_0x2437e6,'message':_0x2a58a5[_0x46b75a(0x8e)],..._0x2584b6&&{'location':_0x2584b6}};});return{'valid':![],'errors':_0xa1aa70,'warnings':[]};}function mapZodIssueToCode(_0x32c572,_0x121660){const _0x40995e=a156_0x4e49,_0x5c6f8c=_0x32c572[_0x40995e(0x8b)]===_0x40995e(0x9e)?_0x32c572[_0x40995e(0xa3)]:undefined;if(_0x121660===_0x40995e(0x9f))return'MISSING_NAME';if(_0x121660==='rule.type'||_0x121660['endsWith'](_0x40995e(0xb7))){if(_0x32c572['code']===_0x40995e(0xbe)){if(_0x121660===_0x40995e(0xa6)||_0x121660['match'](/\.conditions\[\d+\]\.type$/))return _0x40995e(0xa8);}}if(_0x121660[_0x40995e(0xc4)]('.operator.type'))return'INVALID_OPERATOR_TYPE';if(_0x121660[_0x40995e(0xc4)](_0x40995e(0x86)))return _0x40995e(0xa2);if(_0x5c6f8c?.[_0x40995e(0x81)]===_0x40995e(0xbd))return _0x40995e(0xbd);if(_0x5c6f8c?.[_0x40995e(0x81)]===_0x40995e(0x8d))return _0x40995e(0x8d);if(_0x121660[_0x40995e(0xc4)](_0x40995e(0xc0))||_0x121660===_0x40995e(0xb8))return'MISSING_CONDITIONS';if(_0x121660[_0x40995e(0xa9)](_0x40995e(0xb6)))return _0x40995e(0x85);if(_0x121660[_0x40995e(0xc4)]('.segment'))return'MISSING_SEGMENT_REFERENCE';return _0x40995e(0xa1);}function runSemanticChecks(_0x49914b,_0x2f221b){const _0x3f7cab=a156_0x4e49,_0x2d27fc=[];_0x49914b[_0x3f7cab(0x9d)]&&_0x2d27fc[_0x3f7cab(0x87)](...checkRule(_0x49914b['rule'],_0x3f7cab(0x9d),_0x2f221b));const _0x32c632=_0x2d27fc[_0x3f7cab(0xa4)](_0x5eb9b0=>_0x5eb9b0[_0x3f7cab(0xac)]===_0x3f7cab(0xc1)),_0x330a1a=_0x2d27fc[_0x3f7cab(0xa4)](_0x3dd207=>_0x3dd207[_0x3f7cab(0xac)]===_0x3f7cab(0xaa));return{'valid':_0x32c632[_0x3f7cab(0xb3)]===0x0,'errors':_0x32c632,'warnings':_0x330a1a};}function checkRule(_0x56ffe3,_0x4487d0,_0x1ab3fd){const _0x24acd0=a156_0x4e49,_0x11633d=[];if(_0x56ffe3[_0x24acd0(0xb8)][_0x24acd0(0xb3)]===0x0)return _0x11633d[_0x24acd0(0x87)]({'level':_0x24acd0(0xc1),'path':_0x4487d0+_0x24acd0(0xc0),'code':_0x24acd0(0x92),'message':_0x24acd0(0xc5),'location':getLocationFromPath(_0x1ab3fd['document'],_0x1ab3fd['source'],pathToArray(_0x4487d0+'.conditions'))}),_0x11633d;return _0x11633d[_0x24acd0(0x87)](...checkConditions(_0x56ffe3[_0x24acd0(0xb8)],_0x4487d0,_0x1ab3fd)),_0x11633d;}function a156_0x361e(){const _0x22ce78=['Attribute\x20\x27','\x27\x20with\x20attribute\x20\x27','And','EMPTY_CONDITIONS','1646826LpVnbX','1001760NTDKrx','Behavior\x20source\x20\x27','safeParse','\x20condition\x20cannot\x20have\x20an\x20empty\x20conditions\x20array','14JFkszj','18Zymjcp','map','type','path','rule','custom','name','For\x20behavior\x20aggregations,\x20use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20Column\x20conditions\x20in\x20filter.','SEGMENT_SCHEMA_ERROR','MISSING_OPERATOR_VALUE','params','filter','1171830lvQLIa','rule.type','source','INVALID_RULE_TYPE','includes','warning','.filter','level','BEHAVIOR_SOURCE_MISSING_FILTER','.conditions[','305517QSdDwK','attribute','NESTED_CONDITION_GROUP','skipSchema','length','42879XWHgtq','the\x20condition\x20queries\x20the\x20master\x20table\x20instead.\x20','arrayMatching','.type','conditions','aggregation','.source','\x27\x20with\x20behavior\x20source\x20may\x20cause\x20unexpected\x20behavior.\x20','document','MISSING_BETWEEN_BOUNDS','invalid_value','symbol','.conditions','error','condition\x20groups\x20correctly.\x20Segment\x20execution\x20is\x20unaffected.\x20For\x20same-attribute\x20Or\x20','\x20condition\x20group:\x20Console\x20UI\x20SQL\x20preview\x20does\x20not\x20display\x20nested\x20','endsWith','Rule\x20conditions\x20array\x20cannot\x20be\x20empty.\x20Add\x20at\x20least\x20one\x20condition.','Attribute\x20name\x20cannot\x20be\x20empty','validationCode','.attribute','2566810aowmFC','9187460fyhKCl','INVALID_ARRAY_MATCHING','.operator.value','push','issues','success','Use\x20\x27attribute:\x20\x22\x22\x27\x20with\x20\x27filter.type:\x20And\x27\x20containing\x20\x27type:\x20Column\x27\x20conditions.','code','48UmVJzS','MISSING_TIME_UNIT','message'];a156_0x361e=function(){return _0x22ce78;};return a156_0x361e();}function checkConditions(_0xe3d541,_0x46bbb0,_0x2721d6){const _0x113c2e=a156_0x4e49,_0x58f71f=[];for(let _0x4df05a=0x0;_0x4df05a<_0xe3d541[_0x113c2e(0xb3)];_0x4df05a++){const _0x447f6c=_0xe3d541[_0x4df05a],_0x2f5cf5=_0x46bbb0+_0x113c2e(0xae)+_0x4df05a+']';_0x58f71f[_0x113c2e(0x87)](...checkCondition(_0x447f6c,_0x2f5cf5,_0x2721d6));}return _0x58f71f;}function checkCondition(_0x57ab69,_0x3234c6,_0x1ce08f){const _0xe16445=a156_0x4e49,_0x28a72b=[];if(_0x57ab69[_0xe16445(0x9b)]===_0xe16445(0x91)||_0x57ab69[_0xe16445(0x9b)]==='Or')return _0x57ab69[_0xe16445(0xb8)][_0xe16445(0xb3)]===0x0?_0x28a72b[_0xe16445(0x87)]({'level':_0xe16445(0xc1),'path':_0x3234c6+_0xe16445(0xc0),'code':_0xe16445(0x92),'message':_0x57ab69[_0xe16445(0x9b)]+_0xe16445(0x97),'location':getLocationFromPath(_0x1ce08f[_0xe16445(0xbc)],_0x1ce08f['source'],pathToArray(_0x3234c6+'.conditions'))}):(_0x28a72b['push']({'level':'warning','path':_0x3234c6,'code':_0xe16445(0xb1),'message':_0x57ab69['type']+_0xe16445(0xc3)+_0xe16445(0xc2)+'conditions,\x20consider\x20using\x20\x27In\x27\x20operator:\x20operator:\x20{\x20type:\x20In,\x20value:\x20[\x22val1\x22,\x20\x22val2\x22]\x20}','location':getLocationFromPath(_0x1ce08f['document'],_0x1ce08f[_0xe16445(0xa7)],pathToArray(_0x3234c6))}),_0x28a72b['push'](...checkConditions(_0x57ab69[_0xe16445(0xb8)],_0x3234c6,_0x1ce08f))),_0x28a72b;if(_0x57ab69[_0xe16445(0x9b)]==='Value'||_0x57ab69[_0xe16445(0x9b)]==='Behavior'){const _0x4c7c3f=_0x57ab69,_0x5dda58=_0x4c7c3f[_0xe16445(0xa7)],_0x2c9df7=_0x4c7c3f[_0xe16445(0xb9)],_0x320b5b=_0x5dda58||_0x2c9df7;(!_0x4c7c3f['attribute']||_0x4c7c3f[_0xe16445(0xb0)]==='')&&(!_0x320b5b&&_0x28a72b['push']({'level':_0xe16445(0xc1),'path':_0x3234c6+_0xe16445(0x82),'code':'EMPTY_ATTRIBUTE','message':_0xe16445(0xc6),'location':getLocationFromPath(_0x1ce08f['document'],_0x1ce08f[_0xe16445(0xa7)],pathToArray(_0x3234c6+_0xe16445(0x82)))}));_0x4c7c3f[_0xe16445(0xa4)]&&_0x28a72b[_0xe16445(0x87)](...checkRule(_0x4c7c3f['filter'],_0x3234c6+_0xe16445(0xab),_0x1ce08f));if(_0x4c7c3f[_0xe16445(0xa7)]){const _0x514287=_0x4c7c3f[_0xe16445(0xb0)]&&_0x4c7c3f[_0xe16445(0xb0)]!=='';_0x514287&&!_0x4c7c3f['filter']&&_0x28a72b[_0xe16445(0x87)]({'level':_0xe16445(0xc1),'path':_0x3234c6+_0xe16445(0xba),'code':_0xe16445(0xad),'message':_0xe16445(0x95)+_0x4c7c3f[_0xe16445(0xa7)]+_0xe16445(0x90)+_0x4c7c3f[_0xe16445(0xb0)]+'\x27\x20'+'requires\x20a\x20nested\x20\x27filter\x27.\x20Without\x20filter,\x20the\x20source\x20is\x20silently\x20ignored\x20and\x20'+_0xe16445(0xb5)+_0xe16445(0x8a),'location':getLocationFromPath(_0x1ce08f['document'],_0x1ce08f[_0xe16445(0xa7)],pathToArray(_0x3234c6+_0xe16445(0xba)))}),_0x514287&&_0x4c7c3f[_0xe16445(0xa4)]&&_0x28a72b['push']({'level':_0xe16445(0xaa),'path':_0x3234c6+_0xe16445(0x82),'code':'BEHAVIOR_SOURCE_WITH_ATTRIBUTE','message':_0xe16445(0x8f)+_0x4c7c3f[_0xe16445(0xb0)]+_0xe16445(0xbb)+_0xe16445(0xa0),'location':getLocationFromPath(_0x1ce08f[_0xe16445(0xbc)],_0x1ce08f[_0xe16445(0xa7)],pathToArray(_0x3234c6+_0xe16445(0x82)))});}}return _0x28a72b;}
@@ -1 +1 @@
1
- function a157_0x5f01(_0x353edf,_0x4d753a){_0x353edf=_0x353edf-0xca;const _0x52d4f1=a157_0x52d4();let _0x5f01bb=_0x52d4f1[_0x353edf];return _0x5f01bb;}(function(_0xc96df2,_0x18ee5d){const _0x3c0da8=a157_0x5f01,_0xd67340=_0xc96df2();while(!![]){try{const _0x3d0a74=parseInt(_0x3c0da8(0xe8))/0x1*(parseInt(_0x3c0da8(0xf5))/0x2)+parseInt(_0x3c0da8(0xec))/0x3*(parseInt(_0x3c0da8(0x100))/0x4)+-parseInt(_0x3c0da8(0xf6))/0x5*(parseInt(_0x3c0da8(0xe9))/0x6)+-parseInt(_0x3c0da8(0xd6))/0x7+-parseInt(_0x3c0da8(0xca))/0x8+parseInt(_0x3c0da8(0xef))/0x9*(-parseInt(_0x3c0da8(0xf8))/0xa)+parseInt(_0x3c0da8(0xe3))/0xb*(parseInt(_0x3c0da8(0xfe))/0xc);if(_0x3d0a74===_0x18ee5d)break;else _0xd67340['push'](_0xd67340['shift']());}catch(_0x2c69c1){_0xd67340['push'](_0xd67340['shift']());}}}(a157_0x52d4,0xb076b));import a157_0x20bc80 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(_0x2b46d8){const _0x751926=a157_0x5f01;return _0x2b46d8['type']!==_0x751926(0xfc);}function a157_0x52d4(){const _0x446cb7=['includes','folderPath','stat','dirname','match','11020592zSUGfk','journey','context','join','readFile','1zyoutj','12adZkal','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','File\x20not\x20found','24eqinXJ','no_config','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','65313koHxsj','parent_name','invalid_yaml','parentSegment','basename','scopedFolderPath','2387114gaYZCA','161855bTWTpi','type','1860bfpWpQ','relative','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','configDir','error','isDirectory','12OlMVmF','Not\x20a\x20YAML\x20file:\x20','605960HuhTsd','isFile','isScoped','4245408TOmSYq','no_parent','exists','file_not_found','No\x20tdx.json\x20found\x20for\x20file:\x20','startsWith','Parent\x20segment\x20not\x20specified','cwd','parse','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','resourceType','parent_segment','5175338YLkVgC','directory','tdx.json','File\x20not\x20found:\x20','No\x20tdx.json\x20found','file','resolve','trim'];a157_0x52d4=function(){return _0x446cb7;};return a157_0x52d4();}export function isScopedResolution(_0x5bc546){const _0x54f517=a157_0x5f01;return _0x5bc546[_0x54f517(0xf7)]===_0x54f517(0xd7)||_0x5bc546['type']===_0x54f517(0xdb)||_0x5bc546['type']===_0x54f517(0xe5);}export function getScopedDetails(_0x441eaa){if(isScopedResolution(_0x441eaa))return{'isScoped':_0x441eaa['isScoped'],'scopedFolderPath':_0x441eaa['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0xb39963,_0x38b968){const _0x54ebff=a157_0x5f01;let _0x20e49c=a157_0x20bc80[_0x54ebff(0xdc)](_0xb39963);const _0x287227=a157_0x20bc80['parse'](_0x20e49c)['root'];while(_0x20e49c!==_0x287227){const _0xa55e64=a157_0x20bc80[_0x54ebff(0xe6)](_0x20e49c,_0x54ebff(0xd8));if(await _0x38b968[_0x54ebff(0xcc)](_0xa55e64))try{const _0x5959cb=await _0x38b968[_0x54ebff(0xe7)](_0xa55e64),_0x34158e=JSON[_0x54ebff(0xd2)](_0x5959cb);if(_0x34158e['parent_segment']&&typeof _0x34158e[_0x54ebff(0xd5)]==='string')return{'configPath':_0xa55e64,'configDir':_0x20e49c,'parentSegment':_0x34158e[_0x54ebff(0xd5)]};}catch{}_0x20e49c=a157_0x20bc80['dirname'](_0x20e49c);}return null;}function calculateScopedPath(_0x11b990,_0xc02e7){const _0x158f76=a157_0x5f01,_0x476644=a157_0x20bc80[_0x158f76(0xf9)](_0xc02e7,_0x11b990),_0x1168d2=_0x476644!==''&&_0x476644!=='.'&&!_0x476644[_0x158f76(0xcf)]('..');return{'isScoped':_0x1168d2,'scopedFolderPath':_0x1168d2?_0x476644['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x341674){const _0x498f38=a157_0x5f01,{arg:_0x30c626,contextParent:_0x3112d7,cwd:cwd=process[_0x498f38(0xd1)](),fs:fs=nodeFileSystem}=_0x341674;if(_0x30c626&&isYamlFilePath(_0x30c626))try{const _0x523431=await resolveYamlFilePath(_0x30c626,fs),_0xe68e9c=a157_0x20bc80[_0x498f38(0xdc)](_0x30c626),_0x2c9d4d=a157_0x20bc80[_0x498f38(0xe1)](_0xe68e9c),_0x2b81fa=await findTdxConfigAsync(_0x2c9d4d,fs);if(!_0x2b81fa){if(_0x3112d7){const _0x3c4db8=a157_0x20bc80[_0x498f38(0xe1)](_0xe68e9c);return{'type':_0x498f38(0xdb),'parentName':_0x3112d7,'targetDir':_0x3c4db8,'configRoot':_0x3c4db8,'filePath':_0xe68e9c,'resourceName':_0x523431['segmentName'],'folderPath':_0x523431[_0x498f38(0xdf)],'resourceType':_0x523431['resourceType'],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x498f38(0xed),'message':_0x498f38(0xce)+_0x30c626,'arg':_0x30c626,'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 _0x37bc13=calculateScopedPath(_0x2c9d4d,_0x2b81fa[_0x498f38(0xfb)]);return{'type':_0x498f38(0xdb),'parentName':_0x2b81fa[_0x498f38(0xf2)],'targetDir':_0x2b81fa[_0x498f38(0xfb)],'configRoot':_0x2b81fa[_0x498f38(0xfb)],'filePath':_0xe68e9c,'resourceName':_0x523431['segmentName'],'folderPath':_0x523431[_0x498f38(0xdf)],'resourceType':_0x523431[_0x498f38(0xd4)],'isScoped':_0x37bc13[_0x498f38(0x102)],'scopedFolderPath':_0x37bc13[_0x498f38(0xf4)]};}catch(_0x3169d9){const _0x234f9a=_0x3169d9 instanceof Error?_0x3169d9['message']:String(_0x3169d9);if(_0x234f9a[_0x498f38(0xde)](_0x498f38(0xeb)))return{'type':'error','errorCode':_0x498f38(0xcd),'message':_0x498f38(0xd9)+_0x30c626,'arg':_0x30c626};if(_0x234f9a['includes'](_0x498f38(0xda))){if(_0x3112d7){const _0x2a6603=a157_0x20bc80[_0x498f38(0xdc)](_0x30c626);if(await fs[_0x498f38(0xcc)](_0x2a6603)){const _0x56a45a=a157_0x20bc80[_0x498f38(0xe1)](_0x2a6603),_0x44296c=await fs[_0x498f38(0xe7)](_0x2a6603),_0x1f2f15=_0x44296c[_0x498f38(0xe2)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x176fca=_0x44296c[_0x498f38(0xe2)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x550feb=_0x1f2f15?_0x1f2f15[0x1]['trim']():a157_0x20bc80[_0x498f38(0xf3)](_0x30c626,a157_0x20bc80['extname'](_0x30c626)),_0x348525=_0x176fca&&_0x176fca[0x1][_0x498f38(0xdd)]()===_0x498f38(0xe4)?'journey':'segment';return{'type':_0x498f38(0xdb),'parentName':_0x3112d7,'targetDir':_0x56a45a,'configRoot':_0x56a45a,'filePath':_0x2a6603,'resourceName':_0x550feb,'folderPath':'','resourceType':_0x348525,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x498f38(0xfc),'errorCode':_0x498f38(0xed),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x30c626,'arg':_0x30c626,'helpText':_0x498f38(0xea)};}return{'type':_0x498f38(0xfc),'errorCode':_0x498f38(0xf1),'message':_0x234f9a,'arg':_0x30c626};}if(_0x30c626){const _0x646085=a157_0x20bc80['resolve'](cwd,_0x30c626);let _0xb9b780=null;try{_0xb9b780=await fs[_0x498f38(0xe0)](_0x646085);}catch{}if(_0xb9b780?.[_0x498f38(0xfd)]()){const _0x728f65=await findTdxConfigAsync(_0x646085,fs);if(_0x728f65){const _0x5dd49f=calculateScopedPath(_0x646085,_0x728f65[_0x498f38(0xfb)]);return{'type':_0x498f38(0xd7),'parentName':_0x728f65[_0x498f38(0xf2)],'targetDir':_0x646085,'configRoot':_0x728f65[_0x498f38(0xfb)],'isScoped':_0x5dd49f[_0x498f38(0x102)],'scopedFolderPath':_0x5dd49f[_0x498f38(0xf4)]};}if(_0x3112d7)return{'type':'directory','parentName':_0x3112d7,'targetDir':_0x646085,'configRoot':_0x646085,'isScoped':![],'scopedFolderPath':''};return{'type':_0x498f38(0xfc),'errorCode':_0x498f38(0xed),'message':_0x498f38(0xee)+_0x30c626,'arg':_0x30c626,'helpText':_0x498f38(0xea)};}if(_0xb9b780?.[_0x498f38(0x101)]())return{'type':_0x498f38(0xfc),'errorCode':_0x498f38(0xf1),'message':_0x498f38(0xff)+_0x30c626,'arg':_0x30c626,'helpText':_0x498f38(0xd3)};const _0x3b7512=sanitizeFileName(_0x30c626),_0x1d1532=getSegmentRootDir(_0x3b7512,cwd);return{'type':_0x498f38(0xf0),'parentName':_0x30c626,'targetDir':_0x1d1532,'configRoot':_0x1d1532};}const _0xef5219=await findTdxConfigAsync(cwd,fs);if(_0xef5219){const _0x124d4c=calculateScopedPath(cwd,_0xef5219[_0x498f38(0xfb)]);return{'type':_0x498f38(0xe5),'parentName':_0xef5219[_0x498f38(0xf2)],'targetDir':cwd,'configRoot':_0xef5219[_0x498f38(0xfb)],'isScoped':_0x124d4c[_0x498f38(0x102)],'scopedFolderPath':_0x124d4c[_0x498f38(0xf4)]};}if(_0x3112d7){const _0x5a80b5=sanitizeFileName(_0x3112d7),_0x21b240=getSegmentRootDir(_0x5a80b5,cwd);return{'type':_0x498f38(0xe5),'parentName':_0x3112d7,'targetDir':_0x21b240,'configRoot':_0x21b240,'isScoped':![],'scopedFolderPath':''};}return{'type':_0x498f38(0xfc),'errorCode':_0x498f38(0xcb),'message':_0x498f38(0xd0),'helpText':_0x498f38(0xfa)};}
1
+ (function(_0x55f932,_0x539e19){const _0x3643d7=a157_0x16e7,_0x1d66fd=_0x55f932();while(!![]){try{const _0x29f8d0=-parseInt(_0x3643d7(0x126))/0x1*(parseInt(_0x3643d7(0x112))/0x2)+-parseInt(_0x3643d7(0x113))/0x3+parseInt(_0x3643d7(0x12b))/0x4*(parseInt(_0x3643d7(0x125))/0x5)+parseInt(_0x3643d7(0x118))/0x6+-parseInt(_0x3643d7(0x134))/0x7+-parseInt(_0x3643d7(0x128))/0x8+parseInt(_0x3643d7(0x136))/0x9;if(_0x29f8d0===_0x539e19)break;else _0x1d66fd['push'](_0x1d66fd['shift']());}catch(_0x8faf88){_0x1d66fd['push'](_0x1d66fd['shift']());}}}(a157_0x215d,0x33733));import a157_0x31320a 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(_0x4c9c61){const _0x9fdc60=a157_0x16e7;return _0x4c9c61[_0x9fdc60(0x13c)]!=='error';}function a157_0x16e7(_0x5a0d3c,_0xa76ccd){_0x5a0d3c=_0x5a0d3c-0x111;const _0x215dcb=a157_0x215d();let _0x16e702=_0x215dcb[_0x5a0d3c];return _0x16e702;}export function isScopedResolution(_0x560dd3){const _0x387d88=a157_0x16e7;return _0x560dd3[_0x387d88(0x13c)]==='directory'||_0x560dd3[_0x387d88(0x13c)]===_0x387d88(0x12c)||_0x560dd3[_0x387d88(0x13c)]==='context';}function a157_0x215d(){const _0x27fcda=['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','isScoped','35IvqDvs','43118VkdVAO','isDirectory','812416XSxAyW','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','error','102996iocLUQ','file','dirname','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','segmentName','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','tdx.json','no_config','invalid_yaml','1003856xzLRWG','relative','5089509Rsnsvg','segment','exists','scopedFolderPath','parent_name','join','type','parent_segment','message','readFile','cwd','journey','configDir','trim','File\x20not\x20found','resolve','No\x20tdx.json\x20found\x20for\x20file:\x20','18AlWcgn','737955LQmqRU','includes','parentSegment','directory','extname','2064012ggRfDg','resourceType','context','no_parent','File\x20not\x20found:\x20','match','Parent\x20segment\x20not\x20specified','startsWith','replace','stat','folderPath'];a157_0x215d=function(){return _0x27fcda;};return a157_0x215d();}export function getScopedDetails(_0x8c2fe4){if(isScopedResolution(_0x8c2fe4))return{'isScoped':_0x8c2fe4['isScoped'],'scopedFolderPath':_0x8c2fe4['scopedFolderPath']};return undefined;}async function findTdxConfigAsync(_0x406fc6,_0x98879d){const _0x592ee6=a157_0x16e7;let _0x4eeab4=a157_0x31320a['resolve'](_0x406fc6);const _0x57b094=a157_0x31320a['parse'](_0x4eeab4)['root'];while(_0x4eeab4!==_0x57b094){const _0x3683c1=a157_0x31320a[_0x592ee6(0x13b)](_0x4eeab4,_0x592ee6(0x131));if(await _0x98879d['exists'](_0x3683c1))try{const _0x4f24a3=await _0x98879d[_0x592ee6(0x13f)](_0x3683c1),_0x437927=JSON['parse'](_0x4f24a3);if(_0x437927[_0x592ee6(0x13d)]&&typeof _0x437927['parent_segment']==='string')return{'configPath':_0x3683c1,'configDir':_0x4eeab4,'parentSegment':_0x437927[_0x592ee6(0x13d)]};}catch{}_0x4eeab4=a157_0x31320a[_0x592ee6(0x12d)](_0x4eeab4);}return null;}function calculateScopedPath(_0x522ead,_0x1f96d3){const _0x4dd3c1=a157_0x16e7,_0x37109e=a157_0x31320a[_0x4dd3c1(0x135)](_0x1f96d3,_0x522ead),_0x3fcf06=_0x37109e!==''&&_0x37109e!=='.'&&!_0x37109e[_0x4dd3c1(0x11f)]('..');return{'isScoped':_0x3fcf06,'scopedFolderPath':_0x3fcf06?_0x37109e[_0x4dd3c1(0x120)](/\\/g,'/'):''};}export async function resolveTarget(_0x39d34e){const _0x826fb9=a157_0x16e7,{arg:_0x18ee5b,contextParent:_0x214f86,cwd:cwd=process[_0x826fb9(0x140)](),fs:fs=nodeFileSystem}=_0x39d34e;if(_0x18ee5b&&isYamlFilePath(_0x18ee5b))try{const _0x1ef3db=await resolveYamlFilePath(_0x18ee5b,fs),_0x214bfe=a157_0x31320a[_0x826fb9(0x145)](_0x18ee5b),_0x28e761=a157_0x31320a[_0x826fb9(0x12d)](_0x214bfe),_0x5aec17=await findTdxConfigAsync(_0x28e761,fs);if(!_0x5aec17){if(_0x214f86){const _0x460926=a157_0x31320a[_0x826fb9(0x12d)](_0x214bfe);return{'type':_0x826fb9(0x12c),'parentName':_0x214f86,'targetDir':_0x460926,'configRoot':_0x460926,'filePath':_0x214bfe,'resourceName':_0x1ef3db[_0x826fb9(0x12f)],'folderPath':_0x1ef3db['folderPath'],'resourceType':_0x1ef3db[_0x826fb9(0x119)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x826fb9(0x12a),'errorCode':_0x826fb9(0x132),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x18ee5b,'arg':_0x18ee5b,'helpText':_0x826fb9(0x129)};}const _0x3a2fa6=calculateScopedPath(_0x28e761,_0x5aec17[_0x826fb9(0x142)]);return{'type':_0x826fb9(0x12c),'parentName':_0x5aec17['parentSegment'],'targetDir':_0x5aec17[_0x826fb9(0x142)],'configRoot':_0x5aec17[_0x826fb9(0x142)],'filePath':_0x214bfe,'resourceName':_0x1ef3db[_0x826fb9(0x12f)],'folderPath':_0x1ef3db[_0x826fb9(0x122)],'resourceType':_0x1ef3db[_0x826fb9(0x119)],'isScoped':_0x3a2fa6[_0x826fb9(0x124)],'scopedFolderPath':_0x3a2fa6[_0x826fb9(0x139)]};}catch(_0x57b785){const _0x4124a3=_0x57b785 instanceof Error?_0x57b785[_0x826fb9(0x13e)]:String(_0x57b785);if(_0x4124a3[_0x826fb9(0x114)](_0x826fb9(0x144)))return{'type':_0x826fb9(0x12a),'errorCode':'file_not_found','message':_0x826fb9(0x11c)+_0x18ee5b,'arg':_0x18ee5b};if(_0x4124a3['includes']('No\x20tdx.json\x20found')){if(_0x214f86){const _0x50ea2f=a157_0x31320a[_0x826fb9(0x145)](_0x18ee5b);if(await fs[_0x826fb9(0x138)](_0x50ea2f)){const _0x34969e=a157_0x31320a[_0x826fb9(0x12d)](_0x50ea2f),_0x4c80e9=await fs[_0x826fb9(0x13f)](_0x50ea2f),_0x47b60a=_0x4c80e9['match'](/^name:\s*["']?([^"'\n]+)["']?/m),_0x37d4d2=_0x4c80e9[_0x826fb9(0x11d)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x1109ae=_0x47b60a?_0x47b60a[0x1]['trim']():a157_0x31320a['basename'](_0x18ee5b,a157_0x31320a[_0x826fb9(0x117)](_0x18ee5b)),_0x184b8b=_0x37d4d2&&_0x37d4d2[0x1][_0x826fb9(0x143)]()===_0x826fb9(0x141)?_0x826fb9(0x141):_0x826fb9(0x137);return{'type':_0x826fb9(0x12c),'parentName':_0x214f86,'targetDir':_0x34969e,'configRoot':_0x34969e,'filePath':_0x50ea2f,'resourceName':_0x1109ae,'folderPath':'','resourceType':_0x184b8b,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x826fb9(0x12a),'errorCode':'no_config','message':_0x826fb9(0x111)+_0x18ee5b,'arg':_0x18ee5b,'helpText':_0x826fb9(0x129)};}return{'type':_0x826fb9(0x12a),'errorCode':'invalid_yaml','message':_0x4124a3,'arg':_0x18ee5b};}if(_0x18ee5b){const _0x28c645=a157_0x31320a[_0x826fb9(0x145)](cwd,_0x18ee5b);let _0x435130=null;try{_0x435130=await fs[_0x826fb9(0x121)](_0x28c645);}catch{}if(_0x435130?.[_0x826fb9(0x127)]()){const _0x380683=await findTdxConfigAsync(_0x28c645,fs);if(_0x380683){const _0x478fbb=calculateScopedPath(_0x28c645,_0x380683[_0x826fb9(0x142)]);return{'type':_0x826fb9(0x116),'parentName':_0x380683['parentSegment'],'targetDir':_0x28c645,'configRoot':_0x380683[_0x826fb9(0x142)],'isScoped':_0x478fbb['isScoped'],'scopedFolderPath':_0x478fbb[_0x826fb9(0x139)]};}if(_0x214f86)return{'type':'directory','parentName':_0x214f86,'targetDir':_0x28c645,'configRoot':_0x28c645,'isScoped':![],'scopedFolderPath':''};return{'type':_0x826fb9(0x12a),'errorCode':'no_config','message':_0x826fb9(0x12e)+_0x18ee5b,'arg':_0x18ee5b,'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'};}if(_0x435130?.['isFile']())return{'type':_0x826fb9(0x12a),'errorCode':_0x826fb9(0x133),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x18ee5b,'arg':_0x18ee5b,'helpText':_0x826fb9(0x130)};const _0x3598bc=sanitizeFileName(_0x18ee5b),_0x1a54d4=getSegmentRootDir(_0x3598bc,cwd);return{'type':_0x826fb9(0x13a),'parentName':_0x18ee5b,'targetDir':_0x1a54d4,'configRoot':_0x1a54d4};}const _0x3f881e=await findTdxConfigAsync(cwd,fs);if(_0x3f881e){const _0x90dffe=calculateScopedPath(cwd,_0x3f881e[_0x826fb9(0x142)]);return{'type':_0x826fb9(0x11a),'parentName':_0x3f881e[_0x826fb9(0x115)],'targetDir':cwd,'configRoot':_0x3f881e[_0x826fb9(0x142)],'isScoped':_0x90dffe[_0x826fb9(0x124)],'scopedFolderPath':_0x90dffe[_0x826fb9(0x139)]};}if(_0x214f86){const _0x333ede=sanitizeFileName(_0x214f86),_0x317e82=getSegmentRootDir(_0x333ede,cwd);return{'type':'context','parentName':_0x214f86,'targetDir':_0x317e82,'configRoot':_0x317e82,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x826fb9(0x11b),'message':_0x826fb9(0x11e),'helpText':_0x826fb9(0x123)};}
@@ -1 +1 @@
1
- const a158_0x40e010=a158_0x59b7;(function(_0x17d1b4,_0x27ac7b){const _0x4471ab=a158_0x59b7,_0x4f09f4=_0x17d1b4();while(!![]){try{const _0x4e4894=-parseInt(_0x4471ab(0x13d))/0x1+parseInt(_0x4471ab(0x13b))/0x2+-parseInt(_0x4471ab(0x144))/0x3+-parseInt(_0x4471ab(0x135))/0x4*(-parseInt(_0x4471ab(0x143))/0x5)+parseInt(_0x4471ab(0x14a))/0x6+-parseInt(_0x4471ab(0x142))/0x7+parseInt(_0x4471ab(0x14b))/0x8*(parseInt(_0x4471ab(0x13c))/0x9);if(_0x4e4894===_0x27ac7b)break;else _0x4f09f4['push'](_0x4f09f4['shift']());}catch(_0x223f69){_0x4f09f4['push'](_0x4f09f4['shift']());}}}(a158_0x4f46,0xae3ec));import{existsSync,readFileSync}from'fs';import a158_0x3be737 from'path';const TDX_CONFIG_FILE=a158_0x40e010(0x138),SEGMENTS_DIR=a158_0x40e010(0x147);export function findTdxConfigPath(_0x10de97=process[a158_0x40e010(0x146)]()){const _0x38bc5c=a158_0x40e010;let _0x165c65=a158_0x3be737['resolve'](_0x10de97);const _0x798f7=a158_0x3be737[_0x38bc5c(0x139)](_0x165c65)[_0x38bc5c(0x149)];while(_0x165c65!==_0x798f7){const _0x28893a=a158_0x3be737['join'](_0x165c65,TDX_CONFIG_FILE);if(existsSync(_0x28893a))return _0x28893a;_0x165c65=a158_0x3be737[_0x38bc5c(0x133)](_0x165c65);}return null;}export function loadTdxConfig(_0x56e1dd){const _0x326c91=a158_0x40e010,_0x563a87=readFileSync(_0x56e1dd,'utf-8');let _0x5d40da;try{_0x5d40da=JSON[_0x326c91(0x139)](_0x563a87);}catch{throw new Error('Invalid\x20JSON\x20in\x20'+_0x56e1dd);}if(!_0x5d40da||typeof _0x5d40da!==_0x326c91(0x136))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x797f66=_0x5d40da,_0x2ced8e=_0x797f66[_0x326c91(0x137)]&&typeof _0x797f66['parent_segment']===_0x326c91(0x13f),_0x34bb54=_0x797f66[_0x326c91(0x13e)]&&typeof _0x797f66[_0x326c91(0x13e)]===_0x326c91(0x13f);if(!_0x2ced8e&&!_0x34bb54)throw new Error('Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field');const _0x3f88d3={};return _0x2ced8e&&(_0x3f88d3['parent_segment']=_0x797f66[_0x326c91(0x137)]),_0x34bb54&&(_0x3f88d3['engage_workspace']=_0x797f66[_0x326c91(0x13e)]),_0x3f88d3;}function a158_0x59b7(_0x4aa31e,_0x19c666){_0x4aa31e=_0x4aa31e-0x133;const _0x4f466e=a158_0x4f46();let _0x59b78a=_0x4f466e[_0x4aa31e];return _0x59b78a;}export function findTdxConfig(_0x2c3563=process[a158_0x40e010(0x146)]()){const _0x145efe=a158_0x40e010,_0xe8af8a=findTdxConfigPath(_0x2c3563);if(!_0xe8af8a)throw new Error(_0x145efe(0x13a));const _0x5da1b5=loadTdxConfig(_0xe8af8a),_0x423877=a158_0x3be737[_0x145efe(0x133)](_0xe8af8a);return{'config':_0x5da1b5,'configPath':_0xe8af8a,'configDir':_0x423877};}export function tryFindTdxConfig(_0x1297a4){try{return findTdxConfig(_0x1297a4);}catch{return null;}}export function getSegmentRootDir(_0x4daf10,_0x30de97=process[a158_0x40e010(0x146)]()){const _0x405e38=a158_0x40e010;return a158_0x3be737[_0x405e38(0x134)](_0x30de97,SEGMENTS_DIR,_0x4daf10);}export function getTdxConfigPath(_0x1edff0,_0x43afa6=process['cwd']()){return a158_0x3be737['join'](getSegmentRootDir(_0x1edff0,_0x43afa6),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x45456a,_0x299dfb){const _0x2eaabe=a158_0x40e010,_0x36ba4b=a158_0x3be737[_0x2eaabe(0x141)](_0x45456a),_0x322027=a158_0x3be737[_0x2eaabe(0x148)](_0x299dfb,_0x36ba4b);if(_0x322027[_0x2eaabe(0x145)]('..'))return'';return _0x322027;}export function localPathToTdFolderPath(_0x51daf7){const _0x239006=a158_0x40e010,_0x103e7b=a158_0x3be737[_0x239006(0x133)](_0x51daf7);if(_0x103e7b==='.'||_0x103e7b==='')return'';return _0x103e7b[_0x239006(0x140)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x2cbf25,_0x4d74da){const _0x349350=a158_0x40e010;if(!_0x2cbf25)return _0x4d74da;return a158_0x3be737[_0x349350(0x134)](_0x4d74da,_0x2cbf25);}export function createTdxConfigContent(_0x5bddb6){const _0x320a5e={'parent_segment':_0x5bddb6};return JSON['stringify'](_0x320a5e,null,0x2)+'\x0a';}function a158_0x4f46(){const _0x3fbf05=['relative','root','7996500LpoFgD','2367272XZgJuS','stringify','dirname','join','460iIlACZ','object','parent_segment','tdx.json','parse','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','143656idnlwV','63eMsMkp','552561AWJYRh','engage_workspace','string','replace','resolve','8280034QHHwtd','6065yEIXem','3498915wZThGF','startsWith','cwd','segments'];a158_0x4f46=function(){return _0x3fbf05;};return a158_0x4f46();}export function createEngageTdxConfigContent(_0x48f41b){const _0x203e1c=a158_0x40e010,_0x368ed3={'engage_workspace':_0x48f41b};return JSON[_0x203e1c(0x14c)](_0x368ed3,null,0x2)+'\x0a';}
1
+ const a158_0x39f99f=a158_0x488b;function a158_0xcf98(){const _0x3a30dd=['replace','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','startsWith','4311YXFWXg','dirname','stringify','utf-8','197340HpQBuE','1684668NjqZRL','Invalid\x20JSON\x20in\x20','resolve','string','object','60rPlPLU','33170fQzeyy','500268TptNyI','cwd','445563saEjBX','root','605UDrXwF','80HekjWD','relative','segments','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','159425hMoOJO','engage_workspace','25wVsKcc','tdx.json','parent_segment','join','parse'];a158_0xcf98=function(){return _0x3a30dd;};return a158_0xcf98();}(function(_0x445e78,_0x37d6d1){const _0x15602a=a158_0x488b,_0x2af596=_0x445e78();while(!![]){try{const _0x4810dc=-parseInt(_0x15602a(0x72))/0x1*(parseInt(_0x15602a(0x7c))/0x2)+parseInt(_0x15602a(0x7e))/0x3+parseInt(_0x15602a(0x76))/0x4*(-parseInt(_0x15602a(0x6a))/0x5)+parseInt(_0x15602a(0x77))/0x6+-parseInt(_0x15602a(0x68))/0x7*(-parseInt(_0x15602a(0x64))/0x8)+parseInt(_0x15602a(0x80))/0x9+-parseInt(_0x15602a(0x7d))/0xa*(parseInt(_0x15602a(0x82))/0xb);if(_0x4810dc===_0x37d6d1)break;else _0x2af596['push'](_0x2af596['shift']());}catch(_0x48867d){_0x2af596['push'](_0x2af596['shift']());}}}(a158_0xcf98,0x289cf));import{existsSync,readFileSync}from'fs';import a158_0x5b4b68 from'path';const TDX_CONFIG_FILE=a158_0x39f99f(0x6b),SEGMENTS_DIR=a158_0x39f99f(0x66);export function findTdxConfigPath(_0x45f8cb=process[a158_0x39f99f(0x7f)]()){const _0x5caf71=a158_0x39f99f;let _0x57ef00=a158_0x5b4b68[_0x5caf71(0x79)](_0x45f8cb);const _0x5246fe=a158_0x5b4b68[_0x5caf71(0x6e)](_0x57ef00)[_0x5caf71(0x81)];while(_0x57ef00!==_0x5246fe){const _0x54eec8=a158_0x5b4b68[_0x5caf71(0x6d)](_0x57ef00,TDX_CONFIG_FILE);if(existsSync(_0x54eec8))return _0x54eec8;_0x57ef00=a158_0x5b4b68[_0x5caf71(0x73)](_0x57ef00);}return null;}export function loadTdxConfig(_0x252020){const _0x3da517=a158_0x39f99f,_0x56cd1f=readFileSync(_0x252020,_0x3da517(0x75));let _0x10d0ac;try{_0x10d0ac=JSON[_0x3da517(0x6e)](_0x56cd1f);}catch{throw new Error(_0x3da517(0x78)+_0x252020);}if(!_0x10d0ac||typeof _0x10d0ac!==_0x3da517(0x7b))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x20e407=_0x10d0ac,_0x38c796=_0x20e407[_0x3da517(0x6c)]&&typeof _0x20e407['parent_segment']===_0x3da517(0x7a),_0x5d0c29=_0x20e407[_0x3da517(0x69)]&&typeof _0x20e407[_0x3da517(0x69)]===_0x3da517(0x7a);if(!_0x38c796&&!_0x5d0c29)throw new Error(_0x3da517(0x67));const _0x2f7792={};return _0x38c796&&(_0x2f7792[_0x3da517(0x6c)]=_0x20e407['parent_segment']),_0x5d0c29&&(_0x2f7792['engage_workspace']=_0x20e407[_0x3da517(0x69)]),_0x2f7792;}export function findTdxConfig(_0x2abbbe=process[a158_0x39f99f(0x7f)]()){const _0x1c8a7b=a158_0x39f99f,_0x5c581b=findTdxConfigPath(_0x2abbbe);if(!_0x5c581b)throw new Error(_0x1c8a7b(0x70));const _0x44d882=loadTdxConfig(_0x5c581b),_0x40e6eb=a158_0x5b4b68[_0x1c8a7b(0x73)](_0x5c581b);return{'config':_0x44d882,'configPath':_0x5c581b,'configDir':_0x40e6eb};}export function tryFindTdxConfig(_0x59a141){try{return findTdxConfig(_0x59a141);}catch{return null;}}export function getSegmentRootDir(_0x5ad0ab,_0x3656c7=process[a158_0x39f99f(0x7f)]()){const _0x44ba9c=a158_0x39f99f;return a158_0x5b4b68[_0x44ba9c(0x6d)](_0x3656c7,SEGMENTS_DIR,_0x5ad0ab);}export function getTdxConfigPath(_0x5655bb,_0x477bdf=process['cwd']()){const _0x39cc9a=a158_0x39f99f;return a158_0x5b4b68[_0x39cc9a(0x6d)](getSegmentRootDir(_0x5655bb,_0x477bdf),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5a6131,_0xb2675e){const _0x2820c1=a158_0x39f99f,_0x56b636=a158_0x5b4b68[_0x2820c1(0x79)](_0x5a6131),_0x4f4275=a158_0x5b4b68[_0x2820c1(0x65)](_0xb2675e,_0x56b636);if(_0x4f4275[_0x2820c1(0x71)]('..'))return'';return _0x4f4275;}export function localPathToTdFolderPath(_0x5b66e7){const _0x1329b6=a158_0x39f99f,_0x4feea4=a158_0x5b4b68['dirname'](_0x5b66e7);if(_0x4feea4==='.'||_0x4feea4==='')return'';return _0x4feea4[_0x1329b6(0x6f)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x100c7c,_0x33bd20){const _0x4301eb=a158_0x39f99f;if(!_0x100c7c)return _0x33bd20;return a158_0x5b4b68[_0x4301eb(0x6d)](_0x33bd20,_0x100c7c);}export function createTdxConfigContent(_0x419630){const _0x1d0d8c={'parent_segment':_0x419630};return JSON['stringify'](_0x1d0d8c,null,0x2)+'\x0a';}function a158_0x488b(_0x4b5f93,_0x42dc7c){_0x4b5f93=_0x4b5f93-0x64;const _0xcf98cd=a158_0xcf98();let _0x488bf2=_0xcf98cd[_0x4b5f93];return _0x488bf2;}export function createEngageTdxConfigContent(_0xda8fbf){const _0x8130bc=a158_0x39f99f,_0x42ded1={'engage_workspace':_0xda8fbf};return JSON[_0x8130bc(0x74)](_0x42ded1,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- function a159_0x2e06(){const _0x2ce582=['desc','monthly','min','9419724FWSJHW','cron','clear','unknown','boolean','record','array','week','42654PrKrrT','enum','hourly','379531gCCtOu','union','First','masked','object','2205456GAEVUs','nullable','28008KpSCQt','365sNGzvc','day','number','onFailure','19985saxppl','none','optional','Activation\x20name\x20is\x20required','asc','Last','string','Top-N','81GlEkYN','daily','once','99MBFJFs','rows','2LujUkY','minutes_interval','hour','Connection\x20name\x20is\x20required','1336yiDkyq','79190lPvIwW'];a159_0x2e06=function(){return _0x2ce582;};return a159_0x2e06();}const a159_0x45ccb4=a159_0x588a;(function(_0x488b60,_0x156381){const _0x117084=a159_0x588a,_0x155c1c=_0x488b60();while(!![]){try{const _0x4c53fe=-parseInt(_0x117084(0x1df))/0x1*(parseInt(_0x117084(0x1f8))/0x2)+parseInt(_0x117084(0x1f3))/0x3*(-parseInt(_0x117084(0x1e6))/0x4)+-parseInt(_0x117084(0x1e7))/0x5*(parseInt(_0x117084(0x1dc))/0x6)+parseInt(_0x117084(0x1eb))/0x7*(parseInt(_0x117084(0x1fc))/0x8)+parseInt(_0x117084(0x1f6))/0x9*(-parseInt(_0x117084(0x1fd))/0xa)+parseInt(_0x117084(0x1e4))/0xb+parseInt(_0x117084(0x1d4))/0xc;if(_0x4c53fe===_0x156381)break;else _0x155c1c['push'](_0x155c1c['shift']());}catch(_0x239ba7){_0x155c1c['push'](_0x155c1c['shift']());}}}(a159_0x2e06,0x46377));import{z}from'zod';function a159_0x588a(_0x50143f,_0x2b8dc8){_0x50143f=_0x50143f-0x1d1;const _0x2e069b=a159_0x2e06();let _0x588ae2=_0x2e069b[_0x50143f];return _0x588ae2;}export const ScheduleTypeSchema=z[a159_0x45ccb4(0x1dd)](['none',a159_0x45ccb4(0x1de),a159_0x45ccb4(0x1f4),'weekly',a159_0x45ccb4(0x1d2),a159_0x45ccb4(0x1d5),a159_0x45ccb4(0x1f9)]);export const RepeatUnitSchema=z[a159_0x45ccb4(0x1dd)](['minute',a159_0x45ccb4(0x1fa),a159_0x45ccb4(0x1e8),a159_0x45ccb4(0x1db),'month',a159_0x45ccb4(0x1f5),a159_0x45ccb4(0x1ec)]);export const ScheduleDefSchema=z[a159_0x45ccb4(0x1e3)]({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a159_0x45ccb4(0x1ed)](),'repeat_frequency':z['number']()[a159_0x45ccb4(0x1ed)](),'repeat_sub_frequency':z[a159_0x45ccb4(0x1da)](z[a159_0x45ccb4(0x1e9)]())['optional'](),'start_at':z[a159_0x45ccb4(0x1f1)]()['nullable']()[a159_0x45ccb4(0x1ed)](),'end_on':z['string']()['nullable']()[a159_0x45ccb4(0x1ed)](),'timezone':z['string']()[a159_0x45ccb4(0x1ed)]()});export const NotificationDefSchema=z[a159_0x45ccb4(0x1e3)]({'notify_on':z['array'](z[a159_0x45ccb4(0x1dd)](['onSuccess',a159_0x45ccb4(0x1ea)]))[a159_0x45ccb4(0x1ed)](),'email_recipients':z[a159_0x45ccb4(0x1da)](z[a159_0x45ccb4(0x1f1)]())[a159_0x45ccb4(0x1ed)]()});export const ActivationColumnDefSchema=z[a159_0x45ccb4(0x1e0)]([z['string'](),z[a159_0x45ccb4(0x1e3)]({'name':z[a159_0x45ccb4(0x1f1)](),'type':z[a159_0x45ccb4(0x1f1)]()[a159_0x45ccb4(0x1ed)](),'visibility':z[a159_0x45ccb4(0x1dd)]([a159_0x45ccb4(0x1d6),a159_0x45ccb4(0x1e2)])[a159_0x45ccb4(0x1ed)]()})]);export const ActivationBehaviorDefSchema=z[a159_0x45ccb4(0x1e3)]({'columns':z[a159_0x45ccb4(0x1da)](z[a159_0x45ccb4(0x1e3)]({'name':z[a159_0x45ccb4(0x1f1)](),'type':z[a159_0x45ccb4(0x1f1)]()[a159_0x45ccb4(0x1ed)](),'visibility':z[a159_0x45ccb4(0x1dd)]([a159_0x45ccb4(0x1d6),a159_0x45ccb4(0x1e2)])[a159_0x45ccb4(0x1ed)]()}))[a159_0x45ccb4(0x1ed)](),'behavior_table':z[a159_0x45ccb4(0x1f1)]()[a159_0x45ccb4(0x1ed)](),'join_row':z['number']()['nullable']()[a159_0x45ccb4(0x1ed)](),'join_strategy':z[a159_0x45ccb4(0x1dd)](['All',a159_0x45ccb4(0x1e1),a159_0x45ccb4(0x1f0),a159_0x45ccb4(0x1f2)])[a159_0x45ccb4(0x1ed)](),'formatting':z[a159_0x45ccb4(0x1dd)]([a159_0x45ccb4(0x1f7),'cols'])[a159_0x45ccb4(0x1ed)](),'order_by':z[a159_0x45ccb4(0x1da)](z[a159_0x45ccb4(0x1e3)]({'key':z[a159_0x45ccb4(0x1f1)](),'order':z['enum']([a159_0x45ccb4(0x1ef),a159_0x45ccb4(0x1d1)])}))['optional']()});export const ActivationDefSchema=z[a159_0x45ccb4(0x1e3)]({'name':z[a159_0x45ccb4(0x1f1)]()[a159_0x45ccb4(0x1d3)](0x1,a159_0x45ccb4(0x1ee)),'description':z['string']()['optional'](),'connection':z['string']()['min'](0x1,a159_0x45ccb4(0x1fb)),'all_columns':z[a159_0x45ccb4(0x1d8)]()[a159_0x45ccb4(0x1ed)](),'columns':z[a159_0x45ccb4(0x1da)](ActivationColumnDefSchema)[a159_0x45ccb4(0x1ed)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x45ccb4(0x1ed)](),'connector_config':z[a159_0x45ccb4(0x1d9)](z[a159_0x45ccb4(0x1f1)](),z[a159_0x45ccb4(0x1d7)]())['optional'](),'activation_template_id':z['string']()[a159_0x45ccb4(0x1e5)]()['optional'](),'behavior':ActivationBehaviorDefSchema['nullable']()[a159_0x45ccb4(0x1ed)](),'run_after_journey_refresh':z[a159_0x45ccb4(0x1d8)]()[a159_0x45ccb4(0x1ed)](),'nested_workflow_project_name':z[a159_0x45ccb4(0x1f1)]()[a159_0x45ccb4(0x1ed)](),'nested_workflow_name':z[a159_0x45ccb4(0x1f1)]()['optional'](),'lock_enabled':z[a159_0x45ccb4(0x1d8)]()[a159_0x45ccb4(0x1ed)]()});
1
+ const a159_0x3a7056=a159_0x7e56;(function(_0x35afbc,_0x3d02bc){const _0x83594b=a159_0x7e56,_0x4f89fb=_0x35afbc();while(!![]){try{const _0x28b067=-parseInt(_0x83594b(0x1dd))/0x1+-parseInt(_0x83594b(0x1f3))/0x2*(-parseInt(_0x83594b(0x206))/0x3)+parseInt(_0x83594b(0x1e9))/0x4+-parseInt(_0x83594b(0x1ed))/0x5*(-parseInt(_0x83594b(0x1f6))/0x6)+parseInt(_0x83594b(0x1ea))/0x7*(parseInt(_0x83594b(0x203))/0x8)+parseInt(_0x83594b(0x1e3))/0x9*(parseInt(_0x83594b(0x1f0))/0xa)+-parseInt(_0x83594b(0x1ff))/0xb*(parseInt(_0x83594b(0x1f2))/0xc);if(_0x28b067===_0x3d02bc)break;else _0x4f89fb['push'](_0x4f89fb['shift']());}catch(_0x5c82a6){_0x4f89fb['push'](_0x4f89fb['shift']());}}}(a159_0x485f,0x3896a));import{z}from'zod';export const ScheduleTypeSchema=z[a159_0x3a7056(0x1f4)]([a159_0x3a7056(0x1f8),a159_0x3a7056(0x1fb),a159_0x3a7056(0x1fc),a159_0x3a7056(0x202),a159_0x3a7056(0x1e4),a159_0x3a7056(0x1e8),a159_0x3a7056(0x1de)]);export const RepeatUnitSchema=z[a159_0x3a7056(0x1f4)]([a159_0x3a7056(0x1fe),'hour',a159_0x3a7056(0x1f5),'week',a159_0x3a7056(0x207),a159_0x3a7056(0x1e6),a159_0x3a7056(0x1f8)]);export const ScheduleDefSchema=z[a159_0x3a7056(0x1ec)]({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema[a159_0x3a7056(0x1fd)](),'repeat_frequency':z[a159_0x3a7056(0x1f9)]()[a159_0x3a7056(0x1fd)](),'repeat_sub_frequency':z[a159_0x3a7056(0x1e2)](z['number']())[a159_0x3a7056(0x1fd)](),'start_at':z[a159_0x3a7056(0x1e1)]()[a159_0x3a7056(0x1f7)]()[a159_0x3a7056(0x1fd)](),'end_on':z['string']()[a159_0x3a7056(0x1f7)]()[a159_0x3a7056(0x1fd)](),'timezone':z[a159_0x3a7056(0x1e1)]()[a159_0x3a7056(0x1fd)]()});export const NotificationDefSchema=z[a159_0x3a7056(0x1ec)]({'notify_on':z[a159_0x3a7056(0x1e2)](z[a159_0x3a7056(0x1f4)]([a159_0x3a7056(0x1e0),a159_0x3a7056(0x1df)]))[a159_0x3a7056(0x1fd)](),'email_recipients':z[a159_0x3a7056(0x1e2)](z[a159_0x3a7056(0x1e1)]())[a159_0x3a7056(0x1fd)]()});export const ActivationColumnDefSchema=z['union']([z['string'](),z[a159_0x3a7056(0x1ec)]({'name':z[a159_0x3a7056(0x1e1)](),'type':z[a159_0x3a7056(0x1e1)]()[a159_0x3a7056(0x1fd)](),'visibility':z[a159_0x3a7056(0x1f4)]([a159_0x3a7056(0x1fa),a159_0x3a7056(0x1e5)])[a159_0x3a7056(0x1fd)]()})]);function a159_0x7e56(_0x596d24,_0xedab8c){_0x596d24=_0x596d24-0x1dd;const _0x485ff5=a159_0x485f();let _0x7e5657=_0x485ff5[_0x596d24];return _0x7e5657;}export const ActivationBehaviorDefSchema=z[a159_0x3a7056(0x1ec)]({'columns':z[a159_0x3a7056(0x1e2)](z[a159_0x3a7056(0x1ec)]({'name':z[a159_0x3a7056(0x1e1)](),'type':z[a159_0x3a7056(0x1e1)]()[a159_0x3a7056(0x1fd)](),'visibility':z[a159_0x3a7056(0x1f4)]([a159_0x3a7056(0x1fa),a159_0x3a7056(0x1e5)])[a159_0x3a7056(0x1fd)]()}))[a159_0x3a7056(0x1fd)](),'behavior_table':z[a159_0x3a7056(0x1e1)]()[a159_0x3a7056(0x1fd)](),'join_row':z[a159_0x3a7056(0x1f9)]()[a159_0x3a7056(0x1f7)]()[a159_0x3a7056(0x1fd)](),'join_strategy':z['enum'](['All',a159_0x3a7056(0x1ef),a159_0x3a7056(0x204),a159_0x3a7056(0x1f1)])['optional'](),'formatting':z[a159_0x3a7056(0x1f4)]([a159_0x3a7056(0x201),'cols'])[a159_0x3a7056(0x1fd)](),'order_by':z[a159_0x3a7056(0x1e2)](z[a159_0x3a7056(0x1ec)]({'key':z[a159_0x3a7056(0x1e1)](),'order':z['enum']([a159_0x3a7056(0x200),'desc'])}))[a159_0x3a7056(0x1fd)]()});function a159_0x485f(){const _0x1f8611=['2438682EFkahZ','nullable','none','number','clear','hourly','daily','optional','minute','1905838EzDIOm','asc','rows','weekly','136216ZOHMWJ','Last','record','6yMhpGG','month','207110KDscvd','minutes_interval','onFailure','onSuccess','string','array','5715TEXZec','monthly','masked','once','boolean','cron','1037096fYWRkp','77sYgPex','Activation\x20name\x20is\x20required','object','5aniijY','min','First','380HRKlcH','Top-N','48ZxGSuX','254780jwwCvl','enum','day'];a159_0x485f=function(){return _0x1f8611;};return a159_0x485f();}export const ActivationDefSchema=z[a159_0x3a7056(0x1ec)]({'name':z[a159_0x3a7056(0x1e1)]()[a159_0x3a7056(0x1ee)](0x1,a159_0x3a7056(0x1eb)),'description':z['string']()[a159_0x3a7056(0x1fd)](),'connection':z[a159_0x3a7056(0x1e1)]()['min'](0x1,'Connection\x20name\x20is\x20required'),'all_columns':z['boolean']()[a159_0x3a7056(0x1fd)](),'columns':z[a159_0x3a7056(0x1e2)](ActivationColumnDefSchema)[a159_0x3a7056(0x1fd)](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a159_0x3a7056(0x1fd)](),'connector_config':z[a159_0x3a7056(0x205)](z[a159_0x3a7056(0x1e1)](),z['unknown']())[a159_0x3a7056(0x1fd)](),'activation_template_id':z[a159_0x3a7056(0x1e1)]()['nullable']()[a159_0x3a7056(0x1fd)](),'behavior':ActivationBehaviorDefSchema['nullable']()[a159_0x3a7056(0x1fd)](),'run_after_journey_refresh':z[a159_0x3a7056(0x1e7)]()['optional'](),'nested_workflow_project_name':z['string']()['optional'](),'nested_workflow_name':z['string']()['optional'](),'lock_enabled':z[a159_0x3a7056(0x1e7)]()[a159_0x3a7056(0x1fd)]()});
@@ -1 +1 @@
1
- function a160_0x3c9a(){var _0x478745=['10689392LIqXiH','3541028lCMVPT','24669XkcuSJ','396687SmSkKu','3656lbNRlq','10472594OpmNSG','12xpFoiN','2zgAtAe','3QuFWVk','5086790WHNtrR','2257685YdiIzp'];a160_0x3c9a=function(){return _0x478745;};return a160_0x3c9a();}function a160_0x2e79(_0x3806b6,_0x13a40b){_0x3806b6=_0x3806b6-0x1d8;var _0x3c9a7b=a160_0x3c9a();var _0x2e79dc=_0x3c9a7b[_0x3806b6];return _0x2e79dc;}(function(_0x93ede4,_0x125b47){var _0x591e4c=a160_0x2e79,_0x174037=_0x93ede4();while(!![]){try{var _0x4ed5dc=parseInt(_0x591e4c(0x1d8))/0x1*(-parseInt(_0x591e4c(0x1dc))/0x2)+parseInt(_0x591e4c(0x1dd))/0x3*(parseInt(_0x591e4c(0x1e1))/0x4)+-parseInt(_0x591e4c(0x1df))/0x5*(parseInt(_0x591e4c(0x1db))/0x6)+parseInt(_0x591e4c(0x1e0))/0x7+-parseInt(_0x591e4c(0x1d9))/0x8*(-parseInt(_0x591e4c(0x1e2))/0x9)+-parseInt(_0x591e4c(0x1de))/0xa+-parseInt(_0x591e4c(0x1da))/0xb;if(_0x4ed5dc===_0x125b47)break;else _0x174037['push'](_0x174037['shift']());}catch(_0x44ce02){_0x174037['push'](_0x174037['shift']());}}}(a160_0x3c9a,0xdcd08));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ (function(_0x7e2e09,_0x12e918){var _0x4156c7=a160_0x3fe2,_0x1f4072=_0x7e2e09();while(!![]){try{var _0x2c3a3c=-parseInt(_0x4156c7(0x1d3))/0x1*(-parseInt(_0x4156c7(0x1d2))/0x2)+parseInt(_0x4156c7(0x1d5))/0x3*(parseInt(_0x4156c7(0x1d6))/0x4)+-parseInt(_0x4156c7(0x1d0))/0x5*(-parseInt(_0x4156c7(0x1d4))/0x6)+parseInt(_0x4156c7(0x1d1))/0x7*(parseInt(_0x4156c7(0x1d8))/0x8)+-parseInt(_0x4156c7(0x1d7))/0x9+-parseInt(_0x4156c7(0x1da))/0xa+-parseInt(_0x4156c7(0x1d9))/0xb;if(_0x2c3a3c===_0x12e918)break;else _0x1f4072['push'](_0x1f4072['shift']());}catch(_0x380501){_0x1f4072['push'](_0x1f4072['shift']());}}}(a160_0x51bf,0x584d0));function a160_0x3fe2(_0x5a5e1f,_0xcc1822){_0x5a5e1f=_0x5a5e1f-0x1d0;var _0x51bfbb=a160_0x51bf();var _0x3fe29d=_0x51bfbb[_0x5a5e1f];return _0x3fe29d;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';function a160_0x51bf(){var _0x56c771=['13NnZoWC','283362AVqZkj','56340kSikIf','152JagpLv','2065275JIMqmr','1075808PIeFIC','4460434MUoteK','1104290KbkQbV','5EdHVzJ','14LxCocq','11886fDgyVG'];a160_0x51bf=function(){return _0x56c771;};return a160_0x51bf();}
@@ -1 +1 @@
1
- const a161_0x1b857f=a161_0x349c;(function(_0x3d414c,_0x2b9b0d){const _0x3e36c4=a161_0x349c,_0x92add6=_0x3d414c();while(!![]){try{const _0x1e7ebc=parseInt(_0x3e36c4(0x1e9))/0x1*(-parseInt(_0x3e36c4(0x1ef))/0x2)+-parseInt(_0x3e36c4(0x1f5))/0x3+parseInt(_0x3e36c4(0x202))/0x4+-parseInt(_0x3e36c4(0x1f9))/0x5*(-parseInt(_0x3e36c4(0x201))/0x6)+parseInt(_0x3e36c4(0x1e6))/0x7+parseInt(_0x3e36c4(0x1f3))/0x8*(parseInt(_0x3e36c4(0x1f0))/0x9)+-parseInt(_0x3e36c4(0x1f1))/0xa*(parseInt(_0x3e36c4(0x209))/0xb);if(_0x1e7ebc===_0x2b9b0d)break;else _0x92add6['push'](_0x92add6['shift']());}catch(_0x2aa19b){_0x92add6['push'](_0x92add6['shift']());}}}(a161_0x4188,0x670ed));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';function a161_0x4188(){const _0x426083=['refine','array','filter','18neynKm','153dpZGhX','7051860ZdBmNq','ab_test','254168dJvCxV','literal','1300494NfbKmA','activation','journeys','launched','9605AysYZk','string','end','number','optional','lazy','enum','wait','2190vKdFSc','2692492UStVYF','stages','isArray','record','simulation','jump','length','22jLneTI','day','boolean','draft','merge','3015033WrnUBo','object','no_reentry','8791fRLsyX','reentry_unless_goal_achieved','week'];a161_0x4188=function(){return _0x426083;};return a161_0x4188();}export const JourneyStateTypeSchema=z[a161_0x1b857f(0x1ff)]([a161_0x1b857f(0x20c),a161_0x1b857f(0x206),a161_0x1b857f(0x1f8)]);export const ReentryModeTypeSchema=z[a161_0x1b857f(0x1ff)]([a161_0x1b857f(0x1e8),a161_0x1b857f(0x1ea),'reentry_always']);export const WaitUnitTypeSchema=z[a161_0x1b857f(0x1ff)]([a161_0x1b857f(0x20a),a161_0x1b857f(0x1eb)]);export const StepTypeValueSchema=z[a161_0x1b857f(0x1ff)]([a161_0x1b857f(0x200),a161_0x1b857f(0x1f6),'decision_point','ab_test',a161_0x1b857f(0x20d),'jump',a161_0x1b857f(0x1fb)]);function a161_0x349c(_0x45b157,_0x2a4f96){_0x45b157=_0x45b157-0x1e6;const _0x41888b=a161_0x4188();let _0x349c40=_0x41888b[_0x45b157];return _0x349c40;}export const EmbeddedSegmentDefSchema=z[a161_0x1b857f(0x1e7)]({'description':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z['string'](),'stage':z['string'](),'bundle_id':z['string']()[a161_0x1b857f(0x1fd)]()});export const CriteriaDefSchema=z[a161_0x1b857f(0x1e7)]({'name':z[a161_0x1b857f(0x1fa)](),'description':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'segment':z['string'](),'target':JumpTargetDefSchema[a161_0x1b857f(0x1fd)]()});const WaitConditionTimeoutDefSchema=z[a161_0x1b857f(0x1e7)]({'duration':z[a161_0x1b857f(0x1fc)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)]()}),WaitConditionDefSchema=z['object']({'segment':z[a161_0x1b857f(0x1fa)](),'next':z[a161_0x1b857f(0x1fa)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a161_0x1b857f(0x1fd)]()}),WaitStepParamsDefSchema=z['object']({'duration':z[a161_0x1b857f(0x1fc)]()[a161_0x1b857f(0x1fd)](),'unit':WaitUnitTypeSchema[a161_0x1b857f(0x1fd)](),'wait_until':z['string']()['optional'](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a161_0x1b857f(0x1ed)](z[a161_0x1b857f(0x1fa)]())[a161_0x1b857f(0x1fd)]()}),StepBaseFields={'name':z[a161_0x1b857f(0x1fa)](),'uuid':z['string']()[a161_0x1b857f(0x1fd)](),'next':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)]()},WaitStepDefSchema=z[a161_0x1b857f(0x1e7)]({...StepBaseFields,'type':z['literal'](a161_0x1b857f(0x200)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a161_0x1b857f(0x1e7)]({'activation':z[a161_0x1b857f(0x1fa)]()}),ActivationStepDefSchema=z[a161_0x1b857f(0x1e7)]({...StepBaseFields,'type':z['literal'](a161_0x1b857f(0x1f6)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x1b857f(0x1e7)]({'name':z['string'](),'segment':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'segment_id':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'excluded':z[a161_0x1b857f(0x20b)]()['optional'](),'next':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z[a161_0x1b857f(0x1ed)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x1b857f(0x1e7)]({...StepBaseFields,'type':z[a161_0x1b857f(0x1f4)]('decision_point'),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z['object']({'id':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'name':z['string'](),'percentage':z[a161_0x1b857f(0x1fc)](),'next':z['string']()['optional']()}),AbTestStepParamsDefSchema=z['object']({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'customized_split':z['boolean']()[a161_0x1b857f(0x1fd)]()}),AbTestStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x1b857f(0x1f2)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x1b857f(0x1f4)](a161_0x1b857f(0x20d))}),JumpStepParamsDefSchema=z[a161_0x1b857f(0x1e7)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x1b857f(0x207)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x1b857f(0x1e7)]({...StepBaseFields,'type':z[a161_0x1b857f(0x1f4)](a161_0x1b857f(0x1fb))})['passthrough']();export const StepDefSchema=z['discriminatedUnion']('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a161_0x1b857f(0x1e7)]({'name':z[a161_0x1b857f(0x1fa)](),'description':z['string']()[a161_0x1b857f(0x1fd)](),'id':z[a161_0x1b857f(0x1fa)]()['optional'](),'entry_criteria':CriteriaDefSchema[a161_0x1b857f(0x1fd)](),'exit_criteria':z['array'](CriteriaDefSchema)['optional'](),'milestone':CriteriaDefSchema[a161_0x1b857f(0x1fd)](),'root_step':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'steps':z['array'](StepDefSchema)[a161_0x1b857f(0x1fd)]()});export const JourneyEntryDefSchema=z['object']({'name':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'version':z['string']()['optional'](),'state':JourneyStateTypeSchema[a161_0x1b857f(0x1fd)](),'latest':z[a161_0x1b857f(0x20b)]()['optional'](),'stages':z[a161_0x1b857f(0x1ed)](StageDefSchema),'id':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'version_number':z[a161_0x1b857f(0x1fc)]()[a161_0x1b857f(0x1fd)](),'goal':CriteriaDefSchema[a161_0x1b857f(0x1fd)](),'reentry':ReentryModeTypeSchema[a161_0x1b857f(0x1fd)]()});export const JourneyDefSchema=z[a161_0x1b857f(0x1fe)](()=>z[a161_0x1b857f(0x1e7)]({'type':z['literal']('journey'),'name':z[a161_0x1b857f(0x1fa)]()['min'](0x1,'Journey\x20name\x20is\x20required'),'description':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'bundle_id':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'bundle_name':z['string']()['optional'](),'folder_id':z['string']()[a161_0x1b857f(0x1fd)](),'reentry':ReentryModeTypeSchema['optional'](),'allow_reentry':z[a161_0x1b857f(0x20b)]()[a161_0x1b857f(0x1fd)](),'goal':CriteriaDefSchema['optional'](),'id':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'version':z[a161_0x1b857f(0x1fa)]()[a161_0x1b857f(0x1fd)](),'version_number':z[a161_0x1b857f(0x1fc)]()[a161_0x1b857f(0x1fd)](),'stages':z[a161_0x1b857f(0x1ed)](StageDefSchema)['optional'](),'versions':z[a161_0x1b857f(0x1ed)](JourneyEntryDefSchema)[a161_0x1b857f(0x1fd)](),'journeys':z[a161_0x1b857f(0x1ed)](JourneyEntryDefSchema)[a161_0x1b857f(0x1fd)](),'segments':z[a161_0x1b857f(0x205)](z[a161_0x1b857f(0x1fa)](),EmbeddedSegmentDefSchema)[a161_0x1b857f(0x1fd)](),'activations':z['record'](z[a161_0x1b857f(0x1fa)](),ActivationDefSchema)[a161_0x1b857f(0x1fd)]()})[a161_0x1b857f(0x1ec)](_0xb9caf3=>{const _0x22bc21=a161_0x1b857f,_0x1ce4fc=[_0xb9caf3[_0x22bc21(0x1f7)],_0xb9caf3[_0x22bc21(0x203)],_0xb9caf3['versions']][_0x22bc21(0x1ee)](_0x41c0a2=>Array[_0x22bc21(0x204)](_0x41c0a2)&&_0x41c0a2['length']>0x0)[_0x22bc21(0x208)];return _0x1ce4fc===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a161_0x71f79b=a161_0x120c;(function(_0x42221f,_0x1d6fc9){const _0xef80af=a161_0x120c,_0x57dfec=_0x42221f();while(!![]){try{const _0x5bb5a4=parseInt(_0xef80af(0x95))/0x1+-parseInt(_0xef80af(0x85))/0x2*(-parseInt(_0xef80af(0x84))/0x3)+parseInt(_0xef80af(0x8a))/0x4*(-parseInt(_0xef80af(0x86))/0x5)+-parseInt(_0xef80af(0x97))/0x6*(-parseInt(_0xef80af(0x7e))/0x7)+parseInt(_0xef80af(0x8b))/0x8+parseInt(_0xef80af(0x8e))/0x9+-parseInt(_0xef80af(0x7d))/0xa;if(_0x5bb5a4===_0x1d6fc9)break;else _0x57dfec['push'](_0x57dfec['shift']());}catch(_0x25bf37){_0x57dfec['push'](_0x57dfec['shift']());}}}(a161_0x138f,0xeb594));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';function a161_0x120c(_0x10e97e,_0x766c6d){_0x10e97e=_0x10e97e-0x73;const _0x138f74=a161_0x138f();let _0x120ccf=_0x138f74[_0x10e97e];return _0x120ccf;}export const JourneyStateTypeSchema=z[a161_0x71f79b(0x77)]([a161_0x71f79b(0x94),a161_0x71f79b(0x80),a161_0x71f79b(0x7a)]);export const ReentryModeTypeSchema=z['enum']([a161_0x71f79b(0x87),a161_0x71f79b(0x99),'reentry_always']);export const WaitUnitTypeSchema=z[a161_0x71f79b(0x77)]([a161_0x71f79b(0x8f),'week']);export const StepTypeValueSchema=z['enum'](['wait',a161_0x71f79b(0x82),'decision_point',a161_0x71f79b(0x89),a161_0x71f79b(0x9b),'jump',a161_0x71f79b(0x75)]);export const EmbeddedSegmentDefSchema=z[a161_0x71f79b(0x7f)]({'description':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a161_0x71f79b(0x9a)](),'stage':z[a161_0x71f79b(0x9a)](),'bundle_id':z[a161_0x71f79b(0x9a)]()['optional']()});export const CriteriaDefSchema=z[a161_0x71f79b(0x7f)]({'name':z['string'](),'description':z[a161_0x71f79b(0x9a)]()['optional'](),'segment':z['string'](),'target':JumpTargetDefSchema[a161_0x71f79b(0x73)]()});const WaitConditionTimeoutDefSchema=z[a161_0x71f79b(0x7f)]({'duration':z[a161_0x71f79b(0x8d)](),'unit':WaitUnitTypeSchema,'next':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)]()}),WaitConditionDefSchema=z[a161_0x71f79b(0x7f)]({'segment':z[a161_0x71f79b(0x9a)](),'next':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'timeout':WaitConditionTimeoutDefSchema[a161_0x71f79b(0x73)]()}),WaitStepParamsDefSchema=z[a161_0x71f79b(0x7f)]({'duration':z[a161_0x71f79b(0x8d)]()[a161_0x71f79b(0x73)](),'unit':WaitUnitTypeSchema[a161_0x71f79b(0x73)](),'wait_until':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'condition':WaitConditionDefSchema[a161_0x71f79b(0x73)](),'days_of_week':z[a161_0x71f79b(0x93)](z[a161_0x71f79b(0x9a)]())[a161_0x71f79b(0x73)]()}),StepBaseFields={'name':z[a161_0x71f79b(0x9a)](),'uuid':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'next':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)]()},WaitStepDefSchema=z[a161_0x71f79b(0x7f)]({...StepBaseFields,'type':z[a161_0x71f79b(0x91)]('wait'),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a161_0x71f79b(0x9a)]()}),ActivationStepDefSchema=z['object']({...StepBaseFields,'type':z[a161_0x71f79b(0x91)](a161_0x71f79b(0x82)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a161_0x71f79b(0x7f)]({'name':z[a161_0x71f79b(0x9a)](),'segment':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'segment_id':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'excluded':z[a161_0x71f79b(0x7b)]()[a161_0x71f79b(0x73)](),'next':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)]()}),DecisionPointStepParamsDefSchema=z[a161_0x71f79b(0x7f)]({'branches':z[a161_0x71f79b(0x93)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a161_0x71f79b(0x7f)]({...StepBaseFields,'type':z[a161_0x71f79b(0x91)](a161_0x71f79b(0x98)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a161_0x71f79b(0x7f)]({'id':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'name':z['string'](),'percentage':z['number'](),'next':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)]()}),AbTestStepParamsDefSchema=z['object']({'variants':z[a161_0x71f79b(0x93)](AbTestVariantDefSchema),'unique_id':z[a161_0x71f79b(0x9a)]()['optional'](),'customized_split':z[a161_0x71f79b(0x7b)]()[a161_0x71f79b(0x73)]()}),AbTestStepDefSchema=z[a161_0x71f79b(0x7f)]({...StepBaseFields,'type':z['literal'](a161_0x71f79b(0x89)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z['literal'](a161_0x71f79b(0x9b))}),JumpStepParamsDefSchema=z[a161_0x71f79b(0x7f)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a161_0x71f79b(0x7f)]({...StepBaseFields,'type':z['literal'](a161_0x71f79b(0x96)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a161_0x71f79b(0x7f)]({...StepBaseFields,'type':z[a161_0x71f79b(0x91)](a161_0x71f79b(0x75))})['passthrough']();export const StepDefSchema=z[a161_0x71f79b(0x78)]('type',[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a161_0x71f79b(0x9a)](),'description':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'id':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'entry_criteria':CriteriaDefSchema[a161_0x71f79b(0x73)](),'exit_criteria':z[a161_0x71f79b(0x93)](CriteriaDefSchema)[a161_0x71f79b(0x73)](),'milestone':CriteriaDefSchema[a161_0x71f79b(0x73)](),'root_step':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'steps':z[a161_0x71f79b(0x93)](StepDefSchema)[a161_0x71f79b(0x73)]()});export const JourneyEntryDefSchema=z[a161_0x71f79b(0x7f)]({'name':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'version':z['string']()[a161_0x71f79b(0x73)](),'state':JourneyStateTypeSchema[a161_0x71f79b(0x73)](),'latest':z['boolean']()[a161_0x71f79b(0x73)](),'stages':z['array'](StageDefSchema),'id':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'version_number':z[a161_0x71f79b(0x8d)]()[a161_0x71f79b(0x73)](),'goal':CriteriaDefSchema['optional'](),'reentry':ReentryModeTypeSchema['optional']()});export const JourneyDefSchema=z[a161_0x71f79b(0x8c)](()=>z[a161_0x71f79b(0x7f)]({'type':z[a161_0x71f79b(0x91)](a161_0x71f79b(0x9c)),'name':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x7c)](0x1,a161_0x71f79b(0x92)),'description':z['string']()[a161_0x71f79b(0x73)](),'bundle_id':z[a161_0x71f79b(0x9a)]()['optional'](),'bundle_name':z[a161_0x71f79b(0x9a)]()[a161_0x71f79b(0x73)](),'folder_id':z['string']()[a161_0x71f79b(0x73)](),'reentry':ReentryModeTypeSchema[a161_0x71f79b(0x73)](),'allow_reentry':z[a161_0x71f79b(0x7b)]()[a161_0x71f79b(0x73)](),'goal':CriteriaDefSchema[a161_0x71f79b(0x73)](),'id':z['string']()[a161_0x71f79b(0x73)](),'version':z['string']()[a161_0x71f79b(0x73)](),'version_number':z[a161_0x71f79b(0x8d)]()['optional'](),'stages':z[a161_0x71f79b(0x93)](StageDefSchema)[a161_0x71f79b(0x73)](),'versions':z[a161_0x71f79b(0x93)](JourneyEntryDefSchema)['optional'](),'journeys':z[a161_0x71f79b(0x93)](JourneyEntryDefSchema)['optional'](),'segments':z[a161_0x71f79b(0x79)](z['string'](),EmbeddedSegmentDefSchema)[a161_0x71f79b(0x73)](),'activations':z[a161_0x71f79b(0x79)](z[a161_0x71f79b(0x9a)](),ActivationDefSchema)[a161_0x71f79b(0x73)]()})['refine'](_0x457df8=>{const _0x3e3cca=a161_0x71f79b,_0x4341fe=[_0x457df8[_0x3e3cca(0x76)],_0x457df8[_0x3e3cca(0x90)],_0x457df8[_0x3e3cca(0x74)]][_0x3e3cca(0x81)](_0x112306=>Array[_0x3e3cca(0x83)](_0x112306)&&_0x112306['length']>0x0)[_0x3e3cca(0x88)];return _0x4341fe===0x1;},{'message':'Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions'}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;function a161_0x138f(){const _0x1c06cc=['day','stages','literal','Journey\x20name\x20is\x20required','array','draft','783203TaDaHj','jump','3102CQrtlo','decision_point','reentry_unless_goal_achieved','string','merge','journey','optional','versions','end','journeys','enum','discriminatedUnion','record','launched','boolean','min','16828410CyDTus','1596CtNcSs','object','simulation','filter','activation','isArray','3qSKQJu','1115990HKYMjr','2250Qbbvfr','no_reentry','length','ab_test','9736uYIbhi','12966432cWdTGh','lazy','number','5960259tAxVNQ'];a161_0x138f=function(){return _0x1c06cc;};return a161_0x138f();}
@@ -1 +1 @@
1
- (function(_0x50f36f,_0x3da38b){var _0x49d725=a163_0x15b7,_0x38c6b9=_0x50f36f();while(!![]){try{var _0x11fa91=parseInt(_0x49d725(0x19b))/0x1+parseInt(_0x49d725(0x19d))/0x2*(-parseInt(_0x49d725(0x19a))/0x3)+-parseInt(_0x49d725(0x194))/0x4+-parseInt(_0x49d725(0x199))/0x5+-parseInt(_0x49d725(0x197))/0x6*(parseInt(_0x49d725(0x196))/0x7)+-parseInt(_0x49d725(0x198))/0x8+-parseInt(_0x49d725(0x19c))/0x9*(-parseInt(_0x49d725(0x195))/0xa);if(_0x11fa91===_0x3da38b)break;else _0x38c6b9['push'](_0x38c6b9['shift']());}catch(_0x3e565e){_0x38c6b9['push'](_0x38c6b9['shift']());}}}(a163_0x1181,0x85d99));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a163_0x15b7(_0x2949bf,_0x3b5a98){_0x2949bf=_0x2949bf-0x194;var _0x11813e=a163_0x1181();var _0x15b7a5=_0x11813e[_0x2949bf];return _0x15b7a5;}function a163_0x1181(){var _0x276418=['4906128ovqfDF','2267544CsDCLD','920200nCKRLI','15LGQVNL','939348MUAFWG','15638391hDTNZR','309006SRvWJl','284048YfiBNN','10yvabGu','7yTwhnm'];a163_0x1181=function(){return _0x276418;};return a163_0x1181();}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ function a163_0xae51(_0x36044a,_0x332130){_0x36044a=_0x36044a-0x8e;var _0x2fafce=a163_0x2faf();var _0xae51c0=_0x2fafce[_0x36044a];return _0xae51c0;}(function(_0xabea4c,_0x2a1b07){var _0x5e81a8=a163_0xae51,_0x2e26ec=_0xabea4c();while(!![]){try{var _0x523a04=-parseInt(_0x5e81a8(0x91))/0x1*(parseInt(_0x5e81a8(0x99))/0x2)+parseInt(_0x5e81a8(0x97))/0x3*(-parseInt(_0x5e81a8(0x95))/0x4)+-parseInt(_0x5e81a8(0x8e))/0x5+-parseInt(_0x5e81a8(0x94))/0x6*(parseInt(_0x5e81a8(0x98))/0x7)+-parseInt(_0x5e81a8(0x96))/0x8+parseInt(_0x5e81a8(0x92))/0x9*(-parseInt(_0x5e81a8(0x8f))/0xa)+parseInt(_0x5e81a8(0x93))/0xb*(parseInt(_0x5e81a8(0x90))/0xc);if(_0x523a04===_0x2a1b07)break;else _0x2e26ec['push'](_0x2e26ec['shift']());}catch(_0x5c2b96){_0x2e26ec['push'](_0x2e26ec['shift']());}}}(a163_0x2faf,0x7361d));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';function a163_0x2faf(){var _0x4bcf87=['11260QJMJbj','1365864dJrOKc','573NCdkAq','2518544IOaOvr','538286rjOxfr','4518840yvqYzJ','6140EZElDF','12dXQflL','3ZjjThc','9567cVWuNe','42951414rgnntL','6TZhlMx'];a163_0x2faf=function(){return _0x4bcf87;};return a163_0x2faf();}
@@ -1 +1 @@
1
- const a164_0x450081=a164_0x38df;function a164_0x59bc(){const _0x227e61=['GreaterEqual','Behavior','3403284hKrFkZ','8pKIYSg','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','17192640VoLoIH','batch','Contain','TimeRange\x20operator\x20requires\x20\x27duration\x27','Regexp','funnel_stage','object','Value','union','3094008NmtTwY','Equal','discriminatedUnion','Count','1982730yBVkaR','Segment\x20reference\x20must\x20not\x20be\x20empty','Operator\x20\x27','Max','Column','type','EndWith','literal','First','And','CountDistinct','day','unit','enum','realtime','boolean','TimeWithinNext','Sum','array','Between','exclude','2253662TPfhGI','Average','custom','duration','8ODgmBi','4273520JvNxRK','MISSING_TIME_UNIT','minute','\x27\x20requires\x20a\x20value','from','number','string','Min','LessEqual','11fSzRwu','month','35cyeoar','Segment\x20name\x20is\x20required','Last','value','\x27\x20requires\x20a\x20time\x20unit','StartWith','has','1mDQefM','addIssue','lazy','superRefine','operator','TimeRange','segment','Less','any','min','TimeRange\x20operator\x20requires\x20\x27from\x27','3716937RryuWQ','all','TimeWithinPast','optional','Greater','week'];a164_0x59bc=function(){return _0x227e61;};return a164_0x59bc();}(function(_0x558f53,_0x5ad823){const _0x34e5ae=a164_0x38df,_0x253327=_0x558f53();while(!![]){try{const _0x23d338=-parseInt(_0x34e5ae(0x14d))/0x1*(parseInt(_0x34e5ae(0x185))/0x2)+parseInt(_0x34e5ae(0x16c))/0x3+parseInt(_0x34e5ae(0x13a))/0x4*(-parseInt(_0x34e5ae(0x13b))/0x5)+parseInt(_0x34e5ae(0x170))/0x6*(parseInt(_0x34e5ae(0x146))/0x7)+parseInt(_0x34e5ae(0x161))/0x8*(-parseInt(_0x34e5ae(0x158))/0x9)+parseInt(_0x34e5ae(0x163))/0xa+parseInt(_0x34e5ae(0x144))/0xb*(-parseInt(_0x34e5ae(0x160))/0xc);if(_0x23d338===_0x5ad823)break;else _0x253327['push'](_0x253327['shift']());}catch(_0x5de244){_0x253327['push'](_0x253327['shift']());}}}(a164_0x59bc,0xd4694));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x450081(0x17d)]([a164_0x450081(0x16d),a164_0x450081(0x15c),a164_0x450081(0x154),a164_0x450081(0x15e),'LessEqual','In',a164_0x450081(0x183),a164_0x450081(0x167),'IsNull','TimeWithinPast','TimeWithinNext',a164_0x450081(0x165),a164_0x450081(0x14b),'EndWith',a164_0x450081(0x152)]);export const TimeUnitSchema=z[a164_0x450081(0x17d)](['second',a164_0x450081(0x13d),'hour',a164_0x450081(0x17b),a164_0x450081(0x15d),a164_0x450081(0x145),'year']);export const AggregationTypeSchema=z[a164_0x450081(0x17d)](['Count',a164_0x450081(0x181),'Average',a164_0x450081(0x142),a164_0x450081(0x173),a164_0x450081(0x17a),a164_0x450081(0x178),'Last']);const TemporalValueSchema=z[a164_0x450081(0x16b)]([z[a164_0x450081(0x169)]({'timestamp':z[a164_0x450081(0x141)]()}),z[a164_0x450081(0x169)]({'last':z[a164_0x450081(0x16b)]([z['number'](),z['record'](z[a164_0x450081(0x141)](),z[a164_0x450081(0x140)]())]),'unit':z[a164_0x450081(0x141)]()})]),OperatorValueSchema=z['union']([z[a164_0x450081(0x141)](),z[a164_0x450081(0x140)](),z[a164_0x450081(0x17f)](),TemporalValueSchema,z[a164_0x450081(0x182)](z[a164_0x450081(0x16b)]([z[a164_0x450081(0x141)](),z['number'](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x450081(0x16d),a164_0x450081(0x15c),a164_0x450081(0x15e),'Less',a164_0x450081(0x143),'In',a164_0x450081(0x165),'StartWith',a164_0x450081(0x176),a164_0x450081(0x167),a164_0x450081(0x15a),a164_0x450081(0x180)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x450081(0x15a),a164_0x450081(0x180)]);export const OperatorDefSchema=z['object']({'type':OperatorTypeSchema,'not':z['boolean']()[a164_0x450081(0x15b)](),'value':OperatorValueSchema['optional'](),'min':z[a164_0x450081(0x16b)]([z[a164_0x450081(0x140)](),z[a164_0x450081(0x141)](),TemporalValueSchema])[a164_0x450081(0x15b)](),'max':z[a164_0x450081(0x16b)]([z[a164_0x450081(0x140)](),z[a164_0x450081(0x141)](),TemporalValueSchema])[a164_0x450081(0x15b)](),'unit':TimeUnitSchema['optional'](),'duration':z['object']({'day':z['number']()['optional'](),'week':z[a164_0x450081(0x140)]()[a164_0x450081(0x15b)](),'month':z[a164_0x450081(0x140)]()[a164_0x450081(0x15b)](),'year':z[a164_0x450081(0x140)]()['optional'](),'hour':z['number']()['optional'](),'minute':z[a164_0x450081(0x140)]()[a164_0x450081(0x15b)](),'second':z['number']()['optional']()})[a164_0x450081(0x15b)](),'from':z[a164_0x450081(0x169)]({'last':z['union']([z[a164_0x450081(0x140)](),z[a164_0x450081(0x141)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z['boolean']()[a164_0x450081(0x15b)]()})['superRefine']((_0x5e3f1d,_0x109acd)=>{const _0x1808d8=a164_0x450081;OPERATORS_REQUIRING_VALUE[_0x1808d8(0x14c)](_0x5e3f1d[_0x1808d8(0x175)])&&(_0x5e3f1d[_0x1808d8(0x149)]===undefined||_0x5e3f1d[_0x1808d8(0x149)]===null)&&_0x109acd[_0x1808d8(0x14e)]({'code':_0x1808d8(0x138),'message':_0x1808d8(0x172)+_0x5e3f1d[_0x1808d8(0x175)]+_0x1808d8(0x13e),'path':[_0x1808d8(0x149)]}),_0x5e3f1d[_0x1808d8(0x175)]==='Between'&&_0x5e3f1d[_0x1808d8(0x156)]===undefined&&_0x5e3f1d['max']===undefined&&_0x109acd['addIssue']({'code':_0x1808d8(0x138),'message':'Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT['has'](_0x5e3f1d['type'])&&_0x5e3f1d['value']!==undefined&&!_0x5e3f1d['unit']&&_0x109acd[_0x1808d8(0x14e)]({'code':_0x1808d8(0x138),'message':_0x1808d8(0x172)+_0x5e3f1d[_0x1808d8(0x175)]+_0x1808d8(0x14a),'path':[_0x1808d8(0x17c)],'params':{'validationCode':_0x1808d8(0x13c)}}),_0x5e3f1d[_0x1808d8(0x175)]==='TimeRange'&&(!_0x5e3f1d[_0x1808d8(0x139)]&&_0x109acd['addIssue']({'code':'custom','message':_0x1808d8(0x166),'path':['duration']}),!_0x5e3f1d['from']&&_0x109acd[_0x1808d8(0x14e)]({'code':'custom','message':_0x1808d8(0x157),'path':[_0x1808d8(0x13f)]}));});export const ArrayMatchingSchema=z[a164_0x450081(0x16b)]([z[a164_0x450081(0x177)](a164_0x450081(0x155)),z['literal'](a164_0x450081(0x159)),z[a164_0x450081(0x169)]({'atLeast':z[a164_0x450081(0x140)]()}),z[a164_0x450081(0x169)]({'atMost':z[a164_0x450081(0x140)]()}),z['object']({'exactly':z[a164_0x450081(0x140)]()})]);export const AggregationDefSchema=z[a164_0x450081(0x16e)](a164_0x450081(0x175),[z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x17d)]([a164_0x450081(0x181),a164_0x450081(0x142),'Max',a164_0x450081(0x186)]),'column':z[a164_0x450081(0x141)](),'groupingColumns':z['array'](z[a164_0x450081(0x141)]())[a164_0x450081(0x15b)]()}),z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x177)](a164_0x450081(0x16f)),'groupingColumns':z[a164_0x450081(0x182)](z[a164_0x450081(0x141)]())[a164_0x450081(0x15b)]()}),z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x177)]('CountDistinct'),'columns':z[a164_0x450081(0x182)](z[a164_0x450081(0x141)]())}),z[a164_0x450081(0x169)]({'type':z['enum']([a164_0x450081(0x178),a164_0x450081(0x148)]),'column':z[a164_0x450081(0x141)](),'orderColumn':z[a164_0x450081(0x141)](),'groupingColumns':z[a164_0x450081(0x182)](z[a164_0x450081(0x141)]())[a164_0x450081(0x15b)]()})]);export const TimeWindowDefSchema=z[a164_0x450081(0x169)]({'duration':z[a164_0x450081(0x140)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a164_0x450081(0x15a),a164_0x450081(0x180),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z[a164_0x450081(0x177)]('Column'),'column':z[a164_0x450081(0x141)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x450081(0x15b)]()})[a164_0x450081(0x150)]((_0x2859de,_0x213303)=>{const _0xa1335c=a164_0x450081,_0x3e64c6=_0x2859de[_0xa1335c(0x151)]['type'];_0x2859de['column']==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x3e64c6)&&_0x213303[_0xa1335c(0x14e)]({'code':_0xa1335c(0x138),'message':_0xa1335c(0x162)+_0x3e64c6+'\x27)','path':['operator',_0xa1335c(0x175)]}):TIMESTAMP_OPERATORS[_0xa1335c(0x14c)](_0x3e64c6)&&_0x213303[_0xa1335c(0x14e)]({'code':_0xa1335c(0x138),'message':_0xa1335c(0x172)+_0x3e64c6+'\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','path':[_0xa1335c(0x151),_0xa1335c(0x175)]});});export const FilterRuleDefSchema=z['object']({'type':z[a164_0x450081(0x177)](a164_0x450081(0x179)),'conditions':z[a164_0x450081(0x182)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x450081(0x14f)](()=>z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x177)](a164_0x450081(0x16a)),'attribute':z[a164_0x450081(0x141)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema['optional'](),'exclude':z['boolean']()[a164_0x450081(0x15b)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x450081(0x141)]()[a164_0x450081(0x15b)](),'filter':FilterRuleDefSchema[a164_0x450081(0x15b)](),'limit':z['number']()[a164_0x450081(0x15b)]()}));export const BehaviorConditionDefSchema=z[a164_0x450081(0x14f)](()=>z['object']({'type':z[a164_0x450081(0x177)](a164_0x450081(0x15f)),'attribute':z[a164_0x450081(0x141)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x450081(0x15b)](),'exclude':z[a164_0x450081(0x17f)]()[a164_0x450081(0x15b)](),'aggregation':AggregationDefSchema[a164_0x450081(0x15b)](),'source':z['string']()[a164_0x450081(0x15b)](),'filter':FilterRuleDefSchema[a164_0x450081(0x15b)](),'timeWindow':TimeWindowDefSchema[a164_0x450081(0x15b)](),'limit':z[a164_0x450081(0x140)]()['optional']()}));export const ColumnConditionDefSchema=z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x177)](a164_0x450081(0x174)),'column':z[a164_0x450081(0x141)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x17d)](['And','Or']),'conditions':z[a164_0x450081(0x182)](ConditionDefSchema),'description':z[a164_0x450081(0x141)]()[a164_0x450081(0x15b)]()}));export const SegmentRefConditionDefSchema=z[a164_0x450081(0x169)]({'type':z[a164_0x450081(0x17d)](['include',a164_0x450081(0x184)]),'segment':z[a164_0x450081(0x141)]()[a164_0x450081(0x156)](0x1,a164_0x450081(0x171))});function a164_0x38df(_0x5c32a5,_0x3fdfed){_0x5c32a5=_0x5c32a5-0x138;const _0x59bc77=a164_0x59bc();let _0x38df9e=_0x59bc77[_0x5c32a5];return _0x38df9e;}export const ConditionDefSchema=z['lazy'](()=>z[a164_0x450081(0x16b)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z[a164_0x450081(0x17d)]([a164_0x450081(0x179),'Or']),'conditions':z[a164_0x450081(0x182)](ConditionDefSchema),'description':z[a164_0x450081(0x141)]()['optional']()}));export const SegmentDefSchema=z['object']({'type':z[a164_0x450081(0x177)](a164_0x450081(0x153))[a164_0x450081(0x15b)](),'name':z[a164_0x450081(0x141)]()[a164_0x450081(0x156)](0x1,a164_0x450081(0x147)),'description':z[a164_0x450081(0x141)]()[a164_0x450081(0x15b)](),'folder':z[a164_0x450081(0x141)]()[a164_0x450081(0x15b)](),'rule':RuleDefSchema[a164_0x450081(0x15b)](),'kind':z[a164_0x450081(0x17d)]([a164_0x450081(0x164),a164_0x450081(0x17e),a164_0x450081(0x168)])['optional'](),'visible':z[a164_0x450081(0x17f)]()[a164_0x450081(0x15b)](),'activations':z['array'](z[a164_0x450081(0x155)]())[a164_0x450081(0x15b)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a164_0x346533=a164_0x1f5a;(function(_0x52ad4e,_0x237ba6){const _0x57f3b3=a164_0x1f5a,_0x10eeb9=_0x52ad4e();while(!![]){try{const _0x56ecde=parseInt(_0x57f3b3(0x11e))/0x1*(parseInt(_0x57f3b3(0xe2))/0x2)+parseInt(_0x57f3b3(0xd9))/0x3*(parseInt(_0x57f3b3(0xe6))/0x4)+parseInt(_0x57f3b3(0x11a))/0x5+parseInt(_0x57f3b3(0xd8))/0x6+-parseInt(_0x57f3b3(0xf8))/0x7*(parseInt(_0x57f3b3(0xfc))/0x8)+parseInt(_0x57f3b3(0x102))/0x9*(-parseInt(_0x57f3b3(0x11f))/0xa)+-parseInt(_0x57f3b3(0x10e))/0xb*(parseInt(_0x57f3b3(0x10f))/0xc);if(_0x56ecde===_0x237ba6)break;else _0x10eeb9['push'](_0x10eeb9['shift']());}catch(_0x4991a5){_0x10eeb9['push'](_0x10eeb9['shift']());}}}(a164_0x2eff,0x37e26));import{z}from'zod';export const OperatorTypeSchema=z[a164_0x346533(0xd0)]([a164_0x346533(0xe9),a164_0x346533(0x105),a164_0x346533(0x10a),a164_0x346533(0xd6),a164_0x346533(0x117),'In',a164_0x346533(0xcf),a164_0x346533(0xff),a164_0x346533(0xf2),a164_0x346533(0x101),a164_0x346533(0xd3),'Contain',a164_0x346533(0xea),a164_0x346533(0x113),a164_0x346533(0xeb)]);export const TimeUnitSchema=z[a164_0x346533(0xd0)]([a164_0x346533(0xd4),a164_0x346533(0x116),a164_0x346533(0x106),a164_0x346533(0xfe),'week',a164_0x346533(0xe5),'year']);export const AggregationTypeSchema=z[a164_0x346533(0xd0)]([a164_0x346533(0xec),'Sum','Average',a164_0x346533(0xde),'Max',a164_0x346533(0x104),'First','Last']);const TemporalValueSchema=z[a164_0x346533(0x107)]([z[a164_0x346533(0x109)]({'timestamp':z[a164_0x346533(0xee)]()}),z['object']({'last':z[a164_0x346533(0x107)]([z[a164_0x346533(0x114)](),z['record'](z['string'](),z['number']())]),'unit':z[a164_0x346533(0xee)]()})]),OperatorValueSchema=z[a164_0x346533(0x107)]([z['string'](),z['number'](),z[a164_0x346533(0x118)](),TemporalValueSchema,z[a164_0x346533(0xe4)](z[a164_0x346533(0x107)]([z[a164_0x346533(0xee)](),z['number'](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a164_0x346533(0xe9),'Greater','GreaterEqual',a164_0x346533(0x10a),a164_0x346533(0x117),'In',a164_0x346533(0xd1),a164_0x346533(0xea),a164_0x346533(0x113),a164_0x346533(0xff),a164_0x346533(0x101),a164_0x346533(0xd3)]),OPERATORS_REQUIRING_UNIT=new Set([a164_0x346533(0x101),a164_0x346533(0xd3)]);export const OperatorDefSchema=z[a164_0x346533(0x109)]({'type':OperatorTypeSchema,'not':z[a164_0x346533(0x118)]()[a164_0x346533(0xf4)](),'value':OperatorValueSchema[a164_0x346533(0xf4)](),'min':z[a164_0x346533(0x107)]([z[a164_0x346533(0x114)](),z['string'](),TemporalValueSchema])[a164_0x346533(0xf4)](),'max':z[a164_0x346533(0x107)]([z['number'](),z[a164_0x346533(0xee)](),TemporalValueSchema])[a164_0x346533(0xf4)](),'unit':TimeUnitSchema['optional'](),'duration':z[a164_0x346533(0x109)]({'day':z[a164_0x346533(0x114)]()[a164_0x346533(0xf4)](),'week':z[a164_0x346533(0x114)]()[a164_0x346533(0xf4)](),'month':z[a164_0x346533(0x114)]()[a164_0x346533(0xf4)](),'year':z['number']()[a164_0x346533(0xf4)](),'hour':z[a164_0x346533(0x114)]()['optional'](),'minute':z[a164_0x346533(0x114)]()[a164_0x346533(0xf4)](),'second':z['number']()['optional']()})[a164_0x346533(0xf4)](),'from':z[a164_0x346533(0x109)]({'last':z[a164_0x346533(0x107)]([z[a164_0x346533(0x114)](),z[a164_0x346533(0xee)]()]),'unit':TimeUnitSchema})[a164_0x346533(0xf4)](),'reverse':z[a164_0x346533(0x118)]()[a164_0x346533(0xf4)]()})['superRefine']((_0x4deb1c,_0x5e6f76)=>{const _0x5220e2=a164_0x346533;OPERATORS_REQUIRING_VALUE[_0x5220e2(0xd2)](_0x4deb1c['type'])&&(_0x4deb1c['value']===undefined||_0x4deb1c[_0x5220e2(0x110)]===null)&&_0x5e6f76['addIssue']({'code':_0x5220e2(0xf7),'message':_0x5220e2(0xf9)+_0x4deb1c[_0x5220e2(0x100)]+_0x5220e2(0xef),'path':['value']}),_0x4deb1c['type']===_0x5220e2(0xcf)&&_0x4deb1c['min']===undefined&&_0x4deb1c[_0x5220e2(0xfb)]===undefined&&_0x5e6f76[_0x5220e2(0x119)]({'code':_0x5220e2(0xf7),'message':_0x5220e2(0xf1),'params':{'validationCode':_0x5220e2(0xfa)}}),OPERATORS_REQUIRING_UNIT[_0x5220e2(0xd2)](_0x4deb1c[_0x5220e2(0x100)])&&_0x4deb1c[_0x5220e2(0x110)]!==undefined&&!_0x4deb1c['unit']&&_0x5e6f76[_0x5220e2(0x119)]({'code':_0x5220e2(0xf7),'message':_0x5220e2(0xf9)+_0x4deb1c[_0x5220e2(0x100)]+_0x5220e2(0x11b),'path':[_0x5220e2(0xfd)],'params':{'validationCode':_0x5220e2(0xda)}}),_0x4deb1c[_0x5220e2(0x100)]===_0x5220e2(0xeb)&&(!_0x4deb1c[_0x5220e2(0x10b)]&&_0x5e6f76[_0x5220e2(0x119)]({'code':_0x5220e2(0xf7),'message':_0x5220e2(0xf6),'path':[_0x5220e2(0x10b)]}),!_0x4deb1c[_0x5220e2(0xe1)]&&_0x5e6f76[_0x5220e2(0x119)]({'code':_0x5220e2(0xf7),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x5220e2(0xe1)]}));});export const ArrayMatchingSchema=z[a164_0x346533(0x107)]([z[a164_0x346533(0xed)](a164_0x346533(0xdf)),z[a164_0x346533(0xed)](a164_0x346533(0xd5)),z['object']({'atLeast':z['number']()}),z['object']({'atMost':z['number']()}),z[a164_0x346533(0x109)]({'exactly':z[a164_0x346533(0x114)]()})]);export const AggregationDefSchema=z[a164_0x346533(0x111)]('type',[z[a164_0x346533(0x109)]({'type':z['enum'](['Sum',a164_0x346533(0xde),a164_0x346533(0x11c),'Average']),'column':z['string'](),'groupingColumns':z[a164_0x346533(0xe4)](z[a164_0x346533(0xee)]())['optional']()}),z['object']({'type':z[a164_0x346533(0xed)](a164_0x346533(0xec)),'groupingColumns':z[a164_0x346533(0xe4)](z[a164_0x346533(0xee)]())[a164_0x346533(0xf4)]()}),z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xed)](a164_0x346533(0x104)),'columns':z['array'](z[a164_0x346533(0xee)]())}),z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xd0)]([a164_0x346533(0x112),a164_0x346533(0x103)]),'column':z[a164_0x346533(0xee)](),'orderColumn':z['string'](),'groupingColumns':z[a164_0x346533(0xe4)](z['string']())['optional']()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a164_0x346533(0x114)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set(['TimeWithinPast','TimeWithinNext','TimeRange']);export const FilterColumnConditionDefSchema=z[a164_0x346533(0x109)]({'type':z['literal'](a164_0x346533(0x11d)),'column':z[a164_0x346533(0xee)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x346533(0xf4)]()})[a164_0x346533(0x10d)]((_0x3d4f30,_0x162440)=>{const _0x3f9af7=a164_0x346533,_0x34c500=_0x3d4f30[_0x3f9af7(0xe0)]['type'];_0x3d4f30['column']===_0x3f9af7(0xf5)?!TIMESTAMP_OPERATORS[_0x3f9af7(0xd2)](_0x34c500)&&_0x162440[_0x3f9af7(0x119)]({'code':'custom','message':_0x3f9af7(0x120)+_0x34c500+'\x27)','path':[_0x3f9af7(0xe0),_0x3f9af7(0x100)]}):TIMESTAMP_OPERATORS[_0x3f9af7(0xd2)](_0x34c500)&&_0x162440[_0x3f9af7(0x119)]({'code':_0x3f9af7(0xf7),'message':'Operator\x20\x27'+_0x34c500+_0x3f9af7(0xe3),'path':[_0x3f9af7(0xe0),_0x3f9af7(0x100)]});});function a164_0x2eff(){const _0x6c12d3=['1188420faetXC','value','discriminatedUnion','First','EndWith','number','lazy','minute','LessEqual','boolean','addIssue','893960nkuMwa','\x27\x20requires\x20a\x20time\x20unit','Max','Column','9719NmDyXi','299170XBQTyt','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','Between','enum','Contain','has','TimeWithinNext','second','all','GreaterEqual','batch','2119494YEBbWt','11661NhmxCr','MISSING_TIME_UNIT','Segment\x20name\x20is\x20required','Value','include','Min','any','operator','from','38HAVAmU','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','array','month','28nEYpIh','Behavior','realtime','Equal','StartWith','TimeRange','Count','literal','string','\x27\x20requires\x20a\x20value','min','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','IsNull','And','optional','timestamp','TimeRange\x20operator\x20requires\x20\x27duration\x27','custom','21HtrxOb','Operator\x20\x27','MISSING_BETWEEN_BOUNDS','max','391256ZArECe','unit','day','Regexp','type','TimeWithinPast','81BvcZLA','Last','CountDistinct','Greater','hour','union','exclude','object','Less','duration','Segment\x20reference\x20must\x20not\x20be\x20empty','superRefine','11hBZssM'];a164_0x2eff=function(){return _0x6c12d3;};return a164_0x2eff();}export const FilterRuleDefSchema=z[a164_0x346533(0x109)]({'type':z['literal']('And'),'conditions':z[a164_0x346533(0xe4)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a164_0x346533(0x115)](()=>z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xed)](a164_0x346533(0xdc)),'attribute':z[a164_0x346533(0xee)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x346533(0xf4)](),'exclude':z[a164_0x346533(0x118)]()[a164_0x346533(0xf4)](),'aggregation':AggregationDefSchema[a164_0x346533(0xf4)](),'source':z[a164_0x346533(0xee)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'limit':z[a164_0x346533(0x114)]()[a164_0x346533(0xf4)]()}));export const BehaviorConditionDefSchema=z['lazy'](()=>z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xed)](a164_0x346533(0xe7)),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a164_0x346533(0xf4)](),'exclude':z[a164_0x346533(0x118)]()['optional'](),'aggregation':AggregationDefSchema['optional'](),'source':z[a164_0x346533(0xee)]()['optional'](),'filter':FilterRuleDefSchema['optional'](),'timeWindow':TimeWindowDefSchema[a164_0x346533(0xf4)](),'limit':z[a164_0x346533(0x114)]()['optional']()}));export const ColumnConditionDefSchema=z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xed)]('Column'),'column':z['string'](),'operator':OperatorDefSchema});function a164_0x1f5a(_0x55bc35,_0x1f545c){_0x55bc35=_0x55bc35-0xcf;const _0x2eff59=a164_0x2eff();let _0x1f5aa8=_0x2eff59[_0x55bc35];return _0x1f5aa8;}export const CompositeConditionDefSchema=z[a164_0x346533(0x115)](()=>z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xd0)]([a164_0x346533(0xf3),'Or']),'conditions':z[a164_0x346533(0xe4)](ConditionDefSchema),'description':z[a164_0x346533(0xee)]()['optional']()}));export const SegmentRefConditionDefSchema=z[a164_0x346533(0x109)]({'type':z[a164_0x346533(0xd0)]([a164_0x346533(0xdd),a164_0x346533(0x108)]),'segment':z[a164_0x346533(0xee)]()[a164_0x346533(0xf0)](0x1,a164_0x346533(0x10c))});export const ConditionDefSchema=z[a164_0x346533(0x115)](()=>z[a164_0x346533(0x107)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z[a164_0x346533(0x109)]({'type':z['enum']([a164_0x346533(0xf3),'Or']),'conditions':z[a164_0x346533(0xe4)](ConditionDefSchema),'description':z[a164_0x346533(0xee)]()[a164_0x346533(0xf4)]()}));export const SegmentDefSchema=z['object']({'type':z[a164_0x346533(0xed)]('segment')[a164_0x346533(0xf4)](),'name':z[a164_0x346533(0xee)]()['min'](0x1,a164_0x346533(0xdb)),'description':z[a164_0x346533(0xee)]()[a164_0x346533(0xf4)](),'folder':z[a164_0x346533(0xee)]()[a164_0x346533(0xf4)](),'rule':RuleDefSchema['optional'](),'kind':z[a164_0x346533(0xd0)]([a164_0x346533(0xd7),a164_0x346533(0xe8),'funnel_stage'])[a164_0x346533(0xf4)](),'visible':z[a164_0x346533(0x118)]()[a164_0x346533(0xf4)](),'activations':z[a164_0x346533(0xe4)](z[a164_0x346533(0xdf)]())['optional']()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a165_0x5f0e94=a165_0x2b2d;(function(_0x44a77d,_0xa6dccf){const _0x5dad64=a165_0x2b2d,_0x47899f=_0x44a77d();while(!![]){try{const _0x78f29f=-parseInt(_0x5dad64(0x148))/0x1+-parseInt(_0x5dad64(0x15a))/0x2*(parseInt(_0x5dad64(0x163))/0x3)+parseInt(_0x5dad64(0x147))/0x4+-parseInt(_0x5dad64(0x15d))/0x5+parseInt(_0x5dad64(0x152))/0x6+parseInt(_0x5dad64(0x154))/0x7+parseInt(_0x5dad64(0x15e))/0x8*(parseInt(_0x5dad64(0x15f))/0x9);if(_0x78f29f===_0xa6dccf)break;else _0x47899f['push'](_0x47899f['shift']());}catch(_0x3aa496){_0x47899f['push'](_0x47899f['shift']());}}}(a165_0x976f,0xbc46c));import{readFileSync}from'fs';import*as a165_0x43361f from'path';import*as a165_0x4518c4 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';function a165_0x2b2d(_0x4c7478,_0x48ce1a){_0x4c7478=_0x4c7478-0x146;const _0x976fe4=a165_0x976f();let _0x2b2d21=_0x976fe4[_0x4c7478];return _0x2b2d21;}const VALID_CAMPAIGN_TYPES=new Set(['email',a165_0x5f0e94(0x14e)]);export function isJourneyDef(_0x57d21b){const _0x1bba47=a165_0x5f0e94;return typeof _0x57d21b===_0x1bba47(0x14d)&&_0x57d21b!==null&&_0x1bba47(0x161)in _0x57d21b&&_0x57d21b[_0x1bba47(0x161)]===_0x1bba47(0x164);}export function isCampaignDef(_0xc7b700){const _0x186b25=a165_0x5f0e94;if(typeof _0xc7b700!==_0x186b25(0x14d)||_0xc7b700===null)return![];const _0x429f67=_0xc7b700,_0x28f421=VALID_CAMPAIGN_TYPES[_0x186b25(0x162)](_0x429f67['campaign_type']);if(_0x429f67[_0x186b25(0x161)]===_0x186b25(0x158)&&_0x28f421)return!![];if(_0x28f421&&!_0x429f67[_0x186b25(0x161)])return!![];return![];}export function isTemplateDef(_0x206bf1){const _0xece141=a165_0x5f0e94;return typeof _0x206bf1===_0xece141(0x14d)&&_0x206bf1!==null&&_0xece141(0x161)in _0x206bf1&&_0x206bf1[_0xece141(0x161)]==='template';}export function isValidationResult(_0x51d0f9){const _0x5c8e35=a165_0x5f0e94;return!(_0x5c8e35(0x156)in _0x51d0f9);}function a165_0x976f(){const _0x4db624=['journey','not\x20a\x20','26768TdKdab','750495DvPtlL','YAML\x20parse\x20error:\x20','toJSON','map','length','object','push','segment','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','parseDocument','1358970AEeamz','valid','4129335pFkxhk','message','skipped','template','campaign','warnings','4hxYkeW','filterType','error','6977450SeYcOn','9166792WYklOx','27bnDybx','result','type','has','2015211ytjYXy'];a165_0x976f=function(){return _0x4db624;};return a165_0x976f();}export function createParseErrorResult(_0x4abc22,_0x3bb531,_0x377407,_0x5b85d1,_0x4a1a53=a165_0x5f0e94(0x14f)){const _0xe7f7c2=a165_0x5f0e94;return{'filePath':_0x4abc22,'relativePath':_0x3bb531,'source':_0x377407,'result':{'valid':![],'errors':[{'level':_0xe7f7c2(0x15c),'path':'','code':'YAML_PARSE_ERROR','message':_0x5b85d1}],'warnings':[]},'fileType':_0x4a1a53};}export function validateYamlFile(_0xdf0381,_0x1cc1bf,_0x426124={}){const _0x3913f5=a165_0x5f0e94,_0x356291=a165_0x43361f['relative'](_0x1cc1bf,_0xdf0381)||a165_0x43361f['basename'](_0xdf0381);try{const _0x932b7b=readFileSync(_0xdf0381,'utf-8'),_0x3e1171=a165_0x4518c4[_0x3913f5(0x151)](_0x932b7b),_0x1e4297=_0x3e1171[_0x3913f5(0x14a)]();if(!_0x1e4297)return createParseErrorResult(_0xdf0381,_0x356291,_0x932b7b,_0x3913f5(0x150));let _0x3dc27c;if(isJourneyDef(_0x1e4297))_0x3dc27c=_0x3913f5(0x164);else{if(isCampaignDef(_0x1e4297))_0x3dc27c='campaign';else isTemplateDef(_0x1e4297)?_0x3dc27c=_0x3913f5(0x157):_0x3dc27c=_0x3913f5(0x14f);}if(_0x426124[_0x3913f5(0x15b)]&&_0x3dc27c!==_0x426124['filterType'])return{'filePath':_0xdf0381,'relativePath':_0x356291,'skipped':!![],'reason':_0x3913f5(0x146)+_0x426124[_0x3913f5(0x15b)]};const _0x1a5c1a={'source':_0x932b7b,'document':_0x3e1171};let _0x4719d9;if(_0x3dc27c==='journey')_0x4719d9=validateJourneyDef(_0x1e4297,_0x1a5c1a);else{if(_0x3dc27c===_0x3913f5(0x158))_0x4719d9=validateCampaignDef(_0x1e4297,_0x1a5c1a);else _0x3dc27c==='template'?_0x4719d9=validateTemplateDef(_0x1e4297,_0x1a5c1a):_0x4719d9=validateSegmentDef(_0x1e4297,_0x1a5c1a);}return{'filePath':_0xdf0381,'relativePath':_0x356291,'source':_0x932b7b,'result':_0x4719d9,'fileType':_0x3dc27c};}catch(_0x251803){const _0x1aab87=_0x251803 instanceof Error?_0x251803[_0x3913f5(0x155)]:String(_0x251803);return createParseErrorResult(_0xdf0381,_0x356291,'',_0x3913f5(0x149)+_0x1aab87);}}export function validateYamlFiles(_0x346ae0,_0x12c221,_0x170b13={}){const _0xff5121=a165_0x5f0e94;return _0x346ae0[_0xff5121(0x14b)](_0x37bd3b=>validateYamlFile(_0x37bd3b,_0x12c221,_0x170b13));}export function calculateSummary(_0x3a6ea2){const _0x5268dd=a165_0x5f0e94;let _0x3f7348=0x0,_0x252543=0x0,_0xf52e63=0x0,_0x43a8b2=0x0;for(const _0x4b1944 of _0x3a6ea2){if(!isValidationResult(_0x4b1944)){_0x43a8b2++;continue;}_0x4b1944['result'][_0x5268dd(0x153)]?_0x3f7348++:_0x252543++,_0xf52e63+=_0x4b1944[_0x5268dd(0x160)][_0x5268dd(0x159)][_0x5268dd(0x14c)];}return{'validCount':_0x3f7348,'invalidCount':_0x252543,'warningCount':_0xf52e63,'skippedCount':_0x43a8b2,'hasErrors':_0x252543>0x0};}
1
+ const a165_0x34d601=a165_0x5784;function a165_0x5784(_0x132fb0,_0x2fc901){_0x132fb0=_0x132fb0-0x83;const _0x1cc05f=a165_0x1cc0();let _0x578430=_0x1cc05f[_0x132fb0];return _0x578430;}(function(_0x3e3ccf,_0xb9a621){const _0x399712=a165_0x5784,_0x2fc9ff=_0x3e3ccf();while(!![]){try{const _0xea1803=parseInt(_0x399712(0x98))/0x1+parseInt(_0x399712(0x9f))/0x2+-parseInt(_0x399712(0x96))/0x3+parseInt(_0x399712(0x8b))/0x4*(parseInt(_0x399712(0x84))/0x5)+parseInt(_0x399712(0x8e))/0x6+-parseInt(_0x399712(0x83))/0x7+parseInt(_0x399712(0x8c))/0x8;if(_0xea1803===_0xb9a621)break;else _0x2fc9ff['push'](_0x2fc9ff['shift']());}catch(_0x8f2c9){_0x2fc9ff['push'](_0x2fc9ff['shift']());}}}(a165_0x1cc0,0x4c001));function a165_0x1cc0(){const _0x59a1f9=['length','1518792ykUUUO','template','skipped','map','result','utf-8','filterType','YAML_PARSE_ERROR','1025337gejgot','object','331416NFXGak','error','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','email','toJSON','not\x20a\x20','basename','260654JHxqMU','warnings','type','message','valid','2957962LcZMKN','415mriTBz','segment','campaign','journey','parseDocument','has','campaign_type','3372qwudmu','2326384SnaHau'];a165_0x1cc0=function(){return _0x59a1f9;};return a165_0x1cc0();}import{readFileSync}from'fs';import*as a165_0x1b997c from'path';import*as a165_0x63bc81 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_0x34d601(0x9b),'push']);export function isJourneyDef(_0x2b123f){const _0x282d03=a165_0x34d601;return typeof _0x2b123f===_0x282d03(0x97)&&_0x2b123f!==null&&_0x282d03(0xa1)in _0x2b123f&&_0x2b123f[_0x282d03(0xa1)]===_0x282d03(0x87);}export function isCampaignDef(_0x5df25b){const _0x4829f6=a165_0x34d601;if(typeof _0x5df25b!==_0x4829f6(0x97)||_0x5df25b===null)return![];const _0x316a27=_0x5df25b,_0x1f7996=VALID_CAMPAIGN_TYPES[_0x4829f6(0x89)](_0x316a27[_0x4829f6(0x8a)]);if(_0x316a27['type']==='campaign'&&_0x1f7996)return!![];if(_0x1f7996&&!_0x316a27[_0x4829f6(0xa1)])return!![];return![];}export function isTemplateDef(_0x38015b){const _0x5b9cee=a165_0x34d601;return typeof _0x38015b===_0x5b9cee(0x97)&&_0x38015b!==null&&_0x5b9cee(0xa1)in _0x38015b&&_0x38015b['type']===_0x5b9cee(0x8f);}export function isValidationResult(_0x2db7f6){const _0x50c3f9=a165_0x34d601;return!(_0x50c3f9(0x90)in _0x2db7f6);}export function createParseErrorResult(_0x322d08,_0xe3c22e,_0x17215f,_0x5d2283,_0x3dda09=a165_0x34d601(0x85)){const _0x464dc6=a165_0x34d601;return{'filePath':_0x322d08,'relativePath':_0xe3c22e,'source':_0x17215f,'result':{'valid':![],'errors':[{'level':_0x464dc6(0x99),'path':'','code':_0x464dc6(0x95),'message':_0x5d2283}],'warnings':[]},'fileType':_0x3dda09};}export function validateYamlFile(_0x2856fa,_0x12ca4e,_0x547092={}){const _0x5b3067=a165_0x34d601,_0x4825d3=a165_0x1b997c['relative'](_0x12ca4e,_0x2856fa)||a165_0x1b997c[_0x5b3067(0x9e)](_0x2856fa);try{const _0x128be9=readFileSync(_0x2856fa,_0x5b3067(0x93)),_0x2a0254=a165_0x63bc81[_0x5b3067(0x88)](_0x128be9),_0x3af9f5=_0x2a0254[_0x5b3067(0x9c)]();if(!_0x3af9f5)return createParseErrorResult(_0x2856fa,_0x4825d3,_0x128be9,_0x5b3067(0x9a));let _0x524962;if(isJourneyDef(_0x3af9f5))_0x524962='journey';else{if(isCampaignDef(_0x3af9f5))_0x524962=_0x5b3067(0x86);else isTemplateDef(_0x3af9f5)?_0x524962=_0x5b3067(0x8f):_0x524962=_0x5b3067(0x85);}if(_0x547092[_0x5b3067(0x94)]&&_0x524962!==_0x547092[_0x5b3067(0x94)])return{'filePath':_0x2856fa,'relativePath':_0x4825d3,'skipped':!![],'reason':_0x5b3067(0x9d)+_0x547092[_0x5b3067(0x94)]};const _0x13cd57={'source':_0x128be9,'document':_0x2a0254};let _0x5a39b6;if(_0x524962==='journey')_0x5a39b6=validateJourneyDef(_0x3af9f5,_0x13cd57);else{if(_0x524962==='campaign')_0x5a39b6=validateCampaignDef(_0x3af9f5,_0x13cd57);else _0x524962==='template'?_0x5a39b6=validateTemplateDef(_0x3af9f5,_0x13cd57):_0x5a39b6=validateSegmentDef(_0x3af9f5,_0x13cd57);}return{'filePath':_0x2856fa,'relativePath':_0x4825d3,'source':_0x128be9,'result':_0x5a39b6,'fileType':_0x524962};}catch(_0x31475f){const _0x4abfa2=_0x31475f instanceof Error?_0x31475f[_0x5b3067(0xa2)]:String(_0x31475f);return createParseErrorResult(_0x2856fa,_0x4825d3,'','YAML\x20parse\x20error:\x20'+_0x4abfa2);}}export function validateYamlFiles(_0x2e98a8,_0x2d18eb,_0x232917={}){const _0x20631d=a165_0x34d601;return _0x2e98a8[_0x20631d(0x91)](_0x153b43=>validateYamlFile(_0x153b43,_0x2d18eb,_0x232917));}export function calculateSummary(_0xe6c1ef){const _0x51aa77=a165_0x34d601;let _0x180167=0x0,_0x370659=0x0,_0x24e2e3=0x0,_0x2a382c=0x0;for(const _0x503ea5 of _0xe6c1ef){if(!isValidationResult(_0x503ea5)){_0x2a382c++;continue;}_0x503ea5[_0x51aa77(0x92)][_0x51aa77(0xa3)]?_0x180167++:_0x370659++,_0x24e2e3+=_0x503ea5[_0x51aa77(0x92)][_0x51aa77(0xa0)][_0x51aa77(0x8d)];}return{'validCount':_0x180167,'invalidCount':_0x370659,'warningCount':_0x24e2e3,'skippedCount':_0x2a382c,'hasErrors':_0x370659>0x0};}