@maka/maka-cli 4.7.11 → 4.7.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 (323) hide show
  1. package/.eslintrc.json +29 -29
  2. package/.mocharc.json +3 -3
  3. package/.vs/VSWorkspaceState.json +12 -0
  4. package/.vs/maka-cli-src/FileContentIndex/18ca123b-cf4e-4263-8cf0-ed1624e8e918.vsidx +0 -0
  5. package/.vs/maka-cli-src/FileContentIndex/69d2de39-b193-48d9-b520-96bdb73b7b61.vsidx +0 -0
  6. package/.vs/maka-cli-src/FileContentIndex/93947812-c77d-4667-aaed-3f9a0df8b484.vsidx +0 -0
  7. package/.vs/maka-cli-src/FileContentIndex/c4cbf57e-b360-4b2a-8b3d-fc8f800c195a.vsidx +0 -0
  8. package/.vs/maka-cli-src/FileContentIndex/c9d2ef23-4e6c-46eb-a405-3584022229ed.vsidx +0 -0
  9. package/.vs/maka-cli-src/config/applicationhost.config +1016 -0
  10. package/.vs/maka-cli-src/v17/.wsuo +0 -0
  11. package/.vs/maka-cli-src/v17/workspaceFileList.bin +0 -0
  12. package/.vs/slnx.sqlite +0 -0
  13. package/README.md +21 -21
  14. package/bundle/obf/package.json +127 -127
  15. package/bundle/obf/src/README.md +21 -21
  16. package/bundle/obf/src/command.js +1 -1
  17. package/bundle/obf/src/commands/_index.js +1 -1
  18. package/bundle/obf/src/commands/ai.js +1 -1
  19. package/bundle/obf/src/commands/aws/_index.js +1 -1
  20. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  21. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  23. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  24. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  26. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  27. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  28. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  29. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  32. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/build/_index.js +1 -1
  34. package/bundle/obf/src/commands/build/build.js +1 -1
  35. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  36. package/bundle/obf/src/commands/create.js +1 -1
  37. package/bundle/obf/src/commands/debug.js +1 -1
  38. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  39. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  40. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  41. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  42. package/bundle/obf/src/commands/game/_index.js +1 -1
  43. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  44. package/bundle/obf/src/commands/game/play.command.js +1 -1
  45. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  69. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  70. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  71. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  72. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  73. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  74. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  75. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  76. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  77. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  78. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  79. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  80. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  81. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  82. package/bundle/obf/src/commands/generate.js +1 -1
  83. package/bundle/obf/src/commands/get/_index.js +1 -1
  84. package/bundle/obf/src/commands/get/get.command.js +1 -1
  85. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  86. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  87. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  88. package/bundle/obf/src/commands/help.js +1 -1
  89. package/bundle/obf/src/commands/install.js +1 -1
  90. package/bundle/obf/src/commands/jsdoc.js +1 -1
  91. package/bundle/obf/src/commands/lint.js +1 -1
  92. package/bundle/obf/src/commands/login.js +1 -1
  93. package/bundle/obf/src/commands/logout.js +1 -1
  94. package/bundle/obf/src/commands/logs.js +1 -1
  95. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  96. package/bundle/obf/src/commands/murder.js +1 -1
  97. package/bundle/obf/src/commands/proxy.js +1 -1
  98. package/bundle/obf/src/commands/reconfig.js +1 -1
  99. package/bundle/obf/src/commands/run/_index.js +1 -1
  100. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/run/run.command.js +1 -1
  102. package/bundle/obf/src/commands/set/_index.js +1 -1
  103. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  104. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  105. package/bundle/obf/src/commands/set/set.command.js +1 -1
  106. package/bundle/obf/src/commands/ssh.js +1 -1
  107. package/bundle/obf/src/commands/ssl.js +1 -1
  108. package/bundle/obf/src/commands/test.js +1 -1
  109. package/bundle/obf/src/commands/version.js +1 -1
  110. package/bundle/obf/src/error.js +1 -1
  111. package/bundle/obf/src/exec.js +1 -1
  112. package/bundle/obf/src/generator.js +1 -1
  113. package/bundle/obf/src/generators/_index.js +1 -1
  114. package/bundle/obf/src/generators/api.js +1 -1
  115. package/bundle/obf/src/generators/collection.js +1 -1
  116. package/bundle/obf/src/generators/component.js +1 -1
  117. package/bundle/obf/src/generators/config.js +1 -1
  118. package/bundle/obf/src/generators/dbc.js +1 -1
  119. package/bundle/obf/src/generators/dockerfile.js +1 -1
  120. package/bundle/obf/src/generators/hook.js +1 -1
  121. package/bundle/obf/src/generators/kits/_index.js +1 -1
  122. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/kit.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  129. package/bundle/obf/src/generators/layout.js +1 -1
  130. package/bundle/obf/src/generators/maka.gen.js +1 -1
  131. package/bundle/obf/src/generators/methods.js +1 -1
  132. package/bundle/obf/src/generators/package.js +1 -1
  133. package/bundle/obf/src/generators/page.js +1 -1
  134. package/bundle/obf/src/generators/publish.js +1 -1
  135. package/bundle/obf/src/generators/route.js +1 -1
  136. package/bundle/obf/src/generators/service.js +1 -1
  137. package/bundle/obf/src/generators/services/_index.js +1 -1
  138. package/bundle/obf/src/generators/services/openssl.js +1 -1
  139. package/bundle/obf/src/generators/services/translation.js +1 -1
  140. package/bundle/obf/src/maka.js +1 -1
  141. package/bundle/obf/src/templates/meteor/api/api.js +11 -11
  142. package/bundle/obf/src/templates/meteor/api/api.js.ts +11 -11
  143. package/bundle/obf/src/templates/meteor/api/collection.js +86 -86
  144. package/bundle/obf/src/templates/meteor/api/collection.js.ts +94 -94
  145. package/bundle/obf/src/templates/meteor/api/fixtures.js +23 -23
  146. package/bundle/obf/src/templates/meteor/api/fixtures.js.ts +23 -23
  147. package/bundle/obf/src/templates/meteor/api/methods.js +136 -136
  148. package/bundle/obf/src/templates/meteor/api/methods.js.ts +137 -137
  149. package/bundle/obf/src/templates/meteor/api/publications.js +31 -31
  150. package/bundle/obf/src/templates/meteor/api/publications.js.ts +31 -31
  151. package/bundle/obf/src/templates/meteor/api/register-api.js +15 -15
  152. package/bundle/obf/src/templates/meteor/api/register-api.js.ts +15 -15
  153. package/bundle/obf/src/templates/meteor/api/resolvers.js +9 -9
  154. package/bundle/obf/src/templates/meteor/api/resolvers.js.ts +9 -9
  155. package/bundle/obf/src/templates/meteor/api/tests.js +1 -1
  156. package/bundle/obf/src/templates/meteor/api/tests.js.ts +1 -1
  157. package/bundle/obf/src/templates/meteor/api/typeDefs.js +5 -5
  158. package/bundle/obf/src/templates/meteor/api/typeDefs.js.ts +5 -5
  159. package/bundle/obf/src/templates/meteor/app/client/body.html +3 -3
  160. package/bundle/obf/src/templates/meteor/app/client/head.html +15 -15
  161. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js +9 -9
  162. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.jsx +9 -9
  163. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.ts +9 -9
  164. package/bundle/obf/src/templates/meteor/app/client/main.app-tests.js.tsx +9 -9
  165. package/bundle/obf/src/templates/meteor/app/client/main.js +13 -13
  166. package/bundle/obf/src/templates/meteor/app/client/main.js.jsx +13 -13
  167. package/bundle/obf/src/templates/meteor/app/client/main.js.ts +13 -13
  168. package/bundle/obf/src/templates/meteor/app/client/main.js.tsx +13 -13
  169. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js +20 -20
  170. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.jsx +117 -117
  171. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.ts +20 -20
  172. package/bundle/obf/src/templates/meteor/app/imports/startup/client/index.js.tsx +118 -118
  173. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js +39 -39
  174. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.jsx +48 -48
  175. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.ts +24 -24
  176. package/bundle/obf/src/templates/meteor/app/imports/startup/client/routes.js.tsx +48 -48
  177. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js +9 -9
  178. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.jsx +9 -9
  179. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.ts +9 -9
  180. package/bundle/obf/src/templates/meteor/app/imports/startup/client/templates.js.tsx +9 -9
  181. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js +1 -1
  182. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.jsx +21 -21
  183. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.ts +1 -1
  184. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/index.js.tsx +21 -21
  185. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.jsx +48 -48
  186. package/bundle/obf/src/templates/meteor/app/imports/startup/lib/routes.js.tsx +48 -48
  187. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js +1 -1
  188. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.jsx +152 -152
  189. package/bundle/obf/src/templates/meteor/app/imports/startup/server/index.js.tsx +152 -152
  190. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js +24 -24
  191. package/bundle/obf/src/templates/meteor/app/imports/ui/test-helpers.js.ts +24 -24
  192. package/bundle/obf/src/templates/meteor/app/lib/main.js +1 -1
  193. package/bundle/obf/src/templates/meteor/app/lib/main.js.jsx +1 -1
  194. package/bundle/obf/src/templates/meteor/app/lib/main.js.ts +1 -1
  195. package/bundle/obf/src/templates/meteor/app/lib/main.js.tsx +1 -1
  196. package/bundle/obf/src/templates/meteor/app/maka.d.ts +160 -160
  197. package/bundle/obf/src/templates/meteor/app/meteor.d.ts +955 -955
  198. package/bundle/obf/src/templates/meteor/app/public/manifest.json +27 -27
  199. package/bundle/obf/src/templates/meteor/app/public/sw.js +30 -30
  200. package/bundle/obf/src/templates/meteor/app/public/sw.js.jsx +30 -30
  201. package/bundle/obf/src/templates/meteor/app/public/sw.js.ts +30 -30
  202. package/bundle/obf/src/templates/meteor/app/public/sw.js.tsx +30 -30
  203. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js +179 -179
  204. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.jsx +179 -179
  205. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.ts +179 -179
  206. package/bundle/obf/src/templates/meteor/app/server/helmet-csp.js.tsx +179 -179
  207. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js +9 -9
  208. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.jsx +9 -9
  209. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.ts +9 -9
  210. package/bundle/obf/src/templates/meteor/app/server/main.app-tests.js.tsx +9 -9
  211. package/bundle/obf/src/templates/meteor/app/server/main.js +11 -11
  212. package/bundle/obf/src/templates/meteor/app/server/main.js.jsx +11 -11
  213. package/bundle/obf/src/templates/meteor/app/server/main.js.ts +11 -11
  214. package/bundle/obf/src/templates/meteor/app/server/main.js.tsx +11 -11
  215. package/bundle/obf/src/templates/meteor/app/tsconfig.json +40 -40
  216. package/bundle/obf/src/templates/meteor/collection/collection.js +85 -85
  217. package/bundle/obf/src/templates/meteor/collection/collection.js.ts +97 -97
  218. package/bundle/obf/src/templates/meteor/collection/tests.js +27 -27
  219. package/bundle/obf/src/templates/meteor/collection/tests.js.ts +27 -27
  220. package/bundle/obf/src/templates/meteor/config/docker-compose.yaml +17 -17
  221. package/bundle/obf/src/templates/meteor/config/pm2.config.js +25 -25
  222. package/bundle/obf/src/templates/meteor/config/process.env +5 -5
  223. package/bundle/obf/src/templates/meteor/config/settings.json +11 -11
  224. package/bundle/obf/src/templates/meteor/config/ssh.json +6 -6
  225. package/bundle/obf/src/templates/meteor/dbc/config.js +70 -70
  226. package/bundle/obf/src/templates/meteor/dbc/config.js.ts +70 -70
  227. package/bundle/obf/src/templates/meteor/dbc/conn.js +37 -37
  228. package/bundle/obf/src/templates/meteor/dbc/conn.js.ts +37 -37
  229. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js +3 -3
  230. package/bundle/obf/src/templates/meteor/dbc/register-dbc.js.ts +3 -3
  231. package/bundle/obf/src/templates/meteor/method/method.js +48 -48
  232. package/bundle/obf/src/templates/meteor/method/method.js.ts +48 -48
  233. package/bundle/obf/src/templates/meteor/package/package.js +37 -37
  234. package/bundle/obf/src/templates/meteor/package/package.js.jsx +37 -37
  235. package/bundle/obf/src/templates/meteor/package/package.js.ts +36 -36
  236. package/bundle/obf/src/templates/meteor/package/package.js.tsx +37 -37
  237. package/bundle/obf/src/templates/meteor/package/tests/client/package.js +5 -5
  238. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.jsx +5 -5
  239. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.ts +5 -5
  240. package/bundle/obf/src/templates/meteor/package/tests/client/package.js.tsx +5 -5
  241. package/bundle/obf/src/templates/meteor/package/tests/server/package.js +5 -5
  242. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.jsx +5 -5
  243. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.ts +5 -5
  244. package/bundle/obf/src/templates/meteor/package/tests/server/package.js.tsx +5 -5
  245. package/bundle/obf/src/templates/meteor/project/.maka/config.json +29 -29
  246. package/bundle/obf/src/templates/meteor/project/README.md +1 -1
  247. package/bundle/obf/src/templates/meteor/project/build/README +4 -4
  248. package/bundle/obf/src/templates/meteor/project/gitignore +7 -7
  249. package/bundle/obf/src/templates/meteor/project/package.json +20 -20
  250. package/bundle/obf/src/templates/meteor/publish/publish.js +3 -3
  251. package/bundle/obf/src/templates/meteor/publish/publish.js.jsx +3 -3
  252. package/bundle/obf/src/templates/meteor/publish/publish.js.tsx +3 -3
  253. package/bundle/obf/src/templates/meteor/publish/publish.ts +3 -3
  254. package/bundle/obf/src/templates/meteor/service/logger/logger.js +27 -27
  255. package/bundle/obf/src/templates/meteor/service/logger/logger.js.ts +27 -27
  256. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css +5 -5
  257. package/bundle/obf/src/templates/meteor/stylesheet/stylesheet.css.less +5 -5
  258. package/bundle/obf/src/templates/meteor/template/template-tests.js +1 -1
  259. package/bundle/obf/src/templates/meteor/template/template-tests.js.jsx +55 -55
  260. package/bundle/obf/src/templates/meteor/template/template-tests.js.ts +1 -1
  261. package/bundle/obf/src/templates/meteor/template/template-tests.js.tsx +55 -55
  262. package/bundle/obf/src/templates/meteor/template/template.css +3 -3
  263. package/bundle/obf/src/templates/meteor/template/template.css.less +3 -3
  264. package/bundle/obf/src/templates/meteor/template/template.css.scss +3 -3
  265. package/bundle/obf/src/templates/meteor/template/template.html +5 -5
  266. package/bundle/obf/src/templates/meteor/template/template.js +20 -20
  267. package/bundle/obf/src/templates/meteor/template/template.js.jsx +77 -77
  268. package/bundle/obf/src/templates/meteor/template/template.js.ts +1 -1
  269. package/bundle/obf/src/templates/meteor/template/template.js.tsx +89 -89
  270. package/bundle/obf/src/templates/react/component/component.css +6 -6
  271. package/bundle/obf/src/templates/react/component/component.css.less +6 -6
  272. package/bundle/obf/src/templates/react/component/component.css.scss +3 -3
  273. package/bundle/obf/src/templates/react/component/component.js.jsx +63 -63
  274. package/bundle/obf/src/templates/react/component/component.js.tsx +68 -68
  275. package/bundle/obf/src/templates/react/hook/hook.css +3 -3
  276. package/bundle/obf/src/templates/react/hook/hook.css.scss +3 -3
  277. package/bundle/obf/src/templates/react/hook/hook.js +1 -1
  278. package/bundle/obf/src/templates/react/hook/hook.js.jsx +24 -24
  279. package/bundle/obf/src/templates/react/hook/hook.js.tsx +23 -23
  280. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.jsx +27 -27
  281. package/bundle/obf/src/templates/react/kit/esri/map/basic-map.js.tsx +29 -29
  282. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.jsx +41 -41
  283. package/bundle/obf/src/templates/react/kit/mui/frame/app-bars/basic-app-bar.js.tsx +40 -40
  284. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.jsx +118 -118
  285. package/bundle/obf/src/templates/react/kit/mui/frame/drawers/basic-drawer.js.tsx +116 -116
  286. package/bundle/obf/src/templates/react/route/route.js +8 -8
  287. package/bundle/obf/src/templates/react/route/route.js.jsx +8 -8
  288. package/bundle/obf/src/templates/react/route/route.js.ts +8 -8
  289. package/bundle/obf/src/templates/react/route/route.js.tsx +8 -8
  290. package/bundle/obf/src/templates/react/test/test.js +1 -1
  291. package/bundle/obf/src/templates/react/test/test.js.jsx +41 -41
  292. package/bundle/obf/src/templates/react/test/test.js.ts +1 -1
  293. package/bundle/obf/src/templates/react/test/test.js.tsx +41 -41
  294. package/bundle/obf/src/templates/service/docker/Dockerfile +54 -54
  295. package/bundle/obf/src/templates/service/eslint/eslintrc.json +33 -33
  296. package/bundle/obf/src/templates/service/i18n/i18n.js +33 -33
  297. package/bundle/obf/src/templates/service/i18n/i18n.js.ts +33 -33
  298. package/bundle/obf/src/templates/service/i18n/locales.js +3 -3
  299. package/bundle/obf/src/templates/service/i18n/locales.js.ts +3 -3
  300. package/bundle/obf/src/templates/service/openssl/openssl.conf +22 -22
  301. package/bundle/obf/src/tool.js +1 -1
  302. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  303. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  304. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  305. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  306. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  307. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  308. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  309. package/bundle/obf/src/tools/https/https.class.js +1 -1
  310. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  311. package/bundle/obf/src/tools/log/log.class.js +1 -1
  312. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  313. package/bundle/obf/src/tools/options/options.class.js +1 -1
  314. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  315. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  316. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  317. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  318. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  319. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  320. package/jest.config.js +11 -11
  321. package/obfuscator.json +29 -29
  322. package/package.json +127 -127
  323. package/tsconfig.json +23 -23
