cherry-cljs
Advanced tools
Comparing version 0.0.0-alpha.21 to 0.0.0-alpha.22
import { $APP, shadow$provide, $jscomp } from "./transpiler.js"; | ||
const shadow_esm_import = function(x) { return import(x) }; | ||
'use strict';var BD=function(a){var b=/=/;a="/(?:)/"===$APP.x.g(b)?$APP.le.h($APP.Wf($APP.P("",$APP.W.h($APP.x,$APP.E(a)))),""):$APP.Wf($APP.x.g(a).split(b));if(1<$APP.H(a))a:for(;;)if(""===$APP.ud(a))a=$APP.vd(a);else break a;return a},CD=function(a,b){return $APP.u($APP.u(b)?$APP.Ek.h(b,""):b)?$APP.Op(a,new $APP.lo(new $APP.ko(b,$APP.H(b)))):null},ED=function(a){throw $APP.Bm.h(["Unexpected format: ",$APP.x.g(a)].join(""),new $APP.r(null,1,[DD,a],null));},FD=function(a){var b=JSON.parse(a);return $APP.Hd(b)? | ||
b:ED(a)},GD=function(a){var b=JSON.parse(a);return $APP.Ld(b)?b:ED(a)},HD=function(a){var b=JSON.parse(a);return $APP.Md(b)?b:ED(a)},ID=function(a){var b=JSON.parse(a);return"number"===typeof b?b:ED(a)},JD=function(a){return $APP.I.h(":",0<a.length?a.charAt(0):null)?$APP.fi.g($APP.Wh.h(a,1)):$APP.fi.g(a)},KD=function(a){return $APP.xd(a)?$APP.F(a):a},LD=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.I.h("true",a)||$APP.I.h("false",a))var c=FD(a);else{if($APP.Ca(isNaN(a)))var d= | ||
ID(a);else{var e=$APP.I.h(":",b);var f=e?$APP.Uh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.u(f)?JD(a):a}c=d}return c}catch(g){return a}else return a},QD=function(a,b){var c=function(){switch(b instanceof $APP.Q?b.Ba:null){case "boolean":return FD;case "int":case "long":return GD;case "double":return HD;case "number":return ID;case "symbol":return $APP.qi;case "keyword":return JD;case "string":return $APP.ae;case "edn":return MD;case "auto":return LD;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a): | ||
c.call(null,a)}catch(e){d=ND}if($APP.I.h(ND,d))throw $APP.Bm.h(["Coerce failure: cannot transform input ",$APP.Yl.l($APP.V.h([a],0)),b instanceof $APP.Q?" to ":" with ",$APP.x.g(b instanceof $APP.Q?$APP.Gh(b):b)].join(""),new $APP.r(null,2,[OD,a,PD,b],null));return d}return a},RD=function(a,b,c){a=$APP.N.h(a,b);c=$APP.u(a)?a:$APP.xd(c)?$APP.nd(c):null;return $APP.u(c)?$APP.xd(c)?$APP.Jk.h($APP.le,c):c:null},SD=function(a,b,c,d){return $APP.Ek.h(b,c)?$APP.dl.j(a,b,function(e){return null==e?$APP.u(d)? | ||
d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.u(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},TD=function(a,b,c,d,e){d=$APP.u($APP.u(d)?!$APP.xd(d):d)?QD(e,d):LD(e);return $APP.u(c)?$APP.dl.G(a,b,c,d):$APP.X.j(a,b,d)},YD=function(a){return $APP.Xd.j(function(b,c){var d=$APP.J.j(c,0,null);c=$APP.J.j(c,1,null);c=$APP.Ne(c);var e=$APP.N.h(c,UD),f=$APP.N.h(c,VD);c=$APP.N.h(c,$APP.rn);b=$APP.u(e)?$APP.dl.J(b,UD,$APP.X,d,e):b;b=$APP.u(f)?$APP.dl.j(b,WD,function(g){if($APP.Od(g,f))throw $APP.Bm.h(["Conflicting alias ", | ||
$APP.x.g(f)," between ",$APP.x.g($APP.N.h(g,f))," and ",$APP.x.g(d)].join(""),new $APP.r(null,1,[VD,f],null));return $APP.X.j(g,f,d)}):b;return $APP.u(c)?$APP.dl.J(b,XD,$APP.X,d,c):b},$APP.Me,a)},kE=function(){var a=process.argv.slice(2),b=new $APP.r(null,1,[WD,new $APP.r(null,1,[ZD,$D],null)],null),c=aE.g(b);b=$APP.u(c)?$APP.Bl.l($APP.V.h([b,$APP.u(c)?YD(c):null],0)):b;var d=UD.g(b),e=WD.g(b),f=bE.g(b),g=XD.g(b),h=cE.g(b),l=$APP.I.h(!0,dE.g(b))?function(){var y=null==c?null:$APP.vh(c);y=null==y? | ||
null:$APP.Y.h(y,$APP.vh(e));y=null==y?null:$APP.Y.h(y,$APP.vh(d));return null==y?null:$APP.Eh(y)}():dE.g(b);a=$APP.Rh(function(y){var B=$APP.u(h)?null:0==y.lastIndexOf(":",0);return!($APP.u(B)?B:0==y.lastIndexOf("-",0))},a);var m=$APP.J.j(a,0,null),n=$APP.J.j(a,1,null);a=function(){var y=$APP.E(m);return null==y?null:$APP.Wf(y)}();var q=function(){for(var y=$APP.u(g)?g:$APP.Me,B=null,C=null,K=$APP.u(h)?eE:null,S=$APP.E(n);;){if($APP.Ca(S))return new $APP.T(null,3,5,$APP.U,[y,B,C],null);var ca=$APP.F(S), | ||
oa=RD(f,B,$APP.N.h(d,B)),xa=0<ca.length?ca.charAt(0):null,nb=$APP.I.h(xa,"-"),Hb=function(){var Mc=K;return $APP.u(Mc)?Mc:nb?eE:null}(),la=$APP.I.h(":",xa),Mb=$APP.Ek.h(eE,Hb)&&la&&($APP.Ca(B)||$APP.I.h(C,B));xa=function(){var Mc=Hb;return $APP.u(Mc)?Mc:Mb?fE:null}();if(nb||Mb){var Pa=(la=0==ca.lastIndexOf("--",0))&&$APP.I.h("--",ca);if(Pa){var gd=$APP.G(S);return new $APP.T(null,3,5,$APP.U,[function(){var Mc=y;return gd?$APP.Dk.G(Mc,$APP.bl,new $APP.T(null,2,5,$APP.U,[gE,hE],null),$APP.Wf(gd)):Mc}(), | ||
B,C],null)}Pa=la?$APP.Wh.h(ca,2):$APP.Un(ca,/^(:|-|)/,"");la=la?BD(Pa):new $APP.T(null,1,5,$APP.U,[Pa],null);Pa=$APP.J.j(la,0,null);la=$APP.J.j(la,1,null);Pa=$APP.fi.g(Pa);Pa=$APP.N.j(e,Pa,Pa);if($APP.u($APP.u(l)?$APP.Ca($APP.N.h(l,Pa)):l))throw $APP.Bm.h(["Unknown option ",$APP.x.g(ca)].join(""),new $APP.r(null,1,[dE,l],null));$APP.u(la)?(B=SD(y,B,C,oa),C=Pa,S=$APP.P(la,$APP.Ic(S)),y=B,B=C,C=null,K=xa):(B=SD(y,B,C,oa),ca=Pa,S=$APP.G(S),y=B,B=ca,K=xa)}else{var wc=$APP.N.h(d,B);if(Pa=$APP.I.h(iE,wc)&& | ||
$APP.Ca(C)&&$APP.Ek.h(ca,"true")&&$APP.Ek.h(ca,"false")||$APP.I.h(C,B)&&$APP.Ca(oa))return new $APP.T(null,3,5,$APP.U,[$APP.Dk.G(y,$APP.bl,new $APP.T(null,2,5,$APP.U,[gE,hE],null),$APP.Wf(S)),B,null],null);C=TD(y,B,oa,KD(wc),ca);ca=$APP.I.h(fE,xa)&&la?null:B;oa=$APP.I.h(fE,xa)&&la?null:B;S=$APP.G(S);y=C;B=ca;C=oa;K=xa}}}();b=$APP.J.j(q,0,null);var t=$APP.J.j(q,1,null);q=$APP.J.j(q,2,null);var w=RD(f,t,$APP.N.h(QD,t));b=SD(b,t,q,w);return $APP.u(a)?$APP.Dk.G(b,$APP.bl,new $APP.T(null,2,5,$APP.U,[gE, | ||
jE],null),a):b},mE=function(){var a=kE(),b=gE.g($APP.td(a));return $APP.X.j(b,lE,$APP.Vj.h(a,gE))},nE=function(a,b){var c=$APP.wf($APP.H(a),b);b=$APP.J.j(c,0,null);c=$APP.J.j(c,1,null);return $APP.I.h(b,a)?c:null},rE=function(){var a=oE,b=mE(),c=$APP.Ne(b),d=$APP.N.h(c,jE),e=$APP.N.h(c,lE);$APP.Xd.j(function(f,g){f=$APP.Ne(g);var h=$APP.N.h(f,jE),l=$APP.N.h(f,$APP.Dr),m=$APP.N.h(f,pE),n=nE(h,d);if($APP.u(n)){var q=function(){var y=null==n?null:$APP.E(n);return null==y?null:$APP.Wf(y)}();f=$APP.u($APP.u(q)? | ||
m:q)?function(){var y=$APP.H(q),B=$APP.H(m);return new $APP.T(null,2,5,$APP.U,[$APP.vf.h(y<B?y:B,q),$APP.Hh(m,q)],null)}():new $APP.T(null,2,5,$APP.U,[q,null],null);var t=$APP.J.j(f,0,null);f=$APP.J.j(f,1,null);var w=$APP.u(f)?$APP.Bl.l($APP.V.h([e,f],0)):e;return $APP.Uc(function(){var y=$APP.X.l(c,qE,t,$APP.V.h([lE,w,$APP.pB,h],0));return l.g?l.g(y):l.call(null,y)}())}return null},null,a)},sE=function(a){a=$APP.E(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.$(null,d);$APP.cm.l($APP.V.h(["Transpiling CLJS file:", | ||
e],0));e=$APP.Cs(new $APP.r(null,1,[$APP.xs,e],null));e=$APP.Ne(e);e=$APP.N.h(e,$APP.ys);$APP.cm.l($APP.V.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.E(a))$APP.Fd(a)?(c=$APP.ec(a),a=$APP.fc(a),b=c,c=$APP.H(c)):(e=$APP.F(a),$APP.cm.l($APP.V.h(["Transpiling CLJS file:",e],0)),b=$APP.Cs(new $APP.r(null,1,[$APP.xs,e],null)),b=$APP.Ne(b),b=$APP.N.h(b,$APP.ys),$APP.cm.l($APP.V.h(["Wrote JS file:",b],0)),a=$APP.G(a),b=null,c=0),d=0;else return null},MD=function MD(a){switch(arguments.length){case 1:return MD.g(arguments[0]); | ||
case 2:return MD.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.x.g(arguments.length)].join(""));}};MD.g=function(a){return CD(new $APP.r(null,3,[$APP.Np,$APP.rb($APP.rD),$APP.rn,$APP.rb($APP.qD),$APP.Fo,null],null),a)};MD.h=function(a,b){return CD($APP.dl.j($APP.Bl.l($APP.V.h([new $APP.r(null,1,[$APP.rn,$APP.rb($APP.qD)],null),a],0)),$APP.Np,function(c){return $APP.Bl.l($APP.V.h([$APP.rb($APP.rD),c],0))}),b)};MD.v=2; | ||
var aE=new $APP.Q(null,"spec","spec",347520401),iE=new $APP.Q(null,"boolean","boolean",-1919418404),lE=new $APP.Q(null,"opts","opts",155075701),$D=new $APP.Q(null,"help","help",-439233446),PD=new $APP.Q(null,"coerce-fn","coerce-fn",-821146515),cE=new $APP.Q(null,"no-keyword-opts","no-keyword-opts",761286018),qE=new $APP.Q(null,"rest-cmds","rest-cmds",-423198324),fE=new $APP.Q(null,"keywords","keywords",1526959054),jE=new $APP.Q(null,"cmds","cmds",-1841503952),WD=new $APP.Q(null,"aliases","aliases", | ||
1346874714),bE=new $APP.Q(null,"collect","collect",-284321549),gE=new $APP.Q("org.babashka","cli","org.babashka/cli",1162430315),ND=new $APP.Q("babashka.cli","error","babashka.cli/error",-939678701),pE=new $APP.Q(null,"cmds-opts","cmds-opts",-390130362),XD=new $APP.Q(null,"exec-args","exec-args",-1860766354),OD=new $APP.Q(null,"input","input",556931961),UD=new $APP.Q(null,"coerce","coerce",1917884504),dE=new $APP.Q(null,"closed","closed",-919675359),ZD=new $APP.Q(null,"h","h",1109658740),DD=new $APP.Q(null, | ||
"s","s",1705939918),eE=new $APP.Q(null,"hyphens","hyphens",2113533609),VD=new $APP.Q(null,"alias","alias",-2039751630),hE=new $APP.Q(null,"args","args",1315556576);var oE=new $APP.T(null,3,5,$APP.U,[new $APP.r(null,3,[jE,new $APP.T(null,1,5,$APP.U,["run"],null),$APP.Dr,function(a){a=$APP.Ne(a);a=$APP.N.h(a,lE);a=$APP.Ne(a);a=$APP.N.h(a,$APP.xo);a=$APP.Cs(new $APP.r(null,1,[$APP.xs,a],null));a=$APP.Ne(a);a=$APP.N.h(a,$APP.ys);return shadow_esm_import([$APP.x.g(process.cwd()),"/",$APP.x.g(a)].join(""))},pE,new $APP.T(null,1,5,$APP.U,[$APP.xo],null)],null),new $APP.r(null,2,[jE,new $APP.T(null,1,5,$APP.U,["transpile"],null),$APP.Dr,sE],null),new $APP.r(null,2, | ||
[jE,$APP.Vf,$APP.Dr,function(a){var b=$APP.Ne(a);a=$APP.N.h(b,qE);b=$APP.N.h(b,lE);b=$D.g(b);b=$APP.u(b)?b:$APP.I.h("help",$APP.F(a))||$APP.wd(a);return $APP.u(b)?$APP.cm.l($APP.V.h(["Cherry v0.0.0\n\nUsage:\n\nrun \x3cfile.cljs\x3e Transpile and run a file\ntranspile \x3cfile.cljs\x3e ... Transpile file(s)\nhelp Print this help"],0)):sE(a)}],null)],null);try{rE()}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;}; | ||
'use strict';var OD=function(a){var b=/=/;a="/(?:)/"===$APP.z.g(b)?$APP.ke.h($APP.Vf($APP.Q("",$APP.ei.h($APP.z,$APP.F(a)))),""):$APP.Vf($APP.z.g(a).split(b));if(1<$APP.I(a))a:for(;;)if(""===$APP.td(a))a=$APP.ud(a);else break a;return a},PD=function(a,b){return $APP.u($APP.u(b)?$APP.Ek.h(b,""):b)?$APP.Pp(a,new $APP.mo(new $APP.lo(b,$APP.I(b)))):null},RD=function(a){throw $APP.Bm.h(["Unexpected format: ",$APP.z.g(a)].join(""),new $APP.r(null,1,[QD,a],null));},SD=function(a){var b=JSON.parse(a);return $APP.Gd(b)? | ||
b:RD(a)},TD=function(a){var b=JSON.parse(a);return $APP.Kd(b)?b:RD(a)},UD=function(a){var b=JSON.parse(a);return $APP.Ld(b)?b:RD(a)},VD=function(a){var b=JSON.parse(a);return"number"===typeof b?b:RD(a)},WD=function(a){return $APP.J.h(":",0<a.length?a.charAt(0):null)?$APP.fi.g($APP.Vh.h(a,1)):$APP.fi.g(a)},XD=function(a){return $APP.wd(a)?$APP.G(a):a},YD=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.J.h("true",a)||$APP.J.h("false",a))var c=SD(a);else{if($APP.Ca(isNaN(a)))var d= | ||
VD(a);else{var e=$APP.J.h(":",b);var f=e?$APP.Th(/:?[a-zA-Z0-9]+/,a):e;d=$APP.u(f)?WD(a):a}c=d}return c}catch(g){return a}else return a},cE=function(a,b){var c=function(){switch(b instanceof $APP.S?b.Ba:null){case "boolean":return SD;case "int":case "long":return TD;case "double":return UD;case "number":return VD;case "symbol":return $APP.qi;case "keyword":return WD;case "string":return $APP.$d;case "edn":return ZD;case "auto":return YD;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a): | ||
c.call(null,a)}catch(e){d=$D}if($APP.J.h($D,d))throw $APP.Bm.h(["Coerce failure: cannot transform input ",$APP.Yl.l($APP.W.h([a],0)),b instanceof $APP.S?" to ":" with ",$APP.z.g(b instanceof $APP.S?$APP.Fh(b):b)].join(""),new $APP.r(null,2,[aE,a,bE,b],null));return d}return a},dE=function(a,b,c){a=$APP.O.h(a,b);c=$APP.u(a)?a:$APP.wd(c)?$APP.md(c):null;return $APP.u(c)?$APP.wd(c)?$APP.Jk.h($APP.ke,c):c:null},eE=function(a,b,c,d){return $APP.Ek.h(b,c)?$APP.dl.j(a,b,function(e){return null==e?$APP.u(d)? | ||
d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.u(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},fE=function(a,b,c,d,e){d=$APP.u($APP.u(d)?!$APP.wd(d):d)?cE(e,d):YD(e);return $APP.u(c)?$APP.dl.G(a,b,c,d):$APP.X.j(a,b,d)},kE=function(a){return $APP.Wd.j(function(b,c){var d=$APP.M.j(c,0,null);c=$APP.M.j(c,1,null);c=$APP.Le(c);var e=$APP.O.h(c,gE),f=$APP.O.h(c,hE);c=$APP.O.h(c,$APP.rn);b=$APP.u(e)?$APP.dl.J(b,gE,$APP.X,d,e):b;b=$APP.u(f)?$APP.dl.j(b,iE,function(g){if($APP.Nd(g,f))throw $APP.Bm.h(["Conflicting alias ", | ||
$APP.z.g(f)," between ",$APP.z.g($APP.O.h(g,f))," and ",$APP.z.g(d)].join(""),new $APP.r(null,1,[hE,f],null));return $APP.X.j(g,f,d)}):b;return $APP.u(c)?$APP.dl.J(b,jE,$APP.X,d,c):b},$APP.Ke,a)},xE=function(){var a=process.argv.slice(2),b=new $APP.r(null,1,[iE,new $APP.r(null,1,[lE,mE],null)],null),c=nE.g(b);b=$APP.u(c)?$APP.Bl.l($APP.W.h([b,$APP.u(c)?kE(c):null],0)):b;var d=gE.g(b),e=iE.g(b),f=oE.g(b),g=jE.g(b),h=pE.g(b),l=$APP.J.h(!0,qE.g(b))?function(){var y=null==c?null:$APP.uh(c);y=null==y? | ||
null:$APP.Y.h(y,$APP.uh(e));y=null==y?null:$APP.Y.h(y,$APP.uh(d));return null==y?null:$APP.Dh(y)}():qE.g(b);a=$APP.Qh(function(y){var B=$APP.u(h)?null:0==y.lastIndexOf(":",0);return!($APP.u(B)?B:0==y.lastIndexOf("-",0))},a);var m=$APP.M.j(a,0,null),n=$APP.M.j(a,1,null);a=function(){var y=$APP.F(m);return null==y?null:$APP.Vf(y)}();var q=function(){for(var y=$APP.u(g)?g:$APP.Ke,B=null,C=null,K=$APP.u(h)?rE:null,R=$APP.F(n);;){if($APP.Ca(R))return new $APP.U(null,3,5,$APP.V,[y,B,C],null);var ba=$APP.G(R), | ||
oa=dE(f,B,$APP.O.h(d,B)),xa=0<ba.length?ba.charAt(0):null,nb=$APP.J.h(xa,"-"),Fb=function(){var Oc=K;return $APP.u(Oc)?Oc:nb?rE:null}(),la=$APP.J.h(":",xa),Ob=$APP.Ek.h(rE,Fb)&&la&&($APP.Ca(B)||$APP.J.h(C,B));xa=function(){var Oc=Fb;return $APP.u(Oc)?Oc:Ob?sE:null}();if(nb||Ob){var Pa=(la=0==ba.lastIndexOf("--",0))&&$APP.J.h("--",ba);if(Pa){var id=$APP.H(R);return new $APP.U(null,3,5,$APP.V,[function(){var Oc=y;return id?$APP.Dk.G(Oc,$APP.bl,new $APP.U(null,2,5,$APP.V,[tE,uE],null),$APP.Vf(id)):Oc}(), | ||
B,C],null)}Pa=la?$APP.Vh.h(ba,2):$APP.Vn(ba,/^(:|-|)/,"");la=la?OD(Pa):new $APP.U(null,1,5,$APP.V,[Pa],null);Pa=$APP.M.j(la,0,null);la=$APP.M.j(la,1,null);Pa=$APP.fi.g(Pa);Pa=$APP.O.j(e,Pa,Pa);if($APP.u($APP.u(l)?$APP.Ca($APP.O.h(l,Pa)):l))throw $APP.Bm.h(["Unknown option ",$APP.z.g(ba)].join(""),new $APP.r(null,1,[qE,l],null));$APP.u(la)?(B=eE(y,B,C,oa),C=Pa,R=$APP.Q(la,$APP.Hc(R)),y=B,B=C,C=null,K=xa):(B=eE(y,B,C,oa),ba=Pa,R=$APP.H(R),y=B,B=ba,K=xa)}else{var yc=$APP.O.h(d,B);if(Pa=$APP.J.h(vE,yc)&& | ||
$APP.Ca(C)&&$APP.Ek.h(ba,"true")&&$APP.Ek.h(ba,"false")||$APP.J.h(C,B)&&$APP.Ca(oa))return new $APP.U(null,3,5,$APP.V,[$APP.Dk.G(y,$APP.bl,new $APP.U(null,2,5,$APP.V,[tE,uE],null),$APP.Vf(R)),B,null],null);C=fE(y,B,oa,XD(yc),ba);ba=$APP.J.h(sE,xa)&&la?null:B;oa=$APP.J.h(sE,xa)&&la?null:B;R=$APP.H(R);y=C;B=ba;C=oa;K=xa}}}();b=$APP.M.j(q,0,null);var t=$APP.M.j(q,1,null);q=$APP.M.j(q,2,null);var w=dE(f,t,$APP.O.h(cE,t));b=eE(b,t,q,w);return $APP.u(a)?$APP.Dk.G(b,$APP.bl,new $APP.U(null,2,5,$APP.V,[tE, | ||
wE],null),a):b},zE=function(){var a=xE(),b=tE.g($APP.sd(a));return $APP.X.j(b,yE,$APP.Vj.h(a,tE))},AE=function(a,b){var c=$APP.vf($APP.I(a),b);b=$APP.M.j(c,0,null);c=$APP.M.j(c,1,null);return $APP.J.h(b,a)?c:null},EE=function(){var a=BE,b=zE(),c=$APP.Le(b),d=$APP.O.h(c,wE),e=$APP.O.h(c,yE);$APP.Wd.j(function(f,g){f=$APP.Le(g);var h=$APP.O.h(f,wE),l=$APP.O.h(f,$APP.Er),m=$APP.O.h(f,CE),n=AE(h,d);if($APP.u(n)){var q=function(){var y=null==n?null:$APP.F(n);return null==y?null:$APP.Vf(y)}();f=$APP.u($APP.u(q)? | ||
m:q)?function(){var y=$APP.I(q),B=$APP.I(m);return new $APP.U(null,2,5,$APP.V,[$APP.uf.h(y<B?y:B,q),$APP.Gh(m,q)],null)}():new $APP.U(null,2,5,$APP.V,[q,null],null);var t=$APP.M.j(f,0,null);f=$APP.M.j(f,1,null);var w=$APP.u(f)?$APP.Bl.l($APP.W.h([e,f],0)):e;return $APP.Tc(function(){var y=$APP.X.l(c,DE,t,$APP.W.h([yE,w,$APP.DB,h],0));return l.g?l.g(y):l.call(null,y)}())}return null},null,a)},FE=function(a){a=$APP.F(a);for(var b=null,c=0,d=0;;)if(d<c){var e=b.$(null,d);$APP.cm.l($APP.W.h(["Transpiling CLJS file:", | ||
e],0));e=$APP.Us(new $APP.r(null,1,[$APP.Rs,e],null));e=$APP.Le(e);e=$APP.O.h(e,$APP.Ss);$APP.cm.l($APP.W.h(["Wrote JS file:",e],0));d+=1}else if(a=$APP.F(a))$APP.Ed(a)?(c=$APP.dc(a),a=$APP.ec(a),b=c,c=$APP.I(c)):(e=$APP.G(a),$APP.cm.l($APP.W.h(["Transpiling CLJS file:",e],0)),b=$APP.Us(new $APP.r(null,1,[$APP.Rs,e],null)),b=$APP.Le(b),b=$APP.O.h(b,$APP.Ss),$APP.cm.l($APP.W.h(["Wrote JS file:",b],0)),a=$APP.H(a),b=null,c=0),d=0;else return null},ZD=function ZD(a){switch(arguments.length){case 1:return ZD.g(arguments[0]); | ||
case 2:return ZD.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.z.g(arguments.length)].join(""));}};ZD.g=function(a){return PD(new $APP.r(null,3,[$APP.Op,$APP.qb($APP.GD),$APP.rn,$APP.qb($APP.FD),$APP.Go,null],null),a)};ZD.h=function(a,b){return PD($APP.dl.j($APP.Bl.l($APP.W.h([new $APP.r(null,1,[$APP.rn,$APP.qb($APP.FD)],null),a],0)),$APP.Op,function(c){return $APP.Bl.l($APP.W.h([$APP.qb($APP.GD),c],0))}),b)};ZD.v=2; | ||
var nE=new $APP.S(null,"spec","spec",347520401),vE=new $APP.S(null,"boolean","boolean",-1919418404),yE=new $APP.S(null,"opts","opts",155075701),mE=new $APP.S(null,"help","help",-439233446),bE=new $APP.S(null,"coerce-fn","coerce-fn",-821146515),pE=new $APP.S(null,"no-keyword-opts","no-keyword-opts",761286018),DE=new $APP.S(null,"rest-cmds","rest-cmds",-423198324),sE=new $APP.S(null,"keywords","keywords",1526959054),wE=new $APP.S(null,"cmds","cmds",-1841503952),iE=new $APP.S(null,"aliases","aliases", | ||
1346874714),oE=new $APP.S(null,"collect","collect",-284321549),tE=new $APP.S("org.babashka","cli","org.babashka/cli",1162430315),$D=new $APP.S("babashka.cli","error","babashka.cli/error",-939678701),CE=new $APP.S(null,"cmds-opts","cmds-opts",-390130362),jE=new $APP.S(null,"exec-args","exec-args",-1860766354),aE=new $APP.S(null,"input","input",556931961),gE=new $APP.S(null,"coerce","coerce",1917884504),GE=new $APP.S(null,"show","show",-576705889),qE=new $APP.S(null,"closed","closed",-919675359),lE= | ||
new $APP.S(null,"h","h",1109658740),HE=new $APP.S(null,"e","e",1381269198),QD=new $APP.S(null,"s","s",1705939918),rE=new $APP.S(null,"hyphens","hyphens",2113533609),hE=new $APP.S(null,"alias","alias",-2039751630),uE=new $APP.S(null,"args","args",1315556576);var BE=new $APP.U(null,3,5,$APP.V,[new $APP.r(null,3,[wE,new $APP.U(null,1,5,$APP.V,["run"],null),$APP.Er,function(a){a=$APP.Le(a);a=$APP.O.h(a,yE);a=$APP.Le(a);a=$APP.O.h(a,$APP.yo);a=$APP.Us(new $APP.r(null,1,[$APP.Rs,a],null));a=$APP.Le(a);a=$APP.O.h(a,$APP.Ss);return shadow_esm_import([$APP.z.g(process.cwd()),"/",$APP.z.g(a)].join(""))},CE,new $APP.U(null,1,5,$APP.V,[$APP.yo],null)],null),new $APP.r(null,2,[wE,new $APP.U(null,1,5,$APP.V,["transpile"],null),$APP.Er,FE],null),new $APP.r(null,2, | ||
[wE,$APP.Uf,$APP.Er,function(a){a=$APP.Le(a);var b=$APP.O.h(a,DE),c=$APP.O.h(a,yE);a=HE.g(c);if($APP.u(a)){a=$APP.Qs(a);var d=$APP.Ts.mkdtempSync(".tmp"),e=[$APP.z.g(d),"/cherry.mjs"].join("");$APP.Ts.writeFileSync(e,a,"utf-8");$APP.u(GE.g(c))&&$APP.cm.l($APP.W.h([a],0));return shadow_esm_import([$APP.z.g(process.cwd()),"/",e].join("")).finally(function(){return $APP.Ts.rmSync(d,{force:!0,recursive:!0})})}return $APP.u(function(){var f=mE.g(c);return $APP.u(f)?f:$APP.J.h("help",$APP.G(b))||$APP.vd(b)}())? | ||
$APP.cm.l($APP.W.h(["Cherry v0.0.0\n\nUsage:\n\nrun \x3cfile.cljs\x3e Transpile and run a file\ntranspile \x3cfile.cljs\x3e ... Transpile file(s)\nhelp Print this help"],0)):FE(b)}],null)],null);try{EE()}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;}; | ||
export { $APP, shadow$provide, $jscomp }; |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.0.0-alpha.21", | ||
"version": "0.0.0-alpha.22", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "cljs.core.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
535611
3085