@treasuredata/tdx 0.1.10 → 0.1.12

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 (72) hide show
  1. package/dist/cli.js +1 -1
  2. package/dist/cli.js.map +1 -1
  3. package/dist/client/cdp-client.js +1 -1
  4. package/dist/client/http-client.js +1 -1
  5. package/dist/client/llm-client.js +1 -1
  6. package/dist/client/rate-limiter.js +1 -1
  7. package/dist/client/td-client.js +1 -1
  8. package/dist/client/trino-client.js +1 -1
  9. package/dist/client/workflow-client.js +1 -1
  10. package/dist/commands/activations.js +1 -1
  11. package/dist/commands/api-command.js +1 -1
  12. package/dist/commands/chat-command.js +1 -1
  13. package/dist/commands/claude-command.d.ts +1 -0
  14. package/dist/commands/claude-command.d.ts.map +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-command.js.map +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/context-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/describe.js +1 -1
  21. package/dist/commands/llm-command.js +1 -1
  22. package/dist/commands/llm-proxy.js +1 -1
  23. package/dist/commands/profiles-command.js +1 -1
  24. package/dist/commands/query-command.js +1 -1
  25. package/dist/commands/segment-command.js +1 -1
  26. package/dist/commands/segments.js +1 -1
  27. package/dist/commands/show.js +1 -1
  28. package/dist/commands/tables.js +1 -1
  29. package/dist/commands/use-command.js +1 -1
  30. package/dist/commands/workflow-command.js +1 -1
  31. package/dist/core/auth.d.ts +0 -6
  32. package/dist/core/auth.d.ts.map +1 -1
  33. package/dist/core/auth.js +1 -1
  34. package/dist/core/auth.js.map +1 -1
  35. package/dist/core/config.js +1 -1
  36. package/dist/core/global-context.js +1 -1
  37. package/dist/core/profile.js +1 -1
  38. package/dist/core/project-config.js +1 -1
  39. package/dist/core/session.js +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/proxy/anthropic-adapter.js +1 -1
  42. package/dist/proxy/server.js +1 -1
  43. package/dist/sdk/api.js +1 -1
  44. package/dist/sdk/database.js +1 -1
  45. package/dist/sdk/errors.js +1 -1
  46. package/dist/sdk/index.js +1 -1
  47. package/dist/sdk/llm.js +1 -1
  48. package/dist/sdk/query.js +1 -1
  49. package/dist/sdk/segment.js +1 -1
  50. package/dist/sdk/table.js +1 -1
  51. package/dist/sdk/workflow.js +1 -1
  52. package/dist/types/endpoints.js +1 -1
  53. package/dist/types/index.js +1 -1
  54. package/dist/utils/agent-ref-parser.js +1 -1
  55. package/dist/utils/chat-cache.js +1 -1
  56. package/dist/utils/colors.js +1 -1
  57. package/dist/utils/command-output.js +1 -1
  58. package/dist/utils/file-permissions.js +1 -1
  59. package/dist/utils/format-detector.js +1 -1
  60. package/dist/utils/formatters.js +1 -1
  61. package/dist/utils/model-aliases.js +1 -1
  62. package/dist/utils/option-validation.js +1 -1
  63. package/dist/utils/port.js +1 -1
  64. package/dist/utils/process.js +1 -1
  65. package/dist/utils/segment-ref-parser.js +1 -1
  66. package/dist/utils/spinner.js +1 -1
  67. package/dist/utils/sql-parser.js +1 -1
  68. package/dist/utils/sse-parser.js +1 -1
  69. package/dist/utils/string-utils.js +1 -1
  70. package/dist/utils/table-ref-parser.js +1 -1
  71. package/dist/utils/workflow-utils.js +1 -1
  72. package/package.json +1 -1
