@treasuredata/tdx 0.5.1 → 0.5.2

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 (127) hide show
  1. package/dist/bin.d.ts +9 -0
  2. package/dist/bin.d.ts.map +1 -0
  3. package/dist/bin.js +2 -0
  4. package/dist/bin.js.map +1 -0
  5. package/dist/build-info.json +2 -2
  6. package/dist/cli-categories.d.ts +35 -0
  7. package/dist/cli-categories.d.ts.map +1 -0
  8. package/dist/cli-categories.js +1 -0
  9. package/dist/cli-categories.js.map +1 -0
  10. package/dist/cli.d.ts +12 -3
  11. package/dist/cli.d.ts.map +1 -1
  12. package/dist/cli.js +1 -2
  13. package/dist/cli.js.map +1 -1
  14. package/dist/client/cdp-api-client.js +1 -1
  15. package/dist/client/engage-api-client.js +1 -1
  16. package/dist/client/http-client.js +1 -1
  17. package/dist/client/llm-api-client.js +1 -1
  18. package/dist/client/rate-limiter.js +1 -1
  19. package/dist/client/td-api-client.js +1 -1
  20. package/dist/client/trino-api-client.js +1 -1
  21. package/dist/client/workflow-client.js +1 -1
  22. package/dist/commands/activations.js +1 -1
  23. package/dist/commands/api-command.js +1 -1
  24. package/dist/commands/auth-command.js +1 -1
  25. package/dist/commands/chat-command.js +1 -1
  26. package/dist/commands/claude-command.js +1 -1
  27. package/dist/commands/claude-command.js.map +1 -1
  28. package/dist/commands/claude-statusline-command.js +1 -1
  29. package/dist/commands/claude-usage-command.js +1 -1
  30. package/dist/commands/command.js +1 -1
  31. package/dist/commands/context-command.js +1 -1
  32. package/dist/commands/databases.js +1 -1
  33. package/dist/commands/describe.js +1 -1
  34. package/dist/commands/engage-command.js +1 -1
  35. package/dist/commands/job-command.js +1 -1
  36. package/dist/commands/llm-command.d.ts +7 -3
  37. package/dist/commands/llm-command.d.ts.map +1 -1
  38. package/dist/commands/llm-command.js +1 -1
  39. package/dist/commands/llm-command.js.map +1 -1
  40. package/dist/commands/llm-proxy.js +1 -1
  41. package/dist/commands/parent-segment-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/segment-command.js +1 -1
  45. package/dist/commands/segment-create-command.js +1 -1
  46. package/dist/commands/segment-fields-command.js +1 -1
  47. package/dist/commands/segment-pwd-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segments.js +1 -1
  51. package/dist/commands/show.js +1 -1
  52. package/dist/commands/tables.js +1 -1
  53. package/dist/commands/use-command.js +1 -1
  54. package/dist/commands/workflow-command.js +1 -1
  55. package/dist/core/auth.js +1 -1
  56. package/dist/core/config.js +1 -1
  57. package/dist/core/credential-cache.js +1 -1
  58. package/dist/core/global-context.js +1 -1
  59. package/dist/core/keychain.js +1 -1
  60. package/dist/core/profile.js +1 -1
  61. package/dist/core/project-config.js +1 -1
  62. package/dist/core/session.js +1 -1
  63. package/dist/index.js +1 -1
  64. package/dist/proxy/anthropic-adapter.d.ts +2 -5
  65. package/dist/proxy/anthropic-adapter.d.ts.map +1 -1
  66. package/dist/proxy/anthropic-adapter.js +1 -1
  67. package/dist/proxy/anthropic-adapter.js.map +1 -1
  68. package/dist/{utils → proxy}/claude-usage-tracker.d.ts.map +1 -1
  69. package/dist/proxy/claude-usage-tracker.js +1 -0
  70. package/dist/{utils → proxy}/claude-usage-tracker.js.map +1 -1
  71. package/dist/proxy/context-signature.d.ts +17 -0
  72. package/dist/proxy/context-signature.d.ts.map +1 -0
  73. package/dist/proxy/context-signature.js +1 -0
  74. package/dist/proxy/context-signature.js.map +1 -0
  75. package/dist/proxy/conversation-utils.d.ts +48 -0
  76. package/dist/proxy/conversation-utils.d.ts.map +1 -0
  77. package/dist/proxy/conversation-utils.js +1 -0
  78. package/dist/proxy/conversation-utils.js.map +1 -0
  79. package/dist/proxy/server.d.ts +3 -2
  80. package/dist/proxy/server.d.ts.map +1 -1
  81. package/dist/proxy/server.js +1 -1
  82. package/dist/proxy/server.js.map +1 -1
  83. package/dist/proxy/session-cache.js +1 -1
  84. package/dist/sdk/api.js +1 -1
  85. package/dist/sdk/engage.js +1 -1
  86. package/dist/sdk/errors.d.ts +4 -0
  87. package/dist/sdk/errors.d.ts.map +1 -1
  88. package/dist/sdk/errors.js +1 -1
  89. package/dist/sdk/errors.js.map +1 -1
  90. package/dist/sdk/index.js +1 -1
  91. package/dist/sdk/job.js +1 -1
  92. package/dist/sdk/llm.js +1 -1
  93. package/dist/sdk/query.js +1 -1
  94. package/dist/sdk/segment.js +1 -1
  95. package/dist/sdk/workflow.js +1 -1
  96. package/dist/types/endpoints.js +1 -1
  97. package/dist/types/index.js +1 -1
  98. package/dist/utils/agent-ref-parser.js +1 -1
  99. package/dist/utils/chat-cache.js +1 -1
  100. package/dist/utils/colors.js +1 -1
  101. package/dist/utils/command-output.js +1 -1
  102. package/dist/utils/constants.js +1 -1
  103. package/dist/utils/file-permissions.js +1 -1
  104. package/dist/utils/format-detector.js +1 -1
  105. package/dist/utils/formatters.js +1 -1
  106. package/dist/utils/json-loader.js +1 -1
  107. package/dist/utils/llm-backup-utils.js +1 -1
  108. package/dist/utils/model-aliases.js +1 -1
  109. package/dist/utils/model-factors.js +1 -1
  110. package/dist/utils/option-validation.js +1 -1
  111. package/dist/utils/port.js +1 -1
  112. package/dist/utils/process.js +1 -1
  113. package/dist/utils/prompt.js +1 -1
  114. package/dist/utils/segment-path-parser.js +1 -1
  115. package/dist/utils/segment-ref-parser.js +1 -1
  116. package/dist/utils/spinner.js +1 -1
  117. package/dist/utils/sql-parser.js +1 -1
  118. package/dist/utils/sse-parser.js +1 -1
  119. package/dist/utils/string-utils.js +1 -1
  120. package/dist/utils/table-ref-parser.js +1 -1
  121. package/dist/utils/tdx-logger.js +1 -1
  122. package/dist/utils/tree-formatter.js +1 -1
  123. package/dist/utils/version-check.js +1 -1
  124. package/dist/utils/workflow-utils.js +1 -1
  125. package/package.json +4 -4
  126. package/dist/utils/claude-usage-tracker.js +0 -1
  127. /package/dist/{utils → proxy}/claude-usage-tracker.d.ts +0 -0
