@maka/maka-cli 4.9.7 → 4.9.10

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 (158) hide show
  1. package/README.md +1 -1
  2. package/bundle/obf/package.json +1 -1
  3. package/bundle/obf/src/README.md +1 -1
  4. package/bundle/obf/src/command.js +1 -1
  5. package/bundle/obf/src/commands/_index.js +1 -1
  6. package/bundle/obf/src/commands/ai.js +1 -1
  7. package/bundle/obf/src/commands/aws/_index.js +1 -1
  8. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  9. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/csg.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/rbi.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/build/_index.js +1 -1
  22. package/bundle/obf/src/commands/build/build.js +1 -1
  23. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/create.js +1 -1
  25. package/bundle/obf/src/commands/debug.js +1 -1
  26. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  27. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  28. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/game/_index.js +1 -1
  31. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/game/play.command.js +1 -1
  33. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  34. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  68. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/generate.js +1 -1
  71. package/bundle/obf/src/commands/get/_index.js +1 -1
  72. package/bundle/obf/src/commands/get/get.command.js +1 -1
  73. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  74. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/help.js +1 -1
  77. package/bundle/obf/src/commands/install.js +1 -1
  78. package/bundle/obf/src/commands/jsdoc.js +1 -1
  79. package/bundle/obf/src/commands/lint.js +1 -1
  80. package/bundle/obf/src/commands/login.js +1 -1
  81. package/bundle/obf/src/commands/logout.js +1 -1
  82. package/bundle/obf/src/commands/logs.js +1 -1
  83. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  84. package/bundle/obf/src/commands/murder.js +1 -1
  85. package/bundle/obf/src/commands/patreon.js +1 -1
  86. package/bundle/obf/src/commands/proxy.js +1 -1
  87. package/bundle/obf/src/commands/reconfig.js +1 -1
  88. package/bundle/obf/src/commands/register.js +1 -1
  89. package/bundle/obf/src/commands/run/_index.js +1 -1
  90. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  91. package/bundle/obf/src/commands/run/run.command.js +1 -1
  92. package/bundle/obf/src/commands/set/_index.js +1 -1
  93. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  94. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/set.command.js +1 -1
  96. package/bundle/obf/src/commands/ssh.js +1 -1
  97. package/bundle/obf/src/commands/ssl.js +1 -1
  98. package/bundle/obf/src/commands/test.js +1 -1
  99. package/bundle/obf/src/commands/undo.js +1 -1
  100. package/bundle/obf/src/commands/version.js +1 -1
  101. package/bundle/obf/src/error.js +1 -1
  102. package/bundle/obf/src/exec.js +1 -1
  103. package/bundle/obf/src/generator.js +1 -1
  104. package/bundle/obf/src/generators/_index.js +1 -1
  105. package/bundle/obf/src/generators/api.js +1 -1
  106. package/bundle/obf/src/generators/collection.js +1 -1
  107. package/bundle/obf/src/generators/component.js +1 -1
  108. package/bundle/obf/src/generators/config.js +1 -1
  109. package/bundle/obf/src/generators/dbc.js +1 -1
  110. package/bundle/obf/src/generators/dockerfile.js +1 -1
  111. package/bundle/obf/src/generators/hook.js +1 -1
  112. package/bundle/obf/src/generators/kits/_index.js +1 -1
  113. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  114. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  115. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  116. package/bundle/obf/src/generators/kits/kit.js +1 -1
  117. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  118. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  120. package/bundle/obf/src/generators/layout.js +1 -1
  121. package/bundle/obf/src/generators/maka.gen.js +1 -1
  122. package/bundle/obf/src/generators/methods.js +1 -1
  123. package/bundle/obf/src/generators/package.js +1 -1
  124. package/bundle/obf/src/generators/page.js +1 -1
  125. package/bundle/obf/src/generators/publish.js +1 -1
  126. package/bundle/obf/src/generators/route.js +1 -1
  127. package/bundle/obf/src/generators/service.js +1 -1
  128. package/bundle/obf/src/generators/services/_index.js +1 -1
  129. package/bundle/obf/src/generators/services/openssl.js +1 -1
  130. package/bundle/obf/src/generators/services/translation.js +1 -1
  131. package/bundle/obf/src/maka.js +1 -1
  132. package/bundle/obf/src/templates/meteor/api/api.js +1 -1
  133. package/bundle/obf/src/templates/meteor/api/api.js.ts +0 -1
  134. package/bundle/obf/src/templates/meteor/collection/collection.js +15 -49
  135. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +19 -61
  136. package/bundle/obf/src/templates/meteor/project/package.json +1 -1
  137. package/bundle/obf/src/tool.js +1 -1
  138. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  139. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  140. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  141. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  142. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  144. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/https/https.class.js +1 -1
  146. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  147. package/bundle/obf/src/tools/log/log.class.js +1 -1
  148. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/options/options.class.js +1 -1
  150. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  151. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  152. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  154. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  156. package/package.json +1 -1
  157. package/bundle/obf/src/templates/meteor/api/collection.js +0 -86
  158. package/bundle/obf/src/templates/meteor/api/collection.js.ts +0 -94
