@maka/maka-cli 5.1.8 → 5.1.9

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 +1 -1
  2. package/bundle/obf/src/command.js +1 -1
  3. package/bundle/obf/src/commands/_index.js +1 -1
  4. package/bundle/obf/src/commands/ai.js +1 -1
  5. package/bundle/obf/src/commands/aws/_index.js +1 -1
  6. package/bundle/obf/src/commands/aws/aws.command.js +1 -1
  7. package/bundle/obf/src/commands/aws/cecr.sub.cmd.js +1 -1
  8. package/bundle/obf/src/commands/aws/chz.sub.cmd.js +1 -1
  9. package/bundle/obf/src/commands/aws/ci.sub.cmd.js +1 -1
  10. package/bundle/obf/src/commands/aws/ckp.sub.cmd.js +1 -1
  11. package/bundle/obf/src/commands/aws/csg.sub.cmd.js +1 -1
  12. package/bundle/obf/src/commands/aws/decr.sub.cmd.js +1 -1
  13. package/bundle/obf/src/commands/aws/di.sub.cmd.js +1 -1
  14. package/bundle/obf/src/commands/aws/dkp.sub.cmd.js +1 -1
  15. package/bundle/obf/src/commands/aws/dsg.sub.cmd.js +1 -1
  16. package/bundle/obf/src/commands/aws/lecr.sub.cmd.js +1 -1
  17. package/bundle/obf/src/commands/aws/rbi.sub.cmd.js +1 -1
  18. package/bundle/obf/src/commands/aws/rdn.sub.cmd.js +1 -1
  19. package/bundle/obf/src/commands/aws/rkp.sub.cmd.js +1 -1
  20. package/bundle/obf/src/commands/aws/sth.sub.cmd.js +1 -1
  21. package/bundle/obf/src/commands/aws/ti.sub.cmd.js +1 -1
  22. package/bundle/obf/src/commands/build/_index.js +1 -1
  23. package/bundle/obf/src/commands/build/build.js +1 -1
  24. package/bundle/obf/src/commands/build/docker.sub.cmd.js +1 -1
  25. package/bundle/obf/src/commands/create.js +1 -1
  26. package/bundle/obf/src/commands/debug.js +1 -1
  27. package/bundle/obf/src/commands/deploy/_index.js +1 -1
  28. package/bundle/obf/src/commands/deploy/deploy.command.js +1 -1
  29. package/bundle/obf/src/commands/deploy/galaxy.sub.cmd.js +1 -1
  30. package/bundle/obf/src/commands/deploy/ubuntu.sub.cmd.js +1 -1
  31. package/bundle/obf/src/commands/game/_index.js +1 -1
  32. package/bundle/obf/src/commands/game/battleship.sub.cmd.js +1 -1
  33. package/bundle/obf/src/commands/game/play.command.js +1 -1
  34. package/bundle/obf/src/commands/game/pong.sub.cmd.js +1 -1
  35. package/bundle/obf/src/commands/game/sideQuest/commands/command.js +1 -1
  36. package/bundle/obf/src/commands/game/sideQuest/commands/drop.js +1 -1
  37. package/bundle/obf/src/commands/game/sideQuest/commands/equip.js +1 -1
  38. package/bundle/obf/src/commands/game/sideQuest/commands/go.js +1 -1
  39. package/bundle/obf/src/commands/game/sideQuest/commands/lock.js +1 -1
  40. package/bundle/obf/src/commands/game/sideQuest/commands/look.js +1 -1
  41. package/bundle/obf/src/commands/game/sideQuest/commands/say.js +1 -1
  42. package/bundle/obf/src/commands/game/sideQuest/commands/search.js +1 -1
  43. package/bundle/obf/src/commands/game/sideQuest/commands/solve.js +1 -1
  44. package/bundle/obf/src/commands/game/sideQuest/commands/take.js +1 -1
  45. package/bundle/obf/src/commands/game/sideQuest/commands/unequip.js +1 -1
  46. package/bundle/obf/src/commands/game/sideQuest/commands/unlock.js +1 -1
  47. package/bundle/obf/src/commands/game/sideQuest/commands/use.js +1 -1
  48. package/bundle/obf/src/commands/game/sideQuest/factories/commandF.js +1 -1
  49. package/bundle/obf/src/commands/game/sideQuest/factories/roomsF.js +1 -1
  50. package/bundle/obf/src/commands/game/sideQuest/game.js +1 -1
  51. package/bundle/obf/src/commands/game/sideQuest/models/_index.js +1 -1
  52. package/bundle/obf/src/commands/game/sideQuest/models/door.js +1 -1
  53. package/bundle/obf/src/commands/game/sideQuest/models/inventory.js +1 -1
  54. package/bundle/obf/src/commands/game/sideQuest/models/item.js +1 -1
  55. package/bundle/obf/src/commands/game/sideQuest/models/npc.js +1 -1
  56. package/bundle/obf/src/commands/game/sideQuest/models/player.js +1 -1
  57. package/bundle/obf/src/commands/game/sideQuest/models/puzzle.js +1 -1
  58. package/bundle/obf/src/commands/game/sideQuest/models/room.js +1 -1
  59. package/bundle/obf/src/commands/game/sideQuest/models/scene.js +1 -1
  60. package/bundle/obf/src/commands/game/sideQuest/scenes/items.js +1 -1
  61. package/bundle/obf/src/commands/game/sideQuest/scenes/rooms.js +1 -1
  62. package/bundle/obf/src/commands/game/sideQuest/types/abstracts.js +1 -1
  63. package/bundle/obf/src/commands/game/sideQuest/types/enums.js +1 -1
  64. package/bundle/obf/src/commands/game/sideQuest/types/interfaces.js +1 -1
  65. package/bundle/obf/src/commands/game/sideQuest/types/types.js +1 -1
  66. package/bundle/obf/src/commands/game/sideQuest/ui.js +1 -1
  67. package/bundle/obf/src/commands/game/sideQuest/utilities/logger.js +1 -1
  68. package/bundle/obf/src/commands/game/sideQuest.sub.cmd.js +1 -1
  69. package/bundle/obf/src/commands/game/snake.sub.cmd.js +1 -1
  70. package/bundle/obf/src/commands/game/tetris.sub.cmd.js +1 -1
  71. package/bundle/obf/src/commands/generate.js +1 -1
  72. package/bundle/obf/src/commands/get/_index.js +1 -1
  73. package/bundle/obf/src/commands/get/get.command.js +1 -1
  74. package/bundle/obf/src/commands/get/global.sub.cmd.js +1 -1
  75. package/bundle/obf/src/commands/get/local.sub.cmd.js +1 -1
  76. package/bundle/obf/src/commands/get/whoami.sub.cmd.js +1 -1
  77. package/bundle/obf/src/commands/help.js +1 -1
  78. package/bundle/obf/src/commands/install.js +1 -1
  79. package/bundle/obf/src/commands/jsdoc.js +1 -1
  80. package/bundle/obf/src/commands/lint.js +1 -1
  81. package/bundle/obf/src/commands/login.js +1 -1
  82. package/bundle/obf/src/commands/logout.js +1 -1
  83. package/bundle/obf/src/commands/logs.js +1 -1
  84. package/bundle/obf/src/commands/maka.cmd.js +1 -1
  85. package/bundle/obf/src/commands/murder.js +1 -1
  86. package/bundle/obf/src/commands/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 +1 -1
