@maka/maka-cli 4.2.0 → 4.2.2

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 (90) hide show
  1. package/dist/command.js +1 -1
  2. package/dist/commands/_index.js +1 -1
  3. package/dist/commands/aws/_index.js +1 -1
  4. package/dist/commands/aws/aws.command.js +1 -1
  5. package/dist/commands/aws/ci.sub.cmd.js +1 -1
  6. package/dist/commands/aws/ckp.sub.cmd.js +1 -1
  7. package/dist/commands/aws/csg.sub.cmd.js +1 -1
  8. package/dist/commands/aws/di.sub.cmd.js +1 -1
  9. package/dist/commands/aws/dks.sub.cmd.js +1 -1
  10. package/dist/commands/aws/rbi.sub.cmd.js +1 -1
  11. package/dist/commands/aws/sth.sub.cmd.js +1 -1
  12. package/dist/commands/aws/ti.sub.cmd.js +1 -1
  13. package/dist/commands/build/_index.js +1 -1
  14. package/dist/commands/build/build.js +1 -1
  15. package/dist/commands/build/docker.sub.cmd.js +1 -1
  16. package/dist/commands/create.js +1 -1
  17. package/dist/commands/debug.js +1 -1
  18. package/dist/commands/deploy.js +1 -1
  19. package/dist/commands/game/_index.js +1 -1
  20. package/dist/commands/game/battleship.sub.cmd.js +1 -1
  21. package/dist/commands/game/play.command.js +1 -1
  22. package/dist/commands/game/pong.sub.cmd.js +1 -1
  23. package/dist/commands/game/snake.sub.cmd.js +1 -1
  24. package/dist/commands/game/tetris.sub.cmd.js +1 -1
  25. package/dist/commands/generate.js +1 -1
  26. package/dist/commands/get/_index.js +1 -1
  27. package/dist/commands/get/get.command.js +1 -1
  28. package/dist/commands/get/global.sub.cmd.js +1 -1
  29. package/dist/commands/get/local.sub.cmd.js +1 -1
  30. package/dist/commands/help.js +1 -1
  31. package/dist/commands/install.js +1 -1
  32. package/dist/commands/jsdoc.js +1 -1
  33. package/dist/commands/login.js +1 -1
  34. package/dist/commands/logout.js +1 -1
  35. package/dist/commands/logs.js +1 -1
  36. package/dist/commands/maka.cmd.js +1 -1
  37. package/dist/commands/murder.js +1 -1
  38. package/dist/commands/proxy.js +1 -0
  39. package/dist/commands/reconfig.js +1 -1
  40. package/dist/commands/run.js +1 -1
  41. package/dist/commands/set/_index.js +1 -1
  42. package/dist/commands/set/global.sub.cmd.js +1 -1
  43. package/dist/commands/set/local.sub.cmd.js +1 -1
  44. package/dist/commands/set/set.command.js +1 -1
  45. package/dist/commands/ssh.js +1 -1
  46. package/dist/commands/ssl.js +1 -1
  47. package/dist/commands/test.js +1 -1
  48. package/dist/commands/version.js +1 -1
  49. package/dist/error.js +1 -1
  50. package/dist/generator.js +1 -1
  51. package/dist/generators/_index.js +1 -1
  52. package/dist/generators/api.js +1 -1
  53. package/dist/generators/collection.js +1 -1
  54. package/dist/generators/component.js +1 -1
  55. package/dist/generators/config.js +1 -1
  56. package/dist/generators/dbc.js +1 -1
  57. package/dist/generators/dockerfile.js +1 -1
  58. package/dist/generators/hook.js +1 -1
  59. package/dist/generators/kit.js +1 -1
  60. package/dist/generators/layout.js +1 -1
  61. package/dist/generators/maka.gen.js +1 -1
  62. package/dist/generators/methods.js +1 -1
  63. package/dist/generators/package.js +1 -1
  64. package/dist/generators/page.js +1 -1
  65. package/dist/generators/publish.js +1 -1
  66. package/dist/generators/route.js +1 -1
  67. package/dist/generators/scaffold.js +1 -1
  68. package/dist/generators/service.js +1 -1
  69. package/dist/generators/services/_index.js +1 -1
  70. package/dist/generators/services/translation.js +1 -1
  71. package/dist/maka.js +1 -1
  72. package/dist/tool.js +1 -1
  73. package/dist/tools/actions/actions.class.js +1 -1
  74. package/dist/tools/actions/actions.test.js +1 -1
  75. package/dist/tools/aws/aws.class.js +1 -1
  76. package/dist/tools/aws/aws.interfaces.js +1 -1
  77. package/dist/tools/docker/docker.class.js +1 -1
  78. package/dist/tools/docker/docker.interfaces.js +1 -1
  79. package/dist/tools/fsi/fsi.class.js +1 -1
  80. package/dist/tools/fsi/fsi.interfaces.js +1 -1
  81. package/dist/tools/https/https.class.js +1 -1
  82. package/dist/tools/https/https.interface.js +1 -1
  83. package/dist/tools/log/log.class.js +1 -1
  84. package/dist/tools/log/log.interfaces.js +1 -1
  85. package/dist/tools/spawn-async/spawn-async.class.js +1 -1
  86. package/dist/tools/spawn-async/spawn-async.interfaces.js +1 -1
  87. package/dist/tools/ssh/ssh.class.js +1 -1
  88. package/dist/tools/ssh/ssh.interfaces.js +1 -1
  89. package/dist/tools/ssl/ssl.class.js +1 -1
  90. package/package.json +1 -1