@@ -1,9 +1,6 @@
1
- import { Mongo } from 'meteor/mongo';
2
- import { check, Match } from 'meteor/maka:check';
1
+ import { Mongo } from 'meteor/mongo';<% if (where === 'client') { -%>
2
+ export const <%= name %> = new Mongo.Collection(null);<% } else { -%>
3
3
 
4
- <% if (where === 'client') { -%>
5
- export const <%= name %> = new Mongo.Collection(null);
6
- <% } else { -%>
7
4
  class <%= name %>Collection extends Mongo.Collection {
8
5
  constructor() {
9
6
  super('<%= name %>');
@@ -15,65 +12,34 @@ class <%= name %>Collection extends Mongo.Collection {
15
12
  update() { return false; },
16
13
  remove() { return false; },
17
14
  });
15
+ }
18
16
 
19
- this.insertSchema = {};
20
- this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
17
+ async createIndexAsync(index, options) {
18
+ return await createIndexAsync(index, options);
21
19
  }
22
20
 
23
21
  find(selector = {}, modifier) {
24
22
  return super.find(selector, modifier);
25
23
  }
26
24
 
27
- findOne(selector = {}, modifier) {
28
- return super.findOne(selector, modifier);
25
+ async findOneAsync(selector = {}, modifier) {
26
+ return await super.findOneAsync(selector, modifier);
29
27
  }
30
28
 
31
- /**
32
- * @public
33
- * @param { object } doc The document to inserted.
34
- * @param { object } callback The callback from invocation.
35
- * @returns { string } The _id of the new doc.
36
- */
37
- insert(doc) {
38
- if (this._hasSchema()) {
39
- check(doc, this.insertSchema, 'while validating mongo insert against schema');
40
- }
41
- return super.insert(doc);
29
+ async insertAsync(doc) {
30
+ return await super.insertAsync(doc);
42
31
  }
43
32
 
44
- /**
45
- * @public
46
- * @param { object | string } selector The mongodb selector.
47
- * @param { object } modifier The mongodb modifier.
48
- * @returns { string } The _id of the document updated.
49
- * */
50
- update(selector, modifier) {
51
- if (this._hasSchema()) {
52
- check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
53
- }
54
- return super.update(selector, modifier);
33
+ async updateAsync(selector, modifier) {
34
+ return await super.updateAsync(selector, modifier);
55
35
  }
56
36
 
57
- /**
58
- * @public
59
- * @param { object | string } selector The mongodb selector.
60
- * @returns { string } The _id of the document being removed.
61
- */
62
- remove(selector) {
63
- return super.remove(selector);
37
+ async upsertAsync(selector, modifier, options) {
38
+ return await super.upsertAsync(selector, modifier, options);
64
39
  }
65
40
 
66
- // Helper method
67
- _hasSchema = () => {
68
- const { insertSchema, updateSchema } = this;
69
- if (insertSchema) {
70
- return (Object.keys(insertSchema).length !== 0
71
- && insertSchema.constructor === Object);
72
- }
73
- if (updateSchema) {
74
- return (Object.keys(updateSchema).length !== 0
75
- && updateSchema.constructor === Object);
76
- }
41
+ async remove(selector) {
42
+ return await super.removeAsync(selector);
77
43
  }
78
44
  }
79
45
 
@@ -1,21 +1,11 @@
1
- import { Mongo } from 'meteor/mongo';
2
- import { check, Match } from 'meteor/maka:check';
1
+ import { Mongo } from 'meteor/mongo';<% if (where === 'client') { -%>
2
+ export const <%= name %> = new Mongo.Collection(null);<% } else { %>
3
3
 
4
- <% if (where === 'client') { -%>
5
- export const <%= name %> = new Mongo.Collection(null);
6
- <% } else { %>
7
- interface <%=name%>Collection {
8
- publicFields: any;
4
+ class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
5
+ publicFields: any;
9
6
  privateFields: any;
10
- deny: any,
11
- schema: any;
12
- }
7
+ allow: any = () => {};
13
8
 
14
- /**
15
- * @memberof Server.<%= name %>
16
- * @extends Mongo.Collection
17
- */
18
- class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
19
9
  constructor() {
20
10
  super('<%= name %>');
21
11
 
@@ -26,66 +16,34 @@ class <%= name %>Collection extends Mongo.Collection<<%=name%>Collection> {
26
16
  update() { return false; },
27
17
  remove() { return false; },
28
18
  });
19
+ }
29
20
 
30
- this.insertSchema = {};
31
- this.updateSchema = {}; // Note: You'll likely want all properties to be Match.Optional()
21
+ async createIndexAsync(index: any, options: any) {
22
+ return await createIndexAsync(index, options);
32
23
  }
33
24
 
34
- find(selector:any = {}, modifier:object) {
25
+ find(selector = {}, modifier?: any) {
35
26
  return super.find(selector, modifier);
36
27
  }
37
28
 
38
- findOne(selector:any = {}, modifier:object) {
39
- return super.findOne(selector, modifier);
29
+ async findOneAsync(selector = {}, modifier?: any) {
30
+ return super.findOneAsync(selector, modifier);
40
31
  }
41
32
 
42
- /**
43
- * @public
44
- * @param { object } doc The document to inserted.
45
- * @param { object } callback The callback from invocation.
46
- * @returns { string } The _id of the new doc.
47
- */
48
- insert(doc:any) {
49
- if (this._hasSchema()) {
50
- check(doc, this.insertSchema, 'while validating mongo insert against schema');
51
- }
52
- return super.insert(doc);
33
+ async insertAsync(doc: any) {
34
+ return await super.insertAsync(doc);
53
35
  }
54
36
 
55
- /**
56
- * @public
57
- * @param { object | string } selector The mongodb selector.
58
- * @param { object } modifier The mongodb modifier.
59
- * @returns { string } The _id of the document updated.
60
- * */
61
- update(selector:any, modifier:UpdateModifier) {
62
- if (this._hasSchema()) {
63
- check(modifier.$set, this.updateSchema, 'while validating mongo update against schema');
64
- }
65
-
66
- return super.update(selector, modifier);
37
+ async updateAsync(selector: any, modifier?: any) {
38
+ return await super.updateAsync(selector, modifier);
67
39
  }
68
40
 
69
- /**
70
- * @public
71
- * @param { object | string } selector The mongodb selector.
72
- * @returns { string } The _id of the document being removed.
73
- */
74
- remove(selector:any) {
75
- return super.remove(selector);
41
+ async upsertAsync(selector: any, modifier?: any, options?: any) {
42
+ return await super.upsertAsync(selector, modifier, options);
76
43
  }
77
44
 
78
- // Helper method
79
- _hasSchema = () => {
80
- const { insertSchema, updateSchema } = this;
81
- if (insertSchema) {
82
- return (Object.keys(insertSchema).length !== 0
83
- && insertSchema.constructor === Object);
84
- }
85
- if (updateSchema) {
86
- return (Object.keys(updateSchema).length !== 0
87
- && updateSchema.constructor === Object);
88
- }
45
+ async removeAsync(selector: any) {
46
+ return await super.removeAsync(selector);
89
47
  }
90
48
  }
91
49
 
@@ -19,6 +19,6 @@
19
19
  "type": "git"
20
20
  },
21
21
  "devDependencies": {
22
- "@maka/maka-cli": "^4.9.7"
22
+ "@maka/maka-cli": "^4.9.10"
23
23
  }
24
24
  }
@@ -1 +1 @@
1
- const a129L=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=-parseInt(I(0x17c))/0x1+-parseInt(I(0x16c))/0x2*(-parseInt(I(0x189))/0x3)+-parseInt(I(0x180))/0x4*(-parseInt(I(0x18b))/0x5)+-parseInt(I(0x173))/0x6+-parseInt(I(0x1ab))/0x7+parseInt(I(0x1a6))/0x8+-parseInt(I(0x172))/0x9*(-parseInt(I(0x1b5))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x8acfb));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a129d;if(c){const e=c[J(0x182)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const K=a129d;return a129a['toString']()[K(0x197)](K(0x1b3))[K(0x1ad)]()[K(0x185)](a129a)[K(0x197)](K(0x1b3));});a129a();import a129e from'path';import a129f from'os';import a129g from'fs';const homeDir=a129f['homedir']();import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';function a129c(){const a3=['name','4553955GRaiEm','proCommands','toString','platform','\x20version\x20','AppData','remapShortToLong','domainLicense','(((.+)+)+)+$','proGenerators','13650aSnpHP','aliases','existsSync','options','Please\x20choose\x20a\x20valid\x20value\x20for\x20','find','resourceName','validateParams','.meteor','string','getPro','findProjectDirectory','keys','shortDesc','roles','win32','length','2AcUdaB','To\x20use\x20this\x20generator,\x20\x22','getAppProjectConfigs','every','disableAuthCheck','Please\x20choose\x20a\x20value\x20for\x20','2889gOEbeu','5310108mHVMIR','docker','fsi','push','indexOf','NIE','getShortName','isPro','assign','1053202UverMU','singleLicense','isCommand','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','120tKgJTV','charAt','apply','None','Local','constructor','join','getMakaProjectConfig','\x20installed\x20to\x20use\x20this\x20command.','1906473HAlDsm','dir','173465oHwCgf','root','examples','formatToNamedParam','parent','exit','map','You\x20must\x20have\x20','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','error','_handler','config','search','Invalid\x20argument:\x20','Please\x20provide\x20a\x20resource\x20name:','match','description','No\x20description\x20provided.','isGenerator','cwd','validateEngines','usage','env','includes','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','ask','To\x20use\x20this\x20command,\x20\x22','8343280EtGwKc','Invalid\x20option:\x20','list','Please\x20provide\x20a\x20value\x20for\x20'];a129c=function(){return a3;};return a129c();}import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x165;let f=c[d];return f;},a129d(a,b);}export class Tool{[a129L(0x174)];['fsi'];['options'];[a129L(0x1aa)];[a129L(0x18f)];[a129L(0x195)];constructor(){const M=a129L;this[M(0x174)]=new Docker(),this[M(0x175)]=new FSI();}['getShortName'](a){const N=a129L;return a[N(0x181)](0x0);}[a129L(0x1b1)](a,b){const O=a129L,c=this[O(0x18e)](b),d={...a};for(const e of c){const f=this[O(0x179)](e[O(0x1aa)]);a[f]&&(d[e[O(0x1aa)]]=a[f],delete d[f]);}return d;}[a129L(0x18e)](a){const P=a129L;if(a[P(0x16f)](b=>typeof b===P(0x1be)))return a[P(0x191)](b=>({'name':b}));return a;}[a129L(0x19a)](a){const Q=a129L,b=[this[Q(0x1aa)]]['concat'](this[Q(0x1b8)][Q(0x1b6)]||[]);return this[Q(0x18f)]&&b[Q(0x176)](this[Q(0x18f)]),b[Q(0x1a2)](a);}['validateMakaProject'](){const R=a129L,a=this[R(0x175)][R(0x166)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const S=a129L;let a=a129e[S(0x186)](homeDir,'.meteor');const b=process[S(0x1ae)]===S(0x16a);if(b){a=a129e['join'](homeDir,S(0x1b0),S(0x184),S(0x1bd));if(!a129g[S(0x1b7)](a))return![];}else{if(!a129g[S(0x1b7)](a))return![];}return!![];}[a129L(0x19f)](a){const T=a129L,b=this['fsi'][T(0x187)](),c=b['engines'],d=Object[T(0x167)](a);if(d[T(0x16b)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0x194)](T(0x192)+e+T(0x1af)+a[e]+T(0x188));throw UsageError;}}}async[a129L(0x1bc)](a,b,c){const U=a129L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[U(0x1a2)](U(0x1bb))&&b[U(0x1bb)]===undefined&&!g){const m=await Actions[U(0x1a4)](U(0x199));b[U(0x1bb)]=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0x1b1)](b,i);if(i&&i?.[U(0x16b)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0x167)](j)['includes'](o)){if(o===U(0x1a1)){const r=this[U(0x175)][U(0x16e)](),s=await Actions[U(0x1b8)]({'type':U(0x1a8),'name':U(0x1a1),'message':'Please\x20choose\x20an\x20environment','choices':r});b[U(0x1a1)]=s[U(0x1a1)];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':U(0x171)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x1a4)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[U(0x19a)](q))b[o]=v;else{Log[U(0x194)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x1a4)](U(0x1a9)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x1a2)](x)){Log['error']('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0x18e)](f),l=b;if(k&&Object[U(0x167)](k)?.[U(0x16b)]>0x0){k=k['concat'](i||[]),k[U(0x176)]({'name':U(0x1bb),'hidden':!![]}),k[U(0x176)]({'name':'help','boolFlag':!![]}),k[U(0x176)]({'name':U(0x18a),'hidden':!![]}),k[U(0x176)]({'name':U(0x19e),'hidden':!![]}),k[U(0x176)]({'name':U(0x18c),'hidden':!![]}),k[U(0x176)]({'name':U(0x196),'hidden':!![]}),l=this[U(0x1b1)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x1a2)](B))){const C=A;if(C){const D=await Actions[U(0x1b8)]({'type':U(0x1a8),'name':z,'message':U(0x1b9)+z,'choices':A});l[z]=D[z];}}if(k[U(0x16b)]>0x0)for(const E of Object[U(0x167)](l)){const F=k[U(0x1ba)](G=>G['name']===E);if(!F){Log[U(0x194)](U(0x1a7)+E);throw new UsageError();}}}}if(e&&e?.[U(0x16b)]>0x0)for(const G of e){if(!e[U(0x1a2)](G)){Log[U(0x194)](U(0x198)+G);const H=await Actions[U(0x1a4)](U(0x17f)+G);a[a[U(0x177)](G)]=H;}}return Object[U(0x17b)](j,l);}async['validateMakaSubscription'](a){const V=a129L;try{if(!a)return;const b=await this['fsi'][V(0x165)]();!b&&(Log[V(0x194)](V(0x193)),process['exit'](0x1));const c=!b?.[V(0x169)][V(0x1a2)](V(0x17d))&&!b?.[V(0x169)][V(0x1a2)](V(0x1b2));if(this[V(0x17e)](a)){const d=V(0x1a5)+a['name']+V(0x1a3);if(a[V(0x1b8)][V(0x170)])return;const f=b?.[V(0x1ac)][V(0x1a2)](a[V(0x1aa)])||b?.[V(0x1ac)][V(0x1a2)](a[V(0x18f)]||'')||this[V(0x1b8)][V(0x17a)];if(f&&c)throw d;}else{if(this[V(0x19d)](a)){const g=b?.[V(0x1b4)]['includes'](a[V(0x1aa)])||b?.['proGenerators']['includes'](a['parent']||'');if(g&&c)throw V(0x16d)+a['name']+V(0x1a3);}}}catch(h){Log[V(0x194)](h),process[V(0x190)](0x1);}}[a129L(0x17e)](a){const W=a129L;return W(0x1b8)in a;}[a129L(0x19d)](a){const X=a129L;return!(X(0x1b8)in a);}[a129L(0x19b)](){const Y=a129L;return this[Y(0x1b8)][Y(0x19b)]||this['options']['shortDesc']||Y(0x19c);}['shortDesc'](){const Z=a129L;return this[Z(0x1b8)][Z(0x168)]||Z(0x178);}['usage'](){const a0=a129L;return this['options'][a0(0x1a0)]||'No\x20usage\x20provided.';}['examples'](){const a1=a129L;return this[a1(0x1b8)][a1(0x18d)]||[];}['aliases'](){const a2=a129L;return this[a2(0x1b8)][a2(0x1b6)]||a2(0x183);}}
1
+ const a129L=a129d;(function(a,b){const I=a129d,c=a();while(!![]){try{const d=parseInt(I(0x172))/0x1+parseInt(I(0x1a3))/0x2*(-parseInt(I(0x167))/0x3)+-parseInt(I(0x16e))/0x4+parseInt(I(0x17d))/0x5*(-parseInt(I(0x17c))/0x6)+-parseInt(I(0x1ab))/0x7+parseInt(I(0x1ae))/0x8*(-parseInt(I(0x1b6))/0x9)+parseInt(I(0x186))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x5ae32));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a129d;if(c){const e=c[J(0x189)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const K=a129d;return a129a[K(0x183)]()[K(0x15f)](K(0x1b0))['toString']()[K(0x18f)](a129a)['search'](K(0x1b0));});a129a();function a129c(){const a4=['description','match','fsi','415293fqPUkH','_handler','map','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','roles','Please\x20provide\x20a\x20value\x20for\x20','remapShortToLong','proGenerators','homedir','platform','439818FQTnRR','35nBPPrO','examples','findProjectDirectory','getGlobalConfig','Invalid\x20argument:\x20','getPro','toString','.meteor','error','16310320fTMShk','validateMakaSubscription','exit','apply','keys','Please\x20choose\x20a\x20value\x20for\x20','every','None','getMakaProjectConfig','constructor','length','shortDesc','Invalid\x20value\x20for\x20','engines','isCommand','No\x20usage\x20provided.','Please\x20choose\x20a\x20valid\x20value\x20for\x20','Please\x20provide\x20a\x20resource\x20name:','name','disableAuthCheck','validateMeteorInstall','token','concat','assign','env','domainLicense','To\x20use\x20this\x20command,\x20\x22','config','Local','20DQCIVg','includes','indexOf','usage','options','resourceName','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','AppData','1601957CgnUqN','win32','formatToNamedParam','16dFhfSx','list','(((.+)+)+)+$','getAppProjectConfigs','singleLicense','NIE','Invalid\x20option:\x20','help','549891Gdprks','ask','root','search','validateUserIsLoggedIn','charAt','No\x20description\x20provided.','You\x20must\x20have\x20','string','validateMakaProject','aliases','121041vjhDhR','push','existsSync','parent','isPro','join','proCommands','1625644QkVmeC'];a129c=function(){return a4;};return a129c();}import a129e from'path';import a129f from'os';import a129g from'fs';const homeDir=a129f[a129L(0x17a)]();function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x15d;let f=c[d];return f;},a129d(a,b);}import{Docker}from'./tools/docker/docker.class.js';import{FSI}from'./tools/fsi/fsi.class.js';import{Log}from'./tools/log/log.class.js';import{Actions}from'./tools/actions/actions.class.js';import{UsageError}from'./error.js';export class Tool{['docker'];[a129L(0x171)];[a129L(0x1a7)];[a129L(0x198)];[a129L(0x16a)];[a129L(0x173)];constructor(){const M=a129L;this['docker']=new Docker(),this[M(0x171)]=new FSI();}['getShortName'](a){const N=a129L;return a[N(0x161)](0x0);}['remapShortToLong'](a,b){const O=a129L,c=this[O(0x1ad)](b),d={...a};for(const e of c){const f=this['getShortName'](e[O(0x198)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}['formatToNamedParam'](a){const P=a129L;if(a[P(0x18c)](b=>typeof b===P(0x164)))return a[P(0x174)](b=>({'name':b}));return a;}['match'](a){const Q=a129L,b=[this[Q(0x198)]][Q(0x19c)](this[Q(0x1a7)][Q(0x166)]||[]);return this[Q(0x16a)]&&b[Q(0x168)](this[Q(0x16a)]),b[Q(0x1a4)](a);}[a129L(0x165)](){const R=a129L,a=this[R(0x171)][R(0x17f)]();return a!==![]?!![]:![];}async[a129L(0x160)](){const S=a129L,a=await this['fsi'][S(0x180)]();return a[S(0x19b)]?!![]:![];}[a129L(0x19a)](){const T=a129L;let a=a129e['join'](homeDir,T(0x184));const b=process[T(0x17b)]===T(0x1ac);if(b){a=a129e[T(0x16c)](homeDir,T(0x1aa),T(0x1a2),T(0x184));if(!a129g[T(0x169)](a))return![];}else{if(!a129g[T(0x169)](a))return![];}return!![];}['validateEngines'](a){const U=a129L,b=this[U(0x171)][U(0x18e)](),c=b[U(0x193)],d=Object[U(0x18a)](a);if(d[U(0x190)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x185)](U(0x163)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async['validateParams'](a,b,c){const V=a129L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x18a)](b);if(h[V(0x1a4)]('resourceName')&&b[V(0x1a8)]===undefined&&!g){const m=await Actions[V(0x15d)](V(0x197));b[V(0x1a8)]=m;}let i=[],j=b;if(d){i=this[V(0x1ad)](d),j=this[V(0x178)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x18a)](j)[V(0x1a4)](o)){if(o===V(0x19e)){const r=this['fsi'][V(0x1b1)](),s=await Actions[V(0x1a7)]({'type':V(0x1af),'name':V(0x19e),'message':'Please\x20choose\x20an\x20environment','choices':r});b[V(0x19e)]=s[V(0x19e)];}else{const t=p;if(t){const u=await Actions[V(0x1a7)]({'type':V(0x1af),'name':o,'message':V(0x18b)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](V(0x177)+o);if(v[V(0x170)](q))b[o]=v;else{Log[V(0x185)](V(0x192)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[V(0x15d)](V(0x177)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x1a4)](x)){Log[V(0x185)](V(0x192)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x1ad)](f),l=b;if(k&&Object[V(0x18a)](k)?.[V(0x190)]>0x0){k=k['concat'](i||[]),k[V(0x168)]({'name':V(0x1a8),'hidden':!![]}),k['push']({'name':V(0x1b5),'boolFlag':!![]}),k[V(0x168)]({'name':'dir','hidden':!![]}),k[V(0x168)]({'name':'cwd','hidden':!![]}),k['push']({'name':V(0x15e),'hidden':!![]}),k[V(0x168)]({'name':V(0x1a1),'hidden':!![]}),l=this['remapShortToLong'](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x1a4)](B))){const C=A;if(C){const D=await Actions[V(0x1a7)]({'type':V(0x1af),'name':z,'message':V(0x196)+z,'choices':A});l[z]=D[z];}}if(k[V(0x190)]>0x0)for(const E of Object[V(0x18a)](l)){const F=k['find'](G=>G[V(0x198)]===E);if(!F){Log[V(0x185)](V(0x1b4)+E);throw new UsageError();}}}}if(e&&e?.[V(0x190)]>0x0)for(const G of e){if(!e['includes'](G)){Log['error'](V(0x181)+G);const H=await Actions[V(0x15d)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a[V(0x1a5)](G)]=H;}}return Object[V(0x19d)](j,l);}async[a129L(0x187)](a){const W=a129L;try{if(!a)return;const b=await this[W(0x171)][W(0x182)]();!b&&(Log[W(0x185)](W(0x175)),process[W(0x188)](0x1));const c=!b?.['roles']['includes'](W(0x1b2))&&!b?.[W(0x176)][W(0x1a4)](W(0x19f));if(this[W(0x194)](a)){const d=W(0x1a0)+a['name']+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[W(0x1a7)][W(0x199)])return;const f=b?.['proCommands']['includes'](a[W(0x198)])||b?.[W(0x16d)]['includes'](a[W(0x16a)]||'')||this[W(0x1a7)][W(0x16b)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[W(0x179)][W(0x1a4)](a[W(0x198)])||b?.[W(0x179)][W(0x1a4)](a[W(0x16a)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a['name']+W(0x1a9);}}}catch(h){Log[W(0x185)](h),process[W(0x188)](0x1);}}['isCommand'](a){const X=a129L;return X(0x1a7)in a;}['isGenerator'](a){const Y=a129L;return!(Y(0x1a7)in a);}[a129L(0x16f)](){const Z=a129L;return this[Z(0x1a7)]['description']||this[Z(0x1a7)][Z(0x191)]||Z(0x162);}['shortDesc'](){const a0=a129L;return this[a0(0x1a7)][a0(0x191)]||a0(0x1b3);}[a129L(0x1a6)](){const a1=a129L;return this[a1(0x1a7)][a1(0x1a6)]||a1(0x195);}[a129L(0x17e)](){const a2=a129L;return this['options'][a2(0x17e)]||[];}[a129L(0x166)](){const a3=a129L;return this[a3(0x1a7)]['aliases']||a3(0x18d);}}
@@ -1 +1 @@
1
- const a130h=a130d;(function(a,b){const f=a130d,c=a();while(!![]){try{const d=-parseInt(f(0xef))/0x1+-parseInt(f(0xfb))/0x2+-parseInt(f(0xf2))/0x3+parseInt(f(0xf9))/0x4*(parseInt(f(0xfc))/0x5)+-parseInt(f(0xfd))/0x6*(parseInt(f(0xf1))/0x7)+parseInt(f(0xf4))/0x8+parseInt(f(0xee))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x9ff5e));const a130b=(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;};}()),a130a=a130b(this,function(){const g=a130d;return a130a[g(0xf8)]()[g(0xf0)](g(0xf7))[g(0xf8)]()[g(0xf3)](a130a)['search'](g(0xf7));});a130a();import a130e from'inquirer';function a130c(){const l=['answer','24282027LnkTZA','75151oqJCrT','search','3757474XwRZMR','3699534rqIuJg','constructor','4296240kcKlGK','prompt','password','(((.+)+)+)+$','toString','20QHQvKE','confirm','1849708bBGaPw','190130XDjEDA','6jAVOKj','options','ask'];a130c=function(){return l;};return a130c();}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0xee;let f=c[d];return f;},a130d(a,b);}export class Actions{static async[a130h(0xff)](a,b){const i=a130h,{answer:c}=await a130e['prompt']({'type':b?i(0xf6):'input','name':i(0x100),'message':a});return c;}static async[a130h(0xfa)](a,b=![]){const j=a130h,{answer:c}=await a130e[j(0xf5)]({'type':j(0xfa),'name':j(0x100),'message':a,'default':b});return c;}static async[a130h(0xfe)](a){const k=a130h,b=await a130e[k(0xf5)](a);return b;}}
1
+ const a130i=a130d;(function(a,b){const f=a130d,c=a();while(!![]){try{const d=parseInt(f(0x113))/0x1+parseInt(f(0x11f))/0x2+parseInt(f(0x120))/0x3+parseInt(f(0x11e))/0x4+-parseInt(f(0x115))/0x5+parseInt(f(0x119))/0x6*(-parseInt(f(0x121))/0x7)+parseInt(f(0x118))/0x8*(-parseInt(f(0x122))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x8ad92));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a130d;if(c){const e=c[g(0x11b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const h=a130d;return a130a[h(0x11d)]()['search'](h(0x117))[h(0x11d)]()['constructor'](a130a)[h(0x11c)](h(0x117));});a130a();import a130e from'inquirer';export class Actions{static async[a130i(0x111)](a,b){const j=a130i,{answer:c}=await a130e[j(0x116)]({'type':b?j(0x114):j(0x11a),'name':j(0x123),'message':a});return c;}static async[a130i(0x112)](a,b=![]){const k=a130i,{answer:c}=await a130e[k(0x116)]({'type':k(0x112),'name':k(0x123),'message':a,'default':b});return c;}static async['options'](a){const l=a130i,b=await a130e[l(0x116)](a);return b;}}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x111;let f=c[d];return f;},a130d(a,b);}function a130c(){const m=['search','toString','4273836aQaAnM','1839954yXtRRu','494055RwXvAF','46522zGAxcO','6884910hxwgsY','answer','ask','confirm','413660sdCPWl','password','4503845UFHsmn','prompt','(((.+)+)+)+$','8kWDlSP','300XvDlXY','input','apply'];a130c=function(){return m;};return a130c();}
@@ -1 +1 @@
1
- const a131s=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=-parseInt(p(0x11f))/0x1*(-parseInt(p(0x137))/0x2)+parseInt(p(0x120))/0x3+-parseInt(p(0x13c))/0x4+parseInt(p(0x163))/0x5+parseInt(p(0x166))/0x6+-parseInt(p(0x15f))/0x7+parseInt(p(0x11a))/0x8*(parseInt(p(0x18a))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x40756));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a131d;if(c){const e=c[q(0x125)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const r=a131d;return a131a[r(0x11e)]()[r(0x18f)](r(0x138))[r(0x11e)]()[r(0x18d)](a131a)['search']('(((.+)+)+)+$');});a131a();import a131e from'fs';import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';function a131c(){const W=['suggestion','isFile','$metadata','No\x20instances\x20found','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','error','Please\x20choose\x20a\x20VPC:\x20[0]\x20','confirm','route53CreateHostedZone','deleteSecurityGroup','listHostedZonesByName','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','/dev/sdh','userData','\x20Status\x20Code:\x20','\x20PUB_IP:\x20','From\x20AWS:','fsi','ignore','KeyMaterial','Error\x20generating\x20key\x20pair','Key\x20Name:\x20[','deleteKeyPair','Availability','ask','HostedZones','1017gMObPu','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','ec2createSG','constructor','CidrBlock','search','maka-cli','sgPorts','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','terminated','send','reason','Created:\x20','exit','privateIp','UserData','utf8','instance','ID:\x20','forEach','key','warn','statusCode','changeResourceRecordSets','ec2create','running','\x20ENV:\x20','\x20INSTANCE_ID:\x20','$response','sgIds','description','environment','15272wEOkSc','\x20STATUS:\x20','getMakaProjectConfig','ecrCreateRepository','toString','166153UgHaHL','661230kaeUuF','ingressRule','createFile','\x27\x20has\x20been\x20registered\x20successfully.','Error\x20fetching\x20domain\x20pricing:','apply','minCount','ec2terminateInstance','type','instanceId','Prices','stringify','status','find','pem','chooseInstance','Reservations','now','\x20Error\x20Rason:\x20','AVAILABLE','imageId','maxCount','GroupId','2puVVPe','(((.+)+)+)+$','Error\x20linking\x20EC2\x20to\x20Route\x2053:','KeyName','chmod\x20400\x20','1733364BRrBUe','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','\x20VPCID:\x20','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','tags','length','Hosted\x20zone\x20created\x20successfully!','\x20opened!','split','tcp','Error\x20creating\x20hosted\x20zone','**\x20Available\x20\x20VPCs\x20**','\x20PRIV_IP:\x20','ec2describeInstances','VpcId','ec2rebootInstance','notice','GroupName','checkDomainAvailability','ec2describeKeys','createKeyPair','\x20NAME:\x20','RegistrationPrice','Web\x20App','tag:created-by','_keys','file://','httpStatusCode','push','The\x20domain\x20\x27','env','name','Invalid\x20choice','Error\x20saving\x20pem\x20file,\x20aborting','join','3096226vXXjke','Port\x20','Instances','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','2162740LpkHSO','Description:','registerDomain','629118EdTJQN','.pem.txt','config','success','parse','vpcId','cidr','ssh.json','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Could\x20not\x20find\x20hosted\x20zone'];a131c=function(){return W;};return a131c();}const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x112;let f=c[d];return f;},a131d(a,b);}export class AWS{[a131s(0x181)];constructor(){const t=a131s;this[t(0x181)]=new FSI();}async[a131s(0x11d)](a){const u=a131s;try{const b={'repositoryName':a[u(0x15b)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[u(0x175)](f);}}async[a131s(0x178)](a){const v=a131s;try{const b={'CallerReference':''+Date[v(0x131)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x194)](c),Log[v(0x169)](v(0x142));}catch(d){Log[v(0x175)](v(0x146)),console[v(0x175)](d);}}async[a131s(0x165)](a,b,c,d){const w=a131s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x194)](f),Log[w(0x14c)](w(0x159)+b+w(0x123));}catch(g){Log['error'](w(0x192)),Log[w(0x19f)](w(0x180)),console[w(0x175)](w(0x17e)+g[w(0x116)][w(0x1a0)]),console['error'](w(0x132)+g[w(0x116)][w(0x195)]);}}async[a131s(0x14e)](a){const x=a131s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x194)](c),e=d[x(0x187)]===x(0x133);if(e){const f=a[x(0x144)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0x194)](h);if(i&&i[x(0x12a)]&&i[x(0x12a)][0x0]?.[x(0x152)]){const j=i['Prices'][0x0][x(0x152)];return{'available':e,'cost':j};}}catch(k){console[x(0x175)](x(0x124),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a131s;try{const d=await route53[y(0x17a)]({'DNSName':c});if(!d?.[y(0x189)])throw Log[y(0x175)](y(0x16f));const e=d?.[y(0x189)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x1a1)](f),Log[y(0x14c)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(g){console[y(0x175)](y(0x139),g);}}async[a131s(0x112)](a){const z=a131s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x17c),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[z(0x134)],'InstanceType':a[z(0x128)],'KeyName':a[z(0x19e)],'MaxCount':a[z(0x135)],'MinCount':a[z(0x126)],'SecurityGroupIds':a[z(0x117)][z(0x144)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':z(0x19b),'Tags':a[z(0x140)]}]};a[z(0x17d)]&&(b[z(0x199)]=z(0x156)+a[z(0x17d)]);const c=new RunInstancesCommand(b),d=await client[z(0x194)](c);return d;}catch(f){Log[z(0x175)](f);}}async[a131s(0x127)](a){const A=a131s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[A(0x175)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const B=a131s,c=this[B(0x181)]['getAppConfigPath'](b),d=a131f[B(0x15e)](c,B(0x155),a+B(0x167));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0x194)](g),i=h[B(0x183)];if(i){await this[B(0x181)][B(0x122)]({'filePath':d,'data':i}),execSync(B(0x13b)+d,{'stdio':B(0x182)});const j=this[B(0x181)][B(0x171)](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(B(0x15d));}else throw new Error(B(0x184));}catch(k){Log[B(0x175)](k),process['exit'](0x1);}}async[a131s(0x121)]({port:a,groupId:b}){const C=a131s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x145),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x14c)](C(0x160)+a+C(0x143)),await client[C(0x194)](d);}async[a131s(0x18c)](a){const D=a131s;try{a['description']===''&&(a[D(0x118)]=await Actions[D(0x188)](D(0x164))||D(0x153));const b={'Description':a[D(0x118)],'GroupName':a[D(0x15b)],'VpcId':a[D(0x16b)]},c=new CreateSecurityGroupCommand(b),d=await client[D(0x194)](c),{GroupId:f}=d;if(!d)throw new Error(D(0x16e));f&&a[D(0x191)][D(0x19d)](g=>{const E=D;this[E(0x121)]({'port':parseInt(g),'groupId':f});}),Log[D(0x169)](D(0x196)+f+'\x20NAME:\x20'+a['name']);}catch(g){return Log[D(0x175)](g),![];}return!![];}async[a131s(0x14f)](a){const F=a131s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0x194)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[F(0x19d)]((h,i)=>{const G=F;h[G(0x13a)]&&b[G(0x158)]({'id':i,'name':h[G(0x13a)]});}),b[F(0x141)]>0x0&&b[F(0x19d)](h=>{const H=F;h['name']===a?.[H(0x170)]?Log[H(0x169)](H(0x19c)+h['id']+'\x20NAME:\x20'+h[H(0x15b)]):Log[H(0x14c)](H(0x19c)+h['id']+H(0x151)+h[H(0x15b)]);})):Log[F(0x175)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log['error'](h);}return b;}async[a131s(0x186)](a){const I=a131s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[I(0x175)](d),process[I(0x197)](0x1);}}async['ec2describeInstances'](){const J=a131s,a=[];try{const b={'Filters':[{'Name':J(0x154),'Values':[J(0x190)]}]},c=new DescribeInstancesCommand(b),d=await client['send'](c);d[J(0x130)]?.[J(0x19d)]((f,g)=>{const K=J;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0x161)][0x0],n=m?.[K(0x12d)](({Key:o})=>o===K(0x119));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.['Value']});}}),a['length']>0x0?a[J(0x19d)](f=>{const L=J,g=L(0x19c)+f['id']+L(0x151)+f[L(0x15b)]+L(0x114)+f[L(0x15a)]+L(0x11b)+f[L(0x12c)]+L(0x115)+f[L(0x129)]+L(0x17f)+f['publicIp']+L(0x148)+f[L(0x198)];if(f['status']===L(0x193))Log[L(0x175)](g);else f[L(0x12c)]===L(0x113)?Log[L(0x169)](g):Log[L(0x14c)](g);}):Log['error'](J(0x174));}catch(f){Log[J(0x175)](f);}return a;}async[a131s(0x14b)](a){const M=a131s;try{const b={'InstanceIds':[a[M(0x129)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[M(0x172)][M(0x157)]===0xc8&&Log[M(0x169)]('Instance\x20rebooted!'),d;}catch(f){Log[M(0x175)](f);}}async['chooseVPC'](){const N=a131s;let a='';Log[N(0x14c)](N(0x147));const b=new DescribeVpcsCommand({}),c=await client[N(0x194)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const O=N;g[O(0x14a)]&&g[O(0x18e)]&&e[O(0x158)]({'id':h,'vpcId':g[O(0x14a)],'cidr':g[O(0x18e)]});});e['forEach'](function(g){const P=N;console['log'](P(0x19c)+g['id']+P(0x13e)+g[P(0x16b)]+'\x20CIDR:\x20'+g[P(0x16c)]);});const f=await Actions[N(0x188)](N(0x176))||0x0;e[N(0x19d)](function(g){const Q=N;g['id']==f&&(a=g['vpcId'],Log[Q(0x169)](Q(0x162)+a+'\x0a'));});if(a==='')return Log[N(0x175)](N(0x13d)),'';return a;}async[a131s(0x12f)](){const R=a131s,a=await this[R(0x149)]();if(a[R(0x141)]===0x0)return Log[R(0x175)](R(0x173)),null;const b=await Actions[R(0x188)](R(0x17b));!b&&(Log[R(0x175)](R(0x15c)),process[R(0x197)](0x0));const c=a[R(0x12d)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131s(0x150)]({env:a}){const S=a131s,b=this[S(0x181)][S(0x11c)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](S(0x185)+d+']\x20')||d,{filePath:g}=await this['createKeyPairEC2Key']({'keyName':f,'env':a});try{const h=await Actions[S(0x177)](S(0x13f),!![]);if(h)try{const i=a131e['readFileSync'](a131f['join'](S(0x168),a,S(0x16d)),S(0x19a)),j=JSON[S(0x16a)](i);j[S(0x12e)]=a131f['join'](S(0x155),f+S(0x167)),a131e['writeFileSync'](a131f[S(0x15e)](S(0x168),a,S(0x16d)),JSON[S(0x12b)](j,null,0x2));}catch(k){Log[S(0x175)](k),Log['error'](S(0x18b));}}catch(l){Log[S(0x175)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a131s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x194)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const U=T;i[U(0x14d)]&&i[U(0x136)]&&b[U(0x158)]({'id':j,'name':i[U(0x14d)],'sgId':i[U(0x136)]});});let g='',h=0x0;return b[T(0x19d)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131s(0x179)](a){const V=a131s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0x194)](c);}catch(d){Log[V(0x175)](d),process[V(0x197)](0x1);}}}
1
+ const a131s=a131d;(function(a,b){const p=a131d,c=a();while(!![]){try{const d=parseInt(p(0x211))/0x1*(-parseInt(p(0x208))/0x2)+-parseInt(p(0x1ec))/0x3+-parseInt(p(0x221))/0x4*(-parseInt(p(0x206))/0x5)+-parseInt(p(0x1ee))/0x6*(-parseInt(p(0x1d8))/0x7)+parseInt(p(0x1e4))/0x8+-parseInt(p(0x1b8))/0x9+parseInt(p(0x1b1))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xd5682));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a131d;if(c){const e=c[q(0x1dc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const r=a131d;return a131a[r(0x1c2)]()[r(0x22c)](r(0x1b2))['toString']()['constructor'](a131a)[r(0x22c)](r(0x1b2));});a131a();function a131c(){const X=['(((.+)+)+)+$','Name','RegistrationPrice','chooseInstance','now','readFileSync','12936240EPCbMp','changeResourceRecordSets','stringify','pem','log','ask','**\x20Available\x20\x20VPCs\x20**','forEach','ec2rebootInstance','Reservations','toString','Error\x20linking\x20EC2\x20to\x20Route\x2053:','environment','GroupName','ID:\x20','Could\x20not\x20find\x20hosted\x20zone','statusCode','maka-cli','send','The\x20domain\x20\x27','Description:','subnet','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','registerDomain','$response','Prices','createKeyPairEC2Key','createKeyPair','length','ec2describeInstances','deleteSecurityGroup','push','256522ARnOLh','type','Error\x20saving\x20pem\x20file,\x20aborting','\x20to\x20','apply','Pem\x20key\x20saved\x20to\x20','tags','CidrBlock','Key\x20Name:\x20[','No\x20instances\x20found','httpStatusCode','Please\x20choose\x20a\x20VPC:\x20[0]\x20','11760152CgvpyU','getAppConfigPath','writeFileSync','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','UPSERT','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','Instance\x20rebooted!','ec2describeKeys','3875283ncOawj','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','72zJOvsJ','tcp','Instances','terminated','success','ec2create','ssh.json','ignore','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x20PRIV_IP:\x20','Port\x20','name','fsi','getMakaProjectConfig','key','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','reason','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','chooseVPC','.pem.txt','Error\x20generating\x20key\x20pair','ingressRule','isFile','description','9465xOVmAG','AVAILABLE','30746WHUbkV','privateIp','sgId','ec2createSG','\x20Status\x20Code:\x20','Web\x20App','tag:created-by','listHostedZonesByName','GroupId','94gOMyyy','instance','pop','instanceId','createFile','route53CreateHostedZone','\x20INSTANCE_ID:\x20','vpcId','VpcId','warn','Created:\x20','HostedZones','parse','config','sgIds','Availability','440yPPMkl','suggestion','find','\x20PUB_IP:\x20','notice','join','error','UserData','checkDomainAvailability','\x20CIDR:\x20','_keys','search','env','KeyMaterial','split','From\x20AWS:','KeyName','$metadata','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','\x20NAME:\x20','\x27\x20has\x20been\x20registered\x20successfully.','deleteKeyPair','ec2terminateInstance','exit','status','29302960tdPIve'];a131c=function(){return X;};return a131c();}import a131e from'fs';import a131f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a131d(a,b);}import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a131s(0x1fa)];constructor(){const t=a131s;this[t(0x1fa)]=new FSI();}async['ecrCreateRepository'](a){const u=a131s;try{const b={'repositoryName':a[u(0x1f9)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0x1ca)](c);return d;}catch(f){Log[u(0x227)](f);}}async[a131s(0x216)](a){const v=a131s;try{const b={'CallerReference':''+Date[v(0x1b6)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[v(0x1ca)](c),Log['success']('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[v(0x227)]('Error\x20creating\x20hosted\x20zone'),console['error'](d);}}async[a131s(0x1cf)](a,b,c,d){const w=a131s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0x1ca)](f),Log[w(0x225)](w(0x1cb)+b+w(0x1ac));}catch(g){Log['error'](w(0x1fd)),Log[w(0x21a)](w(0x1a7)),console[w(0x227)](w(0x20c)+g[w(0x1d0)][w(0x1c8)]),console[w(0x227)]('\x20Error\x20Rason:\x20'+g[w(0x1d0)][w(0x1fe)]);}}async[a131s(0x229)](a){const x=a131s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0x1ca)](c),e=d[x(0x220)]===x(0x207);if(e){const f=a[x(0x1a6)]('.')[x(0x213)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[x(0x1d1)]&&i[x(0x1d1)][0x0]?.['RegistrationPrice']){const j=i[x(0x1d1)][0x0][x(0x1b4)];return{'available':e,'cost':j};}}catch(k){console[x(0x227)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a131s;try{const d=await route53[y(0x20f)]({'DNSName':c});if(!d?.[y(0x21c)])throw Log[y(0x227)](y(0x1c7));const e=d?.[y(0x21c)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':y(0x1e8),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0x1b9)](f),Log[y(0x225)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+y(0x1db)+c);}catch(g){console[y(0x227)](y(0x1c3),g);}}async[a131s(0x1f3)](a){const z=a131s;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[z(0x1d9)],'KeyName':a[z(0x1fc)],'MaxCount':a['maxCount'],'MinCount':a['minCount'],'SecurityGroupIds':a[z(0x21f)][z(0x1a6)](','),'SubnetId':a[z(0x1cd)],'TagSpecifications':[{'ResourceType':z(0x212),'Tags':a[z(0x1de)]}]};a['userData']&&(b[z(0x228)]='file://'+a['userData']);const c=new RunInstancesCommand(b),d=await client[z(0x1ca)](c);return d;}catch(f){Log[z(0x227)](f);}}async[a131s(0x1ae)](a){const A=a131s;try{const b={'InstanceIds':[a[A(0x214)]]},c=new TerminateInstancesCommand(b),d=await client[A(0x1ca)](c);return d;}catch(f){return Log[A(0x227)](f),{};}}async[a131s(0x1d2)]({keyName:a,env:b}){const B=a131s,c=this[B(0x1fa)][B(0x1e5)](b),d=a131f[B(0x226)](c,B(0x22b),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[B(0x1a5)];if(i){await this['fsi'][B(0x215)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':B(0x1f5)});const j=this[B(0x1fa)][B(0x204)](d);if(j)return Log['success'](B(0x1dd)+d),{'keyName':a,'filePath':d};else throw new Error(B(0x1da));}else throw new Error(B(0x202));}catch(k){Log['error'](k),process[B(0x1af)](0x1);}}async[a131s(0x203)]({port:a,groupId:b}){const C=a131s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x1ef),'IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0x225)](C(0x1f8)+a+'\x20opened!'),await client[C(0x1ca)](d);}async[a131s(0x20b)](a){const D=a131s;try{a[D(0x205)]===''&&(a[D(0x205)]=await Actions[D(0x1bd)](D(0x1cc))||D(0x20d));const b={'Description':a['description'],'GroupName':a[D(0x1f9)],'VpcId':a[D(0x218)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a['sgPorts'][D(0x1bf)](g=>{const E=D;this[E(0x203)]({'port':parseInt(g),'groupId':f});}),Log['success'](D(0x21b)+f+D(0x1ab)+a[D(0x1f9)]);}catch(g){return Log['error'](g),![];}return!![];}async[a131s(0x1eb)](a){const F=a131s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw F(0x1f6);const {KeyPairs:g}=f;g?(g?.[F(0x1bf)]((h,i)=>{const G=F;h[G(0x1a8)]&&b[G(0x1d7)]({'id':i,'name':h[G(0x1a8)]});}),b[F(0x1d4)]>0x0&&b[F(0x1bf)](h=>{const H=F;h['name']===a?.[H(0x222)]?Log[H(0x1f2)](H(0x1c6)+h['id']+H(0x1ab)+h[H(0x1f9)]):Log[H(0x225)](H(0x1c6)+h['id']+H(0x1ab)+h[H(0x1f9)]);})):Log[F(0x227)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[F(0x227)](h);}return b;}async[a131s(0x1ad)](a){const I=a131s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0x1ca)](c);}catch(d){Log[I(0x227)](d),process[I(0x1af)](0x1);}}async['ec2describeInstances'](){const J=a131s,a=[];try{const b={'Filters':[{'Name':J(0x20e),'Values':[J(0x1c9)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0x1ca)](c);d[J(0x1c1)]?.[J(0x1bf)]((f,g)=>{const K=J;if(f?.[K(0x1f0)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[K(0x1f0)][0x0],n=m?.[K(0x223)](({Key:o})=>o===K(0x1c4));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0x1b3)],'name':l,'env':n?.['Value']});}}),a[J(0x1d4)]>0x0?a[J(0x1bf)](f=>{const L=J,g=L(0x1c6)+f['id']+L(0x1ab)+f['name']+'\x20ENV:\x20'+f[L(0x1a4)]+'\x20STATUS:\x20'+f[L(0x1b0)]+L(0x217)+f['instanceId']+L(0x224)+f['publicIp']+L(0x1f7)+f[L(0x209)];if(f[L(0x1b0)]===L(0x1f1))Log['error'](g);else f[L(0x1b0)]==='running'?Log[L(0x1f2)](g):Log[L(0x225)](g);}):Log[J(0x227)](J(0x1ed));}catch(f){Log[J(0x227)](f);}return a;}async[a131s(0x1c0)](a){const M=a131s;try{const b={'InstanceIds':[a[M(0x214)]]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[M(0x1a9)][M(0x1e2)]===0xc8&&Log[M(0x1f2)](M(0x1ea)),d;}catch(f){Log[M(0x227)](f);}}async[a131s(0x200)](){const N=a131s;let a='';Log[N(0x225)](N(0x1be));const b=new DescribeVpcsCommand({}),c=await client[N(0x1ca)](b),{Vpcs:d}=c,e=[];d&&d[N(0x1bf)]((g,h)=>{const O=N;g[O(0x219)]&&g['CidrBlock']&&e[O(0x1d7)]({'id':h,'vpcId':g[O(0x219)],'cidr':g[O(0x1df)]});});e[N(0x1bf)](function(g){const P=N;console[P(0x1bc)](P(0x1c6)+g['id']+'\x20VPCID:\x20'+g['vpcId']+P(0x22a)+g['cidr']);});const f=await Actions[N(0x1bd)](N(0x1e3))||0x0;e[N(0x1bf)](function(g){const Q=N;g['id']==f&&(a=g[Q(0x218)],Log[Q(0x1f2)](Q(0x1aa)+a+'\x0a'));});if(a==='')return Log['error'](N(0x1ce)),'';return a;}async[a131s(0x1b5)](){const R=a131s,a=await this[R(0x1d5)]();if(a['length']===0x0)return Log[R(0x227)](R(0x1e1)),null;const b=await Actions[R(0x1bd)](R(0x1e9));!b&&(Log[R(0x227)]('Invalid\x20choice'),process['exit'](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a131s(0x1d3)]({env:a}){const S=a131s,b=this['fsi'][S(0x1fb)](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0x1bd)](S(0x1e0)+d+']\x20')||d,{filePath:g}=await this[S(0x1d2)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](S(0x1ff),!![]);if(h)try{const i=a131e[S(0x1b7)](a131f[S(0x226)](S(0x21e),a,S(0x1f4)),'utf8'),j=JSON[S(0x21d)](i);j[S(0x1bb)]=a131f['join'](S(0x22b),f+S(0x201)),a131e[S(0x1e6)](a131f[S(0x226)]('config',a,S(0x1f4)),JSON[S(0x1ba)](j,null,0x2));}catch(k){Log[S(0x227)](k),Log['error'](S(0x1e7));}}catch(l){Log[S(0x227)](l),process['exit'](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a131s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0x1ca)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const U=T;i['GroupName']&&i[U(0x210)]&&b['push']({'id':j,'name':i[U(0x1c5)],'sgId':i['GroupId']});});let g='',h=0x0;return b[T(0x1bf)](function(i){const V=T;i['name']===a&&(g=i[V(0x20a)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a131s(0x1d6)](a){const W=a131s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[W(0x1ca)](c);}catch(d){Log['error'](d),process[W(0x1af)](0x1);}}}
@@ -1 +1 @@
1
- function a132c(){var n=['search','2EBOodC','1438457uGhOaa','296unLwSm','142723ZbbzJK','420fPoqbq','26360UPiNZI','apply','5532384HSRFTS','toString','1368590aiiSbN','constructor','2095100rhMkzm','(((.+)+)+)+$','15761214RliAPM'];a132c=function(){return n;};return a132c();}(function(a,b){var k=a132d,c=a();while(!![]){try{var d=parseInt(k(0x137))/0x1*(parseInt(k(0x136))/0x2)+parseInt(k(0x13a))/0x3*(-parseInt(k(0x13b))/0x4)+parseInt(k(0x132))/0x5+parseInt(k(0x13d))/0x6+parseInt(k(0x139))/0x7*(parseInt(k(0x138))/0x8)+-parseInt(k(0x134))/0x9+parseInt(k(0x130))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xf3653));function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0x130;var f=c[d];return f;},a132d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a132d;if(h){var j=h[l(0x13c)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a132d;return e[m(0x13e)]()[m(0x135)]('(((.+)+)+)+$')[m(0x13e)]()[m(0x131)](e)['search'](m(0x133));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
1
+ function a132c(){var n=['294490whuECN','apply','search','133994lnIKlc','90EqhhkM','29416dsjIfx','177111BrlnWZ','6452fpnfLN','234702NVCzJo','3Azrdge','toString','295ylIXIe','3071880nPegDl','constructor','(((.+)+)+)+$'];a132c=function(){return n;};return a132c();}(function(a,b){var k=a132d,c=a();while(!![]){try{var d=parseInt(k(0x10d))/0x1*(-parseInt(k(0x107))/0x2)+parseInt(k(0x10a))/0x3+parseInt(k(0x10b))/0x4*(parseInt(k(0x10f))/0x5)+parseInt(k(0x10c))/0x6+-parseInt(k(0x104))/0x7+parseInt(k(0x109))/0x8*(-parseInt(k(0x108))/0x9)+parseInt(k(0x101))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x35e06));function a132d(a,b){var c=a132c();return a132d=function(d,e){d=d-0x101;var f=c[d];return f;},a132d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a132d;if(h){var j=h[l(0x105)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a132d;return e[m(0x10e)]()['search'](m(0x103))[m(0x10e)]()[m(0x102)](e)[m(0x106)](m(0x103));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
@@ -1 +1 @@
1
- const a133m=a133d;function a133c(){const q=['search','apply','.amazonaws.com','inherit','4VysYsS','--password-stdin','2610936sfQSmy','28856UpLpju','join','.amazonaws.com/','pushImage','docker\x20','56BqVqkQ','.dkr.ecr.','login','4442388nDQnME','toString','(((.+)+)+)+$','error','awsLogin','tag','4226630vGnFvA','1230258fRFviA','18279693eBotVU','push','287591dczESZ'];a133c=function(){return q;};return a133c();}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0xaa))/0x1+-parseInt(j(0xa7))/0x2+parseInt(j(0xb1))/0x3+parseInt(j(0xaf))/0x4*(-parseInt(j(0xa6))/0x5)+-parseInt(j(0xa0))/0x6+-parseInt(j(0x9d))/0x7*(-parseInt(j(0xb2))/0x8)+parseInt(j(0xa8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x6bdc9));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0xac)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a['toString']()[l(0xab)](l(0xa2))[l(0xa1)]()['constructor'](a133a)[l(0xab)]('(((.+)+)+)+$');});a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x9d;let f=c[d];return f;},a133d(a,b);}export class Docker{static[a133m(0xa5)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a133m;try{const f=['tag',a,b+'.dkr.ecr.'+c+n(0xb4)+d],g=n(0xb6)+f[n(0xb3)]('\x20'),h=execSync(g,{'stdio':n(0xae)})[n(0xa1)]();return h;}catch(i){return Log[n(0xa3)](i),'';}}static[a133m(0xa4)]({awsAccountId:a,region:b}){const o=a133m;try{const c=[o(0x9f),'--username','AWS',o(0xb0),a+o(0x9e)+b+o(0xad)],d='docker\x20'+c['join']('\x20'),f=execSync(d,{'stdio':o(0xae)})[o(0xa1)]();return f;}catch(g){return Log[o(0xa3)](g),'';}}static[a133m(0xb5)]({awsAccountId:a,region:b,repoName:c}){const p=a133m;try{const d=[p(0xa9),a+p(0x9e)+b+p(0xb4)+c],f=p(0xb6)+d[p(0xb3)]('\x20'),g=execSync(f,{'stdio':p(0xae)})[p(0xa1)]();return g;}catch(h){return Log[p(0xa3)](h),'';}}}
1
+ function a133c(){const p=['login','1152621wjVSDs','3419280sDYkug','471212SwiHqs','docker\x20','4974039nGkOTU','--password-stdin','join','.dkr.ecr.','constructor','inherit','.amazonaws.com','awsLogin','search','16BCCURE','error','--username','(((.+)+)+)+$','15338106Swtyni','1rAIUJA','AWS','toString','tag','4196040iWbzYJ','139545zCWctm'];a133c=function(){return p;};return a133c();}const a133l=a133d;function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x1db;let f=c[d];return f;},a133d(a,b);}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x1de))/0x1*(-parseInt(j(0x1e7))/0x2)+parseInt(j(0x1e5))/0x3+parseInt(j(0x1f2))/0x4*(parseInt(j(0x1e3))/0x5)+parseInt(j(0x1e2))/0x6+parseInt(j(0x1e9))/0x7+parseInt(j(0x1e6))/0x8+-parseInt(j(0x1dd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x60072));const a133b=(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;};}()),a133a=a133b(this,function(){const k=a133d;return a133a['toString']()[k(0x1f1)](k(0x1dc))[k(0x1e0)]()[k(0x1ed)](a133a)[k(0x1f1)]('(((.+)+)+)+$');});a133a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a133l(0x1e1)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a133l;try{const f=[m(0x1e1),a,b+m(0x1ec)+c+'.amazonaws.com/'+d],g=m(0x1e8)+f[m(0x1eb)]('\x20'),h=execSync(g,{'stdio':m(0x1ee)})[m(0x1e0)]();return h;}catch(i){return Log[m(0x1f3)](i),'';}}static[a133l(0x1f0)]({awsAccountId:a,region:b}){const n=a133l;try{const c=[n(0x1e4),n(0x1db),n(0x1df),n(0x1ea),a+'.dkr.ecr.'+b+n(0x1ef)],d=n(0x1e8)+c['join']('\x20'),f=execSync(d,{'stdio':n(0x1ee)})['toString']();return f;}catch(g){return Log['error'](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const o=a133l;try{const d=['push',a+o(0x1ec)+b+'.amazonaws.com/'+c],f='docker\x20'+d[o(0x1eb)]('\x20'),g=execSync(f,{'stdio':'inherit'})[o(0x1e0)]();return g;}catch(h){return Log[o(0x1f3)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x112))/0x1*(-parseInt(f(0x118))/0x2)+parseInt(f(0x117))/0x3*(parseInt(f(0x11c))/0x4)+-parseInt(f(0x116))/0x5*(-parseInt(f(0x11b))/0x6)+-parseInt(f(0x114))/0x7+parseInt(f(0x11f))/0x8+-parseInt(f(0x119))/0x9*(-parseInt(f(0x11d))/0xa)+-parseInt(f(0x11a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xb53ef));var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0x113)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a['toString']()[h(0x111)](h(0x115))[h(0x11e)]()['constructor'](a134a)[h(0x111)](h(0x115));});function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x111;var f=c[d];return f;},a134d(a,b);}function a134c(){var i=['66zFeYgu','132MvbaQw','110XqXKuc','toString','686152AbSJsL','search','11910cNmuqP','apply','7955626kLlIwo','(((.+)+)+)+$','338830mRxMYK','65253nTidoi','110YjMIaM','277551oFpdPP','7307916dykJyc'];a134c=function(){return i;};return a134c();}a134a();export{};
1
+ (function(a,b){var f=a134d,c=a();while(!![]){try{var d=parseInt(f(0xdf))/0x1*(parseInt(f(0xd8))/0x2)+parseInt(f(0xe0))/0x3+-parseInt(f(0xd4))/0x4+parseInt(f(0xd7))/0x5+parseInt(f(0xd5))/0x6*(parseInt(f(0xda))/0x7)+-parseInt(f(0xdd))/0x8*(-parseInt(f(0xd6))/0x9)+-parseInt(f(0xd2))/0xa*(parseInt(f(0xdc))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x79eea));function a134c(){var h=['constructor','33pnmMqI','3893784EyVMIZ','(((.+)+)+)+$','213fUWldL','53424SYrsfr','1407390mphCRs','search','3766868PMBZQJ','78tmaeZP','9ILJfeS','3880425yArzpc','5398fbCxHN','toString','4235cNaYyN'];a134c=function(){return h;};return a134c();}var a134b=(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;};}()),a134a=a134b(this,function(){var g=a134d;return a134a['toString']()['search']('(((.+)+)+)+$')[g(0xd9)]()[g(0xdb)](a134a)[g(0xd3)](g(0xde));});a134a();function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0xd2;var f=c[d];return f;},a134d(a,b);}export{};