@maka/maka-cli 5.0.29 → 5.0.31

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 (173) hide show
  1. package/bundle/obf/package.json +2 -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/profile.js +1 -1
  87. package/bundle/obf/src/commands/proxy.js +1 -1
  88. package/bundle/obf/src/commands/reconfig.js +1 -1
  89. package/bundle/obf/src/commands/register.js +1 -1
  90. package/bundle/obf/src/commands/run/_index.js +1 -1
  91. package/bundle/obf/src/commands/run/docker.sub.cmd.js +1 -1
  92. package/bundle/obf/src/commands/run/run.command.js +1 -1
  93. package/bundle/obf/src/commands/set/_index.js +1 -1
  94. package/bundle/obf/src/commands/set/global.sub.cmd.js +1 -1
  95. package/bundle/obf/src/commands/set/local.sub.cmd.js +1 -1
  96. package/bundle/obf/src/commands/set/set.command.js +1 -1
  97. package/bundle/obf/src/commands/ssh.js +1 -1
  98. package/bundle/obf/src/commands/ssl.js +1 -1
  99. package/bundle/obf/src/commands/test.js +1 -1
  100. package/bundle/obf/src/commands/undo.js +1 -1
  101. package/bundle/obf/src/commands/version.js +1 -1
  102. package/bundle/obf/src/error.js +1 -1
  103. package/bundle/obf/src/exec.js +1 -1
  104. package/bundle/obf/src/generator.js +1 -1
  105. package/bundle/obf/src/generators/_index.js +1 -1
  106. package/bundle/obf/src/generators/api.js +1 -1
  107. package/bundle/obf/src/generators/aws/_index.js +1 -1
  108. package/bundle/obf/src/generators/aws/aws.js +1 -1
  109. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  110. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  111. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  112. package/bundle/obf/src/generators/collection.js +1 -1
  113. package/bundle/obf/src/generators/component.js +1 -1
  114. package/bundle/obf/src/generators/config.js +1 -1
  115. package/bundle/obf/src/generators/dbc.js +1 -1
  116. package/bundle/obf/src/generators/dockerfile.js +1 -1
  117. package/bundle/obf/src/generators/hook.js +1 -1
  118. package/bundle/obf/src/generators/kits/_index.js +1 -1
  119. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  120. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  121. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  123. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  124. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  125. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/kit.js +1 -1
  127. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  128. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  131. package/bundle/obf/src/generators/layout.js +1 -1
  132. package/bundle/obf/src/generators/maka.gen.js +1 -1
  133. package/bundle/obf/src/generators/methods.js +1 -1
  134. package/bundle/obf/src/generators/package.js +1 -1
  135. package/bundle/obf/src/generators/page.js +1 -1
  136. package/bundle/obf/src/generators/publish.js +1 -1
  137. package/bundle/obf/src/generators/route.js +1 -1
  138. package/bundle/obf/src/generators/service.js +1 -1
  139. package/bundle/obf/src/generators/services/_index.js +1 -1
  140. package/bundle/obf/src/generators/services/openssl.js +1 -1
  141. package/bundle/obf/src/generators/services/translation.js +1 -1
  142. package/bundle/obf/src/maka.js +1 -1
  143. package/bundle/obf/src/templates/meteor/api/apollo-gateway.js +2 -0
  144. package/bundle/obf/src/templates/meteor/api/apollo-gateway.js.ts +3 -1
  145. package/bundle/obf/src/templates/meteor/api/graphql-api.js +2 -0
  146. package/bundle/obf/src/templates/meteor/api/graphql-api.js.ts +2 -0
  147. package/bundle/obf/src/templates/service/eslint/babelrc +3 -0
  148. package/bundle/obf/src/templates/service/eslint/config.eslint.js +61 -0
  149. package/bundle/obf/src/tool.js +1 -1
  150. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  151. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  152. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  154. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  155. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  156. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  157. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  158. package/bundle/obf/src/tools/https/https.class.js +1 -1
  159. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  160. package/bundle/obf/src/tools/log/log.class.js +1 -1
  161. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  162. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  163. package/bundle/obf/src/tools/options/options.class.js +1 -1
  164. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  165. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  166. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  167. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  168. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  169. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  170. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  171. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  172. package/package.json +2 -1
  173. package/bundle/obf/src/templates/service/eslint/eslintrc.json +0 -54
