@maka/maka-cli 5.0.11 → 5.0.13

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 (163) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/tool.js +1 -1
  145. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  146. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  148. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  152. package/bundle/obf/src/tools/https/https.class.js +1 -1
  153. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  154. package/bundle/obf/src/tools/log/log.class.js +1 -1
  155. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/options/options.class.js +1 -1
  157. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  158. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  160. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  163. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.0.11",
3
+ "version": "5.0.13",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -1 +1 @@
1
- function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0x9c;let f=c[d];return f;},a0d(a,b);}function a0c(){const A=['_commands','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','validateMakaProject','pallet','Alias','4929441PjGuRT','mustBeLoggedIn','117lKlQXb','addCommand','bright','Please\x20run\x20\x22maka\x20login\x22','localeCompare','\x20not\x20found','Too\x20few\x20arguments','_handler','options','698115IxmXok','DARK','Command\x20','error','number','usage','Too\x20many\x20options','assign','maxOptsLength','Command.create\x20requires\x20some\x20options!','addCommand\x20requires\x20a\x20Command\x20instance','call','bind','split','length','Sub-Commands:','sort','generate','toString','194544XKGwwJ','(((.+)+)+)+$','fsi','processAndRunCommand','Description','apply','shortDesc','mustHaveMeteorInstalled','find','keys','slice','3QkrygK','10hZkhtg','constructor','Command.create\x20requires\x20a\x20handler\x20function!','validateUserIsLoggedIn','push','forEach','Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details','maxArgLength','Command\x20format\x20is\x20incorrect','1141497krLBOQ','name','Too\x20many\x20arguments','minOptsLength','search','validateMeteorInstall','Too\x20few\x20options','10gIsnPS','2084358ETqvkz','672316UQozAI','notice','function','header','Command\x20not\x20found','Command\x20requires\x20a\x20handler\x20function','experimental','minArgLength','Please\x20run\x20\x22maka\x20install\x20meteor\x22','run','murder','maybeProxyCommandToMeteor','Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object','3562302ZaHkpS','There\x20is\x20no\x20Meteor\x20application\x20here','(expermiental)\x20','match','aliases','exit'];a0c=function(){return A;};return a0c();}const a0q=a0d;(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0xdf))/0x1+parseInt(n(0xbb))/0x2*(parseInt(n(0xa9))/0x3)+-parseInt(n(0xbc))/0x4*(parseInt(n(0xaa))/0x5)+parseInt(n(0xc9))/0x6+-parseInt(n(0xb3))/0x7+-parseInt(n(0x9e))/0x8*(parseInt(n(0xd6))/0x9)+-parseInt(n(0xba))/0xa*(-parseInt(n(0xd4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x8b4b5));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0xa3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a[p(0x9d)]()[p(0xb7)](p(0x9f))[p(0x9d)]()[p(0xab)](a0a)[p(0xb7)](p(0x9f));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';let _prevCmd='';export class Command extends Tool{['options'];[a0q(0xcf)];constructor(a,b){const r=a0q;super();if(!a)throw new Error(r(0xc8));if(!a[r(0xb4)])throw new Error('Command\x20requires\x20a\x20name');if(typeof b!==r(0xbe))throw new Error(r(0xc1));this[r(0xde)]=Object[r(0xe6)]({},a),this[r(0xb4)]=this[r(0xde)][r(0xb4)],this[r(0xcf)]=[],this['_handler']=b[r(0xeb)](this);}static['create'](a,b,c){const s=a0q;if(!a)throw new Error(s(0xe8));if(typeof b!==s(0xbe))throw new Error(s(0xac));const d=new Command(a,b);return c=c||a0f,Object[s(0xe6)](d,{'parent':c?.[s(0xde)]?.[s(0xb4)]}),c['addCommand'](d),d;}[a0q(0xd7)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0xe9));this[t(0xcf)]['push'](a);}async['run'](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this['fsi']['getGlobalConfig'](),d=c[u(0xd2)]==='light'?ColorMode['LIGHT']:ColorMode[u(0xe0)];Log['setColorMode'](d);}catch(f){Log[u(0xe2)](f),process['exit'](0x0);}return await this['invoke'](a,b);}catch(g){process[u(0xce)](0x1);}}async['invoke'](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this['options'];try{if(this[v(0xde)][v(0xb4)]!=='generate'){if(!isRoot){const g=(a[0x0]===_prevCmd||a[v(0xed)]===0x0)&&this[v(0xcf)][v(0xed)]>=0x0,h=b['help']||b['h'];if(g&&h){if(this[v(0xcf)][v(0xed)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[v(0xde)]['mustBeInMakaProject']){const i=this[v(0xd1)]();if(!i)throw new MustBeInProjectError();}if(this[v(0xde)][v(0xd5)]){const j=await this[v(0xad)]();if(!j)throw new MustBeLoggedIn();}if(this['options'][v(0xa5)]){const k=this[v(0xb8)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[v(0xde)][v(0xc3)]==='number'){if(a['length']<this['options'][v(0xc3)]){Log[v(0xe2)](v(0xdc));throw new UsageError();}}if(typeof this['options'][v(0xb1)]===v(0xe3)){if(a[v(0xed)]>=this[v(0xde)][v(0xb1)]){Log[v(0xe2)](v(0xb5));throw new UsageError();}}if(typeof this[v(0xde)]['minOptsLength']===v(0xe3)){if(Object[v(0xa7)](b)[v(0xed)]<this[v(0xde)][v(0xb6)]){Log[v(0xe2)](v(0xb9));throw new UsageError();}}if(typeof this[v(0xde)]['maxOptsLength']==='number'){if(Object[v(0xa7)](b)[v(0xed)]>=this[v(0xde)][v(0xe7)]){Log[v(0xe2)](v(0xe5));throw new UsageError();}}}}b=await this['validateParams'](a,b,this['options']),_prevCmd=a[0x0];}return await this[v(0xdd)][v(0xea)](this,a,b);}catch(l){Log[v(0xe4)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log[v(0xbd)](v(0xee)),this['tableList'](this[v(0xcf)]),Log[v(0xbf)](v(0xb0));else{if(l instanceof MustBeInProjectError)Log['error']('You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command');else{if(l instanceof NoMeteorFoundError)Log[v(0xe2)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log[v(0xbd)](v(0xc4));else{if(l instanceof NoMeteorAppFoundError)Log[v(0xe2)](v(0xca));else l instanceof MustBeLoggedIn&&(Log[v(0xe2)](v(0xd0)),Log['notice'](v(0xd9)));}}}process['exit'](0x1);}}['tableList'](a){const w=a0q,b=new a0e({});b[w(0xae)](['Name',w(0xd3),w(0xa2)]),a[w(0xef)]((c,d)=>{const x=w;return c[x(0xb4)][x(0xda)](d[x(0xb4)]);})[w(0xaf)](c=>{const y=w;if(c['name']!==y(0xc6)&&c['name']!=='play'){const d=c[y(0xc2)](),e=d?y(0xcb)+c['shortDesc']():c[y(0xa4)]();b[y(0xae)]([c['name'],c[y(0xcd)](),e]);}}),Log[w(0xd8)](b[w(0x9d)]());}async[a0q(0xa1)](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0xec)](':');if(!d||d[z(0xed)]===0x0)throw z(0xb2);if(d[0x0]==='generate'||d[0x0]==='g'&&d[z(0xed)]>0x1){const h=this[z(0xcf)][z(0xa6)](j=>j[z(0xcc)](z(0x9c)));if(!h)throw z(0xc0);const i=d[z(0xa8)](0x1)['join'](':');return b['unshift'](i),await h['run'](b,c);}let f=this[z(0xcf)],g;for(const j of d){g=f[z(0xa6)](k=>k[z(0xcc)](j));if(!g)try{await this[z(0xa0)][z(0xc7)]();}catch(k){throw z(0xe1)+j+z(0xdb);}g&&(f=g[z(0xcf)]);}if(g){const l=await g[z(0xc5)](b,c);return l;}else throw'Command\x20not\x20found';}catch(m){Log['error'](m),process[z(0xce)](0x1);}}}
1
+ const a0q=a0d;function a0d(a,b){const c=a0c();return a0d=function(d,e){d=d-0xff;let f=c[d];return f;},a0d(a,b);}(function(a,b){const n=a0d,c=a();while(!![]){try{const d=-parseInt(n(0x129))/0x1*(-parseInt(n(0x128))/0x2)+parseInt(n(0x150))/0x3*(-parseInt(n(0x116))/0x4)+parseInt(n(0x134))/0x5*(parseInt(n(0x14d))/0x6)+parseInt(n(0x153))/0x7*(-parseInt(n(0x142))/0x8)+parseInt(n(0x117))/0x9+-parseInt(n(0x138))/0xa+parseInt(n(0x120))/0xb*(-parseInt(n(0x149))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a0c,0x5752b));const a0b=(function(){let a=!![];return function(b,c){const d=a?function(){const o=a0d;if(c){const e=c[o(0x14b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a0a=a0b(this,function(){const p=a0d;return a0a['toString']()[p(0x131)]('(((.+)+)+)+$')[p(0x108)]()['constructor'](a0a)[p(0x131)](p(0x11c));});a0a();import a0e from'cli-table';import a0f from'./commands/maka.cmd.js';import{Log,ColorMode}from'./tools/log/log.class.js';import{Tool}from'./tool.js';import{UsageError,UsageErrorWithSubs,MustBeInProjectError,NoMeteorAppFoundError,NoMeteorFoundError,MustBeLoggedIn}from'./error.js';function a0c(){const A=['minOptsLength','murder','pallet','Command.create\x20requires\x20a\x20handler\x20function!','mustHaveMeteorInstalled','Sub-Commands:','LIGHT','call','16AvkzrY','validateUserIsLoggedIn','Command\x20not\x20found','header','sort','setColorMode','maybeProxyCommandToMeteor','384SpyMIF','slice','apply','name','3762306qZWZHS','bright','error','124539SGdRwS','Too\x20few\x20arguments','find','403718JOiHUa','mustBeLoggedIn','number','getGlobalConfig','match','options','keys','Command\x20requires\x20a\x20name','Too\x20few\x20options','create','Command\x20','toString','invoke','light','help','usage','aliases','Command\x20requires\x20a\x20handler\x20function','Please\x20run\x20\x22maka\x20install\x20meteor\x22','addCommand\x20requires\x20a\x20Command\x20instance','assign','_handler','push','Please\x20run\x20\x22maka\x20login\x22','Command\x20format\x20is\x20incorrect','4enxfOJ','2862783cbhHAh','join','_commands','exit','tableList','(((.+)+)+)+$','unshift','generate','Name','235994Szpuoh','shortDesc','You\x20must\x20be\x20logged\x20in\x20to\x20run\x20this\x20command','split','validateMakaProject','You\x20must\x20be\x20in\x20an\x20maka\x20project\x20to\x20run\x20this\x20command','Alias','\x20not\x20found','330oMJCkh','2999tPaMCb','bind','validateMeteorInstall','mustBeInMakaProject','minArgLength','DARK','Too\x20many\x20options','function','search','addCommand','run','5NYVWzc','notice','maxArgLength','length','2389090jwsOIS','Description'];a0c=function(){return A;};return a0c();}let _prevCmd='';export class Command extends Tool{['options'];[a0q(0x119)];constructor(a,b){const r=a0q;super();if(!a)throw new Error('Command\x20requires\x20first\x20param\x20to\x20be\x20an\x20object');if(!a['name'])throw new Error(r(0x104));if(typeof b!==r(0x130))throw new Error(r(0x10e));this[r(0x102)]=Object[r(0x111)]({},a),this[r(0x14c)]=this[r(0x102)][r(0x14c)],this[r(0x119)]=[],this[r(0x112)]=b[r(0x12a)](this);}static[a0q(0x106)](a,b,c){const s=a0q;if(!a)throw new Error('Command.create\x20requires\x20some\x20options!');if(typeof b!==s(0x130))throw new Error(s(0x13d));const d=new Command(a,b);return c=c||a0f,Object['assign'](d,{'parent':c?.[s(0x102)]?.[s(0x14c)]}),c['addCommand'](d),d;}[a0q(0x132)](a){const t=a0q;if(!(a instanceof Command))throw new Error(t(0x110));this[t(0x119)]['push'](a);}async[a0q(0x133)](a,b){const u=a0q;try{a=a||[],b=b||{};try{const c=await this['fsi'][u(0x100)](),d=c[u(0x13c)]===u(0x10a)?ColorMode[u(0x140)]:ColorMode[u(0x12e)];Log[u(0x147)](d);}catch(f){Log[u(0x14f)](f),process[u(0x11a)](0x0);}return await this[u(0x109)](a,b);}catch(g){process[u(0x11a)](0x1);}}async[a0q(0x109)](a,b){const v=a0q,{usage:usage='',description:description='',shortDesc:c,examples:examples=[],isRoot:isRoot=![],requiredOpts:requiredOpts=[],validOpts:d,experimental:f}=this[v(0x102)];try{if(this[v(0x102)]['name']!=='generate'){if(!isRoot){const g=(a[0x0]===_prevCmd||a[v(0x137)]===0x0)&&this['_commands']['length']>=0x0,h=b[v(0x10b)]||b['h'];if(g&&h){if(this[v(0x119)][v(0x137)]>0x0)throw new UsageErrorWithSubs();throw new UsageError();}if(!h){if(this[v(0x102)][v(0x12c)]){const i=this[v(0x124)]();if(!i)throw new MustBeInProjectError();}if(this[v(0x102)][v(0x154)]){const j=await this[v(0x143)]();if(!j)throw new MustBeLoggedIn();}if(this[v(0x102)][v(0x13e)]){const k=this[v(0x12b)]();if(!k)throw new NoMeteorFoundError();}if(typeof this[v(0x102)][v(0x12d)]===v(0xff)){if(a['length']<this[v(0x102)][v(0x12d)]){Log[v(0x14f)](v(0x151));throw new UsageError();}}if(typeof this['options'][v(0x136)]===v(0xff)){if(a[v(0x137)]>=this[v(0x102)][v(0x136)]){Log['error']('Too\x20many\x20arguments');throw new UsageError();}}if(typeof this['options'][v(0x13a)]===v(0xff)){if(Object['keys'](b)[v(0x137)]<this[v(0x102)][v(0x13a)]){Log[v(0x14f)](v(0x105));throw new UsageError();}}if(typeof this[v(0x102)]['maxOptsLength']===v(0xff)){if(Object[v(0x103)](b)[v(0x137)]>=this[v(0x102)]['maxOptsLength']){Log[v(0x14f)](v(0x12f));throw new UsageError();}}}}b=await this['validateParams'](a,b,this[v(0x102)]),_prevCmd=a[0x0];}return await this[v(0x112)][v(0x141)](this,a,b);}catch(l){Log[v(0x10c)](description,examples,usage,c,requiredOpts,d,f);if(l instanceof UsageErrorWithSubs)Log['notice'](v(0x13f)),this[v(0x11b)](this[v(0x119)]),Log[v(0x145)]('Use\x20--help\x20for\x20any\x20sub-command\x20for\x20details');else{if(l instanceof MustBeInProjectError)Log['error'](v(0x125));else{if(l instanceof NoMeteorFoundError)Log[v(0x14f)]('Meteor\x20could\x20not\x20be\x20found\x20or\x20it\x20is\x20not\x20installed\x20correctly'),Log['notice'](v(0x10f));else{if(l instanceof NoMeteorAppFoundError)Log[v(0x14f)]('There\x20is\x20no\x20Meteor\x20application\x20here');else l instanceof MustBeLoggedIn&&(Log[v(0x14f)](v(0x122)),Log[v(0x135)](v(0x114)));}}}process[v(0x11a)](0x1);}}[a0q(0x11b)](a){const w=a0q,b=new a0e({});b[w(0x113)]([w(0x11f),w(0x126),w(0x139)]),a[w(0x146)]((c,d)=>{const x=w;return c[x(0x14c)]['localeCompare'](d[x(0x14c)]);})['forEach'](c=>{const y=w;if(c['name']!==y(0x13b)&&c['name']!=='play'){const d=c['experimental'](),e=d?'(expermiental)\x20'+c[y(0x121)]():c['shortDesc']();b[y(0x113)]([c[y(0x14c)],c[y(0x10d)](),e]);}}),Log[w(0x14e)](b[w(0x108)]());}async['processAndRunCommand'](a,b=[],c={}){const z=a0q;try{const d=a?.[z(0x123)](':');if(!d||d[z(0x137)]===0x0)throw z(0x115);if(d[0x0]===z(0x11e)||d[0x0]==='g'&&d[z(0x137)]>0x1){const h=this[z(0x119)]['find'](j=>j[z(0x101)]('generate'));if(!h)throw z(0x144);const i=d[z(0x14a)](0x1)[z(0x118)](':');return b[z(0x11d)](i),await h[z(0x133)](b,c);}let f=this[z(0x119)],g;for(const j of d){g=f[z(0x152)](k=>k[z(0x101)](j));if(!g)try{await this['fsi'][z(0x148)]();}catch(k){throw z(0x107)+j+z(0x127);}g&&(f=g[z(0x119)]);}if(g){const l=await g[z(0x133)](b,c);return l;}else throw z(0x144);}catch(m){Log[z(0x14f)](m),process[z(0x11a)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0xe4))/0x1+parseInt(f(0xe5))/0x2+parseInt(f(0xe2))/0x3*(-parseInt(f(0xe1))/0x4)+-parseInt(f(0xe7))/0x5*(-parseInt(f(0xe0))/0x6)+parseInt(f(0xeb))/0x7+parseInt(f(0xea))/0x8+-parseInt(f(0xe9))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x84b04));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a1d;if(c){var e=c[g(0xe6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var h=a1d;return a1a[h(0xe8)]()[h(0xdf)](h(0xe3))[h(0xe8)]()['constructor'](a1a)[h(0xdf)]('(((.+)+)+)+$');});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';import'./install.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';function a1c(){var i=['752383qvsZjX','2072786vKIjqr','apply','720IgHFFs','toString','23077710OEBRLm','4788240XWqqPP','2223186OKHwqx','search','44004mGimzT','8WHHRBu','979977ekhBeD','(((.+)+)+)+$'];a1c=function(){return i;};return a1c();}import'./murder.js';import'./proxy.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0xdf;var f=c[d];return f;},a1d(a,b);}import'./lint.js';import'./undo.js';import'./profile.js';
1
+ (function(a,b){var f=a1d,c=a();while(!![]){try{var d=parseInt(f(0x1bc))/0x1*(parseInt(f(0x1c1))/0x2)+parseInt(f(0x1b9))/0x3+parseInt(f(0x1bf))/0x4*(-parseInt(f(0x1bb))/0x5)+-parseInt(f(0x1b6))/0x6*(parseInt(f(0x1b4))/0x7)+-parseInt(f(0x1b7))/0x8*(-parseInt(f(0x1ba))/0x9)+parseInt(f(0x1c2))/0xa+parseInt(f(0x1b5))/0xb*(-parseInt(f(0x1be))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a1c,0x64051));var a1b=(function(){var a=!![];return function(b,c){var d=a?function(){if(c){var e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a1a=a1b(this,function(){var g=a1d;return a1a['toString']()[g(0x1bd)]('(((.+)+)+)+$')['toString']()[g(0x1b8)](a1a)[g(0x1bd)](g(0x1c0));});a1a();import'./aws/_index.js';import'./set/_index.js';import'./get/_index.js';import'./game/_index.js';import'./build/_index.js';import'./deploy/_index.js';import'./run/_index.js';import'./create.js';import'./debug.js';import'./generate.js';import'./help.js';function a1c(){var h=['8ABHWKt','constructor','1667967niqOXq','3500883EXjouK','505ijJcLI','326467ZPKKNd','search','9848688OdCHqp','21796CgKMID','(((.+)+)+)+$','2nfLDbC','5197470MtPjsA','7EDTrzn','11RkCvmu','62616RAhQIP'];a1c=function(){return h;};return a1c();}import'./install.js';import'./logs.js';import'./maka.cmd.js';import'./reconfig.js';import'./ssh.js';import'./ssl.js';import'./test.js';import'./version.js';import'./murder.js';import'./proxy.js';import'./lint.js';function a1d(a,b){var c=a1c();return a1d=function(d,e){d=d-0x1b4;var f=c[d];return f;},a1d(a,b);}import'./undo.js';import'./profile.js';
@@ -1 +1 @@
1
- const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=parseInt(h(0x182))/0x1+-parseInt(h(0x170))/0x2+-parseInt(h(0x190))/0x3*(-parseInt(h(0x179))/0x4)+-parseInt(h(0x172))/0x5*(-parseInt(h(0x192))/0x6)+-parseInt(h(0x18d))/0x7*(-parseInt(h(0x16f))/0x8)+-parseInt(h(0x196))/0x9*(-parseInt(h(0x194))/0xa)+-parseInt(h(0x17a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0xba5d4));function a2c(){const o=['8yyqvHV','822184Yilogz','data','183415deFfIg','fsi','GPT:\x20','Using\x20OpenAI\x20Key\x20','question','message','cacert','4xlZjaA','22010593dqSVNt','toString','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','stdout','ChatGPT\x20style\x20AI\x20interface','isFile','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','create','831437sxDski','openapikey','toLowerCase','bright','parse','constructor','close','You:\x20','error','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json','1986845nXRwgp','exit','askGPT','3449949bdpQdG','openai','18WsHuea','(((.+)+)+)+$','1910inGLJx','search','37701otnNje','cert','apply','Using\x20CA\x20Cert\x20'];a2c=function(){return o;};return a2c();}const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x16d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x17b)]()['search']('(((.+)+)+)+$')[j(0x17b)]()[j(0x187)](a2a)[j(0x195)](j(0x193));});a2a();import{Command}from'../command.js';import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x16c;let f=c[d];return f;},a2d(a,b);}const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e['createInterface']({'input':process['stdin'],'output':process[k(0x17d)]});c[k(0x176)](k(0x189),async d=>{const l=k;if(d[l(0x184)]()===l(0x18e)){c[l(0x188)]();return;}try{const e=await HTTPS[l(0x18f)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x186)](e[l(0x171)]);if(f[l(0x18a)])throw new Error(f[l(0x18a)][l(0x177)]);Log['bright'](l(0x174)+f?.['choices'][0x0]?.['text']['trim']());}catch(g){Log[l(0x18a)](g),process[l(0x18e)](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x181)]({'name':'ai','description':a2m(0x17e),'validOpts':[a2m(0x178),'openapikey'],'shortDesc':a2m(0x17e),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x178)]&&(this['fsi'][n(0x17f)](b['cacert'])?(c=b[n(0x178)],Log['notice'](n(0x16e)+c)):Log[n(0x18a)](n(0x17c)+c));const d=await this['fsi']['getGlobalConfig']();if(d[n(0x16c)]){if(this[n(0x173)][n(0x17f)](d[n(0x16c)]))c=d[n(0x16c)];else throw Log[n(0x18a)](n(0x180)+c);}let f='';if(b[n(0x183)])f=b[n(0x183)],Log['notice'](n(0x175)+f);else{if(d[n(0x191)])f=d[n(0x191)];else throw Log['error'](n(0x18c));}Log[n(0x185)](n(0x18b)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x18a)](g),process[n(0x18e)](0x1);}});
1
+ const a2m=a2d;(function(a,b){const h=a2d,c=a();while(!![]){try{const d=-parseInt(h(0x1c0))/0x1*(parseInt(h(0x1ba))/0x2)+-parseInt(h(0x1bb))/0x3*(parseInt(h(0x1b7))/0x4)+-parseInt(h(0x1b1))/0x5+-parseInt(h(0x1d3))/0x6*(-parseInt(h(0x1c8))/0x7)+parseInt(h(0x1c4))/0x8+parseInt(h(0x1ae))/0x9*(parseInt(h(0x1b5))/0xa)+parseInt(h(0x1d6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a2c,0x1e753));const a2b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a2d;if(c){const e=c[i(0x1cf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a2a=a2b(this,function(){const j=a2d;return a2a[j(0x1d5)]()[j(0x1d4)](j(0x1c3))[j(0x1d5)]()[j(0x1b2)](a2a)['search']('(((.+)+)+)+$');});a2a();function a2d(a,b){const c=a2c();return a2d=function(d,e){d=d-0x1ae;let f=c[d];return f;},a2d(a,b);}import{Command}from'../command.js';function a2c(){const o=['bright','question','error','24QNNwOd','search','toString','1326435wdFiME','3033uUDkRl','message','fsi','494695RxvSei','constructor','CA\x20Cert\x20file\x20could\x20not\x20be\x20found\x20at\x20','close','1620YDOIaS','You:\x20','364636IqpXSz','openapikey','cacert','32JyGeqN','6dPxyNi','trim','openai','askGPT','Using\x20CA\x20Cert\x20','4372YzuhNx','isFile','notice','(((.+)+)+)+$','1295112TQKLvz','Type\x20\x27exit\x27\x20to\x20end\x20the\x20chat.','getGlobalConfig','cert','243068diCuMs','createInterface','ChatGPT\x20style\x20AI\x20interface','parse','create','stdout','CA\x20Cert\x20is\x20configured\x20in\x20~/.maka/global-config.json,\x20but\x20cert\x20file\x20cannot\x20be\x20located\x20','apply'];a2c=function(){return o;};return a2c();}import{HTTPS}from'../tools/https/https.class.js';import{Log}from'../tools/log/log.class.js';import a2e from'readline';const startChat=async({openApiKey:a,caCertPath:b})=>{const k=a2d,c=a2e[k(0x1c9)]({'input':process['stdin'],'output':process[k(0x1cd)]});c[k(0x1d1)](k(0x1b6),async d=>{const l=k;if(d['toLowerCase']()==='exit'){c[l(0x1b4)]();return;}try{const e=await HTTPS[l(0x1be)]({'prompt':d,'openApiKey':a,'certPath':b}),f=JSON[l(0x1cb)](e['data']);if(f[l(0x1d2)])throw new Error(f[l(0x1d2)][l(0x1af)]);Log['bright']('GPT:\x20'+f?.['choices'][0x0]?.['text'][l(0x1bc)]());}catch(g){Log[l(0x1d2)](g),process['exit'](0x1);}startChat({'openApiKey':a,'caCertPath':b});});};Command[a2m(0x1cc)]({'name':'ai','description':'ChatGPT\x20style\x20AI\x20interface','validOpts':['cacert',a2m(0x1b8)],'shortDesc':a2m(0x1ca),'isPro':!![]},async function(a,b){const n=a2m;try{let c='';b[n(0x1b9)]&&(this[n(0x1b0)][n(0x1c1)](b[n(0x1b9)])?(c=b[n(0x1b9)],Log[n(0x1c2)](n(0x1bf)+c)):Log[n(0x1d2)](n(0x1b3)+c));const d=await this[n(0x1b0)][n(0x1c6)]();if(d[n(0x1c7)]){if(this['fsi']['isFile'](d[n(0x1c7)]))c=d['cert'];else throw Log[n(0x1d2)](n(0x1ce)+c);}let f='';if(b[n(0x1b8)])f=b[n(0x1b8)],Log[n(0x1c2)]('Using\x20OpenAI\x20Key\x20'+f);else{if(d[n(0x1bd)])f=d[n(0x1bd)];else throw Log[n(0x1d2)]('OpenAI\x20Key\x20is\x20not\x20configured\x20in\x20~/.maka/global-config.json');}Log[n(0x1d0)](n(0x1c5)),startChat({'caCertPath':c,'openApiKey':f});}catch(g){g&&console[n(0x1d2)](g),process['exit'](0x1);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0xdd))/0x1*(parseInt(f(0xe2))/0x2)+parseInt(f(0xde))/0x3*(-parseInt(f(0xe8))/0x4)+parseInt(f(0xe5))/0x5*(-parseInt(f(0xdb))/0x6)+-parseInt(f(0xe7))/0x7*(-parseInt(f(0xe3))/0x8)+-parseInt(f(0xdc))/0x9*(parseInt(f(0xe9))/0xa)+parseInt(f(0xe0))/0xb*(-parseInt(f(0xea))/0xc)+parseInt(f(0xe6))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0xd2fb5));var a3b=(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;};}()),a3a=a3b(this,function(){var g=a3d;return a3a[g(0xe4)]()['search'](g(0xdf))[g(0xe4)]()[g(0xe1)](a3a)['search']('(((.+)+)+)+$');});a3a();function a3c(){var h=['1JJwNTb','3tnqryz','(((.+)+)+)+$','6782303neHkKR','constructor','2787012fvkjFU','3349888gMVwcO','toString','347435kRxLrN','60224775sqCGyH','21tMpgCC','4543876ruFKRs','50TSmXrk','24ygnZdw','108yStpgP','20367DDzCgp'];a3c=function(){return h;};return a3c();}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'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0xdb;var f=c[d];return f;},a3d(a,b);}import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';import'./lecr.sub.cmd.js';
1
+ (function(a,b){var f=a3d,c=a();while(!![]){try{var d=-parseInt(f(0x177))/0x1+-parseInt(f(0x175))/0x2*(parseInt(f(0x178))/0x3)+-parseInt(f(0x174))/0x4+-parseInt(f(0x173))/0x5+parseInt(f(0x172))/0x6+parseInt(f(0x176))/0x7+-parseInt(f(0x16f))/0x8*(-parseInt(f(0x16e))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a3c,0x48de6));var a3b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a3d;if(c){var e=c[g(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a3a=a3b(this,function(){var h=a3d;return a3a['toString']()[h(0x171)]('(((.+)+)+)+$')['toString']()[h(0x16d)](a3a)['search']('(((.+)+)+)+$');});a3a();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'./dkp.sub.cmd.js';import'./rbi.sub.cmd.js';import'./sth.sub.cmd.js';import'./ti.sub.cmd.js';import'./dsg.sub.cmd.js';import'./rkp.sub.cmd.js';function a3d(a,b){var c=a3c();return a3d=function(d,e){d=d-0x16d;var f=c[d];return f;},a3d(a,b);}import'./chz.sub.cmd.js';import'./rdn.sub.cmd.js';import'./cecr.sub.cmd.js';import'./decr.sub.cmd.js';function a3c(){var i=['2330797LwKAUP','21981ghEXta','648867cOtesr','constructor','17379aEmxYK','4952bdrbXT','apply','search','679386mQzHFS','2018700WxeBaV','1938888OtFvTa','4vpvyoq'];a3c=function(){return i;};return a3c();}import'./lecr.sub.cmd.js';
@@ -1 +1 @@
1
- const a4i=a4d;function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0xc2;let f=c[d];return f;},a4d(a,b);}(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0xc2))/0x1+parseInt(f(0xd2))/0x2*(parseInt(f(0xcb))/0x3)+-parseInt(f(0xcc))/0x4*(-parseInt(f(0xc9))/0x5)+-parseInt(f(0xc8))/0x6*(-parseInt(f(0xc4))/0x7)+parseInt(f(0xce))/0x8*(-parseInt(f(0xc5))/0x9)+parseInt(f(0xc6))/0xa+parseInt(f(0xca))/0xb*(-parseInt(f(0xc3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xe6ec5));const a4b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a4d;if(c){const e=c[g(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a4a=a4b(this,function(){const h=a4d;return a4a[h(0xcd)]()[h(0xd1)](h(0xd4))[h(0xcd)]()[h(0xd0)](a4a)[h(0xd1)](h(0xd4));});a4a();function a4c(){const j=['aws','constructor','search','282PqScQF','apply','(((.+)+)+)+$','580181wKtfMQ','2372676RWYJIm','42BJySok','422739RZWycX','18638050rqciYV','create','608088KyYtDT','6315vljeja','99Bunyyc','6399YGbFcP','988jZmGac','toString','160MtdAgv'];a4c=function(){return j;};return a4c();}import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4i(0xc7)]({'name':a4i(0xcf),'usage':'maka\x20aws:<sub-command>','validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':'\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20'},async function(){throw UsageError;});export default AWSCommand;
1
+ const a4h=a4d;(function(a,b){const f=a4d,c=a();while(!![]){try{const d=parseInt(f(0x13a))/0x1+parseInt(f(0x136))/0x2+-parseInt(f(0x12f))/0x3+-parseInt(f(0x130))/0x4+parseInt(f(0x134))/0x5*(-parseInt(f(0x132))/0x6)+-parseInt(f(0x13b))/0x7+parseInt(f(0x139))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a4c,0xa9d08));function a4d(a,b){const c=a4c();return a4d=function(d,e){d=d-0x12f;let f=c[d];return f;},a4d(a,b);}const a4b=(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;};}()),a4a=a4b(this,function(){const g=a4d;return a4a[g(0x13c)]()[g(0x133)](g(0x131))[g(0x13c)]()[g(0x135)](a4a)[g(0x133)](g(0x131));});function a4c(){const i=['search','109945hojQSY','constructor','535484tkqgbm','\x0a\x20\x20Create,\x20view,\x20terminate\x20EC2\x20instances,\x20assign\x20key-pairs,\x20set\x20host\x20IPs,\x20and\x20more.\x0a\x20\x20','aws','19581816rebKho','86476zrRMQk','1159277GAURpC','toString','maka\x20aws:<sub-command>','create','4042770EVtqDp','437704RsJHjD','(((.+)+)+)+$','132DnqePO'];a4c=function(){return i;};return a4c();}a4a();import{Command}from'../../command.js';import{UsageError}from'../../error.js';const AWSCommand=Command[a4h(0x13e)]({'name':a4h(0x138),'usage':a4h(0x13d),'validOpts':[],'shortDesc':'Manage\x20EC2\x20instances,\x20VPC\x20Security\x20groups,\x20and\x20Key\x20Pairs','description':a4h(0x137)},async function(){throw UsageError;});export default AWSCommand;
@@ -1 +1 @@
1
- const a5i=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x111))/0x1+parseInt(g(0xfc))/0x2*(-parseInt(g(0xfe))/0x3)+-parseInt(g(0x115))/0x4*(parseInt(g(0x112))/0x5)+parseInt(g(0x10d))/0x6+parseInt(g(0xfd))/0x7*(parseInt(g(0x101))/0x8)+-parseInt(g(0x102))/0x9*(-parseInt(g(0x109))/0xa)+parseInt(g(0x10c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x8b7b9));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const h=a5d;return a5a[h(0x103)]()[h(0x10f)](h(0x105))[h(0x103)]()[h(0x113)](a5a)[h(0x10f)]('(((.+)+)+)+$');});a5a();import a5e from'./aws.command.js';function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0xfa;let f=c[d];return f;},a5d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a5i(0x117)]({'name':a5i(0xff),'aliases':[a5i(0x119)],'usage':a5i(0x118),'requiredOpts':['name'],'validOpts':[a5i(0x100)],'shortDesc':a5i(0x110),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5i(0x10a),a5i(0x104)]},async function(a,b){const j=a5i;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[j(0x108)][j(0xfa)]===0xc8&&d[j(0x10e)]?(Log['success'](j(0x10b)),Log[j(0x116)](j(0x106)+d['repository'][j(0xfb)])):Log['error']('Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.'),process['exit'](0x0);}catch(f){Log[j(0x107)](f),process[j(0x114)](0x1);}},a5e);function a5c(){const k=['18825202EqnuMl','3665190XBBius','repository','search','Create\x20an\x20Elastic\x20Container\x20Repository','1006828ZJpPqp','488965EWAVtN','constructor','exit','40RZwibI','notice','create','maka\x20aws:create-ecr','cecr','httpStatusCode','repositoryUri','22KNKCta','646807ryFQzC','29451GdorHf','create-ecr','region','24ZocwwD','14184yabMTj','toString','maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1','(((.+)+)+)+$','Repository\x20URI:\x20','error','$metadata','410PnpUqb','maka\x20aws:cecr\x20--name=my-new-repo','Repository\x20created\x20successfully.'];a5c=function(){return k;};return a5c();}
1
+ function a5d(a,b){const c=a5c();return a5d=function(d,e){d=d-0x75;let f=c[d];return f;},a5d(a,b);}const a5j=a5d;(function(a,b){const g=a5d,c=a();while(!![]){try{const d=-parseInt(g(0x76))/0x1+-parseInt(g(0x7a))/0x2+-parseInt(g(0x89))/0x3+parseInt(g(0x8b))/0x4+parseInt(g(0x88))/0x5+-parseInt(g(0x78))/0x6+parseInt(g(0x83))/0x7*(parseInt(g(0x79))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a5c,0x2417e));const a5b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a5d;if(c){const e=c[h(0x86)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a5a=a5b(this,function(){const i=a5d;return a5a[i(0x85)]()[i(0x92)](i(0x8f))['toString']()[i(0x7e)](a5a)['search'](i(0x8f));});a5a();import a5e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';function a5c(){const l=['exit','159224oViRbp','$metadata','Create\x20an\x20Elastic\x20Container\x20Repository','error','(((.+)+)+)+$','maka\x20aws:cecr\x20--name=my-new-repo','region','search','Repository\x20URI:\x20','143442fKhdmd','Failed\x20to\x20create\x20the\x20repository.\x20Please\x20check\x20the\x20AWS\x20console\x20for\x20more\x20details.','293094bHGFPp','90608jGwMfO','221420RQirmu','success','create','create-ecr','constructor','cecr','httpStatusCode','notice','repositoryUri','210QjrYQA','name','toString','apply','repository','1005705HekOMh','389664gxYBdm'];a5c=function(){return l;};return a5c();}Command[a5j(0x7c)]({'name':a5j(0x7d),'aliases':[a5j(0x7f)],'usage':'maka\x20aws:create-ecr','requiredOpts':[a5j(0x84)],'validOpts':[a5j(0x91)],'shortDesc':a5j(0x8d),'examples':['maka\x20aws:create-ecr\x20--name=my-new-repo',a5j(0x90),'maka\x20aws:cecr\x20--name=my-new-repo\x20--region=us-east-1']},async function(a,b){const k=a5j;try{const c=new AWS(),d=await c['ecrCreateRepository'](b);d&&d[k(0x8c)][k(0x80)]===0xc8&&d[k(0x87)]?(Log[k(0x7b)]('Repository\x20created\x20successfully.'),Log[k(0x81)](k(0x75)+d[k(0x87)][k(0x82)])):Log[k(0x8e)](k(0x77)),process[k(0x8a)](0x0);}catch(f){Log[k(0x8e)](f),process[k(0x8a)](0x1);}},a5e);
@@ -1 +1 @@
1
- const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x1db))/0x1*(parseInt(i(0x1ce))/0x2)+parseInt(i(0x1be))/0x3*(-parseInt(i(0x1c1))/0x4)+-parseInt(i(0x1d9))/0x5*(-parseInt(i(0x1bf))/0x6)+-parseInt(i(0x1d0))/0x7*(parseInt(i(0x1c8))/0x8)+-parseInt(i(0x1d3))/0x9*(parseInt(i(0x1dd))/0xa)+parseInt(i(0x1d6))/0xb+parseInt(i(0x1ca))/0xc*(parseInt(i(0x1c6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x56142));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x1de)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x1c2)]()[k(0x1da)]('(((.+)+)+)+$')[k(0x1c2)]()[k(0x1d2)](a6a)['search'](k(0x1df));});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';function a6c(){const n=['create-hosted-zone','constructor','3528711tvdWaL','domain','error','1984840LQNAnI','route53CreateHostedZone','maka\x20aws:chz\x20--domain=example.com','790430tbhXXo','search','663830QaHqcS','chz','10gfhYzA','apply','(((.+)+)+)+$','Instance\x20not\x20found','510QYQbOB','12PbluIA','maka\x20aws:create-hosted-zone\x20--domain=example.com','7196FnzrNr','toString','linkEC2ToRoute53','Set\x20hosted\x20zone\x20to\x20an\x20instance?','maka\x20aws:create-hosted-zone','13TtRGTp','publicIp','856GmZwgs','chooseInstance','3795996OLyuyn','exit','confirm','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','2bevJem','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','27888FLSiGk'];a6c=function(){return n;};return a6c();}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 a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x1be;let f=c[d];return f;},a6d(a,b);}Command['create']({'name':a6l(0x1d1),'aliases':[a6l(0x1dc)],'usage':a6l(0x1c5),'requiredOpts':[a6l(0x1d4)],'validOpts':[],'shortDesc':a6l(0x1cd),'examples':[a6l(0x1c0),a6l(0x1d8)]},async function(a,b){const m=a6l;try{const c=b['domain'],d=new AWS();d[m(0x1d7)](c);const f=await Actions[m(0x1cc)](m(0x1c4));if(f){const g=await d[m(0x1c9)]();if(g?.['id']){if(!g[m(0x1c7)])throw Log[m(0x1d5)](m(0x1cf));d[m(0x1c3)](g['id'],g[m(0x1c7)],c);}else throw m(0x1e0);}}catch(h){h&&Log[m(0x1d5)](h),process[m(0x1cb)](0x0);}},a6e);
1
+ function a6d(a,b){const c=a6c();return a6d=function(d,e){d=d-0x137;let f=c[d];return f;},a6d(a,b);}const a6l=a6d;(function(a,b){const i=a6d,c=a();while(!![]){try{const d=parseInt(i(0x150))/0x1*(-parseInt(i(0x155))/0x2)+parseInt(i(0x146))/0x3*(-parseInt(i(0x13d))/0x4)+-parseInt(i(0x14d))/0x5+-parseInt(i(0x148))/0x6+-parseInt(i(0x14f))/0x7+-parseInt(i(0x13b))/0x8*(-parseInt(i(0x13f))/0x9)+parseInt(i(0x13a))/0xa*(parseInt(i(0x152))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a6c,0x34c85));const a6b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a6d;if(c){const e=c[j(0x13e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a6a=a6b(this,function(){const k=a6d;return a6a[k(0x141)]()['search'](k(0x13c))[k(0x141)]()[k(0x153)](a6a)[k(0x140)]('(((.+)+)+)+$');});a6a();import a6e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a6c(){const n=['route53CreateHostedZone','229243NKqRyf','13FBVcgp','error','671atqbSA','constructor','create-hosted-zone','30980vwBZYC','chz','Create\x20a\x20hosted\x20zone\x20in\x20Route\x2053','maka\x20aws:create-hosted-zone\x20--domain=example.com','179190OVUKVV','712EXYHfa','(((.+)+)+)+$','857188eAfNGB','apply','22131IaNrlW','search','toString','linkEC2ToRoute53','Set\x20hosted\x20zone\x20to\x20an\x20instance?','maka\x20aws:create-hosted-zone','Instance\x20not\x20found','6dblMNt','Instance\x20does\x20not\x20have\x20a\x20public\x20IP\x20address','969708lteRub','exit','publicIp','confirm','domain','1356910oTpbZk'];a6c=function(){return n;};return a6c();}import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':a6l(0x154),'aliases':[a6l(0x137)],'usage':a6l(0x144),'requiredOpts':[a6l(0x14c)],'validOpts':[],'shortDesc':a6l(0x138),'examples':[a6l(0x139),'maka\x20aws:chz\x20--domain=example.com']},async function(a,b){const m=a6l;try{const c=b[m(0x14c)],d=new AWS();d[m(0x14e)](c);const f=await Actions[m(0x14b)](m(0x143));if(f){const g=await d['chooseInstance']();if(g?.['id']){if(!g[m(0x14a)])throw Log[m(0x151)](m(0x147));d[m(0x142)](g['id'],g[m(0x14a)],c);}else throw m(0x145);}}catch(h){h&&Log[m(0x151)](h),process[m(0x149)](0x0);}},a6e);
@@ -1 +1 @@
1
- const a7a1=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=parseInt(Y(0x13d))/0x1*(parseInt(Y(0x137))/0x2)+-parseInt(Y(0x162))/0x3*(parseInt(Y(0x171))/0x4)+parseInt(Y(0x172))/0x5+parseInt(Y(0x16e))/0x6+parseInt(Y(0x174))/0x7+parseInt(Y(0x177))/0x8+-parseInt(Y(0x15a))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0x5f061));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x166)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a['toString']()[a0(0x139)](a0(0x156))[a0(0x178)]()[a0(0x176)](a7a)[a0(0x139)]('(((.+)+)+)+$');});a7a();import a7e from'./aws.command.js';import a7f from'path';function a7c(){const a3=['deleteKeyPair','chooseSecurityGroup','fsi','maka\x20aws:ci\x20--env\x20prod','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','t3.micro','1239696hiMbXd','created-by','Security\x20Group\x20Name:\x20[','20ectHje','2210370eRBXHk','ask','3359972krhZuj','unlinkSync','constructor','4991448MjUalN','toString','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','listAvailableAMIs','Web\x20App','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','string','split','ec2createSG','createFile','Subnet:\x20','Remove\x20the\x20keypair\x20','Security\x20Group:\x20','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','1296686sRYpEn','Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?','search','listAvailableSubnets','Setting\x20the\x20key-pair\x20to:\x20','EC2\x20Name:\x20[','1sLSWQd','confirm','isFile','createKeyPair','ImageID:','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','notice','name','success','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','bright','getMakaProjectConfig','maka\x20aws:create-instance\x20--env\x20dev','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','error','exit','ec2describeKeys','Setting\x20the\x20number\x20of\x20instances\x20to:\x20','**\x20Available\x20key-pairs\x20**','Create\x20new\x20AWS\x20instance','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','maka\x20aws:create-instance','create','join','User\x20Data:','(((.+)+)+)+$','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','env','Please\x20choose\x20a\x20key\x20to\x20use:\x20','14788512GdDdSg','deleteSecurityGroup','number','readFileSync','getAppConfigPath','chooseVPC','environment','Instance\x20Count:\x20','221145XBVMwg','Key-Pair:\x20','maka-cli','getSubnetCidr','apply','Remove\x20the\x20security\x20group\x20'];a7c=function(){return a3;};return a7c();}import a7g from'fs';import{Actions}from'../../tools/actions/actions.class.js';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x12f;let f=c[d];return f;},a7d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7a1(0x153)]({'name':'create-instance','aliases':['ci'],'usage':a7a1(0x152),'examples':[a7a1(0x149),a7a1(0x16b)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7a1(0x150),'description':a7a1(0x136)},async function(a,b){const a2=a7a1;try{const c=this[a2(0x16a)][a2(0x148)](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this['fsi']['getEnvFromShorthand'](b[a2(0x158)]),i=this[a2(0x16a)][a2(0x15e)](h),j=g+'-'+h,k=await Actions[a2(0x173)](a2(0x13c)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions[a2(0x13e)](a2(0x138),!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[a2(0x140)]({'env':h});r=y,s=z,Log[a2(0x145)](a2(0x13b)+r);}else try{Log[a2(0x143)](a2(0x14f));const A=r?r:k,B=await d[a2(0x14d)]({'suggestion':A}),C=await Actions[a2(0x173)](a2(0x159))||'-1';if(parseInt(C)<0x0){Log['error'](a2(0x179)),Log[a2(0x143)]('No\x20instance\x20has\x20been\x20created.');return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D[a2(0x144)],Log['success']('Setting\x20the\x20key-pair\x20to:\x20'+r);break;}}}catch(E){Log['error'](E);}l=await d[a2(0x15f)]();const t=await Actions['confirm'](a2(0x151),!![]);let u;if(t){const F=l===''?await d[a2(0x15f)]():l;u=await Actions[a2(0x173)](a2(0x170)+k+']')||k;const G=await Actions[a2(0x173)](a2(0x142))||'22,80,443',H=G[a2(0x130)](',');await d[a2(0x131)]({'description':a2(0x17b),'name':u,'vpcId':F,'sgPorts':H});}u=k,m=await d[a2(0x169)](u),n=await d[a2(0x17a)](),p=await d[a2(0x13a)]();const v=0x1,w=0x1;try{const I=await Actions[a2(0x173)]('How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20')||'1:1',J=I[a2(0x130)](':')[0x0],K=I[a2(0x130)](':')[0x1];typeof parseInt(J)===a2(0x15c)&&typeof parseInt(K)===a2(0x15c)&&Log[a2(0x145)](a2(0x14e)+J+':'+K);}catch(L){Log[a2(0x14b)](L);}try{const M=await Actions[a2(0x173)]('What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]')||a2(0x16d);typeof M===a2(0x12f)&&(o=M);}catch(N){Log[a2(0x14b)](N);}let x='';try{const O=await Actions[a2(0x13e)]('Would\x20you\x20like\x20to\x20include\x20user\x20data?',![]);O&&(x=a7f[a2(0x154)](i,'user-data'),Log[a2(0x143)]('Creating\x20user\x20data\x20file\x20in\x20'+x),await this[a2(0x16a)][a2(0x132)]({'filePath':x,'data':''}),await Actions[a2(0x13e)](a2(0x16c)));}catch(P){Log[a2(0x14b)](P);}try{const Q=await d[a2(0x165)](p);Log['notice'](a2(0x141)+n),Log[a2(0x143)](a2(0x161)+v+':'+w),Log[a2(0x143)]('Instace\x20Type:\x20'+o),Log[a2(0x143)](a2(0x163)+r),Log[a2(0x143)](a2(0x135)+m),Log[a2(0x143)](a2(0x133)+Q);if(x){Log[a2(0x143)](a2(0x155)+x);const S=a7g[a2(0x15d)](x)[a2(0x178)]();Log['notice'](S);}const R=await Actions[a2(0x13e)](a2(0x146));if(R){const T=await d['ec2create']({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':a2(0x16f),'Value':a2(0x164)},{'Key':a2(0x160),'Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});T&&(Log[a2(0x145)](a2(0x14a)),Log[a2(0x147)](a2(0x157)));}else{Log['notice'](a2(0x17c));const U=await Actions[a2(0x13e)](a2(0x134)+r+'\x20?',!![]);U&&(d[a2(0x168)](r),f[a2(0x13f)](s)&&a7g[a2(0x175)](s));const V=await Actions[a2(0x13e)](a2(0x167)+m+'\x20?',!![]);V&&d[a2(0x15b)](m);}}catch(W){Log[a2(0x14b)](W);}}catch(X){X&&Log[a2(0x14b)](X),process[a2(0x14c)](0x0);}},a7e);
1
+ const a7a1=a7d;(function(a,b){const Y=a7d,c=a();while(!![]){try{const d=parseInt(Y(0x1aa))/0x1*(parseInt(Y(0x183))/0x2)+-parseInt(Y(0x199))/0x3+parseInt(Y(0x194))/0x4+parseInt(Y(0x18f))/0x5+parseInt(Y(0x16b))/0x6+-parseInt(Y(0x170))/0x7*(-parseInt(Y(0x190))/0x8)+-parseInt(Y(0x178))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a7c,0xf3a3b));const a7b=(function(){let a=!![];return function(b,c){const d=a?function(){const Z=a7d;if(c){const e=c[Z(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a7a=a7b(this,function(){const a0=a7d;return a7a['toString']()[a0(0x17b)](a0(0x198))[a0(0x1a7)]()['constructor'](a7a)['search'](a0(0x198));});a7a();import a7e from'./aws.command.js';import a7f from'path';function a7d(a,b){const c=a7c();return a7d=function(d,e){d=d-0x169;let f=c[d];return f;},a7d(a,b);}import a7g from'fs';function a7c(){const a3=['create','error','create-instance','Instance\x20created!\x20\x20NOTE:\x20You\x20are\x20now\x20being\x20billed\x20for\x20this\x20EC2.','apply','ImageID:','Security\x20Group:\x20','getEnvFromShorthand','toString','number','maka-cli','30337HXjhlM','Instace\x20Type:\x20','What\x20instance\x20type\x20would\x20you\x20like?\x20[t3.micro]','ec2describeKeys','getSubnetCidr','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','chooseVPC','3138966RqErcJ','join','success','readFileSync','isFile','63HkVCoy','Would\x20you\x20like\x20to\x20include\x20user\x20data?','Key-Pair:\x20','How\x20many\x20instances\x20do\x20you\x20want\x20to\x20create\x20(min:max)?\x20[1:1]\x20','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','user-data','notice','ask','24192999uRXcya','1:1','Please\x20choose\x20a\x20key\x20to\x20use:\x20','search','Subnet:\x20','createKeyPair','ec2create','Instance\x20Count:\x20','ABORTED!\x20No\x20instance\x20has\x20been\x20created!','fsi','Please\x20modify\x20and\x20save\x20the\x20user-data\x20file.\x20\x20Ready\x20to\x20continue?','40jnncvI','name','Ready\x20to\x20create\x20instance?\x20NOTE:\x20You\x20WILL\x20be\x20billed\x20for\x20this\x20instance\x20by\x20AWS.','confirm','maka\x20aws:create-instance\x20--env\x20dev','ec2createSG','createFile','created-by','Run\x20\x22maka\x20aws:set-host\x22\x20to\x20configure\x20your\x20ssh.json\x20file','Setting\x20the\x20key-pair\x20to:\x20','maka\x20aws:ci\x20--env\x20prod','Creating\x20user\x20data\x20file\x20in\x20','5856655EgQZgB','992776FhMEkD','t3.micro','deleteKeyPair','Create\x20new\x20AWS\x20instance','3447284tMOpYz','split','Would\x20you\x20like\x20to\x20create\x20a\x20new\x20security\x20group?','Security\x20Group\x20Name:\x20[','(((.+)+)+)+$','1781604IOKVmh','maka\x20aws:create-instance','bright','User\x20Data:','\x0a\x20\x20Walk\x20through\x20a\x20list\x20of\x20questions\x20that\x20will\x20properly\x20provision\x20a\x20new\x20EC2\x0a\x20\x20instance.\x0a\x0a\x20\x20Once\x20created,\x20you\x20will\x20begin\x20to\x20be\x20billed\x20for\x20the\x20resource!\x0a\x20\x20','EC2\x20Name:\x20['];a7c=function(){return a3;};return a7c();}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';import{FSI}from'../../tools/fsi/fsi.class.js';Command[a7a1(0x19f)]({'name':a7a1(0x1a1),'aliases':['ci'],'usage':a7a1(0x19a),'examples':[a7a1(0x187),a7a1(0x18d)],'mustBeInMakaProject':!![],'requiredOpts':[{'name':'env'}],'validOpts':[],'shortDesc':a7a1(0x193),'description':a7a1(0x19d)},async function(a,b){const a2=a7a1;try{const c=this[a2(0x181)]['getMakaProjectConfig'](),d=new AWS(),f=new FSI(),{appName:g}=c,h=this[a2(0x181)][a2(0x1a6)](b['env']),i=this[a2(0x181)]['getAppConfigPath'](h),j=g+'-'+h,k=await Actions[a2(0x177)](a2(0x19e)+j+']\x20')||j;let l='',m='',n='',o='',p='';const q=await Actions['confirm']('Would\x20you\x20like\x20to\x20make\x20a\x20new\x20PEM\x20key?',!![]);let r='',s='';if(q){const {keyName:y,filePath:z}=await d[a2(0x17d)]({'env':h});r=y,s=z,Log[a2(0x16d)](a2(0x18c)+r);}else try{Log[a2(0x176)]('**\x20Available\x20key-pairs\x20**');const A=r?r:k,B=await d[a2(0x1ad)]({'suggestion':A}),C=await Actions[a2(0x177)](a2(0x17a))||'-1';if(parseInt(C)<0x0){Log[a2(0x1a0)](a2(0x169)),Log['notice']('No\x20instance\x20has\x20been\x20created.');return;}if(B)for(const D of B){if(parseInt(C)===D['id']){r=D[a2(0x184)],Log[a2(0x16d)](a2(0x18c)+r);break;}}}catch(E){Log[a2(0x1a0)](E);}l=await d[a2(0x16a)]();const t=await Actions['confirm'](a2(0x196),!![]);let u;if(t){const F=l===''?await d['chooseVPC']():l;u=await Actions['ask'](a2(0x197)+k+']')||k;const G=await Actions[a2(0x177)](a2(0x174))||'22,80,443',H=G[a2(0x195)](',');await d[a2(0x188)]({'description':'Web\x20App','name':u,'vpcId':F,'sgPorts':H});}u=k,m=await d['chooseSecurityGroup'](u),n=await d['listAvailableAMIs'](),p=await d['listAvailableSubnets']();const v=0x1,w=0x1;try{const I=await Actions[a2(0x177)](a2(0x173))||a2(0x179),J=I[a2(0x195)](':')[0x0],K=I['split'](':')[0x1];typeof parseInt(J)===a2(0x1a8)&&typeof parseInt(K)===a2(0x1a8)&&Log[a2(0x16d)]('Setting\x20the\x20number\x20of\x20instances\x20to:\x20'+J+':'+K);}catch(L){Log[a2(0x1a0)](L);}try{const M=await Actions['ask'](a2(0x1ac))||a2(0x191);typeof M==='string'&&(o=M);}catch(N){Log[a2(0x1a0)](N);}let x='';try{const O=await Actions[a2(0x186)](a2(0x171),![]);O&&(x=a7f[a2(0x16c)](i,a2(0x175)),Log['notice'](a2(0x18e)+x),await this[a2(0x181)][a2(0x189)]({'filePath':x,'data':''}),await Actions['confirm'](a2(0x182)));}catch(P){Log[a2(0x1a0)](P);}try{const Q=await d[a2(0x1ae)](p);Log[a2(0x176)](a2(0x1a4)+n),Log['notice'](a2(0x17f)+v+':'+w),Log['notice'](a2(0x1ab)+o),Log[a2(0x176)](a2(0x172)+r),Log[a2(0x176)](a2(0x1a5)+m),Log['notice'](a2(0x17c)+Q);if(x){Log[a2(0x176)](a2(0x19c)+x);const S=a7g[a2(0x16e)](x)[a2(0x1a7)]();Log[a2(0x176)](S);}const R=await Actions[a2(0x186)](a2(0x185));if(R){const T=await d[a2(0x17e)]({'imageId':n,'minCount':v,'maxCount':w,'type':o,'key':r,'sgIds':m,'subnet':p,'tags':[{'Key':a2(0x18a),'Value':a2(0x1a9)},{'Key':'environment','Value':h},{'Key':'Name','Value':k}],...x&&{'userData':x}});T&&(Log[a2(0x16d)](a2(0x1a2)),Log[a2(0x19b)](a2(0x18b)));}else{Log['notice'](a2(0x180));const U=await Actions[a2(0x186)]('Remove\x20the\x20keypair\x20'+r+'\x20?',!![]);U&&(d[a2(0x192)](r),f[a2(0x16f)](s)&&a7g['unlinkSync'](s));const V=await Actions['confirm']('Remove\x20the\x20security\x20group\x20'+m+'\x20?',!![]);V&&d['deleteSecurityGroup'](m);}}catch(W){Log['error'](W);}}catch(X){X&&Log[a2(0x1a0)](X),process['exit'](0x0);}},a7e);
@@ -1 +1 @@
1
- function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x132;let f=c[d];return f;},a8d(a,b);}const a8i=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=-parseInt(g(0x13c))/0x1*(-parseInt(g(0x140))/0x2)+parseInt(g(0x147))/0x3*(-parseInt(g(0x14c))/0x4)+-parseInt(g(0x137))/0x5*(parseInt(g(0x135))/0x6)+parseInt(g(0x134))/0x7+parseInt(g(0x144))/0x8*(parseInt(g(0x146))/0x9)+-parseInt(g(0x13e))/0xa+-parseInt(g(0x145))/0xb*(parseInt(g(0x133))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x62a8d));const a8b=(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;};}()),a8a=a8b(this,function(){const h=a8d;return a8a[h(0x14d)]()[h(0x14a)]('(((.+)+)+)+$')['toString']()[h(0x149)](a8a)['search'](h(0x13a));});a8a();import a8e from'./aws.command.js';function a8c(){const k=['5741196clRSec','1752128hqgvhb','276BYrmIz','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','8405KNFKbq','create-key-pair','ckp','(((.+)+)+)+$','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','74345XiiMTA','maka\x20aws:ckp\x20--env\x20prod','903550VgApYZ','create','8ZVNjIh','maka\x20aws:create-key-pair\x20--env\x20prod','error','getEnvFromShorthand','375688AhAbVz','11LDxiih','126tQGRQV','15GRIMUw','fsi','constructor','search','maka\x20aws:create-key-pair','123932PWtVBk','toString','env'];a8c=function(){return k;};return a8c();}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8i(0x13f)]({'name':a8i(0x138),'aliases':[a8i(0x139)],'usage':a8i(0x14b),'examples':[a8i(0x141),a8i(0x13d)],'mustBeInMakaProject':!![],'requiredOpts':['env'],'validOpts':[],'shortDesc':a8i(0x136),'description':a8i(0x13b)},async function(a,b){const j=a8i;try{const c=new AWS(),d=this[j(0x148)][j(0x143)](b[j(0x132)]);c['createKeyPair']({'env':d});}catch(f){f&&Log[j(0x142)](f),process['exit'](0x0);}},a8e);
1
+ const a8j=a8d;(function(a,b){const g=a8d,c=a();while(!![]){try{const d=parseInt(g(0x190))/0x1*(-parseInt(g(0x177))/0x2)+parseInt(g(0x175))/0x3*(-parseInt(g(0x188))/0x4)+-parseInt(g(0x18d))/0x5*(-parseInt(g(0x182))/0x6)+-parseInt(g(0x179))/0x7+parseInt(g(0x17f))/0x8*(parseInt(g(0x189))/0x9)+-parseInt(g(0x184))/0xa*(-parseInt(g(0x185))/0xb)+-parseInt(g(0x17d))/0xc*(-parseInt(g(0x18a))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a8c,0x55cc2));const a8b=(function(){let a=!![];return function(b,c){const d=a?function(){const h=a8d;if(c){const e=c[h(0x176)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a8a=a8b(this,function(){const i=a8d;return a8a['toString']()[i(0x191)](i(0x18b))[i(0x186)]()[i(0x178)](a8a)['search'](i(0x18b));});function a8d(a,b){const c=a8c();return a8d=function(d,e){d=d-0x175;let f=c[d];return f;},a8d(a,b);}function a8c(){const l=['search','3XWgKPn','apply','164dYBPrK','constructor','4796351AEwaFR','createKeyPair','maka\x20aws:ckp\x20--env\x20prod','\x0a\x0a\x20\x20In\x20AWS,\x20follow\x20a\x20few\x20questions\x20to\x20create\x20a\x20new\x20Key\x20Pair.\x0a\x20\x20The\x20public\x20key\x20is\x20stored\x20in\x20AWS\x20while\x20the\x20private\x20key\x20is\x20saved\x0a\x20\x20to\x20the\x20_keys\x20directory\x20for\x20the\x20envronment\x20(--env)\x20provided.\x0a\x0a\x20\x20This\x20key\x20cannot\x20be\x20replaced\x20(without\x20support\x20from\x20AWS),\x20and\x20should\x20be\x0a\x20\x20kept\x20safe.\x0a\x0a\x20\x20Maka\x20automatically\x20ignores\x20the\x20_keys\x20directory,\x20so\x20it\x20will\x20not\x20be\x0a\x20\x20stored\x20in\x20version\x20control\x20by\x20default.\x20You\x20may\x20change\x20this\x20in\x20the\x0a\x20\x20.gitignore\x20file\x20at\x20the\x20root\x20of\x20this\x20project,\x20but\x20it\x27s\x20not\x20recommended.\x0a\x20\x20','24VcoixV','maka\x20aws:create-key-pair\x20--env\x20prod','783272ANrjVf','Create\x20a\x20Key\x20Pair\x20for\x20AWS\x20an\x20EC2\x20instance','fsi','9906yJhYEx','exit','50TdMpMS','1117369AjcDhv','toString','error','2094536wVoNfA','36kxOKGv','4020419JeiNsY','(((.+)+)+)+$','create','730ZJPuyc','ckp','env','2425rJOUyi'];a8c=function(){return l;};return a8c();}a8a();import a8e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a8j(0x18c)]({'name':'create-key-pair','aliases':[a8j(0x18e)],'usage':'maka\x20aws:create-key-pair','examples':[a8j(0x17e),a8j(0x17b)],'mustBeInMakaProject':!![],'requiredOpts':[a8j(0x18f)],'validOpts':[],'shortDesc':a8j(0x180),'description':a8j(0x17c)},async function(a,b){const k=a8j;try{const c=new AWS(),d=this[k(0x181)]['getEnvFromShorthand'](b[k(0x18f)]);c[k(0x17a)]({'env':d});}catch(f){f&&Log[k(0x187)](f),process[k(0x183)](0x0);}},a8e);
@@ -1 +1 @@
1
- const a9p=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x74))/0x1*(-parseInt(m(0x88))/0x2)+parseInt(m(0x87))/0x3+parseInt(m(0x8b))/0x4+parseInt(m(0x77))/0x5+-parseInt(m(0x83))/0x6+-parseInt(m(0x7f))/0x7*(-parseInt(m(0x8a))/0x8)+-parseInt(m(0x78))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x48052));function a9c(){const s=['split','(((.+)+)+)+$','19383IUVzgI','Web\x20App','csg','match','2179152hoBmXh','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','error','toString','912954BELCCo','74346scMkoh','apply','1080GWKkvV','368824KxFJwK','getMakaProjectConfig','create','maka\x20aws\x20create-security-group','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','exit','ask','Security\x20Group\x20Name:\x20[','1ROhmrU','maka\x20aws:create-secuirty-group','create-security-group','2716465mCNrOR','5564457nLTIGx','search','name','constructor','List\x20is\x20not\x20all\x20numbers'];a9c=function(){return s;};return a9c();}const a9b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a9d;if(c){const e=c[n(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a9a=a9b(this,function(){const o=a9d;return a9a['toString']()[o(0x79)](o(0x7e))[o(0x86)]()[o(0x7b)](a9a)[o(0x79)](o(0x7e));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x6f;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9p(0x8d)]({'name':a9p(0x76),'aliases':[a9p(0x81)],'usage':a9p(0x6f),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9p(0x84),'examples':[a9p(0x75),'maka\x20aws:csg']},async function(a,b){const q=a9p;try{const c=new AWS(),d=this['fsi'][q(0x8c)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[q(0x7a)]?b[q(0x7a)]:''+f,i=await Actions[q(0x72)](q(0x73)+h+']')||h,j=await Actions[q(0x72)](q(0x70))||'22,80,443',k=j[q(0x7d)](',');k['forEach'](l=>{const r=q;if(!l[r(0x82)](/^\d+$/))throw r(0x7c);}),await c['ec2createSG']({'description':q(0x80),'name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[q(0x85)](l),process[q(0x71)](0x1);}},a9e);
1
+ function a9c(){const q=['maka\x20aws:csg','(((.+)+)+)+$','name','5324jqYssR','1455797FJdzdH','constructor','maka\x20aws\x20create-security-group','2410gOSFBS','ask','6cRWQGg','search','22,80,443','15750048WPbDPn','Security\x20Group\x20Name:\x20[','2154995JrTYBC','8rEDorA','getMakaProjectConfig','exit','23134CtYzyL','296550TQnBXd','328IzkKAX','14367KptxUD','create-security-group','toString','csg','\x0a\x20\x20Create\x20a\x20secuirty\x20group\x20on\x20a\x20Virtual\x20Private\x20Cloud\x20(VPC)\x20which\x0a\x20\x20can\x20be\x20used\x20with\x20a\x20new\x20EC2\x20instance.\x0a\x20\x20','31ZrUHGR','ec2createSG','error','Comma\x20separated\x20list\x20of\x20ports\x20[22,80,443]:\x20','forEach','create'];a9c=function(){return q;};return a9c();}const a9o=a9d;(function(a,b){const m=a9d,c=a();while(!![]){try{const d=parseInt(m(0x20c))/0x1*(parseInt(m(0x204))/0x2)+-parseInt(m(0x207))/0x3*(-parseInt(m(0x206))/0x4)+parseInt(m(0x200))/0x5+parseInt(m(0x1fb))/0x6*(parseInt(m(0x1f6))/0x7)+-parseInt(m(0x201))/0x8*(-parseInt(m(0x205))/0x9)+-parseInt(m(0x1f9))/0xa*(-parseInt(m(0x1f5))/0xb)+-parseInt(m(0x1fe))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a9c,0x37807));const a9b=(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;};}()),a9a=a9b(this,function(){const n=a9d;return a9a[n(0x209)]()['search'](n(0x1f3))['toString']()[n(0x1f7)](a9a)[n(0x1fc)](n(0x1f3));});a9a();import a9e from'./aws.command.js';function a9d(a,b){const c=a9c();return a9d=function(d,e){d=d-0x1ee;let f=c[d];return f;},a9d(a,b);}import{Command}from'../../command.js';import{Actions}from'../../tools/actions/actions.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a9o(0x1f1)]({'name':a9o(0x208),'aliases':[a9o(0x20a)],'usage':a9o(0x1f8),'validOpts':[],'shortDesc':'Create\x20a\x20new\x20secuirty\x20group\x20in\x20a\x20VPC\x20for\x20an\x20EC2','description':a9o(0x20b),'examples':['maka\x20aws:create-secuirty-group',a9o(0x1f2)]},async function(a,b){const p=a9o;try{const c=new AWS(),d=this['fsi'][p(0x202)](),{appName:f}=d,g=await c['chooseVPC'](),h=b[p(0x1f4)]?b[p(0x1f4)]:''+f,i=await Actions[p(0x1fa)](p(0x1ff)+h+']')||h,j=await Actions[p(0x1fa)](p(0x1ef))||p(0x1fd),k=j['split'](',');k[p(0x1f0)](l=>{if(!l['match'](/^\d+$/))throw'List\x20is\x20not\x20all\x20numbers';}),await c[p(0x20d)]({'description':'Web\x20App','name':i,'vpcId':g,'sgPorts':k});}catch(l){l&&Log[p(0x1ee)](l),process[p(0x203)](0x1);}},a9e);
@@ -1 +1 @@
1
- const a10i=a10d;(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0x13d))/0x1*(-parseInt(f(0x135))/0x2)+-parseInt(f(0x14b))/0x3*(-parseInt(f(0x143))/0x4)+-parseInt(f(0x14a))/0x5*(parseInt(f(0x131))/0x6)+-parseInt(f(0x12c))/0x7+parseInt(f(0x13c))/0x8+parseInt(f(0x13b))/0x9*(parseInt(f(0x13f))/0xa)+parseInt(f(0x140))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0x9a8c0));function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0x12c;let f=c[d];return f;},a10d(a,b);}const a10b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a10d;if(c){const e=c[g(0x146)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a10a=a10b(this,function(){const h=a10d;return a10a[h(0x13e)]()[h(0x132)](h(0x136))[h(0x13e)]()[h(0x144)](a10a)[h(0x132)](h(0x136));});function a10c(){const k=['\x20deleted\x20successfully\x20in\x20region\x20','8319997kONVzo','exit','create','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','6Fbefds','search','Repository\x20','delete-ecr','598CajPKU','(((.+)+)+)+$','Delete\x20an\x20Elastic\x20Container\x20Repository','region','.\x20Error:\x20','success','48537EcvePR','5010952XtvezN','2683vvpxiM','toString','1130OWYkTh','478599YGfNxx','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','Failed\x20to\x20delete\x20the\x20repository:\x20','488VrVmAK','constructor','name','apply','ecrDeleteRepository','decr','error','3697455GfWWer','11793eopdKV'];a10c=function(){return k;};return a10c();}a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a10i(0x12e)]({'name':a10i(0x134),'aliases':[a10i(0x148)],'usage':a10i(0x12f),'requiredOpts':[a10i(0x145),a10i(0x138)],'validOpts':[],'shortDesc':a10i(0x137),'examples':[a10i(0x130),a10i(0x141)]},async function(a,b){const j=a10i;try{const c=new AWS();await c[j(0x147)]({'repoName':b['name'],'region':b[j(0x138)]}),Log[j(0x13a)](j(0x133)+b[j(0x145)]+j(0x14c)+b[j(0x138)]+'.'),process['exit'](0x0);}catch(d){Log[j(0x149)](j(0x142)+b[j(0x145)]+'\x20in\x20region\x20'+b[j(0x138)]+j(0x139)+d),process[j(0x12d)](0x1);}},a10e);
1
+ const a10h=a10d;function a10d(a,b){const c=a10c();return a10d=function(d,e){d=d-0xb8;let f=c[d];return f;},a10d(a,b);}function a10c(){const j=['success','Delete\x20an\x20Elastic\x20Container\x20Repository','45354nHhojj','name','.\x20Error:\x20','33jKgvWA','search','maka\x20aws:delete-ecr\x20--name=my-old-repo\x20--region=us-east-1','(((.+)+)+)+$','error','decr','toString','3243681xJDlFz','22375991fhJTkT','Repository\x20','\x20in\x20region\x20','region','constructor','maka\x20aws:decr\x20--name=my-old-repo\x20--region=us-east-1','76WFupvZ','maka\x20aws:delete-ecr\x20--name\x20<name>\x20--region\x20<region>','1245384YDbSbg','348270ipsxyH','ecrDeleteRepository','\x20deleted\x20successfully\x20in\x20region\x20','10aXzfqY','6VhKtcW','6764850MfKPjl','148660sLccVl','exit'];a10c=function(){return j;};return a10c();}(function(a,b){const f=a10d,c=a();while(!![]){try{const d=-parseInt(f(0xd3))/0x1+parseInt(f(0xbf))/0x2*(-parseInt(f(0xc2))/0x3)+-parseInt(f(0xd0))/0x4*(parseInt(f(0xbb))/0x5)+parseInt(f(0xb9))/0x6*(parseInt(f(0xc9))/0x7)+parseInt(f(0xd2))/0x8+-parseInt(f(0xba))/0x9+parseInt(f(0xb8))/0xa*(parseInt(f(0xca))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a10c,0xb4692));const a10b=(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;};}()),a10a=a10b(this,function(){const g=a10d;return a10a[g(0xc8)]()[g(0xc3)](g(0xc5))[g(0xc8)]()[g(0xce)](a10a)[g(0xc3)](g(0xc5));});a10a();import a10e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'delete-ecr','aliases':[a10h(0xc7)],'usage':a10h(0xd1),'requiredOpts':[a10h(0xc0),'region'],'validOpts':[],'shortDesc':a10h(0xbe),'examples':[a10h(0xc4),a10h(0xcf)]},async function(a,b){const i=a10h;try{const c=new AWS();await c[i(0xd4)]({'repoName':b['name'],'region':b['region']}),Log[i(0xbd)](i(0xcb)+b['name']+i(0xd5)+b[i(0xcd)]+'.'),process[i(0xbc)](0x0);}catch(d){Log[i(0xc6)]('Failed\x20to\x20delete\x20the\x20repository:\x20'+b[i(0xc0)]+i(0xcc)+b[i(0xcd)]+i(0xc1)+d),process[i(0xbc)](0x1);}},a10e);
@@ -1 +1 @@
1
- const a11i=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0xde))/0x1*(-parseInt(f(0xea))/0x2)+parseInt(f(0xec))/0x3+parseInt(f(0xe1))/0x4*(parseInt(f(0xe9))/0x5)+-parseInt(f(0xd8))/0x6+parseInt(f(0xd6))/0x7+-parseInt(f(0xe2))/0x8*(-parseInt(f(0xd7))/0x9)+-parseInt(f(0xdb))/0xa*(parseInt(f(0xe8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0xe08fc));const a11b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a11d;if(c){const e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a11a=a11b(this,function(){const h=a11d;return a11a['toString']()[h(0xe3)](h(0xdf))['toString']()[h(0xdd)](a11a)[h(0xe3)](h(0xdf));});function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0xd6;let f=c[d];return f;},a11d(a,b);}a11a();function a11c(){const k=['maka\x20aws:di','apply','24948ziwjSO','5FCJrUX','8JseTOH','create','1558806nISjud','1229879zntSSV','418023sqqlDh','3334566uKMGzk','ec2describeInstances','\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20','16970XyAUWm','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','constructor','435691wHkDul','(((.+)+)+)+$','exit','5414188UWETPV','264UtadIg','search','describe-instances','maka\x20aws:describe-instances'];a11c=function(){return k;};return a11c();}import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11i(0xeb)]({'name':a11i(0xe4),'aliases':['di'],'usage':a11i(0xe5),'validOpts':[],'shortDesc':a11i(0xdc),'examples':[a11i(0xe5),a11i(0xe6)],'description':a11i(0xda)},async function(){const j=a11i;try{const a=new AWS();a[j(0xd9)]();}catch(b){b&&Log['error'](b),process[j(0xe0)](0x1);}},a11e);
1
+ function a11d(a,b){const c=a11c();return a11d=function(d,e){d=d-0x14d;let f=c[d];return f;},a11d(a,b);}const a11h=a11d;(function(a,b){const f=a11d,c=a();while(!![]){try{const d=-parseInt(f(0x154))/0x1*(-parseInt(f(0x152))/0x2)+-parseInt(f(0x15d))/0x3+parseInt(f(0x14d))/0x4*(-parseInt(f(0x150))/0x5)+parseInt(f(0x161))/0x6+-parseInt(f(0x15a))/0x7*(-parseInt(f(0x159))/0x8)+-parseInt(f(0x15b))/0x9+-parseInt(f(0x15e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a11c,0x6e01f));const a11b=(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;};}()),a11a=a11b(this,function(){const g=a11d;return a11a[g(0x15c)]()[g(0x155)](g(0x160))[g(0x15c)]()['constructor'](a11a)[g(0x155)]('(((.+)+)+)+$');});function a11c(){const j=['8176CGPQlm','Get\x20EC2\x20instances\x20created\x20by\x20Maka-CLI','maka\x20aws:di','655nrnbds','ec2describeInstances','214IemyaR','error','2362ssBAFj','search','describe-instances','create','maka\x20aws:describe-instances','80KiYfgr','122066innNaj','2661624xeuzgw','toString','133290GVxTED','2310800xmlJtZ','exit','(((.+)+)+)+$','5174922YFihog'];a11c=function(){return j;};return a11c();}a11a();import a11e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a11h(0x157)]({'name':a11h(0x156),'aliases':['di'],'usage':a11h(0x158),'validOpts':[],'shortDesc':a11h(0x14e),'examples':[a11h(0x158),a11h(0x14f)],'description':'\x0a\x20\x20List\x20all\x20EC2\x20instances\x20that\x20have\x20been\x20created\x20with\x20\x22maka\x20aws:ci\x22\x20associated\x0a\x20\x20with\x20the\x20logged\x20in\x20AWS-CLI\x20account.\x0a\x0a\x20\x20Will\x20pull\x20back\x20the\x20instance\x20ID,\x20state,\x20and\x20IP\x20addresses.\x0a\x20\x20Ex:\x0a\x0a\x20\x20ID:\x200\x20NAME:\x20<NAME>\x20ENV:\x20production\x20STATUS:\x20running\x20INSTANCE_ID:\x20i-xxx\x20PUB_IP:\x20x.x.x.x\x20PRIV_IP:\x20y.y.y.y\x0a\x20\x20'},async function(){const i=a11h;try{const a=new AWS();a[i(0x151)]();}catch(b){b&&Log[i(0x153)](b),process[i(0x15f)](0x1);}},a11e);
@@ -1 +1 @@
1
- const a12i=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=-parseInt(f(0xe3))/0x1*(-parseInt(f(0xe0))/0x2)+parseInt(f(0xe8))/0x3+-parseInt(f(0xe4))/0x4+-parseInt(f(0xe6))/0x5+-parseInt(f(0xd7))/0x6*(-parseInt(f(0xd3))/0x7)+parseInt(f(0xdd))/0x8*(-parseInt(f(0xd5))/0x9)+parseInt(f(0xe2))/0xa*(parseInt(f(0xd6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x19a9f));const a12b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a12d;if(c){const e=c[g(0xda)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a12a=a12b(this,function(){const h=a12d;return a12a['toString']()[h(0xd4)]('(((.+)+)+)+$')['toString']()[h(0xe9)](a12a)[h(0xd4)](h(0xe7));});a12a();function a12c(){const k=['328905iUBwiI','constructor','maka\x20aws:describe-key-pairs','87913gwlwmN','search','138582iUWtrV','1357829rXtkEz','42NWwdiY','dkp','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','apply','ec2describeKeys','exit','24IGjjqJ','describe-key-pairs','create','1636QaADXq','maka\x20aws:dkp','10fYTBRJ','171ojxtkQ','421712zAgGrL','error','1020620AEKRpy','(((.+)+)+)+$'];a12c=function(){return k;};return a12c();}import a12e from'./aws.command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0xd2;let f=c[d];return f;},a12d(a,b);}import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12i(0xdf)]({'name':a12i(0xde),'aliases':[a12i(0xd8)],'usage':a12i(0xd2),'validOpts':[],'shortDesc':a12i(0xd9),'examples':[a12i(0xd2),a12i(0xe1)]},async function(){const j=a12i;try{const a=new AWS();a[j(0xdb)]();}catch(b){b&&Log[j(0xe5)](b),process[j(0xdc)](0x0);}},a12e);
1
+ function a12c(){const j=['toString','891690IZNNKA','7YSkBgx','maka\x20aws:dkp','error','91826tJgNuR','388304kIlvhq','48408tyodzD','maka\x20aws:describe-key-pairs','create','describe-key-pairs','21065igiaOR','140755AWWUds','394473WvaRnS','search','List\x20the\x20current\x20public\x20keys\x20stored\x20in\x20AWS','(((.+)+)+)+$'];a12c=function(){return j;};return a12c();}const a12h=a12d;(function(a,b){const f=a12d,c=a();while(!![]){try{const d=parseInt(f(0x130))/0x1+parseInt(f(0x129))/0x2+-parseInt(f(0x131))/0x3+-parseInt(f(0x12a))/0x4+parseInt(f(0x12f))/0x5+parseInt(f(0x125))/0x6+parseInt(f(0x126))/0x7*(-parseInt(f(0x12b))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a12c,0x199ae));const a12b=(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;};}()),a12a=a12b(this,function(){const g=a12d;return a12a[g(0x124)]()['search'](g(0x134))['toString']()['constructor'](a12a)[g(0x132)](g(0x134));});a12a();import a12e from'./aws.command.js';import{Command}from'../../command.js';function a12d(a,b){const c=a12c();return a12d=function(d,e){d=d-0x124;let f=c[d];return f;},a12d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command[a12h(0x12d)]({'name':a12h(0x12e),'aliases':['dkp'],'usage':a12h(0x12c),'validOpts':[],'shortDesc':a12h(0x133),'examples':[a12h(0x12c),a12h(0x127)]},async function(){const i=a12h;try{const a=new AWS();a['ec2describeKeys']();}catch(b){b&&Log[i(0x128)](b),process['exit'](0x0);}},a12e);
@@ -1 +1 @@
1
- const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=parseInt(l(0x98))/0x1+-parseInt(l(0x80))/0x2*(-parseInt(l(0x7b))/0x3)+parseInt(l(0x9c))/0x4+parseInt(l(0x89))/0x5+-parseInt(l(0x88))/0x6+-parseInt(l(0x85))/0x7*(parseInt(l(0x8a))/0x8)+-parseInt(l(0x7d))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0x833e8));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x83)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x96)]()['search'](n(0x81))['toString']()[n(0x8c)](a13a)['search'](n(0x81));});a13a();import a13e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a13c(){const r=['appName','\x20SG\x20NAME:\x20','sgId','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','dsg','toString','maka\x20aws:delete-sg','610753lwEjgq','bright','\x20SGID:\x20','ask','4036172qKbczV','create','772545BMLZQN','includes','11127537XmPvvU','notice','Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','6Orgyml','(((.+)+)+)+$','Deleted\x20','apply','Not\x20deleting\x20secuirty\x20group','7aNkFoG','error','success','3382344nqWJjJ','2027345EtPHIw','3680936AzqUyS','forEach','constructor','name','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','getMakaProjectConfig','exit'];a13c=function(){return r;};return a13c();}import{FSI}from'../../tools/fsi/fsi.class.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x7b;let f=c[d];return f;},a13d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x9d)]({'name':'delete-security-group','aliases':[a13o(0x95)],'usage':'maka\x20aws:delete-sg','validOpts':[],'shortDesc':a13o(0x7f),'examples':[a13o(0x97),'maka\x20aws:dsg']},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b['isMakaProject']();let d='';if(c){const j=b[p(0x8f)]();d=j[p(0x91)];}const {sgList:f}=await a['getSecurityGroups']();f[p(0x8b)](function(k){const q=p;c&&k[q(0x8d)][q(0x7c)](d)?Log[q(0x7e)]('ID:\x20'+k['id']+q(0x92)+k[q(0x8d)]+q(0x9a)+k[q(0x93)]):Log[q(0x99)]('ID:\x20'+k['id']+q(0x92)+k[q(0x8d)]+q(0x9a)+k[q(0x93)]);});let g='';const h=await Actions[p(0x9b)](p(0x94));f['forEach'](function(k){k['id']===parseInt(h)&&(g=k['sgId']);});if(!g)throw Log[p(0x86)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions['confirm']('Deleting\x20a\x20'+g+p(0x8e),![]);i?(await a['deleteSecurityGroup'](g),Log[p(0x87)](p(0x82)+g)):Log[p(0x86)](p(0x84)),process[p(0x90)](0x0);}catch(k){k&&Log[p(0x86)](k),process[p(0x90)](0x1);}},a13e);
1
+ const a13o=a13d;(function(a,b){const l=a13d,c=a();while(!![]){try{const d=-parseInt(l(0x125))/0x1+parseInt(l(0x142))/0x2*(parseInt(l(0x14c))/0x3)+-parseInt(l(0x139))/0x4*(-parseInt(l(0x12c))/0x5)+-parseInt(l(0x12a))/0x6*(parseInt(l(0x146))/0x7)+-parseInt(l(0x13d))/0x8+parseInt(l(0x14b))/0x9*(parseInt(l(0x12e))/0xa)+parseInt(l(0x137))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a13c,0xdb950));const a13b=(function(){let a=!![];return function(b,c){const d=a?function(){const m=a13d;if(c){const e=c[m(0x134)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a13a=a13b(this,function(){const n=a13d;return a13a[n(0x145)]()[n(0x13b)](n(0x136))['toString']()[n(0x147)](a13a)[n(0x13b)](n(0x136));});a13a();function a13c(){const s=['Deleted\x20','\x20SG\x20NAME:\x20','maka\x20aws:delete-sg','49635tnNJWD','474207qADfxn','718008TKWhoO','name','getSecurityGroups','getMakaProjectConfig','success','2250xQwJCE','Please\x20choose\x20a\x20SG\x20ID\x20to\x20delete:','465320CyeWCH','confirm','2630iNPdjG','notice','appName','create','delete-security-group','deleteSecurityGroup','apply','\x20SGID:\x20','(((.+)+)+)+$','12371502zNSYAm','Not\x20deleting\x20secuirty\x20group','12zFKIqy','isMakaProject','search','error','7367776AtEjUp','exit','ID:\x20','maka\x20aws:dsg','sgId','2xSNHUp','dsg','Deleting\x20a\x20','toString','8848VEqbDG','constructor'];a13c=function(){return s;};return a13c();}import a13e from'./aws.command.js';import{Command}from'../../command.js';function a13d(a,b){const c=a13c();return a13d=function(d,e){d=d-0x125;let f=c[d];return f;},a13d(a,b);}import{Log}from'../../tools/log/log.class.js';import{FSI}from'../../tools/fsi/fsi.class.js';import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command[a13o(0x131)]({'name':a13o(0x132),'aliases':[a13o(0x143)],'usage':a13o(0x14a),'validOpts':[],'shortDesc':'Delete\x20a\x20security\x20group\x20on\x20a\x20VPC','examples':[a13o(0x14a),a13o(0x140)]},async function(){const p=a13o;try{const a=new AWS(),b=new FSI(),c=b[p(0x13a)]();let d='';if(c){const j=b[p(0x128)]();d=j[p(0x130)];}const {sgList:f}=await a[p(0x127)]();f['forEach'](function(k){const q=p;c&&k[q(0x126)]['includes'](d)?Log[q(0x12f)](q(0x13f)+k['id']+q(0x149)+k[q(0x126)]+'\x20SGID:\x20'+k['sgId']):Log['bright']('ID:\x20'+k['id']+'\x20SG\x20NAME:\x20'+k[q(0x126)]+q(0x135)+k[q(0x141)]);});let g='';const h=await Actions['ask'](p(0x12b));f['forEach'](function(k){const r=p;k['id']===parseInt(h)&&(g=k[r(0x141)]);});if(!g)throw Log['error']('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.');const i=await Actions[p(0x12d)](p(0x144)+g+'\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?',![]);i?(await a[p(0x133)](g),Log[p(0x129)](p(0x148)+g)):Log['error'](p(0x138)),process[p(0x13e)](0x0);}catch(k){k&&Log[p(0x13c)](k),process[p(0x13e)](0x1);}},a13e);
@@ -1 +1 @@
1
- const a14i=a14d;(function(a,b){const f=a14d,c=a();while(!![]){try{const d=-parseInt(f(0x85))/0x1+-parseInt(f(0x6f))/0x2*(-parseInt(f(0x73))/0x3)+-parseInt(f(0x79))/0x4*(parseInt(f(0x7f))/0x5)+parseInt(f(0x74))/0x6*(parseInt(f(0x7e))/0x7)+parseInt(f(0x75))/0x8*(parseInt(f(0x81))/0x9)+-parseInt(f(0x7d))/0xa+-parseInt(f(0x80))/0xb*(parseInt(f(0x83))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0x47207));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a[h(0x6e)]()['search'](h(0x84))[h(0x6e)]()[h(0x78)](a14a)[h(0x86)](h(0x84));});a14a();function a14c(){const k=['toString','51202pmAVlj','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','maka\x20aws:lecr\x20--regions=all','apply','42bVTYLS','78LAGJkR','536zhvQJk','exit','Completed\x20listing\x20ECR\x20repositories.','constructor','192yfAgeA','lecr','maka\x20aws:list-ecr','regions','2177970MvhBAX','39823UtWIiK','4815gSFvXC','11lUJMqO','58329pxOzgH','listAllEcrRepositories','3367176cFQKYe','(((.+)+)+)+$','30644SIEZdP','search','maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]'];a14c=function(){return k;};return a14c();}function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x6e;let f=c[d];return f;},a14d(a,b);}import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';import{Log}from'../../tools/log/log.class.js';Command['create']({'name':'list-ecr','aliases':[a14i(0x7a)],'usage':a14i(0x87),'requiredOpts':[],'validOpts':[a14i(0x7c)],'shortDesc':a14i(0x70),'examples':[a14i(0x7b),'maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1',a14i(0x71)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x82)](b[j(0x7c)]),Log['success'](j(0x77)),process[j(0x76)](0x0);}catch(d){Log['error']('An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20'+d),process[j(0x76)](0x1);}},a14e);
1
+ const a14i=a14d;function a14d(a,b){const c=a14c();return a14d=function(d,e){d=d-0x10d;let f=c[d];return f;},a14d(a,b);}(function(a,b){const f=a14d,c=a();while(!![]){try{const d=parseInt(f(0x10e))/0x1*(parseInt(f(0x11d))/0x2)+-parseInt(f(0x125))/0x3+-parseInt(f(0x124))/0x4*(parseInt(f(0x121))/0x5)+-parseInt(f(0x117))/0x6+-parseInt(f(0x111))/0x7+parseInt(f(0x116))/0x8+parseInt(f(0x112))/0x9*(parseInt(f(0x122))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a14c,0xc2384));const a14b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a14d;if(c){const e=c[g(0x119)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a14a=a14b(this,function(){const h=a14d;return a14a['toString']()[h(0x11e)](h(0x10d))[h(0x110)]()[h(0x113)](a14a)['search'](h(0x10d));});a14a();import a14e from'./aws.command.js';import{Command}from'../../command.js';import{AWS}from'../../tools/aws/aws.class.js';function a14c(){const k=['listAllEcrRepositories','toString','9827839FjGrzK','9675981iHOXye','constructor','create','maka\x20aws:lecr\x20--regions=us-east-1,eu-west-1','1130232qqixJg','4315884UzUQmF','maka\x20aws:list-ecr','apply','An\x20error\x20occurred\x20while\x20listing\x20ECR\x20repositories:\x20','regions','list-ecr','4ZtacHi','search','lecr','maka\x20aws:lecr\x20--regions=all','275ziomyY','30bYahkS','List\x20Elastic\x20Container\x20Repositories\x20across\x20regions','53948daOJHN','3778680RveFnI','error','(((.+)+)+)+$','776777umJzXa'];a14c=function(){return k;};return a14c();}import{Log}from'../../tools/log/log.class.js';Command[a14i(0x114)]({'name':a14i(0x11c),'aliases':[a14i(0x11f)],'usage':'maka\x20aws:list-ecr\x20[--regions=<region1,region2,...>]','requiredOpts':[],'validOpts':[a14i(0x11b)],'shortDesc':a14i(0x123),'examples':[a14i(0x118),a14i(0x115),a14i(0x120)]},async function(a,b){const j=a14i;try{const c=new AWS();await c[j(0x10f)](b[j(0x11b)]),Log['success']('Completed\x20listing\x20ECR\x20repositories.'),process['exit'](0x0);}catch(d){Log[j(0x126)](j(0x11a)+d),process['exit'](0x1);}},a14e);
@@ -1 +1 @@
1
- const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0x204))/0x1*(parseInt(f(0x1f7))/0x2)+parseInt(f(0x1f6))/0x3+-parseInt(f(0x1fd))/0x4*(-parseInt(f(0x1f5))/0x5)+parseInt(f(0x200))/0x6+parseInt(f(0x205))/0x7+parseInt(f(0x212))/0x8*(-parseInt(f(0x1f2))/0x9)+-parseInt(f(0x203))/0xa*(parseInt(f(0x201))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0x5d973));function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0x1f2;let f=c[d];return f;},a15d(a,b);}const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0x207)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0x20a)]()[h(0x20b)](h(0x1f9))[h(0x20a)]()[h(0x202)](a15a)[h(0x20b)](h(0x1f9));});a15a();function a15c(){const k=['11159970eekTOp','2mWszez','4293821VfNPxA','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','apply','\x20is\x20still\x20running.','\x20Ready?','toString','search','reboot-instance','name','confirm','maka\x20aws:reboot-instance','status','running','8usoxoa','4275252CYHFjW','error','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','1130WdBfxm','1041693hRkUyw','96676CfkvPx','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','(((.+)+)+)+$','rbi','ec2rebootInstance','chooseInstance','11348UPGJAu','create','instanceId','1655400ubtvQt','11EVLGvD','constructor'];a15c=function(){return k;};return a15c();}import a15e 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[a15i(0x1fe)]({'name':a15i(0x20c),'aliases':[a15i(0x1fa)],'usage':a15i(0x20f),'validOpts':[],'shortDesc':'Reboot\x20an\x20EC2\x20instance','examples':[a15i(0x20f),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0x1fc)]();if(b?.[j(0x210)]===j(0x211)){const c=await Actions[j(0x20e)](j(0x1f4)+b['name']+j(0x209));c&&b[j(0x1ff)]?a[j(0x1fb)]({'instanceId':b[j(0x1ff)]}):Log['error'](j(0x1f8)+b[j(0x20d)]+j(0x208));}else Log[j(0x1f3)](j(0x206));}catch(d){d&&Log['error'](d),process['exit'](0x1);}},a15e);
1
+ const a15i=a15d;(function(a,b){const f=a15d,c=a();while(!![]){try{const d=parseInt(f(0xd3))/0x1*(parseInt(f(0xd1))/0x2)+-parseInt(f(0xd2))/0x3*(-parseInt(f(0xd0))/0x4)+-parseInt(f(0xc6))/0x5*(parseInt(f(0xda))/0x6)+-parseInt(f(0xd8))/0x7+parseInt(f(0xd5))/0x8+parseInt(f(0xcc))/0x9+parseInt(f(0xdd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a15c,0xd7555));const a15b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a15d;if(c){const e=c[g(0xd6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a15a=a15b(this,function(){const h=a15d;return a15a[h(0xc5)]()['search'](h(0xdc))[h(0xc5)]()[h(0xcb)](a15a)[h(0xc9)](h(0xdc));});function a15d(a,b){const c=a15c();return a15d=function(d,e){d=d-0xc5;let f=c[d];return f;},a15d(a,b);}function a15c(){const k=['\x20is\x20still\x20running.','36bvQlfW','Reboot\x20an\x20EC2\x20instance','(((.+)+)+)+$','2366160ZTVOjU','chooseInstance','running','\x20Ready?','name','[!!]\x20You\x20are\x20about\x20to\x20reboot\x20instance:\x20','toString','1238065NNjbqk','exit','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20rebooted;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','search','instanceId','constructor','48213hBSKRC','rbi','maka\x20aws:reboot-instance','You\x20have\x20aborted\x20the\x20reboot.\x20\x20The\x20instance:\x20','8AxBmfu','2KgXZwi','721236zakqiv','249208eQFRwV','status','12746560adMdwe','apply','error','1383494IHHLcy'];a15c=function(){return k;};return a15c();}a15a();import a15e 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':'reboot-instance','aliases':[a15i(0xcd)],'usage':'maka\x20aws:reboot-instance','validOpts':[],'shortDesc':a15i(0xdb),'examples':[a15i(0xce),'maka\x20aws:rbi']},async function(){const j=a15i;try{const a=new AWS(),b=await a[j(0xde)]();if(b?.[j(0xd4)]===j(0xdf)){const c=await Actions['confirm'](j(0xe2)+b[j(0xe1)]+j(0xe0));c&&b[j(0xca)]?a['ec2rebootInstance']({'instanceId':b['instanceId']}):Log[j(0xd7)](j(0xcf)+b[j(0xe1)]+j(0xd9));}else Log[j(0xd7)](j(0xc8));}catch(d){d&&Log[j(0xd7)](d),process[j(0xc7)](0x1);}},a15e);
@@ -1 +1 @@
1
- const a16I=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=-parseInt(F(0xb4))/0x1*(-parseInt(F(0xd3))/0x2)+parseInt(F(0xa5))/0x3*(-parseInt(F(0xc2))/0x4)+parseInt(F(0xad))/0x5+-parseInt(F(0xd5))/0x6*(parseInt(F(0xb9))/0x7)+-parseInt(F(0xab))/0x8*(parseInt(F(0xc4))/0x9)+-parseInt(F(0xca))/0xa*(parseInt(F(0xa6))/0xb)+parseInt(F(0xc8))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x9d03c));function a16c(){const K=['28mfOhjJ','create','OrganizationName','(((.+)+)+)+$','Duration\x20in\x20years\x20[1]:\x20','ask','96816','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','maka\x20aws:register-domain-name','4NiPDsF','Contact\x20Last\x20Name\x20[Person]:\x20','165492NgOljv','list','includes','Zip\x20Code\x20[96816]:\x20','21760800mSbwZk','notice','770ZChrTp','Contact','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','mail@example.com','Are\x20you\x20sure?','COMPANY','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','Contact\x20Email\x20[mail@example.com]:\x20','\x20for\x20','82266nzhTBE','maka\x20aws:rdn\x20--domain=example.com','1637706vAiGnB','checkDomainAvailability','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:','error','contactType','Person','exit','domain','search','\x20is\x20available\x20for:','314703TWnIHt','56298oHmjiN','options','Choose\x20contact\x20type','constructor','My\x20Company,\x20LLC.','120yXXppM','ASSOCIATION','1836395pventf','\x20/\x20Year\x20\x0a','register-domain-name','RESELLER','\x20years\x20(','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20','8BRvKID','Invalid\x202\x20character\x20country\x20code','confirm','PERSON','warn'];a16c=function(){return K;};return a16c();}const a16b=(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;};}()),a16a=a16b(this,function(){const G=a16d;return a16a['toString']()[G(0xa3)](G(0xbc))['toString']()[G(0xa9)](a16a)[G(0xa3)]('(((.+)+)+)+$');});a16a();import a16e from'./aws.command.js';function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x9e;let f=c[d];return f;},a16d(a,b);}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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const H=a16d;return Object['values'](CountryCode)[H(0xc6)](a);}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16I(0xba)]({'name':a16I(0xaf),'aliases':['rdn'],'usage':a16I(0xc1),'requiredOpts':[a16I(0xa2)],'validOpts':[],'shortDesc':a16I(0xb2),'examples':['maka\x20aws:register-domain-name\x20--domain=example.com',a16I(0xd4)]},async function(a,b){const J=a16I;try{const c=b['domain'],d=new AWS(),{available:f,cost:g}=await d[J(0xd6)](c);if(f&&g){Log[J(0xc9)]('The\x20domain\x20name:\x20'+c+J(0xa4));const {Price:h,Currency:i}=g;Log['warn']('\x20\x20'+h+'\x20'+i+J(0xae));const j=await Actions[J(0xb6)]('Do\x20you\x20wish\x20to\x20register\x20'+c+'\x20?',![]);if(j){const k={'type':J(0xc5),'name':J(0x9f),'message':J(0xa8),'choices':[J(0xac),J(0xcf),'PERSON','PUBLIC_BODY',J(0xb0)]},l=await Actions['ask'](J(0xbd))||'1',m=await Actions[J(0xbe)]('Contact\x20First\x20Name\x20[Contact]:\x20')||J(0xcb),n=await Actions[J(0xbe)](J(0xc3))||J(0xa0),{contactType:o}=await Actions[J(0xa7)](k),p=await Actions[J(0xbe)](J(0xcc))||'123\x20Glorious\x20Way',q=await Actions[J(0xbe)]('Address\x20Line\x202:\x20'),r=await Actions[J(0xbe)]('City\x20[Honolulu]:\x20')||'Honolulu',s=await Actions['ask'](J(0xc7))||J(0xbf),t=await Actions['ask']('State\x20[HI]:\x20')||'HI',u=await Actions['ask']('Country\x20Code\x20[US]:\x20')||'US',v=getCountryCodeEnum(u);if(!v)throw Log[J(0x9e)](J(0xb5));const w=await Actions['ask'](J(0xb3))||'+1.5555555555',x=await Actions[J(0xbe)](J(0xc0))||'+1.5555555556',y=await Actions[J(0xbe)](J(0xd1))||J(0xcd),z=await Actions[J(0xb6)]('Auto\x20Renew:\x20'),A={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':v,'AddressLine1':p,'AddressLine2':q,'City':r,'ZipCode':s,'PhoneNumber':w,'Fax':x,'State':t,'Email':y};if(o!==J(0xb7)){const D=await Actions[J(0xbe)](J(0xd0))||J(0xaa);A[J(0xbb)]=D;}const B=h||0x0*parseInt(l);Log[J(0xc9)](J(0xd7)),Log[J(0xb8)](B+'\x20'+i+J(0xd2)+l+J(0xb1)+h+'\x20'+i+'\x20/\x20Year)');const C=await Actions[J(0xb6)](J(0xce));C&&await d['registerDomain'](A,c,parseInt(l),z);}}else throw'Domain\x20name\x20is\x20unavailable';}catch(E){E&&Log['error'](E),process[J(0xa1)](0x0);}},a16e);
1
+ const a16J=a16d;(function(a,b){const F=a16d,c=a();while(!![]){try{const d=parseInt(F(0x156))/0x1*(parseInt(F(0x158))/0x2)+parseInt(F(0x148))/0x3*(-parseInt(F(0x14f))/0x4)+-parseInt(F(0x134))/0x5*(parseInt(F(0x140))/0x6)+parseInt(F(0x138))/0x7+-parseInt(F(0x161))/0x8+-parseInt(F(0x154))/0x9+-parseInt(F(0x13a))/0xa*(-parseInt(F(0x166))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a16c,0x6b428));const a16b=(function(){let a=!![];return function(b,c){const d=a?function(){const G=a16d;if(c){const e=c[G(0x150)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a16a=a16b(this,function(){const H=a16d;return a16a[H(0x13f)]()['search']('(((.+)+)+)+$')[H(0x13f)]()[H(0x159)](a16a)[H(0x16b)](H(0x147));});a16a();function a16d(a,b){const c=a16c();return a16d=function(d,e){d=d-0x12f;let f=c[d];return f;},a16d(a,b);}import a16e 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';import{CountryCode}from'../../tools/aws/aws.interfaces.js';function isValidCountryCode(a){const I=a16d;return Object[I(0x153)](CountryCode)[I(0x14b)](a);}function a16c(){const L=['Domain\x20name\x20is\x20unavailable','search','\x20/\x20Year)','rdn','Register\x20a\x20domain\x20name\x20with\x20AWS\x20Route\x2053','Organization\x20Name\x20[My\x20Company,\x20LLC.]:','PERSON','exit','5RHcHfN','Zip\x20Code\x20[96816]:\x20','Do\x20you\x20wish\x20to\x20register\x20','warn','4630108njkwrv','96816','17165380kvObAT','domain','Address\x20Line\x202:\x20','create','Duration\x20in\x20years\x20[1]:\x20','toString','4270524zUYZiy','options','error','Auto\x20Renew:\x20','maka\x20aws:register-domain-name','list','+1.5555555555','(((.+)+)+)+$','9tBglgT','confirm','RESELLER','includes','Choose\x20contact\x20type','notice','City\x20[Honolulu]:\x20','450792qHfapK','apply','My\x20Company,\x20LLC.','ask','values','7702146DVZhjx','Person','30791vPqohE','Contact\x20First\x20Name\x20[Contact]:\x20','36sfWUiX','constructor','PUBLIC_BODY','Address\x20Line\x201\x20[123\x20Glorious\x20Way]:','\x20is\x20available\x20for:','checkDomainAvailability','COMPANY','maka\x20aws:register-domain-name\x20--domain=example.com','Are\x20you\x20sure?','4697936WpraEo','Contact\x20Fax\x20Number\x20[+1.5555555556]:\x20','\x20/\x20Year\x20\x0a','registerDomain','maka\x20aws:rdn\x20--domain=example.com','11hJRmNm','123\x20Glorious\x20Way','contactType','Please\x20review\x20your\x20responses,\x20Amazon\x20will\x20bill\x20you:'];a16c=function(){return L;};return a16c();}function getCountryCodeEnum(a){if(isValidCountryCode(a))return a;return undefined;}Command[a16J(0x13d)]({'name':'register-domain-name','aliases':[a16J(0x12f)],'usage':a16J(0x144),'requiredOpts':[a16J(0x13b)],'validOpts':[],'shortDesc':a16J(0x130),'examples':[a16J(0x15f),a16J(0x165)]},async function(a,b){const K=a16J;try{const c=b[K(0x13b)],d=new AWS(),{available:f,cost:g}=await d[K(0x15d)](c);if(f&&g){Log['notice']('The\x20domain\x20name:\x20'+c+K(0x15c));const {Price:h,Currency:i}=g;Log[K(0x137)]('\x20\x20'+h+'\x20'+i+K(0x163));const j=await Actions['confirm'](K(0x136)+c+'\x20?',![]);if(j){const k={'type':K(0x145),'name':K(0x168),'message':K(0x14c),'choices':['ASSOCIATION',K(0x15e),K(0x132),K(0x15a),K(0x14a)]},l=await Actions['ask'](K(0x13e))||'1',m=await Actions['ask'](K(0x157))||'Contact',n=await Actions[K(0x152)]('Contact\x20Last\x20Name\x20[Person]:\x20')||K(0x155),{contactType:o}=await Actions[K(0x141)](k),p=await Actions[K(0x152)](K(0x15b))||K(0x167),q=await Actions[K(0x152)](K(0x13c)),r=await Actions['ask'](K(0x14e))||'Honolulu',s=await Actions[K(0x152)](K(0x135))||K(0x139),t=await Actions[K(0x152)]('State\x20[HI]:\x20')||'HI',u=await Actions[K(0x152)]('Country\x20Code\x20[US]:\x20')||'US',v=getCountryCodeEnum(u);if(!v)throw Log[K(0x142)]('Invalid\x202\x20character\x20country\x20code');const w=await Actions['ask']('Contact\x20Phone\x20Number\x20[+1.5555555555]:\x20')||K(0x146),x=await Actions[K(0x152)](K(0x162))||'+1.5555555556',y=await Actions[K(0x152)]('Contact\x20Email\x20[mail@example.com]:\x20')||'mail@example.com',z=await Actions[K(0x149)](K(0x143)),A={'FirstName':m,'LastName':n,'ContactType':o,'CountryCode':v,'AddressLine1':p,'AddressLine2':q,'City':r,'ZipCode':s,'PhoneNumber':w,'Fax':x,'State':t,'Email':y};if(o!=='PERSON'){const D=await Actions[K(0x152)](K(0x131))||K(0x151);A['OrganizationName']=D;}const B=h||0x0*parseInt(l);Log[K(0x14d)](K(0x169)),Log['warn'](B+'\x20'+i+'\x20for\x20'+l+'\x20years\x20('+h+'\x20'+i+K(0x16c));const C=await Actions[K(0x149)](K(0x160));C&&await d[K(0x164)](A,c,parseInt(l),z);}}else throw K(0x16a);}catch(E){E&&Log['error'](E),process[K(0x133)](0x0);}},a16e);
@@ -1 +1 @@
1
- const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x92))/0x1*(parseInt(h(0xa5))/0x2)+parseInt(h(0x9b))/0x3*(-parseInt(h(0x83))/0x4)+-parseInt(h(0xa0))/0x5+parseInt(h(0x95))/0x6+-parseInt(h(0x93))/0x7+parseInt(h(0x8d))/0x8*(-parseInt(h(0x89))/0x9)+parseInt(h(0xa2))/0xa*(parseInt(h(0x88))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0xb3e8d));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x91)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x96)]()[j(0x97)]('(((.+)+)+)+$')[j(0x96)]()['constructor'](a17a)[j(0x97)](j(0x8f));});function a17c(){const n=['rkp','exit','257140KsNPMC','Not\x20deleting\x20keypair','30ZUrGCT','ask','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','60276buOLuv','4hsMYiP','forEach','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','confirm','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','3867765nPQvJy','63oqoptG','name','remove-key-pair','create','1006512cwVXse','success','(((.+)+)+)+$','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','apply','19vpFiBk','4516106ZqtBVS','deleteKeyPair','6840750BzYuyw','toString','search','Deleting\x20a\x20','Please\x20choose\x20a\x20key\x20to\x20delete:','error','1360197VoYatT','ec2describeKeys','maka\x20aws:remove-key-pair'];a17c=function(){return n;};return a17c();}a17a();function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x83;let f=c[d];return f;},a17d(a,b);}import a17e 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[a17k(0x8c)]({'name':a17k(0x8b),'aliases':[a17k(0x9e)],'usage':'maka\x20aws:remove-key-pair','validOpts':[],'shortDesc':a17k(0x90),'description':a17k(0x87),'examples':[a17k(0x9d),'maka\x20aws:rkp']},async function(){const l=a17k;try{const a=new AWS(),b=await a[l(0x9c)]();let c=undefined;const d=await Actions[l(0xa3)](l(0x99));b?.[l(0x84)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x8a)]);});if(!c)throw Log[l(0x9a)](l(0x85));const f=await Actions[l(0x86)](l(0x98)+c+l(0xa4),![]);f?(await a[l(0x94)](c),Log[l(0x8e)]('Deleted\x20'+c)):Log[l(0x9a)](l(0xa1)),process[l(0x9f)](0x0);}catch(g){g&&Log[l(0x9a)](g),process[l(0x9f)](0x1);}},a17e);
1
+ const a17k=a17d;(function(a,b){const h=a17d,c=a();while(!![]){try{const d=parseInt(h(0x15c))/0x1*(-parseInt(h(0x14f))/0x2)+-parseInt(h(0x169))/0x3*(-parseInt(h(0x166))/0x4)+-parseInt(h(0x16c))/0x5+-parseInt(h(0x16b))/0x6+parseInt(h(0x164))/0x7*(-parseInt(h(0x154))/0x8)+-parseInt(h(0x152))/0x9*(parseInt(h(0x15e))/0xa)+parseInt(h(0x163))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a17c,0x52c59));const a17b=(function(){let a=!![];return function(b,c){const d=a?function(){const i=a17d;if(c){const e=c[i(0x15d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a17a=a17b(this,function(){const j=a17d;return a17a[j(0x157)]()[j(0x14c)](j(0x14d))[j(0x157)]()[j(0x15a)](a17a)['search'](j(0x14d));});a17a();import a17e from'./aws.command.js';function a17d(a,b){const c=a17c();return a17d=function(d,e){d=d-0x14c;let f=c[d];return f;},a17d(a,b);}import{Command}from'../../command.js';function a17c(){const n=['2383983HOvYtr','create','20576JGyGyw','deleteKeyPair','name','toString','\x0a\x20\x20After\x20being\x20show\x20a\x20list\x20of\x20available\x20key\x20pairs,\x20provide\x20the\x20name\x0a\x20\x20of\x20the\x20key\x20pair\x20that\x20you\x27d\x20like\x20to\x20delete.\x0a\x0a\x20\x20This\x20cannot\x20be\x20undone!\x0a\x20\x20','success','constructor','rkp','30isEaeo','apply','10dwgNzn','error','remove-key-pair','maka\x20aws:rkp','Choose\x20from\x20your\x20list\x20of\x20public\x20keys\x20to\x20delete','22044407jqfuoq','196zLDxPe','ask','668DkiguG','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','forEach','7029mEZKxc','maka\x20aws:remove-key-pair','4004220XujVdT','3120010EdryTa','search','(((.+)+)+)+$','\x20could\x20impact\x20other\x20instances\x20that\x20are\x20using\x20it.\x20\x20Are\x20you\x20sure?','28534nKNLNt','Please\x20choose\x20a\x20key\x20to\x20delete:','exit'];a17c=function(){return n;};return a17c();}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[a17k(0x153)]({'name':a17k(0x160),'aliases':[a17k(0x15b)],'usage':a17k(0x16a),'validOpts':[],'shortDesc':a17k(0x162),'description':a17k(0x158),'examples':[a17k(0x16a),a17k(0x161)]},async function(){const l=a17k;try{const a=new AWS(),b=await a['ec2describeKeys']();let c=undefined;const d=await Actions[l(0x165)](l(0x150));b?.[l(0x168)](function(g){const m=l;g['id']===parseInt(d)&&(c=g[m(0x156)]);});if(!c)throw Log[l(0x15f)](l(0x167));const f=await Actions['confirm']('Deleting\x20a\x20'+c+l(0x14e),![]);f?(await a[l(0x155)](c),Log[l(0x159)]('Deleted\x20'+c)):Log[l(0x15f)]('Not\x20deleting\x20keypair'),process['exit'](0x0);}catch(g){g&&Log[l(0x15f)](g),process[l(0x151)](0x1);}},a17e);
@@ -1 +1 @@
1
- const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=parseInt(m(0x1f2))/0x1+-parseInt(m(0x1d8))/0x2+parseInt(m(0x1dd))/0x3+-parseInt(m(0x1f8))/0x4*(parseInt(m(0x1dc))/0x5)+-parseInt(m(0x1e7))/0x6*(-parseInt(m(0x1f1))/0x7)+-parseInt(m(0x1de))/0x8*(-parseInt(m(0x1e6))/0x9)+parseInt(m(0x1fe))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x4b502));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0x1e0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a[o(0x1f9)]()[o(0x1da)](o(0x1d5))[o(0x1f9)]()['constructor'](a18a)['search']('(((.+)+)+)+$');});a18a();import a18e from'path';import a18f from'fs';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a18d(a,b);}import{execSync}from'child_process';import a18g 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[a18p(0x1f3)]({'name':a18p(0x1ff),'aliases':['sth'],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a18p(0x1fa)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18p(0x1f6),'examples':[a18p(0x1e8),a18p(0x1d7)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this['fsi'][q(0x1df)](b['env']),f=this[q(0x1eb)][q(0x1ea)](d),g=this[q(0x1eb)][q(0x1e2)](),h=await c[q(0x1f5)](),i=a18e[q(0x1db)](f,q(0x1fd));!this[q(0x1eb)][q(0x1e5)](i)&&await this['fsi'][q(0x1ef)]({'srcPath':'config/ssh.json','destPath':i,'context':{'app':g[q(0x1e9)]},'config':g});const j=JSON[q(0x1fc)](a18f[q(0x1ec)](i,q(0x1ed))),k=await Actions[q(0x1f0)]('Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]')||q(0x1ee);if(k){if(k===q(0x1ee)||k===q(0x1e4)){if(k===q(0x1ee))j[q(0x1fb)]=h?.['publicIp'];else k===q(0x1e4)&&(j[q(0x1fb)]=h?.[q(0x1f4)]);}else throw q(0x1e3);}else j[q(0x1fb)]=h?.[q(0x1f4)];a18f[q(0x1d9)](a18e['join'](f,q(0x1fd)),JSON[q(0x1d6)](j,null,0x2)),execSync(q(0x1e1)+a18e[q(0x1db)](f,q(0x1fd)),{'stdio':'inherit'}),Log['success'](q(0x1f7)+k+'\x20IP\x20to\x20'+f+a18e['sep']+q(0x1fd));}catch(l){l&&Log['error'](l),process['exit'](0x0);}},a18g);function a18c(){const r=['255290hvbGMC','writeFileSync','search','join','200TkpKnd','91956zJmepW','19512TyEOly','getEnvFromShorthand','apply','cat\x20','getMakaProjectConfig','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','private','isFile','351HWrWSn','426xlTWgH','maka\x20aws:set-host\x20--env\x20dev','appName','getAppConfigPath','fsi','readFileSync','utf8','public','template','ask','25473kPwdsl','338966sCGmJI','create','privateIp','chooseInstance','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','\x0aSaved\x20host\x20','37624EbmvIQ','toString','env','host','parse','ssh.json','892590xRFmxP','set-host','(((.+)+)+)+$','stringify','maka\x20aws:sth\x20--env\x20prod'];a18c=function(){return r;};return a18c();}
1
+ const a18p=a18d;(function(a,b){const m=a18d,c=a();while(!![]){try{const d=-parseInt(m(0x102))/0x1*(parseInt(m(0x10b))/0x2)+parseInt(m(0x11d))/0x3+parseInt(m(0x119))/0x4+-parseInt(m(0xff))/0x5+parseInt(m(0x112))/0x6+-parseInt(m(0x11a))/0x7+-parseInt(m(0x11b))/0x8*(-parseInt(m(0xfe))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a18c,0x31e0b));const a18b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a18d;if(c){const e=c[n(0x114)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a18a=a18b(this,function(){const o=a18d;return a18a['toString']()['search'](o(0x11c))[o(0x100)]()[o(0xf5)](a18a)['search'](o(0x11c));});a18a();import a18e from'path';import a18f from'fs';import{execSync}from'child_process';import a18g from'./aws.command.js';import{Command}from'../../command.js';function a18d(a,b){const c=a18c();return a18d=function(d,e){d=d-0xf4;let f=c[d];return f;},a18d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';import{Log}from'../../tools/log/log.class.js';function a18c(){const r=['host','error','appName','parse','ssh.json','privateIp','set-host','success','216kisrTH','174930qLEisp','toString','stringify','1nvRHdu','private','That\x20is\x20not\x20an\x20option.\x20Must\x20be\x20\x22public\x22\x20or\x20\x22private\x22','sep','getEnvFromShorthand','inherit','exit','getMakaProjectConfig','env','517354vkszuE','cat\x20','isFile','Set\x20the\x20host\x20to\x20public\x20or\x20private?\x20[public]','chooseInstance','publicIp','maka\x20aws:set-host\x20--env\x20dev','706950qeudXG','join','apply','maka\x20aws:sth\x20--env\x20prod','writeFileSync','public','\x0a\x20\x20Get\x20a\x20list\x20of\x20AWS\x20EC2\x20instances\x20running,\x20and\x20choose\x20a\x20public\x20or\x20private\x20IP\x20to\x0a\x20\x20set\x20the\x20specified\x20environment\x27s\x20ssh.json\x20file\x20to\x20point\x20to\x20that\x20IP.\x0a\x20\x20','1399436QQNIVq','2598197ihvVIN','96856iYknhi','(((.+)+)+)+$','332643qaJrrL','fsi','readFileSync','ask','constructor'];a18c=function(){return r;};return a18c();}Command['create']({'name':a18p(0xfc),'aliases':['sth'],'usage':'maka\x20aws\x20set-host','mustBeInMakaProject':!![],'requiredOpts':[a18p(0x10a)],'validOpts':[],'shortDesc':'Set\x20the\x20EC2\x20IP\x20to\x20the\x20environment\x20specified','description':a18p(0x118),'examples':[a18p(0x111),a18p(0x115)]},async function(a,b){const q=a18p;try{const c=new AWS(),d=this[q(0x11e)][q(0x106)](b[q(0x10a)]),f=this[q(0x11e)]['getAppConfigPath'](d),g=this[q(0x11e)][q(0x109)](),h=await c[q(0x10f)](),i=a18e[q(0x113)](f,q(0xfa));!this[q(0x11e)][q(0x10d)](i)&&await this['fsi']['template']({'srcPath':'config/ssh.json','destPath':i,'context':{'app':g[q(0xf8)]},'config':g});const j=JSON[q(0xf9)](a18f[q(0x11f)](i,'utf8')),k=await Actions[q(0xf4)](q(0x10e))||q(0x117);if(k){if(k===q(0x117)||k===q(0x103)){if(k===q(0x117))j[q(0xf6)]=h?.[q(0x110)];else k===q(0x103)&&(j['host']=h?.[q(0xfb)]);}else throw q(0x104);}else j[q(0xf6)]=h?.[q(0xfb)];a18f[q(0x116)](a18e[q(0x113)](f,'ssh.json'),JSON[q(0x101)](j,null,0x2)),execSync(q(0x10c)+a18e[q(0x113)](f,q(0xfa)),{'stdio':q(0x107)}),Log[q(0xfd)]('\x0aSaved\x20host\x20'+k+'\x20IP\x20to\x20'+f+a18e[q(0x105)]+q(0xfa));}catch(l){l&&Log[q(0xf7)](l),process[q(0x108)](0x0);}},a18g);
@@ -1 +1 @@
1
- const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=-parseInt(f(0xe9))/0x1+-parseInt(f(0xe1))/0x2*(parseInt(f(0xdc))/0x3)+-parseInt(f(0xe6))/0x4+parseInt(f(0xd9))/0x5*(parseInt(f(0xd1))/0x6)+parseInt(f(0xd7))/0x7+-parseInt(f(0xe3))/0x8*(parseInt(f(0xcb))/0x9)+parseInt(f(0xe7))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0x6d5e3));const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0xce)]()['search'](h(0xe8))['toString']()[h(0xe0)](a19a)[h(0xd5)](h(0xe8));});a19a();function a19c(){const k=['2867459bkhXSR','maka\x20aws:terminate-instance','45jBfPhO','chooseInstance','ec2terminateInstance','4017hRwPMJ','confirm','create','apply','constructor','338AXKDSn','exit','51320tayhuv','instanceId','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','455732Jyemry','4999420tJVmXS','(((.+)+)+)+$','296645ALvMzX','\x20Ready?','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','18JYIIgV','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.','toString','status','terminate-instance','125394wUySUL','You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20','name','maka\x20aws:ti','search','error'];a19c=function(){return k;};return a19c();}function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0xc9;let f=c[d];return f;},a19d(a,b);}import a19e 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[a19i(0xde)]({'name':a19i(0xd0),'aliases':['ti'],'usage':a19i(0xd8),'validOpts':[],'shortDesc':'Terminate\x20an\x20EC2\x20instance','description':a19i(0xca),'examples':[a19i(0xd8),a19i(0xd4)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0xda)]();if(b?.[j(0xe4)]&&b?.[j(0xcf)]==='running'){const c=await Actions[j(0xdd)](j(0xd2)+b[j(0xd3)]+j(0xc9));c?a[j(0xdb)]({'instanceId':b[j(0xe4)]}):Log['error'](j(0xe5)+b[j(0xd3)]+j(0xcc));}else Log[j(0xd6)](j(0xcd));}catch(d){d&&Log[j(0xd6)](d),process[j(0xe2)](0x1);}},a19e);
1
+ const a19i=a19d;(function(a,b){const f=a19d,c=a();while(!![]){try{const d=parseInt(f(0x151))/0x1+parseInt(f(0x141))/0x2+-parseInt(f(0x138))/0x3+parseInt(f(0x133))/0x4*(parseInt(f(0x13f))/0x5)+-parseInt(f(0x14c))/0x6+-parseInt(f(0x13e))/0x7*(-parseInt(f(0x137))/0x8)+-parseInt(f(0x142))/0x9*(parseInt(f(0x136))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a19c,0xa3f20));function a19c(){const k=['exit','apply','2389121APjrsd','3351245PKVnPc','You\x20have\x20aborted\x20the\x20termination.\x20\x20The\x20instance:\x20','1313320XDVuGP','381069IUrAqo','constructor','status','confirm','maka\x20aws:terminate-instance','\x20Ready?','toString','Terminate\x20an\x20EC2\x20instance','search','chooseInstance','4148868rUCFdJ','error','(((.+)+)+)+$','instanceId','\x20is\x20still\x20running.\x20\x20(Charges\x20are\x20still\x20being\x20applied).','214687aYFnxY','running','4TZRDZV','maka\x20aws:ti','\x0a\x20\x20After\x20being\x20provided\x20a\x20list\x20of\x20EC2\x20instances\x20created\x20by\x20Maka-CLI,\x0a\x20\x20choose\x20the\x20ID\x20of\x20an\x20instance\x20to\x20terminate.\x0a\x0a\x20\x20This\x20optation\x20cannot\x20be\x20undone!\x0a\x20\x20','50rMHJnu','8msmLxE','924588txiDEx','terminate-instance','ec2terminateInstance','name'];a19c=function(){return k;};return a19c();}const a19b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a19d;if(c){const e=c[g(0x13d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a19a=a19b(this,function(){const h=a19d;return a19a[h(0x148)]()[h(0x14a)](h(0x14e))[h(0x148)]()[h(0x143)](a19a)[h(0x14a)](h(0x14e));});a19a();import a19e from'./aws.command.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';function a19d(a,b){const c=a19c();return a19d=function(d,e){d=d-0x132;let f=c[d];return f;},a19d(a,b);}import{AWS}from'../../tools/aws/aws.class.js';import{Actions}from'../../tools/actions/actions.class.js';Command['create']({'name':a19i(0x139),'aliases':['ti'],'usage':a19i(0x146),'validOpts':[],'shortDesc':a19i(0x149),'description':a19i(0x135),'examples':[a19i(0x146),a19i(0x134)]},async function(){const j=a19i;try{const a=new AWS(),b=await a[j(0x14b)]();if(b?.[j(0x14f)]&&b?.[j(0x144)]===j(0x132)){const c=await Actions[j(0x145)]('You\x20are\x20about\x20to\x20terminate\x20(lose\x20all\x20data)\x20on\x20instance:\x20'+b[j(0x13b)]+j(0x147));c?a[j(0x13a)]({'instanceId':b[j(0x14f)]}):Log[j(0x14d)](j(0x140)+b[j(0x13b)]+j(0x150));}else Log[j(0x14d)]('There\x20are\x20no\x20instances\x20in\x20a\x20state\x20that\x20can\x20be\x20terminated;\x20either\x20they\x20are\x20spinning\x20up,\x20or\x20are\x20already\x20terminated.');}catch(d){d&&Log[j(0x14d)](d),process[j(0x13c)](0x1);}},a19e);
@@ -1 +1 @@
1
- (function(a,b){var f=a20d,c=a();while(!![]){try{var d=-parseInt(f(0x192))/0x1*(parseInt(f(0x19b))/0x2)+parseInt(f(0x197))/0x3*(-parseInt(f(0x196))/0x4)+-parseInt(f(0x190))/0x5*(-parseInt(f(0x191))/0x6)+-parseInt(f(0x18e))/0x7+-parseInt(f(0x199))/0x8*(-parseInt(f(0x193))/0x9)+-parseInt(f(0x19c))/0xa+parseInt(f(0x18d))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0x8f261));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a[h(0x18f)]()[h(0x194)](h(0x195))[h(0x18f)]()[h(0x19a)](a20a)[h(0x194)](h(0x195));});function a20c(){var i=['apply','5754632mekrDA','constructor','18636KltDHp','599320nbHpbY','13051676HNsPZh','7463183IQCsMN','toString','1814320EeNHCY','12ATiNXT','58UwlGRX','9npFOcS','search','(((.+)+)+)+$','1514764OAGBRu','3guiwlJ'];a20c=function(){return i;};return a20c();}a20a();import'./build.js';function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x18d;var f=c[d];return f;},a20d(a,b);}import'./docker.sub.cmd.js';
1
+ (function(a,b){var f=a20d,c=a();while(!![]){try{var d=parseInt(f(0x15c))/0x1*(-parseInt(f(0x150))/0x2)+-parseInt(f(0x156))/0x3+-parseInt(f(0x152))/0x4+parseInt(f(0x15b))/0x5+parseInt(f(0x158))/0x6*(parseInt(f(0x159))/0x7)+-parseInt(f(0x154))/0x8*(-parseInt(f(0x151))/0x9)+parseInt(f(0x15f))/0xa*(parseInt(f(0x153))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a20c,0xaf0f0));var a20b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a20d;if(c){var e=c[g(0x15a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a20a=a20b(this,function(){var h=a20d;return a20a['toString']()[h(0x155)](h(0x15e))[h(0x157)]()[h(0x15d)](a20a)[h(0x155)](h(0x15e));});a20a();function a20d(a,b){var c=a20c();return a20d=function(d,e){d=d-0x150;var f=c[d];return f;},a20d(a,b);}import'./build.js';function a20c(){var i=['3246204GEDePn','55syedUc','3140664SXLifL','search','3097827fpOAzt','toString','6XxilNq','6532939ASDVqq','apply','4286835sHAUXH','14TEOeWJ','constructor','(((.+)+)+)+$','891290OSsRwQ','121834dOkhLK','27MbOZQm'];a20c=function(){return i;};return a20c();}import'./docker.sub.cmd.js';
@@ -1 +1 @@
1
- const a21m=a21d;(function(a,b){const j=a21d,c=a();while(!![]){try{const d=-parseInt(j(0xdc))/0x1+-parseInt(j(0xc9))/0x2+-parseInt(j(0xc3))/0x3*(-parseInt(j(0xd6))/0x4)+parseInt(j(0xcf))/0x5+-parseInt(j(0xd3))/0x6*(-parseInt(j(0xc0))/0x7)+parseInt(j(0xe0))/0x8+-parseInt(j(0xe2))/0x9*(parseInt(j(0xd1))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x6c1a0));const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a21d;if(c){const e=c[k(0xdd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const l=a21d;return a21a[l(0xd4)]()[l(0xce)](l(0xca))[l(0xd4)]()[l(0xc1)](a21a)[l(0xce)](l(0xca));});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xbe;let f=c[d];return f;},a21d(a,b);}a21a();import a21e from'path';import a21f from'fs';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21m(0xc8)]({'name':a21m(0xc7),'usage':a21m(0xd2),'validOpts':['force'],'aliases':['b'],'shortDesc':'Build\x20your\x20application\x20into\x20the\x20build\x20folder.','mustBeInMakaProject':!![],'description':a21m(0xc6),'examples':[a21m(0xd2)]},async function(a,b){const n=a21m;try{this[n(0xe1)][n(0xc2)]()?Log['notice']('Meteor\x20is\x20installed.'):(Log['warn'](n(0xd7)),execSync(n(0xd0),{'stdio':n(0xdf)}));await this['fsi']['checkMeteorPackage'](n(0xda),{'shouldInstall':!![]});const c=b['force'],d=[this[n(0xe1)]['pathFromProject']({'pathParts':['build']})][n(0xd5)](process['argv']['slice'](0x3)),f=a21e[n(0xc5)](this[n(0xe1)][n(0xd9)]({}),n(0xc7),n(0xc4));if(a21f[n(0xcc)](f)){const g=c??await Actions['confirm'](n(0xde));if(!g)throw Log[n(0xcb)](n(0xcd));}d[n(0xbe)]((h,i)=>{const o=n;h==='--force'&&d[o(0xdb)](i,0x2);}),this['fsi'][n(0xbf)](n(0xc7),d);}catch(h){console['error'](h),process[n(0xd8)](0x0);}});export default BuildCommand;function a21c(){const p=['existsSync','Aborted.','search','2828030tSDiYM','maka\x20install\x20--force','5410490bHgKJq','maka\x20build','132rGfyip','toString','concat','2179644tOWYXU','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','exit','pathFromProject','autoupdate','splice','616243lIpgUY','apply','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','inherit','5454144bPbIGG','fsi','9uaFNrQ','forEach','invokeMeteorCommand','181118lTdKZS','constructor','isMeteorInstalled','3PGRusC','app.tar.gz','join','\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','build','create','1522874kicGMC','(((.+)+)+)+$','error'];a21c=function(){return p;};return a21c();}
1
+ const a21m=a21d;(function(a,b){const j=a21d,c=a();while(!![]){try{const d=parseInt(j(0x119))/0x1*(parseInt(j(0xf5))/0x2)+-parseInt(j(0xfb))/0x3*(-parseInt(j(0xf9))/0x4)+parseInt(j(0x110))/0x5*(parseInt(j(0x107))/0x6)+parseInt(j(0x117))/0x7+-parseInt(j(0x10f))/0x8+parseInt(j(0x111))/0x9*(parseInt(j(0x10e))/0xa)+parseInt(j(0x114))/0xb*(-parseInt(j(0xf3))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a21c,0x1a7cd));function a21c(){const p=['2676eTgNWB','search','20prkItU','constructor','fsi','warn','20ncuPmY','Meteor\x20is\x20not\x20installed\x20or\x20cannot\x20be\x20found\x20in\x20your\x20path.\x20Installing...','115449PQulCQ','maka\x20build','app.tar.gz','concat','apply','pathFromProject','isMeteorInstalled','slice','build','Build\x20your\x20application\x20into\x20the\x20build\x20folder.','forEach','error','1148106MFbrss','inherit','force','--force','notice','checkMeteorPackage','splice','430caOGxc','910744oAReNX','5lXVhJk','44001LqrdmL','Found\x20existing\x20bundle,\x20would\x20you\x20like\x20to\x20rebuild\x20it?','Meteor\x20is\x20installed.','25729pcsnJY','(((.+)+)+)+$','toString','923720jTWDWT','argv','1798MimENM','create','exit'];a21c=function(){return p;};return a21c();}const a21b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a21d;if(c){const e=c[k(0xff)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a21a=a21b(this,function(){const l=a21d;return a21a[l(0x116)]()[l(0xf4)](l(0x115))[l(0x116)]()[l(0xf6)](a21a)[l(0xf4)](l(0x115));});a21a();import a21e from'path';import a21f from'fs';import{execSync}from'child_process';import{Actions}from'../../tools/actions/actions.class.js';import{Command}from'../../command.js';import{Log}from'../../tools/log/log.class.js';const BuildCommand=Command[a21m(0x11a)]({'name':a21m(0x103),'usage':a21m(0xfc),'validOpts':['force'],'aliases':['b'],'shortDesc':a21m(0x104),'mustBeInMakaProject':!![],'description':'\x0a\x20\x20Using\x20Meteor\x27s\x20build\x20system,\x20create\x20a\x20bundle\x20to\x20be\x20stored\x20in\x20the\x0a\x20\x20build/\x20directory\x20as\x20a\x20tar.gz\x20file.\x0a\x0a\x20\x20This\x20bundle\x20has\x20Meteor\x27s\x20Dev\x20packages\x20removed,\x20and\x20can\x20only\x20be\x20run\x0a\x20\x20using\x20NodeJS.\x0a\x20\x20','examples':[a21m(0xfc)]},async function(a,b){const n=a21m;try{this[n(0xf7)][n(0x101)]()?Log[n(0x10b)](n(0x113)):(Log[n(0xf8)](n(0xfa)),execSync('maka\x20install\x20--force',{'stdio':n(0x108)}));await this[n(0xf7)][n(0x10c)]('autoupdate',{'shouldInstall':!![]});const c=b[n(0x109)],d=[this[n(0xf7)][n(0x100)]({'pathParts':[n(0x103)]})][n(0xfe)](process[n(0x118)][n(0x102)](0x3)),f=a21e['join'](this[n(0xf7)]['pathFromProject']({}),'build',n(0xfd));if(a21f['existsSync'](f)){const g=c??await Actions['confirm'](n(0x112));if(!g)throw Log[n(0x106)]('Aborted.');}d[n(0x105)]((h,i)=>{const o=n;h===o(0x10a)&&d[o(0x10d)](i,0x2);}),this['fsi']['invokeMeteorCommand'](n(0x103),d);}catch(h){console[n(0x106)](h),process[n(0xf2)](0x0);}});function a21d(a,b){const c=a21c();return a21d=function(d,e){d=d-0xf2;let f=c[d];return f;},a21d(a,b);}export default BuildCommand;