package/dist/command.js CHANGED
@@ -1 +1 @@
1
- function a0c(){const aj=['proFlags','To\x20use\x20this\x20command,\x20\x22','There\x20is\x20no\x20Meteor\x20application\x20here','Command\x20requires\x20a\x20handler\x20function','CSAql','mOyQk','join','minArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','hEKvB','done','forEach','mxJii','value','splice','includes','match','IWdLo','proCommands','8FMeUBu','7829142rRCQGt','mustHaveMeteorInstalled','Invalid\x20options:\x20','tUKnN','8381403XLDuZY','bind','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','homedir','then','Local','split','90ZlYkNM','_handler','tableList','game','Missing\x20required\x20option:\x20','bright','call','push','MTVXN','notice','To\x20use\x20these\x20pro\x20flags,\x20\x22','LIuFt','keys','VNTcs','goOwj','trialExpirationDate','validateMakaProject','5eWJjIF','Command\x20not\x20found','267829nVsxsn','.meteor','throw','3237986tQSnYm','validateParams','name','akrEU','2306810PxolMT','RzCOz','getPro','maxOptsLength','Btdlv','QZWxO','roles','fGOol','toString','crziP','options','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','oSnTD','singleLicense','constructor','sort','murder','XdFtC','error','aliases','CgckE','fsi','examples','description','findProjectDirectory','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','Commands:','function','trialActive','Wrrkj','number','BBqYU','findCommand','apply','Too\x20many\x20arguments','Name','next','pGknO','9pHWaal','validateMakaSubscription','minOptsLength','usage','Too\x20few\x20options','assign','fiPUu','otVUV','Command.create\x20requires\x20some\x20options!','mustBeInMakaProject','aYUdc','invoke','Too\x20many\x20options','exit','_commands','dcEkg','find','UTmSR','(((.+)+)+)+$','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','EBHiY','Alias','length','Too\x20few\x20arguments','4022417Dqwxtn','BtksQ','__awaiter','HdztA','filter','deploy','zhdFg','No\x20description\x20provided.','XwSqL','parent','runSubCommand','Missing\x20required\x20options\x20','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','validateMeteorInstall','win32','concat','addCommand\x20requires\x20a\x20Command\x20instance','help','addCommand','maxArgLength','1936804WuzIlw','platform','existsSync','VcdIk','Command\x20requires\x20a\x20name','aNTCy','search'];a0c=function(){return aj;};return a0c();}const a0S=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=-parseInt(N(0xc1))/0x1+parseInt(N(0xc4))/0x2+-parseInt(N(0xee))/0x3*(parseInt(N(0x88))/0x4)+-parseInt(N(0xbf))/0x5*(parseInt(N(0xa3))/0x6)+parseInt(N(0x106))/0x7*(-parseInt(N(0xa2))/0x8)+parseInt(N(0xa7))/0x9+parseInt(N(0xae))/0xa*(parseInt(N(0xc8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xcc862));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if('eroAg'!==O(0xf8)){const d=a?function(){const P=O;if(c){const e=c[P(0xe9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else{if(i[O(0x104)]===0x0){q[O(0xda)](O(0x7f)+r[O(0x95)](',\x20'));throw new s();}m[O(0x9a)](z=>{const Q=O;if(!t['includes'](z)){w[Q(0xda)](Q(0xb2)+z);throw new x();}});}};}()),a0a=a0b(this,function(){const R=a0d;return a0a['toString']()[R(0x8e)](R(0x100))[R(0xd0)]()[R(0xd6)](a0a)[R(0x8e)]('(((.+)+)+)+$');});a0a();var __awaiter=this&&this[a0S(0x76)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const T=a0d;T(0x8b)==='inyTx'?b[T(0xb5)](this[T(0x7d)]):g(f);});}return new(c||(c=Promise))(function(f,g){const X=a0d;function h(k){const U=a0d;try{if(U(0xbc)!==U(0xed))j(d['next'](k));else{const m=f===null||g===void 0x0?void 0x0:h['proFlags'][U(0x78)](n=>m[U(0x9e)](n));if(m&&m[U(0x104)]>0x0&&j)throw U(0xb8)+(m===null||m===void 0x0?void 0x0:m[U(0x95)](',\x20'))+U(0xe1);}}catch(m){g(m);}}function i(k){const V=a0d;try{j(d[V(0xc3)](k));}catch(l){g(l);}}function j(k){const W=a0d;k[W(0x99)]?f(k[W(0x9c)]):e(k['value'])[W(0xab)](h,i);}j((d=d['apply'](a,b||[]))[X(0xec)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0S(0xaa)]();import a0L from'cli-table';function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x75;let f=c[d];return f;},a0d(a,b);}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 Y=a0S;super();if(!a)throw new Error(Y(0x80));if(!a['name']){if('Axwjd'==='Axwjd')throw new Error(Y(0x8c));else f[Y(0xda)](Y(0xa9)),g[Y(0xf1)](h,i,j);}if(typeof b!==Y(0xe3))throw new Error(Y(0x92));this[Y(0xd2)]=Object[Y(0xf3)]({},a),this[Y(0xc6)]=this[Y(0xd2)][Y(0xc6)],this[Y(0xfc)]=[],this[Y(0xaf)]=b[Y(0xa8)](this);}static['create'](a,b,c){const Z=a0S;var d;if(!a)throw new Error(Z(0xf6));if(typeof b!==Z(0xe3))throw new Error('Command.create\x20requires\x20a\x20handler\x20function!');let e=new Command(a,b);return c=c||a0M,Object[Z(0xf3)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c[Z(0xd2)])===null||d===void 0x0?void 0x0:d[Z(0xc6)]}),c[Z(0x86)](e),e;}[a0S(0x9f)](a){const a0=a0S;let b=[this[a0(0xc6)]][a0(0x83)](this['options'][a0(0xdb)]||[]);return this[a0(0x7d)]&&b['push'](this[a0(0x7d)]),b[a0(0x9e)](a);}['addCommand'](a){const a1=a0S;if(!(a instanceof Command)){if('XwSqL'===a1(0x7c))throw new Error(a1(0x84));else g[a1(0xda)](a1(0xd3)),h[a1(0xb7)]('Please\x20run\x20\x22maka\x20install\x20meteor\x22'),i[a1(0xf1)](j,k,l);}this['_commands'][a1(0xb5)](a);}[a0S(0xbe)](){const a2=a0S,a=this[a2(0xdd)][a2(0xe0)]();return a!==![]?!![]:![];}[a0S(0x81)](){const a3=a0S;let a=a0I[a3(0x95)](homeDir,a3(0xc2));const b=process[a3(0x89)]===a3(0x82);if(b){a=a0I[a3(0x95)](homeDir,'AppData',a3(0xac),a3(0xc2));if(!a0K[a3(0x8a)](a))return![];}else{if(!a0K[a3(0x8a)](a)){if('CnXoF'===a3(0xf5)){const e=this[a3(0xbe)]();if(!e)throw new c();}else return![];}}return!![];}[a0S(0xef)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a4=a0d;try{if(a4(0x7a)!==a4(0x8d)){const c=this[a4(0xe8)](a[0x0]);if(c){if(a4(0xdc)!==a4(0x94)){const d=(c===null||c===void 0x0?void 0x0:c['name'])||a[0x0],f=(c===null||c===void 0x0?void 0x0:c[a4(0x7d)])||'',g=a[0x0],h=Object[a4(0xba)](b),i=yield this[a4(0xdd)]['getPro']();if(!i){if(a4(0xff)===a4(0xc9))return![];else Log['error'](a4(0x101)),process[a4(0xfb)](0x1);}const j=(i===null||i===void 0x0?void 0x0:i[a4(0xa1)]['includes'](d))||(i===null||i===void 0x0?void 0x0:i[a4(0xa1)][a4(0x9e)](f)),k=!(i===null||i===void 0x0?void 0x0:i[a4(0xce)]['includes'](a4(0xd5)))&&!(i===null||i===void 0x0?void 0x0:i[a4(0xce)][a4(0x9e)]('domainLicense'))&&!(i===null||i===void 0x0?void 0x0:i['trialActive']);if(j&&k){if(a4(0xd1)==='uaucH'){c['error'](a4(0xea));throw new d();}else throw a4(0x90)+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['length']>0x0){if(a4(0xa0)===a4(0xa0)){const n=i===null||i===void 0x0?void 0x0:i[a4(0x8f)][a4(0x78)](o=>h[a4(0x9e)](o));if(n&&n[a4(0x104)]>0x0&&k){if('Wrrkj'===a4(0xe5))throw'To\x20use\x20these\x20pro\x20flags,\x20\x22'+(n===null||n===void 0x0?void 0x0:n[a4(0x95)](',\x20'))+a4(0xe1);else c[a4(0x9d)](0x0,0x0,d);}}else{d[a4(0xda)](a4(0xb2)+e);throw new f();}}if(g===a4(0x79)){if('GSbrE'==='GSbrE'){const q=yield this[a4(0xdd)][a4(0xca)](),r=q===null||q===void 0x0?void 0x0:q[a4(0xa1)]['includes'](a[0x0]+'\x20'+a[0x1]);if(r&&k){if('fiPUu'===a4(0xf4))throw a4(0x90)+a[0x0]+a4(0xe1);else throw new b(a4(0x8c));}}else g['name']!=='murder'&&h[a4(0xc6)]!==a4(0xb1)&&m[a4(0xb5)]([n[a4(0xc6)],o[a4(0xdb)](),p[a4(0xdf)]()]);}if(i===null||i===void 0x0?void 0x0:i[a4(0xe4)]){if(a4(0x98)===a4(0x98))Log['notice']('Trial\x20License\x20Expires:\x20'+i[a4(0xbd)]['split']('T')[0x0]);else return this['options'][a4(0xde)]||[];}}else return d=e[0x0],this[a4(0xe8)](f);}}else throw a4(0x90)+b[0x0]+a4(0xe1);}catch(x){throw x;}});}[a0S(0xc5)](a,b,c){const a5=a0S,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a5(0xba)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a5(0x104)])>0x0){if(g[a5(0x104)]===0x0){if('bpSvr'==='bbMhh')d(e[a5(0xec)](f));else{Log[a5(0xda)]('Missing\x20required\x20options\x20'+requiredOpts['join'](',\x20'));throw new UsageError();}}requiredOpts['forEach'](i=>{const a6=a5;if(!g[a6(0x9e)](i)){Log['error'](a6(0xb2)+i);throw new UsageError();}});}validOpts=validOpts[a5(0x83)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts['length'])>0x0&&(validOpts[a5(0xb5)](a5(0x85)),g['forEach'](i=>{const a7=a5;if('onIsv'!=='rsSTi'){if(!validOpts['includes'](i)){if(a7(0xb9)!=='tepcM'){Log[a7(0xda)](a7(0xa5)+i);throw new UsageError();}else return this[a7(0xd2)][a7(0xdf)]||a7(0x7b);}}else throw new b();}));}['run'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d;try{a=a||[],b=b||{};try{if(a8(0xfd)!==a8(0xfd))throw new b(a8(0xf6));else yield this[a8(0xef)](a,b);}catch(d){Log[a8(0xda)](d),process['exit'](0x0);}yield this[a8(0xf9)](a,b);}catch(f){a8(0xbb)!==a8(0xbb)?f[a8(0xb5)]([f['name'],g[a8(0xdb)](),h[a8(0xdf)]()]):process[a8(0xfb)](0x1);}});}[a0S(0xf9)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a9=a0d;if(a9(0xe7)===a9(0x93)){let d=f===null||g===void 0x0?void 0x0:h['split'](':');if(d)return k=d[0x0],this[a9(0xe8)](l);else return;}else{const {usage:usage='',description:description='',examples:examples=[]}=this[a9(0xd2)];this[a9(0xc5)](a,b,this[a9(0xd2)]);try{if(this[a9(0xd2)][a9(0xf7)]){const d=this[a9(0xbe)]();if(!d){if(a9(0x102)==='XBizc'){if(d[a9(0x104)]>=this[a9(0xd2)][a9(0x87)]){g[a9(0xda)]('Too\x20many\x20arguments');throw new h();}}else throw new MustBeInProjectError();}}if(this[a9(0xd2)][a9(0xa4)]){if('fDelv'!=='fDelv')return c[a9(0xd0)]()[a9(0x8e)](a9(0x100))[a9(0xd0)]()[a9(0xd6)](d)['search'](a9(0x100));else{const h=this[a9(0x81)]();if(!h)throw new NoMeteorFoundError();}}if(typeof this[a9(0xd2)][a9(0x96)]===a9(0xe6)){if(a9(0xa6)!==a9(0xa6)){const j=this[a9(0x81)]();if(!j)throw new c();}else{if(a[a9(0x104)]<this[a9(0xd2)][a9(0x96)]){Log[a9(0xda)](a9(0x105));throw new UsageError();}}}if(typeof this[a9(0xd2)][a9(0x87)]==='number'){if(a9(0xd4)!==a9(0xd4)){const k=this[a9(0xdd)]['findProjectDirectory']();return k!==![]?!![]:![];}else{if(a['length']>=this['options']['maxArgLength']){if('GgSNY'!==a9(0xcd)){Log[a9(0xda)](a9(0xea));throw new UsageError();}else h[a9(0x99)]?i(j[a9(0x9c)]):k(l[a9(0x9c)])[a9(0xab)](m,n);}}}if(typeof this['options']['minOptsLength']===a9(0xe6)){if(a9(0x9b)===a9(0x9b)){if(Object[a9(0xba)](b)[a9(0x104)]<this[a9(0xd2)][a9(0xf0)]){if(a9(0xc7)==='akrEU'){Log[a9(0xda)](a9(0xf2));throw new UsageError();}else{if(e[a9(0xba)](f)[a9(0x104)]>=this['options'][a9(0xcb)]){i[a9(0xda)](a9(0xfa));throw new j();}}}}else{if(e){const n=i[a9(0xe9)](j,arguments);return k=null,n;}}}if(typeof this['options'][a9(0xcb)]===a9(0xe6)){if(Object[a9(0xba)](b)[a9(0x104)]>=this['options'][a9(0xcb)]){Log['error'](a9(0xfa));throw new UsageError();}}if((a[0x0]===_prevCmd||a[a9(0x104)]===0x0)&&b[a9(0x85)])throw new UsageError();_prevCmd=a[0x0],yield this[a9(0xaf)][a9(0xb4)](this,a,b);}catch(n){if(n instanceof UsageError)this['_commands']['length']>0x0&&b['help']&&(Log[a9(0xb7)](a9(0xe2)),this[a9(0xb0)](this['_commands'])),Log[a9(0xf1)](description,examples,usage);else{if(n instanceof MustBeInProjectError)Log[a9(0xda)]('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command'),Log['usage'](description,examples,usage);else{if(n instanceof NoMeteorFoundError)a9(0x75)!==a9(0xcc)?(Log[a9(0xda)](a9(0xd3)),Log[a9(0xb7)](a9(0x97)),Log[a9(0xf1)](description,examples,usage)):(this[a9(0xfc)]['length']>0x0&&g[a9(0x85)]&&(m[a9(0xb7)](a9(0xe2)),this['tableList'](this[a9(0xfc)])),i[a9(0xf1)](j,k,l));else{if(n instanceof NoMeteorAppFoundError)Log[a9(0xda)](a9(0x91)),Log[a9(0xf1)](description,examples,usage);else{if(a9(0xd9)===a9(0xcf))return![];else throw n;}}}}process[a9(0xfb)](0x1);}}});}['tableList'](a){const aa=a0S,b=new a0L({});b[aa(0xb5)]([aa(0xeb),aa(0x103),'Description']),a[aa(0xd7)]()['forEach'](c=>{const ab=aa;c[ab(0xc6)]!==ab(0xd8)&&c['name']!==ab(0xb1)&&b[ab(0xb5)]([c[ab(0xc6)],c[ab(0xdb)](),c['description']()]);}),Log[aa(0xb3)](b['toString']());}[a0S(0xe8)](a){const ac=a0S;return this['_commands'][ac(0xfe)](b=>b['match'](a));}['findSubCommand'](a){const ad=a0S;let b=a===null||a===void 0x0?void 0x0:a['split'](':');if(b)return a=b[0x0],this[ad(0xe8)](a);else{if('BqogM'!=='BqogM')return;else return;}}[a0S(0x7e)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ae=a0d;try{let d=a[ae(0xad)](':');a=d[0x0];let f=d[0x1];if(f){if('MTVXN'===ae(0xb6))b[ae(0x9d)](0x0,0x0,f);else throw b;}let g=this[ae(0xe8)](a);if(g)yield g['run'](b,c);else throw ae(0xc0);}catch(i){if(ae(0x77)!==ae(0x77))try{i(j[ae(0xec)](k));}catch(k){m(k);}else throw Log['error'](i);}});}[a0S(0xdf)](){const af=a0S;return this[af(0xd2)]['description']||'No\x20description\x20provided.';}['usage'](){const ag=a0S;return this[ag(0xd2)][ag(0xf1)]||'No\x20usage\x20provided.';}[a0S(0xde)](){const ah=a0S;return this[ah(0xd2)][ah(0xde)]||[];}[a0S(0xdb)](){const ai=a0S;return this[ai(0xd2)][ai(0xdb)]||'No\x20aliases';}}
1
+ function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xec;let f=c[d];return f;},a0d(a,b);}const a0V=a0d;(function(a,b){const N=a0d,c=a();while(!![]){try{const d=parseInt(N(0x113))/0x1*(-parseInt(N(0xf7))/0x2)+-parseInt(N(0x14d))/0x3+parseInt(N(0xf0))/0x4+parseInt(N(0x112))/0x5*(parseInt(N(0x11d))/0x6)+parseInt(N(0x11b))/0x7+parseInt(N(0x150))/0x8+parseInt(N(0x139))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0xf256f));const a0b=(function(){let a=!![];return function(b,c){const O=a0d;if(O(0x13a)===O(0x10b)){const e=this[O(0x129)]();if(!e)throw new c();}else{const e=a?function(){const P=O;if(c){if(P(0x145)!==P(0x155)){const f=c[P(0x12d)](b,arguments);return c=null,f;}else e['push']([f['name'],g[P(0x12a)](),h[P(0xf3)]()]);}}:function(){};return a=![],e;}};}()),a0a=a0b(this,function(){const Q=a0d;return a0a['toString']()['search'](Q(0x14b))[Q(0xf6)]()[Q(0x126)](a0a)[Q(0xf4)]('(((.+)+)+)+$');});a0a();function a0c(){const ai=['usXJH','bGxvd','XvSBv','options','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','filter','Too\x20many\x20arguments','SepKJ','findCommand','run','No\x20usage\x20provided.','singleLicense','_handler','PNVwN','platform','proFlags','find','OiKSK','Trial\x20License\x20Expires:\x20','concat','length','Local','win32','BpNiX','then','value','validateMeteorInstall','mrICK','To\x20use\x20this\x20command,\x20\x22','maxArgLength','ilGqX','next','exit','minArgLength','jZPaa','bind','addCommand\x20requires\x20a\x20Command\x20instance','iYZpt','Too\x20few\x20arguments','PSNur','splice','No\x20aliases','PJtgv','invoke','.meteor','1074240JdOOSf','bright','findSubCommand','description','search','roles','toString','38iHQXJD','split','join','error','fsi','usage','number','kkngy','Alias','HxaSE','Command\x20requires\x20a\x20name','pBQXp','wajOv','includes','Too\x20few\x20options','KdWXZ','sort','Command.create\x20requires\x20some\x20options!','No\x20description\x20provided.','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','rKQpv','parent','assign','addCommand','tableList','Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly','Commands:','10IAgatw','31019zwWOCJ','keys','YFTaa','Command\x20requires\x20a\x20handler\x20function','match','domainLicense','ZSnTw','wFIyM','8308111nBwAew','UQJpi','373002LEjbRK','minOptsLength','To\x20use\x20these\x20pro\x20flags,\x20\x22','validateParams','function','Too\x20many\x20options','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','trialExpirationDate','ysNCP','constructor','AppData','validateMakaSubscription','validateMakaProject','aliases','push','Invalid\x20options:\x20','apply','BDMOd','ErMpp','forEach','notice','UaKnR','trialActive','maxOptsLength','EbOie','krtIR','runSubCommand','deploy','157032uwmvyu','lHfGB','name','Command.create\x20requires\x20a\x20handler\x20function!','_commands','OhNXb','examples','Please\x20run\x20\x22maka\x20install\x20meteor\x22','throw','DSjvy','help','There\x20is\x20no\x20Meteor\x20application\x20here','tCyWN','Missing\x20required\x20options\x20','homedir','call','existsSync','proCommands','(((.+)+)+)+$','oFjhT','1149717VKhhYQ','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','findProjectDirectory','2944064TcUOJC','EIeDX','game','YDmnU','BXlVc'];a0c=function(){return ai;};return a0c();}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 U=a0d;function h(k){const R=a0d;try{j(d[R(0x174)](k));}catch(l){if(R(0x132)!=='Msgxy')g(l);else throw new b(R(0x123));}}function i(k){const S=a0d;try{j(d[S(0x141)](k));}catch(l){g(l);}}function j(k){const T=a0d;k['done']?f(k[T(0x16e)]):e(k[T(0x16e)])[T(0x16d)](h,i);}j((d=d[U(0x12d)](a,b||[]))[U(0x174)]());});};import a0I from'path';import a0J from'os';import a0K from'fs';const homeDir=a0J[a0V(0x147)]();import a0L from'cli-table';import a0M from'./commands/maka.cmd.js';import{Log}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError}from'./error.js';let _prevCmd='';export class Command extends Tool{constructor(a,b){const W=a0V;super();if(!a)throw new Error(W(0x123));if(!a['name'])throw new Error(W(0x101));if(typeof b!=='function')throw new Error(W(0x116));this[W(0x158)]=Object[W(0x10d)]({},a),this[W(0x13b)]=this[W(0x158)]['name'],this[W(0x13d)]=[],this['_handler']=b[W(0x178)](this);}static['create'](a,b,c){const X=a0V;var d;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==X(0x121))throw new Error(X(0x13c));let e=new Command(a,b);return c=c||a0M,Object[X(0x10d)](e,{'parent':(d=c===null||c===void 0x0?void 0x0:c['options'])===null||d===void 0x0?void 0x0:d[X(0x13b)]}),c[X(0x10e)](e),e;}[a0V(0x117)](a){const Y=a0V;let b=[this[Y(0x13b)]][Y(0x168)](this[Y(0x158)][Y(0x12a)]||[]);return this['parent']&&b[Y(0x12b)](this[Y(0x10c)]),b[Y(0x104)](a);}[a0V(0x10e)](a){const Z=a0V;if(!(a instanceof Command))throw new Error(Z(0x179));this[Z(0x13d)]['push'](a);}[a0V(0x129)](){const a0=a0V,a=this[a0(0xfb)]['findProjectDirectory']();return a!==![]?!![]:![];}[a0V(0x16f)](){const a1=a0V;let a=a0I['join'](homeDir,'.meteor');const b=process[a1(0x163)]===a1(0x16b);if(b){a=a0I['join'](homeDir,a1(0x127),a1(0x16a),a1(0xef));if(!a0K[a1(0x149)](a))return![];}else{if(!a0K[a1(0x149)](a))return![];}return!![];}[a0V(0x128)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a2=a0d;if(a2(0x14c)!=='oFjhT'){c[a2(0xfa)](a2(0x122));throw new d();}else try{if(a2(0x103)!==a2(0x135)){const d=this[a2(0x15d)](a[0x0]);if(d){const f=(d===null||d===void 0x0?void 0x0:d[a2(0x13b)])||a[0x0],g=(d===null||d===void 0x0?void 0x0:d[a2(0x10c)])||'',h=a[0x0],i=Object[a2(0x114)](b),j=yield this['fsi']['getPro']();if(!j){if('gThWI'!==a2(0x12e))Log[a2(0xfa)](a2(0x14e)),process[a2(0x175)](0x1);else return;}const k=(j===null||j===void 0x0?void 0x0:j[a2(0x14a)]['includes'](f))||(j===null||j===void 0x0?void 0x0:j[a2(0x14a)][a2(0x104)](g)),l=!(j===null||j===void 0x0?void 0x0:j[a2(0xf5)][a2(0x104)](a2(0x160)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0xf5)][a2(0x104)](a2(0x118)))&&!(j===null||j===void 0x0?void 0x0:j[a2(0x133)]);if(k&&l)throw a2(0x171)+a[0x0]+a2(0x10a);if(i[a2(0x169)]>0x0){const n=j===null||j===void 0x0?void 0x0:j[a2(0x164)][a2(0x15a)](o=>i[a2(0x104)](o));if(n&&n[a2(0x169)]>0x0&&l){if(a2(0x17c)===a2(0x166))d(e['next'](f));else throw a2(0x11f)+(n===null||n===void 0x0?void 0x0:n[a2(0xf9)](',\x20'))+a2(0x10a);}}if(h===a2(0x138)){if(a2(0x157)===a2(0x157)){const p=yield this[a2(0xfb)]['getPro'](),q=p===null||p===void 0x0?void 0x0:p[a2(0x14a)][a2(0x104)](a[0x0]+'\x20'+a[0x1]);if(q&&l){if(a2(0x151)!==a2(0x156))throw'To\x20use\x20this\x20command,\x20\x22'+a[0x0]+a2(0x10a);else return c['toString']()[a2(0xf4)](a2(0x14b))[a2(0xf6)]()[a2(0x126)](d)[a2(0xf4)](a2(0x14b));}}else{const t=this[a2(0xfb)][a2(0x14f)]();return t!==![]?!![]:![];}}(j===null||j===void 0x0?void 0x0:j[a2(0x133)])&&(a2(0x15c)!==a2(0x15c)?b[a2(0x175)](0x1):Log['notice'](a2(0x167)+j[a2(0x124)]['split']('T')[0x0]));}}else{if(e[a2(0x114)](f)[a2(0x169)]>=this[a2(0x158)][a2(0x134)]){i[a2(0xfa)](a2(0x122));throw new j();}}}catch(v){if(a2(0x136)!=='krtIR')f['push'](a2(0x143)),g[a2(0x130)](x=>{const a3=a2;if(!k[a3(0x104)](x)){n[a3(0xfa)](a3(0x12c)+x);throw new o();}});else throw v;}});}[a0V(0x120)](a,b,c){const a4=a0V,{usage:d,requiredOpts:requiredOpts=[],description:e,examples:f}=c;let {validOpts:validOpts=[]}=c;const g=Object[a4(0x114)](b);if((requiredOpts===null||requiredOpts===void 0x0?void 0x0:requiredOpts[a4(0x169)])>0x0){if(a4(0x11a)===a4(0x11a)){if(g[a4(0x169)]===0x0){if(a4(0x177)!=='TZHFv'){Log[a4(0xfa)](a4(0x146)+requiredOpts[a4(0xf9)](',\x20'));throw new UsageError();}else throw new b();}requiredOpts['forEach'](i=>{const a5=a4;if(!g[a5(0x104)](i)){if(a5(0x173)===a5(0x173)){Log[a5(0xfa)]('Missing\x20required\x20option:\x20'+i);throw new UsageError();}else f[a5(0xfa)](a5(0x159)),g[a5(0xfc)](h,i,j);}});}else return d=e[0x0],this[a4(0x15d)](f);}validOpts=validOpts[a4(0x168)](requiredOpts),(validOpts===null||validOpts===void 0x0?void 0x0:validOpts[a4(0x169)])>0x0&&(validOpts[a4(0x12b)](a4(0x143)),g[a4(0x130)](j=>{const a6=a4;if('zvQlB'==='zvQlB'){if(!validOpts[a6(0x104)](j)){Log[a6(0xfa)](a6(0x12c)+j);throw new UsageError();}}else return![];}));}['run'](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a7=a0d;try{if(a7(0x100)!==a7(0x100))throw new b('Command.create\x20requires\x20a\x20handler\x20function!');else{a=a||[],b=b||{};try{if(a7(0x170)!==a7(0x142))yield this[a7(0x128)](a,b);else{var f;if(!p)throw new E(a7(0x108));if(typeof r!==a7(0x121))throw new F('Command.create\x20requires\x20a\x20handler\x20function!');let g=new t(u,v);return w=x||y,z[a7(0x10d)](g,{'parent':(f=A===null||B===void 0x0?void 0x0:C[a7(0x158)])===null||f===void 0x0?void 0x0:f['name']}),D[a7(0x10e)](g),g;}}catch(f){Log[a7(0xfa)](f),process['exit'](0x0);}yield this[a7(0xee)](a,b);}}catch(g){if('YDmnU'===a7(0x153))process[a7(0x175)](0x1);else{if(!f[a7(0x104)](g)){k[a7(0xfa)](a7(0x12c)+l);throw new m();}}}});}[a0V(0xee)](a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const a8=a0d,{usage:usage='',description:description='',examples:examples=[]}=this[a8(0x158)];this[a8(0x120)](a,b,this['options']);try{if(this[a8(0x158)]['mustBeInMakaProject']){if(a8(0x16c)===a8(0x16c)){const c=this[a8(0x129)]();if(!c)throw new MustBeInProjectError();}else{d[a8(0xfa)](a8(0x146)+e[a8(0xf9)](',\x20'));throw new f();}}if(this['options']['mustHaveMeteorInstalled']){const f=this[a8(0x16f)]();if(!f)throw new NoMeteorFoundError();}if(typeof this[a8(0x158)][a8(0x176)]===a8(0xfd)){if(a8(0x13e)===a8(0x13e)){if(a[a8(0x169)]<this[a8(0x158)]['minArgLength']){Log[a8(0xfa)](a8(0x17b));throw new UsageError();}}else{if(!(e instanceof f))throw new i(a8(0x179));this[a8(0x13d)][a8(0x12b)](h);}}if(typeof this['options'][a8(0x172)]===a8(0xfd)){if(a8(0x106)===a8(0x12f))throw a8(0x171)+b[0x0]+a8(0x10a);else{if(a[a8(0x169)]>=this[a8(0x158)]['maxArgLength']){Log[a8(0xfa)](a8(0x15b));throw new UsageError();}}}if(typeof this['options'][a8(0x11e)]===a8(0xfd)){if(Object[a8(0x114)](b)[a8(0x169)]<this[a8(0x158)][a8(0x11e)]){if(a8(0x11c)===a8(0x115)){f=g['join'](h,a8(0x127),a8(0x16a),a8(0xef));if(!i[a8(0x149)](j))return![];}else{Log[a8(0xfa)](a8(0x105));throw new UsageError();}}}if(typeof this[a8(0x158)][a8(0x134)]===a8(0xfd)){if(Object[a8(0x114)](b)[a8(0x169)]>=this[a8(0x158)][a8(0x134)]){Log[a8(0xfa)](a8(0x122));throw new UsageError();}}if((a[0x0]===_prevCmd||a[a8(0x169)]===0x0)&&b[a8(0x143)])throw new UsageError();_prevCmd=a[0x0],yield this[a8(0x161)][a8(0x148)](this,a,b);}catch(j){if(j instanceof UsageError)this[a8(0x13d)]['length']>0x0&&b[a8(0x143)]&&(Log[a8(0x131)](a8(0x111)),this[a8(0x10f)](this[a8(0x13d)])),Log['usage'](description,examples,usage);else{if(j instanceof MustBeInProjectError)Log[a8(0xfa)](a8(0x159)),Log['usage'](description,examples,usage);else{if(j instanceof NoMeteorFoundError)Log['error'](a8(0x110)),Log['notice'](a8(0x140)),Log['usage'](description,examples,usage);else{if(j instanceof NoMeteorAppFoundError)Log[a8(0xfa)](a8(0x144)),Log[a8(0xfc)](description,examples,usage);else throw j;}}}process[a8(0x175)](0x1);}});}[a0V(0x10f)](a){const a9=a0V,b=new a0L({});b[a9(0x12b)](['Name',a9(0xff),'Description']),a[a9(0x107)]()[a9(0x130)](c=>{const aa=a9;if(c['name']!=='murder'&&c[aa(0x13b)]!==aa(0x152)){if(aa(0x125)==='ysNCP')b[aa(0x12b)]([c[aa(0x13b)],c['aliases'](),c[aa(0xf3)]()]);else return this[aa(0x13d)][aa(0x165)](e=>e[aa(0x117)](c));}}),Log[a9(0xf1)](b[a9(0xf6)]());}[a0V(0x15d)](a){const ab=a0V;return this[ab(0x13d)][ab(0x165)](b=>b[ab(0x117)](a));}[a0V(0xf2)](a){const ac=a0V;let b=a===null||a===void 0x0?void 0x0:a[ac(0xf8)](':');if(b)return a=b[0x0],this[ac(0x15d)](a);else{if(ac(0x17a)!==ac(0x17a))return![];else return;}}[a0V(0x137)](a,b,c){return __awaiter(this,void 0x0,void 0x0,function*(){const ad=a0d;try{let d=a[ad(0xf8)](':');a=d[0x0];let f=d[0x1];if(f){if(ad(0x119)===ad(0x102)){if(d[ad(0x169)]>=this[ad(0x158)][ad(0x172)]){g[ad(0xfa)]('Too\x20many\x20arguments');throw new h();}}else b[ad(0x17d)](0x0,0x0,f);}let g=this[ad(0x15d)](a);if(g)ad(0xfe)!==ad(0x154)?yield g[ad(0x15e)](b,c):c(d);else throw'Command\x20not\x20found';}catch(j){if(ad(0xed)!==ad(0x162))throw Log[ad(0xfa)](j);else d(j[ad(0x141)](f));}});}[a0V(0xf3)](){const ae=a0V;return this['options'][ae(0xf3)]||ae(0x109);}[a0V(0xfc)](){const af=a0V;return this[af(0x158)]['usage']||af(0x15f);}[a0V(0x13f)](){const ag=a0V;return this[ag(0x158)][ag(0x13f)]||[];}[a0V(0x12a)](){const ah=a0V;return this[ah(0x158)]['aliases']||ah(0xec);}}
@@ -1 +1 @@
1
- (function(a,b){var u=a1d,c=a();while(!![]){try{var d=parseInt(u(0x1ed))/0x1*(parseInt(u(0x1ec))/0x2)+parseInt(u(0x1f2))/0x3+parseInt(u(0x1e9))/0x4*(parseInt(u(0x1e6))/0x5)+parseInt(u(0x1e5))/0x6*(-parseInt(u(0x1e3))/0x7)+parseInt(u(0x1ea))/0x8*(-parseInt(u(0x1f1))/0x9)+parseInt(u(0x1e8))/0xa+parseInt(u(0x1ef))/0xb*(-parseInt(u(0x1f0))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x305a5));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a['toString']()['search'](w(0x1eb))[w(0x1e4)]()['constructor'](a1a)[w(0x1e7)](w(0x1eb));});function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1e3;var f=c[d];return f;},a1d(a,b);}a1a();import'./aws/_index.js';import'./set/_index.js';function a1c(){var x=['167317xuhJhj','apply','539KbKRfx','17472eMYkFz','261xiDWtv','325473tPQsYc','287rDneNe','toString','41214ItIVnl','5SraTNz','search','2761900nCAVUn','136820qSecpM','9704DrKQrD','(((.+)+)+)+$','2xPrEky'];a1c=function(){return x;};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(0xab))/0x1+parseInt(u(0xae))/0x2*(-parseInt(u(0xac))/0x3)+-parseInt(u(0xad))/0x4*(-parseInt(u(0xb0))/0x5)+parseInt(u(0xa5))/0x6+parseInt(u(0xa9))/0x7+-parseInt(u(0xaa))/0x8+parseInt(u(0xb1))/0x9*(parseInt(u(0xa8))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x5871e));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a1d;if(c){var e=c[v(0xa6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var w=a1d;return a1a['toString']()['search']('(((.+)+)+)+$')[w(0xaf)]()[w(0xa7)](a1a)[w(0xb2)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./create.js';import'./debug.js';import'./deploy.js';import'./generate.js';import'./help.js';import'./install.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xa5;var f=c[d];return f;},a1d(a,b);}import'./login.js';import'./logout.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';function a1c(){var x=['52385THYTOQ','2087418lpwXXh','4556KVAGyL','2KGwval','toString','1140rCzcub','7101zpTbqd','search','2328924fWlzFl','apply','constructor','3670UuBuVl','497602gNkTSd','22432KngrpR'];a1c=function(){return x;};return a1c();}import'./run.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';
@@ -1 +1 @@
1
- function a2c(){var x=['6gLqnvQ','constructor','2193896IAGMcD','(((.+)+)+)+$','1153753QPWOAI','1314756JTaBoA','toString','search','2655552axPGRN','apply','16281752OECYmI','3003021SLqLbX','4317295AxBYxA'];a2c=function(){return x;};return a2c();}(function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0x18e))/0x1+-parseInt(u(0x18f))/0x2+-parseInt(u(0x185))/0x3+-parseInt(u(0x18c))/0x4+parseInt(u(0x189))/0x5*(-parseInt(u(0x18a))/0x6)+parseInt(u(0x188))/0x7+parseInt(u(0x187))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xa1fb8));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a['toString']()[w(0x191)]('(((.+)+)+)+$')[w(0x190)]()[w(0x18b)](a2a)['search'](w(0x18d));});a2a();import'./aws.command.js';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';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0x185;var f=c[d];return f;},a2d(a,b);}import'./ti.sub.cmd.js';
1
+ (function(a,b){var u=a2d,c=a();while(!![]){try{var d=parseInt(u(0xbe))/0x1+-parseInt(u(0xbd))/0x2+-parseInt(u(0xbb))/0x3+-parseInt(u(0xb9))/0x4*(-parseInt(u(0xc1))/0x5)+parseInt(u(0xba))/0x6+-parseInt(u(0xbc))/0x7*(-parseInt(u(0xc3))/0x8)+-parseInt(u(0xb8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x9426e));var a2b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a2d;if(c){var e=c[v(0xc4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){var w=a2d;return a2a[w(0xc0)]()['search'](w(0xc2))[w(0xc0)]()[w(0xbf)](a2a)['search']('(((.+)+)+)+$');});a2a();import'./aws.command.js';import'./ci.sub.cmd.js';import'./ckp.sub.cmd.js';function a2c(){var x=['2358543LLyihU','49tAFtai','1703166zFSlzr','1209421UMXJnM','constructor','toString','1296935ZHFOXI','(((.+)+)+)+$','625832ZqmDNu','apply','1548306JZllJc','4uAlIJS','2401302SWUTtT'];a2c=function(){return x;};return a2c();}import'./csg.sub.cmd.js';function a2d(a,b){var c=a2c();return a2d=function(d,e){d=d-0xb8;var f=c[d];return f;},a2d(a,b);}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 +1 @@
1
- function a3c(){const G=['apply','maka\x20aws\x20<command>','runSubCommand','(((.+)+)+)+$','9582TqFvGu','15118VJTRut','9tAEyLy','value','toString','throw','713471ikmzFC','2170848PKpjjQ','then','constructor','2276BOQtWl','__awaiter','next','error','search','bnuls','findSubCommand','maka\x20aws:di','DnOzC','done','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','3515WYvbYd','63pOabVP','xRhRU','2005310dlaCAd','8ZdnFAb','219051futraG','create'];a3c=function(){return G;};return a3c();}const a3A=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0x13c))/0x1+parseInt(w(0x134))/0x2*(-parseInt(w(0x135))/0x3)+parseInt(w(0x145))/0x4*(parseInt(w(0x130))/0x5)+-parseInt(w(0x13b))/0x6*(parseInt(w(0x131))/0x7)+-parseInt(w(0x142))/0x8*(-parseInt(w(0x13d))/0x9)+-parseInt(w(0x133))/0xa+parseInt(w(0x141))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x34476));function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x127;let f=c[d];return f;},a3d(a,b);}const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if('uBVvI'!=='uBVvI'){const e=d[x(0x137)](e,arguments);return f=null,e;}else{const e=a?function(){const y=x;if(c){if('stDZZ'!==y(0x12d)){const f=c['apply'](b,arguments);return c=null,f;}else try{i(j[y(0x140)](k));}catch(h){m(h);}}}:function(){};return a=![],e;}};}()),a3a=a3b(this,function(){const z=a3d;return a3a['toString']()[z(0x129)]('(((.+)+)+)+$')[z(0x13f)]()['constructor'](a3a)[z(0x129)](z(0x13a));});a3a();var __awaiter=this&&this[a3A(0x146)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const B=a3d;try{j(d[B(0x127)](k));}catch(l){g(l);}}function i(k){const C=a3d;if(C(0x12a)===C(0x12a))try{j(d[C(0x140)](k));}catch(l){if(C(0x132)!==C(0x132))return f instanceof g?h:new i(function(n){n(k);});else g(l);}else return c[C(0x13f)]()[C(0x129)](C(0x13a))['toString']()[C(0x144)](d)[C(0x129)](C(0x13a));}function j(k){const D=a3d;k[D(0x12e)]?f(k['value']):e(k[D(0x13e)])[D(0x143)](h,i);}j((d=d[E(0x137)](a,b||[]))[E(0x127)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3A(0x136)]({'name':'aws','usage':a3A(0x138),'minArgLength':0x1,'description':a3A(0x12f),'examples':['maka\x20aws:describe-instance',a3A(0x12c)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a3d;try{let c=a[0x0],d=this[F(0x12b)](c);d&&this[F(0x139)](c,a,b);}catch(f){console[F(0x128)](f),process['exit'](0x0);}});});export default AWSCommand;
1
+ function a3d(a,b){const c=a3c();return a3d=function(d,e){d=d-0x98;let f=c[d];return f;},a3d(a,b);}function a3c(){const H=['error','10007GBovgv','aws','toString','sOZCG','105pkYUnc','3499623TpZKJU','maka\x20aws:describe-instance','25509gnWvVt','121146soEHSM','4408368CKRyPe','(((.+)+)+)+$','create','ECOoZ','maka\x20aws:di','133113kwzouj','findSubCommand','value','throw','next','runSubCommand','16IjsTSz','search','wyMlL','apply','constructor','570059EkDWVs','34WGjskM','done','Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20and\x20set\x20host\x20IPs.','3260yWVmEP','56RTJgLt'];a3c=function(){return H;};return a3c();}const a3F=a3d;(function(a,b){const w=a3d,c=a();while(!![]){try{const d=-parseInt(w(0xb1))/0x1*(-parseInt(w(0xab))/0x2)+parseInt(w(0x9f))/0x3*(-parseInt(w(0xaf))/0x4)+-parseInt(w(0xb5))/0x5*(-parseInt(w(0x99))/0x6)+parseInt(w(0xaa))/0x7+parseInt(w(0xa5))/0x8*(parseInt(w(0xb6))/0x9)+parseInt(w(0xae))/0xa*(-parseInt(w(0x98))/0xb)+parseInt(w(0x9a))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x6c42d));const a3b=(function(){let a=!![];return function(b,c){const x=a3d;if(x(0xa7)!==x(0xb4)){const d=a?function(){const y=x;if(c){const e=c[y(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;}else return f instanceof g?h:new i(function(m){m(k);});};}()),a3a=a3b(this,function(){const z=a3d;return a3a[z(0xb3)]()[z(0xa6)](z(0x9b))[z(0xb3)]()[z(0xa9)](a3a)[z(0xa6)]('(((.+)+)+)+$');});a3a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const E=a3d;function h(k){const A=a3d;try{j(d[A(0xa3)](k));}catch(l){if('ECOoZ'===A(0x9d))g(l);else{const n=g?function(){const B=A;if(n){const u=q[B(0xa8)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}}function i(k){const C=a3d;try{j(d[C(0xa2)](k));}catch(l){g(l);}}function j(k){const D=a3d;k[D(0xac)]?f(k[D(0xa1)]):e(k[D(0xa1)])['then'](h,i);}j((d=d[E(0xa8)](a,b||[]))[E(0xa3)]());});};import{Command}from'../../command.js';const AWSCommand=Command[a3F(0x9c)]({'name':a3F(0xb2),'usage':'maka\x20aws\x20<command>','minArgLength':0x1,'description':a3F(0xad),'examples':[a3F(0xb7),a3F(0x9e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a3d;try{let c=a[0x0],d=this[G(0xa0)](c);d&&this[G(0xa4)](c,a,b);}catch(f){console[G(0xb0)](f),process['exit'](0x0);}});});export default AWSCommand;
@@ -1 +1 @@
1
- const a4ao=a4d;(function(a,b){const ag=a4d,c=a();while(!![]){try{const d=parseInt(ag(0xf9))/0x1*(parseInt(ag(0xef))/0x2)+-parseInt(ag(0xdb))/0x3+parseInt(ag(0x121))/0x4+parseInt(ag(0xf0))/0x5*(parseInt(ag(0xee))/0x6)+parseInt(ag(0xd2))/0x7+parseInt(ag(0x114))/0x8*(-parseInt(ag(0x14c))/0x9)+-parseInt(ag(0x10f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0x60a96));function a4c(){const aD=['join','Key-Pair:\x20','Setting\x20AMI\x20ID\x20to\x20','No\x20instance\x20has\x20been\x20created.','ec2createSG','Subnet:\x20','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','\x20SGID:\x20','subnet','getConfigFromShorthand','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','fsi','**\x20Available\x20key-pairs\x20**','\x20DESCRIPTION:\x20','EC2\x20Name:\x20[','getTime','DRbqT','RCmGY','khpvX','constructor','exit','ec2describeKeys','desc','subnetId','Setting\x20Subnet\x20ID\x20to\x20','603mJaClS','THqXl','WXidC','WZtgq','cidr','\x20CIDR:\x20','\x20:\x20','toString','*\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','BuGkM','createKeyPair','string','ask','YufAB','parse','amiId','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','2480618aSEvOm','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value=','build\x20on\x20','next','ID:\x20','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','create-instance','**\x20Available\x20Security\x20Groups\x20**','696945DqkouY','done','KjAzQ','SkASP','},\x20{Key=Name,Value=','name','number','bHDNs','log','alias','Instance\x20Count:\x20','jfmkx','Name','split','truVr','1:1','search','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-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=*','42QOHkgI','41362afrwQP','342605rVlOSG','uWuRu','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','rLxQv','env','(((.+)+)+)+$','tksdx','date','sgId','18zziulh','maka\x20aws:create-instance','notice','KzlKz','TTFWS','\x20AZONE:\x20','vWfjN','BlYRZ','gfjcW','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','error','Security\x20Group:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','push','Instace\x20Type:\x20','throw','apply','Open\x20port\x20443\x20for\x20SSL?','then','Setting\x20the\x20key-pair\x20to:\x20','success','**\x20Available\x20AMIs\x20**','7592470WKAtOu','\x22Web\x20App\x22','create','forEach','STfOz','27592HoPyMJ','ec2create','\x20AMIID:\x20','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values=','Setting\x20SG\x20ID\x20to:\x20','aCFCJ','Desc','\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22','sJVsq','LdVYd','chooseVPC','fOfjm','1649168mRocSC','zcYnU','}]\x22','PqXaa','qeTTm','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','gKVHC','confirm','fIQdh','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','HVjzk','\x20SG\x20NAME:\x20','sort','hdwWe','value','bright','igQtT','qTJcl'];a4c=function(){return aD;};return a4c();}const a4b=(function(){let a=!![];return function(b,c){const ah=a4d;if(ah(0x14f)==='UtbuV')f=[g,h]['join'](':'),i[ah(0x10d)](ah(0x102)+j);else{const e=a?function(){const ai=ah;if(c){const f=c[ai(0x109)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a4a=a4b(this,function(){const aj=a4d;return a4a[aj(0x153)]()['search'](aj(0xf5))[aj(0x153)]()[aj(0x146)](a4a)[aj(0xeb)](aj(0xf5));});a4a();function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xc9;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){g(f);});}return new(c||(c=Promise))(function(f,g){const an=a4d;function h(k){const ak=a4d;if(ak(0xf1)==='uWuRu')try{if('SrwDW'!==ak(0x145))j(d[ak(0xd6)](k));else try{i(j[ak(0x108)](k));}catch(m){m(m);}}catch(m){g(m);}else d(e['next'](f));}function i(k){const al=a4d;if(al(0xf6)!=='MJEzZ')try{j(d[al(0x108)](k));}catch(l){al(0x11a)==='aCFCJ'?g(l):h[al(0xdc)]?i(j[al(0x12f)]):k(l[al(0x12f)])[al(0x10b)](m,n);}else{c['error'](al(0xec)),d['notice'](al(0x136));return;}}function j(k){const am=a4d;k['done']?f(k['value']):e(k[am(0x12f)])[am(0x10b)](h,i);}j((d=d[an(0x109)](a,b||[]))[an(0xd6)]());});};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[a4ao(0x111)]({'name':a4ao(0xd9),'aliases':['ci'],'usage':a4ao(0xfa),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ao(0xf4)],'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ap=a4d;try{const c=this[ap(0x13e)]['getProjectConfig'](),d=new AWS(),{appName:f}=c,g=this[ap(0x13e)][ap(0x13c)](b['env']);let h=f+'-'+g,i=(yield Actions[ap(0xcd)](ap(0x141)+h+']\x20'))||h,j='',k='',l='',m='',n='',o='',p='';const q=yield Actions[ap(0x128)](ap(0x12a));let r='';q&&(r=yield d[ap(0xcb)]({'env':g}));try{Log['notice'](ap(0x13f));let v=r?r:i,w=d[ap(0x148)]({'suggestion':v}),x=(yield Actions[ap(0xcd)]('Please\x20choose\x20a\x20key\x20to\x20use:\x20'))||'-1';if(parseInt(x)<0x0){if('hwMAA'===ap(0xe2))e=f[ap(0xf8)],g[ap(0x10d)](ap(0x119)+h+'\x0a');else{Log[ap(0x103)](ap(0xec)),Log[ap(0xfb)]('No\x20instance\x20has\x20been\x20created.');return;}}w===null||w===void 0x0?void 0x0:w[ap(0x112)](function(z){const aq=ap;parseInt(x)===z['id']&&(aq(0xff)!=='CkTKK'?(j=z[aq(0xe0)],Log[aq(0x10d)](aq(0x10c)+j)):e[aq(0xfb)](aq(0xd7)+f['id']+aq(0x12c)+g[aq(0xe0)]+'\x20SGID:\x20'+h[aq(0xf8)]));});}catch(z){ap(0xce)==='UcaWL'?c['error'](d):Log['error'](z);}k=yield d[ap(0x11f)]();let s=yield Actions['confirm']('Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?'),t;if(s){if(ap(0xf3)==='iMcNT')i['id']===j(k)&&(q=r[ap(0xd0)],s[ap(0x10d)](ap(0x135)+t+'\x20:\x20'+u[ap(0x149)]));else{let C=k===''?d[ap(0x11f)]():k,D=yield Actions[ap(0x128)](ap(0x10a));t=(yield Actions[ap(0xcd)]('Security\x20Group\x20Name:\x20['+i+']'))||i,d[ap(0x137)]({'description':ap(0x110),'name':t,'vpcId':C,'ssl':D});}}t=i;try{Log[ap(0xfb)](ap(0xda));let E=execSync(ap(0xd8))[ap(0x153)](),F=JSON[ap(0xcf)](E),G=[];F[ap(0x112)](function(I,J){const ar=ap;G[ar(0x106)]({'id':J,'name':I[ar(0xe7)],'sgId':I['ID']});}),G[ap(0x112)](function(I){const as=ap;if(I[as(0xe0)]===t)Log[as(0xfb)](as(0xd7)+I['id']+as(0x12c)+I[as(0xe0)]+as(0x13a)+I[as(0xf8)]);else{if('BlYRZ'!==as(0x100)){const K=d['apply'](e,arguments);return f=null,K;}else console[as(0xe3)](as(0xd7)+I['id']+as(0x12c)+I[as(0xe0)]+as(0x13a)+I[as(0xf8)]);}});let H=(yield Actions[ap(0xcd)](ap(0x126)))||'0';G[ap(0x112)](function(I){const at=ap;if(at(0x14d)!==at(0xde))I['id']===parseInt(H)&&(at(0xfd)!==at(0xfd)?(e=f[at(0xe0)],g['success'](at(0x10c)+h)):(l=I[at(0xf8)],Log[at(0x10d)](at(0x119)+l+'\x0a')));else throw b[at(0x103)](at(0xd3));});if(l===''){if('jfmkx'===ap(0xe6))throw Log[ap(0x103)](ap(0xd3));else h['id']===i(j)&&(o=p['sgId'],q['success']('Setting\x20SG\x20ID\x20to:\x20'+r+'\x0a'));}}catch(J){Log[ap(0x103)](J);}try{if('DRbqT'===ap(0x143)){let K=0x7e6;Log[ap(0xfb)](ap(0x10e));let L=execSync(ap(0xed)+K+ap(0xc9))[ap(0x153)](),M=JSON['parse'](L),N=[],O=[];M['forEach'](function(Q,R){const au=ap;if('sJVsq'===au(0x11d)){if(Q[au(0xe4)]==='amazon'){let S=Q[au(0x11b)][au(0xe8)]('build\x20on\x20')[0x1];N[au(0x106)]({'amiId':Q['ID'],'desc':Q[au(0x11b)],'date':S});}}else h(i)===j['id']&&(o=p[au(0xe0)],q[au(0x10d)]('Setting\x20the\x20key-pair\x20to:\x20'+r));}),N[ap(0x12d)](function(Q,R){const av=ap;if('KzlKz'!==av(0xfc)){let T=e[av(0x11b)]['split'](av(0xd5))[0x1];f[av(0x106)]({'amiId':g['ID'],'desc':h['Desc'],'date':T});}else return new Date(R[av(0xf7)])[av(0x142)]()-new Date(Q[av(0xf7)])['getTime']();}),N['forEach'](function(Q,R){const aw=ap;aw(0xca)!==aw(0xca)?d(e[aw(0x108)](f)):O[aw(0x106)]({'id':R,'amiId':Q[aw(0xd0)],'desc':Q[aw(0x149)]});}),O['forEach'](function(Q){const ax=ap;ax(0x12e)!==ax(0x12e)?b['notice'](ax(0x13d)):console[ax(0xe3)](ax(0xd7)+Q['id']+ax(0x116)+Q['amiId']+ax(0x140)+Q['desc']);});let P=(yield Actions[ap(0xcd)](ap(0x139)))||'0';O[ap(0x112)](function(Q){const ay=ap;Q['id']===parseInt(P)&&(ay(0x125)===ay(0x125)?(m=Q[ay(0xd0)],Log[ay(0x10d)]('Setting\x20AMI\x20ID\x20to\x20'+m+ay(0x152)+Q[ay(0x149)])):c(d));});if(m==='')throw Log[ap(0x103)](ap(0xd3));}else e[ap(0xe3)](ap(0xd7)+f['id']+ap(0x12c)+g[ap(0xe0)]+'\x20SGID:\x20'+h[ap(0xf8)]);}catch(R){Log[ap(0x103)](R);}try{Log[ap(0xfb)]('**\x20Available\x20Subnets\x20**');let S=execSync('aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22')['toString'](),T=JSON['parse'](S),U=[];T[ap(0x112)](function(W,X){const az=ap;U['push']({'id':X,'cidr':W['cider'],'az':W['az'],'subnetId':W[az(0x14a)]});}),U[ap(0x112)](function(W){const aA=ap;if(aA(0xdd)==='KjAzQ')console[aA(0xe3)]('ID:\x20'+W['id']+aA(0x151)+W[aA(0x150)]+aA(0xfe)+W['az']+'\x20SUBNETID:\x20'+W[aA(0x14a)]);else try{i(j['next'](k));}catch(Y){m(Y);}});let V=(yield Actions[ap(0xcd)](ap(0xf2)))||'0';U[ap(0x112)](function(W){const aB=ap;aB(0x120)!==aB(0x14e)?W['id']===parseInt(V)&&(aB(0x132)!==aB(0x11e)?(o=W[aB(0x14a)],Log[aB(0x10d)](aB(0x14b)+o)):(e=f[aB(0x14a)],g['success']('Setting\x20Subnet\x20ID\x20to\x20'+h))):e[aB(0xe3)]('ID:\x20'+f['id']+aB(0x116)+g['amiId']+aB(0x140)+h[aB(0x149)]);});if(o===''){if(ap(0x144)==='RCmGY')throw Log['error'](ap(0xd3));else e[ap(0x106)]({'id':f,'name':g[ap(0xe7)],'sgId':h['ID']});}}catch(X){Log['error'](X);}let u=ap(0xea);try{let Y=(yield Actions[ap(0xcd)](ap(0x105)))||ap(0xea),Z=Y[ap(0xe8)](':')[0x0],a0=Y['split'](':')[0x1];typeof parseInt(Z)==='number'&&typeof parseInt(a0)===ap(0xe1)&&(u=[Z,a0][ap(0x133)](':'),Log[ap(0x10d)](ap(0x102)+u));}catch(a1){Log[ap(0x103)](a1);}try{if(ap(0x122)===ap(0x122)){let a2=(yield Actions[ap(0xcd)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||'t3.micro';typeof a2===ap(0xcc)&&(ap(0x12b)!==ap(0x12b)?(c[ap(0x10d)](ap(0x117)),d[ap(0x130)](ap(0xd1))):n=a2);}else{const a5=g?function(){const aC=ap;if(a5){const a6=q[aC(0x109)](r,arguments);return s=null,a6;}}:function(){};return l=![],a5;}}catch(a5){ap(0x113)!==ap(0x113)?(d[ap(0x103)](a5),f['exit'](0x0)):Log['error'](a5);}try{if('fIQdh'===ap(0x129)){let a7=JSON[ap(0xcf)](execSync(ap(0x118)+o+ap(0x11c))[ap(0x153)]())[0x0][ap(0x13b)];Log['notice']('ImageID:'+m),Log['notice'](ap(0xe5)+u),Log[ap(0xfb)](ap(0x107)+n),Log[ap(0xfb)](ap(0x134)+j),Log['notice'](ap(0x104)+l),Log[ap(0xfb)](ap(0x138)+a7);let a8=yield Actions[ap(0x128)]('Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.');if(a8){if(ap(0x131)!=='igQtT')c[ap(0x103)](d);else{let aa=d[ap(0x115)]({'imageId':m,'count':u,'type':n,'key':j,'sgIds':l,'subnet':o,'tags':ap(0xd4)+g+ap(0xdf)+i+ap(0x123)});aa&&(Log['success'](ap(0x117)),Log[ap(0x130)](ap(0xd1)));}}else ap(0xe9)===ap(0x101)?e[ap(0x106)]({'id':f,'amiId':g['amiId'],'desc':h[ap(0x149)]}):Log[ap(0xfb)](ap(0x13d));}else c[ap(0x103)](d);}catch(ad){console[ap(0xe3)](ad),Log[ap(0x103)](ad);}}catch(ae){if(ap(0x127)!==ap(0x124))console['error'](ae),process[ap(0x147)](0x0);else return c['toString']()[ap(0xeb)](ap(0xf5))[ap(0x153)]()['constructor'](d)[ap(0xeb)](ap(0xf5));}});},a4C);
1
+ const a4ak=a4d;(function(a,b){const ah=a4d,c=a();while(!![]){try{const d=parseInt(ah(0x1bd))/0x1*(parseInt(ah(0x1a1))/0x2)+parseInt(ah(0x1c4))/0x3*(-parseInt(ah(0x1b6))/0x4)+parseInt(ah(0x193))/0x5+parseInt(ah(0x196))/0x6*(parseInt(ah(0x1cb))/0x7)+-parseInt(ah(0x1d4))/0x8+parseInt(ah(0x18e))/0x9+-parseInt(ah(0x1d8))/0xa*(parseInt(ah(0x176))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xc0c68));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const ai=a4d;if(c){const e=c[ai(0x199)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const aj=a4d;return a4a[aj(0x1ac)]()[aj(0x187)](aj(0x1a7))[aj(0x1ac)]()[aj(0x1a6)](a4a)[aj(0x187)]('(((.+)+)+)+$');});a4a();var __awaiter=this&&this[a4ak(0x1e4)]||function(a,b,c,d){function e(f){const al=a4d;return al(0x1c9)!==al(0x1d7)?f instanceof c?f:new c(function(g){const am=al;am(0x170)!==am(0x170)?k[am(0x18d)]===l?u[am(0x1b5)](am(0x1b7)+v['id']+am(0x1ce)+w[am(0x18d)]+am(0x1b8)+x[am(0x185)]):y[am(0x179)](am(0x1b7)+z['id']+am(0x1ce)+A[am(0x18d)]+'\x20SGID:\x20'+B[am(0x185)]):g(f);}):c['toString']()[al(0x187)](al(0x1a7))[al(0x1ac)]()['constructor'](d)[al(0x187)](al(0x1a7));}return new(c||(c=Promise))(function(f,g){const aq=a4d;function h(k){const an=a4d;if(an(0x19b)!==an(0x1a2))try{an(0x18a)!==an(0x198)?j(d[an(0x1a5)](k)):c[an(0x1b9)](d);}catch(m){g(m);}else c(d);}function i(k){const ao=a4d;if(ao(0x1d5)!==ao(0x1f4))try{j(d[ao(0x1bb)](k));}catch(l){g(l);}else h(i)===j['id']&&(o=p[ao(0x18d)],q[ao(0x17b)](ao(0x1ef)+r));}function j(k){const ap=a4d;k[ap(0x1f1)]?f(k[ap(0x16b)]):e(k['value'])[ap(0x1b4)](h,i);}j((d=d['apply'](a,b||[]))[aq(0x1a5)]());});};import a4C from'./aws.command.js';import{execSync}from'child_process';function a4c(){const aE=['9309wXaPfE','No\x20instance\x20has\x20been\x20created.','push','Key-Pair:\x20','xLImG','JYJZT','t3.micro','448pGvlcb','createKeyPair','alias','\x20SG\x20NAME:\x20','pMnWv','getConfigFromShorthand','\x20CIDR:\x20','\x22Web\x20App\x22','ask','83120cCaXUe','pJsTq','**\x20Available\x20Security\x20Groups\x20**','sAgYP','10RkcnDb','cidr','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','maka\x20aws:create-instance','Instance\x20Count:\x20','Bqzmp','subnetId','\x20:\x20','Subnet:\x20','*\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','Name','gRgDV','__awaiter','date','split','kVtPY','env','fsi','}]\x22','desc','QnGWE','KghiL','ARGEM','Setting\x20the\x20key-pair\x20to:\x20','Please\x20choose\x20a\x20key\x20to\x20use:\x20','done','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','chooseVPC','pdMrC','uDDrP','value','cider','TXCIA','getProjectConfig','Desc','uqrDA','CJeSW','Open\x20port\x20443\x20for\x20SSL?','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','},\x20{Key=Name,Value=','WIasZ','27252709QCPVxQ','zfDDG','exit','log','Setting\x20AMI\x20ID\x20to\x20','success','**\x20Available\x20key-pairs\x20**','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','LUpSB','XlzBz','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','create-instance','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=*','ImageID:','sgId','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','search','tAWNJ','Hmhyu','KxyVz','aws\x20ec2\x20describe-subnets\x20--query\x20\x22Subnets[*].{subnetId:SubnetId,cider:CidrBlock,az:AvailabilityZone}\x22','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','name','1197414drjWOH','nmOrG','GgfCH','\x20AZONE:\x20','build\x20on\x20','6555005MunsNy','vpXRV','Toylw','142818gnjTcj','UtUpQ','MFRAo','apply','ec2create','uQBxp','\x20DESCRIPTION:\x20','forEach','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','1:1','CCqrT','2YBiMLY','gQQrE','EC2\x20Name:\x20[','bright','next','constructor','(((.+)+)+)+$','PyDXE','number','parse','getTime','toString','ueDyu','aws\x20ec2\x20describe-security-groups\x20--query\x20\x22SecurityGroups[*].{Name:GroupName,ID:GroupId}\x22','confirm','ymopj','**\x20Available\x20AMIs\x20**','XZcJq','amiId','then','notice','628vnISZt','ID:\x20','\x20SGID:\x20','error','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','throw','**\x20Available\x20Subnets\x20**','797249HQxVAH','Setting\x20Subnet\x20ID\x20to\x20','You\x20must\x20have\x20a\x20key-pair.\x20\x20Please\x20run\x20\x22maka\x20aws\x20create-key-pair\x20--env\x20<env-name>\x22\x20to\x20generate\x20a\x20new\x20key','\x20SUBNETID:\x20','join','help','\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='];a4c=function(){return aE;};return a4c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x16a;let f=c[d];return f;},a4d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a4ak(0x182),'aliases':['ci'],'usage':a4ak(0x1db),'description':'','mustBeInMakaProject':!![],'requiredOpts':[a4ak(0x1e8)],'validOpts':[a4ak(0x1c2)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const ar=a4d;try{if('Toylw'!==ar(0x195))c[ar(0x1b9)](d);else{const d=this[ar(0x1e9)][ar(0x16e)](),f=new AWS(),{appName:g}=d,h=this['fsi'][ar(0x1d0)](b[ar(0x1e8)]);let i=g+'-'+h,j=(yield Actions[ar(0x1d3)](ar(0x1a3)+i+']\x20'))||i,k='',l='',m='',n='',o='',p='',q='';const r=yield Actions[ar(0x1af)](ar(0x181));let s='';r&&(s=yield f[ar(0x1cc)]({'env':h}));try{Log[ar(0x1b5)](ar(0x17c));let w=s?s:j,x=f['ec2describeKeys']({'suggestion':w}),y=(yield Actions['ask'](ar(0x1f0)))||'-1';if(parseInt(y)<0x0){if('soThg'==='CVQJr')c[ar(0x1b9)](d);else{Log[ar(0x1b9)](ar(0x1bf)),Log['notice'](ar(0x1c5));return;}}x===null||x===void 0x0?void 0x0:x[ar(0x19d)](function(A){const as=ar;parseInt(y)===A['id']&&(k=A[as(0x18d)],Log[as(0x17b)]('Setting\x20the\x20key-pair\x20to:\x20'+k));});}catch(A){ar(0x177)===ar(0x177)?Log['error'](A):h[ar(0x1f1)]?i(j['value']):k(l['value'])['then'](m,n);}l=yield f[ar(0x1f3)]();let t=yield Actions[ar(0x1af)](ar(0x19e)),u;if(t){if(ar(0x17f)===ar(0x1ec))return f instanceof g?h:new i(function(D){D(k);});else{let D=l===''?f[ar(0x1f3)]():l,E=yield Actions[ar(0x1af)](ar(0x172));u=(yield Actions['ask']('Security\x20Group\x20Name:\x20['+j+']'))||j,f['ec2createSG']({'description':ar(0x1d2),'name':u,'vpcId':D,'ssl':E});}}u=j;try{Log[ar(0x1b5)](ar(0x1d6));let F=execSync(ar(0x1ae))[ar(0x1ac)](),G=JSON[ar(0x1aa)](F),H=[];G[ar(0x19d)](function(J,K){const at=ar;at(0x17e)!==at(0x1e3)?H['push']({'id':K,'name':J[at(0x1e2)],'sgId':J['ID']}):i['id']===j(k)&&(q=r[at(0x1b3)],s[at(0x17b)](at(0x17a)+t+at(0x1df)+u[at(0x1eb)]));}),H[ar(0x19d)](function(J){const au=ar;J[au(0x18d)]===u?au(0x197)===au(0x190)?c[au(0x1b9)](d):Log[au(0x1b5)](au(0x1b7)+J['id']+au(0x1ce)+J[au(0x18d)]+au(0x1b8)+J[au(0x185)]):console[au(0x179)]('ID:\x20'+J['id']+au(0x1ce)+J[au(0x18d)]+'\x20SGID:\x20'+J['sgId']);});let I=(yield Actions[ar(0x1d3)](ar(0x1f2)))||'0';H['forEach'](function(J){const av=ar;if(av(0x1dd)!==av(0x1ad)){if(J['id']===parseInt(I)){if(av(0x189)!==av(0x189)){let L=e[av(0x16f)][av(0x1e6)](av(0x192))[0x1];f['push']({'amiId':g['ID'],'desc':h[av(0x16f)],'date':L});}else m=J[av(0x185)],Log[av(0x17b)]('Setting\x20SG\x20ID\x20to:\x20'+m+'\x0a');}}else{let M=l[av(0x19a)]({'imageId':m,'count':n,'type':o,'key':p,'sgIds':q,'subnet':r,'tags':av(0x1c3)+s+'},\x20{Key=Name,Value='+t+av(0x1ea)});M&&(w[av(0x17b)](av(0x186)),x[av(0x1a4)](av(0x180)));}});if(m===''){if(ar(0x1ed)===ar(0x1ed))throw Log[ar(0x1b9)](ar(0x173));else{c[ar(0x1b9)](ar(0x1bf)),d[ar(0x1b5)](ar(0x1c5));return;}}}catch(K){if(ar(0x188)===ar(0x188))Log[ar(0x1b9)](K);else{const M=g?function(){if(M){const N=q['apply'](r,arguments);return s=null,N;}}:function(){};return l=![],M;}}try{if(ar(0x171)!==ar(0x171))c(d);else{let N=0x7e6;Log[ar(0x1b5)](ar(0x1b1));let O=execSync(ar(0x183)+N+ar(0x1e1))['toString'](),P=JSON[ar(0x1aa)](O),Q=[],R=[];P[ar(0x19d)](function(T,U){const aw=ar;if('KQdvx'!=='KQdvx')e[aw(0x179)](f),g['error'](h);else{if(T[aw(0x1cd)]==='amazon'){let W=T[aw(0x16f)]['split'](aw(0x192))[0x1];Q[aw(0x1c6)]({'amiId':T['ID'],'desc':T[aw(0x16f)],'date':W});}}}),Q['sort'](function(T,U){const ax=ar;return new Date(U[ax(0x1e5)])[ax(0x1ab)]()-new Date(T[ax(0x1e5)])['getTime']();}),Q['forEach'](function(T,U){const ay=ar;ay(0x1ee)!==ay(0x1ee)?(f=[g,h][ay(0x1c1)](':'),i[ay(0x17b)](ay(0x1da)+j)):R[ay(0x1c6)]({'id':U,'amiId':T[ay(0x1b3)],'desc':T['desc']});}),R[ar(0x19d)](function(T){const az=ar;console[az(0x179)](az(0x1b7)+T['id']+'\x20AMIID:\x20'+T['amiId']+az(0x19c)+T['desc']);});let S=(yield Actions[ar(0x1d3)](ar(0x17d)))||'0';R[ar(0x19d)](function(T){const aA=ar;T['id']===parseInt(S)&&(n=T['amiId'],Log[aA(0x17b)]('Setting\x20AMI\x20ID\x20to\x20'+n+aA(0x1df)+T[aA(0x1eb)]));});if(n===''){if('TVycV'!=='ldGqO')throw Log[ar(0x1b9)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else c['error'](d);}}}catch(U){Log[ar(0x1b9)](U);}try{Log['notice'](ar(0x1bc));let V=execSync(ar(0x18b))[ar(0x1ac)](),W=JSON[ar(0x1aa)](V),X=[];W[ar(0x19d)](function(Z,a0){const aB=ar;aB(0x1a0)===aB(0x1a0)?X[aB(0x1c6)]({'id':a0,'cidr':Z[aB(0x16c)],'az':Z['az'],'subnetId':Z['subnetId']}):d(e['throw'](f));}),X[ar(0x19d)](function(Z){const aC=ar;console['log'](aC(0x1b7)+Z['id']+aC(0x1d1)+Z[aC(0x1d9)]+aC(0x191)+Z['az']+aC(0x1c0)+Z[aC(0x1de)]);});let Y=(yield Actions['ask'](ar(0x18c)))||'0';X[ar(0x19d)](function(Z){const aD=ar;'yaOyG'!=='VYkOG'?Z['id']===parseInt(Y)&&('VmGJI'!==aD(0x16d)?(p=Z[aD(0x1de)],Log['success'](aD(0x1be)+p)):e['log'](aD(0x1b7)+f['id']+'\x20AMIID:\x20'+g[aD(0x1b3)]+aD(0x19c)+h[aD(0x1eb)])):(f=g[aD(0x1b3)],h[aD(0x17b)]('Setting\x20AMI\x20ID\x20to\x20'+i+aD(0x1df)+j[aD(0x1eb)]));});if(p===''){if(ar(0x1b2)!==ar(0x1c8))throw Log[ar(0x1b9)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');else throw b[ar(0x1b9)](ar(0x173));}}catch(a0){ar(0x1e7)!==ar(0x16a)?Log[ar(0x1b9)](a0):a0[ar(0x1b5)](ar(0x1b7)+f['id']+'\x20SG\x20NAME:\x20'+g[ar(0x18d)]+ar(0x1b8)+h[ar(0x185)]);}let v=ar(0x19f);try{let a2=(yield Actions[ar(0x1d3)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20'))||ar(0x19f),a3=a2[ar(0x1e6)](':')[0x0],a4=a2[ar(0x1e6)](':')[0x1];typeof parseInt(a3)===ar(0x1a9)&&typeof parseInt(a4)===ar(0x1a9)&&(ar(0x1a8)===ar(0x1a8)?(v=[a3,a4][ar(0x1c1)](':'),Log['success'](ar(0x1da)+v)):e[ar(0x1c6)]({'id':f,'amiId':g['amiId'],'desc':h[ar(0x1eb)]}));}catch(a6){Log[ar(0x1b9)](a6);}try{let a7=(yield Actions[ar(0x1d3)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]'))||ar(0x1ca);typeof a7==='string'&&(o=a7);}catch(a8){ar(0x1cf)!==ar(0x194)?Log['error'](a8):c(d);}try{let aa=JSON[ar(0x1aa)](execSync('aws\x20ec2\x20describe-subnets\x20--filter\x20\x22Name=subnet-id,Values='+p+'\x22\x20--query\x20\x22Subnets[*].{subnet:CidrBlock}\x22')[ar(0x1ac)]())[0x0]['subnet'];Log[ar(0x1b5)](ar(0x184)+n),Log[ar(0x1b5)](ar(0x1dc)+v),Log['notice']('Instace\x20Type:\x20'+o),Log['notice'](ar(0x1c7)+k),Log['notice']('Security\x20Group:\x20'+m),Log[ar(0x1b5)](ar(0x1e0)+aa);let ab=yield Actions[ar(0x1af)](ar(0x1ba));if(ab){let ac=f['ec2create']({'imageId':n,'count':v,'type':o,'key':k,'sgIds':m,'subnet':p,'tags':'\x22ResourceType=instance,Tags=[{Key=created-by,Value=maka-cli},{Key=environment,Value='+h+ar(0x174)+j+ar(0x1ea)});ac&&(Log[ar(0x17b)](ar(0x186)),Log[ar(0x1a4)]('Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file'));}else ar(0x175)!==ar(0x1b0)?Log[ar(0x1b5)]('ABORTED!\x20No\x20instance\x20has\x20been\x20created!'):(d[ar(0x1b9)](e),f[ar(0x178)](0x0));}catch(ae){console[ar(0x179)](ae),Log[ar(0x1b9)](ae);}}}catch(af){'wPHbQ'===ar(0x18f)?af[ar(0x179)](ar(0x1b7)+f['id']+'\x20SG\x20NAME:\x20'+g[ar(0x18d)]+'\x20SGID:\x20'+h[ar(0x185)]):(console[ar(0x1b9)](af),process[ar(0x178)](0x0));}});},a4C);
@@ -1 +1 @@
1
- function a5c(){const M=['value','apply','toString','129ZWqLGe','116930rLhzxM','createKeyPair','getConfigFromShorthand','search','539taLSaq','PrNho','(((.+)+)+)+$','4574788bORtDH','OrYgF','fsi','147760RdJNQv','help','exit','create','env','9bYcPJs','206891DEefie','maka\x20aws\x20create-key-pair','2930648VvkgNn','pSuUE','40882YNctKF','create-key-pair','1149505hKuqYw','constructor','done','nGemO','next','error','VFIjt','throw','__awaiter','42YBerqA','ckp'];a5c=function(){return M;};return a5c();}const a5E=a5d;(function(a,b){const A=a5d,c=a();while(!![]){try{const d=-parseInt(A(0xd3))/0x1+parseInt(A(0xd7))/0x2*(parseInt(A(0xe7))/0x3)+-parseInt(A(0xca))/0x4+-parseInt(A(0xc3))/0x5*(-parseInt(A(0xe2))/0x6)+-parseInt(A(0xd9))/0x7+-parseInt(A(0xd5))/0x8*(-parseInt(A(0xd2))/0x9)+-parseInt(A(0xcd))/0xa*(-parseInt(A(0xc7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x96ee9));const a5b=(function(){let a=!![];return function(b,c){const B=a5d;if(B(0xdc)==='QosTS')d(e[B(0xe0)](f));else{const e=a?function(){const C=B;if(c){if('PrNho'===C(0xc8)){const f=c[C(0xe5)](b,arguments);return c=null,f;}else{const h=new c(),i=this[C(0xcc)][C(0xc5)](d[C(0xd1)]);h[C(0xc4)]({'env':i});}}}:function(){};return a=![],e;}};}()),a5a=a5b(this,function(){const D=a5d;return a5a[D(0xe6)]()[D(0xc6)](D(0xc9))[D(0xe6)]()[D(0xda)](a5a)[D(0xc6)](D(0xc9));});a5a();var __awaiter=this&&this[a5E(0xe1)]||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 K=a5d;function h(k){const F=a5d;if(F(0xdf)==='xXayD'){const n=g?function(){const G=F;if(n){const u=q[G(0xe5)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else try{if('doSwd'!=='mPaoD')j(d[F(0xdd)](k));else return f(this,void 0x0,void 0x0,function*(){const H=F;try{const x=new o(),y=this[H(0xcc)][H(0xc5)](p[H(0xd1)]);x[H(0xc4)]({'env':y});}catch(z){s[H(0xde)](z),t['exit'](0x0);}});}catch(n){g(n);}}function i(k){const I=a5d;try{I(0xd6)!==I(0xd6)?c(d):j(d[I(0xe0)](k));}catch(m){g(m);}}function j(k){const J=a5d;J(0xcb)==='OrYgF'?k[J(0xdb)]?f(k[J(0xe4)]):e(k[J(0xe4)])['then'](h,i):d(e[J(0xdd)](f));}j((d=d[K(0xe5)](a,b||[]))['next']());});};import a5x from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xc3;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a5E(0xd0)]({'name':a5E(0xd8),'aliases':[a5E(0xe3)],'usage':a5E(0xd4),'mustBeInMakaProject':!![],'requiredOpts':[a5E(0xd1)],'validOpts':[a5E(0xce)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const L=a5d;try{const c=new AWS(),d=this['fsi'][L(0xc5)](b[L(0xd1)]);c[L(0xc4)]({'env':d});}catch(f){console[L(0xde)](f),process[L(0xcf)](0x0);}});},a5x);
1
+ function a5c(){const K=['apply','cehJr','getConfigFromShorthand','next','env','toString','exit','__awaiter','done','QiiZJ','value','JdxlT','then','constructor','427700FBOSEZ','GLGHa','createKeyPair','throw','maka\x20aws\x20create-key-pair','1418340mtczGe','error','help','WcBNh','goQrY','2646891cjGBjZ','vETTy','16sQReAC','IYaYd','2279871kjTDey','ibexy','yIHjL','1TEmBIj','create','534DOXtkp','tMIlm','1999696JwhRHA','41767prxYvX','39230CLbkKJ','PQfll','search','fsi','7090anUNaz','create-key-pair'];a5c=function(){return K;};return a5c();}const a5B=a5d;(function(a,b){const y=a5d,c=a();while(!![]){try{const d=-parseInt(y(0x1a5))/0x1*(-parseInt(y(0x1a9))/0x2)+parseInt(y(0x19e))/0x3+parseInt(y(0x1bf))/0x4+-parseInt(y(0x1ab))/0x5*(-parseInt(y(0x1a7))/0x6)+parseInt(y(0x1c4))/0x7+-parseInt(y(0x1a0))/0x8*(-parseInt(y(0x1a2))/0x9)+parseInt(y(0x1af))/0xa*(-parseInt(y(0x1aa))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0xac025));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a5d;if(z(0x19f)!==z(0x19c)){if(c){const e=c[z(0x1b1)](b,arguments);return c=null,e;}}else try{i(j['next'](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const A=a5d;return a5a[A(0x1b6)]()[A(0x1ad)]('(((.+)+)+)+$')['toString']()[A(0x1be)](a5a)[A(0x1ad)]('(((.+)+)+)+$');});a5a();var __awaiter=this&&this[a5B(0x1b8)]||function(a,b,c,d){function e(f){const C=a5d;if(C(0x1ac)===C(0x1c0)){const h=g?function(){const D=C;if(h){const u=q[D(0x1b1)](r,arguments);return s=null,u;}}:function(){};return l=![],h;}else return f instanceof c?f:new c(function(h){const E=C;E(0x1b2)!==E(0x1a8)?h(f):c(d);});}return new(c||(c=Promise))(function(f,g){const I=a5d;function h(k){const F=a5d;try{if(F(0x1a3)!=='ibexy')try{i(j[F(0x1c2)](k));}catch(m){m(m);}else j(d[F(0x1b4)](k));}catch(m){if(F(0x1a1)!==F(0x1a1)){if(m){const o=i['apply'](j,arguments);return k=null,o;}}else g(m);}}function i(k){const G=a5d;if(G(0x1a4)===G(0x1a4))try{if(G(0x19d)===G(0x1bc)){const m=d[G(0x1b1)](e,arguments);return f=null,m;}else j(d[G(0x1c2)](k));}catch(m){g(m);}else try{const r=new i(),s=this[G(0x1ae)][G(0x1b3)](j[G(0x1b5)]);r['createKeyPair']({'env':s});}catch(t){m['error'](t),n[G(0x1b7)](0x0);}}function j(k){const H=a5d;k[H(0x1b9)]?f(k[H(0x1bb)]):e(k[H(0x1bb)])['then'](h,i);}j((d=d[I(0x1b1)](a,b||[]))[I(0x1b4)]());});};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-0x19b;let f=c[d];return f;},a5d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';Command[a5B(0x1a6)]({'name':a5B(0x1b0),'aliases':['ckp'],'usage':a5B(0x1c3),'mustBeInMakaProject':!![],'requiredOpts':[a5B(0x1b5)],'validOpts':[a5B(0x19b)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const J=a5d;if('QiiZJ'!==J(0x1ba))h[J(0x1b9)]?i(j[J(0x1bb)]):k(l[J(0x1bb)])[J(0x1bd)](m,n);else try{const d=new AWS(),f=this[J(0x1ae)]['getConfigFromShorthand'](b[J(0x1b5)]);d[J(0x1c1)]({'env':f});}catch(g){console[J(0x1c5)](g),process[J(0x1b7)](0x0);}});},a5x);
@@ -1 +1 @@
1
- function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0xc3;let f=c[d];return f;},a6d(a,b);}const a6z=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=-parseInt(v(0xf1))/0x1*(parseInt(v(0xef))/0x2)+parseInt(v(0xec))/0x3*(-parseInt(v(0xc5))/0x4)+parseInt(v(0xdc))/0x5+parseInt(v(0xe7))/0x6*(-parseInt(v(0xcb))/0x7)+-parseInt(v(0xd5))/0x8+-parseInt(v(0xdf))/0x9+-parseInt(v(0xd3))/0xa*(-parseInt(v(0xed))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xa973d));const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if('HCUSq'==='iVITX'){const e=d[w(0xca)](e,arguments);return f=null,e;}else{const e=a?function(){const x=w;if(c){if('ptoRR'===x(0xeb)){const f=c['apply'](b,arguments);return c=null,f;}else h[x(0xe8)]?i(j[x(0xc6)]):k(l[x(0xc6)])[x(0xe4)](m,n);}}:function(){};return a=![],e;}};}()),a6a=a6b(this,function(){const y=a6d;return a6a[y(0xde)]()[y(0xd0)]('(((.+)+)+)+$')[y(0xde)]()['constructor'](a6a)[y(0xd0)](y(0xdd));});a6a();var __awaiter=this&&this[a6z(0xcd)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a6d;if(A(0xc7)===A(0xc7))g(f);else return f instanceof g?h:new i(function(m){m(k);});});}return new(c||(c=Promise))(function(f,g){const F=a6d;function h(k){const B=a6d;try{if(B(0xcc)===B(0xcc))j(d[B(0xc9)](k));else{if(e){const m=i[B(0xca)](j,arguments);return k=null,m;}}}catch(m){if(B(0xee)!==B(0xe5))g(m);else{const o=g?function(){const C=B;if(o){const u=q[C(0xca)](r,arguments);return s=null,u;}}:function(){};return l=![],o;}}}function i(k){const D=a6d;try{if(D(0xe2)===D(0xe2))j(d[D(0xd4)](k));else try{i(j[D(0xd4)](k));}catch(m){m(m);}}catch(m){if('FeVsB'===D(0xf0))try{i(j[D(0xc9)](k));}catch(o){m(o);}else g(m);}}function j(k){const E=a6d;k[E(0xe8)]?f(k[E(0xc6)]):e(k[E(0xc6)])[E(0xe4)](h,i);}j((d=d[F(0xca)](a,b||[]))[F(0xc9)]());});};import a6u from'./aws.command.js';import{Command}from'../../command.js';function a6c(){const H=['HpQEk','Security\x20Group\x20Name:\x20[','next','apply','35pkFvTM','AlgqU','__awaiter','ec2createSG','-ssl','search','ssl','chooseVPC','431810HtlfWQ','throw','2421072dptlzG','\x22Web\x20App\x22','name','csg','error','XoANz','fsi','3454380jeLyDR','(((.+)+)+)+$','toString','9196596oWOiES','ask','impnT','DjTJX','exit','then','fyASf','help','1325058FAzlFX','done','getProjectConfig','confirm','ptoRR','77280UhnJst','935OzXfbi','csGIP','934wDVvrP','Fklpb','1273OMMTuM','Open\x20port\x20443\x20for\x20SSL?','vRUpu','create-security-group','100ULimqw','value'];a6c=function(){return H;};return a6c();}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a6z(0xc4),'aliases':[a6z(0xd8)],'usage':'maka\x20aws\x20terminate-instance','validOpts':[a6z(0xe6)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const G=a6d;if(G(0xc3)!=='vRUpu')d[G(0xd9)](e),f[G(0xe3)](0x0);else try{const d=new AWS(),f=this[G(0xdb)][G(0xe9)](),{appName:g}=f;let h=yield d[G(0xd2)](),i=![];!b[G(0xd1)]&&(G(0xda)!==G(0xe1)?i=yield Actions[G(0xea)](G(0xf2)):c(d));let j=i?G(0xcf):'',k=b[G(0xd7)]?b[G(0xd7)]:''+g+j,l=(yield Actions[G(0xe0)](G(0xc8)+k+']'))||k;d[G(0xce)]({'description':G(0xd6),'name':l,'vpcId':h,'ssl':i});}catch(n){console[G(0xd9)](n),process[G(0xe3)](0x0);}});},a6u);
1
+ const a6z=a6d;(function(a,b){const v=a6d,c=a();while(!![]){try{const d=parseInt(v(0x16a))/0x1*(-parseInt(v(0x15f))/0x2)+parseInt(v(0x153))/0x3+parseInt(v(0x15e))/0x4*(parseInt(v(0x181))/0x5)+-parseInt(v(0x157))/0x6*(parseInt(v(0x16f))/0x7)+-parseInt(v(0x174))/0x8*(-parseInt(v(0x180))/0x9)+-parseInt(v(0x169))/0xa*(parseInt(v(0x179))/0xb)+parseInt(v(0x173))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0xd5758));const a6b=(function(){let a=!![];return function(b,c){const w=a6d;if('gwsiy'===w(0x171)){const d=a?function(){const x=w;if(x(0x165)===x(0x165)){if(c){if(x(0x15a)!==x(0x168)){const e=c[x(0x162)](b,arguments);return c=null,e;}else{const h=d[x(0x162)](e,arguments);return f=null,h;}}}else d[x(0x15b)](e),f[x(0x16b)](0x0);}:function(){};return a=![],d;}else try{i(j[w(0x163)](k));}catch(f){m(f);}};}()),a6a=a6b(this,function(){const y=a6d;return a6a[y(0x172)]()['search'](y(0x152))['toString']()[y(0x17b)](a6a)[y(0x170)](y(0x152));});a6a();var __awaiter=this&&this[a6z(0x154)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const A=a6d;'trgwe'===A(0x175)?g(f):c(d);});}return new(c||(c=Promise))(function(f,g){const E=a6d;function h(k){const B=a6d;try{if(B(0x160)==='rGgCK')j(d[B(0x156)](k));else try{i(j[B(0x156)](k));}catch(m){m(m);}}catch(m){g(m);}}function i(k){const C=a6d;try{C(0x16c)!==C(0x161)?j(d['throw'](k)):d(e[C(0x163)](f));}catch(m){g(m);}}function j(k){const D=a6d;D(0x164)!=='cdmDL'?k['done']?f(k[D(0x182)]):e(k[D(0x182)])[D(0x15c)](h,i):d(e['next'](f));}j((d=d[E(0x162)](a,b||[]))[E(0x156)]());});};import a6u from'./aws.command.js';function a6c(){const G=['trgwe','fsi','ec2createSG','getProjectConfig','13717FKBnAX','-ssl','constructor','done','fRwGJ','HpnyE','Security\x20Group\x20Name:\x20[','8053173fJLBcV','9700GNlDuF','value','(((.+)+)+)+$','5218635vrcZwY','__awaiter','maka\x20aws\x20terminate-instance','next','120mflZhu','Open\x20port\x20443\x20for\x20SSL?','dYDmw','UEUwy','error','then','create-security-group','1748EgCqay','174034aAbEUV','rGgCK','HBEUE','apply','throw','nsLwF','QkywZ','SqSOn','name','JzIAS','14000bzFxGh','15nlpbyU','exit','WilEg','\x22Web\x20App\x22','ask','41475mbonwV','search','gwsiy','toString','6741132OvEZSI','8QNMIho'];a6c=function(){return G;};return a6c();}import{Command}from'../../command.js';function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x152;let f=c[d];return f;},a6d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';Command['create']({'name':a6z(0x15d),'aliases':['csg'],'usage':a6z(0x155),'validOpts':['help']},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a6d;try{if(F(0x159)===F(0x17d)){const d=g?function(){if(d){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],d;}else{const d=new AWS(),f=this[F(0x176)][F(0x178)](),{appName:g}=f;let h=yield d['chooseVPC'](),i=![];!b['ssl']&&(F(0x17e)!==F(0x17e)?c(d):i=yield Actions['confirm'](F(0x158)));let j=i?F(0x17a):'',k=b['name']?b[F(0x167)]:''+g+j,l=(yield Actions[F(0x16e)](F(0x17f)+k+']'))||k;d[F(0x177)]({'description':F(0x16d),'name':l,'vpcId':h,'ssl':i});}}catch(n){F(0x166)===F(0x166)?(console['error'](n),process[F(0x16b)](0x0)):h[F(0x17c)]?i(j[F(0x182)]):k(l[F(0x182)])[F(0x15c)](m,n);}});},a6u);
@@ -1 +1 @@
1
- var a7y=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=parseInt(v(0x127))/0x1*(parseInt(v(0x124))/0x2)+-parseInt(v(0x13e))/0x3*(-parseInt(v(0x131))/0x4)+parseInt(v(0x12a))/0x5*(-parseInt(v(0x125))/0x6)+-parseInt(v(0x126))/0x7*(parseInt(v(0x139))/0x8)+parseInt(v(0x129))/0x9*(-parseInt(v(0x130))/0xa)+parseInt(v(0x140))/0xb*(parseInt(v(0x136))/0xc)+parseInt(v(0x137))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x98691));var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(c){var e=c[w(0x128)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var x=a7d;return a7a[x(0x12b)]()[x(0x143)]('(((.+)+)+)+$')[x(0x12b)]()['constructor'](a7a)[x(0x143)](x(0x144));});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0x123;var f=c[d];return f;},a7d(a,b);}a7a();function a7c(){var F=['ec2describeInstances','describe-instances','444768SFPhJW','cdKcE','11HaskQd','error','help','search','(((.+)+)+)+$','oxcFN','466972fnkces','957732dnACyM','63VhmjUQ','2nDXPsX','apply','27oDuedK','5QSRyOL','toString','throw','next','then','create','4080330LHBxOH','24NgtIGV','constructor','BjuxW','value','exit','9709140KXeYog','648986hZDgwm','KoByP','184472aGXeQy','__awaiter','lDzLO'];a7c=function(){return F;};return a7c();}var __awaiter=this&&this[a7y(0x13a)]||function(a,b,c,d){function e(f){var z=a7d;if('dqvWf'!=='PhLfz')return f instanceof c?f:new c(function(g){g(f);});else d(e[z(0x12d)](f));}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var A=a7d;try{if(A(0x123)!=='NvIbo')j(d['next'](k));else return c[A(0x12b)]()['search'](A(0x144))[A(0x12b)]()[A(0x132)](d)[A(0x143)](A(0x144));}catch(m){if(A(0x138)!==A(0x138))return f instanceof g?h:new i(function(o){o(k);});else g(m);}}function i(k){var B=a7d;if(B(0x13b)==='lDzLO')try{if(B(0x13f)!==B(0x133))j(d[B(0x12c)](k));else{if(e){var m=i['apply'](j,arguments);return k=null,m;}}}catch(m){g(m);}else c(d);}function j(k){var C=a7d;k['done']?f(k[C(0x134)]):e(k[C(0x134)])[C(0x12e)](h,i);}j((d=d[D(0x128)](a,b||[]))[D(0x12d)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7y(0x12f)]({'name':a7y(0x13d),'aliases':['di'],'usage':'maka\x20aws\x20describe-instances','validOpts':[a7y(0x142)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;try{const a=new AWS();a[E(0x13c)]();}catch(b){'zNGrb'!=='RiGRY'?(console[E(0x141)](b),process[E(0x135)](0x0)):(d['error'](b),f['exit'](0x0));}});},a7u);
1
+ var a7z=a7d;(function(a,b){var v=a7d,c=a();while(!![]){try{var d=-parseInt(v(0xdf))/0x1*(-parseInt(v(0xe8))/0x2)+-parseInt(v(0xe3))/0x3+parseInt(v(0xe6))/0x4*(parseInt(v(0xdb))/0x5)+parseInt(v(0xea))/0x6+-parseInt(v(0xf6))/0x7*(parseInt(v(0xdc))/0x8)+-parseInt(v(0xec))/0x9+parseInt(v(0xd9))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x9e0dd));function a7c(){var F=['toString','(((.+)+)+)+$','62477JsnNsB','exit','Kttim','maka\x20aws\x20describe-instances','1607934oGdxxK','next','throw','456772oUJCRw','error','8ZstYoB','htSkt','3261564EtEFRh','search','1660230AfOFyR','create','apply','mwWgw','describe-instances','constructor','FupYU','value','ozMyo','ec2describeInstances','441ISYkhr','help','uDLUz','6118870ztUtip','__awaiter','25BAwLLU','77272rYUjZe'];a7c=function(){return F;};return a7c();}var a7b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a7d;if(c){if(w(0xe1)===w(0xe9))return e(this,void 0x0,void 0x0,function*(){var x=w;try{const s=new l();s[x(0xf5)]();}catch(t){o[x(0xe7)](t),p['exit'](0x0);}});else{var e=c[w(0xee)](b,arguments);return c=null,e;}}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){var y=a7d;return a7a[y(0xdd)]()[y(0xeb)](y(0xde))[y(0xdd)]()[y(0xf1)](a7a)[y(0xeb)](y(0xde));});function a7d(a,b){var c=a7c();return a7d=function(d,e){d=d-0xd7;var f=c[d];return f;},a7d(a,b);}a7a();var __awaiter=this&&this[a7z(0xda)]||function(a,b,c,d){function e(f){var A=a7d;if(A(0xd8)===A(0xd8))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){var D=a7d;function h(k){var B=a7d;if('GTDfq'!=='GTDfq')d[B(0xe7)](e),f[B(0xe0)](0x0);else try{'sqyOg'===B(0xef)?d(e[B(0xe5)](f)):j(d[B(0xe4)](k));}catch(n){g(n);}}function i(k){try{j(d['throw'](k));}catch(l){g(l);}}function j(k){var C=a7d;k['done']?f(k[C(0xf3)]):e(k['value'])['then'](h,i);}j((d=d[D(0xee)](a,b||[]))[D(0xe4)]());});};import a7u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a7z(0xed)]({'name':a7z(0xf0),'aliases':['di'],'usage':a7z(0xe2),'validOpts':[a7z(0xd7)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var E=a7d;try{const a=new AWS();a['ec2describeInstances']();}catch(b){if(E(0xf2)===E(0xf4))try{i(j['throw'](k));}catch(d){m(d);}else console[E(0xe7)](b),process[E(0xe0)](0x0);}});},a7u);
@@ -1 +1 @@
1
- var a8y=a8d;(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0xf1))/0x1+parseInt(v(0xf5))/0x2+parseInt(v(0x101))/0x3*(-parseInt(v(0xf0))/0x4)+-parseInt(v(0x100))/0x5*(-parseInt(v(0x102))/0x6)+-parseInt(v(0xe8))/0x7*(-parseInt(v(0xed))/0x8)+parseInt(v(0xee))/0x9*(-parseInt(v(0xeb))/0xa)+-parseInt(v(0xe7))/0xb*(-parseInt(v(0x109))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0xbef50));function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0xe6;var f=c[d];return f;},a8d(a,b);}var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(c){var e=c[w(0x106)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0xea)]()['search'](x(0xf6))[x(0xea)]()[x(0xec)](a8a)['search'](x(0xf6));});a8a();var __awaiter=this&&this[a8y(0x107)]||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(0xfd)!=='VXtHU')return c['toString']()[z(0xf3)]('(((.+)+)+)+$')['toString']()[z(0xec)](d)[z(0xf3)]('(((.+)+)+)+$');else try{z(0xf9)==='jmtVS'?j(d[z(0xfb)](k)):d(e['throw'](f));}catch(n){z(0xe9)===z(0xf7)?(d[z(0xff)](n),f[z(0xf2)](0x0)):g(n);}}function i(k){var A=a8d;if(A(0xef)===A(0xef))try{if('JPxRd'!=='JPxRd'){if(e){var m=i['apply'](j,arguments);return k=null,m;}}else j(d[A(0x10a)](k));}catch(m){if(A(0xfa)===A(0xf4)){const o=new b();o['ec2describeKeys']();}else g(m);}else{var p=d[A(0x106)](e,arguments);return f=null,p;}}function j(k){var B=a8d;k[B(0x103)]?f(k[B(0x108)]):e(k['value'])[B(0xfc)](h,i);}j((d=d[C(0x106)](a,b||[]))[C(0xfb)]());});};import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8y(0xe6)]({'name':'describe-key-pairs','aliases':[a8y(0x105)],'usage':a8y(0xf8),'validOpts':[a8y(0xfe)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var D=a8d;try{const a=new AWS();a[D(0x104)]();}catch(b){console[D(0xff)](b),process[D(0xf2)](0x0);}});},a8u);function a8c(){var E=['30xaiDAM','9DojjWW','290676tkAqXD','done','ec2describeKeys','dkp','apply','__awaiter','value','12nURSCM','throw','create','13413433ylsftE','126PQQHco','qTtFQ','toString','10553690ujIpQC','constructor','202512FhWEHw','9NyVffC','MdHoz','1592016XPjrED','415214IQXsFB','exit','search','AARuK','1301192SBlMwW','(((.+)+)+)+$','xvStI','maka\x20aws\x20describe-key-pairs','jmtVS','LcDHn','next','then','VXtHU','help','error'];a8c=function(){return E;};return a8c();}
1
+ var a8y=a8d;function a8d(a,b){var c=a8c();return a8d=function(d,e){d=d-0x121;var f=c[d];return f;},a8d(a,b);}(function(a,b){var v=a8d,c=a();while(!![]){try{var d=parseInt(v(0x12a))/0x1*(parseInt(v(0x145))/0x2)+-parseInt(v(0x128))/0x3+parseInt(v(0x141))/0x4+-parseInt(v(0x121))/0x5+-parseInt(v(0x12d))/0x6+-parseInt(v(0x143))/0x7*(parseInt(v(0x123))/0x8)+parseInt(v(0x135))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x4463d));var a8b=(function(){var a=!![];return function(b,c){var d=a?function(){var w=a8d;if(w(0x131)!==w(0x140)){if(c){var e=c[w(0x130)](b,arguments);return c=null,e;}}else try{i(j[w(0x125)](k));}catch(g){m(g);}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){var x=a8d;return a8a[x(0x133)]()[x(0x144)](x(0x134))[x(0x133)]()[x(0x13e)](a8a)['search'](x(0x134));});a8a();var __awaiter=this&&this[a8y(0x13f)]||function(a,b,c,d){function e(f){var z=a8d;if(z(0x13d)!==z(0x139))return f instanceof c?f:new c(function(g){var A=z;if(A(0x13b)==='FpLvO')g(f);else return f instanceof g?h:new i(function(m){m(k);});});else{var h=d[z(0x130)](e,arguments);return f=null,h;}}return new(c||(c=Promise))(function(f,g){var F=a8d;function h(k){var B=a8d;if(B(0x126)!==B(0x132))try{if(B(0x12e)===B(0x12e))j(d[B(0x13a)](k));else return c[B(0x133)]()[B(0x144)](B(0x134))[B(0x133)]()['constructor'](d)[B(0x144)](B(0x134));}catch(m){g(m);}else d(e[B(0x125)](f));}function i(k){var C=a8d;if('bvcJZ'===C(0x142))try{j(d[C(0x125)](k));}catch(l){g(l);}else{var n=g?function(){var D=C;if(n){var u=q[D(0x130)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}}function j(k){var E=a8d;k[E(0x127)]?f(k['value']):e(k[E(0x13c)])['then'](h,i);}j((d=d[F(0x130)](a,b||[]))[F(0x13a)]());});};function a8c(){var H=['ec2describeKeys','apply','CVEIh','OmkDH','toString','(((.+)+)+)+$','5767227dgknFD','ylbvX','create','describe-key-pairs','uRYtn','next','FpLvO','value','RVmVw','constructor','__awaiter','ZGilR','2227492qgIwmS','bvcJZ','242123BtmoIq','search','256EDycus','860020oeCzDt','help','8cSGdRT','error','throw','bclwK','done','662022wIzqYd','maka\x20aws\x20describe-key-pairs','352IFbOGN','dkp','TygBB','3212040LFHiht','YHLPL'];a8c=function(){return H;};return a8c();}import a8u from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';Command[a8y(0x137)]({'name':a8y(0x138),'aliases':[a8y(0x12b)],'usage':a8y(0x129),'validOpts':[a8y(0x122)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){var G=a8d;try{if(G(0x136)!==G(0x12c)){const a=new AWS();a[G(0x12f)]();}else c(d);}catch(c){console[G(0x124)](c),process['exit'](0x0);}});},a8u);
@@ -1 +1 @@
1
- function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x180;let f=c[d];return f;},a9d(a,b);}const a9z=a9d;function a9c(){const G=['\x20Ready?','TuyXc','2099120RbVpTM','name','toString','qQwpM','1159336xnwWqP','rbi','instanceId','constructor','ec2rebootInstance','chooseInstance','value','create','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','346783fFDgco','2KFVyuY','exit','apply','WkYBT','SAdKn','__awaiter','TmxkC','mQhCV','VPCUF','next','maka\x20aws\x20reboot-instance','error','ipUdA','272823xKfrkT','(((.+)+)+)+$','then','5822526SmgqQN','status','help','1642120CRVvvU','throw','\x20is\x20still\x20running.','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','bUumG','63TCJkMt','search','9845171jOqrOH'];a9c=function(){return G;};return a9c();}(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x193))/0x1+-parseInt(v(0x194))/0x2*(parseInt(v(0x1a1))/0x3)+-parseInt(v(0x186))/0x4+-parseInt(v(0x1a7))/0x5+parseInt(v(0x1a4))/0x6+parseInt(v(0x183))/0x7+parseInt(v(0x18a))/0x8*(-parseInt(v(0x181))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0xbaca5));const a9b=(function(){let a=!![];return function(b,c){const w=a9d;if('qQwpM'===w(0x189)){const d=a?function(){const x=w;if('deUtl'!==x(0x19c)){if(c){const e=c[x(0x196)](b,arguments);return c=null,e;}}else try{i(j['next'](k));}catch(g){m(g);}}:function(){};return a=![],d;}else{const f=g?function(){if(f){const u=q['apply'](r,arguments);return s=null,u;}}:function(){};return l=![],f;}};}()),a9a=a9b(this,function(){const y=a9d;return a9a[y(0x188)]()[y(0x182)](y(0x1a2))[y(0x188)]()[y(0x18d)](a9a)[y(0x182)]('(((.+)+)+)+$');});a9a();var __awaiter=this&&this[a9z(0x199)]||function(a,b,c,d){function e(f){const A=a9d;return A(0x197)===A(0x197)?f instanceof c?f:new c(function(g){g(f);}):c['toString']()['search'](A(0x1a2))[A(0x188)]()['constructor'](d)[A(0x182)]('(((.+)+)+)+$');}return new(c||(c=Promise))(function(f,g){const E=a9d;function h(k){const B=a9d;if(B(0x19b)===B(0x1a0)){if(e){const m=i['apply'](j,arguments);return k=null,m;}}else try{j(d[B(0x19d)](k));}catch(m){g(m);}}function i(k){const C=a9d;try{j(d[C(0x1a8)](k));}catch(l){g(l);}}function j(k){const D=a9d;k['done']?f(k['value']):e(k[D(0x190)])[D(0x1a3)](h,i);}j((d=d[E(0x196)](a,b||[]))[E(0x19d)]());});};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[a9z(0x191)]({'name':'reboot-instance','aliases':[a9z(0x18b)],'usage':a9z(0x19e),'validOpts':[a9z(0x1a6)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a9d;try{const a=new AWS();let b=yield a[F(0x18f)]();if((b===null||b===void 0x0?void 0x0:b[F(0x1a5)])==='running'){if(F(0x19a)===F(0x19a)){let c=yield Actions['confirm']('[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20'+b[F(0x187)]+F(0x184));c?F(0x185)!==F(0x198)?a[F(0x18e)]({'instanceId':b[F(0x18c)]}):(d['error'](e),f['exit'](0x0)):F(0x180)==='bUumG'?Log[F(0x19f)](F(0x192)+b[F(0x187)]+F(0x1a9)):c(d);}else return f instanceof g?h:new i(function(m){m(k);});}else Log[F(0x19f)](F(0x1aa));}catch(h){console[F(0x19f)](h),process[F(0x195)](0x0);}});},a9u);
1
+ const a9y=a9d;(function(a,b){const v=a9d,c=a();while(!![]){try{const d=parseInt(v(0x16f))/0x1+-parseInt(v(0x15a))/0x2+parseInt(v(0x179))/0x3+-parseInt(v(0x174))/0x4+-parseInt(v(0x177))/0x5*(parseInt(v(0x17f))/0x6)+-parseInt(v(0x16c))/0x7+-parseInt(v(0x183))/0x8*(-parseInt(v(0x173))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x32726));function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x15a;let f=c[d];return f;},a9d(a,b);}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a9d;if(c){const e=c[w(0x17d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const x=a9d;return a9a['toString']()[x(0x163)](x(0x17a))[x(0x164)]()['constructor'](a9a)[x(0x163)](x(0x17a));});a9a();var __awaiter=this&&this[a9y(0x162)]||function(a,b,c,d){function e(f){const z=a9d;if(z(0x15d)!==z(0x17b))return f instanceof c?f:new c(function(g){g(f);});else c(d);}return new(c||(c=Promise))(function(f,g){const D=a9d;function h(k){const A=a9d;try{j(d[A(0x180)](k));}catch(l){g(l);}}function i(k){const B=a9d;if(B(0x178)!==B(0x175))try{j(d['throw'](k));}catch(l){if('zMAap'!==B(0x16b)){const n=d[B(0x17d)](l,arguments);return f=null,n;}else g(l);}else d(e[B(0x161)](f));}function j(k){const C=a9d;k[C(0x15c)]?f(k[C(0x16a)]):e(k[C(0x16a)])[C(0x17e)](h,i);}j((d=d[D(0x17d)](a,b||[]))['next']());});};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';function a9c(){const F=['value','zMAap','1780170MKXFNE','\x20is\x20still\x20running.','help','390811sJCNHG','chooseInstance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','ec2rebootInstance','2045421ZsAZNA','422296uEBNsG','XCGLT','rbi','5YQBPtA','kObwb','751167SgiCzA','(((.+)+)+)+$','DHpTQ','name','apply','then','1054002EaMAbp','next','confirm','create','8bmVKsI','reboot-instance','uBfPX','maka\x20aws\x20reboot-instance','tjFnQ','252576BkFkus','kzlGE','done','BKSAW','instanceId','UoYcy','status','throw','__awaiter','search','toString','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','exit','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','running','error'];a9c=function(){return F;};return a9c();}Command[a9y(0x182)]({'name':a9y(0x184),'aliases':[a9y(0x176)],'usage':a9y(0x186),'validOpts':[a9y(0x16e)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a9d;if(E(0x15f)==='iBlip')try{i(j[E(0x161)](k));}catch(b){m(b);}else try{const b=new AWS();let c=yield b[E(0x170)]();if((c===null||c===void 0x0?void 0x0:c[E(0x160)])===E(0x168)){if(E(0x187)===E(0x185))d[E(0x169)](e),f['exit'](0x0);else{let f=yield Actions[E(0x181)](E(0x165)+c[E(0x17c)]+'\x20Ready?');f?b['ec2rebootInstance']({'instanceId':c['instanceId']}):Log[E(0x169)](E(0x171)+c[E(0x17c)]+E(0x16d));}}else E(0x15b)!==E(0x15b)?c[E(0x172)]({'instanceId':d[E(0x15e)]}):Log[E(0x169)](E(0x167));}catch(h){console['error'](h),process[E(0x166)](0x0);}});},a9u);
@@ -1 +1 @@
1
- const a10I=a10d;(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x1d4))/0x1+-parseInt(F(0x1c2))/0x2*(parseInt(F(0x1c7))/0x3)+parseInt(F(0x1da))/0x4+parseInt(F(0x1dc))/0x5+parseInt(F(0x1cc))/0x6*(parseInt(F(0x1c3))/0x7)+-parseInt(F(0x1db))/0x8*(-parseInt(F(0x1bc))/0x9)+-parseInt(F(0x1b7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xad443));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(G(0x1bd)!==G(0x1cb)){if(c){if('PlnoR'!==G(0x1d3)){const e=c[G(0x1b1)](b,arguments);return c=null,e;}else e[G(0x1ea)]=f===null||g===void 0x0?void 0x0:h[G(0x1e0)];}}else h[G(0x1b6)]?i(j['value']):k(l['value'])[G(0x1c0)](m,n);}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x1c1)]()[H(0x1b5)](H(0x1e2))[H(0x1c1)]()['constructor'](a10a)[H(0x1b5)](H(0x1e2));});a10a();var __awaiter=this&&this[a10I(0x1d6)]||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(0x1d0)===J(0x1b2))return f instanceof g?h:new i(function(m){m(k);});else try{'neZxx'!==J(0x1e7)?j(d[J(0x1b0)](k)):c(d);}catch(n){'LSOrk'===J(0x1b9)?g(n):d(n['throw'](f));}}function i(k){const K=a10d;try{K(0x1d5)!==K(0x1d5)?e[K(0x1ea)]=f===null||g===void 0x0?void 0x0:h[K(0x1e5)]:j(d[K(0x1c4)](k));}catch(m){if('CxGxS'!=='CxGxS')try{i(j[K(0x1c4)](k));}catch(o){m(o);}else g(m);}}function j(k){const L=a10d;k[L(0x1b6)]?f(k[L(0x1df)]):e(k[L(0x1df)])[L(0x1c0)](h,i);}j((d=d[M(0x1b1)](a,b||[]))['next']());});};import a10C from'path';import a10D from'fs';function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x1ab;let f=c[d];return f;},a10d(a,b);}import{execSync}from'child_process';import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a10c(){const P=['nOxSN','LSOrk','utf8','ssh.json','27xHZXzC','KhhZa','\x20IP\x20to\x20','maka\x20aws\x20set-host','then','toString','454534LhEZuk','7iBfVHd','throw','private','success','12MWVCQT','error','cat\x20','env','NBYUn','7096152TzcGda','UfkLC','public','XZFXG','AvcDo','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','KBTMi','epiwJ','57823fomRbz','zkhhZ','__awaiter','parse','inherit','create','3131388jJFmcc','1388792UKlQAz','281735xxanmi','fsi','kfuCN','value','publicIp','key-name','(((.+)+)+)+$','sep','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','privateIp','MVLof','jDqPv','pwkkg','readFileSync','host','CKCrW','sth','set-host','stringify','chooseInstance','exit','help','ask','next','apply','CdKCz','constructor','join','search','done','8660930AbCPLf'];a10c=function(){return P;};return a10c();}Command[a10I(0x1d9)]({'name':a10I(0x1ed),'aliases':[a10I(0x1ec)],'usage':a10I(0x1bf),'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a10I(0x1ae),a10I(0x1e1)],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a10d;try{if(N(0x1eb)===N(0x1de)){if(k===N(0x1ce))u['host']=v===null||w===void 0x0?void 0x0:x[N(0x1e0)];else p==='private'&&(y['host']=z===null||A===void 0x0?void 0x0:B[N(0x1e5)]);}else{const d=new AWS(),f=this[N(0x1dd)]['getConfigPath'](b[N(0x1ca)]);let g=yield d[N(0x1ac)](),h=JSON[N(0x1d7)](a10D[N(0x1e9)](a10C[N(0x1b4)](f,N(0x1bb)),N(0x1ba))),i=(yield Actions[N(0x1af)](N(0x1d1)))||N(0x1ce);if(i){if(N(0x1e8)===N(0x1e6))d(e[N(0x1b0)](f));else{if(i===N(0x1ce)||i==='private'){if(N(0x1cd)!==N(0x1d2)){if(i===N(0x1ce))h[N(0x1ea)]=g===null||g===void 0x0?void 0x0:g[N(0x1e0)];else i===N(0x1c5)&&(h[N(0x1ea)]=g===null||g===void 0x0?void 0x0:g[N(0x1e5)]);}else return c[N(0x1c1)]()['search'](N(0x1e2))[N(0x1c1)]()[N(0x1b3)](d)[N(0x1b5)]('(((.+)+)+)+$');}else{if(N(0x1cf)==='EUHLm'){const n=g?function(){const O=N;if(n){const u=q[O(0x1b1)](r,arguments);return s=null,u;}}:function(){};return l=![],n;}else throw N(0x1e4);}}}else{if('nOxSN'!==N(0x1b8))throw N(0x1e4);else h[N(0x1ea)]=g===null||g===void 0x0?void 0x0:g[N(0x1e5)];}a10D['writeFileSync'](a10C[N(0x1b4)](f,N(0x1bb)),JSON[N(0x1ab)](h,null,0x2)),execSync(N(0x1c9)+a10C[N(0x1b4)](f,N(0x1bb)),{'stdio':N(0x1d8)}),Log[N(0x1c6)]('\x0aSaved\x20host\x20'+i+N(0x1be)+f+a10C[N(0x1e3)]+N(0x1bb));}}catch(n){console[N(0x1c8)](n),process[N(0x1ad)](0x0);}});},a10E);
1
+ const a10M=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x72;let f=c[d];return f;},a10d(a,b);}(function(a,b){const F=a10d,c=a();while(!![]){try{const d=-parseInt(F(0x9a))/0x1+parseInt(F(0x83))/0x2+-parseInt(F(0x81))/0x3*(-parseInt(F(0xa3))/0x4)+parseInt(F(0x73))/0x5*(parseInt(F(0xa1))/0x6)+-parseInt(F(0x98))/0x7*(parseInt(F(0xa8))/0x8)+-parseInt(F(0x96))/0x9+parseInt(F(0x94))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x24acc));const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a10d;if(c){const e=c[G(0xa4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const H=a10d;return a10a[H(0x77)]()[H(0x85)]('(((.+)+)+)+$')[H(0x77)]()[H(0x84)](a10a)[H(0x85)](H(0x74));});a10a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const L=a10d;function h(k){const I=a10d;try{j(d[I(0x7d)](k));}catch(l){g(l);}}function i(k){const J=a10d;if(J(0x89)===J(0x8f))h[J(0x9c)]?i(j['value']):k(l[J(0xa0)])[J(0xa2)](m,n);else try{j(d[J(0x8e)](k));}catch(m){g(m);}}function j(k){const K=a10d;k[K(0x9c)]?f(k['value']):e(k['value'])[K(0xa2)](h,i);}j((d=d['apply'](a,b||[]))[L(0x7d)]());});};import a10C from'path';import a10D from'fs';import{execSync}from'child_process';function a10c(){const O=['success','toString','atAVV','sth','writeFileSync','join','inherit','next','ssh.json','exit','ask','237ZljQIw','privateIp','89420cgjyAa','constructor','search','\x0aSaved\x20host\x20','parse','host','mXLOk','stringify','cat\x20','error','private','throw','ultyV','\x20IP\x20to\x20','OAPCJ','UixGt','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','2326070UXnVtl','public','948672izBbFW','help','7PGWVIP','sep','185965XPRala','aZWTb','done','chooseInstance','wMwDp','fsi','value','6KSlAmM','then','388zIMXQW','apply','kPQtb','WeKFe','publicIp','715448rkTIqS','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','utf8','1230220DtRuvO','(((.+)+)+)+$','set-host'];a10c=function(){return O;};return a10c();}import a10E from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a10M(0x75),'aliases':[a10M(0x79)],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[a10M(0x97),'key-name'],'description':''},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const N=a10d;if(N(0xa6)!==N(0x92))try{const c=new AWS(),d=this[N(0x9f)]['getConfigPath'](b['env']);let f=yield c[N(0x9d)](),g=JSON[N(0x87)](a10D['readFileSync'](a10C[N(0x7b)](d,N(0x7e)),N(0x72))),h=(yield Actions[N(0x80)](N(0x93)))||'public';if(h){if(N(0x9e)!==N(0x9e))throw N(0xa9);else{if(h===N(0x95)||h===N(0x8d)){if(N(0x9b)!=='goZyy'){if(h===N(0x95))g[N(0x88)]=f===null||f===void 0x0?void 0x0:f[N(0xa7)];else{if(h===N(0x8d)){if(N(0x78)===N(0x78))g[N(0x88)]=f===null||f===void 0x0?void 0x0:f[N(0x82)];else return c['toString']()[N(0x85)](N(0x74))[N(0x77)]()[N(0x84)](d)[N(0x85)](N(0x74));}}}else e[N(0x88)]=f===null||g===void 0x0?void 0x0:h[N(0xa7)];}else{if(N(0x91)==='ocqZw')try{i(j['throw'](k));}catch(m){m(m);}else throw N(0xa9);}}}else N(0xa5)===N(0xa5)?g[N(0x88)]=f===null||f===void 0x0?void 0x0:f[N(0x82)]:c(d);a10D[N(0x7a)](a10C[N(0x7b)](d,N(0x7e)),JSON[N(0x8a)](g,null,0x2)),execSync(N(0x8b)+a10C[N(0x7b)](d,'ssh.json'),{'stdio':N(0x7c)}),Log[N(0x76)](N(0x86)+h+N(0x90)+d+a10C[N(0x99)]+'ssh.json');}catch(n){console[N(0x8c)](n),process[N(0x7f)](0x0);}else e[N(0x88)]=f===null||g===void 0x0?void 0x0:h[N(0x82)];});},a10E);
@@ -1 +1 @@
1
- const a11y=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x1d7))/0x1*(-parseInt(v(0x1d5))/0x2)+parseInt(v(0x1d0))/0x3+-parseInt(v(0x1c7))/0x4+parseInt(v(0x1d4))/0x5*(-parseInt(v(0x1df))/0x6)+parseInt(v(0x1da))/0x7+parseInt(v(0x1ce))/0x8+parseInt(v(0x1ca))/0x9*(-parseInt(v(0x1dd))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x87c06));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a11d;if(w(0x1e1)===w(0x1d2))b['error'](w(0x1bc));else{if(c){const f=c[w(0x1c8)](b,arguments);return c=null,f;}}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const x=a11d;return a11a[x(0x1c1)]()['search'](x(0x1c2))[x(0x1c1)]()['constructor'](a11a)[x(0x1d3)](x(0x1c2));});a11a();var __awaiter=this&&this[a11y(0x1bf)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const C=a11d;function h(k){const z=a11d;if(z(0x1bd)!=='AxLZX')c[z(0x1cc)](z(0x1cd)+d[z(0x1cf)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');else try{j(d['next'](k));}catch(m){g(m);}}function i(k){const A=a11d;if('HlXGv'!==A(0x1c6))try{i(j['throw'](k));}catch(m){m(m);}else try{j(d[A(0x1dc)](k));}catch(m){g(m);}}function j(k){const B=a11d;k['done']?f(k[B(0x1cb)]):e(k['value'])[B(0x1e0)](h,i);}j((d=d[C(0x1c8)](a,b||[]))['next']());});};function a11c(){const E=['3065646zLgYCi','sKfkZ','mAyea','search','440ZrLnnE','66170WIQYkl','\x20Ready?','3sUCrEJ','ukMyn','exit','7480963IOdyLe','status','throw','8927870muBgHl','chooseInstance','9042OPCKNH','then','woGnB','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','AxLZX','confirm','__awaiter','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','toString','(((.+)+)+)+$','instanceId','TnGVq','maka\x20aws\x20terminate-instance','HlXGv','3291736WZEzTf','apply','help','9QRkfpY','value','error','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','3304312PFRYCL','name'];a11c=function(){return E;};return a11c();}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';function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a11d(a,b);}import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':'terminate-instance','aliases':['ti'],'usage':a11y(0x1c5),'validOpts':[a11y(0x1c9)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const D=a11d;if(D(0x1d1)!==D(0x1d8))try{const a=new AWS();let b=yield a[D(0x1de)]();if((b===null||b===void 0x0?void 0x0:b[D(0x1db)])==='running'){let c=yield Actions[D(0x1be)](D(0x1c0)+b[D(0x1cf)]+D(0x1d6));c?a['ec2terminateInstance']({'instanceId':b[D(0x1c3)]}):Log[D(0x1cc)](D(0x1cd)+b[D(0x1cf)]+'\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).');}else Log[D(0x1cc)](D(0x1bc));}catch(d){D(0x1c4)!==D(0x1c4)?c(d):(console['error'](d),process[D(0x1d9)](0x0));}else{const h=d[D(0x1c8)](e,arguments);return f=null,h;}});},a11u);
1
+ function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x14a;let f=c[d];return f;},a11d(a,b);}function a11c(){const F=['throw','13637100sCsWyR','40VcFbdI','then','ZFPKE','3403314eDZihi','\x20Ready?','__awaiter','bpqIt','10036566mnFZfn','8nMaJLb','ueKeS','running','sgZwZ','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','help','confirm','next','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','apply','constructor','name','2erIxAl','18629875dksAHD','maka\x20aws\x20terminate-instance','yUTLS','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','terminate-instance','toString','5hjryqu','421190YmFuDl','329277NnmlBZ','12828074UMoqnZ','qbOIs','UxPQU','search','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','instanceId','error','create'];a11c=function(){return F;};return a11c();}const a11z=a11d;(function(a,b){const v=a11d,c=a();while(!![]){try{const d=parseInt(v(0x16c))/0x1*(parseInt(v(0x164))/0x2)+-parseInt(v(0x16d))/0x3*(-parseInt(v(0x150))/0x4)+parseInt(v(0x16b))/0x5*(-parseInt(v(0x157))/0x6)+parseInt(v(0x16e))/0x7*(parseInt(v(0x158))/0x8)+-parseInt(v(0x153))/0x9+parseInt(v(0x14f))/0xa+-parseInt(v(0x165))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xecf2c));const a11b=(function(){let a=!![];return function(b,c){const w=a11d;if(w(0x159)===w(0x152))d(e[w(0x14e)](f));else{const e=a?function(){const x=w;if(c){if(x(0x15b)===x(0x15b)){const f=c[x(0x161)](b,arguments);return c=null,f;}else{const h=d[x(0x161)](e,arguments);return f=null,h;}}}:function(){};return a=![],e;}};}()),a11a=a11b(this,function(){const y=a11d;return a11a['toString']()[y(0x171)]('(((.+)+)+)+$')[y(0x16a)]()[y(0x162)](a11a)[y(0x171)]('(((.+)+)+)+$');});a11a();var __awaiter=this&&this[a11z(0x155)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const D=a11d;function h(k){const A=a11d;if('qbOIs'!==A(0x16f))c(d);else try{j(d[A(0x15f)](k));}catch(m){g(m);}}function i(k){const B=a11d;try{if(B(0x167)!==B(0x156))j(d[B(0x14e)](k));else{if(e){const m=i['apply'](j,arguments);return k=null,m;}}}catch(m){g(m);}}function j(k){const C=a11d;k['done']?f(k['value']):e(k['value'])[C(0x151)](h,i);}j((d=d[D(0x161)](a,b||[]))[D(0x15f)]());});};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[a11z(0x14d)]({'name':a11z(0x169),'aliases':['ti'],'usage':a11z(0x166),'validOpts':[a11z(0x15d)]},function(){return __awaiter(this,void 0x0,void 0x0,function*(){const E=a11d;try{const a=new AWS();let b=yield a['chooseInstance']();if((b===null||b===void 0x0?void 0x0:b['status'])===E(0x15a)){let c=yield Actions[E(0x15e)](E(0x14a)+b[E(0x163)]+E(0x154));if(c)a['ec2terminateInstance']({'instanceId':b[E(0x14b)]});else{if(E(0x170)!==E(0x170))try{i(j[E(0x14e)](k));}catch(f){m(f);}else Log[E(0x14c)](E(0x160)+b[E(0x163)]+E(0x15c));}}else Log['error'](E(0x168));}catch(f){console[E(0x14c)](f),process['exit'](0x0);}});},a11u);
@@ -1 +1 @@
1
- function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x194;var f=c[d];return f;},a12d(a,b);}(function(a,b){var u=a12d,c=a();while(!![]){try{var d=-parseInt(u(0x19a))/0x1*(-parseInt(u(0x198))/0x2)+parseInt(u(0x199))/0x3+-parseInt(u(0x19f))/0x4*(-parseInt(u(0x19e))/0x5)+parseInt(u(0x194))/0x6+-parseInt(u(0x1a2))/0x7*(-parseInt(u(0x196))/0x8)+parseInt(u(0x1a1))/0x9+-parseInt(u(0x195))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x73582));function a12c(){var x=['35nZSgED','4421280AqvQKX','30741940Jkbgzh','636824VqIlEz','search','55058QhqhAy','1578882NNpbBc','22cVwGTK','(((.+)+)+)+$','apply','constructor','15CBDayn','818780UeVztL','toString','5991588FtfsEF'];a12c=function(){return x;};return a12c();}var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){var v=a12d;if(c){var e=c[v(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var w=a12d;return a12a[w(0x1a0)]()[w(0x197)](w(0x19b))[w(0x1a0)]()[w(0x19d)](a12a)[w(0x197)](w(0x19b));});a12a();import'./build.js';import'./docker.sub.cmd.js';
1
+ (function(a,b){var u=a12d,c=a();while(!![]){try{var d=parseInt(u(0x167))/0x1+parseInt(u(0x169))/0x2+-parseInt(u(0x165))/0x3+parseInt(u(0x161))/0x4+parseInt(u(0x168))/0x5*(parseInt(u(0x16b))/0x6)+-parseInt(u(0x164))/0x7+-parseInt(u(0x16a))/0x8*(parseInt(u(0x160))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x7034a));var a12b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){var v=a12d;return a12a[v(0x162)]()['search'](v(0x163))['toString']()[v(0x166)](a12a)['search'](v(0x163));});a12a();function a12c(){var w=['361969qXWUCy','1346445mdPOiq','62488sEaViP','72zUHber','18TOJkgC','411633GAAOuy','3208904QaYaFh','toString','(((.+)+)+)+$','5505990JhILpn','1036527mUMwmz','constructor'];a12c=function(){return w;};return a12c();}import'./build.js';function a12d(a,b){var c=a12c();return a12d=function(d,e){d=d-0x160;var f=c[d];return f;},a12d(a,b);}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a13E=a13d;function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x90;let f=c[d];return f;},a13d(a,b);}(function(a,b){const x=a13d,c=a();while(!![]){try{const d=parseInt(x(0xbf))/0x1+-parseInt(x(0xc1))/0x2+-parseInt(x(0xa8))/0x3*(-parseInt(x(0xac))/0x4)+parseInt(x(0x9b))/0x5+parseInt(x(0xae))/0x6*(parseInt(x(0xaf))/0x7)+-parseInt(x(0xb8))/0x8+-parseInt(x(0xab))/0x9*(-parseInt(x(0xa6))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xaffa8));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const y=a13d;return a13a[y(0xb5)]()[y(0xb6)](y(0xc6))[y(0xb5)]()[y(0xa2)](a13a)[y(0xb6)](y(0xc6));});function a13c(){const I=['constructor',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20(','getProjectMeteorVersion','NsWUH','377240AhEAbk','getGlobalMeteorVersion','3009UJdQym','apply','maka\x20build:docker','99PNGkzU','548pzAtlP','pHaoT','1128jGSYFC','4711nhsMUW','WAwBM',').\x20Update?','--release','findSubCommand','value','toString','search','asyeK','9891584JdnQVQ','This\x20project\x27s\x20meteor\x20version\x20(','splice','argv','confirm','--force','OOrpg','911921jtcRVW','runSubCommand','1241046qCmyOe','DGTcV','Aborted.','invokeMeteorCommand','AWLZZ','(((.+)+)+)+$','error','fsi','throw','mAWcj','eLBPR','slice','app.tar.gz','TqnAc','ZmWYO','force','next','eefXj','done','4934795oWsPDH','kNiZm','existsSync','maka\x20build','build','forEach','pathFromProject'];a13c=function(){return I;};return a13c();}a13a();var __awaiter=this&&this['__awaiter']||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const z=a13d;z(0x9c)===z(0x9c)?g(f):this['runSubCommand'](d,e,f);});}return new(c||(c=Promise))(function(f,g){const D=a13d;function h(k){const A=a13d;try{j(d[A(0x98)](k));}catch(l){g(l);}}function i(k){const B=a13d;try{B(0xb7)===B(0xb7)?j(d[B(0x90)](k)):c(d);}catch(m){g(m);}}function j(k){const C=a13d;C(0x91)!==C(0xb0)?k[C(0x9a)]?f(k['value']):e(k[C(0xb4)])['then'](h,i):c(d);}j((d=d['apply'](a,b||[]))[D(0x98)]());});};import a13u from'path';import a13v from'fs';import a13w from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command['create']({'name':'build','usage':'maka\x20build\x20[--force]','validOpts':[a13E(0x97)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'examples':[a13E(0x9e),a13E(0xaa)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const F=a13d;if(F(0xa5)===F(0x96)){const d=g?function(){const G=F;if(d){const u=q[G(0xa9)](r,arguments);return s=null,u;}}:function(){};return l=![],d;}else try{let d=a[0x0],f=this[F(0xb3)](d);if(f)this[F(0xc0)](d,a,b);else{if(F(0x95)!=='TqnAc')return f instanceof g?h:new i(function(m){m(k);});else{let h=b[F(0x97)];if(!h){if(F(0x99)!==F(0xc5)){const k=this[F(0xc8)][F(0xa7)](),l=this['fsi'][F(0xa4)](),m=a13w['gt'](k,l);if(m){if(F(0xbe)==='lGqFo'){const o=d[F(0xa9)](e,arguments);return f=null,o;}else{const o=yield Actions[F(0xbc)](F(0xb9)+l+F(0xa3)+k+F(0xb1));if(o){if(F(0x92)===F(0x92))this[F(0xc8)]['invokeMeteorCommand']('update',[F(0xb2),k]);else try{i(j[F(0x90)](k));}catch(q){m(q);}}}}}else try{i(j[F(0x98)](k));}catch(r){m(r);}}let i=[this[F(0xc8)][F(0xa1)]({'pathParts':[F(0x9f)]})]['concat'](process[F(0xbb)][F(0x93)](0x3)),j=a13u['join'](this['fsi'][F(0xa1)]({}),F(0x9f),F(0x94));if(a13v[F(0x9d)](j)){let r=h!==null&&h!==void 0x0?h:yield Actions[F(0xbc)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');if(!r)throw Log[F(0xc7)](F(0xc3));}i[F(0xa0)]((s,t)=>{const H=F;if(H(0xad)===H(0xad))s===H(0xbd)&&i[H(0xba)](t,0x2);else return c['toString']()[H(0xb6)]('(((.+)+)+)+$')[H(0xb5)]()[H(0xa2)](d)[H(0xb6)](H(0xc6));}),this[F(0xc8)][F(0xc4)](F(0x9f),i);}}}catch(s){F(0xc2)!=='DGTcV'?c[F(0xba)](d,0x2):(console[F(0xc7)](s),process['exit'](0x0));}});});export default BuildCommand;
1
+ const a13B=a13d;(function(a,b){const x=a13d,c=a();while(!![]){try{const d=parseInt(x(0x13a))/0x1+parseInt(x(0x146))/0x2+parseInt(x(0x11b))/0x3*(-parseInt(x(0x143))/0x4)+parseInt(x(0x145))/0x5*(-parseInt(x(0x121))/0x6)+parseInt(x(0x122))/0x7*(-parseInt(x(0x136))/0x8)+parseInt(x(0x12d))/0x9*(-parseInt(x(0x119))/0xa)+parseInt(x(0x141))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x6d9b3));const a13b=(function(){let a=!![];return function(b,c){const y=a13d;if(y(0x128)!==y(0x128)){const e=d['apply'](e,arguments);return f=null,e;}else{const e=a?function(){const z=y;if(z(0x11f)!==z(0x11f))c(d);else{if(c){if(z(0x123)==='FqkPL'){const g=c[z(0x138)](b,arguments);return c=null,g;}else c(d);}}}:function(){};return a=![],e;}};}()),a13a=a13b(this,function(){const A=a13d;return a13a[A(0x12e)]()[A(0x131)]('(((.+)+)+)+$')['toString']()[A(0x12b)](a13a)['search'](A(0x144));});a13a();function a13c(){const J=['getGlobalMeteorVersion','findSubCommand','forEach','384EliZwW','argv','apply','YjQNl','176893FSzCyy','then','This\x20project\x27s\x20meteor\x20version\x20(','invokeMeteorCommand','pathFromProject','error','create','17509107UffUWW','getProjectMeteorVersion','917452RAkRNS','(((.+)+)+)+$','45gBeCty','978894WIHAxW','YAlnY','fsi','splice','runSubCommand','join','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','confirm','26380VxWEti','next','6JdaTPe','DmtFT','app.tar.gz','update','vnnNU','build','141588tfgGMm','44009OJoOUg','FqkPL','--release','WSoOv','maka\x20build:docker','done','hilaj','value','__awaiter','constructor','SiBkL','2853qBWdNC','toString','lkxha','qfuPF','search',')\x20is\x20behind\x20your\x20installed\x20meteor\x20version\x20('];a13c=function(){return J;};return a13c();}var __awaiter=this&&this[a13B(0x12a)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){const C=a13d;if(C(0x125)!==C(0x125))try{i(j['throw'](k));}catch(i){m(i);}else g(f);});}return new(c||(c=Promise))(function(f,g){const G=a13d;function h(k){const D=a13d;try{j(d[D(0x11a)](k));}catch(l){g(l);}}function i(k){const E=a13d;if(E(0x147)===E(0x147))try{j(d['throw'](k));}catch(l){if(E(0x12c)==='nENYS')try{i(j[E(0x11a)](k));}catch(o){m(o);}else g(l);}else d(e[E(0x11a)](f));}function j(k){const F=a13d;k[F(0x127)]?f(k[F(0x129)]):e(k[F(0x129)])['then'](h,i);}j((d=d[G(0x138)](a,b||[]))['next']());});};import a13u from'path';import a13v from'fs';import a13w from'semver';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x112;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a13B(0x140)]({'name':a13B(0x120),'usage':'maka\x20build\x20[--force]','validOpts':['force'],'description':a13B(0x117),'mustBeInMakaProject':!![],'examples':['maka\x20build',a13B(0x126)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const H=a13d;try{let c=a[0x0],d=this[H(0x134)](c);if(d)H(0x139)!==H(0x139)?this[H(0x114)](d,e,f):this[H(0x114)](c,a,b);else{let g=b['force'];if(!g){if(H(0x130)==='qfuPF'){const j=this['fsi'][H(0x133)](),k=this['fsi'][H(0x142)](),l=a13w['gt'](j,k);if(l){const m=yield Actions[H(0x118)](H(0x13c)+k+H(0x132)+j+').\x20Update?');if(m){if(H(0x11c)!==H(0x11c))return c['toString']()[H(0x131)](H(0x144))[H(0x12e)]()[H(0x12b)](d)[H(0x131)](H(0x144));else this[H(0x112)][H(0x13d)](H(0x11e),['--release',j]);}}}else h[H(0x127)]?i(j[H(0x129)]):k(l['value'])[H(0x13b)](m,n);}let h=[this['fsi'][H(0x13e)]({'pathParts':['build']})]['concat'](process[H(0x137)]['slice'](0x3)),i=a13u[H(0x115)](this['fsi'][H(0x13e)]({}),'build',H(0x11d));if(a13v['existsSync'](i)){if(H(0x12f)!=='lkxha')this[H(0x112)][H(0x13d)](H(0x11e),[H(0x124),b]);else{let q=g!==null&&g!==void 0x0?g:yield Actions[H(0x118)](H(0x116));if(!q)throw Log[H(0x13f)]('Aborted.');}}h[H(0x135)]((r,s)=>{const I=H;r==='--force'&&h[I(0x113)](s,0x2);}),this['fsi'][H(0x13d)](H(0x120),h);}}catch(r){console['error'](r),process['exit'](0x0);}});});export default BuildCommand;
@@ -1 +1 @@
1
- const a14L=a14d;(function(a,b){const I=a14d,c=a();while(!![]){try{const d=parseInt(I(0x147))/0x1+-parseInt(I(0x19b))/0x2+-parseInt(I(0x170))/0x3*(-parseInt(I(0x15c))/0x4)+-parseInt(I(0x17b))/0x5*(parseInt(I(0x15f))/0x6)+-parseInt(I(0x182))/0x7*(-parseInt(I(0x15d))/0x8)+-parseInt(I(0x15a))/0x9*(-parseInt(I(0x19e))/0xa)+parseInt(I(0x158))/0xb*(-parseInt(I(0x163))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xd6196));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a14d;if(c){if(J(0x140)===J(0x140)){const e=c[J(0x16a)](b,arguments);return c=null,e;}else{const h=d[J(0x16a)](e,arguments);return f=null,h;}}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const K=a14d;return a14a['toString']()['search'](K(0x148))[K(0x19c)]()[K(0x194)](a14a)[K(0x141)](K(0x148));});a14a();var __awaiter=this&&this[a14L(0x192)]||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 P=a14d;function h(k){const M=a14d;try{j(d['next'](k));}catch(l){if(M(0x179)!==M(0x179)){const n=this['fsi'][M(0x159)](h[M(0x14c)](M(0x177),M(0x195),'_keys'));!n&&o['mkdirSync'](p['join'](M(0x177),M(0x195),M(0x178))),k['copyFileSync'](l[M(0x175)],m[M(0x14c)](n,M(0x177),M(0x195),M(0x178),M(0x1a0)));}else g(l);}}function i(k){const N=a14d;try{'rqidA'!=='DUPiD'?j(d[N(0x18d)](k)):c=N(0x16d)+d['tag'];}catch(m){g(m);}}function j(k){const O=a14d;k[O(0x167)]?f(k[O(0x198)]):e(k[O(0x198)])[O(0x188)](h,i);}j((d=d[P(0x16a)](a,b||[]))[P(0x149)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a14c(){const S=['-t\x20','build','pQXOg','1212yPaEyU','readFileLines','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','WlRnP','ignore','cert','meteor.bat','config','_keys','EQBIf','inherit','832765EQcjjW','push','confirm','mkdirSync','pathFromProject','AvCMG','force','7qZcdvg','meteor','.meteor','getProjectConfig','getGlobalConfig','config.json','then','getProjectsMeteorNodeVersion','win32','Mobile\x20server\x20port:\x20','error','throw','app','platforms',':latest','\x20npm\x20install\x20--save','__awaiter','os.linux.x86_64','constructor','docker','--architecture','length','value','trGVQ','tag','24124tUWaAo','toString','443','90yJBdIV','wEEkQ','cert.pem','appName','rjIPs','search','setProjectConfig','Stored\x20server\x20config\x20to\x20','create','.maka','--server=','200888UHiiXS','(((.+)+)+)+$','next','notice','dockerfile','join','owJOD','serverName','findGenerator','fsi','://','kdVXR','invoke','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','platform','findProjectDirectory','vsjlG','11pjIYoJ','isDirectory','945486UAHihI','https','12128jMtnZo','4257992TirbgO','maka\x20build:docker','54QXtPVR','http','serverPort','Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!','6186744hAoLyz','findAppDirectory','Try\x20\x27maka\x20run\x20--docker\x27','checkConfigExists','done','exit','Tagging\x20Docker\x20Image:\x20','apply','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','app.tar.gz'];a14c=function(){return S;};return a14c();}import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x13f;let f=c[d];return f;},a14d(a,b);}import{Log}from'../../tools/log/log.class.js';Command[a14L(0x144)]({'name':a14L(0x195),'usage':'maka\x20build:docker','validOpts':[a14L(0x181),a14L(0x19a)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14L(0x15e)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const Q=a14d;try{if(Q(0x180)!==Q(0x180))this[Q(0x150)][Q(0x142)](Q(0x14e),e),this['fsi'][Q(0x142)](Q(0x161),f),g[Q(0x14a)](Q(0x143)+h[Q(0x14c)]('.maka',Q(0x187)));else{const d=yield this['fsi'][Q(0x186)](),f=yield this[Q(0x150)][Q(0x185)]();let g=process[Q(0x155)]===Q(0x18a)?Q(0x176):Q(0x183),h=this[Q(0x150)][Q(0x17f)]({}),i=a14v[Q(0x14c)](h,'Dockerfile');if(!this[Q(0x150)]['isFile'](i)){const s=a14x[Q(0x14f)](Q(0x14b));s&&(yield s[Q(0x153)]([Q(0x14b)],{'cwd':h,'config':f}));}const j=this[Q(0x150)][Q(0x166)]('docker');if(!j){const t=a14x[Q(0x14f)]('config');t&&('wEEkQ'===Q(0x19f)?yield t[Q(0x153)]([Q(0x195)],{'cwd':h,'config':f,'isDocker':!![]}):(f(g+Q(0x191),{'cwd':this[Q(0x150)][Q(0x164)](),'stdio':Q(0x174)}),h(i+'\x20\x20'+j[Q(0x14c)]('\x20'),{'cwd':this['fsi'][Q(0x164)](),'stdio':Q(0x17a)})));}if(this['fsi']['isFile'](d[Q(0x175)])){const v=this['fsi'][Q(0x159)](a14v[Q(0x14c)](Q(0x177),Q(0x195),'_keys'));!v&&(Q(0x199)!==Q(0x16f)?a14w[Q(0x17e)](a14v[Q(0x14c)]('config','docker',Q(0x178))):(f(g+Q(0x191),{'cwd':this[Q(0x150)][Q(0x164)](),'stdio':Q(0x174)}),h(i+'\x20'+j[Q(0x14c)]('\x20'),{'cwd':this[Q(0x150)][Q(0x164)](),'stdio':Q(0x17a)}))),a14w['copyFileSync'](d['cert'],a14v['join'](h,Q(0x177),Q(0x195),Q(0x178),Q(0x1a0)));}let k=this[Q(0x150)][Q(0x17f)]({}),l=this[Q(0x150)][Q(0x189)](),m=Q(0x16d)+paramCase(f[Q(0x13f)])+Q(0x190);b['tag']&&(m=Q(0x16d)+b['tag']);let n=[Q(0x16e),a14v[Q(0x14c)](this[Q(0x150)][Q(0x156)](),'build'),Q(0x196),Q(0x193)],o=this[Q(0x150)][Q(0x171)](a14v['join'](this[Q(0x150)][Q(0x17f)]({}),Q(0x18e),Q(0x184),Q(0x18f))),p=o[Q(0x197)]>0x2?!![]:![];if(p){if('WlRnP'!==Q(0x173))h[Q(0x167)]?i(j[Q(0x198)]):k(l[Q(0x198)])[Q(0x188)](m,n);else{let y=f[Q(0x14e)]?f['serverName']:yield Actions['ask'](Q(0x154)),z=f[Q(0x161)]?f['serverPort']:yield Actions['ask'](Q(0x18b));if(y[Q(0x197)]==0x0||z[Q(0x197)]==0x0)throw Q(0x162);let A=z==Q(0x19d)?Q(0x15b):Q(0x160);n[Q(0x17c)](Q(0x146)+A+Q(0x151)+y+':'+z);if(!f[Q(0x14e)]&&!f['serverPort']){let B=yield Actions[Q(0x17d)]('Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?');B&&(this[Q(0x150)][Q(0x142)](Q(0x14e),y),this[Q(0x150)][Q(0x142)]('serverPort',z),Log[Q(0x14a)](Q(0x143)+a14v[Q(0x14c)](Q(0x145),Q(0x187))));}}}let q=a14v['join'](this['fsi'][Q(0x17f)]({}),Q(0x16e),Q(0x16c));if(a14w['existsSync'](q)){const C=yield Actions['confirm'](Q(0x172));let D=C;if(D){if(Q(0x152)!==Q(0x14d))execSync(g+Q(0x191),{'cwd':this[Q(0x150)]['findAppDirectory'](),'stdio':'ignore'}),execSync(g+'\x20\x20'+n['join']('\x20'),{'cwd':this[Q(0x150)]['findAppDirectory'](),'stdio':Q(0x17a)});else{const F=g?function(){const R=Q;if(F){const G=q[R(0x16a)](r,arguments);return s=null,G;}}:function(){};return l=![],F;}}}else execSync(g+Q(0x191),{'cwd':this[Q(0x150)][Q(0x164)](),'stdio':Q(0x174)}),execSync(g+'\x20'+n[Q(0x14c)]('\x20'),{'cwd':this[Q(0x150)][Q(0x164)](),'stdio':'inherit'});Log[Q(0x14a)](Q(0x16b)+l),Log[Q(0x14a)](Q(0x169)+m),Log[Q(0x14a)]('Build\x20Path:\x20'+k);const r='docker\x20build\x20--build-arg\x20NODE_VERSION='+l+'\x20'+m+'\x20'+k;execSync(r,{'stdio':'inherit'}),Log[Q(0x14a)](Q(0x165));}}catch(F){if(Q(0x157)!=='SMQhe')console[Q(0x18c)](F),process[Q(0x168)](0x0);else try{i(j[Q(0x149)](k));}catch(H){m(H);}}});},a14u);
1
+ const a14K=a14d;(function(a,b){const G=a14d,c=a();while(!![]){try{const d=parseInt(G(0xc8))/0x1+parseInt(G(0xbf))/0x2+parseInt(G(0xf2))/0x3*(parseInt(G(0xd2))/0x4)+parseInt(G(0xf1))/0x5*(parseInt(G(0xc7))/0x6)+parseInt(G(0xfa))/0x7*(-parseInt(G(0xb3))/0x8)+parseInt(G(0xea))/0x9+-parseInt(G(0xa4))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x73bef));const a14b=(function(){let a=!![];return function(b,c){const H=a14d;if(H(0xad)===H(0xae)){const e=this[H(0xf0)]['isDirectory'](h[H(0xe6)](H(0xe3),H(0xb7),H(0xef)));!e&&o[H(0xe4)](p[H(0xe6)](H(0xe3),H(0xb7),H(0xef))),k[H(0xa7)](l[H(0xd4)],m[H(0xe6)](n,'config','docker',H(0xef),H(0xe5)));}else{const e=a?function(){const I=H;if(c){const f=c[I(0xdd)](b,arguments);return c=null,f;}}:function(){};return a=![],e;}};}()),a14a=a14b(this,function(){const J=a14d;return a14a[J(0xb6)]()[J(0xca)](J(0xd3))[J(0xb6)]()[J(0xc4)](a14a)[J(0xca)](J(0xd3));});a14a();var __awaiter=this&&this[a14K(0xf8)]||function(a,b,c,d){function e(f){return f instanceof c?f:new c(function(g){g(f);});}return new(c||(c=Promise))(function(f,g){const O=a14d;function h(k){const L=a14d;try{L(0xb2)!==L(0xb4)?j(d['next'](k)):h[L(0xcd)]?i(j[L(0xc9)]):k(l[L(0xc9)])[L(0xa8)](m,n);}catch(m){g(m);}}function i(k){const M=a14d;try{M(0xfc)===M(0xf7)?c=M(0xdc)+d[M(0xc1)]:j(d[M(0xa1)](k));}catch(m){g(m);}}function j(k){const N=a14d;if(N(0xfb)===N(0xfb))k[N(0xcd)]?f(k[N(0xc9)]):e(k[N(0xc9)])['then'](h,i);else{const m=d[N(0xdd)](e,arguments);return f=null,m;}}j((d=d[O(0xdd)](a,b||[]))[O(0xed)]());});};import a14u from'./build.js';import a14v from'path';import a14w from'fs';import{execSync}from'child_process';import{paramCase}from'change-case';function a14c(){const R=['search','meteor.bat','cPRfM','done','.meteor','uTuBD','push','443','2764tYCHDT','(((.+)+)+)+$','cert','Would\x20you\x20like\x20to\x20save\x20the\x20server\x20config\x20in\x20your\x20.maka/config.json\x20file?','docker\x20build\x20--build-arg\x20NODE_VERSION=','appName','platform','ask','force','notice','-t\x20','apply','Try\x20\x27maka\x20run\x20--docker\x27','findGenerator','maka\x20build:docker','Mobile\x20server\x20IP\x20or\x20fully\x20qualified\x20domain\x20name\x20(FQDN):\x20','https','config','mkdirSync','cert.pem','join','dockerfile','Tagging\x20Docker\x20Image:\x20','meteor','4827582Biqdok','confirm','ignore','next','\x20npm\x20install\x20--save','_keys','fsi','695DXYhYf','1491YOgqzv','config.json','Using\x20Meteor\x27s\x20Project\x27s\x20Node\x20Version:\x20','inherit','length','wfxvY','__awaiter','://','329119xhuLcQ','tigQe','KjIZZ','throw','http','Stored\x20server\x20config\x20to\x20','11510740NzOvzd','LfRrg','serverPort','copyFileSync','then','platforms','getProjectsMeteorNodeVersion','--architecture','getGlobalConfig','gYvVv','NTYPo','serverName','app.tar.gz','setProjectConfig','YugmP','56xhsNHV','sYEwM','os.linux.x86_64','toString','docker','isFile','readFileLines','checkConfigExists','pathFromProject','Mobile\x20server\x20port:\x20','win32','findAppDirectory','918244lVLrbr','.maka','tag','build','getProjectConfig','constructor','invoke','app','12354qaPoKe','329140pGhjDd','value'];a14c=function(){return R;};return a14c();}import a14x from'../../generators/maka.gen.js';import{Actions}from'../../tools/actions/actions.class.js';function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0xa1;let f=c[d];return f;},a14d(a,b);}import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a14K(0xb7),'usage':a14K(0xe0),'validOpts':[a14K(0xda),a14K(0xc1)],'description':'Build\x20your\x20application\x20into\x20the\x20build\x20folder\x20and\x20generate\x20a\x20docker\x20image.','mustBeInMakaProject':!![],'examples':[a14K(0xe0)]},function(a,b){return __awaiter(this,void 0x0,void 0x0,function*(){const P=a14d;try{if(P(0xcf)===P(0xcf)){const c=yield this[P(0xf0)][P(0xac)](),d=yield this[P(0xf0)][P(0xc3)]();let f=process[P(0xd8)]===P(0xbd)?P(0xcb):P(0xe9),g=this[P(0xf0)][P(0xbb)]({}),h=a14v[P(0xe6)](g,'Dockerfile');if(!this['fsi'][P(0xb8)](h)){const r=a14x[P(0xdf)](P(0xe7));r&&(yield r[P(0xc5)]([P(0xe7)],{'cwd':g,'config':d}));}const i=this[P(0xf0)][P(0xba)]('docker');if(!i){const s=a14x['findGenerator'](P(0xe3));s&&('SxYDK'!=='hnGKe'?yield s[P(0xc5)]([P(0xb7)],{'cwd':g,'config':d,'isDocker':!![]}):d(e['next'](f)));}if(this[P(0xf0)][P(0xb8)](c[P(0xd4)])){if('ildlf'==='ildlf'){const u=this['fsi']['isDirectory'](a14v[P(0xe6)]('config',P(0xb7),P(0xef)));!u&&a14w[P(0xe4)](a14v['join']('config',P(0xb7),P(0xef))),a14w[P(0xa7)](c[P(0xd4)],a14v['join'](g,'config','docker',P(0xef),P(0xe5)));}else try{i(j[P(0xa1)](k));}catch(w){m(w);}}let j=this[P(0xf0)][P(0xbb)]({}),k=this[P(0xf0)][P(0xaa)](),l=P(0xdc)+paramCase(d[P(0xd7)])+':latest';b[P(0xc1)]&&(P(0xcc)!==P(0xa5)?l='-t\x20'+b['tag']:c(d));let m=[P(0xc2),a14v['join'](this[P(0xf0)]['findProjectDirectory'](),'build'),P(0xab),P(0xb5)],n=this[P(0xf0)][P(0xb9)](a14v[P(0xe6)](this[P(0xf0)][P(0xbb)]({}),P(0xc6),P(0xce),P(0xa9))),o=n[P(0xf6)]>0x2?!![]:![];if(o){let x=d[P(0xaf)]?d[P(0xaf)]:yield Actions[P(0xd9)](P(0xe1)),y=d[P(0xa6)]?d[P(0xa6)]:yield Actions[P(0xd9)](P(0xbc));if(x[P(0xf6)]==0x0||y[P(0xf6)]==0x0)throw'Server\x20name\x20or\x20port\x20number\x20are\x20not\x20long\x20enough!';let z=y==P(0xd1)?P(0xe2):P(0xa2);m[P(0xd0)]('--server='+z+P(0xf9)+x+':'+y);if(!d['serverName']&&!d[P(0xa6)]){let A=yield Actions['confirm'](P(0xd5));A&&(this['fsi'][P(0xb1)](P(0xaf),x),this[P(0xf0)][P(0xb1)](P(0xa6),y),Log[P(0xdb)](P(0xa3)+a14v['join'](P(0xc0),P(0xf3))));}}let p=a14v[P(0xe6)](this[P(0xf0)]['pathFromProject']({}),P(0xc2),P(0xb0));if(a14w['existsSync'](p)){const B=yield Actions[P(0xeb)]('Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?');let C=B;C&&(execSync(f+P(0xee),{'cwd':this[P(0xf0)][P(0xbe)](),'stdio':P(0xec)}),execSync(f+'\x20\x20'+m[P(0xe6)]('\x20'),{'cwd':this['fsi']['findAppDirectory'](),'stdio':P(0xf5)}));}else execSync(f+P(0xee),{'cwd':this[P(0xf0)]['findAppDirectory'](),'stdio':P(0xec)}),execSync(f+'\x20'+m[P(0xe6)]('\x20'),{'cwd':this[P(0xf0)][P(0xbe)](),'stdio':P(0xf5)});Log['notice'](P(0xf4)+k),Log['notice'](P(0xe8)+l),Log['notice']('Build\x20Path:\x20'+j);const q=P(0xd6)+k+'\x20'+l+'\x20'+j;execSync(q,{'stdio':P(0xf5)}),Log[P(0xdb)](P(0xde));}else{const E=g?function(){const Q=P;if(E){const F=q[Q(0xdd)](r,arguments);return s=null,F;}}:function(){};return l=![],E;}}catch(E){console['error'](E),process['exit'](0x0);}});},a14u);