@@ -1 +1 @@
1
- const a162z=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=parseInt(v(0x11a))/0x1+-parseInt(v(0x197))/0x2+parseInt(v(0x186))/0x3*(-parseInt(v(0x1b4))/0x4)+-parseInt(v(0x154))/0x5+parseInt(v(0x177))/0x6*(-parseInt(v(0x12d))/0x7)+-parseInt(v(0x181))/0x8+parseInt(v(0x178))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xc517c));function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0x116;let f=c[d];return f;},a162d(a,b);}const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a162d;if(c){const e=c[w(0x1b1)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const x=a162d;return a162a[x(0x19c)]()[x(0x19d)](x(0x190))['toString']()['constructor'](a162a)['search'](x(0x190));});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 a162c(){const a7=['detectIndentation','575630BvLdri','warn','writeSourcePath','No\x20pathParts\x20option\x20provided','copyTemplateDirectory','toString','search','MAKA_COMMAND_PATH','engines','\x5cS*$','includes','fsi','injectTemplateModule()','error','filter','engine','meteor','cwd','base64','Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20','readFileSync','.js.tsx','injectAtEndOfFile','type','injectImport','injectIntoCodeBlock','apply','less','utf8','148yyxcge','pathFromApp()','rewriteDestinationPathForType()','Error\x20in\x20injectIntoCodeBlock:\x20','isTemplateForEngine','283078uOvFjL','\x20from\x20\x27','import\x20{\x20','import\x20','Looking\x20for\x20','.tsx','startup','some','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','replace','templates.js','createFile','True','test','imports','slice','reduce','exit','env','807233modigH','Directory\x20','sep','rewriteDestinationPathForEngine()','readdirSync','pop','png','\x20->','.js.ts','split','injectAtBeginningOfFile()','from\x20\x27','isFile','splice','json','yaml','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','--release\x20','stringify','push','[\x5cs\x5cS]*?)(','\x20create\x20','.meteor','ssr','File\x20not\x20found:\x20','isTemplateForEngine()','template()','mpi','repeat','normalize','existsSync','MAKA_DEV','templateContent()','createEmptyMeteorProject','indexOf','getInstance','rewriteDestinationPathForType','findAppDirectory','rewriteSourcePathForEngine','2926945wSeKkK','trim','Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues','\x20from','injectAfterLineNumber()','template','pathFromApp','templateContent','instance','fileContainsString','platform','client','ico','injectAtEndOfFile()','.js','createDirectory','startsWith','adjustIndentation','writeFileSync','match','rewriteDestinationPathForEngine','noRename','win32','header','While\x20injecting\x20','pathFromTemplates','jsx','message','injectTemplateModule','--minimal','concat','join','rewriteSourcePathForEngine()','forEach','none','54xaFYNZ','23101911jncLLX','calculateMode','isArray','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','injectIntoFile()','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20','alpha','engineAndTypeFromfilePath()','.jsx','771816IdLhpP','\x27;\x0a','.git','scss','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20','2847poKaDh','html','\x20}\x20from\x20\x27','relative','keys','release','length','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','templates','tsx','(((.+)+)+)+$','engineAndTypeFromfilePath','isDirectory','\x20updated\x20file\x20','getCommonIndentSize','css'];a162c=function(){return a7;};return a162c();}import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a162d;process[y(0x12c)][y(0x14c)]===y(0x126)&&Log[y(0x1a4)]('Error\x20in\x20'+a),b&&console[y(0x1a4)](b);},isWin=process[a162z(0x15e)]===a162z(0x16a),treeSymbol=isWin?a162z(0x134):'\x20┗';export class Scaffold{static [a162z(0x15c)];[a162z(0x1a2)];[a162z(0x148)];constructor(a,b){const A=a162z;this[A(0x1a2)]=a,this['mpi']=b;}static[a162z(0x150)](a,b){const B=a162z;return!Scaffold[B(0x15c)]&&(Scaffold[B(0x15c)]=new Scaffold(a,b)),Scaffold['instance'];}async[a162z(0x14e)](a,b){const C=a162z;b[C(0x1a8)]=b[C(0x1a8)]||'.';const c=a162e['join'](b[C(0x1a8)],a),d=a162e[C(0x173)](c,C(0x143));if(this[C(0x1a2)][C(0x192)](d))throw new Error('Meteor\x20project\x20already\x20exists\x20at\x20'+JSON['stringify'](c));const e=C(0x171),f=a162e['join'](b[C(0x1a8)]),g=a162g['promisify'](exec),h=b[C(0x18b)]?C(0x13e)+b[C(0x18b)]:'';b[C(0x18b)]&&b[C(0x18b)][C(0x1a1)](C(0x17e))&&(Log[C(0x198)](C(0x17d)+b[C(0x18b)]),Log['warn'](C(0x156)));try{await g(this[C(0x148)]['meteor']+C(0x142)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[C(0x1a4)]('\x0a'+k[C(0x16f)]);throw k;}const i=a162e['join'](f,a);if(!a162f['existsSync'](i))throw new Error(C(0x12e)+i+'\x20doesn\x27t\x20exist');const j=a162f[C(0x131)](i);for(const l of j){if(l!==C(0x183)&&l!==C(0x143)){const m=a162e[C(0x173)](i,l);await a162h(m,{'force':!![]});}}}[a162z(0x191)]({filePath:a}){const D=a162z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[D(0x167)](b);c=c&&c[0x0][D(0x136)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[D(0x132)](),f=c['pop']()||d;if(d)d=d[D(0x123)]('.','');if(f)f=f[D(0x123)]('.','');return{'type':f,'engine':d};}catch(g){errorHandler(D(0x17f),g),process[D(0x12b)](0x1);}}['rewriteDestinationPathForType']({pathParts:a,config:b}){const E=a162z;try{const c=a[E(0x173)](a162e[E(0x12f)]),d=this['engineAndTypeFromfilePath']({'filePath':c})['type'],f=b?.['engines'][d],g=new RegExp('\x5c.'+d+E(0x1a0));return!d||!f?c:c['replace'](g,'.'+d);}catch(h){errorHandler(E(0x117),h),process['exit'](0x1);}}[a162z(0x119)]({pathParts:a,config:b}){const F=a162z;try{if(!b)throw new Error(F(0x17b));const c=a['join'](a162e[F(0x12f)]),d=this[F(0x191)]({'filePath':c});if(!d[F(0x1ae)]||!d[F(0x1a6)])return!![];const f=b[F(0x19f)][d[F(0x1ae)]];if(!f)return!![];return f===d['engine'];}catch(g){errorHandler(F(0x146),g),process[F(0x12b)](0x1);}}['writeSourcePath']({pathParts:pathParts=[]}){const G=a162z;return pathParts[G(0x173)](a162e[G(0x12f)]);}[a162z(0x168)]({pathParts:pathParts=[],config:a}){const H=a162z;try{const b=pathParts[H(0x173)](a162e['sep']),c=this[H(0x191)]({'filePath':b})[H(0x1ae)],d=a?.[H(0x19f)][c],f=new RegExp('\x5c.'+c+H(0x1a0));return!c||!d?b:b[H(0x123)](f,'.'+d);}catch(g){errorHandler(H(0x130),g),process['exit'](0x1);}}[a162z(0x153)]({pathParts:pathParts=[],framework:framework=a162z(0x1a7),config:a}){const I=a162z;try{const b=a162e[I(0x14a)](pathParts[I(0x173)](a162e['sep']));if(!b['endsWith'](I(0x162)))return b;const c='js';if(!a?.[I(0x19f)]||!a?.[I(0x19f)][c])return b;const d=a[I(0x19f)][c],f=d==='tsx'?[I(0x1ac),I(0x135),I(0x162)]:['.js.jsx',I(0x162)];for(const g of f){const h=b[I(0x123)](/\.js$/,g),i=a162e['join'](I(0x18e),framework,h),j=a162e[I(0x14a)](a162e[I(0x173)](global[I(0x19e)],i));if(a162f[I(0x14b)](j))return h;}return b;}catch(k){errorHandler(I(0x174),k),process[I(0x12b)](0x1);}}['pathFromTemplates']({pathParts:a,framework:framework=a162z(0x1a7),config:b}){const J=a162z;try{const c=this['rewriteSourcePathForEngine']({'pathParts':a,'framework':framework,'config':b}),d=a162e[J(0x173)]('src/templates/'+framework,c),f=a162e[J(0x173)](global[J(0x19e)],'..',d);return f;}catch(g){errorHandler('pathFromTemplates()',g),process[J(0x12b)](0x1);}}[a162z(0x15b)]({srcPath:a,context:b,framework:c,config:d}){const K=a162z;try{let f=this[K(0x16d)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this[K(0x191)]({'filePath':f}),h=[K(0x195),K(0x184),K(0x1b2),K(0x187),'js',K(0x16e),'ts','tsx',K(0x13b),K(0x12c),K(0x13c),K(0x159)],i=['png',K(0x160)];if(!this[K(0x1a2)]['isFile'](f)){g===K(0x16e)&&(f=f[K(0x123)](K(0x180),''));g===K(0x18f)&&(f=f[K(0x123)](K(0x11f),''));if(!this[K(0x1a2)][K(0x139)](f))throw new Error(K(0x1aa)+JSON[K(0x13f)](f));}const j=f[K(0x136)]('.'),k=a162e['normalize'](f)[K(0x136)](a162e[K(0x12f)]),l=k[k[K(0x18c)]-0x1]==='Dockerfile',m=i['includes'](j[j[K(0x18c)]-0x1]),n=a162f['readFileSync'](f);if(l)return a162i['render'](n['toString'](),b)[K(0x155)]();if(m)return Buffer['from'](n)['toString'](K(0x1a9));if(!h[K(0x1a1)](j[j[K(0x18c)]-0x1]))return n[K(0x19c)]()['trim']();return a162i['render'](n['toString'](),b||{})[K(0x155)]();}catch(o){errorHandler(K(0x14d),o),process[K(0x12b)](0x1);}}async['template']({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const L=a162z;try{const g=[L(0x133),L(0x160)],h=g[L(0x1a1)](a[L(0x136)]('.')[L(0x132)]()||''),i=this[L(0x15b)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[L(0x169)]?b=this[L(0x151)]({'pathParts':[b],'config':d}):b=this[L(0x168)]({'pathParts':[b],'config':d});const j=await this[L(0x1a2)]['createFile']({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(L(0x147),k),process['exit'](0x1);}}async[a162z(0x19b)]({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const M=a162z;try{const i=this[M(0x16d)]({'pathParts':[a],'framework':g,'config':h}),j=this[M(0x16d)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const N=M;return n[N(0x123)](j,'');},l=n=>{const O=M;return n[O(0x123)](i,b);};await this[M(0x1a2)][M(0x163)]({'dirPath':b});const m=a162f['readdirSync'](i);for(const n of m){try{const o=a162e[M(0x173)](i,n),p=k(o),q=l(o),r=d['map'](t=>a162e[M(0x14a)](t)),s=a162e[M(0x14a)](a162e[M(0x173)](a,n));if(r[M(0x1a1)](s))continue;if(this[M(0x1a2)]['isDirectory'](o))await this[M(0x19b)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this['fsi'][M(0x139)](o)&&this[M(0x119)]({'pathParts':[o],'config':h}))await this[M(0x159)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[M(0x14f)](a162e[M(0x173)](a,n))>=0x0&&this[M(0x1a2)][M(0x139)](o)&&(c[M(0x169)]=!![],await this[M(0x159)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c['noRename']=![]);}}catch(t){console['error'](t),process[M(0x12b)](0x1);}}}catch(u){errorHandler('copyTemplateDirectory()',u),process[M(0x12b)](0x1);}}async['injectAtBeginningOfFile']({filePath:a,content:b,opts:c}){const P=a162z;if(!a)throw new Error(P(0x122));try{!this[P(0x1a2)][P(0x139)](a)&&await this[P(0x1a2)][P(0x125)]({'filePath':a,'data':b});let d=a162f[P(0x1ab)](a,P(0x1b3));d=b+'\x0a'+d,a162f[P(0x166)](a,d),c?.['verbose']&&Log['header'](treeSymbol+P(0x193)+a162e['relative'](process[P(0x1a8)](),a));}catch(f){errorHandler(P(0x137),f),process[P(0x12b)](0x1);}}async[a162z(0x1ad)]({filePath:a,content:b,opts:c}){const Q=a162z;try{if(!this[Q(0x1a2)]['isFile'](a))await this['fsi'][Q(0x125)]({'filePath':a,'data':b});else{let d=a162f[Q(0x1ab)](a,'utf8');!d['includes'](b)&&(d=d+'\x0a'+b,a162f['writeFileSync'](a,d)),c?.['verbose']&&Log[Q(0x16b)](treeSymbol+Q(0x193)+a162e['relative'](process[Q(0x1a8)](),a));}}catch(f){errorHandler(Q(0x161),f),process[Q(0x12b)](0x1);}}async['injectAroundString']({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const R=a162z;try{if(!this[R(0x1a2)]['isFile'](a))throw Log[R(0x1a4)]('No\x20file\x20found\x20at\x20path\x20'+JSON[R(0x13f)](a));const f=a162f[R(0x1ab)](a,R(0x1b3)),g=f[R(0x123)](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[R(0x196)](h),k=b[R(0x123)](/\r\n|\r/g,'\x0a')[R(0x136)]('\x0a'),l=c[R(0x123)](/\r\n|\r/g,'\x0a')[R(0x136)]('\x0a'),m=new RegExp(Array[R(0x17a)](d)?d[R(0x173)]('|'):d,'i'),n=[];for(let p=0x0;p<h[R(0x18c)];p++){const q=h[p];if(m[R(0x127)](q)){const r=this[R(0x165)](j,targetIndentAdjustment),s=r+q[R(0x155)]();k[R(0x175)](t=>{const S=R;!g['includes'](t[S(0x155)]())&&n[S(0x140)](this[S(0x165)](j,indentAdjustment)+t);}),n[R(0x140)](s),l[R(0x175)](t=>{const T=R;!g['includes'](t['trim']())&&n[T(0x140)](this[T(0x165)](j,indentAdjustment)+t);});}else n[R(0x140)](q);}const o=n[R(0x173)]('\x0a');a162f['writeFileSync'](a,o),Log[R(0x16b)](treeSymbol+R(0x193)+a162e[R(0x189)](process[R(0x1a8)](),a));}catch(t){errorHandler('injectAroundString()',t),process[R(0x12b)](0x1);}}[a162z(0x165)](a,b){const U=a162z;if(b===0x0)return a;const c=a[U(0x18c)]+b;return c>0x0?a[0x0][U(0x149)](c):'';}['detectIndentation'](a){const V=a162z;let b=0x0,c=0x0;a[V(0x175)](f=>{const W=V;if(f[W(0x164)]('\x20'))b++;else f[W(0x164)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[V(0x194)](a,d);return d[V(0x149)](e);}[a162z(0x194)](a,b){const X=a162z,c=a[X(0x1a5)](d=>d&&d[X(0x164)](b))['map'](d=>{const Y=X,e=d['match'](new RegExp('^'+b+'+'));return e?e[0x0][Y(0x18c)]:0x0;});if(c[X(0x18c)]===0x0)return 0x0;return this[X(0x179)](c);}[a162z(0x179)](a){const Z=a162z,b=a[Z(0x12a)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Z(0x18a)](b)[Z(0x12a)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162z(0x1b0)]({filePath:a,content:b,begin:c,replace:replace=![]}){const a0=a162z;try{if(!this['fsi'][a0(0x139)](a))throw new Error(a0(0x145)+a);const d=a162f['readFileSync'](a,'utf8'),f=d[a0(0x136)]('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array[a0(0x17a)](c)?c:[c];for(let o=0x0;o<f[a0(0x18c)];o++){const p=f[o];k&&p[a0(0x1a1)]('{')&&j++;if(m[a0(0x121)](q=>p[a0(0x1a1)](q))){g=o,k=!![],j++;continue;}if(k){p[a0(0x1a1)](b[a0(0x155)]())&&(l=!![]);if(p['includes']('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[a0(0x1a4)](a0(0x185)+a),Log[a0(0x1a4)](a0(0x16c)+b),Log[a0(0x1a4)](a0(0x11e)+c);throw new Error(a0(0x18d));}if(l)return;let n=f[a0(0x129)](0x0,g+0x1);replace?(n[a0(0x140)](b[a0(0x155)]()),n[a0(0x140)](f[h])):(n=n[a0(0x172)](f['slice'](g+0x1,h)),n['push'](b['trim']())),n=n[a0(0x172)](f[a0(0x129)](h+0x1)),a162f[a0(0x166)](a,n['join']('\x0a'),a0(0x1b3));}catch(q){console[a0(0x1a4)](a0(0x118),q);throw q;}}async['injectIntoFile']({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a1=a162z;try{const g=await this[a1(0x1a2)][a1(0x15d)](a,c);if(g)return;if(!this[a1(0x1a2)]['isFile'](a))throw Log['error'](a1(0x13d)+JSON[a1(0x13f)](a));const h=a162f[a1(0x1ab)](a,'utf8');if(!Array['isArray'](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(0x141)+l+')','i');i=h[a1(0x123)](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('No\x20matching\x20section\x20found.');a162f[a1(0x166)](a,i),Log[a1(0x16b)](treeSymbol+a1(0x193)+a162e[a1(0x189)](process[a1(0x1a8)](),a));}catch(n){errorHandler(a1(0x17c),n),process[a1(0x12b)](0x1);}}async[a162z(0x1af)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a2=a162z;try{const f=a162f['readFileSync'](a,a2(0x1b3));let g;d?g=a2(0x11c)+b+a2(0x188)+c+a2(0x182):g=a2(0x11d)+b+a2(0x11b)+c+a2(0x182);const h=f[a2(0x136)]('\x0a');let j=0x0,k=![];for(const m of h){if(m['includes'](a2(0x138)+c+'\x27')||m[a2(0x1a1)]('from\x20\x22'+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a2(0x11d)+b+a2(0x157));if(m[a2(0x167)](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a2(0x18c)];o++){if(h[o][a2(0x167)](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a2(0x18c)];p++){h[p][a2(0x167)](/^import .* from .*;$/)&&(j=p);}j++;}h[a2(0x13a)](j,0x0,g);const l=h[a2(0x173)]('\x0a');a162f[a2(0x166)](a,l,'utf8');}catch(q){errorHandler('injectImport()',q),process[a2(0x12b)](0x1);}}async[a162z(0x170)](a,b,c){const a3=a162z;try{let d;b[a3(0x19f)][a3(0x144)]!==a3(0x176)?d=this[a3(0x15a)]({'pathParts':[a3(0x128),a3(0x120),'lib','templates.js'],'config':b}):d=this[a3(0x15a)]({'pathParts':[a3(0x128),a3(0x120),a3(0x15f),a3(0x124)],'config':b});const f=this[a3(0x168)]({'pathParts':[d],'config':b}),g='export\x20{\x20'+pascalCase(a)+a3(0x188)+c+'\x27;',h=await this['fsi'][a3(0x15d)](f,g);!h&&this[a3(0x1ad)]({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a3(0x1a3),i),process['exit'](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const a4=a162z;try{const d=a162f['readFileSync'](a)['toString']()[a4(0x136)]('\x0a');d[a4(0x13a)](c,0x0,b);const f=d[a4(0x173)]('\x0a');a162f[a4(0x166)](a,f);}catch(g){errorHandler(a4(0x158),g),process[a4(0x12b)](0x1);}}[a162z(0x15a)]({pathParts:a,config:b}){const a5=a162z;try{if(!a)throw new Error(a5(0x19a));const c=this[a5(0x153)]({'pathParts':a,'config':b}),d=this['fsi'][a5(0x152)]();return d?a162e[a5(0x173)](d,c):'';}catch(f){errorHandler(a5(0x116),f),process['exit'](0x1);}}['pathFromAppWithNoReWrite']({pathParts:a,config:b}){const a6=a162z;try{const c=this[a6(0x199)]({'pathParts':a,'config':b}),d=this[a6(0x1a2)][a6(0x152)]();if(!d)throw new Error('No\x20app\x20directory\x20found');return a162e[a6(0x173)](d,c);}catch(f){errorHandler('pathFromAppWithNoReWrite()',f),process[a6(0x12b)](0x1);}}}
1
+ const a162z=a162d;(function(a,b){const v=a162d,c=a();while(!![]){try{const d=-parseInt(v(0x128))/0x1+parseInt(v(0x137))/0x2*(parseInt(v(0x150))/0x3)+parseInt(v(0x13c))/0x4*(parseInt(v(0x11d))/0x5)+-parseInt(v(0x147))/0x6*(parseInt(v(0x163))/0x7)+-parseInt(v(0x174))/0x8+-parseInt(v(0x16c))/0x9+parseInt(v(0x184))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a162c,0xeea74));const a162b=(function(){let a=!![];return function(b,c){const d=a?function(){const w=a162d;if(c){const e=c[w(0x181)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a162a=a162b(this,function(){const x=a162d;return a162a['toString']()[x(0x10d)](x(0x14d))[x(0x151)]()[x(0x131)](a162a)[x(0x10d)]('(((.+)+)+)+$');});a162a();import a162e from'path';function a162d(a,b){const c=a162c();return a162d=function(d,e){d=d-0xef;let f=c[d];return f;},a162d(a,b);}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';import{Log}from'../log/log.class.js';const errorHandler=(a,b)=>{const y=a162d;process['env']['MAKA_DEV']===y(0x106)&&Log[y(0x166)](y(0x17e)+a),b&&console['error'](b);},isWin=process[a162z(0x113)]==='win32',treeSymbol=isWin?'\x20->':'\x20┗';function a162c(){const a6=['startsWith','instance','pathFromAppWithNoReWrite','Error\x20in\x20','No\x20file\x20found\x20at\x20path\x20','indexOf','apply','from\x20\x22','injectTemplateModule()','9769560GGEGqj','engineAndTypeFromfilePath','Dockerfile','header','.js.tsx','Meteor\x20project\x20already\x20exists\x20at\x20','src/templates/','json','repeat','isDirectory','templates','length','\x20updated\x20file\x20','render','templates.js','No\x20filePath\x20provided\x20to\x20injectAtBeginningOfFile()','.git','readFileSync','isArray','template','join','pathFromAppWithNoReWrite()','.tsx','pathFromApp()','createDirectory','No\x20pathParts\x20option\x20provided','--minimal','existsSync','.meteor','calculateMode','tsx','map','push','jsx','.js','True','mpi','exit','includes','splice','less','startup','search','test','Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content.','keys','injectAtEndOfFile','reduce','platform','injectAfterLineNumber()','\x20create\x20','adjustIndentation','injectAroundString','Directory\x20','noRename','isFile','copyTemplateDirectory()','writeFileSync','1591130vMFFzr','scss','rewriteDestinationPathForType()','css','Looking\x20for\x20','No\x20file\x20found\x20to\x20inject\x20content\x20into\x20at\x20path\x20','export\x20{\x20','stringify','utf8','createEmptyMeteorProject','rewriteDestinationPathForEngine()','1039425GxKshg','rewriteSourcePathForEngine','.jsx','warn','sep','templateContent','from\x20\x27','\x27;\x0a','meteor','constructor','fsi','No\x20configuration\x20so\x20can\x27t\x20determine\x20engines.','relative','Error\x20in\x20injectIntoCodeBlock:\x20','writeSourcePath','10xwPDwi','detectIndentation','type','rewriteDestinationPathForEngine','createFile','20xKYnQS','release','import\x20','copyTemplateDirectory','match','While\x20injecting\x20','injectIntoCodeBlock','yaml','.js.jsx','pop','replace','3379638XxsxIF','slice','fileContainsString','injectAtBeginningOfFile()','png','--release\x20','(((.+)+)+)+$','templateContent()','engines','1096383zrJaKM','toString','injectAtEndOfFile()','template()','rewriteSourcePathForEngine()','injectImport','[\x5cs\x5cS]*?)(','imports','getCommonIndentSize','concat','some','trim','promisify','.js.ts','message','isTemplateForEngine','MAKA_COMMAND_PATH','findAppDirectory','ico','7yTiWcu','pathFromTemplates','rewriteDestinationPathForType','error','injectImport()','import\x20{\x20','engine','\x5cS*$','html','6231978eaoxOX','forEach','env','normalize','cwd','alpha','isTemplateForEngine()','getInstance','8981816YkVMjA','injectAtBeginningOfFile','filter','pathFromApp','\x20}\x20from\x20\x27','split','Creating\x20a\x20new\x20Meteor\x20project\x20with\x20an\x20alpha\x20release:\x20'];a162c=function(){return a6;};return a162c();}export class Scaffold{static [a162z(0x17c)];[a162z(0x132)];['mpi'];constructor(a,b){const A=a162z;this[A(0x132)]=a,this['mpi']=b;}static[a162z(0x173)](a,b){return!Scaffold['instance']&&(Scaffold['instance']=new Scaffold(a,b)),Scaffold['instance'];}async[a162z(0x126)](a,b){const B=a162z;b['cwd']=b[B(0x170)]||'.';const c=a162e[B(0xf7)](b['cwd'],a),d=a162e['join'](c,B(0xff));if(this[B(0x132)]['isDirectory'](d))throw new Error(B(0x189)+JSON[B(0x124)](c));const e=B(0xfd),f=a162e[B(0xf7)](b[B(0x170)]),g=a162g[B(0x15c)](exec),h=b[B(0x13d)]?B(0x14c)+b[B(0x13d)]:'';b[B(0x13d)]&&b[B(0x13d)][B(0x109)](B(0x171))&&(Log[B(0x12b)](B(0x17a)+b[B(0x13d)]),Log[B(0x12b)]('Please\x20report\x20any\x20issues\x20to\x20https://github.com/maka-io/maka-cli/issues'));try{await g(this[B(0x107)][B(0x130)]+B(0x115)+a+'\x20'+e+'\x20'+h,{'cwd':f});}catch(k){Log[B(0x166)]('\x0a'+k[B(0x15e)]);throw k;}const i=a162e[B(0xf7)](f,a);if(!a162f[B(0xfe)](i))throw new Error(B(0x118)+i+'\x20doesn\x27t\x20exist');const j=a162f['readdirSync'](i);for(const l of j){if(l!==B(0xf3)&&l!==B(0xff)){const m=a162e[B(0xf7)](i,l);await a162h(m,{'force':!![]});}}}[a162z(0x185)]({filePath:a}){const C=a162z;try{const b=/\.([A-Za-z0-9.]+)$/g;let c=a[C(0x140)](b);c=c&&c[0x0][C(0x179)]('.',0x3);if(!c)return{'type':undefined,'engine':undefined};let d=c[C(0x145)](),f=c[C(0x145)]()||d;if(d)d=d[C(0x146)]('.','');if(f)f=f['replace']('.','');return{'type':f,'engine':d};}catch(g){errorHandler('engineAndTypeFromfilePath()',g),process[C(0x108)](0x1);}}[a162z(0x165)]({pathParts:a,config:b}){const D=a162z;try{const c=a[D(0xf7)](a162e[D(0x12c)]),d=this[D(0x185)]({'filePath':c})['type'],f=b?.[D(0x14f)][d],g=new RegExp('\x5c.'+d+D(0x16a));return!d||!f?c:c[D(0x146)](g,'.'+d);}catch(h){errorHandler(D(0x11f),h),process[D(0x108)](0x1);}}[a162z(0x15f)]({pathParts:a,config:b}){const E=a162z;try{if(!b)throw new Error(E(0x133));const c=a['join'](a162e['sep']),d=this[E(0x185)]({'filePath':c});if(!d[E(0x139)]||!d[E(0x169)])return!![];const f=b['engines'][d[E(0x139)]];if(!f)return!![];return f===d[E(0x169)];}catch(g){errorHandler(E(0x172),g),process[E(0x108)](0x1);}}[a162z(0x136)]({pathParts:pathParts=[]}){const F=a162z;return pathParts[F(0xf7)](a162e[F(0x12c)]);}[a162z(0x13a)]({pathParts:pathParts=[],config:a}){const G=a162z;try{const b=pathParts[G(0xf7)](a162e['sep']),c=this[G(0x185)]({'filePath':b})[G(0x139)],d=a?.[G(0x14f)][c],f=new RegExp('\x5c.'+c+G(0x16a));return!c||!d?b:b[G(0x146)](f,'.'+d);}catch(g){errorHandler(G(0x127),g),process[G(0x108)](0x1);}}['rewriteSourcePathForEngine']({pathParts:pathParts=[],framework:framework=a162z(0x130),config:a}){const H=a162z;try{const b=a162e[H(0x16f)](pathParts['join'](a162e['sep']));if(!b['endsWith'](H(0x105)))return b;const c='js';if(!a?.[H(0x14f)]||!a?.[H(0x14f)][c])return b;const d=a['engines'][c],f=d===H(0x101)?[H(0x188),H(0x15d),H(0x105)]:[H(0x144),'.js'];for(const g of f){const h=b['replace'](/\.js$/,g),i=a162e['join'](H(0x18e),framework,h),j=a162e[H(0x16f)](a162e[H(0xf7)](global[H(0x160)],i));if(a162f[H(0xfe)](j))return h;}return b;}catch(k){errorHandler(H(0x154),k),process[H(0x108)](0x1);}}[a162z(0x164)]({pathParts:a,framework:framework=a162z(0x130),config:b}){const I=a162z;try{const c=this[I(0x129)]({'pathParts':a,'framework':framework,'config':b}),d=a162e[I(0xf7)](I(0x18a)+framework,c),f=a162e[I(0xf7)](global[I(0x160)],'..',d);return f;}catch(g){errorHandler('pathFromTemplates()',g),process[I(0x108)](0x1);}}[a162z(0x12d)]({srcPath:a,context:b,framework:c,config:d}){const J=a162z;try{let f=this[J(0x164)]({'pathParts':[a],'framework':c,'config':d});const {engine:g}=this['engineAndTypeFromfilePath']({'filePath':f}),h=[J(0x120),J(0x11e),J(0x10b),J(0x16b),'js',J(0x104),'ts',J(0x101),J(0x18b),J(0x16e),J(0x143),J(0xf6)],i=['png',J(0x162)];if(!this['fsi']['isFile'](f)){g===J(0x104)&&(f=f['replace'](J(0x12a),''));g===J(0x101)&&(f=f['replace'](J(0xf9),''));if(!this['fsi']['isFile'](f))throw new Error('Couldn\x27t\x20find\x20a\x20source\x20template\x20in\x20'+JSON[J(0x124)](f));}const j=f[J(0x179)]('.'),k=a162e[J(0x16f)](f)[J(0x179)](a162e[J(0x12c)]),l=k[k['length']-0x1]===J(0x186),m=i[J(0x109)](j[j[J(0x18f)]-0x1]),n=a162f['readFileSync'](f);if(l)return a162i[J(0xf0)](n[J(0x151)](),b)['trim']();if(m)return Buffer['from'](n)[J(0x151)]('base64');if(!h[J(0x109)](j[j['length']-0x1]))return n[J(0x151)]()[J(0x15b)]();return a162i['render'](n[J(0x151)](),b||{})[J(0x15b)]();}catch(o){errorHandler(J(0x14e),o),process[J(0x108)](0x1);}}async[a162z(0xf6)]({srcPath:a,destPath:b,context:c,config:d,framework:f,force:force=![],ignore:ignore=![]}){const K=a162z;try{const g=[K(0x14b),'ico'],h=g[K(0x109)](a[K(0x179)]('.')['pop']()||''),i=this[K(0x12d)]({'srcPath':a,'context':c,'framework':f,'config':d})+'\x0a';c?.[K(0x119)]?b=this[K(0x165)]({'pathParts':[b],'config':d}):b=this[K(0x13a)]({'pathParts':[b],'config':d});const j=await this[K(0x132)]['createFile']({'filePath':b,'data':i,'opts':{'force':force,'isImage':h,'absolute':![],'ignore':ignore}});return j;}catch(k){errorHandler(K(0x153),k),process[K(0x108)](0x1);}}async['copyTemplateDirectory']({srcPath:a,destPath:b,context:c,ignore:d,keep:f,framework:g,config:h}){const L=a162z;try{const i=this[L(0x164)]({'pathParts':[a],'framework':g,'config':h}),j=this[L(0x164)]({'pathParts':[],'framework':g,'config':h}),k=n=>{const M=L;return n[M(0x146)](j,'');},l=n=>{const N=L;return n[N(0x146)](i,b);};await this['fsi'][L(0xfb)]({'dirPath':b});const m=a162f['readdirSync'](i);for(const n of m){try{const o=a162e[L(0xf7)](i,n),p=k(o),q=l(o),r=d[L(0x102)](t=>a162e[L(0x16f)](t)),s=a162e['normalize'](a162e[L(0xf7)](a,n));if(r[L(0x109)](s))continue;if(this['fsi'][L(0x18d)](o))await this[L(0x13f)]({'srcPath':p,'destPath':q,'context':c,'ignore':d,'keep':f,'framework':g,'config':h});else{if(this[L(0x132)][L(0x11a)](o)&&this[L(0x15f)]({'pathParts':[o],'config':h}))await this['template']({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h});else f[L(0x180)](a162e['join'](a,n))>=0x0&&this[L(0x132)][L(0x11a)](o)&&(c[L(0x119)]=!![],await this[L(0xf6)]({'srcPath':p,'destPath':q,'context':c,'framework':g,'config':h}),c['noRename']=![]);}}catch(t){console[L(0x166)](t),process['exit'](0x1);}}}catch(u){errorHandler(L(0x11b),u),process[L(0x108)](0x1);}}async[a162z(0x175)]({filePath:a,content:b,opts:c}){const O=a162z;if(!a)throw new Error(O(0xf2));try{!this['fsi'][O(0x11a)](a)&&await this[O(0x132)][O(0x13b)]({'filePath':a,'data':b});let d=a162f[O(0xf4)](a,'utf8');d=b+'\x0a'+d,a162f[O(0x11c)](a,d),c?.['verbose']&&Log[O(0x187)](treeSymbol+O(0xef)+a162e[O(0x134)](process['cwd'](),a));}catch(f){errorHandler(O(0x14a),f),process['exit'](0x1);}}async[a162z(0x111)]({filePath:a,content:b,opts:c}){const P=a162z;try{if(!this['fsi']['isFile'](a))await this[P(0x132)]['createFile']({'filePath':a,'data':b});else{let d=a162f[P(0xf4)](a,'utf8');!d[P(0x109)](b)&&(d=d+'\x0a'+b,a162f['writeFileSync'](a,d)),c?.['verbose']&&Log[P(0x187)](treeSymbol+P(0xef)+a162e[P(0x134)](process['cwd'](),a));}}catch(f){errorHandler(P(0x152),f),process[P(0x108)](0x1);}}async[a162z(0x117)]({filePath:a,aboveContent:b,belowContent:c,targetString:d,indentAdjustment:indentAdjustment=0x0,targetIndentAdjustment:targetIndentAdjustment=0x0}){const Q=a162z;try{if(!this['fsi'][Q(0x11a)](a))throw Log[Q(0x166)](Q(0x17f)+JSON['stringify'](a));const f=a162f['readFileSync'](a,'utf8'),g=f['replace'](/\r\n|\r/g,'\x0a'),h=g['split']('\x0a'),j=this[Q(0x138)](h),k=b[Q(0x146)](/\r\n|\r/g,'\x0a')[Q(0x179)]('\x0a'),l=c['replace'](/\r\n|\r/g,'\x0a')[Q(0x179)]('\x0a'),m=new RegExp(Array[Q(0xf5)](d)?d['join']('|'):d,'i'),n=[];for(let p=0x0;p<h['length'];p++){const q=h[p];if(m[Q(0x10e)](q)){const r=this[Q(0x116)](j,targetIndentAdjustment),s=r+q[Q(0x15b)]();k['forEach'](t=>{const R=Q;!g[R(0x109)](t[R(0x15b)]())&&n[R(0x103)](this['adjustIndentation'](j,indentAdjustment)+t);}),n['push'](s),l[Q(0x16d)](t=>{const S=Q;!g['includes'](t['trim']())&&n['push'](this[S(0x116)](j,indentAdjustment)+t);});}else n[Q(0x103)](q);}const o=n['join']('\x0a');a162f[Q(0x11c)](a,o),Log['header'](treeSymbol+Q(0xef)+a162e['relative'](process[Q(0x170)](),a));}catch(t){errorHandler('injectAroundString()',t),process[Q(0x108)](0x1);}}[a162z(0x116)](a,b){const T=a162z;if(b===0x0)return a;const c=a[T(0x18f)]+b;return c>0x0?a[0x0][T(0x18c)](c):'';}[a162z(0x138)](a){const U=a162z;let b=0x0,c=0x0;a[U(0x16d)](f=>{const V=U;if(f[V(0x17b)]('\x20'))b++;else f[V(0x17b)]('\x09')&&c++;});const d=b>=c?'\x20':'\x09',e=this[U(0x158)](a,d);return d['repeat'](e);}[a162z(0x158)](a,b){const W=a162z,c=a[W(0x176)](d=>d&&d[W(0x17b)](b))['map'](d=>{const X=W,e=d[X(0x140)](new RegExp('^'+b+'+'));return e?e[0x0][X(0x18f)]:0x0;});if(c[W(0x18f)]===0x0)return 0x0;return this[W(0x100)](c);}['calculateMode'](a){const Y=a162z,b=a[Y(0x112)]((c,d)=>{return c[d]=(c[d]||0x0)+0x1,c;},{});return Object[Y(0x110)](b)[Y(0x112)]((c,d)=>{const e=b[+c],f=b[+d];return e>f?+c:+d;},0x0);}async[a162z(0x142)]({filePath:a,content:b,begin:c,replace:replace=![]}){const Z=a162z;try{if(!this[Z(0x132)][Z(0x11a)](a))throw new Error('File\x20not\x20found:\x20'+a);const d=a162f[Z(0xf4)](a,Z(0x125)),f=d['split']('\x0a');let g=-0x1,h=-0x1,j=0x0,k=![],l=![];const m=Array['isArray'](c)?c:[c];for(let o=0x0;o<f[Z(0x18f)];o++){const p=f[o];k&&p['includes']('{')&&j++;if(m[Z(0x15a)](q=>p[Z(0x109)](q))){g=o,k=!![],j++;continue;}if(k){p['includes'](b[Z(0x15b)]())&&(l=!![]);if(p['includes']('}')){j--;if(j===0x0){h=o;break;}}}}if(g===-0x1||h===-0x1){Log[Z(0x166)]('Unable\x20to\x20find\x20the\x20target\x20block\x20to\x20inject\x20content\x20in\x20'+a),Log['error'](Z(0x141)+b),Log[Z(0x166)](Z(0x121)+c);throw new Error(Z(0x10f));}if(l)return;let n=f[Z(0x148)](0x0,g+0x1);replace?(n['push'](b[Z(0x15b)]()),n[Z(0x103)](f[h])):(n=n[Z(0x159)](f['slice'](g+0x1,h)),n[Z(0x103)](b[Z(0x15b)]())),n=n['concat'](f[Z(0x148)](h+0x1)),a162f['writeFileSync'](a,n[Z(0xf7)]('\x0a'),Z(0x125));}catch(q){console[Z(0x166)](Z(0x135),q);throw q;}}async['injectIntoFile']({filePath:a,content:c,begin:d,end:f,replace:replace=![]}){const a0=a162z;try{const g=await this[a0(0x132)][a0(0x149)](a,c);if(g)return;if(!this[a0(0x132)][a0(0x11a)](a))throw Log[a0(0x166)](a0(0x122)+JSON[a0(0x124)](a));const h=a162f[a0(0xf4)](a,a0(0x125));if(!Array[a0(0xf5)](d))d=[d];if(!Array[a0(0xf5)](f))f=[f];let i=h,j=![];for(const k of d){for(const l of f){const m=new RegExp('('+k+a0(0x156)+l+')','i');i=h[a0(0x146)](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('No\x20matching\x20section\x20found.');a162f['writeFileSync'](a,i),Log['header'](treeSymbol+'\x20updated\x20file\x20'+a162e['relative'](process[a0(0x170)](),a));}catch(n){errorHandler('injectIntoFile()',n),process[a0(0x108)](0x1);}}async[a162z(0x155)]({filePath:a,importName:b,modulePath:c,isNamedExport:d,injectAtStart:injectAtStart=![]}){const a1=a162z;try{const f=a162f[a1(0xf4)](a,a1(0x125));let g;d?g=a1(0x168)+b+a1(0x178)+c+a1(0x12f):g=a1(0x13e)+b+'\x20from\x20\x27'+c+a1(0x12f);const h=f['split']('\x0a');let j=0x0,k=![];for(const m of h){if(m[a1(0x109)](a1(0x12e)+c+'\x27')||m['includes'](a1(0x182)+c+'\x22')){const n=d?new RegExp('\x5cb'+b+'\x5cb','g'):new RegExp(a1(0x13e)+b+'\x20from');if(m['match'](n)){k=!![];break;}}}if(k)return;if(injectAtStart)for(let o=0x0;o<h[a1(0x18f)];o++){if(h[o]['match'](/^import .* from .*;$/)){j=o;break;}}else{for(let p=0x0;p<h[a1(0x18f)];p++){h[p]['match'](/^import .* from .*;$/)&&(j=p);}j++;}h['splice'](j,0x0,g);const l=h[a1(0xf7)]('\x0a');a162f['writeFileSync'](a,l,'utf8');}catch(q){errorHandler(a1(0x167),q),process[a1(0x108)](0x1);}}async['injectTemplateModule'](a,b,c){const a2=a162z;try{let d;b[a2(0x14f)]['ssr']!=='none'?d=this[a2(0x177)]({'pathParts':['imports',a2(0x10c),'lib',a2(0xf1)],'config':b}):d=this[a2(0x177)]({'pathParts':[a2(0x157),a2(0x10c),'client',a2(0xf1)],'config':b});const f=this['rewriteDestinationPathForEngine']({'pathParts':[d],'config':b}),g=a2(0x123)+pascalCase(a)+a2(0x178)+c+'\x27;',h=await this[a2(0x132)][a2(0x149)](f,g);!h&&this['injectAtEndOfFile']({'filePath':f,'content':g+'\x0a'});}catch(i){errorHandler(a2(0x183),i),process[a2(0x108)](0x1);}}['injectAfterLineNumber']({filePath:a,content:b,lineNumber:c}){const a3=a162z;try{const d=a162f[a3(0xf4)](a)[a3(0x151)]()[a3(0x179)]('\x0a');d[a3(0x10a)](c,0x0,b);const f=d['join']('\x0a');a162f[a3(0x11c)](a,f);}catch(g){errorHandler(a3(0x114),g),process[a3(0x108)](0x1);}}['pathFromApp']({pathParts:a,config:b}){const a4=a162z;try{if(!a)throw new Error(a4(0xfc));const c=this[a4(0x129)]({'pathParts':a,'config':b}),d=this[a4(0x132)][a4(0x161)]();return d?a162e[a4(0xf7)](d,c):'';}catch(f){errorHandler(a4(0xfa),f),process[a4(0x108)](0x1);}}[a162z(0x17d)]({pathParts:a,config:b}){const a5=a162z;try{const c=this[a5(0x136)]({'pathParts':a,'config':b}),d=this[a5(0x132)][a5(0x161)]();if(!d)throw new Error('No\x20app\x20directory\x20found');return a162e[a5(0xf7)](d,c);}catch(f){errorHandler(a5(0xf8),f),process[a5(0x108)](0x1);}}}
@@ -1 +1 @@
1
- const a163l=a163d;function a163d(a,b){const c=a163c();return a163d=function(d,e){d=d-0x19a;let f=c[d];return f;},a163d(a,b);}(function(a,b){const j=a163d,c=a();while(!![]){try{const d=parseInt(j(0x1af))/0x1+parseInt(j(0x1a5))/0x2+-parseInt(j(0x1aa))/0x3+parseInt(j(0x1b4))/0x4+-parseInt(j(0x1ab))/0x5*(-parseInt(j(0x1a8))/0x6)+-parseInt(j(0x19d))/0x7*(parseInt(j(0x1a7))/0x8)+-parseInt(j(0x1ac))/0x9*(-parseInt(j(0x19a))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0xe1908));const a163b=(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;};}()),a163a=a163b(this,function(){const k=a163d;return a163a[k(0x19b)]()[k(0x1a9)](k(0x1a2))[k(0x19b)]()[k(0x1b3)](a163a)['search'](k(0x1a2));});a163a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a163l(0x1b0)](a,b,c){return new Promise((d,e)=>{const m=a163d,f=Log[m(0x1b0)](),g=c?.['cwd']||'.';c?.[m(0x1ae)]&&f[m(0x1ad)](c?.[m(0x1ae)]);const h=spawn(a,b,{'cwd':g,'stdio':c?.[m(0x19c)]?m(0x1a0):m(0x1a1)});process['on'](m(0x19e),()=>{const n=m,i=h['pid'];i&&process[n(0x1a6)](i);}),h['on']('data',i=>{const o=m;console[o(0x1b2)](i);}),h['on'](m(0x1b1),()=>{const p=m;c?.[p(0x1ae)]&&f[p(0x1a3)](),d();}),h['on']('close',()=>{const q=m;c?.[q(0x1ae)]&&f['success'](),d();}),h['on'](m(0x1a4),()=>{const r=m;c?.[r(0x1ae)]&&f[r(0x19f)](),e();});});}}function a163c(){const s=['ignore','(((.+)+)+)+$','success','error','2658554zoLTVr','kill','24yVifws','6upxelC','search','4146441KRfwfz','2331140NWbuLw','612poeHHb','start','message','540355bIiUev','withSpinner','disconnect','log','constructor','4596164lYVSvc','78640DMRhZT','toString','verbose','3998386RQMEbb','SIGINT','failure','inherit'];a163c=function(){return s;};return a163c();}
1
+ function a163c(){const t=['message','2080720ProuCo','kill','634669EizGen','apply','log','327850WDZQLY','cwd','2622834dJwRHD','disconnect','535508naCTdW','5VtEDQf','data','start','constructor','(((.+)+)+)+$','inherit','error','1052421hFBqGU','failure','12fUINFp','withSpinner','1bZgSUr','success','379354ctsJJY','search'];a163c=function(){return t;};return a163c();}function a163d(a,b){const c=a163c();return a163d=function(d,e){d=d-0x1c5;let f=c[d];return f;},a163d(a,b);}const a163m=a163d;(function(a,b){const j=a163d,c=a();while(!![]){try{const d=parseInt(j(0x1d2))/0x1*(-parseInt(j(0x1d4))/0x2)+parseInt(j(0x1ce))/0x3+-parseInt(j(0x1c6))/0x4*(-parseInt(j(0x1c7))/0x5)+parseInt(j(0x1d0))/0x6*(-parseInt(j(0x1d9))/0x7)+-parseInt(j(0x1d7))/0x8+parseInt(j(0x1de))/0x9+parseInt(j(0x1dc))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a163c,0x2b682));const a163b=(function(){let a=!![];return function(b,c){const d=a?function(){const k=a163d;if(c){const e=c[k(0x1da)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a163a=a163b(this,function(){const l=a163d;return a163a['toString']()[l(0x1d5)](l(0x1cb))['toString']()[l(0x1ca)](a163a)['search'](l(0x1cb));});a163a();import{spawn}from'child_process';import{Log}from'../log/log.class.js';export class SpawnAsync{static[a163m(0x1d1)](a,b,c){return new Promise((d,e)=>{const n=a163d,f=Log[n(0x1d1)](),g=c?.[n(0x1dd)]||'.';c?.[n(0x1d6)]&&f[n(0x1c9)](c?.['message']);const h=spawn(a,b,{'cwd':g,'stdio':c?.['verbose']?n(0x1cc):'ignore'});process['on']('SIGINT',()=>{const o=n,i=h['pid'];i&&process[o(0x1d8)](i);}),h['on'](n(0x1c8),i=>{const p=n;console[p(0x1db)](i);}),h['on'](n(0x1c5),()=>{const q=n;c?.[q(0x1d6)]&&f[q(0x1d3)](),d();}),h['on']('close',()=>{const r=n;c?.[r(0x1d6)]&&f[r(0x1d3)](),d();}),h['on'](n(0x1cd),()=>{const s=n;c?.[s(0x1d6)]&&f[s(0x1cf)](),e();});});}}
@@ -1 +1 @@
1
- function a164d(a,b){var c=a164c();return a164d=function(d,e){d=d-0x7a;var f=c[d];return f;},a164d(a,b);}(function(a,b){var f=a164d,c=a();while(!![]){try{var d=parseInt(f(0x83))/0x1+parseInt(f(0x7b))/0x2*(parseInt(f(0x84))/0x3)+parseInt(f(0x7c))/0x4*(parseInt(f(0x7d))/0x5)+-parseInt(f(0x81))/0x6+parseInt(f(0x80))/0x7+parseInt(f(0x7a))/0x8*(-parseInt(f(0x82))/0x9)+-parseInt(f(0x7f))/0xa;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0x876af));var a164b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a164d;if(c){var e=c[g(0x87)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){var h=a164d;return a164a[h(0x7e)]()[h(0x86)]('(((.+)+)+)+$')['toString']()[h(0x85)](a164a)[h(0x86)]('(((.+)+)+)+$');});a164a();function a164c(){var i=['387ziWPFb','318785vrZekN','582951iCqgcZ','constructor','search','apply','162616oCMpBS','4uATscM','548020racjbO','35PzrwCy','toString','5984430bVqGVc','6509349igRecD','3415116jxqBVj'];a164c=function(){return i;};return a164c();}export{};
1
+ (function(a,b){var f=a164d,c=a();while(!![]){try{var d=-parseInt(f(0x1d9))/0x1*(-parseInt(f(0x1d6))/0x2)+parseInt(f(0x1da))/0x3+parseInt(f(0x1dc))/0x4+parseInt(f(0x1e0))/0x5+parseInt(f(0x1de))/0x6+-parseInt(f(0x1d7))/0x7+parseInt(f(0x1e3))/0x8*(-parseInt(f(0x1e2))/0x9);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a164c,0xc2a00));var a164b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a164d;if(c){var e=c[g(0x1db)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a164a=a164b(this,function(){var h=a164d;return a164a[h(0x1d8)]()[h(0x1e1)](h(0x1dd))['toString']()[h(0x1df)](a164a)['search'](h(0x1dd));});function a164c(){var i=['(((.+)+)+)+$','8126460ylNsoL','constructor','7433175ZUdnZC','search','855ugrWgj','459552nKocLC','2252NjgLWF','106631SLVgUh','toString','1041TJKUIj','3142218RHKKju','apply','4835920MeYboO'];a164c=function(){return i;};return a164c();}a164a();function a164d(a,b){var c=a164c();return a164d=function(d,e){d=d-0x1d6;var f=c[d];return f;},a164d(a,b);}export{};
@@ -1 +1 @@
1
- function a165c(){const w=['sshVerbose','message','user','constructor','15709950CETCwQ','source','success','silentOutput','toString','41672eFXLqi','concat','env','1fQswkj','scp','close','error','3123ZfoMCL','ssh\x20','port','disconnect','join','tty','104511KEllbi','host','ConnectTimeout=2','ignore','580945owzeOC','9bSfllF','2>&1','failure','ping','ssh','1560349GyvtAt','dest','pem','stderr','12YzQAdZ','6948EgkEuC','1604974atXRYI','sshSync','(((.+)+)+)+$','pipe','status','inherit','withSpinner','start','verbose','push','search','2585780rqXxnM'];a165c=function(){return w;};return a165c();}function a165d(a,b){const c=a165c();return a165d=function(d,e){d=d-0xcb;let f=c[d];return f;},a165d(a,b);}const a165o=a165d;(function(a,b){const m=a165d,c=a();while(!![]){try{const d=parseInt(m(0xdb))/0x1*(parseInt(m(0xf5))/0x2)+parseInt(m(0xea))/0x3*(-parseInt(m(0xce))/0x4)+-parseInt(m(0xe9))/0x5*(-parseInt(m(0xf3))/0x6)+-parseInt(m(0xef))/0x7+parseInt(m(0xd8))/0x8*(-parseInt(m(0xdf))/0x9)+-parseInt(m(0xd3))/0xa+-parseInt(m(0xe5))/0xb*(-parseInt(m(0xf4))/0xc);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a165c,0xf2f70));const a165b=(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;};}()),a165a=a165b(this,function(){const n=a165d;return a165a['toString']()[n(0xcd)]('(((.+)+)+)+$')[n(0xd7)]()[n(0xd2)](a165a)['search'](n(0xf7));});a165a();import a165e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';export class SSH{static [a165o(0xee)]=(a,b,c)=>{return new Promise((d,e)=>{const p=a165d,f=b['user']+'@'+b[p(0xe6)],g=a165e[p(0xe3)](b[p(0xda)],b['pem']),h=c?.[p(0xe4)]||![],i=c?.[p(0xcf)]||![];let j=[];h&&j[p(0xcc)]('-t');i&&j[p(0xcc)]('-v');j=j[p(0xd9)](['-o',p(0xe7),'-i',g,'-p',b[p(0xe1)],f,a]);const k=Log[p(0xfb)]();c?.[p(0xd0)]&&k[p(0xfc)](c?.[p(0xd0)]);const l=spawn(p(0xee),j,{'stdio':c?.[p(0xcb)]?p(0xfa):p(0xe8)});l['on'](p(0xe2),()=>{const q=p;c?.['message']&&k[q(0xd5)](),d();}),l['on'](p(0xdd),()=>{const r=p;c?.[r(0xd0)]&&k[r(0xd5)](),d();}),l['on'](p(0xde),()=>{const s=p;c?.[s(0xd0)]&&k[s(0xec)](),e();});});};static [a165o(0xf6)]=(a,b,c)=>{const t=a165o,d=b[t(0xd1)]+'@'+b[t(0xe6)],e=a165e[t(0xe3)](b[t(0xda)],b['pem']),f=c?.['tty']||![],g=c?.[t(0xcf)]||![],h=c?.[t(0xd6)]||![];let i=[];f&&i['push']('-t');g&&i['push']('-v');i=i[t(0xd9)](['-o',t(0xe7),'-i',e,'-p',b[t(0xe1)]['toString'](),d,a]);const j=h?t(0xf8):t(0xfa),k=spawnSync(t(0xee),i,{'encoding':'utf-8','stdio':[j,t(0xf8),t(0xf8)]});if(h)return{'stdout':k['stdout']||'','stderr':k[t(0xf2)]||'','status':k[t(0xf9)]};};static[a165o(0xed)](a,b,c){const u=a165o,d=b['user']+'@'+b[u(0xe6)],e=a165e[u(0xe3)](b[u(0xda)],b[u(0xf1)]),f=c?.[u(0xe4)]||![];let g=[];f&&g[u(0xcc)]('-t');g=g['concat'](['-o',u(0xe7),'-i',e,'-p',b[u(0xe1)],d,a,u(0xeb)]);const h=u(0xe0)+g[u(0xe3)]('\x20');return execSync(h)[u(0xd7)]();}static[a165o(0xdc)](a,b){const v=a165o,c=b[v(0xd1)]+'@'+b['host']+':'+a[v(0xf0)],d=a165e[v(0xe3)](b[v(0xda)],b[v(0xf1)]),e=['-i',d,'-P',b[v(0xe1)],a[v(0xd4)],c];spawnSync(v(0xdc),e,{'stdio':a[v(0xcb)]?v(0xfa):'ignore'});}}
1
+ function a165c(){const x=['dest','utf-8','1403412mZNWUu','sshVerbose','port','inherit','349641MKGMhl','message','(((.+)+)+)+$','755LwOHcW','withSpinner','ssh','user','2312728hubEjO','toString','1490eSwGSD','host','success','push','ignore','start','silentOutput','388143CczeoC','apply','status','2>&1','tty','1676xjYTeX','pem','stdout','disconnect','scp','8396MXeQEM','concat','verbose','6597SOKxei','242WgzrgP','pipe','stderr','join','ConnectTimeout=2','search','ssh\x20','env','source'];a165c=function(){return x;};return a165c();}const a165p=a165d;(function(a,b){const m=a165d,c=a();while(!![]){try{const d=-parseInt(m(0xaf))/0x1*(parseInt(m(0xb8))/0x2)+parseInt(m(0xc7))/0x3+parseInt(m(0xb4))/0x4*(parseInt(m(0xca))/0x5)+parseInt(m(0xc3))/0x6+-parseInt(m(0xaa))/0x7+-parseInt(m(0xce))/0x8+parseInt(m(0xb7))/0x9*(parseInt(m(0xd0))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a165c,0x37f9f));const a165b=(function(){let a=!![];return function(b,c){const d=a?function(){const n=a165d;if(c){const e=c[n(0xab)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a165a=a165b(this,function(){const o=a165d;return a165a[o(0xcf)]()[o(0xbd)](o(0xc9))[o(0xcf)]()['constructor'](a165a)[o(0xbd)]('(((.+)+)+)+$');});a165a();import a165e from'path';import{execSync,spawnSync,spawn}from'child_process';import{Log}from'../log/log.class.js';function a165d(a,b){const c=a165c();return a165d=function(d,e){d=d-0xa6;let f=c[d];return f;},a165d(a,b);}export class SSH{static [a165p(0xcc)]=(a,b,c)=>{return new Promise((d,e)=>{const q=a165d,f=b[q(0xcd)]+'@'+b[q(0xd1)],g=a165e['join'](b[q(0xbf)],b[q(0xb0)]),h=c?.['tty']||![],i=c?.[q(0xc4)]||![];let j=[];h&&j[q(0xa6)]('-t');i&&j['push']('-v');j=j[q(0xb5)](['-o',q(0xbc),'-i',g,'-p',b[q(0xc5)],f,a]);const k=Log[q(0xcb)]();c?.[q(0xc8)]&&k[q(0xa8)](c?.[q(0xc8)]);const l=spawn(q(0xcc),j,{'stdio':c?.[q(0xb6)]?q(0xc6):q(0xa7)});l['on'](q(0xb2),()=>{const r=q;c?.[r(0xc8)]&&k[r(0xd2)](),d();}),l['on']('close',()=>{const s=q;c?.[s(0xc8)]&&k['success'](),d();}),l['on']('error',()=>{const t=q;c?.[t(0xc8)]&&k['failure'](),e();});});};static ['sshSync']=(a,b,c)=>{const u=a165p,d=b[u(0xcd)]+'@'+b[u(0xd1)],e=a165e['join'](b['env'],b[u(0xb0)]),f=c?.[u(0xae)]||![],g=c?.[u(0xc4)]||![],h=c?.[u(0xa9)]||![];let i=[];f&&i[u(0xa6)]('-t');g&&i[u(0xa6)]('-v');i=i[u(0xb5)](['-o',u(0xbc),'-i',e,'-p',b[u(0xc5)]['toString'](),d,a]);const j=h?u(0xb9):u(0xc6),k=spawnSync(u(0xcc),i,{'encoding':u(0xc2),'stdio':[j,u(0xb9),u(0xb9)]});if(h)return{'stdout':k[u(0xb1)]||'','stderr':k[u(0xba)]||'','status':k[u(0xac)]};};static['ping'](a,b,c){const v=a165p,d=b[v(0xcd)]+'@'+b['host'],e=a165e[v(0xbb)](b['env'],b[v(0xb0)]),f=c?.[v(0xae)]||![];let g=[];f&&g[v(0xa6)]('-t');g=g[v(0xb5)](['-o','ConnectTimeout=2','-i',e,'-p',b['port'],d,a,v(0xad)]);const h=v(0xbe)+g['join']('\x20');return execSync(h)[v(0xcf)]();}static[a165p(0xb3)](a,b){const w=a165p,c=b[w(0xcd)]+'@'+b[w(0xd1)]+':'+a[w(0xc1)],d=a165e[w(0xbb)](b['env'],b[w(0xb0)]),e=['-i',d,'-P',b[w(0xc5)],a[w(0xc0)],c];spawnSync(w(0xb3),e,{'stdio':a[w(0xb6)]?w(0xc6):w(0xa7)});}}
@@ -1 +1 @@
1
- (function(a,b){var f=a166d,c=a();while(!![]){try{var d=parseInt(f(0xbe))/0x1*(parseInt(f(0xb9))/0x2)+parseInt(f(0xc0))/0x3+parseInt(f(0xbf))/0x4+-parseInt(f(0xbd))/0x5+-parseInt(f(0xc2))/0x6+-parseInt(f(0xbb))/0x7*(-parseInt(f(0xba))/0x8)+-parseInt(f(0xb8))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a166c,0x8c373));function a166c(){var h=['5392RdeSYu','217AjLXEY','search','2480515KwhgLS','13099oBKPgQ','1921772HiksSg','480966UmFLwk','toString','1071192kuWHNf','(((.+)+)+)+$','844641aTncAZ','104kQMaGB'];a166c=function(){return h;};return a166c();}var a166b=(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;};}()),a166a=a166b(this,function(){var g=a166d;return a166a[g(0xc1)]()['search'](g(0xb7))[g(0xc1)]()['constructor'](a166a)[g(0xbc)]('(((.+)+)+)+$');});a166a();function a166d(a,b){var c=a166c();return a166d=function(d,e){d=d-0xb7;var f=c[d];return f;},a166d(a,b);}export{};
1
+ (function(a,b){var f=a166d,c=a();while(!![]){try{var d=parseInt(f(0x191))/0x1+-parseInt(f(0x19d))/0x2+parseInt(f(0x197))/0x3+-parseInt(f(0x192))/0x4*(-parseInt(f(0x194))/0x5)+-parseInt(f(0x190))/0x6+-parseInt(f(0x195))/0x7*(parseInt(f(0x193))/0x8)+-parseInt(f(0x19c))/0x9*(parseInt(f(0x199))/0xa);if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a166c,0x4bab6));var a166b=(function(){var a=!![];return function(b,c){var d=a?function(){var g=a166d;if(c){var e=c[g(0x198)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a166a=a166b(this,function(){var h=a166d;return a166a[h(0x19a)]()[h(0x196)]('(((.+)+)+)+$')[h(0x19a)]()['constructor'](a166a)[h(0x196)](h(0x19b));});a166a();function a166d(a,b){var c=a166c();return a166d=function(d,e){d=d-0x190;var f=c[d];return f;},a166d(a,b);}export{};function a166c(){var i=['434198MXbprz','1951068XTtqJd','215961ZWpZhY','26400DholYs','1256VhTNYk','445emWEOe','7147HGzeCE','search','1408026jHzPwy','apply','10DkYGqp','toString','(((.+)+)+)+$','2341683BtQYEI'];a166c=function(){return i;};return a166c();}
@@ -1 +1 @@
1
- function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0xc6;let f=c[d];return f;},a167d(a,b);}(function(a,b){const f=a167d,c=a();while(!![]){try{const d=parseInt(f(0xc6))/0x1+parseInt(f(0xcc))/0x2*(-parseInt(f(0xd6))/0x3)+-parseInt(f(0xe2))/0x4+parseInt(f(0xcf))/0x5*(-parseInt(f(0xd4))/0x6)+parseInt(f(0xdd))/0x7*(-parseInt(f(0xd1))/0x8)+-parseInt(f(0xd5))/0x9*(parseInt(f(0xd8))/0xa)+parseInt(f(0xd9))/0xb;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x393c0));const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a167d;if(c){const e=c[g(0xca)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const h=a167d;return a167a[h(0xe0)]()[h(0xce)](h(0xd3))[h(0xe0)]()[h(0xc8)](a167a)['search'](h(0xd3));});function a167c(){const k=['-key','7DhCKKk','-x509','-nodes','toString','-out','617104ijxNjO','push','-keyout','407480kclswW','useConfig','constructor','cwd','apply','openssl.conf','2ljBjPf','-newkey','search','8205rXGAmr','csrName','1845192JhNVBi','crtName','(((.+)+)+)+$','558xfxHVi','2987919DqIlUh','931515hhqLLN','-config','10PHeosV','11076846YjhzDQ','keyName','req'];a167c=function(){return k;};return a167c();}a167a();import{spawnSync}from'child_process';export class SSL{static['genCSR'](a){const i=a167d,b=a[i(0xc9)]?a[i(0xc9)]:process[i(0xc9)](),c=[i(0xdb),'-new',i(0xcd),'rsa:2048',i(0xdf),i(0xe4),a['keyName'],i(0xe1),a[i(0xd0)]];a['useConfig']&&(c[i(0xe3)](i(0xd7)),c[i(0xe3)](i(0xcb))),a[i(0xc7)]?spawnSync('openssl',c,{'cwd':b}):spawnSync('openssl',c,{'stdio':'inherit','cwd':b});}static['genSSC'](a){const j=a167d,b=a[j(0xc9)]?a[j(0xc9)]:process[j(0xc9)](),c=['req',j(0xde),'-new',j(0xdc),a[j(0xda)],j(0xe1),a[j(0xd2)]];a[j(0xc7)]&&(c[j(0xe3)](j(0xd7)),c[j(0xe3)](j(0xcb))),a[j(0xc7)]?spawnSync('openssl',c,{'cwd':b}):spawnSync('openssl',c,{'stdio':'inherit','cwd':b});}}
1
+ function a167d(a,b){const c=a167c();return a167d=function(d,e){d=d-0xbc;let f=c[d];return f;},a167d(a,b);}(function(a,b){const f=a167d,c=a();while(!![]){try{const d=-parseInt(f(0xc7))/0x1+-parseInt(f(0xcf))/0x2+parseInt(f(0xda))/0x3+-parseInt(f(0xd3))/0x4*(-parseInt(f(0xc2))/0x5)+parseInt(f(0xcd))/0x6*(-parseInt(f(0xc6))/0x7)+parseInt(f(0xc5))/0x8+parseInt(f(0xcb))/0x9;if(d===b)break;else c['push'](c['shift']());}catch(e){c['push'](c['shift']());}}}(a167c,0x43f73));const a167b=(function(){let a=!![];return function(b,c){const d=a?function(){const g=a167d;if(c){const e=c[g(0xbf)](b,arguments);return c=null,e;}}:function(){};return a=![],d;};}()),a167a=a167b(this,function(){const h=a167d;return a167a[h(0xd1)]()['search']('(((.+)+)+)+$')[h(0xd1)]()['constructor'](a167a)[h(0xd7)](h(0xd4));});a167a();import{spawnSync}from'child_process';export class SSL{static['genCSR'](a){const i=a167d,b=a['cwd']?a[i(0xcc)]:process[i(0xcc)](),c=['req',i(0xc4),i(0xc0),i(0xc8),i(0xd0),i(0xce),a[i(0xd5)],'-out',a['csrName']];a['useConfig']&&(c[i(0xd9)](i(0xca)),c[i(0xd9)](i(0xd6))),a[i(0xc9)]?spawnSync('openssl',c,{'cwd':b}):spawnSync(i(0xbd),c,{'stdio':'inherit','cwd':b});}static['genSSC'](a){const j=a167d,b=a[j(0xcc)]?a['cwd']:process[j(0xcc)](),c=[j(0xbe),j(0xc3),'-new',j(0xd8),a[j(0xd5)],j(0xbc),a[j(0xd2)]];a[j(0xc9)]&&(c[j(0xd9)]('-config'),c[j(0xd9)](j(0xd6))),a[j(0xc9)]?spawnSync(j(0xbd),c,{'cwd':b}):spawnSync(j(0xbd),c,{'stdio':j(0xc1),'cwd':b});}}function a167c(){const k=['-new','2251488DrQjVl','3389505SlVfUn','91255mXzqWj','rsa:2048','useConfig','-config','4709349HMrmjs','cwd','6KSNqFI','-keyout','774358nyUyzk','-nodes','toString','crtName','130780eQTCmp','(((.+)+)+)+$','keyName','openssl.conf','search','-key','push','818592bFBlFd','-out','openssl','req','apply','-newkey','inherit','25IPpzPL','-x509'];a167c=function(){return k;};return a167c();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maka/maka-cli",
3
- "version": "5.1.8",
3
+ "version": "5.1.9",
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.",