@maka/maka-cli 4.13.4 → 4.13.6

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 (164) hide show
  1. package/bundle/obf/package.json +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/patreon.js +1 -1
  87. package/bundle/obf/src/commands/profile.js +1 -1
  88. package/bundle/obf/src/commands/proxy.js +1 -1
  89. package/bundle/obf/src/commands/reconfig.js +1 -1
  90. package/bundle/obf/src/commands/register.js +1 -1
  91. package/bundle/obf/src/commands/run/_index.js +1 -1
  92. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  93. package/bundle/obf/src/commands/run/run.command.js +1 -1
  94. package/bundle/obf/src/commands/set/_index.js +1 -1
  95. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  97. package/bundle/obf/src/commands/set/set.command.js +1 -1
  98. package/bundle/obf/src/commands/ssh.js +1 -1
  99. package/bundle/obf/src/commands/ssl.js +1 -1
  100. package/bundle/obf/src/commands/test.js +1 -1
  101. package/bundle/obf/src/commands/undo.js +1 -1
  102. package/bundle/obf/src/commands/version.js +1 -1
  103. package/bundle/obf/src/error.js +1 -1
  104. package/bundle/obf/src/exec.js +1 -1
  105. package/bundle/obf/src/generator.js +1 -1
  106. package/bundle/obf/src/generators/_index.js +1 -1
  107. package/bundle/obf/src/generators/api.js +1 -1
  108. package/bundle/obf/src/generators/aws/_index.js +1 -1
  109. package/bundle/obf/src/generators/aws/aws.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  113. package/bundle/obf/src/generators/collection.js +1 -1
  114. package/bundle/obf/src/generators/component.js +1 -1
  115. package/bundle/obf/src/generators/config.js +1 -1
  116. package/bundle/obf/src/generators/dbc.js +1 -1
  117. package/bundle/obf/src/generators/dockerfile.js +1 -1
  118. package/bundle/obf/src/generators/hook.js +1 -1
  119. package/bundle/obf/src/generators/kits/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  127. package/bundle/obf/src/generators/kits/kit.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  132. package/bundle/obf/src/generators/layout.js +1 -1
  133. package/bundle/obf/src/generators/maka.gen.js +1 -1
  134. package/bundle/obf/src/generators/methods.js +1 -1
  135. package/bundle/obf/src/generators/package.js +1 -1
  136. package/bundle/obf/src/generators/page.js +1 -1
  137. package/bundle/obf/src/generators/publish.js +1 -1
  138. package/bundle/obf/src/generators/route.js +1 -1
  139. package/bundle/obf/src/generators/service.js +1 -1
  140. package/bundle/obf/src/generators/services/_index.js +1 -1
  141. package/bundle/obf/src/generators/services/openssl.js +1 -1
  142. package/bundle/obf/src/generators/services/translation.js +1 -1
  143. package/bundle/obf/src/maka.js +1 -1
  144. package/bundle/obf/src/templates/aws/cloudformation/create-ec2-instance.template +3 -3
  145. package/bundle/obf/src/tool.js +1 -1
  146. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  147. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  148. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  149. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  150. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  151. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  152. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/https/https.class.js +1 -1
  154. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  155. package/bundle/obf/src/tools/log/log.class.js +1 -1
  156. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  157. package/bundle/obf/src/tools/options/options.class.js +1 -1
  158. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  159. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  160. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  161. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  162. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  163. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  164. package/package.json +1 -1
