@maka/maka-cli 4.12.3 → 4.12.5

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 -16
  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 -0
  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 -0
  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 -0
  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 -16
@@ -1 +1 @@
1
- const a127m=a127d;function a127d(a,b){const c=a127c();return a127d=function(d,e){d=d-0x126;let f=c[d];return f;},a127d(a,b);}(function(a,b){const j=a127d,c=a();while(!![]){try{const d=-parseInt(j(0x13c))/0x1+-parseInt(j(0x163))/0x2+parseInt(j(0x166))/0x3+parseInt(j(0x152))/0x4+-parseInt(j(0x168))/0x5+-parseInt(j(0x145))/0x6+parseInt(j(0x146))/0x7;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a127c,0x77e56));const a127b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a127d;if(c){const e=c[k(0x14c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a127a=a127b(this,function(){const l=a127d;return a127a[l(0x13b)]()[l(0x13a)](l(0x147))[l(0x13b)]()[l(0x13d)](a127a)[l(0x13a)](l(0x147));});a127a();import a127e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a127c(){const p=['true','search','toString','123670ATInfV','constructor','template/template.css','findAppDirectory','/imports/ui/','dir','pages','.html','.js','5115822GWxDFG','11167219CNRaoD','(((.+)+)+)+$','.css','template/template.html','ramda','component','apply','page','withHook','api','baseDir','fileName','878060SNoFFx','route','injectAtBeginningOfFile','setTemplate','hasOwnProperty','relative','test','react','hook/hook.js','css','hooks','injectTemplateModule','template','/imports/ui/pages','maka\x20g:page\x20todos/todos-item','layout','features','1204824ZcMCOJ','import\x20\x27./','create','1999626TobRZW','layouts','2057805TnSVcI','fsi','withHooks','string','Updating\x20npm\x20packages\x20...','component/component.js','installNpmPackage','none','html','checkNpmPackage','store','className','ssr','pathFromProject','\x27;\x0a','resourceName','client','root','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','engines','processAndRunGenerator','withValue','warn','getMakaProjectConfig','pathFromApp','.app-tests.js','components'];a127c=function(){return p;};return a127c();}import a127f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a127m(0x165)]({'name':a127m(0x14d),'aliases':aliases,'usage':a127m(0x130),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a127m(0x150),'values':[a127m(0x15c),a127m(0x138),a127m(0x142),a127m(0x167)]},{'name':a127m(0x14e),'boolFlag':!![]}],'examples':[a127m(0x160)]},async function(a,b){const n=a127m,c=b['baseDir']?n(0x140)+b[n(0x150)]:n(0x15f),d=this[n(0x169)][n(0x13f)](),e=this['fsi'][n(0x136)]({'pathParts':[c,b[n(0x141)],paramCase(b['resourceName']),paramCase(b[n(0x12d)])]}),f=this[n(0x169)][n(0x135)]();let g='';return await this[n(0x169)][n(0x133)](f,async()=>{const o=n;typeof f[o(0x15e)]['html']==='string'&&(f[o(0x15e)][o(0x126)]=f['template'][o(0x126)]===o(0x139)?!![]:![],this[o(0x169)][o(0x155)]('html',f[o(0x15e)]['html']));typeof f[o(0x15e)][o(0x158)]===o(0x16b)&&(f[o(0x15e)][o(0x158)]=f[o(0x15e)][o(0x158)]===o(0x139)?!![]:![],this[o(0x169)][o(0x155)]('test',f['template'][o(0x158)]));typeof f[o(0x15e)]['css']===o(0x16b)&&(f[o(0x15e)]['css']=f['template'][o(0x15b)]===o(0x139)?!![]:![],this[o(0x169)]['setTemplate'](o(0x15b),f[o(0x15e)]['css']));typeof f[o(0x15e)]['js']===o(0x16b)&&(f[o(0x15e)]['js']=f[o(0x15e)]['js']===o(0x139)?!![]:![],this[o(0x169)]['setTemplate']('js',f['template']['js']));!f[o(0x162)]&&(f['features']={});!b[o(0x12f)]&&!this[o(0x169)][o(0x127)](o(0x14a))&&(Log[o(0x134)](o(0x16c)),this[o(0x169)][o(0x16e)](o(0x14a),{'cwd':d}));const h={'name':pascalCase(b[o(0x12d)]),'myPath':a127e[o(0x157)](this['fsi'][o(0x12b)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[o(0x12d)]),'camelCaseName':camelCase(b[o(0x12d)]),'fileName':paramCase(b[o(0x12d)]),'graphql':f[o(0x131)]['graphql'],'features':f[o(0x162)],'client':f[o(0x131)][o(0x12e)],'api':f[o(0x131)][o(0x14f)],'ssr':f[o(0x131)][o(0x12a)],'isStore':b[o(0x156)](o(0x128)),'isComponent':b[o(0x156)](o(0x14b)),'isLayout':b['hasOwnProperty'](o(0x161)),'withTranslations':f[o(0x162)]['withTranslations'],'test':f[o(0x131)][o(0x158)],'theme':f[o(0x131)]['theme']};f[o(0x15e)][o(0x126)]&&await this[o(0x169)][o(0x15e)]({'srcPath':o(0x149),'destPath':e+o(0x143),'context':h,'config':f});f[o(0x162)]?.[o(0x16a)]||b[o(0x14e)]?await this['fsi'][o(0x15e)]({'srcPath':o(0x15a),'destPath':e+o(0x144),'framework':o(0x159),'context':h,'config':f}):await this[o(0x169)][o(0x15e)]({'srcPath':o(0x16d),'destPath':e+o(0x144),'framework':o(0x159),'context':h,'config':f});f[o(0x131)][o(0x158)]!==o(0x16f)&&await this['fsi'][o(0x15e)]({'srcPath':'test/test.js','destPath':e+o(0x137),'framework':o(0x159),'context':h,'config':f});f[o(0x15e)][o(0x15b)]&&await this[o(0x169)][o(0x15e)]({'srcPath':o(0x13e),'destPath':e+o(0x148),'context':Object['assign']({},h,{'className':paramCase(b[o(0x12d)])}),'config':f});f[o(0x131)][o(0x12e)]!==o(0x159)&&f[o(0x131)][o(0x12e)]!=='vanilla'?(f['template']['css']&&await this[o(0x169)]['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x131)]['js'],'content':o(0x164)+h[o(0x151)]+'.'+f[o(0x131)]['html']+o(0x12c)+o(0x164)+h[o(0x151)]+'.'+f[o(0x131)]['css']+'\x27;'}),!f[o(0x15e)][o(0x15b)]&&await this['fsi']['injectAtBeginningOfFile']({'filePath':e+'.'+f[o(0x131)]['js'],'content':o(0x164)+h[o(0x151)]+'.'+f[o(0x131)]['html']+'\x27;'})):f[o(0x15e)][o(0x15b)]&&await this[o(0x169)][o(0x154)]({'filePath':e+'.'+f[o(0x131)]['js'],'content':o(0x164)+h[o(0x151)]+'.'+f[o(0x131)][o(0x15b)]+'\x27;'});const i=b[o(0x141)]?'/'+b['dir']+'/':'/';g=''+c+i+h['fileName']+'/'+h[o(0x151)],await this['fsi'][o(0x15d)](h[o(0x129)],f,g),!b[o(0x12f)]&&await a127f[o(0x132)](o(0x153),[i+b['resourceName']],b);}),g+'.'+f[n(0x131)]['js'];});
1
+ const a130m=a130d;function a130c(){const p=['warn','99DKsgzH','client','template/template.css','engines','import\x20\x27./','processAndRunGenerator','page','fileName','8teWKrD','getMakaProjectConfig','pages','relative','component/component.js','395750VZaKll','4052839LWiLQE','.app-tests.js','checkNpmPackage','component','withHook','toString','ramda','injectAtBeginningOfFile','assign','withValue','11114832ASayLF','apply','installNpmPackage','(((.+)+)+)+$','18IGIups','withHooks','2230745cSowwt','dir','layout','Updating\x20npm\x20packages\x20...','graphql','pathFromProject','true','template','api','hasOwnProperty','root','.html','baseDir','theme','findAppDirectory','hooks','\x27;\x0a','string','search','pathFromApp','className','test','css','setTemplate','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','react','create','4fZHLFn','vanilla','html','features','layouts','ssr','152227oFfvhL','store','template/template.html','fsi','6vjCyWL','test/test.js','2208924BoXaIa','hook/hook.js','21924LjAyci','resourceName','maka\x20g:page\x20todos/todos-item'];a130c=function(){return p;};return a130c();}function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1ec;let f=c[d];return f;},a130d(a,b);}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=parseInt(j(0x207))/0x1*(parseInt(j(0x201))/0x2)+-parseInt(j(0x22f))/0x3*(-parseInt(j(0x20f))/0x4)+-parseInt(j(0x231))/0x5*(-parseInt(j(0x20b))/0x6)+parseInt(j(0x221))/0x7*(parseInt(j(0x21b))/0x8)+parseInt(j(0x20d))/0x9+-parseInt(j(0x220))/0xa*(parseInt(j(0x213))/0xb)+-parseInt(j(0x22b))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0x4f773));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x22c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a['toString']()[l(0x1f8)](l(0x22e))[l(0x226)]()['constructor'](a130a)['search'](l(0x22e));});a130a();import a130e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a130f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a130m(0x200)]({'name':a130m(0x219),'aliases':aliases,'usage':a130m(0x1fe),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a130m(0x1f2),'values':[a130m(0x1f5),'components',a130m(0x21d),a130m(0x205)]},{'name':a130m(0x225),'boolFlag':!![]}],'examples':[a130m(0x211)]},async function(a,b){const n=a130m,c=b[n(0x1f2)]?'/imports/ui/'+b[n(0x1f2)]:'/imports/ui/pages',d=this['fsi'][n(0x1f4)](),e=this[n(0x20a)][n(0x1f9)]({'pathParts':[c,b[n(0x232)],paramCase(b[n(0x210)]),paramCase(b['resourceName'])]}),f=this['fsi'][n(0x21c)]();let g='';return await this[n(0x20a)][n(0x22a)](f,async()=>{const o=n;typeof f['template'][o(0x203)]===o(0x1f7)&&(f[o(0x1ed)]['html']=f[o(0x1ed)][o(0x203)]===o(0x1ec)?!![]:![],this[o(0x20a)][o(0x1fd)](o(0x203),f[o(0x1ed)]['html']));typeof f[o(0x1ed)][o(0x1fb)]===o(0x1f7)&&(f[o(0x1ed)][o(0x1fb)]=f[o(0x1ed)][o(0x1fb)]===o(0x1ec)?!![]:![],this[o(0x20a)][o(0x1fd)](o(0x1fb),f[o(0x1ed)]['test']));typeof f[o(0x1ed)][o(0x1fc)]===o(0x1f7)&&(f[o(0x1ed)]['css']=f['template'][o(0x1fc)]==='true'?!![]:![],this['fsi'][o(0x1fd)](o(0x1fc),f[o(0x1ed)]['css']));typeof f['template']['js']===o(0x1f7)&&(f[o(0x1ed)]['js']=f[o(0x1ed)]['js']===o(0x1ec)?!![]:![],this[o(0x20a)][o(0x1fd)]('js',f[o(0x1ed)]['js']));!f[o(0x204)]&&(f[o(0x204)]={});!b['root']&&!this['fsi'][o(0x223)](o(0x227))&&(Log[o(0x212)](o(0x234)),this[o(0x20a)][o(0x22d)](o(0x227),{'cwd':d}));const h={'name':pascalCase(b[o(0x210)]),'myPath':a130e[o(0x21e)](this['fsi'][o(0x236)]({}),e),'cssCaseName':paramCase(b['resourceName']),'className':pascalCase(b[o(0x210)]),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x210)]),'graphql':f['engines'][o(0x235)],'features':f['features'],'client':f['engines'][o(0x214)],'api':f[o(0x216)][o(0x1ee)],'ssr':f[o(0x216)][o(0x206)],'isStore':b[o(0x1ef)](o(0x208)),'isComponent':b['hasOwnProperty'](o(0x224)),'isLayout':b[o(0x1ef)](o(0x233)),'withTranslations':f['features']['withTranslations'],'test':f['engines'][o(0x1fb)],'theme':f[o(0x216)][o(0x1f3)]};f['template'][o(0x203)]&&await this['fsi'][o(0x1ed)]({'srcPath':o(0x209),'destPath':e+o(0x1f1),'context':h,'config':f});f[o(0x204)]?.[o(0x230)]||b[o(0x225)]?await this[o(0x20a)][o(0x1ed)]({'srcPath':o(0x20e),'destPath':e+'.js','framework':'react','context':h,'config':f}):await this['fsi'][o(0x1ed)]({'srcPath':o(0x21f),'destPath':e+'.js','framework':o(0x1ff),'context':h,'config':f});f['engines'][o(0x1fb)]!=='none'&&await this['fsi'][o(0x1ed)]({'srcPath':o(0x20c),'destPath':e+o(0x222),'framework':o(0x1ff),'context':h,'config':f});f[o(0x1ed)]['css']&&await this['fsi'][o(0x1ed)]({'srcPath':o(0x215),'destPath':e+'.css','context':Object[o(0x229)]({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0x216)]['client']!=='react'&&f[o(0x216)][o(0x214)]!==o(0x202)?(f[o(0x1ed)][o(0x1fc)]&&await this[o(0x20a)][o(0x228)]({'filePath':e+'.'+f[o(0x216)]['js'],'content':o(0x217)+h[o(0x21a)]+'.'+f[o(0x216)][o(0x203)]+o(0x1f6)+'import\x20\x27./'+h['fileName']+'.'+f[o(0x216)][o(0x1fc)]+'\x27;'}),!f[o(0x1ed)][o(0x1fc)]&&await this[o(0x20a)][o(0x228)]({'filePath':e+'.'+f[o(0x216)]['js'],'content':'import\x20\x27./'+h[o(0x21a)]+'.'+f[o(0x216)]['html']+'\x27;'})):f[o(0x1ed)][o(0x1fc)]&&await this[o(0x20a)][o(0x228)]({'filePath':e+'.'+f[o(0x216)]['js'],'content':o(0x217)+h['fileName']+'.'+f['engines'][o(0x1fc)]+'\x27;'});const i=b[o(0x232)]?'/'+b[o(0x232)]+'/':'/';g=''+c+i+h['fileName']+'/'+h['fileName'],await this[o(0x20a)]['injectTemplateModule'](h[o(0x1fa)],f,g),!b[o(0x1f0)]&&await a130f[o(0x218)]('route',[i+b['resourceName']],b);}),g+'.'+f[n(0x216)]['js'];});
@@ -1 +1 @@
1
- const a128o=a128d;function a128c(){const r=['468181KlRdKQ','force','249xLBGbk','/imports/ui/','baseDir','12QxLtVS','error','engines','toString','server','template','952068cAJePy','12aisKQd','resourceName','imports','110HkodFD','6488wyKEpB','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','maka\x20g:publish\x20todos','130527kTMefW','search','17580277uECFIK','import\x20\x27./publications','create','fsi','dir','publish','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','(((.+)+)+)+$','6DxARue','565045thkPax','getMakaProjectConfig','exit','pathFromApp','/imports/startup/server/publications','globalPublish','3730144sYvxRK'];a128c=function(){return r;};return a128c();}(function(a,b){const m=a128d,c=a();while(!![]){try{const d=-parseInt(m(0x1ad))/0x1+-parseInt(m(0x1b2))/0x2*(parseInt(m(0x1a4))/0x3)+parseInt(m(0x1ae))/0x4*(parseInt(m(0x1c0))/0x5)+-parseInt(m(0x1bf))/0x6*(-parseInt(m(0x1a2))/0x7)+-parseInt(m(0x1a1))/0x8+-parseInt(m(0x1b5))/0x9*(-parseInt(m(0x1b1))/0xa)+-parseInt(m(0x1b7))/0xb*(-parseInt(m(0x1a7))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a128c,0x7439e));const a128b=(function(){let a=!![];return function(b,c){const d=a?function(){if(c){const e=c['apply'](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a128a=a128b(this,function(){const n=a128d;return a128a[n(0x1aa)]()[n(0x1b6)](n(0x1be))['toString']()['constructor'](a128a)[n(0x1b6)](n(0x1be));});function a128d(a,b){const c=a128c();return a128d=function(d,e){d=d-0x19f;let f=c[d];return f;},a128d(a,b);}a128a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a128o(0x1b9)]({'name':a128o(0x1bc),'aliases':['p'],'usage':a128o(0x1bd),'shortDesc':a128o(0x1b3),'validOpts':[a128o(0x1a3),'globalPublish'],'examples':[a128o(0x1b4)]},async function(a,b){const p=a128o;try{const c=b[p(0x1a3)]||![],d=b['baseDir']?p(0x1a5)+b[p(0x1a6)]:p(0x19f),f=this[p(0x1ba)][p(0x1c1)](),g=paramCase(b[p(0x1af)]),h=this[p(0x1ba)][p(0x1c3)]({'pathParts':[d,b[p(0x1bb)],'',g]});let i='js';f[p(0x1a9)]['js']==='tsx'&&(i='ts');await this[p(0x1ba)]['withValue'](f,async()=>{const q=p,l={'name':b[q(0x1af)],'collection':pascalCase(b[q(0x1af)]),'noRename':!![],'globalPublish':b[q(0x1a0)]};await this[q(0x1ba)][q(0x1ac)]({'srcPath':'publish/publish.js','destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[p(0x1ba)][p(0x1c3)]({'pathParts':[p(0x1b0),'startup',p(0x1ab),b['appPathPrefix'],'index.'+f[p(0x1a9)]['js']]}),k=b[p(0x1bb)]?'/'+b[p(0x1bb)]+'/':'/';return await this[p(0x1ba)]['injectAtEndOfFile']({'filePath':j,'content':p(0x1b8)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[p(0x1a8)](l),process[p(0x1c2)](0x1);}});
1
+ const a131p=a131d;function a131d(a,b){const c=a131c();return a131d=function(d,e){d=d-0xee;let f=c[d];return f;},a131d(a,b);}(function(a,b){const m=a131d,c=a();while(!![]){try{const d=parseInt(m(0xfa))/0x1+parseInt(m(0x105))/0x2*(-parseInt(m(0x100))/0x3)+parseInt(m(0x109))/0x4+-parseInt(m(0x101))/0x5*(parseInt(m(0x106))/0x6)+-parseInt(m(0xef))/0x7+-parseInt(m(0x107))/0x8+parseInt(m(0xf9))/0x9*(parseInt(m(0xfc))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0x84ba9));const a131b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a131d;if(c){const e=c[n(0xf5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a131a=a131b(this,function(){const o=a131d;return a131a['toString']()[o(0x10f)](o(0xfe))[o(0xf3)]()[o(0x112)](a131a)[o(0x10f)](o(0xfe));});a131a();import{paramCase,pascalCase}from'change-case';function a131c(){const s=['force','2305365SIwMxp','5vuoDWM','publish','withValue','globalPublish','2lDorzh','391470MjpTzt','5095640LHDmQM','exit','3705828EJPUvm','appPathPrefix','getMakaProjectConfig','pathFromApp','injectAtEndOfFile','/imports/startup/server/publications','search','index.','startup','constructor','dir','publish/publish.js','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','template','6567666AIijGx','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','maka\x20g:publish\x20todos','imports','toString','error','apply','engines','import\x20\x27./publications','baseDir','9vlhluh','201174FMkewn','fsi','18249190lgNSVa','resourceName','(((.+)+)+)+$'];a131c=function(){return s;};return a131c();}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a131p(0x102),'aliases':['p'],'usage':a131p(0x115),'shortDesc':a131p(0xf0),'validOpts':[a131p(0xff),a131p(0x104)],'examples':[a131p(0xf1)]},async function(a,b){const q=a131p;try{const c=b[q(0xff)]||![],d=b[q(0xf8)]?'/imports/ui/'+b[q(0xf8)]:q(0x10e),f=this['fsi'][q(0x10b)](),g=paramCase(b[q(0xfd)]),h=this[q(0xfb)][q(0x10c)]({'pathParts':[d,b[q(0x113)],'',g]});let i='js';f[q(0xf6)]['js']==='tsx'&&(i='ts');await this['fsi'][q(0x103)](f,async()=>{const r=q,l={'name':b[r(0xfd)],'collection':pascalCase(b[r(0xfd)]),'noRename':!![],'globalPublish':b[r(0x104)]};await this[r(0xfb)][r(0xee)]({'srcPath':r(0x114),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this[q(0xfb)][q(0x10c)]({'pathParts':[q(0xf2),q(0x111),'server',b[q(0x10a)],q(0x110)+f[q(0xf6)]['js']]}),k=b[q(0x113)]?'/'+b['dir']+'/':'/';return await this[q(0xfb)][q(0x10d)]({'filePath':j,'content':q(0xf7)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0xf4)](l),process[q(0x108)](0x1);}});
@@ -1 +1 @@
1
- function a129d(a,b){const c=a129c();return a129d=function(d,e){d=d-0x1cf;let f=c[d];return f;},a129d(a,b);}const a129B=a129d;(function(a,b){const y=a129d,c=a();while(!![]){try{const d=-parseInt(y(0x207))/0x1*(parseInt(y(0x20d))/0x2)+parseInt(y(0x222))/0x3+-parseInt(y(0x221))/0x4+parseInt(y(0x20c))/0x5*(-parseInt(y(0x213))/0x6)+-parseInt(y(0x1ec))/0x7*(-parseInt(y(0x21e))/0x8)+parseInt(y(0x1d3))/0x9*(parseInt(y(0x1d0))/0xa)+parseInt(y(0x1db))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a129c,0xa9393));const a129b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a129d;if(c){const e=c[z(0x1f7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a129a=a129b(this,function(){const A=a129d;return a129a[A(0x1e5)]()[A(0x1d5)](A(0x1e8))['toString']()[A(0x1e9)](a129a)[A(0x1d5)]('(((.+)+)+)+$');});a129a();import a129e from'path';import{Generator}from'../generator.js';function a129c(){const K=['layout','maka\x20g:route\x20todosEdit\x20todos/:id/edit','replace','3172520lWxwuw','<Router','injectAfterLineNumber','2611576ZnEkiW','110052lnfTPg','warn','20RpTtHY','cwd','maka\x20g:route\x20pages/about','740547uBszVt','fsi','search','withValue','routes.js','rewriteDestinationPathForEngine','react','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','11475530oVRSCU','resourceName','layouts','pop','error','maka\x20g:route\x20todosIndex\x20todos','Adding\x20route\x20','const\x20privateRoutes\x20=\x20(<>','</Router>','config','toString','\x20to\x20','Scaffolding\x20for\x20a\x20Route.','(((.+)+)+)+$','constructor','templateName','vanilla','7AyNHuR','join','only','route','newForm','MasterLayout','components','dir','readFileLines','ssr','length','apply','includes','map','url','<Route','Invalid\x20directory\x20option\x20\x22','maka\x20g:route\x20pages/lists/listIndex\x20lists','client','pages','baseDir','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','indexOf','templateContent','pathFromApp','\x20already\x20exists.\x20Skipping.','route/route.js','7IpfMmq','imports','root','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','lib','845YimaZd','37452GAzHfV','engines','const\x20publicRoutes\x20=\x20(<>','withHook','startup','withTranslations','5820VLGpGW','toLowerCase','private','Route\x20','features','filter','/imports/ui/','\x22*\x22'];a129c=function(){return K;};return a129c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':a129B(0x1ef),'aliases':aliases,'validOpts':[a129B(0x215),a129B(0x21b),a129B(0x1ee),a129B(0x1d1),a129B(0x1e4),a129B(0x209),a129B(0x210),a129B(0x1fa),a129B(0x200)],'usage':a129B(0x1da),'shortDesc':a129B(0x1e7),'examples':[a129B(0x1e0),a129B(0x21c),a129B(0x201),a129B(0x1fd),a129B(0x1d2)]},async function(a,b){const C=a129B;try{const c=['hooks',C(0x1f2),C(0x1ff),C(0x1dd)];if(b[C(0x200)]&&!c[C(0x1f8)](b[C(0x200)])){Log[C(0x1df)](C(0x1fc)+b['baseDir']+'\x22'),Log[C(0x1df)]('Valid\x20options\x20are:\x20'+c[C(0x1ed)](',\x20'));throw new UsageError();}const d=this[C(0x1d4)]['getMakaProjectConfig']();await this[C(0x1d4)][C(0x1d6)](d,async()=>{const D=C,f=b[D(0x215)]??![];let g=b[D(0x1dc)]['split']('/')[D(0x1de)]();if(!g){Log[D(0x1df)]('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h=b[D(0x1fa)]?'/'+b['url']:'/'+b[D(0x1dc)];a[D(0x1f6)]>0x1&&(h='/'+a[D(0x218)](function(n){return n!=='/';})['join']('/')[D(0x214)]());h=h[D(0x21d)](/\/\//g,'/');b[D(0x21b)]&&(b[D(0x21b)]=camelCase(b[D(0x21b)]));const i=b['baseDir']?D(0x219)+b[D(0x200)]:'/imports/ui/pages',j=a129e[D(0x1ed)](i,b[D(0x1f3)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x21b)]||D(0x1f1),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x20e)][D(0x1fe)],'newForm':![],'withTranslations':d[D(0x217)][D(0x212)]};f&&(k[D(0x21b)]='PrivateLayout');let l,m;if(d[D(0x20e)]['client']===D(0x1d9)){if(d[D(0x20e)][D(0x1f5)]==='true'){const r=this[D(0x1d4)][D(0x204)]({'pathParts':[D(0x208),'startup',D(0x20b),D(0x1d7)]});l=this[D(0x1d4)][D(0x1d8)]({'pathParts':[r],'config':d});}else{const s=this[D(0x1d4)][D(0x204)]({'pathParts':[D(0x208),D(0x211),'client','routes.js']});l=this[D(0x1d4)][D(0x1d8)]({'pathParts':[s],'config':d});}const n=await this[D(0x1d4)]['fileContainsString'](l,g);if(n){Log[D(0x1cf)](D(0x216)+g+D(0x205));return;}else{const t=this[D(0x1d4)]['pathFromProject'](l);Log['info'](D(0x1e1)+g+D(0x1e6)+l[D(0x21d)](t,''));}const o=this[D(0x1d4)][D(0x1f4)](l)[D(0x1f9)]((u,v)=>{const E=D;return u[E(0x1f8)]('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})['filter'](u=>u!==null);let p=this['fsi'][D(0x1f4)](l)[D(0x1f9)]((u,v)=>{const F=D;return u[F(0x1f8)](F(0x20f))?v+0x1:null;})[D(0x218)](u=>u!==null),q=this[D(0x1d4)][D(0x1f4)](l)[D(0x1f9)]((u,v)=>{const G=D;return u[G(0x1f8)](G(0x1e2))?v+0x1:null;})[D(0x218)](u=>u!==null);p['length']>0x0&&q[D(0x1f6)]>0x0&&(k[D(0x1f0)]=!![]);m=this[D(0x1d4)][D(0x203)]({'srcPath':D(0x206),'framework':D(0x1d9),'context':k,'config':d});if(p[D(0x1f6)]>0x0||q[D(0x1f6)]>0x0){this[D(0x1d4)][D(0x220)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q['length']>0x0)q=this[D(0x1d4)][D(0x1f4)](l)['map']((u,v)=>{const H=D;return u[H(0x1f8)](H(0x1e2))?v+0x1:null;})[D(0x218)](u=>u!==null),this['fsi'][D(0x220)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p[D(0x1f6)]>0x0?(p=this[D(0x1d4)]['readFileLines'](l)[D(0x1f9)]((u,v)=>{const I=D;return u[I(0x1f8)](I(0x20f))?v+0x1:null;})[D(0x218)](u=>u!==null),this[D(0x1d4)][D(0x220)]({'filePath':l,'content':'\x09{'+k[D(0x1ea)]+'}','lineNumber':p[0x0]})):Log['warn'](D(0x20a)+l);}else{const u=this['fsi'][D(0x1f4)](l)['map'](x=>{const J=D;return x[J(0x1f8)](J(0x21a));}),v=u[D(0x202)](!![])>-0x1,w=v?D(0x1fb):D(0x1e3);await this[D(0x1d4)]['injectIntoFile']({'filePath':l,'content':'\x0a\x09\x09'+m+'\x0a\x09\x09','begin':D(0x21f),'end':w});}}else{if(d['engines'][D(0x1fe)]===D(0x1eb)){const x=this[D(0x1d4)][D(0x204)]({'pathParts':[D(0x208),D(0x211),D(0x1fe),'routes.js']});l=this[D(0x1d4)][D(0x1d8)]({'pathParts':[x],'config':d}),m=this['fsi'][D(0x203)]({'srcPath':D(0x206),'context':k}),await this[D(0x1d4)]['injectAtEndOfFile']({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log['error'](f);}});
1
+ function a132c(){const J=['Scaffolding\x20for\x20a\x20Route.','apply','Adding\x20route\x20','635XVKCAg','9462dTwykA','rewriteDestinationPathForEngine','imports','PrivateLayout','newForm','326AaBxFE','error','Valid\x20options\x20are:\x20','pathFromProject','pages','const\x20publicRoutes\x20=\x20(<>','engines','917trVpIf','warn','869010uJLuVP','baseDir','only','<Route','withValue','root','fileContainsString','pathFromApp','vanilla','startup','\x0a\x09\x09','pop','replace','getMakaProjectConfig','toString','indexOf','templateContent','search','routes.js','lib','client','fsi','templateName','private','dir','constructor','route','injectAtEndOfFile','maka\x20g:route\x20todosEdit\x20todos/:id/edit','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','length','maka\x20g:route\x20pages/lists/listIndex\x20lists','withTranslations','react','/imports/ui/pages','injectIntoFile','injectAfterLineNumber','create','route/route.js','filter','(((.+)+)+)+$','true','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','readFileLines','map','maka\x20g:route\x20todosIndex\x20todos','config','1460560AlzfMV','includes','455488MhExMo','const\x20privateRoutes\x20=\x20(<>','2530094LYrCDE','join','7723251AQMuuE','\x22*\x22','resourceName','split','layout','withHook','Route\x20','</Router>','cwd','hooks'];a132c=function(){return J;};return a132c();}const a132B=a132d;(function(a,b){const y=a132d,c=a();while(!![]){try{const d=parseInt(y(0x8b))/0x1*(-parseInt(y(0x84))/0x2)+parseInt(y(0x8d))/0x3+parseInt(y(0xbc))/0x4+-parseInt(y(0xcf))/0x5*(-parseInt(y(0xd0))/0x6)+parseInt(y(0xc0))/0x7+parseInt(y(0xbe))/0x8+-parseInt(y(0xc2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x40e81));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a132d;if(c){const e=c[z(0xcd)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const A=a132d;return a132a[A(0x9b)]()['search']('(((.+)+)+)+$')[A(0x9b)]()[A(0xa6)](a132a)[A(0x9e)](A(0xb5));});a132a();import a132e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x84;let f=c[d];return f;},a132d(a,b);}import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a132B(0xb2)]({'name':a132B(0xa7),'aliases':aliases,'validOpts':[a132B(0xa4),a132B(0xc6),a132B(0x8f),a132B(0xca),a132B(0xbb),a132B(0x92),a132B(0xc7),'url',a132B(0x8e)],'usage':a132B(0xb7),'shortDesc':a132B(0xcc),'examples':[a132B(0xba),a132B(0xa9),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a132B(0xac),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a132B;try{const c=[C(0xcb),'components',C(0x88),'layouts'];if(b['baseDir']&&!c[C(0xbd)](b[C(0x8e)])){Log[C(0x85)]('Invalid\x20directory\x20option\x20\x22'+b[C(0x8e)]+'\x22'),Log[C(0x85)](C(0x86)+c[C(0xc1)](',\x20'));throw new UsageError();}const d=this[C(0xa2)][C(0x9a)]();await this[C(0xa2)][C(0x91)](d,async()=>{const D=C,f=b[D(0xa4)]??![];let g=b['resourceName'][D(0xc5)]('/')[D(0x98)]();if(!g){Log['error']('Please\x20specify\x20a\x20name\x20for\x20the\x20route.');throw new UsageError();}g=pascalCase(g);let h=b['url']?'/'+b['url']:'/'+b[D(0xc4)];a[D(0xab)]>0x1&&(h='/'+a[D(0xb4)](function(n){return n!=='/';})[D(0xc1)]('/')['toLowerCase']());h=h[D(0x99)](/\/\//g,'/');b[D(0xc6)]&&(b['layout']=camelCase(b['layout']));const i=b['baseDir']?'/imports/ui/'+b[D(0x8e)]:D(0xaf),j=a132e[D(0xc1)](i,b[D(0xa5)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0xc6)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d['engines']['client'],'newForm':![],'withTranslations':d['features'][D(0xad)]};f&&(k[D(0xc6)]=D(0xd3));let l,m;if(d['engines'][D(0xa1)]===D(0xae)){if(d[D(0x8a)]['ssr']===D(0xb6)){const r=this[D(0xa2)][D(0x94)]({'pathParts':[D(0xd2),'startup',D(0xa0),D(0x9f)]});l=this[D(0xa2)][D(0xd1)]({'pathParts':[r],'config':d});}else{const s=this[D(0xa2)]['pathFromApp']({'pathParts':[D(0xd2),D(0x96),D(0xa1),D(0x9f)]});l=this[D(0xa2)][D(0xd1)]({'pathParts':[s],'config':d});}const n=await this[D(0xa2)][D(0x93)](l,g);if(n){Log[D(0x8c)](D(0xc8)+g+'\x20already\x20exists.\x20Skipping.');return;}else{const t=this[D(0xa2)][D(0x87)](l);Log['info'](D(0xce)+g+'\x20to\x20'+l['replace'](t,''));}const o=this[D(0xa2)][D(0xb8)](l)['map']((u,v)=>{return u['includes']('import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;')?v+0x1:null;})[D(0xb4)](u=>u!==null);let p=this[D(0xa2)][D(0xb8)](l)[D(0xb9)]((u,v)=>{const E=D;return u[E(0xbd)](E(0x89))?v+0x1:null;})['filter'](u=>u!==null),q=this[D(0xa2)][D(0xb8)](l)[D(0xb9)]((u,v)=>{const F=D;return u[F(0xbd)](F(0xbf))?v+0x1:null;})[D(0xb4)](u=>u!==null);p[D(0xab)]>0x0&&q[D(0xab)]>0x0&&(k[D(0xd4)]=!![]);m=this[D(0xa2)]['templateContent']({'srcPath':'route/route.js','framework':D(0xae),'context':k,'config':d});if(p[D(0xab)]>0x0||q['length']>0x0){this[D(0xa2)][D(0xb1)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0xab)]>0x0)q=this[D(0xa2)][D(0xb8)](l)[D(0xb9)]((u,v)=>{const G=D;return u[G(0xbd)](G(0xbf))?v+0x1:null;})['filter'](u=>u!==null),this[D(0xa2)][D(0xb1)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[D(0xa2)]['readFileLines'](l)['map']((u,v)=>{const H=D;return u[H(0xbd)](H(0x89))?v+0x1:null;})[D(0xb4)](u=>u!==null),this[D(0xa2)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0xa3)]+'}','lineNumber':p[0x0]})):Log[D(0x8c)](D(0xaa)+l);}else{const u=this[D(0xa2)][D(0xb8)](l)[D(0xb9)](x=>{const I=D;return x['includes'](I(0xc3));}),v=u[D(0x9c)](!![])>-0x1,w=v?D(0x90):D(0xc9);await this[D(0xa2)][D(0xb0)]({'filePath':l,'content':D(0x97)+m+D(0x97),'begin':'<Router','end':w});}}else{if(d['engines'][D(0xa1)]===D(0x95)){const x=this[D(0xa2)][D(0x94)]({'pathParts':[D(0xd2),D(0x96),D(0xa1),D(0x9f)]});l=this[D(0xa2)][D(0xd1)]({'pathParts':[x],'config':d}),m=this[D(0xa2)][D(0x9d)]({'srcPath':D(0xb3),'context':k}),await this[D(0xa2)][D(0xa8)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x85)](f);}});
@@ -1 +1 @@
1
- const a130m=a130d;function a130d(a,b){const c=a130c();return a130d=function(d,e){d=d-0x1f3;let f=c[d];return f;},a130d(a,b);}(function(a,b){const j=a130d,c=a();while(!![]){try{const d=-parseInt(j(0x1f3))/0x1*(-parseInt(j(0x1f6))/0x2)+-parseInt(j(0x1f4))/0x3*(parseInt(j(0x1f8))/0x4)+-parseInt(j(0x216))/0x5+-parseInt(j(0x212))/0x6+-parseInt(j(0x201))/0x7*(parseInt(j(0x20e))/0x8)+parseInt(j(0x207))/0x9+parseInt(j(0x214))/0xa*(parseInt(j(0x1fe))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a130c,0xc1158));const a130b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a130d;if(c){const e=c[k(0x20b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a130a=a130b(this,function(){const l=a130d;return a130a[l(0x217)]()['search'](l(0x1f5))[l(0x217)]()[l(0x205)](a130a)[l(0x208)]('(((.+)+)+)+$');});function a130c(){const p=['Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','10116293KeHavG','startup','getMakaProjectConfig','10332826mgTpWZ','withValue','resourceName','template','constructor','logger','2964150UrSWPs','search','checkNpmPackage','engines','apply','error','service','8cSbkVy','services','maka\x20{generate,\x20g}:{service}\x20<resource-name>','type','5481144mwJMCY','Installing\x20winston','30dqkcza','imports','4611370odKfSU','toString','winston','29501jGFBbj','40827BLpZwv','(((.+)+)+)+$','78AHbhRv','winston\x20setimmediate','40GGUDMc','fsi','pathFromApp','installNpmPackage','service/logger/logger.js'];a130c=function(){return p;};return a130c();}a130a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a130m(0x20d),'aliases':['svc'],'usage':a130m(0x210),'shortDesc':a130m(0x1fd),'requiredOpts':[{'name':a130m(0x211),'values':[a130m(0x206)]}],'validOpts':[],'maxArgLength':0x1,'examples':['maka\x20g:svc\x20service-logger\x20--type=logger']},async function(a,b){const n=a130m;try{const c=this['fsi'][n(0x200)]();await this[n(0x1f9)][n(0x202)](c,async()=>{const o=n,d=this['fsi'][o(0x1fa)]({}),f=paramCase(b[o(0x203)]),g={'name':pascalCase(b[o(0x203)]),'fileName':f,'camelCase':camelCase(b[o(0x203)]),'type':b['type'],'engine':c['engines']['js'],'noRename':!![]};let h='js';c[o(0x20a)]['js']==='tsx'&&(h='ts');if(b[o(0x211)]==='logger'){!this[o(0x1f9)][o(0x209)](o(0x218))&&await this[o(0x1f9)][o(0x1fb)](o(0x1f7),{'cwd':d,'msg':o(0x213)});const i=this['fsi'][o(0x1fa)]({'pathParts':[o(0x215),o(0x1ff),'lib',o(0x20f),f+'.'+h]});await this[o(0x1f9)][o(0x204)]({'srcPath':o(0x1fc),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0x20c)](d);}});
1
+ const a133m=a133d;(function(a,b){const j=a133d,c=a();while(!![]){try{const d=parseInt(j(0xb2))/0x1*(-parseInt(j(0xaf))/0x2)+-parseInt(j(0xc0))/0x3+parseInt(j(0xae))/0x4*(-parseInt(j(0xb6))/0x5)+parseInt(j(0xc2))/0x6+-parseInt(j(0xbf))/0x7+-parseInt(j(0xb0))/0x8*(-parseInt(j(0xc6))/0x9)+parseInt(j(0xaa))/0xa*(parseInt(j(0xb4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x7d8d1));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a133d;if(c){const e=c[k(0xbe)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const l=a133d;return a133a[l(0xcd)]()['search'](l(0xc3))['toString']()[l(0xad)](a133a)[l(0xc7)](l(0xc3));});a133a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0xaa;let f=c[d];return f;},a133d(a,b);}Generator[a133m(0xc4)]({'name':a133m(0xd3),'aliases':[a133m(0xac)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a133m(0xb9),'requiredOpts':[{'name':a133m(0xbd),'values':['logger']}],'validOpts':[],'maxArgLength':0x1,'examples':[a133m(0xbc)]},async function(a,b){const n=a133m;try{const c=this[n(0xd1)][n(0xb8)]();await this[n(0xd1)][n(0xcb)](c,async()=>{const o=n,d=this[o(0xd1)][o(0xd2)]({}),f=paramCase(b[o(0xc1)]),g={'name':pascalCase(b[o(0xc1)]),'fileName':f,'camelCase':camelCase(b['resourceName']),'type':b[o(0xbd)],'engine':c[o(0xbb)]['js'],'noRename':!![]};let h='js';c[o(0xbb)]['js']===o(0xb3)&&(h='ts');if(b[o(0xbd)]===o(0xc5)){!this[o(0xd1)][o(0xcf)](o(0xb7))&&await this[o(0xd1)][o(0xce)](o(0xba),{'cwd':d,'msg':o(0xc9)});const i=this['fsi'][o(0xd2)]({'pathParts':[o(0xca),o(0xcc),o(0xb5),o(0xd0),f+'.'+h]});await this[o(0xd1)][o(0xb1)]({'srcPath':o(0xc8),'destPath':i,'context':g,'config':c});}});}catch(d){Log[n(0xab)](d);}});function a133c(){const p=['Installing\x20winston','imports','withValue','startup','toString','installNpmPackage','checkNpmPackage','services','fsi','pathFromApp','service','8838750BpMkgN','error','svc','constructor','2700jijkhU','281820XSBTvG','64RnwBVc','template','6CWgNZM','tsx','11ZaScTw','lib','525msWWeE','winston','getMakaProjectConfig','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','winston\x20setimmediate','engines','maka\x20g:svc\x20service-logger\x20--type=logger','type','apply','6281653gOGcYJ','42465aMxUiK','resourceName','5710434IdNnvu','(((.+)+)+)+$','create','logger','569826LLsHlE','search','service/logger/logger.js'];a133c=function(){return p;};return a133c();}
@@ -1 +1 @@
1
- function a131d(a,b){var c=a131c();return a131d=function(d,e){d=d-0x1f4;var f=c[d];return f;},a131d(a,b);}(function(a,b){var f=a131d,c=a();while(!![]){try{var d=-parseInt(f(0x1f5))/0x1+parseInt(f(0x1f8))/0x2+-parseInt(f(0x1f9))/0x3*(-parseInt(f(0x1ff))/0x4)+-parseInt(f(0x1f4))/0x5+-parseInt(f(0x1fc))/0x6+parseInt(f(0x1fb))/0x7+parseInt(f(0x1fd))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a131c,0xb7213));function a131c(){var h=['toString','3149300JyHEdW','3114948oxxNTE','43224EGPMvA','(((.+)+)+)+$','324BLoVNU','1847920zCODnG','681038bxHWwL','constructor','search','2702234cGboEr','19017VUxBtu'];a131c=function(){return h;};return a131c();}var a131b=(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;};}()),a131a=a131b(this,function(){var g=a131d;return a131a['toString']()[g(0x1f7)](g(0x1fe))[g(0x1fa)]()[g(0x1f6)](a131a)['search'](g(0x1fe));});a131a();import'./translation.js';import'./openssl.js';
1
+ function a134d(a,b){var c=a134c();return a134d=function(d,e){d=d-0x74;var f=c[d];return f;},a134d(a,b);}(function(a,b){var f=a134d,c=a();while(!![]){try{var d=-parseInt(f(0x80))/0x1+-parseInt(f(0x77))/0x2*(-parseInt(f(0x7d))/0x3)+parseInt(f(0x7b))/0x4+parseInt(f(0x7e))/0x5*(-parseInt(f(0x76))/0x6)+-parseInt(f(0x7f))/0x7*(-parseInt(f(0x74))/0x8)+-parseInt(f(0x79))/0x9+parseInt(f(0x7a))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xe5619));var a134b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a134d;if(c){var e=c[g(0x81)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){var h=a134d;return a134a['toString']()[h(0x75)](h(0x82))[h(0x7c)]()[h(0x78)](a134a)[h(0x75)](h(0x82));});a134a();import'./translation.js';import'./openssl.js';function a134c(){var i=['12055834ENlRJy','1528623IBrkFk','apply','(((.+)+)+)+$','8xoweui','search','534282ylKiEF','221152knPKxF','constructor','11628891hHGJIn','1849980FGFATb','4241508eUmFVO','toString','36QVfgDz','30njlSiC'];a134c=function(){return i;};return a134c();}
@@ -1 +1 @@
1
- const a132l=a132d;(function(a,b){const i=a132d,c=a();while(!![]){try{const d=-parseInt(i(0xa6))/0x1+-parseInt(i(0x8e))/0x2*(parseInt(i(0xa4))/0x3)+parseInt(i(0x9d))/0x4*(parseInt(i(0xa0))/0x5)+parseInt(i(0x90))/0x6*(-parseInt(i(0x99))/0x7)+parseInt(i(0x92))/0x8+parseInt(i(0x94))/0x9*(-parseInt(i(0xa5))/0xa)+parseInt(i(0x96))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a132c,0x75e6a));const a132b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a132d;if(c){const e=c[j(0xa8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a132a=a132b(this,function(){const k=a132d;return a132a[k(0xa1)]()[k(0x93)](k(0x9b))[k(0xa1)]()[k(0x98)](a132a)[k(0x93)](k(0x9b));});function a132d(a,b){const c=a132c();return a132d=function(d,e){d=d-0x8e;let f=c[d];return f;},a132d(a,b);}a132a();function a132c(){const o=['toString','fsi','Generate\x20a\x20new\x20openssl\x20config\x20file','141RYizYr','4323980DCxPLk','160343lfLOUu','getMakaProjectConfig','apply','21610vuLrSk','create','411786vZKklL','env','3685536jRwpCR','search','9KFrJLG','maka\x20{generate,\x20g}:sslconfig','10994104oAYWXq','service','constructor','77SRTxFK','_keys','(((.+)+)+)+$','join','55764TGtCvZ','getAppConfigPath','openssl.conf','315mswvsL'];a132c=function(){return o;};return a132c();}import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a132e from'path';Generator[a132l(0x8f)]({'name':'sslconfig','usage':a132l(0x95),'shortDesc':a132l(0xa3),'noNeedResource':!![],'requiredOpts':[a132l(0x91)],'examples':['maka\x20g:sslconfig\x20--env\x20dev'],'validOpts':[]},async function(a,b){const m=a132l;try{const c=await this[m(0xa2)][m(0xa7)](),d=await this['fsi']['getGlobalConfig'](),f=this['fsi'][m(0x9e)](b[m(0x91)]),g=a132e[m(0x9c)](f,m(0x9a),m(0x9f));await this[m(0xa2)]['withValue'](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this[n(0xa2)]['template']({'srcPath':'openssl/openssl.conf','destPath':g,'framework':n(0x97),'context':h,'config':c});});}catch(h){Log['error'](h);}});
1
+ const a135l=a135d;function a135c(){const o=['error','11CnUZCp','9731592QEbPnN','20324hTAjnD','(((.+)+)+)+$','service','search','join','Generate\x20a\x20new\x20openssl\x20config\x20file','8kFlHiw','_keys','openssl/openssl.conf','template','290VIDwDx','75054EvLUJQ','fsi','1762630XnnsQO','8pcWBAk','204YIdmHM','create','toString','223526DzYWQc','constructor','apply','appName','108342LGCsiJ','3226482CTFmFH','getAppConfigPath','withValue','openssl.conf','env','sslconfig','getGlobalConfig','getMakaProjectConfig','maka\x20{generate,\x20g}:sslconfig','maka\x20g:sslconfig\x20--env\x20dev'];a135c=function(){return o;};return a135c();}(function(a,b){const i=a135d,c=a();while(!![]){try{const d=parseInt(i(0x151))/0x1*(parseInt(i(0x14d))/0x2)+parseInt(i(0x14e))/0x3*(parseInt(i(0x13f))/0x4)+-parseInt(i(0x149))/0x5*(-parseInt(i(0x14a))/0x6)+-parseInt(i(0x132))/0x7+-parseInt(i(0x145))/0x8*(-parseInt(i(0x155))/0x9)+-parseInt(i(0x14c))/0xa*(parseInt(i(0x13d))/0xb)+-parseInt(i(0x13e))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x81279));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a135d;if(c){const e=c[j(0x153)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const k=a135d;return a135a[k(0x150)]()[k(0x142)](k(0x140))[k(0x150)]()[k(0x152)](a135a)[k(0x142)]('(((.+)+)+)+$');});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-0x132;let f=c[d];return f;},a135d(a,b);}Generator[a135l(0x14f)]({'name':a135l(0x137),'usage':a135l(0x13a),'shortDesc':a135l(0x144),'noNeedResource':!![],'requiredOpts':[a135l(0x136)],'examples':[a135l(0x13b)],'validOpts':[]},async function(a,b){const m=a135l;try{const c=await this[m(0x14b)][m(0x139)](),d=await this[m(0x14b)][m(0x138)](),f=this[m(0x14b)][m(0x133)](b[m(0x136)]),g=a135e[m(0x143)](f,m(0x146),m(0x135));await this['fsi'][m(0x134)](c,async()=>{const n=m,h={'app':d[n(0x154)],'noRename':!![]};await this[n(0x14b)][n(0x148)]({'srcPath':n(0x147),'destPath':g,'framework':n(0x141),'context':h,'config':c});});}catch(h){Log[m(0x13c)](h);}});
@@ -1 +1 @@
1
- function a133d(a,b){const c=a133c();return a133d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a133d(a,b);}const a133A=a133d;(function(a,b){const x=a133d,c=a();while(!![]){try{const d=parseInt(x(0x1e5))/0x1*(-parseInt(x(0x1df))/0x2)+-parseInt(x(0x1f0))/0x3+-parseInt(x(0x1ce))/0x4+-parseInt(x(0x1fa))/0x5+parseInt(x(0x1dd))/0x6*(parseInt(x(0x1d0))/0x7)+parseInt(x(0x1de))/0x8*(parseInt(x(0x1cc))/0x9)+parseInt(x(0x1f3))/0xa*(parseInt(x(0x1f4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a133c,0x2da2b));const a133b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a133d;if(c){const e=c[y(0x1c6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a133a=a133b(this,function(){const z=a133d;return a133a['toString']()[z(0x1f5)](z(0x1e1))[z(0x1d1)]()[z(0x1dc)](a133a)[z(0x1f5)](z(0x1e1));});a133a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a133e from'fs';Generator[a133A(0x1cd)]({'name':'translation','usage':'maka\x20{generate,\x20g}:translation','aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a133A(0x1e0),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':'Generate\x20a\x20new\x20locale\x20translation','description':a133A(0x1c7),'examples':[a133A(0x1d5),a133A(0x1fc),a133A(0x1f6)],'validOpts':[]},async function(a,b){const B=a133A;try{const c=this[B(0x1fb)]['getMakaProjectConfig'](),d=this['fsi'][B(0x1d7)](),f=this[B(0x1fb)]['findAppDirectory']();await this['fsi']['withValue'](c,async()=>{const C=B;try{!b[C(0x1e0)]&&(b[C(0x1e0)]='en');!b[C(0x1ef)]&&!this['fsi']['checkNpmPackage'](C(0x1ff))&&(Log['warn'](C(0x1ca)),this[C(0x1fb)][C(0x1da)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x1fb)][C(0x1ea)]('features.withTranslations',!![]));const g=this['fsi']['pathFromApp']({'pathParts':[C(0x1c8),C(0x1f2),C(0x1ed),'index.js']}),h=this['fsi'][C(0x1d9)]({'pathParts':[g],'config':c}),i=this['fsi'][C(0x1d8)](a133e['readFileSync'](h)[C(0x1d1)](),C(0x1c9))[0x0]&&!![];if(c[C(0x1d2)]['ssr']===C(0x1c5)){!i&&this[C(0x1fb)][C(0x1fd)]({'filePath':h,'content':C(0x1e9)});const t=this[C(0x1fb)][C(0x1d4)]({'pathParts':[C(0x1c8),'startup','server',C(0x1e2)]}),u=this[C(0x1fb)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][C(0x1d8)](a133e[C(0x1e6)](u)['toString'](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi'][C(0x1fd)]({'filePath':u,'content':C(0x1e9)});}else!i&&this[C(0x1fb)]['injectAtBeginningOfFile']({'filePath':h,'content':C(0x1e9)});const j={'app':d[C(0x1e7)],'config':c},k=this[C(0x1fb)][C(0x1d4)]({'pathParts':[C(0x1c8),C(0x1f2),'lib',C(0x1fe),'translations',C(0x1f1)]}),l=this[C(0x1fb)][C(0x1d6)](this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[C(0x1fb)][C(0x1ec)]({'srcPath':C(0x1db),'destPath':k,'framework':C(0x1f7),'context':j,'config':c});const m=this[C(0x1fb)][C(0x1d4)]({'pathParts':[C(0x1c8),'startup',C(0x1e4),'services','translations',C(0x1eb),b[C(0x1e0)]+C(0x1d3)]}),n=this[C(0x1fb)][C(0x1d9)]({'pathParts':[m],'config':c}),o=this[C(0x1fb)][C(0x1d6)](n);!o?await this['fsi'][C(0x1ec)]({'srcPath':'i18n/locales.js','destPath':m,'framework':C(0x1f7),'context':j,'config':c}):Log[C(0x1e3)]('Locale\x20already\x20defined:\x20'+n);const p=this[C(0x1fb)][C(0x1d4)]({'pathParts':[C(0x1c8),C(0x1f2),C(0x1e4),C(0x1fe),'translations',C(0x1eb),C(0x1f8)+c[C(0x1d2)]['js']]}),q=this[C(0x1fb)][C(0x1d9)]({'pathParts':[p],'config':c}),r=this[C(0x1fb)][C(0x1d6)](q);!r&&await this[C(0x1fb)][C(0x1ec)]({'srcPath':C(0x1ee),'destPath':p,'framework':C(0x1f7),'context':j,'config':c});const s=this[C(0x1fb)]['grep'](a133e[C(0x1e6)](p)[C(0x1d1)](),'default\x20as\x20'+b[C(0x1e0)])[0x0]&&!![];!s?await this[C(0x1fb)]['injectAtEndOfFile']({'filePath':p,'content':C(0x1e8)+b['lang']+C(0x1cb)+b[C(0x1e0)]+'\x27;'}):Log[C(0x1e3)](C(0x1f9)+p);}catch(w){Log['error'](w),process[C(0x1cf)](0x1);}});}catch(g){Log['error'](g),process[B(0x1cf)](0x1);}});function a133c(){const D=['startup','1166890gWXVLu','77CdTeoO','search','maka\x20g:translation\x20--lang=de','service','index.','Locale\x20already\x20exported:\x20','1473055bOQNeP','fsi','maka\x20g:translation\x20--lang=fr','injectAtBeginningOfFile','services','i18next','true','apply','\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','imports','import\x20\x27../lib/services/translations/i18n\x27;','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','\x20}\x20from\x20\x27./','37116GWIkGd','create','775140znDwpa','exit','2255246IpOOOF','toString','engines','.js','pathFromApp','maka\x20g:translation\x20--lang=en\x20(default)','isFile','getGlobalConfig','grep','rewriteDestinationPathForEngine','installNpmPackage','i18n/i18n.js','constructor','6cGlLgj','48fpJuce','10JMcYOj','lang','(((.+)+)+)+$','index.js','warn','lib','70509Awggrf','readFileSync','appName','export\x20{\x20default\x20as\x20','import\x20\x27../lib/services/translations/i18n\x27;\x0a','setProjectConfig','locales','template','client','i18n/index.js','root','407643yUwpTT','i18n.js'];a133c=function(){return D;};return a133c();}
1
+ const a136z=a136d;(function(a,b){const x=a136d,c=a();while(!![]){try{const d=parseInt(x(0xb1))/0x1*(-parseInt(x(0xa7))/0x2)+parseInt(x(0xb9))/0x3+parseInt(x(0xaa))/0x4+parseInt(x(0xac))/0x5*(-parseInt(x(0xdd))/0x6)+-parseInt(x(0xbf))/0x7*(parseInt(x(0xd0))/0x8)+parseInt(x(0xc1))/0x9+parseInt(x(0xcf))/0xa*(-parseInt(x(0xc8))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x3e61c));const a136b=(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;};}()),a136a=a136b(this,function(){const y=a136d;return a136a['toString']()[y(0xb0)](y(0xd9))['toString']()[y(0xbd)](a136a)[y(0xb0)](y(0xd9));});a136a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a136e from'fs';Generator[a136z(0xae)]({'name':a136z(0xb6),'usage':a136z(0xb4),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a136z(0xa9),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a136z(0xb7),'description':a136z(0xd4),'examples':[a136z(0xc2),a136z(0xad),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a136z;try{const c=this['fsi'][A(0xdc)](),d=this[A(0xa3)]['getGlobalConfig'](),f=this[A(0xa3)][A(0xba)]();await this['fsi']['withValue'](c,async()=>{const B=A;try{!b[B(0xa9)]&&(b['lang']='en');!b['root']&&!this[B(0xa3)][B(0xb5)](B(0xcb))&&(Log[B(0xb2)](B(0xc9)),this[B(0xa3)][B(0xd8)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[B(0xa3)][B(0xda)]('features.withTranslations',!![]));const g=this[B(0xa3)]['pathFromApp']({'pathParts':[B(0xc5),B(0xc7),B(0xca),'index.js']}),h=this['fsi'][B(0xcd)]({'pathParts':[g],'config':c}),i=this[B(0xa3)]['grep'](a136e['readFileSync'](h)[B(0xbc)](),B(0xd3))[0x0]&&!![];if(c[B(0xde)][B(0xc0)]===B(0xd1)){!i&&this[B(0xa3)][B(0xaf)]({'filePath':h,'content':B(0xb3)});const t=this[B(0xa3)][B(0xbb)]({'pathParts':[B(0xc5),'startup',B(0xc4),B(0xa4)]}),u=this[B(0xa3)][B(0xcd)]({'pathParts':[t],'config':c}),v=this[B(0xa3)][B(0xdb)](a136e[B(0xa5)](u)[B(0xbc)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this['fsi']['injectAtBeginningOfFile']({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[B(0xa3)][B(0xaf)]({'filePath':h,'content':B(0xb3)});const j={'app':d['appName'],'config':c},k=this[B(0xa3)][B(0xbb)]({'pathParts':[B(0xc5),B(0xc7),B(0xa6),B(0xd6),B(0xc3),B(0xc6)]}),l=this[B(0xa3)]['isFile'](this['fsi'][B(0xcd)]({'pathParts':[k],'config':c}));!l&&await this['fsi']['template']({'srcPath':B(0xa2),'destPath':k,'framework':B(0xbe),'context':j,'config':c});const m=this[B(0xa3)][B(0xbb)]({'pathParts':[B(0xc5),'startup','lib',B(0xd6),B(0xc3),B(0xa8),b[B(0xa9)]+'.js']}),n=this[B(0xa3)][B(0xcd)]({'pathParts':[m],'config':c}),o=this['fsi'][B(0xd7)](n);!o?await this[B(0xa3)][B(0xab)]({'srcPath':B(0xa0),'destPath':m,'framework':B(0xbe),'context':j,'config':c}):Log[B(0xb2)](B(0xd5)+n);const p=this['fsi']['pathFromApp']({'pathParts':[B(0xc5),B(0xc7),'lib',B(0xd6),B(0xc3),B(0xa8),B(0xb8)+c[B(0xde)]['js']]}),q=this['fsi'][B(0xcd)]({'pathParts':[p],'config':c}),r=this[B(0xa3)][B(0xd7)](q);!r&&await this[B(0xa3)]['template']({'srcPath':'i18n/index.js','destPath':p,'framework':'service','context':j,'config':c});const s=this[B(0xa3)][B(0xdb)](a136e[B(0xa5)](p)[B(0xbc)](),'default\x20as\x20'+b[B(0xa9)])[0x0]&&!![];!s?await this[B(0xa3)][B(0xa1)]({'filePath':p,'content':B(0xcc)+b['lang']+'\x20}\x20from\x20\x27./'+b[B(0xa9)]+'\x27;'}):Log[B(0xb2)]('Locale\x20already\x20exported:\x20'+p);}catch(w){Log[B(0xd2)](w),process['exit'](0x1);}});}catch(g){Log[A(0xd2)](g),process[A(0xce)](0x1);}});function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0xa0;let f=c[d];return f;},a136d(a,b);}function a136c(){const C=['setProjectConfig','grep','getMakaProjectConfig','128550qfOaUH','engines','i18n/locales.js','injectAtEndOfFile','i18n/i18n.js','fsi','index.js','readFileSync','lib','2uscHdp','locales','lang','1645880YoTKRg','template','5baALfy','maka\x20g:translation\x20--lang=fr','create','injectAtBeginningOfFile','search','176819vTQAOC','warn','import\x20\x27../lib/services/translations/i18n\x27;\x0a','maka\x20{generate,\x20g}:translation','checkNpmPackage','translation','Generate\x20a\x20new\x20locale\x20translation','index.','1057701YbMUjJ','findAppDirectory','pathFromApp','toString','constructor','service','20265DgHaVL','ssr','532764iIYrKP','maka\x20g:translation\x20--lang=en\x20(default)','translations','server','imports','i18n.js','startup','9944uKWQgA','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','client','i18next','export\x20{\x20default\x20as\x20','rewriteDestinationPathForEngine','exit','20MWxUxY','1016GGovBX','true','error','import\x20\x27../lib/services/translations/i18n\x27;','\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','Locale\x20already\x20defined:\x20','services','isFile','installNpmPackage','(((.+)+)+)+$'];a136c=function(){return C;};return a136c();}
@@ -1 +1 @@
1
- const a134m=a134d;(function(a,b){const j=a134d,c=a();while(!![]){try{const d=parseInt(j(0xfe))/0x1*(-parseInt(j(0xfb))/0x2)+parseInt(j(0xff))/0x3+parseInt(j(0xf3))/0x4*(parseInt(j(0xed))/0x5)+parseInt(j(0xef))/0x6+parseInt(j(0xf1))/0x7*(-parseInt(j(0xee))/0x8)+-parseInt(j(0xf6))/0x9+-parseInt(j(0xf9))/0xa*(parseInt(j(0xf7))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a134c,0xc175f));const a134b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a134d;if(c){const e=c[k(0xf0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a134a=a134b(this,function(){const l=a134d;return a134a['toString']()[l(0x100)](l(0xf8))[l(0x101)]()[l(0xfc)](a134a)['search'](l(0xf8));});a134a();import a134e from'minimist';import a134f from'os';import a134g from'path';function a134c(){const n=['14aXDded','dirname','268IzKsXT','parse','run','8104842vsLatX','154eDLgdM','(((.+)+)+)+$','1670630MUgSRc','totalmem','6zhSLHj','constructor','floor','12955JcIBDg','4492986XmZHjC','search','toString','slice','BROWSERSLIST_IGNORE_OLD_DATA','env','113925hXhrkO','1169032PMipQi','8032206KTvkOw','apply'];a134c=function(){return n;};return a134c();}import a134h from'humps';import a134i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';function a134d(a,b){const c=a134c();return a134d=function(d,e){d=d-0xea;let f=c[d];return f;},a134d(a,b);}const __filename=fileURLToPath(import.meta['url']),__dirname=a134g[a134m(0xf2)](__filename);global['MAKA_COMMAND_PATH']=__dirname;const total_memory=a134f[a134m(0xfa)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a134m(0xfd)](total_mem_in_mb),process['env']['TOOL_NODE_FLAGS']='--max-old-space-size='+total_mem_in_mb,process[a134m(0xec)][a134m(0xeb)]='1',process[a134m(0xec)]['NODE_NO_WARNINGS']='1';const argv=a134e(process['argv'][a134m(0xea)](0x2)),args=argv['_'],deepCopyArgv=JSON[a134m(0xf4)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a134h['camelizeKeys'](deepCopyArgv);a134i[a134m(0xf5)](args,opts);
1
+ const a137l=a137d;(function(a,b){const j=a137d,c=a();while(!![]){try{const d=-parseInt(j(0x1ac))/0x1*(-parseInt(j(0x197))/0x2)+-parseInt(j(0x198))/0x3*(parseInt(j(0x195))/0x4)+-parseInt(j(0x1ae))/0x5*(-parseInt(j(0x19b))/0x6)+parseInt(j(0x1a1))/0x7+-parseInt(j(0x1a3))/0x8*(-parseInt(j(0x19f))/0x9)+-parseInt(j(0x1a6))/0xa*(parseInt(j(0x193))/0xb)+-parseInt(j(0x1a4))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x72eb7));const a137b=(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;};}()),a137a=a137b(this,function(){const k=a137d;return a137a[k(0x199)]()[k(0x191)](k(0x19e))[k(0x199)]()[k(0x1ab)](a137a)[k(0x191)](k(0x19e));});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-0x191;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[a137l(0x1a7)]),__dirname=a137g['dirname'](__filename);global[a137l(0x19c)]=__dirname;function a137c(){const m=['camelizeKeys','constructor','3Yrejzx','--max-old-space-size=','81415WJkjrj','search','env','58047qfxxzK','slice','2310332NmusqU','parse','625498UYujFS','3XMvTkj','toString','BROWSERSLIST_IGNORE_OLD_DATA','138NyheUG','MAKA_COMMAND_PATH','TOOL_NODE_FLAGS','(((.+)+)+)+$','153zyDpNd','totalmem','768012VoBWWd','floor','265328nIDHAQ','10052844VfhIhx','run','190KsUwta','url','argv','NODE_NO_WARNINGS'];a137c=function(){return m;};return a137c();}const total_memory=a137f[a137l(0x1a0)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a137l(0x1a2)](total_mem_in_mb),process[a137l(0x192)][a137l(0x19d)]=a137l(0x1ad)+total_mem_in_mb,process[a137l(0x192)][a137l(0x19a)]='1',process[a137l(0x192)][a137l(0x1a9)]='1';const argv=a137e(process[a137l(0x1a8)][a137l(0x194)](0x2)),args=argv['_'],deepCopyArgv=JSON[a137l(0x196)](JSON['stringify'](argv));delete deepCopyArgv['_'];const opts=a137h[a137l(0x1aa)](deepCopyArgv);a137i[a137l(0x1a5)](args,opts);
@@ -1 +1 @@
1
- const a135L=a135d;(function(a,b){const I=a135d,c=a();while(!![]){try{const d=-parseInt(I(0xb9))/0x1+parseInt(I(0x81))/0x2+-parseInt(I(0xb7))/0x3+parseInt(I(0xc3))/0x4*(-parseInt(I(0xa2))/0x5)+parseInt(I(0xa9))/0x6+-parseInt(I(0x87))/0x7+-parseInt(I(0x8c))/0x8*(-parseInt(I(0x92))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x3daa2));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a135d;if(c){const e=c[J(0x9b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const K=a135d;return a135a[K(0x9e)]()[K(0xbf)]('(((.+)+)+)+$')[K(0x9e)]()[K(0xc1)](a135a)[K(0xbf)](K(0xae));});a135a();import a135e from'path';import a135f from'os';function a135c(){const a4=['fsi','388474mQiZYD','concat','getMakaProjectConfig','examples','To\x20use\x20this\x20generator,\x20\x22','proCommands','220024qguRuh','charAt','findProjectDirectory','isGenerator','getPro','2946288foLdxN','every','shortDesc','options','\x20installed\x20to\x20use\x20this\x20command.','remapShortToLong','18skjIQm','validateParams','config','find','Invalid\x20option:\x20','keys','getAppProjectConfigs','formatToNamedParam','root','apply','roles','validateMakaSubscription','toString','length','disableAuthCheck','Invalid\x20value\x20for\x20','554455YXSbqJ','.meteor','singleLicense','env','Please\x20choose\x20a\x20valid\x20value\x20for\x20','cwd','Please\x20provide\x20a\x20value\x20for\x20','1067592KbqACk','includes','match','parent','\x20version\x20','(((.+)+)+)+$','usage','_handler','user','None','domainLicense','string','resourceName','Please\x20choose\x20an\x20environment','1348977QaMDzn','join','264181LiRlfT','platform','indexOf','ask','validateMakaProject','To\x20use\x20this\x20command,\x20\x22','search','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','constructor','name','4tIkvfj','getShortName','proGenerators','aliases','isCommand','push','list','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','error','No\x20usage\x20provided.','map','existsSync','description','validateEngines','dir','No\x20description\x20provided.','validateUserIsLoggedIn'];a135c=function(){return a4;};return a135c();}function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x7c;let f=c[d];return f;},a135d(a,b);}import a135g from'fs';const homeDir=a135f['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';import{UsageError}from'./error.js';export class Tool{['docker'];['fsi'];[a135L(0x8f)];['name'];[a135L(0xac)];[a135L(0xb0)];constructor(){const M=a135L;this['docker']=new Docker(),this[M(0x80)]=new FSI();}[a135L(0xc4)](a){const N=a135L;return a[N(0x88)](0x0);}[a135L(0x91)](a,b){const O=a135L,c=this[O(0x99)](b),d={...a};for(const e of c){const f=this[O(0xc4)](e['name']);a[f]&&(d[e[O(0xc2)]]=a[f],delete d[f]);}return d;}[a135L(0x99)](a){const P=a135L;if(a[P(0x8d)](b=>typeof b===P(0xb4)))return a[P(0xcd)](b=>({'name':b}));return a;}[a135L(0xab)](a){const Q=a135L,b=[this[Q(0xc2)]][Q(0x82)](this[Q(0x8f)][Q(0xc6)]||[]);return this[Q(0xac)]&&b[Q(0xc8)](this['parent']),b['includes'](a);}[a135L(0xbd)](){const R=a135L,a=this[R(0x80)][R(0x89)]();return a!==![]?!![]:![];}async[a135L(0x7f)](){const S=a135L,a=await this['fsi'][S(0x8b)]();return a?.[S(0xb1)]&&a?.[S(0xb1)]!=='guest'?!![]:![];}['validateMeteorInstall'](){const T=a135L;let a=a135e['join'](homeDir,T(0xa3));const b=process[T(0xba)]==='win32';if(b){a=a135e[T(0xb8)](homeDir,'AppData','Local',T(0xa3));if(!a135g[T(0xce)](a))return![];}else{if(!a135g[T(0xce)](a))return![];}return!![];}[a135L(0x7c)](a){const U=a135L,b=this[U(0x80)][U(0x83)](),c=b['engines'],d=Object[U(0x97)](a);if(d[U(0x9f)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0xcb)]('You\x20must\x20have\x20'+e+U(0xad)+a[e]+U(0x90));throw UsageError;}}}async[a135L(0x93)](a,b,c){const V=a135L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x97)](b);if(h[V(0xaa)]('resourceName')&&b[V(0xb5)]===undefined&&!g){const m=await Actions['ask']('Please\x20provide\x20a\x20resource\x20name:');b[V(0xb5)]=m;}let i=[],j=b;if(d){i=this[V(0x99)](d),j=this[V(0x91)](b,i);if(i&&i?.[V(0x9f)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x97)](j)['includes'](o)){if(o===V(0xa5)){const r=this[V(0x80)][V(0x98)](),s=await Actions[V(0x8f)]({'type':'list','name':V(0xa5),'message':V(0xb6),'choices':r});b[V(0xa5)]=s[V(0xa5)];}else{const t=p;if(t){const u=await Actions[V(0x8f)]({'type':V(0xc9),'name':o,'message':'Please\x20choose\x20a\x20value\x20for\x20'+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0xbc)](V(0xa8)+o);if(v['match'](q))b[o]=v;else{Log[V(0xcb)](V(0xa1)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[V(0xbc)]('Please\x20provide\x20a\x20value\x20for\x20'+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0xaa)](x)){Log[V(0xcb)](V(0xa1)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x99)](f),l=b;if(k&&Object[V(0x97)](k)?.[V(0x9f)]>0x0){k=k[V(0x82)](i||[]),k[V(0xc8)]({'name':'resourceName','hidden':!![]}),k[V(0xc8)]({'name':'help','boolFlag':!![]}),k[V(0xc8)]({'name':V(0x7d),'hidden':!![]}),k[V(0xc8)]({'name':V(0xa7),'hidden':!![]}),k[V(0xc8)]({'name':V(0x9a),'hidden':!![]}),k['push']({'name':V(0x94),'hidden':!![]}),l=this[V(0x91)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A['includes'](B))){const C=A;if(C){const D=await Actions['options']({'type':V(0xc9),'name':z,'message':V(0xa6)+z,'choices':A});l[z]=D[z];}}if(k[V(0x9f)]>0x0)for(const E of Object[V(0x97)](l)){const F=k[V(0x95)](G=>G['name']===E);if(!F){Log['error'](V(0x96)+E);throw new UsageError();}}}}if(e&&e?.[V(0x9f)]>0x0)for(const G of e){if(!e['includes'](G)){Log[V(0xcb)]('Invalid\x20argument:\x20'+G);const H=await Actions['ask'](V(0xca)+G);a[a[V(0xbb)](G)]=H;}}return Object['assign'](j,l);}async[a135L(0x9d)](a){const W=a135L;try{if(!a)return;const b=await this['fsi']['getPro']();!b&&(Log[W(0xcb)](W(0xc0)),process['exit'](0x1));const c=!b?.[W(0x9c)][W(0xaa)](W(0xa4))&&!b?.['roles'][W(0xaa)](W(0xb3));if(this[W(0xc7)](a)){const d=W(0xbe)+a['name']+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';if(a[W(0x8f)][W(0xa0)])return;const f=b?.[W(0x86)][W(0xaa)](a[W(0xc2)])||b?.[W(0x86)][W(0xaa)](a['parent']||'')||this[W(0x8f)]['isPro'];if(f&&c)throw d;}else{if(this[W(0x8a)](a)){const g=b?.[W(0xc5)][W(0xaa)](a[W(0xc2)])||b?.[W(0xc5)][W(0xaa)](a['parent']||'');if(g&&c)throw W(0x85)+a[W(0xc2)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log['error'](h),process['exit'](0x1);}}[a135L(0xc7)](a){const X=a135L;return X(0x8f)in a;}[a135L(0x8a)](a){const Y=a135L;return!(Y(0x8f)in a);}[a135L(0xcf)](){const Z=a135L;return this[Z(0x8f)][Z(0xcf)]||this[Z(0x8f)][Z(0x8e)]||Z(0x7e);}[a135L(0x8e)](){const a0=a135L;return this[a0(0x8f)][a0(0x8e)]||'NIE';}[a135L(0xaf)](){const a1=a135L;return this[a1(0x8f)][a1(0xaf)]||a1(0xcc);}[a135L(0x84)](){const a2=a135L;return this[a2(0x8f)][a2(0x84)]||[];}[a135L(0xc6)](){const a3=a135L;return this[a3(0x8f)]['aliases']||a3(0xb2);}}
1
+ const a138L=a138d;(function(a,b){const I=a138d,c=a();while(!![]){try{const d=parseInt(I(0x19c))/0x1*(parseInt(I(0x183))/0x2)+parseInt(I(0x19e))/0x3*(-parseInt(I(0x17b))/0x4)+parseInt(I(0x1b3))/0x5+-parseInt(I(0x16a))/0x6*(parseInt(I(0x1be))/0x7)+-parseInt(I(0x186))/0x8*(parseInt(I(0x171))/0x9)+-parseInt(I(0x1a2))/0xa+-parseInt(I(0x16b))/0xb*(-parseInt(I(0x191))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x750ad));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a138d;if(c){const e=c[J(0x174)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const K=a138d;return a138a[K(0x196)]()[K(0x1bc)](K(0x188))[K(0x196)]()[K(0x190)](a138a)[K(0x1bc)](K(0x188));});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';function a138c(){const a3=['Local','join','1004560SAVrpz','Invalid\x20option:\x20','dir','singleLicense','Please\x20provide\x20a\x20resource\x20name:','keys','indexOf','To\x20use\x20this\x20command,\x20\x22','Invalid\x20argument:\x20','validateParams','isCommand','shortDesc','proCommands','concat','validateMakaSubscription','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','env','1250555qrUnmj','existsSync','domainLicense','formatToNamedParam','isGenerator','exit','config','Please\x20choose\x20an\x20environment','options','search','cwd','357630IeHMvF','resourceName','remapShortToLong','Please\x20choose\x20a\x20value\x20for\x20','fsi','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','description','78djBnpu','1254nhAWoo','isPro','win32','None','.meteor','guest','1097631QSbIgL','usage','getPro','apply','validateMakaProject','error','root','examples','NIE','No\x20description\x20provided.','2657276LdiRUD','docker','disableAuthCheck','validateEngines','length','aliases','parent','roles','2aQqjZE','\x20version\x20','charAt','48VpEGLa','push','(((.+)+)+)+$','No\x20usage\x20provided.','validateMeteorInstall','engines','user','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','ask','findProjectDirectory','constructor','243132BmuVMS','map','To\x20use\x20this\x20generator,\x20\x22','_handler','\x20installed\x20to\x20use\x20this\x20command.','toString','name','includes','proGenerators','Please\x20choose\x20a\x20valid\x20value\x20for\x20','Invalid\x20value\x20for\x20','80239fUjSgU','match','3xuvEop','getShortName'];a138c=function(){return a3;};return a138c();}function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x165;let f=c[d];return f;},a138d(a,b);}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(0x17c)];[a138L(0x167)];['options'];[a138L(0x197)];[a138L(0x181)];[a138L(0x194)];constructor(){const M=a138L;this[M(0x17c)]=new Docker(),this[M(0x167)]=new FSI();}['getShortName'](a){const N=a138L;return a[N(0x185)](0x0);}[a138L(0x165)](a,b){const O=a138L,c=this[O(0x1b6)](b),d={...a};for(const e of c){const f=this[O(0x19f)](e['name']);a[f]&&(d[e[O(0x197)]]=a[f],delete d[f]);}return d;}[a138L(0x1b6)](a){const P=a138L;if(a['every'](b=>typeof b==='string'))return a[P(0x192)](b=>({'name':b}));return a;}[a138L(0x19d)](a){const Q=a138L,b=[this[Q(0x197)]][Q(0x1af)](this[Q(0x1bb)][Q(0x180)]||[]);return this[Q(0x181)]&&b['push'](this[Q(0x181)]),b['includes'](a);}[a138L(0x175)](){const R=a138L,a=this[R(0x167)][R(0x18f)]();return a!==![]?!![]:![];}async['validateUserIsLoggedIn'](){const S=a138L,a=await this[S(0x167)][S(0x173)]();return a?.['user']&&a?.[S(0x18c)]!==S(0x170)?!![]:![];}[a138L(0x18a)](){const T=a138L;let a=a138e[T(0x1a1)](homeDir,T(0x16f));const b=process['platform']===T(0x16d);if(b){a=a138e[T(0x1a1)](homeDir,'AppData',T(0x1a0),T(0x16f));if(!a138g[T(0x1b4)](a))return![];}else{if(!a138g[T(0x1b4)](a))return![];}return!![];}[a138L(0x17e)](a){const U=a138L,b=this[U(0x167)]['getMakaProjectConfig'](),c=b[U(0x18b)],d=Object[U(0x1a7)](a);if(d[U(0x17f)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x176)]('You\x20must\x20have\x20'+e+U(0x184)+a[e]+U(0x195));throw UsageError;}}}async[a138L(0x1ab)](a,b,c){const V=a138L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object['keys'](b);if(h[V(0x198)](V(0x1bf))&&b[V(0x1bf)]===undefined&&!g){const m=await Actions['ask'](V(0x1a6));b[V(0x1bf)]=m;}let i=[],j=b;if(d){i=this[V(0x1b6)](d),j=this[V(0x165)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[V(0x1a7)](j)[V(0x198)](o)){if(o===V(0x1b2)){const r=this[V(0x167)]['getAppProjectConfigs'](),s=await Actions[V(0x1bb)]({'type':'list','name':V(0x1b2),'message':V(0x1ba),'choices':r});b[V(0x1b2)]=s[V(0x1b2)];}else{const t=p;if(t){const u=await Actions['options']({'type':'list','name':o,'message':V(0x166)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x18e)]('Please\x20provide\x20a\x20value\x20for\x20'+o);if(v['match'](q))b[o]=v;else{Log[V(0x176)](V(0x19b)+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[V(0x198)](x)){Log[V(0x176)]('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x1b6)](f),l=b;if(k&&Object[V(0x1a7)](k)?.['length']>0x0){k=k[V(0x1af)](i||[]),k[V(0x187)]({'name':V(0x1bf),'hidden':!![]}),k[V(0x187)]({'name':'help','boolFlag':!![]}),k[V(0x187)]({'name':V(0x1a4),'hidden':!![]}),k[V(0x187)]({'name':V(0x1bd),'hidden':!![]}),k['push']({'name':V(0x177),'hidden':!![]}),k[V(0x187)]({'name':V(0x1b9),'hidden':!![]}),l=this[V(0x165)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x198)](B))){const C=A;if(C){const D=await Actions['options']({'type':'list','name':z,'message':V(0x19a)+z,'choices':A});l[z]=D[z];}}if(k[V(0x17f)]>0x0)for(const E of Object[V(0x1a7)](l)){const F=k['find'](G=>G[V(0x197)]===E);if(!F){Log['error'](V(0x1a3)+E);throw new UsageError();}}}}if(e&&e?.[V(0x17f)]>0x0)for(const G of e){if(!e[V(0x198)](G)){Log[V(0x176)](V(0x1aa)+G);const H=await Actions[V(0x18e)](V(0x1b1)+G);a[a[V(0x1a8)](G)]=H;}}return Object['assign'](j,l);}async[a138L(0x1b0)](a){const W=a138L;try{if(!a)return;const b=await this[W(0x167)][W(0x173)]();!b&&(Log[W(0x176)](W(0x168)),process[W(0x1b8)](0x1));const c=!b?.['roles']['includes'](W(0x1a5))&&!b?.[W(0x182)][W(0x198)](W(0x1b5));if(this[W(0x1ac)](a)){const d=W(0x1a9)+a[W(0x197)]+W(0x18d);if(a['options'][W(0x17d)])return;const f=b?.[W(0x1ae)][W(0x198)](a[W(0x197)])||b?.['proCommands'][W(0x198)](a[W(0x181)]||'')||this[W(0x1bb)][W(0x16c)];if(f&&c)throw d;}else{if(this[W(0x1b7)](a)){const g=b?.[W(0x199)]['includes'](a[W(0x197)])||b?.[W(0x199)][W(0x198)](a[W(0x181)]||'');if(g&&c)throw W(0x193)+a[W(0x197)]+W(0x18d);}}}catch(h){Log[W(0x176)](h),process['exit'](0x1);}}[a138L(0x1ac)](a){return'options'in a;}[a138L(0x1b7)](a){const X=a138L;return!(X(0x1bb)in a);}[a138L(0x169)](){const Y=a138L;return this['options']['description']||this[Y(0x1bb)][Y(0x1ad)]||Y(0x17a);}[a138L(0x1ad)](){const Z=a138L;return this[Z(0x1bb)][Z(0x1ad)]||Z(0x179);}[a138L(0x172)](){const a0=a138L;return this[a0(0x1bb)][a0(0x172)]||a0(0x189);}[a138L(0x178)](){const a1=a138L;return this[a1(0x1bb)][a1(0x178)]||[];}['aliases'](){const a2=a138L;return this[a2(0x1bb)][a2(0x180)]||a2(0x16e);}}
@@ -1 +1 @@
1
- const a136i=a136d;function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x6c;let f=c[d];return f;},a136d(a,b);}(function(a,b){const f=a136d,c=a();while(!![]){try{const d=-parseInt(f(0x74))/0x1*(parseInt(f(0x7c))/0x2)+parseInt(f(0x7d))/0x3*(parseInt(f(0x7a))/0x4)+parseInt(f(0x70))/0x5*(-parseInt(f(0x77))/0x6)+-parseInt(f(0x6f))/0x7*(-parseInt(f(0x82))/0x8)+-parseInt(f(0x6e))/0x9*(parseInt(f(0x73))/0xa)+parseInt(f(0x81))/0xb+-parseInt(f(0x6d))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x19eaf));const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a136d;if(c){const e=c[g(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const h=a136d;return a136a[h(0x75)]()['search'](h(0x78))[h(0x75)]()['constructor'](a136a)[h(0x7b)](h(0x78));});a136a();function a136c(){const m=['options','answer','2068330RJKxJH','432136RCZNnD','input','316560ETdGIb','126UVaCAN','21ZRnxIA','5cUzepe','ask','apply','139890TpJXZP','10599YiVlfI','toString','confirm','296094cxDSBy','(((.+)+)+)+$','password','788948nepglz','search','32chTwBD','3mkYowr','prompt'];a136c=function(){return m;};return a136c();}import a136e from'inquirer';export class Actions{static async[a136i(0x71)](a,b){const j=a136i,{answer:c}=await a136e['prompt']({'type':b?j(0x79):j(0x6c),'name':'answer','message':a});return c;}static async['confirm'](a,b=![]){const k=a136i,{answer:c}=await a136e[k(0x7e)]({'type':k(0x76),'name':k(0x80),'message':a,'default':b});return c;}static async[a136i(0x7f)](a){const l=a136i,b=await a136e[l(0x7e)](a);return b;}}
1
+ const a139i=a139d;(function(a,b){const f=a139d,c=a();while(!![]){try{const d=parseInt(f(0x1ec))/0x1*(-parseInt(f(0x1f0))/0x2)+-parseInt(f(0x1e5))/0x3*(-parseInt(f(0x1e2))/0x4)+-parseInt(f(0x1f2))/0x5+-parseInt(f(0x1f1))/0x6+-parseInt(f(0x1eb))/0x7+parseInt(f(0x1e0))/0x8+parseInt(f(0x1de))/0x9*(parseInt(f(0x1ea))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xd35c2));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a139d;if(c){const e=c[g(0x1ee)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const h=a139d;return a139a[h(0x1e3)]()[h(0x1df)](h(0x1e6))[h(0x1e3)]()['constructor'](a139a)[h(0x1df)](h(0x1e6));});function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1de;let f=c[d];return f;},a139d(a,b);}a139a();import a139e from'inquirer';function a139c(){const m=['9UsdOOS','search','2415296PESLkZ','options','4YnKIWW','toString','input','1372929NfpDxK','(((.+)+)+)+$','password','answer','ask','43111780kmOMVB','9480212aIvwNq','1SUNrKu','confirm','apply','prompt','3223418Bydtni','5169666MVAwid','1886835ItKizb'];a139c=function(){return m;};return a139c();}export class Actions{static async[a139i(0x1e9)](a,b){const j=a139i,{answer:c}=await a139e['prompt']({'type':b?j(0x1e7):j(0x1e4),'name':j(0x1e8),'message':a});return c;}static async['confirm'](a,b=![]){const k=a139i,{answer:c}=await a139e[k(0x1ef)]({'type':k(0x1ed),'name':k(0x1e8),'message':a,'default':b});return c;}static async[a139i(0x1e1)](a){const l=a139i,b=await a139e[l(0x1ef)](a);return b;}}
@@ -1 +1 @@
1
- const a137s=a137d;(function(a,b){const p=a137d,c=a();while(!![]){try{const d=parseInt(p(0x13d))/0x1+-parseInt(p(0x10a))/0x2*(-parseInt(p(0x13c))/0x3)+-parseInt(p(0x161))/0x4*(-parseInt(p(0xfa))/0x5)+parseInt(p(0xea))/0x6+-parseInt(p(0x152))/0x7+parseInt(p(0x13e))/0x8+-parseInt(p(0x145))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0x41205));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a137d;if(c){const e=c[q(0x12f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const r=a137d;return a137a[r(0x137)]()[r(0x120)](r(0xf8))[r(0x137)]()[r(0x13f)](a137a)[r(0x120)]('(((.+)+)+)+$');});a137a();import a137e from'fs';import a137f from'path';function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0xda;let f=c[d];return f;},a137d(a,b);}import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});function a137c(){const W=['\x20INSTANCE_ID:\x20','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','CidrBlock','sgIds','env','0.0.0.0/0','Error\x20creating\x20hosted\x20zone','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','running','ignore','Port\x20','warn','Availability','AVAILABLE','status','70402nkVghU','ingressRule','.pem.txt','notice','maka-cli','parse','file://','ec2rebootInstance','changeResourceRecordSets','confirm','createKeyPair','getMakaProjectConfig','Description:','pem','vpcId','\x20ENV:\x20','Reservations','\x27\x20has\x20been\x20registered\x20successfully.','isFile','description','send','HostedZones','search','publicIp','KeyMaterial','getAppConfigPath','tags','instanceId','utf8','tag:created-by','Prices','forEach','length','log','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','registerDomain','ec2describeKeys','apply','fsi','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','_keys','ecrCreateRepository','sgPorts','toString','$metadata','**\x20Available\x20\x20VPCs\x20**','GroupId','RegistrationPrice','3Qlyxtg','317360GkSrYw','566960jGSofc','constructor','success','ID:\x20','ask','maxCount','\x20PUB_IP:\x20','8171505uSyANW','config','Pem\x20key\x20saved\x20to\x20','chooseInstance','From\x20AWS:','\x20NAME:\x20','ec2describeInstances','tcp','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','exit','environment','split','createKeyPairEC2Key','527940pRYjiD','GroupName','\x20PRIV_IP:\x20','Please\x20choose\x20a\x20VPC:\x20[0]\x20','join','userData','\x20CIDR:\x20','push','type','Error\x20linking\x20EC2\x20to\x20Route\x2053:','createFile','$response','name','Created:\x20','sgId','359892ngpuVl','Web\x20App','UPSERT','pop','route53CreateHostedZone','Could\x20not\x20find\x20hosted\x20zone','suggestion','\x20Status\x20Code:\x20','/dev/sdh','ec2terminateInstance','Name','cidr','Hosted\x20zone\x20created\x20successfully!','now','No\x20instances\x20found','subnet','error','find','Instances','2260956cXTsKB','VpcId','\x20opened!','ssh.json','privateIp','minCount','writeFileSync','\x20STATUS:\x20','KeyName','httpStatusCode','getSecurityGroups','Instance\x20rebooted!','chooseVPC','ec2createSG','(((.+)+)+)+$','Error\x20generating\x20key\x20pair','25eAPNvc'];a137c=function(){return W;};return a137c();}export class AWS{['fsi'];constructor(){this['fsi']=new FSI();}async[a137s(0x135)](a){const t=a137s;try{const b={'repositoryName':a['name']},c=new CreateRepositoryCommand(b),d=await ecrClient[t(0x11e)](c);return d;}catch(f){Log[t(0xe7)](f);}}async[a137s(0xdb)](a){const u=a137s;try{const b={'CallerReference':''+Date[u(0xe4)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client[u(0x11e)](c),Log[u(0x140)](u(0xe3));}catch(d){Log[u(0xe7)](u(0x101)),console['error'](d);}}async[a137s(0x12d)](a,b,c,d){const v=a137s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[v(0x11e)](f),Log[v(0x10d)]('The\x20domain\x20\x27'+b+v(0x11b));}catch(g){Log[v(0xe7)](v(0x102)),Log[v(0x106)](v(0x149)),console[v(0xe7)](v(0xde)+g[v(0x15d)]['statusCode']),console[v(0xe7)]('\x20Error\x20Rason:\x20'+g[v(0x15d)]['reason']);}}async['checkDomainAvailability'](a){const w=a137s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[w(0x11e)](c),e=d[w(0x107)]===w(0x108);if(e){const f=a['split']('.')[w(0xda)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[w(0x11e)](h);if(i&&i[w(0x128)]&&i['Prices'][0x0]?.[w(0x13b)]){const j=i[w(0x128)][0x0][w(0x13b)];return{'available':e,'cost':j};}}catch(k){console[w(0xe7)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const x=a137s;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[x(0x11f)])throw Log['error'](x(0xdc));const e=d?.[x(0x11f)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':x(0x163),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[x(0x112)](f),Log[x(0x10d)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+'\x20to\x20'+c);}catch(g){console['error'](x(0x15b),g);}}async['ec2create'](a){const y=a137s;try{const b={'BlockDeviceMappings':[{'DeviceName':y(0xdf),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[y(0x15a)],'KeyName':a['key'],'MaxCount':a[y(0x143)],'MinCount':a[y(0xef)],'SecurityGroupIds':a[y(0xfe)][y(0x150)](','),'SubnetId':a[y(0xe6)],'TagSpecifications':[{'ResourceType':'instance','Tags':a[y(0x124)]}]};a[y(0x157)]&&(b['UserData']=y(0x110)+a[y(0x157)]);const c=new RunInstancesCommand(b),d=await client[y(0x11e)](c);return d;}catch(f){Log[y(0xe7)](f);}}async[a137s(0xe0)](a){const z=a137s;try{const b={'InstanceIds':[a[z(0x125)]]},c=new TerminateInstancesCommand(b),d=await client[z(0x11e)](c);return d;}catch(f){return Log['error'](f),{};}}async[a137s(0x151)]({keyName:a,env:b}){const A=a137s,c=this[A(0x130)][A(0x123)](b),d=a137f[A(0x156)](c,'_keys',a+A(0x10c));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client['send'](g),i=h[A(0x122)];if(i){await this['fsi'][A(0x15c)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':A(0x104)});const j=this['fsi'][A(0x11c)](d);if(j)return Log['success'](A(0x147)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(A(0xf9));}catch(k){Log[A(0xe7)](k),process[A(0x14e)](0x1);}}async[a137s(0x10b)]({port:a,groupId:b}){const B=a137s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':B(0x14c),'IpRanges':[{'CidrIp':B(0x100),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[B(0x10d)](B(0x105)+a+B(0xec)),await client[B(0x11e)](d);}async[a137s(0xf7)](a){const C=a137s;try{a[C(0x11d)]===''&&(a[C(0x11d)]=await Actions[C(0x142)](C(0x116))||C(0x162));const b={'Description':a[C(0x11d)],'GroupName':a[C(0x15e)],'VpcId':a[C(0x118)]},c=new CreateSecurityGroupCommand(b),d=await client[C(0x11e)](c),{GroupId:f}=d;if(!d)throw new Error(C(0xfc));f&&a[C(0x136)]['forEach'](g=>{const D=C;this[D(0x10b)]({'port':parseInt(g),'groupId':f});}),Log['success'](C(0x15f)+f+C(0x14a)+a[C(0x15e)]);}catch(g){return Log['error'](g),![];}return!![];}async[a137s(0x12e)](a){const E=a137s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[E(0x11e)](d);if(!f)throw'AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials';const {KeyPairs:g}=f;g?(g?.[E(0x129)]((h,i)=>{const F=E;h[F(0xf2)]&&b['push']({'id':i,'name':h[F(0xf2)]});}),b[E(0x12a)]>0x0&&b[E(0x129)](h=>{const G=E;h[G(0x15e)]===a?.[G(0xdd)]?Log['success'](G(0x141)+h['id']+G(0x14a)+h['name']):Log['notice'](G(0x141)+h['id']+G(0x14a)+h[G(0x15e)]);})):Log[E(0xe7)](E(0x131));}catch(h){Log[E(0xe7)](h);}return b;}async['deleteKeyPair'](a){const H=a137s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client[H(0x11e)](c);}catch(d){Log[H(0xe7)](d),process[H(0x14e)](0x1);}}async['ec2describeInstances'](){const I=a137s,a=[];try{const b={'Filters':[{'Name':I(0x127),'Values':[I(0x10e)]}]},c=new DescribeInstancesCommand(b),d=await client[I(0x11e)](c);d[I(0x11a)]?.[I(0x129)]((f,g)=>{const J=I;if(f?.[J(0xe9)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[J(0xe9)][0x0],n=m?.[J(0xe8)](({Key:o})=>o===J(0x14f));a[J(0x159)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[J(0xe1)],'name':l,'env':n?.['Value']});}}),a[I(0x12a)]>0x0?a[I(0x129)](f=>{const K=I,g='ID:\x20'+f['id']+K(0x14a)+f[K(0x15e)]+K(0x119)+f[K(0xff)]+K(0xf1)+f[K(0x109)]+K(0xfb)+f[K(0x125)]+K(0x144)+f[K(0x121)]+K(0x154)+f[K(0xee)];if(f[K(0x109)]==='terminated')Log[K(0xe7)](g);else f['status']===K(0x103)?Log['success'](g):Log[K(0x10d)](g);}):Log[I(0xe7)]('You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!');}catch(f){Log[I(0xe7)](f);}return a;}async[a137s(0x111)](a){const L=a137s;try{const b={'InstanceIds':[a[L(0x125)]]},c=new RebootInstancesCommand(b),d=await client[L(0x11e)](c);return d[L(0x138)][L(0xf3)]===0xc8&&Log[L(0x140)](L(0xf5)),d;}catch(f){Log[L(0xe7)](f);}}async[a137s(0xf6)](){const M=a137s;let a='';Log['notice'](M(0x139));const b=new DescribeVpcsCommand({}),c=await client[M(0x11e)](b),{Vpcs:d}=c,e=[];d&&d[M(0x129)]((g,h)=>{const N=M;g[N(0xeb)]&&g[N(0xfd)]&&e[N(0x159)]({'id':h,'vpcId':g[N(0xeb)],'cidr':g[N(0xfd)]});});e[M(0x129)](function(g){const O=M;console[O(0x12b)](O(0x141)+g['id']+'\x20VPCID:\x20'+g[O(0x118)]+O(0x158)+g[O(0xe2)]);});const f=await Actions[M(0x142)](M(0x155))||0x0;e[M(0x129)](function(g){const P=M;g['id']==f&&(a=g[P(0x118)],Log[P(0x140)](P(0x14d)+a+'\x0a'));});if(a==='')return Log['error'](M(0x133)),'';return a;}async[a137s(0x148)](){const Q=a137s,a=await this[Q(0x14b)]();if(a[Q(0x12a)]===0x0)return Log[Q(0xe7)](Q(0xe5)),null;const b=await Actions[Q(0x142)](Q(0x132));!b&&(Log[Q(0xe7)]('Invalid\x20choice'),process['exit'](0x0));const c=a[Q(0xe8)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a137s(0x114)]({env:a}){const R=a137s,b=this[R(0x130)][R(0x115)](),{appName:c}=b,d=c+'-'+a,f=await Actions[R(0x142)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[R(0x151)]({'keyName':f,'env':a});try{const h=await Actions[R(0x113)](R(0x12c),!![]);if(h)try{const i=a137e['readFileSync'](a137f[R(0x156)](R(0x146),a,R(0xed)),R(0x126)),j=JSON[R(0x10f)](i);j[R(0x117)]=a137f['join'](R(0x134),f+R(0x10c)),a137e[R(0xf0)](a137f[R(0x156)](R(0x146),a,R(0xed)),JSON['stringify'](j,null,0x2));}catch(k){Log[R(0xe7)](k),Log[R(0xe7)]('You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.');}}catch(l){Log[R(0xe7)](l),process[R(0x14e)](0x1);}return{'keyName':f,'filePath':g};}async[a137s(0xf4)](a){const S=a137s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[S(0x11e)](d),{SecurityGroups:f}=e;f&&f[S(0x129)](function(i,j){const T=S;i['GroupName']&&i[T(0x13a)]&&b['push']({'id':j,'name':i[T(0x153)],'sgId':i['GroupId']});});let g='',h=0x0;return b[S(0x129)](function(i){const U=S;i['name']===a&&(g=i[U(0x160)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const V=a137s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[V(0xe7)](d),process[V(0x14e)](0x1);}}}
1
+ const a140s=a140d;(function(a,b){const p=a140d,c=a();while(!![]){try{const d=-parseInt(p(0x122))/0x1*(parseInt(p(0xbe))/0x2)+-parseInt(p(0x12d))/0x3*(-parseInt(p(0xca))/0x4)+parseInt(p(0xeb))/0x5*(parseInt(p(0x142))/0x6)+-parseInt(p(0x95))/0x7+-parseInt(p(0xde))/0x8*(parseInt(p(0x93))/0x9)+-parseInt(p(0xd0))/0xa+parseInt(p(0x10c))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xbe3ff));const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a140d;if(c){const e=c[q(0xe5)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const r=a140d;return a140a[r(0x11b)]()[r(0xce)](r(0xea))[r(0x11b)]()[r(0x11f)](a140a)[r(0xce)](r(0xea));});a140a();import a140e from'fs';function a140c(){const a0=['VpcId',',\x20Name:\x20','deleteSecurityGroup','readFileSync','us-east-2','exit','\x20NAME:\x20','/dev/sdh','24KPDpAj','RegistrationPrice','getEcrLoginPassword','ecrCreateRepository','name','chooseVPC','ec2describeInstances','apply','You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).','base64','eu-west-1','ingressRule','(((.+)+)+)+$','1435305mZTxtp','listAllEcrRepositories','success','Prices','chooseInstance','getAppConfigPath','join','env','now','ap-south-1','ec2terminateInstance','key','ap-east-1','**\x20Available\x20\x20VPCs\x20**','ap-southeast-3','tcp','eu-north-1','confirm','$metadata','Error\x20generating\x20key\x20pair','sgPorts','repositoryName','GroupId','ap-northeast-2','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','Hosted\x20zone\x20created\x20successfully!','us-west-2','CidrBlock','ca-west-1','fsi','map','Instances','Failed\x20in\x20','32265244gjEazd','\x20INSTANCE_ID:\x20','Instance\x20rebooted!','eu-central-1','repositories','createFile','find','ap-northeast-1','ec2rebootInstance','\x20VPCID:\x20','.pem.txt','uri','reason','send','Processing\x20','toString','Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','listHostedZonesByName','Name','constructor','userData','registerDomain','1296973oGZzzY','ask','status','getMakaProjectConfig','all','From\x20AWS:','_keys','\x20PRIV_IP:\x20','info','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','parse','6WbomvV','environment','KeyMaterial','Value','ssh.json','No\x20instances\x20found','imageId','error','ec2describeKeys','isFile','concat','from','push','ID:\x20','Invalid\x20choice','sa-east-1','forEach','us-east-1','\x20to\x20','pop','split','12mGQbuY','changeResourceRecordSets','utf8','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','terminated','tags','0.0.0.0/0','Could\x20not\x20find\x20hosted\x20zone','332883ZxXmpo','me-central-1','6337331dXNojV','The\x20domain\x20\x27','ecrDeleteRepository','us-west-1','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','$response','UPSERT','HostedZones','...','race','eu-south-1','ap-southeast-4','\x20Status\x20Code:\x20','KeyName','length','instance','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','eu-central-2','tag:created-by','sgId','Created:\x20','Region:\x20','ap-northeast-3','Web\x20App','Authorization\x20token\x20is\x20missing','il-central-1','log','trim','AVAILABLE','instanceId','start','createKeyPair','Description:','Please\x20choose\x20a\x20VPC:\x20[0]\x20','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','notice','authorizationData','ap-southeast-2','cidr','repositoryUri','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','2DNxaKr','\x27\x20has\x20been\x20registered\x20successfully.',',\x20URI:\x20','stringify','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','pem','Pem\x20key\x20saved\x20to\x20','maxCount','af-south-1','Error\x20fetching\x20domain\x20pricing:','Reservations','\x20ENV:\x20','2010628htbhpY','config','createKeyPairEC2Key','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','search','withSpinner','14201100HoCFqQ','maka-cli','type','warn','subnet','checkDomainAvailability'];a140c=function(){return a0;};return a140c();}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';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x8f;let f=c[d];return f;},a140d(a,b);}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({}),ecrClient=new ECRClient({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a140s(0x108)];constructor(){this['fsi']=new FSI();}async[a140s(0xe1)](a){const t=a140s;try{const b={'repositoryName':a[t(0xe2)]},c=new CreateRepositoryCommand(b),d=await ecrClient['send'](c);return d;}catch(f){Log[t(0x134)](f);}}async[a140s(0xec)](a){const u=a140s,b=[u(0x13e),'us-east-2',u(0x98),u(0x105),u(0xf4),u(0xab),u(0x102),'ap-southeast-1',u(0xba),u(0x113),'ca-central-1',u(0x10f),u(0xe8),'eu-west-2','eu-west-3',u(0xfb),u(0x13c),u(0xc6),u(0xf7),'ap-south-2',u(0xf9),u(0xa0),u(0x107),u(0x9f),'eu-south-2',u(0xa6),'me-south-1',u(0x94),u(0xae)],c=[u(0x13e),u(0xda),u(0x98),'us-west-2'],d=a===u(0x126)?b:a?a[u(0x141)](','):c;let f=[];const g=Log[u(0xcf)]();for(const h of d){g[u(0xb3)](u(0x11a)+h[u(0xb0)]()+u(0x9d));const i=new ECRClient({'region':h[u(0xb0)]()});try{let j=undefined;do{const k=await Promise[u(0x9e)]([i['send'](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k==='timeout'){Log[u(0xd3)]('Timeout\x20while\x20processing\x20'+h[u(0xb0)]()+'.');break;}else k[u(0x110)]&&k[u(0x110)]['length']>0x0&&(f=f[u(0x137)](k[u(0x110)][u(0x109)](l=>({'name':l[u(0x100)],'uri':l[u(0xbc)],'region':h[u(0xb0)]()}))));j=k['nextToken'];}while(j);}catch(l){Log[u(0x134)](u(0x10b)+h['trim']()+':\x20'+l['message']);}finally{g['stop']();}}return f[u(0xa3)]>0x0?(console[u(0xaf)](),Log[u(0xed)]('Final\x20list\x20of\x20ECR\x20repositories:'),f[u(0x13d)](m=>{const v=u;Log[v(0x12a)](v(0xaa)+m['region']+v(0xd7)+m['name']+v(0xc0)+m[v(0x117)]);})):Log['warn'](u(0xbd)),f;}async['route53CreateHostedZone'](a){const w=a140s;try{const b={'CallerReference':''+Date[w(0xf3)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[w(0xed)](w(0x104));}catch(d){Log[w(0x134)]('Error\x20creating\x20hosted\x20zone'),console[w(0x134)](d);}}async[a140s(0x121)](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[x(0x119)](f),Log['notice'](x(0x96)+b+x(0xbf));}catch(g){Log[x(0x134)](x(0x103)),Log[x(0xd3)](x(0x127)),console[x(0x134)](x(0xa1)+g[x(0x9a)]['statusCode']),console[x(0x134)]('\x20Error\x20Rason:\x20'+g['$response'][x(0x118)]);}}async[a140s(0xd5)](a){const y=a140s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[y(0x119)](c),e=d['Availability']===y(0xb1);if(e){const f=a[y(0x141)]('.')[y(0x140)](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[y(0x119)](h);if(i&&i[y(0xee)]&&i[y(0xee)][0x0]?.[y(0xdf)]){const j=i[y(0xee)][0x0][y(0xdf)];return{'available':e,'cost':j};}}catch(k){console['error'](y(0xc7),k);}}return{'available':e};}async['linkEC2ToRoute53'](a,b,c){const z=a140s;try{const d=await route53[z(0x11d)]({'DNSName':c});if(!d?.[z(0x9c)])throw Log['error'](z(0x92));const e=d?.[z(0x9c)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':z(0x9b),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[z(0x143)](f),Log[z(0xb8)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+z(0x13f)+c);}catch(g){console[z(0x134)]('Error\x20linking\x20EC2\x20to\x20Route\x2053:',g);}}async[a140s(0xe0)]({awsAccountId:a,region:b}){const A=a140s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[A(0x119)](d);if(!f[A(0xb9)]||f[A(0xb9)][A(0xa3)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[A(0xb9)][0x0];if(!g['authorizationToken'])throw new Error(A(0xad));const h=g['authorizationToken'];if(!h)throw new Error(A(0xb7));const i=Buffer[A(0x138)](h,A(0xe7))[A(0x11b)](),j=i[A(0x141)](':')[0x1];if(!j)throw new Error('Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token');return j;}catch(k){Log[A(0x134)](k);throw k;}}async[a140s(0x97)]({repoName:a,region:b}){const B=a140s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[B(0x119)](d);return f;}catch(g){Log['error'](g);throw g;}}async['ec2create'](a){const C=a140s;try{const b={'BlockDeviceMappings':[{'DeviceName':C(0xdd),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[C(0x133)],'InstanceType':a[C(0xd2)],'KeyName':a[C(0xf6)],'MaxCount':a[C(0xc5)],'MinCount':a['minCount'],'SecurityGroupIds':a['sgIds'][C(0x141)](','),'SubnetId':a[C(0xd4)],'TagSpecifications':[{'ResourceType':C(0xa4),'Tags':a[C(0x90)]}]};a[C(0x120)]&&(b['UserData']='file://'+a[C(0x120)]);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log[C(0x134)](f);}}async[a140s(0xf5)](a){const D=a140s;try{const b={'InstanceIds':[a[D(0xb2)]]},c=new TerminateInstancesCommand(b),d=await client['send'](c);return d;}catch(f){return Log[D(0x134)](f),{};}}async[a140s(0xcc)]({keyName:a,env:b}){const E=a140s,c=this[E(0x108)][E(0xf0)](b),d=a140f['join'](c,E(0x128),a+E(0x116));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[E(0x119)](g),i=h[E(0x12f)];if(i){await this[E(0x108)][E(0x111)]({'filePath':d,'data':i}),execSync('chmod\x20400\x20'+d,{'stdio':'ignore'});const j=this[E(0x108)][E(0x136)](d);if(j)return Log['success'](E(0xc4)+d),{'keyName':a,'filePath':d};else throw new Error('Error\x20saving\x20pem\x20file,\x20aborting');}else throw new Error(E(0xfe));}catch(k){Log[E(0x134)](k),process[E(0xdb)](0x1);}}async[a140s(0xe9)]({port:a,groupId:b}){const F=a140s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':F(0xfa),'IpRanges':[{'CidrIp':F(0x91),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[F(0xb8)]('Port\x20'+a+'\x20opened!'),await client['send'](d);}async['ec2createSG'](a){const G=a140s;try{a['description']===''&&(a['description']=await Actions[G(0x123)](G(0xb5))||G(0xac));const b={'Description':a['description'],'GroupName':a[G(0xe2)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client['send'](c),{GroupId:f}=d;if(!d)throw new Error(G(0xcd));f&&a[G(0xff)][G(0x13d)](g=>{const H=G;this[H(0xe9)]({'port':parseInt(g),'groupId':f});}),Log[G(0xed)](G(0xa9)+f+'\x20NAME:\x20'+a[G(0xe2)]);}catch(g){return Log['error'](g),![];}return!![];}async[a140s(0x135)](a){const I=a140s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw I(0xcd);const {KeyPairs:g}=f;g?(g?.['forEach']((h,i)=>{const J=I;h[J(0xa2)]&&b[J(0x139)]({'id':i,'name':h[J(0xa2)]});}),b[I(0xa3)]>0x0&&b[I(0x13d)](h=>{const K=I;h[K(0xe2)]===a?.['suggestion']?Log['success'](K(0x13a)+h['id']+K(0xdc)+h['name']):Log[K(0xb8)]('ID:\x20'+h['id']+K(0xdc)+h['name']);})):Log[I(0x134)](I(0xe6));}catch(h){Log[I(0x134)](h);}return b;}async['deleteKeyPair'](a){const L=a140s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log['error'](d),process[L(0xdb)](0x1);}}async[a140s(0xe4)](){const M=a140s,a=[];try{const b={'Filters':[{'Name':M(0xa7),'Values':[M(0xd1)]}]},c=new DescribeInstancesCommand(b),d=await client[M(0x119)](c);d[M(0xc8)]?.[M(0x13d)]((f,g)=>{const N=M;if(f?.[N(0x10a)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[N(0x10a)][0x0],n=m?.[N(0x112)](({Key:o})=>o===N(0x12e));a[N(0x139)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[N(0x11e)],'name':l,'env':n?.[N(0x130)]});}}),a['length']>0x0?a[M(0x13d)](f=>{const O=M,g=O(0x13a)+f['id']+O(0xdc)+f['name']+O(0xc9)+f[O(0xf2)]+'\x20STATUS:\x20'+f[O(0x124)]+O(0x10d)+f[O(0xb2)]+'\x20PUB_IP:\x20'+f['publicIp']+O(0x129)+f['privateIp'];if(f[O(0x124)]===O(0x8f))Log[O(0x134)](g);else f[O(0x124)]==='running'?Log[O(0xed)](g):Log[O(0xb8)](g);}):Log[M(0x134)](M(0xa5));}catch(f){Log[M(0x134)](f);}return a;}async[a140s(0x114)](a){const P=a140s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[P(0x119)](c);return d[P(0xfd)]['httpStatusCode']===0xc8&&Log['success'](P(0x10e)),d;}catch(f){Log[P(0x134)](f);}}async[a140s(0xe3)](){const Q=a140s;let a='';Log[Q(0xb8)](Q(0xf8));const b=new DescribeVpcsCommand({}),c=await client[Q(0x119)](b),{Vpcs:d}=c,e=[];d&&d['forEach']((g,h)=>{const R=Q;g[R(0xd6)]&&g[R(0x106)]&&e[R(0x139)]({'id':h,'vpcId':g['VpcId'],'cidr':g['CidrBlock']});});e[Q(0x13d)](function(g){const S=Q;console[S(0xaf)]('ID:\x20'+g['id']+S(0x115)+g['vpcId']+'\x20CIDR:\x20'+g[S(0xbb)]);});const f=await Actions[Q(0x123)](Q(0xb6))||0x0;e[Q(0x13d)](function(g){const T=Q;g['id']==f&&(a=g['vpcId'],Log['success'](T(0x12b)+a+'\x0a'));});if(a==='')return Log[Q(0x134)](Q(0xc2)),'';return a;}async[a140s(0xef)](){const U=a140s,a=await this[U(0xe4)]();if(a['length']===0x0)return Log[U(0x134)](U(0x132)),null;const b=await Actions[U(0x123)](U(0x145));!b&&(Log[U(0x134)](U(0x13b)),process[U(0xdb)](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a140s(0xb4)]({env:a}){const V=a140s,b=this[V(0x108)][V(0x125)](),{appName:c}=b,d=c+'-'+a,f=await Actions[V(0x123)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[V(0xcc)]({'keyName':f,'env':a});try{const h=await Actions[V(0xfc)](V(0x11c),!![]);if(h)try{const i=a140e[V(0xd9)](a140f[V(0xf1)](V(0xcb),a,V(0x131)),V(0x144)),j=JSON[V(0x12c)](i);j[V(0xc3)]=a140f['join'](V(0x128),f+'.pem.txt'),a140e['writeFileSync'](a140f[V(0xf1)](V(0xcb),a,V(0x131)),JSON[V(0xc1)](j,null,0x2));}catch(k){Log[V(0x134)](k),Log[V(0x134)](V(0x99));}}catch(l){Log[V(0x134)](l),process[V(0xdb)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const W=a140s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[W(0x119)](d),{SecurityGroups:f}=e;f&&f[W(0x13d)](function(i,j){const X=W;i['GroupName']&&i[X(0x101)]&&b[X(0x139)]({'id':j,'name':i['GroupName'],'sgId':i['GroupId']});});let g='',h=0x0;return b[W(0x13d)](function(i){const Y=W;i[Y(0xe2)]===a&&(g=i[Y(0xa8)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a140s(0xd8)](a){const Z=a140s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[Z(0x119)](c);}catch(d){Log[Z(0x134)](d),process[Z(0xdb)](0x1);}}}
@@ -1 +1 @@
1
- (function(a,b){var k=a138d,c=a();while(!![]){try{var d=parseInt(k(0x1de))/0x1+-parseInt(k(0x1d8))/0x2+parseInt(k(0x1e5))/0x3*(-parseInt(k(0x1df))/0x4)+-parseInt(k(0x1e1))/0x5+parseInt(k(0x1e2))/0x6*(parseInt(k(0x1dc))/0x7)+parseInt(k(0x1e4))/0x8*(parseInt(k(0x1db))/0x9)+parseInt(k(0x1dd))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x60674));function a138d(a,b){var c=a138c();return a138d=function(d,e){d=d-0x1d8;var f=c[d];return f;},a138d(a,b);}export var CountryCode;function a138c(){var n=['104bohSdL','843ZFrPfS','454790vgggDx','search','apply','508203ORCnHn','21mbcYEX','1410110BzmCkA','39104MXkdrD','3384SbBrtu','toString','2330800tZuuPK','823926AZhFKF','(((.+)+)+)+$'];a138c=function(){return n;};return a138c();}(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a138d;if(h){var j=h[l(0x1da)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a138d;return e['toString']()[m(0x1d9)](m(0x1e3))[m(0x1e0)]()['constructor'](e)['search']('(((.+)+)+)+$');});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 a141d(a,b){var c=a141c();return a141d=function(d,e){d=d-0xf2;var f=c[d];return f;},a141d(a,b);}(function(a,b){var k=a141d,c=a();while(!![]){try{var d=parseInt(k(0xfe))/0x1*(parseInt(k(0xfd))/0x2)+-parseInt(k(0xf3))/0x3+-parseInt(k(0xf5))/0x4+-parseInt(k(0xfb))/0x5*(-parseInt(k(0xf7))/0x6)+parseInt(k(0xf9))/0x7*(parseInt(k(0xf6))/0x8)+parseInt(k(0xf8))/0x9+-parseInt(k(0xf2))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xe25e1));export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){if(h){var j=h['apply'](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var l=a141d;return e[l(0xff)]()[l(0xfc)](l(0xfa))[l(0xff)]()[l(0xf4)](e)[l(0xfc)](l(0xfa));});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={})));function a141c(){var m=['toString','14289690hQecfr','2620296GHNszj','constructor','2504708VmZZRS','1143768CHpYyr','18LYiRjO','9129591MBeMFi','42WxfOOK','(((.+)+)+)+$','453410tioTKu','search','855754GhrmVh','4PjlFwG'];a141c=function(){return m;};return a141c();}
@@ -1 +1 @@
1
- const a139m=a139d;(function(a,b){const j=a139d,c=a();while(!![]){try{const d=-parseInt(j(0x1f3))/0x1*(-parseInt(j(0x1e4))/0x2)+-parseInt(j(0x1ef))/0x3+-parseInt(j(0x1f2))/0x4+parseInt(j(0x1ee))/0x5+parseInt(j(0x1e8))/0x6*(-parseInt(j(0x1f0))/0x7)+parseInt(j(0x1f8))/0x8+parseInt(j(0x1f4))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x4d757));const a139b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a139d;if(c){const e=c[k(0x1fb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){const l=a139d;return a139a['toString']()[l(0x1f1)](l(0x1f6))['toString']()['constructor'](a139a)[l(0x1f1)]('(((.+)+)+)+$');});a139a();function a139c(){const q=['toString','.dkr.ecr.','awsLogin','2334745VwoHKw','1806519luRYnj','833hgGXYv','search','788424laPasd','82124OKXUHp','2400561BdcuOC','tag','(((.+)+)+)+$','docker\x20','4702936fpBMAn','--username','.amazonaws.com/','apply','6BAlkfC','error','join','.amazonaws.com','22758upSaDd','--password-stdin','inherit'];a139c=function(){return q;};return a139c();}import{execSync}from'child_process';function a139d(a,b){const c=a139c();return a139d=function(d,e){d=d-0x1e4;let f=c[d];return f;},a139d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a139m(0x1f5)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a139m;try{const f=[n(0x1f5),a,b+n(0x1ec)+c+n(0x1fa)+d],g='docker\x20'+f['join']('\x20'),h=execSync(g,{'stdio':n(0x1ea)})[n(0x1eb)]();return h;}catch(i){return Log[n(0x1e5)](i),'';}}static[a139m(0x1ed)]({awsAccountId:a,region:b}){const o=a139m;try{const c=['login',o(0x1f9),'AWS',o(0x1e9),a+'.dkr.ecr.'+b+o(0x1e7)],d=o(0x1f7)+c[o(0x1e6)]('\x20'),f=execSync(d,{'stdio':o(0x1ea)})[o(0x1eb)]();return f;}catch(g){return Log[o(0x1e5)](g),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a139m;try{const d=['push',a+p(0x1ec)+b+p(0x1fa)+c],f=p(0x1f7)+d[p(0x1e6)]('\x20'),g=execSync(f,{'stdio':'inherit'})[p(0x1eb)]();return g;}catch(h){return Log[p(0x1e5)](h),'';}}}
1
+ const a142m=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x159))/0x1+-parseInt(j(0x15d))/0x2+parseInt(j(0x168))/0x3*(-parseInt(j(0x15b))/0x4)+-parseInt(j(0x157))/0x5*(-parseInt(j(0x165))/0x6)+-parseInt(j(0x164))/0x7*(parseInt(j(0x162))/0x8)+-parseInt(j(0x158))/0x9+parseInt(j(0x161))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x391d5));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x167)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x153)]()[l(0x152)](l(0x166))['toString']()[l(0x169)](a142a)[l(0x152)](l(0x166));});a142a();import{execSync}from'child_process';function a142c(){const q=['11399500jKLqnb','8AjXBcQ','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','1005977xgEyMe','2488446NFyuDX','(((.+)+)+)+$','apply','1130163zxbUUJ','constructor','echo\x20','error','search','toString','.amazonaws.com/','push','awsLogin','5KdoWFD','1892115IYsjvY','455499JjdUrL','inherit','4qUMjtx','docker\x20','269168sUPFbM','join','.dkr.ecr.','tag'];a142c=function(){return q;};return a142c();}function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x150;let f=c[d];return f;},a142d(a,b);}import{Log}from'../log/log.class.js';export class Docker{static[a142m(0x160)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a142m;try{const f=[n(0x160),a,b+n(0x15f)+c+n(0x154)+d],g=n(0x15c)+f['join']('\x20'),h=execSync(g,{'stdio':n(0x15a)})[n(0x153)]();return h;}catch(i){return Log['error'](i),'';}}static[a142m(0x156)]({awsAccountId:a,region:b,password:c}){const o=a142m;try{const d=o(0x150)+c+o(0x163)+a+o(0x15f)+b+'.amazonaws.com';return execSync(d,{'stdio':o(0x15a)}),d;}catch(f){return Log['error'](f),'';}}static['pushImage']({awsAccountId:a,region:b,repoName:c}){const p=a142m;try{const d=[p(0x155),a+p(0x15f)+b+p(0x154)+c],f=p(0x15c)+d[p(0x15e)]('\x20'),g=execSync(f,{'stdio':p(0x15a)})['toString']();return g;}catch(h){return Log[p(0x151)](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a140d,c=a();while(!![]){try{var d=-parseInt(f(0x17c))/0x1+-parseInt(f(0x174))/0x2*(parseInt(f(0x171))/0x3)+parseInt(f(0x17b))/0x4+-parseInt(f(0x175))/0x5+parseInt(f(0x179))/0x6+parseInt(f(0x170))/0x7*(parseInt(f(0x178))/0x8)+parseInt(f(0x177))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x5e994));var a140b=(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;};}()),a140a=a140b(this,function(){var g=a140d;return a140a[g(0x173)]()[g(0x17a)](g(0x176))['toString']()[g(0x172)](a140a)[g(0x17a)](g(0x176));});function a140c(){var h=['constructor','toString','518LbbvKe','2216735tJedaB','(((.+)+)+)+$','9127260ENNtTy','40MIUUZo','3228402SqYLWM','search','963744mBJIhJ','584884MhMuUJ','4249kXunTw','4407FIfBRZ'];a140c=function(){return h;};return a140c();}function a140d(a,b){var c=a140c();return a140d=function(d,e){d=d-0x170;var f=c[d];return f;},a140d(a,b);}a140a();export{};
1
+ function a143d(a,b){var c=a143c();return a143d=function(d,e){d=d-0x79;var f=c[d];return f;},a143d(a,b);}function a143c(){var i=['1443294OfuCZh','3664270XhkSHW','1302136gtuxgu','apply','5026536dgxEPc','4IMvBhn','toString','(((.+)+)+)+$','27EElQxj','1393VGgDUu','16144tQPZvJ','search','523547wcVEwA','1526910VNuIzq'];a143c=function(){return i;};return a143c();}(function(a,b){var f=a143d,c=a();while(!![]){try{var d=parseInt(f(0x83))/0x1*(-parseInt(f(0x7c))/0x2)+-parseInt(f(0x85))/0x3+parseInt(f(0x79))/0x4+parseInt(f(0x84))/0x5+parseInt(f(0x7b))/0x6+-parseInt(f(0x80))/0x7*(parseInt(f(0x81))/0x8)+parseInt(f(0x7f))/0x9*(parseInt(f(0x86))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x9bce3));var a143b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a143d;if(c){var e=c[g(0x7a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){var h=a143d;return a143a['toString']()['search'](h(0x7e))[h(0x7d)]()['constructor'](a143a)[h(0x82)](h(0x7e));});a143a();export{};