@maka/maka-cli 5.0.43 → 5.1.0

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 (169) hide show
  1. package/bundle/obf/package.json +25 -25
  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/_index.js +1 -1
  100. package/bundle/obf/src/commands/test/jest.sub.cmd.js +1 -1
  101. package/bundle/obf/src/commands/test/mocha.sub.cmd.js +1 -1
  102. package/bundle/obf/src/commands/test/test.command.js +1 -1
  103. package/bundle/obf/src/commands/undo.js +1 -1
  104. package/bundle/obf/src/commands/version.js +1 -1
  105. package/bundle/obf/src/error.js +1 -1
  106. package/bundle/obf/src/exec.js +1 -1
  107. package/bundle/obf/src/generator.js +1 -1
  108. package/bundle/obf/src/generators/_index.js +1 -1
  109. package/bundle/obf/src/generators/api.js +1 -1
  110. package/bundle/obf/src/generators/aws/_index.js +1 -1
  111. package/bundle/obf/src/generators/aws/aws.js +1 -1
  112. package/bundle/obf/src/generators/aws/cloudformation/_index.js +1 -1
  113. package/bundle/obf/src/generators/aws/cloudformation/cloudformation.js +1 -1
  114. package/bundle/obf/src/generators/aws/cloudformation/create-ec2-instance.cf.gen.js +1 -1
  115. package/bundle/obf/src/generators/collection.js +1 -1
  116. package/bundle/obf/src/generators/component.js +1 -1
  117. package/bundle/obf/src/generators/config.js +1 -1
  118. package/bundle/obf/src/generators/dbc.js +1 -1
  119. package/bundle/obf/src/generators/dockerfile.js +1 -1
  120. package/bundle/obf/src/generators/hook.js +1 -1
  121. package/bundle/obf/src/generators/kits/_index.js +1 -1
  122. package/bundle/obf/src/generators/kits/auth/_index.js +1 -1
  123. package/bundle/obf/src/generators/kits/auth/auth.generator.js +1 -1
  124. package/bundle/obf/src/generators/kits/auth/basic-meteor.auth.gen.js +1 -1
  125. package/bundle/obf/src/generators/kits/auth/provider.auth.gen.js +1 -1
  126. package/bundle/obf/src/generators/kits/esri/_index.js +1 -1
  127. package/bundle/obf/src/generators/kits/esri/esri.generator.js +1 -1
  128. package/bundle/obf/src/generators/kits/esri/map.esri.gen.js +1 -1
  129. package/bundle/obf/src/generators/kits/kit.js +1 -1
  130. package/bundle/obf/src/generators/kits/mui/_index.js +1 -1
  131. package/bundle/obf/src/generators/kits/mui/auth.mui.gen.js +1 -1
  132. package/bundle/obf/src/generators/kits/mui/frame.mui.gen.js +1 -1
  133. package/bundle/obf/src/generators/kits/mui/mui.generator.js +1 -1
  134. package/bundle/obf/src/generators/layout.js +1 -1
  135. package/bundle/obf/src/generators/maka.gen.js +1 -1
  136. package/bundle/obf/src/generators/methods.js +1 -1
  137. package/bundle/obf/src/generators/package.js +1 -1
  138. package/bundle/obf/src/generators/page.js +1 -1
  139. package/bundle/obf/src/generators/publish.js +1 -1
  140. package/bundle/obf/src/generators/route.js +1 -1
  141. package/bundle/obf/src/generators/service.js +1 -1
  142. package/bundle/obf/src/generators/services/_index.js +1 -1
  143. package/bundle/obf/src/generators/services/openssl.js +1 -1
  144. package/bundle/obf/src/generators/services/translation.js +1 -1
  145. package/bundle/obf/src/maka.js +1 -1
  146. package/bundle/obf/src/tool.js +1 -1
  147. package/bundle/obf/src/tools/actions/actions.class.js +1 -1
  148. package/bundle/obf/src/tools/aws/aws.class.js +1 -1
  149. package/bundle/obf/src/tools/aws/aws.interfaces.js +1 -1
  150. package/bundle/obf/src/tools/cfg/cfg.class.js +1 -1
  151. package/bundle/obf/src/tools/docker/docker.class.js +1 -1
  152. package/bundle/obf/src/tools/docker/docker.interfaces.js +1 -1
  153. package/bundle/obf/src/tools/fsi/fsi.class.js +1 -1
  154. package/bundle/obf/src/tools/fsi/fsi.interfaces.js +1 -1
  155. package/bundle/obf/src/tools/https/https.class.js +1 -1
  156. package/bundle/obf/src/tools/https/https.interface.js +1 -1
  157. package/bundle/obf/src/tools/log/log.class.js +1 -1
  158. package/bundle/obf/src/tools/log/log.interfaces.js +1 -1
  159. package/bundle/obf/src/tools/mpi/mpi.class.js +1 -1
  160. package/bundle/obf/src/tools/options/options.class.js +1 -1
  161. package/bundle/obf/src/tools/pkg/pkg.class.js +1 -1
  162. package/bundle/obf/src/tools/progress/progress.class.js +1 -1
  163. package/bundle/obf/src/tools/scaffold/scaffold.class.js +1 -1
  164. package/bundle/obf/src/tools/spawn-async/spawn-async.class.js +1 -1
  165. package/bundle/obf/src/tools/spawn-async/spawn-async.interfaces.js +1 -1
  166. package/bundle/obf/src/tools/ssh/ssh.class.js +1 -1
  167. package/bundle/obf/src/tools/ssh/ssh.interfaces.js +1 -1
  168. package/bundle/obf/src/tools/ssl/ssl.class.js +1 -1
  169. package/package.json +25 -25
