@northflank/cli 0.10.4 → 0.10.6

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 a5k=a5K;(function(Z,K){const n=a5K,O=Z();while(!![]){try{const g=-parseInt(n(0x19c))/0x1+parseInt(n(0x16d))/0x2+parseInt(n(0x178))/0x3+-parseInt(n(0x173))/0x4*(-parseInt(n(0x1a3))/0x5)+-parseInt(n(0x193))/0x6+-parseInt(n(0x17e))/0x7+parseInt(n(0x183))/0x8;if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a5Z,0xc029d));function a5Z(){const e=['slice','getStandardExecCommand','greenBright','__esModule','pipe','7753501OieDZH','addCommand','__awaiter','resize','Id\x20[NAME]','14018424ZKvYkl','customUserAgent','service','option','isTTY','setRawMode','ApiClient','--group\x20[GROUP]','then','warning','\x27Ctrl+D\x27','action','CliExec','stdin','execServiceSession','shell\x20command\x20','8824128OtWBdp','--container\x20--containerId\x20[NAME]','exec','\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','\x20--','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.','\x20command\x20exec:\x20','execStartLog','columns','837209nMVQlD','default','\x20in\x20project\x20','filter','bold','execCmd','askForProject','15VxiFiE','apiClient','readline','stdout','exit','stdIn','Exec\x20','log','defineProperty','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','stdOut','emitKeypressEvents','value','assertContextExisting','Project\x20for\x20exec','--user\x20[USER]','\x20to\x20exec\x20into','keypress','apply',',\x20exit\x20code:\x20','__importDefault','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','askForService','with\x20group:','--shell-cmd\x20[SHELL-CMD]','rows','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','name','getTerminalSize','join','waitForCommandResult','Command\x20exec\x20for\x20the\x20specified\x20','job','message','../utils','askForJob','../inquirer-helper','Unknown','getCurrentServiceName','Run\x20command\x20with\x20this\x20group','Command\x20completed\x20successfully,\x20exit\x20code:\x20','description','InquirerHelper','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','3081042CFekHg','status','chalk','next','error','getCommand','892396DQDiEJ','handleShellSession','resizeTerminal','getCurrentProjectName','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.','721560NsrjkR'];a5Z=function(){return e;};return a5Z();}var __awaiter=this&&this[a5k(0x180)]||function(Z,K,O,g){function N(H){return H instanceof O?H:new O(function(o){o(H);});}return new(O||(O=Promise))(function(H,o){const r=a5K;function s(W){const x=a5K;try{y(g[x(0x170)](W));}catch(B){o(B);}}function R(W){try{y(g['throw'](W));}catch(B){o(B);}}function y(W){const m=a5K;W['done']?H(W['value']):N(W[m(0x1af)])[m(0x18b)](s,R);}y((g=g[r(0x1b5)](Z,K||[]))[r(0x170)]());});},__importDefault=this&&this[a5k(0x1b7)]||function(Z){const D=a5k;return Z&&Z[D(0x17c)]?Z:{'default':Z};};Object[a5k(0x1ab)](exports,a5k(0x17c),{'value':!![]}),exports[a5k(0x18f)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a5k(0x16f))),utils_1=require(a5k(0x1c5)),inquirer_helper_1=require(a5k(0x1c7));function a5K(Z,K){const O=a5Z();return a5K=function(g,N){g=g-0x167;let H=O[g];return H;},a5K(Z,K);}class CliExec{constructor(Z,K){const d=a5k;this[d(0x17a)]=H=>(0x0,utils_1['getCommand'])(!![])['name'](H)['description'](d(0x1c2)+H+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+H+'\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20'+H+d(0x1ac)+H+d(0x196)+H+'\x20--shell-cmd\x20\x27sh\x27')['option']('--project\x20--projectId\x20[NAME]',d(0x1b1))[d(0x186)]('--'+H+d(0x197)+H+d(0x182),H['charAt'](0x0)['toUpperCase']()+H[d(0x179)](0x1)+d(0x1b3))[d(0x186)](d(0x194),'Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)')[d(0x186)](d(0x1bb),d(0x177))[d(0x186)](d(0x1b2),'Run\x20command\x20with\x20this\x20user')[d(0x186)](d(0x18a),d(0x168))[d(0x186)]('--noDefaults',d(0x16c),![])[d(0x186)]('--cmd\x20--command\x20[COMMAND]',d(0x198)),this[d(0x1bf)]=()=>({'columns':process[d(0x1a6)][d(0x19b)],'rows':process[d(0x1a6)][d(0x1bc)]}),this[d(0x19a)]=(H,o,s,R,y,W,B,V)=>{const b=d;if(V===!![])return;const M=R==='none',I=M?'without\x20shell':R===undefined?'with\x20shell\x20session':b(0x192)+chalk_1[b(0x19d)][b(0x17b)](R),c=y!==undefined?'with\x20user:'+y:'',E=W!==undefined?b(0x1ba)+W:'',p=B!==undefined?'with\x20command\x20\x27'+chalk_1[b(0x19d)][b(0x17b)](B)+'\x27':'',T=[p,I,c,E][b(0x19f)](q=>q!=='')[b(0x1c0)]('\x20'),J='(exit\x20with\x20two\x20quick\x20'+chalk_1['default']['bold'](b(0x18d))+')';console[b(0x1aa)](b(0x1a9)+H+'\x20'+chalk_1['default'][b(0x1a0)](o)+b(0x19e)+chalk_1[b(0x19d)][b(0x1a0)](s)+'\x20'+T+'\x20'+J);},this[d(0x174)]=(H,o,s=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const l=d;var R,y;let W=![];try{if(process['stdin'][l(0x187)]){const V=require(l(0x1a5));V[l(0x1ae)](process[l(0x190)]),process[l(0x190)][l(0x188)](!![]),process[l(0x1a6)]['on'](l(0x181),()=>{const f=l;H[f(0x175)](this[f(0x1bf)]());}),process['stdin']['on'](l(0x1b4),(M,I)=>{const a=l;I['sequence']==='\x04'&&(W?(process[a(0x190)]['setRawMode'](![]),(0x0,utils_1[a(0x18c)])(a(0x1bd)),process[a(0x1a7)]()):(W=!![],setTimeout(()=>W=![],0x190)));});}process[l(0x190)]['pipe'](H[l(0x1a8)]),H['stdErr']['pipe'](process['stderr']),H[l(0x1ad)][l(0x17d)](process[l(0x1a6)]),H['on']('error',M=>{const v=l;var I;(0x0,utils_1['error'])('Error\x20occured\x20during\x20'+o+v(0x199)+((I=M[v(0x1c4)])!==null&&I!==void 0x0?I:M)),process[v(0x190)][v(0x187)]&&process[v(0x190)]['setRawMode'](![]),process['exit'](-0x1);});const B=yield H[l(0x1c1)]();if(s!==!![]){const M=(R=B===null||B===void 0x0?void 0x0:B[l(0x16e)])!==null&&R!==void 0x0?R:l(0x1c8),I=(y=B===null||B===void 0x0?void 0x0:B['exitCode'])!==null&&y!==void 0x0?y:-0x1,c=(B===null||B===void 0x0?void 0x0:B[l(0x1c4)])?',\x20details:\x20'+B['message']:'';M==='Success'?(0x0,utils_1['success'])(l(0x169)+I):(0x0,utils_1[l(0x18c)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+M+l(0x1b6)+I+c);}return B;}finally{process['stdin'][l(0x187)]&&process['stdin']['setRawMode'](![]);}}),this['apiClient']=new js_client_1[(d(0x189))](Z,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[d(0x184)],'agent':K});const O=new inquirer_helper_1[(d(0x16b))](this['apiClient']);this[d(0x1a1)]=(0x0,utils_1[d(0x172)])()[d(0x1be)]('command-exec')['alias'](d(0x195))[d(0x16a)](d(0x1b8));const g=this['getStandardExecCommand'](d(0x185))[d(0x18e)](H=>__awaiter(this,void 0x0,void 0x0,function*(){const L=d,{noDefaults:o,projectId:s,serviceId:R,containerId:y,shellCmd:W,user:B,group:V,command:M,quiet:I}=H;(0x0,utils_1[L(0x1b0)])(this[L(0x1a4)]);try{const c=o?undefined:Z[L(0x176)](),E=s||c||(yield O[L(0x1a2)]()),p=o?undefined:Z[L(0x167)](),T=R||p||(yield O[L(0x1b9)](E)()),J=W!==null&&W!==void 0x0?W:M!==undefined?'none':undefined;this[L(0x19a)](L(0x185),T,E,J,B,V,M,I);const q=process[L(0x1a6)][L(0x19b)],Y=process[L(0x1a6)][L(0x1bc)],P={'projectId':E,'serviceId':T},C=yield this[L(0x1a4)][L(0x195)][L(0x191)](P,{'containerName':y,'command':M,'shell':J,'user':B,'group':V,'ttyColumns':q,'ttyRows':Y});yield this[L(0x174)](C,'service',I);}catch(S){(0x0,utils_1[L(0x171)])(''+S[L(0x1c4)]);}finally{process['exit']();}})),N=this[d(0x17a)](d(0x1c3))[d(0x18e)](H=>__awaiter(this,void 0x0,void 0x0,function*(){const X=d,{projectId:o,jobId:s,containerId:R,noDefaults:y,shellCmd:W,user:B,group:V,command:M,quiet:I}=H;(0x0,utils_1[X(0x1b0)])(this[X(0x1a4)]);try{const c=y?undefined:Z[X(0x176)](),E=o||c||(yield O['askForProject']()),p=s||(yield O[X(0x1c6)](E)());this[X(0x19a)](X(0x1c3),p,E,W,I);const {rows:T,columns:J}=this[X(0x1bf)](),q={'projectId':E,'jobId':p},Y=yield this[X(0x1a4)][X(0x195)]['execJobSession'](q,{'containerName':R,'command':M,'shell':W,'user':B,'group':V,'ttyColumns':J,'ttyRows':T});yield this[X(0x174)](Y,X(0x1c3),I);}catch(P){(0x0,utils_1[X(0x171)])(''+P['message']);}finally{process[X(0x1a7)]();}}));this[d(0x1a1)][d(0x17f)](g),this[d(0x1a1)][d(0x17f)](N);}}exports['CliExec']=CliExec;
1
+ 'use strict';const a5f=a5g;(function(O,g){const H=a5g,R=O();while(!![]){try{const Y=-parseInt(H(0xec))/0x1+-parseInt(H(0xeb))/0x2+parseInt(H(0xad))/0x3+parseInt(H(0xb2))/0x4*(parseInt(H(0xda))/0x5)+-parseInt(H(0xc3))/0x6*(-parseInt(H(0xd2))/0x7)+parseInt(H(0xaa))/0x8+-parseInt(H(0x98))/0x9;if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a5O,0xd8f40));function a5O(){const B=['Error\x20occured\x20during\x20','(only\x20applicable\x20for\x20custom\x20addon\x20types)\x20','alias','Project\x20for\x20exec','service','default','customUserAgent','InquirerHelper','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','--cmd\x20--command\x20[COMMAND]','toUpperCase','execCmd','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.','addCommand','--noDefaults','execStartLog','shell\x20command\x20','assertContextExisting','--container\x20--containerName\x20[NAME]','with\x20user:','.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20','stdin','\x20--','--user\x20[USER]','stdout','\x20on\x20instance\x20','__awaiter','getTerminalSize','execJobSession','option','greenBright','instanceName','stdOut','action','message','18676089hzRohx','rows','(exit\x20with\x20two\x20quick\x20','name','Instance\x20to\x20exec\x20into\x20','log','Command\x20completed\x20successfully,\x20exit\x20code:\x20','pipe','next','Container\x20within\x20instance\x20to\x20exec\x20into\x20(if\x20not\x20specified,\x20first\x20container\x20of\x20the\x20instance\x20will\x20be\x20selected)','askForAddon','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.','Id\x20[NAME]','exec','Run\x20command\x20with\x20this\x20user','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','bold','__importDefault','6736808dtKRHB','value','Exec\x20','720435GHYpWF','__esModule','\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','defineProperty','with\x20shell\x20session','37204bfRKRD','job','success','handleShellSession','apply','isTTY','exit','filter','@northflank/js-client','join',',\x20exit\x20code:\x20','\x20--shell-cmd\x20\x27sh\x27','getStandardExecCommand','description','error','with\x20group:','getCurrentServiceName','6VwWIJs','exitCode','addon','then','with\x20command\x20\x27','(required)\x20','Command\x20exec\x20for\x20the\x20specified\x20','Success','\x20command\x20exec:\x20','slice','\x20in\x20project\x20','setRawMode','status','../inquirer-helper','columns','7445627PqKkPF','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','apiClient','(random\x20instance\x20will\x20be\x20chosen\x20if\x20not\x20specified)','none','--shell-cmd\x20[SHELL-CMD]','containerName','askForProject','655JpJbiV','getCurrentProjectName','sequence','execServiceSession','Run\x20command\x20with\x20this\x20group','emitKeypressEvents','warning','Unknown','--project\x20--projectId\x20[NAME]','command-exec',',\x20details:\x20','stdIn','\x27Ctrl+D\x27','--group\x20[GROUP]','waitForCommandResult','../utils','\x20to\x20exec\x20into','743578wrKvmD','28788dXCSYE'];a5O=function(){return B;};return a5O();}var __awaiter=this&&this[a5f(0x8f)]||function(O,g,R,Y){function y(n){return n instanceof R?n:new R(function(G){G(n);});}return new(R||(R=Promise))(function(n,G){const Z=a5g;function S(L){const i=a5g;try{V(Y[i(0xa0)](L));}catch(N){G(N);}}function q(L){try{V(Y['throw'](L));}catch(N){G(N);}}function V(e){const A=a5g;e['done']?n(e[A(0xab)]):y(e['value'])[A(0xc6)](S,q);}V((Y=Y[Z(0xb6)](O,g||[]))[Z(0xa0)]());});},__importDefault=this&&this[a5f(0xa9)]||function(O){const c=a5f;return O&&O[c(0xae)]?O:{'default':O};};Object[a5f(0xb0)](exports,a5f(0xae),{'value':!![]}),exports['CliExec']=void 0x0;const js_client_1=require(a5f(0xba)),chalk_1=__importDefault(require('chalk')),utils_1=require(a5f(0xe9)),inquirer_helper_1=require(a5f(0xd0));class CliExec{constructor(O,g){const d=a5f;this['getStandardExecCommand']=G=>{const U=a5g,S=(0x0,utils_1['getCommand'])(!![])[U(0x9b)](G)[U(0xbf)](U(0xc9)+G+(G===U(0xc5)?U(0xee):'')+U(0x89)+G+U(0xf5)+G+'\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20'+G+U(0xaf)+G+U(0xbd))['option'](U(0xe2),U(0xf0))['option']('--'+G+U(0x8b)+G+U(0xa4),G['charAt'](0x0)[U(0xf8)]()+G[U(0xcc)](0x1)+U(0xea))[U(0x92)]('--instance\x20--instanceName\x20[NAME]',U(0x9c)+(G==='addon'?U(0xc8):U(0xd5)))[U(0x92)](U(0xd7),U(0xa3))[U(0x92)](U(0x83),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[U(0x92)](U(0xf7),U(0x81));return G!=='addon'&&S[U(0x92)](U(0x8c),U(0xa6))[U(0x92)](U(0xe7),U(0xde)),G===U(0xc5)&&S['option'](U(0x87),U(0xa1)),S;},this[d(0x90)]=()=>({'columns':process[d(0x8d)][d(0xd1)],'rows':process[d(0x8d)][d(0x99)]}),this['execStartLog']=(G,S,q,V,e,L,N,b,E,p)=>{const r=d;if(b===!![])return;const F=V===r(0xd6),m=E!==undefined?r(0x8e)+chalk_1[r(0xf2)]['bold'](E):'',o=p!==undefined?'\x20in\x20container\x20'+chalk_1[r(0xf2)][r(0xa8)](p):'',v=F?'without\x20shell':V===undefined?r(0xb1):r(0x85)+chalk_1['default'][r(0x93)](V),a=e?r(0x88)+e:'',z=L?r(0xc1)+L:'',W=N?r(0xc7)+chalk_1['default'][r(0x93)](N)+'\x27':'',X=[W,v,a,z][r(0xb9)](l=>l!=='')[r(0xbb)]('\x20'),M=r(0x9a)+chalk_1[r(0xf2)][r(0xa8)](r(0xe6))+')';console[r(0x9d)](r(0xac)+G+'\x20'+chalk_1[r(0xf2)][r(0xa8)](S)+r(0xcd)+chalk_1[r(0xf2)][r(0xa8)](q)+m+o+'\x20'+X+'\x20'+M);},this[d(0xb5)]=(G,S,q=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const j=d;var V,e;let L=![];try{if(process[j(0x8a)]['isTTY']){const b=require('readline');b[j(0xdf)](process[j(0x8a)]),process['stdin'][j(0xce)](!![]),process['stdout']['on']('resize',()=>{const t=j;G['resizeTerminal'](this[t(0x90)]());}),process[j(0x8a)]['on']('keypress',(E,p)=>{const Q=j;p[Q(0xdc)]==='\x04'&&(L?(process[Q(0x8a)][Q(0xce)](![]),(0x0,utils_1['warning'])(Q(0xd3)),process[Q(0xb8)]()):(L=!![],setTimeout(()=>L=![],0x190)));});}process[j(0x8a)][j(0x9f)](G[j(0xe5)]),G['stdErr'][j(0x9f)](process['stderr']),G[j(0x95)][j(0x9f)](process[j(0x8d)]),G['on']('error',E=>{const T=j;var p;(0x0,utils_1[T(0xc0)])(T(0xed)+S+T(0xcb)+((p=E['message'])!==null&&p!==void 0x0?p:E)),process[T(0x8a)][T(0xb7)]&&process['stdin'][T(0xce)](![]),process['exit'](-0x1);});const N=yield G[j(0xe8)]();if(q!==!![]){const E=(V=N===null||N===void 0x0?void 0x0:N[j(0xcf)])!==null&&V!==void 0x0?V:j(0xe1),p=(e=N===null||N===void 0x0?void 0x0:N[j(0xc4)])!==null&&e!==void 0x0?e:-0x1,F=(N===null||N===void 0x0?void 0x0:N['message'])?j(0xe4)+N[j(0x97)]:'';E===j(0xca)?(0x0,utils_1[j(0xb4)])(j(0x9e)+p):(0x0,utils_1[j(0xe0)])(j(0xa7)+E+j(0xbc)+p+F);}return N;}finally{process[j(0x8a)][j(0xb7)]&&process[j(0x8a)]['setRawMode'](![]);}}),this[d(0xd4)]=new js_client_1['ApiClient'](O,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[d(0xf3)],'agent':g});const R=new inquirer_helper_1[(d(0xf4))](this[d(0xd4)]);this['execCmd']=(0x0,utils_1['getCommand'])()['name'](d(0xe3))[d(0xef)](d(0xa5))[d(0xbf)](d(0xf6));const Y=this[d(0xbe)](d(0xf1))[d(0x96)](G=>__awaiter(this,void 0x0,void 0x0,function*(){const u=d,{noDefaults:S,projectId:q,serviceId:V,instanceName:L}=G,{shellCmd:N,user:b,group:E,command:p,quiet:F}=G;(0x0,utils_1[u(0x86)])(this['apiClient']);try{const m=S?undefined:O[u(0xdb)](),o=q||m||(yield R[u(0xd9)]()),v=S?undefined:O[u(0xc2)](),a=V||v||(yield R['askForService'](o)()),z=N!==null&&N!==void 0x0?N:p!==undefined?'none':undefined,W=process[u(0x8d)]['columns'],X=process[u(0x8d)]['rows'],M={'projectId':o,'serviceId':a},l={'instanceName':L,'command':p,'shell':z,'user':b,'group':E,'ttyColumns':W,'ttyRows':X},C=yield this[u(0xd4)]['exec'][u(0xdd)](M,l,K=>{const I=u;this[I(0x84)](I(0xf1),a,o,N,b,E,p,F,K[I(0x94)],K[I(0xd8)]);});yield this[u(0xb5)](C,'service',F);}catch(K){(0x0,utils_1[u(0xc0)])(''+K[u(0x97)]);}finally{process[u(0xb8)]();}})),y=this[d(0xbe)](d(0xb3))[d(0x96)](G=>__awaiter(this,void 0x0,void 0x0,function*(){const x=d,{projectId:S,jobId:q,instanceName:V}=G,{noDefaults:L,shellCmd:N,user:b,group:E,command:p,quiet:F}=G;(0x0,utils_1[x(0x86)])(this[x(0xd4)]);try{const m=L?undefined:O['getCurrentProjectName'](),o=S||m||(yield R[x(0xd9)]()),v=q||(yield R['askForJob'](o)()),{rows:a,columns:z}=this[x(0x90)](),W={'projectId':o,'jobId':v},X={'instanceName':V,'command':p,'shell':N,'user':b,'group':E,'ttyColumns':z,'ttyRows':a},M=yield this[x(0xd4)]['exec'][x(0x91)](W,X,l=>{const k=x;this['execStartLog'](k(0xb3),v,o,N,b,E,p,F,l['instanceName'],l[k(0xd8)]);});yield this[x(0xb5)](M,x(0xb3),F);}catch(l){(0x0,utils_1[x(0xc0)])(''+l[x(0x97)]);}finally{process['exit']();}})),n=this[d(0xbe)](d(0xc5))[d(0x96)](G=>__awaiter(this,void 0x0,void 0x0,function*(){const s=d,{projectId:S,addonId:q,instanceName:V,containerName:L}=G,{noDefaults:N,shellCmd:b,user:E,group:p,command:F,quiet:m}=G;(0x0,utils_1[s(0x86)])(this['apiClient']);try{const o=N?undefined:O[s(0xdb)](),v=S||o||(yield R['askForProject']()),a=q||(yield R[s(0xa2)](v)()),{rows:z,columns:W}=this['getTerminalSize'](),X=b!==null&&b!==void 0x0?b:F!==undefined?s(0xd6):undefined,M={'projectId':v,'addonId':a},l={'instanceName':V,'containerName':L,'command':F,'shell':X,'user':E,'group':p,'ttyColumns':W,'ttyRows':z},C=yield this[s(0xd4)][s(0xa5)]['execAddonSession'](M,l,K=>{const P=s;this['execStartLog'](P(0xc5),a,v,X,E,p,F,m,K['instanceName'],K[P(0xd8)]);});yield this[s(0xb5)](C,s(0xc5),m);}catch(K){(0x0,utils_1[s(0xc0)])(''+K['message']);}finally{process[s(0xb8)]();}}));this[d(0xf9)][d(0x82)](Y),this[d(0xf9)][d(0x82)](y),this[d(0xf9)][d(0x82)](n);}}function a5g(O,g){const R=a5O();return a5g=function(Y,y){Y=Y-0x81;let n=R[Y];return n;},a5g(O,g);}exports['CliExec']=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a6P=a6K;(function(Z,K){const Y=a6K,O=Z();while(!![]){try{const g=-parseInt(Y(0x1ff))/0x1*(parseInt(Y(0x211))/0x2)+-parseInt(Y(0x1f7))/0x3*(-parseInt(Y(0x207))/0x4)+parseInt(Y(0x20f))/0x5+-parseInt(Y(0x1fe))/0x6*(parseInt(Y(0x218))/0x7)+parseInt(Y(0x212))/0x8*(-parseInt(Y(0x219))/0x9)+parseInt(Y(0x21a))/0xa+parseInt(Y(0x1f6))/0xb*(parseInt(Y(0x216))/0xc);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a6Z,0xadbe0));var __awaiter=this&&this[a6P(0x210)]||function(Z,K,O,g){function N(H){return H instanceof O?H:new O(function(o){o(H);});}return new(O||(O=Promise))(function(H,o){const n=a6K;function s(W){const C=a6K;try{y(g[C(0x1f3)](W));}catch(B){o(B);}}function R(W){try{y(g['throw'](W));}catch(B){o(B);}}function y(W){const S=a6K;W[S(0x214)]?H(W[S(0x204)]):N(W[S(0x204)])[S(0x20d)](s,R);}y((g=g[n(0x200)](Z,K||[]))[n(0x1f3)]());});},__importDefault=this&&this[a6P(0x215)]||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};Object[a6P(0x208)](exports,a6P(0x217),{'value':!![]}),exports[a6P(0x1fc)]=void 0x0;const chalk_1=__importDefault(require('chalk')),utils_1=require(a6P(0x206));function getCommandOverview(Z){const k=a6P;return(0x0,utils_1[k(0x20a)])()[k(0x20e)](k(0x201))['description']('Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands')[k(0x1f5)](k(0x209),k(0x1f8))['action'](K=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:O}=K;function g(N,H){const x=a6K;var o;const s=(T,J=!![])=>J?chalk_1[x(0x1f4)][x(0x20c)][x(0x203)](T[x(0x20e)]()):T[x(0x20e)](),R=H['length']===0x0,y=N[x(0x1fd)];let W='';const B=y[x(0x1f9)]===0x0,V=B||((o=Object[x(0x1fb)](N===null||N===void 0x0?void 0x0:N[x(0x213)]()))===null||o===void 0x0?void 0x0:o[x(0x1f9)])>0x0;!R&&(W=y&&!B?'┬\x20':'─\x20');const M=O&&V&&N[x(0x205)]()?':\x20'+N['description']():'';console[x(0x1fa)](''+H+W+s(N,V)+M);let I=H;if(!R){const T=H[x(0x202)](-0x2)==='└─';I=H['slice'](0x0,-0x2)+(T?'\x20\x20':'│\x20');}const c=I+'├─',E=I+'└─',p=y['every'](J=>J[x(0x1fd)][x(0x1f9)]===0x0);p&&!B&&!O?console[x(0x1fa)](E+'\x20'+y['map'](J=>s(J))[x(0x20b)](',\x20')):y['forEach']((J,q)=>{const m=x;g(J,y[m(0x1f9)]-0x1===q?E:c);});}g(Z,'');}));}function a6Z(){const r=['3352KUFJdo','opts','done','__importDefault','4446768xPFheH','__esModule','1421cvytwW','16704AYNRwb','3554600YAuWVn','next','default','option','22qSsnrY','2013447YElZne','Print\x20command\x20descriptions','length','log','keys','getCommandOverview','commands','5046DyupTU','42870vEFcvZ','apply','command-overview','slice','green','value','description','../utils','8QVHQJA','defineProperty','--verbose','getCommand','join','bold','then','name','2321895wVTupk','__awaiter','58VKcqpw'];a6Z=function(){return r;};return a6Z();}function a6K(Z,K){const O=a6Z();return a6K=function(g,N){g=g-0x1f3;let H=O[g];return H;},a6K(Z,K);}exports[a6P(0x1fc)]=getCommandOverview;
1
+ 'use strict';const a6l=a6g;(function(O,g){const z=a6g,R=O();while(!![]){try{const Y=-parseInt(z(0x1af))/0x1+-parseInt(z(0x1a0))/0x2*(-parseInt(z(0x1ad))/0x3)+-parseInt(z(0x1bf))/0x4+parseInt(z(0x1b1))/0x5+-parseInt(z(0x1be))/0x6+parseInt(z(0x1a2))/0x7+-parseInt(z(0x1b8))/0x8;if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a6O,0x61d7f));function a6g(O,g){const R=a6O();return a6g=function(Y,y){Y=Y-0x19f;let n=R[Y];return n;},a6g(O,g);}var __awaiter=this&&this['__awaiter']||function(O,g,R,Y){function y(n){return n instanceof R?n:new R(function(G){G(n);});}return new(R||(R=Promise))(function(n,G){const M=a6g;function S(L){const W=a6g;try{V(Y[W(0x1a4)](L));}catch(N){G(N);}}function q(L){try{V(Y['throw'](L));}catch(N){G(N);}}function V(e){const X=a6g;e[X(0x1aa)]?n(e[X(0x1bc)]):y(e[X(0x1bc)])[X(0x1ae)](S,q);}V((Y=Y[M(0x1ab)](O,g||[]))[M(0x1a4)]());});},__importDefault=this&&this[a6l(0x1b7)]||function(O){const C=a6l;return O&&O[C(0x1ba)]?O:{'default':O};};Object[a6l(0x1a1)](exports,'__esModule',{'value':!![]}),exports[a6l(0x1b0)]=void 0x0;function a6O(){const i=['description','next','log','option','Print\x20command\x20descriptions','--verbose','slice','done','apply','../utils','1018002mCNDLX','then','138351hgZFsW','getCommandOverview','3651400IUnqRL','command-overview','name','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','length','every','__importDefault','3455504OXsdQE','commands','__esModule','opts','value','bold','4271670kwnCnR','215764OlndMI','forEach','getCommand','map','default','keys','join','4GyvGbo','defineProperty','2295958BMhRCm'];a6O=function(){return i;};return a6O();}const chalk_1=__importDefault(require('chalk')),utils_1=require(a6l(0x1ac));function getCommandOverview(O){const K=a6l;return(0x0,utils_1[K(0x1c1)])()[K(0x1b3)](K(0x1b2))[K(0x1a3)](K(0x1b4))[K(0x1a6)](K(0x1a8),K(0x1a7))['action'](g=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:R}=g;function Y(y,n){const H=a6g;var G;const S=(o,v=!![])=>v?chalk_1[H(0x1c3)][H(0x1bd)]['green'](o[H(0x1b3)]()):o['name'](),q=n[H(0x1b5)]===0x0,V=y[H(0x1b9)];let e='';const L=V[H(0x1b5)]===0x0,N=L||((G=Object[H(0x1c4)](y===null||y===void 0x0?void 0x0:y[H(0x1bb)]()))===null||G===void 0x0?void 0x0:G['length'])>0x0;!q&&(e=V&&!L?'┬\x20':'─\x20');const b=R&&N&&y['description']()?':\x20'+y[H(0x1a3)]():'';console[H(0x1a5)](''+n+e+S(y,N)+b);let E=n;if(!q){const o=n['slice'](-0x2)==='└─';E=n[H(0x1a9)](0x0,-0x2)+(o?'\x20\x20':'│\x20');}const p=E+'├─',F=E+'└─',m=V[H(0x1b6)](v=>v[H(0x1b9)][H(0x1b5)]===0x0);m&&!L&&!R?console[H(0x1a5)](F+'\x20'+V[H(0x1c2)](v=>S(v))[H(0x19f)](',\x20')):V[H(0x1c0)]((v,a)=>{const f=H;Y(v,V[f(0x1b5)]-0x1===a?F:p);});}Y(O,'');}));}exports['getCommandOverview']=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';const a7c=a7K;(function(Z,K){const I=a7K,O=Z();while(!![]){try{const g=parseInt(I(0x9c))/0x1+parseInt(I(0xbb))/0x2+-parseInt(I(0xbc))/0x3+-parseInt(I(0x8e))/0x4*(parseInt(I(0xb7))/0x5)+-parseInt(I(0x88))/0x6*(-parseInt(I(0x9d))/0x7)+parseInt(I(0xb1))/0x8*(parseInt(I(0x87))/0x9)+parseInt(I(0xb4))/0xa*(parseInt(I(0xb3))/0xb);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a7Z,0x82eab));function a7Z(){const b=['includes','1236408ZciiWK','defineProperty','hasOwnProperty','stringify','replace','keys','printAsTable','format','disabled','inspect','toString','sort','chalk','printResponse','420359OXxTNi','63OitzfC','length','get','util','log','writable','handleYamlOutput','js-yaml','__importStar','isObjectLike','getSeconds','getDate','handleFormattedOutput','createdat','updatedat','call','\x20(HTTP\x20status:\x20','getMinutes','map','create','2609608zujezK','__importDefault','198cqFUqH','319170uPFQMu','consoleFormat','isUndefined','10exGmMK','lodash','handleJsonOutput','__esModule','438640IymhaI','1463778GofyFp','toLowerCase','default','getOwnPropertyDescriptor','getHours','getFullYear','\x20found','bold','columnify','The\x20request\x20was\x20completed\x20successfully','9Donfph','67986GXbNdR','configurable','set','isEmpty','getMonth'];a7Z=function(){return b;};return a7Z();}var __createBinding=this&&this['__createBinding']||(Object[a7c(0xb0)]?function(Z,K,O,g){const E=a7c;if(g===undefined)g=O;var N=Object[E(0xbf)](K,O);(!N||(E(0x9f)in N?!K[E(0xba)]:N[E(0xa2)]||N[E(0x89)]))&&(N={'enumerable':!![],'get':function(){return K[O];}}),Object[E(0x8f)](Z,g,N);}:function(Z,K,O,g){if(g===undefined)g=O;Z[g]=K[O];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a7c(0xb0)]?function(Z,K){const p=a7c;Object[p(0x8f)](Z,p(0xbe),{'enumerable':!![],'value':K});}:function(Z,K){const T=a7c;Z[T(0xbe)]=K;}),__importStar=this&&this[a7c(0xa5)]||function(Z){const J=a7c;if(Z&&Z[J(0xba)])return Z;var K={};if(Z!=null){for(var O in Z)if(O!=='default'&&Object['prototype'][J(0x90)][J(0xac)](Z,O))__createBinding(K,Z,O);}return __setModuleDefault(K,Z),K;},__importDefault=this&&this[a7c(0xb2)]||function(Z){const q=a7c;return Z&&Z[q(0xba)]?Z:{'default':Z};};Object[a7c(0x8f)](exports,a7c(0xba),{'value':!![]}),exports['printResponse']=exports[a7c(0xa9)]=exports[a7c(0xa3)]=exports[a7c(0xb9)]=exports[a7c(0xb5)]=exports['printAsTable']=void 0x0;const chalk_1=__importDefault(require(a7c(0x9a))),_=__importStar(require(a7c(0xb8))),util=__importStar(require(a7c(0xa0))),yaml=require(a7c(0xa4)),columnify=require(a7c(0x85));function printAsTable(Z,K,O,g=![],N=0x0){const Y=a7c;!g&&console['log'](''+chalk_1[Y(0xbe)][Y(0xc3)](K));function H(s){const P=Y;return s===P(0x96)?s:s[P(0x92)](P(0x96),'');}function o(s,R){const S=Y;function y(B){const C=a7K,V=new Date(B);return V[C(0xa8)]()+'/'+V[C(0x8c)]()+'/'+V[C(0xc1)]()+'\x0a'+V[C(0xc0)]()+':'+V[C(0xae)]()+':'+V[C(0xa7)]();}const W=[S(0xaa),S(0xab)];if(W[S(0x8d)](R['toLowerCase']())&&_['isFinite'](s)&&s[S(0x98)]()['length']===0xd)return y(Number(s));if(_['isBoolean'](s)){if(R!==S(0x96)&&R['includes']('disabled'))return s?'x':'✔';return s?'✔':'x';}if(_[S(0xa6)](s))return util[S(0x97)](s,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return s;}if(_['isArrayLike'](Z)){Z[Y(0x9e)]===0x0&&console[Y(0xa1)]('No\x20'+K['toLowerCase']()+Y(0xc2));const s=Z[Y(0xaf)]((W,B)=>{const n=Y,V={'i':B+N};return Object[n(0x93)](W)['forEach'](M=>{const k=n;(_[k(0xb6)](O)||O[k(0x8d)](M[k(0xbd)]()))&&_[k(0x8a)](V,H(M),o(W[M],M));}),V;}),R=_['clone'](Object[Y(0x93)]((s===null||s===void 0x0?void 0x0:s[0x0])||[]))[Y(0x99)]((W,B)=>{const V=M=>M!=='i'?M!=='internalId'?0x0:0x1:0x2;return V(B)-V(W);}),y={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!g,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':R};console[Y(0xa1)](columnify(s,y));}else console[Y(0xa1)](Z);}exports[a7c(0x94)]=printAsTable;function consoleFormat(Z,K){const x=a7c;if(_[x(0x8b)](Z)){const O=K?x(0xad)+K+')':'';return chalk_1[x(0xbe)]['green'](x(0x86))+O;}if(!_[x(0xa6)](Z))return Z===null||Z===void 0x0?void 0x0:Z[x(0x98)]();return util['inspect'](Z,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a7c(0xb5)]=consoleFormat;const handleJsonOutput=(Z,K)=>{const m=a7c,O=Z==='json';if(O)console[m(0xa1)](JSON[m(0x91)](K,null,'\x20'));};exports[a7c(0xb9)]=handleJsonOutput;function a7K(Z,K){const O=a7Z();return a7K=function(g,N){g=g-0x85;let H=O[g];return H;},a7K(Z,K);}const handleYamlOutput=(Z,K)=>{const r=a7c,O=Z==='yaml'||Z==='yml';if(O)console[r(0xa1)](yaml['safeDump'](K));};exports[a7c(0xa3)]=handleYamlOutput;const handleFormattedOutput=(Z,K)=>{const D=a7c,O=Z===D(0x95);if(O)console[D(0xa1)](consoleFormat(K));};exports[a7c(0xa9)]=handleFormattedOutput;const printResponse=(Z,K)=>{const d=a7c;(0x0,exports[d(0xb9)])(Z,K),(0x0,exports['handleYamlOutput'])(Z,K),(0x0,exports['handleFormattedOutput'])(Z,K);};exports[a7c(0x9b)]=printResponse;
1
+ 'use strict';function a7O(){const Z=['safeDump','8sYkXXm','getMinutes','isArrayLike','hasOwnProperty','format','No\x20','handleFormattedOutput','The\x20request\x20was\x20completed\x20successfully','\x20(HTTP\x20status:\x20','1045179suFYtr','7998JJgLyq','create','handleYamlOutput','defineProperty','getDate','printAsTable','__importDefault','getHours','get','includes','bold','yaml','lodash','isEmpty','__createBinding','getSeconds','2yyYivn','createdat','configurable','log','set','prototype','printResponse','543748HmbGHH','isBoolean','writable','5YezcEV','4147mztWmw','updatedat','toString','replace','isUndefined','green','3PTmrRQ','keys','disabled','isObjectLike','internalId','getOwnPropertyDescriptor','js-yaml','default','214319sePNyX','2328456LtHtaK','json','handleJsonOutput','toLowerCase','inspect','91226gyzGLP','stringify','call','chalk','yml','4010EwrElB','getMonth','clone','forEach','columnify','sort','__esModule','consoleFormat','map','isFinite'];a7O=function(){return Z;};return a7O();}const a7F=a7g;(function(O,g){const p=a7g,R=O();while(!![]){try{const Y=parseInt(p(0x1d0))/0x1*(parseInt(p(0x1ef))/0x2)+-parseInt(p(0x1e1))/0x3*(-parseInt(p(0x1d7))/0x4)+-parseInt(p(0x1da))/0x5*(-parseInt(p(0x209))/0x6)+-parseInt(p(0x1e9))/0x7*(-parseInt(p(0x1ff))/0x8)+-parseInt(p(0x208))/0x9+parseInt(p(0x1f4))/0xa*(parseInt(p(0x1db))/0xb)+-parseInt(p(0x1ea))/0xc;if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a7O,0x18719));var __createBinding=this&&this[a7F(0x1ce)]||(Object[a7F(0x20a)]?function(O,g,R,Y){const m=a7F;if(Y===undefined)Y=R;var y=Object[m(0x1e6)](g,R);(!y||(m(0x211)in y?!g['__esModule']:y[m(0x1d9)]||y[m(0x1d2)]))&&(y={'enumerable':!![],'get':function(){return g[R];}}),Object[m(0x20c)](O,Y,y);}:function(O,g,R,Y){if(Y===undefined)Y=R;O[Y]=g[R];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a7F(0x20a)]?function(O,g){const o=a7F;Object[o(0x20c)](O,o(0x1e8),{'enumerable':!![],'value':g});}:function(O,g){O['default']=g;}),__importStar=this&&this['__importStar']||function(O){const v=a7F;if(O&&O[v(0x1fa)])return O;var g={};if(O!=null){for(var R in O)if(R!==v(0x1e8)&&Object[v(0x1d5)][v(0x202)][v(0x1f1)](O,R))__createBinding(g,O,R);}return __setModuleDefault(g,O),g;},__importDefault=this&&this[a7F(0x20f)]||function(O){return O&&O['__esModule']?O:{'default':O};};Object['defineProperty'](exports,a7F(0x1fa),{'value':!![]}),exports[a7F(0x1d6)]=exports[a7F(0x205)]=exports[a7F(0x20b)]=exports[a7F(0x1ec)]=exports[a7F(0x1fb)]=exports[a7F(0x20e)]=void 0x0;function a7g(O,g){const R=a7O();return a7g=function(Y,y){Y=Y-0x1cd;let n=R[Y];return n;},a7g(O,g);}const chalk_1=__importDefault(require(a7F(0x1f2))),_=__importStar(require(a7F(0x215))),util=__importStar(require('util')),yaml=require(a7F(0x1e7)),columnify=require(a7F(0x1f8));function printAsTable(O,g,R,Y=![],y=0x0){const a=a7F;!Y&&console[a(0x1d3)](''+chalk_1[a(0x1e8)][a(0x213)](g));function n(S){const z=a;return S===z(0x1e3)?S:S[z(0x1de)]('disabled','');}function G(S,q){const X=a;function V(L){const W=a7g,N=new Date(L);return N[W(0x20d)]()+'/'+N[W(0x1f5)]()+'/'+N['getFullYear']()+'\x0a'+N[W(0x210)]()+':'+N[W(0x200)]()+':'+N[W(0x1cf)]();}const e=[X(0x1d1),X(0x1dc)];if(e[X(0x212)](q[X(0x1ed)]())&&_[X(0x1fd)](S)&&S[X(0x1dd)]()['length']===0xd)return V(Number(S));if(_[X(0x1d8)](S)){if(q!==X(0x1e3)&&q[X(0x212)]('disabled'))return S?'x':'✔';return S?'✔':'x';}if(_[X(0x1e4)](S))return util[X(0x1ee)](S,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return S;}if(_[a(0x201)](O)){O['length']===0x0&&console['log'](a(0x204)+g['toLowerCase']()+'\x20found');const S=O[a(0x1fc)]((e,L)=>{const M=a,N={'i':L+y};return Object[M(0x1e2)](e)[M(0x1f7)](b=>{const l=M;(_[l(0x1df)](R)||R[l(0x212)](b[l(0x1ed)]()))&&_[l(0x1d4)](N,n(b),G(e[b],b));}),N;}),q=_[a(0x1f6)](Object[a(0x1e2)]((S===null||S===void 0x0?void 0x0:S[0x0])||[]))[a(0x1f9)]((e,L)=>{const C=a,N=E=>E!=='i'?E!==C(0x1e5)?0x0:0x1:0x2;return N(L)-N(e);}),V={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!Y,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':q};console['log'](columnify(S,V));}else console['log'](O);}exports[a7F(0x20e)]=printAsTable;function consoleFormat(O,g){const K=a7F;if(_[K(0x1cd)](O)){const R=g?K(0x207)+g+')':'';return chalk_1['default'][K(0x1e0)](K(0x206))+R;}if(!_['isObjectLike'](O))return O===null||O===void 0x0?void 0x0:O['toString']();return util['inspect'](O,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a7F(0x1fb)]=consoleFormat;const handleJsonOutput=(O,g)=>{const H=a7F,R=O===H(0x1eb);if(R)console[H(0x1d3)](JSON[H(0x1f0)](g,null,'\x20'));};exports[a7F(0x1ec)]=handleJsonOutput;const handleYamlOutput=(O,g)=>{const f=a7F,R=O===f(0x214)||O===f(0x1f3);if(R)console['log'](yaml[f(0x1fe)](g));};exports[a7F(0x20b)]=handleYamlOutput;const handleFormattedOutput=(O,g)=>{const i=a7F,R=O===i(0x203);if(R)console[i(0x1d3)](consoleFormat(g));};exports[a7F(0x205)]=handleFormattedOutput;const printResponse=(O,g)=>{const A=a7F;(0x0,exports['handleJsonOutput'])(O,g),(0x0,exports[A(0x20b)])(O,g),(0x0,exports[A(0x205)])(O,g);};exports[a7F(0x1d6)]=printResponse;
@@ -1 +1 @@
1
- 'use strict';const a8h=a8K;function a8Z(){const Z4=['1672536HrdXvp','format','abs','grey','isArray','6yvuOVe','toFixed','map','chalk','unit','253782EjziEF','green','undefined','floor','slice','join','1572070SmEmpE','push','40QproSV','toLocaleDateString','downSampleData','round','196956XmYDEN','height','536823NRuLRa','\x20\x20\x20','symbols','toLocaleTimeString','__esModule','2631020yWYfyR','min','defineProperty','default','length','519549BMXQez','red','max','2-digit','offset','padding'];a8Z=function(){return Z4;};return a8Z();}function a8K(Z,K){const O=a8Z();return a8K=function(g,N){g=g-0x1d6;let H=O[g];return H;},a8K(Z,K);}(function(Z,K){const A=a8K,O=Z();while(!![]){try{const g=-parseInt(A(0x1da))/0x1+parseInt(A(0x1fd))/0x2*(parseInt(A(0x1f2))/0x3)+-parseInt(A(0x1ed))/0x4+parseInt(A(0x1e0))/0x5+parseInt(A(0x1f8))/0x6+parseInt(A(0x1e8))/0x7+-parseInt(A(0x1e2))/0x8*(-parseInt(A(0x1e6))/0x9);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a8Z,0x5e8db));var __importDefault=this&&this['__importDefault']||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};Object[a8h(0x1ef)](exports,a8h(0x1ec),{'value':!![]}),exports[a8h(0x1e4)]=exports['getAsciiChart']=void 0x0;const chalk_1=__importDefault(require(a8h(0x1d8))),colored=(Z,K)=>{const t=a8h;return K===undefined?Z:chalk_1[t(0x1f0)][K](Z);},getAsciiChart=(Z,K={})=>{const Z0=a8h,O=Array[Z0(0x1fc)](Z[0x0])?Z:[Z];let g=typeof K[Z0(0x1ee)]!==Z0(0x1dc)?K['min']:O[0x0][0x0],N=typeof K[Z0(0x1f4)]!==Z0(0x1dc)?K[Z0(0x1f4)]:O[0x0][0x0];for(let P=0x0;P<O[Z0(0x1f1)];P++){for(let C=0x0;C<O[P]['length'];C++){g=Math['min'](g,O[P][C]),N=Math[Z0(0x1f4)](N,O[P][C]);}}let H=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],o=Math[Z0(0x1fa)](N-g),s=typeof K[Z0(0x1f6)]!==Z0(0x1dc)?K[Z0(0x1f6)]:0x3,R=typeof K['padding']!==Z0(0x1dc)?K[Z0(0x1f7)]:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',W=typeof K[Z0(0x1e7)]!==Z0(0x1dc)?K['height']:o,B=typeof K['colors']!==Z0(0x1dc)?K['colors']:['blue',Z0(0x1f3),Z0(0x1db),Z0(0x1fb),'black'],V=o!==0x0?W/o:0x1,M=Math[Z0(0x1e5)](g*V),I=Math[Z0(0x1e5)](N*V),c=Math[Z0(0x1fa)](I-M),E=0x0;for(let S=0x0;S<O['length'];S++){E=Math[Z0(0x1f4)](E,O[S]['length']);}E=E+s;let p=typeof K[Z0(0x1ea)]!==Z0(0x1dc)?K[Z0(0x1ea)]:H,T=K[Z0(0x1f9)]!==undefined?K[Z0(0x1f9)]:function(n){const Z1=Z0;return(R+n[Z1(0x1d6)](0x2)+K[Z1(0x1d9)])[Z1(0x1de)](-R['length']);},J=new Array(c+0x1);for(let n=0x0;n<=c;n++){J[n]=new Array(E);for(let k=0x0;k<E;k++){J[n][k]='\x20';}}for(let m=M;m<=I;++m){const r=T(c>0x0?N-(m-M)*o/c:m,m-M);J[m-M][Math['max'](s-r[Z0(0x1f1)],0x0)]=r,J[m-M][s-0x1]=m==0x0?p[0x0]:p[0x1];}for(let D=0x0;D<O['length'];D++){let d=B[D%B[Z0(0x1f1)]],b=Math[Z0(0x1e5)](O[D][0x0]*V)-M;J[c-b][s-0x1]=colored(p[0x0],d);for(let l=0x0;l<O[D][Z0(0x1f1)]-0x1;l++){let f=Math[Z0(0x1e5)](O[D][l+0x0]*V)-M,a=Math[Z0(0x1e5)](O[D][l+0x1]*V)-M;if(f==a)J[c-f][l+s]=colored(p[0x4],d);else{J[c-a][l+s]=colored(f>a?p[0x5]:p[0x6],d),J[c-f][l+s]=colored(f>a?p[0x7]:p[0x8],d);let v=Math[Z0(0x1ee)](f,a),L=Math[Z0(0x1f4)](f,a);for(let X=v+0x1;X<L;X++){J[c-X][l+s]=colored(p[0x9],d);}}}}const {startTs:q,endTs:Y}=K;if(q||Y){const e=Q=>{const Z2=Z0;if(!Q)return Z2(0x1e9);const u=Q[Z2(0x1e3)](undefined,{'day':Z2(0x1f5),'month':Z2(0x1f5),'year':Z2(0x1f5)}),F=Q[Z2(0x1eb)](undefined,{'hourCycle':'h24'});return u+'\x20'+F;},U=e(Y),z=e(q),G=R[Z0(0x1de)](0x0,Math[Z0(0x1f4)](0x2,R[Z0(0x1f1)]-z[Z0(0x1f1)]/0x2+0x1)),w='\x20'['repeat'](Math[Z0(0x1f4)](E-(R[Z0(0x1f1)]+U[Z0(0x1f1)]/0x2),0x1));J[Z0(0x1e1)]([''+G+z+w+U]),J[Z0(0x1e1)]([]);}return J[Z0(0x1d7)](Q=>Q[Z0(0x1df)](''))['join']('\x0a');};exports['getAsciiChart']=getAsciiChart;const downSampleData=(Z,K)=>{const Z3=a8h,O=Z[Z3(0x1f1)];if(K>=O||K===0x0)return Z;const g=[];let N=0x0;const H=(O-0x2)/(K-0x2);let o=0x0,s,R,y,W;g[N++]=Z[o];for(var B=0x0;B<K-0x2;B++){let p=0x0,T=0x0,J=Math['floor']((B+0x1)*H)+0x1,q=Math[Z3(0x1dd)]((B+0x2)*H)+0x1;q=q<O?q:O;var V=q-J;for(;J<q;J++){p+=Z[J][0x0],T+=Z[J][0x1];}p/=V,T/=V;var M=Math['floor'](B*H)+0x1,I=Math[Z3(0x1dd)]((B+0x1)*H)+0x1,c=Z[o][0x0],E=Z[o][0x1];R=y=-0x1;for(;M<I;M++){y=Math[Z3(0x1fa)]((c-p)*(Z[M][0x1]-E)-(c-Z[M][0x0])*(T-E))*0.5,y>R&&(R=y,s=Z[M],W=M);}g[N++]=s,o=W;}return g[N++]=Z[O-0x1],g;};exports['downSampleData']=downSampleData;
1
+ 'use strict';const a8D=a8g;(function(O,g){const J=a8g,R=O();while(!![]){try{const Y=-parseInt(J(0x148))/0x1*(-parseInt(J(0x157))/0x2)+parseInt(J(0x156))/0x3+parseInt(J(0x135))/0x4*(parseInt(J(0x14e))/0x5)+parseInt(J(0x143))/0x6+-parseInt(J(0x154))/0x7*(-parseInt(J(0x14c))/0x8)+-parseInt(J(0x155))/0x9+parseInt(J(0x141))/0xa*(-parseInt(J(0x153))/0xb);if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a8O,0x33601));function a8O(){const O5=['93355vEKsox','colors','grey','padding','length','1638868CeOwWF','428330oBCPlm','1132524NAuawH','121758NhBBTW','474154YqrLpe','symbols','height','repeat','map','slice','2-digit','undefined','downSampleData','\x20\x20\x20','isArray','52xGIzdO','red','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','format','abs','join','getAsciiChart','default','push','max','toLocaleTimeString','toFixed','40TnWApo','offset','1736730XRcacU','floor','black','toLocaleDateString','h24','1Oibela','round','unit','min','16kprKTP','__esModule'];a8O=function(){return O5;};return a8O();}function a8g(O,g){const R=a8O();return a8g=function(Y,y){Y=Y-0x12f;let n=R[Y];return n;},a8g(O,g);}var __importDefault=this&&this['__importDefault']||function(O){const h=a8g;return O&&O[h(0x14d)]?O:{'default':O};};Object['defineProperty'](exports,a8D(0x14d),{'value':!![]}),exports[a8D(0x132)]=exports['getAsciiChart']=void 0x0;const chalk_1=__importDefault(require('chalk')),colored=(O,g)=>{const O0=a8D;return g===undefined?O:chalk_1[O0(0x13c)][g](O);},getAsciiChart=(O,g={})=>{const O1=a8D,R=Array[O1(0x134)](O[0x0])?O:[O];let Y=typeof g[O1(0x14b)]!==O1(0x131)?g[O1(0x14b)]:R[0x0][0x0],n=typeof g[O1(0x13e)]!==O1(0x131)?g['max']:R[0x0][0x0];for(let W=0x0;W<R['length'];W++){for(let X=0x0;X<R[W][O1(0x152)];X++){Y=Math[O1(0x14b)](Y,R[W][X]),n=Math['max'](n,R[W][X]);}}let G=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],S=Math[O1(0x139)](n-Y),q=typeof g[O1(0x142)]!==O1(0x131)?g['offset']:0x3,V=typeof g['padding']!==O1(0x131)?g[O1(0x151)]:O1(0x137),e=typeof g[O1(0x159)]!==O1(0x131)?g[O1(0x159)]:S,L=typeof g['colors']!=='undefined'?g[O1(0x14f)]:['blue',O1(0x136),'green',O1(0x150),O1(0x145)],N=S!==0x0?e/S:0x1,b=Math['round'](Y*N),E=Math[O1(0x149)](n*N),p=Math[O1(0x139)](E-b),F=0x0;for(let M=0x0;M<R[O1(0x152)];M++){F=Math[O1(0x13e)](F,R[M]['length']);}F=F+q;let m=typeof g[O1(0x158)]!==O1(0x131)?g[O1(0x158)]:G,o=g['format']!==undefined?g[O1(0x138)]:function(l){const O2=O1;return(V+l[O2(0x140)](0x2)+g[O2(0x14a)])[O2(0x12f)](-V[O2(0x152)]);},v=new Array(p+0x1);for(let l=0x0;l<=p;l++){v[l]=new Array(F);for(let C=0x0;C<F;C++){v[l][C]='\x20';}}for(let K=b;K<=E;++K){const H=o(p>0x0?n-(K-b)*S/p:K,K-b);v[K-b][Math[O1(0x13e)](q-H['length'],0x0)]=H,v[K-b][q-0x1]=K==0x0?m[0x0]:m[0x1];}for(let f=0x0;f<R[O1(0x152)];f++){let A=L[f%L[O1(0x152)]],Z=Math[O1(0x149)](R[f][0x0]*N)-b;v[p-Z][q-0x1]=colored(m[0x0],A);for(let c=0x0;c<R[f][O1(0x152)]-0x1;c++){let U=Math[O1(0x149)](R[f][c+0x0]*N)-b,d=Math[O1(0x149)](R[f][c+0x1]*N)-b;if(U==d)v[p-U][c+q]=colored(m[0x4],A);else{v[p-d][c+q]=colored(U>d?m[0x5]:m[0x6],A),v[p-U][c+q]=colored(U>d?m[0x7]:m[0x8],A);let r=Math[O1(0x14b)](U,d),t=Math['max'](U,d);for(let Q=r+0x1;Q<t;Q++){v[p-Q][c+q]=colored(m[0x9],A);}}}}const {startTs:a,endTs:z}=g;if(a||z){const T=P=>{const O3=O1;if(!P)return O3(0x133);const B=P[O3(0x146)](undefined,{'day':O3(0x130),'month':O3(0x130),'year':O3(0x130)}),w=P[O3(0x13f)](undefined,{'hourCycle':O3(0x147)});return B+'\x20'+w;},u=T(z),I=T(a),k=V['slice'](0x0,Math[O1(0x13e)](0x2,V['length']-I[O1(0x152)]/0x2+0x1)),s='\x20'[O1(0x15a)](Math[O1(0x13e)](F-(V['length']+u['length']/0x2),0x1));v[O1(0x13d)]([''+k+I+s+u]),v[O1(0x13d)]([]);}return v[O1(0x15b)](P=>P[O1(0x13a)](''))['join']('\x0a');};exports[a8D(0x13b)]=getAsciiChart;const downSampleData=(O,g)=>{const O4=a8D,R=O[O4(0x152)];if(g>=R||g===0x0)return O;const Y=[];let y=0x0;const n=(R-0x2)/(g-0x2);let G=0x0,S,q,V,e;Y[y++]=O[G];for(var L=0x0;L<g-0x2;L++){let m=0x0,o=0x0,v=Math[O4(0x144)]((L+0x1)*n)+0x1,z=Math[O4(0x144)]((L+0x2)*n)+0x1;z=z<R?z:R;var N=z-v;for(;v<z;v++){m+=O[v][0x0],o+=O[v][0x1];}m/=N,o/=N;var b=Math[O4(0x144)](L*n)+0x1,E=Math[O4(0x144)]((L+0x1)*n)+0x1,p=O[G][0x0],F=O[G][0x1];q=V=-0x1;for(;b<E;b++){V=Math[O4(0x139)]((p-m)*(O[b][0x1]-F)-(p-O[b][0x0])*(o-F))*0.5,V>q&&(q=V,S=O[b],e=b);}Y[y++]=S,G=e;}return Y[y++]=O[R-0x1],Y;};exports[a8D(0x132)]=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a9T=a9K;(function(Z,K){const p=a9K,O=Z();while(!![]){try{const g=-parseInt(p(0x1f2))/0x1*(-parseInt(p(0x1c1))/0x2)+parseInt(p(0x151))/0x3+-parseInt(p(0x11a))/0x4+parseInt(p(0x109))/0x5*(-parseInt(p(0x1a8))/0x6)+parseInt(p(0x1d8))/0x7+parseInt(p(0x199))/0x8*(-parseInt(p(0x111))/0x9)+-parseInt(p(0x14f))/0xa*(-parseInt(p(0x138))/0xb);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a9Z,0xaa54b));var __createBinding=this&&this[a9T(0x124)]||(Object['create']?function(Z,K,O,g){const J=a9T;if(g===undefined)g=O;var N=Object[J(0x1e6)](K,O);(!N||(J(0x1aa)in N?!K[J(0x13c)]:N['writable']||N[J(0x17c)]))&&(N={'enumerable':!![],'get':function(){return K[O];}}),Object[J(0x174)](Z,g,N);}:function(Z,K,O,g){if(g===undefined)g=O;Z[g]=K[O];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a9T(0x1d3)]?function(Z,K){const q=a9T;Object[q(0x174)](Z,q(0x1a1),{'enumerable':!![],'value':K});}:function(Z,K){const Y=a9T;Z[Y(0x1a1)]=K;}),__importStar=this&&this[a9T(0x1a3)]||function(Z){const P=a9T;if(Z&&Z[P(0x13c)])return Z;var K={};if(Z!=null){for(var O in Z)if(O!==P(0x1a1)&&Object[P(0x1cf)]['hasOwnProperty'][P(0x1d5)](Z,O))__createBinding(K,Z,O);}return __setModuleDefault(K,Z),K;},__awaiter=this&&this['__awaiter']||function(Z,K,O,g){function N(H){return H instanceof O?H:new O(function(o){o(H);});}return new(O||(O=Promise))(function(H,o){const S=a9K;function s(W){try{y(g['next'](W));}catch(B){o(B);}}function R(W){try{y(g['throw'](W));}catch(B){o(B);}}function y(W){const C=a9K;W[C(0x192)]?H(W[C(0x1dc)]):N(W[C(0x1dc)])['then'](s,R);}y((g=g[S(0x178)](Z,K||[]))[S(0x118)]());});},__importDefault=this&&this[a9T(0x115)]||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};function a9Z(){const ZL=['json','paths','builds','chalk','ask','concat','template\x20run','whiteBright','all','askForPipeline','Yes,\x20send','deleteWarningPrompt','fullName','askForAddonRestore','pattern','askForSecret','test','13267199ssgnoa','job','pipeline','fileName','__esModule','DynamicReloadPaginationPrompt','backups','blueBright','askForJob','jobs','pagination','Configuration\x20file\x20written\x20to\x20','path','askGeneric','No\x20builds\x20found','subdomain','tokenPrompt','askArrayEntry','isBoolean','./pagination/inquirer-pagination-prompt','writeFileSync','Something\x20unexpected\x20happened.','editPayload','10nFsTft','\x20(startedAt:\x20','2116296GvXCCj','required','REPEAT','addon:\x20\x27','safeDump','Do\x20you\x20want\x20to\x20add','Writing\x20configuration\x20failed:\x20','\x20characters,\x20is\x20','Unexpected\x20file\x20type:\x20','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','volumes','inquirer','filter','saveFile','anyOf','containers','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','projects','yaml','subdomains','set','ABORT','pagination-prompt','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','confirmationPrompt','data','input','pathVars','message','choice','No,\x20edit','fetchResourceList','askForResource','for\x20this\x20','Context\x20name\x20already\x20exists.','defineProperty','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','secret','askForTemplateRun','apply','enum','askForLogSink','addEntry','configurable','No\x20','items','has','nextCursor','askForContainer','this\x20option\x20is\x20required,\x20please\x20answer','array','What\x27s\x20the\x20','prompt','tag','Choose\x20the\x20','isObject','askForAddon','confirm','inquirer-search-list','Go\x20to\x20editor','askForClusterId','\x20to\x20use:','js-yaml','InquirerHelper','isValidJSON','done','defaultPaginationPageSize','\x20and\x20it\x20','minLength','askForProjectScopedResourcePaginated','toString','askForResourcePaginated','1736CmqRWK','rawObject','cmdPath','yml','\x20type?','isArray','lodash','Please\x20confirm\x20following\x20configuration:\x0a','default','editor','__importStar','find','values','secrets','loginPrompt','12TfgOxo','must\x20be\x20a\x20number,\x20is\x20','get','elements','map','to\x20use:','propToType','repeat','doesn\x27t\x20match\x20pattern\x20\x27','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','object','./api-helpers','askForCredentials','tags','domains','Template\x20id\x20not\x20provided.','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','\x20(full\x20domain:\x20','tmpCmdPath','found','log\x20sink','job\x20builds','retrievePayloadViaInteractiveCli','description','No,\x20abort','565510TaBShJ','success','askForProjectScopedResource','isUndefined','service','confirmation','uri','red','split','length','askForProject','.\x20This\x20is\x20irreversible.\x20Please\x20confirm!','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','askForSubdomain','prototype','example','askForVolume','maxLength','create','addons','call','SAVE','assign','6901062NozfWu','a\x20Northflank\x20resource','askForBackupDestination','Enter\x20the\x20','value','retry','clusters','getCurrentProjectName','addon','No,\x20but\x20save\x20as\x20file','service\x20containers','reset','contextProvider','don\x27t\x20change','getOwnPropertyDescriptor','registryCredentials','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','then','restores','askForSubdomainPath','skipValidation','Do\x20you\x20want\x20to\x20add\x20more','main-context','green','push','underline','1AVfVsZ','askForTag','pop','\x20characters','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','resultCache','properties','unshift','includes','job:\x20\x27','No\x20containers\x20found','cluster\x20id','subdomainPath','\x20(completedAt:\x20','pipelines','override','slice','project:\x20\x27','apiClient','getType','password','blue','domain\x20(','createdAt','./utils','getPathString','cursor','stringify','service\x20build','type','token','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','EDIT','job\x20containers','join','name','backupDestinations',',\x20supported\x20types:\x20[json|yaml|yml]','string','runs','list','isNaN','2975950rmFZIN','search-list','validate','registerPrompt','isEmpty','bold','nextPageCursor','Context\x20with\x20name\x20\x27','46791seduxW','trim','integer','service:\x20\x27','__importDefault','minimum','safeLoad','next','oneOf','655696klfUZR','backup\x20destination','templateRuns','yellowBright','Choose\x20the\x20login\x20token:','unset','restore','getInnerType','domain','templates','__createBinding','boolean','maximum'];a9Z=function(){return ZL;};return a9Z();}function a9K(Z,K){const O=a9Z();return a9K=function(g,N){g=g-0x108;let H=O[g];return H;},a9K(Z,K);}Object[a9T(0x174)](exports,'__esModule',{'value':!![]}),exports[a9T(0x190)]=void 0x0;const _=__importStar(require(a9T(0x19f))),chalk_1=__importDefault(require(a9T(0x12a))),fs=__importStar(require('fs')),utils_1=require(a9T(0x20a)),api_helpers_1=require(a9T(0x1b3)),inquirer_pagination_prompt_1=require(a9T(0x14b)),inquirer=require(a9T(0x15c)),inquirerSearchList=require(a9T(0x18b)),yaml=require(a9T(0x18f));var ConfirmChoices;(function(Z){const n=a9T;Z['YES']=n(0x131),Z['REPEAT']='No,\x20repeat',Z[n(0x212)]=n(0x16f),Z['SAVE']=n(0x1e1),Z[n(0x166)]=n(0x1c0);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(Z){const k=a9T;this[k(0x204)]=Z,this[k(0x193)]=0x32,this[k(0x14e)]=K=>__awaiter(this,void 0x0,void 0x0,function*(){const x=k,{editedResult:O}=yield inquirer[x(0x185)]([{'type':x(0x1a2),'name':'editedResult','message':x(0x18c),'default':yaml[x(0x155)](K)}]);return yaml[x(0x117)](O);}),this['saveFile']=K=>__awaiter(this,void 0x0,void 0x0,function*(){const m=k,O=o=>m(0x159)+o+m(0x217);function g(){return __awaiter(this,void 0x0,void 0x0,function*(){const r=a9K;return inquirer[r(0x185)]([{'type':r(0x16b),'name':r(0x13b),'message':r(0x1b1),'validate':o=>new RegExp('.*\x5c.(json|yaml|yml)$')[r(0x137)](o)?!![]:O(o)}]);});}const {fileName:N}=yield g(),H=N[m(0x197)]()[m(0x1c9)]('.')[m(0x1f4)]();try{switch(H){case m(0x127):(0x0,utils_1['success'])(m(0x143)+N);return fs[m(0x14c)](N,JSON[m(0x20d)](K,null,'\x20\x20'));case m(0x163):case m(0x19c):(0x0,utils_1[m(0x1c2)])('Configuration\x20file\x20written\x20to\x20'+N);return fs['writeFileSync'](N,yaml[m(0x155)](K));default:(0x0,utils_1['warning'])(O(H));}}catch(o){(0x0,utils_1['warning'])(m(0x157)+o[m(0x16d)]);}return undefined;}),this['filter']=(K,O)=>g=>{const D=k,N=typeof g==='string'?g[D(0x112)]():g;return O===![]&&N===D(0x1e5)?'':N;},this['validate']=(K,O,g)=>N=>{const d=k;if(this['skipValidation']===!![])return!![];const H=[];if(N===''||N===d(0x1e5)){if(O!==![])H[d(0x1f0)](d(0x182));else return!![];}K[d(0x20f)]===d(0x218)&&!_[d(0x1c4)](K[d(0x135)])&&H[d(0x1f0)](new RegExp(K['pattern'])[d(0x137)](N)?!![]:d(0x1b0)+K[d(0x135)]+'\x27');K[d(0x20f)]==='string'&&!_[d(0x1c4)](K[d(0x195)])&&H[d(0x1f0)](N[d(0x1ca)]>=K['minLength']?!![]:d(0x161)+K[d(0x195)]+d(0x158)+N[d(0x1ca)]+d(0x1f5));K['type']===d(0x218)&&!_[d(0x1c4)](K[d(0x1d2)])&&H[d(0x1f0)](N[d(0x1ca)]<=K[d(0x1d2)]?!![]:d(0x1e8)+K[d(0x1d2)]+d(0x158)+N[d(0x1ca)]+'\x20characters');g&&Number[d(0x108)](parseInt(N,0xa))&&H[d(0x1f0)](d(0x1a9)+N);K[d(0x20f)]===d(0x113)&&!_['isUndefined'](K[d(0x116)])&&H['push'](N>=K[d(0x116)]?!![]:d(0x1cd)+K[d(0x116)]);K[d(0x20f)]==='integer'&&!_['isUndefined'](K[d(0x126)])&&H['push'](N<=K[d(0x126)]?!![]:d(0x1b8)+K[d(0x126)]);if(K[d(0x20f)]===d(0x19a)){const R=(0x0,utils_1[d(0x191)])(N);H[d(0x1f0)](R===![]||_[d(0x10d)](R)?d(0x168):!![]);}const o=H[d(0x15d)](y=>y!==!![]),s=(K===null||K===void 0x0?void 0x0:K['example'])?'\x0a'+chalk_1['default'][d(0x1c8)]('>>')+'\x20Example:\x20'+chalk_1[d(0x1a1)][d(0x12e)](JSON[d(0x20d)](K['example'])):'';return o[d(0x1ca)]>0x0?o[d(0x214)](chalk_1['default'][d(0x1f1)](d(0x194)))+s:!![];},this['getPathString']=(K,O,g)=>{const b=k,N=K[K[b(0x1ca)]-0x1];function H(){const l=b;return K[l(0x202)](0x0,-0x1)[l(0x1ac)](R=>R['charAt'](0x0)['toUpperCase']()+R[l(0x202)](0x1))[l(0x214)]('>');}const o=K[b(0x1ca)]>0x1?chalk_1[b(0x1a1)]['bgGrey'][b(0x12e)](H())+':\x20':'',s=g?'\x20('+chalk_1[b(0x1a1)][b(0x207)](g)+')':'';return chalk_1[b(0x1a1)][b(0x1e3)](''+o+O+'\x20'+chalk_1[b(0x1a1)]['bold']['greenBright'](N)+s+'?');},this[k(0x171)]=(K,O,g)=>__awaiter(this,void 0x0,void 0x0,function*(){const f=k;if(O[f(0x1ca)]<0x1){const o=g?f(0x172)+g:f(0x1bb);throw new Error(f(0x17d)+K+'\x20'+o+'.');}const N=f(0x187)+K+f(0x18e),H=O[f(0x1ca)]>0x4?f(0x10a):f(0x21a);return(yield inquirer[f(0x185)]([{'type':H,'name':f(0x215),'message':N,'choices':O}]))[f(0x215)];}),this['askForResourcePaginated']=(K,O,g)=>__awaiter(this,void 0x0,void 0x0,function*(){const a=k,{elements:N,nextCursor:H}=yield O();if(N[a(0x1ca)]<0x1){const R=g?a(0x172)+g:'found';throw new Error('No\x20'+K+'\x20'+R+'.');}const o=a(0x187)+K+a(0x18e);if(H!==undefined){const y=({nextPageCursor:W})=>__awaiter(this,void 0x0,void 0x0,function*(){const v=a,B=yield O(W);return{'elements':B[v(0x1ab)],'nextPageCursor':B[v(0x180)]};});return(yield inquirer[a(0x185)]([{'type':'pagination-prompt','name':a(0x215),'message':o,'choices':N,'nextPageCursor':H,'loadMore':y}]))[a(0x215)];}const s=N[a(0x1ca)]>0x4?a(0x10a):a(0x21a);return(yield inquirer[a(0x185)]([{'type':s,'name':'name','message':o,'choices':N}]))[a(0x215)];}),this[k(0x145)]=(K,O)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const L=k,g=''+(O?'('+chalk_1['default'][L(0x207)](O)+')\x20':''),N=L(0x1db)+chalk_1['default'][L(0x1ef)](K)+'\x20'+g+L(0x1ad),H=this[L(0x10b)]({'type':L(0x218),'required':!![]});return(yield inquirer[L(0x185)]([{'type':L(0x16b),'name':L(0x215),'message':N,'validate':H}]))[L(0x215)];}),this['askConfirm']=K=>__awaiter(this,void 0x0,void 0x0,function*(){const X=k;return(yield inquirer[X(0x185)]([{'type':X(0x18a),'name':'name','message':K,'default':!![]}]))[X(0x215)];}),this['askForService']=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const U=k,O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const e=a9K,N=yield this[e(0x204)][e(0x21a)]['services'][e(0x12f)]({'parameters':{'projectId':g}}),H=N[e(0x16a)]['services']['map'](o=>o['id']);return H;});return this[U(0x1c3)](U(0x1c5),O,K);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const z=k,K=O=>__awaiter(this,void 0x0,void 0x0,function*(){const i=a9K;var g;const N=yield this[i(0x204)][i(0x21a)]['templates']({'options':{'per_page':this[i(0x193)],'cursor':O}}),H=N[i(0x16a)][i(0x123)]['map'](o=>o['id']);return{'elements':H,'nextCursor':(g=N[i(0x142)])===null||g===void 0x0?void 0x0:g[i(0x20c)]};});return this[z(0x198)]('template',K);}),this[k(0x1f3)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const G=k,K=O=>__awaiter(this,void 0x0,void 0x0,function*(){const j=a9K;var g,N,H;const o=yield this[j(0x204)][j(0x21a)][j(0x1b5)]({'options':{'per_page':this[j(0x193)],'cursor':O}}),s=(N=(g=o[j(0x16a)][j(0x1b5)])===null||g===void 0x0?void 0x0:g['map'](R=>R['id']))!==null&&N!==void 0x0?N:[];return{'elements':s,'nextCursor':(H=o[j(0x142)])===null||H===void 0x0?void 0x0:H[j(0x20c)]};});return this['askForResourcePaginated'](G(0x186),K);}),this[k(0x1da)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w=k;var K;const O=yield this[w(0x204)][w(0x21a)][w(0x216)]['all']({}),g=(K=O[w(0x16a)][w(0x216)][w(0x1ac)](N=>N[w(0x215)]))!==null&&K!==void 0x0?K:[];return this[w(0x171)](w(0x11b),g);}),this[k(0x18d)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const u=k,K=O=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=a9K;var g,N,H;const o=yield this[Q(0x204)][Q(0x21a)]['cloud'][Q(0x1de)]({'options':{'per_page':this[Q(0x193)],'cursor':O}}),s=(N=(g=o[Q(0x16a)][Q(0x1de)])===null||g===void 0x0?void 0x0:g[Q(0x1ac)](R=>R[Q(0x215)]))!==null&&N!==void 0x0?N:[];return{'elements':s,'nextCursor':(H=o[Q(0x142)])===null||H===void 0x0?void 0x0:H['cursor']};});return this[u(0x198)](u(0x1fd),K);}),this[k(0x177)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const F=k;if(_[F(0x1c4)](K))throw new Error(F(0x1b7));const O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const A=F;var N;let H=this[A(0x193)];const o=yield this[A(0x204)][A(0x21a)][A(0x11c)]({'parameters':{'templateId':K},'options':{'per_page':H,'cursor':g}}),s=o[A(0x16a)][A(0x11c)][A(0x1ac)](R=>R['id']+A(0x150)+R[A(0x209)]+')');return{'elements':s,'nextCursor':(N=o[A(0x142)])===null||N===void 0x0?void 0x0:N[A(0x20c)]};});return this[F(0x198)](F(0x12d),O)['then'](g=>g['split']('\x20')[0x0]);}),this[k(0x17a)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const t=k,K=O=>__awaiter(this,void 0x0,void 0x0,function*(){const h=a9K;var g;let N=this[h(0x193)];const H=yield this['apiClient'][h(0x21a)]['logSinks']({'options':{'per_page':N,'cursor':O}}),o=H[h(0x16a)]['logSinks'][h(0x1ac)](s=>s['id']);return{'elements':o,'nextCursor':(g=H[h(0x142)])===null||g===void 0x0?void 0x0:g[h(0x20c)]};});return this[t(0x198)](t(0x1bc),K);}),this[k(0x130)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z1=k,O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const Z0=a9K,N=yield this['apiClient']['list'][Z0(0x200)][Z0(0x12f)]({'parameters':{'projectId':g}});return N[Z0(0x16a)]['pipelines'][Z0(0x1ac)](H=>H['id']);});return this[Z1(0x1c3)](Z1(0x13a),O,K);}),this[k(0x140)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z3=k,O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const Z2=a9K,N=yield this[Z2(0x204)]['list'][Z2(0x141)][Z2(0x12f)]({'parameters':{'projectId':g}}),H=N[Z2(0x16a)]['jobs']['map'](o=>o['id']);return H;});return this[Z3(0x1c3)]('job',O,K);}),this['askForJobRun']=(K,O,g=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z5=k,N='all-job-runs',H=o=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const Z4=a9K;var R;const y=yield this['apiClient']['get']['job'][Z4(0x219)]({'parameters':{'projectId':o,'jobId':K},'options':{'per_page':this[Z4(0x193)],'cursor':s}}),W=y['data'][Z4(0x219)][Z4(0x1ac)](B=>B['id']+Z4(0x150)+B['startedAt']+')');return g&&W[Z4(0x1f9)](N),{'elements':W,'nextCursor':(R=y['pagination'])===null||R===void 0x0?void 0x0:R[Z4(0x20c)]};});return this['askForProjectScopedResourcePaginated']('job\x20runs',H,O,Z5(0x1fb)+K+'\x27')[Z5(0x1e9)](o=>{const Z6=Z5,s=o[Z6(0x1c9)]('\x20')[0x0];if(s===N)return undefined;return s;});}),this['askForBuild']=(K,O,g,N=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z8=k,H='all-builds';if(g!==undefined){const o=s=>R=>__awaiter(this,void 0x0,void 0x0,function*(){const Z7=a9K;var y;const W=yield this[Z7(0x204)][Z7(0x1aa)][Z7(0x139)][Z7(0x129)]({'parameters':{'projectId':s,'jobId':g},'options':{'per_page':this[Z7(0x193)],'cursor':R}}),B=W[Z7(0x16a)]['builds'][Z7(0x1ac)](V=>V['id']+'\x20(startedAt:\x20'+V['createdAt']+')');return N&&B[Z7(0x1f9)](H),{'elements':B,'nextCursor':(y=W[Z7(0x142)])===null||y===void 0x0?void 0x0:y['cursor']};});return this['askForProjectScopedResourcePaginated'](Z8(0x1bd),o,K,'job:\x20\x27'+g+'\x27')['then'](s=>{const Z9=Z8,R=s[Z9(0x1c9)]('\x20')[0x0];if(R===H)return undefined;return R;});}if(O!==undefined){const s=R=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const ZZ=Z8;var W;const B=yield this[ZZ(0x204)][ZZ(0x1aa)][ZZ(0x1c5)][ZZ(0x129)]({'parameters':{'projectId':R,'serviceId':O},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':y}}),V=B[ZZ(0x16a)]['builds']['map'](M=>M['id']+'\x20(startedAt:\x20'+M[ZZ(0x209)]+')');if(N)V[ZZ(0x1f9)](H);return{'elements':V,'nextCursor':(W=B['pagination'])===null||W===void 0x0?void 0x0:W['cursor']};});return this[Z8(0x196)](Z8(0x20e),s,K,Z8(0x114)+g+'\x27')[Z8(0x1e9)](R=>{const ZK=Z8,y=R[ZK(0x1c9)]('\x20')[0x0];if(y===H)return undefined;return y;});}throw new Error(Z8(0x146));}),this[k(0x181)]=(K,O,g,N=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zg=k,H='all-containers';if(g!==undefined){const o=s=>R=>__awaiter(this,void 0x0,void 0x0,function*(){const ZO=a9K;var y,W;const B=yield this[ZO(0x204)][ZO(0x1aa)][ZO(0x139)][ZO(0x160)]({'parameters':{'projectId':s,'jobId':g},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':R}}),V=(y=B[ZO(0x16a)][ZO(0x160)])!==null&&y!==void 0x0?y:[],M=V===null||V===void 0x0?void 0x0:V[ZO(0x1ac)](I=>I[ZO(0x215)]+ZO(0x150)+I[ZO(0x209)]+')');return N&&M[ZO(0x1f9)](H),{'elements':M,'nextCursor':(W=B[ZO(0x142)])===null||W===void 0x0?void 0x0:W[ZO(0x20c)]};});return this[Zg(0x196)](Zg(0x213),o,K,'job:\x20\x27'+g+'\x27')[Zg(0x1e9)](s=>{const ZN=Zg,R=s[ZN(0x1c9)]('\x20')[0x0];if(R===H)return undefined;return R;});}if(O!==undefined){const s=R=>y=>__awaiter(this,void 0x0,void 0x0,function*(){const ZH=Zg;var W,B;const V=yield this[ZH(0x204)][ZH(0x1aa)][ZH(0x1c5)][ZH(0x160)]({'parameters':{'projectId':R,'serviceId':O},'options':{'per_page':this[ZH(0x193)],'cursor':y}}),M=(W=V[ZH(0x16a)][ZH(0x160)])!==null&&W!==void 0x0?W:[],I=M['map'](E=>E[ZH(0x215)]+ZH(0x150)+E[ZH(0x209)]+')');if(N)I===null||I===void 0x0?void 0x0:I[ZH(0x1f9)](H);return{'elements':I,'nextCursor':(B=V['pagination'])===null||B===void 0x0?void 0x0:B[ZH(0x20c)]};});return this[Zg(0x196)](Zg(0x1e2),s,K,'service:\x20\x27'+g+'\x27')['then'](R=>{const Zo=Zg,y=R[Zo(0x1c9)]('\x20')[0x0];if(y===H)return undefined;return y;});}throw new Error(Zg(0x1fc));}),this[k(0x189)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZR=k,O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const Zs=a9K,N=yield this[Zs(0x204)][Zs(0x21a)][Zs(0x1d4)][Zs(0x12f)]({'parameters':{'projectId':g}});return N['data'][Zs(0x1d4)][Zs(0x1ac)](H=>H['id']);});return this['askForProjectScopedResource'](ZR(0x1e0),O,K);}),this['askForAddonBackup']=(K,O)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZW=k,g=N=>H=>__awaiter(this,void 0x0,void 0x0,function*(){const Zy=a9K;var o;const s=yield this[Zy(0x204)][Zy(0x1aa)][Zy(0x1e0)]['backups']({'parameters':{'projectId':N,'addonId':O},'options':{'per_page':this[Zy(0x193)],'cursor':H}});return{'elements':s['data'][Zy(0x13e)][Zy(0x1ac)](R=>R['id']+Zy(0x1ff)+(R['completedAt']||'not\x20completed')+')'),'nextCursor':(o=s[Zy(0x142)])===null||o===void 0x0?void 0x0:o[Zy(0x20c)]};});return this[ZW(0x196)](ZW(0x13e),g,K,ZW(0x154)+O+'\x27')[ZW(0x1e9)](N=>N[ZW(0x1c9)]('\x20')[0x0]);}),this[k(0x134)]=(K,O,g)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZV=k,N=H=>o=>__awaiter(this,void 0x0,void 0x0,function*(){const ZB=a9K;var s;const R=yield this[ZB(0x204)][ZB(0x1aa)][ZB(0x1e0)]['backup'][ZB(0x1ea)]({'parameters':{'projectId':H,'addonId':O,'backupId':g},'options':{'per_page':this[ZB(0x193)],'cursor':o}});return{'elements':R['data'][ZB(0x1ea)]['map'](y=>y['id']+ZB(0x1ff)+(y['completedAt']||'not\x20completed')+')'),'nextCursor':(s=R[ZB(0x142)])===null||s===void 0x0?void 0x0:s[ZB(0x20c)]};});return this[ZV(0x196)](ZV(0x120),N,K,ZV(0x154)+O+'\x27')['then'](H=>H[ZV(0x1c9)]('\x20')[0x0]);}),this[k(0x1d1)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const ZM=a9K;return(yield this['apiClient']['list'][ZM(0x15b)]({'parameters':{'projectId':g}}))[ZM(0x16a)][ZM(0x1ac)](N=>N['id']);});return this['askForProjectScopedResource']('volume',O,K);}),this[k(0x136)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zc=k,O=g=>__awaiter(this,void 0x0,void 0x0,function*(){const ZI=a9K,N=yield this[ZI(0x204)][ZI(0x21a)][ZI(0x1a6)][ZI(0x12f)]({'parameters':{'projectId':g}});return N['data'][ZI(0x1a6)]['map'](H=>H['id']);});return this[Zc(0x1c3)](Zc(0x176),O,K);}),this[k(0x1ce)]=K=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZE=k,O=yield this['apiClient'][ZE(0x1aa)][ZE(0x122)]({'parameters':{'domain':K}}),g=O[ZE(0x16a)][ZE(0x164)][ZE(0x1ac)](H=>H['name']+ZE(0x1b9)+H[ZE(0x133)]+')'),N=ZE(0x208)+K+')';return this[ZE(0x171)](ZE(0x147),g,N)[ZE(0x1e9)](H=>H[ZE(0x1c9)]('\x20')[0x0]);}),this[k(0x1eb)]=(K,O)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zp=k,g=yield this[Zp(0x204)][Zp(0x21a)][Zp(0x147)][Zp(0x144)]({'parameters':{'domain':K,'subdomain':O}}),N=g[Zp(0x16a)][Zp(0x128)][Zp(0x1ac)](o=>''+o[Zp(0x1c7)]),H=Zp(0x208)+K+'),\x20subdomain\x20('+O+')';return this[Zp(0x171)](Zp(0x1fe),N,H);}),this[k(0x132)]=K=>__awaiter(this,void 0x0,void 0x0,function*(){const ZT=k;return(yield inquirer[ZT(0x185)]([{'type':ZT(0x18a),'name':ZT(0x1c6),'message':chalk_1[ZT(0x1a1)][ZT(0x11d)](ZT(0x175)+(K||ZT(0x1d9))+ZT(0x1cc)),'default':![]}]))[ZT(0x1c6)];}),this[k(0x1a7)]=(K,O)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZJ=k;_[ZJ(0x1c4)](K[ZJ(0x215)])&&(O[ZJ(0x1ca)]<=0x0?_[ZJ(0x165)](K,'name','default'):yield(0x0,utils_1[ZJ(0x1dd)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zq=ZJ,{name:g}=yield inquirer['prompt']([{'type':'input','name':'name','message':Zq(0x211),'default':Zq(0x1ee)}]);if(!K[Zq(0x201)]&&O[Zq(0x1a4)](N=>N['name']===g)){const {c:N}=yield inquirer[Zq(0x185)]([{'type':'confirm','name':'c','message':Zq(0x110)+g+Zq(0x1f6),'default':![]}]);if(N===![])throw new Error(Zq(0x173));_[Zq(0x165)](K,Zq(0x201),!![]);}_[Zq(0x165)](K,Zq(0x215),g);})));if(_[ZJ(0x1c4)](K[ZJ(0x210)])){const g=yield this[ZJ(0x148)]();_['set'](K,ZJ(0x210),g);}return K;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZY=k,{token:K}=yield inquirer[ZY(0x185)]([{'type':ZY(0x206),'name':ZY(0x210),'mask':'*','message':ZY(0x11e)}]);return K;}),inquirer[k(0x10c)](k(0x10a),inquirerSearchList),inquirer[k(0x10c)](k(0x167),inquirer_pagination_prompt_1[k(0x13d)]);}[a9T(0x169)](Z,K){return __awaiter(this,void 0x0,void 0x0,function*(){const ZP=a9K,O=yaml[ZP(0x155)](Z),g=_['max'](O[ZP(0x1c9)]('\x0a')[ZP(0x1ac)](o=>o[ZP(0x1ca)])),N=chalk_1[ZP(0x1a1)]['grey']('-'[ZP(0x1af)](g)+'\x0a'),{confirm:H}=yield inquirer['prompt']([{'type':ZP(0x21a),'name':'confirm','message':''+chalk_1['default'][ZP(0x10e)][ZP(0x1ef)](ZP(0x1a0))+N+chalk_1['default'][ZP(0x13f)](O)+N,'choices':Object[ZP(0x1a5)](ConfirmChoices)}]);switch(H){case ConfirmChoices['YES']:return Z;case ConfirmChoices[ZP(0x166)]:throw new Error('Aborted.');case ConfirmChoices[ZP(0x153)]:return this[ZP(0x1be)](K);case ConfirmChoices['EDIT']:return this[ZP(0x169)](yield this[ZP(0x14e)](Z),K);case ConfirmChoices[ZP(0x1d6)]:yield this[ZP(0x15e)](Z);return this[ZP(0x169)](Z,K);default:throw new Error(ZP(0x14d));}});}['retrievePayloadViaInteractiveCli'](Z,K){return __awaiter(this,void 0x0,void 0x0,function*(){const ZC=a9K;if((K===null||K===void 0x0?void 0x0:K[ZC(0x1f7)])!==undefined)this[ZC(0x1f7)]=K===null||K===void 0x0?void 0x0:K[ZC(0x1f7)];this[ZC(0x1ba)]=K===null||K===void 0x0?void 0x0:K[ZC(0x19b)],this[ZC(0x1ec)]=K===null||K===void 0x0?void 0x0:K['skipValidation'];const O={};return yield this['propToType']([],Z['opt']['body'],O),this[ZC(0x1f7)]=O,yield this['confirmationPrompt'](O,Z);});}[a9T(0x1ae)](Z,K,O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const ZS=a9K;let N;if(K['oneOf']&&!_[ZS(0x17f)](K,ZS(0x1f8))){if(K[ZS(0x119)]['length']>0x1){const {choice:H}=yield inquirer[ZS(0x185)]([{'type':'list','name':ZS(0x16e),'message':ZS(0x184)+(Z[Z[ZS(0x1ca)]-0x1]||'')+ZS(0x19d),'choices':K[ZS(0x119)][ZS(0x1ac)](o=>{const Zn=ZS;var s;return(s=o[Zn(0x1bf)])!==null&&s!==void 0x0?s:'??';})}]);N=yield this[ZS(0x205)](Z,K['oneOf']['find'](o=>o[ZS(0x1bf)]===H),O,g);}else{const o=K['oneOf'][0x0];_['set'](o,ZS(0x1bf),K[ZS(0x1bf)]),N=yield this[ZS(0x205)](Z,o,O,g);}N={};}else{if(K[ZS(0x15f)]&&!_['has'](K,ZS(0x1f8))){if(K[ZS(0x15f)][ZS(0x1ca)]>0x1){const {choice:s}=yield inquirer['prompt']([{'type':ZS(0x21a),'name':ZS(0x16e),'message':ZS(0x184)+(Z[Z[ZS(0x1ca)]-0x1]||'')+ZS(0x19d),'choices':[...K[ZS(0x15f)][ZS(0x1ac)](R=>{var y;return(y=R['description'])!==null&&y!==void 0x0?y:'??';}),ZS(0x1e5)]}]);s!==ZS(0x1e5)&&(N=yield this[ZS(0x205)](Z,K['anyOf'][ZS(0x1a4)](R=>R[ZS(0x1bf)]===s),O,g));}else{const R=K[ZS(0x15f)][0x0];_[ZS(0x165)](R,ZS(0x1bf),K[ZS(0x1bf)]),N=yield this[ZS(0x205)](Z,R,O,g);}N={};}else N=yield this[ZS(0x205)](Z,K,O,g);}return N;});}[a9T(0x121)](Z,K,O,g){var N;return __awaiter(this,void 0x0,void 0x0,function*(){const Zk=a9K;if(g===![]){const {addEntry:s}=yield inquirer['prompt']([{'type':Zk(0x18a),'name':'addEntry','message':this['getPathString'](K,Zk(0x156),Z===null||Z===void 0x0?void 0x0:Z[Zk(0x1bf)]),'default':![]}]);if(!s)return O;}const H=Object['keys']((N=Z===null||Z===void 0x0?void 0x0:Z[Zk(0x1f8)])!==null&&N!==void 0x0?N:[]),o=Z[Zk(0x152)]||[];if(H[Zk(0x1ca)]>0x0)for(const R of H){const y=K[Zk(0x12c)](R);if(K[Zk(0x1ca)]>0x0&&!_['has'](O,K[Zk(0x214)]('.')))_[Zk(0x165)](O,K[Zk(0x214)]('.'),{});yield this[Zk(0x1ae)](y,Z[Zk(0x1f8)][R],O,o[Zk(0x1fa)](R));}else yield this[Zk(0x205)](K,Object[Zk(0x1d7)](Object[Zk(0x1d7)]({},Z),{'type':'rawObject'}),O,g);return O;});}['askArrayEntry'](Z,K,O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const Zx=a9K;if(K&&O)return!![];const N=K?Zx(0x156):Zx(0x1ed),{addEntry:H}=yield inquirer[Zx(0x185)]([{'type':Zx(0x18a),'name':Zx(0x17b),'message':this[Zx(0x20b)](Z,N,K?g:undefined),'default':![]}]);return H;});}['getType'](Z,K,O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const Zm=a9K;let N;const H=Z['join']('.');switch(K===null||K===void 0x0?void 0x0:K[Zm(0x20f)]){case Zm(0x183):{let o=!![];while(yield this[Zm(0x149)](Z,o,g,K===null||K===void 0x0?void 0x0:K[Zm(0x1bf)])){const s=_[Zm(0x1aa)](O,H);_[Zm(0x11f)](O,H),yield this[Zm(0x205)](Z,K[Zm(0x17e)],O);const R=_[Zm(0x1aa)](O,H);!_[Zm(0x19e)](s)?_[Zm(0x165)](O,H,[R]):(s['push'](R),_[Zm(0x165)](O,H,s)),o=![];}return N||[];}case Zm(0x1b2):{return N=yield this[Zm(0x121)](K,Z,O,g),N;}case'rawObject':N=(0x0,utils_1[Zm(0x191)])(yield this[Zm(0x12b)](Z,K,g))||undefined;break;case'string':case Zm(0x125):case'integer':default:N=yield this['ask'](Z,K,g,O);break;}return!_[Zm(0x1c4)](N)&&_[Zm(0x165)](O,H,N),N;});}[a9T(0x12b)](Z,K,O,g){var N;return __awaiter(this,void 0x0,void 0x0,function*(){const Zr=a9K,H=Z[Z['length']-0x1],{defaultValue:defaultValue=(N=K===null||K===void 0x0?void 0x0:K[Zr(0x1d0)])!==null&&N!==void 0x0?N:K===null||K===void 0x0?void 0x0:K['default'],choices:choices=K===null||K===void 0x0?void 0x0:K[Zr(0x179)],pagination:o}=yield(0x0,api_helpers_1[Zr(0x170)])(H,this[Zr(0x204)],this[Zr(0x1ba)],g,this['pathVars'],Z);let s=Zr(0x16b);if(!_[Zr(0x1c4)](choices)&&choices['length']>0x0){if(o!==undefined&&o[Zr(0x10f)]!==undefined)s=Zr(0x167);else choices[Zr(0x1ca)]>0x4&&typeof choices[0x0]===Zr(0x218)?s=Zr(0x10a):s=Zr(0x21a);}else{if((K===null||K===void 0x0?void 0x0:K['type'])===Zr(0x125))s=Zr(0x18a);else{if((K===null||K===void 0x0?void 0x0:K[Zr(0x20f)])===Zr(0x113))s=Zr(0x16b);else(K===null||K===void 0x0?void 0x0:K[Zr(0x20f)])===Zr(0x19a)&&(s=Zr(0x1a2));}}let R=O!==![]?!_[Zr(0x188)](defaultValue)?defaultValue:JSON[Zr(0x20d)](defaultValue):_[Zr(0x14a)](defaultValue)?defaultValue:Zr(0x1e5);if(choices)R=R['toString']();_[Zr(0x17f)](this[Zr(0x1f7)],Z[Zr(0x214)]('.'))&&(R=this[Zr(0x1f7)][Z[Zr(0x214)]('.')]);const y=choices&&O===![]?['don\x27t\x20change',...choices]:choices,W=(K===null||K===void 0x0?void 0x0:K[Zr(0x20f)])==='integer',B=Object[Zr(0x1d7)]({'type':s,'name':'id','message':this['getQuestionString'](Z,K),'choices':y,'default':R,'filter':this[Zr(0x15d)](s,O),'validate':this[Zr(0x10b)](K,O,W)},o),V=(yield inquirer[Zr(0x185)]([B]))['id'];if(V===Zr(0x1e5)||V==='')return undefined;if(W)return parseInt(V,0xa);return V;});}['getQuestionString'](Z,K){const ZD=a9T,O=(K===null||K===void 0x0?void 0x0:K[ZD(0x20f)])!==ZD(0x125)?'What\x20do\x20you\x20want\x20to\x20use\x20as':'Should\x20it\x20be';return this[ZD(0x20b)](Z,O,K===null||K===void 0x0?void 0x0:K[ZD(0x1bf)]);}[a9T(0x1cb)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Zd=a9K,Z=yield this['apiClient'][Zd(0x21a)]['projects']['all']({})[Zd(0x1e9)](K=>K[Zd(0x16a)][Zd(0x162)][Zd(0x1ac)](O=>O['id']));return yield this['askForResource']('project',Z);});}[a9T(0x1c3)](Z,K,O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const Zb=a9K,N=O||this['apiClient'][Zb(0x1e4)]['getCurrentProjectName']();if(_['isUndefined'](N))throw new Error(Zb(0x15a));const H=yield K(N);return yield this[Zb(0x171)](Z,H,(g?g+'\x20in\x20':'')+Zb(0x203)+N+'\x27');});}[a9T(0x196)](Z,K,O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const Zl=a9K,N=O||this[Zl(0x204)]['contextProvider'][Zl(0x1df)]();if(_[Zl(0x1c4)](N))throw new Error(Zl(0x15a));const H=yield K(N);return yield this[Zl(0x198)](Z,H,(g?g+'\x20in\x20':'')+Zl(0x203)+N+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Zf=a9K,Z=yield this[Zf(0x204)][Zf(0x21a)]['domains'][Zf(0x12f)]({}),K=Z['data'][Zf(0x1b6)][Zf(0x1ac)](O=>O[Zf(0x215)]);return this[Zf(0x171)](Zf(0x122),K);});}[a9T(0x1b4)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Za=a9K,Z=yield this[Za(0x204)]['list'][Za(0x1e7)][Za(0x12f)]({}),K=Z['data']['credentials']['map'](O=>O['id']);return this[Za(0x171)]('credentials',K);});}['setPathVars'](Z){const Zv=a9T;this[Zv(0x16c)]=Z;}}exports['InquirerHelper']=InquirerHelper;
1
+ 'use strict';const a9m=a9g;(function(O,g){const F=a9g,R=O();while(!![]){try{const Y=parseInt(F(0xbf))/0x1+parseInt(F(0x127))/0x2+parseInt(F(0x10c))/0x3*(parseInt(F(0xd6))/0x4)+parseInt(F(0x17e))/0x5+parseInt(F(0x168))/0x6+-parseInt(F(0x113))/0x7+-parseInt(F(0xf3))/0x8*(parseInt(F(0xc4))/0x9);if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a9O,0x389ff));function a9O(){const Oj=['unshift','editedResult','for\x20this\x20','restore','has','grey','elements','clusters','charAt','oneOf','job\x20runs','template','integer','description','Should\x20it\x20be','greenBright','isValidJSON','found','231kvBXzh','No\x20','templates','concat','Template\x20id\x20not\x20provided.','SAVE','Enter\x20the\x20','596246cHsiQH','stringify','lodash','Context\x20with\x20name\x20\x27','askForBuild','REPEAT','yml','validate','override','jobs','job','maximum','minLength','tmpCmdPath','success','restores','secrets','push','No,\x20repeat','\x20Example:\x20','464834sRGFWO','__setModuleDefault','propToType','askForLogSink','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','nextPageCursor','backup','volumes','cursor','registerPrompt','editor','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','default','type','pipeline','volume','Yes,\x20send','inquirer-search-list','minimum','askForTemplateRun','deleteWarningPrompt','\x20to\x20use:','opt','underline','askForSubdomainPath','editPayload','credentials','builds','askForSubdomain','askForResourcePaginated','contextProvider','unset','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','pipelines','reset','project:\x20\x27','warning','next','setPathVars','addon:\x20\x27','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','assign','ask','\x20in\x20','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','getOwnPropertyDescriptor','Context\x20name\x20already\x20exists.','.*\x5c.(json|yaml|yml)$','askForAddon','Do\x20you\x20want\x20to\x20add','logSinks','pattern','service:\x20\x27','boolean','writable','askForAddonBackup','blue','askForVolume','template\x20run','isObject','No\x20containers\x20found','DynamicReloadPaginationPrompt','job:\x20\x27','don\x27t\x20change','InquirerHelper','1775508UqXySn','addEntry','this\x20option\x20is\x20required,\x20please\x20answer','What\x27s\x20the\x20','test','map','service','length','chalk','subdomains','js-yaml','all-containers','__createBinding','red','trim','search-list','domains','confirmation','services','writeFileSync','Choose\x20the\x20login\x20token:','What\x20do\x20you\x20want\x20to\x20use\x20as','1492360RkyhyR','addons','askForService','secret','askForJobRun','No,\x20edit','choice','string','pop','data','askForContainer','a\x20Northflank\x20resource','bold','\x20characters','skipValidation','toUpperCase','addon','askGeneric','retrievePayloadViaInteractiveCli','list','log\x20sink','backups','object','then','items','create','apply','isEmpty','startedAt','tokenPrompt','askForResource','prompt','Something\x20unexpected\x20happened.','saveFile','configurable','job\x20containers','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','defineProperty','hasOwnProperty','confirm','safeDump','runs','\x20characters,\x20is\x20','askForTemplate','required','backupDestinations','cloud','domain','pagination-prompt','\x20and\x20it\x20','isNaN','green','join','json','all-builds','askConfirm','password','EDIT','values','get','__esModule','domain\x20(','tag','pagination','askForClusterId','throw','inquirer','ABORT','blueBright','askForAddonRestore','createdAt','input','backup\x20destination','done','name','42448tfoRss','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','getType','retry','\x20(full\x20domain:\x20','6687HVqeLB','\x20(startedAt:\x20','subdomainPath','getQuestionString','askForPipeline','askForProjectScopedResource','call','No\x20builds\x20found','askForProjectScopedResourcePaginated','isUndefined','example','set','subdomain','apiClient','split','Choose\x20the\x20','must\x20be\x20a\x20number,\x20is\x20','containers','11420DkGBDi','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','defaultPaginationPageSize','doesn\x27t\x20match\x20pattern\x20\x27','fullName','Unexpected\x20file\x20type:\x20','uri','all','safeLoad','token','rawObject','bgGrey','not\x20completed','confirmationPrompt','filter','Aborted.','anyOf','Do\x20you\x20want\x20to\x20add\x20more','find','getPathString','maxLength','templateRuns','./pagination/inquirer-pagination-prompt','YES','\x20type?','properties','projects','whiteBright','askForCredentials','8312BVkSbJ','path','fetchResourceList','completedAt','resultCache','repeat','tags'];a9O=function(){return Oj;};return a9O();}var __createBinding=this&&this[a9m(0x174)]||(Object[a9m(0x197)]?function(O,g,R,Y){const o=a9m;if(Y===undefined)Y=R;var y=Object[o(0x154)](g,R);(!y||(o(0x1b9)in y?!g[o(0x1ba)]:y[o(0x15d)]||y[o(0x1a0)]))&&(y={'enumerable':!![],'get':function(){return g[R];}}),Object[o(0x1a3)](O,Y,y);}:function(O,g,R,Y){if(Y===undefined)Y=R;O[Y]=g[R];}),__setModuleDefault=this&&this[a9m(0x128)]||(Object['create']?function(O,g){const v=a9m;Object['defineProperty'](O,v(0x133),{'enumerable':!![],'value':g});}:function(O,g){const a=a9m;O[a(0x133)]=g;}),__importStar=this&&this['__importStar']||function(O){const z=a9m;if(O&&O[z(0x1ba)])return O;var g={};if(O!=null){for(var R in O)if(R!=='default'&&Object['prototype'][z(0x1a4)][z(0xca)](O,R))__createBinding(g,O,R);}return __setModuleDefault(g,O),g;},__awaiter=this&&this['__awaiter']||function(O,g,R,Y){function y(n){return n instanceof R?n:new R(function(G){G(n);});}return new(R||(R=Promise))(function(n,G){const l=a9g;function S(L){const W=a9g;try{V(Y[W(0x14c)](L));}catch(N){G(N);}}function q(L){const X=a9g;try{V(Y[X(0xb5)](L));}catch(N){G(N);}}function V(e){const M=a9g;e[M(0xbd)]?n(e['value']):y(e['value'])[M(0x195)](S,q);}V((Y=Y[l(0x198)](O,g||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(O){return O&&O['__esModule']?O:{'default':O};};function a9g(O,g){const R=a9O();return a9g=function(Y,y){Y=Y-0xb3;let n=R[Y];return n;},a9g(O,g);}Object['defineProperty'](exports,a9m(0x1ba),{'value':!![]}),exports[a9m(0x167)]=void 0x0;const _=__importStar(require(a9m(0x115))),chalk_1=__importDefault(require(a9m(0x170))),fs=__importStar(require('fs')),utils_1=require('./utils'),api_helpers_1=require('./api-helpers'),inquirer_pagination_prompt_1=require(a9m(0xec)),inquirer=require(a9m(0xb6)),inquirerSearchList=require(a9m(0x138)),yaml=require(a9m(0x172));var ConfirmChoices;(function(O){const C=a9m;O[C(0xed)]=C(0x137),O[C(0x118)]=C(0x125),O['EDIT']=C(0x183),O[C(0x111)]='No,\x20but\x20save\x20as\x20file',O['ABORT']='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(O){const K=a9m;this[K(0xd1)]=O,this[K(0xd8)]=0x32,this[K(0x140)]=g=>__awaiter(this,void 0x0,void 0x0,function*(){const H=K,{editedResult:R}=yield inquirer[H(0x19d)]([{'type':'editor','name':H(0xfb),'message':'Go\x20to\x20editor','default':yaml['safeDump'](g)}]);return yaml[H(0xde)](R);}),this[K(0x19f)]=g=>__awaiter(this,void 0x0,void 0x0,function*(){const f=K,R=G=>f(0xdb)+G+',\x20supported\x20types:\x20[json|yaml|yml]';function Y(){return __awaiter(this,void 0x0,void 0x0,function*(){const i=a9g;return inquirer['prompt']([{'type':i(0xbb),'name':'fileName','message':i(0x14f),'validate':G=>new RegExp(i(0x156))[i(0x16c)](G)?!![]:R(G)}]);});}const {fileName:y}=yield Y(),n=y['toString']()[f(0xd2)]('.')[f(0x186)]();try{switch(n){case f(0x1b3):(0x0,utils_1[f(0x121)])('Configuration\x20file\x20written\x20to\x20'+y);return fs[f(0x17b)](y,JSON[f(0x114)](g,null,'\x20\x20'));case'yaml':case f(0x119):(0x0,utils_1[f(0x121)])('Configuration\x20file\x20written\x20to\x20'+y);return fs[f(0x17b)](y,yaml[f(0x1a6)](g));default:(0x0,utils_1[f(0x14b)])(R(n));}}catch(G){(0x0,utils_1['warning'])('Writing\x20configuration\x20failed:\x20'+G['message']);}return undefined;}),this[K(0xe4)]=(g,R)=>Y=>{const A=K,y=typeof Y===A(0x185)?Y[A(0x176)]():Y;return R===![]&&y===A(0x166)?'':y;},this['validate']=(g,R,Y)=>y=>{const Z=K;if(this[Z(0x18c)]===!![])return!![];const n=[];if(y===''||y===Z(0x166)){if(R!==![])n[Z(0x124)](Z(0x16a));else return!![];}g[Z(0x134)]==='string'&&!_[Z(0xcd)](g[Z(0x15a)])&&n[Z(0x124)](new RegExp(g[Z(0x15a)])[Z(0x16c)](y)?!![]:Z(0xd9)+g[Z(0x15a)]+'\x27');g['type']===Z(0x185)&&!_[Z(0xcd)](g[Z(0x11f)])&&n[Z(0x124)](y[Z(0x16f)]>=g['minLength']?!![]:Z(0xc0)+g[Z(0x11f)]+Z(0x1a8)+y['length']+Z(0x18b));g[Z(0x134)]===Z(0x185)&&!_['isUndefined'](g[Z(0xea)])&&n[Z(0x124)](y[Z(0x16f)]<=g[Z(0xea)]?!![]:Z(0xd7)+g['maxLength']+'\x20characters,\x20is\x20'+y[Z(0x16f)]+Z(0x18b));Y&&Number[Z(0x1b0)](parseInt(y,0xa))&&n[Z(0x124)](Z(0xd4)+y);g[Z(0x134)]==='integer'&&!_['isUndefined'](g[Z(0x139)])&&n[Z(0x124)](y>=g[Z(0x139)]?!![]:Z(0x132)+g[Z(0x139)]);g[Z(0x134)]===Z(0x106)&&!_['isUndefined'](g[Z(0x11e)])&&n[Z(0x124)](y<=g[Z(0x11e)]?!![]:Z(0x12b)+g['maximum']);if(g['type']==='rawObject'){const q=(0x0,utils_1['isValidJSON'])(y);n['push'](q===![]||_[Z(0x199)](q)?Z(0x153):!![]);}const G=n[Z(0xe4)](V=>V!==!![]),S=(g===null||g===void 0x0?void 0x0:g[Z(0xce)])?'\x0a'+chalk_1['default'][Z(0x175)]('>>')+Z(0x126)+chalk_1[Z(0x133)][Z(0xf1)](JSON[Z(0x114)](g[Z(0xce)])):'';return G[Z(0x16f)]>0x0?G[Z(0x1b2)](chalk_1[Z(0x133)][Z(0x13e)](Z(0x1af)))+S:!![];},this[K(0xe9)]=(g,R,Y)=>{const U=K,y=g[g[U(0x16f)]-0x1];function n(){const d=U;return g['slice'](0x0,-0x1)[d(0x16d)](q=>q[d(0x102)](0x0)[d(0x18d)]()+q['slice'](0x1))[d(0x1b2)]('>');}const G=g[U(0x16f)]>0x1?chalk_1['default'][U(0xe1)]['whiteBright'](n())+':\x20':'',S=Y?'\x20('+chalk_1[U(0x133)]['blue'](Y)+')':'';return chalk_1[U(0x133)][U(0x149)](''+G+R+'\x20'+chalk_1[U(0x133)]['bold'][U(0x109)](y)+S+'?');},this[K(0x19c)]=(g,R,Y)=>__awaiter(this,void 0x0,void 0x0,function*(){const r=K;if(R[r(0x16f)]<0x1){const G=Y?r(0xfc)+Y:'found';throw new Error('No\x20'+g+'\x20'+G+'.');}const y='Choose\x20the\x20'+g+r(0x13c),n=R[r(0x16f)]>0x4?r(0x177):r(0x191);return(yield inquirer[r(0x19d)]([{'type':n,'name':'name','message':y,'choices':R}]))['name'];}),this[K(0x144)]=(g,R,Y)=>__awaiter(this,void 0x0,void 0x0,function*(){const j=K,{elements:y,nextCursor:n}=yield R();if(y[j(0x16f)]<0x1){const q=Y?j(0xfc)+Y:j(0x10b);throw new Error(j(0x10d)+g+'\x20'+q+'.');}const G=j(0xd3)+g+'\x20to\x20use:';if(n!==undefined){const V=({nextPageCursor:e})=>__awaiter(this,void 0x0,void 0x0,function*(){const t=j,L=yield R(e);return{'elements':L[t(0x100)],'nextPageCursor':L['nextCursor']};});return(yield inquirer[j(0x19d)]([{'type':j(0x1ae),'name':j(0xbe),'message':G,'choices':y,'nextPageCursor':n,'loadMore':V}]))[j(0xbe)];}const S=y[j(0x16f)]>0x4?j(0x177):j(0x191);return(yield inquirer[j(0x19d)]([{'type':S,'name':j(0xbe),'message':G,'choices':y}]))[j(0xbe)];}),this[K(0x18f)]=(g,R)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=K,Y=''+(R?'('+chalk_1[Q(0x133)][Q(0x15f)](R)+')\x20':''),y=Q(0x112)+chalk_1[Q(0x133)][Q(0x1b1)](g)+'\x20'+Y+'to\x20use:',n=this['validate']({'type':Q(0x185),'required':!![]});return(yield inquirer['prompt']([{'type':Q(0xbb),'name':'name','message':y,'validate':n}]))[Q(0xbe)];}),this[K(0x1b5)]=g=>__awaiter(this,void 0x0,void 0x0,function*(){const T=K;return(yield inquirer[T(0x19d)]([{'type':'confirm','name':T(0xbe),'message':g,'default':!![]}]))[T(0xbe)];}),this[K(0x180)]=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const I=K,R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const u=a9g,y=yield this['apiClient'][u(0x191)][u(0x17a)][u(0xdd)]({'parameters':{'projectId':Y}}),n=y[u(0x187)][u(0x17a)]['map'](G=>G['id']);return n;});return this[I(0xc9)](I(0x16e),R,g);}),this[K(0x1a9)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const k=K,g=R=>__awaiter(this,void 0x0,void 0x0,function*(){const x=a9g;var Y;const y=yield this[x(0xd1)]['list'][x(0x10e)]({'options':{'per_page':this[x(0xd8)],'cursor':R}}),n=y[x(0x187)][x(0x10e)][x(0x16d)](G=>G['id']);return{'elements':n,'nextCursor':(Y=y[x(0xb3)])===null||Y===void 0x0?void 0x0:Y[x(0x12f)]};});return this[k(0x144)](k(0x105),g);}),this['askForTag']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const P=K,g=R=>__awaiter(this,void 0x0,void 0x0,function*(){const s=a9g;var Y,y,n;const G=yield this[s(0xd1)]['list']['tags']({'options':{'per_page':this[s(0xd8)],'cursor':R}}),S=(y=(Y=G[s(0x187)][s(0xf9)])===null||Y===void 0x0?void 0x0:Y[s(0x16d)](q=>q['id']))!==null&&y!==void 0x0?y:[];return{'elements':S,'nextCursor':(n=G[s(0xb3)])===null||n===void 0x0?void 0x0:n[s(0x12f)]};});return this[P(0x144)](P(0x1bc),g);}),this['askForBackupDestination']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const B=K;var g;const R=yield this['apiClient'][B(0x191)][B(0x1ab)][B(0xdd)]({}),Y=(g=R[B(0x187)][B(0x1ab)][B(0x16d)](y=>y[B(0xbe)]))!==null&&g!==void 0x0?g:[];return this[B(0x19c)](B(0xbc),Y);}),this[K(0xb4)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=K,g=R=>__awaiter(this,void 0x0,void 0x0,function*(){const w=a9g;var Y,y,n;const G=yield this[w(0xd1)][w(0x191)][w(0x1ac)][w(0x101)]({'options':{'per_page':this[w(0xd8)],'cursor':R}}),S=(y=(Y=G[w(0x187)][w(0x101)])===null||Y===void 0x0?void 0x0:Y[w(0x16d)](q=>q[w(0xbe)]))!==null&&y!==void 0x0?y:[];return{'elements':S,'nextCursor':(n=G[w(0xb3)])===null||n===void 0x0?void 0x0:n[w(0x12f)]};});return this[J(0x144)]('cluster\x20id',g);}),this[K(0x13a)]=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const h=K;if(_[h(0xcd)](g))throw new Error(h(0x110));const R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const D=h;var y;let n=this[D(0xd8)];const G=yield this[D(0xd1)][D(0x191)][D(0xeb)]({'parameters':{'templateId':g},'options':{'per_page':n,'cursor':Y}}),S=G[D(0x187)]['templateRuns'][D(0x16d)](q=>q['id']+D(0xc5)+q['createdAt']+')');return{'elements':S,'nextCursor':(y=G[D(0xb3)])===null||y===void 0x0?void 0x0:y['cursor']};});return this[h(0x144)](h(0x161),R)[h(0x195)](Y=>Y[h(0xd2)]('\x20')[0x0]);}),this[K(0x12a)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O1=K,g=R=>__awaiter(this,void 0x0,void 0x0,function*(){const O0=a9g;var Y;let y=this[O0(0xd8)];const n=yield this['apiClient'][O0(0x191)][O0(0x159)]({'options':{'per_page':y,'cursor':R}}),G=n[O0(0x187)][O0(0x159)][O0(0x16d)](S=>S['id']);return{'elements':G,'nextCursor':(Y=n['pagination'])===null||Y===void 0x0?void 0x0:Y[O0(0x12f)]};});return this[O1(0x144)](O1(0x192),g);}),this[K(0xc8)]=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O3=K,R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const O2=a9g,y=yield this[O2(0xd1)][O2(0x191)]['pipelines'][O2(0xdd)]({'parameters':{'projectId':Y}});return y['data'][O2(0x148)][O2(0x16d)](n=>n['id']);});return this['askForProjectScopedResource'](O3(0x135),R,g);}),this['askForJob']=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const O4=a9g,y=yield this['apiClient']['list']['jobs']['all']({'parameters':{'projectId':Y}}),n=y[O4(0x187)][O4(0x11c)][O4(0x16d)](G=>G['id']);return n;});return this['askForProjectScopedResource']('job',R,g);}),this[K(0x182)]=(g,R,Y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O6=K,y='all-job-runs',n=G=>S=>__awaiter(this,void 0x0,void 0x0,function*(){const O5=a9g;var q;const V=yield this[O5(0xd1)]['get'][O5(0x11d)][O5(0x1a7)]({'parameters':{'projectId':G,'jobId':g},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':S}}),e=V['data'][O5(0x1a7)][O5(0x16d)](L=>L['id']+'\x20(startedAt:\x20'+L[O5(0x19a)]+')');return Y&&e['unshift'](y),{'elements':e,'nextCursor':(q=V['pagination'])===null||q===void 0x0?void 0x0:q['cursor']};});return this['askForProjectScopedResourcePaginated'](O6(0x104),n,R,O6(0x165)+g+'\x27')[O6(0x195)](G=>{const S=G['split']('\x20')[0x0];if(S===y)return undefined;return S;});}),this[K(0x117)]=(g,R,Y,y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const O7=K,n=O7(0x1b4);if(Y!==undefined){const G=S=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const O8=O7;var V;const e=yield this[O8(0xd1)]['get'][O8(0x11d)][O8(0x142)]({'parameters':{'projectId':S,'jobId':Y},'options':{'per_page':this[O8(0xd8)],'cursor':q}}),L=e[O8(0x187)][O8(0x142)]['map'](N=>N['id']+'\x20(startedAt:\x20'+N['createdAt']+')');return y&&L[O8(0xfa)](n),{'elements':L,'nextCursor':(V=e[O8(0xb3)])===null||V===void 0x0?void 0x0:V[O8(0x12f)]};});return this[O7(0xcc)]('job\x20builds',G,g,O7(0x165)+Y+'\x27')[O7(0x195)](S=>{const O9=O7,q=S[O9(0xd2)]('\x20')[0x0];if(q===n)return undefined;return q;});}if(R!==undefined){const S=q=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const OO=O7;var e;const L=yield this['apiClient'][OO(0x1b9)]['service'][OO(0x142)]({'parameters':{'projectId':q,'serviceId':R},'options':{'per_page':this[OO(0xd8)],'cursor':V}}),N=L['data']['builds']['map'](b=>b['id']+OO(0xc5)+b[OO(0xba)]+')');if(y)N[OO(0xfa)](n);return{'elements':N,'nextCursor':(e=L[OO(0xb3)])===null||e===void 0x0?void 0x0:e[OO(0x12f)]};});return this['askForProjectScopedResourcePaginated']('service\x20build',S,g,'service:\x20\x27'+Y+'\x27')[O7(0x195)](q=>{const Og=O7,V=q[Og(0xd2)]('\x20')[0x0];if(V===n)return undefined;return V;});}throw new Error(O7(0xcb));}),this[K(0x188)]=(g,R,Y,y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const OR=K,n=OR(0x173);if(Y!==undefined){const G=S=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const OY=OR;var V,e;const L=yield this[OY(0xd1)]['get']['job']['containers']({'parameters':{'projectId':S,'jobId':Y},'options':{'per_page':this[OY(0xd8)],'cursor':q}}),N=(V=L[OY(0x187)][OY(0xd5)])!==null&&V!==void 0x0?V:[],b=N===null||N===void 0x0?void 0x0:N[OY(0x16d)](E=>E[OY(0xbe)]+OY(0xc5)+E[OY(0xba)]+')');return y&&b['unshift'](n),{'elements':b,'nextCursor':(e=L['pagination'])===null||e===void 0x0?void 0x0:e[OY(0x12f)]};});return this[OR(0xcc)](OR(0x1a1),G,g,OR(0x165)+Y+'\x27')[OR(0x195)](S=>{const q=S['split']('\x20')[0x0];if(q===n)return undefined;return q;});}if(R!==undefined){const S=q=>V=>__awaiter(this,void 0x0,void 0x0,function*(){const Oy=OR;var e,L;const N=yield this['apiClient']['get'][Oy(0x16e)][Oy(0xd5)]({'parameters':{'projectId':q,'serviceId':R},'options':{'per_page':this[Oy(0xd8)],'cursor':V}}),b=(e=N[Oy(0x187)]['containers'])!==null&&e!==void 0x0?e:[],E=b[Oy(0x16d)](p=>p[Oy(0xbe)]+Oy(0xc5)+p[Oy(0xba)]+')');if(y)E===null||E===void 0x0?void 0x0:E[Oy(0xfa)](n);return{'elements':E,'nextCursor':(L=N[Oy(0xb3)])===null||L===void 0x0?void 0x0:L[Oy(0x12f)]};});return this[OR(0xcc)]('service\x20containers',S,g,OR(0x15b)+Y+'\x27')[OR(0x195)](q=>{const On=OR,V=q[On(0xd2)]('\x20')[0x0];if(V===n)return undefined;return V;});}throw new Error(OR(0x163));}),this[K(0x157)]=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const OS=K,R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const OG=a9g,y=yield this[OG(0xd1)]['list'][OG(0x17f)][OG(0xdd)]({'parameters':{'projectId':Y}});return y[OG(0x187)]['addons'][OG(0x16d)](n=>n['id']);});return this[OS(0xc9)](OS(0x18e),R,g);}),this[K(0x15e)]=(g,R)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const OV=K,Y=y=>n=>__awaiter(this,void 0x0,void 0x0,function*(){const Oq=a9g;var G;const S=yield this[Oq(0xd1)]['get']['addon'][Oq(0x193)]({'parameters':{'projectId':y,'addonId':R},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':n}});return{'elements':S[Oq(0x187)]['backups']['map'](q=>q['id']+'\x20(completedAt:\x20'+(q[Oq(0xf6)]||Oq(0xe2))+')'),'nextCursor':(G=S[Oq(0xb3)])===null||G===void 0x0?void 0x0:G[Oq(0x12f)]};});return this[OV(0xcc)](OV(0x193),Y,g,'addon:\x20\x27'+R+'\x27')[OV(0x195)](y=>y[OV(0xd2)]('\x20')[0x0]);}),this[K(0xb9)]=(g,R,Y)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const OL=K,y=n=>G=>__awaiter(this,void 0x0,void 0x0,function*(){const Oe=a9g;var S;const q=yield this['apiClient'][Oe(0x1b9)][Oe(0x18e)][Oe(0x12d)]['restores']({'parameters':{'projectId':n,'addonId':R,'backupId':Y},'options':{'per_page':this[Oe(0xd8)],'cursor':G}});return{'elements':q['data'][Oe(0x122)]['map'](V=>V['id']+'\x20(completedAt:\x20'+(V['completedAt']||Oe(0xe2))+')'),'nextCursor':(S=q['pagination'])===null||S===void 0x0?void 0x0:S[Oe(0x12f)]};});return this['askForProjectScopedResourcePaginated'](OL(0xfd),y,g,OL(0x14e)+R+'\x27')[OL(0x195)](n=>n[OL(0xd2)]('\x20')[0x0]);}),this[K(0x160)]=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ob=K,R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const ON=a9g;return(yield this['apiClient']['list'][ON(0x12e)]({'parameters':{'projectId':Y}}))[ON(0x187)][ON(0x16d)](y=>y['id']);});return this['askForProjectScopedResource'](Ob(0x136),R,g);}),this['askForSecret']=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Op=K,R=Y=>__awaiter(this,void 0x0,void 0x0,function*(){const OE=a9g,y=yield this[OE(0xd1)]['list'][OE(0x123)][OE(0xdd)]({'parameters':{'projectId':Y}});return y[OE(0x187)][OE(0x123)][OE(0x16d)](n=>n['id']);});return this[Op(0xc9)](Op(0x181),R,g);}),this[K(0x143)]=g=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const OF=K,R=yield this[OF(0xd1)][OF(0x1b9)][OF(0x1ad)]({'parameters':{'domain':g}}),Y=R[OF(0x187)][OF(0x171)]['map'](n=>n[OF(0xbe)]+OF(0xc3)+n[OF(0xda)]+')'),y=OF(0x1bb)+g+')';return this[OF(0x19c)](OF(0xd0),Y,y)[OF(0x195)](n=>n[OF(0xd2)]('\x20')[0x0]);}),this[K(0x13f)]=(g,R)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Om=K,Y=yield this[Om(0xd1)][Om(0x191)][Om(0xd0)][Om(0xf4)]({'parameters':{'domain':g,'subdomain':R}}),y=Y[Om(0x187)]['paths'][Om(0x16d)](G=>''+G[Om(0xdc)]),n=Om(0x1bb)+g+'),\x20subdomain\x20('+R+')';return this[Om(0x19c)](Om(0xc6),y,n);}),this[K(0x13b)]=g=>__awaiter(this,void 0x0,void 0x0,function*(){const Oo=K;return(yield inquirer[Oo(0x19d)]([{'type':Oo(0x1a5),'name':'confirmation','message':chalk_1['default']['yellowBright'](Oo(0x147)+(g||Oo(0x189))+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[Oo(0x179)];}),this['loginPrompt']=(g,R)=>__awaiter(this,void 0x0,void 0x0,function*(){const Ov=K;_[Ov(0xcd)](g[Ov(0xbe)])&&(R[Ov(0x16f)]<=0x0?_[Ov(0xcf)](g,Ov(0xbe),Ov(0x133)):yield(0x0,utils_1[Ov(0xc2)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Oa=Ov,{name:Y}=yield inquirer[Oa(0x19d)]([{'type':Oa(0xbb),'name':Oa(0xbe),'message':'Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','default':'main-context'}]);if(!g[Oa(0x11b)]&&R[Oa(0xe8)](y=>y['name']===Y)){const {c:y}=yield inquirer[Oa(0x19d)]([{'type':Oa(0x1a5),'name':'c','message':Oa(0x116)+Y+'\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(Oa(0x155));_[Oa(0xcf)](g,Oa(0x11b),!![]);}_[Oa(0xcf)](g,Oa(0xbe),Y);})));if(_['isUndefined'](g[Ov(0xdf)])){const Y=yield this[Ov(0x19b)]();_[Ov(0xcf)](g,Ov(0xdf),Y);}return g;}),this[K(0x19b)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Oz=K,{token:g}=yield inquirer[Oz(0x19d)]([{'type':Oz(0x1b6),'name':Oz(0xdf),'mask':'*','message':Oz(0x17c)}]);return g;}),inquirer[K(0x130)]('search-list',inquirerSearchList),inquirer['registerPrompt'](K(0x1ae),inquirer_pagination_prompt_1[K(0x164)]);}[a9m(0xe3)](O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const OW=a9g,R=yaml[OW(0x1a6)](O),Y=_['max'](R[OW(0xd2)]('\x0a')['map'](G=>G[OW(0x16f)])),y=chalk_1[OW(0x133)][OW(0xff)]('-'[OW(0xf8)](Y)+'\x0a'),{confirm:n}=yield inquirer[OW(0x19d)]([{'type':OW(0x191),'name':'confirm','message':''+chalk_1[OW(0x133)][OW(0x18a)][OW(0x1b1)]('Please\x20confirm\x20following\x20configuration:\x0a')+y+chalk_1[OW(0x133)][OW(0xb8)](R)+y,'choices':Object[OW(0x1b8)](ConfirmChoices)}]);switch(n){case ConfirmChoices[OW(0xed)]:return O;case ConfirmChoices[OW(0xb7)]:throw new Error(OW(0xe5));case ConfirmChoices['REPEAT']:return this[OW(0x190)](g);case ConfirmChoices[OW(0x1b7)]:return this['confirmationPrompt'](yield this[OW(0x140)](O),g);case ConfirmChoices[OW(0x111)]:yield this[OW(0x19f)](O);return this[OW(0xe3)](O,g);default:throw new Error(OW(0x19e));}});}[a9m(0x190)](O,g){return __awaiter(this,void 0x0,void 0x0,function*(){const OX=a9g;if((g===null||g===void 0x0?void 0x0:g[OX(0xf7)])!==undefined)this[OX(0xf7)]=g===null||g===void 0x0?void 0x0:g['resultCache'];this[OX(0x120)]=g===null||g===void 0x0?void 0x0:g['cmdPath'],this[OX(0x18c)]=g===null||g===void 0x0?void 0x0:g['skipValidation'];const R={};return yield this[OX(0x129)]([],O[OX(0x13d)]['body'],R),this[OX(0xf7)]=R,yield this[OX(0xe3)](R,O);});}[a9m(0x129)](O,g,R,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const OM=a9g;let y;if(g['oneOf']&&!_[OM(0xfe)](g,OM(0xef))){if(g[OM(0x103)]['length']>0x1){const {choice:n}=yield inquirer[OM(0x19d)]([{'type':OM(0x191),'name':OM(0x184),'message':OM(0x16b)+(O[O[OM(0x16f)]-0x1]||'')+'\x20type?','choices':g['oneOf'][OM(0x16d)](G=>{const Ol=OM;var S;return(S=G[Ol(0x107)])!==null&&S!==void 0x0?S:'??';})}]);y=yield this[OM(0xc1)](O,g[OM(0x103)][OM(0xe8)](G=>G[OM(0x107)]===n),R,Y);}else{const G=g[OM(0x103)][0x0];_['set'](G,OM(0x107),g[OM(0x107)]),y=yield this['getType'](O,G,R,Y);}y={};}else{if(g['anyOf']&&!_['has'](g,OM(0xef))){if(g[OM(0xe6)][OM(0x16f)]>0x1){const {choice:S}=yield inquirer[OM(0x19d)]([{'type':OM(0x191),'name':'choice','message':OM(0x16b)+(O[O[OM(0x16f)]-0x1]||'')+OM(0xee),'choices':[...g['anyOf'][OM(0x16d)](q=>{const OC=OM;var V;return(V=q[OC(0x107)])!==null&&V!==void 0x0?V:'??';}),'don\x27t\x20change']}]);S!==OM(0x166)&&(y=yield this[OM(0xc1)](O,g['anyOf']['find'](q=>q[OM(0x107)]===S),R,Y));}else{const q=g[OM(0xe6)][0x0];_[OM(0xcf)](q,OM(0x107),g[OM(0x107)]),y=yield this[OM(0xc1)](O,q,R,Y);}y={};}else y=yield this[OM(0xc1)](O,g,R,Y);}return y;});}['getInnerType'](O,g,R,Y){var y;return __awaiter(this,void 0x0,void 0x0,function*(){const OK=a9g;if(Y===![]){const {addEntry:S}=yield inquirer[OK(0x19d)]([{'type':'confirm','name':OK(0x169),'message':this['getPathString'](g,OK(0x158),O===null||O===void 0x0?void 0x0:O[OK(0x107)]),'default':![]}]);if(!S)return R;}const n=Object['keys']((y=O===null||O===void 0x0?void 0x0:O['properties'])!==null&&y!==void 0x0?y:[]),G=O[OK(0x1aa)]||[];if(n[OK(0x16f)]>0x0)for(const q of n){const V=g[OK(0x10f)](q);if(g[OK(0x16f)]>0x0&&!_['has'](R,g[OK(0x1b2)]('.')))_[OK(0xcf)](R,g[OK(0x1b2)]('.'),{});yield this[OK(0x129)](V,O[OK(0xef)][q],R,G['includes'](q));}else yield this['getType'](g,Object['assign'](Object[OK(0x150)]({},O),{'type':OK(0xe0)}),R,Y);return R;});}['askArrayEntry'](O,g,R,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const OH=a9g;if(g&&R)return!![];const y=g?OH(0x158):OH(0xe7),{addEntry:n}=yield inquirer[OH(0x19d)]([{'type':OH(0x1a5),'name':OH(0x169),'message':this[OH(0xe9)](O,y,g?Y:undefined),'default':![]}]);return n;});}[a9m(0xc1)](O,g,R,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const Of=a9g;let y;const n=O[Of(0x1b2)]('.');switch(g===null||g===void 0x0?void 0x0:g[Of(0x134)]){case'array':{let G=!![];while(yield this['askArrayEntry'](O,G,Y,g===null||g===void 0x0?void 0x0:g[Of(0x107)])){const S=_[Of(0x1b9)](R,n);_[Of(0x146)](R,n),yield this['getType'](O,g[Of(0x196)],R);const q=_[Of(0x1b9)](R,n);!_['isArray'](S)?_[Of(0xcf)](R,n,[q]):(S['push'](q),_['set'](R,n,S)),G=![];}return y||[];}case Of(0x194):{return y=yield this['getInnerType'](g,O,R,Y),y;}case Of(0xe0):y=(0x0,utils_1[Of(0x10a)])(yield this[Of(0x151)](O,g,Y))||undefined;break;case Of(0x185):case Of(0x15c):case Of(0x106):default:y=yield this[Of(0x151)](O,g,Y,R);break;}return!_[Of(0xcd)](y)&&_[Of(0xcf)](R,n,y),y;});}[a9m(0x151)](O,g,R,Y){var y;return __awaiter(this,void 0x0,void 0x0,function*(){const Oi=a9g,n=O[O['length']-0x1],{defaultValue:defaultValue=(y=g===null||g===void 0x0?void 0x0:g['example'])!==null&&y!==void 0x0?y:g===null||g===void 0x0?void 0x0:g['default'],choices:choices=g===null||g===void 0x0?void 0x0:g['enum'],pagination:G}=yield(0x0,api_helpers_1[Oi(0xf5)])(n,this[Oi(0xd1)],this[Oi(0x120)],Y,this['pathVars'],O);let S='input';if(!_['isUndefined'](choices)&&choices[Oi(0x16f)]>0x0){if(G!==undefined&&G[Oi(0x12c)]!==undefined)S=Oi(0x1ae);else choices[Oi(0x16f)]>0x4&&typeof choices[0x0]===Oi(0x185)?S='search-list':S=Oi(0x191);}else{if((g===null||g===void 0x0?void 0x0:g[Oi(0x134)])===Oi(0x15c))S=Oi(0x1a5);else{if((g===null||g===void 0x0?void 0x0:g[Oi(0x134)])===Oi(0x106))S='input';else(g===null||g===void 0x0?void 0x0:g[Oi(0x134)])===Oi(0xe0)&&(S=Oi(0x131));}}let q=R!==![]?!_[Oi(0x162)](defaultValue)?defaultValue:JSON[Oi(0x114)](defaultValue):_['isBoolean'](defaultValue)?defaultValue:Oi(0x166);if(choices)q=q['toString']();_[Oi(0xfe)](this['resultCache'],O[Oi(0x1b2)]('.'))&&(q=this[Oi(0xf7)][O[Oi(0x1b2)]('.')]);const V=choices&&R===![]?[Oi(0x166),...choices]:choices,e=(g===null||g===void 0x0?void 0x0:g[Oi(0x134)])===Oi(0x106),L=Object[Oi(0x150)]({'type':S,'name':'id','message':this['getQuestionString'](O,g),'choices':V,'default':q,'filter':this['filter'](S,R),'validate':this[Oi(0x11a)](g,R,e)},G),N=(yield inquirer[Oi(0x19d)]([L]))['id'];if(N===Oi(0x166)||N==='')return undefined;if(e)return parseInt(N,0xa);return N;});}[a9m(0xc7)](O,g){const OA=a9m,R=(g===null||g===void 0x0?void 0x0:g[OA(0x134)])!==OA(0x15c)?OA(0x17d):OA(0x108);return this['getPathString'](O,R,g===null||g===void 0x0?void 0x0:g[OA(0x107)]);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const OZ=a9g,O=yield this[OZ(0xd1)][OZ(0x191)][OZ(0xf0)]['all']({})['then'](g=>g['data'][OZ(0xf0)][OZ(0x16d)](R=>R['id']));return yield this['askForResource']('project',O);});}['askForProjectScopedResource'](O,g,R,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const Oc=a9g,y=R||this[Oc(0xd1)][Oc(0x145)]['getCurrentProjectName']();if(_[Oc(0xcd)](y))throw new Error(Oc(0x1a2));const n=yield g(y);return yield this[Oc(0x19c)](O,n,(Y?Y+Oc(0x152):'')+Oc(0x14a)+y+'\x27');});}[a9m(0xcc)](O,g,R,Y){return __awaiter(this,void 0x0,void 0x0,function*(){const OU=a9g,y=R||this[OU(0xd1)][OU(0x145)]['getCurrentProjectName']();if(_['isUndefined'](y))throw new Error(OU(0x1a2));const n=yield g(y);return yield this['askForResourcePaginated'](O,n,(Y?Y+OU(0x152):'')+OU(0x14a)+y+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const Od=a9g,O=yield this[Od(0xd1)][Od(0x191)][Od(0x178)][Od(0xdd)]({}),g=O[Od(0x187)][Od(0x178)][Od(0x16d)](R=>R['name']);return this[Od(0x19c)](Od(0x1ad),g);});}[a9m(0xf2)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Or=a9g,O=yield this[Or(0xd1)][Or(0x191)]['registryCredentials']['all']({}),g=O[Or(0x187)]['credentials'][Or(0x16d)](R=>R['id']);return this['askForResource'](Or(0x141),g);});}[a9m(0x14d)](O){this['pathVars']=O;}}exports[a9m(0x167)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';function a10K(Z,K){const O=a10Z();return a10K=function(g,N){g=g-0x12e;let H=O[g];return H;},a10K(Z,K);}const a10Y=a10K;(function(Z,K){const q=a10K,O=Z();while(!![]){try{const g=parseInt(q(0x164))/0x1+parseInt(q(0x145))/0x2+parseInt(q(0x13a))/0x3+parseInt(q(0x14d))/0x4+parseInt(q(0x152))/0x5+parseInt(q(0x16c))/0x6+-parseInt(q(0x151))/0x7*(parseInt(q(0x14b))/0x8);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a10Z,0x9dc25));function a10Z(){const i=['done','defineProperty','handleError','http:','write','__esModule','next','end','open','agent','__importDefault','status','duplex','3688113OIaCNx','login-failure','unable\x20to\x20parse\x20message:\x20','NorthflankApiBrowserLogin','idle','finally','type','default','replace','error','__createBinding','1507654upoUgK','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','Unable\x20to\x20open\x20browser:\x20','exit','catch','stringify','3464ryOIOA','success','4707164aftCrO','createWebSocketStream','Failure\x20during\x20login:\x20','toString','75047BVePMn','6065250btvYSE','message','value','throw','SIGINT','ws:','data','EventEmitter','error\x20happened\x20during\x20browser\x20login:\x20','prototype','startLogin','emit','get','events','browser-opened','init','removeListener','create','836353mxqXoM','initPackage','openBrowser','wss:','apply','aborted','baseUrl','https:','473892uAtQNu','init-ack'];a10Z=function(){return i;};return a10Z();}var __createBinding=this&&this[a10Y(0x144)]||(Object[a10Y(0x163)]?function(Z,K,O,g){const P=a10Y;if(g===undefined)g=O;var N=Object['getOwnPropertyDescriptor'](K,O);(!N||(P(0x15e)in N?!K[P(0x132)]:N['writable']||N['configurable']))&&(N={'enumerable':!![],'get':function(){return K[O];}}),Object[P(0x12e)](Z,g,N);}:function(Z,K,O,g){if(g===undefined)g=O;Z[g]=K[O];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a10Y(0x163)]?function(Z,K){const C=a10Y;Object['defineProperty'](Z,C(0x141),{'enumerable':!![],'value':K});}:function(Z,K){Z['default']=K;}),__importStar=this&&this['__importStar']||function(Z){const S=a10Y;if(Z&&Z['__esModule'])return Z;var K={};if(Z!=null){for(var O in Z)if(O!==S(0x141)&&Object[S(0x15b)]['hasOwnProperty']['call'](Z,O))__createBinding(K,Z,O);}return __setModuleDefault(K,Z),K;},__awaiter=this&&this['__awaiter']||function(Z,K,O,g){function N(H){return H instanceof O?H:new O(function(o){o(H);});}return new(O||(O=Promise))(function(H,o){const m=a10K;function s(W){const n=a10K;try{y(g[n(0x133)](W));}catch(B){o(B);}}function R(W){const k=a10K;try{y(g[k(0x155)](W));}catch(B){o(B);}}function y(W){const x=a10K;W[x(0x16e)]?H(W['value']):N(W[x(0x154)])['then'](s,R);}y((g=g[m(0x168)](Z,K||[]))['next']());});},__importDefault=this&&this[a10Y(0x137)]||function(Z){const r=a10Y;return Z&&Z[r(0x132)]?Z:{'default':Z};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a10Y(0x13d)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a10Y(0x135))),events_1=require(a10Y(0x15f));class NorthflankApiBrowserLogin extends events_1[a10Y(0x159)]{constructor(Z,K=!![],O){const D=a10Y;super(),this['baseUrl']=Z,this[D(0x166)]=K,this['agent']=O,this[D(0x138)]=D(0x13e),this[D(0x165)]=()=>JSON[D(0x14a)]({'type':D(0x161)});}[a10Y(0x15c)](){const d=a10Y;var Z;const K=this[d(0x16a)][d(0x142)](d(0x16b),d(0x167))[d(0x142)](d(0x130),d(0x157)),O=K+'/v1/cli-login',g=new ws_1[(d(0x141))](O,{'agent':this[d(0x136)]}),N=()=>__awaiter(this,void 0x0,void 0x0,function*(){const l=d;yield new Promise(o=>{const b=a10K;var s;(s=this[b(0x139)])===null||s===void 0x0?void 0x0:s[b(0x134)](JSON[b(0x14a)]({'type':b(0x169)}),()=>o());}),process[l(0x148)]();}),H=new Promise((o,s)=>{const f=d;var R,y,W;try{this['duplex']=(0x0,ws_1[f(0x14e)])(g),process['on'](f(0x156),N);}catch(B){s(new Error(f(0x146)+B[f(0x153)]));}(R=this[f(0x139)])===null||R===void 0x0?void 0x0:R['on'](f(0x158),V=>{const a=f;var M;const I=JSON['parse'](V[a(0x150)]());switch(I===null||I===void 0x0?void 0x0:I[a(0x140)]){case a(0x16d):{const {loginPage:c}=I;if(c===undefined){this[a(0x12f)]('Unexpected\x20response',s);return;}this[a(0x166)]&&(0x0,open_1[a(0x141)])(c)[a(0x149)](E=>{const v=a,p=v(0x147)+E[v(0x153)];this[v(0x12f)](p,s);});this[a(0x15d)](a(0x160),{'url':c});break;}case'login-success':{const {apiToken:E,contextName:p}=I;if(E===undefined){this[a(0x12f)]('Unexpected\x20response,\x20api\x20token\x20missing',s);return;}(M=this[a(0x139)])===null||M===void 0x0?void 0x0:M[a(0x134)](),o({'token':E,'contextName':p}),this[a(0x138)]=a(0x14c);break;}case a(0x13b):{const T=a(0x14f)+(I===null||I===void 0x0?void 0x0:I['message']);this[a(0x12f)](T,s);break;}default:{const J=a(0x13c)+JSON['stringify'](I);this[a(0x12f)](J,s);}}}),(y=this[f(0x139)])===null||y===void 0x0?void 0x0:y['on'](f(0x143),V=>{const L=f;this['handleError'](L(0x15a)+V[L(0x153)],s);}),(W=this['duplex'])===null||W===void 0x0?void 0x0:W['on'](f(0x134),()=>{const X=f;if(this[X(0x138)]===X(0x14c)){}else this[X(0x12f)]('Login\x20process\x20stopped\x20before\x20completed',s);});});return(Z=this[d(0x139)])===null||Z===void 0x0?void 0x0:Z[d(0x131)](this['initPackage']()),this[d(0x138)]=d(0x161),H[d(0x13f)](()=>{const e=d;process[e(0x162)](e(0x156),N);});}[a10Y(0x12f)](Z,K){const U=a10Y;var O,g;K?(O=this[U(0x139)])===null||O===void 0x0?void 0x0:O['end'](()=>K(new Error(Z))):(g=this[U(0x139)])===null||g===void 0x0?void 0x0:g[U(0x134)](),this[U(0x138)]='error';}}exports[a10Y(0x13d)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a10W=a10g;(function(O,g){const z=a10g,R=O();while(!![]){try{const Y=parseInt(z(0xf7))/0x1+-parseInt(z(0xda))/0x2*(-parseInt(z(0xd4))/0x3)+parseInt(z(0xed))/0x4+-parseInt(z(0xd5))/0x5*(parseInt(z(0xe2))/0x6)+parseInt(z(0xde))/0x7*(-parseInt(z(0xc2))/0x8)+parseInt(z(0xdd))/0x9+parseInt(z(0xd9))/0xa*(-parseInt(z(0xe5))/0xb);if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a10O,0x597c4));var __createBinding=this&&this[a10W(0xec)]||(Object['create']?function(O,g,R,Y){const X=a10W;if(Y===undefined)Y=R;var y=Object['getOwnPropertyDescriptor'](g,R);(!y||(X(0xd6)in y?!g[X(0xfb)]:y[X(0xdc)]||y['configurable']))&&(y={'enumerable':!![],'get':function(){return g[R];}}),Object[X(0xc4)](O,Y,y);}:function(O,g,R,Y){if(Y===undefined)Y=R;O[Y]=g[R];}),__setModuleDefault=this&&this[a10W(0xd0)]||(Object[a10W(0xee)]?function(O,g){const M=a10W;Object[M(0xc4)](O,'default',{'enumerable':!![],'value':g});}:function(O,g){const l=a10W;O[l(0xdf)]=g;}),__importStar=this&&this['__importStar']||function(O){const C=a10W;if(O&&O['__esModule'])return O;var g={};if(O!=null){for(var R in O)if(R!==C(0xdf)&&Object[C(0xf3)][C(0xca)][C(0xfd)](O,R))__createBinding(g,O,R);}return __setModuleDefault(g,O),g;},__awaiter=this&&this['__awaiter']||function(O,g,R,Y){function y(n){return n instanceof R?n:new R(function(G){G(n);});}return new(R||(R=Promise))(function(n,G){const H=a10g;function S(L){try{V(Y['next'](L));}catch(N){G(N);}}function q(L){try{V(Y['throw'](L));}catch(N){G(N);}}function V(e){const K=a10g;e['done']?n(e[K(0xe1)]):y(e[K(0xe1)])['then'](S,q);}V((Y=Y[H(0xfe)](O,g||[]))[H(0xe4)]());});},__importDefault=this&&this[a10W(0xc5)]||function(O){return O&&O['__esModule']?O:{'default':O};};function a10O(){const T=['call','apply','duplex','stringify','unable\x20to\x20parse\x20message:\x20','type','4768YTENpJ','write','defineProperty','__importDefault','Failure\x20during\x20login:\x20','data','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','error','hasOwnProperty','Unable\x20to\x20open\x20browser:\x20','open','emit','catch','replace','__setModuleDefault','startLogin','EventEmitter','events','267XEWiHD','1639765wiqfhb','get','https:','Login\x20process\x20stopped\x20before\x20completed','780VxLwQg','10258eluiYt','parse','writable','6384078zrdktj','35mjzDaC','default','SIGINT','value','6kJhCSZ','status','next','162789lQKsew','idle','browser-opened','wss:','agent','message','end','__createBinding','1316364aSusRh','create','Unexpected\x20response','error\x20happened\x20during\x20browser\x20login:\x20','/v1/cli-login','init','prototype','exit','initPackage','handleError','356873YGjfei','success','login-failure','baseUrl','__esModule','NorthflankApiBrowserLogin'];a10O=function(){return T;};return a10O();}Object['defineProperty'](exports,a10W(0xfb),{'value':!![]}),exports[a10W(0xfc)]=void 0x0;const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a10W(0xcc))),events_1=require(a10W(0xd3));function a10g(O,g){const R=a10O();return a10g=function(Y,y){Y=Y-0xc1;let n=R[Y];return n;},a10g(O,g);}class NorthflankApiBrowserLogin extends events_1[a10W(0xd2)]{constructor(O,g=!![],R){const f=a10W;super(),this[f(0xfa)]=O,this['openBrowser']=g,this[f(0xe9)]=R,this[f(0xe3)]=f(0xe6),this[f(0xf5)]=()=>JSON[f(0x100)]({'type':f(0xf2)});}[a10W(0xd1)](){const i=a10W;var O;const g=this[i(0xfa)][i(0xcf)](i(0xd7),i(0xe8))[i(0xcf)]('http:','ws:'),R=g+i(0xf1),Y=new ws_1[(i(0xdf))](R,{'agent':this['agent']}),y=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z=i;yield new Promise(G=>{const A=a10g;var S;(S=this[A(0xff)])===null||S===void 0x0?void 0x0:S['end'](JSON[A(0x100)]({'type':'aborted'}),()=>G());}),process[Z(0xf4)]();}),n=new Promise((G,S)=>{const c=i;var q,V,L;try{this[c(0xff)]=(0x0,ws_1['createWebSocketStream'])(Y),process['on'](c(0xe0),y);}catch(N){S(new Error(c(0xc8)+N[c(0xea)]));}(q=this[c(0xff)])===null||q===void 0x0?void 0x0:q['on'](c(0xc7),b=>{const U=c;var E;const p=JSON[U(0xdb)](b['toString']());switch(p===null||p===void 0x0?void 0x0:p[U(0xc1)]){case'init-ack':{const {loginPage:F}=p;if(F===undefined){this[U(0xf6)](U(0xef),S);return;}this['openBrowser']&&(0x0,open_1[U(0xdf)])(F)[U(0xce)](m=>{const d=U,o=d(0xcb)+m[d(0xea)];this[d(0xf6)](o,S);});this[U(0xcd)](U(0xe7),{'url':F});break;}case'login-success':{const {apiToken:m,contextName:o}=p;if(m===undefined){this[U(0xf6)]('Unexpected\x20response,\x20api\x20token\x20missing',S);return;}(E=this['duplex'])===null||E===void 0x0?void 0x0:E[U(0xeb)](),G({'token':m,'contextName':o}),this['status']=U(0xf8);break;}case U(0xf9):{const v=U(0xc6)+(p===null||p===void 0x0?void 0x0:p[U(0xea)]);this[U(0xf6)](v,S);break;}default:{const a=U(0x101)+JSON['stringify'](p);this[U(0xf6)](a,S);}}}),(V=this['duplex'])===null||V===void 0x0?void 0x0:V['on'](c(0xc9),b=>{const r=c;this[r(0xf6)](r(0xf0)+b[r(0xea)],S);}),(L=this[c(0xff)])===null||L===void 0x0?void 0x0:L['on']('end',()=>{const j=c;if(this[j(0xe3)]===j(0xf8)){}else this['handleError'](j(0xd8),S);});});return(O=this[i(0xff)])===null||O===void 0x0?void 0x0:O[i(0xc3)](this[i(0xf5)]()),this[i(0xe3)]='init',n['finally'](()=>{const t=i;process['removeListener'](t(0xe0),y);});}['handleError'](O,g){const Q=a10W;var R,Y;g?(R=this['duplex'])===null||R===void 0x0?void 0x0:R[Q(0xeb)](()=>g(new Error(O))):(Y=this['duplex'])===null||Y===void 0x0?void 0x0:Y[Q(0xeb)](),this['status']='error';}}exports['NorthflankApiBrowserLogin']=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a11Z1=a11K;function a11Z(){const ZH=['Get\x20logs\x20generated\x20before\x20this\x20time,\x20','getStandardLogCommand','askForAddonBackup','../utils','error','next','Id\x20[','\x20for\x20all\x20containers','length','Number\x20of\x20lines\x20to\x20return.','--restore\x20--restoreId\x20[restoreId]','defaultDurationSeconds','1881719tgrjSW','\x20in\x20project\x20','getCommand','--build\x20--buildId\x20[buildId]','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','then','Id]','hasNextPage','toUpperCase',',\x20backup\x20id\x20','315KXwtHx','job','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','addonRestore','start','\x20(exit\x20with\x20','apiContext','value','Error\x20while\x20tailing\x20log\x20lines:\x20','\x20to\x20get\x20logs\x20from','json','CliLogs','toISOString','inquirerHelper','askForService','askForAddon','12032883terKDA','Which\x20log\x20types\x20to\x20fetch','logs','choices','Error\x20while\x20fetching\x20log\x20lines:\x20','@northflank/js-client','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','--regexIncludes\x20<regex>','ApiClient','8DLgNKp','\x27Ctrl+C\x27','buildId','close','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','textIncludes','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','restoreId','getSeconds','build-','--noDefaults','\x20of\x20','1371784RQiehB','getFormatter','details','throw','-o,\x20--output\x20[output]','addonBackup','bold','service','askForAddonRestore','--backup\x20--backupId\x20[backupId]','warning','10HzJLVr','forEach','noDefaults','InquirerHelper','Deployment\x20id,\x20example:\x20my-service-54785f4','pagination','cursor','default','assign','Get\x20logs\x20generated\x20after\x20this\x20time,\x20','--textIncludes\x20<text>','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','1100262KTueda','--deployment\x20--deploymentId\x20[deploymentId]','runId','yaml','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','logRange','--duration\x20[duration]','getCurrentProjectName','--container\x20--containerId\x20[containerId]','slice','-l,\x20--lineLimit\x20[limit]','addOption','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','commander','Build\x20to\x20get\x20logs\x20from','apply','deploymentId','--startTime\x20<timestamp>','\x20with\x20live-tailing','12012ZINQJr','message','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','askForContainer','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','--regexNotIncludes\x20<regex>','../formatting/console-format-helpers','parseDateInput','printInitInfo','apiClient','backward','regexNotIncludes',',\x20from:\x20','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','logTail','stringify','2436190wzmMCm','assertContextExisting','serviceId','setSeconds','chalk','187ILgvXS','getLogsCommand','askForBuild','\x20--','data','textNotIncludes','regexIncludes','__esModule','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','action','getCurrentServiceName','Get\x20log\x20for\x20the\x20specified\x20','tail',',\x20restore\x20id\x20','values','containerId','Option',',\x20duration:\x20','valueOf','customUserAgent','argParser','defineProperty','Backup\x20to\x20get\x20logs\x20from','option','tsHint','Project\x20for\x20logs','\x0aDetails:\x20','--run\x20--runId\x20[runId]','log','>\x20Container\x20logs',',\x20to:\x20','logs-received','addonId','conflicts','--project\x20--projectId\x20[projectId]','../inquirer-helper','yml','319071GKHIYw'];a11Z=function(){return ZH;};return a11Z();}(function(Z,K){const F=a11K,O=Z();while(!![]){try{const g=-parseInt(F(0x10c))/0x1+parseInt(F(0x100))/0x2*(-parseInt(F(0xb9))/0x3)+-parseInt(F(0xf5))/0x4+-parseInt(F(0xd0))/0x5*(-parseInt(F(0x11f))/0x6)+-parseInt(F(0xc6))/0x7*(parseInt(F(0xe9))/0x8)+-parseInt(F(0xe0))/0x9+parseInt(F(0x12f))/0xa*(parseInt(F(0x94))/0xb);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a11Z,0xa7b04));function a11K(Z,K){const O=a11Z();return a11K=function(g,N){g=g-0x94;let H=O[g];return H;},a11K(Z,K);}var __awaiter=this&&this['__awaiter']||function(Z,K,O,g){function N(H){return H instanceof O?H:new O(function(o){o(H);});}return new(O||(O=Promise))(function(H,o){const t=a11K;function s(W){try{y(g['next'](W));}catch(B){o(B);}}function R(W){const A=a11K;try{y(g[A(0xf8)](W));}catch(B){o(B);}}function y(W){const h=a11K;W['done']?H(W['value']):N(W[h(0xd7)])[h(0xcb)](s,R);}y((g=g[t(0x11b)](Z,K||[]))[t(0xbf)]());});},__importDefault=this&&this['__importDefault']||function(Z){const Z0=a11K;return Z&&Z[Z0(0x9b)]?Z:{'default':Z};};Object[a11Z1(0xa9)](exports,a11Z1(0x9b),{'value':!![]}),exports[a11Z1(0xdb)]=void 0x0;const js_client_1=require(a11Z1(0xe5)),chalk_1=__importDefault(require(a11Z1(0x133))),utils_1=require(a11Z1(0xbd)),inquirer_helper_1=require(a11Z1(0xb7)),commander_1=require(a11Z1(0x119)),console_format_helpers_1=require(a11Z1(0x125)),log_formatter_1=require('./log-formatter');class CliLogs{constructor(Z,K){const Z2=a11Z1;this[Z2(0xd6)]=Z,this[Z2(0xc5)]=0x708,this[Z2(0xbb)]=(O,g,N,H)=>{const Z3=Z2,o=(0x0,utils_1[Z3(0xc8)])(!![])['name']((g?Z3(0xf2):'')+Z3(0xe2))['alias']((g?Z3(0xf2):'')+Z3(0xb0))['description'](Z3(0x9f)+O)['option'](Z3(0xb6),Z3(0xad))[Z3(0xab)]('--'+O+Z3(0x97)+O+Z3(0xc0)+O+Z3(0xcc),O['charAt'](0x0)[Z3(0xce)]()+O[Z3(0x115)](0x1)+Z3(0xd9))[Z3(0xab)](Z3(0x114),Z3(0x121));if(g)o[Z3(0xab)](Z3(0xc9),Z3(0x11a));if(O==='job')o['option'](Z3(0xaf),Z3(0x123));if(O===Z3(0xfc))o['option'](Z3(0x10d),Z3(0x104));if(N)o[Z3(0xab)](Z3(0xfe),Z3(0xaa));if(H)o['option'](Z3(0xc4),'Restore\x20to\x20get\x20logs\x20from');return!g&&!N&&!H&&o[Z3(0x117)](new commander_1[(Z3(0xa4))]('-t,\x20--types\x20<types...>',Z3(0xe1))[Z3(0xe3)](Object[Z3(0xa2)](js_client_1['LogType']))),o[Z3(0xab)]('-f,\x20--tail','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.')[Z3(0xab)](Z3(0x116),Z3(0xc3))[Z3(0xab)](Z3(0x11d),Z3(0x109)+utils_1[Z3(0xac)],utils_1[Z3(0x126)])['addOption'](new commander_1['Option']('--endTime\x20<timestamp>',Z3(0xba)+utils_1[Z3(0xac)])[Z3(0xa8)](utils_1['parseDateInput'])['conflicts']([Z3(0xa0)]))[Z3(0xab)](Z3(0x112),Z3(0x110))[Z3(0x117)](new commander_1['Option']('-d,\x20--direction\x20<order>',Z3(0xca))[Z3(0xe3)]([Z3(0x129),'forward'])[Z3(0xb5)]([Z3(0xa0)]))[Z3(0x117)](new commander_1[(Z3(0xa4))](Z3(0x10a),Z3(0xef))[Z3(0xb5)]([Z3(0x99),Z3(0x9a),Z3(0x12a)]))[Z3(0x117)](new commander_1[(Z3(0xa4))]('--textNotIncludes\x20<text>',Z3(0x10b))['conflicts'](['textIncludes',Z3(0x9a),Z3(0x12a)]))[Z3(0x117)](new commander_1[(Z3(0xa4))](Z3(0xe7),Z3(0xed))[Z3(0xb5)]([Z3(0x99),Z3(0xee),Z3(0x12a)]))[Z3(0x117)](new commander_1[(Z3(0xa4))](Z3(0x124),Z3(0x118))[Z3(0xb5)](['textNotIncludes','regexIncludes',Z3(0xee)]))[Z3(0xab)](Z3(0xf3),Z3(0xd2),![])[Z3(0x117)](new commander_1[(Z3(0xa4))](Z3(0xf9),Z3(0x9c))[Z3(0xe3)](Object[Z3(0xa2)](['format',Z3(0xda),Z3(0x10f)]))),o;},this[Z2(0x127)]=(O,g,N,H)=>{const Z4=Z2,{containerName:o,restoreId:s,backupId:R,quiet:y,tail:W,startTime:B,endTime:V,duration:M}=H;if(y===!![])return;const I=W?Z4(0xd5)+chalk_1['default'][Z4(0xfb)](Z4(0xea))+')':'',c=W?Z4(0x11e):'',E=new Date(),p=B!==null&&B!==void 0x0?B:new Date(new Date((V!==null&&V!==void 0x0?V:E)[Z4(0xa6)]())[Z4(0x132)]((V!==null&&V!==void 0x0?V:E)[Z4(0xf1)]()-(M!==null&&M!==void 0x0?M:this[Z4(0xc5)]))),T=(V!==null&&V!==void 0x0?V:B!==undefined)?new Date(new Date(B[Z4(0xa6)]())[Z4(0x132)](B[Z4(0xf1)]()+(M!==null&&M!==void 0x0?M:this[Z4(0xc5)]))):E,J=R!==undefined,q=p&&!J?Z4(0x12b)+chalk_1[Z4(0x107)][Z4(0xfb)](p['toISOString']()):'',Y=T&&!J?Z4(0xb2)+chalk_1['default'][Z4(0xfb)](T[Z4(0xdc)]()):'',P=M?Z4(0xa5)+M+'\x20seconds':'',C=o?'\x20for\x20container\x20'+chalk_1[Z4(0x107)][Z4(0xfb)](o):J?'':Z4(0xc1),S=R?Z4(0xcf)+R:'',n=s?Z4(0xa1)+s:'',k=O+'\x20'+chalk_1[Z4(0x107)][Z4(0xfb)](g)+S+n+Z4(0xc7)+chalk_1[Z4(0x107)][Z4(0xfb)](N),x=''+q+Y+P;console[Z4(0xb0)](Z4(0xb1)+c+C+Z4(0xf4)+k+x+I+':');},this[Z2(0xf6)]=(O,g)=>(N,H)=>{const Z5=Z2;if(!O){if(N[Z5(0xc2)]===0x0)console[Z5(0xb0)](Z5(0xe6));N[Z5(0x101)](o=>(0x0,log_formatter_1['formatLogLine'])(o,g));}else(0x0,console_format_helpers_1['printResponse'])(O,N);(H===null||H===void 0x0?void 0x0:H[Z5(0xcd)])&&(0x0,utils_1[Z5(0xff)])('Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20'+H[Z5(0x106)]);},this['apiClient']=new js_client_1[(Z2(0xe8))](Z,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[Z2(0xa7)],'agent':K}),this['logsApiClient']=this[Z2(0x128)],this[Z2(0xdd)]=new inquirer_helper_1[(Z2(0x103))](this['apiClient']);}[a11Z1(0x95)](Z,K=![],O=![],g=![]){const Zg=a11Z1,N=(B,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z6=a11K,M=V[Z6(0x102)],{apiContext:I,inquirerHelper:c}=this;switch(Z){case Z6(0xfc):{const E=M?undefined:I[Z6(0x9e)]();return V[Z6(0x131)]||E||(yield c[Z6(0xde)](B)());}case Z6(0xd1):{const p=M?undefined:I['getCurrentJobName']();return V['jobId']||p||(yield c['askForJob'](B)());}case'addon':{return V[Z6(0xb4)]||(yield c[Z6(0xdf)](B)());}}}),H=(B,V,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z7=a11K;if(K)return M[Z7(0xeb)]||(yield this[Z7(0xdd)][Z7(0x96)](B,Z===Z7(0xfc)?V:undefined,Z==='job'?V:undefined,!![])());return undefined;}),o=(B,V,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z8=a11K;if(O||g)return M['backupId']||(yield this[Z8(0xdd)][Z8(0xbc)](B,V)());return undefined;}),s=(B,V,M,I)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z9=a11K;if(g)return I[Z9(0xf0)]||(yield this[Z9(0xdd)][Z9(0xfd)](B,V,M)());return undefined;}),R=(B,V,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZZ=a11K;if(!K&&M[ZZ(0xa3)]!==undefined){if(M[ZZ(0xa3)]!==!![])return M[ZZ(0xa3)];return yield this[ZZ(0xdd)][ZZ(0x122)](B,Z===ZZ(0xfc)?V:undefined,Z===ZZ(0xd1)?V:undefined,!![])();}return undefined;}),y=(B,V,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZK=a11K;if(Z===ZK(0xd1))return M[ZK(0x10e)]||(yield this[ZK(0xdd)]['askForJobRun'](V,B,!![])());return undefined;}),W=(B,V,M)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZO=a11K;if(Z===ZO(0xfc)){if(M[ZO(0x11c)]!==!![])return M[ZO(0x11c)];return M[ZO(0x11c)];}return undefined;});return this['getStandardLogCommand'](Z,K,O,g)[Zg(0x9d)](B=>__awaiter(this,void 0x0,void 0x0,function*(){const ZN=Zg,{noDefaults:V,projectId:M,quiet:I,tail:c,types:E,textIncludes:p,textNotIncludes:T,regexIncludes:J,regexNotIncludes:q,direction:Y,lineLimit:P,startTime:C,endTime:S,duration:n,output:k}=B;(0x0,utils_1[ZN(0x130)])(this['apiClient']);const {apiContext:x,inquirerHelper:m,logsApiClient:r}=this,D=V?undefined:x[ZN(0x113)](),d=M||D||(yield m['askForProject']()),b=yield N(d,B),l=yield H(d,b,B),f=yield o(d,b,B),a=yield s(d,b,f,B),v=yield y(d,b,B),L=yield W(d,b,B),X=yield R(d,b,B);if(C&&S&&n)throw new Error(ZN(0x12c));const e={'projectId':d,'entityId':b},U={'containerName':X,'types':E,'textIncludes':p,'textNotIncludes':T,'regexIncludes':J,'regexNotIncludes':q,'lineLimit':P,'startTime':C,'duration':n,'runId':v,'buildId':l,'backupId':f,'restoreId':a,'deploymentId':L,'isBuild':K!==null&&K!==void 0x0?K:![]},i=g?ZN(0xd3):O?ZN(0xfa):Z,z=Object[ZN(0x108)](Object[ZN(0x108)]({},U),{'endTime':S,'direction':Y});if(!I&&k!=='yaml'&&k!==ZN(0xb8)&&k!==ZN(0xda))this[ZN(0x127)](Z,b,d,Object[ZN(0x108)](Object['assign']({},z),B));const j=this['getFormatter'](k,p!==null&&p!==void 0x0?p:J);if(c){const G=yield r['logs'][ZN(0x12d)](e,U,i);G['on'](ZN(0xb3),j),G['on'](ZN(0xbe),w=>(0x0,utils_1[ZN(0xbe)])(ZN(0xd8)+w[ZN(0x120)])),G['on'](ZN(0xec),()=>console['log']('Log\x20session\x20ended')),yield G[ZN(0xd4)]();}else{const w=yield r['logs'][ZN(0x111)](e,z,i);if(w[ZN(0xbe)]){const Q=w['error'][ZN(0xf7)],u=Q?ZN(0xae)+JSON[ZN(0x12e)](Q,null,'\x20'):'';(0x0,utils_1[ZN(0xbe)])(ZN(0xe4)+w[ZN(0xbe)]['message']+u);}else j(w[ZN(0x98)],w[ZN(0x105)]);}}));}}exports[a11Z1(0xdb)]=CliLogs;
1
+ 'use strict';const a11J=a11g;(function(O,g){const w=a11g,R=O();while(!![]){try{const Y=-parseInt(w(0x27d))/0x1*(parseInt(w(0x21d))/0x2)+-parseInt(w(0x1d9))/0x3*(parseInt(w(0x253))/0x4)+-parseInt(w(0x278))/0x5+parseInt(w(0x266))/0x6*(parseInt(w(0x242))/0x7)+parseInt(w(0x234))/0x8+parseInt(w(0x220))/0x9*(-parseInt(w(0x1f0))/0xa)+parseInt(w(0x1fc))/0xb*(parseInt(w(0x270))/0xc);if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a11O,0x54564));function a11g(O,g){const R=a11O();return a11g=function(Y,y){Y=Y-0x1d8;let n=R[Y];return n;},a11g(O,g);}var __awaiter=this&&this[a11J(0x202)]||function(O,g,R,Y){function y(n){return n instanceof R?n:new R(function(G){G(n);});}return new(R||(R=Promise))(function(n,G){const O1=a11g;function S(L){const h=a11g;try{V(Y[h(0x209)](L));}catch(N){G(N);}}function q(L){const D=a11g;try{V(Y[D(0x24a)](L));}catch(N){G(N);}}function V(e){const O0=a11g;e[O0(0x20b)]?n(e[O0(0x258)]):y(e[O0(0x258)])[O0(0x219)](S,q);}V((Y=Y[O1(0x259)](O,g||[]))[O1(0x209)]());});},__importDefault=this&&this[a11J(0x26f)]||function(O){return O&&O['__esModule']?O:{'default':O};};Object[a11J(0x1fb)](exports,'__esModule',{'value':!![]}),exports[a11J(0x274)]=void 0x0;const js_client_1=require(a11J(0x27a)),chalk_1=__importDefault(require(a11J(0x27b))),utils_1=require(a11J(0x231)),inquirer_helper_1=require(a11J(0x1ef)),commander_1=require(a11J(0x20d)),console_format_helpers_1=require('../formatting/console-format-helpers'),log_formatter_1=require(a11J(0x222));class CliLogs{constructor(O,g){const O2=a11J;this[O2(0x21c)]=O,this[O2(0x232)]=0x708,this[O2(0x1f2)]=(R,Y,y,n)=>{const O3=O2,G=(0x0,utils_1['getCommand'])(!![])[O3(0x239)]((Y?O3(0x238):'')+O3(0x1de))[O3(0x27f)]((Y?O3(0x238):'')+O3(0x213))[O3(0x229)](O3(0x1fa)+R)[O3(0x22a)](O3(0x215),O3(0x264))['option']('--'+R+'\x20--'+R+O3(0x25a)+R+O3(0x24f),R[O3(0x269)](0x0)[O3(0x27c)]()+R[O3(0x272)](0x1)+O3(0x1e9))['option'](O3(0x1f4),O3(0x201));if(Y)G[O3(0x22a)]('--build\x20--buildId\x20[buildId]',O3(0x24b));if(R===O3(0x1df))G[O3(0x22a)]('--run\x20--runId\x20[runId]',O3(0x20c));if(R==='service')G[O3(0x22a)](O3(0x26b),O3(0x257));if(y)G[O3(0x22a)](O3(0x21f),O3(0x252));if(n)G[O3(0x22a)](O3(0x1e6),O3(0x225));return!Y&&!y&&!n&&G[O3(0x217)](new commander_1[(O3(0x208))](O3(0x271),O3(0x203))[O3(0x235)](Object[O3(0x22f)](js_client_1[O3(0x24c)]))),G[O3(0x22a)](O3(0x236),O3(0x26e))['option'](O3(0x221),O3(0x233))[O3(0x22a)](O3(0x22d),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[O3(0x245)],utils_1[O3(0x261)])[O3(0x217)](new commander_1[(O3(0x208))](O3(0x22c),O3(0x1fe)+utils_1[O3(0x245)])[O3(0x24e)](utils_1[O3(0x261)])[O3(0x1ee)](['tail']))[O3(0x22a)](O3(0x214),'Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set')[O3(0x217)](new commander_1['Option'](O3(0x212),O3(0x279))[O3(0x235)]([O3(0x25d),'forward'])[O3(0x1ee)]([O3(0x21b)]))['addOption'](new commander_1['Option']('--textIncludes\x20<text>',O3(0x1eb))['conflicts']([O3(0x23c),O3(0x1e4),O3(0x273)]))[O3(0x217)](new commander_1[(O3(0x208))](O3(0x207),O3(0x204))[O3(0x1ee)]([O3(0x21e),O3(0x1e4),'regexNotIncludes']))['addOption'](new commander_1['Option'](O3(0x230),O3(0x1e8))['conflicts']([O3(0x23c),O3(0x21e),'regexNotIncludes']))['addOption'](new commander_1[(O3(0x208))](O3(0x23b),O3(0x1db))[O3(0x1ee)]([O3(0x23c),O3(0x1e4),O3(0x21e)]))['option'](O3(0x20e),O3(0x262),![])['addOption'](new commander_1[(O3(0x208))](O3(0x22b),O3(0x1dd))['choices'](Object[O3(0x22f)]([O3(0x1f7),O3(0x260),O3(0x249)]))),G;},this[O2(0x206)]=(R,Y,y,n)=>{const O4=O2,{containerName:G,restoreId:S,backupId:q,quiet:V,tail:e,startTime:L,endTime:N,duration:b}=n;if(V===!![])return;const E=e?O4(0x20f)+chalk_1[O4(0x25c)]['bold'](O4(0x22e))+')':'',p=e?O4(0x23e):'',F=new Date(),m=L!==null&&L!==void 0x0?L:new Date(new Date((N!==null&&N!==void 0x0?N:F)[O4(0x277)]())[O4(0x1fd)]((N!==null&&N!==void 0x0?N:F)[O4(0x1e0)]()-(b!==null&&b!==void 0x0?b:this[O4(0x232)]))),o=(N!==null&&N!==void 0x0?N:L!==undefined)?new Date(new Date(L[O4(0x277)]())[O4(0x1fd)](L[O4(0x1e0)]()+(b!==null&&b!==void 0x0?b:this['defaultDurationSeconds']))):F,v=q!==undefined,a=m&&!v?O4(0x263)+chalk_1[O4(0x25c)][O4(0x247)](m[O4(0x240)]()):'',z=o&&!v?O4(0x268)+chalk_1[O4(0x25c)][O4(0x247)](o[O4(0x240)]()):'',W=b?O4(0x216)+b+'\x20seconds':'',X=G?O4(0x218)+chalk_1[O4(0x25c)][O4(0x247)](G):v?'':O4(0x25b),M=q?O4(0x25f)+q:'',l=S?O4(0x1f3)+S:'',C=R+'\x20'+chalk_1[O4(0x25c)][O4(0x247)](Y)+M+l+O4(0x1ff)+chalk_1[O4(0x25c)]['bold'](y),K=''+a+z+W;console[O4(0x213)](O4(0x1e1)+p+X+O4(0x1e7)+C+K+E+':');},this['getFormatter']=(R,Y)=>(y,n)=>{const O5=O2;if(!R){if(y[O5(0x267)]===0x0)console['log'](O5(0x1da));y[O5(0x237)](G=>(0x0,log_formatter_1['formatLogLine'])(G,Y));}else(0x0,console_format_helpers_1[O5(0x1e2)])(R,y);(n===null||n===void 0x0?void 0x0:n[O5(0x23d)])&&(0x0,utils_1[O5(0x1ec)])('Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20'+n[O5(0x250)]);},this[O2(0x1f1)]=new js_client_1[(O2(0x205))](O,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[O2(0x1ed)],'agent':g}),this[O2(0x1f6)]=this[O2(0x1f1)],this[O2(0x1f8)]=new inquirer_helper_1[(O2(0x276))](this['apiClient']);}[a11J(0x200)](O,g=![],R=![],Y=![]){const OY=a11J,y=(L,N)=>__awaiter(this,void 0x0,void 0x0,function*(){const O6=a11g,b=N[O6(0x246)],{apiContext:E,inquirerHelper:p}=this;switch(O){case O6(0x1f9):{const F=b?undefined:E['getCurrentServiceName']();return N[O6(0x23a)]||F||(yield p[O6(0x26d)](L)());}case'job':{const m=b?undefined:E[O6(0x21a)]();return N['jobId']||m||(yield p['askForJob'](L)());}case O6(0x244):{return N[O6(0x248)]||(yield p[O6(0x275)](L)());}}}),n=(L,N,b)=>__awaiter(this,void 0x0,void 0x0,function*(){const O7=a11g;if(g)return b[O7(0x223)]||(yield this[O7(0x1f8)][O7(0x27e)](L,O==='service'?N:undefined,O===O7(0x1df)?N:undefined,!![])());return undefined;}),G=(L,N,b)=>__awaiter(this,void 0x0,void 0x0,function*(){const O8=a11g;if(R||Y)return b[O8(0x243)]||(yield this[O8(0x1f8)]['askForAddonBackup'](L,N)());return undefined;}),S=(L,N,b,E)=>__awaiter(this,void 0x0,void 0x0,function*(){const O9=a11g;if(Y)return E['restoreId']||(yield this[O9(0x1f8)]['askForAddonRestore'](L,N,b)());return undefined;}),q=(L,N,b)=>__awaiter(this,void 0x0,void 0x0,function*(){const OO=a11g;if(!g&&b['containerId']!==undefined){if(b['containerId']!==!![])return b[OO(0x25e)];return yield this[OO(0x1f8)][OO(0x224)](L,O===OO(0x1f9)?N:undefined,O==='job'?N:undefined,!![])();}return undefined;}),V=(L,N,b)=>__awaiter(this,void 0x0,void 0x0,function*(){const Og=a11g;if(O===Og(0x1df))return b[Og(0x228)]||(yield this[Og(0x1f8)][Og(0x254)](N,L,!![])());return undefined;}),e=(L,N,b)=>__awaiter(this,void 0x0,void 0x0,function*(){const OR=a11g;if(O==='service'){if(b[OR(0x1e3)]!==!![])return b[OR(0x1e3)];return b['deploymentId'];}return undefined;});return this[OY(0x1f2)](O,g,R,Y)[OY(0x265)](L=>__awaiter(this,void 0x0,void 0x0,function*(){const Oy=OY,{noDefaults:N,projectId:b,quiet:E,tail:p,types:F,textIncludes:m,textNotIncludes:o,regexIncludes:v,regexNotIncludes:a,direction:z,lineLimit:W,startTime:X,endTime:M,duration:l,output:C}=L;(0x0,utils_1[Oy(0x211)])(this[Oy(0x1f1)]);const {apiContext:K,inquirerHelper:H,logsApiClient:f}=this,i=N?undefined:K['getCurrentProjectName'](),A=b||i||(yield H[Oy(0x1dc)]()),Z=yield y(A,L),c=yield n(A,Z,L),U=yield G(A,Z,L),d=yield S(A,Z,U,L),r=yield V(A,Z,L),j=yield e(A,Z,L),t=yield q(A,Z,L);if(X&&M&&l)throw new Error(Oy(0x20a));const Q={'projectId':A,'entityId':Z},T={'containerName':t,'types':F,'textIncludes':m,'textNotIncludes':o,'regexIncludes':v,'regexNotIncludes':a,'lineLimit':W,'startTime':X,'duration':l,'runId':r,'buildId':c,'backupId':U,'restoreId':d,'deploymentId':j,'isBuild':g!==null&&g!==void 0x0?g:![]},u=Y?Oy(0x1f5):R?'addonBackup':O,I=Object['assign'](Object[Oy(0x255)]({},T),{'endTime':M,'direction':z});if(!E&&C!==Oy(0x249)&&C!==Oy(0x1ea)&&C!==Oy(0x260))this[Oy(0x206)](O,Z,A,Object['assign'](Object[Oy(0x255)]({},I),L));const x=this[Oy(0x23f)](C,m!==null&&m!==void 0x0?m:v);if(p){const k=yield f[Oy(0x1de)][Oy(0x251)](Q,T,u);k['on']('logs-received',x),k['on'](Oy(0x24d),s=>(0x0,utils_1[Oy(0x24d)])(Oy(0x227)+s[Oy(0x26c)])),k['on'](Oy(0x1d8),()=>console[Oy(0x213)](Oy(0x226))),yield k[Oy(0x1e5)]();}else{const s=yield f[Oy(0x1de)]['logRange'](Q,I,u);if(s[Oy(0x24d)]){const P=s[Oy(0x24d)][Oy(0x241)],B=P?Oy(0x210)+JSON[Oy(0x26a)](P,null,'\x20'):'';(0x0,utils_1[Oy(0x24d)])(Oy(0x256)+s[Oy(0x24d)][Oy(0x26c)]+B);}else x(s['data'],s['pagination']);}}));}}exports[a11J(0x274)]=CliLogs;function a11O(){const On=['getCurrentJobName','tail','apiContext','2VvytlC','textIncludes','--backup\x20--backupId\x20[backupId]','18JPtqoR','-l,\x20--lineLimit\x20[limit]','./log-formatter','buildId','askForContainer','Restore\x20to\x20get\x20logs\x20from','Log\x20session\x20ended','Error\x20while\x20tailing\x20log\x20lines:\x20','runId','description','option','-o,\x20--output\x20[output]','--endTime\x20<timestamp>','--startTime\x20<timestamp>','\x27Ctrl+C\x27','values','--regexIncludes\x20<regex>','../utils','defaultDurationSeconds','Number\x20of\x20lines\x20to\x20return.','2572360hYquaI','choices','-f,\x20--tail','forEach','build-','name','serviceId','--regexNotIncludes\x20<regex>','textNotIncludes','hasNextPage','\x20with\x20live-tailing','getFormatter','toISOString','details','581TqvSHh','backupId','addon','tsHint','noDefaults','bold','addonId','yaml','throw','Build\x20to\x20get\x20logs\x20from','LogType','error','argParser','Id]','cursor','logTail','Backup\x20to\x20get\x20logs\x20from','2260392QxAhEz','askForJobRun','assign','Error\x20while\x20fetching\x20log\x20lines:\x20','Deployment\x20id,\x20example:\x20my-service-54785f4','value','apply','Id\x20[','\x20for\x20all\x20containers','default','backward','containerId',',\x20backup\x20id\x20','json','parseDateInput','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',',\x20from:\x20','Project\x20for\x20logs','action','32502tCgtoQ','length',',\x20to:\x20','charAt','stringify','--deployment\x20--deploymentId\x20[deploymentId]','message','askForService','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','__importDefault','2728152xqDFnf','-t,\x20--types\x20<types...>','slice','regexNotIncludes','CliLogs','askForAddon','InquirerHelper','valueOf','1805235AzrBIA','Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.','@northflank/js-client','chalk','toUpperCase','179457knMMUb','askForBuild','alias','close','3yvptbH','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','askForProject','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','logs','job','getSeconds','>\x20Container\x20logs','printResponse','deploymentId','regexIncludes','start','--restore\x20--restoreId\x20[restoreId]','\x20of\x20','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','\x20to\x20get\x20logs\x20from','yml','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','warning','customUserAgent','conflicts','../inquirer-helper','1147470hYKrOo','apiClient','getStandardLogCommand',',\x20restore\x20id\x20','--container\x20--containerId\x20[containerId]','addonRestore','logsApiClient','format','inquirerHelper','service','Get\x20log\x20for\x20the\x20specified\x20','defineProperty','44zDdqhW','setSeconds','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','\x20in\x20project\x20','getLogsCommand','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','__awaiter','Which\x20log\x20types\x20to\x20fetch','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','ApiClient','printInitInfo','--textNotIncludes\x20<text>','Option','next','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','done','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','commander','--noDefaults','\x20(exit\x20with\x20','\x0aDetails:\x20','assertContextExisting','-d,\x20--direction\x20<order>','log','--duration\x20[duration]','--project\x20--projectId\x20[projectId]',',\x20duration:\x20','addOption','\x20for\x20container\x20','then'];a11O=function(){return On;};return a11O();}
@@ -1 +1 @@
1
- 'use strict';const a12W=a12K;(function(Z,K){const y=a12K,O=Z();while(!![]){try{const g=parseInt(y(0xa5))/0x1+-parseInt(y(0x99))/0x2*(-parseInt(y(0x9e))/0x3)+parseInt(y(0x8c))/0x4*(parseInt(y(0x87))/0x5)+-parseInt(y(0x96))/0x6*(parseInt(y(0xa6))/0x7)+parseInt(y(0x9d))/0x8*(-parseInt(y(0x8d))/0x9)+parseInt(y(0x9c))/0xa+-parseInt(y(0xa0))/0xb*(parseInt(y(0xa1))/0xc);if(g===K)break;else O['push'](O['shift']());}catch(N){O['push'](O['shift']());}}}(a12Z,0x511ad));var __importDefault=this&&this[a12W(0x94)]||function(Z){const B=a12W;return Z&&Z[B(0x9b)]?Z:{'default':Z};};function a12K(Z,K){const O=a12Z();return a12K=function(g,N){g=g-0x84;let H=O[g];return H;},a12K(Z,K);}Object[a12W(0x8b)](exports,a12W(0x9b),{'value':!![]}),exports['formatLogLine']=exports[a12W(0x9a)]=void 0x0;const chalk_1=__importDefault(require(a12W(0x8f)));exports[a12W(0x9a)]=[{'color':a12W(0x95),'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':a12W(0x95),'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':a12W(0x95),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a12W(0x95),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a12W(0x9f),'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':a12W(0x90),'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':a12W(0x89),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a12W(0x98),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a12W(0xa3),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a12W(0x93),'pattern':/\b(information|info|debug)\b/i},{'color':a12W(0x97),'pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a12W(0x89),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(Z,K)=>{const V=a12W,O=chalk_1[V(0x85)][V(0x88)](Z['ts']['toISOString']()),g=chalk_1[V(0x85)][V(0x91)](Z[V(0xa4)]),N=exports['defaultLogSyntax'][V(0x86)]((o,s)=>{const M=V;return o[M(0x8a)](s[M(0x92)],R=>s[M(0x84)]?chalk_1[M(0x85)][s[M(0x84)]](R):chalk_1[M(0x85)][M(0x95)](R));},Z['log']),H=K?N[V(0x8a)](new RegExp(K,'g'),o=>chalk_1[V(0x85)][V(0x9f)](o)):N;console[V(0xa2)](O+'\x20'+g+V(0x8e)+H);};exports['formatLogLine']=formatLogLine;function a12Z(){const I=['9456yrNkZy','152487lZJEHS','\x20--\x20','chalk','green','cyan','pattern','gray','__importDefault','grey','6ruResk','yellow','greenBright','110pCSfqO','defaultLogSyntax','__esModule','3560690RPhNbw','168pbwHBV','26175OGWDkr','bold','209coMLTE','403428vMwTfs','log','red','containerId','264689XOyHaN','1445332XxEXYu','color','default','reduce','915UQlPtU','dim','blue','replace','defineProperty'];a12Z=function(){return I;};return a12Z();}
1
+ 'use strict';const a12L=a12g;(function(O,g){const V=a12g,R=O();while(!![]){try{const Y=parseInt(V(0xee))/0x1*(parseInt(V(0xd8))/0x2)+-parseInt(V(0xea))/0x3+parseInt(V(0xf5))/0x4*(-parseInt(V(0xde))/0x5)+-parseInt(V(0xe1))/0x6+parseInt(V(0xec))/0x7+parseInt(V(0xe8))/0x8+parseInt(V(0xed))/0x9*(parseInt(V(0xdd))/0xa);if(Y===g)break;else R['push'](R['shift']());}catch(y){R['push'](R['shift']());}}}(a12O,0xa54ac));var __importDefault=this&&this['__importDefault']||function(O){const e=a12g;return O&&O[e(0xf2)]?O:{'default':O};};function a12O(){const E=['blue','bold','1756082uZLQXH','red','grey','defaultLogSyntax','green','10uLyIgK','5922415DuYLoo','chalk','defineProperty','3521544EpzEAO','color','replace','dim','toISOString','log','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','9071992tXZwLC','greenBright','476160bNeLsF','gray','3665207ytfqMn','643698xcURXt','1gJdGpQ','formatLogLine','default','cyan','__esModule','yellow','reduce','4CYNuAW'];a12O=function(){return E;};return a12O();}Object[a12L(0xe0)](exports,a12L(0xf2),{'value':!![]}),exports['formatLogLine']=exports[a12L(0xdb)]=void 0x0;const chalk_1=__importDefault(require(a12L(0xdf)));exports[a12L(0xdb)]=[{'color':a12L(0xda),'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':a12L(0xda),'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':a12L(0xda),'pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a12L(0xda),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a12L(0xd7),'pattern':new RegExp(a12L(0xe7),'i')},{'color':a12L(0xdc),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a12L(0xdc),'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':a12L(0xf6),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a12L(0xe9),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a12L(0xd9),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a12L(0xeb),'pattern':/\b(information|info|debug)\b/i},{'color':a12L(0xf3),'pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a12L(0xf6),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(O,g)=>{const N=a12L,R=chalk_1[N(0xf0)][N(0xe4)](O['ts'][N(0xe5)]()),Y=chalk_1[N(0xf0)][N(0xf1)](O['containerId']),y=exports[N(0xdb)][N(0xf4)]((G,S)=>{const b=N;return G[b(0xe3)](S['pattern'],q=>S[b(0xe2)]?chalk_1[b(0xf0)][S[b(0xe2)]](q):chalk_1[b(0xf0)][b(0xda)](q));},O[N(0xe6)]),n=g?y[N(0xe3)](new RegExp(g,'g'),G=>chalk_1['default'][N(0xd7)](G)):y;console[N(0xe6)](R+'\x20'+Y+'\x20--\x20'+n);};function a12g(O,g){const R=a12O();return a12g=function(Y,y){Y=Y-0xd7;let n=R[Y];return n;},a12g(O,g);}exports[a12L(0xef)]=formatLogLine;