@@ -1 +1 @@
1
- (function(_0x3301f3,_0xc38731){const _0x39f5b3=a74_0x331e,_0x4683c8=_0x3301f3();while(!![]){try{const _0x295b80=-parseInt(_0x39f5b3(0x1ce))/0x1+parseInt(_0x39f5b3(0x1cb))/0x2+parseInt(_0x39f5b3(0x1c8))/0x3+-parseInt(_0x39f5b3(0x1cd))/0x4*(parseInt(_0x39f5b3(0x1cc))/0x5)+-parseInt(_0x39f5b3(0x1c7))/0x6*(-parseInt(_0x39f5b3(0x1cf))/0x7)+-parseInt(_0x39f5b3(0x1ca))/0x8+parseInt(_0x39f5b3(0x1d0))/0x9;if(_0x295b80===_0xc38731)break;else _0x4683c8['push'](_0x4683c8['shift']());}catch(_0x143a01){_0x4683c8['push'](_0x4683c8['shift']());}}}(a74_0x14d1,0x1d48a));function a74_0x331e(_0x185627,_0x33cf3c){const _0x14d1cd=a74_0x14d1();return a74_0x331e=function(_0x331e30,_0x57b80e){_0x331e30=_0x331e30-0x1c7;let _0x3c7aea=_0x14d1cd[_0x331e30];return _0x3c7aea;},a74_0x331e(_0x185627,_0x33cf3c);}function a74_0x14d1(){const _0x661a8=['433391werjMC','1016928acKjtI','18cLIIhL','234180dsoRgg','number','1257080XHZouK','100006wrcZDU','209055mAlaDX','4wTJEFc','107902ASvgwq'];a74_0x14d1=function(){return _0x661a8;};return a74_0x14d1();}export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;export function resolveLimit(_0x505b46,_0x1fb788){const _0x49eab9=a74_0x331e;if(_0x505b46===undefined)return _0x1fb788;if(typeof _0x505b46===_0x49eab9(0x1c9))return _0x505b46;return parseInt(_0x505b46,0xa);}
1
+ (function(_0x1b6016,_0x101369){const _0x198293=a78_0x53a5,_0x468249=_0x1b6016();while(!![]){try{const _0x1984eb=parseInt(_0x198293(0x105))/0x1*(parseInt(_0x198293(0x104))/0x2)+-parseInt(_0x198293(0x10a))/0x3+parseInt(_0x198293(0x10b))/0x4+-parseInt(_0x198293(0x109))/0x5+-parseInt(_0x198293(0x107))/0x6+parseInt(_0x198293(0x10d))/0x7*(-parseInt(_0x198293(0x106))/0x8)+parseInt(_0x198293(0x108))/0x9;if(_0x1984eb===_0x101369)break;else _0x468249['push'](_0x468249['shift']());}catch(_0x2b576d){_0x468249['push'](_0x468249['shift']());}}}(a78_0x295e,0x3a099));export const DEFAULT_DISPLAY_LIMIT=0x28;export const DEFAULT_LISTING_LIMIT=0x2710;export const DEFAULT_LLM_LIMIT=0x32;function a78_0x53a5(_0x4be756,_0x1c4178){const _0x295ecf=a78_0x295e();return a78_0x53a5=function(_0x53a5a8,_0x518a24){_0x53a5a8=_0x53a5a8-0x104;let _0x29c029=_0x295ecf[_0x53a5a8];return _0x29c029;},a78_0x53a5(_0x4be756,_0x1c4178);}function a78_0x295e(){const _0x185873=['14360xQyblR','2540286WItfGl','3513807gNMNFz','82545xJptZA','1129650RMgaSE','1740500LLWdKd','number','21XbxwgG','158murSmD','2962jKBwQc'];a78_0x295e=function(){return _0x185873;};return a78_0x295e();}export function resolveLimit(_0x3f7d04,_0x164ca4){const _0x132840=a78_0x53a5;if(_0x3f7d04===undefined)return _0x164ca4;if(typeof _0x3f7d04===_0x132840(0x10c))return _0x3f7d04;return parseInt(_0x3f7d04,0xa);}
@@ -1 +1 @@
1
- (function(_0x43ebb3,_0x1c8572){const _0x221dbd=a75_0x19cc,_0x2b1d07=_0x43ebb3();while(!![]){try{const _0x561f7b=-parseInt(_0x221dbd(0xe4))/0x1+-parseInt(_0x221dbd(0xe3))/0x2+-parseInt(_0x221dbd(0xd1))/0x3+parseInt(_0x221dbd(0xe7))/0x4*(-parseInt(_0x221dbd(0xe1))/0x5)+-parseInt(_0x221dbd(0xe0))/0x6*(parseInt(_0x221dbd(0xd2))/0x7)+-parseInt(_0x221dbd(0xdf))/0x8*(-parseInt(_0x221dbd(0xe2))/0x9)+parseInt(_0x221dbd(0xd9))/0xa*(parseInt(_0x221dbd(0xde))/0xb);if(_0x561f7b===_0x1c8572)break;else _0x2b1d07['push'](_0x2b1d07['shift']());}catch(_0x560d74){_0x2b1d07['push'](_0x2b1d07['shift']());}}}(a75_0x3ed4,0xdf2dc));import*as a75_0x22d4cf from'node:fs';function a75_0x19cc(_0x3221f8,_0xaba8f2){const _0x3ed4e6=a75_0x3ed4();return a75_0x19cc=function(_0x19ccc4,_0x73d801){_0x19ccc4=_0x19ccc4-0xd1;let _0x4f54c8=_0x3ed4e6[_0x19ccc4];return _0x4f54c8;},a75_0x19cc(_0x3221f8,_0xaba8f2);}import*as a75_0x2451d8 from'node:path';export function setSecureFilePermissions(_0x3fc30e){const _0x280c53=a75_0x19cc;try{a75_0x22d4cf['chmodSync'](_0x3fc30e,0x180);}catch{console[_0x280c53(0xe6)](_0x280c53(0xd3)+_0x3fc30e);}}function a75_0x3ed4(){const _0x52c84a=['48755250BCKbFm',').\x20','mkdirSync','dirname','Should\x20be\x200600\x20or\x20more\x20restrictive.','11neZGsR','32KIlBip','12WgdQOK','25WgRwnz','262314DAPfrX','389682mqlFGT','12418RblrBK','statSync','warn','927644rBVjQh','chmodSync','4123689woUUiH','4678072DvHUxc','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','existsSync','mode','Warning:\x20','\x20has\x20insecure\x20permissions\x20('];a75_0x3ed4=function(){return _0x52c84a;};return a75_0x3ed4();}export function setSecureDirectoryPermissions(_0x41fb94){const _0x1ab163=a75_0x19cc;try{a75_0x22d4cf[_0x1ab163(0xe8)](_0x41fb94,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x41fb94);}}export function createSecureDirectory(_0x2686e1){const _0x1c5a14=a75_0x19cc;!a75_0x22d4cf[_0x1c5a14(0xd5)](_0x2686e1)&&(a75_0x22d4cf[_0x1c5a14(0xdb)](_0x2686e1,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2686e1));}export function validateSecureFilePermissions(_0x59dddf){const _0x8f013a=a75_0x19cc;try{const _0x375a8e=a75_0x22d4cf[_0x8f013a(0xe5)](_0x59dddf),_0x1638ec=_0x375a8e[_0x8f013a(0xd6)]&0x1ff,_0x20c536=(_0x1638ec&0x3f)!==0x0;if(_0x20c536)return console[_0x8f013a(0xe6)](_0x8f013a(0xd7)+_0x59dddf+_0x8f013a(0xd8)+_0x1638ec['toString'](0x8)+_0x8f013a(0xda)+_0x8f013a(0xdd)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x3ba78b,_0x307f80){const _0x4a9079=a75_0x19cc,_0x5cc7e4=a75_0x2451d8[_0x4a9079(0xdc)](_0x3ba78b);createSecureDirectory(_0x5cc7e4),a75_0x22d4cf[_0x4a9079(0xd4)](_0x3ba78b,_0x307f80,{'mode':0x180}),setSecureFilePermissions(_0x3ba78b);}
1
+ (function(_0x20d18e,_0x46ca41){const _0x2f2502=a79_0x37f4,_0xf7d37c=_0x20d18e();while(!![]){try{const _0x491418=parseInt(_0x2f2502(0x1f0))/0x1*(parseInt(_0x2f2502(0x1f1))/0x2)+-parseInt(_0x2f2502(0x1f5))/0x3+-parseInt(_0x2f2502(0x1fd))/0x4*(-parseInt(_0x2f2502(0x1f6))/0x5)+parseInt(_0x2f2502(0x1f7))/0x6*(-parseInt(_0x2f2502(0x1f4))/0x7)+parseInt(_0x2f2502(0x201))/0x8*(parseInt(_0x2f2502(0x200))/0x9)+parseInt(_0x2f2502(0x1fa))/0xa+-parseInt(_0x2f2502(0x1f8))/0xb;if(_0x491418===_0x46ca41)break;else _0xf7d37c['push'](_0xf7d37c['shift']());}catch(_0x2ee1af){_0xf7d37c['push'](_0xf7d37c['shift']());}}}(a79_0x2570,0xa5518));import*as a79_0x279023 from'node:fs';function a79_0x37f4(_0x1cc2f2,_0x3461f3){const _0x25703f=a79_0x2570();return a79_0x37f4=function(_0x37f4ac,_0x33303f){_0x37f4ac=_0x37f4ac-0x1ef;let _0x9a762a=_0x25703f[_0x37f4ac];return _0x9a762a;},a79_0x37f4(_0x1cc2f2,_0x3461f3);}import*as a79_0x130c05 from'node:path';export function setSecureFilePermissions(_0x1c6b16){const _0x158c8e=a79_0x37f4;try{a79_0x279023[_0x158c8e(0x1f3)](_0x1c6b16,0x180);}catch{console[_0x158c8e(0x1fe)](_0x158c8e(0x203)+_0x1c6b16);}}export function setSecureDirectoryPermissions(_0x41fb23){const _0x5a3495=a79_0x37f4;try{a79_0x279023[_0x5a3495(0x1f3)](_0x41fb23,0x1c0);}catch{console['warn'](_0x5a3495(0x203)+_0x41fb23);}}function a79_0x2570(){const _0x24c2fd=['4BxNvXF','mode','chmodSync','49HHyzDx','3736254vSqOAZ','26270czPgNC','291342mRKZXJ','5673283YPmMMV','existsSync','10075020TPRNDD','Should\x20be\x200600\x20or\x20more\x20restrictive.','Warning:\x20','1004hniBAG','warn','mkdirSync','9NXFiEk','1859056HyGShX',').\x20','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','dirname','109788SQOkhl'];a79_0x2570=function(){return _0x24c2fd;};return a79_0x2570();}export function createSecureDirectory(_0x2f1a65){const _0x24230a=a79_0x37f4;!a79_0x279023[_0x24230a(0x1f9)](_0x2f1a65)&&(a79_0x279023[_0x24230a(0x1ff)](_0x2f1a65,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x2f1a65));}export function validateSecureFilePermissions(_0x29334c){const _0x2e95ef=a79_0x37f4;try{const _0x785958=a79_0x279023['statSync'](_0x29334c),_0x1ac523=_0x785958[_0x2e95ef(0x1f2)]&0x1ff,_0x170f39=(_0x1ac523&0x3f)!==0x0;if(_0x170f39)return console[_0x2e95ef(0x1fe)](_0x2e95ef(0x1fc)+_0x29334c+'\x20has\x20insecure\x20permissions\x20('+_0x1ac523['toString'](0x8)+_0x2e95ef(0x202)+_0x2e95ef(0x1fb)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x561f86,_0x2714f0){const _0x5a69fb=a79_0x37f4,_0x283ea0=a79_0x130c05[_0x5a69fb(0x1ef)](_0x561f86);createSecureDirectory(_0x283ea0),a79_0x279023['writeFileSync'](_0x561f86,_0x2714f0,{'mode':0x180}),setSecureFilePermissions(_0x561f86);}
@@ -1 +1 @@
1
- (function(_0x25cbaa,_0xf036aa){const _0x336389=a76_0x1429,_0x1a2832=_0x25cbaa();while(!![]){try{const _0x3445d1=-parseInt(_0x336389(0x154))/0x1+parseInt(_0x336389(0x153))/0x2+-parseInt(_0x336389(0x158))/0x3+parseInt(_0x336389(0x15b))/0x4+-parseInt(_0x336389(0x15d))/0x5+parseInt(_0x336389(0x150))/0x6*(parseInt(_0x336389(0x15a))/0x7)+parseInt(_0x336389(0x151))/0x8;if(_0x3445d1===_0xf036aa)break;else _0x1a2832['push'](_0x1a2832['shift']());}catch(_0x7505e9){_0x1a2832['push'](_0x1a2832['shift']());}}}(a76_0x5adf,0x6d48e));export function detectFormatFromExtension(_0x145e84){const _0x24bf9f=a76_0x1429,_0x463ead=_0x145e84['toLowerCase']()[_0x24bf9f(0x156)]('.')[_0x24bf9f(0x152)]();switch(_0x463ead){case _0x24bf9f(0x15c):return _0x24bf9f(0x15c);case _0x24bf9f(0x157):return _0x24bf9f(0x157);case'tsv':case'tab':return _0x24bf9f(0x159);case _0x24bf9f(0x155):case _0x24bf9f(0x15e):return _0x24bf9f(0x15f);default:return undefined;}}function a76_0x5adf(){const _0x1081df=['text','table','762cRJxuk','35312koZqtl','pop','33072cTPznI','424075heudoR','txt','split','jsonl','701415GLiqse','tsv','42511eKqvYt','2744140PdOBzp','json','1863730jdLAtE'];a76_0x5adf=function(){return _0x1081df;};return a76_0x5adf();}function a76_0x1429(_0x223d0d,_0x3328bd){const _0x5adf44=a76_0x5adf();return a76_0x1429=function(_0x142914,_0x1acef9){_0x142914=_0x142914-0x150;let _0x51dc43=_0x5adf44[_0x142914];return _0x51dc43;},a76_0x1429(_0x223d0d,_0x3328bd);}export function resolveOutputFormat(_0x278ee5,_0x59cc78,_0x30114f){if(_0x278ee5)return _0x278ee5;if(_0x59cc78){const _0x2d2acf=detectFormatFromExtension(_0x59cc78);if(_0x2d2acf)return _0x2d2acf;}return _0x30114f;}
1
+ (function(_0x218b58,_0x4c8cce){const _0xf66401=a80_0x30e1,_0x2cc371=_0x218b58();while(!![]){try{const _0x294a69=parseInt(_0xf66401(0x1c5))/0x1+-parseInt(_0xf66401(0x1c9))/0x2*(parseInt(_0xf66401(0x1ce))/0x3)+-parseInt(_0xf66401(0x1cb))/0x4+-parseInt(_0xf66401(0x1c4))/0x5+parseInt(_0xf66401(0x1c6))/0x6*(-parseInt(_0xf66401(0x1cf))/0x7)+parseInt(_0xf66401(0x1c2))/0x8+parseInt(_0xf66401(0x1c1))/0x9;if(_0x294a69===_0x4c8cce)break;else _0x2cc371['push'](_0x2cc371['shift']());}catch(_0x229457){_0x2cc371['push'](_0x2cc371['shift']());}}}(a80_0x4c23,0xdfcb3));export function detectFormatFromExtension(_0x4eae92){const _0x5633e0=a80_0x30e1,_0x4af2b2=_0x4eae92[_0x5633e0(0x1cd)]()['split']('.')[_0x5633e0(0x1cc)]();switch(_0x4af2b2){case _0x5633e0(0x1d0):return'json';case'jsonl':return _0x5633e0(0x1ca);case'tsv':case'tab':return _0x5633e0(0x1c7);case _0x5633e0(0x1c3):case _0x5633e0(0x1c8):return'table';default:return undefined;}}function a80_0x30e1(_0x340786,_0x3f6b59){const _0x4c231f=a80_0x4c23();return a80_0x30e1=function(_0x30e138,_0x38cfcf){_0x30e138=_0x30e138-0x1c1;let _0x369542=_0x4c231f[_0x30e138];return _0x369542;},a80_0x30e1(_0x340786,_0x3f6b59);}export function resolveOutputFormat(_0x3e74ef,_0x19570d,_0x297394){if(_0x3e74ef)return _0x3e74ef;if(_0x19570d){const _0x2de5ab=detectFormatFromExtension(_0x19570d);if(_0x2de5ab)return _0x2de5ab;}return _0x297394;}function a80_0x4c23(){const _0x361d15=['17796825gFjgAW','2976584eRqrxz','txt','2899505sZRjbO','1571804xdYIXs','473730UnNnVa','tsv','text','100iuufRZ','jsonl','2487068AabGgu','pop','toLowerCase','37119BtqRFP','105rEePGE','json'];a80_0x4c23=function(){return _0x361d15;};return a80_0x4c23();}
@@ -1 +1 @@
1
- (function(_0x45d9b2,_0x6eec10){const _0x59161b=a77_0x58a1,_0x45f66b=_0x45d9b2();while(!![]){try{const _0x46c1e2=parseInt(_0x59161b(0xbf))/0x1+parseInt(_0x59161b(0xa0))/0x2+parseInt(_0x59161b(0xad))/0x3*(parseInt(_0x59161b(0xbe))/0x4)+-parseInt(_0x59161b(0x9f))/0x5*(-parseInt(_0x59161b(0x9b))/0x6)+parseInt(_0x59161b(0xc1))/0x7+parseInt(_0x59161b(0xa2))/0x8+-parseInt(_0x59161b(0xc2))/0x9;if(_0x46c1e2===_0x6eec10)break;else _0x45f66b['push'](_0x45f66b['shift']());}catch(_0x3f5979){_0x45f66b['push'](_0x45f66b['shift']());}}}(a77_0x3ec1,0x524f6));function a77_0x3ec1(){const _0x4f1470=['type','join','long','stringify','startsWith','number','toFixed','toString','max','name','map','108qkxABV','object','date','test','64345WOHfQK','557120zXLcuQ','repeat','516920VlKzQH','forEach','toISOString','slice','entries','floor','json','stdout','log','false','int','111JFtcxr','data','replace','bool','\x20row','length','reduce','true','double','jsonl','string','\x20rows\x20(','push','No\x20rows\x20returned','pow','toLowerCase','timestamp','19300LgRlEe','637201FPwbRB','boolean','1870974PpjqIs','11886147AlfLJs','\x20shown)','columns','0\x20B'];a77_0x3ec1=function(){return _0x4f1470;};return a77_0x3ec1();}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 _0x10c609=a77_0x58a1;return process[_0x10c609(0xa9)][_0x10c609(0x8e)]||Infinity;}function a77_0x58a1(_0x510ee8,_0x7fdcf4){const _0x3ec1c8=a77_0x3ec1();return a77_0x58a1=function(_0x58a178,_0x153a86){_0x58a178=_0x58a178-0x8e;let _0x2bfb24=_0x3ec1c8[_0x58a178];return _0x2bfb24;},a77_0x58a1(_0x510ee8,_0x7fdcf4);}export function formatAsTable(_0x4cfcd9,_0x308e43=DEFAULT_MAX_DISPLAY_ROWS,_0x1649e1=![],_0x258182={}){const _0x38fa0f=a77_0x58a1;if(_0x4cfcd9[_0x38fa0f(0xae)]['length']===0x0)return _0x38fa0f(0xba);const _0x323878=_0x4cfcd9[_0x38fa0f(0x8e)][_0x38fa0f(0x9a)](_0xbe6681=>_0xbe6681['name']),_0x4ee71d=_0x4cfcd9[_0x38fa0f(0x8e)][_0x38fa0f(0x9a)](_0x152c13=>simplifyType(_0x152c13[_0x38fa0f(0x90)])),_0x4b0713=_0x4cfcd9[_0x38fa0f(0xae)][_0x38fa0f(0xa5)](0x0,_0x308e43),_0x13d2a1=_0x4cfcd9[_0x38fa0f(0xae)][_0x38fa0f(0xb2)],_0x578d1c=_0x13d2a1>_0x308e43,_0x5d9cb1=[],_0x1b7f2b=getTerminalWidth(),_0x1d8995=_0x1b7f2b!==Infinity,_0x174bbd=0x32;let _0x477112=_0x323878[_0x38fa0f(0x9a)]((_0x117259,_0x17220f)=>{const _0x5f59fe=_0x38fa0f,_0x1f5fca=stringWidth(_0x4ee71d[_0x17220f]),_0x135a30=Math[_0x5f59fe(0x98)](..._0x4b0713[_0x5f59fe(0x9a)](_0x45505d=>{const _0x314511=_0x45505d[_0x117259];return stringWidth(formatValue(_0x314511));})),_0x5bb5fc=Math[_0x5f59fe(0x98)](stringWidth(_0x117259),_0x1f5fca,_0x135a30);return _0x1649e1?_0x5bb5fc:Math['min'](_0x5bb5fc,_0x174bbd);});if(_0x1d8995&&!_0x1649e1&&_0x323878[_0x38fa0f(0xb2)]>0x0){const _0x3e8c90=_0x260583=>{let _0x3499f1=0x1;for(const _0xf58b86 of _0x260583){_0x3499f1+=_0xf58b86+0x3;}return _0x3499f1+0x1;};let _0x48a1e3=_0x3e8c90(_0x477112);if(_0x48a1e3>_0x1b7f2b){const _0x28a7e8=0x3;for(let _0x73c7e4=_0x477112[_0x38fa0f(0xb2)]-0x1;_0x73c7e4>=0x0;_0x73c7e4--){_0x48a1e3=_0x3e8c90(_0x477112);if(_0x48a1e3<=_0x1b7f2b)break;const _0x4d79fc=_0x477112[_0x73c7e4],_0x135378=_0x48a1e3-_0x1b7f2b,_0x5263d3=_0x4d79fc-_0x28a7e8,_0x34a91c=Math['min'](_0x135378,_0x5263d3);_0x34a91c>0x0&&(_0x477112[_0x73c7e4]=_0x4d79fc-_0x34a91c);}}}const _0x5dbac6=_0x323878,_0x534c9b=_0x4ee71d,_0x1d1335=_0x477112,_0xd7595d=_0x477112;_0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('┌'+_0xd7595d[_0x38fa0f(0x9a)](_0x144207=>'─'[_0x38fa0f(0xa1)](_0x144207+0x2))[_0x38fa0f(0x91)]('┬')+'┐',_0x258182));const _0x3dc21f=_0x5dbac6[_0x38fa0f(0x9a)]((_0x376e13,_0x2e5d84)=>centerAlign(_0x376e13,_0x1d1335[_0x2e5d84]));_0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('│',_0x258182)+'\x20'+_0x3dc21f[_0x38fa0f(0x91)]('\x20'+colorBorder('│',_0x258182)+'\x20')+'\x20'+colorBorder('│',_0x258182));const _0x241be3=_0x534c9b[_0x38fa0f(0x9a)]((_0x5b71c7,_0x176621)=>colorType(centerAlign(_0x5b71c7,_0x1d1335[_0x176621]),_0x258182));_0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('│',_0x258182)+'\x20'+_0x241be3[_0x38fa0f(0x91)]('\x20'+colorBorder('│',_0x258182)+'\x20')+'\x20'+colorBorder('│',_0x258182)),_0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('├'+_0xd7595d[_0x38fa0f(0x9a)](_0xb0ab17=>'─'[_0x38fa0f(0xa1)](_0xb0ab17+0x2))[_0x38fa0f(0x91)]('┼')+'┤',_0x258182));const _0x5e8898=(_0x2c465c,_0x4932ef)=>{const _0x4a926b=_0x38fa0f,_0x22cc06=stringWidth(_0x2c465c);if(_0x22cc06<=_0x4932ef)return _0x2c465c;let _0x2506a3=_0x2c465c;while(stringWidth(_0x2506a3+'…')>_0x4932ef&&_0x2506a3[_0x4a926b(0xb2)]>0x0){_0x2506a3=_0x2506a3[_0x4a926b(0xa5)](0x0,-0x1);}return _0x2506a3+'…';};_0x4b0713[_0x38fa0f(0xa3)](_0x101931=>{const _0x31c7b1=_0x38fa0f,_0x23d13d=_0x323878[_0x31c7b1(0x9a)]((_0x20b36f,_0x570d91)=>{const _0x26302b=_0x31c7b1,_0x4f28a8=_0x101931[_0x20b36f],_0x46f688=formatValue(_0x4f28a8),_0x40e48d=_0x1d1335[_0x570d91],_0x2ab5d0=_0x5e8898(_0x46f688,_0x40e48d),_0x51bcf8=typeof _0x4f28a8==='number'||typeof _0x4f28a8===_0x26302b(0xb7)&&/^-?\d+$/[_0x26302b(0x9e)](_0x4f28a8);return _0x51bcf8?padStart(_0x2ab5d0,_0x40e48d):padEnd(_0x2ab5d0,_0x40e48d);});_0x5d9cb1[_0x31c7b1(0xb9)](colorBorder('│',_0x258182)+'\x20'+_0x23d13d[_0x31c7b1(0x91)]('\x20'+colorBorder('│',_0x258182)+'\x20')+'\x20'+colorBorder('│',_0x258182));});const _0x2f0a88=_0xd7595d[_0x38fa0f(0xb3)]((_0x385d63,_0x718b40)=>_0x385d63+_0x718b40+0x3,-0x1);_0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('├'+_0xd7595d[_0x38fa0f(0x9a)](_0x26d14d=>'─'[_0x38fa0f(0xa1)](_0x26d14d+0x2))['join']('┴')+'┤',_0x258182));let _0x1fd5d5;_0x578d1c?_0x1fd5d5=_0x13d2a1+_0x38fa0f(0xb8)+_0x308e43+_0x38fa0f(0xc3):_0x1fd5d5=_0x13d2a1+_0x38fa0f(0xb1)+(_0x13d2a1===0x1?'':'s');const _0x244363=_0x1fd5d5['padEnd'](_0x2f0a88-0x2);return _0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('│',_0x258182)+'\x20'+_0x244363+'\x20'+colorBorder('│',_0x258182)),_0x5d9cb1[_0x38fa0f(0xb9)](colorBorder('└'+'─'[_0x38fa0f(0xa1)](_0x2f0a88)+'┘',_0x258182)),_0x5d9cb1[_0x38fa0f(0x91)]('\x0a');}function simplifyType(_0x121034){const _0x37677f=a77_0x58a1,_0x458e26={'varchar':_0x37677f(0xb7),'bigint':_0x37677f(0x92),'integer':_0x37677f(0xac),'double':_0x37677f(0xb5),'boolean':_0x37677f(0xb0),'date':_0x37677f(0x9d),'timestamp':_0x37677f(0xbd),'array':'array','map':_0x37677f(0x9a),'row':'row'},_0x2b49bd=_0x121034[_0x37677f(0xbc)]();for(const [_0x294cb1,_0x5a7a32]of Object[_0x37677f(0xa6)](_0x458e26)){if(_0x2b49bd[_0x37677f(0x94)](_0x294cb1))return _0x5a7a32;}return _0x121034[_0x37677f(0xb2)]>0xa?_0x121034['substring'](0x0,0xa):_0x121034;}export function formatAsJSON(_0x1ffbc4,_0x510273={}){const _0x1a3c4f=a77_0x58a1;if(_0x1ffbc4[_0x1a3c4f(0xae)][_0x1a3c4f(0xb2)]===0x0)return'[]';if(shouldUseColor(_0x510273))return colorizeJSON(_0x1ffbc4[_0x1a3c4f(0xae)],_0x510273);const _0x21fb84=_0x1ffbc4[_0x1a3c4f(0xae)][_0x1a3c4f(0x9a)](_0x536ebe=>'\x20\x20'+JSON[_0x1a3c4f(0x93)](_0x536ebe));return'[\x0a'+_0x21fb84[_0x1a3c4f(0x91)](',\x0a')+'\x0a]';}export function formatAsJSONL(_0x2632cc,_0x4be306={}){const _0x10f8ad=a77_0x58a1;if(_0x2632cc['data'][_0x10f8ad(0xb2)]===0x0)return'';if(shouldUseColor(_0x4be306))return _0x2632cc[_0x10f8ad(0xae)]['map'](_0x364dca=>colorizeJSONCompact(_0x364dca,_0x4be306))[_0x10f8ad(0x91)]('\x0a');return _0x2632cc[_0x10f8ad(0xae)][_0x10f8ad(0x9a)](_0xcd64e5=>JSON[_0x10f8ad(0x93)](_0xcd64e5))[_0x10f8ad(0x91)]('\x0a');}export function formatAsTSV(_0x106b36){const _0x1f7708=a77_0x58a1;if(_0x106b36[_0x1f7708(0xae)]['length']===0x0)return'';const _0x164c1c=[],_0x5396bb=_0x106b36[_0x1f7708(0x8e)]['map'](_0x285047=>_0x285047[_0x1f7708(0x99)]);return _0x164c1c[_0x1f7708(0xb9)](_0x5396bb[_0x1f7708(0x91)]('\x09')),_0x106b36[_0x1f7708(0xae)]['forEach'](_0x12043f=>{const _0x10d8a7=_0x1f7708,_0x1e627e=_0x5396bb[_0x10d8a7(0x9a)](_0x33936d=>{const _0x103c6f=_0x12043f[_0x33936d];return formatValueForTSV(_0x103c6f);});_0x164c1c[_0x10d8a7(0xb9)](_0x1e627e['join']('\x09'));}),_0x164c1c[_0x1f7708(0x91)]('\x0a');}function formatValue(_0x504b94){const _0x48fc3d=a77_0x58a1;if(_0x504b94===null||_0x504b94===undefined)return'';if(typeof _0x504b94===_0x48fc3d(0xb7)){const _0x1dd4e9=_0x504b94[_0x48fc3d(0xaf)](/\n/g,'\x5cn')['replace'](/\r/g,'\x5cr')[_0x48fc3d(0xaf)](/\t/g,'\x5ct');return _0x1dd4e9;}if(typeof _0x504b94===_0x48fc3d(0x95))return String(_0x504b94);if(typeof _0x504b94===_0x48fc3d(0xc0))return _0x504b94?_0x48fc3d(0xb4):_0x48fc3d(0xab);if(_0x504b94 instanceof Date)return _0x504b94[_0x48fc3d(0xa4)]();if(typeof _0x504b94==='object')return JSON[_0x48fc3d(0x93)](_0x504b94);return String(_0x504b94);}function formatValueForTSV(_0x13a18d){const _0xd88fdc=a77_0x58a1;if(_0x13a18d===null||_0x13a18d===undefined)return'';if(typeof _0x13a18d===_0xd88fdc(0xb7))return _0x13a18d['replace'](/\t/g,'\x5ct')[_0xd88fdc(0xaf)](/\n/g,'\x5cn');if(typeof _0x13a18d===_0xd88fdc(0x95)||typeof _0x13a18d===_0xd88fdc(0xc0))return String(_0x13a18d);if(_0x13a18d instanceof Date)return _0x13a18d[_0xd88fdc(0xa4)]();if(typeof _0x13a18d===_0xd88fdc(0x9c))return JSON[_0xd88fdc(0x93)](_0x13a18d);return String(_0x13a18d);}export function formatQueryResult(_0x7d3115,_0x11e03b){const _0x7280c6=a77_0x58a1;switch(_0x11e03b){case'table':return formatAsTable(_0x7d3115);case _0x7280c6(0xa8):return formatAsJSON(_0x7d3115);case _0x7280c6(0xb6):return formatAsJSONL(_0x7d3115);case'tsv':return formatAsTSV(_0x7d3115);default:return formatAsJSON(_0x7d3115);}}export function formatBytes(_0x3a8805){const _0xc0309e=a77_0x58a1;if(_0x3a8805===0x0)return _0xc0309e(0x8f);const _0x4df4a2=['B','KB','MB','GB','TB'],_0x2cb5b3=0x400,_0x2b0e39=Math[_0xc0309e(0xa7)](Math[_0xc0309e(0xaa)](_0x3a8805)/Math['log'](_0x2cb5b3)),_0x3e5515=_0x3a8805/Math['pow'](_0x2cb5b3,_0x2b0e39),_0x3be641=_0x3e5515>=0xa?0x1:0x2;return _0x3e5515[_0xc0309e(0x96)](_0x3be641)+'\x20'+_0x4df4a2[_0x2b0e39];}export function formatRows(_0x5d6a75){const _0x2395bb=a77_0x58a1;if(_0x5d6a75==null)return'-';if(_0x5d6a75===0x0)return'0';if(_0x5d6a75<0x3e8)return _0x5d6a75[_0x2395bb(0x97)]();const _0x105a38=['','K','M','B','T'],_0x3c14b5=0x3e8,_0x537435=Math[_0x2395bb(0xa7)](Math[_0x2395bb(0xaa)](_0x5d6a75)/Math[_0x2395bb(0xaa)](_0x3c14b5)),_0x59462d=_0x5d6a75/Math[_0x2395bb(0xbb)](_0x3c14b5,_0x537435),_0xa7cfa=_0x59462d>=0xa?0x1:0x2;return''+_0x59462d['toFixed'](_0xa7cfa)+_0x105a38[_0x537435];}
1
+ (function(_0x2c2a1c,_0x5a764e){const _0x570521=a81_0x1cea,_0x2217f6=_0x2c2a1c();while(!![]){try{const _0x252eb7=parseInt(_0x570521(0x1e4))/0x1+-parseInt(_0x570521(0x1f5))/0x2+parseInt(_0x570521(0x1f1))/0x3*(-parseInt(_0x570521(0x20c))/0x4)+-parseInt(_0x570521(0x216))/0x5*(parseInt(_0x570521(0x20e))/0x6)+-parseInt(_0x570521(0x218))/0x7*(parseInt(_0x570521(0x1f9))/0x8)+parseInt(_0x570521(0x208))/0x9+-parseInt(_0x570521(0x201))/0xa*(-parseInt(_0x570521(0x1fd))/0xb);if(_0x252eb7===_0x5a764e)break;else _0x2217f6['push'](_0x2217f6['shift']());}catch(_0x9fdba5){_0x2217f6['push'](_0x2217f6['shift']());}}}(a81_0xaddd,0xd1fbd));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 _0x15e3f0=a81_0x1cea;return process[_0x15e3f0(0x1ff)][_0x15e3f0(0x1f7)]||Infinity;}export function formatAsTable(_0xa111c8,_0x25af8d=DEFAULT_MAX_DISPLAY_ROWS,_0x26ffd5=![],_0x15fe46={}){const _0x20df0b=a81_0x1cea;if(_0xa111c8['data'][_0x20df0b(0x1fa)]===0x0)return _0x20df0b(0x219);const _0x4ef5bb=_0xa111c8[_0x20df0b(0x1f7)][_0x20df0b(0x207)](_0x65751c=>_0x65751c[_0x20df0b(0x212)]),_0x249e15=_0xa111c8[_0x20df0b(0x1f7)][_0x20df0b(0x207)](_0x3e8fe7=>simplifyType(_0x3e8fe7['type'])),_0x46eea9=_0xa111c8[_0x20df0b(0x1ee)][_0x20df0b(0x210)](0x0,_0x25af8d),_0x675ddd=_0xa111c8['data'][_0x20df0b(0x1fa)],_0x58eeeb=_0x675ddd>_0x25af8d,_0x38b2b5=[],_0xfc676f=getTerminalWidth(),_0x27bb11=_0xfc676f!==Infinity,_0x543b26=0x32;let _0x1337a5=_0x4ef5bb[_0x20df0b(0x207)]((_0x1046f3,_0x2a5b02)=>{const _0x1e0fd4=_0x20df0b,_0x2d0710=stringWidth(_0x249e15[_0x2a5b02]),_0x194117=Math[_0x1e0fd4(0x20f)](..._0x46eea9[_0x1e0fd4(0x207)](_0x4cc9f8=>{const _0x303116=_0x4cc9f8[_0x1046f3];return stringWidth(formatValue(_0x303116));})),_0x35b58a=Math[_0x1e0fd4(0x20f)](stringWidth(_0x1046f3),_0x2d0710,_0x194117);return _0x26ffd5?_0x35b58a:Math['min'](_0x35b58a,_0x543b26);});if(_0x27bb11&&!_0x26ffd5&&_0x4ef5bb['length']>0x0){const _0x5ee2db=_0x356897=>{let _0xa80d7b=0x1;for(const _0x193f14 of _0x356897){_0xa80d7b+=_0x193f14+0x3;}return _0xa80d7b+0x1;};let _0x326bc9=_0x5ee2db(_0x1337a5);if(_0x326bc9>_0xfc676f){const _0x4c5e76=0x3;for(let _0x2cfc0c=_0x1337a5['length']-0x1;_0x2cfc0c>=0x0;_0x2cfc0c--){_0x326bc9=_0x5ee2db(_0x1337a5);if(_0x326bc9<=_0xfc676f)break;const _0x506d6a=_0x1337a5[_0x2cfc0c],_0x4242ad=_0x326bc9-_0xfc676f,_0x29e616=_0x506d6a-_0x4c5e76,_0x3f198c=Math['min'](_0x4242ad,_0x29e616);_0x3f198c>0x0&&(_0x1337a5[_0x2cfc0c]=_0x506d6a-_0x3f198c);}}}const _0x4d23b0=_0x4ef5bb,_0x2de5fe=_0x249e15,_0x74fe15=_0x1337a5,_0x37aec6=_0x1337a5;_0x38b2b5[_0x20df0b(0x1f4)](colorBorder('┌'+_0x37aec6[_0x20df0b(0x207)](_0x4e34a5=>'─'[_0x20df0b(0x1eb)](_0x4e34a5+0x2))[_0x20df0b(0x1f2)]('┬')+'┐',_0x15fe46));const _0x5e1805=_0x4d23b0[_0x20df0b(0x207)]((_0x4a42ca,_0x588a4e)=>centerAlign(_0x4a42ca,_0x74fe15[_0x588a4e]));_0x38b2b5[_0x20df0b(0x1f4)](colorBorder('│',_0x15fe46)+'\x20'+_0x5e1805['join']('\x20'+colorBorder('│',_0x15fe46)+'\x20')+'\x20'+colorBorder('│',_0x15fe46));const _0x5770d3=_0x2de5fe[_0x20df0b(0x207)]((_0xecd242,_0x1f5356)=>colorType(centerAlign(_0xecd242,_0x74fe15[_0x1f5356]),_0x15fe46));_0x38b2b5['push'](colorBorder('│',_0x15fe46)+'\x20'+_0x5770d3[_0x20df0b(0x1f2)]('\x20'+colorBorder('│',_0x15fe46)+'\x20')+'\x20'+colorBorder('│',_0x15fe46)),_0x38b2b5[_0x20df0b(0x1f4)](colorBorder('├'+_0x37aec6[_0x20df0b(0x207)](_0x246089=>'─'[_0x20df0b(0x1eb)](_0x246089+0x2))[_0x20df0b(0x1f2)]('┼')+'┤',_0x15fe46));const _0xe6f798=(_0x14fb70,_0x1d885b)=>{const _0x40a412=_0x20df0b,_0x12901c=stringWidth(_0x14fb70);if(_0x12901c<=_0x1d885b)return _0x14fb70;let _0x5523d9=_0x14fb70;while(stringWidth(_0x5523d9+'…')>_0x1d885b&&_0x5523d9[_0x40a412(0x1fa)]>0x0){_0x5523d9=_0x5523d9[_0x40a412(0x210)](0x0,-0x1);}return _0x5523d9+'…';};_0x46eea9[_0x20df0b(0x1fc)](_0x279648=>{const _0x381fb9=_0x20df0b,_0x5eb0d7=_0x4ef5bb['map']((_0x583204,_0x1ad059)=>{const _0x55bcc9=a81_0x1cea,_0x9b89f7=_0x279648[_0x583204],_0x2a4fbc=formatValue(_0x9b89f7),_0x38bae2=_0x74fe15[_0x1ad059],_0x435203=_0xe6f798(_0x2a4fbc,_0x38bae2),_0x13f685=typeof _0x9b89f7==='number'||typeof _0x9b89f7===_0x55bcc9(0x21a)&&/^-?\d+$/['test'](_0x9b89f7);return _0x13f685?padStart(_0x435203,_0x38bae2):padEnd(_0x435203,_0x38bae2);});_0x38b2b5[_0x381fb9(0x1f4)](colorBorder('│',_0x15fe46)+'\x20'+_0x5eb0d7[_0x381fb9(0x1f2)]('\x20'+colorBorder('│',_0x15fe46)+'\x20')+'\x20'+colorBorder('│',_0x15fe46));});const _0x5bf0ac=_0x37aec6[_0x20df0b(0x217)]((_0xf1e59,_0x4de64f)=>_0xf1e59+_0x4de64f+0x3,-0x1);_0x38b2b5['push'](colorBorder('├'+_0x37aec6[_0x20df0b(0x207)](_0x46475c=>'─'[_0x20df0b(0x1eb)](_0x46475c+0x2))[_0x20df0b(0x1f2)]('┴')+'┤',_0x15fe46));let _0x5c442a;_0x58eeeb?_0x5c442a=_0x675ddd+_0x20df0b(0x200)+_0x25af8d+_0x20df0b(0x1e7):_0x5c442a=_0x675ddd+_0x20df0b(0x1e8)+(_0x675ddd===0x1?'':'s');const _0x2f65cf=_0x5c442a[_0x20df0b(0x213)](_0x5bf0ac-0x2);return _0x38b2b5[_0x20df0b(0x1f4)](colorBorder('│',_0x15fe46)+'\x20'+_0x2f65cf+'\x20'+colorBorder('│',_0x15fe46)),_0x38b2b5[_0x20df0b(0x1f4)](colorBorder('└'+'─'[_0x20df0b(0x1eb)](_0x5bf0ac)+'┘',_0x15fe46)),_0x38b2b5['join']('\x0a');}function simplifyType(_0x17d225){const _0x13ed4c=a81_0x1cea,_0x4d6dbc={'varchar':_0x13ed4c(0x21a),'bigint':_0x13ed4c(0x203),'integer':_0x13ed4c(0x1f3),'double':_0x13ed4c(0x202),'boolean':_0x13ed4c(0x215),'date':_0x13ed4c(0x209),'timestamp':_0x13ed4c(0x205),'array':_0x13ed4c(0x1e5),'map':_0x13ed4c(0x207),'row':_0x13ed4c(0x20b)},_0x16adad=_0x17d225[_0x13ed4c(0x1ef)]();for(const [_0x15c0ce,_0x29ab41]of Object[_0x13ed4c(0x21c)](_0x4d6dbc)){if(_0x16adad[_0x13ed4c(0x1ea)](_0x15c0ce))return _0x29ab41;}return _0x17d225['length']>0xa?_0x17d225['substring'](0x0,0xa):_0x17d225;}export function formatAsJSON(_0x7bcbdf,_0xd2c272={}){const _0x48acde=a81_0x1cea;if(_0x7bcbdf[_0x48acde(0x1ee)][_0x48acde(0x1fa)]===0x0)return'[]';if(shouldUseColor(_0xd2c272))return colorizeJSON(_0x7bcbdf['data'],_0xd2c272);const _0x540fc7=_0x7bcbdf['data'][_0x48acde(0x207)](_0x115f4a=>'\x20\x20'+JSON[_0x48acde(0x20a)](_0x115f4a));return'[\x0a'+_0x540fc7['join'](',\x0a')+'\x0a]';}function a81_0xaddd(){const _0x6c2a99=['17346ZxoeLD','max','slice','object','name','padEnd','jsonl','bool','1360GLkpfE','reduce','812mImiTy','No\x20rows\x20returned','string','toISOString','entries','1327618owpxqs','array','floor','\x20shown)','\x20row','log','startsWith','repeat','replace','pow','data','toLowerCase','boolean','177nnyMEi','join','int','push','3266872hqVMyS','table','columns','toFixed','93352VTnDWk','length','number','forEach','2897983SPPlct','json','stdout','\x20rows\x20(','80bQZAdH','double','long','false','timestamp','tsv','map','13087134EqQulj','date','stringify','row','17348vQbsQg','toString'];a81_0xaddd=function(){return _0x6c2a99;};return a81_0xaddd();}export function formatAsJSONL(_0x20e70d,_0x5d9186={}){const _0x523084=a81_0x1cea;if(_0x20e70d['data']['length']===0x0)return'';if(shouldUseColor(_0x5d9186))return _0x20e70d[_0x523084(0x1ee)]['map'](_0x2a7f4a=>colorizeJSONCompact(_0x2a7f4a,_0x5d9186))[_0x523084(0x1f2)]('\x0a');return _0x20e70d[_0x523084(0x1ee)]['map'](_0x3eca61=>JSON[_0x523084(0x20a)](_0x3eca61))['join']('\x0a');}export function formatAsTSV(_0x4076a0){const _0x2d3ebf=a81_0x1cea;if(_0x4076a0[_0x2d3ebf(0x1ee)][_0x2d3ebf(0x1fa)]===0x0)return'';const _0x51ddfd=[],_0x243549=_0x4076a0[_0x2d3ebf(0x1f7)]['map'](_0xba00b=>_0xba00b['name']);return _0x51ddfd[_0x2d3ebf(0x1f4)](_0x243549[_0x2d3ebf(0x1f2)]('\x09')),_0x4076a0[_0x2d3ebf(0x1ee)][_0x2d3ebf(0x1fc)](_0x5617e9=>{const _0x18eefe=_0x2d3ebf,_0x1b32f1=_0x243549[_0x18eefe(0x207)](_0x1d165f=>{const _0x4156ae=_0x5617e9[_0x1d165f];return formatValueForTSV(_0x4156ae);});_0x51ddfd['push'](_0x1b32f1[_0x18eefe(0x1f2)]('\x09'));}),_0x51ddfd[_0x2d3ebf(0x1f2)]('\x0a');}function formatValue(_0x196a85){const _0xff33=a81_0x1cea;if(_0x196a85===null||_0x196a85===undefined)return'';if(typeof _0x196a85==='string'){const _0x3bc3e8=_0x196a85[_0xff33(0x1ec)](/\n/g,'\x5cn')[_0xff33(0x1ec)](/\r/g,'\x5cr')['replace'](/\t/g,'\x5ct');return _0x3bc3e8;}if(typeof _0x196a85==='number')return String(_0x196a85);if(typeof _0x196a85==='boolean')return _0x196a85?'true':_0xff33(0x204);if(_0x196a85 instanceof Date)return _0x196a85[_0xff33(0x21b)]();if(typeof _0x196a85===_0xff33(0x211))return JSON[_0xff33(0x20a)](_0x196a85);return String(_0x196a85);}function a81_0x1cea(_0x5757c7,_0x59e3ee){const _0xaddd87=a81_0xaddd();return a81_0x1cea=function(_0x1cea9c,_0x55ae63){_0x1cea9c=_0x1cea9c-0x1e4;let _0x2f161e=_0xaddd87[_0x1cea9c];return _0x2f161e;},a81_0x1cea(_0x5757c7,_0x59e3ee);}function formatValueForTSV(_0x52a8fb){const _0x14f159=a81_0x1cea;if(_0x52a8fb===null||_0x52a8fb===undefined)return'';if(typeof _0x52a8fb===_0x14f159(0x21a))return _0x52a8fb[_0x14f159(0x1ec)](/\t/g,'\x5ct')[_0x14f159(0x1ec)](/\n/g,'\x5cn');if(typeof _0x52a8fb===_0x14f159(0x1fb)||typeof _0x52a8fb===_0x14f159(0x1f0))return String(_0x52a8fb);if(_0x52a8fb instanceof Date)return _0x52a8fb['toISOString']();if(typeof _0x52a8fb===_0x14f159(0x211))return JSON['stringify'](_0x52a8fb);return String(_0x52a8fb);}export function formatQueryResult(_0x5ec678,_0x2ada0c){const _0x24d535=a81_0x1cea;switch(_0x2ada0c){case _0x24d535(0x1f6):return formatAsTable(_0x5ec678);case _0x24d535(0x1fe):return formatAsJSON(_0x5ec678);case _0x24d535(0x214):return formatAsJSONL(_0x5ec678);case _0x24d535(0x206):return formatAsTSV(_0x5ec678);default:return formatAsJSON(_0x5ec678);}}export function formatBytes(_0x21863d){const _0x448843=a81_0x1cea;if(_0x21863d===0x0)return'0\x20B';const _0x3ad1df=['B','KB','MB','GB','TB'],_0x1c34d1=0x400,_0x393a4f=Math[_0x448843(0x1e6)](Math[_0x448843(0x1e9)](_0x21863d)/Math[_0x448843(0x1e9)](_0x1c34d1)),_0x24df87=_0x21863d/Math['pow'](_0x1c34d1,_0x393a4f),_0x12a9ce=_0x24df87>=0xa?0x1:0x2;return _0x24df87[_0x448843(0x1f8)](_0x12a9ce)+'\x20'+_0x3ad1df[_0x393a4f];}export function formatRows(_0x206b37){const _0x58118a=a81_0x1cea;if(_0x206b37==null)return'-';if(_0x206b37===0x0)return'0';if(_0x206b37<0x3e8)return _0x206b37[_0x58118a(0x20d)]();const _0x45d473=['','K','M','B','T'],_0x356a77=0x3e8,_0x360f6e=Math[_0x58118a(0x1e6)](Math[_0x58118a(0x1e9)](_0x206b37)/Math[_0x58118a(0x1e9)](_0x356a77)),_0x4ae867=_0x206b37/Math[_0x58118a(0x1ed)](_0x356a77,_0x360f6e),_0x2b0054=_0x4ae867>=0xa?0x1:0x2;return''+_0x4ae867[_0x58118a(0x1f8)](_0x2b0054)+_0x45d473[_0x360f6e];}
@@ -1 +1 @@
1
- (function(_0x3a03e3,_0x202539){const _0x18d1bb=a78_0x4224,_0x5e4148=_0x3a03e3();while(!![]){try{const _0x50f6f4=parseInt(_0x18d1bb(0x8e))/0x1*(parseInt(_0x18d1bb(0x8d))/0x2)+parseInt(_0x18d1bb(0x89))/0x3+parseInt(_0x18d1bb(0x86))/0x4*(-parseInt(_0x18d1bb(0x84))/0x5)+parseInt(_0x18d1bb(0x8f))/0x6+parseInt(_0x18d1bb(0x83))/0x7+-parseInt(_0x18d1bb(0x8a))/0x8*(parseInt(_0x18d1bb(0x87))/0x9)+-parseInt(_0x18d1bb(0x8b))/0xa;if(_0x50f6f4===_0x202539)break;else _0x5e4148['push'](_0x5e4148['shift']());}catch(_0x426186){_0x5e4148['push'](_0x5e4148['shift']());}}}(a78_0x49af,0xd9090));import{readFile}from'fs/promises';function a78_0x49af(){const _0x568fe2=['19182890wWaQfO','NOT_FOUND','1144252nEyDmz','3bCulca','693162kjSXwg','INVALID_ARGUMENT','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','parse','ENOENT','EACCES','File\x20not\x20found:\x20','message','code','Invalid\x20JSON\x20in\x20file\x20\x27','1786701kwlWFN','1374840RFnvXw','\x27:\x20','4RZwZvt','9XqsNJP','PERMISSION_DENIED','5073246EqmkYO','5567976ZEglBR'];a78_0x49af=function(){return _0x568fe2;};return a78_0x49af();}function a78_0x4224(_0x3ea085,_0x498def){const _0x49afb0=a78_0x49af();return a78_0x4224=function(_0x422410,_0x2e4697){_0x422410=_0x422410-0x79;let _0x159c17=_0x49afb0[_0x422410];return _0x159c17;},a78_0x4224(_0x3ea085,_0x498def);}import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x3812ba,_0xd6fb73){const _0x430a4b=a78_0x4224;try{if(_0xd6fb73){const _0x5249b9=await readFile(_0x3812ba,'utf-8');try{return JSON['parse'](_0x5249b9);}catch(_0x46c3f8){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],_0x430a4b(0x82)+_0x3812ba+_0x430a4b(0x85)+(_0x46c3f8 instanceof Error?_0x46c3f8[_0x430a4b(0x80)]:String(_0x46c3f8)));}}else try{return JSON[_0x430a4b(0x7c)](_0x3812ba);}catch(_0x49b7ef){throw new SDKError(ErrorCode[_0x430a4b(0x79)],'Invalid\x20JSON\x20string:\x20'+(_0x49b7ef instanceof Error?_0x49b7ef[_0x430a4b(0x80)]:String(_0x49b7ef)));}}catch(_0x2035b2){if(_0x2035b2 instanceof SDKError)throw _0x2035b2;if(_0x2035b2 instanceof Error&&_0x430a4b(0x81)in _0x2035b2){const _0x5901ef=_0x2035b2;if(_0x5901ef[_0x430a4b(0x81)]===_0x430a4b(0x7d))throw new SDKError(ErrorCode[_0x430a4b(0x8c)],_0x430a4b(0x7f)+_0x3812ba);else{if(_0x5901ef['code']===_0x430a4b(0x7e))throw new SDKError(ErrorCode[_0x430a4b(0x88)],_0x430a4b(0x7a)+_0x3812ba);}}throw new SDKError(ErrorCode['INTERNAL'],'Failed\x20to\x20load\x20JSON:\x20'+(_0x2035b2 instanceof Error?_0x2035b2[_0x430a4b(0x80)]:String(_0x2035b2)));}}export async function loadJSONFromOptions(_0x4cc836,_0x227f2c){const _0x5c3e11=a78_0x4224;if(_0x4cc836&&_0x227f2c)throw new SDKError(ErrorCode[_0x5c3e11(0x79)],_0x5c3e11(0x7b));if(_0x4cc836)return await loadJSON(_0x4cc836,![]);if(_0x227f2c)return await loadJSON(_0x227f2c,!![]);return undefined;}
1
+ (function(_0x1c3568,_0x29bd7e){const _0xb42233=a82_0x21f2,_0x521f76=_0x1c3568();while(!![]){try{const _0x1128ef=parseInt(_0xb42233(0x1a3))/0x1*(parseInt(_0xb42233(0x1b4))/0x2)+parseInt(_0xb42233(0x1a1))/0x3*(parseInt(_0xb42233(0x1b6))/0x4)+parseInt(_0xb42233(0x1af))/0x5*(-parseInt(_0xb42233(0x1a8))/0x6)+parseInt(_0xb42233(0x1b1))/0x7*(-parseInt(_0xb42233(0x19f))/0x8)+-parseInt(_0xb42233(0x1b7))/0x9+parseInt(_0xb42233(0x1a7))/0xa*(parseInt(_0xb42233(0x1ad))/0xb)+-parseInt(_0xb42233(0x1a6))/0xc*(parseInt(_0xb42233(0x1ae))/0xd);if(_0x1128ef===_0x29bd7e)break;else _0x521f76['push'](_0x521f76['shift']());}catch(_0x54a7c2){_0x521f76['push'](_0x521f76['shift']());}}}(a82_0x1def,0xb8384));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a82_0x21f2(_0x5b8917,_0x52aca5){const _0x1def3e=a82_0x1def();return a82_0x21f2=function(_0x21f2ae,_0x5816c7){_0x21f2ae=_0x21f2ae-0x19e;let _0x2dee6e=_0x1def3e[_0x21f2ae];return _0x2dee6e;},a82_0x21f2(_0x5b8917,_0x52aca5);}export async function loadJSON(_0x417663,_0x1a8574){const _0x5e15c4=a82_0x21f2;try{if(_0x1a8574){const _0x3f7a6c=await readFile(_0x417663,_0x5e15c4(0x1b0));try{return JSON[_0x5e15c4(0x1b2)](_0x3f7a6c);}catch(_0x20df73){throw new SDKError(ErrorCode[_0x5e15c4(0x1aa)],_0x5e15c4(0x1a5)+_0x417663+_0x5e15c4(0x1b5)+(_0x20df73 instanceof Error?_0x20df73[_0x5e15c4(0x19e)]:String(_0x20df73)));}}else try{return JSON[_0x5e15c4(0x1b2)](_0x417663);}catch(_0x55ff5b){throw new SDKError(ErrorCode[_0x5e15c4(0x1aa)],_0x5e15c4(0x1b3)+(_0x55ff5b instanceof Error?_0x55ff5b[_0x5e15c4(0x19e)]:String(_0x55ff5b)));}}catch(_0x5720ea){if(_0x5720ea instanceof SDKError)throw _0x5720ea;if(_0x5720ea instanceof Error&&_0x5e15c4(0x1a0)in _0x5720ea){const _0x296743=_0x5720ea;if(_0x296743[_0x5e15c4(0x1a0)]==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x5e15c4(0x1ac)+_0x417663);else{if(_0x296743['code']===_0x5e15c4(0x1a9))throw new SDKError(ErrorCode[_0x5e15c4(0x1b8)],_0x5e15c4(0x1a4)+_0x417663);}}throw new SDKError(ErrorCode[_0x5e15c4(0x1a2)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x5720ea instanceof Error?_0x5720ea[_0x5e15c4(0x19e)]:String(_0x5720ea)));}}export async function loadJSONFromOptions(_0x2dbcd3,_0x39e83a){const _0x2a1765=a82_0x21f2;if(_0x2dbcd3&&_0x39e83a)throw new SDKError(ErrorCode[_0x2a1765(0x1aa)],_0x2a1765(0x1ab));if(_0x2dbcd3)return await loadJSON(_0x2dbcd3,![]);if(_0x39e83a)return await loadJSON(_0x39e83a,!![]);return undefined;}function a82_0x1def(){const _0x554f6f=['utf-8','118146urCiXi','parse','Invalid\x20JSON\x20string:\x20','224828LiBOTx','\x27:\x20','31580btJWzy','4927248zqRlnb','PERMISSION_DENIED','message','536BmQvrf','code','339PeUApm','INTERNAL','8mBcKSS','Permission\x20denied\x20reading\x20file:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','49668CWPwRw','514760BVfaWn','17382DhIzvA','EACCES','INVALID_ARGUMENT','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','File\x20not\x20found:\x20','319JGIGKX','2574jWeMYf','55XrSkUz'];a82_0x1def=function(){return _0x554f6f;};return a82_0x1def();}
@@ -1 +1 @@
1
- (function(_0x10c970,_0x31233e){const _0x5cf37b=a79_0xb39c,_0x26a690=_0x10c970();while(!![]){try{const _0x38957f=parseInt(_0x5cf37b(0x13e))/0x1+parseInt(_0x5cf37b(0x13a))/0x2+parseInt(_0x5cf37b(0x137))/0x3*(-parseInt(_0x5cf37b(0x140))/0x4)+parseInt(_0x5cf37b(0x133))/0x5+-parseInt(_0x5cf37b(0x131))/0x6+-parseInt(_0x5cf37b(0x134))/0x7*(-parseInt(_0x5cf37b(0x13f))/0x8)+-parseInt(_0x5cf37b(0x138))/0x9;if(_0x38957f===_0x31233e)break;else _0x26a690['push'](_0x26a690['shift']());}catch(_0x162303){_0x26a690['push'](_0x26a690['shift']());}}}(a79_0x4c0a,0x5e3f8));export function canCreateAgent(_0x2b6b74,_0x53bc9f){const _0x410968=a79_0xb39c;for(const _0x4d8cd2 of _0x2b6b74[_0x410968(0x136)][_0x410968(0x13d)]){if(_0x4d8cd2[_0x410968(0x135)]&&!_0x53bc9f['has'](_0x4d8cd2[_0x410968(0x135)]))return![];}return!![];}function a79_0xb39c(_0x560e28,_0x33ec6c){const _0x4c0a83=a79_0x4c0a();return a79_0xb39c=function(_0xb39c89,_0x1e468d){_0xb39c89=_0xb39c89-0x131;let _0x59c98a=_0x4c0a83[_0xb39c89];return _0x59c98a;},a79_0xb39c(_0x560e28,_0x33ec6c);}export function remapToolIds(_0xa4a9bc,_0x3cb6de,_0x5c41a7){const _0x417e55=a79_0xb39c;return _0xa4a9bc['map'](_0x370c1c=>({..._0x370c1c,'targetKnowledgeBaseId':_0x370c1c[_0x417e55(0x132)]?_0x3cb6de[_0x417e55(0x13b)](_0x370c1c[_0x417e55(0x132)])||_0x370c1c[_0x417e55(0x132)]:undefined,'targetAgentId':_0x370c1c[_0x417e55(0x135)]?_0x5c41a7['get'](_0x370c1c[_0x417e55(0x135)])||_0x370c1c['targetAgentId']:undefined}));}export function remapVariableIds(_0x56d253,_0xba904a){const _0x1ab7fa=a79_0xb39c;return _0x56d253[_0x1ab7fa(0x13c)](_0x3d2578=>({..._0x3d2578,'targetKnowledgeBaseId':_0xba904a[_0x1ab7fa(0x13b)](_0x3d2578['targetKnowledgeBaseId'])||_0x3d2578[_0x1ab7fa(0x132)]}));}function a79_0x4c0a(){const _0x41dd35=['295951NxZtYZ','48584YtqsEw','4kihRBo','2538540dTBKWg','targetKnowledgeBaseId','837660QkTfFp','497QCRwnJ','targetAgentId','attributes','818751Adbzro','4089852csgbSh','1.0','1283618MKhtza','get','map','tools'];a79_0x4c0a=function(){return _0x41dd35;};return a79_0x4c0a();}export function isSupportedBackupVersion(_0x1d7627){const _0x1308af=a79_0xb39c;return _0x1d7627===_0x1308af(0x139);}
1
+ function a83_0x5547(){const _0x32362f=['682377vJPrpi','get','has','1655635JYAmTm','222636igFInh','1.0','13728312RtTBcA','1317124WWRRqm','2932811jhzlZN','attributes','28EPuvXk','targetAgentId','12RIeiMg','12480992HCNRBJ','targetKnowledgeBaseId','30fPrOEM'];a83_0x5547=function(){return _0x32362f;};return a83_0x5547();}(function(_0x704402,_0x2e9847){const _0x448da6=a83_0x406b,_0x1dac41=_0x704402();while(!![]){try{const _0xe16176=parseInt(_0x448da6(0x8c))/0x1+-parseInt(_0x448da6(0x99))/0x2+parseInt(_0x448da6(0x95))/0x3*(parseInt(_0x448da6(0x8f))/0x4)+-parseInt(_0x448da6(0x98))/0x5*(-parseInt(_0x448da6(0x91))/0x6)+parseInt(_0x448da6(0x8d))/0x7+parseInt(_0x448da6(0x92))/0x8+-parseInt(_0x448da6(0x9b))/0x9*(parseInt(_0x448da6(0x94))/0xa);if(_0xe16176===_0x2e9847)break;else _0x1dac41['push'](_0x1dac41['shift']());}catch(_0x5b25fa){_0x1dac41['push'](_0x1dac41['shift']());}}}(a83_0x5547,0xd2c22));export function canCreateAgent(_0x486ea6,_0x928a2){const _0x243a0f=a83_0x406b;for(const _0x46acce of _0x486ea6[_0x243a0f(0x8e)]['tools']){if(_0x46acce[_0x243a0f(0x90)]&&!_0x928a2[_0x243a0f(0x97)](_0x46acce[_0x243a0f(0x90)]))return![];}return!![];}export function remapToolIds(_0x5e826b,_0x5a9c86,_0x3fb09b){const _0x57e0b5=a83_0x406b;return _0x5e826b['map'](_0x5a8c61=>({..._0x5a8c61,'targetKnowledgeBaseId':_0x5a8c61[_0x57e0b5(0x93)]?_0x5a9c86[_0x57e0b5(0x96)](_0x5a8c61['targetKnowledgeBaseId'])||_0x5a8c61[_0x57e0b5(0x93)]:undefined,'targetAgentId':_0x5a8c61[_0x57e0b5(0x90)]?_0x3fb09b['get'](_0x5a8c61[_0x57e0b5(0x90)])||_0x5a8c61[_0x57e0b5(0x90)]:undefined}));}function a83_0x406b(_0x559a97,_0x1f8f9b){const _0x554753=a83_0x5547();return a83_0x406b=function(_0x406bfc,_0x54389d){_0x406bfc=_0x406bfc-0x8c;let _0x334448=_0x554753[_0x406bfc];return _0x334448;},a83_0x406b(_0x559a97,_0x1f8f9b);}export function remapVariableIds(_0x323575,_0x58900e){const _0x476648=a83_0x406b;return _0x323575['map'](_0x14dee5=>({..._0x14dee5,'targetKnowledgeBaseId':_0x58900e[_0x476648(0x96)](_0x14dee5[_0x476648(0x93)])||_0x14dee5[_0x476648(0x93)]}));}export function isSupportedBackupVersion(_0x4f2f7d){const _0x15af9b=a83_0x406b;return _0x4f2f7d===_0x15af9b(0x9a);}
@@ -1 +1 @@
1
- function a80_0x127d(){const _0x4356af=['toLowerCase','8wQUkZW','153030WDuPwK','3AoJkVE','28037922eebXNx','230874yzrZYG','64PfwJUT','1888385uoigQL','90910rvTpwX','465092sZtbkW','claude-4.5-haiku','claude-4.5-sonnet','1854AiIEgT','1416769EgkppL'];a80_0x127d=function(){return _0x4356af;};return a80_0x127d();}const a80_0x2cddd5=a80_0x3e45;(function(_0x294378,_0x5b11dc){const _0x2803e0=a80_0x3e45,_0x465268=_0x294378();while(!![]){try{const _0x416406=parseInt(_0x2803e0(0x1a8))/0x1+parseInt(_0x2803e0(0x1b2))/0x2*(-parseInt(_0x2803e0(0x1ac))/0x3)+-parseInt(_0x2803e0(0x1aa))/0x4*(-parseInt(_0x2803e0(0x1b0))/0x5)+-parseInt(_0x2803e0(0x1ab))/0x6+-parseInt(_0x2803e0(0x1ae))/0x7*(parseInt(_0x2803e0(0x1af))/0x8)+-parseInt(_0x2803e0(0x1b5))/0x9*(-parseInt(_0x2803e0(0x1b1))/0xa)+-parseInt(_0x2803e0(0x1ad))/0xb;if(_0x416406===_0x5b11dc)break;else _0x465268['push'](_0x465268['shift']());}catch(_0x595d8a){_0x465268['push'](_0x465268['shift']());}}}(a80_0x127d,0xedcec));const MODEL_ALIASES={'haiku':a80_0x2cddd5(0x1b3),'sonnet':a80_0x2cddd5(0x1b4)};export function extractModelAlias(_0x5c0a5d){const _0x230821=a80_0x2cddd5,_0x219bbe=_0x5c0a5d['match'](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x219bbe)return _0x219bbe[0x1][_0x230821(0x1a9)]();return _0x5c0a5d;}function a80_0x3e45(_0x1270b8,_0x476bff){const _0x127da3=a80_0x127d();return a80_0x3e45=function(_0x3e4527,_0x23ed00){_0x3e4527=_0x3e4527-0x1a8;let _0x464aaa=_0x127da3[_0x3e4527];return _0x464aaa;},a80_0x3e45(_0x1270b8,_0x476bff);}export function resolveModelAlias(_0x4ef6a6){return MODEL_ALIASES[_0x4ef6a6['toLowerCase']()]||_0x4ef6a6;}export function getModelAliases(){return{...MODEL_ALIASES};}
1
+ (function(_0x36b5b0,_0x144538){const _0x4ea875=a84_0x2d8d,_0x5b9e69=_0x36b5b0();while(!![]){try{const _0x32dc01=parseInt(_0x4ea875(0xef))/0x1+-parseInt(_0x4ea875(0xf0))/0x2+-parseInt(_0x4ea875(0xf2))/0x3+-parseInt(_0x4ea875(0xea))/0x4*(-parseInt(_0x4ea875(0xe8))/0x5)+parseInt(_0x4ea875(0xf1))/0x6*(parseInt(_0x4ea875(0xed))/0x7)+parseInt(_0x4ea875(0xeb))/0x8+parseInt(_0x4ea875(0xe9))/0x9;if(_0x32dc01===_0x144538)break;else _0x5b9e69['push'](_0x5b9e69['shift']());}catch(_0x25da64){_0x5b9e69['push'](_0x5b9e69['shift']());}}}(a84_0x49a0,0xa04fd));function a84_0x49a0(){const _0x2b044f=['884312yGZWYD','match','7HSRCRR','toLowerCase','74502YgYbWa','2502044zdKysS','2689140lIYoxp','2094450bwDhff','5lnTqtU','16093323PayAsk','737724Nvdnvi'];a84_0x49a0=function(){return _0x2b044f;};return a84_0x49a0();}function a84_0x2d8d(_0x3ffeec,_0xc1237a){const _0x49a038=a84_0x49a0();return a84_0x2d8d=function(_0x2d8d58,_0x3309c2){_0x2d8d58=_0x2d8d58-0xe8;let _0x3b8c02=_0x49a038[_0x2d8d58];return _0x3b8c02;},a84_0x2d8d(_0x3ffeec,_0xc1237a);}const MODEL_ALIASES={'haiku':'claude-4.5-haiku','sonnet':'claude-4.5-sonnet'};export function extractModelAlias(_0x4b7bc5){const _0x272568=a84_0x2d8d,_0x5dd876=_0x4b7bc5[_0x272568(0xec)](/^claude-(?:\d+-)?(?:\d+-?)?(sonnet|haiku|opus)/i);if(_0x5dd876)return _0x5dd876[0x1][_0x272568(0xee)]();return _0x4b7bc5;}export function resolveModelAlias(_0x235ede){const _0x577621=a84_0x2d8d;return MODEL_ALIASES[_0x235ede[_0x577621(0xee)]()]||_0x235ede;}export function getModelAliases(){return{...MODEL_ALIASES};}
@@ -1 +1 @@
1
- (function(_0x43602f,_0x56cc57){const _0x3332da=a81_0x3cdb,_0x5c5a6f=_0x43602f();while(!![]){try{const _0x2e2805=-parseInt(_0x3332da(0xc3))/0x1*(parseInt(_0x3332da(0xbd))/0x2)+-parseInt(_0x3332da(0xc2))/0x3+parseInt(_0x3332da(0xba))/0x4*(parseInt(_0x3332da(0xc4))/0x5)+parseInt(_0x3332da(0xc7))/0x6+parseInt(_0x3332da(0xbe))/0x7+parseInt(_0x3332da(0xb3))/0x8+-parseInt(_0x3332da(0xb5))/0x9;if(_0x2e2805===_0x56cc57)break;else _0x5c5a6f['push'](_0x5c5a6f['shift']());}catch(_0x24168a){_0x5c5a6f['push'](_0x5c5a6f['shift']());}}}(a81_0x183a,0x750f0));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x28b131){const _0x1ed180=a81_0x3cdb,_0x3da145=_0x28b131[_0x1ed180(0xc6)]();if(MODEL_FACTORS[_0x3da145])return MODEL_FACTORS[_0x3da145];if(_0x3da145['includes']('sonnet'))return MODEL_FACTORS[_0x1ed180(0xb6)];if(_0x3da145[_0x1ed180(0xbc)]('haiku'))return MODEL_FACTORS[_0x1ed180(0xc5)];if(_0x3da145[_0x1ed180(0xbc)](_0x1ed180(0xc8)))return MODEL_FACTORS[_0x1ed180(0xc8)];return MODEL_FACTORS[_0x1ed180(0xb6)];}export function getContextLimit(_0x41655c){const _0x4d74d5=a81_0x3cdb,_0x14f35b=_0x41655c[_0x4d74d5(0xc6)]();if(_0x14f35b['includes'](_0x4d74d5(0xb6)))return CONTEXT_LIMITS['sonnet'];if(_0x14f35b['includes'](_0x4d74d5(0xc5)))return CONTEXT_LIMITS['haiku'];if(_0x14f35b[_0x4d74d5(0xbc)]('opus'))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS['default'];}export function calculateChatUnit(_0x5e9443,_0x2d85f9,_0x557faf){return(_0x5e9443+_0x2d85f9)/0x1388*_0x557faf;}export function calculateCredits(_0x2a9ad0){return _0x2a9ad0/0x2904;}function a81_0x183a(){const _0x5402bf=['Haiku\x204','843081HjQJjq','302xTYlAl','74045lNxrDf','haiku','toLowerCase','4880454PcedcP','opus','5554720bmVRFn','round','9807138vaZWyV','sonnet','4.5','en-US','Sonnet\x204.5','84PiYhHO','4-5','includes','2458YOErzn','2818207MUwuVX','Opus\x204.5','toLocaleString'];a81_0x183a=function(){return _0x5402bf;};return a81_0x183a();}export function getModelDisplayName(_0x3f197b){const _0x54351f=a81_0x3cdb,_0x2af02e=_0x3f197b[_0x54351f(0xc6)]();if(_0x2af02e['includes'](_0x54351f(0xb6))){if(_0x2af02e[_0x54351f(0xbc)](_0x54351f(0xbb))||_0x2af02e['includes'](_0x54351f(0xb7)))return _0x54351f(0xb9);return'Sonnet\x204';}if(_0x2af02e[_0x54351f(0xbc)](_0x54351f(0xc5))){if(_0x2af02e['includes'](_0x54351f(0xbb))||_0x2af02e[_0x54351f(0xbc)](_0x54351f(0xb7)))return'Haiku\x204.5';return _0x54351f(0xc1);}if(_0x2af02e[_0x54351f(0xbc)](_0x54351f(0xc8))){if(_0x2af02e['includes']('4-5')||_0x2af02e[_0x54351f(0xbc)]('4.5'))return _0x54351f(0xbf);return'Opus\x204';}return'Claude';}function a81_0x3cdb(_0xa08619,_0x10c8a1){const _0x183a95=a81_0x183a();return a81_0x3cdb=function(_0x3cdba0,_0x204d20){_0x3cdba0=_0x3cdba0-0xb3;let _0x39daf1=_0x183a95[_0x3cdba0];return _0x39daf1;},a81_0x3cdb(_0xa08619,_0x10c8a1);}export function formatTokenCount(_0x20d6b9){const _0x52df55=a81_0x3cdb;return _0x20d6b9[_0x52df55(0xc0)](_0x52df55(0xb8));}export function calculateContextPercentage(_0x4f1adb,_0x2d176b){const _0x451979=a81_0x3cdb,_0x38c6dc=getContextLimit(_0x2d176b);return Math[_0x451979(0xb4)](_0x4f1adb/_0x38c6dc*0x64);}
1
+ (function(_0x3314bb,_0x32c4ea){const _0x36b119=a85_0x454a,_0x3d47fe=_0x3314bb();while(!![]){try{const _0x4f7dd5=-parseInt(_0x36b119(0x16c))/0x1*(parseInt(_0x36b119(0x167))/0x2)+-parseInt(_0x36b119(0x169))/0x3+parseInt(_0x36b119(0x178))/0x4+-parseInt(_0x36b119(0x165))/0x5*(parseInt(_0x36b119(0x163))/0x6)+-parseInt(_0x36b119(0x172))/0x7*(parseInt(_0x36b119(0x16d))/0x8)+parseInt(_0x36b119(0x173))/0x9*(parseInt(_0x36b119(0x174))/0xa)+parseInt(_0x36b119(0x177))/0xb;if(_0x4f7dd5===_0x32c4ea)break;else _0x3d47fe['push'](_0x3d47fe['shift']());}catch(_0xe830a2){_0x3d47fe['push'](_0x3d47fe['shift']());}}}(a85_0x235a,0x1a9a4));export const MODEL_FACTORS={'sonnet':0xa,'claude-4.5-sonnet':0xa,'claude-sonnet-4':0xa,'haiku':3.4,'claude-4.5-haiku':3.4,'claude-haiku-4':3.4,'opus':0xf,'claude-4-opus':0xf,'claude-opus-4':0xf};function a85_0x454a(_0x10f310,_0x3d2995){const _0x235a11=a85_0x235a();return a85_0x454a=function(_0x454aae,_0x413094){_0x454aae=_0x454aae-0x160;let _0x4ccff0=_0x235a11[_0x454aae];return _0x4ccff0;},a85_0x454a(_0x10f310,_0x3d2995);}export const CONTEXT_LIMITS={'sonnet':0x30d40,'haiku':0x30d40,'opus':0x30d40,'default':0x30d40};export function getModelFactor(_0x5702af){const _0x568892=a85_0x454a,_0x35774b=_0x5702af[_0x568892(0x16f)]();if(MODEL_FACTORS[_0x35774b])return MODEL_FACTORS[_0x35774b];if(_0x35774b['includes']('sonnet'))return MODEL_FACTORS[_0x568892(0x164)];if(_0x35774b[_0x568892(0x175)]('haiku'))return MODEL_FACTORS[_0x568892(0x16a)];if(_0x35774b[_0x568892(0x175)]('opus'))return MODEL_FACTORS['opus'];return MODEL_FACTORS['sonnet'];}export function getContextLimit(_0x4a6944){const _0x3aabff=a85_0x454a,_0x540a29=_0x4a6944[_0x3aabff(0x16f)]();if(_0x540a29[_0x3aabff(0x175)](_0x3aabff(0x164)))return CONTEXT_LIMITS['sonnet'];if(_0x540a29[_0x3aabff(0x175)](_0x3aabff(0x16a)))return CONTEXT_LIMITS[_0x3aabff(0x16a)];if(_0x540a29['includes']('opus'))return CONTEXT_LIMITS['opus'];return CONTEXT_LIMITS[_0x3aabff(0x162)];}export function calculateChatUnit(_0x22d711,_0x247ca6,_0x34b833){return(_0x22d711+_0x247ca6)/0x1388*_0x34b833;}export function calculateCredits(_0x209789){return _0x209789/0x2904;}export function getModelDisplayName(_0x413f79){const _0x2c4217=a85_0x454a,_0x132e52=_0x413f79[_0x2c4217(0x16f)]();if(_0x132e52['includes'](_0x2c4217(0x164))){if(_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x176))||_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x16b)))return _0x2c4217(0x161);return _0x2c4217(0x171);}if(_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x16a))){if(_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x176))||_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x16b)))return _0x2c4217(0x168);return'Haiku\x204';}if(_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x16e))){if(_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x176))||_0x132e52[_0x2c4217(0x175)](_0x2c4217(0x16b)))return _0x2c4217(0x170);return _0x2c4217(0x160);}return'Claude';}function a85_0x235a(){const _0x495241=['2670zmwVKU','sonnet','1110pzPVrg','en-US','116ZbKfiK','Haiku\x204.5','276003bhxqIi','haiku','4.5','1933nDLIxy','1559984fSCaRr','opus','toLowerCase','Opus\x204.5','Sonnet\x204','7pJMVSV','39357cBLyGt','260CnrOUr','includes','4-5','5147780fnSSaq','100756VlaWLn','toLocaleString','round','Opus\x204','Sonnet\x204.5','default'];a85_0x235a=function(){return _0x495241;};return a85_0x235a();}export function formatTokenCount(_0x235ce3){const _0x327fad=a85_0x454a;return _0x235ce3[_0x327fad(0x179)](_0x327fad(0x166));}export function calculateContextPercentage(_0x3e0fc4,_0x5aeef4){const _0x513d9e=a85_0x454a,_0x450f97=getContextLimit(_0x5aeef4);return Math[_0x513d9e(0x17a)](_0x3e0fc4/_0x450f97*0x64);}
@@ -1 +1 @@
1
- (function(_0x3e07c0,_0x268a1c){const _0x48efbb=a82_0x27e8,_0x3838a1=_0x3e07c0();while(!![]){try{const _0x5b13a0=-parseInt(_0x48efbb(0x168))/0x1*(-parseInt(_0x48efbb(0x163))/0x2)+parseInt(_0x48efbb(0x162))/0x3*(-parseInt(_0x48efbb(0x15b))/0x4)+parseInt(_0x48efbb(0x160))/0x5*(parseInt(_0x48efbb(0x15c))/0x6)+-parseInt(_0x48efbb(0x167))/0x7+-parseInt(_0x48efbb(0x169))/0x8+-parseInt(_0x48efbb(0x165))/0x9+parseInt(_0x48efbb(0x164))/0xa;if(_0x5b13a0===_0x268a1c)break;else _0x3838a1['push'](_0x3838a1['shift']());}catch(_0x27fb28){_0x3838a1['push'](_0x3838a1['shift']());}}}(a82_0x5f54,0xc0a49));function a82_0x27e8(_0x273206,_0x5f2569){const _0x5f543f=a82_0x5f54();return a82_0x27e8=function(_0x27e8bb,_0x292fad){_0x27e8bb=_0x27e8bb-0x15b;let _0x2a72c1=_0x5f543f[_0x27e8bb];return _0x2a72c1;},a82_0x27e8(_0x273206,_0x5f2569);}function a82_0x5f54(){const _0xb2a529=['.\x20Must\x20be\x20a\x20positive\x20integer.','1677lNceWD','2ArzLzU','46901070GRkpyE','4625766JNVuZL','isInteger','7205625MwLptK','131866pbbOYr','9625664XAkCgu','Invalid\x20limit\x20value:\x20','9428mCuLxR','18ljrqhR','.\x20Must\x20be\x20a\x20positive\x20number.','number','.\x20Must\x20be\x20a\x20number.','52020NNCYZr'];a82_0x5f54=function(){return _0xb2a529;};return a82_0x5f54();}export function validateLimitOption(_0x2d03a4){const _0x56f22b=a82_0x27e8;if(!Number[_0x56f22b(0x166)](_0x2d03a4))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2d03a4+'.\x20Must\x20be\x20an\x20integer.'};if(_0x2d03a4<=0x0)return{'isValid':![],'error':_0x56f22b(0x16a)+_0x2d03a4+_0x56f22b(0x161)};return{'isValid':!![],'value':_0x2d03a4};}export function validateTimeoutOption(_0x4d1a49,_0x241ffc=0x1e){const _0x3fdc8e=a82_0x27e8;if(_0x4d1a49===undefined)return{'isValid':!![],'value':_0x241ffc};const _0x19641b=typeof _0x4d1a49===_0x3fdc8e(0x15e)?_0x4d1a49:parseFloat(_0x4d1a49);if(isNaN(_0x19641b))return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x4d1a49+_0x3fdc8e(0x15f)};if(_0x19641b<=0x0)return{'isValid':![],'error':'Invalid\x20timeout\x20value:\x20'+_0x19641b+_0x3fdc8e(0x15d)};return{'isValid':!![],'value':_0x19641b};}
1
+ function a86_0x2049(_0x2ac509,_0x3e8ba4){const _0x55edfe=a86_0x55ed();return a86_0x2049=function(_0x2049cc,_0x10338){_0x2049cc=_0x2049cc-0x77;let _0x2cb039=_0x55edfe[_0x2049cc];return _0x2cb039;},a86_0x2049(_0x2ac509,_0x3e8ba4);}function a86_0x55ed(){const _0x396f30=['217772kYJkZT','612065QnWYKX','isInteger','number','1KBAGUQ','.\x20Must\x20be\x20an\x20integer.','.\x20Must\x20be\x20a\x20number.','.\x20Must\x20be\x20a\x20positive\x20number.','445233zwRRhH','2123640kkQflA','1091986idbOUz','Invalid\x20timeout\x20value:\x20','883688ecUNIX','12RFkcsd','536996udmnQb'];a86_0x55ed=function(){return _0x396f30;};return a86_0x55ed();}(function(_0x2d296a,_0x5b4f89){const _0x3f9ec1=a86_0x2049,_0x19288=_0x2d296a();while(!![]){try{const _0x1f1452=parseInt(_0x3f9ec1(0x84))/0x1*(parseInt(_0x3f9ec1(0x80))/0x2)+-parseInt(_0x3f9ec1(0x79))/0x3+parseInt(_0x3f9ec1(0x7f))/0x4+parseInt(_0x3f9ec1(0x81))/0x5+parseInt(_0x3f9ec1(0x7e))/0x6*(parseInt(_0x3f9ec1(0x7b))/0x7)+-parseInt(_0x3f9ec1(0x7d))/0x8+-parseInt(_0x3f9ec1(0x7a))/0x9;if(_0x1f1452===_0x5b4f89)break;else _0x19288['push'](_0x19288['shift']());}catch(_0xa6d473){_0x19288['push'](_0x19288['shift']());}}}(a86_0x55ed,0x2c9b8));export function validateLimitOption(_0x2073e2){const _0x34bdad=a86_0x2049;if(!Number[_0x34bdad(0x82)](_0x2073e2))return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2073e2+_0x34bdad(0x85)};if(_0x2073e2<=0x0)return{'isValid':![],'error':'Invalid\x20limit\x20value:\x20'+_0x2073e2+'.\x20Must\x20be\x20a\x20positive\x20integer.'};return{'isValid':!![],'value':_0x2073e2};}export function validateTimeoutOption(_0x37fc29,_0x379b39=0x1e){const _0x528ee2=a86_0x2049;if(_0x37fc29===undefined)return{'isValid':!![],'value':_0x379b39};const _0x4f22ff=typeof _0x37fc29===_0x528ee2(0x83)?_0x37fc29:parseFloat(_0x37fc29);if(isNaN(_0x4f22ff))return{'isValid':![],'error':_0x528ee2(0x7c)+_0x37fc29+_0x528ee2(0x77)};if(_0x4f22ff<=0x0)return{'isValid':![],'error':_0x528ee2(0x7c)+_0x4f22ff+_0x528ee2(0x78)};return{'isValid':!![],'value':_0x4f22ff};}
@@ -1 +1 @@
1
- (function(_0x547519,_0x6fb02b){const _0x55dc36=a83_0x372a,_0x2218b9=_0x547519();while(!![]){try{const _0x32bcb7=parseInt(_0x55dc36(0x93))/0x1+-parseInt(_0x55dc36(0x9e))/0x2+-parseInt(_0x55dc36(0x96))/0x3+parseInt(_0x55dc36(0x91))/0x4*(parseInt(_0x55dc36(0x92))/0x5)+parseInt(_0x55dc36(0x98))/0x6*(-parseInt(_0x55dc36(0x95))/0x7)+-parseInt(_0x55dc36(0x97))/0x8*(parseInt(_0x55dc36(0x9a))/0x9)+parseInt(_0x55dc36(0x9d))/0xa;if(_0x32bcb7===_0x6fb02b)break;else _0x2218b9['push'](_0x2218b9['shift']());}catch(_0x485dfd){_0x2218b9['push'](_0x2218b9['shift']());}}}(a83_0x45d6,0x7e1bc));import{createServer}from'node:net';function a83_0x372a(_0x5270f4,_0x50b621){const _0x45d6b2=a83_0x45d6();return a83_0x372a=function(_0x372abb,_0x51b715){_0x372abb=_0x372abb-0x8d;let _0x29abc6=_0x45d6b2[_0x372abb];return _0x29abc6;},a83_0x372a(_0x5270f4,_0x50b621);}function a83_0x45d6(){const _0x2c213a=['1044vlHgku','No\x20available\x20port\x20found\x20between\x20','206892FbAEla','once','listening','14589990HEBrdM','1481628aSCMRj','listen','EADDRINUSE','code','\x20and\x20','8jdOklm','1402810pCZMes','821296UgKvsN','0.0.0.0','20734vkCYcS','378507hxrOMj','328XRZOOx'];a83_0x45d6=function(){return _0x2c213a;};return a83_0x45d6();}export async function isPortAvailable(_0x1a8c13){return new Promise(_0x5b7376=>{const _0x1a136c=a83_0x372a,_0x17cc0a=createServer();_0x17cc0a[_0x1a136c(0x9b)]('error',_0x50b210=>{const _0x43a794=_0x1a136c;_0x50b210[_0x43a794(0x8f)]===_0x43a794(0x8e)?_0x5b7376(![]):_0x5b7376(![]);}),_0x17cc0a[_0x1a136c(0x9b)](_0x1a136c(0x9c),()=>{_0x17cc0a['close'](),_0x5b7376(!![]);}),_0x17cc0a[_0x1a136c(0x8d)](_0x1a8c13,_0x1a136c(0x94));});}export async function findAvailablePort(_0x186719=0xfa0,_0x4da01b=0x64){const _0x134b28=a83_0x372a;for(let _0x163333=0x0;_0x163333<_0x4da01b;_0x163333++){const _0x4474ec=_0x186719+_0x163333;if(await isPortAvailable(_0x4474ec))return _0x4474ec;}throw new Error(_0x134b28(0x99)+_0x186719+_0x134b28(0x90)+(_0x186719+_0x4da01b-0x1));}
1
+ (function(_0x3b94a4,_0x2f68b7){const _0x58d634=a87_0x3b7f,_0x5afc1f=_0x3b94a4();while(!![]){try{const _0x20b826=-parseInt(_0x58d634(0x1af))/0x1*(-parseInt(_0x58d634(0x1ae))/0x2)+parseInt(_0x58d634(0x1b7))/0x3*(-parseInt(_0x58d634(0x1b3))/0x4)+-parseInt(_0x58d634(0x1b1))/0x5+-parseInt(_0x58d634(0x1bd))/0x6*(-parseInt(_0x58d634(0x1b9))/0x7)+-parseInt(_0x58d634(0x1b5))/0x8*(parseInt(_0x58d634(0x1ab))/0x9)+-parseInt(_0x58d634(0x1b4))/0xa*(-parseInt(_0x58d634(0x1bc))/0xb)+parseInt(_0x58d634(0x1ac))/0xc*(parseInt(_0x58d634(0x1b2))/0xd);if(_0x20b826===_0x2f68b7)break;else _0x5afc1f['push'](_0x5afc1f['shift']());}catch(_0xe94a97){_0x5afc1f['push'](_0x5afc1f['shift']());}}}(a87_0x12f4,0xc7c77));function a87_0x12f4(){const _0x2592c3=['error','463263KBQIHM','code','16653zmvfSR','EADDRINUSE','listening','6008167YvJpiB','2130TNsPPD','close','0.0.0.0','4770lLBdjG','60AitBil','No\x20available\x20port\x20found\x20between\x20','7290OxcFrZ','291xucBDd','once','2707880bJEnGh','462683YhfpTH','32GNdVTM','20CODhzz','8760PUtBET'];a87_0x12f4=function(){return _0x2592c3;};return a87_0x12f4();}import{createServer}from'node:net';function a87_0x3b7f(_0x3c0d1b,_0x444243){const _0x12f4fe=a87_0x12f4();return a87_0x3b7f=function(_0x3b7f3a,_0x3904f4){_0x3b7f3a=_0x3b7f3a-0x1aa;let _0x58f258=_0x12f4fe[_0x3b7f3a];return _0x58f258;},a87_0x3b7f(_0x3c0d1b,_0x444243);}export async function isPortAvailable(_0x48b039){return new Promise(_0x106355=>{const _0x579f2d=a87_0x3b7f,_0xfbd8d8=createServer();_0xfbd8d8[_0x579f2d(0x1b0)](_0x579f2d(0x1b6),_0x3dbed8=>{const _0x55e489=_0x579f2d;_0x3dbed8[_0x55e489(0x1b8)]===_0x55e489(0x1ba)?_0x106355(![]):_0x106355(![]);}),_0xfbd8d8[_0x579f2d(0x1b0)](_0x579f2d(0x1bb),()=>{const _0x19b864=_0x579f2d;_0xfbd8d8[_0x19b864(0x1be)](),_0x106355(!![]);}),_0xfbd8d8['listen'](_0x48b039,_0x579f2d(0x1aa));});}export async function findAvailablePort(_0x2c9391=0xfa0,_0xa91d16=0x64){const _0x164197=a87_0x3b7f;for(let _0x326b84=0x0;_0x326b84<_0xa91d16;_0x326b84++){const _0x20f992=_0x2c9391+_0x326b84;if(await isPortAvailable(_0x20f992))return _0x20f992;}throw new Error(_0x164197(0x1ad)+_0x2c9391+'\x20and\x20'+(_0x2c9391+_0xa91d16-0x1));}
@@ -1 +1 @@
1
- const a84_0x3a610f=a84_0x2647;function a84_0x2647(_0x593ba2,_0x594e9e){const _0x2c9691=a84_0x2c96();return a84_0x2647=function(_0x2647cc,_0x4da3ea){_0x2647cc=_0x2647cc-0x16b;let _0x1b44f9=_0x2c9691[_0x2647cc];return _0x1b44f9;},a84_0x2647(_0x593ba2,_0x594e9e);}(function(_0xb85aab,_0x4701dd){const _0x4259d0=a84_0x2647,_0x48a4bb=_0xb85aab();while(!![]){try{const _0x37e23d=parseInt(_0x4259d0(0x176))/0x1+-parseInt(_0x4259d0(0x18d))/0x2*(-parseInt(_0x4259d0(0x16c))/0x3)+-parseInt(_0x4259d0(0x179))/0x4+parseInt(_0x4259d0(0x17f))/0x5+-parseInt(_0x4259d0(0x188))/0x6*(-parseInt(_0x4259d0(0x198))/0x7)+-parseInt(_0x4259d0(0x195))/0x8+parseInt(_0x4259d0(0x192))/0x9*(-parseInt(_0x4259d0(0x181))/0xa);if(_0x37e23d===_0x4701dd)break;else _0x48a4bb['push'](_0x48a4bb['shift']());}catch(_0x539131){_0x48a4bb['push'](_0x48a4bb['shift']());}}}(a84_0x2c96,0xbc0a2));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a84_0x3a610f(0x174),'zsh','sh',a84_0x3a610f(0x18e),a84_0x3a610f(0x184),a84_0x3a610f(0x170),a84_0x3a610f(0x197),'dash','pwsh',a84_0x3a610f(0x194),'nu','ion',a84_0x3a610f(0x17a),a84_0x3a610f(0x185)]),EPHEMERAL_SHELL_SPAWNERS=new Set(['claude',a84_0x3a610f(0x16e),a84_0x3a610f(0x178)]);function getProcessInfoWindows(_0x8c00a0){const _0xd20f77=a84_0x3a610f;try{const _0x2a4192=execSync(_0xd20f77(0x187)+_0x8c00a0+_0xd20f77(0x182),{'encoding':_0xd20f77(0x18b),'windowsHide':!![]})[_0xd20f77(0x175)](),_0x1673a9=_0x2a4192[_0xd20f77(0x17b)]('\x0a')[_0xd20f77(0x183)](_0x2290e7=>_0x2290e7['trim']());if(_0x1673a9[_0xd20f77(0x172)]<0x2)return null;const _0x1cbdda=_0x1673a9[_0x1673a9[_0xd20f77(0x172)]-0x1][_0xd20f77(0x17b)](',');if(_0x1cbdda[_0xd20f77(0x172)]<0x3)return null;const _0x18a3fe=_0x1cbdda[0x1]?.[_0xd20f77(0x175)]()||'',_0x35c432=parseInt(_0x1cbdda[0x2]?.[_0xd20f77(0x175)]()||'0',0xa);if(isNaN(_0x35c432)||!_0x18a3fe)return null;return{'pid':_0x8c00a0,'ppid':_0x35c432,'comm':_0x18a3fe[_0xd20f77(0x196)](/\.exe$/i,'')};}catch(_0xff2225){return process[_0xd20f77(0x17e)]['DEBUG']&&console['error'](_0xd20f77(0x173)+_0x8c00a0+_0xd20f77(0x17d),_0xff2225),null;}}function getProcessInfoPosix(_0x2cfaef){const _0x3b4f6c=a84_0x3a610f;try{const _0x159d8b=execSync(_0x3b4f6c(0x190)+_0x2cfaef+'\x20-o\x20ppid=,comm=',{'encoding':_0x3b4f6c(0x18b)})[_0x3b4f6c(0x175)](),[_0x286b83,..._0x4f3a95]=_0x159d8b['split'](/\s+/),_0x31dbc8=parseInt(_0x286b83,0xa),_0x1d5766=_0x4f3a95['join']('\x20');if(isNaN(_0x31dbc8))return null;return{'pid':_0x2cfaef,'ppid':_0x31dbc8,'comm':_0x1d5766};}catch(_0x4538ca){return process[_0x3b4f6c(0x17e)][_0x3b4f6c(0x16f)]&&console[_0x3b4f6c(0x180)](_0x3b4f6c(0x173)+_0x2cfaef+_0x3b4f6c(0x18a),_0x4538ca),null;}}function getProcessInfo(_0x1b19bb){const _0x3c125c=a84_0x3a610f;if(process[_0x3c125c(0x16b)]===_0x3c125c(0x177))return getProcessInfoWindows(_0x1b19bb);return getProcessInfoPosix(_0x1b19bb);}function getBasename(_0x36d6a5){const _0x2eeaef=a84_0x3a610f;return _0x36d6a5[_0x2eeaef(0x196)](/^-/,'')[_0x2eeaef(0x17b)]('/')[_0x2eeaef(0x171)]()?.[_0x2eeaef(0x18f)]()||'';}function isShell(_0x2f93e1){return SHELL_NAMES['has'](getBasename(_0x2f93e1));}function a84_0x2c96(){const _0x2ef2d4=['\x20on\x20POSIX:','utf-8','Found\x20ephemeral\x20shell\x20','27572ldSSsn','fish','toLowerCase','ps\x20-p\x20','kill','2895489oqASMG',')\x20spawned\x20by\x20','powershell','4513704Gklcyq','replace','csh','2982203FauXic','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','platform','291rgDZkN','ppid','code','DEBUG','tcsh','pop','length','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','bash','trim','657823RwMjAA','win32','cursor','3216824ukrBpb','elvish','split','has','\x20on\x20Windows:','env','2370410YnfQyZ','error','50UjOFjg','\x20get\x20ParentProcessId,Name\x20/format:csv','filter','ksh','xonsh','comm','wmic\x20process\x20where\x20ProcessId=','18CjKpNB','pid'];a84_0x2c96=function(){return _0x2ef2d4;};return a84_0x2c96();}function isEphemeralShellSpawner(_0x460654){const _0x3a06ae=a84_0x3a610f;return EPHEMERAL_SHELL_SPAWNERS[_0x3a06ae(0x17c)](getBasename(_0x460654));}let cachedShellPID;function findShellPID(){const _0x1bfc03=a84_0x3a610f;let _0x323ea3=process[_0x1bfc03(0x16d)];const _0x3b25c4=0xa;let _0x29220e=0x0;while(_0x29220e<_0x3b25c4){const _0x49fe97=getProcessInfo(_0x323ea3);if(!_0x49fe97){process['env'][_0x1bfc03(0x16f)]&&console[_0x1bfc03(0x180)](_0x1bfc03(0x199)+_0x323ea3+',\x20using\x20fallback');break;}if(isShell(_0x49fe97[_0x1bfc03(0x186)])){const _0x455cfd=getProcessInfo(_0x49fe97['ppid']);if(_0x455cfd&&isEphemeralShellSpawner(_0x455cfd[_0x1bfc03(0x186)])){process[_0x1bfc03(0x17e)][_0x1bfc03(0x16f)]&&console[_0x1bfc03(0x180)](_0x1bfc03(0x18c)+_0x49fe97[_0x1bfc03(0x189)]+'\x20('+_0x49fe97['comm']+_0x1bfc03(0x193)+_0x455cfd[_0x1bfc03(0x186)]+',\x20continuing\x20up');_0x323ea3=_0x49fe97[_0x1bfc03(0x16d)],_0x29220e++;continue;}return _0x49fe97[_0x1bfc03(0x189)];}if(_0x49fe97[_0x1bfc03(0x16d)]===0x0||_0x49fe97[_0x1bfc03(0x16d)]===0x1){if(isShell(_0x49fe97['comm']))return _0x49fe97[_0x1bfc03(0x189)];break;}_0x323ea3=_0x49fe97['ppid'],_0x29220e++;}return process[_0x1bfc03(0x17e)][_0x1bfc03(0x16f)]&&console['error']('No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid'),process[_0x1bfc03(0x16d)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x235c09){const _0x115827=a84_0x3a610f;try{return process[_0x115827(0x191)](_0x235c09,0x0),!![];}catch{return![];}}
1
+ const a88_0x34c212=a88_0x3e88;(function(_0x448377,_0x4a9c45){const _0x17bc47=a88_0x3e88,_0x361ea1=_0x448377();while(!![]){try{const _0x39d7e9=-parseInt(_0x17bc47(0xd9))/0x1+-parseInt(_0x17bc47(0xda))/0x2+parseInt(_0x17bc47(0xe1))/0x3*(-parseInt(_0x17bc47(0xd6))/0x4)+-parseInt(_0x17bc47(0xfa))/0x5+parseInt(_0x17bc47(0xe5))/0x6+-parseInt(_0x17bc47(0xeb))/0x7+parseInt(_0x17bc47(0x103))/0x8*(parseInt(_0x17bc47(0xdf))/0x9);if(_0x39d7e9===_0x4a9c45)break;else _0x361ea1['push'](_0x361ea1['shift']());}catch(_0x2a4738){_0x361ea1['push'](_0x361ea1['shift']());}}}(a88_0x5dad,0x51e9b));import{execSync}from'node:child_process';const SHELL_NAMES=new Set([a88_0x34c212(0xdb),a88_0x34c212(0xe6),'sh',a88_0x34c212(0xe2),a88_0x34c212(0xdd),'tcsh',a88_0x34c212(0xf0),a88_0x34c212(0xd7),'pwsh',a88_0x34c212(0xf5),'nu',a88_0x34c212(0xfd),a88_0x34c212(0xf6),a88_0x34c212(0x102)]),EPHEMERAL_SHELL_SPAWNERS=new Set([a88_0x34c212(0xd4),'code',a88_0x34c212(0xe9)]);function getProcessInfoWindows(_0x2016ce){const _0x30429a=a88_0x34c212;try{const _0x1d10f0=execSync('wmic\x20process\x20where\x20ProcessId='+_0x2016ce+_0x30429a(0xf8),{'encoding':'utf-8','windowsHide':!![]})[_0x30429a(0x105)](),_0x4d6cc3=_0x1d10f0[_0x30429a(0xf9)]('\x0a')[_0x30429a(0xe7)](_0x52e585=>_0x52e585[_0x30429a(0x105)]());if(_0x4d6cc3[_0x30429a(0x101)]<0x2)return null;const _0x2fc8c7=_0x4d6cc3[_0x4d6cc3[_0x30429a(0x101)]-0x1]['split'](',');if(_0x2fc8c7[_0x30429a(0x101)]<0x3)return null;const _0x47d978=_0x2fc8c7[0x1]?.['trim']()||'',_0x1b0f43=parseInt(_0x2fc8c7[0x2]?.[_0x30429a(0x105)]()||'0',0xa);if(isNaN(_0x1b0f43)||!_0x47d978)return null;return{'pid':_0x2016ce,'ppid':_0x1b0f43,'comm':_0x47d978['replace'](/\.exe$/i,'')};}catch(_0x248549){return process[_0x30429a(0xe8)][_0x30429a(0x100)]&&console[_0x30429a(0xe0)](_0x30429a(0xe4)+_0x2016ce+_0x30429a(0xec),_0x248549),null;}}function a88_0x3e88(_0x12f6c4,_0x5a01d7){const _0x5dad9f=a88_0x5dad();return a88_0x3e88=function(_0x3e88ce,_0x1c6c8a){_0x3e88ce=_0x3e88ce-0xd4;let _0x4484b8=_0x5dad9f[_0x3e88ce];return _0x4484b8;},a88_0x3e88(_0x12f6c4,_0x5a01d7);}function a88_0x5dad(){const _0x110597=['464976HfQCEI','bash','Could\x20not\x20get\x20process\x20info\x20for\x20PID\x20','ksh','\x20-o\x20ppid=,comm=','45801PVJHXD','error','48uSLAXM','fish','pop','Failed\x20to\x20get\x20process\x20info\x20for\x20PID\x20','397104wHdDUu','zsh','filter','env','cursor','No\x20shell\x20found\x20in\x20process\x20tree,\x20falling\x20back\x20to\x20process.ppid','4149593nixLnR','\x20on\x20Windows:','win32','ppid','kill','csh','has','toLowerCase',',\x20using\x20fallback','comm','powershell','elvish','Found\x20ephemeral\x20shell\x20','\x20get\x20ParentProcessId,Name\x20/format:csv','split','899400zmSGAH','\x20on\x20POSIX:',',\x20continuing\x20up','ion','pid','join','DEBUG','length','xonsh','3176pbomIm','utf-8','trim','claude','platform','57176eTxqmj','dash','ps\x20-p\x20','517131mhakZJ'];a88_0x5dad=function(){return _0x110597;};return a88_0x5dad();}function getProcessInfoPosix(_0x51135d){const _0x694a74=a88_0x34c212;try{const _0x54b073=execSync(_0x694a74(0xd8)+_0x51135d+_0x694a74(0xde),{'encoding':_0x694a74(0x104)})[_0x694a74(0x105)](),[_0x57a1d9,..._0x1d8950]=_0x54b073[_0x694a74(0xf9)](/\s+/),_0x8a5d02=parseInt(_0x57a1d9,0xa),_0x3147c4=_0x1d8950[_0x694a74(0xff)]('\x20');if(isNaN(_0x8a5d02))return null;return{'pid':_0x51135d,'ppid':_0x8a5d02,'comm':_0x3147c4};}catch(_0x13284b){return process[_0x694a74(0xe8)][_0x694a74(0x100)]&&console[_0x694a74(0xe0)](_0x694a74(0xe4)+_0x51135d+_0x694a74(0xfb),_0x13284b),null;}}function getProcessInfo(_0x8571b5){const _0xf37bc9=a88_0x34c212;if(process[_0xf37bc9(0xd5)]===_0xf37bc9(0xed))return getProcessInfoWindows(_0x8571b5);return getProcessInfoPosix(_0x8571b5);}function getBasename(_0x35e11b){const _0x24568f=a88_0x34c212;return _0x35e11b['replace'](/^-/,'')[_0x24568f(0xf9)]('/')[_0x24568f(0xe3)]()?.[_0x24568f(0xf2)]()||'';}function isShell(_0x545713){const _0x10128f=a88_0x34c212;return SHELL_NAMES[_0x10128f(0xf1)](getBasename(_0x545713));}function isEphemeralShellSpawner(_0x513353){const _0x3d8de8=a88_0x34c212;return EPHEMERAL_SHELL_SPAWNERS[_0x3d8de8(0xf1)](getBasename(_0x513353));}let cachedShellPID;function findShellPID(){const _0x428baa=a88_0x34c212;let _0x16f6a9=process[_0x428baa(0xee)];const _0x1f8786=0xa;let _0x19daf6=0x0;while(_0x19daf6<_0x1f8786){const _0x51b58c=getProcessInfo(_0x16f6a9);if(!_0x51b58c){process[_0x428baa(0xe8)]['DEBUG']&&console[_0x428baa(0xe0)](_0x428baa(0xdc)+_0x16f6a9+_0x428baa(0xf3));break;}if(isShell(_0x51b58c[_0x428baa(0xf4)])){const _0x2ba107=getProcessInfo(_0x51b58c[_0x428baa(0xee)]);if(_0x2ba107&&isEphemeralShellSpawner(_0x2ba107[_0x428baa(0xf4)])){process[_0x428baa(0xe8)]['DEBUG']&&console[_0x428baa(0xe0)](_0x428baa(0xf7)+_0x51b58c['pid']+'\x20('+_0x51b58c[_0x428baa(0xf4)]+')\x20spawned\x20by\x20'+_0x2ba107['comm']+_0x428baa(0xfc));_0x16f6a9=_0x51b58c[_0x428baa(0xee)],_0x19daf6++;continue;}return _0x51b58c[_0x428baa(0xfe)];}if(_0x51b58c['ppid']===0x0||_0x51b58c[_0x428baa(0xee)]===0x1){if(isShell(_0x51b58c[_0x428baa(0xf4)]))return _0x51b58c['pid'];break;}_0x16f6a9=_0x51b58c['ppid'],_0x19daf6++;}return process[_0x428baa(0xe8)][_0x428baa(0x100)]&&console[_0x428baa(0xe0)](_0x428baa(0xea)),process[_0x428baa(0xee)];}export function getPPID(){return cachedShellPID===undefined&&(cachedShellPID=findShellPID()),cachedShellPID;}export function clearPPIDCache(){cachedShellPID=undefined;}export function isProcessRunning(_0x1464f0){const _0x255837=a88_0x34c212;try{return process[_0x255837(0xef)](_0x1464f0,0x0),!![];}catch{return![];}}
@@ -1 +1 @@
1
- (function(_0x44af13,_0x58c66b){const _0x3a212f=a85_0x285b,_0xe11e35=_0x44af13();while(!![]){try{const _0x84ff64=parseInt(_0x3a212f(0x17a))/0x1*(-parseInt(_0x3a212f(0x17f))/0x2)+-parseInt(_0x3a212f(0x175))/0x3+-parseInt(_0x3a212f(0x183))/0x4+-parseInt(_0x3a212f(0x178))/0x5+parseInt(_0x3a212f(0x17d))/0x6*(-parseInt(_0x3a212f(0x173))/0x7)+parseInt(_0x3a212f(0x177))/0x8*(parseInt(_0x3a212f(0x174))/0x9)+parseInt(_0x3a212f(0x179))/0xa;if(_0x84ff64===_0x58c66b)break;else _0xe11e35['push'](_0xe11e35['shift']());}catch(_0x3ecfcf){_0xe11e35['push'](_0xe11e35['shift']());}}}(a85_0x4760,0xca995));function a85_0x4760(){const _0x36696b=['347706UPVVgK','1348833lyjfkl','stdin','48cayJhB','7284505bJdwYO','54042750XpwjoW','2kyGPVl','toLowerCase','stdout','8071632pSsDtt','\x20(y/N):\x20','1511544TRlPPm','close','createInterface','yes','171624lWigJb','7qnuVMS'];a85_0x4760=function(){return _0x36696b;};return a85_0x4760();}function a85_0x285b(_0x4cf945,_0x52b94e){const _0x47608f=a85_0x4760();return a85_0x285b=function(_0x285b47,_0x29e941){_0x285b47=_0x285b47-0x173;let _0x5596e8=_0x47608f[_0x285b47];return _0x5596e8;},a85_0x285b(_0x4cf945,_0x52b94e);}import*as a85_0x45a26e from'readline';export async function confirm(_0x17d8f8){const _0x45afb3=a85_0x285b,_0x124c45=a85_0x45a26e[_0x45afb3(0x181)]({'input':process[_0x45afb3(0x176)],'output':process[_0x45afb3(0x17c)]});return new Promise(_0x201b14=>{const _0x5d1f1a=_0x45afb3;_0x124c45['question'](_0x17d8f8+_0x5d1f1a(0x17e),_0x566ddb=>{const _0x171ac8=_0x5d1f1a;_0x124c45[_0x171ac8(0x180)](),_0x201b14(_0x566ddb[_0x171ac8(0x17b)]()==='y'||_0x566ddb[_0x171ac8(0x17b)]()===_0x171ac8(0x182));});});}
1
+ (function(_0x5860c6,_0x23eca3){const _0x26d103=a89_0x565f,_0x3c2219=_0x5860c6();while(!![]){try{const _0x336afd=-parseInt(_0x26d103(0x9e))/0x1*(-parseInt(_0x26d103(0x96))/0x2)+parseInt(_0x26d103(0x9b))/0x3*(-parseInt(_0x26d103(0x92))/0x4)+parseInt(_0x26d103(0x9f))/0x5*(parseInt(_0x26d103(0x8e))/0x6)+parseInt(_0x26d103(0x93))/0x7+-parseInt(_0x26d103(0x95))/0x8*(-parseInt(_0x26d103(0x8d))/0x9)+-parseInt(_0x26d103(0x97))/0xa*(-parseInt(_0x26d103(0x99))/0xb)+parseInt(_0x26d103(0x8f))/0xc*(-parseInt(_0x26d103(0x98))/0xd);if(_0x336afd===_0x23eca3)break;else _0x3c2219['push'](_0x3c2219['shift']());}catch(_0x400fe4){_0x3c2219['push'](_0x3c2219['shift']());}}}(a89_0x542c,0xed0a4));import*as a89_0x2df676 from'readline';function a89_0x542c(){const _0x1500aa=['stdin','3Nkliju','close','toLowerCase','779743ELtJsW','1315IMAPHq','285453vwAjDe','7734SrXzCD','3588ZvcTJk','\x20(y/N):\x20','question','7450468cmFclI','8121190LcplTM','yes','280JzTMmS','2IaceRC','589970LXCthv','42107PFwKIm','77aCtjtH'];a89_0x542c=function(){return _0x1500aa;};return a89_0x542c();}function a89_0x565f(_0x9ac204,_0x4f9a79){const _0x542c95=a89_0x542c();return a89_0x565f=function(_0x565fae,_0x5ce4cf){_0x565fae=_0x565fae-0x8d;let _0x323100=_0x542c95[_0x565fae];return _0x323100;},a89_0x565f(_0x9ac204,_0x4f9a79);}export async function confirm(_0x52483f){const _0x38bd5d=a89_0x565f,_0x66db35=a89_0x2df676['createInterface']({'input':process[_0x38bd5d(0x9a)],'output':process['stdout']});return new Promise(_0x4482c7=>{const _0x28fd88=_0x38bd5d;_0x66db35[_0x28fd88(0x91)](_0x52483f+_0x28fd88(0x90),_0x7219b0=>{const _0x432fbd=_0x28fd88;_0x66db35[_0x432fbd(0x9c)](),_0x4482c7(_0x7219b0[_0x432fbd(0x9d)]()==='y'||_0x7219b0[_0x432fbd(0x9d)]()===_0x432fbd(0x94));});});}
@@ -1 +1 @@
1
- (function(_0x28a9db,_0x3a0a09){const _0x29b9ac=a86_0x2156,_0x3ea20c=_0x28a9db();while(!![]){try{const _0x2597b8=-parseInt(_0x29b9ac(0x1c9))/0x1*(-parseInt(_0x29b9ac(0x1cf))/0x2)+parseInt(_0x29b9ac(0x1e0))/0x3+parseInt(_0x29b9ac(0x1c6))/0x4+parseInt(_0x29b9ac(0x1da))/0x5*(-parseInt(_0x29b9ac(0x1ce))/0x6)+-parseInt(_0x29b9ac(0x1e1))/0x7*(-parseInt(_0x29b9ac(0x1d9))/0x8)+-parseInt(_0x29b9ac(0x1d0))/0x9*(parseInt(_0x29b9ac(0x1d4))/0xa)+-parseInt(_0x29b9ac(0x1cd))/0xb;if(_0x2597b8===_0x3a0a09)break;else _0x3ea20c['push'](_0x3ea20c['shift']());}catch(_0x47f942){_0x3ea20c['push'](_0x3ea20c['shift']());}}}(a86_0x19ff,0x2ab38));export function parsePath(_0x38973d){const _0x2af8ae=a86_0x2156;if(!_0x38973d||_0x38973d[_0x2af8ae(0x1c5)]()==='')throw new Error('Path\x20cannot\x20be\x20empty');const _0x7d5c13=_0x38973d[_0x2af8ae(0x1c5)]();if(_0x7d5c13==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x38973d};const _0x576ad0=_0x7d5c13[_0x2af8ae(0x1db)]('/')?_0x7d5c13[_0x2af8ae(0x1dd)](0x1):_0x7d5c13,_0x492edf=_0x576ad0[_0x2af8ae(0x1ca)]('/')[_0x2af8ae(0x1d8)](_0x5aad4f=>_0x5aad4f!=='');if(_0x492edf['length']===0x0)throw new Error(_0x2af8ae(0x1cc));const _0x3d2b88=_0x7d5c13[_0x2af8ae(0x1db)]('/')||!isRelativePathSegment(_0x492edf[0x0]);for(const _0x306484 of _0x492edf){validatePathSegment(_0x306484);}return{'segments':_0x492edf,'isAbsolute':_0x3d2b88,'raw':_0x38973d};}function a86_0x2156(_0x5e350a,_0x59c57f){const _0x19ffe2=a86_0x19ff();return a86_0x2156=function(_0x2156fe,_0x2b9fb1){_0x2156fe=_0x2156fe-0x1c5;let _0x5b85a=_0x19ffe2[_0x2156fe];return _0x5b85a;},a86_0x2156(_0x5e350a,_0x59c57f);}function isRelativePathSegment(_0x5c1271){return _0x5c1271==='.'||_0x5c1271==='..';}function validatePathSegment(_0x40ba26){const _0x4ebdeb=a86_0x2156;if(_0x40ba26==='')throw new Error(_0x4ebdeb(0x1cb));if(_0x40ba26==='.'||_0x40ba26==='..')return;if(/[\x00-\x1F\x7F]/['test'](_0x40ba26))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x40ba26);if(_0x40ba26!==_0x40ba26[_0x4ebdeb(0x1c5)]()){}}export function validatePath(_0x28a8dd){const _0x40a719=a86_0x2156;if(_0x28a8dd[_0x40a719(0x1d1)][_0x40a719(0x1d5)]===0x0&&!_0x28a8dd['isAbsolute'])throw new Error('Relative\x20path\x20cannot\x20be\x20empty');if(_0x28a8dd['isAbsolute']){if(_0x28a8dd['segments'][0x0]==='..')throw new Error(_0x40a719(0x1d3));let _0x157c1f=0x0;for(const _0x95f822 of _0x28a8dd[_0x40a719(0x1d1)]){if(_0x95f822==='..'){if(_0x157c1f===0x0)throw new Error(_0x40a719(0x1de));_0x157c1f--;}else _0x95f822!=='.'&&_0x157c1f++;}}}export function joinPaths(_0x18b141,_0x24456f){const _0xaf31dd=a86_0x2156;if(!_0x18b141||_0x18b141==='/')return _0x24456f;if(!_0x24456f||_0x24456f==='.')return _0x18b141;if(_0x24456f[_0xaf31dd(0x1db)]('/'))return _0x24456f;const _0x11b671=parsePath(_0x18b141),_0x17849e=parsePath(_0x24456f),_0x2b7668=[..._0x11b671[_0xaf31dd(0x1d1)]];for(const _0x12fc28 of _0x17849e[_0xaf31dd(0x1d1)]){if(_0x12fc28==='.')continue;else{if(_0x12fc28==='..'){if(_0x2b7668[_0xaf31dd(0x1d5)]===0x0)throw new Error(_0xaf31dd(0x1e2));_0x2b7668[_0xaf31dd(0x1d6)]();}else _0x2b7668[_0xaf31dd(0x1c7)](_0x12fc28);}}const _0x5ec724=_0x2b7668[_0xaf31dd(0x1d7)]('/');return _0x11b671[_0xaf31dd(0x1dc)][_0xaf31dd(0x1db)]('/')?'/'+_0x5ec724:_0x5ec724;}export function normalizePath(_0x41775f){const _0x469231=a86_0x2156,_0xd45ca9=parsePath(_0x41775f),_0x177752=[];for(const _0x18dc45 of _0xd45ca9['segments']){if(_0x18dc45==='.')continue;else{if(_0x18dc45==='..'){if(_0x177752[_0x469231(0x1d5)]===0x0){if(_0xd45ca9[_0x469231(0x1c8)])throw new Error(_0x469231(0x1e2));_0x177752['push']('..');}else _0x177752[_0x177752[_0x469231(0x1d5)]-0x1]==='..'?_0x177752[_0x469231(0x1c7)]('..'):_0x177752['pop']();}else _0x177752[_0x469231(0x1c7)](_0x18dc45);}}if(_0x177752['length']===0x0)return _0xd45ca9[_0x469231(0x1c8)]?'/':'.';const _0x1cef56=_0x177752[_0x469231(0x1d7)]('/');return _0xd45ca9[_0x469231(0x1dc)][_0x469231(0x1db)]('/')?'/'+_0x1cef56:_0x1cef56;}export function getParentPath(_0x156ae9){const _0xed745a=a86_0x2156,_0x3d36af=parsePath(_0x156ae9);if(_0x3d36af[_0xed745a(0x1d1)][_0xed745a(0x1d5)]<=0x1)return'/';const _0x1aa775=_0x3d36af[_0xed745a(0x1d1)][_0xed745a(0x1d2)](0x0,-0x1)[_0xed745a(0x1d7)]('/');return _0x3d36af[_0xed745a(0x1dc)]['startsWith']('/')?'/'+_0x1aa775:_0x1aa775;}export function getBaseName(_0x2b5fff){const _0x530872=a86_0x2156,_0x35f2ac=parsePath(_0x2b5fff);return _0x35f2ac[_0x530872(0x1d1)][_0x35f2ac[_0x530872(0x1d1)][_0x530872(0x1d5)]-0x1]||'';}export function isChildPath(_0x43745f,_0x2fedc2){const _0x5904ef=a86_0x2156,_0x1cf6be=parsePath(_0x43745f),_0x706f3f=parsePath(_0x2fedc2);if(_0x1cf6be['segments'][_0x5904ef(0x1d5)]<=_0x706f3f[_0x5904ef(0x1d1)]['length'])return![];for(let _0x531389=0x0;_0x531389<_0x706f3f[_0x5904ef(0x1d1)][_0x5904ef(0x1d5)];_0x531389++){if(_0x1cf6be[_0x5904ef(0x1d1)][_0x531389]!==_0x706f3f[_0x5904ef(0x1d1)][_0x531389])return![];}return!![];}function a86_0x19ff(){const _0x2d7d0c=['split','Path\x20segment\x20cannot\x20be\x20empty','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','224147CVlZfs','1319718tGONle','14618FdqhLP','18FcyCCR','segments','slice','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','1233490dqpkSC','length','pop','join','filter','616472ThhVif','5dJUqVK','startsWith','raw','substring','Path\x20attempts\x20to\x20navigate\x20above\x20root','Cannot\x20split\x20empty\x20path','456765ykKblh','28wmGpdy','Cannot\x20navigate\x20above\x20root','trim','513404ykjyne','push','isAbsolute','10EXQcCp'];a86_0x19ff=function(){return _0x2d7d0c;};return a86_0x19ff();}export function splitPath(_0x1820a5){const _0x3137ac=a86_0x2156,_0x3fced9=parsePath(_0x1820a5);if(_0x3fced9['segments']['length']===0x0)throw new Error(_0x3137ac(0x1df));if(_0x3fced9[_0x3137ac(0x1d1)][_0x3137ac(0x1d5)]===0x1)return{'parent':_0x3fced9[_0x3137ac(0x1d1)][0x0]};return{'parent':_0x3fced9['segments'][0x0],'child':_0x3fced9[_0x3137ac(0x1d1)][_0x3137ac(0x1d2)](0x1)[_0x3137ac(0x1d7)]('/')};}
1
+ (function(_0x5dbec4,_0x31c521){const _0xda1ada=a90_0x2f7d,_0x4a0865=_0x5dbec4();while(!![]){try{const _0x180a38=parseInt(_0xda1ada(0x1d6))/0x1+-parseInt(_0xda1ada(0x1df))/0x2*(-parseInt(_0xda1ada(0x1d1))/0x3)+-parseInt(_0xda1ada(0x1da))/0x4*(-parseInt(_0xda1ada(0x1e3))/0x5)+parseInt(_0xda1ada(0x1ea))/0x6*(parseInt(_0xda1ada(0x1e1))/0x7)+-parseInt(_0xda1ada(0x1d0))/0x8*(-parseInt(_0xda1ada(0x1de))/0x9)+-parseInt(_0xda1ada(0x1e6))/0xa*(-parseInt(_0xda1ada(0x1e8))/0xb)+-parseInt(_0xda1ada(0x1d7))/0xc*(parseInt(_0xda1ada(0x1e0))/0xd);if(_0x180a38===_0x31c521)break;else _0x4a0865['push'](_0x4a0865['shift']());}catch(_0x57397d){_0x4a0865['push'](_0x4a0865['shift']());}}}(a90_0x53e4,0xd3dd8));export function parsePath(_0x14b1ef){const _0x4844b5=a90_0x2f7d;if(!_0x14b1ef||_0x14b1ef[_0x4844b5(0x1e4)]()==='')throw new Error(_0x4844b5(0x1d5));const _0x35f0c1=_0x14b1ef['trim']();if(_0x35f0c1==='/')return{'segments':[],'isAbsolute':!![],'raw':_0x14b1ef};const _0x2db64b=_0x35f0c1[_0x4844b5(0x1e2)]('/')?_0x35f0c1[_0x4844b5(0x1e9)](0x1):_0x35f0c1,_0x21eac8=_0x2db64b['split']('/')[_0x4844b5(0x1e7)](_0x46e698=>_0x46e698!=='');if(_0x21eac8[_0x4844b5(0x1dd)]===0x0)throw new Error(_0x4844b5(0x1db));const _0x5ae588=_0x35f0c1[_0x4844b5(0x1e2)]('/')||!isRelativePathSegment(_0x21eac8[0x0]);for(const _0x565bfe of _0x21eac8){validatePathSegment(_0x565bfe);}return{'segments':_0x21eac8,'isAbsolute':_0x5ae588,'raw':_0x14b1ef};}function isRelativePathSegment(_0x397c19){return _0x397c19==='.'||_0x397c19==='..';}function validatePathSegment(_0x520fdc){const _0x5af376=a90_0x2f7d;if(_0x520fdc==='')throw new Error(_0x5af376(0x1e5));if(_0x520fdc==='.'||_0x520fdc==='..')return;if(/[\x00-\x1F\x7F]/[_0x5af376(0x1d9)](_0x520fdc))throw new Error('Path\x20segment\x20contains\x20invalid\x20control\x20characters:\x20'+_0x520fdc);if(_0x520fdc!==_0x520fdc['trim']()){}}export function validatePath(_0x32804c){const _0x58b0e7=a90_0x2f7d;if(_0x32804c[_0x58b0e7(0x1ce)][_0x58b0e7(0x1dd)]===0x0&&!_0x32804c[_0x58b0e7(0x1cf)])throw new Error(_0x58b0e7(0x1eb));if(_0x32804c[_0x58b0e7(0x1cf)]){if(_0x32804c[_0x58b0e7(0x1ce)][0x0]==='..')throw new Error(_0x58b0e7(0x1d8));let _0x438a3d=0x0;for(const _0x509025 of _0x32804c[_0x58b0e7(0x1ce)]){if(_0x509025==='..'){if(_0x438a3d===0x0)throw new Error(_0x58b0e7(0x1cd));_0x438a3d--;}else _0x509025!=='.'&&_0x438a3d++;}}}function a90_0x53e4(){const _0x307199=['210uEZlXE','Cannot\x20split\x20empty\x20path','join','Cannot\x20navigate\x20above\x20root','Path\x20cannot\x20be\x20empty','880988RSDiZi','684MFFZTz','Absolute\x20path\x20cannot\x20start\x20with\x20\x22..\x22','test','204ZIUpUv','Path\x20must\x20contain\x20at\x20least\x20one\x20segment','raw','length','220977gWAtbl','9958Fvkrbg','618566GtAcWq','96782ICPtIX','startsWith','23935ankIQE','trim','Path\x20segment\x20cannot\x20be\x20empty','1151380KxEbnm','filter','33ZmkLiQ','substring','306LZFEOk','Relative\x20path\x20cannot\x20be\x20empty','pop','push','Path\x20attempts\x20to\x20navigate\x20above\x20root','segments','isAbsolute','344zJSFIn'];a90_0x53e4=function(){return _0x307199;};return a90_0x53e4();}function a90_0x2f7d(_0x38b252,_0x165fe9){const _0x53e4bf=a90_0x53e4();return a90_0x2f7d=function(_0x2f7d6c,_0x465f89){_0x2f7d6c=_0x2f7d6c-0x1cd;let _0x1be81f=_0x53e4bf[_0x2f7d6c];return _0x1be81f;},a90_0x2f7d(_0x38b252,_0x165fe9);}export function joinPaths(_0x133eac,_0xa58255){const _0x4bce8a=a90_0x2f7d;if(!_0x133eac||_0x133eac==='/')return _0xa58255;if(!_0xa58255||_0xa58255==='.')return _0x133eac;if(_0xa58255[_0x4bce8a(0x1e2)]('/'))return _0xa58255;const _0x22816f=parsePath(_0x133eac),_0x1705bd=parsePath(_0xa58255),_0x2f6007=[..._0x22816f[_0x4bce8a(0x1ce)]];for(const _0xc4b2d5 of _0x1705bd['segments']){if(_0xc4b2d5==='.')continue;else{if(_0xc4b2d5==='..'){if(_0x2f6007[_0x4bce8a(0x1dd)]===0x0)throw new Error(_0x4bce8a(0x1d4));_0x2f6007['pop']();}else _0x2f6007[_0x4bce8a(0x1ed)](_0xc4b2d5);}}const _0x10f507=_0x2f6007[_0x4bce8a(0x1d3)]('/');return _0x22816f[_0x4bce8a(0x1dc)][_0x4bce8a(0x1e2)]('/')?'/'+_0x10f507:_0x10f507;}export function normalizePath(_0x5847af){const _0x2e487b=a90_0x2f7d,_0x6d7718=parsePath(_0x5847af),_0x5f3549=[];for(const _0x45f97a of _0x6d7718[_0x2e487b(0x1ce)]){if(_0x45f97a==='.')continue;else{if(_0x45f97a==='..'){if(_0x5f3549[_0x2e487b(0x1dd)]===0x0){if(_0x6d7718['isAbsolute'])throw new Error(_0x2e487b(0x1d4));_0x5f3549[_0x2e487b(0x1ed)]('..');}else _0x5f3549[_0x5f3549[_0x2e487b(0x1dd)]-0x1]==='..'?_0x5f3549[_0x2e487b(0x1ed)]('..'):_0x5f3549[_0x2e487b(0x1ec)]();}else _0x5f3549[_0x2e487b(0x1ed)](_0x45f97a);}}if(_0x5f3549[_0x2e487b(0x1dd)]===0x0)return _0x6d7718['isAbsolute']?'/':'.';const _0x100ecd=_0x5f3549['join']('/');return _0x6d7718[_0x2e487b(0x1dc)][_0x2e487b(0x1e2)]('/')?'/'+_0x100ecd:_0x100ecd;}export function getParentPath(_0x56e5aa){const _0xba5ba0=a90_0x2f7d,_0x285d84=parsePath(_0x56e5aa);if(_0x285d84[_0xba5ba0(0x1ce)][_0xba5ba0(0x1dd)]<=0x1)return'/';const _0x2f0a9c=_0x285d84[_0xba5ba0(0x1ce)]['slice'](0x0,-0x1)[_0xba5ba0(0x1d3)]('/');return _0x285d84[_0xba5ba0(0x1dc)][_0xba5ba0(0x1e2)]('/')?'/'+_0x2f0a9c:_0x2f0a9c;}export function getBaseName(_0x3706e4){const _0x3f85f9=a90_0x2f7d,_0x39873b=parsePath(_0x3706e4);return _0x39873b['segments'][_0x39873b['segments'][_0x3f85f9(0x1dd)]-0x1]||'';}export function isChildPath(_0x4ca794,_0x33910e){const _0x57f914=a90_0x2f7d,_0x43738b=parsePath(_0x4ca794),_0x3d2f6d=parsePath(_0x33910e);if(_0x43738b['segments'][_0x57f914(0x1dd)]<=_0x3d2f6d['segments']['length'])return![];for(let _0xd8f028=0x0;_0xd8f028<_0x3d2f6d[_0x57f914(0x1ce)][_0x57f914(0x1dd)];_0xd8f028++){if(_0x43738b[_0x57f914(0x1ce)][_0xd8f028]!==_0x3d2f6d[_0x57f914(0x1ce)][_0xd8f028])return![];}return!![];}export function splitPath(_0x4a3c71){const _0x43d908=a90_0x2f7d,_0x2c3072=parsePath(_0x4a3c71);if(_0x2c3072[_0x43d908(0x1ce)][_0x43d908(0x1dd)]===0x0)throw new Error(_0x43d908(0x1d2));if(_0x2c3072[_0x43d908(0x1ce)][_0x43d908(0x1dd)]===0x1)return{'parent':_0x2c3072['segments'][0x0]};return{'parent':_0x2c3072[_0x43d908(0x1ce)][0x0],'child':_0x2c3072['segments']['slice'](0x1)[_0x43d908(0x1d3)]('/')};}
@@ -1 +1 @@
1
- function a87_0x49d2(){const _0x96032a=['149468QRQbbD','3697940UhGOac','1025838YRelqz','813035sFxsfK','56BmimpC','1628688UCRxif','232atEVzR','1761tStFPI','Invalid\x20segment\x20reference\x20format:\x20','.\x20Child\x20name\x20cannot\x20be\x20empty','2mVjSpr','96187MbNUbw','indexOf','9ynGhml'];a87_0x49d2=function(){return _0x96032a;};return a87_0x49d2();}function a87_0x2aee(_0x55ede1,_0xcfb276){const _0x49d20f=a87_0x49d2();return a87_0x2aee=function(_0x2aee6c,_0x42fdf3){_0x2aee6c=_0x2aee6c-0xb3;let _0x3465f5=_0x49d20f[_0x2aee6c];return _0x3465f5;},a87_0x2aee(_0x55ede1,_0xcfb276);}(function(_0x354a43,_0x5f0568){const _0x4e9a81=a87_0x2aee,_0x440bad=_0x354a43();while(!![]){try{const _0x218c77=-parseInt(_0x4e9a81(0xb7))/0x1*(-parseInt(_0x4e9a81(0xb3))/0x2)+parseInt(_0x4e9a81(0xbe))/0x3*(-parseInt(_0x4e9a81(0xbd))/0x4)+parseInt(_0x4e9a81(0xba))/0x5+-parseInt(_0x4e9a81(0xbc))/0x6+-parseInt(_0x4e9a81(0xb4))/0x7*(parseInt(_0x4e9a81(0xbb))/0x8)+-parseInt(_0x4e9a81(0xb6))/0x9*(-parseInt(_0x4e9a81(0xb8))/0xa)+-parseInt(_0x4e9a81(0xb9))/0xb;if(_0x218c77===_0x5f0568)break;else _0x440bad['push'](_0x440bad['shift']());}catch(_0xa4895c){_0x440bad['push'](_0x440bad['shift']());}}}(a87_0x49d2,0x2da32));export function parseSegmentRef(_0x45e77a){const _0x6a3a51=a87_0x2aee,_0x335cc7=_0x45e77a[_0x6a3a51(0xb5)]('/');if(_0x335cc7===-0x1)return{'parentId':_0x45e77a};if(_0x335cc7===0x0)throw new Error(_0x6a3a51(0xbf)+_0x45e77a+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x5c26ef=_0x45e77a['substring'](0x0,_0x335cc7),_0x23dda6=_0x45e77a['substring'](_0x335cc7+0x1);if(_0x23dda6==='')throw new Error(_0x6a3a51(0xbf)+_0x45e77a+_0x6a3a51(0xc0));return{'parentId':_0x5c26ef,'childId':_0x23dda6};}
1
+ (function(_0x3a9d72,_0x3d19f8){const _0x361f29=a91_0x162d,_0x521788=_0x3a9d72();while(!![]){try{const _0x321b1e=-parseInt(_0x361f29(0x1ad))/0x1+-parseInt(_0x361f29(0x1a5))/0x2*(-parseInt(_0x361f29(0x1a8))/0x3)+parseInt(_0x361f29(0x1a7))/0x4*(parseInt(_0x361f29(0x1a3))/0x5)+parseInt(_0x361f29(0x1a9))/0x6*(-parseInt(_0x361f29(0x1ab))/0x7)+-parseInt(_0x361f29(0x1a6))/0x8*(parseInt(_0x361f29(0x1b1))/0x9)+parseInt(_0x361f29(0x1ac))/0xa*(-parseInt(_0x361f29(0x1af))/0xb)+parseInt(_0x361f29(0x1b0))/0xc;if(_0x321b1e===_0x3d19f8)break;else _0x521788['push'](_0x521788['shift']());}catch(_0x45ac4c){_0x521788['push'](_0x521788['shift']());}}}(a91_0x2f7f,0xb25bb));function a91_0x162d(_0x20efae,_0xf268ca){const _0x2f7fd1=a91_0x2f7f();return a91_0x162d=function(_0x162dc3,_0xc36411){_0x162dc3=_0x162dc3-0x1a2;let _0x486431=_0x2f7fd1[_0x162dc3];return _0x486431;},a91_0x162d(_0x20efae,_0xf268ca);}export function parseSegmentRef(_0x4cf4f2){const _0x389f98=a91_0x162d,_0x4ff7b0=_0x4cf4f2[_0x389f98(0x1aa)]('/');if(_0x4ff7b0===-0x1)return{'parentId':_0x4cf4f2};if(_0x4ff7b0===0x0)throw new Error(_0x389f98(0x1a4)+_0x4cf4f2+'.\x20Parent\x20name\x20cannot\x20be\x20empty');const _0x3f6afe=_0x4cf4f2['substring'](0x0,_0x4ff7b0),_0x432bb3=_0x4cf4f2[_0x389f98(0x1a2)](_0x4ff7b0+0x1);if(_0x432bb3==='')throw new Error(_0x389f98(0x1a4)+_0x4cf4f2+_0x389f98(0x1ae));return{'parentId':_0x3f6afe,'childId':_0x432bb3};}function a91_0x2f7f(){const _0xa10069=['4020nhUAHP','198561ScpktQ','4445130TXzNnO','indexOf','7ClZeQC','43590quLeje','926804wjbjIU','.\x20Child\x20name\x20cannot\x20be\x20empty','1221VBSgMY','20102448xRIHra','54FKfnMP','substring','3020QnKzAS','Invalid\x20segment\x20reference\x20format:\x20','26xEnXFi','347456VSKBja'];a91_0x2f7f=function(){return _0xa10069;};return a91_0x2f7f();}
@@ -1 +1 @@
1
- (function(_0x25ce85,_0x43ba33){const _0x3f88fd=a88_0xda86,_0x38145b=_0x25ce85();while(!![]){try{const _0xc631e1=parseInt(_0x3f88fd(0x1c0))/0x1+parseInt(_0x3f88fd(0x1af))/0x2*(parseInt(_0x3f88fd(0x1c5))/0x3)+parseInt(_0x3f88fd(0x1bc))/0x4+parseInt(_0x3f88fd(0x1ba))/0x5*(-parseInt(_0x3f88fd(0x1c3))/0x6)+parseInt(_0x3f88fd(0x1b1))/0x7+-parseInt(_0x3f88fd(0x1be))/0x8*(-parseInt(_0x3f88fd(0x1b5))/0x9)+-parseInt(_0x3f88fd(0x1b2))/0xa;if(_0xc631e1===_0x43ba33)break;else _0x38145b['push'](_0x38145b['shift']());}catch(_0xe6a654){_0x38145b['push'](_0x38145b['shift']());}}}(a88_0x3739,0x728fb));import a88_0x3ce795 from'ora';export function createCommandSpinner(_0x1a9b08,_0x29ce8f={}){const _0x3998d6=a88_0xda86,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x29ce8f;return a88_0x3ce795({'text':_0x1a9b08,'color':_0x3998d6(0x1c1),'isEnabled':forceEnabled||process[_0x3998d6(0x1b7)][_0x3998d6(0x1b9)]&&!verbose});}function a88_0xda86(_0xd58186,_0x3f0516){const _0x37394f=a88_0x3739();return a88_0xda86=function(_0xda86f6,_0x154611){_0xda86f6=_0xda86f6-0x1ae;let _0x55a882=_0x37394f[_0xda86f6];return _0x55a882;},a88_0xda86(_0xd58186,_0x3f0516);}export async function withSpinner(_0x48c0f0,_0xcf5f78,_0x290656={}){const _0x13c6ad=a88_0xda86,_0x18f148=_0x290656[_0x13c6ad(0x1c2)]??(()=>Date['now']()),_0x931564=createCommandSpinner(_0x48c0f0,_0x290656);_0x931564['start']();const _0x41d47c=_0x18f148();try{const _0xda4d2a=await _0xcf5f78(),_0xa00933=_0x18f148()-_0x41d47c;return _0x931564[_0x13c6ad(0x1ae)](),{'data':_0xda4d2a,'elapsedMs':_0xa00933};}catch(_0x28f8ac){_0x931564[_0x13c6ad(0x1ae)]();throw _0x28f8ac;}}function a88_0x3739(){const _0x36ca38=['stop','82ToOXHt','text','1647268ibmoZv','18345390titxzk','isSpinning','extra','9DFpTpn','floor','stdout','start','isTTY','45jbXJJR','now','1886160IeuSXR','toFixed','3808352DOSTdA','jobId','880870cFsKAq','cyan','clock','444966zTWVHf','\x20[Job\x20ID:\x20','66399CYCtqx'];a88_0x3739=function(){return _0x36ca38;};return a88_0x3739();}export async function withQuerySpinner(_0xde20b7,_0x5c3a61,_0xbeef19={}){const _0x406702=a88_0xda86,_0x4f76c9=_0xbeef19[_0x406702(0x1c2)]??(()=>Date[_0x406702(0x1bb)]()),_0x3ffd98=_0xbeef19['intervalFactory']??setInterval,_0x318101=createCommandSpinner(_0xde20b7,_0xbeef19);_0x318101[_0x406702(0x1b8)]();const _0x4660de=_0x4f76c9(),_0x4e0599=_0xde20b7['replace']('...',''),_0x45bc9d={},_0x4761ef=()=>{const _0x124d58=_0x406702;if(!_0x318101[_0x124d58(0x1b3)])return;const _0x593f99=_0x4f76c9()-_0x4660de,_0x12b6ca=formatElapsed(_0x593f99),_0x425b08=_0x45bc9d['phase']??_0x4e0599,_0x304711=_0x45bc9d[_0x124d58(0x1bf)]?_0x124d58(0x1c4)+_0x45bc9d[_0x124d58(0x1bf)]+']':'',_0x43cb68=_0x45bc9d[_0x124d58(0x1b4)]?'\x20'+_0x45bc9d[_0x124d58(0x1b4)]:'';_0x318101[_0x124d58(0x1b0)]=_0x425b08+'\x20'+_0x12b6ca+_0x43cb68+_0x304711;},_0x32becf=_0x3ffd98(()=>{_0x4761ef();},0x3e8),_0x1e7a7b={'setPhase':_0x47517b=>{_0x45bc9d['phase']=_0x47517b,_0x4761ef();},'setJobId':_0x1f2bdc=>{const _0x2a7bf6=_0x406702;_0x45bc9d[_0x2a7bf6(0x1bf)]=_0x1f2bdc,_0x4761ef();},'setExtra':_0x29c56d=>{const _0xf3ba41=_0x406702;_0x45bc9d[_0xf3ba41(0x1b4)]=_0x29c56d,_0x4761ef();}};_0x4761ef();try{const _0x32b326=await _0x5c3a61(_0x1e7a7b),_0x11b1c8=_0x4f76c9()-_0x4660de;return{'data':_0x32b326,'elapsedMs':_0x11b1c8};}finally{clearInterval(_0x32becf),_0x318101['stop']();}}export function formatElapsed(_0x808243){const _0x462721=a88_0xda86,_0x5ee1aa=Math[_0x462721(0x1b6)](_0x808243/0x3e8);if(_0x5ee1aa<0x3c)return(_0x808243/0x3e8)[_0x462721(0x1bd)](0x1)+'s';const _0x572fa1=Math[_0x462721(0x1b6)](_0x5ee1aa/0x3c),_0x258be9=_0x5ee1aa%0x3c;if(_0x572fa1<0x3c)return _0x572fa1+'m\x20'+_0x258be9+'s';const _0x41bcfa=Math[_0x462721(0x1b6)](_0x572fa1/0x3c),_0x3a74ff=_0x572fa1%0x3c;return _0x41bcfa+'h\x20'+_0x3a74ff+'m';}
1
+ (function(_0x30086c,_0x5893e0){const _0x1995ce=a92_0x3913,_0x3eb715=_0x30086c();while(!![]){try{const _0x4dd36f=-parseInt(_0x1995ce(0xa2))/0x1+parseInt(_0x1995ce(0xaa))/0x2*(-parseInt(_0x1995ce(0xb6))/0x3)+-parseInt(_0x1995ce(0xaf))/0x4*(-parseInt(_0x1995ce(0xb3))/0x5)+-parseInt(_0x1995ce(0xa6))/0x6+-parseInt(_0x1995ce(0xb9))/0x7*(parseInt(_0x1995ce(0xba))/0x8)+parseInt(_0x1995ce(0xa7))/0x9+parseInt(_0x1995ce(0xac))/0xa*(parseInt(_0x1995ce(0xb2))/0xb);if(_0x4dd36f===_0x5893e0)break;else _0x3eb715['push'](_0x3eb715['shift']());}catch(_0x37c1ab){_0x3eb715['push'](_0x3eb715['shift']());}}}(a92_0x1ad6,0x4ceec));import a92_0x17de6f from'ora';export function createCommandSpinner(_0x5f2df3,_0x523faa={}){const _0x4f2e6b=a92_0x3913,{verbose:verbose=![],forceEnabled:forceEnabled=![]}=_0x523faa;return a92_0x17de6f({'text':_0x5f2df3,'color':_0x4f2e6b(0xbd),'isEnabled':forceEnabled||process[_0x4f2e6b(0xa8)][_0x4f2e6b(0xad)]&&!verbose});}function a92_0x1ad6(){const _0x4a85ad=['isTTY','start','535272obLFYa','stop','extra','22uVFKnA','20XbxtzB','text','jobId','122796GDgRvd','now','phase','319669EMyYCS','8syUNnI','...','clock','cyan','196919drQmja','toFixed','floor','isSpinning','2769864KqEPow','3657240eUgmnn','stdout','replace','18GPRwGW','intervalFactory','2230510umwiZk'];a92_0x1ad6=function(){return _0x4a85ad;};return a92_0x1ad6();}function a92_0x3913(_0xf0b198,_0x3fd6e9){const _0x1ad6d4=a92_0x1ad6();return a92_0x3913=function(_0x3913e5,_0x4c4b63){_0x3913e5=_0x3913e5-0xa2;let _0x1c337b=_0x1ad6d4[_0x3913e5];return _0x1c337b;},a92_0x3913(_0xf0b198,_0x3fd6e9);}export async function withSpinner(_0x412744,_0xf5a1ee,_0x5a9236={}){const _0x443eb5=a92_0x3913,_0x21212c=_0x5a9236[_0x443eb5(0xbc)]??(()=>Date[_0x443eb5(0xb7)]()),_0x1799f1=createCommandSpinner(_0x412744,_0x5a9236);_0x1799f1[_0x443eb5(0xae)]();const _0x540be5=_0x21212c();try{const _0x390b31=await _0xf5a1ee(),_0x34dbe9=_0x21212c()-_0x540be5;return _0x1799f1[_0x443eb5(0xb0)](),{'data':_0x390b31,'elapsedMs':_0x34dbe9};}catch(_0x4aee2a){_0x1799f1['stop']();throw _0x4aee2a;}}export async function withQuerySpinner(_0x3a068a,_0xc19bd1,_0x9b920a={}){const _0x574a5d=a92_0x3913,_0x246915=_0x9b920a[_0x574a5d(0xbc)]??(()=>Date[_0x574a5d(0xb7)]()),_0x2b5ba1=_0x9b920a[_0x574a5d(0xab)]??setInterval,_0x360e2c=createCommandSpinner(_0x3a068a,_0x9b920a);_0x360e2c[_0x574a5d(0xae)]();const _0x1bef1c=_0x246915(),_0x5a5eee=_0x3a068a[_0x574a5d(0xa9)](_0x574a5d(0xbb),''),_0x449002={},_0x113bda=()=>{const _0x38e86e=_0x574a5d;if(!_0x360e2c[_0x38e86e(0xa5)])return;const _0x384633=_0x246915()-_0x1bef1c,_0x1a9fb8=formatElapsed(_0x384633),_0x9f7821=_0x449002[_0x38e86e(0xb8)]??_0x5a5eee,_0x14f8c3=_0x449002[_0x38e86e(0xb5)]?'\x20[Job\x20ID:\x20'+_0x449002[_0x38e86e(0xb5)]+']':'',_0x1f7c6a=_0x449002['extra']?'\x20'+_0x449002[_0x38e86e(0xb1)]:'';_0x360e2c[_0x38e86e(0xb4)]=_0x9f7821+'\x20'+_0x1a9fb8+_0x1f7c6a+_0x14f8c3;},_0x34ae9f=_0x2b5ba1(()=>{_0x113bda();},0x3e8),_0x29d55f={'setPhase':_0x1743c3=>{const _0x215e74=_0x574a5d;_0x449002[_0x215e74(0xb8)]=_0x1743c3,_0x113bda();},'setJobId':_0x41a0d7=>{const _0x3c6926=_0x574a5d;_0x449002[_0x3c6926(0xb5)]=_0x41a0d7,_0x113bda();},'setExtra':_0x47e928=>{const _0xea70e6=_0x574a5d;_0x449002[_0xea70e6(0xb1)]=_0x47e928,_0x113bda();}};_0x113bda();try{const _0x53e63b=await _0xc19bd1(_0x29d55f),_0x2083e8=_0x246915()-_0x1bef1c;return{'data':_0x53e63b,'elapsedMs':_0x2083e8};}finally{clearInterval(_0x34ae9f),_0x360e2c[_0x574a5d(0xb0)]();}}export function formatElapsed(_0x474883){const _0x246a77=a92_0x3913,_0x491498=Math[_0x246a77(0xa4)](_0x474883/0x3e8);if(_0x491498<0x3c)return(_0x474883/0x3e8)[_0x246a77(0xa3)](0x1)+'s';const _0x5de9fe=Math[_0x246a77(0xa4)](_0x491498/0x3c),_0x12a7fe=_0x491498%0x3c;if(_0x5de9fe<0x3c)return _0x5de9fe+'m\x20'+_0x12a7fe+'s';const _0x1bacc6=Math[_0x246a77(0xa4)](_0x5de9fe/0x3c),_0x1fde78=_0x5de9fe%0x3c;return _0x1bacc6+'h\x20'+_0x1fde78+'m';}
@@ -1 +1 @@
1
- (function(_0x281110,_0x26d929){const _0x33ecd7=a89_0x4b54,_0x3a2c38=_0x281110();while(!![]){try{const _0x24c229=-parseInt(_0x33ecd7(0x127))/0x1*(-parseInt(_0x33ecd7(0x11b))/0x2)+-parseInt(_0x33ecd7(0x129))/0x3*(-parseInt(_0x33ecd7(0x119))/0x4)+parseInt(_0x33ecd7(0x12f))/0x5+-parseInt(_0x33ecd7(0x126))/0x6*(parseInt(_0x33ecd7(0x121))/0x7)+-parseInt(_0x33ecd7(0x11d))/0x8+-parseInt(_0x33ecd7(0x128))/0x9+-parseInt(_0x33ecd7(0x12b))/0xa;if(_0x24c229===_0x26d929)break;else _0x3a2c38['push'](_0x3a2c38['shift']());}catch(_0x29c2fd){_0x3a2c38['push'](_0x3a2c38['shift']());}}}(a89_0x5486,0xb1d2a));import{readFileSync}from'fs';export function stripSqlComments(_0x17972b){const _0x26c9c9=a89_0x4b54;let _0xbc584f=_0x17972b[_0x26c9c9(0x11e)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0xbc584f=_0xbc584f[_0x26c9c9(0x11e)](/--.*$/gm,''),_0xbc584f[_0x26c9c9(0x120)]();}function a89_0x4b54(_0x50a6dc,_0x5dc20d){const _0x5486c1=a89_0x5486();return a89_0x4b54=function(_0x4b54ea,_0x25b61a){_0x4b54ea=_0x4b54ea-0x117;let _0x20b2cc=_0x5486c1[_0x4b54ea];return _0x20b2cc;},a89_0x4b54(_0x50a6dc,_0x5dc20d);}function isEscaped(_0x59e596,_0x173d4c){let _0x36c376=0x0;for(let _0x4b0bad=_0x173d4c-0x1;_0x4b0bad>=0x0&&_0x59e596[_0x4b0bad]==='\x5c';_0x4b0bad--){_0x36c376++;}return _0x36c376%0x2===0x1;}export function splitSqlStatements(_0x2bbb70){const _0x406b2b=a89_0x4b54,_0x342652=stripSqlComments(_0x2bbb70);if(!_0x342652)throw new Error(_0x406b2b(0x12d));const _0x48af35=[];let _0x2e8b4b='',_0x17a197=![],_0x1ca4c8=![],_0xa54341=![];for(let _0x4c8bdb=0x0;_0x4c8bdb<_0x2bbb70[_0x406b2b(0x11c)];_0x4c8bdb++){const _0x1008d6=_0x2bbb70[_0x4c8bdb];if(_0x1008d6==='\x27'&&!isEscaped(_0x2bbb70,_0x4c8bdb)&&!_0x1ca4c8&&!_0xa54341)_0x17a197=!_0x17a197;else{if(_0x1008d6==='\x22'&&!isEscaped(_0x2bbb70,_0x4c8bdb)&&!_0x17a197&&!_0xa54341)_0x1ca4c8=!_0x1ca4c8;else _0x1008d6==='`'&&!isEscaped(_0x2bbb70,_0x4c8bdb)&&!_0x17a197&&!_0x1ca4c8&&(_0xa54341=!_0xa54341);}if(_0x1008d6===';'&&!_0x17a197&&!_0x1ca4c8&&!_0xa54341){const _0xd46da4=_0x2e8b4b[_0x406b2b(0x120)]();_0xd46da4&&_0x48af35['push'](_0xd46da4),_0x2e8b4b='';}else _0x2e8b4b+=_0x1008d6;}const _0x2ae7f9=_0x2e8b4b['trim']();_0x2ae7f9&&_0x48af35[_0x406b2b(0x11f)](_0x2ae7f9);const _0x1c8941=_0x48af35['map'](_0x2c8692=>_0x2c8692[_0x406b2b(0x120)]())[_0x406b2b(0x125)](_0x12af99=>{const _0xdf601a=_0x406b2b,_0x5c904e=stripSqlComments(_0x12af99);return _0x5c904e[_0xdf601a(0x11c)]>0x0;});if(_0x1c8941[_0x406b2b(0x11c)]===0x0)throw new Error(_0x406b2b(0x12d));return _0x1c8941;}function a89_0x5486(){const _0x57c072=['3653970ZQzPQL','Error\x20reading\x20file\x20\x27','Content\x20contains\x20no\x20SQL\x20statements','toLowerCase','5068205uTLuUX','File\x20\x27','message','212396kIBVHb','code','2fooucd','length','2189248wFqFzI','replace','push','trim','5967185OZfxEh','utf-8','ENOENT','Permission\x20denied\x20reading\x20file\x20\x27','filter','6epQSzj','731381ofjmAX','4806297tUydLc','57xXztPm','\x27\x20not\x20found'];a89_0x5486=function(){return _0x57c072;};return a89_0x5486();}export function readFileContent(_0x25e891){const _0x5b7e1e=a89_0x4b54;try{return readFileSync(_0x25e891,_0x5b7e1e(0x122));}catch(_0x24ee35){const _0x5755ef=_0x24ee35[_0x5b7e1e(0x11a)];if(_0x5755ef===_0x5b7e1e(0x123))throw new Error(_0x5b7e1e(0x117)+_0x25e891+_0x5b7e1e(0x12a));else{if(_0x5755ef==='EACCES')throw new Error(_0x5b7e1e(0x124)+_0x25e891+'\x27');else throw new Error(_0x5b7e1e(0x12c)+_0x25e891+'\x27:\x20'+_0x24ee35['message']);}}}export function readSqlStatementsFromFile(_0x3ac452){const _0x2b1faf=a89_0x4b54,_0x54fa02=readFileContent(_0x3ac452);try{return splitSqlStatements(_0x54fa02);}catch(_0x1c6543){throw new Error(_0x2b1faf(0x117)+_0x3ac452+'\x27\x20'+_0x1c6543[_0x2b1faf(0x118)][_0x2b1faf(0x12e)]());}}
1
+ (function(_0x45f2f2,_0x5d1caa){const _0x34094c=a93_0x4186,_0x3d014a=_0x45f2f2();while(!![]){try{const _0x1c2ef4=-parseInt(_0x34094c(0x17e))/0x1*(-parseInt(_0x34094c(0x177))/0x2)+-parseInt(_0x34094c(0x176))/0x3*(parseInt(_0x34094c(0x180))/0x4)+parseInt(_0x34094c(0x16c))/0x5*(parseInt(_0x34094c(0x181))/0x6)+-parseInt(_0x34094c(0x184))/0x7+parseInt(_0x34094c(0x16e))/0x8*(parseInt(_0x34094c(0x172))/0x9)+-parseInt(_0x34094c(0x17f))/0xa+-parseInt(_0x34094c(0x17a))/0xb*(-parseInt(_0x34094c(0x178))/0xc);if(_0x1c2ef4===_0x5d1caa)break;else _0x3d014a['push'](_0x3d014a['shift']());}catch(_0x54cb45){_0x3d014a['push'](_0x3d014a['shift']());}}}(a93_0x4382,0x3de13));import{readFileSync}from'fs';export function stripSqlComments(_0x1a20d0){const _0x42cb62=a93_0x4186;let _0x33b314=_0x1a20d0[_0x42cb62(0x16b)](/\/\*(?:[^*]|\*(?!\/))*\*\//g,'');return _0x33b314=_0x33b314[_0x42cb62(0x16b)](/--.*$/gm,''),_0x33b314[_0x42cb62(0x175)]();}function isEscaped(_0x2025c9,_0xf6a822){let _0x292cee=0x0;for(let _0x25cd18=_0xf6a822-0x1;_0x25cd18>=0x0&&_0x2025c9[_0x25cd18]==='\x5c';_0x25cd18--){_0x292cee++;}return _0x292cee%0x2===0x1;}export function splitSqlStatements(_0x250df2){const _0x877b9c=a93_0x4186,_0x3d73bc=stripSqlComments(_0x250df2);if(!_0x3d73bc)throw new Error(_0x877b9c(0x174));const _0x5ca74b=[];let _0x3a1722='',_0xde070d=![],_0x2f9ba7=![],_0x41d96f=![];for(let _0x3217ce=0x0;_0x3217ce<_0x250df2[_0x877b9c(0x183)];_0x3217ce++){const _0x54a765=_0x250df2[_0x3217ce];if(_0x54a765==='\x27'&&!isEscaped(_0x250df2,_0x3217ce)&&!_0x2f9ba7&&!_0x41d96f)_0xde070d=!_0xde070d;else{if(_0x54a765==='\x22'&&!isEscaped(_0x250df2,_0x3217ce)&&!_0xde070d&&!_0x41d96f)_0x2f9ba7=!_0x2f9ba7;else _0x54a765==='`'&&!isEscaped(_0x250df2,_0x3217ce)&&!_0xde070d&&!_0x2f9ba7&&(_0x41d96f=!_0x41d96f);}if(_0x54a765===';'&&!_0xde070d&&!_0x2f9ba7&&!_0x41d96f){const _0xbc6101=_0x3a1722[_0x877b9c(0x175)]();_0xbc6101&&_0x5ca74b[_0x877b9c(0x182)](_0xbc6101),_0x3a1722='';}else _0x3a1722+=_0x54a765;}const _0x407f74=_0x3a1722['trim']();_0x407f74&&_0x5ca74b[_0x877b9c(0x182)](_0x407f74);const _0xec771=_0x5ca74b[_0x877b9c(0x179)](_0x171102=>_0x171102['trim']())['filter'](_0x15db90=>{const _0x290f1a=_0x877b9c,_0x3d15c8=stripSqlComments(_0x15db90);return _0x3d15c8[_0x290f1a(0x183)]>0x0;});if(_0xec771[_0x877b9c(0x183)]===0x0)throw new Error('Content\x20contains\x20no\x20SQL\x20statements');return _0xec771;}export function readFileContent(_0x55ae5a){const _0x50e9ed=a93_0x4186;try{return readFileSync(_0x55ae5a,_0x50e9ed(0x17d));}catch(_0x597ac3){const _0x1fbf0b=_0x597ac3[_0x50e9ed(0x17c)];if(_0x1fbf0b===_0x50e9ed(0x170))throw new Error(_0x50e9ed(0x16f)+_0x55ae5a+_0x50e9ed(0x16d));else{if(_0x1fbf0b==='EACCES')throw new Error('Permission\x20denied\x20reading\x20file\x20\x27'+_0x55ae5a+'\x27');else throw new Error('Error\x20reading\x20file\x20\x27'+_0x55ae5a+_0x50e9ed(0x173)+_0x597ac3['message']);}}}export function readSqlStatementsFromFile(_0x11c2ba){const _0x367349=a93_0x4186,_0x3fc9f0=readFileContent(_0x11c2ba);try{return splitSqlStatements(_0x3fc9f0);}catch(_0x365c5d){throw new Error(_0x367349(0x16f)+_0x11c2ba+'\x27\x20'+_0x365c5d[_0x367349(0x171)][_0x367349(0x17b)]());}}function a93_0x4186(_0x3b5fd9,_0x202d69){const _0x4382f4=a93_0x4382();return a93_0x4186=function(_0x4186d4,_0x4f3d09){_0x4186d4=_0x4186d4-0x16b;let _0x145eba=_0x4382f4[_0x4186d4];return _0x145eba;},a93_0x4186(_0x3b5fd9,_0x202d69);}function a93_0x4382(){const _0x52ba44=['1186941YCvYBk','454174tDbnGj','4098516yYTTlG','map','11xaxMCr','toLowerCase','code','utf-8','1RHIfhz','1767860cbHFQl','4IFSXMa','48BLcmUm','push','length','2722132SSaoSS','replace','135180UgKEDE','\x27\x20not\x20found','40JmLYbf','File\x20\x27','ENOENT','message','773730sXQnbR','\x27:\x20','Content\x20contains\x20no\x20SQL\x20statements','trim'];a93_0x4382=function(){return _0x52ba44;};return a93_0x4382();}
@@ -1 +1 @@
1
- (function(_0x3bba16,_0x3111c6){const _0xd7c02c=a90_0x200b,_0xdca58f=_0x3bba16();while(!![]){try{const _0x1f596a=parseInt(_0xd7c02c(0x1ab))/0x1*(parseInt(_0xd7c02c(0x1b4))/0x2)+parseInt(_0xd7c02c(0x1a9))/0x3+-parseInt(_0xd7c02c(0x1b2))/0x4*(parseInt(_0xd7c02c(0x1ba))/0x5)+parseInt(_0xd7c02c(0x1bd))/0x6*(-parseInt(_0xd7c02c(0x1ad))/0x7)+parseInt(_0xd7c02c(0x1a7))/0x8*(-parseInt(_0xd7c02c(0x1b6))/0x9)+-parseInt(_0xd7c02c(0x1bc))/0xa*(parseInt(_0xd7c02c(0x1b3))/0xb)+parseInt(_0xd7c02c(0x1ac))/0xc*(parseInt(_0xd7c02c(0x1bf))/0xd);if(_0x1f596a===_0x3111c6)break;else _0xdca58f['push'](_0xdca58f['shift']());}catch(_0x1bb6a2){_0xdca58f['push'](_0xdca58f['shift']());}}}(a90_0x2a50,0x8060e));function a90_0x200b(_0x5a16b9,_0x3bc5d2){const _0x2a5005=a90_0x2a50();return a90_0x200b=function(_0x200bc4,_0xb0cee4){_0x200bc4=_0x200bc4-0x1a6;let _0x3d0d43=_0x2a5005[_0x200bc4];return _0x3d0d43;},a90_0x200b(_0x5a16b9,_0x3bc5d2);}export async function*parseSSEStream(_0x5a3224,_0x3347dd){const _0x1451f9=a90_0x200b;if(!_0x5a3224['body'])throw new Error(_0x1451f9(0x1bb));const _0x375c98=_0x5a3224[_0x1451f9(0x1b8)][_0x1451f9(0x1af)](),_0x3fd87e=new TextDecoder();let _0x2e2b20='',_0x99c249={};try{while(!![]){const {done:_0x4f33f7,value:_0x5a1db6}=await _0x375c98[_0x1451f9(0x1a6)]();if(_0x4f33f7){if(_0x99c249['data']){_0x3347dd?.[_0x1451f9(0x1aa)](_0x1451f9(0x1b0)+_0x99c249[_0x1451f9(0x1ae)]);const _0x107ab8=parseSSEData(_0x99c249[_0x1451f9(0x1ae)]);yield _0x107ab8;}break;}_0x2e2b20+=_0x3fd87e['decode'](_0x5a1db6,{'stream':!![]});const _0x36c642=_0x2e2b20['split']('\x0a');_0x2e2b20=_0x36c642[_0x1451f9(0x1b9)]()||'';for(const _0x1e3919 of _0x36c642){if(_0x1e3919[_0x1451f9(0x1c1)]()===''){if(_0x99c249[_0x1451f9(0x1ae)]){_0x3347dd?.['debug'](_0x1451f9(0x1b0)+_0x99c249[_0x1451f9(0x1ae)]);const _0x20ce6f=parseSSEData(_0x99c249['data']);yield _0x20ce6f,_0x99c249={};}continue;}if(_0x1e3919['startsWith'](':'))continue;const _0x9a2464=_0x1e3919[_0x1451f9(0x1a8)](':');if(_0x9a2464===-0x1)continue;const _0x3e83c7=_0x1e3919[_0x1451f9(0x1be)](0x0,_0x9a2464);let _0x1fa80b=_0x1e3919[_0x1451f9(0x1be)](_0x9a2464+0x1);_0x1fa80b[_0x1451f9(0x1b1)]('\x20')&&(_0x1fa80b=_0x1fa80b[_0x1451f9(0x1be)](0x1));switch(_0x3e83c7){case _0x1451f9(0x1b5):_0x99c249[_0x1451f9(0x1b5)]=_0x1fa80b;break;case'data':_0x99c249['data']=_0x99c249[_0x1451f9(0x1ae)]?_0x99c249[_0x1451f9(0x1ae)]+'\x0a'+_0x1fa80b:_0x1fa80b;break;case'id':_0x99c249['id']=_0x1fa80b;break;}}}}finally{_0x375c98['releaseLock']();}}function parseSSEData(_0x2cbe08){const _0x346017=a90_0x200b;try{return JSON[_0x346017(0x1c0)](_0x2cbe08);}catch(_0x27e080){throw new Error(_0x346017(0x1b7)+_0x2cbe08,{'cause':_0x27e080});}}function a90_0x2a50(){const _0x272786=['data','getReader','[LLM\x20API\x20SSE]\x20','startsWith','543020gBkNHC','8447131uWUKso','8jXoBkS','event','900225ZQPepE','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','body','pop','15FJAnrZ','Response\x20body\x20is\x20null','10RwrITF','12bhhhKi','slice','26TZCnrq','parse','trim','read','32PSIDeZ','indexOf','2539506qCBZcj','debug','207169xcpLam','6670704dRjdJJ','2400433uykHld'];a90_0x2a50=function(){return _0x272786;};return a90_0x2a50();}
1
+ function a94_0x4b61(_0x165ec8,_0x426115){const _0x35b8c1=a94_0x35b8();return a94_0x4b61=function(_0x4b616d,_0x1cae71){_0x4b616d=_0x4b616d-0xa4;let _0x29faaf=_0x35b8c1[_0x4b616d];return _0x29faaf;},a94_0x4b61(_0x165ec8,_0x426115);}(function(_0x5972e5,_0x23e75f){const _0x428889=a94_0x4b61,_0x358d8f=_0x5972e5();while(!![]){try{const _0x53a9a3=-parseInt(_0x428889(0xb3))/0x1+parseInt(_0x428889(0xa5))/0x2+-parseInt(_0x428889(0xa6))/0x3*(-parseInt(_0x428889(0xb7))/0x4)+-parseInt(_0x428889(0xb8))/0x5+-parseInt(_0x428889(0xbb))/0x6+-parseInt(_0x428889(0xa7))/0x7+-parseInt(_0x428889(0xb6))/0x8*(-parseInt(_0x428889(0xaf))/0x9);if(_0x53a9a3===_0x23e75f)break;else _0x358d8f['push'](_0x358d8f['shift']());}catch(_0x43f30b){_0x358d8f['push'](_0x358d8f['shift']());}}}(a94_0x35b8,0xd636f));export async function*parseSSEStream(_0x28eb73,_0x3fc15e){const _0x15d666=a94_0x4b61;if(!_0x28eb73['body'])throw new Error(_0x15d666(0xb5));const _0x32e0c9=_0x28eb73[_0x15d666(0xba)][_0x15d666(0xa8)](),_0x2d80e1=new TextDecoder();let _0x2590bc='',_0x8f05b4={};try{while(!![]){const {done:_0xb3d2da,value:_0x55129b}=await _0x32e0c9[_0x15d666(0xb2)]();if(_0xb3d2da){if(_0x8f05b4['data']){_0x3fc15e?.[_0x15d666(0xa4)](_0x15d666(0xaa)+_0x8f05b4['data']);const _0xe1d294=parseSSEData(_0x8f05b4[_0x15d666(0xbd)]);yield _0xe1d294;}break;}_0x2590bc+=_0x2d80e1[_0x15d666(0xae)](_0x55129b,{'stream':!![]});const _0x3bd3e4=_0x2590bc[_0x15d666(0xb9)]('\x0a');_0x2590bc=_0x3bd3e4[_0x15d666(0xb4)]()||'';for(const _0x32b5fd of _0x3bd3e4){if(_0x32b5fd[_0x15d666(0xac)]()===''){if(_0x8f05b4[_0x15d666(0xbd)]){_0x3fc15e?.[_0x15d666(0xa4)](_0x15d666(0xaa)+_0x8f05b4['data']);const _0x17761e=parseSSEData(_0x8f05b4[_0x15d666(0xbd)]);yield _0x17761e,_0x8f05b4={};}continue;}if(_0x32b5fd[_0x15d666(0xbc)](':'))continue;const _0xe4c23a=_0x32b5fd[_0x15d666(0xb0)](':');if(_0xe4c23a===-0x1)continue;const _0x3730a8=_0x32b5fd[_0x15d666(0xab)](0x0,_0xe4c23a);let _0x13880d=_0x32b5fd[_0x15d666(0xab)](_0xe4c23a+0x1);_0x13880d[_0x15d666(0xbc)]('\x20')&&(_0x13880d=_0x13880d[_0x15d666(0xab)](0x1));switch(_0x3730a8){case _0x15d666(0xad):_0x8f05b4[_0x15d666(0xad)]=_0x13880d;break;case'data':_0x8f05b4[_0x15d666(0xbd)]=_0x8f05b4[_0x15d666(0xbd)]?_0x8f05b4[_0x15d666(0xbd)]+'\x0a'+_0x13880d:_0x13880d;break;case'id':_0x8f05b4['id']=_0x13880d;break;}}}}finally{_0x32e0c9[_0x15d666(0xa9)]();}}function parseSSEData(_0x567eb9){const _0x381c17=a94_0x4b61;try{return JSON[_0x381c17(0xbe)](_0x567eb9);}catch(_0x2c9374){throw new Error(_0x381c17(0xb1)+_0x567eb9,{'cause':_0x2c9374});}}function a94_0x35b8(){const _0x1ce94c=['1738584BeVoRj','3BcqKcU','4353251cYwBhU','getReader','releaseLock','[LLM\x20API\x20SSE]\x20','slice','trim','event','decode','40626WMMjxH','indexOf','Failed\x20to\x20parse\x20SSE\x20data\x20as\x20JSON:\x20','read','184603AwJNhs','pop','Response\x20body\x20is\x20null','3112CWYUrn','2626104hmzJAg','4680640HWfXmV','split','body','3970302SiWYiQ','startsWith','data','parse','debug'];a94_0x35b8=function(){return _0x1ce94c;};return a94_0x35b8();}
@@ -1 +1 @@
1
- (function(_0x5620bc,_0x37a0ee){const _0x4cfe79=a91_0x1362,_0x5c9880=_0x5620bc();while(!![]){try{const _0x215490=parseInt(_0x4cfe79(0x1e9))/0x1*(-parseInt(_0x4cfe79(0x1e8))/0x2)+parseInt(_0x4cfe79(0x1dc))/0x3*(parseInt(_0x4cfe79(0x1e6))/0x4)+-parseInt(_0x4cfe79(0x1ed))/0x5*(parseInt(_0x4cfe79(0x1ea))/0x6)+-parseInt(_0x4cfe79(0x1da))/0x7*(-parseInt(_0x4cfe79(0x1f4))/0x8)+-parseInt(_0x4cfe79(0x1e0))/0x9+-parseInt(_0x4cfe79(0x1e3))/0xa*(-parseInt(_0x4cfe79(0x1e4))/0xb)+parseInt(_0x4cfe79(0x1f6))/0xc;if(_0x215490===_0x37a0ee)break;else _0x5c9880['push'](_0x5c9880['shift']());}catch(_0x137972){_0x5c9880['push'](_0x5c9880['shift']());}}}(a91_0x47ac,0xe4ef8));function a91_0x1362(_0x22c7b8,_0x3705ee){const _0x47aca2=a91_0x47ac();return a91_0x1362=function(_0x1362ff,_0x572e78){_0x1362ff=_0x1362ff-0x1da;let _0x30edf3=_0x47aca2[_0x1362ff];return _0x30edf3;},a91_0x1362(_0x22c7b8,_0x3705ee);}import a91_0x37437c from'string-width';export function stringWidth(_0x294c30){return a91_0x37437c(_0x294c30);}export function padEnd(_0x80306b,_0x5a9316){const _0x54e0bc=stringWidth(_0x80306b);if(_0x54e0bc>=_0x5a9316)return _0x80306b;return _0x80306b+'\x20'['repeat'](_0x5a9316-_0x54e0bc);}export function padStart(_0x542fd9,_0x1123ff){const _0x8c2464=stringWidth(_0x542fd9);if(_0x8c2464>=_0x1123ff)return _0x542fd9;return'\x20'['repeat'](_0x1123ff-_0x8c2464)+_0x542fd9;}export function centerAlign(_0x1d4812,_0x2e9e89){const _0x3c03a7=a91_0x1362,_0x1498b5=stringWidth(_0x1d4812);if(_0x1498b5>_0x2e9e89){if(_0x2e9e89<=0x1)return'…'['substring'](0x0,_0x2e9e89);let _0x4c5471=_0x1d4812;while(stringWidth(_0x4c5471+'…')>_0x2e9e89){_0x4c5471=_0x4c5471[_0x3c03a7(0x1f5)](0x0,-0x1);}return _0x4c5471+'…';}if(_0x1498b5===_0x2e9e89)return _0x1d4812;const _0x27c629=_0x2e9e89-_0x1498b5,_0x4a3ab9=Math[_0x3c03a7(0x1e7)](_0x27c629/0x2),_0x27eb99=_0x27c629-_0x4a3ab9;return'\x20'[_0x3c03a7(0x1f1)](_0x4a3ab9)+_0x1d4812+'\x20'[_0x3c03a7(0x1f1)](_0x27eb99);}export function escapeStringLiteral(_0x20c64d){const _0x164aae=a91_0x1362;if(!_0x20c64d||_0x20c64d[_0x164aae(0x1f3)]()['length']===0x0)throw new Error(_0x164aae(0x1f0));const _0x14c6b9=_0x20c64d[_0x164aae(0x1db)](/'/g,'\x27\x27');return'\x27'+_0x14c6b9+'\x27';}function a91_0x47ac(){const _0x1b9469=['287DIjRfq','replace','26205hMTMqC','USER','USERNAME','padStart','15772491iUXHgY','toLowerCase','length','882280wuSasm','22caSajA','\x5c$&','4kWbElK','floor','854tSiuBF','2861NDjkTA','86070xJNtgA','test','toString','335phvTLY','unknown','random','Cannot\x20escape\x20empty\x20string\x20literal','repeat','env','trim','79240sorYQb','slice','51380220qRdQOn'];a91_0x47ac=function(){return _0x1b9469;};return a91_0x47ac();}export function globToLike(_0x256384){const _0x1e389f=a91_0x1362;let _0x45c63a=_0x256384[_0x1e389f(0x1db)](/\\/g,'\x5c\x5c')[_0x1e389f(0x1db)](/%/g,'\x5c%')[_0x1e389f(0x1db)](/_/g,'\x5c_');return _0x45c63a=_0x45c63a[_0x1e389f(0x1db)](/\*/g,'%')[_0x1e389f(0x1db)](/\?/g,'_'),_0x45c63a;}export function buildLikePattern(_0x1b9beb){const _0x74ef4d=a91_0x1362;if(!_0x1b9beb||_0x1b9beb[_0x74ef4d(0x1f3)]()[_0x74ef4d(0x1e2)]===0x0)throw new Error('Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string');const _0x18a98f=globToLike(_0x1b9beb),_0x193fc5=_0x18a98f[_0x74ef4d(0x1db)](/'/g,'\x27\x27');return'\x27'+_0x193fc5+'\x27';}export function matchGlobPattern(_0x55ca3a,_0x5a7e88){const _0x49a1be=a91_0x1362,_0x40cbad=_0x5a7e88['replace'](/[.+^${}()|[\]\\]/g,_0x49a1be(0x1e5))[_0x49a1be(0x1db)](/\*/g,'.*')[_0x49a1be(0x1db)](/\?/g,'.'),_0x483489=new RegExp('^'+_0x40cbad+'$');return _0x483489[_0x49a1be(0x1eb)](_0x55ca3a);}export function getSanitizedUsername(){const _0x537445=a91_0x1362,_0x1f214e=process[_0x537445(0x1f2)][_0x537445(0x1dd)]||process[_0x537445(0x1f2)][_0x537445(0x1de)]||_0x537445(0x1ee);return _0x1f214e[_0x537445(0x1db)](/[^a-zA-Z0-9]/g,'')[_0x537445(0x1e1)]();}export function generateRandomHex(){const _0x17e620=a91_0x1362,_0x47309f=Math[_0x17e620(0x1e7)](Math[_0x17e620(0x1ef)]()*0xfffff);return _0x47309f[_0x17e620(0x1ec)](0x10)[_0x17e620(0x1df)](0x5,'0');}
1
+ (function(_0x59e78e,_0x1c9ad3){const _0x18ecbf=a95_0x3c8f,_0x6bf0f8=_0x59e78e();while(!![]){try{const _0x5a0dfd=parseInt(_0x18ecbf(0x14a))/0x1*(parseInt(_0x18ecbf(0x14d))/0x2)+parseInt(_0x18ecbf(0x152))/0x3*(-parseInt(_0x18ecbf(0x14c))/0x4)+parseInt(_0x18ecbf(0x150))/0x5+-parseInt(_0x18ecbf(0x146))/0x6+-parseInt(_0x18ecbf(0x13f))/0x7*(parseInt(_0x18ecbf(0x14f))/0x8)+-parseInt(_0x18ecbf(0x151))/0x9+parseInt(_0x18ecbf(0x148))/0xa;if(_0x5a0dfd===_0x1c9ad3)break;else _0x6bf0f8['push'](_0x6bf0f8['shift']());}catch(_0x58c2e1){_0x6bf0f8['push'](_0x6bf0f8['shift']());}}}(a95_0x5e7f,0x8e41a));import a95_0x5794e3 from'string-width';export function stringWidth(_0x16fb09){return a95_0x5794e3(_0x16fb09);}export function padEnd(_0x44dbd6,_0x515c6f){const _0x1bc244=a95_0x3c8f,_0x2148c2=stringWidth(_0x44dbd6);if(_0x2148c2>=_0x515c6f)return _0x44dbd6;return _0x44dbd6+'\x20'[_0x1bc244(0x149)](_0x515c6f-_0x2148c2);}export function padStart(_0x35c18c,_0x4a45a7){const _0x43d531=a95_0x3c8f,_0xa67337=stringWidth(_0x35c18c);if(_0xa67337>=_0x4a45a7)return _0x35c18c;return'\x20'[_0x43d531(0x149)](_0x4a45a7-_0xa67337)+_0x35c18c;}function a95_0x3c8f(_0x5ae892,_0x49c20a){const _0x5e7f8a=a95_0x5e7f();return a95_0x3c8f=function(_0x3c8f34,_0x24e5c4){_0x3c8f34=_0x3c8f34-0x13a;let _0x2b935a=_0x5e7f8a[_0x3c8f34];return _0x2b935a;},a95_0x3c8f(_0x5ae892,_0x49c20a);}export function centerAlign(_0x1ae2c3,_0x148483){const _0x4eb13a=a95_0x3c8f,_0x4abe2f=stringWidth(_0x1ae2c3);if(_0x4abe2f>_0x148483){if(_0x148483<=0x1)return'…'[_0x4eb13a(0x13c)](0x0,_0x148483);let _0x536ddc=_0x1ae2c3;while(stringWidth(_0x536ddc+'…')>_0x148483){_0x536ddc=_0x536ddc[_0x4eb13a(0x14e)](0x0,-0x1);}return _0x536ddc+'…';}if(_0x4abe2f===_0x148483)return _0x1ae2c3;const _0x54b7cc=_0x148483-_0x4abe2f,_0x3234db=Math[_0x4eb13a(0x143)](_0x54b7cc/0x2),_0x374393=_0x54b7cc-_0x3234db;return'\x20'[_0x4eb13a(0x149)](_0x3234db)+_0x1ae2c3+'\x20'['repeat'](_0x374393);}export function escapeStringLiteral(_0x23db14){const _0x2d92b2=a95_0x3c8f;if(!_0x23db14||_0x23db14[_0x2d92b2(0x145)]()[_0x2d92b2(0x14b)]===0x0)throw new Error('Cannot\x20escape\x20empty\x20string\x20literal');const _0x5defea=_0x23db14[_0x2d92b2(0x140)](/'/g,'\x27\x27');return'\x27'+_0x5defea+'\x27';}export function globToLike(_0x1350de){const _0x504bf7=a95_0x3c8f;let _0x3eac94=_0x1350de[_0x504bf7(0x140)](/\\/g,'\x5c\x5c')['replace'](/%/g,'\x5c%')[_0x504bf7(0x140)](/_/g,'\x5c_');return _0x3eac94=_0x3eac94[_0x504bf7(0x140)](/\*/g,'%')['replace'](/\?/g,'_'),_0x3eac94;}export function buildLikePattern(_0x26abe9){const _0x488b6d=a95_0x3c8f;if(!_0x26abe9||_0x26abe9['trim']()[_0x488b6d(0x14b)]===0x0)throw new Error(_0x488b6d(0x147));const _0x53ba98=globToLike(_0x26abe9),_0x4bbfb6=_0x53ba98[_0x488b6d(0x140)](/'/g,'\x27\x27');return'\x27'+_0x4bbfb6+'\x27';}export function matchGlobPattern(_0x1de0f3,_0x125af7){const _0x4667a7=a95_0x3c8f,_0x362a6f=_0x125af7[_0x4667a7(0x140)](/[.+^${}()|[\]\\]/g,_0x4667a7(0x13a))[_0x4667a7(0x140)](/\*/g,'.*')[_0x4667a7(0x140)](/\?/g,'.'),_0x1b152e=new RegExp('^'+_0x362a6f+'$');return _0x1b152e[_0x4667a7(0x13e)](_0x1de0f3);}export function getSanitizedUsername(){const _0x5223de=a95_0x3c8f,_0x2720ac=process['env']['USER']||process['env'][_0x5223de(0x141)]||_0x5223de(0x13d);return _0x2720ac['replace'](/[^a-zA-Z0-9]/g,'')[_0x5223de(0x13b)]();}export function generateRandomHex(){const _0x1d6f49=a95_0x3c8f,_0xd0c475=Math['floor'](Math[_0x1d6f49(0x142)]()*0xfffff);return _0xd0c475[_0x1d6f49(0x144)](0x10)[_0x1d6f49(0x153)](0x5,'0');}function a95_0x5e7f(){const _0x57ab9e=['64XCudqC','slice','2607152HziZVM','2449125PkrfMm','5615352aiBRss','2433igZIaJ','padStart','\x5c$&','toLowerCase','substring','unknown','test','7njaIGD','replace','USERNAME','random','floor','toString','trim','5410284GzPKuv','Cannot\x20build\x20LIKE\x20pattern\x20from\x20empty\x20string','23063110XlMQbG','repeat','12057xAxHus','length','3688xDtnUm'];a95_0x5e7f=function(){return _0x57ab9e;};return a95_0x5e7f();}
@@ -1 +1 @@
1
- function a92_0x173d(_0x3a45f8,_0x36c7ce){const _0x2a9e2e=a92_0x2a9e();return a92_0x173d=function(_0x173d27,_0x553a8c){_0x173d27=_0x173d27-0xb3;let _0x3d709a=_0x2a9e2e[_0x173d27];return _0x3d709a;},a92_0x173d(_0x3a45f8,_0x36c7ce);}(function(_0x1e6752,_0x572249){const _0x529575=a92_0x173d,_0xa3f817=_0x1e6752();while(!![]){try{const _0x1f4b84=parseInt(_0x529575(0xcc))/0x1+parseInt(_0x529575(0xba))/0x2+parseInt(_0x529575(0xc7))/0x3+parseInt(_0x529575(0xc6))/0x4*(parseInt(_0x529575(0xcf))/0x5)+-parseInt(_0x529575(0xb4))/0x6*(-parseInt(_0x529575(0xc9))/0x7)+-parseInt(_0x529575(0xc4))/0x8*(parseInt(_0x529575(0xc3))/0x9)+parseInt(_0x529575(0xca))/0xa*(-parseInt(_0x529575(0xb6))/0xb);if(_0x1f4b84===_0x572249)break;else _0xa3f817['push'](_0xa3f817['shift']());}catch(_0x37337f){_0xa3f817['push'](_0xa3f817['shift']());}}}(a92_0x2a9e,0x9049b));function hasWildcard(_0x456e65){const _0x2d4786=a92_0x173d;return _0x456e65[_0x2d4786(0xcd)]('*')||_0x456e65[_0x2d4786(0xcd)]('?');}export function parseTableReference(_0x5196d6){const _0x2b31e0=a92_0x173d;if(!_0x5196d6||_0x5196d6[_0x2b31e0(0xb9)]()[_0x2b31e0(0xc0)]===0x0)throw new Error(_0x2b31e0(0xb3));const _0x126e3c=_0x5196d6[_0x2b31e0(0xb9)](),_0x42e44d={'original':_0x126e3c},_0x2cc7a3=_0x126e3c[_0x2b31e0(0xbf)]('.');if(_0x2cc7a3[_0x2b31e0(0xc0)]===0x1){const _0x3fc25b=_0x2cc7a3[0x0];if(!_0x3fc25b)throw new Error(_0x2b31e0(0xbe));_0x42e44d['table']=_0x3fc25b;}else{if(_0x2cc7a3[_0x2b31e0(0xc0)]===0x2){const [_0x2dc1ff,_0x101f98]=_0x2cc7a3;if(!_0x2dc1ff)throw new Error(_0x2b31e0(0xbc));if(!_0x101f98)throw new Error(_0x2b31e0(0xbd));_0x42e44d[_0x2b31e0(0xc8)]=_0x2dc1ff,_0x42e44d['table']=_0x101f98;}else{if(_0x2cc7a3['length']===0x3){const [_0x3e3429,_0x3007d2,_0x20b76b]=_0x2cc7a3;if(!_0x3e3429||!_0x3007d2||!_0x20b76b)throw new Error(_0x2b31e0(0xbb));_0x42e44d[_0x2b31e0(0xc2)]=_0x3e3429,_0x42e44d[_0x2b31e0(0xc8)]=_0x3007d2,_0x42e44d['table']=_0x20b76b;}else throw new Error(_0x2b31e0(0xb7));}}return _0x42e44d;}export function formatTableReference(_0x5cfd8d){const _0x3a680c=a92_0x173d,_0x356e4d=[];return _0x5cfd8d['catalog']&&_0x356e4d['push'](_0x5cfd8d['catalog']),_0x5cfd8d[_0x3a680c(0xc8)]&&_0x356e4d[_0x3a680c(0xb5)](_0x5cfd8d[_0x3a680c(0xc8)]),_0x5cfd8d[_0x3a680c(0xcb)]&&_0x356e4d[_0x3a680c(0xb5)](_0x5cfd8d[_0x3a680c(0xcb)]),_0x356e4d[_0x3a680c(0xce)]('.');}function a92_0x2a9e(){const _0x47fe3a=['206974dOxGZT','includes','join','150195ojhdXK','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','411438ZnbiZw','push','143kTTnrN','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','Table\x20name\x20is\x20required\x20for\x20describe\x20operation','trim','159120qZtZBA','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)','Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)','Pattern\x20cannot\x20be\x20just\x20a\x20dot','split','length','Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation','catalog','755496gDWdSC','32wRUgNH','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','20zzDcYo','2794602iHQZQj','database','14mNOkZJ','445100sEssAr','table'];a92_0x2a9e=function(){return _0x47fe3a;};return a92_0x2a9e();}export function validateTableListReference(_0x34803f){return undefined;}export function validateTableDescribeReference(_0x3d996a){const _0xc2aa29=a92_0x173d;if(!_0x3d996a[_0xc2aa29(0xcb)])return _0xc2aa29(0xb8);if(_0x3d996a[_0xc2aa29(0xc8)]&&hasWildcard(_0x3d996a[_0xc2aa29(0xc8)]))return _0xc2aa29(0xc5);if(hasWildcard(_0x3d996a[_0xc2aa29(0xcb)]))return _0xc2aa29(0xc1);return undefined;}
1
+ (function(_0x3f4766,_0x4971e3){const _0x260de0=a96_0x1950,_0x4753c8=_0x3f4766();while(!![]){try{const _0x40e879=parseInt(_0x260de0(0x158))/0x1+-parseInt(_0x260de0(0x14e))/0x2*(parseInt(_0x260de0(0x151))/0x3)+parseInt(_0x260de0(0x149))/0x4+parseInt(_0x260de0(0x152))/0x5*(-parseInt(_0x260de0(0x143))/0x6)+parseInt(_0x260de0(0x14f))/0x7*(-parseInt(_0x260de0(0x153))/0x8)+-parseInt(_0x260de0(0x145))/0x9*(-parseInt(_0x260de0(0x142))/0xa)+parseInt(_0x260de0(0x14a))/0xb;if(_0x40e879===_0x4971e3)break;else _0x4753c8['push'](_0x4753c8['shift']());}catch(_0x37b606){_0x4753c8['push'](_0x4753c8['shift']());}}}(a96_0x52a9,0xcdcfc));function hasWildcard(_0xdc5c4d){const _0x26e78a=a96_0x1950;return _0xdc5c4d['includes']('*')||_0xdc5c4d[_0x26e78a(0x155)]('?');}function a96_0x1950(_0x52b243,_0x5c78da){const _0x52a91f=a96_0x52a9();return a96_0x1950=function(_0x19501a,_0x5606b6){_0x19501a=_0x19501a-0x141;let _0x1ed45b=_0x52a91f[_0x19501a];return _0x1ed45b;},a96_0x1950(_0x52b243,_0x5c78da);}export function parseTableReference(_0x38e7f9){const _0xd570e8=a96_0x1950;if(!_0x38e7f9||_0x38e7f9[_0xd570e8(0x14d)]()['length']===0x0)throw new Error(_0xd570e8(0x156));const _0x21f49e=_0x38e7f9['trim'](),_0x520273={'original':_0x21f49e},_0x55f63b=_0x21f49e[_0xd570e8(0x157)]('.');if(_0x55f63b[_0xd570e8(0x148)]===0x1){const _0x25aa9a=_0x55f63b[0x0];if(!_0x25aa9a)throw new Error(_0xd570e8(0x154));_0x520273['table']=_0x25aa9a;}else{if(_0x55f63b[_0xd570e8(0x148)]===0x2){const [_0x583ca7,_0xcbf5de]=_0x55f63b;if(!_0x583ca7)throw new Error('Database\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20databases\x20(e.g.,\x20\x22*.mytable\x22)');if(!_0xcbf5de)throw new Error('Table\x20part\x20cannot\x20be\x20empty\x20-\x20use\x20\x22*\x22\x20for\x20all\x20tables\x20(e.g.,\x20\x22mydb.*\x22)');_0x520273[_0xd570e8(0x147)]=_0x583ca7,_0x520273['table']=_0xcbf5de;}else{if(_0x55f63b[_0xd570e8(0x148)]===0x3){const [_0x25cb48,_0x2f4d79,_0x36a2a9]=_0x55f63b;if(!_0x25cb48||!_0x2f4d79||!_0x36a2a9)throw new Error(_0xd570e8(0x14c));_0x520273[_0xd570e8(0x159)]=_0x25cb48,_0x520273[_0xd570e8(0x147)]=_0x2f4d79,_0x520273[_0xd570e8(0x144)]=_0x36a2a9;}else throw new Error(_0xd570e8(0x150));}}return _0x520273;}export function formatTableReference(_0x281b1c){const _0x4c8d57=a96_0x1950,_0x30cf32=[];return _0x281b1c['catalog']&&_0x30cf32['push'](_0x281b1c['catalog']),_0x281b1c[_0x4c8d57(0x147)]&&_0x30cf32[_0x4c8d57(0x14b)](_0x281b1c[_0x4c8d57(0x147)]),_0x281b1c[_0x4c8d57(0x144)]&&_0x30cf32[_0x4c8d57(0x14b)](_0x281b1c[_0x4c8d57(0x144)]),_0x30cf32['join']('.');}export function validateTableListReference(_0x4f621b){return undefined;}export function validateTableDescribeReference(_0x955546){const _0x1a61fc=a96_0x1950;if(!_0x955546['table'])return _0x1a61fc(0x141);if(_0x955546[_0x1a61fc(0x147)]&&hasWildcard(_0x955546[_0x1a61fc(0x147)]))return _0x1a61fc(0x146);if(hasWildcard(_0x955546[_0x1a61fc(0x144)]))return'Wildcards\x20are\x20not\x20allowed\x20in\x20table\x20name\x20for\x20describe\x20operation';return undefined;}function a96_0x52a9(){const _0x3bd8c1=['Table\x20name\x20is\x20required\x20for\x20describe\x20operation','3314870dCEnNl','6FZwJYf','table','18Hirzkn','Wildcards\x20are\x20not\x20allowed\x20in\x20database\x20name\x20for\x20describe\x20operation','database','length','1575508SFGSIW','201630EfyhEc','push','Invalid\x20catalog.database.table\x20format\x20-\x20all\x20parts\x20must\x20be\x20non-empty','trim','127190SWnNxS','1288203RQgTQb','Invalid\x20pattern\x20format\x20-\x20too\x20many\x20dots\x20(max:\x20catalog.database.table)','15lwiwQY','1668365oqjXRT','32jkYPTu','Pattern\x20cannot\x20be\x20just\x20a\x20dot','includes','Pattern\x20cannot\x20be\x20empty\x20or\x20whitespace-only','split','1155587csndPt','catalog'];a96_0x52a9=function(){return _0x3bd8c1;};return a96_0x52a9();}