cherry-cljs
Advanced tools
Comparing version 0.0.0-alpha.17 to 0.0.0-alpha.18
import { $APP, shadow$provide, $jscomp } from "./transpiler.js"; | ||
'use strict';var wC=function(a){var b=/=/;a="/(?:)/"===$APP.x.g(b)?$APP.ie.h($APP.Qf($APP.S("",$APP.$h.h($APP.x,$APP.F(a)))),""):$APP.Qf($APP.x.g(a).split(b));if(1<$APP.J(a))a:for(;;)if(""===$APP.rd(a))a=$APP.sd(a);else break a;return a},xC=function(a,b){return $APP.t($APP.t(b)?$APP.Ak.h(b,""):b)?$APP.Np(a,new $APP.ko(new $APP.jo(b,$APP.J(b)))):null},zC=function(a){throw $APP.Am.h(["Unexpected format: ",$APP.x.g(a)].join(""),new $APP.qa(null,1,[yC,a],null));},AC=function(a){var b=JSON.parse(a);return $APP.Ed(b)? | ||
b:zC(a)},BC=function(a){var b=JSON.parse(a);return $APP.Id(b)?b:zC(a)},CC=function(a){var b=JSON.parse(a);return $APP.Jd(b)?b:zC(a)},DC=function(a){var b=JSON.parse(a);return"number"===typeof b?b:zC(a)},EC=function(a){return $APP.K.h(":",0<a.length?a.charAt(0):null)?$APP.ai.g($APP.Qh.h(a,1)):$APP.ai.g(a)},FC=function(a){return $APP.ud(a)?$APP.G(a):a},GC=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.K.h("true",a)||$APP.K.h("false",a))var c=AC(a);else{if($APP.Ca(isNaN(a)))var d= | ||
DC(a);else{var e=$APP.K.h(":",b);var f=e?$APP.Oh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.t(f)?EC(a):a}c=d}return c}catch(g){return a}else return a},LC=function(a,b){var c=function(){switch(b instanceof $APP.T?b.Ba:null){case "boolean":return AC;case "int":case "long":return BC;case "double":return CC;case "number":return DC;case "symbol":return $APP.ni;case "keyword":return EC;case "string":return $APP.Yd;case "edn":return HC;case "auto":return GC;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a): | ||
c.call(null,a)}catch(e){d=IC}if($APP.K.h(IC,d))throw $APP.Am.h(["Coerce failure: cannot transform input ",$APP.Xl.l($APP.Y.h([a],0)),b instanceof $APP.T?" to ":" with ",$APP.x.g(b instanceof $APP.T?$APP.Ah(b):b)].join(""),new $APP.qa(null,2,[JC,a,KC,b],null));return d}return a},MC=function(a,b,c){a=$APP.P.h(a,b);c=$APP.t(a)?a:$APP.ud(c)?$APP.kd(c):null;return $APP.t(c)?$APP.ud(c)?$APP.Gk.h($APP.ie,c):c:null},NC=function(a,b,c,d){return $APP.Ak.h(b,c)?$APP.cl.j(a,b,function(e){return null==e?$APP.t(d)? | ||
d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.t(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},OC=function(a,b,c,d,e){d=$APP.t($APP.t(d)?!$APP.ud(d):d)?LC(e,d):GC(e);return $APP.t(c)?$APP.cl.G(a,b,c,d):$APP.Z.j(a,b,d)},TC=function(a){return $APP.Ud.j(function(b,c){var d=$APP.M.j(c,0,null);c=$APP.M.j(c,1,null);c=$APP.Ke(c);var e=$APP.P.h(c,PC),f=$APP.P.h(c,QC);c=$APP.P.h(c,$APP.un);b=$APP.t(e)?$APP.cl.J(b,PC,$APP.Z,d,e):b;b=$APP.t(f)?$APP.cl.j(b,RC,function(g){if($APP.Ld(g,f))throw $APP.Am.h(["Conflicting alias ", | ||
$APP.x.g(f)," between ",$APP.x.g($APP.P.h(g,f))," and ",$APP.x.g(d)].join(""),new $APP.qa(null,1,[QC,f],null));return $APP.Z.j(g,f,d)}):b;return $APP.t(c)?$APP.cl.J(b,SC,$APP.Z,d,c):b},$APP.Je,a)},dD=function(){var a=process.argv.slice(2),b=$APP.Je,c=UC.g(b);b=$APP.t(c)?$APP.Al.l($APP.Y.h([b,$APP.t(c)?TC(c):null],0)):b;var d=PC.g(b),e=RC.g(b),f=VC.g(b),g=SC.g(b),h=WC.g(b),l=$APP.K.h(!0,XC.g(b))?function(){var y=null==c?null:$APP.ph(c);y=null==y?null:$APP.vk.h(y,$APP.ph(e));y=null==y?null:$APP.vk.h(y, | ||
$APP.ph(d));return null==y?null:$APP.yh(y)}():XC.g(b);a=$APP.Lh(function(y){var z=$APP.t(h)?null:0==y.lastIndexOf(":",0);return!($APP.t(z)?z: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.Qf(y)}();var q=function(){for(var y=$APP.t(g)?g:$APP.Je,z=null,B=null,I=$APP.t(h)?YC:null,R=$APP.F(n);;){if($APP.Ca(R))return new $APP.V(null,3,5,$APP.W,[y,z,B],null);var X=$APP.G(R),ma=MC(f,z,$APP.P.h(d,z)),ta=0<X.length?X.charAt(0): | ||
null,lb=$APP.K.h(ta,"-"),Db=function(){var Jc=I;return $APP.t(Jc)?Jc:lb?YC:null}(),ja=$APP.K.h(":",ta),Hb=$APP.Ak.h(YC,Db)&&ja&&($APP.Ca(z)||$APP.K.h(B,z));ta=function(){var Jc=Db;return $APP.t(Jc)?Jc:Hb?ZC:null}();if(lb||Hb){var Na=(ja=0==X.lastIndexOf("--",0))&&$APP.K.h("--",X);if(Na){var cd=$APP.H(R);return new $APP.V(null,3,5,$APP.W,[function(){var Jc=y;return cd?$APP.zk.G(Jc,$APP.al,new $APP.V(null,2,5,$APP.W,[$C,aD],null),$APP.Qf(cd)):Jc}(),z,B],null)}Na=ja?$APP.Qh.h(X,2):$APP.Tn(X,/^(:|-|)/, | ||
"");ja=ja?wC(Na):new $APP.V(null,1,5,$APP.W,[Na],null);Na=$APP.M.j(ja,0,null);ja=$APP.M.j(ja,1,null);Na=$APP.ai.g(Na);Na=$APP.P.j(e,Na,Na);if($APP.t($APP.t(l)?$APP.Ca($APP.P.h(l,Na)):l))throw $APP.Am.h(["Unknown option ",$APP.x.g(X)].join(""),new $APP.qa(null,1,[XC,l],null));$APP.t(ja)?(z=NC(y,z,B,ma),B=Na,R=$APP.S(ja,$APP.Gc(R)),y=z,z=B,B=null,I=ta):(z=NC(y,z,B,ma),X=Na,R=$APP.H(R),y=z,z=X,I=ta)}else{var tc=$APP.P.h(d,z);if(Na=$APP.K.h(bD,tc)&&$APP.Ca(B)&&$APP.Ak.h(X,"true")&&$APP.Ak.h(X,"false")|| | ||
$APP.K.h(B,z)&&$APP.Ca(ma))return new $APP.V(null,3,5,$APP.W,[$APP.zk.G(y,$APP.al,new $APP.V(null,2,5,$APP.W,[$C,aD],null),$APP.Qf(R)),z,null],null);B=OC(y,z,ma,FC(tc),X);X=$APP.K.h(ZC,ta)&&ja?null:z;ma=$APP.K.h(ZC,ta)&&ja?null:z;R=$APP.H(R);y=B;z=X;B=ma;I=ta}}}();b=$APP.M.j(q,0,null);var r=$APP.M.j(q,1,null);q=$APP.M.j(q,2,null);var v=MC(f,r,$APP.P.h(LC,r));b=NC(b,r,q,v);return $APP.t(a)?$APP.zk.G(b,$APP.al,new $APP.V(null,2,5,$APP.W,[$C,cD],null),a):b},HC=function HC(a){switch(arguments.length){case 1:return HC.g(arguments[0]); | ||
case 2:return HC.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.x.g(arguments.length)].join(""));}};HC.g=function(a){return xC(new $APP.qa(null,3,[$APP.Mp,$APP.A($APP.nC),$APP.un,$APP.A($APP.mC),$APP.Eo,null],null),a)};HC.h=function(a,b){return xC($APP.cl.j($APP.Al.l($APP.Y.h([new $APP.qa(null,1,[$APP.un,$APP.A($APP.mC)],null),a],0)),$APP.Mp,function(c){return $APP.Al.l($APP.Y.h([$APP.A($APP.nC),c],0))}),b)};HC.v=2; | ||
var UC=new $APP.T(null,"spec","spec",347520401),bD=new $APP.T(null,"boolean","boolean",-1919418404),eD=new $APP.T(null,"opts","opts",155075701),KC=new $APP.T(null,"coerce-fn","coerce-fn",-821146515),WC=new $APP.T(null,"no-keyword-opts","no-keyword-opts",761286018),ZC=new $APP.T(null,"keywords","keywords",1526959054),cD=new $APP.T(null,"cmds","cmds",-1841503952),RC=new $APP.T(null,"aliases","aliases",1346874714),VC=new $APP.T(null,"collect","collect",-284321549),$C=new $APP.T("org.babashka","cli", | ||
"org.babashka/cli",1162430315),IC=new $APP.T("babashka.cli","error","babashka.cli/error",-939678701),SC=new $APP.T(null,"exec-args","exec-args",-1860766354),JC=new $APP.T(null,"input","input",556931961),PC=new $APP.T(null,"coerce","coerce",1917884504),XC=new $APP.T(null,"closed","closed",-919675359),yC=new $APP.T(null,"s","s",1705939918),YC=new $APP.T(null,"hyphens","hyphens",2113533609),QC=new $APP.T(null,"alias","alias",-2039751630),aD=new $APP.T(null,"args","args",1315556576);try{a:{var fD,gD=dD(),hD=$C.g($APP.qd(gD));fD=$APP.Z.j(hD,eD,$APP.Qj.h(gD,$C));for(var iD=$APP.Ke(fD),jD=$APP.P.h(iD,cD),kD=$APP.F(jD),lD=null,mD=0,nD=0;;)if(nD<mD){var oD=lD.$(null,nD);$APP.bm.l($APP.Y.h(["Transpiling CLJS file:",oD],0));var pD=$APP.As(new $APP.qa(null,1,[$APP.vs,oD],null)),qD=$APP.Ke(pD),rD=$APP.P.h(qD,$APP.ws);$APP.bm.l($APP.Y.h(["Wrote JS file:",rD],0));nD+=1}else{var sD=$APP.F(kD);if(sD){var tD=sD;if($APP.Cd(tD)){var uD=$APP.cc(tD),vD=$APP.dc(tD),wD=uD,xD=$APP.J(uD);kD=vD;lD= | ||
wD;mD=xD}else{oD=$APP.G(tD);$APP.bm.l($APP.Y.h(["Transpiling CLJS file:",oD],0));var yD=$APP.As(new $APP.qa(null,1,[$APP.vs,oD],null)),zD=$APP.Ke(yD),AD=$APP.P.h(zD,$APP.ws);$APP.bm.l($APP.Y.h(["Wrote JS file:",AD],0));kD=$APP.H(tD);lD=null;mD=0}nD=0}else break a}}}catch(a){throw console.error("An error occurred when calling (cherry.internal.cli/init)"),a;}; | ||
'use strict';var xC=function(a){var b=/=/;a="/(?:)/"===$APP.x.g(b)?$APP.ie.h($APP.Qf($APP.S("",$APP.$h.h($APP.x,$APP.F(a)))),""):$APP.Qf($APP.x.g(a).split(b));if(1<$APP.J(a))a:for(;;)if(""===$APP.rd(a))a=$APP.sd(a);else break a;return a},yC=function(a,b){return $APP.t($APP.t(b)?$APP.Ak.h(b,""):b)?$APP.Np(a,new $APP.ko(new $APP.jo(b,$APP.J(b)))):null},AC=function(a){throw $APP.Am.h(["Unexpected format: ",$APP.x.g(a)].join(""),new $APP.qa(null,1,[zC,a],null));},BC=function(a){var b=JSON.parse(a);return $APP.Ed(b)? | ||
b:AC(a)},CC=function(a){var b=JSON.parse(a);return $APP.Id(b)?b:AC(a)},DC=function(a){var b=JSON.parse(a);return $APP.Jd(b)?b:AC(a)},EC=function(a){var b=JSON.parse(a);return"number"===typeof b?b:AC(a)},FC=function(a){return $APP.K.h(":",0<a.length?a.charAt(0):null)?$APP.ai.g($APP.Qh.h(a,1)):$APP.ai.g(a)},GC=function(a){return $APP.ud(a)?$APP.G(a):a},HC=function(a){if("string"===typeof a)try{var b=0<a.length?a.charAt(0):null;if($APP.K.h("true",a)||$APP.K.h("false",a))var c=BC(a);else{if($APP.Ca(isNaN(a)))var d= | ||
EC(a);else{var e=$APP.K.h(":",b);var f=e?$APP.Oh(/:?[a-zA-Z0-9]+/,a):e;d=$APP.t(f)?FC(a):a}c=d}return c}catch(g){return a}else return a},MC=function(a,b){var c=function(){switch(b instanceof $APP.T?b.Ba:null){case "boolean":return BC;case "int":case "long":return CC;case "double":return DC;case "number":return EC;case "symbol":return $APP.ni;case "keyword":return FC;case "string":return $APP.Yd;case "edn":return IC;case "auto":return HC;default:return b}}();if("string"===typeof a){try{var d=c.g?c.g(a): | ||
c.call(null,a)}catch(e){d=JC}if($APP.K.h(JC,d))throw $APP.Am.h(["Coerce failure: cannot transform input ",$APP.Xl.l($APP.X.h([a],0)),b instanceof $APP.T?" to ":" with ",$APP.x.g(b instanceof $APP.T?$APP.Ah(b):b)].join(""),new $APP.qa(null,2,[KC,a,LC,b],null));return d}return a},NC=function(a,b,c){a=$APP.P.h(a,b);c=$APP.t(a)?a:$APP.ud(c)?$APP.kd(c):null;return $APP.t(c)?$APP.ud(c)?$APP.Gk.h($APP.ie,c):c:null},OC=function(a,b,c,d){return $APP.Ak.h(b,c)?$APP.cl.j(a,b,function(e){return null==e?$APP.t(d)? | ||
d.h?d.h(e,!0):d.call(null,e,!0):!0:$APP.t(d)?d.h?d.h(e,!0):d.call(null,e,!0):e}):a},PC=function(a,b,c,d,e){d=$APP.t($APP.t(d)?!$APP.ud(d):d)?MC(e,d):HC(e);return $APP.t(c)?$APP.cl.G(a,b,c,d):$APP.Z.j(a,b,d)},UC=function(a){return $APP.Ud.j(function(b,c){var d=$APP.M.j(c,0,null);c=$APP.M.j(c,1,null);c=$APP.Ke(c);var e=$APP.P.h(c,QC),f=$APP.P.h(c,RC);c=$APP.P.h(c,$APP.un);b=$APP.t(e)?$APP.cl.J(b,QC,$APP.Z,d,e):b;b=$APP.t(f)?$APP.cl.j(b,SC,function(g){if($APP.Ld(g,f))throw $APP.Am.h(["Conflicting alias ", | ||
$APP.x.g(f)," between ",$APP.x.g($APP.P.h(g,f))," and ",$APP.x.g(d)].join(""),new $APP.qa(null,1,[RC,f],null));return $APP.Z.j(g,f,d)}):b;return $APP.t(c)?$APP.cl.J(b,TC,$APP.Z,d,c):b},$APP.Je,a)},eD=function(){var a=process.argv.slice(2),b=$APP.Je,c=VC.g(b);b=$APP.t(c)?$APP.Al.l($APP.X.h([b,$APP.t(c)?UC(c):null],0)):b;var d=QC.g(b),e=SC.g(b),f=WC.g(b),g=TC.g(b),h=XC.g(b),l=$APP.K.h(!0,YC.g(b))?function(){var y=null==c?null:$APP.ph(c);y=null==y?null:$APP.vk.h(y,$APP.ph(e));y=null==y?null:$APP.vk.h(y, | ||
$APP.ph(d));return null==y?null:$APP.yh(y)}():YC.g(b);a=$APP.Lh(function(y){var z=$APP.t(h)?null:0==y.lastIndexOf(":",0);return!($APP.t(z)?z: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.Qf(y)}();var q=function(){for(var y=$APP.t(g)?g:$APP.Je,z=null,B=null,I=$APP.t(h)?ZC:null,R=$APP.F(n);;){if($APP.Ca(R))return new $APP.V(null,3,5,$APP.W,[y,z,B],null);var Y=$APP.G(R),ma=NC(f,z,$APP.P.h(d,z)),ta=0<Y.length?Y.charAt(0): | ||
null,lb=$APP.K.h(ta,"-"),Db=function(){var Jc=I;return $APP.t(Jc)?Jc:lb?ZC:null}(),ja=$APP.K.h(":",ta),Hb=$APP.Ak.h(ZC,Db)&&ja&&($APP.Ca(z)||$APP.K.h(B,z));ta=function(){var Jc=Db;return $APP.t(Jc)?Jc:Hb?$C:null}();if(lb||Hb){var Na=(ja=0==Y.lastIndexOf("--",0))&&$APP.K.h("--",Y);if(Na){var cd=$APP.H(R);return new $APP.V(null,3,5,$APP.W,[function(){var Jc=y;return cd?$APP.zk.G(Jc,$APP.al,new $APP.V(null,2,5,$APP.W,[aD,bD],null),$APP.Qf(cd)):Jc}(),z,B],null)}Na=ja?$APP.Qh.h(Y,2):$APP.Tn(Y,/^(:|-|)/, | ||
"");ja=ja?xC(Na):new $APP.V(null,1,5,$APP.W,[Na],null);Na=$APP.M.j(ja,0,null);ja=$APP.M.j(ja,1,null);Na=$APP.ai.g(Na);Na=$APP.P.j(e,Na,Na);if($APP.t($APP.t(l)?$APP.Ca($APP.P.h(l,Na)):l))throw $APP.Am.h(["Unknown option ",$APP.x.g(Y)].join(""),new $APP.qa(null,1,[YC,l],null));$APP.t(ja)?(z=OC(y,z,B,ma),B=Na,R=$APP.S(ja,$APP.Gc(R)),y=z,z=B,B=null,I=ta):(z=OC(y,z,B,ma),Y=Na,R=$APP.H(R),y=z,z=Y,I=ta)}else{var uc=$APP.P.h(d,z);if(Na=$APP.K.h(cD,uc)&&$APP.Ca(B)&&$APP.Ak.h(Y,"true")&&$APP.Ak.h(Y,"false")|| | ||
$APP.K.h(B,z)&&$APP.Ca(ma))return new $APP.V(null,3,5,$APP.W,[$APP.zk.G(y,$APP.al,new $APP.V(null,2,5,$APP.W,[aD,bD],null),$APP.Qf(R)),z,null],null);B=PC(y,z,ma,GC(uc),Y);Y=$APP.K.h($C,ta)&&ja?null:z;ma=$APP.K.h($C,ta)&&ja?null:z;R=$APP.H(R);y=B;z=Y;B=ma;I=ta}}}();b=$APP.M.j(q,0,null);var r=$APP.M.j(q,1,null);q=$APP.M.j(q,2,null);var v=NC(f,r,$APP.P.h(MC,r));b=OC(b,r,q,v);return $APP.t(a)?$APP.zk.G(b,$APP.al,new $APP.V(null,2,5,$APP.W,[aD,dD],null),a):b},IC=function IC(a){switch(arguments.length){case 1:return IC.g(arguments[0]); | ||
case 2:return IC.h(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.x.g(arguments.length)].join(""));}};IC.g=function(a){return yC(new $APP.qa(null,3,[$APP.Mp,$APP.A($APP.oC),$APP.un,$APP.A($APP.nC),$APP.Eo,null],null),a)};IC.h=function(a,b){return yC($APP.cl.j($APP.Al.l($APP.X.h([new $APP.qa(null,1,[$APP.un,$APP.A($APP.nC)],null),a],0)),$APP.Mp,function(c){return $APP.Al.l($APP.X.h([$APP.A($APP.oC),c],0))}),b)};IC.v=2; | ||
var VC=new $APP.T(null,"spec","spec",347520401),cD=new $APP.T(null,"boolean","boolean",-1919418404),fD=new $APP.T(null,"opts","opts",155075701),LC=new $APP.T(null,"coerce-fn","coerce-fn",-821146515),XC=new $APP.T(null,"no-keyword-opts","no-keyword-opts",761286018),$C=new $APP.T(null,"keywords","keywords",1526959054),dD=new $APP.T(null,"cmds","cmds",-1841503952),SC=new $APP.T(null,"aliases","aliases",1346874714),WC=new $APP.T(null,"collect","collect",-284321549),aD=new $APP.T("org.babashka","cli", | ||
"org.babashka/cli",1162430315),JC=new $APP.T("babashka.cli","error","babashka.cli/error",-939678701),TC=new $APP.T(null,"exec-args","exec-args",-1860766354),KC=new $APP.T(null,"input","input",556931961),QC=new $APP.T(null,"coerce","coerce",1917884504),YC=new $APP.T(null,"closed","closed",-919675359),zC=new $APP.T(null,"s","s",1705939918),ZC=new $APP.T(null,"hyphens","hyphens",2113533609),RC=new $APP.T(null,"alias","alias",-2039751630),bD=new $APP.T(null,"args","args",1315556576);try{a:{var gD,hD=eD(),iD=aD.g($APP.qd(hD));gD=$APP.Z.j(iD,fD,$APP.Qj.h(hD,aD));for(var jD=$APP.Ke(gD),kD=$APP.P.h(jD,dD),lD=$APP.F(kD),mD=null,nD=0,oD=0;;)if(oD<nD){var pD=mD.$(null,oD);$APP.bm.l($APP.X.h(["Transpiling CLJS file:",pD],0));var qD=$APP.Bs(new $APP.qa(null,1,[$APP.ws,pD],null)),rD=$APP.Ke(qD),sD=$APP.P.h(rD,$APP.xs);$APP.bm.l($APP.X.h(["Wrote JS file:",sD],0));oD+=1}else{var tD=$APP.F(lD);if(tD){var uD=tD;if($APP.Cd(uD)){var vD=$APP.cc(uD),wD=$APP.dc(uD),xD=vD,yD=$APP.J(vD);lD=wD;mD= | ||
xD;nD=yD}else{pD=$APP.G(uD);$APP.bm.l($APP.X.h(["Transpiling CLJS file:",pD],0));var zD=$APP.Bs(new $APP.qa(null,1,[$APP.ws,pD],null)),AD=$APP.Ke(zD),BD=$APP.P.h(AD,$APP.xs);$APP.bm.l($APP.X.h(["Wrote JS file:",BD],0));lD=$APP.H(uD);mD=null;nD=0}oD=0}else break a}}}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.17", | ||
"version": "0.0.0-alpha.18", | ||
"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
510897
2973