@maka/maka-cli 4.12.19 → 4.12.20

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/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/collection.js +1 -1
  109. package/bundle/obf/src/generators/component.js +1 -1
  110. package/bundle/obf/src/generators/config.js +1 -1
  111. package/bundle/obf/src/generators/dbc.js +1 -1
  112. package/bundle/obf/src/generators/dockerfile.js +1 -1
  113. package/bundle/obf/src/generators/hook.js +1 -1
  114. package/bundle/obf/src/generators/kits/_index.js +1 -1
  115. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  116. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  117. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  118. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  119. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/kit.js +1 -1
  123. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  127. package/bundle/obf/src/generators/layout.js +1 -1
  128. package/bundle/obf/src/generators/maka.gen.js +1 -1
  129. package/bundle/obf/src/generators/methods.js +1 -1
  130. package/bundle/obf/src/generators/package.js +1 -1
  131. package/bundle/obf/src/generators/page.js +1 -1
  132. package/bundle/obf/src/generators/publish.js +1 -1
  133. package/bundle/obf/src/generators/route.js +1 -1
  134. package/bundle/obf/src/generators/service.js +1 -1
  135. package/bundle/obf/src/generators/services/_index.js +1 -1
  136. package/bundle/obf/src/generators/services/openssl.js +1 -1
  137. package/bundle/obf/src/generators/services/translation.js +1 -1
  138. package/bundle/obf/src/maka.js +1 -1
  139. package/bundle/obf/src/tool.js +1 -1
  140. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  141. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  142. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  143. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  144. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  145. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  146. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  147. package/bundle/obf/src/tools/https/https.class.js +1 -1
  148. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  149. package/bundle/obf/src/tools/log/log.class.js +1 -1
  150. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/options/options.class.js +1 -1
  152. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  153. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  154. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  156. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  158. package/package.json +1 -1