@@ -1 +1 @@
1
- const a135m=a135d;(function(a,b){const j=a135d,c=a();while(!![]){try{const d=parseInt(j(0x183))/0x1*(parseInt(j(0x16d))/0x2)+-parseInt(j(0x16a))/0x3+-parseInt(j(0x176))/0x4*(parseInt(j(0x170))/0x5)+-parseInt(j(0x1a0))/0x6+parseInt(j(0x19a))/0x7*(parseInt(j(0x1a1))/0x8)+-parseInt(j(0x18c))/0x9+parseInt(j(0x19d))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x52901));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a135d;if(c){const e=c[k(0x163)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const l=a135d;return a135a[l(0x16c)]()[l(0x18e)]('(((.+)+)+)+$')[l(0x16c)]()[l(0x17c)](a135a)[l(0x18e)](l(0x194));});a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import a135f from'../generators/maka.gen.js';function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x160;let f=c[d];return f;},a135d(a,b);}import{camelCase,paramCase,pascalCase}from'change-case';function a135c(){const p=['pathFromApp','Generate\x20a\x20page.','checkNpmPackage','.html','1491836ElNlyQ','store','/imports/ui/','features','ramda','api','constructor','fsi','.js','component/component.js','template','withHook','.css','8lWVGQL','hasOwnProperty','processAndRunGenerator','assign','withTranslations','components','pathFromProject','react','import\x20\x27./','3005190UvGBME','injectAtBeginningOfFile','search','route','/imports/ui/pages','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','hooks','hook/hook.js','(((.+)+)+)+$','html','fileName','string','baseDir','template/template.html','416017JCHpbx','none','pages','4916330HIwEXW','vanilla','theme','287736MyRgod','56HDPbBd','client','template/template.css','root','css','true','apply','findAppDirectory','withHooks','graphql','ssr','test','create','1458600PxNkTt','setTemplate','toString','167888TpIJXj','engines','layouts','5vugMLj','resourceName'];a135c=function(){return p;};return a135c();}const aliases=['p'];Generator[a135m(0x169)]({'name':'page','aliases':aliases,'usage':a135m(0x191),'shortDesc':a135m(0x173),'validOpts':[{'name':a135m(0x198),'values':[a135m(0x192),a135m(0x188),a135m(0x19c),a135m(0x16f)]},{'name':a135m(0x181),'boolFlag':!![]}],'examples':['maka\x20g:page\x20todos/todos-item']},async function(a,b){const n=a135m,c=b['baseDir']?n(0x178)+b['baseDir']:n(0x190),d=this[n(0x17d)][n(0x164)](),e=this['fsi'][n(0x172)]({'pathParts':[c,b['dir'],paramCase(b[n(0x171)]),paramCase(b[n(0x171)])]}),f=this[n(0x17d)]['getMakaProjectConfig']();let g='';return await this[n(0x17d)]['withValue'](f,async()=>{const o=n;typeof f[o(0x180)]['html']===o(0x197)&&(f['template'][o(0x195)]=f[o(0x180)]['html']===o(0x162)?!![]:![],this[o(0x17d)][o(0x16b)](o(0x195),f[o(0x180)][o(0x195)]));typeof f[o(0x180)][o(0x168)]===o(0x197)&&(f['template']['test']=f[o(0x180)]['test']===o(0x162)?!![]:![],this[o(0x17d)][o(0x16b)](o(0x168),f[o(0x180)][o(0x168)]));typeof f['template'][o(0x161)]===o(0x197)&&(f[o(0x180)][o(0x161)]=f[o(0x180)][o(0x161)]===o(0x162)?!![]:![],this[o(0x17d)]['setTemplate'](o(0x161),f[o(0x180)][o(0x161)]));typeof f[o(0x180)]['js']==='string'&&(f['template']['js']=f[o(0x180)]['js']===o(0x162)?!![]:![],this[o(0x17d)][o(0x16b)]('js',f[o(0x180)]['js']));!f[o(0x179)]&&(f['features']={});!b[o(0x160)]&&!this[o(0x17d)][o(0x174)](o(0x17a))&&(Log['warn']('Updating\x20npm\x20packages\x20...'),this['fsi']['installNpmPackage']('ramda',{'cwd':d}));const h={'name':pascalCase(b[o(0x171)]),'myPath':a135e['relative'](this[o(0x17d)][o(0x189)]({}),e),'cssCaseName':paramCase(b[o(0x171)]),'className':pascalCase(b[o(0x171)]),'camelCaseName':camelCase(b[o(0x171)]),'fileName':paramCase(b['resourceName']),'graphql':f[o(0x16e)][o(0x166)],'features':f[o(0x179)],'client':f['engines'][o(0x1a2)],'api':f[o(0x16e)][o(0x17b)],'ssr':f[o(0x16e)][o(0x167)],'isStore':b[o(0x184)](o(0x177)),'isComponent':b[o(0x184)]('component'),'isLayout':b[o(0x184)]('layout'),'withTranslations':f[o(0x179)][o(0x187)],'test':f[o(0x16e)][o(0x168)],'theme':f[o(0x16e)][o(0x19f)]};f[o(0x180)][o(0x195)]&&await this[o(0x17d)][o(0x180)]({'srcPath':o(0x199),'destPath':e+o(0x175),'context':h,'config':f});f['features']?.[o(0x165)]||b['withHook']?await this[o(0x17d)][o(0x180)]({'srcPath':o(0x193),'destPath':e+'.js','framework':o(0x18a),'context':h,'config':f}):await this[o(0x17d)][o(0x180)]({'srcPath':o(0x17f),'destPath':e+o(0x17e),'framework':o(0x18a),'context':h,'config':f});f[o(0x16e)][o(0x168)]!==o(0x19b)&&await this['fsi'][o(0x180)]({'srcPath':'test/test.js','destPath':e+'.app-tests.js','framework':o(0x18a),'context':h,'config':f});f['template'][o(0x161)]&&await this[o(0x17d)][o(0x180)]({'srcPath':o(0x1a3),'destPath':e+o(0x182),'context':Object[o(0x186)]({},h,{'className':paramCase(b['resourceName'])}),'config':f});f[o(0x16e)][o(0x1a2)]!==o(0x18a)&&f[o(0x16e)][o(0x1a2)]!==o(0x19e)?(f[o(0x180)][o(0x161)]&&await this['fsi'][o(0x18d)]({'filePath':e+'.'+f[o(0x16e)]['js'],'content':o(0x18b)+h[o(0x196)]+'.'+f[o(0x16e)][o(0x195)]+'\x27;\x0a'+'import\x20\x27./'+h['fileName']+'.'+f['engines'][o(0x161)]+'\x27;'}),!f[o(0x180)][o(0x161)]&&await this[o(0x17d)][o(0x18d)]({'filePath':e+'.'+f[o(0x16e)]['js'],'content':'import\x20\x27./'+h['fileName']+'.'+f[o(0x16e)]['html']+'\x27;'})):f[o(0x180)]['css']&&await this[o(0x17d)][o(0x18d)]({'filePath':e+'.'+f[o(0x16e)]['js'],'content':o(0x18b)+h[o(0x196)]+'.'+f[o(0x16e)][o(0x161)]+'\x27;'});const i=b['dir']?'/'+b['dir']+'/':'/';g=''+c+i+h[o(0x196)]+'/'+h[o(0x196)],await this[o(0x17d)]['injectTemplateModule'](h['className'],f,g),!b[o(0x160)]&&await a135f[o(0x185)](o(0x18f),[i+b[o(0x171)]],b);}),g+'.'+f[n(0x16e)]['js'];});
1
+ const a135m=a135d;(function(a,b){const j=a135d,c=a();while(!![]){try{const d=-parseInt(j(0x158))/0x1*(parseInt(j(0x16a))/0x2)+parseInt(j(0x16d))/0x3*(-parseInt(j(0x162))/0x4)+parseInt(j(0x181))/0x5*(-parseInt(j(0x156))/0x6)+parseInt(j(0x198))/0x7*(parseInt(j(0x187))/0x8)+parseInt(j(0x171))/0x9*(-parseInt(j(0x186))/0xa)+parseInt(j(0x18d))/0xb*(-parseInt(j(0x199))/0xc)+-parseInt(j(0x185))/0xd*(-parseInt(j(0x177))/0xe);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a135c,0x44bef));const a135b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a135d;if(c){const e=c[k(0x18c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a135a=a135b(this,function(){const l=a135d;return a135a[l(0x170)]()[l(0x1a1)](l(0x15c))[l(0x170)]()[l(0x165)](a135a)[l(0x1a1)](l(0x15c));});function a135d(a,b){const c=a135c();return a135d=function(d,e){d=d-0x154;let f=c[d];return f;},a135d(a,b);}a135a();import a135e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';function a135c(){const p=['css','import\x20\x27./','apply','11OFsWPS','pathFromProject','warn','string','none','api','component','maka\x20g:page\x20todos/todos-item','withHooks','route','test','21xjzHEU','2046300DpnBEm','template/template.css','relative','installNpmPackage','template','processAndRunGenerator','setTemplate','withHook','search','page','baseDir','layouts','resourceName','964878lxxmSn','true','5XjIBaD','fileName','component/component.js','root','(((.+)+)+)+$','withValue','.js','components','template/template.html','ramda','574384DKcmos','.html','/imports/ui/','constructor','findAppDirectory','ssr','Updating\x20npm\x20packages\x20...','test/test.js','90304DdUxPx','getMakaProjectConfig','withTranslations','3TMKhaG','react','create','toString','213147xXkmkV','html','engines','checkNpmPackage','store','features','28154gCBLoV','client','theme','.app-tests.js','fsi','layout','hooks','.css','hasOwnProperty','assign','15ersUvU','dir','maka\x20{generate,\x20g}:{page,\x20p}\x20[path/]<name>','/imports/ui/pages','7761cCLwmU','110XfGrqk','970264JLTRmt','injectAtBeginningOfFile','className'];a135c=function(){return p;};return a135c();}import a135f from'../generators/maka.gen.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['p'];Generator[a135m(0x16f)]({'name':a135m(0x1a2),'aliases':aliases,'usage':a135m(0x183),'shortDesc':'Generate\x20a\x20page.','validOpts':[{'name':a135m(0x1a3),'values':[a135m(0x17d),a135m(0x15f),'pages',a135m(0x154)]},{'name':'withHook','boolFlag':!![]}],'examples':[a135m(0x194)]},async function(a,b){const n=a135m,c=b[n(0x1a3)]?n(0x164)+b[n(0x1a3)]:n(0x184),d=this[n(0x17b)][n(0x166)](),e=this[n(0x17b)]['pathFromApp']({'pathParts':[c,b[n(0x182)],paramCase(b[n(0x155)]),paramCase(b[n(0x155)])]}),f=this[n(0x17b)][n(0x16b)]();let g='';return await this[n(0x17b)][n(0x15d)](f,async()=>{const o=n;typeof f['template'][o(0x172)]==='string'&&(f['template'][o(0x172)]=f[o(0x19d)][o(0x172)]===o(0x157)?!![]:![],this[o(0x17b)][o(0x19f)]('html',f[o(0x19d)][o(0x172)]));typeof f['template'][o(0x197)]==='string'&&(f['template'][o(0x197)]=f[o(0x19d)][o(0x197)]===o(0x157)?!![]:![],this['fsi'][o(0x19f)](o(0x197),f[o(0x19d)][o(0x197)]));typeof f['template']['css']===o(0x190)&&(f[o(0x19d)]['css']=f[o(0x19d)][o(0x18a)]===o(0x157)?!![]:![],this[o(0x17b)][o(0x19f)](o(0x18a),f[o(0x19d)][o(0x18a)]));typeof f[o(0x19d)]['js']===o(0x190)&&(f[o(0x19d)]['js']=f[o(0x19d)]['js']===o(0x157)?!![]:![],this[o(0x17b)][o(0x19f)]('js',f['template']['js']));!f[o(0x176)]&&(f['features']={});!b[o(0x15b)]&&!this['fsi'][o(0x174)](o(0x161))&&(Log[o(0x18f)](o(0x168)),this['fsi'][o(0x19c)](o(0x161),{'cwd':d}));const h={'name':pascalCase(b[o(0x155)]),'myPath':a135e[o(0x19b)](this['fsi'][o(0x18e)]({}),e),'cssCaseName':paramCase(b[o(0x155)]),'className':pascalCase(b['resourceName']),'camelCaseName':camelCase(b['resourceName']),'fileName':paramCase(b[o(0x155)]),'graphql':f[o(0x173)]['graphql'],'features':f['features'],'client':f[o(0x173)][o(0x178)],'api':f[o(0x173)][o(0x192)],'ssr':f['engines'][o(0x167)],'isStore':b[o(0x17f)](o(0x175)),'isComponent':b[o(0x17f)](o(0x193)),'isLayout':b[o(0x17f)](o(0x17c)),'withTranslations':f[o(0x176)][o(0x16c)],'test':f[o(0x173)][o(0x197)],'theme':f[o(0x173)][o(0x179)]};f[o(0x19d)][o(0x172)]&&await this[o(0x17b)][o(0x19d)]({'srcPath':o(0x160),'destPath':e+o(0x163),'context':h,'config':f});f[o(0x176)]?.[o(0x195)]||b[o(0x1a0)]?await this[o(0x17b)]['template']({'srcPath':'hook/hook.js','destPath':e+'.js','framework':o(0x16e),'context':h,'config':f}):await this[o(0x17b)]['template']({'srcPath':o(0x15a),'destPath':e+o(0x15e),'framework':o(0x16e),'context':h,'config':f});f['engines'][o(0x197)]!==o(0x191)&&await this[o(0x17b)]['template']({'srcPath':o(0x169),'destPath':e+o(0x17a),'framework':o(0x16e),'context':h,'config':f});f['template'][o(0x18a)]&&await this[o(0x17b)][o(0x19d)]({'srcPath':o(0x19a),'destPath':e+o(0x17e),'context':Object[o(0x180)]({},h,{'className':paramCase(b[o(0x155)])}),'config':f});f[o(0x173)][o(0x178)]!==o(0x16e)&&f[o(0x173)][o(0x178)]!=='vanilla'?(f[o(0x19d)]['css']&&await this['fsi'][o(0x188)]({'filePath':e+'.'+f[o(0x173)]['js'],'content':'import\x20\x27./'+h[o(0x159)]+'.'+f['engines'][o(0x172)]+'\x27;\x0a'+'import\x20\x27./'+h[o(0x159)]+'.'+f[o(0x173)][o(0x18a)]+'\x27;'}),!f[o(0x19d)][o(0x18a)]&&await this[o(0x17b)][o(0x188)]({'filePath':e+'.'+f['engines']['js'],'content':o(0x18b)+h[o(0x159)]+'.'+f[o(0x173)][o(0x172)]+'\x27;'})):f[o(0x19d)][o(0x18a)]&&await this['fsi'][o(0x188)]({'filePath':e+'.'+f[o(0x173)]['js'],'content':o(0x18b)+h['fileName']+'.'+f[o(0x173)][o(0x18a)]+'\x27;'});const i=b[o(0x182)]?'/'+b[o(0x182)]+'/':'/';g=''+c+i+h['fileName']+'/'+h[o(0x159)],await this['fsi']['injectTemplateModule'](h[o(0x189)],f,g),!b[o(0x15b)]&&await a135f[o(0x19e)](o(0x196),[i+b[o(0x155)]],b);}),g+'.'+f['engines']['js'];});
@@ -1 +1 @@
1
- const a136o=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x6a))/0x1+-parseInt(m(0x6e))/0x2+parseInt(m(0x79))/0x3*(parseInt(m(0x6b))/0x4)+-parseInt(m(0x89))/0x5*(parseInt(m(0x7c))/0x6)+-parseInt(m(0x71))/0x7*(parseInt(m(0x75))/0x8)+-parseInt(m(0x88))/0x9*(-parseInt(m(0x82))/0xa)+parseInt(m(0x8a))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x8306a));function a136c(){const r=['2273859qyURxh','startup','toString','baseDir','24sYbytf','appPathPrefix','import\x20\x27./publications','injectAtEndOfFile','1299reuRcx','globalPublish','(((.+)+)+)+$','328806VhBNYZ','force','publish','server','engines','exit','6510PxNmMb','/imports/ui/','maka\x20g:publish\x20todos','fsi','withValue','pathFromApp','6282lMFuRk','15NdaTUH','12236840ARjuXo','constructor','Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','dir','/imports/startup/server/publications','569702fzBnGr','9556fcWriv','publish/publish.js','resourceName','711954LpuLCc','search','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>'];a136c=function(){return r;};return a136c();}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 n=a136d;return a136a[n(0x73)]()['search'](n(0x7b))['toString']()[n(0x8b)](a136a)[n(0x6f)](n(0x7b));});a136a();function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x68;let f=c[d];return f;},a136d(a,b);}import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a136o(0x7e),'aliases':['p'],'usage':a136o(0x70),'shortDesc':a136o(0x8c),'validOpts':['force',a136o(0x7a)],'examples':[a136o(0x84)]},async function(a,b){const p=a136o;try{const c=b[p(0x7d)]||![],d=b[p(0x74)]?p(0x83)+b[p(0x74)]:p(0x69),f=this['fsi']['getMakaProjectConfig'](),g=paramCase(b['resourceName']),h=this[p(0x85)][p(0x87)]({'pathParts':[d,b['dir'],'',g]});let i='js';f[p(0x80)]['js']==='tsx'&&(i='ts');await this[p(0x85)][p(0x86)](f,async()=>{const q=p,l={'name':b[q(0x6d)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b['globalPublish']};await this[q(0x85)]['template']({'srcPath':q(0x6c),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi']['pathFromApp']({'pathParts':['imports',p(0x72),p(0x7f),b[p(0x76)],'index.'+f[p(0x80)]['js']]}),k=b[p(0x68)]?'/'+b[p(0x68)]+'/':'/';return await this[p(0x85)][p(0x78)]({'filePath':j,'content':p(0x77)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log['error'](l),process[p(0x81)](0x1);}});
1
+ const a136p=a136d;(function(a,b){const m=a136d,c=a();while(!![]){try{const d=-parseInt(m(0x192))/0x1*(parseInt(m(0x1ac))/0x2)+parseInt(m(0x1a3))/0x3+-parseInt(m(0x1a2))/0x4+-parseInt(m(0x1a1))/0x5*(parseInt(m(0x1aa))/0x6)+parseInt(m(0x197))/0x7*(-parseInt(m(0x1a0))/0x8)+-parseInt(m(0x1a9))/0x9*(-parseInt(m(0x1af))/0xa)+parseInt(m(0x1a4))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a136c,0x59b02));function a136c(){const s=['260NKJuoX','apply','(((.+)+)+)+$','resourceName','fsi','globalPublish','engines','dir','withValue','18JorLLM','search','/imports/ui/','maka\x20g:publish\x20todos','exit','7riJkKa','error','template','create','toString','index.','maka\x20{generate,\x20g}:{publish,\x20p}\x20<name>','imports','/imports/startup/server/publications','4617584GHuIMh','235Oqlvhz','1877148LjudJe','1643649ENBmnm','21476730MmeiIS','import\x20\x27./publications','getMakaProjectConfig','baseDir','tsx','20637ULsptp','88848IRQRZa','publish/publish.js','50012JXJtzH','force','constructor'];a136c=function(){return s;};return a136c();}const a136b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a136d;if(c){const e=c[n(0x1b0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a136a=a136b(this,function(){const o=a136d;return a136a[o(0x19b)]()[o(0x193)](o(0x18b))[o(0x19b)]()[o(0x1ae)](a136a)[o(0x193)]('(((.+)+)+)+$');});a136a();import{paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';function a136d(a,b){const c=a136c();return a136d=function(d,e){d=d-0x18b;let f=c[d];return f;},a136d(a,b);}import{Log}from'../tools/log/log.class.js';Generator[a136p(0x19a)]({'name':'publish','aliases':['p'],'usage':a136p(0x19d),'shortDesc':'Scaffolding\x20for\x20a\x20publish\x20function.\x0ahttps://docs.meteor.com/api/pubsub.html','validOpts':[a136p(0x1ad),a136p(0x18e)],'examples':[a136p(0x195)]},async function(a,b){const q=a136p;try{const c=b['force']||![],d=b[q(0x1a7)]?q(0x194)+b['baseDir']:q(0x19f),f=this['fsi'][q(0x1a6)](),g=paramCase(b[q(0x18c)]),h=this[q(0x18d)]['pathFromApp']({'pathParts':[d,b[q(0x190)],'',g]});let i='js';f[q(0x18f)]['js']===q(0x1a8)&&(i='ts');await this['fsi'][q(0x191)](f,async()=>{const r=q,l={'name':b[r(0x18c)],'collection':pascalCase(b['resourceName']),'noRename':!![],'globalPublish':b[r(0x18e)]};await this[r(0x18d)][r(0x199)]({'srcPath':r(0x1ab),'destPath':h+'.'+i,'context':l,'config':f,'force':c});});const j=this['fsi']['pathFromApp']({'pathParts':[q(0x19e),'startup','server',b['appPathPrefix'],q(0x19c)+f[q(0x18f)]['js']]}),k=b[q(0x190)]?'/'+b[q(0x190)]+'/':'/';return await this[q(0x18d)]['injectAtEndOfFile']({'filePath':j,'content':q(0x1a5)+k+g+'\x27;'}),h+'.'+i;}catch(l){Log[q(0x198)](l),process[q(0x196)](0x1);}});
@@ -1 +1 @@
1
- const a137B=a137d;(function(a,b){const y=a137d,c=a();while(!![]){try{const d=-parseInt(y(0x1b7))/0x1*(parseInt(y(0x1b5))/0x2)+-parseInt(y(0x1c5))/0x3*(parseInt(y(0x1a0))/0x4)+parseInt(y(0x1a2))/0x5+-parseInt(y(0x19b))/0x6+-parseInt(y(0x1a5))/0x7*(parseInt(y(0x1aa))/0x8)+-parseInt(y(0x1a8))/0x9*(-parseInt(y(0x1d1))/0xa)+parseInt(y(0x1ba))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xd2103));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a137d;if(c){const e=c[z(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const A=a137d;return a137a[A(0x1e2)]()[A(0x197)](A(0x1a4))[A(0x1e2)]()[A(0x1d2)](a137a)[A(0x197)](A(0x1a4));});function a137c(){const K=['warn','Invalid\x20directory\x20option\x20\x22','7714500TbOTJx','rewriteDestinationPathForEngine','vanilla','split','pages','5398940rHfrTu','getMakaProjectConfig','6845880dhDdWJ','error','(((.+)+)+)+$','7248794FfAbKW','maka\x20g:route\x20pages/lists/listIndex\x20lists','withValue','45bTVaAg','startup','8KlWTgE','resourceName','injectAfterLineNumber','routes.js','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','ssr','indexOf','client','includes','dir','pathFromApp','2NJqNaJ','</Router>','1530946ZiiXAf','map','withTranslations','40528851lxkoWG','Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20','readFileLines','injectAtEndOfFile','private','maka\x20g:route\x20pages/about','config','templateContent','layout','maka\x20g:route\x20todosIndex\x20todos','imports','3IAmgwv','toLowerCase','const\x20privateRoutes\x20=\x20(<>','fsi','MasterLayout','baseDir','/imports/ui/','Adding\x20route\x20','maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView','<Route','\x22*\x22','const\x20publicRoutes\x20=\x20(<>','2017550YUfjgv','constructor','/imports/ui/pages','join','true','engines','\x20already\x20exists.\x20Skipping.','url','route/route.js','replace','root','length','maka\x20g:route\x20todosEdit\x20todos/:id/edit','fileContainsString','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','\x0a\x09\x09','pop','toString','templateName','filter','react','features','only','Valid\x20options\x20are:\x20','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','components','search','apply'];a137c=function(){return K;};return a137c();}a137a();function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x193;let f=c[d];return f;},a137d(a,b);}import a137e from'path';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator['create']({'name':'route','aliases':aliases,'validOpts':[a137B(0x1be),'layout',a137B(0x193),'cwd',a137B(0x1c0),a137B(0x1db),'withHook',a137B(0x1d8),a137B(0x1ca)],'usage':a137B(0x1ae),'shortDesc':'Scaffolding\x20for\x20a\x20Route.','examples':[a137B(0x1c3),a137B(0x1dd),a137B(0x1cd),a137B(0x1a6),a137B(0x1bf)]},async function(a,b){const C=a137B;try{const c=['hooks',C(0x196),C(0x19f),'layouts'];if(b['baseDir']&&!c['includes'](b[C(0x1ca)])){Log[C(0x1a3)](C(0x19a)+b[C(0x1ca)]+'\x22'),Log[C(0x1a3)](C(0x194)+c['join'](',\x20'));throw new UsageError();}const d=this[C(0x1c8)][C(0x1a1)]();await this[C(0x1c8)][C(0x1a7)](d,async()=>{const D=C,f=b[D(0x1be)]??![];let g=b[D(0x1ab)][D(0x19e)]('/')[D(0x1e1)]();if(!g){Log['error'](D(0x1df));throw new UsageError();}g=pascalCase(g);let h=b[D(0x1d8)]?'/'+b[D(0x1d8)]:'/'+b[D(0x1ab)];a[D(0x1dc)]>0x1&&(h='/'+a[D(0x1e4)](function(n){return n!=='/';})['join']('/')[D(0x1c6)]());h=h['replace'](/\/\//g,'/');b['layout']&&(b['layout']=camelCase(b[D(0x1c2)]));const i=b[D(0x1ca)]?D(0x1cb)+b[D(0x1ca)]:D(0x1d3),j=a137e[D(0x1d4)](i,b[D(0x1b3)],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x1c2)]||D(0x1c9),'templatePath':j,'templateName':pascalCase(g),'client':d[D(0x1d6)][D(0x1b1)],'newForm':![],'withTranslations':d[D(0x1e6)][D(0x1b9)]};f&&(k[D(0x1c2)]='PrivateLayout');let l,m;if(d[D(0x1d6)][D(0x1b1)]===D(0x1e5)){if(d[D(0x1d6)][D(0x1af)]===D(0x1d5)){const r=this['fsi'][D(0x1b4)]({'pathParts':[D(0x1c4),D(0x1a9),'lib','routes.js']});l=this[D(0x1c8)][D(0x19c)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][D(0x1b4)]({'pathParts':[D(0x1c4),D(0x1a9),D(0x1b1),D(0x1ad)]});l=this[D(0x1c8)][D(0x19c)]({'pathParts':[s],'config':d});}const n=await this[D(0x1c8)][D(0x1de)](l,g);if(n){Log[D(0x199)]('Route\x20'+g+D(0x1d7));return;}else{const t=this[D(0x1c8)]['pathFromProject'](l);Log['info'](D(0x1cc)+g+'\x20to\x20'+l[D(0x1da)](t,''));}const o=this[D(0x1c8)][D(0x1bc)](l)[D(0x1b8)]((u,v)=>{const E=D;return u[E(0x1b2)](E(0x195))?v+0x1:null;})['filter'](u=>u!==null);let p=this[D(0x1c8)][D(0x1bc)](l)[D(0x1b8)]((u,v)=>{const F=D;return u['includes'](F(0x1d0))?v+0x1:null;})[D(0x1e4)](u=>u!==null),q=this[D(0x1c8)][D(0x1bc)](l)[D(0x1b8)]((u,v)=>{const G=D;return u[G(0x1b2)](G(0x1c7))?v+0x1:null;})[D(0x1e4)](u=>u!==null);p[D(0x1dc)]>0x0&&q['length']>0x0&&(k['newForm']=!![]);m=this['fsi'][D(0x1c1)]({'srcPath':D(0x1d9),'framework':D(0x1e5),'context':k,'config':d});if(p['length']>0x0||q[D(0x1dc)]>0x0){this[D(0x1c8)][D(0x1ac)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x1dc)]>0x0)q=this['fsi'][D(0x1bc)](l)['map']((u,v)=>{const H=D;return u[H(0x1b2)](H(0x1c7))?v+0x1:null;})[D(0x1e4)](u=>u!==null),this[D(0x1c8)][D(0x1ac)]({'filePath':l,'content':'\x09{'+k['templateName']+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[D(0x1c8)]['readFileLines'](l)['map']((u,v)=>{const I=D;return u['includes'](I(0x1d0))?v+0x1:null;})[D(0x1e4)](u=>u!==null),this[D(0x1c8)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x1e3)]+'}','lineNumber':p[0x0]})):Log['warn'](D(0x1bb)+l);}else{const u=this[D(0x1c8)][D(0x1bc)](l)[D(0x1b8)](x=>{const J=D;return x[J(0x1b2)](J(0x1cf));}),v=u[D(0x1b0)](!![])>-0x1,w=v?D(0x1ce):D(0x1b6);await this[D(0x1c8)]['injectIntoFile']({'filePath':l,'content':D(0x1e0)+m+D(0x1e0),'begin':'<Router','end':w});}}else{if(d['engines'][D(0x1b1)]===D(0x19d)){const x=this['fsi'][D(0x1b4)]({'pathParts':[D(0x1c4),D(0x1a9),D(0x1b1),'routes.js']});l=this['fsi'][D(0x19c)]({'pathParts':[x],'config':d}),m=this[D(0x1c8)][D(0x1c1)]({'srcPath':D(0x1d9),'context':k}),await this['fsi'][D(0x1bd)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x1a3)](f);}});
1
+ const a137B=a137d;(function(a,b){const y=a137d,c=a();while(!![]){try{const d=parseInt(y(0x1b7))/0x1*(-parseInt(y(0x1b9))/0x2)+parseInt(y(0x1ad))/0x3*(parseInt(y(0x19d))/0x4)+parseInt(y(0x1dd))/0x5+parseInt(y(0x1a9))/0x6+-parseInt(y(0x1af))/0x7*(parseInt(y(0x1c3))/0x8)+-parseInt(y(0x194))/0x9*(-parseInt(y(0x1c4))/0xa)+-parseInt(y(0x1c9))/0xb*(parseInt(y(0x192))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a137c,0xafe6b));const a137b=(function(){let a=!![];return function(b,c){const d=a?function(){const z=a137d;if(c){const e=c[z(0x193)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a137a=a137b(this,function(){const A=a137d;return a137a[A(0x1d6)]()[A(0x1d1)]('(((.+)+)+)+$')[A(0x1d6)]()[A(0x190)](a137a)['search'](A(0x1aa));});function a137d(a,b){const c=a137c();return a137d=function(d,e){d=d-0x190;let f=c[d];return f;},a137d(a,b);}a137a();import a137e from'path';import{Generator}from'../generator.js';function a137c(){const J=['maka\x20g:route\x20todosIndex\x20todos','PrivateLayout','/imports/ui/pages','indexOf','url','resourceName','Invalid\x20directory\x20option\x20\x22','filter','injectAtEndOfFile','1858494zVOlUO','(((.+)+)+)+$','layout','warn','3bUbvCL','import\x20*\x20as\x20Component\x20from\x20\x27./templates\x27;','7VhsYFc','</Router>','routes.js','join','split','getMakaProjectConfig','layouts','/imports/ui/','232859bsfPcj','engines','6tBwKuG','maka\x20{generate,\x20g}:{route,\x20r}\x20[path/]<name>','injectIntoFile','pop','private','includes','fileContainsString','rewriteDestinationPathForEngine','pathFromProject','lib','9298072OGDWhC','10wGmDhS','error','injectAfterLineNumber','Please\x20specify\x20a\x20name\x20for\x20the\x20route.','route/route.js','15609hKTlWk','baseDir','withValue','const\x20publicRoutes\x20=\x20(<>','replace','maka\x20g:route\x20todosEdit\x20todos/:id/edit','readFileLines','templateContent','search','Scaffolding\x20for\x20a\x20Route.','<Router','\x0a\x09\x09','\x22*\x22','toString','pathFromApp','create','hooks','config','ssr','fsi','2940445AEFgSU','startup','maka\x20g:route\x20pages/lists/listIndex\x20lists','constructor','withTranslations','4188zmgPAi','apply','10700163XNiNgN','map','imports','client','length','\x20already\x20exists.\x20Skipping.','Valid\x20options\x20are:\x20','withHook','Adding\x20route\x20','3959252NDKiwF','only','templateName'];a137c=function(){return J;};return a137c();}import{Log}from'../tools/log/log.class.js';import{UsageError}from'../error.js';import{camelCase,paramCase,pascalCase}from'change-case';const aliases=['r'];Generator[a137B(0x1d8)]({'name':'route','aliases':aliases,'validOpts':[a137B(0x1bd),'layout',a137B(0x19e),'cwd',a137B(0x1da),'root',a137B(0x19b),'url',a137B(0x1ca)],'usage':a137B(0x1ba),'shortDesc':a137B(0x1d2),'examples':[a137B(0x1a0),a137B(0x1ce),'maka\x20g:route\x20usersShow\x20users/:id/show\x20--layout\x20userView',a137B(0x1df),'maka\x20g:route\x20pages/about']},async function(a,b){const C=a137B;try{const c=[C(0x1d9),'components','pages',C(0x1b5)];if(b[C(0x1ca)]&&!c[C(0x1be)](b['baseDir'])){Log[C(0x1c5)](C(0x1a6)+b['baseDir']+'\x22'),Log[C(0x1c5)](C(0x19a)+c[C(0x1b2)](',\x20'));throw new UsageError();}const d=this['fsi'][C(0x1b4)]();await this['fsi'][C(0x1cb)](d,async()=>{const D=C,f=b[D(0x1bd)]??![];let g=b['resourceName'][D(0x1b3)]('/')[D(0x1bc)]();if(!g){Log[D(0x1c5)](D(0x1c7));throw new UsageError();}g=pascalCase(g);let h=b[D(0x1a4)]?'/'+b['url']:'/'+b[D(0x1a5)];a[D(0x198)]>0x1&&(h='/'+a[D(0x1a7)](function(n){return n!=='/';})['join']('/')['toLowerCase']());h=h[D(0x1cd)](/\/\//g,'/');b[D(0x1ab)]&&(b[D(0x1ab)]=camelCase(b[D(0x1ab)]));const i=b[D(0x1ca)]?D(0x1b6)+b[D(0x1ca)]:D(0x1a2),j=a137e[D(0x1b2)](i,b['dir'],g,paramCase(g)),k={'name':g,'fileCase':paramCase(g),'camelCaseName':camelCase(g),'url':h,'layout':b[D(0x1ab)]||'MasterLayout','templatePath':j,'templateName':pascalCase(g),'client':d['engines'][D(0x197)],'newForm':![],'withTranslations':d['features'][D(0x191)]};f&&(k[D(0x1ab)]=D(0x1a1));let l,m;if(d[D(0x1b8)][D(0x197)]==='react'){if(d['engines'][D(0x1db)]==='true'){const r=this['fsi'][D(0x1d7)]({'pathParts':[D(0x196),D(0x1de),D(0x1c2),D(0x1b1)]});l=this[D(0x1dc)][D(0x1c0)]({'pathParts':[r],'config':d});}else{const s=this['fsi'][D(0x1d7)]({'pathParts':['imports','startup',D(0x197),D(0x1b1)]});l=this[D(0x1dc)][D(0x1c0)]({'pathParts':[s],'config':d});}const n=await this[D(0x1dc)][D(0x1bf)](l,g);if(n){Log[D(0x1ac)]('Route\x20'+g+D(0x199));return;}else{const t=this[D(0x1dc)][D(0x1c1)](l);Log['info'](D(0x19c)+g+'\x20to\x20'+l[D(0x1cd)](t,''));}const o=this['fsi']['readFileLines'](l)[D(0x195)]((u,v)=>{const E=D;return u[E(0x1be)](E(0x1ae))?v+0x1:null;})[D(0x1a7)](u=>u!==null);let p=this[D(0x1dc)][D(0x1cf)](l)[D(0x195)]((u,v)=>{const F=D;return u[F(0x1be)]('const\x20publicRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x1a7)](u=>u!==null),q=this['fsi'][D(0x1cf)](l)[D(0x195)]((u,v)=>{return u['includes']('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})['filter'](u=>u!==null);p[D(0x198)]>0x0&&q['length']>0x0&&(k['newForm']=!![]);m=this[D(0x1dc)][D(0x1d0)]({'srcPath':'route/route.js','framework':'react','context':k,'config':d});if(p[D(0x198)]>0x0||q[D(0x198)]>0x0){this['fsi'][D(0x1c6)]({'filePath':l,'content':m,'lineNumber':o[0x0]});if(f&&q[D(0x198)]>0x0)q=this[D(0x1dc)][D(0x1cf)](l)[D(0x195)]((u,v)=>{const G=D;return u[G(0x1be)]('const\x20privateRoutes\x20=\x20(<>')?v+0x1:null;})[D(0x1a7)](u=>u!==null),this[D(0x1dc)]['injectAfterLineNumber']({'filePath':l,'content':'\x09{'+k[D(0x19f)]+'}','lineNumber':q[0x0]});else p['length']>0x0?(p=this[D(0x1dc)][D(0x1cf)](l)['map']((u,v)=>{const H=D;return u['includes'](H(0x1cc))?v+0x1:null;})[D(0x1a7)](u=>u!==null),this['fsi'][D(0x1c6)]({'filePath':l,'content':'\x09{'+k[D(0x19f)]+'}','lineNumber':p[0x0]})):Log['warn']('Could\x20not\x20find\x20a\x20suitable\x20location\x20to\x20enable\x20this\x20route.\x20\x20Please\x20inspect\x20'+l);}else{const u=this[D(0x1dc)][D(0x1cf)](l)[D(0x195)](x=>{const I=D;return x[I(0x1be)](I(0x1d5));}),v=u[D(0x1a3)](!![])>-0x1,w=v?'<Route':D(0x1b0);await this[D(0x1dc)][D(0x1bb)]({'filePath':l,'content':D(0x1d4)+m+D(0x1d4),'begin':D(0x1d3),'end':w});}}else{if(d[D(0x1b8)]['client']==='vanilla'){const x=this['fsi'][D(0x1d7)]({'pathParts':[D(0x196),D(0x1de),D(0x197),D(0x1b1)]});l=this[D(0x1dc)][D(0x1c0)]({'pathParts':[x],'config':d}),m=this[D(0x1dc)][D(0x1d0)]({'srcPath':D(0x1c8),'context':k}),await this[D(0x1dc)][D(0x1a8)]({'filePath':l,'content':'\x0a'+m});}}});}catch(f){Log[C(0x1c5)](f);}});
@@ -1 +1 @@
1
- const a138m=a138d;function a138c(){const p=['36276IPNcyB','462847URkQdm','logger','getMakaProjectConfig','Installing\x20winston','9FYIVOB','engines','Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','pathFromApp','template','resourceName','withValue','1006521FbuLxU','startup','17416596UGacIk','search','type','1835IxyWAt','constructor','77Jtqgus','tsx','7338aPbIov','965390NSfnYw','(((.+)+)+)+$','winston','lib','installNpmPackage','fsi','svc','create','imports','service/logger/logger.js','maka\x20g:svc\x20service-logger\x20--type=logger','apply','292912rLnqGq','11hxdSEW','toString','checkNpmPackage','16GDXLgS','service'];a138c=function(){return p;};return a138c();}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=-parseInt(j(0x74))/0x1*(parseInt(j(0x79))/0x2)+-parseInt(j(0x85))/0x3*(parseInt(j(0x77))/0x4)+parseInt(j(0x8a))/0x5*(parseInt(j(0x66))/0x6)+-parseInt(j(0x64))/0x7*(-parseInt(j(0x73))/0x8)+-parseInt(j(0x7e))/0x9*(parseInt(j(0x67))/0xa)+parseInt(j(0x7a))/0xb+parseInt(j(0x87))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0xac99a));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x72)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0x75)]()[l(0x88)](l(0x68))['toString']()[l(0x8b)](a138a)[l(0x88)](l(0x68));});function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0x64;let f=c[d];return f;},a138d(a,b);}a138a();import{camelCase,paramCase,pascalCase}from'change-case';import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator[a138m(0x6e)]({'name':a138m(0x78),'aliases':[a138m(0x6d)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':a138m(0x80),'requiredOpts':[{'name':a138m(0x89),'values':[a138m(0x7b)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x71)]},async function(a,b){const n=a138m;try{const c=this['fsi'][n(0x7c)]();await this[n(0x6c)][n(0x84)](c,async()=>{const o=n,d=this[o(0x6c)][o(0x81)]({}),f=paramCase(b['resourceName']),g={'name':pascalCase(b[o(0x83)]),'fileName':f,'camelCase':camelCase(b[o(0x83)]),'type':b['type'],'engine':c[o(0x7f)]['js'],'noRename':!![]};let h='js';c[o(0x7f)]['js']===o(0x65)&&(h='ts');if(b[o(0x89)]==='logger'){!this[o(0x6c)][o(0x76)](o(0x69))&&await this[o(0x6c)][o(0x6b)]('winston\x20setimmediate',{'cwd':d,'msg':o(0x7d)});const i=this[o(0x6c)][o(0x81)]({'pathParts':[o(0x6f),o(0x86),o(0x6a),'services',f+'.'+h]});await this[o(0x6c)][o(0x82)]({'srcPath':o(0x70),'destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
1
+ const a138m=a138d;function a138c(){const p=['services','type','constructor','fsi','winston','apply','logger','1218528PYcrvY','249684OhwPQM','getMakaProjectConfig','710072ODtJah','470WFpDKm','engines','imports','764PxldlR','maka\x20g:svc\x20service-logger\x20--type=logger','2598237TscZax','Installing\x20winston','tsx','withValue','pathFromApp','search','svc','installNpmPackage','1189713aAbWZR','10kcKYxf','resourceName','40fJtFBJ','service','2254600szgTtP','toString','(((.+)+)+)+$','checkNpmPackage','startup'];a138c=function(){return p;};return a138c();}(function(a,b){const j=a138d,c=a();while(!![]){try{const d=parseInt(j(0x10e))/0x1*(-parseInt(j(0x10b))/0x2)+parseInt(j(0x110))/0x3+-parseInt(j(0x11d))/0x4+-parseInt(j(0x11b))/0x5*(-parseInt(j(0x108))/0x6)+-parseInt(j(0x118))/0x7+parseInt(j(0x10a))/0x8+-parseInt(j(0x107))/0x9*(-parseInt(j(0x119))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a138c,0x7c829));const a138b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a138d;if(c){const e=c[k(0x105)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a138a=a138b(this,function(){const l=a138d;return a138a[l(0xfc)]()[l(0x115)](l(0xfd))[l(0xfc)]()[l(0x102)](a138a)['search']('(((.+)+)+)+$');});a138a();import{camelCase,paramCase,pascalCase}from'change-case';function a138d(a,b){const c=a138c();return a138d=function(d,e){d=d-0xfc;let f=c[d];return f;},a138d(a,b);}import{Generator}from'../generator.js';import{Log}from'../tools/log/log.class.js';Generator['create']({'name':a138m(0x11c),'aliases':[a138m(0x116)],'usage':'maka\x20{generate,\x20g}:{service}\x20<resource-name>','shortDesc':'Generate\x20a\x20service\x20to\x20run\x20within\x20your\x20meteor\x20application.','requiredOpts':[{'name':a138m(0x101),'values':[a138m(0x106)]}],'validOpts':[],'maxArgLength':0x1,'examples':[a138m(0x10f)]},async function(a,b){const n=a138m;try{const c=this[n(0x103)][n(0x109)]();await this['fsi'][n(0x113)](c,async()=>{const o=n,d=this[o(0x103)][o(0x114)]({}),f=paramCase(b[o(0x11a)]),g={'name':pascalCase(b['resourceName']),'fileName':f,'camelCase':camelCase(b[o(0x11a)]),'type':b['type'],'engine':c[o(0x10c)]['js'],'noRename':!![]};let h='js';c['engines']['js']===o(0x112)&&(h='ts');if(b[o(0x101)]===o(0x106)){!this[o(0x103)][o(0xfe)](o(0x104))&&await this['fsi'][o(0x117)]('winston\x20setimmediate',{'cwd':d,'msg':o(0x111)});const i=this[o(0x103)][o(0x114)]({'pathParts':[o(0x10d),o(0xff),'lib',o(0x100),f+'.'+h]});await this[o(0x103)]['template']({'srcPath':'service/logger/logger.js','destPath':i,'context':g,'config':c});}});}catch(d){Log['error'](d);}});
@@ -1 +1 @@
1
- (function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xe7))/0x1+parseInt(f(0xe9))/0x2*(parseInt(f(0xe6))/0x3)+-parseInt(f(0xed))/0x4+-parseInt(f(0xee))/0x5+parseInt(f(0xe3))/0x6*(parseInt(f(0xef))/0x7)+-parseInt(f(0xe4))/0x8*(-parseInt(f(0xeb))/0x9)+-parseInt(f(0xf0))/0xa*(parseInt(f(0xec))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0x48573));var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xea)]()[h(0xe5)]('(((.+)+)+)+$')[h(0xea)]()['constructor'](a139a)[h(0xe5)]('(((.+)+)+)+$');});function a139c(){var i=['22270agXtip','toString','3806181BPIDxX','473IfTQLN','724128ljWzur','2618005nOwPXb','824467OUTndA','52370wyDbcz','24CBesff','8NcBYgg','search','33dEwmEQ','209613oRDxoY','apply'];a139c=function(){return i;};return a139c();}a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xe3;var f=c[d];return f;},a139d(a,b);}import'./openssl.js';
1
+ (function(a,b){var f=a139d,c=a();while(!![]){try{var d=parseInt(f(0xec))/0x1+-parseInt(f(0xea))/0x2*(parseInt(f(0xee))/0x3)+-parseInt(f(0xf3))/0x4*(-parseInt(f(0xf1))/0x5)+-parseInt(f(0xf5))/0x6+-parseInt(f(0xef))/0x7+parseInt(f(0xe9))/0x8*(-parseInt(f(0xf6))/0x9)+parseInt(f(0xf2))/0xa*(parseInt(f(0xed))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a139c,0xeb5ed));function a139c(){var i=['844400jynXIX','toString','435003DmYHpM','53862589AndnQN','3hzlCOq','8029511XCZMgD','constructor','317845aaXNDj','10YPwCYH','4CTqmAR','(((.+)+)+)+$','9538716JdAxYE','9vNvVsj','apply','search','10176280ZmlqLv'];a139c=function(){return i;};return a139c();}var a139b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a139d;if(c){var e=c[g(0xe7)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a139a=a139b(this,function(){var h=a139d;return a139a[h(0xeb)]()[h(0xe8)](h(0xf4))[h(0xeb)]()[h(0xf0)](a139a)[h(0xe8)](h(0xf4));});a139a();import'./translation.js';function a139d(a,b){var c=a139c();return a139d=function(d,e){d=d-0xe7;var f=c[d];return f;},a139d(a,b);}import'./openssl.js';
@@ -1 +1 @@
1
- const a140k=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0xa7))/0x1*(parseInt(i(0xb1))/0x2)+-parseInt(i(0xb6))/0x3+parseInt(i(0xaa))/0x4+parseInt(i(0xbc))/0x5*(-parseInt(i(0xb0))/0x6)+-parseInt(i(0xb8))/0x7+parseInt(i(0xad))/0x8*(parseInt(i(0xbd))/0x9)+parseInt(i(0xa8))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0x9756a));const a140b=(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;};}()),a140a=a140b(this,function(){const j=a140d;return a140a[j(0xbb)]()[j(0xbf)](j(0xc0))[j(0xbb)]()[j(0xa4)](a140a)[j(0xbf)]('(((.+)+)+)+$');});a140a();import{Generator}from'../../generator.js';function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0xa3;let f=c[d];return f;},a140d(a,b);}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140k(0xbe)]({'name':a140k(0xb4),'usage':a140k(0xae),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':['env'],'examples':[a140k(0xa9)],'validOpts':[]},async function(a,b){const l=a140k;try{const c=await this[l(0xba)][l(0xa5)](),d=await this[l(0xba)]['getGlobalConfig'](),f=this[l(0xba)][l(0xaf)](b[l(0xb7)]),g=a140e[l(0xac)](f,l(0xa6),l(0xa3));await this[l(0xba)][l(0xb3)](c,async()=>{const m=l,h={'app':d['appName'],'noRename':!![]};await this[m(0xba)][m(0xb5)]({'srcPath':m(0xb9),'destPath':g,'framework':m(0xab),'context':h,'config':c});});}catch(h){Log[l(0xb2)](h);}});function a140c(){const n=['690UfhtRX','error','withValue','sslconfig','template','3700773DSEiqo','env','1380617phBZWe','openssl/openssl.conf','fsi','toString','5jIhUtT','7874271CaHMbp','create','search','(((.+)+)+)+$','openssl.conf','constructor','getMakaProjectConfig','_keys','421UnEOSK','22421680hzvIZg','maka\x20g:sslconfig\x20--env\x20dev','895124qgKEiy','service','join','8OwKLsH','maka\x20{generate,\x20g}:sslconfig','getAppConfigPath','6869514eKgQiG'];a140c=function(){return n;};return a140c();}
1
+ const a140l=a140d;(function(a,b){const i=a140d,c=a();while(!![]){try{const d=-parseInt(i(0x1ab))/0x1+parseInt(i(0x1ba))/0x2+parseInt(i(0x1b8))/0x3*(parseInt(i(0x1b1))/0x4)+parseInt(i(0x1b7))/0x5+-parseInt(i(0x1a5))/0x6*(parseInt(i(0x1af))/0x7)+parseInt(i(0x1a2))/0x8*(-parseInt(i(0x1b2))/0x9)+parseInt(i(0x1a8))/0xa*(-parseInt(i(0x1b4))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a140c,0xefca4));function a140d(a,b){const c=a140c();return a140d=function(d,e){d=d-0x19e;let f=c[d];return f;},a140d(a,b);}const a140b=(function(){let a=!![];return function(b,c){const d=a?function(){const j=a140d;if(c){const e=c[j(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a140a=a140b(this,function(){const k=a140d;return a140a['toString']()[k(0x1b5)](k(0x1b6))['toString']()[k(0x1aa)](a140a)[k(0x1b5)]('(((.+)+)+)+$');});a140a();import{Generator}from'../../generator.js';function a140c(){const o=['search','(((.+)+)+)+$','9408030gZQXxv','939RGWKfa','apply','3358622gPFaaw','template','create','error','sslconfig','2144hjBwOg','fsi','_keys','84DMPGyR','withValue','maka\x20g:sslconfig\x20--env\x20dev','470dEkLgo','getAppConfigPath','constructor','1274146zDhrKR','maka\x20{generate,\x20g}:sslconfig','join','service','1827XLhraw','env','2516HLmfPU','3312PJuEWH','openssl/openssl.conf','327470pdvyfa'];a140c=function(){return o;};return a140c();}import{Log}from'../../tools/log/log.class.js';import a140e from'path';Generator[a140l(0x19f)]({'name':a140l(0x1a1),'usage':a140l(0x1ac),'shortDesc':'Generate\x20a\x20new\x20openssl\x20config\x20file','noNeedResource':!![],'requiredOpts':['env'],'examples':[a140l(0x1a7)],'validOpts':[]},async function(a,b){const m=a140l;try{const c=await this[m(0x1a3)]['getMakaProjectConfig'](),d=await this['fsi']['getGlobalConfig'](),f=this[m(0x1a3)][m(0x1a9)](b[m(0x1b0)]),g=a140e[m(0x1ad)](f,m(0x1a4),'openssl.conf');await this[m(0x1a3)][m(0x1a6)](c,async()=>{const n=m,h={'app':d['appName'],'noRename':!![]};await this['fsi'][n(0x19e)]({'srcPath':n(0x1b3),'destPath':g,'framework':n(0x1ae),'context':h,'config':c});});}catch(h){Log[m(0x1a0)](h);}});
@@ -1 +1 @@
1
- const a141A=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x197))/0x1*(parseInt(x(0x1c3))/0x2)+-parseInt(x(0x1bb))/0x3*(parseInt(x(0x1ba))/0x4)+-parseInt(x(0x1a2))/0x5*(parseInt(x(0x195))/0x6)+-parseInt(x(0x1c1))/0x7+-parseInt(x(0x18c))/0x8*(parseInt(x(0x1c5))/0x9)+parseInt(x(0x1c7))/0xa+parseInt(x(0x1b3))/0xb*(parseInt(x(0x1b4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0x36525));const a141b=(function(){let a=!![];return function(b,c){const d=a?function(){const y=a141d;if(c){const e=c[y(0x1b9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a141a=a141b(this,function(){const z=a141d;return a141a[z(0x19e)]()[z(0x1a4)]('(((.+)+)+)+$')[z(0x19e)]()['constructor'](a141a)[z(0x1a4)]('(((.+)+)+)+$');});a141a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';function a141c(){const D=['getMakaProjectConfig','12JSNcjw','findAppDirectory','42ybhRfg','installNpmPackage','i18n/index.js','server','import\x20\x27../lib/services/translations/i18n\x27;\x0a','getGlobalConfig','ssr','toString','warn','injectAtEndOfFile','Locale\x20already\x20exported:\x20','483940UdIlFs','features.withTranslations','search','fsi','i18n/i18n.js','i18n.js','lib','grep','services','translations','startup','translation','isFile','root','injectAtBeginningOfFile','index.js','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','7359AnMQmj','16404mowjNk','readFileSync','setProjectConfig','imports','maka\x20{generate,\x20g}:translation','apply','6052NvIHdP','219pkhfUT','index.','export\x20{\x20default\x20as\x20','engines','import\x20\x27../lib/services/translations/i18n\x27;','lang','1066499kiNcND','create','6736mvskUI','template','9UQiafO','Locale\x20already\x20defined:\x20','1684590ktPJRK','Generate\x20a\x20new\x20locale\x20translation','true','2101144UMOnVs','error','checkNpmPackage','default\x20as\x20','exit','locales','rewriteDestinationPathForEngine','pathFromApp'];a141c=function(){return D;};return a141c();}import a141e from'fs';function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x18a;let f=c[d];return f;},a141d(a,b);}Generator[a141A(0x1c2)]({'name':a141A(0x1ad),'usage':a141A(0x1b8),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':a141A(0x1c0),'boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141A(0x18a),'description':'\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','examples':['maka\x20g:translation\x20--lang=en\x20(default)','maka\x20g:translation\x20--lang=fr','maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const B=a141A;try{const c=this[B(0x1a5)][B(0x194)](),d=this[B(0x1a5)][B(0x19c)](),f=this[B(0x1a5)][B(0x196)]();await this['fsi']['withValue'](c,async()=>{const C=B;try{!b[C(0x1c0)]&&(b[C(0x1c0)]='en');!b[C(0x1af)]&&!this[C(0x1a5)][C(0x18e)]('i18next')&&(Log[C(0x19f)](C(0x1b2)),this[C(0x1a5)][C(0x198)]('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[C(0x1a5)][C(0x1b6)](C(0x1a3),!![]));const g=this[C(0x1a5)]['pathFromApp']({'pathParts':[C(0x1b7),C(0x1ac),'client',C(0x1b1)]}),h=this['fsi'][C(0x192)]({'pathParts':[g],'config':c}),i=this[C(0x1a5)][C(0x1a9)](a141e['readFileSync'](h)[C(0x19e)](),C(0x1bf))[0x0]&&!![];if(c['engines'][C(0x19d)]===C(0x18b)){!i&&this[C(0x1a5)][C(0x1b0)]({'filePath':h,'content':C(0x19b)});const t=this[C(0x1a5)][C(0x193)]({'pathParts':['imports',C(0x1ac),C(0x19a),'index.js']}),u=this[C(0x1a5)]['rewriteDestinationPathForEngine']({'pathParts':[t],'config':c}),v=this['fsi'][C(0x1a9)](a141e[C(0x1b5)](u)[C(0x19e)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[C(0x1a5)][C(0x1b0)]({'filePath':u,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});}else!i&&this[C(0x1a5)][C(0x1b0)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const j={'app':d['appName'],'config':c},k=this['fsi']['pathFromApp']({'pathParts':[C(0x1b7),C(0x1ac),C(0x1a8),C(0x1aa),C(0x1ab),C(0x1a7)]}),l=this[C(0x1a5)]['isFile'](this[C(0x1a5)][C(0x192)]({'pathParts':[k],'config':c}));!l&&await this[C(0x1a5)][C(0x1c4)]({'srcPath':C(0x1a6),'destPath':k,'framework':'service','context':j,'config':c});const m=this[C(0x1a5)][C(0x193)]({'pathParts':['imports','startup','lib',C(0x1aa),C(0x1ab),'locales',b[C(0x1c0)]+'.js']}),n=this[C(0x1a5)][C(0x192)]({'pathParts':[m],'config':c}),o=this['fsi'][C(0x1ae)](n);!o?await this[C(0x1a5)][C(0x1c4)]({'srcPath':'i18n/locales.js','destPath':m,'framework':'service','context':j,'config':c}):Log[C(0x19f)](C(0x1c6)+n);const p=this[C(0x1a5)][C(0x193)]({'pathParts':[C(0x1b7),'startup',C(0x1a8),C(0x1aa),'translations',C(0x191),C(0x1bc)+c[C(0x1be)]['js']]}),q=this[C(0x1a5)][C(0x192)]({'pathParts':[p],'config':c}),r=this[C(0x1a5)]['isFile'](q);!r&&await this['fsi'][C(0x1c4)]({'srcPath':C(0x199),'destPath':p,'framework':'service','context':j,'config':c});const s=this[C(0x1a5)][C(0x1a9)](a141e[C(0x1b5)](p)['toString'](),C(0x18f)+b[C(0x1c0)])[0x0]&&!![];!s?await this[C(0x1a5)][C(0x1a0)]({'filePath':p,'content':C(0x1bd)+b[C(0x1c0)]+'\x20}\x20from\x20\x27./'+b[C(0x1c0)]+'\x27;'}):Log[C(0x19f)](C(0x1a1)+p);}catch(w){Log[C(0x18d)](w),process[C(0x190)](0x1);}});}catch(g){Log['error'](g),process[B(0x190)](0x1);}});
1
+ function a141c(){const C=['locales','16keUKKF','6391790gizwSx','checkNpmPackage','index.js','exit','189281jOuSEE','template','\x20}\x20from\x20\x27./','834988oHPBtQ','warn','injectAtEndOfFile','server','findAppDirectory','(((.+)+)+)+$','startup','create','isFile','true','maka\x20g:translation\x20--lang=en\x20(default)','toString','imports','fsi','index.','translation','rewriteDestinationPathForEngine','injectAtBeginningOfFile','.js','withValue','10371610OHxKcp','setProjectConfig','lang','translations','i18n/index.js','default\x20as\x20','Locale\x20already\x20defined:\x20','Generate\x20a\x20new\x20locale\x20translation','24140402PqrjXC','i18n/locales.js','engines','Locale\x20already\x20exported:\x20','service','export\x20{\x20default\x20as\x20','import\x20\x27../lib/services/translations/i18n\x27;','maka\x20g:translation\x20--lang=fr','213186EHcblt','services','i18n/i18n.js','getGlobalConfig','5634297YBlSxP','2BkYewL','Verifying\x20npm\x20package\x20requirements:\x20i18next\x20...','client','import\x20\x27../lib/services/translations/i18n\x27;\x0a','\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','error','pathFromApp','grep','constructor','getMakaProjectConfig','maka\x20{generate,\x20g}:translation','lib','i18next','35jlYwhY','ssr','15dUofdb'];a141c=function(){return C;};return a141c();}const a141z=a141d;(function(a,b){const x=a141d,c=a();while(!![]){try{const d=-parseInt(x(0x20a))/0x1*(-parseInt(x(0x1f4))/0x2)+-parseInt(x(0x203))/0x3*(-parseInt(x(0x20d))/0x4)+parseInt(x(0x206))/0x5+parseInt(x(0x1ef))/0x6*(parseInt(x(0x201))/0x7)+parseInt(x(0x205))/0x8*(parseInt(x(0x1f3))/0x9)+-parseInt(x(0x1df))/0xa+-parseInt(x(0x1e7))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a141c,0xad2e8));const a141b=(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;};}()),a141a=a141b(this,function(){const y=a141d;return a141a[y(0x1d6)]()['search']('(((.+)+)+)+$')[y(0x1d6)]()[y(0x1fc)](a141a)['search'](y(0x212));});a141a();import{Generator}from'../../generator.js';import{Log}from'../../tools/log/log.class.js';import a141e from'fs';function a141d(a,b){const c=a141c();return a141d=function(d,e){d=d-0x1d5;let f=c[d];return f;},a141d(a,b);}Generator[a141z(0x214)]({'name':a141z(0x1da),'usage':a141z(0x1fe),'aliases':['t'],'noNeedResource':!![],'requiredOpts':[{'name':'lang','boolFlag':![],'regex':/^[a-z]{2}$/}],'shortDesc':a141z(0x1e6),'description':a141z(0x1f8),'examples':[a141z(0x1d5),a141z(0x1ee),'maka\x20g:translation\x20--lang=de'],'validOpts':[]},async function(a,b){const A=a141z;try{const c=this[A(0x1d8)][A(0x1fd)](),d=this[A(0x1d8)][A(0x1f2)](),f=this[A(0x1d8)][A(0x211)]();await this['fsi'][A(0x1de)](c,async()=>{const B=A;try{!b[B(0x1e1)]&&(b[B(0x1e1)]='en');!b['root']&&!this[B(0x1d8)][B(0x207)](B(0x200))&&(Log['warn'](B(0x1f5)),this['fsi']['installNpmPackage']('i18next\x20i18next-browser-languagedetector\x20react-i18next',{'cwd':f}),this[B(0x1d8)][B(0x1e0)]('features.withTranslations',!![]));const g=this[B(0x1d8)][B(0x1fa)]({'pathParts':[B(0x1d7),B(0x213),B(0x1f6),'index.js']}),h=this[B(0x1d8)][B(0x1db)]({'pathParts':[g],'config':c}),i=this[B(0x1d8)][B(0x1fb)](a141e['readFileSync'](h)[B(0x1d6)](),B(0x1ed))[0x0]&&!![];if(c[B(0x1e9)][B(0x202)]===B(0x216)){!i&&this[B(0x1d8)][B(0x1dc)]({'filePath':h,'content':'import\x20\x27../lib/services/translations/i18n\x27;\x0a'});const t=this['fsi'][B(0x1fa)]({'pathParts':['imports',B(0x213),B(0x210),B(0x208)]}),u=this[B(0x1d8)][B(0x1db)]({'pathParts':[t],'config':c}),v=this[B(0x1d8)]['grep'](a141e['readFileSync'](u)[B(0x1d6)](),'import\x20\x27../lib/services/translations/i18n\x27;')[0x0]&&!![];!v&&this[B(0x1d8)][B(0x1dc)]({'filePath':u,'content':B(0x1f7)});}else!i&&this[B(0x1d8)][B(0x1dc)]({'filePath':h,'content':B(0x1f7)});const j={'app':d['appName'],'config':c},k=this['fsi'][B(0x1fa)]({'pathParts':[B(0x1d7),B(0x213),'lib',B(0x1f0),B(0x1e2),'i18n.js']}),l=this[B(0x1d8)][B(0x215)](this[B(0x1d8)]['rewriteDestinationPathForEngine']({'pathParts':[k],'config':c}));!l&&await this[B(0x1d8)][B(0x20b)]({'srcPath':B(0x1f1),'destPath':k,'framework':B(0x1eb),'context':j,'config':c});const m=this['fsi'][B(0x1fa)]({'pathParts':['imports','startup','lib',B(0x1f0),B(0x1e2),B(0x204),b[B(0x1e1)]+B(0x1dd)]}),n=this[B(0x1d8)][B(0x1db)]({'pathParts':[m],'config':c}),o=this[B(0x1d8)][B(0x215)](n);!o?await this[B(0x1d8)][B(0x20b)]({'srcPath':B(0x1e8),'destPath':m,'framework':'service','context':j,'config':c}):Log[B(0x20e)](B(0x1e5)+n);const p=this[B(0x1d8)][B(0x1fa)]({'pathParts':[B(0x1d7),B(0x213),B(0x1ff),B(0x1f0),'translations',B(0x204),B(0x1d9)+c['engines']['js']]}),q=this['fsi']['rewriteDestinationPathForEngine']({'pathParts':[p],'config':c}),r=this[B(0x1d8)][B(0x215)](q);!r&&await this[B(0x1d8)][B(0x20b)]({'srcPath':B(0x1e3),'destPath':p,'framework':B(0x1eb),'context':j,'config':c});const s=this[B(0x1d8)][B(0x1fb)](a141e['readFileSync'](p)['toString'](),B(0x1e4)+b[B(0x1e1)])[0x0]&&!![];!s?await this['fsi'][B(0x20f)]({'filePath':p,'content':B(0x1ec)+b[B(0x1e1)]+B(0x20c)+b[B(0x1e1)]+'\x27;'}):Log[B(0x20e)](B(0x1ea)+p);}catch(w){Log[B(0x1f9)](w),process[B(0x209)](0x1);}});}catch(g){Log[A(0x1f9)](g),process['exit'](0x1);}});
@@ -1 +1 @@
1
- const a142l=a142d;(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x128))/0x1+parseInt(j(0x111))/0x2*(parseInt(j(0x122))/0x3)+parseInt(j(0x127))/0x4*(-parseInt(j(0x114))/0x5)+parseInt(j(0x117))/0x6*(-parseInt(j(0x11d))/0x7)+parseInt(j(0x118))/0x8+-parseInt(j(0x113))/0x9+-parseInt(j(0x12b))/0xa*(-parseInt(j(0x10f))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0x23fe8));const a142b=(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;};}()),a142a=a142b(this,function(){const k=a142d;return a142a[k(0x11a)]()[k(0x11b)](k(0x120))[k(0x11a)]()[k(0x129)](a142a)[k(0x11b)](k(0x120));});a142a();import a142e from'minimist';function a142c(){const m=['154ISwhRV','totalmem','6334QSgpDX','argv','192096kAUCZf','5RYnbOk','BROWSERSLIST_IGNORE_OLD_DATA','TOOL_NODE_FLAGS','1962vwRPiS','1249992saLYoE','dirname','toString','search','env','217XfJCvG','slice','stringify','(((.+)+)+)+$','NODE_NO_WARNINGS','207KsetIJ','camelizeKeys','--max-old-space-size=','MAKA_COMMAND_PATH','floor','1025664LCsbgo','122493wkeLsW','constructor','parse','130750IgERbe'];a142c=function(){return m;};return a142c();}import a142f from'os';function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x10f;let f=c[d];return f;},a142d(a,b);}import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a142g[a142l(0x119)](__filename);global[a142l(0x125)]=__dirname;const total_memory=a142f[a142l(0x110)](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math[a142l(0x126)](total_mem_in_mb),process['env'][a142l(0x116)]=a142l(0x124)+total_mem_in_mb,process[a142l(0x11c)][a142l(0x115)]='1',process['env'][a142l(0x121)]='1';const argv=a142e(process[a142l(0x112)][a142l(0x11e)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142l(0x12a)](JSON[a142l(0x11f)](argv));delete deepCopyArgv['_'];const opts=a142h[a142l(0x123)](deepCopyArgv);a142i['run'](args,opts);
1
+ const a142m=a142d;function a142c(){const n=['search','MAKA_COMMAND_PATH','parse','1549239kSeMQt','camelizeKeys','constructor','slice','32072916aUDWCc','1561SRUxyZ','59GxEwkd','BROWSERSLIST_IGNORE_OLD_DATA','stringify','TOOL_NODE_FLAGS','39174yTodWD','toString','11cStCzy','100YBSPZB','NODE_NO_WARNINGS','13086broFSA','76996BSUKuq','10OYNSKG','apply','dirname','14126355EACbtH','--max-old-space-size=','5069000ZwPtqH','env'];a142c=function(){return n;};return a142c();}(function(a,b){const j=a142d,c=a();while(!![]){try{const d=-parseInt(j(0x190))/0x1*(parseInt(j(0x199))/0x2)+parseInt(j(0x1a5))/0x3+-parseInt(j(0x19a))/0x4*(-parseInt(j(0x197))/0x5)+parseInt(j(0x194))/0x6*(-parseInt(j(0x18f))/0x7)+parseInt(j(0x1a0))/0x8+parseInt(j(0x19e))/0x9*(-parseInt(j(0x19b))/0xa)+-parseInt(j(0x196))/0xb*(-parseInt(j(0x18e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a142c,0xc2602));const a142b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a142d;if(c){const e=c[k(0x19c)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a142a=a142b(this,function(){const l=a142d;return a142a[l(0x195)]()[l(0x1a2)]('(((.+)+)+)+$')[l(0x195)]()[l(0x18c)](a142a)[l(0x1a2)]('(((.+)+)+)+$');});a142a();import a142e from'minimist';import a142f from'os';import a142g from'path';import a142h from'humps';import a142i from'./commands/maka.cmd.js';import'./commands/_index.js';import'./generators/_index.js';import{fileURLToPath}from'url';const __filename=fileURLToPath(import.meta['url']),__dirname=a142g[a142m(0x19d)](__filename);global[a142m(0x1a3)]=__dirname;function a142d(a,b){const c=a142c();return a142d=function(d,e){d=d-0x18c;let f=c[d];return f;},a142d(a,b);}const total_memory=a142f['totalmem'](),total_mem_in_kb=total_memory/0x400;let total_mem_in_mb=total_mem_in_kb/0x400;total_mem_in_mb=Math['floor'](total_mem_in_mb),process[a142m(0x1a1)][a142m(0x193)]=a142m(0x19f)+total_mem_in_mb,process['env'][a142m(0x191)]='1',process['env'][a142m(0x198)]='1';const argv=a142e(process['argv'][a142m(0x18d)](0x2)),args=argv['_'],deepCopyArgv=JSON[a142m(0x1a4)](JSON[a142m(0x192)](argv));delete deepCopyArgv['_'];const opts=a142h[a142m(0x1a6)](deepCopyArgv);a142i['run'](args,opts);
@@ -5,10 +5,10 @@ Resources:
5
5
  Type: AWS::EC2::Instance
6
6
  Properties:
7
7
  InstanceType: t2.micro
8
- ImageId: <%= amiId %> # Specify your desired AMI ID here
9
- KeyName: <%= keyPair %> # Specify your key pair name here
8
+ ImageId: <%= amiId %>
9
+ KeyName: <%= keyPair %>
10
10
  SecurityGroupIds:
11
- - <%= sgId %> # Specify your security group IDs here
11
+ - <%= sgId %>
12
12
  Tags:
13
13
  - Key: Name
14
14
  Value: <%= instanceName %>
@@ -1 +1 @@
1
- const a143L=a143d;(function(a,b){const I=a143d,c=a();while(!![]){try{const d=parseInt(I(0x14e))/0x1*(parseInt(I(0x172))/0x2)+-parseInt(I(0x16b))/0x3*(-parseInt(I(0x12e))/0x4)+parseInt(I(0x138))/0x5*(parseInt(I(0x149))/0x6)+-parseInt(I(0x146))/0x7+-parseInt(I(0x16d))/0x8+-parseInt(I(0x179))/0x9*(parseInt(I(0x17b))/0xa)+parseInt(I(0x175))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x7a245));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0x136)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0x12c)]()[K(0x120)](K(0x151))[K(0x12c)]()['constructor'](a143a)[K(0x120)](K(0x151));});a143a();import a143e from'path';import a143f from'os';function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x11e;let f=c[d];return f;},a143d(a,b);}import a143g from'fs';function a143c(){const a4=['options','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','indexOf','resourceName','string','_handler','.meteor','Invalid\x20option:\x20','shortDesc','list','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','2406068CiMOnT','isCommand','existsSync','336bcqkCp','config','error','getMakaProjectConfig','formatToNamedParam','680749IcRdCI','roles','NIE','(((.+)+)+)+$','License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.','concat','domainLicense','getShortName','keys','validateUserIsLoggedIn','To\x20use\x20this\x20command,\x20\x22','Local','examples','win32','user','aliases','help','dir','length','map','AppData','engines','exit','getAppProjectConfigs','To\x20use\x20this\x20generator,\x20\x22','ask','match','platform','remapShortToLong','9AFAnmn','Invalid\x20value\x20for\x20','6905440KOtLbz','env','validateParams','Please\x20choose\x20an\x20environment','guest','2ykxmIa','getPro','docker','11905916yqLKCL','includes','Please\x20choose\x20a\x20value\x20for\x20','Invalid\x20argument:\x20','8056755sRqGMg','validateMakaProject','10xizaiT','local','isGenerator','findProjectDirectory','search','charAt','singleLicense','Please\x20provide\x20a\x20resource\x20name:','proGenerators','description','No\x20usage\x20provided.','validateMeteorInstall','usage','find','root','filter','toString','push','309588mHhLAl','None','cwd','every','name','Please\x20provide\x20a\x20value\x20for\x20','No\x20description\x20provided.','parent','apply','fsi','54205dGmEJV','join','You\x20must\x20have\x20'];a143c=function(){return a4;};return a143c();}const homeDir=a143f['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{[a143L(0x174)];['fsi'];[a143L(0x13b)];[a143L(0x132)];[a143L(0x135)];[a143L(0x140)];constructor(){const M=a143L;this[M(0x174)]=new Docker(),this[M(0x137)]=new FSI();}['getShortName'](a){const N=a143L;return a[N(0x121)](0x0);}[a143L(0x16a)](a,b){const O=a143L,c=this[O(0x14d)](b),d={...a};for(const e of c){const f=this[O(0x155)](e[O(0x132)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}[a143L(0x14d)](a){const P=a143L;if(a[P(0x131)](b=>typeof b===P(0x13f)))return a[P(0x161)](b=>({'name':b}));return a;}[a143L(0x168)](a){const Q=a143L,b=[this['name']][Q(0x153)](this['options'][Q(0x15d)]||[]);return this['parent']&&b['push'](this[Q(0x135)]),b[Q(0x176)](a);}[a143L(0x17a)](){const R=a143L,a=this[R(0x137)][R(0x11f)]();return a!==![]?!![]:![];}async[a143L(0x157)](){const S=a143L,a=await this[S(0x137)]['getPro']();return a?.[S(0x15c)]&&a?.[S(0x15c)]!==S(0x171)?!![]:![];}[a143L(0x127)](){const T=a143L,a=process[T(0x169)]===T(0x15b);if(a){if(!a143g[T(0x148)](a143e['join'](homeDir,T(0x162),T(0x159),'.meteor')))return![];}else{if(!a143g[T(0x148)](a143e[T(0x139)](homeDir,T(0x141))))return![];}return!![];}['validateEngines'](a){const U=a143L,b=this[U(0x137)][U(0x14c)](),c=b[U(0x163)],d=Object[U(0x156)](a);if(d[U(0x160)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[U(0x14b)](U(0x13a)+e+'\x20version\x20'+a[e]+'\x20installed\x20to\x20use\x20this\x20command.');throw UsageError;}}}async[a143L(0x16f)](a,b,c){const V=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[V(0x156)](b);if(h[V(0x176)](V(0x13e))&&b[V(0x13e)]===undefined&&!g){const m=await Actions['ask'](V(0x123));b[V(0x13e)]=m;}let i=[],j=b;if(d){i=this[V(0x14d)](d),j=this[V(0x16a)](b,i);if(i&&i?.['length']>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object['keys'](j)['includes'](o)){if(o===V(0x16e)){const r=this[V(0x137)][V(0x165)]()[V(0x12b)](t=>t!==V(0x17c)),s=await Actions[V(0x13b)]({'type':V(0x144),'name':V(0x16e),'message':V(0x170),'choices':r});b['env']=s[V(0x16e)];}else{const t=p;if(t){const u=await Actions[V(0x13b)]({'type':V(0x144),'name':o,'message':V(0x177)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions[V(0x167)](V(0x133)+o);if(v[V(0x168)](q))b[o]=v;else{Log[V(0x14b)](V(0x16c)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[V(0x167)](V(0x133)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[V(0x176)](x)){Log[V(0x14b)](V(0x16c)+o+':\x20'+x);throw new UsageError();}}}}let k=this[V(0x14d)](f),l=b;if(k&&Object[V(0x156)](k)?.[V(0x160)]>0x0){k=k[V(0x153)](i||[]),k[V(0x12d)]({'name':V(0x13e),'hidden':!![]}),k['push']({'name':V(0x15e),'boolFlag':!![]}),k[V(0x12d)]({'name':V(0x15f),'hidden':!![]}),k[V(0x12d)]({'name':V(0x130),'hidden':!![]}),k[V(0x12d)]({'name':V(0x12a),'hidden':!![]}),k['push']({'name':V(0x14a),'hidden':!![]}),l=this[V(0x16a)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[V(0x176)](B))){const C=A;if(C){const D=await Actions[V(0x13b)]({'type':V(0x144),'name':z,'message':'Please\x20choose\x20a\x20valid\x20value\x20for\x20'+z,'choices':A});l[z]=D[z];}}if(k[V(0x160)]>0x0)for(const E of Object[V(0x156)](l)){const F=k[V(0x129)](G=>G[V(0x132)]===E);if(!F){Log[V(0x14b)](V(0x142)+E);throw new UsageError();}}}}if(e&&e?.[V(0x160)]>0x0)for(const G of e){if(!e[V(0x176)](G)){Log[V(0x14b)](V(0x178)+G);const H=await Actions['ask'](V(0x13c)+G);a[a[V(0x13d)](G)]=H;}}return Object['assign'](j,l);}async['validateMakaSubscription'](a){const W=a143L;try{if(!a)return;const b=await this[W(0x137)][W(0x173)]();!b&&(Log[W(0x14b)](W(0x152)),process[W(0x164)](0x1));const c=!b?.[W(0x14f)][W(0x176)](W(0x122))&&!b?.['roles'][W(0x176)](W(0x154));if(this[W(0x147)](a)){const d=W(0x158)+a[W(0x132)]+W(0x145);if(a[W(0x13b)]['disableAuthCheck'])return;const f=b?.['proCommands'][W(0x176)](a['name'])||b?.['proCommands'][W(0x176)](a[W(0x135)]||'')||this[W(0x13b)]['isPro'];if(f&&c)throw d;}else{if(this[W(0x11e)](a)){const g=b?.[W(0x124)][W(0x176)](a['name'])||b?.[W(0x124)][W(0x176)](a[W(0x135)]||'');if(g&&c)throw W(0x166)+a[W(0x132)]+W(0x145);}}}catch(h){Log[W(0x14b)](h),process[W(0x164)](0x1);}}[a143L(0x147)](a){const X=a143L;return X(0x13b)in a;}[a143L(0x11e)](a){const Y=a143L;return!(Y(0x13b)in a);}['description'](){const Z=a143L;return this['options'][Z(0x125)]||this[Z(0x13b)][Z(0x143)]||Z(0x134);}[a143L(0x143)](){const a0=a143L;return this[a0(0x13b)]['shortDesc']||a0(0x150);}[a143L(0x128)](){const a1=a143L;return this[a1(0x13b)][a1(0x128)]||a1(0x126);}[a143L(0x15a)](){const a2=a143L;return this[a2(0x13b)][a2(0x15a)]||[];}['aliases'](){const a3=a143L;return this['options'][a3(0x15d)]||a3(0x12f);}}
1
+ const a143L=a143d;function a143d(a,b){const c=a143c();return a143d=function(d,e){d=d-0x9d;let f=c[d];return f;},a143d(a,b);}(function(a,b){const I=a143d,c=a();while(!![]){try{const d=parseInt(I(0xb4))/0x1*(parseInt(I(0xd8))/0x2)+-parseInt(I(0xdc))/0x3+parseInt(I(0xae))/0x4+-parseInt(I(0xb6))/0x5*(parseInt(I(0xec))/0x6)+-parseInt(I(0xb7))/0x7+parseInt(I(0xb8))/0x8+-parseInt(I(0xe1))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a143c,0x43b6e));const a143b=(function(){let a=!![];return function(b,c){const d=a?function(){const J=a143d;if(c){const e=c[J(0xe0)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a143a=a143b(this,function(){const K=a143d;return a143a[K(0xd7)]()[K(0xc8)](K(0xad))[K(0xd7)]()[K(0xf1)](a143a)[K(0xc8)](K(0xad));});function a143c(){const a3=['getShortName','To\x20use\x20this\x20command,\x20\x22','local','Please\x20choose\x20an\x20environment','concat','546RXkSgv','\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27','shortDesc','Invalid\x20value\x20for\x20','Invalid\x20option:\x20','constructor','isGenerator','isCommand','filter','roles','dir','To\x20use\x20this\x20generator,\x20\x22','assign','win32','env','exit','usage','homedir','singleLicense','examples','every','docker','includes','.meteor','help','(((.+)+)+)+$','1815144BPGukN','Please\x20provide\x20a\x20valid\x20argument\x20for\x20','engines','Please\x20choose\x20a\x20value\x20for\x20','match','isPro','1CbiVgF','push','16295KiwdLB','1438773BUsWvW','3969424rvBDlB','user','_handler','\x20installed\x20to\x20use\x20this\x20command.','description','disableAuthCheck','length','proCommands','fsi','options','platform','Please\x20provide\x20a\x20resource\x20name:','AppData','getAppProjectConfigs','formatToNamedParam','list','search','keys','remapShortToLong','validateMeteorInstall','config','error','validateMakaProject','ask','proGenerators','Invalid\x20argument:\x20','getPro','root','string','resourceName','Local','toString','971984GVWilN','No\x20usage\x20provided.','parent','findProjectDirectory','1083747VGZlMJ','aliases','name','validateUserIsLoggedIn','apply','2657169lVqZre','existsSync','Please\x20choose\x20a\x20valid\x20value\x20for\x20','validateMakaSubscription','find','Please\x20provide\x20a\x20value\x20for\x20'];a143c=function(){return a3;};return a143c();}a143a();import a143e from'path';import a143f from'os';import a143g from'fs';const homeDir=a143f[a143L(0xa5)]();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{[a143L(0xa9)];[a143L(0xc0)];[a143L(0xc1)];[a143L(0xde)];[a143L(0xda)];[a143L(0xba)];constructor(){const M=a143L;this['docker']=new Docker(),this[M(0xc0)]=new FSI();}[a143L(0xe7)](a){return a['charAt'](0x0);}[a143L(0xca)](a,b){const N=a143L,c=this[N(0xc6)](b),d={...a};for(const e of c){const f=this[N(0xe7)](e[N(0xde)]);a[f]&&(d[e['name']]=a[f],delete d[f]);}return d;}[a143L(0xc6)](a){const O=a143L;if(a[O(0xa8)](b=>typeof b===O(0xd4)))return a['map'](b=>({'name':b}));return a;}[a143L(0xb2)](a){const P=a143L,b=[this[P(0xde)]]['concat'](this[P(0xc1)][P(0xdd)]||[]);return this[P(0xda)]&&b['push'](this[P(0xda)]),b['includes'](a);}[a143L(0xce)](){const Q=a143L,a=this[Q(0xc0)][Q(0xdb)]();return a!==![]?!![]:![];}async[a143L(0xdf)](){const R=a143L,a=await this[R(0xc0)][R(0xd2)]();return a?.[R(0xb9)]&&a?.[R(0xb9)]!=='guest'?!![]:![];}[a143L(0xcb)](){const S=a143L,a=process[S(0xc2)]===S(0xa1);if(a){if(!a143g[S(0xe2)](a143e['join'](homeDir,S(0xc4),S(0xd6),'.meteor')))return![];}else{if(!a143g[S(0xe2)](a143e['join'](homeDir,S(0xab))))return![];}return!![];}['validateEngines'](a){const T=a143L,b=this[T(0xc0)]['getMakaProjectConfig'](),c=b[T(0xb0)],d=Object[T(0xc9)](a);if(d[T(0xbe)]>0x0)for(const e of d){const f=c[e];if(f!==a[e]){Log[T(0xcd)]('You\x20must\x20have\x20'+e+'\x20version\x20'+a[e]+T(0xbb));throw UsageError;}}}async['validateParams'](a,b,c){const U=a143L,{requiredOpts:d,validArgs:e,validOpts:f,noNeedResource:g}=c,h=Object[U(0xc9)](b);if(h[U(0xaa)]('resourceName')&&b[U(0xd5)]===undefined&&!g){const m=await Actions[U(0xcf)](U(0xc3));b['resourceName']=m;}let i=[],j=b;if(d){i=this['formatToNamedParam'](d),j=this[U(0xca)](b,i);if(i&&i?.[U(0xbe)]>0x0)for(const n of i){const {name:o,values:p,regex:q}=n;if(!Object[U(0xc9)](j)[U(0xaa)](o)){if(o==='env'){const r=this[U(0xc0)][U(0xc5)]()[U(0xf4)](t=>t!==U(0xe9)),s=await Actions[U(0xc1)]({'type':U(0xc7),'name':U(0xa2),'message':U(0xea),'choices':r});b['env']=s[U(0xa2)];}else{const t=p;if(t){const u=await Actions[U(0xc1)]({'type':U(0xc7),'name':o,'message':U(0xb1)+o,'choices':p});b[o]=u[o];}else{if(q){const v=await Actions['ask'](U(0xe6)+o);if(v[U(0xb2)](q))b[o]=v;else{Log['error'](U(0xef)+o+':\x20'+v);throw new UsageError();}}else{const w=await Actions[U(0xcf)](U(0xe6)+o);b[o]=w;}}}}else{const x=j[o];if(p&&!p[U(0xaa)](x)){Log['error']('Invalid\x20value\x20for\x20'+o+':\x20'+x);throw new UsageError();}}}}let k=this[U(0xc6)](f),l=b;if(k&&Object['keys'](k)?.[U(0xbe)]>0x0){k=k[U(0xeb)](i||[]),k[U(0xb5)]({'name':'resourceName','hidden':!![]}),k['push']({'name':U(0xac),'boolFlag':!![]}),k[U(0xb5)]({'name':U(0x9e),'hidden':!![]}),k['push']({'name':'cwd','hidden':!![]}),k['push']({'name':U(0xd3),'hidden':!![]}),k[U(0xb5)]({'name':U(0xcc),'hidden':!![]}),l=this[U(0xca)](b,k);for(const y of k){const {name:z,values:A}=y,B=l[z];if(B!==undefined&&(!A||!A[U(0xaa)](B))){const C=A;if(C){const D=await Actions[U(0xc1)]({'type':U(0xc7),'name':z,'message':U(0xe3)+z,'choices':A});l[z]=D[z];}}if(k[U(0xbe)]>0x0)for(const E of Object[U(0xc9)](l)){const F=k[U(0xe5)](G=>G[U(0xde)]===E);if(!F){Log[U(0xcd)](U(0xf0)+E);throw new UsageError();}}}}if(e&&e?.['length']>0x0)for(const G of e){if(!e[U(0xaa)](G)){Log[U(0xcd)](U(0xd1)+G);const H=await Actions[U(0xcf)](U(0xaf)+G);a[a['indexOf'](G)]=H;}}return Object[U(0xa0)](j,l);}async[a143L(0xe4)](a){const V=a143L;try{if(!a)return;const b=await this['fsi'][V(0xd2)]();!b&&(Log[V(0xcd)]('License\x20error,\x20you\x20may\x20need\x20to\x20re-login\x20or\x20delete\x20your\x20~/.meteor/.maka/global-config.json\x20file\x20to\x20regenerate\x20a\x20free\x20license.'),process[V(0xa3)](0x1));const c=!b?.['roles'][V(0xaa)](V(0xa6))&&!b?.[V(0x9d)][V(0xaa)]('domainLicense');if(this[V(0xf3)](a)){const d=V(0xe8)+a[V(0xde)]+V(0xed);if(a[V(0xc1)][V(0xbd)])return;const f=b?.[V(0xbf)][V(0xaa)](a['name'])||b?.[V(0xbf)][V(0xaa)](a[V(0xda)]||'')||this[V(0xc1)][V(0xb3)];if(f&&c)throw d;}else{if(this[V(0xf2)](a)){const g=b?.[V(0xd0)][V(0xaa)](a['name'])||b?.[V(0xd0)][V(0xaa)](a[V(0xda)]||'');if(g&&c)throw V(0x9f)+a[V(0xde)]+'\x22,\x20please\x20upgrade\x20to\x20PRO\x20by\x20becoming\x20a\x20pateron\x20@\x20patreon.com/user?u=110174702,\x20then\x20issue:\x20\x27maka\x20login\x27';}}}catch(h){Log[V(0xcd)](h),process['exit'](0x1);}}['isCommand'](a){const W=a143L;return W(0xc1)in a;}[a143L(0xf2)](a){const X=a143L;return!(X(0xc1)in a);}[a143L(0xbc)](){const Y=a143L;return this['options'][Y(0xbc)]||this[Y(0xc1)]['shortDesc']||'No\x20description\x20provided.';}[a143L(0xee)](){const Z=a143L;return this[Z(0xc1)][Z(0xee)]||'NIE';}['usage'](){const a0=a143L;return this['options'][a0(0xa4)]||a0(0xd9);}[a143L(0xa7)](){const a1=a143L;return this[a1(0xc1)][a1(0xa7)]||[];}['aliases'](){const a2=a143L;return this[a2(0xc1)]['aliases']||'None';}}
@@ -1 +1 @@
1
- const a144i=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0xad))/0x1*(parseInt(f(0xac))/0x2)+-parseInt(f(0x9d))/0x3+-parseInt(f(0x9f))/0x4+-parseInt(f(0xa4))/0x5+parseInt(f(0xa3))/0x6+-parseInt(f(0xa1))/0x7+parseInt(f(0x9c))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x3229a));function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x9b;let f=c[d];return f;},a144d(a,b);}function a144c(){const l=['toString','332466KfceRy','1GNyXOR','password','4512320dkOjFH','551883nfIiRT','(((.+)+)+)+$','456916xHwwpC','input','1367709kUzhAE','answer','432600GdlPlY','516650cQIIbf','options','search','prompt','confirm','ask','apply'];a144c=function(){return l;};return a144c();}const a144b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a144d;if(c){const e=c[g(0xaa)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a144a=a144b(this,function(){const h=a144d;return a144a['toString']()[h(0xa6)](h(0x9e))[h(0xab)]()['constructor'](a144a)['search'](h(0x9e));});a144a();import a144e from'inquirer';export class Actions{static async[a144i(0xa9)](a,b){const j=a144i,{answer:c}=await a144e['prompt']({'type':b?j(0x9b):j(0xa0),'name':j(0xa2),'message':a});return c;}static async[a144i(0xa8)](a,b=![]){const k=a144i,{answer:c}=await a144e[k(0xa7)]({'type':k(0xa8),'name':k(0xa2),'message':a,'default':b});return c;}static async[a144i(0xa5)](a){const b=await a144e['prompt'](a);return b;}}
1
+ function a144c(){const l=['constructor','380424VXmAJA','ask','input','9aQFtCi','prompt','64094crFidr','confirm','2705563MjERwq','search','815136YdoNId','1251072XsIyjw','14931xNYsiA','answer','2003770VTyLQw','31TTpJYd','toString','(((.+)+)+)+$','options'];a144c=function(){return l;};return a144c();}const a144h=a144d;(function(a,b){const f=a144d,c=a();while(!![]){try{const d=parseInt(f(0x1d5))/0x1*(-parseInt(f(0x1cc))/0x2)+-parseInt(f(0x1ca))/0x3*(-parseInt(f(0x1d0))/0x4)+parseInt(f(0x1d4))/0x5+parseInt(f(0x1da))/0x6+parseInt(f(0x1ce))/0x7+parseInt(f(0x1d1))/0x8+parseInt(f(0x1d2))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a144c,0x98fad));const a144b=(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;};}()),a144a=a144b(this,function(){const g=a144d;return a144a[g(0x1d6)]()[g(0x1cf)]('(((.+)+)+)+$')['toString']()[g(0x1d9)](a144a)[g(0x1cf)](g(0x1d7));});a144a();import a144e from'inquirer';function a144d(a,b){const c=a144c();return a144d=function(d,e){d=d-0x1ca;let f=c[d];return f;},a144d(a,b);}export class Actions{static async[a144h(0x1db)](a,b){const i=a144h,{answer:c}=await a144e[i(0x1cb)]({'type':b?'password':i(0x1dc),'name':i(0x1d3),'message':a});return c;}static async[a144h(0x1cd)](a,b=![]){const j=a144h,{answer:c}=await a144e[j(0x1cb)]({'type':j(0x1cd),'name':'answer','message':a,'default':b});return c;}static async[a144h(0x1d8)](a){const k=a144h,b=await a144e[k(0x1cb)](a);return b;}}
@@ -1 +1 @@
1
- const a145s=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=parseInt(p(0x112))/0x1+parseInt(p(0x144))/0x2*(-parseInt(p(0x123))/0x3)+parseInt(p(0xfe))/0x4*(-parseInt(p(0x181))/0x5)+parseInt(p(0x155))/0x6*(-parseInt(p(0xdb))/0x7)+parseInt(p(0xce))/0x8*(parseInt(p(0xd8))/0x9)+parseInt(p(0x147))/0xa*(-parseInt(p(0xcd))/0xb)+parseInt(p(0xf0))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0x3e09a));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x16b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x118)]()[r(0x12f)](r(0x13a))[r(0x118)]()[r(0x12d)](a145a)['search'](r(0x13a));});function a145c(){const a1=['tag:created-by','uri','instanceId','now','Instances','3702bbgbhW','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','\x20NAME:\x20','environment','Hosted\x20zone\x20created\x20successfully!','sgIds','\x20CIDR:\x20','ssh.json','repositoryUri','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','Instance\x20rebooted!','KeyName','No\x20instances\x20found','createFile','Could\x20not\x20find\x20hosted\x20zone','split','find','sgId','from','ec2terminateInstance','us-east-1',',\x20URI:\x20','apply','UserData','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','authorizationToken','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','eu-central-2','status','eu-west-2','concat','ec2rebootInstance','AVAILABLE','map','\x20PUB_IP:\x20','warn','Region:\x20','trim','notice','GroupName','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','file://','description','userData','52645HoSHeN','name','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','key','ecrDeleteRepository','region','eu-west-1','ec2describeKeys','VpcId','us-west-2','ap-southeast-2','Error\x20generating\x20key\x20pair','ca-west-1','changeResourceRecordSets','error','1275813gTJgBd','24sbZONw','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','createKeyPairEC2Key','fsi','log','message','sa-east-1','push','Authorization\x20data\x20is\x20empty','length','180729ghWPTY','.pem.txt','ap-northeast-1','4781ixfnOK','Name','ec2createSG','running','ec2create','ignore','eu-south-1','maxCount','registerDomain','Web\x20App','confirm','\x20VPCID:\x20','\x20to\x20','isFile','nextToken','ID:\x20','ca-central-1','From\x20AWS:','Successfully\x20linked\x20EC2\x20instance\x20','writeFileSync','ecrCreateRepository','13799820xtHIvN','utf8','HostedZones','terminated','httpStatusCode','eu-west-3','us-west-1','us-east-2','CidrBlock','Port\x20','Timeout\x20while\x20processing\x20','send','\x20Error\x20Rason:\x20','createKeyPair','184KzBvpf','Description:','\x20PRIV_IP:\x20','getEcrLoginPassword','Prices','route53CreateHostedZone','reason','ap-northeast-3','ap-east-1','linkEC2ToRoute53','info','stop','statusCode','Failed\x20to\x20create\x20repository\x20in\x20','withSpinner','eu-central-1','\x20opened!','Final\x20list\x20of\x20ECR\x20repositories:','race','ask','340126wUbzCZ',',\x20Name:\x20','0.0.0.0/0','authorizationData','exit','forEach','toString','config','ingressRule','/dev/sdh','\x20ENV:\x20','chmod\x20400\x20','success','readFileSync','deleteKeyPair','Invalid\x20choice','listAllEcrRepositories','475611WYPnOw','UPSERT','il-central-1','Error\x20linking\x20EC2\x20to\x20Route\x2053:','checkDomainAvailability','repositoryName','getAppConfigPath','publicIp','Repository\x20\x22','privateIp','constructor','eu-south-2','search','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','af-south-1','listHostedZonesByName','ap-northeast-2','RegistrationPrice','maka-cli','Created:\x20','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','chooseVPC','\x22\x20created\x20successfully\x20in\x20','(((.+)+)+)+$','type','$response','\x27\x20has\x20been\x20registered\x20successfully.','parse','vpcId','Error\x20saving\x20pem\x20file,\x20aborting','pem','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','$metadata','2BBMwkY','...','timeout','20RzrICw','_keys','sgPorts','ap-south-2','join','Availability','repositories','Please\x20choose\x20a\x20VPC:\x20[0]\x20','GroupId'];a145c=function(){return a1;};return a145c();}a145a();import a145e from'fs';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0xc6;let f=c[d];return f;},a145d(a,b);}import a145f from'path';import{execSync}from'child_process';import{Actions}from'../actions/actions.class.js';import{Log}from'../log/log.class.js';import{FSI}from'../fsi/fsi.class.js';import{EC2Client,DescribeInstancesCommand,RunInstancesCommand,TerminateInstancesCommand,CreateKeyPairCommand,AuthorizeSecurityGroupIngressCommand,CreateSecurityGroupCommand,RebootInstancesCommand,DescribeVpcsCommand,DescribeKeyPairsCommand,DeleteKeyPairCommand,DescribeSecurityGroupsCommand,DeleteSecurityGroupCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{[a145s(0xd1)];constructor(){const t=a145s;this[t(0xd1)]=new FSI();}async[a145s(0xef)](a){const u=a145s;try{const b=new ECRClient({'region':a[u(0x186)]}),c={'repositoryName':a[u(0x182)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[u(0x11e)](u(0x12b)+a[u(0x182)]+u(0x139)+a[u(0x186)]+'.'),f;}catch(g){Log[u(0xcc)](u(0x10b)+a[u(0x186)]+':\x20'+g);throw g;}}async[a145s(0x122)](a){const v=a145s,b=[v(0x169),v(0xf7),v(0xf6),'us-west-2','ap-south-1',v(0x105),v(0x133),'ap-southeast-1',v(0xc8),v(0xda),v(0xeb),v(0x10d),v(0x187),v(0x172),v(0xf5),'eu-north-1',v(0xd4),v(0x131),v(0x106),v(0x14a),'ap-southeast-3','ap-southeast-4',v(0xca),v(0xe1),v(0x12e),v(0x170),'me-south-1','me-central-1',v(0x125)],c=[v(0x169),v(0xf7),v(0xf6),v(0xc7)],d=a==='all'?b:a?a[v(0x164)](','):c;let f=[];const g=Log[v(0x10c)]();for(const h of d){g['start']('Processing\x20'+h['trim']()+v(0x145));const i=new ECRClient({'region':h[v(0x17a)]()});try{let j=undefined;do{const k=await Promise[v(0x110)]([i[v(0xfb)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l('timeout'),0x7d0))]);if(k===v(0x146)){Log['warn'](v(0xfa)+h['trim']()+'.');break;}else k[v(0x14d)]&&k[v(0x14d)][v(0xd7)]>0x0&&(f=f[v(0x173)](k[v(0x14d)][v(0x176)](l=>({'name':l[v(0x128)],'uri':l[v(0x15d)],'region':h[v(0x17a)]()}))));j=k[v(0xe9)];}while(j);}catch(l){Log[v(0xcc)]('Failed\x20in\x20'+h[v(0x17a)]()+':\x20'+l[v(0xd3)]);}finally{g[v(0x109)]();}}return f[v(0xd7)]>0x0?(console[v(0xd2)](),Log[v(0x11e)](v(0x10f)),f['forEach'](m=>{const w=v;Log[w(0x108)](w(0x179)+m['region']+w(0x113)+m[w(0x182)]+w(0x16a)+m[w(0x151)]);})):Log[v(0x178)](v(0x156)),f;}async[a145s(0x103)](a){const x=a145s;try{const b={'CallerReference':''+Date[x(0x153)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[x(0x11e)](x(0x159));}catch(d){Log[x(0xcc)]('Error\x20creating\x20hosted\x20zone'),console['error'](d);}}async[a145s(0xe3)](a,b,c,d){const y=a145s;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[y(0xfb)](f),Log[y(0x17b)]('The\x20domain\x20\x27'+b+y(0x13d));}catch(g){Log[y(0xcc)](y(0xcf)),Log[y(0x178)](y(0xec)),console['error']('\x20Status\x20Code:\x20'+g[y(0x13c)][y(0x10a)]),console['error'](y(0xfc)+g[y(0x13c)][y(0x104)]);}}async[a145s(0x127)](a){const z=a145s,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains['send'](c),e=d[z(0x14c)]===z(0x175);if(e){const f=a[z(0x164)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[z(0xfb)](h);if(i&&i[z(0x102)]&&i['Prices'][0x0]?.['RegistrationPrice']){const j=i['Prices'][0x0][z(0x134)];return{'available':e,'cost':j};}}catch(k){console[z(0xcc)]('Error\x20fetching\x20domain\x20pricing:',k);}}return{'available':e};}async[a145s(0x107)](a,b,c){const A=a145s;try{const d=await route53[A(0x132)]({'DNSName':c});if(!d?.[A(0xf2)])throw Log[A(0xcc)](A(0x163));const e=d?.[A(0xf2)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':A(0x124),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[A(0xcb)](f),Log[A(0x17b)](A(0xed)+a+A(0xe7)+c);}catch(g){console[A(0xcc)](A(0x126),g);}}async[a145s(0x101)]({awsAccountId:a,region:b}){const B=a145s,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[B(0xfb)](d);if(!f[B(0x115)]||f['authorizationData'][B(0xd7)]===0x0)throw new Error(B(0xd6));const g=f[B(0x115)][0x0];if(!g[B(0x16e)])throw new Error('Authorization\x20token\x20is\x20missing');const h=g[B(0x16e)];if(!h)throw new Error(B(0x130));const i=Buffer[B(0x167)](h,'base64')[B(0x118)](),j=i[B(0x164)](':')[0x1];if(!j)throw new Error(B(0x16f));return j;}catch(k){Log['error'](k);throw k;}}async[a145s(0x185)]({repoName:a,region:b}){const C=a145s,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[C(0xfb)](d);return f;}catch(g){Log[C(0xcc)](g);throw g;}}async[a145s(0xdf)](a){const D=a145s;try{const b={'BlockDeviceMappings':[{'DeviceName':D(0x11b),'Ebs':{'VolumeSize':0x64}}],'ImageId':a['imageId'],'InstanceType':a[D(0x13b)],'KeyName':a[D(0x184)],'MaxCount':a[D(0xe2)],'MinCount':a['minCount'],'SecurityGroupIds':a[D(0x15a)][D(0x164)](','),'SubnetId':a['subnet'],'TagSpecifications':[{'ResourceType':'instance','Tags':a['tags']}]};a[D(0x180)]&&(b[D(0x16c)]=D(0x17e)+a[D(0x180)]);const c=new RunInstancesCommand(b),d=await client[D(0xfb)](c);return d;}catch(f){Log[D(0xcc)](f);}}async[a145s(0x168)](a){const E=a145s;try{const b={'InstanceIds':[a[E(0x152)]]},c=new TerminateInstancesCommand(b),d=await client[E(0xfb)](c);return d;}catch(f){return Log[E(0xcc)](f),{};}}async[a145s(0xd0)]({keyName:a,env:b}){const F=a145s,c=this[F(0xd1)][F(0x129)](b),d=a145f[F(0x14b)](c,'_keys',a+F(0xd9));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[F(0xfb)](g),i=h['KeyMaterial'];if(i){await this[F(0xd1)][F(0x162)]({'filePath':d,'data':i}),execSync(F(0x11d)+d,{'stdio':F(0xe0)});const j=this['fsi'][F(0xe8)](d);if(j)return Log[F(0x11e)]('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(F(0x140));}else throw new Error(F(0xc9));}catch(k){Log[F(0xcc)](k),process['exit'](0x1);}}async[a145s(0x11a)]({port:a,groupId:b}){const G=a145s,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':'tcp','IpRanges':[{'CidrIp':G(0x114),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[G(0x17b)](G(0xf9)+a+G(0x10e)),await client['send'](d);}async[a145s(0xdd)](a){const H=a145s;try{a['description']===''&&(a[H(0x17f)]=await Actions[H(0x111)](H(0xff))||H(0xe4));const b={'Description':a[H(0x17f)],'GroupName':a[H(0x182)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[H(0xfb)](c),{GroupId:f}=d;if(!d)throw new Error(H(0x15e));f&&a[H(0x149)][H(0x117)](g=>{const I=H;this[I(0x11a)]({'port':parseInt(g),'groupId':f});}),Log[H(0x11e)](H(0x136)+f+H(0x157)+a[H(0x182)]);}catch(g){return Log['error'](g),![];}return!![];}async[a145s(0x188)](a){const J=a145s,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client[J(0xfb)](d);if(!f)throw J(0x15e);const {KeyPairs:g}=f;g?(g?.[J(0x117)]((h,i)=>{const K=J;h[K(0x160)]&&b[K(0xd5)]({'id':i,'name':h[K(0x160)]});}),b[J(0xd7)]>0x0&&b[J(0x117)](h=>{const L=J;h['name']===a?.['suggestion']?Log[L(0x11e)](L(0xea)+h['id']+L(0x157)+h['name']):Log[L(0x17b)](L(0xea)+h['id']+L(0x157)+h[L(0x182)]);})):Log['error']('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[J(0xcc)](h);}return b;}async[a145s(0x120)](a){const M=a145s;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[M(0xcc)](d),process[M(0x116)](0x1);}}async['ec2describeInstances'](){const N=a145s,a=[];try{const b={'Filters':[{'Name':N(0x150),'Values':[N(0x135)]}]},c=new DescribeInstancesCommand(b),d=await client[N(0xfb)](c);d['Reservations']?.[N(0x117)]((f,g)=>{const O=N;if(f?.[O(0x154)]){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f['Instances'][0x0],n=m?.[O(0x165)](({Key:o})=>o===O(0x158));a['push']({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[O(0xdc)],'name':l,'env':n?.['Value']});}}),a['length']>0x0?a[N(0x117)](f=>{const P=N,g=P(0xea)+f['id']+P(0x157)+f['name']+P(0x11c)+f['env']+'\x20STATUS:\x20'+f[P(0x171)]+'\x20INSTANCE_ID:\x20'+f[P(0x152)]+P(0x177)+f[P(0x12a)]+P(0x100)+f[P(0x12c)];if(f[P(0x171)]===P(0xf3))Log[P(0xcc)](g);else f[P(0x171)]===P(0xde)?Log['success'](g):Log[P(0x17b)](g);}):Log[N(0xcc)](N(0x137));}catch(f){Log[N(0xcc)](f);}return a;}async[a145s(0x174)](a){const Q=a145s;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client['send'](c);return d[Q(0x143)][Q(0xf4)]===0xc8&&Log[Q(0x11e)](Q(0x15f)),d;}catch(f){Log[Q(0xcc)](f);}}async[a145s(0x138)](){const R=a145s;let a='';Log[R(0x17b)]('**\x20Available\x20\x20VPCs\x20**');const b=new DescribeVpcsCommand({}),c=await client[R(0xfb)](b),{Vpcs:d}=c,e=[];d&&d[R(0x117)]((g,h)=>{const S=R;g[S(0xc6)]&&g[S(0xf8)]&&e['push']({'id':h,'vpcId':g[S(0xc6)],'cidr':g[S(0xf8)]});});e[R(0x117)](function(g){const T=R;console[T(0xd2)](T(0xea)+g['id']+T(0xe6)+g[T(0x13f)]+T(0x15b)+g['cidr']);});const f=await Actions[R(0x111)](R(0x14e))||0x0;e['forEach'](function(g){const U=R;g['id']==f&&(a=g['vpcId'],Log[U(0x11e)](U(0x16d)+a+'\x0a'));});if(a==='')return Log[R(0xcc)](R(0x142)),'';return a;}async['chooseInstance'](){const V=a145s,a=await this['ec2describeInstances']();if(a[V(0xd7)]===0x0)return Log[V(0xcc)](V(0x161)),null;const b=await Actions[V(0x111)](V(0x17d));!b&&(Log['error'](V(0x121)),process['exit'](0x0));const c=a['find'](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145s(0xfd)]({env:a}){const W=a145s,b=this[W(0xd1)]['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[W(0x111)]('Key\x20Name:\x20['+d+']\x20')||d,{filePath:g}=await this[W(0xd0)]({'keyName':f,'env':a});try{const h=await Actions[W(0xe5)]('Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?',!![]);if(h)try{const i=a145f[W(0x14b)]('config',a,'ssh.json');!this['fsi'][W(0xe8)](i)&&await this[W(0xd1)]['template']({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e[W(0x11f)](a145f[W(0x14b)](W(0x119),a,'ssh.json'),W(0xf1)),k=JSON[W(0x13e)](j);k[W(0x141)]=a145f[W(0x14b)](W(0x148),f+W(0xd9)),a145e[W(0xee)](a145f[W(0x14b)]('config',a,W(0x15c)),JSON['stringify'](k,null,0x2));}catch(l){Log['error'](l),Log['error'](W(0x183));}}catch(m){Log[W(0xcc)](m),process[W(0x116)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const X=a145s,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[X(0xfb)](d),{SecurityGroups:f}=e;f&&f[X(0x117)](function(i,j){const Y=X;i['GroupName']&&i[Y(0x14f)]&&b[Y(0xd5)]({'id':j,'name':i[Y(0x17c)],'sgId':i[Y(0x14f)]});});let g='',h=0x0;return b[X(0x117)](function(i){const Z=X;i['name']===a&&(g=i[Z(0x166)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async['deleteSecurityGroup'](a){const a0=a145s;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client['send'](c);}catch(d){Log[a0(0xcc)](d),process['exit'](0x1);}}}
1
+ const a145t=a145d;(function(a,b){const p=a145d,c=a();while(!![]){try{const d=-parseInt(p(0x200))/0x1*(-parseInt(p(0x193))/0x2)+-parseInt(p(0x182))/0x3+parseInt(p(0x220))/0x4+parseInt(p(0x216))/0x5+parseInt(p(0x215))/0x6+parseInt(p(0x1d3))/0x7*(parseInt(p(0x1c5))/0x8)+-parseInt(p(0x184))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a145c,0xf18be));const a145b=(function(){let a=!![];return function(b,c){const d=a?function(){const q=a145d;if(c){const e=c[q(0x21a)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a145a=a145b(this,function(){const r=a145d;return a145a[r(0x1f5)]()['search'](r(0x22e))[r(0x1f5)]()['constructor'](a145a)['search']('(((.+)+)+)+$');});a145a();function a145c(){const a9=['Would\x20you\x20like\x20to\x20update\x20the\x20ssh.json\x20config\x20file?','6076936dxNmIt','\x22\x20created\x20successfully\x20in\x20','fsi','chooseVPC','getAppConfigPath','il-central-1','success','Failed\x20to\x20decode\x20password\x20from\x20authorization\x20token','ap-southeast-1','sa-east-1','state','ingressRule','That\x20was\x20not\x20an\x20id\x20in\x20the\x20list.','eu-west-3','(((.+)+)+)+$','eu-central-1','Created:\x20','\x20PUB_IP:\x20','ImageId','Failed\x20in\x20','UserData','\x20PRIV_IP:\x20','error','ec2describeInstances','[+]\x20Setting\x20VPC\x20ID\x20to:\x20','getTime','Name','subnetId','image-type','Please\x20choose\x20a\x20SG\x20to\x20assign\x20the\x20instance\x20to:\x20[','Key\x20Name:\x20[','CidrBlock','listAvailableAMIs','[?]\x20Please\x20choose\x20an\x20instance\x20ID:\x20','ignore','name','$metadata','ssh.json','Prices','cidr','ap-south-1','No\x20credentials\x20returned\x20from\x20AWS\x20ECR','Could\x20not\x20find\x20hosted\x20zone','trim','ecrCreateRepository','sgIds','You\x20have\x20no\x20instances\x20created\x20by\x20maka-cli.\x20\x20Please\x20reivew\x20your\x20AWS\x20console\x20manually!!!','chooseSecurityGroup','Instance\x20rebooted!','VpcId','UNSUPPORTED','Description','env','registerDomain','Failed\x20to\x20create\x20repository\x20in\x20','Setting\x20AMI\x20ID\x20to\x20','log','Authorization\x20token\x20is\x20missing','Please\x20choose\x20an\x20AMI\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','Web\x20App','No\x20ECR\x20repositories\x20found\x20across\x20all\x20specified\x20regions.','eu-central-2','map','chooseInstance','type','listAvailableSubnets','confirm','Error\x20fetching\x20domain\x20pricing:','ap-northeast-1','getEcrLoginPassword','Setting\x20SG\x20ID\x20to:\x20','timeout','userData','info','ec2rebootInstance','3631908kEXiRe','now','19989333eFGrfo','ap-southeast-3','route53CreateHostedZone','repositories','join','\x20SUBNETID:\x20','base64','writeFileSync','Processing\x20','KeyName','us-west-2','concat','GroupName','No\x20images\x20found.','ec2create','6NeQSwH','file://','createKeyPair','ecrDeleteRepository','CreationDate','repositoryUri','vpcId','tcp','httpStatusCode','me-south-1','me-central-1','Timeout\x20while\x20processing\x20','eu-south-2','region','push','split','ap-northeast-2','\x20:\x20','uri','exit','_keys','Repository\x20\x22','0.0.0.0/0','Please\x20choose\x20a\x20subnet\x20ID\x20to\x20assign\x20the\x20instance\x20to:\x20[0]\x20','**\x20Available\x20Security\x20Groups\x20**','maka-cli','machine','deleteSecurityGroup','length','\x20Status\x20Code:\x20','available','ap-northeast-3','.pem.txt','...','stringify','\x20to\x20','message','Description:','ask','notice','Reservations','You\x20will\x20need\x20to\x20update\x20the\x20ssh.json\x20file\x20yourself.','chmod\x20400\x20','us-east-1','From\x20AWS:','Error\x20saving\x20pem\x20file,\x20aborting','Subnets','**\x20Available\x20\x20VPCs\x20**','withSpinner','Error\x20generating\x20key\x20pair','600MTFkRN','\x20INSTANCE_ID:\x20','status','ca-west-1','tags','\x27\x20has\x20been\x20registered\x20successfully.','send','architecture','slice','linkEC2ToRoute53','terminated','ec2terminateInstance','subnet','eu-north-1','23996LSUhmV','privateIp','The\x20domain\x20\x27','\x20CIDR:\x20','\x20AZONE:\x20','ca-central-1','imageId','date','changeResourceRecordSets','\x20SG\x20NAME:\x20','filter','bright','ap-south-2','createKeyPairEC2Key','key','running','ID:\x20','virtualization-type','amiId','root-device-type','getSecurityGroups','us-east-2','environment','\x20DESCRIPTION:\x20','UPSERT','parse','instance','authorizationToken','tag:created-by','listAllEcrRepositories','HostedZones','authorizationData','forEach','Invalid\x20choice','toString','RegistrationPrice','nextToken','us-west-1','find','ap-southeast-4','AvailabilityZone','suggestion','desc','Canonical*Ubuntu*20.04*','\x20NAME:\x20','307844zEULSa','No\x20subnets\x20found.','\x20SGID:\x20','Instances','sgId','/dev/sdh','eu-west-2','Setting\x20Subnet\x20ID\x20to\x20','maxCount','Error\x20linking\x20EC2\x20to\x20Route\x2053:','SubnetId','\x20opened!','isFile','Final\x20list\x20of\x20ECR\x20repositories:','\x20AMIID:\x20','\x20VPCID:\x20','Region:\x20','warn','Value','Port\x20','ec2createSG','9324258JreBIW','835690qFEBJC','pem','instanceId','AWS\x20was\x20not\x20able\x20to\x20validate\x20the\x20provided\x20access\x20credentials','apply','There\x20was\x20an\x20error\x20registering\x20the\x20domain\x20name','KeyMaterial','checkDomainAvailability','race'];a145c=function(){return a9;};return a145c();}import a145e from'fs';import a145f 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,DescribeImagesCommand,DescribeSubnetsCommand}from'@aws-sdk/client-ec2';import{ECRClient,CreateRepositoryCommand,DeleteRepositoryCommand,GetAuthorizationTokenCommand,DescribeRepositoriesCommand}from'@aws-sdk/client-ecr';import{Route53,Route53Client,CreateHostedZoneCommand}from'@aws-sdk/client-route-53';function a145d(a,b){const c=a145c();return a145d=function(d,e){d=d-0x166;let f=c[d];return f;},a145d(a,b);}import{Route53Domains,CheckDomainAvailabilityCommand,RegisterDomainCommand,ListPricesCommand}from'@aws-sdk/client-route-53-domains';const client=new EC2Client({}),route53Client=new Route53Client({}),route53=new Route53({}),route53Domains=new Route53Domains({});export class AWS{['fsi'];constructor(){const s=a145d;this[s(0x222)]=new FSI();}async[a145t(0x166)](a){const u=a145t;try{const {listIndexId:b,createdSgId:c,sgList:d}=await this[u(0x1e7)](a);let f='';if(c===''){Log[u(0x1ba)](u(0x1ab)),d[u(0x1f3)](function(h){const v=u;h[v(0x243)]===a?Log['notice'](v(0x1e3)+h['id']+v(0x1dc)+h[v(0x243)]+v(0x202)+h[v(0x204)]):Log[v(0x1de)]('ID:\x20'+h['id']+v(0x1dc)+h[v(0x243)]+v(0x202)+h[v(0x204)]);});const g=await Actions['ask'](u(0x23d)+b+']\x20')||b[u(0x1f5)]();d['forEach'](function(h){const w=u;h['id']===parseInt(g)&&(f=h['sgId'],Log[w(0x226)]('Setting\x20SG\x20ID\x20to:\x20'+f+'\x0a'));});}else f=c,Log['success'](u(0x17d)+f+'\x0a');if(f==='')throw new Error(u(0x22c));return f;}catch(h){Log[u(0x236)](h);throw h;}}async[a145t(0x240)](){const x=a145t;let a='';try{const b=new EC2Client({}),c={'Filters':[{'Name':x(0x1cc),'Values':['x86_64']},{'Name':x(0x1e4),'Values':['hvm']},{'Name':x(0x1e6),'Values':['ebs']},{'Name':x(0x22a),'Values':[x(0x1b1)]},{'Name':x(0x23c),'Values':[x(0x1ad)]},{'Name':'description','Values':['Canonical*Ubuntu*18.04*',x(0x1fe)]}]},d=new DescribeImagesCommand(c),{Images:f}=await b['send'](d);if(f&&f['length']>0x0){const g=new Date(),h=new Date(g[x(0x239)]()-0x1e*0x18*0x3c*0x3c*0x3e8),i=f[x(0x1dd)](j=>j[x(0x197)]&&!j[x(0x16a)]?.['includes'](x(0x169))&&new Date(j[x(0x197)])>h)['map'](j=>({'amiId':j[x(0x232)],'desc':j[x(0x16a)],'date':j[x(0x197)]}));if(i['length']>0x0){i['sort']((n,o)=>new Date(o[x(0x1da)])['getTime']()-new Date(n[x(0x1da)])[x(0x239)]());const j=i[x(0x1cd)](0x0,0x4),k=j[x(0x175)]((n,o)=>({'id':o,'amiId':n[x(0x1e5)],'desc':n[x(0x1fd)]}));k[x(0x1f3)](n=>{const y=x;Log['bright'](y(0x1e3)+n['id']+y(0x20e)+n[y(0x1e5)]+y(0x1ea)+n[y(0x1fd)]);});const l=await Actions['ask'](x(0x171))||'0',m=k['find'](n=>n['id']===parseInt(l));if(m)a=m[x(0x1e5)],Log[x(0x226)](x(0x16e)+a+x(0x1a4)+m[x(0x1fd)]);else throw Log[x(0x236)](x(0x22c));}else throw Log[x(0x236)]('No\x20suitable\x20images\x20found\x20within\x20the\x20last\x2030\x20days.');}else throw Log[x(0x236)](x(0x191));}catch(n){Log[x(0x236)](n);}return a;}async[a145t(0x178)](){const z=a145t;let a='';try{const b=new EC2Client({}),c={},d=new DescribeSubnetsCommand(c),{Subnets:f}=await b[z(0x1cb)](d);if(f&&f[z(0x1af)]>0x0){const g=f[z(0x175)]((j,k)=>({'id':k,'cidr':j[z(0x23f)],'az':j[z(0x1fb)],'subnetId':j[z(0x20a)]}));g[z(0x1f3)](j=>{const A=z;Log[A(0x1de)]('ID:\x20'+j['id']+A(0x1d6)+j[A(0x247)]+A(0x1d7)+j['az']+A(0x189)+j[A(0x23b)]);});const h=await Actions['ask'](z(0x1aa))||'0',i=g[z(0x1f9)](j=>j['id']===parseInt(h));if(i)a=i[z(0x23b)],Log['success'](z(0x207)+a);else throw Log['error'](z(0x22c));}else throw Log['error'](z(0x201));}catch(j){Log[z(0x236)](j);}return a;}async['getSubnetCidr'](a){const B=a145t;try{const b=new EC2Client({}),c={'Filters':[{'Name':'subnet-id','Values':[a]}]},d=new DescribeSubnetsCommand(c),e=await b[B(0x1cb)](d);return e[B(0x1c1)]&&e['Subnets'][B(0x1af)]>0x0?e[B(0x1c1)][0x0][B(0x23f)]||'':'';}catch(f){return Log[B(0x236)](f),'';}}async[a145t(0x24c)](a){const C=a145t;try{const b=new ECRClient({'region':a[C(0x1a0)]}),c={'repositoryName':a[C(0x243)]},d=new CreateRepositoryCommand(c),f=await b['send'](d);return Log[C(0x226)](C(0x1a8)+a[C(0x243)]+C(0x221)+a[C(0x1a0)]+'.'),f;}catch(g){Log['error'](C(0x16d)+a['region']+':\x20'+g);throw g;}}async[a145t(0x1f0)](a){const D=a145t,b=[D(0x1be),'us-east-2','us-west-1','us-west-2',D(0x248),D(0x1b2),D(0x1a3),D(0x228),'ap-southeast-2',D(0x17b),D(0x1d8),D(0x22f),'eu-west-1',D(0x206),D(0x22d),D(0x1d2),D(0x229),'af-south-1','ap-east-1',D(0x1df),D(0x185),D(0x1fa),D(0x1c8),'eu-south-1',D(0x19f),D(0x174),D(0x19c),D(0x19d),D(0x225)],c=[D(0x1be),D(0x1e8),D(0x1f8),D(0x18e)],d=a==='all'?b:a?a['split'](','):c;let f=[];const g=Log[D(0x1c3)]();for(const h of d){g['start'](D(0x18c)+h[D(0x24b)]()+D(0x1b4));const i=new ECRClient({'region':h[D(0x24b)]()});try{let j=undefined;do{const k=await Promise[D(0x21e)]([i[D(0x1cb)](new DescribeRepositoriesCommand({'nextToken':j})),new Promise(l=>setTimeout(()=>l(D(0x17e)),0x7d0))]);if(k==='timeout'){Log[D(0x211)](D(0x19e)+h[D(0x24b)]()+'.');break;}else k[D(0x187)]&&k['repositories'][D(0x1af)]>0x0&&(f=f[D(0x18f)](k['repositories'][D(0x175)](l=>({'name':l['repositoryName'],'uri':l[D(0x198)],'region':h['trim']()}))));j=k[D(0x1f7)];}while(j);}catch(l){Log[D(0x236)](D(0x233)+h[D(0x24b)]()+':\x20'+l[D(0x1b7)]);}finally{g['stop']();}}return f['length']>0x0?(console['log'](),Log[D(0x226)](D(0x20d)),f[D(0x1f3)](m=>{const E=D;Log[E(0x180)](E(0x210)+m[E(0x1a0)]+',\x20Name:\x20'+m[E(0x243)]+',\x20URI:\x20'+m[E(0x1a5)]);})):Log[D(0x211)](D(0x173)),f;}async[a145t(0x186)](a){const F=a145t;try{const b={'CallerReference':''+Date[F(0x183)](),'Name':a},c=new CreateHostedZoneCommand(b);await route53Client['send'](c),Log[F(0x226)]('Hosted\x20zone\x20created\x20successfully!');}catch(d){Log['error']('Error\x20creating\x20hosted\x20zone'),console[F(0x236)](d);}}async[a145t(0x16c)](a,b,c,d){const G=a145t;try{const e={'DomainName':b,'DurationInYears':c,'AutoRenew':d,'AdminContact':a,'RegistrantContact':a,'TechContact':a},f=new RegisterDomainCommand(e);await route53[G(0x1cb)](f),Log[G(0x1ba)](G(0x1d5)+b+G(0x1ca));}catch(g){Log['error'](G(0x21b)),Log['warn'](G(0x1bf)),console[G(0x236)](G(0x1b0)+g['$response']['statusCode']),console['error']('\x20Error\x20Rason:\x20'+g['$response']['reason']);}}async[a145t(0x21d)](a){const H=a145t,b={'DomainName':a},c=new CheckDomainAvailabilityCommand(b),d=await route53Domains[H(0x1cb)](c),e=d['Availability']==='AVAILABLE';if(e){const f=a[H(0x1a2)]('.')['pop'](),g={'MaxItems':0x1,'Tld':f};try{const h=new ListPricesCommand(g),i=await route53Domains[H(0x1cb)](h);if(i&&i['Prices']&&i['Prices'][0x0]?.[H(0x1f6)]){const j=i[H(0x246)][0x0][H(0x1f6)];return{'available':e,'cost':j};}}catch(k){console[H(0x236)](H(0x17a),k);}}return{'available':e};}async[a145t(0x1ce)](a,b,c){const I=a145t;try{const d=await route53['listHostedZonesByName']({'DNSName':c});if(!d?.[I(0x1f1)])throw Log[I(0x236)](I(0x24a));const e=d?.[I(0x1f1)][0x0]['Id'],f={'ChangeBatch':{'Changes':[{'Action':I(0x1eb),'ResourceRecordSet':{'Name':c,'Type':'A','TTL':0x12c,'ResourceRecords':[{'Value':b}]}}]},'HostedZoneId':e};await route53[I(0x1db)](f),Log[I(0x1ba)]('Successfully\x20linked\x20EC2\x20instance\x20'+a+I(0x1b6)+c);}catch(g){console[I(0x236)](I(0x209),g);}}async[a145t(0x17c)]({awsAccountId:a,region:b}){const J=a145t,c=new ECRClient({'region':b});try{const d=new GetAuthorizationTokenCommand({'registryIds':[a]}),f=await c[J(0x1cb)](d);if(!f[J(0x1f2)]||f[J(0x1f2)][J(0x1af)]===0x0)throw new Error('Authorization\x20data\x20is\x20empty');const g=f[J(0x1f2)][0x0];if(!g[J(0x1ee)])throw new Error(J(0x170));const h=g[J(0x1ee)];if(!h)throw new Error(J(0x249));const i=Buffer['from'](h,J(0x18a))[J(0x1f5)](),j=i[J(0x1a2)](':')[0x1];if(!j)throw new Error(J(0x227));return j;}catch(k){Log['error'](k);throw k;}}async[a145t(0x196)]({repoName:a,region:b}){const K=a145t,c=new ECRClient({'region':b});try{const d=new DeleteRepositoryCommand({'repositoryName':a,'force':!![]}),f=await c[K(0x1cb)](d);return f;}catch(g){Log[K(0x236)](g);throw g;}}async[a145t(0x192)](a){const L=a145t;try{const b={'BlockDeviceMappings':[{'DeviceName':L(0x205),'Ebs':{'VolumeSize':0x64}}],'ImageId':a[L(0x1d9)],'InstanceType':a[L(0x177)],'KeyName':a[L(0x1e1)],'MaxCount':a[L(0x208)],'MinCount':a['minCount'],'SecurityGroupIds':a[L(0x24d)][L(0x1a2)](','),'SubnetId':a[L(0x1d1)],'TagSpecifications':[{'ResourceType':L(0x1ed),'Tags':a[L(0x1c9)]}]};a[L(0x17f)]&&(b[L(0x234)]=L(0x194)+a['userData']);const c=new RunInstancesCommand(b),d=await client['send'](c);return d;}catch(f){Log['error'](f);}}async[a145t(0x1d0)](a){const M=a145t;try{const b={'InstanceIds':[a[M(0x218)]]},c=new TerminateInstancesCommand(b),d=await client[M(0x1cb)](c);return d;}catch(f){return Log[M(0x236)](f),{};}}async['createKeyPairEC2Key']({keyName:a,env:b}){const N=a145t,c=this['fsi'][N(0x224)](b),d=a145f['join'](c,N(0x1a7),a+N(0x1b3));try{const f={'KeyName':a},g=new CreateKeyPairCommand(f),h=await client[N(0x1cb)](g),i=h[N(0x21c)];if(i){await this[N(0x222)]['createFile']({'filePath':d,'data':i}),execSync(N(0x1bd)+d,{'stdio':N(0x242)});const j=this[N(0x222)][N(0x20c)](d);if(j)return Log['success']('Pem\x20key\x20saved\x20to\x20'+d),{'keyName':a,'filePath':d};else throw new Error(N(0x1c0));}else throw new Error(N(0x1c4));}catch(k){Log['error'](k),process[N(0x1a6)](0x1);}}async[a145t(0x22b)]({port:a,groupId:b}){const O=a145t,c={'GroupId':b,'IpPermissions':[{'FromPort':a,'IpProtocol':O(0x19a),'IpRanges':[{'CidrIp':O(0x1a9),'Description':''}],'ToPort':a}]},d=new AuthorizeSecurityGroupIngressCommand(c);return Log[O(0x1ba)](O(0x213)+a+O(0x20b)),await client[O(0x1cb)](d);}async[a145t(0x214)](a){const P=a145t;try{a['description']===''&&(a['description']=await Actions[P(0x1b9)](P(0x1b8))||P(0x172));const b={'Description':a['description'],'GroupName':a[P(0x243)],'VpcId':a['vpcId']},c=new CreateSecurityGroupCommand(b),d=await client[P(0x1cb)](c),{GroupId:f}=d;if(!d)throw new Error(P(0x219));f&&a['sgPorts']['forEach'](g=>{const Q=P;this[Q(0x22b)]({'port':parseInt(g),'groupId':f});}),Log[P(0x226)](P(0x230)+f+P(0x1ff)+a['name']);}catch(g){return Log['error'](g),![];}return!![];}async['ec2describeKeys'](a){const R=a145t,b=[];try{const c={},d=new DescribeKeyPairsCommand(c),f=await client['send'](d);if(!f)throw R(0x219);const {KeyPairs:g}=f;g?(g?.[R(0x1f3)]((h,i)=>{const S=R;h[S(0x18d)]&&b[S(0x1a1)]({'id':i,'name':h[S(0x18d)]});}),b['length']>0x0&&b['forEach'](h=>{const T=R;h[T(0x243)]===a?.[T(0x1fc)]?Log[T(0x226)](T(0x1e3)+h['id']+'\x20NAME:\x20'+h['name']):Log['notice']('ID:\x20'+h['id']+T(0x1ff)+h[T(0x243)]);})):Log['error']('You\x20have\x20no\x20key-pairs,\x20please\x20create\x20one.\x20(maka\x20aws\x20create-key-pair\x20--env).');}catch(h){Log[R(0x236)](h);}return b;}async['deleteKeyPair'](a){const U=a145t;try{const b={'KeyName':a},c=new DeleteKeyPairCommand(b);await client['send'](c);}catch(d){Log[U(0x236)](d),process[U(0x1a6)](0x1);}}async[a145t(0x237)](){const V=a145t,a=[];try{const b={'Filters':[{'Name':V(0x1ef),'Values':[V(0x1ac)]}]},c=new DescribeInstancesCommand(b),d=await client[V(0x1cb)](c);d[V(0x1bb)]?.[V(0x1f3)]((f,g)=>{const W=V;if(f?.['Instances']){const {InstanceId:h,PublicIpAddress:i,PrivateIpAddress:j,State:k,KeyName:l,Tags:m}=f[W(0x203)][0x0],n=m?.[W(0x1f9)](({Key:o})=>o===W(0x1e9));a[W(0x1a1)]({'id':g,'instanceId':h,'privateIp':j,'publicIp':i,'status':k?.[W(0x23a)],'name':l,'env':n?.[W(0x212)]});}}),a[V(0x1af)]>0x0?a['forEach'](f=>{const X=V,g='ID:\x20'+f['id']+X(0x1ff)+f['name']+'\x20ENV:\x20'+f[X(0x16b)]+'\x20STATUS:\x20'+f[X(0x1c7)]+X(0x1c6)+f[X(0x218)]+X(0x231)+f['publicIp']+X(0x235)+f[X(0x1d4)];if(f['status']===X(0x1cf))Log['error'](g);else f['status']===X(0x1e2)?Log['success'](g):Log[X(0x1ba)](g);}):Log['error'](V(0x24e));}catch(f){Log['error'](f);}return a;}async[a145t(0x181)](a){const Y=a145t;try{const b={'InstanceIds':[a['instanceId']]},c=new RebootInstancesCommand(b),d=await client[Y(0x1cb)](c);return d[Y(0x244)][Y(0x19b)]===0xc8&&Log[Y(0x226)](Y(0x167)),d;}catch(f){Log['error'](f);}}async[a145t(0x223)](){const Z=a145t;let a='';Log['notice'](Z(0x1c2));const b=new DescribeVpcsCommand({}),c=await client[Z(0x1cb)](b),{Vpcs:d}=c,e=[];d&&d[Z(0x1f3)]((g,h)=>{const a0=Z;g[a0(0x168)]&&g[a0(0x23f)]&&e[a0(0x1a1)]({'id':h,'vpcId':g[a0(0x168)],'cidr':g['CidrBlock']});});e['forEach'](function(g){const a1=Z;console[a1(0x16f)](a1(0x1e3)+g['id']+a1(0x20f)+g[a1(0x199)]+a1(0x1d6)+g[a1(0x247)]);});const f=await Actions['ask']('Please\x20choose\x20a\x20VPC:\x20[0]\x20')||0x0;e[Z(0x1f3)](function(g){const a2=Z;g['id']==f&&(a=g['vpcId'],Log[a2(0x226)](a2(0x238)+a+'\x0a'));});if(a==='')return Log[Z(0x236)](Z(0x22c)),'';return a;}async[a145t(0x176)](){const a3=a145t,a=await this[a3(0x237)]();if(a[a3(0x1af)]===0x0)return Log[a3(0x236)]('No\x20instances\x20found'),null;const b=await Actions[a3(0x1b9)](a3(0x241));!b&&(Log[a3(0x236)](a3(0x1f4)),process['exit'](0x0));const c=a[a3(0x1f9)](({id:d})=>{return d==parseInt(b);})||null;return c;}async[a145t(0x195)]({env:a}){const a4=a145t,b=this['fsi']['getMakaProjectConfig'](),{appName:c}=b,d=c+'-'+a,f=await Actions[a4(0x1b9)](a4(0x23e)+d+']\x20')||d,{filePath:g}=await this[a4(0x1e0)]({'keyName':f,'env':a});try{const h=await Actions[a4(0x179)](a4(0x21f),!![]);if(h)try{const i=a145f[a4(0x188)]('config',a,a4(0x245));!this[a4(0x222)]['isFile'](i)&&await this[a4(0x222)]['template']({'srcPath':'config/ssh.json','destPath':i,'context':{'app':f}});const j=a145e['readFileSync'](a145f[a4(0x188)]('config',a,'ssh.json'),'utf8'),k=JSON[a4(0x1ec)](j);k[a4(0x217)]=a145f[a4(0x188)]('_keys',f+a4(0x1b3)),a145e[a4(0x18b)](a145f[a4(0x188)]('config',a,a4(0x245)),JSON[a4(0x1b5)](k,null,0x2));}catch(l){Log[a4(0x236)](l),Log[a4(0x236)](a4(0x1bc));}}catch(m){Log[a4(0x236)](m),process[a4(0x1a6)](0x1);}return{'keyName':f,'filePath':g};}async['getSecurityGroups'](a){const a5=a145t,b=[],c={},d=new DescribeSecurityGroupsCommand(c),e=await client[a5(0x1cb)](d),{SecurityGroups:f}=e;f&&f['forEach'](function(i,j){const a6=a5;i[a6(0x190)]&&i['GroupId']&&b['push']({'id':j,'name':i[a6(0x190)],'sgId':i['GroupId']});});let g='',h=0x0;return b[a5(0x1f3)](function(i){const a7=a5;i[a7(0x243)]===a&&(g=i[a7(0x204)],h=i['id']);}),{'sgList':b,'createdSgId':g,'listIndexId':h};}async[a145t(0x1ae)](a){const a8=a145t;try{const b={'GroupId':a},c=new DeleteSecurityGroupCommand(b);await client[a8(0x1cb)](c);}catch(d){Log[a8(0x236)](d),process[a8(0x1a6)](0x1);}}}
@@ -1 +1 @@
1
- function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x91;var f=c[d];return f;},a146d(a,b);}(function(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x98))/0x1+-parseInt(k(0x9b))/0x2*(parseInt(k(0x94))/0x3)+-parseInt(k(0x93))/0x4+-parseInt(k(0x99))/0x5+parseInt(k(0x9d))/0x6*(-parseInt(k(0x9c))/0x7)+-parseInt(k(0x95))/0x8+parseInt(k(0x96))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0x6971c));export var CountryCode;function a146c(){var m=['186AcEYuO','search','toString','2003748FQZmuW','1285971BdsMTt','3144112fJpPQY','24785937Zojfpe','constructor','176138lgGigv','670465beDaUJ','(((.+)+)+)+$','2QrpURw','155638zYYkyn'];a146c=function(){return m;};return a146c();}(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=a146d;return e[l(0x92)]()[l(0x91)](l(0x9a))[l(0x92)]()[l(0x97)](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(a,b){var k=a146d,c=a();while(!![]){try{var d=-parseInt(k(0x13a))/0x1*(-parseInt(k(0x13b))/0x2)+-parseInt(k(0x140))/0x3+parseInt(k(0x134))/0x4*(parseInt(k(0x137))/0x5)+-parseInt(k(0x136))/0x6+-parseInt(k(0x138))/0x7+-parseInt(k(0x13e))/0x8+parseInt(k(0x135))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a146c,0xca17f));function a146d(a,b){var c=a146c();return a146d=function(d,e){d=d-0x134;var f=c[d];return f;},a146d(a,b);}function a146c(){var n=['15hikdWB','1251915hFgFSi','constructor','7XmwOqS','86690BimMhT','toString','search','9832480eBHpsl','(((.+)+)+)+$','2134908XqoDjZ','apply','1835716rShmSQ','26278650rWEiOE','9916416kCfRhL'];a146c=function(){return n;};return a146c();}export var CountryCode;(function(c){var d=(function(){var f=!![];return function(g,h){var i=f?function(){var l=a146d;if(h){var j=h[l(0x141)](g,arguments);return h=null,j;}}:function(){};return f=![],i;};}()),e=d(this,function(){var m=a146d;return e[m(0x13c)]()['search']('(((.+)+)+)+$')[m(0x13c)]()[m(0x139)](e)[m(0x13d)](m(0x13f));});e(),c['AC']='AC',c['AD']='AD',c['AE']='AE',c['AF']='AF',c['AG']='AG',c['AI']='AI',c['AL']='AL',c['AM']='AM',c['AN']='AN',c['AO']='AO',c['AQ']='AQ',c['AR']='AR',c['AS']='AS',c['AT']='AT',c['AU']='AU',c['AW']='AW',c['AX']='AX',c['AZ']='AZ',c['BA']='BA',c['BB']='BB',c['BD']='BD',c['BE']='BE',c['BF']='BF',c['BG']='BG',c['BH']='BH',c['BI']='BI',c['BJ']='BJ',c['BL']='BL',c['BM']='BM',c['BN']='BN',c['BO']='BO',c['BQ']='BQ',c['BR']='BR',c['BS']='BS',c['BT']='BT',c['BV']='BV',c['BW']='BW',c['BY']='BY',c['BZ']='BZ',c['CA']='CA',c['CC']='CC',c['CD']='CD',c['CF']='CF',c['CG']='CG',c['CH']='CH',c['CI']='CI',c['CK']='CK',c['CL']='CL',c['CM']='CM',c['CN']='CN',c['CO']='CO',c['CR']='CR',c['CU']='CU',c['CV']='CV',c['CW']='CW',c['CX']='CX',c['CY']='CY',c['CZ']='CZ',c['DE']='DE',c['DJ']='DJ',c['DK']='DK',c['DM']='DM',c['DO']='DO',c['DZ']='DZ',c['EC']='EC',c['EE']='EE',c['EG']='EG',c['EH']='EH',c['ER']='ER',c['ES']='ES',c['ET']='ET',c['FI']='FI',c['FJ']='FJ',c['FK']='FK',c['FM']='FM',c['FO']='FO',c['FR']='FR',c['GA']='GA',c['GB']='GB',c['GD']='GD',c['GE']='GE',c['GF']='GF',c['GG']='GG',c['GH']='GH',c['GI']='GI',c['GL']='GL',c['GM']='GM',c['GN']='GN',c['GP']='GP',c['GQ']='GQ',c['GR']='GR',c['GS']='GS',c['GT']='GT',c['GU']='GU',c['GW']='GW',c['GY']='GY',c['HK']='HK',c['HM']='HM',c['HN']='HN',c['HR']='HR',c['HT']='HT',c['HU']='HU',c['ID']='ID',c['IE']='IE',c['IL']='IL',c['IM']='IM',c['IN']='IN',c['IO']='IO',c['IQ']='IQ',c['IR']='IR',c['IS']='IS',c['IT']='IT',c['JE']='JE',c['JM']='JM',c['JO']='JO',c['JP']='JP',c['KE']='KE',c['KG']='KG',c['KH']='KH',c['KI']='KI',c['KM']='KM',c['KN']='KN',c['KP']='KP',c['KR']='KR',c['KW']='KW',c['KY']='KY',c['KZ']='KZ',c['LA']='LA',c['LB']='LB',c['LC']='LC',c['LI']='LI',c['LK']='LK',c['LR']='LR',c['LS']='LS',c['LT']='LT',c['LU']='LU',c['LV']='LV',c['LY']='LY',c['MA']='MA',c['MC']='MC',c['MD']='MD',c['ME']='ME',c['MF']='MF',c['MG']='MG',c['MH']='MH',c['MK']='MK',c['ML']='ML',c['MM']='MM',c['MN']='MN',c['MO']='MO',c['MP']='MP',c['MQ']='MQ',c['MR']='MR',c['MS']='MS',c['MT']='MT',c['MU']='MU',c['MV']='MV',c['MW']='MW',c['MX']='MX',c['MY']='MY',c['MZ']='MZ',c['NA']='NA',c['NC']='NC',c['NE']='NE',c['NF']='NF',c['NG']='NG',c['NI']='NI',c['NL']='NL',c['NO']='NO',c['NP']='NP',c['NR']='NR',c['NU']='NU',c['NZ']='NZ',c['OM']='OM',c['PA']='PA',c['PE']='PE',c['PF']='PF',c['PG']='PG',c['PH']='PH',c['PK']='PK',c['PL']='PL',c['PM']='PM',c['PN']='PN',c['PR']='PR',c['PS']='PS',c['PT']='PT',c['PW']='PW',c['PY']='PY',c['QA']='QA',c['RE']='RE',c['RO']='RO',c['RS']='RS',c['RU']='RU',c['RW']='RW',c['SA']='SA',c['SB']='SB',c['SC']='SC',c['SD']='SD',c['SE']='SE',c['SG']='SG',c['SH']='SH',c['SI']='SI',c['SJ']='SJ',c['SK']='SK',c['SL']='SL',c['SM']='SM',c['SN']='SN',c['SO']='SO',c['SR']='SR',c['SS']='SS',c['ST']='ST',c['SV']='SV',c['SX']='SX',c['SY']='SY',c['SZ']='SZ',c['TC']='TC',c['TD']='TD',c['TF']='TF',c['TG']='TG',c['TH']='TH',c['TJ']='TJ',c['TK']='TK',c['TL']='TL',c['TM']='TM',c['TN']='TN',c['TO']='TO',c['TP']='TP',c['TR']='TR',c['TT']='TT',c['TV']='TV',c['TW']='TW',c['TZ']='TZ',c['UA']='UA',c['UG']='UG',c['US']='US',c['UY']='UY',c['UZ']='UZ',c['VA']='VA',c['VC']='VC',c['VE']='VE',c['VG']='VG',c['VI']='VI',c['VN']='VN',c['VU']='VU',c['WF']='WF',c['WS']='WS',c['YE']='YE',c['YT']='YT',c['ZA']='ZA',c['ZM']='ZM',c['ZW']='ZW';}(CountryCode||(CountryCode={})));
@@ -1 +1 @@
1
- function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xd4;let f=c[d];return f;},a147d(a,b);}const a147m=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0xe4))/0x1+-parseInt(j(0xd7))/0x2+parseInt(j(0xde))/0x3+-parseInt(j(0xdd))/0x4+-parseInt(j(0xea))/0x5*(-parseInt(j(0xd5))/0x6)+parseInt(j(0xe0))/0x7+-parseInt(j(0xe5))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0xbf7f6));const a147b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a147d;if(c){const e=c[k(0xe8)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a147a=a147b(this,function(){const l=a147d;return a147a[l(0xd9)]()['search']('(((.+)+)+)+$')[l(0xd9)]()[l(0xdb)](a147a)['search']('(((.+)+)+)+$');});a147a();import{execSync}from'child_process';function a147c(){const q=['awsLogin','.amazonaws.com','apply','.amazonaws.com/','480pjlqmk','error','74046ZWEuGt','tag','364774pqUPGZ','echo\x20','toString','push','constructor','join','3972876GspNBL','2931117KQnijP','pushImage','2524102uldOYh','.dkr.ecr.','inherit','\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20','100255ihTKoy','3697008muphyI'];a147c=function(){return q;};return a147c();}import{Log}from'../log/log.class.js';export class Docker{static[a147m(0xd6)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const n=a147m;try{const f=[n(0xd6),a,b+n(0xe1)+c+n(0xe9)+d],g='docker\x20'+f[n(0xdc)]('\x20'),h=execSync(g,{'stdio':'inherit'})['toString']();return h;}catch(i){return Log[n(0xd4)](i),'';}}static[a147m(0xe6)]({awsAccountId:a,region:b,password:c}){const o=a147m;try{const d=o(0xd8)+c+o(0xe3)+a+o(0xe1)+b+o(0xe7);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log[o(0xd4)](f),'';}}static[a147m(0xdf)]({awsAccountId:a,region:b,repoName:c}){const p=a147m;try{const d=[p(0xda),a+'.dkr.ecr.'+b+p(0xe9)+c],f='docker\x20'+d['join']('\x20'),g=execSync(f,{'stdio':p(0xe2)})[p(0xd9)]();return g;}catch(h){return Log[p(0xd4)](h),'';}}}
1
+ const a147l=a147d;(function(a,b){const j=a147d,c=a();while(!![]){try{const d=-parseInt(j(0xfc))/0x1*(-parseInt(j(0xff))/0x2)+parseInt(j(0x104))/0x3*(parseInt(j(0xfb))/0x4)+parseInt(j(0x102))/0x5*(parseInt(j(0x106))/0x6)+-parseInt(j(0x107))/0x7+-parseInt(j(0xf9))/0x8+parseInt(j(0xfa))/0x9+-parseInt(j(0x100))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a147c,0x58299));const a147b=(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;};}()),a147a=a147b(this,function(){const k=a147d;return a147a['toString']()[k(0xf7)]('(((.+)+)+)+$')['toString']()[k(0xf8)](a147a)[k(0xf7)](k(0x10e));});a147a();function a147c(){const p=['1410880DpXKdk','awsLogin','43465cttvie','.amazonaws.com','24pRqexd','.dkr.ecr.','156KLHsht','3567851PaDedb','pushImage','tag','inherit','.amazonaws.com/','toString','echo\x20','(((.+)+)+)+$','join','error','search','constructor','4353040bNSZwU','4327686HftwSG','256836aRvwcC','167740pDWQnF','push','docker\x20','4JqTOqC'];a147c=function(){return p;};return a147c();}import{execSync}from'child_process';import{Log}from'../log/log.class.js';function a147d(a,b){const c=a147c();return a147d=function(d,e){d=d-0xf6;let f=c[d];return f;},a147d(a,b);}export class Docker{static[a147l(0x109)]({imageName:a,awsAccountId:b,region:c,repoName:d}){const m=a147l;try{const f=[m(0x109),a,b+m(0x105)+c+m(0x10b)+d],g=m(0xfe)+f[m(0x10f)]('\x20'),h=execSync(g,{'stdio':'inherit'})[m(0x10c)]();return h;}catch(i){return Log[m(0xf6)](i),'';}}static[a147l(0x101)]({awsAccountId:a,region:b,password:c}){const n=a147l;try{const d=n(0x10d)+c+'\x20|\x20docker\x20login\x20--username\x20AWS\x20--password-stdin\x20'+a+n(0x105)+b+n(0x103);return execSync(d,{'stdio':'inherit'}),d;}catch(f){return Log['error'](f),'';}}static[a147l(0x108)]({awsAccountId:a,region:b,repoName:c}){const o=a147l;try{const d=[o(0xfd),a+o(0x105)+b+o(0x10b)+c],f=o(0xfe)+d[o(0x10f)]('\x20'),g=execSync(f,{'stdio':o(0x10a)})[o(0x10c)]();return g;}catch(h){return Log['error'](h),'';}}}
@@ -1 +1 @@
1
- (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x97))/0x1+parseInt(f(0x95))/0x2+-parseInt(f(0x94))/0x3+parseInt(f(0x91))/0x4+-parseInt(f(0x9a))/0x5+-parseInt(f(0x9b))/0x6*(parseInt(f(0x8f))/0x7)+parseInt(f(0x99))/0x8;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0xe7519));var a148b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a148d;if(c){var e=c[g(0x98)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a148a=a148b(this,function(){var h=a148d;return a148a['toString']()[h(0x96)](h(0x90))[h(0x93)]()[h(0x92)](a148a)[h(0x96)](h(0x90));});function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x8f;var f=c[d];return f;},a148d(a,b);}a148a();function a148c(){var i=['21062792QisZGk','2989940SZEJuo','6JWZgzX','2032261jrDEzx','(((.+)+)+)+$','2567872VYlqZz','constructor','toString','4109016NMSmIm','2438648REWmsT','search','1288677WNByox','apply'];a148c=function(){return i;};return a148c();}export{};
1
+ (function(a,b){var f=a148d,c=a();while(!![]){try{var d=-parseInt(f(0x177))/0x1+-parseInt(f(0x17c))/0x2*(-parseInt(f(0x17f))/0x3)+-parseInt(f(0x181))/0x4+-parseInt(f(0x182))/0x5+-parseInt(f(0x178))/0x6+parseInt(f(0x180))/0x7*(parseInt(f(0x17b))/0x8)+parseInt(f(0x17d))/0x9*(parseInt(f(0x17a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a148c,0x57c73));var a148b=(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;};}()),a148a=a148b(this,function(){var g=a148d;return a148a[g(0x17e)]()['search'](g(0x179))[g(0x17e)]()[g(0x176)](a148a)['search'](g(0x179));});function a148c(){var h=['2444940LGKdit','1002210bkScwR','constructor','288665FXDUme','3137700XsyAFD','(((.+)+)+)+$','363130jfQNDC','552XfkSRK','20SlzuYV','306SViVvj','toString','145983TtSnkq','26537tboqjR'];a148c=function(){return h;};return a148c();}function a148d(a,b){var c=a148c();return a148d=function(d,e){d=d-0x176;var f=c[d];return f;},a148d(a,b);}a148a();export{};