@@ -1 +1 @@
1
- function a45_0x1fd5(_0x47ffee,_0x81f526){const _0x3a3710=a45_0x3a37();return a45_0x1fd5=function(_0x1fd5d1,_0x443ba1){_0x1fd5d1=_0x1fd5d1-0x1bd;let _0x435b59=_0x3a3710[_0x1fd5d1];return _0x435b59;},a45_0x1fd5(_0x47ffee,_0x81f526);}const a45_0x1b894d=a45_0x1fd5;(function(_0x5b863d,_0x4fc434){const _0x14ef0f=a45_0x1fd5,_0x3cbbf3=_0x5b863d();while(!![]){try{const _0x3dc29c=-parseInt(_0x14ef0f(0x1e4))/0x1+-parseInt(_0x14ef0f(0x1ca))/0x2+parseInt(_0x14ef0f(0x1d4))/0x3*(-parseInt(_0x14ef0f(0x1cb))/0x4)+parseInt(_0x14ef0f(0x1cd))/0x5+parseInt(_0x14ef0f(0x1c3))/0x6*(-parseInt(_0x14ef0f(0x1d6))/0x7)+parseInt(_0x14ef0f(0x1e1))/0x8+parseInt(_0x14ef0f(0x1e8))/0x9;if(_0x3dc29c===_0x4fc434)break;else _0x3cbbf3['push'](_0x3cbbf3['shift']());}catch(_0x5a2bab){_0x3cbbf3['push'](_0x3cbbf3['shift']());}}}(a45_0x3a37,0x49ac9));export const TD_ENDPOINTS={'us01':'https://api.treasuredata.com','jp01':a45_0x1b894d(0x1d9),'eu01':a45_0x1b894d(0x1d1),'ap02':a45_0x1b894d(0x1c1),'ap03':'https://api.ap03.treasuredata.com','dev-us01':'https://api-development.us01.treasuredata.com','dev-eu01':a45_0x1b894d(0x1e9),'stg-us01':a45_0x1b894d(0x1be),'stg-jp01':'https://api-staging.treasuredata.co.jp','stg-ap03':a45_0x1b894d(0x1c8)};export const CDP_ENDPOINTS={'us01':a45_0x1b894d(0x1cf),'jp01':'https://api-cdp.treasuredata.co.jp','eu01':'https://api-cdp.eu01.treasuredata.com','ap02':a45_0x1b894d(0x1d7),'ap03':a45_0x1b894d(0x1d2),'dev-us01':'https://api-development-cdp.us01.treasuredata.com','dev-eu01':a45_0x1b894d(0x1eb),'stg-us01':a45_0x1b894d(0x1c6),'stg-jp01':a45_0x1b894d(0x1c4),'stg-ap03':a45_0x1b894d(0x1bd)};export const WORKFLOW_ENDPOINTS={'us01':'https://api-workflow.treasuredata.com','jp01':'https://api-workflow.treasuredata.co.jp','eu01':a45_0x1b894d(0x1d5),'ap02':a45_0x1b894d(0x1cc),'ap03':a45_0x1b894d(0x1c9),'dev-us01':a45_0x1b894d(0x1d8),'dev-eu01':a45_0x1b894d(0x1e6),'stg-us01':a45_0x1b894d(0x1bf),'stg-jp01':a45_0x1b894d(0x1c0),'stg-ap03':a45_0x1b894d(0x1da)};export const TRINO_ENDPOINTS={'us01':a45_0x1b894d(0x1de),'jp01':'https://api-presto.treasuredata.co.jp','eu01':a45_0x1b894d(0x1db),'ap02':'https://api-presto.ap02.treasuredata.com','ap03':'https://api-presto.ap03.treasuredata.com','dev-us01':a45_0x1b894d(0x1e7),'dev-eu01':a45_0x1b894d(0x1ce),'stg-us01':a45_0x1b894d(0x1df),'stg-jp01':a45_0x1b894d(0x1ea),'stg-ap03':'https://api-staging-presto.ap03.treasuredata.com'};export const LLM_ENDPOINTS={'us01':a45_0x1b894d(0x1e3),'jp01':a45_0x1b894d(0x1dd),'eu01':a45_0x1b894d(0x1dc),'ap02':a45_0x1b894d(0x1e5),'ap03':a45_0x1b894d(0x1d0),'dev-us01':'https://llm-api-development.us01.treasuredata.com','dev-eu01':a45_0x1b894d(0x1d3),'stg-us01':a45_0x1b894d(0x1c7),'stg-jp01':a45_0x1b894d(0x1c5),'stg-ap03':a45_0x1b894d(0x1e2)};export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS};function a45_0x3a37(){const _0x28b95d=['7kAfZtm','https://api-cdp.ap02.treasuredata.com','https://api-development-workflow.us01.treasuredata.com','https://api.treasuredata.co.jp','https://api-staging-workflow.ap03.treasuredata.com','https://api-presto.eu01.treasuredata.com','https://llm-api.eu01.treasuredata.com','https://llm-api.treasuredata.co.jp','https://api-presto.treasuredata.com','https://api-staging-presto.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','4745576leGNaY','https://llm-api-staging.ap03.treasuredata.com','https://llm-api.treasuredata.com','281871TcMVhk','https://llm-api.ap02.treasuredata.com','https://api-development-workflow.eu01.treasuredata.com','https://api-development-presto.treasuredata.com','3371787RUVesH','https://api-development.eu01.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','https://api-development-cdp.eu01.treasuredata.com','https://api-staging-cdp.ap03.treasuredata.com','https://api-staging.us01.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','https://api-staging-workflow.treasuredata.co.jp','https://api.ap02.treasuredata.com','\x27\x20and\x20site\x20\x27','2135928xSDrAL','https://api-staging-cdp.treasuredata.co.jp','https://llm-api-staging.treasuredata.co.jp','https://api-staging-cdp.us01.treasuredata.com','https://llm-api-staging.us01.treasuredata.com','https://api-staging.ap03.treasuredata.com','https://api-workflow.ap03.treasuredata.com','697868GvdLZW','36Iiehae','https://api-workflow.ap02.treasuredata.com','2799755KznwxQ','https://api-development-presto.eu01.treasuredata.com','https://api-cdp.treasuredata.com','https://llm-api.ap03.treasuredata.com','https://api.eu01.treasuredata.com','https://api-cdp.ap03.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','79743xuKAOM','https://api-workflow.eu01.treasuredata.com'];a45_0x3a37=function(){return _0x28b95d;};return a45_0x3a37();}export function getEndpoint(_0x4a9565,_0x4640fe='td'){const _0xce8f6=a45_0x1b894d,_0x197284=API_ENDPOINTS[_0x4640fe]?.[_0x4a9565];if(!_0x197284)throw new Error(_0xce8f6(0x1e0)+_0x4640fe+_0xce8f6(0x1c2)+_0x4a9565+'\x27');return _0x197284;}
1
+ function a45_0x1ff9(_0x20ad10,_0x5c2bcf){const _0x43c15b=a45_0x43c1();return a45_0x1ff9=function(_0x1ff930,_0x2510e1){_0x1ff930=_0x1ff930-0x15e;let _0x2740f3=_0x43c15b[_0x1ff930];return _0x2740f3;},a45_0x1ff9(_0x20ad10,_0x5c2bcf);}const a45_0x4ffd93=a45_0x1ff9;(function(_0xb60a88,_0x3d9427){const _0xbb4ba2=a45_0x1ff9,_0x5454ae=_0xb60a88();while(!![]){try{const _0xc4d9a6=-parseInt(_0xbb4ba2(0x175))/0x1+-parseInt(_0xbb4ba2(0x16b))/0x2*(-parseInt(_0xbb4ba2(0x184))/0x3)+-parseInt(_0xbb4ba2(0x188))/0x4*(parseInt(_0xbb4ba2(0x189))/0x5)+parseInt(_0xbb4ba2(0x17f))/0x6*(parseInt(_0xbb4ba2(0x182))/0x7)+-parseInt(_0xbb4ba2(0x18b))/0x8*(parseInt(_0xbb4ba2(0x186))/0x9)+-parseInt(_0xbb4ba2(0x15e))/0xa+parseInt(_0xbb4ba2(0x170))/0xb;if(_0xc4d9a6===_0x3d9427)break;else _0x5454ae['push'](_0x5454ae['shift']());}catch(_0x137e5b){_0x5454ae['push'](_0x5454ae['shift']());}}}(a45_0x43c1,0xa403f));export const TD_ENDPOINTS={'us01':a45_0x4ffd93(0x181),'jp01':a45_0x4ffd93(0x185),'eu01':a45_0x4ffd93(0x15f),'ap02':'https://api.ap02.treasuredata.com','ap03':a45_0x4ffd93(0x16e),'dev-us01':a45_0x4ffd93(0x176),'dev-eu01':a45_0x4ffd93(0x160),'stg-us01':'https://api-staging.us01.treasuredata.com','stg-jp01':'https://api-staging.treasuredata.co.jp','stg-ap03':a45_0x4ffd93(0x167)};function a45_0x43c1(){const _0xd21f54=['https://api.eu01.treasuredata.com','https://api-development.eu01.treasuredata.com','https://llm-api-development.eu01.treasuredata.com','https://api-presto.treasuredata.co.jp','https://api-cdp.ap03.treasuredata.com','https://api-workflow.eu01.treasuredata.com','No\x20endpoint\x20defined\x20for\x20API\x20type\x20\x27','https://api-cdp.eu01.treasuredata.com','https://api-staging.ap03.treasuredata.com','https://api-workflow.treasuredata.co.jp','https://api-presto.ap03.treasuredata.com','https://llm-api-staging.treasuredata.co.jp','2MTpqYx','https://api-staging-workflow.treasuredata.co.jp','https://api-development-presto.treasuredata.com','https://api.ap03.treasuredata.com','https://api-staging-workflow.us01.treasuredata.com','11131208dDJEte','https://api-workflow.ap03.treasuredata.com','https://api-development-presto.eu01.treasuredata.com','https://api-staging-presto.ap03.treasuredata.com','https://llm-api.treasuredata.co.jp','927046yDMBFm','https://api-development.us01.treasuredata.com','https://llm-api-staging.us01.treasuredata.com','https://llm-api.ap03.treasuredata.com','https://api-workflow.ap02.treasuredata.com','https://api-staging-presto.treasuredata.co.jp','\x27\x20and\x20site\x20\x27','https://api-cdp.ap02.treasuredata.com','https://api-development-cdp.us01.treasuredata.com','https://api-staging-cdp.us01.treasuredata.com','3995736ZocAvh','https://api-presto.ap02.treasuredata.com','https://api.treasuredata.com','14yHXbOb','https://api-staging-presto.treasuredata.com','3085374ZImoMK','https://api.treasuredata.co.jp','9obEYFp','https://api-cdp.treasuredata.co.jp','12cfCwsO','1220025CyBalY','https://api-staging-workflow.ap03.treasuredata.com','247768IAvJFB','https://llm-api-staging.ap03.treasuredata.com','https://api-development-workflow.us01.treasuredata.com','https://api-presto.treasuredata.com','https://api-workflow.treasuredata.com','10104590BCDvTL'];a45_0x43c1=function(){return _0xd21f54;};return a45_0x43c1();}export const CDP_ENDPOINTS={'us01':'https://api-cdp.treasuredata.com','jp01':a45_0x4ffd93(0x187),'eu01':a45_0x4ffd93(0x166),'ap02':a45_0x4ffd93(0x17c),'ap03':a45_0x4ffd93(0x163),'dev-us01':a45_0x4ffd93(0x17d),'dev-eu01':'https://api-development-cdp.eu01.treasuredata.com','stg-us01':a45_0x4ffd93(0x17e),'stg-jp01':'https://api-staging-cdp.treasuredata.co.jp','stg-ap03':'https://api-staging-cdp.ap03.treasuredata.com'};export const WORKFLOW_ENDPOINTS={'us01':a45_0x4ffd93(0x18f),'jp01':a45_0x4ffd93(0x168),'eu01':a45_0x4ffd93(0x164),'ap02':a45_0x4ffd93(0x179),'ap03':a45_0x4ffd93(0x171),'dev-us01':a45_0x4ffd93(0x18d),'dev-eu01':'https://api-development-workflow.eu01.treasuredata.com','stg-us01':a45_0x4ffd93(0x16f),'stg-jp01':a45_0x4ffd93(0x16c),'stg-ap03':a45_0x4ffd93(0x18a)};export const TRINO_ENDPOINTS={'us01':a45_0x4ffd93(0x18e),'jp01':a45_0x4ffd93(0x162),'eu01':'https://api-presto.eu01.treasuredata.com','ap02':a45_0x4ffd93(0x180),'ap03':a45_0x4ffd93(0x169),'dev-us01':a45_0x4ffd93(0x16d),'dev-eu01':a45_0x4ffd93(0x172),'stg-us01':a45_0x4ffd93(0x183),'stg-jp01':a45_0x4ffd93(0x17a),'stg-ap03':a45_0x4ffd93(0x173)};export const LLM_ENDPOINTS={'us01':'https://llm-api.treasuredata.com','jp01':a45_0x4ffd93(0x174),'eu01':'https://llm-api.eu01.treasuredata.com','ap02':'https://llm-api.ap02.treasuredata.com','ap03':a45_0x4ffd93(0x178),'dev-us01':'https://llm-api-development.us01.treasuredata.com','dev-eu01':a45_0x4ffd93(0x161),'stg-us01':a45_0x4ffd93(0x177),'stg-jp01':a45_0x4ffd93(0x16a),'stg-ap03':a45_0x4ffd93(0x18c)};export const API_ENDPOINTS={'td':TD_ENDPOINTS,'cdp':CDP_ENDPOINTS,'workflow':WORKFLOW_ENDPOINTS,'trino':TRINO_ENDPOINTS,'llm':LLM_ENDPOINTS};export function getEndpoint(_0x46ae0b,_0x40799f='td'){const _0x39f981=a45_0x4ffd93,_0x1f0821=API_ENDPOINTS[_0x40799f]?.[_0x46ae0b];if(!_0x1f0821)throw new Error(_0x39f981(0x165)+_0x40799f+_0x39f981(0x17b)+_0x46ae0b+'\x27');return _0x1f0821;}
@@ -1 +1 @@
1
- function a46_0x528e(_0x14a8e2,_0x4e0ed6){const _0x37f96f=a46_0x37f9();return a46_0x528e=function(_0x528eba,_0x35cb8b){_0x528eba=_0x528eba-0x128;let _0x45a251=_0x37f96f[_0x528eba];return _0x45a251;},a46_0x528e(_0x14a8e2,_0x4e0ed6);}const a46_0xdfb9ab=a46_0x528e;(function(_0x19d697,_0x2fa410){const _0x42672c=a46_0x528e,_0x55be51=_0x19d697();while(!![]){try{const _0x32a6aa=parseInt(_0x42672c(0x12d))/0x1+-parseInt(_0x42672c(0x12a))/0x2*(parseInt(_0x42672c(0x12c))/0x3)+-parseInt(_0x42672c(0x136))/0x4+parseInt(_0x42672c(0x130))/0x5*(parseInt(_0x42672c(0x12e))/0x6)+-parseInt(_0x42672c(0x12f))/0x7*(-parseInt(_0x42672c(0x12b))/0x8)+-parseInt(_0x42672c(0x137))/0x9*(-parseInt(_0x42672c(0x131))/0xa)+parseInt(_0x42672c(0x128))/0xb*(-parseInt(_0x42672c(0x132))/0xc);if(_0x32a6aa===_0x2fa410)break;else _0x55be51['push'](_0x55be51['shift']());}catch(_0x5bb1a3){_0x55be51['push'](_0x55be51['shift']());}}}(a46_0x37f9,0xbc68a));export const SITE_ALIASES={'us':a46_0xdfb9ab(0x134),'aws':a46_0xdfb9ab(0x134),'jp':a46_0xdfb9ab(0x129),'aws-tokyo':a46_0xdfb9ab(0x129),'dev':a46_0xdfb9ab(0x133),'stg':a46_0xdfb9ab(0x135)};function a46_0x37f9(){const _0x4cadb5=['dev-us01','us01','stg-us01','2390156FxYbMN','18lauoxq','5489bZSDCp','jp01','4958NhEsTo','4024NHphRI','1539CYjhmn','55994owHfjr','14886eQcXIs','15547HCJQUd','1180FRFShS','4743410AmSsqj','1596dKRkww'];a46_0x37f9=function(){return _0x4cadb5;};return a46_0x37f9();}export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
1
+ const a46_0x191bf9=a46_0x7e8e;function a46_0x1388(){const _0x4a5c2b=['1053650DIJgPw','472129jrvpOn','4shgClx','802533nUYJCw','stg-us01','16748XQJVwU','18OdnKdm','dev-us01','1570YzfdHN','jp01','5CmKBgd','46270917qdeVSz','1467EIKCeD','12836016oFoEDP'];a46_0x1388=function(){return _0x4a5c2b;};return a46_0x1388();}function a46_0x7e8e(_0x55a981,_0x335367){const _0x1388a0=a46_0x1388();return a46_0x7e8e=function(_0x7e8e1b,_0x2879d8){_0x7e8e1b=_0x7e8e1b-0x82;let _0x2f91c4=_0x1388a0[_0x7e8e1b];return _0x2f91c4;},a46_0x7e8e(_0x55a981,_0x335367);}(function(_0x4f715e,_0x3b42d7){const _0x5b6675=a46_0x7e8e,_0x5e7db6=_0x4f715e();while(!![]){try{const _0x3ce964=-parseInt(_0x5b6675(0x89))/0x1+-parseInt(_0x5b6675(0x8b))/0x2*(parseInt(_0x5b6675(0x8c))/0x3)+parseInt(_0x5b6675(0x8e))/0x4*(-parseInt(_0x5b6675(0x85))/0x5)+parseInt(_0x5b6675(0x8f))/0x6*(-parseInt(_0x5b6675(0x8a))/0x7)+-parseInt(_0x5b6675(0x88))/0x8+parseInt(_0x5b6675(0x87))/0x9*(parseInt(_0x5b6675(0x83))/0xa)+parseInt(_0x5b6675(0x86))/0xb;if(_0x3ce964===_0x3b42d7)break;else _0x5e7db6['push'](_0x5e7db6['shift']());}catch(_0x3978dd){_0x5e7db6['push'](_0x5e7db6['shift']());}}}(a46_0x1388,0xcb350));export const SITE_ALIASES={'us':'us01','aws':'us01','jp':a46_0x191bf9(0x84),'aws-tokyo':'jp01','dev':a46_0x191bf9(0x82),'stg':a46_0x191bf9(0x8d)};export{getEndpoint,API_ENDPOINTS}from'./endpoints.js';
@@ -1 +1 @@
1
- function a49_0x1f1d(_0x272ebb,_0x139306){const _0x16cf81=a49_0x16cf();return a49_0x1f1d=function(_0x1f1d20,_0x5283d1){_0x1f1d20=_0x1f1d20-0xc3;let _0x4e6814=_0x16cf81[_0x1f1d20];return _0x4e6814;},a49_0x1f1d(_0x272ebb,_0x139306);}function a49_0x16cf(){const _0x4e1b3e=['590831TYWumL','1645392gmUSZI','332705chsIuz','4444209ecQXBJ','452092fOXZph','split','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','552798EvrcCA','trim','Agent\x20name\x20cannot\x20be\x20empty','length','629596YdkfHr','Project\x20name\x20cannot\x20be\x20empty'];a49_0x16cf=function(){return _0x4e1b3e;};return a49_0x16cf();}(function(_0x407ccd,_0x7c4e37){const _0x5074f=a49_0x1f1d,_0x5e86e1=_0x407ccd();while(!![]){try{const _0x1a8100=parseInt(_0x5074f(0xce))/0x1+-parseInt(_0x5074f(0xcc))/0x2+parseInt(_0x5074f(0xcf))/0x3+parseInt(_0x5074f(0xc5))/0x4+-parseInt(_0x5074f(0xc3))/0x5+parseInt(_0x5074f(0xc8))/0x6+-parseInt(_0x5074f(0xc4))/0x7;if(_0x1a8100===_0x7c4e37)break;else _0x5e86e1['push'](_0x5e86e1['shift']());}catch(_0xf90824){_0x5e86e1['push'](_0x5e86e1['shift']());}}}(a49_0x16cf,0x50221));export function parseAgentRef(_0x525576){const _0x1b07e6=a49_0x1f1d;if(!_0x525576||_0x525576[_0x1b07e6(0xc9)]()==='')throw new Error('Agent\x20reference\x20cannot\x20be\x20empty');const _0x3d3cab=_0x525576[_0x1b07e6(0xc9)](),_0x20a0bc=_0x3d3cab[_0x1b07e6(0xc6)]('/');if(_0x20a0bc['length']===0x1)return{'projectName':_0x20a0bc[0x0],'agentName':undefined};else{if(_0x20a0bc[_0x1b07e6(0xcb)]===0x2){const [_0x36fdb0,_0x2d2ea]=_0x20a0bc;if(!_0x36fdb0||_0x36fdb0['trim']()==='')throw new Error(_0x1b07e6(0xcd));if(!_0x2d2ea||_0x2d2ea[_0x1b07e6(0xc9)]()==='')throw new Error(_0x1b07e6(0xca));return{'projectName':_0x36fdb0['trim'](),'agentName':_0x2d2ea[_0x1b07e6(0xc9)]()};}else throw new Error('Invalid\x20agent\x20reference\x20format:\x20'+_0x525576+_0x1b07e6(0xc7));}}
1
+ function a49_0x2318(){const _0x90a414=['139fZosyH','620hNbvvl','6Xscezu','9426664QRCCMC','Project\x20name\x20cannot\x20be\x20empty','length','92790oTQaho','split','21859827JYWmUK','614TTyVCp','.\x20Expected\x20\x22project_name\x22\x20or\x20\x22project_name/agent_name\x22','80340hgxBHT','201364hNYekv','trim','14dUDeTX','Invalid\x20agent\x20reference\x20format:\x20','2650062AXLtjw'];a49_0x2318=function(){return _0x90a414;};return a49_0x2318();}function a49_0x580f(_0x42e4ee,_0x7a711){const _0x231804=a49_0x2318();return a49_0x580f=function(_0x580f1a,_0x2c2cf6){_0x580f1a=_0x580f1a-0xca;let _0x2789ee=_0x231804[_0x580f1a];return _0x2789ee;},a49_0x580f(_0x42e4ee,_0x7a711);}(function(_0x255016,_0x3e3833){const _0x85d891=a49_0x580f,_0xe20968=_0x255016();while(!![]){try{const _0x289fda=-parseInt(_0x85d891(0xd3))/0x1*(parseInt(_0x85d891(0xcb))/0x2)+-parseInt(_0x85d891(0xd5))/0x3*(-parseInt(_0x85d891(0xce))/0x4)+parseInt(_0x85d891(0xcd))/0x5+-parseInt(_0x85d891(0xd2))/0x6*(parseInt(_0x85d891(0xd0))/0x7)+-parseInt(_0x85d891(0xd6))/0x8+parseInt(_0x85d891(0xd9))/0x9*(parseInt(_0x85d891(0xd4))/0xa)+parseInt(_0x85d891(0xca))/0xb;if(_0x289fda===_0x3e3833)break;else _0xe20968['push'](_0xe20968['shift']());}catch(_0x26e1ea){_0xe20968['push'](_0xe20968['shift']());}}}(a49_0x2318,0x9bf93));export function parseAgentRef(_0x6fcf9a){const _0x2b2f38=a49_0x580f;if(!_0x6fcf9a||_0x6fcf9a[_0x2b2f38(0xcf)]()==='')throw new Error('Agent\x20reference\x20cannot\x20be\x20empty');const _0x4b358b=_0x6fcf9a[_0x2b2f38(0xcf)](),_0x4ec67e=_0x4b358b[_0x2b2f38(0xda)]('/');if(_0x4ec67e[_0x2b2f38(0xd8)]===0x1)return{'projectName':_0x4ec67e[0x0],'agentName':undefined};else{if(_0x4ec67e[_0x2b2f38(0xd8)]===0x2){const [_0x251cd4,_0x1bda47]=_0x4ec67e;if(!_0x251cd4||_0x251cd4[_0x2b2f38(0xcf)]()==='')throw new Error(_0x2b2f38(0xd7));if(!_0x1bda47||_0x1bda47['trim']()==='')throw new Error('Agent\x20name\x20cannot\x20be\x20empty');return{'projectName':_0x251cd4['trim'](),'agentName':_0x1bda47[_0x2b2f38(0xcf)]()};}else throw new Error(_0x2b2f38(0xd1)+_0x6fcf9a+_0x2b2f38(0xcc));}}
@@ -1 +1 @@
1
- (function(_0x4e7f64,_0x5c7f22){const _0x2b0bb4=a50_0x53ea,_0x28de19=_0x4e7f64();while(!![]){try{const _0x581717=-parseInt(_0x2b0bb4(0xaf))/0x1*(-parseInt(_0x2b0bb4(0xa7))/0x2)+-parseInt(_0x2b0bb4(0xa9))/0x3+-parseInt(_0x2b0bb4(0xae))/0x4+parseInt(_0x2b0bb4(0xab))/0x5*(parseInt(_0x2b0bb4(0xa5))/0x6)+-parseInt(_0x2b0bb4(0xb2))/0x7*(parseInt(_0x2b0bb4(0xac))/0x8)+-parseInt(_0x2b0bb4(0xb0))/0x9+-parseInt(_0x2b0bb4(0xa8))/0xa*(-parseInt(_0x2b0bb4(0xaa))/0xb);if(_0x581717===_0x5c7f22)break;else _0x28de19['push'](_0x28de19['shift']());}catch(_0x113ad7){_0x28de19['push'](_0x28de19['shift']());}}}(a50_0x6a1d,0x4b41f));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function a50_0x53ea(_0x276f2c,_0x4afa21){const _0x6a1dd0=a50_0x6a1d();return a50_0x53ea=function(_0x53ead6,_0x55e0fc){_0x53ead6=_0x53ead6-0xa2;let _0xc18d37=_0x6a1dd0[_0x53ead6];return _0xc18d37;},a50_0x53ea(_0x276f2c,_0x4afa21);}function getCacheDir(){const _0x58226b=a50_0x53ea;return join(process[_0x58226b(0xad)](),_0x58226b(0xb1),_0x58226b(0xa4));}function getLastChatIdPath(){const _0x43136b=a50_0x53ea;return join(getCacheDir(),_0x43136b(0xa6));}function ensureCacheDir(){const _0x54a6d4=getCacheDir();!existsSync(_0x54a6d4)&&mkdirSync(_0x54a6d4,{'recursive':!![]});}export function saveLastChatId(_0x5a161c){const _0x96ad75=a50_0x53ea;ensureCacheDir();const _0x370793=getLastChatIdPath();writeFileSync(_0x370793,_0x5a161c,_0x96ad75(0xa3));}export function loadLastChatId(){const _0x5b01fe=a50_0x53ea,_0x5af807=getLastChatIdPath();if(!existsSync(_0x5af807))return undefined;try{const _0xf1a841=readFileSync(_0x5af807,_0x5b01fe(0xa3))[_0x5b01fe(0xa2)]();return _0xf1a841||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x1b75f1=a50_0x53ea,_0x1e8eea=getLastChatIdPath();if(existsSync(_0x1e8eea))try{writeFileSync(_0x1e8eea,'',_0x1b75f1(0xa3));}catch{}}function a50_0x6a1d(){const _0x4e99ba=['524989ldaLtQ','4836753iursnP','.cache','735EdjbRw','trim','utf-8','tdx','138ymlzsz','last_chat_id','2Eeeszu','112820HiMATb','78051cyTBoz','583FvboYV','100595bRoyts','44152HpXPzf','cwd','537952MunZsb'];a50_0x6a1d=function(){return _0x4e99ba;};return a50_0x6a1d();}
1
+ function a50_0x165c(_0x322732,_0x1c5200){const _0x216f56=a50_0x216f();return a50_0x165c=function(_0x165cb6,_0x2b92b3){_0x165cb6=_0x165cb6-0x1c8;let _0x3e5011=_0x216f56[_0x165cb6];return _0x3e5011;},a50_0x165c(_0x322732,_0x1c5200);}(function(_0x357b2c,_0x46631c){const _0x51ae4f=a50_0x165c,_0x4b8562=_0x357b2c();while(!![]){try{const _0x163b80=-parseInt(_0x51ae4f(0x1cd))/0x1+parseInt(_0x51ae4f(0x1cf))/0x2*(-parseInt(_0x51ae4f(0x1c9))/0x3)+parseInt(_0x51ae4f(0x1cc))/0x4*(-parseInt(_0x51ae4f(0x1cb))/0x5)+parseInt(_0x51ae4f(0x1d4))/0x6+-parseInt(_0x51ae4f(0x1d0))/0x7*(-parseInt(_0x51ae4f(0x1d7))/0x8)+parseInt(_0x51ae4f(0x1c8))/0x9*(parseInt(_0x51ae4f(0x1d2))/0xa)+parseInt(_0x51ae4f(0x1ce))/0xb;if(_0x163b80===_0x46631c)break;else _0x4b8562['push'](_0x4b8562['shift']());}catch(_0xf69b02){_0x4b8562['push'](_0x4b8562['shift']());}}}(a50_0x216f,0xa8dfb));import{existsSync,mkdirSync,readFileSync,writeFileSync}from'fs';import{join}from'path';function getCacheDir(){const _0x18564d=a50_0x165c;return join(process['cwd'](),_0x18564d(0x1ca),_0x18564d(0x1d5));}function getLastChatIdPath(){const _0x3426fd=a50_0x165c;return join(getCacheDir(),_0x3426fd(0x1d1));}function ensureCacheDir(){const _0x2e8b1c=getCacheDir();!existsSync(_0x2e8b1c)&&mkdirSync(_0x2e8b1c,{'recursive':!![]});}function a50_0x216f(){const _0x5a5afc=['6041892GsPJNE','tdx','utf-8','24MKIwFY','5465682XrfaDG','3bgQTaD','.cache','5wuiUYo','3310736PVXDnG','1239026dAcmJQ','13166274yAqghf','2572036dlCAbi','1460487xNfeZC','last_chat_id','20ffgNdz','trim'];a50_0x216f=function(){return _0x5a5afc;};return a50_0x216f();}export function saveLastChatId(_0x5f351d){const _0x5f1c81=a50_0x165c;ensureCacheDir();const _0xfcf840=getLastChatIdPath();writeFileSync(_0xfcf840,_0x5f351d,_0x5f1c81(0x1d6));}export function loadLastChatId(){const _0x21b47a=a50_0x165c,_0x5a016e=getLastChatIdPath();if(!existsSync(_0x5a016e))return undefined;try{const _0xc40815=readFileSync(_0x5a016e,_0x21b47a(0x1d6))[_0x21b47a(0x1d3)]();return _0xc40815||undefined;}catch{return undefined;}}export function clearLastChatId(){const _0x47e764=a50_0x165c,_0x1a0cd0=getLastChatIdPath();if(existsSync(_0x1a0cd0))try{writeFileSync(_0x1a0cd0,'',_0x47e764(0x1d6));}catch{}}
@@ -1 +1 @@
1
- (function(_0x26730f,_0x4adea2){const _0x16e097=a51_0x513f,_0x32c6dc=_0x26730f();while(!![]){try{const _0x3c9e6c=parseInt(_0x16e097(0x1be))/0x1+parseInt(_0x16e097(0x1ad))/0x2*(parseInt(_0x16e097(0x1af))/0x3)+parseInt(_0x16e097(0x1c0))/0x4*(-parseInt(_0x16e097(0x1ab))/0x5)+parseInt(_0x16e097(0x1b6))/0x6+parseInt(_0x16e097(0x1c4))/0x7*(parseInt(_0x16e097(0x1a7))/0x8)+-parseInt(_0x16e097(0x1bc))/0x9+parseInt(_0x16e097(0x1a5))/0xa;if(_0x3c9e6c===_0x4adea2)break;else _0x32c6dc['push'](_0x32c6dc['shift']());}catch(_0x17e26f){_0x32c6dc['push'](_0x32c6dc['shift']());}}}(a51_0x2174,0xb061d));import{Chalk}from'chalk';export function shouldUseColor(_0xda6781={}){const _0x4bf3cc=a51_0x513f;if(_0xda6781[_0x4bf3cc(0x1b3)]===!![])return![];if(_0xda6781[_0x4bf3cc(0x1b2)]===!![])return!![];if(process[_0x4bf3cc(0x1b4)]['NO_COLOR']!==undefined)return![];return process[_0x4bf3cc(0x1ac)][_0x4bf3cc(0x1b9)]??![];}function a51_0x2174(){const _0x3113ee=['41196QyvXVZ','yellow','boolean','entries','7RpXupQ','3526500DFmFJR','blue','5383984HAbnUf','length','dim','object','605IXicFr','stdout','4ErrDDQ','green','543570EBROip','null','isArray','color','noColor','env','repeat','6520566pqxRbL','map','join','isTTY','number','cyan','11349387XNrfwi','string','754894YZFeFe','stringify'];a51_0x2174=function(){return _0x3113ee;};return a51_0x2174();}function getChalk(_0x509a71={}){if(shouldUseColor(_0x509a71))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x55da2b,_0x1dddf7={}){return getChalk(_0x1dddf7)['dim'](_0x55da2b);}export function colorHeader(_0x334ed9,_0x27bca6={}){const _0x37c561=a51_0x513f;return getChalk(_0x27bca6)[_0x37c561(0x1bb)](_0x334ed9);}function a51_0x513f(_0x19d5d5,_0x27ad04){const _0x217455=a51_0x2174();return a51_0x513f=function(_0x513ff1,_0x2d7b83){_0x513ff1=_0x513ff1-0x1a5;let _0x10d240=_0x217455[_0x513ff1];return _0x10d240;},a51_0x513f(_0x19d5d5,_0x27ad04);}export function colorType(_0x112c46,_0x395ac3={}){return getChalk(_0x395ac3)['dim'](_0x112c46);}export function colorJSONKey(_0x165acd,_0x431cca={}){const _0x248306=a51_0x513f;return getChalk(_0x431cca)[_0x248306(0x1a6)](_0x165acd);}export function colorJSONString(_0x422193,_0xb8ce14={}){const _0x5efb71=a51_0x513f;return getChalk(_0xb8ce14)[_0x5efb71(0x1ae)](_0x422193);}export function colorJSONNumber(_0x11ea95,_0x42cafa={}){return getChalk(_0x42cafa)['cyan'](_0x11ea95);}export function colorJSONBoolean(_0x57419a,_0x220ea3={}){const _0xab568b=a51_0x513f;return getChalk(_0x220ea3)[_0xab568b(0x1c1)](_0x57419a);}export function colorJSONNull(_0x502d60,_0x3d3cee={}){const _0x1af172=a51_0x513f;return getChalk(_0x3d3cee)[_0x1af172(0x1a9)](_0x502d60);}export function colorizeJSONCompact(_0x48b2cb,_0x1768fc={}){const _0x55d02b=a51_0x513f;if(!shouldUseColor(_0x1768fc))return JSON[_0x55d02b(0x1bf)](_0x48b2cb);if(_0x48b2cb===null)return colorJSONNull(_0x55d02b(0x1b0),_0x1768fc);if(typeof _0x48b2cb===_0x55d02b(0x1c2))return colorJSONBoolean(String(_0x48b2cb),_0x1768fc);if(typeof _0x48b2cb===_0x55d02b(0x1ba))return colorJSONNumber(String(_0x48b2cb),_0x1768fc);if(typeof _0x48b2cb==='string')return colorJSONString(JSON[_0x55d02b(0x1bf)](_0x48b2cb),_0x1768fc);if(Array[_0x55d02b(0x1b1)](_0x48b2cb)){if(_0x48b2cb[_0x55d02b(0x1a8)]===0x0)return'[]';const _0x3f90b2=_0x48b2cb[_0x55d02b(0x1b7)](_0x413bd7=>colorizeJSONCompact(_0x413bd7,_0x1768fc));return'['+_0x3f90b2[_0x55d02b(0x1b8)](',')+']';}if(typeof _0x48b2cb===_0x55d02b(0x1aa)){const _0x4befb5=Object[_0x55d02b(0x1c3)](_0x48b2cb);if(_0x4befb5['length']===0x0)return'{}';const _0x3c769c=_0x4befb5[_0x55d02b(0x1b7)](([_0x15f537,_0x44a30f])=>{const _0x462cab=_0x55d02b,_0x19b8f4=colorJSONKey(JSON[_0x462cab(0x1bf)](_0x15f537),_0x1768fc),_0x40d56b=colorizeJSONCompact(_0x44a30f,_0x1768fc);return _0x19b8f4+':'+_0x40d56b;});return'{'+_0x3c769c[_0x55d02b(0x1b8)](',')+'}';}return String(_0x48b2cb);}export function colorizeJSON(_0x1b6414,_0xb5ecc3={},_0x219bf0=0x0){const _0x2565e7=a51_0x513f;if(!shouldUseColor(_0xb5ecc3))return JSON['stringify'](_0x1b6414,null,0x2);const _0x2ac276='\x20'[_0x2565e7(0x1b5)](_0x219bf0),_0x2d0083=_0x219bf0+0x2;if(_0x1b6414===null)return colorJSONNull(_0x2565e7(0x1b0),_0xb5ecc3);if(typeof _0x1b6414===_0x2565e7(0x1c2))return colorJSONBoolean(String(_0x1b6414),_0xb5ecc3);if(typeof _0x1b6414===_0x2565e7(0x1ba))return colorJSONNumber(String(_0x1b6414),_0xb5ecc3);if(typeof _0x1b6414===_0x2565e7(0x1bd))return colorJSONString(JSON[_0x2565e7(0x1bf)](_0x1b6414),_0xb5ecc3);if(Array[_0x2565e7(0x1b1)](_0x1b6414)){if(_0x1b6414[_0x2565e7(0x1a8)]===0x0)return'[]';const _0x4fb1cd=_0x1b6414[_0x2565e7(0x1b7)](_0x28805b=>{const _0x402a45=_0x2565e7,_0x2d7f35=colorizeJSON(_0x28805b,_0xb5ecc3,_0x2d0083);return''+'\x20'[_0x402a45(0x1b5)](_0x2d0083)+_0x2d7f35;});return'[\x0a'+_0x4fb1cd[_0x2565e7(0x1b8)](',\x0a')+('\x0a'+_0x2ac276+']');}if(typeof _0x1b6414==='object'){const _0x269560=Object[_0x2565e7(0x1c3)](_0x1b6414);if(_0x269560[_0x2565e7(0x1a8)]===0x0)return'{}';const _0x25519c=_0x269560['map'](([_0x45f1dd,_0x28eabf])=>{const _0x1682fe=_0x2565e7,_0x4ea982=colorJSONKey(JSON[_0x1682fe(0x1bf)](_0x45f1dd),_0xb5ecc3),_0x232bf3=colorizeJSON(_0x28eabf,_0xb5ecc3,_0x2d0083);return''+'\x20'[_0x1682fe(0x1b5)](_0x2d0083)+_0x4ea982+':\x20'+_0x232bf3;});return'{\x0a'+_0x25519c[_0x2565e7(0x1b8)](',\x0a')+('\x0a'+_0x2ac276+'}');}return String(_0x1b6414);}
1
+ function a51_0x2f0e(){const _0x4f48e9=['stringify','entries','cyan','boolean','green','object','95208AAQCfO','string','42oXTcVm','join','repeat','916065piBhCl','length','isTTY','noColor','number','416708sKgXLn','3662690FJguVg','NO_COLOR','yellow','null','8pnHbAC','dim','color','blue','191085ZrOtGp','8932800mfopXo','44dfNSMb','map','841830ZtlMNw'];a51_0x2f0e=function(){return _0x4f48e9;};return a51_0x2f0e();}(function(_0x504a64,_0x5d9108){const _0x313b79=a51_0x4187,_0x69e5e2=_0x504a64();while(!![]){try{const _0x40397f=parseInt(_0x313b79(0xf5))/0x1+-parseInt(_0x313b79(0x102))/0x2+parseInt(_0x313b79(0xfe))/0x3*(parseInt(_0x313b79(0x100))/0x4)+parseInt(_0x313b79(0xf6))/0x5+parseInt(_0x313b79(0xeb))/0x6*(-parseInt(_0x313b79(0xed))/0x7)+-parseInt(_0x313b79(0xfa))/0x8*(-parseInt(_0x313b79(0xf0))/0x9)+-parseInt(_0x313b79(0xff))/0xa;if(_0x40397f===_0x5d9108)break;else _0x69e5e2['push'](_0x69e5e2['shift']());}catch(_0x508d4e){_0x69e5e2['push'](_0x69e5e2['shift']());}}}(a51_0x2f0e,0x84641));import{Chalk}from'chalk';export function shouldUseColor(_0x5cf349={}){const _0x1cd654=a51_0x4187;if(_0x5cf349[_0x1cd654(0xf3)]===!![])return![];if(_0x5cf349[_0x1cd654(0xfc)]===!![])return!![];if(process['env'][_0x1cd654(0xf7)]!==undefined)return![];return process['stdout'][_0x1cd654(0xf2)]??![];}function getChalk(_0x2dfbb5={}){if(shouldUseColor(_0x2dfbb5))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4cc1c5,_0x1a968c={}){const _0x1abb24=a51_0x4187;return getChalk(_0x1a968c)[_0x1abb24(0xfb)](_0x4cc1c5);}export function colorHeader(_0x375e92,_0x4faac8={}){const _0x76255=a51_0x4187;return getChalk(_0x4faac8)[_0x76255(0x105)](_0x375e92);}export function colorType(_0x73d9af,_0x4cac99={}){const _0x5b7ae0=a51_0x4187;return getChalk(_0x4cac99)[_0x5b7ae0(0xfb)](_0x73d9af);}function a51_0x4187(_0x23a45d,_0x581492){const _0x2f0e79=a51_0x2f0e();return a51_0x4187=function(_0x418700,_0x434392){_0x418700=_0x418700-0xe9;let _0x908652=_0x2f0e79[_0x418700];return _0x908652;},a51_0x4187(_0x23a45d,_0x581492);}export function colorJSONKey(_0xffb879,_0x366eea={}){const _0x36a64c=a51_0x4187;return getChalk(_0x366eea)[_0x36a64c(0xfd)](_0xffb879);}export function colorJSONString(_0x360537,_0x3eca05={}){const _0x3bb4fd=a51_0x4187;return getChalk(_0x3eca05)[_0x3bb4fd(0xe9)](_0x360537);}export function colorJSONNumber(_0xc7ae65,_0x35878b={}){return getChalk(_0x35878b)['cyan'](_0xc7ae65);}export function colorJSONBoolean(_0xb22ace,_0x4e0a1f={}){const _0x5b7397=a51_0x4187;return getChalk(_0x4e0a1f)[_0x5b7397(0xf8)](_0xb22ace);}export function colorJSONNull(_0x2c70c2,_0x215be3={}){const _0x260bf9=a51_0x4187;return getChalk(_0x215be3)[_0x260bf9(0xfb)](_0x2c70c2);}export function colorizeJSONCompact(_0x298364,_0x3ff0e5={}){const _0x5cf5ee=a51_0x4187;if(!shouldUseColor(_0x3ff0e5))return JSON[_0x5cf5ee(0x103)](_0x298364);if(_0x298364===null)return colorJSONNull(_0x5cf5ee(0xf9),_0x3ff0e5);if(typeof _0x298364==='boolean')return colorJSONBoolean(String(_0x298364),_0x3ff0e5);if(typeof _0x298364===_0x5cf5ee(0xf4))return colorJSONNumber(String(_0x298364),_0x3ff0e5);if(typeof _0x298364===_0x5cf5ee(0xec))return colorJSONString(JSON[_0x5cf5ee(0x103)](_0x298364),_0x3ff0e5);if(Array['isArray'](_0x298364)){if(_0x298364[_0x5cf5ee(0xf1)]===0x0)return'[]';const _0x20e083=_0x298364[_0x5cf5ee(0x101)](_0x4592a1=>colorizeJSONCompact(_0x4592a1,_0x3ff0e5));return'['+_0x20e083['join'](',')+']';}if(typeof _0x298364===_0x5cf5ee(0xea)){const _0x1fb7be=Object[_0x5cf5ee(0x104)](_0x298364);if(_0x1fb7be[_0x5cf5ee(0xf1)]===0x0)return'{}';const _0x5a2be0=_0x1fb7be[_0x5cf5ee(0x101)](([_0x26404f,_0x200141])=>{const _0x25a2ec=_0x5cf5ee,_0x4d2ac9=colorJSONKey(JSON[_0x25a2ec(0x103)](_0x26404f),_0x3ff0e5),_0x3fdc00=colorizeJSONCompact(_0x200141,_0x3ff0e5);return _0x4d2ac9+':'+_0x3fdc00;});return'{'+_0x5a2be0[_0x5cf5ee(0xee)](',')+'}';}return String(_0x298364);}export function colorizeJSON(_0x3e5259,_0xc0bc67={},_0x2edf34=0x0){const _0x430892=a51_0x4187;if(!shouldUseColor(_0xc0bc67))return JSON['stringify'](_0x3e5259,null,0x2);const _0x4181d1='\x20'[_0x430892(0xef)](_0x2edf34),_0x3701c4=_0x2edf34+0x2;if(_0x3e5259===null)return colorJSONNull(_0x430892(0xf9),_0xc0bc67);if(typeof _0x3e5259===_0x430892(0x106))return colorJSONBoolean(String(_0x3e5259),_0xc0bc67);if(typeof _0x3e5259===_0x430892(0xf4))return colorJSONNumber(String(_0x3e5259),_0xc0bc67);if(typeof _0x3e5259===_0x430892(0xec))return colorJSONString(JSON[_0x430892(0x103)](_0x3e5259),_0xc0bc67);if(Array['isArray'](_0x3e5259)){if(_0x3e5259[_0x430892(0xf1)]===0x0)return'[]';const _0x1abad3=_0x3e5259['map'](_0x48e88e=>{const _0x49465b=_0x430892,_0x3f91b6=colorizeJSON(_0x48e88e,_0xc0bc67,_0x3701c4);return''+'\x20'[_0x49465b(0xef)](_0x3701c4)+_0x3f91b6;});return'[\x0a'+_0x1abad3[_0x430892(0xee)](',\x0a')+('\x0a'+_0x4181d1+']');}if(typeof _0x3e5259===_0x430892(0xea)){const _0x1fc492=Object['entries'](_0x3e5259);if(_0x1fc492[_0x430892(0xf1)]===0x0)return'{}';const _0x415cdd=_0x1fc492[_0x430892(0x101)](([_0x5d3a0e,_0x3f6a5d])=>{const _0x4114fb=_0x430892,_0x4be673=colorJSONKey(JSON['stringify'](_0x5d3a0e),_0xc0bc67),_0xfc0b4f=colorizeJSON(_0x3f6a5d,_0xc0bc67,_0x3701c4);return''+'\x20'[_0x4114fb(0xef)](_0x3701c4)+_0x4be673+':\x20'+_0xfc0b4f;});return'{\x0a'+_0x415cdd['join'](',\x0a')+('\x0a'+_0x4181d1+'}');}return String(_0x3e5259);}
@@ -1 +1 @@
1
- (function(_0xe21fc8,_0x8c71b4){const _0x586d41=a52_0x13cb,_0x5662be=_0xe21fc8();while(!![]){try{const _0x156924=-parseInt(_0x586d41(0x8a))/0x1+parseInt(_0x586d41(0x6a))/0x2*(parseInt(_0x586d41(0x6b))/0x3)+parseInt(_0x586d41(0x7f))/0x4+-parseInt(_0x586d41(0x73))/0x5*(-parseInt(_0x586d41(0x69))/0x6)+parseInt(_0x586d41(0x6f))/0x7*(-parseInt(_0x586d41(0x77))/0x8)+parseInt(_0x586d41(0x7b))/0x9+parseInt(_0x586d41(0x7a))/0xa*(parseInt(_0x586d41(0x88))/0xb);if(_0x156924===_0x8c71b4)break;else _0x5662be['push'](_0x5662be['shift']());}catch(_0x2c5ac6){_0x5662be['push'](_0x5662be['shift']());}}}(a52_0x8361,0x36524));import{writeFileSync}from'fs';function a52_0x13cb(_0x555cc6,_0x1b4257){const _0x836143=a52_0x8361();return a52_0x13cb=function(_0x13cbbf,_0x4ee391){_0x13cbbf=_0x13cbbf-0x69;let _0x10fcfc=_0x836143[_0x13cbbf];return _0x10fcfc;},a52_0x13cb(_0x555cc6,_0x1b4257);}import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';export function parseOutputOptions(_0x366bfd){const _0x2b1da4=a52_0x13cb;return{'format':_0x366bfd[_0x2b1da4(0x80)]||_0x2b1da4(0x81),'output':_0x366bfd[_0x2b1da4(0x83)]||'','limit':_0x366bfd['limit'],'color':_0x366bfd[_0x2b1da4(0x76)],'noColor':_0x366bfd['noColor']};}function convertSDKResultToQueryResult(_0x45edf2){const _0x1a256f=a52_0x13cb,_0x3a9cbb=[];if(_0x45edf2['length']>0x0){const _0x194c6d=_0x45edf2[0x0];for(const [_0x41b9d2,_0x53b32a]of Object[_0x1a256f(0x86)](_0x194c6d)){let _0x21f163=_0x1a256f(0x84);if(typeof _0x53b32a===_0x1a256f(0x8d))_0x21f163=Number[_0x1a256f(0x6e)](_0x53b32a)?_0x1a256f(0x6d):'double';else{if(typeof _0x53b32a==='boolean')_0x21f163=_0x1a256f(0x75);else _0x53b32a===null&&(_0x21f163=_0x1a256f(0x84));}_0x3a9cbb['push']({'name':_0x41b9d2,'type':_0x21f163});}}return{'queryId':_0x1a256f(0x74),'columns':_0x3a9cbb,'data':_0x45edf2,'stats':{'state':'FINISHED','queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x45edf2[_0x1a256f(0x71)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x61d580,_0x314544){const _0x598dac=convertSDKResultToQueryResult(_0x61d580);return formatQueryOutput(_0x598dac,_0x314544);}export async function formatQueryOutput(_0x4edb51,_0x516272){const _0x2857cf=a52_0x13cb,{format:_0x2c07b4,limit:_0x550263,output:_0x5c53af,color:_0x349b6a,noColor:_0x436e68}=_0x516272,_0x21d641=Boolean(_0x5c53af)&&!_0x349b6a,_0x1191b1={'color':_0x349b6a,'noColor':_0x436e68||_0x21d641};if(_0x2c07b4===_0x2857cf(0x81)){const {formatAsTable:_0x59affd}=await import(_0x2857cf(0x7c)),_0x525f36=shouldUseLess(_0x2c07b4,_0x5c53af);return _0x59affd(_0x4edb51,_0x550263,_0x525f36,_0x1191b1);}else{if(_0x2c07b4===_0x2857cf(0x7d)){const {formatAsJSON:_0x1e5aff}=await import(_0x2857cf(0x7c));return _0x1e5aff(_0x4edb51,_0x1191b1);}else{if(_0x2c07b4===_0x2857cf(0x79)){const {formatAsJSONL:_0x1ed22e}=await import(_0x2857cf(0x7c));return _0x1ed22e(_0x4edb51,_0x1191b1);}else{const {formatQueryResult:_0x121326}=await import(_0x2857cf(0x7c));return _0x121326(_0x4edb51,_0x2c07b4);}}}}function shouldUseLess(_0x44a7f0,_0x576b92){const _0x492276=a52_0x13cb;return _0x44a7f0==='table'&&process['stdout'][_0x492276(0x87)]&&!_0x576b92;}function a52_0x8361(){const _0x267b4b=['sdk-result','boolean','color','3448VIjjVQ','stdin','jsonl','910EYfQyL','1905921XCSczx','./formatters.js','json','resolve','129688keLPhV','format','table','error','output','varchar','log','entries','isTTY','8657QljGBs','write','163207cETpuM','inherit','limit','number','pipe','146238JqfVqT','140540LshaXQ','6BUfClj','noColor','bigint','isInteger','1939MImKaR','close','length','Results\x20saved\x20to\x20','10YkPmNm'];a52_0x8361=function(){return _0x267b4b;};return a52_0x8361();}export function resolveOutputOptions(_0xa9a26){const _0x506f76=a52_0x13cb,_0x3b7e9c=resolveOutputFormat(_0xa9a26[_0x506f76(0x80)],_0xa9a26['output'],_0x506f76(0x81));let _0x74c7f9=typeof _0xa9a26[_0x506f76(0x8c)]==='number'?_0xa9a26[_0x506f76(0x8c)]:parseInt(_0xa9a26[_0x506f76(0x8c)]||'40',0xa);const _0x45ba29=_0xa9a26[_0x506f76(0x83)]||'';return shouldUseLess(_0x3b7e9c,_0x45ba29)&&(_0x74c7f9=Infinity),{'format':_0x3b7e9c,'output':_0x45ba29,'limit':_0x74c7f9,'color':_0xa9a26[_0x506f76(0x76)],'noColor':_0xa9a26[_0x506f76(0x6c)]};}export function writeOutput(_0xee09b,_0x44801c,_0x1ca26f){const _0x30f4b2=a52_0x13cb;return _0x44801c?(writeFileSync(_0x44801c,_0xee09b),console[_0x30f4b2(0x82)](_0x30f4b2(0x72)+_0x44801c),Promise[_0x30f4b2(0x7e)]()):shouldUseLess(_0x1ca26f||'','')?new Promise(_0x30a712=>{const _0xd0a4c0=_0x30f4b2,_0x26388c=spawn('less',['-FXRSn'],{'stdio':[_0xd0a4c0(0x8e),_0xd0a4c0(0x8b),'inherit']});let _0x201123=![];_0x26388c['on'](_0xd0a4c0(0x82),()=>{const _0x28e481=_0xd0a4c0;!_0x201123&&(_0x201123=!![],console[_0x28e481(0x85)](_0xee09b),_0x30a712());}),_0x26388c['on'](_0xd0a4c0(0x70),()=>{!_0x201123&&(_0x201123=!![],_0x30a712());}),_0x26388c['on']('spawn',()=>{const _0x433260=_0xd0a4c0;!_0x201123&&_0x26388c[_0x433260(0x78)]&&(_0x26388c[_0x433260(0x78)]['on'](_0x433260(0x82),()=>{}),_0x26388c[_0x433260(0x78)][_0x433260(0x89)](_0xee09b),_0x26388c[_0x433260(0x78)]['end']());}),!_0x26388c[_0xd0a4c0(0x78)]&&(!_0x201123&&(_0x201123=!![],console[_0xd0a4c0(0x85)](_0xee09b),_0x30a712()));}):(console[_0x30f4b2(0x85)](_0xee09b),Promise['resolve']());}export async function handleSDKOutput(_0x1648c0,_0x26457b){const _0x38c286=resolveOutputOptions(_0x26457b),_0x536b2b=await formatSDKOutput(_0x1648c0,_0x38c286);await writeOutput(_0x536b2b,_0x38c286['output']||undefined,_0x38c286['format']);}export async function handleQueryOutput(_0x920040,_0x424705){const _0x246653=a52_0x13cb,_0x21d21e=resolveOutputOptions(_0x424705),_0x1d146c=await formatQueryOutput(_0x920040,_0x21d21e);await writeOutput(_0x1d146c,_0x21d21e[_0x246653(0x83)]||undefined,_0x21d21e[_0x246653(0x80)]);}
1
+ (function(_0x4ac102,_0x23bef2){const _0x22c492=a52_0x49a3,_0x32d9f5=_0x4ac102();while(!![]){try{const _0xc29cca=parseInt(_0x22c492(0xcc))/0x1*(-parseInt(_0x22c492(0xcd))/0x2)+parseInt(_0x22c492(0xe1))/0x3*(parseInt(_0x22c492(0xd4))/0x4)+-parseInt(_0x22c492(0xc8))/0x5*(-parseInt(_0x22c492(0xe6))/0x6)+-parseInt(_0x22c492(0xed))/0x7+parseInt(_0x22c492(0xe9))/0x8*(parseInt(_0x22c492(0xc7))/0x9)+parseInt(_0x22c492(0xda))/0xa+-parseInt(_0x22c492(0xec))/0xb*(-parseInt(_0x22c492(0xc6))/0xc);if(_0xc29cca===_0x23bef2)break;else _0x32d9f5['push'](_0x32d9f5['shift']());}catch(_0x5a90b7){_0x32d9f5['push'](_0x32d9f5['shift']());}}}(a52_0x3aca,0xf1721));function a52_0x49a3(_0x52c199,_0x523836){const _0x3aca75=a52_0x3aca();return a52_0x49a3=function(_0x49a34c,_0x1472db){_0x49a34c=_0x49a34c-0xc6;let _0x49cde4=_0x3aca75[_0x49a34c];return _0x49cde4;},a52_0x49a3(_0x52c199,_0x523836);}import{writeFileSync}from'fs';import{spawn}from'child_process';import{resolveOutputFormat}from'./format-detector.js';export function parseOutputOptions(_0x2cc5d6){const _0x529c76=a52_0x49a3;return{'format':_0x2cc5d6[_0x529c76(0xc9)]||_0x529c76(0xcb),'output':_0x2cc5d6[_0x529c76(0xea)]||'','limit':_0x2cc5d6[_0x529c76(0xe5)],'color':_0x2cc5d6['color'],'noColor':_0x2cc5d6['noColor']};}function convertSDKResultToQueryResult(_0x58ffd3){const _0x5728ed=a52_0x49a3,_0x277207=[];if(_0x58ffd3[_0x5728ed(0xde)]>0x0){const _0x340c48=_0x58ffd3[0x0];for(const [_0x5904f7,_0x1df9d7]of Object[_0x5728ed(0xe0)](_0x340c48)){let _0x5168ac=_0x5728ed(0xd8);if(typeof _0x1df9d7===_0x5728ed(0xe2))_0x5168ac=Number[_0x5728ed(0xdd)](_0x1df9d7)?_0x5728ed(0xe3):'double';else{if(typeof _0x1df9d7===_0x5728ed(0xe4))_0x5168ac=_0x5728ed(0xe4);else _0x1df9d7===null&&(_0x5168ac=_0x5728ed(0xd8));}_0x277207['push']({'name':_0x5904f7,'type':_0x5168ac});}}return{'queryId':_0x5728ed(0xd6),'columns':_0x277207,'data':_0x58ffd3,'stats':{'state':_0x5728ed(0xdc),'queued':![],'scheduled':!![],'nodes':0x0,'totalSplits':0x0,'queuedSplits':0x0,'runningSplits':0x0,'completedSplits':0x0,'cpuTimeMillis':0x0,'wallTimeMillis':0x0,'queuedTimeMillis':0x0,'elapsedTimeMillis':0x0,'processedRows':_0x58ffd3[_0x5728ed(0xde)],'processedBytes':0x0,'physicalInputBytes':0x0,'peakMemoryBytes':0x0,'spilledBytes':0x0}};}export async function formatSDKOutput(_0x3a2122,_0x579423){const _0x47cdb0=convertSDKResultToQueryResult(_0x3a2122);return formatQueryOutput(_0x47cdb0,_0x579423);}export async function formatQueryOutput(_0x2da8c4,_0x1b9805){const _0x348ecb=a52_0x49a3,{format:_0x5dd302,limit:_0x3e660d,output:_0x156fa6,color:_0x5b393c,noColor:_0x307278}=_0x1b9805,_0x35ceec=Boolean(_0x156fa6)&&!_0x5b393c,_0xa9a613={'color':_0x5b393c,'noColor':_0x307278||_0x35ceec};if(_0x5dd302===_0x348ecb(0xcb)){const {formatAsTable:_0x17dd4a}=await import(_0x348ecb(0xd5)),_0x2adaf1=shouldUseLess(_0x5dd302,_0x156fa6);return _0x17dd4a(_0x2da8c4,_0x3e660d,_0x2adaf1,_0xa9a613);}else{if(_0x5dd302==='json'){const {formatAsJSON:_0x5b620b}=await import(_0x348ecb(0xd5));return _0x5b620b(_0x2da8c4,_0xa9a613);}else{if(_0x5dd302===_0x348ecb(0xd1)){const {formatAsJSONL:_0x10c1df}=await import(_0x348ecb(0xd5));return _0x10c1df(_0x2da8c4,_0xa9a613);}else{const {formatQueryResult:_0x5166ec}=await import('./formatters.js');return _0x5166ec(_0x2da8c4,_0x5dd302);}}}}function shouldUseLess(_0x2f0c6d,_0x54d0bb){const _0x5022bc=a52_0x49a3;return _0x2f0c6d===_0x5022bc(0xcb)&&process[_0x5022bc(0xd9)][_0x5022bc(0xca)]&&!_0x54d0bb;}export function resolveOutputOptions(_0x391664){const _0x551604=a52_0x49a3,_0x5c4f86=resolveOutputFormat(_0x391664[_0x551604(0xc9)],_0x391664[_0x551604(0xea)],_0x551604(0xcb));let _0x4bc0e7=typeof _0x391664[_0x551604(0xe5)]===_0x551604(0xe2)?_0x391664['limit']:parseInt(_0x391664['limit']||'40',0xa);const _0x4be202=_0x391664[_0x551604(0xea)]||'';return shouldUseLess(_0x5c4f86,_0x4be202)&&(_0x4bc0e7=Infinity),{'format':_0x5c4f86,'output':_0x4be202,'limit':_0x4bc0e7,'color':_0x391664[_0x551604(0xd7)],'noColor':_0x391664[_0x551604(0xce)]};}export function writeOutput(_0x25da8e,_0x2b329c,_0x2429ee){const _0x4b426a=a52_0x49a3;return _0x2b329c?(writeFileSync(_0x2b329c,_0x25da8e),console['error']('Results\x20saved\x20to\x20'+_0x2b329c),Promise[_0x4b426a(0xe8)]()):shouldUseLess(_0x2429ee||'','')?new Promise(_0x2ada9e=>{const _0x178b52=_0x4b426a,_0x15666b=spawn('less',[_0x178b52(0xdf)],{'stdio':[_0x178b52(0xd0),_0x178b52(0xeb),_0x178b52(0xeb)]});let _0x3f839e=![];_0x15666b['on'](_0x178b52(0xdb),()=>{const _0x5dcb81=_0x178b52;!_0x3f839e&&(_0x3f839e=!![],console[_0x5dcb81(0xcf)](_0x25da8e),_0x2ada9e());}),_0x15666b['on']('close',()=>{!_0x3f839e&&(_0x3f839e=!![],_0x2ada9e());}),_0x15666b['on']('spawn',()=>{const _0x46f4af=_0x178b52;!_0x3f839e&&_0x15666b['stdin']&&(_0x15666b[_0x46f4af(0xd3)]['on'](_0x46f4af(0xdb),()=>{}),_0x15666b[_0x46f4af(0xd3)][_0x46f4af(0xd2)](_0x25da8e),_0x15666b[_0x46f4af(0xd3)][_0x46f4af(0xe7)]());}),!_0x15666b[_0x178b52(0xd3)]&&(!_0x3f839e&&(_0x3f839e=!![],console[_0x178b52(0xcf)](_0x25da8e),_0x2ada9e()));}):(console[_0x4b426a(0xcf)](_0x25da8e),Promise['resolve']());}function a52_0x3aca(){const _0x551b18=['276111kwYSxt','7938070wKHegz','396XkRCaN','3286863KVqsws','6069265LIKHpM','format','isTTY','table','1528361zzsCSP','2hKxjEo','noColor','log','pipe','jsonl','write','stdin','12136yVIdme','./formatters.js','sdk-result','color','varchar','stdout','11650550awWZAe','error','FINISHED','isInteger','length','-FXRSn','entries','78GeqbqS','number','bigint','boolean','limit','6ZDWnxQ','end','resolve','8qGqWFJ','output','inherit'];a52_0x3aca=function(){return _0x551b18;};return a52_0x3aca();}export async function handleSDKOutput(_0x17e602,_0x28cdc3){const _0x1ffe4d=a52_0x49a3,_0x217f1a=resolveOutputOptions(_0x28cdc3),_0x9468df=await formatSDKOutput(_0x17e602,_0x217f1a);await writeOutput(_0x9468df,_0x217f1a[_0x1ffe4d(0xea)]||undefined,_0x217f1a[_0x1ffe4d(0xc9)]);}export async function handleQueryOutput(_0x7cf51b,_0x1b1cbd){const _0x2c07c8=a52_0x49a3,_0x4bae9d=resolveOutputOptions(_0x1b1cbd),_0x8e0e4d=await formatQueryOutput(_0x7cf51b,_0x4bae9d);await writeOutput(_0x8e0e4d,_0x4bae9d[_0x2c07c8(0xea)]||undefined,_0x4bae9d[_0x2c07c8(0xc9)]);}
@@ -1 +1 @@
1
- (function(_0x1e42cc,_0x45910f){const _0x18389d=a53_0x20e0,_0x31a55a=_0x1e42cc();while(!![]){try{const _0x20c0fb=-parseInt(_0x18389d(0xe2))/0x1+-parseInt(_0x18389d(0xdb))/0x2*(-parseInt(_0x18389d(0xdd))/0x3)+-parseInt(_0x18389d(0xdf))/0x4*(-parseInt(_0x18389d(0xde))/0x5)+-parseInt(_0x18389d(0xe6))/0x6+parseInt(_0x18389d(0xe9))/0x7*(-parseInt(_0x18389d(0xda))/0x8)+-parseInt(_0x18389d(0xe4))/0x9+parseInt(_0x18389d(0xe3))/0xa*(parseInt(_0x18389d(0xd8))/0xb);if(_0x20c0fb===_0x45910f)break;else _0x31a55a['push'](_0x31a55a['shift']());}catch(_0x46bdc3){_0x31a55a['push'](_0x31a55a['shift']());}}}(a53_0x5165,0xebe03));import*as a53_0x395f9d from'node:fs';import*as a53_0x3b3ec8 from'node:path';function a53_0x20e0(_0x21eefc,_0xadd3e0){const _0x5165b3=a53_0x5165();return a53_0x20e0=function(_0x20e0eb,_0x523032){_0x20e0eb=_0x20e0eb-0xd8;let _0x140710=_0x5165b3[_0x20e0eb];return _0x140710;},a53_0x20e0(_0x21eefc,_0xadd3e0);}export function setSecureFilePermissions(_0x37d36d){const _0x189def=a53_0x20e0;try{a53_0x395f9d[_0x189def(0xea)](_0x37d36d,0x180);}catch{console[_0x189def(0xef)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x37d36d);}}function a53_0x5165(){const _0x3a72e1=['mkdirSync','mode','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','toString','warn','11LxiFvt','existsSync','125992ukHDPN','20oYyGKM','writeFileSync','429153parEth','12300dyUfOz','1044XUoYPx',').\x20','\x20has\x20insecure\x20permissions\x20(','938583LjKHtU','35607610cRNbQH','15305283heNJoL','Warning:\x20','8860794rBcFRe','Should\x20be\x200600\x20or\x20more\x20restrictive.','statSync','245LgFRfE','chmodSync'];a53_0x5165=function(){return _0x3a72e1;};return a53_0x5165();}export function setSecureDirectoryPermissions(_0x5ac832){const _0x5b0b2b=a53_0x20e0;try{a53_0x395f9d['chmodSync'](_0x5ac832,0x1c0);}catch{console[_0x5b0b2b(0xef)](_0x5b0b2b(0xed)+_0x5ac832);}}export function createSecureDirectory(_0xb27aa7){const _0xdfd899=a53_0x20e0;!a53_0x395f9d[_0xdfd899(0xd9)](_0xb27aa7)&&(a53_0x395f9d[_0xdfd899(0xeb)](_0xb27aa7,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0xb27aa7));}export function validateSecureFilePermissions(_0x49268d){const _0x3775b2=a53_0x20e0;try{const _0x3a24f9=a53_0x395f9d[_0x3775b2(0xe8)](_0x49268d),_0x54047d=_0x3a24f9[_0x3775b2(0xec)]&0x1ff,_0x4cd5a1=(_0x54047d&0x3f)!==0x0;if(_0x4cd5a1)return console[_0x3775b2(0xef)](_0x3775b2(0xe5)+_0x49268d+_0x3775b2(0xe1)+_0x54047d[_0x3775b2(0xee)](0x8)+_0x3775b2(0xe0)+_0x3775b2(0xe7)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x118c64,_0x3dcfbe){const _0x1c0bf6=a53_0x20e0,_0x594f22=a53_0x3b3ec8['dirname'](_0x118c64);createSecureDirectory(_0x594f22),a53_0x395f9d[_0x1c0bf6(0xdc)](_0x118c64,_0x3dcfbe,{'mode':0x180}),setSecureFilePermissions(_0x118c64);}
1
+ (function(_0x19a86e,_0x25531f){const _0x18f935=a53_0x4ed1,_0x224805=_0x19a86e();while(!![]){try{const _0x30b1d1=-parseInt(_0x18f935(0xea))/0x1+parseInt(_0x18f935(0xf0))/0x2+parseInt(_0x18f935(0xf5))/0x3+parseInt(_0x18f935(0xf1))/0x4+parseInt(_0x18f935(0xe8))/0x5*(parseInt(_0x18f935(0xeb))/0x6)+-parseInt(_0x18f935(0xf2))/0x7+parseInt(_0x18f935(0xf6))/0x8*(-parseInt(_0x18f935(0xec))/0x9);if(_0x30b1d1===_0x25531f)break;else _0x224805['push'](_0x224805['shift']());}catch(_0x4a395a){_0x224805['push'](_0x224805['shift']());}}}(a53_0x2352,0x2878f));function a53_0x4ed1(_0x53ec1b,_0xb89668){const _0x235298=a53_0x2352();return a53_0x4ed1=function(_0x4ed136,_0x18c251){_0x4ed136=_0x4ed136-0xe7;let _0x21e352=_0x235298[_0x4ed136];return _0x21e352;},a53_0x4ed1(_0x53ec1b,_0xb89668);}import*as a53_0x1db0c8 from'node:fs';import*as a53_0x2fe16b from'node:path';function a53_0x2352(){const _0x4bbbaf=['601428jLaHDi','1707416sPvkou','dirname','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','chmodSync','924115RyVLWD','warn','268197ffEXFI','6scqSKk','9CdMYCT','mkdirSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','\x20has\x20insecure\x20permissions\x20(','491754zbmmzT','319552EBFHhy','445655KpobJD',').\x20','mode'];a53_0x2352=function(){return _0x4bbbaf;};return a53_0x2352();}export function setSecureFilePermissions(_0x434b8f){const _0x1285be=a53_0x4ed1;try{a53_0x1db0c8[_0x1285be(0xe7)](_0x434b8f,0x180);}catch{console['warn'](_0x1285be(0xf8)+_0x434b8f);}}export function setSecureDirectoryPermissions(_0x493f0b){const _0x405d84=a53_0x4ed1;try{a53_0x1db0c8[_0x405d84(0xe7)](_0x493f0b,0x1c0);}catch{console['warn'](_0x405d84(0xf8)+_0x493f0b);}}export function createSecureDirectory(_0x1598dd){const _0x22ba17=a53_0x4ed1;!a53_0x1db0c8['existsSync'](_0x1598dd)&&(a53_0x1db0c8[_0x22ba17(0xed)](_0x1598dd,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1598dd));}export function validateSecureFilePermissions(_0x2cff0e){const _0x3fd88f=a53_0x4ed1;try{const _0x58c933=a53_0x1db0c8['statSync'](_0x2cff0e),_0x3c30f4=_0x58c933[_0x3fd88f(0xf4)]&0x1ff,_0x96d2bc=(_0x3c30f4&0x3f)!==0x0;if(_0x96d2bc)return console[_0x3fd88f(0xe9)]('Warning:\x20'+_0x2cff0e+_0x3fd88f(0xef)+_0x3c30f4['toString'](0x8)+_0x3fd88f(0xf3)+_0x3fd88f(0xee)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x536f1a,_0x15467e){const _0x16f116=a53_0x4ed1,_0x208bb2=a53_0x2fe16b[_0x16f116(0xf7)](_0x536f1a);createSecureDirectory(_0x208bb2),a53_0x1db0c8['writeFileSync'](_0x536f1a,_0x15467e,{'mode':0x180}),setSecureFilePermissions(_0x536f1a);}
@@ -1 +1 @@
1
- (function(_0x4e4bf2,_0x1c77b7){const _0x3997be=a54_0x29ef,_0xa2ee5f=_0x4e4bf2();while(!![]){try{const _0x4e88de=parseInt(_0x3997be(0x1d0))/0x1+-parseInt(_0x3997be(0x1de))/0x2+parseInt(_0x3997be(0x1dc))/0x3+parseInt(_0x3997be(0x1e0))/0x4*(parseInt(_0x3997be(0x1d4))/0x5)+parseInt(_0x3997be(0x1cf))/0x6+-parseInt(_0x3997be(0x1d1))/0x7*(-parseInt(_0x3997be(0x1d3))/0x8)+-parseInt(_0x3997be(0x1dd))/0x9;if(_0x4e88de===_0x1c77b7)break;else _0xa2ee5f['push'](_0xa2ee5f['shift']());}catch(_0xc6468e){_0xa2ee5f['push'](_0xa2ee5f['shift']());}}}(a54_0x1a04,0x5b860));function a54_0x1a04(){const _0x3c8d41=['tsv','40dyLDnF','20eGhZCr','table','pop','toLowerCase','split','text','jsonl','txt','2151921fuxiad','16390269xgPcoY','86654AypBjA','json','284296KIJjdI','1368930gkxZfK','737885VMObdL','380387aYMEiD'];a54_0x1a04=function(){return _0x3c8d41;};return a54_0x1a04();}function a54_0x29ef(_0x123332,_0x1778e0){const _0x1a0467=a54_0x1a04();return a54_0x29ef=function(_0x29efd4,_0x580a07){_0x29efd4=_0x29efd4-0x1cf;let _0x4a8d91=_0x1a0467[_0x29efd4];return _0x4a8d91;},a54_0x29ef(_0x123332,_0x1778e0);}export function detectFormatFromExtension(_0x18cfe7){const _0x57c592=a54_0x29ef,_0x101952=_0x18cfe7[_0x57c592(0x1d7)]()[_0x57c592(0x1d8)]('.')[_0x57c592(0x1d6)]();switch(_0x101952){case _0x57c592(0x1df):return _0x57c592(0x1df);case _0x57c592(0x1da):return _0x57c592(0x1da);case _0x57c592(0x1d2):case'tab':return'tsv';case _0x57c592(0x1db):case _0x57c592(0x1d9):return _0x57c592(0x1d5);default:return undefined;}}export function resolveOutputFormat(_0xc8f8a7,_0x4e06bd,_0x473ba3){if(_0xc8f8a7)return _0xc8f8a7;if(_0x4e06bd){const _0x52ce2d=detectFormatFromExtension(_0x4e06bd);if(_0x52ce2d)return _0x52ce2d;}return _0x473ba3;}
1
+ (function(_0x28475b,_0xb0f1d6){const _0x5d6d69=a54_0x85a4,_0x43ffd=_0x28475b();while(!![]){try{const _0x1ba104=-parseInt(_0x5d6d69(0x1b6))/0x1*(-parseInt(_0x5d6d69(0x1b7))/0x2)+parseInt(_0x5d6d69(0x1af))/0x3*(parseInt(_0x5d6d69(0x1b4))/0x4)+-parseInt(_0x5d6d69(0x1a7))/0x5+-parseInt(_0x5d6d69(0x1ad))/0x6+-parseInt(_0x5d6d69(0x1bb))/0x7*(-parseInt(_0x5d6d69(0x1b8))/0x8)+-parseInt(_0x5d6d69(0x1b1))/0x9+parseInt(_0x5d6d69(0x1b3))/0xa*(parseInt(_0x5d6d69(0x1b0))/0xb);if(_0x1ba104===_0xb0f1d6)break;else _0x43ffd['push'](_0x43ffd['shift']());}catch(_0x614f5b){_0x43ffd['push'](_0x43ffd['shift']());}}}(a54_0x2e95,0xcad58));function a54_0x85a4(_0x14cd85,_0x4837c3){const _0x2e953b=a54_0x2e95();return a54_0x85a4=function(_0x85a4cd,_0x496853){_0x85a4cd=_0x85a4cd-0x1a7;let _0x129023=_0x2e953b[_0x85a4cd];return _0x129023;},a54_0x85a4(_0x14cd85,_0x4837c3);}function a54_0x2e95(){const _0x20167f=['5831706oltWjG','txt','19815tRAgxp','3715118AAPlKu','12618882KhhVLo','json','30vhDjBf','676PUVBdN','text','2NOTzuP','1292102UEVOhm','2454488XBSPQs','toLowerCase','split','7lOAPVe','2617575MjKLrK','table','pop','jsonl','tsv','tab'];a54_0x2e95=function(){return _0x20167f;};return a54_0x2e95();}export function detectFormatFromExtension(_0x3c8a74){const _0x5deb5b=a54_0x85a4,_0x18003f=_0x3c8a74[_0x5deb5b(0x1b9)]()[_0x5deb5b(0x1ba)]('.')[_0x5deb5b(0x1a9)]();switch(_0x18003f){case _0x5deb5b(0x1b2):return _0x5deb5b(0x1b2);case _0x5deb5b(0x1aa):return'jsonl';case _0x5deb5b(0x1ab):case _0x5deb5b(0x1ac):return _0x5deb5b(0x1ab);case _0x5deb5b(0x1ae):case _0x5deb5b(0x1b5):return _0x5deb5b(0x1a8);default:return undefined;}}export function resolveOutputFormat(_0x32a697,_0x27b3ca,_0x6c5f99){if(_0x32a697)return _0x32a697;if(_0x27b3ca){const _0x4a7811=detectFormatFromExtension(_0x27b3ca);if(_0x4a7811)return _0x4a7811;}return _0x6c5f99;}
@@ -1 +1 @@
1
- (function(_0x7df93d,_0x1af07f){const _0x5bf42b=a55_0x5ee5,_0x1d5891=_0x7df93d();while(!![]){try{const _0x424862=-parseInt(_0x5bf42b(0x1ac))/0x1+-parseInt(_0x5bf42b(0x1b1))/0x2+-parseInt(_0x5bf42b(0x1dd))/0x3+parseInt(_0x5bf42b(0x1ba))/0x4+-parseInt(_0x5bf42b(0x1de))/0x5*(parseInt(_0x5bf42b(0x1b3))/0x6)+parseInt(_0x5bf42b(0x1c3))/0x7*(parseInt(_0x5bf42b(0x1c0))/0x8)+parseInt(_0x5bf42b(0x1ce))/0x9*(parseInt(_0x5bf42b(0x1c5))/0xa);if(_0x424862===_0x1af07f)break;else _0x1d5891['push'](_0x1d5891['shift']());}catch(_0x5e4411){_0x1d5891['push'](_0x1d5891['shift']());}}}(a55_0x33ee,0x44440));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x52001f=a55_0x5ee5;return process[_0x52001f(0x1d7)][_0x52001f(0x1cd)]||Infinity;}export function formatAsTable(_0x18b017,_0x342afa=DEFAULT_MAX_DISPLAY_ROWS,_0x132c66=![],_0xca2e1d={}){const _0x19f733=a55_0x5ee5;if(_0x18b017[_0x19f733(0x1ad)][_0x19f733(0x1d8)]===0x0)return _0x19f733(0x1c4);const _0x554adf=_0x18b017['columns'][_0x19f733(0x1b8)](_0x2bfb15=>_0x2bfb15['name']),_0xdee0c4=_0x18b017[_0x19f733(0x1cd)][_0x19f733(0x1b8)](_0x580dff=>simplifyType(_0x580dff[_0x19f733(0x1dc)])),_0x78d383=_0x18b017[_0x19f733(0x1ad)][_0x19f733(0x1d0)](0x0,_0x342afa),_0x72cf0a=_0x18b017[_0x19f733(0x1ad)]['length'],_0x3a740a=_0x72cf0a>_0x342afa,_0x14b284=[],_0x37ab35=getTerminalWidth(),_0x3dbfc9=_0x37ab35!==Infinity,_0x3b5184=0x32;let _0x1933d3=_0x554adf['map']((_0x3499e4,_0x3dc90f)=>{const _0x50dc66=_0x19f733,_0xda4010=stringWidth(_0xdee0c4[_0x3dc90f]),_0x5b40bd=Math[_0x50dc66(0x1d1)](..._0x78d383['map'](_0x27d981=>{const _0x4e5ae1=_0x27d981[_0x3499e4];return stringWidth(formatValue(_0x4e5ae1));})),_0x3df918=Math['max'](stringWidth(_0x3499e4),_0xda4010,_0x5b40bd);return _0x132c66?_0x3df918:Math['min'](_0x3df918,_0x3b5184);});if(_0x3dbfc9&&!_0x132c66&&_0x554adf[_0x19f733(0x1d8)]>0x0){const _0x409440=_0x203e73=>{let _0x5d546a=0x1;for(const _0x2460a2 of _0x203e73){_0x5d546a+=_0x2460a2+0x3;}return _0x5d546a+0x1;};let _0x446d0b=_0x409440(_0x1933d3);if(_0x446d0b>_0x37ab35){const _0x2d9e6b=0x3;for(let _0x1446a8=_0x1933d3[_0x19f733(0x1d8)]-0x1;_0x1446a8>=0x0;_0x1446a8--){_0x446d0b=_0x409440(_0x1933d3);if(_0x446d0b<=_0x37ab35)break;const _0x32a3f6=_0x1933d3[_0x1446a8],_0x5b2ee2=_0x446d0b-_0x37ab35,_0x1d8df6=_0x32a3f6-_0x2d9e6b,_0x4dc8f4=Math[_0x19f733(0x1ae)](_0x5b2ee2,_0x1d8df6);_0x4dc8f4>0x0&&(_0x1933d3[_0x1446a8]=_0x32a3f6-_0x4dc8f4);}}}const _0x3fe685=_0x554adf,_0x3f75fa=_0xdee0c4,_0x2e136c=_0x1933d3,_0x39fc54=_0x1933d3;_0x14b284[_0x19f733(0x1bd)](colorBorder('┌'+_0x39fc54[_0x19f733(0x1b8)](_0x322707=>'─'[_0x19f733(0x1bb)](_0x322707+0x2))[_0x19f733(0x1ca)]('┬')+'┐',_0xca2e1d));const _0x5c62d7=_0x3fe685['map']((_0x1f4b24,_0x1b1ee3)=>centerAlign(_0x1f4b24,_0x2e136c[_0x1b1ee3]));_0x14b284[_0x19f733(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x5c62d7['join']('\x20'+colorBorder('│',_0xca2e1d)+'\x20')+'\x20'+colorBorder('│',_0xca2e1d));const _0x53915d=_0x3f75fa[_0x19f733(0x1b8)]((_0x4fcb00,_0x2702dd)=>colorType(centerAlign(_0x4fcb00,_0x2e136c[_0x2702dd]),_0xca2e1d));_0x14b284[_0x19f733(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x53915d['join']('\x20'+colorBorder('│',_0xca2e1d)+'\x20')+'\x20'+colorBorder('│',_0xca2e1d)),_0x14b284[_0x19f733(0x1bd)](colorBorder('├'+_0x39fc54['map'](_0x5b5be4=>'─'['repeat'](_0x5b5be4+0x2))['join']('┼')+'┤',_0xca2e1d));const _0x5ef017=(_0x1c9de5,_0x86f23a)=>{const _0x25d199=_0x19f733,_0x52e1fc=stringWidth(_0x1c9de5);if(_0x52e1fc<=_0x86f23a)return _0x1c9de5;let _0x147498=_0x1c9de5;while(stringWidth(_0x147498+'…')>_0x86f23a&&_0x147498[_0x25d199(0x1d8)]>0x0){_0x147498=_0x147498[_0x25d199(0x1d0)](0x0,-0x1);}return _0x147498+'…';};_0x78d383[_0x19f733(0x1cf)](_0x7a88d4=>{const _0x4b562c=_0x19f733,_0x5548b4=_0x554adf[_0x4b562c(0x1b8)]((_0x173d78,_0x2021b0)=>{const _0x5928c3=_0x4b562c,_0x3665ad=_0x7a88d4[_0x173d78],_0x4f5519=formatValue(_0x3665ad),_0x5cff55=_0x2e136c[_0x2021b0],_0x201661=_0x5ef017(_0x4f5519,_0x5cff55),_0x4dba7c=typeof _0x3665ad===_0x5928c3(0x1b2)||typeof _0x3665ad==='string'&&/^-?\d+$/[_0x5928c3(0x1be)](_0x3665ad);return _0x4dba7c?padStart(_0x201661,_0x5cff55):padEnd(_0x201661,_0x5cff55);});_0x14b284[_0x4b562c(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x5548b4[_0x4b562c(0x1ca)]('\x20'+colorBorder('│',_0xca2e1d)+'\x20')+'\x20'+colorBorder('│',_0xca2e1d));});const _0x5b41eb=_0x39fc54[_0x19f733(0x1b4)]((_0x3f104c,_0x1ef5c5)=>_0x3f104c+_0x1ef5c5+0x3,-0x1);_0x14b284[_0x19f733(0x1bd)](colorBorder('├'+_0x39fc54[_0x19f733(0x1b8)](_0x186ffa=>'─'[_0x19f733(0x1bb)](_0x186ffa+0x2))[_0x19f733(0x1ca)]('┴')+'┤',_0xca2e1d));let _0x503a49;_0x3a740a?_0x503a49=_0x72cf0a+_0x19f733(0x1db)+_0x342afa+_0x19f733(0x1c6):_0x503a49=_0x72cf0a+_0x19f733(0x1d2)+(_0x72cf0a===0x1?'':'s');const _0x485c47=_0x503a49['padEnd'](_0x5b41eb-0x2);return _0x14b284[_0x19f733(0x1bd)](colorBorder('│',_0xca2e1d)+'\x20'+_0x485c47+'\x20'+colorBorder('│',_0xca2e1d)),_0x14b284[_0x19f733(0x1bd)](colorBorder('└'+'─'[_0x19f733(0x1bb)](_0x5b41eb)+'┘',_0xca2e1d)),_0x14b284[_0x19f733(0x1ca)]('\x0a');}function simplifyType(_0xe43492){const _0x932896=a55_0x5ee5,_0x100205={'varchar':_0x932896(0x1d6),'bigint':_0x932896(0x1c7),'integer':_0x932896(0x1b0),'double':_0x932896(0x1b5),'boolean':_0x932896(0x1d3),'date':_0x932896(0x1c8),'timestamp':'timestamp','array':'array','map':_0x932896(0x1b8),'row':_0x932896(0x1bf)},_0x3c8e85=_0xe43492[_0x932896(0x1c1)]();for(const [_0x46c4da,_0x50cfad]of Object[_0x932896(0x1af)](_0x100205)){if(_0x3c8e85[_0x932896(0x1d9)](_0x46c4da))return _0x50cfad;}return _0xe43492[_0x932896(0x1d8)]>0xa?_0xe43492[_0x932896(0x1b7)](0x0,0xa):_0xe43492;}function a55_0x5ee5(_0x37abb8,_0x285326){const _0x33eee8=a55_0x33ee();return a55_0x5ee5=function(_0x5ee535,_0x2e46c0){_0x5ee535=_0x5ee535-0x1ac;let _0x1c4763=_0x33eee8[_0x5ee535];return _0x1c4763;},a55_0x5ee5(_0x37abb8,_0x285326);}function a55_0x33ee(){const _0x22a011=['forEach','slice','max','\x20row','bool','table','name','string','stdout','length','startsWith','false','\x20rows\x20(','type','779898ZmKMEf','15160LXlfZB','478739SmjGPk','data','min','entries','int','974012aVqgoF','number','1068CgfmGA','reduce','double','jsonl','substring','map','toISOString','892824WhfRRi','repeat','true','push','test','row','8WBgfDn','toLowerCase','boolean','2503529siEzeM','No\x20rows\x20returned','100AdgVep','\x20shown)','long','date','json','join','stringify','replace','columns','1317753cvXHaB'];a55_0x33ee=function(){return _0x22a011;};return a55_0x33ee();}export function formatAsJSON(_0x3d080a,_0x5f26db={}){const _0x4dc815=a55_0x5ee5;if(_0x3d080a['data']['length']===0x0)return'[]';if(shouldUseColor(_0x5f26db))return colorizeJSON(_0x3d080a['data'],_0x5f26db);const _0x71405b=_0x3d080a[_0x4dc815(0x1ad)]['map'](_0x598b57=>'\x20\x20'+JSON[_0x4dc815(0x1cb)](_0x598b57));return'[\x0a'+_0x71405b[_0x4dc815(0x1ca)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x551df7,_0x2fbe7a={}){const _0x3ce969=a55_0x5ee5;if(_0x551df7[_0x3ce969(0x1ad)]['length']===0x0)return'';if(shouldUseColor(_0x2fbe7a))return _0x551df7['data'][_0x3ce969(0x1b8)](_0x244ceb=>colorizeJSONCompact(_0x244ceb,_0x2fbe7a))[_0x3ce969(0x1ca)]('\x0a');return _0x551df7[_0x3ce969(0x1ad)][_0x3ce969(0x1b8)](_0x3a5d98=>JSON[_0x3ce969(0x1cb)](_0x3a5d98))[_0x3ce969(0x1ca)]('\x0a');}export function formatAsTSV(_0x12a141){const _0x4ddd6d=a55_0x5ee5;if(_0x12a141[_0x4ddd6d(0x1ad)][_0x4ddd6d(0x1d8)]===0x0)return'';const _0x2fb361=[],_0x2409bc=_0x12a141[_0x4ddd6d(0x1cd)][_0x4ddd6d(0x1b8)](_0x1bf7d3=>_0x1bf7d3[_0x4ddd6d(0x1d5)]);return _0x2fb361['push'](_0x2409bc[_0x4ddd6d(0x1ca)]('\x09')),_0x12a141[_0x4ddd6d(0x1ad)][_0x4ddd6d(0x1cf)](_0x5be85e=>{const _0x3c0f72=_0x4ddd6d,_0x16573e=_0x2409bc['map'](_0x26c2b0=>{const _0x56be13=_0x5be85e[_0x26c2b0];return formatValueForTSV(_0x56be13);});_0x2fb361[_0x3c0f72(0x1bd)](_0x16573e[_0x3c0f72(0x1ca)]('\x09'));}),_0x2fb361[_0x4ddd6d(0x1ca)]('\x0a');}function formatValue(_0x21f72e){const _0x9b51da=a55_0x5ee5;if(_0x21f72e===null||_0x21f72e===undefined)return'';if(typeof _0x21f72e===_0x9b51da(0x1d6)){const _0x31b571=_0x21f72e[_0x9b51da(0x1cc)](/\n/g,'\x5cn')[_0x9b51da(0x1cc)](/\r/g,'\x5cr')[_0x9b51da(0x1cc)](/\t/g,'\x5ct');return _0x31b571;}if(typeof _0x21f72e==='number')return String(_0x21f72e);if(typeof _0x21f72e==='boolean')return _0x21f72e?_0x9b51da(0x1bc):_0x9b51da(0x1da);if(_0x21f72e instanceof Date)return _0x21f72e[_0x9b51da(0x1b9)]();if(typeof _0x21f72e==='object')return JSON[_0x9b51da(0x1cb)](_0x21f72e);return String(_0x21f72e);}function formatValueForTSV(_0x1bb6c5){const _0x1bf751=a55_0x5ee5;if(_0x1bb6c5===null||_0x1bb6c5===undefined)return'';if(typeof _0x1bb6c5===_0x1bf751(0x1d6))return _0x1bb6c5['replace'](/\t/g,'\x5ct')[_0x1bf751(0x1cc)](/\n/g,'\x5cn');if(typeof _0x1bb6c5===_0x1bf751(0x1b2)||typeof _0x1bb6c5===_0x1bf751(0x1c2))return String(_0x1bb6c5);if(_0x1bb6c5 instanceof Date)return _0x1bb6c5[_0x1bf751(0x1b9)]();if(typeof _0x1bb6c5==='object')return JSON[_0x1bf751(0x1cb)](_0x1bb6c5);return String(_0x1bb6c5);}export function formatQueryResult(_0x39299c,_0x7e9f0e){const _0x9e38d5=a55_0x5ee5;switch(_0x7e9f0e){case _0x9e38d5(0x1d4):return formatAsTable(_0x39299c);case _0x9e38d5(0x1c9):return formatAsJSON(_0x39299c);case _0x9e38d5(0x1b6):return formatAsJSONL(_0x39299c);case'tsv':return formatAsTSV(_0x39299c);default:return formatAsJSON(_0x39299c);}}
1
+ (function(_0x3b57ed,_0x367f52){const _0x634ccf=a55_0x193f,_0x2e7bee=_0x3b57ed();while(!![]){try{const _0x4247ee=-parseInt(_0x634ccf(0x190))/0x1*(-parseInt(_0x634ccf(0x184))/0x2)+parseInt(_0x634ccf(0x18b))/0x3+parseInt(_0x634ccf(0x189))/0x4+-parseInt(_0x634ccf(0x198))/0x5*(-parseInt(_0x634ccf(0x191))/0x6)+parseInt(_0x634ccf(0x186))/0x7+-parseInt(_0x634ccf(0x19f))/0x8+-parseInt(_0x634ccf(0x19d))/0x9;if(_0x4247ee===_0x367f52)break;else _0x2e7bee['push'](_0x2e7bee['shift']());}catch(_0x39d495){_0x2e7bee['push'](_0x2e7bee['shift']());}}}(a55_0x378d,0xee778));import{centerAlign,stringWidth,padEnd,padStart}from'./string-utils.js';import{colorBorder,colorType,colorizeJSON,colorizeJSONCompact,shouldUseColor}from'./colors.js';const DEFAULT_MAX_DISPLAY_ROWS=0x28;function getTerminalWidth(){const _0x36b1e0=a55_0x193f;return process[_0x36b1e0(0x17a)][_0x36b1e0(0x178)]||Infinity;}export function formatAsTable(_0x3479bd,_0x2195cb=DEFAULT_MAX_DISPLAY_ROWS,_0x380e1b=![],_0x26c859={}){const _0x401f8f=a55_0x193f;if(_0x3479bd[_0x401f8f(0x17f)]['length']===0x0)return _0x401f8f(0x187);const _0x1c4a96=_0x3479bd[_0x401f8f(0x178)][_0x401f8f(0x17b)](_0x11a344=>_0x11a344[_0x401f8f(0x17c)]),_0x8da36f=_0x3479bd[_0x401f8f(0x178)][_0x401f8f(0x17b)](_0x16a22f=>simplifyType(_0x16a22f[_0x401f8f(0x195)])),_0x5a8109=_0x3479bd['data'][_0x401f8f(0x18e)](0x0,_0x2195cb),_0x51d853=_0x3479bd[_0x401f8f(0x17f)][_0x401f8f(0x188)],_0x3a16fd=_0x51d853>_0x2195cb,_0x366dd4=[],_0x3f0cd6=getTerminalWidth(),_0x344730=_0x3f0cd6!==Infinity,_0x14a139=0x32;let _0x1fc2d9=_0x1c4a96['map']((_0x87c55d,_0x59150a)=>{const _0x2fde4a=_0x401f8f,_0x555e30=stringWidth(_0x8da36f[_0x59150a]),_0x3e7771=Math[_0x2fde4a(0x17e)](..._0x5a8109[_0x2fde4a(0x17b)](_0x47f3db=>{const _0x2a3717=_0x47f3db[_0x87c55d];return stringWidth(formatValue(_0x2a3717));})),_0x28b6ff=Math[_0x2fde4a(0x17e)](stringWidth(_0x87c55d),_0x555e30,_0x3e7771);return _0x380e1b?_0x28b6ff:Math[_0x2fde4a(0x177)](_0x28b6ff,_0x14a139);});if(_0x344730&&!_0x380e1b&&_0x1c4a96[_0x401f8f(0x188)]>0x0){const _0x3ec646=_0x331f5c=>{let _0x26b91b=0x1;for(const _0x349333 of _0x331f5c){_0x26b91b+=_0x349333+0x3;}return _0x26b91b+0x1;};let _0x23825f=_0x3ec646(_0x1fc2d9);if(_0x23825f>_0x3f0cd6){const _0x2fb31e=0x3;for(let _0x379038=_0x1fc2d9[_0x401f8f(0x188)]-0x1;_0x379038>=0x0;_0x379038--){_0x23825f=_0x3ec646(_0x1fc2d9);if(_0x23825f<=_0x3f0cd6)break;const _0x106fac=_0x1fc2d9[_0x379038],_0x573564=_0x23825f-_0x3f0cd6,_0x205b3a=_0x106fac-_0x2fb31e,_0x2ecbc8=Math[_0x401f8f(0x177)](_0x573564,_0x205b3a);_0x2ecbc8>0x0&&(_0x1fc2d9[_0x379038]=_0x106fac-_0x2ecbc8);}}}const _0x4c0888=_0x1c4a96,_0xe83b18=_0x8da36f,_0x4cdc30=_0x1fc2d9,_0x5b95e9=_0x1fc2d9;_0x366dd4['push'](colorBorder('┌'+_0x5b95e9[_0x401f8f(0x17b)](_0x1d8f3f=>'─'['repeat'](_0x1d8f3f+0x2))['join']('┬')+'┐',_0x26c859));const _0x267126=_0x4c0888[_0x401f8f(0x17b)]((_0x17631f,_0x3cc4be)=>centerAlign(_0x17631f,_0x4cdc30[_0x3cc4be]));_0x366dd4['push'](colorBorder('│',_0x26c859)+'\x20'+_0x267126[_0x401f8f(0x183)]('\x20'+colorBorder('│',_0x26c859)+'\x20')+'\x20'+colorBorder('│',_0x26c859));const _0x458464=_0xe83b18[_0x401f8f(0x17b)]((_0x1da3d9,_0x37727f)=>colorType(centerAlign(_0x1da3d9,_0x4cdc30[_0x37727f]),_0x26c859));_0x366dd4[_0x401f8f(0x196)](colorBorder('│',_0x26c859)+'\x20'+_0x458464[_0x401f8f(0x183)]('\x20'+colorBorder('│',_0x26c859)+'\x20')+'\x20'+colorBorder('│',_0x26c859)),_0x366dd4[_0x401f8f(0x196)](colorBorder('├'+_0x5b95e9[_0x401f8f(0x17b)](_0x31edfe=>'─'['repeat'](_0x31edfe+0x2))[_0x401f8f(0x183)]('┼')+'┤',_0x26c859));const _0x4a7d82=(_0x2a4fd9,_0x26cbdc)=>{const _0x584597=_0x401f8f,_0x5d40ac=stringWidth(_0x2a4fd9);if(_0x5d40ac<=_0x26cbdc)return _0x2a4fd9;let _0x3b28d6=_0x2a4fd9;while(stringWidth(_0x3b28d6+'…')>_0x26cbdc&&_0x3b28d6[_0x584597(0x188)]>0x0){_0x3b28d6=_0x3b28d6[_0x584597(0x18e)](0x0,-0x1);}return _0x3b28d6+'…';};_0x5a8109['forEach'](_0x16bfc8=>{const _0xfe1831=_0x401f8f,_0x399f84=_0x1c4a96[_0xfe1831(0x17b)]((_0x407510,_0x3c0cbb)=>{const _0x2e0da3=_0xfe1831,_0x5c6d98=_0x16bfc8[_0x407510],_0x14b996=formatValue(_0x5c6d98),_0x204db2=_0x4cdc30[_0x3c0cbb],_0x330f4d=_0x4a7d82(_0x14b996,_0x204db2),_0x218672=typeof _0x5c6d98===_0x2e0da3(0x199)||typeof _0x5c6d98==='string'&&/^-?\d+$/[_0x2e0da3(0x18d)](_0x5c6d98);return _0x218672?padStart(_0x330f4d,_0x204db2):padEnd(_0x330f4d,_0x204db2);});_0x366dd4[_0xfe1831(0x196)](colorBorder('│',_0x26c859)+'\x20'+_0x399f84['join']('\x20'+colorBorder('│',_0x26c859)+'\x20')+'\x20'+colorBorder('│',_0x26c859));});const _0x5466ba=_0x5b95e9['reduce']((_0x550f1a,_0x3d630e)=>_0x550f1a+_0x3d630e+0x3,-0x1);_0x366dd4[_0x401f8f(0x196)](colorBorder('├'+_0x5b95e9[_0x401f8f(0x17b)](_0x160c24=>'─'[_0x401f8f(0x19b)](_0x160c24+0x2))[_0x401f8f(0x183)]('┴')+'┤',_0x26c859));let _0x1478bf;_0x3a16fd?_0x1478bf=_0x51d853+'\x20rows\x20('+_0x2195cb+_0x401f8f(0x19c):_0x1478bf=_0x51d853+_0x401f8f(0x180)+(_0x51d853===0x1?'':'s');const _0xaa671a=_0x1478bf['padEnd'](_0x5466ba-0x2);return _0x366dd4[_0x401f8f(0x196)](colorBorder('│',_0x26c859)+'\x20'+_0xaa671a+'\x20'+colorBorder('│',_0x26c859)),_0x366dd4['push'](colorBorder('└'+'─'[_0x401f8f(0x19b)](_0x5466ba)+'┘',_0x26c859)),_0x366dd4[_0x401f8f(0x183)]('\x0a');}function a55_0x193f(_0x5453a4,_0x200f2b){const _0x378dfd=a55_0x378d();return a55_0x193f=function(_0x193fce,_0x221c55){_0x193fce=_0x193fce-0x173;let _0x1de96b=_0x378dfd[_0x193fce];return _0x1de96b;},a55_0x193f(_0x5453a4,_0x200f2b);}function simplifyType(_0x3172a4){const _0x212142=a55_0x193f,_0x3fe445={'varchar':'string','bigint':'long','integer':'int','double':'double','boolean':_0x212142(0x179),'date':_0x212142(0x19a),'timestamp':_0x212142(0x1a0),'array':_0x212142(0x197),'map':_0x212142(0x17b),'row':_0x212142(0x18a)},_0xab0e87=_0x3172a4[_0x212142(0x17d)]();for(const [_0x9fe9ea,_0x118ce9]of Object[_0x212142(0x193)](_0x3fe445)){if(_0xab0e87['startsWith'](_0x9fe9ea))return _0x118ce9;}return _0x3172a4['length']>0xa?_0x3172a4['substring'](0x0,0xa):_0x3172a4;}export function formatAsJSON(_0x208459,_0x3eeac9={}){const _0x25908e=a55_0x193f;if(_0x208459[_0x25908e(0x17f)]['length']===0x0)return'[]';if(shouldUseColor(_0x3eeac9))return colorizeJSON(_0x208459[_0x25908e(0x17f)],_0x3eeac9);const _0x45d93b=_0x208459[_0x25908e(0x17f)][_0x25908e(0x17b)](_0x2f3f6c=>'\x20\x20'+JSON[_0x25908e(0x181)](_0x2f3f6c));return'[\x0a'+_0x45d93b[_0x25908e(0x183)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x30b330,_0x4a23f8={}){const _0x440631=a55_0x193f;if(_0x30b330['data'][_0x440631(0x188)]===0x0)return'';if(shouldUseColor(_0x4a23f8))return _0x30b330['data'][_0x440631(0x17b)](_0x5c47bc=>colorizeJSONCompact(_0x5c47bc,_0x4a23f8))[_0x440631(0x183)]('\x0a');return _0x30b330['data'][_0x440631(0x17b)](_0x246339=>JSON[_0x440631(0x181)](_0x246339))[_0x440631(0x183)]('\x0a');}export function formatAsTSV(_0x31354c){const _0x4e517f=a55_0x193f;if(_0x31354c[_0x4e517f(0x17f)][_0x4e517f(0x188)]===0x0)return'';const _0x56767d=[],_0x4098df=_0x31354c['columns'][_0x4e517f(0x17b)](_0x2f007a=>_0x2f007a['name']);return _0x56767d['push'](_0x4098df['join']('\x09')),_0x31354c[_0x4e517f(0x17f)][_0x4e517f(0x173)](_0x14592d=>{const _0x2b054a=_0x4e517f,_0x22b6bc=_0x4098df['map'](_0x2e727a=>{const _0x322058=_0x14592d[_0x2e727a];return formatValueForTSV(_0x322058);});_0x56767d[_0x2b054a(0x196)](_0x22b6bc[_0x2b054a(0x183)]('\x09'));}),_0x56767d['join']('\x0a');}function formatValue(_0x5585d8){const _0x1abae2=a55_0x193f;if(_0x5585d8===null||_0x5585d8===undefined)return'';if(typeof _0x5585d8===_0x1abae2(0x174)){const _0x449e65=_0x5585d8['replace'](/\n/g,'\x5cn')[_0x1abae2(0x18f)](/\r/g,'\x5cr')[_0x1abae2(0x18f)](/\t/g,'\x5ct');return _0x449e65;}if(typeof _0x5585d8==='number')return String(_0x5585d8);if(typeof _0x5585d8===_0x1abae2(0x176))return _0x5585d8?'true':_0x1abae2(0x192);if(_0x5585d8 instanceof Date)return _0x5585d8['toISOString']();if(typeof _0x5585d8===_0x1abae2(0x194))return JSON['stringify'](_0x5585d8);return String(_0x5585d8);}function a55_0x378d(){const _0x43a4df=['toLowerCase','max','data','\x20row','stringify','table','join','5650hESdnR','tsv','4296957QBpoPQ','No\x20rows\x20returned','length','6532272BjjLFZ','row','537882SvVSaw','jsonl','test','slice','replace','253kYqroi','3546QCOFic','false','entries','object','type','push','array','2225VAYdPQ','number','date','repeat','\x20shown)','21497508YybcEv','json','308488qeKaVf','timestamp','forEach','string','toISOString','boolean','min','columns','bool','stdout','map','name'];a55_0x378d=function(){return _0x43a4df;};return a55_0x378d();}function formatValueForTSV(_0x471c8c){const _0xb5a114=a55_0x193f;if(_0x471c8c===null||_0x471c8c===undefined)return'';if(typeof _0x471c8c===_0xb5a114(0x174))return _0x471c8c[_0xb5a114(0x18f)](/\t/g,'\x5ct')[_0xb5a114(0x18f)](/\n/g,'\x5cn');if(typeof _0x471c8c===_0xb5a114(0x199)||typeof _0x471c8c===_0xb5a114(0x176))return String(_0x471c8c);if(_0x471c8c instanceof Date)return _0x471c8c[_0xb5a114(0x175)]();if(typeof _0x471c8c===_0xb5a114(0x194))return JSON['stringify'](_0x471c8c);return String(_0x471c8c);}export function formatQueryResult(_0x14d5ec,_0x162652){const _0x2ba028=a55_0x193f;switch(_0x162652){case _0x2ba028(0x182):return formatAsTable(_0x14d5ec);case _0x2ba028(0x19e):return formatAsJSON(_0x14d5ec);case _0x2ba028(0x18c):return formatAsJSONL(_0x14d5ec);case _0x2ba028(0x185):return formatAsTSV(_0x14d5ec);default:return formatAsJSON(_0x14d5ec);}}
@@ -1 +1 @@
1
- function a56_0x25e5(_0x5c1089,_0x584756){const _0x917455=a56_0x9174();return a56_0x25e5=function(_0x25e52d,_0x2f2d7c){_0x25e52d=_0x25e52d-0x76;let _0x382107=_0x917455[_0x25e52d];return _0x382107;},a56_0x25e5(_0x5c1089,_0x584756);}const a56_0x43bd6c=a56_0x25e5;function a56_0x9174(){const _0xee3670=['toLowerCase','1347126gqxIru','2476605IyMbVK','1022802dPluVe','claude-4.5-haiku','11843258OZeXAB','214420tjtkDG','530188qymqnN','921114tqcniR'];a56_0x9174=function(){return _0xee3670;};return a56_0x9174();}(function(_0x589c6a,_0x253e72){const _0x19878f=a56_0x25e5,_0xa876dd=_0x589c6a();while(!![]){try{const _0x30e148=-parseInt(_0x19878f(0x79))/0x1+-parseInt(_0x19878f(0x7c))/0x2+parseInt(_0x19878f(0x77))/0x3+-parseInt(_0x19878f(0x7d))/0x4+-parseInt(_0x19878f(0x78))/0x5+parseInt(_0x19878f(0x7e))/0x6+parseInt(_0x19878f(0x7b))/0x7;if(_0x30e148===_0x253e72)break;else _0xa876dd['push'](_0xa876dd['shift']());}catch(_0x912cbb){_0xa876dd['push'](_0xa876dd['shift']());}}}(a56_0x9174,0x82fff));const MODEL_ALIASES={'haiku':a56_0x43bd6c(0x7a),'sonnet':'claude-4.5-sonnet'};export function resolveModelAlias(_0x3df291){const _0x20f8d5=a56_0x43bd6c;return MODEL_ALIASES[_0x3df291[_0x20f8d5(0x76)]()]||_0x3df291;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ const a56_0x263cba=a56_0x43d7;(function(_0x3855af,_0x204c6c){const _0x56c064=a56_0x43d7,_0x3d51e8=_0x3855af();while(!![]){try{const _0x1307fb=parseInt(_0x56c064(0x188))/0x1+parseInt(_0x56c064(0x18f))/0x2*(parseInt(_0x56c064(0x18b))/0x3)+-parseInt(_0x56c064(0x189))/0x4*(parseInt(_0x56c064(0x18e))/0x5)+-parseInt(_0x56c064(0x18d))/0x6+parseInt(_0x56c064(0x192))/0x7+parseInt(_0x56c064(0x190))/0x8*(-parseInt(_0x56c064(0x18c))/0x9)+parseInt(_0x56c064(0x191))/0xa*(parseInt(_0x56c064(0x195))/0xb);if(_0x1307fb===_0x204c6c)break;else _0x3d51e8['push'](_0x3d51e8['shift']());}catch(_0x50fd01){_0x3d51e8['push'](_0x3d51e8['shift']());}}}(a56_0x1672,0xe48cd));const MODEL_ALIASES={'haiku':a56_0x263cba(0x194),'sonnet':a56_0x263cba(0x193)};function a56_0x43d7(_0x2e53d4,_0x38971c){const _0x1672c9=a56_0x1672();return a56_0x43d7=function(_0x43d7a3,_0x47f829){_0x43d7a3=_0x43d7a3-0x188;let _0x2d8f6d=_0x1672c9[_0x43d7a3];return _0x2d8f6d;},a56_0x43d7(_0x2e53d4,_0x38971c);}export function resolveModelAlias(_0x53197b){const _0x1e7e7a=a56_0x263cba;return MODEL_ALIASES[_0x53197b[_0x1e7e7a(0x18a)]()]||_0x53197b;}function a56_0x1672(){const _0x59e854=['126672UMtRit','claude-4.5-sonnet','claude-4.5-haiku','737473SvZCrZ','1712905Jfyypp','35884XWAQgm','toLowerCase','1299pCddsX','15471522BRaZqo','6988074RuWgVP','645RPxVjQ','1678YiySJJ','8KdqDnV','430jJtHvG'];a56_0x1672=function(){return _0x59e854;};return a56_0x1672();}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x3402d3,_0x56b87f){const _0x5ce0e9=a57_0x47c8,_0xed3c3a=_0x3402d3();while(!![]){try{const _0x5e4ac4=parseInt(_0x5ce0e9(0xe3))/0x1*(-parseInt(_0x5ce0e9(0xda))/0x2)+parseInt(_0x5ce0e9(0xe2))/0x3+parseInt(_0x5ce0e9(0xd8))/0x4*(parseInt(_0x5ce0e9(0xe1))/0x5)+-parseInt(_0x5ce0e9(0xe5))/0x6+-parseInt(_0x5ce0e9(0xdf))/0x7*(-parseInt(_0x5ce0e9(0xe7))/0x8)+parseInt(_0x5ce0e9(0xd9))/0x9+-parseInt(_0x5ce0e9(0xdb))/0xa;if(_0x5e4ac4===_0x56b87f)break;else _0xed3c3a['push'](_0xed3c3a['shift']());}catch(_0x4a8d97){_0xed3c3a['push'](_0xed3c3a['shift']());}}}(a57_0x3987,0x23665));export function validateLimitOption(_0x3d3aff){const _0x4d6cd8=a57_0x47c8;if(!Number[_0x4d6cd8(0xde)](_0x3d3aff))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x3d3aff+_0x4d6cd8(0xe8)};if(_0x3d3aff<=0x0)return{'isValid':![],'error':_0x4d6cd8(0xdd)+_0x3d3aff+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x3d3aff};}export function validateTimeoutOption(_0x27f63d,_0x3a7003=0x1e){const _0xc3d52c=a57_0x47c8;if(_0x27f63d===undefined)return{'isValid':!![],'value':_0x3a7003};const _0x36c9b8=typeof _0x27f63d===_0xc3d52c(0xe6)?_0x27f63d:parseFloat(_0x27f63d);if(isNaN(_0x36c9b8))return{'isValid':![],'error':_0xc3d52c(0xdc)+_0x27f63d+_0xc3d52c(0xe4)};if(_0x36c9b8<=0x0)return{'isValid':![],'error':_0xc3d52c(0xdc)+_0x36c9b8+_0xc3d52c(0xe0)};return{'isValid':!![],'value':_0x36c9b8};}function a57_0x47c8(_0x560a4d,_0x52422d){const _0x3987f8=a57_0x3987();return a57_0x47c8=function(_0x47c8ae,_0x31852e){_0x47c8ae=_0x47c8ae-0xd8;let _0x970a28=_0x3987f8[_0x47c8ae];return _0x970a28;},a57_0x47c8(_0x560a4d,_0x52422d);}function a57_0x3987(){const _0x5be484=['1526481UMKNGQ','114BVqFNx','4370750GibPtb','Invalid\x20timeout\x20value:\x20','Invalid\x20limit\x20value:\x20','isInteger','253855kaGSMB','.\x20Must\x20be\x20a\x20positive\x20number.','7420fWgKEN','862251JXgbaa','139weLYio','.\x20Must\x20be\x20a\x20number.','983532RGYbrJ','number','56ZeOlEK','.\x20Must\x20be\x20an\x20integer.','116lUqevh'];a57_0x3987=function(){return _0x5be484;};return a57_0x3987();}
1
+ function a57_0x2535(_0x240820,_0x281bd6){const _0x3e42e9=a57_0x3e42();return a57_0x2535=function(_0x253544,_0x5ca305){_0x253544=_0x253544-0x64;let _0x2227ff=_0x3e42e9[_0x253544];return _0x2227ff;},a57_0x2535(_0x240820,_0x281bd6);}(function(_0x493c03,_0x3c1578){const _0x3fa243=a57_0x2535,_0x1c7ddc=_0x493c03();while(!![]){try{const _0x265f57=parseInt(_0x3fa243(0x69))/0x1+-parseInt(_0x3fa243(0x6f))/0x2*(parseInt(_0x3fa243(0x6e))/0x3)+-parseInt(_0x3fa243(0x6c))/0x4+parseInt(_0x3fa243(0x64))/0x5+parseInt(_0x3fa243(0x72))/0x6*(parseInt(_0x3fa243(0x66))/0x7)+-parseInt(_0x3fa243(0x65))/0x8+parseInt(_0x3fa243(0x6d))/0x9*(parseInt(_0x3fa243(0x71))/0xa);if(_0x265f57===_0x3c1578)break;else _0x1c7ddc['push'](_0x1c7ddc['shift']());}catch(_0x41cb71){_0x1c7ddc['push'](_0x1c7ddc['shift']());}}}(a57_0x3e42,0xb008c));export function validateLimitOption(_0x312dc6){const _0x225d4c=a57_0x2535;if(!Number[_0x225d4c(0x70)](_0x312dc6))return{'isValid':![],'error':_0x225d4c(0x73)+_0x312dc6+'.\x20Must\x20be\x20an\x20integer.'};if(_0x312dc6<=0x0)return{'isValid':![],'error':_0x225d4c(0x73)+_0x312dc6+_0x225d4c(0x68)};return{'isValid':!![],'value':_0x312dc6};}export function validateTimeoutOption(_0x554a23,_0xb9439e=0x1e){const _0x31de43=a57_0x2535;if(_0x554a23===undefined)return{'isValid':!![],'value':_0xb9439e};const _0x202a6b=typeof _0x554a23===_0x31de43(0x6a)?_0x554a23:parseFloat(_0x554a23);if(isNaN(_0x202a6b))return{'isValid':![],'error':_0x31de43(0x67)+_0x554a23+'.\x20Must\x20be\x20a\x20number.'};if(_0x202a6b<=0x0)return{'isValid':![],'error':_0x31de43(0x67)+_0x202a6b+_0x31de43(0x6b)};return{'isValid':!![],'value':_0x202a6b};}function a57_0x3e42(){const _0x1694e3=['.\x20Must\x20be\x20a\x20positive\x20integer.','524317HGNyRH','number','.\x20Must\x20be\x20a\x20positive\x20number.','4361720bYiHXw','108iBmEsb','9003Qsshjn','194AvvEgh','isInteger','242070XzwyKg','6GnHTIE','Invalid\x20limit\x20value:\x20','2701685oJoUQa','3009064gFvuHt','7864906IbQHOd','Invalid\x20timeout\x20value:\x20'];a57_0x3e42=function(){return _0x1694e3;};return a57_0x3e42();}
@@ -1 +1 @@
1
- (function(_0x3c2e95,_0x34d37b){const _0x2ce412=a58_0x5111,_0x27b2ff=_0x3c2e95();while(!![]){try{const _0xaf899c=parseInt(_0x2ce412(0x9f))/0x1*(parseInt(_0x2ce412(0x95))/0x2)+parseInt(_0x2ce412(0x9b))/0x3*(-parseInt(_0x2ce412(0x90))/0x4)+parseInt(_0x2ce412(0x93))/0x5*(parseInt(_0x2ce412(0x92))/0x6)+-parseInt(_0x2ce412(0xa1))/0x7+-parseInt(_0x2ce412(0xa0))/0x8*(parseInt(_0x2ce412(0x9c))/0x9)+-parseInt(_0x2ce412(0x9e))/0xa*(parseInt(_0x2ce412(0x96))/0xb)+-parseInt(_0x2ce412(0x9a))/0xc*(-parseInt(_0x2ce412(0xa2))/0xd);if(_0xaf899c===_0x34d37b)break;else _0x27b2ff['push'](_0x27b2ff['shift']());}catch(_0x4f7cc1){_0x27b2ff['push'](_0x27b2ff['shift']());}}}(a58_0x159a,0xcd6b6));import{createServer}from'node:net';export async function isPortAvailable(_0x2d433e){return new Promise(_0x4106c4=>{const _0x4832f5=a58_0x5111,_0x2dc646=createServer();_0x2dc646[_0x4832f5(0x98)](_0x4832f5(0xa4),_0x3edcfc=>{const _0x4c18c4=_0x4832f5;_0x3edcfc['code']===_0x4c18c4(0xa3)?_0x4106c4(![]):_0x4106c4(![]);}),_0x2dc646[_0x4832f5(0x98)](_0x4832f5(0x9d),()=>{_0x2dc646['close'](),_0x4106c4(!![]);}),_0x2dc646[_0x4832f5(0x94)](_0x2d433e,_0x4832f5(0x99));});}export async function findAvailablePort(_0x1d74d6=0xfa0,_0x54cdea=0x64){const _0x4e3570=a58_0x5111;for(let _0x46284f=0x0;_0x46284f<_0x54cdea;_0x46284f++){const _0x34c718=_0x1d74d6+_0x46284f;if(await isPortAvailable(_0x34c718))return _0x34c718;}throw new Error(_0x4e3570(0x91)+_0x1d74d6+_0x4e3570(0x97)+(_0x1d74d6+_0x54cdea-0x1));}function a58_0x5111(_0x19316e,_0x471496){const _0x159ae6=a58_0x159a();return a58_0x5111=function(_0x511178,_0xaa62bb){_0x511178=_0x511178-0x90;let _0xb0335a=_0x159ae6[_0x511178];return _0xb0335a;},a58_0x5111(_0x19316e,_0x471496);}function a58_0x159a(){const _0xce146=['127.0.0.1','15699300ThrEPt','69978aXxFZP','45jKkJul','listening','817780tVSgLB','783ICFwav','509848wRjDEm','8650558CgmkuP','13lhrNJE','EADDRINUSE','error','140flLDML','No\x20available\x20port\x20found\x20between\x20','6rrlhGp','5908915IujNiz','listen','3098VblnLi','66DOusSm','\x20and\x20','once'];a58_0x159a=function(){return _0xce146;};return a58_0x159a();}
1
+ function a58_0x21f4(){const _0x538d70=['listening','once','293955nyUJhi','4saDKrP','No\x20available\x20port\x20found\x20between\x20','94629byDxYt','1982104fBUWgT','3957630WdbiCj','error','1623167wQtTSc','listen','3678MnVGWw','18QOwyZy','close','780gulIsk','953060jBEzsF'];a58_0x21f4=function(){return _0x538d70;};return a58_0x21f4();}(function(_0x9b8ed8,_0x4502fd){const _0xfe7597=a58_0x4e70,_0x10c10f=_0x9b8ed8();while(!![]){try{const _0x2af82c=-parseInt(_0xfe7597(0x1b2))/0x1+-parseInt(_0xfe7597(0x1c0))/0x2*(parseInt(_0xfe7597(0x1bf))/0x3)+-parseInt(_0xfe7597(0x1bc))/0x4+parseInt(_0xfe7597(0x1bb))/0x5*(-parseInt(_0xfe7597(0x1b8))/0x6)+-parseInt(_0xfe7597(0x1b6))/0x7+parseInt(_0xfe7597(0x1b3))/0x8+parseInt(_0xfe7597(0x1b9))/0x9*(parseInt(_0xfe7597(0x1b4))/0xa);if(_0x2af82c===_0x4502fd)break;else _0x10c10f['push'](_0x10c10f['shift']());}catch(_0x369c9c){_0x10c10f['push'](_0x10c10f['shift']());}}}(a58_0x21f4,0x2ca84));function a58_0x4e70(_0x3da536,_0x422315){const _0x21f451=a58_0x21f4();return a58_0x4e70=function(_0x4e70eb,_0x460590){_0x4e70eb=_0x4e70eb-0x1b1;let _0x4dc7d1=_0x21f451[_0x4e70eb];return _0x4dc7d1;},a58_0x4e70(_0x3da536,_0x422315);}import{createServer}from'node:net';export async function isPortAvailable(_0x46ceea){return new Promise(_0x1d7e68=>{const _0x2c816e=a58_0x4e70,_0x2023ea=createServer();_0x2023ea['once'](_0x2c816e(0x1b5),_0x378901=>{_0x378901['code']==='EADDRINUSE'?_0x1d7e68(![]):_0x1d7e68(![]);}),_0x2023ea[_0x2c816e(0x1be)](_0x2c816e(0x1bd),()=>{const _0x29c920=_0x2c816e;_0x2023ea[_0x29c920(0x1ba)](),_0x1d7e68(!![]);}),_0x2023ea[_0x2c816e(0x1b7)](_0x46ceea,'127.0.0.1');});}export async function findAvailablePort(_0x590681=0xfa0,_0xa3c937=0x64){const _0x30dd9b=a58_0x4e70;for(let _0x58da8f=0x0;_0x58da8f<_0xa3c937;_0x58da8f++){const _0x3feed4=_0x590681+_0x58da8f;if(await isPortAvailable(_0x3feed4))return _0x3feed4;}throw new Error(_0x30dd9b(0x1b1)+_0x590681+'\x20and\x20'+(_0x590681+_0xa3c937-0x1));}
@@ -1 +1 @@
1
- (function(_0x26d175,_0x467267){var _0x550a9e=a59_0x3b5d,_0x3e9ac8=_0x26d175();while(!![]){try{var _0x58639f=-parseInt(_0x550a9e(0x1d4))/0x1*(parseInt(_0x550a9e(0x1d5))/0x2)+parseInt(_0x550a9e(0x1dc))/0x3+parseInt(_0x550a9e(0x1db))/0x4*(-parseInt(_0x550a9e(0x1d2))/0x5)+parseInt(_0x550a9e(0x1da))/0x6*(-parseInt(_0x550a9e(0x1d7))/0x7)+-parseInt(_0x550a9e(0x1d6))/0x8+-parseInt(_0x550a9e(0x1d8))/0x9*(-parseInt(_0x550a9e(0x1d3))/0xa)+parseInt(_0x550a9e(0x1d0))/0xb;if(_0x58639f===_0x467267)break;else _0x3e9ac8['push'](_0x3e9ac8['shift']());}catch(_0x508dfe){_0x3e9ac8['push'](_0x3e9ac8['shift']());}}}(a59_0x3afe,0xec98c));export function getPPID(){var _0x232652=a59_0x3b5d;return process[_0x232652(0x1d9)];}function a59_0x3b5d(_0x4399bf,_0x77498f){var _0x3afe6e=a59_0x3afe();return a59_0x3b5d=function(_0x3b5daa,_0x1696b6){_0x3b5daa=_0x3b5daa-0x1d0;var _0x289aa3=_0x3afe6e[_0x3b5daa];return _0x289aa3;},a59_0x3b5d(_0x4399bf,_0x77498f);}export function isProcessRunning(_0x5f4355){var _0x362eb8=a59_0x3b5d;try{return process[_0x362eb8(0x1d1)](_0x5f4355,0x0),!![];}catch{return![];}}function a59_0x3afe(){var _0x21a924=['26333340fIKrTp','kill','215MZiJhB','110BMMAvy','1615443awDFcS','2uSzObi','3882200AdrWXs','57197fhkZRq','433071yfWCzV','ppid','1146vKNhch','4612ykmdUP','5270427bLqwkP'];a59_0x3afe=function(){return _0x21a924;};return a59_0x3afe();}
1
+ function a59_0x29a3(_0x3eb84a,_0x1243ca){var _0x56b63d=a59_0x56b6();return a59_0x29a3=function(_0x29a3f4,_0x2bde0c){_0x29a3f4=_0x29a3f4-0x106;var _0x43ce71=_0x56b63d[_0x29a3f4];return _0x43ce71;},a59_0x29a3(_0x3eb84a,_0x1243ca);}(function(_0x183ed3,_0x4490cd){var _0x152019=a59_0x29a3,_0x14a658=_0x183ed3();while(!![]){try{var _0x33bdc6=parseInt(_0x152019(0x113))/0x1*(parseInt(_0x152019(0x109))/0x2)+-parseInt(_0x152019(0x10b))/0x3+-parseInt(_0x152019(0x106))/0x4*(parseInt(_0x152019(0x10c))/0x5)+parseInt(_0x152019(0x111))/0x6*(-parseInt(_0x152019(0x10a))/0x7)+-parseInt(_0x152019(0x10f))/0x8*(-parseInt(_0x152019(0x10e))/0x9)+-parseInt(_0x152019(0x112))/0xa*(parseInt(_0x152019(0x110))/0xb)+-parseInt(_0x152019(0x108))/0xc*(-parseInt(_0x152019(0x107))/0xd);if(_0x33bdc6===_0x4490cd)break;else _0x14a658['push'](_0x14a658['shift']());}catch(_0x2c8eb1){_0x14a658['push'](_0x14a658['shift']());}}}(a59_0x56b6,0xa7048));export function getPPID(){return process['ppid'];}function a59_0x56b6(){var _0x29efb2=['4949575ynEjnT','kill','14418iojxhz','288cwkhnS','2827TSvbcN','1446UqvJoN','44410UykxeS','72214BGSKgd','4yuNoLh','52953355srMAbc','12wjPkLd','12VdyjHH','13636EuonNg','3838401AkgWQB'];a59_0x56b6=function(){return _0x29efb2;};return a59_0x56b6();}export function isProcessRunning(_0x570344){var _0x546f21=a59_0x29a3;try{return process[_0x546f21(0x10d)](_0x570344,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- function a60_0x29db(){const _0xf99c87=['indexOf','3985712hlsesu','1233355vWaahj','2418yQhCLw','.\x20Child\x20name\x20cannot\x20be\x20empty','5291285xoAToq','8239kZVSEo','2818410oxnITO','substring','1615612IVHnlE','1701498VsqPNT','4uLLwDK','Invalid\x20segment\x20reference\x20format:\x20','9eKXXgf'];a60_0x29db=function(){return _0xf99c87;};return a60_0x29db();}(function(_0x590ab8,_0x35a29d){const _0x5b312b=a60_0xe8e4,_0x5123d6=_0x590ab8();while(!![]){try{const _0x3a89f7=-parseInt(_0x5b312b(0x1dc))/0x1+-parseInt(_0x5b312b(0x1d5))/0x2+parseInt(_0x5b312b(0x1d6))/0x3+parseInt(_0x5b312b(0x1d7))/0x4*(parseInt(_0x5b312b(0x1df))/0x5)+parseInt(_0x5b312b(0x1dd))/0x6*(parseInt(_0x5b312b(0x1d2))/0x7)+-parseInt(_0x5b312b(0x1db))/0x8*(-parseInt(_0x5b312b(0x1d9))/0x9)+parseInt(_0x5b312b(0x1d3))/0xa;if(_0x3a89f7===_0x35a29d)break;else _0x5123d6['push'](_0x5123d6['shift']());}catch(_0x42f549){_0x5123d6['push'](_0x5123d6['shift']());}}}(a60_0x29db,0xccbf8));function a60_0xe8e4(_0xd089a4,_0x2ebabe){const _0x29dbc2=a60_0x29db();return a60_0xe8e4=function(_0xe8e4b9,_0x5a8262){_0xe8e4b9=_0xe8e4b9-0x1d2;let _0x16351a=_0x29dbc2[_0xe8e4b9];return _0x16351a;},a60_0xe8e4(_0xd089a4,_0x2ebabe);}export function parseSegmentRef(_0x1caf1e){const _0x3b02ea=a60_0xe8e4,_0x36d970=_0x1caf1e[_0x3b02ea(0x1da)]('/');if(_0x36d970===-0x1)return{'parentId':_0x1caf1e};if(_0x36d970===0x0)throw new Error(_0x3b02ea(0x1d8)+_0x1caf1e+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x3a81b1=_0x1caf1e['substring'](0x0,_0x36d970),_0x44c3d3=_0x1caf1e[_0x3b02ea(0x1d4)](_0x36d970+0x1);if(_0x44c3d3==='')throw new Error(_0x3b02ea(0x1d8)+_0x1caf1e+_0x3b02ea(0x1de));return{'parentId':_0x3a81b1,'childId':_0x44c3d3};}
1
+ function a60_0x5368(_0xe8a7b9,_0xf1c4fe){const _0x343b4d=a60_0x343b();return a60_0x5368=function(_0x5368fa,_0x2620f9){_0x5368fa=_0x5368fa-0x116;let _0x3e5add=_0x343b4d[_0x5368fa];return _0x3e5add;},a60_0x5368(_0xe8a7b9,_0xf1c4fe);}(function(_0x437d16,_0x3b50da){const _0x3faa13=a60_0x5368,_0x399032=_0x437d16();while(!![]){try{const _0x44a442=parseInt(_0x3faa13(0x122))/0x1*(-parseInt(_0x3faa13(0x116))/0x2)+parseInt(_0x3faa13(0x120))/0x3*(-parseInt(_0x3faa13(0x118))/0x4)+-parseInt(_0x3faa13(0x11d))/0x5*(-parseInt(_0x3faa13(0x11b))/0x6)+-parseInt(_0x3faa13(0x124))/0x7+parseInt(_0x3faa13(0x125))/0x8+-parseInt(_0x3faa13(0x123))/0x9+parseInt(_0x3faa13(0x117))/0xa*(parseInt(_0x3faa13(0x11c))/0xb);if(_0x44a442===_0x3b50da)break;else _0x399032['push'](_0x399032['shift']());}catch(_0x14f7a7){_0x399032['push'](_0x399032['shift']());}}}(a60_0x343b,0x802f7));export function parseSegmentRef(_0x208c8c){const _0x2b87bf=a60_0x5368,_0x433a0a=_0x208c8c[_0x2b87bf(0x121)]('/');if(_0x433a0a===-0x1)return{'parentId':_0x208c8c};if(_0x433a0a===0x0)throw new Error(_0x2b87bf(0x11f)+_0x208c8c+_0x2b87bf(0x119));const _0x2c11ce=_0x208c8c[_0x2b87bf(0x11e)](0x0,_0x433a0a),_0x2f15a1=_0x208c8c[_0x2b87bf(0x11e)](_0x433a0a+0x1);if(_0x2f15a1==='')throw new Error(_0x2b87bf(0x11f)+_0x208c8c+_0x2b87bf(0x11a));return{'parentId':_0x2c11ce,'childId':_0x2f15a1};}function a60_0x343b(){const _0x2e402b=['1574ZwPgRs','5737797YVmweY','466935DomjvF','1734624xSCfDo','344gZsIsW','938390pwmxjl','4sTAQJw','.\x20Parent\x20name\x20cannot\x20be\x20empty','.\x20Child\x20name\x20cannot\x20be\x20empty','6iPAoWT','209bKykYH','1906715rlpnnd','substring','Invalid\x20segment\x20reference\x20format:\x20','2643297SHZCpf','indexOf'];a60_0x343b=function(){return _0x2e402b;};return a60_0x343b();}
@@ -1 +1 @@
1
- (function(_0x1ea661,_0x2a3938){const _0x1af6cc=a61_0x4c19,_0x49cb21=_0x1ea661();while(!![]){try{const _0x20c9a0=-parseInt(_0x1af6cc(0x1b1))/0x1+-parseInt(_0x1af6cc(0x1b2))/0x2*(-parseInt(_0x1af6cc(0x1bc))/0x3)+parseInt(_0x1af6cc(0x1b0))/0x4*(parseInt(_0x1af6cc(0x1b3))/0x5)+-parseInt(_0x1af6cc(0x1ae))/0x6*(parseInt(_0x1af6cc(0x1b5))/0x7)+parseInt(_0x1af6cc(0x1b6))/0x8*(-parseInt(_0x1af6cc(0x1c0))/0x9)+parseInt(_0x1af6cc(0x1bf))/0xa*(-parseInt(_0x1af6cc(0x1bd))/0xb)+parseInt(_0x1af6cc(0x1c4))/0xc;if(_0x20c9a0===_0x2a3938)break;else _0x49cb21['push'](_0x49cb21['shift']());}catch(_0x524d36){_0x49cb21['push'](_0x49cb21['shift']());}}}(a61_0x363e,0x922da));import a61_0x51e41c from'ora';export function createCommandSpinner(_0x518fff,_0xf3d863={}){const _0x1b5fd8=a61_0x4c19,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0xf3d863;return a61_0x51e41c({'text':_0x518fff,'color':'cyan','isEnabled':forceEnabled||process[_0x1b5fd8(0x1bb)]['isTTY']&&!verbose});}export async function withSpinner(_0x3089b6,_0x3a66cb,_0x4e6b5e={}){const _0x10197=a61_0x4c19,_0x32c974=_0x4e6b5e[_0x10197(0x1af)]??(()=>Date[_0x10197(0x1b8)]()),_0x21ed44=createCommandSpinner(_0x3089b6,_0x4e6b5e);_0x21ed44[_0x10197(0x1ba)]();const _0x1b32d5=_0x32c974();try{const _0x2e3794=await _0x3a66cb(),_0x15b69d=_0x32c974()-_0x1b32d5;return _0x21ed44[_0x10197(0x1c1)](),{'data':_0x2e3794,'elapsedMs':_0x15b69d};}catch(_0x1c7b3b){_0x21ed44[_0x10197(0x1c1)]();throw _0x1c7b3b;}}function a61_0x4c19(_0x596179,_0x4ce355){const _0x363e38=a61_0x363e();return a61_0x4c19=function(_0x4c195e,_0x533074){_0x4c195e=_0x4c195e-0x1ae;let _0x238ac5=_0x363e38[_0x4c195e];return _0x238ac5;},a61_0x4c19(_0x596179,_0x4ce355);}export async function withQuerySpinner(_0xbd417f,_0x3b6071,_0x2bcf12={}){const _0x2eebf2=a61_0x4c19,_0x400d45=_0x2bcf12['clock']??(()=>Date[_0x2eebf2(0x1b8)]()),_0x5ee16c=_0x2bcf12[_0x2eebf2(0x1b9)]??setInterval,_0x21c002=createCommandSpinner(_0xbd417f,_0x2bcf12);_0x21c002[_0x2eebf2(0x1ba)]();const _0x449429=_0x400d45(),_0x32e9fc=_0xbd417f['replace'](_0x2eebf2(0x1c2),''),_0x351796={},_0x591c2d=()=>{const _0x21da69=_0x2eebf2;if(!_0x21c002['isSpinning'])return;const _0x4deba9=((_0x400d45()-_0x449429)/0x3e8)['toFixed'](0x1),_0x384011=_0x351796[_0x21da69(0x1b4)]??_0x32e9fc,_0x17bf33=_0x351796[_0x21da69(0x1be)]?_0x21da69(0x1b7)+_0x351796['jobId']+']':'',_0x4fba3e=_0x351796[_0x21da69(0x1c3)]?'\x20'+_0x351796[_0x21da69(0x1c3)]:'';_0x21c002['text']=_0x384011+'\x20('+_0x4deba9+'s)'+_0x4fba3e+_0x17bf33;},_0x818d65=_0x5ee16c(()=>{_0x591c2d();},0x3e8),_0x316cd8={'setPhase':_0x4c4cca=>{const _0x1a7a23=_0x2eebf2;_0x351796[_0x1a7a23(0x1b4)]=_0x4c4cca,_0x591c2d();},'setJobId':_0x22a4ff=>{const _0x3ce163=_0x2eebf2;_0x351796[_0x3ce163(0x1be)]=_0x22a4ff,_0x591c2d();},'setExtra':_0x4551d2=>{const _0x2f8513=_0x2eebf2;_0x351796[_0x2f8513(0x1c3)]=_0x4551d2,_0x591c2d();}};_0x591c2d();try{const _0x29eaee=await _0x3b6071(_0x316cd8),_0x371f02=_0x400d45()-_0x449429;return{'data':_0x29eaee,'elapsedMs':_0x371f02};}finally{clearInterval(_0x818d65),_0x21c002['stop']();}}export function formatElapsed(_0x105127){return(_0x105127/0x3e8)['toFixed'](0x2)+'s';}function a61_0x363e(){const _0x13a355=['649810MtdhFt','2CVvIKV','315AOmlEG','phase','7lrrgaN','8xExIMU','\x20[Job\x20ID:\x20','now','intervalFactory','start','stdout','801018DeUGou','1408583ZadRYv','jobId','30GOUPcZ','6956811PWsfxf','stop','...','extra','30663456vmWIux','4478052VcegzT','clock','20936XXiQUG'];a61_0x363e=function(){return _0x13a355;};return a61_0x363e();}
1
+ (function(_0x4dc56e,_0x34e248){const _0x4339db=a61_0x28e9,_0x554d4b=_0x4dc56e();while(!![]){try{const _0xccdcf2=parseInt(_0x4339db(0x12a))/0x1*(-parseInt(_0x4339db(0x125))/0x2)+-parseInt(_0x4339db(0x124))/0x3+-parseInt(_0x4339db(0x131))/0x4+parseInt(_0x4339db(0x130))/0x5+parseInt(_0x4339db(0x12c))/0x6+-parseInt(_0x4339db(0x12f))/0x7+parseInt(_0x4339db(0x120))/0x8;if(_0xccdcf2===_0x34e248)break;else _0x554d4b['push'](_0x554d4b['shift']());}catch(_0x33641b){_0x554d4b['push'](_0x554d4b['shift']());}}}(a61_0x33a9,0x65eb7));import a61_0x2e2023 from'ora';export function createCommandSpinner(_0x1108e8,_0x27b764={}){const _0x4412b7=a61_0x28e9,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x27b764;return a61_0x2e2023({'text':_0x1108e8,'color':_0x4412b7(0x123),'isEnabled':forceEnabled||process[_0x4412b7(0x132)][_0x4412b7(0x11d)]&&!verbose});}export async function withSpinner(_0x50704c,_0x7d7240,_0x427c7e={}){const _0x588ecc=a61_0x28e9,_0x4cacce=_0x427c7e[_0x588ecc(0x12b)]??(()=>Date['now']()),_0x5d4051=createCommandSpinner(_0x50704c,_0x427c7e);_0x5d4051[_0x588ecc(0x129)]();const _0x5ef960=_0x4cacce();try{const _0x1ce498=await _0x7d7240(),_0x23bc37=_0x4cacce()-_0x5ef960;return _0x5d4051[_0x588ecc(0x128)](),{'data':_0x1ce498,'elapsedMs':_0x23bc37};}catch(_0xbf68b5){_0x5d4051['stop']();throw _0xbf68b5;}}export async function withQuerySpinner(_0x57c742,_0x4f9e76,_0x312688={}){const _0x5f2088=a61_0x28e9,_0x55dab5=_0x312688[_0x5f2088(0x12b)]??(()=>Date[_0x5f2088(0x12e)]()),_0x59cf40=_0x312688['intervalFactory']??setInterval,_0x43eb78=createCommandSpinner(_0x57c742,_0x312688);_0x43eb78[_0x5f2088(0x129)]();const _0x2bae7b=_0x55dab5(),_0x1ccedf=_0x57c742[_0x5f2088(0x127)](_0x5f2088(0x11f),''),_0x12ffa0={},_0x2ba402=()=>{const _0x285e51=_0x5f2088;if(!_0x43eb78['isSpinning'])return;const _0x5d8f63=((_0x55dab5()-_0x2bae7b)/0x3e8)[_0x285e51(0x126)](0x1),_0xae7846=_0x12ffa0[_0x285e51(0x133)]??_0x1ccedf,_0x175203=_0x12ffa0[_0x285e51(0x12d)]?_0x285e51(0x11e)+_0x12ffa0[_0x285e51(0x12d)]+']':'',_0x53d1d2=_0x12ffa0[_0x285e51(0x122)]?'\x20'+_0x12ffa0[_0x285e51(0x122)]:'';_0x43eb78[_0x285e51(0x121)]=_0xae7846+'\x20('+_0x5d8f63+'s)'+_0x53d1d2+_0x175203;},_0xe532df=_0x59cf40(()=>{_0x2ba402();},0x3e8),_0x3121cc={'setPhase':_0x2c7881=>{const _0x907bc6=_0x5f2088;_0x12ffa0[_0x907bc6(0x133)]=_0x2c7881,_0x2ba402();},'setJobId':_0x5f1677=>{const _0x113a57=_0x5f2088;_0x12ffa0[_0x113a57(0x12d)]=_0x5f1677,_0x2ba402();},'setExtra':_0x52720d=>{_0x12ffa0['extra']=_0x52720d,_0x2ba402();}};_0x2ba402();try{const _0x55e005=await _0x4f9e76(_0x3121cc),_0x10e705=_0x55dab5()-_0x2bae7b;return{'data':_0x55e005,'elapsedMs':_0x10e705};}finally{clearInterval(_0xe532df),_0x43eb78[_0x5f2088(0x128)]();}}function a61_0x28e9(_0x33144d,_0x45ee0c){const _0x33a91a=a61_0x33a9();return a61_0x28e9=function(_0x28e910,_0x253dfe){_0x28e910=_0x28e910-0x11d;let _0x4744fa=_0x33a91a[_0x28e910];return _0x4744fa;},a61_0x28e9(_0x33144d,_0x45ee0c);}export function formatElapsed(_0x4936c8){return(_0x4936c8/0x3e8)['toFixed'](0x2)+'s';}function a61_0x33a9(){const _0x4a53a8=['1330878DNUksM','toFixed','replace','stop','start','1uJsWko','clock','2759244utwPOp','jobId','now','4382014RyTSKe','2315085Hvjzqs','1808028YQereO','stdout','phase','isTTY','\x20[Job\x20ID:\x20','...','16490576qSDFyq','text','extra','cyan','2469906VHerSO'];a61_0x33a9=function(){return _0x4a53a8;};return a61_0x33a9();}
@@ -1 +1 @@
1
- (function(_0x5ec5a2,_0x141149){const _0x2ce370=a62_0x3dae,_0xe4ec0=_0x5ec5a2();while(!![]){try{const _0xc7f05d=-parseInt(_0x2ce370(0xd2))/0x1+-parseInt(_0x2ce370(0xd1))/0x2+parseInt(_0x2ce370(0xd9))/0x3+parseInt(_0x2ce370(0xc8))/0x4*(-parseInt(_0x2ce370(0xdf))/0x5)+parseInt(_0x2ce370(0xd3))/0x6*(-parseInt(_0x2ce370(0xd0))/0x7)+-parseInt(_0x2ce370(0xce))/0x8+parseInt(_0x2ce370(0xdd))/0x9;if(_0xc7f05d===_0x141149)break;else _0xe4ec0['push'](_0xe4ec0['shift']());}catch(_0x1980e5){_0xe4ec0['push'](_0xe4ec0['shift']());}}}(a62_0x6b4c,0x64bb5));import{readFileSync}from'fs';function a62_0x3dae(_0x1099f4,_0x321ee0){const _0x6b4c78=a62_0x6b4c();return a62_0x3dae=function(_0x3dae9e,_0x163698){_0x3dae9e=_0x3dae9e-0xc8;let _0x1131f3=_0x6b4c78[_0x3dae9e];return _0x1131f3;},a62_0x3dae(_0x1099f4,_0x321ee0);}export function stripSqlComments(_0x3a6405){const _0x2a8965=a62_0x3dae;let _0x3c332e=_0x3a6405[_0x2a8965(0xca)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x3c332e=_0x3c332e['replace'](/--.*$/gm,''),_0x3c332e['trim']();}function isEscaped(_0x5d9b40,_0x445f2d){let _0x5553aa=0x0;for(let _0x139e33=_0x445f2d-0x1;_0x139e33>=0x0&&_0x5d9b40[_0x139e33]==='\x5c';_0x139e33--){_0x5553aa++;}return _0x5553aa%0x2===0x1;}function a62_0x6b4c(){const _0x41ea0e=['Content\x20contains\x20no\x20SQL\x20statements','1330896bdZoEt','map','381500DNYuiA','1126646vgaHEV','485926pEkQXm','6Wznnnp','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','filter','utf-8','trim','1056015umVHYi','\x27\x20not\x20found','code','length','14574483Mzdqlv','Error\x20reading\x20file\x20\x27','270hDjXzb','File\x20\x27','21384yPAGiI','EACCES','replace','\x27:\x20','push'];a62_0x6b4c=function(){return _0x41ea0e;};return a62_0x6b4c();}export function splitSqlStatements(_0x509891){const _0x2e8677=a62_0x3dae,_0x2e32e4=stripSqlComments(_0x509891);if(!_0x2e32e4)throw new Error(_0x2e8677(0xcd));const _0x18b104=[];let _0x5d71c4='',_0x227a80=![],_0x1b23bd=![],_0x5d951d=![];for(let _0x7dfb0d=0x0;_0x7dfb0d<_0x509891[_0x2e8677(0xdc)];_0x7dfb0d++){const _0x29d0d1=_0x509891[_0x7dfb0d];if(_0x29d0d1==='\x27'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x1b23bd&&!_0x5d951d)_0x227a80=!_0x227a80;else{if(_0x29d0d1==='\x22'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x5d951d)_0x1b23bd=!_0x1b23bd;else _0x29d0d1==='`'&&!isEscaped(_0x509891,_0x7dfb0d)&&!_0x227a80&&!_0x1b23bd&&(_0x5d951d=!_0x5d951d);}if(_0x29d0d1===';'&&!_0x227a80&&!_0x1b23bd&&!_0x5d951d){const _0x199568=_0x5d71c4[_0x2e8677(0xd8)]();_0x199568&&_0x18b104[_0x2e8677(0xcc)](_0x199568),_0x5d71c4='';}else _0x5d71c4+=_0x29d0d1;}const _0x434ae4=_0x5d71c4['trim']();_0x434ae4&&_0x18b104[_0x2e8677(0xcc)](_0x434ae4);const _0x2e79a9=_0x18b104[_0x2e8677(0xcf)](_0x5b9ff1=>_0x5b9ff1[_0x2e8677(0xd8)]())[_0x2e8677(0xd6)](_0x109912=>{const _0x3dc3d9=stripSqlComments(_0x109912);return _0x3dc3d9['length']>0x0;});if(_0x2e79a9[_0x2e8677(0xdc)]===0x0)throw new Error(_0x2e8677(0xcd));return _0x2e79a9;}export function readFileContent(_0x359c9d){const _0x5728c0=a62_0x3dae;try{return readFileSync(_0x359c9d,_0x5728c0(0xd7));}catch(_0x23c791){const _0x3bce94=_0x23c791[_0x5728c0(0xdb)];if(_0x3bce94===_0x5728c0(0xd4))throw new Error(_0x5728c0(0xe0)+_0x359c9d+_0x5728c0(0xda));else{if(_0x3bce94===_0x5728c0(0xc9))throw new Error(_0x5728c0(0xd5)+_0x359c9d+'\x27');else throw new Error(_0x5728c0(0xde)+_0x359c9d+_0x5728c0(0xcb)+_0x23c791['message']);}}}export function readSqlStatementsFromFile(_0xc38489){const _0x4ff0e9=a62_0x3dae,_0x411f3=readFileContent(_0xc38489);try{return splitSqlStatements(_0x411f3);}catch(_0x4824da){throw new Error(_0x4ff0e9(0xe0)+_0xc38489+'\x27\x20'+_0x4824da['message']['toLowerCase']());}}
1
+ (function(_0x2922c6,_0x42985a){const _0x37dfd3=a62_0x5b5c,_0x1b884d=_0x2922c6();while(!![]){try{const _0x225db8=parseInt(_0x37dfd3(0x97))/0x1*(-parseInt(_0x37dfd3(0x93))/0x2)+parseInt(_0x37dfd3(0x90))/0x3*(-parseInt(_0x37dfd3(0x92))/0x4)+-parseInt(_0x37dfd3(0x8e))/0x5+parseInt(_0x37dfd3(0x89))/0x6*(parseInt(_0x37dfd3(0x87))/0x7)+parseInt(_0x37dfd3(0x80))/0x8*(parseInt(_0x37dfd3(0x8d))/0x9)+-parseInt(_0x37dfd3(0x81))/0xa*(parseInt(_0x37dfd3(0x8b))/0xb)+parseInt(_0x37dfd3(0x9a))/0xc*(parseInt(_0x37dfd3(0x88))/0xd);if(_0x225db8===_0x42985a)break;else _0x1b884d['push'](_0x1b884d['shift']());}catch(_0x4bb175){_0x1b884d['push'](_0x1b884d['shift']());}}}(a62_0x5a0f,0x4a334));import{readFileSync}from'fs';function a62_0x5a0f(){const _0x18a487=['8ywMvgI','4953550mBOMkx','\x27:\x20','filter','code','map','ENOENT','13811FKQfxO','44824WHPtWQ','1362pHrEJY','message','11QafVgD','length','507096JnbhoL','2475750SiEvsL','Permission\x20denied\x20reading\x20file\x20\x27','6SXKqmT','toLowerCase','438436krIrmP','40hAsaRw','replace','trim','push','14006GmNOeN','Content\x20contains\x20no\x20SQL\x20statements','File\x20\x27','4488dvhcoh'];a62_0x5a0f=function(){return _0x18a487;};return a62_0x5a0f();}export function stripSqlComments(_0x234ae1){const _0x1f1eb0=a62_0x5b5c;let _0x381ca3=_0x234ae1[_0x1f1eb0(0x94)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x381ca3=_0x381ca3[_0x1f1eb0(0x94)](/--.*$/gm,''),_0x381ca3[_0x1f1eb0(0x95)]();}function a62_0x5b5c(_0xc1d13b,_0x38a661){const _0x5a0fd4=a62_0x5a0f();return a62_0x5b5c=function(_0x5b5cd9,_0x5d7154){_0x5b5cd9=_0x5b5cd9-0x80;let _0x4cbb73=_0x5a0fd4[_0x5b5cd9];return _0x4cbb73;},a62_0x5b5c(_0xc1d13b,_0x38a661);}function isEscaped(_0x90cefa,_0x5b548c){let _0x5aa4f9=0x0;for(let _0x383f53=_0x5b548c-0x1;_0x383f53>=0x0&&_0x90cefa[_0x383f53]==='\x5c';_0x383f53--){_0x5aa4f9++;}return _0x5aa4f9%0x2===0x1;}export function splitSqlStatements(_0x10a6da){const _0x3cb536=a62_0x5b5c,_0x415bcd=stripSqlComments(_0x10a6da);if(!_0x415bcd)throw new Error(_0x3cb536(0x98));const _0x451501=[];let _0x13805f='',_0x44a98d=![],_0x1f29e0=![],_0x5400e9=![];for(let _0x2e0f03=0x0;_0x2e0f03<_0x10a6da[_0x3cb536(0x8c)];_0x2e0f03++){const _0x9cebc=_0x10a6da[_0x2e0f03];if(_0x9cebc==='\x27'&&!isEscaped(_0x10a6da,_0x2e0f03)&&!_0x1f29e0&&!_0x5400e9)_0x44a98d=!_0x44a98d;else{if(_0x9cebc==='\x22'&&!isEscaped(_0x10a6da,_0x2e0f03)&&!_0x44a98d&&!_0x5400e9)_0x1f29e0=!_0x1f29e0;else _0x9cebc==='`'&&!isEscaped(_0x10a6da,_0x2e0f03)&&!_0x44a98d&&!_0x1f29e0&&(_0x5400e9=!_0x5400e9);}if(_0x9cebc===';'&&!_0x44a98d&&!_0x1f29e0&&!_0x5400e9){const _0x3ad361=_0x13805f['trim']();_0x3ad361&&_0x451501[_0x3cb536(0x96)](_0x3ad361),_0x13805f='';}else _0x13805f+=_0x9cebc;}const _0x5c5bdf=_0x13805f[_0x3cb536(0x95)]();_0x5c5bdf&&_0x451501['push'](_0x5c5bdf);const _0xb0a8e5=_0x451501[_0x3cb536(0x85)](_0x5b8b78=>_0x5b8b78[_0x3cb536(0x95)]())[_0x3cb536(0x83)](_0x3f8054=>{const _0x235d72=_0x3cb536,_0x17cf4b=stripSqlComments(_0x3f8054);return _0x17cf4b[_0x235d72(0x8c)]>0x0;});if(_0xb0a8e5[_0x3cb536(0x8c)]===0x0)throw new Error(_0x3cb536(0x98));return _0xb0a8e5;}export function readFileContent(_0x28bb1d){const _0x17fb49=a62_0x5b5c;try{return readFileSync(_0x28bb1d,'utf-8');}catch(_0x15c5d5){const _0x64433=_0x15c5d5[_0x17fb49(0x84)];if(_0x64433===_0x17fb49(0x86))throw new Error(_0x17fb49(0x99)+_0x28bb1d+'\x27\x20not\x20found');else{if(_0x64433==='EACCES')throw new Error(_0x17fb49(0x8f)+_0x28bb1d+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x28bb1d+_0x17fb49(0x82)+_0x15c5d5[_0x17fb49(0x8a)]);}}}export function readSqlStatementsFromFile(_0x16b0ec){const _0x19222a=a62_0x5b5c,_0x21f5f7=readFileContent(_0x16b0ec);try{return splitSqlStatements(_0x21f5f7);}catch(_0x507fd1){throw new Error(_0x19222a(0x99)+_0x16b0ec+'\x27\x20'+_0x507fd1[_0x19222a(0x8a)][_0x19222a(0x91)]());}}
@@ -1 +1 @@
1
- function a63_0x41ff(){const _0x41c717=['814737GHoBPj','trim','Response\x20body\x20is\x20null','releaseLock','data','event','2345136nCzMiO','51650EVeyYo','decode','12OmgWzu','78572bCmqif','slice','5662300YRUUcu','997650LbBsNa','split','1509RKQPJe','startsWith','body','pop','524lMVtmY','40AWJPUE','read','parse'];a63_0x41ff=function(){return _0x41c717;};return a63_0x41ff();}(function(_0x4c44e6,_0x52c48d){const _0x35125a=a63_0x3b51,_0x20c835=_0x4c44e6();while(!![]){try{const _0x4f71b1=parseInt(_0x35125a(0x119))/0x1+parseInt(_0x35125a(0x125))/0x2*(-parseInt(_0x35125a(0x121))/0x3)+-parseInt(_0x35125a(0x11c))/0x4*(parseInt(_0x35125a(0x126))/0x5)+-parseInt(_0x35125a(0x11b))/0x6*(-parseInt(_0x35125a(0x129))/0x7)+-parseInt(_0x35125a(0x118))/0x8+-parseInt(_0x35125a(0x11f))/0x9+parseInt(_0x35125a(0x11e))/0xa;if(_0x4f71b1===_0x52c48d)break;else _0x20c835['push'](_0x20c835['shift']());}catch(_0x4b61d8){_0x20c835['push'](_0x20c835['shift']());}}}(a63_0x41ff,0x2682c));export async function*parseSSEStream(_0x35a735){const _0x3e755f=a63_0x3b51;if(!_0x35a735['body'])throw new Error(_0x3e755f(0x12b));const _0x2550df=_0x35a735[_0x3e755f(0x123)]['getReader'](),_0x23b05a=new TextDecoder();let _0x2d3e66='',_0xe288da={};try{while(!![]){const {done:_0x16246e,value:_0x4a7280}=await _0x2550df[_0x3e755f(0x127)]();if(_0x16246e){_0xe288da[_0x3e755f(0x12d)]&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]));break;}_0x2d3e66+=_0x23b05a[_0x3e755f(0x11a)](_0x4a7280,{'stream':!![]});const _0x5d0aef=_0x2d3e66[_0x3e755f(0x120)]('\x0a');_0x2d3e66=_0x5d0aef[_0x3e755f(0x124)]()||'';for(const _0x1c60ea of _0x5d0aef){if(_0x1c60ea[_0x3e755f(0x12a)]()===''){_0xe288da['data']&&(yield parseSSEData(_0xe288da[_0x3e755f(0x12d)]),_0xe288da={});continue;}if(_0x1c60ea[_0x3e755f(0x122)](':'))continue;const _0x5f3e1a=_0x1c60ea['indexOf'](':');if(_0x5f3e1a===-0x1)continue;const _0x1719b6=_0x1c60ea[_0x3e755f(0x11d)](0x0,_0x5f3e1a);let _0x48c392=_0x1c60ea[_0x3e755f(0x11d)](_0x5f3e1a+0x1);_0x48c392['startsWith']('\x20')&&(_0x48c392=_0x48c392[_0x3e755f(0x11d)](0x1));switch(_0x1719b6){case _0x3e755f(0x117):_0xe288da['event']=_0x48c392;break;case _0x3e755f(0x12d):_0xe288da['data']=_0xe288da[_0x3e755f(0x12d)]?_0xe288da[_0x3e755f(0x12d)]+'\x0a'+_0x48c392:_0x48c392;break;case'id':_0xe288da['id']=_0x48c392;break;}}}}finally{_0x2550df[_0x3e755f(0x12c)]();}}function a63_0x3b51(_0x5665d1,_0xc95071){const _0x41ffa5=a63_0x41ff();return a63_0x3b51=function(_0x3b51f1,_0x5e8735){_0x3b51f1=_0x3b51f1-0x117;let _0x4ad385=_0x41ffa5[_0x3b51f1];return _0x4ad385;},a63_0x3b51(_0x5665d1,_0xc95071);}function parseSSEData(_0x4b3ab7){const _0x833b43=a63_0x3b51;try{return JSON[_0x833b43(0x128)](_0x4b3ab7);}catch(_0x130dd5){throw new Error('Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20'+_0x4b3ab7,{'cause':_0x130dd5});}}
1
+ (function(_0x51417b,_0x548962){const _0x27c9f1=a63_0x30d2,_0x1a5dd8=_0x51417b();while(!![]){try{const _0x4e3498=-parseInt(_0x27c9f1(0x131))/0x1*(-parseInt(_0x27c9f1(0x12a))/0x2)+-parseInt(_0x27c9f1(0x139))/0x3*(-parseInt(_0x27c9f1(0x12d))/0x4)+-parseInt(_0x27c9f1(0x12f))/0x5+parseInt(_0x27c9f1(0x133))/0x6*(-parseInt(_0x27c9f1(0x137))/0x7)+-parseInt(_0x27c9f1(0x127))/0x8+-parseInt(_0x27c9f1(0x138))/0x9*(-parseInt(_0x27c9f1(0x134))/0xa)+parseInt(_0x27c9f1(0x12c))/0xb;if(_0x4e3498===_0x548962)break;else _0x1a5dd8['push'](_0x1a5dd8['shift']());}catch(_0x2aaa51){_0x1a5dd8['push'](_0x1a5dd8['shift']());}}}(a63_0x3ecf,0x8a7dd));export async function*parseSSEStream(_0x44b7f9){const _0x3e52ff=a63_0x30d2;if(!_0x44b7f9[_0x3e52ff(0x125)])throw new Error(_0x3e52ff(0x13b));const _0x284fa2=_0x44b7f9[_0x3e52ff(0x125)][_0x3e52ff(0x12b)](),_0x5a8121=new TextDecoder();let _0x409266='',_0x1181d5={};try{while(!![]){const {done:_0x2e3c5d,value:_0x3d91a4}=await _0x284fa2[_0x3e52ff(0x130)]();if(_0x2e3c5d){_0x1181d5['data']&&(yield parseSSEData(_0x1181d5[_0x3e52ff(0x13a)]));break;}_0x409266+=_0x5a8121[_0x3e52ff(0x132)](_0x3d91a4,{'stream':!![]});const _0x4ad6e4=_0x409266[_0x3e52ff(0x129)]('\x0a');_0x409266=_0x4ad6e4['pop']()||'';for(const _0xa81b58 of _0x4ad6e4){if(_0xa81b58[_0x3e52ff(0x135)]()===''){_0x1181d5[_0x3e52ff(0x13a)]&&(yield parseSSEData(_0x1181d5[_0x3e52ff(0x13a)]),_0x1181d5={});continue;}if(_0xa81b58[_0x3e52ff(0x12e)](':'))continue;const _0x2dc312=_0xa81b58['indexOf'](':');if(_0x2dc312===-0x1)continue;const _0x39824d=_0xa81b58[_0x3e52ff(0x126)](0x0,_0x2dc312);let _0x5f26cf=_0xa81b58['slice'](_0x2dc312+0x1);_0x5f26cf['startsWith']('\x20')&&(_0x5f26cf=_0x5f26cf[_0x3e52ff(0x126)](0x1));switch(_0x39824d){case _0x3e52ff(0x136):_0x1181d5[_0x3e52ff(0x136)]=_0x5f26cf;break;case _0x3e52ff(0x13a):_0x1181d5[_0x3e52ff(0x13a)]=_0x1181d5[_0x3e52ff(0x13a)]?_0x1181d5[_0x3e52ff(0x13a)]+'\x0a'+_0x5f26cf:_0x5f26cf;break;case'id':_0x1181d5['id']=_0x5f26cf;break;}}}}finally{_0x284fa2['releaseLock']();}}function parseSSEData(_0x235646){const _0x7889d=a63_0x30d2;try{return JSON[_0x7889d(0x124)](_0x235646);}catch(_0x2aed1a){throw new Error(_0x7889d(0x128)+_0x235646,{'cause':_0x2aed1a});}}function a63_0x30d2(_0x3e6d33,_0x3c34ba){const _0x3ecfb7=a63_0x3ecf();return a63_0x30d2=function(_0x30d238,_0x37b17a){_0x30d238=_0x30d238-0x124;let _0x39123a=_0x3ecfb7[_0x30d238];return _0x39123a;},a63_0x30d2(_0x3e6d33,_0x3c34ba);}function a63_0x3ecf(){const _0x413beb=['decode','323262biqaqf','9893280LsRAMg','trim','event','56AhypWJ','9ranABJ','50103BlmjYD','data','Response\x20body\x20is\x20null','parse','body','slice','1150128xgYFNk','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','split','7588HpfwZu','getReader','718927VBPikz','4anPwcF','startsWith','64055AQtWMv','read','22Vangiq'];a63_0x3ecf=function(){return _0x413beb;};return a63_0x3ecf();}
@@ -1 +1 @@
1
- (function(_0x12e14e,_0x491923){const _0x50beed=a64_0x45d6,_0x1fa30c=_0x12e14e();while(!![]){try{const _0x31be64=parseInt(_0x50beed(0xe9))/0x1*(-parseInt(_0x50beed(0xf6))/0x2)+parseInt(_0x50beed(0xec))/0x3+parseInt(_0x50beed(0xf4))/0x4+-parseInt(_0x50beed(0xe5))/0x5+parseInt(_0x50beed(0xf0))/0x6*(parseInt(_0x50beed(0xe3))/0x7)+-parseInt(_0x50beed(0xe8))/0x8*(-parseInt(_0x50beed(0xf7))/0x9)+-parseInt(_0x50beed(0xf1))/0xa;if(_0x31be64===_0x491923)break;else _0x1fa30c['push'](_0x1fa30c['shift']());}catch(_0x48e592){_0x1fa30c['push'](_0x1fa30c['shift']());}}}(a64_0x7fe1,0x6bbcb));import a64_0x29fce1 from'string-width';export function stringWidth(_0xc75a94){return a64_0x29fce1(_0xc75a94);}export function padEnd(_0x8995c,_0x40b663){const _0x1edd8e=a64_0x45d6,_0x3f90d7=stringWidth(_0x8995c);if(_0x3f90d7>=_0x40b663)return _0x8995c;return _0x8995c+'\x20'[_0x1edd8e(0xeb)](_0x40b663-_0x3f90d7);}export function padStart(_0x7cf8e6,_0x521608){const _0x429a30=a64_0x45d6,_0x459256=stringWidth(_0x7cf8e6);if(_0x459256>=_0x521608)return _0x7cf8e6;return'\x20'[_0x429a30(0xeb)](_0x521608-_0x459256)+_0x7cf8e6;}export function centerAlign(_0xf5783b,_0x257bdc){const _0x539f15=a64_0x45d6,_0x5a8824=stringWidth(_0xf5783b);if(_0x5a8824>_0x257bdc){if(_0x257bdc<=0x1)return'…'[_0x539f15(0xe7)](0x0,_0x257bdc);let _0x3c6e29=_0xf5783b;while(stringWidth(_0x3c6e29+'…')>_0x257bdc){_0x3c6e29=_0x3c6e29[_0x539f15(0xed)](0x0,-0x1);}return _0x3c6e29+'…';}if(_0x5a8824===_0x257bdc)return _0xf5783b;const _0x258cba=_0x257bdc-_0x5a8824,_0xdc2970=Math[_0x539f15(0xf5)](_0x258cba/0x2),_0x3125d9=_0x258cba-_0xdc2970;return'\x20'[_0x539f15(0xeb)](_0xdc2970)+_0xf5783b+'\x20'[_0x539f15(0xeb)](_0x3125d9);}export function escapeStringLiteral(_0xbe962c){const _0x3a2013=a64_0x45d6;if(!_0xbe962c||_0xbe962c[_0x3a2013(0xf2)]()[_0x3a2013(0xe6)]===0x0)throw new Error(_0x3a2013(0xea));const _0x216fe4=_0xbe962c['replace'](/'/g,'\x27\x27');return'\x27'+_0x216fe4+'\x27';}export function globToLike(_0x6bc07f){const _0xf101cd=a64_0x45d6;let _0x1a2f74=_0x6bc07f[_0xf101cd(0xef)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0xf101cd(0xef)](/_/g,'\x5c_');return _0x1a2f74=_0x1a2f74['replace'](/\*/g,'%')[_0xf101cd(0xef)](/\?/g,'_'),_0x1a2f74;}function a64_0x45d6(_0x23113c,_0x2423ab){const _0x7fe1a3=a64_0x7fe1();return a64_0x45d6=function(_0x45d6ba,_0x1c4991){_0x45d6ba=_0x45d6ba-0xe2;let _0x35a38c=_0x7fe1a3[_0x45d6ba];return _0x35a38c;},a64_0x45d6(_0x23113c,_0x2423ab);}export function buildLikePattern(_0x392da0){const _0x5243c2=a64_0x45d6;if(!_0x392da0||_0x392da0[_0x5243c2(0xf2)]()[_0x5243c2(0xe6)]===0x0)throw new Error(_0x5243c2(0xf9));const _0xba0ec8=globToLike(_0x392da0),_0x1cc0af=_0xba0ec8[_0x5243c2(0xef)](/'/g,'\x27\x27');return'\x27'+_0x1cc0af+'\x27';}function a64_0x7fe1(){const _0x9f092c=['3269zfTlIG','unknown','1855515BkcYmY','length','substring','14480NNkEPq','1pnFnGE','Cannot\x20escape\x20empty\x20string\x20literal','repeat','801870SqaKzl','slice','USER','replace','1050UbppUZ','2645590FcnEoV','trim','toLowerCase','2382112UQnQWr','floor','173200yQNAVU','1089NDUjHa','toString','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','\x5c$&','env','random'];a64_0x7fe1=function(){return _0x9f092c;};return a64_0x7fe1();}export function matchGlobPattern(_0x12fc7f,_0x47aefa){const _0x88265e=a64_0x45d6,_0x9d6619=_0x47aefa['replace'](/[.+^${}()|[\]\\]/g,_0x88265e(0xfa))[_0x88265e(0xef)](/\*/g,'.*')[_0x88265e(0xef)](/\?/g,'.'),_0x4c7738=new RegExp('^'+_0x9d6619+'$');return _0x4c7738['test'](_0x12fc7f);}export function getSanitizedUsername(){const _0x47f6e7=a64_0x45d6,_0x2f6e61=process[_0x47f6e7(0xfb)][_0x47f6e7(0xee)]||process[_0x47f6e7(0xfb)]['USERNAME']||_0x47f6e7(0xe4);return _0x2f6e61['replace'](/[^a-zA-Z0-9]/g,'')[_0x47f6e7(0xf3)]();}export function generateRandomHex(){const _0x1441ec=a64_0x45d6,_0x59885f=Math[_0x1441ec(0xf5)](Math[_0x1441ec(0xe2)]()*0xfffff);return _0x59885f[_0x1441ec(0xf8)](0x10)['padStart'](0x5,'0');}
1
+ (function(_0x1a0791,_0x5be21d){const _0x4b1acf=a64_0x2ec1,_0x3b9652=_0x1a0791();while(!![]){try{const _0x49d887=parseInt(_0x4b1acf(0x1ea))/0x1*(parseInt(_0x4b1acf(0x1ed))/0x2)+-parseInt(_0x4b1acf(0x1e9))/0x3*(parseInt(_0x4b1acf(0x1e2))/0x4)+parseInt(_0x4b1acf(0x1f5))/0x5*(parseInt(_0x4b1acf(0x1f4))/0x6)+parseInt(_0x4b1acf(0x1f6))/0x7+parseInt(_0x4b1acf(0x1ee))/0x8+parseInt(_0x4b1acf(0x1e0))/0x9+-parseInt(_0x4b1acf(0x1f7))/0xa*(parseInt(_0x4b1acf(0x1f0))/0xb);if(_0x49d887===_0x5be21d)break;else _0x3b9652['push'](_0x3b9652['shift']());}catch(_0x5b325e){_0x3b9652['push'](_0x3b9652['shift']());}}}(a64_0x1f01,0x845bd));function a64_0x2ec1(_0x3ac0fe,_0x56249d){const _0x1f0123=a64_0x1f01();return a64_0x2ec1=function(_0x2ec1a8,_0x21b260){_0x2ec1a8=_0x2ec1a8-0x1e0;let _0x52ce04=_0x1f0123[_0x2ec1a8];return _0x52ce04;},a64_0x2ec1(_0x3ac0fe,_0x56249d);}import a64_0x4e3aa3 from'string-width';export function stringWidth(_0x2ad99c){return a64_0x4e3aa3(_0x2ad99c);}export function padEnd(_0x1c84cd,_0x237d25){const _0x65f159=stringWidth(_0x1c84cd);if(_0x65f159>=_0x237d25)return _0x1c84cd;return _0x1c84cd+'\x20'['repeat'](_0x237d25-_0x65f159);}export function padStart(_0x1b564d,_0x52a67f){const _0x28b750=a64_0x2ec1,_0x36a71c=stringWidth(_0x1b564d);if(_0x36a71c>=_0x52a67f)return _0x1b564d;return'\x20'[_0x28b750(0x1ef)](_0x52a67f-_0x36a71c)+_0x1b564d;}export function centerAlign(_0x1f1db9,_0x2d6516){const _0x3e40fe=a64_0x2ec1,_0x5830d0=stringWidth(_0x1f1db9);if(_0x5830d0>_0x2d6516){if(_0x2d6516<=0x1)return'…'[_0x3e40fe(0x1f8)](0x0,_0x2d6516);let _0x577cf0=_0x1f1db9;while(stringWidth(_0x577cf0+'…')>_0x2d6516){_0x577cf0=_0x577cf0['slice'](0x0,-0x1);}return _0x577cf0+'…';}if(_0x5830d0===_0x2d6516)return _0x1f1db9;const _0x5c93a7=_0x2d6516-_0x5830d0,_0xd15580=Math[_0x3e40fe(0x1e1)](_0x5c93a7/0x2),_0x54ea06=_0x5c93a7-_0xd15580;return'\x20'['repeat'](_0xd15580)+_0x1f1db9+'\x20'[_0x3e40fe(0x1ef)](_0x54ea06);}export function escapeStringLiteral(_0x245a8b){const _0x4e2cec=a64_0x2ec1;if(!_0x245a8b||_0x245a8b[_0x4e2cec(0x1e5)]()[_0x4e2cec(0x1ec)]===0x0)throw new Error(_0x4e2cec(0x1e7));const _0x41e0a3=_0x245a8b[_0x4e2cec(0x1eb)](/'/g,'\x27\x27');return'\x27'+_0x41e0a3+'\x27';}export function globToLike(_0x2f0047){const _0x374a32=a64_0x2ec1;let _0x496eaa=_0x2f0047['replace'](/\\/g,'\x5c\x5c')[_0x374a32(0x1eb)](/%/g,'\x5c%')[_0x374a32(0x1eb)](/_/g,'\x5c_');return _0x496eaa=_0x496eaa[_0x374a32(0x1eb)](/\*/g,'%')['replace'](/\?/g,'_'),_0x496eaa;}export function buildLikePattern(_0x530e9e){const _0x446b89=a64_0x2ec1;if(!_0x530e9e||_0x530e9e[_0x446b89(0x1e5)]()[_0x446b89(0x1ec)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x198ab7=globToLike(_0x530e9e),_0x622f33=_0x198ab7[_0x446b89(0x1eb)](/'/g,'\x27\x27');return'\x27'+_0x622f33+'\x27';}export function matchGlobPattern(_0x1dd65e,_0x392703){const _0x30fb45=a64_0x2ec1,_0x38589f=_0x392703[_0x30fb45(0x1eb)](/[.+^${}()|[\]\\]/g,'\x5c$&')['replace'](/\*/g,'.*')[_0x30fb45(0x1eb)](/\?/g,'.'),_0x30ec9b=new RegExp('^'+_0x38589f+'$');return _0x30ec9b[_0x30fb45(0x1e8)](_0x1dd65e);}function a64_0x1f01(){const _0x4ccac5=['Cannot\x20escape\x20empty\x20string\x20literal','test','51JWwyob','128437SDKwVB','replace','length','16ZSjyqS','7478312nxwQYm','repeat','44fBBxiO','unknown','padStart','random','729012wEwzFD','10UbHlAc','3727465PnmRoQ','7476310pFABEj','substring','8850087pzfYjS','floor','44344jrkvhr','toLowerCase','env','trim','USERNAME'];a64_0x1f01=function(){return _0x4ccac5;};return a64_0x1f01();}export function getSanitizedUsername(){const _0x381dfe=a64_0x2ec1,_0x22389f=process[_0x381dfe(0x1e4)]['USER']||process['env'][_0x381dfe(0x1e6)]||_0x381dfe(0x1f1);return _0x22389f['replace'](/[^a-zA-Z0-9]/g,'')[_0x381dfe(0x1e3)]();}export function generateRandomHex(){const _0x2b218c=a64_0x2ec1,_0x97cd8f=Math[_0x2b218c(0x1e1)](Math[_0x2b218c(0x1f3)]()*0xfffff);return _0x97cd8f['toString'](0x10)[_0x2b218c(0x1f2)](0x5,'0');}
@@ -1 +1 @@
1
- (function(_0x718f2e,_0x55812d){const _0x2ec364=a65_0x3688,_0x1d25fe=_0x718f2e();while(!![]){try{const _0x294ce2=parseInt(_0x2ec364(0xdc))/0x1+parseInt(_0x2ec364(0xf1))/0x2+-parseInt(_0x2ec364(0xea))/0x3*(-parseInt(_0x2ec364(0xe7))/0x4)+parseInt(_0x2ec364(0xdb))/0x5*(-parseInt(_0x2ec364(0xe9))/0x6)+parseInt(_0x2ec364(0xde))/0x7*(parseInt(_0x2ec364(0xe0))/0x8)+-parseInt(_0x2ec364(0xe8))/0x9*(-parseInt(_0x2ec364(0xef))/0xa)+parseInt(_0x2ec364(0xe6))/0xb*(-parseInt(_0x2ec364(0xd9))/0xc);if(_0x294ce2===_0x55812d)break;else _0x1d25fe['push'](_0x1d25fe['shift']());}catch(_0x563f83){_0x1d25fe['push'](_0x1d25fe['shift']());}}}(a65_0x14ee,0xa819f));function hasWildcard(_0x4998dd){const _0x2fe276=a65_0x3688;return _0x4998dd['includes']('*')||_0x4998dd[_0x2fe276(0xeb)]('?');}export function parseTableReference(_0x1f49f1){const _0x90239c=a65_0x3688;if(!_0x1f49f1||_0x1f49f1['trim']()[_0x90239c(0xf4)]===0x0)throw new Error(_0x90239c(0xf3));const _0x407f25=_0x1f49f1[_0x90239c(0xe5)](),_0x31b174={'original':_0x407f25},_0x457ef7=_0x407f25['split']('.');if(_0x457ef7[_0x90239c(0xf4)]===0x1){const _0x49e94c=_0x457ef7[0x0];if(!_0x49e94c)throw new Error(_0x90239c(0xe3));_0x31b174[_0x90239c(0xe2)]=_0x49e94c;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x2){const [_0x3df38d,_0x8de70b]=_0x457ef7;if(!_0x3df38d)throw new Error(_0x90239c(0xdf));if(!_0x8de70b)throw new Error(_0x90239c(0xe4));_0x31b174[_0x90239c(0xec)]=_0x3df38d,_0x31b174['table']=_0x8de70b;}else{if(_0x457ef7[_0x90239c(0xf4)]===0x3){const [_0x2d29f4,_0x56dfbd,_0x961bb8]=_0x457ef7;if(!_0x2d29f4||!_0x56dfbd||!_0x961bb8)throw new Error(_0x90239c(0xf2));_0x31b174[_0x90239c(0xf0)]=_0x2d29f4,_0x31b174[_0x90239c(0xec)]=_0x56dfbd,_0x31b174[_0x90239c(0xe2)]=_0x961bb8;}else throw new Error(_0x90239c(0xe1));}}return _0x31b174;}function a65_0x14ee(){const _0x174759=['Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','24uYlNnV','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','table','Pattern\x20cannot\x20be\x20just\x20a\x20dot','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','trim','1969aYrpGl','2596NSXuCA','520290BJjLnO','1332RckWme','6213hdecVx','includes','database','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','push','180hCLlcu','catalog','1870702UTTgFV','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','length','194316NvLCMB','join','15475mDxjZe','639371aFALEU','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','734531GyQCrk'];a65_0x14ee=function(){return _0x174759;};return a65_0x14ee();}function a65_0x3688(_0xc15304,_0x230ce7){const _0x14ee85=a65_0x14ee();return a65_0x3688=function(_0x3688fb,_0x50e550){_0x3688fb=_0x3688fb-0xd9;let _0x5bf910=_0x14ee85[_0x3688fb];return _0x5bf910;},a65_0x3688(_0xc15304,_0x230ce7);}export function formatTableReference(_0x56189f){const _0x5e055b=a65_0x3688,_0x30aad8=[];return _0x56189f[_0x5e055b(0xf0)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xf0)]),_0x56189f[_0x5e055b(0xec)]&&_0x30aad8[_0x5e055b(0xee)](_0x56189f['database']),_0x56189f['table']&&_0x30aad8[_0x5e055b(0xee)](_0x56189f[_0x5e055b(0xe2)]),_0x30aad8[_0x5e055b(0xda)]('.');}export function validateTableListReference(_0x3a6255){return undefined;}export function validateTableDescribeReference(_0x14d490){const _0xbfb86c=a65_0x3688;if(!_0x14d490['table'])return _0xbfb86c(0xdd);if(_0x14d490[_0xbfb86c(0xec)]&&hasWildcard(_0x14d490[_0xbfb86c(0xec)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation';if(hasWildcard(_0x14d490[_0xbfb86c(0xe2)]))return _0xbfb86c(0xed);return undefined;}
1
+ function a65_0x3c56(){const _0x3b025c=['trim','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','13045MObVNa','table','3WsUmcf','117332NwTUrP','length','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','split','push','11nCYTUD','652939azNHHI','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','includes','join','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','16ApyYnj','309146SaHXtM','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','Pattern\x20cannot\x20be\x20just\x20a\x20dot','10wqcgwG','catalog','745479KOLgXy','53420plZkPx','6fjvjTR','database','1557576llASRa','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty'];a65_0x3c56=function(){return _0x3b025c;};return a65_0x3c56();}(function(_0x30417c,_0x539ae2){const _0x5b9d47=a65_0x234c,_0x51932f=_0x30417c();while(!![]){try{const _0x1e4e24=parseInt(_0x5b9d47(0x160))/0x1+-parseInt(_0x5b9d47(0x15a))/0x2+-parseInt(_0x5b9d47(0x169))/0x3*(parseInt(_0x5b9d47(0x16a))/0x4)+-parseInt(_0x5b9d47(0x167))/0x5*(parseInt(_0x5b9d47(0x161))/0x6)+-parseInt(_0x5b9d47(0x170))/0x7*(-parseInt(_0x5b9d47(0x159))/0x8)+-parseInt(_0x5b9d47(0x15f))/0x9*(parseInt(_0x5b9d47(0x15d))/0xa)+parseInt(_0x5b9d47(0x16f))/0xb*(parseInt(_0x5b9d47(0x163))/0xc);if(_0x1e4e24===_0x539ae2)break;else _0x51932f['push'](_0x51932f['shift']());}catch(_0x556c1d){_0x51932f['push'](_0x51932f['shift']());}}}(a65_0x3c56,0x1884a));function hasWildcard(_0x27960d){const _0x11ba08=a65_0x234c;return _0x27960d[_0x11ba08(0x172)]('*')||_0x27960d['includes']('?');}export function parseTableReference(_0x417d09){const _0x3a6f8a=a65_0x234c;if(!_0x417d09||_0x417d09[_0x3a6f8a(0x165)]()[_0x3a6f8a(0x16b)]===0x0)throw new Error('Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only');const _0x2cb38c=_0x417d09['trim'](),_0x19975f={'original':_0x2cb38c},_0xf3cac4=_0x2cb38c[_0x3a6f8a(0x16d)]('.');if(_0xf3cac4[_0x3a6f8a(0x16b)]===0x1){const _0x1e1d53=_0xf3cac4[0x0];if(!_0x1e1d53)throw new Error(_0x3a6f8a(0x15c));_0x19975f[_0x3a6f8a(0x168)]=_0x1e1d53;}else{if(_0xf3cac4[_0x3a6f8a(0x16b)]===0x2){const [_0x5ae8a4,_0x2fde0d]=_0xf3cac4;if(!_0x5ae8a4)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0x2fde0d)throw new Error(_0x3a6f8a(0x166));_0x19975f[_0x3a6f8a(0x162)]=_0x5ae8a4,_0x19975f[_0x3a6f8a(0x168)]=_0x2fde0d;}else{if(_0xf3cac4[_0x3a6f8a(0x16b)]===0x3){const [_0x50c2d4,_0x395df4,_0x1a3ea6]=_0xf3cac4;if(!_0x50c2d4||!_0x395df4||!_0x1a3ea6)throw new Error(_0x3a6f8a(0x164));_0x19975f['catalog']=_0x50c2d4,_0x19975f[_0x3a6f8a(0x162)]=_0x395df4,_0x19975f[_0x3a6f8a(0x168)]=_0x1a3ea6;}else throw new Error(_0x3a6f8a(0x16c));}}return _0x19975f;}function a65_0x234c(_0x4a20ab,_0x2048c8){const _0x3c561d=a65_0x3c56();return a65_0x234c=function(_0x234c6b,_0x2cf878){_0x234c6b=_0x234c6b-0x157;let _0x2d033e=_0x3c561d[_0x234c6b];return _0x2d033e;},a65_0x234c(_0x4a20ab,_0x2048c8);}export function formatTableReference(_0x20e178){const _0x471e3a=a65_0x234c,_0x4bdf7f=[];return _0x20e178[_0x471e3a(0x15e)]&&_0x4bdf7f[_0x471e3a(0x16e)](_0x20e178[_0x471e3a(0x15e)]),_0x20e178[_0x471e3a(0x162)]&&_0x4bdf7f[_0x471e3a(0x16e)](_0x20e178[_0x471e3a(0x162)]),_0x20e178[_0x471e3a(0x168)]&&_0x4bdf7f[_0x471e3a(0x16e)](_0x20e178[_0x471e3a(0x168)]),_0x4bdf7f[_0x471e3a(0x157)]('.');}export function validateTableListReference(_0x2c0bc6){return undefined;}export function validateTableDescribeReference(_0x4d0470){const _0x339e5d=a65_0x234c;if(!_0x4d0470[_0x339e5d(0x168)])return _0x339e5d(0x158);if(_0x4d0470[_0x339e5d(0x162)]&&hasWildcard(_0x4d0470[_0x339e5d(0x162)]))return _0x339e5d(0x15b);if(hasWildcard(_0x4d0470[_0x339e5d(0x168)]))return _0x339e5d(0x171);return undefined;}