gemit-cli 1.7.1 → 1.7.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.
@@ -1 +1 @@
1
- function _0x87b2(_0x4ded2e,_0xf21daa){_0x4ded2e=_0x4ded2e-0x122;const _0x526160=_0x4bcc();let _0x13f523=_0x526160[_0x4ded2e];return _0x13f523;}(function(_0x4063db,_0x171551){const _0x34a47e=_0x87b2,_0x4e6131=_0x4063db();while(!![]){try{const _0x27cf0d=parseInt(_0x34a47e(0x140))/0x1+parseInt(_0x34a47e(0x12b))/0x2*(-parseInt(_0x34a47e(0x13b))/0x3)+parseInt(_0x34a47e(0x134))/0x4+parseInt(_0x34a47e(0x137))/0x5+parseInt(_0x34a47e(0x125))/0x6*(-parseInt(_0x34a47e(0x138))/0x7)+-parseInt(_0x34a47e(0x132))/0x8+-parseInt(_0x34a47e(0x13d))/0x9;if(_0x27cf0d===_0x171551)break;else _0x4e6131['push'](_0x4e6131['shift']());}catch(_0x1661f1){_0x4e6131['push'](_0x4e6131['shift']());}}}(_0x4bcc,0x2f8fc));function _0x4bcc(){const _0x52d074=['dist','16896jjmwLh','dOXKC','2000979Zqtsfa','json','+)+$','387571aZqObD','(((.+)+)','aXHkX','0.0.0','18fwBGcD','msBke','fsKmM','ure','zAqPU','version','62TUnNaw','toString','parse','search','apply','package.','tor','462664fhZjhD','dist-sec','1419956aNPtlF','Znwbo','orCeG','216205LnGtOa','317877KkvElW','onDtn'];_0x4bcc=function(){return _0x52d074;};return _0x4bcc();}const _0x3dbfd7=(function(){let _0x4ddeb3=!![];return function(_0x10ec6b,_0x22cc35){const _0x2e3e47=_0x4ddeb3?function(){const _0x341283=_0x87b2;if(_0x22cc35){const _0x13a4f0=_0x22cc35[_0x341283(0x12f)](_0x10ec6b,arguments);return _0x22cc35=null,_0x13a4f0;}}:function(){};return _0x4ddeb3=![],_0x2e3e47;};}()),_0x13f523=_0x3dbfd7(this,function(){const _0x2cb2f7=_0x87b2,_0x56e14a={'aXHkX':_0x2cb2f7(0x122)+_0x2cb2f7(0x13f)};return _0x13f523[_0x2cb2f7(0x12c)]()[_0x2cb2f7(0x12e)](_0x56e14a['aXHkX'])[_0x2cb2f7(0x12c)]()['construc'+_0x2cb2f7(0x131)](_0x13f523)[_0x2cb2f7(0x12e)](_0x56e14a[_0x2cb2f7(0x123)]);});_0x13f523();import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';export function getCliVersion(){const _0x5d6d33=_0x87b2,_0x4eba68={'Znwbo':function(_0x58b885,_0x2bafdd){return _0x58b885(_0x2bafdd);},'msBke':function(_0x1ab6d9,_0x45d761){return _0x1ab6d9===_0x45d761;},'dOXKC':_0x5d6d33(0x13a),'onDtn':function(_0x371e3f,_0x3f8ee){return _0x371e3f(_0x3f8ee);},'fsKmM':function(_0x2a9e3c,_0x53e46f,_0x44b6c8,_0x476efc){return _0x2a9e3c(_0x53e46f,_0x44b6c8,_0x476efc);},'zAqPU':_0x5d6d33(0x130)+'json','YwOTO':function(_0x36541b,_0x494d6c,_0x542077){return _0x36541b(_0x494d6c,_0x542077);},'aNRNB':'utf8','orCeG':_0x5d6d33(0x124)};try{const _0x1bb678=fileURLToPath(import.meta.url),_0x4a9591=_0x4eba68[_0x5d6d33(0x135)](dirname,_0x1bb678),_0x507c3a=_0x4eba68[_0x5d6d33(0x126)](_0x4eba68[_0x5d6d33(0x135)](basename,_0x4a9591),_0x4eba68[_0x5d6d33(0x13c)])||_0x4eba68[_0x5d6d33(0x126)](_0x4eba68[_0x5d6d33(0x139)](basename,_0x4a9591),_0x5d6d33(0x133)+_0x5d6d33(0x128))?_0x4eba68[_0x5d6d33(0x127)](join,_0x4a9591,'..',_0x4eba68[_0x5d6d33(0x129)]):join(_0x4a9591,'package.'+_0x5d6d33(0x13e)),_0x511ad4=_0x4eba68['YwOTO'](readFileSync,_0x507c3a,_0x4eba68['aNRNB']),_0x3d1f18=JSON[_0x5d6d33(0x12d)](_0x511ad4);return _0x3d1f18[_0x5d6d33(0x12a)]||_0x4eba68[_0x5d6d33(0x136)];}catch{return _0x4eba68[_0x5d6d33(0x136)];}}
1
+ (function(_0x36e787,_0x4746fc){const _0xce8a8b=_0x36cf,_0x2c1583=_0x36e787();while(!![]){try{const _0x3153da=parseInt(_0xce8a8b(0x11d))/0x1*(-parseInt(_0xce8a8b(0x114))/0x2)+parseInt(_0xce8a8b(0x120))/0x3*(-parseInt(_0xce8a8b(0x115))/0x4)+-parseInt(_0xce8a8b(0x125))/0x5*(-parseInt(_0xce8a8b(0x12b))/0x6)+parseInt(_0xce8a8b(0x119))/0x7+parseInt(_0xce8a8b(0x11a))/0x8+-parseInt(_0xce8a8b(0x113))/0x9+parseInt(_0xce8a8b(0x116))/0xa;if(_0x3153da===_0x4746fc)break;else _0x2c1583['push'](_0x2c1583['shift']());}catch(_0x20acdb){_0x2c1583['push'](_0x2c1583['shift']());}}}(_0x2f08,0xbcfed));const _0xa264bb=(function(){let _0x2e399d=!![];return function(_0x258f50,_0x5d05f1){const _0x3d4de6=_0x2e399d?function(){if(_0x5d05f1){const _0x168170=_0x5d05f1['apply'](_0x258f50,arguments);return _0x5d05f1=null,_0x168170;}}:function(){};return _0x2e399d=![],_0x3d4de6;};}()),_0x43c8f5=_0xa264bb(this,function(){const _0x1e8584=_0x36cf,_0x1f3114={'LQMXN':_0x1e8584(0x129)+_0x1e8584(0x122)};return _0x43c8f5[_0x1e8584(0x128)]()['search'](_0x1f3114[_0x1e8584(0x11e)])['toString']()['construc'+_0x1e8584(0x118)](_0x43c8f5)['search'](_0x1e8584(0x129)+_0x1e8584(0x122));});_0x43c8f5();import{basename,dirname,join}from'path';function _0x36cf(_0x550fbb,_0xea0d43){_0x550fbb=_0x550fbb-0x112;const _0x3d00f7=_0x2f08();let _0x43c8f5=_0x3d00f7[_0x550fbb];return _0x43c8f5;}import{readFileSync}from'fs';function _0x2f08(){const _0x21ddda=['+)+$','LUwpB','PzqlE','5LnrGfn','utf8','parse','toString','(((.+)+)','package.','3284706PCXgwX','ure','KzxfU','9745605zeEoFE','1502948XLqCTs','1092XUlRrH','13872920ASaToN','nVUOx','tor','4879609kmIGcs','9512056KcjJIP','version','JcDNb','1ckwdAV','LQMXN','TwxRa','13323qgkNoG','xglCD'];_0x2f08=function(){return _0x21ddda;};return _0x2f08();}import{fileURLToPath}from'url';export function getCliVersion(){const _0x4d1dd5=_0x36cf,_0x3d8b50={'KzxfU':function(_0x531c3c,_0x180943){return _0x531c3c(_0x180943);},'TwxRa':function(_0xe1f1b9,_0x4ebab3){return _0xe1f1b9===_0x4ebab3;},'TDUoC':function(_0x1fb826,_0xd0089e){return _0x1fb826(_0xd0089e);},'PzqlE':'dist','UTVyW':function(_0xfc61b7,_0x31d8dc){return _0xfc61b7===_0x31d8dc;},'LUwpB':'dist-sec'+_0x4d1dd5(0x12c),'xglCD':function(_0x927859,_0x13ccb2,_0x130f35,_0x114763){return _0x927859(_0x13ccb2,_0x130f35,_0x114763);},'nVUOx':function(_0x1672d7,_0x433aea,_0x194fb5){return _0x1672d7(_0x433aea,_0x194fb5);},'njFIj':_0x4d1dd5(0x12a)+'json','JcDNb':'0.0.0'};try{const _0x320273=_0x3d8b50[_0x4d1dd5(0x112)](fileURLToPath,import.meta.url),_0x3a7d49=_0x3d8b50[_0x4d1dd5(0x112)](dirname,_0x320273),_0x4efaa7=_0x3d8b50[_0x4d1dd5(0x11f)](_0x3d8b50['TDUoC'](basename,_0x3a7d49),_0x3d8b50[_0x4d1dd5(0x124)])||_0x3d8b50['UTVyW'](_0x3d8b50[_0x4d1dd5(0x112)](basename,_0x3a7d49),_0x3d8b50[_0x4d1dd5(0x123)])?_0x3d8b50[_0x4d1dd5(0x121)](join,_0x3a7d49,'..',_0x4d1dd5(0x12a)+'json'):_0x3d8b50[_0x4d1dd5(0x117)](join,_0x3a7d49,_0x3d8b50['njFIj']),_0x3acf84=_0x3d8b50[_0x4d1dd5(0x117)](readFileSync,_0x4efaa7,_0x4d1dd5(0x126)),_0x5d27ac=JSON[_0x4d1dd5(0x127)](_0x3acf84);return _0x5d27ac[_0x4d1dd5(0x11b)]||_0x3d8b50['JcDNb'];}catch{return _0x3d8b50[_0x4d1dd5(0x11c)];}}
@@ -1 +1 @@
1
- (function(_0x5a9381,_0x5a2b4e){var _0x267f56=_0x381f,_0x455db7=_0x5a9381();while(!![]){try{var _0x5a6b85=parseInt(_0x267f56(0x96))/0x1+-parseInt(_0x267f56(0x98))/0x2*(-parseInt(_0x267f56(0x95))/0x3)+-parseInt(_0x267f56(0xa7))/0x4*(parseInt(_0x267f56(0x9b))/0x5)+-parseInt(_0x267f56(0xab))/0x6+-parseInt(_0x267f56(0xae))/0x7*(-parseInt(_0x267f56(0xa9))/0x8)+parseInt(_0x267f56(0x99))/0x9*(parseInt(_0x267f56(0x9a))/0xa)+parseInt(_0x267f56(0xad))/0xb*(-parseInt(_0x267f56(0xac))/0xc);if(_0x5a6b85===_0x5a2b4e)break;else _0x455db7['push'](_0x455db7['shift']());}catch(_0x43c0bd){_0x455db7['push'](_0x455db7['shift']());}}}(_0x18f9,0x86d9c));var _0x33df96=(function(){var _0x94f69d=!![];return function(_0x510a26,_0x198857){var _0x448660=_0x94f69d?function(){if(_0x198857){var _0x55b30a=_0x198857['apply'](_0x510a26,arguments);return _0x198857=null,_0x55b30a;}}:function(){};return _0x94f69d=![],_0x448660;};}()),_0x292c4e=_0x33df96(this,function(){var _0x5daefd=_0x381f,_0x736eba={'rkEZU':_0x5daefd(0x9e)+_0x5daefd(0xb0)};return _0x292c4e[_0x5daefd(0x9d)]()[_0x5daefd(0xaa)](_0x736eba['rkEZU'])['toString']()[_0x5daefd(0x9f)+_0x5daefd(0xa6)](_0x292c4e)[_0x5daefd(0xaa)](_0x736eba[_0x5daefd(0x97)]);});_0x292c4e();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';function _0x381f(_0x42a9ad,_0x1b4cff){_0x42a9ad=_0x42a9ad-0x95;var _0x5274c9=_0x18f9();var _0x292c4e=_0x5274c9[_0x42a9ad];return _0x292c4e;}function _0x18f9(){var _0x303f06=['stion\x20fl','+)+$','he\x20sugge','46194jbKqcs','413264OzUYkB','rkEZU','26OqiNFh','27PBliIA','2877890TTHEvy','64235BwbKFI','check','toString','(((.+)+)','construc','-all`\x20to','all','it\x20add\x20-','\x20stage\x20e','gKeru','ntinue\x20t','tor','184mLxTkh','Use\x20`gem','984PNRxJk','search','5195424DrIYeo','24WHQySk','2139412KzEwFt','52437yWaMGk'];_0x18f9=function(){return _0x303f06;};return _0x18f9();}export async function addAndCommit(_0x522554={}){var _0x1271d1=_0x381f,_0x5b223a={'gKeru':function(_0x5b16d9,_0x565161){return _0x5b16d9(_0x565161);}};!_0x522554[_0x1271d1(0xa1)]&&_0x5b223a[_0x1271d1(0xa4)](failAndExit,_0x1271d1(0xa8)+_0x1271d1(0xa2)+_0x1271d1(0xa0)+_0x1271d1(0xa3)+'verythin'+'g\x20and\x20co'+_0x1271d1(0xa5)+_0x1271d1(0xb1)+_0x1271d1(0xaf)+'ow.'),await generateCommit({'all':!![],'check':_0x5b223a[_0x1271d1(0xa4)](Boolean,_0x522554[_0x1271d1(0x9c)])});}
1
+ (function(_0x387aed,_0x42b298){var _0x5c9882=_0x57c9,_0x2783ac=_0x387aed();while(!![]){try{var _0x5c875a=-parseInt(_0x5c9882(0x79))/0x1*(parseInt(_0x5c9882(0x74))/0x2)+-parseInt(_0x5c9882(0x78))/0x3*(parseInt(_0x5c9882(0x71))/0x4)+-parseInt(_0x5c9882(0x73))/0x5+parseInt(_0x5c9882(0x6e))/0x6+-parseInt(_0x5c9882(0x6a))/0x7+parseInt(_0x5c9882(0x6d))/0x8*(-parseInt(_0x5c9882(0x72))/0x9)+-parseInt(_0x5c9882(0x6c))/0xa*(-parseInt(_0x5c9882(0x7d))/0xb);if(_0x5c875a===_0x42b298)break;else _0x2783ac['push'](_0x2783ac['shift']());}catch(_0x577132){_0x2783ac['push'](_0x2783ac['shift']());}}}(_0x2150,0x37ec4));var _0x50e800=(function(){var _0x3946cf=!![];return function(_0x49800b,_0x568cfa){var _0x4aec2e=_0x3946cf?function(){var _0x3235d7=_0x57c9;if(_0x568cfa){var _0x431dff=_0x568cfa[_0x3235d7(0x6b)](_0x49800b,arguments);return _0x568cfa=null,_0x431dff;}}:function(){};return _0x3946cf=![],_0x4aec2e;};}()),_0x57e451=_0x50e800(this,function(){var _0xa986ff=_0x57c9,_0x57efb1={'SKXpM':'(((.+)+)'+'+)+$'};return _0x57e451[_0xa986ff(0x68)]()[_0xa986ff(0x69)]('(((.+)+)'+_0xa986ff(0x6f))[_0xa986ff(0x68)]()[_0xa986ff(0x7f)+_0xa986ff(0x67)](_0x57e451)['search'](_0x57efb1[_0xa986ff(0x80)]);});function _0x2150(){var _0x27e4ad=['all','11MpHkDg','ow.','construc','SKXpM','VVeer','tor','toString','search','2733206pikQFZ','apply','17375390OyPrFw','48nZNiPO','955482PxdXBm','+)+$','g\x20and\x20co','1094852GmxyYF','175005phWFsh','2283910IEjzEs','38zbdYTO','\x20stage\x20e','ntinue\x20t','verythin','3pZCdtG','22637RGPTIF','-all`\x20to','it\x20add\x20-'];_0x2150=function(){return _0x27e4ad;};return _0x2150();}function _0x57c9(_0x58b119,_0x521bd9){_0x58b119=_0x58b119-0x67;var _0x2a9e5a=_0x2150();var _0x57e451=_0x2a9e5a[_0x58b119];return _0x57e451;}_0x57e451();import{failAndExit}from'../ui.js';import{generateCommit}from'./commit.js';export async function addAndCommit(_0xe0acc6={}){var _0x3b4a21=_0x57c9,_0x46dff7={'VVeer':function(_0x83d1a0,_0xb9f35f){return _0x83d1a0(_0xb9f35f);},'dlsZi':'Use\x20`gem'+_0x3b4a21(0x7b)+_0x3b4a21(0x7a)+_0x3b4a21(0x75)+_0x3b4a21(0x77)+_0x3b4a21(0x70)+_0x3b4a21(0x76)+'he\x20sugge'+'stion\x20fl'+_0x3b4a21(0x7e),'NsgZi':function(_0x3bf4f8,_0x4ce850){return _0x3bf4f8(_0x4ce850);}};!_0xe0acc6[_0x3b4a21(0x7c)]&&_0x46dff7['VVeer'](failAndExit,_0x46dff7['dlsZi']),await _0x46dff7['NsgZi'](generateCommit,{'all':!![],'check':_0x46dff7[_0x3b4a21(0x81)](Boolean,_0xe0acc6['check'])});}
@@ -1 +1 @@
1
- function _0x44b4(_0x476587,_0x338c65){_0x476587=_0x476587-0x9d;const _0xc4ccbf=_0x5e9c();let _0x229589=_0xc4ccbf[_0x476587];return _0x229589;}(function(_0x1640dc,_0x4c2414){const _0x316a2d=_0x44b4,_0x19cb42=_0x1640dc();while(!![]){try{const _0x52abc4=parseInt(_0x316a2d(0xcf))/0x1*(-parseInt(_0x316a2d(0xcc))/0x2)+-parseInt(_0x316a2d(0xe8))/0x3+-parseInt(_0x316a2d(0xb5))/0x4+parseInt(_0x316a2d(0xc6))/0x5+-parseInt(_0x316a2d(0xf1))/0x6*(parseInt(_0x316a2d(0xd5))/0x7)+-parseInt(_0x316a2d(0xf4))/0x8*(parseInt(_0x316a2d(0xa4))/0x9)+parseInt(_0x316a2d(0xe3))/0xa*(parseInt(_0x316a2d(0xf0))/0xb);if(_0x52abc4===_0x4c2414)break;else _0x19cb42['push'](_0x19cb42['shift']());}catch(_0x39aa62){_0x19cb42['push'](_0x19cb42['shift']());}}}(_0x5e9c,0xad843));function _0x5e9c(){const _0x131db2=['yCsDP','7280230ciMHRY','sting\x20re','NcDOm','types:\x20f','xists:\x20','289581EkibtW','inking\x20a','txfOC','es:\x0a\x20\x20\x20\x20','Allowed\x20','haracter','message','jMTus','33lrJRtx','54YAlFHt','d\x20below.','describe','654840smsCDv','construc','inherit','bnLwN','th\x20this\x20','/<kebab-','AbpQm','\x0a\x20\x20\x20\x20Rul','feat/upd','Branch\x20w','Failed\x20t','log','Return\x20O','s\x0a\x20\x20\x20\x20-\x20','63tVbNlF','te\x20branc','viGvo','nglish\x0a\x0a','ame\x20in\x20E','erate\x20a\x20','\x20docs,\x20r','Branch\x20a','h\x20name.','QwpuG',':\x20<type>','gRDvi','name?\x20(y','tNiJx','apply','includes','AGlVh','3047356dukjPP','YAWbG','\x20test\x0a\x20\x20','reated.','ase','\x20branch.','+)+$','XLCpY','AI\x20is\x20th','efactor,','toLowerC','IAoDQ','ttjQu','VqMjh','invoke','git\x20bran','GnzIV','2347045efwXrB','D\x20BRANCH',',\x20chore,','UHSmj','\x20\x20\x20\x20Desc','-\x20Format','746310acLmUE','search','\x0a\x20\x20\x20\x20','1bfCFnx','slice','o\x20create','Create\x20b','replace','Name','107527sbEoDm','lready\x20e','/n):\x20','for\x20the\x20','>\x0a\x20\x20\x20\x20-\x20','toString','\x0a\x20\x20\x20\x20Gen','(((.+)+)','content','ranch\x20wi','ch\x20name\x20','git','th:\x2050\x20c'];_0x5e9c=function(){return _0x131db2;};return _0x5e9c();}const _0x50db1c=(function(){let _0x148363=!![];return function(_0x29ac5f,_0x1d4456){const _0x583121=_0x148363?function(){const _0x104fb3=_0x44b4;if(_0x1d4456){const _0x5d6454=_0x1d4456[_0x104fb3(0xb2)](_0x29ac5f,arguments);return _0x1d4456=null,_0x5d6454;}}:function(){};return _0x148363=![],_0x583121;};}()),_0x229589=_0x50db1c(this,function(){const _0x11615b=_0x44b4,_0x27e939={'gRDvi':_0x11615b(0xdc)+_0x11615b(0xbb)};return _0x229589[_0x11615b(0xda)]()['search'](_0x27e939[_0x11615b(0xaf)])[_0x11615b(0xda)]()[_0x11615b(0xf5)+'tor'](_0x229589)[_0x11615b(0xcd)](_0x27e939[_0x11615b(0xaf)]);});_0x229589();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0xe0b62d){const _0x23cd88=_0x44b4,_0x3cb44d={'yCsDP':'NFD','NFqhe':function(_0x685a2d,_0x43bccf){return _0x685a2d||_0x43bccf;},'QwpuG':_0x23cd88(0x9e)+'ate'},_0x2f99ff=_0xe0b62d['normaliz'+'e'](_0x3cb44d[_0x23cd88(0xe2)])[_0x23cd88(0xd3)](/[\u0300-\u036f]/g,'')[_0x23cd88(0xbf)+_0x23cd88(0xb9)]()[_0x23cd88(0xd3)](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')['replace'](/\/{2,}/g,'/')[_0x23cd88(0xd3)](/^-+|-+$/g,'')[_0x23cd88(0xd3)](/^\/+|\/+$/g,''),_0x4ae07a=_0x2f99ff[_0x23cd88(0xd0)](0x0,0x32)['replace'](/\/+$/g,'')['replace'](/-+$/g,''),_0x40f745=_0x3cb44d['NFqhe'](_0x4ae07a,_0x3cb44d[_0x23cd88(0xad)]);if(!_0x40f745[_0x23cd88(0xb3)]('/'))return'feat/'+_0x40f745;return _0x40f745;}function getLLM(){const _0x32e007=_0x44b4,_0x164832={'xFDhH':function(_0x58d1c4,_0x255913){return _0x58d1c4(_0x255913);},'YXMPN':function(_0x30e2dc,_0x23f8d0){return _0x30e2dc(_0x23f8d0);}};try{return createLLM();}catch(_0x1a6400){const _0x5861de=_0x1a6400 instanceof Error?_0x1a6400[_0x32e007(0xee)]:_0x164832['xFDhH'](String,_0x1a6400);_0x164832['YXMPN'](failAndExit,_0x5861de);}}export async function suggestBranch(_0x399b81){const _0x55812b=_0x44b4,_0xb21e2c={'bnLwN':function(_0x46016){return _0x46016();},'jMTus':function(_0x2a432f,_0x3c0b5c,_0x2363fd){return _0x2a432f(_0x3c0b5c,_0x2363fd);},'AbpQm':_0x55812b(0xbd)+_0x55812b(0xe9)+'nd\x20reque'+_0x55812b(0xe4)+'sponse..'+'.','tNiJx':function(_0x586f66,_0x4c9c8a){return _0x586f66(_0x4c9c8a);},'txfOC':function(_0x14b27e,_0x5ea514){return _0x14b27e(_0x5ea514);},'QDWUo':_0x55812b(0xa0)+'o\x20genera'+_0x55812b(0xa5)+_0x55812b(0xac),'UHSmj':'SUGGESTE'+_0x55812b(0xc7),'NcDOm':_0x55812b(0xd4),'ttjQu':_0x55812b(0xd2)+_0x55812b(0xde)+_0x55812b(0xf8)+_0x55812b(0xb0)+_0x55812b(0xd7),'AGlVh':'CANCELED','VqMjh':_0x55812b(0x9f)+'as\x20not\x20c'+_0x55812b(0xb8),'viGvo':_0x55812b(0xe0),'YAWbG':'checkout','GnzIV':_0x55812b(0xf6),'XLCpY':function(_0x3f96bc,_0x2e6be3){return _0x3f96bc(_0x2e6be3);},'IAoDQ':_0x55812b(0xa0)+_0x55812b(0xd1)+_0x55812b(0xba)};_0xb21e2c[_0x55812b(0xf7)](getGitStatus);const _0x14928b=getLLM(),_0x5819f6=_0x55812b(0xdb)+_0x55812b(0xa9)+_0x55812b(0xc4)+_0x55812b(0xdf)+_0x55812b(0xd8)+'feature\x20'+_0x55812b(0xf3)+_0x55812b(0xf2)+_0x55812b(0x9d)+_0x55812b(0xeb)+_0x55812b(0xcb)+_0x55812b(0xae)+_0x55812b(0xf9)+'case-des'+'cription'+_0x55812b(0xd9)+_0x55812b(0xec)+_0x55812b(0xe6)+'eat,\x20fix'+_0x55812b(0xc8)+_0x55812b(0xaa)+_0x55812b(0xbe)+_0x55812b(0xb7)+'\x20\x20-\x20Maxi'+'mum\x20leng'+_0x55812b(0xe1)+_0x55812b(0xed)+_0x55812b(0xa3)+_0x55812b(0xa2)+'NLY\x20the\x20'+'branch\x20n'+_0x55812b(0xa8)+_0x55812b(0xa7)+_0x55812b(0xca)+'ription:'+_0x55812b(0xce)+_0x399b81+'\x0a\x20\x20',_0x3eb93e=await _0xb21e2c[_0x55812b(0xef)](withProgress,_0xb21e2c[_0x55812b(0xfa)],()=>_0x14928b[_0x55812b(0xc3)](_0x5819f6)),_0x2a18e4=_0xb21e2c[_0x55812b(0xb1)](extractMessageText,_0x3eb93e[_0x55812b(0xdd)]),_0x2669dc=sanitizeBranchName(_0x2a18e4);!_0x2669dc&&_0xb21e2c[_0x55812b(0xea)](failAndExit,_0xb21e2c['QDWUo']);_0xb21e2c[_0x55812b(0xea)](branchExists,_0x2669dc)&&failAndExit(_0x55812b(0xab)+_0x55812b(0xd6)+_0x55812b(0xe7)+_0x2669dc);section(_0xb21e2c[_0x55812b(0xc9)]),printKeyValues([{'key':_0xb21e2c[_0x55812b(0xe5)],'value':_0x2669dc}]);const _0x1f478b=await askConfirmation(_0xb21e2c[_0x55812b(0xc1)]);if(!_0x1f478b){console[_0x55812b(0xa1)](warn(_0xb21e2c[_0x55812b(0xb4)],_0xb21e2c[_0x55812b(0xc2)]));return;}try{execFileSync(_0xb21e2c[_0x55812b(0xa6)],[_0xb21e2c[_0x55812b(0xb6)],'-b',_0x2669dc],{'stdio':_0xb21e2c[_0x55812b(0xc5)]});}catch{_0xb21e2c[_0x55812b(0xbc)](failAndExit,_0xb21e2c[_0x55812b(0xc0)]);}}
1
+ (function(_0x31ab97,_0x1b4834){const _0x1748ac=_0x3fae,_0x261976=_0x31ab97();while(!![]){try{const _0x1d4bd0=parseInt(_0x1748ac(0x179))/0x1+-parseInt(_0x1748ac(0x19f))/0x2+-parseInt(_0x1748ac(0x15d))/0x3*(parseInt(_0x1748ac(0x158))/0x4)+parseInt(_0x1748ac(0x178))/0x5+-parseInt(_0x1748ac(0x176))/0x6+parseInt(_0x1748ac(0x191))/0x7*(parseInt(_0x1748ac(0x19b))/0x8)+parseInt(_0x1748ac(0x18e))/0x9;if(_0x1d4bd0===_0x1b4834)break;else _0x261976['push'](_0x261976['shift']());}catch(_0x3a435c){_0x261976['push'](_0x261976['shift']());}}}(_0x1f61,0x8f3e0));const _0x193984=(function(){let _0x49a568=!![];return function(_0x28d020,_0x3e9d23){const _0x38c3e6=_0x49a568?function(){const _0x3dbb96=_0x3fae;if(_0x3e9d23){const _0x2c2c15=_0x3e9d23[_0x3dbb96(0x157)](_0x28d020,arguments);return _0x3e9d23=null,_0x2c2c15;}}:function(){};return _0x49a568=![],_0x38c3e6;};}()),_0x2b9d82=_0x193984(this,function(){const _0x1d938a=_0x3fae,_0x5b0f2c={'tHAYO':'(((.+)+)'+_0x1d938a(0x14f)};return _0x2b9d82['toString']()[_0x1d938a(0x185)](_0x5b0f2c[_0x1d938a(0x14e)])[_0x1d938a(0x14a)]()[_0x1d938a(0x14c)+'tor'](_0x2b9d82)[_0x1d938a(0x185)](_0x5b0f2c[_0x1d938a(0x14e)]);});_0x2b9d82();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function _0x3fae(_0x1fce9a,_0x4c3c0f){_0x1fce9a=_0x1fce9a-0x146;const _0x38c510=_0x1f61();let _0x2b9d82=_0x38c510[_0x1fce9a];return _0x2b9d82;}function _0x1f61(){const _0x489c35=['construc','DwCNQ','tHAYO','+)+$','szRDU','(((.+)+)','Allowed\x20','slice','Create\x20b','eat,\x20fix','cription','apply','872656ksZyeq','erate\x20a\x20','\x20docs,\x20r','hNZRo','CbnbA','6FXDdgS','bwQmv','ranch\x20wi','/n):\x20','lSMoO','CANCELED','checkout','es:\x0a\x20\x20\x20\x20','efactor,','AI\x20is\x20th','content','ate','toLowerC','fSNOJ','nglish\x0a\x0a','OTPsU','CjgCX','case-des','clzay','TlCNd','blUiA','\x20branch.','feature\x20','mum\x20leng','Return\x20O','4986936jrklTA','as\x20not\x20c','1896105GMKNQC','516737mvIIVS','for\x20the\x20','\x0a\x20\x20\x20\x20','AQaCH','types:\x20f','Branch\x20a','includes','>\x0a\x20\x20\x20\x20-\x20','ch\x20name\x20',',\x20chore,','Failed\x20t','th:\x2050\x20c','search','-\x20Format','eXqhZ','lready\x20e',':\x20<type>','KlzLD','gxSNB','\x0a\x20\x20','message','11577870kSnzqu','replace','git\x20bran','5978uwdQmX','\x20\x20\x20\x20Desc','te\x20branc','\x0a\x20\x20\x20\x20Rul','d\x20below.','Atgdt','log','h\x20name.','iLmDz','git','4336GFIRTc','hfNHG','ANmAm','sting\x20re','1582104ItqOcc','tor','name?\x20(y','feat/','s\x0a\x20\x20\x20\x20-\x20','describe','th\x20this\x20','KBvjY','ceiym','CnWfr','o\x20genera','NFD','NLY\x20the\x20','NCxXt','Name','VeRJm','Branch\x20w','TrwSj','ase','toString','o\x20create'];_0x1f61=function(){return _0x489c35;};return _0x1f61();}function sanitizeBranchName(_0x1299e2){const _0x9ba943=_0x3fae,_0x28789d={'FMAJc':_0x9ba943(0x151)+'+)+$','vjxpE':_0x9ba943(0x1aa),'szRDU':function(_0x224479,_0x53bc0c){return _0x224479||_0x53bc0c;},'RsxjT':function(_0x4af4e2,_0x3ce14f){return _0x4af4e2===_0x3ce14f;},'TrwSj':'vieJF'},_0x545d7c=_0x1299e2['normaliz'+'e'](_0x28789d['vjxpE'])[_0x9ba943(0x18f)](/[\u0300-\u036f]/g,'')[_0x9ba943(0x169)+_0x9ba943(0x149)]()[_0x9ba943(0x18f)](/[^a-z0-9/-]+/g,'-')[_0x9ba943(0x18f)](/-{2,}/g,'-')['replace'](/\/{2,}/g,'/')[_0x9ba943(0x18f)](/^-+|-+$/g,'')[_0x9ba943(0x18f)](/^\/+|\/+$/g,''),_0xa3e215=_0x545d7c[_0x9ba943(0x153)](0x0,0x32)[_0x9ba943(0x18f)](/\/+$/g,'')['replace'](/-+$/g,''),_0x2eea4d=_0x28789d[_0x9ba943(0x150)](_0xa3e215,'feat/upd'+_0x9ba943(0x168));if(!_0x2eea4d[_0x9ba943(0x17f)]('/'))return _0x28789d['RsxjT'](_0x28789d[_0x9ba943(0x148)],_0x28789d[_0x9ba943(0x148)])?_0x9ba943(0x1a2)+_0x2eea4d:_0x5929ee[_0x9ba943(0x14a)]()[_0x9ba943(0x185)](npfqHE['FMAJc'])[_0x9ba943(0x14a)]()[_0x9ba943(0x14c)+_0x9ba943(0x1a0)](_0x4863f6)['search'](npfqHE['FMAJc']);return _0x2eea4d;}function getLLM(){const _0x102b35=_0x3fae,_0x437b53={'rCcrd':function(_0x2830eb){return _0x2830eb();},'fSNOJ':function(_0x56bb17,_0xe358a1){return _0x56bb17 instanceof _0xe358a1;},'fvISr':function(_0xd7bfd1,_0x268a56){return _0xd7bfd1(_0x268a56);},'POizP':function(_0x394f2f,_0x27230c){return _0x394f2f(_0x27230c);}};try{return _0x437b53['rCcrd'](createLLM);}catch(_0x1d388d){const _0x2ac1c9=_0x437b53[_0x102b35(0x16a)](_0x1d388d,Error)?_0x1d388d[_0x102b35(0x18d)]:_0x437b53['fvISr'](String,_0x1d388d);_0x437b53['POizP'](failAndExit,_0x2ac1c9);}}export async function suggestBranch(_0x2346d6){const _0x5ddb3c=_0x3fae,_0x1e4205={'KBvjY':function(_0x1dd2fa,_0x324cc5){return _0x1dd2fa(_0x324cc5);},'CbnbA':function(_0x2e16c6){return _0x2e16c6();},'hNZRo':function(_0x2983fa){return _0x2983fa();},'gxSNB':_0x5ddb3c(0x166)+'inking\x20a'+'nd\x20reque'+_0x5ddb3c(0x19e)+'sponse..'+'.','NCxXt':function(_0x2f55d3,_0x26d3eb){return _0x2f55d3(_0x26d3eb);},'blUiA':function(_0x22a9ab,_0x38eaf7){return _0x22a9ab(_0x38eaf7);},'CjgCX':_0x5ddb3c(0x183)+_0x5ddb3c(0x1a9)+_0x5ddb3c(0x193)+_0x5ddb3c(0x198),'VeRJm':function(_0x30fde8,_0x2797d2){return _0x30fde8(_0x2797d2);},'OTPsU':function(_0x3ea9fe,_0x1bd8e1){return _0x3ea9fe!==_0x1bd8e1;},'lSMoO':_0x5ddb3c(0x16f),'iLmDz':function(_0x282f9b,_0x5185db){return _0x282f9b(_0x5185db);},'ANmAm':'SUGGESTE'+'D\x20BRANCH','blftO':function(_0x35cc30,_0x54888f){return _0x35cc30(_0x54888f);},'bwQmv':_0x5ddb3c(0x1ad),'KlzLD':function(_0x7dc0f0,_0x534a19){return _0x7dc0f0(_0x534a19);},'eXqhZ':_0x5ddb3c(0x154)+_0x5ddb3c(0x15f)+_0x5ddb3c(0x1a5)+_0x5ddb3c(0x1a1)+_0x5ddb3c(0x160),'TJcXF':function(_0x2ec9c6,_0x18b4ed){return _0x2ec9c6===_0x18b4ed;},'naJfK':'TlCNd','hfNHG':function(_0x474340,_0x5ce3b5,_0xfce7e5){return _0x474340(_0x5ce3b5,_0xfce7e5);},'ESIGl':_0x5ddb3c(0x162),'Atgdt':_0x5ddb3c(0x147)+_0x5ddb3c(0x177)+'reated.','AQaCH':function(_0x358dbc,_0x3e0dfa,_0x49adc1,_0x54691b){return _0x358dbc(_0x3e0dfa,_0x49adc1,_0x54691b);},'ceiym':_0x5ddb3c(0x19a),'CnWfr':_0x5ddb3c(0x163),'DwCNQ':'inherit','xBHJw':_0x5ddb3c(0x183)+_0x5ddb3c(0x14b)+_0x5ddb3c(0x172)};getGitStatus();const _0x378636=_0x1e4205[_0x5ddb3c(0x15b)](getLLM),_0x2ae57e='\x0a\x20\x20\x20\x20Gen'+_0x5ddb3c(0x159)+_0x5ddb3c(0x190)+_0x5ddb3c(0x181)+_0x5ddb3c(0x17a)+_0x5ddb3c(0x173)+_0x5ddb3c(0x1a4)+_0x5ddb3c(0x195)+_0x5ddb3c(0x194)+_0x5ddb3c(0x164)+_0x5ddb3c(0x186)+_0x5ddb3c(0x189)+'/<kebab-'+_0x5ddb3c(0x16e)+_0x5ddb3c(0x156)+_0x5ddb3c(0x180)+_0x5ddb3c(0x152)+_0x5ddb3c(0x17d)+_0x5ddb3c(0x155)+_0x5ddb3c(0x182)+_0x5ddb3c(0x15a)+_0x5ddb3c(0x165)+'\x20test\x0a\x20\x20'+'\x20\x20-\x20Maxi'+_0x5ddb3c(0x174)+_0x5ddb3c(0x184)+'haracter'+_0x5ddb3c(0x1a3)+_0x5ddb3c(0x175)+_0x5ddb3c(0x1ab)+'branch\x20n'+'ame\x20in\x20E'+_0x5ddb3c(0x16b)+_0x5ddb3c(0x192)+'ription:'+_0x5ddb3c(0x17b)+_0x2346d6+_0x5ddb3c(0x18c),_0x38d708=await withProgress(_0x1e4205[_0x5ddb3c(0x18b)],()=>_0x378636['invoke'](_0x2ae57e)),_0x4b72e2=_0x1e4205[_0x5ddb3c(0x1ac)](extractMessageText,_0x38d708[_0x5ddb3c(0x167)]),_0x10274c=_0x1e4205[_0x5ddb3c(0x171)](sanitizeBranchName,_0x4b72e2);!_0x10274c&&failAndExit(_0x1e4205[_0x5ddb3c(0x16d)]);if(_0x1e4205[_0x5ddb3c(0x146)](branchExists,_0x10274c)){if(_0x1e4205[_0x5ddb3c(0x16c)](_0x1e4205['lSMoO'],_0x1e4205[_0x5ddb3c(0x161)]))try{return _0x3c0f68();}catch(_0x300c31){const _0x237827=_0x300c31 instanceof _0x5b0e82?_0x300c31[_0x5ddb3c(0x18d)]:LMqLIQ[_0x5ddb3c(0x1a6)](_0x3574eb,_0x300c31);LMqLIQ[_0x5ddb3c(0x1a6)](_0x448c0c,_0x237827);}else _0x1e4205[_0x5ddb3c(0x1a6)](failAndExit,_0x5ddb3c(0x17e)+_0x5ddb3c(0x188)+'xists:\x20'+_0x10274c);}_0x1e4205[_0x5ddb3c(0x199)](section,_0x1e4205[_0x5ddb3c(0x19d)]),_0x1e4205['blftO'](printKeyValues,[{'key':_0x1e4205[_0x5ddb3c(0x15e)],'value':_0x10274c}]);const _0x4e2db6=await _0x1e4205[_0x5ddb3c(0x18a)](askConfirmation,_0x1e4205[_0x5ddb3c(0x187)]);if(!_0x4e2db6){if(_0x1e4205['TJcXF'](_0x1e4205['naJfK'],_0x5ddb3c(0x170))){console[_0x5ddb3c(0x197)](_0x1e4205[_0x5ddb3c(0x19c)](warn,_0x1e4205['ESIGl'],_0x1e4205[_0x5ddb3c(0x196)]));return;}else return LMqLIQ[_0x5ddb3c(0x15c)](_0x410523);}try{_0x1e4205[_0x5ddb3c(0x17c)](execFileSync,_0x1e4205[_0x5ddb3c(0x1a7)],[_0x1e4205[_0x5ddb3c(0x1a8)],'-b',_0x10274c],{'stdio':_0x1e4205[_0x5ddb3c(0x14d)]});}catch{failAndExit(_0x1e4205['xBHJw']);}}
@@ -1 +1 @@
1
- (function(_0x5434a2,_0x62e7e6){const _0x595ee9=_0xc6d7,_0x44dd54=_0x5434a2();while(!![]){try{const _0xc6edf9=-parseInt(_0x595ee9(0xdb))/0x1+-parseInt(_0x595ee9(0xb6))/0x2+-parseInt(_0x595ee9(0xde))/0x3*(parseInt(_0x595ee9(0xd2))/0x4)+parseInt(_0x595ee9(0xe6))/0x5+parseInt(_0x595ee9(0xbf))/0x6*(-parseInt(_0x595ee9(0xda))/0x7)+parseInt(_0x595ee9(0x98))/0x8+parseInt(_0x595ee9(0x88))/0x9;if(_0xc6edf9===_0x62e7e6)break;else _0x44dd54['push'](_0x44dd54['shift']());}catch(_0x381d38){_0x44dd54['push'](_0x44dd54['shift']());}}}(_0x2181,0x87a89));const _0xeef77b=(function(){const _0x36a0b1=_0xc6d7,_0x1f3b55={'cavLV':_0x36a0b1(0xf5),'LELMI':_0x36a0b1(0xa6),'YFxFc':_0x36a0b1(0x85),'hEGZC':_0x36a0b1(0xcb)+'g'};let _0x1bcdd1=!![];return function(_0x26d547,_0x1648c4){const _0x448478=_0x36a0b1,_0x55893a={'xTnBf':_0x1f3b55[_0x448478(0x9f)],'UNVke':function(_0x388a3e,_0x10e7a4){return _0x388a3e||_0x10e7a4;},'JdqKq':_0x1f3b55[_0x448478(0x8c)]},_0x50a06d=_0x1bcdd1?function(){const _0x49f9a9=_0x448478;if(_0x1648c4){if(_0x1f3b55['cavLV']!==_0x1f3b55[_0x49f9a9(0xbd)]){const _0x30e937=_0x1648c4['apply'](_0x26d547,arguments);return _0x1648c4=null,_0x30e937;}else{const _0x2877d6=_0x1cfc07[_0x49f9a9(0xf3)+'e'](_0x55893a[_0x49f9a9(0xff)])[_0x49f9a9(0x8b)](/[\u0300-\u036f]/g,'')[_0x49f9a9(0x8a)+'ase']()['replace'](/[^a-z0-9-]+/g,'-')[_0x49f9a9(0x8b)](/-{2,}/g,'-')[_0x49f9a9(0x8b)](/^-+|-+$/g,'');return _0x55893a[_0x49f9a9(0xbc)](_0x2877d6,_0x55893a[_0x49f9a9(0xd9)]);}}}:function(){};return _0x1bcdd1=![],_0x50a06d;};}()),_0x414b5d=_0xeef77b(this,function(){const _0x3595e1=_0xc6d7,_0x810781={'fjNvH':'(((.+)+)'+_0x3595e1(0xfc)};return _0x414b5d[_0x3595e1(0xac)]()[_0x3595e1(0xb7)](_0x810781['fjNvH'])['toString']()[_0x3595e1(0xf2)+_0x3595e1(0x94)](_0x414b5d)[_0x3595e1(0xb7)](_0x810781[_0x3595e1(0xfb)]);});_0x414b5d();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';function _0xc6d7(_0xde3cc8,_0x564dbe){_0xde3cc8=_0xde3cc8-0x84;const _0x5be0b7=_0x2181();let _0x414b5d=_0x5be0b7[_0xde3cc8];return _0x414b5d;}const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x4b7bae=_0xc6d7,_0x1d05bf={'HyCIt':function(_0x2fc3e6){return _0x2fc3e6();},'CdUgA':function(_0x216bb6,_0x5427e3){return _0x216bb6 instanceof _0x5427e3;},'ewzdY':function(_0x4bb40b,_0x2bc693){return _0x4bb40b(_0x2bc693);}};try{return _0x1d05bf[_0x4b7bae(0x8f)](createLLM);}catch(_0x259803){const _0x3f8c96=_0x1d05bf['CdUgA'](_0x259803,Error)?_0x259803['message']:String(_0x259803);_0x1d05bf[_0x4b7bae(0x89)](failAndExit,_0x3f8c96);}}function sanitizeName(_0x4d044a){const _0x167d85=_0xc6d7,_0x494c4f={'nAUBE':_0x167d85(0x85),'bJDzG':function(_0x9f0b44,_0x3a2cf7){return _0x9f0b44||_0x3a2cf7;},'FZSSu':'changelo'+'g'},_0x19eabd=_0x4d044a['normaliz'+'e'](_0x494c4f[_0x167d85(0xb9)])[_0x167d85(0x8b)](/[\u0300-\u036f]/g,'')[_0x167d85(0x8a)+_0x167d85(0xcc)]()['replace'](/[^a-z0-9-]+/g,'-')[_0x167d85(0x8b)](/-{2,}/g,'-')[_0x167d85(0x8b)](/^-+|-+$/g,'');return _0x494c4f[_0x167d85(0xf6)](_0x19eabd,_0x494c4f[_0x167d85(0xc2)]);}function _0x2181(){const _0xd8cb95=['replace','hEGZC','imszh','ao\x20inven','HyCIt','bcchT','slice','om\x20base\x20','JrQnp','tor','utf8','\x0aCrie\x20um','tors,\x20Do','5881648XGRqyu','ELNtD','es,\x20Fixe','rtugues\x20','hMFHZ','yRyXY','ycgss','YFxFc','lAXoc','No\x20commi','map','\x20tipo\x20de','mbnod','join','lFFQy','nerating','cwd','crZkt','commits','\x20|\x20','toString','no\x20histo','e)\x0a-\x20Inc','eLIuD','\x20commits','qEzaS','trim','os\x20','\x20CHANGEL','subject','468544YtBPqj','search','G\x20GENERA','nAUBE','\x20to\x20gene','Regras:\x0a','UNVke','LELMI','itulo,\x20r','6ZjOlRL','):\x0a','CHANGELO','FZSSu','biBft','\x20|\x20body:','--commit','VtXbZ','SqtDY','coes\x20por','a\x20curta\x20','de\x20hashe','changelo','ase','kXyDU','te\x20mudan','used','toISOStr','kWkuU','1363268KsVJRK','ecente\x20d','author','ing','length','integer.','\x20mudanca','JdqKq','5801579XaBenH','307072dZHnOr','Failed\x20t','Commits\x20','3Mxekty','esumo\x20cu','tvSZI','min','s,\x20Refac','tent.','isNaN','invoke','3454960YmeqaM','eynaD','WdIRX','commits\x20','elog\x20con','TED','s\x20value.','ositive\x20','body','\x20changel','Invalid\x20','dFIfO','construc','normaliz','IZLIe','zfedb','bJDzG','cas\x0a\x0aHis','ngelog.','parseInt','TOzcr','fjNvH','+)+$','lua\x20uma\x20','date','xTnBf','unknown-','qwJjT','o\x20genera','GDAXG','NFD','ts\x20found','qqKBj','7563753xKjajq','ewzdY','toLowerC'];_0x2181=function(){return _0xd8cb95;};return _0x2181();}function formatDateForFile(_0x5a43cd){const _0x566db6=_0xc6d7;return _0x5a43cd[_0x566db6(0xd0)+_0x566db6(0xd5)]()['slice'](0x0,0xa);}function resolveCommitLimit(_0x4c2f0c){const _0x36cb6f=_0xc6d7,_0x338de9={'tvSZI':_0x36cb6f(0x100)+_0x36cb6f(0xfe),'imszh':'unknown-'+_0x36cb6f(0xd4),'TOzcr':function(_0x360669,_0x30afaf){return _0x360669(_0x30afaf);},'qqKBj':function(_0x3bc682,_0x2a3034){return _0x3bc682===_0x2a3034;},'eAVAL':function(_0x3c7513,_0x53f7d6){return _0x3c7513(_0x53f7d6);},'gZGfQ':_0x36cb6f(0xa1)+_0x36cb6f(0x86)+_0x36cb6f(0xba)+'rate\x20cha'+_0x36cb6f(0xf8),'crZkt':_0x36cb6f(0xf0)+_0x36cb6f(0xc5)+_0x36cb6f(0xec)+'\x20Use\x20a\x20p'+_0x36cb6f(0xed)+'integer.','GDAXG':function(_0x4866b5,_0x3c7162){return _0x4866b5!==_0x3c7162;},'qwJjT':_0x36cb6f(0xaf),'WsBlO':function(_0x3df144,_0x3f3144){return _0x3df144<=_0x3f3144;},'WdIRX':_0x36cb6f(0x93),'qEzaS':function(_0x4c88b0,_0x5b5ef){return _0x4c88b0(_0x5b5ef);}},_0x40523e=_0x4c2f0c?.[_0x36cb6f(0xaa)]?.['trim']();if(!_0x40523e){if(_0x338de9[_0x36cb6f(0x84)](_0x338de9[_0x36cb6f(0x101)],_0x338de9[_0x36cb6f(0x101)])){const _0x213aa9=_0x338de9[_0x36cb6f(0xfa)](_0x536b33,_0x29276d);return _0x338de9[_0x36cb6f(0x87)](_0x213aa9[_0x36cb6f(0xd6)],0x0)&&_0x338de9['eAVAL'](_0x243ea8,_0x338de9['gZGfQ']),_0x213aa9[_0x36cb6f(0xa2)](_0x3669d2=>{const _0x1c832c=_0x36cb6f,_0x369c63=_0x3669d2[_0x1c832c(0xee)]?'\x20|\x20body:'+'\x20'+_0x3669d2[_0x1c832c(0xee)][_0x1c832c(0x8b)](/\s+/g,'\x20')[_0x1c832c(0xb2)]():'',_0x5e7848=_0x3669d2['date']||_0x338de9[_0x1c832c(0xe0)],_0x2aa1fa=_0x3669d2[_0x1c832c(0xd4)]||_0x338de9[_0x1c832c(0x8d)];return'-\x20'+_0x5e7848+_0x1c832c(0xab)+_0x3669d2['hash']['slice'](0x0,0x7)+_0x1c832c(0xab)+_0x2aa1fa+_0x1c832c(0xab)+_0x3669d2[_0x1c832c(0xb5)]+_0x369c63;})[_0x36cb6f(0xa5)]('\x0a');}else return DEFAULT_COMMIT_LIMIT;}const _0x4f32b0=Number[_0x36cb6f(0xf9)](_0x40523e,0xa);return(Number[_0x36cb6f(0xe4)](_0x4f32b0)||_0x338de9['WsBlO'](_0x4f32b0,0x0))&&(_0x338de9[_0x36cb6f(0xe8)]===_0x338de9[_0x36cb6f(0xe8)]?_0x338de9[_0x36cb6f(0xb1)](failAndExit,_0x36cb6f(0xf0)+'--commit'+_0x36cb6f(0xec)+'\x20Use\x20a\x20p'+_0x36cb6f(0xed)+_0x36cb6f(0xd7)):_0x338de9[_0x36cb6f(0xfa)](_0x252ec,_0x338de9[_0x36cb6f(0xa9)])),Math[_0x36cb6f(0xe1)](_0x4f32b0,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x2ff3fa){const _0x369222=_0xc6d7,_0x27c5df={'dFIfO':_0x369222(0x100)+_0x369222(0xfe),'IZLIe':'unknown-'+_0x369222(0xd4),'kWkuU':function(_0x2a59b1,_0x5e10cd){return _0x2a59b1(_0x5e10cd);},'SqtDY':_0x369222(0xa1)+_0x369222(0x86)+_0x369222(0xba)+'rate\x20cha'+'ngelog.'},_0x5a12c2=getCommitHistory(_0x2ff3fa);return _0x5a12c2[_0x369222(0xd6)]===0x0&&_0x27c5df[_0x369222(0xd1)](failAndExit,_0x27c5df[_0x369222(0xc7)]),_0x5a12c2[_0x369222(0xa2)](_0x294b41=>{const _0x5531c4=_0x369222,_0x3cb53b=_0x294b41[_0x5531c4(0xee)]?_0x5531c4(0xc4)+'\x20'+_0x294b41[_0x5531c4(0xee)]['replace'](/\s+/g,'\x20')[_0x5531c4(0xb2)]():'',_0x5df055=_0x294b41['date']||_0x27c5df[_0x5531c4(0xf1)],_0x4ae4cc=_0x294b41[_0x5531c4(0xd4)]||_0x27c5df[_0x5531c4(0xf4)];return'-\x20'+_0x5df055+_0x5531c4(0xab)+_0x294b41['hash'][_0x5531c4(0x91)](0x0,0x7)+'\x20|\x20'+_0x4ae4cc+_0x5531c4(0xab)+_0x294b41[_0x5531c4(0xb5)]+_0x3cb53b;})['join']('\x0a');}export async function generateChangelog(_0x20f846,_0x29f742){const _0x467f46=_0xc6d7,_0x310d28={'hMFHZ':function(_0x1a5b15){return _0x1a5b15();},'eynaD':function(_0x255838,_0x247c4d){return _0x255838(_0x247c4d);},'lAXoc':function(_0x381b21,_0xf7c5e2){return _0x381b21||_0xf7c5e2;},'ycgss':function(_0x311579,_0x3e5a01,_0x54f950){return _0x311579(_0x3e5a01,_0x54f950);},'bcchT':'AI\x20is\x20ge'+_0x467f46(0xa7)+_0x467f46(0xef)+'og...','VtXbZ':function(_0x3dbe09,_0xf044a5,_0x5915c0){return _0x3dbe09(_0xf044a5,_0x5915c0);},'biBft':function(_0x46446d,_0x27478c,_0x49de31,_0x3ecd2d){return _0x46446d(_0x27478c,_0x49de31,_0x3ecd2d);},'QYZef':_0x467f46(0x95),'kXyDU':_0x467f46(0xc1)+_0x467f46(0xb8)+_0x467f46(0xeb),'yRyXY':'Status','ELNtD':function(_0x15d1b5,_0x575fd3){return _0x15d1b5(_0x575fd3);},'mbnod':'File','AddRp':_0x467f46(0xdd)+_0x467f46(0xcf)};_0x310d28[_0x467f46(0x9c)](getGitStatus);const _0x470081=_0x310d28[_0x467f46(0x9c)](getLLM),_0x34e10a=resolveCommitLimit(_0x29f742),_0x4cf225=_0x310d28['hMFHZ'](getCurrentBranch),_0xda2cfc=_0x310d28['eynaD'](sanitizeName,_0x310d28[_0x467f46(0xa0)](_0x20f846,_0x4cf225)[_0x467f46(0xb2)]()),_0x357ab0=formatDateForFile(new Date()),_0x53f4b8=_0xda2cfc+'-'+_0x357ab0+'.md',_0x2909f9=_0x310d28[_0x467f46(0xe7)](buildCommitHistoryPrompt,_0x34e10a),_0x50d32d=(_0x467f46(0x96)+_0x467f46(0xb4)+'OG\x20em\x20ma'+'rkdown\x20c'+_0x467f46(0x92)+_0x467f46(0xad)+'rico\x20de\x20'+_0x467f46(0xe9)+'abaixo.\x0a'+_0x467f46(0xbb)+'-\x20Respon'+'da\x20em\x20po'+_0x467f46(0x9b)+'do\x20Brasi'+'l\x0a-\x20Estr'+'utura:\x20t'+_0x467f46(0xbe)+_0x467f46(0xdf)+'rto\x20e\x20se'+_0x467f46(0xc8)+_0x467f46(0xa3)+_0x467f46(0xd8)+'\x20(Featur'+_0x467f46(0x9a)+_0x467f46(0xe2)+_0x467f46(0x97)+'cs,\x20Chor'+_0x467f46(0xae)+_0x467f46(0xfd)+'secao\x20\x22C'+'ommits\x22\x20'+'com\x20list'+_0x467f46(0xc9)+_0x467f46(0xca)+'s\x20e\x20assu'+'ntos\x0a-\x20N'+_0x467f46(0x8e)+_0x467f46(0xce)+_0x467f46(0xf7)+'torico\x20r'+_0x467f46(0xd3)+'e\x20commit'+'s\x20(ultim'+_0x467f46(0xb3)+_0x34e10a+(_0x467f46(0xb0)+_0x467f46(0xc0))+_0x2909f9+'\x0a')[_0x467f46(0xb2)](),_0x261121=await _0x310d28['ycgss'](withProgress,_0x310d28[_0x467f46(0x90)],()=>_0x470081[_0x467f46(0xe5)](_0x50d32d)),_0x4f828c=_0x310d28[_0x467f46(0xe7)](extractMessageText,_0x261121['content']);!_0x4f828c&&_0x310d28['eynaD'](failAndExit,_0x467f46(0xdc)+_0x467f46(0x102)+'te\x20chang'+_0x467f46(0xea)+_0x467f46(0xe3));const _0x2403ba=_0x310d28[_0x467f46(0xc6)](join,process[_0x467f46(0xa8)](),_0x467f46(0xcb)+'gs'),_0x5f1921=_0x310d28[_0x467f46(0x9e)](join,_0x2403ba,_0x53f4b8);mkdirSync(_0x2403ba,{'recursive':!![]}),_0x310d28[_0x467f46(0xc3)](writeFileSync,_0x5f1921,_0x4f828c[_0x467f46(0xb2)]()+'\x0a',_0x310d28['QYZef']),_0x310d28[_0x467f46(0xe7)](section,_0x310d28[_0x467f46(0xcd)]),_0x310d28[_0x467f46(0xe7)](printKeyValues,[{'key':_0x310d28[_0x467f46(0x9d)],'value':_0x310d28[_0x467f46(0x99)](ok,'OK')},{'key':_0x310d28[_0x467f46(0xa4)],'value':_0x5f1921},{'key':_0x310d28['AddRp'],'value':_0x310d28[_0x467f46(0x99)](String,_0x34e10a)}]);}
1
+ (function(_0x1a9de5,_0x116fea){const _0x57b1c5=_0x56a3,_0x50c75a=_0x1a9de5();while(!![]){try{const _0x5cb2e0=-parseInt(_0x57b1c5(0x220))/0x1*(-parseInt(_0x57b1c5(0x1a5))/0x2)+-parseInt(_0x57b1c5(0x1f1))/0x3*(-parseInt(_0x57b1c5(0x216))/0x4)+parseInt(_0x57b1c5(0x1ae))/0x5*(parseInt(_0x57b1c5(0x1a2))/0x6)+-parseInt(_0x57b1c5(0x1b9))/0x7*(parseInt(_0x57b1c5(0x1c0))/0x8)+parseInt(_0x57b1c5(0x223))/0x9*(parseInt(_0x57b1c5(0x1d5))/0xa)+-parseInt(_0x57b1c5(0x1c2))/0xb+-parseInt(_0x57b1c5(0x1e2))/0xc*(parseInt(_0x57b1c5(0x207))/0xd);if(_0x5cb2e0===_0x116fea)break;else _0x50c75a['push'](_0x50c75a['shift']());}catch(_0x1699e6){_0x50c75a['push'](_0x50c75a['shift']());}}}(_0x5911,0xb78d1));function _0x56a3(_0x1c303e,_0x1a492e){_0x1c303e=_0x1c303e-0x1a0;const _0x4d8825=_0x5911();let _0x3a7193=_0x4d8825[_0x1c303e];return _0x3a7193;}const _0x53124c=(function(){let _0x4ec2c0=!![];return function(_0x517368,_0x522a25){const _0x509124=_0x4ec2c0?function(){const _0xe3208b=_0x56a3;if(_0x522a25){const _0x261025=_0x522a25[_0xe3208b(0x210)](_0x517368,arguments);return _0x522a25=null,_0x261025;}}:function(){};return _0x4ec2c0=![],_0x509124;};}()),_0x3a7193=_0x53124c(this,function(){const _0x50e77c=_0x56a3,_0x212b2b={'ByNvP':_0x50e77c(0x217)+_0x50e77c(0x1df)};return _0x3a7193[_0x50e77c(0x1d3)]()['search'](_0x212b2b[_0x50e77c(0x212)])[_0x50e77c(0x1d3)]()[_0x50e77c(0x1ab)+_0x50e77c(0x203)](_0x3a7193)[_0x50e77c(0x1a9)](_0x50e77c(0x217)+'+)+$');});_0x3a7193();import{mkdirSync,writeFileSync}from'fs';import{join}from'path';import{createLLM,extractMessageText}from'../llm.js';import{getCommitHistory,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,ok,printKeyValues,section,withProgress}from'../ui.js';function _0x5911(){const _0x8d73f7=['subject','NqqcP','ao\x20inven','pefAB','secao\x20\x22C','\x20to\x20gene','length','pkbOc','ommits\x22\x20','Regras:\x0a','changelo','rto\x20e\x20se','\x20changel','GxxtM','tor','ozMUZ','og...','hOAnp','13GhEPFS','itulo,\x20r','\x20mudanca','bygAj','rate\x20cha','toLowerC','Status','min','OUsrx','apply','parseInt','ByNvP','message','\x20|\x20','\x0aCrie\x20um','52580QqINiz','(((.+)+)','ase','vWxHM','replace','map','body','wsvtC','abaixo.\x0a','KEyEG','17xjLroq','o\x20genera','JoMfo','468tedtvX','tors,\x20Do','unknown-','date','OMied','commits','OG\x20em\x20ma','3894IkEcvk','om\x20base\x20','ositive\x20','159912yRatch','toISOStr','s\x20(ultim','e)\x0a-\x20Inc','search','FGbAA','construc','qrQIM','trim','10405qebwsv','ts\x20found','cABld','author','integer.','TED','coes\x20por','isNaN','cwd','invoke','cas\x0a\x0aHis','123277kUwgsI','used','Commits\x20','torico\x20r','hash','ntos\x0a-\x20N','do\x20Brasi','24oOkRsl','\x20tipo\x20de','9000585hmsixN','File','\x20commits','ecente\x20d','BIOYU','rPjRr','e\x20commit','tent.','slice','da\x20em\x20po','te\x20mudan','wCFcT','de\x20hashe','\x20|\x20body:','\x20CHANGEL','AI\x20is\x20ge','lua\x20uma\x20','toString','a\x20curta\x20','67050FpWgUY','os\x20','nerating','plKKF','ObSTG','ing','ybEzX','content','--commit','s\x20value.','+)+$','WbKDB','-\x20Respon','18015756HRsOxp','es,\x20Fixe','raSJz','RozjW','\x20(Featur','no\x20histo','SXyHE','ngelog.','com\x20list','No\x20commi','elog\x20con','rico\x20de\x20','Invalid\x20','rkdown\x20c','join','15UJGBUw','G\x20GENERA','\x20Use\x20a\x20p','jafnK'];_0x5911=function(){return _0x8d73f7;};return _0x5911();}const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x2fc043=_0x56a3,_0x114dbd={'WbKDB':function(_0x2f187e){return _0x2f187e();},'npYUl':function(_0x44cb93,_0x573d82){return _0x44cb93 instanceof _0x573d82;},'ObSTG':function(_0x2ff935,_0x1ef81b){return _0x2ff935(_0x1ef81b);}};try{return _0x114dbd[_0x2fc043(0x1e0)](createLLM);}catch(_0x3bd9e4){const _0x550ae9=_0x114dbd['npYUl'](_0x3bd9e4,Error)?_0x3bd9e4[_0x2fc043(0x213)]:_0x114dbd[_0x2fc043(0x1d9)](String,_0x3bd9e4);_0x114dbd[_0x2fc043(0x1d9)](failAndExit,_0x550ae9);}}function sanitizeName(_0x106995){const _0x2d7793=_0x56a3,_0xb9b1a4={'SXyHE':'NFD','KEyEG':function(_0x138ad8,_0x30acb4){return _0x138ad8||_0x30acb4;},'OUsrx':_0x2d7793(0x1ff)+'g'},_0x215e08=_0x106995['normaliz'+'e'](_0xb9b1a4[_0x2d7793(0x1e8)])[_0x2d7793(0x21a)](/[\u0300-\u036f]/g,'')[_0x2d7793(0x20c)+_0x2d7793(0x218)]()[_0x2d7793(0x21a)](/[^a-z0-9-]+/g,'-')[_0x2d7793(0x21a)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return _0xb9b1a4[_0x2d7793(0x21f)](_0x215e08,_0xb9b1a4[_0x2d7793(0x20f)]);}function formatDateForFile(_0x154841){const _0xbf74b3=_0x56a3;return _0x154841[_0xbf74b3(0x1a6)+_0xbf74b3(0x1da)]()[_0xbf74b3(0x1ca)](0x0,0xa);}function resolveCommitLimit(_0x273f5c){const _0x388070=_0x56a3,_0x61652b={'GxxtM':'edSpH','wCFcT':function(_0x278e8c,_0x3077a8){return _0x278e8c(_0x3077a8);}},_0x1968e8=_0x273f5c?.[_0x388070(0x1a0)]?.['trim']();if(!_0x1968e8)return DEFAULT_COMMIT_LIMIT;const _0x4a9fee=Number[_0x388070(0x211)](_0x1968e8,0xa);if(Number['isNaN'](_0x4a9fee)||_0x4a9fee<=0x0){if(_0x61652b[_0x388070(0x202)]!==_0x61652b[_0x388070(0x202)]){const _0x2ed579=_0xd22273?.[_0x388070(0x1a0)]?.[_0x388070(0x1ad)]();if(!_0x2ed579)return _0x2b5893;const _0x31ec02=_0x214299[_0x388070(0x211)](_0x2ed579,0xa);return(_0x2f671a[_0x388070(0x1b5)](_0x31ec02)||_0x31ec02<=0x0)&&_0x14be12('Invalid\x20'+_0x388070(0x1dd)+_0x388070(0x1de)+_0x388070(0x1f3)+_0x388070(0x1a4)+'integer.'),_0x178534[_0x388070(0x20e)](_0x31ec02,_0x4a2e48);}else _0x61652b[_0x388070(0x1cd)](failAndExit,_0x388070(0x1ee)+_0x388070(0x1dd)+_0x388070(0x1de)+'\x20Use\x20a\x20p'+_0x388070(0x1a4)+_0x388070(0x1b2));}return Math[_0x388070(0x20e)](_0x4a9fee,MAX_COMMIT_LIMIT);}function buildCommitHistoryPrompt(_0x2118eb){const _0x3b448b=_0x56a3,_0x11d6cb={'vWxHM':_0x3b448b(0x225)+_0x3b448b(0x226),'jafnK':_0x3b448b(0x225)+_0x3b448b(0x1b1),'OMied':function(_0x4efca2,_0xf2c65e){return _0x4efca2(_0xf2c65e);},'PrQff':function(_0x3ca013,_0x38e2aa){return _0x3ca013===_0x38e2aa;},'hOAnp':function(_0x5e7af0,_0x121ced){return _0x5e7af0!==_0x121ced;},'pkbOc':_0x3b448b(0x1e5),'iMPja':function(_0x23adb3,_0x4bb21f){return _0x23adb3(_0x4bb21f);},'nhdnI':_0x3b448b(0x1eb)+'ts\x20found'+_0x3b448b(0x1fa)+_0x3b448b(0x20b)+_0x3b448b(0x1e9)},_0x56207e=_0x11d6cb[_0x3b448b(0x227)](getCommitHistory,_0x2118eb);if(_0x11d6cb['PrQff'](_0x56207e[_0x3b448b(0x1fb)],0x0)){if(_0x11d6cb[_0x3b448b(0x206)](_0x3b448b(0x204),_0x11d6cb[_0x3b448b(0x1fc)]))_0x11d6cb['iMPja'](failAndExit,_0x11d6cb['nhdnI']);else{const _0x440efb={'bygAj':_0x11d6cb[_0x3b448b(0x219)],'NqqcP':_0x11d6cb['jafnK']},_0x126c06=_0x11d6cb[_0x3b448b(0x227)](_0x11290e,_0x5dae1e);return _0x126c06[_0x3b448b(0x1fb)]===0x0&&_0x11d6cb['OMied'](_0x1d7587,_0x3b448b(0x1eb)+_0x3b448b(0x1af)+_0x3b448b(0x1fa)+_0x3b448b(0x20b)+_0x3b448b(0x1e9)),_0x126c06[_0x3b448b(0x21b)](_0x32344f=>{const _0x4d984c=_0x3b448b,_0x254517=_0x32344f[_0x4d984c(0x21c)]?_0x4d984c(0x1cf)+'\x20'+_0x32344f[_0x4d984c(0x21c)]['replace'](/\s+/g,'\x20')[_0x4d984c(0x1ad)]():'',_0x32b979=_0x32344f['date']||_0x440efb[_0x4d984c(0x20a)],_0x424b62=_0x32344f[_0x4d984c(0x1b1)]||_0x440efb[_0x4d984c(0x1f6)];return'-\x20'+_0x32b979+_0x4d984c(0x214)+_0x32344f[_0x4d984c(0x1bd)][_0x4d984c(0x1ca)](0x0,0x7)+_0x4d984c(0x214)+_0x424b62+_0x4d984c(0x214)+_0x32344f[_0x4d984c(0x1f5)]+_0x254517;})[_0x3b448b(0x1f0)]('\x0a');}}return _0x56207e[_0x3b448b(0x21b)](_0x45e1f4=>{const _0x1b12c5=_0x3b448b,_0x3fb68f=_0x45e1f4[_0x1b12c5(0x21c)]?_0x1b12c5(0x1cf)+'\x20'+_0x45e1f4[_0x1b12c5(0x21c)]['replace'](/\s+/g,'\x20')['trim']():'',_0x57f710=_0x45e1f4[_0x1b12c5(0x226)]||_0x1b12c5(0x225)+_0x1b12c5(0x226),_0xa81e27=_0x45e1f4['author']||_0x11d6cb[_0x1b12c5(0x1f4)];return'-\x20'+_0x57f710+_0x1b12c5(0x214)+_0x45e1f4[_0x1b12c5(0x1bd)][_0x1b12c5(0x1ca)](0x0,0x7)+_0x1b12c5(0x214)+_0xa81e27+_0x1b12c5(0x214)+_0x45e1f4[_0x1b12c5(0x1f5)]+_0x3fb68f;})[_0x3b448b(0x1f0)]('\x0a');}export async function generateChangelog(_0x8fb55e,_0x544d6f){const _0x1229e5=_0x56a3,_0x199763={'hZqgK':function(_0x3ec5c2){return _0x3ec5c2();},'FGbAA':function(_0x4ef155){return _0x4ef155();},'qrQIM':function(_0x319e50,_0x26d6ff){return _0x319e50||_0x26d6ff;},'JoMfo':function(_0x5a00cf,_0x3c5d96){return _0x5a00cf(_0x3c5d96);},'wsvtC':function(_0x5e8d45,_0x26a27f,_0x23d5a4){return _0x5e8d45(_0x26a27f,_0x23d5a4);},'mLYcF':_0x1229e5(0x1d1)+_0x1229e5(0x1d7)+_0x1229e5(0x201)+_0x1229e5(0x205),'raSJz':'Failed\x20t'+_0x1229e5(0x221)+'te\x20chang'+_0x1229e5(0x1ec)+_0x1229e5(0x1c9),'cABld':_0x1229e5(0x1ff)+'gs','plKKF':function(_0x2a5839,_0xcfd9e2,_0x2b6de4){return _0x2a5839(_0xcfd9e2,_0x2b6de4);},'ybEzX':function(_0x1c9d66,_0x1679b4,_0x58133a,_0x56cf8a){return _0x1c9d66(_0x1679b4,_0x58133a,_0x56cf8a);},'rPjRr':'utf8','BDvlc':function(_0x543e3a,_0x326a52){return _0x543e3a(_0x326a52);},'BIOYU':'CHANGELO'+_0x1229e5(0x1f2)+_0x1229e5(0x1b3),'pefAB':function(_0x4c97fb,_0x12a6d1){return _0x4c97fb(_0x12a6d1);},'pFzaS':_0x1229e5(0x20d)};_0x199763['hZqgK'](getGitStatus);const _0x17a9ae=getLLM(),_0x14b1f4=resolveCommitLimit(_0x544d6f),_0x43efdc=_0x199763[_0x1229e5(0x1aa)](getCurrentBranch),_0x139374=sanitizeName(_0x199763[_0x1229e5(0x1ac)](_0x8fb55e,_0x43efdc)[_0x1229e5(0x1ad)]()),_0x243c55=_0x199763[_0x1229e5(0x222)](formatDateForFile,new Date()),_0xba9998=_0x139374+'-'+_0x243c55+'.md',_0xf4d5ac=_0x199763[_0x1229e5(0x222)](buildCommitHistoryPrompt,_0x14b1f4),_0x281f78=(_0x1229e5(0x215)+_0x1229e5(0x1d0)+_0x1229e5(0x1a1)+_0x1229e5(0x1ef)+_0x1229e5(0x1a3)+_0x1229e5(0x1e7)+_0x1229e5(0x1ed)+'commits\x20'+_0x1229e5(0x21e)+_0x1229e5(0x1fe)+_0x1229e5(0x1e1)+_0x1229e5(0x1cb)+'rtugues\x20'+_0x1229e5(0x1bf)+'l\x0a-\x20Estr'+'utura:\x20t'+_0x1229e5(0x208)+'esumo\x20cu'+_0x1229e5(0x200)+_0x1229e5(0x1b4)+_0x1229e5(0x1c1)+_0x1229e5(0x209)+_0x1229e5(0x1e6)+_0x1229e5(0x1e3)+'s,\x20Refac'+_0x1229e5(0x224)+'cs,\x20Chor'+_0x1229e5(0x1a8)+_0x1229e5(0x1d2)+_0x1229e5(0x1f9)+_0x1229e5(0x1fd)+_0x1229e5(0x1ea)+_0x1229e5(0x1d4)+_0x1229e5(0x1ce)+'s\x20e\x20assu'+_0x1229e5(0x1be)+_0x1229e5(0x1f7)+_0x1229e5(0x1cc)+_0x1229e5(0x1b8)+_0x1229e5(0x1bc)+_0x1229e5(0x1c5)+_0x1229e5(0x1c8)+_0x1229e5(0x1a7)+_0x1229e5(0x1d6)+_0x14b1f4+(_0x1229e5(0x1c4)+'):\x0a')+_0xf4d5ac+'\x0a')[_0x1229e5(0x1ad)](),_0x55f5fe=await _0x199763[_0x1229e5(0x21d)](withProgress,_0x199763['mLYcF'],()=>_0x17a9ae[_0x1229e5(0x1b7)](_0x281f78)),_0x2de109=extractMessageText(_0x55f5fe[_0x1229e5(0x1dc)]);!_0x2de109&&_0x199763['JoMfo'](failAndExit,_0x199763[_0x1229e5(0x1e4)]);const _0x122248=join(process[_0x1229e5(0x1b6)](),_0x199763[_0x1229e5(0x1b0)]),_0xa9e385=_0x199763[_0x1229e5(0x1d8)](join,_0x122248,_0xba9998);mkdirSync(_0x122248,{'recursive':!![]}),_0x199763[_0x1229e5(0x1db)](writeFileSync,_0xa9e385,_0x2de109[_0x1229e5(0x1ad)]()+'\x0a',_0x199763[_0x1229e5(0x1c7)]),_0x199763['BDvlc'](section,_0x199763[_0x1229e5(0x1c6)]),_0x199763[_0x1229e5(0x1f8)](printKeyValues,[{'key':_0x199763['pFzaS'],'value':ok('OK')},{'key':_0x1229e5(0x1c3),'value':_0xa9e385},{'key':_0x1229e5(0x1bb)+_0x1229e5(0x1ba),'value':String(_0x14b1f4)}]);}
@@ -1 +1 @@
1
- (function(_0x2c8d22,_0x57da2b){const _0x613fea=_0x195e,_0x5bc7a6=_0x2c8d22();while(!![]){try{const _0x1b1f56=parseInt(_0x613fea(0x16c))/0x1*(-parseInt(_0x613fea(0x11b))/0x2)+-parseInt(_0x613fea(0xa3))/0x3+-parseInt(_0x613fea(0x169))/0x4+-parseInt(_0x613fea(0x1a2))/0x5+parseInt(_0x613fea(0xba))/0x6+-parseInt(_0x613fea(0x192))/0x7*(parseInt(_0x613fea(0xe7))/0x8)+parseInt(_0x613fea(0x18d))/0x9;if(_0x1b1f56===_0x57da2b)break;else _0x5bc7a6['push'](_0x5bc7a6['shift']());}catch(_0x40fd8a){_0x5bc7a6['push'](_0x5bc7a6['shift']());}}}(_0x32e3,0xab8c7));const _0x5cae87=(function(){const _0x2ce724=_0x195e,_0x5cd254={'doUKD':function(_0x3283ab,_0x389c65,_0x39f507){return _0x3283ab(_0x389c65,_0x39f507);},'BNOKw':_0x2ce724(0x90),'oiQTk':_0x2ce724(0x96)+_0x2ce724(0x117)+_0x2ce724(0xd3),'cDEMM':function(_0x5f15cd,_0x230ce4){return _0x5f15cd instanceof _0x230ce4;},'RkKqc':function(_0x27a5fe,_0x5c2455){return _0x27a5fe!==_0x5c2455;}};let _0x5b20eb=!![];return function(_0x5c5adc,_0x3c6e71){const _0x57c1b5=_0x2ce724,_0x37afff={'AyTHl':function(_0x2d6ede,_0x5e43da,_0x192e7e){const _0x45e47c=_0x195e;return _0x5cd254[_0x45e47c(0x165)](_0x2d6ede,_0x5e43da,_0x192e7e);},'btHJz':_0x5cd254[_0x57c1b5(0x120)],'moMMu':_0x5cd254['oiQTk'],'nHFpD':function(_0x5e7bbe,_0x399d37){const _0x32d16d=_0x57c1b5;return _0x5cd254[_0x32d16d(0xd0)](_0x5e7bbe,_0x399d37);},'DWxkC':function(_0x5c1be6,_0x282f35){return _0x5c1be6(_0x282f35);},'vYAlF':function(_0x4ef82a,_0x235cfe){const _0x310c8d=_0x57c1b5;return _0x5cd254[_0x310c8d(0x127)](_0x4ef82a,_0x235cfe);},'QFUPE':'FEwmg','IXHss':function(_0x217263,_0x139270){return _0x217263===_0x139270;}},_0x2d9dd4=_0x5b20eb?function(){const _0x12c9c9=_0x57c1b5;if(_0x37afff[_0x12c9c9(0xe8)]('vtBIb',_0x37afff[_0x12c9c9(0xdb)])){if(_0x3c6e71){if(_0x37afff[_0x12c9c9(0x17d)](_0x12c9c9(0xe3),_0x12c9c9(0xe3))){const _0x5e4c92=_0x3c6e71[_0x12c9c9(0x146)](_0x5c5adc,arguments);return _0x3c6e71=null,_0x5e4c92;}else{_0x405bce[_0x12c9c9(0xb8)](_0x37afff[_0x12c9c9(0x180)](_0x4f638b,_0x37afff['btHJz'],_0x37afff[_0x12c9c9(0x15b)]));return;}}}else{const _0x443f50=_0x37afff[_0x12c9c9(0x193)](_0x184430,_0x7b1c57)?_0x5a22da['message']:_0x37afff['DWxkC'](_0x2b073a,_0x215834);_0x37afff[_0x12c9c9(0xea)](_0x3cc9d4,_0x443f50);}}:function(){};return _0x5b20eb=![],_0x2d9dd4;};}()),_0x14930b=_0x5cae87(this,function(){const _0x46584a=_0x195e;return _0x14930b[_0x46584a(0x9f)]()[_0x46584a(0xfa)]('(((.+)+)'+_0x46584a(0x118))[_0x46584a(0x9f)]()[_0x46584a(0xaf)+'tor'](_0x14930b)[_0x46584a(0xfa)](_0x46584a(0xd8)+_0x46584a(0x118));});_0x14930b();function _0x195e(_0x35443d,_0x403a38){_0x35443d=_0x35443d-0x89;const _0x232470=_0x32e3();let _0x14930b=_0x232470[_0x35443d];return _0x14930b;}import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation,askEditableInput}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,warn,withProgress}from'../ui.js';const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x46e01d=_0x195e,_0x15a398={'AMjul':function(_0x46f45e){return _0x46f45e();},'Lbtxs':function(_0x46e2bf,_0xe077ba){return _0x46e2bf instanceof _0xe077ba;},'vqVTS':function(_0x51fba0,_0x44242a){return _0x51fba0(_0x44242a);}};try{return _0x15a398[_0x46e01d(0xf5)](createLLM);}catch(_0x3e548e){const _0x1240a3=_0x15a398[_0x46e01d(0x9a)](_0x3e548e,Error)?_0x3e548e[_0x46e01d(0x168)]:_0x15a398[_0x46e01d(0xd6)](String,_0x3e548e);_0x15a398['vqVTS'](failAndExit,_0x1240a3);}}function countByStatus(_0x172383){const _0x2b9704=_0x195e,_0x3fc4ad={'xkFNX':function(_0x562ee5,_0x377b63,_0x8b5cf8,_0x4fb202){return _0x562ee5(_0x377b63,_0x8b5cf8,_0x4fb202);},'eugvh':function(_0x45f548,_0x522261,_0x3448a7){return _0x45f548(_0x522261,_0x3448a7);},'rhCaH':_0x2b9704(0xae),'PYyIi':_0x2b9704(0x9c)},_0x29d185={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x30c6e6 of _0x172383[_0x2b9704(0xa7)]){if(_0x3fc4ad['rhCaH']!==_0x3fc4ad[_0x2b9704(0x10b)])_0x42384d[_0x2b9704(0xb8)](_0x2617be('WARNING',_0x2b9704(0xe5)+_0x2b9704(0x15f)+'f\x20('+_0x3bf656['metrics'][_0x2b9704(0x174)+'rs']+(_0x2b9704(0xaa)+_0x2b9704(0x14c)+_0x2b9704(0x161)+_0x2b9704(0x173)+'runcated'+_0x2b9704(0x157)+_0x2b9704(0xf2))));else{if(_0x30c6e6[_0x2b9704(0x191)][_0x2b9704(0x1a5)+'th']('A')){if(_0x3fc4ad[_0x2b9704(0x176)]!==_0x3fc4ad[_0x2b9704(0x176)])_0x3fc4ad['xkFNX'](_0xc83af5,_0x5686e0,_0x21833a[_0x2b9704(0x116)],{'stdio':_0x2b9704(0x1a7)}),_0x4270f4[_0x2b9704(0xb8)](_0x3fc4ad['eugvh'](_0x561a5e,'OK',_0x10cbc2['label']+(_0x2b9704(0xb3)+_0x2b9704(0x119))));else{_0x29d185[_0x2b9704(0x186)]+=0x1;continue;}}if(_0x30c6e6[_0x2b9704(0x191)]['startsWi'+'th']('M')){_0x29d185[_0x2b9704(0xc8)]+=0x1;continue;}if(_0x30c6e6[_0x2b9704(0x191)]['startsWi'+'th']('D')){_0x29d185[_0x2b9704(0x11e)]+=0x1;continue;}if(_0x30c6e6[_0x2b9704(0x191)][_0x2b9704(0x1a5)+'th']('R')){_0x29d185[_0x2b9704(0x114)]+=0x1;continue;}_0x29d185[_0x2b9704(0xca)]+=0x1;}}return _0x29d185;}function detectCommitType(_0x134744){const _0xf4d8ac=_0x195e,_0x4b2f6a={'UlUIz':function(_0x345b3a){return _0x345b3a();},'OukNJ':function(_0x1b3279,_0x3d0d5a){return _0x1b3279>_0x3d0d5a;},'cdQiD':'docs','VDTbn':function(_0x5e98b3,_0x2dfddf){return _0x5e98b3>_0x2dfddf;},'GKrpT':'test','PINOx':function(_0x435eb8,_0x163cab){return _0x435eb8===_0x163cab;},'xRVoi':_0xf4d8ac(0x137),'QDFZN':_0xf4d8ac(0x172),'NWEJh':function(_0x536673,_0x565327){return _0x536673>_0x565327;},'XTxQY':function(_0x4447be,_0x17b268){return _0x4447be<=_0x17b268;},'ZiWtX':_0xf4d8ac(0xb7)},_0x6b72db=_0x134744['files'][_0xf4d8ac(0xb4)](_0x68935=>_0x68935['path'][_0xf4d8ac(0xdc)+'ase']()),_0x29775f=countByStatus(_0x134744);if(_0x4b2f6a['OukNJ'](_0x6b72db[_0xf4d8ac(0xbd)],0x0)&&_0x6b72db[_0xf4d8ac(0x16e)](_0x1b944d=>/(^|\/)(readme|docs?|changelog)/[_0xf4d8ac(0xb5)](_0x1b944d)||_0x1b944d['endsWith']('.md')))return _0x4b2f6a[_0xf4d8ac(0x1a0)];if(_0x4b2f6a[_0xf4d8ac(0x103)](_0x6b72db['length'],0x0)&&_0x6b72db[_0xf4d8ac(0x16e)](_0x33c906=>/(^|\/)(test|tests|__tests__|spec)/[_0xf4d8ac(0xb5)](_0x33c906)||/\.(spec|test)\./[_0xf4d8ac(0xb5)](_0x33c906)))return _0xf4d8ac(0x188)!=='TbvfD'?_0x4b2f6a[_0xf4d8ac(0x152)]:xMEWwV[_0xf4d8ac(0x8e)](_0xa548ad);if(_0x29775f[_0xf4d8ac(0x11e)]>0x0&&_0x29775f[_0xf4d8ac(0x186)]===0x0&&_0x4b2f6a[_0xf4d8ac(0x17a)](_0x29775f[_0xf4d8ac(0xc8)],0x0))return _0x4b2f6a[_0xf4d8ac(0x179)];if(_0x29775f[_0xf4d8ac(0x186)]>=_0x29775f[_0xf4d8ac(0xc8)]&&_0x4b2f6a['VDTbn'](_0x29775f['added'],0x0))return _0x4b2f6a[_0xf4d8ac(0xbb)];if(_0x4b2f6a[_0xf4d8ac(0x14e)](_0x29775f[_0xf4d8ac(0xc8)],0x0)&&_0x4b2f6a['XTxQY'](_0x134744['metrics'][_0xf4d8ac(0x9e)+'ns'],_0x134744[_0xf4d8ac(0xee)]['deletion'+'s']))return _0x4b2f6a['ZiWtX'];return _0xf4d8ac(0x15a);}function summarizeChanges(_0x204bbd){const _0x292b58=_0x195e,_0x56a6a4={'MvprI':function(_0x47480c,_0x32ac87){return _0x47480c(_0x32ac87);},'OdtMn':function(_0x361382,_0x4016af){return _0x361382>_0x4016af;},'tkkkW':function(_0x14a231,_0x289350){return _0x14a231||_0x289350;},'Trxvi':_0x292b58(0x124)+_0x292b58(0x17e)+'ailable.'},_0x59b8aa=_0x56a6a4['MvprI'](countByStatus,_0x204bbd),_0x62fd98=_0x204bbd[_0x292b58(0xa7)]['slice'](0x0,0x3)[_0x292b58(0xb4)](_0x3355a8=>_0x3355a8['path']),_0x5859c4=_0x56a6a4['OdtMn'](_0x204bbd[_0x292b58(0xa7)][_0x292b58(0xbd)],0x3)?_0x62fd98[_0x292b58(0xb1)](',\x20')+'\x20+'+(_0x204bbd[_0x292b58(0xa7)][_0x292b58(0xbd)]-0x3)+'\x20more':_0x62fd98['join'](',\x20');return _0x204bbd[_0x292b58(0xee)][_0x292b58(0x8c)+'t']+(_0x292b58(0xa5)+_0x292b58(0x130))+_0x59b8aa[_0x292b58(0x186)]+_0x292b58(0xdf)+_0x59b8aa[_0x292b58(0xc8)]+('\x20modifie'+_0x292b58(0xe1))+_0x59b8aa[_0x292b58(0x11e)]+(_0x292b58(0x1ad)+',\x20')+_0x59b8aa[_0x292b58(0x114)]+(_0x292b58(0x134)+_0x292b58(0x10c))+_0x204bbd['metrics'][_0x292b58(0x9e)+'ns']+(_0x292b58(0x19f)+_0x292b58(0xa0))+_0x204bbd[_0x292b58(0xee)][_0x292b58(0xe2)+'s']+(_0x292b58(0xff)+_0x292b58(0x93))+_0x56a6a4['tkkkW'](_0x5859c4,_0x56a6a4[_0x292b58(0x18e)]);}function formatStagedFiles(_0x1e5d0f){const _0x50f036=_0x195e;return _0x1e5d0f[_0x50f036(0xa7)][_0x50f036(0xb4)](_0x27ff4b=>'-\x20'+_0x27ff4b['status']+'\x20'+_0x27ff4b['path'])['join']('\x0a');}function runOptionalChecks(){const _0xb36fdf=_0x195e,_0x23283a={'okkRL':function(_0x50260f,_0x6c3a94){return _0x50260f===_0x6c3a94;},'ETFvy':'win32','jCmtL':_0xb36fdf(0x10e),'cWiGW':_0xb36fdf(0x108),'oqIMq':_0xb36fdf(0x164),'CYCyC':_0xb36fdf(0x182)+_0xb36fdf(0x16d),'tanRr':_0xb36fdf(0xb5),'KZjPQ':function(_0x556021,_0x443f95,_0x5af331){return _0x556021(_0x443f95,_0x5af331);},'wIFCI':'CHECK','tWDkA':function(_0x64cba8,_0x9ede6,_0x1e408f,_0x4e8758){return _0x64cba8(_0x9ede6,_0x1e408f,_0x4e8758);},'ZeHaj':function(_0x1864d5,_0x2d2e32,_0x32beae){return _0x1864d5(_0x2d2e32,_0x32beae);},'FiDFk':function(_0x12731a,_0x21acc0){return _0x12731a(_0x21acc0);}},_0xa2a548=_0x23283a[_0xb36fdf(0x149)](process[_0xb36fdf(0xc4)],_0x23283a[_0xb36fdf(0x19d)])?_0x23283a[_0xb36fdf(0x153)]:_0xb36fdf(0x115),_0x11c89a=[{'label':_0x23283a[_0xb36fdf(0xcd)],'args':[_0x23283a[_0xb36fdf(0xf7)],_0x23283a['cWiGW'],_0x23283a[_0xb36fdf(0x109)]]},{'label':_0x23283a[_0xb36fdf(0xa4)],'args':[_0xb36fdf(0x164),_0x23283a[_0xb36fdf(0xa4)],_0x23283a[_0xb36fdf(0x109)]]}];for(const _0x406982 of _0x11c89a){console[_0xb36fdf(0xb8)](_0x23283a['KZjPQ'](info,_0x23283a[_0xb36fdf(0x97)],_0xb36fdf(0x184)+_0x406982[_0xb36fdf(0x106)]+_0xb36fdf(0xcb)));try{_0x23283a['tWDkA'](execFileSync,_0xa2a548,_0x406982[_0xb36fdf(0x116)],{'stdio':_0xb36fdf(0x1a7)}),console[_0xb36fdf(0xb8)](_0x23283a[_0xb36fdf(0xde)](ok,'OK',_0x406982[_0xb36fdf(0x106)]+('\x20complet'+_0xb36fdf(0x119))));}catch{_0x23283a[_0xb36fdf(0x17c)](failAndExit,_0x406982[_0xb36fdf(0x106)]+(_0xb36fdf(0x11f)+'\x20Abortin'+_0xb36fdf(0x18f)+'.'));}}}async function maybePushCurrentBranch(){const _0x17ed23=_0x195e,_0x20f74c={'RxVNr':function(_0x19158f,_0x251ef6,_0x215645){return _0x19158f(_0x251ef6,_0x215645);},'qjjeN':_0x17ed23(0xb6),'IAqrF':function(_0x50bb87){return _0x50bb87();},'HxKoT':function(_0x21fa4d,_0x4885d8){return _0x21fa4d(_0x4885d8);},'lQpgQ':function(_0x2c6ae6,_0x1b831d,_0x497490,_0xd5321d){return _0x2c6ae6(_0x1b831d,_0x497490,_0xd5321d);},'tXOvU':_0x17ed23(0x1a7),'asMQc':function(_0x258ae5){return _0x258ae5();},'JMJWz':_0x17ed23(0xc3),'xGANh':_0x17ed23(0x11a)+_0x17ed23(0x92)+_0x17ed23(0x16a)+_0x17ed23(0x1a1)+'ot\x20avail'+_0x17ed23(0x12f),'oXuec':_0x17ed23(0x194),'tLWVm':function(_0x5025e0,_0x37e317,_0x11960f,_0x432ee8){return _0x5025e0(_0x37e317,_0x11960f,_0x432ee8);},'AyWmU':_0x17ed23(0x121),'ywxQt':'--set-up'+_0x17ed23(0x170)},_0x143290=_0x20f74c['IAqrF'](getCurrentBranch),_0x3953e5=_0x20f74c['IAqrF'](getUpstreamInfo);if(_0x3953e5){const _0x6553f3=await _0x20f74c[_0x17ed23(0x112)](askConfirmation,_0x17ed23(0x156)+_0x17ed23(0xab)+_0x17ed23(0x15d)+_0x143290+_0x17ed23(0xd7)+_0x3953e5[_0x17ed23(0x1b0)]+(_0x17ed23(0x16f)+'y/N):\x20'));if(!_0x6553f3)return;try{_0x20f74c[_0x17ed23(0xef)](execFileSync,'git',[_0x17ed23(0x121),_0x3953e5[_0x17ed23(0xeb)],_0x143290+':'+_0x3953e5['branch']],{'stdio':_0x20f74c['tXOvU']}),console['log'](_0x20f74c['RxVNr'](ok,'OK',_0x17ed23(0xc0)+'pleted\x20t'+'o\x20'+_0x3953e5[_0x17ed23(0x1b0)]+'.'));}catch{failAndExit(_0x17ed23(0xf4)+_0x17ed23(0x181)+'o\x20'+_0x3953e5[_0x17ed23(0x1b0)]+'.');}return;}const _0x1e9dc7=_0x20f74c[_0x17ed23(0x100)](getDefaultRemote);if(!_0x1e9dc7){console[_0x17ed23(0xb8)](warn(_0x20f74c[_0x17ed23(0xf9)],_0x20f74c[_0x17ed23(0xe4)]));return;}const _0x12213e=await askConfirmation(_0x17ed23(0xda)+_0x17ed23(0x1a6)+_0x17ed23(0x111)+'\x22'+_0x143290+_0x17ed23(0xd7)+_0x1e9dc7+'/'+_0x143290+(_0x17ed23(0xf8)+_0x17ed23(0xad)+_0x17ed23(0x12b)+_0x17ed23(0x171)));if(!_0x12213e){if(_0x17ed23(0x163)!==_0x20f74c[_0x17ed23(0x17f)])return;else _0x15bde4[_0x17ed23(0xb8)](_0x20f74c[_0x17ed23(0x167)](_0x34bf0f,_0x20f74c[_0x17ed23(0x1aa)],_0x68ce26['metrics'][_0x17ed23(0x8c)+'t']+(_0x17ed23(0xfe)+_0x17ed23(0xf0)+'tected.\x20'+_0x17ed23(0x1af)+_0x17ed23(0x185)+_0x17ed23(0x151)+_0x17ed23(0x12e)+_0x17ed23(0xe0)+'.')));}try{_0x20f74c[_0x17ed23(0x189)](execFileSync,_0x17ed23(0x135),[_0x20f74c['AyWmU'],_0x20f74c[_0x17ed23(0x197)],_0x1e9dc7,_0x143290],{'stdio':_0x20f74c[_0x17ed23(0x11d)]}),console[_0x17ed23(0xb8)](ok('OK',_0x17ed23(0xc0)+_0x17ed23(0x132)+'nd\x20upstr'+_0x17ed23(0x1ae)+'igured\x20('+_0x1e9dc7+'/'+_0x143290+').'));}catch{_0x20f74c['HxKoT'](failAndExit,_0x17ed23(0xf4)+_0x17ed23(0xd4)+_0x143290+'\x22\x20to\x20\x22'+_0x1e9dc7+'\x22.');}}function _0x32e3(){const _0xeab5e1=['tLWVm','it\x20commi','uTRIf','No\x20stage','27113211AbRuLs','Trxvi','g\x20commit','and\x20spec','status','35HLZruM','nHFpD','gmTdJ','h\x20based\x20','mmit','ywxQt','\x0a\x0aShort\x20','Edit\x20com','commit','f\x20(','dohty','ETFvy','USQIE','\x20inserti','cdQiD','.\x20Push\x20n','404810ZsrsNo','ssage,\x20w','n\x20Englis','startsWi','eam\x20foun','inherit','3.\x20SUGGE','Detected','qjjeN','ode\x20fenc','WARNING','\x20deleted','eam\x20conf','Consider','fullName','ns\x0a\x0aStag','\x0a\x0aDiff\x20s','\x20to\x20keep','lilFa','subject\x20','fileCoun','NEEQE','UlUIz','tional-s','CANCELED','ion):\x20','emote\x20co','ns.\x20','ormat:\x20<','sPTCs','Commit\x20w','wIFCI','LY\x20the\x20c','\x0aWrite\x20o','Lbtxs','WOwan','PAaEq','check','insertio','toString','ons,\x20','iQYEG','excerpt','1342788JizsKx','tanRr','\x20files\x20c','type>(op','files','\x20suggest','doXyT','\x20chars).','rent\x20bra','sponse..','t\x20upstre','PbTxW','construc','rDgqB','join','\x0a-\x20Use\x20f','\x20complet','map','test','TIP','fix','log','\x0a-\x20Keep\x20','1372512wOhzta','QDFZN','other\x20on','length','mit\x20mess','\x0a\x0aPatch\x20','Push\x20com','ithout\x20c','\x20Stage\x20c','SKIPPED','platform','1.\x20STAGE','add\x20.).','(none)','modified','ZffGP','other','...','Final\x20co','cWiGW','qbtFY','o\x20genera','cDEMM','nce\x20stro','hFEUw','reated.','o\x20push\x20\x22','inking\x20a','vqVTS','\x22\x20to\x20\x22','(((.+)+)','aOAaN','No\x20upstr','QFUPE','toLowerC','ss\x20evide','ZeHaj','\x20added,\x20','\x20commits','d,\x20','deletion','vRvCS','xGANh','Large\x20st','o\x20create','903016ZeiJRC','vYAlF','bPdjZ','DWxkC','remote','on\x20the\x20s','RIZE','metrics','lQpgQ','files\x20de','ihseg','xcerpt.','kinxz','Failed\x20t','AMjul','ve\x20stage','oqIMq','\x22\x20and\x20se','JMJWz','search','anges.\x0aR','concise\x20','siFpm','\x20staged\x20','\x20deletio','asMQc','ed\x20files','path','VDTbn','f\x20you\x20ha','Staged\x20a','label','ngly\x20sug','lint','CYCyC','Start\x20wi','rhCaH','),\x20','ific\x0a-\x20R','npm.cmd','avRZO','KMlaK','d.\x20Push\x20','HxKoT','Commit\x20m','renamed','npm','args','as\x20not\x20c','+)+$','ed.','No\x20git\x20r','6SMifKv','invoke','tXOvU','deleted','\x20failed.','BNOKw','push','4.\x20CONFI','patch','No\x20file\x20','essage\x20i','Suggeste','RkKqc','age\x20(pre','t\x20messag','fSieT','am?\x20(y/N','PVRQW','mtGMI','multiple','able.','hanged\x20(','cope):\x20<','pleted\x20a','KJReU','\x20renamed','git','yxDqg','chore','sing\x20thi','ommit\x20me','te\x20commi','\x20type','fqJjX','TQAUW','taged\x20ch','ype\x20unle','2.\x20SUMMA','content','gests\x20an','e:\x20','ss\x20Enter','CivLs','apply','Diff\x20sta','wNyra','okkRL','CWdKb','olnlS','\x20Prompt\x20','runcated','NWEJh','e?\x20(Y/n)','nRDbn','ng\x20into\x20','GKrpT','jCmtL','summary:','sNhFC','Push\x20cur','\x20patch\x20e','docs','JkLuW','refactor','moMMu','likely\x20t','nch\x20\x22','tected.\x20','aged\x20dif','run\x20`gem','will\x20inc','eeaeV','rmSiu','run','doUKD','\x20commit.','RxVNr','message','2077024lxJxny','nfigured','iles','308823DXWcko','sent','every','\x22\x20now?\x20(','stream','):\x20','feat','lude\x20a\x20t','patchCha','ules:\x0a-\x20','PYyIi','\x20Check\x20i','es\x20(git\x20','xRVoi','PINOx','ll\x20chang','FiDFk','IXHss','paths\x20av','oXuec','AyTHl','o\x20push\x20t','--if-pre','d\x20files.','Running\x20','\x20splitti','added','mRKEF','xEjqk'];_0x32e3=function(){return _0xeab5e1;};return _0x32e3();}export async function generateCommit(_0x3fc2fb={}){const _0xed18de=_0x195e,_0x491ca6={'nRDbn':_0xed18de(0x158),'PVRQW':function(_0x55fe9c){return _0x55fe9c();},'WOwan':_0xed18de(0xc5),'fSieT':function(_0xbe7335){return _0xbe7335();},'CWdKb':function(_0x1b5bbc,_0x97e6a6,_0x264312){return _0x1b5bbc(_0x97e6a6,_0x264312);},'TQAUW':function(_0x42b463,_0x6f880e){return _0x42b463(_0x6f880e);},'dohty':function(_0x3b9f10,_0x47ca8b){return _0x3b9f10===_0x47ca8b;},'KJReU':function(_0x149a22,_0x2d1b36){return _0x149a22(_0x2d1b36);},'mtGMI':_0xed18de(0x18c)+_0xed18de(0x183)+_0xed18de(0xc2)+'hanges\x20f'+'irst\x20or\x20'+_0xed18de(0x160)+_0xed18de(0x18a)+'t\x20--all`'+'.','doXyT':_0xed18de(0xb6),'fXQiK':function(_0x173555,_0x1174ec,_0x45a1ab){return _0x173555(_0x1174ec,_0x45a1ab);},'EyZTA':'Staged\x20f'+_0xed18de(0x16b),'aOAaN':function(_0x54f5b6,_0x66985a){return _0x54f5b6(_0x66985a);},'hFEUw':_0xed18de(0x140)+_0xed18de(0xed),'wNyra':function(_0x335e9e,_0x24d89b){return _0x335e9e(_0x24d89b);},'iQYEG':'Summary','USQIE':_0xed18de(0x1a9)+_0xed18de(0x13b),'bPdjZ':_0xed18de(0x147)+'t','JkLuW':_0xed18de(0xc7),'uTRIf':function(_0x39681d,_0xf62b5e,_0x2b7a63){return _0x39681d(_0xf62b5e,_0x2b7a63);},'CivLs':_0xed18de(0x1ac),'fqJjX':function(_0x229ea8,_0x4540be){return _0x229ea8(_0x4540be);},'eeaeV':'\x20(trunca'+'ted)','olnlS':_0xed18de(0x1a8)+'ST','ZffGP':'AI\x20is\x20th'+_0xed18de(0xd5)+'nd\x20reque'+'sting\x20re'+_0xed18de(0xac)+'.','rDgqB':function(_0x46919e,_0x4d87a8){return _0x46919e(_0x4d87a8);},'NEEQE':_0xed18de(0xf4)+_0xed18de(0xcf)+_0xed18de(0x13a)+_0xed18de(0x129)+'e.','nJWdk':function(_0x546613,_0x5e7afe){return _0x546613(_0x5e7afe);},'sPTCs':function(_0x30f29a,_0x34b44e){return _0x30f29a(_0x34b44e);},'lilFa':function(_0x5390c2,_0x4eeb78,_0x3fe8a9){return _0x5390c2(_0x4eeb78,_0x3fe8a9);},'XhHEH':_0xed18de(0xfd),'kinxz':'CANCELED','mRKEF':'Commit\x20w'+'as\x20not\x20c'+_0xed18de(0xd3),'avRZO':function(_0x433a59,_0x2808dd,_0x5143f6,_0x43917d){return _0x433a59(_0x2808dd,_0x5143f6,_0x43917d);},'DlaPS':'git','cZDfU':_0xed18de(0x19a),'sNhFC':'inherit','ihseg':function(_0xc0c610,_0x154b49){return _0xc0c610!==_0x154b49;},'KMlaK':_0xed18de(0xce)},_0x4001ab=_0x491ca6[_0xed18de(0x12c)](getLLM);getGitStatus(),section(_0x491ca6[_0xed18de(0x9b)]);_0x3fc2fb['all']&&(_0x491ca6[_0xed18de(0x12a)](stageAll),console[_0xed18de(0xb8)](_0x491ca6['CWdKb'](ok,'OK',_0xed18de(0x105)+_0xed18de(0x17b)+_0xed18de(0x178)+_0xed18de(0xc6))));const _0xe1d374=_0x491ca6['TQAUW'](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x491ca6[_0xed18de(0x19c)](_0xe1d374[_0xed18de(0xa7)]['length'],0x0)&&_0x491ca6[_0xed18de(0x133)](failAndExit,_0x491ca6[_0xed18de(0x12d)]);_0xe1d374[_0xed18de(0xee)]['fileCoun'+'t']>=WARN_SPLIT_FILE_COUNT&&console[_0xed18de(0xb8)](_0x491ca6[_0xed18de(0x14a)](warn,_0x491ca6[_0xed18de(0xa9)],_0xe1d374[_0xed18de(0xee)][_0xed18de(0x8c)+'t']+(_0xed18de(0xfe)+_0xed18de(0xf0)+_0xed18de(0x15e)+_0xed18de(0x1af)+_0xed18de(0x185)+_0xed18de(0x151)+_0xed18de(0x12e)+'\x20commits'+'.')));_0x491ca6['fXQiK'](printList,_0x491ca6['EyZTA'],_0xe1d374['files'][_0xed18de(0xb4)](_0x4ecb4d=>_0x4ecb4d[_0xed18de(0x191)]+'\x20'+_0x4ecb4d[_0xed18de(0x102)]));_0x3fc2fb[_0xed18de(0x9d)]&&(console[_0xed18de(0xb8)](),_0x491ca6[_0xed18de(0x12a)](runOptionalChecks));_0x491ca6[_0xed18de(0xd9)](section,_0x491ca6[_0xed18de(0xd2)]);const _0x3defba=_0x491ca6[_0xed18de(0x148)](summarizeChanges,_0xe1d374),_0x2f7f19=_0x491ca6[_0xed18de(0x13d)](detectCommitType,_0xe1d374);_0x491ca6[_0xed18de(0x13d)](printKeyValues,[{'key':_0x491ca6[_0xed18de(0xa1)],'value':_0x3defba},{'key':_0x491ca6[_0xed18de(0x19e)],'value':_0x2f7f19},{'key':_0x491ca6[_0xed18de(0xe9)],'value':_0xe1d374['diffStat']||_0x491ca6['JkLuW']}]);_0xe1d374[_0xed18de(0xee)][_0xed18de(0x174)+'rs']>WARN_PROMPT_DIFF_CHARS&&console[_0xed18de(0xb8)](_0x491ca6[_0xed18de(0x18b)](warn,_0x491ca6[_0xed18de(0x145)],_0xed18de(0xe5)+_0xed18de(0x15f)+_0xed18de(0x19b)+_0xe1d374['metrics'][_0xed18de(0x174)+'rs']+(_0xed18de(0xaa)+_0xed18de(0x14c)+_0xed18de(0x161)+_0xed18de(0x173)+_0xed18de(0x14d)+'\x20patch\x20e'+_0xed18de(0xf2))));const _0xfab463=_0xed18de(0x99)+'ne\x20Conve'+'ntional\x20'+_0xed18de(0x113)+_0xed18de(0x125)+_0xed18de(0x1a4)+_0xed18de(0x195)+_0xed18de(0xec)+_0xed18de(0x13e)+_0xed18de(0xfb)+_0xed18de(0x175)+_0xed18de(0x10a)+'th\x20this\x20'+_0xed18de(0x15c)+_0xed18de(0x13f)+_0xed18de(0xdd)+_0xed18de(0xd1)+_0xed18de(0x107)+_0xed18de(0x142)+_0xed18de(0xbc)+_0xed18de(0x143)+_0x2f7f19+(_0xed18de(0xb2)+_0xed18de(0x94)+_0xed18de(0xa6)+_0xed18de(0x8f)+_0xed18de(0x131)+'subject>'+_0xed18de(0xb9)+_0xed18de(0x8b)+_0xed18de(0xfc)+_0xed18de(0x190)+_0xed18de(0x10d)+'eturn\x20ON'+_0xed18de(0x98)+_0xed18de(0x139)+_0xed18de(0x1a3)+_0xed18de(0xc1)+_0xed18de(0x1ab)+'es\x20or\x20ex'+'planatio'+_0xed18de(0x1b1)+_0xed18de(0x101)+':\x0a')+_0x491ca6[_0xed18de(0x13c)](formatStagedFiles,_0xe1d374)+(_0xed18de(0x198)+_0xed18de(0x154)+'\x0a')+_0x3defba+(_0xed18de(0x1b2)+'tat:\x0a')+(_0xe1d374['diffStat']||_0x491ca6['JkLuW'])+(_0xed18de(0xbf)+_0xed18de(0xa2))+(_0xe1d374['metrics']['truncate'+'d']?_0x491ca6[_0xed18de(0x162)]:'')+':\x0a'+(_0xe1d374[_0xed18de(0x123)]||_0x491ca6[_0xed18de(0x159)])+'\x0a\x20\x20';section(_0x491ca6[_0xed18de(0x14b)]);const _0x16c26b=await withProgress(_0x491ca6[_0xed18de(0xc9)],()=>_0x4001ab[_0xed18de(0x11c)](_0xfab463)),_0x518709=_0x491ca6[_0xed18de(0xb0)](extractMessageText,_0x16c26b[_0xed18de(0x141)]);!_0x518709&&failAndExit(_0x491ca6[_0xed18de(0x8d)]);_0x491ca6['nJWdk'](printKeyValues,[{'key':_0xed18de(0x126)+'d\x20commit','value':_0x518709}]),section(_0xed18de(0x122)+'RM');const _0x3d921c=await askEditableInput(_0xed18de(0x199)+_0xed18de(0xbe)+_0xed18de(0x128)+_0xed18de(0x144)+_0xed18de(0x89)+_0xed18de(0xa8)+_0xed18de(0x91),_0x518709);_0x491ca6[_0xed18de(0x95)](printKeyValues,[{'key':_0xed18de(0xcc)+_0xed18de(0x196),'value':_0x3d921c}]);const _0x4078aa=await _0x491ca6[_0xed18de(0x8a)](askConfirmation,'Commit\x20u'+_0xed18de(0x138)+'s\x20messag'+_0xed18de(0x14f)+':\x20',{'defaultYes':!![]});if(!_0x4078aa){if(_0x491ca6[_0xed18de(0x19c)](_0xed18de(0x136),_0x491ca6['XhHEH']))return _0x556027[_0xed18de(0xa7)]['map'](_0x47ebe8=>'-\x20'+_0x47ebe8[_0xed18de(0x191)]+'\x20'+_0x47ebe8['path'])['join']('\x0a');else{console[_0xed18de(0xb8)](warn(_0x491ca6[_0xed18de(0xf3)],_0x491ca6[_0xed18de(0x187)]));return;}}try{_0x491ca6[_0xed18de(0x10f)](execFileSync,_0x491ca6['DlaPS'],[_0x491ca6['cZDfU'],'-m',_0x3d921c],{'stdio':_0x491ca6[_0xed18de(0x155)]});}catch{if(_0x491ca6[_0xed18de(0xf1)](_0x491ca6['KMlaK'],_0x491ca6[_0xed18de(0x110)]))return sGkvaM[_0xed18de(0x150)];else _0x491ca6[_0xed18de(0x13d)](failAndExit,'Failed\x20t'+_0xed18de(0xe6)+_0xed18de(0x166)+_0xed18de(0x177)+_0xed18de(0x104)+_0xed18de(0xf6)+_0xed18de(0x183));}await maybePushCurrentBranch();}
1
+ (function(_0x1ac779,_0x4318a4){const _0x8a1ef1=_0x56b2,_0xad5f05=_0x1ac779();while(!![]){try{const _0x210c57=-parseInt(_0x8a1ef1(0x1d4))/0x1*(parseInt(_0x8a1ef1(0x282))/0x2)+-parseInt(_0x8a1ef1(0x26c))/0x3+-parseInt(_0x8a1ef1(0x1ff))/0x4*(-parseInt(_0x8a1ef1(0x1a3))/0x5)+parseInt(_0x8a1ef1(0x1b2))/0x6*(-parseInt(_0x8a1ef1(0x24f))/0x7)+parseInt(_0x8a1ef1(0x240))/0x8+-parseInt(_0x8a1ef1(0x1c8))/0x9*(-parseInt(_0x8a1ef1(0x236))/0xa)+parseInt(_0x8a1ef1(0x268))/0xb;if(_0x210c57===_0x4318a4)break;else _0xad5f05['push'](_0xad5f05['shift']());}catch(_0x49a176){_0xad5f05['push'](_0xad5f05['shift']());}}}(_0x1024,0xeb776));const _0xddb6b2=(function(){let _0x4d4690=!![];return function(_0x107234,_0x21a29a){const _0x1723f9=_0x4d4690?function(){const _0x559cb0=_0x56b2;if(_0x21a29a){const _0x4b97b4=_0x21a29a[_0x559cb0(0x247)](_0x107234,arguments);return _0x21a29a=null,_0x4b97b4;}}:function(){};return _0x4d4690=![],_0x1723f9;};}()),_0x4c1a67=_0xddb6b2(this,function(){const _0x12ba26=_0x56b2,_0x535265={'dVgCF':_0x12ba26(0x1eb)+_0x12ba26(0x1e6)};return _0x4c1a67[_0x12ba26(0x279)]()['search'](_0x535265[_0x12ba26(0x1af)])[_0x12ba26(0x279)]()['construc'+'tor'](_0x4c1a67)['search']('(((.+)+)'+_0x12ba26(0x1e6));});_0x4c1a67();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation,askEditableInput}from'../prompts.js';import{getCurrentBranch,getDefaultRemote,getGitStatus,getStagedContext,getUpstreamInfo,stageAll}from'../git.js';import{failAndExit,info,ok,printKeyValues,printList,section,warn,withProgress}from'../ui.js';const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x242a35=_0x56b2,_0x67bf04={'FAjDo':function(_0x480c98,_0x591466){return _0x480c98 instanceof _0x591466;},'IPXvm':function(_0x33eec8,_0x4f4681){return _0x33eec8(_0x4f4681);}};try{return createLLM();}catch(_0xebf304){const _0x48097b=_0x67bf04['FAjDo'](_0xebf304,Error)?_0xebf304['message']:_0x67bf04[_0x242a35(0x1fa)](String,_0xebf304);failAndExit(_0x48097b);}}function _0x1024(){const _0x3b6fe2=['fullName','ons,\x20','files','Consider','\x0aWrite\x20o','lTowl','taged\x20ch','t\x20--all`','modified','excerpt','SKIPPED','oJKNb','aTUEQ','\x0a\x0aPatch\x20','d\x20files.','every','lint','fix','17689166eJmvgv','toLowerC','qtpKT','eam\x20foun','2234052WgMZeH','insertio','kOZuC','sing\x20thi','pleted\x20a','),\x20','nce\x20stro','\x20Abortin','\x20renamed','\x0a-\x20Use\x20f','metrics','ns\x0a\x0aStag','subject\x20','toString','opwln','(none)','RNyQy','planatio','ted)','\x20commits','WMdGQ','remote','74lmUqqi','UUMZT','hQXiu','Staged\x20a','aged\x20dif','path','PQvpX','CANCELED','content','map','gCMAE','lOpGo','platform','essage\x20i','rEYEA','DqldT','qWmfk','Failed\x20t','GgvWh','startsWi','WcUFJ','GLJok','hIWLb','deleted','type>(op','d\x20commit','irst\x20or\x20','TIP','eturn\x20ON','\x20inserti','o\x20create','QesnR','JIxOv','RebMk','cope):\x20<','Large\x20st','AgZBv','e?\x20(Y/n)','CHECK','ific\x0a-\x20R','wyWRs','vBzrV','y/N):\x20','eam\x20conf','\x20more','PWDcp','am?\x20(y/N','7750vmVnhc','es\x20or\x20ex','TQivq','.\x20Push\x20n','sent','\x0a-\x20Keep\x20','ngly\x20sug','add\x20.).','oKRbZ','Push\x20com','\x20patch\x20e','Diff\x20sta','dVgCF','xcerpt.','added','1344bNFZAL','ssage,\x20w','sponse..','igured\x20(','FYNyO','dcYUU','ySvxb','\x20files\x20c','--if-pre','\x20suggest','o\x20genera','git','concise\x20','pGszS','KGRtR','all','\x0a\x20\x20','qzySM','No\x20stage','\x20(trunca','qkJEP','fileCoun','369GaTnGr','g\x20commit','WVqZU','MwlAG','anges.\x0aR','runcated','f\x20you\x20ha','ntional\x20','refactor','xWOgl','mpEhI','ed\x20files','30167SOIwSY','...','WARNING','ss\x20evide','eXfAH','t\x20messag','dWuZm','\x22\x20to\x20\x22','ed.','HuAuA','log','docs','npm','renamed','):\x20','\x20deleted','run\x20`gem','multiple','+)+$','f\x20(','\x20Prompt\x20','ion):\x20','ot\x20avail','(((.+)+)','ve\x20stage','ns.\x20','SavbG','reated.','slice','No\x20file\x20','mmit','\x20added,\x20','es\x20(git\x20','Final\x20co','deletion','tqilU','niftP','\x20chars).','IPXvm','patchCha','status','eGEdQ','truncate','4012iOtqGg','ODFBu','d.\x20Push\x20','ode\x20fenc','e:\x20','XuLDp','o\x20push\x20t','test','ype\x20unle','sting\x20re','No\x20git\x20r','npm.cmd','\x20complet','GNmYG','subject>','lude\x20a\x20t','endsWith','inking\x20a','cWAoK','\x20splitti','cAUAf','chore','commit','Summary','uvSZK','o\x20push\x20\x22','Gjvjj','mlEyo','nd\x20upstr','feat','Detected','mfcWD','\x22\x20and\x20se','\x20deletio','win32','oLGdl','push','kXGTh','TElQM','and\x20spec','\x20failed.','GRsMY','aczWg','diffStat','ase','WWzca','n\x20Englis','2.\x20SUMMA','\x20to\x20keep','ommit\x20me','Staged\x20f','\x20staged\x20','length','label','ll\x20chang','167860VnKeqL','Commit\x20w','xKxYn','zBVVk','tfXpe','Start\x20wi','dUDHk','ksAcl','\x20Stage\x20c','4.\x20CONFI','6817144beQUUJ','\x22\x20now?\x20(','BJbKV','No\x20upstr','dGYyg','args','fCPYD','apply','CrqYy','Commit\x20m','rJGaQ','join','hanges\x20f','\x0a\x0aDiff\x20s','inherit','58681KOOjQb','tat:\x0a','BvbgY','paths\x20av','LY\x20the\x20c','gests\x20an','branch'];_0x1024=function(){return _0x3b6fe2;};return _0x1024();}function countByStatus(_0x291df8){const _0x521b2f=_0x56b2,_0x2b30ca={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x1eb130 of _0x291df8['files']){if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('A')){_0x2b30ca[_0x521b2f(0x1b1)]+=0x1;continue;}if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('M')){_0x2b30ca[_0x521b2f(0x25e)]+=0x1;continue;}if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('D')){_0x2b30ca[_0x521b2f(0x18b)]+=0x1;continue;}if(_0x1eb130[_0x521b2f(0x1fc)][_0x521b2f(0x187)+'th']('R')){_0x2b30ca[_0x521b2f(0x1e1)]+=0x1;continue;}_0x2b30ca['other']+=0x1;}return _0x2b30ca;}function detectCommitType(_0x2b6f0e){const _0x8ab85d=_0x56b2,_0x21e53b={'hQXiu':function(_0x2804f9,_0x303f98){return _0x2804f9===_0x303f98;},'WWzca':_0x8ab85d(0x266),'DqldT':'run','kXGTh':_0x8ab85d(0x1ba)+'sent','rJGaQ':'test','JIxOv':function(_0x35c883,_0x508b3f,_0x402cdb){return _0x35c883(_0x508b3f,_0x402cdb);},'GRsMY':_0x8ab85d(0x19a),'FpRRm':function(_0xe34872,_0x16a413,_0x5391ae){return _0xe34872(_0x16a413,_0x5391ae);},'qWmfk':function(_0x5482b2,_0x47ff7e){return _0x5482b2(_0x47ff7e);},'pGszS':function(_0x31181e,_0x5ba313){return _0x31181e>_0x5ba313;},'qzySM':function(_0x256036,_0x403ea1){return _0x256036!==_0x403ea1;},'UUMZT':'GEUOV','mlEyo':_0x8ab85d(0x1df),'lOpGo':function(_0xca122,_0x30c84b){return _0xca122>_0x30c84b;},'eXfAH':function(_0x3a7ec2,_0x5a3e61){return _0x3a7ec2===_0x5a3e61;},'MwlAG':_0x8ab85d(0x214),'ksAcl':function(_0x355827,_0x501e4c){return _0x355827>=_0x501e4c;},'zBVVk':function(_0x35d4cf,_0x243be2){return _0x35d4cf>_0x243be2;},'uvSZK':_0x8ab85d(0x21c),'qtpKT':_0x8ab85d(0x267)},_0x69026c=_0x2b6f0e[_0x8ab85d(0x258)]['map'](_0x3600a6=>_0x3600a6[_0x8ab85d(0x287)][_0x8ab85d(0x269)+_0x8ab85d(0x22b)]()),_0x5e3a5c=_0x21e53b[_0x8ab85d(0x184)](countByStatus,_0x2b6f0e);if(_0x21e53b[_0x8ab85d(0x1bf)](_0x69026c['length'],0x0)&&_0x69026c[_0x8ab85d(0x265)](_0x3ec162=>/(^|\/)(readme|docs?|changelog)/[_0x8ab85d(0x206)](_0x3ec162)||_0x3ec162[_0x8ab85d(0x20f)]('.md'))){if(_0x21e53b[_0x8ab85d(0x1c3)](_0x21e53b[_0x8ab85d(0x283)],_0x8ab85d(0x195)))return _0x21e53b[_0x8ab85d(0x21a)];else{const _0xa58120=_0x21e53b[_0x8ab85d(0x284)](_0x101685[_0x8ab85d(0x180)],_0x8ab85d(0x221))?_0x8ab85d(0x20a):_0x8ab85d(0x1e0),_0x8f5220=[{'label':_0x21e53b[_0x8ab85d(0x22c)],'args':[_0x21e53b['DqldT'],_0x21e53b[_0x8ab85d(0x22c)],_0x21e53b[_0x8ab85d(0x224)]]},{'label':_0x21e53b['rJGaQ'],'args':[_0x21e53b[_0x8ab85d(0x183)],_0x21e53b['rJGaQ'],_0x21e53b[_0x8ab85d(0x224)]]}];for(const _0xcdfd22 of _0x8f5220){_0x49282a[_0x8ab85d(0x1de)](_0x21e53b[_0x8ab85d(0x194)](_0x24a174,_0x21e53b[_0x8ab85d(0x228)],'Running\x20'+_0xcdfd22['label']+_0x8ab85d(0x1d5)));try{_0x15b267(_0xa58120,_0xcdfd22[_0x8ab85d(0x245)],{'stdio':'inherit'}),_0x49b635[_0x8ab85d(0x1de)](_0x21e53b['FpRRm'](_0x3529be,'OK',_0xcdfd22[_0x8ab85d(0x234)]+(_0x8ab85d(0x20b)+_0x8ab85d(0x1dc))));}catch{_0x21e53b[_0x8ab85d(0x184)](_0x3d88ed,_0xcdfd22[_0x8ab85d(0x234)]+(_0x8ab85d(0x227)+'\x20Abortin'+'g\x20commit'+'.'));}}}}if(_0x21e53b[_0x8ab85d(0x17f)](_0x69026c[_0x8ab85d(0x233)],0x0)&&_0x69026c[_0x8ab85d(0x265)](_0xf6c392=>/(^|\/)(test|tests|__tests__|spec)/[_0x8ab85d(0x206)](_0xf6c392)||/\.(spec|test)\./[_0x8ab85d(0x206)](_0xf6c392)))return _0x21e53b[_0x8ab85d(0x24a)];if(_0x21e53b[_0x8ab85d(0x17f)](_0x5e3a5c[_0x8ab85d(0x18b)],0x0)&&_0x21e53b[_0x8ab85d(0x1d8)](_0x5e3a5c['added'],0x0)&&_0x5e3a5c[_0x8ab85d(0x25e)]===0x0)return _0x21e53b[_0x8ab85d(0x1cb)];if(_0x21e53b[_0x8ab85d(0x23d)](_0x5e3a5c[_0x8ab85d(0x1b1)],_0x5e3a5c[_0x8ab85d(0x25e)])&&_0x21e53b['zBVVk'](_0x5e3a5c['added'],0x0))return _0x21e53b[_0x8ab85d(0x217)];if(_0x21e53b[_0x8ab85d(0x239)](_0x5e3a5c[_0x8ab85d(0x25e)],0x0)&&_0x2b6f0e['metrics']['insertio'+'ns']<=_0x2b6f0e[_0x8ab85d(0x276)][_0x8ab85d(0x1f6)+'s'])return _0x21e53b[_0x8ab85d(0x26a)];return _0x8ab85d(0x1d0);}function summarizeChanges(_0x1380e4){const _0x4937df=_0x56b2,_0x27f749={'BvbgY':function(_0x3b0f59,_0x7bdb75){return _0x3b0f59>_0x7bdb75;},'lTowl':function(_0x272219,_0x2e6ff4){return _0x272219-_0x2e6ff4;},'oasFo':function(_0x28ebe,_0x4be302){return _0x28ebe||_0x4be302;}},_0x2274e6=countByStatus(_0x1380e4),_0x2089f4=_0x1380e4[_0x4937df(0x258)][_0x4937df(0x1f0)](0x0,0x3)['map'](_0x43c438=>_0x43c438[_0x4937df(0x287)]),_0x38b7fa=_0x27f749[_0x4937df(0x251)](_0x1380e4[_0x4937df(0x258)][_0x4937df(0x233)],0x3)?_0x2089f4[_0x4937df(0x24b)](',\x20')+'\x20+'+_0x27f749[_0x4937df(0x25b)](_0x1380e4[_0x4937df(0x258)]['length'],0x3)+_0x4937df(0x1a0):_0x2089f4[_0x4937df(0x24b)](',\x20');return _0x1380e4[_0x4937df(0x276)][_0x4937df(0x1c7)+'t']+(_0x4937df(0x1b9)+'hanged\x20(')+_0x2274e6[_0x4937df(0x1b1)]+_0x4937df(0x1f3)+_0x2274e6[_0x4937df(0x25e)]+('\x20modifie'+'d,\x20')+_0x2274e6[_0x4937df(0x18b)]+(_0x4937df(0x1e3)+',\x20')+_0x2274e6[_0x4937df(0x1e1)]+(_0x4937df(0x274)+_0x4937df(0x271))+_0x1380e4[_0x4937df(0x276)][_0x4937df(0x26d)+'ns']+(_0x4937df(0x191)+_0x4937df(0x257))+_0x1380e4[_0x4937df(0x276)][_0x4937df(0x1f6)+'s']+(_0x4937df(0x220)+_0x4937df(0x1ed))+_0x27f749['oasFo'](_0x38b7fa,_0x4937df(0x1f1)+_0x4937df(0x252)+'ailable.');}function _0x56b2(_0x1fa3cc,_0x420eb3){_0x1fa3cc=_0x1fa3cc-0x17f;const _0x27a923=_0x1024();let _0x4c1a67=_0x27a923[_0x1fa3cc];return _0x4c1a67;}function formatStagedFiles(_0x2163e4){const _0x3fff8e=_0x56b2;return _0x2163e4['files']['map'](_0x49ff2c=>'-\x20'+_0x49ff2c[_0x3fff8e(0x1fc)]+'\x20'+_0x49ff2c[_0x3fff8e(0x287)])[_0x3fff8e(0x24b)]('\x0a');}function runOptionalChecks(){const _0x454281=_0x56b2,_0x1c5374={'GNmYG':function(_0xc23310,_0x56b954){return _0xc23310===_0x56b954;},'PQvpX':'win32','vBzrV':_0x454281(0x20a),'XuLDp':_0x454281(0x1e0),'xKxYn':_0x454281(0x266),'qkJEP':'run','fCPYD':_0x454281(0x1ba)+_0x454281(0x1a7),'oLGdl':'test','oKRbZ':function(_0x38d685,_0x242411,_0x309577){return _0x38d685(_0x242411,_0x309577);},'opwln':'CHECK','hIWLb':function(_0x175642,_0x406a5f,_0x1dc166,_0x44e1e2){return _0x175642(_0x406a5f,_0x1dc166,_0x44e1e2);},'Gjvjj':function(_0x13d0f6,_0x55e86a,_0x10681a){return _0x13d0f6(_0x55e86a,_0x10681a);},'xPWOS':function(_0xb3654,_0x345d3a){return _0xb3654(_0x345d3a);}},_0x2eb936=_0x1c5374[_0x454281(0x20c)](process[_0x454281(0x180)],_0x1c5374[_0x454281(0x288)])?_0x1c5374[_0x454281(0x19d)]:_0x1c5374[_0x454281(0x204)],_0x4a14ca=[{'label':_0x1c5374[_0x454281(0x238)],'args':[_0x1c5374[_0x454281(0x1c6)],_0x1c5374['xKxYn'],_0x1c5374[_0x454281(0x246)]]},{'label':_0x454281(0x206),'args':['run',_0x1c5374[_0x454281(0x222)],_0x1c5374[_0x454281(0x246)]]}];for(const _0x17a857 of _0x4a14ca){console['log'](_0x1c5374[_0x454281(0x1ab)](info,_0x1c5374[_0x454281(0x27a)],'Running\x20'+_0x17a857[_0x454281(0x234)]+_0x454281(0x1d5)));try{_0x1c5374[_0x454281(0x18a)](execFileSync,_0x2eb936,_0x17a857['args'],{'stdio':_0x454281(0x24e)}),console['log'](_0x1c5374[_0x454281(0x219)](ok,'OK',_0x17a857['label']+(_0x454281(0x20b)+'ed.')));}catch{_0x1c5374['xPWOS'](failAndExit,_0x17a857[_0x454281(0x234)]+(_0x454281(0x227)+_0x454281(0x273)+_0x454281(0x1c9)+'.'));}}}async function maybePushCurrentBranch(){const _0x49beca=_0x56b2,_0x541be8={'QesnR':function(_0x3b1493,_0x311156,_0x552d83){return _0x3b1493(_0x311156,_0x552d83);},'VtsPH':function(_0x1884fb){return _0x1884fb();},'cAUAf':function(_0xf7a59c){return _0xf7a59c();},'EUvtb':_0x49beca(0x1bd),'XdHRy':_0x49beca(0x223),'oJKNb':_0x49beca(0x24e),'TQivq':function(_0x5c7a3f,_0xf38b6f){return _0x5c7a3f!==_0xf38b6f;},'mpEhI':_0x49beca(0x229),'BJbKV':function(_0x4a9e88,_0x29b1fe){return _0x4a9e88(_0x29b1fe);},'gCMAE':_0x49beca(0x260),'kOZuC':_0x49beca(0x209)+'emote\x20co'+'nfigured'+_0x49beca(0x1a6)+_0x49beca(0x1ea)+'able.','orPLL':function(_0x237b26,_0x148a50){return _0x237b26(_0x148a50);},'iSQyv':function(_0x1946a4,_0x227f7b){return _0x1946a4!==_0x227f7b;},'mfcWD':_0x49beca(0x248),'rLfAb':function(_0x3f236e,_0x54084e,_0x426eb4,_0x32960e){return _0x3f236e(_0x54084e,_0x426eb4,_0x32960e);},'dWuZm':function(_0x10b9d1,_0x12c78f,_0x16fdd4){return _0x10b9d1(_0x12c78f,_0x16fdd4);}},_0x329fa5=_0x541be8['VtsPH'](getCurrentBranch),_0x200e9d=_0x541be8[_0x49beca(0x213)](getUpstreamInfo);if(_0x200e9d){const _0x431821=await askConfirmation('Push\x20cur'+'rent\x20bra'+'nch\x20\x22'+_0x329fa5+_0x49beca(0x1db)+_0x200e9d[_0x49beca(0x256)]+(_0x49beca(0x241)+_0x49beca(0x19e)));if(!_0x431821)return;try{execFileSync(_0x541be8['EUvtb'],[_0x541be8['XdHRy'],_0x200e9d[_0x49beca(0x281)],_0x329fa5+':'+_0x200e9d[_0x49beca(0x255)]],{'stdio':_0x541be8[_0x49beca(0x261)]}),console[_0x49beca(0x1de)](_0x541be8[_0x49beca(0x193)](ok,'OK',_0x49beca(0x1ac)+'pleted\x20t'+'o\x20'+_0x200e9d[_0x49beca(0x256)]+'.'));}catch{_0x541be8[_0x49beca(0x1a5)](_0x541be8[_0x49beca(0x1d2)],_0x541be8[_0x49beca(0x1d2)])?(_0x1eaf1f(),_0x1b615b[_0x49beca(0x1de)](_0x541be8[_0x49beca(0x193)](_0x3ed845,'OK',_0x49beca(0x285)+_0x49beca(0x235)+_0x49beca(0x1f4)+_0x49beca(0x1aa)))):_0x541be8[_0x49beca(0x242)](failAndExit,_0x49beca(0x185)+_0x49beca(0x205)+'o\x20'+_0x200e9d[_0x49beca(0x256)]+'.');}return;}const _0x1bae1f=_0x541be8[_0x49beca(0x213)](getDefaultRemote);if(!_0x1bae1f){console['log'](_0x541be8[_0x49beca(0x193)](warn,_0x541be8[_0x49beca(0x28c)],_0x541be8[_0x49beca(0x26e)]));return;}const _0x1e6cb0=await _0x541be8['orPLL'](askConfirmation,_0x49beca(0x243)+_0x49beca(0x26b)+_0x49beca(0x201)+'\x22'+_0x329fa5+_0x49beca(0x1db)+_0x1bae1f+'/'+_0x329fa5+(_0x49beca(0x21f)+'t\x20upstre'+_0x49beca(0x1a2)+_0x49beca(0x1e2)));if(!_0x1e6cb0){if(_0x541be8['iSQyv'](_0x541be8[_0x49beca(0x21e)],_0x49beca(0x1ca)))return;else return;}try{_0x541be8['rLfAb'](execFileSync,_0x541be8['EUvtb'],[_0x541be8['XdHRy'],'--set-up'+'stream',_0x1bae1f,_0x329fa5],{'stdio':_0x541be8['oJKNb']}),console['log'](_0x541be8[_0x49beca(0x1da)](ok,'OK',_0x49beca(0x1ac)+_0x49beca(0x270)+_0x49beca(0x21b)+_0x49beca(0x19f)+_0x49beca(0x1b5)+_0x1bae1f+'/'+_0x329fa5+').'));}catch{_0x541be8['BJbKV'](failAndExit,_0x49beca(0x185)+_0x49beca(0x218)+_0x329fa5+_0x49beca(0x1db)+_0x1bae1f+'\x22.');}}export async function generateCommit(_0x12f5bd={}){const _0x14857f=_0x56b2,_0x53e246={'wyWRs':function(_0x4acc82){return _0x4acc82();},'tfXpe':function(_0x27f8cd,_0x1e1c54){return _0x27f8cd(_0x1e1c54);},'aTUEQ':'1.\x20STAGE','ZnoxC':function(_0x5dc482){return _0x5dc482();},'FYNyO':_0x14857f(0x285)+_0x14857f(0x235)+_0x14857f(0x1f4)+_0x14857f(0x1aa),'ggQWN':function(_0x1f988f,_0x129776){return _0x1f988f===_0x129776;},'niftP':_0x14857f(0x1c4)+_0x14857f(0x264)+_0x14857f(0x23e)+_0x14857f(0x24c)+_0x14857f(0x18e)+_0x14857f(0x1e4)+'it\x20commi'+_0x14857f(0x25d)+'.','GLJok':function(_0x3b95a6,_0x359cb2,_0x164691){return _0x3b95a6(_0x359cb2,_0x164691);},'ySvxb':_0x14857f(0x231)+'iles','rEYEA':function(_0x29f667,_0xd94d58){return _0x29f667(_0xd94d58);},'xCuHT':_0x14857f(0x22e)+'RIZE','PWDcp':function(_0x50a339,_0x2b759b){return _0x50a339(_0x2b759b);},'dcYUU':function(_0x1959f7,_0x301488){return _0x1959f7(_0x301488);},'ODFBu':_0x14857f(0x216),'tqilU':_0x14857f(0x21d)+'\x20type','dUDHk':_0x14857f(0x1ae)+'t','SavbG':'(none)','SXfdG':function(_0x1a67a6,_0x20dffe){return _0x1a67a6>_0x20dffe;},'cWAoK':function(_0x1f0dfb,_0x5eeb50,_0x480852){return _0x1f0dfb(_0x5eeb50,_0x480852);},'WMdGQ':_0x14857f(0x1d6),'xWOgl':function(_0x3c4bca,_0x4e89eb){return _0x3c4bca(_0x4e89eb);},'HBUzV':_0x14857f(0x1c5)+_0x14857f(0x27e),'zRRRd':'AI\x20is\x20th'+_0x14857f(0x210)+'nd\x20reque'+_0x14857f(0x208)+_0x14857f(0x1b4)+'.','WcUFJ':function(_0x3236de,_0x211727){return _0x3236de(_0x211727);},'dGYyg':'Suggeste'+_0x14857f(0x18d),'iPBPg':_0x14857f(0x23f)+'RM','HuAuA':_0x14857f(0x1f5)+_0x14857f(0x1f2),'QVniS':function(_0x1cf825,_0x144674,_0x2cba71){return _0x1cf825(_0x144674,_0x2cba71);},'RNyQy':_0x14857f(0x289),'TElQM':_0x14857f(0x237)+'as\x20not\x20c'+_0x14857f(0x1ef),'eGEdQ':_0x14857f(0x1bd),'SkUvK':_0x14857f(0x24e),'AgZBv':function(_0x1cdc7a,_0x4e697f){return _0x1cdc7a(_0x4e697f);},'KGRtR':_0x14857f(0x185)+_0x14857f(0x192)+'\x20commit.'+'\x20Check\x20i'+_0x14857f(0x1ce)+_0x14857f(0x1ec)+_0x14857f(0x264),'GgvWh':function(_0x487ec9){return _0x487ec9();}},_0x2d8a79=_0x53e246[_0x14857f(0x19c)](getLLM);getGitStatus(),_0x53e246['tfXpe'](section,_0x53e246[_0x14857f(0x262)]);_0x12f5bd[_0x14857f(0x1c1)]&&(_0x53e246['ZnoxC'](stageAll),console[_0x14857f(0x1de)](ok('OK',_0x53e246[_0x14857f(0x1b6)])));const _0xdbbc2d=_0x53e246[_0x14857f(0x23a)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x53e246['ggQWN'](_0xdbbc2d['files'][_0x14857f(0x233)],0x0)&&_0x53e246[_0x14857f(0x23a)](failAndExit,_0x53e246[_0x14857f(0x1f8)]);_0xdbbc2d['metrics']['fileCoun'+'t']>=WARN_SPLIT_FILE_COUNT&&console['log'](warn(_0x14857f(0x18f),_0xdbbc2d[_0x14857f(0x276)][_0x14857f(0x1c7)+'t']+(_0x14857f(0x232)+'files\x20de'+'tected.\x20'+_0x14857f(0x259)+_0x14857f(0x212)+'ng\x20into\x20'+_0x14857f(0x1e5)+_0x14857f(0x27f)+'.')));_0x53e246[_0x14857f(0x189)](printList,_0x53e246[_0x14857f(0x1b8)],_0xdbbc2d[_0x14857f(0x258)][_0x14857f(0x28b)](_0x3ca4ba=>_0x3ca4ba['status']+'\x20'+_0x3ca4ba[_0x14857f(0x287)]));_0x12f5bd['check']&&(console[_0x14857f(0x1de)](),runOptionalChecks());_0x53e246[_0x14857f(0x182)](section,_0x53e246['xCuHT']);const _0x1343d8=_0x53e246['tfXpe'](summarizeChanges,_0xdbbc2d),_0x4bc67a=_0x53e246[_0x14857f(0x1a1)](detectCommitType,_0xdbbc2d);_0x53e246[_0x14857f(0x1b7)](printKeyValues,[{'key':_0x53e246[_0x14857f(0x200)],'value':_0x1343d8},{'key':_0x53e246[_0x14857f(0x1f7)],'value':_0x4bc67a},{'key':_0x53e246[_0x14857f(0x23c)],'value':_0xdbbc2d[_0x14857f(0x22a)]||_0x53e246[_0x14857f(0x1ee)]}]);_0x53e246['SXfdG'](_0xdbbc2d[_0x14857f(0x276)]['patchCha'+'rs'],WARN_PROMPT_DIFF_CHARS)&&console[_0x14857f(0x1de)](_0x53e246[_0x14857f(0x211)](warn,_0x53e246[_0x14857f(0x280)],_0x14857f(0x197)+_0x14857f(0x286)+_0x14857f(0x1e7)+_0xdbbc2d[_0x14857f(0x276)][_0x14857f(0x1fb)+'rs']+(_0x14857f(0x1f9)+_0x14857f(0x1e8)+'will\x20inc'+_0x14857f(0x20e)+_0x14857f(0x1cd)+_0x14857f(0x1ad)+_0x14857f(0x1b0))));const _0x3cf07e=_0x14857f(0x25a)+'ne\x20Conve'+_0x14857f(0x1cf)+_0x14857f(0x249)+_0x14857f(0x181)+_0x14857f(0x22d)+'h\x20based\x20'+'on\x20the\x20s'+_0x14857f(0x25c)+_0x14857f(0x1cc)+'ules:\x0a-\x20'+_0x14857f(0x23b)+'th\x20this\x20'+'likely\x20t'+_0x14857f(0x207)+_0x14857f(0x1d7)+_0x14857f(0x272)+_0x14857f(0x1a9)+_0x14857f(0x254)+'other\x20on'+_0x14857f(0x203)+_0x4bc67a+(_0x14857f(0x275)+'ormat:\x20<'+_0x14857f(0x18c)+'tional-s'+_0x14857f(0x196)+_0x14857f(0x20d)+_0x14857f(0x1a8)+_0x14857f(0x278)+_0x14857f(0x1be)+_0x14857f(0x226)+_0x14857f(0x19b)+_0x14857f(0x190)+_0x14857f(0x253)+_0x14857f(0x230)+_0x14857f(0x1b3)+'ithout\x20c'+_0x14857f(0x202)+_0x14857f(0x1a4)+_0x14857f(0x27d)+_0x14857f(0x277)+_0x14857f(0x1d3)+':\x0a')+_0x53e246[_0x14857f(0x1d1)](formatStagedFiles,_0xdbbc2d)+('\x0a\x0aShort\x20'+'summary:'+'\x0a')+_0x1343d8+(_0x14857f(0x24d)+_0x14857f(0x250))+(_0xdbbc2d[_0x14857f(0x22a)]||_0x53e246[_0x14857f(0x1ee)])+(_0x14857f(0x263)+_0x14857f(0x25f))+(_0xdbbc2d[_0x14857f(0x276)][_0x14857f(0x1fe)+'d']?_0x53e246['HBUzV']:'')+':\x0a'+(_0xdbbc2d['patch']||_0x14857f(0x27b))+_0x14857f(0x1c2);section('3.\x20SUGGE'+'ST');const _0x1c0d52=await _0x53e246[_0x14857f(0x189)](withProgress,_0x53e246['zRRRd'],()=>_0x2d8a79['invoke'](_0x3cf07e)),_0x109bd3=extractMessageText(_0x1c0d52[_0x14857f(0x28a)]);!_0x109bd3&&failAndExit(_0x14857f(0x185)+_0x14857f(0x1bc)+'te\x20commi'+_0x14857f(0x1d9)+'e.');_0x53e246[_0x14857f(0x188)](printKeyValues,[{'key':_0x53e246[_0x14857f(0x244)],'value':_0x109bd3}]),_0x53e246[_0x14857f(0x1d1)](section,_0x53e246['iPBPg']);const _0x5e5400=await _0x53e246[_0x14857f(0x189)](askEditableInput,'Edit\x20com'+'mit\x20mess'+'age\x20(pre'+'ss\x20Enter'+_0x14857f(0x22f)+_0x14857f(0x1bb)+_0x14857f(0x1e9),_0x109bd3);_0x53e246[_0x14857f(0x1a1)](printKeyValues,[{'key':_0x53e246[_0x14857f(0x1dd)],'value':_0x5e5400}]);const _0x2df234=await askConfirmation('Commit\x20u'+_0x14857f(0x26f)+'s\x20messag'+_0x14857f(0x199)+':\x20',{'defaultYes':!![]});if(!_0x2df234){console[_0x14857f(0x1de)](_0x53e246['QVniS'](warn,_0x53e246[_0x14857f(0x27c)],_0x53e246[_0x14857f(0x225)]));return;}try{execFileSync(_0x53e246[_0x14857f(0x1fd)],[_0x14857f(0x215),'-m',_0x5e5400],{'stdio':_0x53e246['SkUvK']});}catch{_0x53e246[_0x14857f(0x198)](failAndExit,_0x53e246[_0x14857f(0x1c0)]);}await _0x53e246[_0x14857f(0x186)](maybePushCurrentBranch);}
@@ -1 +1 @@
1
- (function(_0x560e90,_0x30822c){const _0x4b37bd=_0x1250,_0x471a88=_0x560e90();while(!![]){try{const _0xb3674=-parseInt(_0x4b37bd(0x1d3))/0x1+parseInt(_0x4b37bd(0x19c))/0x2+-parseInt(_0x4b37bd(0x1b0))/0x3*(-parseInt(_0x4b37bd(0x1b7))/0x4)+-parseInt(_0x4b37bd(0x197))/0x5+-parseInt(_0x4b37bd(0x1a8))/0x6*(parseInt(_0x4b37bd(0x1b8))/0x7)+-parseInt(_0x4b37bd(0x1e7))/0x8+parseInt(_0x4b37bd(0x1c9))/0x9*(parseInt(_0x4b37bd(0x1c3))/0xa);if(_0xb3674===_0x30822c)break;else _0x471a88['push'](_0x471a88['shift']());}catch(_0xe0d9a){_0x471a88['push'](_0x471a88['shift']());}}}(_0x155a,0xf3d3d));const _0x5760f3=(function(){let _0x623f7f=!![];return function(_0x20afa8,_0x5c0f2d){const _0x4b39ea=_0x623f7f?function(){const _0x4dd67=_0x1250;if(_0x5c0f2d){const _0x1361f3=_0x5c0f2d[_0x4dd67(0x1f1)](_0x20afa8,arguments);return _0x5c0f2d=null,_0x1361f3;}}:function(){};return _0x623f7f=![],_0x4b39ea;};}()),_0x55c861=_0x5760f3(this,function(){const _0x3e0570=_0x1250,_0x93ee7d={'qlghm':_0x3e0570(0x1cd)+_0x3e0570(0x1e3)};return _0x55c861[_0x3e0570(0x191)]()['search'](_0x93ee7d['qlghm'])['toString']()['construc'+_0x3e0570(0x19e)](_0x55c861)[_0x3e0570(0x1c6)](_0x93ee7d[_0x3e0570(0x1d5)]);});function _0x1250(_0x16a327,_0x2071ed){_0x16a327=_0x16a327-0x182;const _0x3e6726=_0x155a();let _0x55c861=_0x3e6726[_0x16a327];return _0x55c861;}_0x55c861();import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{bad,failAndExit,ok,printKeyValues,section,warn}from'../ui.js';function _0x155a(){const _0x50b943=['exitCode','toString','missing','NqArP','HBOdm','Path','found','7980605GJmKRw','-5-sonne','UKRSu','\x20(google','OPENAI_A','477434PRZVdz','dvFQH','tor','claude-3','ATION\x20SA','VaMsb','juexl','Uwicx','pelSG','FFVus','CVbxk','google','6gICLMc','\x20exists.','gemini-2','jUcQZ','HVhoC','openai','kUKBj','GEMINI_A','48675bxHNGI','oHepR','CANCELED','QYiDm','toLowerC','phPYE','ANTHROPI','408sHxdQW','2796395wllUbK','env','zczRp','verrides','C_API_KE','FTIUA','KozQv','ICS',']:\x20','sqQtS','PrLzJ','10BwVEZU','not\x20foun','anthropi','search','aEblR','Provider','18544635GrVbgi','Y=\x22','NkBDS','RxGbg','(((.+)+)','Global\x20.','biFQO','resRm','DIAGNOST','ase','877521RixAUM','sbygu','qlghm','EticW','.\x20Use\x20go','utf8','Setup\x20ca','missing/','\x20global)','Invalid\x20','bWFuK','cFHlM','RJzqA','txUPe','c)\x20[goog','\x20Overwri','+)+$','Qpexx','HGpIA','invalid','658704SaKGvf','DqTDW','fOqJC','Model\x20[','Status','GOOGLE_A','KEUcW','iAdmG','LLM_PROV','GqCjy','apply','rRyrL','DjFss','LLM_MODE','uNJJW','PI_KEY=\x22','DJqAm','TPRpz','uTISr','le]:\x20','eHwek','L=\x22','StmDp','oLXUj','IDER','jvYKH','ByyIZ','PI_KEY','VnQQt','BjMoo','mATaa'];_0x155a=function(){return _0x50b943;};return _0x155a();}function getProviderKeyName(_0xdc5697){const _0x327b1e=_0x1250,_0x4194e3={'QYiDm':function(_0x36da43,_0x59a8e9){return _0x36da43===_0x59a8e9;},'Qpexx':'GOOGLE_A'+_0x327b1e(0x18c),'PrLzJ':function(_0x3a6a2b,_0x51deed){return _0x3a6a2b===_0x51deed;},'DqTDW':'openai','zczRp':_0x327b1e(0x19b)+'PI_KEY','uTISr':_0x327b1e(0x1b6)+_0x327b1e(0x1bc)+'Y'};if(_0x4194e3[_0x327b1e(0x1b3)](_0xdc5697,_0x327b1e(0x1a7)))return _0x4194e3[_0x327b1e(0x1e4)];if(_0x4194e3[_0x327b1e(0x1c2)](_0xdc5697,_0x4194e3[_0x327b1e(0x1e8)]))return _0x4194e3[_0x327b1e(0x1ba)];return _0x4194e3[_0x327b1e(0x183)];}export async function initConfig(){const _0x1d5b10=_0x1250,_0x3a706a={'ttHpz':function(_0x99e23a){return _0x99e23a();},'KEUcW':function(_0x1f1af6,_0x47c5be){return _0x1f1af6(_0x47c5be);},'BjMoo':function(_0x47ed35,_0x25deb9,_0x3c0fc5){return _0x47ed35(_0x25deb9,_0x3c0fc5);},'TPRpz':_0x1d5b10(0x1b2),'sqQtS':_0x1d5b10(0x1d9)+'nceled.','resRm':_0x1d5b10(0x1c8)+_0x1d5b10(0x19a)+'/openai/'+_0x1d5b10(0x1c5)+_0x1d5b10(0x1e1)+_0x1d5b10(0x184),'oHepR':function(_0x28a89b,_0x24cb1d){return _0x28a89b||_0x24cb1d;},'jvYKH':function(_0x571d9c,_0x1ce1d5){return _0x571d9c!==_0x1ce1d5;},'sbygu':_0x1d5b10(0x1a7),'bWFuK':_0x1d5b10(0x1c5)+'c','KozQv':function(_0x496410,_0x57322e){return _0x496410===_0x57322e;},'EticW':_0x1d5b10(0x1aa)+'.5-flash','NqArP':function(_0x246cb2,_0xd931c2){return _0x246cb2===_0xd931c2;},'juexl':_0x1d5b10(0x1ad),'UKRSu':'gpt-4o-m'+'ini','iAdmG':_0x1d5b10(0x19f)+_0x1d5b10(0x198)+'t-latest','jUcQZ':function(_0x3e1c0d,_0x2f6017){return _0x3e1c0d(_0x2f6017);},'kUKBj':function(_0x1c96cb,_0x17ac8f){return _0x1c96cb(_0x17ac8f);},'Uwicx':_0x1d5b10(0x1af)+_0x1d5b10(0x1f6)+'\x22','zrADV':function(_0x5d644c,_0x29524a){return _0x5d644c===_0x29524a;},'biFQO':function(_0x2a5c32,_0x45855e,_0x434f3f,_0x4aa5bf){return _0x2a5c32(_0x45855e,_0x434f3f,_0x4aa5bf);},'GqCjy':_0x1d5b10(0x1d8),'qPcEy':'CONFIGUR'+_0x1d5b10(0x1a0)+'VED','aEblR':_0x1d5b10(0x195)},_0x96f28e=_0x3a706a['ttHpz'](getGlobalEnvPath);if(_0x3a706a['KEUcW'](existsSync,_0x96f28e)){const _0x5ca91c=await _0x3a706a['KEUcW'](askConfirmation,_0x96f28e+('\x20already'+_0x1d5b10(0x1a9)+_0x1d5b10(0x1e2)+'te?\x20(y/n'+'):\x20'));if(!_0x5ca91c){console['log'](_0x3a706a[_0x1d5b10(0x18e)](warn,_0x3a706a[_0x1d5b10(0x182)],_0x3a706a[_0x1d5b10(0x1c1)]));return;}}const _0x10ecad=await _0x3a706a[_0x1d5b10(0x1ed)](askInput,_0x3a706a[_0x1d5b10(0x1d0)]),_0x115582=_0x3a706a[_0x1d5b10(0x1b1)](_0x10ecad,_0x1d5b10(0x1a7))[_0x1d5b10(0x1b4)+_0x1d5b10(0x1d2)]();_0x3a706a[_0x1d5b10(0x18a)](_0x115582,_0x3a706a[_0x1d5b10(0x1d4)])&&_0x115582!==_0x1d5b10(0x1ad)&&_0x3a706a['jvYKH'](_0x115582,_0x3a706a[_0x1d5b10(0x1dd)])&&failAndExit(_0x1d5b10(0x1dc)+'provider'+_0x1d5b10(0x1d7)+'ogle,\x20op'+'enai,\x20or'+'\x20anthrop'+'ic.');const _0x500a63=_0x115582,_0x3d9348=_0x3a706a[_0x1d5b10(0x1be)](_0x500a63,_0x3a706a[_0x1d5b10(0x1d4)])?_0x3a706a[_0x1d5b10(0x1d6)]:_0x3a706a[_0x1d5b10(0x193)](_0x500a63,_0x3a706a[_0x1d5b10(0x1a2)])?_0x3a706a[_0x1d5b10(0x199)]:_0x3a706a[_0x1d5b10(0x1ee)],_0x3d80a7=await _0x3a706a['jUcQZ'](askInput,_0x1d5b10(0x1ea)+_0x3d9348+_0x1d5b10(0x1c0))||_0x3d9348,_0x34237b=_0x3a706a[_0x1d5b10(0x1ab)](getProviderKeyName,_0x500a63),_0x2a5164=await _0x3a706a[_0x1d5b10(0x1ae)](askInput,_0x34237b+':\x20'),_0x20ea3f=[_0x1d5b10(0x1ef)+'IDER=\x22'+_0x500a63+'\x22',_0x1d5b10(0x1f4)+_0x1d5b10(0x186)+_0x3d80a7+'\x22','',_0x1d5b10(0x1ec)+_0x1d5b10(0x1f6)+(_0x3a706a[_0x1d5b10(0x1be)](_0x500a63,_0x3a706a['sbygu'])?_0x2a5164:'')+'\x22',_0x3a706a[_0x1d5b10(0x1a3)],_0x1d5b10(0x19b)+_0x1d5b10(0x1f6)+(_0x3a706a['NqArP'](_0x500a63,_0x1d5b10(0x1ad))?_0x2a5164:'')+'\x22',_0x1d5b10(0x1b6)+'C_API_KE'+_0x1d5b10(0x1ca)+(_0x3a706a['zrADV'](_0x500a63,_0x3a706a[_0x1d5b10(0x1dd)])?_0x2a5164:'')+'\x22','']['join']('\x0a');_0x3a706a['BjMoo'](mkdirSync,_0x3a706a['jUcQZ'](dirname,_0x96f28e),{'recursive':!![]}),_0x3a706a[_0x1d5b10(0x1cf)](writeFileSync,_0x96f28e,_0x20ea3f,_0x3a706a[_0x1d5b10(0x1f0)]),_0x3a706a['kUKBj'](section,_0x3a706a['qPcEy']),printKeyValues([{'key':_0x1d5b10(0x1eb),'value':_0x3a706a['kUKBj'](ok,'OK')},{'key':_0x3a706a[_0x1d5b10(0x1c7)],'value':_0x96f28e}]);}export function doctorConfig(){const _0x1e576f=_0x1250,_0x450cd8={'rRyrL':'.env','mATaa':function(_0x506ae9,_0x496e30){return _0x506ae9(_0x496e30);},'RJzqA':function(_0x8a73b8,_0x4df9c8){return _0x8a73b8===_0x4df9c8;},'oLXUj':_0x1e576f(0x1ad),'HBOdm':function(_0x567923,_0x147ccb){return _0x567923===_0x147ccb;},'CVbxk':_0x1e576f(0x1a7),'dvFQH':function(_0x9986e0,_0x15c246){return _0x9986e0===_0x15c246;},'MkQRO':_0x1e576f(0x1c5)+'c','RxGbg':function(_0x3b55b9,_0x11bdf6){return _0x3b55b9(_0x11bdf6);},'LIRtU':'API_KEY','fOqJC':function(_0x3c3209,_0x110a84){return _0x3c3209(_0x110a84);},'VaMsb':_0x1e576f(0x1d1)+_0x1e576f(0x1bf),'DjFss':function(_0x1814bd,_0x1087f5){return _0x1814bd(_0x1087f5);},'VGDsk':_0x1e576f(0x1ce)+'env\x20path','prlFy':'Global\x20.'+_0x1e576f(0x1b9),'pelSG':_0x1e576f(0x196),'uNJJW':function(_0x53eb52,_0xfea31d){return _0x53eb52(_0xfea31d);},'HVhoC':'missing','FTIUA':'found\x20(o'+_0x1e576f(0x1bb)+_0x1e576f(0x1db),'FFVus':_0x1e576f(0x1c4)+'d','NkBDS':_0x1e576f(0x1ef)+_0x1e576f(0x189),'StmDp':_0x1e576f(0x1da)+_0x1e576f(0x1e6),'phPYE':function(_0x3ec889,_0x2525e0){return _0x3ec889(_0x2525e0);},'DJqAm':function(_0xaf7874,_0x2c8546){return _0xaf7874(_0x2c8546);},'cFHlM':function(_0x321158,_0x2bb1bd){return _0x321158(_0x2bb1bd);},'HGpIA':function(_0x583797,_0x3a8e68){return _0x583797(_0x3a8e68);},'eHwek':'set','txUPe':_0x1e576f(0x19b)+'PI_KEY','VnQQt':_0x1e576f(0x1b6)+_0x1e576f(0x1bc)+'Y','ByyIZ':function(_0x56847c,_0x5dfc95){return _0x56847c(_0x5dfc95);},'YCOhf':function(_0x279eca,_0x2a8faa){return _0x279eca||_0x2a8faa;}},_0x47b758=getGlobalEnvPath(),_0x4f7aec=_0x450cd8[_0x1e576f(0x1f2)],_0x5c86b0=_0x450cd8['mATaa'](existsSync,_0x4f7aec),_0x4ea9ef=_0x450cd8[_0x1e576f(0x18f)](existsSync,_0x47b758),_0x2a18fe=(process.env.LLM_PROVIDER||'')[_0x1e576f(0x1b4)+'ase'](),_0x2a31f2=process.env.LLM_MODEL||'',_0x3cd98c=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x52d74c=process.env.OPENAI_API_KEY||'',_0x27df0e=process.env.ANTHROPIC_API_KEY||'',_0x3c6dd8=_0x2a18fe===_0x1e576f(0x1a7)||_0x450cd8[_0x1e576f(0x1df)](_0x2a18fe,_0x450cd8['oLXUj'])||_0x450cd8[_0x1e576f(0x194)](_0x2a18fe,'anthropi'+'c'),_0x48a76c=_0x450cd8['mATaa'](Boolean,_0x2a31f2),_0x408cbe=_0x450cd8[_0x1e576f(0x194)](_0x2a18fe,_0x450cd8[_0x1e576f(0x1a6)])?_0x3cd98c:_0x450cd8[_0x1e576f(0x1df)](_0x2a18fe,_0x450cd8[_0x1e576f(0x188)])?_0x52d74c:_0x450cd8[_0x1e576f(0x19d)](_0x2a18fe,_0x450cd8['MkQRO'])?_0x27df0e:'',_0x1a5d9e=_0x3c6dd8?_0x450cd8[_0x1e576f(0x1cc)](getProviderKeyName,_0x2a18fe):_0x450cd8['LIRtU'],_0x3cf1b1=_0x450cd8[_0x1e576f(0x1e9)](Boolean,_0x408cbe);section(_0x450cd8[_0x1e576f(0x1a1)]),_0x450cd8[_0x1e576f(0x1f3)](printKeyValues,[{'key':_0x450cd8['VGDsk'],'value':_0x47b758},{'key':_0x450cd8['prlFy'],'value':_0x4ea9ef?_0x450cd8[_0x1e576f(0x1e9)](ok,_0x450cd8[_0x1e576f(0x1a4)]):_0x450cd8['uNJJW'](warn,_0x450cd8[_0x1e576f(0x1ac)])},{'key':'Local\x20.e'+'nv','value':_0x5c86b0?_0x450cd8['fOqJC'](warn,_0x450cd8[_0x1e576f(0x1bd)]):ok(_0x450cd8[_0x1e576f(0x1a5)])}]),console['log'](),_0x450cd8[_0x1e576f(0x1f5)](printKeyValues,[{'key':_0x450cd8[_0x1e576f(0x1cb)],'value':_0x3c6dd8?ok('ok'):bad(_0x450cd8[_0x1e576f(0x187)])},{'key':_0x1e576f(0x1f4)+'L','value':_0x48a76c?_0x450cd8[_0x1e576f(0x1b5)](ok,'ok'):_0x450cd8[_0x1e576f(0x1f7)](bad,'missing')},{'key':'Expected'+'\x20('+_0x1a5d9e+')','value':_0x3cf1b1?ok('ok'):_0x450cd8[_0x1e576f(0x1de)](bad,_0x450cd8[_0x1e576f(0x1ac)])},{'key':_0x1e576f(0x1ec)+_0x1e576f(0x18c),'value':_0x3cd98c?_0x450cd8[_0x1e576f(0x1e5)](ok,_0x450cd8[_0x1e576f(0x185)]):_0x450cd8[_0x1e576f(0x1de)](warn,_0x1e576f(0x192))},{'key':_0x450cd8[_0x1e576f(0x1e0)],'value':_0x52d74c?ok(_0x450cd8[_0x1e576f(0x185)]):_0x450cd8[_0x1e576f(0x1f7)](warn,_0x450cd8[_0x1e576f(0x1ac)])},{'key':_0x450cd8[_0x1e576f(0x18d)],'value':_0x27df0e?_0x450cd8[_0x1e576f(0x18b)](ok,_0x450cd8['eHwek']):_0x450cd8[_0x1e576f(0x1e5)](warn,_0x450cd8[_0x1e576f(0x1ac)])}]),(_0x450cd8['YCOhf'](!_0x3c6dd8,!_0x48a76c)||!_0x3cf1b1)&&(process[_0x1e576f(0x190)]=0x1);}
1
+ (function(_0x2f70af,_0x2c9943){const _0x344eb7=_0x49af,_0x3be690=_0x2f70af();while(!![]){try{const _0x42382e=parseInt(_0x344eb7(0x124))/0x1+parseInt(_0x344eb7(0x13c))/0x2*(parseInt(_0x344eb7(0x126))/0x3)+parseInt(_0x344eb7(0x131))/0x4*(-parseInt(_0x344eb7(0x14e))/0x5)+-parseInt(_0x344eb7(0x172))/0x6*(parseInt(_0x344eb7(0x141))/0x7)+-parseInt(_0x344eb7(0x129))/0x8*(-parseInt(_0x344eb7(0x16a))/0x9)+parseInt(_0x344eb7(0x153))/0xa*(parseInt(_0x344eb7(0x121))/0xb)+parseInt(_0x344eb7(0x138))/0xc*(-parseInt(_0x344eb7(0x127))/0xd);if(_0x42382e===_0x2c9943)break;else _0x3be690['push'](_0x3be690['shift']());}catch(_0x7cd640){_0x3be690['push'](_0x3be690['shift']());}}}(_0x2ff8,0x9e796));const _0x2901f9=(function(){let _0x28134d=!![];return function(_0x27e10c,_0x817e7b){const _0x259060=_0x28134d?function(){const _0xb3e215=_0x49af;if(_0x817e7b){const _0xd909ed=_0x817e7b[_0xb3e215(0x14d)](_0x27e10c,arguments);return _0x817e7b=null,_0xd909ed;}}:function(){};return _0x28134d=![],_0x259060;};}()),_0x26d3cf=_0x2901f9(this,function(){const _0x787d7c=_0x49af;return _0x26d3cf['toString']()[_0x787d7c(0x13e)](_0x787d7c(0x11e)+'+)+$')[_0x787d7c(0x163)]()['construc'+_0x787d7c(0x11a)](_0x26d3cf)[_0x787d7c(0x13e)](_0x787d7c(0x11e)+_0x787d7c(0x175));});function _0x49af(_0x3bbeda,_0xadb6ab){_0x3bbeda=_0x3bbeda-0x10d;const _0x48e04c=_0x2ff8();let _0x26d3cf=_0x48e04c[_0x3bbeda];return _0x26d3cf;}_0x26d3cf();import{existsSync,mkdirSync,writeFileSync}from'fs';import{dirname}from'path';import{getGlobalEnvPath}from'../config.js';import{askConfirmation,askInput}from'../prompts.js';import{bad,failAndExit,ok,printKeyValues,section,warn}from'../ui.js';function _0x2ff8(){const _0x5c0bad=['Provider','):\x20','FKWQC','VED','ATION\x20SA','GOOGLE_A','Invalid\x20','ini','VTuAG','wBIbD','.\x20Use\x20go','ANTHROPI','PI_KEY','toString','zyGcJ','found','log','qxAoH','GZQjH','ogle,\x20op','27qHsOUI','kQwnt','L=\x22','utf8','DGnsm','\x20anthrop','LLM_PROV','-5-sonne','6qNixcH','cxRlt','ic.','+)+$','flseK','\x20exists.','gxmza','gemini-2','invalid','C_API_KE','uuPOK','gpt-4o-m','PbDFF','EEVhd','RfvyK','IDER',']:\x20','JErCP','eiJoo','anthropi','claude-3','env','hNprL','tor','sfOTh','cNfaf','AGGUs','(((.+)+)','CONFIGUR','openai','11SQFOiM','riLiZ','TmSJx','243376duBTDt','nceled.','9PmlUdt','39hzlSox','google','3099064AkHGLX','Status','join','env\x20path','GEMINI_A','FHzpc','Global\x20.','biLGn','4FPiaNe','ase','OPENAI_A','ATeuM','Setup\x20ca','TylrX','.5-flash','3154872zDKLxN','\x20already','missing/','PI_KEY=\x22','144038GLxGME','NNOPH','search','Path','OGteB','4962643almbUS','ICS','\x20Overwri','JrnTL','LLM_MODE','missing','rlLzO','le]:\x20','\x20(google','API_KEY','OyVmh','OaMIx','apply','1698630gfkdXp','Gjsgj','tRQxo','usqGt','exitCode','8649210vKUSZb','dcfre','ENvrT'];_0x2ff8=function(){return _0x5c0bad;};return _0x2ff8();}function getProviderKeyName(_0x4951c1){const _0x1acab1=_0x49af,_0x24ed3c={'OaMIx':function(_0x179310,_0x303e2a){return _0x179310===_0x303e2a;},'DGnsm':_0x1acab1(0x128),'BxBBm':'openai','PbDFF':'OPENAI_A'+_0x1acab1(0x162),'sYCyf':'ANTHROPI'+_0x1acab1(0x17b)+'Y'};if(_0x24ed3c[_0x1acab1(0x14c)](_0x4951c1,_0x24ed3c[_0x1acab1(0x16e)]))return _0x1acab1(0x15b)+_0x1acab1(0x162);if(_0x4951c1===_0x24ed3c['BxBBm'])return _0x24ed3c[_0x1acab1(0x10f)];return _0x24ed3c['sYCyf'];}export async function initConfig(){const _0x2539a8=_0x49af,_0x36fda0={'rlLzO':_0x2539a8(0x11e)+_0x2539a8(0x175),'usqGt':function(_0x2ea6a7){return _0x2ea6a7();},'gxmza':function(_0x5aa8c2,_0x5d97c9){return _0x5aa8c2(_0x5d97c9);},'uuPOK':function(_0x88b7d0,_0x526768){return _0x88b7d0(_0x526768);},'Lapvt':function(_0x53f274,_0x51a4be,_0x59d1bf){return _0x53f274(_0x51a4be,_0x59d1bf);},'lpWzR':_0x2539a8(0x135)+_0x2539a8(0x125),'rYaCa':_0x2539a8(0x156)+_0x2539a8(0x149)+'/openai/'+_0x2539a8(0x116)+'c)\x20[goog'+_0x2539a8(0x148),'uyzWF':function(_0x316bd4,_0x4f4a97){return _0x316bd4||_0x4f4a97;},'AGGUs':_0x2539a8(0x128),'ATeuM':function(_0x527ad8,_0x2f74e4){return _0x527ad8!==_0x2f74e4;},'yNzbn':function(_0x569946,_0x596619){return _0x569946!==_0x596619;},'biLGn':'openai','cxRlt':_0x2539a8(0x116)+'c','JrnTL':_0x2539a8(0x150),'OGteB':_0x2539a8(0x15c)+'provider'+_0x2539a8(0x160)+_0x2539a8(0x169)+'enai,\x20or'+_0x2539a8(0x16f)+_0x2539a8(0x174),'ECnix':function(_0x273ebb,_0x485e0d){return _0x273ebb===_0x485e0d;},'TmSJx':_0x2539a8(0x179)+_0x2539a8(0x137),'hNprL':_0x2539a8(0x10e)+_0x2539a8(0x15d),'EEVhd':_0x2539a8(0x117)+_0x2539a8(0x171)+'t-latest','UcgRH':_0x2539a8(0x12a),'sfOTh':_0x2539a8(0x13f)},_0xc6bdfd=_0x36fda0[_0x2539a8(0x151)](getGlobalEnvPath);if(_0x36fda0['gxmza'](existsSync,_0xc6bdfd)){const _0x5c86d3=await _0x36fda0['uuPOK'](askConfirmation,_0xc6bdfd+(_0x2539a8(0x139)+_0x2539a8(0x177)+_0x2539a8(0x143)+'te?\x20(y/n'+_0x2539a8(0x157)));if(!_0x5c86d3){console['log'](_0x36fda0['Lapvt'](warn,'CANCELED',_0x36fda0['lpWzR']));return;}}const _0x350d7b=await askInput(_0x36fda0['rYaCa']),_0x234f38=_0x36fda0['uyzWF'](_0x350d7b,_0x36fda0[_0x2539a8(0x11d)])['toLowerC'+'ase']();if(_0x36fda0[_0x2539a8(0x134)](_0x234f38,_0x36fda0[_0x2539a8(0x11d)])&&_0x36fda0['yNzbn'](_0x234f38,_0x36fda0[_0x2539a8(0x130)])&&_0x36fda0[_0x2539a8(0x134)](_0x234f38,_0x36fda0[_0x2539a8(0x173)])){if(_0x36fda0[_0x2539a8(0x134)](_0x36fda0[_0x2539a8(0x144)],_0x36fda0[_0x2539a8(0x144)]))return _0x24cdf4[_0x2539a8(0x163)]()[_0x2539a8(0x13e)](SRAlNJ['rlLzO'])['toString']()['construc'+_0x2539a8(0x11a)](_0x3dd7e4)[_0x2539a8(0x13e)](SRAlNJ[_0x2539a8(0x147)]);else _0x36fda0[_0x2539a8(0x10d)](failAndExit,_0x36fda0[_0x2539a8(0x140)]);}const _0x452668=_0x234f38,_0x1225eb=_0x36fda0['ECnix'](_0x452668,_0x36fda0[_0x2539a8(0x11d)])?_0x36fda0[_0x2539a8(0x123)]:_0x452668===_0x36fda0[_0x2539a8(0x130)]?_0x36fda0[_0x2539a8(0x119)]:_0x36fda0[_0x2539a8(0x110)],_0x8b2659=await _0x36fda0[_0x2539a8(0x10d)](askInput,'Model\x20['+_0x1225eb+_0x2539a8(0x113))||_0x1225eb,_0x56b4e2=getProviderKeyName(_0x452668),_0x1be42b=await _0x36fda0[_0x2539a8(0x10d)](askInput,_0x56b4e2+':\x20'),_0x4ace18=[_0x2539a8(0x170)+'IDER=\x22'+_0x452668+'\x22','LLM_MODE'+_0x2539a8(0x16c)+_0x8b2659+'\x22','','GOOGLE_A'+_0x2539a8(0x13b)+(_0x452668===_0x2539a8(0x128)?_0x1be42b:'')+'\x22',_0x2539a8(0x12d)+_0x2539a8(0x13b)+'\x22','OPENAI_A'+_0x2539a8(0x13b)+(_0x452668===_0x36fda0[_0x2539a8(0x130)]?_0x1be42b:'')+'\x22','ANTHROPI'+_0x2539a8(0x17b)+'Y=\x22'+(_0x36fda0['ECnix'](_0x452668,_0x2539a8(0x116)+'c')?_0x1be42b:'')+'\x22',''][_0x2539a8(0x12b)]('\x0a');_0x36fda0['Lapvt'](mkdirSync,dirname(_0xc6bdfd),{'recursive':!![]}),writeFileSync(_0xc6bdfd,_0x4ace18,_0x2539a8(0x16d)),section(_0x2539a8(0x11f)+_0x2539a8(0x15a)+_0x2539a8(0x159)),printKeyValues([{'key':_0x36fda0['UcgRH'],'value':_0x36fda0[_0x2539a8(0x178)](ok,'OK')},{'key':_0x36fda0[_0x2539a8(0x11b)],'value':_0xc6bdfd}]);}export function doctorConfig(){const _0x5e93de=_0x49af,_0x2d8b0f={'GZQjH':function(_0x3c895b,_0x579a62){return _0x3c895b(_0x579a62);},'qxAoH':function(_0x2cc9a6,_0xbaee82){return _0x2cc9a6===_0xbaee82;},'RoMPn':'google','FHzpc':_0x5e93de(0x120),'OyVmh':function(_0x49878b,_0x5bdf8a){return _0x49878b===_0x5bdf8a;},'roHIm':_0x5e93de(0x116)+'c','wBIbD':function(_0x44e3f2,_0x46ab9){return _0x44e3f2===_0x46ab9;},'zyGcJ':_0x5e93de(0x14a),'BuGjM':_0x5e93de(0x12f)+_0x5e93de(0x12c),'izROk':_0x5e93de(0x12f)+_0x5e93de(0x118),'Gjsgj':function(_0x2376b6,_0x52f925){return _0x2376b6(_0x52f925);},'JErCP':function(_0x2f13da,_0xc7f5e1){return _0x2f13da(_0xc7f5e1);},'kQwnt':'missing','fYZAF':function(_0x1f4648,_0x4cd954){return _0x1f4648(_0x4cd954);},'VTuAG':_0x5e93de(0x13a)+_0x5e93de(0x17a),'TylrX':_0x5e93de(0x145)+'L','FKWQC':function(_0x51aeeb,_0xbb23b1){return _0x51aeeb(_0xbb23b1);},'dcfre':function(_0xd00e56,_0x3d3110){return _0xd00e56(_0x3d3110);},'RfvyK':_0x5e93de(0x15b)+_0x5e93de(0x162),'eiJoo':'set','riLiZ':_0x5e93de(0x133)+'PI_KEY','AXhYR':function(_0x389ee7,_0xbdac9f){return _0x389ee7(_0xbdac9f);},'ENvrT':_0x5e93de(0x161)+_0x5e93de(0x17b)+'Y','NNOPH':function(_0x5e79be,_0x2677b3){return _0x5e79be(_0x2677b3);},'flseK':function(_0x37a55b,_0x553026){return _0x37a55b(_0x553026);},'cNfaf':function(_0x1f8be0,_0x426980){return _0x1f8be0||_0x426980;}},_0x681815=getGlobalEnvPath(),_0x1c34bc=_0x2d8b0f['GZQjH'](existsSync,_0x681815),_0x15fa0f=(process.env.LLM_PROVIDER||'')['toLowerC'+_0x5e93de(0x132)](),_0x2c1058=process.env.LLM_MODEL||'',_0x576cea=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x37ff49=process.env.OPENAI_API_KEY||'',_0x3130b3=process.env.ANTHROPIC_API_KEY||'',_0x5b6fb3=_0x2d8b0f[_0x5e93de(0x167)](_0x15fa0f,_0x2d8b0f['RoMPn'])||_0x2d8b0f[_0x5e93de(0x167)](_0x15fa0f,_0x2d8b0f[_0x5e93de(0x12e)])||_0x2d8b0f[_0x5e93de(0x14b)](_0x15fa0f,_0x2d8b0f['roHIm']),_0x35872a=_0x2d8b0f[_0x5e93de(0x168)](Boolean,_0x2c1058),_0x5b57cf=_0x2d8b0f[_0x5e93de(0x167)](_0x15fa0f,_0x2d8b0f['RoMPn'])?_0x576cea:_0x15fa0f===_0x2d8b0f[_0x5e93de(0x12e)]?_0x37ff49:_0x2d8b0f[_0x5e93de(0x15f)](_0x15fa0f,'anthropi'+'c')?_0x3130b3:'',_0x1b57f4=_0x5b6fb3?getProviderKeyName(_0x15fa0f):_0x2d8b0f[_0x5e93de(0x164)],_0x4011db=_0x2d8b0f[_0x5e93de(0x168)](Boolean,_0x5b57cf);section('DIAGNOST'+_0x5e93de(0x142)),_0x2d8b0f[_0x5e93de(0x168)](printKeyValues,[{'key':_0x2d8b0f['BuGjM'],'value':_0x681815},{'key':_0x2d8b0f['izROk'],'value':_0x1c34bc?_0x2d8b0f['Gjsgj'](ok,_0x5e93de(0x165)):_0x2d8b0f[_0x5e93de(0x114)](warn,_0x2d8b0f['kQwnt'])}]),console[_0x5e93de(0x166)](),printKeyValues([{'key':'LLM_PROV'+_0x5e93de(0x112),'value':_0x5b6fb3?_0x2d8b0f['fYZAF'](ok,'ok'):_0x2d8b0f[_0x5e93de(0x14f)](bad,_0x2d8b0f[_0x5e93de(0x15e)])},{'key':_0x2d8b0f[_0x5e93de(0x136)],'value':_0x35872a?ok('ok'):_0x2d8b0f[_0x5e93de(0x158)](bad,_0x2d8b0f['kQwnt'])},{'key':'Expected'+'\x20('+_0x1b57f4+')','value':_0x4011db?ok('ok'):_0x2d8b0f['dcfre'](bad,_0x2d8b0f[_0x5e93de(0x16b)])},{'key':_0x2d8b0f[_0x5e93de(0x111)],'value':_0x576cea?_0x2d8b0f[_0x5e93de(0x114)](ok,_0x2d8b0f['eiJoo']):_0x2d8b0f['dcfre'](warn,_0x5e93de(0x146))},{'key':_0x2d8b0f[_0x5e93de(0x122)],'value':_0x37ff49?_0x2d8b0f['AXhYR'](ok,_0x2d8b0f[_0x5e93de(0x115)]):_0x2d8b0f[_0x5e93de(0x154)](warn,_0x2d8b0f[_0x5e93de(0x16b)])},{'key':_0x2d8b0f[_0x5e93de(0x155)],'value':_0x3130b3?_0x2d8b0f[_0x5e93de(0x13d)](ok,_0x2d8b0f['eiJoo']):_0x2d8b0f[_0x5e93de(0x176)](warn,_0x2d8b0f[_0x5e93de(0x16b)])}]),(_0x2d8b0f[_0x5e93de(0x11c)](!_0x5b6fb3,!_0x35872a)||!_0x4011db)&&(process[_0x5e93de(0x152)]=0x1);}
@@ -1 +1 @@
1
- (function(_0x319e7f,_0x36283f){const _0x1b4c22=_0x3e43,_0x46e074=_0x319e7f();while(!![]){try{const _0x4bb13c=-parseInt(_0x1b4c22(0x143))/0x1+-parseInt(_0x1b4c22(0x116))/0x2+-parseInt(_0x1b4c22(0x134))/0x3+parseInt(_0x1b4c22(0x10c))/0x4*(parseInt(_0x1b4c22(0x10f))/0x5)+-parseInt(_0x1b4c22(0x109))/0x6*(-parseInt(_0x1b4c22(0x127))/0x7)+parseInt(_0x1b4c22(0x14e))/0x8*(parseInt(_0x1b4c22(0xf6))/0x9)+parseInt(_0x1b4c22(0x157))/0xa*(parseInt(_0x1b4c22(0xfb))/0xb);if(_0x4bb13c===_0x36283f)break;else _0x46e074['push'](_0x46e074['shift']());}catch(_0x5c6d35){_0x46e074['push'](_0x46e074['shift']());}}}(_0x45b1,0xd0602));const _0x1c1bfe=(function(){const _0x33f36a={'rkssx':function(_0x59caac,_0x59d274){return _0x59caac(_0x59d274);}};let _0x19f324=!![];return function(_0x2fb67d,_0x118ebc){const _0x8c636f={'Kurgv':function(_0x80476e,_0x493b8c){const _0x3dc1a6=_0x3e43;return _0x33f36a[_0x3dc1a6(0x142)](_0x80476e,_0x493b8c);}},_0x3e8332=_0x19f324?function(){const _0x1137f1=_0x3e43;if(_0x1137f1(0x146)!==_0x1137f1(0x121)){if(_0x118ebc){const _0x48220=_0x118ebc[_0x1137f1(0x13e)](_0x2fb67d,arguments);return _0x118ebc=null,_0x48220;}}else _0x8c636f[_0x1137f1(0x112)](_0x10b35f,_0x1137f1(0x139)+_0x1137f1(0x15a)+_0x1137f1(0x110)+_0x1137f1(0x14b)+_0x1137f1(0x12b)+_0x1137f1(0x11a)+_0x3320aa[_0x1137f1(0x11c)]+'.');}:function(){};return _0x19f324=![],_0x3e8332;};}()),_0x614dd6=_0x1c1bfe(this,function(){const _0x187481=_0x3e43;return _0x614dd6[_0x187481(0x125)]()[_0x187481(0x140)]('(((.+)+)'+'+)+$')[_0x187481(0x125)]()[_0x187481(0x103)+_0x187481(0x12c)](_0x614dd6)[_0x187481(0x140)](_0x187481(0x14f)+_0x187481(0x11e));});_0x614dd6();function _0x3e43(_0x228305,_0x482dba){_0x228305=_0x228305-0xf2;const _0xb05783=_0x45b1();let _0x614dd6=_0xb05783[_0x228305];return _0x614dd6;}import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';function _0x45b1(){const _0x38e5b2=['sta\x20com\x20','ch\x20again','tor','mpacto\x20t','QmNhJ','dJgbE','se\x20lingu','diffStat','to\x20forne','XMTRZ','4983468gYDjRI','replace','rto\x20+\x20li','ural\x20e\x20o','h\x20summar','No\x20commi','branch:\x20','ente\x20nad','Brasil\x20o','\x20feito\x20n','apply','agem\x20nat','search','Current\x20','rkssx','847021cfsQzK','te\x20branc','Branch','ZOxvz','Base\x20bra','dYben','o\x20branch','\x20|\x20body:','ent\x20bran','\x20work...','cyRnr','8zHlMur','(((.+)+)','(none)','grafo\x20cu','MuyVV','gvEfs','ssivel\x0a-','gues\x20do\x20','AI\x20is\x20su','70VZCGzc','ntexto\x20d','Changed\x20','ts\x20found','-\x20Cite\x20i','-\x201\x20para','changedF','BRANCH\x20S','iheSJ','iles','map','NyMMD','em\x20portu','11122803CBvDlk','iDsSv','ras:\x0a-\x20U','hash','Diff\x20sta','3208480nugdge','\x20Nao\x20inv','zZPXt','cipais\x20m','hMFni','uando\x20po','KitJk','g\x20branch','construc','message','trim','Commits:','length','join','388092eWivWb','MGspL','log','668EyKvwl','bullets\x20','body','24880DGJDyV','\x20on\x20curr','dLCVi','Kurgv','das\x20prin','este\x20bra','subject','1623236wuZjwM','invoke','commits','files:','st\x20','content','baseRef','\x20|\x20','+)+$','WFzhZ','JfgDa','vDLjl','XgelE','slice','lXgtf','toString','Failed\x20t','7YjbSMH','nch:\x20','dDQHz'];_0x45b1=function(){return _0x38e5b2;};return _0x45b1();}import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x1afc6f=_0x3e43,_0xfd1e98={'NyMMD':function(_0x1d902a){return _0x1d902a();},'ULpbH':function(_0x332d77,_0x115881){return _0x332d77===_0x115881;},'dLCVi':function(_0x3ce900,_0x21cd8d){return _0x3ce900(_0x21cd8d);},'cyRnr':function(_0x19f351){return _0x19f351();},'MGspL':_0x1afc6f(0x106),'gvEfs':_0x1afc6f(0x159)+_0x1afc6f(0x119),'dYben':function(_0x38afbf){return _0x38afbf();},'dJgbE':function(_0x1450df,_0x49096a){return _0x1450df!==_0x49096a;},'SYQUt':_0x1afc6f(0x11f),'hMFni':function(_0x271361,_0x1b6cc4){return _0x271361 instanceof _0x1b6cc4;}};try{return _0xfd1e98[_0x1afc6f(0x148)](createLLM);}catch(_0x33fb68){if(_0xfd1e98[_0x1afc6f(0x12f)](_0xfd1e98['SYQUt'],_0x1afc6f(0x11f))){const _0x2b488a=_0xfd1e98[_0x1afc6f(0xf4)](_0x41dc9f);_0xfd1e98['ULpbH'](_0x2b488a[_0x1afc6f(0x118)][_0x1afc6f(0x107)],0x0)&&_0xfd1e98[_0x1afc6f(0x111)](_0x46fa2c,_0x1afc6f(0x139)+_0x1afc6f(0x15a)+'\x20on\x20curr'+_0x1afc6f(0x14b)+_0x1afc6f(0x12b)+_0x1afc6f(0x11a)+_0x2b488a[_0x1afc6f(0x11c)]+'.');const _0x358e8c=_0x2b488a[_0x1afc6f(0x118)][_0x1afc6f(0xf3)](_0x483a31=>{const _0x36c4c1=_0x1afc6f,_0xb075e7=_0x483a31[_0x36c4c1(0x10e)]?_0x36c4c1(0x14a)+'\x20'+_0x483a31['body'][_0x36c4c1(0x135)](/\s+/g,'\x20')[_0x36c4c1(0x105)]():'';return'-\x20'+_0x483a31['hash'][_0x36c4c1(0x123)](0x0,0x7)+_0x36c4c1(0x11d)+_0x483a31[_0x36c4c1(0x115)]+_0xb075e7;});return[_0x1afc6f(0x141)+_0x1afc6f(0x13a)+_0xfd1e98[_0x1afc6f(0x14d)](_0x2a1a42),'Base\x20bra'+_0x1afc6f(0x128)+_0x2b488a['baseRef'],'',_0xfd1e98[_0x1afc6f(0x10a)],..._0x358e8c,'',_0xfd1e98[_0x1afc6f(0x153)],_0x2b488a[_0x1afc6f(0x15d)+_0x1afc6f(0xf2)]||_0x1afc6f(0x150),'',_0x1afc6f(0xfa)+'t:',_0x2b488a[_0x1afc6f(0x131)]||_0x1afc6f(0x150)][_0x1afc6f(0x108)]('\x0a');}else{const _0x555e0a=_0xfd1e98[_0x1afc6f(0xff)](_0x33fb68,Error)?_0x33fb68[_0x1afc6f(0x104)]:_0xfd1e98[_0x1afc6f(0x111)](String,_0x33fb68);_0xfd1e98[_0x1afc6f(0x111)](failAndExit,_0x555e0a);}}}function formatBranchContextForPrompt(){const _0x56ecf1=_0x3e43,_0x35457a={'JfgDa':function(_0xfb155c){return _0xfb155c();},'iheSJ':function(_0x281dcf,_0x5019ff){return _0x281dcf===_0x5019ff;},'ymkzc':function(_0x4998e5,_0x197c7b){return _0x4998e5(_0x197c7b);},'zOJxh':function(_0x530afb){return _0x530afb();},'XMTRZ':_0x56ecf1(0x150),'MuyVV':'Diff\x20sta'+'t:'},_0x32b945=_0x35457a[_0x56ecf1(0x120)](getBranchContext);_0x35457a[_0x56ecf1(0x15f)](_0x32b945[_0x56ecf1(0x118)][_0x56ecf1(0x107)],0x0)&&_0x35457a['ymkzc'](failAndExit,_0x56ecf1(0x139)+'ts\x20found'+_0x56ecf1(0x110)+_0x56ecf1(0x14b)+_0x56ecf1(0x12b)+_0x56ecf1(0x11a)+_0x32b945['baseRef']+'.');const _0x15159e=_0x32b945[_0x56ecf1(0x118)][_0x56ecf1(0xf3)](_0x25f194=>{const _0x15bf70=_0x56ecf1,_0xf0869d=_0x25f194[_0x15bf70(0x10e)]?_0x15bf70(0x14a)+'\x20'+_0x25f194[_0x15bf70(0x10e)][_0x15bf70(0x135)](/\s+/g,'\x20')[_0x15bf70(0x105)]():'';return'-\x20'+_0x25f194[_0x15bf70(0xf9)][_0x15bf70(0x123)](0x0,0x7)+_0x15bf70(0x11d)+_0x25f194[_0x15bf70(0x115)]+_0xf0869d;});return[_0x56ecf1(0x141)+_0x56ecf1(0x13a)+_0x35457a['zOJxh'](getCurrentBranch),_0x56ecf1(0x147)+'nch:\x20'+_0x32b945['baseRef'],'',_0x56ecf1(0x106),..._0x15159e,'',_0x56ecf1(0x159)+_0x56ecf1(0x119),_0x32b945['changedF'+'iles']||_0x35457a[_0x56ecf1(0x133)],'',_0x35457a[_0x56ecf1(0x152)],_0x32b945[_0x56ecf1(0x131)]||_0x56ecf1(0x150)]['join']('\x0a');}export async function summarizeBranchLog(){const _0x4ec14d=_0x3e43,_0x181820={'KitJk':function(_0x303208,_0x346f8c){return _0x303208(_0x346f8c);},'iDsSv':function(_0x585eb1){return _0x585eb1();},'dDQHz':_0x4ec14d(0x156)+'mmarizin'+_0x4ec14d(0x102)+_0x4ec14d(0x14c),'nygAW':function(_0xe13a26,_0x29844c){return _0xe13a26!==_0x29844c;},'jdXOr':'XgelE','QmNhJ':_0x4ec14d(0x126)+'o\x20genera'+_0x4ec14d(0x144)+_0x4ec14d(0x138)+'y.','zZPXt':function(_0x37ca31,_0x3d4691){return _0x37ca31(_0x3d4691);},'lXgtf':function(_0x2bc79e,_0x1e3aa1){return _0x2bc79e(_0x1e3aa1);},'QUjLL':_0x4ec14d(0x145),'UdXTj':function(_0x246646){return _0x246646();}};getGitStatus();const _0x20c031=getLLM(),_0x143d13=_0x181820[_0x4ec14d(0xf7)](formatBranchContextForPrompt),_0x103b8e=('\x0aResuma\x20'+_0x4ec14d(0xf5)+_0x4ec14d(0x155)+_0x4ec14d(0x13c)+'\x20que\x20foi'+_0x4ec14d(0x13d)+_0x4ec14d(0x114)+'nch.\x0aReg'+_0x4ec14d(0xf8)+_0x4ec14d(0x130)+_0x4ec14d(0x13f)+_0x4ec14d(0x137)+'bjetiva\x0a'+_0x4ec14d(0x15c)+_0x4ec14d(0x151)+_0x4ec14d(0x136)+_0x4ec14d(0x12a)+_0x4ec14d(0x10d)+_0x4ec14d(0x113)+_0x4ec14d(0xfe)+'udancas\x0a'+_0x4ec14d(0x15b)+_0x4ec14d(0x12d)+'ecnico\x20q'+_0x4ec14d(0x100)+_0x4ec14d(0x154)+_0x4ec14d(0xfc)+_0x4ec14d(0x13b)+'a\x20fora\x20d'+'o\x20contex'+_0x4ec14d(0x132)+'cido\x0a\x0aCo'+_0x4ec14d(0x158)+_0x4ec14d(0x149)+':\x0a'+_0x143d13+'\x0a')[_0x4ec14d(0x105)](),_0x3e5ae0=await withProgress(_0x181820[_0x4ec14d(0x129)],()=>_0x20c031[_0x4ec14d(0x117)](_0x103b8e)),_0x1418bd=extractMessageText(_0x3e5ae0[_0x4ec14d(0x11b)]);if(!_0x1418bd){if(_0x181820['nygAW'](_0x181820['jdXOr'],_0x4ec14d(0x122))){const _0x38fd86=_0x292cdc instanceof _0x2689d9?_0x504c58[_0x4ec14d(0x104)]:HySZDw[_0x4ec14d(0x101)](_0x41f8ed,_0x1cc02e);_0x33a0fe(_0x38fd86);}else failAndExit(_0x181820[_0x4ec14d(0x12e)]);}_0x181820[_0x4ec14d(0xfd)](section,_0x4ec14d(0x15e)+'UMMARY'),_0x181820[_0x4ec14d(0x124)](printKeyValues,[{'key':_0x181820['QUjLL'],'value':_0x181820['UdXTj'](getCurrentBranch)}]),console[_0x4ec14d(0x10b)](_0x1418bd),console['log']();}
1
+ function _0x393d(_0x514888,_0x550318){_0x514888=_0x514888-0xdf;const _0x200196=_0x2427();let _0x87b970=_0x200196[_0x514888];return _0x87b970;}(function(_0x27de15,_0x169568){const _0x592ac6=_0x393d,_0xa21618=_0x27de15();while(!![]){try{const _0x2027b9=-parseInt(_0x592ac6(0x100))/0x1*(parseInt(_0x592ac6(0x133))/0x2)+-parseInt(_0x592ac6(0x137))/0x3*(parseInt(_0x592ac6(0xec))/0x4)+parseInt(_0x592ac6(0x11a))/0x5*(-parseInt(_0x592ac6(0x11d))/0x6)+-parseInt(_0x592ac6(0x11e))/0x7+parseInt(_0x592ac6(0x108))/0x8+parseInt(_0x592ac6(0x10c))/0x9*(-parseInt(_0x592ac6(0x13a))/0xa)+parseInt(_0x592ac6(0x111))/0xb;if(_0x2027b9===_0x169568)break;else _0xa21618['push'](_0xa21618['shift']());}catch(_0x183e75){_0xa21618['push'](_0xa21618['shift']());}}}(_0x2427,0x36205));const _0x22d9d2=(function(){const _0x197052=_0x393d,_0x289ed3={'KqaEe':function(_0x481389,_0x27068b){return _0x481389===_0x27068b;},'xKPjz':_0x197052(0x109),'kvjzi':function(_0x396e2b,_0x227adc){return _0x396e2b instanceof _0x227adc;},'qXpYg':function(_0x6107f2,_0x2c96f1){return _0x6107f2(_0x2c96f1);}};let _0x122785=!![];return function(_0x4af24e,_0x7a2b18){const _0x225654={'aOTlJ':function(_0x250445,_0x471a55){const _0x33e83e=_0x393d;return _0x289ed3[_0x33e83e(0xee)](_0x250445,_0x471a55);},'TMjYb':function(_0x1c975b,_0x459f28){const _0xe0c8f0=_0x393d;return _0x289ed3[_0xe0c8f0(0x101)](_0x1c975b,_0x459f28);}},_0x53e188=_0x122785?function(){const _0x2d5eba=_0x393d;if(_0x7a2b18){if(_0x289ed3[_0x2d5eba(0x110)](_0x289ed3[_0x2d5eba(0x13c)],_0x289ed3[_0x2d5eba(0x13c)])){const _0xe46d00=_0x7a2b18[_0x2d5eba(0x128)](_0x4af24e,arguments);return _0x7a2b18=null,_0xe46d00;}else{const _0x5c9d03=_0x225654[_0x2d5eba(0x12c)](_0x325ba8,_0x3833b5)?_0x1dc78d[_0x2d5eba(0xea)]:_0x225654['TMjYb'](_0x388f13,_0x1ce9c2);_0x225654[_0x2d5eba(0x140)](_0x53a515,_0x5c9d03);}}}:function(){};return _0x122785=![],_0x53e188;};}()),_0x87b970=_0x22d9d2(this,function(){const _0x34e8d6=_0x393d,_0x43a284={'SYLPp':_0x34e8d6(0xf8)+'+)+$'};return _0x87b970[_0x34e8d6(0x146)]()[_0x34e8d6(0x129)](_0x43a284[_0x34e8d6(0x132)])[_0x34e8d6(0x146)]()['construc'+_0x34e8d6(0xeb)](_0x87b970)['search'](_0x43a284[_0x34e8d6(0x132)]);});function _0x2427(){const _0x1841b0=['to\x20forne','12XGxEhH','1406475qLiRgh','cido\x0a\x0aCo','Diff\x20sta','map','\x0aResuma\x20','das\x20prin','em\x20portu','Branch','files:','ELKYg','apply','search','mmarizin','EPKvb','aOTlJ','-\x20Cite\x20i','a\x20fora\x20d','Failed\x20t','hash','body','SYLPp','149440ESJIsj','\x20work...','content','diffStat','1599DzbFul','bTGcj','Kjgyh','17530TucajS','BRANCH\x20S','xKPjz','mpacto\x20t','agem\x20nat','invoke','TMjYb','ente\x20nad','ras:\x0a-\x20U','VZbDD','o\x20genera','bullets\x20','toString','\x20on\x20curr','Changed\x20','No\x20commi','join','\x20Nao\x20inv','kJDUA','nch:\x20','trim','zcuxI','YwrJU','AI\x20is\x20su','se\x20lingu','ntexto\x20d','(none)','message','tor','448ZGddQf','sta\x20com\x20','kvjzi','rto\x20+\x20li','SuqRx','TokCi','\x20que\x20foi','replace','KzWiU','dJxKZ','\x20|\x20body:','JJcgX','(((.+)+)','OEZYV','Current\x20','udancas\x0a','-\x201\x20para','gues\x20do\x20','baseRef','hPzrf','5gVqgCQ','qXpYg','Brasil\x20o','changedF','commits','VIZVo','nch.\x0aReg','subject','167400mqaLOh','pSEXj','length','st\x20','1359nANxSh','\x20|\x20','grafo\x20cu','o\x20contex','KqaEe','14565122qdvakf','este\x20bra','Commits:','ssivel\x0a-','te\x20branc','slice','cipais\x20m','Base\x20bra','ural\x20e\x20o','561005CrmJIl','o\x20branch'];_0x2427=function(){return _0x1841b0;};return _0x2427();}_0x87b970();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x595eee=_0x393d,_0x3341c2={'cowoL':function(_0x524fbd){return _0x524fbd();},'SuqRx':function(_0x20333f,_0x19ad7b){return _0x20333f instanceof _0x19ad7b;},'TMTHz':function(_0xfcfb0b,_0x442c81){return _0xfcfb0b(_0x442c81);}};try{return _0x3341c2['cowoL'](createLLM);}catch(_0x14c5a5){const _0x1ea8bd=_0x3341c2[_0x595eee(0xf0)](_0x14c5a5,Error)?_0x14c5a5[_0x595eee(0xea)]:_0x3341c2['TMTHz'](String,_0x14c5a5);_0x3341c2['TMTHz'](failAndExit,_0x1ea8bd);}}function formatBranchContextForPrompt(){const _0x302a45=_0x393d,_0x59777b={'VZbDD':function(_0x10b801,_0x357c1d){return _0x10b801===_0x357c1d;},'PiNSD':_0x302a45(0x12b),'dJxKZ':function(_0x2d556f,_0xb95638){return _0x2d556f(_0xb95638);},'bTGcj':function(_0xc911ce){return _0xc911ce();},'KAljz':_0x302a45(0x113),'zcuxI':_0x302a45(0xe9),'KzWiU':_0x302a45(0x120)+'t:'},_0x451f8e=getBranchContext();if(_0x59777b[_0x302a45(0x143)](_0x451f8e[_0x302a45(0x104)][_0x302a45(0x10a)],0x0)){if(_0x302a45(0x12b)===_0x59777b['PiNSD'])_0x59777b[_0x302a45(0xf5)](failAndExit,_0x302a45(0x149)+'ts\x20found'+_0x302a45(0x147)+'ent\x20bran'+'ch\x20again'+_0x302a45(0x10b)+_0x451f8e[_0x302a45(0xfe)]+'.');else{const _0x5cfa5b=_0x58ba2e[_0x302a45(0x131)]?_0x302a45(0xf6)+'\x20'+_0x5c3f5e['body']['replace'](/\s+/g,'\x20')[_0x302a45(0xe3)]():'';return'-\x20'+_0x5585e4['hash'][_0x302a45(0x116)](0x0,0x7)+_0x302a45(0x10d)+_0x745aa7[_0x302a45(0x107)]+_0x5cfa5b;}}const _0x24f10e=_0x451f8e[_0x302a45(0x104)][_0x302a45(0x121)](_0x251b68=>{const _0x3d1ced=_0x302a45,_0x5978b1=_0x251b68[_0x3d1ced(0x131)]?_0x3d1ced(0xf6)+'\x20'+_0x251b68['body'][_0x3d1ced(0xf3)](/\s+/g,'\x20')[_0x3d1ced(0xe3)]():'';return'-\x20'+_0x251b68[_0x3d1ced(0x130)]['slice'](0x0,0x7)+'\x20|\x20'+_0x251b68['subject']+_0x5978b1;});return[_0x302a45(0xfa)+'branch:\x20'+_0x59777b[_0x302a45(0x138)](getCurrentBranch),_0x302a45(0x118)+_0x302a45(0xe2)+_0x451f8e[_0x302a45(0xfe)],'',_0x59777b['KAljz'],..._0x24f10e,'',_0x302a45(0x148)+_0x302a45(0x126),_0x451f8e[_0x302a45(0x103)+'iles']||_0x59777b[_0x302a45(0xe4)],'',_0x59777b[_0x302a45(0xf4)],_0x451f8e[_0x302a45(0x136)]||_0x302a45(0xe9)][_0x302a45(0xdf)]('\x0a');}export async function summarizeBranchLog(){const _0x431e43=_0x393d,_0x2ad16={'Kjgyh':function(_0x417ada){return _0x417ada();},'hPzrf':function(_0x30fae0,_0x3c2b33,_0x4d3a2b){return _0x30fae0(_0x3c2b33,_0x4d3a2b);},'ELKYg':_0x431e43(0xe6)+_0x431e43(0x12a)+'g\x20branch'+_0x431e43(0x134),'OEZYV':function(_0x1162df,_0x1f3361){return _0x1162df(_0x1f3361);},'YwrJU':function(_0x4b5201,_0x447990){return _0x4b5201(_0x447990);},'TokCi':_0x431e43(0x12f)+_0x431e43(0x144)+_0x431e43(0x115)+'h\x20summar'+'y.','VIZVo':function(_0x64efcd,_0x1d95b0){return _0x64efcd(_0x1d95b0);},'JJcgX':_0x431e43(0x13b)+'UMMARY','kJDUA':_0x431e43(0x125)};_0x2ad16['Kjgyh'](getGitStatus);const _0x4ed222=_0x2ad16['Kjgyh'](getLLM),_0x1c53cd=_0x2ad16[_0x431e43(0x139)](formatBranchContextForPrompt),_0x47fc92=(_0x431e43(0x122)+_0x431e43(0x124)+_0x431e43(0xfd)+_0x431e43(0x102)+_0x431e43(0xf2)+'\x20feito\x20n'+_0x431e43(0x112)+_0x431e43(0x106)+_0x431e43(0x142)+_0x431e43(0xe7)+_0x431e43(0x13e)+_0x431e43(0x119)+'bjetiva\x0a'+_0x431e43(0xfc)+_0x431e43(0x10e)+_0x431e43(0xef)+_0x431e43(0xed)+_0x431e43(0x145)+_0x431e43(0x123)+_0x431e43(0x117)+_0x431e43(0xfb)+_0x431e43(0x12d)+_0x431e43(0x13d)+'ecnico\x20q'+'uando\x20po'+_0x431e43(0x114)+_0x431e43(0xe0)+_0x431e43(0x141)+_0x431e43(0x12e)+_0x431e43(0x10f)+_0x431e43(0x11c)+_0x431e43(0x11f)+_0x431e43(0xe8)+_0x431e43(0x11b)+':\x0a'+_0x1c53cd+'\x0a')['trim'](),_0xcc8fb=await _0x2ad16[_0x431e43(0xff)](withProgress,_0x2ad16[_0x431e43(0x127)],()=>_0x4ed222[_0x431e43(0x13f)](_0x47fc92)),_0x18e272=_0x2ad16[_0x431e43(0xf9)](extractMessageText,_0xcc8fb[_0x431e43(0x135)]);!_0x18e272&&_0x2ad16[_0x431e43(0xe5)](failAndExit,_0x2ad16[_0x431e43(0xf1)]),_0x2ad16[_0x431e43(0x105)](section,_0x2ad16[_0x431e43(0xf7)]),printKeyValues([{'key':_0x2ad16[_0x431e43(0xe1)],'value':getCurrentBranch()}]),console['log'](_0x18e272),console['log']();}
@@ -1 +1 @@
1
- (function(_0x45a856,_0x11830e){const _0x6804da=_0x4a37,_0x5096d4=_0x45a856();while(!![]){try{const _0x2b3fdd=parseInt(_0x6804da(0xa9))/0x1+parseInt(_0x6804da(0xea))/0x2*(-parseInt(_0x6804da(0xda))/0x3)+parseInt(_0x6804da(0x80))/0x4+parseInt(_0x6804da(0xae))/0x5+-parseInt(_0x6804da(0x96))/0x6+parseInt(_0x6804da(0xde))/0x7*(-parseInt(_0x6804da(0x85))/0x8)+-parseInt(_0x6804da(0xa4))/0x9*(parseInt(_0x6804da(0xa1))/0xa);if(_0x2b3fdd===_0x11830e)break;else _0x5096d4['push'](_0x5096d4['shift']());}catch(_0x3c58e9){_0x5096d4['push'](_0x5096d4['shift']());}}}(_0x1756,0xf17ce));const _0x4c34e1=(function(){let _0x51cd3c=!![];return function(_0x5cf559,_0x379316){const _0x306ac4=_0x51cd3c?function(){const _0x1b2cf2=_0x4a37;if(_0x379316){const _0x1f7950=_0x379316[_0x1b2cf2(0x82)](_0x5cf559,arguments);return _0x379316=null,_0x1f7950;}}:function(){};return _0x51cd3c=![],_0x306ac4;};}()),_0x44dde2=_0x4c34e1(this,function(){const _0x1b4b1f=_0x4a37,_0x4ab1dd={'maoXu':_0x1b4b1f(0xb2)+_0x1b4b1f(0xd6)};return _0x44dde2[_0x1b4b1f(0xe8)]()['search'](_0x1b4b1f(0xb2)+_0x1b4b1f(0xd6))[_0x1b4b1f(0xe8)]()[_0x1b4b1f(0x8f)+_0x1b4b1f(0x78)](_0x44dde2)['search'](_0x4ab1dd[_0x1b4b1f(0xdc)]);});_0x44dde2();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function _0x4a37(_0xc136c,_0x27dcd3){_0xc136c=_0xc136c-0x6e;const _0x5a99af=_0x1756();let _0x44dde2=_0x5a99af[_0xc136c];return _0x44dde2;}function getLLM(){const _0x39ff7d=_0x4a37,_0x1542db={'oNmjJ':function(_0x15c6fa){return _0x15c6fa();},'rsMZA':function(_0x264413,_0x241685){return _0x264413 instanceof _0x241685;},'UrZeQ':function(_0x23f42c,_0x356400){return _0x23f42c(_0x356400);}};try{return _0x1542db['oNmjJ'](createLLM);}catch(_0x53795f){const _0x55dd73=_0x1542db[_0x39ff7d(0x8a)](_0x53795f,Error)?_0x53795f[_0x39ff7d(0xb6)]:String(_0x53795f);_0x1542db[_0x39ff7d(0xbf)](failAndExit,_0x55dd73);}}function formatCommitsForPrompt(){const _0x356f98=_0x4a37,_0x43145b={'kuhyl':_0x356f98(0xb2)+'+)+$','xEGDA':function(_0x1d750f,_0x242c0b){return _0x1d750f!==_0x242c0b;},'JzkyI':'qsKde','GfTnL':_0x356f98(0x8e),'CMpst':function(_0x441be0){return _0x441be0();},'SAGWo':function(_0x8bba64,_0x408236){return _0x8bba64===_0x408236;},'UyFTS':_0x356f98(0x73)+'t:'},_0x496c66=_0x43145b[_0x356f98(0xc8)](getBranchContext);_0x43145b[_0x356f98(0xc9)](_0x496c66[_0x356f98(0xc5)]['length'],0x0)&&failAndExit('No\x20commi'+'ts\x20found'+'\x20on\x20curr'+_0x356f98(0x6f)+_0x356f98(0xe1)+_0x356f98(0xe0)+_0x496c66[_0x356f98(0xb3)]+'.');const _0x40b7f3=_0x496c66[_0x356f98(0xc5)][_0x356f98(0xd4)](_0x38f833=>{const _0x24a3d3=_0x356f98,_0x598cf1={'FqCCP':_0x43145b[_0x24a3d3(0xd1)]};if(_0x43145b[_0x24a3d3(0x9c)](_0x43145b[_0x24a3d3(0x84)],_0x43145b[_0x24a3d3(0xa3)])){const _0x37aeb3=_0x38f833['body']?'\x20|\x20body:'+'\x20'+_0x38f833[_0x24a3d3(0xac)][_0x24a3d3(0xcd)](/\s+/g,'\x20')[_0x24a3d3(0x7e)]():'';return'-\x20'+_0x38f833['hash']['slice'](0x0,0x7)+_0x24a3d3(0x9b)+_0x38f833[_0x24a3d3(0xd8)]+_0x37aeb3;}else return _0x1c057e['toString']()[_0x24a3d3(0x70)](mkgtFr['FqCCP'])[_0x24a3d3(0xe8)]()[_0x24a3d3(0x8f)+_0x24a3d3(0x78)](_0x20e56b)[_0x24a3d3(0x70)](mkgtFr['FqCCP']);});return['Current\x20'+_0x356f98(0xe5)+getCurrentBranch(),_0x356f98(0x8b)+_0x356f98(0xad)+_0x496c66[_0x356f98(0xb3)],'',_0x356f98(0xdb),..._0x40b7f3,'',_0x356f98(0xd7)+_0x356f98(0x7d),_0x496c66[_0x356f98(0xa7)+_0x356f98(0xc6)]||_0x356f98(0x86),'',_0x43145b[_0x356f98(0xbb)],_0x496c66[_0x356f98(0x71)]||_0x356f98(0x86)][_0x356f98(0xaf)]('\x0a');}function parsePrSuggestion(_0x1d5344){const _0x3ec76e=_0x4a37,_0x1bba19={'CBfTN':function(_0x388401,_0x505881){return _0x388401<_0x505881;},'XDoBi':function(_0x4421b9,_0x1f618c){return _0x4421b9(_0x1f618c);},'XgDdc':'Failed\x20t'+'o\x20parse\x20'+'PR\x20sugge'+_0x3ec76e(0x9a)+'om\x20AI\x20re'+_0x3ec76e(0xe6),'WCQRA':function(_0x34b412,_0x29e52f){return _0x34b412+_0x29e52f;},'uinea':function(_0x2f10a4,_0x2bf522){return _0x2f10a4+_0x2bf522;},'seeCl':function(_0x52ba5b,_0x8e0227){return _0x52ba5b||_0x8e0227;},'eotBe':function(_0x2dc895,_0xdb3f24){return _0x2dc895(_0xdb3f24);}},_0x2797e3=_0x1d5344[_0x3ec76e(0xc4)](/\r?\n/),_0x1e8225=_0x2797e3['find'](_0x4ad326=>_0x4ad326[_0x3ec76e(0xd9)+'ase']()[_0x3ec76e(0xbe)+'th'](_0x3ec76e(0xb9))),_0x3f5233=_0x2797e3[_0x3ec76e(0xc7)+'x'](_0x56ae4e=>_0x56ae4e['toLowerC'+_0x3ec76e(0xaa)]()['startsWi'+'th'](_0x3ec76e(0xce)+'ion:'));(!_0x1e8225||_0x1bba19[_0x3ec76e(0xb8)](_0x3f5233,0x0))&&_0x1bba19[_0x3ec76e(0xb0)](failAndExit,_0x1bba19[_0x3ec76e(0xe9)]);const _0x5ca2d9=_0x1e8225[_0x3ec76e(0x9d)](_0x1bba19[_0x3ec76e(0xeb)](_0x1e8225[_0x3ec76e(0xcb)](':'),0x1))[_0x3ec76e(0x7e)](),_0x350097=_0x2797e3['slice'](_0x1bba19[_0x3ec76e(0x94)](_0x3f5233,0x1))[_0x3ec76e(0xaf)]('\x0a')[_0x3ec76e(0x7e)]();return _0x1bba19[_0x3ec76e(0xd0)](!_0x5ca2d9,!_0x350097)&&_0x1bba19[_0x3ec76e(0x7a)](failAndExit,_0x3ec76e(0x74)+_0x3ec76e(0xb4)+_0x3ec76e(0xab)+_0x3ec76e(0x87)+_0x3ec76e(0x88)+_0x3ec76e(0xdd)+_0x3ec76e(0xba)),{'title':_0x5ca2d9,'description':_0x350097};}function _0x1756(){const _0x4fd248=['title','2838384iYwkNP','eRiSj','ary,\x20Cha','ion','stion\x20fr','\x20|\x20','xEGDA','slice','eturn\x20ex','tle>\x0aDES','below,\x20c','84290iNVVTX','rmat:\x0aTI','GfTnL','342WFjtCQ','PR\x20TITLE','tion\x20wit','changedF','tle\x20in\x20E','1586058YcbWrR','ase','not\x20incl','body','nch:\x20','6863955XyuOdl','join','XDoBi','IJbAR','(((.+)+)','baseRef','nse\x20did\x20','log','message','PR\x20title','CBfTN','title:','iption.','UyFTS','\x20and\x20des','...','startsWi','UrZeQ','ch\x20data\x20','hars)\x0a-\x20','o\x20genera','TmKTM','split','commits','iles','findInde','CMpst','SAGWo','CZUaj','indexOf','anch\x20dat','replace','descript','nglish\x20(','seeCl','kuhyl','\x20A\x20conci','max\x2072\x20c','map','dFXfV','+)+$','Changed\x20','subject','toLowerC','1095oQjefb','Commits:','maoXu','le/descr','3537947ckJwpC','content','st\x20','ch\x20again','markdown','oxkxO','YXhVw','branch:\x20','sponse.','EIgBH','toString','XgDdc','5468Qvgiui','WCQRA','PR\x20DESCR','ent\x20bran','search','diffStat','\x20this\x20fo','Diff\x20sta','AI\x20respo','a:\x0a','te\x20PR\x20co','a\x20GitHub','tor','quest.\x0aB','eotBe','CSqfY','ntent.','files:','trim','nges,\x20Te','3329612invDXG','FYdnF','apply','\x20Pull\x20Re','JzkyI','16SnhFZw','(none)','ude\x20vali','d\x20PR\x20tit','sting\x0a\x0aR','rsMZA','Base\x20bra','the\x20bran','actly\x20in','EMSqQ','construc','AI\x20is\x20pr','CRIPTION','\x20descrip','\x20generat','uinea'];_0x1756=function(){return _0x4fd248;};return _0x1756();}export async function generatePullRequestText(){const _0xe3c477=_0x4a37,_0x5d4cec={'EIgBH':function(_0x106bd9){return _0x106bd9();},'dFXfV':function(_0x4b3d35,_0x39bf02,_0x33ce4a){return _0x4b3d35(_0x39bf02,_0x33ce4a);},'CSqfY':_0xe3c477(0x90)+'eparing\x20'+_0xe3c477(0xb7)+_0xe3c477(0xbc)+'cription'+_0xe3c477(0xbd),'YXhVw':function(_0x13aa9a,_0x4b5e5e){return _0x13aa9a(_0x4b5e5e);},'eRiSj':'Failed\x20t'+_0xe3c477(0xc2)+_0xe3c477(0x76)+_0xe3c477(0x7c),'FYdnF':function(_0x1fbb1c,_0x12896d){return _0x1fbb1c(_0x12896d);},'CZUaj':function(_0x106e13,_0x25e95b){return _0x106e13(_0x25e95b);},'IJbAR':_0xe3c477(0xa5),'TmKTM':function(_0x2253b5,_0x235ba7){return _0x2253b5(_0x235ba7);},'oxkxO':_0xe3c477(0x6e)+'IPTION'};getGitStatus();const _0x2b1ef0=_0x5d4cec[_0xe3c477(0xe7)](getLLM),_0x4476f8=_0x5d4cec[_0xe3c477(0xe7)](formatCommitsForPrompt),_0xc97492=('\x0aYou\x20are'+_0xe3c477(0x93)+'ing\x20cont'+'ent\x20for\x20'+_0xe3c477(0x77)+_0xe3c477(0x83)+_0xe3c477(0x79)+'ased\x20on\x20'+_0xe3c477(0x8c)+_0xe3c477(0xc0)+_0xe3c477(0xa0)+'reate:\x0a-'+_0xe3c477(0xd2)+'se\x20PR\x20ti'+_0xe3c477(0xa8)+_0xe3c477(0xcf)+_0xe3c477(0xd3)+_0xe3c477(0xc1)+'A\x20clear\x20'+_0xe3c477(0xe2)+_0xe3c477(0x92)+_0xe3c477(0xa6)+'h\x20sectio'+'ns:\x20Summ'+_0xe3c477(0x98)+_0xe3c477(0x7f)+_0xe3c477(0x89)+_0xe3c477(0x9e)+_0xe3c477(0x8d)+_0xe3c477(0x72)+_0xe3c477(0xa2)+'TLE:\x20<ti'+_0xe3c477(0x9f)+_0xe3c477(0x91)+':\x0a<markd'+'own>\x0a\x0aBr'+_0xe3c477(0xcc)+_0xe3c477(0x75)+_0x4476f8+'\x0a')[_0xe3c477(0x7e)](),_0x53e31d=await _0x5d4cec[_0xe3c477(0xd5)](withProgress,_0x5d4cec[_0xe3c477(0x7b)],()=>_0x2b1ef0['invoke'](_0xc97492)),_0x101398=extractMessageText(_0x53e31d[_0xe3c477(0xdf)]);!_0x101398&&_0x5d4cec[_0xe3c477(0xe4)](failAndExit,_0x5d4cec[_0xe3c477(0x97)]);const _0x4f5b98=_0x5d4cec[_0xe3c477(0x81)](parsePrSuggestion,_0x101398);_0x5d4cec[_0xe3c477(0xca)](section,_0x5d4cec[_0xe3c477(0xb1)]),_0x5d4cec[_0xe3c477(0xc3)](printKeyValues,[{'key':'Title','value':_0x4f5b98[_0xe3c477(0x95)]}]),section(_0x5d4cec[_0xe3c477(0xe3)]),console['log'](_0x4f5b98[_0xe3c477(0xce)+_0xe3c477(0x99)]),console[_0xe3c477(0xb5)]();}
1
+ (function(_0x590a83,_0x362585){const _0x4c20ec=_0x7eb4,_0x1f6bdd=_0x590a83();while(!![]){try{const _0x1c5e19=parseInt(_0x4c20ec(0x218))/0x1+parseInt(_0x4c20ec(0x1c2))/0x2*(-parseInt(_0x4c20ec(0x1e0))/0x3)+-parseInt(_0x4c20ec(0x1e3))/0x4*(parseInt(_0x4c20ec(0x1f1))/0x5)+parseInt(_0x4c20ec(0x1c8))/0x6*(-parseInt(_0x4c20ec(0x1bc))/0x7)+-parseInt(_0x4c20ec(0x203))/0x8*(parseInt(_0x4c20ec(0x21b))/0x9)+-parseInt(_0x4c20ec(0x1f0))/0xa+parseInt(_0x4c20ec(0x205))/0xb;if(_0x1c5e19===_0x362585)break;else _0x1f6bdd['push'](_0x1f6bdd['shift']());}catch(_0x10ec57){_0x1f6bdd['push'](_0x1f6bdd['shift']());}}}(_0x12e1,0xb3841));const _0x159a9a=(function(){let _0x16692f=!![];return function(_0x54fdab,_0x50cb90){const _0x80793=_0x16692f?function(){const _0x388228=_0x7eb4;if(_0x50cb90){const _0x272d3b=_0x50cb90[_0x388228(0x214)](_0x54fdab,arguments);return _0x50cb90=null,_0x272d3b;}}:function(){};return _0x16692f=![],_0x80793;};}()),_0x2e3594=_0x159a9a(this,function(){const _0x1ced2b=_0x7eb4,_0x3a11a0={'ugpfk':_0x1ced2b(0x1e5)+_0x1ced2b(0x1dd)};return _0x2e3594[_0x1ced2b(0x21e)]()['search'](_0x3a11a0['ugpfk'])['toString']()[_0x1ced2b(0x215)+'tor'](_0x2e3594)[_0x1ced2b(0x1f6)](_0x3a11a0[_0x1ced2b(0x1b3)]);});function _0x12e1(){const _0x15228d=['PR\x20DESCR','ugpfk','iles','find','OuRPx','APFYT','invoke','a\x20GitHub','the\x20bran','split','14seEOIC','ary,\x20Cha','ased\x20on\x20','join','ts\x20found','changedF','3744RixlKp','reate:\x0a-','files:','slice','Diff\x20sta','CRIPTION','2815980dHnAtt','o\x20genera','UcAXM','ntent.','actly\x20in','\x20Pull\x20Re','Commits:','\x20this\x20fo','Current\x20','\x20and\x20des','AxioW','ent\x20bran','eturn\x20ex','diffStat','AI\x20respo','log','not\x20incl','title','baseRef','Zibrn','h\x20sectio','+)+$','ase','\x20descrip','1620QreNAt','o\x20parse\x20','eLFHT','4ZVwmty','subject','(((.+)+)','EsiUN','XxhOo','IGrXd','Base\x20bra','IPTION','...','dwFxe','hars)\x0a-\x20','ion:','ugNWd','3319730qydGlO','2785105idwlNH','oJJYo','branch:\x20','toLowerC','startsWi','search','PR\x20title','\x20generat','below,\x20c','tion\x20wit','A\x20clear\x20','d\x20PR\x20tit','own>\x0a\x0aBr','message','content','feill','Title','descript','8Kxseue','PR\x20sugge','31401755JrsfkC','indexOf','No\x20commi','max\x2072\x20c','fMEBg','findInde','VxzSV','(none)','ImSPy','rmat:\x0aTI','niRso','ns:\x20Summ','sting\x0a\x0aR','ch\x20data\x20','tle\x20in\x20E','apply','construc','aOkIr','\x20on\x20curr','800643kdBDVK',':\x0a<markd','PR\x20TITLE','733653csxhNJ','se\x20PR\x20ti','AI\x20is\x20pr','toString','bRvVK','NfebL','trim','ion','cription','om\x20AI\x20re','length','nglish\x20(','pqzBa','ent\x20for\x20','te\x20PR\x20co','iIMrZ','Changed\x20','\x20|\x20','ing\x20cont','body','ch\x20again','FDOFf','commits','st\x20'];_0x12e1=function(){return _0x15228d;};return _0x12e1();}_0x2e3594();import{createLLM,extractMessageText}from'../llm.js';function _0x7eb4(_0x207866,_0x1f6514){_0x207866=_0x207866-0x1b0;const _0x5f0482=_0x12e1();let _0x2e3594=_0x5f0482[_0x207866];return _0x2e3594;}import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function getLLM(){const _0x208873=_0x7eb4,_0x84776f={'XxhOo':function(_0x493695){return _0x493695();},'Tpdhh':function(_0x34e1e5,_0x32e87d){return _0x34e1e5 instanceof _0x32e87d;},'eLFHT':function(_0x43c6ab,_0x428269){return _0x43c6ab(_0x428269);}};try{return _0x84776f[_0x208873(0x1e7)](createLLM);}catch(_0x2a5af8){const _0x51832c=_0x84776f['Tpdhh'](_0x2a5af8,Error)?_0x2a5af8[_0x208873(0x1fe)]:_0x84776f[_0x208873(0x1e2)](String,_0x2a5af8);_0x84776f['eLFHT'](failAndExit,_0x51832c);}}function formatCommitsForPrompt(){const _0x5e0a04=_0x7eb4,_0x2f718b={'OuRPx':function(_0x2ad290){return _0x2ad290();},'niRso':function(_0x3dd0d8,_0x6ba172){return _0x3dd0d8(_0x6ba172);},'UcAXM':_0x5e0a04(0x1ce),'AxioW':_0x5e0a04(0x22b)+_0x5e0a04(0x1c4),'ugNWd':_0x5e0a04(0x1c6)+'t:','dwFxe':_0x5e0a04(0x20c)},_0x396493=_0x2f718b[_0x5e0a04(0x1b6)](getBranchContext);_0x396493[_0x5e0a04(0x1b0)][_0x5e0a04(0x225)]===0x0&&_0x2f718b[_0x5e0a04(0x20f)](failAndExit,_0x5e0a04(0x207)+_0x5e0a04(0x1c0)+_0x5e0a04(0x217)+_0x5e0a04(0x1d3)+_0x5e0a04(0x22f)+_0x5e0a04(0x1b1)+_0x396493[_0x5e0a04(0x1da)]+'.');const _0x32c8ba=_0x396493[_0x5e0a04(0x1b0)]['map'](_0xe73c=>{const _0x3ba718=_0x5e0a04,_0x3dae2f=_0xe73c['body']?'\x20|\x20body:'+'\x20'+_0xe73c[_0x3ba718(0x22e)]['replace'](/\s+/g,'\x20')[_0x3ba718(0x221)]():'';return'-\x20'+_0xe73c['hash'][_0x3ba718(0x1c5)](0x0,0x7)+_0x3ba718(0x22c)+_0xe73c[_0x3ba718(0x1e4)]+_0x3dae2f;});return[_0x5e0a04(0x1d0)+_0x5e0a04(0x1f3)+_0x2f718b[_0x5e0a04(0x1b6)](getCurrentBranch),_0x5e0a04(0x1e9)+'nch:\x20'+_0x396493[_0x5e0a04(0x1da)],'',_0x2f718b[_0x5e0a04(0x1ca)],..._0x32c8ba,'',_0x2f718b[_0x5e0a04(0x1d2)],_0x396493[_0x5e0a04(0x1c1)+_0x5e0a04(0x1b4)]||'(none)','',_0x2f718b[_0x5e0a04(0x1ef)],_0x396493[_0x5e0a04(0x1d5)]||_0x2f718b[_0x5e0a04(0x1ec)]]['join']('\x0a');}function parsePrSuggestion(_0x376c77){const _0x5d5869=_0x7eb4,_0x200d77={'feill':function(_0x5ba8d3,_0x4bd0b2){return _0x5ba8d3(_0x4bd0b2);},'iIMrZ':function(_0x57249f,_0x104917){return _0x57249f(_0x104917);},'EsiUN':function(_0x400213,_0x1a048d){return _0x400213<_0x1a048d;},'ImSPy':function(_0x460db3,_0x93798a){return _0x460db3(_0x93798a);},'pqzBa':'Failed\x20t'+_0x5d5869(0x1e1)+_0x5d5869(0x204)+'stion\x20fr'+_0x5d5869(0x224)+'sponse.','LFsRa':function(_0x352f6c,_0x550db0){return _0x352f6c+_0x550db0;},'Xlenf':function(_0x590df7,_0x30dd80){return _0x590df7+_0x30dd80;},'ObHOn':function(_0x21f8fd,_0x30dc66){return _0x21f8fd===_0x30dc66;},'NfebL':_0x5d5869(0x1db),'APFYT':function(_0x5d6156,_0x234c12){return _0x5d6156(_0x234c12);}},_0x41345e=_0x376c77[_0x5d5869(0x1bb)](/\r?\n/),_0x3db7b5=_0x41345e[_0x5d5869(0x1b5)](_0x566094=>_0x566094[_0x5d5869(0x1f4)+_0x5d5869(0x1de)]()[_0x5d5869(0x1f5)+'th']('title:')),_0x51f6f3=_0x41345e[_0x5d5869(0x20a)+'x'](_0x230434=>_0x230434[_0x5d5869(0x1f4)+_0x5d5869(0x1de)]()[_0x5d5869(0x1f5)+'th'](_0x5d5869(0x202)+_0x5d5869(0x1ee)));(!_0x3db7b5||_0x200d77[_0x5d5869(0x1e6)](_0x51f6f3,0x0))&&_0x200d77[_0x5d5869(0x20d)](failAndExit,_0x200d77[_0x5d5869(0x227)]);const _0x373fd5=_0x3db7b5[_0x5d5869(0x1c5)](_0x200d77['LFsRa'](_0x3db7b5[_0x5d5869(0x206)](':'),0x1))[_0x5d5869(0x221)](),_0x25a092=_0x41345e[_0x5d5869(0x1c5)](_0x200d77['Xlenf'](_0x51f6f3,0x1))[_0x5d5869(0x1bf)]('\x0a')[_0x5d5869(0x221)]();if(!_0x373fd5||!_0x25a092){if(_0x200d77['ObHOn'](_0x200d77[_0x5d5869(0x220)],_0x200d77[_0x5d5869(0x220)]))_0x200d77[_0x5d5869(0x1b7)](failAndExit,_0x5d5869(0x1d6)+'nse\x20did\x20'+_0x5d5869(0x1d8)+'ude\x20vali'+_0x5d5869(0x1fc)+'le/descr'+'iption.');else{const _0x2d3a40=_0x5ae82c instanceof _0x5d7b8d?_0x19ba71[_0x5d5869(0x1fe)]:xtqiEb[_0x5d5869(0x200)](_0x442613,_0x27d08c);xtqiEb[_0x5d5869(0x22a)](_0x45ef75,_0x2d3a40);}}return{'title':_0x373fd5,'description':_0x25a092};}export async function generatePullRequestText(){const _0xd1fe2=_0x7eb4,_0x49a3f6={'fMEBg':function(_0x27cf42){return _0x27cf42();},'VxzSV':function(_0x5e5693){return _0x5e5693();},'IGrXd':function(_0x149ed9,_0x268ea1,_0x4e165e){return _0x149ed9(_0x268ea1,_0x4e165e);},'bRvVK':function(_0x4c1f9b,_0x10447e){return _0x4c1f9b(_0x10447e);},'aOkIr':'Failed\x20t'+_0xd1fe2(0x1c9)+_0xd1fe2(0x229)+_0xd1fe2(0x1cb),'FDOFf':_0xd1fe2(0x21a),'SFqrr':_0xd1fe2(0x201),'oJJYo':_0xd1fe2(0x1b2)+_0xd1fe2(0x1ea)};_0x49a3f6[_0xd1fe2(0x209)](getGitStatus);const _0x19d310=_0x49a3f6[_0xd1fe2(0x20b)](getLLM),_0x4fbbeb=_0x49a3f6[_0xd1fe2(0x20b)](formatCommitsForPrompt),_0x1bdb6f=('\x0aYou\x20are'+_0xd1fe2(0x1f8)+_0xd1fe2(0x22d)+_0xd1fe2(0x228)+_0xd1fe2(0x1b9)+_0xd1fe2(0x1cd)+'quest.\x0aB'+_0xd1fe2(0x1be)+_0xd1fe2(0x1ba)+_0xd1fe2(0x212)+_0xd1fe2(0x1f9)+_0xd1fe2(0x1c3)+'\x20A\x20conci'+_0xd1fe2(0x21c)+_0xd1fe2(0x213)+_0xd1fe2(0x226)+_0xd1fe2(0x208)+_0xd1fe2(0x1ed)+_0xd1fe2(0x1fb)+'markdown'+_0xd1fe2(0x1df)+_0xd1fe2(0x1fa)+_0xd1fe2(0x1dc)+_0xd1fe2(0x210)+_0xd1fe2(0x1bd)+'nges,\x20Te'+_0xd1fe2(0x211)+_0xd1fe2(0x1d4)+_0xd1fe2(0x1cc)+_0xd1fe2(0x1cf)+_0xd1fe2(0x20e)+'TLE:\x20<ti'+'tle>\x0aDES'+_0xd1fe2(0x1c7)+_0xd1fe2(0x219)+_0xd1fe2(0x1fd)+'anch\x20dat'+'a:\x0a'+_0x4fbbeb+'\x0a')[_0xd1fe2(0x221)](),_0x5b21ff=await _0x49a3f6[_0xd1fe2(0x1e8)](withProgress,_0xd1fe2(0x21d)+'eparing\x20'+_0xd1fe2(0x1f7)+_0xd1fe2(0x1d1)+_0xd1fe2(0x223)+_0xd1fe2(0x1eb),()=>_0x19d310[_0xd1fe2(0x1b8)](_0x1bdb6f)),_0x117a19=_0x49a3f6[_0xd1fe2(0x21f)](extractMessageText,_0x5b21ff[_0xd1fe2(0x1ff)]);!_0x117a19&&failAndExit(_0x49a3f6[_0xd1fe2(0x216)]);const _0x156ec1=_0x49a3f6['bRvVK'](parsePrSuggestion,_0x117a19);_0x49a3f6['bRvVK'](section,_0x49a3f6[_0xd1fe2(0x230)]),_0x49a3f6['bRvVK'](printKeyValues,[{'key':_0x49a3f6['SFqrr'],'value':_0x156ec1[_0xd1fe2(0x1d9)]}]),_0x49a3f6[_0xd1fe2(0x21f)](section,_0x49a3f6[_0xd1fe2(0x1f2)]),console[_0xd1fe2(0x1d7)](_0x156ec1[_0xd1fe2(0x202)+_0xd1fe2(0x222)]),console['log']();}
@@ -1 +1 @@
1
- (function(_0x4aaf96,_0x26b4ba){const _0x1b8260=_0x40a8,_0x528063=_0x4aaf96();while(!![]){try{const _0x49ad17=-parseInt(_0x1b8260(0x1cf))/0x1+parseInt(_0x1b8260(0x1b0))/0x2+parseInt(_0x1b8260(0x1b4))/0x3*(parseInt(_0x1b8260(0x1d1))/0x4)+parseInt(_0x1b8260(0x1d6))/0x5+-parseInt(_0x1b8260(0x1c7))/0x6*(-parseInt(_0x1b8260(0x1be))/0x7)+parseInt(_0x1b8260(0x1c6))/0x8+-parseInt(_0x1b8260(0x1c9))/0x9;if(_0x49ad17===_0x26b4ba)break;else _0x528063['push'](_0x528063['shift']());}catch(_0x2d3c63){_0x528063['push'](_0x528063['shift']());}}}(_0x2162,0x97f03));const _0x4fbcfa=(function(){let _0x599424=!![];return function(_0x2685eb,_0x43efad){const _0x369602=_0x599424?function(){const _0x16fa4e=_0x40a8;if(_0x43efad){const _0x182571=_0x43efad[_0x16fa4e(0x1c0)](_0x2685eb,arguments);return _0x43efad=null,_0x182571;}}:function(){};return _0x599424=![],_0x369602;};}()),_0x446bbf=_0x4fbcfa(this,function(){const _0x56ed30=_0x40a8,_0x35d22b={'qgqsV':_0x56ed30(0x1b7)+_0x56ed30(0x1b8)};return _0x446bbf[_0x56ed30(0x1cc)]()[_0x56ed30(0x1d5)](_0x35d22b[_0x56ed30(0x1c2)])['toString']()['construc'+'tor'](_0x446bbf)[_0x56ed30(0x1d5)](_0x35d22b['qgqsV']);});function _0x2162(){const _0xea6f4f=['rmBLU','.env','444467sffCSq','fAJRU','10876gGnBHQ','WfRYV','huYFu','pEkwG','search','716885VucWNu','SxyHZ','QDPrf','XyLbr','MwXcR','cJSiD','platform','abhDr','788798CJVfyW','ntAZV','RtkOX','tMBZr','1203gsCQZE','utf8','HrrmS','(((.+)+)','+)+$','flHLg','rmxwm','.config','cVWTu','Applicat','21OwlYTh','fEfCI','apply','ort','qgqsV','gemit','ion\x20Supp','win32','6082168lXrbCG','1733178YaBhMl','Library','19693341iSwDUy','RuqqY','cRfDn','toString'];_0x2162=function(){return _0xea6f4f;};return _0x2162();}_0x446bbf();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';function _0x40a8(_0x2c0c6f,_0xeb8be7){_0x2c0c6f=_0x2c0c6f-0x1a9;const _0x141e56=_0x2162();let _0x446bbf=_0x141e56[_0x2c0c6f];return _0x446bbf;}import{parse as _0x459cec}from'dotenv';function getBaseConfigDir(){const _0xc4e761=_0x40a8,_0x22217a={'PqyXU':function(_0x251ec0,_0x3d770a,_0x621134){return _0x251ec0(_0x3d770a,_0x621134);},'rmBLU':_0xc4e761(0x1ce),'pEkwG':function(_0x4688f8,_0x150026,_0xcccfd){return _0x4688f8(_0x150026,_0xcccfd);},'ntAZV':function(_0x5eb460){return _0x5eb460();},'abhDr':'.gemit','RvsxP':function(_0x3ca419,_0xbe30ba){return _0x3ca419===_0xbe30ba;},'XDeta':'darwin','cJSiD':_0xc4e761(0x1a9),'WfRYV':function(_0x32a2c4,_0x3ae3f4,_0x23767a,_0x3d7042){return _0x32a2c4(_0x3ae3f4,_0x23767a,_0x3d7042);},'RtkOX':function(_0x35736b){return _0x35736b();},'fEfCI':_0xc4e761(0x1c8),'rmxwm':_0xc4e761(0x1bd)+_0xc4e761(0x1c4)+_0xc4e761(0x1c1),'DdEnf':function(_0x9441ff,_0x5887c9,_0x577231){return _0x9441ff(_0x5887c9,_0x577231);},'RVeCk':function(_0x47d4a8){return _0x47d4a8();},'cVWTu':_0xc4e761(0x1bb)};if(process[_0xc4e761(0x1ae)]===_0xc4e761(0x1c5))return process.env.APPDATA||_0x22217a[_0xc4e761(0x1d4)](join,_0x22217a[_0xc4e761(0x1b1)](homedir),_0x22217a[_0xc4e761(0x1af)]);if(_0x22217a['RvsxP'](process[_0xc4e761(0x1ae)],_0x22217a['XDeta'])){if(_0x22217a['cJSiD']===_0x22217a[_0xc4e761(0x1ad)])return _0x22217a[_0xc4e761(0x1d2)](join,_0x22217a[_0xc4e761(0x1b2)](homedir),_0x22217a[_0xc4e761(0x1bf)],_0x22217a[_0xc4e761(0x1ba)]);else _0x22217a['PqyXU'](_0xd1987b,_0x22217a[_0xc4e761(0x1cd)],!![]);}return process.env.XDG_CONFIG_HOME||_0x22217a['DdEnf'](join,_0x22217a['RVeCk'](homedir),_0x22217a[_0xc4e761(0x1bc)]);}export function getGlobalEnvPath(){const _0x367c91=_0x40a8,_0x320f45={'cRfDn':_0x367c91(0x1c5),'MwXcR':function(_0x47612d,_0x2d793c,_0x1dd00d,_0x4424cf){return _0x47612d(_0x2d793c,_0x1dd00d,_0x4424cf);},'flHLg':_0x367c91(0x1ce),'tMBZr':function(_0x401517){return _0x401517();},'RuqqY':_0x367c91(0x1c3)};if(process[_0x367c91(0x1ae)]===_0x320f45[_0x367c91(0x1cb)]&&process.env.APPDATA)return _0x320f45[_0x367c91(0x1ac)](join,process.env.APPDATA,_0x367c91(0x1c3),_0x320f45['flHLg']);return join(_0x320f45[_0x367c91(0x1b3)](getBaseConfigDir),_0x320f45[_0x367c91(0x1ca)],_0x320f45[_0x367c91(0x1b9)]);}export function loadConfig(){const _0x474ddc=_0x40a8,_0x2487fa={'huYFu':function(_0x4b71fa,_0x3a8589,_0x5eddf7){return _0x4b71fa(_0x3a8589,_0x5eddf7);},'fAJRU':function(_0x343c9b,_0x10dc4c){return _0x343c9b(_0x10dc4c);}},_0x31a724=getGlobalEnvPath();_0x2487fa[_0x474ddc(0x1d3)](loadEnvFile,_0x31a724,![]),_0x2487fa[_0x474ddc(0x1d0)](existsSync,'.env')&&_0x2487fa['huYFu'](loadEnvFile,'.env',!![]);}function loadEnvFile(_0x2ed8c6,_0x16b8fc){const _0x1e2842=_0x40a8,_0x5e6aef={'HrrmS':function(_0x38f52b,_0x472ca1){return _0x38f52b(_0x472ca1);},'XyLbr':function(_0x453da4,_0x12651f,_0x5be13d){return _0x453da4(_0x12651f,_0x5be13d);},'QDPrf':function(_0x341336,_0x20c65b){return _0x341336===_0x20c65b;}};if(!_0x5e6aef[_0x1e2842(0x1b6)](existsSync,_0x2ed8c6))return;const _0x3f080c=_0x5e6aef['HrrmS'](_0x459cec,_0x5e6aef[_0x1e2842(0x1ab)](readFileSync,_0x2ed8c6,_0x1e2842(0x1b5)));for(const [_0xbb541,_0x793ab6]of Object['entries'](_0x3f080c)){(_0x16b8fc||_0x5e6aef[_0x1e2842(0x1aa)](process.env[_0xbb541],undefined))&&(process.env[_0xbb541]=_0x793ab6);}}
1
+ (function(_0x53c462,_0x2e7217){const _0x2832b7=_0x4ee0,_0xbd32c0=_0x53c462();while(!![]){try{const _0x200160=parseInt(_0x2832b7(0x1aa))/0x1+-parseInt(_0x2832b7(0x1b0))/0x2+-parseInt(_0x2832b7(0x19c))/0x3+-parseInt(_0x2832b7(0x1a1))/0x4+-parseInt(_0x2832b7(0x1a8))/0x5*(-parseInt(_0x2832b7(0x1c2))/0x6)+parseInt(_0x2832b7(0x1b2))/0x7+-parseInt(_0x2832b7(0x1b8))/0x8*(parseInt(_0x2832b7(0x1a2))/0x9);if(_0x200160===_0x2e7217)break;else _0xbd32c0['push'](_0xbd32c0['shift']());}catch(_0x35d89f){_0xbd32c0['push'](_0xbd32c0['shift']());}}}(_0x3648,0x68c59));function _0x3648(){const _0xbd015a=['bGsCW','.gemit','uGroG','yzBna','717288gakRTf','279DLSsEy','entries','win32','ClIez','gngsk','dqOTN','144285yLiRYm','FNRfj','366066nJeQMi','SyrAU','nPzLT','ion\x20Supp','JZZxV','utf8','121722rGxGJs','.env','2017379OOVmwN','gemit','AArQI','qsyde','vrVfu','tor','5392ZaNQip','eXrKi','akUfo','construc','dCwth','pKRMg','INoPm','mtPVN','WBwhi','gQLiZ','126tPLbDL','.config','QaFvy','ort','(((.+)+)','IVqvP','UwMHA','HGlEm','cgglQ','platform','+)+$','toString','hMkiE','darwin','Applicat','1710114SmEYYJ'];_0x3648=function(){return _0xbd015a;};return _0x3648();}const _0x42e671=(function(){const _0x47eaa3=_0x4ee0,_0x14befc={'nydLU':_0x47eaa3(0x1b3),'qXsIx':_0x47eaa3(0x1b1),'FNRfj':function(_0x35b754,_0x38f2f9){return _0x35b754!==_0x38f2f9;}};let _0x306a59=!![];return function(_0x53acd0,_0x2de5b6){const _0x2737c7={'bGsCW':function(_0x402e24,_0x5c0b75,_0xd473f2,_0x14d02a){return _0x402e24(_0x5c0b75,_0xd473f2,_0x14d02a);},'HGlEm':_0x14befc['nydLU'],'lAdRQ':_0x14befc['qXsIx'],'uGroG':function(_0x40a179,_0x14e056){const _0x3415b5=_0x4ee0;return _0x14befc[_0x3415b5(0x1a9)](_0x40a179,_0x14e056);},'dCwth':'Jnque'},_0x56820f=_0x306a59?function(){const _0x12c79b=_0x4ee0,_0x21141c={'hMkiE':function(_0x2b3327,_0x23296c,_0x3df140,_0x3b234e){const _0x6153f0=_0x4ee0;return _0x2737c7[_0x6153f0(0x19d)](_0x2b3327,_0x23296c,_0x3df140,_0x3b234e);},'nPzLT':_0x2737c7[_0x12c79b(0x194)],'ClIez':_0x2737c7['lAdRQ']};if(_0x2737c7[_0x12c79b(0x19f)](_0x2737c7[_0x12c79b(0x1bc)],_0x2737c7[_0x12c79b(0x1bc)]))return _0x21141c[_0x12c79b(0x199)](_0x4cfbdd,_0x237ad2.env.APPDATA,_0x21141c[_0x12c79b(0x1ac)],_0x21141c[_0x12c79b(0x1a5)]);else{if(_0x2de5b6){const _0x2f6ef7=_0x2de5b6['apply'](_0x53acd0,arguments);return _0x2de5b6=null,_0x2f6ef7;}}}:function(){};return _0x306a59=![],_0x56820f;};}()),_0x487fb0=_0x42e671(this,function(){const _0x761d8c=_0x4ee0,_0x29d00a={'cgglQ':_0x761d8c(0x191)+_0x761d8c(0x197)};return _0x487fb0[_0x761d8c(0x198)]()['search'](_0x29d00a[_0x761d8c(0x195)])[_0x761d8c(0x198)]()[_0x761d8c(0x1bb)+_0x761d8c(0x1b7)](_0x487fb0)['search']('(((.+)+)'+_0x761d8c(0x197));});_0x487fb0();import{existsSync,readFileSync}from'fs';import{homedir}from'os';import{join}from'path';import{parse as _0x5e2904}from'dotenv';function getBaseConfigDir(){const _0x34d1ab=_0x4ee0,_0x4ad7fd={'INoPm':function(_0x42f68f,_0x3d1267){return _0x42f68f===_0x3d1267;},'eXrKi':'win32','AArQI':'.env','akUfo':function(_0x1de0ce){return _0x1de0ce();},'JZZxV':function(_0x1c838c,_0x1a1b59,_0x153641){return _0x1c838c(_0x1a1b59,_0x153641);},'dqOTN':_0x34d1ab(0x19e),'gQLiZ':'qEqWg','qsyde':function(_0x4175d3){return _0x4175d3();},'mtPVN':_0x34d1ab(0x19b)+_0x34d1ab(0x1ad)+_0x34d1ab(0x190),'qVdqx':function(_0x33e603){return _0x33e603();},'pKRMg':_0x34d1ab(0x1c3)};if(_0x4ad7fd['INoPm'](process[_0x34d1ab(0x196)],_0x34d1ab(0x1a4)))return process.env.APPDATA||_0x4ad7fd[_0x34d1ab(0x1ae)](join,homedir(),_0x4ad7fd[_0x34d1ab(0x1a7)]);if(_0x4ad7fd[_0x34d1ab(0x1be)](process[_0x34d1ab(0x196)],_0x34d1ab(0x19a))){if(_0x4ad7fd[_0x34d1ab(0x1be)](_0x4ad7fd['gQLiZ'],_0x4ad7fd[_0x34d1ab(0x1c1)]))return join(_0x4ad7fd[_0x34d1ab(0x1b5)](homedir),'Library',_0x4ad7fd[_0x34d1ab(0x1bf)]);else{if(_0x4ad7fd[_0x34d1ab(0x1be)](_0x36e611[_0x34d1ab(0x196)],_0x4ad7fd[_0x34d1ab(0x1b9)])&&_0x34e5a0.env.APPDATA)return _0x10706d(_0x12d336.env.APPDATA,_0x34d1ab(0x1b3),_0x4ad7fd['AArQI']);return _0x421f70(_0x4ad7fd[_0x34d1ab(0x1ba)](_0x3c5279),_0x34d1ab(0x1b3),_0x4ad7fd[_0x34d1ab(0x1b4)]);}}return process.env.XDG_CONFIG_HOME||join(_0x4ad7fd['qVdqx'](homedir),_0x4ad7fd[_0x34d1ab(0x1bd)]);}export function getGlobalEnvPath(){const _0x56456a=_0x4ee0,_0x42d9ad={'fsEQX':function(_0x1badf4,_0x55f6e8){return _0x1badf4===_0x55f6e8;},'gngsk':_0x56456a(0x1a4),'yzBna':function(_0xe68010,_0x154b63,_0x2d0917,_0x5d3e70){return _0xe68010(_0x154b63,_0x2d0917,_0x5d3e70);},'SyrAU':_0x56456a(0x1b3),'vrVfu':'.env','WBwhi':function(_0x534609){return _0x534609();}};if(_0x42d9ad['fsEQX'](process[_0x56456a(0x196)],_0x42d9ad[_0x56456a(0x1a6)])&&process.env.APPDATA)return _0x42d9ad[_0x56456a(0x1a0)](join,process.env.APPDATA,_0x42d9ad[_0x56456a(0x1ab)],_0x42d9ad[_0x56456a(0x1b6)]);return _0x42d9ad[_0x56456a(0x1a0)](join,_0x42d9ad[_0x56456a(0x1c0)](getBaseConfigDir),_0x42d9ad['SyrAU'],_0x42d9ad[_0x56456a(0x1b6)]);}export function loadConfig(){const _0x3d48bc=_0x4ee0,_0x5c8693={'IVqvP':function(_0x3f31af){return _0x3f31af();},'QaFvy':function(_0x2a43f6,_0x2e88aa,_0x642349){return _0x2a43f6(_0x2e88aa,_0x642349);},'fpEEj':function(_0x3f34d6,_0x1b5586){return _0x3f34d6(_0x1b5586);},'YjfBt':_0x3d48bc(0x1b1)},_0x638bbd=_0x5c8693[_0x3d48bc(0x192)](getGlobalEnvPath);_0x5c8693[_0x3d48bc(0x18f)](loadEnvFile,_0x638bbd,![]),_0x5c8693['fpEEj'](existsSync,_0x3d48bc(0x1b1))&&loadEnvFile(_0x5c8693['YjfBt'],!![]);}function _0x4ee0(_0x2d7b70,_0x19c702){_0x2d7b70=_0x2d7b70-0x18f;const _0x2a9469=_0x3648();let _0x487fb0=_0x2a9469[_0x2d7b70];return _0x487fb0;}function loadEnvFile(_0xc86beb,_0x44bbab){const _0x3eb86c=_0x4ee0,_0x3d2ab6={'UwMHA':function(_0x5b0ad6,_0x37bd6f){return _0x5b0ad6(_0x37bd6f);},'AcgKo':function(_0x462b05,_0x4ce9b8,_0x140e4f){return _0x462b05(_0x4ce9b8,_0x140e4f);},'fpTSt':_0x3eb86c(0x1af)};if(!_0x3d2ab6[_0x3eb86c(0x193)](existsSync,_0xc86beb))return;const _0x3c26a2=_0x3d2ab6[_0x3eb86c(0x193)](_0x5e2904,_0x3d2ab6['AcgKo'](readFileSync,_0xc86beb,_0x3d2ab6['fpTSt']));for(const [_0x21d515,_0x28c935]of Object[_0x3eb86c(0x1a3)](_0x3c26a2)){(_0x44bbab||process.env[_0x21d515]===undefined)&&(process.env[_0x21d515]=_0x28c935);}}
@@ -1 +1 @@
1
- (function(_0x57965e,_0x467e09){const _0x2a1b5a=_0x2878,_0x4dfc48=_0x57965e();while(!![]){try{const _0x1b2add=-parseInt(_0x2a1b5a(0xff))/0x1+parseInt(_0x2a1b5a(0x127))/0x2+parseInt(_0x2a1b5a(0x136))/0x3+parseInt(_0x2a1b5a(0x10d))/0x4*(parseInt(_0x2a1b5a(0xd9))/0x5)+-parseInt(_0x2a1b5a(0xda))/0x6*(-parseInt(_0x2a1b5a(0xe9))/0x7)+-parseInt(_0x2a1b5a(0xdf))/0x8*(-parseInt(_0x2a1b5a(0x16c))/0x9)+parseInt(_0x2a1b5a(0xe4))/0xa*(-parseInt(_0x2a1b5a(0xea))/0xb);if(_0x1b2add===_0x467e09)break;else _0x4dfc48['push'](_0x4dfc48['shift']());}catch(_0x2e7f6d){_0x4dfc48['push'](_0x4dfc48['shift']());}}}(_0x4736,0x9b5e5));const _0x3b5d9d=(function(){const _0x2487a6=_0x2878,_0x1c7a9c={'DQPxG':function(_0x134284,_0x34f10e,_0xfe4b86,_0x547842){return _0x134284(_0x34f10e,_0xfe4b86,_0x547842);},'CHLbt':_0x2487a6(0xfd),'xqLhd':'pipe','LUevD':function(_0xf958b3,_0x22b211){return _0xf958b3!==_0x22b211;},'fChAz':_0x2487a6(0xd6),'GifkK':_0x2487a6(0x169)};let _0xede1ec=!![];return function(_0xa95bdb,_0x17e5e3){const _0x380e9e=_0xede1ec?function(){const _0x18bb4c=_0x2878,_0x4772cd={'NUTKr':function(_0x43cfb4,_0xd26abc,_0x5cf435,_0x39cc94){const _0x10bc53=_0x2878;return _0x1c7a9c[_0x10bc53(0xdc)](_0x43cfb4,_0xd26abc,_0x5cf435,_0x39cc94);},'CsIzy':_0x1c7a9c['CHLbt'],'OpSLw':_0x18bb4c(0x172)+'se','WZgqH':_0x18bb4c(0x153),'svZJQ':_0x1c7a9c[_0x18bb4c(0x160)]};if(_0x17e5e3){if(_0x1c7a9c[_0x18bb4c(0x175)](_0x1c7a9c[_0x18bb4c(0x130)],_0x1c7a9c[_0x18bb4c(0xf3)])){const _0x469fdf=_0x17e5e3['apply'](_0xa95bdb,arguments);return _0x17e5e3=null,_0x469fdf;}else return _0x4772cd['NUTKr'](_0x2d9829,_0x4772cd['CsIzy'],[_0x4772cd[_0x18bb4c(0x12d)],_0x3694b0,_0x4772cd[_0x18bb4c(0x116)]],{'stdio':_0x4772cd[_0x18bb4c(0xf4)]})[_0x18bb4c(0x138)]()[_0x18bb4c(0xf5)]();}}:function(){};return _0xede1ec=![],_0x380e9e;};}()),_0x5328fc=_0x3b5d9d(this,function(){const _0x1c473b=_0x2878,_0x708f4d={'yJPxn':_0x1c473b(0xf7)+_0x1c473b(0xe7)};return _0x5328fc[_0x1c473b(0x138)]()[_0x1c473b(0x135)](_0x708f4d[_0x1c473b(0x176)])[_0x1c473b(0x138)]()['construc'+_0x1c473b(0x11d)](_0x5328fc)[_0x1c473b(0x135)]('(((.+)+)'+_0x1c473b(0xe7));});_0x5328fc();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x5956fc){const _0x139439=_0x2878,_0x261e2a={'koGKc':function(_0x224922,_0x592724,_0x5366e3,_0x35d832){return _0x224922(_0x592724,_0x5366e3,_0x35d832);},'tTgWy':'pipe'};return _0x261e2a['koGKc'](execFileSync,_0x139439(0xfd),_0x5956fc,{'stdio':_0x261e2a[_0x139439(0x16e)]})[_0x139439(0x138)]();}export function getGitStatus(){const _0x32216a=_0x2878,_0x1315e0={'Zlksp':_0x32216a(0x104)};try{const _0x10ea6d=runGit([_0x1315e0[_0x32216a(0x15a)]]),_0x4a038d=runGit([_0x32216a(0xfb),_0x32216a(0x14b)]);return _0x10ea6d+'\x0a'+_0x4a038d;}catch{failAndExit(_0x32216a(0x11f)+_0x32216a(0xf2)+_0x32216a(0x145));}}export function branchExists(_0x559c30){const _0x112c9a=_0x2878,_0x250d69={'FZpZy':function(_0x2381d7,_0x5329a6,_0x31fcf4){return _0x2381d7(_0x5329a6,_0x31fcf4);},'wNBvX':_0x112c9a(0x110)};try{return _0x250d69['FZpZy'](execSync,'git\x20show'+_0x112c9a(0x162)+_0x112c9a(0x180)+_0x112c9a(0x167)+_0x112c9a(0x10b)+'/'+_0x559c30,{'stdio':_0x250d69[_0x112c9a(0x14f)]}),!![];}catch{return![];}}export function getCurrentBranch(){const _0x5b0549=_0x2878,_0x29ceab={'WHVlV':function(_0xdc023f,_0x54a898,_0x3c2a59){return _0xdc023f(_0x54a898,_0x3c2a59);},'RQGlI':'git\x20bran'+_0x5b0549(0x17c)+_0x5b0549(0x16a)+'t','QeVZo':'Could\x20no'+'t\x20detect'+'\x20current'+'\x20branch.'};try{const _0x57dcea=_0x29ceab[_0x5b0549(0x106)](execSync,_0x29ceab['RQGlI'],{'stdio':'pipe'})[_0x5b0549(0x138)]()[_0x5b0549(0xf5)]();return!_0x57dcea&&failAndExit(_0x29ceab['QeVZo']),_0x57dcea;}catch{failAndExit(_0x29ceab[_0x5b0549(0x101)]);}}export function getUpstreamInfo(){const _0x5e9d4c=_0x2878,_0x540bfc={'VjJmV':function(_0xbf2aba,_0x1b6cd0,_0x81ab7e){return _0xbf2aba(_0x1b6cd0,_0x81ab7e);},'NBIZz':_0x5e9d4c(0x110),'UAnKQ':function(_0x584b07,_0x47d99e){return _0x584b07<=_0x47d99e;},'VvWRC':function(_0x40bdd9,_0xc98707){return _0x40bdd9+_0xc98707;}};try{const _0x3778c0=_0x540bfc[_0x5e9d4c(0x120)](execSync,'git\x20rev-'+'parse\x20--'+_0x5e9d4c(0xfc)+_0x5e9d4c(0x13b)+_0x5e9d4c(0x100)+_0x5e9d4c(0x13e)+_0x5e9d4c(0x13f)+_0x5e9d4c(0x146),{'stdio':_0x540bfc[_0x5e9d4c(0xde)]})[_0x5e9d4c(0x138)]()[_0x5e9d4c(0xf5)](),_0x386d46=_0x3778c0[_0x5e9d4c(0xe6)]('/');if(_0x540bfc[_0x5e9d4c(0x126)](_0x386d46,0x0))return null;return{'fullName':_0x3778c0,'remote':_0x3778c0['slice'](0x0,_0x386d46),'branch':_0x3778c0['slice'](_0x540bfc[_0x5e9d4c(0x170)](_0x386d46,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x1d76f8=_0x2878,_0x37fd0f={'wmjsu':function(_0x5a486f,_0x2a5909,_0x9c5391){return _0x5a486f(_0x2a5909,_0x9c5391);},'eZEjn':'pipe','NNEsB':'origin'};try{const _0x21f8cd=_0x37fd0f[_0x1d76f8(0x147)](execSync,'git\x20remo'+'te',{'stdio':_0x37fd0f[_0x1d76f8(0x14e)]})['toString']()['split'](/\r?\n/)['map'](_0x47706f=>_0x47706f['trim']())[_0x1d76f8(0x122)](Boolean);if(_0x21f8cd['length']===0x0)return null;if(_0x21f8cd[_0x1d76f8(0xee)](_0x37fd0f['NNEsB']))return _0x37fd0f['NNEsB'];return _0x21f8cd[0x0];}catch{return null;}}function resolveBaseRef(){const _0xc9bca7=_0x2878,_0x329634={'eicEh':function(_0x77a7e,_0x3fcb72,_0x4745e6,_0x31a214){return _0x77a7e(_0x3fcb72,_0x4745e6,_0x31a214);},'SPmaM':_0xc9bca7(0xfd),'lWAZw':'rev-pars'+'e','LOZpd':_0xc9bca7(0x110),'EDALP':function(_0x536eb9,_0x26376e,_0x581432){return _0x536eb9(_0x26376e,_0x581432);},'MYuMX':function(_0x37134c,_0x34b8a9){return _0x37134c<=_0x34b8a9;},'QKPsi':function(_0xa4f040,_0x22e1fd){return _0xa4f040!==_0x22e1fd;},'cQlMw':_0xc9bca7(0x121),'YojUJ':_0xc9bca7(0x10e)+'-ref','NVVqi':_0xc9bca7(0x155),'bdoLg':_0xc9bca7(0x17f),'iIOuF':_0xc9bca7(0x168),'tBnnn':_0xc9bca7(0xd8),'wdwHu':'--verify','huDSP':function(_0x2a6345,_0x1e03ae){return _0x2a6345===_0x1e03ae;},'zFUrB':_0xc9bca7(0x154),'idWih':_0xc9bca7(0x16d),'LwRyI':function(_0xd35eb0,_0x1445b7,_0x39e61f,_0x14bc8a){return _0xd35eb0(_0x1445b7,_0x39e61f,_0x14bc8a);},'BCKvQ':_0xc9bca7(0x139)+_0xc9bca7(0xf9)+_0xc9bca7(0x124)+'nch.\x20Set'+_0xc9bca7(0x131)+_0xc9bca7(0x14c)+'r\x20create'+_0xc9bca7(0x123)+'ster.'},_0x5e5ae1=getDefaultRemote();if(_0x5e5ae1){try{if(_0x329634[_0xc9bca7(0x13a)](_0xc9bca7(0x121),_0x329634[_0xc9bca7(0x17d)]))try{return _0x329634[_0xc9bca7(0xe5)](_0x58cb78,_0x329634[_0xc9bca7(0x113)],[_0x329634[_0xc9bca7(0x15d)],_0xc9bca7(0x15c),_0xc9bca7(0x125)+_0xc9bca7(0x157)+_0x246356],{'stdio':_0x329634[_0xc9bca7(0x134)]}),_0x115a5c;}catch{}else{const _0x24e93a=execFileSync(_0x329634[_0xc9bca7(0x113)],[_0x329634['YojUJ'],_0x329634[_0xc9bca7(0x11a)],_0xc9bca7(0x171)+_0xc9bca7(0x14d)+_0x5e5ae1+_0xc9bca7(0xe8)],{'stdio':_0x329634['LOZpd']})[_0xc9bca7(0x138)]()[_0xc9bca7(0xf5)]();if(_0x24e93a)return _0x24e93a;}}catch{}for(const _0x536ba1 of[_0x329634['bdoLg'],_0x329634['iIOuF'],_0x329634[_0xc9bca7(0xf1)]]){try{return execFileSync(_0x329634['SPmaM'],[_0x329634[_0xc9bca7(0x15d)],_0x329634[_0xc9bca7(0x161)],_0xc9bca7(0x171)+'otes/'+_0x5e5ae1+'/'+_0x536ba1],{'stdio':_0xc9bca7(0x110)}),_0x5e5ae1+'/'+_0x536ba1;}catch{}}}for(const _0x244ac4 of[_0x329634[_0xc9bca7(0xe1)],_0xc9bca7(0x168),_0xc9bca7(0xd8)]){try{if(_0x329634[_0xc9bca7(0x148)](_0x329634[_0xc9bca7(0xdd)],_0x329634[_0xc9bca7(0x151)]))try{const _0x30dbc4=tOKADU['EDALP'](_0x1fa236,'git\x20rev-'+_0xc9bca7(0x15f)+'abbrev-r'+'ef\x20--sym'+'bolic-fu'+'ll-name\x20'+_0xc9bca7(0x13f)+_0xc9bca7(0x146),{'stdio':_0xc9bca7(0x110)})[_0xc9bca7(0x138)]()['trim'](),_0x932b12=_0x30dbc4[_0xc9bca7(0xe6)]('/');if(tOKADU[_0xc9bca7(0x10f)](_0x932b12,0x0))return null;return{'fullName':_0x30dbc4,'remote':_0x30dbc4['slice'](0x0,_0x932b12),'branch':_0x30dbc4[_0xc9bca7(0x117)](_0x932b12+0x1)};}catch{return null;}else return _0x329634[_0xc9bca7(0xd4)](execFileSync,_0x329634[_0xc9bca7(0x113)],[_0x329634[_0xc9bca7(0x15d)],'--verify','refs/hea'+_0xc9bca7(0x157)+_0x244ac4],{'stdio':_0x329634[_0xc9bca7(0x134)]}),_0x244ac4;}catch{}}failAndExit(_0x329634[_0xc9bca7(0x140)]);}function getMergeBase(_0x46e412){const _0x334c49=_0x2878,_0x310f0a={'SSLHX':function(_0x480f57,_0x5644ee,_0x5175dd,_0x124b2a){return _0x480f57(_0x5644ee,_0x5175dd,_0x124b2a);},'XveGO':_0x334c49(0xfd),'dtbJR':_0x334c49(0x172)+'se','qhbIz':'pipe'};try{return _0x310f0a[_0x334c49(0x143)](execFileSync,_0x310f0a[_0x334c49(0x118)],[_0x310f0a['dtbJR'],_0x46e412,_0x334c49(0x153)],{'stdio':_0x310f0a[_0x334c49(0x144)]})[_0x334c49(0x138)]()['trim']();}catch{failAndExit('Could\x20no'+'t\x20comput'+_0x334c49(0x163)+_0x334c49(0x12c)+'h\x20'+_0x46e412+'.');}}function _0x2878(_0x13ab31,_0x1a8298){_0x13ab31=_0x13ab31-0xd2;const _0x55fea4=_0x4736();let _0x5328fc=_0x55fea4[_0x13ab31];return _0x5328fc;}function parseCommits(_0x4bf726){const _0x5b0317=_0x2878;return _0x4bf726[_0x5b0317(0x158)]('\x1e')[_0x5b0317(0x164)](_0x3c05d3=>_0x3c05d3['trim']())[_0x5b0317(0x122)](Boolean)[_0x5b0317(0x164)](_0x3c1094=>{const _0x2971b7=_0x5b0317,[_0x798fc5='',_0x21a0ae='',_0x395568='']=_0x3c1094['split']('\x1f');return{'hash':_0x798fc5[_0x2971b7(0xf5)](),'subject':_0x21a0ae[_0x2971b7(0xf5)](),'body':_0x395568[_0x2971b7(0xf5)]()};})[_0x5b0317(0x122)](_0x4d2406=>Boolean(_0x4d2406[_0x5b0317(0x102)])&&Boolean(_0x4d2406[_0x5b0317(0x12f)]));}export function getBranchContext(){const _0x2cf3bc=_0x2878,_0x445f28={'YiMce':function(_0x3bdbf8){return _0x3bdbf8();},'uHgkA':_0x2cf3bc(0xfd),'wlmvq':_0x2cf3bc(0x17b),'QerOf':_0x2cf3bc(0x13c)+'e','QeoKz':'--pretty'+_0x2cf3bc(0xdb)+_0x2cf3bc(0x111)+_0x2cf3bc(0xd2)+'1e','PrNXd':_0x2cf3bc(0x110),'qGMQl':function(_0x1099f8,_0x5130d4,_0x8a49b1,_0x4ef3dd){return _0x1099f8(_0x5130d4,_0x8a49b1,_0x4ef3dd);},'EScQI':_0x2cf3bc(0xfb),'cOymD':_0x2cf3bc(0x14b),'cNVyd':function(_0x3450d2,_0x5cd0f6,_0x1366aa,_0x4a4aa4){return _0x3450d2(_0x5cd0f6,_0x1366aa,_0x4a4aa4);},'yPutw':'--name-s'+_0x2cf3bc(0x129),'qUnyj':function(_0x596cd9,_0x113b7b){return _0x596cd9(_0x113b7b);}},_0x363eef=_0x445f28['YiMce'](resolveBaseRef),_0x24f7a2=getMergeBase(_0x363eef),_0x80e6d5=execFileSync(_0x445f28['uHgkA'],[_0x445f28[_0x2cf3bc(0x12e)],_0x445f28['QerOf'],_0x445f28[_0x2cf3bc(0x149)],_0x24f7a2+_0x2cf3bc(0x17e)],{'stdio':_0x445f28[_0x2cf3bc(0x11c)]})['toString']()[_0x2cf3bc(0xf5)](),_0x2efa5b=_0x445f28[_0x2cf3bc(0x11e)](execFileSync,_0x445f28[_0x2cf3bc(0x133)],[_0x445f28[_0x2cf3bc(0xfe)],_0x445f28['cOymD'],_0x24f7a2+_0x2cf3bc(0x17e)],{'stdio':_0x445f28[_0x2cf3bc(0x11c)]})['toString']()[_0x2cf3bc(0xf5)](),_0x231ce7=_0x445f28[_0x2cf3bc(0xef)](execFileSync,_0x445f28[_0x2cf3bc(0x133)],[_0x445f28[_0x2cf3bc(0xfe)],_0x445f28[_0x2cf3bc(0xd3)],_0x24f7a2+'..HEAD'],{'stdio':_0x2cf3bc(0x110)})['toString']()[_0x2cf3bc(0xf5)]();return{'baseRef':_0x363eef,'mergeBase':_0x24f7a2,'commits':_0x445f28[_0x2cf3bc(0xed)](parseCommits,_0x80e6d5),'diffStat':_0x2efa5b,'changedFiles':_0x231ce7};}export function getCommitHistory(_0x5d2e6b=0x78){const _0x4bcab9=_0x2878,_0x316292={'WuGhp':function(_0x162dc4,_0x1ce72c,_0x41ba45,_0xf4cab7){return _0x162dc4(_0x1ce72c,_0x41ba45,_0xf4cab7);},'qWsbs':_0x4bcab9(0x16f)+_0x4bcab9(0xdb)+_0x4bcab9(0x111)+_0x4bcab9(0xd2)+'1f%ad%x1'+'f%an%x1e','bXdnO':_0x4bcab9(0x11b)+_0x4bcab9(0x179),'PGKzb':_0x4bcab9(0x110),'YnVhP':function(_0x227ac1,_0x3f7054){return _0x227ac1(_0x3f7054);},'WXsVZ':'Could\x20no'+_0x4bcab9(0x150)+_0x4bcab9(0x10a)+_0x4bcab9(0x156)+'y.'};try{const _0x4adbcf=_0x316292[_0x4bcab9(0x105)](execFileSync,'git',[_0x4bcab9(0x17b),'-'+_0x5d2e6b,_0x4bcab9(0x13c)+'e',_0x316292[_0x4bcab9(0xec)],_0x316292['bXdnO']],{'stdio':_0x316292['PGKzb']})['toString']()[_0x4bcab9(0xf5)]();return _0x4adbcf[_0x4bcab9(0x158)]('\x1e')[_0x4bcab9(0x164)](_0x7353f1=>_0x7353f1[_0x4bcab9(0xf5)]())[_0x4bcab9(0x122)](Boolean)['map'](_0x142b15=>{const _0x3b1efc=_0x4bcab9,[_0x191351='',_0x4f6c91='',_0x4ce0a2='',_0x48263e='',_0x137f3c='']=_0x142b15[_0x3b1efc(0x158)]('\x1f');return{'hash':_0x191351[_0x3b1efc(0xf5)](),'subject':_0x4f6c91[_0x3b1efc(0xf5)](),'body':_0x4ce0a2[_0x3b1efc(0xf5)](),'date':_0x48263e[_0x3b1efc(0xf5)](),'author':_0x137f3c[_0x3b1efc(0xf5)]()};})['filter'](_0x3fa49b=>Boolean(_0x3fa49b['hash'])&&Boolean(_0x3fa49b[_0x4bcab9(0x12f)]));}catch{_0x316292[_0x4bcab9(0x119)](failAndExit,_0x316292['WXsVZ']);}}function parseNameStatusLine(_0x12d985){const _0x34a444=_0x2878,_0x560bc4={'khreb':function(_0x2b6f0d,_0x40bce1){return _0x2b6f0d-_0x40bce1;},'Rqgvx':function(_0x3dfffa,_0x22b8e5){return _0x3dfffa||_0x22b8e5;}},_0x31bac4=_0x12d985[_0x34a444(0xf5)]();if(!_0x31bac4)return null;const _0x58c1f8=_0x31bac4[_0x34a444(0x158)](/\s+/);if(_0x58c1f8[_0x34a444(0x165)]<0x2)return null;const _0x23d03d=_0x58c1f8[0x0][_0x34a444(0xf5)](),_0x58d0b8=_0x58c1f8[_0x560bc4[_0x34a444(0xfa)](_0x58c1f8[_0x34a444(0x165)],0x1)][_0x34a444(0xf5)]();if(_0x560bc4[_0x34a444(0x112)](!_0x23d03d,!_0x58d0b8))return null;return{'status':_0x23d03d,'path':_0x58d0b8};}export function stageAll(){const _0x119063=_0x2878,_0x5c2f1c={'MaVtm':function(_0xaf8007,_0x51ee8c){return _0xaf8007(_0x51ee8c);},'jEGzT':'status','DLYLn':_0x119063(0xfb),'bSyUv':_0x119063(0x14b),'LBnFX':function(_0x3bb851,_0xfab62e,_0x177529,_0x3abfdd){return _0x3bb851(_0xfab62e,_0x177529,_0x3abfdd);},'BrxlY':'git','kAUiA':'add','qLfVu':'inherit','MebRK':function(_0x1f9045,_0x1a7d1c){return _0x1f9045!==_0x1a7d1c;},'cOWQp':'eqvWr','uJLzI':'xVSkz','ulQxT':function(_0x36aba2,_0x40c208){return _0x36aba2(_0x40c208);}};try{_0x5c2f1c[_0x119063(0xe0)](execFileSync,_0x5c2f1c[_0x119063(0x152)],[_0x5c2f1c[_0x119063(0x109)],'.'],{'stdio':_0x5c2f1c[_0x119063(0x141)]});}catch{if(_0x5c2f1c[_0x119063(0x137)](_0x5c2f1c[_0x119063(0x15e)],_0x5c2f1c[_0x119063(0x115)]))_0x5c2f1c[_0x119063(0x13d)](failAndExit,_0x119063(0x107)+_0x119063(0x173)+_0x119063(0xeb)+_0x119063(0x132)+_0x119063(0x166));else{const _0x86eeba=fRZNQH[_0x119063(0xe2)](_0xce51c,[fRZNQH[_0x119063(0x177)]]),_0x41321a=fRZNQH[_0x119063(0xe2)](_0x190a42,[fRZNQH[_0x119063(0x159)],fRZNQH[_0x119063(0x128)]]);return _0x86eeba+'\x0a'+_0x41321a;}}}export function getStagedContext(_0x304bcc=0x2710){const _0x1a900a=_0x2878,_0x2b1ecd={'AWSkK':function(_0x4b4fc8,_0x390191){return _0x4b4fc8(_0x390191);},'VaJAH':_0x1a900a(0x139)+'t\x20detect'+_0x1a900a(0xf8)+_0x1a900a(0xf6),'THILO':_0x1a900a(0xfb),'KiTQk':_0x1a900a(0x108),'gAVHm':_0x1a900a(0x142)+'tatus','rLFIN':function(_0x5a5fde,_0x412ecb){return _0x5a5fde(_0x412ecb);},'hsHes':_0x1a900a(0x14b),'wMzqL':'--numsta'+'t','inmPW':function(_0x31b43b,_0x28c509){return _0x31b43b!==_0x28c509;},'WGxBe':_0x1a900a(0xd7),'moRmB':function(_0x1fbab4,_0x40e952){return _0x1fbab4>_0x40e952;}};try{const _0x20d9ef=_0x2b1ecd['AWSkK'](runGit,[_0x2b1ecd['THILO'],_0x2b1ecd[_0x1a900a(0x12b)],_0x2b1ecd[_0x1a900a(0x15b)]]),_0x29d191=_0x2b1ecd[_0x1a900a(0xe3)](runGit,[_0x2b1ecd['THILO'],_0x2b1ecd[_0x1a900a(0x12b)],_0x2b1ecd[_0x1a900a(0xd5)]])[_0x1a900a(0xf5)](),_0x5cf481=_0x2b1ecd[_0x1a900a(0xe3)](runGit,[_0x2b1ecd[_0x1a900a(0x14a)],_0x2b1ecd[_0x1a900a(0x12b)]]),_0x11edfd=_0x2b1ecd[_0x1a900a(0xe3)](runGit,[_0x2b1ecd[_0x1a900a(0x14a)],_0x2b1ecd[_0x1a900a(0x12b)],_0x2b1ecd[_0x1a900a(0x17a)]]),_0x912eca=_0x20d9ef['split'](/\r?\n/)['map'](_0x4d854b=>parseNameStatusLine(_0x4d854b))[_0x1a900a(0x122)](_0x5ad1e4=>Boolean(_0x5ad1e4));let _0x22eff5=0x0,_0x54fc63=0x0;for(const _0x59db17 of _0x11edfd[_0x1a900a(0x158)](/\r?\n/)){if(_0x2b1ecd[_0x1a900a(0x114)](_0x2b1ecd['WGxBe'],_0x2b1ecd[_0x1a900a(0x12a)]))fygggk[_0x1a900a(0xf0)](_0x338b01,fygggk[_0x1a900a(0x16b)]);else{const _0x195c47=_0x59db17['trim']();if(!_0x195c47)continue;const [_0x2d1c6b='0',_0x3e419f='0']=_0x195c47[_0x1a900a(0x158)](/\s+/),_0x1e28d8=Number[_0x1a900a(0x103)](_0x2d1c6b,0xa),_0x52c3c3=Number['parseInt'](_0x3e419f,0xa);_0x22eff5+=Number[_0x1a900a(0x174)](_0x1e28d8)?0x0:_0x1e28d8,_0x54fc63+=Number[_0x1a900a(0x174)](_0x52c3c3)?0x0:_0x52c3c3;}}const _0x207af9=_0x2b1ecd[_0x1a900a(0x178)](_0x5cf481['length'],_0x304bcc),_0x442c07=_0x207af9?_0x5cf481[_0x1a900a(0x117)](0x0,_0x304bcc):_0x5cf481;return{'files':_0x912eca,'diffStat':_0x29d191,'patch':_0x442c07[_0x1a900a(0xf5)](),'metrics':{'fileCount':_0x912eca[_0x1a900a(0x165)],'insertions':_0x22eff5,'deletions':_0x54fc63,'patchChars':_0x5cf481[_0x1a900a(0x165)],'truncated':_0x207af9}};}catch{_0x2b1ecd['rLFIN'](failAndExit,_0x1a900a(0x107)+'o\x20inspec'+'t\x20staged'+_0x1a900a(0x10c)+'.');}}function _0x4736(){const _0x2c72e7=['idWih','BrxlY','HEAD','Ctjqt','--short','t\x20histor','ds/','split','DLYLn','Zlksp','gAVHm','--verify','lWAZw','cOWQp','parse\x20--','xqLhd','wdwHu','-ref\x20--v','e\x20merge-','map','length','dd\x20.','quiet\x20re','master','BreFI','w-curren','VaJAH','4203uahsiV','gesMr','tTgWy','--pretty','VvWRC','refs/rem','merge-ba','o\x20stage\x20','isNaN','LUevD','yJPxn','jEGzT','moRmB','hort','wMzqL','log','ch\x20--sho','cQlMw','..HEAD','main','erify\x20--','%x1f%b%x','yPutw','LwRyI','hsHes','MjQTh','pwyst','develop','5IvGRJQ','6yzHjPj','=format:','DQPxG','zFUrB','NBIZz','18216KTsLax','LBnFX','bdoLg','MaVtm','rLFIN','180630wHnSuA','eicEh','indexOf','+)+$','/HEAD','2133334LfpMBZ','253SglDZv','files\x20wi','qWsbs','qUnyj','includes','cNVyd','AWSkK','tBnnn','t\x20reposi','GifkK','svZJQ','trim','\x20branch.','(((.+)+)','\x20current','t\x20infer\x20','khreb','diff','abbrev-r','git','EScQI','1081799WHjpVz','bolic-fu','QeVZo','hash','parseInt','status','WuGhp','WHVlV','Failed\x20t','--cached','kAUiA','it\x20commi','fs/heads','\x20changes','785704AApdrb','symbolic','MYuMX','pipe','%H%x1f%s','Rqgvx','SPmaM','inmPW','uJLzI','WZgqH','slice','XveGO','YnVhP','NVVqi','--date=s','PrNXd','tor','qGMQl','Not\x20a\x20gi','VjJmV','WTVxD','filter','\x20main/ma','base\x20bra','refs/hea','UAnKQ','839056JaQrGf','bSyUv','tatus','WGxBe','KiTQk','base\x20wit','OpSLw','wlmvq','subject','fChAz','\x20a\x20remot','th\x20git\x20a','uHgkA','LOZpd','search','448686DAwZBj','MebRK','toString','Could\x20no','QKPsi','ef\x20--sym','--revers','ulQxT','ll-name\x20','@{upstre','BCKvQ','qLfVu','--name-s','SSLHX','qhbIz','tory.','am}','wmjsu','huDSP','QeoKz','THILO','--stat','e\x20HEAD\x20o','otes/','eZEjn','wNBvX','t\x20read\x20g'];_0x4736=function(){return _0x2c72e7;};return _0x4736();}
1
+ (function(_0x12fefe,_0x594ee7){const _0x31c2bc=_0x13ab,_0x5e615b=_0x12fefe();while(!![]){try{const _0x36ee0d=-parseInt(_0x31c2bc(0x19d))/0x1+-parseInt(_0x31c2bc(0x1a2))/0x2*(parseInt(_0x31c2bc(0x1c9))/0x3)+parseInt(_0x31c2bc(0x190))/0x4*(-parseInt(_0x31c2bc(0x193))/0x5)+parseInt(_0x31c2bc(0x1e4))/0x6*(parseInt(_0x31c2bc(0x1be))/0x7)+parseInt(_0x31c2bc(0x1e5))/0x8+-parseInt(_0x31c2bc(0x196))/0x9*(parseInt(_0x31c2bc(0x1c3))/0xa)+parseInt(_0x31c2bc(0x157))/0xb;if(_0x36ee0d===_0x594ee7)break;else _0x5e615b['push'](_0x5e615b['shift']());}catch(_0x48adef){_0x5e615b['push'](_0x5e615b['shift']());}}}(_0x4d4e,0x4df2f));const _0x2bae33=(function(){let _0x5e0661=!![];return function(_0x1be80e,_0xb1599c){const _0x458789=_0x5e0661?function(){const _0x1e32da=_0x13ab;if(_0xb1599c){const _0x11fda5=_0xb1599c[_0x1e32da(0x1d0)](_0x1be80e,arguments);return _0xb1599c=null,_0x11fda5;}}:function(){};return _0x5e0661=![],_0x458789;};}()),_0x2e1735=_0x2bae33(this,function(){const _0x3bdda1=_0x13ab,_0xbe5488={'LgyCc':_0x3bdda1(0x158)+'+)+$'};return _0x2e1735[_0x3bdda1(0x151)]()[_0x3bdda1(0x1e6)](_0xbe5488[_0x3bdda1(0x1d5)])[_0x3bdda1(0x151)]()['construc'+_0x3bdda1(0x197)](_0x2e1735)[_0x3bdda1(0x1e6)](_0xbe5488['LgyCc']);});_0x2e1735();function _0x13ab(_0x4bc0f9,_0x395a19){_0x4bc0f9=_0x4bc0f9-0x14e;const _0x2b0ad7=_0x4d4e();let _0x2e1735=_0x2b0ad7[_0x4bc0f9];return _0x2e1735;}import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function runGit(_0x24b5f3){const _0x151613=_0x13ab,_0x213d87={'iVgQG':_0x151613(0x161)};return execFileSync(_0x213d87['iVgQG'],_0x24b5f3,{'stdio':'pipe'})[_0x151613(0x151)]();}function _0x4d4e(){const _0x36ec6f=['OKjlY','cdgWz','-ref','79856OqPoFp','log','o\x20stage\x20','140ThuPEj','KWgVG','rKISM','36GGVVDj','tor','--verify','@{upstre','pipe','\x20current','semqf','631411SHrbjD','Failed\x20t','t\x20read\x20g','\x20branch.','inherit','48XkjRKh','bfqnI','diff','%x1f%b%x','vqRon','git\x20rev-','UHGtx','UVYkk','slice','nch.\x20Set','e\x20merge-','t\x20histor','master','split','BhvCO','tDphb','subject','OaHUS','base\x20bra','files\x20wi','abbrev-r','aSeLr','--stat','\x20changes','add','cWuIq','cLKyF','ch\x20--sho','7hyOOuQ','xiyaE','=format:','--cached','hash','1338080wKwtTS','tatus','sPnpd','QccyV','t\x20detect','sWBgY','59985WvRxpd','dWOyp','Ncxzo','erify\x20--','..HEAD','TEvBW','git\x20show','apply','r\x20create','jOWIX','th\x20git\x20a','beNQy','LgyCc','YPDAO','nXzZL','oOvjT','origin','oenWQ','xotwh','-ref\x20--v','fCnir','ll-name\x20','\x20a\x20remot','OkLGw','WZTnC','--date=s','xszHZ','3018120zNWRts','5069720qAWGBl','search','develop','pqvsx','refs/hea','ef\x20--sym','toString','ds/','RqISS','--pretty','--name-s','yPgdR','15268649likbhU','(((.+)+)','\x20main/ma','avlCK','Not\x20a\x20gi','--revers','otes/','t\x20staged','HEAD','cllcH','git','ceeja','MAVGd','fiRSp','parse\x20--','fs/heads','isNaN','mYZXu','t\x20comput','it\x20commi','Ilkfy','LNcAW','bpdDL','merge-ba','1f%ad%x1','QZZAg','Could\x20no','t\x20infer\x20','iSukD','refs/rem','trim','includes','w-curren','filter','rev-pars','map','git\x20remo','f%an%x1e','LIbhD','--short','parseInt','XHdSy','t\x20reposi','base\x20wit','length','ocTky','lsiXg','symbolic','HReqi','construc','hort','wCQjt','qqCcn','main'];_0x4d4e=function(){return _0x36ec6f;};return _0x4d4e();}export function getGitStatus(){const _0x1c8357=_0x13ab,_0x1be23f={'OKjlY':'status','cWuIq':_0x1c8357(0x1b8),'fCnir':_0x1c8357(0x15b)+_0x1c8357(0x181)+'tory.'};try{const _0x7c9b13=runGit([_0x1be23f[_0x1c8357(0x18d)]]),_0x32d4f4=runGit([_0x1c8357(0x1a4),_0x1be23f[_0x1c8357(0x1bb)]]);return _0x7c9b13+'\x0a'+_0x32d4f4;}catch{failAndExit(_0x1be23f[_0x1c8357(0x1dd)]);}}export function branchExists(_0x25e9d8){const _0x23d8b7=_0x13ab,_0x42a442={'mYZXu':function(_0x598d35,_0x5eecd8,_0x1e4ea7){return _0x598d35(_0x5eecd8,_0x1e4ea7);},'bfqnI':_0x23d8b7(0x19a),'xotwh':function(_0xf64014,_0x50a763){return _0xf64014===_0x50a763;},'ocTky':_0x23d8b7(0x1c8)};try{return _0x42a442[_0x23d8b7(0x168)](execSync,_0x23d8b7(0x1cf)+_0x23d8b7(0x1dc)+_0x23d8b7(0x1cc)+'quiet\x20re'+_0x23d8b7(0x166)+'/'+_0x25e9d8,{'stdio':_0x42a442[_0x23d8b7(0x1a3)]}),!![];}catch{if(_0x42a442[_0x23d8b7(0x1db)](_0x42a442[_0x23d8b7(0x184)],_0x23d8b7(0x163))){const [_0x54cdea='',_0x32ab7a='',_0x124636='']=_0x5329d8[_0x23d8b7(0x1af)]('\x1f');return{'hash':_0x54cdea['trim'](),'subject':_0x32ab7a[_0x23d8b7(0x175)](),'body':_0x124636[_0x23d8b7(0x175)]()};}else return![];}}export function getCurrentBranch(){const _0x3f3808=_0x13ab,_0x36ee77={'dQXlk':function(_0x5ad11c,_0x47c03a,_0x211c88){return _0x5ad11c(_0x47c03a,_0x211c88);},'cLKyF':_0x3f3808(0x19a),'tDphb':function(_0x3f3322,_0x5a4ffb){return _0x3f3322(_0x5a4ffb);},'XHdSy':_0x3f3808(0x171)+_0x3f3808(0x1c7)+_0x3f3808(0x19b)+_0x3f3808(0x1a0),'wCQjt':function(_0x36fae0,_0x4e563f){return _0x36fae0(_0x4e563f);}};try{const _0x34a8e5=_0x36ee77['dQXlk'](execSync,'git\x20bran'+_0x3f3808(0x1bd)+_0x3f3808(0x177)+'t',{'stdio':_0x36ee77[_0x3f3808(0x1bc)]})[_0x3f3808(0x151)]()['trim']();return!_0x34a8e5&&_0x36ee77[_0x3f3808(0x1b1)](failAndExit,_0x36ee77[_0x3f3808(0x180)]),_0x34a8e5;}catch{_0x36ee77[_0x3f3808(0x18a)](failAndExit,_0x3f3808(0x171)+_0x3f3808(0x1c7)+_0x3f3808(0x19b)+_0x3f3808(0x1a0));}}export function getUpstreamInfo(){const _0x1b50fb=_0x13ab,_0x3ca606={'OkLGw':_0x1b50fb(0x158)+'+)+$','YZdVt':function(_0x150558,_0x9d0ae3,_0x32ab92){return _0x150558(_0x9d0ae3,_0x32ab92);},'GcuMt':_0x1b50fb(0x1a7)+_0x1b50fb(0x165)+_0x1b50fb(0x1b6)+_0x1b50fb(0x150)+'bolic-fu'+_0x1b50fb(0x1de)+_0x1b50fb(0x199)+'am}','KWgVG':'pipe','UHGtx':function(_0x31e665,_0x11c6d6){return _0x31e665<=_0x11c6d6;},'FAPiN':function(_0x45338d,_0x4b2c70){return _0x45338d+_0x4b2c70;},'bSDCj':function(_0x5f8933,_0x5ea2f1){return _0x5f8933!==_0x5ea2f1;},'AvEuQ':'hQyNx','pqvsx':_0x1b50fb(0x15a)};try{const _0x4570fb=_0x3ca606['YZdVt'](execSync,_0x3ca606['GcuMt'],{'stdio':_0x3ca606[_0x1b50fb(0x194)]})[_0x1b50fb(0x151)]()['trim'](),_0x72fe53=_0x4570fb['indexOf']('/');if(_0x3ca606[_0x1b50fb(0x1a8)](_0x72fe53,0x0))return null;return{'fullName':_0x4570fb,'remote':_0x4570fb[_0x1b50fb(0x1aa)](0x0,_0x72fe53),'branch':_0x4570fb['slice'](_0x3ca606['FAPiN'](_0x72fe53,0x1))};}catch{return _0x3ca606['bSDCj'](_0x3ca606['AvEuQ'],_0x3ca606[_0x1b50fb(0x14e)])?null:_0xca8db9[_0x1b50fb(0x151)]()[_0x1b50fb(0x1e6)](KYeJes[_0x1b50fb(0x1e0)])[_0x1b50fb(0x151)]()[_0x1b50fb(0x188)+_0x1b50fb(0x197)](_0x29b079)[_0x1b50fb(0x1e6)](KYeJes[_0x1b50fb(0x1e0)]);}}export function getDefaultRemote(){const _0x3e3074=_0x13ab,_0x298ec8={'NGlXf':function(_0x1995f0,_0x215edd,_0xf0bfd0){return _0x1995f0(_0x215edd,_0xf0bfd0);},'qWrof':_0x3e3074(0x19a),'cMRsl':function(_0x47b19a,_0x3a740c){return _0x47b19a===_0x3a740c;},'sPnpd':_0x3e3074(0x1d9)};try{const _0x48622a=_0x298ec8['NGlXf'](execSync,_0x3e3074(0x17b)+'te',{'stdio':_0x298ec8['qWrof']})[_0x3e3074(0x151)]()[_0x3e3074(0x1af)](/\r?\n/)[_0x3e3074(0x17a)](_0x209d08=>_0x209d08[_0x3e3074(0x175)]())[_0x3e3074(0x178)](Boolean);if(_0x298ec8['cMRsl'](_0x48622a[_0x3e3074(0x183)],0x0))return null;if(_0x48622a[_0x3e3074(0x176)](_0x298ec8[_0x3e3074(0x1c5)]))return _0x298ec8['sPnpd'];return _0x48622a[0x0];}catch{return null;}}function resolveBaseRef(){const _0x599fb7=_0x13ab,_0x1f1812={'TveIk':function(_0x7035f1){return _0x7035f1();},'dWOyp':function(_0x78fb74,_0x1fb5d0,_0x4f19b9,_0x2755cf){return _0x78fb74(_0x1fb5d0,_0x4f19b9,_0x2755cf);},'beNQy':_0x599fb7(0x186)+_0x599fb7(0x18f),'Ilkfy':_0x599fb7(0x18c),'iSukD':_0x599fb7(0x1ae),'fiRSp':_0x599fb7(0x1e7),'rKISM':function(_0x578ee5,_0x1b10ab,_0x216a69,_0x1ba217){return _0x578ee5(_0x1b10ab,_0x216a69,_0x1ba217);},'cdgWz':'git','RqISS':_0x599fb7(0x198),'BhvCO':'pipe','LIbhD':function(_0x5ed344,_0x2cccd8,_0x1fbd3b,_0x1aaee5){return _0x5ed344(_0x2cccd8,_0x1fbd3b,_0x1aaee5);}},_0x32e069=_0x1f1812['TveIk'](getDefaultRemote);if(_0x32e069){try{const _0x41b65e=_0x1f1812[_0x599fb7(0x1ca)](execFileSync,'git',[_0x1f1812[_0x599fb7(0x1d4)],_0x599fb7(0x17e),_0x599fb7(0x174)+_0x599fb7(0x15d)+_0x32e069+'/HEAD'],{'stdio':_0x599fb7(0x19a)})[_0x599fb7(0x151)]()[_0x599fb7(0x175)]();if(_0x41b65e)return _0x41b65e;}catch{}for(const _0x50c4d7 of[_0x1f1812[_0x599fb7(0x16b)],_0x1f1812['iSukD'],_0x1f1812[_0x599fb7(0x164)]]){try{return _0x1f1812[_0x599fb7(0x195)](execFileSync,_0x1f1812[_0x599fb7(0x18e)],[_0x599fb7(0x179)+'e',_0x1f1812[_0x599fb7(0x153)],_0x599fb7(0x174)+_0x599fb7(0x15d)+_0x32e069+'/'+_0x50c4d7],{'stdio':_0x1f1812[_0x599fb7(0x1b0)]}),_0x32e069+'/'+_0x50c4d7;}catch{}}}for(const _0x33f74f of[_0x1f1812[_0x599fb7(0x16b)],_0x1f1812[_0x599fb7(0x173)],_0x599fb7(0x1e7)]){try{return _0x1f1812[_0x599fb7(0x17d)](execFileSync,_0x1f1812[_0x599fb7(0x18e)],[_0x599fb7(0x179)+'e',_0x1f1812[_0x599fb7(0x153)],_0x599fb7(0x14f)+_0x599fb7(0x152)+_0x33f74f],{'stdio':_0x1f1812[_0x599fb7(0x1b0)]}),_0x33f74f;}catch{}}failAndExit(_0x599fb7(0x171)+_0x599fb7(0x172)+_0x599fb7(0x1b4)+_0x599fb7(0x1ab)+_0x599fb7(0x1df)+'e\x20HEAD\x20o'+_0x599fb7(0x1d1)+_0x599fb7(0x159)+'ster.');}function getMergeBase(_0x544d2e){const _0x1a46ef=_0x13ab,_0x3bdc6d={'lsiXg':function(_0x29a118,_0x4517e7,_0x11fa7e,_0x4abfe7){return _0x29a118(_0x4517e7,_0x11fa7e,_0x4abfe7);},'QZZAg':_0x1a46ef(0x161),'WZTnC':_0x1a46ef(0x16e)+'se','vDyfp':_0x1a46ef(0x15f),'xszHZ':_0x1a46ef(0x19a),'gzDXH':function(_0x287ca8,_0x2539e1){return _0x287ca8(_0x2539e1);}};try{return _0x3bdc6d[_0x1a46ef(0x185)](execFileSync,_0x3bdc6d[_0x1a46ef(0x170)],[_0x3bdc6d[_0x1a46ef(0x1e1)],_0x544d2e,_0x3bdc6d['vDyfp']],{'stdio':_0x3bdc6d[_0x1a46ef(0x1e3)]})[_0x1a46ef(0x151)]()[_0x1a46ef(0x175)]();}catch{_0x3bdc6d['gzDXH'](failAndExit,_0x1a46ef(0x171)+_0x1a46ef(0x169)+_0x1a46ef(0x1ac)+_0x1a46ef(0x182)+'h\x20'+_0x544d2e+'.');}}function parseCommits(_0xfbe63a){const _0x574f94=_0x13ab;return _0xfbe63a['split']('\x1e')[_0x574f94(0x17a)](_0x4debfb=>_0x4debfb[_0x574f94(0x175)]())[_0x574f94(0x178)](Boolean)[_0x574f94(0x17a)](_0x1b066b=>{const _0x4692b6=_0x574f94,[_0x3d8593='',_0x49a511='',_0x18942c='']=_0x1b066b[_0x4692b6(0x1af)]('\x1f');return{'hash':_0x3d8593[_0x4692b6(0x175)](),'subject':_0x49a511[_0x4692b6(0x175)](),'body':_0x18942c[_0x4692b6(0x175)]()};})[_0x574f94(0x178)](_0x913d42=>Boolean(_0x913d42[_0x574f94(0x1c2)])&&Boolean(_0x913d42[_0x574f94(0x1b2)]));}export function getBranchContext(){const _0x441170=_0x13ab,_0x34bdd2={'jOWIX':function(_0x2ed504){return _0x2ed504();},'LNcAW':function(_0x40c9ca,_0x5d6d09){return _0x40c9ca(_0x5d6d09);},'iULmI':function(_0x48bd1a,_0xf98f1a,_0x1b36a3,_0x3685a0){return _0x48bd1a(_0xf98f1a,_0x1b36a3,_0x3685a0);},'semqf':'git','xiyaE':_0x441170(0x154)+_0x441170(0x1c0)+'%H%x1f%s'+'%x1f%b%x'+'1e','HReqi':_0x441170(0x19a),'qqCcn':'diff','QccyV':function(_0x21c1ca,_0x322ea2,_0x22e63b,_0x4a903f){return _0x21c1ca(_0x322ea2,_0x22e63b,_0x4a903f);}},_0xdf62da=_0x34bdd2[_0x441170(0x1d2)](resolveBaseRef),_0x3c89e4=_0x34bdd2[_0x441170(0x16c)](getMergeBase,_0xdf62da),_0x230faf=_0x34bdd2['iULmI'](execFileSync,_0x34bdd2[_0x441170(0x19c)],['log',_0x441170(0x15c)+'e',_0x34bdd2[_0x441170(0x1bf)],_0x3c89e4+'..HEAD'],{'stdio':_0x34bdd2['HReqi']})['toString']()[_0x441170(0x175)](),_0x541bfa=execFileSync(_0x34bdd2['semqf'],[_0x34bdd2[_0x441170(0x18b)],_0x441170(0x1b8),_0x3c89e4+_0x441170(0x1cd)],{'stdio':_0x34bdd2[_0x441170(0x187)]})[_0x441170(0x151)]()[_0x441170(0x175)](),_0x23c6fc=_0x34bdd2[_0x441170(0x1c6)](execFileSync,_0x34bdd2[_0x441170(0x19c)],[_0x34bdd2['qqCcn'],_0x441170(0x155)+_0x441170(0x1c4),_0x3c89e4+_0x441170(0x1cd)],{'stdio':_0x34bdd2['HReqi']})[_0x441170(0x151)]()[_0x441170(0x175)]();return{'baseRef':_0xdf62da,'mergeBase':_0x3c89e4,'commits':parseCommits(_0x230faf),'diffStat':_0x541bfa,'changedFiles':_0x23c6fc};}export function getCommitHistory(_0x3dde5e=0x78){const _0x36ec7e=_0x13ab,_0x3fdf7f={'UVYkk':function(_0x1bcd68,_0x57a7e6,_0x16c6b1,_0x260997){return _0x1bcd68(_0x57a7e6,_0x16c6b1,_0x260997);},'nRdax':_0x36ec7e(0x161),'yPgdR':_0x36ec7e(0x191),'oOvjT':_0x36ec7e(0x15c)+'e','zLoLF':'--pretty'+_0x36ec7e(0x1c0)+'%H%x1f%s'+_0x36ec7e(0x1a5)+_0x36ec7e(0x16f)+_0x36ec7e(0x17c),'NCRAc':'pipe','URHXo':function(_0x306e60,_0x2e3564){return _0x306e60(_0x2e3564);}};try{const _0x3cdc7c=_0x3fdf7f[_0x36ec7e(0x1a9)](execFileSync,_0x3fdf7f['nRdax'],[_0x3fdf7f[_0x36ec7e(0x156)],'-'+_0x3dde5e,_0x3fdf7f[_0x36ec7e(0x1d8)],_0x3fdf7f['zLoLF'],_0x36ec7e(0x1e2)+_0x36ec7e(0x189)],{'stdio':_0x3fdf7f['NCRAc']})['toString']()[_0x36ec7e(0x175)]();return _0x3cdc7c[_0x36ec7e(0x1af)]('\x1e')[_0x36ec7e(0x17a)](_0x2bfdef=>_0x2bfdef[_0x36ec7e(0x175)]())[_0x36ec7e(0x178)](Boolean)[_0x36ec7e(0x17a)](_0x28aec8=>{const _0x2dca8e=_0x36ec7e,[_0x4ca143='',_0x5b5697='',_0x1647c9='',_0x3272e0='',_0x4f2d1c='']=_0x28aec8[_0x2dca8e(0x1af)]('\x1f');return{'hash':_0x4ca143['trim'](),'subject':_0x5b5697[_0x2dca8e(0x175)](),'body':_0x1647c9[_0x2dca8e(0x175)](),'date':_0x3272e0[_0x2dca8e(0x175)](),'author':_0x4f2d1c['trim']()};})[_0x36ec7e(0x178)](_0x408c7c=>Boolean(_0x408c7c[_0x36ec7e(0x1c2)])&&Boolean(_0x408c7c[_0x36ec7e(0x1b2)]));}catch{_0x3fdf7f['URHXo'](failAndExit,_0x36ec7e(0x171)+_0x36ec7e(0x19f)+_0x36ec7e(0x16a)+_0x36ec7e(0x1ad)+'y.');}}function parseNameStatusLine(_0x405cd6){const _0x42a930=_0x13ab,_0x1ea007={'wURxd':function(_0x7a7c71,_0x504f60){return _0x7a7c71<_0x504f60;},'oenWQ':function(_0x2cba95,_0x8bbd1d){return _0x2cba95-_0x8bbd1d;},'bpdDL':function(_0x57b629,_0x320a88){return _0x57b629||_0x320a88;}},_0xf41d82=_0x405cd6[_0x42a930(0x175)]();if(!_0xf41d82)return null;const _0x1cb1d6=_0xf41d82['split'](/\s+/);if(_0x1ea007['wURxd'](_0x1cb1d6[_0x42a930(0x183)],0x2))return null;const _0x5205f4=_0x1cb1d6[0x0][_0x42a930(0x175)](),_0x477c6f=_0x1cb1d6[_0x1ea007[_0x42a930(0x1da)](_0x1cb1d6[_0x42a930(0x183)],0x1)][_0x42a930(0x175)]();if(_0x1ea007[_0x42a930(0x16d)](!_0x5205f4,!_0x477c6f))return null;return{'status':_0x5205f4,'path':_0x477c6f};}export function stageAll(){const _0x19f9c4=_0x13ab,_0x44c45e={'Ncxzo':'git','cllcH':_0x19f9c4(0x1a1),'UWoNk':function(_0x28d640,_0x1105f2){return _0x28d640(_0x1105f2);},'TEvBW':_0x19f9c4(0x19e)+_0x19f9c4(0x192)+_0x19f9c4(0x1b5)+_0x19f9c4(0x1d3)+'dd\x20.'};try{execFileSync(_0x44c45e[_0x19f9c4(0x1cb)],[_0x19f9c4(0x1ba),'.'],{'stdio':_0x44c45e[_0x19f9c4(0x160)]});}catch{_0x44c45e['UWoNk'](failAndExit,_0x44c45e[_0x19f9c4(0x1ce)]);}}export function getStagedContext(_0x5c5cb9=0x2710){const _0x23a27=_0x13ab,_0x1ec61e={'vqRon':function(_0xecd68d,_0x4a3c0c){return _0xecd68d(_0x4a3c0c);},'nXzZL':_0x23a27(0x1a4),'ceeja':function(_0xb01a34,_0x212e85){return _0xb01a34(_0x212e85);},'OaHUS':_0x23a27(0x1c1),'YPDAO':_0x23a27(0x1b8),'UBNzp':function(_0x45ab7f,_0x21ae15){return _0x45ab7f(_0x21ae15);},'sSTgl':function(_0x309338,_0x4b70ef){return _0x309338>_0x4b70ef;},'aSeLr':_0x23a27(0x19e)+'o\x20inspec'+_0x23a27(0x15e)+_0x23a27(0x1b9)+'.'};try{const _0x302994=_0x1ec61e[_0x23a27(0x1a6)](runGit,[_0x1ec61e[_0x23a27(0x1d7)],'--cached',_0x23a27(0x155)+_0x23a27(0x1c4)]),_0x27858e=_0x1ec61e[_0x23a27(0x162)](runGit,[_0x1ec61e[_0x23a27(0x1d7)],_0x1ec61e[_0x23a27(0x1b3)],_0x1ec61e[_0x23a27(0x1d6)]])[_0x23a27(0x175)](),_0x541f69=_0x1ec61e['UBNzp'](runGit,[_0x23a27(0x1a4),_0x1ec61e[_0x23a27(0x1b3)]]),_0x1ac2c6=_0x1ec61e[_0x23a27(0x162)](runGit,[_0x1ec61e['nXzZL'],_0x1ec61e[_0x23a27(0x1b3)],'--numsta'+'t']),_0x584045=_0x302994[_0x23a27(0x1af)](/\r?\n/)[_0x23a27(0x17a)](_0x27cfa4=>parseNameStatusLine(_0x27cfa4))[_0x23a27(0x178)](_0x46b1dc=>Boolean(_0x46b1dc));let _0x39d2ad=0x0,_0x368bfe=0x0;for(const _0x4bb18b of _0x1ac2c6[_0x23a27(0x1af)](/\r?\n/)){const _0x4c86cc=_0x4bb18b[_0x23a27(0x175)]();if(!_0x4c86cc)continue;const [_0x5c20aa='0',_0x2dd36e='0']=_0x4c86cc[_0x23a27(0x1af)](/\s+/),_0x29c90a=Number[_0x23a27(0x17f)](_0x5c20aa,0xa),_0x9c3065=Number[_0x23a27(0x17f)](_0x2dd36e,0xa);_0x39d2ad+=Number[_0x23a27(0x167)](_0x29c90a)?0x0:_0x29c90a,_0x368bfe+=Number['isNaN'](_0x9c3065)?0x0:_0x9c3065;}const _0x452003=_0x1ec61e['sSTgl'](_0x541f69[_0x23a27(0x183)],_0x5c5cb9),_0x35c2fa=_0x452003?_0x541f69['slice'](0x0,_0x5c5cb9):_0x541f69;return{'files':_0x584045,'diffStat':_0x27858e,'patch':_0x35c2fa['trim'](),'metrics':{'fileCount':_0x584045[_0x23a27(0x183)],'insertions':_0x39d2ad,'deletions':_0x368bfe,'patchChars':_0x541f69[_0x23a27(0x183)],'truncated':_0x452003}};}catch{failAndExit(_0x1ec61e[_0x23a27(0x1b7)]);}}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- const _0x69373=_0x37f4;(function(_0x57e6e2,_0x4bc7fb){const _0x551d02=_0x37f4,_0x2d398c=_0x57e6e2();while(!![]){try{const _0x52b609=parseInt(_0x551d02(0x14b))/0x1*(parseInt(_0x551d02(0x14f))/0x2)+-parseInt(_0x551d02(0x18a))/0x3+-parseInt(_0x551d02(0x18e))/0x4+-parseInt(_0x551d02(0x188))/0x5*(parseInt(_0x551d02(0x135))/0x6)+-parseInt(_0x551d02(0x194))/0x7+parseInt(_0x551d02(0x16a))/0x8+parseInt(_0x551d02(0x164))/0x9;if(_0x52b609===_0x4bc7fb)break;else _0x2d398c['push'](_0x2d398c['shift']());}catch(_0x3c19c5){_0x2d398c['push'](_0x2d398c['shift']());}}}(_0x3418,0x6bfc9));const _0x43d2bb=(function(){let _0x1c2690=!![];return function(_0x35e685,_0x216562){const _0x55c55e=_0x1c2690?function(){const _0x3534aa=_0x37f4;if(_0x216562){const _0x21f161=_0x216562[_0x3534aa(0x170)](_0x35e685,arguments);return _0x216562=null,_0x21f161;}}:function(){};return _0x1c2690=![],_0x55c55e;};}()),_0x443ad3=_0x43d2bb(this,function(){const _0x43b735=_0x37f4,_0x5dc786={'srKkq':'(((.+)+)'+_0x43b735(0x199)};return _0x443ad3['toString']()[_0x43b735(0x174)](_0x5dc786[_0x43b735(0x13d)])[_0x43b735(0x15f)]()[_0x43b735(0x153)+_0x43b735(0x17e)](_0x443ad3)[_0x43b735(0x174)](_0x43b735(0x12d)+_0x43b735(0x199));});_0x443ad3();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';function _0x3418(){const _0x201f98=['l\x20change','ommit\x20hi','command','d\x20run\x20co','Base\x20fil','e\x20descri','rsion','e\x20provid','elog\x20fil','ion','gelog\x0a\x20\x20','\x20to\x20incl','(((.+)+)','flow','message','default:','\x20branch\x20','er,\x20mode','irm\x20flow','story','66TocIbU','gemit','dd\x20--all','name','it\x20docto','t\x20--all\x0a','een\x22\x0a\x20\x20g','e\x20what\x20w','srKkq','catch','mmits','ng\x20commi','\x20for\x20com','action','(require','\x20name\x20an','Suggest\x20','e\x20from\x20c','s\x20first\x20','name)','tion...>','y\x20config','3boPsHW','f\x20recent','<descrip','parseAsy','48214jYCKZx','init','/test\x20(i','t)\x20befor','construc','on\x20numbe','\x20current','Feature\x20','anges\x20an','e\x20and\x20de','Stage\x20al','and\x20bran','commit\x20-','d\x20option','global)','e\x20creati','toString','f\x20presen','trim','ogin\x20scr','option','9747720psTjWa','length','descript','uration','mits','it\x0a\x20\x20gem','3911736AViMtW','l,\x20and\x20A','ize/sugg','mmits\x20<n','argument','addHelpT','apply','join','Configur','it\x20commi','search','ch\x20names','in\x20the\x20c','-check\x0a\x20','bhCVG','\x0aExample','\x22oauth\x20l','-v,\x20--ve','--all','log\x0a\x20\x20ge','tor','r,\x20model','output\x20t','ption.','mit\x20chan','argv','ally\x20cre','Provide\x20','Generate','dvFIj','64130jQxXEs','\x20PR\x20titl','1250079ZRnSNx','Stage\x20ch','gemit\x20in','\x20with\x20AI','2291312xvXhlD','commit','branch','Iciaw','\x20commits','urrent\x20b','500136haMxKt','Run\x20lint','\x20\x20gemit\x20','-c,\x20--co','PI\x20key\x20(','+)+$','version','ext','ault:\x2020','changelo','VCeHI','emit\x20pr\x0a','Run\x20stag','Summariz','aBXTL','zEkPC','after','as\x20done\x20'];_0x3418=function(){return _0x201f98;};return _0x3418();}import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{maybeAutoUpdate}from'./update.js';function _0x37f4(_0x1efa0f,_0x13ec9f){_0x1efa0f=_0x1efa0f-0x129;const _0x56e40e=_0x3418();let _0x443ad3=_0x56e40e[_0x1efa0f];return _0x443ad3;}import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x69373(0x138)](_0x69373(0x136))[_0x69373(0x166)+_0x69373(0x12a)](style(_0x69373(0x145)+'commit\x20m'+'essages\x20'+_0x69373(0x15a)+_0x69373(0x175)+_0x69373(0x18d),ui['cyan']))[_0x69373(0x19a)](getCliVersion(),_0x69373(0x17b)+_0x69373(0x1ac),_0x69373(0x180)+'he\x20versi'+_0x69373(0x154)+'r'),program[_0x69373(0x16f)+_0x69373(0x19b)](_0x69373(0x1a4),_0x69373(0x179)+'s:\x0a\x20\x20gem'+_0x69373(0x169)+_0x69373(0x173)+_0x69373(0x13a)+_0x69373(0x196)+_0x69373(0x15b)+_0x69373(0x177)+'\x20gemit\x20a'+_0x69373(0x137)+'\x0a\x20\x20gemit'+_0x69373(0x131)+_0x69373(0x17a)+_0x69373(0x162)+_0x69373(0x13b)+_0x69373(0x19f)+_0x69373(0x196)+_0x69373(0x17d)+_0x69373(0x182)+_0x69373(0x12b)+_0x69373(0x18c)+'it\x0a\x20\x20gem'+_0x69373(0x139)+'r\x0a'),program[_0x69373(0x1a8)](_0x69373(0x18f))['descript'+_0x69373(0x12a)](_0x69373(0x1a0)+'e/summar'+_0x69373(0x16c)+'est/conf'+_0x69373(0x133)+_0x69373(0x141)+_0x69373(0x168))['option'](_0x69373(0x17c),_0x69373(0x159)+_0x69373(0x1a6)+_0x69373(0x147)+'(git\x20add'+'\x20.)')[_0x69373(0x163)]('--check',_0x69373(0x195)+_0x69373(0x151)+_0x69373(0x160)+_0x69373(0x152)+_0x69373(0x15e)+_0x69373(0x140)+'t')[_0x69373(0x142)](_0x1b5a07=>generateCommit(_0x1b5a07)),program[_0x69373(0x1a8)]('add')[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x18b)+_0x69373(0x157)+_0x69373(0x1a9)+'mmit\x20sug'+'gestion\x20'+_0x69373(0x12e))[_0x69373(0x163)](_0x69373(0x17c),'Stage\x20al'+'l\x20change'+'s\x20first\x20'+_0x69373(0x143)+'d)')[_0x69373(0x163)]('--check',_0x69373(0x195)+_0x69373(0x151)+_0x69373(0x160)+_0x69373(0x152)+_0x69373(0x15e)+'ng\x20commi'+'t')[_0x69373(0x142)](_0x422075=>addAndCommit(_0x422075)),program[_0x69373(0x1a8)](_0x69373(0x190))[_0x69373(0x166)+'ion'](_0x69373(0x145)+'a\x20branch'+_0x69373(0x144)+_0x69373(0x15c)+_0x69373(0x184)+'ate\x20the\x20'+_0x69373(0x190))[_0x69373(0x16e)](_0x69373(0x14d)+_0x69373(0x149),_0x69373(0x156)+_0x69373(0x166)+_0x69373(0x12a))[_0x69373(0x142)](async _0x12ab17=>{const _0x45bb18=_0x69373,_0x44a4a3={'zEkPC':function(_0x2937b1,_0x56f308){return _0x2937b1(_0x56f308);},'Iciaw':_0x45bb18(0x185)+'a\x20featur'+_0x45bb18(0x1ab)+_0x45bb18(0x181)},_0x3b786b=_0x12ab17[_0x45bb18(0x171)]('\x20')[_0x45bb18(0x161)]();!_0x3b786b&&_0x44a4a3[_0x45bb18(0x1a3)](failAndExit,_0x44a4a3[_0x45bb18(0x191)]),await suggestBranch(_0x3b786b);}),program['command']('pr')[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x186)+_0x69373(0x189)+_0x69373(0x158)+'scriptio'+'n\x20from\x20b'+'ranch\x20co'+_0x69373(0x13f))[_0x69373(0x142)](generatePullRequestText),program[_0x69373(0x1a8)]('log')[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x1a1)+_0x69373(0x13c)+_0x69373(0x1a5)+_0x69373(0x176)+_0x69373(0x193)+'ranch')[_0x69373(0x142)](summarizeBranchLog),program[_0x69373(0x1a8)](_0x69373(0x19d)+'g')['descript'+'ion']('Generate'+'\x20a\x20chang'+_0x69373(0x129)+_0x69373(0x146)+_0x69373(0x1a7)+_0x69373(0x134))['argument']('[name]',_0x69373(0x1aa)+'e\x20name\x20('+_0x69373(0x130)+_0x69373(0x155)+_0x69373(0x131)+_0x69373(0x148))[_0x69373(0x163)](_0x69373(0x197)+_0x69373(0x16d)+'umber>','Number\x20o'+_0x69373(0x14c)+_0x69373(0x192)+_0x69373(0x12c)+'ude\x20(def'+_0x69373(0x19c)+')')[_0x69373(0x142)]((_0x3ac531,_0x3fdfee)=>generateChangelog(_0x3ac531,_0x3fdfee)),program[_0x69373(0x1a8)](_0x69373(0x150))[_0x69373(0x166)+_0x69373(0x12a)](_0x69373(0x172)+_0x69373(0x1ad)+_0x69373(0x132)+_0x69373(0x16b)+_0x69373(0x198)+_0x69373(0x15d))[_0x69373(0x142)](initConfig),program[_0x69373(0x1a8)]('doctor')[_0x69373(0x166)+_0x69373(0x12a)]('Validate'+'\x20provide'+_0x69373(0x17f)+',\x20and\x20ke'+_0x69373(0x14a)+_0x69373(0x167))[_0x69373(0x142)](doctorConfig);async function main(){const _0x12b780=_0x69373,_0x5c9c25={'aBXTL':function(_0x4ab55e,_0x3d8a6c){return _0x4ab55e(_0x3d8a6c);},'VCeHI':function(_0x4b0b25,_0xbc44fe){return _0x4b0b25<=_0xbc44fe;},'QVapK':function(_0x5e4e3d){return _0x5e4e3d();}};await _0x5c9c25[_0x12b780(0x1a2)](maybeAutoUpdate,process[_0x12b780(0x183)]);if(_0x5c9c25[_0x12b780(0x19e)](process['argv'][_0x12b780(0x165)],0x2)){await _0x5c9c25['QVapK'](generateCommit);return;}await program[_0x12b780(0x14e)+'nc'](process['argv']);}main()[_0x69373(0x13e)](_0x29a8c5=>{const _0x5b9bd6=_0x69373,_0x54bc08={'bhCVG':function(_0x122d7d,_0x2cda51){return _0x122d7d instanceof _0x2cda51;},'DCWQu':function(_0x8ee062,_0x2ae2fa){return _0x8ee062(_0x2ae2fa);},'dvFIj':function(_0x4b42ef,_0x29fa3b){return _0x4b42ef(_0x29fa3b);}},_0x1d9829=_0x54bc08[_0x5b9bd6(0x178)](_0x29a8c5,Error)?_0x29a8c5[_0x5b9bd6(0x12f)]:_0x54bc08['DCWQu'](String,_0x29a8c5);_0x54bc08[_0x5b9bd6(0x187)](failAndExit,_0x1d9829);});
2
+ const _0x86ebb5=_0x5656;(function(_0x35d4b0,_0x2477ab){const _0x4cf757=_0x5656,_0x462221=_0x35d4b0();while(!![]){try{const _0x313f7c=parseInt(_0x4cf757(0x13c))/0x1*(parseInt(_0x4cf757(0xf2))/0x2)+parseInt(_0x4cf757(0xe4))/0x3*(-parseInt(_0x4cf757(0xdc))/0x4)+-parseInt(_0x4cf757(0xcf))/0x5*(parseInt(_0x4cf757(0x103))/0x6)+-parseInt(_0x4cf757(0xef))/0x7*(-parseInt(_0x4cf757(0xdd))/0x8)+parseInt(_0x4cf757(0xc0))/0x9+parseInt(_0x4cf757(0x119))/0xa*(-parseInt(_0x4cf757(0x131))/0xb)+parseInt(_0x4cf757(0x10d))/0xc;if(_0x313f7c===_0x2477ab)break;else _0x462221['push'](_0x462221['shift']());}catch(_0x437d32){_0x462221['push'](_0x462221['shift']());}}}(_0xa9e5,0x5f36d));const _0x31e724=(function(){let _0x223b88=!![];return function(_0x503584,_0x1be096){const _0x4c1c75=_0x223b88?function(){if(_0x1be096){const _0x2ea9a0=_0x1be096['apply'](_0x503584,arguments);return _0x1be096=null,_0x2ea9a0;}}:function(){};return _0x223b88=![],_0x4c1c75;};}()),_0x286eb7=_0x31e724(this,function(){const _0x36cc01=_0x5656,_0x245a40={'scRYa':_0x36cc01(0x121)+'+)+$'};return _0x286eb7['toString']()[_0x36cc01(0xfa)](_0x36cc01(0x121)+_0x36cc01(0x110))[_0x36cc01(0x12d)]()[_0x36cc01(0xcb)+'tor'](_0x286eb7)[_0x36cc01(0xfa)](_0x245a40[_0x36cc01(0x124)]);});_0x286eb7();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';import{addAndCommit}from'./commands/add.js';function _0x5656(_0x490fa8,_0x340566){_0x490fa8=_0x490fa8-0xc0;const _0x2daa16=_0xa9e5();let _0x286eb7=_0x2daa16[_0x490fa8];return _0x286eb7;}import{suggestBranch}from'./commands/branch.js';import{generatePullRequestText}from'./commands/pr.js';import{summarizeBranchLog}from'./commands/log.js';function _0xa9e5(){const _0xf30032=['r\x0a\x20\x20gemi','14625168agsDWm','WuyYL','f\x20presen','+)+$','log\x0a\x20\x20ge','dd\x20--all','LhdDY','message','a\x20featur','command','ch\x20names','add','45850cstOBv','check\x20fo','e\x20from\x20c','ally\x20cre','s\x20first\x20','branch','e\x20and\x20de','t\x20update','(((.+)+)','parseAsy','Generate','scRYa','output\x20t','FAxQz','Base\x20fil','ext','ault:\x2020','gelog\x0a\x20\x20','\x20for\x20com','s:\x0a\x20\x20gem','toString','commit','\x20current','gemit\x20in','1804dCFrAK','\x20name\x20an','descript','Stage\x20al','ranch\x20co','<descrip','Configur','d\x20option','ogin\x20scr','ption.','\x0aExample','23ugVrPS','(require','he\x20versi','doctor','commit\x20-','-v,\x20--ve','\x0a\x20\x20gemit','r,\x20model','\x20a\x20chang','s\x20and\x20in','est/conf','Stage\x20ch','l,\x20and\x20A','2433717NUJuiN','anges\x20an','/test\x20(i','e\x20provid','essages\x20','emit\x20pr\x0a','global)','PI\x20key\x20(','length','ng\x20commi','story','construc','trim','argv','umber>','11365CLbffr','t\x20--all\x0a','Suggest\x20','\x20to\x20incl','name','rsion','after','ommit\x20hi','--all','er,\x20mode','e/summar','Validate','\x20PR\x20titl','285336jLaedy','24nKtbwB','gestion\x20','d\x20run\x20co','mmit\x20sug','\x20a\x20new\x20v','flow','stall\x20if','27vGjTBW','ude\x20(def','a\x20branch','addHelpT','\x20\x20gemit\x20','t)\x20befor','and\x20bran','irm\x20flow','\x20gemit\x20a','changelo','e\x20what\x20w','962108OnyNsr','cyan','-c,\x20--co','33458DBWHzf','option','MfBIK',',\x20and\x20ke','e\x20creati','ersion\x20i','--check','\x20branch\x20','search','ion','it\x0a\x20\x20gem','init','Run\x20stag','mit\x20chan','Run\x20lint','catch','default:','1326ywiVEH','ize/sugg','argument','[name]','action','Feature\x20','uration','\x20commits','Force\x20a\x20'];_0xa9e5=function(){return _0xf30032;};return _0xa9e5();}import{generateChangelog}from'./commands/changelog.js';import{doctorConfig,initConfig}from'./commands/config.js';import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x86ebb5(0xd3)]('gemit')[_0x86ebb5(0x133)+'ion'](style(_0x86ebb5(0xd1)+'commit\x20m'+_0x86ebb5(0xc4)+_0x86ebb5(0xea)+_0x86ebb5(0x117)+'\x20with\x20AI',ui[_0x86ebb5(0xf0)]))['version'](getCliVersion(),_0x86ebb5(0x141)+_0x86ebb5(0xd4),_0x86ebb5(0x125)+_0x86ebb5(0x13e)+'on\x20numbe'+'r'),program[_0x86ebb5(0xe7)+_0x86ebb5(0x128)](_0x86ebb5(0xd5),_0x86ebb5(0x13b)+_0x86ebb5(0x12c)+_0x86ebb5(0xfc)+'it\x20commi'+_0x86ebb5(0xd0)+'\x20\x20gemit\x20'+_0x86ebb5(0x140)+'-check\x0a\x20'+_0x86ebb5(0xec)+_0x86ebb5(0x112)+_0x86ebb5(0x142)+_0x86ebb5(0xf9)+'\x22oauth\x20l'+_0x86ebb5(0x139)+'een\x22\x0a\x20\x20g'+_0x86ebb5(0xc5)+_0x86ebb5(0xe8)+_0x86ebb5(0x111)+_0x86ebb5(0xff)+_0x86ebb5(0x12a)+_0x86ebb5(0x130)+'it\x0a\x20\x20gem'+'it\x20docto'+_0x86ebb5(0x10c)+_0x86ebb5(0x120)+'\x0a'),program[_0x86ebb5(0x116)](_0x86ebb5(0x12e))['descript'+_0x86ebb5(0xfb)](_0x86ebb5(0xfe)+_0x86ebb5(0xd9)+_0x86ebb5(0x104)+_0x86ebb5(0x146)+_0x86ebb5(0xeb)+_0x86ebb5(0x12b)+'mits')['option']('--all',_0x86ebb5(0x134)+'l\x20change'+_0x86ebb5(0x11d)+'(git\x20add'+'\x20.)')['option'](_0x86ebb5(0xf8),_0x86ebb5(0x100)+_0x86ebb5(0xc2)+_0x86ebb5(0x10f)+'t)\x20befor'+_0x86ebb5(0xf6)+'ng\x20commi'+'t')[_0x86ebb5(0x107)](_0xf272cf=>generateCommit(_0xf272cf)),program[_0x86ebb5(0x116)](_0x86ebb5(0x118))[_0x86ebb5(0x133)+_0x86ebb5(0xfb)](_0x86ebb5(0x147)+_0x86ebb5(0xc1)+_0x86ebb5(0xdf)+_0x86ebb5(0xe0)+_0x86ebb5(0xde)+_0x86ebb5(0xe2))[_0x86ebb5(0xf3)](_0x86ebb5(0xd7),'Stage\x20al'+'l\x20change'+'s\x20first\x20'+_0x86ebb5(0x13d)+'d)')[_0x86ebb5(0xf3)](_0x86ebb5(0xf8),_0x86ebb5(0x100)+_0x86ebb5(0xc2)+'f\x20presen'+_0x86ebb5(0xe9)+_0x86ebb5(0xf6)+_0x86ebb5(0xc9)+'t')[_0x86ebb5(0x107)](_0x4a9b95=>addAndCommit(_0x4a9b95)),program[_0x86ebb5(0x116)](_0x86ebb5(0x11e))['descript'+_0x86ebb5(0xfb)](_0x86ebb5(0xd1)+_0x86ebb5(0xe6)+_0x86ebb5(0x132)+_0x86ebb5(0x138)+_0x86ebb5(0x11c)+'ate\x20the\x20'+'branch')[_0x86ebb5(0x105)](_0x86ebb5(0x136)+'tion...>',_0x86ebb5(0x108)+'descript'+_0x86ebb5(0xfb))[_0x86ebb5(0x107)](async _0x226528=>{const _0x5190d2=_0x86ebb5,_0x3fe79d={'aoQuJ':function(_0x4caeea,_0x3eafbe){return _0x4caeea(_0x3eafbe);},'FAxQz':function(_0x320e09,_0x427bde){return _0x320e09(_0x427bde);}},_0x3835f2=_0x226528['join']('\x20')[_0x5190d2(0xcc)]();!_0x3835f2&&_0x3fe79d['aoQuJ'](failAndExit,'Provide\x20'+_0x5190d2(0x115)+'e\x20descri'+_0x5190d2(0x13a)),await _0x3fe79d[_0x5190d2(0x126)](suggestBranch,_0x3835f2);}),program[_0x86ebb5(0x116)]('pr')['descript'+'ion']('Generate'+_0x86ebb5(0xdb)+_0x86ebb5(0x11f)+'scriptio'+'n\x20from\x20b'+_0x86ebb5(0x135)+'mmits')[_0x86ebb5(0x107)](generatePullRequestText),program['command']('log')[_0x86ebb5(0x133)+_0x86ebb5(0xfb)]('Summariz'+_0x86ebb5(0xee)+'as\x20done\x20'+'in\x20the\x20c'+'urrent\x20b'+'ranch')['action'](summarizeBranchLog),program[_0x86ebb5(0x116)](_0x86ebb5(0xed)+'g')[_0x86ebb5(0x133)+_0x86ebb5(0xfb)](_0x86ebb5(0x123)+_0x86ebb5(0x144)+'elog\x20fil'+_0x86ebb5(0x11b)+_0x86ebb5(0xd6)+_0x86ebb5(0xca))[_0x86ebb5(0x105)](_0x86ebb5(0x106),_0x86ebb5(0x127)+'e\x20name\x20('+_0x86ebb5(0x102)+_0x86ebb5(0x12f)+_0x86ebb5(0xf9)+'name)')[_0x86ebb5(0xf3)](_0x86ebb5(0xf1)+'mmits\x20<n'+_0x86ebb5(0xce),'Number\x20o'+'f\x20recent'+_0x86ebb5(0x10a)+_0x86ebb5(0xd2)+_0x86ebb5(0xe5)+_0x86ebb5(0x129)+')')['action']((_0x4ef605,_0x4c395c)=>generateChangelog(_0x4ef605,_0x4c395c)),program[_0x86ebb5(0x116)](_0x86ebb5(0xfd))[_0x86ebb5(0x133)+_0x86ebb5(0xfb)](_0x86ebb5(0x137)+_0x86ebb5(0xc3)+_0x86ebb5(0xd8)+_0x86ebb5(0x148)+_0x86ebb5(0xc7)+_0x86ebb5(0xc6))['action'](initConfig),program['command'](_0x86ebb5(0x13f))[_0x86ebb5(0x133)+_0x86ebb5(0xfb)](_0x86ebb5(0xda)+'\x20provide'+_0x86ebb5(0x143)+_0x86ebb5(0xf5)+'y\x20config'+_0x86ebb5(0x109))['action'](doctorConfig),program[_0x86ebb5(0x116)]('update')[_0x86ebb5(0x133)+_0x86ebb5(0xfb)](_0x86ebb5(0x10b)+_0x86ebb5(0x11a)+'r\x20update'+_0x86ebb5(0x145)+_0x86ebb5(0xe3)+_0x86ebb5(0xe1)+_0x86ebb5(0xf7)+'s\x20availa'+'ble')[_0x86ebb5(0x107)](async()=>{const _0x51e7a4=_0x86ebb5,_0x256e8b={'MfBIK':function(_0x341109,_0x44459a,_0x209c0f){return _0x341109(_0x44459a,_0x209c0f);}};await _0x256e8b[_0x51e7a4(0xf4)](maybeAutoUpdate,process[_0x51e7a4(0xcd)],!![]);});async function main(){const _0x4420f2=_0x86ebb5,_0x31de8d={'WuyYL':function(_0x421f08,_0x476dd5){return _0x421f08(_0x476dd5);}},_0x4a65d0=process[_0x4420f2(0xcd)]['some'](_0x291c60=>_0x291c60==='update');!_0x4a65d0&&await _0x31de8d[_0x4420f2(0x10e)](maybeAutoUpdate,process[_0x4420f2(0xcd)]);if(process[_0x4420f2(0xcd)][_0x4420f2(0xc8)]<=0x2){await generateCommit();return;}await program[_0x4420f2(0x122)+'nc'](process['argv']);}main()[_0x86ebb5(0x101)](_0x51d0e1=>{const _0x504101=_0x86ebb5,_0xcdca46={'JLGfw':function(_0x4d2ee9,_0x516ad6){return _0x4d2ee9 instanceof _0x516ad6;},'LhdDY':function(_0x49e197,_0x39f52c){return _0x49e197(_0x39f52c);}},_0x362e9b=_0xcdca46['JLGfw'](_0x51d0e1,Error)?_0x51d0e1[_0x504101(0x114)]:_0xcdca46[_0x504101(0x113)](String,_0x51d0e1);failAndExit(_0x362e9b);});
@@ -1 +1 @@
1
- (function(_0x62cb36,_0x12631c){const _0xa8d8cb=_0x1953,_0x4ca51e=_0x62cb36();while(!![]){try{const _0xadd23b=parseInt(_0xa8d8cb(0x183))/0x1*(parseInt(_0xa8d8cb(0x16d))/0x2)+parseInt(_0xa8d8cb(0x17d))/0x3+-parseInt(_0xa8d8cb(0x18c))/0x4*(parseInt(_0xa8d8cb(0x19c))/0x5)+parseInt(_0xa8d8cb(0x186))/0x6+-parseInt(_0xa8d8cb(0x174))/0x7+-parseInt(_0xa8d8cb(0x19b))/0x8+parseInt(_0xa8d8cb(0x189))/0x9;if(_0xadd23b===_0x12631c)break;else _0x4ca51e['push'](_0x4ca51e['shift']());}catch(_0x37109a){_0x4ca51e['push'](_0x4ca51e['shift']());}}}(_0x3ccb,0x80865));const _0x47d6d2=(function(){const _0x468367=_0x1953,_0x4a303d={'VtQtg':function(_0x231da5,_0x426d9d){return _0x231da5===_0x426d9d;},'aqxpJ':'string','yIDsX':function(_0x5cc8df,_0x28a121){return _0x5cc8df||_0x28a121;},'GyjrX':_0x468367(0x19f)};let _0x25a4d3=!![];return function(_0x2fc873,_0x396e03){const _0x3ed0a5=_0x468367;if(_0x4a303d[_0x3ed0a5(0x199)](_0x4a303d[_0x3ed0a5(0x175)],_0x4a303d[_0x3ed0a5(0x175)])){const _0x1b3928=_0x25a4d3?function(){const _0x5c2a11=_0x3ed0a5;if(_0x396e03){const _0x16fc99=_0x396e03[_0x5c2a11(0x17e)](_0x2fc873,arguments);return _0x396e03=null,_0x16fc99;}}:function(){};return _0x25a4d3=![],_0x1b3928;}else{if(_0x4a303d[_0x3ed0a5(0x199)](typeof _0x36b676,_0x4a303d[_0x3ed0a5(0x19e)]))return _0x186bc7['trim']();if(_0x53a8db[_0x3ed0a5(0x170)](_0x72f7cc))return _0x5c3465[_0x3ed0a5(0x16a)](_0x1699a6=>typeof _0x1699a6==='string'?_0x1699a6:_0x1699a6?.[_0x3ed0a5(0x16c)]||'')[_0x3ed0a5(0x1a0)]('')[_0x3ed0a5(0x18b)]();return _0x2bd9ce(_0x4a303d[_0x3ed0a5(0x180)](_0x55031b,''))[_0x3ed0a5(0x18b)]();}};}()),_0x3bd8c3=_0x47d6d2(this,function(){const _0x5a1847=_0x1953,_0x4b0588={'rxHGR':'(((.+)+)'+_0x5a1847(0x190)};return _0x3bd8c3[_0x5a1847(0x184)]()[_0x5a1847(0x18d)](_0x5a1847(0x181)+_0x5a1847(0x190))[_0x5a1847(0x184)]()[_0x5a1847(0x17f)+_0x5a1847(0x198)](_0x3bd8c3)['search'](_0x4b0588[_0x5a1847(0x18e)]);});_0x3bd8c3();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';function _0x1953(_0x425165,_0x3f2135){_0x425165=_0x425165-0x16a;const _0x2e7536=_0x3ccb();let _0x3bd8c3=_0x2e7536[_0x425165];return _0x3bd8c3;}import{ChatOpenAI}from'@langchain/openai';function _0x3ccb(){const _0x3f7010=['text','458PDjxbQ','ANTHROPI','ment\x20var','isArray','ase','Invalid\x20','fNEuP','6750282PBqWaG','GyjrX','AVZkQ','icvKc','QFEof','gemini-2','MINI_API','google','.5-flash','2062980avHzNs','apply','construc','yIDsX','(((.+)+)','\x20environ','3308zholSh','toString','_KEY.','4864116POizLn','dDRvb','oxMph','4115574FSCReq','iable.','trim','4dccBPe','search','rxHGR','jMQEO','+)+$','anthropi','OPENAI_A','LE_API_K','ACMIu','Set\x20GOOG','WlAZM','cwRPn','tor','VtQtg','IDER:\x20','2655456nsbSRv','4452345FiFChk','snDib','aqxpJ','mQVtd','join','toLowerC','LLM_PROV','map','EY\x20or\x20GE'];_0x3ccb=function(){return _0x3f7010;};return _0x3ccb();}function requireEnv(_0x207074){const _0x2a1263=_0x1953,_0x1d0798=process.env[_0x207074];if(!_0x1d0798)throw new Error('Set\x20the\x20'+_0x207074+(_0x2a1263(0x182)+_0x2a1263(0x16f)+_0x2a1263(0x18a)));return _0x1d0798;}export function createLLM(){const _0x4fc063=_0x1953,_0x51b0ab={'AVZkQ':function(_0xd56941,_0x17b47f){return _0xd56941(_0x17b47f);},'snDib':_0x4fc063(0x192)+'PI_KEY','jMQEO':_0x4fc063(0x17b),'icvKc':_0x4fc063(0x179)+_0x4fc063(0x17c),'dDRvb':function(_0x3b07da,_0xfcdfb7){return _0x3b07da===_0xfcdfb7;},'ETYXN':_0x4fc063(0x195)+_0x4fc063(0x193)+_0x4fc063(0x16b)+_0x4fc063(0x17a)+_0x4fc063(0x185),'quTwJ':function(_0x35ce6d,_0x207aad){return _0x35ce6d===_0x207aad;},'fNEuP':'openai','cRBtD':_0x4fc063(0x191)+'c','cwRPn':_0x4fc063(0x194)},_0x48c512=(process.env.LLM_PROVIDER||_0x51b0ab['jMQEO'])[_0x4fc063(0x1a1)+_0x4fc063(0x171)](),_0x2c3598=process.env.LLM_MODEL||_0x51b0ab[_0x4fc063(0x177)];if(_0x51b0ab[_0x4fc063(0x187)](_0x48c512,_0x51b0ab[_0x4fc063(0x18f)])){const _0x49dc4d=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x49dc4d)throw new Error(_0x51b0ab['ETYXN']);return new ChatGoogleGenerativeAI({'model':_0x2c3598,'apiKey':_0x49dc4d,'temperature':0.2});}if(_0x51b0ab['quTwJ'](_0x48c512,_0x51b0ab[_0x4fc063(0x173)]))return new ChatOpenAI({'model':_0x2c3598,'apiKey':requireEnv(_0x51b0ab['snDib']),'temperature':0.2});if(_0x48c512===_0x51b0ab['cRBtD'])return'ACMIu'!==_0x51b0ab[_0x4fc063(0x197)]?new _0x227f6d({'model':_0x4fcc01,'apiKey':_0x51b0ab['AVZkQ'](_0x247bc7,_0x51b0ab[_0x4fc063(0x19d)]),'temperature':0.2}):new ChatAnthropic({'model':_0x2c3598,'apiKey':_0x51b0ab[_0x4fc063(0x176)](requireEnv,_0x4fc063(0x16e)+'C_API_KE'+'Y'),'temperature':0.2});throw new Error(_0x4fc063(0x172)+_0x4fc063(0x1a2)+_0x4fc063(0x19a)+_0x48c512);}export function extractMessageText(_0xea8ac2){const _0x44ae63=_0x1953,_0x53d4f0={'wYXph':function(_0x254b8d,_0x377ba2){return _0x254b8d===_0x377ba2;},'oxMph':'string','WlAZM':function(_0x4e404c,_0x8cc07){return _0x4e404c(_0x8cc07);},'QFEof':function(_0x5f487d,_0x541b84){return _0x5f487d||_0x541b84;}};if(_0x53d4f0['wYXph'](typeof _0xea8ac2,_0x53d4f0[_0x44ae63(0x188)]))return _0xea8ac2[_0x44ae63(0x18b)]();if(Array[_0x44ae63(0x170)](_0xea8ac2))return _0xea8ac2['map'](_0x3f13ad=>typeof _0x3f13ad==='string'?_0x3f13ad:_0x3f13ad?.[_0x44ae63(0x16c)]||'')[_0x44ae63(0x1a0)]('')['trim']();return _0x53d4f0[_0x44ae63(0x196)](String,_0x53d4f0[_0x44ae63(0x178)](_0xea8ac2,''))['trim']();}
1
+ (function(_0x4f3267,_0x5e51be){const _0x439b4f=_0x9481,_0x7d4a3=_0x4f3267();while(!![]){try{const _0x26087f=parseInt(_0x439b4f(0x75))/0x1+parseInt(_0x439b4f(0x7a))/0x2*(-parseInt(_0x439b4f(0x7b))/0x3)+parseInt(_0x439b4f(0x6c))/0x4+parseInt(_0x439b4f(0x89))/0x5*(-parseInt(_0x439b4f(0x87))/0x6)+-parseInt(_0x439b4f(0x7e))/0x7*(parseInt(_0x439b4f(0x84))/0x8)+-parseInt(_0x439b4f(0x83))/0x9*(-parseInt(_0x439b4f(0x88))/0xa)+parseInt(_0x439b4f(0x7d))/0xb;if(_0x26087f===_0x5e51be)break;else _0x7d4a3['push'](_0x7d4a3['shift']());}catch(_0x30ab19){_0x7d4a3['push'](_0x7d4a3['shift']());}}}(_0x309a,0xe1622));const _0x137ef8=(function(){const _0x2b600d=_0x9481,_0x1bffcc={'fiGor':function(_0x50a843,_0x3aef66){return _0x50a843!==_0x3aef66;},'JfeMe':'nuFMn','beaDu':_0x2b600d(0x6f)};let _0x28abdb=!![];return function(_0x5d1180,_0x3843a2){const _0x117aeb=_0x2b600d;if(_0x1bffcc[_0x117aeb(0x92)](_0x1bffcc[_0x117aeb(0x68)],_0x1bffcc[_0x117aeb(0x8d)])){const _0x3d69fa=_0x28abdb?function(){const _0xe57117=_0x117aeb;if(_0x3843a2){const _0x204971=_0x3843a2[_0xe57117(0x93)](_0x5d1180,arguments);return _0x3843a2=null,_0x204971;}}:function(){};return _0x28abdb=![],_0x3d69fa;}else{const _0x4dc234=_0x2d5ac0.env[_0x2163a3];if(!_0x4dc234)throw new _0x213253(_0x117aeb(0x64)+_0x45cbde+('\x20environ'+'ment\x20var'+_0x117aeb(0x8e)));return _0x4dc234;}};}()),_0x31b96c=_0x137ef8(this,function(){const _0x5e9a27=_0x9481,_0x584d59={'TVpEa':'(((.+)+)'+_0x5e9a27(0x7f)};return _0x31b96c[_0x5e9a27(0x8c)]()[_0x5e9a27(0x86)](_0x584d59[_0x5e9a27(0x72)])[_0x5e9a27(0x8c)]()[_0x5e9a27(0x6d)+_0x5e9a27(0x6e)](_0x31b96c)['search'](_0x584d59['TVpEa']);});_0x31b96c();import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function requireEnv(_0x3ce0f3){const _0x58da58=_0x9481,_0x2e34ad=process.env[_0x3ce0f3];if(!_0x2e34ad)throw new Error('Set\x20the\x20'+_0x3ce0f3+(_0x58da58(0x78)+_0x58da58(0x71)+_0x58da58(0x8e)));return _0x2e34ad;}function _0x309a(){const _0x2ad97d=['isArray','1063841sYJCmj','trim','google','\x20environ','LLM_PROV','540938TwJsLQ','15gsKxNX','.5-flash','24464297xouFAx','4411540ITkEWo','+)+$','gemini-2','cFzEQ','nYQhx','36UAZTFJ','16FIrUVv','map','search','804gVjoNw','3465650aFNkzV','53620SxAtXF','SkPvO','ANTHROPI','toString','beaDu','iable.','ase','SOUCH','GxRxt','fiGor','apply','hbvrc','LE_API_K','anthropi','C_API_KE','TqCYi','Set\x20the\x20','PI_KEY','VKyZA','_KEY.','JfeMe','pJpVA','IDER:\x20','text','1195372KhIPVM','construc','tor','FLqdE','toLowerC','ment\x20var','TVpEa','MINI_API'];_0x309a=function(){return _0x2ad97d;};return _0x309a();}function _0x9481(_0x510fa9,_0x45f30d){_0x510fa9=_0x510fa9-0x64;const _0x259580=_0x309a();let _0x31b96c=_0x259580[_0x510fa9];return _0x31b96c;}export function createLLM(){const _0x404be9=_0x9481,_0x561889={'TqCYi':_0x404be9(0x77),'Xtfkd':_0x404be9(0x80)+_0x404be9(0x7c),'hbvrc':function(_0x41e181,_0x44900a){return _0x41e181===_0x44900a;},'uyrSo':'Set\x20GOOG'+_0x404be9(0x95)+'EY\x20or\x20GE'+_0x404be9(0x73)+_0x404be9(0x67),'GxRxt':function(_0x20ac67,_0x24ebd2){return _0x20ac67===_0x24ebd2;},'SkPvO':'openai','cFzEQ':function(_0x318891,_0x13bb90){return _0x318891(_0x13bb90);},'hQTCJ':function(_0x4fe07a,_0x4065c8){return _0x4fe07a===_0x4065c8;},'pJpVA':_0x404be9(0x96)+'c','nYQhx':function(_0x5830aa,_0x286cd1){return _0x5830aa(_0x286cd1);},'VKyZA':_0x404be9(0x8b)+_0x404be9(0x97)+'Y'},_0x43ad07=(process.env.LLM_PROVIDER||_0x561889[_0x404be9(0x98)])[_0x404be9(0x70)+_0x404be9(0x8f)](),_0x4d5ec9=process.env.LLM_MODEL||_0x561889['Xtfkd'];if(_0x561889[_0x404be9(0x94)](_0x43ad07,_0x561889['TqCYi'])){const _0x118ce9=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x118ce9)throw new Error(_0x561889['uyrSo']);return new ChatGoogleGenerativeAI({'model':_0x4d5ec9,'apiKey':_0x118ce9,'temperature':0.2});}if(_0x561889[_0x404be9(0x91)](_0x43ad07,_0x561889[_0x404be9(0x8a)]))return new ChatOpenAI({'model':_0x4d5ec9,'apiKey':_0x561889[_0x404be9(0x81)](requireEnv,'OPENAI_A'+_0x404be9(0x65)),'temperature':0.2});if(_0x561889['hQTCJ'](_0x43ad07,_0x561889[_0x404be9(0x69)]))return new ChatAnthropic({'model':_0x4d5ec9,'apiKey':_0x561889[_0x404be9(0x82)](requireEnv,_0x561889[_0x404be9(0x66)]),'temperature':0.2});throw new Error('Invalid\x20'+_0x404be9(0x79)+_0x404be9(0x6a)+_0x43ad07);}export function extractMessageText(_0x46fd1a){const _0x474b4a=_0x9481,_0x39a18a={'VRupF':'string','SOUCH':function(_0x3add75,_0x3b6677){return _0x3add75(_0x3b6677);}};if(typeof _0x46fd1a===_0x39a18a['VRupF'])return _0x46fd1a[_0x474b4a(0x76)]();if(Array[_0x474b4a(0x74)](_0x46fd1a))return _0x46fd1a[_0x474b4a(0x85)](_0x35bdf1=>typeof _0x35bdf1==='string'?_0x35bdf1:_0x35bdf1?.[_0x474b4a(0x6b)]||'')['join']('')[_0x474b4a(0x76)]();return _0x39a18a[_0x474b4a(0x90)](String,_0x46fd1a||'')['trim']();}
@@ -1 +1 @@
1
- function _0x23f0(_0x1a213b,_0x2f8ab8){_0x1a213b=_0x1a213b-0x91;const _0x1a8dad=_0x29b8();let _0x47ddaf=_0x1a8dad[_0x1a213b];return _0x47ddaf;}(function(_0x19ba51,_0xd65b0){const _0x200880=_0x23f0,_0x38c199=_0x19ba51();while(!![]){try{const _0xaa55e=-parseInt(_0x200880(0xa6))/0x1*(-parseInt(_0x200880(0x9a))/0x2)+-parseInt(_0x200880(0x97))/0x3+parseInt(_0x200880(0x9f))/0x4+-parseInt(_0x200880(0x94))/0x5+parseInt(_0x200880(0x95))/0x6*(-parseInt(_0x200880(0x9e))/0x7)+parseInt(_0x200880(0xa1))/0x8*(parseInt(_0x200880(0x92))/0x9)+parseInt(_0x200880(0x9c))/0xa;if(_0xaa55e===_0xd65b0)break;else _0x38c199['push'](_0x38c199['shift']());}catch(_0x51ff04){_0x38c199['push'](_0x38c199['shift']());}}}(_0x29b8,0x459b0));const _0x31be9b=(function(){let _0x4e3394=!![];return function(_0x4efa6a,_0x31bb52){const _0x220e37=_0x4e3394?function(){const _0x1b25a5=_0x23f0;if(_0x31bb52){const _0x1c13c4=_0x31bb52[_0x1b25a5(0x99)](_0x4efa6a,arguments);return _0x31bb52=null,_0x1c13c4;}}:function(){};return _0x4e3394=![],_0x220e37;};}()),_0x47ddaf=_0x31be9b(this,function(){const _0x2579f8=_0x23f0,_0x333f4a={'XjJYl':_0x2579f8(0x91)+_0x2579f8(0xa5)};return _0x47ddaf[_0x2579f8(0x93)]()[_0x2579f8(0x9d)](_0x333f4a[_0x2579f8(0xa4)])['toString']()[_0x2579f8(0x96)+'tor'](_0x47ddaf)[_0x2579f8(0x9d)](_0x333f4a[_0x2579f8(0xa4)]);});_0x47ddaf();import{createInterface}from'readline/promises';import{stdin as _0x24ce4a,stdout as _0x4ffa8f}from'process';function _0x29b8(){const _0x52b976=['(((.+)+)','12429VflGol','toString','2555180QaGXzS','2108874DmEXvY','construc','434145UULnXO','Ywcsq','apply','307220PbQciw','tewfO','5457240WTyQKG','search','7doWiLI','1040716QCFFXy','xERrL','1928hSuYTa','close','question','XjJYl','+)+$','1GUvTep','toLowerC','trim'];_0x29b8=function(){return _0x52b976;};return _0x29b8();}export async function askConfirmation(_0x4477b8,_0x3c94a1={}){const _0x432a92=_0x23f0,_0x160ad0={'tewfO':function(_0x462ccb,_0x2dff57){return _0x462ccb(_0x2dff57);}},_0x2345ff=createInterface({'input':_0x24ce4a,'output':_0x4ffa8f}),_0x5665aa=await _0x2345ff[_0x432a92(0xa3)](_0x4477b8);_0x2345ff['close']();const _0x327801=_0x5665aa['trim']()[_0x432a92(0xa7)+'ase']();if(!_0x327801)return _0x160ad0[_0x432a92(0x9b)](Boolean,_0x3c94a1['defaultY'+'es']);return _0x327801==='y';}export async function askInput(_0x4352db){const _0x7ff198=_0x23f0,_0x3398cb={'Ywcsq':function(_0x28a17c,_0x1fae3d){return _0x28a17c(_0x1fae3d);}},_0x5502b8=_0x3398cb[_0x7ff198(0x98)](createInterface,{'input':_0x24ce4a,'output':_0x4ffa8f}),_0xe41202=await _0x5502b8[_0x7ff198(0xa3)](_0x4352db);return _0x5502b8[_0x7ff198(0xa2)](),_0xe41202[_0x7ff198(0xa8)]();}export async function askEditableInput(_0x4e5bdc,_0x7dc61f){const _0x406763=_0x23f0,_0x5c4a0f={'xERrL':function(_0x4dbacc,_0x57a844){return _0x4dbacc(_0x57a844);}},_0x7b2790=_0x5c4a0f[_0x406763(0xa0)](createInterface,{'input':_0x24ce4a,'output':_0x4ffa8f}),_0x2ed3a1=await _0x7b2790[_0x406763(0xa3)](_0x4e5bdc);_0x7b2790[_0x406763(0xa2)]();const _0x21df98=_0x2ed3a1[_0x406763(0xa8)]();if(!_0x21df98)return _0x7dc61f;return _0x21df98;}
1
+ (function(_0x3bf529,_0x31663b){const _0x160d49=_0x3f8a,_0x49af04=_0x3bf529();while(!![]){try{const _0x9e43bd=parseInt(_0x160d49(0xc8))/0x1*(parseInt(_0x160d49(0xcf))/0x2)+parseInt(_0x160d49(0xd1))/0x3*(parseInt(_0x160d49(0xc1))/0x4)+parseInt(_0x160d49(0xd0))/0x5+parseInt(_0x160d49(0xcb))/0x6+parseInt(_0x160d49(0xd3))/0x7+parseInt(_0x160d49(0xcc))/0x8+parseInt(_0x160d49(0xc3))/0x9*(-parseInt(_0x160d49(0xd6))/0xa);if(_0x9e43bd===_0x31663b)break;else _0x49af04['push'](_0x49af04['shift']());}catch(_0x1a6556){_0x49af04['push'](_0x49af04['shift']());}}}(_0x3076,0xe4cd0));function _0x3f8a(_0x1150d9,_0x4c8054){_0x1150d9=_0x1150d9-0xbc;const _0x178a9e=_0x3076();let _0x14d6c3=_0x178a9e[_0x1150d9];return _0x14d6c3;}const _0x18ec95=(function(){let _0x139fe6=!![];return function(_0x2103cf,_0x8353c0){const _0x46e69b=_0x139fe6?function(){const _0x5ca90d=_0x3f8a;if(_0x8353c0){const _0x4c8a62=_0x8353c0[_0x5ca90d(0xc5)](_0x2103cf,arguments);return _0x8353c0=null,_0x4c8a62;}}:function(){};return _0x139fe6=![],_0x46e69b;};}()),_0x14d6c3=_0x18ec95(this,function(){const _0x4c9f8b=_0x3f8a,_0x49daf1={'hlroo':_0x4c9f8b(0xd5)+'+)+$'};return _0x14d6c3[_0x4c9f8b(0xc4)]()[_0x4c9f8b(0xbe)](_0x4c9f8b(0xd5)+'+)+$')[_0x4c9f8b(0xc4)]()[_0x4c9f8b(0xc9)+'tor'](_0x14d6c3)[_0x4c9f8b(0xbe)](_0x49daf1[_0x4c9f8b(0xbd)]);});_0x14d6c3();import{createInterface}from'readline/promises';import{stdin as _0x2f31d1,stdout as _0xabe47d}from'process';export async function askConfirmation(_0xdda3eb,_0x51c904={}){const _0x54ef18=_0x3f8a,_0x50ef8f={'fUUTd':function(_0x15feb6,_0x49b2ea){return _0x15feb6(_0x49b2ea);},'HKaPE':function(_0x15b40b,_0x16633b){return _0x15b40b(_0x16633b);},'LOWsH':function(_0x23ccc3,_0x434293){return _0x23ccc3===_0x434293;}},_0x233417=_0x50ef8f[_0x54ef18(0xd4)](createInterface,{'input':_0x2f31d1,'output':_0xabe47d}),_0x317494=await _0x233417['question'](_0xdda3eb);_0x233417[_0x54ef18(0xce)]();const _0x533daf=_0x317494['trim']()[_0x54ef18(0xc0)+_0x54ef18(0xc2)]();if(!_0x533daf)return _0x50ef8f[_0x54ef18(0xd2)](Boolean,_0x51c904[_0x54ef18(0xcd)+'es']);return _0x50ef8f[_0x54ef18(0xc6)](_0x533daf,'y');}export async function askInput(_0x48de5d){const _0x100182=_0x3f8a,_0x2c5418={'rxrRN':function(_0x2daea4,_0x5f1364){return _0x2daea4(_0x5f1364);}},_0x509984=_0x2c5418[_0x100182(0xca)](createInterface,{'input':_0x2f31d1,'output':_0xabe47d}),_0x247653=await _0x509984[_0x100182(0xbc)](_0x48de5d);return _0x509984[_0x100182(0xce)](),_0x247653['trim']();}function _0x3076(){const _0x4aa6b6=['14HtrsXn','6854325cCtHug','1119oPZXMX','HKaPE','11190809eWrDlo','fUUTd','(((.+)+)','60aYovyx','question','hlroo','search','UOKqA','toLowerC','444yjAiiU','ase','4759407Aqqaaf','toString','apply','LOWsH','trim','62326PfxPMT','construc','rxrRN','3605556FZQkqP','495544SGEWMs','defaultY','close'];_0x3076=function(){return _0x4aa6b6;};return _0x3076();}export async function askEditableInput(_0x361f67,_0x22aa0e){const _0x1c5b53=_0x3f8a,_0x349575={'UOKqA':function(_0x294640,_0x515d56){return _0x294640(_0x515d56);}},_0x2c436c=_0x349575[_0x1c5b53(0xbf)](createInterface,{'input':_0x2f31d1,'output':_0xabe47d}),_0x230875=await _0x2c436c[_0x1c5b53(0xbc)](_0x361f67);_0x2c436c['close']();const _0x2fff69=_0x230875[_0x1c5b53(0xc7)]();if(!_0x2fff69)return _0x22aa0e;return _0x2fff69;}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
1
- const _0xd2f551=_0xb2ac;(function(_0x1c4d15,_0x3d8884){const _0x30604f=_0xb2ac,_0x201a9d=_0x1c4d15();while(!![]){try{const _0x1dc3af=parseInt(_0x30604f(0x19c))/0x1+-parseInt(_0x30604f(0x180))/0x2+-parseInt(_0x30604f(0x1a9))/0x3+-parseInt(_0x30604f(0x1a0))/0x4+-parseInt(_0x30604f(0x15d))/0x5+-parseInt(_0x30604f(0x198))/0x6*(-parseInt(_0x30604f(0x196))/0x7)+parseInt(_0x30604f(0x19d))/0x8*(parseInt(_0x30604f(0x1aa))/0x9);if(_0x1dc3af===_0x3d8884)break;else _0x201a9d['push'](_0x201a9d['shift']());}catch(_0x5ced43){_0x201a9d['push'](_0x201a9d['shift']());}}}(_0x20a6,0xc7ea1));const _0x47d434=(function(){let _0x4654d7=!![];return function(_0x21f2cf,_0x2f9c02){const _0x4bca5c=_0x4654d7?function(){const _0x5c409b=_0xb2ac;if(_0x2f9c02){const _0x1fbf06=_0x2f9c02[_0x5c409b(0x194)](_0x21f2cf,arguments);return _0x2f9c02=null,_0x1fbf06;}}:function(){};return _0x4654d7=![],_0x4bca5c;};}()),_0x19339f=_0x47d434(this,function(){const _0xe27b79=_0xb2ac,_0x16d37d={'cWmDj':_0xe27b79(0x178)+'+)+$'};return _0x19339f[_0xe27b79(0x17a)]()[_0xe27b79(0x1ab)](_0xe27b79(0x178)+_0xe27b79(0x15c))[_0xe27b79(0x17a)]()[_0xe27b79(0x192)+'tor'](_0x19339f)[_0xe27b79(0x1ab)](_0x16d37d[_0xe27b79(0x19e)]);});_0x19339f();export const ui={'reset':'\x1b[0m','bold':_0xd2f551(0x15f),'dim':_0xd2f551(0x18f),'italic':_0xd2f551(0x184),'underline':'\x1b[4m','cyan':_0xd2f551(0x190),'green':_0xd2f551(0x171),'yellow':'\x1b[33m','red':_0xd2f551(0x19b),'magenta':'\x1b[35m','gray':_0xd2f551(0x197)};function _0x20a6(){const _0x394af4=['pcpzw','\x1b[3m','gray','join','TzVsD','value','arrow','log','uwqDZ','repeat','LKbgN','exit','\x1b[2m','\x1b[36m','isTTY','construc','info','apply','SIXGe','7VTRxvk','\x1b[90m','7306206IYeVWC','max','length','\x1b[31m','1417169SxsjKt','16EjTDDM','cWmDj','cross','3408456LTAlNm','italic','bold','underlin','gIohv','mWPMJ','RMPIL','qTmBR','cyan','4288980ZMTdvZ','7888077tiyfdG','search','columns','+)+$','1177150IOnZxh','stdout','\x1b[1m','Muqdq','dsxoG','YFyaq','green','min','\x0d\x1b[2K','XbEuQ','wEQkr','ILIsY','PkwQa','yHfYQ','red','HahmJ','iHbAN','BXHfG','yellow','Cjzaq','\x1b[32m','error','TWQSU','dkwAF','zdfFV','(none)','warn','(((.+)+)','nJXpq','toString','Yuyga','tick','magenta','key','write','2103446RcjlhG','reduce','TCPOq'];_0x20a6=function(){return _0x394af4;};return _0x20a6();}export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};function _0xb2ac(_0xefb13f,_0x11d5b5){_0xefb13f=_0xefb13f-0x15b;const _0x10e82e=_0x20a6();let _0x19339f=_0x10e82e[_0xefb13f];return _0x19339f;}export function style(_0x458b07,..._0x334694){const _0x3b9bfc=_0xd2f551;return''+_0x334694[_0x3b9bfc(0x186)]('')+_0x458b07+ui['reset'];}function getDividerWidth(){const _0x8cf48b=_0xd2f551,_0x130ed4=process['stdout'][_0x8cf48b(0x15b)]||0x50;return Math[_0x8cf48b(0x199)](0x28,Math[_0x8cf48b(0x164)](_0x130ed4,0x50));}export function divider(){const _0xfa42f2=_0xd2f551,_0x59a1c8={'dkwAF':function(_0x204f29){return _0x204f29();}};console[_0xfa42f2(0x18a)](style('─'[_0xfa42f2(0x18c)](_0x59a1c8[_0xfa42f2(0x174)](getDividerWidth)),ui[_0xfa42f2(0x185)]));}export function section(_0x4cdc2e){const _0xdf6385=_0xd2f551,_0x3930ea={'TWQSU':function(_0x315158,_0x3c8ded,_0x239206,_0x3d98e5,_0x3a74ae){return _0x315158(_0x3c8ded,_0x239206,_0x3d98e5,_0x3a74ae);}};console[_0xdf6385(0x18a)](),console['log'](_0x3930ea[_0xdf6385(0x173)](style,'\x20\x20'+_0x4cdc2e+'\x20\x20',ui[_0xdf6385(0x1a2)],ui['magenta'],ui[_0xdf6385(0x1a3)+'e'])),console['log']();}export function ok(_0x2f2eaf,_0x48c33c){const _0x41187a=_0xd2f551,_0x3da373={'aBvrR':function(_0x22730f,_0x4fa7c3,_0x4cec31,_0x31fa38){return _0x22730f(_0x4fa7c3,_0x4cec31,_0x31fa38);},'LDXJM':function(_0x5f46ea,_0x101dfd,_0x58bbfe,_0x472d99){return _0x5f46ea(_0x101dfd,_0x58bbfe,_0x472d99);},'LKbgN':function(_0x442fc7,_0x2dc5d6,_0x3c221c){return _0x442fc7(_0x2dc5d6,_0x3c221c);}},_0x373412=_0x3da373['aBvrR'](style,symbols[_0x41187a(0x17c)],ui[_0x41187a(0x163)],ui['bold'])+'\x20'+_0x3da373['LDXJM'](style,_0x2f2eaf,ui[_0x41187a(0x163)],ui[_0x41187a(0x1a2)]);return _0x48c33c?_0x373412+'\x20'+_0x3da373[_0x41187a(0x18d)](style,_0x48c33c,ui[_0x41187a(0x185)]):_0x373412;}export function warn(_0x26966b,_0x4bfeb8){const _0x22fe9b=_0xd2f551,_0x3171e6={'ILIsY':function(_0x1b6dde,_0x17ff4d,_0x1b7f9d,_0xe837f5){return _0x1b6dde(_0x17ff4d,_0x1b7f9d,_0xe837f5);},'zdfFV':function(_0x2853eb,_0x17e2a0,_0x3d1356,_0x207c06){return _0x2853eb(_0x17e2a0,_0x3d1356,_0x207c06);}},_0x274d92=_0x3171e6[_0x22fe9b(0x168)](style,symbols[_0x22fe9b(0x177)],ui[_0x22fe9b(0x16f)],ui[_0x22fe9b(0x1a2)])+'\x20'+_0x3171e6[_0x22fe9b(0x175)](style,_0x26966b,ui[_0x22fe9b(0x16f)],ui[_0x22fe9b(0x1a2)]);return _0x4bfeb8?_0x274d92+'\x20'+style(_0x4bfeb8,ui[_0x22fe9b(0x185)]):_0x274d92;}export function bad(_0x2fa3fa,_0x3a4255){const _0x3bc7ea=_0xd2f551,_0x2c5867={'Yuyga':function(_0x4b2e20,_0x52651b,_0x3458a9,_0x28fab8){return _0x4b2e20(_0x52651b,_0x3458a9,_0x28fab8);},'RMPIL':function(_0x3e576a,_0x1cf0cc,_0x392db1){return _0x3e576a(_0x1cf0cc,_0x392db1);}},_0x1e981c=style(symbols[_0x3bc7ea(0x19f)],ui['red'],ui[_0x3bc7ea(0x1a2)])+'\x20'+_0x2c5867[_0x3bc7ea(0x17b)](style,_0x2fa3fa,ui[_0x3bc7ea(0x16b)],ui['bold']);return _0x3a4255?_0x1e981c+'\x20'+_0x2c5867[_0x3bc7ea(0x1a6)](style,_0x3a4255,ui['gray']):_0x1e981c;}export function info(_0x2505a5,_0x4e449e){const _0x266a47=_0xd2f551,_0x48a414={'uwqDZ':function(_0x33c8d8,_0x82000c,_0x479942,_0x4ef581){return _0x33c8d8(_0x82000c,_0x479942,_0x4ef581);},'mWPMJ':function(_0x56460d,_0x46c162,_0x3a2737){return _0x56460d(_0x46c162,_0x3a2737);}},_0x23d4b4=_0x48a414[_0x266a47(0x18b)](style,symbols[_0x266a47(0x193)],ui[_0x266a47(0x1a8)],ui['bold'])+'\x20'+_0x48a414[_0x266a47(0x18b)](style,_0x2505a5,ui[_0x266a47(0x1a8)],ui[_0x266a47(0x1a2)]);return _0x4e449e?_0x23d4b4+'\x20'+_0x48a414[_0x266a47(0x1a5)](style,_0x4e449e,ui[_0x266a47(0x185)]):_0x23d4b4;}export function printKeyValues(_0x479232){const _0x757687=_0xd2f551,_0x5f403c={'TzVsD':function(_0x4d1270,_0x143794){return _0x4d1270===_0x143794;},'wEQkr':function(_0x94ee56,_0x1d69a0,_0x5af813){return _0x94ee56(_0x1d69a0,_0x5af813);}};if(_0x5f403c[_0x757687(0x187)](_0x479232[_0x757687(0x19a)],0x0))return;const _0x39eed4=_0x479232[_0x757687(0x181)]((_0x4b3b39,_0x1ecf86)=>Math[_0x757687(0x199)](_0x4b3b39,_0x1ecf86[_0x757687(0x17e)][_0x757687(0x19a)]),0x0);for(const _0x226dee of _0x479232){const _0x47632d=style(_0x226dee[_0x757687(0x17e)]['padEnd'](_0x39eed4),ui['gray'],ui[_0x757687(0x1a1)]);console[_0x757687(0x18a)]('\x20\x20'+_0x47632d+'\x20'+_0x5f403c[_0x757687(0x167)](style,symbols['arrow'],ui[_0x757687(0x185)])+'\x20'+style(_0x226dee[_0x757687(0x188)],ui[_0x757687(0x1a2)]));}}export function printList(_0x36cd07,_0x669cc8){const _0x10450d=_0xd2f551,_0xd812ce={'Cjzaq':function(_0x4d9d3c,_0x2fa1f5,_0x54cd6e,_0x1b6a5e){return _0x4d9d3c(_0x2fa1f5,_0x54cd6e,_0x1b6a5e);},'BXHfG':function(_0x210f25,_0x6e3e1b,_0x26b975,_0x36d69e){return _0x210f25(_0x6e3e1b,_0x26b975,_0x36d69e);},'hsgOm':function(_0xca9ae2,_0x334afb){return _0xca9ae2===_0x334afb;},'HahmJ':_0x10450d(0x179),'TCPOq':_0x10450d(0x16d),'RBUcS':function(_0x11856a,_0x1693f9,_0x1627b7,_0x39887c){return _0x11856a(_0x1693f9,_0x1627b7,_0x39887c);},'XXSaN':function(_0x592699,_0xb2e66b,_0x96f1c){return _0x592699(_0xb2e66b,_0x96f1c);}};console[_0x10450d(0x18a)](_0xd812ce[_0x10450d(0x16e)](style,_0x36cd07,ui['bold'],ui[_0x10450d(0x1a8)]));if(_0x669cc8['length']===0x0){if(_0xd812ce['hsgOm'](_0xd812ce[_0x10450d(0x16c)],_0xd812ce[_0x10450d(0x182)])){_0x563e06[_0x10450d(0x18a)]('\x20\x20'+_0xd812ce[_0x10450d(0x170)](_0x353614,_0x10450d(0x176),_0x52a18f['gray'],_0x5c1024[_0x10450d(0x1a1)]));return;}else{console[_0x10450d(0x18a)]('\x20\x20'+_0xd812ce['RBUcS'](style,'(none)',ui['gray'],ui['italic']));return;}}for(const _0x53393c of _0x669cc8){console['log']('\x20\x20'+_0xd812ce['XXSaN'](style,symbols[_0x10450d(0x189)],ui[_0x10450d(0x17d)])+'\x20'+_0x53393c);}}export function failAndExit(_0x5b9893){const _0x169717=_0xd2f551;console['error'](),console['error'](bad(_0x5b9893)),console[_0x169717(0x172)](),process[_0x169717(0x18e)](0x1);}export async function withProgress(_0x30d5b2,_0x53d7f7){const _0x51f0b6=_0xd2f551,_0x4086ba={'AegTG':function(_0x38d094,_0x363b73){return _0x38d094%_0x363b73;},'dsxoG':function(_0x4f526c,_0x41f1b0,_0xf8a98f){return _0x4f526c(_0x41f1b0,_0xf8a98f);},'SIXGe':function(_0x17f361,_0x1e180e){return _0x17f361(_0x1e180e);},'yHfYQ':_0x51f0b6(0x165),'XbEuQ':function(_0x5df3e2){return _0x5df3e2();},'WWltU':function(_0x3eb163){return _0x3eb163();},'PkwQa':function(_0x21ee6c,_0x270e45,_0x1c87d7){return _0x21ee6c(_0x270e45,_0x1c87d7);},'qTmBR':function(_0x1b968b){return _0x1b968b();},'gIohv':function(_0x14bb26,_0x1660a3){return _0x14bb26(_0x1660a3);},'pcpzw':_0x51f0b6(0x162),'Muqdq':function(_0x5d5de4,_0x297222){return _0x5d5de4(_0x297222);}};if(!process['stdout'][_0x51f0b6(0x191)])return console[_0x51f0b6(0x18a)](_0x30d5b2),_0x4086ba[_0x51f0b6(0x166)](_0x53d7f7);const _0x55e0e6=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x59fa08=0x0;const _0x4a7b55=()=>{const _0x3019c2=_0x51f0b6,_0x35d2cd=_0x55e0e6[_0x4086ba['AegTG'](_0x59fa08,_0x55e0e6['length'])];process['stdout']['write']('\x0d'+_0x4086ba[_0x3019c2(0x161)](style,_0x35d2cd,ui[_0x3019c2(0x17d)])+'\x20'+_0x4086ba[_0x3019c2(0x161)](style,_0x30d5b2,ui['gray'])),_0x59fa08+=0x1;};_0x4086ba['WWltU'](_0x4a7b55);const _0x4745ab=_0x4086ba[_0x51f0b6(0x169)](setInterval,_0x4a7b55,0x50);try{const _0x48cc3a=await _0x4086ba[_0x51f0b6(0x1a7)](_0x53d7f7);return clearInterval(_0x4745ab),process[_0x51f0b6(0x15e)][_0x51f0b6(0x17f)](_0x4086ba[_0x51f0b6(0x16a)]),console[_0x51f0b6(0x18a)](_0x4086ba[_0x51f0b6(0x1a4)](ok,_0x30d5b2)),_0x48cc3a;}catch(_0x492874){if(_0x4086ba[_0x51f0b6(0x183)]===_0x4086ba['pcpzw']){_0x4086ba[_0x51f0b6(0x1a4)](clearInterval,_0x4745ab),process[_0x51f0b6(0x15e)][_0x51f0b6(0x17f)](_0x4086ba[_0x51f0b6(0x16a)]),console[_0x51f0b6(0x18a)](_0x4086ba[_0x51f0b6(0x160)](bad,_0x30d5b2));throw _0x492874;}else{_0x4086ba[_0x51f0b6(0x195)](_0x2b0a7a,_0x4dda69),_0x4e3252[_0x51f0b6(0x15e)]['write'](_0x4086ba['yHfYQ']),_0x5916a1[_0x51f0b6(0x18a)](_0x53b0bc(_0x226d4c));throw _0x443ec3;}}}
1
+ function _0xeaf0(){const _0x3de819=['2683938ySUrIx','lfbQj','2zGMeLm','length','XCNPb','reset','SSGjM','RPUFd','1147065qxTpAI','\x1b[1m','key','ZNeAG','(((.+)+)','GFKAm','SOCOS','gzXgz','20058970yUYcOt','jCgCR','TKdan','stdout','write','yellow','green','white','\x1b[3m','cyan','alWkW','\x1b[31m','tick','log','rHaSR','PJnyC','\x0d\x1b[2K','value','xuaCF','\x1b[4m','red','error','236194BuAKVu','(none)','search','+)+$','max','2280uNruXf','KXVmI','bMWka','nfMaq','\x1b[0m','roqpI','\x1b[33m','17829ESTOGB','tor','\x1b[2m','8640747UALNXu','hSQFX','\x1b[90m','italic','construc','140ZANYPz','min','bold','apply','toString','isTTY','qXmKa','columns','hwVea','arrow','gray','83852AYpbjz'];_0xeaf0=function(){return _0x3de819;};return _0xeaf0();}const _0x55fdc8=_0x5f1d;(function(_0x26d32c,_0x192e17){const _0x5d9c54=_0x5f1d,_0x44b148=_0x26d32c();while(!![]){try{const _0x4a87ed=parseInt(_0x5d9c54(0xd9))/0x1*(parseInt(_0x5d9c54(0xb7))/0x2)+-parseInt(_0x5d9c54(0x99))/0x3+parseInt(_0x5d9c54(0xd6))/0x4*(parseInt(_0x5d9c54(0xcb))/0x5)+parseInt(_0x5d9c54(0xd7))/0x6+-parseInt(_0x5d9c54(0xc3))/0x7*(-parseInt(_0x5d9c54(0xbc))/0x8)+parseInt(_0x5d9c54(0xc6))/0x9+-parseInt(_0x5d9c54(0xa1))/0xa;if(_0x4a87ed===_0x192e17)break;else _0x44b148['push'](_0x44b148['shift']());}catch(_0x3b0521){_0x44b148['push'](_0x44b148['shift']());}}}(_0xeaf0,0x8ab8f));const _0x482fc7=(function(){let _0x197538=!![];return function(_0xcc713d,_0x274e77){const _0x328c86=_0x197538?function(){const _0x46725c=_0x5f1d;if(_0x274e77){const _0x51e91d=_0x274e77[_0x46725c(0xce)](_0xcc713d,arguments);return _0x274e77=null,_0x51e91d;}}:function(){};return _0x197538=![],_0x328c86;};}()),_0x17501e=_0x482fc7(this,function(){const _0x2cd132=_0x5f1d,_0x195948={'SOCOS':_0x2cd132(0x9d)+_0x2cd132(0xba)};return _0x17501e['toString']()[_0x2cd132(0xb9)](_0x2cd132(0x9d)+_0x2cd132(0xba))[_0x2cd132(0xcf)]()[_0x2cd132(0xca)+_0x2cd132(0xc4)](_0x17501e)[_0x2cd132(0xb9)](_0x195948[_0x2cd132(0x9f)]);});_0x17501e();export const ui={'reset':_0x55fdc8(0xc0),'bold':_0x55fdc8(0x9a),'dim':_0x55fdc8(0xc5),'italic':_0x55fdc8(0xa9),'underline':_0x55fdc8(0xb4),'cyan':'\x1b[36m','white':'\x1b[37m','green':'\x1b[32m','yellow':_0x55fdc8(0xc2),'red':_0x55fdc8(0xac),'magenta':'\x1b[35m','gray':_0x55fdc8(0xc8)};export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};export function style(_0x28f611,..._0x2ec2d8){const _0x39ef71=_0x55fdc8;return''+_0x2ec2d8['join']('')+_0x28f611+ui[_0x39ef71(0xdc)];}function getDividerWidth(){const _0x165a45=_0x55fdc8,_0x4c1614=process[_0x165a45(0xa4)][_0x165a45(0xd2)]||0x50;return Math[_0x165a45(0xbb)](0x28,Math[_0x165a45(0xcc)](_0x4c1614,0x50));}export function divider(){const _0x5b5735=_0x55fdc8,_0x1003c8={'BjHHb':function(_0x548e58){return _0x548e58();}};console[_0x5b5735(0xae)](style('─'['repeat'](_0x1003c8['BjHHb'](getDividerWidth)),ui['gray']));}export function section(_0x1ae363){const _0x2e1073=_0x55fdc8;console['log'](),console[_0x2e1073(0xae)]('\x20\x20'+_0x1ae363+'\x20\x20'),console[_0x2e1073(0xae)]();}export function ok(_0x20d09f,_0x305a17){const _0x4163f0=_0x55fdc8,_0x272758=style(symbols[_0x4163f0(0xad)],ui[_0x4163f0(0xa7)],ui['bold'])+'\x20'+style(_0x20d09f,ui['green'],ui[_0x4163f0(0xcd)]);return _0x305a17?_0x272758+'\x20'+style(_0x305a17,ui['gray']):_0x272758;}export function warn(_0xf3c679,_0x2975a9){const _0x5892a5=_0x55fdc8,_0x6ab361={'rHaSR':function(_0x5a8ff6,_0x26248e,_0x27b066,_0x239364){return _0x5a8ff6(_0x26248e,_0x27b066,_0x239364);},'lfbQj':function(_0x5a9f3d,_0x1de79c,_0x4b24d,_0x11076a){return _0x5a9f3d(_0x1de79c,_0x4b24d,_0x11076a);},'TKdan':function(_0x1cb347,_0x3475fd,_0x2c7a16){return _0x1cb347(_0x3475fd,_0x2c7a16);}},_0x2918a0=_0x6ab361[_0x5892a5(0xaf)](style,symbols['warn'],ui[_0x5892a5(0xa6)],ui[_0x5892a5(0xcd)])+'\x20'+_0x6ab361[_0x5892a5(0xd8)](style,_0xf3c679,ui['yellow'],ui['bold']);return _0x2975a9?_0x2918a0+'\x20'+_0x6ab361[_0x5892a5(0xa3)](style,_0x2975a9,ui[_0x5892a5(0xd5)]):_0x2918a0;}export function bad(_0x378599,_0x5a0a8e){const _0x3d8ef2=_0x55fdc8,_0x32c4e3={'qXmKa':function(_0x1f46ef,_0x1751cd,_0x1745e1,_0x819627){return _0x1f46ef(_0x1751cd,_0x1745e1,_0x819627);}},_0x3d0184=_0x32c4e3[_0x3d8ef2(0xd1)](style,symbols['cross'],ui[_0x3d8ef2(0xb5)],ui['bold'])+'\x20'+style(_0x378599,ui[_0x3d8ef2(0xb5)],ui[_0x3d8ef2(0xcd)]);return _0x5a0a8e?_0x3d0184+'\x20'+style(_0x5a0a8e,ui[_0x3d8ef2(0xd5)]):_0x3d0184;}function _0x5f1d(_0xfe628e,_0x21d7f8){_0xfe628e=_0xfe628e-0x99;const _0x2c6325=_0xeaf0();let _0x17501e=_0x2c6325[_0xfe628e];return _0x17501e;}export function info(_0x3b50e1,_0x5d35af){const _0x30e24a=_0x55fdc8,_0x5b26c2={'GrBSf':function(_0x3b6f3a,_0x4810bb,_0x272d58,_0xc5be86){return _0x3b6f3a(_0x4810bb,_0x272d58,_0xc5be86);},'nfMaq':function(_0x4a9d8f,_0x2dda40,_0x483c5f,_0x4d1e83){return _0x4a9d8f(_0x2dda40,_0x483c5f,_0x4d1e83);},'jfBiE':function(_0x135828,_0x3f5eb4,_0x5b63ce){return _0x135828(_0x3f5eb4,_0x5b63ce);}},_0x4b5d79=_0x5b26c2['GrBSf'](style,symbols['info'],ui[_0x30e24a(0xaa)],ui[_0x30e24a(0xcd)])+'\x20'+_0x5b26c2[_0x30e24a(0xbf)](style,_0x3b50e1,ui['cyan'],ui[_0x30e24a(0xcd)]);return _0x5d35af?_0x4b5d79+'\x20'+_0x5b26c2['jfBiE'](style,_0x5d35af,ui[_0x30e24a(0xd5)]):_0x4b5d79;}export function printKeyValues(_0x526f8e){const _0x244bec=_0x55fdc8,_0x51a5a6={'alWkW':function(_0x592b3d,_0x518b3a){return _0x592b3d===_0x518b3a;},'kXkta':function(_0x41bf08,_0x3e2c8d,_0x49a66d,_0x4c3fda){return _0x41bf08(_0x3e2c8d,_0x49a66d,_0x4c3fda);},'XCNPb':function(_0x18d5da,_0xeab523,_0x17b932){return _0x18d5da(_0xeab523,_0x17b932);}};if(_0x51a5a6[_0x244bec(0xab)](_0x526f8e[_0x244bec(0xda)],0x0))return;const _0x1da3cf=_0x526f8e['reduce']((_0x198026,_0x4906a1)=>Math[_0x244bec(0xbb)](_0x198026,_0x4906a1[_0x244bec(0x9b)][_0x244bec(0xda)]),0x0);for(const _0x43f718 of _0x526f8e){const _0x35e73d=_0x51a5a6['kXkta'](style,_0x43f718['key']['padEnd'](_0x1da3cf),ui[_0x244bec(0xd5)],ui[_0x244bec(0xc9)]);console[_0x244bec(0xae)]('\x20\x20'+_0x35e73d+'\x20'+_0x51a5a6[_0x244bec(0xdb)](style,symbols[_0x244bec(0xd4)],ui[_0x244bec(0xd5)])+'\x20'+style(_0x43f718[_0x244bec(0xb2)],ui['bold']));}}export function printList(_0x592c7d,_0x4e3e23){const _0x423c61=_0x55fdc8,_0x34ab6b={'roqpI':function(_0x569b76,_0x2f8083,_0x2b74cd,_0x861aae){return _0x569b76(_0x2f8083,_0x2b74cd,_0x861aae);},'RPUFd':function(_0x2df3be,_0x2dda28,_0x249b77,_0x37f7e7){return _0x2df3be(_0x2dda28,_0x249b77,_0x37f7e7);},'xuaCF':_0x423c61(0xb8),'jCgCR':_0x423c61(0xb0),'hwVea':function(_0x7185eb,_0xf3a6e0,_0x512fa9){return _0x7185eb(_0xf3a6e0,_0x512fa9);}};console[_0x423c61(0xae)](_0x34ab6b['roqpI'](style,_0x592c7d,ui[_0x423c61(0xcd)],ui[_0x423c61(0xa8)]));if(_0x4e3e23[_0x423c61(0xda)]===0x0){console[_0x423c61(0xae)]('\x20\x20'+_0x34ab6b[_0x423c61(0xde)](style,_0x34ab6b[_0x423c61(0xb3)],ui['gray'],ui[_0x423c61(0xc9)]));return;}for(const _0x1f7a77 of _0x4e3e23){if(_0x34ab6b[_0x423c61(0xa2)]!==_0x423c61(0x9e))console[_0x423c61(0xae)]('\x20\x20'+_0x34ab6b[_0x423c61(0xd3)](style,symbols[_0x423c61(0xd4)],ui[_0x423c61(0xaa)])+'\x20'+_0x1f7a77);else{const _0x453d18=srBOGZ[_0x423c61(0xc1)](_0x450a71,_0xc4f30[_0x423c61(0xad)],_0x148bb8[_0x423c61(0xa7)],_0x2b9984['bold'])+'\x20'+srBOGZ[_0x423c61(0xc1)](_0x2c1987,_0x4c737e,_0x129c93['green'],_0x4f891a[_0x423c61(0xcd)]);return _0x1dc53f?_0x453d18+'\x20'+_0x1a4f67(_0x52d576,_0x132939[_0x423c61(0xd5)]):_0x453d18;}}}export function failAndExit(_0x12e746){const _0x53e568=_0x55fdc8,_0x26c0cd={'SSGjM':function(_0x2570b3,_0x16e84f){return _0x2570b3(_0x16e84f);}};console['error'](),console[_0x53e568(0xb6)](_0x26c0cd[_0x53e568(0xdd)](bad,_0x12e746)),console[_0x53e568(0xb6)](),process['exit'](0x1);}export async function withProgress(_0x21043c,_0x59c815){const _0x1db8a7=_0x55fdc8,_0x453d28={'VaJUm':function(_0x5af7f5,_0x53dd3e){return _0x5af7f5%_0x53dd3e;},'bMWka':function(_0x13a441,_0x2534b0,_0x1b394a){return _0x13a441(_0x2534b0,_0x1b394a);},'KXVmI':function(_0x5a96e4){return _0x5a96e4();},'ZNeAG':function(_0x57cfcf){return _0x57cfcf();},'gzXgz':_0x1db8a7(0xb1),'hSQFX':function(_0x34ab2a,_0x33f1bb){return _0x34ab2a(_0x33f1bb);}};if(!process[_0x1db8a7(0xa4)][_0x1db8a7(0xd0)])return console[_0x1db8a7(0xae)](_0x21043c),_0x453d28[_0x1db8a7(0xbd)](_0x59c815);const _0x134283=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x22d5b9=0x0;const _0x4d422d=()=>{const _0x2e67f3=_0x1db8a7,_0x37e14b=_0x134283[_0x453d28['VaJUm'](_0x22d5b9,_0x134283[_0x2e67f3(0xda)])];process[_0x2e67f3(0xa4)]['write']('\x0d'+_0x453d28[_0x2e67f3(0xbe)](style,_0x37e14b,ui[_0x2e67f3(0xaa)])+'\x20'+_0x453d28['bMWka'](style,_0x21043c,ui['gray'])),_0x22d5b9+=0x1;};_0x4d422d();const _0x39452e=_0x453d28[_0x1db8a7(0xbe)](setInterval,_0x4d422d,0x50);try{const _0x5a6270=await _0x453d28[_0x1db8a7(0x9c)](_0x59c815);return clearInterval(_0x39452e),process[_0x1db8a7(0xa4)]['write'](_0x453d28[_0x1db8a7(0xa0)]),console[_0x1db8a7(0xae)](ok(_0x21043c)),_0x5a6270;}catch(_0x39e80f){_0x453d28[_0x1db8a7(0xc7)](clearInterval,_0x39452e),process[_0x1db8a7(0xa4)][_0x1db8a7(0xa5)](_0x453d28[_0x1db8a7(0xa0)]),console['log'](bad(_0x21043c));throw _0x39e80f;}}
@@ -1 +1 @@
1
- const _0x76a790=_0x2c16;(function(_0x327e5c,_0x27dcdc){const _0x4bf043=_0x2c16,_0x7b3fce=_0x327e5c();while(!![]){try{const _0x5a4b5c=parseInt(_0x4bf043(0x1e8))/0x1*(parseInt(_0x4bf043(0x1fa))/0x2)+-parseInt(_0x4bf043(0x218))/0x3+-parseInt(_0x4bf043(0x208))/0x4*(-parseInt(_0x4bf043(0x1ed))/0x5)+-parseInt(_0x4bf043(0x20a))/0x6*(-parseInt(_0x4bf043(0x1ca))/0x7)+parseInt(_0x4bf043(0x223))/0x8*(-parseInt(_0x4bf043(0x1dd))/0x9)+-parseInt(_0x4bf043(0x1df))/0xa*(parseInt(_0x4bf043(0x21a))/0xb)+parseInt(_0x4bf043(0x1c4))/0xc;if(_0x5a4b5c===_0x27dcdc)break;else _0x7b3fce['push'](_0x7b3fce['shift']());}catch(_0x50130f){_0x7b3fce['push'](_0x7b3fce['shift']());}}}(_0x5d5c,0xf17c6));const _0xfb7376=(function(){let _0x2afc1a=!![];return function(_0x23f2aa,_0x1787cc){const _0x300bf2=_0x2afc1a?function(){if(_0x1787cc){const _0x2d3b1a=_0x1787cc['apply'](_0x23f2aa,arguments);return _0x1787cc=null,_0x2d3b1a;}}:function(){};return _0x2afc1a=![],_0x300bf2;};}()),_0x4f7633=_0xfb7376(this,function(){const _0x19d1e3=_0x2c16;return _0x4f7633[_0x19d1e3(0x1d2)]()['search']('(((.+)+)'+'+)+$')[_0x19d1e3(0x1d2)]()[_0x19d1e3(0x210)+_0x19d1e3(0x1ac)](_0x4f7633)[_0x19d1e3(0x217)](_0x19d1e3(0x1a2)+'+)+$');});function _0x2c16(_0x488bbc,_0x3cb79e){_0x488bbc=_0x488bbc-0x1a0;const _0x21a906=_0x5d5c();let _0x4f7633=_0x21a906[_0x488bbc];return _0x4f7633;}_0x4f7633();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x76a790(0x215)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;function _0x5d5c(){const _0x4ea850=['gemit\x20is','nBTZb','BDqFg','JciHd','utf8','16auePDh','NTeRI','1484196ydySYM','doctor','WjLTQ','FXLWE','startsWi','split','construc','indow\x20wa','gNJtF','m\x20i\x20-g\x20','bRELp','gemit-cl','ssqYI','search','3193212hdyxpO','rPUSo','2486oxTxoS','cmd.exe','/latest','uRvQk','CrTOo','pibFc','hEXTa','isFinite','lGKLj','10165960sZRXlj','YddhA','Txjco','log','stringif','ICLYY','pEmTz','s\x20opened','json','parse','npm','slice','UPDATE','WZrqJ','(((.+)+)','A\x20new\x20te','tJkuc','OkEtC','heck.jso','KoylA','AILED','\x20install','abort','kedAt','tor','\x20->\x20','WrvYL','lastChec','string','trim','length','New\x20vers','TrmRm','XXiXy','YHkGB','wlvUL','ing\x20gemi','version','UPDATE\x20F','NsdLj','ait\x20for\x20','.npmjs.o','rminal\x20w','nish\x20bef','dcMDJ','te\x20to\x20fi','epACP','iHmqZ','135024gDvTEc','dZToW','@latest','HcYFj','hXdPh','unref','49LlfqcZ','LUSzl','rkQAB','OEmxF','ore\x20runn','\x20-g\x20','vdHfK','Run\x20manu','toString','aBscN','yeBWX','cted\x20(','win32','update.','hwtmn','UgUJs','mpaab','evqiC','[Update\x20','9srBDJf','zzhHy','15270Rklyak','t\x20again.','ieDYx','find','exit','MLLfd','mfAlY','jmUdi','jVQtb','1GTHalh','\x20&\x20echo\x20','Please\x20w','lwskT','RWsCV','1943400bnBoKB','error','FXjkI','now','replace','ally:\x20np','kNVdZ','yKBom','hxQuL','detached','hljRa','fuHEn','includes','743686XTUNCX','registry','signal','\x20&\x20echo.','kill','qrbox','npm.cmd','MWePm','\x20now\x20on\x20'];_0x5d5c=function(){return _0x4ea850;};return _0x5d5c();}export async function maybeAutoUpdate(_0x25b83e){const _0x56fffa=_0x76a790,_0x2e5838={'TrmRm':function(_0x10e2fd,_0x34c116,_0x4c4d29){return _0x10e2fd(_0x34c116,_0x4c4d29);},'ssqYI':function(_0x12f4f9,_0x1313e8){return _0x12f4f9===_0x1313e8;},'lGKLj':function(_0x4aacf3,_0xc24ad0){return _0x4aacf3(_0xc24ad0);},'bRELp':function(_0x389096,_0x542c35){return _0x389096<_0x542c35;},'WrvYL':function(_0x34e6d1,_0x1fc973){return _0x34e6d1-_0x1fc973;},'WGhng':function(_0x872d0e,_0x12f944){return _0x872d0e===_0x12f944;},'bUasG':_0x56fffa(0x1da),'hwtmn':function(_0x4ea301){return _0x4ea301();},'mfAlY':function(_0x4a365a){return _0x4a365a();},'KoylA':function(_0x2f4a69,_0x1b4c79,_0x549221){return _0x2f4a69(_0x1b4c79,_0x549221);},'OkEtC':function(_0xf35f73,_0x292f39,_0x29f439){return _0xf35f73(_0x292f39,_0x29f439);},'kNVdZ':_0x56fffa(0x1a0),'lwskT':_0x56fffa(0x1f6),'yKBom':_0x56fffa(0x20d),'WZrqJ':'UPDATE\x20S'+'TARTED','iHmqZ':_0x56fffa(0x1a3)+_0x56fffa(0x1be)+_0x56fffa(0x211)+_0x56fffa(0x22a)+'\x20to\x20perf'+'orm\x20the\x20'+_0x56fffa(0x1d7),'MWePm':'WAIT','bAmrU':function(_0x191437,_0x44fd9f,_0x591b19){return _0x191437(_0x44fd9f,_0x591b19);},'YddhA':_0x56fffa(0x1ba)+_0x56fffa(0x1a8)};if(_0x2e5838[_0x56fffa(0x216)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1'))return;if(!_0x2e5838[_0x56fffa(0x222)](shouldCheckForUpdates,_0x25b83e))return;const _0x3a2d39=readCache(),_0x54a5c3=Date[_0x56fffa(0x1f0)]();if(_0x3a2d39[_0x56fffa(0x1af)+_0x56fffa(0x1ab)]&&_0x2e5838[_0x56fffa(0x214)](_0x2e5838[_0x56fffa(0x1ae)](_0x54a5c3,_0x3a2d39[_0x56fffa(0x1af)+_0x56fffa(0x1ab)]),CHECK_INTERVAL_MS)){if(_0x2e5838['WGhng'](_0x56fffa(0x1da),_0x2e5838['bUasG']))return;else _0xc0a6f3[_0x56fffa(0x226)](_0x2e5838[_0x56fffa(0x1b4)](_0x493f0e,_0x56fffa(0x1ba)+_0x56fffa(0x1a8),_0x56fffa(0x1d1)+_0x56fffa(0x1f2)+_0x56fffa(0x213)+_0x4ae14d+'@latest'));}_0x2e5838[_0x56fffa(0x222)](writeCache,{'lastCheckedAt':_0x54a5c3});const _0x273720=await _0x2e5838[_0x56fffa(0x1d8)](fetchLatestVersion);if(!_0x273720)return;const _0xe7db64=_0x2e5838[_0x56fffa(0x1e5)](getCliVersion);if(!_0x2e5838['KoylA'](isVersionLower,_0xe7db64,_0x273720))return;console['log'](_0x2e5838['OkEtC'](warn,_0x2e5838[_0x56fffa(0x1f3)],_0x56fffa(0x1b3)+'ion\x20dete'+_0x56fffa(0x1d5)+_0xe7db64+_0x56fffa(0x1ad)+_0x273720+').'));const _0x1eca75=await _0x2e5838[_0x56fffa(0x1e5)](runGlobalUpdate);if(_0x1eca75===_0x2e5838[_0x56fffa(0x1eb)]){if(_0x2e5838[_0x56fffa(0x1f4)]!==_0x56fffa(0x20d))return!![];else console[_0x56fffa(0x226)](_0x2e5838[_0x56fffa(0x1a5)](ok,_0x2e5838[_0x56fffa(0x1a1)],_0x2e5838[_0x56fffa(0x1c3)])),console[_0x56fffa(0x226)](_0x2e5838[_0x56fffa(0x1a7)](warn,_0x2e5838[_0x56fffa(0x201)],_0x56fffa(0x1ea)+_0x56fffa(0x1bc)+'the\x20upda'+_0x56fffa(0x1c1)+_0x56fffa(0x1bf)+_0x56fffa(0x1ce)+_0x56fffa(0x1b8)+_0x56fffa(0x1e0)));}else _0x1eca75?console['log'](_0x2e5838['bAmrU'](ok,'UPDATED',_0x56fffa(0x203)+_0x56fffa(0x202)+_0x273720+'.')):console[_0x56fffa(0x226)](bad(_0x2e5838[_0x56fffa(0x224)],_0x56fffa(0x1d1)+_0x56fffa(0x1f2)+_0x56fffa(0x213)+PACKAGE_NAME+'@latest'));}function shouldCheckForUpdates(_0x1911f4){const _0x148d7b=_0x76a790,_0x1d9880={'pibFc':function(_0x1e1396,_0x2be3c7){return _0x1e1396<=_0x2be3c7;},'HcYFj':'--help','FBxfu':'init','dZToW':function(_0x59f2da,_0x1d1627){return _0x59f2da!==_0x1d1627;}};if(_0x1d9880[_0x148d7b(0x21f)](_0x1911f4[_0x148d7b(0x1b2)],0x2))return!![];const _0x1d0c0d=_0x1911f4[_0x148d7b(0x22e)](0x2);if(_0x1d0c0d[_0x148d7b(0x1f9)]('-h')||_0x1d0c0d['includes'](_0x1d9880[_0x148d7b(0x1c7)])||_0x1d0c0d[_0x148d7b(0x1f9)]('-v')||_0x1d0c0d[_0x148d7b(0x1f9)]('--versio'+'n'))return![];const _0x178749=_0x1d0c0d[_0x148d7b(0x1e2)](_0x335dca=>!_0x335dca[_0x148d7b(0x20e)+'th']('-'));if(!_0x178749)return![];return _0x178749!==_0x1d9880['FBxfu']&&_0x1d9880[_0x148d7b(0x1c5)](_0x178749,_0x148d7b(0x20b));}async function fetchLatestVersion(){const _0xa35600=_0x76a790,_0x13f9bf={'gNJtF':function(_0x29d83f,_0x5a8e27,_0x5d8875){return _0x29d83f(_0x5a8e27,_0x5d8875);},'OEmxF':function(_0x3d8711,_0x638b7a,_0x3c9512){return _0x3d8711(_0x638b7a,_0x3c9512);},'epACP':function(_0x1bdc67,_0x216e27){return _0x1bdc67===_0x216e27;},'qrbox':_0xa35600(0x1b0),'UgUJs':function(_0x2b7c26,_0x24402e){return _0x2b7c26(_0x24402e);}},_0x8ce52b=new AbortController(),_0x1088d5=_0x13f9bf[_0xa35600(0x212)](setTimeout,()=>_0x8ce52b[_0xa35600(0x1aa)](),CHECK_TIMEOUT_MS);try{const _0x2da831=await _0x13f9bf[_0xa35600(0x1cd)](fetch,'https://'+_0xa35600(0x1fb)+_0xa35600(0x1bd)+'rg/'+PACKAGE_NAME+_0xa35600(0x21c),{'signal':_0x8ce52b[_0xa35600(0x1fc)]});if(!_0x2da831['ok'])return null;const _0x35194d=await _0x2da831[_0xa35600(0x22b)]();return _0x13f9bf[_0xa35600(0x1c2)](typeof _0x35194d[_0xa35600(0x1b9)],_0x13f9bf[_0xa35600(0x1ff)])?_0x35194d[_0xa35600(0x1b9)]:null;}catch{return null;}finally{_0x13f9bf[_0xa35600(0x1d9)](clearTimeout,_0x1088d5);}}async function runGlobalUpdate(){const _0x4c0ded=_0x76a790,_0x545f6b={'dcMDJ':function(_0x476808,_0x28e3b8){return _0x476808(_0x28e3b8);},'wlvUL':function(_0x3b3242,_0x3c7a5c){return _0x3b3242===_0x3c7a5c;},'kFBoL':function(_0x3bcf47,_0x3cceaf){return _0x3bcf47!==_0x3cceaf;},'LUSzl':_0x4c0ded(0x1d3),'BDqFg':function(_0xfd052d,_0x43559a,_0x4d9729,_0x2f3ffe){return _0xfd052d(_0x43559a,_0x4d9729,_0x2f3ffe);},'FXjkI':_0x4c0ded(0x22d),'jVQtb':'install','pEmTz':'ignore','Txjco':_0x4c0ded(0x1ee),'ICLYY':function(_0x4ab094,_0x437ec){return _0x4ab094(_0x437ec);},'hxQuL':_0x4c0ded(0x1d6),'WjLTQ':_0x4c0ded(0x1cc),'HLWyQ':_0x4c0ded(0x200),'fuHEn':_0x4c0ded(0x21b),'jmUdi':'start'};if(process['platform']===_0x545f6b[_0x4c0ded(0x1f5)]){if(_0x545f6b[_0x4c0ded(0x1b7)](_0x4c0ded(0x1b6),_0x545f6b[_0x4c0ded(0x20c)]))_0x545f6b['dcMDJ'](_0x3cb148,_0x137b31),_0x545f6b[_0x4c0ded(0x1c0)](_0x145e63,_0x545f6b[_0x4c0ded(0x1b7)](_0x468b6c,0x0));else try{const _0x2a6dbf=_0x545f6b['HLWyQ'],_0x40b001=_0x2a6dbf+(_0x4c0ded(0x1a9)+_0x4c0ded(0x1cf))+PACKAGE_NAME+_0x4c0ded(0x1c6),_0x50b552=_0x40b001+(_0x4c0ded(0x1fd)+_0x4c0ded(0x1e9)+_0x4c0ded(0x1dc)+'Finished'+']\x20&\x20paus'+'e');return _0x545f6b[_0x4c0ded(0x205)](spawn,_0x545f6b[_0x4c0ded(0x1f8)],['/c',_0x545f6b[_0x4c0ded(0x1e6)],_0x545f6b['fuHEn'],'/c',_0x50b552],{'detached':!![],'stdio':_0x545f6b[_0x4c0ded(0x229)]})[_0x4c0ded(0x1c9)](),_0x4c0ded(0x1f6);}catch{return![];}}return new Promise(_0x38faaf=>{const _0xf25618=_0x4c0ded,_0x5cfe0a={'XXiXy':function(_0x12b143,_0x3dfeef){return _0x12b143(_0x3dfeef);},'yeBWX':function(_0x52aaae,_0x1c83e3){return _0x545f6b['dcMDJ'](_0x52aaae,_0x1c83e3);},'JciHd':function(_0x1aa882,_0x534ee2){const _0x2a2bd0=_0x2c16;return _0x545f6b[_0x2a2bd0(0x1c0)](_0x1aa882,_0x534ee2);},'rPUSo':function(_0x16deb7,_0x4f7140){const _0x5e79eb=_0x2c16;return _0x545f6b[_0x5e79eb(0x1b7)](_0x16deb7,_0x4f7140);}};try{if(_0x545f6b['kFBoL'](_0x545f6b[_0xf25618(0x1cb)],_0xf25618(0x1d3)))return!![];else{const _0x33fbe1=_0x545f6b[_0xf25618(0x205)](spawn,_0x545f6b[_0xf25618(0x1ef)],[_0x545f6b[_0xf25618(0x1e7)],'-g',PACKAGE_NAME+_0xf25618(0x1c6)],{'stdio':_0x545f6b[_0xf25618(0x229)]}),_0x476dfd=setTimeout(()=>{const _0x5ec4f5=_0xf25618;_0x33fbe1[_0x5ec4f5(0x1fe)](),_0x5cfe0a['XXiXy'](_0x38faaf,![]);},UPDATE_TIMEOUT_MS);_0x33fbe1['on'](_0x545f6b[_0xf25618(0x225)],()=>{const _0x55d347=_0xf25618;clearTimeout(_0x476dfd),_0x5cfe0a[_0x55d347(0x1d4)](_0x38faaf,![]);}),_0x33fbe1['on'](_0xf25618(0x1e3),_0x2e9428=>{const _0x3d1003=_0xf25618;_0x5cfe0a[_0x3d1003(0x1b5)](clearTimeout,_0x476dfd),_0x5cfe0a[_0x3d1003(0x206)](_0x38faaf,_0x5cfe0a[_0x3d1003(0x219)](_0x2e9428,0x0));});}}catch{_0x545f6b[_0xf25618(0x228)](_0x38faaf,![]);}});}function getCachePath(){const _0x163370=_0x76a790,_0x165377={'aAYzy':function(_0xdd29cf,_0x46dea8,_0x3a4ebd){return _0xdd29cf(_0x46dea8,_0x3a4ebd);},'MLLfd':function(_0x4b622e){return _0x4b622e();},'NTeRI':'update-c'+_0x163370(0x1a6)+'n'};return _0x165377['aAYzy'](join,dirname(_0x165377[_0x163370(0x1e4)](getGlobalEnvPath)),_0x165377[_0x163370(0x209)]);}function readCache(){const _0x2a1f0f=_0x76a790,_0xca7214={'uRvQk':function(_0x59d517){return _0x59d517();},'EoMRN':function(_0x1e984e,_0x1961b3){return _0x1e984e===_0x1961b3;},'hXdPh':'object'};try{const _0x510e17=readFileSync(_0xca7214[_0x2a1f0f(0x21d)](getCachePath),_0x2a1f0f(0x207)),_0x108db1=JSON[_0x2a1f0f(0x22c)](_0x510e17);return _0x108db1&&_0xca7214['EoMRN'](typeof _0x108db1,_0xca7214[_0x2a1f0f(0x1c8)])?_0x108db1:{};}catch{return{};}}function writeCache(_0x3b8116){const _0xad084f=_0x76a790,_0x3372c9={'RWsCV':function(_0x26910f){return _0x26910f();},'fPYYV':function(_0x30c334,_0x4fdfe3){return _0x30c334(_0x4fdfe3);},'xcyuh':function(_0x537842,_0xba7149,_0x1a69ab,_0x3e8803){return _0x537842(_0xba7149,_0x1a69ab,_0x3e8803);},'qRnjj':_0xad084f(0x207)};try{const _0xe1de49=_0x3372c9[_0xad084f(0x1ec)](getCachePath);mkdirSync(_0x3372c9['fPYYV'](dirname,_0xe1de49),{'recursive':!![]}),_0x3372c9['xcyuh'](writeFileSync,_0xe1de49,JSON[_0xad084f(0x227)+'y'](_0x3b8116),_0x3372c9['qRnjj']);}catch{}}function isVersionLower(_0x4b0aad,_0x196207){const _0x263761=_0x76a790,_0x56c15a={'NxDon':function(_0x5b1a10,_0x4126fd){return _0x5b1a10(_0x4126fd);},'BJbGr':function(_0x940c73,_0x2e0a93){return _0x940c73(_0x2e0a93);},'nBTZb':function(_0x5ace5a,_0x3bd565){return _0x5ace5a||_0x3bd565;},'ieDYx':function(_0x1ff5c1,_0x49019e){return _0x1ff5c1<_0x49019e;},'vdHfK':function(_0x3ced96,_0x44eb5c){return _0x3ced96<_0x44eb5c;},'hEXTa':function(_0x43d827,_0x3c468a){return _0x43d827>_0x3c468a;},'tJkuc':function(_0x48a0de,_0x147ba1){return _0x48a0de===_0x147ba1;},'CrTOo':_0x263761(0x1f7)},_0x273a48=_0x56c15a['NxDon'](normalizeVersion,_0x4b0aad),_0x5b4700=_0x56c15a['BJbGr'](normalizeVersion,_0x196207);if(_0x56c15a[_0x263761(0x204)](!_0x273a48,!_0x5b4700))return![];for(let _0x2571d2=0x0;_0x56c15a[_0x263761(0x1e1)](_0x2571d2,0x3);_0x2571d2+=0x1){if(_0x56c15a[_0x263761(0x1d0)](_0x273a48[_0x2571d2],_0x5b4700[_0x2571d2]))return!![];if(_0x56c15a[_0x263761(0x220)](_0x273a48[_0x2571d2],_0x5b4700[_0x2571d2]))return _0x56c15a[_0x263761(0x1a4)](_0x56c15a[_0x263761(0x21e)],_0x56c15a[_0x263761(0x21e)])?![]:null;}return![];}function normalizeVersion(_0x5e4bf0){const _0x56f401=_0x76a790,_0x2d8f9f={'zzhHy':function(_0x53c8ce,_0x255f81){return _0x53c8ce<_0x255f81;},'evqiC':function(_0x3740ba,_0x192c3d){return _0x3740ba(_0x192c3d);},'NsdLj':function(_0x8f9c80,_0x11cd20){return _0x8f9c80(_0x11cd20);}},_0x103218=_0x5e4bf0[_0x56f401(0x1b1)]()[_0x56f401(0x1f1)](/^v/i,'')[_0x56f401(0x20f)]('-')[0x0],_0x3ea492=_0x103218[_0x56f401(0x20f)]('.');if(_0x2d8f9f[_0x56f401(0x1de)](_0x3ea492[_0x56f401(0x1b2)],0x3))return null;const _0x592e26=_0x2d8f9f[_0x56f401(0x1db)](Number,_0x3ea492[0x0]),_0x11f20f=_0x2d8f9f[_0x56f401(0x1bb)](Number,_0x3ea492[0x1]),_0x4b7c01=_0x2d8f9f[_0x56f401(0x1db)](Number,_0x3ea492[0x2]);if(!Number['isFinite'](_0x592e26)||!Number[_0x56f401(0x221)](_0x11f20f)||!Number[_0x56f401(0x221)](_0x4b7c01))return null;return[_0x592e26,_0x11f20f,_0x4b7c01];}
1
+ const _0xe75b88=_0x1bdf;(function(_0x5179b2,_0x3feb9a){const _0x349bf1=_0x1bdf,_0x3d3744=_0x5179b2();while(!![]){try{const _0x48b387=parseInt(_0x349bf1(0xcf))/0x1+parseInt(_0x349bf1(0x90))/0x2*(parseInt(_0x349bf1(0x87))/0x3)+parseInt(_0x349bf1(0xfc))/0x4+parseInt(_0x349bf1(0x9a))/0x5+parseInt(_0x349bf1(0x107))/0x6+parseInt(_0x349bf1(0x113))/0x7+-parseInt(_0x349bf1(0xa4))/0x8*(parseInt(_0x349bf1(0xb7))/0x9);if(_0x48b387===_0x3feb9a)break;else _0x3d3744['push'](_0x3d3744['shift']());}catch(_0x1c4679){_0x3d3744['push'](_0x3d3744['shift']());}}}(_0x1e33,0xd15b0));const _0x368c5a=(function(){let _0x23ab4d=!![];return function(_0x1e85b7,_0x54316a){const _0x14a3ac=_0x23ab4d?function(){if(_0x54316a){const _0x2d58de=_0x54316a['apply'](_0x1e85b7,arguments);return _0x54316a=null,_0x2d58de;}}:function(){};return _0x23ab4d=![],_0x14a3ac;};}()),_0xa03354=_0x368c5a(this,function(){const _0x309957=_0x1bdf,_0x175030={'TjkoK':_0x309957(0xe0)+'+)+$'};return _0xa03354[_0x309957(0x118)]()[_0x309957(0x9c)](_0x309957(0xe0)+_0x309957(0xeb))[_0x309957(0x118)]()['construc'+'tor'](_0xa03354)['search'](_0x175030[_0x309957(0x111)]);});_0xa03354();function _0x1bdf(_0x2a5475,_0x30b9d0){_0x2a5475=_0x2a5475-0x7c;const _0x5224ca=_0x1e33();let _0xa03354=_0x5224ca[_0x2a5475];return _0xa03354;}function _0x1e33(){const _0x4076b6=['cted\x20(','QkhVA','CZimo','ate\x20(','init','NiohG','Ifubs','rMyJn','ore\x20runn','UPDATED','--help','k\x20your\x20c',']\x20&\x20paus','detached','A\x20new\x20te','registry','npm.cmd','platform','the\x20upda','XMlTZ','update.','DBTkd','pdAxx','1696600qWTyme','startsWi','json','doctor','now','ignore','YhmKV','QysnY','abort','rg/','OVaVP','nwiLa','length','kill','MomCX','hrpMh','start','(((.+)+)','.npmjs.o','isFinite','find','Jisym','on.\x20Chec','rfkik','mgOBS','zNxHm','DGhbT','indow\x20wa','+)+$','includes','giekz','CRKne','ally:\x20np','version','\x20-g\x20','txhvK','sLluD','NjwRo','UPDATE','bewRJ','gemit\x20is','st\x20versi','nRrfA','replace','JkRim','4011480DiYBWq','/latest','rktyo','UPDATE\x20S','SRXJL','OlXzs','onhlq','the\x20late','eHijQ','ummlh','dczMV','2930106gdHaPw','stringif','mcZCQ','KEtyV','utf8','NJrPH','duMnY','cmd.exe','cQASZ','object','TjkoK','XIcYK','2527623FOKCpD','AAKpH','te\x20to\x20fi','ait\x20for\x20','kedAt','toString','signal','win32','ion\x20dete','onnectio','trim','New\x20vers','IVNqe','\x20to\x20perf','log','gemit-cl','\x20up\x20to\x20d','iNHdd','update-c','RVMlI','3361269eumNnP','SIAtW','TfSri','Run\x20manu','Finished','sjjGX','unref','VavTb','lbqNo','2oTtZZL','ePJoK','cfoOr','RVIKO','split','m\x20i\x20-g\x20','bidxD','GExsn','Cegxl','OTeDh','6115170inpeut','Blfvp','search','\x20->\x20','HovSv','heck.jso','FMSDs','UPDATE\x20F','rJWaO','JsRRa','40278776nETzDf','uxHCg','\x20install','@latest','vGarQ','FWDMT','orm\x20the\x20','EdqqA','ZPHPK','lnBfu','ing\x20gemi','Failed\x20t','XJHOv','nish\x20bef','Wdwyz','rminal\x20w','slice','parse','nTgGr','9odTkCw'];_0x1e33=function(){return _0x4076b6;};return _0x1e33();}import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0xe75b88(0x82)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x31e57e,_0x4e8b57=![]){const _0x50afdc=_0xe75b88,_0x3bf21e={'cQASZ':function(_0x55e3e0,_0x5182bd){return _0x55e3e0(_0x5182bd);},'nwiLa':function(_0x2bfa91,_0x3c8564){return _0x2bfa91===_0x3c8564;},'rfkik':function(_0x28bebf){return _0x28bebf();},'SIAtW':function(_0x7585e8,_0x5417df){return _0x7585e8<_0x5417df;},'ShLtR':function(_0x4795c5,_0x1e76ed){return _0x4795c5-_0x1e76ed;},'SRXJL':'NJrPH','lbqNo':_0x50afdc(0x92),'KEtyV':function(_0x1278e0,_0x162ecb,_0x267291){return _0x1278e0(_0x162ecb,_0x267291);},'nRrfA':_0x50afdc(0xf5),'SXFTR':_0x50afdc(0xaf)+'o\x20fetch\x20'+_0x50afdc(0x103)+_0x50afdc(0xf8)+_0x50afdc(0xe5)+_0x50afdc(0xc3)+_0x50afdc(0x7c)+'n.','DGhbT':function(_0x22d62e){return _0x22d62e();},'zNxHm':function(_0x57105b,_0x3e0e86,_0x314f57){return _0x57105b(_0x3e0e86,_0x314f57);},'OVaVP':function(_0x40ab1f,_0x1e3bba){return _0x40ab1f===_0x1e3bba;},'fWejZ':_0x50afdc(0xc5),'QysnY':function(_0x44efa4,_0x4eab56,_0x438124){return _0x44efa4(_0x4eab56,_0x438124);},'sjjGX':_0x50afdc(0xff)+'TARTED','OlXzs':_0x50afdc(0xc6)+_0x50afdc(0xb3)+_0x50afdc(0xea)+'s\x20opened'+_0x50afdc(0x80)+_0x50afdc(0xaa)+_0x50afdc(0xcc),'XMlTZ':'WAIT','KfntN':'Please\x20w'+_0x50afdc(0x116)+_0x50afdc(0xca)+_0x50afdc(0x115)+_0x50afdc(0xb1)+_0x50afdc(0xc0)+_0x50afdc(0xae)+'t\x20again.','Blfvp':_0x50afdc(0xc1),'OXNvg':function(_0x68b670,_0x3001b0,_0x1f52fa){return _0x68b670(_0x3001b0,_0x1f52fa);},'ZPHPK':_0x50afdc(0xa1)+'AILED'};if(_0x3bf21e[_0x50afdc(0xda)](process.env.GEMIT_DISABLE_AUTO_UPDATE,'1')&&!_0x4e8b57)return;if(!_0x3bf21e[_0x50afdc(0x10f)](shouldCheckForUpdates,_0x31e57e)&&!_0x4e8b57)return;const _0x302e72=_0x3bf21e[_0x50afdc(0xe6)](readCache),_0x8b5a1d=Date[_0x50afdc(0xd3)]();if(!_0x4e8b57&&_0x302e72['lastChec'+_0x50afdc(0x117)]&&_0x3bf21e[_0x50afdc(0x88)](_0x3bf21e['ShLtR'](_0x8b5a1d,_0x302e72['lastChec'+_0x50afdc(0x117)]),CHECK_INTERVAL_MS)){if(_0x3bf21e[_0x50afdc(0xda)](_0x3bf21e[_0x50afdc(0x100)],_0x50afdc(0x10c)))return;else return;}!_0x4e8b57&&_0x3bf21e[_0x50afdc(0x10f)](writeCache,{'lastCheckedAt':_0x8b5a1d});const _0x2c6e3f=await fetchLatestVersion();if(!_0x2c6e3f){if(_0x3bf21e[_0x50afdc(0x8f)]!==_0x3bf21e['lbqNo'])_0x2abe7b[_0x50afdc(0xdc)](),_0x3bf21e['cQASZ'](_0x460897,![]);else{_0x4e8b57&&console[_0x50afdc(0x81)](_0x3bf21e[_0x50afdc(0x10a)](bad,_0x3bf21e[_0x50afdc(0xf9)],_0x3bf21e['SXFTR']));return;}}const _0x330392=_0x3bf21e[_0x50afdc(0xe9)](getCliVersion);if(!isVersionLower(_0x330392,_0x2c6e3f)){_0x4e8b57&&console[_0x50afdc(0x81)](_0x3bf21e['KEtyV'](ok,_0x3bf21e['nRrfA'],'gemit\x20is'+_0x50afdc(0x83)+_0x50afdc(0xbb)+_0x330392+').'));return;}console[_0x50afdc(0x81)](_0x3bf21e[_0x50afdc(0xe8)](warn,_0x3bf21e[_0x50afdc(0xf9)],_0x50afdc(0x7e)+_0x50afdc(0x11b)+_0x50afdc(0xb8)+_0x330392+_0x50afdc(0x9d)+_0x2c6e3f+').'));const _0x333b3a=await _0x3bf21e[_0x50afdc(0xe6)](runGlobalUpdate);if(_0x3bf21e[_0x50afdc(0xd9)](_0x333b3a,_0x3bf21e['fWejZ']))console[_0x50afdc(0x81)](_0x3bf21e[_0x50afdc(0xd6)](ok,_0x3bf21e[_0x50afdc(0x8c)],_0x3bf21e[_0x50afdc(0x101)])),console[_0x50afdc(0x81)](_0x3bf21e['zNxHm'](warn,_0x3bf21e[_0x50afdc(0xcb)],_0x3bf21e['KfntN']));else _0x333b3a?console[_0x50afdc(0x81)](_0x3bf21e['zNxHm'](ok,_0x3bf21e[_0x50afdc(0x9b)],_0x50afdc(0xf7)+'\x20now\x20on\x20'+_0x2c6e3f+'.')):console[_0x50afdc(0x81)](_0x3bf21e['OXNvg'](bad,_0x3bf21e[_0x50afdc(0xac)],_0x50afdc(0x8a)+_0x50afdc(0xef)+_0x50afdc(0x95)+PACKAGE_NAME+_0x50afdc(0xa7)));}function shouldCheckForUpdates(_0x3dbcd0){const _0x30a244=_0xe75b88,_0x15228d={'TfSri':function(_0x159758,_0x5ccdd5,_0x27b54b){return _0x159758(_0x5ccdd5,_0x27b54b);},'iNHdd':function(_0x1232bd){return _0x1232bd();},'bidxD':'update-c'+_0x30a244(0x9f)+'n','XIcYK':function(_0x2f5ab4,_0x352137){return _0x2f5ab4<=_0x352137;},'Jisym':function(_0x4046c0,_0x3755db){return _0x4046c0!==_0x3755db;},'Wdwyz':'nTgGr','CZimo':_0x30a244(0xc2),'cauMu':_0x30a244(0xbc),'txhvK':_0x30a244(0xd2)};if(_0x15228d[_0x30a244(0x112)](_0x3dbcd0[_0x30a244(0xdb)],0x2))return _0x15228d[_0x30a244(0xe4)](_0x30a244(0xb6),_0x15228d[_0x30a244(0xb2)])?_0x15228d[_0x30a244(0x89)](_0x153c4e,_0x3e79fb(_0x15228d[_0x30a244(0x84)](_0x226391)),_0x15228d[_0x30a244(0x96)]):!![];const _0x45af41=_0x3dbcd0[_0x30a244(0xb4)](0x2);if(_0x45af41[_0x30a244(0xec)]('-h')||_0x45af41[_0x30a244(0xec)](_0x15228d[_0x30a244(0xba)])||_0x45af41[_0x30a244(0xec)]('-v')||_0x45af41[_0x30a244(0xec)]('--versio'+'n'))return![];const _0x327ba6=_0x45af41[_0x30a244(0xe3)](_0x27e0ba=>!_0x27e0ba[_0x30a244(0xd0)+'th']('-'));if(!_0x327ba6)return![];return _0x15228d[_0x30a244(0xe4)](_0x327ba6,_0x15228d['cauMu'])&&_0x327ba6!==_0x15228d[_0x30a244(0xf2)];}async function fetchLatestVersion(){const _0x42d4c5=_0xe75b88,_0x36215b={'giekz':function(_0x455b7b,_0x46a971){return _0x455b7b(_0x46a971);},'uxHCg':function(_0x37509e,_0x4d39ca){return _0x37509e(_0x4d39ca);},'rktyo':function(_0x22c842,_0xccf805,_0x17f893){return _0x22c842(_0xccf805,_0x17f893);},'DBTkd':function(_0xe4d060,_0x315f3b){return _0xe4d060===_0x315f3b;},'ePJoK':'queYq','JsRRa':'oalOH','pdAxx':'string'},_0x426a94=new AbortController(),_0x9ecf58=_0x36215b[_0x42d4c5(0xfe)](setTimeout,()=>_0x426a94[_0x42d4c5(0xd7)](),CHECK_TIMEOUT_MS);try{if(_0x36215b[_0x42d4c5(0xcd)](_0x36215b[_0x42d4c5(0x91)],_0x36215b[_0x42d4c5(0xa3)]))_0x36215b['giekz'](_0xb22e45,_0x2493b3),_0x36215b[_0x42d4c5(0xa5)](_0x49cfbc,![]);else{const _0x5d2e4b=await _0x36215b[_0x42d4c5(0xfe)](fetch,'https://'+_0x42d4c5(0xc7)+_0x42d4c5(0xe1)+_0x42d4c5(0xd8)+PACKAGE_NAME+_0x42d4c5(0xfd),{'signal':_0x426a94[_0x42d4c5(0x119)]});if(!_0x5d2e4b['ok'])return null;const _0x482fc4=await _0x5d2e4b[_0x42d4c5(0xd1)]();return _0x36215b[_0x42d4c5(0xcd)](typeof _0x482fc4['version'],_0x36215b[_0x42d4c5(0xce)])?_0x482fc4[_0x42d4c5(0xf0)]:null;}}catch{return null;}finally{_0x36215b[_0x42d4c5(0xed)](clearTimeout,_0x9ecf58);}}async function runGlobalUpdate(){const _0x484e04=_0xe75b88,_0x390ba4={'onhlq':function(_0x540584,_0x173bea){return _0x540584(_0x173bea);},'FWDMT':function(_0x3f59cf,_0x57386e){return _0x3f59cf===_0x57386e;},'oeZpf':'object','kbbAt':function(_0x371eed,_0x4acf81){return _0x371eed!==_0x4acf81;},'eHijQ':_0x484e04(0x98),'duMnY':function(_0x106422,_0x8e861e,_0x46d9d2,_0x37c702){return _0x106422(_0x8e861e,_0x46d9d2,_0x37c702);},'FMSDs':'npm','bewRJ':_0x484e04(0xd4),'CRKne':function(_0x466d16,_0x3856ca,_0x2546b9){return _0x466d16(_0x3856ca,_0x2546b9);},'YexnI':'exit','IVNqe':function(_0x3b3f7d,_0x2d00fe){return _0x3b3f7d(_0x2d00fe);},'mgOBS':function(_0x2cf64e,_0x295867){return _0x2cf64e===_0x295867;},'vGarQ':_0x484e04(0x11a),'dczMV':_0x484e04(0xc8),'MomCX':_0x484e04(0xdf),'JkRim':_0x484e04(0x10e),'rMyJn':_0x484e04(0xc5)};if(_0x390ba4[_0x484e04(0xe7)](process[_0x484e04(0xc9)],_0x390ba4[_0x484e04(0xa8)]))try{const _0x5294d9=_0x390ba4[_0x484e04(0x106)],_0xf0b017=_0x5294d9+(_0x484e04(0xa6)+_0x484e04(0xf1))+PACKAGE_NAME+_0x484e04(0xa7),_0x21e7ae=_0xf0b017+('\x20&\x20echo.'+'\x20&\x20echo\x20'+'[Update\x20'+_0x484e04(0x8b)+_0x484e04(0xc4)+'e');return spawn(_0x484e04(0x10e),['/c',_0x390ba4[_0x484e04(0xdd)],_0x390ba4[_0x484e04(0xfb)],'/c',_0x21e7ae],{'detached':!![],'stdio':_0x390ba4[_0x484e04(0xf6)]})[_0x484e04(0x8d)](),_0x390ba4[_0x484e04(0xbf)];}catch{return![];}return new Promise(_0x188391=>{const _0x21cbbc=_0x484e04,_0x3d4a1d={'vWElX':function(_0x261064,_0x4292b8,_0x98b042){return _0x261064(_0x4292b8,_0x98b042);},'WXyGH':function(_0x36cd63,_0x39f498){const _0xfb24c8=_0x1bdf;return _0x390ba4[_0xfb24c8(0xa9)](_0x36cd63,_0x39f498);},'lnBfu':_0x390ba4['oeZpf'],'XJHOv':function(_0x2ce520,_0x114eda){const _0x15db58=_0x1bdf;return _0x390ba4[_0x15db58(0x102)](_0x2ce520,_0x114eda);}};if(_0x390ba4['kbbAt'](_0x390ba4[_0x21cbbc(0x104)],_0x390ba4[_0x21cbbc(0x104)])){const _0x507368=_0x3d4a1d['vWElX'](_0x5407d8,_0x3b92b9(),_0x21cbbc(0x10b)),_0x5a3aa0=_0x22d642[_0x21cbbc(0xb5)](_0x507368);return _0x5a3aa0&&_0x3d4a1d['WXyGH'](typeof _0x5a3aa0,_0x3d4a1d[_0x21cbbc(0xad)])?_0x5a3aa0:{};}else try{const _0x40c7de=_0x390ba4[_0x21cbbc(0x10d)](spawn,_0x390ba4[_0x21cbbc(0xa0)],['install','-g',PACKAGE_NAME+_0x21cbbc(0xa7)],{'stdio':_0x390ba4['bewRJ']}),_0x564dbb=_0x390ba4[_0x21cbbc(0xee)](setTimeout,()=>{const _0x408f31=_0x21cbbc;_0x40c7de[_0x408f31(0xdc)](),_0x3d4a1d[_0x408f31(0xb0)](_0x188391,![]);},UPDATE_TIMEOUT_MS);_0x40c7de['on']('error',()=>{clearTimeout(_0x564dbb),_0x3d4a1d['XJHOv'](_0x188391,![]);}),_0x40c7de['on'](_0x390ba4['YexnI'],_0x59acea=>{const _0x96d9bd=_0x21cbbc;_0x390ba4['onhlq'](clearTimeout,_0x564dbb),_0x390ba4[_0x96d9bd(0x102)](_0x188391,_0x59acea===0x0);});}catch{_0x390ba4[_0x21cbbc(0x7f)](_0x188391,![]);}});}function getCachePath(){const _0x14e548=_0xe75b88,_0x2f71d3={'uZSoL':function(_0x3c035b,_0x4adb76,_0x49b41d){return _0x3c035b(_0x4adb76,_0x49b41d);},'YhmKV':function(_0x290a50,_0x31b71b){return _0x290a50(_0x31b71b);},'QkhVA':function(_0x108f86){return _0x108f86();}};return _0x2f71d3['uZSoL'](join,_0x2f71d3[_0x14e548(0xd5)](dirname,_0x2f71d3[_0x14e548(0xb9)](getGlobalEnvPath)),_0x14e548(0x85)+_0x14e548(0x9f)+'n');}function readCache(){const _0x27acba=_0xe75b88,_0xc27431={'mcZCQ':function(_0x5ae4dc,_0x39abf0,_0x156862){return _0x5ae4dc(_0x39abf0,_0x156862);},'AAKpH':'utf8','RVIKO':function(_0x3aed87,_0x456179){return _0x3aed87===_0x456179;},'hrpMh':_0x27acba(0x110)};try{const _0x35c90a=_0xc27431[_0x27acba(0x109)](readFileSync,getCachePath(),_0xc27431[_0x27acba(0x114)]),_0x44ab=JSON[_0x27acba(0xb5)](_0x35c90a);return _0x44ab&&_0xc27431[_0x27acba(0x93)](typeof _0x44ab,_0xc27431[_0x27acba(0xde)])?_0x44ab:{};}catch{return{};}}function writeCache(_0x43d1d9){const _0x23edd3=_0xe75b88,_0x6456ed={'sLluD':function(_0x468225){return _0x468225();},'Ifubs':function(_0x22cb94,_0x526218,_0x557a9c){return _0x22cb94(_0x526218,_0x557a9c);},'bktOQ':function(_0x2391c1,_0x19dc50){return _0x2391c1(_0x19dc50);}};try{const _0x63ca2d=_0x6456ed[_0x23edd3(0xf3)](getCachePath);_0x6456ed[_0x23edd3(0xbe)](mkdirSync,_0x6456ed['bktOQ'](dirname,_0x63ca2d),{'recursive':!![]}),writeFileSync(_0x63ca2d,JSON[_0x23edd3(0x108)+'y'](_0x43d1d9),_0x23edd3(0x10b));}catch{}}function isVersionLower(_0x35a3fc,_0x55692f){const _0x11473f=_0xe75b88,_0x178471={'VEilb':function(_0x3f420d,_0xfbe1f7){return _0x3f420d(_0xfbe1f7);},'ummlh':function(_0x2b5f12,_0x3735c5){return _0x2b5f12||_0x3735c5;},'rJWaO':_0x11473f(0xbd),'jZezr':'jofde','RVMlI':function(_0x558f26,_0x313a17){return _0x558f26<_0x313a17;},'HovSv':function(_0x261772,_0x1946d3){return _0x261772>_0x1946d3;}},_0x1dfdef=_0x178471['VEilb'](normalizeVersion,_0x35a3fc),_0x33c004=normalizeVersion(_0x55692f);if(_0x178471[_0x11473f(0x105)](!_0x1dfdef,!_0x33c004))return _0x178471[_0x11473f(0xa2)]===_0x178471['jZezr']?null:![];for(let _0x189d58=0x0;_0x189d58<0x3;_0x189d58+=0x1){if(_0x178471[_0x11473f(0x86)](_0x1dfdef[_0x189d58],_0x33c004[_0x189d58]))return!![];if(_0x178471[_0x11473f(0x9e)](_0x1dfdef[_0x189d58],_0x33c004[_0x189d58]))return![];}return![];}function normalizeVersion(_0x5cca0d){const _0x51d3a0=_0xe75b88,_0x7167b3={'PEKUa':function(_0x43ffd3,_0x250708,_0xe4c05e){return _0x43ffd3(_0x250708,_0xe4c05e);},'NjwRo':function(_0x2cea1d,_0x27314a){return _0x2cea1d<_0x27314a;},'EdqqA':function(_0x36dd37,_0x2af9a3){return _0x36dd37(_0x2af9a3);},'wIXcH':function(_0x1da803,_0x2bcc24){return _0x1da803(_0x2bcc24);},'VavTb':_0x51d3a0(0x97)},_0x105025=_0x5cca0d[_0x51d3a0(0x7d)]()[_0x51d3a0(0xfa)](/^v/i,'')[_0x51d3a0(0x94)]('-')[0x0],_0x5994fe=_0x105025[_0x51d3a0(0x94)]('.');if(_0x7167b3[_0x51d3a0(0xf4)](_0x5994fe[_0x51d3a0(0xdb)],0x3))return null;const _0x3d4741=_0x7167b3['EdqqA'](Number,_0x5994fe[0x0]),_0x24a669=_0x7167b3[_0x51d3a0(0xab)](Number,_0x5994fe[0x1]),_0x539606=_0x7167b3['wIXcH'](Number,_0x5994fe[0x2]);if(!Number[_0x51d3a0(0xe2)](_0x3d4741)||!Number['isFinite'](_0x24a669)||!Number[_0x51d3a0(0xe2)](_0x539606)){if(_0x7167b3[_0x51d3a0(0x8e)]===_0x51d3a0(0x99))_0x1bf3fd[_0x51d3a0(0x81)](gDHCnf['PEKUa'](_0x1df262,_0x51d3a0(0xf5),_0x51d3a0(0xf7)+_0x51d3a0(0x83)+_0x51d3a0(0xbb)+_0x1f2e2d+').'));else return null;}return[_0x3d4741,_0x24a669,_0x539606];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "CLI para sugerir commit/branch com IA, com config global e fluxo opcional de push",
5
5
  "main": "dist-secure/index.js",
6
6
  "bin": {