@maka/maka-cli 4.2.3 → 4.2.5

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.
Files changed (94) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dks.sub.cmd.js +1 -1
  10. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  11. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  12. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  13. package/dist/commands/build/_index.js +1 -1
  14. package/dist/commands/build/build.js +1 -1
  15. package/dist/commands/build/docker.sub.cmd.js +1 -1
  16. package/dist/commands/create.js +1 -1
  17. package/dist/commands/debug.js +1 -1
  18. package/dist/commands/deploy.js +1 -1
  19. package/dist/commands/game/_index.js +1 -1
  20. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  21. package/dist/commands/game/play.command.js +1 -1
  22. package/dist/commands/game/pong.sub.cmd.js +1 -1
  23. package/dist/commands/game/snake.sub.cmd.js +1 -1
  24. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  25. package/dist/commands/generate.js +1 -1
  26. package/dist/commands/get/_index.js +1 -1
  27. package/dist/commands/get/get.command.js +1 -1
  28. package/dist/commands/get/global.sub.cmd.js +1 -1
  29. package/dist/commands/get/local.sub.cmd.js +1 -1
  30. package/dist/commands/help.js +1 -1
  31. package/dist/commands/install.js +1 -1
  32. package/dist/commands/jsdoc.js +1 -1
  33. package/dist/commands/login.js +1 -1
  34. package/dist/commands/logout.js +1 -1
  35. package/dist/commands/logs.js +1 -1
  36. package/dist/commands/maka.cmd.js +1 -1
  37. package/dist/commands/murder.js +1 -1
  38. package/dist/commands/proxy.js +1 -1
  39. package/dist/commands/reconfig.js +1 -1
  40. package/dist/commands/run.js +1 -1
  41. package/dist/commands/set/_index.js +1 -1
  42. package/dist/commands/set/global.sub.cmd.js +1 -1
  43. package/dist/commands/set/local.sub.cmd.js +1 -1
  44. package/dist/commands/set/set.command.js +1 -1
  45. package/dist/commands/ssh.js +1 -1
  46. package/dist/commands/ssl.js +1 -1
  47. package/dist/commands/test.js +1 -1
  48. package/dist/commands/version.js +1 -1
  49. package/dist/error.js +1 -1
  50. package/dist/generator.js +1 -1
  51. package/dist/generators/_index.js +1 -1
  52. package/dist/generators/api.js +1 -1
  53. package/dist/generators/collection.js +1 -1
  54. package/dist/generators/component.js +1 -1
  55. package/dist/generators/config.js +1 -1
  56. package/dist/generators/dbc.js +1 -1
  57. package/dist/generators/dockerfile.js +1 -1
  58. package/dist/generators/hook.js +1 -1
  59. package/dist/generators/kit.js +1 -1
  60. package/dist/generators/layout.js +1 -1
  61. package/dist/generators/maka.gen.js +1 -1
  62. package/dist/generators/methods.js +1 -1
  63. package/dist/generators/package.js +1 -1
  64. package/dist/generators/page.js +1 -1
  65. package/dist/generators/publish.js +1 -1
  66. package/dist/generators/route.js +1 -1
  67. package/dist/generators/scaffold.js +1 -1
  68. package/dist/generators/service.js +1 -1
  69. package/dist/generators/services/_index.js +1 -1
  70. package/dist/generators/services/translation.js +1 -1
  71. package/dist/maka.js +1 -1
  72. package/dist/templates/meteor/service/logger/logger.js +21 -11
  73. package/dist/templates/meteor/service/logger/logger.js.ts +21 -11
  74. package/dist/tool.js +1 -1
  75. package/dist/tools/actions/actions.class.js +1 -1
  76. package/dist/tools/actions/actions.test.js +1 -1
  77. package/dist/tools/aws/aws.class.js +1 -1
  78. package/dist/tools/aws/aws.interfaces.js +1 -1
  79. package/dist/tools/docker/docker.class.js +1 -1
  80. package/dist/tools/docker/docker.interfaces.js +1 -1
  81. package/dist/tools/fsi/fsi.class.js +1 -1
  82. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  83. package/dist/tools/https/https.class.js +1 -1
  84. package/dist/tools/https/https.interface.js +1 -1
  85. package/dist/tools/log/log.class.js +1 -1
  86. package/dist/tools/log/log.interfaces.js +1 -1
  87. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  88. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  89. package/dist/tools/ssh/ssh.class.js +1 -1
  90. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  91. package/dist/tools/ssl/ssl.class.js +1 -1
  92. package/package.json +1 -1
  93. package/dist/templates/meteor/service/logger/transports.js +0 -31
  94. package/dist/templates/meteor/service/logger/transports.js.ts +0 -31
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x1c8))/0x1*(parseInt(N(0x207))/0x2)+parseInt(N(0x1fd))/0x3+-parseInt(N(0x1b7))/0x4+parseInt(N(0x1e2))/0x5+-parseInt(N(0x20a))/0x6+-parseInt(N(0x1cc))/0x7*(parseInt(N(0x1af))/0x8)+parseInt(N(0x20b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x3bdb3));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x19b;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(c){if(O(0x203)!==O(0x21f)){const e=c[O(0x209)](b,arguments);return c=null,e;}else{d[O(0x201)]('Missing\x20required\x20options\x20'+e[O(0x1d2)](',\x20'));throw new f();}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x1ee)]()[P(0x1c1)](P(0x1dc))['toString']()[P(0x206)](a0a)['search'](P(0x1dc));});a0a();function a0c(){const ai=['sort','runSubCommand','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','invoke','Name','kmqTf','DVayt','number','toString','validateParams','function','aliases','kSjwG','Trial\x20License\x20Expires:\x20','Missing\x20required\x20options\x20','bZIIh','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20requires\x20a\x20handler\x20function','No\x20description\x20provided.','Alias','roles','_handler','__awaiter','1230429kTqjUE','existsSync','Command.create\x20requires\x20some\x20options!','Commands:','error','To\x20use\x20this\x20command,\x20\x22','Mgrdj','addCommand','CVuMr','constructor','82WSmuiU','find','apply','2902476kBiJbG','10114272oWEwDF','Invalid\x20options:\x20','ltLcI','tableList','bind','bright','keys','value','notice','then','CULRf','maxOptsLength','includes','win32','assign','next','push','Too\x20few\x20options','_commands','BWFjt','bIakb','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','done','getPro','validateMakaSubscription','validateMeteorInstall','mustHaveMeteorInstalled','forEach','kWJuA','usage','homedir','AppData','rmtgM','minArgLength','Command\x20requires\x20a\x20name','UqjGk','findCommand','uVQjI','Command\x20not\x20found','fsi','findProjectDirectory','concat','PpVAM','create','16QeKMyX','findSubCommand','exit','split','pVumd','mIvXf','fJUJj','mustBeInMakaProject','147872VsxxuF','name','xGQNi','Too\x20few\x20arguments','minOptsLength','LTYiS','length','match','.meteor','Please\x20run\x20\x22maka\x20install\x20meteor\x22','search','TQyZe','Iruii','FTaKq','help','Description','trialActive','9153kagAty','options','Too\x20many\x20options','RzKzo','1686384AbDAeP','examples','proCommands','WsSut','yijRh','murder','join','game','validateMakaProject','parent','run','splice','maxArgLength','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','call','nQLNA','(((.+)+)+)+$','description','Missing\x20required\x20option:\x20','deploy','aSpDj','platform','445155XEKslD','singleLicense','addCommand\x20requires\x20a\x20Command\x20instance','SRgyU'];a0c=function(){return ai;};return a0c();}var __awaiter=this&&this[a0Q(0x1fc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const R=a0d;if(R(0x1c4)!=='FTaKq')throw new b(R(0x1f7));else g(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;if('OOguX'!=='OOguX'){c['error'](S(0x1ba));throw new d();}else try{j(d[S(0x21a)](k));}catch(m){g(m);}}function i(k){const T=a0d;if('LongE'==='LongE')try{j(d['throw'](k));}catch(l){if(T(0x205)===T(0x1f2))throw new b();else g(l);}else g[T(0x1b8)]!==T(0x1d1)&&h[T(0x1b8)]!==T(0x1d3)&&m['push']([n['name'],o['aliases'](),p[T(0x1dd)]()]);}function j(k){const U=a0d;U(0x1a8)===U(0x1a8)?k[U(0x221)]?f(k[U(0x212)]):e(k[U(0x212)])[U(0x214)](h,i):e[U(0x21b)]([f['name'],g[U(0x1f1)](),h['description']()]);}j((d=d[V(0x209)](a,b||[]))[V(0x21a)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0x1a1)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a){if(W(0x1ec)!=='GjYlj')throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');else throw new b(W(0x1e4));}if(!a['name'])throw new Error(W(0x1a5));if(typeof b!=='function'){if('vCkBC'==='vCkBC')throw new Error(W(0x1f7));else throw new b();}this[W(0x1c9)]=Object[W(0x219)]({},a),this[W(0x1b8)]=this[W(0x1c9)][W(0x1b8)],this[W(0x21d)]=[],this[W(0x1fb)]=b[W(0x20f)](this);}static[a0Q(0x1ae)](a,b,c){const X=a0Q;var d;if(!a){if(X(0x1b9)!=='xGQNi'){d[X(0x201)](X(0x1de)+e);throw new f();}else throw new Error(X(0x1ff));}if(typeof b!==X(0x1f0)){if(X(0x1b3)!==X(0x1d0))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');else g['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),h[X(0x213)](X(0x1c0)),i[X(0x1a0)](j,k,l);}let e=new Command(a,b);return c=c||a0M,Object[X(0x219)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x1c9)])===null||d===void 0x0?void 0x0:d[X(0x1b8)]}),c[X(0x204)](e),e;}[a0Q(0x1be)](a){const Y=a0Q;let b=[this[Y(0x1b8)]][Y(0x1ac)](this[Y(0x1c9)][Y(0x1f1)]||[]);if(this['parent']){if(Y(0x19f)!=='kWJuA')throw'Command\x20not\x20found';else b[Y(0x21b)](this[Y(0x1d5)]);}return b[Y(0x217)](a);}[a0Q(0x204)](a){const Z=a0Q;if(!(a instanceof Command)){if(Z(0x1c3)===Z(0x1c3))throw new Error(Z(0x1e4));else throw b;}this[Z(0x21d)][Z(0x21b)](a);}[a0Q(0x1d4)](){const a0=a0Q,a=this[a0(0x1aa)][a0(0x1ab)]();return a!==![]?!![]:![];}[a0Q(0x19c)](){const a1=a0Q;let a=a0I[a1(0x1d2)](homeDir,'.meteor');const b=process[a1(0x1e1)]===a1(0x218);if(b){a=a0I[a1(0x1d2)](homeDir,a1(0x1a2),'Local',a1(0x1bf));if(!a0K[a1(0x1fe)](a)){if(a1(0x1a6)!==a1(0x1e0))return![];else f['push'](a1(0x1c5)),g[a1(0x19e)](q=>{const a2=a1;if(!k['includes'](q)){n[a2(0x201)](a2(0x20c)+q);throw new o();}});}}else{if(a1(0x215)===a1(0x1eb))return this[a1(0x1c9)][a1(0x1dd)]||a1(0x1f8);else{if(!a0K[a1(0x1fe)](a))return![];}}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a3=a0d;if('vcHuV'===a3(0x1bc)){c[a3(0x201)]('Too\x20many\x20options');throw new d();}else try{const d=this[a3(0x1a7)](a[0x0]);if(d){if(a3(0x1a3)===a3(0x1e5))d[a3(0x201)](e),f[a3(0x1b1)](0x0);else{const g=(d===null||d===void 0x0?void 0x0:d[a3(0x1b8)])||a[0x0],h=(d===null||d===void 0x0?void 0x0:d[a3(0x1d5)])||'',i=a[0x0],j=Object['keys'](b),k=yield this['fsi'][a3(0x222)]();!k&&(Log[a3(0x201)](a3(0x1d9)),process['exit'](0x1));const l=(k===null||k===void 0x0?void 0x0:k[a3(0x1ce)][a3(0x217)](g))||(k===null||k===void 0x0?void 0x0:k['proCommands'][a3(0x217)](h)),m=!(k===null||k===void 0x0?void 0x0:k[a3(0x1fa)][a3(0x217)](a3(0x1e3)))&&!(k===null||k===void 0x0?void 0x0:k[a3(0x1fa)][a3(0x217)]('domainLicense'))&&!(k===null||k===void 0x0?void 0x0:k[a3(0x1c7)]);if(l&&m){if('viAJS'!=='viAJS')return this[a3(0x1c9)][a3(0x1cd)]||[];else throw a3(0x202)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}if(j[a3(0x1bd)]>0x0){const o=k===null||k===void 0x0?void 0x0:k['proFlags']['filter'](p=>j[a3(0x217)](p));if(o&&o[a3(0x1bd)]>0x0&&m)throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(o===null||o===void 0x0?void 0x0:o[a3(0x1d2)](',\x20'))+a3(0x220);}if(i===a3(0x1df)){const p=yield this[a3(0x1aa)]['getPro'](),q=p===null||p===void 0x0?void 0x0:p['proCommands'][a3(0x217)](a[0x0]+'\x20'+a[0x1]);if(q&&m)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a3(0x220);}(k===null||k===void 0x0?void 0x0:k[a3(0x1c7)])&&Log[a3(0x213)](a3(0x1f3)+k['trialExpirationDate'][a3(0x1b2)]('T')[0x0]);}}}catch(r){throw r;}});}[a0Q(0x1ef)](a,b,c){const a4=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x211)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if(g[a4(0x1bd)]===0x0){Log[a4(0x201)](a4(0x1f4)+requiredOpts['join'](',\x20'));throw new UsageError();}requiredOpts[a4(0x19e)](h=>{const a5=a4;if(!g[a5(0x217)](h)){Log[a5(0x201)](a5(0x1de)+h);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a4(0x1bd)])>0x0){if(a4(0x1b4)!==a4(0x1b5))validOpts['push'](a4(0x1c5)),g[a4(0x19e)](h=>{const a6=a4;if(!validOpts[a6(0x217)](h)){if(a6(0x1c2)===a6(0x20d))return![];else{Log[a6(0x201)](a6(0x20c)+h);throw new UsageError();}}});else try{i(j[a4(0x21a)](k));}catch(i){m(i);}}}[a0Q(0x1d6)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{a=a||[],b=b||{};try{yield this[a7(0x19b)](a,b);}catch(c){if('GGGsN'!=='GGGsN'){if(!c[a7(0x1fe)](d))return![];}else Log['error'](c),process[a7(0x1b1)](0x0);}yield this['invoke'](a,b);}catch(f){process['exit'](0x1);}});}[a0Q(0x1e9)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if(a8(0x1f5)===a8(0x1f5)){const {usage:usage='',description:description='',examples:examples=[]}=this[a8(0x1c9)];this[a8(0x1ef)](a,b,this[a8(0x1c9)]);try{if(this[a8(0x1c9)][a8(0x1b6)]){const c=this[a8(0x1d4)]();if(!c)throw new MustBeInProjectError();}if(this[a8(0x1c9)][a8(0x19d)]){const d=this['validateMeteorInstall']();if(!d)throw new NoMeteorFoundError();}if(typeof this['options'][a8(0x1a4)]===a8(0x1ed)){if('HdOKR'!=='gaIkI'){if(a[a8(0x1bd)]<this[a8(0x1c9)]['minArgLength']){Log[a8(0x201)](a8(0x1ba));throw new UsageError();}}else b[a8(0x21b)](this[a8(0x1d5)]);}if(typeof this[a8(0x1c9)]['maxArgLength']===a8(0x1ed)){if('orekG'==='orekG'){if(a[a8(0x1bd)]>=this[a8(0x1c9)][a8(0x1d8)]){if('PpVAM'!==a8(0x1ad)){c[a8(0x201)](a8(0x21c));throw new d();}else{Log['error']('Too\x20many\x20arguments');throw new UsageError();}}}else{if(e){const i=i[a8(0x209)](j,arguments);return k=null,i;}}}if(typeof this[a8(0x1c9)][a8(0x1bb)]===a8(0x1ed)){if('wMfwQ'===a8(0x1cf))return this[a8(0x1c9)][a8(0x1a0)]||'No\x20usage\x20provided.';else{if(Object[a8(0x211)](b)['length']<this['options']['minOptsLength']){if(a8(0x1db)==='fjNXj')throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a8(0x220);else{Log['error'](a8(0x21c));throw new UsageError();}}}}if(typeof this[a8(0x1c9)]['maxOptsLength']===a8(0x1ed)){if(Object[a8(0x211)](b)[a8(0x1bd)]>=this[a8(0x1c9)][a8(0x216)]){Log[a8(0x201)](a8(0x1ca));throw new UsageError();}}if((a[0x0]===_prevCmd||a[a8(0x1bd)]===0x0)&&b['help'])throw new UsageError();_prevCmd=a[0x0],yield this[a8(0x1fb)][a8(0x1da)](this,a,b);}catch(k){if(k instanceof UsageError)this[a8(0x21d)][a8(0x1bd)]>0x0&&b['help']&&(Log[a8(0x213)](a8(0x200)),this[a8(0x20e)](this[a8(0x21d)])),Log[a8(0x1a0)](description,examples,usage);else{if(k instanceof MustBeInProjectError)'tqhhU'!==a8(0x21e)?(Log['error'](a8(0x1e8)),Log[a8(0x1a0)](description,examples,usage)):b['exit'](0x1);else{if(k instanceof NoMeteorFoundError)Log['error']('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[a8(0x213)](a8(0x1c0)),Log[a8(0x1a0)](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError){if('RzKzo'!==a8(0x1cb))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||k===void 0x0?void 0x0:f[a8(0x1d2)](',\x20'))+a8(0x220);else Log['error'](a8(0x1f6)),Log[a8(0x1a0)](description,examples,usage);}else throw k;}}}process['exit'](0x1);}}else{if(d[a8(0x1bd)]<this[a8(0x1c9)]['minArgLength']){g['error'](a8(0x1ba));throw new h();}}});}['tableList'](a){const a9=a0Q,b=new a0L({});b['push']([a9(0x1ea),a9(0x1f9),a9(0x1c6)]),a[a9(0x1e6)]()[a9(0x19e)](c=>{const aa=a9;c[aa(0x1b8)]!=='murder'&&c[aa(0x1b8)]!==aa(0x1d3)&&b[aa(0x21b)]([c[aa(0x1b8)],c[aa(0x1f1)](),c[aa(0x1dd)]()]);}),Log[a9(0x210)](b[a9(0x1ee)]());}['findCommand'](a){const ab=a0Q;return this[ab(0x21d)][ab(0x208)](b=>b[ab(0x1be)](a));}[a0Q(0x1b0)](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0x1b2)](':');if(b)return a=b[0x0],this[ac(0x1a7)](a);else return;}[a0Q(0x1e7)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;try{let d=a[ad(0x1b2)](':');a=d[0x0];let f=d[0x1];f&&b[ad(0x1d7)](0x0,0x0,f);let g=this[ad(0x1a7)](a);if(g)yield g[ad(0x1d6)](b,c);else throw ad(0x1a9);}catch(h){throw Log[ad(0x201)](h);}});}[a0Q(0x1dd)](){const ae=a0Q;return this[ae(0x1c9)][ae(0x1dd)]||ae(0x1f8);}['usage'](){const af=a0Q;return this[af(0x1c9)]['usage']||'No\x20usage\x20provided.';}[a0Q(0x1cd)](){const ag=a0Q;return this[ag(0x1c9)]['examples']||[];}[a0Q(0x1f1)](){const ah=a0Q;return this[ah(0x1c9)][ah(0x1f1)]||'No\x20aliases';}}
1
+ const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x1bd))/0x1+parseInt(N(0x196))/0x2+-parseInt(N(0x218))/0x3*(parseInt(N(0x19d))/0x4)+-parseInt(N(0x1bf))/0x5+parseInt(N(0x210))/0x6+parseInt(N(0x1c7))/0x7+-parseInt(N(0x198))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x4c5ad));function a0c(){const ai=['deploy','BMaBs','eedNw','Commands:','findCommand','throw','Missing\x20required\x20option:\x20','meoOt','mustBeInMakaProject','ARtif','usage','run','Command\x20requires\x20a\x20handler\x20function','length','value','CtFre','fgiNh','match','win32','hgGVx','parent','apply','LfeIZ','Too\x20few\x20options','filter','Alias','domainLicense','split','yQIcJ','AppData','join','No\x20aliases','__awaiter','qQqxs','(((.+)+)+)+$','fsi','itRoE','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','toString','proCommands','Local','game','validateParams','done','help','kMXiE','murder','hRuaD','Invalid\x20options:\x20','aliases','mustHaveMeteorInstalled','trialActive','Trial\x20License\x20Expires:\x20','No\x20usage\x20provided.','IyyTw','findProjectDirectory','ZZfzz','Command.create\x20requires\x20a\x20handler\x20function!','search','754272OhrdKU','bright','Boobl','QROqt','validateMakaSubscription','invoke','minOptsLength','oVLfb','3iyjUIG','bdPbK','OIrVY','maxArgLength','create','forEach','runSubCommand','Too\x20many\x20arguments','number','constructor','VjnCy','ziSyt','mUTDD','ewMcG','1082760gEIrlz','proFlags','24768FcMdCd','eTjBu','name','To\x20use\x20these\x20pro\x20flags,\x20\x22','Name','1817596JyoSyj','LBydS','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','description','exit','There\x20is\x20no\x20Meteor\x20application\x20here','maxOptsLength','then','sort','.meteor','Missing\x20required\x20options\x20','keys','_handler','examples','QVpxH','EcIFV','find','options','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','existsSync','getPro','DXDZW','minArgLength','roles','notice','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','bind','amiUR','includes','next','tJeXk','_commands','314456ciwzZp','tableList','2562900dOBWMM','To\x20use\x20this\x20command,\x20\x22','NzrAN','Command\x20requires\x20a\x20name','Too\x20many\x20options','validateMeteorInstall','function','Too\x20few\x20arguments','2108932ICKNSr','ZvSue','Command.create\x20requires\x20some\x20options!','addCommand\x20requires\x20a\x20Command\x20instance','call','XsShq','push','Command\x20not\x20found','jSFJA','addCommand','LcrjO','error','assign','yhFBM'];a0c=function(){return ai;};return a0c();}const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if(O(0x219)!==O(0x219))c(d);else{if(c){const f=c[O(0x1ea)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x1fb)]()[P(0x20f)](P(0x1f7))[P(0x1fb)]()[P(0x191)](a0a)[P(0x20f)]('(((.+)+)+)+$');});a0a();function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x18a;let f=c[d];return f;},a0d(a,b);}var __awaiter=this&&this[a0Q(0x1f5)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const U=a0d;function h(k){const R=a0d;try{j(d[R(0x1ba)](k));}catch(l){if(R(0x1e5)===R(0x199)){var n;if(!p)throw new E(R(0x1c9));if(typeof r!==R(0x1c5))throw new F('Command.create\x20requires\x20a\x20handler\x20function!');let o=new t(u,v);return w=x||y,z[R(0x1d3)](o,{'parent':(n=A===null||B===void 0x0?void 0x0:C[R(0x1ae)])===null||n===void 0x0?void 0x0:n['name']}),D[R(0x1d0)](o),o;}else g(l);}}function i(k){const S=a0d;if(S(0x217)!==S(0x217))try{i(j['next'](k));}catch(m){m(m);}else try{if(S(0x20d)!==S(0x1e4))j(d[S(0x1da)](k));else throw new b('Command\x20requires\x20a\x20handler\x20function');}catch(n){g(n);}}function j(k){const T=a0d;k[T(0x200)]?f(k['value']):e(k[T(0x1e3)])['then'](h,i);}j((d=d['apply'](a,b||[]))[U(0x1ba)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J['homedir']();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const V=a0Q;super();if(!a)throw new Error(V(0x1b6));if(!a[V(0x19a)]){if('oBZhV'==='nrGNM')throw b;else throw new Error(V(0x1c2));}if(typeof b!==V(0x1c5)){if('IyyTw'!==V(0x20b))f[V(0x1cd)](V(0x201)),g[V(0x18d)](q=>{const W=V;if(!k[W(0x1b9)](q)){n[W(0x1d2)](W(0x205)+q);throw new o();}});else throw new Error(V(0x1e1));}this[V(0x1ae)]=Object[V(0x1d3)]({},a),this[V(0x19a)]=this[V(0x1ae)][V(0x19a)],this[V(0x1bc)]=[],this[V(0x1a9)]=b[V(0x1b7)](this);}static[a0Q(0x18c)](a,b,c){const X=a0Q;var d;if(!a){if(X(0x1cf)===X(0x1cf))throw new Error(X(0x1c9));else g[X(0x19a)]!=='murder'&&h[X(0x19a)]!==X(0x1fe)&&m[X(0x1cd)]([n['name'],o[X(0x206)](),p['description']()]);}if(typeof b!==X(0x1c5))throw new Error(X(0x20e));let e=new Command(a,b);return c=c||a0M,Object['assign'](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c['options'])===null||d===void 0x0?void 0x0:d['name']}),c['addCommand'](e),e;}[a0Q(0x1e6)](a){const Y=a0Q;let b=[this[Y(0x19a)]]['concat'](this[Y(0x1ae)][Y(0x206)]||[]);return this[Y(0x1e9)]&&b[Y(0x1cd)](this[Y(0x1e9)]),b[Y(0x1b9)](a);}[a0Q(0x1d0)](a){const Z=a0Q;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[Z(0x1bc)][Z(0x1cd)](a);}['validateMakaProject'](){const a0=a0Q,a=this[a0(0x1f8)]['findProjectDirectory']();return a!==![]?!![]:![];}[a0Q(0x1c4)](){const a1=a0Q;let a=a0I[a1(0x1f3)](homeDir,a1(0x1a6));const b=process['platform']===a1(0x1e7);if(b){if(a1(0x19e)===a1(0x19e)){a=a0I[a1(0x1f3)](homeDir,a1(0x1f2),a1(0x1fd),a1(0x1a6));if(!a0K[a1(0x1b0)](a))return![];}else try{i(j[a1(0x1da)](k));}catch(d){m(d);}}else{if(!a0K[a1(0x1b0)](a))return![];}return!![];}[a0Q(0x214)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if(a2(0x1f9)!==a2(0x1f9)){if(e['keys'](f)[a2(0x1e2)]>=this[a2(0x1ae)][a2(0x1a3)]){i[a2(0x1d2)]('Too\x20many\x20options');throw new j();}}else try{const d=this[a2(0x1d9)](a[0x0]);if(d){const f=(d===null||d===void 0x0?void 0x0:d[a2(0x19a)])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d[a2(0x1e9)])||'',h=a[0x0],i=Object[a2(0x1a8)](b),j=yield this['fsi']['getPro']();if(!j){if('qQqxs'===a2(0x1f6))Log[a2(0x1d2)](a2(0x1fa)),process[a2(0x1a1)](0x1);else return this['options']['description']||'No\x20description\x20provided.';}const k=(j===null||j===void 0x0?void 0x0:j[a2(0x1fc)]['includes'](f))||(j===null||j===void 0x0?void 0x0:j[a2(0x1fc)][a2(0x1b9)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0x1b4)][a2(0x1b9)]('singleLicense'))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x1b4)][a2(0x1b9)](a2(0x1ef)))&&!(j===null||j===void 0x0?void 0x0:j['trialActive']);if(k&&l)throw a2(0x1c0)+a[0x0]+a2(0x1af);if(i[a2(0x1e2)]>0x0){const n=j===null||j===void 0x0?void 0x0:j[a2(0x197)][a2(0x1ed)](o=>i[a2(0x1b9)](o));if(n&&n['length']>0x0&&l){if('mUTDD'===a2(0x194))throw a2(0x19b)+(n===null||n===void 0x0?void 0x0:n['join'](',\x20'))+a2(0x1af);else{if(!f[a2(0x1b9)](g)){k[a2(0x1d2)](a2(0x205)+l);throw new m();}}}}if(h===a2(0x1d5)){if(a2(0x202)===a2(0x202)){const p=yield this[a2(0x1f8)][a2(0x1b1)](),q=p===null||p===void 0x0?void 0x0:p[a2(0x1fc)][a2(0x1b9)](a[0x0]+'\x20'+a[0x1]);if(q&&l)throw a2(0x1c0)+a[0x0]+a2(0x1af);}else throw new b(a2(0x1c9));}(j===null||j===void 0x0?void 0x0:j[a2(0x208)])&&Log[a2(0x1b5)](a2(0x209)+j['trialExpirationDate'][a2(0x1f0)]('T')[0x0]);}}catch(s){throw s;}});}[a0Q(0x1ff)](a,b,c){const a3=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a3(0x1a8)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a3(0x1e2)])>0x0){if(g[a3(0x1e2)]===0x0){Log[a3(0x1d2)]('Missing\x20required\x20options\x20'+requiredOpts[a3(0x1f3)](',\x20'));throw new UsageError();}requiredOpts['forEach'](h=>{const a4=a3;if(!g[a4(0x1b9)](h)){if(a4(0x1d4)!==a4(0x1d1)){Log[a4(0x1d2)](a4(0x1db)+h);throw new UsageError();}else{d[a4(0x1d2)](a4(0x1a7)+e[a4(0x1f3)](',\x20'));throw new f();}}});}validOpts=validOpts['concat'](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a3(0x1e2)])>0x0&&(validOpts[a3(0x1cd)](a3(0x201)),g[a3(0x18d)](h=>{const a5=a3;if(!validOpts[a5(0x1b9)](h)){if(a5(0x213)===a5(0x1e8))throw new b(a5(0x20e));else{Log[a5(0x1d2)](a5(0x205)+h);throw new UsageError();}}}));}[a0Q(0x1e0)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;try{if('zGxsY'==='zGxsY'){a=a||[],b=b||{};try{const {disableAuthCheck:c}=this['options'];if(!c){if(a6(0x1ac)==='fIfhS'){c['error'](a6(0x18f));throw new d();}else yield this[a6(0x214)](a,b);}}catch(f){Log[a6(0x1d2)](f),process[a6(0x1a1)](0x0);}yield this[a6(0x215)](a,b);}else e[a6(0x1cd)]([f['name'],g[a6(0x206)](),h[a6(0x1a0)]()]);}catch(h){if(a6(0x1d6)==='BMaBs')process['exit'](0x1);else{if(d['length']<this[a6(0x1ae)][a6(0x1b3)]){g['error'](a6(0x1c6));throw new h();}}}});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d,{usage:usage='',description:description='',examples:examples=[]}=this['options'];this[a7(0x1ff)](a,b,this['options']);try{if('myCDs'==='HNajp'){let d=f===null||g===void 0x0?void 0x0:h[a7(0x1f0)](':');if(d)return k=d[0x0],this[a7(0x1d9)](l);else return;}else{if((a[0x0]===_prevCmd||a[a7(0x1e2)]===0x0)&&b[a7(0x201)])throw new UsageError();if(this[a7(0x1ae)][a7(0x1dd)]){const d=this['validateMakaProject']();if(!d)throw new MustBeInProjectError();}if(this['options'][a7(0x207)]){const f=this[a7(0x1c4)]();if(!f)throw new NoMeteorFoundError();}if(typeof this[a7(0x1ae)]['minArgLength']===a7(0x190)){if(a['length']<this['options']['minArgLength']){if(a7(0x1c8)===a7(0x1b8))d(e[a7(0x1da)](f));else{Log[a7(0x1d2)]('Too\x20few\x20arguments');throw new UsageError();}}}if(typeof this[a7(0x1ae)][a7(0x18b)]===a7(0x190)){if(a7(0x18a)!==a7(0x212)){if(a[a7(0x1e2)]>=this[a7(0x1ae)][a7(0x18b)]){if(a7(0x195)!==a7(0x195))c[a7(0x1b5)](a7(0x209)+d['trialExpirationDate'][a7(0x1f0)]('T')[0x0]);else{Log[a7(0x1d2)](a7(0x18f));throw new UsageError();}}}else{const j=this[a7(0x1f8)][a7(0x20c)]();return j!==![]?!![]:![];}}if(typeof this[a7(0x1ae)][a7(0x216)]==='number'){if(Object[a7(0x1a8)](b)[a7(0x1e2)]<this['options'][a7(0x216)]){Log['error'](a7(0x1ec));throw new UsageError();}}if(typeof this[a7(0x1ae)]['maxOptsLength']===a7(0x190)){if(a7(0x1f1)!==a7(0x1eb)){if(Object[a7(0x1a8)](b)[a7(0x1e2)]>=this[a7(0x1ae)][a7(0x1a3)]){Log['error'](a7(0x1c3));throw new UsageError();}}else{if(e){const k=i['apply'](j,arguments);return k=null,k;}}}_prevCmd=a[0x0],yield this[a7(0x1a9)][a7(0x1cb)](this,a,b);}}catch(k){if(a7(0x1b2)==='cvWPe')h[a7(0x200)]?i(j[a7(0x1e3)]):k(l[a7(0x1e3)])[a7(0x1a4)](m,n);else{if(k instanceof UsageError)this[a7(0x1bc)]['length']>0x0&&b[a7(0x201)]&&(Log[a7(0x1b5)](a7(0x1d8)),this[a7(0x1be)](this[a7(0x1bc)])),Log[a7(0x1df)](description,examples,usage);else{if(k instanceof MustBeInProjectError){if(a7(0x1ab)===a7(0x1bb))throw new b(a7(0x1ca));else Log[a7(0x1d2)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log['usage'](description,examples,usage);}else{if(k instanceof NoMeteorFoundError){if(a7(0x1d7)!==a7(0x204))Log[a7(0x1d2)](a7(0x19f)),Log['notice']('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log[a7(0x1df)](description,examples,usage);else throw'To\x20use\x20this\x20command,\x20\x22'+b[0x0]+a7(0x1af);}else{if(k instanceof NoMeteorAppFoundError)Log['error'](a7(0x1a2)),Log[a7(0x1df)](description,examples,usage);else throw k;}}}process[a7(0x1a1)](0x1);}}});}[a0Q(0x1be)](a){const a8=a0Q,b=new a0L({});b[a8(0x1cd)](['Name',a8(0x1ee),'Description']),a[a8(0x1a5)]()[a8(0x18d)](c=>{const a9=a8;if(c[a9(0x19a)]!==a9(0x203)&&c['name']!==a9(0x1fe)){if(a9(0x193)!==a9(0x193)){d[a9(0x1d2)](a9(0x205)+e);throw new f();}else b['push']([c[a9(0x19a)],c[a9(0x206)](),c[a9(0x1a0)]()]);}}),Log[a8(0x211)](b[a8(0x1fb)]());}['findCommand'](a){const aa=a0Q;return this[aa(0x1bc)][aa(0x1ad)](b=>b['match'](a));}['findSubCommand'](a){const ab=a0Q;let b=a===null||a===void 0x0?void 0x0:a['split'](':');if(b){if(ab(0x1de)===ab(0x192))c(d);else return a=b[0x0],this[ab(0x1d9)](a);}else return;}[a0Q(0x18e)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ac=a0d;if('Dhrad'!==ac(0x1cc))try{let d=a[ac(0x1f0)](':');a=d[0x0];let f=d[0x1];f&&b['splice'](0x0,0x0,f);let g=this[ac(0x1d9)](a);if(g)yield g[ac(0x1e0)](b,c);else{if(ac(0x1dc)===ac(0x1dc))throw ac(0x1ce);else return f instanceof g?h:new i(function(m){m(k);});}}catch(i){if(ac(0x1c1)!=='GIGES')throw Log[ac(0x1d2)](i);else{const k=new d({});k[ac(0x1cd)]([ac(0x19c),ac(0x1ee),'Description']),i['sort']()[ac(0x18d)](l=>{const ad=ac;l[ad(0x19a)]!==ad(0x203)&&l[ad(0x19a)]!==ad(0x1fe)&&k[ad(0x1cd)]([l[ad(0x19a)],l[ad(0x206)](),l['description']()]);}),f[ac(0x211)](k[ac(0x1fb)]());}}else throw ac(0x1c0)+b[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';});}[a0Q(0x1a0)](){const ae=a0Q;return this[ae(0x1ae)][ae(0x1a0)]||'No\x20description\x20provided.';}[a0Q(0x1df)](){const af=a0Q;return this[af(0x1ae)]['usage']||af(0x20a);}[a0Q(0x1aa)](){const ag=a0Q;return this[ag(0x1ae)]['examples']||[];}[a0Q(0x206)](){const ah=a0Q;return this[ah(0x1ae)][ah(0x206)]||ah(0x1f4);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x1c2))/0x1*(-parseInt(u(0x1bd))/0x2)+-parseInt(u(0x1c4))/0x3+parseInt(u(0x1c3))/0x4*(parseInt(u(0x1bc))/0x5)+-parseInt(u(0x1bf))/0x6+parseInt(u(0x1c0))/0x7*(parseInt(u(0x1be))/0x8)+-parseInt(u(0x1c1))/0x9*(-parseInt(u(0x1c6))/0xa)+parseInt(u(0x1c7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x83f5f));function a1c(){var w=['search','11030PAkMjw','14ezjbnB','384xouzyw','3788058soTKll','10514aouvTN','27hHFjot','71252DkwpiB','628jYLEmP','56553wSunWN','toString','1384780JqhqZI','9411567sGEhYG','(((.+)+)+)+$','constructor'];a1c=function(){return w;};return a1c();}var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var v=a1d;return a1a[v(0x1c5)]()[v(0x1ca)](v(0x1c8))['toString']()[v(0x1c9)](a1a)[v(0x1ca)](v(0x1c8));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1bc;var f=c[d];return f;},a1d(a,b);}import'./proxy.js';
1
+ (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x18d))/0x1+-parseInt(u(0x188))/0x2*(-parseInt(u(0x18b))/0x3)+parseInt(u(0x18f))/0x4+parseInt(u(0x190))/0x5+-parseInt(u(0x191))/0x6+-parseInt(u(0x18c))/0x7*(-parseInt(u(0x18e))/0x8)+-parseInt(u(0x192))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xf0b8e));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var v=a1d;return a1a[v(0x18a)]()['search']('(((.+)+)+)+$')[v(0x18a)]()['constructor'](a1a)[v(0x189)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x188;var f=c[d];return f;},a1d(a,b);}import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';function a1c(){var w=['1121998yIdwmM','8GhZMjI','2132992PnICwA','1044185BhCYsH','9853410XWSnwZ','5748156ozTTIY','495916cgsiNO','search','toString','12JbIcps','2877014PTzRfl'];a1c=function(){return w;};return a1c();}import'./proxy.js';
@@ -1 +1 @@
1
- (function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0xfe))/0x1*(-parseInt(u(0x101))/0x2)+-parseInt(u(0x108))/0x3+-parseInt(u(0x102))/0x4+-parseInt(u(0x109))/0x5*(-parseInt(u(0xfd))/0x6)+parseInt(u(0xff))/0x7+parseInt(u(0x100))/0x8+-parseInt(u(0x107))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x94598));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var v=a2d;return a2a['toString']()['search'](v(0x106))[v(0x105)]()[v(0x103)](a2a)[v(0x104)](v(0x106));});a2a();function a2c(){var w=['912852aNNQqv','constructor','search','toString','(((.+)+)+)+$','5163489CkvCzb','128637kammdV','195KnFuhP','177402jCkuht','827wTQLQf','7247457gUsiIk','2302520YDerty','2476eRKEmK'];a2c=function(){return w;};return a2c();}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xfd;var f=c[d];return f;},a2d(a,b);}import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
1
+ (function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0x1b0))/0x1+parseInt(u(0x1a7))/0x2+-parseInt(u(0x1a6))/0x3+parseInt(u(0x1a8))/0x4+parseInt(u(0x1ae))/0x5+-parseInt(u(0x1a5))/0x6*(-parseInt(u(0x1ad))/0x7)+parseInt(u(0x1a4))/0x8*(-parseInt(u(0x1af))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xa632e));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var v=a2d;return a2a[v(0x1ac)]()['search'](v(0x1aa))[v(0x1ac)]()[v(0x1a9)](a2a)[v(0x1ab)](v(0x1aa));});a2a();function a2c(){var w=['148437tlSCSn','278431oXHiYV','400HAECwr','1687398FkusAO','305433JiCvIC','152228xjdSIs','367620ONYKdd','constructor','(((.+)+)+)+$','search','toString','21iOayWY','1585310IRyCUl'];a2c=function(){return w;};return a2c();}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x1a4;var f=c[d];return f;},a2d(a,b);}import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- const a3E=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0xd3))/0x1*(-parseInt(w(0xd4))/0x2)+parseInt(w(0xc6))/0x3*(parseInt(w(0xc4))/0x4)+parseInt(w(0xd0))/0x5*(-parseInt(w(0xde))/0x6)+parseInt(w(0xbc))/0x7+-parseInt(w(0xdd))/0x8*(parseInt(w(0xca))/0x9)+parseInt(w(0xd7))/0xa*(parseInt(w(0xdb))/0xb)+-parseInt(w(0xda))/0xc*(-parseInt(w(0xbb))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x9b216));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){if(x(0xc5)===x(0xcb))d(e[x(0xc9)](f));else{const f=c[x(0xc1)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a['toString']()[y(0xbe)](y(0xcf))[y(0xe0)]()[y(0xce)](a3a)[y(0xbe)](y(0xcf));});a3a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const D=a3d;function h(k){const z=a3d;if(z(0xbd)===z(0xbd))try{j(d[z(0xc2)](k));}catch(l){g(l);}else c(d);}function i(k){const A=a3d;if(A(0xdc)==='gBDgQ')c(d);else try{if('eslkX'===A(0xd8))j(d[A(0xc9)](k));else try{let n=k[0x0],o=this[A(0xc0)](n);o&&this[A(0xc7)](n,n,o);}catch(p){r['error'](p),s[A(0xd2)](0x0);}}catch(n){if(A(0xd5)!==A(0xd5))try{i(j[A(0xc9)](k));}catch(p){m(p);}else g(n);}}function j(k){const B=a3d;if(B(0xcc)!==B(0xcc)){const n=g?function(){const C=B;if(n){const u=q[C(0xc1)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else k[B(0xc8)]?f(k[B(0xcd)]):e(k[B(0xcd)])[B(0xd6)](h,i);}j((d=d[D(0xc1)](a,b||[]))[D(0xc2)]());});};import{Command}from'../../command.js';function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xbb;let f=c[d];return f;},a3d(a,b);}const AWSCommand=Command[a3E(0xdf)]({'name':a3E(0xbf),'usage':'maka\x20aws\x20<command>','minArgLength':0x1,'description':a3E(0xd1),'examples':[a3E(0xe1),'maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;try{let c=a[0x0],d=this['findSubCommand'](c);d&&this['runSubCommand'](c,a,b);}catch(f){if(F(0xd9)==='VpKUg')console[F(0xc3)](f),process[F(0xd2)](0x0);else try{i(j[F(0xc2)](k));}catch(h){m(h);}}});});export default AWSCommand;function a3c(){const G=['pFwwP','search','aws','findSubCommand','apply','next','error','10232UKziWy','ocZSy','117eYXfnR','runSubCommand','done','throw','2115441YJaXoC','jROzO','omtdJ','value','constructor','(((.+)+)+)+$','3735845XiOLKU','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','exit','4wbdmUE','12786LhsOAy','PEmkS','then','9940AafnPy','eslkX','VpKUg','41916SzpwxS','6754VkClmZ','IgalE','8TYzOxA','6iGYPvK','create','toString','maka\x20aws:describe-instance','1638GArfGn','3451056SvTMOh'];a3c=function(){return G;};return a3c();}
1
+ const a3E=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0x1b3))/0x1+-parseInt(w(0x1c1))/0x2*(parseInt(w(0x1c9))/0x3)+parseInt(w(0x1b1))/0x4*(parseInt(w(0x1b0))/0x5)+-parseInt(w(0x1c2))/0x6*(parseInt(w(0x1ca))/0x7)+parseInt(w(0x1aa))/0x8+-parseInt(w(0x1c6))/0x9*(parseInt(w(0x1cb))/0xa)+parseInt(w(0x1ab))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe5e1e));function a3c(){const G=['maka\x20aws:di','1766397rXMPum','maka\x20aws:describe-instance','throw','maka\x20aws\x20<command>','exit','mCPEd','QjlCt','dqlbO','omTzQ','then','aws','create','findSubCommand','apply','2134jtxtml','36qplTpO','runSubCommand','done','yoZgp','15556194gzkGUo','search','(((.+)+)+)+$','3462eYuSWi','318745ZMJYHU','10Vgdsoa','value','tlVZF','10411824hNgpvc','38859832JgrqqN','toString','OiRuQ','constructor','next','795EbgUdL','27844AxInzY'];a3c=function(){return G;};return a3c();}const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x1cd)===x(0x1b8))try{i(j[x(0x1b5)](k));}catch(e){m(e);}else{const e=a?function(){const y=x;if(c){const f=c[y(0x1c0)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0x1ac)]()[z(0x1c7)]('(((.+)+)+)+$')[z(0x1ac)]()[z(0x1ae)](a3a)[z(0x1c7)](z(0x1c8));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a3d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const D=a3d;function h(k){const A=a3d;if(A(0x1b9)!==A(0x1bb))try{j(d[A(0x1af)](k));}catch(l){g(l);}else{const n=d[A(0x1c0)](e,arguments);return f=null,n;}}function i(k){const B=a3d;try{j(d[B(0x1b5)](k));}catch(l){g(l);}}function j(k){const C=a3d;'ODwqe'!==C(0x1ba)?k[C(0x1c4)]?f(k[C(0x1cc)]):e(k[C(0x1cc)])[C(0x1bc)](h,i):this[C(0x1c3)](d,e,f);}j((d=d[D(0x1c0)](a,b||[]))[D(0x1af)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3E(0x1be)]({'name':a3E(0x1bd),'usage':a3E(0x1b6),'minArgLength':0x1,'description':'Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','examples':[a3E(0x1b4),a3E(0x1b2)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x1c5)!==F(0x1c5))try{i(j['next'](k));}catch(d){m(d);}else try{let d=a[0x0],f=this[F(0x1bf)](d);f&&(F(0x1ad)==='OiRuQ'?this[F(0x1c3)](d,a,b):c(d));}catch(h){'ynyTG'==='STxQL'?d(h[F(0x1b5)](f)):(console['error'](h),process[F(0x1b7)](0x0));}});});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ak=a4d;(function(a,b){const ag=a4d,c=a();while(!![]){try{const d=parseInt(ag(0x223))/0x1*(parseInt(ag(0x239))/0x2)+parseInt(ag(0x22e))/0x3+-parseInt(ag(0x1de))/0x4+parseInt(ag(0x1e4))/0x5*(-parseInt(ag(0x1ce))/0x6)+parseInt(ag(0x1e2))/0x7*(parseInt(ag(0x213))/0x8)+-parseInt(ag(0x1d0))/0x9+parseInt(ag(0x226))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x27c7b));const a4b=(function(){let a=!![];return function(b,c){const ah=a4d;if(ah(0x21d)===ah(0x236))c=d;else{const e=a?function(){const ai=ah;if(c){const f=c[ai(0x228)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a4a=a4b(this,function(){const aj=a4d;return a4a['toString']()['search'](aj(0x201))[aj(0x1fb)]()[aj(0x1d7)](a4a)['search'](aj(0x201));});a4a();var __awaiter=this&&this[a4ak(0x1f0)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const ao=a4d;function h(k){const al=a4d;try{al(0x1f9)===al(0x22f)?c(d):j(d[al(0x204)](k));}catch(m){al(0x1c9)!==al(0x210)?g(m):c['error'](d);}}function i(k){const am=a4d;try{if(am(0x22a)===am(0x22a))j(d[am(0x22b)](k));else{if(e){const m=i[am(0x228)](j,arguments);return k=null,m;}}}catch(m){g(m);}}function j(k){const an=a4d;k[an(0x1ef)]?f(k[an(0x231)]):e(k[an(0x231)])['then'](h,i);}j((d=d['apply'](a,b||[]))[ao(0x204)]());});};function a4c(){const aC=['Subnet:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','(((.+)+)+)+$','**\x20Available\x20Security\x20Groups\x20**','Name','next','getProjectConfig','**\x20Available\x20Subnets\x20**','date','1:1','alias','QGCDE','dmdgw','cider','bnwsy','MSSjq','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','SxFWX','Setting\x20Subnet\x20ID\x20to\x20','amazon','40DgLSEh','\x22Web\x20App\x22','lhMRQ','log','atkuo','qkBzR','},\x20{Key=Name,Value=','ask','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','name','syhUJ','confirm','create','parse','Security\x20Group:\x20','env','19GIyEWi','ROStB','\x20SUBNETID:\x20','1989280kNkmfD','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','apply','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','wMZGw','throw','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Instace\x20Type:\x20','854565QkQepi','nyysP','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','value','ZAmxn','createKeyPair','**\x20Available\x20key-pairs\x20**','number','lyvTc','success','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','1834jkmjFS','\x20SG\x20NAME:\x20','cQPHE','fsi','\x20SGID:\x20','join','Desc','notice','BfsJQ','ImageID:','Please\x20choose\x20a\x20key\x20to\x20use:\x20','}]\x22','forEach','Setting\x20SG\x20ID\x20to:\x20','\x20DESCRIPTION:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','push','bFwmz','chooseVPC','split','QtwIz','t3.micro','4722OorFXX','\x20AMIID:\x20','1032174cLsPmh','odSBZ','pwtNg','ec2createSG','ID:\x20','desc','ArRDg','constructor','sbHBB','\x20:\x20','\x20CIDR:\x20','sort','Setting\x20the\x20key-pair\x20to:\x20','subnetId','1069968CTCbUc','amiId','Open\x20port\x20443\x20for\x20SSL?','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','195895JYejSU','exit','610qUWJhz','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','string','cidr','Instance\x20Count:\x20','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','error','sgId','kAzQh','ec2create','create-instance','done','__awaiter','Security\x20Group\x20Name:\x20[','build\x20on\x20','QhvbB','*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','Setting\x20AMI\x20ID\x20to\x20','nuXgg','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','oOTFO','\x20AZONE:\x20','toString','VxNKl','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'];a4c=function(){return aC;};return a4c();}import a4C from'./aws.command.js';import{execSync}from'child_process';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a4d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a4ak(0x21f)]({'name':a4ak(0x1ee),'aliases':['ci'],'usage':'maka\x20aws:create-instance','description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ap=a4d;try{const c=this[ap(0x23c)][ap(0x205)](),d=new AWS(),{appName:f}=c,g=this[ap(0x23c)]['getConfigFromShorthand'](b[ap(0x222)]);let h=f+'-'+g,i=(yield Actions[ap(0x21a)]('EC2\x20Name:\x20['+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[ap(0x21e)](ap(0x238));let r='';q&&('nylMz'!=='KjTpn'?r=yield d[ap(0x233)]({'env':g}):(e=f[ap(0x1dd)],g[ap(0x237)](ap(0x211)+h)));try{if(ap(0x217)!==ap(0x20d)){Log[ap(0x1bf)](ap(0x234));let w=r?r:i,x=d['ec2describeKeys']({'suggestion':w}),y=(yield Actions[ap(0x21a)](ap(0x1c2)))||'-1';if(parseInt(y)<0x0){if(ap(0x1ec)===ap(0x1fc))f=[g,h][ap(0x1bd)](':'),i[ap(0x237)](ap(0x1c7)+j);else{Log[ap(0x1ea)](ap(0x20f)),Log[ap(0x1bf)]('No\x20instance\x20has\x20been\x20created.');return;}}x===null||x===void 0x0?void 0x0:x[ap(0x1c4)](function(A){const aq=ap;if(parseInt(y)===A['id']){if(aq(0x1d1)!==aq(0x1d1)){if(f[aq(0x209)]===aq(0x212)){let C=k[aq(0x1be)][aq(0x1cb)](aq(0x1f2))[0x1];l[aq(0x1c8)]({'amiId':m['ID'],'desc':n[aq(0x1be)],'date':C});}}else j=A[aq(0x21c)],Log[aq(0x237)](aq(0x1dc)+j);}});}else e[ap(0x1bf)](ap(0x1d4)+f['id']+ap(0x23a)+g[ap(0x21c)]+ap(0x1bc)+h['sgId']);}catch(B){Log[ap(0x1ea)](B);}k=yield d[ap(0x1ca)]();let s=yield Actions[ap(0x21e)](ap(0x22c)),t;if(s){let C=k===''?d['chooseVPC']():k,D=yield Actions[ap(0x21e)](ap(0x1e0));t=(yield Actions[ap(0x21a)](ap(0x1f1)+i+']'))||i,d[ap(0x1d3)]({'description':ap(0x214),'name':t,'vpcId':C,'ssl':D});}t=i;try{if('itLWE'!=='Wjrty'){Log['notice'](ap(0x202));let E=execSync(ap(0x1e5))[ap(0x1fb)](),F=JSON[ap(0x220)](E),G=[];F[ap(0x1c4)](function(I,J){const ar=ap;ar(0x20e)!==ar(0x20a)?G[ar(0x1c8)]({'id':J,'name':I[ar(0x203)],'sgId':I['ID']}):(d[ar(0x1ea)](e),f[ar(0x1e3)](0x0));}),G[ap(0x1c4)](function(I){const as=ap;as(0x1d6)===as(0x20b)?f[as(0x1c8)]({'id':g,'cidr':h[as(0x20c)],'az':i['az'],'subnetId':j[as(0x1dd)]}):I[as(0x21c)]===t?Log[as(0x1bf)](as(0x1d4)+I['id']+as(0x23a)+I[as(0x21c)]+'\x20SGID:\x20'+I['sgId']):as(0x1d2)==='pwtNg'?console['log']('ID:\x20'+I['id']+'\x20SG\x20NAME:\x20'+I[as(0x21c)]+as(0x1bc)+I[as(0x1eb)]):e['push']({'id':f,'amiId':g[as(0x1df)],'desc':h[as(0x1d5)]});});let H=(yield Actions[ap(0x21a)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';G[ap(0x1c4)](function(I){const at=ap;'cDRgY'!=='cDRgY'?h(i)===j['id']&&(o=p['name'],q[at(0x237)](at(0x1dc)+r)):I['id']===parseInt(H)&&(l=I[at(0x1eb)],Log[at(0x237)](at(0x1c5)+l+'\x0a'));});if(l==='')throw Log[ap(0x1ea)](ap(0x1fd));}else i['id']===j(k)&&(q=r[ap(0x1df)],s[ap(0x237)]('Setting\x20AMI\x20ID\x20to\x20'+t+ap(0x1d9)+u['desc']));}catch(J){Log[ap(0x1ea)](J);}try{let K=0x7e6;Log[ap(0x1bf)]('**\x20Available\x20AMIs\x20**');let L=execSync('aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*'+K+ap(0x1f4))[ap(0x1fb)](),M=JSON[ap(0x220)](L),N=[],O=[];M[ap(0x1c4)](function(Q,R){const au=ap;if('PtmnE'!==au(0x23b)){if(Q['alias']===au(0x212)){if(au(0x218)==='ExyWC')c[au(0x1ea)](d);else{let T=Q[au(0x1be)][au(0x1cb)](au(0x1f2))[0x1];N[au(0x1c8)]({'amiId':Q['ID'],'desc':Q[au(0x1be)],'date':T});}}}else c(d);}),N[ap(0x1db)](function(Q,R){const av=ap;if(av(0x224)!=='ROStB')throw R[av(0x1ea)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else return new Date(R[av(0x207)])['getTime']()-new Date(Q[av(0x207)])['getTime']();}),N['forEach'](function(Q,R){const aw=ap;O['push']({'id':R,'amiId':Q[aw(0x1df)],'desc':Q[aw(0x1d5)]});}),O['forEach'](function(Q){const ax=ap;console['log']('ID:\x20'+Q['id']+ax(0x1cf)+Q['amiId']+ax(0x1c6)+Q['desc']);});let P=(yield Actions[ap(0x21a)](ap(0x200)))||'0';O[ap(0x1c4)](function(Q){const ay=ap;Q['id']===parseInt(P)&&('ZAmxn'!==ay(0x232)?(e=f[ay(0x1eb)],g['success']('Setting\x20SG\x20ID\x20to:\x20'+h+'\x0a')):(m=Q[ay(0x1df)],Log['success'](ay(0x1f6)+m+ay(0x1d9)+Q['desc'])));});if(m===''){if('lvQib'==='lvQib')throw Log['error'](ap(0x1fd));else h['id']===i(j)&&(o=p[ap(0x1dd)],q['success'](ap(0x211)+r));}}catch(R){Log[ap(0x1ea)](R);}try{Log['notice'](ap(0x206));let S=execSync(ap(0x21b))[ap(0x1fb)](),T=JSON['parse'](S),U=[];T[ap(0x1c4)](function(W,X){const az=ap;U[az(0x1c8)]({'id':X,'cidr':W['cider'],'az':W['az'],'subnetId':W[az(0x1dd)]});}),U['forEach'](function(W){const aA=ap;console[aA(0x216)](aA(0x1d4)+W['id']+aA(0x1da)+W[aA(0x1e7)]+aA(0x1fa)+W['az']+aA(0x225)+W['subnetId']);});let V=(yield Actions[ap(0x21a)](ap(0x229)))||'0';U['forEach'](function(W){const aB=ap;aB(0x1f7)!=='nuXgg'?f[aB(0x216)](aB(0x1d4)+g['id']+aB(0x1da)+h['cidr']+aB(0x1fa)+i['az']+'\x20SUBNETID:\x20'+j['subnetId']):W['id']===parseInt(V)&&(o=W[aB(0x1dd)],Log[aB(0x237)](aB(0x211)+o));});if(o===''){if(ap(0x1c0)!==ap(0x1c0))c[ap(0x1ea)](d);else throw Log[ap(0x1ea)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}}catch(X){Log[ap(0x1ea)](X);}let u=ap(0x208);try{if('MfeKD'!=='BLPxX'){let Y=(yield Actions['ask']('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||'1:1',Z=Y['split'](':')[0x0],a0=Y['split'](':')[0x1];if(typeof parseInt(Z)===ap(0x235)&&typeof parseInt(a0)===ap(0x235)){if(ap(0x1d8)==='GgHdT')try{i(j[ap(0x22b)](k));}catch(a2){m(a2);}else u=[Z,a0][ap(0x1bd)](':'),Log[ap(0x237)](ap(0x1c7)+u);}}else d(e['next'](f));}catch(a3){Log[ap(0x1ea)](a3);}try{let a4=(yield Actions[ap(0x21a)](ap(0x1f8)))||ap(0x1cd);typeof a4===ap(0x1e6)&&(n=a4);}catch(a5){Log[ap(0x1ea)](a5);}try{let a6=JSON[ap(0x220)](execSync(ap(0x1e1)+o+ap(0x1f5))[ap(0x1fb)]())[0x0]['subnet'];Log[ap(0x1bf)](ap(0x1c1)+m),Log['notice'](ap(0x1e8)+u),Log[ap(0x1bf)](ap(0x22d)+n),Log[ap(0x1bf)]('Key-Pair:\x20'+j),Log[ap(0x1bf)](ap(0x221)+l),Log[ap(0x1bf)](ap(0x1ff)+a6);let a7=yield Actions[ap(0x21e)](ap(0x1e9));if(a7){if('lhMRQ'===ap(0x215)){let a8=d[ap(0x1ed)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':ap(0x230)+g+ap(0x219)+i+ap(0x1c3)});if(a8){if(ap(0x1cc)===ap(0x1cc))Log[ap(0x237)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log['bright'](ap(0x1fe));else throw b['error'](ap(0x1fd));}}else b['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');}else Log['notice'](ap(0x227));}catch(ab){ap(0x1f3)===ap(0x1f3)?(console[ap(0x216)](ab),Log['error'](ab)):h[ap(0x1ef)]?i(j[ap(0x231)]):k(l[ap(0x231)])['then'](m,n);}}catch(ad){if('RictP'!=='JulJi')console['error'](ad),process[ap(0x1e3)](0x0);else try{i(j[ap(0x204)](k));}catch(af){m(af);}}});},a4C);
1
+ function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xa1;let f=c[d];return f;},a4d(a,b);}const a4al=a4d;(function(a,b){const ai=a4d,c=a();while(!![]){try{const d=parseInt(ai(0x106))/0x1+-parseInt(ai(0xeb))/0x2*(-parseInt(ai(0xa4))/0x3)+-parseInt(ai(0xb1))/0x4+parseInt(ai(0xcc))/0x5+parseInt(ai(0xd1))/0x6*(parseInt(ai(0xb0))/0x7)+parseInt(ai(0xd2))/0x8+-parseInt(ai(0x100))/0x9*(parseInt(ai(0xe7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x77456));function a4c(){const aF=['orWkU','sort','done','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','854591KbTyke','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','cidr','QomZs','Name','yKFxy','ztcZp','DcpRZ','next','**\x20Available\x20key-pairs\x20**','Setting\x20Subnet\x20ID\x20to\x20','hqMbL','}]\x22','\x20SG\x20NAME:\x20','ask','GlHgr','\x20AMIID:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','getTime','create-instance','cider','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','ID:\x20','No\x20instance\x20has\x20been\x20created.','1:1','rdOjs','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','WEQWX','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Security\x20Group:\x20','NsxTv','ec2describeKeys','EC2\x20Name:\x20[','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','asVtd','1448157CeCDrD','},\x20{Key=Name,Value=','success','subnetId','\x20AZONE:\x20','search','then','Desc','jCYpL','chooseVPC','NSbOE','CTISV','73241qwugtC','50740lHKYQd','Key-Pair:\x20','number','Setting\x20the\x20key-pair\x20to:\x20','value','(((.+)+)+)+$','Ecccs','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','Instace\x20Type:\x20','\x22Web\x20App\x22','join','createKeyPair','bright','pWLkn','apply','Open\x20port\x20443\x20for\x20SSL?','ttpbP','**\x20Available\x20AMIs\x20**','fsi','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20CIDR:\x20','Setting\x20SG\x20ID\x20to:\x20','kdLHc','\x20DESCRIPTION:\x20','osKiC','aws\x20ec2\x20describe-images\x20--filters\x20\x22Name=description,Values=*LTS*\x22\x20\x22Name=name,Values=*server*\x22\x20\x22Name=name,Values=*ubuntu*\x22\x20\x22Name=creation-date,Values=*','split','4183980NmRWTS','error','IPcDs','\x20:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','402tfmziu','5669864BiPYsS','log','parse','name','\x20SGID:\x20','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','Subnet:\x20','toString','maka\x20aws:create-instance','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','confirm','\x20SUBNETID:\x20','build\x20on\x20','exit','**\x20Available\x20Subnets\x20**','ec2create','ImageID:','forEach','amazon','string','throw','8200JeSPok','**\x20Available\x20Security\x20Groups\x20**','subnet','XUHuR','4WlzJKp','__awaiter','getProjectConfig','push','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','sgId','pfoIk','Setting\x20AMI\x20ID\x20to\x20','date','ec2createSG','nxiDq','env','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','notice','PxFNF','Security\x20Group\x20Name:\x20[','mmcYo','desc','getConfigFromShorthand','ooOTo','amiId','39132NoRjzv','Setting\x20the\x20number\x20of\x20instances\x20to:\x20'];a4c=function(){return aF;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const aj=a4d;if(aj(0x115)!=='BptBk'){if(c){const e=c['apply'](b,arguments);return c=null,e;}}else e['log'](aj(0x11d)+f['id']+aj(0x116)+g['amiId']+'\x20DESCRIPTION:\x20'+h['desc']);}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ak=a4d;return a4a[ak(0xd9)]()['search'](ak(0xb6))['toString']()['constructor'](a4a)['search'](ak(0xb6));});a4a();var __awaiter=this&&this[a4al(0xec)]||function(a,b,c,d){function e(f){const am=a4d;if(am(0xfe)===am(0xaf))throw b[am(0xcd)](am(0xc4));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const aq=a4d;function h(k){const an=a4d;try{j(d[an(0x10e)](k));}catch(l){an(0xa3)==='asVtd'?g(l):i['id']===j(k)&&(q=r[an(0xff)],s[an(0xa6)]('Setting\x20AMI\x20ID\x20to\x20'+t+'\x20:\x20'+u[an(0xfc)]));}}function i(k){const ao=a4d;try{j(d[ao(0xe6)](k));}catch(l){ao(0x10b)===ao(0x10b)?g(l):h[ao(0x104)]?i(j[ao(0xb5)]):k(l['value'])[ao(0xaa)](m,n);}}function j(k){const ap=a4d;k['done']?f(k['value']):e(k[ap(0xb5)])[ap(0xaa)](h,i);}j((d=d['apply'](a,b||[]))[aq(0x10e)]());});};import a4C from'./aws.command.js';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a4al(0x119),'aliases':['ci'],'usage':a4al(0xda),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4al(0xf6)],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a4d;if(ar(0xc7)!==ar(0xc7))return c[ar(0xd9)]()[ar(0xa9)](ar(0xb6))[ar(0xd9)]()['constructor'](d)[ar(0xa9)](ar(0xb6));else try{const d=this[ar(0xc3)][ar(0xed)](),f=new AWS(),{appName:g}=d,h=this[ar(0xc3)][ar(0xfd)](b[ar(0xf6)]);let i=g+'-'+h,j=(yield Actions[ar(0x114)](ar(0xa1)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions['confirm'](ar(0xd7));let s='';r&&(s=yield f[ar(0xbc)]({'env':h}));try{if(ar(0x102)!==ar(0x10d)){Log[ar(0xf8)](ar(0x10f));let w=s?s:j,x=f[ar(0x126)]({'suggestion':w}),y=(yield Actions['ask'](ar(0xd0)))||'-1';if(parseInt(y)<0x0){Log[ar(0xcd)]('You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key'),Log[ar(0xf8)](ar(0x11e));return;}x===null||x===void 0x0?void 0x0:x['forEach'](function(z){const as=ar;if(parseInt(y)===z['id']){if(as(0xf1)===as(0xf1))k=z['name'],Log[as(0xa6)](as(0xb4)+k);else{if(e){const B=i[as(0xbf)](j,arguments);return k=null,B;}}}});}else c(d);}catch(A){if(ar(0x120)==='rdOjs')Log[ar(0xcd)](A);else{const C=g?function(){const at=ar;if(C){const D=q[at(0xbf)](r,arguments);return s=null,D;}}:function(){};return l=![],C;}}l=yield f[ar(0xad)]();let t=yield Actions[ar(0xdc)](ar(0x11b)),u;if(t){let C=l===''?f[ar(0xad)]():l,D=yield Actions['confirm'](ar(0xc0));u=(yield Actions[ar(0x114)](ar(0xfa)+j+']'))||j,f[ar(0xf4)]({'description':ar(0xba),'name':u,'vpcId':C,'ssl':D});}u=j;try{Log[ar(0xf8)](ar(0xe8));let E=execSync(ar(0xef))[ar(0xd9)](),F=JSON[ar(0xd4)](E),G=[];F['forEach'](function(I,J){const au=ar;G['push']({'id':J,'name':I[au(0x10a)],'sgId':I['ID']});}),G[ar(0xe3)](function(I){const av=ar;I['name']===u?Log[av(0xf8)]('ID:\x20'+I['id']+av(0x113)+I[av(0xd5)]+av(0xd6)+I['sgId']):console['log']('ID:\x20'+I['id']+av(0x113)+I[av(0xd5)]+'\x20SGID:\x20'+I[av(0xf0)]);});let H=(yield Actions[ar(0x114)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';G[ar(0xe3)](function(I){const aw=ar;I['id']===parseInt(H)&&(m=I[aw(0xf0)],Log['success'](aw(0xc6)+m+'\x0a'));});if(m===''){if('zSUzo'===ar(0xf5))e=f[ar(0xd5)],g[ar(0xa6)](ar(0xb4)+h);else throw Log[ar(0xcd)](ar(0xc4));}}catch(J){if(ar(0xae)===ar(0xae))Log[ar(0xcd)](J);else throw b[ar(0xcd)](ar(0xc4));}try{if(ar(0xc9)!==ar(0xc9))e[ar(0xee)]({'id':f,'name':g[ar(0x10a)],'sgId':h['ID']});else{let M=0x7e6;Log['notice'](ar(0xc2));let N=execSync(ar(0xca)+M+'*\x22\x20\x22Name=root-device-type,Values=ebs\x22\x20\x22Name=description,Values=*Ubuntu?\x20??.??\x20LTS?\x20amd64\x20bionic\x20image*\x22\x20--query\x20\x22Images[*].{Desc:Description,ID:ImageId,alias:ImageOwnerAlias}\x22')[ar(0xd9)](),O=JSON['parse'](N),P=[],Q=[];O[ar(0xe3)](function(S,T){const ax=ar;if(S['alias']===ax(0xe4)){let U=S[ax(0xab)][ax(0xcb)](ax(0xde))[0x1];P[ax(0xee)]({'amiId':S['ID'],'desc':S[ax(0xab)],'date':U});}}),P[ar(0x103)](function(S,T){const ay=ar;if(ay(0x10c)!==ay(0x10c))f=[g,h][ay(0xbb)](':'),i['success'](ay(0x101)+j);else return new Date(T[ay(0xf3)])[ay(0x118)]()-new Date(S[ay(0xf3)])[ay(0x118)]();}),P[ar(0xe3)](function(S,T){const az=ar;Q[az(0xee)]({'id':T,'amiId':S[az(0xff)],'desc':S['desc']});}),Q['forEach'](function(S){const aA=ar;'XUHuR'!==aA(0xea)?c[aA(0xcd)](d):console[aA(0xd3)](aA(0x11d)+S['id']+aA(0x116)+S[aA(0xff)]+aA(0xc8)+S[aA(0xfc)]);});let R=(yield Actions[ar(0x114)]('Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';Q[ar(0xe3)](function(S){const aB=ar;'tBESL'!=='tBESL'?c=d:S['id']===parseInt(R)&&(n=S[aB(0xff)],Log[aB(0xa6)](aB(0xf2)+n+aB(0xcf)+S[aB(0xfc)]));});if(n===''){if(ar(0xbe)!==ar(0xbe))d(e[ar(0x10e)](f));else throw Log[ar(0xcd)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}}}catch(T){Log[ar(0xcd)](T);}try{Log['notice'](ar(0xe0));let U=execSync(ar(0x123))[ar(0xd9)](),V=JSON['parse'](U),W=[];V[ar(0xe3)](function(Y,Z){const aC=ar;W[aC(0xee)]({'id':Z,'cidr':Y['cider'],'az':Y['az'],'subnetId':Y[aC(0xa7)]});}),W[ar(0xe3)](function(Y){const aD=ar;console[aD(0xd3)](aD(0x11d)+Y['id']+'\x20CIDR:\x20'+Y[aD(0x108)]+aD(0xa8)+Y['az']+aD(0xdd)+Y[aD(0xa7)]);});let X=(yield Actions[ar(0x114)](ar(0xdb)))||'0';W['forEach'](function(Y){const aE=ar;Y['id']===parseInt(X)&&(p=Y[aE(0xa7)],Log[aE(0xa6)](aE(0x110)+p));});if(p===''){if(ar(0xfb)===ar(0xfb))throw Log[ar(0xcd)](ar(0xc4));else c['success'](ar(0x107)),d[ar(0xbd)](ar(0x105));}}catch(Z){if(ar(0xb7)===ar(0xc1)){let a1=l[ar(0xe1)]({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':'\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='+s+ar(0xa5)+t+ar(0x112)});a1&&(w[ar(0xa6)](ar(0x107)),x[ar(0xbd)](ar(0x105)));}else Log['error'](Z);}let v=ar(0x11f);try{let a1=(yield Actions[ar(0x114)](ar(0x117)))||ar(0x11f),a2=a1['split'](':')[0x0],a3=a1[ar(0xcb)](':')[0x1];typeof parseInt(a2)==='number'&&typeof parseInt(a3)===ar(0xb3)&&(v=[a2,a3][ar(0xbb)](':'),Log[ar(0xa6)](ar(0x101)+v));}catch(a4){Log[ar(0xcd)](a4);}try{let a5=(yield Actions[ar(0x114)](ar(0xb8)))||'t3.micro';typeof a5===ar(0xe5)&&(o=a5);}catch(a6){Log[ar(0xcd)](a6);}try{if(ar(0x125)===ar(0x125)){let a7=JSON[ar(0xd4)](execSync(ar(0x121)+p+ar(0xf7))[ar(0xd9)]())[0x0][ar(0xe9)];Log[ar(0xf8)](ar(0xe2)+n),Log[ar(0xf8)]('Instance\x20Count:\x20'+v),Log[ar(0xf8)](ar(0xb9)+o),Log['notice'](ar(0xb2)+k),Log['notice'](ar(0x124)+m),Log[ar(0xf8)](ar(0xd8)+a7);let a8=yield Actions[ar(0xdc)](ar(0x11c));if(a8){if(ar(0xce)!==ar(0xce))d(e[ar(0xe6)](f));else{let aa=f['ec2create']({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':'\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='+h+ar(0xa5)+j+ar(0x112)});aa&&(ar(0x111)!=='hqMbL'?h(i)===j['id']&&(o=p[ar(0xd5)],q[ar(0xa6)](ar(0xb4)+r)):(Log[ar(0xa6)]('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),Log[ar(0xbd)](ar(0x105))));}}else ar(0x122)===ar(0xac)?c[ar(0xcd)](d):Log['notice'](ar(0xa2));}else f[ar(0xd3)](ar(0x11d)+g['id']+ar(0xc5)+h[ar(0x108)]+'\x20AZONE:\x20'+i['az']+ar(0xdd)+j[ar(0xa7)]);}catch(ae){if(ar(0x109)==='iapJE')return new ae(f['date'])[ar(0x118)]()-new g(h[ar(0xf3)])['getTime']();else console[ar(0xd3)](ae),Log[ar(0xcd)](ae);}}catch(ag){ar(0xf9)==='PxFNF'?(console[ar(0xcd)](ag),process[ar(0xdf)](0x0)):f[ar(0xee)]({'id':g,'cidr':h[ar(0x11a)],'az':i['az'],'subnetId':j['subnetId']});}});},a4C);
@@ -1 +1 @@
1
- const a5E=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=-parseInt(A(0x1e1))/0x1+-parseInt(A(0x1df))/0x2+-parseInt(A(0x1e3))/0x3+parseInt(A(0x1fb))/0x4+parseInt(A(0x1f2))/0x5*(-parseInt(A(0x1ee))/0x6)+parseInt(A(0x1ec))/0x7+parseInt(A(0x1dc))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x64183));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a5d;if(B(0x1f6)==='fHFOH'){const f=g?function(){const C=B;if(f){const u=q[C(0x1e2)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{if(c){const f=c[B(0x1e2)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const D=a5d;return a5a[D(0x1e4)]()['search'](D(0x1d9))[D(0x1e4)]()[D(0x1db)](a5a)[D(0x1e5)]('(((.+)+)+)+$');});function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x1d7;let f=c[d];return f;},a5d(a,b);}function a5c(){const L=['446044Haynfn','createKeyPair','next','TMfET','ckp','(((.+)+)+)+$','ynilS','constructor','9842128IOIRlX','uODQL','maka\x20aws\x20create-key-pair','984192YavDOT','fsi','215016LovUpG','apply','1811148UqLmvL','toString','search','ZtLTE','then','done','getConfigFromShorthand','ADJCP','error','5494895NAPryx','value','2435682WSkgeZ','exit','create','kssRW','5UrXqWt','create-key-pair','env','throw','lXbxt','PNFfy','__awaiter','help','JciOi'];a5c=function(){return L;};return a5c();}a5a();var __awaiter=this&&this[a5E(0x1f8)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const J=a5d;function h(k){const F=a5d;if(F(0x1f7)!=='gRgUJ')try{j(d[F(0x1fd)](k));}catch(l){g(l);}else return c[F(0x1e4)]()[F(0x1e5)](F(0x1d9))[F(0x1e4)]()['constructor'](d)[F(0x1e5)](F(0x1d9));}function i(k){const G=a5d;try{G(0x1fa)!==G(0x1f1)?j(d[G(0x1f5)](k)):d(e[G(0x1fd)](f));}catch(m){G(0x1d7)===G(0x1e6)?c(d):g(m);}}function j(k){const H=a5d;if(H(0x1dd)!==H(0x1da))k[H(0x1e8)]?f(k[H(0x1ed)]):e(k[H(0x1ed)])[H(0x1e7)](h,i);else return f(this,void 0x0,void 0x0,function*(){const I=H;try{const x=new o(),y=this[I(0x1e0)][I(0x1e9)](p[I(0x1f4)]);x[I(0x1fc)]({'env':y});}catch(z){s[I(0x1eb)](z),t[I(0x1ef)](0x0);}});}j((d=d[J(0x1e2)](a,b||[]))['next']());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5E(0x1f0)]({'name':a5E(0x1f3),'aliases':[a5E(0x1d8)],'usage':a5E(0x1de),'mustBeInMakaProject':!![],'requiredOpts':[a5E(0x1f4)],'validOpts':[a5E(0x1f9)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const K=a5d;if(K(0x1ea)!==K(0x1ea))c(d);else try{const d=new AWS(),f=this[K(0x1e0)]['getConfigFromShorthand'](b[K(0x1f4)]);d['createKeyPair']({'env':f});}catch(g){console['error'](g),process[K(0x1ef)](0x0);}});},a5x);
1
+ function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xe0;let f=c[d];return f;},a5d(a,b);}const a5F=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=parseInt(y(0xeb))/0x1+-parseInt(y(0xff))/0x2+-parseInt(y(0xe5))/0x3+parseInt(y(0xfc))/0x4*(-parseInt(y(0xf3))/0x5)+-parseInt(y(0xe0))/0x6*(parseInt(y(0xee))/0x7)+-parseInt(y(0xe7))/0x8+parseInt(y(0xef))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xa6208));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const z=a5d;return a5a['toString']()[z(0xfd)]('(((.+)+)+)+$')[z(0xf0)]()[z(0xf2)](a5a)[z(0xfd)]('(((.+)+)+)+$');});function a5c(){const H=['1077661zxBVrv','kBuqr','getConfigFromShorthand','70QleOaF','29880261wwezzp','toString','error','constructor','370355HlKEXf','createKeyPair','done','apply','env','TSovm','ScjuI','fsi','MoNPt','56CBcZHZ','search','then','1308482IXjxbb','help','635574DGrLRu','cTcxw','ckp','create-key-pair','next','2833539zRaIWp','exit','177568RkgcmI','(((.+)+)+)+$','throw','maka\x20aws\x20create-key-pair'];a5c=function(){return H;};return a5c();}a5a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const A=a5d;if('kBuqr'===A(0xec))return f instanceof c?f:new c(function(g){g(f);});else try{i(j[A(0xe9)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const E=a5d;function h(k){const B=a5d;if(B(0xe1)==='Crhps')return c[B(0xf0)]()[B(0xfd)]('(((.+)+)+)+$')[B(0xf0)]()[B(0xf2)](d)['search'](B(0xe8));else try{j(d[B(0xe4)](k));}catch(m){g(m);}}function i(k){const C=a5d;try{C(0xfb)!==C(0xfb)?d(e['throw'](f)):j(d[C(0xe9)](k));}catch(m){g(m);}}function j(k){const D=a5d;if(D(0xf9)===D(0xf9))k[D(0xf5)]?f(k['value']):e(k['value'])[D(0xfe)](h,i);else try{const m=new i(),n=this[D(0xfa)]['getConfigFromShorthand'](j[D(0xf7)]);m['createKeyPair']({'env':n});}catch(r){m[D(0xf1)](r),n[D(0xe6)](0x0);}}j((d=d[E(0xf6)](a,b||[]))[E(0xe4)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5F(0xe3),'aliases':[a5F(0xe2)],'usage':a5F(0xea),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a5F(0x100)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a5d;if(G(0xf8)!==G(0xf8)){if(e){const d=i['apply'](j,arguments);return k=null,d;}}else try{const d=new AWS(),f=this[G(0xfa)][G(0xed)](b['env']);d[G(0xf4)]({'env':f});}catch(g){console[G(0xf1)](g),process[G(0xe6)](0x0);}});},a5x);
@@ -1 +1 @@
1
- const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xb0))/0x1*(-parseInt(v(0xc0))/0x2)+-parseInt(v(0xa3))/0x3+parseInt(v(0xbf))/0x4*(parseInt(v(0xb5))/0x5)+parseInt(v(0xbb))/0x6+parseInt(v(0xc8))/0x7*(parseInt(v(0xca))/0x8)+parseInt(v(0xac))/0x9+-parseInt(v(0xa0))/0xa*(parseInt(v(0xa6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xb8e8c));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if('JYlSQ'==='eNydP')d(e[w(0xb8)](f));else{if(c){if(w(0xaa)==='KxhRZ'){const f=c['apply'](b,arguments);return c=null,f;}else{if(e){const h=i[w(0xa1)](j,arguments);return k=null,h;}}}}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0xb3)]()[x(0xc6)](x(0xc1))[x(0xb3)]()[x(0xa8)](a6a)[x(0xc6)]('(((.+)+)+)+$');});function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xa0;let f=c[d];return f;},a6d(a,b);}a6a();var __awaiter=this&&this[a6y(0xc2)]||function(a,b,c,d){function e(f){const z=a6d;if(z(0xae)!==z(0xae))c(d);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const D=a6d;function h(k){const A=a6d;try{if(A(0xba)!=='jZcAx')j(d[A(0xc4)](k));else{const m=d[A(0xa1)](e,arguments);return f=null,m;}}catch(m){if(A(0xb9)!==A(0xbc))g(m);else try{i(j[A(0xb8)](k));}catch(o){m(o);}}}function i(k){const B=a6d;if(B(0xa4)!=='wmczY')d[B(0xa5)](e),f[B(0xaf)](0x0);else try{B(0xbe)!==B(0xbe)?d(e['next'](f)):j(d['throw'](k));}catch(n){g(n);}}function j(k){const C=a6d;C(0xb7)==='ZxlFo'?h['done']?i(j[C(0xa7)]):k(l[C(0xa7)])[C(0xb4)](m,n):k[C(0xc7)]?f(k[C(0xa7)]):e(k[C(0xa7)])[C(0xb4)](h,i);}j((d=d[D(0xa1)](a,b||[]))[D(0xc4)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0xb2)]({'name':a6y(0xad),'aliases':[a6y(0xc5)],'usage':a6y(0xc9),'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a6d;try{const c=new AWS(),d=this['fsi']['getProjectConfig'](),{appName:f}=d;let g=yield c['chooseVPC'](),h=![];!b[E(0xc3)]&&(h=yield Actions[E(0xbd)]('Open\x20port\x20443\x20for\x20SSL?'));let i=h?E(0xa2):'',j=b[E(0xa9)]?b[E(0xa9)]:''+f+i,k=(yield Actions[E(0xb6)](E(0xb1)+j+']'))||j;c[E(0xab)]({'description':'\x22Web\x20App\x22','name':k,'vpcId':g,'ssl':h});}catch(l){console[E(0xa5)](l),process[E(0xaf)](0x0);}});},a6u);function a6c(){const F=['Security\x20Group\x20Name:\x20[','create','toString','then','520ARkKUO','ask','oDtJe','throw','sHHpC','kFCUX','5766876OFKIFx','BbbxL','confirm','AreKa','32896WFnhDF','1341874dWfzuD','(((.+)+)+)+$','__awaiter','ssl','next','csg','search','done','6003298SdAbmD','maka\x20aws\x20terminate-instance','8JIRIOy','479770IfArBy','apply','-ssl','2186370fToyvQ','wmczY','error','682MjgFjN','value','constructor','name','KxhRZ','ec2createSG','10041831vjaUUE','create-security-group','LLuuw','exit','1WDCPcc'];a6c=function(){return F;};return a6c();}
1
+ const a6x=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x141))/0x1*(-parseInt(v(0x13c))/0x2)+-parseInt(v(0x12e))/0x3*(-parseInt(v(0x14e))/0x4)+-parseInt(v(0x129))/0x5+parseInt(v(0x14f))/0x6+parseInt(v(0x132))/0x7*(parseInt(v(0x14d))/0x8)+-parseInt(v(0x12d))/0x9*(parseInt(v(0x14b))/0xa)+parseInt(v(0x13a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x5a75b));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const w=a6d;return a6a['toString']()[w(0x150)](w(0x145))[w(0x134)]()[w(0x13e)](a6a)[w(0x150)](w(0x145));});a6a();var __awaiter=this&&this[a6x(0x144)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const y=a6d;if('SxwpR'!==y(0x137))return f instanceof g?h:new i(function(m){m(k);});else g(f);});}return new(c||(c=Promise))(function(f,g){const C=a6d;function h(k){const z=a6d;try{j(d['next'](k));}catch(l){z(0x135)==='KwviZ'?g(l):d(l[z(0x12a)](f));}}function i(k){const A=a6d;if(A(0x151)==='IFwcv')try{j(d[A(0x12a)](k));}catch(l){g(l);}else return c['toString']()['search'](A(0x145))[A(0x134)]()['constructor'](d)[A(0x150)]('(((.+)+)+)+$');}function j(k){const B=a6d;k[B(0x148)]?f(k[B(0x130)]):e(k['value'])['then'](h,i);}j((d=d[C(0x139)](a,b||[]))[C(0x138)]());});};import a6u from'./aws.command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x128;let f=c[d];return f;},a6d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a6c(){const E=['fsi','value','exit','7VlSwSs','create','toString','KwviZ','ask','SxwpR','next','apply','3008621tprDZj','ec2createSG','104050XkJTdW','YCrLP','constructor','confirm','ssl','3cZpRlA','name','error','__awaiter','(((.+)+)+)+$','\x22Web\x20App\x22','help','done','Security\x20Group\x20Name:\x20[','csg','1084310DUJfTk','jNoJB','908696RPfvgo','16nSTWNk','586062WZLzVV','search','IFwcv','chooseVPC','109690OorbjQ','throw','maka\x20aws\x20terminate-instance','-ssl','27omehDp','57678dpfLFT'];a6c=function(){return E;};return a6c();}Command[a6x(0x133)]({'name':'create-security-group','aliases':[a6x(0x14a)],'usage':a6x(0x12b),'validOpts':[a6x(0x147)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;if('jNoJB'===D(0x14c))try{const c=new AWS(),d=this[D(0x12f)]['getProjectConfig'](),{appName:f}=d;let g=yield c[D(0x128)](),h=![];!b[D(0x140)]&&(h=yield Actions[D(0x13f)]('Open\x20port\x20443\x20for\x20SSL?'));let i=h?D(0x12c):'',j=b[D(0x142)]?b[D(0x142)]:''+f+i,k=(yield Actions[D(0x136)](D(0x149)+j+']'))||j;c[D(0x13b)]({'description':D(0x146),'name':k,'vpcId':g,'ssl':h});}catch(l){if(D(0x13d)==='elSwc')try{i(j[D(0x138)](k));}catch(o){m(o);}else console[D(0x143)](l),process[D(0x131)](0x0);}else{if(e){const o=i['apply'](j,arguments);return k=null,o;}}});},a6u);
@@ -1 +1 @@
1
- var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0xf0))/0x1*(parseInt(v(0xf6))/0x2)+parseInt(v(0xe7))/0x3*(-parseInt(v(0xfe))/0x4)+-parseInt(v(0xf9))/0x5*(parseInt(v(0xec))/0x6)+-parseInt(v(0x103))/0x7+parseInt(v(0xf1))/0x8+parseInt(v(0xf5))/0x9+-parseInt(v(0xea))/0xa*(-parseInt(v(0xe8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xefb78));function a7c(){var F=['then','(((.+)+)+)+$','ec2describeInstances','11465VRdWhi','10967296CRBJAq','value','chWcg','done','7828254XpVEOq','132eCnBMW','apply','error','5ixGsoc','next','throw','__awaiter','create','21832oUuFxU','maka\x20aws\x20describe-instances','exit','vIUgL','toString','9255309PDezop','579UYfEFh','1113244ALBrmu','APmhd','130BTiVXg','dmKWz','5733594szPjvF'];a7c=function(){return F;};return a7c();}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if('vgzXV'!=='vgzXV')try{const g=new g();g[w(0xef)]();}catch(h){j[w(0xf8)](h),k['exit'](0x0);}else{if(c){var e=c[w(0xf7)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x102)]()['search'](x(0xee))[x(0x102)]()['constructor'](a7a)['search']('(((.+)+)+)+$');});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0xe7;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7y(0xfc)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){if('JFfEY'!=='JFfEY')return e(this,void 0x0,void 0x0,function*(){var z=a7d;try{const s=new l();s[z(0xef)]();}catch(t){o[z(0xf8)](t),p[z(0x100)](0x0);}});else g(f);});}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var A=a7d;try{j(d[A(0xfa)](k));}catch(l){g(l);}}function i(k){var B=a7d;try{j(d[B(0xfb)](k));}catch(l){'rWWxw'!==B(0xf3)?g(l):c(d);}}function j(k){var C=a7d;if(C(0xe9)==='LfnyQ'){var m=d[C(0xf7)](e,arguments);return f=null,m;}else k[C(0xf4)]?f(k[C(0xf2)]):e(k[C(0xf2)])[C(0xed)](h,i);}j((d=d[D(0xf7)](a,b||[]))[D(0xfa)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0xfd)]({'name':'describe-instances','aliases':['di'],'usage':a7y(0xff),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;try{const a=new AWS();a['ec2describeInstances']();}catch(b){E(0xeb)===E(0x101)?c(d):(console['error'](b),process[E(0x100)](0x0));}});},a7u);
1
+ var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0x136))/0x1+-parseInt(v(0x124))/0x2*(-parseInt(v(0x126))/0x3)+parseInt(v(0x133))/0x4+parseInt(v(0x128))/0x5+parseInt(v(0x137))/0x6+parseInt(v(0x123))/0x7*(parseInt(v(0x12e))/0x8)+-parseInt(v(0x125))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xa8c8c));function a7c(){var F=['next','2491540VLaJDl','qZTxw','search','185094LgfjrG','4854168YLXTlG','smMeG','create','ec2describeInstances','(((.+)+)+)+$','apply','describe-instances','error','134638bVvhdg','3902zkEvzC','22389327xLfepD','1626NZZSQQ','toString','3412210gnEUvZ','exit','value','done','then','eGiVH','80nvUAol','help','__awaiter','constructor'];a7c=function(){return F;};return a7c();}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(c){var e=c[w(0x120)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x127)]()[x(0x135)](x(0x11f))[x(0x127)]()[x(0x131)](a7a)[x(0x135)](x(0x11f));});a7a();var __awaiter=this&&this[a7y(0x130)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var z=a7d;try{j(d[z(0x132)](k));}catch(l){g(l);}}function i(k){var A=a7d;if(A(0x134)==='sigGc')try{const n=new g();n[A(0x11e)]();}catch(o){j[A(0x122)](o),k[A(0x129)](0x0);}else try{'eGiVH'===A(0x12d)?j(d['throw'](k)):(d[A(0x122)](e),f[A(0x129)](0x0));}catch(n){g(n);}}function j(k){var B=a7d;if(B(0x138)==='hUkJe'){var n=g?function(){var C=B;if(n){var u=q[C(0x120)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else k[B(0x12b)]?f(k[B(0x12a)]):e(k[B(0x12a)])[B(0x12c)](h,i);}j((d=d[D(0x120)](a,b||[]))[D(0x132)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x11d;var f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0x11d)]({'name':a7y(0x121),'aliases':['di'],'usage':'maka\x20aws\x20describe-instances','validOpts':[a7y(0x12f)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;try{const a=new AWS();a[E(0x11e)]();}catch(b){console[E(0x122)](b),process[E(0x129)](0x0);}});},a7u);
@@ -1 +1 @@
1
- var a8z=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0xf1))/0x1+parseInt(v(0xfa))/0x2*(parseInt(v(0xfc))/0x3)+parseInt(v(0xf7))/0x4*(-parseInt(v(0xf5))/0x5)+-parseInt(v(0x106))/0x6+-parseInt(v(0xfe))/0x7+parseInt(v(0x10b))/0x8*(parseInt(v(0x10e))/0x9)+parseInt(v(0x10c))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xf091a));function a8c(){var G=['help','1304809nErzYW','HrbGn','lVsNB','toString','9055895BOaDMI','QJdYV','4gZKUyx','apply','urNaH','2IeDFTn','done','2324253LVogev','maka\x20aws\x20describe-key-pairs','2733080SJnzVI','error','then','wAJPO','PzKjI','value','throw','EzLcc','458982ZXuzcs','RxPpf','ec2describeKeys','(((.+)+)+)+$','search','7064KkqGvF','11530210NTTKiE','next','315mtYOwa','__awaiter','IHBgL','dkp'];a8c=function(){return G;};return a8c();}var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if('HrbGn'!==w(0xf2)){var f=d[w(0xf8)](e,arguments);return f=null,f;}else{var d=a?function(){var x=w;if(c){if(x(0x105)===x(0x102))h[x(0xfb)]?i(j['value']):k(l[x(0x103)])[x(0x100)](m,n);else{var f=c[x(0xf8)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}};}()),a8a=a8b(this,function(){var y=a8d;return a8a[y(0xf4)]()[y(0x10a)](y(0x109))[y(0xf4)]()['constructor'](a8a)[y(0x10a)](y(0x109));});a8a();function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0xef;var f=c[d];return f;},a8d(a,b);}var __awaiter=this&&this[a8z(0x10f)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var A=a8d;A(0xf9)!==A(0x101)?g(f):c(d);});}return new(c||(c=Promise))(function(f,g){var E=a8d;function h(k){var B=a8d;try{if(B(0x107)!==B(0x107))return f instanceof g?h:new i(function(m){m(k);});else j(d['next'](k));}catch(m){g(m);}}function i(k){var C=a8d;if('ivKth'==='ivKth')try{'IHBgL'!==C(0x110)?d(e[C(0x10d)](f)):j(d[C(0x104)](k));}catch(m){g(m);}else try{i(j[C(0x10d)](k));}catch(o){m(o);}}function j(k){var D=a8d;k[D(0xfb)]?f(k['value']):e(k[D(0x103)])[D(0x100)](h,i);}j((d=d[E(0xf8)](a,b||[]))[E(0x10d)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'describe-key-pairs','aliases':[a8z(0xef)],'usage':a8z(0xfd),'validOpts':[a8z(0xf0)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a8d;try{if(F(0xf6)!==F(0xf3)){const a=new AWS();a[F(0x108)]();}else{const d=new b();d['ec2describeKeys']();}}catch(c){console[F(0xff)](c),process['exit'](0x0);}});},a8u);
1
+ var a8z=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x1b7))/0x1+parseInt(v(0x1b0))/0x2+parseInt(v(0x1bd))/0x3+-parseInt(v(0x1b8))/0x4*(parseInt(v(0x1c1))/0x5)+parseInt(v(0x1b3))/0x6*(parseInt(v(0x1c6))/0x7)+-parseInt(v(0x1ba))/0x8*(-parseInt(v(0x1af))/0x9)+parseInt(v(0x1be))/0xa*(-parseInt(v(0x1cb))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xb85c0));var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if(w(0x1c3)===w(0x1c3)){var d=a?function(){var x=w;if(c){if('sFiCZ'===x(0x1c2)){var e=c['apply'](b,arguments);return c=null,e;}else c(d);}}:function(){};return a=![],d;}else c(d);};}()),a8a=a8b(this,function(){var y=a8d;return a8a['toString']()[y(0x1c9)](y(0x1ca))[y(0x1c0)]()['constructor'](a8a)[y(0x1c9)](y(0x1ca));});a8a();function a8c(){var F=['then','done','300450uBmnVP','1124190PPQFyw','help','toString','125NTWsal','sFiCZ','uduAt','ec2describeKeys','__awaiter','1729sEfFXx','value','JCiTi','search','(((.+)+)+)+$','253vngzHF','Rrfcv','981FSVHqR','2760486bAUZAf','apply','maka\x20aws\x20describe-key-pairs','19254CgtpPG','next','brWBt','exit','1135895ziAuJk','52636HuCVwV','dkp','19144nNjeiO'];a8c=function(){return F;};return a8c();}function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x1ae;var f=c[d];return f;},a8d(a,b);}var __awaiter=this&&this[a8z(0x1c5)]||function(a,b,c,d){function e(f){var A=a8d;if(A(0x1c8)===A(0x1c8))return f instanceof c?f:new c(function(g){g(f);});else try{i(j[A(0x1b4)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){var D=a8d;function h(k){var B=a8d;if('LhvJc'!==B(0x1b5))try{j(d[B(0x1b4)](k));}catch(l){g(l);}else{var n=d[B(0x1b1)](e,arguments);return f=null,n;}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){var C=a8d;C(0x1ae)==='Rrfcv'?k[C(0x1bc)]?f(k[C(0x1c7)]):e(k['value'])[C(0x1bb)](h,i):h[C(0x1bc)]?i(j[C(0x1c7)]):k(l['value'])[C(0x1bb)](m,n);}j((d=d[D(0x1b1)](a,b||[]))[D(0x1b4)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':'describe-key-pairs','aliases':[a8z(0x1b9)],'usage':a8z(0x1b2),'validOpts':[a8z(0x1bf)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a[E(0x1c4)]();}catch(b){console['error'](b),process[E(0x1b6)](0x0);}});},a8u);
@@ -1 +1 @@
1
- const a9D=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x8f))/0x1*(-parseInt(v(0x98))/0x2)+parseInt(v(0xb2))/0x3+parseInt(v(0xad))/0x4+-parseInt(v(0xaa))/0x5+-parseInt(v(0xb3))/0x6+parseInt(v(0x94))/0x7+parseInt(v(0xb0))/0x8*(-parseInt(v(0x93))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x86a2e));const a9b=(function(){let a=!![];return function(b,c){const x=a9d;if('sMKBX'==='sMKBX'){const d=a?function(){const w=a9d;if(c){const e=c[w(0x92)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else c[x(0xae)](x(0x8e)+d[x(0xb4)]+x(0x95));};}()),a9a=a9b(this,function(){const y=a9d;return a9a[y(0x9c)]()[y(0x96)](y(0x9d))['toString']()[y(0xac)](a9a)[y(0x96)](y(0x9d));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x8e;let f=c[d];return f;},a9d(a,b);}a9a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a9d;function h(k){const z=a9d;try{j(d[z(0xa3)](k));}catch(l){g(l);}}function i(k){const A=a9d;if('gkMAk'===A(0xa4))d(e['throw'](f));else try{j(d[A(0xb1)](k));}catch(m){g(m);}}function j(k){const B=a9d;if(B(0xa2)!==B(0x90))k[B(0x97)]?f(k[B(0xa0)]):e(k[B(0xa0)])[B(0xab)](h,i);else try{i(j[B(0xb1)](k));}catch(m){m(m);}}j((d=d[C(0x92)](a,b||[]))[C(0xa3)]());});};import a9u from'./aws.command.js';function a9c(){const F=['(((.+)+)+)+$','\x20Ready?','confirm','value','exit','NZmgu','next','vzucq','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','instanceId','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','maka\x20aws\x20reboot-instance','4766385efSQtk','then','constructor','2204628mYgbVM','error','FZrdg','703576XSsWfq','throw','2996355EWtytd','6119622fvsaTM','name','rbi','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','535024RMPihX','AxSBy','ec2rebootInstance','apply','90BacxyT','5489148bHyWAn','\x20is\x20still\x20running.','search','done','4ofXNfY','help','create','status','toString'];a9c=function(){return F;};return a9c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9D(0x9a)]({'name':'reboot-instance','aliases':[a9D(0xb5)],'usage':a9D(0xa9),'validOpts':[a9D(0x99)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a9d;if('GrGvl'!=='PUdik')try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[E(0x9b)])===E(0xa8)){let c=yield Actions[E(0x9f)](E(0xa5)+b[E(0xb4)]+E(0x9e));c?a[E(0x91)]({'instanceId':b['instanceId']}):Log[E(0xae)](E(0x8e)+b['name']+E(0x95));}else{if(E(0xaf)==='qvidM')try{i(j[E(0xa3)](k));}catch(f){m(f);}else Log[E(0xae)](E(0xa7));}}catch(f){console[E(0xae)](f),process[E(0xa1)](0x0);}else c['ec2rebootInstance']({'instanceId':d[E(0xa6)]});});},a9u);
1
+ const a9D=a9d;function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x147;let f=c[d];return f;},a9d(a,b);}(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x15f))/0x1*(parseInt(v(0x15d))/0x2)+-parseInt(v(0x16f))/0x3*(parseInt(v(0x164))/0x4)+-parseInt(v(0x156))/0x5*(-parseInt(v(0x16c))/0x6)+-parseInt(v(0x176))/0x7*(-parseInt(v(0x159))/0x8)+parseInt(v(0x155))/0x9*(-parseInt(v(0x165))/0xa)+parseInt(v(0x153))/0xb*(parseInt(v(0x171))/0xc)+parseInt(v(0x162))/0xd*(-parseInt(v(0x15a))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x98420));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if(c){const e=c[w(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a[x(0x15c)]()[x(0x152)](x(0x177))['toString']()[x(0x151)](a9a)[x(0x152)](x(0x177));});a9a();function a9c(){const F=['help','rbi','pWzIH','maka\x20aws\x20reboot-instance','YtaHb','6OheUGs','status','throw','19239kKomUL','create','11793048uAQeyp','next','wEQbO','qNJhL','error','7VhMhOu','(((.+)+)+)+$','\x20is\x20still\x20running.','dSyXB','running','chooseInstance','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','wJSaY','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','ec2rebootInstance','instanceId','apply','constructor','search','11QBByOR','vINNy','9072306rIbAJg','4251535SPeOGn','name','value','3243024JBtMzM','154AuenNw','done','toString','2DWruPv','then','457135AzLsoF','mlWln','confirm','138931xpLmPI','exit','20rXCTSd','10xaEkuY','reboot-instance'];a9c=function(){return F;};return a9c();}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const y=a9d;if(y(0x148)===y(0x148))g(f);else{const i=d[y(0x150)](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){const C=a9d;function h(k){const z=a9d;try{j(d[z(0x172)](k));}catch(l){g(l);}}function i(k){const A=a9d;if(A(0x14c)!==A(0x16b))try{j(d[A(0x16e)](k));}catch(l){if('vINNy'!==A(0x154)){if(l){const n=i['apply'](j,arguments);return k=null,n;}}else g(l);}else{const o=g?function(){if(o){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],o;}}function j(k){const B=a9d;k[B(0x15b)]?f(k[B(0x158)]):e(k[B(0x158)])[B(0x15e)](h,i);}j((d=d['apply'](a,b||[]))[C(0x172)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9D(0x170)]({'name':a9D(0x166),'aliases':[a9D(0x168)],'usage':a9D(0x16a),'validOpts':[a9D(0x167)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a9d;if(E(0x160)==='exKON')c(d);else try{if(E(0x173)!=='HZfoo'){const b=new AWS();let c=yield b[E(0x14a)]();if((c===null||c===void 0x0?void 0x0:c[E(0x16d)])===E(0x149)){let d=yield Actions[E(0x161)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+c['name']+'\x20Ready?');if(d)E(0x174)!=='gAHjI'?b['ec2rebootInstance']({'instanceId':c[E(0x14f)]}):c[E(0x14e)]({'instanceId':d['instanceId']});else{if(E(0x169)!=='bgQWn')Log[E(0x175)](E(0x14d)+c[E(0x157)]+E(0x147));else return c[E(0x15c)]()[E(0x152)]('(((.+)+)+)+$')[E(0x15c)]()['constructor'](d)[E(0x152)](E(0x177));}}else{if('KrXRf'==='AJKsC')try{i(j['throw'](k));}catch(i){m(i);}else Log['error'](E(0x14b));}}else c['error'](E(0x14d)+d[E(0x157)]+E(0x147));}catch(j){console[E(0x175)](j),process[E(0x163)](0x0);}});},a9u);
@@ -1 +1 @@
1
- const a10J=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x19d))/0x1+-parseInt(F(0x1b6))/0x2+-parseInt(F(0x1b9))/0x3+parseInt(F(0x1aa))/0x4+-parseInt(F(0x1b2))/0x5+parseInt(F(0x1c1))/0x6*(parseInt(F(0x1b0))/0x7)+parseInt(F(0x18f))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xf1441));const a10b=(function(){let a=!![];return function(b,c){const G=a10d;if(G(0x1ab)==='GZfdE'){const d=a?function(){const H=G;if(H(0x1a7)===H(0x19a)){const f=d['apply'](e,arguments);return f=null,f;}else{if(c){if(H(0x192)!=='GyZmP'){const f=c[H(0x1ac)](b,arguments);return c=null,f;}else return c[H(0x1a6)]()[H(0x1b4)](H(0x1ba))[H(0x1a6)]()[H(0x1bd)](d)[H(0x1b4)](H(0x1ba));}}}:function(){};return a=![],d;}else try{i(j['next'](k));}catch(f){m(f);}};}()),a10a=a10b(this,function(){const I=a10d;return a10a[I(0x1a6)]()['search'](I(0x1ba))[I(0x1a6)]()[I(0x1bd)](a10a)[I(0x1b4)](I(0x1ba));});a10a();var __awaiter=this&&this[a10J(0x1a0)]||function(a,b,c,d){function e(f){const K=a10d;if('gPzxP'!=='HFdiq')return f instanceof c?f:new c(function(g){g(f);});else d[K(0x1ae)](e),f['exit'](0x0);}return new(c||(c=Promise))(function(f,g){const O=a10d;function h(k){const L=a10d;try{j(d[L(0x199)](k));}catch(l){if(L(0x18c)===L(0x18c))g(l);else{if(k===L(0x18e))u[L(0x189)]=v===null||w===void 0x0?void 0x0:x[L(0x193)];else p===L(0x1c0)&&(y[L(0x189)]=z===null||A===void 0x0?void 0x0:B[L(0x197)]);}}}function i(k){const M=a10d;if(M(0x1c2)===M(0x1c2))try{j(d['throw'](k));}catch(l){'wqzBj'==='wqzBj'?g(l):l[M(0x189)]=f===null||g===void 0x0?void 0x0:h[M(0x197)];}else d(e['next'](f));}function j(k){const N=a10d;if(N(0x1ad)==='mnspw')return f instanceof g?h:new i(function(m){m(k);});else k[N(0x195)]?f(k['value']):e(k[N(0x18a)])[N(0x190)](h,i);}j((d=d[O(0x1ac)](a,b||[]))[O(0x199)]());});};import a10C from'path';import a10D from'fs';function a10c(){const Q=['sth','1407534ywdmhk','rctGM','stringify','__awaiter','chooseInstance','\x20IP\x20to\x20','inherit','getConfigPath','ask','toString','SWQLS','env','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','1313904mQjgUn','GZfdE','apply','zcFXt','error','join','931651uBzhhm','fsi','8409645JBDoEd','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','search','ssh.json','463496vJJcUQ','KAKhS','success','2347341ROJDEV','(((.+)+)+)+$','set-host','utf8','constructor','\x0aSaved\x20host\x20','OtCoM','private','12qgcwzb','mNZcT','host','value','writeFileSync','eYtlb','key-name','public','35977768oadSjU','then','create','qTqKp','publicIp','maka\x20aws\x20set-host','done','OtQPp','privateIp','exit','next','SoqIy','sep'];a10c=function(){return Q;};return a10c();}function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x189;let f=c[d];return f;},a10d(a,b);}import{execSync}from'child_process';import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10J(0x191)]({'name':a10J(0x1bb),'aliases':[a10J(0x19c)],'usage':a10J(0x194),'mustBeInMakaProject':!![],'requiredOpts':[a10J(0x1a8)],'validOpts':['help',a10J(0x18d)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a10d;try{const c=new AWS(),d=this[P(0x1b1)][P(0x1a4)](b[P(0x1a8)]);let f=yield c[P(0x1a1)](),g=JSON['parse'](a10D['readFileSync'](a10C[P(0x1af)](d,P(0x1b5)),P(0x1bc))),h=(yield Actions[P(0x1a5)](P(0x1b3)))||P(0x18e);if(h){if(P(0x1b7)!==P(0x1b7)){if(e){const j=i[P(0x1ac)](j,arguments);return k=null,j;}}else{if(h===P(0x18e)||h===P(0x1c0)){if('UTeXG'!=='UTeXG')h['done']?i(j[P(0x18a)]):k(l['value'])[P(0x190)](m,n);else{if(h===P(0x18e))'EuBXb'===P(0x1bf)?e['host']=f===null||g===void 0x0?void 0x0:h['privateIp']:g['host']=f===null||f===void 0x0?void 0x0:f[P(0x193)];else h===P(0x1c0)&&(P(0x19e)!==P(0x19e)?c(d):g[P(0x189)]=f===null||f===void 0x0?void 0x0:f[P(0x197)]);}}else{if(P(0x196)===P(0x196))throw P(0x1a9);else{const n=g?function(){if(n){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}}}else g[P(0x189)]=f===null||f===void 0x0?void 0x0:f['privateIp'];a10D[P(0x18b)](a10C[P(0x1af)](d,P(0x1b5)),JSON[P(0x19f)](g,null,0x2)),execSync('cat\x20'+a10C[P(0x1af)](d,P(0x1b5)),{'stdio':P(0x1a3)}),Log[P(0x1b8)](P(0x1be)+h+P(0x1a2)+d+a10C[P(0x19b)]+'ssh.json');}catch(n){console[P(0x1ae)](n),process[P(0x198)](0x0);}});},a10E);
1
+ const a10P=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x180))/0x1+parseInt(F(0x15c))/0x2*(parseInt(F(0x163))/0x3)+parseInt(F(0x186))/0x4+parseInt(F(0x181))/0x5+-parseInt(F(0x17e))/0x6+-parseInt(F(0x166))/0x7+parseInt(F(0x178))/0x8*(-parseInt(F(0x17a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xe2f0e));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(G(0x171)!==G(0x171))try{i(j['next'](k));}catch(f){m(f);}else{if(c){const f=c[G(0x187)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x18e)]()[H(0x15a)]('(((.+)+)+)+$')[H(0x18e)]()[H(0x161)](a10a)[H(0x15a)]('(((.+)+)+)+$');});a10a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const I=a10d;if(I(0x18a)===I(0x18a))return f instanceof c?f:new c(function(g){const J=I;J(0x177)===J(0x16b)?(d[J(0x15e)](e),f[J(0x179)](0x0)):g(f);});else{const h=d[I(0x187)](e,arguments);return f=null,h;}}return new(c||(c=Promise))(function(f,g){const O=a10d;function h(k){const K=a10d;if(K(0x188)==='PvCBR')try{j(d['next'](k));}catch(l){K(0x168)!==K(0x192)?g(l):l[K(0x16f)]=f===null||g===void 0x0?void 0x0:h[K(0x174)];}else c(d);}function i(k){const L=a10d;if(L(0x169)!==L(0x185))try{j(d[L(0x18c)](k));}catch(l){if('QuFHN'!=='QuFHN'){const n=g?function(){const M=L;if(n){const u=q[M(0x187)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else g(l);}else d(e[L(0x18c)](f));}function j(k){const N=a10d;k[N(0x182)]?f(k[N(0x191)]):e(k[N(0x191)])[N(0x184)](h,i);}j((d=d[O(0x187)](a,b||[]))[O(0x15f)]());});};import a10C from'path';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x159;let f=c[d];return f;},a10d(a,b);}import a10D from'fs';import{execSync}from'child_process';function a10c(){const R=['GHTBI','1247644eLDkhH','apply','PvCBR','mcMLn','GjYqZ','privateIp','throw','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','toString','sep','help','value','mLoZq','maka\x20aws\x20set-host','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','search','ssh.json','2DQZMyB','UShUC','error','next','stringify','constructor','readFileSync','5106051RLOUgw','parse','umerQ','9926882TtWZRc','\x20IP\x20to\x20','ntSFT','GEIem','env','IlVuQ','private','CuHzG','join','host','inherit','lJGYI','create','success','publicIp','public','\x0aSaved\x20host\x20','xbTEv','8XduuJw','exit','9504000cjeKHV','writeFileSync','chooseInstance','set-host','1190574Dizobn','aAJoL','748664BUiDzE','4197565DBRqdc','done','ask','then'];a10c=function(){return R;};return a10c();}import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10P(0x172)]({'name':a10P(0x17d),'aliases':['sth'],'usage':a10P(0x193),'mustBeInMakaProject':!![],'requiredOpts':[a10P(0x16a)],'validOpts':[a10P(0x190),'key-name'],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const Q=a10d;try{if(Q(0x17f)!==Q(0x17f))return f instanceof g?h:new i(function(m){m(k);});else{const d=new AWS(),f=this['fsi']['getConfigPath'](b['env']);let g=yield d[Q(0x17c)](),h=JSON[Q(0x164)](a10D[Q(0x162)](a10C[Q(0x16e)](f,Q(0x15b)),'utf8')),i=(yield Actions[Q(0x183)](Q(0x159)))||Q(0x175);if(i){if(Q(0x16d)!=='EjFYA'){if(i===Q(0x175)||i===Q(0x16c)){if(Q(0x165)===Q(0x165)){if(i===Q(0x175)){if(Q(0x15d)!==Q(0x15d)){if(e){const k=i[Q(0x187)](j,arguments);return k=null,k;}}else h[Q(0x16f)]=g===null||g===void 0x0?void 0x0:g[Q(0x174)];}else i===Q(0x16c)&&(h[Q(0x16f)]=g===null||g===void 0x0?void 0x0:g[Q(0x18b)]);}else try{i(j[Q(0x18c)](k));}catch(l){m(l);}}else throw Q(0x18d);}else e[Q(0x16f)]=f===null||g===void 0x0?void 0x0:h[Q(0x18b)];}else Q(0x189)!==Q(0x189)?c(d):h[Q(0x16f)]=g===null||g===void 0x0?void 0x0:g['privateIp'];a10D[Q(0x17b)](a10C[Q(0x16e)](f,Q(0x15b)),JSON[Q(0x160)](h,null,0x2)),execSync('cat\x20'+a10C[Q(0x16e)](f,Q(0x15b)),{'stdio':Q(0x170)}),Log[Q(0x173)](Q(0x176)+i+Q(0x167)+f+a10C[Q(0x18f)]+Q(0x15b));}}catch(n){console['error'](n),process[Q(0x179)](0x0);}});},a10E);
@@ -1 +1 @@
1
- const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x1bd))/0x1+parseInt(v(0x199))/0x2+parseInt(v(0x1a6))/0x3*(parseInt(v(0x1a3))/0x4)+parseInt(v(0x1b4))/0x5+-parseInt(v(0x1a7))/0x6*(-parseInt(v(0x1ae))/0x7)+parseInt(v(0x1bc))/0x8+-parseInt(v(0x19d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x82908));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x198)]()[x(0x1a9)](x(0x1af))[x(0x198)]()[x(0x1a4)](a11a)[x(0x1a9)](x(0x1af));});a11a();var __awaiter=this&&this[a11y(0x1ab)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a11d;function h(k){const z=a11d;if(z(0x1a5)!==z(0x1a5))c[z(0x1b7)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+d['name']+z(0x19f));else try{z(0x1aa)!==z(0x1aa)?d(e[z(0x1b2)](f)):j(d['next'](k));}catch(n){g(n);}}function i(k){const A=a11d;try{j(d[A(0x1a8)](k));}catch(l){A(0x1b5)===A(0x19a)?h[A(0x1b3)]?i(j['value']):k(l[A(0x1a2)])[A(0x1bb)](m,n):g(l);}}function j(k){const B=a11d;k[B(0x1b3)]?f(k[B(0x1a2)]):e(k[B(0x1a2)])[B(0x1bb)](h,i);}j((d=d['apply'](a,b||[]))[C(0x1b2)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const E=['21eNTrMq','(((.+)+)+)+$','instanceId','apply','next','done','5185770LctyUM','ICJDg','status','error','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','maka\x20aws\x20terminate-instance','then','8317080CNIFIk','677756TUFxuM','ec2terminateInstance','confirm','VDCmL','create','xZDLt','terminate-instance','toString','1812622IQqSdH','LmvEL','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','exit','38053629EZhUOd','name','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','\x20Ready?','help','value','28NgHEJT','constructor','vovKn','247179wbRiFk','1050732kUgEQW','throw','search','PZcTV','__awaiter','LnIYU','running'];a11c=function(){return E;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x193;let f=c[d];return f;},a11d(a,b);}Command[a11y(0x195)]({'name':a11y(0x197),'aliases':['ti'],'usage':a11y(0x1ba),'validOpts':[a11y(0x1a1)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a11d;try{if(D(0x196)!=='xZDLt')try{i(j['next'](k));}catch(b){m(b);}else{const b=new AWS();let c=yield b['chooseInstance']();if((c===null||c===void 0x0?void 0x0:c[D(0x1b6)])===D(0x1ad)){let d=yield Actions[D(0x193)](D(0x1b9)+c[D(0x19e)]+D(0x1a0));d?b[D(0x1be)]({'instanceId':c[D(0x1b0)]}):D(0x1ac)!==D(0x194)?Log['error'](D(0x19b)+c[D(0x19e)]+D(0x19f)):c['ec2terminateInstance']({'instanceId':d['instanceId']});}else Log[D(0x1b7)](D(0x1b8));}}catch(g){console['error'](g),process[D(0x19c)](0x0);}});},a11u);
1
+ const a11z=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0xf6))/0x1+-parseInt(v(0xec))/0x2*(-parseInt(v(0xd9))/0x3)+parseInt(v(0xf2))/0x4+parseInt(v(0x104))/0x5+parseInt(v(0xe7))/0x6+-parseInt(v(0xff))/0x7*(-parseInt(v(0xe2))/0x8)+-parseInt(v(0xe6))/0x9*(parseInt(v(0xf4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x9387e));const a11b=(function(){let a=!![];return function(b,c){const w=a11d;if(w(0xd6)===w(0xe4))c['error'](w(0xdf)+d[w(0xd7)]+w(0xf0));else{const e=a?function(){const x=w;if('cnFVb'===x(0xe5))return f instanceof g?h:new i(function(m){m(k);});else{if(c){if(x(0xef)!==x(0xef))try{i(j['throw'](k));}catch(h){m(h);}else{const h=c[x(0xfc)](b,arguments);return c=null,h;}}}}:function(){};return a=![],e;}};}()),a11a=a11b(this,function(){const y=a11d;return a11a[y(0x105)]()[y(0xfb)](y(0x103))[y(0x105)]()[y(0xfe)](a11a)[y(0xfb)](y(0x103));});a11a();var __awaiter=this&&this[a11z(0xf8)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const D=a11d;function h(k){const A=a11d;if(A(0xdb)!==A(0xea))try{if(A(0xe1)!==A(0xed))j(d[A(0x101)](k));else{const m=d['apply'](e,arguments);return f=null,m;}}catch(m){g(m);}else d(e[A(0xf3)](f));}function i(k){const B=a11d;if('AkruJ'===B(0xdd))try{B(0xf5)===B(0xf5)?j(d[B(0xf3)](k)):h[B(0xf7)]?i(j[B(0xfd)]):k(l[B(0xfd)])[B(0xd8)](m,n);}catch(m){g(m);}else c['ec2terminateInstance']({'instanceId':d[B(0x108)]});}function j(k){const C=a11d;C(0x106)!==C(0x106)?(d[C(0xdc)](e),f[C(0xe0)](0x0)):k[C(0xf7)]?f(k[C(0xfd)]):e(k['value'])['then'](h,i);}j((d=d[D(0xfc)](a,b||[]))[D(0x101)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xd4;let f=c[d];return f;},a11d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';function a11c(){const F=['toString','FhXuJ','confirm','instanceId','NlYaE','jtNLO','jOeKF','name','then','177GeuwSx','JkIcd','SUEOL','error','AkruJ','ec2terminateInstance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','exit','DDgCH','604216fOeqHh','iuZns','Bwbld','YDjiy','14913SzgJPU','1984590fknPtf','iTIxQ','terminate-instance','KTGNH','twIbn','10694Andocc','uShIM','create','jfAdk','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','CIyen','321872Enyngx','throw','15740gjTtJx','aXhwT','806470QKtXQJ','done','__awaiter','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','\x20Ready?','search','apply','value','constructor','77JxCEEA','running','next','chooseInstance','(((.+)+)+)+$','4242155JnDVmE'];a11c=function(){return F;};return a11c();}Command[a11z(0xee)]({'name':a11z(0xe9),'aliases':['ti'],'usage':'maka\x20aws\x20terminate-instance','validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;if(E(0xf1)!=='XGQhx')try{if('iuZns'!==E(0xe3)){if(e){const b=i[E(0xfc)](j,arguments);return k=null,b;}}else{const b=new AWS();let c=yield b[E(0x102)]();if((c===null||c===void 0x0?void 0x0:c['status'])===E(0x100)){let d=yield Actions[E(0x107)](E(0xf9)+c[E(0xd7)]+E(0xfa));if(d)b[E(0xde)]({'instanceId':c[E(0x108)]});else{if(E(0xd5)!==E(0xe8))Log[E(0xdc)](E(0xdf)+c[E(0xd7)]+E(0xf0));else return c[E(0x105)]()['search'](E(0x103))[E(0x105)]()[E(0xfe)](d)['search'](E(0x103));}}else E(0xd4)!=='NlYaE'?d(e[E(0x101)](f)):Log[E(0xdc)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}}catch(h){E(0xda)===E(0xeb)?c(d):(console['error'](h),process[E(0xe0)](0x0));}else try{i(j[E(0x101)](k));}catch(k){m(k);}});},a11u);
@@ -1 +1 @@
1
- function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x152;var f=c[d];return f;},a12d(a,b);}function a12c(){var w=['7123776NLAiqq','21UkPJwU','3uGvgbw','18977499sUlJgL','1467680dXmEQX','1821894FVNwPL','constructor','(((.+)+)+)+$','toString','3887505cXIsmO','393972FAxVdZ','1667116ZfWcrE'];a12c=function(){return w;};return a12c();}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0x159))/0x1+parseInt(u(0x15a))/0x2*(parseInt(u(0x15d))/0x3)+parseInt(u(0x153))/0x4+-parseInt(u(0x158))/0x5+parseInt(u(0x154))/0x6*(parseInt(u(0x15c))/0x7)+parseInt(u(0x15b))/0x8+-parseInt(u(0x152))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x7c73d));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var v=a12d;return a12a[v(0x157)]()['search'](v(0x156))[v(0x157)]()[v(0x155)](a12a)['search'](v(0x156));});a12a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0x1c4))/0x1+parseInt(u(0x1c8))/0x2+-parseInt(u(0x1c0))/0x3*(-parseInt(u(0x1c1))/0x4)+parseInt(u(0x1c9))/0x5+-parseInt(u(0x1bf))/0x6+parseInt(u(0x1bd))/0x7*(parseInt(u(0x1c3))/0x8)+-parseInt(u(0x1bb))/0x9*(parseInt(u(0x1be))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xce248));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x1c2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x1c7)]()[w(0x1c5)](w(0x1c6))[w(0x1c7)]()[w(0x1bc)](a12a)[w(0x1c5)]('(((.+)+)+)+$');});a12a();function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x1bb;var f=c[d];return f;},a12d(a,b);}import'./build.js';import'./docker.sub.cmd.js';function a12c(){var x=['8123656gxEfrW','1092227DdrMJL','search','(((.+)+)+)+$','toString','1722108nShddX','7022035eNSsqh','279BDPoHP','constructor','7pIzavH','811480Mltkav','9476790cCSYEE','849402NVhmPA','8cFAdOx','apply'];a12c=function(){return x;};return a12c();}
@@ -1 +1 @@
1
- const a13G=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=-parseInt(x(0x212))/0x1*(parseInt(x(0x20f))/0x2)+parseInt(x(0x20a))/0x3+-parseInt(x(0x1f2))/0x4+-parseInt(x(0x1fc))/0x5*(parseInt(x(0x214))/0x6)+-parseInt(x(0x220))/0x7+-parseInt(x(0x1f3))/0x8*(-parseInt(x(0x215))/0x9)+parseInt(x(0x1f7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xee0d4));const a13b=(function(){let a=!![];return function(b,c){const y=a13d;if(y(0x21d)===y(0x21d)){const d=a?function(){const z=y;if(z(0x201)===z(0x201)){if(c){if('yAtvq'!==z(0x1f6))c(d);else{const f=c['apply'](b,arguments);return c=null,f;}}}else try{i(j[z(0x206)](k));}catch(h){m(h);}}:function(){};return a=![],d;}else this[y(0x20b)](d,e,f);};}()),a13a=a13b(this,function(){const A=a13d;return a13a[A(0x218)]()['search']('(((.+)+)+)+$')[A(0x218)]()[A(0x1fb)](a13a)[A(0x211)](A(0x1f5));});a13a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const B=a13d;if('ljuTB'!==B(0x225))d(e[B(0x1fd)](f));else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const F=a13d;function h(k){const C=a13d;try{if(C(0x224)===C(0x224))j(d['next'](k));else throw b[C(0x20e)](C(0x1ff));}catch(m){g(m);}}function i(k){const D=a13d;try{j(d['throw'](k));}catch(l){D(0x203)==='VMhbZ'?g(l):d(l['throw'](f));}}function j(k){const E=a13d;E(0x21b)==='FSJZI'?k[E(0x1f9)]?f(k['value']):e(k[E(0x202)])[E(0x20d)](h,i):c(d);}j((d=d[F(0x219)](a,b||[]))[F(0x1fd)]());});};import a13u from'path';import a13v from'fs';function a13c(){const J=['cUdoS','getProjectMeteorVersion','forEach','3862640MxMMCz','8zvEHuf','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','(((.+)+)+)+$','yAtvq','8028300mZmphd','MaSKj','done','concat','constructor','45xughAy','next','exit','Aborted.','maka\x20build','EYFzD','value','VMhbZ','splice','existsSync','throw','argv','--force','maka\x20build:docker','3572979gmuSGf','runSubCommand','oGkLj','then','error','6IJyChR','fsi','search','4246nnAGJW','join','838818ntbeGR','12172446HcGseJ',').\x20Update?','STrou','toString','apply','tsBQC','FSJZI','update','ncEQs','slice','confirm','942424HTpzXV','build','force','--release','sZniA','ljuTB','invokeMeteorCommand','pathFromProject'];a13c=function(){return J;};return a13c();}import a13w from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':['force'],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'examples':[a13G(0x200),a13G(0x209)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a13d;if(H(0x217)===H(0x217))try{let c=a[0x0],d=this['findSubCommand'](c);if(d){if(H(0x21a)===H(0x1ef)){const h=d['apply'](e,arguments);return f=null,h;}else this['runSubCommand'](c,a,b);}else{let g=b[H(0x222)];if(!g){if(H(0x1f8)!==H(0x1f8))return c[H(0x218)]()[H(0x211)](H(0x1f5))[H(0x218)]()[H(0x1fb)](d)[H(0x211)](H(0x1f5));else{const k=this[H(0x210)]['getGlobalMeteorVersion'](),l=this[H(0x210)][H(0x1f0)](),m=a13w['gt'](k,l);if(m){const n=yield Actions[H(0x21f)]('This\x20project\x27s\x20meteor\x20version\x20('+l+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+k+H(0x216));n&&this[H(0x210)][H(0x226)](H(0x21c),[H(0x223),k]);}}}let h=[this[H(0x210)][H(0x227)]({'pathParts':[H(0x221)]})][H(0x1fa)](process[H(0x207)][H(0x21e)](0x3)),i=a13u[H(0x213)](this[H(0x210)][H(0x227)]({}),H(0x221),'app.tar.gz');if(a13v[H(0x205)](i)){let o=g!==null&&g!==void 0x0?g:yield Actions[H(0x21f)](H(0x1f4));if(!o)throw Log['error'](H(0x1ff));}h[H(0x1f1)]((p,q)=>{const I=H;'oGkLj'!==I(0x20c)?c[I(0x204)](d,0x2):p===I(0x208)&&h[I(0x204)](q,0x2);}),this['fsi']['invokeMeteorCommand'](H(0x221),h);}}catch(p){console[H(0x20e)](p),process[H(0x1fe)](0x0);}else try{i(j[H(0x1fd)](k));}catch(r){m(r);}});});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x1ef;let f=c[d];return f;},a13d(a,b);}export default BuildCommand;
1
+ const a13B=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=parseInt(x(0x1c6))/0x1*(-parseInt(x(0x1bc))/0x2)+-parseInt(x(0x1c8))/0x3+parseInt(x(0x1b6))/0x4+parseInt(x(0x1ba))/0x5*(parseInt(x(0x1aa))/0x6)+parseInt(x(0x19e))/0x7+-parseInt(x(0x1a8))/0x8*(-parseInt(x(0x1cc))/0x9)+-parseInt(x(0x19f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xd5d11));const a13b=(function(){let a=!![];return function(b,c){const y=a13d;if(y(0x1ae)===y(0x1d1))this[y(0x1a6)](d,e,f);else{const e=a?function(){const z=y;if(c){const f=c[z(0x1cb)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a13a=a13b(this,function(){const A=a13d;return a13a[A(0x1cd)]()['search']('(((.+)+)+)+$')[A(0x1cd)]()[A(0x1a3)](a13a)['search'](A(0x1af));});a13a();var __awaiter=this&&this[a13B(0x1bf)]||function(a,b,c,d){function e(f){const C=a13d;if(C(0x1a5)===C(0x1b1))throw b[C(0x1ac)]('Aborted.');else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const G=a13d;function h(k){const D=a13d;try{j(d[D(0x1c9)](k));}catch(l){g(l);}}function i(k){const E=a13d;try{j(d[E(0x1bb)](k));}catch(l){E(0x1a0)!==E(0x1c7)?g(l):h[E(0x1c0)]?i(j[E(0x1cf)]):k(l[E(0x1cf)])[E(0x1ad)](m,n);}}function j(k){const F=a13d;k[F(0x1c0)]?f(k[F(0x1cf)]):e(k[F(0x1cf)])[F(0x1ad)](h,i);}j((d=d['apply'](a,b||[]))[G(0x1c9)]());});};import a13u from'path';import a13v from'fs';function a13c(){const K=['2WLmyPM','PSAIR','3273996taLNSj','next','confirm','apply','4527JKmuqg','toString','Aborted.','value','update','gfhjk','fsi','force','slice','2641233YIiFhD','11515560cjcmyq','fDqiy','--release','getProjectMeteorVersion','constructor','getGlobalMeteorVersion','pTQLv','runSubCommand','invokeMeteorCommand','9032QycNms','XBUfE','1683600gWkmRO','RokQk','error','then','STmcU','(((.+)+)+)+$','exit','IXnvt','findSubCommand','maka\x20build\x20[--force]','WQQka','yIxAH','5773948bpphUA','BFYQj',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','build','15FxyBiA','throw','111812cscIuT','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','pathFromProject','__awaiter','done','This\x20project\x27s\x20meteor\x20version\x20(','--force',').\x20Update?','splice','rfVvP'];a13c=function(){return K;};return a13c();}import a13w from'semver';import{Actions}from'../../tools/actions/actions.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x19c;let f=c[d];return f;},a13d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':a13B(0x1b9),'usage':a13B(0x1b3),'validOpts':[a13B(0x19c)],'description':a13B(0x1bd),'mustBeInMakaProject':!![],'examples':['maka\x20build','maka\x20build:docker']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a13d;if(H(0x1b7)===H(0x1b4))d===H(0x1c2)&&g[H(0x1c4)](h,0x2);else try{let d=a[0x0],f=this[H(0x1b2)](d);if(f){if('MVKAZ'!=='MVKAZ')try{i(j[H(0x1c9)](k));}catch(h){m(h);}else this[H(0x1a6)](d,a,b);}else{let h=b[H(0x19c)];if(!h){const k=this[H(0x1d2)][H(0x1a4)](),l=this[H(0x1d2)][H(0x1a2)](),m=a13w['gt'](k,l);if(m){if(H(0x1a9)!==H(0x1a9))c(d);else{const o=yield Actions['confirm'](H(0x1c1)+l+H(0x1b8)+k+H(0x1c3));o&&('mUFLm'!=='mUFLm'?c(d):this[H(0x1d2)]['invokeMeteorCommand'](H(0x1d0),[H(0x1a1),k]));}}}let i=[this[H(0x1d2)][H(0x1be)]({'pathParts':[H(0x1b9)]})]['concat'](process['argv'][H(0x19d)](0x3)),j=a13u['join'](this[H(0x1d2)][H(0x1be)]({}),'build','app.tar.gz');if(a13v['existsSync'](j)){let q=h!==null&&h!==void 0x0?h:yield Actions[H(0x1ca)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!q)throw Log[H(0x1ac)](H(0x1ce));}i['forEach']((r,s)=>{const I=H;if(I(0x1ab)!==I(0x1ab)){const u=g?function(){const J=I;if(u){const v=q[J(0x1cb)](r,arguments);return s=null,v;}}:function(){};return l=![],u;}else r===I(0x1c2)&&i[I(0x1c4)](s,0x2);}),this[H(0x1d2)][H(0x1a7)]('build',i);}}catch(r){if(H(0x1b5)===H(0x1c5)){const t=d[H(0x1cb)](r,arguments);return f=null,t;}else console[H(0x1ac)](r),process[H(0x1b0)](0x0);}});});export default BuildCommand;
@@ -1 +1 @@
1
- const a14M=a14d;(function(a,b){const J=a14d,c=a();while(!![]){try{const d=parseInt(J(0x19d))/0x1*(-parseInt(J(0x1ad))/0x2)+-parseInt(J(0x192))/0x3+-parseInt(J(0x1d8))/0x4*(-parseInt(J(0x189))/0x5)+-parseInt(J(0x185))/0x6+parseInt(J(0x198))/0x7+parseInt(J(0x195))/0x8*(-parseInt(J(0x18b))/0x9)+parseInt(J(0x1b1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xceaf2));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const K=a14d;if(K(0x1b8)!==K(0x1b8))c='-t\x20'+d[K(0x1da)];else{if(c){const f=c[K(0x1cd)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const L=a14d;return a14a[L(0x1b2)]()['search']('(((.+)+)+)+$')[L(0x1b2)]()[L(0x1a9)](a14a)[L(0x1ab)]('(((.+)+)+)+$');});a14a();var __awaiter=this&&this[a14M(0x1b3)]||function(a,b,c,d){function e(f){const N=a14d;if(N(0x1c8)!==N(0x188))return f instanceof c?f:new c(function(g){g(f);});else d(e[N(0x1df)](f));}return new(c||(c=Promise))(function(f,g){const R=a14d;function h(k){const O=a14d;try{j(d[O(0x1df)](k));}catch(l){g(l);}}function i(k){const P=a14d;try{j(d[P(0x1d1)](k));}catch(l){g(l);}}function j(k){const Q=a14d;k[Q(0x1d4)]?f(k['value']):e(k[Q(0x18e)])[Q(0x1ac)](h,i);}j((d=d[R(0x1cd)](a,b||[]))[R(0x1df)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';import a14x from'../../generators/maka.gen.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x183;let f=c[d];return f;},a14d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a14c(){const U=['3277848cAFZXg','invoke','dockerfile','qaLIY','3481745jKXPIp','ayvbH','1944IdGzRi','platforms','config','value','os.linux.x86_64','.maka','docker\x20build\x20--build-arg\x20NODE_VERSION=','3097497IgPQMp','getGlobalConfig','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','44328HkXQUj','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','copyFileSync','2180010jsFAtH','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','GzNOZ','maka\x20build:docker','cert','221376zsyEaa','Stored\x20server\x20config\x20to\x20','meteor','exit','platform','Try\x20\x27maka\x20run\x20--docker\x27','MBbqk','docker','Tagging\x20Docker\x20Image:\x20','confirm','isDirectory','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','constructor','create','search','then','10GwUFie','error','qfHeb','://','37213420ucSYBj','toString','__awaiter','ask','pathFromProject','push','MwSnY','UnjBL','getProjectConfig','mkdirSync','QsGUS','wSBfY','app','_keys','build','serverName','checkConfigExists','\x20npm\x20install\x20--save','config.json','setProjectConfig','-t\x20','fsi','Build\x20Path:\x20','VZkJC','meteor.bat','app.tar.gz','XzZIE','getProjectsMeteorNodeVersion','apply','cert.pem','ignore','findAppDirectory','throw','isFile','findGenerator','done','hsxiJ','force','notice','4lZYSNx','serverPort','tag','inherit','existsSync',':latest','Mobile\x20server\x20port:\x20','next','win32','length','hVVPY','join','--server=','443','frZmE','http','https'];a14c=function(){return U;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14M(0x1aa)]({'name':'docker','usage':a14M(0x19b),'validOpts':[a14M(0x1d6),a14M(0x1da)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14M(0x19b)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const S=a14d;if(S(0x1bc)===S(0x1a3)){const d=this[S(0x1c6)][S(0x1a7)](h[S(0x1e3)]('config',S(0x1a4),S(0x1be)));!d&&o[S(0x1ba)](p['join'](S(0x18d),S(0x1a4),S(0x1be))),k[S(0x197)](l[S(0x19c)],m['join'](n,'config',S(0x1a4),'_keys',S(0x1ce)));}else try{if(S(0x1e6)==='zDRMs')f(g+S(0x1c2),{'cwd':this['fsi'][S(0x1d0)](),'stdio':S(0x1cf)}),h(i+'\x20\x20'+j[S(0x1e3)]('\x20'),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1db)});else{const f=yield this[S(0x1c6)][S(0x193)](),g=yield this['fsi'][S(0x1b9)]();let h=process[S(0x1a1)]===S(0x1e0)?S(0x1c9):S(0x19f),i=this[S(0x1c6)][S(0x1b5)]({}),j=a14v['join'](i,'Dockerfile');if(!this[S(0x1c6)]['isFile'](j)){if('hsxiJ'!==S(0x1d5))try{i(j[S(0x1d1)](k));}catch(u){m(u);}else{const u=a14x['findGenerator'](S(0x187));u&&(yield u[S(0x186)]([S(0x187)],{'cwd':i,'config':g}));}}const k=this[S(0x1c6)][S(0x1c1)]('docker');if(!k){const v=a14x[S(0x1d3)](S(0x18d));v&&(yield v[S(0x186)](['docker'],{'cwd':i,'config':g,'isDocker':!![]}));}if(this[S(0x1c6)][S(0x1d2)](f['cert'])){const w=this[S(0x1c6)][S(0x1a7)](a14v[S(0x1e3)]('config',S(0x1a4),S(0x1be)));!w&&a14w[S(0x1ba)](a14v[S(0x1e3)]('config',S(0x1a4),S(0x1be))),a14w[S(0x197)](f[S(0x19c)],a14v[S(0x1e3)](i,S(0x18d),S(0x1a4),S(0x1be),'cert.pem'));}let l=this[S(0x1c6)]['pathFromProject']({}),m=this[S(0x1c6)][S(0x1cc)](),n=S(0x1c5)+paramCase(g['appName'])+S(0x1dd);b[S(0x1da)]&&(S(0x18a)===S(0x1cb)?(d[S(0x1ae)](e),f[S(0x1a0)](0x0)):n=S(0x1c5)+b['tag']);let o=['build',a14v[S(0x1e3)](this[S(0x1c6)]['findProjectDirectory'](),S(0x1bf)),'--architecture',S(0x18f)],p=this[S(0x1c6)]['readFileLines'](a14v[S(0x1e3)](this['fsi'][S(0x1b5)]({}),S(0x1bd),'.meteor',S(0x18c))),q=p['length']>0x2?!![]:![];if(q){if(S(0x1bb)===S(0x1bb)){let y=g[S(0x1c0)]?g['serverName']:yield Actions[S(0x1b4)](S(0x196)),z=g[S(0x1d9)]?g[S(0x1d9)]:yield Actions['ask'](S(0x1de));if(y[S(0x1e1)]==0x0||z[S(0x1e1)]==0x0)throw S(0x194);let A=z==S(0x1e5)?S(0x184):S(0x183);o[S(0x1b6)](S(0x1e4)+A+S(0x1b0)+y+':'+z);if(!g[S(0x1c0)]&&!g[S(0x1d9)]){if(S(0x1af)===S(0x1af)){let B=yield Actions[S(0x1a6)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this['fsi'][S(0x1c4)](S(0x1c0),y),this[S(0x1c6)][S(0x1c4)](S(0x1d9),z),Log[S(0x1d7)](S(0x19e)+a14v[S(0x1e3)](S(0x190),S(0x1c3))));}else try{i(j['next'](k));}catch(D){m(D);}}}else{const E=g?function(){const T=S;if(E){const F=q[T(0x1cd)](r,arguments);return s=null,F;}}:function(){};return l=![],E;}}let r=a14v[S(0x1e3)](this[S(0x1c6)]['pathFromProject']({}),S(0x1bf),S(0x1ca));if(a14w[S(0x1dc)](r)){if(S(0x19a)!==S(0x1b7)){const E=yield Actions['confirm'](S(0x199));let F=E;F&&(execSync(h+S(0x1c2),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1cf)}),execSync(h+'\x20\x20'+o[S(0x1e3)]('\x20'),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1db)}));}else{if(e){const H=i[S(0x1cd)](j,arguments);return k=null,H;}}}else execSync(h+S(0x1c2),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':'ignore'}),execSync(h+'\x20'+o[S(0x1e3)]('\x20'),{'cwd':this[S(0x1c6)][S(0x1d0)](),'stdio':S(0x1db)});Log[S(0x1d7)](S(0x1a8)+m),Log[S(0x1d7)](S(0x1a5)+n),Log[S(0x1d7)](S(0x1c7)+l);const s=S(0x191)+m+'\x20'+n+'\x20'+l;execSync(s,{'stdio':S(0x1db)}),Log[S(0x1d7)](S(0x1a2));}}catch(H){S(0x1e2)!==S(0x1e2)?d(H['throw'](f)):(console[S(0x1ae)](H),process[S(0x1a0)](0x0));}});},a14u);
1
+ const a14L=a14d;(function(a,b){const H=a14d,c=a();while(!![]){try{const d=parseInt(H(0x1ad))/0x1*(-parseInt(H(0x1e8))/0x2)+parseInt(H(0x1e1))/0x3*(parseInt(H(0x1b1))/0x4)+parseInt(H(0x1a4))/0x5*(parseInt(H(0x1fb))/0x6)+parseInt(H(0x1da))/0x7*(parseInt(H(0x1e7))/0x8)+parseInt(H(0x1c4))/0x9+parseInt(H(0x1ba))/0xa+parseInt(H(0x1a6))/0xb*(-parseInt(H(0x1c7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xac0d0));const a14b=(function(){let a=!![];return function(b,c){const I=a14d;if(I(0x1f1)===I(0x1f6))f(g+I(0x1cc),{'cwd':this['fsi']['findAppDirectory'](),'stdio':I(0x1f0)}),h(i+'\x20'+j['join']('\x20'),{'cwd':this[I(0x1ff)][I(0x1fe)](),'stdio':I(0x1d4)});else{const e=a?function(){const J=I;if(c){const f=c[J(0x1ab)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const K=a14d;return a14a['toString']()[K(0x1db)](K(0x1ef))['toString']()[K(0x1d7)](a14a)['search'](K(0x1ef));});a14a();var __awaiter=this&&this[a14L(0x1f5)]||function(a,b,c,d){function e(f){const M=a14d;return M(0x1d9)===M(0x1d9)?f instanceof c?f:new c(function(g){g(f);}):c['toString']()[M(0x1db)](M(0x1ef))[M(0x1c9)]()[M(0x1d7)](d)[M(0x1db)](M(0x1ef));}return new(c||(c=Promise))(function(f,g){const Q=a14d;function h(k){const N=a14d;if(N(0x1c1)!==N(0x1c1))c(d);else try{if('yThzz'!==N(0x1cf))j(d[N(0x1c5)](k));else{if(e){const n=i[N(0x1ab)](j,arguments);return k=null,n;}}}catch(n){N(0x1aa)!=='yIefo'?c(d):g(n);}}function i(k){const O=a14d;try{j(d[O(0x1f8)](k));}catch(l){O(0x1ee)===O(0x1ee)?g(l):(this[O(0x1ff)][O(0x1f3)]('serverName',l),this[O(0x1ff)]['setProjectConfig'](O(0x1bf),f),g[O(0x1e4)](O(0x1ce)+h[O(0x1b3)](O(0x1eb),O(0x1ae))));}}function j(k){const P=a14d;k['done']?f(k['value']):e(k[P(0x1c2)])['then'](h,i);}j((d=d[Q(0x1ab)](a,b||[]))[Q(0x1c5)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';function a14c(){const T=['docker','1116TdPjDb','config.json','cert','AZkVg','65324eeAMCa','app','join','confirm','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','Mobile\x20server\x20port:\x20','Build\x20Path:\x20','pathFromProject','config','5432940ahynwN','ZQfcL','OUeFJ','.meteor','cert.pem','serverPort','_keys','VrEtp','value','--server=','12477087jDXLmm','next','platforms','24YqghpK','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','toString','os.linux.x86_64','exit','\x20npm\x20install\x20--save','VccPo','Stored\x20server\x20config\x20to\x20','NRJZv','create','error','Dockerfile','length','inherit','getProjectConfig','build','constructor','copyFileSync','VKQwL','7hPVAYA','search','ask','getGlobalConfig','mkdirSync','findGenerator','serverName','249lFRASX','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','WBmIT','notice','app.tar.gz','checkConfigExists','11105432zKnnbx','2396sthHom','dockerfile','appName','.maka','BMNhY','maka\x20build:docker','fraSj','(((.+)+)+)+$','ignore','YKnhq','invoke','setProjectConfig','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','__awaiter','yleYL','force','throw','isDirectory','getProjectsMeteorNodeVersion','18DDQzKR','isFile','platform','findAppDirectory','fsi','existsSync','Try\x20\x27maka\x20run\x20--docker\x27','1302695sQwmCf','win32','18772699wTAemA','readFileLines','://','MmlaH','yIefo','apply'];a14c=function(){return T;};return a14c();}import{execSync}from'child_process';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x1a2;let f=c[d];return f;},a14d(a,b);}import{paramCase}from'change-case';import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a14L(0x1d0)]({'name':'docker','usage':'maka\x20build:docker','validOpts':[a14L(0x1f7),'tag'],'description':a14L(0x1c8),'mustBeInMakaProject':!![],'examples':[a14L(0x1ed)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const R=a14d;try{if(R(0x1cd)===R(0x1cd)){const c=yield this[R(0x1ff)][R(0x1dd)](),d=yield this[R(0x1ff)][R(0x1d5)]();let f=process[R(0x1fd)]===R(0x1a5)?'meteor.bat':'meteor',g=this['fsi'][R(0x1b8)]({}),h=a14v['join'](g,R(0x1d2));if(!this[R(0x1ff)]['isFile'](h)){const r=a14x['findGenerator'](R(0x1e9));r&&(yield r[R(0x1f2)]([R(0x1e9)],{'cwd':g,'config':d}));}const i=this['fsi'][R(0x1e6)]('docker');if(!i){if(R(0x1e3)!==R(0x1bc)){const s=a14x[R(0x1df)]('config');s&&(yield s[R(0x1f2)]([R(0x1ac)],{'cwd':g,'config':d,'isDocker':!![]}));}else f(g+R(0x1cc),{'cwd':this[R(0x1ff)][R(0x1fe)](),'stdio':'ignore'}),h(i+'\x20\x20'+j['join']('\x20'),{'cwd':this[R(0x1ff)][R(0x1fe)](),'stdio':R(0x1d4)});}if(this[R(0x1ff)][R(0x1fc)](c[R(0x1af)])){const u=this['fsi'][R(0x1f9)](a14v[R(0x1b3)](R(0x1b9),R(0x1ac),R(0x1c0)));if(!u){if(R(0x1b0)!==R(0x1bb))a14w[R(0x1de)](a14v[R(0x1b3)]('config',R(0x1ac),R(0x1c0)));else try{i(j[R(0x1c5)](k));}catch(w){m(w);}}a14w[R(0x1d8)](c['cert'],a14v[R(0x1b3)](g,R(0x1b9),'docker',R(0x1c0),R(0x1be)));}let j=this[R(0x1ff)]['pathFromProject']({}),k=this[R(0x1ff)][R(0x1fa)](),l='-t\x20'+paramCase(d[R(0x1ea)])+':latest';b['tag']&&(l='-t\x20'+b['tag']);let m=['build',a14v[R(0x1b3)](this['fsi']['findProjectDirectory'](),R(0x1d6)),'--architecture',R(0x1ca)],n=this['fsi'][R(0x1a7)](a14v[R(0x1b3)](this[R(0x1ff)][R(0x1b8)]({}),R(0x1b2),R(0x1bd),R(0x1c6))),o=n['length']>0x2?!![]:![];if(o){let w=d[R(0x1e0)]?d['serverName']:yield Actions['ask'](R(0x1f4)),x=d['serverPort']?d[R(0x1bf)]:yield Actions[R(0x1dc)](R(0x1b6));if(w[R(0x1d3)]==0x0||x[R(0x1d3)]==0x0)throw R(0x1b5);let y=x=='443'?'https':'http';m['push'](R(0x1c3)+y+R(0x1a8)+w+':'+x);if(!d[R(0x1e0)]&&!d[R(0x1bf)]){if('LWocJ'==='LWocJ'){let z=yield Actions[R(0x1b4)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');z&&(this['fsi'][R(0x1f3)]('serverName',w),this[R(0x1ff)][R(0x1f3)](R(0x1bf),x),Log['notice'](R(0x1ce)+a14v[R(0x1b3)](R(0x1eb),R(0x1ae))));}else{const B=g?function(){const S=R;if(B){const C=q[S(0x1ab)](r,arguments);return s=null,C;}}:function(){};return l=![],B;}}}let p=a14v[R(0x1b3)](this[R(0x1ff)][R(0x1b8)]({}),'build',R(0x1e5));if(a14w[R(0x1a2)](p)){if('MJazx'==='kEzVt')d(e[R(0x1c5)](f));else{const C=yield Actions[R(0x1b4)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');let D=C;D&&(execSync(f+R(0x1cc),{'cwd':this[R(0x1ff)]['findAppDirectory'](),'stdio':R(0x1f0)}),execSync(f+'\x20\x20'+m['join']('\x20'),{'cwd':this['fsi'][R(0x1fe)](),'stdio':R(0x1d4)}));}}else{if(R(0x1a9)!==R(0x1ec))execSync(f+'\x20npm\x20install\x20--save',{'cwd':this[R(0x1ff)]['findAppDirectory'](),'stdio':R(0x1f0)}),execSync(f+'\x20'+m[R(0x1b3)]('\x20'),{'cwd':this[R(0x1ff)]['findAppDirectory'](),'stdio':'inherit'});else{const F=d['apply'](e,arguments);return f=null,F;}}Log['notice'](R(0x1e2)+k),Log[R(0x1e4)]('Tagging\x20Docker\x20Image:\x20'+l),Log[R(0x1e4)](R(0x1b7)+j);const q='docker\x20build\x20--build-arg\x20NODE_VERSION='+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':'inherit'}),Log[R(0x1e4)](R(0x1a3));}else d[R(0x1d1)](e),f[R(0x1cb)](0x0);}catch(G){console['error'](G),process['exit'](0x0);}});},a14u);