@northflank/cli 0.9.21 → 0.9.22

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
- 'use strict';const a4P=a4o;(function(e,o){const H=a4o,h=e();while(!![]){try{const p=-parseInt(H(0x1a4))/0x1*(parseInt(H(0x196))/0x2)+parseInt(H(0x155))/0x3*(-parseInt(H(0x1ac))/0x4)+parseInt(H(0x198))/0x5*(-parseInt(H(0x169))/0x6)+-parseInt(H(0x177))/0x7+parseInt(H(0x18c))/0x8*(-parseInt(H(0x162))/0x9)+parseInt(H(0x1aa))/0xa+parseInt(H(0x1a9))/0xb*(parseInt(H(0x1b6))/0xc);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a4e,0xd8cab));function a4o(e,o){const h=a4e();return a4o=function(p,Y){p=p-0x14b;let q=h[p];return q;},a4o(e,o);}var __awaiter=this&&this[a4P(0x1b7)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const c=a4o;function v(Z){const V=a4o;try{I(p[V(0x19d)](Z));}catch(k){J(k);}}function s(Z){try{I(p['throw'](Z));}catch(k){J(k);}}function I(Z){const u=a4o;Z[u(0x190)]?q(Z[u(0x1b1)]):Y(Z[u(0x1b1)])[u(0x1b4)](v,s);}I((p=p['apply'](e,o||[]))[c(0x19d)]());});},__importDefault=this&&this[a4P(0x16f)]||function(e){const n=a4P;return e&&e[n(0x178)]?e:{'default':e};};Object[a4P(0x197)](exports,'__esModule',{'value':!![]}),exports[a4P(0x171)]=void 0x0;const js_client_1=require(a4P(0x158)),chalk_1=__importDefault(require('chalk')),utils_1=require(a4P(0x1ae)),inquirer_helper_1=require(a4P(0x17d));class CliExec{constructor(e){const d=a4P;this[d(0x174)]=Y=>(0x0,utils_1[d(0x15e)])(!![])[d(0x159)](Y)['description'](d(0x153)+Y+d(0x18e)+Y+d(0x165)+Y+d(0x1b0)+Y+d(0x16d)+Y+d(0x14d))['option'](d(0x1a0),'Project\x20for\x20exec')['option']('--'+Y+d(0x15c)+Y+d(0x16a),Y[d(0x195)](0x0)[d(0x1a1)]()+Y[d(0x188)](0x1)+d(0x172))[d(0x163)]('--container\x20--containerId\x20[NAME]',d(0x17b))['option'](d(0x19f),d(0x186))[d(0x163)](d(0x166),'Run\x20command\x20with\x20this\x20user')[d(0x163)](d(0x176),d(0x192))[d(0x163)]('--noDefaults','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[d(0x163)](d(0x181),'Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.'),this[d(0x160)]=()=>({'columns':process[d(0x179)][d(0x17c)],'rows':process[d(0x179)][d(0x14f)]}),this[d(0x1b5)]=(Y,q,J,v,s,I,Z,k)=>{const j=d;if(k===!![])return;const L=v===j(0x1ab),F=L?j(0x1af):v===undefined?'with\x20shell\x20session':j(0x18d)+chalk_1[j(0x182)][j(0x1ad)](v),W=s!==undefined?j(0x189)+s:'',N=I!==undefined?j(0x151)+I:'',g=Z!==undefined?'with\x20command\x20\x27'+chalk_1[j(0x182)][j(0x1ad)](Z)+'\x27':'',w=[g,F,W,N][j(0x161)](x=>x!=='')[j(0x1b9)]('\x20'),C='(exit\x20with\x20two\x20quick\x20'+chalk_1[j(0x182)][j(0x19a)](j(0x15a))+')';console[j(0x1a7)]('Exec\x20'+Y+'\x20'+chalk_1[j(0x182)][j(0x19a)](q)+j(0x17f)+chalk_1[j(0x182)][j(0x19a)](J)+'\x20'+w+'\x20'+C);},this[d(0x1b3)]=(Y,q,J=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=d;var v,s;let I=![];try{if(process[Q(0x1ba)][Q(0x184)]){const k=require(Q(0x157));k[Q(0x15f)](process['stdin']),process['stdin']['setRawMode'](!![]),process['stdout']['on']('resize',()=>{const D=Q;Y[D(0x191)](this['getTerminalSize']());}),process[Q(0x1ba)]['on'](Q(0x170),(L,F)=>{const f=Q;F[f(0x187)]==='\x04'&&(I?(process[f(0x1ba)][f(0x183)](![]),(0x0,utils_1['warning'])(f(0x19b)),process[f(0x18f)]()):(I=!![],setTimeout(()=>I=![],0x190)));});}process[Q(0x1ba)][Q(0x14c)](Y[Q(0x1a3)]),Y[Q(0x16b)][Q(0x14c)](process['stderr']),Y[Q(0x19e)][Q(0x14c)](process['stdout']),Y['on']('error',L=>{const i=Q;var F;(0x0,utils_1[i(0x173)])(i(0x1a5)+q+i(0x1bb)+((F=L['message'])!==null&&F!==void 0x0?F:L)),process['stdin'][i(0x184)]&&process[i(0x1ba)][i(0x183)](![]),process['exit'](-0x1);});const Z=yield Y[Q(0x14b)]();if(J!==!![]){const L=(v=Z===null||Z===void 0x0?void 0x0:Z[Q(0x1b2)])!==null&&v!==void 0x0?v:Q(0x168),F=(s=Z===null||Z===void 0x0?void 0x0:Z['exitCode'])!==null&&s!==void 0x0?s:-0x1,W=(Z===null||Z===void 0x0?void 0x0:Z['message'])?Q(0x194)+Z[Q(0x199)]:'';L===Q(0x17a)?(0x0,utils_1[Q(0x152)])(Q(0x156)+F):(0x0,utils_1[Q(0x1a6)])(Q(0x14e)+L+Q(0x1a8)+F+W);}return Z;}finally{process[Q(0x1ba)]['isTTY']&&process['stdin'][Q(0x183)](![]);}}),this[d(0x16c)]=new js_client_1['ApiClient'](e,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']});const o=new inquirer_helper_1[(d(0x185))](this[d(0x16c)]);this['execCmd']=(0x0,utils_1[d(0x15e)])()[d(0x159)](d(0x193))[d(0x150)](d(0x180))[d(0x17e)](d(0x154));const h=this['getStandardExecCommand']('service')[d(0x164)](Y=>__awaiter(this,void 0x0,void 0x0,function*(){const R=d,{noDefaults:q,projectId:J,serviceId:v,containerId:s,shellCmd:I,user:Z,group:k,command:L,quiet:F}=Y;(0x0,utils_1[R(0x18b)])(this[R(0x16c)]);try{const W=q?undefined:e[R(0x15b)](),N=J||W||(yield o[R(0x15d)]()),g=q?undefined:e[R(0x1a2)](),w=v||g||(yield o[R(0x16e)](N)()),C=I!==null&&I!==void 0x0?I:L!==undefined?R(0x1ab):undefined;this[R(0x1b5)]('service',w,N,C,Z,k,L,F);const x=process[R(0x179)][R(0x17c)],l=process[R(0x179)]['rows'],b={'projectId':N,'serviceId':w},a=yield this[R(0x16c)]['exec']['execServiceSession'](b,{'containerName':s,'command':L,'shell':C,'user':Z,'group':k,'ttyColumns':x,'ttyRows':l});yield this[R(0x1b3)](a,'service',F);}catch(z){(0x0,utils_1[R(0x173)])(''+z[R(0x199)]);}finally{process[R(0x18f)]();}})),p=this[d(0x174)](d(0x175))['action'](Y=>__awaiter(this,void 0x0,void 0x0,function*(){const t=d,{projectId:q,jobId:J,containerId:v,noDefaults:s,shellCmd:I,user:Z,group:k,command:L,quiet:F}=Y;(0x0,utils_1[t(0x18b)])(this['apiClient']);try{const W=s?undefined:e[t(0x15b)](),N=q||W||(yield o['askForProject']()),g=J||(yield o[t(0x18a)](N)());this[t(0x1b5)](t(0x175),g,N,I,F);const {rows:w,columns:C}=this[t(0x160)](),x={'projectId':N,'jobId':g},l=yield this['apiClient']['exec'][t(0x19c)](x,{'containerName':v,'command':L,'shell':I,'user':Z,'group':k,'ttyColumns':C,'ttyRows':w});yield this[t(0x1b3)](l,t(0x175),F);}catch(b){(0x0,utils_1[t(0x173)])(''+b[t(0x199)]);}finally{process[t(0x18f)]();}}));this['execCmd']['addCommand'](h),this[d(0x1b8)][d(0x167)](p);}}function a4e(){const G=['keypress','CliExec','\x20to\x20exec\x20into','error','getStandardExecCommand','job','--group\x20[GROUP]','80528xKHSPT','__esModule','stdout','Success','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','columns','../inquirer-helper','description','\x20in\x20project\x20','exec','--cmd\x20--command\x20[COMMAND]','default','setRawMode','isTTY','InquirerHelper','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','sequence','slice','with\x20user:','askForJob','assertContextExisting','24zunfcV','shell\x20command\x20','.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20','exit','done','resizeTerminal','Run\x20command\x20with\x20this\x20group','command-exec',',\x20details:\x20','charAt','2061418PJVtTM','defineProperty','110XQqiFw','message','bold','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','execJobSession','next','stdOut','--shell-cmd\x20[SHELL-CMD]','--project\x20--projectId\x20[NAME]','toUpperCase','getCurrentServiceName','stdIn','1vkSzcE','Error\x20occured\x20during\x20','warning','log',',\x20exit\x20code:\x20','32886271nLarif','570350pMjgIn','none','1140xSVPpy','greenBright','../utils','without\x20shell','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','value','status','handleShellSession','then','execStartLog','12NGKYqW','__awaiter','execCmd','join','stdin','\x20command\x20exec:\x20','waitForCommandResult','pipe','\x20--shell-cmd\x20\x27sh\x27','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','rows','alias','with\x20group:','success','Command\x20exec\x20for\x20the\x20specified\x20','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','1263ErkRih','Command\x20completed\x20successfully,\x20exit\x20code:\x20','readline','@northflank/js-client','name','\x27Ctrl+D\x27','getCurrentProjectName','\x20--','askForProject','getCommand','emitKeypressEvents','getTerminalSize','filter','1520595IIssKi','option','action','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','--user\x20[USER]','addCommand','Unknown','133542YRDcXB','Id\x20[NAME]','stdErr','apiClient','\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20','askForService','__importDefault'];a4e=function(){return G;};return a4e();}exports['CliExec']=CliExec;
1
+ 'use strict';const a4K=a4N;(function(x,N){const j=a4N,c=x();while(!![]){try{const a=parseInt(j(0x165))/0x1*(parseInt(j(0x14b))/0x2)+-parseInt(j(0x13a))/0x3*(-parseInt(j(0x115))/0x4)+-parseInt(j(0x11b))/0x5+parseInt(j(0x16b))/0x6*(parseInt(j(0x136))/0x7)+parseInt(j(0x112))/0x8+parseInt(j(0x12b))/0x9+parseInt(j(0x168))/0xa*(-parseInt(j(0x16f))/0xb);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a4x,0xdfdf3));function a4N(x,N){const c=a4x();return a4N=function(a,J){a=a-0x111;let p=c[a];return p;},a4N(x,N);}var __awaiter=this&&this[a4K(0x15f)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){const L=a4N;function s(M){const m=a4N;try{d(a[m(0x12f)](M));}catch(A){e(A);}}function q(M){const S=a4N;try{d(a[S(0x166)](M));}catch(A){e(A);}}function d(M){const W=a4N;M[W(0x164)]?p(M['value']):J(M[W(0x161)])[W(0x16c)](s,q);}d((a=a[L(0x176)](x,N||[]))[L(0x12f)]());});},__importDefault=this&&this[a4K(0x127)]||function(x){const v=a4K;return x&&x[v(0x15b)]?x:{'default':x};};Object[a4K(0x158)](exports,'__esModule',{'value':!![]}),exports['CliExec']=void 0x0;const js_client_1=require(a4K(0x15a)),chalk_1=__importDefault(require(a4K(0x119))),utils_1=require(a4K(0x129)),inquirer_helper_1=require('../inquirer-helper');class CliExec{constructor(x){const h=a4K;this['getStandardExecCommand']=J=>(0x0,utils_1[h(0x159)])(!![])[h(0x15e)](J)[h(0x122)](h(0x17c)+J+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+J+h(0x11e)+J+h(0x156)+J+h(0x17e)+J+h(0x17d))['option']('--project\x20--projectId\x20[NAME]',h(0x146))[h(0x13c)]('--'+J+'\x20--'+J+h(0x177),J[h(0x133)](0x0)[h(0x173)]()+J[h(0x12e)](0x1)+'\x20to\x20exec\x20into')['option'](h(0x145),h(0x138))[h(0x13c)](h(0x15c),h(0x117))[h(0x13c)](h(0x132),'Run\x20command\x20with\x20this\x20user')[h(0x13c)](h(0x167),h(0x139))[h(0x13c)](h(0x128),h(0x17a),![])[h(0x13c)]('--cmd\x20--command\x20[COMMAND]','Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.'),this['getTerminalSize']=()=>({'columns':process[h(0x179)][h(0x131)],'rows':process[h(0x179)][h(0x140)]}),this[h(0x147)]=(J,p,e,s,q,d,M,A)=>{const B=h;if(A===!![])return;const l=s===B(0x148),Z=l?B(0x13f):s===undefined?B(0x17b):B(0x114)+chalk_1[B(0x16a)][B(0x16e)](s),V=q!==undefined?B(0x11d)+q:'',g=d!==undefined?B(0x154)+d:'',P=M!==undefined?'with\x20command\x20\x27'+chalk_1['default'][B(0x16e)](M)+'\x27':'',n=[P,Z,V,g]['filter'](k=>k!=='')[B(0x124)]('\x20'),Q=B(0x155)+chalk_1[B(0x16a)][B(0x120)](B(0x126))+')';console['log'](B(0x123)+J+'\x20'+chalk_1[B(0x16a)][B(0x120)](p)+B(0x13b)+chalk_1['default']['bold'](e)+'\x20'+n+'\x20'+Q);},this['handleShellSession']=(J,p,e=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const o=h;var s,q;let d=![];try{if(process[o(0x175)][o(0x14c)]){const A=require(o(0x157));A[o(0x142)](process['stdin']),process['stdin'][o(0x14d)](!![]),process[o(0x179)]['on'](o(0x152),()=>{const G=o;J['resizeTerminal'](this[G(0x169)]());}),process[o(0x175)]['on']('keypress',(l,Z)=>{const E=o;Z['sequence']==='\x04'&&(d?(process[E(0x175)][E(0x14d)](![]),(0x0,utils_1[E(0x11f)])(E(0x13e)),process[E(0x137)]()):(d=!![],setTimeout(()=>d=![],0x190)));});}process['stdin'][o(0x178)](J[o(0x130)]),J[o(0x162)][o(0x178)](process[o(0x17f)]),J['stdOut'][o(0x178)](process[o(0x179)]),J['on']('error',l=>{const u=o;var Z;(0x0,utils_1['error'])(u(0x153)+p+u(0x16d)+((Z=l[u(0x163)])!==null&&Z!==void 0x0?Z:l)),process[u(0x175)]['isTTY']&&process[u(0x175)][u(0x14d)](![]),process['exit'](-0x1);});const M=yield J[o(0x14e)]();if(e!==!![]){const l=(s=M===null||M===void 0x0?void 0x0:M[o(0x12c)])!==null&&s!==void 0x0?s:o(0x13d),Z=(q=M===null||M===void 0x0?void 0x0:M[o(0x11a)])!==null&&q!==void 0x0?q:-0x1,V=(M===null||M===void 0x0?void 0x0:M[o(0x163)])?',\x20details:\x20'+M[o(0x163)]:'';l===o(0x134)?(0x0,utils_1['success'])(o(0x160)+Z):(0x0,utils_1[o(0x11f)])(o(0x14f)+l+o(0x113)+Z+V);}return M;}finally{process['stdin'][o(0x14c)]&&process[o(0x175)][o(0x14d)](![]);}}),this['apiClient']=new js_client_1[(h(0x118))](x,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[h(0x171)]});const N=new inquirer_helper_1[(h(0x135))](this[h(0x116)]);this[h(0x149)]=(0x0,utils_1[h(0x159)])()[h(0x15e)](h(0x121))[h(0x12d)](h(0x141))[h(0x122)](h(0x172));const c=this[h(0x170)](h(0x125))[h(0x15d)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const X=h,{noDefaults:p,projectId:s,serviceId:q,containerId:d,shellCmd:M,user:A,group:l,command:Z,quiet:V}=J;(0x0,utils_1[X(0x111)])(this[X(0x116)]);try{const g=p?undefined:x[X(0x11c)](),P=s||g||(yield N[X(0x151)]()),n=p?undefined:x[X(0x12a)](),Q=q||n||(yield N[X(0x174)](P)()),k=M!==null&&M!==void 0x0?M:Z!==undefined?X(0x148):undefined;this[X(0x147)](X(0x125),Q,P,k,A,l,Z,V);const b=process['stdout'][X(0x131)],F=process[X(0x179)][X(0x140)],I={'projectId':P,'serviceId':Q},z=yield this[X(0x116)]['exec']['execServiceSession'](I,{'containerName':d,'command':Z,'shell':k,'user':A,'group':l,'ttyColumns':b,'ttyRows':F});yield this['handleShellSession'](z,X(0x125),V);}catch(w){(0x0,utils_1[X(0x143)])(''+w['message']);}finally{process[X(0x137)]();}})),a=this['getStandardExecCommand'](h(0x144))[h(0x15d)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const R=h,{projectId:p,jobId:s,containerId:q,noDefaults:d,shellCmd:M,user:A,group:l,command:Z,quiet:V}=J;(0x0,utils_1[R(0x111)])(this[R(0x116)]);try{const g=d?undefined:x[R(0x11c)](),P=p||g||(yield N[R(0x151)]()),n=s||(yield N[R(0x150)](P)());this[R(0x147)](R(0x144),n,P,M,V);const {rows:Q,columns:k}=this[R(0x169)](),b={'projectId':P,'jobId':n},F=yield this[R(0x116)][R(0x141)]['execJobSession'](b,{'containerName':q,'command':Z,'shell':M,'user':A,'group':l,'ttyColumns':k,'ttyRows':Q});yield this['handleShellSession'](F,'job',V);}catch(I){(0x0,utils_1[R(0x143)])(''+I['message']);}finally{process[R(0x137)]();}}));this[h(0x149)][h(0x14a)](c),this['execCmd'][h(0x14a)](a);}}exports['CliExec']=CliExec;function a4x(){const t=['with\x20group:','(exit\x20with\x20two\x20quick\x20','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','readline','defineProperty','getCommand','@northflank/js-client','__esModule','--shell-cmd\x20[SHELL-CMD]','action','name','__awaiter','Command\x20completed\x20successfully,\x20exit\x20code:\x20','value','stdErr','message','done','40GwzpJD','throw','--group\x20[GROUP]','10BqTtki','getTerminalSize','default','150FeCKDD','then','\x20command\x20exec:\x20','greenBright','25192167GQJNyo','getStandardExecCommand','customUserAgent','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','toUpperCase','askForService','stdin','apply','Id\x20[NAME]','pipe','stdout','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','with\x20shell\x20session','Command\x20exec\x20for\x20the\x20specified\x20','\x20--shell-cmd\x20\x27sh\x27','\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20','stderr','assertContextExisting','13304488ktyoVg',',\x20exit\x20code:\x20','shell\x20command\x20','1545524CeoPEA','apiClient','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','ApiClient','chalk','exitCode','2127930EmICgy','getCurrentProjectName','with\x20user:','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','warning','bold','command-exec','description','Exec\x20','join','service','\x27Ctrl+D\x27','__importDefault','--noDefaults','../utils','getCurrentServiceName','13414275FSeiZf','status','alias','slice','next','stdIn','columns','--user\x20[USER]','charAt','Success','InquirerHelper','9275aSsOzC','exit','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','Run\x20command\x20with\x20this\x20group','3xWCeiW','\x20in\x20project\x20','option','Unknown','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','without\x20shell','rows','exec','emitKeypressEvents','error','job','--container\x20--containerId\x20[NAME]','Project\x20for\x20exec','execStartLog','none','execCmd','addCommand','2986ikwTrV','isTTY','setRawMode','waitForCommandResult','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','askForJob','askForProject','resize','Error\x20occured\x20during\x20'];a4x=function(){return t;};return a4x();}
@@ -1 +1 @@
1
- 'use strict';const a5a=a5o;(function(e,o){const b=a5o,h=e();while(!![]){try{const p=parseInt(b(0x1a0))/0x1*(-parseInt(b(0x1b0))/0x2)+-parseInt(b(0x1ad))/0x3*(parseInt(b(0x196))/0x4)+-parseInt(b(0x1a9))/0x5+parseInt(b(0x19b))/0x6*(-parseInt(b(0x19d))/0x7)+-parseInt(b(0x1ae))/0x8+-parseInt(b(0x195))/0x9*(parseInt(b(0x1ba))/0xa)+parseInt(b(0x199))/0xb;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a5e,0x6df7f));function a5e(){const j=['slice','2015154qFrELW','12fuqhcS','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','green','34918048Sqdxag','value','4687500CFBwEo','__awaiter','7MhiOHA','__esModule','description','507644xVirJz','default','throw','getCommandOverview','getCommand','commands','../utils','apply','join','748415zxHgkI','command-overview','forEach','then','899163uzqRoZ','1298328esCtMd','next','2VMOZYY','length','every','name','map','log','--verbose','action','chalk','done','10ByqJuh'];a5e=function(){return j;};return a5e();}var __awaiter=this&&this[a5a(0x19c)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const V=a5o;function v(Z){const z=a5o;try{I(p[z(0x1af)](Z));}catch(k){J(k);}}function s(Z){const H=a5o;try{I(p[H(0x1a2)](Z));}catch(k){J(k);}}function I(Z){const P=a5o;Z[P(0x1b9)]?q(Z[P(0x19a)]):Y(Z[P(0x19a)])[P(0x1ac)](v,s);}I((p=p[V(0x1a7)](e,o||[]))[V(0x1af)]());});},__importDefault=this&&this['__importDefault']||function(e){const u=a5a;return e&&e[u(0x19e)]?e:{'default':e};};Object['defineProperty'](exports,a5a(0x19e),{'value':!![]}),exports[a5a(0x1a3)]=void 0x0;const chalk_1=__importDefault(require(a5a(0x1b8))),utils_1=require(a5a(0x1a6));function a5o(e,o){const h=a5e();return a5o=function(p,Y){p=p-0x194;let q=h[p];return q;},a5o(e,o);}function getCommandOverview(e){const c=a5a;return(0x0,utils_1[c(0x1a4)])()['name'](c(0x1aa))[c(0x19f)](c(0x197))['option'](c(0x1b6),'Print\x20command\x20descriptions')[c(0x1b7)](o=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:h}=o;function p(Y,q){const n=a5o;var J;const v=(C,x=!![])=>x?chalk_1[n(0x1a1)]['bold'][n(0x198)](C[n(0x1b3)]()):C['name'](),s=q[n(0x1b1)]===0x0,I=Y[n(0x1a5)];let Z='';const k=I[n(0x1b1)]===0x0,L=k||((J=Object['keys'](Y===null||Y===void 0x0?void 0x0:Y['opts']()))===null||J===void 0x0?void 0x0:J[n(0x1b1)])>0x0;!s&&(Z=I&&!k?'┬\x20':'─\x20');const F=h&&L&&Y[n(0x19f)]()?':\x20'+Y[n(0x19f)]():'';console[n(0x1b5)](''+q+Z+v(Y,L)+F);let W=q;if(!s){const C=q[n(0x194)](-0x2)==='└─';W=q['slice'](0x0,-0x2)+(C?'\x20\x20':'│\x20');}const N=W+'├─',g=W+'└─',w=I[n(0x1b2)](x=>x[n(0x1a5)]['length']===0x0);w&&!k&&!h?console['log'](g+'\x20'+I[n(0x1b4)](x=>v(x))[n(0x1a8)](',\x20')):I[n(0x1ab)]((x,l)=>{const d=n;p(x,I[d(0x1b1)]-0x1===l?g:N);});}p(e,'');}));}exports[a5a(0x1a3)]=getCommandOverview;
1
+ 'use strict';const a5I=a5N;function a5x(){const v=['map','value','slice','log','__esModule','every','5815xBLnMf','__awaiter','57082380dNwawG','description','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','getCommandOverview','length','2306691WLYjyr','10244244AfGFpy','next','__importDefault','option','getCommand','2504vhWuEd','green','join','defineProperty','name','../utils','action','apply','2004IOCkYT','command-overview','15338259mBvAOd','throw','then','1GksmRV','2300834zLrUUN','default','11NBnUWC','opts','commands','Print\x20command\x20descriptions','24248vOBtLO','chalk'];a5x=function(){return v;};return a5x();}(function(x,N){const F=a5N,c=x();while(!![]){try{const a=-parseInt(F(0x1f5))/0x1*(parseInt(F(0x1f6))/0x2)+-parseInt(F(0x1e2))/0x3+parseInt(F(0x1f0))/0x4*(-parseInt(F(0x204))/0x5)+-parseInt(F(0x1e3))/0x6+parseInt(F(0x1fc))/0x7*(parseInt(F(0x1e8))/0x8)+-parseInt(F(0x1f2))/0x9+parseInt(F(0x1dd))/0xa*(parseInt(F(0x1f8))/0xb);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a5x,0xd6914));var __awaiter=this&&this[a5I(0x205)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){const K=a5N;function s(M){const z=a5N;try{d(a[z(0x1e4)](M));}catch(A){e(A);}}function q(M){const w=a5N;try{d(a[w(0x1f3)](M));}catch(A){e(A);}}function d(M){const j=a5N;M['done']?p(M[j(0x1ff)]):J(M[j(0x1ff)])[j(0x1f4)](s,q);}d((a=a[K(0x1ef)](x,N||[]))['next']());});},__importDefault=this&&this[a5I(0x1e5)]||function(x){const m=a5I;return x&&x[m(0x202)]?x:{'default':x};};Object[a5I(0x1eb)](exports,a5I(0x202),{'value':!![]}),exports[a5I(0x1e0)]=void 0x0;const chalk_1=__importDefault(require(a5I(0x1fd))),utils_1=require(a5I(0x1ed));function getCommandOverview(x){const S=a5I;return(0x0,utils_1[S(0x1e7)])()[S(0x1ec)](S(0x1f1))['description'](S(0x1df))[S(0x1e6)]('--verbose',S(0x1fb))[S(0x1ee)](N=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:c}=N;function a(J,p){const W=a5N;var e;const s=(Q,k=!![])=>k?chalk_1[W(0x1f7)]['bold'][W(0x1e9)](Q[W(0x1ec)]()):Q[W(0x1ec)](),q=p[W(0x1e1)]===0x0,d=J[W(0x1fa)];let M='';const A=d[W(0x1e1)]===0x0,l=A||((e=Object['keys'](J===null||J===void 0x0?void 0x0:J[W(0x1f9)]()))===null||e===void 0x0?void 0x0:e[W(0x1e1)])>0x0;!q&&(M=d&&!A?'┬\x20':'─\x20');const Z=c&&l&&J[W(0x1de)]()?':\x20'+J['description']():'';console['log'](''+p+M+s(J,l)+Z);let V=p;if(!q){const Q=p[W(0x200)](-0x2)==='└─';V=p['slice'](0x0,-0x2)+(Q?'\x20\x20':'│\x20');}const g=V+'├─',P=V+'└─',n=d[W(0x203)](k=>k[W(0x1fa)]['length']===0x0);n&&!A&&!c?console[W(0x201)](P+'\x20'+d[W(0x1fe)](k=>s(k))[W(0x1ea)](',\x20')):d['forEach']((k,b)=>{const L=W;a(k,d[L(0x1e1)]-0x1===b?P:g);});}a(x,'');}));}function a5N(x,N){const c=a5x();return a5N=function(a,J){a=a-0x1dd;let p=c[a];return p;},a5N(x,N);}exports[a5I(0x1e0)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';function a6o(e,o){const h=a6e();return a6o=function(p,Y){p=p-0x73;let q=h[p];return q;},a6o(e,o);}const a6N=a6o;(function(e,o){const W=a6o,h=e();while(!![]){try{const p=parseInt(W(0x75))/0x1+parseInt(W(0x77))/0x2+-parseInt(W(0x8c))/0x3+parseInt(W(0x9a))/0x4*(-parseInt(W(0x94))/0x5)+-parseInt(W(0x9c))/0x6+-parseInt(W(0x99))/0x7*(parseInt(W(0xa0))/0x8)+parseInt(W(0xa6))/0x9*(parseInt(W(0x86))/0xa);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a6e,0xa3de9));var __createBinding=this&&this[a6N(0x76)]||(Object[a6N(0x84)]?function(e,h,p,Y){const g=a6N;if(Y===undefined)Y=p;var q=Object[g(0x7d)](h,p);(!q||(g(0x85)in q?!h[g(0xa9)]:q[g(0xa3)]||q[g(0x80)]))&&(q={'enumerable':!![],'get':function(){return h[p];}}),Object['defineProperty'](e,Y,q);}:function(e,h,p,Y){if(Y===undefined)Y=p;e[Y]=h[p];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6N(0x84)]?function(e,h){const w=a6N;Object[w(0x8d)](e,w(0x88),{'enumerable':!![],'value':h});}:function(e,h){const C=a6N;e[C(0x88)]=h;}),__importStar=this&&this[a6N(0x7f)]||function(e){const x=a6N;if(e&&e[x(0xa9)])return e;var o={};if(e!=null){for(var h in e)if(h!==x(0x88)&&Object['prototype']['hasOwnProperty'][x(0x7b)](e,h))__createBinding(o,e,h);}return __setModuleDefault(o,e),o;},__importDefault=this&&this[a6N(0xb2)]||function(e){const l=a6N;return e&&e[l(0xa9)]?e:{'default':e};};Object[a6N(0x8d)](exports,'__esModule',{'value':!![]}),exports['printResponse']=exports[a6N(0xa4)]=exports['handleYamlOutput']=exports[a6N(0x8a)]=exports['consoleFormat']=exports[a6N(0x83)]=void 0x0;const chalk_1=__importDefault(require(a6N(0xa1))),_=__importStar(require('lodash')),util=__importStar(require(a6N(0xae))),yaml=require('js-yaml'),columnify=require(a6N(0xad));function printAsTable(e,o,h,p=![],Y=0x0){const b=a6N;!p&&console[b(0xb4)](''+chalk_1[b(0x88)][b(0xa2)](o));function q(v){const a=b;return v===a(0xab)?v:v[a(0xa5)]('disabled','');}function J(v,s){const H=b;function I(k){const z=a6o,L=new Date(k);return L[z(0x9d)]()+'/'+L[z(0x7a)]()+'/'+L[z(0x8b)]()+'\x0a'+L[z(0xa8)]()+':'+L['getMinutes']()+':'+L['getSeconds']();}const Z=[H(0x89),'updatedat'];if(Z[H(0xaf)](s[H(0x7c)]())&&_['isFinite'](v)&&v['toString']()[H(0x8e)]===0xd)return I(Number(v));if(_[H(0x8f)](v)){if(s!==H(0xab)&&s['includes'](H(0xab)))return v?'x':'✔';return v?'✔':'x';}if(_[H(0x7e)](v))return util[H(0x87)](v,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return v;}if(_[b(0x9e)](e)){e[b(0x8e)]===0x0&&console[b(0xb4)](b(0x81)+o[b(0x7c)]()+b(0xaa));const v=e[b(0x9f)]((Z,k)=>{const P=b,L={'i':k+Y};return Object[P(0x78)](Z)[P(0xa7)](F=>{const V=P;(_[V(0xac)](h)||h[V(0xaf)](F[V(0x7c)]()))&&_[V(0x9b)](L,q(F),J(Z[F],F));}),L;}),s=_[b(0x82)](Object[b(0x78)]((v===null||v===void 0x0?void 0x0:v[0x0])||[]))[b(0xb3)]((Z,k)=>{const u=b,L=F=>F!=='i'?F!==u(0xb0)?0x0:0x1:0x2;return L(k)-L(Z);}),I={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!p,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':s};console['log'](columnify(v,I));}else console[b(0xb4)](e);}exports[a6N(0x83)]=printAsTable;function consoleFormat(e,o){const c=a6N;if(_[c(0x98)](e)){const h=o?c(0x95)+o+')':'';return chalk_1[c(0x88)][c(0x93)]('The\x20request\x20was\x20completed\x20successfully')+h;}if(!_[c(0x7e)](e))return e===null||e===void 0x0?void 0x0:e[c(0x91)]();return util[c(0x87)](e,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6N(0xb1)]=consoleFormat;const handleJsonOutput=(e,o)=>{const n=a6N,h=e===n(0x97);if(h)console[n(0xb4)](JSON[n(0x73)](o,null,'\x20'));};exports[a6N(0x8a)]=handleJsonOutput;const handleYamlOutput=(e,o)=>{const d=a6N,h=e===d(0x74)||e===d(0x96);if(h)console[d(0xb4)](yaml['safeDump'](o));};exports[a6N(0x79)]=handleYamlOutput;const handleFormattedOutput=(e,o)=>{const j=a6N,h=e===j(0x90);if(h)console[j(0xb4)](consoleFormat(o));};exports[a6N(0xa4)]=handleFormattedOutput;const printResponse=(e,o)=>{const Q=a6N;(0x0,exports[Q(0x8a)])(e,o),(0x0,exports[Q(0x79)])(e,o),(0x0,exports['handleFormattedOutput'])(e,o);};exports[a6N(0x92)]=printResponse;function a6e(){const D=['includes','internalId','consoleFormat','__importDefault','sort','log','stringify','yaml','1297238nSXLmd','__createBinding','964036BwSNnq','keys','handleYamlOutput','getMonth','call','toLowerCase','getOwnPropertyDescriptor','isObjectLike','__importStar','configurable','No\x20','clone','printAsTable','create','get','18940180TMFfGF','inspect','default','createdat','handleJsonOutput','getFullYear','2695857uoGWbf','defineProperty','length','isBoolean','format','toString','printResponse','green','1405bpwRRP','\x20(HTTP\x20status:\x20','yml','json','isEmpty','436919EdJFqV','4692eCjfHp','set','6523476UvJDLm','getDate','isArrayLike','map','88YevAmt','chalk','bold','writable','handleFormattedOutput','replace','9tktuDw','forEach','getHours','__esModule','\x20found','disabled','isUndefined','columnify','util'];a6e=function(){return D;};return a6e();}
1
+ 'use strict';const a6P=a6N;(function(x,N){const g=a6N,c=x();while(!![]){try{const a=-parseInt(g(0xb7))/0x1+-parseInt(g(0xc4))/0x2+-parseInt(g(0xb8))/0x3+-parseInt(g(0xc0))/0x4+parseInt(g(0x9c))/0x5+-parseInt(g(0xab))/0x6*(parseInt(g(0xd9))/0x7)+parseInt(g(0xce))/0x8*(parseInt(g(0xa5))/0x9);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a6x,0xb7e77));function a6x(){const B=['updatedat','printResponse','lodash','disabled','printAsTable','59862RIQeOX','3665547vdJetT','clone','isArrayLike','getSeconds','map','getMonth','isBoolean','handleFormattedOutput','4216348okHHGM','toLowerCase','\x20(HTTP\x20status:\x20','log','293750TukeAP','inspect','getFullYear','stringify','getOwnPropertyDescriptor','isEmpty','format','util','yml','includes','2632xpuDpG','defineProperty','call','js-yaml','isUndefined','default','prototype','\x20found','No\x20','forEach','handleYamlOutput','7SOmJXr','4582935XYJoda','isObjectLike','toString','create','__importDefault','__esModule','keys','handleJsonOutput','json','77913BABAie','consoleFormat','columnify','__createBinding','__setModuleDefault','chalk','3172776XAcEQA','writable','replace','getMinutes','The\x20request\x20was\x20completed\x20successfully','safeDump','bold'];a6x=function(){return B;};return a6x();}var __createBinding=this&&this[a6P(0xa8)]||(Object[a6P(0x9f)]?function(x,N,c,a){const n=a6P;if(a===undefined)a=c;var J=Object[n(0xc8)](N,c);(!J||('get'in J?!N[n(0xa1)]:J[n(0xac)]||J['configurable']))&&(J={'enumerable':!![],'get':function(){return N[c];}}),Object[n(0xcf)](x,a,J);}:function(x,N,c,a){if(a===undefined)a=c;x[a]=N[c];}),__setModuleDefault=this&&this[a6P(0xa9)]||(Object[a6P(0x9f)]?function(x,N){const Q=a6P;Object[Q(0xcf)](x,'default',{'enumerable':!![],'value':N});}:function(x,N){const k=a6P;x[k(0xd3)]=N;}),__importStar=this&&this['__importStar']||function(x){const b=a6P;if(x&&x['__esModule'])return x;var N={};if(x!=null){for(var c in x)if(c!==b(0xd3)&&Object[b(0xd4)]['hasOwnProperty'][b(0xd0)](x,c))__createBinding(N,x,c);}return __setModuleDefault(N,x),N;},__importDefault=this&&this[a6P(0xa0)]||function(x){const F=a6P;return x&&x[F(0xa1)]?x:{'default':x};};Object[a6P(0xcf)](exports,a6P(0xa1),{'value':!![]}),exports[a6P(0xb3)]=exports[a6P(0xbf)]=exports['handleYamlOutput']=exports[a6P(0xa3)]=exports[a6P(0xa6)]=exports[a6P(0xb6)]=void 0x0;const chalk_1=__importDefault(require(a6P(0xaa))),_=__importStar(require(a6P(0xb4))),util=__importStar(require(a6P(0xcb))),yaml=require(a6P(0xd1)),columnify=require(a6P(0xa7));function printAsTable(x,N,c,a=![],J=0x0){const I=a6P;!a&&console[I(0xc3)](''+chalk_1[I(0xd3)][I(0xb1)](N));function p(s){const z=I;return s==='disabled'?s:s[z(0xad)](z(0xb5),'');}function e(s,q){const j=I;function d(A){const w=a6N,l=new Date(A);return l['getDate']()+'/'+l[w(0xbd)]()+'/'+l[w(0xc6)]()+'\x0a'+l['getHours']()+':'+l[w(0xae)]()+':'+l[w(0xbb)]();}const M=['createdat',j(0xb2)];if(M[j(0xcd)](q[j(0xc1)]())&&_['isFinite'](s)&&s[j(0x9e)]()['length']===0xd)return d(Number(s));if(_[j(0xbe)](s)){if(q!==j(0xb5)&&q['includes']('disabled'))return s?'x':'✔';return s?'✔':'x';}if(_[j(0x9d)](s))return util[j(0xc5)](s,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return s;}if(_[I(0xba)](x)){x['length']===0x0&&console[I(0xc3)](I(0xd6)+N[I(0xc1)]()+I(0xd5));const s=x[I(0xbc)]((M,A)=>{const K=I,Z={'i':A+J};return Object[K(0xa2)](M)[K(0xd7)](V=>{const m=K;(_[m(0xd2)](c)||c['includes'](V[m(0xc1)]()))&&_['set'](Z,p(V),e(M[V],V));}),Z;}),q=_[I(0xb9)](Object[I(0xa2)]((s===null||s===void 0x0?void 0x0:s[0x0])||[]))['sort']((M,A)=>{const l=Z=>Z!=='i'?Z!=='internalId'?0x0:0x1:0x2;return l(A)-l(M);}),d={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!a,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':q};console['log'](columnify(s,d));}else console['log'](x);}exports['printAsTable']=printAsTable;function consoleFormat(x,N){const S=a6P;if(_[S(0xc9)](x)){const c=N?S(0xc2)+N+')':'';return chalk_1[S(0xd3)]['green'](S(0xaf))+c;}if(!_[S(0x9d)](x))return x===null||x===void 0x0?void 0x0:x['toString']();return util[S(0xc5)](x,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6P(0xa6)]=consoleFormat;const handleJsonOutput=(x,N)=>{const W=a6P,c=x===W(0xa4);if(c)console[W(0xc3)](JSON[W(0xc7)](N,null,'\x20'));};exports[a6P(0xa3)]=handleJsonOutput;const handleYamlOutput=(x,N)=>{const L=a6P,c=x==='yaml'||x===L(0xcc);if(c)console[L(0xc3)](yaml[L(0xb0)](N));};exports[a6P(0xd8)]=handleYamlOutput;const handleFormattedOutput=(x,N)=>{const v=a6P,c=x===v(0xca);if(c)console[v(0xc3)](consoleFormat(N));};function a6N(x,N){const c=a6x();return a6N=function(a,J){a=a-0x9c;let p=c[a];return p;},a6N(x,N);}exports['handleFormattedOutput']=handleFormattedOutput;const printResponse=(x,N)=>{const h=a6P;(0x0,exports['handleJsonOutput'])(x,N),(0x0,exports['handleYamlOutput'])(x,N),(0x0,exports[h(0xbf)])(x,N);};exports['printResponse']=printResponse;
@@ -1 +1 @@
1
- 'use strict';function a7e(){const e5=['format','toLocaleDateString','length','getAsciiChart','green','repeat','2-digit','\x20\x20\x20','round','offset','defineProperty','map','push','floor','grey','6vcjuTg','8DJnQNG','__esModule','56994wzLvRb','h24','8579774jqCXtU','min','red','undefined','abs','join','padding','3307974sPVXCs','458245XaksXA','2598036xAZkcC','height','__importDefault','1402792AyCRmL','slice','chalk','default','isArray','unit','max','9374508xELfpl','colors','downSampleData'];a7e=function(){return e5;};return a7e();}const a7r=a7o;(function(e,o){const K=a7o,h=e();while(!![]){try{const p=parseInt(K(0x1c0))/0x1*(parseInt(K(0x1bd))/0x2)+parseInt(K(0x1cb))/0x3+-parseInt(K(0x1be))/0x4*(parseInt(K(0x1ca))/0x5)+-parseInt(K(0x1c9))/0x6+parseInt(K(0x1c2))/0x7+parseInt(K(0x1ce))/0x8+-parseInt(K(0x1d5))/0x9;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a7e,0xa191a));var __importDefault=this&&this[a7r(0x1cd)]||function(e){const B=a7r;return e&&e[B(0x1bf)]?e:{'default':e};};Object[a7r(0x1b8)](exports,a7r(0x1bf),{'value':!![]}),exports[a7r(0x1d7)]=exports[a7r(0x1db)]=void 0x0;const chalk_1=__importDefault(require(a7r(0x1d0))),colored=(e,o)=>{const e0=a7r;return o===undefined?e:chalk_1[e0(0x1d1)][o](e);},getAsciiChart=(e,o={})=>{const e1=a7r,h=Array[e1(0x1d2)](e[0x0])?e:[e];let p=typeof o[e1(0x1c3)]!=='undefined'?o[e1(0x1c3)]:h[0x0][0x0],Y=typeof o[e1(0x1d4)]!=='undefined'?o[e1(0x1d4)]:h[0x0][0x0];for(let a=0x0;a<h[e1(0x1da)];a++){for(let z=0x0;z<h[a][e1(0x1da)];z++){p=Math['min'](p,h[a][z]),Y=Math[e1(0x1d4)](Y,h[a][z]);}}let q=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],J=Math['abs'](Y-p),v=typeof o[e1(0x1b7)]!==e1(0x1c5)?o[e1(0x1b7)]:0x3,s=typeof o['padding']!==e1(0x1c5)?o[e1(0x1c8)]:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',I=typeof o['height']!==e1(0x1c5)?o[e1(0x1cc)]:J,Z=typeof o['colors']!==e1(0x1c5)?o[e1(0x1d6)]:['blue',e1(0x1c4),e1(0x1b2),e1(0x1bc),'black'],k=J!==0x0?I/J:0x1,L=Math['round'](p*k),F=Math[e1(0x1b6)](Y*k),W=Math[e1(0x1c6)](F-L),N=0x0;for(let H=0x0;H<h[e1(0x1da)];H++){N=Math['max'](N,h[H][e1(0x1da)]);}N=N+v;let g=typeof o['symbols']!==e1(0x1c5)?o['symbols']:q,w=o['format']!==undefined?o[e1(0x1d8)]:function(P){const e2=e1;return(s+P['toFixed'](0x2)+o[e2(0x1d3)])[e2(0x1cf)](-s[e2(0x1da)]);},C=new Array(W+0x1);for(let P=0x0;P<=W;P++){C[P]=new Array(N);for(let V=0x0;V<N;V++){C[P][V]='\x20';}}for(let u=L;u<=F;++u){const c=w(W>0x0?Y-(u-L)*J/W:u,u-L);C[u-L][Math[e1(0x1d4)](v-c[e1(0x1da)],0x0)]=c,C[u-L][v-0x1]=u==0x0?g[0x0]:g[0x1];}for(let n=0x0;n<h[e1(0x1da)];n++){let d=Z[n%Z['length']],Q=Math[e1(0x1b6)](h[n][0x0]*k)-L;C[W-Q][v-0x1]=colored(g[0x0],d);for(let D=0x0;D<h[n][e1(0x1da)]-0x1;D++){let f=Math[e1(0x1b6)](h[n][D+0x0]*k)-L,R=Math['round'](h[n][D+0x1]*k)-L;if(f==R)C[W-f][D+v]=colored(g[0x4],d);else{C[W-R][D+v]=colored(f>R?g[0x5]:g[0x6],d),C[W-f][D+v]=colored(f>R?g[0x7]:g[0x8],d);let t=Math[e1(0x1c3)](f,R),G=Math[e1(0x1d4)](f,R);for(let S=t+0x1;S<G;S++){C[W-S][D+v]=colored(g[0x9],d);}}}}const {startTs:l,endTs:b}=o;if(l||b){const X=E=>{const e3=e1;if(!E)return e3(0x1b5);const A=E[e3(0x1d9)](undefined,{'day':'2-digit','month':'2-digit','year':e3(0x1b4)}),M=E['toLocaleTimeString'](undefined,{'hourCycle':e3(0x1c1)});return A+'\x20'+M;},m=X(b),U=X(l),T=s[e1(0x1cf)](0x0,Math[e1(0x1d4)](0x2,s['length']-U[e1(0x1da)]/0x2+0x1)),O='\x20'[e1(0x1b3)](Math[e1(0x1d4)](N-(s[e1(0x1da)]+m['length']/0x2),0x1));C['push']([''+T+U+O+m]),C[e1(0x1ba)]([]);}return C[e1(0x1b9)](E=>E[e1(0x1c7)](''))[e1(0x1c7)]('\x0a');};exports[a7r(0x1db)]=getAsciiChart;const downSampleData=(e,o)=>{const e4=a7r,h=e[e4(0x1da)];if(o>=h||o===0x0)return e;const p=[];let Y=0x0;const q=(h-0x2)/(o-0x2);let J=0x0,v,s,I,Z;p[Y++]=e[J];for(var k=0x0;k<o-0x2;k++){let w=0x0,C=0x0,x=Math['floor']((k+0x1)*q)+0x1,l=Math[e4(0x1bb)]((k+0x2)*q)+0x1;l=l<h?l:h;var L=l-x;for(;x<l;x++){w+=e[x][0x0],C+=e[x][0x1];}w/=L,C/=L;var F=Math['floor'](k*q)+0x1,W=Math['floor']((k+0x1)*q)+0x1,N=e[J][0x0],g=e[J][0x1];s=I=-0x1;for(;F<W;F++){I=Math['abs']((N-w)*(e[F][0x1]-g)-(N-e[F][0x0])*(C-g))*0.5,I>s&&(s=I,v=e[F],Z=F);}p[Y++]=v,J=Z;}return p[Y++]=e[h-0x1],p;};function a7o(e,o){const h=a7e();return a7o=function(p,Y){p=p-0x1b2;let q=h[p];return q;},a7o(e,o);}exports[a7r(0x1d7)]=downSampleData;
1
+ 'use strict';const a7C=a7N;(function(x,N){const y=a7N,c=x();while(!![]){try{const a=parseInt(y(0x174))/0x1*(parseInt(y(0x151))/0x2)+parseInt(y(0x154))/0x3+-parseInt(y(0x168))/0x4*(-parseInt(y(0x155))/0x5)+-parseInt(y(0x158))/0x6*(-parseInt(y(0x16a))/0x7)+parseInt(y(0x150))/0x8*(-parseInt(y(0x15f))/0x9)+parseInt(y(0x167))/0xa+-parseInt(y(0x175))/0xb;if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a7x,0xcd2e6));function a7N(x,N){const c=a7x();return a7N=function(a,J){a=a-0x14a;let p=c[a];return p;},a7N(x,N);}var __importDefault=this&&this['__importDefault']||function(x){return x&&x['__esModule']?x:{'default':x};};Object['defineProperty'](exports,a7C(0x15b),{'value':!![]}),exports['downSampleData']=exports['getAsciiChart']=void 0x0;function a7x(){const x3=['downSampleData','182IHzlZg','green','blue','symbols','h24','unit','colors','toLocaleDateString','min','grey','1rmDdRt','32394549QNjKSO','chalk','offset','max','isArray','length','height','8yMPAJt','2594122ZeeptS','push','red','3903285xhhblc','10pGiShB','\x20\x20\x20','black','210084IreZFn','default','2-digit','__esModule','join','round','getAsciiChart','6961869XEAHUT','undefined','toFixed','map','padding','floor','abs','format','2175200ukuZvC','1665764uiOnub'];a7x=function(){return x3;};return a7x();}const chalk_1=__importDefault(require(a7C(0x14a))),colored=(x,N)=>{const T=a7C;return N===undefined?x:chalk_1[T(0x159)][N](x);},getAsciiChart=(N,c={})=>{const O=a7C,a=Array[O(0x14d)](N[0x0])?N:[N];let J=typeof c[O(0x172)]!=='undefined'?c['min']:a[0x0][0x0],p=typeof c['max']!==O(0x160)?c[O(0x14c)]:a[0x0][0x0];for(let I=0x0;I<a[O(0x14e)];I++){for(let z=0x0;z<a[I][O(0x14e)];z++){J=Math[O(0x172)](J,a[I][z]),p=Math[O(0x14c)](p,a[I][z]);}}let e=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],s=Math[O(0x165)](p-J),q=typeof c[O(0x14b)]!==O(0x160)?c[O(0x14b)]:0x3,d=typeof c[O(0x163)]!=='undefined'?c[O(0x163)]:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',M=typeof c[O(0x14f)]!==O(0x160)?c[O(0x14f)]:s,A=typeof c['colors']!==O(0x160)?c[O(0x170)]:[O(0x16c),O(0x153),O(0x16b),O(0x173),O(0x157)],l=s!==0x0?M/s:0x1,Z=Math[O(0x15d)](J*l),V=Math['round'](p*l),g=Math[O(0x165)](V-Z),P=0x0;for(let w=0x0;w<a[O(0x14e)];w++){P=Math['max'](P,a[w][O(0x14e)]);}P=P+q;let n=typeof c['symbols']!==O(0x160)?c[O(0x16d)]:e,Q=c[O(0x166)]!==undefined?c[O(0x166)]:function(K){const x0=O;return(d+K[x0(0x161)](0x2)+c[x0(0x16f)])['slice'](-d[x0(0x14e)]);},k=new Array(g+0x1);for(let K=0x0;K<=g;K++){k[K]=new Array(P);for(let m=0x0;m<P;m++){k[K][m]='\x20';}}for(let S=Z;S<=V;++S){const W=Q(g>0x0?p-(S-Z)*s/g:S,S-Z);k[S-Z][Math['max'](q-W[O(0x14e)],0x0)]=W,k[S-Z][q-0x1]=S==0x0?n[0x0]:n[0x1];}for(let L=0x0;L<a[O(0x14e)];L++){let v=A[L%A['length']],h=Math[O(0x15d)](a[L][0x0]*l)-Z;k[g-h][q-0x1]=colored(n[0x0],v);for(let B=0x0;B<a[L][O(0x14e)]-0x1;B++){let o=Math[O(0x15d)](a[L][B+0x0]*l)-Z,G=Math['round'](a[L][B+0x1]*l)-Z;if(o==G)k[g-o][B+q]=colored(n[0x4],v);else{k[g-G][B+q]=colored(o>G?n[0x5]:n[0x6],v),k[g-o][B+q]=colored(o>G?n[0x7]:n[0x8],v);let E=Math['min'](o,G),u=Math['max'](o,G);for(let X=E+0x1;X<u;X++){k[g-X][B+q]=colored(n[0x9],v);}}}}const {startTs:b,endTs:F}=c;if(b||F){const R=D=>{const x1=O;if(!D)return x1(0x156);const r=D[x1(0x171)](undefined,{'day':x1(0x15a),'month':'2-digit','year':x1(0x15a)}),U=D['toLocaleTimeString'](undefined,{'hourCycle':x1(0x16e)});return r+'\x20'+U;},t=R(F),f=R(b),Y=d['slice'](0x0,Math[O(0x14c)](0x2,d[O(0x14e)]-f[O(0x14e)]/0x2+0x1)),H='\x20'['repeat'](Math[O(0x14c)](P-(d[O(0x14e)]+t[O(0x14e)]/0x2),0x1));k['push']([''+Y+f+H+t]),k[O(0x152)]([]);}return k[O(0x162)](D=>D[O(0x15c)](''))[O(0x15c)]('\x0a');};exports[a7C(0x15e)]=getAsciiChart;const downSampleData=(x,N)=>{const x2=a7C,c=x[x2(0x14e)];if(N>=c||N===0x0)return x;const J=[];let p=0x0;const e=(c-0x2)/(N-0x2);let s=0x0,q,d,M,A;J[p++]=x[s];for(var l=0x0;l<N-0x2;l++){let Q=0x0,k=0x0,b=Math[x2(0x164)]((l+0x1)*e)+0x1,F=Math[x2(0x164)]((l+0x2)*e)+0x1;F=F<c?F:c;var Z=F-b;for(;b<F;b++){Q+=x[b][0x0],k+=x[b][0x1];}Q/=Z,k/=Z;var V=Math[x2(0x164)](l*e)+0x1,g=Math['floor']((l+0x1)*e)+0x1,P=x[s][0x0],n=x[s][0x1];d=M=-0x1;for(;V<g;V++){M=Math[x2(0x165)]((P-Q)*(x[V][0x1]-n)-(P-x[V][0x0])*(k-n))*0.5,M>d&&(d=M,q=x[V],A=V);}J[p++]=q,s=A;}return J[p++]=x[c-0x1],J;};exports[a7C(0x169)]=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a8w=a8o;(function(e,o){const g=a8o,h=e();while(!![]){try{const p=-parseInt(g(0x13c))/0x1+-parseInt(g(0x9d))/0x2+parseInt(g(0xf9))/0x3+parseInt(g(0x16b))/0x4*(parseInt(g(0xac))/0x5)+parseInt(g(0x161))/0x6*(-parseInt(g(0x129))/0x7)+parseInt(g(0x65))/0x8+-parseInt(g(0xdc))/0x9*(-parseInt(g(0x12a))/0xa);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a8e,0x57cb5));var __createBinding=this&&this[a8w(0x8d)]||(Object[a8w(0xb3)]?function(e,h,p,Y){const C=a8w;if(Y===undefined)Y=p;var q=Object[C(0xe8)](h,p);(!q||('get'in q?!h[C(0xf3)]:q[C(0xef)]||q[C(0xb9)]))&&(q={'enumerable':!![],'get':function(){return h[p];}}),Object[C(0x77)](e,Y,q);}:function(e,h,p,Y){if(Y===undefined)Y=p;e[Y]=h[p];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a8w(0xb3)]?function(e,h){Object['defineProperty'](e,'default',{'enumerable':!![],'value':h});}:function(e,h){const x=a8w;e[x(0x120)]=h;}),__importStar=this&&this[a8w(0x69)]||function(e){const l=a8w;if(e&&e[l(0xf3)])return e;var o={};if(e!=null){for(var h in e)if(h!==l(0x120)&&Object[l(0xc0)][l(0x138)][l(0xcd)](e,h))__createBinding(o,e,h);}return __setModuleDefault(o,e),o;},__awaiter=this&&this[a8w(0x13e)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const H=a8o;function v(Z){const b=a8o;try{I(p[b(0xbb)](Z));}catch(k){J(k);}}function s(Z){const a=a8o;try{I(p[a(0xe4)](Z));}catch(k){J(k);}}function I(Z){const z=a8o;Z[z(0x102)]?q(Z[z(0x16a)]):Y(Z['value'])[z(0x101)](v,s);}I((p=p[H(0x7e)](e,o||[]))['next']());});},__importDefault=this&&this[a8w(0x14b)]||function(e){const P=a8w;return e&&e[P(0xf3)]?e:{'default':e};};function a8o(e,o){const h=a8e();return a8o=function(p,Y){p=p-0x64;let q=h[p];return q;},a8o(e,o);}Object[a8w(0x77)](exports,a8w(0xf3),{'value':!![]}),exports[a8w(0x82)]=void 0x0;const _=__importStar(require(a8w(0xd2))),chalk_1=__importDefault(require('chalk')),fs=__importStar(require('fs')),utils_1=require(a8w(0xcc)),api_helpers_1=require(a8w(0x15d)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require(a8w(0x81)),inquirerSearchList=require(a8w(0x64)),yaml=require(a8w(0x130));var ConfirmChoices;(function(e){const V=a8w;e[V(0x90)]='Yes,\x20send',e[V(0xa5)]='No,\x20repeat',e['EDIT']=V(0xea),e['SAVE']='No,\x20but\x20save\x20as\x20file',e[V(0x16e)]=V(0x148);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(e){const u=a8w;this[u(0x8c)]=e,this[u(0x168)]=0x32,this['editPayload']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const n=u,{editedResult:h}=yield inquirer['prompt']([{'type':n(0xaa),'name':n(0xa8),'message':n(0x150),'default':yaml[n(0xd9)](o)}]);return yaml['safeLoad'](h);}),this[u(0x9b)]=o=>__awaiter(this,void 0x0,void 0x0,function*(){const d=u,h=J=>d(0x15e)+J+d(0x87);function p(){return __awaiter(this,void 0x0,void 0x0,function*(){const j=a8o;return inquirer['prompt']([{'type':j(0x9e),'name':j(0xab),'message':j(0x118),'validate':J=>new RegExp(j(0x134))[j(0x71)](J)?!![]:h(J)}]);});}const {fileName:Y}=yield p(),q=Y['toString']()[d(0x11a)]('.')['pop']();try{switch(q){case d(0x145):(0x0,utils_1[d(0x103)])('Configuration\x20file\x20written\x20to\x20'+Y);return fs['writeFileSync'](Y,JSON[d(0x67)](o,null,'\x20\x20'));case d(0xa6):case'yml':(0x0,utils_1[d(0x103)])(d(0x16d)+Y);return fs[d(0xf6)](Y,yaml['safeDump'](o));default:(0x0,utils_1[d(0xfa)])(h(q));}}catch(J){(0x0,utils_1[d(0xfa)])(d(0x8f)+J['message']);}return undefined;}),this[u(0x12c)]=(o,h)=>p=>{const Q=u,Y=typeof p==='string'?p[Q(0x106)]():p;return h===![]&&Y===Q(0x94)?'':Y;},this['validate']=(o,h,p)=>Y=>{const D=u;if(this[D(0xec)]===!![])return!![];const q=[];if(Y===''||Y===D(0x94)){if(h!==![])q[D(0xda)](D(0x76));else return!![];}o['type']===D(0x79)&&!_[D(0xa0)](o[D(0xd8)])&&q[D(0xda)](new RegExp(o[D(0xd8)])['test'](Y)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+o['pattern']+'\x27');o[D(0xb5)]===D(0x79)&&!_[D(0xa0)](o[D(0x13a)])&&q[D(0xda)](Y['length']>=o[D(0x13a)]?!![]:'must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20'+o[D(0x13a)]+D(0xe2)+Y[D(0x167)]+D(0x72));o[D(0xb5)]===D(0x79)&&!_[D(0xa0)](o[D(0x11e)])&&q[D(0xda)](Y['length']<=o['maxLength']?!![]:D(0x128)+o[D(0x11e)]+D(0xe2)+Y['length']+D(0x72));p&&Number[D(0xb1)](parseInt(Y,0xa))&&q[D(0xda)](D(0xc4)+Y);o[D(0xb5)]===D(0x109)&&!_[D(0xa0)](o['minimum'])&&q['push'](Y>=o[D(0x155)]?!![]:D(0x139)+o[D(0x155)]);o[D(0xb5)]===D(0x109)&&!_['isUndefined'](o['maximum'])&&q[D(0xda)](Y<=o[D(0x15c)]?!![]:D(0x12b)+o[D(0x15c)]);if(o['type']===D(0x14f)){const s=(0x0,utils_1[D(0x10b)])(Y);q[D(0xda)](s===![]||_[D(0xcb)](s)?D(0x166):!![]);}const J=q['filter'](I=>I!==!![]),v=(o===null||o===void 0x0?void 0x0:o[D(0x15f)])?'\x0a'+chalk_1[D(0x120)]['red']('>>')+D(0x6a)+chalk_1['default'][D(0x104)](JSON['stringify'](o[D(0x15f)])):'';return J[D(0x167)]>0x0?J[D(0xde)](chalk_1[D(0x120)][D(0x117)](D(0xb0)))+v:!![];},this[u(0xc3)]=(o,h,p)=>{const f=u,Y=o[o[f(0x167)]-0x1];function q(){const i=f;return o['slice'](0x0,-0x1)['map'](s=>s['charAt'](0x0)[i(0xad)]()+s['slice'](0x1))['join']('>');}const J=o[f(0x167)]>0x1?chalk_1['default'][f(0x14a)][f(0x104)](q())+':\x20':'',v=p?'\x20('+chalk_1[f(0x120)][f(0x100)](p)+')':'';return chalk_1[f(0x120)][f(0xc9)](''+J+h+'\x20'+chalk_1[f(0x120)][f(0xf0)]['greenBright'](Y)+v+'?');},this[u(0xcf)]=(o,h,p)=>__awaiter(this,void 0x0,void 0x0,function*(){const R=u;if(h['length']<0x1){const J=p?R(0x154)+p:'found';throw new Error(R(0x84)+o+'\x20'+J+'.');}const Y=R(0xb6)+o+R(0x153),q=h[R(0x167)]>0x4?R(0x10c):R(0xf8);return(yield inquirer[R(0x135)]([{'type':q,'name':'name','message':Y,'choices':h}]))[R(0x158)];}),this[u(0x14c)]=(o,h,p)=>__awaiter(this,void 0x0,void 0x0,function*(){const t=u,{elements:Y,nextCursor:q}=yield h();if(Y[t(0x167)]<0x1){const s=p?t(0x154)+p:'found';throw new Error('No\x20'+o+'\x20'+s+'.');}const J=t(0xb6)+o+t(0x153);if(q!==undefined){const I=({nextPageCursor:Z})=>__awaiter(this,void 0x0,void 0x0,function*(){const G=t,k=yield h(Z);return{'elements':k[G(0xff)],'nextPageCursor':k['nextCursor']};});return(yield inquirer['prompt']([{'type':'pagination-prompt','name':t(0x158),'message':J,'choices':Y,'nextPageCursor':q,'loadMore':I}]))[t(0x158)];}const v=Y[t(0x167)]>0x4?t(0x10c):t(0xf8);return(yield inquirer[t(0x135)]([{'type':v,'name':t(0x158),'message':J,'choices':Y}]))[t(0x158)];}),this[u(0x6b)]=(o,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=u,p=''+(h?'('+chalk_1[y(0x120)][y(0x100)](h)+')\x20':''),Y=y(0x137)+chalk_1[y(0x120)][y(0x132)](o)+'\x20'+p+y(0xae),q=this[y(0x126)]({'type':y(0x79),'required':!![]});return(yield inquirer['prompt']([{'type':y(0x9e),'name':y(0x158),'message':Y,'validate':q}]))[y(0x158)];}),this[u(0xd6)]=o=>__awaiter(this,void 0x0,void 0x0,function*(){const S=u;return(yield inquirer[S(0x135)]([{'type':'confirm','name':S(0x158),'message':o,'default':!![]}]))['name'];}),this['askForService']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const m=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const X=a8o;var q;const J=yield this[X(0x8c)][X(0xf8)]['services']({'parameters':{'projectId':p},'options':{'per_page':this[X(0x168)],'cursor':Y}}),v=J['data'][X(0x75)][X(0x9c)](s=>s['id']);return{'elements':v,'nextCursor':(q=J[X(0x80)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[m(0x122)](m(0x133),h,o);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const U=a8o;var p;const Y=yield this[U(0x8c)][U(0xf8)][U(0x169)]({'options':{'per_page':this[U(0x168)],'cursor':h}}),q=Y[U(0x6c)]['templates']['map'](J=>J['id']);return{'elements':q,'nextCursor':(p=Y[U(0x80)])===null||p===void 0x0?void 0x0:p['cursor']};});return this[T(0x14c)](T(0xeb),o);}),this[u(0x163)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const O=a8o;var p,Y,q;const J=yield this[O(0x8c)]['list'][O(0x123)]({'options':{'per_page':this[O(0x168)],'cursor':h}}),v=(Y=(p=J[O(0x6c)]['tags'])===null||p===void 0x0?void 0x0:p[O(0x9c)](s=>s['id']))!==null&&Y!==void 0x0?Y:[];return{'elements':v,'nextCursor':(q=J[O(0x80)])===null||q===void 0x0?void 0x0:q[O(0x152)]};});return this[E(0x14c)](E(0x171),o);}),this[u(0x170)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const M=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const A=a8o;var p,Y,q;const J=yield this['apiClient'][A(0xf8)][A(0xb8)][A(0xdb)]({'options':{'per_page':this[A(0x168)],'cursor':h}}),v=(Y=(p=J[A(0x6c)][A(0xdb)])===null||p===void 0x0?void 0x0:p['map'](s=>s[A(0x158)]))!==null&&Y!==void 0x0?Y:[];return{'elements':v,'nextCursor':(q=J['pagination'])===null||q===void 0x0?void 0x0:q[A(0x152)]};});return this['askForResourcePaginated'](M(0x96),o);}),this[u(0xce)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=u;if(_[K(0xa0)](o))throw new Error(K(0x107));const h=p=>__awaiter(this,void 0x0,void 0x0,function*(){const r=K;var Y;let q=this[r(0x168)];const J=yield this[r(0x8c)][r(0xf8)][r(0x113)]({'parameters':{'templateId':o},'options':{'per_page':q,'cursor':p}}),v=J[r(0x6c)]['templateRuns'][r(0x9c)](s=>s['id']+r(0xca)+s[r(0x7d)]+')');return{'elements':v,'nextCursor':(Y=J[r(0x80)])===null||Y===void 0x0?void 0x0:Y[r(0x152)]};});return this[K(0x14c)](K(0x10d),h)['then'](p=>p[K(0x11a)]('\x20')[0x0]);}),this['askForLogSink']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e0=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const B=a8o;var p;let Y=this[B(0x168)];const q=yield this[B(0x8c)]['list'][B(0x7a)]({'options':{'per_page':Y,'cursor':h}}),J=q[B(0x6c)]['logSinks']['map'](v=>v['id']);return{'elements':J,'nextCursor':(p=q[B(0x80)])===null||p===void 0x0?void 0x0:p[B(0x152)]};});return this['askForResourcePaginated'](e0(0x74),o);}),this[u(0xe9)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e2=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const e1=a8o;var q;const J=yield this[e1(0x8c)]['list'][e1(0x95)]({'parameters':{'projectId':p},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':Y}}),v=J[e1(0x6c)][e1(0x95)][e1(0x9c)](s=>s['id']);return{'elements':v,'nextCursor':(q=J[e1(0x80)])===null||q===void 0x0?void 0x0:q[e1(0x152)]};});return this['askForProjectScopedResourcePaginated'](e2(0x157),h,o);}),this[u(0xf4)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e4=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const e3=a8o;var q;const J=yield this[e3(0x8c)][e3(0xf8)][e3(0xa1)]({'parameters':{'projectId':p},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':Y}}),v=J[e3(0x6c)]['jobs'][e3(0x9c)](s=>s['id']);return{'elements':v,'nextCursor':(q=J[e3(0x80)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[e4(0x122)]('job',h,o);}),this[u(0x143)]=(o,h,p=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e5=u,Y=e5(0x121),q=J=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const e6=e5;var s;const I=yield this[e6(0x8c)]['get'][e6(0x7c)][e6(0x172)]({'parameters':{'projectId':J,'jobId':o},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}}),Z=I[e6(0x6c)][e6(0x172)][e6(0x9c)](k=>k['id']+e6(0xca)+k[e6(0xe1)]+')');return p&&Z[e6(0xa7)](Y),{'elements':Z,'nextCursor':(s=I[e6(0x80)])===null||s===void 0x0?void 0x0:s['cursor']};});return this[e5(0x122)](e5(0x8a),q,h,e5(0x108)+o+'\x27')[e5(0x101)](J=>{const e7=e5,v=J[e7(0x11a)]('\x20')[0x0];if(v===Y)return undefined;return v;});}),this[u(0x13b)]=(o,h,p,Y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e9=u,q='all-builds';if(p!==undefined){const J=v=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const e8=a8o;var I;const Z=yield this[e8(0x8c)][e8(0x11d)]['job'][e8(0x9a)]({'parameters':{'projectId':v,'jobId':p},'options':{'per_page':this[e8(0x168)],'cursor':s}}),k=Z[e8(0x6c)][e8(0x9a)][e8(0x9c)](L=>L['id']+'\x20(startedAt:\x20'+L[e8(0x7d)]+')');return Y&&k[e8(0xa7)](q),{'elements':k,'nextCursor':(I=Z[e8(0x80)])===null||I===void 0x0?void 0x0:I[e8(0x152)]};});return this[e9(0x122)]('job\x20builds',J,o,e9(0x108)+p+'\x27')[e9(0x101)](v=>{const ee=e9,s=v[ee(0x11a)]('\x20')[0x0];if(s===q)return undefined;return s;});}if(h!==undefined){const v=s=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const eo=e9;var Z;const k=yield this[eo(0x8c)][eo(0x11d)][eo(0x133)][eo(0x9a)]({'parameters':{'projectId':s,'serviceId':h},'options':{'per_page':this[eo(0x168)],'cursor':I}}),L=k[eo(0x6c)]['builds']['map'](F=>F['id']+eo(0xca)+F[eo(0x7d)]+')');if(Y)L[eo(0xa7)](q);return{'elements':L,'nextCursor':(Z=k[eo(0x80)])===null||Z===void 0x0?void 0x0:Z[eo(0x152)]};});return this['askForProjectScopedResourcePaginated'](e9(0x66),v,o,e9(0x149)+p+'\x27')[e9(0x101)](s=>{const eh=e9,I=s[eh(0x11a)]('\x20')[0x0];if(I===q)return undefined;return I;});}throw new Error('No\x20builds\x20found');}),this[u(0xd1)]=(o,h,p,Y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ep=u,q=ep(0x12d);if(p!==undefined){const J=v=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const eY=ep;var I,Z;const k=yield this[eY(0x8c)][eY(0x11d)][eY(0x7c)][eY(0xc5)]({'parameters':{'projectId':v,'jobId':p},'options':{'per_page':this[eY(0x168)],'cursor':s}}),L=(I=k[eY(0x6c)][eY(0xc5)])!==null&&I!==void 0x0?I:[],F=L===null||L===void 0x0?void 0x0:L[eY(0x9c)](W=>W[eY(0x158)]+eY(0xca)+W[eY(0x7d)]+')');return Y&&F[eY(0xa7)](q),{'elements':F,'nextCursor':(Z=k[eY(0x80)])===null||Z===void 0x0?void 0x0:Z[eY(0x152)]};});return this['askForProjectScopedResourcePaginated']('job\x20containers',J,o,'job:\x20\x27'+p+'\x27')[ep(0x101)](v=>{const eq=ep,s=v[eq(0x11a)]('\x20')[0x0];if(s===q)return undefined;return s;});}if(h!==undefined){const v=s=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const eJ=ep;var Z,k;const L=yield this[eJ(0x8c)][eJ(0x11d)]['service'][eJ(0xc5)]({'parameters':{'projectId':s,'serviceId':h},'options':{'per_page':this[eJ(0x168)],'cursor':I}}),F=(Z=L['data'][eJ(0xc5)])!==null&&Z!==void 0x0?Z:[],W=F['map'](N=>N[eJ(0x158)]+eJ(0xca)+N[eJ(0x7d)]+')');if(Y)W===null||W===void 0x0?void 0x0:W['unshift'](q);return{'elements':W,'nextCursor':(k=L[eJ(0x80)])===null||k===void 0x0?void 0x0:k[eJ(0x152)]};});return this[ep(0x122)]('service\x20containers',v,o,ep(0x149)+p+'\x27')[ep(0x101)](s=>{const I=s['split']('\x20')[0x0];if(I===q)return undefined;return I;});}throw new Error(ep(0x93));}),this['askForAddon']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const es=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const ev=a8o;var q;const J=yield this[ev(0x8c)]['list'][ev(0x125)]({'parameters':{'projectId':p},'options':{'per_page':this[ev(0x168)],'cursor':Y}});return{'elements':J[ev(0x6c)]['addons']['map'](v=>v['id']),'nextCursor':(q=J[ev(0x80)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[es(0x122)](es(0x119),h,o);}),this[u(0xf2)]=(o,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eZ=u,p=Y=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const eI=a8o;var J;const v=yield this[eI(0x8c)]['get'][eI(0x119)][eI(0xd0)]({'parameters':{'projectId':Y,'addonId':h},'options':{'per_page':this[eI(0x168)],'cursor':q}});return{'elements':v[eI(0x6c)]['backups']['map'](s=>s['id']+'\x20(completedAt:\x20'+(s[eI(0x89)]||'not\x20completed')+')'),'nextCursor':(J=v['pagination'])===null||J===void 0x0?void 0x0:J[eI(0x152)]};});return this[eZ(0x122)](eZ(0xd0),p,o,eZ(0x173)+h+'\x27')[eZ(0x101)](Y=>Y[eZ(0x11a)]('\x20')[0x0]);}),this[u(0x10a)]=(o,h,p)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eL=u,Y=q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const ek=a8o;var v;const s=yield this['apiClient']['get']['addon'][ek(0x142)][ek(0x97)]({'parameters':{'projectId':q,'addonId':h,'backupId':p},'options':{'per_page':this[ek(0x168)],'cursor':J}});return{'elements':s['data']['restores'][ek(0x9c)](I=>I['id']+'\x20(completedAt:\x20'+(I['completedAt']||ek(0xb7))+')'),'nextCursor':(v=s[ek(0x80)])===null||v===void 0x0?void 0x0:v['cursor']};});return this[eL(0x122)](eL(0x91),Y,o,eL(0x173)+h+'\x27')[eL(0x101)](q=>q[eL(0x11a)]('\x20')[0x0]);}),this[u(0x111)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eW=u,h=p=>__awaiter(this,void 0x0,void 0x0,function*(){const eF=a8o;return(yield this[eF(0x8c)][eF(0xf8)][eF(0x70)]({'parameters':{'projectId':p}}))[eF(0x6c)][eF(0x9c)](Y=>Y['id']);});return this[eW(0xe6)](eW(0x9f),h,o);}),this[u(0x10f)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eg=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const eN=a8o;var q;const J=yield this[eN(0x8c)][eN(0xf8)][eN(0x88)]({'parameters':{'projectId':p},'options':{'per_page':this[eN(0x168)],'cursor':Y}});return{'elements':J[eN(0x6c)][eN(0x88)]['map'](v=>v['id']),'nextCursor':(q=J[eN(0x80)])===null||q===void 0x0?void 0x0:q[eN(0x152)]};});return this[eg(0x122)](eg(0xf5),h,o);}),this[u(0xf1)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ew=u,h=yield this[ew(0x8c)]['get']['domain']({'parameters':{'domain':o}}),p=h['data'][ew(0x6e)][ew(0x9c)](q=>q[ew(0x158)]+'\x20(full\x20domain:\x20'+q[ew(0xaf)]+')'),Y=ew(0x11b)+o+')';return this[ew(0xcf)]('subdomain',p,Y)[ew(0x101)](q=>q[ew(0x11a)]('\x20')[0x0]);}),this[u(0x105)]=(o,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eC=u,p=yield this[eC(0x8c)][eC(0xf8)][eC(0x114)][eC(0x16f)]({'parameters':{'domain':o,'subdomain':h}}),Y=p[eC(0x6c)][eC(0x14d)][eC(0x9c)](J=>''+J['uri']),q='domain\x20('+o+'),\x20subdomain\x20('+h+')';return this[eC(0xcf)](eC(0x68),Y,q);}),this['deleteWarningPrompt']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const ex=u;return(yield inquirer[ex(0x135)]([{'type':'confirm','name':'confirmation','message':chalk_1['default'][ex(0x85)](ex(0x124)+(o||'a\x20Northflank\x20resource')+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[ex(0xb4)];}),this[u(0xc8)]=(o,h)=>__awaiter(this,void 0x0,void 0x0,function*(){const el=u;_[el(0xa0)](o['name'])&&(h[el(0x167)]<=0x0?_[el(0x159)](o,el(0x158),el(0x120)):yield(0x0,utils_1[el(0x15b)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const eb=el,{name:p}=yield inquirer['prompt']([{'type':'input','name':eb(0x158),'message':eb(0x83),'default':eb(0x115)}]);if(!o[eb(0xc1)]&&h[eb(0x12f)](Y=>Y[eb(0x158)]===p)){const {c:Y}=yield inquirer['prompt']([{'type':'confirm','name':'c','message':eb(0x112)+p+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(Y===![])throw new Error('Context\x20name\x20already\x20exists.');_[eb(0x159)](o,'override',!![]);}_[eb(0x159)](o,eb(0x158),p);})));if(_[el(0xa0)](o[el(0x15a)])){const p=yield this['tokenPrompt']();_[el(0x159)](o,el(0x15a),p);}return o;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const ea=u,{token:o}=yield inquirer['prompt']([{'type':'password','name':ea(0x15a),'mask':'*','message':ea(0xfd)}]);return o;}),inquirer[u(0x140)]('search-list',inquirerSearchList),inquirer[u(0x140)](u(0x7b),inquirer_pagination_prompt_1[u(0xbc)]);}[a8w(0x13f)](e,o){return __awaiter(this,void 0x0,void 0x0,function*(){const ez=a8o,h=yaml['safeDump'](e),p=_[ez(0xa3)](h[ez(0x11a)]('\x0a')[ez(0x9c)](J=>J['length'])),Y=chalk_1['default'][ez(0x147)]('-'[ez(0x11c)](p)+'\x0a'),{confirm:q}=yield inquirer[ez(0x135)]([{'type':'list','name':'confirm','message':''+chalk_1['default'][ez(0xf0)][ez(0x132)](ez(0x98))+Y+chalk_1[ez(0x120)][ez(0xed)](h)+Y,'choices':Object[ez(0x11f)](ConfirmChoices)}]);switch(q){case ConfirmChoices[ez(0x90)]:return e;case ConfirmChoices['ABORT']:throw new Error(ez(0x16c));case ConfirmChoices[ez(0xa5)]:return this['retrievePayloadViaInteractiveCli'](o);case ConfirmChoices[ez(0x116)]:return this['confirmationPrompt'](yield this[ez(0x12e)](e),o);case ConfirmChoices[ez(0xe3)]:yield this[ez(0x9b)](e);return this[ez(0x13f)](e,o);default:throw new Error(ez(0xfb));}});}['retrievePayloadViaInteractiveCli'](e,o){return __awaiter(this,void 0x0,void 0x0,function*(){const eH=a8o;if((o===null||o===void 0x0?void 0x0:o[eH(0x156)])!==undefined)this[eH(0x156)]=o===null||o===void 0x0?void 0x0:o['resultCache'];this[eH(0x165)]=o===null||o===void 0x0?void 0x0:o[eH(0x146)],this['skipValidation']=o===null||o===void 0x0?void 0x0:o[eH(0xec)];const h={};return yield this['propToType']([],e[eH(0x162)][eH(0xee)],h),this[eH(0x156)]=h,yield this[eH(0x13f)](h,e);});}[a8w(0xbf)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const eP=a8o;let Y;if(o['oneOf']&&!_[eP(0x92)](o,'properties')){if(o['oneOf'][eP(0x167)]>0x1){const {choice:q}=yield inquirer['prompt']([{'type':eP(0xf8),'name':eP(0xa9),'message':'What\x27s\x20the\x20'+(e[e['length']-0x1]||'')+eP(0x86),'choices':o[eP(0xbe)][eP(0x9c)](J=>{const eV=eP;var v;return(v=J[eV(0x14e)])!==null&&v!==void 0x0?v:'??';})}]);Y=yield this[eP(0x8b)](e,o[eP(0xbe)][eP(0x12f)](J=>J[eP(0x14e)]===q),h,p);}else{const J=o['oneOf'][0x0];_[eP(0x159)](J,eP(0x14e),o[eP(0x14e)]),Y=yield this[eP(0x8b)](e,J,h,p);}Y={};}else{if(o[eP(0x131)]&&!_[eP(0x92)](o,eP(0xba))){if(o[eP(0x131)][eP(0x167)]>0x1){const {choice:v}=yield inquirer[eP(0x135)]([{'type':eP(0xf8),'name':eP(0xa9),'message':eP(0x110)+(e[e[eP(0x167)]-0x1]||'')+eP(0x86),'choices':[...o[eP(0x131)][eP(0x9c)](s=>{const eu=eP;var I;return(I=s[eu(0x14e)])!==null&&I!==void 0x0?I:'??';}),eP(0x94)]}]);v!=='don\x27t\x20change'&&(Y=yield this[eP(0x8b)](e,o['anyOf'][eP(0x12f)](s=>s[eP(0x14e)]===v),h,p));}else{const s=o[eP(0x131)][0x0];_[eP(0x159)](s,eP(0x14e),o[eP(0x14e)]),Y=yield this[eP(0x8b)](e,s,h,p);}Y={};}else Y=yield this[eP(0x8b)](e,o,h,p);}return Y;});}[a8w(0x99)](e,o,h,p){var Y;return __awaiter(this,void 0x0,void 0x0,function*(){const ec=a8o;if(p===![]){const {addEntry:v}=yield inquirer[ec(0x135)]([{'type':ec(0x144),'name':ec(0xd5),'message':this[ec(0xc3)](o,ec(0xd3),e===null||e===void 0x0?void 0x0:e[ec(0x14e)]),'default':![]}]);if(!v)return h;}const q=Object[ec(0xa4)]((Y=e===null||e===void 0x0?void 0x0:e[ec(0xba)])!==null&&Y!==void 0x0?Y:[]),J=e['required']||[];if(q[ec(0x167)]>0x0)for(const s of q){const I=o[ec(0x73)](s);if(o['length']>0x0&&!_[ec(0x92)](h,o[ec(0xde)]('.')))_[ec(0x159)](h,o[ec(0xde)]('.'),{});yield this[ec(0xbf)](I,e['properties'][s],h,J[ec(0xe0)](s));}else yield this[ec(0x8b)](o,Object[ec(0x10e)](Object[ec(0x10e)]({},e),{'type':ec(0x14f)}),h,p);return h;});}[a8w(0xb2)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const en=a8o;if(o&&h)return!![];const Y=o?en(0xd3):en(0x6f),{addEntry:q}=yield inquirer['prompt']([{'type':'confirm','name':en(0xd5),'message':this[en(0xc3)](e,Y,o?p:undefined),'default':![]}]);return q;});}[a8w(0x8b)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const ed=a8o;let Y;const q=e[ed(0xde)]('.');switch(o===null||o===void 0x0?void 0x0:o['type']){case ed(0x141):{let J=!![];while(yield this['askArrayEntry'](e,J,p,o===null||o===void 0x0?void 0x0:o['description'])){const v=_[ed(0x11d)](h,q);_[ed(0x151)](h,q),yield this[ed(0x8b)](e,o[ed(0xc7)],h);const s=_['get'](h,q);!_[ed(0xe5)](v)?_[ed(0x159)](h,q,[s]):(v[ed(0xda)](s),_[ed(0x159)](h,q,v)),J=![];}return Y||[];}case ed(0x164):{return Y=yield this[ed(0x99)](o,e,h,p),Y;}case ed(0x14f):Y=(0x0,utils_1[ed(0x10b)])(yield this[ed(0xdf)](e,o,p))||undefined;break;case'string':case ed(0xe7):case ed(0x109):default:Y=yield this[ed(0xdf)](e,o,p,h);break;}return!_[ed(0xa0)](Y)&&_[ed(0x159)](h,q,Y),Y;});}[a8w(0xdf)](e,o,h,p){var Y;return __awaiter(this,void 0x0,void 0x0,function*(){const ej=a8o,q=e[e[ej(0x167)]-0x1],{defaultValue:defaultValue=(Y=o===null||o===void 0x0?void 0x0:o['example'])!==null&&Y!==void 0x0?Y:o===null||o===void 0x0?void 0x0:o[ej(0x120)],choices:choices=o===null||o===void 0x0?void 0x0:o[ej(0xd7)],pagination:J}=yield(0x0,api_helpers_1[ej(0x160)])(q,this[ej(0x8c)],this[ej(0x165)],p,this['pathVars'],e);let v='input';if(!_[ej(0xa0)](choices)&&choices[ej(0x167)]>0x0){if(J!==undefined&&J['nextPageCursor']!==undefined)v=ej(0x7b);else choices[ej(0x167)]>0x4&&typeof choices[0x0]===ej(0x79)?v=ej(0x10c):v=ej(0xf8);}else{if((o===null||o===void 0x0?void 0x0:o[ej(0xb5)])==='boolean')v=ej(0x144);else{if((o===null||o===void 0x0?void 0x0:o[ej(0xb5)])===ej(0x109))v=ej(0x9e);else(o===null||o===void 0x0?void 0x0:o[ej(0xb5)])===ej(0x14f)&&(v=ej(0xaa));}}let s=h!==![]?!_[ej(0x8e)](defaultValue)?defaultValue:JSON[ej(0x67)](defaultValue):_[ej(0xd4)](defaultValue)?defaultValue:ej(0x94);if(choices)s=s[ej(0x136)]();_[ej(0x92)](this[ej(0x156)],e[ej(0xde)]('.'))&&(s=this[ej(0x156)][e[ej(0xde)]('.')]);const I=choices&&h===![]?[ej(0x94),...choices]:choices,Z=(o===null||o===void 0x0?void 0x0:o[ej(0xb5)])===ej(0x109),k=Object[ej(0x10e)]({'type':v,'name':'id','message':this['getQuestionString'](e,o),'choices':I,'default':s,'filter':this[ej(0x12c)](v,h),'validate':this['validate'](o,h,Z)},J),L=(yield inquirer['prompt']([k]))['id'];if(L==='don\x27t\x20change'||L==='')return undefined;if(Z)return parseInt(L,0xa);return L;});}['getQuestionString'](e,o){const eQ=a8w,h=(o===null||o===void 0x0?void 0x0:o[eQ(0xb5)])!=='boolean'?eQ(0xdd):'Should\x20it\x20be';return this[eQ(0xc3)](e,h,o===null||o===void 0x0?void 0x0:o['description']);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const e=o=>__awaiter(this,void 0x0,void 0x0,function*(){const eD=a8o;var h;const p=yield this['apiClient'][eD(0xf8)][eD(0xa2)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':o}}),Y=p[eD(0x6c)][eD(0xa2)][eD(0x9c)](q=>q['id']);return{'elements':Y,'nextCursor':(h=p['pagination'])===null||h===void 0x0?void 0x0:h[eD(0x152)]};});return yield this['askForResourcePaginated']('project',e);});}['askForProjectScopedResource'](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const ef=a8o,Y=h||this[ef(0x8c)][ef(0x127)][ef(0xfe)]();if(_[ef(0xa0)](Y))throw new Error(ef(0x78));const q=yield o(Y);return yield this[ef(0xcf)](e,q,(p?p+ef(0x13d):'')+ef(0xc2)+Y+'\x27');});}[a8w(0x122)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const ei=a8o,Y=h||this['apiClient'][ei(0x127)][ei(0xfe)]();if(_[ei(0xa0)](Y))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const q=yield o(Y);return yield this[ei(0x14c)](e,q,(p?p+ei(0x13d):'')+ei(0xc2)+Y+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const et=a8o,e=o=>__awaiter(this,void 0x0,void 0x0,function*(){const eR=a8o;var h;const p=yield this[eR(0x8c)]['list'][eR(0xfc)]({'options':{'per_page':this[eR(0x168)],'cursor':o}});return{'elements':p[eR(0x6c)][eR(0xfc)]['map'](Y=>Y['name']),'nextCursor':(h=p[eR(0x80)])===null||h===void 0x0?void 0x0:h['cursor']};});return this[et(0x14c)](et(0xc6),e);});}[a8w(0x6d)](){return __awaiter(this,void 0x0,void 0x0,function*(){const e=o=>__awaiter(this,void 0x0,void 0x0,function*(){const eG=a8o;var h;const p=yield this[eG(0x8c)][eG(0xf8)][eG(0xf7)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':o}});return{'elements':p[eG(0x6c)][eG(0xbd)]['map'](Y=>Y['id']),'nextCursor':(h=p[eG(0x80)])===null||h===void 0x0?void 0x0:h[eG(0x152)]};});return this['askForResourcePaginated']('credentials',e);});}[a8w(0x7f)](e){this['pathVars']=e;}}function a8e(){const ey=['configurable','properties','next','DynamicReloadPaginationPrompt','credentials','oneOf','propToType','prototype','override','project:\x20\x27','getPathString','must\x20be\x20a\x20number,\x20is\x20','containers','domain','items','loginPrompt','reset','\x20(startedAt:\x20','isEmpty','./utils','call','askForTemplateRun','askForResource','backups','askForContainer','lodash','Do\x20you\x20want\x20to\x20add','isBoolean','addEntry','askConfirm','enum','pattern','safeDump','push','clusters','4682214qVjMRk','What\x20do\x20you\x20want\x20to\x20use\x20as','join','ask','includes','startedAt','\x20characters,\x20is\x20','SAVE','throw','isArray','askForProjectScopedResource','boolean','getOwnPropertyDescriptor','askForPipeline','No,\x20edit','template','skipValidation','blueBright','body','writable','bold','askForSubdomain','askForAddonBackup','__esModule','askForJob','secret','writeFileSync','registryCredentials','list','1646814XRTgGQ','warning','Something\x20unexpected\x20happened.','domains','Choose\x20the\x20login\x20token:','getCurrentProjectName','elements','blue','then','done','success','whiteBright','askForSubdomainPath','trim','Template\x20id\x20not\x20provided.','job:\x20\x27','integer','askForAddonRestore','isValidJSON','search-list','template\x20run','assign','askForSecret','What\x27s\x20the\x20','askForVolume','Context\x20with\x20name\x20\x27','templateRuns','subdomain','main-context','EDIT','underline','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','addon','split','domain\x20(','repeat','get','maxLength','values','default','all-job-runs','askForProjectScopedResourcePaginated','tags','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','addons','validate','contextProvider','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','3738zHlWjF','20DWPVJT','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','filter','all-containers','editPayload','find','js-yaml','anyOf','green','service','.*\x5c.(json|yaml|yml)$','prompt','toString','Enter\x20the\x20','hasOwnProperty','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','minLength','askForBuild','452156FTBbai','\x20in\x20','__awaiter','confirmationPrompt','registerPrompt','array','backup','askForJobRun','confirm','json','cmdPath','grey','No,\x20abort','service:\x20\x27','bgGrey','__importDefault','askForResourcePaginated','paths','description','rawObject','Go\x20to\x20editor','unset','cursor','\x20to\x20use:','for\x20this\x20','minimum','resultCache','pipeline','name','set','token','retry','maximum','./api-helpers','Unexpected\x20file\x20type:\x20','example','fetchResourceList','5622dRMAdV','opt','askForTag','object','tmpCmdPath','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','length','defaultPaginationPageSize','templates','value','4ZokBwi','Aborted.','Configuration\x20file\x20written\x20to\x20','ABORT','path','askForClusterId','tag','runs','addon:\x20\x27','inquirer-search-list','1887264yVnDdW','service\x20build','stringify','subdomainPath','__importStar','\x20Example:\x20','askGeneric','data','askForCredentials','subdomains','Do\x20you\x20want\x20to\x20add\x20more','volumes','test','\x20characters','concat','log\x20sink','services','this\x20option\x20is\x20required,\x20please\x20answer','defineProperty','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','string','logSinks','pagination-prompt','job','createdAt','apply','setPathVars','pagination','inquirer','InquirerHelper','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','No\x20','yellowBright','\x20type?',',\x20supported\x20types:\x20[json|yaml|yml]','secrets','completedAt','job\x20runs','getType','apiClient','__createBinding','isObject','Writing\x20configuration\x20failed:\x20','YES','restore','has','No\x20containers\x20found','don\x27t\x20change','pipelines','cluster\x20id','restores','Please\x20confirm\x20following\x20configuration:\x0a','getInnerType','builds','saveFile','map','1315652vckuFK','input','volume','isUndefined','jobs','projects','max','keys','REPEAT','yaml','unshift','editedResult','choice','editor','fileName','723035UPRUZt','toUpperCase','to\x20use:','fullName','\x20and\x20it\x20','isNaN','askArrayEntry','create','confirmation','type','Choose\x20the\x20','not\x20completed','cloud'];a8e=function(){return ey;};return a8e();}exports[a8w(0x82)]=InquirerHelper;
1
+ 'use strict';const a8Q=a8N;(function(x,N){const n=a8N,a=x();while(!![]){try{const J=parseInt(n(0xf0))/0x1+parseInt(n(0x15c))/0x2*(parseInt(n(0xcb))/0x3)+parseInt(n(0x99))/0x4*(parseInt(n(0xff))/0x5)+-parseInt(n(0x16f))/0x6+-parseInt(n(0x148))/0x7*(-parseInt(n(0x170))/0x8)+-parseInt(n(0xc7))/0x9+-parseInt(n(0xe8))/0xa;if(J===N)break;else a['push'](a['shift']());}catch(p){a['push'](a['shift']());}}}(a8x,0x93bd7));var __createBinding=this&&this['__createBinding']||(Object[a8Q(0xe0)]?function(x,N,a,J){const k=a8Q;if(J===undefined)J=a;var p=Object[k(0xbc)](N,a);(!p||(k(0xf7)in p?!N[k(0xae)]:p[k(0x92)]||p['configurable']))&&(p={'enumerable':!![],'get':function(){return N[a];}}),Object[k(0x93)](x,J,p);}:function(x,N,a,J){if(J===undefined)J=a;x[J]=N[a];}),__setModuleDefault=this&&this[a8Q(0x7c)]||(Object['create']?function(x,N){const b=a8Q;Object['defineProperty'](x,b(0x15e),{'enumerable':!![],'value':N});}:function(x,N){const F=a8Q;x[F(0x15e)]=N;}),__importStar=this&&this['__importStar']||function(x){const I=a8Q;if(x&&x[I(0xae)])return x;var N={};if(x!=null){for(var a in x)if(a!=='default'&&Object['prototype'][I(0x17b)]['call'](x,a))__createBinding(N,x,a);}return __setModuleDefault(N,x),N;},__awaiter=this&&this['__awaiter']||function(x,N,a,J){function p(e){return e instanceof a?e:new a(function(s){s(e);});}return new(a||(a=Promise))(function(e,s){const K=a8N;function q(A){const z=a8N;try{M(J[z(0xb6)](A));}catch(l){s(l);}}function d(A){const w=a8N;try{M(J[w(0x132)](A));}catch(l){s(l);}}function M(A){const j=a8N;A[j(0x130)]?e(A['value']):p(A[j(0x117)])[j(0xd2)](q,d);}M((J=J[K(0x14c)](x,N||[]))[K(0xb6)]());});},__importDefault=this&&this[a8Q(0x17a)]||function(x){const m=a8Q;return x&&x[m(0xae)]?x:{'default':x};};Object[a8Q(0x93)](exports,'__esModule',{'value':!![]}),exports[a8Q(0x120)]=void 0x0;function a8N(x,N){const c=a8x();return a8N=function(a,J){a=a-0x79;let p=c[a];return p;},a8N(x,N);}const _=__importStar(require(a8Q(0x107))),chalk_1=__importDefault(require(a8Q(0x87))),fs=__importStar(require('fs')),utils_1=require(a8Q(0xdd)),api_helpers_1=require(a8Q(0xed)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require(a8Q(0x80)),inquirerSearchList=require(a8Q(0x183)),yaml=require(a8Q(0x128));function a8x(){const xX=['push','fullName','assign','SAVE','\x20in\x20','getQuestionString','No\x20containers\x20found','all','getCurrentProjectName','registryCredentials','No,\x20but\x20save\x20as\x20file','askForProject','doesn\x27t\x20match\x20pattern\x20\x27','342796tlxzjx','confirm','default','addons','pipeline','properties','askForSubdomainPath','Context\x20name\x20already\x20exists.','unset','red','isBoolean','skipValidation','retrievePayloadViaInteractiveCli','startedAt','jobs','restores','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','askForSubdomain','askForTemplate','6972456mXplcG','14632cOhJdj','yellowBright','logSinks','editPayload','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','choice','getInnerType','for\x20this\x20','Please\x20confirm\x20following\x20configuration:\x0a','resultCache','__importDefault','hasOwnProperty','Do\x20you\x20want\x20to\x20add','templates','uri','a\x20Northflank\x20resource','example','\x20type?','askGeneric','inquirer-search-list','success','askConfirm','override','isUndefined','search-list','addon:\x20\x27','safeLoad','__setModuleDefault','tags','repeat','found','inquirer','bgGrey','clusters','cursor','setPathVars','backup','askForAddon','chalk','token','boolean','volumes','yaml','prompt','completedAt','type','projects','message','subdomain','writable','defineProperty','warning','list','askForResourcePaginated','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','maxLength','499844CgDObR','subdomainPath','REPEAT','paths','tmpCmdPath','enum','includes','underline','fetchResourceList','job:\x20\x27','registerPrompt','bold','job\x20runs','askForDomain','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','map','required','saveFile','concat','askForTemplateRun','askForResource','__esModule','job','blue','retry','askForProjectScopedResource','job\x20builds','No,\x20abort','set','next','createdAt','domain\x20(','cmdPath','Should\x20it\x20be','credentials','getOwnPropertyDescriptor','volume','description','pattern','pagination','slice','writeFileSync','fileName','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','all-builds','data','3004020zsSmKj','string','object','askForService','3YFmJvu','nextPageCursor','askArrayEntry','askForProjectScopedResourcePaginated','askForJob','\x20Example:\x20','greenBright','then','charAt','unshift','pathVars','maximum','\x20characters,\x20is\x20','DynamicReloadPaginationPrompt','\x20and\x20it\x20','safeDump','find','askForAddonBackup','./utils','has','No\x20','create','Choose\x20the\x20','No,\x20repeat','\x20to\x20use:','askForContainer','template','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','must\x20be\x20a\x20number,\x20is\x20','1565980JJOPyW','isNaN','addon','password','stringify','./api-helpers','Writing\x20configuration\x20failed:\x20','pagination-prompt','521288clCvpE','join','getType','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','all-job-runs','trim','No,\x20edit','get','restore','to\x20use:','not\x20completed','deleteWarningPrompt','What\x20do\x20you\x20want\x20to\x20use\x20as','green','defaultPaginationPageSize','25jQykJs','service\x20containers','toString','addEntry','askForCredentials','json','Something\x20unexpected\x20happened.','askForVolume','lodash','Context\x20with\x20name\x20\x27','EDIT','What\x27s\x20the\x20','editedResult','split','values','No\x20builds\x20found','length','askForSecret','input','confirmationPrompt','domains','askForJobRun','cloud','integer','value','yml','minLength','pipelines','name','job\x20containers','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','getPathString','isObject','InquirerHelper','body','backups','blueBright','filter','services','\x20(startedAt:\x20','containers','js-yaml','test','askForClusterId','grey','contextProvider','keys','rawObject','don\x27t\x20change','done','minimum','throw','isArray','propToType','askForLogSink','secrets','project','askForPipeline','service','service:\x20\x27','validate','pop','path','\x20characters','),\x20subdomain\x20(','\x20(full\x20domain:\x20','anyOf','loginPrompt','\x20(completedAt:\x20','confirmation','YES','apiClient','Yes,\x20send','3598MtlPEC','builds','askForBuild','runs','apply','ask','oneOf'];a8x=function(){return xX;};return a8x();}var ConfirmChoices;(function(x){const S=a8Q;x[S(0x145)]=S(0x147),x[S(0x9b)]=S(0xe2),x[S(0x109)]=S(0xf6),x[S(0x152)]=S(0x159),x['ABORT']=S(0xb4);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(x){const W=a8Q;this[W(0x146)]=x,this[W(0xfe)]=0x32,this[W(0x173)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const L=W,{editedResult:a}=yield inquirer[L(0x8c)]([{'type':'editor','name':L(0x10b),'message':'Go\x20to\x20editor','default':yaml[L(0xda)](N)}]);return yaml[L(0x7b)](a);}),this[W(0xaa)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const h=W,a=q=>'Unexpected\x20file\x20type:\x20'+q+',\x20supported\x20types:\x20[json|yaml|yml]';function J(){return __awaiter(this,void 0x0,void 0x0,function*(){const v=a8N;return inquirer['prompt']([{'type':'input','name':v(0xc3),'message':v(0x11d),'validate':q=>new RegExp('.*\x5c.(json|yaml|yml)$')[v(0x129)](q)?!![]:a(q)}]);});}const {fileName:p}=yield J(),s=p[h(0x101)]()[h(0x10c)]('.')[h(0x13c)]();try{switch(s){case h(0x104):(0x0,utils_1[h(0x184)])('Configuration\x20file\x20written\x20to\x20'+p);return fs[h(0xc2)](p,JSON[h(0xec)](N,null,'\x20\x20'));case h(0x8b):case h(0x118):(0x0,utils_1[h(0x184)])('Configuration\x20file\x20written\x20to\x20'+p);return fs['writeFileSync'](p,yaml[h(0xda)](N));default:(0x0,utils_1[h(0x94)])(a(s));}}catch(q){(0x0,utils_1[h(0x94)])(h(0xee)+q[h(0x90)]);}return undefined;}),this[W(0x124)]=(N,a)=>J=>{const B=W,p=typeof J===B(0xc8)?J[B(0xf5)]():J;return a===![]&&p===B(0x12f)?'':p;},this[W(0x13b)]=(N,a,J)=>p=>{const o=W;if(this[o(0x167)]===!![])return!![];const e=[];if(p===''||p===o(0x12f)){if(a!==![])e[o(0x14f)]('this\x20option\x20is\x20required,\x20please\x20answer');else return!![];}N[o(0x8e)]===o(0xc8)&&!_[o(0x187)](N[o(0xbf)])&&e['push'](new RegExp(N[o(0xbf)])['test'](p)?!![]:o(0x15b)+N['pattern']+'\x27');N[o(0x8e)]===o(0xc8)&&!_[o(0x187)](N['minLength'])&&e['push'](p[o(0x10f)]>=N[o(0x119)]?!![]:o(0xe6)+N[o(0x119)]+'\x20characters,\x20is\x20'+p[o(0x10f)]+o(0x13e));N['type']===o(0xc8)&&!_[o(0x187)](N['maxLength'])&&e[o(0x14f)](p[o(0x10f)]<=N[o(0x98)]?!![]:o(0x174)+N[o(0x98)]+o(0xd7)+p[o(0x10f)]+'\x20characters');J&&Number[o(0xe9)](parseInt(p,0xa))&&e['push'](o(0xe7)+p);N[o(0x8e)]===o(0x116)&&!_['isUndefined'](N[o(0x131)])&&e['push'](p>=N[o(0x131)]?!![]:o(0xa7)+N[o(0x131)]);N[o(0x8e)]===o(0x116)&&!_[o(0x187)](N[o(0xd6)])&&e['push'](p<=N['maximum']?!![]:'must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20'+N[o(0xd6)]);if(N[o(0x8e)]==='rawObject'){const d=(0x0,utils_1['isValidJSON'])(p);e[o(0x14f)](d===![]||_['isEmpty'](d)?o(0xc4):!![]);}const s=e[o(0x124)](M=>M!==!![]),q=(N===null||N===void 0x0?void 0x0:N['example'])?'\x0a'+chalk_1[o(0x15e)][o(0x165)]('>>')+o(0xd0)+chalk_1[o(0x15e)]['whiteBright'](JSON[o(0xec)](N[o(0x180)])):'';return s[o(0x10f)]>0x0?s[o(0xf1)](chalk_1[o(0x15e)][o(0xa0)](o(0xd9)))+q:!![];},this[W(0x11e)]=(N,a,J)=>{const E=W,p=N[N['length']-0x1];function e(){const G=a8N;return N[G(0xc1)](0x0,-0x1)['map'](d=>d[G(0xd3)](0x0)['toUpperCase']()+d[G(0xc1)](0x1))[G(0xf1)]('>');}const s=N[E(0x10f)]>0x1?chalk_1[E(0x15e)][E(0x81)]['whiteBright'](e())+':\x20':'',q=J?'\x20('+chalk_1['default'][E(0xb0)](J)+')':'';return chalk_1[E(0x15e)]['reset'](''+s+a+'\x20'+chalk_1[E(0x15e)]['bold'][E(0xd1)](p)+q+'?');},this['askForResource']=(N,a,J)=>__awaiter(this,void 0x0,void 0x0,function*(){const u=W;if(a[u(0x10f)]<0x1){const s=J?u(0x177)+J:u(0x7f);throw new Error(u(0xdf)+N+'\x20'+s+'.');}const p=u(0xe1)+N+u(0xe3),e=a['length']>0x4?'search-list':u(0x95);return(yield inquirer[u(0x8c)]([{'type':e,'name':'name','message':p,'choices':a}]))[u(0x11b)];}),this[W(0x96)]=(N,a,J)=>__awaiter(this,void 0x0,void 0x0,function*(){const X=W,{elements:p,nextCursor:e}=yield a();if(p[X(0x10f)]<0x1){const d=J?X(0x177)+J:X(0x7f);throw new Error(X(0xdf)+N+'\x20'+d+'.');}const s=X(0xe1)+N+X(0xe3);if(e!==undefined){const M=({nextPageCursor:A})=>__awaiter(this,void 0x0,void 0x0,function*(){const l=yield a(A);return{'elements':l['elements'],'nextPageCursor':l['nextCursor']};});return(yield inquirer[X(0x8c)]([{'type':X(0xef),'name':X(0x11b),'message':s,'choices':p,'nextPageCursor':e,'loadMore':M}]))[X(0x11b)];}const q=p[X(0x10f)]>0x4?X(0x79):X(0x95);return(yield inquirer['prompt']([{'type':q,'name':X(0x11b),'message':s,'choices':p}]))[X(0x11b)];}),this[W(0x182)]=(N,a)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const R=W,J=''+(a?'('+chalk_1[R(0x15e)][R(0xb0)](a)+')\x20':''),p='Enter\x20the\x20'+chalk_1[R(0x15e)][R(0xfd)](N)+'\x20'+J+R(0xf9),e=this['validate']({'type':R(0xc8),'required':!![]});return(yield inquirer['prompt']([{'type':R(0x111),'name':R(0x11b),'message':p,'validate':e}]))[R(0x11b)];}),this[W(0x185)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const t=W;return(yield inquirer[t(0x8c)]([{'type':t(0x15d),'name':'name','message':N,'default':!![]}]))[t(0x11b)];}),this[W(0xca)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const f=a8N,p=yield this[f(0x146)][f(0x95)][f(0x125)]['all']({'parameters':{'projectId':J}}),e=p[f(0xc6)][f(0x125)][f(0xa8)](s=>s['id']);return e;});return this['askForProjectScopedResource'](Y(0x139),a,N);}),this[W(0x16e)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a8N;var J;const p=yield this['apiClient']['list'][H(0x17d)]({'options':{'per_page':this[H(0xfe)],'cursor':a}}),e=p['data']['templates'][H(0xa8)](s=>s['id']);return{'elements':e,'nextCursor':(J=p[H(0xc0)])===null||J===void 0x0?void 0x0:J[H(0x83)]};});return this[D(0x96)](D(0xe5),N);}),this['askForTag']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const i=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a8N;var J,p,e;const s=yield this[r(0x146)]['list']['tags']({'options':{'per_page':this[r(0xfe)],'cursor':a}}),q=(p=(J=s[r(0xc6)][r(0x7d)])===null||J===void 0x0?void 0x0:J['map'](d=>d['id']))!==null&&p!==void 0x0?p:[];return{'elements':q,'nextCursor':(e=s[r(0xc0)])===null||e===void 0x0?void 0x0:e[r(0x83)]};});return this[i(0x96)]('tag',N);}),this[W(0x12a)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const U=a8N;var J,p,e;const s=yield this[U(0x146)][U(0x95)][U(0x115)][U(0x82)]({'options':{'per_page':this[U(0xfe)],'cursor':a}}),q=(p=(J=s[U(0xc6)][U(0x82)])===null||J===void 0x0?void 0x0:J['map'](d=>d[U(0x11b)]))!==null&&p!==void 0x0?p:[];return{'elements':q,'nextCursor':(e=s['pagination'])===null||e===void 0x0?void 0x0:e[U(0x83)]};});return this[y(0x96)]('cluster\x20id',N);}),this[W(0xac)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T=W;if(_['isUndefined'](N))throw new Error('Template\x20id\x20not\x20provided.');const a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const C=a8N;var p;let e=this[C(0xfe)];const s=yield this['apiClient']['list']['templateRuns']({'parameters':{'templateId':N},'options':{'per_page':e,'cursor':J}}),q=s[C(0xc6)]['templateRuns'][C(0xa8)](d=>d['id']+C(0x126)+d['createdAt']+')');return{'elements':q,'nextCursor':(p=s[C(0xc0)])===null||p===void 0x0?void 0x0:p[C(0x83)]};});return this[T(0x96)]('template\x20run',a)[T(0xd2)](J=>J[T(0x10c)]('\x20')[0x0]);}),this[W(0x135)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x0=W,N=a=>__awaiter(this,void 0x0,void 0x0,function*(){const O=a8N;var J;let p=this[O(0xfe)];const e=yield this[O(0x146)][O(0x95)]['logSinks']({'options':{'per_page':p,'cursor':a}}),s=e[O(0xc6)][O(0x172)][O(0xa8)](q=>q['id']);return{'elements':s,'nextCursor':(J=e[O(0xc0)])===null||J===void 0x0?void 0x0:J[O(0x83)]};});return this[x0(0x96)]('log\x20sink',N);}),this[W(0x138)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x2=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const x1=a8N,p=yield this[x1(0x146)][x1(0x95)][x1(0x11a)][x1(0x156)]({'parameters':{'projectId':J}});return p[x1(0xc6)][x1(0x11a)][x1(0xa8)](e=>e['id']);});return this[x2(0xb2)](x2(0x160),a,N);}),this[W(0xcf)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x4=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const x3=a8N,p=yield this[x3(0x146)]['list'][x3(0x16a)][x3(0x156)]({'parameters':{'projectId':J}}),e=p[x3(0xc6)][x3(0x16a)]['map'](s=>s['id']);return e;});return this[x4(0xb2)](x4(0xaf),a,N);}),this[W(0x114)]=(N,a,J=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x5=W,p=x5(0xf4),e=s=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const x6=x5;var d;const M=yield this[x6(0x146)]['get'][x6(0xaf)][x6(0x14b)]({'parameters':{'projectId':s,'jobId':N},'options':{'per_page':this[x6(0xfe)],'cursor':q}}),A=M[x6(0xc6)][x6(0x14b)][x6(0xa8)](l=>l['id']+x6(0x126)+l[x6(0x169)]+')');return J&&A[x6(0xd4)](p),{'elements':A,'nextCursor':(d=M[x6(0xc0)])===null||d===void 0x0?void 0x0:d['cursor']};});return this['askForProjectScopedResourcePaginated'](x5(0xa5),e,a,'job:\x20\x27'+N+'\x27')[x5(0xd2)](s=>{const x7=x5,q=s[x7(0x10c)]('\x20')[0x0];if(q===p)return undefined;return q;});}),this[W(0x14a)]=(N,a,J,p=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const x8=W,e=x8(0xc5);if(J!==undefined){const s=q=>d=>__awaiter(this,void 0x0,void 0x0,function*(){const x9=x8;var M;const A=yield this[x9(0x146)][x9(0xf7)]['job'][x9(0x149)]({'parameters':{'projectId':q,'jobId':J},'options':{'per_page':this[x9(0xfe)],'cursor':d}}),l=A[x9(0xc6)]['builds'][x9(0xa8)](Z=>Z['id']+x9(0x126)+Z['createdAt']+')');return p&&l[x9(0xd4)](e),{'elements':l,'nextCursor':(M=A['pagination'])===null||M===void 0x0?void 0x0:M['cursor']};});return this[x8(0xce)](x8(0xb3),s,N,x8(0xa2)+J+'\x27')[x8(0xd2)](q=>{const xx=x8,d=q[xx(0x10c)]('\x20')[0x0];if(d===e)return undefined;return d;});}if(a!==undefined){const q=d=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const xN=x8;var A;const l=yield this[xN(0x146)][xN(0xf7)][xN(0x139)][xN(0x149)]({'parameters':{'projectId':d,'serviceId':a},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':M}}),Z=l[xN(0xc6)][xN(0x149)][xN(0xa8)](V=>V['id']+xN(0x126)+V[xN(0xb7)]+')');if(p)Z['unshift'](e);return{'elements':Z,'nextCursor':(A=l[xN(0xc0)])===null||A===void 0x0?void 0x0:A[xN(0x83)]};});return this[x8(0xce)]('service\x20build',q,N,x8(0x13a)+J+'\x27')[x8(0xd2)](d=>{const xc=x8,M=d[xc(0x10c)]('\x20')[0x0];if(M===e)return undefined;return M;});}throw new Error(x8(0x10e));}),this[W(0xe4)]=(N,a,J,p=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xJ=W,e='all-containers';if(J!==undefined){const s=q=>d=>__awaiter(this,void 0x0,void 0x0,function*(){const xa=a8N;var M,A;const l=yield this[xa(0x146)][xa(0xf7)]['job'][xa(0x127)]({'parameters':{'projectId':q,'jobId':J},'options':{'per_page':this[xa(0xfe)],'cursor':d}}),Z=(M=l['data'][xa(0x127)])!==null&&M!==void 0x0?M:[],V=Z===null||Z===void 0x0?void 0x0:Z['map'](g=>g[xa(0x11b)]+'\x20(startedAt:\x20'+g['createdAt']+')');return p&&V[xa(0xd4)](e),{'elements':V,'nextCursor':(A=l['pagination'])===null||A===void 0x0?void 0x0:A[xa(0x83)]};});return this['askForProjectScopedResourcePaginated'](xJ(0x11c),s,N,'job:\x20\x27'+J+'\x27')[xJ(0xd2)](q=>{const xp=xJ,d=q[xp(0x10c)]('\x20')[0x0];if(d===e)return undefined;return d;});}if(a!==undefined){const q=d=>M=>__awaiter(this,void 0x0,void 0x0,function*(){const xe=xJ;var A,l;const Z=yield this[xe(0x146)][xe(0xf7)]['service'][xe(0x127)]({'parameters':{'projectId':d,'serviceId':a},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':M}}),V=(A=Z['data'][xe(0x127)])!==null&&A!==void 0x0?A:[],g=V[xe(0xa8)](P=>P[xe(0x11b)]+xe(0x126)+P[xe(0xb7)]+')');if(p)g===null||g===void 0x0?void 0x0:g[xe(0xd4)](e);return{'elements':g,'nextCursor':(l=Z['pagination'])===null||l===void 0x0?void 0x0:l['cursor']};});return this[xJ(0xce)](xJ(0x100),q,N,xJ(0x13a)+J+'\x27')[xJ(0xd2)](d=>{const xs=xJ,M=d[xs(0x10c)]('\x20')[0x0];if(M===e)return undefined;return M;});}throw new Error(xJ(0x155));}),this[W(0x86)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xd=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const xq=a8N,p=yield this[xq(0x146)][xq(0x95)][xq(0x15f)][xq(0x156)]({'parameters':{'projectId':J}});return p['data'][xq(0x15f)]['map'](e=>e['id']);});return this[xd(0xb2)](xd(0xea),a,N);}),this[W(0xdc)]=(N,a)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xA=W,J=p=>e=>__awaiter(this,void 0x0,void 0x0,function*(){const xM=a8N;var s;const q=yield this[xM(0x146)][xM(0xf7)][xM(0xea)]['backups']({'parameters':{'projectId':p,'addonId':a},'options':{'per_page':this[xM(0xfe)],'cursor':e}});return{'elements':q[xM(0xc6)]['backups'][xM(0xa8)](d=>d['id']+xM(0x143)+(d[xM(0x8d)]||xM(0xfa))+')'),'nextCursor':(s=q[xM(0xc0)])===null||s===void 0x0?void 0x0:s['cursor']};});return this[xA(0xce)](xA(0x122),J,N,xA(0x7a)+a+'\x27')[xA(0xd2)](p=>p[xA(0x10c)]('\x20')[0x0]);}),this['askForAddonRestore']=(N,a,J)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xZ=W,p=e=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const xl=a8N;var q;const d=yield this[xl(0x146)][xl(0xf7)][xl(0xea)][xl(0x85)][xl(0x16b)]({'parameters':{'projectId':e,'addonId':a,'backupId':J},'options':{'per_page':this[xl(0xfe)],'cursor':s}});return{'elements':d['data']['restores'][xl(0xa8)](M=>M['id']+xl(0x143)+(M[xl(0x8d)]||'not\x20completed')+')'),'nextCursor':(q=d[xl(0xc0)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[xZ(0xce)](xZ(0xf8),p,N,xZ(0x7a)+a+'\x27')['then'](e=>e[xZ(0x10c)]('\x20')[0x0]);}),this[W(0x106)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xg=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const xV=a8N;return(yield this[xV(0x146)]['list'][xV(0x8a)]({'parameters':{'projectId':J}}))['data'][xV(0xa8)](p=>p['id']);});return this[xg(0xb2)](xg(0xbd),a,N);}),this[W(0x110)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xn=W,a=J=>__awaiter(this,void 0x0,void 0x0,function*(){const xP=a8N,p=yield this[xP(0x146)][xP(0x95)][xP(0x136)]['all']({'parameters':{'projectId':J}});return p['data'][xP(0x136)][xP(0xa8)](e=>e['id']);});return this[xn(0xb2)]('secret',a,N);}),this[W(0x16d)]=N=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xQ=W,a=yield this[xQ(0x146)][xQ(0xf7)]['domain']({'parameters':{'domain':N}}),J=a[xQ(0xc6)]['subdomains'][xQ(0xa8)](e=>e[xQ(0x11b)]+xQ(0x140)+e[xQ(0x150)]+')'),p=xQ(0xb8)+N+')';return this[xQ(0xad)](xQ(0x91),J,p)[xQ(0xd2)](e=>e[xQ(0x10c)]('\x20')[0x0]);}),this[W(0x162)]=(N,a)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const xk=W,J=yield this['apiClient'][xk(0x95)][xk(0x91)][xk(0x13d)]({'parameters':{'domain':N,'subdomain':a}}),p=J[xk(0xc6)][xk(0x9c)]['map'](s=>''+s[xk(0x17e)]),e=xk(0xb8)+N+xk(0x13f)+a+')';return this[xk(0xad)](xk(0x9a),p,e);}),this[W(0xfb)]=N=>__awaiter(this,void 0x0,void 0x0,function*(){const xb=W;return(yield inquirer[xb(0x8c)]([{'type':xb(0x15d),'name':xb(0x144),'message':chalk_1[xb(0x15e)][xb(0x171)]('WARNING:\x20You\x20are\x20about\x20to\x20delete\x20'+(N||xb(0x17f))+xb(0x16c)),'default':![]}]))[xb(0x144)];}),this[W(0x142)]=(N,a)=>__awaiter(this,void 0x0,void 0x0,function*(){const xF=W;_[xF(0x187)](N[xF(0x11b)])&&(a[xF(0x10f)]<=0x0?_[xF(0xb5)](N,xF(0x11b),xF(0x15e)):yield(0x0,utils_1[xF(0xb1)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const xI=xF,{name:J}=yield inquirer['prompt']([{'type':xI(0x111),'name':'name','message':xI(0xf3),'default':'main-context'}]);if(!N[xI(0x186)]&&a[xI(0xdb)](p=>p['name']===J)){const {c:p}=yield inquirer[xI(0x8c)]([{'type':xI(0x15d),'name':'c','message':xI(0x108)+J+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(p===![])throw new Error(xI(0x163));_[xI(0xb5)](N,'override',!![]);}_['set'](N,xI(0x11b),J);})));if(_[xF(0x187)](N['token'])){const J=yield this['tokenPrompt']();_[xF(0xb5)](N,xF(0x88),J);}return N;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const xz=W,{token:N}=yield inquirer[xz(0x8c)]([{'type':xz(0xeb),'name':xz(0x88),'mask':'*','message':'Choose\x20the\x20login\x20token:'}]);return N;}),inquirer[W(0xa3)](W(0x79),inquirerSearchList),inquirer[W(0xa3)](W(0xef),inquirer_pagination_prompt_1[W(0xd8)]);}['confirmationPrompt'](x,N){return __awaiter(this,void 0x0,void 0x0,function*(){const xw=a8N,a=yaml[xw(0xda)](x),J=_['max'](a[xw(0x10c)]('\x0a')[xw(0xa8)](s=>s['length'])),p=chalk_1[xw(0x15e)][xw(0x12b)]('-'[xw(0x7e)](J)+'\x0a'),{confirm:e}=yield inquirer['prompt']([{'type':xw(0x95),'name':xw(0x15d),'message':''+chalk_1[xw(0x15e)][xw(0xa4)][xw(0xfd)](xw(0x178))+p+chalk_1['default'][xw(0x123)](a)+p,'choices':Object[xw(0x10d)](ConfirmChoices)}]);switch(e){case ConfirmChoices[xw(0x145)]:return x;case ConfirmChoices['ABORT']:throw new Error('Aborted.');case ConfirmChoices[xw(0x9b)]:return this[xw(0x168)](N);case ConfirmChoices['EDIT']:return this[xw(0x112)](yield this[xw(0x173)](x),N);case ConfirmChoices[xw(0x152)]:yield this[xw(0xaa)](x);return this[xw(0x112)](x,N);default:throw new Error(xw(0x105));}});}['retrievePayloadViaInteractiveCli'](x,N){return __awaiter(this,void 0x0,void 0x0,function*(){const xj=a8N;if((N===null||N===void 0x0?void 0x0:N[xj(0x179)])!==undefined)this['resultCache']=N===null||N===void 0x0?void 0x0:N[xj(0x179)];this[xj(0x9d)]=N===null||N===void 0x0?void 0x0:N[xj(0xb9)],this[xj(0x167)]=N===null||N===void 0x0?void 0x0:N[xj(0x167)];const a={};return yield this[xj(0x134)]([],x['opt'][xj(0x121)],a),this['resultCache']=a,yield this['confirmationPrompt'](a,x);});}[a8Q(0x134)](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xK=a8N;let p;if(N[xK(0x14e)]&&!_['has'](N,xK(0x161))){if(N[xK(0x14e)][xK(0x10f)]>0x1){const {choice:e}=yield inquirer[xK(0x8c)]([{'type':xK(0x95),'name':xK(0x175),'message':xK(0x10a)+(x[x[xK(0x10f)]-0x1]||'')+xK(0x181),'choices':N[xK(0x14e)][xK(0xa8)](s=>{var q;return(q=s['description'])!==null&&q!==void 0x0?q:'??';})}]);p=yield this['getType'](x,N[xK(0x14e)][xK(0xdb)](s=>s[xK(0xbe)]===e),a,J);}else{const s=N['oneOf'][0x0];_[xK(0xb5)](s,'description',N[xK(0xbe)]),p=yield this[xK(0xf2)](x,s,a,J);}p={};}else{if(N['anyOf']&&!_[xK(0xde)](N,'properties')){if(N[xK(0x141)][xK(0x10f)]>0x1){const {choice:q}=yield inquirer['prompt']([{'type':xK(0x95),'name':'choice','message':'What\x27s\x20the\x20'+(x[x[xK(0x10f)]-0x1]||'')+xK(0x181),'choices':[...N[xK(0x141)][xK(0xa8)](d=>{const xm=xK;var M;return(M=d[xm(0xbe)])!==null&&M!==void 0x0?M:'??';}),xK(0x12f)]}]);q!=='don\x27t\x20change'&&(p=yield this[xK(0xf2)](x,N[xK(0x141)][xK(0xdb)](d=>d['description']===q),a,J));}else{const d=N[xK(0x141)][0x0];_[xK(0xb5)](d,'description',N[xK(0xbe)]),p=yield this[xK(0xf2)](x,d,a,J);}p={};}else p=yield this[xK(0xf2)](x,N,a,J);}return p;});}[a8Q(0x176)](x,N,a,J){var p;return __awaiter(this,void 0x0,void 0x0,function*(){const xS=a8N;if(J===![]){const {addEntry:q}=yield inquirer[xS(0x8c)]([{'type':'confirm','name':xS(0x102),'message':this[xS(0x11e)](N,xS(0x17c),x===null||x===void 0x0?void 0x0:x[xS(0xbe)]),'default':![]}]);if(!q)return a;}const e=Object[xS(0x12d)]((p=x===null||x===void 0x0?void 0x0:x[xS(0x161)])!==null&&p!==void 0x0?p:[]),s=x[xS(0xa9)]||[];if(e[xS(0x10f)]>0x0)for(const d of e){const M=N[xS(0xab)](d);if(N[xS(0x10f)]>0x0&&!_[xS(0xde)](a,N[xS(0xf1)]('.')))_[xS(0xb5)](a,N['join']('.'),{});yield this['propToType'](M,x['properties'][d],a,s[xS(0x9f)](d));}else yield this[xS(0xf2)](N,Object['assign'](Object[xS(0x151)]({},x),{'type':'rawObject'}),a,J);return a;});}['askArrayEntry'](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xW=a8N;if(N&&a)return!![];const p=N?xW(0x17c):'Do\x20you\x20want\x20to\x20add\x20more',{addEntry:e}=yield inquirer['prompt']([{'type':xW(0x15d),'name':'addEntry','message':this[xW(0x11e)](x,p,N?J:undefined),'default':![]}]);return e;});}[a8Q(0xf2)](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xL=a8N;let p;const e=x['join']('.');switch(N===null||N===void 0x0?void 0x0:N['type']){case'array':{let s=!![];while(yield this[xL(0xcd)](x,s,J,N===null||N===void 0x0?void 0x0:N[xL(0xbe)])){const q=_[xL(0xf7)](a,e);_[xL(0x164)](a,e),yield this[xL(0xf2)](x,N['items'],a);const d=_[xL(0xf7)](a,e);!_[xL(0x133)](q)?_['set'](a,e,[d]):(q[xL(0x14f)](d),_[xL(0xb5)](a,e,q)),s=![];}return p||[];}case xL(0xc9):{return p=yield this[xL(0x176)](N,x,a,J),p;}case'rawObject':p=(0x0,utils_1['isValidJSON'])(yield this[xL(0x14d)](x,N,J))||undefined;break;case xL(0xc8):case xL(0x89):case xL(0x116):default:p=yield this['ask'](x,N,J,a);break;}return!_[xL(0x187)](p)&&_['set'](a,e,p),p;});}[a8Q(0x14d)](x,N,a,J){var p;return __awaiter(this,void 0x0,void 0x0,function*(){const xv=a8N,e=x[x[xv(0x10f)]-0x1],{defaultValue:defaultValue=(p=N===null||N===void 0x0?void 0x0:N[xv(0x180)])!==null&&p!==void 0x0?p:N===null||N===void 0x0?void 0x0:N[xv(0x15e)],choices:choices=N===null||N===void 0x0?void 0x0:N[xv(0x9e)],pagination:s}=yield(0x0,api_helpers_1[xv(0xa1)])(e,this[xv(0x146)],this[xv(0x9d)],J,this[xv(0xd5)],x);let q=xv(0x111);if(!_[xv(0x187)](choices)&&choices[xv(0x10f)]>0x0){if(s!==undefined&&s[xv(0xcc)]!==undefined)q=xv(0xef);else choices['length']>0x4&&typeof choices[0x0]===xv(0xc8)?q=xv(0x79):q=xv(0x95);}else{if((N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x89))q='confirm';else{if((N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x116))q=xv(0x111);else(N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x12e)&&(q='editor');}}let d=a!==![]?!_[xv(0x11f)](defaultValue)?defaultValue:JSON[xv(0xec)](defaultValue):_[xv(0x166)](defaultValue)?defaultValue:xv(0x12f);if(choices)d=d['toString']();_['has'](this[xv(0x179)],x[xv(0xf1)]('.'))&&(d=this[xv(0x179)][x[xv(0xf1)]('.')]);const M=choices&&a===![]?['don\x27t\x20change',...choices]:choices,A=(N===null||N===void 0x0?void 0x0:N[xv(0x8e)])===xv(0x116),l=Object[xv(0x151)]({'type':q,'name':'id','message':this[xv(0x154)](x,N),'choices':M,'default':d,'filter':this['filter'](q,a),'validate':this[xv(0x13b)](N,a,A)},s),Z=(yield inquirer['prompt']([l]))['id'];if(Z===xv(0x12f)||Z==='')return undefined;if(A)return parseInt(Z,0xa);return Z;});}[a8Q(0x154)](x,N){const xh=a8Q,a=(N===null||N===void 0x0?void 0x0:N[xh(0x8e)])!==xh(0x89)?xh(0xfc):xh(0xba);return this[xh(0x11e)](x,a,N===null||N===void 0x0?void 0x0:N[xh(0xbe)]);}[a8Q(0x15a)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xB=a8N,x=yield this[xB(0x146)][xB(0x95)][xB(0x8f)][xB(0x156)]({})['then'](N=>N[xB(0xc6)][xB(0x8f)][xB(0xa8)](a=>a['id']));return yield this[xB(0xad)](xB(0x137),x);});}[a8Q(0xb2)](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xo=a8N,p=a||this[xo(0x146)]['contextProvider'][xo(0x157)]();if(_[xo(0x187)](p))throw new Error(xo(0x97));const e=yield N(p);return yield this[xo(0xad)](x,e,(J?J+xo(0x153):'')+'project:\x20\x27'+p+'\x27');});}['askForProjectScopedResourcePaginated'](x,N,a,J){return __awaiter(this,void 0x0,void 0x0,function*(){const xG=a8N,p=a||this[xG(0x146)][xG(0x12c)][xG(0x157)]();if(_[xG(0x187)](p))throw new Error(xG(0x97));const e=yield N(p);return yield this[xG(0x96)](x,e,(J?J+'\x20in\x20':'')+'project:\x20\x27'+p+'\x27');});}[a8Q(0xa6)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xE=a8N,x=yield this[xE(0x146)][xE(0x95)][xE(0x113)][xE(0x156)]({}),N=x[xE(0xc6)]['domains'][xE(0xa8)](a=>a[xE(0x11b)]);return this[xE(0xad)]('domain',N);});}[a8Q(0x103)](){return __awaiter(this,void 0x0,void 0x0,function*(){const xu=a8N,x=yield this[xu(0x146)][xu(0x95)][xu(0x158)][xu(0x156)]({}),N=x[xu(0xc6)][xu(0xbb)][xu(0xa8)](a=>a['id']);return this[xu(0xad)](xu(0xbb),N);});}[a8Q(0x84)](x){this['pathVars']=x;}}exports[a8Q(0x120)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9b=a9o;(function(e,o){const l=a9o,h=e();while(!![]){try{const p=parseInt(l(0x176))/0x1*(-parseInt(l(0x149))/0x2)+-parseInt(l(0x180))/0x3*(parseInt(l(0x174))/0x4)+parseInt(l(0x15e))/0x5+parseInt(l(0x16b))/0x6*(parseInt(l(0x15b))/0x7)+parseInt(l(0x182))/0x8+parseInt(l(0x147))/0x9+-parseInt(l(0x17f))/0xa*(parseInt(l(0x168))/0xb);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a9e,0x35a2f));var __createBinding=this&&this[a9b(0x152)]||(Object['create']?function(e,h,p,Y){const a=a9b;if(Y===undefined)Y=p;var q=Object[a(0x160)](h,p);(!q||(a(0x153)in q?!h[a(0x179)]:q[a(0x145)]||q[a(0x183)]))&&(q={'enumerable':!![],'get':function(){return h[p];}}),Object[a(0x170)](e,Y,q);}:function(e,h,p,Y){if(Y===undefined)Y=p;e[Y]=h[p];}),__setModuleDefault=this&&this[a9b(0x167)]||(Object['create']?function(e,h){const z=a9b;Object['defineProperty'](e,z(0x17b),{'enumerable':!![],'value':h});}:function(e,h){const H=a9b;e[H(0x17b)]=h;}),__importStar=this&&this[a9b(0x16d)]||function(e){const P=a9b;if(e&&e['__esModule'])return e;var o={};if(e!=null){for(var h in e)if(h!==P(0x17b)&&Object[P(0x148)][P(0x158)][P(0x16e)](e,h))__createBinding(o,e,h);}return __setModuleDefault(o,e),o;},__awaiter=this&&this['__awaiter']||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){function v(Z){const V=a9o;try{I(p[V(0x169)](Z));}catch(k){J(k);}}function s(Z){const u=a9o;try{I(p[u(0x17d)](Z));}catch(k){J(k);}}function I(Z){const c=a9o;Z['done']?q(Z['value']):Y(Z[c(0x157)])[c(0x151)](v,s);}I((p=p['apply'](e,o||[]))['next']());});},__importDefault=this&&this[a9b(0x184)]||function(e){const n=a9b;return e&&e[n(0x179)]?e:{'default':e};};Object[a9b(0x170)](exports,a9b(0x179),{'value':!![]}),exports[a9b(0x156)]=void 0x0;function a9e(){const X=['5753XzNDsd','next','write','6WVYgrf','startLogin','__importStar','call','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','defineProperty','handleError','createWebSocketStream','SIGINT','52CgKDum','error','2lFbekY','browser-opened','wss:','__esModule','Login\x20process\x20stopped\x20before\x20completed','default','login-failure','throw','init-ack','290KVxyaX','43671HxTBzr','parse','1430776aWXbgr','configurable','__importDefault','replace','openBrowser','writable','duplex','1222506jkfbIS','prototype','105074TjvXPv','removeListener','Unable\x20to\x20open\x20browser:\x20','Failure\x20during\x20login:\x20','init','data','ws:','status','then','__createBinding','get','idle','exit','NorthflankApiBrowserLogin','value','hasOwnProperty','message','type','1472527YjJisZ','stringify','initPackage','20675JrkUsj','success','getOwnPropertyDescriptor','http:','error\x20happened\x20during\x20browser\x20login:\x20','open','end','baseUrl','Unexpected\x20response,\x20api\x20token\x20missing','__setModuleDefault'];a9e=function(){return X;};return a9e();}function a9o(e,o){const h=a9e();return a9o=function(p,Y){p=p-0x145;let q=h[p];return q;},a9o(e,o);}const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9b(0x163))),events_1=require('events');class NorthflankApiBrowserLogin extends events_1['EventEmitter']{constructor(e,o=!![]){const d=a9b;super(),this[d(0x165)]=e,this[d(0x186)]=o,this[d(0x150)]=d(0x154),this[d(0x15d)]=()=>JSON[d(0x15c)]({'type':d(0x14d)});}[a9b(0x16c)](){const j=a9b;var e;const o=this[j(0x165)]['replace']('https:',j(0x178))[j(0x185)](j(0x161),j(0x14f)),h=o+'/v1/cli-login',p=new ws_1[(j(0x17b))](h),Y=()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=j;yield new Promise(J=>{const Q=a9o;var v;(v=this[Q(0x146)])===null||v===void 0x0?void 0x0:v['end'](JSON[Q(0x15c)]({'type':'aborted'}),()=>J());}),process[D(0x155)]();}),q=new Promise((J,v)=>{const f=j;var s,I,Z;try{this[f(0x146)]=(0x0,ws_1[f(0x172)])(p),process['on'](f(0x173),Y);}catch(k){v(new Error(f(0x16f)+k[f(0x159)]));}(s=this['duplex'])===null||s===void 0x0?void 0x0:s['on'](f(0x14e),L=>{const i=f;var F;const W=JSON[i(0x181)](L['toString']());switch(W===null||W===void 0x0?void 0x0:W[i(0x15a)]){case i(0x17e):{const {loginPage:N}=W;if(N===undefined){this[i(0x171)]('Unexpected\x20response',v);return;}this['openBrowser']&&(0x0,open_1[i(0x17b)])(N)['catch'](g=>{const R=i,w=R(0x14b)+g['message'];this[R(0x171)](w,v);});this['emit'](i(0x177),{'url':N});break;}case'login-success':{const {apiToken:g,contextName:w}=W;if(g===undefined){this[i(0x171)](i(0x166),v);return;}(F=this[i(0x146)])===null||F===void 0x0?void 0x0:F[i(0x164)](),J({'token':g,'contextName':w}),this[i(0x150)]=i(0x15f);break;}case i(0x17c):{const C=i(0x14c)+(W===null||W===void 0x0?void 0x0:W[i(0x159)]);this[i(0x171)](C,v);break;}default:{const x='unable\x20to\x20parse\x20message:\x20'+JSON[i(0x15c)](W);this['handleError'](x,v);}}}),(I=this[f(0x146)])===null||I===void 0x0?void 0x0:I['on']('error',L=>{const t=f;this[t(0x171)](t(0x162)+L[t(0x159)],v);}),(Z=this[f(0x146)])===null||Z===void 0x0?void 0x0:Z['on'](f(0x164),()=>{const G=f;if(this['status']==='success'){}else this[G(0x171)](G(0x17a),v);});});return(e=this[j(0x146)])===null||e===void 0x0?void 0x0:e[j(0x16a)](this[j(0x15d)]()),this[j(0x150)]=j(0x14d),q['finally'](()=>{const y=j;process[y(0x14a)](y(0x173),Y);});}[a9b(0x171)](e,o){const S=a9b;var h,p;o?(h=this['duplex'])===null||h===void 0x0?void 0x0:h[S(0x164)](()=>o(new Error(e))):(p=this[S(0x146)])===null||p===void 0x0?void 0x0:p[S(0x164)](),this['status']=S(0x175);}}exports[a9b(0x156)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9I=a9N;(function(x,N){const F=a9N,c=x();while(!![]){try{const a=parseInt(F(0x180))/0x1*(-parseInt(F(0x17f))/0x2)+parseInt(F(0x18d))/0x3+parseInt(F(0x18e))/0x4+parseInt(F(0x1b9))/0x5+parseInt(F(0x18c))/0x6+parseInt(F(0x1a1))/0x7+-parseInt(F(0x193))/0x8;if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a9x,0x6072b));function a9N(x,N){const c=a9x();return a9N=function(a,J){a=a-0x17a;let p=c[a];return p;},a9N(x,N);}var __createBinding=this&&this[a9I(0x17b)]||(Object[a9I(0x197)]?function(x,N,c,a){const z=a9I;if(a===undefined)a=c;var J=Object[z(0x1b3)](N,c);(!J||(z(0x1a6)in J?!N[z(0x1ab)]:J[z(0x184)]||J[z(0x1b4)]))&&(J={'enumerable':!![],'get':function(){return N[c];}}),Object['defineProperty'](x,a,J);}:function(x,N,c,a){if(a===undefined)a=c;x[a]=N[c];}),__setModuleDefault=this&&this[a9I(0x19d)]||(Object[a9I(0x197)]?function(x,N){const w=a9I;Object['defineProperty'](x,w(0x1a5),{'enumerable':!![],'value':N});}:function(x,N){const j=a9I;x[j(0x1a5)]=N;}),__importStar=this&&this[a9I(0x17c)]||function(x){const K=a9I;if(x&&x[K(0x1ab)])return x;var N={};if(x!=null){for(var c in x)if(c!=='default'&&Object['prototype']['hasOwnProperty']['call'](x,c))__createBinding(N,x,c);}return __setModuleDefault(N,x),N;},__awaiter=this&&this[a9I(0x187)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){const W=a9N;function s(M){const m=a9N;try{d(a[m(0x1aa)](M));}catch(A){e(A);}}function q(M){try{d(a['throw'](M));}catch(A){e(A);}}function d(M){const S=a9N;M[S(0x1bb)]?p(M[S(0x18a)]):J(M['value'])[S(0x1a4)](s,q);}d((a=a[W(0x1bc)](x,N||[]))[W(0x1aa)]());});},__importDefault=this&&this[a9I(0x188)]||function(x){const L=a9I;return x&&x[L(0x1ab)]?x:{'default':x};};Object[a9I(0x189)](exports,a9I(0x1ab),{'value':!![]}),exports[a9I(0x1a9)]=void 0x0;function a9x(){const Y=['startLogin','EventEmitter','toString','init','baseUrl','getOwnPropertyDescriptor','configurable','ws:','duplex','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','status','2372955woKQmm','initPackage','done','apply','idle','Login\x20process\x20stopped\x20before\x20completed','events','browser-opened','__createBinding','__importStar','https:','end','4JUOniv','358461NTAMkd','/v1/cli-login','error\x20happened\x20during\x20browser\x20login:\x20','message','writable','data','login-success','__awaiter','__importDefault','defineProperty','value','openBrowser','3411600gTsJiU','2111973xhcFTh','1361912XAhLfO','http:','stringify','finally','aborted','9501368SgFSgm','Failure\x20during\x20login:\x20','handleError','exit','create','Unable\x20to\x20open\x20browser:\x20','emit','wss:','replace','unable\x20to\x20parse\x20message:\x20','__setModuleDefault','parse','open','login-failure','1483888wFMttJ','removeListener','Unexpected\x20response,\x20api\x20token\x20missing','then','default','get','catch','Unexpected\x20response','NorthflankApiBrowserLogin','next','__esModule','success','SIGINT'];a9x=function(){return Y;};return a9x();}const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9I(0x19f))),events_1=require(a9I(0x1bf));class NorthflankApiBrowserLogin extends events_1[a9I(0x1af)]{constructor(x,N=!![]){const v=a9I;super(),this['baseUrl']=x,this[v(0x18b)]=N,this[v(0x1b8)]=v(0x1bd),this[v(0x1ba)]=()=>JSON[v(0x190)]({'type':v(0x1b1)});}[a9I(0x1ae)](){const h=a9I;var x;const N=this[h(0x1b2)][h(0x19b)](h(0x17d),h(0x19a))[h(0x19b)](h(0x18f),h(0x1b5)),c=N+h(0x181),a=new ws_1['default'](c),J=()=>__awaiter(this,void 0x0,void 0x0,function*(){const o=h;yield new Promise(e=>{const B=a9N;var s;(s=this[B(0x1b6)])===null||s===void 0x0?void 0x0:s[B(0x17e)](JSON[B(0x190)]({'type':B(0x192)}),()=>e());}),process[o(0x196)]();}),p=new Promise((s,q)=>{const G=h;var d,M,A;try{this['duplex']=(0x0,ws_1['createWebSocketStream'])(a),process['on'](G(0x1ad),J);}catch(l){q(new Error(G(0x1b7)+l[G(0x183)]));}(d=this[G(0x1b6)])===null||d===void 0x0?void 0x0:d['on'](G(0x185),Z=>{const E=G;var V;const g=JSON[E(0x19e)](Z[E(0x1b0)]());switch(g===null||g===void 0x0?void 0x0:g['type']){case'init-ack':{const {loginPage:P}=g;if(P===undefined){this[E(0x195)](E(0x1a8),q);return;}this['openBrowser']&&(0x0,open_1[E(0x1a5)])(P)[E(0x1a7)](n=>{const u=E,Q=u(0x198)+n[u(0x183)];this[u(0x195)](Q,q);});this[E(0x199)](E(0x17a),{'url':P});break;}case E(0x186):{const {apiToken:n,contextName:Q}=g;if(n===undefined){this['handleError'](E(0x1a3),q);return;}(V=this[E(0x1b6)])===null||V===void 0x0?void 0x0:V[E(0x17e)](),s({'token':n,'contextName':Q}),this[E(0x1b8)]=E(0x1ac);break;}case E(0x1a0):{const k=E(0x194)+(g===null||g===void 0x0?void 0x0:g[E(0x183)]);this[E(0x195)](k,q);break;}default:{const b=E(0x19c)+JSON['stringify'](g);this[E(0x195)](b,q);}}}),(M=this[G(0x1b6)])===null||M===void 0x0?void 0x0:M['on']('error',Z=>{const X=G;this[X(0x195)](X(0x182)+Z['message'],q);}),(A=this[G(0x1b6)])===null||A===void 0x0?void 0x0:A['on'](G(0x17e),()=>{const R=G;if(this[R(0x1b8)]===R(0x1ac)){}else this[R(0x195)](R(0x1be),q);});});return(x=this[h(0x1b6)])===null||x===void 0x0?void 0x0:x['write'](this[h(0x1ba)]()),this['status']=h(0x1b1),p[h(0x191)](()=>{const t=h;process[t(0x1a2)](t(0x1ad),J);});}[a9I(0x195)](x,N){const f=a9I;var c,a;N?(c=this[f(0x1b6)])===null||c===void 0x0?void 0x0:c[f(0x17e)](()=>N(new Error(x))):(a=this[f(0x1b6)])===null||a===void 0x0?void 0x0:a[f(0x17e)](),this[f(0x1b8)]='error';}}exports[a9I(0x1a9)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10K=a10o;(function(e,o){const M=a10o,h=e();while(!![]){try{const p=-parseInt(M(0x232))/0x1*(-parseInt(M(0x1e7))/0x2)+parseInt(M(0x240))/0x3+-parseInt(M(0x21b))/0x4+parseInt(M(0x209))/0x5*(-parseInt(M(0x248))/0x6)+-parseInt(M(0x206))/0x7+parseInt(M(0x243))/0x8+parseInt(M(0x23c))/0x9;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a10e,0x6863b));var __awaiter=this&&this[a10K(0x237)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const e0=a10o;function v(Z){const r=a10o;try{I(p[r(0x1f7)](Z));}catch(k){J(k);}}function s(Z){try{I(p['throw'](Z));}catch(k){J(k);}}function I(Z){const B=a10o;Z[B(0x212)]?q(Z['value']):Y(Z[B(0x234)])[B(0x1fc)](v,s);}I((p=p[e0(0x268)](e,o||[]))[e0(0x1f7)]());});},__importDefault=this&&this[a10K(0x20d)]||function(e){return e&&e['__esModule']?e:{'default':e};};function a10o(e,o){const h=a10e();return a10o=function(p,Y){p=p-0x1e1;let q=h[p];return q;},a10o(e,o);}Object['defineProperty'](exports,a10K(0x262),{'value':!![]}),exports['CliLogs']=void 0x0;function a10e(){const eY=['\x20for\x20all\x20containers','description','toUpperCase','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','service','46bmxPsC','LogType','getStandardLogCommand','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','\x0aDetails:\x20','--textIncludes\x20<text>','job','-f,\x20--tail','Id]',',\x20to:\x20','containerId',',\x20from:\x20','addonBackup','@northflank/js-client','Restore\x20to\x20get\x20logs\x20from','start','next','assertContextExisting','tsHint','getCommand','askForAddonBackup','then','jobId','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','--run\x20--runId\x20[runId]','bold','valueOf','--project\x20--projectId\x20[projectId]','build-','-l,\x20--lineLimit\x20[limit]','\x27Ctrl+C\x27','2701468eFgnyK','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','runId','5QJIVnn','getFormatter','error','close','__importDefault','regexIncludes','--noDefaults','commander','\x20with\x20live-tailing','done','Id\x20[','printInitInfo','apiContext','conflicts','Error\x20while\x20fetching\x20log\x20lines:\x20','textNotIncludes','apiClient','askForService','1754324fxbxTM','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','getCurrentProjectName','askForJob','../inquirer-helper','buildId','--container\x20--containerId\x20[containerId]','logsApiClient','regexNotIncludes','addOption','toISOString','Build\x20to\x20get\x20logs\x20from','message','../formatting/console-format-helpers',',\x20backup\x20id\x20','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','--startTime\x20<timestamp>','Number\x20of\x20lines\x20to\x20return.','slice','choices','deploymentId','charAt','getCurrentServiceName','16319OyULdG','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','value','yaml','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','__awaiter','formatLogLine','tail','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','Option','14480604DHgOaL','getCurrentJobName','noDefaults','logRange','223320lNeWMk','stringify','logs','47000VqjUAk','./log-formatter','log','\x20to\x20get\x20logs\x20from','parseDateInput','4875144fgOLrx','Deployment\x20id,\x20example:\x20my-service-54785f4','askForProject','addonId','addonRestore','backupId','alias','argParser','Log\x20session\x20ended','details','InquirerHelper',',\x20restore\x20id\x20','--regexIncludes\x20<regex>','\x20in\x20project\x20','action','ApiClient','getLogsCommand','--backup\x20--backupId\x20[backupId]','getSeconds','defaultDurationSeconds','assign','-d,\x20--direction\x20<order>','option','length','askForJobRun','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','__esModule','cursor','yml','data','textIncludes','setSeconds','apply','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','\x20--','default','backward','json','askForAddonRestore','-t,\x20--types\x20<types...>','printResponse','--endTime\x20<timestamp>','inquirerHelper','--duration\x20[duration]','Backup\x20to\x20get\x20logs\x20from','format'];a10e=function(){return eY;};return a10e();}const js_client_1=require(a10K(0x1f4)),chalk_1=__importDefault(require('chalk')),utils_1=require('../utils'),inquirer_helper_1=require(a10K(0x21f)),commander_1=require(a10K(0x210)),console_format_helpers_1=require(a10K(0x228)),log_formatter_1=require(a10K(0x244));class CliLogs{constructor(e){const e1=a10K;this[e1(0x215)]=e,this[e1(0x25b)]=0x708,this[e1(0x1e9)]=(o,h,p,Y)=>{const e2=e1,q=(0x0,utils_1[e2(0x1fa)])(!![])['name']((h?e2(0x203):'')+e2(0x242))[e2(0x24e)]((h?e2(0x203):'')+e2(0x245))[e2(0x1e3)]('Get\x20log\x20for\x20the\x20specified\x20'+o)['option'](e2(0x202),'Project\x20for\x20logs')[e2(0x25e)]('--'+o+e2(0x26a)+o+e2(0x213)+o+e2(0x1ef),o[e2(0x230)](0x0)[e2(0x1e4)]()+o[e2(0x22d)](0x1)+e2(0x246))[e2(0x25e)](e2(0x221),e2(0x233));if(h)q['option']('--build\x20--buildId\x20[buildId]',e2(0x226));if(o===e2(0x1ed))q[e2(0x25e)](e2(0x1ff),e2(0x269));if(o===e2(0x1e6))q[e2(0x25e)]('--deployment\x20--deploymentId\x20[deploymentId]',e2(0x249));if(p)q[e2(0x25e)](e2(0x259),e2(0x274));if(Y)q[e2(0x25e)]('--restore\x20--restoreId\x20[restoreId]',e2(0x1f5));return!h&&!p&&!Y&&q['addOption'](new commander_1[(e2(0x23b))](e2(0x26f),'Which\x20log\x20types\x20to\x20fetch')['choices'](Object['values'](js_client_1[e2(0x1e8)]))),q[e2(0x25e)](e2(0x1ee),e2(0x1e5))[e2(0x25e)](e2(0x204),e2(0x22c))[e2(0x25e)](e2(0x22b),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[e2(0x1f9)],utils_1['parseDateInput'])[e2(0x224)](new commander_1[(e2(0x23b))](e2(0x271),e2(0x23a)+utils_1[e2(0x1f9)])[e2(0x24f)](utils_1[e2(0x247)])['conflicts']([e2(0x239)]))[e2(0x25e)](e2(0x273),e2(0x261))[e2(0x224)](new commander_1[(e2(0x23b))](e2(0x25d),'Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.')[e2(0x22e)]([e2(0x26c),'forward'])['conflicts'](['tail']))[e2(0x224)](new commander_1[(e2(0x23b))](e2(0x1ec),e2(0x1ea))[e2(0x216)]([e2(0x218),e2(0x20e),e2(0x223)]))[e2(0x224)](new commander_1[(e2(0x23b))]('--textNotIncludes\x20<text>',e2(0x1fe))['conflicts']([e2(0x266),'regexIncludes',e2(0x223)]))['addOption'](new commander_1['Option'](e2(0x254),e2(0x236))[e2(0x216)]([e2(0x218),e2(0x266),e2(0x223)]))['addOption'](new commander_1[(e2(0x23b))]('--regexNotIncludes\x20<regex>',e2(0x22a))[e2(0x216)]([e2(0x218),'regexIncludes',e2(0x266)]))[e2(0x25e)](e2(0x20f),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])['addOption'](new commander_1[(e2(0x23b))]('-o,\x20--output\x20[output]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.')[e2(0x22e)](Object['values']([e2(0x1e1),e2(0x26d),'yaml']))),q;},this[e1(0x214)]=(o,h,p,Y)=>{const e3=e1,{containerName:q,restoreId:J,backupId:v,quiet:s,tail:I,startTime:Z,endTime:k,duration:L}=Y;if(s===!![])return;const F=I?'\x20(exit\x20with\x20'+chalk_1['default'][e3(0x200)](e3(0x205))+')':'',W=I?e3(0x211):'',N=new Date(),g=Z!==null&&Z!==void 0x0?Z:new Date(new Date((k!==null&&k!==void 0x0?k:N)[e3(0x201)]())['setSeconds']((k!==null&&k!==void 0x0?k:N)[e3(0x25a)]()-(L!==null&&L!==void 0x0?L:this[e3(0x25b)]))),w=(k!==null&&k!==void 0x0?k:Z!==undefined)?new Date(new Date(Z[e3(0x201)]())[e3(0x267)](Z['getSeconds']()+(L!==null&&L!==void 0x0?L:this[e3(0x25b)]))):N,C=v!==undefined,x=g&&!C?e3(0x1f2)+chalk_1[e3(0x26b)][e3(0x200)](g[e3(0x225)]()):'',l=w&&!C?e3(0x1f0)+chalk_1['default'][e3(0x200)](w[e3(0x225)]()):'',b=L?',\x20duration:\x20'+L+'\x20seconds':'',a=q?'\x20for\x20container\x20'+chalk_1[e3(0x26b)][e3(0x200)](q):C?'':e3(0x1e2),z=v?e3(0x229)+v:'',H=J?e3(0x253)+J:'',P=o+'\x20'+chalk_1[e3(0x26b)][e3(0x200)](h)+z+H+e3(0x255)+chalk_1['default']['bold'](p),V=''+x+l+b;console[e3(0x245)]('>\x20Container\x20logs'+W+a+'\x20of\x20'+P+V+F+':');},this[e1(0x20a)]=(o,h)=>(p,Y)=>{const e4=e1;if(!o){if(p[e4(0x25f)]===0x0)console['log'](e4(0x207));p['forEach'](q=>(0x0,log_formatter_1[e4(0x238)])(q,h));}else(0x0,console_format_helpers_1[e4(0x270)])(o,p);(Y===null||Y===void 0x0?void 0x0:Y['hasNextPage'])&&(0x0,utils_1['warning'])('Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20'+Y[e4(0x263)]);},this[e1(0x219)]=new js_client_1[(e1(0x257))](e,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']}),this[e1(0x222)]=this[e1(0x219)],this[e1(0x272)]=new inquirer_helper_1[(e1(0x252))](this[e1(0x219)]);}[a10K(0x258)](e,o=![],h=![],p=![]){const eh=a10K,Y=(k,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const e5=a10o,F=L[e5(0x23e)],{apiContext:W,inquirerHelper:N}=this;switch(e){case'service':{const g=F?undefined:W[e5(0x231)]();return L['serviceId']||g||(yield N[e5(0x21a)](k)());}case e5(0x1ed):{const w=F?undefined:W[e5(0x23d)]();return L[e5(0x1fd)]||w||(yield N[e5(0x21e)](k)());}case'addon':{return L[e5(0x24b)]||(yield N['askForAddon'](k)());}}}),q=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const e6=a10o;if(o)return F[e6(0x220)]||(yield this['inquirerHelper']['askForBuild'](k,e===e6(0x1e6)?L:undefined,e===e6(0x1ed)?L:undefined,!![])());return undefined;}),J=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const e7=a10o;if(h||p)return F[e7(0x24d)]||(yield this[e7(0x272)][e7(0x1fb)](k,L)());return undefined;}),v=(k,L,F,W)=>__awaiter(this,void 0x0,void 0x0,function*(){const e8=a10o;if(p)return W['restoreId']||(yield this[e8(0x272)][e8(0x26e)](k,L,F)());return undefined;}),s=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const e9=a10o;if(!o&&F[e9(0x1f1)]!==undefined){if(F['containerId']!==!![])return F[e9(0x1f1)];return yield this[e9(0x272)]['askForContainer'](k,e===e9(0x1e6)?L:undefined,e===e9(0x1ed)?L:undefined,!![])();}return undefined;}),I=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const ee=a10o;if(e===ee(0x1ed))return F[ee(0x208)]||(yield this['inquirerHelper'][ee(0x260)](L,k,!![])());return undefined;}),Z=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const eo=a10o;if(e===eo(0x1e6)){if(F['deploymentId']!==!![])return F[eo(0x22f)];return F[eo(0x22f)];}return undefined;});return this[eh(0x1e9)](e,o,h,p)[eh(0x256)](k=>__awaiter(this,void 0x0,void 0x0,function*(){const ep=eh,{noDefaults:L,projectId:F,quiet:W,tail:N,types:g,textIncludes:w,textNotIncludes:C,regexIncludes:x,regexNotIncludes:l,direction:b,lineLimit:a,startTime:z,endTime:H,duration:P,output:V}=k;(0x0,utils_1[ep(0x1f8)])(this[ep(0x219)]);const {apiContext:u,inquirerHelper:c,logsApiClient:n}=this,d=L?undefined:u[ep(0x21d)](),j=F||d||(yield c[ep(0x24a)]()),Q=yield Y(j,k),D=yield q(j,Q,k),f=yield J(j,Q,k),i=yield v(j,Q,f,k),R=yield I(j,Q,k),t=yield Z(j,Q,k),G=yield s(j,Q,k);if(z&&H&&P)throw new Error(ep(0x21c));const y={'projectId':j,'entityId':Q},S={'containerName':G,'types':g,'textIncludes':w,'textNotIncludes':C,'regexIncludes':x,'regexNotIncludes':l,'lineLimit':a,'startTime':z,'duration':P,'runId':R,'buildId':D,'backupId':f,'restoreId':i,'deploymentId':t,'isBuild':o!==null&&o!==void 0x0?o:![]},X=p?ep(0x24c):h?ep(0x1f3):e,m=Object['assign'](Object[ep(0x25c)]({},S),{'endTime':H,'direction':b});if(!W&&V!==ep(0x235)&&V!==ep(0x264)&&V!==ep(0x26d))this['printInitInfo'](e,Q,j,Object[ep(0x25c)](Object[ep(0x25c)]({},m),k));const U=this[ep(0x20a)](V,w!==null&&w!==void 0x0?w:x);if(N){const T=yield n[ep(0x242)]['logTail'](y,S,X);T['on']('logs-received',U),T['on']('error',O=>(0x0,utils_1['error'])('Error\x20while\x20tailing\x20log\x20lines:\x20'+O[ep(0x227)])),T['on'](ep(0x20c),()=>console['log'](ep(0x250))),yield T[ep(0x1f6)]();}else{const O=yield n['logs'][ep(0x23f)](y,m,X);if(O[ep(0x20b)]){const E=O[ep(0x20b)][ep(0x251)],A=E?ep(0x1eb)+JSON[ep(0x241)](E,null,'\x20'):'';(0x0,utils_1['error'])(ep(0x217)+O[ep(0x20b)][ep(0x227)]+A);}else U(O[ep(0x265)],O['pagination']);}}));}}exports['CliLogs']=CliLogs;
1
+ 'use strict';const a10C=a10N;function a10N(x,N){const c=a10x();return a10N=function(a,J){a=a-0x141;let p=c[a];return p;},a10N(x,N);}(function(x,N){const y=a10N,c=x();while(!![]){try{const a=parseInt(y(0x182))/0x1+-parseInt(y(0x18c))/0x2+parseInt(y(0x158))/0x3+-parseInt(y(0x147))/0x4*(parseInt(y(0x1cf))/0x5)+parseInt(y(0x14e))/0x6*(-parseInt(y(0x173))/0x7)+parseInt(y(0x19d))/0x8*(-parseInt(y(0x1d6))/0x9)+parseInt(y(0x160))/0xa;if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a10x,0x1fd07));var __awaiter=this&&this[a10C(0x156)]||function(x,N,c,a){function J(p){return p instanceof c?p:new c(function(e){e(p);});}return new(c||(c=Promise))(function(p,e){function s(M){const T=a10N;try{d(a[T(0x191)](M));}catch(A){e(A);}}function q(M){try{d(a['throw'](M));}catch(A){e(A);}}function d(M){const O=a10N;M[O(0x143)]?p(M[O(0x17c)]):J(M['value'])[O(0x14d)](s,q);}d((a=a['apply'](x,N||[]))['next']());});},__importDefault=this&&this[a10C(0x1a2)]||function(x){const x0=a10C;return x&&x[x0(0x15d)]?x:{'default':x};};Object[a10C(0x152)](exports,'__esModule',{'value':!![]}),exports['CliLogs']=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10C(0x185))),utils_1=require('../utils'),inquirer_helper_1=require(a10C(0x188)),commander_1=require('commander'),console_format_helpers_1=require(a10C(0x15b)),log_formatter_1=require('./log-formatter');class CliLogs{constructor(x){const x1=a10C;this['apiContext']=x,this[x1(0x1b4)]=0x708,this[x1(0x1c5)]=(N,c,a,J)=>{const x2=x1,p=(0x0,utils_1['getCommand'])(!![])[x2(0x165)]((c?x2(0x1b9):'')+'logs')[x2(0x1a4)]((c?x2(0x1b9):'')+x2(0x1ce))[x2(0x1b0)](x2(0x1d3)+N)[x2(0x1d0)](x2(0x14a),x2(0x183))[x2(0x1d0)]('--'+N+x2(0x1d4)+N+'Id\x20['+N+x2(0x15a),N['charAt'](0x0)['toUpperCase']()+N[x2(0x1d7)](0x1)+x2(0x141))['option'](x2(0x19a),'Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)');if(c)p[x2(0x1d0)](x2(0x181),x2(0x1a6));if(N===x2(0x153))p[x2(0x1d0)]('--run\x20--runId\x20[runId]',x2(0x14c));if(N===x2(0x1c3))p['option'](x2(0x15f),x2(0x1b6));if(a)p[x2(0x1d0)](x2(0x1a0),x2(0x198));if(J)p[x2(0x1d0)](x2(0x195),x2(0x164));return!c&&!a&&!J&&p[x2(0x19b)](new commander_1[(x2(0x1d2))](x2(0x172),x2(0x179))[x2(0x1aa)](Object[x2(0x17e)](js_client_1[x2(0x159)]))),p['option']('-f,\x20--tail',x2(0x186))[x2(0x1d0)]('-l,\x20--lineLimit\x20[limit]',x2(0x171))[x2(0x1d0)](x2(0x174),x2(0x1a7)+utils_1['tsHint'],utils_1['parseDateInput'])[x2(0x19b)](new commander_1[(x2(0x1d2))](x2(0x15c),x2(0x1d5)+utils_1[x2(0x1bb)])[x2(0x17b)](utils_1[x2(0x184)])[x2(0x148)]([x2(0x1ca)]))['option'](x2(0x178),x2(0x1a1))['addOption'](new commander_1[(x2(0x1d2))](x2(0x16a),x2(0x1a9))[x2(0x1aa)]([x2(0x1ab),'forward'])[x2(0x148)]([x2(0x1ca)]))[x2(0x19b)](new commander_1[(x2(0x1d2))](x2(0x1af),x2(0x18b))[x2(0x148)](['textNotIncludes','regexIncludes','regexNotIncludes']))[x2(0x19b)](new commander_1[(x2(0x1d2))]('--textNotIncludes\x20<text>',x2(0x1ba))[x2(0x148)]([x2(0x176),x2(0x155),x2(0x192)]))[x2(0x19b)](new commander_1['Option'](x2(0x1b3),x2(0x1bf))['conflicts'](['textNotIncludes',x2(0x176),x2(0x192)]))[x2(0x19b)](new commander_1[(x2(0x1d2))]('--regexNotIncludes\x20<regex>',x2(0x199))[x2(0x148)]([x2(0x14f),'regexIncludes',x2(0x176)]))[x2(0x1d0)](x2(0x16d),x2(0x1bd),![])[x2(0x19b)](new commander_1[(x2(0x1d2))]('-o,\x20--output\x20[output]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.')['choices'](Object[x2(0x17e)]([x2(0x168),x2(0x16f),x2(0x163)]))),p;},this[x1(0x1c1)]=(N,c,a,J)=>{const x3=x1,{containerName:p,restoreId:e,backupId:s,quiet:q,tail:d,startTime:M,endTime:A,duration:l}=J;if(q===!![])return;const Z=d?x3(0x18d)+chalk_1['default'][x3(0x18a)]('\x27Ctrl+C\x27')+')':'',V=d?x3(0x1a3):'',g=new Date(),P=M!==null&&M!==void 0x0?M:new Date(new Date((A!==null&&A!==void 0x0?A:g)[x3(0x1c0)]())[x3(0x1cb)]((A!==null&&A!==void 0x0?A:g)[x3(0x197)]()-(l!==null&&l!==void 0x0?l:this['defaultDurationSeconds']))),n=(A!==null&&A!==void 0x0?A:M!==undefined)?new Date(new Date(M['valueOf']())[x3(0x1cb)](M[x3(0x197)]()+(l!==null&&l!==void 0x0?l:this[x3(0x1b4)]))):g,Q=s!==undefined,k=P&&!Q?',\x20from:\x20'+chalk_1[x3(0x17f)][x3(0x18a)](P['toISOString']()):'',b=n&&!Q?x3(0x1d8)+chalk_1[x3(0x17f)][x3(0x18a)](n[x3(0x193)]()):'',F=l?x3(0x1be)+l+x3(0x1ae):'',I=p?x3(0x150)+chalk_1[x3(0x17f)][x3(0x18a)](p):Q?'':x3(0x1d1),z=s?x3(0x154)+s:'',w=e?x3(0x1a8)+e:'',j=N+'\x20'+chalk_1[x3(0x17f)]['bold'](c)+z+w+'\x20in\x20project\x20'+chalk_1[x3(0x17f)][x3(0x18a)](a),K=''+k+b+F;console[x3(0x1ce)](x3(0x1bc)+V+I+x3(0x18e)+j+K+Z+':');},this[x1(0x1c9)]=(N,c)=>(a,J)=>{const x4=x1;if(!N){if(a[x4(0x1b8)]===0x0)console['log'](x4(0x1ac));a[x4(0x167)](p=>(0x0,log_formatter_1['formatLogLine'])(p,c));}else(0x0,console_format_helpers_1[x4(0x17d)])(N,a);(J===null||J===void 0x0?void 0x0:J[x4(0x1da)])&&(0x0,utils_1[x4(0x151)])('Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20'+J['cursor']);},this['apiClient']=new js_client_1[(x1(0x162))](x,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[x1(0x15e)]}),this[x1(0x14b)]=this[x1(0x175)],this[x1(0x145)]=new inquirer_helper_1['InquirerHelper'](this[x1(0x175)]);}['getLogsCommand'](x,N=![],c=![],a=![]){const xc=a10C,J=(A,l)=>__awaiter(this,void 0x0,void 0x0,function*(){const x5=a10N,Z=l[x5(0x169)],{apiContext:V,inquirerHelper:g}=this;switch(x){case x5(0x1c3):{const P=Z?undefined:V[x5(0x194)]();return l[x5(0x189)]||P||(yield g[x5(0x1dd)](A)());}case x5(0x153):{const n=Z?undefined:V[x5(0x1b2)]();return l[x5(0x180)]||n||(yield g[x5(0x19f)](A)());}case x5(0x1db):{return l[x5(0x1cc)]||(yield g['askForAddon'](A)());}}}),p=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const x6=a10N;if(N)return Z[x6(0x1c6)]||(yield this[x6(0x145)][x6(0x1ad)](A,x==='service'?l:undefined,x==='job'?l:undefined,!![])());return undefined;}),e=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const x7=a10N;if(c||a)return Z[x7(0x1cd)]||(yield this['inquirerHelper'][x7(0x1c8)](A,l)());return undefined;}),s=(A,l,Z,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const x8=a10N;if(a)return V[x8(0x161)]||(yield this['inquirerHelper'][x8(0x196)](A,l,Z)());return undefined;}),q=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const x9=a10N;if(!N&&Z[x9(0x18f)]!==undefined){if(Z[x9(0x18f)]!==!![])return Z[x9(0x18f)];return yield this[x9(0x145)]['askForContainer'](A,x===x9(0x1c3)?l:undefined,x===x9(0x153)?l:undefined,!![])();}return undefined;}),d=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const xx=a10N;if(x===xx(0x153))return Z[xx(0x1a5)]||(yield this['inquirerHelper'][xx(0x1b7)](l,A,!![])());return undefined;}),M=(A,l,Z)=>__awaiter(this,void 0x0,void 0x0,function*(){const xN=a10N;if(x===xN(0x1c3)){if(Z['deploymentId']!==!![])return Z[xN(0x177)];return Z[xN(0x177)];}return undefined;});return this[xc(0x1c5)](x,N,c,a)[xc(0x1c2)](A=>__awaiter(this,void 0x0,void 0x0,function*(){const xa=xc,{noDefaults:l,projectId:Z,quiet:V,tail:g,types:P,textIncludes:n,textNotIncludes:Q,regexIncludes:k,regexNotIncludes:b,direction:F,lineLimit:I,startTime:z,endTime:w,duration:j,output:K}=A;(0x0,utils_1['assertContextExisting'])(this['apiClient']);const {apiContext:m,inquirerHelper:S,logsApiClient:W}=this,L=l?undefined:m[xa(0x19c)](),v=Z||L||(yield S[xa(0x1de)]()),h=yield J(v,A),B=yield p(v,h,A),o=yield e(v,h,A),G=yield s(v,h,o,A),E=yield d(v,h,A),u=yield M(v,h,A),X=yield q(v,h,A);if(z&&w&&j)throw new Error(xa(0x144));const R={'projectId':v,'entityId':h},t={'containerName':X,'types':P,'textIncludes':n,'textNotIncludes':Q,'regexIncludes':k,'regexNotIncludes':b,'lineLimit':I,'startTime':z,'duration':j,'runId':E,'buildId':B,'backupId':o,'restoreId':G,'deploymentId':u,'isBuild':N!==null&&N!==void 0x0?N:![]},f=a?'addonRestore':c?xa(0x1b1):x,Y=Object[xa(0x16e)](Object['assign']({},t),{'endTime':w,'direction':F});if(!V&&K!==xa(0x163)&&K!==xa(0x16b)&&K!=='json')this[xa(0x1c1)](x,h,v,Object[xa(0x16e)](Object[xa(0x16e)]({},Y),A));const H=this[xa(0x1c9)](K,n!==null&&n!==void 0x0?n:k);if(g){const D=yield W[xa(0x142)][xa(0x1d9)](R,t,f);D['on'](xa(0x1c4),H),D['on'](xa(0x170),r=>(0x0,utils_1['error'])(xa(0x19e)+r['message'])),D['on'](xa(0x1b5),()=>console[xa(0x1ce)](xa(0x190))),yield D[xa(0x1c7)]();}else{const r=yield W['logs'][xa(0x1dc)](R,Y,f);if(r[xa(0x170)]){const i=r[xa(0x170)][xa(0x17a)],U=i?xa(0x157)+JSON[xa(0x16c)](i,null,'\x20'):'';(0x0,utils_1[xa(0x170)])(xa(0x149)+r[xa(0x170)]['message']+U);}else H(r[xa(0x187)],r[xa(0x146)]);}}));}}function a10x(){const xJ=['--duration\x20[duration]','Which\x20log\x20types\x20to\x20fetch','details','argParser','value','printResponse','values','default','jobId','--build\x20--buildId\x20[buildId]','64394ONCyiR','Project\x20for\x20logs','parseDateInput','chalk','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','data','../inquirer-helper','serviceId','bold','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','263964Ahwzck','\x20(exit\x20with\x20','\x20of\x20','containerId','Log\x20session\x20ended','next','regexNotIncludes','toISOString','getCurrentServiceName','--restore\x20--restoreId\x20[restoreId]','askForAddonRestore','getSeconds','Backup\x20to\x20get\x20logs\x20from','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','--container\x20--containerId\x20[containerId]','addOption','getCurrentProjectName','224FvOBcF','Error\x20while\x20tailing\x20log\x20lines:\x20','askForJob','--backup\x20--backupId\x20[backupId]','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','__importDefault','\x20with\x20live-tailing','alias','runId','Build\x20to\x20get\x20logs\x20from','Get\x20logs\x20generated\x20after\x20this\x20time,\x20',',\x20restore\x20id\x20','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','choices','backward','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','askForBuild','\x20seconds','--textIncludes\x20<text>','description','addonBackup','getCurrentJobName','--regexIncludes\x20<regex>','defaultDurationSeconds','close','Deployment\x20id,\x20example:\x20my-service-54785f4','askForJobRun','length','build-','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','tsHint','>\x20Container\x20logs','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',',\x20duration:\x20','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','valueOf','printInitInfo','action','service','logs-received','getStandardLogCommand','buildId','start','askForAddonBackup','getFormatter','tail','setSeconds','addonId','backupId','log','5nXsvor','option','\x20for\x20all\x20containers','Option','Get\x20log\x20for\x20the\x20specified\x20','\x20--','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','12321bOXbWx','slice',',\x20to:\x20','logTail','hasNextPage','addon','logRange','askForService','askForProject','\x20to\x20get\x20logs\x20from','logs','done','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','inquirerHelper','pagination','238276HkcaEt','conflicts','Error\x20while\x20fetching\x20log\x20lines:\x20','--project\x20--projectId\x20[projectId]','logsApiClient','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','then','1439388rSCfef','textNotIncludes','\x20for\x20container\x20','warning','defineProperty','job',',\x20backup\x20id\x20','regexIncludes','__awaiter','\x0aDetails:\x20','747792DDcFCu','LogType','Id]','../formatting/console-format-helpers','--endTime\x20<timestamp>','__esModule','customUserAgent','--deployment\x20--deploymentId\x20[deploymentId]','2864340iwxoAs','restoreId','ApiClient','yaml','Restore\x20to\x20get\x20logs\x20from','name','CliLogs','forEach','format','noDefaults','-d,\x20--direction\x20<order>','yml','stringify','--noDefaults','assign','json','error','Number\x20of\x20lines\x20to\x20return.','-t,\x20--types\x20<types...>','7azsxgH','--startTime\x20<timestamp>','apiClient','textIncludes','deploymentId'];a10x=function(){return xJ;};return a10x();}exports[a10C(0x166)]=CliLogs;
@@ -1 +1 @@
1
- 'use strict';const a11Z=a11o;(function(e,o){const I=a11o,h=e();while(!![]){try{const p=-parseInt(I(0x19c))/0x1*(parseInt(I(0x19a))/0x2)+-parseInt(I(0x185))/0x3+parseInt(I(0x18b))/0x4*(parseInt(I(0x19b))/0x5)+parseInt(I(0x196))/0x6+-parseInt(I(0x190))/0x7*(-parseInt(I(0x199))/0x8)+-parseInt(I(0x19f))/0x9+-parseInt(I(0x186))/0xa;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a11e,0x86bb0));var __importDefault=this&&this[a11Z(0x183)]||function(e){const k=a11Z;return e&&e[k(0x194)]?e:{'default':e};};Object['defineProperty'](exports,a11Z(0x194),{'value':!![]}),exports[a11Z(0x198)]=exports[a11Z(0x18e)]=void 0x0;const chalk_1=__importDefault(require(a11Z(0x191)));exports[a11Z(0x18e)]=[{'color':'grey','pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':a11Z(0x189),'pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':'grey','pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':'grey','pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11Z(0x195),'pattern':new RegExp('s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11Z(0x19d),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11Z(0x1a1),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11Z(0x18d),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11Z(0x188),'pattern':/\b(information|info|debug)\b/i},{'color':'yellow','pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a11Z(0x1a1),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];function a11e(){const W=['\x20--\x20','1393VBjLNF','chalk','color','default','__esModule','bold','3765786ckBOyo','reduce','formatLogLine','22496nNqaKm','2ISzrTJ','4168950ZfoCrz','11017QvZQpc','green','toISOString','8021637jgRJMD','pattern','blue','__importDefault','log','86511xOmMyL','5380060Nkoyey','cyan','gray','grey','replace','4XRgKQV','containerId','red','defaultLogSyntax'];a11e=function(){return W;};return a11e();}function a11o(e,o){const h=a11e();return a11o=function(p,Y){p=p-0x183;let q=h[p];return q;},a11o(e,o);}const formatLogLine=(e,o)=>{const L=a11Z,h=chalk_1[L(0x193)]['dim'](e['ts'][L(0x19e)]()),p=chalk_1[L(0x193)][L(0x187)](e[L(0x18c)]),Y=exports[L(0x18e)][L(0x197)]((J,v)=>{const F=L;return J[F(0x18a)](v[F(0x1a0)],s=>v[F(0x192)]?chalk_1[F(0x193)][v[F(0x192)]](s):chalk_1[F(0x193)]['grey'](s));},e[L(0x184)]),q=o?Y[L(0x18a)](new RegExp(o,'g'),J=>chalk_1[L(0x193)]['bold'](J)):Y;console[L(0x184)](h+'\x20'+p+L(0x18f)+q);};exports[a11Z(0x198)]=formatLogLine;
1
+ 'use strict';const a11M=a11N;(function(x,N){const d=a11N,c=x();while(!![]){try{const a=-parseInt(d(0xa4))/0x1*(-parseInt(d(0x9a))/0x2)+-parseInt(d(0x93))/0x3+parseInt(d(0x99))/0x4+-parseInt(d(0x97))/0x5*(parseInt(d(0xa2))/0x6)+-parseInt(d(0x91))/0x7*(-parseInt(d(0x8b))/0x8)+parseInt(d(0x9e))/0x9*(parseInt(d(0x87))/0xa)+parseInt(d(0x90))/0xb*(-parseInt(d(0x9b))/0xc);if(a===N)break;else c['push'](c['shift']());}catch(J){c['push'](c['shift']());}}}(a11x,0x74bff));var __importDefault=this&&this[a11M(0x8f)]||function(x){return x&&x['__esModule']?x:{'default':x};};Object[a11M(0x9c)](exports,'__esModule',{'value':!![]}),exports[a11M(0x9d)]=exports[a11M(0x98)]=void 0x0;function a11x(){const Z=['598290aTqDVi','color','2377539bulYAP','gray','dim','default','5HxlgfD','defaultLogSyntax','3511676AnMkqS','2NXRjni','12HoEiTx','defineProperty','formatLogLine','18PEpuGN','toISOString','chalk','bold','3894366aygfnk','greenBright','881585rfQPhd','grey','3283640rEjlIt','yellow','replace','green','8hdsoUj','blue','red','log','__importDefault','6401131XsIuTG'];a11x=function(){return Z;};return a11x();}function a11N(x,N){const c=a11x();return a11N=function(a,J){a=a-0x86;let p=c[a];return p;},a11N(x,N);}const chalk_1=__importDefault(require(a11M(0xa0)));exports['defaultLogSyntax']=[{'color':a11M(0x86),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':'grey','pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':a11M(0x86),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11M(0x86),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11M(0xa1),'pattern':new RegExp('s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','i')},{'color':a11M(0x8a),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11M(0x8a),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11M(0x8c),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11M(0xa3),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11M(0x8d),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11M(0x94),'pattern':/\b(information|info|debug)\b/i},{'color':a11M(0x88),'pattern':/\b(warning|warn)\b/i},{'color':a11M(0x8c),'pattern':/[0-9a-f]{64}/i},{'color':a11M(0x8c),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(x,N)=>{const A=a11M,c=chalk_1['default'][A(0x95)](x['ts'][A(0x9f)]()),a=chalk_1[A(0x96)]['cyan'](x['containerId']),J=exports[A(0x98)]['reduce']((e,s)=>{const l=A;return e[l(0x89)](s['pattern'],q=>s['color']?chalk_1[l(0x96)][s[l(0x92)]](q):chalk_1['default']['grey'](q));},x[A(0x8e)]),p=N?J[A(0x89)](new RegExp(N,'g'),e=>chalk_1[A(0x96)][A(0xa1)](e)):J;console[A(0x8e)](c+'\x20'+a+'\x20--\x20'+p);};exports[a11M(0x9d)]=formatLogLine;