@@ -1 +1 @@
1
- const a132A=a132d;(function(a,b){const y=a132d,c=a();while(!![]){try{const d=-parseInt(y(0x167))/0x1+parseInt(y(0x15d))/0x2+parseInt(y(0x168))/0x3*(parseInt(y(0x14b))/0x4)+-parseInt(y(0x172))/0x5*(-parseInt(y(0x148))/0x6)+-parseInt(y(0x13d))/0x7+-parseInt(y(0x165))/0x8+-parseInt(y(0x176))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xc3757));const a132b=(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;};}()),a132a=a132b(this,function(){const z=a132d;return a132a['toString']()[z(0x15e)](z(0x162))[z(0x170)]()['constructor'](a132a)[z(0x15e)](z(0x162));});a132a();import a132e from'path';import{Generator}from'../generator.js';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x133;let f=c[d];return f;},a132d(a,b);}function a132c(){const J=['cwd','3011940dxmrKv','rewriteDestinationPathForEngine','\x20to\x20','react','imports','Invalid\x20directory\x20option\x20\x22','true','includes','Scaffolding\x20for\x20a\x20Route.','Adding\x20route\x20','join','pathFromProject','create','baseDir','warn','\x20already\x20exists.\x20Skipping.','config','withHook','fileContainsString','routes.js','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','url','MasterLayout','route','features','length','filter','templateName','2300277qGMieH','getMakaProjectConfig','const\x20publicRoutes\x20=\x20(<>','root','withTranslations','layouts','replace','templateContent','</Router>','Valid\x20options\x20are:\x20','map','9377418rePcMC','<Route','<Router','1379276EKQrrV','injectIntoFile','pop','withValue','\x22*\x22','vanilla','engines','hooks','pages','error','private','maka\x20g:route\x20pages/about','const\x20privateRoutes\x20=\x20(<>','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','indexOf','\x0a\x09\x09','only','injectAfterLineNumber','351312iXYhJZ','search','info','/imports/ui/','startup','(((.+)+)+)+$','pathFromApp','maka\x20g:route\x20todosIndex\x20todos','401728nxmNeB','readFileLines','569292rmjrQU','3uoJfKB','route/route.js','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','client','fsi','layout','/imports/ui/pages','split','toString','injectAtEndOfFile','5IXBLil','resourceName','maka\x20g:route\x20pages/lists/listIndex\x20lists'];a132c=function(){return J;};return a132c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a132A(0x182)]({'name':a132A(0x138),'aliases':aliases,'validOpts':[a132A(0x155),a132A(0x16d),a132A(0x15b),a132A(0x175),a132A(0x186),a132A(0x140),a132A(0x187),a132A(0x136),'baseDir'],'usage':a132A(0x135),'shortDesc':a132A(0x17e),'examples':[a132A(0x164),'maka\x20g:route\x20todosEdit\x20todos/:id/edit',a132A(0x16a),a132A(0x174),a132A(0x156)]},async function(a,b){const B=a132A;try{const c=[B(0x152),'components',B(0x153),B(0x142)];if(b['baseDir']&&!c[B(0x17d)](b['baseDir'])){Log[B(0x154)](B(0x17b)+b[B(0x183)]+'\x22'),Log[B(0x154)](B(0x146)+c['join'](',\x20'));throw new UsageError();}const d=this[B(0x16c)][B(0x13e)]();await this['fsi'][B(0x14e)](d,async()=>{const C=B,f=b[C(0x155)]??![];let g=b['resourceName'][C(0x16f)]('/')[C(0x14d)]();if(!g){Log[C(0x154)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h=b['url']?'/'+b[C(0x136)]:'/'+b[C(0x173)];a[C(0x13a)]>0x1&&(h='/'+a[C(0x13b)](function(n){return n!=='/';})['join']('/')['toLowerCase']());h=h['replace'](/\/\//g,'/');b[C(0x16d)]&&(b[C(0x16d)]=camelCase(b[C(0x16d)]));const i=b[C(0x183)]?C(0x160)+b[C(0x183)]:C(0x16e),j=a132e[C(0x180)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[C(0x16d)]||C(0x137),'templatePath':j,'templateName':pascalCase(g),'client':d[C(0x151)]['client'],'newForm':![],'withTranslations':d[C(0x139)][C(0x141)]};f&&(k[C(0x16d)]='PrivateLayout');let l,m;if(d[C(0x151)][C(0x16b)]===C(0x179)){if(d[C(0x151)]['ssr']===C(0x17c)){const r=this[C(0x16c)][C(0x163)]({'pathParts':['imports',C(0x161),'lib',C(0x134)]});l=this[C(0x16c)][C(0x177)]({'pathParts':[r],'config':d});}else{const s=this[C(0x16c)]['pathFromApp']({'pathParts':[C(0x17a),C(0x161),C(0x16b),C(0x134)]});l=this[C(0x16c)][C(0x177)]({'pathParts':[s],'config':d});}const n=await this[C(0x16c)][C(0x133)](l,g);if(n){Log[C(0x184)]('Route\x20'+g+C(0x185));return;}else{const t=this[C(0x16c)][C(0x181)](l);Log[C(0x15f)](C(0x17f)+g+C(0x178)+l[C(0x143)](t,''));}const o=this[C(0x16c)][C(0x166)](l)[C(0x147)]((u,v)=>{const D=C;return u[D(0x17d)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})[C(0x13b)](u=>u!==null);let p=this[C(0x16c)]['readFileLines'](l)[C(0x147)]((u,v)=>{const E=C;return u[E(0x17d)](E(0x13f))?v+0x1:null;})['filter'](u=>u!==null),q=this[C(0x16c)]['readFileLines'](l)[C(0x147)]((u,v)=>{const F=C;return u[F(0x17d)](F(0x157))?v+0x1:null;})[C(0x13b)](u=>u!==null);p[C(0x13a)]>0x0&&q[C(0x13a)]>0x0&&(k['newForm']=!![]);m=this[C(0x16c)][C(0x144)]({'srcPath':'route/route.js','framework':C(0x179),'context':k,'config':d});if(p[C(0x13a)]>0x0||q[C(0x13a)]>0x0){this[C(0x16c)][C(0x15c)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[C(0x13a)]>0x0)q=this[C(0x16c)][C(0x166)](l)['map']((u,v)=>{const G=C;return u[G(0x17d)](G(0x157))?v+0x1:null;})['filter'](u=>u!==null),this[C(0x16c)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[C(0x13c)]+'}','lineNumber':q[0x0]});else p[C(0x13a)]>0x0?(p=this[C(0x16c)]['readFileLines'](l)[C(0x147)]((u,v)=>{const H=C;return u[H(0x17d)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[C(0x13b)](u=>u!==null),this[C(0x16c)][C(0x15c)]({'filePath':l,'content':'\x09{'+k[C(0x13c)]+'}','lineNumber':p[0x0]})):Log['warn'](C(0x158)+l);}else{const u=this[C(0x16c)]['readFileLines'](l)['map'](x=>{const I=C;return x[I(0x17d)](I(0x14f));}),v=u[C(0x159)](!![])>-0x1,w=v?C(0x149):C(0x145);await this['fsi'][C(0x14c)]({'filePath':l,'content':C(0x15a)+m+C(0x15a),'begin':C(0x14a),'end':w});}}else{if(d[C(0x151)][C(0x16b)]===C(0x150)){const x=this[C(0x16c)][C(0x163)]({'pathParts':['imports',C(0x161),C(0x16b),'routes.js']});l=this[C(0x16c)][C(0x177)]({'pathParts':[x],'config':d}),m=this['fsi']['templateContent']({'srcPath':C(0x169),'context':k}),await this[C(0x16c)][C(0x171)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[B(0x154)](f);}});
1
+ const a132B=a132d;(function(a,b){const y=a132d,c=a();while(!![]){try{const d=parseInt(y(0x1e7))/0x1*(-parseInt(y(0x1e9))/0x2)+parseInt(y(0x1ed))/0x3*(-parseInt(y(0x1b5))/0x4)+-parseInt(y(0x1bb))/0x5+-parseInt(y(0x1ee))/0x6+parseInt(y(0x1c4))/0x7*(-parseInt(y(0x1ae))/0x8)+parseInt(y(0x1c3))/0x9+parseInt(y(0x1e8))/0xa*(parseInt(y(0x1c6))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0xd871a));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a132d;if(c){const e=c[z(0x1a6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const A=a132d;return a132a['toString']()['search']('(((.+)+)+)+$')[A(0x1b8)]()[A(0x1ab)](a132a)[A(0x1a2)](A(0x1db));});function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x1a0;let f=c[d];return f;},a132d(a,b);}a132a();import a132e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];function a132c(){const J=['route/route.js','components','Scaffolding\x20for\x20a\x20Route.','\x22*\x22','Route\x20','fsi','readFileLines','cwd','templateContent','routes.js','(((.+)+)+)+$','baseDir','maka\x20g:route\x20todosIndex\x20todos','indexOf','toLowerCase','templateName','imports','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','const\x20privateRoutes\x20=\x20(<>','pathFromProject','join','lib','248641LjDViI','21820hmRDdB','14IfLCTL','warn','maka\x20g:route\x20pages/about','const\x20publicRoutes\x20=\x20(<>','613017BmldyM','1431984lJvAfd','layouts','config','injectAtEndOfFile','pathFromApp','resourceName','filter','replace','rewriteDestinationPathForEngine','<Router','search','engines','dir','Adding\x20route\x20','apply','length','fileContainsString','map','url','constructor','MasterLayout','withHook','42968HWKFFk','client','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','layout','route','info','4iAeGIb','getMakaProjectConfig','maka\x20g:route\x20pages/lists/listIndex\x20lists','toString','\x0a\x09\x09','react','3302405EDeQdS','PrivateLayout','root','includes','maka\x20g:route\x20todosEdit\x20todos/:id/edit','only','\x20to\x20','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','9552780wQWwjN','1407CdPfWq','Valid\x20options\x20are:\x20','18898AMWdhM','hooks','vanilla','startup','features','error','pop','injectAfterLineNumber','pages','create','private'];a132c=function(){return J;};return a132c();}Generator[a132B(0x1cf)]({'name':a132B(0x1b3),'aliases':aliases,'validOpts':[a132B(0x1d0),a132B(0x1b2),a132B(0x1c0),a132B(0x1d8),a132B(0x1f0),a132B(0x1bd),a132B(0x1ad),a132B(0x1aa),a132B(0x1dc)],'usage':a132B(0x1e2),'shortDesc':a132B(0x1d3),'examples':[a132B(0x1dd),a132B(0x1bf),a132B(0x1c2),a132B(0x1b7),a132B(0x1eb)]},async function(a,b){const C=a132B;try{const c=[C(0x1c7),C(0x1d2),C(0x1ce),C(0x1ef)];if(b[C(0x1dc)]&&!c[C(0x1be)](b['baseDir'])){Log[C(0x1cb)]('Invalid\x20directory\x20option\x20\x22'+b[C(0x1dc)]+'\x22'),Log[C(0x1cb)](C(0x1c5)+c[C(0x1e5)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0x1b6)]();await this[C(0x1d6)]['withValue'](d,async()=>{const D=C,f=b[D(0x1d0)]??![];let g=b[D(0x1f3)]['split']('/')[D(0x1cc)]();if(!g){Log[D(0x1cb)](D(0x1b1));throw new UsageError();}g=pascalCase(g);let h=b[D(0x1aa)]?'/'+b[D(0x1aa)]:'/'+b[D(0x1f3)];a['length']>0x1&&(h='/'+a[D(0x1f4)](function(n){return n!=='/';})[D(0x1e5)]('/')[D(0x1df)]());h=h[D(0x1f5)](/\/\//g,'/');b[D(0x1b2)]&&(b[D(0x1b2)]=camelCase(b['layout']));const i=b['baseDir']?'/imports/ui/'+b['baseDir']:'/imports/ui/pages',j=a132e['join'](i,b[D(0x1a4)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b['layout']||D(0x1ac),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x1a3)][D(0x1af)],'newForm':![],'withTranslations':d[D(0x1ca)]['withTranslations']};f&&(k['layout']=D(0x1bc));let l,m;if(d['engines'][D(0x1af)]===D(0x1ba)){if(d['engines']['ssr']==='true'){const r=this[D(0x1d6)][D(0x1f2)]({'pathParts':[D(0x1e1),'startup',D(0x1e6),D(0x1da)]});l=this[D(0x1d6)][D(0x1a0)]({'pathParts':[r],'config':d});}else{const s=this['fsi']['pathFromApp']({'pathParts':[D(0x1e1),D(0x1c9),D(0x1af),D(0x1da)]});l=this[D(0x1d6)][D(0x1a0)]({'pathParts':[s],'config':d});}const n=await this['fsi'][D(0x1a8)](l,g);if(n){Log[D(0x1ea)](D(0x1d5)+g+'\x20already\x20exists.\x20Skipping.');return;}else{const t=this[D(0x1d6)][D(0x1e4)](l);Log[D(0x1b4)](D(0x1a5)+g+D(0x1c1)+l[D(0x1f5)](t,''));}const o=this[D(0x1d6)][D(0x1d7)](l)['map']((u,v)=>{const E=D;return u[E(0x1be)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this[D(0x1d6)][D(0x1d7)](l)[D(0x1a9)]((u,v)=>{const F=D;return u[F(0x1be)](F(0x1ec))?v+0x1:null;})[D(0x1f4)](u=>u!==null),q=this[D(0x1d6)][D(0x1d7)](l)[D(0x1a9)]((u,v)=>{const G=D;return u[G(0x1be)](G(0x1e3))?v+0x1:null;})[D(0x1f4)](u=>u!==null);p[D(0x1a7)]>0x0&&q[D(0x1a7)]>0x0&&(k['newForm']=!![]);m=this[D(0x1d6)][D(0x1d9)]({'srcPath':D(0x1d1),'framework':D(0x1ba),'context':k,'config':d});if(p[D(0x1a7)]>0x0||q[D(0x1a7)]>0x0){this[D(0x1d6)]['injectAfterLineNumber']({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this['fsi'][D(0x1d7)](l)[D(0x1a9)]((u,v)=>{const H=D;return u[H(0x1be)](H(0x1e3))?v+0x1:null;})['filter'](u=>u!==null),this[D(0x1d6)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x1e0)]+'}','lineNumber':q[0x0]});else p[D(0x1a7)]>0x0?(p=this['fsi'][D(0x1d7)](l)['map']((u,v)=>{return u['includes']('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x1f4)](u=>u!==null),this[D(0x1d6)][D(0x1cd)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':p[0x0]})):Log['warn'](D(0x1b0)+l);}else{const u=this[D(0x1d6)][D(0x1d7)](l)['map'](x=>{const I=D;return x['includes'](I(0x1d4));}),v=u[D(0x1de)](!![])>-0x1,w=v?'<Route':'</Router>';await this[D(0x1d6)]['injectIntoFile']({'filePath':l,'content':D(0x1b9)+m+D(0x1b9),'begin':D(0x1a1),'end':w});}}else{if(d['engines'][D(0x1af)]===D(0x1c8)){const x=this['fsi'][D(0x1f2)]({'pathParts':['imports','startup',D(0x1af),D(0x1da)]});l=this[D(0x1d6)]['rewriteDestinationPathForEngine']({'pathParts':[x],'config':d}),m=this[D(0x1d6)][D(0x1d9)]({'srcPath':'route/route.js','context':k}),await this[D(0x1d6)][D(0x1f1)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
@@ -1 +1 @@
1
- const a133m=a133d;function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x1a3;let f=c[d];return f;},a133d(a,b);}(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0x1c7))/0x1*(-parseInt(j(0x1bc))/0x2)+-parseInt(j(0x1b4))/0x3+parseInt(j(0x1a9))/0x4*(-parseInt(j(0x1aa))/0x5)+-parseInt(j(0x1a6))/0x6*(-parseInt(j(0x1c3))/0x7)+parseInt(j(0x1ca))/0x8*(parseInt(j(0x1b8))/0x9)+parseInt(j(0x1c5))/0xa*(parseInt(j(0x1b9))/0xb)+parseInt(j(0x1cb))/0xc*(parseInt(j(0x1a5))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xcab23));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x1a3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0x1bb)]()['search'](l(0x1c1))[l(0x1bb)]()['constructor'](a133a)[l(0x1b2)](l(0x1c1));});a133a();import{camelCase,paramCase,pascalCase}from'change-case';function a133c(){const p=['installNpmPackage','(((.+)+)+)+$','withValue','119kxIgBf','template','20liuTAn','pathFromApp','10NGskkV','type','maka\x20{generate,\x20g}:{service}\x20<resource-name>','5816tVEmnG','12cAupyo','apply','maka\x20g:svc\x20service-logger\x20--type=logger','5074251QdXrSD','222546XQdkvN','lib','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','4NvPNWS','325435fvpkZZ','services','resourceName','imports','winston','error','fsi','create','search','getMakaProjectConfig','4330713LTBSUo','logger','engines','Installing\x20winston','13311twAirt','8305737RsYVgX','tsx','toString','253468KkbChj','winston\x20setimmediate','startup','service/logger/logger.js'];a133c=function(){return p;};return a133c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a133m(0x1b1)]({'name':'service','aliases':['svc'],'usage':a133m(0x1c9),'shortDesc':a133m(0x1a8),'requiredOpts':[{'name':a133m(0x1c8),'values':[a133m(0x1b5)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a133m(0x1a4)]},async function(a,b){const n=a133m;try{const c=this[n(0x1b0)][n(0x1b3)]();await this['fsi'][n(0x1c2)](c,async()=>{const o=n,d=this['fsi'][o(0x1c6)]({}),f=paramCase(b[o(0x1ac)]),g={'name':pascalCase(b[o(0x1ac)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0x1c8)],'engine':c[o(0x1b6)]['js'],'noRename':!![]};let h='js';c[o(0x1b6)]['js']===o(0x1ba)&&(h='ts');if(b['type']===o(0x1b5)){!this[o(0x1b0)]['checkNpmPackage'](o(0x1ae))&&await this['fsi'][o(0x1c0)](o(0x1bd),{'cwd':d,'msg':o(0x1b7)});const i=this['fsi'][o(0x1c6)]({'pathParts':[o(0x1ad),o(0x1be),o(0x1a7),o(0x1ab),f+'.'+h]});await this[o(0x1b0)][o(0x1c4)]({'srcPath':o(0x1bf),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x1af)](d);}});
1
+ function a133c(){const p=['2334NayCVr','Installing\x20winston','fsi','getMakaProjectConfig','153tqtxVk','startup','type','engines','error','33742lQmlZT','67RTsWJr','toString','2606568zNVqjd','logger','(((.+)+)+)+$','7386785HwjRpR','pathFromApp','imports','svc','template','2163EbIlUE','checkNpmPackage','resourceName','2314456XhaeKf','withValue','winston\x20setimmediate','lib','service/logger/logger.js','43013790ZgNibr','476392cPQHzV','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','constructor','search','apply','maka\x20{generate,\x20g}:{service}\x20<resource-name>','winston'];a133c=function(){return p;};return a133c();}function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x7a;let f=c[d];return f;},a133d(a,b);}const a133m=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=-parseInt(j(0x96))/0x1*(-parseInt(j(0x95))/0x2)+parseInt(j(0x98))/0x3+parseInt(j(0x7f))/0x4+parseInt(j(0x9b))/0x5+-parseInt(j(0x8c))/0x6*(-parseInt(j(0x7c))/0x7)+parseInt(j(0x85))/0x8*(parseInt(j(0x90))/0x9)+-parseInt(j(0x84))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0xd8643));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0x89)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0x97)]()[l(0x88)](l(0x9a))['toString']()[l(0x87)](a133a)[l(0x88)](l(0x9a));});a133a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':'service','aliases':[a133m(0x7a)],'usage':a133m(0x8a),'shortDesc':a133m(0x86),'requiredOpts':[{'name':a133m(0x92),'values':[a133m(0x99)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a133m;try{const c=this[n(0x8e)][n(0x8f)]();await this[n(0x8e)][n(0x80)](c,async()=>{const o=n,d=this['fsi']['pathFromApp']({}),f=paramCase(b[o(0x7e)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x7e)]),'type':b['type'],'engine':c[o(0x93)]['js'],'noRename':!![]};let h='js';c[o(0x93)]['js']==='tsx'&&(h='ts');if(b[o(0x92)]==='logger'){!this['fsi'][o(0x7d)](o(0x8b))&&await this['fsi']['installNpmPackage'](o(0x81),{'cwd':d,'msg':o(0x8d)});const i=this['fsi'][o(0x9c)]({'pathParts':[o(0x9d),o(0x91),o(0x82),'services',f+'.'+h]});await this[o(0x8e)][o(0x7b)]({'srcPath':o(0x83),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x94)](d);}});
@@ -1 +1 @@
1
- function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x96;var f=c[d];return f;},a134d(a,b);}(function(a,b){var f=a134d,c=a();while(!![]){try{var d=parseInt(f(0x97))/0x1*(parseInt(f(0x9a))/0x2)+-parseInt(f(0x99))/0x3+-parseInt(f(0x9d))/0x4*(parseInt(f(0xa1))/0x5)+-parseInt(f(0xa0))/0x6+parseInt(f(0xa3))/0x7+-parseInt(f(0x9e))/0x8+-parseInt(f(0x9c))/0x9*(-parseInt(f(0x98))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0x559d6));function a134c(){var h=['search','1720019XCizhf','(((.+)+)+)+$','3fzNltP','25730ByrIdR','1849722zifhPB','107266BCIDYY','constructor','5310bBDvxp','1769448bSfWKE','463240HDctyl','toString','2743002jUsfcK','5FCxGRk'];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[g(0x9f)]()[g(0xa2)](g(0x96))[g(0x9f)]()[g(0x9b)](a134a)[g(0xa2)](g(0x96));});a134a();import'./translation.js';import'./openssl.js';
1
+ (function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x1d3))/0x1*(parseInt(f(0x1d9))/0x2)+parseInt(f(0x1d7))/0x3+-parseInt(f(0x1d8))/0x4*(parseInt(f(0x1db))/0x5)+-parseInt(f(0x1cf))/0x6*(parseInt(f(0x1dc))/0x7)+-parseInt(f(0x1d6))/0x8+-parseInt(f(0x1d0))/0x9+parseInt(f(0x1d5))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xbffea));function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x1cf;var f=c[d];return f;},a134d(a,b);}function a134c(){var i=['(((.+)+)+)+$','75RJgdsR','189uWIcpp','112890lZRADl','6341841kfuSHo','apply','search','412cBJBOx','toString','22200250vhbaEp','2155880gBlEyI','4634553frUFvl','163796zYOOtT','4282RiiZQm'];a134c=function(){return i;};return a134c();}var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0x1d1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a[h(0x1d4)]()[h(0x1d2)](h(0x1da))['toString']()['constructor'](a134a)[h(0x1d2)]('(((.+)+)+)+$');});a134a();import'./translation.js';import'./openssl.js';
@@ -1 +1 @@
1
- const a135k=a135d;function a135c(){const n=['openssl.conf','1459270FywgUd','constructor','11apdWhs','1790riPzXU','47664bVlKYd','8OqocLW','60gBgEqH','sslconfig','3996832vWUDeh','openssl/openssl.conf','Generate\x20a\x20new\x20openssl\x20config\x20file','32543WNvwQM','env','(((.+)+)+)+$','create','1lrVtDz','2016418zNEWom','fsi','1459443KxswMm','template','error','toString','maka\x20g:sslconfig\x20--env\x20dev','join','getGlobalConfig','getAppConfigPath','5657844wvsknm','maka\x20{generate,\x20g}:sslconfig','search','_keys'];a135c=function(){return n;};return a135c();}(function(a,b){const i=a135d,c=a();while(!![]){try{const d=-parseInt(i(0x1ce))/0x1*(parseInt(i(0x1cf))/0x2)+-parseInt(i(0x1d1))/0x3*(-parseInt(i(0x1c4))/0x4)+-parseInt(i(0x1bf))/0x5+parseInt(i(0x1c5))/0x6*(-parseInt(i(0x1ca))/0x7)+parseInt(i(0x1c7))/0x8+-parseInt(i(0x1c3))/0x9*(-parseInt(i(0x1c2))/0xa)+parseInt(i(0x1c1))/0xb*(-parseInt(i(0x1d9))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x9318e));const a135b=(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;};}()),a135a=a135b(this,function(){const j=a135d;return a135a['toString']()[j(0x1db)](j(0x1cc))[j(0x1d4)]()[j(0x1c0)](a135a)[j(0x1db)](j(0x1cc));});a135a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a135e from'path';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x1be;let f=c[d];return f;},a135d(a,b);}Generator[a135k(0x1cd)]({'name':a135k(0x1c6),'usage':a135k(0x1da),'shortDesc':a135k(0x1c9),'noNeedResource':!![],'requiredOpts':[a135k(0x1cb)],'examples':[a135k(0x1d5)],'validOpts':[]},async function(a,b){const l=a135k;try{const c=await this[l(0x1d0)]['getMakaProjectConfig'](),d=await this[l(0x1d0)][l(0x1d7)](),f=this[l(0x1d0)][l(0x1d8)](b[l(0x1cb)]),g=a135e[l(0x1d6)](f,l(0x1dc),l(0x1be));await this[l(0x1d0)]['withValue'](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this['fsi'][m(0x1d2)]({'srcPath':m(0x1c8),'destPath':g,'framework':'service','context':h,'config':c});});}catch(h){Log[l(0x1d3)](h);}});
1
+ const a135l=a135d;(function(a,b){const i=a135d,c=a();while(!![]){try{const d=-parseInt(i(0x168))/0x1+-parseInt(i(0x163))/0x2+-parseInt(i(0x160))/0x3*(-parseInt(i(0x157))/0x4)+parseInt(i(0x156))/0x5+parseInt(i(0x15b))/0x6+parseInt(i(0x152))/0x7*(parseInt(i(0x164))/0x8)+-parseInt(i(0x162))/0x9*(parseInt(i(0x14c))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0xefecb));function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x14c;let f=c[d];return f;},a135d(a,b);}function a135c(){const o=['search','805STHAIu','getMakaProjectConfig','error','openssl.conf','7934465oozasY','5834856PdWvAx','getAppConfigPath','service','join','8574804zgDYjj','env','constructor','maka\x20{generate,\x20g}:sslconfig','template','3vmXtgR','create','9FAutyx','1128464JiKPzR','98448rFJbJu','openssl/openssl.conf','Generate\x20a\x20new\x20openssl\x20config\x20file','fsi','189300WuLIWh','41536680AUkDsV','appName','toString','apply','(((.+)+)+)+$'];a135c=function(){return o;};return a135c();}const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a135d;if(c){const e=c[j(0x14f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const k=a135d;return a135a[k(0x14e)]()[k(0x151)](k(0x150))[k(0x14e)]()[k(0x15d)](a135a)[k(0x151)](k(0x150));});a135a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a135e from'path';Generator[a135l(0x161)]({'name':'sslconfig','usage':a135l(0x15e),'shortDesc':a135l(0x166),'noNeedResource':!![],'requiredOpts':[a135l(0x15c)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a135l;try{const c=await this[m(0x167)][m(0x153)](),d=await this[m(0x167)]['getGlobalConfig'](),f=this[m(0x167)][m(0x158)](b[m(0x15c)]),g=a135e[m(0x15a)](f,'_keys',m(0x155));await this[m(0x167)]['withValue'](c,async()=>{const n=m,h={'app':d[n(0x14d)],'noRename':!![]};await this[n(0x167)][n(0x15f)]({'srcPath':n(0x165),'destPath':g,'framework':n(0x159),'context':h,'config':c});});}catch(h){Log[m(0x154)](h);}});
@@ -1 +1 @@
1
- const a136A=a136d;(function(a,b){const x=a136d,c=a();while(!![]){try{const d=parseInt(x(0x15a))/0x1+-parseInt(x(0x16c))/0x2+-parseInt(x(0x14a))/0x3+-parseInt(x(0x169))/0x4+-parseInt(x(0x178))/0x5+-parseInt(x(0x17e))/0x6+parseInt(x(0x155))/0x7*(parseInt(x(0x166))/0x8);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x8eb31));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a136d;if(c){const e=c[y(0x170)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const z=a136d;return a136a[z(0x148)]()[z(0x179)](z(0x182))[z(0x148)]()[z(0x160)](a136a)[z(0x179)](z(0x182));});a136a();import{Generator}from'../../generator.js';function a136c(){const D=['translations','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','appName','444540iZKppA','import\x20\x27../lib/services/translations/i18n\x27;','Generate\x20a\x20new\x20locale\x20translation','pathFromApp','(((.+)+)+)+$','getGlobalConfig','export\x20{\x20default\x20as\x20','ssr','i18next\x20i18next-browser-languagedetector\x20react-i18next','translation','checkNpmPackage','toString','error','1469733hvTatR','warn','lang','rewriteDestinationPathForEngine','exit','imports','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','root','services','features.withTranslations','i18n/index.js','14YpsVtm','service','template','i18n/i18n.js','maka\x20g:translation\x20--lang=fr','1049169LPCGIo','index.js','client','fsi','grep','withValue','constructor','maka\x20{generate,\x20g}:translation','i18next','locales','setProjectConfig','findAppDirectory','10264760QhmLuD','i18n.js','injectAtBeginningOfFile','3875716sFAiAF','maka\x20g:translation\x20--lang=de','engines','731390zoghzA','index.','import\x20\x27../lib/services/translations/i18n\x27;\x0a','Locale\x20already\x20exported:\x20','apply','maka\x20g:translation\x20--lang=en\x20(default)','lib','startup','readFileSync','true','isFile','getMakaProjectConfig','5661185jQDOCW','search','Locale\x20already\x20defined:\x20'];a136c=function(){return D;};return a136c();}function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x145;let f=c[d];return f;},a136d(a,b);}import{Log}from'../../tools/log/log.class.js';import a136e from'fs';Generator['create']({'name':a136A(0x146),'usage':a136A(0x161),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a136A(0x14c),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a136A(0x180),'description':a136A(0x150),'examples':[a136A(0x171),a136A(0x159),a136A(0x16a)],'validOpts':[]},async function(a,b){const B=a136A;try{const c=this[B(0x15d)][B(0x177)](),d=this[B(0x15d)][B(0x183)](),f=this[B(0x15d)][B(0x165)]();await this[B(0x15d)][B(0x15f)](c,async()=>{const C=B;try{!b[C(0x14c)]&&(b[C(0x14c)]='en');!b[C(0x151)]&&!this['fsi'][C(0x147)](C(0x162))&&(Log[C(0x14b)](C(0x17c)),this['fsi']['installNpmPackage'](C(0x145),{'cwd':f}),this[C(0x15d)][C(0x164)](C(0x153),!![]));const g=this['fsi'][C(0x181)]({'pathParts':[C(0x14f),C(0x173),C(0x15c),C(0x15b)]}),h=this[C(0x15d)][C(0x14d)]({'pathParts':[g],'config':c}),i=this[C(0x15d)][C(0x15e)](a136e['readFileSync'](h)[C(0x148)](),C(0x17f))[0x0]&&!![];if(c[C(0x16b)][C(0x185)]===C(0x175)){!i&&this['fsi'][C(0x168)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this[C(0x15d)][C(0x181)]({'pathParts':['imports','startup','server',C(0x15b)]}),u=this[C(0x15d)][C(0x14d)]({'pathParts':[t],'config':c}),v=this[C(0x15d)]['grep'](a136e[C(0x174)](u)[C(0x148)](),C(0x17f))[0x0]&&!![];!v&&this['fsi'][C(0x168)]({'filePath':u,'content':C(0x16e)});}else!i&&this[C(0x15d)]['injectAtBeginningOfFile']({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x17d)],'config':c},k=this[C(0x15d)][C(0x181)]({'pathParts':[C(0x14f),C(0x173),'lib','services','translations',C(0x167)]}),l=this[C(0x15d)][C(0x176)](this[C(0x15d)][C(0x14d)]({'pathParts':[k],'config':c}));!l&&await this['fsi'][C(0x157)]({'srcPath':C(0x158),'destPath':k,'framework':C(0x156),'context':j,'config':c});const m=this[C(0x15d)][C(0x181)]({'pathParts':[C(0x14f),'startup',C(0x172),C(0x152),C(0x17b),C(0x163),b[C(0x14c)]+'.js']}),n=this[C(0x15d)][C(0x14d)]({'pathParts':[m],'config':c}),o=this[C(0x15d)][C(0x176)](n);!o?await this[C(0x15d)][C(0x157)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0x156),'context':j,'config':c}):Log['warn'](C(0x17a)+n);const p=this['fsi'][C(0x181)]({'pathParts':[C(0x14f),C(0x173),C(0x172),C(0x152),C(0x17b),'locales',C(0x16d)+c[C(0x16b)]['js']]}),q=this[C(0x15d)][C(0x14d)]({'pathParts':[p],'config':c}),r=this['fsi'][C(0x176)](q);!r&&await this[C(0x15d)][C(0x157)]({'srcPath':C(0x154),'destPath':p,'framework':C(0x156),'context':j,'config':c});const s=this[C(0x15d)][C(0x15e)](a136e[C(0x174)](p)[C(0x148)](),'default\x20as\x20'+b[C(0x14c)])[0x0]&&!![];!s?await this[C(0x15d)]['injectAtEndOfFile']({'filePath':p,'content':C(0x184)+b['lang']+'\x20}\x20from\x20\x27./'+b['lang']+'\x27;'}):Log[C(0x14b)](C(0x16f)+p);}catch(w){Log[C(0x149)](w),process[C(0x14e)](0x1);}});}catch(g){Log[B(0x149)](g),process[B(0x14e)](0x1);}});
1
+ function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a136d(a,b);}const a136A=a136d;(function(a,b){const x=a136d,c=a();while(!![]){try{const d=parseInt(x(0x1d7))/0x1+-parseInt(x(0x1e8))/0x2*(-parseInt(x(0x1cf))/0x3)+-parseInt(x(0x1de))/0x4+-parseInt(x(0x1f2))/0x5*(parseInt(x(0x1e9))/0x6)+parseInt(x(0x1c4))/0x7+parseInt(x(0x1d6))/0x8+-parseInt(x(0x1bd))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0xd9141));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a136d;if(c){const e=c[y(0x1c7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const z=a136d;return a136a[z(0x1c1)]()['search']('(((.+)+)+)+$')[z(0x1c1)]()['constructor'](a136a)[z(0x1c9)](z(0x1ce));});a136a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a136e from'fs';function a136c(){const D=['ssr','Locale\x20already\x20exported:\x20','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','13103100DBzzSh','lang','engines','installNpmPackage','toString','lib','maka\x20g:translation\x20--lang=de','9486379bUjSdL','\x0a\x20\x20Generate\x20a\x20new\x20locale\x20translation\x20file.\x0a\x0a\x20\x20\x20\x20--lang\x20\x20The\x20language\x20code\x20for\x20the\x20new\x20locale\x20file.\x20(i.e.\x20en,\x20fr,\x20de)\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20and\x20must\x20be\x20the\x20two\x20character\x20language\x20code.\x0a\x20\x20','root','apply','injectAtEndOfFile','search','template','create','translation','getMakaProjectConfig','(((.+)+)+)+$','2294562RVFSAL','services','export\x20{\x20default\x20as\x20','pathFromApp','translations','default\x20as\x20','Generate\x20a\x20new\x20locale\x20translation','3297888PmVrTj','962116zDpChV','i18n/index.js','fsi','\x20}\x20from\x20\x27./','error','withValue','import\x20\x27../lib/services/translations/i18n\x27;\x0a','3579660CHXTzf','.js','i18next\x20i18next-browser-languagedetector\x20react-i18next','Locale\x20already\x20defined:\x20','startup','maka\x20{generate,\x20g}:translation','grep','index.','injectAtBeginningOfFile','appName','2cxqilo','30tvYbJg','rewriteDestinationPathForEngine','import\x20\x27../lib/services/translations/i18n\x27;','index.js','readFileSync','imports','service','isFile','client','254435aExGow','maka\x20g:translation\x20--lang=en\x20(default)','server','checkNpmPackage','exit','setProjectConfig','true','i18n/locales.js','warn','i18next','getGlobalConfig'];a136c=function(){return D;};return a136c();}Generator[a136A(0x1cb)]({'name':a136A(0x1cc),'usage':a136A(0x1e3),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a136A(0x1d5),'description':a136A(0x1c5),'examples':[a136A(0x1f3),'maka\x20g:translation\x20--lang=fr',a136A(0x1c3)],'validOpts':[]},async function(a,b){const B=a136A;try{const c=this[B(0x1d9)][B(0x1cd)](),d=this[B(0x1d9)][B(0x1fc)](),f=this[B(0x1d9)]['findAppDirectory']();await this[B(0x1d9)][B(0x1dc)](c,async()=>{const C=B;try{!b[C(0x1be)]&&(b[C(0x1be)]='en');!b[C(0x1c6)]&&!this[C(0x1d9)][C(0x1f5)](C(0x1fb))&&(Log[C(0x1fa)](C(0x1bc)),this[C(0x1d9)][C(0x1c0)](C(0x1e0),{'cwd':f}),this[C(0x1d9)][C(0x1f7)]('features.withTranslations',!![]));const g=this['fsi'][C(0x1d2)]({'pathParts':[C(0x1ee),C(0x1e2),C(0x1f1),C(0x1ec)]}),h=this[C(0x1d9)][C(0x1ea)]({'pathParts':[g],'config':c}),i=this[C(0x1d9)][C(0x1e4)](a136e['readFileSync'](h)[C(0x1c1)](),C(0x1eb))[0x0]&&!![];if(c[C(0x1bf)][C(0x1fd)]===C(0x1f8)){!i&&this[C(0x1d9)][C(0x1e6)]({'filePath':h,'content':C(0x1dd)});const t=this['fsi'][C(0x1d2)]({'pathParts':['imports','startup',C(0x1f4),C(0x1ec)]}),u=this[C(0x1d9)][C(0x1ea)]({'pathParts':[t],'config':c}),v=this[C(0x1d9)][C(0x1e4)](a136e[C(0x1ed)](u)[C(0x1c1)](),C(0x1eb))[0x0]&&!![];!v&&this[C(0x1d9)][C(0x1e6)]({'filePath':u,'content':C(0x1dd)});}else!i&&this[C(0x1d9)]['injectAtBeginningOfFile']({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d[C(0x1e7)],'config':c},k=this[C(0x1d9)][C(0x1d2)]({'pathParts':['imports','startup',C(0x1c2),C(0x1d0),C(0x1d3),'i18n.js']}),l=this[C(0x1d9)][C(0x1f0)](this[C(0x1d9)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[C(0x1d9)]['template']({'srcPath':'i18n/i18n.js','destPath':k,'framework':C(0x1ef),'context':j,'config':c});const m=this[C(0x1d9)][C(0x1d2)]({'pathParts':['imports',C(0x1e2),C(0x1c2),C(0x1d0),C(0x1d3),'locales',b[C(0x1be)]+C(0x1df)]}),n=this[C(0x1d9)][C(0x1ea)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x1f0)](n);!o?await this[C(0x1d9)][C(0x1ca)]({'srcPath':C(0x1f9),'destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x1fa)](C(0x1e1)+n);const p=this['fsi'][C(0x1d2)]({'pathParts':['imports',C(0x1e2),C(0x1c2),C(0x1d0),C(0x1d3),'locales',C(0x1e5)+c[C(0x1bf)]['js']]}),q=this['fsi'][C(0x1ea)]({'pathParts':[p],'config':c}),r=this[C(0x1d9)][C(0x1f0)](q);!r&&await this[C(0x1d9)][C(0x1ca)]({'srcPath':C(0x1d8),'destPath':p,'framework':C(0x1ef),'context':j,'config':c});const s=this['fsi'][C(0x1e4)](a136e[C(0x1ed)](p)[C(0x1c1)](),C(0x1d4)+b[C(0x1be)])[0x0]&&!![];!s?await this[C(0x1d9)][C(0x1c8)]({'filePath':p,'content':C(0x1d1)+b[C(0x1be)]+C(0x1da)+b['lang']+'\x27;'}):Log['warn'](C(0x1fe)+p);}catch(w){Log[C(0x1db)](w),process[C(0x1f6)](0x1);}});}catch(g){Log[B(0x1db)](g),process[B(0x1f6)](0x1);}});
@@ -1 +1 @@
1
- const a137m=a137d;(function(a,b){const j=a137d,c=a();while(!![]){try{const d=parseInt(j(0x1db))/0x1*(-parseInt(j(0x1c8))/0x2)+parseInt(j(0x1dc))/0x3+parseInt(j(0x1c7))/0x4+-parseInt(j(0x1cd))/0x5+-parseInt(j(0x1d5))/0x6*(-parseInt(j(0x1c3))/0x7)+parseInt(j(0x1c5))/0x8+parseInt(j(0x1d1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xdaa5c));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a137d;if(c){const e=c[k(0x1d3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const l=a137d;return a137a['toString']()[l(0x1cf)](l(0x1d0))[l(0x1d9)]()[l(0x1c9)](a137a)['search']('(((.+)+)+)+$');});a137a();import a137e from'minimist';import a137f from'os';import a137g from'path';import a137h from'humps';import a137i from'./commands/maka.cmd.js';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x1c2;let f=c[d];return f;},a137d(a,b);}import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a137m(0x1d8)]),__dirname=a137g['dirname'](__filename);global[a137m(0x1ce)]=__dirname;const total_memory=a137f[a137m(0x1d6)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a137m(0x1c6)](total_mem_in_mb),process[a137m(0x1d2)][a137m(0x1cc)]=a137m(0x1cb)+total_mem_in_mb,process[a137m(0x1d2)][a137m(0x1ca)]='1',process[a137m(0x1d2)][a137m(0x1c2)]='1';const argv=a137e(process[a137m(0x1da)][a137m(0x1dd)](0x2)),args=argv['_'],deepCopyArgv=JSON[a137m(0x1c4)](JSON[a137m(0x1de)](argv));function a137c(){const n=['NODE_NO_WARNINGS','1365cktMzu','parse','2864328PiieyD','floor','617480acFawD','2dGdOUt','constructor','BROWSERSLIST_IGNORE_OLD_DATA','--max-old-space-size=','TOOL_NODE_FLAGS','1401805nAlGdd','MAKA_COMMAND_PATH','search','(((.+)+)+)+$','13337694sGuDmD','env','apply','run','6594vLOsPM','totalmem','camelizeKeys','url','toString','argv','1660931PAclLX','1884570wEwbgz','slice','stringify'];a137c=function(){return n;};return a137c();}delete deepCopyArgv['_'];const opts=a137h[a137m(0x1d7)](deepCopyArgv);a137i[a137m(0x1d4)](args,opts);
1
+ const a137m=a137d;(function(a,b){const j=a137d,c=a();while(!![]){try{const d=-parseInt(j(0xfb))/0x1*(parseInt(j(0xe7))/0x2)+parseInt(j(0xfc))/0x3+-parseInt(j(0xe9))/0x4+-parseInt(j(0xf3))/0x5*(-parseInt(j(0xf2))/0x6)+parseInt(j(0xf5))/0x7+-parseInt(j(0xe8))/0x8+-parseInt(j(0xea))/0x9*(-parseInt(j(0x102))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xbd3cc));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a137d;if(c){const e=c[k(0x101)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const l=a137d;return a137a[l(0xf6)]()[l(0xef)](l(0xee))[l(0xf6)]()[l(0xec)](a137a)['search'](l(0xee));});function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xe6;let f=c[d];return f;},a137d(a,b);}a137a();import a137e from'minimist';import a137f from'os';function a137c(){const n=['floor','BROWSERSLIST_IGNORE_OLD_DATA','apply','13668810PyPaAS','parse','2349526FoYavy','5501128CMwjje','2632084kZzxEy','9QOqHoj','argv','constructor','stringify','(((.+)+)+)+$','search','run','env','6NUTqTx','6658265vhJNgE','MAKA_COMMAND_PATH','2894528tzkzbJ','toString','TOOL_NODE_FLAGS','totalmem','NODE_NO_WARNINGS','camelizeKeys','1fFZSjW','550509eQKEUm','url','--max-old-space-size='];a137c=function(){return n;};return a137c();}import a137g from'path';import a137h from'humps';import a137i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta[a137m(0xfd)]),__dirname=a137g['dirname'](__filename);global[a137m(0xf4)]=__dirname;const total_memory=a137f[a137m(0xf8)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a137m(0xff)](total_mem_in_mb),process[a137m(0xf1)][a137m(0xf7)]=a137m(0xfe)+total_mem_in_mb,process[a137m(0xf1)][a137m(0x100)]='1',process[a137m(0xf1)][a137m(0xf9)]='1';const argv=a137e(process[a137m(0xeb)]['slice'](0x2)),args=argv['_'],deepCopyArgv=JSON[a137m(0xe6)](JSON[a137m(0xed)](argv));delete deepCopyArgv['_'];const opts=a137h[a137m(0xfa)](deepCopyArgv);a137i[a137m(0xf0)](args,opts);
@@ -1 +1 @@
1
- const a138K=a138d;(function(a,b){const I=a138d,c=a();while(!![]){try{const d=-parseInt(I(0x18d))/0x1*(-parseInt(I(0x195))/0x2)+-parseInt(I(0x1a0))/0x3+parseInt(I(0x198))/0x4*(-parseInt(I(0x1c9))/0x5)+-parseInt(I(0x1b0))/0x6+-parseInt(I(0x1cd))/0x7+parseInt(I(0x1ce))/0x8+parseInt(I(0x1ca))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x78a25));const a138b=(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;};}()),a138a=a138b(this,function(){const J=a138d;return a138a[J(0x1b5)]()['search'](J(0x192))['toString']()[J(0x1a6)](a138a)[J(0x1af)](J(0x192));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x189;let f=c[d];return f;},a138d(a,b);}a138a();import a138e from'path';import a138f from'os';import a138g from'fs';const homeDir=a138f['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';import{Actions}from'./tools/actions/actions.class.js';function a138c(){const a3=['30418fCWLKJ','getAppProjectConfigs','name','isGenerator','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','(((.+)+)+)+$','win32','You\x20must\x20have\x20','16wsgijH','getShortName','Invalid\x20option:\x20','4SVCRgf','Local','domainLicense','assign','aliases','Please\x20provide\x20a\x20value\x20for\x20','shortDesc','user','1534986QKrfVQ','join','list','error','existsSync','guest','constructor','.meteor','cwd','every','isCommand','map','length','validateMakaSubscription','No\x20usage\x20provided.','search','1845750fznqEL','parent','string','examples','match','toString','ask','\x20installed\x20to\x20use\x20this\x20command.','No\x20description\x20provided.','charAt','Please\x20choose\x20a\x20valid\x20value\x20for\x20','validateEngines','validateMeteorInstall','config','validateMakaProject','Please\x20choose\x20an\x20environment','proGenerators','proCommands','concat','validateParams','usage','docker','remapShortToLong','root','env','3410725oqSeKw','10409877wyzRMc','resourceName','push','2255386nTIDru','7342000kThuho','To\x20use\x20this\x20generator,\x20\x22','engines','Please\x20provide\x20a\x20resource\x20name:','indexOf','None','fsi','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','singleLicense','isPro','Invalid\x20value\x20for\x20','getPro','To\x20use\x20this\x20command,\x20\x22','roles','Invalid\x20argument:\x20','platform','_handler','\x20version\x20','options','keys','getMakaProjectConfig','includes','formatToNamedParam','description'];a138c=function(){return a3;};return a138c();}import{UsageError}from'./error.js';export class Tool{[a138K(0x1c5)];[a138K(0x1d4)];[a138K(0x1e0)];[a138K(0x18f)];[a138K(0x1b1)];[a138K(0x1de)];constructor(){const L=a138K;this[L(0x1c5)]=new Docker(),this[L(0x1d4)]=new FSI();}['getShortName'](a){const M=a138K;return a[M(0x1b9)](0x0);}[a138K(0x1c6)](a,b){const N=a138K,c=this[N(0x18b)](b),d={...a};for(const e of c){const f=this[N(0x196)](e[N(0x18f)]);a[f]&&(d[e[N(0x18f)]]=a[f],delete d[f]);}return d;}[a138K(0x18b)](a){const O=a138K;if(a[O(0x1a9)](b=>typeof b===O(0x1b2)))return a[O(0x1ab)](b=>({'name':b}));return a;}['match'](a){const P=a138K,b=[this[P(0x18f)]][P(0x1c2)](this[P(0x1e0)][P(0x19c)]||[]);return this[P(0x1b1)]&&b[P(0x1cc)](this['parent']),b[P(0x18a)](a);}[a138K(0x1be)](){const Q=a138K,a=this[Q(0x1d4)]['findProjectDirectory']();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const R=a138K,a=await this[R(0x1d4)]['getPro']();return a?.[R(0x19f)]&&a?.['user']!==R(0x1a5)?!![]:![];}[a138K(0x1bc)](){const S=a138K,a=process[S(0x1dd)]===S(0x193);if(a){if(!a138g[S(0x1a4)](a138e[S(0x1a1)](homeDir,'AppData',S(0x199),'.meteor')))return![];}else{if(!a138g[S(0x1a4)](a138e[S(0x1a1)](homeDir,S(0x1a7))))return![];}return!![];}[a138K(0x1bb)](a){const T=a138K,b=this[T(0x1d4)][T(0x189)](),c=b[T(0x1d0)],d=Object[T(0x1e1)](a);if(d['length']>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log['error'](T(0x194)+e+T(0x1df)+a[e]+T(0x1b7));throw UsageError;}}}async[a138K(0x1c3)](a,b,c){const U=a138K,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0x1e1)](b);if(h[U(0x18a)](U(0x1cb))&&b[U(0x1cb)]===undefined&&!g){const m=await Actions[U(0x1b6)](U(0x1d1));b[U(0x1cb)]=m;}let i=[],j=b;if(d){i=this[U(0x18b)](d),j=this[U(0x1c6)](b,i);if(i&&i?.[U(0x1ac)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)[U(0x18a)](o)){if(o===U(0x1c8)){const r=this['fsi'][U(0x18e)](),s=await Actions[U(0x1e0)]({'type':U(0x1a2),'name':'env','message':U(0x1bf),'choices':r});b[U(0x1c8)]=s[U(0x1c8)];}else{const t=p;if(t){const u=await Actions[U(0x1e0)]({'type':U(0x1a2),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[U(0x1b6)](U(0x19d)+o);if(v[U(0x1b4)](q))b[o]=v;else{Log[U(0x1a3)](U(0x1d8)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0x1b6)](U(0x19d)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0x18a)](x)){Log['error'](U(0x1d8)+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object['keys'](k)?.['length']>0x0){k=k[U(0x1c2)](i||[]),k[U(0x1cc)]({'name':U(0x1cb),'hidden':!![]}),k[U(0x1cc)]({'name':'help','boolFlag':!![]}),k[U(0x1cc)]({'name':'dir','hidden':!![]}),k[U(0x1cc)]({'name':U(0x1a8),'hidden':!![]}),k[U(0x1cc)]({'name':U(0x1c7),'hidden':!![]}),k[U(0x1cc)]({'name':U(0x1bd),'hidden':!![]}),l=this[U(0x1c6)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0x18a)](B))){const C=A;if(C){const D=await Actions[U(0x1e0)]({'type':'list','name':z,'message':U(0x1ba)+z,'choices':A});l[z]=D[z];}}if(k[U(0x1ac)]>0x0)for(const E of Object[U(0x1e1)](l)){const F=k['find'](G=>G[U(0x18f)]===E);if(!F){Log[U(0x1a3)](U(0x197)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[U(0x18a)](G)){Log[U(0x1a3)](U(0x1dc)+G);const H=await Actions[U(0x1b6)](U(0x1d5)+G);a[a[U(0x1d2)](G)]=H;}}return Object[U(0x19b)](j,l);}async[a138K(0x1ad)](a){const V=a138K;try{if(!a)return;const b=await this[V(0x1d4)][V(0x1d9)]();!b&&(Log['error'](V(0x191)),process['exit'](0x1));const c=!b?.[V(0x1db)]['includes'](V(0x1d6))&&!b?.[V(0x1db)][V(0x18a)](V(0x19a));if(this['isCommand'](a)){const d=V(0x1da)+a[V(0x18f)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a['options']['disableAuthCheck'])return;const f=b?.['proCommands']['includes'](a[V(0x18f)])||b?.[V(0x1c1)]['includes'](a['parent']||'')||this[V(0x1e0)][V(0x1d7)];if(f&&c)throw d;}else{if(this[V(0x190)](a)){const g=b?.[V(0x1c0)][V(0x18a)](a[V(0x18f)])||b?.[V(0x1c0)]['includes'](a[V(0x1b1)]||'');if(g&&c)throw V(0x1cf)+a[V(0x18f)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[V(0x1a3)](h),process['exit'](0x1);}}[a138K(0x1aa)](a){const W=a138K;return W(0x1e0)in a;}[a138K(0x190)](a){const X=a138K;return!(X(0x1e0)in a);}[a138K(0x18c)](){const Y=a138K;return this[Y(0x1e0)][Y(0x18c)]||this[Y(0x1e0)][Y(0x19e)]||Y(0x1b8);}[a138K(0x19e)](){const Z=a138K;return this[Z(0x1e0)][Z(0x19e)]||'NIE';}[a138K(0x1c4)](){const a0=a138K;return this[a0(0x1e0)][a0(0x1c4)]||a0(0x1ae);}[a138K(0x1b3)](){const a1=a138K;return this[a1(0x1e0)][a1(0x1b3)]||[];}[a138K(0x19c)](){const a2=a138K;return this[a2(0x1e0)][a2(0x19c)]||a2(0x1d3);}}
1
+ const a138L=a138d;(function(a,b){const I=a138d,c=a();while(!![]){try{const d=parseInt(I(0x124))/0x1*(-parseInt(I(0x110))/0x2)+parseInt(I(0x134))/0x3*(-parseInt(I(0xf7))/0x4)+parseInt(I(0x140))/0x5+parseInt(I(0x10f))/0x6+-parseInt(I(0x13f))/0x7+parseInt(I(0x120))/0x8+-parseInt(I(0x12f))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x84a4b));function a138c(){const a3=['toString','length','validateMakaSubscription','keys','2099394zTcbmS','formatToNamedParam','user','Please\x20choose\x20a\x20value\x20for\x20','string','21WGGvze','constructor','(((.+)+)+)+$','fsi','cwd','shortDesc','apply','Invalid\x20value\x20for\x20','isPro','error','match','1382171fBOdoc','2471975ESPWLZ','usage','You\x20must\x20have\x20','includes','validateEngines','aliases','remapShortToLong','platform','To\x20use\x20this\x20command,\x20\x22','getShortName','every','help','_handler','18244TwgaZr','validateUserIsLoggedIn','map','Invalid\x20option:\x20','join','getPro','root','charAt','existsSync','getMakaProjectConfig','guest','Please\x20choose\x20a\x20valid\x20value\x20for\x20','list','roles','To\x20use\x20this\x20generator,\x20\x22','parent','examples','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','isGenerator','Local','config','find','description','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','1395456UznPll','62222OarLEg','exit','Please\x20provide\x20a\x20resource\x20name:','No\x20description\x20provided.','resourceName','singleLicense','Please\x20provide\x20a\x20value\x20for\x20','None','Invalid\x20argument:\x20','AppData','env','No\x20usage\x20provided.','validateParams','engines','.meteor','name','7458504diorCn','docker','proCommands','disableAuthCheck','21IeQdbm','ask','concat','homedir','\x20version\x20','push','options'];a138c=function(){return a3;};return a138c();}function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xf4;let f=c[d];return f;},a138d(a,b);}const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a138d;if(c){const e=c[J(0x13a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const K=a138d;return a138a[K(0x12b)]()['search']('(((.+)+)+)+$')[K(0x12b)]()[K(0x135)](a138a)['search'](K(0x136));});a138a();import a138e from'path';import a138f from'os';import a138g from'fs';const homeDir=a138f[a138L(0x127)]();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{[a138L(0x121)];[a138L(0x137)];['options'];[a138L(0x11f)];[a138L(0x106)];[a138L(0xf6)];constructor(){const M=a138L;this[M(0x121)]=new Docker(),this[M(0x137)]=new FSI();}[a138L(0x149)](a){const N=a138L;return a[N(0xfe)](0x0);}[a138L(0x146)](a,b){const O=a138L,c=this['formatToNamedParam'](b),d={...a};for(const e of c){const f=this[O(0x149)](e['name']);a[f]&&(d[e[O(0x11f)]]=a[f],delete d[f]);}return d;}[a138L(0x130)](a){const P=a138L;if(a[P(0xf4)](b=>typeof b===P(0x133)))return a[P(0xf9)](b=>({'name':b}));return a;}[a138L(0x13e)](a){const Q=a138L,b=[this[Q(0x11f)]][Q(0x126)](this[Q(0x12a)][Q(0x145)]||[]);return this[Q(0x106)]&&b[Q(0x129)](this[Q(0x106)]),b[Q(0x143)](a);}['validateMakaProject'](){const R=a138L,a=this[R(0x137)]['findProjectDirectory']();return a!==![]?!![]:![];}async[a138L(0xf8)](){const S=a138L,a=await this[S(0x137)][S(0xfc)]();return a?.[S(0x131)]&&a?.[S(0x131)]!==S(0x101)?!![]:![];}['validateMeteorInstall'](){const T=a138L,a=process[T(0x147)]==='win32';if(a){if(!a138g[T(0xff)](a138e[T(0xfb)](homeDir,T(0x119),T(0x10a),T(0x11e))))return![];}else{if(!a138g[T(0xff)](a138e['join'](homeDir,'.meteor')))return![];}return!![];}[a138L(0x144)](a){const U=a138L,b=this[U(0x137)][U(0x100)](),c=b[U(0x11d)],d=Object[U(0x12e)](a);if(d[U(0x12c)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x13d)](U(0x142)+e+U(0x128)+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a138L(0x11c)](a,b,c){const V=a138L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x12e)](b);if(h[V(0x143)](V(0x114))&&b[V(0x114)]===undefined&&!g){const m=await Actions['ask'](V(0x112));b['resourceName']=m;}let i=[],j=b;if(d){i=this[V(0x130)](d),j=this['remapShortToLong'](b,i);if(i&&i?.[V(0x12c)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x12e)](j)[V(0x143)](o)){if(o===V(0x11a)){const r=this[V(0x137)]['getAppProjectConfigs'](),s=await Actions['options']({'type':V(0x103),'name':V(0x11a),'message':'Please\x20choose\x20an\x20environment','choices':r});b[V(0x11a)]=s[V(0x11a)];}else{const t=p;if(t){const u=await Actions[V(0x12a)]({'type':V(0x103),'name':o,'message':V(0x132)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x125)](V(0x116)+o);if(v['match'](q))b[o]=v;else{Log[V(0x13d)](V(0x13b)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions['ask']('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p['includes'](x)){Log['error'](V(0x13b)+o+':\x20'+x);throw new UsageError();}}}}let k=this['formatToNamedParam'](f),l=b;if(k&&Object[V(0x12e)](k)?.[V(0x12c)]>0x0){k=k[V(0x126)](i||[]),k[V(0x129)]({'name':V(0x114),'hidden':!![]}),k[V(0x129)]({'name':V(0xf5),'boolFlag':!![]}),k[V(0x129)]({'name':'dir','hidden':!![]}),k[V(0x129)]({'name':V(0x138),'hidden':!![]}),k[V(0x129)]({'name':V(0xfd),'hidden':!![]}),k['push']({'name':V(0x10b),'hidden':!![]}),l=this[V(0x146)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x143)](B))){const C=A;if(C){const D=await Actions[V(0x12a)]({'type':V(0x103),'name':z,'message':V(0x102)+z,'choices':A});l[z]=D[z];}}if(k[V(0x12c)]>0x0)for(const E of Object[V(0x12e)](l)){const F=k[V(0x10c)](G=>G[V(0x11f)]===E);if(!F){Log[V(0x13d)](V(0xfa)+E);throw new UsageError();}}}}if(e&&e?.[V(0x12c)]>0x0)for(const G of e){if(!e[V(0x143)](G)){Log[V(0x13d)](V(0x118)+G);const H=await Actions['ask']('Please\x20provide\x20a\x20valid\x20argument\x20for\x20'+G);a[a['indexOf'](G)]=H;}}return Object['assign'](j,l);}async[a138L(0x12d)](a){const W=a138L;try{if(!a)return;const b=await this[W(0x137)]['getPro']();!b&&(Log[W(0x13d)](W(0x10e)),process['exit'](0x1));const c=!b?.[W(0x104)][W(0x143)](W(0x115))&&!b?.[W(0x104)]['includes']('domainLicense');if(this['isCommand'](a)){const d=W(0x148)+a[W(0x11f)]+W(0x108);if(a[W(0x12a)][W(0x123)])return;const f=b?.[W(0x122)][W(0x143)](a[W(0x11f)])||b?.[W(0x122)]['includes'](a[W(0x106)]||'')||this[W(0x12a)][W(0x13c)];if(f&&c)throw d;}else{if(this[W(0x109)](a)){const g=b?.['proGenerators'][W(0x143)](a[W(0x11f)])||b?.['proGenerators']['includes'](a[W(0x106)]||'');if(g&&c)throw W(0x105)+a[W(0x11f)]+W(0x108);}}}catch(h){Log[W(0x13d)](h),process[W(0x111)](0x1);}}['isCommand'](a){const X=a138L;return X(0x12a)in a;}[a138L(0x109)](a){return!('options'in a);}[a138L(0x10d)](){const Y=a138L;return this[Y(0x12a)][Y(0x10d)]||this[Y(0x12a)][Y(0x139)]||Y(0x113);}['shortDesc'](){const Z=a138L;return this['options'][Z(0x139)]||'NIE';}['usage'](){const a0=a138L;return this[a0(0x12a)][a0(0x141)]||a0(0x11b);}['examples'](){const a1=a138L;return this['options'][a1(0x107)]||[];}[a138L(0x145)](){const a2=a138L;return this[a2(0x12a)][a2(0x145)]||a2(0x117);}}
@@ -1 +1 @@
1
- function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1bc;let f=c[d];return f;},a139d(a,b);}const a139i=a139d;(function(a,b){const f=a139d,c=a();while(!![]){try{const d=parseInt(f(0x1bd))/0x1*(parseInt(f(0x1d0))/0x2)+parseInt(f(0x1c1))/0x3+parseInt(f(0x1bc))/0x4*(parseInt(f(0x1bf))/0x5)+-parseInt(f(0x1ce))/0x6*(-parseInt(f(0x1c7))/0x7)+-parseInt(f(0x1cd))/0x8+-parseInt(f(0x1c8))/0x9+parseInt(f(0x1ca))/0xa*(-parseInt(f(0x1c3))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x54eac));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a139d;if(c){const e=c[g(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const h=a139d;return a139a[h(0x1c5)]()[h(0x1c0)](h(0x1c4))[h(0x1c5)]()[h(0x1c2)](a139a)[h(0x1c0)](h(0x1c4));});a139a();import a139e from'inquirer';function a139c(){const m=['prompt','11266nVMkDE','16SvTcyl','9OQwwRw','ask','468140QuWKHS','search','1418745tbsmJo','constructor','88KlARmC','(((.+)+)+)+$','toString','apply','14PCSoEu','2223288oXwBBz','confirm','554920daUseq','password','answer','3124768kqmDww','1593780ETpFwM'];a139c=function(){return m;};return a139c();}export class Actions{static async[a139i(0x1be)](a,b){const j=a139i,{answer:c}=await a139e['prompt']({'type':b?j(0x1cb):'input','name':'answer','message':a});return c;}static async[a139i(0x1c9)](a,b=![]){const k=a139i,{answer:c}=await a139e['prompt']({'type':k(0x1c9),'name':k(0x1cc),'message':a,'default':b});return c;}static async['options'](a){const l=a139i,b=await a139e[l(0x1cf)](a);return b;}}
1
+ function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x166;let f=c[d];return f;},a139d(a,b);}const a139i=a139d;(function(a,b){const f=a139d,c=a();while(!![]){try{const d=-parseInt(f(0x168))/0x1*(parseInt(f(0x16d))/0x2)+-parseInt(f(0x166))/0x3*(-parseInt(f(0x16e))/0x4)+-parseInt(f(0x17b))/0x5*(-parseInt(f(0x174))/0x6)+-parseInt(f(0x17a))/0x7+-parseInt(f(0x16f))/0x8+parseInt(f(0x172))/0x9+parseInt(f(0x169))/0xa*(-parseInt(f(0x16b))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x7b899));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a139d;if(c){const e=c[g(0x16c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const h=a139d;return a139a[h(0x16a)]()[h(0x178)](h(0x167))['toString']()[h(0x17c)](a139a)['search'](h(0x167));});function a139c(){const m=['984897MLCXoD','options','6LdFGQy','confirm','answer','ask','search','password','289793LFnEah','3571110yVbIEm','constructor','3JFhylG','(((.+)+)+)+$','8RwDyaW','176190sZtyvi','toString','77YgdCwh','apply','8164xbEadq','2247572wNZWHy','5457208EuRrMd','input','prompt'];a139c=function(){return m;};return a139c();}a139a();import a139e from'inquirer';export class Actions{static async[a139i(0x177)](a,b){const j=a139i,{answer:c}=await a139e[j(0x171)]({'type':b?j(0x179):j(0x170),'name':j(0x176),'message':a});return c;}static async[a139i(0x175)](a,b=![]){const k=a139i,{answer:c}=await a139e['prompt']({'type':k(0x175),'name':k(0x176),'message':a,'default':b});return c;}static async[a139i(0x173)](a){const l=a139i,b=await a139e[l(0x171)](a);return b;}}
@@ -1 +1 @@
1
- function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x19c;let f=c[d];return f;},a140d(a,b);}const a140s=a140d;(function(a,b){const p=a140d,c=a();while(!![]){try{const d=-parseInt(p(0x20e))/0x1+-parseInt(p(0x225))/0x2+parseInt(p(0x1c6))/0x3+-parseInt(p(0x1f8))/0x4+parseInt(p(0x22f))/0x5*(-parseInt(p(0x21f))/0x6)+parseInt(p(0x25d))/0x7*(parseInt(p(0x229))/0x8)+parseInt(p(0x25c))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xdd8ba));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a140d;if(c){const e=c[q(0x1a2)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const r=a140d;return a140a[r(0x20d)]()['search'](r(0x1ca))[r(0x20d)]()[r(0x19c)](a140a)[r(0x227)](r(0x1ca));});a140a();import a140e from'fs';import a140f 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,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}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({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a140c(){const Z=['Please\x20choose\x20a\x20VPC:\x20[0]\x20','Error\x20saving\x20pem\x20file,\x20aborting','No\x20instances\x20found','ec2create','writeFileSync','minCount','start','Successfully\x20linked\x20EC2\x20instance\x20','ap-northeast-3','RegistrationPrice','ap-southeast-2','repositoryName','toString','248120phZluQ','now','sgIds','ec2describeInstances','Name','length','pem','/dev/sdh','getMakaProjectConfig','Region:\x20','ingressRule','eu-central-1','createKeyPairEC2Key','status','ca-west-1','Processing\x20','error','12DmElml','Authorization\x20token\x20is\x20missing','.pem.txt','ecrCreateRepository','Key\x20Name:\x20[','Error\x20linking\x20EC2\x20to\x20Route\x2053:','1722352khEviv','\x20VPCID:\x20','search','Failed\x20to\x20create\x20repository\x20in\x20','24XMuHQA','instance','userData','config','il-central-1','checkDomainAvailability','413640EeSber','ap-southeast-3','Created:\x20','vpcId','privateIp','push','linkEC2ToRoute53','split','ecrDeleteRepository',',\x20URI:\x20','us-east-1','\x20NAME:\x20','httpStatusCode','maka-cli','reason','from','instanceId','\x20INSTANCE_ID:\x20','Availability','Port\x20','ap-east-1','createKeyPair','deleteSecurityGroup','0.0.0.0/0','Instances','ap-northeast-1','log','confirm','info','getEcrLoginPassword','deleteKeyPair','Value','af-south-1','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','ec2rebootInstance','_keys','description','eu-west-1','Final\x20list\x20of\x20ECR\x20repositories:','HostedZones','authorizationToken','**\x20Available\x20\x20VPCs\x20**','ap-southeast-4','$response','cidr','8234496mVpqkl','568239xGDVkG','constructor','subnet','stop','UserData','base64','readFileSync','apply','timeout','\x20PUB_IP:\x20','route53CreateHostedZone','\x20to\x20','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','ap-south-2','getAppConfigPath','file://','getSecurityGroups','\x20STATUS:\x20','uri','ssh.json','repositories','ask','Web\x20App','AVAILABLE','env','success','publicIp','us-west-2','find','us-east-2','Authorization\x20data\x20is\x20empty','\x20CIDR:\x20','\x20Status\x20Code:\x20','send','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','trim','name','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','ap-south-1','pop','Repository\x20\x22','notice','eu-south-2','5221626UkPbvl','fsi','repositoryUri','region','(((.+)+)+)+$','ap-southeast-1','Error\x20fetching\x20domain\x20pricing:','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','map','The\x20domain\x20\x27','\x20ENV:\x20','$metadata','running','GroupId','key','\x20Error\x20Rason:\x20','KeyMaterial','Invalid\x20choice','listHostedZonesByName','us-west-1','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','warn','authorizationData','ID:\x20','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','sgPorts','exit','Pem\x20key\x20saved\x20to\x20','ap-northeast-2','withSpinner','join','Prices','forEach','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','registerDomain','GroupName','environment','eu-west-2','Could\x20not\x20find\x20hosted\x20zone','type','Reservations','stringify','Error\x20generating\x20key\x20pair','createFile','ca-central-1','...','terminated','KeyName','ec2describeKeys','imageId','2867260KbzUzb','sgId','CidrBlock','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','tag:created-by','concat','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','changeResourceRecordSets','suggestion'];a140c=function(){return Z;};return a140c();}export class AWS{[a140s(0x1c7)];constructor(){this['fsi']=new FSI();}async[a140s(0x222)](a){const t=a140s;try{const b=new ECRClient({'region':a[t(0x1c9)]}),c={'repositoryName':a[t(0x1bf)]},d=new CreateRepositoryCommand(c),f=await b[t(0x1bc)](d);return Log['success'](t(0x1c3)+a[t(0x1bf)]+'\x22\x20created\x20successfully\x20in\x20'+a[t(0x1c9)]+'.'),f;}catch(g){Log[t(0x21e)](t(0x228)+a[t(0x1c9)]+':\x20'+g);throw g;}}async['listAllEcrRepositories'](a){const u=a140s,b=[u(0x239),u(0x1b8),u(0x1d9),u(0x1b6),u(0x1c1),u(0x209),u(0x1e2),u(0x1cb),u(0x20b),u(0x248),u(0x1f2),u(0x219),u(0x254),u(0x1eb),'eu-west-3','eu-north-1','sa-east-1',u(0x24f),u(0x243),u(0x1a8),u(0x230),u(0x259),u(0x21c),'eu-south-1',u(0x1c5),'eu-central-2','me-south-1','me-central-1',u(0x22d)],c=[u(0x239),'us-east-2','us-west-1',u(0x1b6)],d=a==='all'?b:a?a[u(0x236)](','):c;let f=[];const g=Log[u(0x1e3)]();for(const h of d){g[u(0x207)](u(0x21d)+h[u(0x1be)]()+u(0x1f3));const i=new ECRClient({'region':h[u(0x1be)]()});try{let j=undefined;do{const k=await Promise['race']([i[u(0x1bc)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(u(0x1a3)),0x7d0))]);if(k===u(0x1a3)){Log[u(0x1db)]('Timeout\x20while\x20processing\x20'+h[u(0x1be)]()+'.');break;}else k['repositories']&&k['repositories'][u(0x213)]>0x0&&(f=f[u(0x1fd)](k[u(0x1af)][u(0x1ce)](l=>({'name':l[u(0x20c)],'uri':l[u(0x1c8)],'region':h['trim']()}))));j=k['nextToken'];}while(j);}catch(l){Log[u(0x21e)]('Failed\x20in\x20'+h[u(0x1be)]()+':\x20'+l['message']);}finally{g[u(0x19e)]();}}return f[u(0x213)]>0x0?(console[u(0x249)](),Log[u(0x1b4)](u(0x255)),f[u(0x1e6)](m=>{const v=u;Log[v(0x24b)](v(0x217)+m['region']+',\x20Name:\x20'+m[v(0x1bf)]+v(0x238)+m[v(0x1ad)]);})):Log[u(0x1db)](u(0x1c0)),f;}async[a140s(0x1a5)](a){const w=a140s;try{const b={'CallerReference':''+Date[w(0x20f)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[w(0x1bc)](c),Log[w(0x1b4)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log[w(0x21e)]('Error\x20creating\x20hosted\x20zone'),console[w(0x21e)](d);}}async[a140s(0x1e8)](a,b,c,d){const x=a140s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log['notice'](x(0x1cf)+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log['error'](x(0x1a7)),Log[x(0x1db)]('From\x20AWS:'),console[x(0x21e)](x(0x1bb)+g[x(0x25a)]['statusCode']),console[x(0x21e)](x(0x1d5)+g[x(0x25a)][x(0x23d)]);}}async[a140s(0x22e)](a){const y=a140s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[y(0x241)]===y(0x1b2);if(e){const f=a[y(0x236)]('.')[y(0x1c2)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains['send'](h);if(i&&i[y(0x1e5)]&&i['Prices'][0x0]?.[y(0x20a)]){const j=i['Prices'][0x0][y(0x20a)];return{'available':e,'cost':j};}}catch(k){console[y(0x21e)](y(0x1cc),k);}}return{'available':e};}async[a140s(0x235)](a,b,c){const z=a140s;try{const d=await route53[z(0x1d8)]({'DNSName':c});if(!d?.[z(0x256)])throw Log[z(0x21e)](z(0x1ec));const e=d?.[z(0x256)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':'UPSERT','ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[z(0x1ff)](f),Log[z(0x1c4)](z(0x208)+a+z(0x1a6)+c);}catch(g){console['error'](z(0x224),g);}}async[a140s(0x24c)]({awsAccountId:a,region:b}){const A=a140s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[A(0x1dc)]||f[A(0x1dc)]['length']===0x0)throw new Error(A(0x1b9));const g=f[A(0x1dc)][0x0];if(!g[A(0x257)])throw new Error(A(0x220));const h=g[A(0x257)];if(!h)throw new Error('No\x20credentials\x20returned\x20from\x20AWS\x20ECR');const i=Buffer[A(0x23e)](h,A(0x1a0))[A(0x20d)](),j=i['split'](':')[0x1];if(!j)throw new Error(A(0x250));return j;}catch(k){Log[A(0x21e)](k);throw k;}}async[a140s(0x237)]({repoName:a,region:b}){const B=a140s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[B(0x1bc)](d);return f;}catch(g){Log[B(0x21e)](g);throw g;}}async[a140s(0x204)](a){const C=a140s;try{const b={'BlockDeviceMappings':[{'DeviceName':C(0x215),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[C(0x1f7)],'InstanceType':a[C(0x1ed)],'KeyName':a[C(0x1d4)],'MaxCount':a['maxCount'],'MinCount':a[C(0x206)],'SecurityGroupIds':a[C(0x210)][C(0x236)](','),'SubnetId':a[C(0x19d)],'TagSpecifications':[{'ResourceType':C(0x22a),'Tags':a['tags']}]};a[C(0x22b)]&&(b[C(0x19f)]=C(0x1aa)+a['userData']);const c=new RunInstancesCommand(b),d=await client[C(0x1bc)](c);return d;}catch(f){Log[C(0x21e)](f);}}async['ec2terminateInstance'](a){const D=a140s;try{const b={'InstanceIds':[a[D(0x23f)]]},c=new TerminateInstancesCommand(b),d=await client[D(0x1bc)](c);return d;}catch(f){return Log[D(0x21e)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const E=a140s,c=this[E(0x1c7)][E(0x1a9)](b),d=a140f[E(0x1e4)](c,E(0x252),a+E(0x221));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[E(0x1d6)];if(i){await this[E(0x1c7)][E(0x1f1)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[E(0x1c7)]['isFile'](d);if(j)return Log['success'](E(0x1e1)+d),{'keyName':a,'filePath':d};else throw new Error(E(0x202));}else throw new Error(E(0x1f0));}catch(k){Log[E(0x21e)](k),process[E(0x1e0)](0x1);}}async[a140s(0x218)]({port:a,groupId:b}){const F=a140s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':F(0x246),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[F(0x1c4)](F(0x242)+a+'\x20opened!'),await client['send'](d);}async['ec2createSG'](a){const G=a140s;try{a[G(0x253)]===''&&(a['description']=await Actions['ask']('Description:')||G(0x1b1));const b={'Description':a[G(0x253)],'GroupName':a[G(0x1bf)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[G(0x1bc)](c),{GroupId:f}=d;if(!d)throw new Error(G(0x1bd));f&&a[G(0x1df)][G(0x1e6)](g=>{this['ingressRule']({'port':parseInt(g),'groupId':f});}),Log['success'](G(0x231)+f+G(0x23a)+a['name']);}catch(g){return Log[G(0x21e)](g),![];}return!![];}async[a140s(0x1f6)](a){const H=a140s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[H(0x1bc)](d);if(!f)throw H(0x1bd);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const I=H;h[I(0x1f5)]&&b[I(0x234)]({'id':i,'name':h['KeyName']});}),b[H(0x213)]>0x0&&b['forEach'](h=>{const J=H;h['name']===a?.[J(0x200)]?Log[J(0x1b4)](J(0x1dd)+h['id']+J(0x23a)+h[J(0x1bf)]):Log[J(0x1c4)](J(0x1dd)+h['id']+J(0x23a)+h['name']);})):Log[H(0x21e)](H(0x1fb));}catch(h){Log[H(0x21e)](h);}return b;}async[a140s(0x24d)](a){const K=a140s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process[K(0x1e0)](0x1);}}async[a140s(0x211)](){const L=a140s,a=[];try{const b={'Filters':[{'Name':L(0x1fc),'Values':[L(0x23c)]}]},c=new DescribeInstancesCommand(b),d=await client[L(0x1bc)](c);d[L(0x1ee)]?.[L(0x1e6)]((f,g)=>{const M=L;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[M(0x247)][0x0],n=m?.[M(0x1b7)](({Key:o})=>o===M(0x1ea));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[M(0x212)],'name':l,'env':n?.[M(0x24e)]});}}),a['length']>0x0?a[L(0x1e6)](f=>{const N=L,g=N(0x1dd)+f['id']+'\x20NAME:\x20'+f[N(0x1bf)]+N(0x1d0)+f[N(0x1b3)]+N(0x1ac)+f[N(0x21b)]+N(0x240)+f[N(0x23f)]+N(0x1a4)+f[N(0x1b5)]+'\x20PRIV_IP:\x20'+f[N(0x233)];if(f[N(0x21b)]===N(0x1f4))Log[N(0x21e)](g);else f[N(0x21b)]===N(0x1d2)?Log['success'](g):Log[N(0x1c4)](g);}):Log[L(0x21e)](L(0x1de));}catch(f){Log[L(0x21e)](f);}return a;}async[a140s(0x251)](a){const O=a140s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[O(0x1d1)][O(0x23b)]===0xc8&&Log[O(0x1b4)]('Instance\x20rebooted!'),d;}catch(f){Log[O(0x21e)](f);}}async['chooseVPC'](){const P=a140s;let a='';Log[P(0x1c4)](P(0x258));const b=new DescribeVpcsCommand({}),c=await client['send'](b),{Vpcs:d}=c,e=[];d&&d[P(0x1e6)]((g,h)=>{const Q=P;g['VpcId']&&g[Q(0x1fa)]&&e[Q(0x234)]({'id':h,'vpcId':g['VpcId'],'cidr':g['CidrBlock']});});e[P(0x1e6)](function(g){const R=P;console[R(0x249)](R(0x1dd)+g['id']+R(0x226)+g[R(0x232)]+R(0x1ba)+g[R(0x25b)]);});const f=await Actions[P(0x1b0)](P(0x201))||0x0;e['forEach'](function(g){const S=P;g['id']==f&&(a=g[S(0x232)],Log['success']('[+]\x20Setting\x20VPC\x20ID\x20to:\x20'+a+'\x0a'));});if(a==='')return Log[P(0x21e)](P(0x1fe)),'';return a;}async['chooseInstance'](){const T=a140s,a=await this[T(0x211)]();if(a[T(0x213)]===0x0)return Log[T(0x21e)](T(0x203)),null;const b=await Actions[T(0x1b0)](T(0x1da));!b&&(Log[T(0x21e)](T(0x1d7)),process[T(0x1e0)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a140s(0x244)]({env:a}){const U=a140s,b=this[U(0x1c7)][U(0x216)](),{appName:c}=b,d=c+'-'+a,f=await Actions[U(0x1b0)](U(0x223)+d+']\x20')||d,{filePath:g}=await this[U(0x21a)]({'keyName':f,'env':a});try{const h=await Actions[U(0x24a)](U(0x1cd),!![]);if(h)try{const i=a140e[U(0x1a1)](a140f[U(0x1e4)](U(0x22c),a,U(0x1ae)),'utf8'),j=JSON['parse'](i);j[U(0x214)]=a140f[U(0x1e4)](U(0x252),f+'.pem.txt'),a140e[U(0x205)](a140f['join'](U(0x22c),a,'ssh.json'),JSON[U(0x1ef)](j,null,0x2));}catch(k){Log['error'](k),Log[U(0x21e)](U(0x1e7));}}catch(l){Log[U(0x21e)](l),process[U(0x1e0)](0x1);}return{'keyName':f,'filePath':g};}async[a140s(0x1ab)](a){const V=a140s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[V(0x1bc)](d),{SecurityGroups:f}=e;f&&f[V(0x1e6)](function(i,j){const W=V;i[W(0x1e9)]&&i['GroupId']&&b['push']({'id':j,'name':i['GroupName'],'sgId':i[W(0x1d3)]});});let g='',h=0x0;return b[V(0x1e6)](function(i){const X=V;i[X(0x1bf)]===a&&(g=i[X(0x1f9)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a140s(0x245)](a){const Y=a140s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[Y(0x21e)](d),process['exit'](0x1);}}}
1
+ const a140t=a140d;(function(a,b){const p=a140d,c=a();while(!![]){try{const d=-parseInt(p(0x10c))/0x1*(-parseInt(p(0x103))/0x2)+-parseInt(p(0xff))/0x3*(parseInt(p(0xc7))/0x4)+parseInt(p(0xe6))/0x5*(-parseInt(p(0x14d))/0x6)+-parseInt(p(0xad))/0x7+-parseInt(p(0xcf))/0x8*(-parseInt(p(0xd2))/0x9)+-parseInt(p(0x125))/0xa*(-parseInt(p(0x153))/0xb)+-parseInt(p(0x142))/0xc*(parseInt(p(0xb6))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x5351b));function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x9f;let f=c[d];return f;},a140d(a,b);}const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a140d;if(c){const e=c[q(0xe4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const r=a140d;return a140a[r(0xef)]()[r(0x12b)](r(0xb5))[r(0xef)]()[r(0x12e)](a140a)['search'](r(0xb5));});a140a();import a140e from'fs';import a140f from'path';function a140c(){const a0=['ap-south-1','pem','length','KeyName','forEach','il-central-1','timeout','ingressRule','/dev/sdh','ec2terminateInstance','165408mJJbXY','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','start','listHostedZonesByName','nextToken','minCount','ap-northeast-2','createKeyPairEC2Key','Could\x20not\x20find\x20hosted\x20zone','Timeout\x20while\x20processing\x20','84BqegIY','repositoryUri',',\x20Name:\x20','Authorization\x20token\x20is\x20missing','privateIp','Final\x20list\x20of\x20ECR\x20repositories:','759aCERqw','file://','us-east-2','af-south-1','us-west-1','ask','name','Error\x20saving\x20pem\x20file,\x20aborting','HostedZones','Name','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','\x20CIDR:\x20','ID:\x20','eu-west-1','map','ca-central-1','pop','Processing\x20','ca-west-1','tcp','route53CreateHostedZone','2156434elpkdU','fsi','chooseVPC','error','httpStatusCode','GroupName','split','\x20opened!','(((.+)+)+)+$','104ZopwkD','config','reason','status','\x20to\x20','exit','ap-southeast-2','tags','AVAILABLE','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','ap-east-1','GroupId','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','Description:','...','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','KeyMaterial','102980AwrNKe','subnet','\x20INSTANCE_ID:\x20','eu-central-1','Invalid\x20choice','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','repositories','now','200KOKBfJ','race','authorizationToken','162126OFsgAI','$response','getSecurityGroups','CidrBlock','sgId','sgIds','region','us-west-2','parse','tag:created-by','**\x20Available\x20\x20VPCs\x20**','running','withSpinner','ec2describeInstances','send','join','sa-east-1','Key\x20Name:\x20[','apply','warn','105680fTaqqZ','\x20PRIV_IP:\x20','notice','No\x20instances\x20found','userData','instanceId','\x20NAME:\x20','ec2rebootInstance','statusCode','toString','ap-northeast-1',',\x20URI:\x20','Availability','getMakaProjectConfig','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','me-central-1','info','Web\x20App','uri','environment','Hosted\x20zone\x20created\x20successfully!','ssh.json','listAllEcrRepositories','env','trim','21FFzOix','deleteSecurityGroup','ec2create','deleteKeyPair','4NxSCQG','maka-cli','Repository\x20\x22','_keys','Created:\x20','Successfully\x20linked\x20EC2\x20instance\x20','publicIp','cidr','getEcrLoginPassword','113032eujkpo','all','Reservations','createFile','Value','UPSERT','0.0.0.0/0','repositoryName','log','chooseInstance','changeResourceRecordSets','Instances','type','us-east-1','stringify','ap-southeast-1','\x20VPCID:\x20','authorizationData','Error\x20generating\x20key\x20pair','ecrDeleteRepository','stop','push','sgPorts','success','find','81060bCRVbY','Prices','ec2describeKeys','Region:\x20','ap-south-2','me-south-1','search','Error\x20fetching\x20domain\x20pricing:','Port\x20','constructor','imageId','\x22\x20created\x20successfully\x20in\x20','\x20STATUS:\x20','.pem.txt','description','Instance\x20rebooted!','createKeyPair','linkEC2ToRoute53','vpcId'];a140c=function(){return a0;};return a140c();}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,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}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({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){this['fsi']=new FSI();}async['ecrCreateRepository'](a){const s=a140d;try{const b=new ECRClient({'region':a[s(0xd8)]}),c={'repositoryName':a[s(0x159)]},d=new CreateRepositoryCommand(c),f=await b[s(0xe0)](d);return Log['success'](s(0x105)+a['name']+s(0x130)+a[s(0xd8)]+'.'),f;}catch(g){Log[s(0xb0)]('Failed\x20to\x20create\x20repository\x20in\x20'+a[s(0xd8)]+':\x20'+g);throw g;}}async[a140t(0xfc)](a){const u=a140t,b=['us-east-1',u(0x155),u(0x157),u(0xd9),u(0x138),'ap-northeast-3',u(0x149),u(0x11b),u(0xbc),u(0xf0),u(0xa7),u(0xca),u(0xa5),'eu-west-2','eu-west-3','eu-north-1',u(0xe2),u(0x156),u(0xc0),u(0x129),'ap-southeast-3','ap-southeast-4',u(0xaa),'eu-south-1','eu-south-2','eu-central-2',u(0x12a),u(0xf5),u(0x13d)],c=[u(0x119),u(0x155),u(0x157),u(0xd9)],d=a===u(0x10d)?b:a?a['split'](','):c;let f=[];const g=Log[u(0xde)]();for(const h of d){g[u(0x145)](u(0xa9)+h[u(0xfe)]()+u(0xc4));const i=new ECRClient({'region':h[u(0xfe)]()});try{let j=undefined;do{const k=await Promise[u(0xd0)]([i['send'](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(u(0x13e)),0x7d0))]);if(k===u(0x13e)){Log[u(0xe5)](u(0x14c)+h['trim']()+'.');break;}else k[u(0xcd)]&&k[u(0xcd)][u(0x13a)]>0x0&&(f=f['concat'](k[u(0xcd)][u(0xa6)](l=>({'name':l[u(0x113)],'uri':l[u(0x14e)],'region':h[u(0xfe)]()}))));j=k[u(0x147)];}while(j);}catch(l){Log[u(0xb0)]('Failed\x20in\x20'+h[u(0xfe)]()+':\x20'+l['message']);}finally{g[u(0x120)]();}}return f[u(0x13a)]>0x0?(console[u(0x114)](),Log[u(0x123)](u(0x152)),f[u(0x13c)](m=>{const v=u;Log[v(0xf6)](v(0x128)+m[v(0xd8)]+v(0x14f)+m[v(0x159)]+v(0xf1)+m[v(0xf8)]);})):Log[u(0xe5)](u(0xbf)),f;}async[a140t(0xac)](a){const w=a140t;try{const b={'CallerReference':''+Date[w(0xce)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[w(0x123)](w(0xfa));}catch(d){Log[w(0xb0)]('Error\x20creating\x20hosted\x20zone'),console[w(0xb0)](d);}}async['registerDomain'](a,b,c,d){const x=a140t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53['send'](f),Log[x(0xe8)]('The\x20domain\x20\x27'+b+'\x27\x20has\x20been\x20registered\x20successfully.');}catch(g){Log[x(0xb0)](x(0x144)),Log[x(0xe5)]('From\x20AWS:'),console['error']('\x20Status\x20Code:\x20'+g['$response'][x(0xee)]),console['error']('\x20Error\x20Rason:\x20'+g[x(0xd3)][x(0xb8)]);}}async['checkDomainAvailability'](a){const y=a140t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[y(0xe0)](c),e=d[y(0xf2)]===y(0xbe);if(e){const f=a[y(0xb3)]('.')[y(0xa8)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[y(0xe0)](h);if(i&&i[y(0x126)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i[y(0x126)][0x0]['RegistrationPrice'];return{'available':e,'cost':j};}}catch(k){console[y(0xb0)](y(0x12c),k);}}return{'available':e};}async[a140t(0x136)](a,b,c){const z=a140t;try{const d=await route53[z(0x146)]({'DNSName':c});if(!d?.[z(0xa0)])throw Log[z(0xb0)](z(0x14b));const e=d?.[z(0xa0)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':z(0x111),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[z(0x116)](f),Log[z(0xe8)](z(0x108)+a+z(0xba)+c);}catch(g){console[z(0xb0)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a140t(0x10b)]({awsAccountId:a,region:b}){const A=a140t,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c['send'](d);if(!f[A(0x11d)]||f[A(0x11d)][A(0x13a)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f['authorizationData'][0x0];if(!g[A(0xd1)])throw new Error(A(0x150));const h=g[A(0xd1)];if(!h)throw new Error(A(0x143));const i=Buffer['from'](h,'base64')[A(0xef)](),j=i[A(0xb3)](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[A(0xb0)](k);throw k;}}async[a140t(0x11f)]({repoName:a,region:b}){const B=a140t,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[B(0xe0)](d);return f;}catch(g){Log[B(0xb0)](g);throw g;}}async[a140t(0x101)](a){const C=a140t;try{const b={'BlockDeviceMappings':[{'DeviceName':C(0x140),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[C(0x12f)],'InstanceType':a[C(0x118)],'KeyName':a['key'],'MaxCount':a['maxCount'],'MinCount':a[C(0x148)],'SecurityGroupIds':a[C(0xd7)]['split'](','),'SubnetId':a[C(0xc8)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[C(0xbd)]}]};a[C(0xea)]&&(b['UserData']=C(0x154)+a[C(0xea)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[C(0xb0)](f);}}async[a140t(0x141)](a){const D=a140t;try{const b={'InstanceIds':[a[D(0xeb)]]},c=new TerminateInstancesCommand(b),d=await client[D(0xe0)](c);return d;}catch(f){return Log['error'](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const E=a140t,c=this[E(0xae)]['getAppConfigPath'](b),d=a140f['join'](c,E(0x106),a+'.pem.txt');try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[E(0xc6)];if(i){await this['fsi'][E(0x10f)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[E(0xae)]['isFile'](d);if(j)return Log[E(0x123)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(E(0x9f));}else throw new Error(E(0x11e));}catch(k){Log[E(0xb0)](k),process[E(0xbb)](0x1);}}async[a140t(0x13f)]({port:a,groupId:b}){const F=a140t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':F(0xab),'IpRanges':[{'CidrIp':F(0x112),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[F(0xe8)](F(0x12d)+a+F(0xb4)),await client['send'](d);}async['ec2createSG'](a){const G=a140t;try{a['description']===''&&(a['description']=await Actions[G(0x158)](G(0xc3))||G(0xf7));const b={'Description':a[G(0x133)],'GroupName':a[G(0x159)],'VpcId':a[G(0x137)]},c=new CreateSecurityGroupCommand(b),d=await client[G(0xe0)](c),{GroupId:f}=d;if(!d)throw new Error('AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials');f&&a[G(0x122)][G(0x13c)](g=>{const H=G;this[H(0x13f)]({'port':parseInt(g),'groupId':f});}),Log[G(0x123)](G(0x107)+f+G(0xec)+a['name']);}catch(g){return Log[G(0xb0)](g),![];}return!![];}async[a140t(0x127)](a){const I=a140t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[I(0xe0)](d);if(!f)throw I(0xa2);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const J=I;h[J(0x13b)]&&b['push']({'id':i,'name':h[J(0x13b)]});}),b['length']>0x0&&b[I(0x13c)](h=>{const K=I;h[K(0x159)]===a?.['suggestion']?Log[K(0x123)](K(0xa4)+h['id']+K(0xec)+h[K(0x159)]):Log[K(0xe8)](K(0xa4)+h['id']+K(0xec)+h['name']);})):Log[I(0xb0)]('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[I(0xb0)](h);}return b;}async[a140t(0x102)](a){const L=a140t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[L(0xb0)](d),process[L(0xbb)](0x1);}}async[a140t(0xdf)](){const M=a140t,a=[];try{const b={'Filters':[{'Name':M(0xdb),'Values':[M(0x104)]}]},c=new DescribeInstancesCommand(b),d=await client[M(0xe0)](c);d[M(0x10e)]?.['forEach']((f,g)=>{const N=M;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[N(0x117)][0x0],n=m?.[N(0x124)](({Key:o})=>o===N(0xf9));a[N(0x121)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[N(0xa1)],'name':l,'env':n?.[N(0x110)]});}}),a[M(0x13a)]>0x0?a['forEach'](f=>{const O=M,g=O(0xa4)+f['id']+O(0xec)+f[O(0x159)]+'\x20ENV:\x20'+f[O(0xfd)]+O(0x131)+f[O(0xb9)]+O(0xc9)+f[O(0xeb)]+'\x20PUB_IP:\x20'+f[O(0x109)]+O(0xe7)+f[O(0x151)];if(f[O(0xb9)]==='terminated')Log['error'](g);else f['status']===O(0xdd)?Log[O(0x123)](g):Log['notice'](g);}):Log[M(0xb0)](M(0xc5));}catch(f){Log[M(0xb0)](f);}return a;}async[a140t(0xed)](a){const P=a140t;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[P(0xe0)](c);return d['$metadata'][P(0xb1)]===0xc8&&Log[P(0x123)](P(0x134)),d;}catch(f){Log[P(0xb0)](f);}}async[a140t(0xaf)](){const Q=a140t;let a='';Log[Q(0xe8)](Q(0xdc));const b=new DescribeVpcsCommand({}),c=await client[Q(0xe0)](b),{Vpcs:d}=c,e=[];d&&d[Q(0x13c)]((g,h)=>{const R=Q;g['VpcId']&&g[R(0xd5)]&&e['push']({'id':h,'vpcId':g['VpcId'],'cidr':g['CidrBlock']});});e[Q(0x13c)](function(g){const S=Q;console['log']('ID:\x20'+g['id']+S(0x11c)+g[S(0x137)]+S(0xa3)+g[S(0x10a)]);});const f=await Actions['ask']('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[Q(0x13c)](function(g){const T=Q;g['id']==f&&(a=g[T(0x137)],Log[T(0x123)](T(0xf4)+a+'\x0a'));});if(a==='')return Log[Q(0xb0)]('That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.'),'';return a;}async[a140t(0x115)](){const U=a140t,a=await this[U(0xdf)]();if(a['length']===0x0)return Log[U(0xb0)](U(0xe9)),null;const b=await Actions['ask']('[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20');!b&&(Log[U(0xb0)](U(0xcb)),process['exit'](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a140t(0x135)]({env:a}){const V=a140t,b=this[V(0xae)][V(0xf3)](),{appName:c}=b,d=c+'-'+a,f=await Actions['ask'](V(0xe3)+d+']\x20')||d,{filePath:g}=await this[V(0x14a)]({'keyName':f,'env':a});try{const h=await Actions['confirm'](V(0xcc),!![]);if(h)try{const i=a140e['readFileSync'](a140f[V(0xe1)](V(0xb7),a,V(0xfb)),'utf8'),j=JSON[V(0xda)](i);j[V(0x139)]=a140f[V(0xe1)](V(0x106),f+V(0x132)),a140e['writeFileSync'](a140f[V(0xe1)]('config',a,V(0xfb)),JSON[V(0x11a)](j,null,0x2));}catch(k){Log[V(0xb0)](k),Log[V(0xb0)](V(0xc2));}}catch(l){Log['error'](l),process[V(0xbb)](0x1);}return{'keyName':f,'filePath':g};}async[a140t(0xd4)](a){const W=a140t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[W(0xe0)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const X=W;i[X(0xb2)]&&i[X(0xc1)]&&b[X(0x121)]({'id':j,'name':i[X(0xb2)],'sgId':i[X(0xc1)]});});let g='',h=0x0;return b[W(0x13c)](function(i){const Y=W;i[Y(0x159)]===a&&(g=i[Y(0xd6)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a140t(0x100)](a){const Z=a140t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[Z(0xe0)](c);}catch(d){Log['error'](d),process[Z(0xbb)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a141d,c=a();while(!![]){try{var d=parseInt(k(0xe6))/0x1+parseInt(k(0xe9))/0x2*(parseInt(k(0xe5))/0x3)+-parseInt(k(0xef))/0x4+-parseInt(k(0xf0))/0x5+-parseInt(k(0xea))/0x6+parseInt(k(0xe8))/0x7*(-parseInt(k(0xeb))/0x8)+parseInt(k(0xed))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xc97c7));function a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0xe5;var f=c[d];return f;},a141d(a,b);}function a141c(){var n=['2475120EoGmnq','(((.+)+)+)+$','26685972XthWum','apply','4079772WSPvEO','2180050WQqedn','1497006IsUuYC','621515OlhfIK','toString','14GkqYsl','2TSFesb','7113630AMpDco'];a141c=function(){return n;};return a141c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a141d;if(h){var j=h[l(0xee)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a141d;return e[m(0xe7)]()['search'](m(0xec))[m(0xe7)]()['constructor'](e)['search'](m(0xec));});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(a,b){var k=a141d,c=a();while(!![]){try{var d=-parseInt(k(0x84))/0x1*(-parseInt(k(0x83))/0x2)+parseInt(k(0x7e))/0x3+parseInt(k(0x7d))/0x4+-parseInt(k(0x7c))/0x5*(parseInt(k(0x85))/0x6)+parseInt(k(0x81))/0x7*(parseInt(k(0x82))/0x8)+-parseInt(k(0x79))/0x9*(parseInt(k(0x7f))/0xa)+-parseInt(k(0x7b))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x2383b));function a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0x79;var f=c[d];return f;},a141d(a,b);}export var CountryCode;function a141c(){var n=['497756ReCvxX','349443AbUkgx','1310OjudcS','apply','3773lfchuC','2008lZeUyI','746geVdqB','697FnoZds','27078YzWPcj','15129wiqLlr','search','145981Xvjjgp','285Wqtafn'];a141c=function(){return n;};return a141c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a141d;if(h){var j=h[l(0x80)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a141d;return e['toString']()[m(0x7a)]('(((.+)+)+)+$')['toString']()['constructor'](e)[m(0x7a)]('(((.+)+)+)+$');});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 a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x1a7))/0x1*(-parseInt(j(0x1b3))/0x2)+-parseInt(j(0x1a8))/0x3+parseInt(j(0x1a9))/0x4+parseInt(j(0x1ac))/0x5+parseInt(j(0x1a4))/0x6*(parseInt(j(0x1af))/0x7)+-parseInt(j(0x1b6))/0x8+parseInt(j(0x1be))/0x9*(-parseInt(j(0x1bc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xeec24));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x1bd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x1b0)]()[l(0x1b8)]('(((.+)+)+)+$')['toString']()['constructor'](a142a)['search'](l(0x1b1));});a142a();import{execSync}from'child_process';function a142c(){const q=['\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','join','3748970qEobyw','push','awsLogin','21CLuckH','toString','(((.+)+)+)+$','docker\x20','2518lZzUGN','.amazonaws.com','tag','13733464rhbQES','error','search','inherit','pushImage','echo\x20','40vPiORC','apply','4503231vnuodo','1923126sfsOSH','.dkr.ecr.','.amazonaws.com/','1373YxIiHb','387807KaEGkM','5541520LqNSsF'];a142c=function(){return q;};return a142c();}import{Log}from'../log/log.class.js';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x1a4;let f=c[d];return f;},a142d(a,b);}export class Docker{static[a142m(0x1b5)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a142m;try{const f=[n(0x1b5),a,b+n(0x1a5)+c+n(0x1a6)+d],g='docker\x20'+f[n(0x1ab)]('\x20'),h=execSync(g,{'stdio':n(0x1b9)})[n(0x1b0)]();return h;}catch(i){return Log['error'](i),'';}}static[a142m(0x1ae)]({awsAccountId:a,region:b,password:c}){const o=a142m;try{const d=o(0x1bb)+c+o(0x1aa)+a+'.dkr.ecr.'+b+o(0x1b4);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log['error'](f),'';}}static[a142m(0x1ba)]({awsAccountId:a,region:b,repoName:c}){const p=a142m;try{const d=[p(0x1ad),a+p(0x1a5)+b+p(0x1a6)+c],f=p(0x1b2)+d[p(0x1ab)]('\x20'),g=execSync(f,{'stdio':p(0x1b9)})[p(0x1b0)]();return g;}catch(h){return Log[p(0x1b7)](h),'';}}}
1
+ function a142c(){const q=['1582122ZGApHM','1470246rXuJgb','push','inherit','7SismyF','docker\x20','constructor','30030120EvSFhF','search','error','(((.+)+)+)+$','153220FIZuEx','pushImage','apply','tag','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','toString','3884220Aghcyd','1418664KUaRiF','.dkr.ecr.','9262224ebcRxb','25oAPVNQ','1qADcvn'];a142c=function(){return q;};return a142c();}const a142m=a142d;function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x110;let f=c[d];return f;},a142d(a,b);}(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x11e))/0x1*(parseInt(j(0x11f))/0x2)+-parseInt(j(0x11a))/0x3+-parseInt(j(0x113))/0x4*(-parseInt(j(0x11d))/0x5)+parseInt(j(0x120))/0x6+parseInt(j(0x123))/0x7*(-parseInt(j(0x11c))/0x8)+-parseInt(j(0x119))/0x9+parseInt(j(0x126))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x8f21f));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x115)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a['toString']()[l(0x110)]('(((.+)+)+)+$')['toString']()[l(0x125)](a142a)['search'](l(0x112));});a142a();import{execSync}from'child_process';import{Log}from'../log/log.class.js';export class Docker{static[a142m(0x116)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a142m;try{const f=['tag',a,b+n(0x11b)+c+'.amazonaws.com/'+d],g=n(0x124)+f['join']('\x20'),h=execSync(g,{'stdio':n(0x122)})['toString']();return h;}catch(i){return Log[n(0x111)](i),'';}}static['awsLogin']({awsAccountId:a,region:b,password:c}){const o=a142m;try{const d='echo\x20'+c+o(0x117)+a+o(0x11b)+b+'.amazonaws.com';return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log[o(0x111)](f),'';}}static[a142m(0x114)]({awsAccountId:a,region:b,repoName:c}){const p=a142m;try{const d=[p(0x121),a+p(0x11b)+b+'.amazonaws.com/'+c],f=p(0x124)+d['join']('\x20'),g=execSync(f,{'stdio':p(0x122)})[p(0x118)]();return g;}catch(h){return Log[p(0x111)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a143d,c=a();while(!![]){try{var d=-parseInt(f(0xd3))/0x1+parseInt(f(0xd9))/0x2+parseInt(f(0xdd))/0x3*(-parseInt(f(0xd8))/0x4)+parseInt(f(0xd4))/0x5*(parseInt(f(0xd0))/0x6)+-parseInt(f(0xd7))/0x7*(parseInt(f(0xd1))/0x8)+parseInt(f(0xdb))/0x9*(parseInt(f(0xd5))/0xa)+parseInt(f(0xda))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x2f582));var a143b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a143d;if(c){var e=c[g(0xdc)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){var h=a143d;return a143a[h(0xd6)]()['search'](h(0xd2))['toString']()[h(0xde)](a143a)['search'](h(0xd2));});a143a();function a143d(a,b){var c=a143c();return a143d=function(d,e){d=d-0xd0;var f=c[d];return f;},a143d(a,b);}function a143c(){var i=['1596330HnFjNY','toString','43603SlKMyJ','32VpnXAp','499208YqCFJv','2698696KHnVSz','9zTaFZf','apply','81768hJVCRK','constructor','1374414xsMnZF','408PRkabk','(((.+)+)+)+$','153993MIGxoh','5MGKfnm'];a143c=function(){return i;};return a143c();}export{};
1
+ (function(a,b){var f=a143d,c=a();while(!![]){try{var d=-parseInt(f(0x9a))/0x1+parseInt(f(0x9e))/0x2*(-parseInt(f(0x95))/0x3)+-parseInt(f(0x92))/0x4+-parseInt(f(0x91))/0x5*(parseInt(f(0x96))/0x6)+parseInt(f(0x9c))/0x7+-parseInt(f(0x9d))/0x8*(-parseInt(f(0x97))/0x9)+parseInt(f(0x99))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0xace54));function a143c(){var i=['1283531oFnJWi','constructor','8855742hLFoqc','36544DqkHqs','58yaldrU','toString','8065GEMDnR','3750628WmzGkS','search','(((.+)+)+)+$','129189urJjrZ','1224BQqoJi','225xxtUuU','apply','31279410bJcBLa'];a143c=function(){return i;};return a143c();}function a143d(a,b){var c=a143c();return a143d=function(d,e){d=d-0x91;var f=c[d];return f;},a143d(a,b);}var a143b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a143d;if(c){var e=c[g(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){var h=a143d;return a143a[h(0x9f)]()['search'](h(0x94))[h(0x9f)]()[h(0x9b)](a143a)[h(0x93)]('(((.+)+)+)+$');});a143a();export{};