gemit-cli 1.7.2 → 1.8.0

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(_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
+ (function(_0x52626e,_0x5b5c01){const _0x5315cb=_0x3d10,_0x35c340=_0x52626e();while(!![]){try{const _0x422ccb=-parseInt(_0x5315cb(0xfd))/0x1*(-parseInt(_0x5315cb(0x112))/0x2)+-parseInt(_0x5315cb(0x10c))/0x3*(parseInt(_0x5315cb(0xfb))/0x4)+-parseInt(_0x5315cb(0x10a))/0x5+-parseInt(_0x5315cb(0x107))/0x6*(parseInt(_0x5315cb(0xfa))/0x7)+-parseInt(_0x5315cb(0x100))/0x8*(parseInt(_0x5315cb(0x106))/0x9)+-parseInt(_0x5315cb(0x108))/0xa+-parseInt(_0x5315cb(0x115))/0xb*(-parseInt(_0x5315cb(0xf6))/0xc);if(_0x422ccb===_0x5b5c01)break;else _0x35c340['push'](_0x35c340['shift']());}catch(_0x2f815d){_0x35c340['push'](_0x35c340['shift']());}}}(_0x4398,0x412be));function _0x3d10(_0x5acde0,_0x481664){_0x5acde0=_0x5acde0-0xf5;const _0x5e64b8=_0x4398();let _0x3e015d=_0x5e64b8[_0x5acde0];return _0x3e015d;}const _0x41386f=(function(){let _0x2b0beb=!![];return function(_0x479be5,_0x2d21ed){const _0x30c8f0=_0x2b0beb?function(){if(_0x2d21ed){const _0x50ce18=_0x2d21ed['apply'](_0x479be5,arguments);return _0x2d21ed=null,_0x50ce18;}}:function(){};return _0x2b0beb=![],_0x30c8f0;};}()),_0x3e015d=_0x41386f(this,function(){const _0x30f28f=_0x3d10,_0xa8fb70={'CEfdk':_0x30f28f(0x102)+_0x30f28f(0xfe)};return _0x3e015d[_0x30f28f(0x104)]()['search'](_0xa8fb70[_0x30f28f(0xfc)])[_0x30f28f(0x104)]()[_0x30f28f(0x109)+'tor'](_0x3e015d)[_0x30f28f(0x10b)](_0xa8fb70[_0x30f28f(0xfc)]);});_0x3e015d();import{basename,dirname,join}from'path';import{readFileSync}from'fs';import{fileURLToPath}from'url';function _0x4398(){const _0x441ea6=['XxjpS','157298YrjXtP','yhgOS','BSBYu','143XskAjn','MnSbK','version','1349436hMbdWL','ppkOY','zMeLP','utf8','224NHDUVj','1284pMOfFK','CEfdk','1KfTlBR','+)+$','ure','4220984iVmoZL','dist-sec','(((.+)+)','parse','toString','json','9KUtuLz','48864HSjAFr','1452840VsIJaZ','construc','98615nLyPPd','search','2994dnKDKa','ogUni','BkJVW','WHCra','dist'];_0x4398=function(){return _0x441ea6;};return _0x4398();}export function getCliVersion(){const _0x5b79f4=_0x3d10,_0x57a0d7={'ppkOY':function(_0x17bac8,_0x56184f){return _0x17bac8(_0x56184f);},'WHCra':function(_0x35ace0,_0x81065){return _0x35ace0===_0x81065;},'LObbQ':function(_0x4c7ca2,_0x4d5732){return _0x4c7ca2(_0x4d5732);},'MnSbK':_0x5b79f4(0x110),'BSBYu':function(_0x397917,_0x3b1549){return _0x397917===_0x3b1549;},'ogUni':_0x5b79f4(0x101)+_0x5b79f4(0xff),'XxjpS':function(_0x57913f,_0x2e4caf,_0x92fd55,_0x20862b){return _0x57913f(_0x2e4caf,_0x92fd55,_0x20862b);},'zMeLP':'package.'+_0x5b79f4(0x105),'BkJVW':function(_0x36f992,_0x1c96bf,_0x1e8203){return _0x36f992(_0x1c96bf,_0x1e8203);},'yhgOS':function(_0x48c9df,_0x1c6ba8,_0x1215c7){return _0x48c9df(_0x1c6ba8,_0x1215c7);},'bFDrJ':_0x5b79f4(0xf9),'BsugL':'0.0.0'};try{const _0x1cb0e6=fileURLToPath(import.meta.url),_0x560925=_0x57a0d7[_0x5b79f4(0xf7)](dirname,_0x1cb0e6),_0x841879=_0x57a0d7[_0x5b79f4(0x10f)](_0x57a0d7['LObbQ'](basename,_0x560925),_0x57a0d7[_0x5b79f4(0x116)])||_0x57a0d7[_0x5b79f4(0x114)](basename(_0x560925),_0x57a0d7[_0x5b79f4(0x10d)])?_0x57a0d7[_0x5b79f4(0x111)](join,_0x560925,'..',_0x57a0d7[_0x5b79f4(0xf8)]):_0x57a0d7[_0x5b79f4(0x10e)](join,_0x560925,_0x57a0d7[_0x5b79f4(0xf8)]),_0x23b9f6=_0x57a0d7[_0x5b79f4(0x113)](readFileSync,_0x841879,_0x57a0d7['bFDrJ']),_0x1f89ad=JSON[_0x5b79f4(0x103)](_0x23b9f6);return _0x1f89ad[_0x5b79f4(0xf5)]||_0x57a0d7['BsugL'];}catch{return'0.0.0';}}
@@ -1 +1 @@
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
+ (function(_0x3d670,_0x34c57){var _0x526799=_0x21ca,_0x2c19bc=_0x3d670();while(!![]){try{var _0xf8853f=-parseInt(_0x526799(0x1e6))/0x1*(parseInt(_0x526799(0x1ed))/0x2)+-parseInt(_0x526799(0x1e5))/0x3+parseInt(_0x526799(0x1f9))/0x4+parseInt(_0x526799(0x1f8))/0x5+-parseInt(_0x526799(0x1e8))/0x6*(-parseInt(_0x526799(0x1e2))/0x7)+parseInt(_0x526799(0x1f0))/0x8+-parseInt(_0x526799(0x1ee))/0x9*(-parseInt(_0x526799(0x1e3))/0xa);if(_0xf8853f===_0x34c57)break;else _0x2c19bc['push'](_0x2c19bc['shift']());}catch(_0x3f60d2){_0x2c19bc['push'](_0x2c19bc['shift']());}}}(_0x1ef5,0x7d95a));function _0x21ca(_0xdd5c89,_0xa220e3){_0xdd5c89=_0xdd5c89-0x1df;var _0x5ddff5=_0x1ef5();var _0x577923=_0x5ddff5[_0xdd5c89];return _0x577923;}var _0x3761f5=(function(){var _0x44e7a2=!![];return function(_0x37f4a3,_0x116377){var _0x52b9df=_0x44e7a2?function(){var _0x391408=_0x21ca;if(_0x116377){var _0x5d4360=_0x116377[_0x391408(0x1df)](_0x37f4a3,arguments);return _0x116377=null,_0x5d4360;}}:function(){};return _0x44e7a2=![],_0x52b9df;};}()),_0x577923=_0x3761f5(this,function(){var _0x44128a=_0x21ca,_0x13079b={'fzryU':_0x44128a(0x1e0)+_0x44128a(0x1e4)};return _0x577923[_0x44128a(0x1f7)]()['search']('(((.+)+)'+_0x44128a(0x1e4))[_0x44128a(0x1f7)]()[_0x44128a(0x1ec)+'tor'](_0x577923)[_0x44128a(0x1f2)](_0x13079b[_0x44128a(0x1ef)]);});_0x577923();import{failAndExit}from'../ui.js';function _0x1ef5(){var _0x4d51fc=['(((.+)+)','check','4795jgpeTM','8980WIPnsU','+)+$','741411aWAAnt','618668zWabRt','he\x20sugge','4044CEoMdM','ZtVlU','ntinue\x20t','ow.','construc','2IBJvWw','711FJMWhD','fzryU','3201216EEYRuu','g\x20and\x20co','search','NwLzQ','\x20stage\x20e','stion\x20fl','all','toString','2180535lefZcR','45232CdDNPB','apply'];_0x1ef5=function(){return _0x4d51fc;};return _0x1ef5();}import{generateCommit}from'./commit.js';export async function addAndCommit(_0x486565={}){var _0x1137d2=_0x21ca,_0x441687={'ZtVlU':function(_0xc48630,_0x5d0caa){return _0xc48630(_0x5d0caa);},'NwLzQ':function(_0x7bed15,_0x42ec75){return _0x7bed15(_0x42ec75);}};!_0x486565[_0x1137d2(0x1f6)]&&failAndExit('Use\x20`gem'+'it\x20add\x20-'+'-all`\x20to'+_0x1137d2(0x1f4)+'verythin'+_0x1137d2(0x1f1)+_0x1137d2(0x1ea)+_0x1137d2(0x1e7)+_0x1137d2(0x1f5)+_0x1137d2(0x1eb)),await _0x441687[_0x1137d2(0x1e9)](generateCommit,{'all':!![],'check':_0x441687[_0x1137d2(0x1f3)](Boolean,_0x486565[_0x1137d2(0x1e1)])});}
@@ -1 +1 @@
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
+ (function(_0x1fe405,_0x508593){const _0x4d7c3c=_0x5dc5,_0x4eb6e0=_0x1fe405();while(!![]){try{const _0xfd4cd0=-parseInt(_0x4d7c3c(0x187))/0x1*(-parseInt(_0x4d7c3c(0x16f))/0x2)+parseInt(_0x4d7c3c(0x165))/0x3+parseInt(_0x4d7c3c(0x169))/0x4+parseInt(_0x4d7c3c(0x16e))/0x5+-parseInt(_0x4d7c3c(0x1a4))/0x6+parseInt(_0x4d7c3c(0x197))/0x7*(-parseInt(_0x4d7c3c(0x16d))/0x8)+-parseInt(_0x4d7c3c(0x14f))/0x9;if(_0xfd4cd0===_0x508593)break;else _0x4eb6e0['push'](_0x4eb6e0['shift']());}catch(_0x30f3d1){_0x4eb6e0['push'](_0x4eb6e0['shift']());}}}(_0x37e8,0xccff1));const _0x9acb64=(function(){let _0x358d72=!![];return function(_0x2e2133,_0x5409d7){const _0x32f276=_0x358d72?function(){const _0xbe7776=_0x5dc5;if(_0x5409d7){const _0x54853a=_0x5409d7[_0xbe7776(0x19a)](_0x2e2133,arguments);return _0x5409d7=null,_0x54853a;}}:function(){};return _0x358d72=![],_0x32f276;};}()),_0x2c86ec=_0x9acb64(this,function(){const _0x58b337=_0x5dc5,_0x5ce9ab={'bOGsK':_0x58b337(0x158)+_0x58b337(0x172)};return _0x2c86ec[_0x58b337(0x188)]()[_0x58b337(0x17a)](_0x5ce9ab['bOGsK'])[_0x58b337(0x188)]()[_0x58b337(0x153)+_0x58b337(0x182)](_0x2c86ec)[_0x58b337(0x17a)](_0x5ce9ab['bOGsK']);});function _0x5dc5(_0x2633e6,_0x4694ba){_0x2633e6=_0x2633e6-0x14b;const _0x2737cb=_0x37e8();let _0x2c86ec=_0x2737cb[_0x2633e6];return _0x2c86ec;}_0x2c86ec();import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';function _0x37e8(){const _0x5eef17=['MGKka','invoke','checkout','/n):\x20','inking\x20a','th\x20this\x20','git','Branch\x20w','s\x0a\x20\x20\x20\x20-\x20','eat,\x20fix','\x20test\x0a\x20\x20','2732493ZHJVge','-\x20Format','Failed\x20t','Allowed\x20','5545648OkNWJX','NLY\x20the\x20','message','as\x20not\x20c','112MSHjkw','5495215vVadTH','10yOkWtg','types:\x20f','>\x0a\x20\x20\x20\x20-\x20','+)+$','git\x20bran','replace','BdwXe','includes','ate','NFD','xists:\x20','search','log','SgIib','\x0a\x20\x20','erate\x20a\x20','fWdfx','HUdai','lready\x20e','tor','toLowerC',',\x20chore,','normaliz','FJQYb','127669zqeuWD','toString','mnnSR','name?\x20(y','/<kebab-','case-des','\x0a\x20\x20\x20\x20Rul','sponse..','FqLnh','Return\x20O','YCMFS','CANCELED','\x0a\x20\x20\x20\x20','ch\x20name\x20','Create\x20b','feat/upd','812539jyWPsa','mum\x20leng','ription:','apply','for\x20the\x20','AuQmh','\x20branch.','KfNge','feat/','DBkhd','reated.','ase','GUoyE','277788FkAfnZ','eVlMG','haracter','o\x20create','OVawY','D\x20BRANCH','content','o\x20genera','pwful','13712310lJMFqE','AI\x20is\x20th','SUGGESTE','es:\x0a\x20\x20\x20\x20','construc','d\x20below.','branch\x20n','h\x20name.','\x20docs,\x20r','(((.+)+)','NdyEt'];_0x37e8=function(){return _0x5eef17;};return _0x37e8();}import{askConfirmation}from'../prompts.js';import{branchExists,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,warn,withProgress}from'../ui.js';function sanitizeBranchName(_0x7fef5a){const _0x397ab5=_0x5dc5,_0x287c6c={'mnnSR':_0x397ab5(0x178),'HUdai':function(_0x57f5f6,_0x4f151a){return _0x57f5f6||_0x4f151a;},'SgIib':_0x397ab5(0x196)+_0x397ab5(0x177)},_0x4e0fba=_0x7fef5a[_0x397ab5(0x185)+'e'](_0x287c6c[_0x397ab5(0x189)])['replace'](/[\u0300-\u036f]/g,'')[_0x397ab5(0x183)+_0x397ab5(0x1a2)]()['replace'](/[^a-z0-9/-]+/g,'-')['replace'](/-{2,}/g,'-')[_0x397ab5(0x174)](/\/{2,}/g,'/')['replace'](/^-+|-+$/g,'')[_0x397ab5(0x174)](/^\/+|\/+$/g,''),_0x3ac183=_0x4e0fba['slice'](0x0,0x32)['replace'](/\/+$/g,'')['replace'](/-+$/g,''),_0x41b5ed=_0x287c6c[_0x397ab5(0x180)](_0x3ac183,_0x287c6c[_0x397ab5(0x17c)]);if(!_0x41b5ed[_0x397ab5(0x176)]('/'))return _0x397ab5(0x19f)+_0x41b5ed;return _0x41b5ed;}function getLLM(){const _0xcfd8e1=_0x5dc5,_0x1e4a9e={'OVawY':function(_0x6d1463){return _0x6d1463();},'NEunP':function(_0x34acb,_0x334213){return _0x34acb instanceof _0x334213;},'bPdgZ':function(_0x496323,_0x28fddb){return _0x496323(_0x28fddb);}};try{return _0x1e4a9e[_0xcfd8e1(0x1a8)](createLLM);}catch(_0x3aad54){const _0x2239cf=_0x1e4a9e['NEunP'](_0x3aad54,Error)?_0x3aad54[_0xcfd8e1(0x16b)]:_0x1e4a9e['bPdgZ'](String,_0x3aad54);failAndExit(_0x2239cf);}}export async function suggestBranch(_0x575e49){const _0x41824e=_0x5dc5,_0x555aa6={'NdyEt':function(_0x1b751b){return _0x1b751b();},'fWdfx':function(_0x371165,_0x416660,_0x3abe6f){return _0x371165(_0x416660,_0x3abe6f);},'AuQmh':_0x41824e(0x150)+_0x41824e(0x15e)+'nd\x20reque'+'sting\x20re'+_0x41824e(0x18e)+'.','FJQYb':function(_0x3b9c8d,_0x448ab9){return _0x3b9c8d(_0x448ab9);},'DBkhd':_0x41824e(0x167)+_0x41824e(0x14d)+'te\x20branc'+_0x41824e(0x156),'MGKka':_0x41824e(0x151)+_0x41824e(0x14b),'KfNge':function(_0x41470d,_0x5c26e3){return _0x41470d(_0x5c26e3);},'GUoyE':_0x41824e(0x192),'YCMFS':_0x41824e(0x161)+_0x41824e(0x16c)+_0x41824e(0x1a1),'pwful':function(_0x2f1365,_0x39707b,_0x3d37d3,_0x4d5d7f){return _0x2f1365(_0x39707b,_0x3d37d3,_0x4d5d7f);},'FYLIX':_0x41824e(0x160),'WhHcD':_0x41824e(0x15c),'BdwXe':'inherit','eVlMG':function(_0x36eeb5,_0x5a2a5f){return _0x36eeb5(_0x5a2a5f);},'FqLnh':'Failed\x20t'+_0x41824e(0x1a7)+_0x41824e(0x19d)};_0x555aa6[_0x41824e(0x159)](getGitStatus);const _0x1d9cd2=getLLM(),_0x2d52cf='\x0a\x20\x20\x20\x20Gen'+_0x41824e(0x17e)+_0x41824e(0x173)+_0x41824e(0x194)+_0x41824e(0x19b)+'feature\x20'+'describe'+_0x41824e(0x154)+_0x41824e(0x18d)+_0x41824e(0x152)+_0x41824e(0x166)+':\x20<type>'+_0x41824e(0x18b)+_0x41824e(0x18c)+'cription'+_0x41824e(0x171)+_0x41824e(0x168)+_0x41824e(0x170)+_0x41824e(0x163)+_0x41824e(0x184)+_0x41824e(0x157)+'efactor,'+_0x41824e(0x164)+'\x20\x20-\x20Maxi'+_0x41824e(0x198)+'th:\x2050\x20c'+_0x41824e(0x1a6)+_0x41824e(0x162)+_0x41824e(0x190)+_0x41824e(0x16a)+_0x41824e(0x155)+'ame\x20in\x20E'+'nglish\x0a\x0a'+'\x20\x20\x20\x20Desc'+_0x41824e(0x199)+_0x41824e(0x193)+_0x575e49+_0x41824e(0x17d),_0x4e04f1=await _0x555aa6[_0x41824e(0x17f)](withProgress,_0x555aa6[_0x41824e(0x19c)],()=>_0x1d9cd2[_0x41824e(0x15b)](_0x2d52cf)),_0x339a79=extractMessageText(_0x4e04f1[_0x41824e(0x14c)]),_0x4cd8a8=_0x555aa6[_0x41824e(0x186)](sanitizeBranchName,_0x339a79);!_0x4cd8a8&&_0x555aa6[_0x41824e(0x186)](failAndExit,_0x555aa6[_0x41824e(0x1a0)]);_0x555aa6['FJQYb'](branchExists,_0x4cd8a8)&&failAndExit('Branch\x20a'+_0x41824e(0x181)+_0x41824e(0x179)+_0x4cd8a8);section(_0x555aa6[_0x41824e(0x15a)]),_0x555aa6[_0x41824e(0x186)](printKeyValues,[{'key':'Name','value':_0x4cd8a8}]);const _0x512271=await _0x555aa6[_0x41824e(0x19e)](askConfirmation,_0x41824e(0x195)+'ranch\x20wi'+_0x41824e(0x15f)+_0x41824e(0x18a)+_0x41824e(0x15d));if(!_0x512271){console[_0x41824e(0x17b)](warn(_0x555aa6[_0x41824e(0x1a3)],_0x555aa6[_0x41824e(0x191)]));return;}try{_0x555aa6[_0x41824e(0x14e)](execFileSync,_0x555aa6['FYLIX'],[_0x555aa6['WhHcD'],'-b',_0x4cd8a8],{'stdio':_0x555aa6[_0x41824e(0x175)]});}catch{_0x555aa6[_0x41824e(0x1a5)](failAndExit,_0x555aa6[_0x41824e(0x18f)]);}}
@@ -1 +1 @@
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
+ (function(_0x1d6865,_0x50c3b7){const _0x3f6c7f=_0x42c7,_0x3fd6df=_0x1d6865();while(!![]){try{const _0x40ec78=parseInt(_0x3f6c7f(0x1e3))/0x1+-parseInt(_0x3f6c7f(0x212))/0x2+parseInt(_0x3f6c7f(0x21e))/0x3*(-parseInt(_0x3f6c7f(0x1de))/0x4)+parseInt(_0x3f6c7f(0x233))/0x5*(parseInt(_0x3f6c7f(0x214))/0x6)+-parseInt(_0x3f6c7f(0x211))/0x7+-parseInt(_0x3f6c7f(0x1e9))/0x8+parseInt(_0x3f6c7f(0x203))/0x9;if(_0x40ec78===_0x50c3b7)break;else _0x3fd6df['push'](_0x3fd6df['shift']());}catch(_0x48cd31){_0x3fd6df['push'](_0x3fd6df['shift']());}}}(_0x2425,0xf3671));const _0x4cc626=(function(){let _0x437fe3=!![];return function(_0x9e4b53,_0x24e3c1){const _0x1cb48e=_0x437fe3?function(){const _0x310cfa=_0x42c7;if(_0x24e3c1){const _0x2cb0e6=_0x24e3c1[_0x310cfa(0x1fd)](_0x9e4b53,arguments);return _0x24e3c1=null,_0x2cb0e6;}}:function(){};return _0x437fe3=![],_0x1cb48e;};}()),_0x4b7c6d=_0x4cc626(this,function(){const _0x5e0c54=_0x42c7,_0x307418={'BVyQp':_0x5e0c54(0x216)+'+)+$'};return _0x4b7c6d[_0x5e0c54(0x1d9)]()[_0x5e0c54(0x1eb)](_0x307418[_0x5e0c54(0x207)])['toString']()[_0x5e0c54(0x1ee)+_0x5e0c54(0x21b)](_0x4b7c6d)[_0x5e0c54(0x1eb)](_0x307418[_0x5e0c54(0x207)]);});_0x4b7c6d();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';const DEFAULT_COMMIT_LIMIT=0x14,MAX_COMMIT_LIMIT=0xc8;function getLLM(){const _0x1bbb9a=_0x42c7,_0x509b46={'xddjM':function(_0x4e1e60,_0x473959){return _0x4e1e60(_0x473959);},'xNaqj':_0x1bbb9a(0x224)+_0x1bbb9a(0x1f4)+_0x1bbb9a(0x20d)+_0x1bbb9a(0x1cb)+_0x1bbb9a(0x21a)+_0x1bbb9a(0x22f),'qZuyY':function(_0x5c3f15,_0x246b55){return _0x5c3f15===_0x246b55;},'LFKnu':_0x1bbb9a(0x1fa),'eIcyx':function(_0x1385fa){return _0x1385fa();},'GDhpG':function(_0x124921,_0x2905e0){return _0x124921 instanceof _0x2905e0;},'chYfb':function(_0x4c2271,_0xed02af){return _0x4c2271(_0xed02af);}};try{if(_0x509b46['qZuyY'](_0x509b46['LFKnu'],_0x1bbb9a(0x236)))_0x509b46[_0x1bbb9a(0x230)](_0x14183e,_0x509b46[_0x1bbb9a(0x1d0)]);else return _0x509b46['eIcyx'](createLLM);}catch(_0x23b594){const _0x2442f4=_0x509b46[_0x1bbb9a(0x21c)](_0x23b594,Error)?_0x23b594[_0x1bbb9a(0x206)]:_0x509b46[_0x1bbb9a(0x1ce)](String,_0x23b594);_0x509b46[_0x1bbb9a(0x230)](failAndExit,_0x2442f4);}}function sanitizeName(_0x2f6c6f){const _0x196bf1=_0x42c7,_0x39cd04={'AtNHw':function(_0x1f4dae,_0x1cb613){return _0x1f4dae||_0x1cb613;},'OXTDW':_0x196bf1(0x200)+'g'},_0x3e82c9=_0x2f6c6f[_0x196bf1(0x1c9)+'e']('NFD')[_0x196bf1(0x226)](/[\u0300-\u036f]/g,'')[_0x196bf1(0x22e)+'ase']()[_0x196bf1(0x226)](/[^a-z0-9-]+/g,'-')[_0x196bf1(0x226)](/-{2,}/g,'-')[_0x196bf1(0x226)](/^-+|-+$/g,'');return _0x39cd04['AtNHw'](_0x3e82c9,_0x39cd04[_0x196bf1(0x1ca)]);}function formatDateForFile(_0xbc29f4){const _0xa8b1e0=_0x42c7;return _0xbc29f4[_0xa8b1e0(0x227)+'ing']()[_0xa8b1e0(0x229)](0x0,0xa);}function resolveCommitLimit(_0x53b3a8){const _0x5229a1=_0x42c7,_0x1958a0={'RAomR':function(_0x3de3e2,_0x448678){return _0x3de3e2<=_0x448678;},'sQWaI':function(_0x1656d3,_0x42eceb){return _0x1656d3(_0x42eceb);},'byRqL':_0x5229a1(0x224)+_0x5229a1(0x1f4)+_0x5229a1(0x20d)+_0x5229a1(0x1cb)+_0x5229a1(0x21a)+_0x5229a1(0x22f)},_0x3d95e6=_0x53b3a8?.[_0x5229a1(0x1cd)]?.[_0x5229a1(0x1df)]();if(!_0x3d95e6)return DEFAULT_COMMIT_LIMIT;const _0x346a7d=Number['parseInt'](_0x3d95e6,0xa);return(Number[_0x5229a1(0x201)](_0x346a7d)||_0x1958a0[_0x5229a1(0x1fe)](_0x346a7d,0x0))&&_0x1958a0[_0x5229a1(0x1ec)](failAndExit,_0x1958a0[_0x5229a1(0x210)]),Math[_0x5229a1(0x219)](_0x346a7d,MAX_COMMIT_LIMIT);}function _0x2425(){const _0x4cbbb5=['utf8','ynqLX','s\x20value.','\x20|\x20body:','s\x20(ultim','byRqL','12564839auqzkC','2959098gixvKq','te\x20chang','870ytMtbd','secao\x20\x22C','(((.+)+)','invoke','date','min','ositive\x20','tor','GDhpG','CHANGELO','117138vXXCIL','fRvpD','ZLtfc','pjXEa','abaixo.\x0a','l\x0a-\x20Estr','Invalid\x20','CbsFo','replace','toISOStr','te\x20mudan','slice','\x20|\x20','AI\x20is\x20ge','map','lua\x20uma\x20','toLowerC','integer.','xddjM','do\x20Brasi','yDtdj','24440mgBZwz','NvBmY','da\x20em\x20po','VOixa','om\x20base\x20','\x20changel','ntos\x0a-\x20N','torico\x20r','No\x20commi','nerating','coes\x20por','cwd','TqOWD','commits\x20','length','\x20mudanca','cs,\x20Chor','a\x20curta\x20','File','CAdMF','normaliz','OXTDW','\x20Use\x20a\x20p','com\x20list','commits','chYfb','o\x20genera','xNaqj','cas\x0a\x0aHis','TED','XlMIk','Gmkxm','\x20to\x20gene','tent.','itulo,\x20r','SPvVg','toString','rNxxo','elog\x20con','ts\x20found','e\x20commit','148gWQHtI','trim','rico\x20de\x20','used','body','557791WunVjg','rtugues\x20','BRsVK','de\x20hashe','EusLL','subject','4522672IpjlHX','ao\x20inven','search','sQWaI','iKwDu','construc','content','esumo\x20cu','join','fHtPX','unknown-','--commit','rkdown\x20c','\x20CHANGEL','Regras:\x0a','rto\x20e\x20se','s\x20e\x20assu','yAuwN','NXJdE','\x20(Featur','apply','RAomR','hash','changelo','isNaN','Status','45134892VgtfKy','-\x20Respon','NFD','message','BVyQp','tors,\x20Do','author','og...'];_0x2425=function(){return _0x4cbbb5;};return _0x2425();}function _0x42c7(_0x15460e,_0x2f104d){_0x15460e=_0x15460e-0x1c2;const _0x352551=_0x2425();let _0x4b7c6d=_0x352551[_0x15460e];return _0x4b7c6d;}function buildCommitHistoryPrompt(_0x5d3540){const _0x569a5f=_0x42c7,_0x44f77d={'TqOWD':function(_0x26e2b,_0x4708d0){return _0x26e2b||_0x4708d0;},'lJujq':_0x569a5f(0x1f3)+_0x569a5f(0x218),'iKwDu':function(_0x2527c5,_0x4a2ef9){return _0x2527c5===_0x4a2ef9;},'rNxxo':_0x569a5f(0x1fb),'yDtdj':function(_0x24526c,_0x4db37c){return _0x24526c(_0x4db37c);}},_0x52f91d=getCommitHistory(_0x5d3540);if(_0x52f91d[_0x569a5f(0x1c3)]===0x0){if(_0x44f77d[_0x569a5f(0x1ed)](_0x44f77d[_0x569a5f(0x1da)],_0x569a5f(0x1fb)))_0x44f77d[_0x569a5f(0x232)](failAndExit,_0x569a5f(0x23b)+_0x569a5f(0x1dc)+_0x569a5f(0x1d5)+'rate\x20cha'+'ngelog.');else{const _0x2d1c3b=_0x5b04d3[_0x569a5f(0x1c9)+'e'](_0x569a5f(0x205))[_0x569a5f(0x226)](/[\u0300-\u036f]/g,'')[_0x569a5f(0x22e)+'ase']()[_0x569a5f(0x226)](/[^a-z0-9-]+/g,'-')[_0x569a5f(0x226)](/-{2,}/g,'-')['replace'](/^-+|-+$/g,'');return dQmrqm[_0x569a5f(0x23f)](_0x2d1c3b,_0x569a5f(0x200)+'g');}}return _0x52f91d[_0x569a5f(0x22c)](_0x200f85=>{const _0x12596a=_0x569a5f,_0xd128c9=_0x200f85[_0x12596a(0x1e2)]?_0x12596a(0x20e)+'\x20'+_0x200f85[_0x12596a(0x1e2)]['replace'](/\s+/g,'\x20')['trim']():'',_0x3d8c13=_0x200f85[_0x12596a(0x218)]||_0x44f77d['lJujq'],_0x4e5950=_0x200f85[_0x12596a(0x209)]||_0x12596a(0x1f3)+_0x12596a(0x209);return'-\x20'+_0x3d8c13+_0x12596a(0x22a)+_0x200f85[_0x12596a(0x1ff)][_0x12596a(0x229)](0x0,0x7)+_0x12596a(0x22a)+_0x4e5950+_0x12596a(0x22a)+_0x200f85[_0x12596a(0x1e8)]+_0xd128c9;})[_0x569a5f(0x1f1)]('\x0a');}export async function generateChangelog(_0x4edfed,_0x543550){const _0x3f2819=_0x42c7,_0x1f04f1={'CbsFo':function(_0x5b0665){return _0x5b0665();},'ynqLX':function(_0x3d17f3,_0x4efb61){return _0x3d17f3(_0x4efb61);},'BRsVK':function(_0x2ce41d,_0x45f976){return _0x2ce41d||_0x45f976;},'pjXEa':function(_0x289173,_0x5660a3){return _0x289173(_0x5660a3);},'SPvVg':function(_0x52630c,_0x4a493f){return _0x52630c(_0x4a493f);},'XlMIk':function(_0x19c70,_0x26455a,_0x302b3e){return _0x19c70(_0x26455a,_0x302b3e);},'fHtPX':_0x3f2819(0x22b)+_0x3f2819(0x23c)+_0x3f2819(0x238)+_0x3f2819(0x20a),'NvBmY':'Failed\x20t'+_0x3f2819(0x1cf)+_0x3f2819(0x213)+_0x3f2819(0x1db)+_0x3f2819(0x1d6),'ahKCB':function(_0x53c853,_0x40c0c8,_0xa69270){return _0x53c853(_0x40c0c8,_0xa69270);},'CAdMF':_0x3f2819(0x200)+'gs','EusLL':function(_0x4b0dbc,_0x1c334f,_0x3a2466,_0x2ae5f2){return _0x4b0dbc(_0x1c334f,_0x3a2466,_0x2ae5f2);},'fRvpD':_0x3f2819(0x21d)+'G\x20GENERA'+_0x3f2819(0x1d2),'ZLtfc':_0x3f2819(0x1c7),'Gmkxm':'Commits\x20'+_0x3f2819(0x1e1)};getGitStatus();const _0x2a1f1e=_0x1f04f1[_0x3f2819(0x225)](getLLM),_0x3a5bc1=_0x1f04f1[_0x3f2819(0x20c)](resolveCommitLimit,_0x543550),_0x47da0d=getCurrentBranch(),_0x25f203=sanitizeName(_0x1f04f1[_0x3f2819(0x1e5)](_0x4edfed,_0x47da0d)[_0x3f2819(0x1df)]()),_0x2eb75e=_0x1f04f1[_0x3f2819(0x221)](formatDateForFile,new Date()),_0x3326a4=_0x25f203+'-'+_0x2eb75e+'.md',_0x5406a8=_0x1f04f1[_0x3f2819(0x1d8)](buildCommitHistoryPrompt,_0x3a5bc1),_0x362002=('\x0aCrie\x20um'+_0x3f2819(0x1f6)+'OG\x20em\x20ma'+_0x3f2819(0x1f5)+_0x3f2819(0x237)+'no\x20histo'+_0x3f2819(0x1e0)+_0x3f2819(0x1c2)+_0x3f2819(0x222)+_0x3f2819(0x1f7)+_0x3f2819(0x204)+_0x3f2819(0x235)+_0x3f2819(0x1e4)+_0x3f2819(0x231)+_0x3f2819(0x223)+'utura:\x20t'+_0x3f2819(0x1d7)+_0x3f2819(0x1f0)+_0x3f2819(0x1f8)+_0x3f2819(0x23d)+'\x20tipo\x20de'+_0x3f2819(0x1c4)+_0x3f2819(0x1fc)+'es,\x20Fixe'+'s,\x20Refac'+_0x3f2819(0x208)+_0x3f2819(0x1c5)+'e)\x0a-\x20Inc'+_0x3f2819(0x22d)+_0x3f2819(0x215)+'ommits\x22\x20'+_0x3f2819(0x1cc)+_0x3f2819(0x1c6)+_0x3f2819(0x1e6)+_0x3f2819(0x1f9)+_0x3f2819(0x239)+_0x3f2819(0x1ea)+_0x3f2819(0x228)+_0x3f2819(0x1d1)+_0x3f2819(0x23a)+'ecente\x20d'+_0x3f2819(0x1dd)+_0x3f2819(0x20f)+'os\x20'+_0x3a5bc1+('\x20commits'+'):\x0a')+_0x5406a8+'\x0a')[_0x3f2819(0x1df)](),_0x119acc=await _0x1f04f1[_0x3f2819(0x1d3)](withProgress,_0x1f04f1[_0x3f2819(0x1f2)],()=>_0x2a1f1e[_0x3f2819(0x217)](_0x362002)),_0x13ee89=extractMessageText(_0x119acc[_0x3f2819(0x1ef)]);!_0x13ee89&&_0x1f04f1[_0x3f2819(0x20c)](failAndExit,_0x1f04f1[_0x3f2819(0x234)]);const _0x5aef8c=_0x1f04f1['ahKCB'](join,process[_0x3f2819(0x23e)](),_0x1f04f1[_0x3f2819(0x1c8)]),_0x425bef=join(_0x5aef8c,_0x3326a4);_0x1f04f1[_0x3f2819(0x1d3)](mkdirSync,_0x5aef8c,{'recursive':!![]}),_0x1f04f1[_0x3f2819(0x1e7)](writeFileSync,_0x425bef,_0x13ee89['trim']()+'\x0a',_0x3f2819(0x20b)),_0x1f04f1[_0x3f2819(0x221)](section,_0x1f04f1[_0x3f2819(0x21f)]),_0x1f04f1[_0x3f2819(0x1d8)](printKeyValues,[{'key':_0x3f2819(0x202),'value':ok('OK')},{'key':_0x1f04f1[_0x3f2819(0x220)],'value':_0x425bef},{'key':_0x1f04f1[_0x3f2819(0x1d4)],'value':String(_0x3a5bc1)}]);}
@@ -1 +1 @@
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
+ (function(_0x40bc6a,_0x50d034){const _0x56c6d4=_0x202f,_0x3022b1=_0x40bc6a();while(!![]){try{const _0x54a3fa=-parseInt(_0x56c6d4(0x14d))/0x1+parseInt(_0x56c6d4(0x16b))/0x2*(-parseInt(_0x56c6d4(0x1c9))/0x3)+parseInt(_0x56c6d4(0xe2))/0x4*(parseInt(_0x56c6d4(0x1d6))/0x5)+-parseInt(_0x56c6d4(0x1d3))/0x6*(parseInt(_0x56c6d4(0x166))/0x7)+parseInt(_0x56c6d4(0x1c7))/0x8*(-parseInt(_0x56c6d4(0x1bc))/0x9)+-parseInt(_0x56c6d4(0x14c))/0xa*(-parseInt(_0x56c6d4(0xdf))/0xb)+parseInt(_0x56c6d4(0x198))/0xc;if(_0x54a3fa===_0x50d034)break;else _0x3022b1['push'](_0x3022b1['shift']());}catch(_0x138f62){_0x3022b1['push'](_0x3022b1['shift']());}}}(_0x118a,0x9cff7));const _0x3c8a14=(function(){let _0xc4f12d=!![];return function(_0x59416a,_0x1d413c){const _0x302cce=_0xc4f12d?function(){const _0x3fe876=_0x202f;if(_0x1d413c){const _0x392090=_0x1d413c[_0x3fe876(0x194)](_0x59416a,arguments);return _0x1d413c=null,_0x392090;}}:function(){};return _0xc4f12d=![],_0x302cce;};}()),_0x4904ba=_0x3c8a14(this,function(){const _0x3e9613=_0x202f,_0x4c84b9={'dKucb':_0x3e9613(0x190)+'+)+$'};return _0x4904ba[_0x3e9613(0xf3)]()[_0x3e9613(0x1b2)](_0x4c84b9[_0x3e9613(0x15a)])[_0x3e9613(0xf3)]()[_0x3e9613(0x119)+_0x3e9613(0x186)](_0x4904ba)[_0x3e9613(0x1b2)](_0x4c84b9[_0x3e9613(0x15a)]);});_0x4904ba();function _0x202f(_0x11242b,_0xf8ec78){_0x11242b=_0x11242b-0xdd;const _0x5360a5=_0x118a();let _0x4904ba=_0x5360a5[_0x11242b];return _0x4904ba;}import{execFileSync}from'child_process';import{createLLM,extractMessageText}from'../llm.js';import{askConfirmation}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';function _0x118a(){const _0x1ab222=['KSDNo','--if-pre','eam\x20foun','DgSPs','KWGAl','\x20(Y/n):\x20','slice','ode\x20fenc','deletion','hVIpb','tected.\x20','OdVXe','args','length','Commit\x20w','jQfij','NeVZN','nd\x20reque','WDyvb','\x20renamed','patchCha','\x0a\x0aDiff\x20s','status','YhAYb','git','lMyUT','No\x20git\x20r','ssage,\x20w','excerpt','o\x20push\x20\x22','rZChF','HjtcS','win32','ntional\x20','oEPOR','Consider','log','Start\x20wi','multiple','mmit','--set-up','subject>','xQXqN','e:\x20','reated.','xcerpt.','y/N):\x20','nch\x20\x22','renamed','114430TXYyGc','687130gEaxfB','path','ll\x20chang','ot\x20avail','th\x20this\x20','No\x20file\x20','GJeHU','\x0a-\x20Keep\x20','\x0aWrite\x20o','ns.\x20','es\x20(git\x20','bOxax','able.','dKucb','rent\x20bra','message','mWflq','lZHFS','hanged\x20(','JeNmm','cJnUY','iDtgJ','d\x20files.','IDuJy','sent','224EEmfrt','map','modified','\x20modifie','am?\x20(y/N','484894pjkKUu','d.\x20Push\x20','cseKG','check','ZzbSU','dnuqf','Qtyka','CHECK','sting\x20re','rSQIZ','\x0a-\x20Use\x20f','ed\x20files','subject\x20','\x20(trunca','h\x20based\x20','anges.\x0aR','ebTEQ','ules:\x0a-\x20','nfigured','\x20Abortin','ssduH','Staged\x20a','No\x20upstr','sfHBH','uyCLT','),\x20','tCRou','tor','fileCoun','startsWi','\x22\x20and\x20se','lint','...','concise\x20','\x20deleted','IjFpN','TIP','(((.+)+)','toLowerC','ss\x20evide','yfPns','apply','RNpDh','all','wIWcl','25147080Luoqaa','commit','\x20failed.','dEJRb','fWunJ','uEhOa','3.\x20SUGGE','refactor','eturn\x20ON','feat','add\x20.).','f\x20you\x20ha','suEVA','udJxi','ijWHN','EpsgJ','WARNING','\x20chars).','hanges\x20f','run','awbvZ','\x20Check\x20i','EnUhd','JHipC','join','ReVKp','search','LY\x20the\x20c','qNWyD','fix','eeYCK','\x20files\x20c','fZGSA','ithout\x20c','AI\x20is\x20th','\x20more','1116027MWbMvn','ted)','ngly\x20sug','sing\x20AI\x20','oWKTy','\x20commits','insertio','\x20splitti','metrics','essage\x20i','test','8fYYwtf','\x20deletio','15LHsuOS','diffStat','tisyR','ons,\x20','ng\x20into\x20','\x0a\x20\x20','on\x20the\x20s','iouKK','vryng','igured\x20(','65376ajZZRl','chore','ABBnF','20dgvWuq','yvlLZ','Running\x20','NryiT','Failed\x20t','paths\x20av','iles','o\x20genera','branch','n\x20Englis','emote\x20co','npm.cmd','rGUbv','sponse..','o\x20push\x20t','\x22\x20to\x20\x22','Suggeste','Commit\x20u','fTTgB','o\x20create','d,\x20','SgXcJ','aged\x20dif','endsWith','tat:\x0a','bvQAr','dWjQu','es\x20or\x20ex','):\x20','platform','irst\x20or\x20','165rKhOaW','piKvG','YVxfc','747868SyYUHI','fullName','files\x20de','ase','KuTZx','other\x20on','diuFX','dWdQK','sWUiY','other','deleted','truncate','f\x20(','UfGOY','(none)','ve\x20stage','inking\x20a','toString','files','Final\x20co','KTBRb','every','te\x20commi','and\x20spec','GOFDQ','\x0a\x0aPatch\x20','runcated','label','push','pleted\x20t','nd\x20upstr','added','cope):\x20<','MhwYo','npm','pleted\x20a','crAGy','cxeIJ','g\x20commit','\x22\x20now?\x20(','sbWqh','usIZg','MpIfA','XrIfD','NPpsz','remote','ormat:\x20<','Push\x20com','IhUmm','\x20complet','\x20patch\x20e','ctnDi','Staged\x20f','\x20added,\x20','inherit','construc','\x20Prompt\x20'];_0x118a=function(){return _0x1ab222;};return _0x118a();}const MAX_PROMPT_PATCH_CHARS=0x2710,WARN_SPLIT_FILE_COUNT=0xa,WARN_PROMPT_DIFF_CHARS=0xc350;function getLLM(){const _0x132219=_0x202f,_0x29a6a6={'sfHBH':function(_0x1195e4){return _0x1195e4();},'xQXqN':function(_0x24e6ee,_0x5c8670){return _0x24e6ee instanceof _0x5c8670;}};try{return _0x29a6a6[_0x132219(0x182)](createLLM);}catch(_0x2c54ee){const _0x241493=_0x29a6a6[_0x132219(0x145)](_0x2c54ee,Error)?_0x2c54ee[_0x132219(0x15c)]:String(_0x2c54ee);failAndExit(_0x241493);}}function countByStatus(_0x3adf83){const _0x392093=_0x202f,_0x511980={'added':0x0,'modified':0x0,'deleted':0x0,'renamed':0x0,'other':0x0};for(const _0x3c7517 of _0x3adf83[_0x392093(0xf4)]){if(_0x3c7517[_0x392093(0x131)][_0x392093(0x188)+'th']('A')){_0x511980[_0x392093(0x101)]+=0x1;continue;}if(_0x3c7517[_0x392093(0x131)][_0x392093(0x188)+'th']('M')){_0x511980['modified']+=0x1;continue;}if(_0x3c7517['status'][_0x392093(0x188)+'th']('D')){_0x511980[_0x392093(0xec)]+=0x1;continue;}if(_0x3c7517[_0x392093(0x131)]['startsWi'+'th']('R')){_0x511980[_0x392093(0x14b)]+=0x1;continue;}_0x511980[_0x392093(0xeb)]+=0x1;}return _0x511980;}function detectCommitType(_0x474749){const _0x26872b=_0x202f,_0x597b25={'WDyvb':'docs','SgXcJ':function(_0x4901d1,_0x45625c){return _0x4901d1>_0x45625c;},'bfBKC':function(_0x2fc93f,_0x26ce70){return _0x2fc93f>_0x26ce70;},'YhAYb':function(_0x409446,_0x779f8){return _0x409446===_0x779f8;},'dnuqf':_0x26872b(0x1d4),'uEhOa':function(_0xff9f00,_0x43d361){return _0xff9f00>=_0x43d361;},'jBCRT':function(_0x47ba5f,_0x4882f6){return _0x47ba5f>_0x4882f6;},'gWCho':function(_0x1d639b,_0xfb686f){return _0x1d639b<=_0xfb686f;},'hVIpb':_0x26872b(0x1b5),'KSDNo':_0x26872b(0x19f)},_0x5ed619=_0x474749['files'][_0x26872b(0x167)](_0x4fd964=>_0x4fd964[_0x26872b(0x14e)][_0x26872b(0x191)+_0x26872b(0xe5)]()),_0x54cbd2=countByStatus(_0x474749);if(_0x5ed619[_0x26872b(0x128)]>0x0&&_0x5ed619[_0x26872b(0xf7)](_0x1bbbeb=>/(^|\/)(readme|docs?|changelog)/[_0x26872b(0x1c6)](_0x1bbbeb)||_0x1bbbeb[_0x26872b(0x1ed)]('.md')))return _0x597b25[_0x26872b(0x12d)];if(_0x597b25[_0x26872b(0x1eb)](_0x5ed619[_0x26872b(0x128)],0x0)&&_0x5ed619['every'](_0x57f92a=>/(^|\/)(test|tests|__tests__|spec)/[_0x26872b(0x1c6)](_0x57f92a)||/\.(spec|test)\./[_0x26872b(0x1c6)](_0x57f92a)))return _0x26872b(0x1c6);if(_0x597b25['bfBKC'](_0x54cbd2[_0x26872b(0xec)],0x0)&&_0x597b25[_0x26872b(0x132)](_0x54cbd2[_0x26872b(0x101)],0x0)&&_0x597b25[_0x26872b(0x132)](_0x54cbd2[_0x26872b(0x168)],0x0))return _0x597b25[_0x26872b(0x170)];if(_0x597b25[_0x26872b(0x19d)](_0x54cbd2[_0x26872b(0x101)],_0x54cbd2[_0x26872b(0x168)])&&_0x597b25['jBCRT'](_0x54cbd2[_0x26872b(0x101)],0x0))return _0x26872b(0x1a1);if(_0x597b25[_0x26872b(0x1eb)](_0x54cbd2['modified'],0x0)&&_0x597b25['gWCho'](_0x474749[_0x26872b(0x1c4)][_0x26872b(0x1c2)+'ns'],_0x474749[_0x26872b(0x1c4)][_0x26872b(0x123)+'s']))return _0x597b25[_0x26872b(0x124)];return _0x597b25[_0x26872b(0x11b)];}function summarizeChanges(_0x1f2dca){const _0x420f6f=_0x202f,_0x245bb7={'cseKG':function(_0x19c23e,_0x190fec){return _0x19c23e(_0x190fec);},'maGXC':function(_0x4af9e4,_0x3014ac){return _0x4af9e4>_0x3014ac;},'suEVA':function(_0x2f3d6f,_0x3a1dd8){return _0x2f3d6f-_0x3a1dd8;},'NSTBQ':_0x420f6f(0x152)+_0x420f6f(0x1db)+'ailable.'},_0x48ae74=_0x245bb7[_0x420f6f(0x16d)](countByStatus,_0x1f2dca),_0x13a020=_0x1f2dca['files'][_0x420f6f(0x121)](0x0,0x3)[_0x420f6f(0x167)](_0x3242c1=>_0x3242c1['path']),_0x417cc8=_0x245bb7['maGXC'](_0x1f2dca[_0x420f6f(0xf4)][_0x420f6f(0x128)],0x3)?_0x13a020[_0x420f6f(0x1b0)](',\x20')+'\x20+'+_0x245bb7[_0x420f6f(0x1a4)](_0x1f2dca[_0x420f6f(0xf4)][_0x420f6f(0x128)],0x3)+_0x420f6f(0x1bb):_0x13a020[_0x420f6f(0x1b0)](',\x20');return _0x1f2dca['metrics']['fileCoun'+'t']+(_0x420f6f(0x1b7)+_0x420f6f(0x15f))+_0x48ae74['added']+_0x420f6f(0x117)+_0x48ae74[_0x420f6f(0x168)]+(_0x420f6f(0x169)+_0x420f6f(0x1ea))+_0x48ae74[_0x420f6f(0xec)]+(_0x420f6f(0x18d)+',\x20')+_0x48ae74[_0x420f6f(0x14b)]+(_0x420f6f(0x12e)+_0x420f6f(0x184))+_0x1f2dca[_0x420f6f(0x1c4)][_0x420f6f(0x1c2)+'ns']+('\x20inserti'+_0x420f6f(0x1cc))+_0x1f2dca[_0x420f6f(0x1c4)][_0x420f6f(0x123)+'s']+(_0x420f6f(0x1c8)+_0x420f6f(0x156))+(_0x417cc8||_0x245bb7['NSTBQ']);}function formatStagedFiles(_0x57603e){const _0x21a0cd=_0x202f;return _0x57603e[_0x21a0cd(0xf4)][_0x21a0cd(0x167)](_0x471b58=>'-\x20'+_0x471b58[_0x21a0cd(0x131)]+'\x20'+_0x471b58[_0x21a0cd(0x14e)])[_0x21a0cd(0x1b0)]('\x0a');}function runOptionalChecks(){const _0x24c700=_0x202f,_0x50ce17={'MpIfA':function(_0x4da9cb,_0x34e59f){return _0x4da9cb===_0x34e59f;},'rZChF':_0x24c700(0x13b),'dWdQK':'npm.cmd','HWWUy':_0x24c700(0x104),'wIWcl':_0x24c700(0x18a),'dWjQu':'run','udJxi':'--if-pre'+_0x24c700(0x165),'crAGy':_0x24c700(0x1c6),'yfPns':function(_0x3add61,_0x26eaeb,_0x1b58b4){return _0x3add61(_0x26eaeb,_0x1b58b4);},'fZGSA':_0x24c700(0x172),'RohwN':_0x24c700(0x1d7),'JeNmm':'IsyeM','qQOpW':function(_0xeb98eb,_0x189c31,_0x23eafd,_0x368f63){return _0xeb98eb(_0x189c31,_0x23eafd,_0x368f63);},'RFLzx':_0x24c700(0x118),'dEJRb':function(_0x2f5e48,_0x4a5b60){return _0x2f5e48(_0x4a5b60);}},_0x398dac=_0x50ce17[_0x24c700(0x10c)](process[_0x24c700(0xdd)],_0x50ce17[_0x24c700(0x139)])?_0x50ce17[_0x24c700(0xe9)]:_0x50ce17['HWWUy'],_0x2d9c12=[{'label':_0x50ce17[_0x24c700(0x197)],'args':[_0x50ce17[_0x24c700(0x1f0)],_0x24c700(0x18a),_0x50ce17[_0x24c700(0x1a5)]]},{'label':_0x50ce17[_0x24c700(0x106)],'args':[_0x50ce17[_0x24c700(0x1f0)],'test',_0x50ce17[_0x24c700(0x1a5)]]}];for(const _0x1f5a27 of _0x2d9c12){console['log'](_0x50ce17[_0x24c700(0x193)](info,_0x50ce17[_0x24c700(0x1b8)],'Running\x20'+_0x1f5a27['label']+_0x24c700(0x18b)));try{if(_0x50ce17[_0x24c700(0x10c)](_0x50ce17['RohwN'],_0x50ce17[_0x24c700(0x160)]))return _0x4b1caf();else _0x50ce17['qQOpW'](execFileSync,_0x398dac,_0x1f5a27[_0x24c700(0x127)],{'stdio':_0x50ce17['RFLzx']}),console[_0x24c700(0x13f)](_0x50ce17['yfPns'](ok,'OK',_0x1f5a27[_0x24c700(0xfd)]+(_0x24c700(0x113)+'ed.')));}catch{_0x50ce17[_0x24c700(0x19b)](failAndExit,_0x1f5a27[_0x24c700(0xfd)]+(_0x24c700(0x19a)+'\x20Abortin'+_0x24c700(0x108)+'.'));}}}async function maybePushCurrentBranch(){const _0x286b89=_0x202f,_0x1bdd84={'TISNy':function(_0x5289b6,_0xe6cb9b){return _0x5289b6===_0xe6cb9b;},'dJAbZ':_0x286b89(0x13b),'sWUiY':_0x286b89(0x1e1),'rSQIZ':_0x286b89(0x104),'gNRpN':'run','Qtyka':_0x286b89(0x18a),'rGUbv':_0x286b89(0x11c)+_0x286b89(0x165),'IjFpN':_0x286b89(0x1c6),'eeYCK':function(_0x270a50,_0x14ab55,_0x42b4fa){return _0x270a50(_0x14ab55,_0x42b4fa);},'oEPOR':_0x286b89(0x172),'HjtcS':function(_0xe267d4,_0x3c705d,_0x2e0793,_0x3b7b25){return _0xe267d4(_0x3c705d,_0x2e0793,_0x3b7b25);},'fWunJ':_0x286b89(0x118),'JHipC':function(_0x4d9099,_0x3ebad1){return _0x4d9099(_0x3ebad1);},'SggJp':function(_0x1b7ed7){return _0x1b7ed7();},'fTTgB':function(_0x2369da,_0x2b4bff){return _0x2369da!==_0x2b4bff;},'lZHFS':_0x286b89(0x10a),'iDtgJ':'Wtlsa','EpsgJ':function(_0xe96b0c,_0x23bfd6,_0x3db04d,_0x520ae8){return _0xe96b0c(_0x23bfd6,_0x3db04d,_0x520ae8);},'iouKK':_0x286b89(0x133),'ctnDi':_0x286b89(0xfe),'NryiT':function(_0x4788e9,_0x523b68,_0x570699){return _0x4788e9(_0x523b68,_0x570699);},'awbvZ':function(_0x1ffd25,_0x5c7b09){return _0x1ffd25(_0x5c7b09);},'KWGAl':_0x286b89(0x135)+_0x286b89(0x1e0)+_0x286b89(0x17d)+'.\x20Push\x20n'+_0x286b89(0x150)+_0x286b89(0x159),'cxeIJ':function(_0x53433c,_0xb87f10){return _0x53433c(_0xb87f10);},'tCRou':_0x286b89(0x143)+'stream'},_0x49cc5f=getCurrentBranch(),_0x5e3c98=_0x1bdd84['SggJp'](getUpstreamInfo);if(_0x5e3c98){if(_0x1bdd84[_0x286b89(0x1e8)](_0x1bdd84[_0x286b89(0x15e)],_0x1bdd84[_0x286b89(0x162)])){const _0xab2e99=await askConfirmation('Push\x20cur'+_0x286b89(0x15b)+_0x286b89(0x14a)+_0x49cc5f+'\x22\x20to\x20\x22'+_0x5e3c98[_0x286b89(0xe3)]+(_0x286b89(0x109)+_0x286b89(0x149)));if(!_0xab2e99)return;try{_0x1bdd84[_0x286b89(0x1a7)](execFileSync,_0x1bdd84[_0x286b89(0x1d0)],[_0x1bdd84['ctnDi'],_0x5e3c98['remote'],_0x49cc5f+':'+_0x5e3c98[_0x286b89(0x1de)]],{'stdio':_0x1bdd84[_0x286b89(0x19c)]}),console[_0x286b89(0x13f)](_0x1bdd84[_0x286b89(0x1d9)](ok,'OK','Push\x20com'+_0x286b89(0xff)+'o\x20'+_0x5e3c98[_0x286b89(0xe3)]+'.'));}catch{_0x1bdd84[_0x286b89(0x1ac)](failAndExit,_0x286b89(0x1da)+_0x286b89(0x1e4)+'o\x20'+_0x5e3c98[_0x286b89(0xe3)]+'.');}return;}else{const _0x1d32f1=bYxXTX['TISNy'](_0x4487e9[_0x286b89(0xdd)],bYxXTX['dJAbZ'])?bYxXTX[_0x286b89(0xea)]:bYxXTX[_0x286b89(0x174)],_0x1c613e=[{'label':_0x286b89(0x18a),'args':[bYxXTX['gNRpN'],bYxXTX[_0x286b89(0x171)],bYxXTX['rGUbv']]},{'label':bYxXTX[_0x286b89(0x18e)],'args':[_0x286b89(0x1ab),bYxXTX[_0x286b89(0x18e)],bYxXTX[_0x286b89(0x1e2)]]}];for(const _0x45e912 of _0x1c613e){_0x4edbe1[_0x286b89(0x13f)](bYxXTX[_0x286b89(0x1b6)](_0x44c11b,bYxXTX[_0x286b89(0x13d)],_0x286b89(0x1d8)+_0x45e912[_0x286b89(0xfd)]+_0x286b89(0x18b)));try{bYxXTX[_0x286b89(0x13a)](_0x1c7932,_0x1d32f1,_0x45e912['args'],{'stdio':bYxXTX[_0x286b89(0x19c)]}),_0x44708a[_0x286b89(0x13f)](_0x1adef6('OK',_0x45e912[_0x286b89(0xfd)]+('\x20complet'+'ed.')));}catch{bYxXTX[_0x286b89(0x1af)](_0xe39a6e,_0x45e912[_0x286b89(0xfd)]+(_0x286b89(0x19a)+_0x286b89(0x17e)+_0x286b89(0x108)+'.'));}}}}const _0x451f7b=getDefaultRemote();if(!_0x451f7b){console['log'](warn('SKIPPED',_0x1bdd84[_0x286b89(0x11f)]));return;}const _0x28079f=await _0x1bdd84[_0x286b89(0x107)](askConfirmation,_0x286b89(0x181)+_0x286b89(0x11d)+_0x286b89(0x16c)+'\x22'+_0x49cc5f+_0x286b89(0x1e5)+_0x451f7b+'/'+_0x49cc5f+(_0x286b89(0x189)+'t\x20upstre'+_0x286b89(0x16a)+_0x286b89(0x1f2)));if(!_0x28079f)return;try{_0x1bdd84[_0x286b89(0x1a7)](execFileSync,_0x1bdd84['iouKK'],[_0x1bdd84[_0x286b89(0x115)],_0x1bdd84[_0x286b89(0x185)],_0x451f7b,_0x49cc5f],{'stdio':_0x1bdd84[_0x286b89(0x19c)]}),console[_0x286b89(0x13f)](ok('OK',_0x286b89(0x111)+_0x286b89(0x105)+_0x286b89(0x100)+'eam\x20conf'+_0x286b89(0x1d2)+_0x451f7b+'/'+_0x49cc5f+').'));}catch{_0x1bdd84[_0x286b89(0x107)](failAndExit,_0x286b89(0x1da)+_0x286b89(0x138)+_0x49cc5f+'\x22\x20to\x20\x22'+_0x451f7b+'\x22.');}}export async function generateCommit(_0xe5f99={}){const _0x51ec3e=_0x202f,_0x3985db={'ebTEQ':function(_0x1bc441){return _0x1bc441();},'sYyiM':function(_0x538e3d,_0x4fb1a2,_0x26809e,_0x73f84d){return _0x538e3d(_0x4fb1a2,_0x26809e,_0x73f84d);},'ABBnF':_0x51ec3e(0x133),'vRkPw':_0x51ec3e(0xfe),'EnUhd':_0x51ec3e(0x118),'bvQAr':function(_0x5a9b0c,_0x1c2569,_0xfd2c61){return _0x5a9b0c(_0x1c2569,_0xfd2c61);},'ReVKp':function(_0x4f4416,_0x4c231d){return _0x4f4416(_0x4c231d);},'KpqMU':function(_0x501d8c,_0x4bc04a){return _0x501d8c-_0x4bc04a;},'piKvG':function(_0x29d0e9,_0x5f39af){return _0x29d0e9||_0x5f39af;},'YVxfc':_0x51ec3e(0x152)+_0x51ec3e(0x1db)+'ailable.','bOxax':function(_0x285e00){return _0x285e00();},'EnAfl':'1.\x20STAGE','DgSPs':function(_0x3255ae,_0xa934bf,_0x332b72){return _0x3255ae(_0xa934bf,_0x332b72);},'mWflq':'Staged\x20a'+'ll\x20chang'+_0x51ec3e(0x157)+_0x51ec3e(0x1a2),'IhUmm':function(_0x4bce59,_0x38a9b7){return _0x4bce59===_0x38a9b7;},'NUjUH':'No\x20stage'+'d\x20files.'+'\x20Stage\x20c'+_0x51ec3e(0x1aa)+_0x51ec3e(0xde)+'run\x20`gem'+'it\x20commi'+'t\x20--all`'+'.','NeVZN':function(_0x3b931d,_0x5b6f86){return _0x3b931d>=_0x5b6f86;},'qMgWn':_0x51ec3e(0x18f),'vryng':_0x51ec3e(0x116)+_0x51ec3e(0x1dc),'Yfusn':function(_0x376f4c,_0x15c487){return _0x376f4c!==_0x15c487;},'jQfij':_0x51ec3e(0x134),'ZzbSU':'TxUuI','GOFDQ':function(_0x4226ee,_0x57a8a1){return _0x4226ee(_0x57a8a1);},'ijWHN':function(_0x1932c2,_0x1d8e9b){return _0x1932c2>_0x1d8e9b;},'MhwYo':function(_0xf49cf7,_0xf92d1d,_0x3b41cf){return _0xf49cf7(_0xf92d1d,_0x3b41cf);},'cJnUY':_0x51ec3e(0x1a8),'usIZg':_0x51ec3e(0x178)+_0x51ec3e(0x1bd),'OdVXe':_0x51ec3e(0x19e)+'ST','ssduH':function(_0x3a90c0,_0x118d2f,_0x18f31a){return _0x3a90c0(_0x118d2f,_0x18f31a);},'diuFX':_0x51ec3e(0x1ba)+_0x51ec3e(0xf2)+_0x51ec3e(0x12c)+_0x51ec3e(0x173)+_0x51ec3e(0x1e3)+'.','uyCLT':_0x51ec3e(0xf6),'YPNgb':'Failed\x20t'+_0x51ec3e(0x1dd)+_0x51ec3e(0xf8)+'t\x20messag'+'e.','BNsuR':_0x51ec3e(0x1e6)+'d\x20commit','tyWAz':_0x51ec3e(0xf5)+_0x51ec3e(0x142),'captD':_0x51ec3e(0x1e7)+_0x51ec3e(0x1bf)+'message?'+_0x51ec3e(0x120),'UfGOY':function(_0x225cc3,_0x2b3dfc,_0x525b6e){return _0x225cc3(_0x2b3dfc,_0x525b6e);},'GJeHU':'CANCELED','XrIfD':_0x51ec3e(0x129)+'as\x20not\x20c'+_0x51ec3e(0x147),'KuTZx':_0x51ec3e(0x199),'qNWyD':function(_0x17dd8e,_0x1da3ee){return _0x17dd8e===_0x1da3ee;},'oWKTy':_0x51ec3e(0x164),'ZFiqa':_0x51ec3e(0x1cb),'NPpsz':function(_0x43cd79,_0x12d604){return _0x43cd79(_0x12d604);},'aDVxa':function(_0x285661){return _0x285661();}},_0x3ce800=getLLM();_0x3985db[_0x51ec3e(0x158)](getGitStatus),section(_0x3985db['EnAfl']);_0xe5f99[_0x51ec3e(0x196)]&&(stageAll(),console['log'](_0x3985db[_0x51ec3e(0x11e)](ok,'OK',_0x3985db[_0x51ec3e(0x15d)])));const _0x3ab765=_0x3985db[_0x51ec3e(0x1b1)](getStagedContext,MAX_PROMPT_PATCH_CHARS);_0x3985db[_0x51ec3e(0x112)](_0x3ab765[_0x51ec3e(0xf4)][_0x51ec3e(0x128)],0x0)&&_0x3985db[_0x51ec3e(0x1b1)](failAndExit,_0x3985db['NUjUH']);_0x3985db[_0x51ec3e(0x12b)](_0x3ab765[_0x51ec3e(0x1c4)][_0x51ec3e(0x187)+'t'],WARN_SPLIT_FILE_COUNT)&&console[_0x51ec3e(0x13f)](warn(_0x3985db['qMgWn'],_0x3ab765[_0x51ec3e(0x1c4)]['fileCoun'+'t']+('\x20staged\x20'+_0x51ec3e(0xe4)+_0x51ec3e(0x125)+_0x51ec3e(0x13e)+_0x51ec3e(0x1c3)+_0x51ec3e(0x1cd)+_0x51ec3e(0x141)+_0x51ec3e(0x1c1)+'.')));printList(_0x3985db[_0x51ec3e(0x1d1)],_0x3ab765[_0x51ec3e(0xf4)]['map'](_0x4fb736=>_0x4fb736[_0x51ec3e(0x131)]+'\x20'+_0x4fb736[_0x51ec3e(0x14e)]));_0xe5f99[_0x51ec3e(0x16e)]&&(_0x3985db['Yfusn'](_0x3985db[_0x51ec3e(0x12a)],_0x3985db[_0x51ec3e(0x16f)])?(console[_0x51ec3e(0x13f)](),_0x3985db[_0x51ec3e(0x158)](runOptionalChecks)):(_0x3985db[_0x51ec3e(0x17b)](_0x2f057d),_0x543960[_0x51ec3e(0x13f)](_0x41978a('OK',_0x51ec3e(0x180)+_0x51ec3e(0x14f)+'es\x20(git\x20'+_0x51ec3e(0x1a2)))));const _0x4673c8=_0x3985db[_0x51ec3e(0xfa)](summarizeChanges,_0x3ab765),_0x38d41a=detectCommitType(_0x3ab765);_0x3985db[_0x51ec3e(0x1a6)](_0x3ab765['metrics'][_0x51ec3e(0x12f)+'rs'],WARN_PROMPT_DIFF_CHARS)&&console['log'](_0x3985db[_0x51ec3e(0x103)](warn,_0x3985db[_0x51ec3e(0x161)],'Large\x20st'+_0x51ec3e(0x1ec)+_0x51ec3e(0xee)+_0x3ab765[_0x51ec3e(0x1c4)][_0x51ec3e(0x12f)+'rs']+(_0x51ec3e(0x1a9)+_0x51ec3e(0x11a)+'will\x20inc'+'lude\x20a\x20t'+_0x51ec3e(0xfc)+_0x51ec3e(0x114)+_0x51ec3e(0x148))));const _0x7a30d=_0x51ec3e(0x155)+'ne\x20Conve'+_0x51ec3e(0x13c)+'Commit\x20m'+_0x51ec3e(0x1c5)+_0x51ec3e(0x1df)+_0x51ec3e(0x179)+_0x51ec3e(0x1cf)+'taged\x20ch'+_0x51ec3e(0x17a)+_0x51ec3e(0x17c)+_0x51ec3e(0x140)+_0x51ec3e(0x151)+'likely\x20t'+'ype\x20unle'+_0x51ec3e(0x192)+'nce\x20stro'+_0x51ec3e(0x1be)+'gests\x20an'+_0x51ec3e(0xe7)+_0x51ec3e(0x146)+_0x38d41a+(_0x51ec3e(0x175)+_0x51ec3e(0x110)+'type>(op'+'tional-s'+_0x51ec3e(0x102)+_0x51ec3e(0x144)+_0x51ec3e(0x154)+_0x51ec3e(0x177)+_0x51ec3e(0x18c)+_0x51ec3e(0xf9)+'ific\x0a-\x20R'+_0x51ec3e(0x1a0)+_0x51ec3e(0x1b3)+'ommit\x20me'+_0x51ec3e(0x136)+_0x51ec3e(0x1b9)+_0x51ec3e(0x122)+_0x51ec3e(0x1f1)+'planatio'+'ns\x0a\x0aStag'+_0x51ec3e(0x176)+':\x0a')+formatStagedFiles(_0x3ab765)+('\x0a\x0aShort\x20'+'summary:'+'\x0a')+_0x4673c8+(_0x51ec3e(0x130)+_0x51ec3e(0x1ee))+(_0x3ab765[_0x51ec3e(0x1ca)]||_0x51ec3e(0xf0))+(_0x51ec3e(0xfb)+_0x51ec3e(0x137))+(_0x3ab765[_0x51ec3e(0x1c4)][_0x51ec3e(0xed)+'d']?_0x3985db[_0x51ec3e(0x10b)]:'')+':\x0a'+(_0x3ab765['patch']||'(none)')+_0x51ec3e(0x1ce);section(_0x3985db[_0x51ec3e(0x126)]);const _0x5ed531=await _0x3985db[_0x51ec3e(0x17f)](withProgress,_0x3985db[_0x51ec3e(0xe8)],()=>_0x3ce800['invoke'](_0x7a30d)),_0x290bec=extractMessageText(_0x5ed531['content']);!_0x290bec&&(_0x3985db[_0x51ec3e(0x112)](_0x3985db[_0x51ec3e(0x183)],_0x51ec3e(0x195))?(VqcUKW['sYyiM'](_0x6f3e2d,VqcUKW[_0x51ec3e(0x1d5)],[VqcUKW['vRkPw'],_0x36d950[_0x51ec3e(0x10f)],_0x1ba2b2+':'+_0x3d0855[_0x51ec3e(0x1de)]],{'stdio':VqcUKW[_0x51ec3e(0x1ae)]}),_0x1985de[_0x51ec3e(0x13f)](VqcUKW[_0x51ec3e(0x1ef)](_0x51c120,'OK',_0x51ec3e(0x111)+_0x51ec3e(0xff)+'o\x20'+_0x5995ad[_0x51ec3e(0xe3)]+'.'))):failAndExit(_0x3985db['YPNgb']));printKeyValues([{'key':_0x3985db['BNsuR'],'value':_0x290bec}]),_0x3985db[_0x51ec3e(0xfa)](section,'4.\x20CONFI'+'RM');const _0x5e5a3b=_0x290bec;printKeyValues([{'key':_0x3985db['tyWAz'],'value':_0x5e5a3b}]);const _0x53ea30=await _0x3985db['MhwYo'](askConfirmation,_0x3985db['captD'],{'defaultYes':!![]});if(!_0x53ea30){console[_0x51ec3e(0x13f)](_0x3985db[_0x51ec3e(0xef)](warn,_0x3985db[_0x51ec3e(0x153)],_0x3985db[_0x51ec3e(0x10d)]));return;}try{_0x3985db['sYyiM'](execFileSync,_0x3985db[_0x51ec3e(0x1d5)],[_0x3985db[_0x51ec3e(0xe6)],'-m',_0x5e5a3b],{'stdio':_0x3985db[_0x51ec3e(0x1ae)]});}catch{if(_0x3985db[_0x51ec3e(0x1b4)](_0x3985db[_0x51ec3e(0x1c0)],_0x3985db['ZFiqa'])){const _0x100cd8=VqcUKW[_0x51ec3e(0x1b1)](_0x42e0a1,_0x6775fb),_0x12319f=_0x9b0057[_0x51ec3e(0xf4)][_0x51ec3e(0x121)](0x0,0x3)[_0x51ec3e(0x167)](_0xf8411=>_0xf8411[_0x51ec3e(0x14e)]),_0x118c84=_0xff077d[_0x51ec3e(0xf4)]['length']>0x3?_0x12319f[_0x51ec3e(0x1b0)](',\x20')+'\x20+'+VqcUKW['KpqMU'](_0x4b4951['files'][_0x51ec3e(0x128)],0x3)+'\x20more':_0x12319f[_0x51ec3e(0x1b0)](',\x20');return _0x49dd67['metrics']['fileCoun'+'t']+('\x20files\x20c'+_0x51ec3e(0x15f))+_0x100cd8[_0x51ec3e(0x101)]+_0x51ec3e(0x117)+_0x100cd8[_0x51ec3e(0x168)]+(_0x51ec3e(0x169)+_0x51ec3e(0x1ea))+_0x100cd8[_0x51ec3e(0xec)]+(_0x51ec3e(0x18d)+',\x20')+_0x100cd8[_0x51ec3e(0x14b)]+(_0x51ec3e(0x12e)+_0x51ec3e(0x184))+_0x493cb9[_0x51ec3e(0x1c4)]['insertio'+'ns']+('\x20inserti'+_0x51ec3e(0x1cc))+_0x410877[_0x51ec3e(0x1c4)][_0x51ec3e(0x123)+'s']+(_0x51ec3e(0x1c8)+_0x51ec3e(0x156))+VqcUKW[_0x51ec3e(0xe0)](_0x118c84,VqcUKW[_0x51ec3e(0xe1)]);}else _0x3985db[_0x51ec3e(0x10e)](failAndExit,_0x51ec3e(0x1da)+_0x51ec3e(0x1e9)+'\x20commit.'+_0x51ec3e(0x1ad)+_0x51ec3e(0x1a3)+_0x51ec3e(0xf1)+_0x51ec3e(0x163));}await _0x3985db['aDVxa'](maybePushCurrentBranch);}
@@ -1 +1 @@
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
+ function _0x5419(){const _0xe67b98=['WalZq','nceled.','IDER','jPUlc','\x20anthrop','ic.','91130qWJfRJ','provider','log','1ntFFnM','ini','OCMFv','ICS','.\x20Use\x20go','IDER=\x22','toString','\x20(google','otMNg','IzFoY','missing','JOcVq','le]:\x20','aSNfg','wqGfn','OPENAI_A','qdGfw','API_KEY','Global\x20.','env','TadTm','claude-3','LppNp','wNoKn','Path','5100688xhqekp','zJoEV','\x20exists.','YEPzA','tyteV','liuba','gemini-2','aEhfm','t-latest','PI_KEY=\x22','yPluj','\x20Overwri','1726755aDjlPf','utf8','Provider','LLM_PROV','PRcwl','qwBTQ','6257220yrifdU','anthropi','env\x20path','Status','ase','ZWnpg','RikhX','DIAGNOST','acrGH','qrjsq','join','ATION\x20SA','te?\x20(y/n','wjyfL','kKLfS','construc','OOAbP','search','fyXgC','OCiiO','QsKLA','ovWMm','Y=\x22','ggFwT','-5-sonne','apPoO','TVANw','dUbhC','xZNvT','LLM_MODE','sywBI','vGLfU','DTVfD','toLowerC','):\x20','Expected','SMvWt','GOOGLE_A','emOkI','ORLCs','7JkRQHV','PI_KEY','hEETJ','google','iWOlR','LMSzQ','nszzV','EKqAE','+)+$','FusKa','11235222hFfSYH','FiLRh','WgeKr','(((.+)+)','set','openai','ANTHROPI','HmysJ','jQohG','OVXFb','OCGww','tifdE','YgebI','DxTWz','78bisSeb','hlyIj','YTtVT','exitCode','nHTrA','INepf','1152830avioIO','c)\x20[goog','FjYBF','\x20already','IGGEn','Model\x20[','kHZFm','tor','CANCELED','TYJPe','qZYlS','C_API_KE','ogle,\x20op','CONFIGUR','Invalid\x20','lokGi','Setup\x20ca','byilT','TNfqU','2015164oXXgOa','qItVU','apply'];_0x5419=function(){return _0xe67b98;};return _0x5419();}(function(_0x275c40,_0x3aec43){const _0xf165ac=_0x1829,_0x11b039=_0x275c40();while(!![]){try{const _0x1d114a=-parseInt(_0xf165ac(0x207))/0x1*(parseInt(_0xf165ac(0x1e8))/0x2)+-parseInt(_0xf165ac(0x19c))/0x3+parseInt(_0xf165ac(0x1fb))/0x4+parseInt(_0xf165ac(0x204))/0x5*(parseInt(_0xf165ac(0x1e2))/0x6)+-parseInt(_0xf165ac(0x1ca))/0x7*(-parseInt(_0xf165ac(0x220))/0x8)+parseInt(_0xf165ac(0x1d4))/0x9+-parseInt(_0xf165ac(0x1a2))/0xa;if(_0x1d114a===_0x3aec43)break;else _0x11b039['push'](_0x11b039['shift']());}catch(_0x4301ca){_0x11b039['push'](_0x11b039['shift']());}}}(_0x5419,0xcf437));const _0x4cea57=(function(){const _0x17d51d={'KTMCV':function(_0x4c6e24,_0x451946){return _0x4c6e24!==_0x451946;}};let _0x43dbbe=!![];return function(_0x431704,_0x2017c2){const _0x313613=_0x1829,_0x5e3c8={'aSNfg':_0x313613(0x1d7)+_0x313613(0x1d2),'fXhQt':function(_0x30ec87,_0x2f4141){return _0x17d51d['KTMCV'](_0x30ec87,_0x2f4141);}},_0x9f9450=_0x43dbbe?function(){const _0x56498d=_0x313613;if(_0x2017c2){if(_0x5e3c8['fXhQt']('UXpHK',_0x56498d(0x1f9))){const _0x103658=_0x2017c2[_0x56498d(0x1fd)](_0x431704,arguments);return _0x2017c2=null,_0x103658;}else return _0x45f2c6[_0x56498d(0x20d)]()[_0x56498d(0x1b3)](_0x5e3c8[_0x56498d(0x214)])[_0x56498d(0x20d)]()['construc'+_0x56498d(0x1ef)](_0x5bd270)[_0x56498d(0x1b3)](_0x5e3c8[_0x56498d(0x214)]);}}:function(){};return _0x43dbbe=![],_0x9f9450;};}()),_0x5a194f=_0x4cea57(this,function(){const _0x53bf48=_0x1829,_0x1792be={'OCGww':_0x53bf48(0x1d7)+_0x53bf48(0x1d2)};return _0x5a194f[_0x53bf48(0x20d)]()['search'](_0x1792be[_0x53bf48(0x1de)])[_0x53bf48(0x20d)]()[_0x53bf48(0x1b1)+'tor'](_0x5a194f)[_0x53bf48(0x1b3)](_0x53bf48(0x1d7)+_0x53bf48(0x1d2));});function _0x1829(_0x4ae1ff,_0x4ea4f9){_0x4ae1ff=_0x4ae1ff-0x19a;const _0x4338d8=_0x5419();let _0x5a194f=_0x4338d8[_0x4ae1ff];return _0x5a194f;}_0x5a194f();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 getProviderKeyName(_0x903943){const _0x4bb107=_0x1829,_0x21e50b={'jQohG':function(_0x1b2f19){return _0x1b2f19();},'IzFoY':function(_0x550b86,_0x28e4a2){return _0x550b86(_0x28e4a2);},'EKqAE':function(_0x2831fd,_0x24dc1e){return _0x2831fd===_0x24dc1e;},'qrjsq':_0x4bb107(0x1d9),'kHZFm':_0x4bb107(0x1a3)+'c','tifdE':function(_0x47bbe8,_0xbf896e){return _0x47bbe8===_0xbf896e;},'ZWnpg':function(_0x434aef,_0x1c117f){return _0x434aef===_0x1c117f;},'TadTm':function(_0xd28111,_0x1ede8b){return _0xd28111(_0x1ede8b);},'qSQHD':_0x4bb107(0x1a9)+_0x4bb107(0x20a),'WgeKr':_0x4bb107(0x219)+'env','hlyIj':function(_0x193b6d,_0x2eb885){return _0x193b6d(_0x2eb885);},'mdftS':function(_0x38fa71,_0x8286ab){return _0x38fa71(_0x8286ab);},'PRcwl':'missing/'+'invalid','nszzV':_0x4bb107(0x1bf)+'L','RikhX':function(_0x43a1d1,_0x284ea3){return _0x43a1d1(_0x284ea3);},'apPoO':_0x4bb107(0x211),'dUbhC':_0x4bb107(0x1c7)+_0x4bb107(0x1cb),'TYJPe':_0x4bb107(0x216)+'PI_KEY','TguHb':function(_0x42dfbe,_0x4434e4){return _0x42dfbe(_0x4434e4);},'FusKa':_0x4bb107(0x1d8),'qZYlS':_0x4bb107(0x1da)+_0x4bb107(0x1f3)+'Y','wNoKn':function(_0x67d02a,_0x4d01a5){return _0x67d02a(_0x4d01a5);},'LppNp':function(_0x602a9e,_0x3efe3d){return _0x602a9e||_0x3efe3d;},'liuba':_0x4bb107(0x1cd),'OCMFv':function(_0x5aa331,_0x32fc28){return _0x5aa331!==_0x32fc28;},'qdGfw':_0x4bb107(0x1b6)};if(_0x903943===_0x21e50b[_0x4bb107(0x225)]){if(_0x21e50b[_0x4bb107(0x209)](_0x21e50b['qdGfw'],_0x21e50b[_0x4bb107(0x217)])){const _0x230f14=_0x21e50b[_0x4bb107(0x1dc)](_0x1ff76a),_0x181fc4=_0x21e50b['IzFoY'](_0xdb726f,_0x230f14),_0x540633=(_0x20d9f8.env.LLM_PROVIDER||'')[_0x4bb107(0x1c3)+'ase'](),_0x1deb3a=_0x14c163.env.LLM_MODEL||'',_0x348a54=_0x459096.env.GOOGLE_API_KEY||_0x2dcf45.env.GEMINI_API_KEY||'',_0x3cf0ed=_0x3dc3ee.env.OPENAI_API_KEY||'',_0x4ea4b3=_0x522b06.env.ANTHROPIC_API_KEY||'',_0x282532=_0x21e50b[_0x4bb107(0x1d1)](_0x540633,_0x4bb107(0x1cd))||_0x21e50b[_0x4bb107(0x1d1)](_0x540633,_0x21e50b[_0x4bb107(0x1ab)])||_0x21e50b['EKqAE'](_0x540633,_0x21e50b[_0x4bb107(0x1ee)]),_0x2debb9=_0x21e50b[_0x4bb107(0x210)](_0x4c3b16,_0x1deb3a),_0x1bbf01=_0x21e50b[_0x4bb107(0x1df)](_0x540633,'google')?_0x348a54:_0x21e50b[_0x4bb107(0x1a7)](_0x540633,_0x21e50b['qrjsq'])?_0x3cf0ed:_0x21e50b[_0x4bb107(0x1d1)](_0x540633,_0x4bb107(0x1a3)+'c')?_0x4ea4b3:'',_0x33a0a1=_0x282532?_0x21e50b['IzFoY'](_0x2bb989,_0x540633):_0x4bb107(0x218),_0x234986=_0x21e50b[_0x4bb107(0x21b)](_0x34814e,_0x1bbf01);_0x538969(_0x21e50b['qSQHD']),_0x396ee0([{'key':_0x4bb107(0x219)+_0x4bb107(0x1a4),'value':_0x230f14},{'key':_0x21e50b[_0x4bb107(0x1d6)],'value':_0x181fc4?_0x580810('found'):_0x21e50b['hlyIj'](_0x2a3b87,_0x4bb107(0x211))}]),_0x34b920[_0x4bb107(0x206)](),_0x15051e([{'key':_0x4bb107(0x19f)+_0x4bb107(0x200),'value':_0x282532?_0x5c5f1f('ok'):_0x21e50b['mdftS'](_0x3754dc,_0x21e50b[_0x4bb107(0x1a0)])},{'key':_0x21e50b[_0x4bb107(0x1d0)],'value':_0x2debb9?_0x21e50b[_0x4bb107(0x1a8)](_0x26e80b,'ok'):_0x21e50b[_0x4bb107(0x1a8)](_0x1dd716,_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x4bb107(0x1c5)+'\x20('+_0x33a0a1+')','value':_0x234986?_0x406160('ok'):_0x12ef56(_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x21e50b[_0x4bb107(0x1bd)],'value':_0x348a54?_0x21e50b[_0x4bb107(0x1e3)](_0x4a0345,_0x4bb107(0x1d8)):_0x21e50b[_0x4bb107(0x1e3)](_0x56dae1,_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x21e50b[_0x4bb107(0x1f1)],'value':_0x3cf0ed?_0x21e50b['TguHb'](_0x5f5b50,_0x21e50b[_0x4bb107(0x1d3)]):_0x1c5882(_0x21e50b[_0x4bb107(0x1bb)])},{'key':_0x21e50b[_0x4bb107(0x1f2)],'value':_0x4ea4b3?_0x21e50b[_0x4bb107(0x21b)](_0xaab4b9,_0x4bb107(0x1d8)):_0x21e50b[_0x4bb107(0x21e)](_0x54b545,_0x21e50b['apPoO'])}]),(_0x21e50b[_0x4bb107(0x21d)](!_0x282532,!_0x2debb9)||!_0x234986)&&(_0x49c7bd['exitCode']=0x1);}else return _0x4bb107(0x1c7)+'PI_KEY';}if(_0x903943===_0x21e50b[_0x4bb107(0x1ab)])return _0x21e50b['TYJPe'];return _0x21e50b['qZYlS'];}export async function initConfig(){const _0x405a4e=_0x1829,_0x5c44d9={'YEPzA':function(_0x41c082){return _0x41c082();},'SMvWt':function(_0x522960,_0x3e027d){return _0x522960(_0x3e027d);},'fyXgC':function(_0x4d1e38,_0x79d165,_0x61f09a){return _0x4d1e38(_0x79d165,_0x61f09a);},'XJoLZ':_0x405a4e(0x1f0),'yZmDg':_0x405a4e(0x1f8)+_0x405a4e(0x1ff),'ORLCs':function(_0x18deb2,_0x3f547e){return _0x18deb2(_0x3f547e);},'FiLRh':_0x405a4e(0x19e)+_0x405a4e(0x20e)+'/openai/'+_0x405a4e(0x1a3)+_0x405a4e(0x1e9)+_0x405a4e(0x213),'qwBTQ':function(_0x1fa051,_0x320e98){return _0x1fa051||_0x320e98;},'ovWMm':_0x405a4e(0x1cd),'emOkI':function(_0x49c678,_0x3dec65){return _0x49c678!==_0x3dec65;},'TNfqU':_0x405a4e(0x1d9),'OOAbP':function(_0x14e00d,_0x20cc7e){return _0x14e00d!==_0x20cc7e;},'qfkVg':_0x405a4e(0x1a3)+'c','DTVfD':function(_0x237f08,_0x155c96){return _0x237f08===_0x155c96;},'qItVU':function(_0x41bb65,_0x1f210b){return _0x41bb65===_0x1f210b;},'xZNvT':'gpt-4o-m'+_0x405a4e(0x208),'zJoEV':_0x405a4e(0x21c)+_0x405a4e(0x1ba)+_0x405a4e(0x228),'sywBI':function(_0x2c24d8,_0x501e62){return _0x2c24d8(_0x501e62);},'vYEAh':function(_0x5a129e,_0x3e7d81){return _0x5a129e===_0x3e7d81;},'INepf':'GEMINI_A'+'PI_KEY=\x22'+'\x22','IGGEn':function(_0x5b7580,_0x244d58,_0x41ac75){return _0x5b7580(_0x244d58,_0x41ac75);},'sqClL':function(_0x14e56c,_0x200a42,_0x5db9ce,_0x3b3f18){return _0x14e56c(_0x200a42,_0x5db9ce,_0x3b3f18);},'aEhfm':_0x405a4e(0x1f5)+_0x405a4e(0x1ad)+'VED','wjyfL':function(_0x1b9a41,_0x49934c){return _0x1b9a41(_0x49934c);},'TVANw':_0x405a4e(0x21f)},_0x33d31f=_0x5c44d9[_0x405a4e(0x223)](getGlobalEnvPath);if(existsSync(_0x33d31f)){const _0x256c80=await _0x5c44d9[_0x405a4e(0x1c6)](askConfirmation,_0x33d31f+(_0x405a4e(0x1eb)+_0x405a4e(0x222)+_0x405a4e(0x19b)+_0x405a4e(0x1ae)+_0x405a4e(0x1c4)));if(!_0x256c80){console[_0x405a4e(0x206)](_0x5c44d9[_0x405a4e(0x1b4)](warn,_0x5c44d9['XJoLZ'],_0x5c44d9['yZmDg']));return;}}const _0x50764c=await _0x5c44d9[_0x405a4e(0x1c9)](askInput,_0x5c44d9[_0x405a4e(0x1d5)]),_0x74a088=_0x5c44d9[_0x405a4e(0x1a1)](_0x50764c,_0x5c44d9[_0x405a4e(0x1b7)])[_0x405a4e(0x1c3)+_0x405a4e(0x1a6)]();_0x5c44d9[_0x405a4e(0x1c8)](_0x74a088,_0x5c44d9[_0x405a4e(0x1b7)])&&_0x74a088!==_0x5c44d9['TNfqU']&&_0x5c44d9[_0x405a4e(0x1b2)](_0x74a088,_0x5c44d9['qfkVg'])&&_0x5c44d9[_0x405a4e(0x1c9)](failAndExit,_0x405a4e(0x1f6)+_0x405a4e(0x205)+_0x405a4e(0x20b)+_0x405a4e(0x1f4)+'enai,\x20or'+_0x405a4e(0x202)+_0x405a4e(0x203));const _0x37903d=_0x74a088,_0x2470cb=_0x5c44d9[_0x405a4e(0x1c2)](_0x37903d,_0x5c44d9[_0x405a4e(0x1b7)])?_0x405a4e(0x226)+'.5-flash':_0x5c44d9[_0x405a4e(0x1fc)](_0x37903d,_0x5c44d9[_0x405a4e(0x1fa)])?_0x5c44d9[_0x405a4e(0x1be)]:_0x5c44d9[_0x405a4e(0x221)],_0x318e27=await _0x5c44d9['sywBI'](askInput,_0x405a4e(0x1ed)+_0x2470cb+']:\x20')||_0x2470cb,_0x2eb692=_0x5c44d9[_0x405a4e(0x1c0)](getProviderKeyName,_0x37903d),_0x4ca0bc=await askInput(_0x2eb692+':\x20'),_0x4b63d4=[_0x405a4e(0x19f)+_0x405a4e(0x20c)+_0x37903d+'\x22','LLM_MODE'+'L=\x22'+_0x318e27+'\x22','','GOOGLE_A'+_0x405a4e(0x229)+(_0x5c44d9['vYEAh'](_0x37903d,_0x5c44d9[_0x405a4e(0x1b7)])?_0x4ca0bc:'')+'\x22',_0x5c44d9[_0x405a4e(0x1e7)],_0x405a4e(0x216)+_0x405a4e(0x229)+(_0x37903d===_0x405a4e(0x1d9)?_0x4ca0bc:'')+'\x22',_0x405a4e(0x1da)+_0x405a4e(0x1f3)+_0x405a4e(0x1b8)+(_0x5c44d9['qItVU'](_0x37903d,_0x405a4e(0x1a3)+'c')?_0x4ca0bc:'')+'\x22',''][_0x405a4e(0x1ac)]('\x0a');_0x5c44d9[_0x405a4e(0x1ec)](mkdirSync,_0x5c44d9['ORLCs'](dirname,_0x33d31f),{'recursive':!![]}),_0x5c44d9['sqClL'](writeFileSync,_0x33d31f,_0x4b63d4,_0x405a4e(0x19d)),_0x5c44d9[_0x405a4e(0x1c0)](section,_0x5c44d9[_0x405a4e(0x227)]),printKeyValues([{'key':_0x405a4e(0x1a5),'value':_0x5c44d9[_0x405a4e(0x1af)](ok,'OK')},{'key':_0x5c44d9[_0x405a4e(0x1bc)],'value':_0x33d31f}]);}export function doctorConfig(){const _0x2bb0c5=_0x1829,_0x8012a5={'YgebI':function(_0x3483af){return _0x3483af();},'YTtVT':function(_0x5a045c,_0x2a76dc){return _0x5a045c(_0x2a76dc);},'OCiiO':function(_0x190624,_0x13fd5a){return _0x190624===_0x13fd5a;},'nHTrA':function(_0x2e3f3f,_0x1d3847){return _0x2e3f3f===_0x1d3847;},'hEETJ':_0x2bb0c5(0x1d9),'OVXFb':_0x2bb0c5(0x1cd),'FjYBF':_0x2bb0c5(0x1a3)+'c','ggFwT':_0x2bb0c5(0x1a9)+'ICS','tyteV':_0x2bb0c5(0x219)+'env\x20path','WalZq':_0x2bb0c5(0x219)+_0x2bb0c5(0x21a),'HmysJ':function(_0x1c78de,_0x41e47e){return _0x1c78de(_0x41e47e);},'JOcVq':'found','iWOlR':_0x2bb0c5(0x211),'LMSzQ':_0x2bb0c5(0x19f)+'IDER','lokGi':function(_0x5275f1,_0x5667e7){return _0x5275f1(_0x5667e7);},'yPluj':'missing/'+'invalid','vGLfU':_0x2bb0c5(0x1bf)+'L','DxTWz':function(_0x3daa24,_0xbed226){return _0x3daa24(_0xbed226);},'kKLfS':function(_0x3966a5,_0x38ba9f){return _0x3966a5(_0x38ba9f);},'vVNMb':function(_0x38f945,_0x5c31b5){return _0x38f945(_0x5c31b5);},'jPUlc':_0x2bb0c5(0x1c7)+'PI_KEY','kighM':function(_0x5b591a,_0x2ec4fe){return _0x5b591a(_0x2ec4fe);},'acrGH':_0x2bb0c5(0x1d8),'otMNg':function(_0x7c7fe5,_0x45e9f0){return _0x7c7fe5(_0x45e9f0);},'EFkqP':'ANTHROPI'+'C_API_KE'+'Y','wqGfn':function(_0x17bc33,_0x3e3c56){return _0x17bc33||_0x3e3c56;}},_0x4a3a8a=_0x8012a5[_0x2bb0c5(0x1e0)](getGlobalEnvPath),_0x127a4b=_0x8012a5[_0x2bb0c5(0x1e4)](existsSync,_0x4a3a8a),_0x56174a=(process.env.LLM_PROVIDER||'')[_0x2bb0c5(0x1c3)+'ase'](),_0x5bcd57=process.env.LLM_MODEL||'',_0x4cea6d=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY||'',_0x529208=process.env.OPENAI_API_KEY||'',_0x547aea=process.env.ANTHROPIC_API_KEY||'',_0x555ea4=_0x8012a5[_0x2bb0c5(0x1b5)](_0x56174a,'google')||_0x8012a5[_0x2bb0c5(0x1e6)](_0x56174a,_0x8012a5['hEETJ'])||_0x56174a===_0x2bb0c5(0x1a3)+'c',_0x3162ba=_0x8012a5[_0x2bb0c5(0x1e4)](Boolean,_0x5bcd57),_0x420560=_0x56174a===_0x8012a5[_0x2bb0c5(0x1dd)]?_0x4cea6d:_0x8012a5[_0x2bb0c5(0x1e6)](_0x56174a,_0x8012a5[_0x2bb0c5(0x1cc)])?_0x529208:_0x8012a5[_0x2bb0c5(0x1b5)](_0x56174a,_0x8012a5[_0x2bb0c5(0x1ea)])?_0x547aea:'',_0x19c00f=_0x555ea4?_0x8012a5[_0x2bb0c5(0x1e4)](getProviderKeyName,_0x56174a):_0x2bb0c5(0x218),_0x2c2508=_0x8012a5['YTtVT'](Boolean,_0x420560);section(_0x8012a5[_0x2bb0c5(0x1b9)]),_0x8012a5[_0x2bb0c5(0x1e4)](printKeyValues,[{'key':_0x8012a5[_0x2bb0c5(0x224)],'value':_0x4a3a8a},{'key':_0x8012a5[_0x2bb0c5(0x1fe)],'value':_0x127a4b?_0x8012a5[_0x2bb0c5(0x1db)](ok,_0x8012a5[_0x2bb0c5(0x212)]):_0x8012a5['HmysJ'](warn,_0x8012a5['iWOlR'])}]),console[_0x2bb0c5(0x206)](),_0x8012a5[_0x2bb0c5(0x1db)](printKeyValues,[{'key':_0x8012a5[_0x2bb0c5(0x1cf)],'value':_0x555ea4?_0x8012a5['lokGi'](ok,'ok'):_0x8012a5[_0x2bb0c5(0x1f7)](bad,_0x8012a5[_0x2bb0c5(0x19a)])},{'key':_0x8012a5[_0x2bb0c5(0x1c1)],'value':_0x3162ba?_0x8012a5[_0x2bb0c5(0x1e1)](ok,'ok'):bad(_0x8012a5['iWOlR'])},{'key':'Expected'+'\x20('+_0x19c00f+')','value':_0x2c2508?_0x8012a5[_0x2bb0c5(0x1b0)](ok,'ok'):_0x8012a5['vVNMb'](bad,_0x8012a5[_0x2bb0c5(0x1ce)])},{'key':_0x8012a5[_0x2bb0c5(0x201)],'value':_0x4cea6d?_0x8012a5['kighM'](ok,_0x8012a5[_0x2bb0c5(0x1aa)]):_0x8012a5[_0x2bb0c5(0x20f)](warn,_0x8012a5['iWOlR'])},{'key':_0x2bb0c5(0x216)+_0x2bb0c5(0x1cb),'value':_0x529208?_0x8012a5[_0x2bb0c5(0x1e1)](ok,_0x2bb0c5(0x1d8)):_0x8012a5['kighM'](warn,_0x8012a5['iWOlR'])},{'key':_0x8012a5['EFkqP'],'value':_0x547aea?_0x8012a5[_0x2bb0c5(0x1f7)](ok,_0x8012a5['acrGH']):_0x8012a5[_0x2bb0c5(0x1e1)](warn,_0x8012a5[_0x2bb0c5(0x1ce)])}]),(_0x8012a5[_0x2bb0c5(0x215)](!_0x555ea4,!_0x3162ba)||!_0x2c2508)&&(process[_0x2bb0c5(0x1e5)]=0x1);}
@@ -1 +1 @@
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
+ (function(_0x4d76f1,_0x28c133){const _0x124253=_0x1692,_0x421851=_0x4d76f1();while(!![]){try{const _0x1c313c=-parseInt(_0x124253(0x140))/0x1*(-parseInt(_0x124253(0x113))/0x2)+-parseInt(_0x124253(0x105))/0x3*(-parseInt(_0x124253(0x11e))/0x4)+parseInt(_0x124253(0x149))/0x5+parseInt(_0x124253(0x132))/0x6+-parseInt(_0x124253(0x141))/0x7+parseInt(_0x124253(0x150))/0x8+-parseInt(_0x124253(0x11f))/0x9;if(_0x1c313c===_0x28c133)break;else _0x421851['push'](_0x421851['shift']());}catch(_0x170ad2){_0x421851['push'](_0x421851['shift']());}}}(_0x4ab9,0xa5414));function _0x4ab9(){const _0x2858c6=['mpacto\x20t','length','FqeMU','a\x20fora\x20d','rto\x20+\x20li','to\x20forne','-\x201\x20para','bjetiva\x0a','iles','89424RlXEhN','subject','bullets\x20','kAEjU','baseRef','files:','WpIpN','uUoQW','lHYTz','toString','log','gues\x20do\x20','g\x20branch','gVdZS','157535jkKBNa','9264129FjjlCd','ente\x20nad','(((.+)+)','\x20feito\x20n','\x20|\x20body:','commits','zIujF','\x20Nao\x20inv','3410570HEoFpW','se\x20lingu','changedF','ts\x20found','cipais\x20m','(none)','tor','8009680ioKzKU','vSbSu','-\x20Cite\x20i','ntexto\x20d','sta\x20com\x20','h\x20summar','AI\x20is\x20su','map','te\x20branc','pEXIX','branch:\x20','kobIH','CJPoq','trim','Diff\x20sta','yLgLJ','hash','699HyLrCC','xqbCE','wYCxm','Branch','QbzWt','\x20que\x20foi','apply','Current\x20','replace','search','mmarizin','UMMARY','\x20|\x20','udancas\x0a','2qFCCUB','ural\x20e\x20o','o\x20genera','\x0aResuma\x20','agem\x20nat','yEUDc','\x20on\x20curr','Changed\x20','cido\x0a\x0aCo','BRANCH\x20S','iHshz','11036jgpSuT','4484511YSZkAG','construc','em\x20portu','body','nch.\x0aReg','message','content','invoke','st\x20','Base\x20bra'];_0x4ab9=function(){return _0x2858c6;};return _0x4ab9();}const _0x26c51d=(function(){let _0x25c963=!![];return function(_0x385569,_0x1bf336){const _0x5277d5=_0x25c963?function(){const _0x243edc=_0x1692;if(_0x1bf336){const _0x13f030=_0x1bf336[_0x243edc(0x10b)](_0x385569,arguments);return _0x1bf336=null,_0x13f030;}}:function(){};return _0x25c963=![],_0x5277d5;};}()),_0x466215=_0x26c51d(this,function(){const _0x2f6716=_0x1692,_0x2db4ef={'iHshz':_0x2f6716(0x143)+'+)+$'};return _0x466215[_0x2f6716(0x13b)]()[_0x2f6716(0x10e)](_0x2db4ef[_0x2f6716(0x11d)])['toString']()[_0x2f6716(0x120)+_0x2f6716(0x14f)](_0x466215)[_0x2f6716(0x10e)]('(((.+)+)'+'+)+$');});_0x466215();import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function _0x1692(_0x5f046d,_0xbcbf9f){_0x5f046d=_0x5f046d-0xfe;const _0x313f21=_0x4ab9();let _0x466215=_0x313f21[_0x5f046d];return _0x466215;}function getLLM(){const _0x4a2f55=_0x1692,_0x952234={'xqbCE':function(_0x576761){return _0x576761();},'lHYTz':function(_0x151c32,_0x10abd6){return _0x151c32 instanceof _0x10abd6;},'pEXIX':function(_0x5bb971,_0x262a31){return _0x5bb971(_0x262a31);}};try{return _0x952234[_0x4a2f55(0x106)](createLLM);}catch(_0x5c3d2b){const _0x4df4e3=_0x952234[_0x4a2f55(0x13a)](_0x5c3d2b,Error)?_0x5c3d2b[_0x4a2f55(0x124)]:_0x952234[_0x4a2f55(0x159)](String,_0x5c3d2b);_0x952234[_0x4a2f55(0x159)](failAndExit,_0x4df4e3);}}function formatBranchContextForPrompt(){const _0x4e0230=_0x1692,_0x3b067d={'wYCxm':function(_0x3f6d28){return _0x3f6d28();},'KNHnl':function(_0x3a089e,_0x1a5560){return _0x3a089e===_0x1a5560;},'bYYQr':function(_0x293f17,_0x1cee96){return _0x293f17(_0x1cee96);},'CJPoq':'Commits:','vSbSu':_0x4e0230(0x11a)+_0x4e0230(0x137),'kobIH':_0x4e0230(0x14e),'uUoQW':_0x4e0230(0x102)+'t:'},_0x51fe2e=_0x3b067d[_0x4e0230(0x107)](getBranchContext);_0x3b067d['KNHnl'](_0x51fe2e[_0x4e0230(0x146)][_0x4e0230(0x12a)],0x0)&&_0x3b067d['bYYQr'](failAndExit,'No\x20commi'+_0x4e0230(0x14c)+_0x4e0230(0x119)+'ent\x20bran'+'ch\x20again'+_0x4e0230(0x127)+_0x51fe2e[_0x4e0230(0x136)]+'.');const _0x46f078=_0x51fe2e[_0x4e0230(0x146)][_0x4e0230(0x157)](_0x2d1b47=>{const _0x54a8bf=_0x4e0230,_0xb0b0e1=_0x2d1b47[_0x54a8bf(0x122)]?_0x54a8bf(0x145)+'\x20'+_0x2d1b47[_0x54a8bf(0x122)][_0x54a8bf(0x10d)](/\s+/g,'\x20')[_0x54a8bf(0x101)]():'';return'-\x20'+_0x2d1b47[_0x54a8bf(0x104)]['slice'](0x0,0x7)+_0x54a8bf(0x111)+_0x2d1b47[_0x54a8bf(0x133)]+_0xb0b0e1;});return[_0x4e0230(0x10c)+_0x4e0230(0xfe)+_0x3b067d[_0x4e0230(0x107)](getCurrentBranch),_0x4e0230(0x128)+'nch:\x20'+_0x51fe2e[_0x4e0230(0x136)],'',_0x3b067d[_0x4e0230(0x100)],..._0x46f078,'',_0x3b067d[_0x4e0230(0x151)],_0x51fe2e[_0x4e0230(0x14b)+_0x4e0230(0x131)]||_0x3b067d[_0x4e0230(0xff)],'',_0x3b067d[_0x4e0230(0x139)],_0x51fe2e['diffStat']||_0x3b067d['kobIH']]['join']('\x0a');}export async function summarizeBranchLog(){const _0x41c8ba=_0x1692,_0x4319ae={'QbzWt':function(_0x6dbda8){return _0x6dbda8();},'yLgLJ':function(_0x2e5b34,_0x2ef3b1,_0x33ad77){return _0x2e5b34(_0x2ef3b1,_0x33ad77);},'zIujF':_0x41c8ba(0x156)+_0x41c8ba(0x10f)+_0x41c8ba(0x13e)+'\x20work...','WpIpN':function(_0x264b8e,_0x7dcd7a){return _0x264b8e(_0x7dcd7a);},'yEUDc':'Failed\x20t'+_0x41c8ba(0x115)+_0x41c8ba(0x158)+_0x41c8ba(0x155)+'y.','FqeMU':function(_0x18e8cb,_0x4d3382){return _0x18e8cb(_0x4d3382);},'gVdZS':function(_0x5af6a4,_0xe01770){return _0x5af6a4(_0xe01770);},'kAEjU':function(_0x3fe177){return _0x3fe177();}};_0x4319ae[_0x41c8ba(0x109)](getGitStatus);const _0x50161a=_0x4319ae[_0x41c8ba(0x109)](getLLM),_0x1dfe9d=_0x4319ae[_0x41c8ba(0x109)](formatBranchContextForPrompt),_0x5b8b6f=(_0x41c8ba(0x116)+_0x41c8ba(0x121)+_0x41c8ba(0x13d)+'Brasil\x20o'+_0x41c8ba(0x10a)+_0x41c8ba(0x144)+'este\x20bra'+_0x41c8ba(0x123)+'ras:\x0a-\x20U'+_0x41c8ba(0x14a)+_0x41c8ba(0x117)+_0x41c8ba(0x114)+_0x41c8ba(0x130)+_0x41c8ba(0x12f)+'grafo\x20cu'+_0x41c8ba(0x12d)+_0x41c8ba(0x154)+_0x41c8ba(0x134)+'das\x20prin'+_0x41c8ba(0x14d)+_0x41c8ba(0x112)+_0x41c8ba(0x152)+_0x41c8ba(0x129)+'ecnico\x20q'+'uando\x20po'+'ssivel\x0a-'+_0x41c8ba(0x148)+_0x41c8ba(0x142)+_0x41c8ba(0x12c)+'o\x20contex'+_0x41c8ba(0x12e)+_0x41c8ba(0x11b)+_0x41c8ba(0x153)+'o\x20branch'+':\x0a'+_0x1dfe9d+'\x0a')['trim'](),_0x24f36f=await _0x4319ae[_0x41c8ba(0x103)](withProgress,_0x4319ae[_0x41c8ba(0x147)],()=>_0x50161a[_0x41c8ba(0x126)](_0x5b8b6f)),_0x47068e=extractMessageText(_0x24f36f[_0x41c8ba(0x125)]);!_0x47068e&&_0x4319ae[_0x41c8ba(0x138)](failAndExit,_0x4319ae[_0x41c8ba(0x118)]),_0x4319ae[_0x41c8ba(0x12b)](section,_0x41c8ba(0x11c)+_0x41c8ba(0x110)),_0x4319ae[_0x41c8ba(0x13f)](printKeyValues,[{'key':_0x41c8ba(0x108),'value':_0x4319ae[_0x41c8ba(0x135)](getCurrentBranch)}]),console[_0x41c8ba(0x13c)](_0x47068e),console[_0x41c8ba(0x13c)]();}
@@ -1 +1 @@
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
+ (function(_0x27bba5,_0x28b877){const _0x253ae2=_0x4d0d,_0x2328a9=_0x27bba5();while(!![]){try{const _0x34ca7d=-parseInt(_0x253ae2(0x1e1))/0x1+-parseInt(_0x253ae2(0x1cf))/0x2+parseInt(_0x253ae2(0x19f))/0x3*(parseInt(_0x253ae2(0x1c6))/0x4)+parseInt(_0x253ae2(0x18a))/0x5*(parseInt(_0x253ae2(0x1c1))/0x6)+-parseInt(_0x253ae2(0x1d7))/0x7*(parseInt(_0x253ae2(0x17e))/0x8)+-parseInt(_0x253ae2(0x196))/0x9*(-parseInt(_0x253ae2(0x1d5))/0xa)+parseInt(_0x253ae2(0x1bc))/0xb;if(_0x34ca7d===_0x28b877)break;else _0x2328a9['push'](_0x2328a9['shift']());}catch(_0x86e718){_0x2328a9['push'](_0x2328a9['shift']());}}}(_0x4bcc,0x4d7aa));const _0x1fe735=(function(){let _0x1dcac4=!![];return function(_0x4a0cde,_0x1d2288){const _0x22d452=_0x1dcac4?function(){const _0x59b779=_0x4d0d;if(_0x1d2288){const _0x3d3932=_0x1d2288[_0x59b779(0x1d8)](_0x4a0cde,arguments);return _0x1d2288=null,_0x3d3932;}}:function(){};return _0x1dcac4=![],_0x22d452;};}()),_0x2a107e=_0x1fe735(this,function(){const _0x1dcd02=_0x4d0d,_0x3a936c={'xACbg':'(((.+)+)'+_0x1dcd02(0x1e3)};return _0x2a107e['toString']()[_0x1dcd02(0x1af)](_0x1dcd02(0x1b7)+_0x1dcd02(0x1e3))[_0x1dcd02(0x1d0)]()[_0x1dcd02(0x178)+_0x1dcd02(0x1bd)](_0x2a107e)[_0x1dcd02(0x1af)](_0x3a936c[_0x1dcd02(0x1c9)]);});_0x2a107e();function _0x4bcc(){const _0x4af364=[':\x0a<markd','AI\x20respo','Current\x20','KZELy','indexOf','(((.+)+)','own>\x0a\x0aBr','\x20and\x20des','XYXwM','Title','7392858GYaLVt','tor','baseRef','nglish\x20(','\x20|\x20body:','813246JCNbtT','anch\x20dat','rmat:\x0aTI','PR\x20title','title:','157132flCVmN','TLE:\x20<ti','ase','xACbg','diffStat','cription','...','Diff\x20sta','ude\x20vali','789960avhbnD','toString','st\x20','eturn\x20ex','tle>\x0aDES','le/descr','10riIxvz','boRzO','105BLpbPC','apply','d\x20PR\x20tit','o\x20genera','MNIam','zHQXH','DZMXC','h\x20sectio','hIlSG','XRXZv','324750akJwpw','the\x20bran','+)+$','tle\x20in\x20E','(none)','ion:','join','\x20|\x20','log','Changed\x20','findInde','om\x20AI\x20re','trim','below,\x20c','subject','hash','sponse.','descript','HjlqR','hQLxa','not\x20incl','construc','kArYD','ased\x20on\x20','oBwWE','title','IWXSp','176824gIycKp','pOQKi','split','\x0aYou\x20are','bLoWw','eparing\x20','nges,\x20Te','nse\x20did\x20','startsWi','stion\x20fr','LITny','branch:\x20','5PQZbtK','reate:\x0a-','files:','\x20generat','toLowerC','QHjGy','commits','map','QkePC','PR\x20sugge','iption.','hars)\x0a-\x20','452979NjRjUt','max\x2072\x20c','o\x20parse\x20','AI\x20is\x20pr','ary,\x20Cha','tUnBS','quest.\x0aB','changedF','\x20Pull\x20Re','39jCkiBw','PR\x20DESCR','ntent.','Failed\x20t','a:\x0a','actly\x20in','ts\x20found','IPTION','message','dOuXX','Wllid','ion','ing\x20cont','length','ent\x20bran','body','search','ent\x20for\x20','slice'];_0x4bcc=function(){return _0x4af364;};return _0x4bcc();}import{createLLM,extractMessageText}from'../llm.js';import{getBranchContext,getCurrentBranch,getGitStatus}from'../git.js';import{failAndExit,printKeyValues,section,withProgress}from'../ui.js';function _0x4d0d(_0x328c50,_0x1c2a9a){_0x328c50=_0x328c50-0x168;const _0x39a8c7=_0x4bcc();let _0x2a107e=_0x39a8c7[_0x328c50];return _0x2a107e;}function getLLM(){const _0x5b60e2=_0x4d0d,_0x5a4382={'gWpvj':function(_0x4d7aec){return _0x4d7aec();},'IWXSp':function(_0x2e1838,_0xc74e7){return _0x2e1838 instanceof _0xc74e7;},'QkePC':function(_0x443b1e,_0x1cea38){return _0x443b1e(_0x1cea38);}};try{return _0x5a4382['gWpvj'](createLLM);}catch(_0x511d9a){const _0x24fd70=_0x5a4382[_0x5b60e2(0x17d)](_0x511d9a,Error)?_0x511d9a[_0x5b60e2(0x1a7)]:_0x5a4382[_0x5b60e2(0x192)](String,_0x511d9a);_0x5a4382['QkePC'](failAndExit,_0x24fd70);}}function formatCommitsForPrompt(){const _0x38f32f=_0x4d0d,_0x35fa7a={'Wllid':function(_0x26bf72,_0x23c42b){return _0x26bf72(_0x23c42b);},'HjlqR':function(_0x4e69c7){return _0x4e69c7();},'MNIam':function(_0x7af6d9,_0x5561a6){return _0x7af6d9===_0x5561a6;},'dOuXX':function(_0x4b3911,_0x4e4806){return _0x4b3911!==_0x4e4806;},'zHQXH':_0x38f32f(0x19b),'XRXZv':function(_0x41f3e9,_0x1a0df8){return _0x41f3e9(_0x1a0df8);},'ioJAt':'Commits:','pqClL':_0x38f32f(0x1e5),'mXRit':_0x38f32f(0x1cd)+'t:'},_0x75bc04=_0x35fa7a[_0x38f32f(0x175)](getBranchContext);_0x35fa7a[_0x38f32f(0x1db)](_0x75bc04['commits'][_0x38f32f(0x1ac)],0x0)&&(_0x35fa7a[_0x38f32f(0x1a8)](_0x38f32f(0x1d6),_0x35fa7a[_0x38f32f(0x1dc)])?_0x35fa7a[_0x38f32f(0x1e0)](failAndExit,'No\x20commi'+_0x38f32f(0x1a5)+'\x20on\x20curr'+_0x38f32f(0x1ad)+'ch\x20again'+_0x38f32f(0x1d1)+_0x75bc04[_0x38f32f(0x1be)]+'.'):_0x35fa7a[_0x38f32f(0x1a9)](_0xf3942d,_0x38f32f(0x1b3)+'nse\x20did\x20'+_0x38f32f(0x177)+_0x38f32f(0x1ce)+_0x38f32f(0x1d9)+_0x38f32f(0x1d4)+_0x38f32f(0x194)));const _0x1e51b2=_0x75bc04[_0x38f32f(0x190)][_0x38f32f(0x191)](_0x27d142=>{const _0x5a2696=_0x38f32f,_0x491bbd=_0x27d142['body']?_0x5a2696(0x1c0)+'\x20'+_0x27d142[_0x5a2696(0x1ae)]['replace'](/\s+/g,'\x20')[_0x5a2696(0x16f)]():'';return'-\x20'+_0x27d142[_0x5a2696(0x172)][_0x5a2696(0x1b1)](0x0,0x7)+_0x5a2696(0x16a)+_0x27d142[_0x5a2696(0x171)]+_0x491bbd;});return[_0x38f32f(0x1b4)+_0x38f32f(0x189)+_0x35fa7a[_0x38f32f(0x175)](getCurrentBranch),'Base\x20bra'+'nch:\x20'+_0x75bc04[_0x38f32f(0x1be)],'',_0x35fa7a['ioJAt'],..._0x1e51b2,'',_0x38f32f(0x16c)+_0x38f32f(0x18c),_0x75bc04[_0x38f32f(0x19d)+'iles']||_0x35fa7a['pqClL'],'',_0x35fa7a['mXRit'],_0x75bc04[_0x38f32f(0x1ca)]||_0x35fa7a['pqClL']]['join']('\x0a');}function parsePrSuggestion(_0x1fbed7){const _0x22dbe2=_0x4d0d,_0x3500f5={'hIlSG':function(_0x4c1e8f,_0x505559){return _0x4c1e8f<_0x505559;},'DZMXC':function(_0x375f48,_0x4884cc){return _0x375f48(_0x4884cc);},'cGvvs':_0x22dbe2(0x1a2)+_0x22dbe2(0x198)+_0x22dbe2(0x193)+_0x22dbe2(0x187)+_0x22dbe2(0x16e)+_0x22dbe2(0x173),'hQLxa':function(_0x4b562d,_0x2df10a){return _0x4b562d+_0x2df10a;},'pOQKi':function(_0x2ee85d,_0x1526be){return _0x2ee85d||_0x1526be;},'LITny':'AI\x20respo'+_0x22dbe2(0x185)+_0x22dbe2(0x177)+'ude\x20vali'+_0x22dbe2(0x1d9)+_0x22dbe2(0x1d4)+'iption.'},_0x4ca816=_0x1fbed7[_0x22dbe2(0x180)](/\r?\n/),_0x55d01a=_0x4ca816['find'](_0x4e3250=>_0x4e3250[_0x22dbe2(0x18e)+_0x22dbe2(0x1c8)]()[_0x22dbe2(0x186)+'th'](_0x22dbe2(0x1c5))),_0x141fd3=_0x4ca816[_0x22dbe2(0x16d)+'x'](_0x227ae9=>_0x227ae9['toLowerC'+_0x22dbe2(0x1c8)]()[_0x22dbe2(0x186)+'th'](_0x22dbe2(0x174)+_0x22dbe2(0x168)));(!_0x55d01a||_0x3500f5[_0x22dbe2(0x1df)](_0x141fd3,0x0))&&_0x3500f5[_0x22dbe2(0x1dd)](failAndExit,_0x3500f5['cGvvs']);const _0x38a2e1=_0x55d01a[_0x22dbe2(0x1b1)](_0x3500f5[_0x22dbe2(0x176)](_0x55d01a[_0x22dbe2(0x1b6)](':'),0x1))[_0x22dbe2(0x16f)](),_0x1612d1=_0x4ca816['slice'](_0x141fd3+0x1)[_0x22dbe2(0x169)]('\x0a')[_0x22dbe2(0x16f)]();return _0x3500f5[_0x22dbe2(0x17f)](!_0x38a2e1,!_0x1612d1)&&failAndExit(_0x3500f5[_0x22dbe2(0x188)]),{'title':_0x38a2e1,'description':_0x1612d1};}export async function generatePullRequestText(){const _0x5dab4e=_0x4d0d,_0x5f3e9d={'kArYD':function(_0x3ba13f){return _0x3ba13f();},'bLoWw':function(_0x42605d,_0x307130,_0x2b6999){return _0x42605d(_0x307130,_0x2b6999);},'oBwWE':function(_0x41c741,_0x2ccabe){return _0x41c741(_0x2ccabe);},'HJsfs':'Failed\x20t'+_0x5dab4e(0x1da)+'te\x20PR\x20co'+_0x5dab4e(0x1a1),'KZELy':function(_0x430eea,_0x586cc2){return _0x430eea(_0x586cc2);},'QHjGy':'PR\x20TITLE','XYXwM':_0x5dab4e(0x1bb),'QsLib':function(_0x3b4612,_0x4c4884){return _0x3b4612(_0x4c4884);},'TheXl':_0x5dab4e(0x1a0)+_0x5dab4e(0x1a6)};_0x5f3e9d[_0x5dab4e(0x179)](getGitStatus);const _0x103bd8=getLLM(),_0x3de5ad=formatCommitsForPrompt(),_0x518780=(_0x5dab4e(0x181)+_0x5dab4e(0x18d)+_0x5dab4e(0x1ab)+_0x5dab4e(0x1b0)+'a\x20GitHub'+_0x5dab4e(0x19e)+_0x5dab4e(0x19c)+_0x5dab4e(0x17a)+_0x5dab4e(0x1e2)+'ch\x20data\x20'+_0x5dab4e(0x170)+_0x5dab4e(0x18b)+'\x20A\x20conci'+'se\x20PR\x20ti'+_0x5dab4e(0x1e4)+_0x5dab4e(0x1bf)+_0x5dab4e(0x197)+_0x5dab4e(0x195)+'A\x20clear\x20'+'markdown'+'\x20descrip'+'tion\x20wit'+_0x5dab4e(0x1de)+'ns:\x20Summ'+_0x5dab4e(0x19a)+_0x5dab4e(0x184)+'sting\x0a\x0aR'+_0x5dab4e(0x1d2)+_0x5dab4e(0x1a4)+'\x20this\x20fo'+_0x5dab4e(0x1c3)+_0x5dab4e(0x1c7)+_0x5dab4e(0x1d3)+'CRIPTION'+_0x5dab4e(0x1b2)+_0x5dab4e(0x1b8)+_0x5dab4e(0x1c2)+_0x5dab4e(0x1a3)+_0x3de5ad+'\x0a')['trim'](),_0xa2a40a=await _0x5f3e9d[_0x5dab4e(0x182)](withProgress,_0x5dab4e(0x199)+_0x5dab4e(0x183)+_0x5dab4e(0x1c4)+_0x5dab4e(0x1b9)+_0x5dab4e(0x1cb)+_0x5dab4e(0x1cc),()=>_0x103bd8['invoke'](_0x518780)),_0x1fa3d9=extractMessageText(_0xa2a40a['content']);!_0x1fa3d9&&_0x5f3e9d[_0x5dab4e(0x17b)](failAndExit,_0x5f3e9d['HJsfs']);const _0x3414f0=parsePrSuggestion(_0x1fa3d9);_0x5f3e9d[_0x5dab4e(0x1b5)](section,_0x5f3e9d[_0x5dab4e(0x18f)]),_0x5f3e9d[_0x5dab4e(0x1b5)](printKeyValues,[{'key':_0x5f3e9d[_0x5dab4e(0x1ba)],'value':_0x3414f0[_0x5dab4e(0x17c)]}]),_0x5f3e9d['QsLib'](section,_0x5f3e9d['TheXl']),console[_0x5dab4e(0x16b)](_0x3414f0[_0x5dab4e(0x174)+_0x5dab4e(0x1aa)]),console['log']();}
@@ -1 +1 @@
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
+ (function(_0x5bd581,_0x8f450e){const _0x1820d9=_0x25ac,_0x3476f5=_0x5bd581();while(!![]){try{const _0x1ebf08=parseInt(_0x1820d9(0x90))/0x1*(parseInt(_0x1820d9(0x86))/0x2)+-parseInt(_0x1820d9(0x96))/0x3*(-parseInt(_0x1820d9(0x97))/0x4)+parseInt(_0x1820d9(0x68))/0x5+parseInt(_0x1820d9(0x8d))/0x6*(parseInt(_0x1820d9(0x7c))/0x7)+parseInt(_0x1820d9(0x87))/0x8+-parseInt(_0x1820d9(0x6a))/0x9+-parseInt(_0x1820d9(0x7a))/0xa;if(_0x1ebf08===_0x8f450e)break;else _0x3476f5['push'](_0x3476f5['shift']());}catch(_0x23cd0a){_0x3476f5['push'](_0x3476f5['shift']());}}}(_0x59d7,0x5681f));const _0x120628=(function(){const _0x1e08bc=_0x25ac,_0x44d5b0={'juhcQ':'Library','nVrJt':_0x1e08bc(0x77)+_0x1e08bc(0x8b)+_0x1e08bc(0x67),'WgtAK':function(_0x201c06,_0x5f05ab){return _0x201c06===_0x5f05ab;},'lAaeL':'tSSec','cdkFL':_0x1e08bc(0x66)};let _0x2564a9=!![];return function(_0x93111b,_0x294c64){const _0x57ae5d=_0x1e08bc,_0x15ed7e={'MxlCw':function(_0x20326c,_0x59de26,_0x3d5622,_0x3eb5c2){return _0x20326c(_0x59de26,_0x3d5622,_0x3eb5c2);},'TbpNx':function(_0x51df0a){return _0x51df0a();},'biVNb':_0x44d5b0['juhcQ'],'WwxgP':_0x44d5b0[_0x57ae5d(0x69)],'TcWMU':function(_0x57968f,_0x3d5c2d){const _0x164076=_0x57ae5d;return _0x44d5b0[_0x164076(0x83)](_0x57968f,_0x3d5c2d);},'cWpgX':_0x44d5b0[_0x57ae5d(0x70)],'dFvKJ':_0x44d5b0['cdkFL']},_0x1f7b65=_0x2564a9?function(){const _0x50a4b7=_0x57ae5d;if(_0x15ed7e[_0x50a4b7(0x6f)](_0x15ed7e['cWpgX'],_0x15ed7e[_0x50a4b7(0x81)]))return _0x15ed7e[_0x50a4b7(0x95)](_0x2f3a4a,_0x15ed7e['TbpNx'](_0x2cdc63),_0x15ed7e[_0x50a4b7(0x64)],_0x15ed7e['WwxgP']);else{if(_0x294c64){const _0x2cd819=_0x294c64[_0x50a4b7(0x79)](_0x93111b,arguments);return _0x294c64=null,_0x2cd819;}}}:function(){};return _0x2564a9=![],_0x1f7b65;};}()),_0x169155=_0x120628(this,function(){const _0xef7a1=_0x25ac,_0x4d2496={'WsGbn':_0xef7a1(0x88)+_0xef7a1(0x73)};return _0x169155[_0xef7a1(0x6c)]()[_0xef7a1(0x94)](_0x4d2496[_0xef7a1(0x74)])[_0xef7a1(0x6c)]()[_0xef7a1(0x98)+'tor'](_0x169155)[_0xef7a1(0x94)](_0xef7a1(0x88)+_0xef7a1(0x73));});function _0x59d7(){const _0x95a8e4=['Mkfbi','apply','12204730sSnEJO','eFBQm','21qUDJpT','BWwPO','platform','bVUIK','.config','dFvKJ','gemit','WgtAK','.gemit','Roust','4ueBdRd','1733952uXZsVX','(((.+)+)','LzeZq','ncpRd','ion\x20Supp','paalU','342894kGrfMm','win32','RwNIw','307051zsqeqv','.env','ghmBF','dlyOM','search','MxlCw','272703coLMlB','8TTjujl','construc','darwin','IMlWB','wNIxE','biVNb','IeREM','KRYRz','ort','3044870pLeRGm','nVrJt','1964349XvfmBF','entries','toString','udqpq','utf8','TcWMU','lAaeL','vJYIg','JMPeC','+)+$','WsGbn','rUIiW','RNoRc','Applicat'];_0x59d7=function(){return _0x95a8e4;};return _0x59d7();}_0x169155();import{existsSync,readFileSync}from'fs';function _0x25ac(_0x3f120a,_0x45ed38){_0x3f120a=_0x3f120a-0x64;const _0x2c5feb=_0x59d7();let _0x169155=_0x2c5feb[_0x3f120a];return _0x169155;}import{homedir}from'os';import{join}from'path';import{parse as _0x510a05}from'dotenv';function getBaseConfigDir(){const _0x5eca4d=_0x25ac,_0x2646fb={'AdSWC':_0x5eca4d(0x8e),'dlyOM':function(_0x428bdb){return _0x428bdb();},'wNIxE':_0x5eca4d(0x84),'udqpq':function(_0x30d054,_0x33cb06){return _0x30d054===_0x33cb06;},'RNoRc':_0x5eca4d(0x99),'iyFvT':function(_0x242a99,_0x5f0e7c,_0x346311,_0x5e7387){return _0x242a99(_0x5f0e7c,_0x346311,_0x5e7387);},'Mkfbi':function(_0x594977){return _0x594977();},'ncpRd':'Library','eFBQm':_0x5eca4d(0x77)+_0x5eca4d(0x8b)+_0x5eca4d(0x67),'IMlWB':function(_0x1b6e6e,_0x5cc69d,_0x547ca7){return _0x1b6e6e(_0x5cc69d,_0x547ca7);},'KEwjv':_0x5eca4d(0x80)};if(process[_0x5eca4d(0x7e)]===_0x2646fb['AdSWC'])return process.env.APPDATA||join(_0x2646fb[_0x5eca4d(0x93)](homedir),_0x2646fb[_0x5eca4d(0x9b)]);if(_0x2646fb[_0x5eca4d(0x6d)](process['platform'],_0x2646fb[_0x5eca4d(0x76)]))return _0x2646fb['iyFvT'](join,_0x2646fb[_0x5eca4d(0x78)](homedir),_0x2646fb[_0x5eca4d(0x8a)],_0x2646fb[_0x5eca4d(0x7b)]);return process.env.XDG_CONFIG_HOME||_0x2646fb[_0x5eca4d(0x9a)](join,_0x2646fb['Mkfbi'](homedir),_0x2646fb['KEwjv']);}export function getGlobalEnvPath(){const _0x3e1281=_0x25ac,_0x4176cc={'RwNIw':function(_0x55c84b,_0x28bb96){return _0x55c84b===_0x28bb96;},'bVUIK':_0x3e1281(0x8e),'BWwPO':function(_0x447fc5,_0x52fcfb,_0x94c8ad,_0x30bb44){return _0x447fc5(_0x52fcfb,_0x94c8ad,_0x30bb44);},'VtKOl':_0x3e1281(0x82),'gfgez':_0x3e1281(0x91),'LzeZq':function(_0x12e342,_0x4a0b1b,_0x44b32b,_0x57c6e5){return _0x12e342(_0x4a0b1b,_0x44b32b,_0x57c6e5);},'jYltx':function(_0x349076){return _0x349076();}};if(_0x4176cc[_0x3e1281(0x8f)](process[_0x3e1281(0x7e)],_0x4176cc[_0x3e1281(0x7f)])&&process.env.APPDATA)return _0x4176cc[_0x3e1281(0x7d)](join,process.env.APPDATA,_0x4176cc['VtKOl'],_0x4176cc['gfgez']);return _0x4176cc[_0x3e1281(0x89)](join,_0x4176cc['jYltx'](getBaseConfigDir),'gemit','.env');}export function loadConfig(){const _0x612203=_0x25ac,_0x585eab={'Roust':function(_0x4c4042,_0x5a3b6f,_0xc4feed){return _0x4c4042(_0x5a3b6f,_0xc4feed);},'rAqTc':function(_0x393d46,_0x1152f9){return _0x393d46(_0x1152f9);},'vJYIg':'.env'},_0xbed666=getGlobalEnvPath();_0x585eab['Roust'](loadEnvFile,_0xbed666,![]),_0x585eab['rAqTc'](existsSync,_0x585eab['vJYIg'])&&_0x585eab[_0x612203(0x85)](loadEnvFile,_0x585eab[_0x612203(0x71)],!![]);}function loadEnvFile(_0x332721,_0x1d1105){const _0x55f66b=_0x25ac,_0x4b596f={'XVzjC':function(_0x33e1c2,_0x11e17f,_0x20d1ce){return _0x33e1c2(_0x11e17f,_0x20d1ce);},'JMPeC':_0x55f66b(0x84),'paalU':function(_0x1a7b7d,_0x3da6f2){return _0x1a7b7d===_0x3da6f2;},'rUIiW':'ToqQt','ghmBF':function(_0x34539b,_0xa0ff1b){return _0x34539b(_0xa0ff1b);},'IeREM':_0x55f66b(0x6e)};if(!existsSync(_0x332721)){if(_0x4b596f['paalU'](_0x4b596f[_0x55f66b(0x75)],_0x4b596f[_0x55f66b(0x75)]))return;else return _0x17494.env.APPDATA||oOvnVt['XVzjC'](_0x2fa75a,_0x25733a(),oOvnVt[_0x55f66b(0x72)]);}const _0x20eb95=_0x4b596f[_0x55f66b(0x92)](_0x510a05,readFileSync(_0x332721,_0x4b596f[_0x55f66b(0x65)]));for(const [_0x153c44,_0x3b5bd6]of Object[_0x55f66b(0x6b)](_0x20eb95)){(_0x1d1105||_0x4b596f[_0x55f66b(0x8c)](process.env[_0x153c44],undefined))&&(process.env[_0x153c44]=_0x3b5bd6);}}
@@ -1 +1 @@
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
+ (function(_0x54d3ca,_0x4ba6f9){const _0x18db4a=_0x14a3,_0x36d6fd=_0x54d3ca();while(!![]){try{const _0x4e4b5a=-parseInt(_0x18db4a(0x89))/0x1*(-parseInt(_0x18db4a(0x92))/0x2)+-parseInt(_0x18db4a(0x11b))/0x3+parseInt(_0x18db4a(0x88))/0x4*(parseInt(_0x18db4a(0xff))/0x5)+-parseInt(_0x18db4a(0xe1))/0x6+parseInt(_0x18db4a(0x112))/0x7*(parseInt(_0x18db4a(0xf1))/0x8)+parseInt(_0x18db4a(0xbc))/0x9*(parseInt(_0x18db4a(0xb5))/0xa)+parseInt(_0x18db4a(0xd1))/0xb*(parseInt(_0x18db4a(0x7a))/0xc);if(_0x4e4b5a===_0x4ba6f9)break;else _0x36d6fd['push'](_0x36d6fd['shift']());}catch(_0x4f05ab){_0x36d6fd['push'](_0x36d6fd['shift']());}}}(_0x7049,0x599fd));const _0x3cca78=(function(){let _0x125b96=!![];return function(_0x14a059,_0x49185f){const _0x580984=_0x125b96?function(){const _0x735350=_0x14a3;if(_0x49185f){const _0x5ce02e=_0x49185f[_0x735350(0xe0)](_0x14a059,arguments);return _0x49185f=null,_0x5ce02e;}}:function(){};return _0x125b96=![],_0x580984;};}()),_0x545227=_0x3cca78(this,function(){const _0x45244d=_0x14a3,_0x24bc4d={'zspcP':_0x45244d(0xc8)+_0x45244d(0xdb)};return _0x545227['toString']()[_0x45244d(0xf2)](_0x24bc4d['zspcP'])['toString']()['construc'+_0x45244d(0x8b)](_0x545227)['search'](_0x24bc4d[_0x45244d(0x81)]);});_0x545227();import{execFileSync,execSync}from'child_process';import{failAndExit}from'./ui.js';function _0x14a3(_0x40cb6d,_0x29a4be){_0x40cb6d=_0x40cb6d-0x78;const _0x5d655b=_0x7049();let _0x545227=_0x5d655b[_0x40cb6d];return _0x545227;}function runGit(_0x63ce65){const _0x3a1736=_0x14a3,_0x33e377={'DRjNp':'git'};return execFileSync(_0x33e377['DRjNp'],_0x63ce65,{'stdio':_0x3a1736(0xe7)})[_0x3a1736(0xad)]();}export function getGitStatus(){const _0x44861b=_0x14a3,_0x5a886a={'KKLJg':function(_0x55136c,_0xe3dfc0){return _0x55136c(_0xe3dfc0);},'QhCFe':_0x44861b(0x84),'DQQkO':function(_0x258ca3,_0xb75c07){return _0x258ca3(_0xb75c07);},'HXiWF':'diff','zZdNv':'--stat','bNZZj':_0x44861b(0xa0)+'t\x20reposi'+_0x44861b(0x9c)};try{const _0x4c8d14=_0x5a886a['KKLJg'](runGit,[_0x5a886a[_0x44861b(0xb3)]]),_0x33f636=_0x5a886a[_0x44861b(0xe6)](runGit,[_0x5a886a[_0x44861b(0xb0)],_0x5a886a[_0x44861b(0xc2)]]);return _0x4c8d14+'\x0a'+_0x33f636;}catch{failAndExit(_0x5a886a[_0x44861b(0x87)]);}}export function branchExists(_0x12f46d){const _0x2891c4=_0x14a3,_0x438c7c={'JlMEo':_0x2891c4(0xe7)};try{return execSync(_0x2891c4(0x9b)+'-ref\x20--v'+_0x2891c4(0x107)+_0x2891c4(0x110)+_0x2891c4(0x98)+'/'+_0x12f46d,{'stdio':_0x438c7c['JlMEo']}),!![];}catch{return![];}}function _0x7049(){const _0x58077c=['t\x20infer\x20','heWMy','IqvJY','\x20current','main','ds/','9uFEJFP','pLUwe','whEki','dMPEx','ATpbc','khROb','zZdNv','--stat','jmuDs','swpUy','rRlsG','log','(((.+)+)','jzmbv','isNaN','SwEFC','t\x20reposi','it\x20commi','qzfNp','filter','qvhVI','7601ZqQmTJ','Xmyvx','gcuoh','add','Could\x20no','tZAHQ','PcRJt','r\x20create','ster.','SJjvp','+)+$','ulVZP','yQMwD','amtBq','refs/rem','apply','230610JpskBM','--short','GNmfs','ZiyFA','symbolic','DQQkO','pipe','diff','RiwUT','\x20main/ma','Jpoyx','HnEqp','--date=s','RBfrV','e\x20merge-','aCzwe','1728032PrzXBb','search','parse\x20--','@{upstre','FQFtx','--name-s','%x1f%b%x','hThdv','subject','AkgYg','ch\x20--sho','inherit','%H%x1f%s','th\x20git\x20a','100XGKeyx','KSmZO','\x20branch.','mOuMb','git','includes','sVNKO','mAOHU','erify\x20--','VFrRb','origin','merge-ba','t\x20comput','develop','--revers','--cached','files\x20wi','quiet\x20re','QYQHG','14NYciUI','t\x20detect','\x20changes','split','--verify','VykHc','base\x20wit','o\x20stage\x20','yQvLj','1934109xaTHgl','LDllb','qFivr','QGBWh','1668kEYBEj','GRBdG','cpcwg','Failed\x20t','t\x20read\x20g','=format:','t\x20histor','zspcP','am}','GDPqE','status','ef\x20--sym','git\x20remo','bNZZj','48564GSnfXC','2WemUBT','zPrbj','tor','parseInt','f%an%x1e','MXipT','hash','zSdeF','ebhiJ','143278mlHtJl','trim','abbrev-r','geLYa','slice','exjLg','fs/heads','dd\x20.','LPiZe','git\x20show','tory.','kehiY','git\x20bran','otes/','Not\x20a\x20gi','length','YJmlo','RFdFX','w-curren','t\x20staged','qzjbn','JNAZX','ll-name\x20','..HEAD','IpLTB','sgyOq','--pretty','toString','master','map','HXiWF','refs/hea','tatus','QhCFe','base\x20bra','1360840GPrTsm'];_0x7049=function(){return _0x58077c;};return _0x7049();}export function getCurrentBranch(){const _0x2200f4=_0x14a3,_0x1bc876={'RBfrV':function(_0x5c13f0,_0x90d1b9){return _0x5c13f0(_0x90d1b9);},'LPiZe':_0x2200f4(0xa0)+_0x2200f4(0xcc)+'tory.','Xmyvx':function(_0x506cb9,_0x26969d){return _0x506cb9!==_0x26969d;},'peuhe':_0x2200f4(0x78),'fWlrS':function(_0x374fe1,_0x54879a,_0x48c1b6){return _0x374fe1(_0x54879a,_0x48c1b6);},'VFrRb':_0x2200f4(0x9e)+_0x2200f4(0xfb)+_0x2200f4(0xa4)+'t','utIWx':function(_0x46ce9e,_0xfdbf16){return _0x46ce9e(_0xfdbf16);},'zPrbj':_0x2200f4(0xd5)+_0x2200f4(0x113)+'\x20current'+_0x2200f4(0x101)};try{if(_0x1bc876[_0x2200f4(0xd2)](_0x2200f4(0xc0),_0x1bc876['peuhe'])){const _0x2c2754=_0x1bc876['fWlrS'](execSync,_0x1bc876[_0x2200f4(0x108)],{'stdio':_0x2200f4(0xe7)})[_0x2200f4(0xad)]()['trim']();return!_0x2c2754&&_0x1bc876[_0x2200f4(0xee)](failAndExit,_0x2200f4(0xd5)+'t\x20detect'+_0x2200f4(0xb9)+_0x2200f4(0x101)),_0x2c2754;}else mvVztE['RBfrV'](_0x4b4d39,mvVztE[_0x2200f4(0x9a)]);}catch{_0x1bc876['utIWx'](failAndExit,_0x1bc876[_0x2200f4(0x8a)]);}}export function getUpstreamInfo(){const _0x2c1808=_0x14a3,_0x555870={'jCpPK':function(_0x359564,_0x110677,_0x420e2e){return _0x359564(_0x110677,_0x420e2e);},'mOuMb':'git\x20rev-'+_0x2c1808(0xf3)+_0x2c1808(0x94)+_0x2c1808(0x85)+'bolic-fu'+_0x2c1808(0xa8)+_0x2c1808(0xf4)+_0x2c1808(0x82),'RiwUT':_0x2c1808(0xe7),'gcuoh':function(_0x2af181,_0x326509){return _0x2af181<=_0x326509;},'yQvLj':function(_0x492e63,_0x1bb7b0){return _0x492e63+_0x1bb7b0;}};try{const _0x57e273=_0x555870['jCpPK'](execSync,_0x555870[_0x2c1808(0x102)],{'stdio':_0x555870[_0x2c1808(0xe9)]})[_0x2c1808(0xad)]()[_0x2c1808(0x93)](),_0xf5696e=_0x57e273['indexOf']('/');if(_0x555870[_0x2c1808(0xd3)](_0xf5696e,0x0))return null;return{'fullName':_0x57e273,'remote':_0x57e273[_0x2c1808(0x96)](0x0,_0xf5696e),'branch':_0x57e273['slice'](_0x555870[_0x2c1808(0x11a)](_0xf5696e,0x1))};}catch{return null;}}export function getDefaultRemote(){const _0x1d4da6=_0x14a3,_0x2fd204={'sgyOq':function(_0x256b1e,_0x21c06f,_0x5a2ac0){return _0x256b1e(_0x21c06f,_0x5a2ac0);},'qvhVI':'pipe','jxPzA':function(_0xc25b60,_0x422652){return _0xc25b60===_0x422652;},'qzfNp':_0x1d4da6(0x109)};try{const _0x14bd96=_0x2fd204[_0x1d4da6(0xab)](execSync,_0x1d4da6(0x86)+'te',{'stdio':_0x2fd204[_0x1d4da6(0xd0)]})[_0x1d4da6(0xad)]()['split'](/\r?\n/)['map'](_0x41486d=>_0x41486d[_0x1d4da6(0x93)]())[_0x1d4da6(0xcf)](Boolean);if(_0x2fd204['jxPzA'](_0x14bd96['length'],0x0))return null;if(_0x14bd96[_0x1d4da6(0x104)](_0x2fd204[_0x1d4da6(0xce)]))return _0x2fd204[_0x1d4da6(0xce)];return _0x14bd96[0x0];}catch{return null;}}function resolveBaseRef(){const _0xf23ffc=_0x14a3,_0x4c34e6={'IrFxC':function(_0xd24558,_0x561d2f,_0x1ea32a,_0x1c9c0f){return _0xd24558(_0x561d2f,_0x1ea32a,_0x1c9c0f);},'GRBdG':_0xf23ffc(0x10a)+'se','XvpLb':'HEAD','jmuDs':'pipe','GNmfs':function(_0x4d171a){return _0x4d171a();},'qzjbn':function(_0x118424,_0x56a0e5,_0x52968b,_0x4896cc){return _0x118424(_0x56a0e5,_0x52968b,_0x4896cc);},'JNAZX':_0xf23ffc(0xe5)+'-ref','aCzwe':_0xf23ffc(0xba),'BgHqp':_0xf23ffc(0xae),'FQFtx':'develop','tZAHQ':'rev-pars'+'e','geLYa':_0xf23ffc(0x116),'FIRuy':function(_0x369475,_0x8b392e){return _0x369475===_0x8b392e;},'cpcwg':_0xf23ffc(0x79),'KSmZO':_0xf23ffc(0x103),'SwEFC':_0xf23ffc(0xd5)+_0xf23ffc(0xb6)+_0xf23ffc(0xb4)+'nch.\x20Set'+'\x20a\x20remot'+'e\x20HEAD\x20o'+_0xf23ffc(0xd8)+_0xf23ffc(0xea)+_0xf23ffc(0xd9)},_0x5f4b7a=_0x4c34e6[_0xf23ffc(0xe3)](getDefaultRemote);if(_0x5f4b7a){try{const _0x3c18b8=_0x4c34e6[_0xf23ffc(0xa6)](execFileSync,'git',[_0x4c34e6[_0xf23ffc(0xa7)],_0xf23ffc(0xe2),_0xf23ffc(0xdf)+_0xf23ffc(0x9f)+_0x5f4b7a+'/HEAD'],{'stdio':_0x4c34e6['jmuDs']})[_0xf23ffc(0xad)]()[_0xf23ffc(0x93)]();if(_0x3c18b8)return _0x3c18b8;}catch{}for(const _0xc262a0 of[_0x4c34e6[_0xf23ffc(0xf0)],_0x4c34e6['BgHqp'],_0x4c34e6[_0xf23ffc(0xf5)]]){try{return _0x4c34e6[_0xf23ffc(0xa6)](execFileSync,_0xf23ffc(0x103),[_0x4c34e6[_0xf23ffc(0xd6)],_0x4c34e6[_0xf23ffc(0x95)],_0xf23ffc(0xdf)+_0xf23ffc(0x9f)+_0x5f4b7a+'/'+_0xc262a0],{'stdio':_0x4c34e6[_0xf23ffc(0xc4)]}),_0x5f4b7a+'/'+_0xc262a0;}catch{}}}for(const _0x15ec91 of[_0x4c34e6['aCzwe'],_0xf23ffc(0xae),_0xf23ffc(0x10c)]){if(_0x4c34e6['FIRuy'](_0x4c34e6[_0xf23ffc(0x7c)],_0x4c34e6[_0xf23ffc(0x7c)]))try{return _0x4c34e6[_0xf23ffc(0xa6)](execFileSync,_0x4c34e6[_0xf23ffc(0x100)],[_0x4c34e6[_0xf23ffc(0xd6)],_0x4c34e6['geLYa'],_0xf23ffc(0xb1)+_0xf23ffc(0xbb)+_0x15ec91],{'stdio':_0x4c34e6['jmuDs']}),_0x15ec91;}catch{}else try{return _0x4c34e6['IrFxC'](_0x2569f2,_0xf23ffc(0x103),[_0x4c34e6[_0xf23ffc(0x7b)],_0x57a2a0,_0x4c34e6['XvpLb']],{'stdio':_0x4c34e6[_0xf23ffc(0xc4)]})[_0xf23ffc(0xad)]()[_0xf23ffc(0x93)]();}catch{_0x7bed48('Could\x20no'+'t\x20comput'+_0xf23ffc(0xef)+_0xf23ffc(0x118)+'h\x20'+_0x572783+'.');}}failAndExit(_0x4c34e6[_0xf23ffc(0xcb)]);}function getMergeBase(_0x2f5ee6){const _0x407810=_0x14a3,_0x37fc4b={'xNtpM':function(_0x22802c,_0x5a39d0,_0x165072,_0x744f09){return _0x22802c(_0x5a39d0,_0x165072,_0x744f09);},'IqvJY':_0x407810(0x103),'kehiY':_0x407810(0x10a)+'se','QYQHG':'HEAD','GDPqE':function(_0x5cc881,_0x110844){return _0x5cc881===_0x110844;},'MXipT':'AzKQF'};try{return _0x37fc4b['xNtpM'](execFileSync,_0x37fc4b[_0x407810(0xb8)],[_0x37fc4b[_0x407810(0x9d)],_0x2f5ee6,_0x37fc4b[_0x407810(0x111)]],{'stdio':_0x407810(0xe7)})[_0x407810(0xad)]()[_0x407810(0x93)]();}catch{if(_0x37fc4b[_0x407810(0x83)](_0x37fc4b[_0x407810(0x8e)],'AzKQF'))failAndExit(_0x407810(0xd5)+_0x407810(0x10b)+_0x407810(0xef)+_0x407810(0x118)+'h\x20'+_0x2f5ee6+'.');else{const [_0x16b14d='',_0x3d5cd4='',_0x16d18c='']=_0x4d3c07['split']('\x1f');return{'hash':_0x16b14d[_0x407810(0x93)](),'subject':_0x3d5cd4['trim'](),'body':_0x16d18c[_0x407810(0x93)]()};}}}function parseCommits(_0x642f3){const _0x222b9c=_0x14a3;return _0x642f3[_0x222b9c(0x115)]('\x1e')[_0x222b9c(0xaf)](_0x3c0ee6=>_0x3c0ee6[_0x222b9c(0x93)]())['filter'](Boolean)[_0x222b9c(0xaf)](_0x27d229=>{const _0xb45954=_0x222b9c,[_0x2e8b40='',_0x4a3f39='',_0x5358cd='']=_0x27d229[_0xb45954(0x115)]('\x1f');return{'hash':_0x2e8b40[_0xb45954(0x93)](),'subject':_0x4a3f39[_0xb45954(0x93)](),'body':_0x5358cd[_0xb45954(0x93)]()};})['filter'](_0x34b010=>Boolean(_0x34b010[_0x222b9c(0x8f)])&&Boolean(_0x34b010['subject']));}export function getBranchContext(){const _0x25d125=_0x14a3,_0x1625d7={'LDllb':function(_0x29e97e,_0x2ea38c){return _0x29e97e(_0x2ea38c);},'mAOHU':function(_0x53adcb,_0x2125f4,_0x5e4f58,_0x1390d7){return _0x53adcb(_0x2125f4,_0x5e4f58,_0x1390d7);},'Orkdb':_0x25d125(0xc7),'VisDR':_0x25d125(0x10d)+'e','hoBEG':'--pretty'+_0x25d125(0x7f)+_0x25d125(0xfd)+_0x25d125(0xf7)+'1e','dMPEx':_0x25d125(0xe7),'PcRJt':_0x25d125(0xe8),'RFdFX':'--stat','IpLTB':function(_0x19efd2,_0x1bcd6d,_0x523fae,_0x57e2f6){return _0x19efd2(_0x1bcd6d,_0x523fae,_0x57e2f6);},'yQMwD':_0x25d125(0x103),'jzmbv':_0x25d125(0xf6)+_0x25d125(0xb2),'Jpoyx':function(_0x2254a8,_0x59a4c9){return _0x2254a8(_0x59a4c9);}},_0x2230e5=resolveBaseRef(),_0x3271ec=_0x1625d7[_0x25d125(0x11c)](getMergeBase,_0x2230e5),_0x2ef2bc=_0x1625d7[_0x25d125(0x106)](execFileSync,_0x25d125(0x103),[_0x1625d7['Orkdb'],_0x1625d7['VisDR'],_0x1625d7['hoBEG'],_0x3271ec+'..HEAD'],{'stdio':_0x1625d7[_0x25d125(0xbf)]})[_0x25d125(0xad)]()[_0x25d125(0x93)](),_0x838bef=execFileSync('git',[_0x1625d7['PcRJt'],_0x1625d7[_0x25d125(0xa3)],_0x3271ec+_0x25d125(0xa9)],{'stdio':_0x1625d7['dMPEx']})[_0x25d125(0xad)]()['trim'](),_0x25d840=_0x1625d7[_0x25d125(0xaa)](execFileSync,_0x1625d7[_0x25d125(0xdd)],[_0x1625d7[_0x25d125(0xd7)],_0x1625d7[_0x25d125(0xc9)],_0x3271ec+_0x25d125(0xa9)],{'stdio':_0x1625d7[_0x25d125(0xbf)]})[_0x25d125(0xad)]()['trim']();return{'baseRef':_0x2230e5,'mergeBase':_0x3271ec,'commits':_0x1625d7[_0x25d125(0xeb)](parseCommits,_0x2ef2bc),'diffStat':_0x838bef,'changedFiles':_0x25d840};}export function getCommitHistory(_0x5a0059=0x78){const _0x56024a=_0x14a3,_0x41bef6={'JAWFy':'git','ulVZP':_0x56024a(0xed)+'hort','whEki':_0x56024a(0xe7),'swpUy':function(_0x37713b,_0x530afc){return _0x37713b(_0x530afc);},'heWMy':_0x56024a(0xd5)+_0x56024a(0x7e)+_0x56024a(0xcd)+_0x56024a(0x80)+'y.'};try{const _0x4f8030=execFileSync(_0x41bef6['JAWFy'],[_0x56024a(0xc7),'-'+_0x5a0059,_0x56024a(0x10d)+'e',_0x56024a(0xac)+_0x56024a(0x7f)+'%H%x1f%s'+'%x1f%b%x'+'1f%ad%x1'+_0x56024a(0x8d),_0x41bef6[_0x56024a(0xdc)]],{'stdio':_0x41bef6[_0x56024a(0xbe)]})[_0x56024a(0xad)]()[_0x56024a(0x93)]();return _0x4f8030[_0x56024a(0x115)]('\x1e')[_0x56024a(0xaf)](_0x53f512=>_0x53f512['trim']())[_0x56024a(0xcf)](Boolean)['map'](_0x30a854=>{const _0xe6a5c5=_0x56024a,[_0x12f10e='',_0x4ad9bf='',_0x17f090='',_0x220bd2='',_0x34fb59='']=_0x30a854[_0xe6a5c5(0x115)]('\x1f');return{'hash':_0x12f10e[_0xe6a5c5(0x93)](),'subject':_0x4ad9bf[_0xe6a5c5(0x93)](),'body':_0x17f090[_0xe6a5c5(0x93)](),'date':_0x220bd2[_0xe6a5c5(0x93)](),'author':_0x34fb59['trim']()};})['filter'](_0x72b80d=>Boolean(_0x72b80d[_0x56024a(0x8f)])&&Boolean(_0x72b80d[_0x56024a(0xf9)]));}catch{_0x41bef6[_0x56024a(0xc5)](failAndExit,_0x41bef6[_0x56024a(0xb7)]);}}function parseNameStatusLine(_0x264e18){const _0x5eec2d=_0x14a3,_0xb100bd={'YJmlo':function(_0x5a82a9,_0x511465){return _0x5a82a9-_0x511465;},'AkgYg':function(_0x9b2ef6,_0x295526){return _0x9b2ef6||_0x295526;}},_0x5a9344=_0x264e18['trim']();if(!_0x5a9344)return null;const _0x53b051=_0x5a9344['split'](/\s+/);if(_0x53b051[_0x5eec2d(0xa1)]<0x2)return null;const _0x4ef2d2=_0x53b051[0x0][_0x5eec2d(0x93)](),_0x271292=_0x53b051[_0xb100bd[_0x5eec2d(0xa2)](_0x53b051[_0x5eec2d(0xa1)],0x1)][_0x5eec2d(0x93)]();if(_0xb100bd[_0x5eec2d(0xfa)](!_0x4ef2d2,!_0x271292))return null;return{'status':_0x4ef2d2,'path':_0x271292};}export function stageAll(){const _0x2ebc48=_0x14a3,_0x2da656={'ZkTSz':function(_0x3c9598,_0x9ea534,_0x2de0bc,_0x1cafeb){return _0x3c9598(_0x9ea534,_0x2de0bc,_0x1cafeb);},'HnEqp':_0x2ebc48(0x103),'QHgcQ':_0x2ebc48(0xd4),'VykHc':function(_0x40b39e,_0x3f2643){return _0x40b39e(_0x3f2643);},'ebhiJ':_0x2ebc48(0x7d)+_0x2ebc48(0x119)+_0x2ebc48(0x10f)+_0x2ebc48(0xfe)+_0x2ebc48(0x99)};try{_0x2da656['ZkTSz'](execFileSync,_0x2da656[_0x2ebc48(0xec)],[_0x2da656['QHgcQ'],'.'],{'stdio':_0x2ebc48(0xfc)});}catch{_0x2da656[_0x2ebc48(0x117)](failAndExit,_0x2da656[_0x2ebc48(0x91)]);}}export function getStagedContext(_0x3b614c=0x2710){const _0x3970f4=_0x14a3,_0x41a91e={'hThdv':_0x3970f4(0xe8),'rRlsG':_0x3970f4(0x10e),'exjLg':_0x3970f4(0xc3),'SJjvp':function(_0x4ecf85,_0x1be884){return _0x4ecf85(_0x1be884);},'khROb':'--numsta'+'t','pLUwe':function(_0x2c26f1,_0x417de5){return _0x2c26f1>_0x417de5;},'sVNKO':function(_0x3e6f25,_0x1e0a96){return _0x3e6f25!==_0x1e0a96;},'zSdeF':_0x3970f4(0xde),'ZiyFA':_0x3970f4(0x7d)+'o\x20inspec'+_0x3970f4(0xa5)+_0x3970f4(0x114)+'.'};try{const _0x2da1ef=runGit([_0x41a91e[_0x3970f4(0xf8)],_0x41a91e[_0x3970f4(0xc6)],_0x3970f4(0xf6)+_0x3970f4(0xb2)]),_0xf35ca3=runGit([_0x41a91e[_0x3970f4(0xf8)],_0x41a91e[_0x3970f4(0xc6)],_0x41a91e[_0x3970f4(0x97)]])[_0x3970f4(0x93)](),_0x23c1e4=_0x41a91e[_0x3970f4(0xda)](runGit,[_0x3970f4(0xe8),_0x41a91e[_0x3970f4(0xc6)]]),_0x4bccee=_0x41a91e[_0x3970f4(0xda)](runGit,[_0x41a91e[_0x3970f4(0xf8)],_0x3970f4(0x10e),_0x41a91e[_0x3970f4(0xc1)]]),_0x779bf0=_0x2da1ef[_0x3970f4(0x115)](/\r?\n/)['map'](_0x4ee93f=>parseNameStatusLine(_0x4ee93f))[_0x3970f4(0xcf)](_0x123da6=>Boolean(_0x123da6));let _0x2c0a50=0x0,_0x64bd6e=0x0;for(const _0x473a5d of _0x4bccee[_0x3970f4(0x115)](/\r?\n/)){const _0x6dbd65=_0x473a5d[_0x3970f4(0x93)]();if(!_0x6dbd65)continue;const [_0x128369='0',_0x8aac77='0']=_0x6dbd65[_0x3970f4(0x115)](/\s+/),_0x33396b=Number[_0x3970f4(0x8c)](_0x128369,0xa),_0x308c09=Number['parseInt'](_0x8aac77,0xa);_0x2c0a50+=Number['isNaN'](_0x33396b)?0x0:_0x33396b,_0x64bd6e+=Number[_0x3970f4(0xca)](_0x308c09)?0x0:_0x308c09;}const _0x7ea517=_0x41a91e[_0x3970f4(0xbd)](_0x23c1e4[_0x3970f4(0xa1)],_0x3b614c),_0x18b58d=_0x7ea517?_0x23c1e4[_0x3970f4(0x96)](0x0,_0x3b614c):_0x23c1e4;return{'files':_0x779bf0,'diffStat':_0xf35ca3,'patch':_0x18b58d[_0x3970f4(0x93)](),'metrics':{'fileCount':_0x779bf0[_0x3970f4(0xa1)],'insertions':_0x2c0a50,'deletions':_0x64bd6e,'patchChars':_0x23c1e4['length'],'truncated':_0x7ea517}};}catch{if(_0x41a91e[_0x3970f4(0x105)](_0x41a91e[_0x3970f4(0x90)],_0x41a91e[_0x3970f4(0x90)]))return![];else _0x41a91e['SJjvp'](failAndExit,_0x41a91e[_0x3970f4(0xe4)]);}}
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
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);});
2
+ const _0x574185=_0x56ed;(function(_0x4bf224,_0x1c5375){const _0x3d6e25=_0x56ed,_0x35515d=_0x4bf224();while(!![]){try{const _0x373518=-parseInt(_0x3d6e25(0x17a))/0x1*(-parseInt(_0x3d6e25(0x1a1))/0x2)+parseInt(_0x3d6e25(0x1a5))/0x3+-parseInt(_0x3d6e25(0x189))/0x4*(-parseInt(_0x3d6e25(0x1b0))/0x5)+-parseInt(_0x3d6e25(0x186))/0x6+parseInt(_0x3d6e25(0x1b2))/0x7*(-parseInt(_0x3d6e25(0x1b3))/0x8)+parseInt(_0x3d6e25(0x14f))/0x9+-parseInt(_0x3d6e25(0x184))/0xa*(-parseInt(_0x3d6e25(0x13c))/0xb);if(_0x373518===_0x1c5375)break;else _0x35515d['push'](_0x35515d['shift']());}catch(_0x4b4ac3){_0x35515d['push'](_0x35515d['shift']());}}}(_0x3546,0xc755b));const _0x46ea3c=(function(){let _0x16ac5d=!![];return function(_0x8bb84b,_0xd71525){const _0x1d6402=_0x16ac5d?function(){const _0x15362f=_0x56ed;if(_0xd71525){const _0x4861ea=_0xd71525[_0x15362f(0x162)](_0x8bb84b,arguments);return _0xd71525=null,_0x4861ea;}}:function(){};return _0x16ac5d=![],_0x1d6402;};}()),_0x38f6e7=_0x46ea3c(this,function(){const _0xb670d1=_0x56ed,_0x5f0848={'uZwJv':_0xb670d1(0x1b7)+_0xb670d1(0x175)};return _0x38f6e7[_0xb670d1(0x1c3)]()['search'](_0x5f0848[_0xb670d1(0x144)])['toString']()[_0xb670d1(0x187)+_0xb670d1(0x170)](_0x38f6e7)[_0xb670d1(0x188)](_0xb670d1(0x1b7)+_0xb670d1(0x175));});_0x38f6e7();import{Command}from'commander';import{loadConfig}from'./config.js';import{getCliVersion}from'./cli-version.js';import{generateCommit}from'./commands/commit.js';function _0x3546(){const _0x5ac592=['search','30508svVyam','option','\x20name\x20an','e\x20descri','\x20with\x20AI','Number\x20o','\x20.)','ersion\x20i','check\x20fo','length','s:\x0a\x20\x20gem','PI\x20key\x20(','Bawon','jHkDu','descript','Stage\x20al','ally\x20cre','\x20current','e\x20and\x20de','commit','--check','action','mits','\x20to\x20incl','10nVPsQv','commit\x20-','ch\x20names','FthFg','62757yajshO','umber>','ble','commit\x20m','s\x20availa','ogin\x20scr','r\x20update','--all','n\x20from\x20b','ize/sugg','it\x0a\x20\x20gem','85EbMBcG','\x20provide','5969397emZcEZ','8TplWsa','ext','version','it\x20commi','(((.+)+)','est/conf','t\x20--all\x0a','name',',\x20and\x20ke','ng\x20commi','mmits','y\x20config','and\x20bran','branch','add','\x0a\x20\x20gemit','toString','\x20branch\x20','<descrip','6460234jQAqOR','as\x20done\x20','gelog\x0a\x20\x20','Run\x20stag','-check\x0a\x20','gemit\x20in','e\x20creati','output\x20t','uZwJv','e\x20from\x20c','ion','rsion','cyan','urrent\x20b','after','\x20\x20gemit\x20','Suggest\x20','r,\x20model','Run\x20lint','2628072DvGipy','Feature\x20','argv','dd\x20--all','message','stall\x20if','ude\x20(def','mmits\x20<n','anges\x20an','Validate','t)\x20befor','f\x20presen','a\x20branch','Provide\x20','l\x20change','e\x20what\x20w','in\x20the\x20c','t\x20update','mit\x20chan','apply','addHelpT','mmit\x20sug','story','s\x20first\x20','/test\x20(i','scriptio','e\x20provid','tion...>','gemit','ranch','\x20commits','\x20gemit\x20a','Stage\x20ch','tor','Summariz','\x22oauth\x20l','ption.','\x20a\x20chang','+)+$','LabcX','catch','log\x0a\x20\x20ge','elog\x20fil','95687TsDTJW','command','SOcKP','default:','Configur','trim','argument','a\x20featur','-v,\x20--ve','vRMHs','20mMhWgd','d\x20run\x20co','2558178vosINU','construc'];_0x3546=function(){return _0x5ac592;};return _0x3546();}import{addAndCommit}from'./commands/add.js';import{suggestBranch}from'./commands/branch.js';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';function _0x56ed(_0x22ad20,_0x16dc52){_0x22ad20=_0x22ad20-0x13b;const _0x292d51=_0x3546();let _0x38f6e7=_0x292d51[_0x22ad20];return _0x38f6e7;}import{maybeAutoUpdate}from'./update.js';import{failAndExit,style,ui}from'./ui.js';loadConfig();const program=new Command();program[_0x574185(0x1ba)](_0x574185(0x16b))[_0x574185(0x197)+'ion'](style(_0x574185(0x14c)+_0x574185(0x1a8)+'essages\x20'+_0x574185(0x1bf)+_0x574185(0x1a3)+_0x574185(0x18d),ui[_0x574185(0x148)]))[_0x574185(0x1b5)](getCliVersion(),_0x574185(0x182)+_0x574185(0x147),_0x574185(0x143)+'he\x20versi'+'on\x20numbe'+'r'),program[_0x574185(0x163)+_0x574185(0x1b4)](_0x574185(0x14a),'\x0aExample'+_0x574185(0x193)+_0x574185(0x1af)+_0x574185(0x1b6)+_0x574185(0x1b9)+_0x574185(0x14b)+_0x574185(0x1a2)+_0x574185(0x140)+_0x574185(0x16e)+_0x574185(0x152)+_0x574185(0x1c2)+'\x20branch\x20'+_0x574185(0x172)+_0x574185(0x1aa)+'een\x22\x0a\x20\x20g'+'emit\x20pr\x0a'+'\x20\x20gemit\x20'+_0x574185(0x178)+_0x574185(0x161)+_0x574185(0x13e)+_0x574185(0x141)+_0x574185(0x1af)+'it\x20docto'+'r\x0a\x20\x20gemi'+_0x574185(0x160)+'\x0a'),program[_0x574185(0x17b)](_0x574185(0x19c))[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x13f)+'e/summar'+_0x574185(0x1ae)+_0x574185(0x1b8)+'irm\x20flow'+'\x20for\x20com'+_0x574185(0x19f))['option'](_0x574185(0x1ac),'Stage\x20al'+_0x574185(0x15d)+'s\x20first\x20'+'(git\x20add'+_0x574185(0x18f))['option'](_0x574185(0x19d),_0x574185(0x14e)+_0x574185(0x167)+'f\x20presen'+_0x574185(0x159)+_0x574185(0x142)+_0x574185(0x1bc)+'t')[_0x574185(0x19e)](_0xe38c73=>generateCommit(_0xe38c73)),program['command'](_0x574185(0x1c1))[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x16f)+_0x574185(0x157)+_0x574185(0x185)+_0x574185(0x164)+'gestion\x20'+'flow')[_0x574185(0x18a)](_0x574185(0x1ac),_0x574185(0x198)+_0x574185(0x15d)+_0x574185(0x166)+'(require'+'d)')[_0x574185(0x18a)](_0x574185(0x19d),_0x574185(0x14e)+_0x574185(0x167)+_0x574185(0x15a)+'t)\x20befor'+'e\x20creati'+'ng\x20commi'+'t')[_0x574185(0x19e)](_0x151fab=>addAndCommit(_0x151fab)),program[_0x574185(0x17b)](_0x574185(0x1c0))[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x14c)+_0x574185(0x15b)+_0x574185(0x18b)+'d\x20option'+_0x574185(0x199)+'ate\x20the\x20'+_0x574185(0x1c0))[_0x574185(0x180)](_0x574185(0x13b)+_0x574185(0x16a),_0x574185(0x150)+_0x574185(0x197)+_0x574185(0x146))[_0x574185(0x19e)](async _0x3b76a6=>{const _0x5c60fa=_0x574185,_0x1d4598={'jHkDu':_0x5c60fa(0x15c)+_0x5c60fa(0x181)+_0x5c60fa(0x18c)+_0x5c60fa(0x173),'FthFg':function(_0x3d3b9c,_0x13c6a0){return _0x3d3b9c(_0x13c6a0);}},_0x5db184=_0x3b76a6['join']('\x20')[_0x5c60fa(0x17f)]();!_0x5db184&&failAndExit(_0x1d4598[_0x5c60fa(0x196)]),await _0x1d4598[_0x5c60fa(0x1a4)](suggestBranch,_0x5db184);}),program['command']('pr')[_0x574185(0x197)+_0x574185(0x146)]('Generate'+'\x20PR\x20titl'+_0x574185(0x19b)+_0x574185(0x168)+_0x574185(0x1ad)+'ranch\x20co'+_0x574185(0x1bd))[_0x574185(0x19e)](generatePullRequestText),program[_0x574185(0x17b)]('log')[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x171)+_0x574185(0x15e)+_0x574185(0x13d)+_0x574185(0x15f)+_0x574185(0x149)+_0x574185(0x16c))['action'](summarizeBranchLog),program[_0x574185(0x17b)]('changelo'+'g')[_0x574185(0x197)+_0x574185(0x146)]('Generate'+_0x574185(0x174)+_0x574185(0x179)+_0x574185(0x145)+'ommit\x20hi'+_0x574185(0x165))['argument']('[name]','Base\x20fil'+'e\x20name\x20('+_0x574185(0x17d)+_0x574185(0x19a)+_0x574185(0x1c4)+'name)')['option']('-c,\x20--co'+_0x574185(0x156)+_0x574185(0x1a6),_0x574185(0x18e)+'f\x20recent'+_0x574185(0x16d)+_0x574185(0x1a0)+_0x574185(0x155)+'ault:\x2020'+')')['action']((_0x3525b2,_0x3414d1)=>generateChangelog(_0x3525b2,_0x3414d1)),program[_0x574185(0x17b)]('init')['descript'+_0x574185(0x146)](_0x574185(0x17e)+_0x574185(0x169)+'er,\x20mode'+'l,\x20and\x20A'+_0x574185(0x194)+'global)')['action'](initConfig),program[_0x574185(0x17b)]('doctor')[_0x574185(0x197)+_0x574185(0x146)](_0x574185(0x158)+_0x574185(0x1b1)+_0x574185(0x14d)+_0x574185(0x1bb)+_0x574185(0x1be)+'uration')[_0x574185(0x19e)](doctorConfig),program['command']('update')['descript'+_0x574185(0x146)]('Force\x20a\x20'+_0x574185(0x191)+_0x574185(0x1ab)+'s\x20and\x20in'+_0x574185(0x154)+'\x20a\x20new\x20v'+_0x574185(0x190)+_0x574185(0x1a9)+_0x574185(0x1a7))['action'](async()=>{const _0x194d8e=_0x574185,_0x38a303={'LabcX':function(_0x39489d,_0x46a40c,_0x3e8d4d){return _0x39489d(_0x46a40c,_0x3e8d4d);}};await _0x38a303[_0x194d8e(0x176)](maybeAutoUpdate,process[_0x194d8e(0x151)],!![]);});async function main(){const _0x23d549=_0x574185,_0x35f28d={'SOcKP':function(_0xda1eba,_0x57d36a){return _0xda1eba<=_0x57d36a;},'Bawon':function(_0x48a932){return _0x48a932();}},_0x5ab8cd=process[_0x23d549(0x151)]['some'](_0x27a9a5=>_0x27a9a5==='update');!_0x5ab8cd&&await maybeAutoUpdate(process[_0x23d549(0x151)]);if(_0x35f28d[_0x23d549(0x17c)](process[_0x23d549(0x151)][_0x23d549(0x192)],0x2)){await _0x35f28d[_0x23d549(0x195)](generateCommit);return;}await program['parseAsy'+'nc'](process[_0x23d549(0x151)]);}main()[_0x574185(0x177)](_0x5cbf09=>{const _0x38627f=_0x574185,_0x3eff8b={'vRMHs':function(_0x3c4b46,_0x59da47){return _0x3c4b46 instanceof _0x59da47;},'KvUXl':function(_0xdda495,_0x5c1f53){return _0xdda495(_0x5c1f53);}},_0x464f89=_0x3eff8b[_0x38627f(0x183)](_0x5cbf09,Error)?_0x5cbf09[_0x38627f(0x153)]:String(_0x5cbf09);_0x3eff8b['KvUXl'](failAndExit,_0x464f89);});
@@ -1 +1 @@
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
+ (function(_0x11dc59,_0x25829d){const _0x58b27f=_0x1378,_0x32c6f5=_0x11dc59();while(!![]){try{const _0x4416c6=parseInt(_0x58b27f(0xde))/0x1+-parseInt(_0x58b27f(0xdc))/0x2*(-parseInt(_0x58b27f(0xf6))/0x3)+-parseInt(_0x58b27f(0xeb))/0x4+parseInt(_0x58b27f(0x102))/0x5+parseInt(_0x58b27f(0xe2))/0x6*(-parseInt(_0x58b27f(0xfe))/0x7)+parseInt(_0x58b27f(0xe8))/0x8+-parseInt(_0x58b27f(0xed))/0x9*(parseInt(_0x58b27f(0xf7))/0xa);if(_0x4416c6===_0x25829d)break;else _0x32c6f5['push'](_0x32c6f5['shift']());}catch(_0x15077d){_0x32c6f5['push'](_0x32c6f5['shift']());}}}(_0x1990,0x31c91));const _0x41ae8f=(function(){let _0x50e430=!![];return function(_0x163b7d,_0x2f5199){const _0x373d94=_0x50e430?function(){const _0x388cd4=_0x1378;if(_0x2f5199){const _0x2c5c31=_0x2f5199[_0x388cd4(0xe9)](_0x163b7d,arguments);return _0x2f5199=null,_0x2c5c31;}}:function(){};return _0x50e430=![],_0x373d94;};}()),_0x2b9445=_0x41ae8f(this,function(){const _0x214142=_0x1378,_0x77035a={'dJnzn':'(((.+)+)'+'+)+$'};return _0x2b9445[_0x214142(0x10b)]()['search'](_0x214142(0xec)+_0x214142(0xf1))[_0x214142(0x10b)]()[_0x214142(0x108)+_0x214142(0xfc)](_0x2b9445)[_0x214142(0x103)](_0x77035a[_0x214142(0xe1)]);});_0x2b9445();function _0x1378(_0x34ea62,_0x2f7d62){_0x34ea62=_0x34ea62-0xdc;const _0x24a1a9=_0x1990();let _0x2b9445=_0x24a1a9[_0x34ea62];return _0x2b9445;}import{ChatAnthropic}from'@langchain/anthropic';import{ChatGoogleGenerativeAI}from'@langchain/google-genai';import{ChatOpenAI}from'@langchain/openai';function _0x1990(){const _0x328062=['Invalid\x20','construc','bVJnb','text','toString','2zGkvfz','ANTHROPI','194732uzBRaz','ment\x20var','MINI_API','dJnzn','66tMJbWZ','isArray','\x20environ','C_API_KE','LLM_PROV','google','3231024pJKcGF','apply','joIom','1060564WIRlTP','(((.+)+)','117OqQFQo','trim','join','LE_API_K','+)+$','IDER:\x20','Set\x20the\x20','noesJ','_KEY.','206841cNOnxf','168460GHPjZC','VhCvf','ase','itKIG','gemini-2','tor','jpGlp','171871grtdGn','string','openai','EY\x20or\x20GE','1452930KcvoNX','search','sbRnr','OPENAI_A','Set\x20GOOG'];_0x1990=function(){return _0x328062;};return _0x1990();}function requireEnv(_0x54fe8b){const _0x3320af=_0x1378,_0x1f6fc4=process.env[_0x54fe8b];if(!_0x1f6fc4)throw new Error(_0x3320af(0xf3)+_0x54fe8b+(_0x3320af(0xe4)+_0x3320af(0xdf)+'iable.'));return _0x1f6fc4;}export function createLLM(){const _0x3de8b8=_0x1378,_0x10754e={'bVJnb':'Set\x20GOOG'+_0x3de8b8(0xf0)+'EY\x20or\x20GE'+'MINI_API'+_0x3de8b8(0xf5),'noesJ':_0x3de8b8(0xe7),'itKIG':_0x3de8b8(0xfb)+'.5-flash','bGnAp':function(_0xb59aad,_0x292f19){return _0xb59aad===_0x292f19;},'wOCxs':_0x3de8b8(0x100),'joIom':function(_0x2d440d,_0x158dcc){return _0x2d440d(_0x158dcc);},'sbRnr':_0x3de8b8(0x105)+'PI_KEY','qszYh':function(_0x1712c7,_0x4b88b3){return _0x1712c7===_0x4b88b3;},'IcWBy':'anthropi'+'c','LjwTv':function(_0x5769a9,_0x4e087a){return _0x5769a9(_0x4e087a);}},_0x4fecdb=(process.env.LLM_PROVIDER||_0x10754e[_0x3de8b8(0xf4)])['toLowerC'+_0x3de8b8(0xf9)](),_0x5c56de=process.env.LLM_MODEL||_0x10754e[_0x3de8b8(0xfa)];if(_0x4fecdb===_0x3de8b8(0xe7)){const _0x46209c=process.env.GOOGLE_API_KEY||process.env.GEMINI_API_KEY;if(!_0x46209c)throw new Error(_0x3de8b8(0x106)+_0x3de8b8(0xf0)+_0x3de8b8(0x101)+_0x3de8b8(0xe0)+_0x3de8b8(0xf5));return new ChatGoogleGenerativeAI({'model':_0x5c56de,'apiKey':_0x46209c,'temperature':0.2});}if(_0x10754e['bGnAp'](_0x4fecdb,_0x10754e['wOCxs'])){if('VhCvf'===_0x3de8b8(0xf8))return new ChatOpenAI({'model':_0x5c56de,'apiKey':_0x10754e[_0x3de8b8(0xea)](requireEnv,_0x10754e[_0x3de8b8(0x104)]),'temperature':0.2});else{const _0x576cac=_0x4611cb.env.GOOGLE_API_KEY||_0x1c9d41.env.GEMINI_API_KEY;if(!_0x576cac)throw new _0x373278(_0x10754e[_0x3de8b8(0x109)]);return new _0x1a868c({'model':_0x320078,'apiKey':_0x576cac,'temperature':0.2});}}if(_0x10754e['qszYh'](_0x4fecdb,_0x10754e['IcWBy']))return new ChatAnthropic({'model':_0x5c56de,'apiKey':_0x10754e['LjwTv'](requireEnv,_0x3de8b8(0xdd)+_0x3de8b8(0xe5)+'Y'),'temperature':0.2});throw new Error(_0x3de8b8(0x107)+_0x3de8b8(0xe6)+_0x3de8b8(0xf2)+_0x4fecdb);}export function extractMessageText(_0x5a3d1f){const _0x4c60a5=_0x1378,_0x2ee788={'jpGlp':function(_0x288809,_0x2bf3c7){return _0x288809||_0x2bf3c7;}};if(typeof _0x5a3d1f===_0x4c60a5(0xff))return _0x5a3d1f[_0x4c60a5(0xee)]();if(Array[_0x4c60a5(0xe3)](_0x5a3d1f))return _0x5a3d1f['map'](_0x23e79e=>typeof _0x23e79e===_0x4c60a5(0xff)?_0x23e79e:_0x23e79e?.[_0x4c60a5(0x10a)]||'')[_0x4c60a5(0xef)]('')[_0x4c60a5(0xee)]();return String(_0x2ee788[_0x4c60a5(0xfd)](_0x5a3d1f,''))[_0x4c60a5(0xee)]();}
@@ -1 +1 @@
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;}
1
+ function _0x1e50(){const _0x69702f=['ase','trim','close','(((.+)+)','234558MLQlCN','yweDC','100996jjHmtC','YOxhD','1481130cCRLWP','construc','413306ipVYyt','question','defaultY','apply','2bcNvNO','2082938uNBVZZ','+)+$','152BipqVb','10ZJQEfr','IgAYu','2496TORhun','6671HZuBvF','tor','5033860btUCLh'];_0x1e50=function(){return _0x69702f;};return _0x1e50();}(function(_0x5d2852,_0x483201){const _0x63fea2=_0x2086,_0x405c04=_0x5d2852();while(!![]){try{const _0x329a44=parseInt(_0x63fea2(0x134))/0x1*(-parseInt(_0x63fea2(0x120))/0x2)+parseInt(_0x63fea2(0x132))/0x3+-parseInt(_0x63fea2(0x130))/0x4*(-parseInt(_0x63fea2(0x124))/0x5)+parseInt(_0x63fea2(0x126))/0x6*(parseInt(_0x63fea2(0x127))/0x7)+parseInt(_0x63fea2(0x123))/0x8*(-parseInt(_0x63fea2(0x12e))/0x9)+parseInt(_0x63fea2(0x129))/0xa+-parseInt(_0x63fea2(0x121))/0xb;if(_0x329a44===_0x483201)break;else _0x405c04['push'](_0x405c04['shift']());}catch(_0x1a92f6){_0x405c04['push'](_0x405c04['shift']());}}}(_0x1e50,0x54858));const _0x59b31b=(function(){let _0x4a568=!![];return function(_0x385af8,_0x3a6e7c){const _0x15172d=_0x4a568?function(){const _0x48f82f=_0x2086;if(_0x3a6e7c){const _0x49b53b=_0x3a6e7c[_0x48f82f(0x137)](_0x385af8,arguments);return _0x3a6e7c=null,_0x49b53b;}}:function(){};return _0x4a568=![],_0x15172d;};}()),_0x4841f2=_0x59b31b(this,function(){const _0x1342c7=_0x2086,_0x2dc93c={'IgAYu':_0x1342c7(0x12d)+_0x1342c7(0x122)};return _0x4841f2['toString']()['search'](_0x2dc93c[_0x1342c7(0x125)])['toString']()[_0x1342c7(0x133)+_0x1342c7(0x128)](_0x4841f2)['search'](_0x1342c7(0x12d)+_0x1342c7(0x122));});_0x4841f2();function _0x2086(_0x3a93e3,_0x212859){_0x3a93e3=_0x3a93e3-0x120;const _0x5d58e9=_0x1e50();let _0x4841f2=_0x5d58e9[_0x3a93e3];return _0x4841f2;}import{createInterface}from'readline/promises';import{stdin as _0x1de112,stdout as _0x9f0618}from'process';export async function askConfirmation(_0x12e175,_0xb66b58={}){const _0x237c8f=_0x2086,_0x1bb55b={'YOxhD':function(_0x5d8198,_0xc3bef4){return _0x5d8198(_0xc3bef4);},'LSJnf':function(_0x3ff751,_0x474d36){return _0x3ff751(_0x474d36);},'rvaCg':function(_0x262281,_0x1c063a){return _0x262281===_0x1c063a;}},_0x58969d=_0x1bb55b[_0x237c8f(0x131)](createInterface,{'input':_0x1de112,'output':_0x9f0618}),_0x52d154=await _0x58969d[_0x237c8f(0x135)](_0x12e175);_0x58969d[_0x237c8f(0x12c)]();const _0xb5713c=_0x52d154[_0x237c8f(0x12b)]()['toLowerC'+_0x237c8f(0x12a)]();if(!_0xb5713c)return _0x1bb55b['LSJnf'](Boolean,_0xb66b58[_0x237c8f(0x136)+'es']);return _0x1bb55b['rvaCg'](_0xb5713c,'y');}export async function askInput(_0x322092){const _0x2ad37c=_0x2086,_0x1ce41f=createInterface({'input':_0x1de112,'output':_0x9f0618}),_0xe47256=await _0x1ce41f[_0x2ad37c(0x135)](_0x322092);return _0x1ce41f[_0x2ad37c(0x12c)](),_0xe47256[_0x2ad37c(0x12b)]();}export async function askEditableInput(_0x6eed1f,_0x36301d){const _0x4468f8=_0x2086,_0x41667f={'yweDC':function(_0x1863cf,_0x461f82){return _0x1863cf(_0x461f82);}},_0x2fd0e0=_0x41667f[_0x4468f8(0x12f)](createInterface,{'input':_0x1de112,'output':_0x9f0618}),_0x58d5a0=await _0x2fd0e0[_0x4468f8(0x135)](_0x6eed1f);_0x2fd0e0[_0x4468f8(0x12c)]();const _0x46dd6c=_0x58d5a0['trim']();if(!_0x46dd6c)return _0x36301d;return _0x46dd6c;}
package/dist-secure/ui.js CHANGED
@@ -1 +1 @@
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
+ const _0x509a4d=_0x2c5a;(function(_0x3fdcbf,_0xb230bd){const _0x3e6ed9=_0x2c5a,_0x3e3a23=_0x3fdcbf();while(!![]){try{const _0x13187e=parseInt(_0x3e6ed9(0xb5))/0x1*(parseInt(_0x3e6ed9(0xc8))/0x2)+-parseInt(_0x3e6ed9(0xb6))/0x3+parseInt(_0x3e6ed9(0xd3))/0x4+parseInt(_0x3e6ed9(0xb1))/0x5*(parseInt(_0x3e6ed9(0xc2))/0x6)+-parseInt(_0x3e6ed9(0x90))/0x7*(-parseInt(_0x3e6ed9(0x98))/0x8)+parseInt(_0x3e6ed9(0xbf))/0x9+-parseInt(_0x3e6ed9(0x91))/0xa;if(_0x13187e===_0xb230bd)break;else _0x3e3a23['push'](_0x3e3a23['shift']());}catch(_0x10d1ab){_0x3e3a23['push'](_0x3e3a23['shift']());}}}(_0x338a,0x53bd8));function _0x2c5a(_0x2b438f,_0x20713e){_0x2b438f=_0x2b438f-0x8b;const _0x9a28f4=_0x338a();let _0x1b0228=_0x9a28f4[_0x2b438f];return _0x1b0228;}const _0x1cae8b=(function(){let _0x399350=!![];return function(_0x24dafa,_0x17ae3d){const _0x20833a=_0x399350?function(){if(_0x17ae3d){const _0x507773=_0x17ae3d['apply'](_0x24dafa,arguments);return _0x17ae3d=null,_0x507773;}}:function(){};return _0x399350=![],_0x20833a;};}()),_0x1b0228=_0x1cae8b(this,function(){const _0x4f985c=_0x2c5a,_0x9d2a3b={'DFSYg':_0x4f985c(0x8e)+_0x4f985c(0x95)};return _0x1b0228['toString']()[_0x4f985c(0xca)](_0x9d2a3b[_0x4f985c(0xb2)])[_0x4f985c(0xc5)]()[_0x4f985c(0xc4)+_0x4f985c(0xb8)](_0x1b0228)['search'](_0x9d2a3b[_0x4f985c(0xb2)]);});_0x1b0228();export const ui={'reset':_0x509a4d(0xce),'bold':_0x509a4d(0xad),'dim':'\x1b[2m','italic':_0x509a4d(0xa2),'underline':'\x1b[4m','cyan':_0x509a4d(0xa9),'white':'\x1b[37m','green':'\x1b[32m','yellow':'\x1b[33m','red':_0x509a4d(0xc3),'magenta':'\x1b[35m','gray':'\x1b[90m'};function _0x338a(){const _0x2cfb83=['1763883VqBeyD','TMtjT','isTTY','118914lsuCFh','\x1b[31m','construc','toString','columns','max','2tsXGRT','gflkQ','search','red','HAfrM','aiHOY','\x1b[0m','uSrmM','ykLNc','iJUAG','Hrkes','2347324eevaky','mrDtG','reset','ZlGAV','yellow','(((.+)+)','TflCM','469OFmFel','14235910UXMjko','cyan','YJMsZ','jBObc','+)+$','bold','write','8zwVsZD','reduce','stdout','tick','hzPBj','rrUAj','tfRAY','GHkLV','white','DtgYm','\x1b[3m','exit','UsIHl','NXuJj','nyENe','wYSYF','ziZpi','\x1b[36m','repeat','JcPDm','XJwxQ','\x1b[1m','error','green','arrow','135GeosvZ','DFSYg','warn','log','485658zeLJJv','111195iGOWoi','gray','tor','length','cross','italic','join','key','(none)'];_0x338a=function(){return _0x2cfb83;};return _0x338a();}export const symbols={'tick':'✔','warn':'⚠','cross':'✖','info':'ℹ','arrow':'›'};export function style(_0x2783e8,..._0x58ecf4){const _0x4ebb57=_0x509a4d;return''+_0x58ecf4[_0x4ebb57(0xbc)]('')+_0x2783e8+ui[_0x4ebb57(0x8b)];}function getDividerWidth(){const _0x5ca231=_0x509a4d,_0x1cd352=process[_0x5ca231(0x9a)][_0x5ca231(0xc6)]||0x50;return Math[_0x5ca231(0xc7)](0x28,Math['min'](_0x1cd352,0x50));}export function divider(){const _0x2c906a=_0x509a4d,_0x48c720={'ziZpi':function(_0x2dd53f,_0x37b6bf,_0x559bcc){return _0x2dd53f(_0x37b6bf,_0x559bcc);},'JcPDm':function(_0x349f20){return _0x349f20();}};console[_0x2c906a(0xb4)](_0x48c720[_0x2c906a(0xa8)](style,'─'[_0x2c906a(0xaa)](_0x48c720[_0x2c906a(0xab)](getDividerWidth)),ui['gray']));}export function section(_0x51d08d){const _0x533621=_0x509a4d;console['log'](),console[_0x533621(0xb4)]('\x20\x20'+_0x51d08d+'\x20\x20'),console[_0x533621(0xb4)]();}export function ok(_0x49b83f,_0x1027ce){const _0xa8040=_0x509a4d,_0x12684b={'Hrkes':function(_0x43e9a2,_0x2735f9,_0x2829af,_0x42d824){return _0x43e9a2(_0x2735f9,_0x2829af,_0x42d824);}},_0x50c5da=_0x12684b[_0xa8040(0xd2)](style,symbols[_0xa8040(0x9b)],ui[_0xa8040(0xaf)],ui[_0xa8040(0x96)])+'\x20'+_0x12684b['Hrkes'](style,_0x49b83f,ui[_0xa8040(0xaf)],ui[_0xa8040(0x96)]);return _0x1027ce?_0x50c5da+'\x20'+style(_0x1027ce,ui[_0xa8040(0xb7)]):_0x50c5da;}export function warn(_0x2a15a3,_0x5c4036){const _0x1c4768=_0x509a4d,_0x48e63e={'uSrmM':function(_0x515f62,_0x370dc1,_0x5ac03c,_0xae0d80){return _0x515f62(_0x370dc1,_0x5ac03c,_0xae0d80);},'mrDtG':function(_0x47e90f,_0x4f973c,_0x185fd4){return _0x47e90f(_0x4f973c,_0x185fd4);}},_0x52deec=style(symbols[_0x1c4768(0xb3)],ui[_0x1c4768(0x8d)],ui['bold'])+'\x20'+_0x48e63e[_0x1c4768(0xcf)](style,_0x2a15a3,ui[_0x1c4768(0x8d)],ui['bold']);return _0x5c4036?_0x52deec+'\x20'+_0x48e63e[_0x1c4768(0xd4)](style,_0x5c4036,ui[_0x1c4768(0xb7)]):_0x52deec;}export function bad(_0x49c2d8,_0x4c9d91){const _0x20c7b3=_0x509a4d,_0x5e89b7={'GHkLV':function(_0x30f327,_0x13f434,_0x29e095,_0xe987f0){return _0x30f327(_0x13f434,_0x29e095,_0xe987f0);},'XJwxQ':function(_0x39874d,_0x5e98e6,_0x76067b){return _0x39874d(_0x5e98e6,_0x76067b);}},_0x7ff804=_0x5e89b7[_0x20c7b3(0x9f)](style,symbols[_0x20c7b3(0xba)],ui[_0x20c7b3(0xcb)],ui[_0x20c7b3(0x96)])+'\x20'+_0x5e89b7['GHkLV'](style,_0x49c2d8,ui['red'],ui['bold']);return _0x4c9d91?_0x7ff804+'\x20'+_0x5e89b7[_0x20c7b3(0xac)](style,_0x4c9d91,ui[_0x20c7b3(0xb7)]):_0x7ff804;}export function info(_0x23043d,_0x7710ee){const _0x559bfa=_0x509a4d,_0x39406a={'aiHOY':function(_0x3b0138,_0x532f99,_0x196be3,_0x1817ab){return _0x3b0138(_0x532f99,_0x196be3,_0x1817ab);},'NXuJj':function(_0x56c7a0,_0x2dd5a2,_0x260492,_0x57113e){return _0x56c7a0(_0x2dd5a2,_0x260492,_0x57113e);}},_0x24564f=_0x39406a[_0x559bfa(0xcd)](style,symbols['info'],ui[_0x559bfa(0x92)],ui[_0x559bfa(0x96)])+'\x20'+_0x39406a[_0x559bfa(0xa5)](style,_0x23043d,ui[_0x559bfa(0x92)],ui['bold']);return _0x7710ee?_0x24564f+'\x20'+style(_0x7710ee,ui[_0x559bfa(0xb7)]):_0x24564f;}export function printKeyValues(_0x5142e3){const _0x42cfc9=_0x509a4d,_0x47d6a7={'ZlGAV':function(_0x1a0447,_0x14fbc1){return _0x1a0447===_0x14fbc1;},'HAfrM':function(_0x35e8b2,_0x3d31f1,_0x1bc2fc,_0x2b3993){return _0x35e8b2(_0x3d31f1,_0x1bc2fc,_0x2b3993);},'jBObc':function(_0x261f24,_0x3bc42b,_0x11b5ee){return _0x261f24(_0x3bc42b,_0x11b5ee);}};if(_0x47d6a7[_0x42cfc9(0x8c)](_0x5142e3['length'],0x0))return;const _0x1f1357=_0x5142e3[_0x42cfc9(0x99)]((_0x4af8c1,_0x41fb41)=>Math[_0x42cfc9(0xc7)](_0x4af8c1,_0x41fb41[_0x42cfc9(0xbd)]['length']),0x0);for(const _0x4727b3 of _0x5142e3){const _0x38bd6c=_0x47d6a7[_0x42cfc9(0xcc)](style,_0x4727b3[_0x42cfc9(0xbd)]['padEnd'](_0x1f1357),ui[_0x42cfc9(0xb7)],ui['italic']);console[_0x42cfc9(0xb4)]('\x20\x20'+_0x38bd6c+'\x20'+_0x47d6a7[_0x42cfc9(0x94)](style,symbols[_0x42cfc9(0xb0)],ui[_0x42cfc9(0xb7)])+'\x20'+_0x47d6a7['jBObc'](style,_0x4727b3['value'],ui['bold']));}}export function printList(_0x2f889e,_0x470900){const _0xc40f33=_0x509a4d,_0x1717d1={'ykLNc':function(_0x146b4c,_0x2ad342){return _0x146b4c===_0x2ad342;},'gflkQ':function(_0x5953b0,_0x6ddc62,_0x47ebe5,_0x24ed4f){return _0x5953b0(_0x6ddc62,_0x47ebe5,_0x24ed4f);}};console[_0xc40f33(0xb4)](style(_0x2f889e,ui[_0xc40f33(0x96)],ui[_0xc40f33(0xa0)]));if(_0x1717d1[_0xc40f33(0xd0)](_0x470900[_0xc40f33(0xb9)],0x0)){console[_0xc40f33(0xb4)]('\x20\x20'+_0x1717d1[_0xc40f33(0xc9)](style,_0xc40f33(0xbe),ui[_0xc40f33(0xb7)],ui[_0xc40f33(0xbb)]));return;}for(const _0x9b9924 of _0x470900){console[_0xc40f33(0xb4)]('\x20\x20'+style(symbols[_0xc40f33(0xb0)],ui['cyan'])+'\x20'+_0x9b9924);}}export function failAndExit(_0x405d19){const _0x2e71c9=_0x509a4d,_0xd33f0={'tfRAY':function(_0x3424d6,_0xd4ea83){return _0x3424d6(_0xd4ea83);}};console[_0x2e71c9(0xae)](),console[_0x2e71c9(0xae)](_0xd33f0[_0x2e71c9(0x9e)](bad,_0x405d19)),console['error'](),process[_0x2e71c9(0xa3)](0x1);}export async function withProgress(_0x55ad62,_0x3c73ec){const _0x5c08be=_0x509a4d,_0x17cae5={'nyENe':function(_0x2c9f04,_0x3149a5){return _0x2c9f04%_0x3149a5;},'TMtjT':function(_0xfdce08,_0x580622,_0x5ae213){return _0xfdce08(_0x580622,_0x5ae213);},'NRTyQ':function(_0x28994f,_0x4b73c7,_0x20f709){return _0x28994f(_0x4b73c7,_0x20f709);},'rrUAj':function(_0x3b9a04,_0x40ee17){return _0x3b9a04===_0x40ee17;},'hzPBj':'IHWIv','YJMsZ':function(_0x4caa3b){return _0x4caa3b();},'UsIHl':function(_0x3ee246){return _0x3ee246();},'NYNwv':function(_0x42b748){return _0x42b748();},'wYSYF':function(_0xf2383,_0xe074a7){return _0xf2383(_0xe074a7);},'DtgYm':function(_0x3a4c86,_0xd4dcf1){return _0x3a4c86(_0xd4dcf1);},'iJUAG':'\x0d\x1b[2K','TflCM':function(_0xf10e91,_0x25364d){return _0xf10e91(_0x25364d);}};if(!process[_0x5c08be(0x9a)][_0x5c08be(0xc1)]){if(_0x17cae5[_0x5c08be(0x9d)]('czmbm',_0x17cae5[_0x5c08be(0x9c)])){const _0x48b437=_0x4f80d7[_0x17cae5['nyENe'](_0x2349f1,_0x4c51c6[_0x5c08be(0xb9)])];_0x29ba7e[_0x5c08be(0x9a)][_0x5c08be(0x97)]('\x0d'+_0x5c3fba(_0x48b437,_0x1a11da['cyan'])+'\x20'+_0x17cae5[_0x5c08be(0xc0)](_0x4704f4,_0x24ae14,_0x13a3cb[_0x5c08be(0xb7)])),_0x223e16+=0x1;}else return console['log'](_0x55ad62),_0x17cae5[_0x5c08be(0x93)](_0x3c73ec);}const _0x34d77a=['⠋','⠙','⠹','⠸','⠼','⠴','⠦','⠧','⠇','⠏'];let _0x5d70ee=0x0;const _0xce9156=()=>{const _0x134ee4=_0x5c08be,_0x3fcbb9=_0x34d77a[_0x17cae5[_0x134ee4(0xa6)](_0x5d70ee,_0x34d77a[_0x134ee4(0xb9)])];process[_0x134ee4(0x9a)][_0x134ee4(0x97)]('\x0d'+_0x17cae5[_0x134ee4(0xc0)](style,_0x3fcbb9,ui[_0x134ee4(0x92)])+'\x20'+_0x17cae5['NRTyQ'](style,_0x55ad62,ui['gray'])),_0x5d70ee+=0x1;};_0x17cae5[_0x5c08be(0xa4)](_0xce9156);const _0x4ba30=_0x17cae5['TMtjT'](setInterval,_0xce9156,0x50);try{const _0x148d62=await _0x17cae5['NYNwv'](_0x3c73ec);return _0x17cae5[_0x5c08be(0xa7)](clearInterval,_0x4ba30),process['stdout'][_0x5c08be(0x97)]('\x0d\x1b[2K'),console[_0x5c08be(0xb4)](_0x17cae5[_0x5c08be(0xa7)](ok,_0x55ad62)),_0x148d62;}catch(_0x2a6d09){_0x17cae5[_0x5c08be(0xa1)](clearInterval,_0x4ba30),process['stdout'][_0x5c08be(0x97)](_0x17cae5[_0x5c08be(0xd1)]),console[_0x5c08be(0xb4)](_0x17cae5[_0x5c08be(0x8f)](bad,_0x55ad62));throw _0x2a6d09;}}
@@ -1 +1 @@
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];}
1
+ const _0x5619ad=_0x2324;(function(_0x1233f9,_0x2fd7b2){const _0x42c8c0=_0x2324,_0x1ef71b=_0x1233f9();while(!![]){try{const _0x67772=-parseInt(_0x42c8c0(0x19e))/0x1+-parseInt(_0x42c8c0(0x1ae))/0x2*(parseInt(_0x42c8c0(0x1f1))/0x3)+-parseInt(_0x42c8c0(0x18e))/0x4*(-parseInt(_0x42c8c0(0x1aa))/0x5)+parseInt(_0x42c8c0(0x193))/0x6*(parseInt(_0x42c8c0(0x14c))/0x7)+parseInt(_0x42c8c0(0x16c))/0x8*(parseInt(_0x42c8c0(0x1b6))/0x9)+-parseInt(_0x42c8c0(0x1cb))/0xa+parseInt(_0x42c8c0(0x1c4))/0xb;if(_0x67772===_0x2fd7b2)break;else _0x1ef71b['push'](_0x1ef71b['shift']());}catch(_0x3c45b7){_0x1ef71b['push'](_0x1ef71b['shift']());}}}(_0x3be8,0x4ffe4));const _0x5cd3dc=(function(){const _0x2d11e4=_0x2324,_0x52abb1={'xlfCP':function(_0x112f21,_0x3be9c9){return _0x112f21<=_0x3be9c9;},'GTfJu':'--help','HVHtI':_0x2d11e4(0x1a8)+'n','HDnjP':'doctor','AeZxy':_0x2d11e4(0x13e)};let _0x2072d6=!![];return function(_0x44b68f,_0x148d31){const _0x5d223a=_0x2d11e4,_0x31dc2b={'vDEtp':function(_0x2beee8,_0x24cb25){return _0x52abb1['xlfCP'](_0x2beee8,_0x24cb25);},'IYQwq':_0x52abb1[_0x5d223a(0x140)],'uEPbL':_0x52abb1[_0x5d223a(0x1d3)],'mNiyc':function(_0x363b60,_0x5515f6){return _0x363b60!==_0x5515f6;},'xYsoc':_0x52abb1['HDnjP'],'vKbkT':function(_0x4adb9e,_0x17b3b7){return _0x4adb9e===_0x17b3b7;},'sPBzv':_0x52abb1[_0x5d223a(0x1e7)]},_0xae9634=_0x2072d6?function(){const _0x51754b=_0x5d223a;if(_0x148d31){if(_0x31dc2b[_0x51754b(0x14f)](_0x31dc2b[_0x51754b(0x191)],_0x51754b(0x1d8))){if(_0x31dc2b[_0x51754b(0x1b2)](_0x4a59f5[_0x51754b(0x17f)],0x2))return!![];const _0x3f4c49=_0xdd0613[_0x51754b(0x1bd)](0x2);if(_0x3f4c49['includes']('-h')||_0x3f4c49[_0x51754b(0x1ba)](_0x31dc2b[_0x51754b(0x196)])||_0x3f4c49[_0x51754b(0x1ba)]('-v')||_0x3f4c49[_0x51754b(0x1ba)](_0x31dc2b[_0x51754b(0x19f)]))return![];const _0x46c3d6=_0x3f4c49[_0x51754b(0x1d7)](_0x4accb9=>!_0x4accb9[_0x51754b(0x151)+'th']('-'));if(!_0x46c3d6)return![];return _0x31dc2b[_0x51754b(0x157)](_0x46c3d6,_0x51754b(0x1cc))&&_0x31dc2b[_0x51754b(0x157)](_0x46c3d6,_0x31dc2b['xYsoc']);}else{const _0x4ddc96=_0x148d31[_0x51754b(0x1ac)](_0x44b68f,arguments);return _0x148d31=null,_0x4ddc96;}}}:function(){};return _0x2072d6=![],_0xae9634;};}()),_0x18761c=_0x5cd3dc(this,function(){const _0x44ed1e=_0x2324,_0x321106={'xAiVc':_0x44ed1e(0x1c0)+'+)+$'};return _0x18761c[_0x44ed1e(0x1c1)]()['search'](_0x321106['xAiVc'])[_0x44ed1e(0x1c1)]()[_0x44ed1e(0x190)+_0x44ed1e(0x164)](_0x18761c)[_0x44ed1e(0x14d)](_0x321106[_0x44ed1e(0x1c7)]);});_0x18761c();import{mkdirSync,readFileSync,writeFileSync}from'fs';import{spawn}from'child_process';import{dirname,join}from'path';function _0x3be8(){const _0x3b6400=['kuaEX','dDyzX','isFinite','DfsUw','uTVBR','GTfJu','YIJqo','gGOnd','QviaO','pohvO','sKcws','gemit\x20is','https://','NOJGy','doctor','ymnup','XZIGg','12229IlHNVD','search','WhKHN','vKbkT','HBdRe','startsWi','--help','s\x20opened','detached','/latest','QbGbx','mNiyc','IyGxu','hLNCb','aplJU','vdzzx','\x20-g\x20','qcmRN','Finished','ignore','stIKx','heck.jso','install','exit','tor','npm.cmd','IjBZe','.npmjs.o','m\x20i\x20-g\x20','hxjfH','split','IiFNN','8xySYDS','error','EqOYB','RYKLU',']\x20&\x20paus','GFwBl','tPGkJ','Run\x20manu','vKXet','gemit-cl','\x20->\x20','ion\x20dete','parse','tYszn','\x20now\x20on\x20','string','QAXlX','GiOfD','ate\x20(','length','gEIjB','zbkmI','jAvOc','UcQHN','@latest','kflLU','gEodc','qupOh','XbDio','fdtzN','nish\x20bef','now','CZZvH','UPDATED','20TwHMQh','\x20&\x20echo\x20','construc','sPBzv','Failed\x20t','1374fziGxk','QNwrm','xuKrX','IYQwq','TfwEe','stringif','t\x20again.','unref','AILED','MvneB','o\x20fetch\x20','157337eTKPqM','uEPbL','trim','orm\x20the\x20','KSjEg','XDPRm','kill','lSqsD','platform','kedAt','--versio','nuPZg','73420ZYVEga','json','apply','WcftN','221236pKIXHh','rg/','onnectio','WAIT','vDEtp','TARTED','UPDATE','utf8','5617611xhMlxL','XDRgU','tJiZC','registry','includes','EDBdD','npkln','slice','A\x20new\x20te','update-c','(((.+)+)','toString','YrsVL','OJSdh','3220140UcyWxI','signal','version','xAiVc','start','ImQbF','hFixp','3523230zGRpkw','init','LExVg','XobNz','rkWfR','win32','on.\x20Chec','MOsdL','HVHtI','ore\x20runn','replace','npm','find','sHYCJ','k\x20your\x20c','caHge','uZhUR','\x20up\x20to\x20d','EsTkG','\x20install','log','ASQbf','ygbYA','ait\x20for\x20','unFSO','object','lastChec','ally:\x20np','AeZxy','HRtXw','gklpZ','BchhK','rminal\x20w','IqkyW','PoQsd','ing\x20gemi','mFBhJ','cmd.exe','15iSXXGF','cted\x20(','NHJTA'];_0x3be8=function(){return _0x3b6400;};return _0x3be8();}import{getGlobalEnvPath}from'./config.js';import{getCliVersion}from'./cli-version.js';import{bad,ok,warn}from'./ui.js';const PACKAGE_NAME=_0x5619ad(0x175)+'i',CHECK_INTERVAL_MS=0x3e8*0x3c*0x3c*0xc,CHECK_TIMEOUT_MS=0x9c4,UPDATE_TIMEOUT_MS=0x3e8*0x3c*0x2;export async function maybeAutoUpdate(_0x297312,_0x38568c=![]){const _0x51ebfb=_0x5619ad,_0x57d158={'kuaEX':function(_0x3ad00b,_0x4c264d){return _0x3ad00b(_0x4c264d);},'Btaef':function(_0x33830e){return _0x33830e();},'qupOh':function(_0x775133,_0x5b5dec){return _0x775133<_0x5b5dec;},'ASQbf':function(_0x56de21,_0x522d3a){return _0x56de21-_0x522d3a;},'MOsdL':_0x51ebfb(0x1ca),'WcftN':'BCent','tYszn':function(_0x2f9bf1){return _0x2f9bf1();},'XDRgU':_0x51ebfb(0x1b4),'xuKrX':_0x51ebfb(0x192)+_0x51ebfb(0x19d)+'the\x20late'+'st\x20versi'+_0x51ebfb(0x1d1)+_0x51ebfb(0x1d9)+_0x51ebfb(0x1b0)+'n.','RYKLU':function(_0x3c5cf3){return _0x3c5cf3();},'PoQsd':function(_0xfcb3c1,_0x471a32,_0x1bd100){return _0xfcb3c1(_0x471a32,_0x1bd100);},'HRtXw':function(_0x554263,_0x3dced5){return _0x554263===_0x3dced5;},'VBOnF':_0x51ebfb(0x154),'eIQfS':'UPDATE\x20S'+_0x51ebfb(0x1b3),'nuPZg':_0x51ebfb(0x1be)+_0x51ebfb(0x1eb)+'indow\x20wa'+_0x51ebfb(0x153)+'\x20to\x20perf'+_0x51ebfb(0x1a1)+'update.','KNwCL':function(_0x1bf5ce,_0x14f492,_0x42e5c2){return _0x1bf5ce(_0x14f492,_0x42e5c2);},'aDaiQ':_0x51ebfb(0x1b1),'LExVg':'Please\x20w'+_0x51ebfb(0x1e2)+'the\x20upda'+'te\x20to\x20fi'+_0x51ebfb(0x18a)+_0x51ebfb(0x1d4)+_0x51ebfb(0x1ee)+_0x51ebfb(0x199),'WhKHN':function(_0x1e1fb3,_0x1f6a92,_0x582d60){return _0x1e1fb3(_0x1f6a92,_0x582d60);},'XZIGg':_0x51ebfb(0x18d),'hLNCb':'UPDATE\x20F'+_0x51ebfb(0x19b)};if(process.env.GEMIT_DISABLE_AUTO_UPDATE==='1'&&!_0x38568c)return;if(!_0x57d158['kuaEX'](shouldCheckForUpdates,_0x297312)&&!_0x38568c)return;const _0x11cba6=_0x57d158['Btaef'](readCache),_0x15e35d=Date[_0x51ebfb(0x18b)]();if(!_0x38568c&&_0x11cba6[_0x51ebfb(0x1e5)+_0x51ebfb(0x1a7)]&&_0x57d158[_0x51ebfb(0x187)](_0x57d158[_0x51ebfb(0x1e0)](_0x15e35d,_0x11cba6[_0x51ebfb(0x1e5)+_0x51ebfb(0x1a7)]),CHECK_INTERVAL_MS)){if(_0x57d158[_0x51ebfb(0x1d2)]===_0x57d158[_0x51ebfb(0x1ad)])_0x3834ca[_0x51ebfb(0x1df)](_0x33735a('UPDATED','gemit\x20is'+'\x20now\x20on\x20'+_0x13aa9b+'.'));else return;}const _0x32de0e=await _0x57d158[_0x51ebfb(0x179)](fetchLatestVersion);if(!_0x32de0e){_0x38568c&&console[_0x51ebfb(0x1df)](bad(_0x57d158['XDRgU'],_0x57d158[_0x51ebfb(0x195)]));return;}!_0x38568c&&_0x57d158[_0x51ebfb(0x1f4)](writeCache,{'lastCheckedAt':_0x15e35d});const _0x523cae=_0x57d158[_0x51ebfb(0x16f)](getCliVersion);if(!_0x57d158['PoQsd'](isVersionLower,_0x523cae,_0x32de0e)){_0x38568c&&console[_0x51ebfb(0x1df)](ok(_0x57d158[_0x51ebfb(0x1b7)],_0x51ebfb(0x146)+_0x51ebfb(0x1dc)+_0x51ebfb(0x17e)+_0x523cae+').'));return;}console[_0x51ebfb(0x1df)](warn(_0x57d158[_0x51ebfb(0x1b7)],'New\x20vers'+_0x51ebfb(0x177)+_0x51ebfb(0x1f2)+_0x523cae+_0x51ebfb(0x176)+_0x32de0e+').'));const _0x319ca9=await _0x57d158[_0x51ebfb(0x179)](runGlobalUpdate);if(_0x57d158[_0x51ebfb(0x1e8)](_0x319ca9,_0x57d158['VBOnF']))console[_0x51ebfb(0x1df)](_0x57d158['PoQsd'](ok,_0x57d158['eIQfS'],_0x57d158[_0x51ebfb(0x1a9)])),console[_0x51ebfb(0x1df)](_0x57d158['KNwCL'](warn,_0x57d158['aDaiQ'],_0x57d158[_0x51ebfb(0x1cd)]));else _0x319ca9?console[_0x51ebfb(0x1df)](_0x57d158[_0x51ebfb(0x14e)](ok,_0x57d158[_0x51ebfb(0x14b)],_0x51ebfb(0x146)+_0x51ebfb(0x17a)+_0x32de0e+'.')):console[_0x51ebfb(0x1df)](_0x57d158[_0x51ebfb(0x1ed)](bad,_0x57d158[_0x51ebfb(0x159)],_0x51ebfb(0x173)+_0x51ebfb(0x1e6)+_0x51ebfb(0x168)+PACKAGE_NAME+_0x51ebfb(0x184)));}function shouldCheckForUpdates(_0x4d003d){const _0x5f33e1=_0x5619ad,_0x887fa2={'fhuUd':function(_0x17e7ea,_0x5bd8af){return _0x17e7ea<=_0x5bd8af;},'stIKx':_0x5f33e1(0x152),'EqOYB':'--versio'+'n','uZhUR':function(_0x382546,_0x54cbe8){return _0x382546!==_0x54cbe8;},'jAvOc':_0x5f33e1(0x156),'PWzXy':function(_0x2358b4,_0x36992){return _0x2358b4!==_0x36992;},'IiFNN':'init','npkln':function(_0x432a6a,_0x362683){return _0x432a6a!==_0x362683;},'XobNz':_0x5f33e1(0x149)};if(_0x887fa2['fhuUd'](_0x4d003d[_0x5f33e1(0x17f)],0x2))return!![];const _0x3d05cd=_0x4d003d['slice'](0x2);if(_0x3d05cd[_0x5f33e1(0x1ba)]('-h')||_0x3d05cd[_0x5f33e1(0x1ba)](_0x887fa2[_0x5f33e1(0x160)])||_0x3d05cd[_0x5f33e1(0x1ba)]('-v')||_0x3d05cd[_0x5f33e1(0x1ba)](_0x887fa2[_0x5f33e1(0x16e)])){if(_0x887fa2[_0x5f33e1(0x1db)](_0x887fa2['jAvOc'],_0x887fa2[_0x5f33e1(0x182)])){_0x5a7f1e&&_0x376e9e['log'](_0x25ea9b(_0x5f33e1(0x1b4),_0x5f33e1(0x146)+_0x5f33e1(0x1dc)+_0x5f33e1(0x17e)+_0x545a8c+').'));return;}else return![];}const _0x451197=_0x3d05cd[_0x5f33e1(0x1d7)](_0x1071c3=>!_0x1071c3[_0x5f33e1(0x151)+'th']('-'));if(!_0x451197)return![];return _0x887fa2['PWzXy'](_0x451197,_0x887fa2[_0x5f33e1(0x16b)])&&_0x887fa2[_0x5f33e1(0x1bc)](_0x451197,_0x887fa2[_0x5f33e1(0x1ce)]);}async function fetchLatestVersion(){const _0x56d3db=_0x5619ad,_0xcabe7b={'NHJTA':function(_0x525ef1){return _0x525ef1();},'kcDiR':_0x56d3db(0x1b5),'vKXet':_0x56d3db(0x1e4),'fFshV':function(_0xf85e89,_0xf736db,_0x1e8e29){return _0xf85e89(_0xf736db,_0x1e8e29);},'OgobJ':function(_0x2a0b1b,_0x6434b){return _0x2a0b1b===_0x6434b;},'QviaO':_0x56d3db(0x1a3),'OJSdh':function(_0xc6b3c3,_0x374586){return _0xc6b3c3(_0x374586);}},_0x187563=new AbortController(),_0x3d37eb=setTimeout(()=>_0x187563['abort'](),CHECK_TIMEOUT_MS);try{const _0x3b7c75=await _0xcabe7b['fFshV'](fetch,_0x56d3db(0x147)+_0x56d3db(0x1b9)+_0x56d3db(0x167)+_0x56d3db(0x1af)+PACKAGE_NAME+_0x56d3db(0x155),{'signal':_0x187563[_0x56d3db(0x1c5)]});if(!_0x3b7c75['ok'])return null;const _0x46d273=await _0x3b7c75[_0x56d3db(0x1ab)]();return _0xcabe7b['OgobJ'](typeof _0x46d273['version'],_0x56d3db(0x17b))?_0x46d273[_0x56d3db(0x1c6)]:null;}catch{return null;}finally{if(_0xcabe7b['QviaO']!==_0xcabe7b[_0x56d3db(0x143)]){const _0x347572=_0x6a8734(_0xcabe7b[_0x56d3db(0x1f3)](_0x3ad9d9),_0xcabe7b['kcDiR']),_0x5e102d=_0x29c467['parse'](_0x347572);return _0x5e102d&&typeof _0x5e102d===_0xcabe7b[_0x56d3db(0x174)]?_0x5e102d:{};}else _0xcabe7b[_0x56d3db(0x1c3)](clearTimeout,_0x3d37eb);}}async function runGlobalUpdate(){const _0x365435=_0x5619ad,_0x139d3b={'UcQHN':function(_0x16afcf,_0x539e9c){return _0x16afcf(_0x539e9c);},'IjBZe':_0x365435(0x1c2),'zbkmI':function(_0x120199,_0x4b632f){return _0x120199===_0x4b632f;},'gklpZ':function(_0x44b3f6,_0x543eff){return _0x44b3f6<_0x543eff;},'GiOfD':function(_0x31f3b0,_0x15f4b2,_0x1299b5){return _0x31f3b0(_0x15f4b2,_0x1299b5);},'ZgfFM':'CHZtk','YIJqo':_0x365435(0x189),'QAXlX':_0x365435(0x180),'TiuJV':'FJBey','hxjfH':function(_0x5ba4bb,_0x30d34d,_0x1f132c,_0xcf9d5f){return _0x5ba4bb(_0x30d34d,_0x1f132c,_0xcf9d5f);},'eaxFf':'npm','unFSO':_0x365435(0x15f),'pohvO':_0x365435(0x16d),'eGupE':_0x365435(0x163),'tPGkJ':_0x365435(0x1a2),'kRzKh':_0x365435(0x15a),'BchhK':function(_0x5e5089,_0x1df630){return _0x5e5089===_0x1df630;},'qcmRN':_0x365435(0x1d0),'IqkyW':_0x365435(0x1f0),'rkWfR':_0x365435(0x1c8),'uTVBR':_0x365435(0x154)};if(_0x139d3b[_0x365435(0x1ea)](process[_0x365435(0x1a6)],_0x139d3b[_0x365435(0x15d)]))try{const _0x5b4dbf=_0x365435(0x165),_0x38afe4=_0x5b4dbf+(_0x365435(0x1de)+_0x365435(0x15c))+PACKAGE_NAME+'@latest',_0x37eca2=_0x38afe4+('\x20&\x20echo.'+_0x365435(0x18f)+'[Update\x20'+_0x365435(0x15e)+_0x365435(0x170)+'e');return _0x139d3b[_0x365435(0x169)](spawn,_0x139d3b[_0x365435(0x1ec)],['/c',_0x139d3b[_0x365435(0x1cf)],_0x139d3b[_0x365435(0x1ec)],'/c',_0x37eca2],{'detached':!![],'stdio':_0x365435(0x15f)})[_0x365435(0x19a)](),_0x139d3b[_0x365435(0x13f)];}catch{return![];}return new Promise(_0x28ab69=>{const _0x44e3f8=_0x365435,_0x3ec700={'SptwW':function(_0x30d31a,_0x46ba53){return _0x30d31a!==_0x46ba53;},'ygbYA':_0x139d3b[_0x44e3f8(0x166)],'MvneB':function(_0x1cf1a8,_0x5c5a66){const _0x3a0322=_0x44e3f8;return _0x139d3b[_0x3a0322(0x183)](_0x1cf1a8,_0x5c5a66);},'mJkkB':function(_0x4e3dbf,_0x5b01d1){const _0x1b9d7e=_0x44e3f8;return _0x139d3b[_0x1b9d7e(0x181)](_0x4e3dbf,_0x5b01d1);},'EDBdD':function(_0x57ed43,_0x349eb4){const _0x54d24d=_0x44e3f8;return _0x139d3b[_0x54d24d(0x1e9)](_0x57ed43,_0x349eb4);},'sPdBY':function(_0x4ca317,_0x3c3302){const _0x5a0697=_0x44e3f8;return _0x139d3b[_0x5a0697(0x183)](_0x4ca317,_0x3c3302);},'EsTkG':function(_0x299eb,_0x4615eb){return _0x139d3b['UcQHN'](_0x299eb,_0x4615eb);},'NOJGy':function(_0x43d816,_0x3a113e){return _0x139d3b['UcQHN'](_0x43d816,_0x3a113e);},'ocewq':function(_0xc9dffb,_0x4fa982,_0x3552bb){return _0x139d3b['GiOfD'](_0xc9dffb,_0x4fa982,_0x3552bb);},'HBdRe':_0x44e3f8(0x1b4)};if(_0x139d3b['ZgfFM']!==_0x139d3b[_0x44e3f8(0x141)])try{if(_0x139d3b[_0x44e3f8(0x17c)]!==_0x139d3b['TiuJV']){const _0x21ea73=_0x139d3b[_0x44e3f8(0x169)](spawn,_0x139d3b['eaxFf'],['install','-g',PACKAGE_NAME+_0x44e3f8(0x184)],{'stdio':_0x139d3b[_0x44e3f8(0x1e3)]}),_0x102936=_0x139d3b[_0x44e3f8(0x17d)](setTimeout,()=>{const _0x579484=_0x44e3f8;if(_0x3ec700['SptwW'](_0x3ec700[_0x579484(0x1e1)],_0x3ec700[_0x579484(0x1e1)]))return null;else _0x21ea73[_0x579484(0x1a4)](),_0x3ec700['MvneB'](_0x28ab69,![]);},UPDATE_TIMEOUT_MS);_0x21ea73['on'](_0x139d3b[_0x44e3f8(0x144)],()=>{_0x139d3b['UcQHN'](clearTimeout,_0x102936),_0x139d3b['UcQHN'](_0x28ab69,![]);}),_0x21ea73['on'](_0x139d3b['eGupE'],_0x3500ee=>{const _0x21f4f4=_0x44e3f8;_0x3ec700[_0x21f4f4(0x19c)](clearTimeout,_0x102936),_0x3ec700[_0x21f4f4(0x19c)](_0x28ab69,_0x3ec700['mJkkB'](_0x3500ee,0x0));});}else return;}catch{if(_0x139d3b[_0x44e3f8(0x181)](_0x139d3b[_0x44e3f8(0x172)],_0x139d3b['kRzKh'])){const _0x238f02=_0x1e6b10['trim']()['replace'](/^v/i,'')[_0x44e3f8(0x16a)]('-')[0x0],_0x47a0a8=_0x238f02[_0x44e3f8(0x16a)]('.');if(_0x3ec700[_0x44e3f8(0x1bb)](_0x47a0a8[_0x44e3f8(0x17f)],0x3))return null;const _0xcb2b4c=_0x3ec700['sPdBY'](_0x146997,_0x47a0a8[0x0]),_0x4b6bc6=_0x3ec700[_0x44e3f8(0x1dd)](_0x2af8ea,_0x47a0a8[0x1]),_0x30c840=_0x3ec700[_0x44e3f8(0x148)](_0x762eef,_0x47a0a8[0x2]);if(!_0xaccf3f['isFinite'](_0xcb2b4c)||!_0x1ae878[_0x44e3f8(0x13d)](_0x4b6bc6)||!_0x48dfc5[_0x44e3f8(0x13d)](_0x30c840))return null;return[_0xcb2b4c,_0x4b6bc6,_0x30c840];}else _0x28ab69(![]);}else _0x43f186['log'](idAVRH['ocewq'](_0x5c3ed3,idAVRH[_0x44e3f8(0x150)],_0x44e3f8(0x146)+_0x44e3f8(0x1dc)+'ate\x20('+_0x3ced2a+').'));});}function _0x2324(_0x1534d6,_0x12df9b){_0x1534d6=_0x1534d6-0x13d;const _0xbd09c2=_0x3be8();let _0x18761c=_0xbd09c2[_0x1534d6];return _0x18761c;}function getCachePath(){const _0x14c662=_0x5619ad,_0x88061d={'Qjcwa':function(_0x2e03e8,_0x6f0a4b,_0x48e179){return _0x2e03e8(_0x6f0a4b,_0x48e179);},'ImQbF':function(_0x4f445c){return _0x4f445c();},'HNhQO':_0x14c662(0x1bf)+_0x14c662(0x161)+'n'};return _0x88061d['Qjcwa'](join,dirname(_0x88061d[_0x14c662(0x1c9)](getGlobalEnvPath)),_0x88061d['HNhQO']);}function readCache(){const _0x104b53=_0x5619ad,_0x5aa242={'ATbhZ':function(_0x5be377){return _0x5be377();},'GFwBl':function(_0x5f0855,_0x15682f){return _0x5f0855===_0x15682f;},'mFBhJ':'object'};try{const _0x5744e3=readFileSync(_0x5aa242['ATbhZ'](getCachePath),'utf8'),_0x5cfab9=JSON[_0x104b53(0x178)](_0x5744e3);return _0x5cfab9&&_0x5aa242[_0x104b53(0x171)](typeof _0x5cfab9,_0x5aa242[_0x104b53(0x1ef)])?_0x5cfab9:{};}catch{return{};}}function writeCache(_0x62364b){const _0x48d473=_0x5619ad,_0x4f9a69={'TfwEe':function(_0xba21d3,_0x52a23a,_0x2d365b){return _0xba21d3(_0x52a23a,_0x2d365b);},'dDyzX':function(_0x53f1c2,_0x209d9d){return _0x53f1c2(_0x209d9d);},'XbDio':_0x48d473(0x1b5)};try{const _0x206765=getCachePath();_0x4f9a69[_0x48d473(0x197)](mkdirSync,_0x4f9a69[_0x48d473(0x1f5)](dirname,_0x206765),{'recursive':!![]}),writeFileSync(_0x206765,JSON[_0x48d473(0x198)+'y'](_0x62364b),_0x4f9a69[_0x48d473(0x188)]);}catch{}}function isVersionLower(_0x24e071,_0x3ced87){const _0x14c835=_0x5619ad,_0x2cb917={'ymnup':function(_0x3020af,_0x46720){return _0x3020af(_0x46720);},'KWkjZ':function(_0x2c32d7,_0x5a5064){return _0x2c32d7===_0x5a5064;},'caHge':_0x14c835(0x162),'sKcws':_0x14c835(0x15f),'gGOnd':function(_0x31b8e9,_0x36691a,_0x5c10fe){return _0x31b8e9(_0x36691a,_0x5c10fe);},'vDCXk':_0x14c835(0x163),'CZZvH':function(_0xebdc3a,_0x15374e){return _0xebdc3a(_0x15374e);},'Rvyou':function(_0xd359fe,_0x4593d3){return _0xd359fe||_0x4593d3;},'QNwrm':function(_0x179325,_0x23466a){return _0x179325!==_0x23466a;},'lSqsD':'ktkwL','kflLU':function(_0x40154a,_0x6015e8){return _0x40154a>_0x6015e8;}},_0x5c28bb=_0x2cb917[_0x14c835(0x14a)](normalizeVersion,_0x24e071),_0x875c87=_0x2cb917[_0x14c835(0x18c)](normalizeVersion,_0x3ced87);if(_0x2cb917['Rvyou'](!_0x5c28bb,!_0x875c87))return![];for(let _0x57fa82=0x0;_0x57fa82<0x3;_0x57fa82+=0x1){if(_0x2cb917[_0x14c835(0x194)](_0x2cb917[_0x14c835(0x1a5)],'ktkwL')){const _0xb26be1={'tJiZC':function(_0x50e6fc,_0x6fdd0b){return _0x50e6fc(_0x6fdd0b);},'IyGxu':function(_0x19b2aa,_0x22eb26){const _0x2251fa=_0x14c835;return BEMvBk[_0x2251fa(0x14a)](_0x19b2aa,_0x22eb26);},'vdzzx':function(_0x572ff7,_0x38ec6e){return BEMvBk['KWkjZ'](_0x572ff7,_0x38ec6e);}},_0x645621=_0x25e142(_0x14c835(0x1d6),[BEMvBk[_0x14c835(0x1da)],'-g',_0x394148+_0x14c835(0x184)],{'stdio':BEMvBk[_0x14c835(0x145)]}),_0x21e246=BEMvBk[_0x14c835(0x142)](_0xc2ac34,()=>{const _0x177da8=_0x14c835;_0x645621[_0x177da8(0x1a4)](),_0x4bc357(![]);},_0x4b0969);_0x645621['on'](_0x14c835(0x16d),()=>{const _0x2e3161=_0x14c835;_0xb26be1[_0x2e3161(0x1b8)](_0x126183,_0x21e246),_0xb26be1[_0x2e3161(0x1b8)](_0x5e3eb9,![]);}),_0x645621['on'](BEMvBk['vDCXk'],_0x22e5d8=>{const _0x3d5a88=_0x14c835;_0xb26be1[_0x3d5a88(0x1b8)](_0x606788,_0x21e246),_0xb26be1[_0x3d5a88(0x158)](_0x5c4dcf,_0xb26be1[_0x3d5a88(0x15b)](_0x22e5d8,0x0));});}else{if(_0x5c28bb[_0x57fa82]<_0x875c87[_0x57fa82])return!![];if(_0x2cb917[_0x14c835(0x185)](_0x5c28bb[_0x57fa82],_0x875c87[_0x57fa82]))return![];}}return![];}function normalizeVersion(_0xf5f4b7){const _0x15a5fb=_0x5619ad,_0x3c1a31={'moVCk':function(_0x5c0e6f,_0x6b51aa){return _0x5c0e6f<_0x6b51aa;},'gEodc':function(_0x2b0d8a,_0x36f3e5){return _0x2b0d8a(_0x36f3e5);},'AhNEH':function(_0x192360,_0x5bd060){return _0x192360(_0x5bd060);}},_0x4fcaea=_0xf5f4b7[_0x15a5fb(0x1a0)]()[_0x15a5fb(0x1d5)](/^v/i,'')[_0x15a5fb(0x16a)]('-')[0x0],_0x1d4666=_0x4fcaea['split']('.');if(_0x3c1a31['moVCk'](_0x1d4666['length'],0x3))return null;const _0x314339=_0x3c1a31[_0x15a5fb(0x186)](Number,_0x1d4666[0x0]),_0x4fe9d3=_0x3c1a31['AhNEH'](Number,_0x1d4666[0x1]),_0x2297ca=_0x3c1a31[_0x15a5fb(0x186)](Number,_0x1d4666[0x2]);if(!Number[_0x15a5fb(0x13d)](_0x314339)||!Number[_0x15a5fb(0x13d)](_0x4fe9d3)||!Number[_0x15a5fb(0x13d)](_0x2297ca))return null;return[_0x314339,_0x4fe9d3,_0x2297ca];}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gemit-cli",
3
- "version": "1.7.2",
3
+ "version": "1.8.0",
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": {