@northflank/cli 0.9.20 → 0.9.21

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 a4k=a4J;(function(Z,J){const d=a4J,z=Z();while(!![]){try{const P=-parseInt(d(0x78))/0x1+parseInt(d(0xcf))/0x2+-parseInt(d(0xbd))/0x3*(-parseInt(d(0xbf))/0x4)+parseInt(d(0xaf))/0x5*(parseInt(d(0x87))/0x6)+-parseInt(d(0xc1))/0x7+-parseInt(d(0x8c))/0x8*(parseInt(d(0x84))/0x9)+parseInt(d(0xc0))/0xa;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a4Z,0xa205a));function a4Z(){const f=['Command\x20completed\x20successfully,\x20exit\x20code:\x20','action','then','\x20to\x20exec\x20into','askForProject','greenBright','log','--user\x20[USER]','with\x20user:','\x20in\x20project\x20','__esModule','throw','setRawMode','readline','description','--cmd\x20--command\x20[COMMAND]','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.','with\x20group:','Run\x20command\x20with\x20this\x20group','1820SYwoFS','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.','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','toUpperCase','apply','stdout','default','error','sequence','join','message','shell\x20command\x20','InquirerHelper','chalk','566103YekaWx','exitCode','12LVmoPe','890940VCWmiL','1314502Mugcpk','getCurrentProjectName','@northflank/js-client','Id\x20[NAME]','getTerminalSize','charAt','resizeTerminal','exec','emitKeypressEvents','name','apiClient','getCommand','--group\x20[GROUP]','customUserAgent','52224PyAjyR','askForService','rows','execStartLog','bold','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','defineProperty','execCmd','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','pipe','addCommand','execJobSession','exit','command-exec','columns','__awaiter','--container\x20--containerId\x20[NAME]','job','Project\x20for\x20exec','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','service','value','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','95557pZMGxF','stdin','Unknown','Exec\x20','isTTY','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','Command\x20exec\x20for\x20the\x20specified\x20','stderr','Success','none','Error\x20occured\x20during\x20','keypress','576GXzbHd','\x27Ctrl+D\x27','getStandardExecCommand','9462cZSCuc','status','execServiceSession','stdOut','next','38544vjHquF','without\x20shell','warning','__importDefault','handleShellSession','../utils','option','--shell-cmd\x20[SHELL-CMD]','waitForCommandResult','with\x20shell\x20session','with\x20command\x20\x27','assertContextExisting','\x20--','ApiClient','getCurrentServiceName','askForJob'];a4Z=function(){return f;};return a4Z();}var __awaiter=this&&this[a4k(0xde)]||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){const X=a4J;function n(v){try{C(B['next'](v));}catch(o){A(o);}}function F(v){const N=a4J;try{C(B[N(0xa7)](v));}catch(o){A(o);}}function C(v){const W=a4J;v['done']?s(v[W(0x76)]):U(v['value'])[W(0x9e)](n,F);}C((B=B[X(0xb3)](Z,J||[]))[X(0x8b)]());});},__importDefault=this&&this[a4k(0x8f)]||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};Object[a4k(0xd5)](exports,a4k(0xa6),{'value':!![]}),exports['CliExec']=void 0x0;function a4J(Z,J){const z=a4Z();return a4J=function(P,B){P=P-0x72;let U=z[P];return U;},a4J(Z,J);}const js_client_1=require(a4k(0xc3)),chalk_1=__importDefault(require(a4k(0xbc))),utils_1=require(a4k(0x91)),inquirer_helper_1=require('../inquirer-helper');class CliExec{constructor(Z){const D=a4k;this[D(0x86)]=B=>(0x0,utils_1[D(0xcc)])(!![])[D(0xca)](B)[D(0xaa)](D(0x7e)+B+'.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20'+B+D(0x77)+B+D(0xd4)+B+'\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'+B+'\x20--shell-cmd\x20\x27sh\x27')[D(0x92)]('--project\x20--projectId\x20[NAME]',D(0x73))[D(0x92)]('--'+B+D(0x98)+B+D(0xc4),B[D(0xc6)](0x0)[D(0xb2)]()+B['slice'](0x1)+D(0x9f))[D(0x92)](D(0xdf),D(0xb1))[D(0x92)](D(0x93),D(0xac))[D(0x92)](D(0xa3),'Run\x20command\x20with\x20this\x20user')['option'](D(0xcd),D(0xae))[D(0x92)]('--noDefaults',D(0xd7),![])['option'](D(0xab),D(0xb0)),this[D(0xc5)]=()=>({'columns':process[D(0xb4)][D(0xdd)],'rows':process[D(0xb4)][D(0xd1)]}),this['execStartLog']=(B,U,s,A,n,F,C,v)=>{const q=D;if(v===!![])return;const o=A===q(0x81),j=o?q(0x8d):A===undefined?q(0x95):q(0xba)+chalk_1[q(0xb5)][q(0xa1)](A),V=n!==undefined?q(0xa4)+n:'',i=F!==undefined?q(0xad)+F:'',p=C!==undefined?q(0x96)+chalk_1[q(0xb5)][q(0xa1)](C)+'\x27':'',S=[p,j,V,i]['filter'](g=>g!=='')[q(0xb8)]('\x20'),e='(exit\x20with\x20two\x20quick\x20'+chalk_1[q(0xb5)][q(0xd3)](q(0x85))+')';console[q(0xa2)](q(0x7b)+B+'\x20'+chalk_1['default'][q(0xd3)](U)+q(0xa5)+chalk_1[q(0xb5)]['bold'](s)+'\x20'+S+'\x20'+e);},this[D(0x90)]=(B,U,s=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const y=D;var A,n;let F=![];try{if(process['stdin'][y(0x7c)]){const v=require(y(0xa9));v[y(0xc9)](process[y(0x79)]),process[y(0x79)][y(0xa8)](!![]),process[y(0xb4)]['on']('resize',()=>{const O=y;B[O(0xc7)](this[O(0xc5)]());}),process[y(0x79)]['on'](y(0x83),(o,j)=>{const G=y;j[G(0xb7)]==='\x04'&&(F?(process[G(0x79)][G(0xa8)](![]),(0x0,utils_1['warning'])(G(0x74)),process[G(0xdb)]()):(F=!![],setTimeout(()=>F=![],0x190)));});}process[y(0x79)][y(0xd8)](B['stdIn']),B['stdErr'][y(0xd8)](process[y(0x7f)]),B[y(0x8a)][y(0xd8)](process[y(0xb4)]),B['on'](y(0xb6),o=>{const K=y;var j;(0x0,utils_1['error'])(K(0x82)+U+'\x20command\x20exec:\x20'+((j=o[K(0xb9)])!==null&&j!==void 0x0?j:o)),process[K(0x79)][K(0x7c)]&&process['stdin'][K(0xa8)](![]),process['exit'](-0x1);});const C=yield B[y(0x94)]();if(s!==!![]){const o=(A=C===null||C===void 0x0?void 0x0:C[y(0x88)])!==null&&A!==void 0x0?A:y(0x7a),j=(n=C===null||C===void 0x0?void 0x0:C[y(0xbe)])!==null&&n!==void 0x0?n:-0x1,V=(C===null||C===void 0x0?void 0x0:C['message'])?',\x20details:\x20'+C[y(0xb9)]:'';o===y(0x80)?(0x0,utils_1['success'])(y(0x9c)+j):(0x0,utils_1[y(0x8e)])('Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20'+o+',\x20exit\x20code:\x20'+j+V);}return C;}finally{process[y(0x79)][y(0x7c)]&&process['stdin']['setRawMode'](![]);}}),this[D(0xcb)]=new js_client_1[(D(0x99))](Z,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[D(0xce)]});const J=new inquirer_helper_1[(D(0xbb))](this[D(0xcb)]);this[D(0xd6)]=(0x0,utils_1[D(0xcc)])()[D(0xca)](D(0xdc))['alias'](D(0xc8))[D(0xaa)](D(0x7d));const z=this[D(0x86)](D(0x75))[D(0x9d)](B=>__awaiter(this,void 0x0,void 0x0,function*(){const l=D,{noDefaults:U,projectId:s,serviceId:A,containerId:n,shellCmd:F,user:C,group:v,command:o,quiet:j}=B;(0x0,utils_1[l(0x97)])(this[l(0xcb)]);try{const V=U?undefined:Z[l(0xc2)](),i=s||V||(yield J[l(0xa0)]()),p=U?undefined:Z[l(0x9a)](),S=A||p||(yield J[l(0xd0)](i)()),g=F!==null&&F!==void 0x0?F:o!==undefined?'none':undefined;this[l(0xd2)]('service',S,i,g,C,v,o,j);const I=process[l(0xb4)][l(0xdd)],m=process['stdout'][l(0xd1)],L={'projectId':i,'serviceId':S},M=yield this['apiClient'][l(0xc8)][l(0x89)](L,{'containerName':n,'command':o,'shell':g,'user':C,'group':v,'ttyColumns':I,'ttyRows':m});yield this['handleShellSession'](M,'service',j);}catch(x){(0x0,utils_1[l(0xb6)])(''+x[l(0xb9)]);}finally{process['exit']();}})),P=this[D(0x86)]('job')['action'](B=>__awaiter(this,void 0x0,void 0x0,function*(){const b=D,{projectId:U,jobId:s,containerId:A,noDefaults:n,shellCmd:F,user:C,group:v,command:o,quiet:j}=B;(0x0,utils_1[b(0x97)])(this['apiClient']);try{const V=n?undefined:Z[b(0xc2)](),i=U||V||(yield J[b(0xa0)]()),p=s||(yield J[b(0x9b)](i)());this['execStartLog'](b(0x72),p,i,F,j);const {rows:S,columns:g}=this[b(0xc5)](),I={'projectId':i,'jobId':p},m=yield this[b(0xcb)][b(0xc8)][b(0xda)](I,{'containerName':A,'command':o,'shell':F,'user':C,'group':v,'ttyColumns':g,'ttyRows':S});yield this[b(0x90)](m,b(0x72),j);}catch(L){(0x0,utils_1[b(0xb6)])(''+L[b(0xb9)]);}finally{process[b(0xdb)]();}}));this[D(0xd6)]['addCommand'](z),this['execCmd'][D(0xd9)](P);}}exports['CliExec']=CliExec;
1
+ 'use strict';const a4P=a4o;(function(e,o){const H=a4o,h=e();while(!![]){try{const p=-parseInt(H(0x1a4))/0x1*(parseInt(H(0x196))/0x2)+parseInt(H(0x155))/0x3*(-parseInt(H(0x1ac))/0x4)+parseInt(H(0x198))/0x5*(-parseInt(H(0x169))/0x6)+-parseInt(H(0x177))/0x7+parseInt(H(0x18c))/0x8*(-parseInt(H(0x162))/0x9)+parseInt(H(0x1aa))/0xa+parseInt(H(0x1a9))/0xb*(parseInt(H(0x1b6))/0xc);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a4e,0xd8cab));function a4o(e,o){const h=a4e();return a4o=function(p,Y){p=p-0x14b;let q=h[p];return q;},a4o(e,o);}var __awaiter=this&&this[a4P(0x1b7)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const c=a4o;function v(Z){const V=a4o;try{I(p[V(0x19d)](Z));}catch(k){J(k);}}function s(Z){try{I(p['throw'](Z));}catch(k){J(k);}}function I(Z){const u=a4o;Z[u(0x190)]?q(Z[u(0x1b1)]):Y(Z[u(0x1b1)])[u(0x1b4)](v,s);}I((p=p['apply'](e,o||[]))[c(0x19d)]());});},__importDefault=this&&this[a4P(0x16f)]||function(e){const n=a4P;return e&&e[n(0x178)]?e:{'default':e};};Object[a4P(0x197)](exports,'__esModule',{'value':!![]}),exports[a4P(0x171)]=void 0x0;const js_client_1=require(a4P(0x158)),chalk_1=__importDefault(require('chalk')),utils_1=require(a4P(0x1ae)),inquirer_helper_1=require(a4P(0x17d));class CliExec{constructor(e){const d=a4P;this[d(0x174)]=Y=>(0x0,utils_1[d(0x15e)])(!![])[d(0x159)](Y)['description'](d(0x153)+Y+d(0x18e)+Y+d(0x165)+Y+d(0x1b0)+Y+d(0x16d)+Y+d(0x14d))['option'](d(0x1a0),'Project\x20for\x20exec')['option']('--'+Y+d(0x15c)+Y+d(0x16a),Y[d(0x195)](0x0)[d(0x1a1)]()+Y[d(0x188)](0x1)+d(0x172))[d(0x163)]('--container\x20--containerId\x20[NAME]',d(0x17b))['option'](d(0x19f),d(0x186))[d(0x163)](d(0x166),'Run\x20command\x20with\x20this\x20user')[d(0x163)](d(0x176),d(0x192))[d(0x163)]('--noDefaults','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])[d(0x163)](d(0x181),'Command\x20to\x20execute.\x0aIf\x20--shell-cmd\x20option\x20such\x20as\x20\x27bash\x20-c\x27\x20is\x20present,\x20it\x20will\x20run\x20in\x20the\x20specified\x20shell.\x20Otherwise\x20the\x20command\x20will\x20run\x20without\x20a\x20shell.\x20If\x20no\x20command\x20is\x20provided,\x20an\x20interactive\x20session\x20with\x20stdin\x20and\x20tty\x20is\x20opened.'),this[d(0x160)]=()=>({'columns':process[d(0x179)][d(0x17c)],'rows':process[d(0x179)][d(0x14f)]}),this[d(0x1b5)]=(Y,q,J,v,s,I,Z,k)=>{const j=d;if(k===!![])return;const L=v===j(0x1ab),F=L?j(0x1af):v===undefined?'with\x20shell\x20session':j(0x18d)+chalk_1[j(0x182)][j(0x1ad)](v),W=s!==undefined?j(0x189)+s:'',N=I!==undefined?j(0x151)+I:'',g=Z!==undefined?'with\x20command\x20\x27'+chalk_1[j(0x182)][j(0x1ad)](Z)+'\x27':'',w=[g,F,W,N][j(0x161)](x=>x!=='')[j(0x1b9)]('\x20'),C='(exit\x20with\x20two\x20quick\x20'+chalk_1[j(0x182)][j(0x19a)](j(0x15a))+')';console[j(0x1a7)]('Exec\x20'+Y+'\x20'+chalk_1[j(0x182)][j(0x19a)](q)+j(0x17f)+chalk_1[j(0x182)][j(0x19a)](J)+'\x20'+w+'\x20'+C);},this[d(0x1b3)]=(Y,q,J=![])=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=d;var v,s;let I=![];try{if(process[Q(0x1ba)][Q(0x184)]){const k=require(Q(0x157));k[Q(0x15f)](process['stdin']),process['stdin']['setRawMode'](!![]),process['stdout']['on']('resize',()=>{const D=Q;Y[D(0x191)](this['getTerminalSize']());}),process[Q(0x1ba)]['on'](Q(0x170),(L,F)=>{const f=Q;F[f(0x187)]==='\x04'&&(I?(process[f(0x1ba)][f(0x183)](![]),(0x0,utils_1['warning'])(f(0x19b)),process[f(0x18f)]()):(I=!![],setTimeout(()=>I=![],0x190)));});}process[Q(0x1ba)][Q(0x14c)](Y[Q(0x1a3)]),Y[Q(0x16b)][Q(0x14c)](process['stderr']),Y[Q(0x19e)][Q(0x14c)](process['stdout']),Y['on']('error',L=>{const i=Q;var F;(0x0,utils_1[i(0x173)])(i(0x1a5)+q+i(0x1bb)+((F=L['message'])!==null&&F!==void 0x0?F:L)),process['stdin'][i(0x184)]&&process[i(0x1ba)][i(0x183)](![]),process['exit'](-0x1);});const Z=yield Y[Q(0x14b)]();if(J!==!![]){const L=(v=Z===null||Z===void 0x0?void 0x0:Z[Q(0x1b2)])!==null&&v!==void 0x0?v:Q(0x168),F=(s=Z===null||Z===void 0x0?void 0x0:Z['exitCode'])!==null&&s!==void 0x0?s:-0x1,W=(Z===null||Z===void 0x0?void 0x0:Z['message'])?Q(0x194)+Z[Q(0x199)]:'';L===Q(0x17a)?(0x0,utils_1[Q(0x152)])(Q(0x156)+F):(0x0,utils_1[Q(0x1a6)])(Q(0x14e)+L+Q(0x1a8)+F+W);}return Z;}finally{process[Q(0x1ba)]['isTTY']&&process['stdin'][Q(0x183)](![]);}}),this[d(0x16c)]=new js_client_1['ApiClient'](e,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']});const o=new inquirer_helper_1[(d(0x185))](this[d(0x16c)]);this['execCmd']=(0x0,utils_1[d(0x15e)])()[d(0x159)](d(0x193))[d(0x150)](d(0x180))[d(0x17e)](d(0x154));const h=this['getStandardExecCommand']('service')[d(0x164)](Y=>__awaiter(this,void 0x0,void 0x0,function*(){const R=d,{noDefaults:q,projectId:J,serviceId:v,containerId:s,shellCmd:I,user:Z,group:k,command:L,quiet:F}=Y;(0x0,utils_1[R(0x18b)])(this[R(0x16c)]);try{const W=q?undefined:e[R(0x15b)](),N=J||W||(yield o[R(0x15d)]()),g=q?undefined:e[R(0x1a2)](),w=v||g||(yield o[R(0x16e)](N)()),C=I!==null&&I!==void 0x0?I:L!==undefined?R(0x1ab):undefined;this[R(0x1b5)]('service',w,N,C,Z,k,L,F);const x=process[R(0x179)][R(0x17c)],l=process[R(0x179)]['rows'],b={'projectId':N,'serviceId':w},a=yield this[R(0x16c)]['exec']['execServiceSession'](b,{'containerName':s,'command':L,'shell':C,'user':Z,'group':k,'ttyColumns':x,'ttyRows':l});yield this[R(0x1b3)](a,'service',F);}catch(z){(0x0,utils_1[R(0x173)])(''+z[R(0x199)]);}finally{process[R(0x18f)]();}})),p=this[d(0x174)](d(0x175))['action'](Y=>__awaiter(this,void 0x0,void 0x0,function*(){const t=d,{projectId:q,jobId:J,containerId:v,noDefaults:s,shellCmd:I,user:Z,group:k,command:L,quiet:F}=Y;(0x0,utils_1[t(0x18b)])(this['apiClient']);try{const W=s?undefined:e[t(0x15b)](),N=q||W||(yield o['askForProject']()),g=J||(yield o[t(0x18a)](N)());this[t(0x1b5)](t(0x175),g,N,I,F);const {rows:w,columns:C}=this[t(0x160)](),x={'projectId':N,'jobId':g},l=yield this['apiClient']['exec'][t(0x19c)](x,{'containerName':v,'command':L,'shell':I,'user':Z,'group':k,'ttyColumns':C,'ttyRows':w});yield this[t(0x1b3)](l,t(0x175),F);}catch(b){(0x0,utils_1[t(0x173)])(''+b[t(0x199)]);}finally{process[t(0x18f)]();}}));this['execCmd']['addCommand'](h),this[d(0x1b8)][d(0x167)](p);}}function a4e(){const G=['keypress','CliExec','\x20to\x20exec\x20into','error','getStandardExecCommand','job','--group\x20[GROUP]','80528xKHSPT','__esModule','stdout','Success','Container\x20to\x20exec\x20into\x20(random\x20container\x20will\x20be\x20chosen\x20if\x20not\x20specified)','columns','../inquirer-helper','description','\x20in\x20project\x20','exec','--cmd\x20--command\x20[COMMAND]','default','setRawMode','isTTY','InquirerHelper','Run\x20command\x20with\x20shell\x20(e.g.\x20\x27bash\x27,\x27sh\x27).\x0aIf\x20not\x20set\x20and\x20no\x20command\x20is\x20provided,\x20several\x20standard\x20shells\x20will\x20be\x20attempted.\x20If\x20not\x20set\x20and\x20a\x20command\x20is\x20provided,\x20the\x20command\x20will\x20run\x20without\x20shell.','sequence','slice','with\x20user:','askForJob','assertContextExisting','24zunfcV','shell\x20command\x20','.\x0aExamples:\x0a\x20\x20Shell\x20session:\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20northflank\x20exec\x20','exit','done','resizeTerminal','Run\x20command\x20with\x20this\x20group','command-exec',',\x20details:\x20','charAt','2061418PJVtTM','defineProperty','110XQqiFw','message','bold','Received\x20Ctrl+D\x20twice,\x20exiting\x20shell\x20forcefully.','execJobSession','next','stdOut','--shell-cmd\x20[SHELL-CMD]','--project\x20--projectId\x20[NAME]','toUpperCase','getCurrentServiceName','stdIn','1vkSzcE','Error\x20occured\x20during\x20','warning','log',',\x20exit\x20code:\x20','32886271nLarif','570350pMjgIn','none','1140xSVPpy','greenBright','../utils','without\x20shell','\x20--cmd\x20\x27date\x27\x0a\x20\x20Single\x20command,\x20custom\x20shell:\x20northflank\x20exec\x20','value','status','handleShellSession','then','execStartLog','12NGKYqW','__awaiter','execCmd','join','stdin','\x20command\x20exec:\x20','waitForCommandResult','pipe','\x20--shell-cmd\x20\x27sh\x27','Command\x20didn\x27t\x20complete\x20successfully,\x20status:\x20','rows','alias','with\x20group:','success','Command\x20exec\x20for\x20the\x20specified\x20','Command\x20execution\x20(exec)\x20for\x20Northflank\x20services\x20and\x20jobs.','1263ErkRih','Command\x20completed\x20successfully,\x20exit\x20code:\x20','readline','@northflank/js-client','name','\x27Ctrl+D\x27','getCurrentProjectName','\x20--','askForProject','getCommand','emitKeypressEvents','getTerminalSize','filter','1520595IIssKi','option','action','\x0a\x20\x20Single\x20command,\x20no\x20shell:\x20\x20\x20\x20\x20northflank\x20exec\x20','--user\x20[USER]','addCommand','Unknown','133542YRDcXB','Id\x20[NAME]','stdErr','apiClient','\x20--cmd\x20\x27\x22ls\x20-l\x20/usr\x22\x27\x20--shell-cmd\x20\x27bash\x20-c\x27\x0a\x20\x20Shell\x20session,\x20custom\x20shell:\x20\x20northflank\x20exec\x20','askForService','__importDefault'];a4e=function(){return G;};return a4e();}exports['CliExec']=CliExec;
@@ -1 +1 @@
1
- 'use strict';const a5L=a5J;(function(Z,J){const m=a5J,z=Z();while(!![]){try{const P=parseInt(m(0xbc))/0x1*(parseInt(m(0xbe))/0x2)+-parseInt(m(0xb5))/0x3+parseInt(m(0xb6))/0x4*(-parseInt(m(0xb7))/0x5)+-parseInt(m(0xa0))/0x6*(-parseInt(m(0xba))/0x7)+-parseInt(m(0xb1))/0x8+parseInt(m(0xa9))/0x9*(parseInt(m(0xa5))/0xa)+-parseInt(m(0xad))/0xb;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a5Z,0x5dcdb));var __awaiter=this&&this[a5L(0xa8)]||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){function n(v){const M=a5J;try{C(B[M(0xa7)](v));}catch(o){A(o);}}function F(v){const x=a5J;try{C(B[x(0xc5)](v));}catch(o){A(o);}}function C(v){const d=a5J;v[d(0xc3)]?s(v['value']):U(v[d(0xbf)])[d(0xb8)](n,F);}C((B=B['apply'](Z,J||[]))['next']());});},__importDefault=this&&this[a5L(0xaa)]||function(Z){const k=a5L;return Z&&Z[k(0xbd)]?Z:{'default':Z};};Object['defineProperty'](exports,a5L(0xbd),{'value':!![]}),exports['getCommandOverview']=void 0x0;const chalk_1=__importDefault(require(a5L(0xa6))),utils_1=require('../utils');function getCommandOverview(Z){const N=a5L;return(0x0,utils_1[N(0xaf)])()[N(0xae)](N(0xb0))['description'](N(0xa1))['option'](N(0xc2),N(0xa2))[N(0xbb)](J=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:z}=J;function P(B,U){const W=a5J;var s;const A=(e,g=!![])=>g?chalk_1[W(0xc0)][W(0xab)]['green'](e[W(0xae)]()):e[W(0xae)](),n=U['length']===0x0,F=B[W(0xa4)];let C='';const v=F[W(0xa3)]===0x0,o=v||((s=Object[W(0xc1)](B===null||B===void 0x0?void 0x0:B[W(0xac)]()))===null||s===void 0x0?void 0x0:s['length'])>0x0;!n&&(C=F&&!v?'┬\x20':'─\x20');const j=z&&o&&B['description']()?':\x20'+B[W(0xb4)]():'';console[W(0xb9)](''+U+C+A(B,o)+j);let V=U;if(!n){const e=U[W(0xc4)](-0x2)==='└─';V=U[W(0xc4)](0x0,-0x2)+(e?'\x20\x20':'│\x20');}const i=V+'├─',p=V+'└─',S=F[W(0xb3)](g=>g[W(0xa4)]['length']===0x0);S&&!v&&!z?console[W(0xb9)](p+'\x20'+F['map'](g=>A(g))[W(0xb2)](',\x20')):F['forEach']((g,I)=>{const X=W;P(g,F[X(0xa3)]-0x1===I?p:i);});}P(Z,'');}));}function a5J(Z,J){const z=a5Z();return a5J=function(P,B){P=P-0xa0;let U=z[P];return U;},a5J(Z,J);}exports['getCommandOverview']=getCommandOverview;function a5Z(){const D=['1973872NKdGrs','join','every','description','925554PcqsXX','4pilRLQ','66335uUxOnN','then','log','7IUhOWP','action','30MMqhxY','__esModule','32542EEOLbj','value','default','keys','--verbose','done','slice','throw','3254226DdJYyg','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','Print\x20command\x20descriptions','length','commands','1553280mLVuao','chalk','next','__awaiter','9qfdBTy','__importDefault','bold','opts','2564001lDarsk','name','getCommand','command-overview'];a5Z=function(){return D;};return a5Z();}
1
+ 'use strict';const a5a=a5o;(function(e,o){const b=a5o,h=e();while(!![]){try{const p=parseInt(b(0x1a0))/0x1*(-parseInt(b(0x1b0))/0x2)+-parseInt(b(0x1ad))/0x3*(parseInt(b(0x196))/0x4)+-parseInt(b(0x1a9))/0x5+parseInt(b(0x19b))/0x6*(-parseInt(b(0x19d))/0x7)+-parseInt(b(0x1ae))/0x8+-parseInt(b(0x195))/0x9*(parseInt(b(0x1ba))/0xa)+parseInt(b(0x199))/0xb;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a5e,0x6df7f));function a5e(){const j=['slice','2015154qFrELW','12fuqhcS','Prints\x20a\x20tree\x20view\x20of\x20all\x20available\x20commands','green','34918048Sqdxag','value','4687500CFBwEo','__awaiter','7MhiOHA','__esModule','description','507644xVirJz','default','throw','getCommandOverview','getCommand','commands','../utils','apply','join','748415zxHgkI','command-overview','forEach','then','899163uzqRoZ','1298328esCtMd','next','2VMOZYY','length','every','name','map','log','--verbose','action','chalk','done','10ByqJuh'];a5e=function(){return j;};return a5e();}var __awaiter=this&&this[a5a(0x19c)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const V=a5o;function v(Z){const z=a5o;try{I(p[z(0x1af)](Z));}catch(k){J(k);}}function s(Z){const H=a5o;try{I(p[H(0x1a2)](Z));}catch(k){J(k);}}function I(Z){const P=a5o;Z[P(0x1b9)]?q(Z[P(0x19a)]):Y(Z[P(0x19a)])[P(0x1ac)](v,s);}I((p=p[V(0x1a7)](e,o||[]))[V(0x1af)]());});},__importDefault=this&&this['__importDefault']||function(e){const u=a5a;return e&&e[u(0x19e)]?e:{'default':e};};Object['defineProperty'](exports,a5a(0x19e),{'value':!![]}),exports[a5a(0x1a3)]=void 0x0;const chalk_1=__importDefault(require(a5a(0x1b8))),utils_1=require(a5a(0x1a6));function a5o(e,o){const h=a5e();return a5o=function(p,Y){p=p-0x194;let q=h[p];return q;},a5o(e,o);}function getCommandOverview(e){const c=a5a;return(0x0,utils_1[c(0x1a4)])()['name'](c(0x1aa))[c(0x19f)](c(0x197))['option'](c(0x1b6),'Print\x20command\x20descriptions')[c(0x1b7)](o=>__awaiter(this,void 0x0,void 0x0,function*(){const {verbose:h}=o;function p(Y,q){const n=a5o;var J;const v=(C,x=!![])=>x?chalk_1[n(0x1a1)]['bold'][n(0x198)](C[n(0x1b3)]()):C['name'](),s=q[n(0x1b1)]===0x0,I=Y[n(0x1a5)];let Z='';const k=I[n(0x1b1)]===0x0,L=k||((J=Object['keys'](Y===null||Y===void 0x0?void 0x0:Y['opts']()))===null||J===void 0x0?void 0x0:J[n(0x1b1)])>0x0;!s&&(Z=I&&!k?'┬\x20':'─\x20');const F=h&&L&&Y[n(0x19f)]()?':\x20'+Y[n(0x19f)]():'';console[n(0x1b5)](''+q+Z+v(Y,L)+F);let W=q;if(!s){const C=q[n(0x194)](-0x2)==='└─';W=q['slice'](0x0,-0x2)+(C?'\x20\x20':'│\x20');}const N=W+'├─',g=W+'└─',w=I[n(0x1b2)](x=>x[n(0x1a5)]['length']===0x0);w&&!k&&!h?console['log'](g+'\x20'+I[n(0x1b4)](x=>v(x))[n(0x1a8)](',\x20')):I[n(0x1ab)]((x,l)=>{const d=n;p(x,I[d(0x1b1)]-0x1===l?g:N);});}p(e,'');}));}exports[a5a(0x1a3)]=getCommandOverview;
@@ -1 +1 @@
1
- 'use strict';function a6J(Z,J){const z=a6Z();return a6J=function(P,B){P=P-0x1da;let U=z[P];return U;},a6J(Z,J);}const a6i=a6J;(function(Z,J){const V=a6J,z=Z();while(!![]){try{const P=parseInt(V(0x1fe))/0x1*(-parseInt(V(0x205))/0x2)+-parseInt(V(0x202))/0x3+-parseInt(V(0x216))/0x4+parseInt(V(0x1f4))/0x5*(-parseInt(V(0x210))/0x6)+-parseInt(V(0x1eb))/0x7+-parseInt(V(0x20e))/0x8*(parseInt(V(0x209))/0x9)+parseInt(V(0x208))/0xa*(parseInt(V(0x204))/0xb);if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a6Z,0x273bf));var __createBinding=this&&this[a6i(0x1e0)]||(Object[a6i(0x1fa)]?function(Z,J,z,P){const p=a6i;if(P===undefined)P=z;var B=Object[p(0x1ff)](J,z);(!B||(p(0x1e6)in B?!J[p(0x1ed)]:B['writable']||B[p(0x1fc)]))&&(B={'enumerable':!![],'get':function(){return J[z];}}),Object[p(0x1e5)](Z,P,B);}:function(Z,J,z,P){if(P===undefined)P=z;Z[P]=J[z];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6i(0x1fa)]?function(Z,J){const S=a6i;Object[S(0x1e5)](Z,S(0x1e9),{'enumerable':!![],'value':J});}:function(Z,J){Z['default']=J;}),__importStar=this&&this[a6i(0x1db)]||function(Z){const e=a6i;if(Z&&Z['__esModule'])return Z;var J={};if(Z!=null){for(var z in Z)if(z!==e(0x1e9)&&Object[e(0x214)][e(0x1dd)]['call'](Z,z))__createBinding(J,Z,z);}return __setModuleDefault(J,Z),J;},__importDefault=this&&this[a6i(0x1e4)]||function(Z){const g=a6i;return Z&&Z[g(0x1ed)]?Z:{'default':Z};};Object['defineProperty'](exports,a6i(0x1ed),{'value':!![]}),exports[a6i(0x217)]=exports['handleFormattedOutput']=exports[a6i(0x1e2)]=exports['handleJsonOutput']=exports[a6i(0x20c)]=exports[a6i(0x1fd)]=void 0x0;const chalk_1=__importDefault(require(a6i(0x203))),_=__importStar(require(a6i(0x218))),util=__importStar(require(a6i(0x206))),yaml=require('js-yaml'),columnify=require(a6i(0x1ea));function printAsTable(Z,J,z,P=![],B=0x0){const I=a6i;!P&&console['log'](''+chalk_1[I(0x1e9)][I(0x215)](J));function U(A){const m=I;return A===m(0x1de)?A:A[m(0x1fb)](m(0x1de),'');}function s(A,n){const M=I;function F(v){const L=a6J,o=new Date(v);return o[L(0x1f3)]()+'/'+o[L(0x20f)]()+'/'+o[L(0x1f9)]()+'\x0a'+o['getHours']()+':'+o[L(0x219)]()+':'+o[L(0x1f7)]();}const C=['createdat','updatedat'];if(C['includes'](n[M(0x1ee)]())&&_[M(0x211)](A)&&A[M(0x1e3)]()[M(0x1f1)]===0xd)return F(Number(A));if(_['isBoolean'](A)){if(n!==M(0x1de)&&n[M(0x213)](M(0x1de)))return A?'x':'✔';return A?'✔':'x';}if(_[M(0x201)](A))return util[M(0x1f6)](A,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return A;}if(_['isArrayLike'](Z)){Z[I(0x1f1)]===0x0&&console[I(0x207)]('No\x20'+J[I(0x1ee)]()+I(0x1f5));const A=Z[I(0x1ef)]((C,v)=>{const x=I,o={'i':v+B};return Object['keys'](C)[x(0x1f0)](j=>{const d=x;(_['isUndefined'](z)||z[d(0x213)](j[d(0x1ee)]()))&&_[d(0x1e8)](o,U(j),s(C[j],j));}),o;}),n=_['clone'](Object[I(0x20b)]((A===null||A===void 0x0?void 0x0:A[0x0])||[]))[I(0x1f2)]((C,v)=>{const k=I,o=j=>j!=='i'?j!==k(0x20a)?0x0:0x1:0x2;return o(v)-o(C);}),F={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!P,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':n};console[I(0x207)](columnify(A,F));}else console[I(0x207)](Z);}exports[a6i(0x1fd)]=printAsTable;function consoleFormat(Z,J){const N=a6i;if(_[N(0x20d)](Z)){const z=J?N(0x1e7)+J+')':'';return chalk_1[N(0x1e9)][N(0x1dc)](N(0x200))+z;}if(!_[N(0x201)](Z))return Z===null||Z===void 0x0?void 0x0:Z[N(0x1e3)]();return util[N(0x1f6)](Z,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports['consoleFormat']=consoleFormat;const handleJsonOutput=(Z,J)=>{const W=a6i,z=Z===W(0x1e1);if(z)console[W(0x207)](JSON['stringify'](J,null,'\x20'));};function a6Z(){const y=['hasOwnProperty','disabled','handleFormattedOutput','__createBinding','json','handleYamlOutput','toString','__importDefault','defineProperty','get','\x20(HTTP\x20status:\x20','set','default','columnify','1574601ywyMuM','yaml','__esModule','toLowerCase','map','forEach','length','sort','getDate','605ShWIzn','\x20found','inspect','getSeconds','handleJsonOutput','getFullYear','create','replace','configurable','printAsTable','2SURclH','getOwnPropertyDescriptor','The\x20request\x20was\x20completed\x20successfully','isObjectLike','32064NwZCGL','chalk','121FtVpNj','111394VBjNQp','util','log','944200OwtfjF','27GRlcsD','internalId','keys','consoleFormat','isEmpty','808264LcuBgv','getMonth','10866FrFOKW','isFinite','format','includes','prototype','bold','34648Vtgbib','printResponse','lodash','getMinutes','safeDump','__importStar','green'];a6Z=function(){return y;};return a6Z();}exports['handleJsonOutput']=handleJsonOutput;const handleYamlOutput=(Z,J)=>{const X=a6i,z=Z===X(0x1ec)||Z==='yml';if(z)console[X(0x207)](yaml[X(0x1da)](J));};exports[a6i(0x1e2)]=handleYamlOutput;const handleFormattedOutput=(Z,J)=>{const D=a6i,z=Z===D(0x212);if(z)console[D(0x207)](consoleFormat(J));};exports[a6i(0x1df)]=handleFormattedOutput;const printResponse=(Z,J)=>{const q=a6i;(0x0,exports[q(0x1f8)])(Z,J),(0x0,exports[q(0x1e2)])(Z,J),(0x0,exports[q(0x1df)])(Z,J);};exports[a6i(0x217)]=printResponse;
1
+ 'use strict';function a6o(e,o){const h=a6e();return a6o=function(p,Y){p=p-0x73;let q=h[p];return q;},a6o(e,o);}const a6N=a6o;(function(e,o){const W=a6o,h=e();while(!![]){try{const p=parseInt(W(0x75))/0x1+parseInt(W(0x77))/0x2+-parseInt(W(0x8c))/0x3+parseInt(W(0x9a))/0x4*(-parseInt(W(0x94))/0x5)+-parseInt(W(0x9c))/0x6+-parseInt(W(0x99))/0x7*(parseInt(W(0xa0))/0x8)+parseInt(W(0xa6))/0x9*(parseInt(W(0x86))/0xa);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a6e,0xa3de9));var __createBinding=this&&this[a6N(0x76)]||(Object[a6N(0x84)]?function(e,h,p,Y){const g=a6N;if(Y===undefined)Y=p;var q=Object[g(0x7d)](h,p);(!q||(g(0x85)in q?!h[g(0xa9)]:q[g(0xa3)]||q[g(0x80)]))&&(q={'enumerable':!![],'get':function(){return h[p];}}),Object['defineProperty'](e,Y,q);}:function(e,h,p,Y){if(Y===undefined)Y=p;e[Y]=h[p];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a6N(0x84)]?function(e,h){const w=a6N;Object[w(0x8d)](e,w(0x88),{'enumerable':!![],'value':h});}:function(e,h){const C=a6N;e[C(0x88)]=h;}),__importStar=this&&this[a6N(0x7f)]||function(e){const x=a6N;if(e&&e[x(0xa9)])return e;var o={};if(e!=null){for(var h in e)if(h!==x(0x88)&&Object['prototype']['hasOwnProperty'][x(0x7b)](e,h))__createBinding(o,e,h);}return __setModuleDefault(o,e),o;},__importDefault=this&&this[a6N(0xb2)]||function(e){const l=a6N;return e&&e[l(0xa9)]?e:{'default':e};};Object[a6N(0x8d)](exports,'__esModule',{'value':!![]}),exports['printResponse']=exports[a6N(0xa4)]=exports['handleYamlOutput']=exports[a6N(0x8a)]=exports['consoleFormat']=exports[a6N(0x83)]=void 0x0;const chalk_1=__importDefault(require(a6N(0xa1))),_=__importStar(require('lodash')),util=__importStar(require(a6N(0xae))),yaml=require('js-yaml'),columnify=require(a6N(0xad));function printAsTable(e,o,h,p=![],Y=0x0){const b=a6N;!p&&console[b(0xb4)](''+chalk_1[b(0x88)][b(0xa2)](o));function q(v){const a=b;return v===a(0xab)?v:v[a(0xa5)]('disabled','');}function J(v,s){const H=b;function I(k){const z=a6o,L=new Date(k);return L[z(0x9d)]()+'/'+L[z(0x7a)]()+'/'+L[z(0x8b)]()+'\x0a'+L[z(0xa8)]()+':'+L['getMinutes']()+':'+L['getSeconds']();}const Z=[H(0x89),'updatedat'];if(Z[H(0xaf)](s[H(0x7c)]())&&_['isFinite'](v)&&v['toString']()[H(0x8e)]===0xd)return I(Number(v));if(_[H(0x8f)](v)){if(s!==H(0xab)&&s['includes'](H(0xab)))return v?'x':'✔';return v?'✔':'x';}if(_[H(0x7e)](v))return util[H(0x87)](v,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});return v;}if(_[b(0x9e)](e)){e[b(0x8e)]===0x0&&console[b(0xb4)](b(0x81)+o[b(0x7c)]()+b(0xaa));const v=e[b(0x9f)]((Z,k)=>{const P=b,L={'i':k+Y};return Object[P(0x78)](Z)[P(0xa7)](F=>{const V=P;(_[V(0xac)](h)||h[V(0xaf)](F[V(0x7c)]()))&&_[V(0x9b)](L,q(F),J(Z[F],F));}),L;}),s=_[b(0x82)](Object[b(0x78)]((v===null||v===void 0x0?void 0x0:v[0x0])||[]))[b(0xb3)]((Z,k)=>{const u=b,L=F=>F!=='i'?F!==u(0xb0)?0x0:0x1:0x2;return L(k)-L(Z);}),I={'maxWidth':0x1e,'preserveNewLines':!![],'showHeaders':!p,'config':{'_id':{'maxWidth':0x5,'truncate':!![]},'i':{'showHeaders':![]}},'columns':s};console['log'](columnify(v,I));}else console[b(0xb4)](e);}exports[a6N(0x83)]=printAsTable;function consoleFormat(e,o){const c=a6N;if(_[c(0x98)](e)){const h=o?c(0x95)+o+')':'';return chalk_1[c(0x88)][c(0x93)]('The\x20request\x20was\x20completed\x20successfully')+h;}if(!_[c(0x7e)](e))return e===null||e===void 0x0?void 0x0:e[c(0x91)]();return util[c(0x87)](e,{'showHidden':![],'depth':null,'colors':!![],'compact':!![]});}exports[a6N(0xb1)]=consoleFormat;const handleJsonOutput=(e,o)=>{const n=a6N,h=e===n(0x97);if(h)console[n(0xb4)](JSON[n(0x73)](o,null,'\x20'));};exports[a6N(0x8a)]=handleJsonOutput;const handleYamlOutput=(e,o)=>{const d=a6N,h=e===d(0x74)||e===d(0x96);if(h)console[d(0xb4)](yaml['safeDump'](o));};exports[a6N(0x79)]=handleYamlOutput;const handleFormattedOutput=(e,o)=>{const j=a6N,h=e===j(0x90);if(h)console[j(0xb4)](consoleFormat(o));};exports[a6N(0xa4)]=handleFormattedOutput;const printResponse=(e,o)=>{const Q=a6N;(0x0,exports[Q(0x8a)])(e,o),(0x0,exports[Q(0x79)])(e,o),(0x0,exports['handleFormattedOutput'])(e,o);};exports[a6N(0x92)]=printResponse;function a6e(){const D=['includes','internalId','consoleFormat','__importDefault','sort','log','stringify','yaml','1297238nSXLmd','__createBinding','964036BwSNnq','keys','handleYamlOutput','getMonth','call','toLowerCase','getOwnPropertyDescriptor','isObjectLike','__importStar','configurable','No\x20','clone','printAsTable','create','get','18940180TMFfGF','inspect','default','createdat','handleJsonOutput','getFullYear','2695857uoGWbf','defineProperty','length','isBoolean','format','toString','printResponse','green','1405bpwRRP','\x20(HTTP\x20status:\x20','yml','json','isEmpty','436919EdJFqV','4692eCjfHp','set','6523476UvJDLm','getDate','isArrayLike','map','88YevAmt','chalk','bold','writable','handleFormattedOutput','replace','9tktuDw','forEach','getHours','__esModule','\x20found','disabled','isUndefined','columnify','util'];a6e=function(){return D;};return a6e();}
@@ -1 +1 @@
1
- 'use strict';const a7Y=a7J;(function(Z,J){const H=a7J,z=Z();while(!![]){try{const P=-parseInt(H(0x193))/0x1+-parseInt(H(0x1a8))/0x2+-parseInt(H(0x1af))/0x3+parseInt(H(0x18f))/0x4*(parseInt(H(0x195))/0x5)+parseInt(H(0x1b5))/0x6+-parseInt(H(0x1b2))/0x7*(-parseInt(H(0x1a1))/0x8)+-parseInt(H(0x19e))/0x9;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a7Z,0x7c76a));function a7J(Z,J){const z=a7Z();return a7J=function(P,B){P=P-0x18f;let U=z[P];return U;},a7J(Z,J);}var __importDefault=this&&this[a7Y(0x1b6)]||function(Z){return Z&&Z['__esModule']?Z:{'default':Z};};Object['defineProperty'](exports,a7Y(0x190),{'value':!![]}),exports[a7Y(0x19f)]=exports['getAsciiChart']=void 0x0;function a7Z(){const Z4=['toLocaleTimeString','27212ZogikS','__esModule','padding','getAsciiChart','234122iAMFQn','round','365vtyDVE','default','symbols','undefined','repeat','red','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20','slice','height','462294GpIDBF','downSampleData','grey','1240cGJYBI','2-digit','\x20\x20\x20','colors','abs','push','offset','338000njxSsu','toLocaleDateString','max','unit','green','floor','map','1257426XZdgnd','join','toFixed','4417WEWxUj','length','min','4734048lNVliQ','__importDefault'];a7Z=function(){return Z4;};return a7Z();}const chalk_1=__importDefault(require('chalk')),colored=(Z,J)=>{const E=a7Y;return J===undefined?Z:chalk_1[E(0x196)][J](Z);},getAsciiChart=(Z,J={})=>{const Z0=a7Y,z=Array['isArray'](Z[0x0])?Z:[Z];let P=typeof J['min']!==Z0(0x198)?J[Z0(0x1b4)]:z[0x0][0x0],B=typeof J[Z0(0x1aa)]!==Z0(0x198)?J['max']:z[0x0][0x0];for(let M=0x0;M<z[Z0(0x1b3)];M++){for(let d=0x0;d<z[M]['length'];d++){P=Math[Z0(0x1b4)](P,z[M][d]),B=Math[Z0(0x1aa)](B,z[M][d]);}}let U=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],s=Math[Z0(0x1a5)](B-P),A=typeof J[Z0(0x1a7)]!==Z0(0x198)?J[Z0(0x1a7)]:0x3,n=typeof J[Z0(0x191)]!=='undefined'?J[Z0(0x191)]:Z0(0x19b),F=typeof J['height']!=='undefined'?J[Z0(0x19d)]:s,C=typeof J['colors']!==Z0(0x198)?J[Z0(0x1a4)]:['blue',Z0(0x19a),Z0(0x1ac),Z0(0x1a0),'black'],v=s!==0x0?F/s:0x1,o=Math[Z0(0x194)](P*v),V=Math['round'](B*v),p=Math[Z0(0x1a5)](V-o),S=0x0;for(let k=0x0;k<z['length'];k++){S=Math[Z0(0x1aa)](S,z[k][Z0(0x1b3)]);}S=S+A;let e=typeof J['symbols']!==Z0(0x198)?J[Z0(0x197)]:U,g=J['format']!==undefined?J['format']:function(N){const Z1=Z0;return(n+N[Z1(0x1b1)](0x2)+J[Z1(0x1ab)])[Z1(0x19c)](-n[Z1(0x1b3)]);},I=new Array(p+0x1);for(let N=0x0;N<=p;N++){I[N]=new Array(S);for(let W=0x0;W<S;W++){I[N][W]='\x20';}}for(let X=o;X<=V;++X){const D=g(p>0x0?B-(X-o)*s/p:X,X-o);I[X-o][Math[Z0(0x1aa)](A-D[Z0(0x1b3)],0x0)]=D,I[X-o][A-0x1]=X==0x0?e[0x0]:e[0x1];}for(let q=0x0;q<z[Z0(0x1b3)];q++){let O=C[q%C[Z0(0x1b3)]],G=Math['round'](z[q][0x0]*v)-o;I[p-G][A-0x1]=colored(e[0x0],O);for(let K=0x0;K<z[q][Z0(0x1b3)]-0x1;K++){let l=Math[Z0(0x194)](z[q][K+0x0]*v)-o,b=Math[Z0(0x194)](z[q][K+0x1]*v)-o;if(l==b)I[p-l][K+A]=colored(e[0x4],O);else{I[p-b][K+A]=colored(l>b?e[0x5]:e[0x6],O),I[p-l][K+A]=colored(l>b?e[0x7]:e[0x8],O);let f=Math[Z0(0x1b4)](l,b),r=Math[Z0(0x1aa)](l,b);for(let w=f+0x1;w<r;w++){I[p-w][K+A]=colored(e[0x9],O);}}}}const {startTs:m,endTs:L}=J;if(m||L){const Q=h=>{const Z2=Z0;if(!h)return Z2(0x1a3);const a=h[Z2(0x1a9)](undefined,{'day':Z2(0x1a2),'month':Z2(0x1a2),'year':Z2(0x1a2)}),u=h[Z2(0x1b7)](undefined,{'hourCycle':'h24'});return a+'\x20'+u;},T=Q(L),c=Q(m),t=n['slice'](0x0,Math[Z0(0x1aa)](0x2,n['length']-c[Z0(0x1b3)]/0x2+0x1)),R='\x20'[Z0(0x199)](Math[Z0(0x1aa)](S-(n[Z0(0x1b3)]+T[Z0(0x1b3)]/0x2),0x1));I[Z0(0x1a6)]([''+t+c+R+T]),I[Z0(0x1a6)]([]);}return I[Z0(0x1ae)](h=>h['join'](''))[Z0(0x1b0)]('\x0a');};exports[a7Y(0x192)]=getAsciiChart;const downSampleData=(Z,J)=>{const Z3=a7Y,z=Z[Z3(0x1b3)];if(J>=z||J===0x0)return Z;const P=[];let B=0x0;const U=(z-0x2)/(J-0x2);let s=0x0,A,n,F,C;P[B++]=Z[s];for(var v=0x0;v<J-0x2;v++){let e=0x0,g=0x0,I=Math[Z3(0x1ad)]((v+0x1)*U)+0x1,m=Math[Z3(0x1ad)]((v+0x2)*U)+0x1;m=m<z?m:z;var o=m-I;for(;I<m;I++){e+=Z[I][0x0],g+=Z[I][0x1];}e/=o,g/=o;var j=Math['floor'](v*U)+0x1,V=Math[Z3(0x1ad)]((v+0x1)*U)+0x1,p=Z[s][0x0],S=Z[s][0x1];n=F=-0x1;for(;j<V;j++){F=Math[Z3(0x1a5)]((p-e)*(Z[j][0x1]-S)-(p-Z[j][0x0])*(g-S))*0.5,F>n&&(n=F,A=Z[j],C=j);}P[B++]=A,s=C;}return P[B++]=Z[z-0x1],P;};exports[a7Y(0x19f)]=downSampleData;
1
+ 'use strict';function a7e(){const e5=['format','toLocaleDateString','length','getAsciiChart','green','repeat','2-digit','\x20\x20\x20','round','offset','defineProperty','map','push','floor','grey','6vcjuTg','8DJnQNG','__esModule','56994wzLvRb','h24','8579774jqCXtU','min','red','undefined','abs','join','padding','3307974sPVXCs','458245XaksXA','2598036xAZkcC','height','__importDefault','1402792AyCRmL','slice','chalk','default','isArray','unit','max','9374508xELfpl','colors','downSampleData'];a7e=function(){return e5;};return a7e();}const a7r=a7o;(function(e,o){const K=a7o,h=e();while(!![]){try{const p=parseInt(K(0x1c0))/0x1*(parseInt(K(0x1bd))/0x2)+parseInt(K(0x1cb))/0x3+-parseInt(K(0x1be))/0x4*(parseInt(K(0x1ca))/0x5)+-parseInt(K(0x1c9))/0x6+parseInt(K(0x1c2))/0x7+parseInt(K(0x1ce))/0x8+-parseInt(K(0x1d5))/0x9;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a7e,0xa191a));var __importDefault=this&&this[a7r(0x1cd)]||function(e){const B=a7r;return e&&e[B(0x1bf)]?e:{'default':e};};Object[a7r(0x1b8)](exports,a7r(0x1bf),{'value':!![]}),exports[a7r(0x1d7)]=exports[a7r(0x1db)]=void 0x0;const chalk_1=__importDefault(require(a7r(0x1d0))),colored=(e,o)=>{const e0=a7r;return o===undefined?e:chalk_1[e0(0x1d1)][o](e);},getAsciiChart=(e,o={})=>{const e1=a7r,h=Array[e1(0x1d2)](e[0x0])?e:[e];let p=typeof o[e1(0x1c3)]!=='undefined'?o[e1(0x1c3)]:h[0x0][0x0],Y=typeof o[e1(0x1d4)]!=='undefined'?o[e1(0x1d4)]:h[0x0][0x0];for(let a=0x0;a<h[e1(0x1da)];a++){for(let z=0x0;z<h[a][e1(0x1da)];z++){p=Math['min'](p,h[a][z]),Y=Math[e1(0x1d4)](Y,h[a][z]);}}let q=['┼','┤','╶','╴','─','╰','╭','╮','╯','│'],J=Math['abs'](Y-p),v=typeof o[e1(0x1b7)]!==e1(0x1c5)?o[e1(0x1b7)]:0x3,s=typeof o['padding']!==e1(0x1c5)?o[e1(0x1c8)]:'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20',I=typeof o['height']!==e1(0x1c5)?o[e1(0x1cc)]:J,Z=typeof o['colors']!==e1(0x1c5)?o[e1(0x1d6)]:['blue',e1(0x1c4),e1(0x1b2),e1(0x1bc),'black'],k=J!==0x0?I/J:0x1,L=Math['round'](p*k),F=Math[e1(0x1b6)](Y*k),W=Math[e1(0x1c6)](F-L),N=0x0;for(let H=0x0;H<h[e1(0x1da)];H++){N=Math['max'](N,h[H][e1(0x1da)]);}N=N+v;let g=typeof o['symbols']!==e1(0x1c5)?o['symbols']:q,w=o['format']!==undefined?o[e1(0x1d8)]:function(P){const e2=e1;return(s+P['toFixed'](0x2)+o[e2(0x1d3)])[e2(0x1cf)](-s[e2(0x1da)]);},C=new Array(W+0x1);for(let P=0x0;P<=W;P++){C[P]=new Array(N);for(let V=0x0;V<N;V++){C[P][V]='\x20';}}for(let u=L;u<=F;++u){const c=w(W>0x0?Y-(u-L)*J/W:u,u-L);C[u-L][Math[e1(0x1d4)](v-c[e1(0x1da)],0x0)]=c,C[u-L][v-0x1]=u==0x0?g[0x0]:g[0x1];}for(let n=0x0;n<h[e1(0x1da)];n++){let d=Z[n%Z['length']],Q=Math[e1(0x1b6)](h[n][0x0]*k)-L;C[W-Q][v-0x1]=colored(g[0x0],d);for(let D=0x0;D<h[n][e1(0x1da)]-0x1;D++){let f=Math[e1(0x1b6)](h[n][D+0x0]*k)-L,R=Math['round'](h[n][D+0x1]*k)-L;if(f==R)C[W-f][D+v]=colored(g[0x4],d);else{C[W-R][D+v]=colored(f>R?g[0x5]:g[0x6],d),C[W-f][D+v]=colored(f>R?g[0x7]:g[0x8],d);let t=Math[e1(0x1c3)](f,R),G=Math[e1(0x1d4)](f,R);for(let S=t+0x1;S<G;S++){C[W-S][D+v]=colored(g[0x9],d);}}}}const {startTs:l,endTs:b}=o;if(l||b){const X=E=>{const e3=e1;if(!E)return e3(0x1b5);const A=E[e3(0x1d9)](undefined,{'day':'2-digit','month':'2-digit','year':e3(0x1b4)}),M=E['toLocaleTimeString'](undefined,{'hourCycle':e3(0x1c1)});return A+'\x20'+M;},m=X(b),U=X(l),T=s[e1(0x1cf)](0x0,Math[e1(0x1d4)](0x2,s['length']-U[e1(0x1da)]/0x2+0x1)),O='\x20'[e1(0x1b3)](Math[e1(0x1d4)](N-(s[e1(0x1da)]+m['length']/0x2),0x1));C['push']([''+T+U+O+m]),C[e1(0x1ba)]([]);}return C[e1(0x1b9)](E=>E[e1(0x1c7)](''))[e1(0x1c7)]('\x0a');};exports[a7r(0x1db)]=getAsciiChart;const downSampleData=(e,o)=>{const e4=a7r,h=e[e4(0x1da)];if(o>=h||o===0x0)return e;const p=[];let Y=0x0;const q=(h-0x2)/(o-0x2);let J=0x0,v,s,I,Z;p[Y++]=e[J];for(var k=0x0;k<o-0x2;k++){let w=0x0,C=0x0,x=Math['floor']((k+0x1)*q)+0x1,l=Math[e4(0x1bb)]((k+0x2)*q)+0x1;l=l<h?l:h;var L=l-x;for(;x<l;x++){w+=e[x][0x0],C+=e[x][0x1];}w/=L,C/=L;var F=Math['floor'](k*q)+0x1,W=Math['floor']((k+0x1)*q)+0x1,N=e[J][0x0],g=e[J][0x1];s=I=-0x1;for(;F<W;F++){I=Math['abs']((N-w)*(e[F][0x1]-g)-(N-e[F][0x0])*(C-g))*0.5,I>s&&(s=I,v=e[F],Z=F);}p[Y++]=v,J=Z;}return p[Y++]=e[h-0x1],p;};function a7o(e,o){const h=a7e();return a7o=function(p,Y){p=p-0x1b2;let q=h[p];return q;},a7o(e,o);}exports[a7r(0x1d7)]=downSampleData;
@@ -1 +1 @@
1
- 'use strict';const a8S=a8J;function a8J(Z,J){const z=a8Z();return a8J=function(P,B){P=P-0xdb;let U=z[P];return U;},a8J(Z,J);}(function(Z,J){const p=a8J,z=Z();while(!![]){try{const P=parseInt(p(0xf0))/0x1*(-parseInt(p(0x188))/0x2)+parseInt(p(0x140))/0x3*(parseInt(p(0x168))/0x4)+parseInt(p(0x1b4))/0x5*(parseInt(p(0x166))/0x6)+parseInt(p(0x101))/0x7*(-parseInt(p(0x103))/0x8)+-parseInt(p(0xec))/0x9+parseInt(p(0x184))/0xa*(-parseInt(p(0x16a))/0xb)+-parseInt(p(0x19c))/0xc;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a8Z,0x5f6e9));var __createBinding=this&&this['__createBinding']||(Object[a8S(0x1b3)]?function(Z,J,z,P){const e=a8S;if(P===undefined)P=z;var B=Object['getOwnPropertyDescriptor'](J,z);(!B||('get'in B?!J['__esModule']:B[e(0xf1)]||B[e(0x1bf)]))&&(B={'enumerable':!![],'get':function(){return J[z];}}),Object[e(0x149)](Z,P,B);}:function(Z,J,z,P){if(P===undefined)P=z;Z[P]=J[z];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a8S(0x1b3)]?function(Z,J){const g=a8S;Object[g(0x149)](Z,'default',{'enumerable':!![],'value':J});}:function(Z,J){Z['default']=J;}),__importStar=this&&this['__importStar']||function(Z){const I=a8S;if(Z&&Z[I(0x17b)])return Z;var J={};if(Z!=null){for(var z in Z)if(z!==I(0x15a)&&Object[I(0x1e3)][I(0x145)][I(0x121)](Z,z))__createBinding(J,Z,z);}return __setModuleDefault(J,Z),J;},__awaiter=this&&this['__awaiter']||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){const M=a8J;function n(v){const m=a8J;try{C(B[m(0x179)](v));}catch(o){A(o);}}function F(v){try{C(B['throw'](v));}catch(o){A(o);}}function C(v){const L=a8J;v[L(0x1a0)]?s(v[L(0x1a7)]):U(v[L(0x1a7)])[L(0x1d5)](n,F);}C((B=B['apply'](Z,J||[]))[M(0x179)]());});},__importDefault=this&&this['__importDefault']||function(Z){const x=a8S;return Z&&Z[x(0x17b)]?Z:{'default':Z};};Object[a8S(0x149)](exports,'__esModule',{'value':!![]}),exports[a8S(0xfa)]=void 0x0;const _=__importStar(require(a8S(0x1a5))),chalk_1=__importDefault(require(a8S(0x18e))),fs=__importStar(require('fs')),utils_1=require(a8S(0x1c9)),api_helpers_1=require(a8S(0x1bc)),inquirer_pagination_prompt_1=require(a8S(0x112)),inquirer=require(a8S(0x1b8)),inquirerSearchList=require(a8S(0x11b)),yaml=require(a8S(0x123));var ConfirmChoices;(function(Z){const d=a8S;Z[d(0x126)]='Yes,\x20send',Z[d(0x13f)]=d(0x124),Z[d(0x1a8)]=d(0x189),Z[d(0x18c)]=d(0x1de),Z[d(0x10a)]='No,\x20abort';}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(Z){const N=a8S;this['apiClient']=Z,this['defaultPaginationPageSize']=0x32,this['editPayload']=J=>__awaiter(this,void 0x0,void 0x0,function*(){const k=a8J,{editedResult:z}=yield inquirer['prompt']([{'type':k(0x16d),'name':k(0x186),'message':k(0x1e2),'default':yaml[k(0xfc)](J)}]);return yaml['safeLoad'](z);}),this[N(0xde)]=J=>__awaiter(this,void 0x0,void 0x0,function*(){const W=N,z=s=>W(0x172)+s+W(0x195);function P(){return __awaiter(this,void 0x0,void 0x0,function*(){const X=a8J;return inquirer['prompt']([{'type':X(0x10e),'name':X(0x14b),'message':X(0x11c),'validate':s=>new RegExp(X(0x150))['test'](s)?!![]:z(s)}]);});}const {fileName:B}=yield P(),U=B[W(0xdb)]()['split']('.')[W(0x11a)]();try{switch(U){case'json':(0x0,utils_1['success'])(W(0x18d)+B);return fs[W(0x1ed)](B,JSON[W(0x11e)](J,null,'\x20\x20'));case W(0x135):case'yml':(0x0,utils_1[W(0x1a9)])(W(0x18d)+B);return fs[W(0x1ed)](B,yaml[W(0xfc)](J));default:(0x0,utils_1[W(0x1ce)])(z(U));}}catch(s){(0x0,utils_1['warning'])(W(0x136)+s[W(0x1cf)]);}return undefined;}),this[N(0x1e7)]=(J,z)=>P=>{const D=N,B=typeof P===D(0x10c)?P[D(0x11f)]():P;return z===![]&&B===D(0x157)?'':B;},this[N(0x138)]=(J,z,P)=>B=>{const q=N;if(this['skipValidation']===!![])return!![];const U=[];if(B===''||B==='don\x27t\x20change'){if(z!==![])U[q(0x13c)](q(0x178));else return!![];}J[q(0x1da)]===q(0x10c)&&!_[q(0x109)](J[q(0x16e)])&&U[q(0x13c)](new RegExp(J['pattern'])[q(0x169)](B)?!![]:q(0x1b0)+J[q(0x16e)]+'\x27');J[q(0x1da)]===q(0x10c)&&!_[q(0x109)](J[q(0x16b)])&&U[q(0x13c)](B[q(0xeb)]>=J[q(0x16b)]?!![]:q(0x1eb)+J[q(0x16b)]+q(0x1a6)+B['length']+q(0xf4));J[q(0x1da)]===q(0x10c)&&!_[q(0x109)](J[q(0x12b)])&&U[q(0x13c)](B[q(0xeb)]<=J[q(0x12b)]?!![]:q(0x1ef)+J[q(0x12b)]+q(0x1a6)+B[q(0xeb)]+q(0xf4));P&&Number[q(0x1a3)](parseInt(B,0xa))&&U[q(0x13c)](q(0x114)+B);J[q(0x1da)]===q(0x19d)&&!_['isUndefined'](J[q(0x15f)])&&U[q(0x13c)](B>=J[q(0x15f)]?!![]:'must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20'+J[q(0x15f)]);J[q(0x1da)]===q(0x19d)&&!_[q(0x109)](J[q(0x128)])&&U[q(0x13c)](B<=J[q(0x128)]?!![]:q(0xf7)+J[q(0x128)]);if(J['type']===q(0x1d7)){const n=(0x0,utils_1[q(0x1b7)])(B);U[q(0x13c)](n===![]||_[q(0x160)](n)?'must\x20be\x20a\x20valid\x20non-empty\x20json\x20string':!![]);}const s=U[q(0x1e7)](F=>F!==!![]),A=(J===null||J===void 0x0?void 0x0:J[q(0x147)])?'\x0a'+chalk_1[q(0x15a)][q(0x1d0)]('>>')+q(0xee)+chalk_1[q(0x15a)]['whiteBright'](JSON[q(0x11e)](J[q(0x147)])):'';return s[q(0xeb)]>0x0?s[q(0x104)](chalk_1['default'][q(0x1af)](q(0x14f)))+A:!![];},this[N(0x148)]=(J,z,P)=>{const y=N,B=J[J[y(0xeb)]-0x1];function U(){const O=y;return J[O(0x16f)](0x0,-0x1)[O(0xef)](n=>n[O(0x191)](0x0)['toUpperCase']()+n[O(0x16f)](0x1))['join']('>');}const s=J[y(0xeb)]>0x1?chalk_1[y(0x15a)]['bgGrey'][y(0x155)](U())+':\x20':'',A=P?'\x20('+chalk_1[y(0x15a)]['blue'](P)+')':'';return chalk_1[y(0x15a)][y(0x1c1)](''+s+z+'\x20'+chalk_1[y(0x15a)][y(0x170)][y(0x14a)](B)+A+'?');},this[N(0xf9)]=(J,z,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const G=N;if(z[G(0xeb)]<0x1){const s=P?G(0x1c8)+P:'found';throw new Error('No\x20'+J+'\x20'+s+'.');}const B=G(0x161)+J+G(0x159),U=z[G(0xeb)]>0x4?G(0x15e):G(0x176);return(yield inquirer[G(0x17e)]([{'type':U,'name':G(0x1cc),'message':B,'choices':z}]))[G(0x1cc)];}),this[N(0x1e6)]=(J,z,P)=>__awaiter(this,void 0x0,void 0x0,function*(){const K=N,{elements:B,nextCursor:U}=yield z();if(B[K(0xeb)]<0x1){const n=P?K(0x1c8)+P:K(0x133);throw new Error(K(0x1d3)+J+'\x20'+n+'.');}const s='Choose\x20the\x20'+J+'\x20to\x20use:';if(U!==undefined){const F=({nextPageCursor:C})=>__awaiter(this,void 0x0,void 0x0,function*(){const l=K,v=yield z(C);return{'elements':v[l(0x163)],'nextPageCursor':v[l(0x1b5)]};});return(yield inquirer['prompt']([{'type':K(0x19a),'name':'name','message':s,'choices':B,'nextPageCursor':U,'loadMore':F}]))[K(0x1cc)];}const A=B[K(0xeb)]>0x4?'search-list':'list';return(yield inquirer['prompt']([{'type':A,'name':'name','message':s,'choices':B}]))[K(0x1cc)];}),this[N(0x19f)]=(J,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const b=N,P=''+(z?'('+chalk_1[b(0x15a)][b(0x1dc)](z)+')\x20':''),B=b(0x13a)+chalk_1[b(0x15a)][b(0x1bb)](J)+'\x20'+P+b(0x1db),U=this[b(0x138)]({'type':'string','required':!![]});return(yield inquirer[b(0x17e)]([{'type':b(0x10e),'name':'name','message':B,'validate':U}]))['name'];}),this[N(0x162)]=J=>__awaiter(this,void 0x0,void 0x0,function*(){const f=N;return(yield inquirer[f(0x17e)]([{'type':f(0xf6),'name':f(0x1cc),'message':J,'default':!![]}]))['name'];}),this[N(0x1e0)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const w=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const r=a8J;var U;const s=yield this[r(0x110)][r(0x176)]['services']({'parameters':{'projectId':P},'options':{'per_page':this[r(0x1aa)],'cursor':B}}),A=s['data']['services'][r(0xef)](n=>n['id']);return{'elements':A,'nextCursor':(U=s['pagination'])===null||U===void 0x0?void 0x0:U[r(0x113)]};});return this[w(0x192)]('service',z,J);}),this[N(0x153)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const Q=a8J;var P;const B=yield this['apiClient']['list'][Q(0x154)]({'options':{'per_page':this[Q(0x1aa)],'cursor':z}}),U=B[Q(0x1dd)][Q(0x154)][Q(0xef)](s=>s['id']);return{'elements':U,'nextCursor':(P=B['pagination'])===null||P===void 0x0?void 0x0:P['cursor']};});return this['askForResourcePaginated']('template',J);}),this[N(0x1ba)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const t=N,J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const T=a8J;var P,B,U;const s=yield this['apiClient'][T(0x176)][T(0x1a1)]({'options':{'per_page':this[T(0x1aa)],'cursor':z}}),A=(B=(P=s[T(0x1dd)][T(0x1a1)])===null||P===void 0x0?void 0x0:P['map'](n=>n['id']))!==null&&B!==void 0x0?B:[];return{'elements':A,'nextCursor':(U=s[T(0xdc)])===null||U===void 0x0?void 0x0:U[T(0x113)]};});return this[t(0x1e6)](t(0xff),J);}),this[N(0x139)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const h=N,J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const R=a8J;var P,B,U;const s=yield this[R(0x110)][R(0x176)]['cloud'][R(0x196)]({'options':{'per_page':this[R(0x1aa)],'cursor':z}}),A=(B=(P=s[R(0x1dd)][R(0x196)])===null||P===void 0x0?void 0x0:P['map'](n=>n['name']))!==null&&B!==void 0x0?B:[];return{'elements':A,'nextCursor':(U=s[R(0xdc)])===null||U===void 0x0?void 0x0:U[R(0x113)]};});return this[h(0x1e6)]('cluster\x20id',J);}),this[N(0x14c)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const a=N;if(_[a(0x109)](J))throw new Error(a(0x1e4));const z=P=>__awaiter(this,void 0x0,void 0x0,function*(){const u=a;var B;let U=this[u(0x1aa)];const s=yield this[u(0x110)][u(0x176)]['templateRuns']({'parameters':{'templateId':J},'options':{'per_page':U,'cursor':P}}),A=s[u(0x1dd)]['templateRuns']['map'](n=>n['id']+u(0x1b6)+n[u(0x151)]+')');return{'elements':A,'nextCursor':(B=s[u(0xdc)])===null||B===void 0x0?void 0x0:B['cursor']};});return this[a(0x1e6)](a(0x13e),z)[a(0x1d5)](P=>P['split']('\x20')[0x0]);}),this[N(0x132)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const J=z=>__awaiter(this,void 0x0,void 0x0,function*(){const H=a8J;var P;let B=this[H(0x1aa)];const U=yield this['apiClient']['list'][H(0x115)]({'options':{'per_page':B,'cursor':z}}),s=U[H(0x1dd)]['logSinks'][H(0xef)](A=>A['id']);return{'elements':s,'nextCursor':(P=U['pagination'])===null||P===void 0x0?void 0x0:P['cursor']};});return this['askForResourcePaginated']('log\x20sink',J);}),this[N(0x164)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const Y=a8J;var U;const s=yield this['apiClient'][Y(0x176)][Y(0x143)]({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':B}}),A=s['data'][Y(0x143)][Y(0xef)](n=>n['id']);return{'elements':A,'nextCursor':(U=s[Y(0xdc)])===null||U===void 0x0?void 0x0:U[Y(0x113)]};});return this['askForProjectScopedResourcePaginated'](E(0xe4),z,J);}),this['askForJob']=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z1=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const Z0=a8J;var U;const s=yield this[Z0(0x110)][Z0(0x176)][Z0(0x152)]({'parameters':{'projectId':P},'options':{'per_page':this[Z0(0x1aa)],'cursor':B}}),A=s['data'][Z0(0x152)]['map'](n=>n['id']);return{'elements':A,'nextCursor':(U=s['pagination'])===null||U===void 0x0?void 0x0:U[Z0(0x113)]};});return this[Z1(0x192)](Z1(0x1ad),z,J);}),this[N(0x10b)]=(J,z,P=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z2=N,B=Z2(0xe3),U=s=>A=>__awaiter(this,void 0x0,void 0x0,function*(){const Z3=Z2;var n;const F=yield this[Z3(0x110)]['get']['job'][Z3(0x18f)]({'parameters':{'projectId':s,'jobId':J},'options':{'per_page':this[Z3(0x1aa)],'cursor':A}}),C=F[Z3(0x1dd)]['runs'][Z3(0xef)](v=>v['id']+Z3(0x1b6)+v[Z3(0x1ec)]+')');return P&&C[Z3(0x144)](B),{'elements':C,'nextCursor':(n=F['pagination'])===null||n===void 0x0?void 0x0:n[Z3(0x113)]};});return this[Z2(0x192)](Z2(0x1b1),U,z,Z2(0x182)+J+'\x27')[Z2(0x1d5)](s=>{const Z4=Z2,A=s[Z4(0xe1)]('\x20')[0x0];if(A===B)return undefined;return A;});}),this[N(0x1cb)]=(J,z,P,B=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z5=N,U=Z5(0xea);if(P!==undefined){const s=A=>n=>__awaiter(this,void 0x0,void 0x0,function*(){const Z6=Z5;var F;const C=yield this[Z6(0x110)][Z6(0xe7)]['job'][Z6(0x156)]({'parameters':{'projectId':A,'jobId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':n}}),v=C[Z6(0x1dd)][Z6(0x156)][Z6(0xef)](o=>o['id']+'\x20(startedAt:\x20'+o[Z6(0x151)]+')');return B&&v[Z6(0x144)](U),{'elements':v,'nextCursor':(F=C['pagination'])===null||F===void 0x0?void 0x0:F[Z6(0x113)]};});return this[Z5(0x192)](Z5(0x119),s,J,'job:\x20\x27'+P+'\x27')[Z5(0x1d5)](A=>{const n=A['split']('\x20')[0x0];if(n===U)return undefined;return n;});}if(z!==undefined){const A=n=>F=>__awaiter(this,void 0x0,void 0x0,function*(){const Z7=Z5;var C;const v=yield this[Z7(0x110)][Z7(0xe7)][Z7(0xfe)]['builds']({'parameters':{'projectId':n,'serviceId':z},'options':{'per_page':this[Z7(0x1aa)],'cursor':F}}),o=v[Z7(0x1dd)][Z7(0x156)][Z7(0xef)](j=>j['id']+Z7(0x1b6)+j[Z7(0x151)]+')');if(B)o[Z7(0x144)](U);return{'elements':o,'nextCursor':(C=v[Z7(0xdc)])===null||C===void 0x0?void 0x0:C[Z7(0x113)]};});return this[Z5(0x192)](Z5(0xed),A,J,'service:\x20\x27'+P+'\x27')[Z5(0x1d5)](n=>{const Z8=Z5,F=n[Z8(0xe1)]('\x20')[0x0];if(F===U)return undefined;return F;});}throw new Error(Z5(0x17d));}),this[N(0x18b)]=(J,z,P,B=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Z9=N,U=Z9(0xe8);if(P!==undefined){const s=A=>n=>__awaiter(this,void 0x0,void 0x0,function*(){const ZZ=Z9;var F,C;const v=yield this[ZZ(0x110)][ZZ(0xe7)][ZZ(0x1ad)][ZZ(0x108)]({'parameters':{'projectId':A,'jobId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':n}}),o=(F=v[ZZ(0x1dd)][ZZ(0x108)])!==null&&F!==void 0x0?F:[],j=o===null||o===void 0x0?void 0x0:o['map'](V=>V[ZZ(0x1cc)]+'\x20(startedAt:\x20'+V[ZZ(0x151)]+')');return B&&j[ZZ(0x144)](U),{'elements':j,'nextCursor':(C=v['pagination'])===null||C===void 0x0?void 0x0:C[ZZ(0x113)]};});return this[Z9(0x192)](Z9(0x146),s,J,Z9(0x182)+P+'\x27')[Z9(0x1d5)](A=>{const ZJ=Z9,n=A[ZJ(0xe1)]('\x20')[0x0];if(n===U)return undefined;return n;});}if(z!==undefined){const A=n=>F=>__awaiter(this,void 0x0,void 0x0,function*(){const Zz=Z9;var C,v;const o=yield this[Zz(0x110)][Zz(0xe7)][Zz(0xfe)][Zz(0x108)]({'parameters':{'projectId':n,'serviceId':z},'options':{'per_page':this[Zz(0x1aa)],'cursor':F}}),j=(C=o[Zz(0x1dd)][Zz(0x108)])!==null&&C!==void 0x0?C:[],V=j['map'](i=>i[Zz(0x1cc)]+Zz(0x1b6)+i['createdAt']+')');if(B)V===null||V===void 0x0?void 0x0:V[Zz(0x144)](U);return{'elements':V,'nextCursor':(v=o['pagination'])===null||v===void 0x0?void 0x0:v[Zz(0x113)]};});return this[Z9(0x192)](Z9(0x187),A,J,Z9(0x181)+P+'\x27')[Z9(0x1d5)](n=>{const ZP=Z9,F=n[ZP(0xe1)]('\x20')[0x0];if(F===U)return undefined;return F;});}throw new Error(Z9(0x1ca));}),this[N(0x1e5)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZU=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const ZB=a8J;var U;const s=yield this['apiClient'][ZB(0x176)]['addons']({'parameters':{'projectId':P},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':B}});return{'elements':s[ZB(0x1dd)]['addons'][ZB(0xef)](A=>A['id']),'nextCursor':(U=s[ZB(0xdc)])===null||U===void 0x0?void 0x0:U['cursor']};});return this[ZU(0x192)]('addon',z,J);}),this[N(0x177)]=(J,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZA=N,P=B=>U=>__awaiter(this,void 0x0,void 0x0,function*(){const Zs=a8J;var s;const A=yield this[Zs(0x110)][Zs(0xe7)][Zs(0x183)][Zs(0x1ee)]({'parameters':{'projectId':B,'addonId':z},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':U}});return{'elements':A[Zs(0x1dd)]['backups'][Zs(0xef)](n=>n['id']+Zs(0x13d)+(n[Zs(0x12c)]||Zs(0x19e))+')'),'nextCursor':(s=A[Zs(0xdc)])===null||s===void 0x0?void 0x0:s[Zs(0x113)]};});return this[ZA(0x192)](ZA(0x1ee),P,J,ZA(0x105)+z+'\x27')[ZA(0x1d5)](B=>B['split']('\x20')[0x0]);}),this[N(0xf3)]=(J,z,P)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZF=N,B=U=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const Zn=a8J;var A;const n=yield this[Zn(0x110)]['get'][Zn(0x183)][Zn(0x117)]({'parameters':{'projectId':U,'addonId':z,'backupId':P},'options':{'per_page':this[Zn(0x1aa)],'cursor':s}});return{'elements':n[Zn(0x1dd)]['restores'][Zn(0xef)](F=>F['id']+Zn(0x13d)+(F[Zn(0x12c)]||Zn(0x19e))+')'),'nextCursor':(A=n[Zn(0xdc)])===null||A===void 0x0?void 0x0:A['cursor']};});return this[ZF(0x192)]('restore',B,J,'addon:\x20\x27'+z+'\x27')['then'](U=>U['split']('\x20')[0x0]);}),this[N(0x111)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zv=N,z=P=>__awaiter(this,void 0x0,void 0x0,function*(){const ZC=a8J;return(yield this['apiClient'][ZC(0x176)][ZC(0x190)]({'parameters':{'projectId':P}}))[ZC(0x1dd)]['map'](B=>B['id']);});return this['askForProjectScopedResource'](Zv(0xfd),z,J);}),this[N(0x116)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zj=N,z=P=>B=>__awaiter(this,void 0x0,void 0x0,function*(){const Zo=a8J;var U;const s=yield this['apiClient'][Zo(0x176)][Zo(0x199)]({'parameters':{'projectId':P},'options':{'per_page':this[Zo(0x1aa)],'cursor':B}});return{'elements':s[Zo(0x1dd)]['secrets'][Zo(0xef)](A=>A['id']),'nextCursor':(U=s[Zo(0xdc)])===null||U===void 0x0?void 0x0:U['cursor']};});return this[Zj(0x192)](Zj(0x1a4),z,J);}),this[N(0x17a)]=J=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ZV=N,z=yield this[ZV(0x110)][ZV(0xe7)][ZV(0x1bd)]({'parameters':{'domain':J}}),P=z[ZV(0x1dd)][ZV(0x127)][ZV(0xef)](U=>U[ZV(0x1cc)]+ZV(0x1e8)+U['fullName']+')'),B=ZV(0x1d6)+J+')';return this[ZV(0xf9)](ZV(0x1c6),P,B)[ZV(0x1d5)](U=>U[ZV(0xe1)]('\x20')[0x0]);}),this['askForSubdomainPath']=(J,z)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zi=N,P=yield this[Zi(0x110)]['list'][Zi(0x1c6)][Zi(0x1ab)]({'parameters':{'domain':J,'subdomain':z}}),B=P['data'][Zi(0x15c)][Zi(0xef)](s=>''+s['uri']),U='domain\x20('+J+'),\x20subdomain\x20('+z+')';return this[Zi(0xf9)](Zi(0xdf),B,U);}),this[N(0x1d9)]=J=>__awaiter(this,void 0x0,void 0x0,function*(){const Zp=N;return(yield inquirer[Zp(0x17e)]([{'type':'confirm','name':Zp(0x12e),'message':chalk_1[Zp(0x15a)][Zp(0x19b)](Zp(0x129)+(J||Zp(0x1c3))+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[Zp(0x12e)];}),this[N(0x125)]=(J,z)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZS=N;_[ZS(0x109)](J[ZS(0x1cc)])&&(z['length']<=0x0?_[ZS(0x1c2)](J,ZS(0x1cc),ZS(0x15a)):yield(0x0,utils_1[ZS(0x1b9)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const Ze=ZS,{name:P}=yield inquirer[Ze(0x17e)]([{'type':Ze(0x10e),'name':'name','message':Ze(0x12d),'default':'main-context'}]);if(!J['override']&&z['find'](B=>B[Ze(0x1cc)]===P)){const {c:B}=yield inquirer[Ze(0x17e)]([{'type':Ze(0xf6),'name':'c','message':Ze(0x180)+P+Ze(0xfb),'default':![]}]);if(B===![])throw new Error(Ze(0x130));_['set'](J,'override',!![]);}_[Ze(0x1c2)](J,Ze(0x1cc),P);})));if(_[ZS(0x109)](J[ZS(0x11d)])){const P=yield this[ZS(0x137)]();_[ZS(0x1c2)](J,ZS(0x11d),P);}return J;}),this[N(0x137)]=()=>__awaiter(this,void 0x0,void 0x0,function*(){const Zg=N,{token:J}=yield inquirer[Zg(0x17e)]([{'type':Zg(0x167),'name':Zg(0x11d),'mask':'*','message':Zg(0x15d)}]);return J;}),inquirer[N(0xdd)](N(0x15e),inquirerSearchList),inquirer[N(0xdd)](N(0x19a),inquirer_pagination_prompt_1[N(0x1c7)]);}['confirmationPrompt'](Z,J){return __awaiter(this,void 0x0,void 0x0,function*(){const ZI=a8J,z=yaml[ZI(0xfc)](Z),P=_[ZI(0x141)](z[ZI(0xe1)]('\x0a')[ZI(0xef)](s=>s[ZI(0xeb)])),B=chalk_1[ZI(0x15a)][ZI(0x13b)]('-'[ZI(0x122)](P)+'\x0a'),{confirm:U}=yield inquirer[ZI(0x17e)]([{'type':ZI(0x176),'name':ZI(0xf6),'message':''+chalk_1[ZI(0x15a)][ZI(0x170)][ZI(0x1bb)](ZI(0x1d2))+B+chalk_1[ZI(0x15a)][ZI(0x198)](z)+B,'choices':Object[ZI(0x1ae)](ConfirmChoices)}]);switch(U){case ConfirmChoices[ZI(0x126)]:return Z;case ConfirmChoices[ZI(0x10a)]:throw new Error(ZI(0x1e1));case ConfirmChoices[ZI(0x13f)]:return this['retrievePayloadViaInteractiveCli'](J);case ConfirmChoices[ZI(0x1a8)]:return this['confirmationPrompt'](yield this[ZI(0x1a2)](Z),J);case ConfirmChoices['SAVE']:yield this[ZI(0xde)](Z);return this[ZI(0x185)](Z,J);default:throw new Error(ZI(0x12a));}});}[a8S(0x100)](Z,J){return __awaiter(this,void 0x0,void 0x0,function*(){const Zm=a8J;if((J===null||J===void 0x0?void 0x0:J[Zm(0x1cd)])!==undefined)this[Zm(0x1cd)]=J===null||J===void 0x0?void 0x0:J['resultCache'];this[Zm(0x1e9)]=J===null||J===void 0x0?void 0x0:J[Zm(0x158)],this[Zm(0x1f0)]=J===null||J===void 0x0?void 0x0:J[Zm(0x1f0)];const z={};return yield this[Zm(0xe6)]([],Z[Zm(0x1df)][Zm(0x14e)],z),this['resultCache']=z,yield this[Zm(0x185)](z,Z);});}[a8S(0xe6)](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const ZL=a8J;let B;if(J[ZL(0xf8)]&&!_['has'](J,ZL(0x1be))){if(J['oneOf'][ZL(0xeb)]>0x1){const {choice:U}=yield inquirer[ZL(0x17e)]([{'type':ZL(0x176),'name':ZL(0x173),'message':ZL(0xe2)+(Z[Z['length']-0x1]||'')+ZL(0x1b2),'choices':J[ZL(0xf8)][ZL(0xef)](s=>{const ZM=ZL;var A;return(A=s[ZM(0x15b)])!==null&&A!==void 0x0?A:'??';})}]);B=yield this[ZL(0x1d8)](Z,J[ZL(0xf8)][ZL(0x134)](s=>s[ZL(0x15b)]===U),z,P);}else{const s=J[ZL(0xf8)][0x0];_['set'](s,ZL(0x15b),J[ZL(0x15b)]),B=yield this[ZL(0x1d8)](Z,s,z,P);}B={};}else{if(J[ZL(0x10d)]&&!_[ZL(0x16c)](J,ZL(0x1be))){if(J[ZL(0x10d)][ZL(0xeb)]>0x1){const {choice:A}=yield inquirer[ZL(0x17e)]([{'type':ZL(0x176),'name':ZL(0x173),'message':ZL(0xe2)+(Z[Z[ZL(0xeb)]-0x1]||'')+'\x20type?','choices':[...J[ZL(0x10d)]['map'](n=>{var F;return(F=n['description'])!==null&&F!==void 0x0?F:'??';}),ZL(0x157)]}]);A!==ZL(0x157)&&(B=yield this[ZL(0x1d8)](Z,J['anyOf'][ZL(0x134)](n=>n[ZL(0x15b)]===A),z,P));}else{const n=J[ZL(0x10d)][0x0];_[ZL(0x1c2)](n,ZL(0x15b),J['description']),B=yield this[ZL(0x1d8)](Z,n,z,P);}B={};}else B=yield this[ZL(0x1d8)](Z,J,z,P);}return B;});}[a8S(0x12f)](Z,J,z,P){var B;return __awaiter(this,void 0x0,void 0x0,function*(){const Zx=a8J;if(P===![]){const {addEntry:A}=yield inquirer[Zx(0x17e)]([{'type':Zx(0xf6),'name':Zx(0x1d1),'message':this[Zx(0x148)](J,'Do\x20you\x20want\x20to\x20add',Z===null||Z===void 0x0?void 0x0:Z[Zx(0x15b)]),'default':![]}]);if(!A)return z;}const U=Object[Zx(0x1ea)]((B=Z===null||Z===void 0x0?void 0x0:Z['properties'])!==null&&B!==void 0x0?B:[]),s=Z['required']||[];if(U[Zx(0xeb)]>0x0)for(const n of U){const F=J[Zx(0xf2)](n);if(J[Zx(0xeb)]>0x0&&!_['has'](z,J[Zx(0x104)]('.')))_[Zx(0x1c2)](z,J[Zx(0x104)]('.'),{});yield this[Zx(0xe6)](F,Z['properties'][n],z,s[Zx(0x1c0)](n));}else yield this[Zx(0x1d8)](J,Object[Zx(0x1c5)](Object[Zx(0x1c5)]({},Z),{'type':Zx(0x1d7)}),z,P);return z;});}[a8S(0x18a)](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zd=a8J;if(J&&z)return!![];const B=J?Zd(0x174):Zd(0x1c4),{addEntry:U}=yield inquirer[Zd(0x17e)]([{'type':'confirm','name':'addEntry','message':this['getPathString'](Z,B,J?P:undefined),'default':![]}]);return U;});}['getType'](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zk=a8J;let B;const U=Z[Zk(0x104)]('.');switch(J===null||J===void 0x0?void 0x0:J['type']){case Zk(0x1d4):{let s=!![];while(yield this[Zk(0x18a)](Z,s,P,J===null||J===void 0x0?void 0x0:J[Zk(0x15b)])){const A=_[Zk(0xe7)](z,U);_['unset'](z,U),yield this[Zk(0x1d8)](Z,J[Zk(0x120)],z);const n=_[Zk(0xe7)](z,U);!_['isArray'](A)?_[Zk(0x1c2)](z,U,[n]):(A[Zk(0x13c)](n),_[Zk(0x1c2)](z,U,A)),s=![];}return B||[];}case'object':{return B=yield this[Zk(0x12f)](J,Z,z,P),B;}case Zk(0x1d7):B=(0x0,utils_1[Zk(0x1b7)])(yield this['ask'](Z,J,P))||undefined;break;case Zk(0x10c):case Zk(0xf5):case Zk(0x19d):default:B=yield this[Zk(0x107)](Z,J,P,z);break;}return!_[Zk(0x109)](B)&&_[Zk(0x1c2)](z,U,B),B;});}[a8S(0x107)](Z,J,z,P){var B;return __awaiter(this,void 0x0,void 0x0,function*(){const ZN=a8J,U=Z[Z[ZN(0xeb)]-0x1],{defaultValue:defaultValue=(B=J===null||J===void 0x0?void 0x0:J[ZN(0x147)])!==null&&B!==void 0x0?B:J===null||J===void 0x0?void 0x0:J['default'],choices:choices=J===null||J===void 0x0?void 0x0:J[ZN(0x17c)],pagination:s}=yield(0x0,api_helpers_1[ZN(0x14d)])(U,this[ZN(0x110)],this['tmpCmdPath'],P,this[ZN(0x194)],Z);let A=ZN(0x10e);if(!_[ZN(0x109)](choices)&&choices[ZN(0xeb)]>0x0){if(s!==undefined&&s[ZN(0x171)]!==undefined)A=ZN(0x19a);else choices[ZN(0xeb)]>0x4&&typeof choices[0x0]===ZN(0x10c)?A='search-list':A=ZN(0x176);}else{if((J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])===ZN(0xf5))A='confirm';else{if((J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])===ZN(0x19d))A=ZN(0x10e);else(J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])==='rawObject'&&(A='editor');}}let n=z!==![]?!_[ZN(0xe9)](defaultValue)?defaultValue:JSON[ZN(0x11e)](defaultValue):_[ZN(0x118)](defaultValue)?defaultValue:'don\x27t\x20change';if(choices)n=n[ZN(0xdb)]();_[ZN(0x16c)](this[ZN(0x1cd)],Z[ZN(0x104)]('.'))&&(n=this[ZN(0x1cd)][Z['join']('.')]);const F=choices&&z===![]?[ZN(0x157),...choices]:choices,C=(J===null||J===void 0x0?void 0x0:J[ZN(0x1da)])===ZN(0x19d),v=Object[ZN(0x1c5)]({'type':A,'name':'id','message':this['getQuestionString'](Z,J),'choices':F,'default':n,'filter':this[ZN(0x1e7)](A,z),'validate':this['validate'](J,z,C)},s),o=(yield inquirer[ZN(0x17e)]([v]))['id'];if(o===ZN(0x157)||o==='')return undefined;if(C)return parseInt(o,0xa);return o;});}[a8S(0x17f)](Z,J){const ZW=a8S,z=(J===null||J===void 0x0?void 0x0:J[ZW(0x1da)])!=='boolean'?ZW(0x1ac):'Should\x20it\x20be';return this['getPathString'](Z,z,J===null||J===void 0x0?void 0x0:J['description']);}[a8S(0xe5)](){return __awaiter(this,void 0x0,void 0x0,function*(){const ZD=a8J,Z=J=>__awaiter(this,void 0x0,void 0x0,function*(){const ZX=a8J;var z;const P=yield this[ZX(0x110)]['list'][ZX(0x193)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':J}}),B=P[ZX(0x1dd)]['projects'][ZX(0xef)](U=>U['id']);return{'elements':B,'nextCursor':(z=P[ZX(0xdc)])===null||z===void 0x0?void 0x0:z['cursor']};});return yield this['askForResourcePaginated'](ZD(0x165),Z);});}['askForProjectScopedResource'](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zq=a8J,B=z||this['apiClient']['contextProvider'][Zq(0x102)]();if(_['isUndefined'](B))throw new Error(Zq(0x10f));const U=yield J(B);return yield this[Zq(0xf9)](Z,U,(P?P+Zq(0x142):'')+Zq(0x131)+B+'\x27');});}[a8S(0x192)](Z,J,z,P){return __awaiter(this,void 0x0,void 0x0,function*(){const Zy=a8J,B=z||this['apiClient'][Zy(0x175)][Zy(0x102)]();if(_[Zy(0x109)](B))throw new Error(Zy(0x10f));const U=yield J(B);return yield this['askForResourcePaginated'](Z,U,(P?P+Zy(0x142):'')+Zy(0x131)+B+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const ZG=a8J,Z=J=>__awaiter(this,void 0x0,void 0x0,function*(){const ZO=a8J;var z;const P=yield this[ZO(0x110)][ZO(0x176)][ZO(0x106)]({'options':{'per_page':this[ZO(0x1aa)],'cursor':J}});return{'elements':P['data'][ZO(0x106)][ZO(0xef)](B=>B[ZO(0x1cc)]),'nextCursor':(z=P[ZO(0xdc)])===null||z===void 0x0?void 0x0:z[ZO(0x113)]};});return this[ZG(0x1e6)](ZG(0x1bd),Z);});}[a8S(0xe0)](){return __awaiter(this,void 0x0,void 0x0,function*(){const Zl=a8J,Z=J=>__awaiter(this,void 0x0,void 0x0,function*(){const ZK=a8J;var z;const P=yield this[ZK(0x110)][ZK(0x176)]['registryCredentials']({'options':{'per_page':this[ZK(0x1aa)],'cursor':J}});return{'elements':P[ZK(0x1dd)]['credentials']['map'](B=>B['id']),'nextCursor':(z=P['pagination'])===null||z===void 0x0?void 0x0:z[ZK(0x113)]};});return this[Zl(0x1e6)]('credentials',Z);});}[a8S(0x197)](Z){const Zb=a8S;this[Zb(0x194)]=Z;}}exports[a8S(0xfa)]=InquirerHelper;function a8Z(){const Zf=['What\x27s\x20the\x20','all-job-runs','pipeline','askForProject','propToType','get','all-containers','isObject','all-builds','length','1676943UaVcsm','service\x20build','\x20Example:\x20','map','1URCPma','writable','concat','askForAddonRestore','\x20characters','boolean','confirm','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','oneOf','askForResource','InquirerHelper','\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','safeDump','volume','service','tag','retrievePayloadViaInteractiveCli','14coEgyr','getCurrentProjectName','71248VGbbbe','join','addon:\x20\x27','domains','ask','containers','isUndefined','ABORT','askForJobRun','string','anyOf','input','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','apiClient','askForVolume','./pagination/inquirer-pagination-prompt','cursor','must\x20be\x20a\x20number,\x20is\x20','logSinks','askForSecret','restores','isBoolean','job\x20builds','pop','inquirer-search-list','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','token','stringify','trim','items','call','repeat','js-yaml','No,\x20repeat','loginPrompt','YES','subdomains','maximum','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','Something\x20unexpected\x20happened.','maxLength','completedAt','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','confirmation','getInnerType','Context\x20name\x20already\x20exists.','project:\x20\x27','askForLogSink','found','find','yaml','Writing\x20configuration\x20failed:\x20','tokenPrompt','validate','askForClusterId','Enter\x20the\x20','grey','push','\x20(completedAt:\x20','template\x20run','REPEAT','3EfauVb','max','\x20in\x20','pipelines','unshift','hasOwnProperty','job\x20containers','example','getPathString','defineProperty','greenBright','fileName','askForTemplateRun','fetchResourceList','body','\x20and\x20it\x20','.*\x5c.(json|yaml|yml)$','createdAt','jobs','askForTemplate','templates','whiteBright','builds','don\x27t\x20change','cmdPath','\x20to\x20use:','default','description','paths','Choose\x20the\x20login\x20token:','search-list','minimum','isEmpty','Choose\x20the\x20','askConfirm','elements','askForPipeline','project','132INetAm','password','3057884ErQTWV','test','174559aHRkoK','minLength','has','editor','pattern','slice','bold','nextPageCursor','Unexpected\x20file\x20type:\x20','choice','Do\x20you\x20want\x20to\x20add','contextProvider','list','askForAddonBackup','this\x20option\x20is\x20required,\x20please\x20answer','next','askForSubdomain','__esModule','enum','No\x20builds\x20found','prompt','getQuestionString','Context\x20with\x20name\x20\x27','service:\x20\x27','job:\x20\x27','addon','280YsSOOZ','confirmationPrompt','editedResult','service\x20containers','332546enRiyA','No,\x20edit','askArrayEntry','askForContainer','SAVE','Configuration\x20file\x20written\x20to\x20','chalk','runs','volumes','charAt','askForProjectScopedResourcePaginated','projects','pathVars',',\x20supported\x20types:\x20[json|yaml|yml]','clusters','setPathVars','blueBright','secrets','pagination-prompt','yellowBright','3692352CCQVYG','integer','not\x20completed','askGeneric','done','tags','editPayload','isNaN','secret','lodash','\x20characters,\x20is\x20','value','EDIT','success','defaultPaginationPageSize','path','What\x20do\x20you\x20want\x20to\x20use\x20as','job','values','underline','doesn\x27t\x20match\x20pattern\x20\x27','job\x20runs','\x20type?','create','170195GYWATC','nextCursor','\x20(startedAt:\x20','isValidJSON','inquirer','retry','askForTag','green','./api-helpers','domain','properties','configurable','includes','reset','set','a\x20Northflank\x20resource','Do\x20you\x20want\x20to\x20add\x20more','assign','subdomain','DynamicReloadPaginationPrompt','for\x20this\x20','./utils','No\x20containers\x20found','askForBuild','name','resultCache','warning','message','red','addEntry','Please\x20confirm\x20following\x20configuration:\x0a','No\x20','array','then','domain\x20(','rawObject','getType','deleteWarningPrompt','type','to\x20use:','blue','data','No,\x20but\x20save\x20as\x20file','opt','askForService','Aborted.','Go\x20to\x20editor','prototype','Template\x20id\x20not\x20provided.','askForAddon','askForResourcePaginated','filter','\x20(full\x20domain:\x20','tmpCmdPath','keys','must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20','startedAt','writeFileSync','backups','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','skipValidation','toString','pagination','registerPrompt','saveFile','subdomainPath','askForCredentials','split'];a8Z=function(){return Zf;};return a8Z();}
1
+ 'use strict';const a8w=a8o;(function(e,o){const g=a8o,h=e();while(!![]){try{const p=-parseInt(g(0x13c))/0x1+-parseInt(g(0x9d))/0x2+parseInt(g(0xf9))/0x3+parseInt(g(0x16b))/0x4*(parseInt(g(0xac))/0x5)+parseInt(g(0x161))/0x6*(-parseInt(g(0x129))/0x7)+parseInt(g(0x65))/0x8+-parseInt(g(0xdc))/0x9*(-parseInt(g(0x12a))/0xa);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a8e,0x57cb5));var __createBinding=this&&this[a8w(0x8d)]||(Object[a8w(0xb3)]?function(e,h,p,Y){const C=a8w;if(Y===undefined)Y=p;var q=Object[C(0xe8)](h,p);(!q||('get'in q?!h[C(0xf3)]:q[C(0xef)]||q[C(0xb9)]))&&(q={'enumerable':!![],'get':function(){return h[p];}}),Object[C(0x77)](e,Y,q);}:function(e,h,p,Y){if(Y===undefined)Y=p;e[Y]=h[p];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object[a8w(0xb3)]?function(e,h){Object['defineProperty'](e,'default',{'enumerable':!![],'value':h});}:function(e,h){const x=a8w;e[x(0x120)]=h;}),__importStar=this&&this[a8w(0x69)]||function(e){const l=a8w;if(e&&e[l(0xf3)])return e;var o={};if(e!=null){for(var h in e)if(h!==l(0x120)&&Object[l(0xc0)][l(0x138)][l(0xcd)](e,h))__createBinding(o,e,h);}return __setModuleDefault(o,e),o;},__awaiter=this&&this[a8w(0x13e)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const H=a8o;function v(Z){const b=a8o;try{I(p[b(0xbb)](Z));}catch(k){J(k);}}function s(Z){const a=a8o;try{I(p[a(0xe4)](Z));}catch(k){J(k);}}function I(Z){const z=a8o;Z[z(0x102)]?q(Z[z(0x16a)]):Y(Z['value'])[z(0x101)](v,s);}I((p=p[H(0x7e)](e,o||[]))['next']());});},__importDefault=this&&this[a8w(0x14b)]||function(e){const P=a8w;return e&&e[P(0xf3)]?e:{'default':e};};function a8o(e,o){const h=a8e();return a8o=function(p,Y){p=p-0x64;let q=h[p];return q;},a8o(e,o);}Object[a8w(0x77)](exports,a8w(0xf3),{'value':!![]}),exports[a8w(0x82)]=void 0x0;const _=__importStar(require(a8w(0xd2))),chalk_1=__importDefault(require('chalk')),fs=__importStar(require('fs')),utils_1=require(a8w(0xcc)),api_helpers_1=require(a8w(0x15d)),inquirer_pagination_prompt_1=require('./pagination/inquirer-pagination-prompt'),inquirer=require(a8w(0x81)),inquirerSearchList=require(a8w(0x64)),yaml=require(a8w(0x130));var ConfirmChoices;(function(e){const V=a8w;e[V(0x90)]='Yes,\x20send',e[V(0xa5)]='No,\x20repeat',e['EDIT']=V(0xea),e['SAVE']='No,\x20but\x20save\x20as\x20file',e[V(0x16e)]=V(0x148);}(ConfirmChoices||(ConfirmChoices={})));class InquirerHelper{constructor(e){const u=a8w;this[u(0x8c)]=e,this[u(0x168)]=0x32,this['editPayload']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const n=u,{editedResult:h}=yield inquirer['prompt']([{'type':n(0xaa),'name':n(0xa8),'message':n(0x150),'default':yaml[n(0xd9)](o)}]);return yaml['safeLoad'](h);}),this[u(0x9b)]=o=>__awaiter(this,void 0x0,void 0x0,function*(){const d=u,h=J=>d(0x15e)+J+d(0x87);function p(){return __awaiter(this,void 0x0,void 0x0,function*(){const j=a8o;return inquirer['prompt']([{'type':j(0x9e),'name':j(0xab),'message':j(0x118),'validate':J=>new RegExp(j(0x134))[j(0x71)](J)?!![]:h(J)}]);});}const {fileName:Y}=yield p(),q=Y['toString']()[d(0x11a)]('.')['pop']();try{switch(q){case d(0x145):(0x0,utils_1[d(0x103)])('Configuration\x20file\x20written\x20to\x20'+Y);return fs['writeFileSync'](Y,JSON[d(0x67)](o,null,'\x20\x20'));case d(0xa6):case'yml':(0x0,utils_1[d(0x103)])(d(0x16d)+Y);return fs[d(0xf6)](Y,yaml['safeDump'](o));default:(0x0,utils_1[d(0xfa)])(h(q));}}catch(J){(0x0,utils_1[d(0xfa)])(d(0x8f)+J['message']);}return undefined;}),this[u(0x12c)]=(o,h)=>p=>{const Q=u,Y=typeof p==='string'?p[Q(0x106)]():p;return h===![]&&Y===Q(0x94)?'':Y;},this['validate']=(o,h,p)=>Y=>{const D=u;if(this[D(0xec)]===!![])return!![];const q=[];if(Y===''||Y===D(0x94)){if(h!==![])q[D(0xda)](D(0x76));else return!![];}o['type']===D(0x79)&&!_[D(0xa0)](o[D(0xd8)])&&q[D(0xda)](new RegExp(o[D(0xd8)])['test'](Y)?!![]:'doesn\x27t\x20match\x20pattern\x20\x27'+o['pattern']+'\x27');o[D(0xb5)]===D(0x79)&&!_[D(0xa0)](o[D(0x13a)])&&q[D(0xda)](Y['length']>=o[D(0x13a)]?!![]:'must\x20be\x20longer\x20than\x20or\x20equal\x20to\x20'+o[D(0x13a)]+D(0xe2)+Y[D(0x167)]+D(0x72));o[D(0xb5)]===D(0x79)&&!_[D(0xa0)](o[D(0x11e)])&&q[D(0xda)](Y['length']<=o['maxLength']?!![]:D(0x128)+o[D(0x11e)]+D(0xe2)+Y['length']+D(0x72));p&&Number[D(0xb1)](parseInt(Y,0xa))&&q[D(0xda)](D(0xc4)+Y);o[D(0xb5)]===D(0x109)&&!_[D(0xa0)](o['minimum'])&&q['push'](Y>=o[D(0x155)]?!![]:D(0x139)+o[D(0x155)]);o[D(0xb5)]===D(0x109)&&!_['isUndefined'](o['maximum'])&&q[D(0xda)](Y<=o[D(0x15c)]?!![]:D(0x12b)+o[D(0x15c)]);if(o['type']===D(0x14f)){const s=(0x0,utils_1[D(0x10b)])(Y);q[D(0xda)](s===![]||_[D(0xcb)](s)?D(0x166):!![]);}const J=q['filter'](I=>I!==!![]),v=(o===null||o===void 0x0?void 0x0:o[D(0x15f)])?'\x0a'+chalk_1[D(0x120)]['red']('>>')+D(0x6a)+chalk_1['default'][D(0x104)](JSON['stringify'](o[D(0x15f)])):'';return J[D(0x167)]>0x0?J[D(0xde)](chalk_1[D(0x120)][D(0x117)](D(0xb0)))+v:!![];},this[u(0xc3)]=(o,h,p)=>{const f=u,Y=o[o[f(0x167)]-0x1];function q(){const i=f;return o['slice'](0x0,-0x1)['map'](s=>s['charAt'](0x0)[i(0xad)]()+s['slice'](0x1))['join']('>');}const J=o[f(0x167)]>0x1?chalk_1['default'][f(0x14a)][f(0x104)](q())+':\x20':'',v=p?'\x20('+chalk_1[f(0x120)][f(0x100)](p)+')':'';return chalk_1[f(0x120)][f(0xc9)](''+J+h+'\x20'+chalk_1[f(0x120)][f(0xf0)]['greenBright'](Y)+v+'?');},this[u(0xcf)]=(o,h,p)=>__awaiter(this,void 0x0,void 0x0,function*(){const R=u;if(h['length']<0x1){const J=p?R(0x154)+p:'found';throw new Error(R(0x84)+o+'\x20'+J+'.');}const Y=R(0xb6)+o+R(0x153),q=h[R(0x167)]>0x4?R(0x10c):R(0xf8);return(yield inquirer[R(0x135)]([{'type':q,'name':'name','message':Y,'choices':h}]))[R(0x158)];}),this[u(0x14c)]=(o,h,p)=>__awaiter(this,void 0x0,void 0x0,function*(){const t=u,{elements:Y,nextCursor:q}=yield h();if(Y[t(0x167)]<0x1){const s=p?t(0x154)+p:'found';throw new Error('No\x20'+o+'\x20'+s+'.');}const J=t(0xb6)+o+t(0x153);if(q!==undefined){const I=({nextPageCursor:Z})=>__awaiter(this,void 0x0,void 0x0,function*(){const G=t,k=yield h(Z);return{'elements':k[G(0xff)],'nextPageCursor':k['nextCursor']};});return(yield inquirer['prompt']([{'type':'pagination-prompt','name':t(0x158),'message':J,'choices':Y,'nextPageCursor':q,'loadMore':I}]))[t(0x158)];}const v=Y[t(0x167)]>0x4?t(0x10c):t(0xf8);return(yield inquirer[t(0x135)]([{'type':v,'name':t(0x158),'message':J,'choices':Y}]))[t(0x158)];}),this[u(0x6b)]=(o,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const y=u,p=''+(h?'('+chalk_1[y(0x120)][y(0x100)](h)+')\x20':''),Y=y(0x137)+chalk_1[y(0x120)][y(0x132)](o)+'\x20'+p+y(0xae),q=this[y(0x126)]({'type':y(0x79),'required':!![]});return(yield inquirer['prompt']([{'type':y(0x9e),'name':y(0x158),'message':Y,'validate':q}]))[y(0x158)];}),this[u(0xd6)]=o=>__awaiter(this,void 0x0,void 0x0,function*(){const S=u;return(yield inquirer[S(0x135)]([{'type':'confirm','name':S(0x158),'message':o,'default':!![]}]))['name'];}),this['askForService']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const m=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const X=a8o;var q;const J=yield this[X(0x8c)][X(0xf8)]['services']({'parameters':{'projectId':p},'options':{'per_page':this[X(0x168)],'cursor':Y}}),v=J['data'][X(0x75)][X(0x9c)](s=>s['id']);return{'elements':v,'nextCursor':(q=J[X(0x80)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[m(0x122)](m(0x133),h,o);}),this['askForTemplate']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const T=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const U=a8o;var p;const Y=yield this[U(0x8c)][U(0xf8)][U(0x169)]({'options':{'per_page':this[U(0x168)],'cursor':h}}),q=Y[U(0x6c)]['templates']['map'](J=>J['id']);return{'elements':q,'nextCursor':(p=Y[U(0x80)])===null||p===void 0x0?void 0x0:p['cursor']};});return this[T(0x14c)](T(0xeb),o);}),this[u(0x163)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const E=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const O=a8o;var p,Y,q;const J=yield this[O(0x8c)]['list'][O(0x123)]({'options':{'per_page':this[O(0x168)],'cursor':h}}),v=(Y=(p=J[O(0x6c)]['tags'])===null||p===void 0x0?void 0x0:p[O(0x9c)](s=>s['id']))!==null&&Y!==void 0x0?Y:[];return{'elements':v,'nextCursor':(q=J[O(0x80)])===null||q===void 0x0?void 0x0:q[O(0x152)]};});return this[E(0x14c)](E(0x171),o);}),this[u(0x170)]=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const M=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const A=a8o;var p,Y,q;const J=yield this['apiClient'][A(0xf8)][A(0xb8)][A(0xdb)]({'options':{'per_page':this[A(0x168)],'cursor':h}}),v=(Y=(p=J[A(0x6c)][A(0xdb)])===null||p===void 0x0?void 0x0:p['map'](s=>s[A(0x158)]))!==null&&Y!==void 0x0?Y:[];return{'elements':v,'nextCursor':(q=J['pagination'])===null||q===void 0x0?void 0x0:q[A(0x152)]};});return this['askForResourcePaginated'](M(0x96),o);}),this[u(0xce)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const K=u;if(_[K(0xa0)](o))throw new Error(K(0x107));const h=p=>__awaiter(this,void 0x0,void 0x0,function*(){const r=K;var Y;let q=this[r(0x168)];const J=yield this[r(0x8c)][r(0xf8)][r(0x113)]({'parameters':{'templateId':o},'options':{'per_page':q,'cursor':p}}),v=J[r(0x6c)]['templateRuns'][r(0x9c)](s=>s['id']+r(0xca)+s[r(0x7d)]+')');return{'elements':v,'nextCursor':(Y=J[r(0x80)])===null||Y===void 0x0?void 0x0:Y[r(0x152)]};});return this[K(0x14c)](K(0x10d),h)['then'](p=>p[K(0x11a)]('\x20')[0x0]);}),this['askForLogSink']=()=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e0=u,o=h=>__awaiter(this,void 0x0,void 0x0,function*(){const B=a8o;var p;let Y=this[B(0x168)];const q=yield this[B(0x8c)]['list'][B(0x7a)]({'options':{'per_page':Y,'cursor':h}}),J=q[B(0x6c)]['logSinks']['map'](v=>v['id']);return{'elements':J,'nextCursor':(p=q[B(0x80)])===null||p===void 0x0?void 0x0:p[B(0x152)]};});return this['askForResourcePaginated'](e0(0x74),o);}),this[u(0xe9)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e2=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const e1=a8o;var q;const J=yield this[e1(0x8c)]['list'][e1(0x95)]({'parameters':{'projectId':p},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':Y}}),v=J[e1(0x6c)][e1(0x95)][e1(0x9c)](s=>s['id']);return{'elements':v,'nextCursor':(q=J[e1(0x80)])===null||q===void 0x0?void 0x0:q[e1(0x152)]};});return this['askForProjectScopedResourcePaginated'](e2(0x157),h,o);}),this[u(0xf4)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e4=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const e3=a8o;var q;const J=yield this[e3(0x8c)][e3(0xf8)][e3(0xa1)]({'parameters':{'projectId':p},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':Y}}),v=J[e3(0x6c)]['jobs'][e3(0x9c)](s=>s['id']);return{'elements':v,'nextCursor':(q=J[e3(0x80)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[e4(0x122)]('job',h,o);}),this[u(0x143)]=(o,h,p=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e5=u,Y=e5(0x121),q=J=>v=>__awaiter(this,void 0x0,void 0x0,function*(){const e6=e5;var s;const I=yield this[e6(0x8c)]['get'][e6(0x7c)][e6(0x172)]({'parameters':{'projectId':J,'jobId':o},'options':{'per_page':this['defaultPaginationPageSize'],'cursor':v}}),Z=I[e6(0x6c)][e6(0x172)][e6(0x9c)](k=>k['id']+e6(0xca)+k[e6(0xe1)]+')');return p&&Z[e6(0xa7)](Y),{'elements':Z,'nextCursor':(s=I[e6(0x80)])===null||s===void 0x0?void 0x0:s['cursor']};});return this[e5(0x122)](e5(0x8a),q,h,e5(0x108)+o+'\x27')[e5(0x101)](J=>{const e7=e5,v=J[e7(0x11a)]('\x20')[0x0];if(v===Y)return undefined;return v;});}),this[u(0x13b)]=(o,h,p,Y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const e9=u,q='all-builds';if(p!==undefined){const J=v=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const e8=a8o;var I;const Z=yield this[e8(0x8c)][e8(0x11d)]['job'][e8(0x9a)]({'parameters':{'projectId':v,'jobId':p},'options':{'per_page':this[e8(0x168)],'cursor':s}}),k=Z[e8(0x6c)][e8(0x9a)][e8(0x9c)](L=>L['id']+'\x20(startedAt:\x20'+L[e8(0x7d)]+')');return Y&&k[e8(0xa7)](q),{'elements':k,'nextCursor':(I=Z[e8(0x80)])===null||I===void 0x0?void 0x0:I[e8(0x152)]};});return this[e9(0x122)]('job\x20builds',J,o,e9(0x108)+p+'\x27')[e9(0x101)](v=>{const ee=e9,s=v[ee(0x11a)]('\x20')[0x0];if(s===q)return undefined;return s;});}if(h!==undefined){const v=s=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const eo=e9;var Z;const k=yield this[eo(0x8c)][eo(0x11d)][eo(0x133)][eo(0x9a)]({'parameters':{'projectId':s,'serviceId':h},'options':{'per_page':this[eo(0x168)],'cursor':I}}),L=k[eo(0x6c)]['builds']['map'](F=>F['id']+eo(0xca)+F[eo(0x7d)]+')');if(Y)L[eo(0xa7)](q);return{'elements':L,'nextCursor':(Z=k[eo(0x80)])===null||Z===void 0x0?void 0x0:Z[eo(0x152)]};});return this['askForProjectScopedResourcePaginated'](e9(0x66),v,o,e9(0x149)+p+'\x27')[e9(0x101)](s=>{const eh=e9,I=s[eh(0x11a)]('\x20')[0x0];if(I===q)return undefined;return I;});}throw new Error('No\x20builds\x20found');}),this[u(0xd1)]=(o,h,p,Y=![])=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ep=u,q=ep(0x12d);if(p!==undefined){const J=v=>s=>__awaiter(this,void 0x0,void 0x0,function*(){const eY=ep;var I,Z;const k=yield this[eY(0x8c)][eY(0x11d)][eY(0x7c)][eY(0xc5)]({'parameters':{'projectId':v,'jobId':p},'options':{'per_page':this[eY(0x168)],'cursor':s}}),L=(I=k[eY(0x6c)][eY(0xc5)])!==null&&I!==void 0x0?I:[],F=L===null||L===void 0x0?void 0x0:L[eY(0x9c)](W=>W[eY(0x158)]+eY(0xca)+W[eY(0x7d)]+')');return Y&&F[eY(0xa7)](q),{'elements':F,'nextCursor':(Z=k[eY(0x80)])===null||Z===void 0x0?void 0x0:Z[eY(0x152)]};});return this['askForProjectScopedResourcePaginated']('job\x20containers',J,o,'job:\x20\x27'+p+'\x27')[ep(0x101)](v=>{const eq=ep,s=v[eq(0x11a)]('\x20')[0x0];if(s===q)return undefined;return s;});}if(h!==undefined){const v=s=>I=>__awaiter(this,void 0x0,void 0x0,function*(){const eJ=ep;var Z,k;const L=yield this[eJ(0x8c)][eJ(0x11d)]['service'][eJ(0xc5)]({'parameters':{'projectId':s,'serviceId':h},'options':{'per_page':this[eJ(0x168)],'cursor':I}}),F=(Z=L['data'][eJ(0xc5)])!==null&&Z!==void 0x0?Z:[],W=F['map'](N=>N[eJ(0x158)]+eJ(0xca)+N[eJ(0x7d)]+')');if(Y)W===null||W===void 0x0?void 0x0:W['unshift'](q);return{'elements':W,'nextCursor':(k=L[eJ(0x80)])===null||k===void 0x0?void 0x0:k[eJ(0x152)]};});return this[ep(0x122)]('service\x20containers',v,o,ep(0x149)+p+'\x27')[ep(0x101)](s=>{const I=s['split']('\x20')[0x0];if(I===q)return undefined;return I;});}throw new Error(ep(0x93));}),this['askForAddon']=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const es=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const ev=a8o;var q;const J=yield this[ev(0x8c)]['list'][ev(0x125)]({'parameters':{'projectId':p},'options':{'per_page':this[ev(0x168)],'cursor':Y}});return{'elements':J[ev(0x6c)]['addons']['map'](v=>v['id']),'nextCursor':(q=J[ev(0x80)])===null||q===void 0x0?void 0x0:q['cursor']};});return this[es(0x122)](es(0x119),h,o);}),this[u(0xf2)]=(o,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eZ=u,p=Y=>q=>__awaiter(this,void 0x0,void 0x0,function*(){const eI=a8o;var J;const v=yield this[eI(0x8c)]['get'][eI(0x119)][eI(0xd0)]({'parameters':{'projectId':Y,'addonId':h},'options':{'per_page':this[eI(0x168)],'cursor':q}});return{'elements':v[eI(0x6c)]['backups']['map'](s=>s['id']+'\x20(completedAt:\x20'+(s[eI(0x89)]||'not\x20completed')+')'),'nextCursor':(J=v['pagination'])===null||J===void 0x0?void 0x0:J[eI(0x152)]};});return this[eZ(0x122)](eZ(0xd0),p,o,eZ(0x173)+h+'\x27')[eZ(0x101)](Y=>Y[eZ(0x11a)]('\x20')[0x0]);}),this[u(0x10a)]=(o,h,p)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eL=u,Y=q=>J=>__awaiter(this,void 0x0,void 0x0,function*(){const ek=a8o;var v;const s=yield this['apiClient']['get']['addon'][ek(0x142)][ek(0x97)]({'parameters':{'projectId':q,'addonId':h,'backupId':p},'options':{'per_page':this[ek(0x168)],'cursor':J}});return{'elements':s['data']['restores'][ek(0x9c)](I=>I['id']+'\x20(completedAt:\x20'+(I['completedAt']||ek(0xb7))+')'),'nextCursor':(v=s[ek(0x80)])===null||v===void 0x0?void 0x0:v['cursor']};});return this[eL(0x122)](eL(0x91),Y,o,eL(0x173)+h+'\x27')[eL(0x101)](q=>q[eL(0x11a)]('\x20')[0x0]);}),this[u(0x111)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eW=u,h=p=>__awaiter(this,void 0x0,void 0x0,function*(){const eF=a8o;return(yield this[eF(0x8c)][eF(0xf8)][eF(0x70)]({'parameters':{'projectId':p}}))[eF(0x6c)][eF(0x9c)](Y=>Y['id']);});return this[eW(0xe6)](eW(0x9f),h,o);}),this[u(0x10f)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eg=u,h=p=>Y=>__awaiter(this,void 0x0,void 0x0,function*(){const eN=a8o;var q;const J=yield this[eN(0x8c)][eN(0xf8)][eN(0x88)]({'parameters':{'projectId':p},'options':{'per_page':this[eN(0x168)],'cursor':Y}});return{'elements':J[eN(0x6c)][eN(0x88)]['map'](v=>v['id']),'nextCursor':(q=J[eN(0x80)])===null||q===void 0x0?void 0x0:q[eN(0x152)]};});return this[eg(0x122)](eg(0xf5),h,o);}),this[u(0xf1)]=o=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const ew=u,h=yield this[ew(0x8c)]['get']['domain']({'parameters':{'domain':o}}),p=h['data'][ew(0x6e)][ew(0x9c)](q=>q[ew(0x158)]+'\x20(full\x20domain:\x20'+q[ew(0xaf)]+')'),Y=ew(0x11b)+o+')';return this[ew(0xcf)]('subdomain',p,Y)[ew(0x101)](q=>q[ew(0x11a)]('\x20')[0x0]);}),this[u(0x105)]=(o,h)=>()=>__awaiter(this,void 0x0,void 0x0,function*(){const eC=u,p=yield this[eC(0x8c)][eC(0xf8)][eC(0x114)][eC(0x16f)]({'parameters':{'domain':o,'subdomain':h}}),Y=p[eC(0x6c)][eC(0x14d)][eC(0x9c)](J=>''+J['uri']),q='domain\x20('+o+'),\x20subdomain\x20('+h+')';return this[eC(0xcf)](eC(0x68),Y,q);}),this['deleteWarningPrompt']=o=>__awaiter(this,void 0x0,void 0x0,function*(){const ex=u;return(yield inquirer[ex(0x135)]([{'type':'confirm','name':'confirmation','message':chalk_1['default'][ex(0x85)](ex(0x124)+(o||'a\x20Northflank\x20resource')+'.\x20This\x20is\x20irreversible.\x20Please\x20confirm!'),'default':![]}]))[ex(0xb4)];}),this[u(0xc8)]=(o,h)=>__awaiter(this,void 0x0,void 0x0,function*(){const el=u;_[el(0xa0)](o['name'])&&(h[el(0x167)]<=0x0?_[el(0x159)](o,el(0x158),el(0x120)):yield(0x0,utils_1[el(0x15b)])(0xa)(()=>__awaiter(this,void 0x0,void 0x0,function*(){const eb=el,{name:p}=yield inquirer['prompt']([{'type':'input','name':eb(0x158),'message':eb(0x83),'default':eb(0x115)}]);if(!o[eb(0xc1)]&&h[eb(0x12f)](Y=>Y[eb(0x158)]===p)){const {c:Y}=yield inquirer['prompt']([{'type':'confirm','name':'c','message':eb(0x112)+p+'\x27\x20already\x20exists.\x20Do\x20you\x20want\x20to\x20override\x20this\x20context\x20(y)\x20or\x20enter\x20a\x20new\x20name\x20(N)?','default':![]}]);if(Y===![])throw new Error('Context\x20name\x20already\x20exists.');_[eb(0x159)](o,'override',!![]);}_[eb(0x159)](o,eb(0x158),p);})));if(_[el(0xa0)](o[el(0x15a)])){const p=yield this['tokenPrompt']();_[el(0x159)](o,el(0x15a),p);}return o;}),this['tokenPrompt']=()=>__awaiter(this,void 0x0,void 0x0,function*(){const ea=u,{token:o}=yield inquirer['prompt']([{'type':'password','name':ea(0x15a),'mask':'*','message':ea(0xfd)}]);return o;}),inquirer[u(0x140)]('search-list',inquirerSearchList),inquirer[u(0x140)](u(0x7b),inquirer_pagination_prompt_1[u(0xbc)]);}[a8w(0x13f)](e,o){return __awaiter(this,void 0x0,void 0x0,function*(){const ez=a8o,h=yaml['safeDump'](e),p=_[ez(0xa3)](h[ez(0x11a)]('\x0a')[ez(0x9c)](J=>J['length'])),Y=chalk_1['default'][ez(0x147)]('-'[ez(0x11c)](p)+'\x0a'),{confirm:q}=yield inquirer[ez(0x135)]([{'type':'list','name':'confirm','message':''+chalk_1['default'][ez(0xf0)][ez(0x132)](ez(0x98))+Y+chalk_1[ez(0x120)][ez(0xed)](h)+Y,'choices':Object[ez(0x11f)](ConfirmChoices)}]);switch(q){case ConfirmChoices[ez(0x90)]:return e;case ConfirmChoices['ABORT']:throw new Error(ez(0x16c));case ConfirmChoices[ez(0xa5)]:return this['retrievePayloadViaInteractiveCli'](o);case ConfirmChoices[ez(0x116)]:return this['confirmationPrompt'](yield this[ez(0x12e)](e),o);case ConfirmChoices[ez(0xe3)]:yield this[ez(0x9b)](e);return this[ez(0x13f)](e,o);default:throw new Error(ez(0xfb));}});}['retrievePayloadViaInteractiveCli'](e,o){return __awaiter(this,void 0x0,void 0x0,function*(){const eH=a8o;if((o===null||o===void 0x0?void 0x0:o[eH(0x156)])!==undefined)this[eH(0x156)]=o===null||o===void 0x0?void 0x0:o['resultCache'];this[eH(0x165)]=o===null||o===void 0x0?void 0x0:o[eH(0x146)],this['skipValidation']=o===null||o===void 0x0?void 0x0:o[eH(0xec)];const h={};return yield this['propToType']([],e[eH(0x162)][eH(0xee)],h),this[eH(0x156)]=h,yield this[eH(0x13f)](h,e);});}[a8w(0xbf)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const eP=a8o;let Y;if(o['oneOf']&&!_[eP(0x92)](o,'properties')){if(o['oneOf'][eP(0x167)]>0x1){const {choice:q}=yield inquirer['prompt']([{'type':eP(0xf8),'name':eP(0xa9),'message':'What\x27s\x20the\x20'+(e[e['length']-0x1]||'')+eP(0x86),'choices':o[eP(0xbe)][eP(0x9c)](J=>{const eV=eP;var v;return(v=J[eV(0x14e)])!==null&&v!==void 0x0?v:'??';})}]);Y=yield this[eP(0x8b)](e,o[eP(0xbe)][eP(0x12f)](J=>J[eP(0x14e)]===q),h,p);}else{const J=o['oneOf'][0x0];_[eP(0x159)](J,eP(0x14e),o[eP(0x14e)]),Y=yield this[eP(0x8b)](e,J,h,p);}Y={};}else{if(o[eP(0x131)]&&!_[eP(0x92)](o,eP(0xba))){if(o[eP(0x131)][eP(0x167)]>0x1){const {choice:v}=yield inquirer[eP(0x135)]([{'type':eP(0xf8),'name':eP(0xa9),'message':eP(0x110)+(e[e[eP(0x167)]-0x1]||'')+eP(0x86),'choices':[...o[eP(0x131)][eP(0x9c)](s=>{const eu=eP;var I;return(I=s[eu(0x14e)])!==null&&I!==void 0x0?I:'??';}),eP(0x94)]}]);v!=='don\x27t\x20change'&&(Y=yield this[eP(0x8b)](e,o['anyOf'][eP(0x12f)](s=>s[eP(0x14e)]===v),h,p));}else{const s=o[eP(0x131)][0x0];_[eP(0x159)](s,eP(0x14e),o[eP(0x14e)]),Y=yield this[eP(0x8b)](e,s,h,p);}Y={};}else Y=yield this[eP(0x8b)](e,o,h,p);}return Y;});}[a8w(0x99)](e,o,h,p){var Y;return __awaiter(this,void 0x0,void 0x0,function*(){const ec=a8o;if(p===![]){const {addEntry:v}=yield inquirer[ec(0x135)]([{'type':ec(0x144),'name':ec(0xd5),'message':this[ec(0xc3)](o,ec(0xd3),e===null||e===void 0x0?void 0x0:e[ec(0x14e)]),'default':![]}]);if(!v)return h;}const q=Object[ec(0xa4)]((Y=e===null||e===void 0x0?void 0x0:e[ec(0xba)])!==null&&Y!==void 0x0?Y:[]),J=e['required']||[];if(q[ec(0x167)]>0x0)for(const s of q){const I=o[ec(0x73)](s);if(o['length']>0x0&&!_[ec(0x92)](h,o[ec(0xde)]('.')))_[ec(0x159)](h,o[ec(0xde)]('.'),{});yield this[ec(0xbf)](I,e['properties'][s],h,J[ec(0xe0)](s));}else yield this[ec(0x8b)](o,Object[ec(0x10e)](Object[ec(0x10e)]({},e),{'type':ec(0x14f)}),h,p);return h;});}[a8w(0xb2)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const en=a8o;if(o&&h)return!![];const Y=o?en(0xd3):en(0x6f),{addEntry:q}=yield inquirer['prompt']([{'type':'confirm','name':en(0xd5),'message':this[en(0xc3)](e,Y,o?p:undefined),'default':![]}]);return q;});}[a8w(0x8b)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const ed=a8o;let Y;const q=e[ed(0xde)]('.');switch(o===null||o===void 0x0?void 0x0:o['type']){case ed(0x141):{let J=!![];while(yield this['askArrayEntry'](e,J,p,o===null||o===void 0x0?void 0x0:o['description'])){const v=_[ed(0x11d)](h,q);_[ed(0x151)](h,q),yield this[ed(0x8b)](e,o[ed(0xc7)],h);const s=_['get'](h,q);!_[ed(0xe5)](v)?_[ed(0x159)](h,q,[s]):(v[ed(0xda)](s),_[ed(0x159)](h,q,v)),J=![];}return Y||[];}case ed(0x164):{return Y=yield this[ed(0x99)](o,e,h,p),Y;}case ed(0x14f):Y=(0x0,utils_1[ed(0x10b)])(yield this[ed(0xdf)](e,o,p))||undefined;break;case'string':case ed(0xe7):case ed(0x109):default:Y=yield this[ed(0xdf)](e,o,p,h);break;}return!_[ed(0xa0)](Y)&&_[ed(0x159)](h,q,Y),Y;});}[a8w(0xdf)](e,o,h,p){var Y;return __awaiter(this,void 0x0,void 0x0,function*(){const ej=a8o,q=e[e[ej(0x167)]-0x1],{defaultValue:defaultValue=(Y=o===null||o===void 0x0?void 0x0:o['example'])!==null&&Y!==void 0x0?Y:o===null||o===void 0x0?void 0x0:o[ej(0x120)],choices:choices=o===null||o===void 0x0?void 0x0:o[ej(0xd7)],pagination:J}=yield(0x0,api_helpers_1[ej(0x160)])(q,this[ej(0x8c)],this[ej(0x165)],p,this['pathVars'],e);let v='input';if(!_[ej(0xa0)](choices)&&choices[ej(0x167)]>0x0){if(J!==undefined&&J['nextPageCursor']!==undefined)v=ej(0x7b);else choices[ej(0x167)]>0x4&&typeof choices[0x0]===ej(0x79)?v=ej(0x10c):v=ej(0xf8);}else{if((o===null||o===void 0x0?void 0x0:o[ej(0xb5)])==='boolean')v=ej(0x144);else{if((o===null||o===void 0x0?void 0x0:o[ej(0xb5)])===ej(0x109))v=ej(0x9e);else(o===null||o===void 0x0?void 0x0:o[ej(0xb5)])===ej(0x14f)&&(v=ej(0xaa));}}let s=h!==![]?!_[ej(0x8e)](defaultValue)?defaultValue:JSON[ej(0x67)](defaultValue):_[ej(0xd4)](defaultValue)?defaultValue:ej(0x94);if(choices)s=s[ej(0x136)]();_[ej(0x92)](this[ej(0x156)],e[ej(0xde)]('.'))&&(s=this[ej(0x156)][e[ej(0xde)]('.')]);const I=choices&&h===![]?[ej(0x94),...choices]:choices,Z=(o===null||o===void 0x0?void 0x0:o[ej(0xb5)])===ej(0x109),k=Object[ej(0x10e)]({'type':v,'name':'id','message':this['getQuestionString'](e,o),'choices':I,'default':s,'filter':this[ej(0x12c)](v,h),'validate':this['validate'](o,h,Z)},J),L=(yield inquirer['prompt']([k]))['id'];if(L==='don\x27t\x20change'||L==='')return undefined;if(Z)return parseInt(L,0xa);return L;});}['getQuestionString'](e,o){const eQ=a8w,h=(o===null||o===void 0x0?void 0x0:o[eQ(0xb5)])!=='boolean'?eQ(0xdd):'Should\x20it\x20be';return this[eQ(0xc3)](e,h,o===null||o===void 0x0?void 0x0:o['description']);}['askForProject'](){return __awaiter(this,void 0x0,void 0x0,function*(){const e=o=>__awaiter(this,void 0x0,void 0x0,function*(){const eD=a8o;var h;const p=yield this['apiClient'][eD(0xf8)][eD(0xa2)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':o}}),Y=p[eD(0x6c)][eD(0xa2)][eD(0x9c)](q=>q['id']);return{'elements':Y,'nextCursor':(h=p['pagination'])===null||h===void 0x0?void 0x0:h[eD(0x152)]};});return yield this['askForResourcePaginated']('project',e);});}['askForProjectScopedResource'](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const ef=a8o,Y=h||this[ef(0x8c)][ef(0x127)][ef(0xfe)]();if(_[ef(0xa0)](Y))throw new Error(ef(0x78));const q=yield o(Y);return yield this[ef(0xcf)](e,q,(p?p+ef(0x13d):'')+ef(0xc2)+Y+'\x27');});}[a8w(0x122)](e,o,h,p){return __awaiter(this,void 0x0,void 0x0,function*(){const ei=a8o,Y=h||this['apiClient'][ei(0x127)][ei(0xfe)]();if(_[ei(0xa0)](Y))throw new Error('Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.');const q=yield o(Y);return yield this[ei(0x14c)](e,q,(p?p+ei(0x13d):'')+ei(0xc2)+Y+'\x27');});}['askForDomain'](){return __awaiter(this,void 0x0,void 0x0,function*(){const et=a8o,e=o=>__awaiter(this,void 0x0,void 0x0,function*(){const eR=a8o;var h;const p=yield this[eR(0x8c)]['list'][eR(0xfc)]({'options':{'per_page':this[eR(0x168)],'cursor':o}});return{'elements':p[eR(0x6c)][eR(0xfc)]['map'](Y=>Y['name']),'nextCursor':(h=p[eR(0x80)])===null||h===void 0x0?void 0x0:h['cursor']};});return this[et(0x14c)](et(0xc6),e);});}[a8w(0x6d)](){return __awaiter(this,void 0x0,void 0x0,function*(){const e=o=>__awaiter(this,void 0x0,void 0x0,function*(){const eG=a8o;var h;const p=yield this[eG(0x8c)][eG(0xf8)][eG(0xf7)]({'options':{'per_page':this['defaultPaginationPageSize'],'cursor':o}});return{'elements':p[eG(0x6c)][eG(0xbd)]['map'](Y=>Y['id']),'nextCursor':(h=p[eG(0x80)])===null||h===void 0x0?void 0x0:h[eG(0x152)]};});return this['askForResourcePaginated']('credentials',e);});}[a8w(0x7f)](e){this['pathVars']=e;}}function a8e(){const ey=['configurable','properties','next','DynamicReloadPaginationPrompt','credentials','oneOf','propToType','prototype','override','project:\x20\x27','getPathString','must\x20be\x20a\x20number,\x20is\x20','containers','domain','items','loginPrompt','reset','\x20(startedAt:\x20','isEmpty','./utils','call','askForTemplateRun','askForResource','backups','askForContainer','lodash','Do\x20you\x20want\x20to\x20add','isBoolean','addEntry','askConfirm','enum','pattern','safeDump','push','clusters','4682214qVjMRk','What\x20do\x20you\x20want\x20to\x20use\x20as','join','ask','includes','startedAt','\x20characters,\x20is\x20','SAVE','throw','isArray','askForProjectScopedResource','boolean','getOwnPropertyDescriptor','askForPipeline','No,\x20edit','template','skipValidation','blueBright','body','writable','bold','askForSubdomain','askForAddonBackup','__esModule','askForJob','secret','writeFileSync','registryCredentials','list','1646814XRTgGQ','warning','Something\x20unexpected\x20happened.','domains','Choose\x20the\x20login\x20token:','getCurrentProjectName','elements','blue','then','done','success','whiteBright','askForSubdomainPath','trim','Template\x20id\x20not\x20provided.','job:\x20\x27','integer','askForAddonRestore','isValidJSON','search-list','template\x20run','assign','askForSecret','What\x27s\x20the\x20','askForVolume','Context\x20with\x20name\x20\x27','templateRuns','subdomain','main-context','EDIT','underline','Provide\x20a\x20file\x20path\x20to\x20write\x20the\x20configuration\x20to\x20(<name>.[json|yaml|yml])','addon','split','domain\x20(','repeat','get','maxLength','values','default','all-job-runs','askForProjectScopedResourcePaginated','tags','WARNING:\x20You\x20are\x20about\x20to\x20delete\x20','addons','validate','contextProvider','must\x20be\x20shorter\x20than\x20or\x20equal\x20to\x20','3738zHlWjF','20DWPVJT','must\x20be\x20smaller\x20than\x20or\x20equal\x20to\x20','filter','all-containers','editPayload','find','js-yaml','anyOf','green','service','.*\x5c.(json|yaml|yml)$','prompt','toString','Enter\x20the\x20','hasOwnProperty','must\x20be\x20bigger\x20than\x20or\x20equal\x20to\x20','minLength','askForBuild','452156FTBbai','\x20in\x20','__awaiter','confirmationPrompt','registerPrompt','array','backup','askForJobRun','confirm','json','cmdPath','grey','No,\x20abort','service:\x20\x27','bgGrey','__importDefault','askForResourcePaginated','paths','description','rawObject','Go\x20to\x20editor','unset','cursor','\x20to\x20use:','for\x20this\x20','minimum','resultCache','pipeline','name','set','token','retry','maximum','./api-helpers','Unexpected\x20file\x20type:\x20','example','fetchResourceList','5622dRMAdV','opt','askForTag','object','tmpCmdPath','must\x20be\x20a\x20valid\x20non-empty\x20json\x20string','length','defaultPaginationPageSize','templates','value','4ZokBwi','Aborted.','Configuration\x20file\x20written\x20to\x20','ABORT','path','askForClusterId','tag','runs','addon:\x20\x27','inquirer-search-list','1887264yVnDdW','service\x20build','stringify','subdomainPath','__importStar','\x20Example:\x20','askGeneric','data','askForCredentials','subdomains','Do\x20you\x20want\x20to\x20add\x20more','volumes','test','\x20characters','concat','log\x20sink','services','this\x20option\x20is\x20required,\x20please\x20answer','defineProperty','Default\x20project\x20in\x20context\x20not\x20set\x20and\x20no\x20argument\x20provided.','string','logSinks','pagination-prompt','job','createdAt','apply','setPathVars','pagination','inquirer','InquirerHelper','Choose\x20the\x20name\x20of\x20the\x20new\x20local\x20context:','No\x20','yellowBright','\x20type?',',\x20supported\x20types:\x20[json|yaml|yml]','secrets','completedAt','job\x20runs','getType','apiClient','__createBinding','isObject','Writing\x20configuration\x20failed:\x20','YES','restore','has','No\x20containers\x20found','don\x27t\x20change','pipelines','cluster\x20id','restores','Please\x20confirm\x20following\x20configuration:\x0a','getInnerType','builds','saveFile','map','1315652vckuFK','input','volume','isUndefined','jobs','projects','max','keys','REPEAT','yaml','unshift','editedResult','choice','editor','fileName','723035UPRUZt','toUpperCase','to\x20use:','fullName','\x20and\x20it\x20','isNaN','askArrayEntry','create','confirmation','type','Choose\x20the\x20','not\x20completed','cloud'];a8e=function(){return ey;};return a8e();}exports[a8w(0x82)]=InquirerHelper;
@@ -1 +1 @@
1
- 'use strict';const a9L=a9J;function a9Z(){const f=['create','message','EventEmitter','catch','397966gMYyrr','error','emit','Unexpected\x20response,\x20api\x20token\x20missing','login-failure','done','8xPqgCM','default','stringify','Failure\x20during\x20login:\x20','hasOwnProperty','call','aborted','4914041EAicGq','18042hchWNy','3822133QhXjDo','defineProperty','startLogin','4042130QnpcLL','next','baseUrl','login-success','toString','NorthflankApiBrowserLogin','data','SIGINT','init','handleError','value','13xXwWeL','3CuGWIk','configurable','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','initPackage','Login\x20process\x20stopped\x20before\x20completed','removeListener','Unexpected\x20response','success','type','12354060jJirwZ','status','__createBinding','replace','finally','801484GQMIjR','getOwnPropertyDescriptor','ws:','3AvtPik','end','570BhUIqS','then','write','9RZBmFz','__esModule','parse','writable','https:','open','duplex','init-ack','/v1/cli-login','wss:','__importStar','error\x20happened\x20during\x20browser\x20login:\x20'];a9Z=function(){return f;};return a9Z();}(function(Z,J){const m=a9J,z=Z();while(!![]){try{const P=parseInt(m(0x165))/0x1*(-parseInt(m(0x147))/0x2)+-parseInt(m(0x132))/0x3*(-parseInt(m(0x12f))/0x4)+parseInt(m(0x134))/0x5*(parseInt(m(0x155))/0x6)+-parseInt(m(0x156))/0x7*(-parseInt(m(0x14d))/0x8)+parseInt(m(0x137))/0x9*(parseInt(m(0x159))/0xa)+parseInt(m(0x154))/0xb+parseInt(m(0x12a))/0xc*(-parseInt(m(0x164))/0xd);if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a9Z,0x4c94e));var __createBinding=this&&this[a9L(0x12c)]||(Object[a9L(0x143)]?function(Z,J,z,P){const M=a9L;if(P===undefined)P=z;var B=Object[M(0x130)](J,z);(!B||('get'in B?!J[M(0x138)]:B[M(0x13a)]||B[M(0x166)]))&&(B={'enumerable':!![],'get':function(){return J[z];}}),Object[M(0x157)](Z,P,B);}:function(Z,J,z,P){if(P===undefined)P=z;Z[P]=J[z];}),__setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(Z,J){Object['defineProperty'](Z,'default',{'enumerable':!![],'value':J});}:function(Z,J){Z['default']=J;}),__importStar=this&&this[a9L(0x141)]||function(Z){const x=a9L;if(Z&&Z['__esModule'])return Z;var J={};if(Z!=null){for(var z in Z)if(z!==x(0x14e)&&Object['prototype'][x(0x151)][x(0x152)](Z,z))__createBinding(J,Z,z);}return __setModuleDefault(J,Z),J;},__awaiter=this&&this['__awaiter']||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){function n(v){const d=a9J;try{C(B[d(0x15a)](v));}catch(o){A(o);}}function F(v){try{C(B['throw'](v));}catch(o){A(o);}}function C(v){const k=a9J;v[k(0x14c)]?s(v[k(0x163)]):U(v[k(0x163)])[k(0x135)](n,F);}C((B=B['apply'](Z,J||[]))['next']());});},__importDefault=this&&this['__importDefault']||function(Z){const N=a9L;return Z&&Z[N(0x138)]?Z:{'default':Z};};Object['defineProperty'](exports,a9L(0x138),{'value':!![]}),exports[a9L(0x15e)]=void 0x0;function a9J(Z,J){const z=a9Z();return a9J=function(P,B){P=P-0x123;let U=z[P];return U;},a9J(Z,J);}const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9L(0x13c))),events_1=require('events');class NorthflankApiBrowserLogin extends events_1[a9L(0x145)]{constructor(Z,J=!![]){const W=a9L;super(),this[W(0x15b)]=Z,this['openBrowser']=J,this[W(0x12b)]='idle',this[W(0x124)]=()=>JSON[W(0x14f)]({'type':'init'});}[a9L(0x158)](){const X=a9L;var Z;const J=this['baseUrl'][X(0x12d)](X(0x13b),X(0x140))[X(0x12d)]('http:',X(0x131)),z=J+X(0x13f),P=new ws_1[(X(0x14e))](z),B=()=>__awaiter(this,void 0x0,void 0x0,function*(){yield new Promise(s=>{const D=a9J;var A;(A=this['duplex'])===null||A===void 0x0?void 0x0:A[D(0x133)](JSON['stringify']({'type':D(0x153)}),()=>s());}),process['exit']();}),U=new Promise((s,A)=>{const q=X;var n,F,C;try{this[q(0x13d)]=(0x0,ws_1['createWebSocketStream'])(P),process['on'](q(0x160),B);}catch(v){A(new Error(q(0x123)+v[q(0x144)]));}(n=this[q(0x13d)])===null||n===void 0x0?void 0x0:n['on'](q(0x15f),o=>{const y=q;var j;const V=JSON[y(0x139)](o[y(0x15d)]());switch(V===null||V===void 0x0?void 0x0:V[y(0x129)]){case y(0x13e):{const {loginPage:i}=V;if(i===undefined){this['handleError'](y(0x127),A);return;}this['openBrowser']&&(0x0,open_1[y(0x14e)])(i)[y(0x146)](p=>{const O=y,S='Unable\x20to\x20open\x20browser:\x20'+p['message'];this[O(0x162)](S,A);});this[y(0x149)]('browser-opened',{'url':i});break;}case y(0x15c):{const {apiToken:p,contextName:S}=V;if(p===undefined){this[y(0x162)](y(0x14a),A);return;}(j=this[y(0x13d)])===null||j===void 0x0?void 0x0:j[y(0x133)](),s({'token':p,'contextName':S}),this[y(0x12b)]='success';break;}case y(0x14b):{const g=y(0x150)+(V===null||V===void 0x0?void 0x0:V[y(0x144)]);this[y(0x162)](g,A);break;}default:{const I='unable\x20to\x20parse\x20message:\x20'+JSON[y(0x14f)](V);this['handleError'](I,A);}}}),(F=this[q(0x13d)])===null||F===void 0x0?void 0x0:F['on'](q(0x148),o=>{const G=q;this[G(0x162)](G(0x142)+o[G(0x144)],A);}),(C=this[q(0x13d)])===null||C===void 0x0?void 0x0:C['on'](q(0x133),()=>{const K=q;if(this['status']===K(0x128)){}else this[K(0x162)](K(0x125),A);});});return(Z=this['duplex'])===null||Z===void 0x0?void 0x0:Z[X(0x136)](this[X(0x124)]()),this[X(0x12b)]=X(0x161),U[X(0x12e)](()=>{const l=X;process[l(0x126)](l(0x160),B);});}[a9L(0x162)](Z,J){const b=a9L;var z,P;J?(z=this['duplex'])===null||z===void 0x0?void 0x0:z[b(0x133)](()=>J(new Error(Z))):(P=this['duplex'])===null||P===void 0x0?void 0x0:P[b(0x133)](),this['status']='error';}}exports[a9L(0x15e)]=NorthflankApiBrowserLogin;
1
+ 'use strict';const a9b=a9o;(function(e,o){const l=a9o,h=e();while(!![]){try{const p=parseInt(l(0x176))/0x1*(-parseInt(l(0x149))/0x2)+-parseInt(l(0x180))/0x3*(parseInt(l(0x174))/0x4)+parseInt(l(0x15e))/0x5+parseInt(l(0x16b))/0x6*(parseInt(l(0x15b))/0x7)+parseInt(l(0x182))/0x8+parseInt(l(0x147))/0x9+-parseInt(l(0x17f))/0xa*(parseInt(l(0x168))/0xb);if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a9e,0x35a2f));var __createBinding=this&&this[a9b(0x152)]||(Object['create']?function(e,h,p,Y){const a=a9b;if(Y===undefined)Y=p;var q=Object[a(0x160)](h,p);(!q||(a(0x153)in q?!h[a(0x179)]:q[a(0x145)]||q[a(0x183)]))&&(q={'enumerable':!![],'get':function(){return h[p];}}),Object[a(0x170)](e,Y,q);}:function(e,h,p,Y){if(Y===undefined)Y=p;e[Y]=h[p];}),__setModuleDefault=this&&this[a9b(0x167)]||(Object['create']?function(e,h){const z=a9b;Object['defineProperty'](e,z(0x17b),{'enumerable':!![],'value':h});}:function(e,h){const H=a9b;e[H(0x17b)]=h;}),__importStar=this&&this[a9b(0x16d)]||function(e){const P=a9b;if(e&&e['__esModule'])return e;var o={};if(e!=null){for(var h in e)if(h!==P(0x17b)&&Object[P(0x148)][P(0x158)][P(0x16e)](e,h))__createBinding(o,e,h);}return __setModuleDefault(o,e),o;},__awaiter=this&&this['__awaiter']||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){function v(Z){const V=a9o;try{I(p[V(0x169)](Z));}catch(k){J(k);}}function s(Z){const u=a9o;try{I(p[u(0x17d)](Z));}catch(k){J(k);}}function I(Z){const c=a9o;Z['done']?q(Z['value']):Y(Z[c(0x157)])[c(0x151)](v,s);}I((p=p['apply'](e,o||[]))['next']());});},__importDefault=this&&this[a9b(0x184)]||function(e){const n=a9b;return e&&e[n(0x179)]?e:{'default':e};};Object[a9b(0x170)](exports,a9b(0x179),{'value':!![]}),exports[a9b(0x156)]=void 0x0;function a9e(){const X=['5753XzNDsd','next','write','6WVYgrf','startLogin','__importStar','call','Failed\x20to\x20establish\x20connection\x20to\x20command\x20execution\x20proxy:\x20','defineProperty','handleError','createWebSocketStream','SIGINT','52CgKDum','error','2lFbekY','browser-opened','wss:','__esModule','Login\x20process\x20stopped\x20before\x20completed','default','login-failure','throw','init-ack','290KVxyaX','43671HxTBzr','parse','1430776aWXbgr','configurable','__importDefault','replace','openBrowser','writable','duplex','1222506jkfbIS','prototype','105074TjvXPv','removeListener','Unable\x20to\x20open\x20browser:\x20','Failure\x20during\x20login:\x20','init','data','ws:','status','then','__createBinding','get','idle','exit','NorthflankApiBrowserLogin','value','hasOwnProperty','message','type','1472527YjJisZ','stringify','initPackage','20675JrkUsj','success','getOwnPropertyDescriptor','http:','error\x20happened\x20during\x20browser\x20login:\x20','open','end','baseUrl','Unexpected\x20response,\x20api\x20token\x20missing','__setModuleDefault'];a9e=function(){return X;};return a9e();}function a9o(e,o){const h=a9e();return a9o=function(p,Y){p=p-0x145;let q=h[p];return q;},a9o(e,o);}const ws_1=__importStar(require('ws')),open_1=__importDefault(require(a9b(0x163))),events_1=require('events');class NorthflankApiBrowserLogin extends events_1['EventEmitter']{constructor(e,o=!![]){const d=a9b;super(),this[d(0x165)]=e,this[d(0x186)]=o,this[d(0x150)]=d(0x154),this[d(0x15d)]=()=>JSON[d(0x15c)]({'type':d(0x14d)});}[a9b(0x16c)](){const j=a9b;var e;const o=this[j(0x165)]['replace']('https:',j(0x178))[j(0x185)](j(0x161),j(0x14f)),h=o+'/v1/cli-login',p=new ws_1[(j(0x17b))](h),Y=()=>__awaiter(this,void 0x0,void 0x0,function*(){const D=j;yield new Promise(J=>{const Q=a9o;var v;(v=this[Q(0x146)])===null||v===void 0x0?void 0x0:v['end'](JSON[Q(0x15c)]({'type':'aborted'}),()=>J());}),process[D(0x155)]();}),q=new Promise((J,v)=>{const f=j;var s,I,Z;try{this[f(0x146)]=(0x0,ws_1[f(0x172)])(p),process['on'](f(0x173),Y);}catch(k){v(new Error(f(0x16f)+k[f(0x159)]));}(s=this['duplex'])===null||s===void 0x0?void 0x0:s['on'](f(0x14e),L=>{const i=f;var F;const W=JSON[i(0x181)](L['toString']());switch(W===null||W===void 0x0?void 0x0:W[i(0x15a)]){case i(0x17e):{const {loginPage:N}=W;if(N===undefined){this[i(0x171)]('Unexpected\x20response',v);return;}this['openBrowser']&&(0x0,open_1[i(0x17b)])(N)['catch'](g=>{const R=i,w=R(0x14b)+g['message'];this[R(0x171)](w,v);});this['emit'](i(0x177),{'url':N});break;}case'login-success':{const {apiToken:g,contextName:w}=W;if(g===undefined){this[i(0x171)](i(0x166),v);return;}(F=this[i(0x146)])===null||F===void 0x0?void 0x0:F[i(0x164)](),J({'token':g,'contextName':w}),this[i(0x150)]=i(0x15f);break;}case i(0x17c):{const C=i(0x14c)+(W===null||W===void 0x0?void 0x0:W[i(0x159)]);this[i(0x171)](C,v);break;}default:{const x='unable\x20to\x20parse\x20message:\x20'+JSON[i(0x15c)](W);this['handleError'](x,v);}}}),(I=this[f(0x146)])===null||I===void 0x0?void 0x0:I['on']('error',L=>{const t=f;this[t(0x171)](t(0x162)+L[t(0x159)],v);}),(Z=this[f(0x146)])===null||Z===void 0x0?void 0x0:Z['on'](f(0x164),()=>{const G=f;if(this['status']==='success'){}else this[G(0x171)](G(0x17a),v);});});return(e=this[j(0x146)])===null||e===void 0x0?void 0x0:e[j(0x16a)](this[j(0x15d)]()),this[j(0x150)]=j(0x14d),q['finally'](()=>{const y=j;process[y(0x14a)](y(0x173),Y);});}[a9b(0x171)](e,o){const S=a9b;var h,p;o?(h=this['duplex'])===null||h===void 0x0?void 0x0:h[S(0x164)](()=>o(new Error(e))):(p=this[S(0x146)])===null||p===void 0x0?void 0x0:p[S(0x164)](),this['status']=S(0x175);}}exports[a9b(0x156)]=NorthflankApiBrowserLogin;
@@ -1 +1 @@
1
- 'use strict';const a10H=a10J;(function(Z,J){const u=a10J,z=Z();while(!![]){try{const P=parseInt(u(0x13a))/0x1+parseInt(u(0xc4))/0x2*(parseInt(u(0x115))/0x3)+-parseInt(u(0xde))/0x4+parseInt(u(0x125))/0x5+-parseInt(u(0xb2))/0x6*(-parseInt(u(0xf4))/0x7)+parseInt(u(0xca))/0x8+-parseInt(u(0x107))/0x9;if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a10Z,0xbe5b6));function a10Z(){const Zs=['defaultDurationSeconds','throw','valueOf','runId','\x20for\x20container\x20','logs','containerId','__awaiter','askForAddonRestore','Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20','1081437JZDoIc','description','getCurrentJobName','logsApiClient','askForAddon','__importDefault','getCommand','json','--duration\x20[duration]','logRange','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','addonRestore','job','getStandardLogCommand','__esModule','--deployment\x20--deploymentId\x20[deploymentId]','--project\x20--projectId\x20[projectId]','Project\x20for\x20logs','alias','3574980Szxglu','logs-received','assign','Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.','Id\x20[','-t,\x20--types\x20<types...>','format','values','textIncludes','Deployment\x20id,\x20example:\x20my-service-54785f4','stringify','--run\x20--runId\x20[runId]','charAt','askForContainer','21zCgQRm','--noDefaults','askForBuild','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.','choices','message','addon',',\x20to:\x20','parseDateInput','name','--textNotIncludes\x20<text>','askForProject','done','restoreId','\x27Ctrl+C\x27','regexNotIncludes','1495565CkYlFV','service','--textIncludes\x20<text>','chalk','\x20of\x20','data','customUserAgent','printResponse','Backup\x20to\x20get\x20logs\x20from','./log-formatter','cursor','build-','next',',\x20from:\x20','printInitInfo','toISOString','>\x20Container\x20logs','Number\x20of\x20lines\x20to\x20return.','conflicts','warning','apply','405734OPRFbB',',\x20restore\x20id\x20','--endTime\x20<timestamp>','--build\x20--buildId\x20[buildId]','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','commander','option','Error\x20while\x20tailing\x20log\x20lines:\x20','forward','\x20with\x20live-tailing','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','serviceId','addonId','noDefaults','apiClient','../utils','tsHint','6PqbgQY','argParser','-d,\x20--direction\x20<order>','deploymentId','\x20--','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','log',',\x20backup\x20id\x20','askForAddonBackup','default','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','hasNextPage','details','askForService','close','logTail','slice','bold','96010bVaAyp','\x20in\x20project\x20','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','getCurrentServiceName','getSeconds','--startTime\x20<timestamp>','7791816nDctfA','../formatting/console-format-helpers','Option','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','error','textNotIncludes','addOption','regexIncludes','Get\x20log\x20for\x20the\x20specified\x20','CliLogs','action','yaml','getFormatter','\x20(exit\x20with\x20','\x20for\x20all\x20containers','Build\x20to\x20get\x20logs\x20from','setSeconds','addonBackup','inquirerHelper','-o,\x20--output\x20[output]','3969712BaVdIb','-f,\x20--tail','assertContextExisting','--container\x20--containerId\x20[containerId]','forEach','--regexIncludes\x20<regex>','backupId','-l,\x20--lineLimit\x20[limit]','ApiClient','Id]','value','../inquirer-helper'];a10Z=function(){return Zs;};return a10Z();}var __awaiter=this&&this[a10H(0xf1)]||function(Z,J,z,B){function U(s){return s instanceof z?s:new z(function(A){A(s);});}return new(z||(z=Promise))(function(s,A){const Z1=a10J;function n(v){const Y=a10J;try{C(B[Y(0x131)](v));}catch(o){A(o);}}function F(v){const E=a10J;try{C(B[E(0xeb)](v));}catch(o){A(o);}}function C(v){const Z0=a10J;v[Z0(0x121)]?s(v[Z0(0xe8)]):U(v['value'])['then'](n,F);}C((B=B[Z1(0x139)](Z,J||[]))[Z1(0x131)]());});},__importDefault=this&&this[a10H(0xf9)]||function(Z){const Z2=a10H;return Z&&Z[Z2(0x102)]?Z:{'default':Z};};function a10J(Z,J){const z=a10Z();return a10J=function(P,B){P=P-0xa8;let U=z[P];return U;},a10J(Z,J);}Object['defineProperty'](exports,a10H(0x102),{'value':!![]}),exports[a10H(0xd3)]=void 0x0;const js_client_1=require('@northflank/js-client'),chalk_1=__importDefault(require(a10H(0x128))),utils_1=require(a10H(0xb0)),inquirer_helper_1=require(a10H(0xe9)),commander_1=require(a10H(0x13f)),console_format_helpers_1=require(a10H(0xcb)),log_formatter_1=require(a10H(0x12e));class CliLogs{constructor(Z){const Z3=a10H;this['apiContext']=Z,this[Z3(0xea)]=0x708,this[Z3(0x101)]=(J,z,P,B)=>{const Z4=Z3,U=(0x0,utils_1[Z4(0xfa)])(!![])[Z4(0x11e)]((z?Z4(0x130):'')+'logs')[Z4(0x106)]((z?'build-':'')+Z4(0xb8))[Z4(0xf5)](Z4(0xd2)+J)[Z4(0x140)](Z4(0x104),Z4(0x105))[Z4(0x140)]('--'+J+Z4(0xb6)+J+Z4(0x10b)+J+Z4(0xe7),J[Z4(0x113)](0x0)['toUpperCase']()+J[Z4(0xc2)](0x1)+'\x20to\x20get\x20logs\x20from')[Z4(0x140)](Z4(0xe1),Z4(0xaa));if(z)U['option'](Z4(0x13d),Z4(0xd9));if(J==='job')U['option'](Z4(0x112),Z4(0xab));if(J===Z4(0x126))U[Z4(0x140)](Z4(0x103),Z4(0x110));if(P)U[Z4(0x140)]('--backup\x20--backupId\x20[backupId]',Z4(0x12d));if(B)U[Z4(0x140)]('--restore\x20--restoreId\x20[restoreId]','Restore\x20to\x20get\x20logs\x20from');return!z&&!P&&!B&&U[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0x10c),'Which\x20log\x20types\x20to\x20fetch')[Z4(0x119)](Object[Z4(0x10e)](js_client_1['LogType']))),U[Z4(0x140)](Z4(0xdf),Z4(0xb7))[Z4(0x140)](Z4(0xe5),Z4(0x136))[Z4(0x140)](Z4(0xc9),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[Z4(0xb1)],utils_1[Z4(0x11d)])[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0x13c),Z4(0xc6)+utils_1['tsHint'])[Z4(0xb3)](utils_1[Z4(0x11d)])[Z4(0x137)](['tail']))[Z4(0x140)](Z4(0xfc),'Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set')['addOption'](new commander_1['Option'](Z4(0xb4),'Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.')[Z4(0x119)](['backward',Z4(0xa8)])[Z4(0x137)](['tail']))['addOption'](new commander_1[(Z4(0xcc))](Z4(0x127),Z4(0xcd))[Z4(0x137)](['textNotIncludes',Z4(0xd1),'regexNotIncludes']))[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0x11f),Z4(0xbc))['conflicts']([Z4(0x10f),Z4(0xd1),'regexNotIncludes']))[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0xe3),Z4(0xfe))['conflicts']([Z4(0xcf),Z4(0x10f),Z4(0x124)]))['addOption'](new commander_1[(Z4(0xcc))]('--regexNotIncludes\x20<regex>','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression')[Z4(0x137)](['textNotIncludes',Z4(0xd1),'textIncludes']))[Z4(0x140)](Z4(0x116),Z4(0x10a),![])[Z4(0xd0)](new commander_1[(Z4(0xcc))](Z4(0xdd),Z4(0x118))[Z4(0x119)](Object['values']([Z4(0x10d),'json',Z4(0xd5)]))),U;},this[Z3(0x133)]=(J,z,P,B)=>{const Z5=Z3,{containerName:U,restoreId:s,backupId:A,quiet:n,tail:F,startTime:C,endTime:v,duration:o}=B;if(n===!![])return;const j=F?Z5(0xd7)+chalk_1['default']['bold'](Z5(0x123))+')':'',V=F?Z5(0xa9):'',i=new Date(),p=C!==null&&C!==void 0x0?C:new Date(new Date((v!==null&&v!==void 0x0?v:i)[Z5(0xec)]())['setSeconds']((v!==null&&v!==void 0x0?v:i)[Z5(0xc8)]()-(o!==null&&o!==void 0x0?o:this['defaultDurationSeconds']))),S=(v!==null&&v!==void 0x0?v:C!==undefined)?new Date(new Date(C[Z5(0xec)]())[Z5(0xda)](C[Z5(0xc8)]()+(o!==null&&o!==void 0x0?o:this[Z5(0xea)]))):i,e=A!==undefined,g=p&&!e?Z5(0x132)+chalk_1[Z5(0xbb)][Z5(0xc3)](p['toISOString']()):'',I=S&&!e?Z5(0x11c)+chalk_1[Z5(0xbb)][Z5(0xc3)](S[Z5(0x134)]()):'',m=o?',\x20duration:\x20'+o+'\x20seconds':'',L=U?Z5(0xee)+chalk_1[Z5(0xbb)][Z5(0xc3)](U):e?'':Z5(0xd8),M=A?Z5(0xb9)+A:'',x=s?Z5(0x13b)+s:'',d=J+'\x20'+chalk_1[Z5(0xbb)]['bold'](z)+M+x+Z5(0xc5)+chalk_1[Z5(0xbb)][Z5(0xc3)](P),k=''+g+I+m;console[Z5(0xb8)](Z5(0x135)+V+L+Z5(0x129)+d+k+j+':');},this['getFormatter']=(J,z)=>(P,B)=>{const Z6=Z3;if(!J){if(P['length']===0x0)console[Z6(0xb8)]('No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.');P[Z6(0xe2)](U=>(0x0,log_formatter_1['formatLogLine'])(U,z));}else(0x0,console_format_helpers_1[Z6(0x12c)])(J,P);(B===null||B===void 0x0?void 0x0:B[Z6(0xbd)])&&(0x0,utils_1[Z6(0x138)])(Z6(0xf3)+B[Z6(0x12f)]);},this[Z3(0xaf)]=new js_client_1[(Z3(0xe6))](Z,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1[Z3(0x12b)]}),this[Z3(0xf7)]=this[Z3(0xaf)],this[Z3(0xdc)]=new inquirer_helper_1['InquirerHelper'](this[Z3(0xaf)]);}['getLogsCommand'](Z,J=![],z=![],P=![]){const ZB=a10H,B=(v,o)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z7=a10J,j=o[Z7(0xae)],{apiContext:V,inquirerHelper:i}=this;switch(Z){case Z7(0x126):{const p=j?undefined:V[Z7(0xc7)]();return o[Z7(0xac)]||p||(yield i[Z7(0xbf)](v)());}case Z7(0x100):{const S=j?undefined:V[Z7(0xf6)]();return o['jobId']||S||(yield i['askForJob'](v)());}case Z7(0x11b):{return o[Z7(0xad)]||(yield i[Z7(0xf8)](v)());}}}),U=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z8=a10J;if(J)return j['buildId']||(yield this['inquirerHelper'][Z8(0x117)](v,Z==='service'?o:undefined,Z===Z8(0x100)?o:undefined,!![])());return undefined;}),s=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const Z9=a10J;if(z||P)return j[Z9(0xe4)]||(yield this[Z9(0xdc)][Z9(0xba)](v,o)());return undefined;}),A=(v,o,j,V)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZZ=a10J;if(P)return V[ZZ(0x122)]||(yield this[ZZ(0xdc)][ZZ(0xf2)](v,o,j)());return undefined;}),n=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZJ=a10J;if(!J&&j[ZJ(0xf0)]!==undefined){if(j[ZJ(0xf0)]!==!![])return j[ZJ(0xf0)];return yield this[ZJ(0xdc)][ZJ(0x114)](v,Z===ZJ(0x126)?o:undefined,Z===ZJ(0x100)?o:undefined,!![])();}return undefined;}),F=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const Zz=a10J;if(Z===Zz(0x100))return j[Zz(0xed)]||(yield this['inquirerHelper']['askForJobRun'](o,v,!![])());return undefined;}),C=(v,o,j)=>__awaiter(this,void 0x0,void 0x0,function*(){const ZP=a10J;if(Z===ZP(0x126)){if(j[ZP(0xb5)]!==!![])return j[ZP(0xb5)];return j[ZP(0xb5)];}return undefined;});return this[ZB(0x101)](Z,J,z,P)[ZB(0xd4)](v=>__awaiter(this,void 0x0,void 0x0,function*(){const ZU=ZB,{noDefaults:o,projectId:j,quiet:V,tail:i,types:p,textIncludes:S,textNotIncludes:e,regexIncludes:g,regexNotIncludes:I,direction:m,lineLimit:L,startTime:M,endTime:x,duration:d,output:k}=v;(0x0,utils_1[ZU(0xe0)])(this[ZU(0xaf)]);const {apiContext:N,inquirerHelper:W,logsApiClient:X}=this,D=o?undefined:N['getCurrentProjectName'](),q=j||D||(yield W[ZU(0x120)]()),y=yield B(q,v),O=yield U(q,y,v),G=yield s(q,y,v),K=yield A(q,y,G,v),l=yield F(q,y,v),b=yield C(q,y,v),f=yield n(q,y,v);if(M&&x&&d)throw new Error(ZU(0x13e));const r={'projectId':q,'entityId':y},w={'containerName':f,'types':p,'textIncludes':S,'textNotIncludes':e,'regexIncludes':g,'regexNotIncludes':I,'lineLimit':L,'startTime':M,'duration':d,'runId':l,'buildId':O,'backupId':G,'restoreId':K,'deploymentId':b,'isBuild':J!==null&&J!==void 0x0?J:![]},Q=P?ZU(0xff):z?ZU(0xdb):Z,T=Object[ZU(0x109)](Object[ZU(0x109)]({},w),{'endTime':x,'direction':m});if(!V&&k!==ZU(0xd5)&&k!=='yml'&&k!==ZU(0xfb))this[ZU(0x133)](Z,y,q,Object['assign'](Object[ZU(0x109)]({},T),v));const c=this[ZU(0xd6)](k,S!==null&&S!==void 0x0?S:g);if(i){const t=yield X['logs'][ZU(0xc1)](r,w,Q);t['on'](ZU(0x108),c),t['on'](ZU(0xce),R=>(0x0,utils_1[ZU(0xce)])(ZU(0x141)+R[ZU(0x11a)])),t['on'](ZU(0xc0),()=>console[ZU(0xb8)]('Log\x20session\x20ended')),yield t['start']();}else{const R=yield X[ZU(0xef)][ZU(0xfd)](r,T,Q);if(R[ZU(0xce)]){const h=R[ZU(0xce)][ZU(0xbe)],a=h?'\x0aDetails:\x20'+JSON[ZU(0x111)](h,null,'\x20'):'';(0x0,utils_1[ZU(0xce)])('Error\x20while\x20fetching\x20log\x20lines:\x20'+R['error'][ZU(0x11a)]+a);}else c(R[ZU(0x12a)],R['pagination']);}}));}}exports['CliLogs']=CliLogs;
1
+ 'use strict';const a10K=a10o;(function(e,o){const M=a10o,h=e();while(!![]){try{const p=-parseInt(M(0x232))/0x1*(-parseInt(M(0x1e7))/0x2)+parseInt(M(0x240))/0x3+-parseInt(M(0x21b))/0x4+parseInt(M(0x209))/0x5*(-parseInt(M(0x248))/0x6)+-parseInt(M(0x206))/0x7+parseInt(M(0x243))/0x8+parseInt(M(0x23c))/0x9;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a10e,0x6863b));var __awaiter=this&&this[a10K(0x237)]||function(e,o,h,p){function Y(q){return q instanceof h?q:new h(function(J){J(q);});}return new(h||(h=Promise))(function(q,J){const e0=a10o;function v(Z){const r=a10o;try{I(p[r(0x1f7)](Z));}catch(k){J(k);}}function s(Z){try{I(p['throw'](Z));}catch(k){J(k);}}function I(Z){const B=a10o;Z[B(0x212)]?q(Z['value']):Y(Z[B(0x234)])[B(0x1fc)](v,s);}I((p=p[e0(0x268)](e,o||[]))[e0(0x1f7)]());});},__importDefault=this&&this[a10K(0x20d)]||function(e){return e&&e['__esModule']?e:{'default':e};};function a10o(e,o){const h=a10e();return a10o=function(p,Y){p=p-0x1e1;let q=h[p];return q;},a10o(e,o);}Object['defineProperty'](exports,a10K(0x262),{'value':!![]}),exports['CliLogs']=void 0x0;function a10e(){const eY=['\x20for\x20all\x20containers','description','toUpperCase','Tail\x20will\x20stream\x20logs\x20in\x20real-time.\x20Session\x20will\x20be\x20kept\x20open.','service','46bmxPsC','LogType','getStandardLogCommand','Filter\x20log\x20lines\x20to\x20include\x20this\x20text','\x0aDetails:\x20','--textIncludes\x20<text>','job','-f,\x20--tail','Id]',',\x20to:\x20','containerId',',\x20from:\x20','addonBackup','@northflank/js-client','Restore\x20to\x20get\x20logs\x20from','start','next','assertContextExisting','tsHint','getCommand','askForAddonBackup','then','jobId','Filter\x20log\x20lines\x20to\x20not\x20include\x20this\x20text','--run\x20--runId\x20[runId]','bold','valueOf','--project\x20--projectId\x20[projectId]','build-','-l,\x20--lineLimit\x20[limit]','\x27Ctrl+C\x27','2701468eFgnyK','No\x20logs\x20found\x20for\x20this\x20query.\x20Make\x20sure\x20to\x20select\x20an\x20appropriate\x20time\x20window.','runId','5QJIVnn','getFormatter','error','close','__importDefault','regexIncludes','--noDefaults','commander','\x20with\x20live-tailing','done','Id\x20[','printInitInfo','apiContext','conflicts','Error\x20while\x20fetching\x20log\x20lines:\x20','textNotIncludes','apiClient','askForService','1754324fxbxTM','Only\x20two\x20of\x20\x27startTime\x27,\x20\x27endTime\x27\x20and\x20\x27duration\x27\x20can\x20be\x20set.','getCurrentProjectName','askForJob','../inquirer-helper','buildId','--container\x20--containerId\x20[containerId]','logsApiClient','regexNotIncludes','addOption','toISOString','Build\x20to\x20get\x20logs\x20from','message','../formatting/console-format-helpers',',\x20backup\x20id\x20','Filter\x20log\x20lines\x20to\x20not\x20match\x20this\x20regular\x20expression','--startTime\x20<timestamp>','Number\x20of\x20lines\x20to\x20return.','slice','choices','deploymentId','charAt','getCurrentServiceName','16319OyULdG','Container\x20to\x20exec\x20into\x20(logs\x20from\x20all\x20containers\x20will\x20be\x20shown\x20if\x20not\x20specified)','value','yaml','Filter\x20log\x20lines\x20to\x20match\x20this\x20regular\x20expression','__awaiter','formatLogLine','tail','Get\x20logs\x20generated\x20before\x20this\x20time,\x20','Option','14480604DHgOaL','getCurrentJobName','noDefaults','logRange','223320lNeWMk','stringify','logs','47000VqjUAk','./log-formatter','log','\x20to\x20get\x20logs\x20from','parseDateInput','4875144fgOLrx','Deployment\x20id,\x20example:\x20my-service-54785f4','askForProject','addonId','addonRestore','backupId','alias','argParser','Log\x20session\x20ended','details','InquirerHelper',',\x20restore\x20id\x20','--regexIncludes\x20<regex>','\x20in\x20project\x20','action','ApiClient','getLogsCommand','--backup\x20--backupId\x20[backupId]','getSeconds','defaultDurationSeconds','assign','-d,\x20--direction\x20<order>','option','length','askForJobRun','Length\x20of\x20timespan\x20in\x20seconds.\x20Only\x20valid\x20if\x20not\x20both,\x20startTime\x20and\x20endTime\x20are\x20set','__esModule','cursor','yml','data','textIncludes','setSeconds','apply','Job\x20run\x20id,\x20example:\x20162b1977-6636-4000-929b-cc265b862ff0','\x20--','default','backward','json','askForAddonRestore','-t,\x20--types\x20<types...>','printResponse','--endTime\x20<timestamp>','inquirerHelper','--duration\x20[duration]','Backup\x20to\x20get\x20logs\x20from','format'];a10e=function(){return eY;};return a10e();}const js_client_1=require(a10K(0x1f4)),chalk_1=__importDefault(require('chalk')),utils_1=require('../utils'),inquirer_helper_1=require(a10K(0x21f)),commander_1=require(a10K(0x210)),console_format_helpers_1=require(a10K(0x228)),log_formatter_1=require(a10K(0x244));class CliLogs{constructor(e){const e1=a10K;this[e1(0x215)]=e,this[e1(0x25b)]=0x708,this[e1(0x1e9)]=(o,h,p,Y)=>{const e2=e1,q=(0x0,utils_1[e2(0x1fa)])(!![])['name']((h?e2(0x203):'')+e2(0x242))[e2(0x24e)]((h?e2(0x203):'')+e2(0x245))[e2(0x1e3)]('Get\x20log\x20for\x20the\x20specified\x20'+o)['option'](e2(0x202),'Project\x20for\x20logs')[e2(0x25e)]('--'+o+e2(0x26a)+o+e2(0x213)+o+e2(0x1ef),o[e2(0x230)](0x0)[e2(0x1e4)]()+o[e2(0x22d)](0x1)+e2(0x246))[e2(0x25e)](e2(0x221),e2(0x233));if(h)q['option']('--build\x20--buildId\x20[buildId]',e2(0x226));if(o===e2(0x1ed))q[e2(0x25e)](e2(0x1ff),e2(0x269));if(o===e2(0x1e6))q[e2(0x25e)]('--deployment\x20--deploymentId\x20[deploymentId]',e2(0x249));if(p)q[e2(0x25e)](e2(0x259),e2(0x274));if(Y)q[e2(0x25e)]('--restore\x20--restoreId\x20[restoreId]',e2(0x1f5));return!h&&!p&&!Y&&q['addOption'](new commander_1[(e2(0x23b))](e2(0x26f),'Which\x20log\x20types\x20to\x20fetch')['choices'](Object['values'](js_client_1[e2(0x1e8)]))),q[e2(0x25e)](e2(0x1ee),e2(0x1e5))[e2(0x25e)](e2(0x204),e2(0x22c))[e2(0x25e)](e2(0x22b),'Get\x20logs\x20generated\x20after\x20this\x20time,\x20'+utils_1[e2(0x1f9)],utils_1['parseDateInput'])[e2(0x224)](new commander_1[(e2(0x23b))](e2(0x271),e2(0x23a)+utils_1[e2(0x1f9)])[e2(0x24f)](utils_1[e2(0x247)])['conflicts']([e2(0x239)]))[e2(0x25e)](e2(0x273),e2(0x261))[e2(0x224)](new commander_1[(e2(0x23b))](e2(0x25d),'Direction\x20of\x20logs.\x20Ignored\x20when\x20tailing.')[e2(0x22e)]([e2(0x26c),'forward'])['conflicts'](['tail']))[e2(0x224)](new commander_1[(e2(0x23b))](e2(0x1ec),e2(0x1ea))[e2(0x216)]([e2(0x218),e2(0x20e),e2(0x223)]))[e2(0x224)](new commander_1[(e2(0x23b))]('--textNotIncludes\x20<text>',e2(0x1fe))['conflicts']([e2(0x266),'regexIncludes',e2(0x223)]))['addOption'](new commander_1['Option'](e2(0x254),e2(0x236))[e2(0x216)]([e2(0x218),e2(0x266),e2(0x223)]))['addOption'](new commander_1[(e2(0x23b))]('--regexNotIncludes\x20<regex>',e2(0x22a))[e2(0x216)]([e2(0x218),'regexIncludes',e2(0x266)]))[e2(0x25e)](e2(0x20f),'Don\x27t\x20use\x20context\x20default\x20values,\x20explicitly\x20use\x20options\x20or\x20ask.',![])['addOption'](new commander_1[(e2(0x23b))]('-o,\x20--output\x20[output]','Output\x20formatting.\x20Will\x20use\x20advanced\x20formatting\x20by\x20default.')[e2(0x22e)](Object['values']([e2(0x1e1),e2(0x26d),'yaml']))),q;},this[e1(0x214)]=(o,h,p,Y)=>{const e3=e1,{containerName:q,restoreId:J,backupId:v,quiet:s,tail:I,startTime:Z,endTime:k,duration:L}=Y;if(s===!![])return;const F=I?'\x20(exit\x20with\x20'+chalk_1['default'][e3(0x200)](e3(0x205))+')':'',W=I?e3(0x211):'',N=new Date(),g=Z!==null&&Z!==void 0x0?Z:new Date(new Date((k!==null&&k!==void 0x0?k:N)[e3(0x201)]())['setSeconds']((k!==null&&k!==void 0x0?k:N)[e3(0x25a)]()-(L!==null&&L!==void 0x0?L:this[e3(0x25b)]))),w=(k!==null&&k!==void 0x0?k:Z!==undefined)?new Date(new Date(Z[e3(0x201)]())[e3(0x267)](Z['getSeconds']()+(L!==null&&L!==void 0x0?L:this[e3(0x25b)]))):N,C=v!==undefined,x=g&&!C?e3(0x1f2)+chalk_1[e3(0x26b)][e3(0x200)](g[e3(0x225)]()):'',l=w&&!C?e3(0x1f0)+chalk_1['default'][e3(0x200)](w[e3(0x225)]()):'',b=L?',\x20duration:\x20'+L+'\x20seconds':'',a=q?'\x20for\x20container\x20'+chalk_1[e3(0x26b)][e3(0x200)](q):C?'':e3(0x1e2),z=v?e3(0x229)+v:'',H=J?e3(0x253)+J:'',P=o+'\x20'+chalk_1[e3(0x26b)][e3(0x200)](h)+z+H+e3(0x255)+chalk_1['default']['bold'](p),V=''+x+l+b;console[e3(0x245)]('>\x20Container\x20logs'+W+a+'\x20of\x20'+P+V+F+':');},this[e1(0x20a)]=(o,h)=>(p,Y)=>{const e4=e1;if(!o){if(p[e4(0x25f)]===0x0)console['log'](e4(0x207));p['forEach'](q=>(0x0,log_formatter_1[e4(0x238)])(q,h));}else(0x0,console_format_helpers_1[e4(0x270)])(o,p);(Y===null||Y===void 0x0?void 0x0:Y['hasNextPage'])&&(0x0,utils_1['warning'])('Element\x20count\x20for\x20this\x20request\x20exceeds\x20the\x20line\x20limit,\x20output\x20was\x20truncated.\x20Cut\x20off\x20at\x20timestamp\x20'+Y[e4(0x263)]);},this[e1(0x219)]=new js_client_1[(e1(0x257))](e,{'throwErrorOnHttpErrorCode':!![],'customUserAgent':utils_1['customUserAgent']}),this[e1(0x222)]=this[e1(0x219)],this[e1(0x272)]=new inquirer_helper_1[(e1(0x252))](this[e1(0x219)]);}[a10K(0x258)](e,o=![],h=![],p=![]){const eh=a10K,Y=(k,L)=>__awaiter(this,void 0x0,void 0x0,function*(){const e5=a10o,F=L[e5(0x23e)],{apiContext:W,inquirerHelper:N}=this;switch(e){case'service':{const g=F?undefined:W[e5(0x231)]();return L['serviceId']||g||(yield N[e5(0x21a)](k)());}case e5(0x1ed):{const w=F?undefined:W[e5(0x23d)]();return L[e5(0x1fd)]||w||(yield N[e5(0x21e)](k)());}case'addon':{return L[e5(0x24b)]||(yield N['askForAddon'](k)());}}}),q=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const e6=a10o;if(o)return F[e6(0x220)]||(yield this['inquirerHelper']['askForBuild'](k,e===e6(0x1e6)?L:undefined,e===e6(0x1ed)?L:undefined,!![])());return undefined;}),J=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const e7=a10o;if(h||p)return F[e7(0x24d)]||(yield this[e7(0x272)][e7(0x1fb)](k,L)());return undefined;}),v=(k,L,F,W)=>__awaiter(this,void 0x0,void 0x0,function*(){const e8=a10o;if(p)return W['restoreId']||(yield this[e8(0x272)][e8(0x26e)](k,L,F)());return undefined;}),s=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const e9=a10o;if(!o&&F[e9(0x1f1)]!==undefined){if(F['containerId']!==!![])return F[e9(0x1f1)];return yield this[e9(0x272)]['askForContainer'](k,e===e9(0x1e6)?L:undefined,e===e9(0x1ed)?L:undefined,!![])();}return undefined;}),I=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const ee=a10o;if(e===ee(0x1ed))return F[ee(0x208)]||(yield this['inquirerHelper'][ee(0x260)](L,k,!![])());return undefined;}),Z=(k,L,F)=>__awaiter(this,void 0x0,void 0x0,function*(){const eo=a10o;if(e===eo(0x1e6)){if(F['deploymentId']!==!![])return F[eo(0x22f)];return F[eo(0x22f)];}return undefined;});return this[eh(0x1e9)](e,o,h,p)[eh(0x256)](k=>__awaiter(this,void 0x0,void 0x0,function*(){const ep=eh,{noDefaults:L,projectId:F,quiet:W,tail:N,types:g,textIncludes:w,textNotIncludes:C,regexIncludes:x,regexNotIncludes:l,direction:b,lineLimit:a,startTime:z,endTime:H,duration:P,output:V}=k;(0x0,utils_1[ep(0x1f8)])(this[ep(0x219)]);const {apiContext:u,inquirerHelper:c,logsApiClient:n}=this,d=L?undefined:u[ep(0x21d)](),j=F||d||(yield c[ep(0x24a)]()),Q=yield Y(j,k),D=yield q(j,Q,k),f=yield J(j,Q,k),i=yield v(j,Q,f,k),R=yield I(j,Q,k),t=yield Z(j,Q,k),G=yield s(j,Q,k);if(z&&H&&P)throw new Error(ep(0x21c));const y={'projectId':j,'entityId':Q},S={'containerName':G,'types':g,'textIncludes':w,'textNotIncludes':C,'regexIncludes':x,'regexNotIncludes':l,'lineLimit':a,'startTime':z,'duration':P,'runId':R,'buildId':D,'backupId':f,'restoreId':i,'deploymentId':t,'isBuild':o!==null&&o!==void 0x0?o:![]},X=p?ep(0x24c):h?ep(0x1f3):e,m=Object['assign'](Object[ep(0x25c)]({},S),{'endTime':H,'direction':b});if(!W&&V!==ep(0x235)&&V!==ep(0x264)&&V!==ep(0x26d))this['printInitInfo'](e,Q,j,Object[ep(0x25c)](Object[ep(0x25c)]({},m),k));const U=this[ep(0x20a)](V,w!==null&&w!==void 0x0?w:x);if(N){const T=yield n[ep(0x242)]['logTail'](y,S,X);T['on']('logs-received',U),T['on']('error',O=>(0x0,utils_1['error'])('Error\x20while\x20tailing\x20log\x20lines:\x20'+O[ep(0x227)])),T['on'](ep(0x20c),()=>console['log'](ep(0x250))),yield T[ep(0x1f6)]();}else{const O=yield n['logs'][ep(0x23f)](y,m,X);if(O[ep(0x20b)]){const E=O[ep(0x20b)][ep(0x251)],A=E?ep(0x1eb)+JSON[ep(0x241)](E,null,'\x20'):'';(0x0,utils_1['error'])(ep(0x217)+O[ep(0x20b)][ep(0x227)]+A);}else U(O[ep(0x265)],O['pagination']);}}));}}exports['CliLogs']=CliLogs;
@@ -1 +1 @@
1
- 'use strict';const a11v=a11J;(function(Z,J){const F=a11J,z=Z();while(!![]){try{const P=-parseInt(F(0x202))/0x1+-parseInt(F(0x1f4))/0x2*(parseInt(F(0x203))/0x3)+-parseInt(F(0x1ea))/0x4+parseInt(F(0x201))/0x5*(-parseInt(F(0x1e2))/0x6)+parseInt(F(0x1f3))/0x7+parseInt(F(0x1e7))/0x8*(-parseInt(F(0x1f9))/0x9)+-parseInt(F(0x1fc))/0xa*(-parseInt(F(0x1e3))/0xb);if(P===J)break;else z['push'](z['shift']());}catch(B){z['push'](z['shift']());}}}(a11Z,0x85254));function a11Z(){const V=['reduce','red','cyan','chalk','dim','pattern','formatLogLine','containerId','6940017SPDWYI','2WXWjRM','color','log','yellow','bold','2041407mAROKi','greenBright','replace','18230bwYaHY','\x20--\x20','default','defaultLogSyntax','blue','185yMyLZL','691570OSDsEH','2666661boYLLh','45966rzlVuG','14190JOLgen','__esModule','green','toISOString','8xHcRyH','grey','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','2828000aPkxGQ'];a11Z=function(){return V;};return a11Z();}var __importDefault=this&&this['__importDefault']||function(Z){const C=a11J;return Z&&Z[C(0x1e4)]?Z:{'default':Z};};Object['defineProperty'](exports,'__esModule',{'value':!![]}),exports[a11v(0x1f1)]=exports['defaultLogSyntax']=void 0x0;const chalk_1=__importDefault(require(a11v(0x1ee)));exports[a11v(0x1ff)]=[{'color':a11v(0x1e8),'pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':'grey','pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':'grey','pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':a11v(0x1e8),'pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11v(0x1f8),'pattern':new RegExp(a11v(0x1e9),'i')},{'color':a11v(0x1e5),'pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11v(0x1e5),'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':a11v(0x200),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':a11v(0x1fa),'pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11v(0x1ec),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':'gray','pattern':/\b(information|info|debug)\b/i},{'color':a11v(0x1f7),'pattern':/\b(warning|warn)\b/i},{'color':a11v(0x200),'pattern':/[0-9a-f]{64}/i},{'color':a11v(0x200),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];const formatLogLine=(Z,J)=>{const o=a11v,z=chalk_1[o(0x1fe)][o(0x1ef)](Z['ts'][o(0x1e6)]()),P=chalk_1[o(0x1fe)][o(0x1ed)](Z[o(0x1f2)]),B=exports[o(0x1ff)][o(0x1eb)]((s,A)=>{const j=o;return s['replace'](A[j(0x1f0)],n=>A[j(0x1f5)]?chalk_1[j(0x1fe)][A['color']](n):chalk_1[j(0x1fe)][j(0x1e8)](n));},Z[o(0x1f6)]),U=J?B[o(0x1fb)](new RegExp(J,'g'),s=>chalk_1['default'][o(0x1f8)](s)):B;console[o(0x1f6)](z+'\x20'+P+o(0x1fd)+U);};function a11J(Z,J){const z=a11Z();return a11J=function(P,B){P=P-0x1e2;let U=z[P];return U;},a11J(Z,J);}exports[a11v(0x1f1)]=formatLogLine;
1
+ 'use strict';const a11Z=a11o;(function(e,o){const I=a11o,h=e();while(!![]){try{const p=-parseInt(I(0x19c))/0x1*(parseInt(I(0x19a))/0x2)+-parseInt(I(0x185))/0x3+parseInt(I(0x18b))/0x4*(parseInt(I(0x19b))/0x5)+parseInt(I(0x196))/0x6+-parseInt(I(0x190))/0x7*(-parseInt(I(0x199))/0x8)+-parseInt(I(0x19f))/0x9+-parseInt(I(0x186))/0xa;if(p===o)break;else h['push'](h['shift']());}catch(Y){h['push'](h['shift']());}}}(a11e,0x86bb0));var __importDefault=this&&this[a11Z(0x183)]||function(e){const k=a11Z;return e&&e[k(0x194)]?e:{'default':e};};Object['defineProperty'](exports,a11Z(0x194),{'value':!![]}),exports[a11Z(0x198)]=exports[a11Z(0x18e)]=void 0x0;const chalk_1=__importDefault(require(a11Z(0x191)));exports[a11Z(0x18e)]=[{'color':'grey','pattern':/\[[0-9]{1,2}\/[a-z]{3}\/[0-9]{4}:[0-9]{2}:[0-9]{2}:[0-9]{2} \+[0-9]{4}\]/i},{'color':a11Z(0x189),'pattern':/[0-9]{4}-[0-9]{2}-[0-9]{2}T[0-9]{2}:[0-9]{2}:[0-9]{2}(.[0-9]+)?Z/i},{'color':'grey','pattern':/[0-9]{4}\/[0-9]{2}\/[0-9]{2}/i},{'color':'grey','pattern':/\s\b([0-9]{2}:){1,2}[0-9]{2}\b\s/i},{'color':a11Z(0x195),'pattern':new RegExp('s\x08(?!mailto:)(?:(?:http|https|ftp)://)(?:\x5cS+(?::\x5cS*)?@)?(?:(?:(?:[1-9]\x5cd?|1\x5cd\x5cd|2[01]\x5cd|22[0-3])(?:\x5c.(?:1?\x5cd{1,2}|2[0-4]\x5cd|25[0-5])){2}(?:\x5c.(?:[0-9]\x5cd?|1\x5cd\x5cd|2[0-4]\x5cd|25[0-4]))|(?:(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff0-9]+-?)*[a-z\x5cu00a1-\x5cuffff0-9]+)*(?:\x5c.(?:[a-z\x5cu00a1-\x5cuffff]{2,})))|localhost)(?::\x5cd{2,5})?(?:(/|\x5c?|#)[^\x5cs]*)?\x08s','i')},{'color':'green','pattern':/(?:\d{1,3}\.){3}\d{1,3}/i},{'color':a11Z(0x19d),'pattern':/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/},{'color':a11Z(0x1a1),'pattern':/\b(GET|HEAD|POST|PUT|DELETE|CONNECT|OPTIONS|TRACE|PATCH)\b/},{'color':'greenBright','pattern':/\b(successful|success|completed|complete|done)\b/i},{'color':a11Z(0x18d),'pattern':/\b(failed|fail|stderr|error|err)\b/i},{'color':a11Z(0x188),'pattern':/\b(information|info|debug)\b/i},{'color':'yellow','pattern':/\b(warning|warn)\b/i},{'color':'blue','pattern':/[0-9a-f]{64}/i},{'color':a11Z(0x1a1),'pattern':/[0-9a-fA-F]{8}[-]?([0-9a-fA-F]{4}[-]?){3}[0-9a-fA-F]{12}/i}];function a11e(){const W=['\x20--\x20','1393VBjLNF','chalk','color','default','__esModule','bold','3765786ckBOyo','reduce','formatLogLine','22496nNqaKm','2ISzrTJ','4168950ZfoCrz','11017QvZQpc','green','toISOString','8021637jgRJMD','pattern','blue','__importDefault','log','86511xOmMyL','5380060Nkoyey','cyan','gray','grey','replace','4XRgKQV','containerId','red','defaultLogSyntax'];a11e=function(){return W;};return a11e();}function a11o(e,o){const h=a11e();return a11o=function(p,Y){p=p-0x183;let q=h[p];return q;},a11o(e,o);}const formatLogLine=(e,o)=>{const L=a11Z,h=chalk_1[L(0x193)]['dim'](e['ts'][L(0x19e)]()),p=chalk_1[L(0x193)][L(0x187)](e[L(0x18c)]),Y=exports[L(0x18e)][L(0x197)]((J,v)=>{const F=L;return J[F(0x18a)](v[F(0x1a0)],s=>v[F(0x192)]?chalk_1[F(0x193)][v[F(0x192)]](s):chalk_1[F(0x193)]['grey'](s));},e[L(0x184)]),q=o?Y[L(0x18a)](new RegExp(o,'g'),J=>chalk_1[L(0x193)]['bold'](J)):Y;console[L(0x184)](h+'\x20'+p+L(0x18f)+q);};exports[a11Z(0x198)]=formatLogLine;