@@ -1 +1 @@
1
- const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=-parseInt(v(0x258))/0x1+-parseInt(v(0x1e2))/0x2+parseInt(v(0x219))/0x3+-parseInt(v(0x227))/0x4*(parseInt(v(0x23d))/0x5)+-parseInt(v(0x1d3))/0x6*(parseInt(v(0x233))/0x7)+parseInt(v(0x25f))/0x8*(-parseInt(v(0x1fb))/0x9)+parseInt(v(0x218))/0xa*(parseInt(v(0x1d9))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0x2b76f));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0x1f4)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a['toString']()['search'](x(0x25d))[x(0x257)]()['constructor'](a159a)['search'](x(0x25d));});a159a();import a159e from'path';import a159f from'fs';import a159g from'util';import{exec}from'child_process';import a159h from'delete';function a159c(){const a7=['replace','rewriteDestinationPathForType','ico','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','verbose','getCommonIndentSize','.js','concat','\x20create\x20','\x20updated\x20file\x20','apply','release','\x27;\x0a','injectIntoFile','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','template','existsSync','82899tUbgeE','png','slice','indexOf','cwd','join','tsx','No\x20file\x20found\x20at\x20path\x20','No\x20app\x20directory\x20found','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','repeat','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','\x20->','imports','isArray','.js.ts','length','css','engines','createFile','injectIntoFile()','import\x20','isTemplateForEngine','filter','\x20}\x20from\x20\x27','yaml','.tsx','fileContainsString','No\x20pathParts\x20option\x20provided','2526430VSdRVv','1048479rcIFHB','injectImport()','relative','utf8','injectAtBeginningOfFile()','copyTemplateDirectory','.meteor','--minimal','template()','.git','reduce','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','rewriteDestinationPathForType()','Meteor\x20project\x20already\x20exists\x20at\x20','10676LAJBLs','rewriteDestinationPathForEngine()','injectAroundString','MAKA_COMMAND_PATH','from\x20\x27','getInstance','stringify','client','engine','from','ssr','map','35mBVbtB','rewriteSourcePathForEngine','includes','writeFileSync','Error\x20in\x20injectIntoCodeBlock:\x20','json','engineAndTypeFromfilePath()','error','adjustIndentation','mpi','115ItqEMz','pathFromAppWithNoReWrite()','win32','startup','src/templates/','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','type','import\x20{\x20','alpha','test','injectAfterLineNumber()','engineAndTypeFromfilePath','message','startsWith','injectIntoCodeBlock','calculateMode','createEmptyMeteorProject','scss','File\x20not\x20found:\x20','Looking\x20for\x20','No\x20matching\x20section\x20found.','rewriteDestinationPathForEngine','exit','lib','pathFromAppWithNoReWrite','push','toString','112692MPqxlZ','\x5cS*$','meteor','.jsx','pathFromTemplates','(((.+)+)+)+$','templateContent','248AOfiCE','trim','templateContent()','injectAfterLineNumber','pathFromApp()','jsx','match','writeSourcePath','forEach','pathFromTemplates()','detectIndentation','sep','readdirSync','.js.tsx','injectTemplateModule()','less','findAppDirectory','instance','normalize','isFile','injectAtEndOfFile()','createDirectory','pop','platform','260790QELAxN','endsWith','split','header','none','env','33lfVDUk','some','noRename','export\x20{\x20','Error\x20in\x20','fsi','isDirectory','splice','injectTemplateModule','504892sXJtcW','Directory\x20','.js.jsx','warn','--release\x20','isTemplateForEngine()','pathFromApp','readFileSync'];a159c=function(){return a7;};return a159c();}import a159i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0x1cc;let f=c[d];return f;},a159d(a,b);}const errorHandler=(a,b)=>{const y=a159d;process[y(0x1d8)]['MAKA_DEV']==='True'&&Log[y(0x23a)](y(0x1dd)+a),b&&console[y(0x23a)](b);},isWin=process[a159z(0x1d2)]===a159z(0x23f),treeSymbol=isWin?a159z(0x207):'\x20┗';export class Scaffold{static ['instance'];[a159z(0x1de)];[a159z(0x23c)];constructor(a,b){const A=a159z;this['fsi']=a,this[A(0x23c)]=b;}static[a159z(0x22c)](a,b){const B=a159z;return!Scaffold[B(0x1cc)]&&(Scaffold[B(0x1cc)]=new Scaffold(a,b)),Scaffold[B(0x1cc)];}async[a159z(0x24d)](a,b){const C=a159z;b[C(0x1ff)]=b['cwd']||'.';const c=a159e[C(0x200)](b[C(0x1ff)],a),d=a159e[C(0x200)](c,C(0x21f));if(this['fsi'][C(0x1df)](d))throw new Error(C(0x226)+JSON['stringify'](c));const e=C(0x220),f=a159e['join'](b[C(0x1ff)]),g=a159g['promisify'](exec),h=b['release']?C(0x1e6)+b[C(0x1f5)]:'';b[C(0x1f5)]&&b[C(0x1f5)]['includes'](C(0x245))&&(Log[C(0x1e5)](C(0x1ed)+b[C(0x1f5)]),Log['warn']('Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues'));try{await g(this[C(0x23c)][C(0x25a)]+C(0x1f2)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x23a)]('\x0a'+k[C(0x249)]);throw k;}const i=a159e[C(0x200)](f,a);if(!a159f[C(0x1fa)](i))throw new Error(C(0x1e3)+i+'\x20doesn\x27t\x20exist');const j=a159f[C(0x26b)](i);for(const l of j){if(l!==C(0x222)&&l!==C(0x21f)){const m=a159e[C(0x200)](i,l);await a159h(m,{'force':!![]});}}}[a159z(0x248)]({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x265)](b);c=c&&c[0x0][D(0x1d5)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x1d1)](),f=c[D(0x1d1)]()||d;if(d)d=d[D(0x1ea)]('.','');if(f)f=f[D(0x1ea)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x239),g),process[D(0x253)](0x1);}}[a159z(0x1eb)]({pathParts:a,config:b}){const E=a159z;try{const c=a[E(0x200)](a159e[E(0x26a)]),d=this[E(0x248)]({'filePath':c})[E(0x243)],f=b?.[E(0x20d)][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[E(0x1ea)](g,'.'+d);}catch(h){errorHandler(E(0x225),h),process[E(0x253)](0x1);}}[a159z(0x211)]({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0x224));const c=a[F(0x200)](a159e[F(0x26a)]),d=this[F(0x248)]({'filePath':c});if(!d[F(0x243)]||!d[F(0x22f)])return!![];const f=b[F(0x20d)][d[F(0x243)]];if(!f)return!![];return f===d['engine'];}catch(g){errorHandler(F(0x1e7),g),process[F(0x253)](0x1);}}[a159z(0x266)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x200)](a159e[G(0x26a)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts[H(0x200)](a159e[H(0x26a)]),c=this[H(0x248)]({'filePath':b})[H(0x243)],d=a?.['engines'][c],f=new RegExp('\x5c.'+c+H(0x259));return!c||!d?b:b[H(0x1ea)](f,'.'+d);}catch(g){errorHandler(H(0x228),g),process[H(0x253)](0x1);}}[a159z(0x234)]({pathParts:pathParts=[],framework:framework=a159z(0x25a),config:a}){const I=a159z;try{const b=a159e['normalize'](pathParts[I(0x200)](a159e['sep']));if(!b[I(0x1d4)](I(0x1f0)))return b;const c='js';if(!a?.['engines']||!a?.[I(0x20d)][c])return b;const d=a[I(0x20d)][c],f=d==='tsx'?[I(0x26c),I(0x20a),I(0x1f0)]:[I(0x1e4),I(0x1f0)];for(const g of f){const h=b[I(0x1ea)](/\.js$/,g),i=a159e[I(0x200)]('templates',framework,h),j=a159e['normalize'](a159e[I(0x200)](global[I(0x22a)],i));if(a159f['existsSync'](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process[I(0x253)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a159z(0x25a),config:b}){const J=a159z;try{const c=this[J(0x234)]({'pathParts':a,'framework':framework,'config':b}),d=a159e['join'](J(0x241)+framework,c),f=a159e[J(0x200)](global[J(0x22a)],'..',d);return f;}catch(g){errorHandler(J(0x268),g),process[J(0x253)](0x1);}}[a159z(0x25e)]({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this['pathFromTemplates']({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x248)]({'filePath':f}),h=[K(0x20c),K(0x24e),K(0x26e),'html','js',K(0x264),'ts',K(0x201),K(0x238),K(0x1d8),K(0x214),'template'],i=[K(0x1fc),K(0x1ec)];if(!this[K(0x1de)][K(0x1ce)](f)){g==='jsx'&&(f=f[K(0x1ea)](K(0x25b),''));g===K(0x201)&&(f=f['replace'](K(0x215),''));if(!this[K(0x1de)][K(0x1ce)](f))throw new Error(K(0x204)+JSON[K(0x22d)](f));}const j=f[K(0x1d5)]('.'),k=a159e[K(0x1cd)](f)['split'](a159e[K(0x26a)]),l=k[k[K(0x20b)]-0x1]==='Dockerfile',m=i[K(0x235)](j[j[K(0x20b)]-0x1]),n=a159f['readFileSync'](f);if(l)return a159i['render'](n[K(0x257)](),b)['trim']();if(m)return Buffer[K(0x230)](n)[K(0x257)]('base64');if(!h[K(0x235)](j[j[K(0x20b)]-0x1]))return n[K(0x257)]()[K(0x260)]();return a159i['render'](n[K(0x257)](),b||{})[K(0x260)]();}catch(o){errorHandler(K(0x261),o),process[K(0x253)](0x1);}}async[a159z(0x1f9)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=[L(0x1fc),'ico'],h=g['includes'](a[L(0x1d5)]('.')['pop']()||''),i=this[L(0x25e)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x1db)]?b=this[L(0x1eb)]({'pathParts':[b],'config':d}):b=this[L(0x252)]({'pathParts':[b],'config':d});const j=await this[L(0x1de)][L(0x20e)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x221),k),process[L(0x253)](0x1);}}async[a159z(0x21e)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159z;try{const i=this[M(0x25c)]({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x25c)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x1ea)](j,'');},l=n=>{const O=M;return n[O(0x1ea)](i,b);};await this['fsi'][M(0x1d0)]({'dirPath':b});const m=a159f[M(0x26b)](i);for(const n of m){try{const o=a159e[M(0x200)](i,n),p=k(o),q=l(o),r=d[M(0x232)](t=>a159e[M(0x1cd)](t)),s=a159e['normalize'](a159e[M(0x200)](a,n));if(r[M(0x235)](s))continue;if(this[M(0x1de)][M(0x1df)](o))await this[M(0x21e)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi'][M(0x1ce)](o)&&this[M(0x211)]({'pathParts':[o],'config':h}))await this[M(0x1f9)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x1fe)](a159e['join'](a,n))>=0x0&&this['fsi'][M(0x1ce)](o)&&(c[M(0x1db)]=!![],await this['template']({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x1db)]=![]);}}catch(t){console[M(0x23a)](t),process[M(0x253)](0x1);}}}catch(u){errorHandler('copyTemplateDirectory()',u),process[M(0x253)](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const P=a159z;if(!a)throw new Error(P(0x1f8));try{!this[P(0x1de)]['isFile'](a)&&await this[P(0x1de)][P(0x20e)]({'filePath':a,'data':b});let d=a159f['readFileSync'](a,'utf8');d=b+'\x0a'+d,a159f[P(0x236)](a,d),c?.[P(0x1ee)]&&Log[P(0x1d6)](treeSymbol+P(0x1f3)+a159e[P(0x21b)](process[P(0x1ff)](),a));}catch(f){errorHandler(P(0x21d),f),process[P(0x253)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const Q=a159z;try{if(!this[Q(0x1de)][Q(0x1ce)](a))await this[Q(0x1de)][Q(0x20e)]({'filePath':a,'data':b});else{let d=a159f[Q(0x1e9)](a,Q(0x21c));!d[Q(0x235)](b)&&(d=d+'\x0a'+b,a159f[Q(0x236)](a,d)),c?.['verbose']&&Log[Q(0x1d6)](treeSymbol+Q(0x1f3)+a159e[Q(0x21b)](process['cwd'](),a));}}catch(f){errorHandler(Q(0x1cf),f),process[Q(0x253)](0x1);}}async[a159z(0x229)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a159z;try{if(!this[R(0x1de)][R(0x1ce)](a))throw Log['error'](R(0x202)+JSON['stringify'](a));const f=a159f[R(0x1e9)](a,'utf8'),g=f['replace'](/\r\n|\r/g,'\x0a'),h=g[R(0x1d5)]('\x0a'),j=this[R(0x269)](h),k=b[R(0x1ea)](/\r\n|\r/g,'\x0a')[R(0x1d5)]('\x0a'),l=c[R(0x1ea)](/\r\n|\r/g,'\x0a')[R(0x1d5)]('\x0a'),m=new RegExp(Array[R(0x209)](d)?d[R(0x200)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x20b)];p++){const q=h[p];if(m[R(0x246)](q)){const r=this['adjustIndentation'](j,targetIndentAdjustment),s=r+q[R(0x260)]();k['forEach'](t=>{const S=R;!g['includes'](t[S(0x260)]())&&n['push'](this['adjustIndentation'](j,indentAdjustment)+t);}),n[R(0x256)](s),l[R(0x267)](t=>{const T=R;!g['includes'](t[T(0x260)]())&&n[T(0x256)](this[T(0x23b)](j,indentAdjustment)+t);});}else n[R(0x256)](q);}const o=n[R(0x200)]('\x0a');a159f[R(0x236)](a,o),Log['header'](treeSymbol+'\x20updated\x20file\x20'+a159e[R(0x21b)](process['cwd'](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0x253)](0x1);}}[a159z(0x23b)](a,b){const U=a159z;if(b===0x0)return a;const c=a[U(0x20b)]+b;return c>0x0?a[0x0][U(0x205)](c):'';}[a159z(0x269)](a){const V=a159z;let b=0x0,c=0x0;a[V(0x267)](f=>{const W=V;if(f[W(0x24a)]('\x20'))b++;else f['startsWith']('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this['getCommonIndentSize'](a,d);return d['repeat'](e);}[a159z(0x1ef)](a,b){const X=a159z,c=a[X(0x212)](d=>d&&d['startsWith'](b))[X(0x232)](d=>{const Y=X,e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0][Y(0x20b)]:0x0;});if(c[X(0x20b)]===0x0)return 0x0;return this[X(0x24c)](c);}[a159z(0x24c)](a){const Z=a159z,b=a[Z(0x223)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object['keys'](b)[Z(0x223)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a159z(0x24b)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a159z;try{if(!this[a0(0x1de)]['isFile'](a))throw new Error(a0(0x24f)+a);const d=a159f[a0(0x1e9)](a,a0(0x21c)),f=d[a0(0x1d5)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x209)](c)?c:[c];for(let o=0x0;o<f[a0(0x20b)];o++){const p=f[o];k&&p['includes']('{')&&j++;if(m[a0(0x1da)](q=>p[a0(0x235)](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0x235)](b['trim']())&&(l=!![]);if(p[a0(0x235)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0x23a)](a0(0x242)+a),Log[a0(0x23a)]('While\x20injecting\x20'+b),Log['error'](a0(0x250)+c);throw new Error(a0(0x206));}if(l)return;let n=f[a0(0x1fd)](0x0,g+0x1);replace?(n[a0(0x256)](b[a0(0x260)]()),n[a0(0x256)](f[h])):(n=n[a0(0x1f1)](f[a0(0x1fd)](g+0x1,h)),n[a0(0x256)](b[a0(0x260)]())),n=n['concat'](f[a0(0x1fd)](h+0x1)),a159f[a0(0x236)](a,n[a0(0x200)]('\x0a'),'utf8');}catch(q){console['error'](a0(0x237),q);throw q;}}async[a159z(0x1f7)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a159z;try{const g=await this[a1(0x1de)][a1(0x216)](a,c);if(g)return;if(!this[a1(0x1de)][a1(0x1ce)](a))throw Log[a1(0x23a)]('No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20'+JSON[a1(0x22d)](a));const h=a159f[a1(0x1e9)](a,'utf8');if(!Array[a1(0x209)](d))d=[d];if(!Array[a1(0x209)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+'[\x5cs\x5cS]*?)('+l+')','i');i=h['replace'](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(a1(0x251));a159f[a1(0x236)](a,i),Log[a1(0x1d6)](treeSymbol+a1(0x1f3)+a159e[a1(0x21b)](process[a1(0x1ff)](),a));}catch(n){errorHandler(a1(0x20f),n),process[a1(0x253)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a159z;try{const f=a159f['readFileSync'](a,a2(0x21c));let g;d?g=a2(0x244)+b+a2(0x213)+c+a2(0x1f6):g=a2(0x210)+b+'\x20from\x20\x27'+c+'\x27;\x0a';const h=f[a2(0x1d5)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a2(0x235)](a2(0x22b)+c+'\x27')||m['includes']('from\x20\x22'+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x210)+b+'\x20from');if(m[a2(0x265)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h['length'];o++){if(h[o][a2(0x265)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h['length'];p++){h[p][a2(0x265)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0x1e0)](j,0x0,g);const l=h[a2(0x200)]('\x0a');a159f[a2(0x236)](a,l,a2(0x21c));}catch(q){errorHandler(a2(0x21a),q),process[a2(0x253)](0x1);}}async[a159z(0x1e1)](a,b,c){const a3=a159z;try{let d;b[a3(0x20d)][a3(0x231)]!==a3(0x1d7)?d=this[a3(0x1e8)]({'pathParts':[a3(0x208),a3(0x240),a3(0x254),'templates.js'],'config':b}):d=this[a3(0x1e8)]({'pathParts':[a3(0x208),a3(0x240),a3(0x22e),'templates.js'],'config':b});const f=this[a3(0x252)]({'pathParts':[d],'config':b}),g=a3(0x1dc)+pascalCase(a)+a3(0x213)+c+'\x27;',h=await this[a3(0x1de)]['fileContainsString'](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a3(0x26d),i),process[a3(0x253)](0x1);}}[a159z(0x262)]({filePath:a,content:b,lineNumber:c}){const a4=a159z;try{const d=a159f['readFileSync'](a)[a4(0x257)]()[a4(0x1d5)]('\x0a');d[a4(0x1e0)](c,0x0,b);const f=d[a4(0x200)]('\x0a');a159f[a4(0x236)](a,f);}catch(g){errorHandler(a4(0x247),g),process['exit'](0x1);}}[a159z(0x1e8)]({pathParts:a,config:b}){const a5=a159z;try{if(!a)throw new Error(a5(0x217));const c=this[a5(0x234)]({'pathParts':a,'config':b}),d=this[a5(0x1de)][a5(0x26f)]();return d?a159e[a5(0x200)](d,c):'';}catch(f){errorHandler(a5(0x263),f),process[a5(0x253)](0x1);}}[a159z(0x255)]({pathParts:a,config:b}){const a6=a159z;try{const c=this[a6(0x266)]({'pathParts':a,'config':b}),d=this[a6(0x1de)][a6(0x26f)]();if(!d)throw new Error(a6(0x203));return a159e[a6(0x200)](d,c);}catch(f){errorHandler(a6(0x23e),f),process[a6(0x253)](0x1);}}}
1
+ const a159z=a159d;(function(a,b){const v=a159d,c=a();while(!![]){try{const d=parseInt(v(0xf7))/0x1*(-parseInt(v(0x11a))/0x2)+-parseInt(v(0x12e))/0x3*(-parseInt(v(0x109))/0x4)+parseInt(v(0xd4))/0x5*(-parseInt(v(0xe2))/0x6)+parseInt(v(0x163))/0x7+parseInt(v(0xef))/0x8+-parseInt(v(0x124))/0x9*(parseInt(v(0xe3))/0xa)+parseInt(v(0x130))/0xb*(parseInt(v(0x139))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a159c,0xc7777));const a159b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a159d;if(c){const e=c[w(0xdf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a159a=a159b(this,function(){const x=a159d;return a159a[x(0xfd)]()[x(0x127)](x(0x102))[x(0xfd)]()[x(0x13d)](a159a)[x(0x127)](x(0x102));});a159a();import a159e from'path';import a159f from'fs';function a159c(){const a7=['release','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','noRename','css','pathFromAppWithNoReWrite()','normalize','.js','pathFromApp()','Error\x20in\x20','yaml','146765uLtPaK','instance','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','template()','.git','verbose','slice','readFileSync','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','writeSourcePath','repeat','apply','startsWith','type','306DJZQBU','50gZrXwD','isTemplateForEngine()','No\x20app\x20directory\x20found','sep','cwd','trim','pathFromApp','While\x20injecting\x20','injectIntoFile()','No\x20matching\x20section\x20found.','MAKA_COMMAND_PATH','createEmptyMeteorProject','11346656WUTOQr','rewriteDestinationPathForType','getCommonIndentSize','Directory\x20','jsx','length','pop','ico','523fehCNh','engines','scss','Dockerfile','src/templates/','templateContent','toString','templates.js','match','rewriteDestinationPathForEngine','forEach','(((.+)+)+)+$','lib','import\x20','meteor','--minimal','join','utf8','8mWwkDm','export\x20{\x20','replace','createFile','pathFromTemplates','\x20create\x20','[\x5cs\x5cS]*?)(','exit','engineAndTypeFromfilePath','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','findAppDirectory','warn','\x20from','getInstance','base64','keys','fileContainsString','3074cmFHDq','injectAtBeginningOfFile','injectIntoFile','copyTemplateDirectory','.js.ts','adjustIndentation','endsWith','injectAfterLineNumber','copyTemplateDirectory()','injectIntoCodeBlock','1987803rYVDnm','relative','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','search','template','pathFromAppWithNoReWrite','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','\x20}\x20from\x20\x27','rewriteDestinationPathForEngine()','detectIndentation','532995CXRgqd','map','33011msEiwO','tsx','some','message','win32','split','from\x20\x27','writeFileSync','env','6156DbaQvW','html','\x20->','includes','constructor','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','concat','\x5cS*$','splice','less','.jsx','.meteor','platform','none','.tsx','isFile','mpi','engineAndTypeFromfilePath()','imports','push','client','import\x20{\x20','True','rewriteSourcePathForEngine','from\x20\x22','existsSync','isTemplateForEngine','readdirSync','render','png','\x20doesn\x27t\x20exist','No\x20pathParts\x20option\x20provided','engine','json','stringify','pathFromTemplates()','isArray','templateContent()','ssr','injectAtBeginningOfFile()','fsi','isDirectory','6363203ndTTJU','Error\x20in\x20injectIntoCodeBlock:\x20','injectAtEndOfFile','calculateMode','\x20updated\x20file\x20','--release\x20','from','startup','createDirectory','Looking\x20for\x20','header','error'];a159c=function(){return a7;};return a159c();}import a159g from'util';function a159d(a,b){const c=a159c();return a159d=function(d,e){d=d-0xc2;let f=c[d];return f;},a159d(a,b);}import{exec}from'child_process';import a159h from'delete';import a159i from'ejs';import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a159d;process[y(0x138)]['MAKA_DEV']===y(0x14f)&&Log[y(0xc9)](y(0xd2)+a),b&&console[y(0xc9)](b);},isWin=process[a159z(0x145)]===a159z(0x134),treeSymbol=isWin?a159z(0x13b):'\x20┗';export class Scaffold{static [a159z(0xd5)];[a159z(0x161)];[a159z(0x149)];constructor(a,b){const A=a159z;this[A(0x161)]=a,this[A(0x149)]=b;}static[a159z(0x116)](a,b){const B=a159z;return!Scaffold[B(0xd5)]&&(Scaffold[B(0xd5)]=new Scaffold(a,b)),Scaffold[B(0xd5)];}async[a159z(0xee)](a,b){const C=a159z;b['cwd']=b[C(0xe7)]||'.';const c=a159e[C(0x107)](b[C(0xe7)],a),d=a159e[C(0x107)](c,'.meteor');if(this['fsi'][C(0x162)](d))throw new Error('Meteor\x20project\x20already\x20exists\x20at\x20'+JSON[C(0x15b)](c));const e=C(0x106),f=a159e[C(0x107)](b[C(0xe7)]),g=a159g['promisify'](exec),h=b[C(0xca)]?C(0xc3)+b[C(0xca)]:'';b['release']&&b[C(0xca)]['includes']('alpha')&&(Log[C(0x114)](C(0x12a)+b[C(0xca)]),Log['warn'](C(0x126)));try{await g(this['mpi'][C(0x105)]+C(0x10e)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0xc9)]('\x0a'+k[C(0x133)]);throw k;}const i=a159e[C(0x107)](f,a);if(!a159f[C(0x152)](i))throw new Error(C(0xf2)+i+C(0x157));const j=a159f['readdirSync'](i);for(const l of j){if(l!==C(0xd8)&&l!==C(0x144)){const m=a159e[C(0x107)](i,l);await a159h(m,{'force':!![]});}}}['engineAndTypeFromfilePath']({filePath:a}){const D=a159z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0][D(0x135)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0xf5)](),f=c[D(0xf5)]()||d;if(d)d=d[D(0x10b)]('.','');if(f)f=f[D(0x10b)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x14a),g),process['exit'](0x1);}}[a159z(0xf0)]({pathParts:a,config:b}){const E=a159z;try{const c=a[E(0x107)](a159e[E(0xe6)]),d=this[E(0x111)]({'filePath':c})[E(0xe1)],f=b?.[E(0xf8)][d],g=new RegExp('\x5c.'+d+E(0x140));return!d||!f?c:c[E(0x10b)](g,'.'+d);}catch(h){errorHandler('rewriteDestinationPathForType()',h),process[E(0x110)](0x1);}}['isTemplateForEngine']({pathParts:a,config:b}){const F=a159z;try{if(!b)throw new Error(F(0x13e));const c=a[F(0x107)](a159e[F(0xe6)]),d=this['engineAndTypeFromfilePath']({'filePath':c});if(!d[F(0xe1)]||!d[F(0x159)])return!![];const f=b['engines'][d[F(0xe1)]];if(!f)return!![];return f===d[F(0x159)];}catch(g){errorHandler(F(0xe4),g),process[F(0x110)](0x1);}}[a159z(0xdd)]({pathParts:pathParts=[]}){const G=a159z;return pathParts[G(0x107)](a159e[G(0xe6)]);}[a159z(0x100)]({pathParts:pathParts=[],config:a}){const H=a159z;try{const b=pathParts['join'](a159e[H(0xe6)]),c=this[H(0x111)]({'filePath':b})[H(0xe1)],d=a?.[H(0xf8)][c],f=new RegExp('\x5c.'+c+'\x5cS*$');return!c||!d?b:b[H(0x10b)](f,'.'+d);}catch(g){errorHandler(H(0x12c),g),process[H(0x110)](0x1);}}[a159z(0x150)]({pathParts:pathParts=[],framework:framework=a159z(0x105),config:a}){const I=a159z;try{const b=a159e[I(0xcf)](pathParts[I(0x107)](a159e[I(0xe6)]));if(!b[I(0x120)](I(0xd0)))return b;const c='js';if(!a?.[I(0xf8)]||!a?.['engines'][c])return b;const d=a[I(0xf8)][c],f=d==='tsx'?['.js.tsx',I(0x11e),I(0xd0)]:['.js.jsx','.js'];for(const g of f){const h=b[I(0x10b)](/\.js$/,g),i=a159e[I(0x107)]('templates',framework,h),j=a159e['normalize'](a159e[I(0x107)](global[I(0xed)],i));if(a159f[I(0x152)](j))return h;}return b;}catch(k){errorHandler('rewriteSourcePathForEngine()',k),process[I(0x110)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a159z(0x105),config:b}){const J=a159z;try{const c=this[J(0x150)]({'pathParts':a,'framework':framework,'config':b}),d=a159e['join'](J(0xfb)+framework,c),f=a159e[J(0x107)](global[J(0xed)],'..',d);return f;}catch(g){errorHandler(J(0x15c),g),process['exit'](0x1);}}['templateContent']({srcPath:a,context:b,framework:c,config:d}){const K=a159z;try{let f=this[K(0x10d)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x111)]({'filePath':f}),h=[K(0xcd),K(0xf9),K(0x142),K(0x13a),'js',K(0xf3),'ts',K(0x131),K(0x15a),K(0x138),K(0xd3),K(0x128)],i=[K(0x156),K(0xf6)];if(!this[K(0x161)][K(0x148)](f)){g===K(0xf3)&&(f=f[K(0x10b)](K(0x143),''));g==='tsx'&&(f=f[K(0x10b)](K(0x147),''));if(!this[K(0x161)]['isFile'](f))throw new Error(K(0x112)+JSON[K(0x15b)](f));}const j=f[K(0x135)]('.'),k=a159e[K(0xcf)](f)[K(0x135)](a159e[K(0xe6)]),l=k[k['length']-0x1]===K(0xfa),m=i['includes'](j[j['length']-0x1]),n=a159f[K(0xdb)](f);if(l)return a159i['render'](n[K(0xfd)](),b)[K(0xe8)]();if(m)return Buffer[K(0xc4)](n)[K(0xfd)](K(0x117));if(!h[K(0x13c)](j[j[K(0xf4)]-0x1]))return n[K(0xfd)]()[K(0xe8)]();return a159i[K(0x155)](n[K(0xfd)](),b||{})[K(0xe8)]();}catch(o){errorHandler(K(0x15e),o),process['exit'](0x1);}}async[a159z(0x128)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a159z;try{const g=['png',L(0xf6)],h=g['includes'](a[L(0x135)]('.')['pop']()||''),i=this[L(0xfc)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0xcc)]?b=this['rewriteDestinationPathForType']({'pathParts':[b],'config':d}):b=this[L(0x100)]({'pathParts':[b],'config':d});const j=await this[L(0x161)][L(0x10c)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0xd7),k),process[L(0x110)](0x1);}}async[a159z(0x11d)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a159z;try{const i=this['pathFromTemplates']({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x10d)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x10b)](j,'');},l=n=>{const O=M;return n[O(0x10b)](i,b);};await this[M(0x161)][M(0xc6)]({'dirPath':b});const m=a159f[M(0x154)](i);for(const n of m){try{const o=a159e[M(0x107)](i,n),p=k(o),q=l(o),r=d[M(0x12f)](t=>a159e[M(0xcf)](t)),s=a159e[M(0xcf)](a159e[M(0x107)](a,n));if(r['includes'](s))continue;if(this[M(0x161)][M(0x162)](o))await this[M(0x11d)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[M(0x161)][M(0x148)](o)&&this[M(0x153)]({'pathParts':[o],'config':h}))await this[M(0x128)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f['indexOf'](a159e[M(0x107)](a,n))>=0x0&&this[M(0x161)][M(0x148)](o)&&(c[M(0xcc)]=!![],await this[M(0x128)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0xcc)]=![]);}}catch(t){console['error'](t),process[M(0x110)](0x1);}}}catch(u){errorHandler(M(0x122),u),process['exit'](0x1);}}async[a159z(0x11b)]({filePath:a,content:b,opts:c}){const P=a159z;if(!a)throw new Error(P(0xdc));try{!this[P(0x161)]['isFile'](a)&&await this['fsi'][P(0x10c)]({'filePath':a,'data':b});let d=a159f['readFileSync'](a,P(0x108));d=b+'\x0a'+d,a159f[P(0x137)](a,d),c?.['verbose']&&Log[P(0xc8)](treeSymbol+'\x20updated\x20file\x20'+a159e[P(0x125)](process['cwd'](),a));}catch(f){errorHandler(P(0x160),f),process[P(0x110)](0x1);}}async['injectAtEndOfFile']({filePath:a,content:b,opts:c}){const Q=a159z;try{if(!this['fsi'][Q(0x148)](a))await this[Q(0x161)][Q(0x10c)]({'filePath':a,'data':b});else{let d=a159f['readFileSync'](a,Q(0x108));!d[Q(0x13c)](b)&&(d=d+'\x0a'+b,a159f[Q(0x137)](a,d)),c?.[Q(0xd9)]&&Log[Q(0xc8)](treeSymbol+Q(0xc2)+a159e[Q(0x125)](process[Q(0xe7)](),a));}}catch(f){errorHandler('injectAtEndOfFile()',f),process['exit'](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a159z;try{if(!this[R(0x161)][R(0x148)](a))throw Log['error']('No\x20file\x20found\x20at\x20path\x20'+JSON[R(0x15b)](a));const f=a159f['readFileSync'](a,R(0x108)),g=f[R(0x10b)](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[R(0x12d)](h),k=b[R(0x10b)](/\r\n|\r/g,'\x0a')[R(0x135)]('\x0a'),l=c[R(0x10b)](/\r\n|\r/g,'\x0a')[R(0x135)]('\x0a'),m=new RegExp(Array['isArray'](d)?d[R(0x107)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0xf4)];p++){const q=h[p];if(m['test'](q)){const r=this[R(0x11f)](j,targetIndentAdjustment),s=r+q['trim']();k['forEach'](t=>{const S=R;!g['includes'](t[S(0xe8)]())&&n[S(0x14c)](this[S(0x11f)](j,indentAdjustment)+t);}),n[R(0x14c)](s),l[R(0x101)](t=>{const T=R;!g[T(0x13c)](t[T(0xe8)]())&&n['push'](this['adjustIndentation'](j,indentAdjustment)+t);});}else n['push'](q);}const o=n[R(0x107)]('\x0a');a159f[R(0x137)](a,o),Log[R(0xc8)](treeSymbol+R(0xc2)+a159e[R(0x125)](process['cwd'](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0x110)](0x1);}}['adjustIndentation'](a,b){const U=a159z;if(b===0x0)return a;const c=a['length']+b;return c>0x0?a[0x0][U(0xde)](c):'';}[a159z(0x12d)](a){const V=a159z;let b=0x0,c=0x0;a[V(0x101)](f=>{const W=V;if(f[W(0xe0)]('\x20'))b++;else f[W(0xe0)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0xf1)](a,d);return d[V(0xde)](e);}['getCommonIndentSize'](a,b){const X=a159z,c=a['filter'](d=>d&&d[X(0xe0)](b))[X(0x12f)](d=>{const Y=X,e=d[Y(0xff)](new RegExp('^'+b+'+'));return e?e[0x0][Y(0xf4)]:0x0;});if(c[X(0xf4)]===0x0)return 0x0;return this[X(0x166)](c);}[a159z(0x166)](a){const Z=a159z,b=a['reduce']((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0x118)](b)['reduce']((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a159z(0x123)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a159z;try{if(!this[a0(0x161)]['isFile'](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a159f[a0(0xdb)](a,a0(0x108)),f=d[a0(0x135)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x15d)](c)?c:[c];for(let o=0x0;o<f[a0(0xf4)];o++){const p=f[o];k&&p[a0(0x13c)]('{')&&j++;if(m[a0(0x132)](q=>p[a0(0x13c)](q))){g=o,k=!![],j++;continue;}if(k){p['includes'](b[a0(0xe8)]())&&(l=!![]);if(p['includes']('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0xc9)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log[a0(0xc9)](a0(0xea)+b),Log['error'](a0(0xc7)+c);throw new Error(a0(0xcb));}if(l)return;let n=f[a0(0xda)](0x0,g+0x1);replace?(n[a0(0x14c)](b[a0(0xe8)]()),n[a0(0x14c)](f[h])):(n=n[a0(0x13f)](f[a0(0xda)](g+0x1,h)),n[a0(0x14c)](b[a0(0xe8)]())),n=n[a0(0x13f)](f[a0(0xda)](h+0x1)),a159f[a0(0x137)](a,n[a0(0x107)]('\x0a'),a0(0x108));}catch(q){console[a0(0xc9)](a0(0x164),q);throw q;}}async[a159z(0x11c)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a159z;try{const g=await this['fsi']['fileContainsString'](a,c);if(g)return;if(!this['fsi']['isFile'](a))throw Log['error'](a1(0xd6)+JSON[a1(0x15b)](a));const h=a159f['readFileSync'](a,a1(0x108));if(!Array[a1(0x15d)](d))d=[d];if(!Array['isArray'](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a1(0x10f)+l+')','i');i=h[a1(0x10b)](m,(n,o,p)=>{return j=!![],replace?''+o+c+p:''+o+c+'\x0a'+p;});if(j)break;}if(j)break;}if(!j)throw new Error(a1(0xec));a159f[a1(0x137)](a,i),Log[a1(0xc8)](treeSymbol+'\x20updated\x20file\x20'+a159e[a1(0x125)](process['cwd'](),a));}catch(n){errorHandler(a1(0xeb),n),process[a1(0x110)](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a159z;try{const f=a159f[a2(0xdb)](a,a2(0x108));let g;d?g=a2(0x14e)+b+a2(0x12b)+c+'\x27;\x0a':g=a2(0x104)+b+'\x20from\x20\x27'+c+'\x27;\x0a';const h=f[a2(0x135)]('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes'](a2(0x136)+c+'\x27')||m['includes'](a2(0x151)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x104)+b+a2(0x115));if(m[a2(0xff)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0xf4)];o++){if(h[o][a2(0xff)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0xf4)];p++){h[p][a2(0xff)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0x141)](j,0x0,g);const l=h[a2(0x107)]('\x0a');a159f[a2(0x137)](a,l,a2(0x108));}catch(q){errorHandler('injectImport()',q),process[a2(0x110)](0x1);}}async['injectTemplateModule'](a,b,c){const a3=a159z;try{let d;b['engines'][a3(0x15f)]!==a3(0x146)?d=this['pathFromApp']({'pathParts':[a3(0x14b),a3(0xc5),a3(0x103),a3(0xfe)],'config':b}):d=this[a3(0xe9)]({'pathParts':['imports','startup',a3(0x14d),'templates.js'],'config':b});const f=this[a3(0x100)]({'pathParts':[d],'config':b}),g=a3(0x10a)+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',h=await this[a3(0x161)][a3(0x119)](f,g);!h&&this[a3(0x165)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler('injectTemplateModule()',i),process[a3(0x110)](0x1);}}[a159z(0x121)]({filePath:a,content:b,lineNumber:c}){const a4=a159z;try{const d=a159f[a4(0xdb)](a)['toString']()[a4(0x135)]('\x0a');d[a4(0x141)](c,0x0,b);const f=d[a4(0x107)]('\x0a');a159f[a4(0x137)](a,f);}catch(g){errorHandler('injectAfterLineNumber()',g),process[a4(0x110)](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a5=a159z;try{if(!a)throw new Error(a5(0x158));const c=this[a5(0x150)]({'pathParts':a,'config':b}),d=this[a5(0x161)]['findAppDirectory']();return d?a159e[a5(0x107)](d,c):'';}catch(f){errorHandler(a5(0xd1),f),process[a5(0x110)](0x1);}}[a159z(0x129)]({pathParts:a,config:b}){const a6=a159z;try{const c=this[a6(0xdd)]({'pathParts':a,'config':b}),d=this['fsi'][a6(0x113)]();if(!d)throw new Error(a6(0xe5));return a159e[a6(0x107)](d,c);}catch(f){errorHandler(a6(0xce),f),process[a6(0x110)](0x1);}}}
@@ -1 +1 @@
1
- const a160l=a160d;(function(a,b){const j=a160d,c=a();while(!![]){try{const d=parseInt(j(0x121))/0x1*(-parseInt(j(0x132))/0x2)+-parseInt(j(0x123))/0x3*(-parseInt(j(0x124))/0x4)+parseInt(j(0x129))/0x5*(-parseInt(j(0x12c))/0x6)+parseInt(j(0x134))/0x7*(-parseInt(j(0x11f))/0x8)+parseInt(j(0x136))/0x9*(-parseInt(j(0x122))/0xa)+parseInt(j(0x120))/0xb+parseInt(j(0x137))/0xc*(parseInt(j(0x139))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x6a59d));const a160b=(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;};}()),a160a=a160b(this,function(){const k=a160d;return a160a[k(0x133)]()[k(0x135)](k(0x127))[k(0x133)]()[k(0x12d)](a160a)[k(0x135)](k(0x127));});a160a();function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x11f;let f=c[d];return f;},a160d(a,b);}function a160c(){const s=['inherit','verbose','(((.+)+)+)+$','close','5hxJPgZ','log','withSpinner','5095248XsDZsp','constructor','ignore','start','success','kill','231538isAOvL','toString','182cycTrf','search','9FSyxJE','12MpZZBB','message','26821457lGYQOy','pid','213512OyRlwC','4422429tLIVSj','5QYOzkc','2309410GHBJOH','339dllmcq','11444igiDru'];a160c=function(){return s;};return a160c();}import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160l(0x12b)](a,b,c){return new Promise((d,e)=>{const m=a160d,f=Log[m(0x12b)](),g=c?.['cwd']||'.';c?.['message']&&f[m(0x12f)](c?.[m(0x138)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[m(0x126)]?m(0x125):m(0x12e)});process['on']('SIGINT',()=>{const n=m,i=h[n(0x13a)];i&&process[n(0x131)](i);}),h['on']('data',i=>{const o=m;console[o(0x12a)](i);}),h['on']('disconnect',()=>{const p=m;c?.[p(0x138)]&&f['success'](),d();}),h['on'](m(0x128),()=>{const q=m;c?.[q(0x138)]&&f[q(0x130)](),d();}),h['on']('error',()=>{const r=m;c?.[r(0x138)]&&f['failure'](),e();});});}}
1
+ const a160m=a160d;(function(a,b){const j=a160d,c=a();while(!![]){try{const d=-parseInt(j(0x105))/0x1*(-parseInt(j(0x11e))/0x2)+parseInt(j(0x11a))/0x3*(-parseInt(j(0x116))/0x4)+-parseInt(j(0x113))/0x5+parseInt(j(0x10f))/0x6*(-parseInt(j(0x114))/0x7)+parseInt(j(0x112))/0x8+-parseInt(j(0x10a))/0x9*(-parseInt(j(0x115))/0xa)+parseInt(j(0x118))/0xb*(parseInt(j(0x10e))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a160c,0x1f938));function a160c(){const s=['ignore','failure','117205WItcAQ','verbose','data','message','withSpinner','27pXDhet','error','close','apply','12xjHafv','90PYlxaV','toString','disconnect','716728fOGWmg','909020eAmJdc','118097XnKbvC','252950DVwZXq','48476ljpYWK','search','4029927jOhUOu','success','21ZdvywU','kill','SIGINT','(((.+)+)+)+$','2ywwbNt','start','constructor'];a160c=function(){return s;};return a160c();}const a160b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a160d;if(c){const e=c[k(0x10d)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a160a=a160b(this,function(){const l=a160d;return a160a[l(0x110)]()['search'](l(0x11d))[l(0x110)]()[l(0x102)](a160a)[l(0x117)](l(0x11d));});a160a();function a160d(a,b){const c=a160c();return a160d=function(d,e){d=d-0x101;let f=c[d];return f;},a160d(a,b);}import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a160m(0x109)](a,b,c){return new Promise((d,e)=>{const n=a160d,f=Log[n(0x109)](),g=c?.['cwd']||'.';c?.['message']&&f[n(0x101)](c?.[n(0x108)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x106)]?'inherit':n(0x103)});process['on'](n(0x11c),()=>{const o=n,i=h['pid'];i&&process[o(0x11b)](i);}),h['on'](n(0x107),i=>{console['log'](i);}),h['on'](n(0x111),()=>{const p=n;c?.[p(0x108)]&&f['success'](),d();}),h['on'](n(0x10c),()=>{const q=n;c?.[q(0x108)]&&f[q(0x119)](),d();}),h['on'](n(0x10b),()=>{const r=n;c?.[r(0x108)]&&f[r(0x104)](),e();});});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a161d,c=a();while(!![]){try{var d=parseInt(f(0x8f))/0x1+parseInt(f(0x8a))/0x2+-parseInt(f(0x94))/0x3*(-parseInt(f(0x99))/0x4)+-parseInt(f(0x91))/0x5*(parseInt(f(0x92))/0x6)+parseInt(f(0x8e))/0x7+parseInt(f(0x93))/0x8*(-parseInt(f(0x98))/0x9)+-parseInt(f(0x95))/0xa*(parseInt(f(0x8c))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0x5c989));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x8b)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x8d)]()[h(0x96)](h(0x97))[h(0x8d)]()[h(0x90)](a161a)['search'](h(0x97));});a161a();function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x8a;var f=c[d];return f;},a161d(a,b);}export{};function a161c(){var i=['1971250gbbGAb','search','(((.+)+)+)+$','1225593cRRBHc','4bBXsrB','628768tCSwIc','apply','22TYyRge','toString','2491769ewJnSI','515149CvxZbh','constructor','126145CdtAEA','6FNaUsL','24YqFktE','65349fgIovN'];a161c=function(){return i;};return a161c();}
1
+ (function(a,b){var f=a161d,c=a();while(!![]){try{var d=-parseInt(f(0x114))/0x1+-parseInt(f(0x113))/0x2*(parseInt(f(0x117))/0x3)+-parseInt(f(0x10b))/0x4+-parseInt(f(0x116))/0x5*(-parseInt(f(0x108))/0x6)+parseInt(f(0x10a))/0x7*(parseInt(f(0x109))/0x8)+-parseInt(f(0x10c))/0x9+parseInt(f(0x111))/0xa*(parseInt(f(0x10d))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a161c,0x8b1eb));var a161b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a161d;if(c){var e=c[g(0x112)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a161a=a161b(this,function(){var h=a161d;return a161a[h(0x110)]()[h(0x10f)](h(0x115))[h(0x110)]()[h(0x10e)](a161a)['search']('(((.+)+)+)+$');});a161a();function a161d(a,b){var c=a161c();return a161d=function(d,e){d=d-0x108;var f=c[d];return f;},a161d(a,b);}export{};function a161c(){var i=['304330tJRajH','583677JnbbWt','108fqFjcB','8UmEgHy','214060lihCvA','2061256pmHwKL','3099888EnsAMj','40766WODPOv','constructor','search','toString','1980ABqgkO','apply','2NIEszY','235816hFzWBj','(((.+)+)+)+$'];a161c=function(){return i;};return a161c();}
@@ -1 +1 @@
1
- const a162u=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=-parseInt(m(0x1ae))/0x1+parseInt(m(0x197))/0x2+-parseInt(m(0x1a6))/0x3+parseInt(m(0x1af))/0x4*(parseInt(m(0x18e))/0x5)+-parseInt(m(0x19e))/0x6+-parseInt(m(0x1a1))/0x7*(-parseInt(m(0x1a9))/0x8)+-parseInt(m(0x1a4))/0x9*(-parseInt(m(0x191))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x790ee));function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x18b;let f=c[d];return f;},a162d(a,b);}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0x19f)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a[o(0x18b)]()[o(0x1b2)](o(0x19c))[o(0x18b)]()[o(0x193)](a162a)[o(0x1b2)](o(0x19c));});a162a();function a162c(){const x=['push','source','search','toString','pem','ConnectTimeout=2','5NElSHE','tty','join','9091610kkjmgD','message','constructor','withSpinner','ignore','inherit','877964tbzyNv','verbose','ssh','dest','env','(((.+)+)+)+$','failure','2076810MxzDuZ','apply','close','7Eysegv','success','scp','9pfAhlM','port','1198380vQEnee','host','ping','50824FvvkYm','start','sshVerbose','concat','user','716942UWFGeP','2415580hIgWHM'];a162c=function(){return x;};return a162c();}import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static ['ssh']=(a,b,c)=>{return new Promise((d,e)=>{const p=a162d,f=b[p(0x1ad)]+'@'+b[p(0x1a7)],g=a162e[p(0x190)](b[p(0x19b)],b['pem']),h=c?.[p(0x18f)]||![],i=c?.[p(0x1ab)]||![];let j=[];h&&j[p(0x1b0)]('-t');i&&j[p(0x1b0)]('-v');j=j[p(0x1ac)](['-o',p(0x18d),'-i',g,'-p',b['port'],f,a]);const k=Log[p(0x194)]();c?.[p(0x192)]&&k[p(0x1aa)](c?.[p(0x192)]);const l=spawn(p(0x199),j,{'stdio':c?.['verbose']?'inherit':p(0x195)});l['on']('disconnect',()=>{const q=p;c?.[q(0x192)]&&k[q(0x1a2)](),d();}),l['on'](p(0x1a0),()=>{const r=p;c?.['message']&&k[r(0x1a2)](),d();}),l['on']('error',()=>{const s=p;c?.[s(0x192)]&&k[s(0x19d)](),e();});});};static ['sshSync']=(a,b,c)=>{const t=a162d,d=b[t(0x1ad)]+'@'+b['host'],e=a162e['join'](b['env'],b[t(0x18c)]),f=c?.[t(0x18f)]||![],g=c?.[t(0x1ab)]||![];let h=[];f&&h[t(0x1b0)]('-t'),g&&h['push']('-v'),h=h['concat'](['-o',t(0x18d),'-i',e,'-p',b[t(0x1a5)],d,a]),spawnSync(t(0x199),h,{'stdio':c?.['verbose']?t(0x196):t(0x195)});};static[a162u(0x1a8)](a,b,c){const v=a162u,d=b[v(0x1ad)]+'@'+b[v(0x1a7)],e=a162e[v(0x190)](b[v(0x19b)],b[v(0x18c)]),f=c?.[v(0x18f)]||![];let g=[];f&&g[v(0x1b0)]('-t');g=g[v(0x1ac)](['-o','ConnectTimeout=2','-i',e,'-p',b[v(0x1a5)],d,a,'2>&1']);const h='ssh\x20'+g[v(0x190)]('\x20');return execSync(h)[v(0x18b)]();}static[a162u(0x1a3)](a,b){const w=a162u,c=b['user']+'@'+b['host']+':'+a[w(0x19a)],d=a162e[w(0x190)](b[w(0x19b)],b[w(0x18c)]),e=['-i',d,'-P',b[w(0x1a5)],a[w(0x1b1)],c];spawnSync(w(0x1a3),e,{'stdio':a[w(0x198)]?w(0x196):w(0x195)});}}
1
+ const a162p=a162d;(function(a,b){const m=a162d,c=a();while(!![]){try{const d=-parseInt(m(0xe4))/0x1*(-parseInt(m(0xd5))/0x2)+parseInt(m(0xee))/0x3*(parseInt(m(0xdd))/0x4)+-parseInt(m(0xea))/0x5*(parseInt(m(0xd2))/0x6)+parseInt(m(0xd4))/0x7+parseInt(m(0xdb))/0x8*(parseInt(m(0xe5))/0x9)+parseInt(m(0xd3))/0xa+-parseInt(m(0xed))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xb5c48));function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xd0;let f=c[d];return f;},a162d(a,b);}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a162d;if(c){const e=c[n(0xef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const o=a162d;return a162a[o(0xf8)]()[o(0xe2)](o(0xd7))[o(0xf8)]()[o(0xe0)](a162a)['search']('(((.+)+)+)+$');});a162a();function a162c(){const x=['930981aCWVGk','apply','message','sshVerbose','ignore','success','ssh','ssh\x20','join','push','toString','verbose','env','source','6PliuDC','7869430crrhvY','1663599pZQXrP','2734514DDaGIs','sshSync','(((.+)+)+)+$','error','tty','port','104tpZAIH','withSpinner','8OTSDxc','host','scp','constructor','pem','search','inherit','1MoSzBA','117990EjjMsX','failure','ConnectTimeout=2','close','2>&1','2938550DdJhiA','user','concat','20357821FHyVTO'];a162c=function(){return x;};return a162c();}import a162e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a162p(0xf4)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a162d,f=b[q(0xeb)]+'@'+b['host'],g=a162e['join'](b[q(0xd0)],b['pem']),h=c?.[q(0xd9)]||![],i=c?.[q(0xf1)]||![];let j=[];h&&j[q(0xf7)]('-t');i&&j['push']('-v');j=j[q(0xec)](['-o',q(0xe7),'-i',g,'-p',b[q(0xda)],f,a]);const k=Log[q(0xdc)]();c?.[q(0xf0)]&&k['start'](c?.[q(0xf0)]);const l=spawn('ssh',j,{'stdio':c?.[q(0xf9)]?'inherit':'ignore'});l['on']('disconnect',()=>{const r=q;c?.[r(0xf0)]&&k[r(0xf3)](),d();}),l['on'](q(0xe8),()=>{const s=q;c?.[s(0xf0)]&&k[s(0xf3)](),d();}),l['on'](q(0xd8),()=>{const t=q;c?.[t(0xf0)]&&k[t(0xe6)](),e();});});};static [a162p(0xd6)]=(a,b,c)=>{const u=a162p,d=b[u(0xeb)]+'@'+b[u(0xde)],e=a162e['join'](b['env'],b['pem']),f=c?.[u(0xd9)]||![],g=c?.[u(0xf1)]||![];let h=[];f&&h[u(0xf7)]('-t'),g&&h[u(0xf7)]('-v'),h=h[u(0xec)](['-o',u(0xe7),'-i',e,'-p',b[u(0xda)],d,a]),spawnSync(u(0xf4),h,{'stdio':c?.[u(0xf9)]?u(0xe3):u(0xf2)});};static['ping'](a,b,c){const v=a162p,d=b['user']+'@'+b[v(0xde)],e=a162e[v(0xf6)](b[v(0xd0)],b['pem']),f=c?.[v(0xd9)]||![];let g=[];f&&g[v(0xf7)]('-t');g=g[v(0xec)](['-o',v(0xe7),'-i',e,'-p',b[v(0xda)],d,a,v(0xe9)]);const h=v(0xf5)+g[v(0xf6)]('\x20');return execSync(h)[v(0xf8)]();}static[a162p(0xdf)](a,b){const w=a162p,c=b['user']+'@'+b[w(0xde)]+':'+a['dest'],d=a162e[w(0xf6)](b[w(0xd0)],b[w(0xe1)]),e=['-i',d,'-P',b['port'],a[w(0xd1)],c];spawnSync(w(0xdf),e,{'stdio':a[w(0xf9)]?w(0xe3):w(0xf2)});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0x18c))/0x1*(parseInt(f(0x18b))/0x2)+parseInt(f(0x182))/0x3+parseInt(f(0x184))/0x4+parseInt(f(0x189))/0x5+-parseInt(f(0x185))/0x6*(parseInt(f(0x187))/0x7)+parseInt(f(0x17e))/0x8*(-parseInt(f(0x17f))/0x9)+-parseInt(f(0x180))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0xe3a9f));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x186)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a[h(0x188)]()[h(0x183)](h(0x18a))[h(0x188)]()[h(0x181)](a163a)[h(0x183)](h(0x18a));});function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x17e;var f=c[d];return f;},a163d(a,b);}a163a();export{};function a163c(){var i=['constructor','2181336aEUuxV','search','5873192coZqPY','1303542vlkAxe','apply','35cCmkhF','toString','9040245FVnJqq','(((.+)+)+)+$','75326HiwwPT','41hgJSgP','95560htjqHP','279rCjhef','31585510SizpEd'];a163c=function(){return i;};return a163c();}
1
+ function a163d(a,b){var c=a163c();return a163d=function(d,e){d=d-0x6d;var f=c[d];return f;},a163d(a,b);}(function(a,b){var f=a163d,c=a();while(!![]){try{var d=parseInt(f(0x6d))/0x1*(parseInt(f(0x75))/0x2)+-parseInt(f(0x73))/0x3*(-parseInt(f(0x6f))/0x4)+-parseInt(f(0x74))/0x5*(-parseInt(f(0x7a))/0x6)+parseInt(f(0x78))/0x7+-parseInt(f(0x72))/0x8+parseInt(f(0x79))/0x9+-parseInt(f(0x77))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0xd71a4));var a163b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a163d;if(c){var e=c[g(0x71)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){var h=a163d;return a163a['toString']()['search'](h(0x70))['toString']()[h(0x6e)](a163a)[h(0x76)](h(0x70));});a163a();function a163c(){var i=['1080izMfDY','(((.+)+)+)+$','apply','12217424BspWsA','117QyLvIx','1267480eivwvt','50982uKMrUV','search','16859680yrZJCQ','4238899qHaXrs','14568210haGDpI','6YrgfxC','63DEuYad','constructor'];a163c=function(){return i;};return a163c();}export{};
@@ -1 +1 @@
1
- function a164c(){const k=['useConfig','openssl','1426230RXLVqB','(((.+)+)+)+$','keyName','10iuMvNv','push','openssl.conf','1852472aTVIEO','req','toString','-out','constructor','cwd','1282924JKHdSr','inherit','7ppahWJ','31893mieqox','-new','271550bmzHnw','473eNxTKG','genSSC','genCSR','crtName','csrName','-keyout','6Goudmg','-x509','307874rCdoEo','1831045zzxfYq','-config'];a164c=function(){return k;};return a164c();}const a164h=a164d;function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x12b;let f=c[d];return f;},a164d(a,b);}(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x12e))/0x1+-parseInt(f(0x136))/0x2*(-parseInt(f(0x142))/0x3)+parseInt(f(0x13f))/0x4+parseInt(f(0x12f))/0x5*(parseInt(f(0x12c))/0x6)+parseInt(f(0x141))/0x7*(parseInt(f(0x139))/0x8)+parseInt(f(0x133))/0x9+parseInt(f(0x144))/0xa*(-parseInt(f(0x145))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x41ffd));const a164b=(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;};}()),a164a=a164b(this,function(){const g=a164d;return a164a['toString']()['search'](g(0x134))[g(0x13b)]()[g(0x13d)](a164a)['search'](g(0x134));});a164a();import{spawnSync}from'child_process';export class SSL{static[a164h(0x147)](a){const i=a164h,b=a[i(0x13e)]?a[i(0x13e)]:process[i(0x13e)](),c=['req',i(0x143),'-newkey','rsa:2048','-nodes',i(0x12b),a[i(0x135)],i(0x13c),a[i(0x149)]];a['useConfig']&&(c[i(0x137)](i(0x130)),c[i(0x137)]('openssl.conf')),a[i(0x131)]?spawnSync('openssl',c,{'cwd':b}):spawnSync(i(0x132),c,{'stdio':i(0x140),'cwd':b});}static[a164h(0x146)](a){const j=a164h,b=a[j(0x13e)]?a['cwd']:process['cwd'](),c=[j(0x13a),j(0x12d),j(0x143),'-key',a['keyName'],j(0x13c),a[j(0x148)]];a[j(0x131)]&&(c['push'](j(0x130)),c[j(0x137)](j(0x138))),a[j(0x131)]?spawnSync(j(0x132),c,{'cwd':b}):spawnSync(j(0x132),c,{'stdio':j(0x140),'cwd':b});}}
1
+ const a164h=a164d;(function(a,b){const f=a164d,c=a();while(!![]){try{const d=parseInt(f(0x154))/0x1*(-parseInt(f(0x15f))/0x2)+parseInt(f(0x151))/0x3*(-parseInt(f(0x153))/0x4)+parseInt(f(0x16a))/0x5*(-parseInt(f(0x168))/0x6)+parseInt(f(0x16c))/0x7+parseInt(f(0x14f))/0x8*(parseInt(f(0x156))/0x9)+-parseInt(f(0x169))/0xa*(-parseInt(f(0x162))/0xb)+parseInt(f(0x150))/0xc;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x9fdcd));const a164b=(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;};}()),a164a=a164b(this,function(){const g=a164d;return a164a[g(0x160)]()['search'](g(0x16e))[g(0x160)]()[g(0x163)](a164a)[g(0x14b)]('(((.+)+)+)+$');});a164a();import{spawnSync}from'child_process';export class SSL{static[a164h(0x166)](a){const i=a164h,b=a['cwd']?a['cwd']:process[i(0x167)](),c=[i(0x16d),i(0x15b),i(0x15d),i(0x164),i(0x14e),i(0x152),a[i(0x16f)],i(0x15c),a[i(0x15a)]];a[i(0x155)]&&(c[i(0x157)]('-config'),c[i(0x157)](i(0x158))),a['useConfig']?spawnSync(i(0x15e),c,{'cwd':b}):spawnSync('openssl',c,{'stdio':i(0x16b),'cwd':b});}static[a164h(0x165)](a){const j=a164h,b=a[j(0x167)]?a[j(0x167)]:process[j(0x167)](),c=[j(0x16d),j(0x14d),'-new',j(0x14c),a[j(0x16f)],j(0x15c),a[j(0x161)]];a['useConfig']&&(c[j(0x157)](j(0x159)),c[j(0x157)](j(0x158))),a['useConfig']?spawnSync(j(0x15e),c,{'cwd':b}):spawnSync(j(0x15e),c,{'stdio':j(0x16b),'cwd':b});}}function a164d(a,b){const c=a164c();return a164d=function(d,e){d=d-0x14b;let f=c[d];return f;},a164d(a,b);}function a164c(){const k=['82OAqmMg','useConfig','9TsrAtp','push','openssl.conf','-config','csrName','-new','-out','-newkey','openssl','18778LeIsnZ','toString','crtName','11vpavJN','constructor','rsa:2048','genSSC','genCSR','cwd','6jUqoml','2136490KTtIys','567355QFJneK','inherit','6196666rRQEkL','req','(((.+)+)+)+$','keyName','search','-key','-x509','-nodes','636632liPVGJ','6276480IRYZDv','98004aVVBCB','-keyout','20iZoAJg'];a164c=function(){return k;};return a164c();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.0.29",
3
+ "version": "5.0.31",
4
4
  "type": "module",
5
5
  "summary": "A command line tool for scaffolding Meteor 2.x applications using either React.",
6
6
  "description": "A command line tool for scaffolding Meteor 2.x applications using React.",
@@ -38,6 +38,7 @@
38
38
  "@aws-sdk/client-ecr": "^3.637.0",
39
39
  "@aws-sdk/client-route-53": "^3.637.0",
40
40
  "@aws-sdk/client-route-53-domains": "^3.637.0",
41
+ "@babel/eslint-parser": "^7.25.9",
41
42
  "@inquirer/prompts": "^5.3.8",
42
43
  "@maka/tar": "^6.2.2",
43
44
  "blessed": "^0.1.81",
@@ -1,54 +0,0 @@
1
- {
2
- "env": {
3
- "browser": true,
4
- "es2021": true,
5
- "node": true
6
- },
7
- "extends": [
8
- "airbnb",
9
- "eslint:recommended",
10
- "plugin:react/recommended"
11
- ],
12
- "overrides": [
13
- ],
14
- "parserOptions": {
15
- "ecmaVersion": "latest",
16
- "sourceType": "module"
17
- },
18
- "plugins": [
19
- "react",
20
- "css"
21
- ],
22
- "rules": {
23
- "react/prop-types": "off",
24
- "import/no-absolute-path": "off",
25
- "func-style": "off",
26
- "prefer-arrow-callback": "off",
27
- "import/prefer-default-export": "off",
28
- "import/extensions": "off",
29
- "react/static-property-placement": "off",
30
- "import/no-unresolved": "off",
31
- "max-len": "off",
32
- "react/no-unescaped-entities": "off",
33
- "jsx-a11y/anchor-is-valid": "off",
34
- "func-names": "off",
35
- "react/destructuring-assignment": "off",
36
- "react/jsx-no-useless-fragment": "off"
37
-
38
- },
39
- "ignorePatterns": ["**/*.css", "**/*.scss", "**/*.app-tests.*", "**/*.tests.*"],
40
- "settings": {
41
- "react": {
42
- "createClass": "createReactClass",
43
- "pragma": "React",
44
- "fragment": "Fragment",
45
- "version": "detect"
46
- },
47
- "import/resolver": {
48
- "node": {
49
- "paths": ["app"],
50
- "extensions": [".js", ".jsx", ".ts", ".tsx"]
51
- }
52
- }
53
- }
54
- }