@@ -1 +1 @@
1
- const a162y=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=-parseInt(v(0x104))/0x1*(-parseInt(v(0xed))/0x2)+parseInt(v(0x149))/0x3+parseInt(v(0x12a))/0x4*(-parseInt(v(0x10c))/0x5)+parseInt(v(0xe7))/0x6+-parseInt(v(0xee))/0x7*(parseInt(v(0x10a))/0x8)+-parseInt(v(0x13d))/0x9+parseInt(v(0x13e))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xbd6f9));const a162b=(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;};}()),a162a=a162b(this,function(){const w=a162d;return a162a[w(0x16c)]()[w(0x107)]('(((.+)+)+)+$')[w(0x16c)]()[w(0x188)](a162a)[w(0x107)]('(((.+)+)+)+$');});a162a();import a162e from'path';import a162f from'fs';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xe7;let f=c[d];return f;},a162d(a,b);}import a162g from'util';import{exec}from'child_process';import a162h from'delete';import a162i from'ejs';function a162c(){const a5=['injectAfterLineNumber','slice','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','verbose','relative','2044836EbCrAi','6433670aJKmRE','forEach','createDirectory','injectTemplateModule()','fsi','\x20from','isDirectory','png','rewriteDestinationPathForEngine','[\x5cs\x5cS]*?)(','engines','2747232ftZxMd','reduce','.git','concat','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','rewriteDestinationPathForEngine()','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','includes','release','trim','injectAtBeginningOfFile','keys','indexOf','sep','While\x20injecting\x20','rewriteSourcePathForEngine','readdirSync','engineAndTypeFromfilePath','import\x20','type','getInstance','\x20doesn\x27t\x20exist','export\x20{\x20','.tsx','injectAtEndOfFile()','createFile','pathFromAppWithNoReWrite','createEmptyMeteorProject','message','lib','.js.ts','exit','No\x20app\x20directory\x20found','copyTemplateDirectory','toString','detectIndentation','.meteor','isTemplateForEngine','fileContainsString','injectAtEndOfFile','from','scss','No\x20pathParts\x20option\x20provided','pathFromApp()','\x20create\x20','Dockerfile','isFile','existsSync','map','injectIntoCodeBlock','No\x20matching\x20section\x20found.','env','imports','True','pop','from\x20\x27','Directory\x20','splice','MAKA_COMMAND_PATH','writeFileSync','MAKA_DEV','pathFromAppWithNoReWrite()','constructor','File\x20not\x20found:\x20','engine','utf8','cwd','template()','rewriteDestinationPathForType','match','6924174LOMLKl','injectImport','stringify','adjustIndentation','.jsx','engineAndTypeFromfilePath()','886916NyOojM','403795ajdiFw','template','calculateMode','--release\x20','import\x20{\x20','\x20}\x20from\x20\x27','injectAroundString()','src/templates/','.js.tsx','tsx','startup','rewriteSourcePathForEngine()','error','endsWith','jsx','No\x20file\x20found\x20at\x20path\x20','test','rewriteDestinationPathForType()','injectAroundString','findAppDirectory','length','ico','1kDrvRq','isArray','repeat','search','writeSourcePath','noRename','136gXAteT','html','8885NWqFjz','injectIntoFile','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','meteor','push','replace','injectIntoFile()','mpi','header','join','getCommonIndentSize','.js.jsx','\x5cS*$','\x20->','less','templateContent','platform','readFileSync','warn','.js','render','templates','Looking\x20for\x20','some','Error\x20in\x20','injectAfterLineNumber()','css','\x20updated\x20file\x20','templateContent()','alpha','2640XEvCJr','Error\x20in\x20injectIntoCodeBlock:\x20','split','yaml','startsWith','normalize','pathFromTemplates','copyTemplateDirectory()','pathFromApp','instance','win32','\x27;\x0a','isTemplateForEngine()','ssr'];a162c=function(){return a5;};return a162c();}import{pascalCase}from'change-case';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const x=a162d;process[x(0x17d)][x(0x186)]===x(0x17f)&&Log[x(0xfa)](x(0x124)+a),b&&console['error'](b);},isWin=process[a162y(0x11c)]===a162y(0x134),treeSymbol=isWin?a162y(0x119):'\x20┗';export class Scaffold{static [a162y(0x133)];['fsi'];['mpi'];constructor(a,b){const z=a162y;this[z(0x142)]=a,this[z(0x113)]=b;}static[a162y(0x15e)](a,b){const A=a162y;return!Scaffold['instance']&&(Scaffold[A(0x133)]=new Scaffold(a,b)),Scaffold[A(0x133)];}async[a162y(0x165)](a,b){const B=a162y;b['cwd']=b['cwd']||'.';const c=a162e['join'](b[B(0x18c)],a),d=a162e[B(0x115)](c,B(0x16e));if(this[B(0x142)]['isDirectory'](d))throw new Error('Meteor\x20project\x20already\x20exists\x20at\x20'+JSON[B(0xe9)](c));const e='--minimal',f=a162e['join'](b[B(0x18c)]),g=a162g['promisify'](exec),h=b['release']?B(0xf1)+b[B(0x152)]:'';b['release']&&b['release']['includes'](B(0x129))&&(Log['warn']('Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'+b[B(0x152)]),Log[B(0x11e)](B(0x14e)));try{await g(this[B(0x113)][B(0x10f)]+B(0x176)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[B(0xfa)]('\x0a'+k[B(0x166)]);throw k;}const i=a162e[B(0x115)](f,a);if(!a162f[B(0x179)](i))throw new Error(B(0x182)+i+B(0x15f));const j=a162f[B(0x15a)](i);for(const l of j){if(l!==B(0x14b)&&l!==B(0x16e)){const m=a162e['join'](i,l);await a162h(m,{'force':!![]});}}}[a162y(0x15b)]({filePath:a}){const C=a162y;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a['match'](b);c=c&&c[0x0][C(0x12c)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c['pop'](),f=c[C(0x180)]()||d;if(d)d=d[C(0x111)]('.','');if(f)f=f[C(0x111)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(C(0xec),g),process[C(0x169)](0x1);}}[a162y(0x18e)]({pathParts:a,config:b}){const D=a162y;try{const c=a[D(0x115)](a162e[D(0x157)]),d=this[D(0x15b)]({'filePath':c})[D(0x15d)],f=b?.[D(0x148)][d],g=new RegExp('\x5c.'+d+D(0x118));return!d||!f?c:c[D(0x111)](g,'.'+d);}catch(h){errorHandler(D(0xff),h),process[D(0x169)](0x1);}}[a162y(0x16f)]({pathParts:a,config:b}){const E=a162y;try{if(!b)throw new Error('No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.');const c=a[E(0x115)](a162e[E(0x157)]),d=this[E(0x15b)]({'filePath':c});if(!d[E(0x15d)]||!d[E(0x18a)])return!![];const f=b[E(0x148)][d[E(0x15d)]];if(!f)return!![];return f===d[E(0x18a)];}catch(g){errorHandler(E(0x136),g),process['exit'](0x1);}}['writeSourcePath']({pathParts:pathParts=[]}){const F=a162y;return pathParts['join'](a162e[F(0x157)]);}['rewriteDestinationPathForEngine']({pathParts:pathParts=[],config:a}){const G=a162y;try{const b=pathParts[G(0x115)](a162e[G(0x157)]),c=this[G(0x15b)]({'filePath':b})['type'],d=a?.['engines'][c],f=new RegExp('\x5c.'+c+G(0x118));return!c||!d?b:b[G(0x111)](f,'.'+d);}catch(g){errorHandler(G(0x14f),g),process[G(0x169)](0x1);}}[a162y(0x159)]({pathParts:pathParts=[],framework:framework='meteor',config:a}){const H=a162y;try{const b=a162e[H(0x12f)](pathParts[H(0x115)](a162e['sep']));if(!b[H(0xfb)](H(0x11f)))return b;const c='js';if(!a?.['engines']||!a?.[H(0x148)][c])return b;const d=a['engines'][c],f=d==='tsx'?[H(0xf6),H(0x168),'.js']:[H(0x117),H(0x11f)];for(const g of f){const h=b['replace'](/\.js$/,g),i=a162e[H(0x115)](H(0x121),framework,h),j=a162e[H(0x12f)](a162e[H(0x115)](global[H(0x184)],i));if(a162f['existsSync'](j))return h;}return b;}catch(k){errorHandler(H(0xf9),k),process['exit'](0x1);}}[a162y(0x130)]({pathParts:a,framework:framework='meteor',config:b}){const I=a162y;try{const c=this[I(0x159)]({'pathParts':a,'framework':framework,'config':b}),d=a162e['join'](I(0xf5)+framework,c),f=a162e[I(0x115)](global['MAKA_COMMAND_PATH'],'..',d);return f;}catch(g){errorHandler('pathFromTemplates()',g),process[I(0x169)](0x1);}}[a162y(0x11b)]({srcPath:a,context:b,framework:c,config:d}){const J=a162y;try{let f=this['pathFromTemplates']({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[J(0x15b)]({'filePath':f}),h=[J(0x126),J(0x173),J(0x11a),J(0x10b),'js',J(0xfc),'ts','tsx','json','env',J(0x12d),J(0xef)],i=['png',J(0x103)];if(!this[J(0x142)][J(0x178)](f)){g===J(0xfc)&&(f=f['replace'](J(0xeb),''));g===J(0xf7)&&(f=f[J(0x111)](J(0x161),''));if(!this[J(0x142)]['isFile'](f))throw new Error(J(0x13a)+JSON['stringify'](f));}const j=f['split']('.'),k=a162e['normalize'](f)[J(0x12c)](a162e['sep']),l=k[k['length']-0x1]===J(0x177),m=i[J(0x151)](j[j[J(0x102)]-0x1]),n=a162f['readFileSync'](f);if(l)return a162i[J(0x120)](n[J(0x16c)](),b)[J(0x153)]();if(m)return Buffer[J(0x172)](n)[J(0x16c)]('base64');if(!h['includes'](j[j[J(0x102)]-0x1]))return n[J(0x16c)]()[J(0x153)]();return a162i[J(0x120)](n['toString'](),b||{})['trim']();}catch(o){errorHandler(J(0x128),o),process[J(0x169)](0x1);}}async[a162y(0xef)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const K=a162y;try{const g=[K(0x145),K(0x103)],h=g[K(0x151)](a[K(0x12c)]('.')[K(0x180)]()||''),i=this[K(0x11b)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[K(0x109)]?b=this[K(0x18e)]({'pathParts':[b],'config':d}):b=this[K(0x146)]({'pathParts':[b],'config':d});const j=await this[K(0x142)][K(0x163)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(K(0x18d),k),process[K(0x169)](0x1);}}async['copyTemplateDirectory']({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const L=a162y;try{const i=this[L(0x130)]({'pathParts':[a],'framework':g,'config':h}),j=this[L(0x130)]({'pathParts':[],'framework':g,'config':h}),k=n=>{return n['replace'](j,'');},l=n=>{const M=L;return n[M(0x111)](i,b);};await this[L(0x142)][L(0x140)]({'dirPath':b});const m=a162f[L(0x15a)](i);for(const n of m){try{const o=a162e['join'](i,n),p=k(o),q=l(o),r=d[L(0x17a)](t=>a162e['normalize'](t)),s=a162e['normalize'](a162e['join'](a,n));if(r['includes'](s))continue;if(this[L(0x142)][L(0x144)](o))await this[L(0x16b)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[L(0x142)][L(0x178)](o)&&this['isTemplateForEngine']({'pathParts':[o],'config':h}))await this[L(0xef)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[L(0x156)](a162e[L(0x115)](a,n))>=0x0&&this[L(0x142)][L(0x178)](o)&&(c['noRename']=!![],await this[L(0xef)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[L(0x109)]=![]);}}catch(t){console[L(0xfa)](t),process[L(0x169)](0x1);}}}catch(u){errorHandler(L(0x131),u),process[L(0x169)](0x1);}}async[a162y(0x154)]({filePath:a,content:b,opts:c}){const N=a162y;if(!a)throw new Error(N(0x10e));try{!this[N(0x142)][N(0x178)](a)&&await this[N(0x142)]['createFile']({'filePath':a,'data':b});let d=a162f[N(0x11d)](a,N(0x18b));d=b+'\x0a'+d,a162f[N(0x185)](a,d),c?.[N(0x13b)]&&Log[N(0x114)](treeSymbol+'\x20updated\x20file\x20'+a162e[N(0x13c)](process['cwd'](),a));}catch(f){errorHandler('injectAtBeginningOfFile()',f),process[N(0x169)](0x1);}}async[a162y(0x171)]({filePath:a,content:b,opts:c}){const O=a162y;try{if(!this[O(0x142)][O(0x178)](a))await this[O(0x142)][O(0x163)]({'filePath':a,'data':b});else{let d=a162f[O(0x11d)](a,O(0x18b));!d[O(0x151)](b)&&(d=d+'\x0a'+b,a162f[O(0x185)](a,d)),c?.[O(0x13b)]&&Log['header'](treeSymbol+O(0x127)+a162e[O(0x13c)](process[O(0x18c)](),a));}}catch(f){errorHandler(O(0x162),f),process[O(0x169)](0x1);}}async[a162y(0x100)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const P=a162y;try{if(!this[P(0x142)][P(0x178)](a))throw Log['error'](P(0xfd)+JSON[P(0xe9)](a));const f=a162f['readFileSync'](a,'utf8'),g=f['replace'](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[P(0x16d)](h),k=b[P(0x111)](/\r\n|\r/g,'\x0a')[P(0x12c)]('\x0a'),l=c[P(0x111)](/\r\n|\r/g,'\x0a')[P(0x12c)]('\x0a'),m=new RegExp(Array['isArray'](d)?d[P(0x115)]('|'):d,'i'),n=[];for(let p=0x0;p<h[P(0x102)];p++){const q=h[p];if(m[P(0xfe)](q)){const r=this[P(0xea)](j,targetIndentAdjustment),s=r+q[P(0x153)]();k[P(0x13f)](t=>{const Q=P;!g[Q(0x151)](t['trim']())&&n[Q(0x110)](this[Q(0xea)](j,indentAdjustment)+t);}),n[P(0x110)](s),l[P(0x13f)](t=>{const R=P;!g[R(0x151)](t[R(0x153)]())&&n[R(0x110)](this[R(0xea)](j,indentAdjustment)+t);});}else n[P(0x110)](q);}const o=n[P(0x115)]('\x0a');a162f[P(0x185)](a,o),Log['header'](treeSymbol+P(0x127)+a162e['relative'](process[P(0x18c)](),a));}catch(t){errorHandler(P(0xf4),t),process[P(0x169)](0x1);}}[a162y(0xea)](a,b){const S=a162y;if(b===0x0)return a;const c=a[S(0x102)]+b;return c>0x0?a[0x0][S(0x106)](c):'';}['detectIndentation'](a){const T=a162y;let b=0x0,c=0x0;a[T(0x13f)](f=>{const U=T;if(f[U(0x12e)]('\x20'))b++;else f[U(0x12e)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[T(0x116)](a,d);return d[T(0x106)](e);}[a162y(0x116)](a,b){const V=a162y,c=a['filter'](d=>d&&d[V(0x12e)](b))[V(0x17a)](d=>{const W=V,e=d[W(0x18f)](new RegExp('^'+b+'+'));return e?e[0x0][W(0x102)]:0x0;});if(c[V(0x102)]===0x0)return 0x0;return this[V(0xf0)](c);}[a162y(0xf0)](a){const X=a162y,b=a[X(0x14a)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[X(0x155)](b)['reduce']((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162y(0x17b)]({filePath:a,content:b,begin:c,replace:replace=![]}){const Y=a162y;try{if(!this[Y(0x142)][Y(0x178)](a))throw new Error(Y(0x189)+a);const d=a162f[Y(0x11d)](a,Y(0x18b)),f=d[Y(0x12c)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[Y(0x105)](c)?c:[c];for(let o=0x0;o<f['length'];o++){const p=f[o];k&&p[Y(0x151)]('{')&&j++;if(m[Y(0x123)](q=>p[Y(0x151)](q))){g=o,k=!![],j++;continue;}if(k){p[Y(0x151)](b['trim']())&&(l=!![]);if(p[Y(0x151)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Y(0xfa)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log['error'](Y(0x158)+b),Log[Y(0xfa)](Y(0x122)+c);throw new Error(Y(0x14d));}if(l)return;let n=f[Y(0x139)](0x0,g+0x1);replace?(n[Y(0x110)](b[Y(0x153)]()),n[Y(0x110)](f[h])):(n=n[Y(0x14c)](f[Y(0x139)](g+0x1,h)),n['push'](b[Y(0x153)]())),n=n[Y(0x14c)](f[Y(0x139)](h+0x1)),a162f[Y(0x185)](a,n[Y(0x115)]('\x0a'),Y(0x18b));}catch(q){console[Y(0xfa)](Y(0x12b),q);throw q;}}async[a162y(0x10d)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const Z=a162y;try{const g=await this[Z(0x142)][Z(0x170)](a,c);if(g)return;if(!this['fsi'][Z(0x178)](a))throw Log[Z(0xfa)](Z(0x150)+JSON[Z(0xe9)](a));const h=a162f['readFileSync'](a,'utf8');if(!Array['isArray'](d))d=[d];if(!Array[Z(0x105)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+Z(0x147)+l+')','i');i=h[Z(0x111)](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(Z(0x17c));a162f[Z(0x185)](a,i),Log[Z(0x114)](treeSymbol+Z(0x127)+a162e['relative'](process[Z(0x18c)](),a));}catch(n){errorHandler(Z(0x112),n),process[Z(0x169)](0x1);}}async[a162y(0xe8)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a0=a162y;try{const f=a162f[a0(0x11d)](a,a0(0x18b));let g;d?g=a0(0xf2)+b+'\x20}\x20from\x20\x27'+c+a0(0x135):g=a0(0x15c)+b+'\x20from\x20\x27'+c+a0(0x135);const h=f['split']('\x0a');let j=0x0,k=![];for(const m of h){if(m[a0(0x151)](a0(0x181)+c+'\x27')||m[a0(0x151)]('from\x20\x22'+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a0(0x15c)+b+a0(0x143));if(m[a0(0x18f)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a0(0x102)];o++){if(h[o][a0(0x18f)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a0(0x102)];p++){h[p]['match'](/^import .* from .*;$/)&&(j=p);}j++;}h[a0(0x183)](j,0x0,g);const l=h[a0(0x115)]('\x0a');a162f[a0(0x185)](a,l,a0(0x18b));}catch(q){errorHandler('injectImport()',q),process[a0(0x169)](0x1);}}async['injectTemplateModule'](a,b,c){const a1=a162y;try{let d;b['engines'][a1(0x137)]!=='none'?d=this[a1(0x132)]({'pathParts':['imports',a1(0xf8),a1(0x167),'templates.js'],'config':b}):d=this['pathFromApp']({'pathParts':[a1(0x17e),a1(0xf8),'client','templates.js'],'config':b});const f=this['rewriteDestinationPathForEngine']({'pathParts':[d],'config':b}),g=a1(0x160)+pascalCase(a)+a1(0xf3)+c+'\x27;',h=await this[a1(0x142)]['fileContainsString'](f,g);!h&&this[a1(0x171)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a1(0x141),i),process[a1(0x169)](0x1);}}[a162y(0x138)]({filePath:a,content:b,lineNumber:c}){const a2=a162y;try{const d=a162f['readFileSync'](a)['toString']()[a2(0x12c)]('\x0a');d[a2(0x183)](c,0x0,b);const f=d[a2(0x115)]('\x0a');a162f['writeFileSync'](a,f);}catch(g){errorHandler(a2(0x125),g),process[a2(0x169)](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a3=a162y;try{if(!a)throw new Error(a3(0x174));const c=this[a3(0x159)]({'pathParts':a,'config':b}),d=this['fsi']['findAppDirectory']();return d?a162e['join'](d,c):'';}catch(f){errorHandler(a3(0x175),f),process[a3(0x169)](0x1);}}[a162y(0x164)]({pathParts:a,config:b}){const a4=a162y;try{const c=this[a4(0x108)]({'pathParts':a,'config':b}),d=this[a4(0x142)][a4(0x101)]();if(!d)throw new Error(a4(0x16a));return a162e['join'](d,c);}catch(f){errorHandler(a4(0x187),f),process[a4(0x169)](0x1);}}}
1
+ const a162z=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=-parseInt(v(0x162))/0x1+parseInt(v(0x111))/0x2*(parseInt(v(0xc5))/0x3)+parseInt(v(0xd2))/0x4+parseInt(v(0x12b))/0x5+parseInt(v(0x108))/0x6*(parseInt(v(0x11c))/0x7)+-parseInt(v(0x10e))/0x8*(-parseInt(v(0xc1))/0x9)+-parseInt(v(0xf5))/0xa*(parseInt(v(0x15e))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0x23dd2));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a162d;if(c){const e=c[w(0xd3)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const x=a162d;return a162a[x(0xcc)]()[x(0x15f)](x(0x126))[x(0xcc)]()[x(0x10d)](a162a)[x(0x15f)](x(0x126));});a162a();import a162e from'path';import a162f from'fs';import a162g from'util';import{exec}from'child_process';import a162h from'delete';import a162i from'ejs';import{pascalCase}from'change-case';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xc0;let f=c[d];return f;},a162d(a,b);}import{Log}from'../log/log.class.js';function a162c(){const a7=['concat','forEach','MAKA_DEV','createFile','findAppDirectory','Looking\x20for\x20','verbose','match','test','(((.+)+)+)+$','[\x5cs\x5cS]*?)(','No\x20matching\x20section\x20found.','.git','createDirectory','1278470seltnt','templates.js','readdirSync','render','calculateMode','rewriteDestinationPathForType()','fileContainsString','readFileSync','\x5cS*$','import\x20{\x20','less','includes','exit','engine','png','import\x20','\x27;\x0a','none','yaml','isDirectory','.tsx','css','message','.meteor','injectAfterLineNumber()','existsSync','template()','rewriteDestinationPathForEngine','tsx','noRename','engineAndTypeFromfilePath()','templates','error','\x20updated\x20file\x20','stringify','True','While\x20injecting\x20','normalize','platform','MAKA_COMMAND_PATH','endsWith','relative','jsx','injectAtBeginningOfFile','rewriteSourcePathForEngine','.js.ts','injectAtBeginningOfFile()','ssr','pathFromTemplates()','fsi','writeSourcePath','11eQKbbu','search','startsWith','injectIntoCodeBlock','161181dVPDCr','\x20->','filter','sep','length','split','client','join','4509dBRuvy','isArray','replace','injectIntoFile()','3NtlVtu','release','template','trim','base64','isTemplateForEngine','--release\x20','toString','reduce','getInstance','splice','--minimal','adjustIndentation','693916wkZYUk','apply','from\x20\x22','No\x20app\x20directory\x20found','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','header','rewriteSourcePathForEngine()','scss','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','injectAroundString()','Meteor\x20project\x20already\x20exists\x20at\x20','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','pathFromApp','createEmptyMeteorProject','src/templates/','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','slice','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','warn','\x20doesn\x27t\x20exist','No\x20file\x20found\x20at\x20path\x20','.js.tsx','templateContent','copyTemplateDirectory','from\x20\x27','rewriteDestinationPathForType','injectIntoFile','instance','startup','Error\x20in\x20injectIntoCodeBlock:\x20','some','type','Directory\x20','writeFileSync','No\x20pathParts\x20option\x20provided','4598890CgEVlJ','keys','pop','injectAtEndOfFile','injectImport()','env','utf8','map','injectAroundString','isTemplateForEngine()','injectTemplateModule()','\x20create\x20','copyTemplateDirectory()','pathFromTemplates','engines','rewriteDestinationPathForEngine()','\x20from\x20\x27','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','win32','3492NWeToa','detectIndentation','isFile','mpi','from','constructor','2912txxTHm','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','File\x20not\x20found:\x20','32338nuhDrW','templateContent()','imports','html','lib','getCommonIndentSize','.js','engineAndTypeFromfilePath','pathFromAppWithNoReWrite','push','cwd','1687sSqTxz'];a162c=function(){return a7;};return a162c();}const errorHandler=(a,b)=>{const y=a162d;process['env'][y(0x11f)]===y(0x14e)&&Log[y(0x14b)]('Error\x20in\x20'+a),b&&console['error'](b);},isWin=process[a162z(0x151)]===a162z(0x107),treeSymbol=isWin?a162z(0x163):'\x20┗';export class Scaffold{static [a162z(0xed)];['fsi'];[a162z(0x10b)];constructor(a,b){const A=a162z;this['fsi']=a,this[A(0x10b)]=b;}static[a162z(0xce)](a,b){const B=a162z;return!Scaffold['instance']&&(Scaffold[B(0xed)]=new Scaffold(a,b)),Scaffold[B(0xed)];}async[a162z(0xdf)](a,b){const C=a162z;b['cwd']=b[C(0x11b)]||'.';const c=a162e['join'](b['cwd'],a),d=a162e['join'](c,C(0x142));if(this[C(0x15c)][C(0x13e)](d))throw new Error(C(0xdc)+JSON['stringify'](c));const e=C(0xd0),f=a162e[C(0xc0)](b[C(0x11b)]),g=a162g['promisify'](exec),h=b[C(0xc6)]?C(0xcb)+b[C(0xc6)]:'';b['release']&&b['release'][C(0x136)]('alpha')&&(Log[C(0xe4)]('Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'+b['release']),Log['warn'](C(0xdd)));try{await g(this[C(0x10b)]['meteor']+C(0x100)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x14b)]('\x0a'+k[C(0x141)]);throw k;}const i=a162e[C(0xc0)](f,a);if(!a162f['existsSync'](i))throw new Error(C(0xf2)+i+C(0xe5));const j=a162f['readdirSync'](i);for(const l of j){if(l!==C(0x129)&&l!==C(0x142)){const m=a162e[C(0xc0)](i,l);await a162h(m,{'force':!![]});}}}[a162z(0x118)]({filePath:a}){const D=a162z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x124)](b);c=c&&c[0x0][D(0x167)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0xf7)](),f=c[D(0xf7)]()||d;if(d)d=d['replace']('.','');if(f)f=f[D(0xc3)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x149),g),process[D(0x137)](0x1);}}[a162z(0xeb)]({pathParts:a,config:b}){const E=a162z;try{const c=a['join'](a162e[E(0x165)]),d=this[E(0x118)]({'filePath':c})['type'],f=b?.[E(0x103)][d],g=new RegExp('\x5c.'+d+'\x5cS*$');return!d||!f?c:c[E(0xc3)](g,'.'+d);}catch(h){errorHandler(E(0x130),h),process[E(0x137)](0x1);}}[a162z(0xca)]({pathParts:a,config:b}){const F=a162z;try{if(!b)throw new Error(F(0xe3));const c=a[F(0xc0)](a162e[F(0x165)]),d=this[F(0x118)]({'filePath':c});if(!d[F(0xf1)]||!d['engine'])return!![];const f=b[F(0x103)][d[F(0xf1)]];if(!f)return!![];return f===d[F(0x138)];}catch(g){errorHandler(F(0xfe),g),process[F(0x137)](0x1);}}[a162z(0x15d)]({pathParts:pathParts=[]}){const G=a162z;return pathParts[G(0xc0)](a162e[G(0x165)]);}[a162z(0x146)]({pathParts:pathParts=[],config:a}){const H=a162z;try{const b=pathParts[H(0xc0)](a162e['sep']),c=this[H(0x118)]({'filePath':b})['type'],d=a?.['engines'][c],f=new RegExp('\x5c.'+c+H(0x133));return!c||!d?b:b['replace'](f,'.'+d);}catch(g){errorHandler(H(0x104),g),process[H(0x137)](0x1);}}[a162z(0x157)]({pathParts:pathParts=[],framework:framework='meteor',config:a}){const I=a162z;try{const b=a162e[I(0x150)](pathParts['join'](a162e[I(0x165)]));if(!b[I(0x153)](I(0x117)))return b;const c='js';if(!a?.['engines']||!a?.[I(0x103)][c])return b;const d=a[I(0x103)][c],f=d===I(0x147)?[I(0xe7),I(0x158),I(0x117)]:['.js.jsx',I(0x117)];for(const g of f){const h=b[I(0xc3)](/\.js$/,g),i=a162e[I(0xc0)](I(0x14a),framework,h),j=a162e['normalize'](a162e[I(0xc0)](global[I(0x152)],i));if(a162f[I(0x144)](j))return h;}return b;}catch(k){errorHandler(I(0xd8),k),process[I(0x137)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework='meteor',config:b}){const J=a162z;try{const c=this[J(0x157)]({'pathParts':a,'framework':framework,'config':b}),d=a162e[J(0xc0)](J(0xe0)+framework,c),f=a162e[J(0xc0)](global[J(0x152)],'..',d);return f;}catch(g){errorHandler(J(0x15b),g),process[J(0x137)](0x1);}}[a162z(0xe8)]({srcPath:a,context:b,framework:c,config:d}){const K=a162z;try{let f=this['pathFromTemplates']({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this['engineAndTypeFromfilePath']({'filePath':f}),h=[K(0x140),K(0xd9),K(0x135),K(0x114),'js',K(0x155),'ts','tsx','json',K(0xfa),K(0x13d),K(0xc7)],i=[K(0x139),'ico'];if(!this['fsi'][K(0x10a)](f)){g===K(0x155)&&(f=f[K(0xc3)]('.jsx',''));g===K(0x147)&&(f=f['replace'](K(0x13f),''));if(!this[K(0x15c)][K(0x10a)](f))throw new Error(K(0xe1)+JSON[K(0x14d)](f));}const j=f[K(0x167)]('.'),k=a162e[K(0x150)](f)[K(0x167)](a162e['sep']),l=k[k[K(0x166)]-0x1]==='Dockerfile',m=i[K(0x136)](j[j[K(0x166)]-0x1]),n=a162f[K(0x132)](f);if(l)return a162i[K(0x12e)](n[K(0xcc)](),b)[K(0xc8)]();if(m)return Buffer[K(0x10c)](n)[K(0xcc)](K(0xc9));if(!h[K(0x136)](j[j[K(0x166)]-0x1]))return n['toString']()[K(0xc8)]();return a162i[K(0x12e)](n['toString'](),b||{})[K(0xc8)]();}catch(o){errorHandler(K(0x112),o),process[K(0x137)](0x1);}}async[a162z(0xc7)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a162z;try{const g=[L(0x139),'ico'],h=g[L(0x136)](a[L(0x167)]('.')['pop']()||''),i=this[L(0xe8)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x148)]?b=this[L(0xeb)]({'pathParts':[b],'config':d}):b=this[L(0x146)]({'pathParts':[b],'config':d});const j=await this[L(0x15c)][L(0x120)]({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x145),k),process[L(0x137)](0x1);}}async[a162z(0xe9)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a162z;try{const i=this[M(0x102)]({'pathParts':[a],'framework':g,'config':h}),j=this['pathFromTemplates']({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0xc3)](j,'');},l=n=>{const O=M;return n[O(0xc3)](i,b);};await this[M(0x15c)][M(0x12a)]({'dirPath':b});const m=a162f[M(0x12d)](i);for(const n of m){try{const o=a162e[M(0xc0)](i,n),p=k(o),q=l(o),r=d[M(0xfc)](t=>a162e[M(0x150)](t)),s=a162e[M(0x150)](a162e[M(0xc0)](a,n));if(r['includes'](s))continue;if(this['fsi']['isDirectory'](o))await this[M(0xe9)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi'][M(0x10a)](o)&&this['isTemplateForEngine']({'pathParts':[o],'config':h}))await this['template']({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f['indexOf'](a162e[M(0xc0)](a,n))>=0x0&&this[M(0x15c)][M(0x10a)](o)&&(c[M(0x148)]=!![],await this[M(0xc7)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c[M(0x148)]=![]);}}catch(t){console[M(0x14b)](t),process[M(0x137)](0x1);}}}catch(u){errorHandler(M(0x101),u),process[M(0x137)](0x1);}}async[a162z(0x156)]({filePath:a,content:b,opts:c}){const P=a162z;if(!a)throw new Error(P(0xda));try{!this[P(0x15c)]['isFile'](a)&&await this['fsi']['createFile']({'filePath':a,'data':b});let d=a162f[P(0x132)](a,P(0xfb));d=b+'\x0a'+d,a162f[P(0xf3)](a,d),c?.[P(0x123)]&&Log[P(0xd7)](treeSymbol+P(0x14c)+a162e[P(0x154)](process[P(0x11b)](),a));}catch(f){errorHandler(P(0x159),f),process[P(0x137)](0x1);}}async[a162z(0xf8)]({filePath:a,content:b,opts:c}){const Q=a162z;try{if(!this['fsi'][Q(0x10a)](a))await this['fsi'][Q(0x120)]({'filePath':a,'data':b});else{let d=a162f[Q(0x132)](a,Q(0xfb));!d['includes'](b)&&(d=d+'\x0a'+b,a162f['writeFileSync'](a,d)),c?.[Q(0x123)]&&Log[Q(0xd7)](treeSymbol+Q(0x14c)+a162e[Q(0x154)](process[Q(0x11b)](),a));}}catch(f){errorHandler('injectAtEndOfFile()',f),process[Q(0x137)](0x1);}}async[a162z(0xfd)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a162z;try{if(!this[R(0x15c)][R(0x10a)](a))throw Log[R(0x14b)](R(0xe6)+JSON[R(0x14d)](a));const f=a162f[R(0x132)](a,R(0xfb)),g=f[R(0xc3)](/\r\n|\r/g,'\x0a'),h=g[R(0x167)]('\x0a'),j=this[R(0x109)](h),k=b[R(0xc3)](/\r\n|\r/g,'\x0a')[R(0x167)]('\x0a'),l=c[R(0xc3)](/\r\n|\r/g,'\x0a')[R(0x167)]('\x0a'),m=new RegExp(Array['isArray'](d)?d[R(0xc0)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x166)];p++){const q=h[p];if(m[R(0x125)](q)){const r=this[R(0xd1)](j,targetIndentAdjustment),s=r+q['trim']();k['forEach'](t=>{const S=R;!g[S(0x136)](t[S(0xc8)]())&&n[S(0x11a)](this['adjustIndentation'](j,indentAdjustment)+t);}),n[R(0x11a)](s),l[R(0x11e)](t=>{const T=R;!g[T(0x136)](t[T(0xc8)]())&&n[T(0x11a)](this[T(0xd1)](j,indentAdjustment)+t);});}else n['push'](q);}const o=n[R(0xc0)]('\x0a');a162f[R(0xf3)](a,o),Log[R(0xd7)](treeSymbol+'\x20updated\x20file\x20'+a162e[R(0x154)](process[R(0x11b)](),a));}catch(t){errorHandler(R(0xdb),t),process[R(0x137)](0x1);}}['adjustIndentation'](a,b){const U=a162z;if(b===0x0)return a;const c=a[U(0x166)]+b;return c>0x0?a[0x0]['repeat'](c):'';}['detectIndentation'](a){const V=a162z;let b=0x0,c=0x0;a[V(0x11e)](f=>{const W=V;if(f[W(0x160)]('\x20'))b++;else f[W(0x160)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x116)](a,d);return d['repeat'](e);}[a162z(0x116)](a,b){const X=a162z,c=a[X(0x164)](d=>d&&d['startsWith'](b))[X(0xfc)](d=>{const Y=X,e=d[Y(0x124)](new RegExp('^'+b+'+'));return e?e[0x0][Y(0x166)]:0x0;});if(c[X(0x166)]===0x0)return 0x0;return this[X(0x12f)](c);}[a162z(0x12f)](a){const Z=a162z,b=a[Z(0xcd)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0xf6)](b)['reduce']((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162z(0x161)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a162z;try{if(!this[a0(0x15c)][a0(0x10a)](a))throw new Error(a0(0x110)+a);const d=a162f[a0(0x132)](a,a0(0xfb)),f=d['split']('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0xc2)](c)?c:[c];for(let o=0x0;o<f['length'];o++){const p=f[o];k&&p[a0(0x136)]('{')&&j++;if(m[a0(0xf0)](q=>p[a0(0x136)](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0x136)](b[a0(0xc8)]())&&(l=!![]);if(p[a0(0x136)]('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0x14b)](a0(0xd6)+a),Log['error'](a0(0x14f)+b),Log[a0(0x14b)](a0(0x122)+c);throw new Error(a0(0x10f));}if(l)return;let n=f[a0(0xe2)](0x0,g+0x1);replace?(n['push'](b[a0(0xc8)]()),n[a0(0x11a)](f[h])):(n=n[a0(0x11d)](f[a0(0xe2)](g+0x1,h)),n[a0(0x11a)](b[a0(0xc8)]())),n=n['concat'](f[a0(0xe2)](h+0x1)),a162f[a0(0xf3)](a,n['join']('\x0a'),a0(0xfb));}catch(q){console['error'](a0(0xef),q);throw q;}}async[a162z(0xec)]({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a162z;try{const g=await this['fsi'][a1(0x131)](a,c);if(g)return;if(!this[a1(0x15c)][a1(0x10a)](a))throw Log[a1(0x14b)](a1(0x106)+JSON[a1(0x14d)](a));const h=a162f['readFileSync'](a,a1(0xfb));if(!Array[a1(0xc2)](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(0x127)+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(0x128));a162f['writeFileSync'](a,i),Log[a1(0xd7)](treeSymbol+a1(0x14c)+a162e[a1(0x154)](process[a1(0x11b)](),a));}catch(n){errorHandler(a1(0xc4),n),process['exit'](0x1);}}async['injectImport']({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a162z;try{const f=a162f[a2(0x132)](a,a2(0xfb));let g;d?g=a2(0x134)+b+'\x20}\x20from\x20\x27'+c+a2(0x13b):g=a2(0x13a)+b+a2(0x105)+c+'\x27;\x0a';const h=f[a2(0x167)]('\x0a');let j=0x0,k=![];for(const m of h){if(m[a2(0x136)](a2(0xea)+c+'\x27')||m[a2(0x136)](a2(0xd4)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x13a)+b+'\x20from');if(m[a2(0x124)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0x166)];o++){if(h[o][a2(0x124)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0x166)];p++){h[p][a2(0x124)](/^import .* from .*;$/)&&(j=p);}j++;}h['splice'](j,0x0,g);const l=h[a2(0xc0)]('\x0a');a162f[a2(0xf3)](a,l,a2(0xfb));}catch(q){errorHandler(a2(0xf9),q),process['exit'](0x1);}}async['injectTemplateModule'](a,b,c){const a3=a162z;try{let d;b[a3(0x103)][a3(0x15a)]!==a3(0x13c)?d=this[a3(0xde)]({'pathParts':[a3(0x113),a3(0xee),a3(0x115),'templates.js'],'config':b}):d=this[a3(0xde)]({'pathParts':[a3(0x113),a3(0xee),a3(0x168),a3(0x12c)],'config':b});const f=this[a3(0x146)]({'pathParts':[d],'config':b}),g='export\x20{\x20'+pascalCase(a)+'\x20}\x20from\x20\x27'+c+'\x27;',h=await this[a3(0x15c)][a3(0x131)](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a3(0xff),i),process[a3(0x137)](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const a4=a162z;try{const d=a162f[a4(0x132)](a)[a4(0xcc)]()[a4(0x167)]('\x0a');d[a4(0xcf)](c,0x0,b);const f=d[a4(0xc0)]('\x0a');a162f[a4(0xf3)](a,f);}catch(g){errorHandler(a4(0x143),g),process[a4(0x137)](0x1);}}[a162z(0xde)]({pathParts:a,config:b}){const a5=a162z;try{if(!a)throw new Error(a5(0xf4));const c=this[a5(0x157)]({'pathParts':a,'config':b}),d=this[a5(0x15c)][a5(0x121)]();return d?a162e[a5(0xc0)](d,c):'';}catch(f){errorHandler('pathFromApp()',f),process[a5(0x137)](0x1);}}[a162z(0x119)]({pathParts:a,config:b}){const a6=a162z;try{const c=this[a6(0x15d)]({'pathParts':a,'config':b}),d=this[a6(0x15c)][a6(0x121)]();if(!d)throw new Error(a6(0xd5));return a162e[a6(0xc0)](d,c);}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process[a6(0x137)](0x1);}}}
@@ -1 +1 @@
1
- function a163c(){const t=['log','46552jyDPXu','error','SIGINT','verbose','pid','44dNhzXn','3734100oEwkYU','(((.+)+)+)+$','990odPpRa','constructor','start','close','data','disconnect','toString','message','apply','ignore','10VhcupY','kill','success','1602928LoyyNH','1160ewezOS','356820QxaivQ','6wgPPzZ','inherit','withSpinner','6287268TtYAlZ','failure','2714432rGsOyK'];a163c=function(){return t;};return a163c();}const a163m=a163d;(function(a,b){const j=a163d,c=a();while(!![]){try{const d=-parseInt(j(0x148))/0x1+parseInt(j(0x149))/0x2*(parseInt(j(0x14a))/0x3)+parseInt(j(0x147))/0x4*(parseInt(j(0x163))/0x5)+-parseInt(j(0x14d))/0x6+-parseInt(j(0x14f))/0x7+-parseInt(j(0x151))/0x8*(parseInt(j(0x159))/0x9)+parseInt(j(0x157))/0xa*(parseInt(j(0x156))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x8c62c));const a163b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a163d;if(c){const e=c[k(0x161)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){const l=a163d;return a163a[l(0x15f)]()['search'](l(0x158))[l(0x15f)]()[l(0x15a)](a163a)['search'](l(0x158));});function a163d(a,b){const c=a163c();return a163d=function(d,e){d=d-0x145;let f=c[d];return f;},a163d(a,b);}a163a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a163m(0x14c)](a,b,c){return new Promise((d,e)=>{const n=a163d,f=Log['withSpinner'](),g=c?.['cwd']||'.';c?.[n(0x160)]&&f[n(0x15b)](c?.['message']);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x154)]?n(0x14b):n(0x162)});process['on'](n(0x153),()=>{const o=n,i=h[o(0x155)];i&&process[o(0x145)](i);}),h['on'](n(0x15d),i=>{const p=n;console[p(0x150)](i);}),h['on'](n(0x15e),()=>{const q=n;c?.[q(0x160)]&&f[q(0x146)](),d();}),h['on'](n(0x15c),()=>{const r=n;c?.[r(0x160)]&&f[r(0x146)](),d();}),h['on'](n(0x152),()=>{const s=n;c?.[s(0x160)]&&f[s(0x14e)](),e();});});}}
1
+ function a163c(){const t=['disconnect','success','2284857biwnvQ','search','35haczyW','apply','982116IjxUZr','data','756720XEztjD','failure','2971059mukTEW','message','log','110CCFrEh','cwd','constructor','pid','(((.+)+)+)+$','withSpinner','toString','ignore','close','152678tKhxfK','263994dtoynT','5095144cbpBSL','4WjlEjG','verbose'];a163c=function(){return t;};return a163c();}const a163m=a163d;(function(a,b){const j=a163d,c=a();while(!![]){try{const d=parseInt(j(0x200))/0x1*(parseInt(j(0x1e8))/0x2)+-parseInt(j(0x1ec))/0x3+parseInt(j(0x1f2))/0x4+-parseInt(j(0x1ee))/0x5*(parseInt(j(0x201))/0x6)+parseInt(j(0x1f4))/0x7+-parseInt(j(0x202))/0x8+-parseInt(j(0x1f0))/0x9*(-parseInt(j(0x1f7))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x64ca0));const a163b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a163d;if(c){const e=c[k(0x1ef)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){const l=a163d;return a163a[l(0x1fd)]()[l(0x1ed)](l(0x1fb))[l(0x1fd)]()[l(0x1f9)](a163a)['search'](l(0x1fb));});a163a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';function a163d(a,b){const c=a163c();return a163d=function(d,e){d=d-0x1e8;let f=c[d];return f;},a163d(a,b);}export class SpawnAsync{static[a163m(0x1fc)](a,b,c){return new Promise((d,e)=>{const n=a163d,f=Log[n(0x1fc)](),g=c?.[n(0x1f8)]||'.';c?.['message']&&f['start'](c?.['message']);const h=spawn(a,b,{'cwd':g,'stdio':c?.[n(0x1e9)]?'inherit':n(0x1fe)});process['on']('SIGINT',()=>{const o=n,i=h[o(0x1fa)];i&&process['kill'](i);}),h['on'](n(0x1f1),i=>{const p=n;console[p(0x1f6)](i);}),h['on'](n(0x1ea),()=>{const q=n;c?.['message']&&f[q(0x1eb)](),d();}),h['on'](n(0x1ff),()=>{const r=n;c?.[r(0x1f5)]&&f[r(0x1eb)](),d();}),h['on']('error',()=>{const s=n;c?.[s(0x1f5)]&&f[s(0x1f3)](),e();});});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a164d,c=a();while(!![]){try{var d=-parseInt(f(0xb0))/0x1*(-parseInt(f(0xb1))/0x2)+parseInt(f(0xbc))/0x3*(parseInt(f(0xb8))/0x4)+parseInt(f(0xbe))/0x5+parseInt(f(0xb6))/0x6*(parseInt(f(0xb2))/0x7)+parseInt(f(0xb4))/0x8+parseInt(f(0xb7))/0x9*(-parseInt(f(0xbd))/0xa)+-parseInt(f(0xbf))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x676fd));function a164d(a,b){var c=a164c();return a164d=function(d,e){d=d-0xb0;var f=c[d];return f;},a164d(a,b);}var a164b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a164d;if(c){var e=c[g(0xb9)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){var h=a164d;return a164a[h(0xba)]()[h(0xb5)](h(0xbb))['toString']()[h(0xb3)](a164a)[h(0xb5)](h(0xbb));});function a164c(){var i=['67813wVdvEk','22aghVbo','971019UDxKog','constructor','387616RxOIgX','search','6iYaSPk','823878CJsuob','249512ygqlpP','apply','toString','(((.+)+)+)+$','12vCMMHU','40sHmMwy','1786385YvqwxF','8250616guWJpX'];a164c=function(){return i;};return a164c();}a164a();export{};
1
+ (function(a,b){var f=a164d,c=a();while(!![]){try{var d=-parseInt(f(0x1c1))/0x1+parseInt(f(0x1b9))/0x2*(-parseInt(f(0x1bb))/0x3)+-parseInt(f(0x1bd))/0x4*(parseInt(f(0x1b7))/0x5)+-parseInt(f(0x1ba))/0x6*(parseInt(f(0x1c0))/0x7)+parseInt(f(0x1b5))/0x8+parseInt(f(0x1b8))/0x9+parseInt(f(0x1b3))/0xa*(parseInt(f(0x1bf))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x900a3));var a164b=(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;};}()),a164a=a164b(this,function(){var g=a164d;return a164a[g(0x1be)]()['search'](g(0x1b6))[g(0x1be)]()[g(0x1bc)](a164a)[g(0x1b4)](g(0x1b6));});a164a();export{};function a164d(a,b){var c=a164c();return a164d=function(d,e){d=d-0x1b3;var f=c[d];return f;},a164d(a,b);}function a164c(){var h=['746pPmQJV','2172306LLKeEi','4215mBrrDk','constructor','36028uWUTRA','toString','2123xLBSBi','7uFpIpl','185584aujyLs','72790CendWA','search','1023216FQsdcI','(((.+)+)+)+$','235brWUQM','4970403SnZDOW'];a164c=function(){return h;};return a164c();}
@@ -1 +1 @@
1
- const a165p=a165d;(function(a,b){const m=a165d,c=a();while(!![]){try{const d=-parseInt(m(0x14d))/0x1*(-parseInt(m(0x151))/0x2)+parseInt(m(0x150))/0x3+parseInt(m(0x152))/0x4+parseInt(m(0x144))/0x5+-parseInt(m(0x149))/0x6*(parseInt(m(0x159))/0x7)+-parseInt(m(0x137))/0x8*(parseInt(m(0x134))/0x9)+-parseInt(m(0x143))/0xa*(parseInt(m(0x157))/0xb);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a165c,0xdd517));const a165b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a165d;if(c){const e=c[n(0x155)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a165a=a165b(this,function(){const o=a165d;return a165a[o(0x138)]()['search'](o(0x148))['toString']()['constructor'](a165a)['search'](o(0x148));});a165a();import a165e from'path';function a165d(a,b){const c=a165c();return a165d=function(d,e){d=d-0x132;let f=c[d];return f;},a165d(a,b);}import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a165p(0x14e)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a165d,f=b[q(0x135)]+'@'+b[q(0x154)],g=a165e[q(0x158)](b[q(0x153)],b[q(0x13a)]),h=c?.['tty']||![],i=c?.[q(0x14f)]||![];let j=[];h&&j[q(0x15a)]('-t');i&&j[q(0x15a)]('-v');j=j[q(0x146)](['-o',q(0x13f),'-i',g,'-p',b[q(0x132)],f,a]);const k=Log[q(0x142)]();c?.['message']&&k[q(0x13c)](c?.[q(0x14c)]);const l=spawn(q(0x14e),j,{'stdio':c?.['verbose']?q(0x15b):'ignore'});l['on']('disconnect',()=>{const r=q;c?.[r(0x14c)]&&k[r(0x14b)](),d();}),l['on'](q(0x141),()=>{const s=q;c?.[s(0x14c)]&&k['success'](),d();}),l['on'](q(0x13d),()=>{const t=q;c?.[t(0x14c)]&&k[t(0x13e)](),e();});});};static [a165p(0x14a)]=(a,b,c)=>{const u=a165p,d=b[u(0x135)]+'@'+b[u(0x154)],e=a165e[u(0x158)](b['env'],b['pem']),f=c?.[u(0x140)]||![],g=c?.[u(0x14f)]||![];let h=[];f&&h[u(0x15a)]('-t'),g&&h['push']('-v'),h=h[u(0x146)](['-o',u(0x13f),'-i',e,'-p',b[u(0x132)],d,a]),spawnSync('ssh',h,{'stdio':c?.[u(0x156)]?u(0x15b):'ignore'});};static[a165p(0x136)](a,b,c){const v=a165p,d=b[v(0x135)]+'@'+b[v(0x154)],e=a165e[v(0x158)](b[v(0x153)],b[v(0x13a)]),f=c?.['tty']||![];let g=[];f&&g['push']('-t');g=g[v(0x146)](['-o',v(0x13f),'-i',e,'-p',b[v(0x132)],d,a,'2>&1']);const h=v(0x13b)+g[v(0x158)]('\x20');return execSync(h)[v(0x138)]();}static[a165p(0x145)](a,b){const w=a165p,c=b['user']+'@'+b[w(0x154)]+':'+a[w(0x147)],d=a165e[w(0x158)](b[w(0x153)],b['pem']),e=['-i',d,'-P',b['port'],a[w(0x133)],c];spawnSync('scp',e,{'stdio':a[w(0x156)]?w(0x15b):w(0x139)});}}function a165c(){const x=['sshVerbose','2060451XDgsnM','2cjskXL','5447304dklqIS','env','host','apply','verbose','97229kJmnAD','join','476sPWgfy','push','inherit','port','source','324549oJXYQr','user','ping','296TrZItY','toString','ignore','pem','ssh\x20','start','error','failure','ConnectTimeout=2','tty','close','withSpinner','1440zzZSTz','5565800socytY','scp','concat','dest','(((.+)+)+)+$','25566TMkWla','sshSync','success','message','641537GMZamt','ssh'];a165c=function(){return x;};return a165c();}
1
+ const a165u=a165d;function a165c(){const x=['start','message','concat','push','port','ssh','verbose','toString','failure','search','error','573axaWZd','664182dEAkkW','2>&1','ping','dest','69204pThBJy','3150323EEFHaz','(((.+)+)+)+$','ConnectTimeout=2','pem','56716IAAhUh','ignore','1072526eRSAjP','16ZpYdbv','success','host','3710tVAFkl','close','ssh\x20','join','inherit','8361KueOEC','2126NmyfNv','apply','scp','user','source','env','95eMzKQl','constructor','tty'];a165c=function(){return x;};return a165c();}(function(a,b){const m=a165d,c=a();while(!![]){try{const d=-parseInt(m(0xa9))/0x1+-parseInt(m(0xb5))/0x2*(-parseInt(m(0xc9))/0x3)+parseInt(m(0xa4))/0x4*(-parseInt(m(0xbb))/0x5)+parseInt(m(0xca))/0x6+-parseInt(m(0xab))/0x7*(-parseInt(m(0xac))/0x8)+parseInt(m(0xb4))/0x9*(-parseInt(m(0xaf))/0xa)+parseInt(m(0xa5))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a165c,0x2b151));const a165b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a165d;if(c){const e=c[n(0xb6)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a165a=a165b(this,function(){const o=a165d;return a165a[o(0xc5)]()[o(0xc7)](o(0xa6))[o(0xc5)]()[o(0xbc)](a165a)[o(0xc7)](o(0xa6));});function a165d(a,b){const c=a165c();return a165d=function(d,e){d=d-0xa1;let f=c[d];return f;},a165d(a,b);}a165a();import a165e 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=a165d,f=b[p(0xb8)]+'@'+b[p(0xae)],g=a165e[p(0xb2)](b[p(0xba)],b[p(0xa8)]),h=c?.['tty']||![],i=c?.['sshVerbose']||![];let j=[];h&&j[p(0xc1)]('-t');i&&j[p(0xc1)]('-v');j=j[p(0xc0)](['-o',p(0xa7),'-i',g,'-p',b[p(0xc2)],f,a]);const k=Log['withSpinner']();c?.[p(0xbf)]&&k[p(0xbe)](c?.[p(0xbf)]);const l=spawn(p(0xc3),j,{'stdio':c?.[p(0xc4)]?p(0xb3):p(0xaa)});l['on']('disconnect',()=>{const q=p;c?.[q(0xbf)]&&k[q(0xad)](),d();}),l['on'](p(0xb0),()=>{const r=p;c?.[r(0xbf)]&&k[r(0xad)](),d();}),l['on'](p(0xc8),()=>{const s=p;c?.[s(0xbf)]&&k[s(0xc6)](),e();});});};static ['sshSync']=(a,b,c)=>{const t=a165d,d=b[t(0xb8)]+'@'+b[t(0xae)],e=a165e[t(0xb2)](b[t(0xba)],b['pem']),f=c?.[t(0xbd)]||![],g=c?.['sshVerbose']||![];let h=[];f&&h[t(0xc1)]('-t'),g&&h['push']('-v'),h=h[t(0xc0)](['-o','ConnectTimeout=2','-i',e,'-p',b[t(0xc2)],d,a]),spawnSync(t(0xc3),h,{'stdio':c?.[t(0xc4)]?t(0xb3):t(0xaa)});};static[a165u(0xa2)](a,b,c){const v=a165u,d=b['user']+'@'+b[v(0xae)],e=a165e[v(0xb2)](b[v(0xba)],b[v(0xa8)]),f=c?.['tty']||![];let g=[];f&&g[v(0xc1)]('-t');g=g['concat'](['-o','ConnectTimeout=2','-i',e,'-p',b['port'],d,a,v(0xa1)]);const h=v(0xb1)+g[v(0xb2)]('\x20');return execSync(h)['toString']();}static['scp'](a,b){const w=a165u,c=b[w(0xb8)]+'@'+b[w(0xae)]+':'+a[w(0xa3)],d=a165e[w(0xb2)](b[w(0xba)],b[w(0xa8)]),e=['-i',d,'-P',b[w(0xc2)],a[w(0xb9)],c];spawnSync(w(0xb7),e,{'stdio':a['verbose']?w(0xb3):w(0xaa)});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a166d,c=a();while(!![]){try{var d=parseInt(f(0xbe))/0x1*(-parseInt(f(0xb1))/0x2)+parseInt(f(0xb4))/0x3*(-parseInt(f(0xb9))/0x4)+parseInt(f(0xb8))/0x5*(parseInt(f(0xbd))/0x6)+parseInt(f(0xb0))/0x7*(parseInt(f(0xbc))/0x8)+parseInt(f(0xba))/0x9+-parseInt(f(0xb3))/0xa+parseInt(f(0xaf))/0xb*(parseInt(f(0xb5))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a166c,0xac4f9));function a166d(a,b){var c=a166c();return a166d=function(d,e){d=d-0xae;var f=c[d];return f;},a166d(a,b);}function a166c(){var i=['13580770lGfyPY','3461433OAEpug','3828zESWdJ','toString','search','63260Locwvx','4BWGSzF','11126862pvPYeh','apply','9704ffbXVw','474fNgxHT','19grKENp','constructor','8393qnhGru','5019xCqtlm','13818MKACay','(((.+)+)+)+$'];a166c=function(){return i;};return a166c();}var a166b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a166d;if(c){var e=c[g(0xbb)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a166a=a166b(this,function(){var h=a166d;return a166a['toString']()[h(0xb7)](h(0xb2))[h(0xb6)]()[h(0xae)](a166a)['search'](h(0xb2));});a166a();export{};
1
+ (function(a,b){var f=a166d,c=a();while(!![]){try{var d=parseInt(f(0xc6))/0x1+-parseInt(f(0xcf))/0x2*(parseInt(f(0xce))/0x3)+parseInt(f(0xca))/0x4*(parseInt(f(0xc2))/0x5)+parseInt(f(0xc9))/0x6*(parseInt(f(0xc4))/0x7)+-parseInt(f(0xc7))/0x8*(parseInt(f(0xc5))/0x9)+-parseInt(f(0xcb))/0xa+parseInt(f(0xcc))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a166c,0x5c750));var a166b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a166d;if(c){var e=c[g(0xc1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a166a=a166b(this,function(){var h=a166d;return a166a[h(0xcd)]()[h(0xc8)](h(0xd0))[h(0xcd)]()[h(0xc3)](a166a)[h(0xc8)](h(0xd0));});function a166d(a,b){var c=a166c();return a166d=function(d,e){d=d-0xc1;var f=c[d];return f;},a166d(a,b);}a166a();export{};function a166c(){var i=['search','500658YdHsmN','8feGCtH','5672630yCKoIt','13950387SLkWpW','toString','1399089wjGYNh','2DMHiks','(((.+)+)+)+$','apply','171755YpbxWS','constructor','7HKzURn','9bYkBQt','568857aFGAHs','4615112NKRqRM'];a166c=function(){return i;};return a166c();}
@@ -1 +1 @@
1
- const a167i=a167d;(function(a,b){const f=a167d,c=a();while(!![]){try{const d=parseInt(f(0x182))/0x1*(parseInt(f(0x193))/0x2)+-parseInt(f(0x185))/0x3*(-parseInt(f(0x174))/0x4)+-parseInt(f(0x18b))/0x5*(-parseInt(f(0x189))/0x6)+-parseInt(f(0x18e))/0x7+parseInt(f(0x18c))/0x8*(parseInt(f(0x17f))/0x9)+parseInt(f(0x183))/0xa*(-parseInt(f(0x179))/0xb)+-parseInt(f(0x184))/0xc*(-parseInt(f(0x194))/0xd);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x552ed));const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a167d;if(c){const e=c[g(0x17e)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const h=a167d;return a167a[h(0x192)]()[h(0x17b)](h(0x186))[h(0x192)]()['constructor'](a167a)['search'](h(0x186));});function a167c(){const l=['537308OBpTwO','-x509','crtName','cwd','-keyout','1408xgOdsC','genSSC','search','genCSR','inherit','apply','973179JLyUxo','openssl','openssl.conf','492217dBRPIR','53990KBLrHQ','552696kBjnOW','12aTvlSq','(((.+)+)+)+$','-new','-config','18dMOZeN','useConfig','420685Hdltnq','8qsSdYW','push','3095414UvBJif','-out','keyName','req','toString','2GkmQUe','26usXiJA','rsa:2048'];a167c=function(){return l;};return a167c();}function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0x174;let f=c[d];return f;},a167d(a,b);}a167a();import{spawnSync}from'child_process';export class SSL{static[a167i(0x17c)](a){const j=a167i,b=a['cwd']?a[j(0x177)]:process[j(0x177)](),c=[j(0x191),'-new','-newkey',j(0x195),'-nodes',j(0x178),a[j(0x190)],j(0x18f),a['csrName']];a[j(0x18a)]&&(c[j(0x18d)]('-config'),c['push'](j(0x181))),a[j(0x18a)]?spawnSync(j(0x180),c,{'cwd':b}):spawnSync(j(0x180),c,{'stdio':j(0x17d),'cwd':b});}static[a167i(0x17a)](a){const k=a167i,b=a[k(0x177)]?a['cwd']:process[k(0x177)](),c=[k(0x191),k(0x175),k(0x187),'-key',a[k(0x190)],k(0x18f),a[k(0x176)]];a[k(0x18a)]&&(c[k(0x18d)](k(0x188)),c[k(0x18d)](k(0x181))),a[k(0x18a)]?spawnSync(k(0x180),c,{'cwd':b}):spawnSync(k(0x180),c,{'stdio':'inherit','cwd':b});}}
1
+ const a167i=a167d;(function(a,b){const f=a167d,c=a();while(!![]){try{const d=parseInt(f(0x1b6))/0x1*(-parseInt(f(0x1c0))/0x2)+parseInt(f(0x1b4))/0x3*(-parseInt(f(0x1b2))/0x4)+parseInt(f(0x1bf))/0x5*(parseInt(f(0x1c7))/0x6)+parseInt(f(0x1c5))/0x7*(-parseInt(f(0x1b9))/0x8)+parseInt(f(0x1bd))/0x9*(-parseInt(f(0x1c2))/0xa)+-parseInt(f(0x1b0))/0xb*(-parseInt(f(0x1c1))/0xc)+parseInt(f(0x1b7))/0xd;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x29668));function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0x1a9;let f=c[d];return f;},a167d(a,b);}const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a167d;if(c){const e=c[g(0x1af)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const h=a167d;return a167a[h(0x1ab)]()[h(0x1ad)](h(0x1cb))[h(0x1ab)]()['constructor'](a167a)[h(0x1ad)](h(0x1cb));});a167a();import{spawnSync}from'child_process';function a167c(){const l=['-new','toString','rsa:2048','search','-config','apply','1316502bTKPuB','keyName','432qNWDWt','useConfig','6492rpZpab','genCSR','60263UBEFze','7028879PLEirP','-keyout','1016gpblHm','-nodes','crtName','push','9sxETgV','req','205560VoIHGz','2uTsnJy','12qnrmud','3287140ySEHsr','cwd','openssl','4060yVAWaz','csrName','30XDcRZg','-out','inherit','-newkey','(((.+)+)+)+$','genSSC'];a167c=function(){return l;};return a167c();}export class SSL{static[a167i(0x1b5)](a){const j=a167i,b=a['cwd']?a[j(0x1c3)]:process[j(0x1c3)](),c=[j(0x1be),j(0x1aa),j(0x1ca),j(0x1ac),j(0x1ba),j(0x1b8),a['keyName'],j(0x1c8),a[j(0x1c6)]];a['useConfig']&&(c[j(0x1bc)](j(0x1ae)),c[j(0x1bc)]('openssl.conf')),a[j(0x1b3)]?spawnSync('openssl',c,{'cwd':b}):spawnSync('openssl',c,{'stdio':j(0x1c9),'cwd':b});}static[a167i(0x1a9)](a){const k=a167i,b=a[k(0x1c3)]?a[k(0x1c3)]:process[k(0x1c3)](),c=[k(0x1be),'-x509',k(0x1aa),'-key',a[k(0x1b1)],k(0x1c8),a[k(0x1bb)]];a[k(0x1b3)]&&(c[k(0x1bc)](k(0x1ae)),c[k(0x1bc)]('openssl.conf')),a[k(0x1b3)]?spawnSync(k(0x1c4),c,{'cwd':b}):spawnSync('openssl',c,{'stdio':k(0x1c9),'cwd':b});}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.0.43",
3
+ "version": "5.1.0",
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.",
@@ -34,24 +34,24 @@
34
34
  "author": "Maka <maka@maka-cli.com>",
35
35
  "license": "MIT",
36
36
  "dependencies": {
37
- "@aws-sdk/client-ec2": "^3.637.0",
38
- "@aws-sdk/client-ecr": "^3.637.0",
39
- "@aws-sdk/client-route-53": "^3.637.0",
40
- "@aws-sdk/client-route-53-domains": "^3.637.0",
37
+ "@aws-sdk/client-ec2": "^3.683.0",
38
+ "@aws-sdk/client-ecr": "^3.682.0",
39
+ "@aws-sdk/client-route-53": "^3.683.0",
40
+ "@aws-sdk/client-route-53-domains": "^3.682.0",
41
41
  "@babel/eslint-parser": "^7.25.9",
42
- "@inquirer/prompts": "^5.3.8",
42
+ "@inquirer/prompts": "^7.0.1",
43
43
  "@maka/tar": "^6.2.2",
44
44
  "blessed": "^0.1.81",
45
45
  "change-case": "^5.4.4",
46
46
  "cli-color": "^2.0.4",
47
47
  "cli-cursor": "^5.0.0",
48
48
  "cli-table": "^0.3.11",
49
- "date-fns": "^3.6.0",
49
+ "date-fns": "^4.1.0",
50
50
  "delete": "github:maka-io/delete",
51
51
  "dotenv": "^16.4.5",
52
52
  "ejs": "^3.1.10",
53
53
  "elegant-spinner": "^3.0.0",
54
- "eslint": "^9.9.1",
54
+ "eslint": "^9.13.0",
55
55
  "http-proxy": "^1.18.1",
56
56
  "humps": "^2.0.1",
57
57
  "husky": "^9.1.6",
@@ -67,15 +67,15 @@
67
67
  "slash": "^5.1.0",
68
68
  "spawn-args": "0.2.0",
69
69
  "tar": "^7.4.3",
70
- "type-fest": "^4.25.0",
71
- "uuid": "^10.0.0",
70
+ "type-fest": "^4.26.1",
71
+ "uuid": "^11.0.2",
72
72
  "xtend": "^4.0.2"
73
73
  },
74
74
  "devDependencies": {
75
- "@aws-sdk/types": "^3.609.0",
76
- "@eslint/js": "^9.9.1",
75
+ "@aws-sdk/types": "^3.679.0",
76
+ "@eslint/js": "^9.13.0",
77
77
  "@types/blessed": "^0.1.25",
78
- "@types/chai": "^4.3.18",
78
+ "@types/chai": "^5.0.1",
79
79
  "@types/cli-color": "^2.0.6",
80
80
  "@types/cli-table": "^0.3.4",
81
81
  "@types/ejs": "^3.1.5",
@@ -84,26 +84,26 @@
84
84
  "@types/humps": "^2.0.6",
85
85
  "@types/inquirer": "^9.0.7",
86
86
  "@types/jest": "^29.5.14",
87
- "@types/jsonwebtoken": "^9.0.6",
87
+ "@types/jsonwebtoken": "^9.0.7",
88
88
  "@types/meteor": "^2.9.8",
89
89
  "@types/minimist": "^1.2.5",
90
- "@types/node": "^22.5.0",
91
- "@types/react": "^18.3.4",
92
- "@types/react-dom": "^18.3.0",
90
+ "@types/node": "^22.8.5",
91
+ "@types/react": "^18.3.12",
92
+ "@types/react-dom": "^18.3.1",
93
93
  "@types/uuid": "^10.0.0",
94
- "aws-sdk": "^2.1682.0",
95
- "chai": "^5.1.1",
94
+ "aws-sdk": "^2.1691.0",
95
+ "chai": "^5.1.2",
96
96
  "chdir": "^0.0.0",
97
97
  "concat-stream": "^2.0.0",
98
- "concurrently": "^8.2.2",
99
- "esbuild": "^0.23.1",
100
- "globals": "^15.9.0",
98
+ "concurrently": "^9.0.1",
99
+ "esbuild": "^0.24.0",
100
+ "globals": "^15.11.0",
101
101
  "javascript-obfuscator": "^4.1.1",
102
102
  "mkdirp": "^3.0.1",
103
103
  "ts-jest": "^29.2.5",
104
- "typescript": "^5.5.4",
105
- "typescript-eslint": "^8.2.0",
106
- "wait-on": "^8.0.0"
104
+ "typescript": "^5.6.3",
105
+ "typescript-eslint": "^8.12.2",
106
+ "wait-on": "^8.0.1"
107
107
  },
108
108
  "engines": {
109
109
  "node": ">=14.0.0"