@maka/maka-cli 4.1.25 → 4.1.27

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 (89) 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/reconfig.js +1 -1
  39. package/dist/commands/run.js +1 -1
  40. package/dist/commands/set/_index.js +1 -1
  41. package/dist/commands/set/global.sub.cmd.js +1 -1
  42. package/dist/commands/set/local.sub.cmd.js +1 -1
  43. package/dist/commands/set/set.command.js +1 -1
  44. package/dist/commands/ssh.js +1 -1
  45. package/dist/commands/ssl.js +1 -1
  46. package/dist/commands/test.js +1 -1
  47. package/dist/commands/version.js +1 -1
  48. package/dist/error.js +1 -1
  49. package/dist/generator.js +1 -1
  50. package/dist/generators/_index.js +1 -1
  51. package/dist/generators/api.js +1 -1
  52. package/dist/generators/collection.js +1 -1
  53. package/dist/generators/component.js +1 -1
  54. package/dist/generators/config.js +1 -1
  55. package/dist/generators/dbc.js +1 -1
  56. package/dist/generators/dockerfile.js +1 -1
  57. package/dist/generators/hook.js +1 -1
  58. package/dist/generators/kit.js +1 -1
  59. package/dist/generators/layout.js +1 -1
  60. package/dist/generators/maka.gen.js +1 -1
  61. package/dist/generators/methods.js +1 -1
  62. package/dist/generators/package.js +1 -1
  63. package/dist/generators/page.js +1 -1
  64. package/dist/generators/publish.js +1 -1
  65. package/dist/generators/route.js +1 -1
  66. package/dist/generators/scaffold.js +1 -1
  67. package/dist/generators/service.js +1 -1
  68. package/dist/generators/services/_index.js +1 -1
  69. package/dist/generators/services/translation.js +1 -1
  70. package/dist/maka.js +1 -1
  71. package/dist/tool.js +1 -1
  72. package/dist/tools/actions/actions.class.js +1 -1
  73. package/dist/tools/actions/actions.test.js +1 -1
  74. package/dist/tools/aws/aws.class.js +1 -1
  75. package/dist/tools/aws/aws.interfaces.js +1 -1
  76. package/dist/tools/docker/docker.class.js +1 -1
  77. package/dist/tools/docker/docker.interfaces.js +1 -1
  78. package/dist/tools/fsi/fsi.class.js +1 -1
  79. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  80. package/dist/tools/https/https.class.js +1 -1
  81. package/dist/tools/https/https.interface.js +1 -1
  82. package/dist/tools/log/log.class.js +1 -1
  83. package/dist/tools/log/log.interfaces.js +1 -1
  84. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  85. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  86. package/dist/tools/ssh/ssh.class.js +1 -1
  87. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  88. package/dist/tools/ssl/ssl.class.js +1 -1
  89. package/package.json +1 -1
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(0x169))/0x1*(parseInt(N(0x19e))/0x2)+parseInt(N(0x1b3))/0x3*(-parseInt(N(0x19f))/0x4)+parseInt(N(0x1bd))/0x5*(parseInt(N(0x172))/0x6)+parseInt(N(0x1ca))/0x7*(parseInt(N(0x17c))/0x8)+-parseInt(N(0x1b7))/0x9+-parseInt(N(0x19b))/0xa+-parseInt(N(0x1d7))/0xb*(parseInt(N(0x18a))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xbeae3));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const O=a0d;if('APCNL'===O(0x165)){if(c){if(O(0x1ae)!==O(0x188)){const e=c[O(0x1e2)](b,arguments);return c=null,e;}else{var g;if(!p)throw new E('Command.create\x20requires\x20some\x20options!');if(typeof r!==O(0x1df))throw new F(O(0x17e));let h=new t(u,v);return w=x||y,z['assign'](h,{'parent':(g=A===null||B===void 0x0?void 0x0:C[O(0x1f0)])===null||g===void 0x0?void 0x0:g['name']}),D[O(0x1ee)](h),h;}}}else return this[O(0x1f0)][O(0x1c0)]||[];}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const P=a0d;return a0a[P(0x192)]()['search'](P(0x1c2))[P(0x192)]()[P(0x1a9)](a0a)[P(0x1a8)](P(0x1c2));});function a0c(){const ah=['addCommand\x20requires\x20a\x20Command\x20instance','Command\x20not\x20found','tKQWY','platform','trialActive','exit','Command\x20requires\x20a\x20handler\x20function','HVMUR','validateMakaProject','lfjTx','To\x20use\x20these\x20pro\x20flags,\x20\x22','APCNL','Invalid\x20options:\x20','GNnSx','pOIQR','282556kaDvGG','win32','Too\x20few\x20options','__awaiter','QHzuM','push','help','XuEeK','homedir','21744zmwOVP','splice','run','xoKvK','EDKxA','usage','VazpF','done','includes','huhpZ','9044344PgqzqD','Too\x20many\x20options','Command.create\x20requires\x20a\x20handler\x20function!','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','No\x20usage\x20provided.','trialExpirationDate','create','Too\x20many\x20arguments','getPro','forEach','xMxYO','iMtIf','GAVDp','existsSync','36qTAmnC','notice','nhMvi','Missing\x20required\x20options\x20','BGBpC','singleLicense','_handler','split','toString','validateMakaSubscription','OynFs','fqmfS','oHUUh','findProjectDirectory','value','DboVR','DZXJD','13885100GXBZlZ','concat','match','6PaNyZE','244940bMnTsa','PLsGT','error','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','name','keys','No\x20description\x20provided.','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','search','constructor','proFlags','maxArgLength','number','join','EvtQm','mustHaveMeteorInstalled','Local','bind','oWuvK','3XrUMpV','Command\x20requires\x20a\x20name','Too\x20few\x20arguments','length','5864022bQHGtn','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','parent','findCommand','.meteor','hfclX','1465UbffKT','description','Trial\x20License\x20Expires:\x20','examples','murder','(((.+)+)+)+$','No\x20aliases','_commands','ZBazq','validateMeteorInstall','tableList','To\x20use\x20this\x20command,\x20\x22','mustBeInMakaProject','7CuQKdM','assign','then','IqBmd','FBQSW','dfTBt','fsi','OXZJF','Command.create\x20requires\x20some\x20options!','maxOptsLength','zKKob','KTJMz','SaMZh','578281fbvmWj','next','EMaVg','validateParams','aliases','filter','minOptsLength','invoke','function','BWcTB','Commands:','apply','LdMZd','roles','cmkia','wbVbm','pMjKM','minArgLength','proCommands','Alias','throw','KazJA','AxCHT','addCommand','TkPMI','options','kItDL','Missing\x20required\x20option:\x20','There\x20is\x20no\x20Meteor\x20application\x20here','UlgTn','zJTqR','runSubCommand'];a0c=function(){return ah;};return a0c();}a0a();var __awaiter=this&&this[a0Q(0x16c)]||function(a,b,c,d){function e(f){const R=a0d;return'pDdwf'===R(0x176)?f instanceof g?h:new i(function(m){m(k);}):f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;if(S(0x19a)!=='DZXJD'){const m=d[S(0x1e2)](e,arguments);return f=null,m;}else try{if('TdnwC'!==S(0x178))j(d[S(0x1d8)](k));else return;}catch(n){S(0x163)===S(0x1c5)?(c[S(0x1a1)](S(0x17f)),d[S(0x1fc)](0x1)):g(n);}}function i(k){const T=a0d;try{j(d['throw'](k));}catch(l){if(T(0x1d6)===T(0x1d6))g(l);else throw c[T(0x1a1)](d);}}function j(k){const U=a0d;k[U(0x179)]?f(k[U(0x198)]):e(k[U(0x198)])['then'](h,i);}j((d=d[V(0x1e2)](a,b||[]))[V(0x1d8)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0x171)]();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';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x160;let f=c[d];return f;},a0d(a,b);}import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0Q;super();if(!a)throw new Error(W(0x1a6));if(!a[W(0x1a3)])throw new Error(W(0x1b4));if(typeof b!==W(0x1df)){if(W(0x194)===W(0x187)){const d=this[W(0x1d0)][W(0x197)]();return d!==![]?!![]:![];}else throw new Error(W(0x160));}this['options']=Object['assign']({},a),this[W(0x1a3)]=this[W(0x1f0)]['name'],this['_commands']=[],this[W(0x190)]=b[W(0x1b1)](this);}static[a0Q(0x182)](a,b,c){const X=a0Q;var d;if(!a)throw new Error(X(0x1d2));if(typeof b!=='function')throw new Error(X(0x17e));let e=new Command(a,b);return c=c||a0M,Object[X(0x1cb)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x1f0)])===null||d===void 0x0?void 0x0:d[X(0x1a3)]}),c['addCommand'](e),e;}[a0Q(0x19d)](a){const Y=a0Q;let b=[this['name']][Y(0x19c)](this[Y(0x1f0)]['aliases']||[]);if(this['parent']){if(Y(0x1e7)==='tEcKd'){let d=[this[Y(0x1a3)]][Y(0x19c)](this['options'][Y(0x1db)]||[]);return this['parent']&&d[Y(0x16e)](this[Y(0x1b9)]),d[Y(0x17a)](b);}else b['push'](this[Y(0x1b9)]);}return b[Y(0x17a)](a);}[a0Q(0x1ee)](a){const Z=a0Q;if(!(a instanceof Command))throw new Error(Z(0x1f7));this[Z(0x1c4)][Z(0x16e)](a);}[a0Q(0x162)](){const a0=a0Q,a=this['fsi'][a0(0x197)]();return a!==![]?!![]:![];}[a0Q(0x1c6)](){const a1=a0Q;let a=a0I[a1(0x1ad)](homeDir,a1(0x1bb));const b=process[a1(0x1fa)]===a1(0x16a);if(b){a=a0I[a1(0x1ad)](homeDir,'AppData',a1(0x1b0),a1(0x1bb));if(!a0K[a1(0x189)](a))return![];}else{if(a1(0x167)===a1(0x167)){if(!a0K[a1(0x189)](a))return![];}else b['push'](this['parent']);}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;try{if('sQlvE'===a2(0x196))throw new b(a2(0x1d2));else{const d=this[a2(0x1ba)](a[0x0]);if(d){if(a2(0x1f9)!=='kUQSt'){const f=(d===null||d===void 0x0?void 0x0:d[a2(0x1a3)])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d['parent'])||'',h=a[0x0],i=Object[a2(0x1a4)](b),j=yield this[a2(0x1d0)]['getPro']();!j&&(Log[a2(0x1a1)](a2(0x17f)),process[a2(0x1fc)](0x1));const k=(j===null||j===void 0x0?void 0x0:j['proCommands']['includes'](f))||(j===null||j===void 0x0?void 0x0:j['proCommands'][a2(0x17a)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0x1e4)][a2(0x17a)](a2(0x18f)))&&!(j===null||j===void 0x0?void 0x0:j['roles'][a2(0x17a)]('domainLicense'))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x1fb)]);if(k&&l)throw a2(0x1c8)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(i[a2(0x1b6)]>0x0){const m=j===null||j===void 0x0?void 0x0:j[a2(0x1aa)][a2(0x1dc)](n=>i[a2(0x17a)](n));if(m&&m['length']>0x0&&l){if(a2(0x1d5)==='jlxuZ'){let o=f===null||g===void 0x0?void 0x0:h[a2(0x191)](':');if(o)return k=o[0x0],this[a2(0x1ba)](l);else return;}else throw a2(0x164)+(m===null||m===void 0x0?void 0x0:m[a2(0x1ad)](',\x20'))+a2(0x1a2);}}if(h==='deploy'){const o=yield this[a2(0x1d0)][a2(0x184)](),p=o===null||o===void 0x0?void 0x0:o[a2(0x1e9)][a2(0x17a)](a[0x0]+'\x20'+a[0x1]);if(p&&l){if(a2(0x17b)!=='huhpZ')throw new b(a2(0x1b4));else throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x1a2);}}(j===null||j===void 0x0?void 0x0:j[a2(0x1fb)])&&Log[a2(0x18b)](a2(0x1bf)+j[a2(0x181)]['split']('T')[0x0]);}else{d['error'](a2(0x1f2)+e);throw new f();}}}}catch(s){if(a2(0x161)!=='jWNti')throw s;else{const u=f===null||g===void 0x0?void 0x0:h[a2(0x1aa)][a2(0x1dc)](v=>u[a2(0x17a)](v));if(u&&u['length']>0x0&&j)throw a2(0x164)+(u===null||u===void 0x0?void 0x0:u[a2(0x1ad)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}}});}[a0Q(0x1da)](a,b,c){const a3=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a3(0x1a4)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if(g[a3(0x1b6)]===0x0){Log['error'](a3(0x18d)+requiredOpts[a3(0x1ad)](',\x20'));throw new UsageError();}requiredOpts[a3(0x185)](h=>{const a4=a3;if(!g[a4(0x17a)](h)){if(a4(0x186)!==a4(0x186)){if(e){const j=i['apply'](j,arguments);return k=null,j;}}else{Log['error']('Missing\x20required\x20option:\x20'+h);throw new UsageError();}}});}validOpts=validOpts['concat'](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0){if(a3(0x1e5)!==a3(0x1e5))return c[a3(0x192)]()[a3(0x1a8)](a3(0x1c2))[a3(0x192)]()[a3(0x1a9)](d)[a3(0x1a8)](a3(0x1c2));else validOpts[a3(0x16e)]('help'),g[a3(0x185)](i=>{const a5=a3;if(!validOpts['includes'](i)){Log[a5(0x1a1)](a5(0x166)+i);throw new UsageError();}});}}[a0Q(0x174)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a6=a0d;if(a6(0x199)==='DboVR')try{a=a||[],b=b||{};try{yield this[a6(0x193)](a,b);}catch(c){if(a6(0x16d)===a6(0x170)){c['error'](a6(0x183));throw new d();}else Log[a6(0x1a1)](c),process['exit'](0x0);}yield this[a6(0x1de)](a,b);}catch(f){a6(0x1ed)!==a6(0x1b2)?process[a6(0x1fc)](0x1):(f[a6(0x1a1)](a6(0x1b8)),g['usage'](h,i,j));}else throw new b(a6(0x160));});}[a0Q(0x1de)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if(a7(0x1f5)==='dcLaj')c(d);else{const {usage:usage='',description:description='',examples:examples=[]}=this['options'];this[a7(0x1da)](a,b,this['options']);try{if(a7(0x1f1)!==a7(0x1f1))throw a7(0x1f8);else{if(this['options'][a7(0x1c9)]){if('YwNzK'!==a7(0x1e3)){const f=this['validateMakaProject']();if(!f)throw new MustBeInProjectError();}else c[a7(0x18b)](a7(0x1bf)+d['trialExpirationDate'][a7(0x191)]('T')[0x0]);}if(this[a7(0x1f0)][a7(0x1af)]){const h=this[a7(0x1c6)]();if(!h){if('OEtmU'!==a7(0x1e0))throw new NoMeteorFoundError();else throw new b();}}if(typeof this[a7(0x1f0)][a7(0x1e8)]===a7(0x1ac)){if(a[a7(0x1b6)]<this['options'][a7(0x1e8)]){if(a7(0x1d1)!=='uQPsm'){Log[a7(0x1a1)](a7(0x1b5));throw new UsageError();}else return this[a7(0x1f0)][a7(0x1db)]||a7(0x1c3);}}if(typeof this[a7(0x1f0)]['maxArgLength']===a7(0x1ac)){if(a[a7(0x1b6)]>=this['options'][a7(0x1ab)]){if(a7(0x1e6)===a7(0x1d4))this[a7(0x1c4)][a7(0x1b6)]>0x0&&g[a7(0x16f)]&&(m[a7(0x18b)]('Commands:'),this[a7(0x1c7)](this[a7(0x1c4)])),i[a7(0x177)](j,k,l);else{Log[a7(0x1a1)](a7(0x183));throw new UsageError();}}}if(typeof this[a7(0x1f0)][a7(0x1dd)]===a7(0x1ac)){if(Object[a7(0x1a4)](b)['length']<this[a7(0x1f0)]['minOptsLength']){if(a7(0x1ef)!==a7(0x1ef))throw a7(0x164)+(d===null||e===void 0x0?void 0x0:f[a7(0x1ad)](',\x20'))+a7(0x1a2);else{Log[a7(0x1a1)](a7(0x16b));throw new UsageError();}}}if(typeof this[a7(0x1f0)][a7(0x1d3)]===a7(0x1ac)){if(a7(0x1ce)!=='FBQSW')throw new b(a7(0x1f7));else{if(Object[a7(0x1a4)](b)[a7(0x1b6)]>=this[a7(0x1f0)][a7(0x1d3)]){Log[a7(0x1a1)](a7(0x17d));throw new UsageError();}}}if((a[0x0]===_prevCmd||a[a7(0x1b6)]===0x0)&&b['help']){if(a7(0x18e)!==a7(0x18e)){if(!f['includes'](g)){k[a7(0x1a1)](a7(0x1f2)+l);throw new m();}}else throw new UsageError();}_prevCmd=a[0x0],yield this[a7(0x190)]['call'](this,a,b);}}catch(o){if(a7(0x168)==='pOIQR'){if(o instanceof UsageError)this[a7(0x1c4)][a7(0x1b6)]>0x0&&b[a7(0x16f)]&&(a7(0x1bc)!==a7(0x1ec)?(Log[a7(0x18b)](a7(0x1e1)),this[a7(0x1c7)](this[a7(0x1c4)])):d(o[a7(0x1d8)](f))),Log[a7(0x177)](description,examples,usage);else{if(o instanceof MustBeInProjectError){if(a7(0x195)!==a7(0x195)){if(!f[a7(0x17a)](g)){k[a7(0x1a1)](a7(0x166)+l);throw new m();}}else Log[a7(0x1a1)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a7(0x177)](description,examples,usage);}else{if(o instanceof NoMeteorFoundError)Log['error'](a7(0x1a7)),Log[a7(0x18b)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log[a7(0x177)](description,examples,usage);else{if(o instanceof NoMeteorAppFoundError){if('IqBmd'!==a7(0x1cd)){if(o[a7(0x1a4)](f)[a7(0x1b6)]>=this[a7(0x1f0)][a7(0x1d3)]){i['error'](a7(0x17d));throw new j();}}else Log[a7(0x1a1)](a7(0x1f3)),Log['usage'](description,examples,usage);}else{if(a7(0x175)==='xoKvK')throw o;else throw a7(0x1c8)+b[0x0]+a7(0x1a2);}}}}process[a7(0x1fc)](0x1);}else h[a7(0x179)]?i(j[a7(0x198)]):k(l[a7(0x198)])[a7(0x1cc)](m,n);}}});}[a0Q(0x1c7)](a){const a8=a0Q,b=new a0L({});b[a8(0x16e)](['Name',a8(0x1ea),'Description']),a['sort']()[a8(0x185)](c=>{const a9=a8;c[a9(0x1a3)]!==a9(0x1c1)&&c[a9(0x1a3)]!=='game'&&b[a9(0x16e)]([c[a9(0x1a3)],c['aliases'](),c[a9(0x1be)]()]);}),Log['bright'](b['toString']());}[a0Q(0x1ba)](a){const aa=a0Q;return this[aa(0x1c4)]['find'](b=>b['match'](a));}['findSubCommand'](a){const ab=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ab(0x191)](':');if(b){if('nhMvi'===ab(0x18c))return a=b[0x0],this['findCommand'](a);else throw b;}else{if(ab(0x1d9)!==ab(0x1d9))throw b;else return;}}[a0Q(0x1f6)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ac=a0d;if(ac(0x1f4)!==ac(0x1cf))try{let d=a[ac(0x191)](':');a=d[0x0];let f=d[0x1];f&&b[ac(0x173)](0x0,0x0,f);let g=this['findCommand'](a);if(g)yield g['run'](b,c);else{if(ac(0x1a0)!=='PLsGT'){d[ac(0x1a1)](ac(0x18d)+e[ac(0x1ad)](',\x20'));throw new f();}else throw ac(0x1f8);}}catch(i){throw Log['error'](i);}else try{i(j[ac(0x1eb)](k));}catch(k){m(k);}});}[a0Q(0x1be)](){const ad=a0Q;return this[ad(0x1f0)]['description']||ad(0x1a5);}[a0Q(0x177)](){const ae=a0Q;return this[ae(0x1f0)][ae(0x177)]||ae(0x180);}['examples'](){const af=a0Q;return this[af(0x1f0)][af(0x1c0)]||[];}[a0Q(0x1db)](){const ag=a0Q;return this[ag(0x1f0)][ag(0x1db)]||ag(0x1c3);}}
1
+ const a0Q=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x15d))/0x1+parseInt(N(0x1b6))/0x2*(-parseInt(N(0x1bf))/0x3)+-parseInt(N(0x146))/0x4+parseInt(N(0x13c))/0x5+-parseInt(N(0x16f))/0x6*(-parseInt(N(0x190))/0x7)+-parseInt(N(0x142))/0x8+-parseInt(N(0x153))/0x9*(-parseInt(N(0x194))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x6c04c));function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x130;let f=c[d];return f;},a0d(a,b);}const a0b=(function(){let a=!![];return function(b,c){if('SMEKN'==='UbUWM')throw new b();else{const e=a?function(){const O=a0d;if(c){const f=c[O(0x17e)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a0a=a0b(this,function(){const P=a0d;return a0a['toString']()[P(0x141)](P(0x175))[P(0x15c)]()[P(0x1a8)](a0a)['search']('(((.+)+)+)+$');});a0a();var __awaiter=this&&this[a0Q(0x19f)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const R=a0d;if(R(0x18d)==='kJOHz')return this[R(0x193)][R(0x159)]||[];else g(f);});}return new(c||(c=Promise))(function(f,g){const V=a0d;function h(k){const S=a0d;if('tKXSA'!==S(0x187))try{S(0x169)!==S(0x169)?(c[S(0x1a9)](S(0x14b)),d[S(0x143)](0x1)):j(d[S(0x1c0)](k));}catch(m){if(S(0x135)!==S(0x1b1))g(m);else throw new b(S(0x13d));}else{d[S(0x1a9)]('Invalid\x20options:\x20'+e);throw new f();}}function i(k){const T=a0d;try{j(d['throw'](k));}catch(l){if(T(0x18c)===T(0x185))return this[T(0x199)][T(0x1a3)](n=>n[T(0x177)](c));else g(l);}}function j(k){const U=a0d;U(0x198)!==U(0x19b)?k['done']?f(k[U(0x16a)]):e(k[U(0x16a)])[U(0x156)](h,i):c(d);}j((d=d[V(0x17e)](a,b||[]))[V(0x1c0)]());});};import a0I from'path';function a0c(){const ai=['search','6440088eHBMjj','exit','done','deploy','696516oSTDrg','oflKF','aliases','mustBeInMakaProject','YUZsi','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','qnlXz','DECpV','validateMakaSubscription','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','mLqpq','Command\x20requires\x20a\x20handler\x20function','concat','2426967VYDOPo','push','AppData','then','Name','findCommand','examples','KEakm','getPro','toString','267616wPuCUs','To\x20use\x20this\x20command,\x20\x22','HSoRS','minArgLength','.meteor','Missing\x20required\x20option:\x20','split','trialActive','includes','findSubCommand','cTJqE','length','aoyfb','value','throw','validateMeteorInstall','description','Missing\x20required\x20options\x20','2092614CvEOgK','xQFhn','join','xJTBB','Command.create\x20requires\x20a\x20handler\x20function!','VLtlp','(((.+)+)+)+$','validateMakaProject','match','Invalid\x20options:\x20','Alias','PXeee','fsi','vXsSK','piaBT','apply','kqqhK','dFPQb','QMbSO','keys','number','roles','dECRa','homedir','CFHvU','No\x20aliases','Too\x20many\x20arguments','mustHaveMeteorInstalled','Too\x20few\x20options','rsfpU','bpoPv','game','minOptsLength','7epAWav','Commands:','bind','options','20snupmR','Too\x20few\x20arguments','maxArgLength','tableList','QjPPI','_commands','runSubCommand','zMtAU','To\x20use\x20these\x20pro\x20flags,\x20\x22','rgjgJ','notice','__awaiter','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','DLoeP','findProjectDirectory','find','help','sort','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','function','constructor','error','forEach','OruCS','create','Command\x20not\x20found','No\x20description\x20provided.','parent','Too\x20many\x20options','RYOGe','assign','proCommands','domainLicense','nIIMD','16282JGXUqS','call','rDxYK','filter','validateParams','singleLicense','name','maxOptsLength','existsSync','18Xesgik','next','cWBGB','usage','invoke','Command.create\x20requires\x20some\x20options!','bright','_handler','jDuhm','UXlOH','trialExpirationDate','Please\x20run\x20\x22maka\x20install\x20meteor\x22','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','run','There\x20is\x20no\x20Meteor\x20application\x20here','splice','1573595XToIlc','addCommand\x20requires\x20a\x20Command\x20instance','phGSR','TWKsi','Trial\x20License\x20Expires:\x20'];a0c=function(){return ai;};return a0c();}import a0J from'os';import a0K from'fs';const homeDir=a0J[a0Q(0x186)]();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)throw new Error(W(0x1a0));if(!a['name'])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==W(0x1a7))throw new Error(W(0x151));this[W(0x193)]=Object[W(0x1b2)]({},a),this[W(0x1bc)]=this[W(0x193)][W(0x1bc)],this[W(0x199)]=[],this[W(0x133)]=b[W(0x192)](this);}static[a0Q(0x1ac)](a,b,c){const X=a0Q;var d;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!=='function')throw new Error(X(0x173));let e=new Command(a,b);return c=c||a0M,Object[X(0x1b2)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[X(0x193)])===null||d===void 0x0?void 0x0:d[X(0x1bc)]}),c['addCommand'](e),e;}['match'](a){const Y=a0Q;let b=[this[Y(0x1bc)]]['concat'](this[Y(0x193)][Y(0x148)]||[]);return this[Y(0x1af)]&&b['push'](this[Y(0x1af)]),b[Y(0x165)](a);}['addCommand'](a){const Z=a0Q;if(!(a instanceof Command))throw new Error(Z(0x13d));this['_commands'][Z(0x154)](a);}[a0Q(0x176)](){const a0=a0Q,a=this[a0(0x17b)][a0(0x1a2)]();return a!==![]?!![]:![];}[a0Q(0x16c)](){const a1=a0Q;let a=a0I[a1(0x171)](homeDir,'.meteor');const b=process['platform']==='win32';if(b){a=a0I[a1(0x171)](homeDir,a1(0x155),'Local',a1(0x161));if(!a0K[a1(0x1be)](a))return![];}else{if(!a0K['existsSync'](a)){if(a1(0x1c1)!=='VMmhu')return![];else{if(i['length']===0x0){q[a1(0x1a9)](a1(0x16e)+r['join'](',\x20'));throw new s();}m[a1(0x1aa)](z=>{const a2=a1;if(!t[a2(0x165)](z)){w['error']('Missing\x20required\x20option:\x20'+z);throw new x();}});}}}return!![];}[a0Q(0x14e)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a3=a0d;try{if(a3(0x150)===a3(0x150)){const c=this[a3(0x158)](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a3(0x1bc)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c['parent'])||'',g=a[0x0],h=Object[a3(0x182)](b),i=yield this['fsi'][a3(0x15b)]();!i&&('vFukX'==='QxSqq'?d(e['next'](f)):(Log['error'](a3(0x14b)),process['exit'](0x1)));const j=(i===null||i===void 0x0?void 0x0:i[a3(0x1b3)][a3(0x165)](d))||(i===null||i===void 0x0?void 0x0:i['proCommands'][a3(0x165)](f)),k=!(i===null||i===void 0x0?void 0x0:i[a3(0x184)][a3(0x165)](a3(0x1bb)))&&!(i===null||i===void 0x0?void 0x0:i[a3(0x184)]['includes'](a3(0x1b4)))&&!(i===null||i===void 0x0?void 0x0:i[a3(0x164)]);if(j&&k){if(a3(0x167)!==a3(0x167)){d[a3(0x1a9)]('Missing\x20required\x20option:\x20'+e);throw new f();}else throw a3(0x15e)+a[0x0]+a3(0x1a6);}if(h[a3(0x168)]>0x0){const n=i===null||i===void 0x0?void 0x0:i['proFlags'][a3(0x1b9)](o=>h['includes'](o));if(n&&n[a3(0x168)]>0x0&&k){if(a3(0x17f)===a3(0x172))try{i(j['throw'](k));}catch(p){m(p);}else throw a3(0x19c)+(n===null||n===void 0x0?void 0x0:n[a3(0x171)](',\x20'))+a3(0x1a6);}}if(g===a3(0x145)){const p=yield this[a3(0x17b)][a3(0x15b)](),q=p===null||p===void 0x0?void 0x0:p[a3(0x1b3)][a3(0x165)](a[0x0]+'\x20'+a[0x1]);if(q&&k)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a3(0x1a6);}(i===null||i===void 0x0?void 0x0:i[a3(0x164)])&&Log[a3(0x19e)](a3(0x140)+i[a3(0x136)]['split']('T')[0x0]);}}else return this[a3(0x193)]['description']||a3(0x1ae);}catch(s){if('BUkcJ'!=='BUkcJ'){const u=this[a3(0x17b)][a3(0x1a2)]();return u!==![]?!![]:![];}else throw s;}});}[a0Q(0x1ba)](a,b,c){const a4=a0Q,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x182)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a4(0x168)])>0x0){if(g[a4(0x168)]===0x0){Log[a4(0x1a9)](a4(0x16e)+requiredOpts[a4(0x171)](',\x20'));throw new UsageError();}requiredOpts[a4(0x1aa)](h=>{const a5=a4;if(!g[a5(0x165)](h)){Log['error'](a5(0x162)+h);throw new UsageError();}});}validOpts=validOpts[a4(0x152)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a4(0x168)])>0x0&&(validOpts[a4(0x154)](a4(0x1a4)),g['forEach'](h=>{const a6=a4;if(!validOpts[a6(0x165)](h)){if(a6(0x1b8)!==a6(0x1b8))throw new b();else{Log['error'](a6(0x178)+h);throw new UsageError();}}}));}['run'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{a=a||[],b=b||{};try{yield this[a7(0x14e)](a,b);}catch(c){if('qcSiM'!=='qcSiM')throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||c===void 0x0?void 0x0:f[a7(0x171)](',\x20'))+a7(0x1a6);else Log[a7(0x1a9)](c),process[a7(0x143)](0x0);}yield this[a7(0x130)](a,b);}catch(f){process[a7(0x143)](0x1);}});}[a0Q(0x130)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if(a8(0x17c)===a8(0x17c)){const {usage:usage='',description:description='',examples:examples=[]}=this['options'];this[a8(0x1ba)](a,b,this['options']);try{if(a8(0x17d)!==a8(0x17d))b[a8(0x19e)](a8(0x191)),this[a8(0x197)](this[a8(0x199)]);else{if(this[a8(0x193)][a8(0x149)]){if(a8(0x134)!==a8(0x180)){const d=this[a8(0x176)]();if(!d)throw new MustBeInProjectError();}else{if(d[a8(0x168)]>=this[a8(0x193)][a8(0x196)]){g['error']('Too\x20many\x20arguments');throw new h();}}}if(this[a8(0x193)][a8(0x18a)]){if(a8(0x19d)==='rgjgJ'){const g=this['validateMeteorInstall']();if(!g){if(a8(0x13e)===a8(0x15a))b[a8(0x143)](0x1);else throw new NoMeteorFoundError();}}else throw new b(a8(0x173));}if(typeof this['options']['minArgLength']==='number'){if(a8(0x14c)!==a8(0x15f)){if(a['length']<this[a8(0x193)][a8(0x160)]){if('DECpV'!==a8(0x14d))d(e[a8(0x16b)](f));else{Log['error'](a8(0x195));throw new UsageError();}}}else return;}if(typeof this[a8(0x193)][a8(0x196)]==='number'){if('xQFhn'!==a8(0x170))throw new b(a8(0x131));else{if(a[a8(0x168)]>=this['options'][a8(0x196)]){if(a8(0x13f)===a8(0x13f)){Log[a8(0x1a9)](a8(0x189));throw new UsageError();}else h[a8(0x144)]?i(j['value']):k(l[a8(0x16a)])[a8(0x156)](m,n);}}}if(typeof this['options'][a8(0x18f)]===a8(0x183)){if(Object[a8(0x182)](b)[a8(0x168)]<this[a8(0x193)][a8(0x18f)]){Log[a8(0x1a9)](a8(0x18b));throw new UsageError();}}if(typeof this[a8(0x193)][a8(0x1bd)]===a8(0x183)){if(a8(0x14a)!=='RnWNs'){if(Object['keys'](b)[a8(0x168)]>=this[a8(0x193)]['maxOptsLength']){if(a8(0x17a)!==a8(0x1a1)){Log['error'](a8(0x1b0));throw new UsageError();}else{if(d[a8(0x168)]<this[a8(0x193)][a8(0x160)]){g[a8(0x1a9)](a8(0x195));throw new h();}}}}else{const p=this[a8(0x176)]();if(!p)throw new c();}}if((a[0x0]===_prevCmd||a['length']===0x0)&&b[a8(0x1a4)])throw new UsageError();_prevCmd=a[0x0],yield this[a8(0x133)][a8(0x1b7)](this,a,b);}}catch(p){if(p instanceof UsageError)this[a8(0x199)]['length']>0x0&&b['help']&&(Log[a8(0x19e)]('Commands:'),this[a8(0x197)](this[a8(0x199)])),Log[a8(0x1c2)](description,examples,usage);else{if(p instanceof MustBeInProjectError)a8(0x181)!==a8(0x1b5)?(Log[a8(0x1a9)](a8(0x138)),Log['usage'](description,examples,usage)):(g[a8(0x1a9)](a8(0x14f)),h[a8(0x19e)](a8(0x137)),i[a8(0x1c2)](j,k,l));else{if(p instanceof NoMeteorFoundError){if(a8(0x1ab)!==a8(0x147))Log[a8(0x1a9)](a8(0x14f)),Log[a8(0x19e)](a8(0x137)),Log['usage'](description,examples,usage);else throw new b();}else{if(p instanceof NoMeteorAppFoundError)Log[a8(0x1a9)](a8(0x13a)),Log[a8(0x1c2)](description,examples,usage);else throw p;}}}process[a8(0x143)](0x1);}}else f[a8(0x1a9)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),g[a8(0x1c2)](h,i,j);});}[a0Q(0x197)](a){const a9=a0Q,b=new a0L({});b[a9(0x154)]([a9(0x157),a9(0x179),'Description']),a[a9(0x1a5)]()[a9(0x1aa)](c=>{const aa=a9;c[aa(0x1bc)]!=='murder'&&c['name']!==aa(0x18e)&&b[aa(0x154)]([c[aa(0x1bc)],c[aa(0x148)](),c[aa(0x16d)]()]);}),Log[a9(0x132)](b['toString']());}[a0Q(0x158)](a){const ab=a0Q;return this['_commands'][ab(0x1a3)](b=>b[ab(0x177)](a));}[a0Q(0x166)](a){const ac=a0Q;let b=a===null||a===void 0x0?void 0x0:a[ac(0x163)](':');if(b)return a=b[0x0],this['findCommand'](a);else return;}[a0Q(0x19a)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;if('blIPL'==='wgERV')throw new b(ad(0x151));else try{let f=a[ad(0x163)](':');a=f[0x0];let g=f[0x1];g&&b[ad(0x13b)](0x0,0x0,g);let h=this[ad(0x158)](a);if(h)yield h[ad(0x139)](b,c);else throw ad(0x1ad);}catch(i){if(ad(0x174)!==ad(0x174))i[ad(0x154)]([f[ad(0x1bc)],g[ad(0x148)](),h['description']()]);else throw Log[ad(0x1a9)](i);}});}[a0Q(0x16d)](){const ae=a0Q;return this[ae(0x193)][ae(0x16d)]||ae(0x1ae);}[a0Q(0x1c2)](){const af=a0Q;return this['options'][af(0x1c2)]||'No\x20usage\x20provided.';}[a0Q(0x159)](){const ag=a0Q;return this['options'][ag(0x159)]||[];}[a0Q(0x148)](){const ah=a0Q;return this[ah(0x193)][ah(0x148)]||ah(0x188);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0x6d))/0x1+parseInt(u(0x6a))/0x2+-parseInt(u(0x64))/0x3+parseInt(u(0x6b))/0x4+-parseInt(u(0x68))/0x5+-parseInt(u(0x67))/0x6+parseInt(u(0x6e))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x4b178));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x6f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x66)]()[w(0x69)](w(0x65))[w(0x66)]()[w(0x6c)](a1a)[w(0x69)](w(0x65));});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';function a1c(){var x=['414488uYNSkQ','2111384gxHSXC','constructor','98356ZmiUos','2763376KYGUCj','apply','1378398aLrZms','(((.+)+)+)+$','toString','1186818FnJDyf','333285UpOXrW','search'];a1c=function(){return x;};return a1c();}import'./help.js';import'./install.js';import'./login.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x64;var f=c[d];return f;},a1d(a,b);}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';
1
+ (function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0xf6))/0x1*(parseInt(u(0xf4))/0x2)+-parseInt(u(0x102))/0x3+parseInt(u(0xff))/0x4*(parseInt(u(0xfb))/0x5)+-parseInt(u(0x100))/0x6+-parseInt(u(0x103))/0x7*(-parseInt(u(0xfc))/0x8)+parseInt(u(0xfd))/0x9*(parseInt(u(0xf7))/0xa)+parseInt(u(0xfe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x76cb0));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a['toString']()[w(0xf9)](w(0xfa))[w(0xf8)]()[w(0x101)](a1a)['search'](w(0xfa));});function a1c(){var x=['apply','2aySOJs','1240qOaEVm','toString','search','(((.+)+)+)+$','310qmslHT','8aFBvcd','25614FRPqhh','11808588pGhLID','50644FXJhfW','4576410XREWDA','constructor','2267502rmXsCB','4581059Shirry','860686jOlElb'];a1c=function(){return x;};return a1c();}a1a();function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xf4;var f=c[d];return f;},a1d(a,b);}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';
@@ -1 +1 @@
1
- (function(a,b){var u=a2d,c=a();while(!![]){try{var d=-parseInt(u(0x178))/0x1*(-parseInt(u(0x171))/0x2)+-parseInt(u(0x174))/0x3*(-parseInt(u(0x176))/0x4)+parseInt(u(0x16e))/0x5*(parseInt(u(0x170))/0x6)+-parseInt(u(0x17a))/0x7*(parseInt(u(0x173))/0x8)+-parseInt(u(0x179))/0x9+-parseInt(u(0x175))/0xa*(parseInt(u(0x17b))/0xb)+parseInt(u(0x177))/0xc*(-parseInt(u(0x172))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x5138e));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(0x16d)]()[v(0x16c)](v(0x16f))[v(0x16d)]()['constructor'](a2a)[v(0x16c)](v(0x16f));});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x16c;var f=c[d];return f;},a2d(a,b);}import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';function a2c(){var w=['toString','536435yHoIBr','(((.+)+)+)+$','12SMbnsY','38ciBhjN','3341PgccBY','30296MwagKK','294ShkUHI','73080hJKozu','14752smwnZX','1068vaOyiF','20733HkMxyY','2806308KZQFec','154DuCKZY','330QbMaKv','search'];a2c=function(){return w;};return a2c();}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(0xd7))/0x1*(-parseInt(u(0xdc))/0x2)+parseInt(u(0xe5))/0x3*(parseInt(u(0xe3))/0x4)+parseInt(u(0xe1))/0x5+-parseInt(u(0xdf))/0x6*(parseInt(u(0xda))/0x7)+parseInt(u(0xe2))/0x8*(parseInt(u(0xd9))/0x9)+-parseInt(u(0xd8))/0xa*(parseInt(u(0xdb))/0xb)+parseInt(u(0xe0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x57744));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0xe6)]()[w(0xe7)](w(0xe4))['toString']()[w(0xde)](a2a)[w(0xe7)](w(0xe4));});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xd7;var f=c[d];return f;},a2d(a,b);}import'./csg.sub.cmd.js';import'./di.sub.cmd.js';import'./dks.sub.cmd.js';function a2c(){var x=['490AIaUvm','22wrjMFq','6dISESy','apply','constructor','54354XQuQpu','8433696dWMKtm','3372655ROEBJw','56SjhIQe','305780zXyoTK','(((.+)+)+)+$','3YkhAZp','toString','search','93711dbPYNx','3130030YXKNGL','573039jyFKQF'];a2c=function(){return x;};return a2c();}import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0xe8))/0x1+-parseInt(w(0x100))/0x2*(parseInt(w(0xec))/0x3)+parseInt(w(0xf6))/0x4*(parseInt(w(0x106))/0x5)+parseInt(w(0xe7))/0x6+parseInt(w(0xfc))/0x7+-parseInt(w(0xff))/0x8+parseInt(w(0xf3))/0x9*(parseInt(w(0xe4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x7cc6b));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x101)!==x(0xfb)){const d=a?function(){const y=x;if(c){if('HqxOT'===y(0xf8))d[y(0xf9)](e),f[y(0xeb)](0x0);else{const f=c[y(0xef)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else try{i(j[x(0xfa)](k));}catch(f){m(f);}};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0xf0)]()[z(0xf4)](z(0xf5))[z(0xf0)]()[z(0xe9)](a3a)[z(0xf4)](z(0xf5));});a3a();var __awaiter=this&&this[a3A(0xe2)]||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 E=a3d;function h(k){const B=a3d;try{B(0x102)!=='ZgAAv'?j(d[B(0xfa)](k)):c(d);}catch(m){if(B(0xf1)!==B(0xf1)){if(m){const o=i['apply'](j,arguments);return k=null,o;}}else g(m);}}function i(k){const C=a3d;if(C(0xe1)===C(0xe1))try{if(C(0xea)===C(0xf2))return c[C(0xf0)]()[C(0xf4)](C(0xf5))['toString']()[C(0xe9)](d)[C(0xf4)](C(0xf5));else j(d['throw'](k));}catch(m){g(m);}else d(e[C(0xfa)](f));}function j(k){const D=a3d;k['done']?f(k[D(0xee)]):e(k[D(0xee)])[D(0xfe)](h,i);}j((d=d[E(0xef)](a,b||[]))[E(0xfa)]());});};function a3c(){const G=['Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','JIfRy','__awaiter','findSubCommand','10TfBwhn','maka\x20aws:describe-instance','runSubCommand','2853972lfNHIw','388895mvktJo','constructor','rcvIY','exit','96231hHSWHY','create','value','apply','toString','NFnbV','lHXaq','1410534xNIxRh','search','(((.+)+)+)+$','13164sWLAcQ','aws','jHVtM','error','next','OOctG','1700545dOhlai','maka\x20aws\x20<command>','then','6777560cipzzj','52dMrJUk','NTDIy','WnNeq','eLSOR','throw','eNiEI','1410KMhctz','maka\x20aws:di','TvUrN'];a3c=function(){return G;};return a3c();}function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0xe0;let f=c[d];return f;},a3d(a,b);}import{Command}from'../../command.js';const AWSCommand=Command[a3A(0xed)]({'name':a3A(0xf7),'usage':a3A(0xfd),'minArgLength':0x1,'description':a3A(0xe0),'examples':[a3A(0xe5),a3A(0x107)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x105)==='eNiEI')try{let c=a[0x0],d=this[F(0xe3)](c);d&&(F(0x108)!==F(0x108)?c(d):this[F(0xe6)](c,a,b));}catch(g){'eLSOR'===F(0x103)?(console[F(0xf9)](g),process[F(0xeb)](0x0)):d(g[F(0x104)](f));}else c(d);});});export default AWSCommand;
1
+ function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x9c;let f=c[d];return f;},a3d(a,b);}const a3E=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0xb2))/0x1*(-parseInt(w(0xad))/0x2)+-parseInt(w(0xa4))/0x3*(-parseInt(w(0xa2))/0x4)+parseInt(w(0xc5))/0x5*(-parseInt(w(0xaf))/0x6)+parseInt(w(0xac))/0x7*(parseInt(w(0xbe))/0x8)+-parseInt(w(0xbc))/0x9+parseInt(w(0xb9))/0xa*(parseInt(w(0xb8))/0xb)+-parseInt(w(0xbb))/0xc*(parseInt(w(0xb6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x32945));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0xc0)!==x(0xc0))c(d);else{const e=a?function(){const y=x;if(c){if(y(0xa1)==='SVrlu')try{i(j[y(0xa9)](k));}catch(g){m(g);}else{const g=c['apply'](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0xaa)]()[z(0xbd)](z(0xa8))[z(0xaa)]()['constructor'](a3a)['search'](z(0xa8));});a3a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const A=a3d;if(A(0xb7)==='ZvMPr'){const h=d[A(0x9e)](e,arguments);return f=null,h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){function h(k){const B=a3d;if('hKFEP'!==B(0x9d))try{B(0x9c)===B(0xc4)?d(e['throw'](f)):j(d[B(0xa9)](k));}catch(m){'zdZIB'===B(0xb1)?d(m[B(0xa9)](f)):g(m);}else h['done']?i(j['value']):k(l[B(0xb4)])[B(0xb0)](m,n);}function i(k){const C=a3d;try{j(d[C(0xb5)](k));}catch(l){if(C(0xbf)===C(0xbf))g(l);else{if(l){const n=i[C(0x9e)](j,arguments);return k=null,n;}}}}function j(k){const D=a3d;if(D(0x9f)!==D(0xa5))k[D(0xa7)]?f(k[D(0xb4)]):e(k[D(0xb4)])[D(0xb0)](h,i);else{let m=d[0x0],n=this[D(0xc2)](m);n&&this[D(0xae)](m,g,h);}}j((d=d['apply'](a,b||[]))['next']());});};import{Command}from'../../command.js';const AWSCommand=Command[a3E(0xba)]({'name':a3E(0xc6),'usage':a3E(0xa3),'minArgLength':0x1,'description':a3E(0xc1),'examples':['maka\x20aws:describe-instance',a3E(0xa0)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if('aMOYf'===F(0xb3))try{let d=k[0x0],f=this[F(0xc2)](d);f&&this[F(0xae)](d,n,o);}catch(g){r[F(0xc3)](g),s[F(0xab)](0x0);}else try{let d=a[0x0],f=this[F(0xc2)](d);if(f){if('zwSuP'==='zwSuP')this[F(0xae)](d,a,b);else try{i(j[F(0xb5)](k));}catch(h){m(h);}}}catch(h){'hidau'!==F(0xa6)?c(d):(console[F(0xc3)](h),process[F(0xab)](0x0));}});});export default AWSCommand;function a3c(){const G=['aws','ZKbfS','zIFjC','apply','djItY','maka\x20aws:di','bTBJv','708196XbufdB','maka\x20aws\x20<command>','3iyZCSL','OGkgU','hidau','done','(((.+)+)+)+$','next','toString','exit','68054nSdUAK','48GpeRbY','runSubCommand','84RrBOKQ','then','MCnUX','11801bUGOQA','IHdlF','value','throw','26eMdYLC','BjLfR','11LYThhD','2055920xeYjbU','create','1587084YxKoMj','1737072zuiXmj','search','176kaTvYn','Ddebt','ocgLB','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','findSubCommand','error','hQeSA','76805hIFtfj'];a3c=function(){return G;};return a3c();}
@@ -1 +1 @@
1
- const a4an=a4d;function a4c(){const aG=['next','create-instance','Instance\x20Count:\x20','Setting\x20Subnet\x20ID\x20to\x20','LChBW','done','mZLgw','parse','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','xSwjl','366846XQauqp','FRpKw','createKeyPair','jiEvf','537955XLmeBX','Name','subnet','desc','toString','constructor','QIfSf','1734824BsEpHp','cider','ImageID:','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=*','Security\x20Group\x20Name:\x20[','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','cidr','push','t3.micro','alias','then','Please\x20choose\x20a\x20key\x20to\x20use:\x20','apply','RwitW','\x20SUBNETID:\x20','lgidN','Desc','\x20SGID:\x20','Setting\x20SG\x20ID\x20to:\x20','error','sFNVs','string','maka\x20aws:create-instance','*\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','ID:\x20','Key-Pair:\x20','confirm','amiId','UsGKo','getProjectConfig','name','bjhDh','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','fYARE','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Open\x20port\x20443\x20for\x20SSL?','UPPzV','sort','throw','**\x20Available\x20key-pairs\x20**','exit','getConfigFromShorthand','env','log','search','442230fpaMWC','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ec2create','join','Instace\x20Type:\x20','\x20:\x20','Security\x20Group:\x20','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','3DlCLDk','dXEeM','1:1','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x20AZONE:\x20','cxMdf','notice','487627JKyDfv','fsi','(((.+)+)+)+$','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','create','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','ask','No\x20instance\x20has\x20been\x20created.','2008384dVgwdM','bright','EsXWF','GkVfH','**\x20Available\x20Subnets\x20**','forEach','gndcN','1116768QVSPUA','},\x20{Key=Name,Value=','nAsDD','amazon','number','\x20AMIID:\x20','FPViY','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','getTime','**\x20Available\x20AMIs\x20**','\x20DESCRIPTION:\x20','\x20CIDR:\x20','Setting\x20AMI\x20ID\x20to\x20','sgId','help','TgxRe','__awaiter','RWyaQ','value','chooseVPC','QpuFr','split','}]\x22','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','ulPWt','vPDCk','\x20SG\x20NAME:\x20','success','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','jINHr','ec2describeKeys','date','subnetId'];a4c=function(){return aG;};return a4c();}(function(a,b){const aj=a4d,c=a();while(!![]){try{const d=parseInt(aj(0x8d))/0x1+parseInt(aj(0xe3))/0x2+parseInt(aj(0xcd))/0x3*(-parseInt(aj(0xdc))/0x4)+-parseInt(aj(0xc4))/0x5+parseInt(aj(0x89))/0x6+-parseInt(aj(0xd4))/0x7+-parseInt(aj(0x94))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x44768));const a4b=(function(){let a=!![];return function(b,c){const al=a4d;if('lpQrJ'==='lpQrJ'){const d=a?function(){const ak=a4d;if('MqdIf'!=='MqdIf')c(d);else{if(c){const f=c[ak(0xa3)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else{let f=e[al(0xa7)][al(0x73)]('build\x20on\x20')[0x1];f[al(0x9e)]({'amiId':g['ID'],'desc':h[al(0xa7)],'date':f});}};}()),a4a=a4b(this,function(){const am=a4d;return a4a[am(0x91)]()[am(0xc3)](am(0xd6))['toString']()[am(0x92)](a4a)[am(0xc3)](am(0xd6));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x72;let f=c[d];return f;},a4d(a,b);}var __awaiter=this&&this[a4an(0xf3)]||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 ar=a4d;function h(k){const ao=a4d;try{j(d[ao(0x7f)](k));}catch(l){g(l);}}function i(k){const ap=a4d;try{j(d[ap(0xbd)](k));}catch(l){g(l);}}function j(k){const aq=a4d;k[aq(0x84)]?f(k['value']):e(k['value'])[aq(0xa1)](h,i);}j((d=d[ar(0xa3)](a,b||[]))['next']());});};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[a4an(0xd8)]({'name':a4an(0x80),'aliases':['ci'],'usage':a4an(0xad),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4an(0xc1)],'validOpts':[a4an(0xf1)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const as=a4d;try{if(as(0x85)!=='MwuNo'){const c=this[as(0xd5)][as(0xb4)](),d=new AWS(),{appName:f}=c,g=this['fsi'][as(0xc0)](b[as(0xc1)]);let h=f+'-'+g,i=(yield Actions[as(0xda)]('EC2\x20Name:\x20['+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[as(0xb1)](as(0x87));let r='';if(q){if(as(0xce)===as(0xce))r=yield d[as(0x8b)]({'env':g});else throw b['error'](as(0xd7));}try{if('cxMdf'!==as(0xd2))d[as(0xaa)](e),f[as(0xbf)](0x0);else{Log[as(0xd3)](as(0xbe));let x=r?r:i,y=d[as(0x7c)]({'suggestion':x}),z=(yield Actions[as(0xda)](as(0xa2)))||'-1';if(parseInt(z)<0x0){if(as(0xe5)!==as(0xe5))e=f[as(0xb5)],g[as(0x79)]('Setting\x20the\x20key-pair\x20to:\x20'+h);else{Log[as(0xaa)]('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['notice'](as(0xdb));return;}}y===null||y===void 0x0?void 0x0:y[as(0xe1)](function(B){const at=as;parseInt(z)===B['id']&&(at(0xb6)==='bjhDh'?(j=B[at(0xb5)],Log[at(0x79)]('Setting\x20the\x20key-pair\x20to:\x20'+j)):k[at(0xb5)]===l?u[at(0xd3)](at(0xaf)+v['id']+at(0x78)+w[at(0xb5)]+at(0xa8)+x[at(0xf0)]):y[at(0xc2)](at(0xaf)+z['id']+at(0x78)+A[at(0xb5)]+'\x20SGID:\x20'+B['sgId']));});}}catch(B){'tDmTP'===as(0xe9)?c[as(0xaa)](d):Log[as(0xaa)](B);}k=yield d[as(0xf6)]();let s=yield Actions[as(0xb1)](as(0xea)),t;if(s){let D=k===''?d['chooseVPC']():k,E=yield Actions['confirm'](as(0xba));t=(yield Actions['ask'](as(0x98)+i+']'))||i,d['ec2createSG']({'description':'\x22Web\x20App\x22','name':t,'vpcId':D,'ssl':E});}t=i;try{if(as(0xa6)!==as(0xa6)){const G=d[as(0xa3)](e,arguments);return f=null,G;}else{Log[as(0xd3)]('**\x20Available\x20Security\x20Groups\x20**');let G=execSync(as(0x99))['toString'](),H=JSON['parse'](G),I=[];H[as(0xe1)](function(K,L){const au=as;I['push']({'id':L,'name':K[au(0x8e)],'sgId':K['ID']});}),I[as(0xe1)](function(K){const av=as;if(K[av(0xb5)]===t)Log[av(0xd3)](av(0xaf)+K['id']+av(0x78)+K[av(0xb5)]+av(0xa8)+K['sgId']);else{if(av(0x88)===av(0xa4))try{i(j[av(0x7f)](k));}catch(M){m(M);}else console[av(0xc2)](av(0xaf)+K['id']+av(0x78)+K[av(0xb5)]+av(0xa8)+K['sgId']);}});let J=(yield Actions[as(0xda)](as(0xb9)))||'0';I['forEach'](function(K){const aw=as;if('FRpKw'===aw(0x8a)){if(K['id']===parseInt(J)){if(aw(0xf4)!==aw(0xf2))l=K[aw(0xf0)],Log[aw(0x79)](aw(0xa9)+l+'\x0a');else{const M=g?function(){const ax=aw;if(M){const N=q[ax(0xa3)](r,arguments);return s=null,N;}}:function(){};return l=![],M;}}}else i['id']===j(k)&&(q=r[aw(0xb2)],s[aw(0x79)](aw(0xef)+t+aw(0xc9)+u[aw(0x90)]));});if(l==='')throw Log[as(0xaa)](as(0xd7));}}catch(K){Log[as(0xaa)](K);}try{if(as(0xe2)!==as(0xe2))e=f['sgId'],g['success'](as(0xa9)+h+'\x0a');else{let M=0x7e6;Log[as(0xd3)](as(0xec));let N=execSync(as(0x97)+M+as(0xae))[as(0x91)](),O=JSON[as(0x86)](N),P=[],Q=[];O['forEach'](function(S,T){const ay=as;if('jINHr'!==ay(0x7b))e=f[ay(0x7e)],g[ay(0x79)](ay(0x82)+h);else{if(S[ay(0xa0)]===ay(0xe6)){let V=S['Desc'][ay(0x73)]('build\x20on\x20')[0x1];P[ay(0x9e)]({'amiId':S['ID'],'desc':S[ay(0xa7)],'date':V});}}}),P[as(0xbc)](function(S,T){const az=as;return new Date(T[az(0x7d)])[az(0xeb)]()-new Date(S['date'])['getTime']();}),P[as(0xe1)](function(S,T){const aA=as;Q[aA(0x9e)]({'id':T,'amiId':S[aA(0xb2)],'desc':S[aA(0x90)]});}),Q[as(0xe1)](function(S){const aB=as;console[aB(0xc2)](aB(0xaf)+S['id']+aB(0xe8)+S['amiId']+aB(0xed)+S['desc']);});let R=(yield Actions[as(0xda)](as(0xcc)))||'0';Q[as(0xe1)](function(S){const aC=as;S['id']===parseInt(R)&&(aC(0xbb)!==aC(0xbb)?c=d:(m=S[aC(0xb2)],Log[aC(0x79)]('Setting\x20AMI\x20ID\x20to\x20'+m+aC(0xc9)+S['desc'])));});if(m==='')throw Log[as(0xaa)](as(0xd7));}}catch(S){'cFcSO'==='klpJv'?c[as(0xaa)](d):Log[as(0xaa)](S);}try{Log[as(0xd3)](as(0xe0));let U=execSync(as(0x9b))['toString'](),V=JSON[as(0x86)](U),W=[];V[as(0xe1)](function(Y,Z){const aD=as;W[aD(0x9e)]({'id':Z,'cidr':Y[aD(0x95)],'az':Y['az'],'subnetId':Y['subnetId']});}),W[as(0xe1)](function(Y){const aE=as;console['log'](aE(0xaf)+Y['id']+aE(0xee)+Y[aE(0x9d)]+aE(0xd1)+Y['az']+aE(0xa5)+Y[aE(0x7e)]);});let X=(yield Actions[as(0xda)]('Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';W['forEach'](function(Y){const aF=as;Y['id']===parseInt(X)&&(aF(0xb3)===aF(0xb3)?(o=Y['subnetId'],Log[aF(0x79)](aF(0x82)+o)):(c[aF(0x79)](aF(0xd0)),d[aF(0xdd)](aF(0xb7))));});if(o==='')throw Log[as(0xaa)](as(0xd7));}catch(Y){'yAMah'!==as(0xab)?Log[as(0xaa)](Y):h[as(0x84)]?i(j[as(0xf5)]):k(l['value'])[as(0xa1)](m,n);}let u=as(0xcf);try{if(as(0x76)!=='ulPWt'){let a1=l['ec2create']({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':as(0x9a)+s+as(0xe4)+t+'}]\x22'});a1&&(w[as(0x79)](as(0xd0)),x[as(0xdd)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else{let a1=(yield Actions['ask'](as(0x75)))||as(0xcf),a2=a1['split'](':')[0x0],a3=a1[as(0x73)](':')[0x1];typeof parseInt(a2)===as(0xe7)&&typeof parseInt(a3)===as(0xe7)&&(as(0x93)==='QIfSf'?(u=[a2,a3][as(0xc7)](':'),Log['success'](as(0xcb)+u)):e[as(0x9e)]({'id':f,'amiId':g[as(0xb2)],'desc':h[as(0x90)]}));}}catch(a5){'EsXWF'!==as(0xde)?f['push']({'id':g,'cidr':h['cider'],'az':i['az'],'subnetId':j[as(0x7e)]}):Log['error'](a5);}try{let a7=(yield Actions[as(0xda)](as(0xc5)))||as(0x9f);typeof a7===as(0xac)&&('rhklx'!==as(0x8c)?n=a7:e['log']('ID:\x20'+f['id']+'\x20SG\x20NAME:\x20'+g[as(0xb5)]+'\x20SGID:\x20'+h['sgId']));}catch(a9){as(0x83)!==as(0xb8)?Log[as(0xaa)](a9):a9['notice'](as(0xaf)+f['id']+as(0x78)+g[as(0xb5)]+as(0xa8)+h[as(0xf0)]);}try{let ab=JSON[as(0x86)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+o+as(0x7a))[as(0x91)]())[0x0][as(0x8f)];Log['notice'](as(0x96)+m),Log[as(0xd3)](as(0x81)+u),Log['notice'](as(0xc8)+n),Log[as(0xd3)](as(0xb0)+j),Log[as(0xd3)](as(0xca)+l),Log[as(0xd3)]('Subnet:\x20'+ab);let ac=yield Actions[as(0xb1)](as(0x9c));if(ac){if(as(0x72)===as(0xdf))e[as(0x9e)]({'id':f,'name':g['Name'],'sgId':h['ID']});else{let ae=d[as(0xc6)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':as(0x9a)+g+as(0xe4)+i+as(0x74)});ae&&(Log[as(0x79)](as(0xd0)),Log[as(0xdd)](as(0xb7)));}}else Log['notice'](as(0xd9));}catch(af){'vPDCk'!==as(0x77)?(f=[g,h][as(0xc7)](':'),i['success'](as(0xcb)+j)):(console[as(0xc2)](af),Log['error'](af));}}else return f instanceof g?h:new i(function(ai){ai(k);});}catch(ai){console[as(0xaa)](ai),process[as(0xbf)](0x0);}});},a4C);
1
+ function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x164;let f=c[d];return f;},a4d(a,b);}const a4af=a4d;(function(a,b){const ac=a4d,c=a();while(!![]){try{const d=-parseInt(ac(0x1d0))/0x1+parseInt(ac(0x17f))/0x2*(parseInt(ac(0x183))/0x3)+-parseInt(ac(0x1b2))/0x4+-parseInt(ac(0x1cf))/0x5+-parseInt(ac(0x1b4))/0x6+parseInt(ac(0x173))/0x7+parseInt(ac(0x17e))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x3cb7e));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ad=a4d;if(c){const e=c[ad(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ae=a4d;return a4a['toString']()['search'](ae(0x1ae))['toString']()[ae(0x171)](a4a)['search']('(((.+)+)+)+$');});a4a();var __awaiter=this&&this[a4af(0x1d4)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const ag=a4d;ag(0x1a3)!==ag(0x1a3)?c['error'](d):g(f);});}return new(c||(c=Promise))(function(f,g){const ak=a4d;function h(k){const ah=a4d;try{ah(0x186)!==ah(0x186)?e[ah(0x165)]({'id':f,'name':g['Name'],'sgId':h['ID']}):j(d[ah(0x19a)](k));}catch(m){g(m);}}function i(k){const ai=a4d;if(ai(0x176)!==ai(0x176))f[ai(0x1c2)](ai(0x182)+g['id']+ai(0x181)+h[ai(0x194)]+ai(0x1d2)+i['az']+ai(0x190)+j['subnetId']);else try{j(d[ai(0x16e)](k));}catch(m){g(m);}}function j(k){const aj=a4d;k['done']?f(k['value']):e(k[aj(0x174)])[aj(0x195)](h,i);}j((d=d[ak(0x1bd)](a,b||[]))[ak(0x19a)]());});};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[a4af(0x1cc)]({'name':a4af(0x1c0),'aliases':['ci'],'usage':a4af(0x1ac),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4af(0x1d1)],'validOpts':[a4af(0x16b)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const al=a4d;try{const c=this['fsi']['getProjectConfig'](),d=new AWS(),{appName:f}=c,g=this[al(0x1a7)][al(0x19e)](b['env']);let h=f+'-'+g,i=(yield Actions[al(0x178)](al(0x1b1)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[al(0x185)](al(0x1c7));let r='';q&&(r=yield d[al(0x180)]({'env':g}));try{Log[al(0x1ab)]('**\x20Available\x20key-pairs\x20**');let v=r?r:i,w=d[al(0x1ad)]({'suggestion':v}),x=(yield Actions[al(0x178)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20'))||'-1';if(parseInt(x)<0x0){Log['error'](al(0x1a6)),Log[al(0x1ab)](al(0x16f));return;}w===null||w===void 0x0?void 0x0:w[al(0x188)](function(y){const am=al;parseInt(x)===y['id']&&(j=y[am(0x166)],Log[am(0x1a2)](am(0x184)+j));});}catch(y){if(al(0x164)===al(0x17c))throw b[al(0x1b6)](al(0x1c6));else Log[al(0x1b6)](y);}k=yield d[al(0x167)]();let s=yield Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?'),t;if(s){let A=k===''?d[al(0x167)]():k,B=yield Actions['confirm'](al(0x1a4));t=(yield Actions[al(0x178)](al(0x1b5)+i+']'))||i,d[al(0x169)]({'description':'\x22Web\x20App\x22','name':t,'vpcId':A,'ssl':B});}t=i;try{Log[al(0x1ab)]('**\x20Available\x20Security\x20Groups\x20**');let C=execSync('aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22')[al(0x1b0)](),D=JSON[al(0x1bc)](C),E=[];D[al(0x188)](function(G,H){const an=al;if(an(0x1c4)===an(0x19b)){if(f['alias']==='amazon'){let J=k['Desc'][an(0x1bf)]('build\x20on\x20')[0x1];l[an(0x165)]({'amiId':m['ID'],'desc':n['Desc'],'date':J});}}else E[an(0x165)]({'id':H,'name':G[an(0x197)],'sgId':G['ID']});}),E[al(0x188)](function(G){const ao=al;G[ao(0x166)]===t?Log[ao(0x1ab)]('ID:\x20'+G['id']+ao(0x1a5)+G[ao(0x166)]+ao(0x1b8)+G[ao(0x196)]):console[ao(0x1c2)](ao(0x182)+G['id']+ao(0x1a5)+G[ao(0x166)]+ao(0x1b8)+G['sgId']);});let F=(yield Actions[al(0x178)](al(0x199)))||'0';E[al(0x188)](function(G){const ap=al;ap(0x192)!==ap(0x192)?k['name']===l?u[ap(0x1ab)](ap(0x182)+v['id']+ap(0x1a5)+w[ap(0x166)]+'\x20SGID:\x20'+x[ap(0x196)]):y[ap(0x1c2)](ap(0x182)+z['id']+ap(0x1a5)+A['name']+ap(0x1b8)+B[ap(0x196)]):G['id']===parseInt(F)&&(l=G[ap(0x196)],Log[ap(0x1a2)](ap(0x1d5)+l+'\x0a'));});if(l==='')throw Log[al(0x1b6)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}catch(G){Log[al(0x1b6)](G);}try{if('LnnDy'!=='Gguyd'){let H=0x7e6;Log[al(0x1ab)]('**\x20Available\x20AMIs\x20**');let I=execSync(al(0x1b9)+H+al(0x172))[al(0x1b0)](),J=JSON[al(0x1bc)](I),K=[],L=[];J[al(0x188)](function(N,O){const aq=al;if(N[aq(0x189)]===aq(0x18d)){let P=N['Desc']['split'](aq(0x16d))[0x1];K[aq(0x165)]({'amiId':N['ID'],'desc':N[aq(0x193)],'date':P});}}),K[al(0x1af)](function(N,O){const ar=al;return new Date(O[ar(0x175)])[ar(0x1d6)]()-new Date(N[ar(0x175)])['getTime']();}),K[al(0x188)](function(N,O){const as=al;L[as(0x165)]({'id':O,'amiId':N['amiId'],'desc':N[as(0x18a)]});}),L[al(0x188)](function(N){const at=al;console[at(0x1c2)](at(0x182)+N['id']+'\x20AMIID:\x20'+N[at(0x177)]+at(0x18f)+N[at(0x18a)]);});let M=(yield Actions[al(0x178)](al(0x19d)))||'0';L[al(0x188)](function(N){const au=al;N['id']===parseInt(M)&&(m=N['amiId'],Log[au(0x1a2)]('Setting\x20AMI\x20ID\x20to\x20'+m+'\x20:\x20'+N[au(0x18a)]));});if(m==='')throw Log['error'](al(0x1c6));}else d(e[al(0x19a)](f));}catch(O){al(0x1a0)!=='IGANU'?c(d):Log[al(0x1b6)](O);}try{Log['notice'](al(0x1be));let Q=execSync(al(0x170))[al(0x1b0)](),R=JSON[al(0x1bc)](Q),S=[];R[al(0x188)](function(U,V){const av=al;S[av(0x165)]({'id':V,'cidr':U[av(0x179)],'az':U['az'],'subnetId':U['subnetId']});}),S[al(0x188)](function(U){const aw=al;console[aw(0x1c2)](aw(0x182)+U['id']+aw(0x181)+U[aw(0x194)]+aw(0x1d2)+U['az']+aw(0x190)+U[aw(0x1a8)]);});let T=(yield Actions[al(0x178)](al(0x19f)))||'0';S[al(0x188)](function(U){const ax=al;U['id']===parseInt(T)&&(o=U[ax(0x1a8)],Log[ax(0x1a2)](ax(0x168)+o));});if(o==='')throw Log[al(0x1b6)](al(0x1c6));}catch(U){Log[al(0x1b6)](U);}let u='1:1';try{let V=(yield Actions[al(0x178)](al(0x1a1)))||'1:1',W=V[al(0x1bf)](':')[0x0],X=V['split'](':')[0x1];typeof parseInt(W)===al(0x1d3)&&typeof parseInt(X)===al(0x1d3)&&('YVpSc'!=='YVpSc'?(f=[g,h]['join'](':'),i[al(0x1a2)](al(0x1b3)+j)):(u=[W,X][al(0x1cb)](':'),Log[al(0x1a2)](al(0x1b3)+u)));}catch(Z){al(0x17b)===al(0x1ba)?h(i)===j['id']&&(o=p[al(0x166)],q[al(0x1a2)]('Setting\x20the\x20key-pair\x20to:\x20'+r)):Log['error'](Z);}try{if('EQbjA'!==al(0x1b7)){let a1=(yield Actions[al(0x178)](al(0x1c8)))||al(0x17d);typeof a1===al(0x1cd)&&('bNxWp'===al(0x1c9)?c[al(0x1b6)](d):n=a1);}else h['id']===i(j)&&(o=p[al(0x196)],q['success'](al(0x1d5)+r+'\x0a'));}catch(a4){if(al(0x17a)!==al(0x198))Log[al(0x1b6)](a4);else{let a6=a4[al(0x193)][al(0x1bf)](al(0x16d))[0x1];f[al(0x165)]({'amiId':g['ID'],'desc':h['Desc'],'date':a6});}}try{let a6=JSON['parse'](execSync(al(0x18b)+o+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[al(0x1b0)]())[0x0][al(0x1aa)];Log[al(0x1ab)](al(0x1c1)+m),Log[al(0x1ab)](al(0x1c3)+u),Log[al(0x1ab)](al(0x191)+n),Log[al(0x1ab)](al(0x16a)+j),Log[al(0x1ab)](al(0x187)+l),Log[al(0x1ab)]('Subnet:\x20'+a6);let a7=yield Actions[al(0x185)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){let a8=d[al(0x1ca)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':al(0x1a9)+g+'},\x20{Key=Name,Value='+i+al(0x18c)});a8&&(Log[al(0x1a2)](al(0x19c)),Log[al(0x16c)](al(0x18e)));}else{if(al(0x1ce)!==al(0x1c5))Log['notice']('ABORTED!\x20No\x20instance\x20has\x20been\x20created!');else{const aa=d[al(0x1bd)](e,arguments);return f=null,aa;}}}catch(aa){console[al(0x1c2)](aa),Log[al(0x1b6)](aa);}}catch(ab){console[al(0x1b6)](ab),process[al(0x1bb)](0x0);}});},a4C);function a4c(){const ay=['date','sksRB','amiId','ask','cider','EiZMQ','SqYBN','LljCM','t3.micro','3507536ZIfevm','213986dMNeoK','createKeyPair','\x20CIDR:\x20','ID:\x20','12LCcSGN','Setting\x20the\x20key-pair\x20to:\x20','confirm','ICFTg','Security\x20Group:\x20','forEach','alias','desc','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','}]\x22','amazon','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x20DESCRIPTION:\x20','\x20SUBNETID:\x20','Instace\x20Type:\x20','IJWnd','Desc','cidr','then','sgId','Name','fnPCO','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','next','BtMoi','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','getConfigFromShorthand','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','IGANU','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','success','RWfxc','Open\x20port\x20443\x20for\x20SSL?','\x20SG\x20NAME:\x20','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','fsi','subnetId','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','subnet','notice','maka\x20aws:create-instance','ec2describeKeys','(((.+)+)+)+$','sort','toString','EC2\x20Name:\x20[','29720IanuDf','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','2671626QJpmwE','Security\x20Group\x20Name:\x20[','error','eGUyB','\x20SGID:\x20','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=*','iiKeb','exit','parse','apply','**\x20Available\x20Subnets\x20**','split','create-instance','ImageID:','log','Instance\x20Count:\x20','kblxM','opWXc','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','yYULf','ec2create','join','create','string','ABTGB','1471660IdLPmC','81002hGWVlc','env','\x20AZONE:\x20','number','__awaiter','Setting\x20SG\x20ID\x20to:\x20','getTime','wXwya','push','name','chooseVPC','Setting\x20Subnet\x20ID\x20to\x20','ec2createSG','Key-Pair:\x20','help','bright','build\x20on\x20','throw','No\x20instance\x20has\x20been\x20created.','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','constructor','*\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','1472261rLFwdA','value'];a4c=function(){return ay;};return a4c();}
@@ -1 +1 @@
1
- function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x86;let f=c[d];return f;},a5d(a,b);}const a5C=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=parseInt(y(0x9c))/0x1+parseInt(y(0xa0))/0x2*(parseInt(y(0x8b))/0x3)+-parseInt(y(0x9e))/0x4+parseInt(y(0x96))/0x5+-parseInt(y(0x8e))/0x6+-parseInt(y(0x97))/0x7+parseInt(y(0x95))/0x8*(parseInt(y(0x9d))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x62b3d));const a5b=(function(){let a=!![];return function(b,c){const z=a5d;if('YbmhI'===z(0x8d))c(d);else{const e=a?function(){const A=z;if('EMsvS'!==A(0x92)){if(c){if(A(0x9a)!==A(0x9a))return c[A(0x90)]()[A(0x8a)]('(((.+)+)+)+$')['toString']()['constructor'](d)[A(0x8a)](A(0x88));else{const g=c['apply'](b,arguments);return c=null,g;}}}else{if(e){const i=i[A(0x99)](j,arguments);return k=null,i;}}}:function(){};return a=![],e;}};}()),a5a=a5b(this,function(){const B=a5d;return a5a[B(0x90)]()['search'](B(0x88))[B(0x90)]()[B(0x8f)](a5a)[B(0x8a)](B(0x88));});function a5c(){const I=['ckp','then','exit','(((.+)+)+)+$','create-key-pair','search','281217pGusIr','maka\x20aws\x20create-key-pair','GzrjG','4338576jhqVtL','constructor','toString','create','cdrfy','value','throw','2458072itBtUr','261475YYeeHs','305144HitdCl','__awaiter','apply','kkEuj','env','302842jzgMvb','9TRAKEW','590384ERJKko','error','14wHOGzN','next','fsi'];a5c=function(){return I;};return a5c();}a5a();var __awaiter=this&&this[a5C(0x98)]||function(a,b,c,d){function e(f){if('nqPUf'!=='sgCOg')return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){const D=a5d;try{j(d[D(0xa1)](k));}catch(l){g(l);}}function i(k){const E=a5d;try{j(d[E(0x94)](k));}catch(l){g(l);}}function j(k){const F=a5d;k['done']?f(k[F(0x93)]):e(k[F(0x93)])[F(0x86)](h,i);}j((d=d['apply'](a,b||[]))[G(0xa1)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5C(0x91)]({'name':a5C(0x89),'aliases':[a5C(0xa3)],'usage':a5C(0x8c),'mustBeInMakaProject':!![],'requiredOpts':[a5C(0x9b)],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;try{const c=new AWS(),d=this[H(0xa2)]['getConfigFromShorthand'](b['env']);c['createKeyPair']({'env':d});}catch(f){console[H(0x9f)](f),process[H(0x87)](0x0);}});},a5x);
1
+ const a5D=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=-parseInt(A(0x15b))/0x1+parseInt(A(0x16c))/0x2*(-parseInt(A(0x157))/0x3)+parseInt(A(0x166))/0x4*(parseInt(A(0x15e))/0x5)+-parseInt(A(0x160))/0x6+-parseInt(A(0x172))/0x7+-parseInt(A(0x16d))/0x8*(-parseInt(A(0x156))/0x9)+parseInt(A(0x154))/0xa*(parseInt(A(0x169))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x6bdc8));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const B=a5d;if(c){const e=c[B(0x168)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const C=a5d;return a5a[C(0x164)]()[C(0x16a)](C(0x161))[C(0x164)]()[C(0x158)](a5a)[C(0x16a)](C(0x161));});a5a();function a5c(){const L=['search','throw','28AVAqXo','2456CiVrUq','__awaiter','env','jhMMG','exit','1800001rBstRK','next','error','hmaGL','10xrEUXx','create','6903eNSdmL','151743Mqejyr','constructor','then','create-key-pair','466223SBGMNG','value','fsi','130QyHmyU','uzKvn','2266206ubDjyh','(((.+)+)+)+$','done','SZwDc','toString','help','47740lrIGGN','createKeyPair','apply','18757442ypZpPO'];a5c=function(){return L;};return a5c();}function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x151;let f=c[d];return f;},a5d(a,b);}var __awaiter=this&&this[a5D(0x16e)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const E=a5d;if(E(0x170)!==E(0x153))g(f);else{const i=g?function(){const F=E;if(i){const u=q[F(0x168)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}});}return new(c||(c=Promise))(function(f,g){const J=a5d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const G=a5d;if('gOdnz'===G(0x163))return f(this,void 0x0,void 0x0,function*(){const H=G;try{const x=new o(),y=this['fsi']['getConfigFromShorthand'](p[H(0x16f)]);x[H(0x167)]({'env':y});}catch(z){s['error'](z),t['exit'](0x0);}});else try{j(d[G(0x16b)](k));}catch(m){g(m);}}function j(k){const I=a5d;k[I(0x162)]?f(k[I(0x15c)]):e(k[I(0x15c)])[I(0x159)](h,i);}j((d=d['apply'](a,b||[]))[J(0x151)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5D(0x155)]({'name':a5D(0x15a),'aliases':['ckp'],'usage':'maka\x20aws\x20create-key-pair','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a5D(0x165)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const K=a5d;try{if('YPfGG'===K(0x15f))try{i(j['throw'](k));}catch(d){m(d);}else{const d=new AWS(),f=this[K(0x15d)]['getConfigFromShorthand'](b[K(0x16f)]);d['createKeyPair']({'env':f});}}catch(g){console[K(0x152)](g),process[K(0x171)](0x0);}});},a5x);
@@ -1 +1 @@
1
- const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xe5))/0x1+parseInt(v(0xd8))/0x2+-parseInt(v(0xee))/0x3+-parseInt(v(0xdb))/0x4+-parseInt(v(0xe1))/0x5*(parseInt(v(0xf0))/0x6)+-parseInt(v(0xde))/0x7*(-parseInt(v(0xe7))/0x8)+parseInt(v(0xfa))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x56736));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(c){const e=c[w(0xf2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a['toString']()[x(0xe6)](x(0xdf))[x(0xeb)]()[x(0xef)](a6a)['search']('(((.+)+)+)+$');});function a6c(){const E=['done','BUwPu','1334196NeqEKK','value','XTjsA','help','\x22Web\x20App\x22','1315810jztQHA','ssl','Security\x20Group\x20Name:\x20[','2541728nWRTCW','getProjectConfig','Open\x20port\x20443\x20for\x20SSL?','30023BgtKiQ','(((.+)+)+)+$','__awaiter','590CwYJnJ','maka\x20aws\x20terminate-instance','next','sqtUO','91948Klspvl','search','1152dKCRQN','csg','JgTAG','name','toString','then','create-security-group','611607fdJaJQ','constructor','7038jBMtnt','error','apply','chooseVPC','ec2createSG','exit','CpJSo','fsi'];a6c=function(){return E;};return a6c();}a6a();var __awaiter=this&&this[a6y(0xe0)]||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=a6d;function h(k){const z=a6d;try{j(d[z(0xe3)](k));}catch(l){g(l);}}function i(k){const A=a6d;try{A(0xe4)!==A(0xe4)?c(d):j(d['throw'](k));}catch(m){A(0xf6)==='CpJSo'?g(m):(d[A(0xf1)](m),f[A(0xf5)](0x0));}}function j(k){const B=a6d;k[B(0xf8)]?f(k[B(0xd4)]):e(k[B(0xd4)])[B(0xec)](h,i);}j((d=d[C(0xf2)](a,b||[]))['next']());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xd4;let f=c[d];return f;},a6d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a6y(0xed),'aliases':[a6y(0xe8)],'usage':a6y(0xe2),'validOpts':[a6y(0xd6)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a6d;try{if(D(0xf9)!==D(0xd5)){const c=new AWS(),d=this[D(0xf7)][D(0xdc)](),{appName:f}=d;let g=yield c[D(0xf3)](),h=![];!b[D(0xd9)]&&(h=yield Actions['confirm'](D(0xdd)));let i=h?'-ssl':'',j=b[D(0xea)]?b['name']:''+f+i,k=(yield Actions['ask'](D(0xda)+j+']'))||j;c[D(0xf4)]({'description':D(0xd7),'name':k,'vpcId':g,'ssl':h});}else h[D(0xf8)]?i(j[D(0xd4)]):k(l['value'])[D(0xec)](m,n);}catch(m){D(0xe9)!==D(0xe9)?c(d):(console[D(0xf1)](m),process[D(0xf5)](0x0));}});},a6u);
1
+ const a6z=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=parseInt(v(0x119))/0x1*(parseInt(v(0x107))/0x2)+parseInt(v(0x12b))/0x3*(-parseInt(v(0x10f))/0x4)+parseInt(v(0x129))/0x5*(-parseInt(v(0x106))/0x6)+-parseInt(v(0x10b))/0x7*(-parseInt(v(0x112))/0x8)+-parseInt(v(0x11e))/0x9*(parseInt(v(0x11d))/0xa)+-parseInt(v(0x120))/0xb+parseInt(v(0x12f))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x5da08));function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x106;let f=c[d];return f;},a6d(a,b);}const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if(w(0x12d)===w(0x114)){const e=d[w(0x11c)](e,arguments);return f=null,e;}else{const e=a?function(){const x=w;if(x(0x108)==='ZgyCv'){if(c){if(x(0x11b)===x(0x11b)){const f=c['apply'](b,arguments);return c=null,f;}else c(d);}}else{if(e){const i=i[x(0x11c)](j,arguments);return k=null,i;}}}:function(){};return a=![],e;}};}()),a6a=a6b(this,function(){const y=a6d;return a6a[y(0x12e)]()[y(0x127)]('(((.+)+)+)+$')[y(0x12e)]()[y(0x10e)](a6a)[y(0x127)](y(0x11f));});a6a();var __awaiter=this&&this[a6z(0x128)]||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=a6d;function h(k){const A=a6d;if(A(0x123)===A(0x123))try{if(A(0x118)===A(0x118))j(d[A(0x10a)](k));else return c[A(0x12e)]()[A(0x127)]('(((.+)+)+)+$')[A(0x12e)]()[A(0x10e)](d)[A(0x127)](A(0x11f));}catch(m){g(m);}else try{i(j[A(0x10d)](k));}catch(o){m(o);}}function i(k){const B=a6d;try{if('tkQuM'===B(0x113))j(d[B(0x10d)](k));else return f instanceof g?h:new i(function(m){m(k);});}catch(m){g(m);}}function j(k){const C=a6d;k[C(0x130)]?f(k[C(0x115)]):e(k[C(0x115)])[C(0x10c)](h,i);}j((d=d[D(0x11c)](a,b||[]))['next']());});};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[a6z(0x116)]({'name':a6z(0x122),'aliases':['csg'],'usage':a6z(0x12c),'validOpts':[a6z(0x11a)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a6d;if(E(0x124)!=='KzIWN')try{const c=new AWS(),d=this['fsi']['getProjectConfig'](),{appName:f}=d;let g=yield c['chooseVPC'](),h=![];!b[E(0x126)]&&(E(0x125)!==E(0x111)?h=yield Actions['confirm'](E(0x121)):d(e['throw'](f)));let i=h?E(0x117):'',j=b['name']?b['name']:''+f+i,k=(yield Actions[E(0x109)]('Security\x20Group\x20Name:\x20['+j+']'))||j;c['ec2createSG']({'description':E(0x12a),'name':k,'vpcId':g,'ssl':h});}catch(m){console['error'](m),process[E(0x110)](0x0);}else try{i(j[E(0x10a)](k));}catch(o){m(o);}});},a6u);function a6c(){const F=['73XNIZHx','help','kXlkV','apply','50xQnpPw','552825fLUUCe','(((.+)+)+)+$','4885485iCxVNd','Open\x20port\x20443\x20for\x20SSL?','create-security-group','GRJdS','wleoO','jsEHd','ssl','search','__awaiter','25865vrgdjm','\x22Web\x20App\x22','6ngRUjE','maka\x20aws\x20terminate-instance','EtZwF','toString','8208756HWEsnH','done','6oqkARV','7122umKwHL','ZgyCv','ask','next','175cDiMoL','then','throw','constructor','1117324zsKRjN','exit','mUCEn','241464Dmuseq','tkQuM','FiBNk','value','create','-ssl','srVwW'];a6c=function(){return F;};return a6c();}
@@ -1 +1 @@
1
- var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0xe5))/0x1*(-parseInt(v(0xf1))/0x2)+parseInt(v(0xea))/0x3*(parseInt(v(0xf8))/0x4)+-parseInt(v(0xec))/0x5*(-parseInt(v(0x101))/0x6)+parseInt(v(0xfc))/0x7*(parseInt(v(0xe8))/0x8)+parseInt(v(0xf5))/0x9+-parseInt(v(0xf2))/0xa*(parseInt(v(0x106))/0xb)+parseInt(v(0xe6))/0xc*(-parseInt(v(0xf4))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x22e1c));var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if(w(0x105)===w(0x105)){var d=a?function(){var x=w;if(c){if(x(0xed)!==x(0xfd)){var e=c['apply'](b,arguments);return c=null,e;}else c(d);}}:function(){};return a=![],d;}else try{const f=new g();f['ec2describeInstances']();}catch(g){j[w(0xf9)](g),k['exit'](0x0);}};}()),a7a=a7b(this,function(){var y=a7d;return a7a['toString']()[y(0xef)]('(((.+)+)+)+$')[y(0xf0)]()[y(0xff)](a7a)[y(0xef)](y(0x102));});function a7c(){var I=['help','26130xUEfmk','1485468GegqNa','maka\x20aws\x20describe-instances','zCuge','170708GMwvGW','error','ZhtQc','done','813687hzskry','aFxFY','exit','constructor','next','31812kFNpkz','(((.+)+)+)+$','xOuKK','describe-instances','LsMkr','352CQXuLn','then','shcoh','value','create','MkGjJ','51FhfXxO','1008BESwZl','__awaiter','8NOCWur','ec2describeInstances','3CrrHUv','apply','230EoiBWf','CdOdB','kVhwa','search','toString','4812cSOcWR','41700ZyEAfH'];a7c=function(){return I;};return a7c();}a7a();function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0xe4;var f=c[d];return f;},a7d(a,b);}var __awaiter=this&&this[a7z(0xe7)]||function(a,b,c,d){function e(f){var A=a7d;if(A(0x108)===A(0x108))return f instanceof c?f:new c(function(g){g(f);});else{var h=g?function(){var B=A;if(h){var u=q[B(0xeb)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}return new(c||(c=Promise))(function(f,g){var G=a7d;function h(k){var C=a7d;if(C(0xfa)!==C(0xf7))try{'CBeqv'!=='FGDGx'?j(d['next'](k)):c(d);}catch(m){g(m);}else return c[C(0xf0)]()[C(0xef)](C(0x102))[C(0xf0)]()[C(0xff)](d)['search']('(((.+)+)+)+$');}function i(k){var D=a7d;try{j(d['throw'](k));}catch(l){if(D(0xee)!==D(0xee))return l(this,void 0x0,void 0x0,function*(){var E=D;try{const s=new l();s[E(0xe9)]();}catch(t){o[E(0xf9)](t),p['exit'](0x0);}});else g(l);}}function j(k){var F=a7d;k[F(0xfb)]?f(k[F(0x109)]):e(k[F(0x109)])[F(0x107)](h,i);}j((d=d[G(0xeb)](a,b||[]))[G(0x100)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7z(0x10a)]({'name':a7z(0x104),'aliases':['di'],'usage':a7z(0xf6),'validOpts':[a7z(0xf3)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var H=a7d;try{const a=new AWS();a[H(0xe9)]();}catch(b){H(0x103)===H(0xe4)?h[H(0xfb)]?i(j[H(0x109)]):k(l[H(0x109)])['then'](m,n):(console[H(0xf9)](b),process[H(0xfe)](0x0));}});},a7u);
1
+ var a7z=a7d;function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x13f;var f=c[d];return f;},a7d(a,b);}(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0x146))/0x1*(-parseInt(v(0x14d))/0x2)+-parseInt(v(0x144))/0x3+-parseInt(v(0x152))/0x4*(-parseInt(v(0x148))/0x5)+parseInt(v(0x14b))/0x6*(-parseInt(v(0x140))/0x7)+-parseInt(v(0x157))/0x8+-parseInt(v(0x149))/0x9+parseInt(v(0x156))/0xa*(parseInt(v(0x150))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x6ce45));var a7b=(function(){var a=!![];return function(b,c){var w=a7d;if('tUuda'!==w(0x158)){var d=a?function(){var x=w;if(c){if(x(0x155)===x(0x155)){var e=c[x(0x154)](b,arguments);return c=null,e;}else h[x(0x15d)]?i(j[x(0x13f)]):k(l[x(0x13f)])['then'](m,n);}}:function(){};return a=![],d;}else{const f=new b();f[w(0x151)]();}};}()),a7a=a7b(this,function(){var y=a7d;return a7a[y(0x143)]()[y(0x141)](y(0x15b))[y(0x143)]()['constructor'](a7a)[y(0x141)](y(0x15b));});a7a();var __awaiter=this&&this[a7z(0x145)]||function(a,b,c,d){function e(f){var A=a7d;if(A(0x142)!==A(0x159))return f instanceof c?f:new c(function(g){g(f);});else d['error'](e),f[A(0x147)](0x0);}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){var B=a7d;try{j(d[B(0x14e)](k));}catch(l){g(l);}}function j(k){var C=a7d;k[C(0x15d)]?f(k[C(0x13f)]):e(k[C(0x13f)])[C(0x15c)](h,i);}j((d=d['apply'](a,b||[]))[D(0x14f)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7z(0x153)]({'name':a7z(0x15a),'aliases':['di'],'usage':'maka\x20aws\x20describe-instances','validOpts':[a7z(0x14c)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;try{const a=new AWS();a[E(0x151)]();}catch(b){console[E(0x14a)](b),process[E(0x147)](0x0);}});},a7u);function a7c(){var F=['777924dHCkBi','error','12EzxkXM','help','43042mUDGzp','throw','next','8047633yUbXDf','ec2describeInstances','68OYpppC','create','apply','MLYeB','10hVqBdX','2062360NGaiUS','kIQXl','FCRIj','describe-instances','(((.+)+)+)+$','then','done','value','648452PfldTn','search','JMncf','toString','948555MUJKcY','__awaiter','10iFdcWV','exit','101440zkcsHy'];a7c=function(){return F;};return a7c();}
@@ -1 +1 @@
1
- var a8x=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x103))/0x1+parseInt(v(0x11b))/0x2+parseInt(v(0x118))/0x3+-parseInt(v(0x10c))/0x4*(-parseInt(v(0x10a))/0x5)+parseInt(v(0x106))/0x6*(-parseInt(v(0x11d))/0x7)+-parseInt(v(0x10b))/0x8*(parseInt(v(0x110))/0x9)+parseInt(v(0x113))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xa1afb));var a8b=(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;};}()),a8a=a8b(this,function(){var w=a8d;return a8a[w(0x101)]()[w(0x111)](w(0x107))[w(0x101)]()[w(0x11e)](a8a)['search'](w(0x107));});a8a();var __awaiter=this&&this[a8x(0x108)]||function(a,b,c,d){function e(f){var y=a8d;if(y(0x115)==='mbPzx')return f instanceof c?f:new c(function(g){g(f);});else{if(e){var h=i['apply'](j,arguments);return k=null,h;}}}return new(c||(c=Promise))(function(f,g){var B=a8d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){var z=a8d;try{j(d[z(0x104)](k));}catch(l){g(l);}}function j(k){var A=a8d;if(A(0x109)!==A(0x112))k['done']?f(k[A(0x102)]):e(k[A(0x102)])[A(0x11c)](h,i);else try{i(j[A(0x104)](k));}catch(m){m(m);}}j((d=d[B(0x10f)](a,b||[]))[B(0x119)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a8x(0x114),'aliases':['dkp'],'usage':a8x(0x11a),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var C=a8d;try{const a=new AWS();a[C(0x105)]();}catch(b){C(0x10e)!==C(0x117)?(console[C(0x116)](b),process[C(0x10d)](0x0)):d(b[C(0x119)](f));}});},a8u);function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x101;var f=c[d];return f;},a8d(a,b);}function a8c(){var D=['412220eFMtLe','describe-key-pairs','mbPzx','error','nlouQ','845706SsSwmK','next','maka\x20aws\x20describe-key-pairs','139696AqWaiZ','then','1379063EBMZWh','constructor','toString','value','1269414HncgZz','throw','ec2describeKeys','30mxktDu','(((.+)+)+)+$','__awaiter','mpwLw','69305fSEhAD','8392aiBHKh','68Adagav','exit','mNjiG','apply','2151RbYifp','search','YMRKR'];a8c=function(){return D;};return a8c();}
1
+ var a8y=a8d;function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x82;var f=c[d];return f;},a8d(a,b);}(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x95))/0x1+parseInt(v(0x9e))/0x2+parseInt(v(0x88))/0x3*(parseInt(v(0x8b))/0x4)+-parseInt(v(0x84))/0x5+parseInt(v(0x93))/0x6+parseInt(v(0x8a))/0x7+-parseInt(v(0x85))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x8f646));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(c){if(w(0x9a)===w(0x9a)){var e=c[w(0x91)](b,arguments);return c=null,e;}else h['done']?i(j[w(0x86)]):k(l[w(0x86)])[w(0xa0)](m,n);}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0x83)]()[x(0x9d)](x(0x9f))['toString']()[x(0x94)](a8a)[x(0x9d)](x(0x9f));});function a8c(){var F=['(((.+)+)+)+$','then','done','toString','1150965GQqNtb','18997936OYNzIo','value','describe-key-pairs','3GqXThd','__awaiter','6382558PtOzEL','486188gHslFQ','maka\x20aws\x20describe-key-pairs','dkp','qxacx','IntPS','TgCda','apply','error','5693268kOwlQL','constructor','107544peAQuU','help','create','exit','throw','Cnrue','ec2describeKeys','next','search','2205012dlQUZJ'];a8c=function(){return F;};return a8c();}a8a();var __awaiter=this&&this[a8y(0x89)]||function(a,b,c,d){function e(f){var z=a8d;if(z(0x8e)!==z(0x8e))c(d);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){var D=a8d;function h(k){var A=a8d;try{j(d[A(0x9c)](k));}catch(l){g(l);}}function i(k){var B=a8d;try{j(d['throw'](k));}catch(l){B(0x90)!=='TgCda'?d(l[B(0x99)](f)):g(l);}}function j(k){var C=a8d;if(C(0x8f)!==C(0x8f)){if(e){var m=i[C(0x91)](j,arguments);return k=null,m;}}else k[C(0x82)]?f(k[C(0x86)]):e(k['value'])[C(0xa0)](h,i);}j((d=d['apply'](a,b||[]))[D(0x9c)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8y(0x97)]({'name':a8y(0x87),'aliases':[a8y(0x8d)],'usage':a8y(0x8c),'validOpts':[a8y(0x96)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a[E(0x9b)]();}catch(b){console[E(0x92)](b),process[E(0x98)](0x0);}});},a8u);
@@ -1 +1 @@
1
- const a9E=a9d;function a9c(){const G=['iMyAM','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','then','18992iKruPN','instanceId','2byKPom','3903426uePHzK','2854320ubJokq','valQe','throw','5499RjAAJV','value','apply','YPduN','AkadK','ZOUEA','help','eezTO','rbi','error','next','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','toString','constructor','exit','jQyzR','ec2rebootInstance','25332AmTfAk','maka\x20aws\x20reboot-instance','bzOJz','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','FuURp','create','1674763BqzbLM','47443620KrkxsR','\x20Ready?','2514841MDNdxK','search','done','HlJxX','name','OnlaV','355xDobqf','(((.+)+)+)+$'];a9c=function(){return G;};return a9c();}(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0xa5))/0x1*(-parseInt(v(0xb5))/0x2)+-parseInt(v(0xb6))/0x3+parseInt(v(0xb7))/0x4+-parseInt(v(0xae))/0x5*(-parseInt(v(0xcb))/0x6)+-parseInt(v(0xa8))/0x7+parseInt(v(0xb3))/0x8*(-parseInt(v(0xba))/0x9)+parseInt(v(0xa6))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xed4f6));const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if('tQppB'===w(0xad))c(d);else{if(c){if(w(0xa1)!==w(0xa3)){const f=c[w(0xbc)](b,arguments);return c=null,f;}else h[w(0xaa)]?i(j[w(0xbb)]):k(l[w(0xbb)])['then'](m,n);}}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a[x(0xc6)]()[x(0xa9)]('(((.+)+)+)+$')[x(0xc6)]()[x(0xc7)](a9a)[x(0xa9)](x(0xaf));});function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xa1;let f=c[d];return f;},a9d(a,b);}a9a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const y=a9d;if('jQyzR'===y(0xc9))return f instanceof c?f:new c(function(g){g(f);});else d(e[y(0xc4)](f));}return new(c||(c=Promise))(function(f,g){const D=a9d;function h(k){const z=a9d;try{if('Ezssb'===z(0xbf))return f instanceof g?h:new i(function(m){m(k);});else j(d['next'](k));}catch(m){g(m);}}function i(k){const A=a9d;try{if(A(0xbe)===A(0xab)){const m=d[A(0xbc)](e,arguments);return f=null,m;}else j(d[A(0xb9)](k));}catch(m){if('xhMnT'===A(0xbd)){const o=g?function(){const B=A;if(o){const u=q[B(0xbc)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}else g(m);}}function j(k){const C=a9d;k['done']?f(k[C(0xbb)]):e(k[C(0xbb)])[C(0xb2)](h,i);}j((d=d[D(0xbc)](a,b||[]))[D(0xc4)]());});};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[a9E(0xa4)]({'name':'reboot-instance','aliases':[a9E(0xc2)],'usage':a9E(0xcc),'validOpts':[a9E(0xc0)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;if(F(0xc1)==='KFujh')try{i(j[F(0xb9)](k));}catch(b){m(b);}else try{const b=new AWS();let c=yield b['chooseInstance']();if((c===null||c===void 0x0?void 0x0:c['status'])==='running'){if('valQe'===F(0xb8)){let d=yield Actions['confirm'](F(0xc5)+c[F(0xac)]+F(0xa7));d?b[F(0xca)]({'instanceId':c[F(0xb4)]}):'jvaAW'===F(0xb0)?c(d):Log[F(0xc3)](F(0xb1)+c[F(0xac)]+'\x20is\x20still\x20running.');}else b[F(0xc3)](F(0xa2));}else Log['error'](F(0xa2));}catch(h){console[F(0xc3)](h),process[F(0xc8)](0x0);}});},a9u);
1
+ const a9z=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0x202))/0x1*(-parseInt(v(0x1f0))/0x2)+parseInt(v(0x1fc))/0x3+parseInt(v(0x20b))/0x4+-parseInt(v(0x1ee))/0x5*(-parseInt(v(0x1fe))/0x6)+-parseInt(v(0x200))/0x7*(parseInt(v(0x207))/0x8)+parseInt(v(0x20a))/0x9*(parseInt(v(0x1ec))/0xa)+parseInt(v(0x1fd))/0xb*(-parseInt(v(0x1fb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xb7484));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x1e8)===w(0x1e8)){const d=a?function(){const x=w;if(c){const e=c[x(0x1fa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else try{i(j[w(0x1f3)](k));}catch(f){m(f);}};}()),a9a=a9b(this,function(){const y=a9d;return a9a['toString']()[y(0x205)](y(0x1f6))[y(0x1f7)]()['constructor'](a9a)[y(0x205)](y(0x1f6));});a9a();var __awaiter=this&&this[a9z(0x1ed)]||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 B=a9d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const A=a9d;if(A(0x1eb)===A(0x1eb))k['done']?f(k['value']):e(k[A(0x1e7)])[A(0x1ef)](h,i);else return c[A(0x1f7)]()['search'](A(0x1f6))[A(0x1f7)]()[A(0x208)](d)[A(0x205)](A(0x1f6));}j((d=d[B(0x1fa)](a,b||[]))[B(0x1f9)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a9d(a,b);}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[a9z(0x1e5)]({'name':'reboot-instance','aliases':['rbi'],'usage':'maka\x20aws\x20reboot-instance','validOpts':[a9z(0x1f2)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const C=a9d;if(C(0x1e6)!=='gYnWh')try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[C(0x1f4)])===C(0x1ea)){let c=yield Actions[C(0x1f1)](C(0x206)+b[C(0x1e9)]+C(0x209));c?C(0x1f5)!==C(0x1f5)?d(e['throw'](f)):a[C(0x1e4)]({'instanceId':b[C(0x1f8)]}):'gBLvm'!=='xhDzi'?Log[C(0x203)](C(0x201)+b[C(0x1e9)]+C(0x1ff)):c(d);}else Log['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(g){console['error'](g),process[C(0x204)](0x0);}else{if(e){const i=i[C(0x1fa)](j,arguments);return k=null,i;}}});},a9u);function a9c(){const D=['toString','instanceId','next','apply','24mqSHIp','364404dbjmyw','11421971NCpfhS','95670aGMTSt','\x20is\x20still\x20running.','6692259kBrQFH','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','196279zeAszy','error','exit','search','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','8rryKMI','constructor','\x20Ready?','17001aZNYDl','5843192IlvOfT','ec2rebootInstance','create','ospsW','value','XrmiF','name','running','qnVtG','2860juRner','__awaiter','90MwSNKm','then','14iPhyOC','confirm','help','throw','status','PNiop','(((.+)+)+)+$'];a9c=function(){return D;};return a9c();}
@@ -1 +1 @@
1
- const a10M=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x1ee))/0x1*(-parseInt(F(0x1d7))/0x2)+parseInt(F(0x1cf))/0x3*(parseInt(F(0x1e5))/0x4)+-parseInt(F(0x1ea))/0x5+-parseInt(F(0x1d0))/0x6*(parseInt(F(0x1cb))/0x7)+parseInt(F(0x1c3))/0x8+parseInt(F(0x1b5))/0x9+-parseInt(F(0x1e6))/0xa*(-parseInt(F(0x1d3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x7f919));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(c){if(G(0x1e8)!==G(0x1e8))d(e['next'](f));else{const f=c[G(0x1c9)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x1e0)]()[H(0x1d2)](H(0x1c5))[H(0x1e0)]()[H(0x1ef)](a10a)[H(0x1d2)](H(0x1c5));});a10a();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 L=a10d;function h(k){const I=a10d;if('IrEnq'===I(0x1d5))c(d);else try{j(d[I(0x1c8)](k));}catch(m){'roPOX'!==I(0x1e2)?g(m):m[I(0x1c6)]=f===null||g===void 0x0?void 0x0:h[I(0x1c0)];}}function i(k){const J=a10d;if(J(0x1bc)!==J(0x1e9))try{J(0x1ed)!=='crIqy'?e['host']=f===null||g===void 0x0?void 0x0:h[J(0x1cd)]:j(d[J(0x1c1)](k));}catch(m){if(J(0x1eb)!=='xhgGk')g(m);else try{i(j['next'](k));}catch(o){m(o);}}else return c[J(0x1e0)]()[J(0x1d2)](J(0x1c5))[J(0x1e0)]()[J(0x1ef)](d)[J(0x1d2)](J(0x1c5));}function j(k){const K=a10d;'swbFq'===K(0x1e1)?k[K(0x1d4)]?f(k[K(0x1b9)]):e(k[K(0x1b9)])[K(0x1cc)](h,i):c(d);}j((d=d[L(0x1c9)](a,b||[]))[L(0x1c8)]());});};function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1b5;let f=c[d];return f;},a10d(a,b);}import a10C from'path';import a10D from'fs';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';function a10c(){const O=['host','getConfigPath','next','apply','success','35zhVvrO','then','publicIp','ssh.json','534633QWNbGs','690402BKbMtf','parse','search','1837TQKMNq','done','cfKbs','mNHCG','490ZhVUYl','ask','\x0aSaved\x20host\x20','create','utf8','wbmgn','public','\x20IP\x20to\x20','env','toString','swbFq','iwUEr','inherit','private','20GfHKgy','14790AwfNxT','sep','YMvtq','ishTw','554310pTORLY','ANKaQ','set-host','crIqy','2171GSyLdS','constructor','476847eRnCoe','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','join','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','value','exit','error','dWoqy','maka\x20aws\x20set-host','key-name','dikZx','privateIp','throw','readFileSync','4396656YyzBFt','fsi','(((.+)+)+)+$'];a10c=function(){return O;};return a10c();}import{Log}from'../../tools/log/log.class.js';Command[a10M(0x1da)]({'name':a10M(0x1ec),'aliases':['sth'],'usage':a10M(0x1bd),'mustBeInMakaProject':!![],'requiredOpts':[a10M(0x1df)],'validOpts':['help',a10M(0x1be)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a10d;try{if(N(0x1bf)!==N(0x1bf))e['host']=f===null||g===void 0x0?void 0x0:h['privateIp'];else{const d=new AWS(),f=this[N(0x1c4)][N(0x1c7)](b[N(0x1df)]);let g=yield d['chooseInstance'](),h=JSON[N(0x1d1)](a10D[N(0x1c2)](a10C['join'](f,N(0x1ce)),N(0x1db))),i=(yield Actions[N(0x1d8)](N(0x1b6)))||N(0x1dd);if(i){if(i===N(0x1dd)||i==='private'){if(i===N(0x1dd))h[N(0x1c6)]=g===null||g===void 0x0?void 0x0:g[N(0x1cd)];else{if(i===N(0x1e4)){if(N(0x1d6)!==N(0x1d6)){if(k===N(0x1dd))u[N(0x1c6)]=v===null||w===void 0x0?void 0x0:x[N(0x1cd)];else p===N(0x1e4)&&(y[N(0x1c6)]=z===null||A===void 0x0?void 0x0:B['privateIp']);}else h[N(0x1c6)]=g===null||g===void 0x0?void 0x0:g['privateIp'];}}}else throw N(0x1b8);}else{if(N(0x1dc)==='TZDmT'){const l=d[N(0x1c9)](e,arguments);return f=null,l;}else h[N(0x1c6)]=g===null||g===void 0x0?void 0x0:g[N(0x1c0)];}a10D['writeFileSync'](a10C[N(0x1b7)](f,N(0x1ce)),JSON['stringify'](h,null,0x2)),execSync('cat\x20'+a10C[N(0x1b7)](f,N(0x1ce)),{'stdio':N(0x1e3)}),Log[N(0x1ca)](N(0x1d9)+i+N(0x1de)+f+a10C[N(0x1e7)]+'ssh.json');}}catch(l){console[N(0x1bb)](l),process[N(0x1ba)](0x0);}});},a10E);
1
+ const a10P=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x175))/0x1*(parseInt(F(0x155))/0x2)+-parseInt(F(0x179))/0x3+-parseInt(F(0x17f))/0x4+-parseInt(F(0x17a))/0x5*(-parseInt(F(0x156))/0x6)+parseInt(F(0x188))/0x7*(parseInt(F(0x160))/0x8)+parseInt(F(0x17e))/0x9+-parseInt(F(0x15f))/0xa*(parseInt(F(0x17c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xcda0e));const a10b=(function(){let a=!![];return function(b,c){const G=a10d;if(G(0x15a)!==G(0x15b)){const d=a?function(){const H=G;if('yOsqo'!=='yOsqo')c(d);else{if(c){if('xdKfJ'===H(0x191)){const f=c[H(0x185)](b,arguments);return c=null,f;}else{if(e){const h=i[H(0x185)](j,arguments);return k=null,h;}}}}}:function(){};return a=![],d;}else d[G(0x190)](e),f[G(0x18b)](0x0);};}()),a10a=a10b(this,function(){const I=a10d;return a10a['toString']()['search'](I(0x182))[I(0x168)]()[I(0x163)](a10a)[I(0x15d)]('(((.+)+)+)+$');});a10a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const J=a10d;if(J(0x159)===J(0x169)){const i=g?function(){const K=J;if(i){const u=q[K(0x185)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else g(f);});}return new(c||(c=Promise))(function(f,g){const O=a10d;function h(k){const L=a10d;try{if(L(0x18c)===L(0x18c))j(d[L(0x165)](k));else try{i(j['next'](k));}catch(m){m(m);}}catch(m){g(m);}}function i(k){const M=a10d;if(M(0x172)==='lasiH')try{if(M(0x18a)!==M(0x18a))return c[M(0x168)]()[M(0x15d)](M(0x182))['toString']()[M(0x163)](d)[M(0x15d)](M(0x182));else j(d[M(0x16f)](k));}catch(m){M(0x180)!==M(0x174)?g(m):h[M(0x18d)]?i(j['value']):k(l[M(0x173)])[M(0x171)](m,n);}else e[M(0x16c)]=f===null||g===void 0x0?void 0x0:h[M(0x16d)];}function j(k){const N=a10d;k['done']?f(k['value']):e(k[N(0x173)])[N(0x171)](h,i);}j((d=d['apply'](a,b||[]))[O(0x165)]());});};import a10C from'path';import a10D from'fs';import{execSync}from'child_process';import a10E from'./aws.command.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x155;let f=c[d];return f;},a10d(a,b);}import{Command}from'../../command.js';function a10c(){const R=['CHxWI','EQPhc','SGeoZ','\x0aSaved\x20host\x20','search','ask','187720UFGGXN','58664FQecpv','ssh.json','public','constructor','qAhnm','next','sth','MynNr','toString','AbZiL','create','join','host','privateIp','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','throw','success','then','lasiH','value','IwalX','581890XKsJqO','fsi','cat\x20','env','3728274UjYGuG','5WfWBLt','maka\x20aws\x20set-host','836CeImSY','stringify','14083767roXndD','4976412KUwCVO','YHGSb','getConfigPath','(((.+)+)+)+$','chooseInstance','private','apply','writeFileSync','parse','1099LCChgw','help','NYNvW','exit','BoDqE','done','key-name','publicIp','error','xdKfJ','2GuXbRO','8746518iOeFtL','inherit','bjBts'];a10c=function(){return R;};return a10c();}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(0x16a)]({'name':'set-host','aliases':[a10P(0x166)],'usage':a10P(0x17b),'mustBeInMakaProject':!![],'requiredOpts':[a10P(0x178)],'validOpts':[a10P(0x189),a10P(0x18e)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const Q=a10d;try{if(Q(0x164)==='qAhnm'){const c=new AWS(),d=this[Q(0x176)][Q(0x181)](b['env']);let f=yield c[Q(0x183)](),g=JSON[Q(0x187)](a10D['readFileSync'](a10C[Q(0x16b)](d,'ssh.json'),'utf8')),h=(yield Actions[Q(0x15e)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]'))||'public';if(h){if(h===Q(0x162)||h===Q(0x184)){if(h===Q(0x162))g[Q(0x16c)]=f===null||f===void 0x0?void 0x0:f[Q(0x18f)];else h===Q(0x184)&&(g[Q(0x16c)]=f===null||f===void 0x0?void 0x0:f['privateIp']);}else throw Q(0x16e);}else Q(0x167)===Q(0x167)?g[Q(0x16c)]=f===null||f===void 0x0?void 0x0:f['privateIp']:d(e[Q(0x16f)](f));a10D[Q(0x186)](a10C['join'](d,Q(0x161)),JSON[Q(0x17d)](g,null,0x2)),execSync(Q(0x177)+a10C[Q(0x16b)](d,Q(0x161)),{'stdio':Q(0x157)}),Log[Q(0x170)](Q(0x15c)+h+'\x20IP\x20to\x20'+d+a10C['sep']+Q(0x161));}else throw Q(0x16e);}catch(k){Q(0x158)!=='bjBts'?c(d):(console[Q(0x190)](k),process[Q(0x18b)](0x0));}});},a10E);
@@ -1 +1 @@
1
- const a11E=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x10d))/0x1+-parseInt(v(0x110))/0x2+parseInt(v(0x117))/0x3*(-parseInt(v(0x103))/0x4)+-parseInt(v(0x120))/0x5*(parseInt(v(0x126))/0x6)+parseInt(v(0x10a))/0x7*(parseInt(v(0x123))/0x8)+-parseInt(v(0x118))/0x9*(parseInt(v(0x11e))/0xa)+parseInt(v(0x111))/0xb*(parseInt(v(0x104))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xce84b));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x11d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x12b)]()[x(0x113)](x(0x10e))[x(0x12b)]()['constructor'](a11a)['search'](x(0x10e));});a11a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const y=a11d;if(y(0x101)!=='RxgpR')c(d);else return f instanceof c?f:new c(function(h){const z=y;if(z(0xfe)!==z(0xfe)){if(e){const j=i[z(0x11d)](j,arguments);return k=null,j;}}else h(f);});}return new(c||(c=Promise))(function(f,g){const D=a11d;function h(k){const A=a11d;try{A(0x116)===A(0x116)?j(d['next'](k)):c(d);}catch(m){if(A(0x10f)!==A(0x10f))return f instanceof g?h:new i(function(o){o(k);});else g(m);}}function i(k){const B=a11d;if(B(0x102)===B(0x11c))c(d);else try{j(d[B(0xff)](k));}catch(m){g(m);}}function j(k){const C=a11d;C(0x112)!==C(0x125)?k[C(0x11a)]?f(k[C(0x121)]):e(k[C(0x121)])[C(0x114)](h,i):b['error']('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}j((d=d['apply'](a,b||[]))[D(0x106)]());});};function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xfe;let f=c[d];return f;},a11d(a,b);}import a11u from'./aws.command.js';import{Command}from'../../command.js';function a11c(){const G=['uGvIl','16zgVpYb','2172URNKJb','confirm','next','error','mMIrk','instanceId','9058batLnE','exit','name','1562655atvHKl','(((.+)+)+)+$','WlslN','1109622ULMKBA','73161IGSdsu','lGYDB','search','then','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','lrrIE','657987GXaQra','29061XXlPMQ','terminate-instance','done','hYAxR','MFDuP','apply','500MmQTRR','\x20Ready?','20owNLTE','value','status','4504fgWJPy','faTQA','znwfH','1583298kcGLbS','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','constructor','maka\x20aws\x20terminate-instance','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','toString','gEeyZ','throw','chooseInstance','RxgpR'];a11c=function(){return G;};return a11c();}import{Log}from'../../tools/log/log.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a11E(0x119),'aliases':['ti'],'usage':a11E(0x129),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;try{const a=new AWS();let b=yield a[F(0x100)]();if((b===null||b===void 0x0?void 0x0:b[F(0x122)])==='running'){let c=yield Actions[F(0x105)](F(0x115)+b[F(0x10c)]+F(0x11f));c?F(0x124)==='RFfJz'?(d[F(0x107)](e),f['exit'](0x0)):a['ec2terminateInstance']({'instanceId':b[F(0x109)]}):Log[F(0x107)](F(0x12a)+b['name']+F(0x127));}else{if('hYAxR'!==F(0x11b))return c['toString']()[F(0x113)](F(0x10e))[F(0x12b)]()[F(0x128)](d)[F(0x113)]('(((.+)+)+)+$');else Log[F(0x107)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}}catch(g){F(0x108)==='IHWLE'?c['error'](F(0x12a)+d[F(0x10c)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).'):(console[F(0x107)](g),process[F(0x10b)](0x0));}});},a11u);
1
+ const a11z=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x18a))/0x1*(parseInt(v(0x187))/0x2)+parseInt(v(0x18e))/0x3*(parseInt(v(0x175))/0x4)+parseInt(v(0x184))/0x5+parseInt(v(0x199))/0x6*(parseInt(v(0x19c))/0x7)+parseInt(v(0x194))/0x8*(parseInt(v(0x18c))/0x9)+parseInt(v(0x17c))/0xa+-parseInt(v(0x177))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x4b60c));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(w(0x18d)!==w(0x18d))c[w(0x188)]('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+d['name']+w(0x17a));else{if(c){if(w(0x19f)!==w(0x18b)){const f=c[w(0x182)](b,arguments);return c=null,f;}else{const h=g?function(){const x=w;if(h){const u=q[x(0x182)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const y=a11d;return a11a[y(0x190)]()[y(0x192)](y(0x19e))['toString']()[y(0x17e)](a11a)['search'](y(0x19e));});a11a();var __awaiter=this&&this[a11z(0x197)]||function(a,b,c,d){function e(f){const A=a11d;return A(0x195)!==A(0x181)?f instanceof c?f:new c(function(g){const B=A;if('kKFSX'===B(0x183))g(f);else{const i=d[B(0x182)](e,arguments);return f=null,i;}}):c[A(0x190)]()[A(0x192)](A(0x19e))[A(0x190)]()[A(0x17e)](d)[A(0x192)]('(((.+)+)+)+$');}return new(c||(c=Promise))(function(f,g){const E=a11d;function h(k){const C=a11d;try{j(d[C(0x176)](k));}catch(l){C(0x19a)===C(0x19a)?g(l):d(l[C(0x176)](f));}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){const D=a11d;k['done']?f(k[D(0x1a0)]):e(k[D(0x1a0)])[D(0x178)](h,i);}j((d=d[E(0x182)](a,b||[]))['next']());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x174;let f=c[d];return f;},a11d(a,b);}import{Log}from'../../tools/log/log.class.js';function a11c(){const G=['176550WIMfBL','kpKdR','constructor','terminate-instance','status','ZtuIR','apply','kKFSX','2194640qKQGQA','instanceId','maka\x20aws\x20terminate-instance','141212pEkjng','error','\x20Ready?','7YZtRgG','VnQQT','3829662zlwQkH','bgupY','6waLPbc','bLgOz','toString','confirm','search','jpzbO','8HfyUIg','QeloZ','njvum','__awaiter','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','816YCacCU','sDBYE','name','4088GfXCAy','chooseInstance','(((.+)+)+)+$','BPXaq','value','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','176652zgcTXk','next','13588795dhZQxA','then','help','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','exit'];a11c=function(){return G;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a11z(0x17f),'aliases':['ti'],'usage':a11z(0x186),'validOpts':[a11z(0x179)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;try{if('jpzbO'===F(0x193)){const a=new AWS();let b=yield a[F(0x19d)]();if((b===null||b===void 0x0?void 0x0:b[F(0x180)])==='running'){if(F(0x18f)!==F(0x196)){let c=yield Actions[F(0x191)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b['name']+F(0x189));if(c)a['ec2terminateInstance']({'instanceId':b[F(0x185)]});else{if(F(0x17d)===F(0x17d))Log[F(0x188)](F(0x198)+b[F(0x19b)]+F(0x17a));else try{i(j[F(0x176)](k));}catch(f){m(f);}}}else return f instanceof g?h:new i(function(m){m(k);});}else Log[F(0x188)](F(0x174));}else d(e['throw'](f));}catch(h){console['error'](h),process[F(0x17b)](0x0);}});},a11u);
@@ -1 +1 @@
1
- (function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0xe4))/0x1*(-parseInt(u(0xe1))/0x2)+-parseInt(u(0xe7))/0x3+-parseInt(u(0xe5))/0x4+parseInt(u(0xdf))/0x5*(parseInt(u(0xe6))/0x6)+parseInt(u(0xe3))/0x7*(parseInt(u(0xed))/0x8)+-parseInt(u(0xea))/0x9*(-parseInt(u(0xee))/0xa)+parseInt(u(0xe8))/0xb*(parseInt(u(0xe9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x89226));function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0xde;var f=c[d];return f;},a12d(a,b);}var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0xec)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a['toString']()[w(0xeb)](w(0xe0))[w(0xde)]()[w(0xe2)](a12a)[w(0xeb)](w(0xe0));});function a12c(){var x=['53180fOGPqz','(((.+)+)+)+$','2XzwzmM','constructor','91JwEnSv','682219rdRutB','1928020PmnmkD','168LRKSQy','2314701GqyXpQ','4997366UGPZME','24nSYMlT','4379112OAAEpN','search','apply','495080fXDfzE','10RRriid','toString'];a12c=function(){return x;};return a12c();}a12a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x198))/0x1*(parseInt(u(0x1a5))/0x2)+-parseInt(u(0x1a2))/0x3+-parseInt(u(0x19b))/0x4+parseInt(u(0x1a4))/0x5*(parseInt(u(0x1a1))/0x6)+parseInt(u(0x1a0))/0x7*(-parseInt(u(0x19a))/0x8)+parseInt(u(0x19d))/0x9+-parseInt(u(0x19e))/0xa*(-parseInt(u(0x19c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0xcb2f9));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(0x19f)]()[v(0x1a6)](v(0x1a3))[v(0x19f)]()[v(0x199)](a12a)[v(0x1a6)](v(0x1a3));});a12a();import'./build.js';function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x198;var f=c[d];return f;},a12d(a,b);}function a12c(){var w=['34KePVpJ','search','51871oJDqQq','constructor','1980152vGVipS','6609684ucrCaj','38775XTdSFa','5203791iRosvP','11360pqkHps','toString','7AmQIIl','12pyRZkB','4981653fzkQGt','(((.+)+)+)+$','1729870BuHLGt'];a12c=function(){return w;};return a12c();}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a13A=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=parseInt(x(0x1e2))/0x1+-parseInt(x(0x1e7))/0x2*(parseInt(x(0x1e4))/0x3)+-parseInt(x(0x1df))/0x4*(-parseInt(x(0x205))/0x5)+parseInt(x(0x202))/0x6*(parseInt(x(0x1e5))/0x7)+-parseInt(x(0x1ef))/0x8*(parseInt(x(0x1e6))/0x9)+parseInt(x(0x1fb))/0xa+-parseInt(x(0x20e))/0xb*(-parseInt(x(0x1eb))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xeb7c6));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a13d;if(c){if(y(0x1ea)!==y(0x1ea))c(d);else{const f=c[y(0x1f3)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const z=a13d;return a13a['toString']()[z(0x1ed)](z(0x1d7))[z(0x1f7)]()[z(0x1f2)](a13a)['search'](z(0x1d7));});a13a();var __awaiter=this&&this[a13A(0x201)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const B=a13d;B(0x1ff)===B(0x1dd)?(d[B(0x1e1)](e),f[B(0x1fd)](0x0)):g(f);});}return new(c||(c=Promise))(function(f,g){const F=a13d;function h(k){const C=a13d;if(C(0x1de)==='xqIKu')try{i(j[C(0x1d5)](k));}catch(m){m(m);}else try{j(d['next'](k));}catch(m){g(m);}}function i(k){const D=a13d;try{j(d['throw'](k));}catch(l){if('fSwPS'!==D(0x1d4))throw b['error']('Aborted.');else g(l);}}function j(k){const E=a13d;k[E(0x20a)]?f(k[E(0x209)]):e(k[E(0x209)])[E(0x1fc)](h,i);}j((d=d['apply'](a,b||[]))[F(0x1d5)]());});};import a13u from'path';import a13v from'fs';function a13c(){const I=['force','515482hXuvBb','fSwPS','next','build','(((.+)+)+)+$','argv','forEach','invokeMeteorCommand','HbcUO','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','ricCl','uhvQm','656hNqFnM','--release','error','415712IsQqbK','findSubCommand','798bhETir','233331ibKbjI','9GjqARQ','5192aKcePh','create',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','PkeZP','168pgmAOs','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','search','app.tar.gz','3971080iYqBXZ','concat','getProjectMeteorVersion','constructor','apply','IghFy','getGlobalMeteorVersion','maka\x20build','toString','maka\x20build:docker','runSubCommand','splice','3872420gVyhnt','then','exit','ytrGy','yHCWf','fsi','__awaiter','6mutqxI','pathFromProject','--force','20095eYHiVx','slice','update','join','value','done',').\x20Update?','existsSync'];a13c=function(){return I;};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-0x1d4;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[a13A(0x1e8)]({'name':a13A(0x1d6),'usage':'maka\x20build\x20[--force]','validOpts':[a13A(0x20d)],'description':a13A(0x1ec),'mustBeInMakaProject':!![],'examples':[a13A(0x1f6),a13A(0x1f8)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a13d;try{if(G(0x1fe)!=='ytrGy')d(e[G(0x1d5)](f));else{let d=a[0x0],f=this[G(0x1e3)](d);if(f)this[G(0x1f9)](d,a,b);else{if(G(0x1f4)!==G(0x1f4))d==='--force'&&g['splice'](h,0x2);else{let h=b[G(0x20d)];if(!h){const k=this[G(0x200)][G(0x1f5)](),l=this[G(0x200)][G(0x1f1)](),m=a13w['gt'](k,l);if(m){const n=yield Actions['confirm']('This\x20project\x27s\x20meteor\x20version\x20('+l+G(0x1e9)+k+G(0x20b));n&&this[G(0x200)][G(0x1da)](G(0x207),[G(0x1e0),k]);}}let i=[this['fsi'][G(0x203)]({'pathParts':[G(0x1d6)]})][G(0x1f0)](process[G(0x1d8)][G(0x206)](0x3)),j=a13u[G(0x208)](this[G(0x200)][G(0x203)]({}),G(0x1d6),G(0x1ee));if(a13v[G(0x20c)](j)){let o=h!==null&&h!==void 0x0?h:yield Actions['confirm'](G(0x1dc));if(!o)throw Log['error']('Aborted.');}i[G(0x1d9)]((p,q)=>{const H=G;if(H(0x1db)===H(0x1db))p===H(0x204)&&i[H(0x1fa)](q,0x2);else return f instanceof g?h:new i(function(s){s(k);});}),this[G(0x200)]['invokeMeteorCommand'](G(0x1d6),i);}}}}catch(p){console['error'](p),process[G(0x1fd)](0x0);}});});export default BuildCommand;
1
+ const a13F=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=-parseInt(x(0x141))/0x1*(-parseInt(x(0x150))/0x2)+parseInt(x(0x142))/0x3*(-parseInt(x(0x125))/0x4)+-parseInt(x(0x12e))/0x5+parseInt(x(0x123))/0x6*(parseInt(x(0x145))/0x7)+-parseInt(x(0x120))/0x8*(-parseInt(x(0x14c))/0x9)+-parseInt(x(0x12b))/0xa+parseInt(x(0x134))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x5280a));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a13d;if(c){if(y(0x12c)!=='PijCx')try{i(j['next'](k));}catch(f){m(f);}else{const f=c[y(0x135)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const z=a13d;return a13a[z(0x14e)]()[z(0x137)](z(0x12d))[z(0x14e)]()[z(0x14f)](a13a)[z(0x137)](z(0x12d));});a13a();function a13c(){const I=['fsi','FGlcd','forEach','value','eshLu','create','build','ypedR','invokeMeteorCommand','1323704iZEkZI','runSubCommand','This\x20project\x27s\x20meteor\x20version\x20(','5250aGhUEu','--force','180012DctHNI','update','BKhzp','splice','Aborted.','findSubCommand','274720EXNTCJ','PijCx','(((.+)+)+)+$','1715880kxcNcL','error','confirm','throw','DaSnS','app.tar.gz','493295trulQw','apply','next','search','concat','done','iNjtj','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','exit',').\x20Update?','NdYCI','maka\x20build','OqqEQ','445941jdDPez','9LaiQzB','force','argv','175mrNXlJ','slice','maka\x20build:docker','then','pathFromProject','gSGnM','existsSync','18ToWgyw','--release','toString','constructor','2goEtcu','getGlobalMeteorVersion','gIMba'];a13c=function(){return I;};return a13c();}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const A=a13d;if('FFefD'!==A(0x13e))return f instanceof c?f:new c(function(g){const B=A;'QClZd'==='QClZd'?g(f):h[B(0x139)]?i(j[B(0x11a)]):k(l['value'])[B(0x148)](m,n);});else d(e[A(0x131)](f));}return new(c||(c=Promise))(function(f,g){const E=a13d;function h(k){try{j(d['next'](k));}catch(l){g(l);}}function i(k){const C=a13d;try{j(d['throw'](k));}catch(l){if(C(0x11e)==='zysLI'){if(l){const n=i[C(0x135)](j,arguments);return k=null,n;}}else g(l);}}function j(k){const D=a13d;k[D(0x139)]?f(k['value']):e(k[D(0x11a)])[D(0x148)](h,i);}j((d=d['apply'](a,b||[]))[E(0x136)]());});};import a13u from'path';import a13v from'fs';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';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x116;let f=c[d];return f;},a13d(a,b);}const BuildCommand=Command[a13F(0x11c)]({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':[a13F(0x143)],'description':a13F(0x13b),'mustBeInMakaProject':!![],'examples':[a13F(0x13f),a13F(0x147)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a13d;if('Yefbf'===G(0x116))d(e[G(0x136)](f));else try{let d=a[0x0],f=this[G(0x12a)](d);if(f)this[G(0x121)](d,a,b);else{if(G(0x14a)!==G(0x14a))throw b[G(0x12f)]('Aborted.');else{let h=b['force'];if(!h){if(G(0x132)!==G(0x127)){const k=this[G(0x117)][G(0x151)](),l=this[G(0x117)]['getProjectMeteorVersion'](),m=a13w['gt'](k,l);if(m){const n=yield Actions[G(0x130)](G(0x122)+l+')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('+k+G(0x13d));n&&this[G(0x117)][G(0x11f)](G(0x126),[G(0x14d),k]);}}else return f instanceof g?h:new i(function(p){p(k);});}let i=[this['fsi'][G(0x149)]({'pathParts':[G(0x11d)]})][G(0x138)](process[G(0x144)][G(0x146)](0x3)),j=a13u['join'](this[G(0x117)][G(0x149)]({}),G(0x11d),G(0x133));if(a13v[G(0x14b)](j)){let p=h!==null&&h!==void 0x0?h:yield Actions[G(0x130)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!p){if(G(0x118)===G(0x11b))this[G(0x121)](d,e,f);else throw Log[G(0x12f)](G(0x129));}}i[G(0x119)]((r,s)=>{const H=G;'EpxsM'===H(0x13a)?c[H(0x128)](d,0x2):r===H(0x124)&&(H(0x140)!==H(0x140)?this[H(0x117)][H(0x11f)]('update',['--release',b]):i['splice'](s,0x2));}),this['fsi'][G(0x11f)]('build',i);}}}catch(r){console[G(0x12f)](r),process[G(0x13c)](0x0);}});});export default BuildCommand;
@@ -1 +1 @@
1
- const a14P=a14d;function a14c(){const X=['constructor','__awaiter','setProjectConfig','1452300BQmZfl','HBTcP','CEMKj','toString','maka\x20build:docker','invoke','-t\x20','confirm','search','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','serverName','create','findProjectDirectory','dockerfile','7793080KxtzhS','app.tar.gz','AmNOF','docker\x20build\x20--build-arg\x20NODE_VERSION=','.meteor','win32','wSLyv','serverPort','gkyJP','eLeyG','getProjectsMeteorNodeVersion','3559FzvkUo','os.linux.x86_64','next','YxWfT','throw','push','cert.pem','apply','https','readFileLines','rcXRU','docker','://','rolqt','findAppDirectory',':latest','920476UbxZnB','aKgLM','Build\x20Path:\x20','copyFileSync','tvYXu','443','CFMAC','then','(((.+)+)+)+$','force','344256fmjQgS','175ToWKEl','5woAHeA','Mobile\x20server\x20port:\x20','2860328ckXGZp','length','217756cwiEBx','Try\x20\x27maka\x20run\x20--docker\x27','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','qRAIm','cert','Tagging\x20Docker\x20Image:\x20','9spCNmR','\x20npm\x20install\x20--save','getGlobalConfig','802FhZPqL','exit','http','wlfDR','pathFromProject','AWJac','error','ovBNB','IpjDm','tag','.maka','join','isDirectory','EiRzj','sEyuc','existsSync','notice','config','wzTCZ','fsi','ask','inherit','KAZNc','done','_keys','platforms','IGCFd','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','build','config.json','isFile','ignore','IsXck','meteor.bat','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','value','app'];a14c=function(){return X;};return a14c();}(function(a,b){const L=a14d,c=a();while(!![]){try{const d=-parseInt(L(0x253))/0x1*(parseInt(L(0x212))/0x2)+-parseInt(L(0x23a))/0x3+parseInt(L(0x1f9))/0x4*(parseInt(L(0x205))/0x5)+-parseInt(L(0x203))/0x6*(-parseInt(L(0x204))/0x7)+parseInt(L(0x207))/0x8*(parseInt(L(0x20f))/0x9)+parseInt(L(0x248))/0xa+-parseInt(L(0x209))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xd47a9));const a14b=(function(){let a=!![];return function(b,c){const M=a14d;if(M(0x1fa)!==M(0x20c)){const d=a?function(){const N=M;if(N(0x23c)!=='jJGVO'){if(c){if('tvYXu'!==N(0x1fd))return f instanceof g?h:new i(function(m){m(k);});else{const f=c['apply'](b,arguments);return c=null,f;}}}else return c[N(0x23d)]()['search'](N(0x201))[N(0x23d)]()[N(0x237)](d)[N(0x242)]('(((.+)+)+)+$');}:function(){};return a=![],d;}else c=M(0x240)+d[M(0x21b)];};}()),a14a=a14b(this,function(){const O=a14d;return a14a['toString']()[O(0x242)]('(((.+)+)+)+$')[O(0x23d)]()['constructor'](a14a)[O(0x242)](O(0x201));});a14a();var __awaiter=this&&this[a14P(0x238)]||function(a,b,c,d){function e(f){const Q=a14d;if(Q(0x251)!==Q(0x256))return f instanceof c?f:new c(function(g){const R=Q;R(0x23b)!==R(0x23b)?(f(g+R(0x210),{'cwd':this['fsi']['findAppDirectory'](),'stdio':R(0x231)}),h(i+'\x20'+j[R(0x21d)]('\x20'),{'cwd':this[R(0x225)][R(0x1f7)](),'stdio':R(0x227)})):g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const V=a14d;function h(k){const S=a14d;try{j(d[S(0x255)](k));}catch(l){if('hSxOh'!=='ZqQeb')g(l);else{if(l){const n=i[S(0x1f0)](j,arguments);return k=null,n;}}}}function i(k){const T=a14d;if(T(0x24e)===T(0x219)){const m=d['apply'](e,arguments);return f=null,m;}else try{if(T(0x24a)!==T(0x24a))try{i(j[T(0x1ed)](k));}catch(o){m(o);}else j(d[T(0x1ed)](k));}catch(n){g(n);}}function j(k){const U=a14d;k[U(0x229)]?f(k[U(0x235)]):e(k[U(0x235)])[U(0x200)](h,i);}j((d=d[V(0x1f0)](a,b||[]))[V(0x255)]());});};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';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x1ed;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a14P(0x245)]({'name':'docker','usage':a14P(0x23e),'validOpts':[a14P(0x202),a14P(0x21b)],'description':a14P(0x243),'mustBeInMakaProject':!![],'examples':[a14P(0x23e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const W=a14d;if(W(0x215)!==W(0x215))c(d);else try{const d=yield this[W(0x225)][W(0x211)](),f=yield this[W(0x225)]['getProjectConfig']();let g=process['platform']===W(0x24d)?W(0x233):'meteor',h=this[W(0x225)][W(0x216)]({}),i=a14v[W(0x21d)](h,'Dockerfile');if(!this[W(0x225)][W(0x230)](i)){if('EiRzj'===W(0x21f)){const s=a14x['findGenerator'](W(0x247));s&&('MKlgv'!=='MKlgv'?(this[W(0x225)][W(0x239)]('serverName',e),this[W(0x225)][W(0x239)]('serverPort',f),g[W(0x222)]('Stored\x20server\x20config\x20to\x20'+h[W(0x21d)]('.maka','config.json'))):yield s[W(0x23f)](['dockerfile'],{'cwd':h,'config':f}));}else f(g+W(0x210),{'cwd':this['fsi'][W(0x1f7)](),'stdio':W(0x231)}),h(i+'\x20\x20'+j[W(0x21d)]('\x20'),{'cwd':this['fsi'][W(0x1f7)](),'stdio':'inherit'});}const j=this[W(0x225)]['checkConfigExists']('docker');if(!j){if(W(0x232)!==W(0x21a)){const v=a14x['findGenerator']('config');v&&(W(0x1ff)===W(0x220)?d(e['next'](f)):yield v[W(0x23f)]([W(0x1f4)],{'cwd':h,'config':f,'isDocker':!![]}));}else d['error'](e),f[W(0x213)](0x0);}if(this[W(0x225)][W(0x230)](d[W(0x20d)])){if(W(0x250)!=='gkyJP')h['done']?i(j['value']):k(l[W(0x235)])['then'](m,n);else{const z=this[W(0x225)][W(0x21e)](a14v[W(0x21d)](W(0x223),'docker','_keys'));!z&&a14w['mkdirSync'](a14v[W(0x21d)](W(0x223),W(0x1f4),W(0x22a))),a14w[W(0x1fc)](d['cert'],a14v[W(0x21d)](h,W(0x223),W(0x1f4),W(0x22a),W(0x1ef)));}}let k=this[W(0x225)][W(0x216)]({}),l=this[W(0x225)][W(0x252)](),m=W(0x240)+paramCase(f['appName'])+W(0x1f8);b[W(0x21b)]&&(m=W(0x240)+b['tag']);let n=['build',a14v[W(0x21d)](this[W(0x225)][W(0x246)](),W(0x22e)),'--architecture',W(0x254)],o=this[W(0x225)][W(0x1f2)](a14v['join'](this[W(0x225)][W(0x216)]({}),W(0x236),W(0x24c),W(0x22b))),p=o[W(0x208)]>0x2?!![]:![];if(p){let A=f[W(0x244)]?f[W(0x244)]:yield Actions[W(0x226)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),B=f['serverPort']?f[W(0x24f)]:yield Actions['ask'](W(0x206));if(A['length']==0x0||B[W(0x208)]==0x0)throw W(0x234);let C=B==W(0x1fe)?W(0x1f1):W(0x214);n[W(0x1ee)]('--server='+C+W(0x1f5)+A+':'+B);if(!f[W(0x244)]&&!f['serverPort']){if(W(0x228)!==W(0x217)){let D=yield Actions[W(0x241)](W(0x22d));D&&(W(0x22c)===W(0x1f3)?c(d):(this[W(0x225)][W(0x239)](W(0x244),A),this[W(0x225)][W(0x239)]('serverPort',B),Log[W(0x222)]('Stored\x20server\x20config\x20to\x20'+a14v['join'](W(0x21c),W(0x22f)))));}else{const G=g?function(){if(G){const H=q['apply'](r,arguments);return s=null,H;}}:function(){};return l=![],G;}}}let q=a14v[W(0x21d)](this[W(0x225)][W(0x216)]({}),W(0x22e),W(0x249));if(a14w[W(0x221)](q)){const G=yield Actions[W(0x241)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');let H=G;if(H){if(W(0x1f6)!==W(0x1f6))try{i(j[W(0x255)](k));}catch(J){m(J);}else execSync(g+W(0x210),{'cwd':this['fsi'][W(0x1f7)](),'stdio':W(0x231)}),execSync(g+'\x20\x20'+n['join']('\x20'),{'cwd':this[W(0x225)]['findAppDirectory'](),'stdio':W(0x227)});}}else'wzTCZ'===W(0x224)?(execSync(g+W(0x210),{'cwd':this[W(0x225)][W(0x1f7)](),'stdio':W(0x231)}),execSync(g+'\x20'+n['join']('\x20'),{'cwd':this[W(0x225)][W(0x1f7)](),'stdio':W(0x227)})):d(e[W(0x1ed)](f));Log['notice'](W(0x20b)+l),Log[W(0x222)](W(0x20e)+m),Log[W(0x222)](W(0x1fb)+k);const r=W(0x24b)+l+'\x20'+m+'\x20'+k;execSync(r,{'stdio':'inherit'}),Log[W(0x222)](W(0x20a));}catch(K){console[W(0x218)](K),process['exit'](0x0);}});},a14u);
1
+ const a14M=a14d;(function(a,b){const J=a14d,c=a();while(!![]){try{const d=parseInt(J(0xc8))/0x1+-parseInt(J(0xb2))/0x2+-parseInt(J(0xa3))/0x3+parseInt(J(0xb8))/0x4*(-parseInt(J(0xa4))/0x5)+-parseInt(J(0xac))/0x6+parseInt(J(0xbe))/0x7*(-parseInt(J(0xb6))/0x8)+-parseInt(J(0x87))/0x9*(-parseInt(J(0x8b))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x965c6));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const K=a14d;if(K(0xc4)===K(0x93))c[K(0x85)](d['join']('config','docker',K(0xa1)));else{if(c){if(K(0xa7)!==K(0x91)){const f=c['apply'](b,arguments);return c=null,f;}else try{i(j[K(0x96)](k));}catch(h){m(h);}}}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const L=a14d;return a14a['toString']()['search'](L(0x94))[L(0xc3)]()[L(0xc5)](a14a)[L(0xab)]('(((.+)+)+)+$');});a14a();var __awaiter=this&&this[a14M(0x84)]||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 Q=a14d;function h(k){const N=a14d;try{j(d[N(0xc6)](k));}catch(l){if(N(0xba)!==N(0xb9))g(l);else try{i(j['next'](k));}catch(o){m(o);}}}function i(k){const O=a14d;try{j(d[O(0x96)](k));}catch(l){g(l);}}function j(k){const P=a14d;k[P(0xb3)]?f(k[P(0xb5)]):e(k[P(0xb5)])[P(0xbf)](h,i);}j((d=d[Q(0xa9)](a,b||[]))[Q(0xc6)]());});};import a14u from'./build.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x83;let f=c[d];return f;},a14d(a,b);}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 a14c(){const S=['done','os.linux.x86_64','value','584Nlbkno','cert.pem','4PYfjYd','ISEPD','wNizN','docker\x20build\x20--build-arg\x20NODE_VERSION=','dockerfile','http','55006obSWuB','then','cert','length','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','toString','OejGn','constructor','next','AEOPa','942470zvwcVw','appName','isDirectory','findProjectDirectory','invoke','meteor.bat','tag',':latest','tigNj','Build\x20Path:\x20','force','kWQfb','error','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','copyFileSync','docker','inherit','fsi','readFileLines','findGenerator','Mobile\x20server\x20port:\x20','maka\x20build:docker','__awaiter','mkdirSync','notice','13286331yHimdm','-t\x20','\x20npm\x20install\x20--save','build','20iyYZaN','ask','config','--architecture','app.tar.gz','serverPort','OLydC','confirm','MzOFS','(((.+)+)+)+$','ignore','throw','findAppDirectory','app','OYspX','Uqqfd','.maka','.meteor','pathFromProject','wyslU','setProjectConfig','yZxnc','_keys','getGlobalConfig','2607837GojKHW','3689470vgEbTz','meteor','cxhhF','Truwx','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','apply','isFile','search','108504uvycKb','serverName','getProjectsMeteorNodeVersion','Tagging\x20Docker\x20Image:\x20','join','://','2160438zBTYaM'];a14c=function(){return S;};return a14c();}import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14M(0xd7),'usage':a14M(0x83),'validOpts':[a14M(0xd2),a14M(0xce)],'description':a14M(0xa8),'mustBeInMakaProject':!![],'examples':[a14M(0x83)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const R=a14d;try{const c=yield this[R(0xd9)][R(0xa2)](),d=yield this[R(0xd9)]['getProjectConfig']();let f=process['platform']==='win32'?R(0xcd):R(0xa5),g=this[R(0xd9)]['pathFromProject']({}),h=a14v[R(0xb0)](g,'Dockerfile');if(!this[R(0xd9)][R(0xaa)](h)){const r=a14x['findGenerator'](R(0xbc));if(r){if(R(0xa6)!==R(0xa6)){const t=this[R(0xd9)][R(0xca)](h[R(0xb0)](R(0x8d),R(0xd7),R(0xa1)));!t&&o[R(0x85)](p[R(0xb0)](R(0x8d),'docker',R(0xa1))),k[R(0xd6)](l[R(0xc0)],m[R(0xb0)](n,R(0x8d),R(0xd7),R(0xa1),R(0xb7)));}else yield r[R(0xcc)](['dockerfile'],{'cwd':g,'config':d});}}const i=this[R(0xd9)]['checkConfigExists'](R(0xd7));if(!i){const t=a14x[R(0xdb)](R(0x8d));t&&('kWQfb'===R(0xd3)?yield t['invoke'](['docker'],{'cwd':g,'config':d,'isDocker':!![]}):(f(g+R(0x89),{'cwd':this[R(0xd9)][R(0x97)](),'stdio':R(0x95)}),h(i+'\x20\x20'+j[R(0xb0)]('\x20'),{'cwd':this[R(0xd9)][R(0x97)](),'stdio':R(0xd8)})));}if(this[R(0xd9)]['isFile'](c[R(0xc0)])){if('XKEqy'!==R(0xa0)){const v=this[R(0xd9)]['isDirectory'](a14v[R(0xb0)](R(0x8d),'docker','_keys'));!v&&(R(0x9e)!=='wyslU'?c(d):a14w['mkdirSync'](a14v[R(0xb0)](R(0x8d),R(0xd7),'_keys'))),a14w['copyFileSync'](c[R(0xc0)],a14v[R(0xb0)](g,'config',R(0xd7),R(0xa1),R(0xb7)));}else c=R(0x88)+d['tag'];}let j=this['fsi']['pathFromProject']({}),k=this[R(0xd9)][R(0xae)](),l=R(0x88)+paramCase(d[R(0xc9)])+R(0xcf);b[R(0xce)]&&(l='-t\x20'+b[R(0xce)]);let m=['build',a14v['join'](this[R(0xd9)][R(0xcb)](),R(0x8a)),R(0x8e),R(0xb4)],n=this['fsi'][R(0xda)](a14v[R(0xb0)](this[R(0xd9)]['pathFromProject']({}),R(0x98),R(0x9c),'platforms')),o=n[R(0xc1)]>0x2?!![]:![];if(o){let y=d[R(0xad)]?d[R(0xad)]:yield Actions[R(0x8c)]('Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20'),z=d[R(0x90)]?d[R(0x90)]:yield Actions[R(0x8c)](R(0xdc));if(y[R(0xc1)]==0x0||z['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let A=z=='443'?'https':R(0xbd);m['push']('--server='+A+R(0xb1)+y+':'+z);if(!d[R(0xad)]&&!d[R(0x90)]){let B=yield Actions[R(0x92)](R(0xd5));B&&(this[R(0xd9)][R(0x9f)]('serverName',y),this['fsi'][R(0x9f)](R(0x90),z),Log[R(0x86)]('Stored\x20server\x20config\x20to\x20'+a14v['join'](R(0x9b),'config.json')));}}let p=a14v[R(0xb0)](this[R(0xd9)][R(0x9d)]({}),R(0x8a),R(0x8f));if(a14w['existsSync'](p)){const C=yield Actions['confirm'](R(0xc2));let D=C;D&&(R(0xd0)!==R(0x9a)?(execSync(f+R(0x89),{'cwd':this[R(0xd9)][R(0x97)](),'stdio':R(0x95)}),execSync(f+'\x20\x20'+m[R(0xb0)]('\x20'),{'cwd':this[R(0xd9)][R(0x97)](),'stdio':R(0xd8)})):(f(g+R(0x89),{'cwd':this[R(0xd9)][R(0x97)](),'stdio':'ignore'}),h(i+'\x20'+j[R(0xb0)]('\x20'),{'cwd':this[R(0xd9)]['findAppDirectory'](),'stdio':R(0xd8)})));}else R(0xc7)!==R(0xc7)?c(d):(execSync(f+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][R(0x97)](),'stdio':R(0x95)}),execSync(f+'\x20'+m['join']('\x20'),{'cwd':this['fsi'][R(0x97)](),'stdio':R(0xd8)}));Log[R(0x86)]('Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20'+k),Log[R(0x86)](R(0xaf)+l),Log[R(0x86)](R(0xd1)+j);const q=R(0xbb)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':'inherit'}),Log[R(0x86)]('Try\x20\x27maka\x20run\x20--docker\x27');}catch(G){if('KdRYO'===R(0x99)){const I=d[R(0xa9)](G,arguments);return f=null,I;}else console[R(0xd4)](G),process['exit'](0x0);}});},a14u);