@maka/maka-cli 4.1.9 → 4.1.11

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 (93) 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/templates/meteor/app/server/helmet-csp.js +29 -1
  72. package/dist/templates/meteor/app/server/helmet-csp.js.jsx +29 -1
  73. package/dist/templates/meteor/app/server/helmet-csp.js.ts +29 -1
  74. package/dist/templates/meteor/app/server/helmet-csp.js.tsx +29 -1
  75. package/dist/tool.js +1 -1
  76. package/dist/tools/actions/actions.class.js +1 -1
  77. package/dist/tools/actions/actions.test.js +1 -1
  78. package/dist/tools/aws/aws.class.js +1 -1
  79. package/dist/tools/aws/aws.interfaces.js +1 -1
  80. package/dist/tools/docker/docker.class.js +1 -1
  81. package/dist/tools/docker/docker.interfaces.js +1 -1
  82. package/dist/tools/fsi/fsi.class.js +1 -1
  83. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  84. package/dist/tools/https/https.class.js +1 -1
  85. package/dist/tools/https/https.interface.js +1 -1
  86. package/dist/tools/log/log.class.js +1 -1
  87. package/dist/tools/log/log.interfaces.js +1 -1
  88. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  89. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  90. package/dist/tools/ssh/ssh.class.js +1 -1
  91. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  92. package/dist/tools/ssl/ssl.class.js +1 -1
  93. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x137))/0x1+parseInt(N(0x190))/0x2+-parseInt(N(0x1ac))/0x3+parseInt(N(0x173))/0x4*(-parseInt(N(0x12e))/0x5)+-parseInt(N(0x1c1))/0x6*(parseInt(N(0x13b))/0x7)+-parseInt(N(0x156))/0x8*(-parseInt(N(0x19d))/0x9)+-parseInt(N(0x19a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xb8f91));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x19f)==='abwlk'){const d=a?function(){const P=O;if(c){const e=c[P(0x187)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else return d=e[0x0],this['findCommand'](f);};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0x1b0)]()[Q(0x1a0)](Q(0x170))[Q(0x1b0)]()[Q(0x163)](a0a)[Q(0x1a0)](Q(0x170));});a0a();var __awaiter=this&&this[a0R(0x142)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const S=a0d;if(S(0x1a9)===S(0x130))return this[S(0x171)]['usage']||S(0x19e);else g(f);});}return new(c||(c=Promise))(function(f,g){const W=a0d;function h(k){const T=a0d;try{if(T(0x157)!=='iXTbK')j(d[T(0x1a4)](k));else throw b;}catch(m){g(m);}}function i(k){const U=a0d;if(U(0x135)!=='QbyXG')try{U(0x13d)!==U(0x18b)?j(d[U(0x143)](k)):b['exit'](0x1);}catch(m){if(U(0x167)!=='ItmJq')g(m);else throw new b();}else try{i(j['throw'](k));}catch(p){m(p);}}function j(k){const V=a0d;k[V(0x138)]?f(k[V(0x184)]):e(k[V(0x184)])['then'](h,i);}j((d=d[W(0x187)](a,b||[]))['next']());});};function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x12d;let f=c[d];return f;},a0d(a,b);}import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0R(0x13c)]();import a0L from'cli-table';function a0c(){const aj=['_handler','rNANr','hEqvc','description','parent','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMakaProject','help','concat','10806YEApUP','match','687840YCXdwC','ZTrQA','UUlLl','Command\x20requires\x20a\x20handler\x20function','mustHaveMeteorInstalled','validateMakaSubscription','singleLicense','aLWSc','join','946511tZTaMo','done','split','maxOptsLength','77vzdBBI','homedir','TbuXW','existsSync','trialActive','Command\x20not\x20found','bind','__awaiter','throw','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','.meteor','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Too\x20many\x20options','proFlags','ugghA','minOptsLength','findProjectDirectory','XOnPP','push','roles','XLKyA','Alias','fsi','Missing\x20required\x20options\x20','No\x20description\x20provided.','proCommands','error','8ZizqUt','ZEGTE','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','runSubCommand','zLVqR','vqIyo','findSubCommand','TtKxB','maxArgLength','fYHUi','win32','nYirm','Command\x20requires\x20a\x20name','constructor','validateMeteorInstall','No\x20aliases','sort','dpmiK','RIMSz','HZqWO','forEach','exit','invoke','qoAaW','mrajO','ReUgh','(((.+)+)+)+$','options','splice','16RqaEmh','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','examples','VVIhs','validateParams','length','Too\x20few\x20arguments','findCommand','MHvXT','keys','aliases','Invalid\x20options:\x20','KLzQQ','find','mustBeInMakaProject','cAYze','aQubQ','value','WmLsY','_commands','apply','game','foiNd','Name','yJpyl','To\x20use\x20this\x20command,\x20\x22','addCommand\x20requires\x20a\x20Command\x20instance','murder','Missing\x20required\x20option:\x20','1939518LSAXts','Please\x20run\x20\x22maka\x20install\x20meteor\x22','number','includes','Local','slTfr','name','GIIYk','minArgLength','gKEQo','8187320UnxbkQ','assign','umbPI','6055578qnuGhQ','No\x20usage\x20provided.','abwlk','search','getPro','gugiP','trialExpirationDate','next','tableList','Description','Too\x20many\x20arguments','usage','UQbNL','bright','notice','1327944jmjZcX','irHqi','Too\x20few\x20options','OREyL','toString','filter','hMuUi','addCommand','domainLicense','platform','function','Commands:'];a0c=function(){return aj;};return a0c();}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 X=a0R;super();if(!a)throw new Error(X(0x1bd));if(!a[X(0x196)])throw new Error(X(0x162));if(typeof b!==X(0x1b6))throw new Error('Command\x20requires\x20a\x20handler\x20function');this['options']=Object['assign']({},a),this[X(0x196)]=this[X(0x171)]['name'],this[X(0x186)]=[],this[X(0x1b8)]=b[X(0x141)](this);}static['create'](a,b,c){const Y=a0R;var d;if(!a){if('XBjcw'!==Y(0x1b9))throw new Error('Command.create\x20requires\x20some\x20options!');else c(d);}if(typeof b!==Y(0x1b6))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object[Y(0x19b)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[Y(0x171)])===null||d===void 0x0?void 0x0:d[Y(0x196)]}),c['addCommand'](e),e;}[a0R(0x12d)](a){const Z=a0R;let b=[this[Z(0x196)]]['concat'](this['options']['aliases']||[]);if(this['parent']){if(Z(0x17f)!==Z(0x17f)){const d=new d({});d[Z(0x14d)]([Z(0x18a),Z(0x150),Z(0x1a6)]),e[Z(0x166)]()['forEach'](i=>{const a0=Z;i[a0(0x196)]!==a0(0x18e)&&i[a0(0x196)]!==a0(0x188)&&d['push']([i[a0(0x196)],i['aliases'](),i[a0(0x1bb)]()]);}),f[Z(0x1aa)](d[Z(0x1b0)]());}else b[Z(0x14d)](this[Z(0x1bc)]);}return b[Z(0x193)](a);}[a0R(0x1b3)](a){const a1=a0R;if(!(a instanceof Command))throw new Error('addCommand\x20requires\x20a\x20Command\x20instance');this[a1(0x186)][a1(0x14d)](a);}[a0R(0x1be)](){const a2=a0R,a=this[a2(0x151)]['findProjectDirectory']();return a!==![]?!![]:![];}[a0R(0x164)](){const a3=a0R;let a=a0I['join'](homeDir,a3(0x145));const b=process[a3(0x1b5)]===a3(0x160);if(b){a=a0I['join'](homeDir,'AppData',a3(0x194),a3(0x145));if(!a0K['existsSync'](a))return![];}else{if(!a0K[a3(0x13e)](a)){if(a3(0x19c)===a3(0x195))this[a3(0x186)][a3(0x178)]>0x0&&g[a3(0x1bf)]&&(m['notice'](a3(0x1b7)),this['tableList'](this[a3(0x186)])),i[a3(0x1a8)](j,k,l);else return![];}}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a4=a0d;try{const c=this['findCommand'](a[0x0]);if(c){const d=(c===null||c===void 0x0?void 0x0:c[a4(0x196)])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c['parent'])||'',g=a[0x0],h=Object[a4(0x17c)](b),i=yield this[a4(0x151)][a4(0x1a1)]();if(!i){if(a4(0x12f)===a4(0x12f))Log[a4(0x155)](a4(0x174)),process['exit'](0x1);else{let m=[this[a4(0x196)]][a4(0x1c0)](this[a4(0x171)][a4(0x17d)]||[]);return this[a4(0x1bc)]&&m[a4(0x14d)](this['parent']),m[a4(0x193)](b);}}const j=(i===null||i===void 0x0?void 0x0:i[a4(0x154)][a4(0x193)](d))||(i===null||i===void 0x0?void 0x0:i['proCommands']['includes'](f)),k=!(i===null||i===void 0x0?void 0x0:i[a4(0x14e)][a4(0x193)](a4(0x134)))&&!(i===null||i===void 0x0?void 0x0:i[a4(0x14e)][a4(0x193)](a4(0x1b4)))&&!(i===null||i===void 0x0?void 0x0:i[a4(0x13f)]);if(j&&k)throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(h[a4(0x178)]>0x0){const m=i===null||i===void 0x0?void 0x0:i[a4(0x148)][a4(0x1b1)](n=>h[a4(0x193)](n));if(m&&m[a4(0x178)]>0x0&&k){if(a4(0x182)===a4(0x182))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(m===null||m===void 0x0?void 0x0:m[a4(0x136)](',\x20'))+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';else throw new b(a4(0x131));}}if(g==='deploy'){const o=yield this[a4(0x151)][a4(0x1a1)](),p=o===null||o===void 0x0?void 0x0:o['proCommands'][a4(0x193)](a[0x0]+'\x20'+a[0x1]);if(p&&k)throw a4(0x18c)+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===null||i===void 0x0?void 0x0:i['trialActive']){if('cymVt'===a4(0x1af)){if(d[a4(0x178)]<this[a4(0x171)][a4(0x198)]){g[a4(0x155)](a4(0x179));throw new h();}}else Log['notice']('Trial\x20License\x20Expires:\x20'+i[a4(0x1a3)]['split']('T')[0x0]);}}}catch(r){throw r;}});}[a0R(0x177)](a,b,c){const a5=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a5(0x17c)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a5(0x178)])>0x0){if(g[a5(0x178)]===0x0){if(a5(0x15a)===a5(0x15b)){if(d['length']>=this['options'][a5(0x15e)]){g[a5(0x155)](a5(0x1a7));throw new h();}}else{Log[a5(0x155)](a5(0x152)+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts[a5(0x16a)](i=>{const a6=a5;if(!g['includes'](i)){Log[a6(0x155)](a6(0x18f)+i);throw new UsageError();}});}validOpts=validOpts[a5(0x1c0)](requiredOpts);if((validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a5(0x178)])>0x0){if(a5(0x1b2)!==a5(0x185))validOpts[a5(0x14d)](a5(0x1bf)),g['forEach'](i=>{const a7=a5;if(!validOpts['includes'](i)){Log[a7(0x155)](a7(0x17e)+i);throw new UsageError();}});else throw new b(a5(0x162));}}['run'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;if('YHmZu'===a8(0x15f))throw new b('addCommand\x20requires\x20a\x20Command\x20instance');else try{if(a8(0x14f)!==a8(0x14f))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(d===null||e===void 0x0?void 0x0:f['join'](',\x20'))+a8(0x146);else{a=a||[],b=b||{};try{yield this[a8(0x133)](a,b);}catch(f){Log[a8(0x155)](f),process[a8(0x16b)](0x0);}yield this['invoke'](a,b);}}catch(g){if(a8(0x189)==='foiNd')process[a8(0x16b)](0x1);else return this['options'][a8(0x1bb)]||a8(0x153);}});}[a0R(0x16c)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a9(0x171)];this[a9(0x177)](a,b,this[a9(0x171)]);try{if(this['options'][a9(0x181)]){if(a9(0x14c)!==a9(0x14c)){c[a9(0x155)]('Too\x20many\x20options');throw new d();}else{const d=this['validateMakaProject']();if(!d){if(a9(0x16f)===a9(0x169))c(d);else throw new MustBeInProjectError();}}}if(this[a9(0x171)][a9(0x132)]){const g=this[a9(0x164)]();if(!g){if('AehjB'===a9(0x168)){if(!(e instanceof f))throw new i(a9(0x18d));this[a9(0x186)][a9(0x14d)](h);}else throw new NoMeteorFoundError();}}if(typeof this[a9(0x171)]['minArgLength']===a9(0x192)){if(a[a9(0x178)]<this[a9(0x171)]['minArgLength']){if(a9(0x15d)!==a9(0x16d)){Log[a9(0x155)]('Too\x20few\x20arguments');throw new UsageError();}else throw new b();}}if(typeof this[a9(0x171)]['maxArgLength']===a9(0x192)){if(a[a9(0x178)]>=this[a9(0x171)]['maxArgLength']){Log[a9(0x155)](a9(0x1a7));throw new UsageError();}}if(typeof this['options'][a9(0x14a)]===a9(0x192)){if(Object[a9(0x17c)](b)[a9(0x178)]<this[a9(0x171)][a9(0x14a)]){Log['error']('Too\x20few\x20options');throw new UsageError();}}if(typeof this[a9(0x171)][a9(0x13a)]==='number'){if(Object[a9(0x17c)](b)[a9(0x178)]>=this['options'][a9(0x13a)]){if(a9(0x183)!=='gtNJc'){Log[a9(0x155)](a9(0x147));throw new UsageError();}else throw'Command\x20not\x20found';}}if((a[0x0]===_prevCmd||a[a9(0x178)]===0x0)&&b[a9(0x1bf)]){if(a9(0x176)!=='jiObJ')throw new UsageError();else{const l=this[a9(0x151)][a9(0x14b)]();return l!==![]?!![]:![];}}_prevCmd=a[0x0],yield this[a9(0x1b8)]['call'](this,a,b);}catch(l){if(l instanceof UsageError)this[a9(0x186)][a9(0x178)]>0x0&&b[a9(0x1bf)]&&(Log[a9(0x1ab)](a9(0x1b7)),this['tableList'](this['_commands'])),Log['usage'](description,examples,usage);else{if(l instanceof MustBeInProjectError)Log[a9(0x155)](a9(0x144)),Log[a9(0x1a8)](description,examples,usage);else{if(l instanceof NoMeteorFoundError){if(a9(0x197)!==a9(0x17b))Log['error'](a9(0x158)),Log[a9(0x1ab)](a9(0x191)),Log[a9(0x1a8)](description,examples,usage);else{c['error'](a9(0x1ae));throw new d();}}else{if(l instanceof NoMeteorAppFoundError){if(a9(0x161)!=='nYirm')return f instanceof g?h:new i(function(o){o(k);});else Log[a9(0x155)]('There\x20is\x20no\x20Meteor\x20application\x20here'),Log['usage'](description,examples,usage);}else throw l;}}}process[a9(0x16b)](0x1);}});}[a0R(0x1a5)](a){const aa=a0R,b=new a0L({});b['push']([aa(0x18a),aa(0x150),'Description']),a[aa(0x166)]()[aa(0x16a)](c=>{const ab=aa;c[ab(0x196)]!==ab(0x18e)&&c[ab(0x196)]!==ab(0x188)&&(ab(0x1ba)===ab(0x149)?c[ab(0x172)](0x0,0x0,d):b[ab(0x14d)]([c['name'],c[ab(0x17d)](),c[ab(0x1bb)]()]));}),Log[aa(0x1aa)](b[aa(0x1b0)]());}['findCommand'](a){const ac=a0R;return this[ac(0x186)][ac(0x180)](b=>b[ac(0x12d)](a));}[a0R(0x15c)](a){const ad=a0R;let b=a===null||a===void 0x0?void 0x0:a['split'](':');if(b)return a=b[0x0],this[ad(0x17a)](a);else return;}[a0R(0x159)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;try{if(ae(0x16e)===ae(0x1ad))return this[ae(0x171)]['aliases']||ae(0x165);else{let f=a[ae(0x139)](':');a=f[0x0];let g=f[0x1];g&&(ae(0x199)!=='SREAC'?b[ae(0x172)](0x0,0x0,g):c['notice']('Trial\x20License\x20Expires:\x20'+d['trialExpirationDate'][ae(0x139)]('T')[0x0]));let h=this['findCommand'](a);if(h)'gugiP'===ae(0x1a2)?yield h['run'](b,c):g['name']!=='murder'&&h[ae(0x196)]!==ae(0x188)&&m[ae(0x14d)]([n['name'],o['aliases'](),p['description']()]);else throw ae(0x140);}}catch(k){throw Log[ae(0x155)](k);}});}['description'](){const af=a0R;return this[af(0x171)][af(0x1bb)]||af(0x153);}[a0R(0x1a8)](){const ag=a0R;return this[ag(0x171)]['usage']||ag(0x19e);}[a0R(0x175)](){const ah=a0R;return this['options'][ah(0x175)]||[];}[a0R(0x17d)](){const ai=a0R;return this['options'][ai(0x17d)]||ai(0x165);}}
1
+ const a0R=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0x134))/0x1+parseInt(N(0x120))/0x2*(parseInt(N(0x136))/0x3)+-parseInt(N(0x12d))/0x4+-parseInt(N(0x130))/0x5*(-parseInt(N(0x113))/0x6)+parseInt(N(0x115))/0x7*(-parseInt(N(0x106))/0x8)+parseInt(N(0x180))/0x9+parseInt(N(0x185))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x360a1));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x184)!==O(0x153)){const d=a?function(){const P=O;if(c){if(P(0x131)===P(0x131)){const e=c[P(0x112)](b,arguments);return c=null,e;}else return;}}:function(){};return a=![],d;}else{let f=f===null||g===void 0x0?void 0x0:h[O(0x186)](':');if(f)return k=f[0x0],this[O(0x182)](l);else return;}};}()),a0a=a0b(this,function(){const Q=a0d;return a0a[Q(0x189)]()[Q(0x169)](Q(0x15a))[Q(0x189)]()[Q(0x18a)](a0a)[Q(0x169)](Q(0x15a));});a0a();var __awaiter=this&&this[a0R(0x179)]||function(a,b,c,d){function e(f){const S=a0d;if(S(0x159)!=='XiaHv')c[S(0x175)](S(0x170)),d[S(0x16a)](0x1);else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const W=a0d;function h(k){const T=a0d;try{j(d[T(0x124)](k));}catch(l){g(l);}}function i(k){const U=a0d;if(U(0x12a)!==U(0x12a)){const m=this[U(0x160)]();if(!m)throw new c();}else try{if(U(0x158)===U(0x158))j(d['throw'](k));else return d=e[0x0],this['findCommand'](f);}catch(n){g(n);}}function j(k){const V=a0d;k['done']?f(k[V(0x116)]):e(k[V(0x116)])['then'](h,i);}j((d=d[W(0x112)](a,b||[]))[W(0x124)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x106;let f=c[d];return f;},a0d(a,b);}const homeDir=a0J[a0R(0x11f)]();function a0c(){const aj=['lAPIQ','OunLw','TQITS','tableList','validateMakaProject','AppData','match','HhzvC','maxArgLength','pLmwL','trialExpirationDate','find','validateMeteorInstall','search','exit','help','To\x20use\x20these\x20pro\x20flags,\x20\x22','dUDDR','There\x20is\x20no\x20Meteor\x20application\x20here','concat','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','proFlags','Commands:','aliases','hgmIl','error','Description','name','throw','__awaiter','parent','jDmkV','rqeFE','addCommand\x20requires\x20a\x20Command\x20instance','number','length','433179fmmVcd','lokFR','findCommand','jkRmf','gYrTl','4630550IRbjCq','split','lXrms','PvVgo','toString','constructor','deploy','mustBeInMakaProject','3912GfmbbU','maxOptsLength','No\x20aliases','bright','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','YXSmF','No\x20description\x20provided.','Trial\x20License\x20Expires:\x20','yRUKF','call','katQs','options','apply','1993890PVuAeH','Vzzjs','4697FAObJS','value','sort','_handler','description','bmrmH','win32','getPro','Too\x20many\x20options','game','homedir','4avhjRh','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','To\x20use\x20this\x20command,\x20\x22','notice','next','aUsGJ','murder','validateMakaSubscription','uMWVm','usage','CywWG','push','assign','818580McDctb','dtpqz','Too\x20few\x20arguments','5nlnsNS','QJReM','invoke','Too\x20few\x20options','380274PAYAwU','No\x20usage\x20provided.','436323KVTTwT','minArgLength','roles','bind','lhVom','Invalid\x20options:\x20','Command\x20requires\x20a\x20handler\x20function','Command\x20requires\x20a\x20name','SrgBA','domainLicense','run','filter','Missing\x20required\x20option:\x20','_commands','join','addCommand','trialActive','proCommands','STKYD','minOptsLength','splice','forEach','function','Eaprv','platform','Command.create\x20requires\x20a\x20handler\x20function!','Too\x20many\x20arguments','includes','keys','OqnOh','validateParams','Missing\x20required\x20options\x20','Alias','examples','CLjdX','XiaHv','(((.+)+)+)+$','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27'];a0c=function(){return aj;};return a0c();}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 X=a0R;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(X(0x13d));if(typeof b!==X(0x14c)){if(X(0x12e)!==X(0x13a))throw new Error(X(0x13c));else throw new b('Command.create\x20requires\x20a\x20handler\x20function!');}this[X(0x111)]=Object[X(0x12c)]({},a),this[X(0x177)]=this[X(0x111)][X(0x177)],this[X(0x143)]=[],this[X(0x118)]=b[X(0x139)](this);}static['create'](a,b,c){const Y=a0R;var d;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==Y(0x14c)){if(Y(0x125)!=='JlXHi')throw new Error(Y(0x14f));else{c['error'](Y(0x133));throw new d();}}let e=new Command(a,b);return c=c||a0M,Object[Y(0x12c)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[Y(0x111)])===null||d===void 0x0?void 0x0:d['name']}),c[Y(0x145)](e),e;}[a0R(0x162)](a){const Z=a0R;let b=[this['name']][Z(0x16f)](this['options'][Z(0x173)]||[]);if(this[Z(0x17a)]){if('LFBKL'===Z(0x163))throw new b();else b['push'](this[Z(0x17a)]);}return b[Z(0x151)](a);}[a0R(0x145)](a){const a0=a0R;if(!(a instanceof Command))throw new Error(a0(0x17d));this['_commands'][a0(0x12b)](a);}[a0R(0x160)](){const a=this['fsi']['findProjectDirectory']();return a!==![]?!![]:![];}[a0R(0x168)](){const a1=a0R;let a=a0I[a1(0x144)](homeDir,'.meteor');const b=process[a1(0x14e)]===a1(0x11b);if(b){a=a0I['join'](homeDir,a1(0x161),'Local','.meteor');if(!a0K['existsSync'](a))return![];}else{if(!a0K['existsSync'](a)){if(a1(0x187)===a1(0x187))return![];else{c[a1(0x175)](a1(0x12f));throw new d();}}}return!![];}['validateMakaSubscription'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if(a2(0x15c)===a2(0x10e))throw new b();else try{const d=this[a2(0x182)](a[0x0]);if(d){const f=(d===null||d===void 0x0?void 0x0:d['name'])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d[a2(0x17a)])||'',h=a[0x0],i=Object[a2(0x152)](b),j=yield this['fsi'][a2(0x11c)]();if(!j){if(a2(0x165)!=='WLJCO')Log[a2(0x175)](a2(0x170)),process[a2(0x16a)](0x1);else throw new b(a2(0x13d));}const k=(j===null||j===void 0x0?void 0x0:j[a2(0x147)][a2(0x151)](f))||(j===null||j===void 0x0?void 0x0:j[a2(0x147)][a2(0x151)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0x138)][a2(0x151)]('singleLicense'))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x138)][a2(0x151)](a2(0x13f)))&&!(j===null||j===void 0x0?void 0x0:j['trialActive']);if(k&&l){if('jDmkV'===a2(0x17b))throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x15b);else return this[a2(0x111)][a2(0x157)]||[];}if(i[a2(0x17f)]>0x0){const o=j===null||j===void 0x0?void 0x0:j[a2(0x171)][a2(0x141)](p=>i['includes'](p));if(o&&o[a2(0x17f)]>0x0&&l)throw a2(0x16c)+(o===null||o===void 0x0?void 0x0:o[a2(0x144)](',\x20'))+a2(0x15b);}if(h===a2(0x18b)){if(a2(0x17c)!==a2(0x183)){const p=yield this['fsi'][a2(0x11c)](),q=p===null||p===void 0x0?void 0x0:p[a2(0x147)][a2(0x151)](a[0x0]+'\x20'+a[0x1]);if(q&&l)throw a2(0x122)+a[0x0]+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';}else throw new b();}(j===null||j===void 0x0?void 0x0:j[a2(0x146)])&&(a2(0x14d)!==a2(0x14d)?(this[a2(0x143)][a2(0x17f)]>0x0&&g[a2(0x16b)]&&(m[a2(0x123)](a2(0x172)),this[a2(0x15f)](this[a2(0x143)])),i[a2(0x129)](j,k,l)):Log[a2(0x123)](a2(0x10d)+j['trialExpirationDate'][a2(0x186)]('T')[0x0]));}}catch(t){throw t;}});}['validateParams'](a,b,c){const a3=a0R,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a3(0x152)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts['length'])>0x0){if(g[a3(0x17f)]===0x0){if(a3(0x10b)!=='YXSmF'){d['error'](a3(0x13b)+e);throw new f();}else{Log[a3(0x175)](a3(0x155)+requiredOpts[a3(0x144)](',\x20'));throw new UsageError();}}requiredOpts[a3(0x14b)](i=>{const a4=a3;if(!g[a4(0x151)](i)){Log[a4(0x175)](a4(0x142)+i);throw new UsageError();}});}validOpts=validOpts['concat'](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a3(0x17f)])>0x0&&(validOpts['push'](a3(0x16b)),g[a3(0x14b)](i=>{const a5=a3;if(a5(0x148)!=='STKYD'){if(i[a5(0x17f)]===0x0){q[a5(0x175)](a5(0x155)+r[a5(0x144)](',\x20'));throw new s();}m[a5(0x14b)](z=>{const a6=a5;if(!t[a6(0x151)](z)){w[a6(0x175)](a6(0x142)+z);throw new x();}});}else{if(!validOpts[a5(0x151)](i)){Log[a5(0x175)](a5(0x13b)+i);throw new UsageError();}}}));}[a0R(0x140)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;if(a7(0x11a)==='KSTDy')throw new b(a7(0x10a));else try{a=a||[],b=b||{};try{yield this[a7(0x127)](a,b);}catch(d){Log['error'](d),process[a7(0x16a)](0x0);}yield this[a7(0x132)](a,b);}catch(f){process[a7(0x16a)](0x1);}});}['invoke'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a8(0x111)];this[a8(0x154)](a,b,this[a8(0x111)]);try{if(this[a8(0x111)][a8(0x18c)]){const c=this['validateMakaProject']();if(!c){if('uMWVm'===a8(0x128))throw new MustBeInProjectError();else c[a8(0x14a)](0x0,0x0,d);}}if(this[a8(0x111)]['mustHaveMeteorInstalled']){if(a8(0x174)==='hgmIl'){const f=this[a8(0x168)]();if(!f)throw new NoMeteorFoundError();}else e[a8(0x12b)]([f[a8(0x177)],g[a8(0x173)](),h['description']()]);}if(typeof this['options'][a8(0x137)]==='number'){if(a8(0x13e)===a8(0x13e)){if(a['length']<this['options']['minArgLength']){Log[a8(0x175)]('Too\x20few\x20arguments');throw new UsageError();}}else b[a8(0x16a)](0x1);}if(typeof this['options'][a8(0x164)]===a8(0x17e)){if(a8(0x15d)!==a8(0x110)){if(a[a8(0x17f)]>=this[a8(0x111)][a8(0x164)]){Log[a8(0x175)](a8(0x150));throw new UsageError();}}else{if(e){const j=i[a8(0x112)](j,arguments);return k=null,j;}}}if(typeof this[a8(0x111)][a8(0x149)]===a8(0x17e)){if(Object[a8(0x152)](b)[a8(0x17f)]<this[a8(0x111)][a8(0x149)]){Log[a8(0x175)](a8(0x133));throw new UsageError();}}if(typeof this[a8(0x111)]['maxOptsLength']==='number'){if(a8(0x188)===a8(0x16d))c[a8(0x123)]('Trial\x20License\x20Expires:\x20'+d[a8(0x166)][a8(0x186)]('T')[0x0]);else{if(Object[a8(0x152)](b)['length']>=this[a8(0x111)][a8(0x107)]){Log['error'](a8(0x11d));throw new UsageError();}}}if((a[0x0]===_prevCmd||a[a8(0x17f)]===0x0)&&b['help'])throw new UsageError();_prevCmd=a[0x0],yield this[a8(0x118)][a8(0x10f)](this,a,b);}catch(k){if(k instanceof UsageError)this[a8(0x143)]['length']>0x0&&b[a8(0x16b)]&&(Log[a8(0x123)](a8(0x172)),this[a8(0x15f)](this[a8(0x143)])),Log['usage'](description,examples,usage);else{if(k instanceof MustBeInProjectError)Log[a8(0x175)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log[a8(0x129)](description,examples,usage);else{if(k instanceof NoMeteorFoundError)Log['error'](a8(0x121)),Log[a8(0x123)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),Log['usage'](description,examples,usage);else{if(k instanceof NoMeteorAppFoundError){if(a8(0x114)==='Vzzjs')Log[a8(0x175)](a8(0x16e)),Log['usage'](description,examples,usage);else{c[a8(0x175)](a8(0x11d));throw new d();}}else throw k;}}}process[a8(0x16a)](0x1);}});}[a0R(0x15f)](a){const a9=a0R,b=new a0L({});b[a9(0x12b)](['Name',a9(0x156),a9(0x176)]),a[a9(0x117)]()['forEach'](c=>{const aa=a9;c[aa(0x177)]!==aa(0x126)&&c[aa(0x177)]!==aa(0x11e)&&b[aa(0x12b)]([c['name'],c['aliases'](),c['description']()]);}),Log[a9(0x109)](b[a9(0x189)]());}[a0R(0x182)](a){const ab=a0R;return this[ab(0x143)][ab(0x167)](b=>b[ab(0x162)](a));}['findSubCommand'](a){const ac=a0R;let b=a===null||a===void 0x0?void 0x0:a[ac(0x186)](':');if(b){if(ac(0x15e)!=='TQITS')f[ac(0x12b)](ac(0x16b)),g[ac(0x14b)](q=>{const ad=ac;if(!k[ad(0x151)](q)){n[ad(0x175)]('Invalid\x20options:\x20'+q);throw new o();}});else return a=b[0x0],this[ac(0x182)](a);}else return;}['runSubCommand'](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;if(ae(0x181)!=='JUxCW')try{let d=a[ae(0x186)](':');a=d[0x0];let f=d[0x1];f&&b[ae(0x14a)](0x0,0x0,f);let g=this['findCommand'](a);if(g)yield g[ae(0x140)](b,c);else throw'Command\x20not\x20found';}catch(h){throw Log[ae(0x175)](h);}else d(e[ae(0x178)](f));});}[a0R(0x119)](){const af=a0R;return this[af(0x111)]['description']||af(0x10c);}[a0R(0x129)](){const ag=a0R;return this['options'][ag(0x129)]||ag(0x135);}[a0R(0x157)](){const ah=a0R;return this[ah(0x111)][ah(0x157)]||[];}[a0R(0x173)](){const ai=a0R;return this['options']['aliases']||ai(0x108);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=-parseInt(u(0xbd))/0x1*(-parseInt(u(0xc7))/0x2)+-parseInt(u(0xc4))/0x3*(parseInt(u(0xc1))/0x4)+-parseInt(u(0xc9))/0x5+parseInt(u(0xc8))/0x6+parseInt(u(0xc5))/0x7*(-parseInt(u(0xbe))/0x8)+-parseInt(u(0xbf))/0x9+parseInt(u(0xc0))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0xc17de));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var v=a1d;return a1a[v(0xc2)]()[v(0xca)](v(0xc6))[v(0xc2)]()[v(0xc3)](a1a)['search'](v(0xc6));});a1a();import'./aws/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xbd;var f=c[d];return f;},a1d(a,b);}import'./set/_index.js';function a1c(){var w=['toString','constructor','3FwCLIh','700140AIdpvi','(((.+)+)+)+$','28MNHGox','2140224nbFMIK','6834390hVCSHG','search','26083NfFtXp','40wrFyvk','6761124bXFDre','29124230CepDec','894132oxEyhP'];a1c=function(){return w;};return a1c();}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
+ (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x122))/0x1*(parseInt(u(0x127))/0x2)+-parseInt(u(0x126))/0x3+-parseInt(u(0x12a))/0x4*(parseInt(u(0x120))/0x5)+-parseInt(u(0x11d))/0x6*(parseInt(u(0x121))/0x7)+parseInt(u(0x11f))/0x8+parseInt(u(0x11e))/0x9*(parseInt(u(0x123))/0xa)+-parseInt(u(0x129))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x5bb1b));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x124)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a[w(0x125)]()['search'](w(0x128))['toString']()['constructor'](a1a)[w(0x12b)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x11d;var f=c[d];return f;},a1d(a,b);}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';function a1c(){var x=['462EXDoxs','1FRfpvB','50JpugFG','apply','toString','941715LDCixW','204710FrqMDH','(((.+)+)+)+$','6393926KFKiqF','4JoDqUM','search','726ccUokx','1184049ArajoM','4360584YjXkNG','132485BSMHtT'];a1c=function(){return x;};return a1c();}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(0x152))/0x1+parseInt(u(0x158))/0x2*(parseInt(u(0x151))/0x3)+-parseInt(u(0x154))/0x4+-parseInt(u(0x15c))/0x5*(-parseInt(u(0x15a))/0x6)+-parseInt(u(0x157))/0x7*(parseInt(u(0x15d))/0x8)+-parseInt(u(0x14f))/0x9+-parseInt(u(0x150))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x90149));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x15b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0x155)]()[w(0x156)](w(0x153))[w(0x155)]()[w(0x159)](a2a)[w(0x156)]('(((.+)+)+)+$');});a2a();import'./aws.command.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x14f;var f=c[d];return f;},a2d(a,b);}function a2c(){var x=['885123YVWuAj','3360400TfuWUj','51qZIxdc','869373TkbxQm','(((.+)+)+)+$','1145892VnEcEm','toString','search','14SiTvqd','63254HMtwsT','constructor','4483938HVfttG','apply','5JniBmd','3373368teJtmu'];a2c=function(){return x;};return a2c();}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';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(0x19d))/0x1*(-parseInt(u(0x195))/0x2)+-parseInt(u(0x1a0))/0x3+parseInt(u(0x198))/0x4*(-parseInt(u(0x1a3))/0x5)+parseInt(u(0x196))/0x6*(parseInt(u(0x19a))/0x7)+-parseInt(u(0x1a2))/0x8+parseInt(u(0x19c))/0x9+parseInt(u(0x199))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x6286d));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x19e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0x1a1)]()[w(0x19b)]('(((.+)+)+)+$')[w(0x1a1)]()[w(0x19f)](a2a)[w(0x19b)](w(0x197));});a2a();function a2c(){var x=['19899010fGVlJR','1582BBymVv','search','5124186SYfDIx','238492yrjqFl','apply','constructor','2260236zUcLts','toString','4407648xtqqxW','3822070NrPBTW','4gHBHrD','10356fUfmyY','(((.+)+)+)+$','4nNRZjx'];a2c=function(){return x;};return a2c();}import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';import'./csg.sub.cmd.js';import'./di.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x195;var f=c[d];return f;},a2d(a,b);}import'./dks.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';
@@ -1 +1 @@
1
- const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=parseInt(w(0x1f4))/0x1*(-parseInt(w(0x1d5))/0x2)+-parseInt(w(0x1e0))/0x3+parseInt(w(0x1f0))/0x4*(-parseInt(w(0x1da))/0x5)+-parseInt(w(0x1ea))/0x6*(parseInt(w(0x1d2))/0x7)+-parseInt(w(0x1e9))/0x8+-parseInt(w(0x1e3))/0x9+-parseInt(w(0x1e8))/0xa*(-parseInt(w(0x1dc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x6632a));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0x1f2)===x(0x1f2)){const d=a?function(){const y=x;if(y(0x1e2)===y(0x1e2)){if(c){if(y(0x1f1)===y(0x1d1))d[y(0x1ef)](e),f[y(0x1e7)](0x0);else{const f=c[y(0x1f5)](b,arguments);return c=null,f;}}}else d(e['throw'](f));}:function(){};return a=![],d;}else h['done']?i(j[x(0x1dd)]):k(l[x(0x1dd)])['then'](m,n);};}()),a3a=a3b(this,function(){const z=a3d;return a3a['toString']()['search'](z(0x1de))[z(0x1d4)]()[z(0x1d7)](a3a)['search'](z(0x1de));});a3a();function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x1d1;let f=c[d];return f;},a3d(a,b);}function a3c(){const G=['255CMBPZy','apply','then','yUoIq','7ShgNoW','__awaiter','toString','5378BVuOrI','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','constructor','throw','create','5RZDYOx','cHbGm','3344IvCTlI','value','(((.+)+)+)+$','aws','1337880epdUVG','xmzli','OPTFs','4332708XyjeYW','runSubCommand','done','next','exit','79270ZppQff','2234168VKfLXN','152106RyvNpV','maka\x20aws\x20<command>','search','UfCHc','maka\x20aws:describe-instance','error','294068QFFpec','wgWrO','VRjGQ','findSubCommand'];a3c=function(){return G;};return a3c();}var __awaiter=this&&this[a3A(0x1d3)]||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;if(B(0x1e1)!=='lQHRT')try{j(d[B(0x1e6)](k));}catch(l){g(l);}else c(d);}function i(k){const C=a3d;try{j(d[C(0x1d8)](k));}catch(l){g(l);}}function j(k){const D=a3d;k[D(0x1e5)]?f(k['value']):e(k['value'])[D(0x1f6)](h,i);}j((d=d[E(0x1f5)](a,b||[]))[E(0x1e6)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3A(0x1d9)]({'name':a3A(0x1df),'usage':a3A(0x1eb),'minArgLength':0x1,'description':a3A(0x1d6),'examples':[a3A(0x1ee),'maka\x20aws:di']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if(F(0x1db)!=='gGPOH')try{let c=a[0x0],d=this[F(0x1f3)](c);d&&(F(0x1ed)===F(0x1ed)?this[F(0x1e4)](c,a,b):this['runSubCommand'](d,e,f));}catch(g){console['error'](g),process[F(0x1e7)](0x0);}else return c[F(0x1d4)]()[F(0x1ec)](F(0x1de))[F(0x1d4)]()[F(0x1d7)](d)[F(0x1ec)](F(0x1de));});});export default AWSCommand;
1
+ const a3z=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0x8f))/0x1+parseInt(w(0x70))/0x2+-parseInt(w(0x6f))/0x3*(parseInt(w(0x92))/0x4)+-parseInt(w(0x88))/0x5*(parseInt(w(0x90))/0x6)+-parseInt(w(0x89))/0x7+parseInt(w(0x7a))/0x8+-parseInt(w(0x79))/0x9*(-parseInt(w(0x83))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xe2696));const a3b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a3d;if(c){if('vTmNv'!==x(0x8e)){const e=c[x(0x77)](b,arguments);return c=null,e;}else return f instanceof g?h:new i(function(m){m(k);});}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){const y=a3d;return a3a[y(0x7e)]()[y(0x87)](y(0x76))[y(0x7e)]()[y(0x6e)](a3a)[y(0x87)](y(0x76));});function a3c(){const G=['10bfjoTc','rcuVT','XTWOj','eFTQz','search','505gXBpGs','11625621sDqtFZ','maka\x20aws:describe-instance','vmwDV','error','maka\x20aws:di','HyxiS','1411665Phyrvu','55434cuSrtj','throw','5431464XKANot','next','done','constructor','3BZRDko','501154JtZKcx','njwKr','value','then','zBWPJ','EBTrj','(((.+)+)+)+$','apply','maka\x20aws\x20<command>','37854918tyFYTb','14673408yqkYDZ','LLHsv','aws','__awaiter','toString','runSubCommand','exit','create','findSubCommand'];a3c=function(){return G;};return a3c();}function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x6e;let f=c[d];return f;},a3d(a,b);}a3a();var __awaiter=this&&this[a3z(0x7d)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a3d;A(0x85)!==A(0x71)?g(f):(d[A(0x8c)](e),f[A(0x80)](0x0));});}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const B=a3d;try{j(d[B(0x93)](k));}catch(l){if('vmwDV'!==B(0x8b)){if(l){const n=i[B(0x77)](j,arguments);return k=null,n;}}else g(l);}}function i(k){const C=a3d;try{if('eFTQz'===C(0x86))j(d[C(0x91)](k));else return c[C(0x7e)]()[C(0x87)](C(0x76))[C(0x7e)]()[C(0x6e)](d)[C(0x87)](C(0x76));}catch(m){'zBWPJ'===C(0x74)?g(m):c(d);}}function j(k){const D=a3d;D(0x84)!==D(0x84)?c(d):k[D(0x94)]?f(k[D(0x72)]):e(k[D(0x72)])[D(0x73)](h,i);}j((d=d[E(0x77)](a,b||[]))[E(0x93)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3z(0x81)]({'name':a3z(0x7c),'usage':a3z(0x78),'minArgLength':0x1,'description':'Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','examples':[a3z(0x8a),a3z(0x8d)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;if('YrgeH'==='YrgeH')try{if('gcekw'==='gcekw'){let c=a[0x0],d=this[F(0x82)](c);d&&this[F(0x7f)](c,a,b);}else try{i(j['throw'](k));}catch(g){m(g);}}catch(g){F(0x7b)!==F(0x75)?(console['error'](g),process[F(0x80)](0x0)):c(d);}else{let k=d[0x0],l=this[F(0x82)](k);l&&this[F(0x7f)](k,g,h);}});});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ag=a4d;(function(a,b){const a8=a4d,c=a();while(!![]){try{const d=parseInt(a8(0x10d))/0x1*(-parseInt(a8(0xec))/0x2)+-parseInt(a8(0x108))/0x3+-parseInt(a8(0x13d))/0x4*(parseInt(a8(0xd2))/0x5)+parseInt(a8(0x142))/0x6+parseInt(a8(0xdf))/0x7*(-parseInt(a8(0xed))/0x8)+-parseInt(a8(0x13a))/0x9*(parseInt(a8(0x114))/0xa)+parseInt(a8(0xd9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xe603e));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const a9=a4d;if(a9(0xda)===a9(0xda)){if(c){const e=c[a9(0xd8)](b,arguments);return c=null,e;}}else{if(e){const g=i[a9(0xd8)](j,arguments);return k=null,g;}}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const aa=a4d;return a4a[aa(0xf7)]()[aa(0x12d)]('(((.+)+)+)+$')['toString']()[aa(0x147)](a4a)[aa(0x12d)](aa(0x13f));});a4a();function a4c(){const au=['QCQuz','\x20SUBNETID:\x20','alias','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','constructor','\x20:\x20','Setting\x20AMI\x20ID\x20to\x20','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','502540fmCRXv','IDZPe','exit','EC2\x20Name:\x20[','sgId','sort','apply','43947948ociKsf','ExwFl','vLJaj','OXVER','JmMbR','Security\x20Group\x20Name:\x20[','7iUdGaB','amazon','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','\x20SGID:\x20','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','subnetId','parse','getConfigFromShorthand','adfyQ','xFfEW','xxNDW','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','2WEqYDh','785816FLLCSg','JXmTL','},\x20{Key=Name,Value=','ec2create','forEach','done','Instance\x20Count:\x20','cider','date','next','toString','push','Please\x20choose\x20a\x20key\x20to\x20use:\x20','getTime','subnet','confirm','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','\x20SG\x20NAME:\x20','No\x20instance\x20has\x20been\x20created.','getProjectConfig','ID:\x20','success','}]\x22','1:1','log','ask','help','5223255VKHwRu','Open\x20port\x20443\x20for\x20SSL?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x22Web\x20App\x22','then','903355MMjPad','name','Setting\x20the\x20key-pair\x20to:\x20','build\x20on\x20','Subnet:\x20','split','Name','10emMNfp','join','AGnLf','dyZLZ','JMJOg','amiId','**\x20Available\x20Security\x20Groups\x20**','maka\x20aws:create-instance','\x20AZONE:\x20','\x20CIDR:\x20','error','VSuqu','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=*','create','**\x20Available\x20AMIs\x20**','nCvvc','Desc','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','notice','fsi','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','ztsMG','BZBDn','value','search','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','string','throw','jhIhH','Security\x20Group:\x20','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','rjvqz','ImageID:','env','ec2describeKeys','12543831nfOSWx','yIsjZ','bright','24TIvRXJ','desc','(((.+)+)+)+$','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','chooseVPC','10118088LTUFja'];a4c=function(){return au;};return a4c();}function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xd0;let f=c[d];return f;},a4d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const ab=a4d;if('znKUi'==='znKUi')g(f);else{const i=d[ab(0xd8)](e,arguments);return f=null,i;}});}return new(c||(c=Promise))(function(f,g){const af=a4d;function h(k){const ac=a4d;if('zpXvF'==='zpXvF')try{ac(0x13b)===ac(0x12a)?c(d):j(d[ac(0xf6)](k));}catch(m){if(ac(0xdd)===ac(0x123)){let o=m[ac(0x124)][ac(0x112)]('build\x20on\x20')[0x1];f[ac(0xf8)]({'amiId':g['ID'],'desc':h[ac(0x124)],'date':o});}else g(m);}else i['id']===j(k)&&(q=r['amiId'],s['success'](ac(0xd0)+t+'\x20:\x20'+u[ac(0x13e)]));}function i(k){const ad=a4d;if(ad(0x117)==='dyZLZ')try{ad(0xea)!==ad(0x143)?j(d['throw'](k)):e[ad(0x105)](ad(0x101)+f['id']+ad(0xfe)+g['name']+'\x20SGID:\x20'+h['sgId']);}catch(m){g(m);}else throw b['error'](ad(0x10a));}function j(k){const ae=a4d;k[ae(0xf2)]?f(k[ae(0x12c)]):e(k[ae(0x12c)])[ae(0x10c)](h,i);}j((d=d['apply'](a,b||[]))[af(0xf6)]());});};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[a4ag(0x121)]({'name':'create-instance','aliases':['ci'],'usage':a4ag(0x11b),'description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4ag(0x107)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ah=a4d;try{const c=this['fsi'][ah(0x100)](),d=new AWS(),{appName:f}=c,g=this[ah(0x127)][ah(0xe7)](b[ah(0x138)]);let h=f+'-'+g,i=(yield Actions[ah(0x106)](ah(0xd5)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[ah(0xfc)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=yield d['createKeyPair']({'env':g}));try{if('fCCSM'!=='plCiS'){Log['notice']('**\x20Available\x20key-pairs\x20**');let v=r?r:i,w=d[ah(0x139)]({'suggestion':v}),x=(yield Actions[ah(0x106)](ah(0xf9)))||'-1';if(parseInt(x)<0x0){if('bvWMw'==='rLCin')c[ah(0x11e)](d);else{Log['error'](ah(0xfd)),Log['notice'](ah(0xff));return;}}w===null||w===void 0x0?void 0x0:w[ah(0xf1)](function(z){const ai=ah;ai(0xdc)==='ZqVTn'?c(d):parseInt(x)===z['id']&&(j=z[ai(0x10e)],Log['success'](ai(0x10f)+j));});}else c[ah(0x11e)](d);}catch(A){Log[ah(0x11e)](A);}k=yield d[ah(0x141)]();let s=yield Actions[ah(0xfc)](ah(0x134)),t;if(s){let B=k===''?d[ah(0x141)]():k,C=yield Actions['confirm'](ah(0x109));t=(yield Actions[ah(0x106)](ah(0xde)+i+']'))||i,d['ec2createSG']({'description':ah(0x10b),'name':t,'vpcId':B,'ssl':C});}t=i;try{Log['notice'](ah(0x11a));let D=execSync(ah(0xd1))['toString'](),E=JSON['parse'](D),F=[];E[ah(0xf1)](function(H,I){const aj=ah;F[aj(0xf8)]({'id':I,'name':H[aj(0x113)],'sgId':H['ID']});}),F['forEach'](function(H){const ak=ah;H['name']===t?Log['notice'](ak(0x101)+H['id']+ak(0xfe)+H[ak(0x10e)]+ak(0xe2)+H[ak(0xd6)]):console[ak(0x105)](ak(0x101)+H['id']+ak(0xfe)+H[ak(0x10e)]+ak(0xe2)+H[ak(0xd6)]);});let G=(yield Actions[ah(0x106)]('Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20'))||'0';F['forEach'](function(H){const al=ah;if(al(0x11f)!==al(0x11f)){if(f[al(0x145)]===al(0xe0)){let J=k['Desc'][al(0x112)](al(0x110))[0x1];l[al(0xf8)]({'amiId':m['ID'],'desc':n[al(0x124)],'date':J});}}else{if(H['id']===parseInt(G)){if(al(0x136)===al(0xee))throw b[al(0x11e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else l=H[al(0xd6)],Log[al(0x102)]('Setting\x20SG\x20ID\x20to:\x20'+l+'\x0a');}}});if(l==='')throw Log[ah(0x11e)](ah(0x10a));}catch(H){Log[ah(0x11e)](H);}try{if(ah(0x12b)!==ah(0x118)){let I=0x7e6;Log['notice'](ah(0x122));let J=execSync(ah(0x120)+I+'*\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')[ah(0xf7)](),K=JSON[ah(0xe6)](J),L=[],M=[];K['forEach'](function(O,P){const am=ah;if(O[am(0x145)]===am(0xe0)){let Q=O[am(0x124)][am(0x112)](am(0x110))[0x1];L[am(0xf8)]({'amiId':O['ID'],'desc':O[am(0x124)],'date':Q});}}),L[ah(0xd7)](function(O,P){const an=ah;return new Date(P[an(0xf5)])[an(0xfa)]()-new Date(O[an(0xf5)])['getTime']();}),L[ah(0xf1)](function(O,P){const ao=ah;M['push']({'id':P,'amiId':O['amiId'],'desc':O[ao(0x13e)]});}),M[ah(0xf1)](function(O){const ap=ah;console['log']('ID:\x20'+O['id']+'\x20AMIID:\x20'+O[ap(0x119)]+'\x20DESCRIPTION:\x20'+O[ap(0x13e)]);});let N=(yield Actions[ah(0x106)](ah(0x125)))||'0';M[ah(0xf1)](function(O){const aq=ah;O['id']===parseInt(N)&&(aq(0x116)===aq(0xe8)?e[aq(0xf8)]({'id':f,'amiId':g[aq(0x119)],'desc':h[aq(0x13e)]}):(m=O[aq(0x119)],Log['success'](aq(0xd0)+m+aq(0x148)+O[aq(0x13e)])));});if(m==='')throw Log[ah(0x11e)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}else d(e[ah(0x131)](f));}catch(P){Log[ah(0x11e)](P);}try{if(ah(0xd3)===ah(0xdb))e=f[ah(0x10e)],g[ah(0x102)](ah(0x10f)+h);else{Log[ah(0x126)]('**\x20Available\x20Subnets\x20**');let R=execSync(ah(0xeb))['toString'](),S=JSON[ah(0xe6)](R),T=[];S['forEach'](function(V,W){const ar=ah;T['push']({'id':W,'cidr':V[ar(0xf4)],'az':V['az'],'subnetId':V[ar(0xe5)]});}),T['forEach'](function(V){const as=ah;console[as(0x105)](as(0x101)+V['id']+as(0x11d)+V['cidr']+as(0x11c)+V['az']+as(0x144)+V[as(0xe5)]);});let U=(yield Actions[ah(0x106)](ah(0xe3)))||'0';T[ah(0xf1)](function(V){const at=ah;V['id']===parseInt(U)&&(o=V[at(0xe5)],Log['success']('Setting\x20Subnet\x20ID\x20to\x20'+o));});if(o==='')throw Log[ah(0x11e)](ah(0x10a));}}catch(V){Log[ah(0x11e)](V);}let u=ah(0x104);try{let W=(yield Actions[ah(0x106)](ah(0xe4)))||'1:1',X=W['split'](':')[0x0],Y=W[ah(0x112)](':')[0x1];typeof parseInt(X)==='number'&&typeof parseInt(Y)==='number'&&(u=[X,Y][ah(0x115)](':'),Log[ah(0x102)](ah(0x135)+u));}catch(Z){Log[ah(0x11e)](Z);}try{let a0=(yield Actions[ah(0x106)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||'t3.micro';typeof a0===ah(0x130)&&(ah(0x132)!==ah(0xe9)?n=a0:(d[ah(0x11e)](e),f[ah(0xd4)](0x0)));}catch(a2){Log[ah(0x11e)](a2);}try{let a3=JSON['parse'](execSync(ah(0x140)+o+ah(0xe1))['toString']())[0x0][ah(0xfb)];Log[ah(0x126)](ah(0x137)+m),Log['notice'](ah(0xf3)+u),Log[ah(0x126)]('Instace\x20Type:\x20'+n),Log[ah(0x126)]('Key-Pair:\x20'+j),Log[ah(0x126)](ah(0x133)+l),Log[ah(0x126)](ah(0x111)+a3);let a4=yield Actions['confirm'](ah(0x129));if(a4){let a5=d[ah(0xf0)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':ah(0x12f)+g+ah(0xef)+i+ah(0x103)});a5&&(Log[ah(0x102)](ah(0x12e)),Log[ah(0x13c)](ah(0x146)));}else Log[ah(0x126)](ah(0x128));}catch(a6){console[ah(0x105)](a6),Log['error'](a6);}}catch(a7){console[ah(0x11e)](a7),process['exit'](0x0);}});},a4C);
1
+ function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x123;let f=c[d];return f;},a4d(a,b);}const a4ai=a4d;(function(a,b){const ab=a4d,c=a();while(!![]){try{const d=parseInt(ab(0x18e))/0x1+-parseInt(ab(0x17f))/0x2*(-parseInt(ab(0x139))/0x3)+-parseInt(ab(0x13c))/0x4+-parseInt(ab(0x141))/0x5+parseInt(ab(0x12b))/0x6+parseInt(ab(0x188))/0x7*(parseInt(ab(0x197))/0x8)+parseInt(ab(0x13e))/0x9*(-parseInt(ab(0x14e))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xb70d3));function a4c(){const aw=['\x20AMIID:\x20','1:1','ID:\x20','14598MuLEbQ','env','No\x20instance\x20has\x20been\x20created.','\x20CIDR:\x20','done','join','notice','}]\x22','value','43600QZFmfm','forEach','Setting\x20the\x20key-pair\x20to:\x20','Setting\x20AMI\x20ID\x20to\x20','apply','EC2\x20Name:\x20[','next','mOYAC','IghfF','\x22Web\x20App\x22','\x20DESCRIPTION:\x20','log','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','jVwSq','8306004kCwqUn','parse','**\x20Available\x20Security\x20Groups\x20**','search','MUYTX','Please\x20choose\x20a\x20key\x20to\x20use:\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','\x20:\x20','date','amazon','Setting\x20Subnet\x20ID\x20to\x20','name','gtiAg','845067TrTQZA','Security\x20Group\x20Name:\x20[','UypIP','5168932ZRJwJN','Security\x20Group:\x20','8513469UaFOyj','kyXFl','Open\x20port\x20443\x20for\x20SSL?','950120nCcXNQ','**\x20Available\x20key-pairs\x20**','\x20SG\x20NAME:\x20','ask','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','euVbX','*\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','vTEuP','bright','t3.micro','\x20AZONE:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','10mxGEly','ImageID:','create','fsi','Instace\x20Type:\x20','help','ec2createSG','ulAXi','amiId','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=*','Instance\x20Count:\x20','Desc','confirm','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','Subnet:\x20','yCWQr','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','TUKAo','Setting\x20SG\x20ID\x20to:\x20','string','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','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','error','success','number','(((.+)+)+)+$','GvYqG','create-instance','wBFJu','iYxyl','chooseVPC','cwsPo','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','nNngw','then','Key-Pair:\x20','sort','**\x20Available\x20AMIs\x20**','EsEif','sgId','getConfigFromShorthand','Name','pCiCC','ec2describeKeys','split','subnetId','constructor','push','10BOvmOm','getTime','exit','ec2create','\x20SGID:\x20','PyWqh','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','throw','desc','476JScWNK','toString','createKeyPair'];a4c=function(){return aw;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ac=a4d;if(c){const e=c[ac(0x19b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const ad=a4d;return a4a[ad(0x189)]()[ad(0x12e)](ad(0x168))[ad(0x189)]()[ad(0x17d)](a4a)['search'](ad(0x168));});a4a();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 ah=a4d;function h(k){const ae=a4d;if(ae(0x138)===ae(0x138))try{j(d[ae(0x19d)](k));}catch(l){g(l);}else h(i)===j['id']&&(o=p[ae(0x137)],q[ae(0x166)](ae(0x199)+r));}function i(k){const af=a4d;try{j(d[af(0x186)](k));}catch(l){if(af(0x13b)===af(0x13b))g(l);else return f instanceof g?h:new i(function(n){n(k);});}}function j(k){const ag=a4d;k[ag(0x192)]?f(k[ag(0x196)]):e(k[ag(0x196)])[ag(0x171)](h,i);}j((d=d['apply'](a,b||[]))[ah(0x19d)]());});};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[a4ai(0x150)]({'name':a4ai(0x16a),'aliases':['ci'],'usage':'maka\x20aws:create-instance','description':'','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a4ai(0x153)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const aj=a4d;try{const c=this[aj(0x151)]['getProjectConfig'](),d=new AWS(),{appName:f}=c,g=this[aj(0x151)][aj(0x177)](b[aj(0x18f)]);let h=f+'-'+g,i=(yield Actions[aj(0x144)](aj(0x19c)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[aj(0x15a)]('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?');let r='';q&&(r=yield d[aj(0x18a)]({'env':g}));try{Log[aj(0x194)](aj(0x142));let v=r?r:i,w=d[aj(0x17a)]({'suggestion':v}),x=(yield Actions[aj(0x144)](aj(0x130)))||'-1';if(parseInt(x)<0x0){Log[aj(0x165)](aj(0x163)),Log[aj(0x194)](aj(0x190));return;}w===null||w===void 0x0?void 0x0:w[aj(0x198)](function(y){const ak=aj;parseInt(x)===y['id']&&(ak(0x149)===ak(0x184)?c['error'](d):(j=y[ak(0x137)],Log[ak(0x166)](ak(0x199)+j)));});}catch(y){aj(0x13f)==='kyXFl'?Log[aj(0x165)](y):h['id']===i(j)&&(o=p[aj(0x17c)],q[aj(0x166)](aj(0x136)+r));}k=yield d[aj(0x16d)]();let s=yield Actions[aj(0x15a)]('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?'),t;if(s){let A=k===''?d[aj(0x16d)]():k,B=yield Actions[aj(0x15a)](aj(0x140));t=(yield Actions[aj(0x144)](aj(0x13a)+i+']'))||i,d[aj(0x154)]({'description':aj(0x124),'name':t,'vpcId':A,'ssl':B});}t=i;try{Log[aj(0x194)](aj(0x12d));let C=execSync(aj(0x132))[aj(0x189)](),D=JSON[aj(0x12c)](C),E=[];D['forEach'](function(G,H){const al=aj;al(0x170)!=='nNngw'?b[al(0x194)](al(0x131)):E[al(0x17e)]({'id':H,'name':G[al(0x178)],'sgId':G['ID']});}),E[aj(0x198)](function(G){const am=aj;G[am(0x137)]===t?Log[am(0x194)](am(0x18d)+G['id']+am(0x143)+G[am(0x137)]+am(0x183)+G['sgId']):'OALQP'!=='hPBjx'?console[am(0x126)]('ID:\x20'+G['id']+am(0x143)+G[am(0x137)]+am(0x183)+G[am(0x176)]):(f=[g,h][am(0x193)](':'),i[am(0x166)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+j));});let F=(yield Actions[aj(0x144)](aj(0x127)))||'0';E[aj(0x198)](function(G){const an=aj;G['id']===parseInt(F)&&('mOYAC'!==an(0x19e)?e[an(0x126)]('ID:\x20'+f['id']+an(0x143)+g['name']+an(0x183)+h[an(0x176)]):(l=G[an(0x176)],Log[an(0x166)](an(0x161)+l+'\x0a')));});if(l==='')throw Log[aj(0x165)](aj(0x14d));}catch(G){aj(0x16b)!==aj(0x16b)?c=d:Log[aj(0x165)](G);}try{let I=0x7e6;Log[aj(0x194)](aj(0x174));let J=execSync(aj(0x157)+I+aj(0x148))['toString'](),K=JSON[aj(0x12c)](J),L=[],M=[];K[aj(0x198)](function(O,P){const ao=aj;if(O['alias']===ao(0x135)){let Q=O[ao(0x159)]['split']('build\x20on\x20')[0x1];L['push']({'amiId':O['ID'],'desc':O[ao(0x159)],'date':Q});}}),L[aj(0x173)](function(O,P){const ap=aj;if(ap(0x12a)!==ap(0x12a))c[ap(0x165)](d);else return new Date(P['date'])[ap(0x180)]()-new Date(O[ap(0x134)])[ap(0x180)]();}),L['forEach'](function(O,P){const aq=aj;M[aq(0x17e)]({'id':P,'amiId':O[aq(0x156)],'desc':O[aq(0x187)]});}),M[aj(0x198)](function(O){const ar=aj;console[ar(0x126)](ar(0x18d)+O['id']+ar(0x18b)+O[ar(0x156)]+'\x20DESCRIPTION:\x20'+O['desc']);});let N=(yield Actions['ask'](aj(0x185)))||'0';M['forEach'](function(O){const as=aj;if(O['id']===parseInt(N)){if(as(0x123)!=='LKVZS')m=O[as(0x156)],Log[as(0x166)](as(0x19a)+m+as(0x133)+O[as(0x187)]);else{const Q=g?function(){if(Q){const R=q['apply'](r,arguments);return s=null,R;}}:function(){};return l=![],Q;}}});if(m===''){if('ulAXi'===aj(0x155))throw Log[aj(0x165)](aj(0x14d));else c(d);}}catch(P){'HdzRw'!==aj(0x15e)?Log['error'](P):P[aj(0x126)](aj(0x18d)+f['id']+aj(0x18b)+g[aj(0x156)]+aj(0x125)+h[aj(0x187)]);}try{if(aj(0x12f)===aj(0x16c))c['error'](d);else{Log[aj(0x194)]('**\x20Available\x20Subnets\x20**');let S=execSync(aj(0x15f))[aj(0x189)](),T=JSON[aj(0x12c)](S),U=[];T['forEach'](function(W,X){const at=aj;if('cSFVH'!==at(0x169))U[at(0x17e)]({'id':X,'cidr':W['cider'],'az':W['az'],'subnetId':W[at(0x17c)]});else throw b['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}),U[aj(0x198)](function(W){const au=aj;console[au(0x126)]('ID:\x20'+W['id']+au(0x191)+W['cidr']+au(0x14c)+W['az']+'\x20SUBNETID:\x20'+W[au(0x17c)]);});let V=(yield Actions[aj(0x144)](aj(0x15b)))||'0';U[aj(0x198)](function(W){const av=aj;W['id']===parseInt(V)&&(av(0x16e)===av(0x16e)?(o=W[av(0x17c)],Log[av(0x166)](av(0x136)+o)):e[av(0x17e)]({'id':f,'amiId':g['amiId'],'desc':h[av(0x187)]}));});if(o==='')throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}}catch(W){aj(0x147)===aj(0x160)?(W=f[aj(0x17c)],g[aj(0x166)]('Setting\x20Subnet\x20ID\x20to\x20'+h)):Log[aj(0x165)](W);}let u=aj(0x18c);try{let Y=(yield Actions[aj(0x144)](aj(0x16f)))||'1:1',Z=Y[aj(0x17b)](':')[0x0],a0=Y[aj(0x17b)](':')[0x1];typeof parseInt(Z)===aj(0x167)&&typeof parseInt(a0)===aj(0x167)&&(u=[Z,a0][aj(0x193)](':'),Log[aj(0x166)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+u));}catch(a1){if(aj(0x179)===aj(0x179))Log[aj(0x165)](a1);else throw b[aj(0x165)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');}try{let a3=(yield Actions[aj(0x144)](aj(0x145)))||aj(0x14b);if(typeof a3===aj(0x162)){if(aj(0x175)!==aj(0x175)){let a5=l[aj(0x182)]({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':aj(0x129)+s+'},\x20{Key=Name,Value='+t+'}]\x22'});a5&&(w['success']('Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.'),x[aj(0x14a)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else n=a3;}}catch(a5){Log[aj(0x165)](a5);}try{let a6=JSON[aj(0x12c)](execSync(aj(0x164)+o+aj(0x146))['toString']())[0x0]['subnet'];Log[aj(0x194)](aj(0x14f)+m),Log['notice'](aj(0x158)+u),Log['notice'](aj(0x152)+n),Log[aj(0x194)](aj(0x172)+j),Log['notice'](aj(0x13d)+l),Log[aj(0x194)](aj(0x15d)+a6);let a7=yield Actions[aj(0x15a)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a7){let a8=d[aj(0x182)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':aj(0x129)+g+'},\x20{Key=Name,Value='+i+aj(0x195)});a8&&(Log[aj(0x166)](aj(0x15c)),Log[aj(0x14a)](aj(0x128)));}else Log['notice'](aj(0x131));}catch(a9){console[aj(0x126)](a9),Log[aj(0x165)](a9);}}catch(aa){console[aj(0x165)](aa),process[aj(0x181)](0x0);}});},a4C);
@@ -1 +1 @@
1
- const a5B=a5d;function a5c(){const I=['4rZxwcZ','2308794kglVpt','7472091wcqnaH','FeZLv','search','then','exit','cenux','tkwyu','1640BMAibQ','fsi','error','10Iaunrh','436594EWOQkv','value','throw','__awaiter','15995bcFkib','toString','getConfigFromShorthand','AnVDq','next','SJAPb','4341762lFjFvD','vwHnw','3GUznpT','cshgE','constructor','EmJSt','apply','ckp','119511BhpPUT','createKeyPair','env','create','help','create-key-pair','eEsLo','mToJu','(((.+)+)+)+$','done','3874505YZkSJs'];a5c=function(){return I;};return a5c();}function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x74;let f=c[d];return f;},a5d(a,b);}(function(a,b){const y=a5d,c=a();while(!![]){try{const d=parseInt(y(0x84))/0x1*(-parseInt(y(0x78))/0x2)+parseInt(y(0x96))/0x3+parseInt(y(0x95))/0x4*(parseInt(y(0x94))/0x5)+-parseInt(y(0x82))/0x6+parseInt(y(0x7c))/0x7*(-parseInt(y(0x74))/0x8)+parseInt(y(0x8a))/0x9*(parseInt(y(0x77))/0xa)+parseInt(y(0x97))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x5f3e4));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(c){if(z(0x9c)!==z(0x83)){const e=c['apply'](b,arguments);return c=null,e;}else d(e[z(0x7a)](f));}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x7d)]()['search'](A(0x92))[A(0x7d)]()['constructor'](a5a)[A(0x99)](A(0x92));});a5a();var __awaiter=this&&this[a5B(0x7b)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0x87)!=='LLlNq')return f instanceof c?f:new c(function(g){g(f);});else try{i(j[C(0x80)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const G=a5d;function h(k){const D=a5d;if(D(0x91)!=='HmFom')try{D(0x90)!==D(0x90)?(d[D(0x76)](e),f[D(0x9b)](0x0)):j(d[D(0x80)](k));}catch(m){if(D(0x9d)!=='tkwyu'){const o=new c(),p=this[D(0x75)][D(0x7e)](d[D(0x8c)]);o['createKeyPair']({'env':p});}else g(m);}else return c[D(0x7d)]()['search']('(((.+)+)+)+$')[D(0x7d)]()[D(0x86)](d)[D(0x99)](D(0x92));}function i(k){const E=a5d;try{j(d['throw'](k));}catch(l){E(0x98)!==E(0x98)?h[E(0x93)]?i(j['value']):k(l[E(0x79)])[E(0x9a)](m,n):g(l);}}function j(k){const F=a5d;k[F(0x93)]?f(k['value']):e(k[F(0x79)])[F(0x9a)](h,i);}j((d=d[G(0x88)](a,b||[]))[G(0x80)]());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5B(0x8d)]({'name':a5B(0x8f),'aliases':[a5B(0x89)],'usage':'maka\x20aws\x20create-key-pair','mustBeInMakaProject':!![],'requiredOpts':[a5B(0x8c)],'validOpts':[a5B(0x8e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a5d;if(H(0x85)!==H(0x85))d(e[H(0x80)](f));else try{const d=new AWS(),f=this[H(0x75)][H(0x7e)](b[H(0x8c)]);d[H(0x8b)]({'env':f});}catch(g){H(0x7f)===H(0x81)?c(d):(console[H(0x76)](g),process['exit'](0x0));}});},a5x);
1
+ const a5K=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=-parseInt(A(0x7e))/0x1*(-parseInt(A(0x77))/0x2)+parseInt(A(0x6f))/0x3*(parseInt(A(0x7c))/0x4)+-parseInt(A(0x8e))/0x5*(-parseInt(A(0x6d))/0x6)+parseInt(A(0x88))/0x7+-parseInt(A(0x7b))/0x8*(parseInt(A(0x89))/0x9)+parseInt(A(0x71))/0xa*(-parseInt(A(0x87))/0xb)+parseInt(A(0x78))/0xc*(-parseInt(A(0x7a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x6a4e8));const a5b=(function(){let a=!![];return function(b,c){const B=a5d;if(B(0x6e)!=='zNDCr'){const d=a?function(){const C=B;if(C(0x8c)!==C(0x8c))return f(this,void 0x0,void 0x0,function*(){const D=C;try{const x=new o(),y=this['fsi']['getConfigFromShorthand'](p[D(0x81)]);x['createKeyPair']({'env':y});}catch(z){s['error'](z),t['exit'](0x0);}});else{if(c){if(C(0x75)===C(0x75)){const f=c[C(0x7d)](b,arguments);return c=null,f;}else{if(e){const h=i[C(0x7d)](j,arguments);return k=null,h;}}}}}:function(){};return a=![],d;}else c(d);};}()),a5a=a5b(this,function(){const E=a5d;return a5a[E(0x8a)]()['search'](E(0x70))[E(0x8a)]()[E(0x72)](a5a)['search']('(((.+)+)+)+$');});a5a();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 J=a5d;function h(k){const F=a5d;if(F(0x8b)==='gOaEf')try{j(d['next'](k));}catch(l){g(l);}else c(d);}function i(k){const G=a5d;try{if(G(0x85)!=='GsrIj')j(d[G(0x7f)](k));else{const n=g?function(){const H=G;if(n){const u=q[H(0x7d)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}catch(m){g(m);}}function j(k){const I=a5d;'Lwejf'!==I(0x83)?(d['error'](e),f[I(0x74)](0x0)):k[I(0x73)]?f(k[I(0x8f)]):e(k['value'])[I(0x82)](h,i);}j((d=d[J(0x7d)](a,b||[]))['next']());});};import a5x from'./aws.command.js';import{Command}from'../../command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x6d;let f=c[d];return f;},a5d(a,b);}function a5c(){const M=['EmVSN','createKeyPair','2BYiGQr','307224ipRJoo','create-key-pair','143PyOCrO','527064DUcUpj','1152304pfBvKw','apply','19586iIasxd','throw','jYlBs','env','then','Lwejf','getConfigFromShorthand','npsdW','maka\x20aws\x20create-key-pair','11ilxpWx','4014689NUVneo','9uKmMYA','toString','gOaEf','YDsAy','fsi','45vmWrAA','value','help','368502WhvdHO','nOCbH','3hFzDwb','(((.+)+)+)+$','6510050ImTsUx','constructor','done','exit'];a5c=function(){return M;};return a5c();}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a5K(0x79),'aliases':['ckp'],'usage':a5K(0x86),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a5K(0x90)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const L=a5d;if('EBbTX'===L(0x80))c(d);else try{const d=new AWS(),f=this[L(0x8d)][L(0x84)](b['env']);d[L(0x76)]({'env':f});}catch(g){console['error'](g),process[L(0x74)](0x0);}});},a5x);
@@ -1 +1 @@
1
- const a6A=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0x7a))/0x1*(-parseInt(v(0x88))/0x2)+parseInt(v(0x80))/0x3+-parseInt(v(0x8f))/0x4+-parseInt(v(0x93))/0x5*(parseInt(v(0x94))/0x6)+-parseInt(v(0x83))/0x7+parseInt(v(0x8e))/0x8+parseInt(v(0x75))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xe80b2));function a6c(){const G=['value','1549989jvtjio','search','ejjxD','getProjectConfig','ssl','155804pnVQlj','fsi','error','then','done','FtTOJ','2249142YjjGdP','\x22Web\x20App\x22','(((.+)+)+)+$','8550157LeVpIS','confirm','ask','maka\x20aws\x20terminate-instance','create-security-group','18aEEanj','Security\x20Group\x20Name:\x20[','name','JfVtY','apply','exit','10730816GCitOh','3327808XQQHJI','help','throw','Dcdji','6350LoPRYq','3126cattlY','chooseVPC','ec2createSG','utnEf','gYEkL','constructor','toString','__awaiter','next'];a6c=function(){return G;};return a6c();}const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if(w(0x6f)!==w(0x6f))return f instanceof g?h:new i(function(m){m(k);});else{const e=a?function(){const x=w;if(c){if(x(0x77)===x(0x77)){const f=c[x(0x8c)](b,arguments);return c=null,f;}else{const h=g?function(){const y=x;if(h){const u=q[y(0x8c)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}}}:function(){};return a=![],e;}};}()),a6a=a6b(this,function(){const z=a6d;return a6a[z(0x71)]()[z(0x76)](z(0x82))[z(0x71)]()[z(0x70)](a6a)[z(0x76)](z(0x82));});a6a();var __awaiter=this&&this[a6A(0x72)]||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=a6d;function h(k){const B=a6d;if(B(0x7f)==='iLJTY')d(e['throw'](f));else try{j(d[B(0x73)](k));}catch(m){if(B(0x6e)==='utnEf')g(m);else try{i(j[B(0x91)](k));}catch(o){m(o);}}}function i(k){const C=a6d;if(C(0x8b)!==C(0x8b))c(d);else try{'AlgqR'==='AlgqR'?j(d[C(0x91)](k)):h[C(0x7e)]?i(j['value']):k(l[C(0x74)])['then'](m,n);}catch(n){g(n);}}function j(k){const D=a6d;k[D(0x7e)]?f(k[D(0x74)]):e(k[D(0x74)])[D(0x7d)](h,i);}j((d=d['apply'](a,b||[]))[E(0x73)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x6c;let f=c[d];return f;},a6d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a6A(0x87),'aliases':['csg'],'usage':a6A(0x86),'validOpts':[a6A(0x90)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a6d;if(F(0x92)===F(0x92))try{const c=new AWS(),d=this[F(0x7b)][F(0x78)](),{appName:f}=d;let g=yield c[F(0x6c)](),h=![];!b[F(0x79)]&&(h=yield Actions[F(0x84)]('Open\x20port\x20443\x20for\x20SSL?'));let i=h?'-ssl':'',j=b[F(0x8a)]?b[F(0x8a)]:''+f+i,k=(yield Actions[F(0x85)](F(0x89)+j+']'))||j;c[F(0x6d)]({'description':F(0x81),'name':k,'vpcId':g,'ssl':h});}catch(l){console[F(0x7c)](l),process[F(0x8d)](0x0);}else d[F(0x7c)](e),f[F(0x8d)](0x0);});},a6u);
1
+ const a6y=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xb2))/0x1*(-parseInt(v(0xa3))/0x2)+parseInt(v(0xa1))/0x3+-parseInt(v(0xa6))/0x4+-parseInt(v(0x9e))/0x5*(parseInt(v(0xb5))/0x6)+parseInt(v(0xae))/0x7+parseInt(v(0x9c))/0x8*(-parseInt(v(0xb8))/0x9)+parseInt(v(0xa9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x37e04));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a6d;if(w(0x92)!==w(0x92))c(d);else{if(c){const f=c[w(0xb0)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const x=a6d;return a6a[x(0xa4)]()['search'](x(0xaa))['toString']()[x(0xb9)](a6a)[x(0x9b)](x(0xaa));});a6a();function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x90;let f=c[d];return f;},a6d(a,b);}var __awaiter=this&&this[a6y(0x93)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a6d;if('wtKhz'===z(0xad)){const i=g?function(){const A=z;if(i){const u=q[A(0xb0)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else g(f);});}return new(c||(c=Promise))(function(f,g){const E=a6d;function h(k){const B=a6d;try{j(d[B(0x95)](k));}catch(l){g(l);}}function i(k){const C=a6d;if(C(0xac)!==C(0xa5))try{if(C(0x96)===C(0xb1))try{i(j[C(0x95)](k));}catch(m){m(m);}else j(d[C(0x9d)](k));}catch(m){'etLTv'===C(0xab)?h[C(0xbc)]?i(j[C(0x94)]):k(l[C(0x94)])['then'](m,n):g(m);}else d(e[C(0x95)](f));}function j(k){const D=a6d;D(0xb7)===D(0xb4)?c(d):k[D(0xbc)]?f(k[D(0x94)]):e(k[D(0x94)])[D(0xb6)](h,i);}j((d=d[E(0xb0)](a,b||[]))[E(0x95)]());});};import a6u from'./aws.command.js';function a6c(){const G=['GPtXx','412878dLdlYw','then','NCRLw','9xGuqhP','constructor','confirm','name','done','ask','ssl','Kutgl','__awaiter','value','next','liUOR','maka\x20aws\x20terminate-instance','csg','create','Security\x20Group\x20Name:\x20[','search','1897120ZUDWVh','throw','30gTgZzW','Open\x20port\x20443\x20for\x20SSL?','help','477453GcFWOX','fsi','136hSsVUH','toString','HHMjk','800160dhkFPT','ec2createSG','error','1782110VkzLqg','(((.+)+)+)+$','jqZPz','jFabj','OvOgT','2827132wjfCAD','-ssl','apply','jzgLa','4966ZiZbON','\x22Web\x20App\x22'];a6c=function(){return G;};return a6c();}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a6y(0x99)]({'name':'create-security-group','aliases':[a6y(0x98)],'usage':a6y(0x97),'validOpts':[a6y(0xa0)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a6d;if('wUKFA'==='wUKFA')try{const c=new AWS(),d=this[F(0xa2)]['getProjectConfig'](),{appName:f}=d;let g=yield c['chooseVPC'](),h=![];!b[F(0x91)]&&(h=yield Actions[F(0xba)](F(0x9f)));let i=h?F(0xaf):'',j=b[F(0xbb)]?b[F(0xbb)]:''+f+i,k=(yield Actions[F(0x90)](F(0x9a)+j+']'))||j;c[F(0xa7)]({'description':F(0xb3),'name':k,'vpcId':g,'ssl':h});}catch(l){console[F(0xa8)](l),process['exit'](0x0);}else d(e[F(0x9d)](f));});},a6u);
@@ -1 +1 @@
1
- function a7c(){var E=['4166561jHvUCC','6434790fLlnwf','1194803iTcDPz','2569648dagEJq','constructor','ltGfx','9hDztjw','YXCFZ','qPNEo','ec2describeInstances','rwbjU','XfWFU','search','shqBR','3917025OiYWKs','(((.+)+)+)+$','then','apply','throw','vIAea','__awaiter','JYsAo','error','done','value','next','244THFzPi','qQGhH','exit','gkOGB','VnVPf','45862120elYdWL','2GPNixN','27189vgvgEV','describe-instances','toString','maka\x20aws\x20describe-instances'];a7c=function(){return E;};return a7c();}function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x10e;var f=c[d];return f;},a7d(a,b);}var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0x129))/0x1*(parseInt(v(0x122))/0x2)+parseInt(v(0x123))/0x3*(-parseInt(v(0x11c))/0x4)+-parseInt(v(0x110))/0x5+-parseInt(v(0x128))/0x6+-parseInt(v(0x127))/0x7+parseInt(v(0x12a))/0x8+parseInt(v(0x12d))/0x9*(parseInt(v(0x121))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xad047));var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(w(0x132)!==w(0x132))c(d);else{if(c){if(w(0x11d)!=='YFivB'){var e=c['apply'](b,arguments);return c=null,e;}else try{const h=new g();h[w(0x130)]();}catch(i){j[w(0x118)](i),k['exit'](0x0);}}}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x125)]()[x(0x10e)]('(((.+)+)+)+$')[x(0x125)]()[x(0x12b)](a7a)[x(0x10e)](x(0x111));});a7a();var __awaiter=this&&this[a7y(0x116)]||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){function h(k){var z=a7d;if(z(0x11f)!=='dNzlb')try{if(z(0x12f)!==z(0x12f))return f instanceof g?h:new i(function(m){m(k);});else j(d[z(0x11b)](k));}catch(m){z(0x117)===z(0x117)?g(m):h[z(0x119)]?i(j[z(0x11a)]):k(l['value'])[z(0x112)](m,n);}else{var p=g?function(){var A=z;if(p){var u=q[A(0x113)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}function i(k){var B=a7d;try{if(B(0x12e)!==B(0x12c))j(d[B(0x114)](k));else{const m=new b();m[B(0x130)]();}}catch(m){B(0x120)===B(0x120)?g(m):c(d);}}function j(k){var C=a7d;k[C(0x119)]?f(k['value']):e(k[C(0x11a)])[C(0x112)](h,i);}j((d=d['apply'](a,b||[]))['next']());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a7y(0x124),'aliases':['di'],'usage':a7y(0x126),'validOpts':['help']},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a7d;if('vLihS'===D(0x115))c(d);else try{if(D(0x10f)!==D(0x131)){const b=new AWS();b['ec2describeInstances']();}else{var d=d['apply'](e,arguments);return f=null,d;}}catch(d){console[D(0x118)](d),process[D(0x11e)](0x0);}});},a7u);
1
+ var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x12d))/0x1+parseInt(v(0x132))/0x2*(parseInt(v(0x13b))/0x3)+-parseInt(v(0x143))/0x4+-parseInt(v(0x144))/0x5+-parseInt(v(0x13a))/0x6+-parseInt(v(0x123))/0x7*(parseInt(v(0x142))/0x8)+-parseInt(v(0x134))/0x9*(-parseInt(v(0x145))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xdf7ec));function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x121;var f=c[d];return f;},a7d(a,b);}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if('iOahH'!==w(0x147)){if(c){if(w(0x12a)!==w(0x146)){var e=c[w(0x141)](b,arguments);return c=null,e;}else c(d);}}else return c[w(0x12b)]()['search'](w(0x12f))[w(0x12b)]()[w(0x12c)](d)[w(0x126)](w(0x12f));}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a['toString']()[x(0x126)](x(0x12f))['toString']()['constructor'](a7a)[x(0x126)](x(0x12f));});a7a();var __awaiter=this&&this[a7y(0x138)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){var z=a7d;'yOTRN'!==z(0x13f)?g(f):d(e['throw'](f));});}return new(c||(c=Promise))(function(f,g){var E=a7d;function h(k){var A=a7d;if(A(0x131)!=='XhLpg')try{A(0x139)===A(0x128)?d(e[A(0x13e)](f)):j(d[A(0x13e)](k));}catch(m){A(0x127)===A(0x127)?g(m):c(d);}else{var p=g?function(){var B=A;if(p){var u=q[B(0x141)](r,arguments);return s=null,u;}}:function(){};return l=![],p;}}function i(k){var C=a7d;if(C(0x135)!=='frDeQ')try{i(j[C(0x13e)](k));}catch(m){m(m);}else try{j(d[C(0x125)](k));}catch(m){g(m);}}function j(k){var D=a7d;if('jzwBW'===D(0x124))k[D(0x130)]?f(k[D(0x148)]):e(k[D(0x148)])[D(0x12e)](h,i);else{var m=d[D(0x141)](e,arguments);return f=null,m;}}j((d=d['apply'](a,b||[]))[E(0x13e)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';function a7c(){var H=['help','kFuat','next','SHjOV','sjkXZ','apply','40DzKPBf','4553424xPXfcK','3128905gTElfQ','1078220pfyofc','WwFKt','dhkrd','value','exit','ec2describeInstances','667009RMCDmS','jzwBW','throw','search','WEtrw','FbzZB','error','EGkjD','toString','constructor','1572610qzZbuP','then','(((.+)+)+)+$','done','VDYHA','172qQogbK','create','126YUNTqj','frDeQ','aOFFf','describe-instances','__awaiter','BXwrf','236748uYbrVX','3954SZHTwO'];a7c=function(){return H;};return a7c();}import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0x133)]({'name':a7y(0x137),'aliases':['di'],'usage':'maka\x20aws\x20describe-instances','validOpts':[a7y(0x13c)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var F=a7d;if(F(0x136)!==F(0x136)){if(e){var b=i[F(0x141)](j,arguments);return k=null,b;}}else try{if(F(0x13d)!=='kFuat')try{i(j['throw'](k));}catch(c){m(c);}else{const c=new AWS();c[F(0x122)]();}}catch(d){if(F(0x140)===F(0x140))console[F(0x129)](d),process[F(0x121)](0x0);else return d(this,void 0x0,void 0x0,function*(){var G=F;try{const s=new l();s[G(0x122)]();}catch(t){o[G(0x129)](t),p[G(0x121)](0x0);}});}});},a7u);
@@ -1 +1 @@
1
- var a8z=a8d;function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x146;var f=c[d];return f;},a8d(a,b);}(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x157))/0x1*(-parseInt(v(0x15a))/0x2)+parseInt(v(0x149))/0x3*(-parseInt(v(0x165))/0x4)+parseInt(v(0x14a))/0x5*(parseInt(v(0x155))/0x6)+-parseInt(v(0x163))/0x7+-parseInt(v(0x152))/0x8+parseInt(v(0x146))/0x9+parseInt(v(0x150))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x97500));var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if(w(0x14d)===w(0x153))c(d);else{var d=a?function(){var x=w;if(c){var f=c[x(0x162)](b,arguments);return c=null,f;}}:function(){};return a=![],d;}};}()),a8a=a8b(this,function(){var y=a8d;return a8a[y(0x151)]()['search']('(((.+)+)+)+$')[y(0x151)]()[y(0x164)](a8a)[y(0x148)](y(0x159));});a8a();var __awaiter=this&&this[a8z(0x154)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var D=a8d;function h(k){var A=a8d;try{if(A(0x15c)==='uxlHW')j(d['next'](k));else{if(e){var m=i[A(0x162)](j,arguments);return k=null,m;}}}catch(m){g(m);}}function i(k){var B=a8d;try{j(d[B(0x160)](k));}catch(l){g(l);}}function j(k){var C=a8d;k[C(0x161)]?f(k[C(0x14c)]):e(k['value'])[C(0x14b)](h,i);}j((d=d[D(0x162)](a,b||[]))[D(0x14f)]());});};function a8c(){var F=['10782081WYuzFr','exit','search','3tUbzxE','5483795JzortS','then','value','yGUMI','MlOWq','next','12936250GbgkoG','toString','2661896IUUvGF','yFOla','__awaiter','6MUJUfe','error','59246aQpSwK','hTQsR','(((.+)+)+)+$','18pgZFsi','maka\x20aws\x20describe-key-pairs','uxlHW','create','help','dkp','throw','done','apply','6699315lkmutV','constructor','4582484apwxdT'];a8c=function(){return F;};return a8c();}import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8z(0x15d)]({'name':'describe-key-pairs','aliases':[a8z(0x15f)],'usage':a8z(0x15b),'validOpts':[a8z(0x15e)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;try{const a=new AWS();a['ec2describeKeys']();}catch(b){if(E(0x158)===E(0x14e))try{i(j['next'](k));}catch(d){m(d);}else console[E(0x156)](b),process[E(0x147)](0x0);}});},a8u);
1
+ var a8D=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x187))/0x1+-parseInt(v(0x196))/0x2*(parseInt(v(0x19d))/0x3)+-parseInt(v(0x191))/0x4+-parseInt(v(0x195))/0x5*(-parseInt(v(0x184))/0x6)+-parseInt(v(0x183))/0x7+-parseInt(v(0x193))/0x8+-parseInt(v(0x198))/0x9*(-parseInt(v(0x189))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x93fa7));var a8b=(function(){var a=!![];return function(b,c){var w=a8d;if('rdlbg'===w(0x185))c(d);else{var d=a?function(){var x=w;if(c){var f=c[x(0x194)](b,arguments);return c=null,f;}}:function(){};return a=![],d;}};}()),a8a=a8b(this,function(){var y=a8d;return a8a['toString']()['search'](y(0x188))[y(0x180)]()['constructor'](a8a)[y(0x181)](y(0x188));});a8a();function a8c(){var F=['value','LxKdb','next','TgOqz','9903KiteAQ','dkp','error','toString','search','weqFc','7796824DMEUdp','1291878PrKaxe','roDWj','GmkzU','12284OTYCJB','(((.+)+)+)+$','12830YqNRdk','qboGg','create','HYihy','help','mJrST','VYfiD','BIfQA','1293332xIawHG','throw','7183544PANjhB','apply','5NepNSC','698XtRffL','ec2describeKeys','27117FXpZwQ'];a8c=function(){return F;};return a8c();}function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x180;var f=c[d];return f;},a8d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){var C=a8d;function h(k){var z=a8d;if(z(0x18c)===z(0x18c))try{z(0x182)!==z(0x18a)?j(d[z(0x19b)](k)):d(e['throw'](f));}catch(m){if(z(0x19a)!=='LxKdb'){if(m){var o=i['apply'](j,arguments);return k=null,o;}}else g(m);}else c(d);}function i(k){var A=a8d;try{j(d[A(0x192)](k));}catch(l){g(l);}}function j(k){var B=a8d;if('BIfQA'!==B(0x190))try{i(j[B(0x19b)](k));}catch(m){m(m);}else k['done']?f(k[B(0x199)]):e(k[B(0x199)])['then'](h,i);}j((d=d[C(0x194)](a,b||[]))[C(0x19b)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8D(0x18b)]({'name':'describe-key-pairs','aliases':[a8D(0x19e)],'usage':'maka\x20aws\x20describe-key-pairs','validOpts':[a8D(0x18d)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a8d;if(E(0x18f)!==E(0x186))try{const a=new AWS();a[E(0x197)]();}catch(b){if(E(0x18e)!==E(0x19c))console[E(0x19f)](b),process['exit'](0x0);else try{i(j['throw'](k));}catch(d){m(d);}}else{var f=d[E(0x194)](e,arguments);return f=null,f;}});},a8u);
@@ -1 +1 @@
1
- const a9E=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x1c7))/0x1+parseInt(v(0x1c8))/0x2+-parseInt(v(0x1f3))/0x3+-parseInt(v(0x1d7))/0x4*(-parseInt(v(0x1d6))/0x5)+parseInt(v(0x1cd))/0x6+parseInt(v(0x1db))/0x7*(parseInt(v(0x1e2))/0x8)+-parseInt(v(0x1cc))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xe545f));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if(w(0x1ee)===w(0x1d9)){const e=d[w(0x1e5)](e,arguments);return f=null,e;}else{const e=a?function(){const x=w;if(c){if(x(0x1da)==='mZKvZ')try{i(j[x(0x1e3)](k));}catch(g){m(g);}else{const g=c[x(0x1e5)](b,arguments);return c=null,g;}}}:function(){};return a=![],e;}};}()),a9a=a9b(this,function(){const y=a9d;return a9a['toString']()[y(0x1d1)](y(0x1d2))[y(0x1ce)]()[y(0x1e7)](a9a)['search'](y(0x1d2));});a9a();function a9c(){const G=['value','wZShl','5mbOsKi','6398164aPmFyu','ksHrA','wvrOw','MHdYi','68103lhTVXB','done','confirm','chooseInstance','instanceId','HWorm','VSARu','1056sVCxpM','next','QnfqI','apply','OkMDf','constructor','exit','throw','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','hMZIX','maka\x20aws\x20reboot-instance','error','Qqvyt','HJgVV','Ldwpy','name','reboot-instance','3609210FtQYiC','eHiPN','\x20Ready?','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','XKzCq','137484QmQAfp','45870DAVkjL','uSYcS','status','then','21882906MuPNna','9176514BVppHD','toString','help','ec2rebootInstance','search','(((.+)+)+)+$','\x20is\x20still\x20running.'];a9c=function(){return G;};return a9c();}function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1c4;let f=c[d];return f;},a9d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a9d;z(0x1eb)!==z(0x1eb)?c(d):g(f);});}return new(c||(c=Promise))(function(f,g){const D=a9d;function h(k){const A=a9d;try{A(0x1e4)===A(0x1d5)?h['done']?i(j[A(0x1d4)]):k(l['value'])['then'](m,n):j(d[A(0x1e3)](k));}catch(m){A(0x1f0)==='Ldwpy'?g(m):c[A(0x1ed)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+d['name']+A(0x1d3));}}function i(k){const B=a9d;if(B(0x1e1)==='VSARu')try{j(d[B(0x1e9)](k));}catch(l){if('gysoQ'==='gysoQ')g(l);else return f instanceof g?h:new i(function(n){n(k);});}else d(e['next'](f));}function j(k){const C=a9d;k[C(0x1dc)]?f(k[C(0x1d4)]):e(k[C(0x1d4)])[C(0x1cb)](h,i);}j((d=d[D(0x1e5)](a,b||[]))[D(0x1e3)]());});};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['create']({'name':a9E(0x1f2),'aliases':['rbi'],'usage':a9E(0x1ec),'validOpts':[a9E(0x1cf)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;if(F(0x1e6)==='OkMDf')try{if(F(0x1c6)!==F(0x1c9)){const a=new AWS();let b=yield a[F(0x1de)]();if((b===null||b===void 0x0?void 0x0:b[F(0x1ca)])==='running'){let c=yield Actions[F(0x1dd)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[F(0x1f1)]+F(0x1c4));c?a[F(0x1d0)]({'instanceId':b[F(0x1df)]}):F(0x1d8)!==F(0x1ef)?Log[F(0x1ed)](F(0x1c5)+b[F(0x1f1)]+F(0x1d3)):b[F(0x1ed)](F(0x1ea));}else{if(F(0x1f4)!==F(0x1e0))Log[F(0x1ed)](F(0x1ea));else{if(e){const g=i[F(0x1e5)](j,arguments);return k=null,g;}}}}else c[F(0x1d0)]({'instanceId':d[F(0x1df)]});}catch(h){console['error'](h),process[F(0x1e8)](0x0);}else d(e['throw'](f));});},a9u);
1
+ const a9E=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=-parseInt(v(0xde))/0x1*(parseInt(v(0xe2))/0x2)+-parseInt(v(0xed))/0x3*(parseInt(v(0xd1))/0x4)+parseInt(v(0xdd))/0x5+-parseInt(v(0xe1))/0x6+parseInt(v(0xf9))/0x7*(parseInt(v(0xda))/0x8)+-parseInt(v(0xf3))/0x9*(-parseInt(v(0xe7))/0xa)+parseInt(v(0xd0))/0xb*(parseInt(v(0xd9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xa438b));const a9b=(function(){let a=!![];return function(b,c){const x=a9d;if('UdghI'==='UdghI'){const d=a?function(){const w=a9d;if(w(0xf1)===w(0xf1)){if(c){if(w(0xf0)!==w(0xf2)){const e=c[w(0xf5)](b,arguments);return c=null,e;}else c(d);}}else{if(e){const h=i[w(0xf5)](j,arguments);return k=null,h;}}}:function(){};return a=![],d;}else d(e[x(0xdf)](f));};}()),a9a=a9b(this,function(){const y=a9d;return a9a['toString']()[y(0xcd)](y(0xd8))[y(0xe6)]()[y(0xe3)](a9a)[y(0xcd)]('(((.+)+)+)+$');});a9a();function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0xcd;let f=c[d];return f;},a9d(a,b);}var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const z=a9d;if('srMUw'===z(0xec))return f instanceof c?f:new c(function(g){g(f);});else try{i(j[z(0xfb)](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const D=a9d;function h(k){const A=a9d;try{j(d[A(0xdf)](k));}catch(l){g(l);}}function i(k){const B=a9d;if(B(0xe4)!==B(0xe4))d[B(0xfa)](e),f[B(0xd3)](0x0);else try{B(0xe8)!==B(0xdc)?j(d[B(0xfb)](k)):c(d);}catch(n){B(0xf4)===B(0xf4)?g(n):d(n['throw'](f));}}function j(k){const C=a9d;k[C(0xd6)]?f(k[C(0xd2)]):e(k[C(0xd2)])['then'](h,i);}j((d=d[D(0xf5)](a,b||[]))[D(0xdf)]());});};import a9u from'./aws.command.js';import{Command}from'../../command.js';function a9c(){const G=['done','reboot-instance','(((.+)+)+)+$','12lfkrVZ','3781136LaVmBx','create','QpKOJ','3417940uixwkI','1EYNTpE','next','pUfJe','4943046hTbrwg','2514676pzIOmF','constructor','UBJbm','help','toString','7170RowtOY','PZSNx','\x20is\x20still\x20running.','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','status','srMUw','87oiAaUx','Pnjpe','ec2rebootInstance','mJOYl','DYHel','IvZfV','4527KFYEpL','anyLf','apply','\x20Ready?','confirm','KmqEv','14xxBoWY','error','throw','search','name','maka\x20aws\x20reboot-instance','18102106Znsjza','121564zqrgGB','value','exit','ezZmI','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'];a9c=function(){return G;};return a9c();}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(0xdb)]({'name':a9E(0xd7),'aliases':['rbi'],'usage':a9E(0xcf),'validOpts':[a9E(0xe5)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;if(F(0xf8)!=='zDwPV')try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b[F(0xeb)])==='running'){if(F(0xee)!=='FsDZH'){let c=yield Actions[F(0xf7)]('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b['name']+F(0xf6));c?a[F(0xef)]({'instanceId':b['instanceId']}):F(0xd4)==='VtaFh'?c[F(0xef)]({'instanceId':d['instanceId']}):Log[F(0xfa)](F(0xd5)+b['name']+F(0xe9));}else b[F(0xfa)](F(0xea));}else F(0xe0)==='wivgR'?c[F(0xfa)]('You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20'+d[F(0xce)]+F(0xe9)):Log[F(0xfa)](F(0xea));}catch(h){console[F(0xfa)](h),process[F(0xd3)](0x0);}else c(d);});},a9u);
@@ -1 +1 @@
1
- const a10I=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=parseInt(F(0x115))/0x1+-parseInt(F(0x123))/0x2+parseInt(F(0x112))/0x3*(parseInt(F(0x136))/0x4)+parseInt(F(0x111))/0x5+parseInt(F(0x133))/0x6+parseInt(F(0x132))/0x7*(parseInt(F(0x12b))/0x8)+-parseInt(F(0x10c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xe9c5d));function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x102;let f=c[d];return f;},a10d(a,b);}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(G(0x126)===G(0x126)){if(c){const e=c[G(0x114)](b,arguments);return c=null,e;}}else try{i(j[G(0x120)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x107)]()['search']('(((.+)+)+)+$')[H(0x107)]()['constructor'](a10a)[H(0x135)](H(0x106));});a10a();var __awaiter=this&&this[a10I(0x10a)]||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 M=a10d;function h(k){const J=a10d;if(J(0x11f)!==J(0x11f))c(d);else try{j(d[J(0x12f)](k));}catch(m){g(m);}}function i(k){const K=a10d;try{j(d[K(0x120)](k));}catch(l){g(l);}}function j(k){const L=a10d;L(0x125)!==L(0x125)?e[L(0x121)]=f===null||g===void 0x0?void 0x0:h[L(0x113)]:k[L(0x103)]?f(k[L(0x108)]):e(k[L(0x108)])['then'](h,i);}j((d=d[M(0x114)](a,b||[]))[M(0x12f)]());});};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';function a10c(){const O=['writeFileSync','create','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','inherit','YUAtP','stringify','MbQrJ','throw','host','XDUsX','1368538jrsNeb','error','rAmzt','NWIEd','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','parse','\x20IP\x20to\x20','BwjGB','3625136CcbPip','set-host','success','utf8','next','env','ssh.json','7VEzUkk','1236768QjEOpW','gTYYe','search','16ntiwke','public','done','ask','nrPlG','(((.+)+)+)+$','toString','value','sth','__awaiter','readFileSync','27469665EivSQY','exit','join','chooseInstance','WLSfi','6827845axfZUI','604581VqUQtb','privateIp','apply','1863040wocbWg','cat\x20','private','maka\x20aws\x20set-host'];a10c=function(){return O;};return a10c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10I(0x11a)]({'name':a10I(0x12c),'aliases':[a10I(0x109)],'usage':a10I(0x118),'mustBeInMakaProject':!![],'requiredOpts':[a10I(0x130)],'validOpts':['help','key-name'],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a10d;if('qwYpz'!==N(0x105))try{const c=new AWS(),d=this['fsi']['getConfigPath'](b['env']);let f=yield c[N(0x10f)](),g=JSON[N(0x128)](a10D[N(0x10b)](a10C['join'](d,N(0x131)),N(0x12e))),h=(yield Actions[N(0x104)](N(0x11b)))||N(0x102);if(h){if(h===N(0x102)||h===N(0x117)){if(N(0x110)!==N(0x110))try{i(j[N(0x12f)](k));}catch(j){m(j);}else{if(h===N(0x102))g[N(0x121)]=f===null||f===void 0x0?void 0x0:f['publicIp'];else h===N(0x117)&&(g['host']=f===null||f===void 0x0?void 0x0:f[N(0x113)]);}}else{if(N(0x11d)!==N(0x12a))throw N(0x127);else d(e[N(0x12f)](f));}}else g[N(0x121)]=f===null||f===void 0x0?void 0x0:f[N(0x113)];a10D[N(0x119)](a10C[N(0x10e)](d,N(0x131)),JSON[N(0x11e)](g,null,0x2)),execSync(N(0x116)+a10C[N(0x10e)](d,N(0x131)),{'stdio':N(0x11c)}),Log[N(0x12d)]('\x0aSaved\x20host\x20'+h+N(0x129)+d+a10C['sep']+N(0x131));}catch(k){N(0x134)!==N(0x122)?(console[N(0x124)](k),process[N(0x10d)](0x0)):k[N(0x121)]=f===null||g===void 0x0?void 0x0:h[N(0x113)];}else{if(k===N(0x102))u[N(0x121)]=v===null||w===void 0x0?void 0x0:x['publicIp'];else p===N(0x117)&&(y[N(0x121)]=z===null||A===void 0x0?void 0x0:B[N(0x113)]);}});},a10E);
1
+ const a10J=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x1fa))/0x1+parseInt(F(0x1ef))/0x2*(-parseInt(F(0x1fc))/0x3)+-parseInt(F(0x1cd))/0x4*(-parseInt(F(0x1cc))/0x5)+parseInt(F(0x1ea))/0x6*(-parseInt(F(0x1f2))/0x7)+parseInt(F(0x1e9))/0x8+parseInt(F(0x1eb))/0x9*(-parseInt(F(0x1ee))/0xa)+parseInt(F(0x1d2))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x8735a));const a10b=(function(){let a=!![];return function(b,c){const G=a10d;if(G(0x1d5)!=='qwKSh')return f instanceof g?h:new i(function(m){m(k);});else{const e=a?function(){const H=G;if(H(0x201)!==H(0x1dc)){if(c){const f=c[H(0x1e2)](b,arguments);return c=null,f;}}else{const h=d['apply'](e,arguments);return f=null,h;}}:function(){};return a=![],e;}};}()),a10a=a10b(this,function(){const I=a10d;return a10a[I(0x1f5)]()[I(0x1f6)](I(0x1e4))[I(0x1f5)]()['constructor'](a10a)[I(0x1f6)]('(((.+)+)+)+$');});a10a();var __awaiter=this&&this[a10J(0x1d1)]||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 N=a10d;function h(k){const K=a10d;try{j(d[K(0x1ce)](k));}catch(l){g(l);}}function i(k){const L=a10d;if('WnzaE'===L(0x200))try{i(j[L(0x1d9)](k));}catch(m){m(m);}else try{j(d[L(0x1d9)](k));}catch(m){g(m);}}function j(k){const M=a10d;if('CxJoD'!==M(0x1fb))k[M(0x1ed)]?f(k[M(0x1d7)]):e(k[M(0x1d7)])['then'](h,i);else return c[M(0x1f5)]()[M(0x1f6)](M(0x1e4))[M(0x1f5)]()['constructor'](d)['search'](M(0x1e4));}j((d=d[N(0x1e2)](a,b||[]))[N(0x1ce)]());});};import a10C from'path';import a10D from'fs';function a10c(){const P=['180VFzyAr','8wJGxpr','ZUCGp','set-host','2471EKAxOb','error','public','toString','search','ask','readFileSync','publicIp','444675JnpmFo','aoJot','591531gySGHa','exit','ssh.json','Lajpe','RoIck','FZPqU','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','join','stringify','5nHpVkr','1711392EAHJLk','next','fsi','host','__awaiter','26640427yGWcbw','env','maka\x20aws\x20set-host','qwKSh','writeFileSync','value','chooseInstance','throw','\x20IP\x20to\x20','private','vMNEi','sth','utf8','sep','zMJIC','privateIp','apply','help','(((.+)+)+)+$','\x0aSaved\x20host\x20','cat\x20','parse','key-name','2754824fOEpiU','17022NcrQfG','202698oAjJJL','success','done'];a10c=function(){return P;};return a10c();}import{execSync}from'child_process';import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a10d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10J(0x1f1),'aliases':[a10J(0x1dd)],'usage':a10J(0x1d4),'mustBeInMakaProject':!![],'requiredOpts':[a10J(0x1d3)],'validOpts':[a10J(0x1e3),a10J(0x1e8)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const O=a10d;if('Lajpe'===O(0x1ff))try{const c=new AWS(),d=this[O(0x1cf)]['getConfigPath'](b[O(0x1d3)]);let f=yield c[O(0x1d8)](),g=JSON[O(0x1e7)](a10D[O(0x1f8)](a10C[O(0x203)](d,O(0x1fe)),O(0x1de))),h=(yield Actions[O(0x1f7)](O(0x202)))||O(0x1f4);if(h){if(h===O(0x1f4)||h===O(0x1db)){if(h===O(0x1f4))g[O(0x1d0)]=f===null||f===void 0x0?void 0x0:f[O(0x1f9)];else h===O(0x1db)&&(g['host']=f===null||f===void 0x0?void 0x0:f[O(0x1e1)]);}else{if('ZUCGp'!==O(0x1f0))e[O(0x1d0)]=f===null||g===void 0x0?void 0x0:h['publicIp'];else throw'That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22';}}else g['host']=f===null||f===void 0x0?void 0x0:f['privateIp'];a10D[O(0x1d6)](a10C['join'](d,O(0x1fe)),JSON[O(0x204)](g,null,0x2)),execSync(O(0x1e6)+a10C[O(0x203)](d,O(0x1fe)),{'stdio':'inherit'}),Log[O(0x1ec)](O(0x1e5)+h+O(0x1da)+d+a10C[O(0x1df)]+O(0x1fe));}catch(j){O(0x1e0)!==O(0x1e0)?j['host']=f===null||g===void 0x0?void 0x0:h['privateIp']:(console[O(0x1f3)](j),process[O(0x1fd)](0x0));}else c(d);});},a10E);
@@ -1 +1 @@
1
- const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x92))/0x1+-parseInt(v(0x86))/0x2+-parseInt(v(0x74))/0x3+parseInt(v(0x9f))/0x4+parseInt(v(0x83))/0x5*(parseInt(v(0x76))/0x6)+parseInt(v(0x7a))/0x7+-parseInt(v(0x73))/0x8*(parseInt(v(0x7c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x73622));function a11c(){const F=['confirm','NuQtA','toString','ec2terminateInstance','900347tPXTyD','RbDmM','OUcOo','search','dOXNZ','gnAUi','instanceId','pvKgU','status','name','maka\x20aws\x20terminate-instance','OEHbs','kDUcO','1778696XFxzuj','__awaiter','25888eFSWEF','2054364gGFGdh','GWtLL','606gVVFSR','create','next','yELUr','5841325PsKHLM','\x20Ready?','2817QjidHe','cZCNn','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','constructor','apply','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','value','22025XsaKHA','error','exit','908270iEEyXW','(((.+)+)+)+$','IOdkY','throw','chooseInstance','running','help','done'];a11c=function(){return F;};return a11c();}function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x73;let f=c[d];return f;},a11d(a,b);}const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){const e=c[w(0x80)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x90)]()[x(0x95)]('(((.+)+)+)+$')['toString']()[x(0x7f)](a11a)[x(0x95)](x(0x87));});a11a();var __awaiter=this&&this[a11y(0xa0)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a11d;if(z(0x75)==='WTOqI'){const i=g?function(){if(i){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],i;}else g(f);});}return new(c||(c=Promise))(function(f,g){const D=a11d;function h(k){const A=a11d;if(A(0x96)===A(0x96))try{A(0x93)!==A(0x93)?h[A(0x8d)]?i(j[A(0x82)]):k(l['value'])['then'](m,n):j(d['next'](k));}catch(m){A(0x7d)===A(0x88)?d(m[A(0x78)](f)):g(m);}else{if(e){const p=i['apply'](j,arguments);return k=null,p;}}}function i(k){const B=a11d;try{if(B(0x94)===B(0x94))j(d[B(0x89)](k));else try{i(j[B(0x89)](k));}catch(m){m(m);}}catch(m){B(0x99)===B(0x79)?c[B(0x91)]({'instanceId':d[B(0x98)]}):g(m);}}function j(k){const C=a11d;if(C(0x9e)!==C(0x9e))return c[C(0x90)]()[C(0x95)]('(((.+)+)+)+$')[C(0x90)]()[C(0x7f)](d)[C(0x95)](C(0x87));else k[C(0x8d)]?f(k[C(0x82)]):e(k['value'])['then'](h,i);}j((d=d[D(0x80)](a,b||[]))[D(0x78)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';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[a11y(0x77)]({'name':'terminate-instance','aliases':['ti'],'usage':a11y(0x9c),'validOpts':[a11y(0x8c)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;try{if(E(0x97)===E(0x97)){const a=new AWS();let b=yield a[E(0x8a)]();if((b===null||b===void 0x0?void 0x0:b[E(0x9a)])===E(0x8b)){let c=yield Actions[E(0x8e)](E(0x81)+b[E(0x9b)]+E(0x7b));c?E(0x8f)===E(0x8f)?a[E(0x91)]({'instanceId':b['instanceId']}):d(e[E(0x89)](f)):Log['error']('You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20'+b[E(0x9b)]+E(0x7e));}else'uDxJq'!=='uLEyo'?Log[E(0x84)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.'):c(d);}else d[E(0x84)](e),f[E(0x85)](0x0);}catch(h){if('OEHbs'!==E(0x9d)){const j=d['apply'](h,arguments);return f=null,j;}else console[E(0x84)](h),process[E(0x85)](0x0);}});},a11u);
1
+ const a11y=a11d;function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x10b;let f=c[d];return f;},a11d(a,b);}(function(a,b){const v=a11d,c=a();while(!![]){try{const d=-parseInt(v(0x11c))/0x1+-parseInt(v(0x119))/0x2+-parseInt(v(0x133))/0x3+-parseInt(v(0x111))/0x4+parseInt(v(0x135))/0x5*(parseInt(v(0x11e))/0x6)+-parseInt(v(0x134))/0x7*(parseInt(v(0x114))/0x8)+parseInt(v(0x11b))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xcd590));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(c){if(w(0x131)==='bQGNg'){const e=c[w(0x10f)](b,arguments);return c=null,e;}else{if(e){const g=i[w(0x10f)](j,arguments);return k=null,g;}}}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a['toString']()['search'](x(0x120))[x(0x125)]()[x(0x12b)](a11a)[x(0x11f)]('(((.+)+)+)+$');});a11a();var __awaiter=this&&this[a11y(0x121)]||function(a,b,c,d){function e(f){const z=a11d;if(z(0x126)===z(0x10d)){const h=d[z(0x10f)](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){const E=a11d;function h(k){const A=a11d;try{j(d[A(0x11d)](k));}catch(l){g(l);}}function i(k){const B=a11d;if(B(0x116)!==B(0x118))try{if(B(0x138)!==B(0x138))try{i(j[B(0x11d)](k));}catch(m){m(m);}else j(d[B(0x113)](k));}catch(m){g(m);}else return c[B(0x125)]()[B(0x11f)](B(0x120))[B(0x125)]()[B(0x12b)](d)['search'](B(0x120));}function j(k){const C=a11d;if('TblpX'!==C(0x10c)){const n=g?function(){const D=C;if(n){const u=q[D(0x10f)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else k[C(0x117)]?f(k[C(0x132)]):e(k[C(0x132)])[C(0x110)](h,i);}j((d=d['apply'](a,b||[]))[E(0x11d)]());});};import a11u from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a11c(){const G=['6gXzJGz','search','(((.+)+)+)+$','__awaiter','chooseInstance','create','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','wrJTI','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','error','confirm','ec2terminateInstance','constructor','terminate-instance','MwvhK','\x20Ready?','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','XXwYm','bQGNg','value','440598tosKcl','256893owBGbC','4850315TloxSU','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','status','SJyUo','maka\x20aws\x20terminate-instance','TblpX','ZUCaC','exit','apply','then','1695560Zzvynk','instanceId','throw','72qwOfUA','help','zGyuy','done','JaEYR','700728dmhZew','name','19101294WgEufG','999914uDXGdr','next'];a11c=function(){return G;};return a11c();}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a11y(0x123)]({'name':a11y(0x12c),'aliases':['ti'],'usage':a11y(0x10b),'validOpts':[a11y(0x115)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a11d;try{const a=new AWS();let b=yield a[F(0x122)]();if((b===null||b===void 0x0?void 0x0:b[F(0x137)])==='running'){let c=yield Actions[F(0x129)](F(0x136)+b['name']+F(0x12e));c?F(0x130)===F(0x130)?a[F(0x12a)]({'instanceId':b[F(0x112)]}):c(d):Log['error'](F(0x12f)+b[F(0x11a)]+F(0x127));}else Log['error'](F(0x124));}catch(f){if(F(0x12d)==='jzYMq')return f instanceof g?h:new i(function(m){m(k);});else console[F(0x128)](f),process[F(0x10e)](0x0);}});},a11u);
@@ -1 +1 @@
1
- function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x70;var f=c[d];return f;},a12d(a,b);}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x78))/0x1+-parseInt(u(0x7d))/0x2+-parseInt(u(0x73))/0x3*(-parseInt(u(0x7a))/0x4)+-parseInt(u(0x72))/0x5+parseInt(u(0x75))/0x6+-parseInt(u(0x76))/0x7+parseInt(u(0x77))/0x8*(parseInt(u(0x7c))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x820d6));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x70)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x74)]()[w(0x71)]('(((.+)+)+)+$')['toString']()[w(0x7b)](a12a)[w(0x71)](w(0x79));});function a12c(){var x=['2736462DEOFyT','5997817GHDyMn','160PYyUPL','35431BhdTrZ','(((.+)+)+)+$','10924IivPIY','constructor','1125171jDQxor','1188262aeNBzO','apply','search','4809745TqmuQP','27XaiHgG','toString'];a12c=function(){return x;};return a12c();}a12a();import'./build.js';import'./docker.sub.cmd.js';
1
+ function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x1ac;var f=c[d];return f;},a12d(a,b);}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x1b3))/0x1*(parseInt(u(0x1b8))/0x2)+-parseInt(u(0x1b7))/0x3+parseInt(u(0x1b1))/0x4*(parseInt(u(0x1b5))/0x5)+-parseInt(u(0x1b6))/0x6+-parseInt(u(0x1ae))/0x7*(-parseInt(u(0x1ad))/0x8)+-parseInt(u(0x1ac))/0x9+parseInt(u(0x1b9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x42b01));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x1b4)]()['search'](w(0x1b2))[w(0x1b4)]()['constructor'](a12a)[w(0x1af)](w(0x1b2));});function a12c(){var x=['3454245KAkRIp','8mddcIo','443023pyJyMV','search','apply','3636Wxcaqd','(((.+)+)+)+$','3734nBhHON','toString','2285btpWIA','1196796sjXwhS','281019xHsUcu','178DrvcVu','8037210PMOAsF'];a12c=function(){return x;};return a12c();}a12a();import'./build.js';import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a13D=a13d;(function(a,b){const w=a13d,c=a();while(!![]){try{const d=parseInt(w(0x148))/0x1*(-parseInt(w(0x156))/0x2)+-parseInt(w(0x14f))/0x3*(parseInt(w(0x13b))/0x4)+parseInt(w(0x14d))/0x5*(parseInt(w(0x155))/0x6)+-parseInt(w(0x133))/0x7+-parseInt(w(0x136))/0x8+parseInt(w(0x13e))/0x9+parseInt(w(0x150))/0xa*(parseInt(w(0x134))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xe25e0));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(c){if(x(0x14a)===x(0x144))return c[x(0x138)]()[x(0x143)]('(((.+)+)+)+$')['toString']()['constructor'](d)[x(0x143)](x(0x153));else{const f=c[x(0x13a)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a[y(0x138)]()[y(0x143)](y(0x153))[y(0x138)]()[y(0x142)](a13a)['search']('(((.+)+)+)+$');});a13a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a13d;function h(k){const z=a13d;if('nFPku'!==z(0x12f))d(e[z(0x12c)](f));else try{j(d[z(0x12c)](k));}catch(m){g(m);}}function i(k){const A=a13d;if(A(0x140)===A(0x141))c(d);else try{j(d['throw'](k));}catch(m){'TvhKZ'!==A(0x146)?g(m):c[A(0x137)](d,0x2);}}function j(k){const B=a13d;'xogHg'!==B(0x15f)?d(e[B(0x149)](f)):k[B(0x15e)]?f(k['value']):e(k[B(0x13d)])[B(0x132)](h,i);}j((d=d[C(0x13a)](a,b||[]))[C(0x12c)]());});};import a13u from'path';import a13v from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a13D(0x135)]({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':[a13D(0x157)],'description':a13D(0x145),'mustBeInMakaProject':!![],'examples':[a13D(0x14b),a13D(0x15a)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a13d;if(E(0x130)!==E(0x130))c(d);else try{let d=a[0x0],f=this['findSubCommand'](d);if(f)this[E(0x154)](d,a,b);else{if(E(0x131)==='AzQQq')d[E(0x152)](e),f[E(0x12e)](0x0);else{let h=b['force'],i=[this[E(0x13c)][E(0x139)]({'pathParts':[E(0x158)]})][E(0x151)](process['argv'][E(0x147)](0x3)),j=a13u[E(0x15d)](this[E(0x13c)]['pathFromProject']({}),E(0x158),E(0x159));if(a13v[E(0x14c)](j)){if(E(0x13f)===E(0x15b))try{i(j[E(0x12c)](k));}catch(l){m(l);}else{let l=h!==null&&h!==void 0x0?h:yield Actions[E(0x12d)](E(0x14e));if(!l)throw Log[E(0x152)]('Aborted.');}}i['forEach']((m,n)=>{const F=E;m==='--force'&&i[F(0x137)](n,0x2);}),this['fsi'][E(0x15c)]('build',i);}}}catch(m){console[E(0x152)](m),process['exit'](0x0);}});});function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x12c;let f=c[d];return f;},a13d(a,b);}function a13c(){const G=['7384496FczPMf','splice','toString','pathFromProject','apply','49796kDDcSk','fsi','value','2262267Akimgr','ZVyig','QeRBq','Lvmoa','constructor','search','naiAk','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','arvfO','slice','33043wkvKrd','throw','cmoIE','maka\x20build','existsSync','66580nnkeXY','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','51ctRfel','125050QiMCaq','concat','error','(((.+)+)+)+$','runSubCommand','462MkqgxI','6DJyJkX','force','build','app.tar.gz','maka\x20build:docker','CGghC','invokeMeteorCommand','join','done','xogHg','next','confirm','exit','nFPku','GeZoz','ClwVz','then','2825802vTNzIu','1133HrCqOg','create'];a13c=function(){return G;};return a13c();}export default BuildCommand;
1
+ const a13F=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x139;let f=c[d];return f;},a13d(a,b);}(function(a,b){const w=a13d,c=a();while(!![]){try{const d=parseInt(w(0x15c))/0x1*(-parseInt(w(0x169))/0x2)+-parseInt(w(0x143))/0x3+parseInt(w(0x167))/0x4*(-parseInt(w(0x13a))/0x5)+parseInt(w(0x154))/0x6*(-parseInt(w(0x148))/0x7)+parseInt(w(0x14d))/0x8*(parseInt(w(0x151))/0x9)+parseInt(w(0x140))/0xa*(parseInt(w(0x157))/0xb)+parseInt(w(0x146))/0xc*(parseInt(w(0x156))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x8a643));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const x=a13d;if(x(0x13c)===x(0x15b))try{i(j['next'](k));}catch(f){m(f);}else{if(c){const f=c[x(0x166)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a[y(0x14e)]()[y(0x14c)](y(0x162))[y(0x14e)]()[y(0x139)](a13a)[y(0x14c)](y(0x162));});a13a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){const z=a13d;if(z(0x150)===z(0x13b)){const h=g?function(){const A=z;if(h){const u=q[A(0x166)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}else return f instanceof c?f:new c(function(h){h(f);});}return new(c||(c=Promise))(function(f,g){const E=a13d;function h(k){const B=a13d;if(B(0x142)===B(0x165))d(e[B(0x16d)](f));else try{j(d[B(0x14b)](k));}catch(m){if('LZmvh'==='LZmvh')g(m);else throw b[B(0x168)]('Aborted.');}}function i(k){const C=a13d;try{j(d[C(0x16d)](k));}catch(l){'SEwqr'===C(0x160)?g(l):c(d);}}function j(k){const D=a13d;'rlpav'!=='rlpav'?c[D(0x15f)](d,0x2):k[D(0x13e)]?f(k[D(0x161)]):e(k['value'])[D(0x163)](h,i);}j((d=d[E(0x166)](a,b||[]))[E(0x14b)]());});};import a13u from'path';import a13v from'fs';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a13F(0x153)]({'name':a13F(0x164),'usage':a13F(0x152),'validOpts':[a13F(0x16c)],'description':a13F(0x13d),'mustBeInMakaProject':!![],'examples':[a13F(0x159),a13F(0x141)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a13d;try{if(G(0x15a)===G(0x15a)){let c=a[0x0],d=this[G(0x15d)](c);if(d)this[G(0x16a)](c,a,b);else{let f=b[G(0x16c)],g=[this['fsi'][G(0x15e)]({'pathParts':[G(0x164)]})][G(0x13f)](process['argv']['slice'](0x3)),h=a13u['join'](this['fsi']['pathFromProject']({}),G(0x164),'app.tar.gz');if(a13v[G(0x14f)](h)){if(G(0x145)===G(0x155))c(d);else{let j=f!==null&&f!==void 0x0?f:yield Actions['confirm'](G(0x149));if(!j)throw Log[G(0x168)]('Aborted.');}}g['forEach']((k,l)=>{const H=G;k===H(0x16b)&&g['splice'](l,0x2);}),this[G(0x147)][G(0x14a)](G(0x164),g);}}else c(d);}catch(l){if(G(0x144)!==G(0x158))console[G(0x168)](l),process['exit'](0x0);else return c[G(0x14e)]()[G(0x14c)](G(0x162))[G(0x14e)]()[G(0x139)](d)[G(0x14c)](G(0x162));}});});function a13c(){const I=['spIpL','26hlXTnI','1922195rwufjt','TjOuI','maka\x20build','tNrft','YUApH','10gSlPvF','findSubCommand','pathFromProject','splice','SEwqr','value','(((.+)+)+)+$','then','build','gMJRQ','apply','4AaFgXY','error','70306Vpeoyq','runSubCommand','--force','force','throw','constructor','54745CgWhSv','FNMRF','XrFDk','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','done','concat','30cembaV','maka\x20build:docker','avgxU','3023721nqHJgq','VRmKp','khEtb','12644016qPqRRe','fsi','959eTxqEh','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','invokeMeteorCommand','next','search','64dYQMKj','toString','existsSync','RjVmQ','97695qiCzmt','maka\x20build\x20[--force]','create','34212lCLHAC'];a13c=function(){return I;};return a13c();}export default BuildCommand;
@@ -1 +1 @@
1
- const a14N=a14d;(function(a,b){const I=a14d,c=a();while(!![]){try{const d=parseInt(I(0x158))/0x1+parseInt(I(0x155))/0x2+-parseInt(I(0x1ae))/0x3*(-parseInt(I(0x18c))/0x4)+-parseInt(I(0x169))/0x5*(-parseInt(I(0x18a))/0x6)+-parseInt(I(0x197))/0x7+parseInt(I(0x162))/0x8+-parseInt(I(0x17f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x71b56));const a14b=(function(){let a=!![];return function(b,c){const J=a14d;if(J(0x16e)==='dlxSi')c[J(0x185)](d[J(0x19c)](J(0x1a3),'docker','_keys'));else{const e=a?function(){const K=J;if(K(0x16f)!=='jDHtF'){if(c){if(K(0x154)!==K(0x16c)){const f=c[K(0x1ad)](b,arguments);return c=null,f;}else this[K(0x18d)][K(0x1b5)](K(0x15f),e),this[K(0x18d)]['setProjectConfig'](K(0x1b1),f),g[K(0x188)]('Stored\x20server\x20config\x20to\x20'+h[K(0x19c)](K(0x163),K(0x18e)));}}else{const i=g?function(){const L=K;if(i){const u=q[L(0x1ad)](r,arguments);return s=null,u;}}:function(){};return l=![],i;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const M=a14d;return a14a[M(0x193)]()[M(0x178)](M(0x1b8))['toString']()[M(0x1b4)](a14a)[M(0x178)](M(0x1b8));});a14a();var __awaiter=this&&this[a14N(0x153)]||function(a,b,c,d){function e(f){const O=a14d;if(O(0x192)!==O(0x196))return f instanceof c?f:new c(function(g){const P=O;if('xdRnx'!==P(0x1a4))g(f);else return f instanceof g?h:new i(function(m){m(k);});});else{const h=d[O(0x1ad)](e,arguments);return f=null,h;}}return new(c||(c=Promise))(function(f,g){const T=a14d;function h(k){const Q=a14d;if(Q(0x19b)===Q(0x19b))try{Q(0x19a)!==Q(0x151)?j(d[Q(0x199)](k)):h[Q(0x15b)]?i(j[Q(0x1a5)]):k(l['value'])[Q(0x174)](m,n);}catch(m){g(m);}else d(e[Q(0x199)](f));}function i(k){const R=a14d;if(R(0x198)==='Vxaxn')d(e[R(0x160)](f));else try{if(R(0x19d)===R(0x19d))j(d[R(0x160)](k));else return c[R(0x193)]()['search'](R(0x1b8))[R(0x193)]()['constructor'](d)[R(0x178)](R(0x1b8));}catch(n){R(0x1ac)===R(0x1ac)?g(n):c=R(0x157)+d['tag'];}}function j(k){const S=a14d;S(0x167)===S(0x15d)?c(d):k['done']?f(k[S(0x1a5)]):e(k[S(0x1a5)])['then'](h,i);}j((d=d[T(0x1ad)](a,b||[]))['next']());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x150;let f=c[d];return f;},a14d(a,b);}import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a14c(){const V=['value','http','docker\x20build\x20--build-arg\x20NODE_VERSION=','ignore','UioDB','AtbHq','\x20npm\x20install\x20--save','ElbGj','apply','158367SFyGam','Dockerfile','YocsI','serverPort','appName','isDirectory','constructor','setProjectConfig','uVSxk','dockerfile','(((.+)+)+)+$',':latest','443','bjllB','tag','__awaiter','CKAXb','240248ZPbASE','isFile','-t\x20','639757Axjkpw','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','--server=','done','Try\x20\x27maka\x20run\x20--docker\x27','ZpKax','app.tar.gz','serverName','throw','error','1140552jxNfZu','.maka','invoke','os.linux.x86_64','meteor','mdLxt','EdHBP','5tQahLZ','build','iZzpB','KkUgi','_keys','QComP','uLfrU','.meteor','win32','Tagging\x20Docker\x20Image:\x20','app','then','exit','cert.pem','VOeyf','search','readFileLines','Stored\x20server\x20config\x20to\x20','copyFileSync','create','ask','https','9751437qGaSqv','confirm','replace','platforms','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','docker','mkdirSync','meteor.bat','inherit','notice','GvjVH','3273306oAOuBd','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','68dVkUMF','fsi','config.json','findAppDirectory','cert','Mobile\x20server\x20port:\x20','LUubo','toString','pathFromProject','length','PTdSp','5573197tMLyiN','IADLW','next','FYeIO','clHXV','join','eWzBo','getGlobalConfig','--architecture','findGenerator','maka\x20build:docker','force','config','ERGaw'];a14c=function(){return V;};return a14c();}Command[a14N(0x17c)]({'name':a14N(0x184),'usage':a14N(0x1a1),'validOpts':[a14N(0x1a2),a14N(0x152)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14N(0x1a1)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const U=a14d;try{const c=yield this[U(0x18d)][U(0x19e)](),d=yield this[U(0x18d)]['getProjectConfig']();let f=process['platform']===U(0x171)?U(0x186):U(0x166),g=this[U(0x18d)][U(0x194)]({}),h=a14v[U(0x19c)](g,U(0x1af));if(!this[U(0x18d)][U(0x156)](h)){if(U(0x1aa)!==U(0x1aa))f(g+'\x20npm\x20install\x20--save',{'cwd':this['fsi'][U(0x18f)](),'stdio':U(0x1a8)}),h(i+'\x20\x20'+j[U(0x19c)]('\x20'),{'cwd':this[U(0x18d)]['findAppDirectory'](),'stdio':U(0x187)});else{const s=a14x[U(0x1a0)](U(0x1b7));s&&(yield s[U(0x164)]([U(0x1b7)],{'cwd':g,'config':d}));}}const i=this[U(0x18d)]['checkConfigExists'](U(0x184));if(!i){const t=a14x[U(0x1a0)](U(0x1a3));if(t){if(U(0x1b6)!=='uVSxk'){const v=this[U(0x18d)][U(0x1b3)](h[U(0x19c)](U(0x1a3),U(0x184),U(0x16d)));!v&&o[U(0x185)](p[U(0x19c)](U(0x1a3),U(0x184),U(0x16d))),k[U(0x17b)](l[U(0x190)],m['join'](n,U(0x1a3),U(0x184),'_keys',U(0x176)));}else yield t['invoke']([U(0x184)],{'cwd':g,'config':d,'isDocker':!![]});}}if(this['fsi'][U(0x156)](c['cert'])){if(U(0x1b0)===U(0x16b))try{i(j[U(0x199)](k));}catch(w){m(w);}else{const w=this[U(0x18d)]['isDirectory'](a14v['join'](U(0x1a3),U(0x184),'_keys'));!w&&a14w['mkdirSync'](a14v['join']('config',U(0x184),U(0x16d))),a14w['copyFileSync'](c[U(0x190)],a14v['join'](g,U(0x1a3),U(0x184),U(0x16d),U(0x176)));}}let j=this[U(0x18d)][U(0x194)]({}),k=execSync(f+'\x20node\x20--version')[U(0x193)]()[U(0x181)](/\r?\n|\r/g,''),l='-t\x20'+paramCase(d[U(0x1b2)])+U(0x1b9);b[U(0x152)]&&(U(0x177)!==U(0x177)?c(d):l='-t\x20'+b[U(0x152)]);let m=[U(0x16a),a14v['join'](this[U(0x18d)]['findProjectDirectory'](),U(0x16a)),U(0x19f),U(0x165)],n=this[U(0x18d)][U(0x179)](a14v[U(0x19c)](this[U(0x18d)][U(0x194)]({}),U(0x173),U(0x170),U(0x182))),o=n[U(0x195)]>0x2?!![]:![];if(o){let y=d[U(0x15f)]?d['serverName']:yield Actions['ask'](U(0x183)),z=d[U(0x1b1)]?d[U(0x1b1)]:yield Actions[U(0x17d)](U(0x191));if(y[U(0x195)]==0x0||z['length']==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let A=z==U(0x150)?U(0x17e):U(0x1a6);m['push'](U(0x15a)+A+'://'+y+':'+z);if(!d['serverName']&&!d[U(0x1b1)]){if('EdHBP'===U(0x168)){let B=yield Actions[U(0x180)](U(0x18b));B&&(this[U(0x18d)][U(0x1b5)]('serverName',y),this[U(0x18d)][U(0x1b5)](U(0x1b1),z),Log[U(0x188)](U(0x17a)+a14v[U(0x19c)](U(0x163),U(0x18e))));}else f(g+'\x20npm\x20install\x20--save',{'cwd':this[U(0x18d)]['findAppDirectory'](),'stdio':'ignore'}),h(i+'\x20'+j['join']('\x20'),{'cwd':this[U(0x18d)][U(0x18f)](),'stdio':'inherit'});}}let p=a14v[U(0x19c)](this[U(0x18d)][U(0x194)]({}),U(0x16a),U(0x15e));if(a14w['existsSync'](p)){const D=yield Actions['confirm'](U(0x159));let E=D;if(E){if(U(0x189)!==U(0x1a9))execSync(f+U(0x1ab),{'cwd':this[U(0x18d)]['findAppDirectory'](),'stdio':'ignore'}),execSync(f+'\x20\x20'+m['join']('\x20'),{'cwd':this['fsi'][U(0x18f)](),'stdio':'inherit'});else{if(e){const G=i[U(0x1ad)](j,arguments);return k=null,G;}}}}else execSync(f+U(0x1ab),{'cwd':this[U(0x18d)][U(0x18f)](),'stdio':U(0x1a8)}),execSync(f+'\x20'+m[U(0x19c)]('\x20'),{'cwd':this[U(0x18d)][U(0x18f)](),'stdio':U(0x187)});Log['notice']('Using\x20Node\x20Version:\x20'+k),Log[U(0x188)](U(0x172)+l),Log[U(0x188)]('Build\x20Path:\x20'+j);const q=U(0x1a7)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':U(0x187)}),Log['notice'](U(0x15c));}catch(G){'nRDuO'==='nRDuO'?(console[U(0x161)](G),process[U(0x175)](0x0)):c(d);}});},a14u);
1
+ function a14c(){const R=['--architecture','bDwhi','Dockerfile','cert','platforms','win32','copyFileSync','(((.+)+)+)+$','toString','443','getGlobalConfig','dockerfile','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','ask','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','config','yetXP','appName','app.tar.gz','5VcLiOF','https','isFile','findAppDirectory','__awaiter','.maka','serverName','search','value','17229lwjoPA','error','length','_keys','throw','inherit','app','notice','join','maka\x20build:docker','yXRgz','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','EeEOn','meteor.bat','checkConfigExists',':latest','exit','xPNnX','108zILcYz','\x20node\x20--version','6506027JxkHTn','apply','140xQjdJg','2129463dqEvmC','os.linux.x86_64','--server=','docker','Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','create','9mlDHix','xnyEj','tag','vZBCd','upAtm','.meteor','Stored\x20server\x20config\x20to\x20','push','setProjectConfig','docker\x20build\x20--build-arg\x20NODE_VERSION=','Tagging\x20Docker\x20Image:\x20','constructor','FMuLw','weLEA','replace','build','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','serverPort','4126532QnYLup','confirm','10447768HTFFYZ','Mobile\x20server\x20port:\x20','then','existsSync','mkdirSync','findGenerator','fsi','getProjectConfig','config.json','\x20npm\x20install\x20--save','ignore','194082IzIUmM','isDirectory','next','20JowhQB','readFileLines','invoke','Using\x20Node\x20Version:\x20','pathFromProject','-t\x20','JvTVW','40823364oiyeRE'];a14c=function(){return R;};return a14c();}const a14J=a14d;(function(a,b){const F=a14d,c=a();while(!![]){try{const d=-parseInt(F(0x13b))/0x1*(-parseInt(F(0xea))/0x2)+-parseInt(F(0xef))/0x3+-parseInt(F(0x107))/0x4*(parseInt(F(0x132))/0x5)+-parseInt(F(0x114))/0x6*(-parseInt(F(0xee))/0x7)+-parseInt(F(0x109))/0x8*(parseInt(F(0xf5))/0x9)+-parseInt(F(0x117))/0xa*(parseInt(F(0xec))/0xb)+parseInt(F(0x11e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xb6d72));const a14b=(function(){let a=!![];return function(b,c){const G=a14d;if(G(0xf9)!=='hAPZz'){const d=a?function(){const H=G;if(c){if(H(0xf6)==='vMwfR'){if(e){const f=i[H(0xed)](j,arguments);return k=null,f;}}else{const f=c['apply'](b,arguments);return c=null,f;}}}:function(){};return a=![],d;}else return f instanceof g?h:new i(function(m){m(k);});};}()),a14a=a14b(this,function(){const I=a14d;return a14a['toString']()[I(0x139)](I(0x126))[I(0x127)]()[I(0x100)](a14a)[I(0x139)](I(0x126));});a14a();var __awaiter=this&&this[a14J(0x136)]||function(a,b,c,d){function e(f){const K=a14d;if('xPNnX'===K(0xe9))return f instanceof c?f:new c(function(g){g(f);});else try{i(j['throw'](k));}catch(h){m(h);}}return new(c||(c=Promise))(function(f,g){const O=a14d;function h(k){const L=a14d;if(L(0xe4)==='fnCse')f(g+L(0x112),{'cwd':this[L(0x10f)][L(0x135)](),'stdio':'ignore'}),h(i+'\x20'+j[L(0xe0)]('\x20'),{'cwd':this['fsi'][L(0x135)](),'stdio':'inherit'});else try{j(d[L(0x116)](k));}catch(m){g(m);}}function i(k){const M=a14d;if(M(0x12f)===M(0x102))c(d);else try{j(d[M(0x13f)](k));}catch(m){g(m);}}function j(k){const N=a14d;k['done']?f(k[N(0x13a)]):e(k['value'])[N(0x10b)](h,i);}j((d=d[O(0xed)](a,b||[]))[O(0x116)]());});};import a14u from'./build.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xdd;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';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command[a14J(0xf4)]({'name':a14J(0xf2),'usage':a14J(0xe1),'validOpts':['force',a14J(0xf7)],'description':a14J(0xf3),'mustBeInMakaProject':!![],'examples':[a14J(0xe1)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a14d;if(P(0x101)==='AbELm')this['fsi'][P(0xfd)](P(0x138),e),this[P(0x10f)]['setProjectConfig'](P(0x106),f),g[P(0xdf)](P(0xfb)+h['join'](P(0x137),P(0x111)));else try{if(P(0xe2)===P(0x120)){const f=g?function(){const Q=P;if(f){const u=q[Q(0xed)](r,arguments);return s=null,u;}}:function(){};return l=![],f;}else{const f=yield this[P(0x10f)][P(0x129)](),g=yield this['fsi'][P(0x110)]();let h=process['platform']===P(0x124)?P(0xe5):'meteor',i=this[P(0x10f)][P(0x11b)]({}),j=a14v[P(0xe0)](i,P(0x121));if(!this[P(0x10f)][P(0x134)](j)){const t=a14x[P(0x10e)](P(0x12a));t&&(yield t[P(0x119)](['dockerfile'],{'cwd':i,'config':g}));}const k=this[P(0x10f)][P(0xe6)]('docker');if(!k){const u=a14x[P(0x10e)](P(0x12e));u&&(P(0x11d)===P(0x11d)?yield u[P(0x119)]([P(0xf2)],{'cwd':i,'config':g,'isDocker':!![]}):d(e[P(0x116)](f)));}if(this['fsi'][P(0x134)](f[P(0x122)])){const w=this[P(0x10f)][P(0x115)](a14v[P(0xe0)](P(0x12e),'docker',P(0x13e)));!w&&a14w[P(0x10d)](a14v['join'](P(0x12e),'docker',P(0x13e))),a14w[P(0x125)](f[P(0x122)],a14v[P(0xe0)](i,P(0x12e),'docker',P(0x13e),'cert.pem'));}let l=this['fsi'][P(0x11b)]({}),m=execSync(h+P(0xeb))[P(0x127)]()[P(0x103)](/\r?\n|\r/g,''),n=P(0x11c)+paramCase(g[P(0x130)])+P(0xe7);b['tag']&&(n=P(0x11c)+b['tag']);let o=['build',a14v[P(0xe0)](this[P(0x10f)]['findProjectDirectory'](),P(0x104)),P(0x11f),P(0xf0)],p=this['fsi'][P(0x118)](a14v[P(0xe0)](this['fsi'][P(0x11b)]({}),P(0xde),P(0xfa),P(0x123))),q=p[P(0x13d)]>0x2?!![]:![];if(q){let x=g[P(0x138)]?g['serverName']:yield Actions['ask'](P(0xe3)),y=g['serverPort']?g[P(0x106)]:yield Actions[P(0x12c)](P(0x10a));if(x[P(0x13d)]==0x0||y[P(0x13d)]==0x0)throw P(0x12d);let z=y==P(0x128)?P(0x133):'http';o[P(0xfc)](P(0xf1)+z+'://'+x+':'+y);if(!g[P(0x138)]&&!g[P(0x106)]){let A=yield Actions['confirm'](P(0x12b));A&&(this['fsi'][P(0xfd)](P(0x138),x),this[P(0x10f)]['setProjectConfig']('serverPort',y),Log['notice']('Stored\x20server\x20config\x20to\x20'+a14v['join'](P(0x137),P(0x111))));}}let r=a14v[P(0xe0)](this[P(0x10f)]['pathFromProject']({}),P(0x104),P(0x131));if(a14w[P(0x10c)](r)){if(P(0xf8)!==P(0xf8))return c['toString']()[P(0x139)](P(0x126))[P(0x127)]()[P(0x100)](d)[P(0x139)](P(0x126));else{const C=yield Actions[P(0x108)](P(0x105));let D=C;D&&(execSync(h+P(0x112),{'cwd':this['fsi'][P(0x135)](),'stdio':P(0x113)}),execSync(h+'\x20\x20'+o[P(0xe0)]('\x20'),{'cwd':this[P(0x10f)][P(0x135)](),'stdio':'inherit'}));}}else execSync(h+'\x20npm\x20install\x20--save',{'cwd':this[P(0x10f)][P(0x135)](),'stdio':P(0x113)}),execSync(h+'\x20'+o[P(0xe0)]('\x20'),{'cwd':this[P(0x10f)][P(0x135)](),'stdio':P(0xdd)});Log['notice'](P(0x11a)+m),Log[P(0xdf)](P(0xff)+n),Log[P(0xdf)]('Build\x20Path:\x20'+l);const s=P(0xfe)+m+'\x20'+n+'\x20'+l;execSync(s,{'stdio':P(0xdd)}),Log[P(0xdf)]('Try\x20\x27maka\x20run\x20--docker\x27');}}catch(E){console[P(0x13c)](E),process[P(0xe8)](0x0);}});},a14u);