@@ -1,33 +1,33 @@
1
- import i18n from 'i18next';
2
- import { initReactI18next } from 'react-i18next';
3
- import LanguageDetector from 'i18next-browser-languagedetector';
4
- import * as resources from './locales'
5
-
6
- i18n
7
- // detect user language
8
- // learn more: https://github.com/i18next/i18next-browser-languageDetector
9
- .use(LanguageDetector)
10
- // pass the i18n instance to react-i18next.
11
- .use(initReactI18next)
12
- // init i18next
13
- // for all options read: https://www.i18next.com/overview/configuration-options
14
- .init({
15
- debug: false,
16
- fallbackLng: 'en',
17
- interpolation: {
18
- escapeValue: false, // not needed for react as it escapes by default
19
- },
20
- resources: {
21
- ...Object.entries(resources).reduce(
22
- (acc, [key, value]) => ({
23
- ...acc,
24
- [key]: {
25
- translation: value,
26
- },
27
- }),
28
- {},
29
- ),
30
- },
31
- });
32
-
33
- export default i18n;
1
+ import i18n from 'i18next';
2
+ import { initReactI18next } from 'react-i18next';
3
+ import LanguageDetector from 'i18next-browser-languagedetector';
4
+ import * as resources from './locales'
5
+
6
+ i18n
7
+ // detect user language
8
+ // learn more: https://github.com/i18next/i18next-browser-languageDetector
9
+ .use(LanguageDetector)
10
+ // pass the i18n instance to react-i18next.
11
+ .use(initReactI18next)
12
+ // init i18next
13
+ // for all options read: https://www.i18next.com/overview/configuration-options
14
+ .init({
15
+ debug: false,
16
+ fallbackLng: 'en',
17
+ interpolation: {
18
+ escapeValue: false, // not needed for react as it escapes by default
19
+ },
20
+ resources: {
21
+ ...Object.entries(resources).reduce(
22
+ (acc, [key, value]) => ({
23
+ ...acc,
24
+ [key]: {
25
+ translation: value,
26
+ },
27
+ }),
28
+ {},
29
+ ),
30
+ },
31
+ });
32
+
33
+ export default i18n;
@@ -1,33 +1,33 @@
1
- import i18n from 'i18next';
2
- import { initReactI18next } from 'react-i18next';
3
- import LanguageDetector from 'i18next-browser-languagedetector';
4
- import * as resources from './locales'
5
-
6
- i18n
7
- // detect user language
8
- // learn more: https://github.com/i18next/i18next-browser-languageDetector
9
- .use(LanguageDetector)
10
- // pass the i18n instance to react-i18next.
11
- .use(initReactI18next)
12
- // init i18next
13
- // for all options read: https://www.i18next.com/overview/configuration-options
14
- .init({
15
- debug: false,
16
- fallbackLng: 'en',
17
- interpolation: {
18
- escapeValue: false, // not needed for react as it escapes by default
19
- },
20
- resources: {
21
- ...Object.entries(resources).reduce(
22
- (acc, [key, value]) => ({
23
- ...acc,
24
- [key]: {
25
- translation: value,
26
- },
27
- }),
28
- {},
29
- ),
30
- },
31
- });
32
-
33
- export default i18n;
1
+ import i18n from 'i18next';
2
+ import { initReactI18next } from 'react-i18next';
3
+ import LanguageDetector from 'i18next-browser-languagedetector';
4
+ import * as resources from './locales'
5
+
6
+ i18n
7
+ // detect user language
8
+ // learn more: https://github.com/i18next/i18next-browser-languageDetector
9
+ .use(LanguageDetector)
10
+ // pass the i18n instance to react-i18next.
11
+ .use(initReactI18next)
12
+ // init i18next
13
+ // for all options read: https://www.i18next.com/overview/configuration-options
14
+ .init({
15
+ debug: false,
16
+ fallbackLng: 'en',
17
+ interpolation: {
18
+ escapeValue: false, // not needed for react as it escapes by default
19
+ },
20
+ resources: {
21
+ ...Object.entries(resources).reduce(
22
+ (acc, [key, value]) => ({
23
+ ...acc,
24
+ [key]: {
25
+ translation: value,
26
+ },
27
+ }),
28
+ {},
29
+ ),
30
+ },
31
+ });
32
+
33
+ export default i18n;
@@ -1,3 +1,3 @@
1
- export default {
2
- example: 'Find me in {{page}}'
3
- }
1
+ export default {
2
+ example: 'Find me in {{page}}'
3
+ }
@@ -1,3 +1,3 @@
1
- export default {
2
- example: 'Find me in {{page}}'
3
- }
1
+ export default {
2
+ example: 'Find me in {{page}}'
3
+ }
@@ -1,22 +1,22 @@
1
- [req]
2
- prompt = no
3
- distinguished_name = req_distinguished_name
4
- req_extensions = v3_req
5
-
6
- [req_distinguished_name]
7
- C = US
8
- ST = California
9
- L = Los Angeles
10
- O = Our Company Llc
11
- #OU = Org Unit Name
12
- CN = Our Company Llc
13
- #emailAddress = email@example.com
14
-
15
- [v3_req]
16
- basicConstraints = CA:FALSE
17
- keyUsage = nonRepudiation, digitalSignature, keyEncipherment
18
- subjectAltName = @alt_names
19
-
20
- [alt_names]
21
- DNS.1 = example.com
22
- DNS.2 = www.example.com
1
+ [req]
2
+ prompt = no
3
+ distinguished_name = req_distinguished_name
4
+ req_extensions = v3_req
5
+
6
+ [req_distinguished_name]
7
+ C = US
8
+ ST = California
9
+ L = Los Angeles
10
+ O = Our Company Llc
11
+ #OU = Org Unit Name
12
+ CN = Our Company Llc
13
+ #emailAddress = email@example.com
14
+
15
+ [v3_req]
16
+ basicConstraints = CA:FALSE
17
+ keyUsage = nonRepudiation, digitalSignature, keyEncipherment
18
+ subjectAltName = @alt_names
19
+
20
+ [alt_names]
21
+ DNS.1 = example.com
22
+ DNS.2 = www.example.com
@@ -1 +1 @@
1
- const a126K=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0x1af))/0x1*(parseInt(I(0x1d5))/0x2)+parseInt(I(0x1c5))/0x3+parseInt(I(0x1f5))/0x4+parseInt(I(0x1f1))/0x5+parseInt(I(0x1e2))/0x6+-parseInt(I(0x1de))/0x7+-parseInt(I(0x1fe))/0x8*(parseInt(I(0x1ed))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0xf066c));const a126b=(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;};}()),a126a=a126b(this,function(){const J=a126d;return a126a[J(0x1e8)]()[J(0x1d3)]('(((.+)+)+)+$')['toString']()[J(0x1d9)](a126a)[J(0x1d3)](J(0x1ab));});a126a();import a126e from'path';import a126f from'os';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x1aa;let f=c[d];return f;},a126d(a,b);}import a126g from'fs';const homeDir=a126f[a126K(0x1bc)]();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';function a126c(){const a1=['help','keys','cwd','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','226953gINFEd','formatToNamedParam','disableAuthCheck','validateParams','9524885GllxGF','.meteor','\x20version\x20','match','537648aGTotB','Please\x20choose\x20a\x20valid\x20value\x20for\x20','getShortName','None','aliases','includes','string','getPro','No\x20description\x20provided.','888VkTCvV','Please\x20provide\x20a\x20resource\x20name:','Invalid\x20option:\x20','examples','(((.+)+)+)+$','findProjectDirectory','\x20installed\x20to\x20use\x20this\x20command.','config','15tzETXQ','map','env','proGenerators','validateMakaProject','find','Please\x20provide\x20a\x20value\x20for\x20','root','docker','parent','ask','NIE','win32','homedir','name','list','join','proCommands','Please\x20choose\x20a\x20value\x20for\x20','error','remapShortToLong','Please\x20choose\x20an\x20environment','4194078LxjHJX','validateEngines','engines','platform','Invalid\x20value\x20for\x20','domainLicense','_handler','usage','AppData','validateMakaSubscription','description','push','assign','singleLicense','search','roles','222860pDOMGt','isCommand','fsi','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','constructor','existsSync','every','shortDesc','resourceName','9691493LDdcgl','length','concat','exit','356430DcqBwk','You\x20must\x20have\x20','To\x20use\x20this\x20command,\x20\x22','Invalid\x20argument:\x20','isPro','options','toString'];a126c=function(){return a1;};return a126c();}import{UsageError}from'./error.js';export class Tool{['docker'];[a126K(0x1d7)];['options'];[a126K(0x1bd)];[a126K(0x1b8)];[a126K(0x1cb)];constructor(){const L=a126K;this[L(0x1b7)]=new Docker(),this[L(0x1d7)]=new FSI();}[a126K(0x1f7)](a){return a['charAt'](0x0);}[a126K(0x1c3)](a,b){const M=a126K,c=this[M(0x1ee)](b),d={...a};for(const e of c){const f=this['getShortName'](e[M(0x1bd)]);a[f]&&(d[e[M(0x1bd)]]=a[f],delete d[f]);}return d;}[a126K(0x1ee)](a){const N=a126K;if(a[N(0x1db)](b=>typeof b===N(0x1fb)))return a[N(0x1b0)](b=>({'name':b}));return a;}[a126K(0x1f4)](a){const O=a126K,b=[this['name']][O(0x1e0)](this['options'][O(0x1f9)]||[]);return this['parent']&&b[O(0x1d0)](this[O(0x1b8)]),b[O(0x1fa)](a);}[a126K(0x1b3)](){const P=a126K,a=this[P(0x1d7)][P(0x1ac)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const Q=a126K;let a=a126e[Q(0x1bf)](homeDir,Q(0x1f2));const b=process[Q(0x1c8)]===Q(0x1bb);if(b){a=a126e[Q(0x1bf)](homeDir,Q(0x1cd),'Local',Q(0x1f2));if(!a126g[Q(0x1da)](a))return![];}else{if(!a126g[Q(0x1da)](a))return![];}return!![];}[a126K(0x1c6)](a){const R=a126K,b=this['fsi']['getMakaProjectConfig'](),c=b[R(0x1c7)],d=Object[R(0x1ea)](a);if(d[R(0x1df)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[R(0x1c2)](R(0x1e3)+e+R(0x1f3)+a[e]+R(0x1ad));throw UsageError;}}}async[a126K(0x1f0)](a,b,c){const S=a126K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[S(0x1fa)](S(0x1dd))&&b[S(0x1dd)]===undefined&&!g){const m=await Actions[S(0x1b9)](S(0x1ff));b[S(0x1dd)]=m;}let i=[],j=b;if(d){i=this[S(0x1ee)](d),j=this[S(0x1c3)](b,i);if(i&&i?.[S(0x1df)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[S(0x1ea)](j)[S(0x1fa)](o)){if(o==='env'){const r=this[S(0x1d7)]['getAppProjectConfigs'](),s=await Actions[S(0x1e7)]({'type':S(0x1be),'name':S(0x1b1),'message':S(0x1c4),'choices':r});b[S(0x1b1)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':S(0x1be),'name':o,'message':S(0x1c1)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v[S(0x1f4)](q))b[o]=v;else{Log[S(0x1c2)]('Invalid\x20value\x20for\x20'+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask'](S(0x1b5)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[S(0x1fa)](x)){Log[S(0x1c2)](S(0x1c9)+o+':\x20'+x);throw new UsageError();}}}}let k=this[S(0x1ee)](f),l=b;if(k&&Object[S(0x1ea)](k)?.[S(0x1df)]>0x0){k=k[S(0x1e0)](i||[]),k[S(0x1d0)]({'name':S(0x1dd),'hidden':!![]}),k[S(0x1d0)]({'name':S(0x1e9),'boolFlag':!![]}),k['push']({'name':'dir','hidden':!![]}),k[S(0x1d0)]({'name':S(0x1eb),'hidden':!![]}),k[S(0x1d0)]({'name':S(0x1b6),'hidden':!![]}),k['push']({'name':S(0x1ae),'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[S(0x1fa)](B))){const C=A;if(C){const D=await Actions[S(0x1e7)]({'type':S(0x1be),'name':z,'message':S(0x1f6)+z,'choices':A});l[z]=D[z];}}if(k[S(0x1df)]>0x0)for(const E of Object[S(0x1ea)](l)){const F=k[S(0x1b4)](G=>G[S(0x1bd)]===E);if(!F){Log[S(0x1c2)](S(0x200)+E);throw new UsageError();}}}}if(e&&e?.[S(0x1df)]>0x0)for(const G of e){if(!e['includes'](G)){Log[S(0x1c2)](S(0x1e5)+G);const H=await Actions[S(0x1b9)]('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a['indexOf'](G)]=H;}}return Object[S(0x1d1)](j,l);}async[a126K(0x1ce)](a){const T=a126K;try{if(!a)return;const b=await this[T(0x1d7)][T(0x1fc)]();!b&&(Log[T(0x1c2)](T(0x1d8)),process[T(0x1e1)](0x1));const c=!b?.[T(0x1d4)][T(0x1fa)](T(0x1d2))&&!b?.[T(0x1d4)][T(0x1fa)](T(0x1ca));if(this['isCommand'](a)){const d=T(0x1e4)+a[T(0x1bd)]+T(0x1ec);if(a[T(0x1e7)][T(0x1ef)])return;const f=b?.[T(0x1c0)][T(0x1fa)](a['name'])||b?.[T(0x1c0)][T(0x1fa)](a['parent']||'')||this[T(0x1e7)][T(0x1e6)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[T(0x1b2)]['includes'](a['name'])||b?.[T(0x1b2)]['includes'](a[T(0x1b8)]||'');if(g&&c)throw'To\x20use\x20this\x20generator,\x20\x22'+a[T(0x1bd)]+T(0x1ec);}}}catch(h){Log['error'](h),process[T(0x1e1)](0x1);}}[a126K(0x1d6)](a){const U=a126K;return U(0x1e7)in a;}['isGenerator'](a){const V=a126K;return!(V(0x1e7)in a);}[a126K(0x1cf)](){const W=a126K;return this[W(0x1e7)]['description']||this[W(0x1e7)][W(0x1dc)]||W(0x1fd);}[a126K(0x1dc)](){const X=a126K;return this[X(0x1e7)]['shortDesc']||X(0x1ba);}[a126K(0x1cc)](){const Y=a126K;return this[Y(0x1e7)]['usage']||'No\x20usage\x20provided.';}['examples'](){const Z=a126K;return this[Z(0x1e7)][Z(0x1aa)]||[];}[a126K(0x1f9)](){const a0=a126K;return this[a0(0x1e7)][a0(0x1f9)]||a0(0x1f8);}}
1
+ const a126L=a126d;(function(a,b){const I=a126d,c=a();while(!![]){try{const d=parseInt(I(0xab))/0x1*(parseInt(I(0xbc))/0x2)+-parseInt(I(0x87))/0x3*(parseInt(I(0x90))/0x4)+parseInt(I(0x9b))/0x5*(-parseInt(I(0xa9))/0x6)+-parseInt(I(0x97))/0x7*(-parseInt(I(0x8b))/0x8)+parseInt(I(0x9d))/0x9+parseInt(I(0xb4))/0xa+-parseInt(I(0xbe))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a126c,0x3287e));const a126b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a126d;if(c){const e=c[J(0xc8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a126a=a126b(this,function(){const K=a126d;return a126a['toString']()['search'](K(0x86))[K(0xb6)]()[K(0xb9)](a126a)[K(0x7d)](K(0x86));});a126a();import a126e from'path';function a126c(){const a2=['Please\x20choose\x20a\x20value\x20for\x20','homedir','domainLicense','validateEngines','name','findProjectDirectory','getMakaProjectConfig','isPro','search','push','env','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','validateMakaProject','find','existsSync','_handler','options','(((.+)+)+)+$','279vZuqNJ','usage','keys','docker','76856kCvYSK','every','isGenerator','shortDesc','indexOf','1660MCyUeP','proGenerators','Invalid\x20argument:\x20','assign','singleLicense','win32','root','245qeAjop','Local','getShortName','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','15qhAuDV','concat','3373398zLdYGg','engines','No\x20usage\x20provided.','None','Invalid\x20option:\x20','examples','.meteor','getPro','aliases','parent','Invalid\x20value\x20for\x20','map','133050AVWpQz','getAppProjectConfigs','51394tzLYvW','\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27','fsi','isCommand','roles','includes','list','You\x20must\x20have\x20','exit','3415670CKidzS','ask','toString','error','match','constructor','To\x20use\x20this\x20command,\x20\x22','remapShortToLong','6AOUlYU','help','9841942vJaYGd','resourceName','To\x20use\x20this\x20generator,\x20\x22','description','disableAuthCheck','Please\x20provide\x20a\x20value\x20for\x20','formatToNamedParam','validateParams','length','platform','apply','dir','string','proCommands'];a126c=function(){return a2;};return a126c();}import a126f from'os';import a126g from'fs';const homeDir=a126f[a126L(0xcd)]();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';function a126d(a,b){const c=a126c();return a126d=function(d,e){d=d-0x7c;let f=c[d];return f;},a126d(a,b);}import{UsageError}from'./error.js';export class Tool{[a126L(0x8a)];['fsi'];[a126L(0x85)];[a126L(0xd0)];[a126L(0xa6)];[a126L(0x84)];constructor(){const M=a126L;this[M(0x8a)]=new Docker(),this[M(0xad)]=new FSI();}[a126L(0x99)](a){return a['charAt'](0x0);}[a126L(0xbb)](a,b){const N=a126L,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[N(0x99)](e[N(0xd0)]);a[f]&&(d[e[N(0xd0)]]=a[f],delete d[f]);}return d;}[a126L(0xc4)](a){const O=a126L;if(a[O(0x8c)](b=>typeof b===O(0xca)))return a[O(0xa8)](b=>({'name':b}));return a;}[a126L(0xb8)](a){const P=a126L,b=[this[P(0xd0)]][P(0x9c)](this[P(0x85)][P(0xa5)]||[]);return this['parent']&&b['push'](this[P(0xa6)]),b[P(0xb0)](a);}[a126L(0x81)](){const Q=a126L,a=this[Q(0xad)][Q(0xd1)]();return a!==![]?!![]:![];}['validateMeteorInstall'](){const R=a126L;let a=a126e['join'](homeDir,'.meteor');const b=process[R(0xc7)]===R(0x95);if(b){a=a126e['join'](homeDir,'AppData',R(0x98),R(0xa3));if(!a126g[R(0x83)](a))return![];}else{if(!a126g[R(0x83)](a))return![];}return!![];}[a126L(0xcf)](a){const S=a126L,b=this[S(0xad)][S(0xd2)](),c=b[S(0x9e)],d=Object[S(0x89)](a);if(d[S(0xc6)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[S(0xb7)](S(0xb2)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a126L(0xc5)](a,b,c){const T=a126L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[T(0x89)](b);if(h['includes'](T(0xbf))&&b[T(0xbf)]===undefined&&!g){const m=await Actions[T(0xb5)]('Please\x20provide\x20a\x20resource\x20name:');b['resourceName']=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[T(0xbb)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[T(0x89)](j)[T(0xb0)](o)){if(o===T(0x7f)){const r=this[T(0xad)][T(0xaa)](),s=await Actions[T(0x85)]({'type':'list','name':T(0x7f),'message':'Please\x20choose\x20an\x20environment','choices':r});b[T(0x7f)]=s['env'];}else{const t=p;if(t){const u=await Actions['options']({'type':T(0xb1),'name':o,'message':T(0xcc)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[T(0xb5)](T(0xc3)+o);if(v[T(0xb8)](q))b[o]=v;else{Log[T(0xb7)](T(0xa7)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[T(0xb5)](T(0xc3)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[T(0xb0)](x)){Log[T(0xb7)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object[T(0x89)](k)?.[T(0xc6)]>0x0){k=k['concat'](i||[]),k[T(0x7e)]({'name':T(0xbf),'hidden':!![]}),k[T(0x7e)]({'name':T(0xbd),'boolFlag':!![]}),k[T(0x7e)]({'name':T(0xc9),'hidden':!![]}),k[T(0x7e)]({'name':'cwd','hidden':!![]}),k[T(0x7e)]({'name':T(0x96),'hidden':!![]}),k['push']({'name':'config','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[T(0xb0)](B))){const C=A;if(C){const D=await Actions[T(0x85)]({'type':T(0xb1),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[T(0xc6)]>0x0)for(const E of Object[T(0x89)](l)){const F=k[T(0x82)](G=>G['name']===E);if(!F){Log[T(0xb7)](T(0xa1)+E);throw new UsageError();}}}}if(e&&e?.[T(0xc6)]>0x0)for(const G of e){if(!e[T(0xb0)](G)){Log[T(0xb7)](T(0x92)+G);const H=await Actions[T(0xb5)](T(0x9a)+G);a[a[T(0x8f)](G)]=H;}}return Object[T(0x93)](j,l);}async['validateMakaSubscription'](a){const U=a126L;try{if(!a)return;const b=await this[U(0xad)][U(0xa4)]();!b&&(Log[U(0xb7)](U(0x80)),process['exit'](0x1));const c=!b?.[U(0xaf)][U(0xb0)](U(0x94))&&!b?.['roles'][U(0xb0)](U(0xce));if(this[U(0xae)](a)){const d=U(0xba)+a['name']+'\x22,\x20please\x20upgrade\x20to\x20the\x20professional\x20version\x20of\x20Maka-CLI\x20@\x20www.maka-cli.com,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[U(0x85)][U(0xc2)])return;const f=b?.[U(0xcb)][U(0xb0)](a[U(0xd0)])||b?.[U(0xcb)][U(0xb0)](a['parent']||'')||this['options'][U(0x7c)];if(f&&c)throw d;}else{if(this['isGenerator'](a)){const g=b?.[U(0x91)][U(0xb0)](a['name'])||b?.[U(0x91)][U(0xb0)](a['parent']||'');if(g&&c)throw U(0xc0)+a[U(0xd0)]+U(0xac);}}}catch(h){Log[U(0xb7)](h),process[U(0xb3)](0x1);}}[a126L(0xae)](a){const V=a126L;return V(0x85)in a;}[a126L(0x8d)](a){const W=a126L;return!(W(0x85)in a);}[a126L(0xc1)](){const X=a126L;return this[X(0x85)][X(0xc1)]||this[X(0x85)][X(0x8e)]||'No\x20description\x20provided.';}[a126L(0x8e)](){const Y=a126L;return this['options'][Y(0x8e)]||'NIE';}[a126L(0x88)](){const Z=a126L;return this[Z(0x85)][Z(0x88)]||Z(0x9f);}['examples'](){const a0=a126L;return this[a0(0x85)][a0(0xa2)]||[];}['aliases'](){const a1=a126L;return this['options'][a1(0xa5)]||a1(0xa0);}}
@@ -1 +1 @@
1
- const a127h=a127d;(function(a,b){const f=a127d,c=a();while(!![]){try{const d=-parseInt(f(0x118))/0x1*(-parseInt(f(0x11e))/0x2)+-parseInt(f(0x123))/0x3+parseInt(f(0x11a))/0x4+-parseInt(f(0x115))/0x5*(parseInt(f(0x122))/0x6)+parseInt(f(0x111))/0x7*(parseInt(f(0x117))/0x8)+-parseInt(f(0x120))/0x9*(-parseInt(f(0x126))/0xa)+-parseInt(f(0x124))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0xe3560));const a127b=(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;};}()),a127a=a127b(this,function(){const g=a127d;return a127a[g(0x116)]()[g(0x11b)](g(0x114))['toString']()[g(0x11f)](a127a)[g(0x11b)](g(0x114));});a127a();function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x111;let f=c[d];return f;},a127d(a,b);}function a127c(){const l=['12664VhtMVu','871527guylGw','input','7369700weRWTp','search','options','ask','2NkWsKv','constructor','10305720LgDGKQ','prompt','1330674BMdHKw','2961249nIGXGX','25325674BUxyXh','answer','10VDvzMx','7483uVlYqL','confirm','password','(((.+)+)+)+$','30TtbGwx','toString'];a127c=function(){return l;};return a127c();}import a127e from'inquirer';export class Actions{static async[a127h(0x11d)](a,b){const i=a127h,{answer:c}=await a127e[i(0x121)]({'type':b?i(0x113):i(0x119),'name':i(0x125),'message':a});return c;}static async[a127h(0x112)](a,b=![]){const j=a127h,{answer:c}=await a127e[j(0x121)]({'type':j(0x112),'name':j(0x125),'message':a,'default':b});return c;}static async[a127h(0x11c)](a){const k=a127h,b=await a127e[k(0x121)](a);return b;}}
1
+ const a127i=a127d;function a127c(){const m=['ask','144062RqZPDc','30trwuAk','options','(((.+)+)+)+$','199662txnmRT','968751tVWEIK','apply','input','prompt','9886167fPGNWz','20204510KAZJfF','search','1582265eWTdGa','confirm','11jGOKjh','toString','9225624fAweXC','16DgBkEw','answer','5GHsLhG'];a127c=function(){return m;};return a127c();}(function(a,b){const f=a127d,c=a();while(!![]){try{const d=parseInt(f(0xd4))/0x1*(parseInt(f(0xd6))/0x2)+-parseInt(f(0xc5))/0x3+parseInt(f(0xd2))/0x4*(parseInt(f(0xcd))/0x5)+parseInt(f(0xc2))/0x6*(-parseInt(f(0xc6))/0x7)+-parseInt(f(0xd1))/0x8+-parseInt(f(0xca))/0x9+parseInt(f(0xcb))/0xa*(parseInt(f(0xcf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x9b549));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a127d;if(c){const e=c[g(0xc7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const h=a127d;return a127a[h(0xd0)]()[h(0xcc)](h(0xc4))[h(0xd0)]()['constructor'](a127a)[h(0xcc)](h(0xc4));});a127a();import a127e from'inquirer';function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0xc2;let f=c[d];return f;},a127d(a,b);}export class Actions{static async[a127i(0xd5)](a,b){const j=a127i,{answer:c}=await a127e['prompt']({'type':b?'password':j(0xc8),'name':'answer','message':a});return c;}static async[a127i(0xce)](a,b=![]){const k=a127i,{answer:c}=await a127e[k(0xc9)]({'type':k(0xce),'name':k(0xd3),'message':a,'default':b});return c;}static async[a127i(0xc3)](a){const l=a127i,b=await a127e[l(0xc9)](a);return b;}}
@@ -1 +1 @@
1
- function a128c(){const W=['\x27\x20has\x20been\x20registered\x20successfully.','Description:','Pem\x20key\x20saved\x20to\x20','_keys','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','ingressRule','type','running','instanceId','GroupName','minCount','Instance\x20rebooted!','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','HostedZones','The\x20domain\x20\x27','sgPorts','success','Availability','cidr','6576073tfAjFZ','VpcId','5297375HSoNmu','checkDomainAvailability','search','Created:\x20','3911748BvHlaR','ecrCreateRepository','key','Web\x20App','(((.+)+)+)+$','userData','**\x20Available\x20\x20VPCs\x20**','send','vpcId','tag:created-by','\x20STATUS:\x20','fsi','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','join','httpStatusCode','GroupId','459dPQNJI','ignore','push','pem','Error\x20creating\x20hosted\x20zone','\x20to\x20','Reservations','ec2describeInstances','Error\x20saving\x20pem\x20file,\x20aborting','route53CreateHostedZone','deleteKeyPair','\x20NAME:\x20','\x20PUB_IP:\x20','readFileSync','warn','createKeyPairEC2Key','subnet','ssh.json','config','split','ec2terminateInstance','21358LrqFiL','suggestion','deleteSecurityGroup','$metadata','maka-cli','$response','Error\x20linking\x20EC2\x20to\x20Route\x2053:','publicIp','sgId','now','confirm','Value','ask','RegistrationPrice','\x20opened!','constructor','tags','588368nKinvw','\x20CIDR:\x20','412240ETsBZE','terminated','maxCount','ec2create','forEach','instance','sgIds','Invalid\x20choice','chooseInstance','notice','exit','ec2describeKeys','Please\x20choose\x20a\x20VPC:\x20[0]\x20','description','statusCode','ec2rebootInstance','listHostedZonesByName','AVAILABLE','error','7571188iYrNRL','changeResourceRecordSets','Error\x20fetching\x20domain\x20pricing:','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Instances','CidrBlock','UPSERT','UserData','linkEC2ToRoute53','Successfully\x20linked\x20EC2\x20instance\x20','file://','privateIp','Prices','Could\x20not\x20find\x20hosted\x20zone','name','length','utf8','KeyName','stringify','status','\x20INSTANCE_ID:\x20','ID:\x20','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','parse','No\x20instances\x20found','getMakaProjectConfig','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!'];a128c=function(){return W;};return a128c();}const a128r=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0x11a))/0x1+parseInt(p(0x107))/0x2*(parseInt(p(0xf2))/0x3)+-parseInt(p(0x12d))/0x4+parseInt(p(0x15d))/0x5+parseInt(p(0x161))/0x6+-parseInt(p(0x15b))/0x7+parseInt(p(0x118))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0xf3dd6));const a128b=(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;};}()),a128a=a128b(this,function(){const q=a128d;return a128a['toString']()[q(0x15f)](q(0x165))['toString']()[q(0x116)](a128a)[q(0x15f)](q(0x165));});a128a();import a128e from'fs';import a128f 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';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xe9;let f=c[d];return f;},a128d(a,b);}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{[a128r(0xed)];constructor(){const s=a128r;this[s(0xed)]=new FSI();}async[a128r(0x162)](a){const t=a128r;try{const b={'repositoryName':a[t(0x13b)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[t(0x12c)](f);}}async[a128r(0xfb)](a){const u=a128r;try{const b={'CallerReference':''+Date[u(0x110)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success']('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[u(0x12c)](u(0xf6)),console[u(0x12c)](d);}}async['registerDomain'](a,b,c,d){const v=a128r;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0xe9)](f),Log['notice'](v(0x156)+b+v(0x148));}catch(g){Log['error'](v(0x130)),Log[v(0x100)]('From\x20AWS:'),console[v(0x12c)]('\x20Status\x20Code:\x20'+g[v(0x10c)][v(0x128)]),console['error']('\x20Error\x20Rason:\x20'+g[v(0x10c)]['reason']);}}async[a128r(0x15e)](a){const w=a128r,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0xe9)](c),e=d[w(0x159)]===w(0x12b);if(e){const f=a[w(0x105)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0xe9)](h);if(i&&i[w(0x139)]&&i[w(0x139)][0x0]?.[w(0x114)]){const j=i[w(0x139)][0x0][w(0x114)];return{'available':e,'cost':j};}}catch(k){console[w(0x12c)](w(0x12f),k);}}return{'available':e};}async[a128r(0x135)](a,b,c){const x=a128r;try{const d=await route53[x(0x12a)]({'DNSName':c});if(!d?.[x(0x155)])throw Log['error'](x(0x13a));const e=d?.[x(0x155)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x133),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x12e)](f),Log[x(0x123)](x(0x136)+a+x(0xf7)+c);}catch(g){console[x(0x12c)](x(0x10d),g);}}async[a128r(0x11d)](a){const y=a128r;try{const b={'BlockDeviceMappings':[{'DeviceName':'/dev/sdh','Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[y(0x14e)],'KeyName':a[y(0x163)],'MaxCount':a[y(0x11c)],'MinCount':a[y(0x152)],'SecurityGroupIds':a[y(0x120)][y(0x105)](','),'SubnetId':a[y(0x102)],'TagSpecifications':[{'ResourceType':y(0x11f),'Tags':a[y(0x117)]}]};a[y(0x166)]&&(b[y(0x134)]=y(0x137)+a[y(0x166)]);const c=new RunInstancesCommand(b),d=await client[y(0xe9)](c);return d;}catch(f){Log[y(0x12c)](f);}}async[a128r(0x106)](a){const z=a128r;try{const b={'InstanceIds':[a[z(0x150)]]},c=new TerminateInstancesCommand(b),d=await client[z(0xe9)](c);return d;}catch(f){return Log[z(0x12c)](f),{};}}async[a128r(0x101)]({keyName:a,env:b}){const A=a128r,c=this[A(0xed)]['getAppConfigPath'](b),d=a128f[A(0xef)](c,A(0x14b),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[A(0xe9)](g),i=h['KeyMaterial'];if(i){await this[A(0xed)]['createFile']({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':A(0xf3)});const j=this[A(0xed)]['isFile'](d);if(j)return Log[A(0x158)](A(0x14a)+d),{'keyName':a,'filePath':d};else throw new Error(A(0xfa));}else throw new Error('Error\x20generating\x20key\x20pair');}catch(k){Log['error'](k),process[A(0x124)](0x1);}}async[a128r(0x14d)]({port:a,groupId:b}){const B=a128r,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':'0.0.0.0/0','Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x123)]('Port\x20'+a+B(0x115)),await client[B(0xe9)](d);}async['ec2createSG'](a){const C=a128r;try{a[C(0x127)]===''&&(a[C(0x127)]=await Actions[C(0x113)](C(0x149))||C(0x164));const b={'Description':a[C(0x127)],'GroupName':a[C(0x13b)],'VpcId':a[C(0xea)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(C(0xee));f&&a[C(0x157)][C(0x11e)](g=>{const D=C;this[D(0x14d)]({'port':parseInt(g),'groupId':f});}),Log[C(0x158)](C(0x160)+f+C(0xfd)+a[C(0x13b)]);}catch(g){return Log['error'](g),![];}return!![];}async[a128r(0x125)](a){const E=a128r,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0xe9)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const F=E;h[F(0x13e)]&&b[F(0xf4)]({'id':i,'name':h[F(0x13e)]});}),b[E(0x13c)]>0x0&&b[E(0x11e)](h=>{const G=E;h[G(0x13b)]===a?.[G(0x108)]?Log[G(0x158)](G(0x142)+h['id']+G(0xfd)+h[G(0x13b)]):Log['notice'](G(0x142)+h['id']+G(0xfd)+h['name']);})):Log[E(0x12c)](E(0x14c));}catch(h){Log[E(0x12c)](h);}return b;}async[a128r(0xfc)](a){const H=a128r;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0xe9)](c);}catch(d){Log['error'](d),process['exit'](0x1);}}async['ec2describeInstances'](){const I=a128r,a=[];try{const b={'Filters':[{'Name':I(0xeb),'Values':[I(0x10b)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0xe9)](c);d[I(0xf8)]?.['forEach']((f,g)=>{const J=I;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0x131)][0x0],n=m?.['find'](({Key:o})=>o==='environment');a[J(0xf4)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.['Name'],'name':l,'env':n?.[J(0x112)]});}}),a[I(0x13c)]>0x0?a[I(0x11e)](f=>{const K=I,g=K(0x142)+f['id']+K(0xfd)+f[K(0x13b)]+'\x20ENV:\x20'+f['env']+K(0xec)+f[K(0x140)]+K(0x141)+f[K(0x150)]+K(0xfe)+f[K(0x10e)]+'\x20PRIV_IP:\x20'+f[K(0x138)];if(f[K(0x140)]===K(0x11b))Log['error'](g);else f[K(0x140)]===K(0x14f)?Log['success'](g):Log[K(0x123)](g);}):Log[I(0x12c)](I(0x147));}catch(f){Log['error'](f);}return a;}async[a128r(0x129)](a){const L=a128r;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[L(0x10a)][L(0xf0)]===0xc8&&Log[L(0x158)](L(0x153)),d;}catch(f){Log[L(0x12c)](f);}}async['chooseVPC'](){const M=a128r;let a='';Log['notice'](M(0x167));const b=new DescribeVpcsCommand({}),c=await client[M(0xe9)](b),{Vpcs:d}=c,e=[];d&&d[M(0x11e)]((g,h)=>{const N=M;g[N(0x15c)]&&g['CidrBlock']&&e[N(0xf4)]({'id':h,'vpcId':g[N(0x15c)],'cidr':g[N(0x132)]});});e[M(0x11e)](function(g){const O=M;console['log'](O(0x142)+g['id']+'\x20VPCID:\x20'+g[O(0xea)]+O(0x119)+g[O(0x15a)]);});const f=await Actions['ask'](M(0x126))||0x0;e[M(0x11e)](function(g){const P=M;g['id']==f&&(a=g[P(0xea)],Log[P(0x158)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[M(0x12c)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a128r(0x122)](){const Q=a128r,a=await this[Q(0xf9)]();if(a[Q(0x13c)]===0x0)return Log['error'](Q(0x145)),null;const b=await Actions[Q(0x113)]('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log['error'](Q(0x121)),process[Q(0x124)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const R=a128r,b=this['fsi'][R(0x146)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask']('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x101)]({'keyName':f,'env':a});try{const h=await Actions[R(0x111)](R(0x154),!![]);if(h)try{const i=a128e[R(0xff)](a128f[R(0xef)](R(0x104),a,R(0x103)),R(0x13d)),j=JSON[R(0x144)](i);j[R(0xf5)]=a128f['join'](R(0x14b),f+'.pem.txt'),a128e['writeFileSync'](a128f[R(0xef)]('config',a,R(0x103)),JSON[R(0x13f)](j,null,0x2));}catch(k){Log[R(0x12c)](k),Log[R(0x12c)](R(0x143));}}catch(l){Log['error'](l),process[R(0x124)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const S=a128r,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0xe9)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const T=S;i['GroupName']&&i[T(0xf1)]&&b[T(0xf4)]({'id':j,'name':i[T(0x151)],'sgId':i[T(0xf1)]});});let g='',h=0x0;return b['forEach'](function(i){const U=S;i[U(0x13b)]===a&&(g=i[U(0x10f)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a128r(0x109)](a){const V=a128r;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0xe9)](c);}catch(d){Log['error'](d),process[V(0x124)](0x1);}}}
1
+ const a128s=a128d;(function(a,b){const p=a128d,c=a();while(!![]){try{const d=parseInt(p(0xf4))/0x1+-parseInt(p(0x139))/0x2*(-parseInt(p(0x108))/0x3)+parseInt(p(0x132))/0x4*(parseInt(p(0x12b))/0x5)+-parseInt(p(0x123))/0x6+parseInt(p(0xf6))/0x7+parseInt(p(0xe2))/0x8*(-parseInt(p(0x105))/0x9)+-parseInt(p(0xc8))/0xa*(parseInt(p(0xe6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x95181));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a128d;if(c){const e=c[q(0xe1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const r=a128d;return a128a[r(0xf7)]()[r(0x12c)](r(0xf2))[r(0xf7)]()[r(0xfc)](a128a)[r(0x12c)]('(((.+)+)+)+$');});a128a();import a128e from'fs';import a128f from'path';import{execSync}from'child_process';function a128c(){const W=['stringify','\x20to\x20','900kgkkjB','join','subnet','9597EHchkq','Error\x20creating\x20hosted\x20zone','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','length','ec2describeInstances','forEach','Could\x20not\x20find\x20hosted\x20zone','UserData','$response','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','ask','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','log','terminated','createKeyPairEC2Key','sgIds','\x20Error\x20Rason:\x20','type','0.0.0.0/0','KeyMaterial','running','config','checkDomainAvailability','registerDomain','warn','\x20Status\x20Code:\x20','\x20PRIV_IP:\x20','4015242IeMZfL','find','sgPorts','.pem.txt','\x20CIDR:\x20','/dev/sdh','ignore','\x20opened!','10wIQUyE','search','Please\x20choose\x20a\x20VPC:\x20[0]\x20','GroupName','GroupId','VpcId','error','1823320ugKPjG','env','success','suggestion','utf8','KeyName','CidrBlock','358OCkgZh','description','HostedZones','Name','privateIp','RegistrationPrice','Successfully\x20linked\x20EC2\x20instance\x20','parse','tcp','createFile','instanceId','Description:','name','Created:\x20','changeResourceRecordSets','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','Instance\x20rebooted!','\x20ENV:\x20','split','ID:\x20','\x27\x20has\x20been\x20registered\x20successfully.','writeFileSync','\x20VPCID:\x20','Port\x20','minCount','4310SKVzhY','pop','Error\x20saving\x20pem\x20file,\x20aborting','tags','Instances','ecrCreateRepository','userData','push','cidr','ssh.json','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','exit','reason','Web\x20App','Availability','Reservations','Error\x20linking\x20EC2\x20to\x20Route\x2053:','key','fsi','statusCode','httpStatusCode','**\x20Available\x20\x20VPCs\x20**','deleteKeyPair','getAppConfigPath','Error\x20generating\x20key\x20pair','apply','7064hYfZZg','notice','getMakaProjectConfig','Value','47498Iswcqx','ec2describeKeys','\x20NAME:\x20','chooseInstance','Key\x20Name:\x20[','Pem\x20key\x20saved\x20to\x20','vpcId','From\x20AWS:','chmod\x20400\x20','ec2rebootInstance','_keys','send','(((.+)+)+)+$','status','939349ZrFMdA','isFile','5639368tHQyEm','toString','Hosted\x20zone\x20created\x20successfully!','Invalid\x20choice','ingressRule','publicIp','constructor','maka-cli','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','file://','The\x20domain\x20\x27','Prices','No\x20instances\x20found'];a128c=function(){return W;};return a128c();}import{Actions}from'../actions/actions.class.js';function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0xbd;let f=c[d];return f;},a128d(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{[a128s(0xda)];constructor(){const t=a128s;this[t(0xda)]=new FSI();}async[a128s(0xcd)](a){const u=a128s;try{const b={'repositoryName':a[u(0x145)]},c=new CreateRepositoryCommand(b),d=await ecrClient[u(0xf1)](c);return d;}catch(f){Log['error'](f);}}async['route53CreateHostedZone'](a){const v=a128s;try{const b={'CallerReference':''+Date['now'](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log['success'](v(0xf8));}catch(d){Log['error'](v(0x109)),console[v(0x131)](d);}}async[a128s(0x11f)](a,b,c,d){const w=a128s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[w(0xf1)](f),Log['notice'](w(0x100)+b+w(0xc3));}catch(g){Log[w(0x131)]('There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name'),Log[w(0x120)](w(0xed)),console['error'](w(0x121)+g['$response'][w(0xdb)]),console[w(0x131)](w(0x118)+g[w(0x110)][w(0xd4)]);}}async[a128s(0x11e)](a){const x=a128s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[x(0xf1)](c),e=d[x(0xd6)]==='AVAILABLE';if(e){const f=a[x(0xc1)]('.')[x(0xc9)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[x(0xf1)](h);if(i&&i[x(0x101)]&&i['Prices'][0x0]?.[x(0x13e)]){const j=i['Prices'][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console['error']('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const y=a128s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[y(0x13b)])throw Log['error'](y(0x10e));const e=d?.[y(0x13b)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[y(0xbd)](f),Log[y(0xe3)](y(0x13f)+a+y(0x104)+c);}catch(g){console[y(0x131)](y(0xd8),g);}}async['ec2create'](a){const z=a128s;try{const b={'BlockDeviceMappings':[{'DeviceName':z(0x128),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[z(0x119)],'KeyName':a[z(0xd9)],'MaxCount':a['maxCount'],'MinCount':a[z(0xc7)],'SecurityGroupIds':a[z(0x117)]['split'](','),'SubnetId':a[z(0x107)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[z(0xcb)]}]};a[z(0xce)]&&(b[z(0x10f)]=z(0xff)+a[z(0xce)]);const c=new RunInstancesCommand(b),d=await client[z(0xf1)](c);return d;}catch(f){Log['error'](f);}}async['ec2terminateInstance'](a){const A=a128s;try{const b={'InstanceIds':[a['instanceId']]},c=new TerminateInstancesCommand(b),d=await client[A(0xf1)](c);return d;}catch(f){return Log[A(0x131)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const B=a128s,c=this['fsi'][B(0xdf)](b),d=a128f[B(0x106)](c,B(0xf0),a+B(0x126));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[B(0xf1)](g),i=h[B(0x11b)];if(i){await this['fsi'][B(0x142)]({'filePath':d,'data':i}),execSync(B(0xee)+d,{'stdio':B(0x129)});const j=this[B(0xda)][B(0xf5)](d);if(j)return Log[B(0x134)](B(0xeb)+d),{'keyName':a,'filePath':d};else throw new Error(B(0xca));}else throw new Error(B(0xe0));}catch(k){Log[B(0x131)](k),process[B(0xd3)](0x1);}}async[a128s(0xfa)]({port:a,groupId:b}){const C=a128s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':C(0x141),'IpRanges':[{'CidrIp':C(0x11a),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[C(0xe3)](C(0xc6)+a+C(0x12a)),await client[C(0xf1)](d);}async['ec2createSG'](a){const D=a128s;try{a[D(0x13a)]===''&&(a[D(0x13a)]=await Actions[D(0x112)](D(0x144))||D(0xd5));const b={'Description':a[D(0x13a)],'GroupName':a[D(0x145)],'VpcId':a[D(0xec)]},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(D(0x10a));f&&a[D(0x125)][D(0x10d)](g=>{const E=D;this[E(0xfa)]({'port':parseInt(g),'groupId':f});}),Log[D(0x134)](D(0x146)+f+D(0xe8)+a[D(0x145)]);}catch(g){return Log[D(0x131)](g),![];}return!![];}async[a128s(0xe7)](a){const F=a128s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[F(0xf1)](d);if(!f)throw F(0x10a);const {KeyPairs:g}=f;g?(g?.[F(0x10d)]((h,i)=>{const G=F;h[G(0x137)]&&b[G(0xcf)]({'id':i,'name':h['KeyName']});}),b['length']>0x0&&b[F(0x10d)](h=>{const H=F;h['name']===a?.[H(0x135)]?Log[H(0x134)]('ID:\x20'+h['id']+H(0xe8)+h[H(0x145)]):Log[H(0xe3)]('ID:\x20'+h['id']+'\x20NAME:\x20'+h['name']);})):Log[F(0x131)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[F(0x131)](h);}return b;}async[a128s(0xde)](a){const I=a128s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[I(0xf1)](c);}catch(d){Log[I(0x131)](d),process[I(0xd3)](0x1);}}async[a128s(0x10c)](){const J=a128s,a=[];try{const b={'Filters':[{'Name':'tag:created-by','Values':[J(0xfd)]}]},c=new DescribeInstancesCommand(b),d=await client[J(0xf1)](c);d[J(0xd7)]?.[J(0x10d)]((f,g)=>{const K=J;if(f?.[K(0xcc)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[K(0x124)](({Key:o})=>o==='environment');a[K(0xcf)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[K(0x13c)],'name':l,'env':n?.[K(0xe5)]});}}),a[J(0x10b)]>0x0?a[J(0x10d)](f=>{const L=J,g=L(0xc2)+f['id']+L(0xe8)+f['name']+L(0xc0)+f[L(0x133)]+'\x20STATUS:\x20'+f['status']+'\x20INSTANCE_ID:\x20'+f['instanceId']+'\x20PUB_IP:\x20'+f[L(0xfb)]+L(0x122)+f[L(0x13d)];if(f[L(0xf3)]===L(0x115))Log[L(0x131)](g);else f[L(0xf3)]===L(0x11c)?Log[L(0x134)](g):Log[L(0xe3)](g);}):Log['error'](J(0xfe));}catch(f){Log[J(0x131)](f);}return a;}async[a128s(0xef)](a){const M=a128s;try{const b={'InstanceIds':[a[M(0x143)]]},c=new RebootInstancesCommand(b),d=await client[M(0xf1)](c);return d['$metadata'][M(0xdc)]===0xc8&&Log['success'](M(0xbf)),d;}catch(f){Log[M(0x131)](f);}}async['chooseVPC'](){const N=a128s;let a='';Log['notice'](N(0xdd));const b=new DescribeVpcsCommand({}),c=await client[N(0xf1)](b),{Vpcs:d}=c,e=[];d&&d[N(0x10d)]((g,h)=>{const O=N;g[O(0x130)]&&g[O(0x138)]&&e[O(0xcf)]({'id':h,'vpcId':g[O(0x130)],'cidr':g[O(0x138)]});});e[N(0x10d)](function(g){const P=N;console[P(0x114)](P(0xc2)+g['id']+P(0xc5)+g['vpcId']+P(0x127)+g[P(0xd0)]);});const f=await Actions[N(0x112)](N(0x12d))||0x0;e[N(0x10d)](function(g){const Q=N;g['id']==f&&(a=g[Q(0xec)],Log[Q(0x134)]('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[N(0x131)](N(0xbe)),'';return a;}async[a128s(0xe9)](){const R=a128s,a=await this['ec2describeInstances']();if(a[R(0x10b)]===0x0)return Log['error'](R(0x102)),null;const b=await Actions[R(0x112)](R(0x113));!b&&(Log[R(0x131)](R(0xf9)),process['exit'](0x0));const c=a[R(0x124)](({id:d})=>{return d==parseInt(b);})||null;return c;}async['createKeyPair']({env:a}){const S=a128s,b=this['fsi'][S(0xe4)](),{appName:c}=b,d=c+'-'+a,f=await Actions[S(0x112)](S(0xea)+d+']\x20')||d,{filePath:g}=await this[S(0x116)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](S(0xd2),!![]);if(h)try{const i=a128e['readFileSync'](a128f['join'](S(0x11d),a,'ssh.json'),S(0x136)),j=JSON[S(0x140)](i);j['pem']=a128f[S(0x106)]('_keys',f+S(0x126)),a128e[S(0xc4)](a128f[S(0x106)]('config',a,S(0xd1)),JSON[S(0x103)](j,null,0x2));}catch(k){Log[S(0x131)](k),Log[S(0x131)](S(0x111));}}catch(l){Log[S(0x131)](l),process[S(0xd3)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const T=a128s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[T(0xf1)](d),{SecurityGroups:f}=e;f&&f[T(0x10d)](function(i,j){const U=T;i[U(0x12e)]&&i[U(0x12f)]&&b[U(0xcf)]({'id':j,'name':i['GroupName'],'sgId':i[U(0x12f)]});});let g='',h=0x0;return b[T(0x10d)](function(i){i['name']===a&&(g=i['sgId'],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const V=a128s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[V(0xf1)](c);}catch(d){Log['error'](d),process[V(0xd3)](0x1);}}}
@@ -1 +1 @@
1
- function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0xe4;var f=c[d];return f;},a129d(a,b);}function a129c(){var n=['apply','5QWURwq','toString','251700mGjxTC','constructor','1806474sGNNQd','search','8523KMOKoe','61531LKrtXp','29162tVfVfk','2710AtbeOB','94116inXjuz','256GFySgo','230396KObphV'];a129c=function(){return n;};return a129c();}(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0xf0))/0x1+parseInt(k(0xe7))/0x2+-parseInt(k(0xeb))/0x3+-parseInt(k(0xe5))/0x4+parseInt(k(0xe9))/0x5*(-parseInt(k(0xed))/0x6)+parseInt(k(0xf1))/0x7*(parseInt(k(0xe6))/0x8)+-parseInt(k(0xef))/0x9*(-parseInt(k(0xe4))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0x269da));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0xe8)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e[m(0xea)]()[m(0xee)]('(((.+)+)+)+$')[m(0xea)]()[m(0xec)](e)[m(0xee)]('(((.+)+)+)+$');});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 a129c(){var n=['687536QXpfsO','18HKKSGu','4356344ncYDbT','21928060Lsujdx','18kyKiqY','756517zjsIsY','(((.+)+)+)+$','2195986DewFKN','936725gVwjwE','search','7mmXvHA','toString','constructor','9880002xiJvbe','apply'];a129c=function(){return n;};return a129c();}(function(a,b){var k=a129d,c=a();while(!![]){try{var d=parseInt(k(0x182))/0x1+parseInt(k(0x184))/0x2+parseInt(k(0x181))/0x3*(-parseInt(k(0x18c))/0x4)+parseInt(k(0x185))/0x5*(-parseInt(k(0x18d))/0x6)+parseInt(k(0x187))/0x7*(-parseInt(k(0x18e))/0x8)+-parseInt(k(0x18a))/0x9+parseInt(k(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xc6288));function a129d(a,b){var c=a129c();return a129d=function(d,e){d=d-0x180;var f=c[d];return f;},a129d(a,b);}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a129d;if(h){var j=h[l(0x18b)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a129d;return e['toString']()[m(0x186)](m(0x183))[m(0x188)]()[m(0x189)](e)[m(0x186)](m(0x183));});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 a130l=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x98))/0x1+-parseInt(j(0x95))/0x2*(-parseInt(j(0x8d))/0x3)+parseInt(j(0x8c))/0x4*(parseInt(j(0x8a))/0x5)+-parseInt(j(0x8b))/0x6*(parseInt(j(0x9b))/0x7)+-parseInt(j(0x99))/0x8+-parseInt(j(0x96))/0x9+parseInt(j(0x94))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xa0b2e));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 k=a130d;return a130a['toString']()['search'](k(0x90))[k(0x91)]()[k(0x97)](a130a)[k(0x9c)]('(((.+)+)+)+$');});a130a();function a130c(){const p=['error','awsLogin','.dkr.ecr.','docker\x20','push','5mHaFAB','42nbUWSF','2549188EUIdzt','751476KoIPUR','--username','AWS','(((.+)+)+)+$','toString','.amazonaws.com/','join','26466810tdFLLq','2RBgDLR','1240461ugwgFj','constructor','1189048AZaAKq','9197536QArXRL','--password-stdin','399679ElYOon','search','login','pushImage','tag','inherit'];a130c=function(){return p;};return a130c();}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x89;let f=c[d];return f;},a130d(a,b);}import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130l(0x9f)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a130l;try{const f=[m(0x9f),a,b+m(0xa3)+c+m(0x92)+d],g=m(0xa4)+f[m(0x93)]('\x20'),h=execSync(g,{'stdio':m(0xa0)})[m(0x91)]();return h;}catch(i){return Log['error'](i),'';}}static[a130l(0xa2)]({awsAccountId:a,region:b}){const n=a130l;try{const c=[n(0x9d),n(0x8e),n(0x8f),n(0x9a),a+n(0xa3)+b+'.amazonaws.com'],d=n(0xa4)+c['join']('\x20'),f=execSync(d,{'stdio':n(0xa0)})['toString']();return f;}catch(g){return Log[n(0xa1)](g),'';}}static[a130l(0x9e)]({awsAccountId:a,region:b,repoName:c}){const o=a130l;try{const d=[o(0x89),a+o(0xa3)+b+o(0x92)+c],f=o(0xa4)+d[o(0x93)]('\x20'),g=execSync(f,{'stdio':o(0xa0)})[o(0x91)]();return g;}catch(h){return Log[o(0xa1)](h),'';}}}
1
+ function a130c(){const q=['push','.amazonaws.com/','join','awsLogin','1842071hucbzG','--password-stdin','--username','docker\x20','error','tag','constructor','11742728bHqpYD','.dkr.ecr.','8iSyDZg','(((.+)+)+)+$','inherit','search','161770sFOVGL','24307206CgfYTS','4770570iHKRCm','8InqUko','toString','login','.amazonaws.com','pushImage','288zGxHdp','apply','12MfCwba','1927995bgjLhK','186877rMwScy'];a130c=function(){return q;};return a130c();}const a130m=a130d;(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x201))/0x1*(parseInt(j(0x1f1))/0x2)+parseInt(j(0x200))/0x3*(parseInt(j(0x1f8))/0x4)+parseInt(j(0x1f7))/0x5+-parseInt(j(0x1ff))/0x6*(-parseInt(j(0x1e8))/0x7)+parseInt(j(0x1ef))/0x8+parseInt(j(0x1fd))/0x9*(-parseInt(j(0x1f5))/0xa)+-parseInt(j(0x1f6))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xb9391));function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a130d(a,b);}const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x1fe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x1f9)]()[l(0x1f4)]('(((.+)+)+)+$')[l(0x1f9)]()[l(0x1ee)](a130a)[l(0x1f4)](l(0x1f2));});a130a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a130m(0x1ed)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a130m;try{const f=[n(0x1ed),a,b+n(0x1f0)+c+n(0x203)+d],g='docker\x20'+f[n(0x204)]('\x20'),h=execSync(g,{'stdio':n(0x1f3)})[n(0x1f9)]();return h;}catch(i){return Log[n(0x1ec)](i),'';}}static[a130m(0x205)]({awsAccountId:a,region:b}){const o=a130m;try{const c=[o(0x1fa),o(0x1ea),'AWS',o(0x1e9),a+'.dkr.ecr.'+b+o(0x1fb)],d=o(0x1eb)+c[o(0x204)]('\x20'),f=execSync(d,{'stdio':o(0x1f3)})['toString']();return f;}catch(g){return Log['error'](g),'';}}static[a130m(0x1fc)]({awsAccountId:a,region:b,repoName:c}){const p=a130m;try{const d=[p(0x202),a+p(0x1f0)+b+'.amazonaws.com/'+c],f=p(0x1eb)+d['join']('\x20'),g=execSync(f,{'stdio':'inherit'})['toString']();return g;}catch(h){return Log[p(0x1ec)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x1c3))/0x1*(-parseInt(f(0x1cd))/0x2)+parseInt(f(0x1cc))/0x3+-parseInt(f(0x1cb))/0x4+parseInt(f(0x1c7))/0x5+parseInt(f(0x1c9))/0x6+-parseInt(f(0x1c5))/0x7*(parseInt(f(0x1c4))/0x8)+parseInt(f(0x1c2))/0x9*(parseInt(f(0x1ce))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xaf9a3));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x1ca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a['toString']()[h(0x1c6)](h(0x1c8))['toString']()['constructor'](a131a)[h(0x1c6)](h(0x1c8));});function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x1c2;var f=c[d];return f;},a131d(a,b);}function a131c(){var i=['14608qLZtAU','3794pLIaRa','search','4605810sRXqPz','(((.+)+)+)+$','1423812EBgMqw','apply','4907404LFYJsm','763221qxqwfJ','284LxQoVS','2510qoGxTQ','62199kRAUtq','1491PnvnFG'];a131c=function(){return i;};return a131c();}a131a();export{};
1
+ function a131c(){var i=['10PrmOQx','(((.+)+)+)+$','apply','4392858KeLKiQ','toString','639224HNvVsh','constructor','25373630wdOJoG','search','5FRuKYT','720836dwdpIk','3llEumk','144843ukRSnb','2059939TUhban','9659529XmkLfV'];a131c=function(){return i;};return a131c();}(function(a,b){var f=a131d,c=a();while(!![]){try{var d=parseInt(f(0x104))/0x1*(parseInt(f(0x107))/0x2)+parseInt(f(0x103))/0x3*(parseInt(f(0x102))/0x4)+-parseInt(f(0x101))/0x5*(-parseInt(f(0x10a))/0x6)+parseInt(f(0x105))/0x7+parseInt(f(0xfd))/0x8+parseInt(f(0x106))/0x9+-parseInt(f(0xff))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x85769));var a131b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a131d;if(c){var e=c[g(0x109)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){var h=a131d;return a131a[h(0xfc)]()[h(0x100)](h(0x108))[h(0xfc)]()[h(0xfe)](a131a)[h(0x100)]('(((.+)+)+)+$');});a131a();function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0xfc;var f=c[d];return f;},a131d(a,b);}export{};