squint-cljs
Advanced tools
Comparing version 0.4.58 to 0.4.59
@@ -6,46 +6,46 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
import*as esm_import$fs from"fs";import*as esm_import$net from"net";import*as esm_import$readline from"readline";import*as esm_import$squint_cljs$core from"squint-cljs/core.js";import*as esm_import$node_util from"node:util";import*as esm_import$path from"path"; | ||
var Wfa=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Ik.l($APP.F([a,b])):$APP.Sd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Sd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},X9=function(a,b){return $APP.oe.j(function(c,d){return $APP.ou.l(Wfa,$APP.F([c,d]))},a,b)},Y9=function(a){throw $APP.Vk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Xfa,a],null));},Z9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:Y9(a)},Yfa=function(a){var b=JSON.parse(a);return $APP.HE(b)?b:Y9(a)},Zfa= | ||
function(a){var b=JSON.parse(a);return $APP.IE(b)?b:Y9(a)},$9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:Y9(a)},a$=function(a){return"string"===typeof a?$APP.C.j(a,0,null):null},b$=function(a){return $APP.A.g(":",a$(a))?$APP.vi.h($APP.fi.g(a,1)):$APP.vi.h(a)},$fa=function(a){return $APP.Sd(a)?$APP.y(a):a},c$=function(a){if("string"===typeof a)try{var b=a$(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=Z9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e= | ||
$9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.di(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?b$(a):a}d=e}c=d}return c}catch(l){return a}else return a},d$=function(a,b,c,d){throw $APP.Vk.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Gs.l($APP.F([a]))].join(""),c instanceof $APP.I?" to ":" with ",$APP.t.h(c instanceof $APP.I?$APP.Xh(c):c)].join(""),new $APP.n(null,2,[aga,a,bga,c],null),d);},cga=function(a,b,c){var d=function(){switch(b instanceof $APP.I?b.da:null){case "boolean":case "bool":return Z9; | ||
case "int":case "long":return Yfa;case "double":return Zfa;case "number":return $9;case "symbol":return $APP.Ei;case "keyword":return b$;case "string":return $APP.se;case "edn":return $APP.yF;case "auto":return c$;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=d$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?d$(a,c,b,null):d},e$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Sd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Sd(c)?$APP.Up.g($APP.Ee, | ||
c):c:null},f$=function(a,b,c,d){return $APP.Go.g(b,c)?(c=$APP.ME(a,b),$APP.r(c)?($APP.C.j(c,0,null),c=$APP.C.j(c,1,null),$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},dga=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Sd(d):d)?cga(e,d,f):c$(e);return $APP.r(c)?$APP.Lm.A(a,b,c,d):$APP.zi.j(a,b,d)},ega=function(a){return $APP.oe.j(function(b,c){var d=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);var e=$APP.kf(c),f=$APP.fe.g(e, | ||
g$),k=$APP.fe.g(e,h$);c=$APP.fe.g(e,$APP.vm);var l=$APP.fe.g(e,$APP.aD);e=$APP.fe.g(e,i$);b=$APP.r(f)?$APP.Lm.J(b,g$,$APP.zi,d,f):b;b=$APP.r(k)?$APP.Lm.j(b,h$,function(m){if($APP.he(m,k))throw $APP.Vk.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.fe.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.n(null,1,[h$,k],null));return $APP.zi.j(m,k,d)}):b;b=$APP.r(l)?$APP.Lm.j(b,$APP.aD,$APP.Up.g(function(m){return $APP.Ee.g(m,d)},$APP.Rh)):b;b=$APP.r(e)?$APP.Lm.J(b,i$,$APP.zi,d,e):b;return $APP.r(c)? | ||
$APP.Lm.J(b,j$,$APP.zi,d,c):b},$APP.hf,a)},n$=function(a,b){b=$APP.kf(b);var c=$APP.fe.g(b,k$);b=$APP.NE(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.C.j(b,0,null);b=$APP.C.j(b,1,null);return new $APP.n(null,2,[l$,a,m$,b],null)},p$=function(a,b){if($APP.r(b))if($APP.x(a)){var c=$APP.xd(a),d=$APP.$e(c,b);c=c<d?c:d;a=new $APP.J(null,2,5,$APP.N,[$APP.R.g($APP.$t.g(b,a),$APP.Pf.g(c,a)),$APP.Pf.g(c,b)],null)}else a=new $APP.J(null,2,5,$APP.N,[a,b],null); | ||
var Xfa=function(a,b){return $APP.Wd(a)&&$APP.Wd(b)?$APP.Ik.l($APP.F([a,b])):$APP.Sd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Sd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},X9=function(a,b){return $APP.oe.j(function(c,d){return $APP.pu.l(Xfa,$APP.F([c,d]))},a,b)},Y9=function(a){throw $APP.Vk.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Yfa,a],null));},Z9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:Y9(a)},Zfa=function(a){var b=JSON.parse(a);return $APP.JE(b)?b:Y9(a)},$fa= | ||
function(a){var b=JSON.parse(a);return $APP.KE(b)?b:Y9(a)},$9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:Y9(a)},a$=function(a){return"string"===typeof a?$APP.C.j(a,0,null):null},b$=function(a){return $APP.A.g(":",a$(a))?$APP.vi.h($APP.fi.g(a,1)):$APP.vi.h(a)},aga=function(a){return $APP.Sd(a)?$APP.y(a):a},c$=function(a){if("string"===typeof a)try{var b=a$(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=Z9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e= | ||
$9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.di(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?b$(a):a}d=e}c=d}return c}catch(l){return a}else return a},d$=function(a,b,c,d){throw $APP.Vk.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Hs.l($APP.F([a]))].join(""),c instanceof $APP.I?" to ":" with ",$APP.t.h(c instanceof $APP.I?$APP.Xh(c):c)].join(""),new $APP.n(null,2,[bga,a,cga,c],null),d);},dga=function(a,b,c){var d=function(){switch(b instanceof $APP.I?b.da:null){case "boolean":case "bool":return Z9; | ||
case "int":case "long":return Zfa;case "double":return $fa;case "number":return $9;case "symbol":return $APP.Ei;case "keyword":return b$;case "string":return $APP.se;case "edn":return $APP.AF;case "auto":return c$;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=d$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?d$(a,c,b,null):d},e$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Sd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Sd(c)?$APP.Vp.g($APP.Ee, | ||
c):c:null},f$=function(a,b,c,d){return $APP.Go.g(b,c)?(c=$APP.OE(a,b),$APP.r(c)?($APP.C.j(c,0,null),c=$APP.C.j(c,1,null),$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.zi.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},ega=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Sd(d):d)?dga(e,d,f):c$(e);return $APP.r(c)?$APP.Lm.A(a,b,c,d):$APP.zi.j(a,b,d)},fga=function(a){return $APP.oe.j(function(b,c){var d=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);var e=$APP.kf(c),f=$APP.fe.g(e, | ||
g$),k=$APP.fe.g(e,h$);c=$APP.fe.g(e,$APP.vm);var l=$APP.fe.g(e,$APP.cD);e=$APP.fe.g(e,i$);b=$APP.r(f)?$APP.Lm.J(b,g$,$APP.zi,d,f):b;b=$APP.r(k)?$APP.Lm.j(b,h$,function(m){if($APP.he(m,k))throw $APP.Vk.g(["Conflicting alias ",$APP.t.h(k)," between ",$APP.t.h($APP.fe.g(m,k))," and ",$APP.t.h(d)].join(""),new $APP.n(null,1,[h$,k],null));return $APP.zi.j(m,k,d)}):b;b=$APP.r(l)?$APP.Lm.j(b,$APP.cD,$APP.Vp.g(function(m){return $APP.Ee.g(m,d)},$APP.Rh)):b;b=$APP.r(e)?$APP.Lm.J(b,i$,$APP.zi,d,e):b;return $APP.r(c)? | ||
$APP.Lm.J(b,j$,$APP.zi,d,c):b},$APP.hf,a)},n$=function(a,b){b=$APP.kf(b);var c=$APP.fe.g(b,k$);b=$APP.PE(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.C.j(b,0,null);b=$APP.C.j(b,1,null);return new $APP.n(null,2,[l$,a,m$,b],null)},p$=function(a,b){if($APP.r(b))if($APP.x(a)){var c=$APP.xd(a),d=$APP.$e(c,b);c=c<d?c:d;a=new $APP.J(null,2,5,$APP.N,[$APP.R.g($APP.au.g(b,a),$APP.Pf.g(c,a)),$APP.Pf.g(c,b)],null)}else a=new $APP.J(null,2,5,$APP.N,[a,b],null); | ||
else a=new $APP.J(null,2,5,$APP.N,[a,b],null);b=a;a=$APP.C.j(b,0,null);b=$APP.C.j(b,1,null);return new $APP.n(null,2,[m$,a,o$,b],null)},x$=function(a,b,c,d,e){var f=a$(a),k="string"===typeof a?$APP.C.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=$9($APP.t.h(k))}catch(g){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?q$:null;f=$APP.A.g(":",f);c=$APP.Go.g(q$,b)&&f&&($APP.A.g(r$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?s$:null;a=l?$APP.r(k)?$APP.Go.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null, | ||
5,[$APP.Vv,d,t$,l,u$,a,v$,c,w$,f],null)},iga=function(a,b){function c(ub){ub=$APP.Ik.l($APP.F([new $APP.n(null,2,[y$,d,$APP.Pk,z$],null),ub]));return O.h?O.h(ub):O.call(null,ub)}var d=y$.h(b),e=$APP.r(d)?X9(b,$APP.F([ega(d)])):b,f=g$.h(e),k=function(){var ub=h$.h(e);return $APP.r(ub)?ub:$APP.Ss.h(e)}(),l=fga.h(e),m=$APP.aD.h(e),g=j$.h(e),p=k$.h(e),q=function(){var ub=A$.h(e);return $APP.r(ub)?ub:gga.h(e)}(),u=$APP.Vh($APP.R.l($APP.Mh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Mh(f)]))), | ||
D=$APP.A.g(!0,q)?u:null==q?null:$APP.Vh(q),H=i$.h(e),O=function(){var ub=hga.h(e);return $APP.r(ub)?ub:function(Xb){Xb=$APP.kf(Xb);var Fc=$APP.fe.g(Xb,B$);throw $APP.Vk.g(Fc,Xb);}}(),P=n$(a,null),W=$APP.kf(P),ca=$APP.fe.g(W,l$),ia=$APP.fe.g(W,m$),ma=function(){var ub=o$.h(e);ub=$APP.r(ub)?ub:C$.h(e);return $APP.r(ub)?p$(ca,ub):new $APP.n(null,2,[o$,null,m$,ia],null)}(),pa=$APP.kf(ma),fa=$APP.fe.g(pa,m$),E=$APP.fe.g(pa,o$),B=$APP.Go.g(fa,ia)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ia)],null): | ||
5,[$APP.Wv,d,t$,l,u$,a,v$,c,w$,f],null)},jga=function(a,b){function c(ub){ub=$APP.Ik.l($APP.F([new $APP.n(null,2,[y$,d,$APP.Pk,z$],null),ub]));return O.h?O.h(ub):O.call(null,ub)}var d=y$.h(b),e=$APP.r(d)?X9(b,$APP.F([fga(d)])):b,f=g$.h(e),k=function(){var ub=h$.h(e);return $APP.r(ub)?ub:$APP.Ts.h(e)}(),l=gga.h(e),m=$APP.cD.h(e),g=j$.h(e),p=k$.h(e),q=function(){var ub=A$.h(e);return $APP.r(ub)?ub:hga.h(e)}(),u=$APP.Vh($APP.R.l($APP.Mh($APP.Wd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Mh(f)]))), | ||
D=$APP.A.g(!0,q)?u:null==q?null:$APP.Vh(q),H=i$.h(e),O=function(){var ub=iga.h(e);return $APP.r(ub)?ub:function(Xb){Xb=$APP.kf(Xb);var Fc=$APP.fe.g(Xb,B$);throw $APP.Vk.g(Fc,Xb);}}(),P=n$(a,null),W=$APP.kf(P),ca=$APP.fe.g(W,l$),ia=$APP.fe.g(W,m$),ma=function(){var ub=o$.h(e);ub=$APP.r(ub)?ub:C$.h(e);return $APP.r(ub)?p$(ca,ub):new $APP.n(null,2,[o$,null,m$,ia],null)}(),pa=$APP.kf(ma),fa=$APP.fe.g(pa,m$),E=$APP.fe.g(pa,o$),B=$APP.Go.g(fa,ia)?new $APP.J(null,2,5,$APP.N,[null,$APP.R.g(fa,ia)],null): | ||
new $APP.J(null,2,5,$APP.N,[ca,ia],null),ea=$APP.C.j(B,0,null),K=$APP.C.j(B,1,null),M=function(){for(var ub=$APP.hf,Xb=null,Fc=null,Le=$APP.r(p)?q$:null,hd=$APP.x(K),Bg=E;;){if($APP.Za(hd))return new $APP.J(null,3,5,$APP.N,[ub,Xb,Fc],null);var eg=$APP.y(hd),Rc=eg instanceof $APP.I;if(Rc){Xb=f$(ub,Xb,Fc,null);var je=eg;hd=$APP.z(hd);ub=Xb;Xb=je}else{var rl=!0===eg,Nf=$APP.t.h(eg);je=e$(l,Xb,$APP.fe.g(f,Xb));var ri=$APP.fe.g(f,Xb),sl=x$(Nf,Le,Xb,ri,Fc),Eh=$APP.kf(sl),tl=$APP.fe.g(Eh,t$),Fh=$APP.fe.g(Eh, | ||
u$),ul=$APP.fe.g(Eh,v$),Of=$APP.fe.g(Eh,$APP.Vv),gk=$APP.fe.g(Eh,w$);if($APP.r(function(){var Ne=tl;return $APP.r(Ne)?Ne:ul}())){var Wc=$APP.qa(Nf,"--"),hk=Wc&&$APP.A.g("--",Nf);if(hk){var vl=$APP.z(hd);return new $APP.J(null,3,5,$APP.N,[function(){var Ne=ub;return vl?$APP.ao.A(Ne,$APP.bu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(vl)):Ne}(),Xb,Fc],null)}var ik=Wc?$APP.fi.g(Nf,2):$APP.Sj(Nf,/^(:|-|)/,""),vf=Wc?$APP.xq.g(ik,/=/):new $APP.J(null,1,5,$APP.N,[ik],null),Od=$APP.C.j(vf,0,null),xe= | ||
$APP.C.j(vf,1,null),Tb=$APP.vi.h(Od),Bc=$APP.fe.j(k,Tb,Tb);if($APP.r(xe))Fc=f$(ub,Xb,Fc,je),Xb=Bc,Le=Of,hd=$APP.He(xe,$APP.cd(hd)),ub=Fc,Fc=null;else{var Ab=$APP.z(hd),Me=$APP.y(Ab),Rv=x$(Me,Of,Xb,ri,Fc);if($APP.r(function(){var Ne=t$.h(Rv);return $APP.r(Ne)?Ne:$APP.Rd(Ab)}()))if($APP.r(Fh)){var Sv=$APP.Xh(Bc);Fc=$APP.ir.l(function(){return function(Ne){return new $APP.J(null,2,5,$APP.N,[["-",$APP.t.h(Ne)].join(""),!0],null)}}(ub,Xb,Fc,Le,hd,Bg,Sv,Ab,Me,Rv,ik,vf,Od,xe,Tb,Bc,Wc,hk,rl,Nf,je,ri,sl,Eh, | ||
tl,Fh,ul,Of,gk,eg,Rc,d,e,f,k,l,m,g,p,q,u,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K),$APP.F([Sv]));hd=$APP.R.g(Fc,Ab);Le=Of;Fc=Xb=null}else hd=$APP.he(u,Bc)?null:$APP.CE($APP.t.h(Bc),":no-"),Le=$APP.r(hd)?$APP.vi.h($APP.Sj($APP.t.h(Bc),":no-","")):Bc,hd=$APP.He($APP.Za(hd),Ab),Xb=f$(ub,Xb,Fc,je),je=Le,Le=Of,ub=Xb,Xb=je;else Xb=f$(ub,Xb,Fc,je),je=Bc,Le=Of,hd=Ab,ub=Xb,Xb=je}}else if(hk=$APP.A.g(r$,ri)&&$APP.Go.g(Nf,"true")&&$APP.Go.g(Nf,"false")||$APP.A.g(Fc,Xb)&&$APP.Za(je))if(Bg=$APP.r(hd)?$APP.r(Bg)?p$(hd, | ||
Bg):new $APP.n(null,1,[m$,hd],null):new $APP.n(null,1,[m$,hd],null),Le=$APP.kf(Bg),Bg=$APP.fe.g(Le,m$),Le=$APP.fe.g(Le,o$),$APP.Go.g(hd,Bg))je=Le,Le=Of,hd=Bg,Bg=je;else return new $APP.J(null,3,5,$APP.N,[$APP.ao.A(ub,$APP.bu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(hd)),Xb,Fc],null);else{try{var Wd=dga(ub,Xb,je,$fa(ri),Nf,rl)}catch(Ne){c(new $APP.n(null,4,[D$,g$,B$,$APP.UE(Ne),E$,Xb,F$,Nf],null)),Wd=ub}Fc=$APP.r(function(){var Ne=$APP.A.g(s$,Of);return Ne?gk:Ne}())?null:Xb;je=$APP.r(function(){var Ne= | ||
$APP.A.g(s$,Of);return Ne?gk:Ne}())?null:Xb;Le=Of;hd=$APP.z(hd);ub=Wd;Xb=Fc;Fc=je}}}}(),da=$APP.C.j(M,0,null),ha=$APP.C.j(M,1,null),ja=$APP.C.j(M,2,null),sa=e$(l,ha,$APP.fe.g(f,ha)),ta=function(){var ub=f$(da,ha,ja,sa);return $APP.x(ea)?$APP.ao.A(ub,$APP.Fk,new $APP.J(null,2,5,$APP.N,[z$,m$],null),function(Xb){return $APP.Rg.g($APP.mg(ea),Xb)}):ub}(),xa=$APP.r(g)?$APP.Md($APP.Ik.l($APP.F([g,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Mh(xa));b=null;for(var ya=0,Aa=0;;)if(Aa<ya){var Ga=b.ba(null, | ||
Aa);$APP.he(D,Ga)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(Ga)].join(""),A$,D,E$,Ga],null));Aa+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Aa=$APP.vc(b),b=a,ya=$APP.xd(a),a=Aa):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(a)].join(""),A$,D,E$,a],null)),a=$APP.z(b),b=null,ya=0),Aa=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Aa=ya=0;;)if(Aa<ya)Ga=b.ba(null,Aa),$APP.r($APP.ME(xa,Ga))||c(new $APP.n(null,4,[D$,$APP.aD,B$,["Required option: ", | ||
$APP.t.h(Ga)].join(""),$APP.aD,m,E$,Ga],null)),Aa+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Aa=$APP.vc(b),b=a,ya=$APP.xd(a),a=Aa):(a=$APP.y(b),$APP.r($APP.ME(xa,a))||c(new $APP.n(null,4,[D$,$APP.aD,B$,["Required option: ",$APP.t.h(a)].join(""),$APP.aD,m,E$,a],null)),a=$APP.z(b),b=null,ya=0),Aa=0;else break;if($APP.r(H))for(var Da=$APP.x(H),za=null,Na=0,Sa=0;;)if(Sa<Na){var bb=za.ba(null,Sa),tb=$APP.C.j(bb,0,null),Bb=$APP.C.j(bb,1,null),Wb=function(){var ub=(ub=$APP.Vd(Bb))?G$.h(Bb):ub;return $APP.r(ub)? | ||
ub:Bb}(),oc=$APP.ME(xa,tb);if($APP.r(oc)){var Yc=oc,Rb=$APP.C.j(Yc,0,null),jf=$APP.C.j(Yc,1,null);if(!$APP.r(Wb.h?Wb.h(jf):Wb.call(null,jf))){var ck=function(){var ub=H$.h(Bb);return $APP.r(ub)?ub:function(){return function(Xb){var Fc=$APP.kf(Xb);Xb=$APP.fe.g(Fc,E$);Fc=$APP.fe.g(Fc,F$);return["Invalid value for option ",$APP.t.h(Xb),": ",$APP.t.h(Fc)].join("")}}(Da,za,Na,Sa,ub,Yc,Rb,jf,oc,Wb,bb,tb,Bb,d,e,f,k,l,m,g,p,q,u,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K,M,da,ha,ja,sa,ta,xa)}();c(new $APP.n(null, | ||
5,[D$,i$,B$,function(){var ub=new $APP.n(null,2,[E$,tb,F$,jf],null);return ck.h?ck.h(ub):ck.call(null,ub)}(),i$,H,E$,tb,F$,jf],null))}}Sa+=1}else{var ol=$APP.x(Da);if(ol){var pi=ol;if($APP.Zd(pi))ya=$APP.uc(pi),a=$APP.vc(pi),b=ya,ya=$APP.xd(ya),Da=a,za=b,Na=ya;else{var dk=$APP.y(pi),ek=$APP.C.j(dk,0,null),mj=$APP.C.j(dk,1,null),fk=function(){var ub=(ub=$APP.Vd(mj))?G$.h(mj):ub;return $APP.r(ub)?ub:mj}(),pl=$APP.ME(xa,ek);if($APP.r(pl)){var Ec=pl,nj=$APP.C.j(Ec,0,null),qi=$APP.C.j(Ec,1,null);if(!$APP.r(fk.h? | ||
u$),ul=$APP.fe.g(Eh,v$),Of=$APP.fe.g(Eh,$APP.Wv),gk=$APP.fe.g(Eh,w$);if($APP.r(function(){var Ne=tl;return $APP.r(Ne)?Ne:ul}())){var Wc=$APP.qa(Nf,"--"),hk=Wc&&$APP.A.g("--",Nf);if(hk){var vl=$APP.z(hd);return new $APP.J(null,3,5,$APP.N,[function(){var Ne=ub;return vl?$APP.ao.A(Ne,$APP.cu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(vl)):Ne}(),Xb,Fc],null)}var ik=Wc?$APP.fi.g(Nf,2):$APP.Sj(Nf,/^(:|-|)/,""),vf=Wc?$APP.yq.g(ik,/=/):new $APP.J(null,1,5,$APP.N,[ik],null),Od=$APP.C.j(vf,0,null),ye= | ||
$APP.C.j(vf,1,null),Tb=$APP.vi.h(Od),Bc=$APP.fe.j(k,Tb,Tb);if($APP.r(ye))Fc=f$(ub,Xb,Fc,je),Xb=Bc,Le=Of,hd=$APP.He(ye,$APP.cd(hd)),ub=Fc,Fc=null;else{var Ab=$APP.z(hd),Me=$APP.y(Ab),Rv=x$(Me,Of,Xb,ri,Fc);if($APP.r(function(){var Ne=t$.h(Rv);return $APP.r(Ne)?Ne:$APP.Rd(Ab)}()))if($APP.r(Fh)){var Sv=$APP.Xh(Bc);Fc=$APP.jr.l(function(){return function(Ne){return new $APP.J(null,2,5,$APP.N,[["-",$APP.t.h(Ne)].join(""),!0],null)}}(ub,Xb,Fc,Le,hd,Bg,Sv,Ab,Me,Rv,ik,vf,Od,ye,Tb,Bc,Wc,hk,rl,Nf,je,ri,sl,Eh, | ||
tl,Fh,ul,Of,gk,eg,Rc,d,e,f,k,l,m,g,p,q,u,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K),$APP.F([Sv]));hd=$APP.R.g(Fc,Ab);Le=Of;Fc=Xb=null}else hd=$APP.he(u,Bc)?null:$APP.EE($APP.t.h(Bc),":no-"),Le=$APP.r(hd)?$APP.vi.h($APP.Sj($APP.t.h(Bc),":no-","")):Bc,hd=$APP.He($APP.Za(hd),Ab),Xb=f$(ub,Xb,Fc,je),je=Le,Le=Of,ub=Xb,Xb=je;else Xb=f$(ub,Xb,Fc,je),je=Bc,Le=Of,hd=Ab,ub=Xb,Xb=je}}else if(hk=$APP.A.g(r$,ri)&&$APP.Go.g(Nf,"true")&&$APP.Go.g(Nf,"false")||$APP.A.g(Fc,Xb)&&$APP.Za(je))if(Bg=$APP.r(hd)?$APP.r(Bg)?p$(hd, | ||
Bg):new $APP.n(null,1,[m$,hd],null):new $APP.n(null,1,[m$,hd],null),Le=$APP.kf(Bg),Bg=$APP.fe.g(Le,m$),Le=$APP.fe.g(Le,o$),$APP.Go.g(hd,Bg))je=Le,Le=Of,hd=Bg,Bg=je;else return new $APP.J(null,3,5,$APP.N,[$APP.ao.A(ub,$APP.cu,new $APP.J(null,2,5,$APP.N,[z$,m$],null),$APP.mg(hd)),Xb,Fc],null);else{try{var Vd=ega(ub,Xb,je,aga(ri),Nf,rl)}catch(Ne){c(new $APP.n(null,4,[D$,g$,B$,$APP.WE(Ne),E$,Xb,F$,Nf],null)),Vd=ub}Fc=$APP.r(function(){var Ne=$APP.A.g(s$,Of);return Ne?gk:Ne}())?null:Xb;je=$APP.r(function(){var Ne= | ||
$APP.A.g(s$,Of);return Ne?gk:Ne}())?null:Xb;Le=Of;hd=$APP.z(hd);ub=Vd;Xb=Fc;Fc=je}}}}(),da=$APP.C.j(M,0,null),ha=$APP.C.j(M,1,null),ja=$APP.C.j(M,2,null),sa=e$(l,ha,$APP.fe.g(f,ha)),ta=function(){var ub=f$(da,ha,ja,sa);return $APP.x(ea)?$APP.ao.A(ub,$APP.Fk,new $APP.J(null,2,5,$APP.N,[z$,m$],null),function(Xb){return $APP.Rg.g($APP.mg(ea),Xb)}):ub}(),xa=$APP.r(g)?$APP.Md($APP.Ik.l($APP.F([g,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Mh(xa));b=null;for(var ya=0,Aa=0;;)if(Aa<ya){var Ga=b.ba(null, | ||
Aa);$APP.he(D,Ga)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(Ga)].join(""),A$,D,E$,Ga],null));Aa+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Aa=$APP.vc(b),b=a,ya=$APP.xd(a),a=Aa):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[D$,A$,B$,["Unknown option: ",$APP.t.h(a)].join(""),A$,D,E$,a],null)),a=$APP.z(b),b=null,ya=0),Aa=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Aa=ya=0;;)if(Aa<ya)Ga=b.ba(null,Aa),$APP.r($APP.OE(xa,Ga))||c(new $APP.n(null,4,[D$,$APP.cD,B$,["Required option: ", | ||
$APP.t.h(Ga)].join(""),$APP.cD,m,E$,Ga],null)),Aa+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Aa=$APP.vc(b),b=a,ya=$APP.xd(a),a=Aa):(a=$APP.y(b),$APP.r($APP.OE(xa,a))||c(new $APP.n(null,4,[D$,$APP.cD,B$,["Required option: ",$APP.t.h(a)].join(""),$APP.cD,m,E$,a],null)),a=$APP.z(b),b=null,ya=0),Aa=0;else break;if($APP.r(H))for(var Da=$APP.x(H),za=null,Na=0,Sa=0;;)if(Sa<Na){var bb=za.ba(null,Sa),tb=$APP.C.j(bb,0,null),Bb=$APP.C.j(bb,1,null),Wb=function(){var ub=(ub=$APP.Wd(Bb))?G$.h(Bb):ub;return $APP.r(ub)? | ||
ub:Bb}(),oc=$APP.OE(xa,tb);if($APP.r(oc)){var Yc=oc,Rb=$APP.C.j(Yc,0,null),jf=$APP.C.j(Yc,1,null);if(!$APP.r(Wb.h?Wb.h(jf):Wb.call(null,jf))){var ck=function(){var ub=H$.h(Bb);return $APP.r(ub)?ub:function(){return function(Xb){var Fc=$APP.kf(Xb);Xb=$APP.fe.g(Fc,E$);Fc=$APP.fe.g(Fc,F$);return["Invalid value for option ",$APP.t.h(Xb),": ",$APP.t.h(Fc)].join("")}}(Da,za,Na,Sa,ub,Yc,Rb,jf,oc,Wb,bb,tb,Bb,d,e,f,k,l,m,g,p,q,u,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K,M,da,ha,ja,sa,ta,xa)}();c(new $APP.n(null, | ||
5,[D$,i$,B$,function(){var ub=new $APP.n(null,2,[E$,tb,F$,jf],null);return ck.h?ck.h(ub):ck.call(null,ub)}(),i$,H,E$,tb,F$,jf],null))}}Sa+=1}else{var ol=$APP.x(Da);if(ol){var pi=ol;if($APP.Zd(pi))ya=$APP.uc(pi),a=$APP.vc(pi),b=ya,ya=$APP.xd(ya),Da=a,za=b,Na=ya;else{var dk=$APP.y(pi),ek=$APP.C.j(dk,0,null),mj=$APP.C.j(dk,1,null),fk=function(){var ub=(ub=$APP.Wd(mj))?G$.h(mj):ub;return $APP.r(ub)?ub:mj}(),pl=$APP.OE(xa,ek);if($APP.r(pl)){var Ec=pl,nj=$APP.C.j(Ec,0,null),qi=$APP.C.j(Ec,1,null);if(!$APP.r(fk.h? | ||
fk.h(qi):fk.call(null,qi))){var ql=function(){var ub=H$.h(mj);return $APP.r(ub)?ub:function(){return function(Xb){var Fc=$APP.kf(Xb);Xb=$APP.fe.g(Fc,E$);Fc=$APP.fe.g(Fc,F$);return["Invalid value for option ",$APP.t.h(Xb),": ",$APP.t.h(Fc)].join("")}}(Da,za,Na,Sa,ub,Ec,nj,qi,pl,fk,dk,ek,mj,pi,ol,d,e,f,k,l,m,g,p,q,u,D,H,O,c,P,W,ca,ia,ma,pa,fa,E,B,ea,K,M,da,ha,ja,sa,ta,xa)}();c(new $APP.n(null,5,[D$,i$,B$,function(){var ub=new $APP.n(null,2,[E$,ek,F$,qi],null);return ql.h?ql.h(ub):ql.call(null,ub)}(), | ||
i$,H,E$,ek,F$,qi],null))}}Da=$APP.z(pi);za=null;Na=0}Sa=0}else break}return xa},jga=function(a,b){a=iga(a,b);b=z$.h($APP.Nd(a));return $APP.zi.j(b,$APP.AF,$APP.Jk.g(a,z$))},kga=function(a,b){var c=$APP.Qf($APP.xd(a),b);b=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);return $APP.A.g(b,a)?c:null},M$=function(a,b){$APP.Jf(I$,!1);a.setPrompt([$APP.t.h($APP.v(J$)),"\x3d\x3e "].join(""));a.prompt();return $APP.WE($APP.v(K$))?null:L$.g?L$.g(b,a):L$.call(null,b,a)},N$=function(a){var b=$APP.tk(a);a=$APP.uk(a); | ||
var c=$APP.VE($APP.v(K$));b=$APP.Pf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.fi.g(b,a):null;$APP.Jf(K$,$APP.lp.g("\n",$APP.He(a,c)))},mga=function(a,b,c){var d=function(){var f=$APP.iq;$APP.iq=$APP.v(J$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Gs.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.Dt(l,new $APP.n(null,3,[$APP.gp,$APP.fp,$APP.Qs,lga,$APP.st,!0],null))}finally{$APP.iq=f}}(),e=$APP.kf(d);d=$APP.fe.g(e,$APP.Ct);e=$APP.fe.g(e,$APP.S);d=$APP.Sj("(async function () {\n%s\n}) ()", | ||
"%s",d);$APP.Jf(J$,e);return Promise.resolve(eval(d)).then(function(f){$APP.r(c)?c.write(esm_import$node_util.inspect(f),"\n"):console.log(f);return L$.g?L$.g(c,b):L$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return M$(b,c)})},L$=function(a,b){if($APP.r(function(){var e=$APP.v(I$);return $APP.r(e)?e:!$APP.WE($APP.v(K$))}())){$APP.Jf(I$,!0);var c=$APP.ap($APP.v(K$)),d=function(){try{return $APP.cp(c,$APP.yt)}catch(f){var e=f;if(-1!=$APP.UE(e).indexOf("EOF while reading"))return O$; | ||
N$(c);$APP.vF.l($APP.F([$APP.t.h(e)]));return P$}}();if($APP.A.g(P$,d))return M$(b,a);if($APP.A.g(O$,d))return $APP.Jf(I$,!1);N$(c);return $APP.A.g($APP.bp,d)?M$(b,a):mga(d,b,a)}return null},Q$=function(a,b){a.on("line",function(c){$APP.Pi.A(K$,$APP.t,c,"\n");return L$(b,a)})},nga=function(a){var b=esm_import$readline.createInterface({input:a,output:a});Q$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.wF.l($APP.F(["Client closed connection."]))})},R$=function(a,b,c){var d=$APP.oF.h(a), | ||
e=$APP.ZE.h(a);b=esm_import$path.resolve(d,$APP.jF(b,e));c=$APP.aF(c);d=null==c?null:esm_import$path.resolve(d,$APP.jF(c,e));d=null==d?null:null==d?null:esm_import$path.relative(esm_import$path.dirname($APP.t.h(b)),d);return $APP.r(d)?(a=$APP.nF.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Sj(d,$APP.gi([$APP.t.h(e),"$"].join("")),a)].join("")):null},S$=function(a,b,c){b=esm_import$path.resolve(b,$APP.jF(a,c));c=esm_import$path.dirname(b);$APP.r(esm_import$fs.existsSync(c))|| | ||
($APP.wF.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0}));$APP.wF.l($APP.F(["[squint] Copying resource",a,"to",c]));return esm_import$fs.copyFileSync(a,b)},V$=function(a,b){var c=$APP.v($APP.$E),d=$APP.Ik.l($APP.F([c,a])),e=$APP.ZE.h(c),f=$APP.oF.g(c,".");a=$APP.Rd(b)?$APP.mg($APP.ir.l(T$,$APP.F([e]))):b;b=$APP.oF.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.wF.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])), | ||
$APP.wF(),$APP.wF.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--output-dir: output directory for JS files"]))):$APP.oe.j(function(k,l){return Promise.resolve(k).then(function(){return $APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(l))?($APP.wF.l($APP.F(["[squint] Compiling CLJS file:",l])),$APP.pF($APP.zi.l(d,$APP.kF,l,$APP.F([$APP.oq, | ||
function(m){return R$(d,l,m)}])))):S$(l,f,e)}).then(function(m){m=$APP.kf(m);m=$APP.fe.g(m,$APP.mF);$APP.r(m)&&$APP.wF.l($APP.F(["[squint] Wrote file:",m]));return m})},null,a)},v$=new $APP.I(null,"kwd-opt","kwd-opt",1313309243),q$=new $APP.I(null,"hyphens","hyphens",2113533609),y$=new $APP.I(null,"spec","spec",347520401),g$=new $APP.I(null,"coerce","coerce",1917884504),A$=new $APP.I(null,"restrict","restrict",-1071101511),s$=new $APP.I(null,"keywords","keywords",1526959054),P$=new $APP.I("squint.repl.node", | ||
"continue","squint.repl.node/continue",1558138730),B$=new $APP.I(null,"msg","msg",-1386103444),oga=new $APP.I(null,"show","show",-576705889),r$=new $APP.I(null,"boolean","boolean",-1919418404),aga=new $APP.I(null,"input","input",556931961),W$=new $APP.I(null,"rest-cmds","rest-cmds",-423198324),z$=new $APP.I("org.babashka","cli","org.babashka/cli",1162430315),o$=new $APP.I(null,"args-\x3eopts","args-\x3eopts",964391046),h$=new $APP.I(null,"alias","alias",-2039751630),fga=new $APP.I(null,"collect", | ||
"collect",-284321549),pga=new $APP.I(null,"no-run","no-run",-1534313596),i$=new $APP.I(null,"validate","validate",-201300827),u$=new $APP.I(null,"composite-opt","composite-opt",-2021292928),t$=new $APP.I(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.I(null,"help","help",-439233446),D$=new $APP.I(null,"cause","cause",231901252),w$=new $APP.I(null,"fst-colon","fst-colon",1618567071),bga=new $APP.I(null,"coerce-fn","coerce-fn",-821146515),m$=new $APP.I(null,"args","args",1315556576),k$=new $APP.I(null, | ||
"no-keyword-opts","no-keyword-opts",761286018),F$=new $APP.I(null,"value","value",305978217),G$=new $APP.I(null,"pred","pred",1927423397),gga=new $APP.I(null,"closed","closed",-919675359),O$=new $APP.I("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),hga=new $APP.I(null,"error-fn","error-fn",-171437615),E$=new $APP.I(null,"option","option",65132272),j$=new $APP.I(null,"exec-args","exec-args",-1860766354),H$=new $APP.I(null,"ex-msg","ex-msg",-1111774387),Xfa=new $APP.I(null, | ||
"s","s",1705939918),C$=new $APP.I(null,"cmds-opts","cmds-opts",-390130362),qga=new $APP.I(null,"h","h",1109658740),l$=new $APP.I(null,"cmds","cmds",-1841503952);var K$=$APP.Oi.h(""),I$=$APP.Oi.h(!1),J$=$APP.Oi.h($APP.iq),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var lga=$APP.Oi.h($APP.hf),Z$=function Z$(a){switch(arguments.length){case 0:return Z$.v();case 1:return Z$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};Z$.v=function(){return Z$.h(null)}; | ||
Z$.h=function(a){$APP.iq=$APP.Zw;$APP.Yp=$APP.hq=!0;var b=function(){var d=$APP.zF.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(nga);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.wF.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
i$,H,E$,ek,F$,qi],null))}}Da=$APP.z(pi);za=null;Na=0}Sa=0}else break}return xa},kga=function(a,b){a=jga(a,b);b=z$.h($APP.Nd(a));return $APP.zi.j(b,$APP.CF,$APP.Jk.g(a,z$))},lga=function(a,b){var c=$APP.Qf($APP.xd(a),b);b=$APP.C.j(c,0,null);c=$APP.C.j(c,1,null);return $APP.A.g(b,a)?c:null},M$=function(a,b){$APP.Jf(I$,!1);a.setPrompt([$APP.t.h($APP.v(J$)),"\x3d\x3e "].join(""));a.prompt();return $APP.YE($APP.v(K$))?null:L$.g?L$.g(b,a):L$.call(null,b,a)},N$=function(a){var b=$APP.tk(a);a=$APP.uk(a); | ||
var c=$APP.XE($APP.v(K$));b=$APP.Pf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.fi.g(b,a):null;$APP.Jf(K$,$APP.lp.g("\n",$APP.He(a,c)))},nga=function(a,b,c){var d=function(){var f=$APP.jq;$APP.jq=$APP.v(J$);try{a:{var k=$APP.La;$APP.La=!0;try{var l=$APP.Hs.l($APP.F([a]));break a}finally{$APP.La=k}l=void 0}return $APP.Et(l,new $APP.n(null,3,[$APP.gp,$APP.fp,$APP.Rs,mga,$APP.tt,!0],null))}finally{$APP.jq=f}}(),e=$APP.kf(d);d=$APP.fe.g(e,$APP.Dt);e=$APP.fe.g(e,$APP.S);d=$APP.Sj("(async function () {\n%s\n}) ()", | ||
"%s",d);$APP.Jf(J$,e);return Promise.resolve(eval(d)).then(function(f){$APP.r(c)?c.write(esm_import$node_util.inspect(f),"\n"):console.log(f);return L$.g?L$.g(c,b):L$.call(null,c,b)}).catch(function(f){esm_import$squint_cljs$core.println(f);return M$(b,c)})},L$=function(a,b){if($APP.r(function(){var e=$APP.v(I$);return $APP.r(e)?e:!$APP.YE($APP.v(K$))}())){$APP.Jf(I$,!0);var c=$APP.ap($APP.v(K$)),d=function(){try{return $APP.cp(c,$APP.zt)}catch(f){var e=f;if(-1!=$APP.WE(e).indexOf("EOF while reading"))return O$; | ||
N$(c);$APP.xF.l($APP.F([$APP.t.h(e)]));return P$}}();if($APP.A.g(P$,d))return M$(b,a);if($APP.A.g(O$,d))return $APP.Jf(I$,!1);N$(c);return $APP.A.g($APP.bp,d)?M$(b,a):nga(d,b,a)}return null},Q$=function(a,b){a.on("line",function(c){$APP.Pi.A(K$,$APP.t,c,"\n");return L$(b,a)})},oga=function(a){var b=esm_import$readline.createInterface({input:a,output:a});Q$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.zF.l($APP.F(["Client closed connection."]))})},R$=function(a,b,c){var d=$APP.qF.h(a), | ||
e=$APP.aF.h(a);b=esm_import$path.resolve(d,$APP.lF(b,e));c=$APP.cF(c);d=null==c?null:esm_import$path.resolve(d,$APP.lF(c,e));d=null==d?null:null==d?null:esm_import$path.relative(esm_import$path.dirname($APP.t.h(b)),d);return $APP.r(d)?(a=$APP.pF.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Sj(d,$APP.gi([$APP.t.h(e),"$"].join("")),a)].join("")):null},S$=function(a,b,c){b=esm_import$path.resolve(b,$APP.lF(a,c));c=esm_import$path.dirname(b);$APP.r(esm_import$fs.existsSync(c))|| | ||
($APP.zF.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0}));$APP.zF.l($APP.F(["[squint] Copying resource",a,"to",c]));return esm_import$fs.copyFileSync(a,b)},V$=function(a,b){var c=$APP.v($APP.bF),d=$APP.Ik.l($APP.F([c,a])),e=$APP.aF.h(c),f=$APP.qF.g(c,".");a=$APP.Rd(b)?$APP.mg($APP.jr.l(T$,$APP.F([e]))):b;b=$APP.qF.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.zF.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])), | ||
$APP.zF(),$APP.zF.l($APP.F(["Options:\n\n--elide-imports: do not include imports\n--elide-exports: do not include exports\n--extension: default extension for JS files\n--output-dir: output directory for JS files"]))):$APP.oe.j(function(k,l){return Promise.resolve(k).then(function(){return $APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(l))?($APP.zF.l($APP.F(["[squint] Compiling CLJS file:",l])),$APP.rF($APP.zi.l(d,$APP.mF,l,$APP.F([$APP.pq, | ||
function(m){return R$(d,l,m)}])))):S$(l,f,e)}).then(function(m){m=$APP.kf(m);m=$APP.fe.g(m,$APP.oF);$APP.r(m)&&$APP.zF.l($APP.F(["[squint] Wrote file:",m]));return m})},null,a)},v$=new $APP.I(null,"kwd-opt","kwd-opt",1313309243),q$=new $APP.I(null,"hyphens","hyphens",2113533609),y$=new $APP.I(null,"spec","spec",347520401),g$=new $APP.I(null,"coerce","coerce",1917884504),A$=new $APP.I(null,"restrict","restrict",-1071101511),s$=new $APP.I(null,"keywords","keywords",1526959054),P$=new $APP.I("squint.repl.node", | ||
"continue","squint.repl.node/continue",1558138730),B$=new $APP.I(null,"msg","msg",-1386103444),pga=new $APP.I(null,"show","show",-576705889),r$=new $APP.I(null,"boolean","boolean",-1919418404),bga=new $APP.I(null,"input","input",556931961),W$=new $APP.I(null,"rest-cmds","rest-cmds",-423198324),z$=new $APP.I("org.babashka","cli","org.babashka/cli",1162430315),o$=new $APP.I(null,"args-\x3eopts","args-\x3eopts",964391046),h$=new $APP.I(null,"alias","alias",-2039751630),gga=new $APP.I(null,"collect", | ||
"collect",-284321549),qga=new $APP.I(null,"no-run","no-run",-1534313596),i$=new $APP.I(null,"validate","validate",-201300827),u$=new $APP.I(null,"composite-opt","composite-opt",-2021292928),t$=new $APP.I(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.I(null,"help","help",-439233446),D$=new $APP.I(null,"cause","cause",231901252),w$=new $APP.I(null,"fst-colon","fst-colon",1618567071),cga=new $APP.I(null,"coerce-fn","coerce-fn",-821146515),m$=new $APP.I(null,"args","args",1315556576),k$=new $APP.I(null, | ||
"no-keyword-opts","no-keyword-opts",761286018),F$=new $APP.I(null,"value","value",305978217),G$=new $APP.I(null,"pred","pred",1927423397),hga=new $APP.I(null,"closed","closed",-919675359),O$=new $APP.I("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),iga=new $APP.I(null,"error-fn","error-fn",-171437615),E$=new $APP.I(null,"option","option",65132272),j$=new $APP.I(null,"exec-args","exec-args",-1860766354),H$=new $APP.I(null,"ex-msg","ex-msg",-1111774387),Yfa=new $APP.I(null, | ||
"s","s",1705939918),C$=new $APP.I(null,"cmds-opts","cmds-opts",-390130362),rga=new $APP.I(null,"h","h",1109658740),l$=new $APP.I(null,"cmds","cmds",-1841503952);var K$=$APP.Oi.h(""),I$=$APP.Oi.h(!1),J$=$APP.Oi.h($APP.jq),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var mga=$APP.Oi.h($APP.hf),Z$=function Z$(a){switch(arguments.length){case 0:return Z$.v();case 1:return Z$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};Z$.v=function(){return Z$.h(null)}; | ||
Z$.h=function(a){$APP.jq=$APP.Yw;$APP.Zp=$APP.iq=!0;var b=function(){var d=$APP.BF.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(oga);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.zF.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
var $$=function $$(a){switch(arguments.length){case 0:return $$.v();case 1:return $$.h(arguments[0]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$$.v=function(){return $$.h(null)}; | ||
$$.h=function(){$APP.iq=$APP.Zw;$APP.Yp=$APP.hq=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});Q$(b,null);b.setPrompt([$APP.t.h($APP.v(J$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.mg($APP.ir.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.J(null,1,5,$APP.N,[d],null)},$APP.F([c])))},rga=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[l$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.qo,function(a){a=$APP.kf(a);a=$APP.fe.g(a,$APP.AF);var b=$APP.v($APP.$E),c=$APP.Ik.l($APP.F([b,a]));a=$APP.kf(c);var d=$APP.fe.g(a,$APP.Sk); | ||
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.wF.l($APP.F(["[squint] Running",d]));return $APP.pF($APP.zi.l(c,$APP.kF,d,$APP.F([$APP.oq,function(e){return R$(c,d,e)}]))).then(function(e){e=$APP.kf(e);e=$APP.fe.g(e,$APP.mF);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},C$,new $APP.J(null,1,5,$APP.N,[$APP.Sk],null)],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["compile"],null),$APP.qo,function(a){var b=$APP.kf(a); | ||
a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.AF);return V$(b,a)}],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["repl"],null),$APP.qo,$$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["socket-repl"],null),$APP.qo,Z$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["nrepl-server"],null),$APP.qo,function(a){a=$APP.kf(a);var b=$APP.fe.g(a,$APP.AF);return shadow_esm_import("./node.nrepl_server.js").then(function(c){c=c.startServer;return c.h?c.h(b):c.call(null,b)})}],null),new $APP.n(null, | ||
2,[l$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.qo,function(a){var b=$APP.v($APP.$E),c=$APP.Ik.l($APP.F([b,a])),d=$APP.ZE.h(b),e=$APP.oF.g(b,".");return shadow_esm_import("chokidar").catch(function(f){return console.error(f)}).then(function(f){f=f.watch;$APP.wF.l($APP.F(["[squint] Watching paths:",$APP.lp.g(", ",d)]));for(var k=$APP.x(d),l=null,m=0,g=0;;)if(g<m){var p=l.ba(null,g);(f.h?f.h(p):f.call(null,p)).on("all",function(D,H,O,P,W,ca,ia,ma,pa,fa){return function(E,B){return $APP.r(esm_import$fs.lstatSync(B).isDirectory())? | ||
$$.h=function(){$APP.jq=$APP.Yw;$APP.Zp=$APP.iq=!0;$APP.r(X$)&&process.stdin.setRawMode(!0);return Promise.resolve(eval("globalThis.user \x3d globalThis.user || {};")).then(function(){return new Promise(function(a){var b=$APP.r(null)?esm_import$readline.createInterface({input:null,output:null}):esm_import$readline.createInterface({input:process.stdin,output:process.stdout});Q$(b,null);b.setPrompt([$APP.t.h($APP.v(J$)),"\x3d\x3e "].join(""));b.on("close",a);return b.prompt()})})};$$.m=1;var T$=function T$(a){var c=esm_import$fs.readdirSync(a);return $APP.mg($APP.jr.l(function(d){d=esm_import$path.resolve(a,d);return $APP.r(esm_import$fs.lstatSync(d).isDirectory())?T$.h?T$.h(d):T$.call(null,d):new $APP.J(null,1,5,$APP.N,[d],null)},$APP.F([c])))},sga=new $APP.J(null,7,5,$APP.N,[new $APP.n(null,3,[l$,new $APP.J(null,1,5,$APP.N,["run"],null),$APP.qo,function(a){a=$APP.kf(a);a=$APP.fe.g(a,$APP.CF);var b=$APP.v($APP.bF),c=$APP.Ik.l($APP.F([b,a]));a=$APP.kf(c);var d=$APP.fe.g(a,$APP.Sk); | ||
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.zF.l($APP.F(["[squint] Running",d]));return $APP.rF($APP.zi.l(c,$APP.mF,d,$APP.F([$APP.pq,function(e){return R$(c,d,e)}]))).then(function(e){e=$APP.kf(e);e=$APP.fe.g(e,$APP.oF);e=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",$APP.t.h(e)].join("");return shadow_esm_import(e)})},C$,new $APP.J(null,1,5,$APP.N,[$APP.Sk],null)],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["compile"],null),$APP.qo,function(a){var b=$APP.kf(a); | ||
a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.CF);return V$(b,a)}],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["repl"],null),$APP.qo,$$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["socket-repl"],null),$APP.qo,Z$],null),new $APP.n(null,2,[l$,new $APP.J(null,1,5,$APP.N,["nrepl-server"],null),$APP.qo,function(a){a=$APP.kf(a);var b=$APP.fe.g(a,$APP.CF);return shadow_esm_import("./node.nrepl_server.js").then(function(c){c=c.startServer;return c.h?c.h(b):c.call(null,b)})}],null),new $APP.n(null, | ||
2,[l$,new $APP.J(null,1,5,$APP.N,["watch"],null),$APP.qo,function(a){var b=$APP.v($APP.bF),c=$APP.Ik.l($APP.F([b,a])),d=$APP.aF.h(b),e=$APP.qF.g(b,".");return shadow_esm_import("chokidar").catch(function(f){return console.error(f)}).then(function(f){f=f.watch;$APP.zF.l($APP.F(["[squint] Watching paths:",$APP.lp.g(", ",d)]));for(var k=$APP.x(d),l=null,m=0,g=0;;)if(g<m){var p=l.ba(null,g);(f.h?f.h(p):f.call(null,p)).on("all",function(D,H,O,P,W,ca,ia,ma,pa,fa){return function(E,B){return $APP.r(esm_import$fs.lstatSync(B).isDirectory())? | ||
null:$APP.he(new $APP.Qh(null,new $APP.n(null,2,["add",null,"change",null],null),null),E)&&$APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(B))?V$(ma,new $APP.J(null,1,5,$APP.N,[B],null)).catch(function(){return function(ea){return console.error(ea)}}(D,H,O,P,W,ca,ia,ma,pa,fa)):S$(B,fa,pa)}}(k,l,m,g,p,f,b,c,d,e));g+=1}else{var q=$APP.x(k);if(q){var u=q;$APP.Zd(u)?(k=$APP.uc(u),m=$APP.vc(u),l=k,u=$APP.xd(k),k=m,m=u):(p=$APP.y(u),(f.h?f.h(p): | ||
f.call(null,p)).on("all",function(D,H,O,P,W,ca,ia,ma,pa,fa,E,B){return function(ea,K){return $APP.r(esm_import$fs.lstatSync(K).isDirectory())?null:$APP.he(new $APP.Qh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Qh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(fa,new $APP.J(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(D,H,O,P,W,ca,ia,ma,pa,fa,E,B)):S$(K,B,E)}}(k,l,m,g, | ||
p,u,q,f,b,c,d,e)),k=$APP.z(u),l=null,m=0);g=0}else return null}})}],null),new $APP.n(null,2,[l$,$APP.lg,$APP.qo,function(a){a=$APP.kf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.AF);a=$APP.IC.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.wF.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.BE.g(a,$APP.zi.l(c,$APP.Us,$APP.Us.h(c),$APP.F([$APP.Qs,$APP.Oi.h(new $APP.n(null,1,[$APP.lo,$APP.Zw], | ||
null))])));var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(oga.h(c))&&$APP.wF.l($APP.F([a]));if($APP.r(pga.h(c)))return null;a=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return shadow_esm_import(a).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Rd(b)}())?$APP.wF.l($APP.F(["Squint v0.4.58\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])): | ||
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Ss,new $APP.n(null,1,[qga,U$],null),g$,new $APP.n(null,4,[$APP.st,r$,$APP.yq,r$,$APP.oF,$APP.fl,$APP.Us,r$],null)],null),b=n$(process.argv.slice(2),a),c=$APP.kf(b),d=$APP.fe.g(c,l$),e=$APP.fe.g(c,m$);return $APP.oe.j(function(f,k){f=$APP.kf(k);var l=$APP.fe.g(f,l$),m=$APP.fe.g(f,$APP.qo),g=kga(l,d);if($APP.r(g)){k=function(){var u=null==g?null:$APP.x(g);return null==u?null:$APP.mg(u)}();k=$APP.R.g(k,e);f=jga(k,X9(a,$APP.F([f])));k=$APP.kf(f);var p=$APP.fe.g(k, | ||
$APP.AF);f=$APP.fe.g(k,m$);k=$APP.fe.g(k,l$);var q=$APP.R.g(k,f);return $APP.ld(function(){var u=$APP.zi.l(c,m$,q,$APP.F([W$,q,$APP.AF,p,$APP.Uo,l]));return m.h?m.h(u):m.call(null,u)}())}return null},null,rga)})(); | ||
p,u,q,f,b,c,d,e)),k=$APP.z(u),l=null,m=0);g=0}else return null}})}],null),new $APP.n(null,2,[l$,$APP.lg,$APP.qo,function(a){a=$APP.kf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.CF);a=$APP.LC.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.zF.l($APP.F(["Usage: squint -e \x3cexpr\x3e \x3copts\x3e\n\nOptions:\n\n--no-run: do not run compiled expression\n--show: print compiled expression"]));a=$APP.DE.g(a,$APP.zi.l(c,$APP.Vs,$APP.Vs.h(c),$APP.F([$APP.Rs,$APP.Oi.h(new $APP.n(null,1,[$APP.lo,$APP.Yw], | ||
null))])));var d=esm_import$fs.mkdtempSync(".tmp"),e=[$APP.t.h(d),"/squint.mjs"].join("");esm_import$fs.writeFileSync(e,a,"utf-8");$APP.r(pga.h(c))&&$APP.zF.l($APP.F([a]));if($APP.r(qga.h(c)))return null;a=$APP.r(esm_import$path.isAbsolute(e))?e:[$APP.t.h(process.cwd()),"/",e].join("");return shadow_esm_import(a).finally(function(){return esm_import$fs.rmSync(d,{force:!0,recursive:!0})})}return $APP.r(function(){var f=U$.h(c);return $APP.r(f)?f:$APP.A.g("help",$APP.y(b))||$APP.Rd(b)}())?$APP.zF.l($APP.F(["Squint v0.4.59\n\nUsage: squint \x3csubcommand\x3e \x3copts\x3e\n\nSubcommands:\n\n-e \x3cexpr\x3e Compile and run expression.\nrun \x3cfile.cljs\x3e Compile and run a file\nwatch Watch :paths in squint.edn\ncompile \x3cfile.cljs\x3e ... Compile file(s)\nrepl Start repl\nhelp Print this help\n\nUse squint \x3csubcommand\x3e --help to show more info."])): | ||
V$(c,b)}],null)],null);(function(){var a=new $APP.n(null,2,[$APP.Ts,new $APP.n(null,1,[rga,U$],null),g$,new $APP.n(null,4,[$APP.tt,r$,$APP.zq,r$,$APP.qF,$APP.fl,$APP.Vs,r$],null)],null),b=n$(process.argv.slice(2),a),c=$APP.kf(b),d=$APP.fe.g(c,l$),e=$APP.fe.g(c,m$);return $APP.oe.j(function(f,k){f=$APP.kf(k);var l=$APP.fe.g(f,l$),m=$APP.fe.g(f,$APP.qo),g=lga(l,d);if($APP.r(g)){k=function(){var u=null==g?null:$APP.x(g);return null==u?null:$APP.mg(u)}();k=$APP.R.g(k,e);f=kga(k,X9(a,$APP.F([f])));k=$APP.kf(f);var p=$APP.fe.g(k, | ||
$APP.CF);f=$APP.fe.g(k,m$);k=$APP.fe.g(k,l$);var q=$APP.R.g(k,f);return $APP.ld(function(){var u=$APP.zi.l(c,m$,q,$APP.F([W$,q,$APP.CF,p,$APP.Uo,l]));return m.h?m.h(u):m.call(null,u)}())}return null},null,sga)})(); |
import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
import "./node.js"; | ||
const shadow_esm_import = function(x) { return import(x) }; | ||
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var DE,EE,FE,PE,QE,RE,XE,YE,hF,iF,qF,sF,bF,gF,lF;$APP.CE=function(a,b){return $APP.qa(a,b)};DE=function(a,b){a.sort(b||$APP.Ca)};EE=function(a,b){const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.Ca;DE(c,function(e,f){return d(e.value,f.value)||e.index-f.index});for(b=0;b<a.length;b++)a[b]=c[b].value};FE=function(){}; | ||
$APP.GE=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.db($APP.yb,a):$APP.db($APP.yb,a)};$APP.HE=function(a){return $APP.ee(a)||!1};$APP.IE=function(a){return"number"===typeof a};$APP.JE=function(){this.C=[]};$APP.KE=function(a){return $APP.A.g(a,$APP.ie)?$APP.ie:function(b,c){var d=a.g?a.g(b,c):a.call(null,b,c);return"number"===typeof d?d:$APP.r(d)?-1:$APP.r(a.g?a.g(c,b):a.call(null,c,b))?1:0}};$APP.LE=function(a){$APP.li("\n");return $APP.fe.g(a,$APP.Ha),null}; | ||
$APP.ME=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.db(FE,a)):$APP.db(FE,a))?$APP.Db(a,b):null!=a&&$APP.GE(a)&&$APP.he(a,b)?new $APP.Kg(b,$APP.fe.g(a,b),null):null};$APP.NE=function(a,b){return new $APP.J(null,2,5,$APP.N,[$APP.pr.g(a,b),$APP.qr.g(a,b)],null)};$APP.OE=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};PE=function(){}; | ||
QE=function(a){if(null!=a&&null!=a.bf)a=a.bf(a);else{var b=QE[$APP.ka(null==a?null:a)];if(null!=b)a=b.h?b.h(a):b.call(null,a);else if(b=QE._,null!=b)a=b.h?b.h(a):b.call(null,a);else throw $APP.fb("IEncodeJS.-clj-\x3ejs",a);}return a};RE=function(a,b){return(null!=a?$APP.Oc===a.af||(a.wd?0:$APP.db(PE,a)):$APP.db(PE,a))?QE(a):"string"===typeof a||"number"===typeof a||a instanceof $APP.I||a instanceof $APP.w?b.h?b.h(a):b.call(null,a):$APP.Gs.l($APP.F([a]))}; | ||
$APP.SE=function(a){return Math.floor(Math.random()*a)}; | ||
$APP.TE=function(){function a(){return $APP.SE(16).toString(16)}var b=(8|3&$APP.SE(16)).toString(16);return new $APP.gj([$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-4",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(b),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()), | ||
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.UE=function(a){return a instanceof Error?a.message:null};$APP.VE=function(a){return $APP.xq.g(a,/\n|\r\n/)};$APP.WE=function(a){return $APP.ua(null==a?"":String(a))};XE=function(a,b){return $APP.r($APP.r(b)?$APP.Go.g(b,""):b)?$APP.wm(a,$APP.Ck(b)):null}; | ||
YE=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.J(null,2,5,$APP.N,["cljc","cljs"],null))};$APP.aF=function(a){var b=$APP.Sj($APP.Sj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return YE(c,b)},$APP.ZE.g($APP.v($APP.$E),new $APP.J(null,2,5,$APP.N,[".","src"],null)))}; | ||
hF=function(a,b){b=$APP.kf(b);var c=$APP.fe.g(b,$APP.Qs);a=$APP.cp($APP.ap(a),$APP.yt);if($APP.be(a)&&$APP.A.g($APP.wj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);return $APP.be(l)&&$APP.A.g(bF,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.cF.j(2,1,a));var e=$APP.C.j(a,0,null),f=$APP.C.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.dF.h($APP.v($APP.eF)); | ||
return $APP.oe.j(function(l,m){return l.then(function(){var g=$APP.x(m),p=$APP.y(g);g=$APP.z(g);g=$APP.kf(g);var q=$APP.fe.g(g,$APP.tq),u=$APP.fe.g(g,$APP.uq);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.eD,new $APP.G(null,new $APP.G(null,$APP.Fj,new $APP.G(null,p,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.J(null,1,5,$APP.N,[$APP.fF],null)):O}();k.h?k.h(D):k.call(null,D);var H=function(){var O=$APP.X.h($APP.x($APP.R.g(new $APP.G(null, | ||
gF,null,1,null),new $APP.G(null,$APP.X.h($APP.x($APP.R.g(new $APP.G(null,$APP.Fj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Mh(H);H=$APP.Oh(H);H=$APP.ui.g($APP.od,H);return $APP.Yh(D,H)}()).then(function(D){return $APP.Pi.g(c,function(H){H=$APP.bu(H,new $APP.J(null,2,5,$APP.N,[$APP.Rs,p],null),D);H=$APP.r(u)?$APP.bu(H,new $APP.J(null,3,5,$APP.N,[d,$APP.Ss,u],null),p):H;return $APP.r(q)?$APP.bu(H,new $APP.J(null,2,5,$APP.N,[d,$APP.Ts], | ||
null),$APP.Yh(q,$APP.Yt.h(p))):H})})})},Promise.resolve(null),e)}):null}return null};iF=function(a,b){return Promise.resolve(hF(a,b)).then(function(){return $APP.Dt(a,b)})}; | ||
$APP.jF=function(a,b){return $APP.oe.j(function(c,d){a:{var e=esm_import$path.resolve(d).split(esm_import$path.sep);for(var f=esm_import$path.resolve(a).split(esm_import$path.sep);;){var k=$APP.Rd(e);if(k){e=k;break a}if(k=$APP.x(f))if(k=$APP.A.g($APP.y(e),$APP.y(f)))e=$APP.cd(e),f=$APP.cd(f);else{e=k;break a}else{e=k;break a}}}return e?$APP.ld(esm_import$path.relative(d,a)):c},a,b)}; | ||
$APP.pF=function(a){a=$APP.kf(a);var b=$APP.fe.g(a,$APP.kF),c=$APP.fe.g(a,lF),d=$APP.fe.g(a,$APP.mF),e=$APP.fe.g(a,$APP.nF),f=$APP.fe.j(a,$APP.oF,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return iF(c,$APP.zi.j(a,$APP.Qs,$APP.Oi.h(new $APP.n(null,1,[$APP.lo,$APP.Zw],null)))).then(function(k){k=$APP.kf(k);var l=$APP.fe.g(k,$APP.Ct),m=$APP.fe.g(k,$APP.xp),g=$APP.ZE.g($APP.v($APP.$E),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?g=d:(g=$APP.jF(b,g), | ||
$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Sj(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),g=$APP.Sj(g,/.clj(s|c)$/,m));p=q.call(p,f,g);q=esm_import$path.dirname(p);$APP.r(esm_import$fs.existsSync(q))||esm_import$fs.mkdirSync(q,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(q)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.oF,f,$APP.mF,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.zi.j(k,$APP.mF,p)})}; | ||
qF=function(a){return $APP.vu.l(a,$APP.F([$APP.wu,!0]))};sF=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Zc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.au.g(qF,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.rF):$APP.rF(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.JE.prototype.add=function(a){return this.C.push(a)}; | ||
$APP.JE.prototype.size=function(){return this.C.length};$APP.JE.prototype.clear=function(){return this.C=[]};$APP.JE.prototype.fd=function(){return 0===this.C.length};$APP.tF=function tF(a){switch(arguments.length){case 1:return tF.h(arguments[0]);case 2:return tF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.tF.h=function(a){return $APP.tF.g($APP.ie,a)}; | ||
$APP.tF.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);EE(c,$APP.KE(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};$APP.tF.m=2;$APP.uF=function uF(a){switch(arguments.length){case 2:return uF.g(arguments[0],arguments[1]);case 3:return uF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.uF.g=function(a,b){return $APP.uF.j(a,$APP.ie,b)}; | ||
$APP.uF.j=function(a,b,c){return $APP.tF.g(function(d,e){d=a.h?a.h(d):a.call(null,d);e=a.h?a.h(e):a.call(null,e);var f=$APP.KE(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.uF.m=3;$APP.vF=function vF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return vF.l(0<c.length?new $APP.Zc(c.slice(0),0,null):null)};$APP.vF.l=function(a){$APP.Di(a,$APP.Ra());return $APP.r($APP.Ta)?$APP.LE($APP.Ra()):null};$APP.vF.m=0;$APP.vF.o=function(a){return this.l($APP.x(a))}; | ||
$APP.wF=function wF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return wF.l(0<c.length?new $APP.Zc(c.slice(0),0,null):null)};$APP.wF.l=function(a){$APP.Di(a,$APP.zi.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Ta)?$APP.LE($APP.Ra()):null};$APP.wF.m=0;$APP.wF.o=function(a){return this.l($APP.x(a))}; | ||
$APP.cF=function cF(a){switch(arguments.length){case 1:return cF.h(arguments[0]);case 2:return cF.g(arguments[0],arguments[1]);case 3:return cF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.cF.h=function(a){return function(b){var c=new $APP.JE;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.mg(c.C),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.fd())){var m=$APP.mg(c.C);c.clear();l=$APP.pd(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+ | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.cF.g=function(a,b){return $APP.cF.j(a,a,b)};$APP.cF.j=function(a,b,c){return new $APP.Qe(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.cF.j(a,b,$APP.Pf.g(b,d))):null},null,null)};$APP.cF.m=3;$APP.OE.prototype.nb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.OE.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.OE.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.FB,null==this.f?$APP.wv:$APP.Cz,$APP.tu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.rF=function rF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return rF.l(arguments[0],1<c.length?new $APP.Zc(c.slice(1),0,null):null)}; | ||
$APP.rF.l=function(a,b){b=$APP.kf(b);var c=$APP.fe.j(b,$APP.XC,$APP.Xh),d=function k(f){if(null==f)return null;if(null!=f?$APP.Oc===f.af||(f.wd?0:$APP.db(PE,f)):$APP.db(PE,f))return QE(f);if(f instanceof $APP.I)return c.h?c.h(f):c.call(null,f);if(f instanceof $APP.w)return $APP.t.h(f);if($APP.Vd(f)){var l={};f=$APP.x(f);for(var m=null,g=0,p=0;;)if(p<g){var q=m.ba(null,p),u=$APP.C.j(q,0,null);q=$APP.C.j(q,1,null);u=RE(u,d);q=k(q);l[u]=q;p+=1}else if(f=$APP.x(f))$APP.Zd(f)?(g=$APP.uc(f),f=$APP.vc(f), | ||
m=g,g=$APP.xd(g)):(g=$APP.y(f),m=$APP.C.j(g,0,null),g=$APP.C.j(g,1,null),m=RE(m,d),g=k(g),l[m]=g,f=$APP.z(f),m=null,g=0),p=0;else break;return l}if($APP.Sd(f)){l=[];f=$APP.x($APP.ui.g(k,f));m=null;for(p=g=0;;)if(p<g)u=m.ba(null,p),l.push(u),p+=1;else if(f=$APP.x(f))m=f,$APP.Zd(m)?(f=$APP.uc(m),p=$APP.vc(m),m=f,g=$APP.xd(f),f=p):(f=$APP.y(m),l.push(f),f=$APP.z(m),m=null,g=0),p=0;else break;return l}return f};return d(a)};$APP.rF.m=1; | ||
$APP.rF.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)};$APP.yF=function yF(a){switch(arguments.length){case 1:return yF.h(arguments[0]);case 2:return yF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.yF.h=function(a){return XE(new $APP.n(null,3,[$APP.um,$APP.v($APP.MD),$APP.vm,$APP.v($APP.LD),$APP.al,null],null),a)}; | ||
$APP.yF.g=function(a,b){return XE($APP.Lm.j($APP.Ik.l($APP.F([new $APP.n(null,1,[$APP.vm,$APP.v($APP.LD)],null),a])),$APP.um,function(c){return $APP.Ik.l($APP.F([$APP.v($APP.MD),c]))}),b)};$APP.yF.m=2;$APP.zF=new $APP.I(null,"port","port",1534937262);$APP.fF=new $APP.I(null,"reload","reload",863702807);$APP.AF=new $APP.I(null,"opts","opts",155075701);$APP.oF=new $APP.I(null,"output-dir","output-dir",-290956991);bF=new $APP.I(null,"require-macros","require-macros",707947416); | ||
$APP.BF=new $APP.I(null,"message","message",-406056002);$APP.kF=new $APP.I(null,"in-file","in-file",-1682176692);$APP.CF=new $APP.I(null,"id","id",-1388402092);gF=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.ZE=new $APP.I(null,"paths","paths",-1807389588);$APP.DF=new $APP.I(null,"eval","eval",-1103567905);$APP.dF=new $APP.I(null,"eval-form","eval-form",-1934118476);$APP.mF=new $APP.I(null,"out-file","out-file",-1187066405);lF=new $APP.I(null,"in-str","in-str",-1014658121); | ||
$APP.nF=new $APP.I(null,"extension","extension",1453374065);$APP.$E=new $APP.OE(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.yF.h(a)}else a=null;return a},null);var EF;$APP.eF=$APP.Oi.h(null);EF=sF(iF);export const compileFile=sF($APP.pF);export const compileString=EF; | ||
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var FE,GE,HE,RE,SE,TE,ZE,$E,jF,kF,sF,uF,dF,iF,nF;$APP.EE=function(a,b){return $APP.qa(a,b)};FE=function(a,b){a.sort(b||$APP.Ca)};GE=function(a,b){const c=Array(a.length);for(let e=0;e<a.length;e++)c[e]={index:e,value:a[e]};const d=b||$APP.Ca;FE(c,function(e,f){return d(e.value,f.value)||e.index-f.index});for(b=0;b<a.length;b++)a[b]=c[b].value};HE=function(){}; | ||
$APP.IE=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.db($APP.yb,a):$APP.db($APP.yb,a)};$APP.JE=function(a){return $APP.ee(a)||!1};$APP.KE=function(a){return"number"===typeof a};$APP.LE=function(){this.C=[]};$APP.ME=function(a){return $APP.A.g(a,$APP.ie)?$APP.ie:function(b,c){var d=a.g?a.g(b,c):a.call(null,b,c);return"number"===typeof d?d:$APP.r(d)?-1:$APP.r(a.g?a.g(c,b):a.call(null,c,b))?1:0}};$APP.NE=function(a){$APP.li("\n");return $APP.fe.g(a,$APP.Ha),null}; | ||
$APP.OE=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.db(HE,a)):$APP.db(HE,a))?$APP.Db(a,b):null!=a&&$APP.IE(a)&&$APP.he(a,b)?new $APP.Kg(b,$APP.fe.g(a,b),null):null};$APP.PE=function(a,b){return new $APP.J(null,2,5,$APP.N,[$APP.qr.g(a,b),$APP.rr.g(a,b)],null)};$APP.QE=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};RE=function(){}; | ||
SE=function(a){if(null!=a&&null!=a.bf)a=a.bf(a);else{var b=SE[$APP.ka(null==a?null:a)];if(null!=b)a=b.h?b.h(a):b.call(null,a);else if(b=SE._,null!=b)a=b.h?b.h(a):b.call(null,a);else throw $APP.fb("IEncodeJS.-clj-\x3ejs",a);}return a};TE=function(a,b){return(null!=a?$APP.Oc===a.af||(a.wd?0:$APP.db(RE,a)):$APP.db(RE,a))?SE(a):"string"===typeof a||"number"===typeof a||a instanceof $APP.I||a instanceof $APP.w?b.h?b.h(a):b.call(null,a):$APP.Hs.l($APP.F([a]))}; | ||
$APP.UE=function(a){return Math.floor(Math.random()*a)}; | ||
$APP.VE=function(){function a(){return $APP.UE(16).toString(16)}var b=(8|3&$APP.UE(16)).toString(16);return new $APP.gj([$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-4",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(b),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),"-",$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()), | ||
$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a()),$APP.t.h(a())].join("").toLowerCase())};$APP.WE=function(a){return a instanceof Error?a.message:null};$APP.XE=function(a){return $APP.yq.g(a,/\n|\r\n/)};$APP.YE=function(a){return $APP.ua(null==a?"":String(a))};ZE=function(a,b){return $APP.r($APP.r(b)?$APP.Go.g(b,""):b)?$APP.wm(a,$APP.Ck(b)):null}; | ||
$E=function(a,b){return $APP.Ef(function(c){c=esm_import$path.resolve(a,[$APP.t.h(b),".",$APP.t.h(c)].join(""));return $APP.r(esm_import$fs.existsSync(c))?c:null},new $APP.J(null,2,5,$APP.N,["cljc","cljs"],null))};$APP.cF=function(a){var b=$APP.Sj($APP.Sj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return $E(c,b)},$APP.aF.g($APP.v($APP.bF),new $APP.J(null,2,5,$APP.N,[".","src"],null)))}; | ||
jF=function(a,b){b=$APP.kf(b);var c=$APP.fe.g(b,$APP.Rs);a=$APP.cp($APP.ap(a),$APP.zt);if($APP.be(a)&&$APP.A.g($APP.wj,$APP.y(a))){a=$APP.x(a);$APP.y(a);a=$APP.z(a);var d=$APP.y(a);a=$APP.z(a);a=$APP.Ef(function(k){var l=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);return $APP.be(l)&&$APP.A.g(dF,$APP.y(l))?new $APP.J(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.eF.j(2,1,a));var e=$APP.C.j(a,0,null),f=$APP.C.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.fF.h($APP.v($APP.gF)); | ||
return $APP.oe.j(function(l,m){return l.then(function(){var g=$APP.x(m),p=$APP.y(g);g=$APP.z(g);g=$APP.kf(g);var q=$APP.fe.g(g,$APP.uq),u=$APP.fe.g(g,$APP.vq);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.gD,new $APP.G(null,new $APP.G(null,$APP.Fj,new $APP.G(null,p,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.J(null,1,5,$APP.N,[$APP.hF],null)):O}();k.h?k.h(D):k.call(null,D);var H=function(){var O=$APP.X.h($APP.x($APP.R.g(new $APP.G(null, | ||
iF,null,1,null),new $APP.G(null,$APP.X.h($APP.x($APP.R.g(new $APP.G(null,$APP.Fj,null,1,null),new $APP.G(null,p,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Mh(H);H=$APP.Oh(H);H=$APP.ui.g($APP.od,H);return $APP.Yh(D,H)}()).then(function(D){return $APP.Pi.g(c,function(H){H=$APP.cu(H,new $APP.J(null,2,5,$APP.N,[$APP.Ss,p],null),D);H=$APP.r(u)?$APP.cu(H,new $APP.J(null,3,5,$APP.N,[d,$APP.Ts,u],null),p):H;return $APP.r(q)?$APP.cu(H,new $APP.J(null,2,5,$APP.N,[d,$APP.Us], | ||
null),$APP.Yh(q,$APP.Zt.h(p))):H})})})},Promise.resolve(null),e)}):null}return null};kF=function(a,b){return Promise.resolve(jF(a,b)).then(function(){return $APP.Et(a,b)})}; | ||
$APP.lF=function(a,b){return $APP.oe.j(function(c,d){a:{var e=esm_import$path.resolve(d).split(esm_import$path.sep);for(var f=esm_import$path.resolve(a).split(esm_import$path.sep);;){var k=$APP.Rd(e);if(k){e=k;break a}if(k=$APP.x(f))if(k=$APP.A.g($APP.y(e),$APP.y(f)))e=$APP.cd(e),f=$APP.cd(f);else{e=k;break a}else{e=k;break a}}}return e?$APP.ld(esm_import$path.relative(d,a)):c},a,b)}; | ||
$APP.rF=function(a){a=$APP.kf(a);var b=$APP.fe.g(a,$APP.mF),c=$APP.fe.g(a,nF),d=$APP.fe.g(a,$APP.oF),e=$APP.fe.g(a,$APP.pF),f=$APP.fe.j(a,$APP.qF,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");return kF(c,$APP.zi.j(a,$APP.Rs,$APP.Oi.h(new $APP.n(null,1,[$APP.lo,$APP.Yw],null)))).then(function(k){k=$APP.kf(k);var l=$APP.fe.g(k,$APP.Dt),m=$APP.fe.g(k,$APP.xp),g=$APP.aF.g($APP.v($APP.bF),new $APP.J(null,2,5,$APP.N,[".","src"],null)),p=esm_import$path,q=p.resolve;$APP.r(d)?g=d:(g=$APP.lF(b,g), | ||
$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Sj(e,/^\./,"")].join(""):null,m=$APP.r(m)?m:".mjs"),g=$APP.Sj(g,/.clj(s|c)$/,m));p=q.call(p,f,g);q=esm_import$path.dirname(p);$APP.r(esm_import$fs.existsSync(q))||esm_import$fs.mkdirSync(q,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(q)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.qF,f,$APP.oF,p],null));esm_import$fs.writeFileSync(p,l,"utf-8");return $APP.zi.j(k,$APP.oF,p)})}; | ||
sF=function(a){return $APP.wu.l(a,$APP.F([$APP.xu,!0]))};uF=function(a){return function(){function b(d){var e=null;if(0<arguments.length){e=0;for(var f=Array(arguments.length-0);e<f.length;)f[e]=arguments[e+0],++e;e=new $APP.Zc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.bu.g(sF,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.tF):$APP.tF(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.LE.prototype.add=function(a){return this.C.push(a)}; | ||
$APP.LE.prototype.size=function(){return this.C.length};$APP.LE.prototype.clear=function(){return this.C=[]};$APP.LE.prototype.fd=function(){return 0===this.C.length};$APP.vF=function vF(a){switch(arguments.length){case 1:return vF.h(arguments[0]);case 2:return vF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.vF.h=function(a){return $APP.vF.g($APP.ie,a)}; | ||
$APP.vF.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);GE(c,$APP.ME(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd};$APP.vF.m=2;$APP.wF=function wF(a){switch(arguments.length){case 2:return wF.g(arguments[0],arguments[1]);case 3:return wF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.wF.g=function(a,b){return $APP.wF.j(a,$APP.ie,b)}; | ||
$APP.wF.j=function(a,b,c){return $APP.vF.g(function(d,e){d=a.h?a.h(d):a.call(null,d);e=a.h?a.h(e):a.call(null,e);var f=$APP.ME(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.wF.m=3;$APP.xF=function xF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return xF.l(0<c.length?new $APP.Zc(c.slice(0),0,null):null)};$APP.xF.l=function(a){$APP.Di(a,$APP.Ra());return $APP.r($APP.Ta)?$APP.NE($APP.Ra()):null};$APP.xF.m=0;$APP.xF.o=function(a){return this.l($APP.x(a))}; | ||
$APP.zF=function zF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return zF.l(0<c.length?new $APP.Zc(c.slice(0),0,null):null)};$APP.zF.l=function(a){$APP.Di(a,$APP.zi.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Ta)?$APP.NE($APP.Ra()):null};$APP.zF.m=0;$APP.zF.o=function(a){return this.l($APP.x(a))}; | ||
$APP.eF=function eF(a){switch(arguments.length){case 1:return eF.h(arguments[0]);case 2:return eF.g(arguments[0],arguments[1]);case 3:return eF.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.eF.h=function(a){return function(b){var c=new $APP.LE;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.mg(c.C),c.clear(),b.g?b.g(l,m):b.call(null,l,m)):l}function e(l){if(!$APP.r(c.fd())){var m=$APP.mg(c.C);c.clear();l=$APP.pd(b.g?b.g(l,m):b.call(null,l,m))}return b.h?b.h(l):b.call(null,l)}function f(){return b.v?b.v():b.call(null)}var k=null;k=function(l,m){switch(arguments.length){case 0:return f.call(this);case 1:return e.call(this,l);case 2:return d.call(this,l,m)}throw Error("Invalid arity: "+ | ||
arguments.length);};k.v=f;k.h=e;k.g=d;return k}()}};$APP.eF.g=function(a,b){return $APP.eF.j(a,a,b)};$APP.eF.j=function(a,b,c){return new $APP.Qe(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.eF.j(a,b,$APP.Pf.g(b,d))):null},null,null)};$APP.eF.m=3;$APP.QE.prototype.nb=function(){$APP.r(this.f)&&(this.value=this.f.v?this.f.v():this.f.call(null),this.f=null);return this.value};$APP.QE.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.QE.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.JB,null==this.f?$APP.yv:$APP.Ez,$APP.uu,this.value],null),b,c);return $APP.ic(b,"]")};$APP.tF=function tF(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return tF.l(arguments[0],1<c.length?new $APP.Zc(c.slice(1),0,null):null)}; | ||
$APP.tF.l=function(a,b){b=$APP.kf(b);var c=$APP.fe.j(b,$APP.$C,$APP.Xh),d=function k(f){if(null==f)return null;if(null!=f?$APP.Oc===f.af||(f.wd?0:$APP.db(RE,f)):$APP.db(RE,f))return SE(f);if(f instanceof $APP.I)return c.h?c.h(f):c.call(null,f);if(f instanceof $APP.w)return $APP.t.h(f);if($APP.Wd(f)){var l={};f=$APP.x(f);for(var m=null,g=0,p=0;;)if(p<g){var q=m.ba(null,p),u=$APP.C.j(q,0,null);q=$APP.C.j(q,1,null);u=TE(u,d);q=k(q);l[u]=q;p+=1}else if(f=$APP.x(f))$APP.Zd(f)?(g=$APP.uc(f),f=$APP.vc(f), | ||
m=g,g=$APP.xd(g)):(g=$APP.y(f),m=$APP.C.j(g,0,null),g=$APP.C.j(g,1,null),m=TE(m,d),g=k(g),l[m]=g,f=$APP.z(f),m=null,g=0),p=0;else break;return l}if($APP.Sd(f)){l=[];f=$APP.x($APP.ui.g(k,f));m=null;for(p=g=0;;)if(p<g)u=m.ba(null,p),l.push(u),p+=1;else if(f=$APP.x(f))m=f,$APP.Zd(m)?(f=$APP.uc(m),p=$APP.vc(m),m=f,g=$APP.xd(f),f=p):(f=$APP.y(m),l.push(f),f=$APP.z(m),m=null,g=0),p=0;else break;return l}return f};return d(a)};$APP.tF.m=1; | ||
$APP.tF.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)};$APP.AF=function AF(a){switch(arguments.length){case 1:return AF.h(arguments[0]);case 2:return AF.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.AF.h=function(a){return ZE(new $APP.n(null,3,[$APP.um,$APP.v($APP.OD),$APP.vm,$APP.v($APP.ND),$APP.al,null],null),a)}; | ||
$APP.AF.g=function(a,b){return ZE($APP.Lm.j($APP.Ik.l($APP.F([new $APP.n(null,1,[$APP.vm,$APP.v($APP.ND)],null),a])),$APP.um,function(c){return $APP.Ik.l($APP.F([$APP.v($APP.OD),c]))}),b)};$APP.AF.m=2;$APP.BF=new $APP.I(null,"port","port",1534937262);$APP.hF=new $APP.I(null,"reload","reload",863702807);$APP.CF=new $APP.I(null,"opts","opts",155075701);$APP.qF=new $APP.I(null,"output-dir","output-dir",-290956991);dF=new $APP.I(null,"require-macros","require-macros",707947416); | ||
$APP.DF=new $APP.I(null,"message","message",-406056002);$APP.mF=new $APP.I(null,"in-file","in-file",-1682176692);$APP.EF=new $APP.I(null,"id","id",-1388402092);iF=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.aF=new $APP.I(null,"paths","paths",-1807389588);$APP.FF=new $APP.I(null,"eval","eval",-1103567905);$APP.fF=new $APP.I(null,"eval-form","eval-form",-1934118476);$APP.oF=new $APP.I(null,"out-file","out-file",-1187066405);nF=new $APP.I(null,"in-str","in-str",-1014658121); | ||
$APP.pF=new $APP.I(null,"extension","extension",1453374065);$APP.bF=new $APP.QE(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.AF.h(a)}else a=null;return a},null);var GF;$APP.gF=$APP.Oi.h(null);GF=uF(kF);export const compileFile=uF($APP.rF);export const compileString=GF; |
@@ -7,18 +7,18 @@ import { $APP, shadow$provide, $jscomp } from "./compiler.js"; | ||
import*as esm_import$fs from"fs";import*as esm_import$net from"net"; | ||
var K9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},L9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},M9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},N9=function(a){return console.debug($APP.lp.g(" ",a))},ufa=function(a){return function(b,c){b=$APP.kf(b);var d=$APP.fe.g(b,$APP.CF),e=$APP.fe.g(b,tfa);c=$APP.zi.j(c,"id",d);c=$APP.r(e)?$APP.zi.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},wfa=function(){var a= | ||
vfa;return function(b,c){b=$APP.Lm.j(b,O9,$APP.vi);return a.g?a.g(b,c):a.call(null,b,c)}},yfa=function(){var a=xfa();return function(b,c){N9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},zfa=function(a){return function(b,c){N9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},xfa=function(){var a=wfa();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},P9=function(a){return $APP.zi.j($APP.Yh(new $APP.J(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.vu.h(a.split("."))), | ||
"version-string",a)},Afa=function(a,b,c){if($APP.r(a))if(a=Q9.h?Q9.h(a):Q9.call(null,a),$APP.r(a)){b=$APP.kf(b);var d=$APP.fe.g(b,$APP.s9),e=$APP.fe.g(b,$APP.l9),f=$APP.fe.g(b,$APP.u9);b=$APP.Qa;var k=$APP.hi,l=$APP.T6;$APP.Qa=e;$APP.hi=f;$APP.T6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(g){return m.append(g)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.T6=l,$APP.hi=k,$APP.Qa=b}}else return N9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])), | ||
$APP.Gs.l($APP.F([c]));else return $APP.Gs.l($APP.F([c]))},Cfa=function(a){a:{var b=$APP.iq;$APP.iq=$APP.v(R9);try{var c=$APP.Dt(a,new $APP.n(null,5,[$APP.gp,$APP.fp,$APP.Qs,Bfa,$APP.st,!0,$APP.Us,!0,$APP.bs,!0],null));break a}finally{$APP.iq=b}c=void 0}c=$APP.kf(c);a=$APP.fe.g(c,$APP.Ct);c=$APP.fe.g(c,$APP.S);a=$APP.Sj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(R9,c);return a},Ifa=function(a,b){var c=$APP.kf(a);$APP.fe.g(c,$APP.S);a=$APP.fe.g(c,Dfa);$APP.fe.g(c,$APP.Sk);$APP.fe.g(c,Efa);$APP.fe.g(c, | ||
Ffa);return Promise.resolve(a).then(Cfa).then(function(d){$APP.wF.l($APP.F(["About to eval:"]));$APP.wF.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.v(R9)),"value",Afa(Gfa.h(c),Hfa.h(c),d)],null);return b.g?b.g(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.BF.h($APP.ij(d));e=$APP.r(e)?e:d.message;$APP.r(e)&&(e=new $APP.n(null,1,["err",[$APP.t.h(e),"\n"].join("")],null),b.g?b.g(c,e):b.call(null,c,e));d=new $APP.n(null,2,["ex",$APP.t.h(d), | ||
"ns",$APP.t.h($APP.iq)],null);return b.g?b.g(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.n(null,2,["ns",$APP.t.h($APP.v(R9)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},S9=function(a){a=$APP.kf(a);$APP.fe.g(a,$APP.S);return null},vfa=function(a,b){a=$APP.kf(a);var c=$APP.fe.g(a,O9),d=$APP.fe.g(T9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.lp.g(" ",$APP.F(["Unhandled operation",c])));c=new $APP.n(null,1, | ||
["status",new $APP.J(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},Jfa=function(a){return function(b,c){return a.write(U9(c))}},Kfa=function(a,b){N9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=yfa(),d=ufa(zfa(Jfa(b))),e=$APP.Oi.h(null);b.on("data",function(f){var k=$APP.v(e);if($APP.r(k)){f=[$APP.t.h(k),$APP.t.h(f)].join("");$APP.Jf(e,null);var l=f}else l=f;a:for(f=$APP.F([$APP.wu,!0]),k=$APP.lg;;){var m=$APP.Gf.j(V9,l,f);l=$APP.C.j(m, | ||
0,null);m=$APP.C.j(m,1,null);if(null==l){k=new $APP.J(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,l);l=m}f=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);$APP.WE(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var g=m=0;;)if(g<m)l=k.ba(null,g),c(l,d),g+=1;else if(f=$APP.x(f))k=f,$APP.Zd(k)?(f=$APP.uc(k),m=$APP.vc(k),k=f,l=$APP.xd(f),f=m,m=l):(l=$APP.y(k),c(l,d),f=$APP.z(k),k=null,m=0),g=0;else return null});return b.on("close",function(f){return $APP.r(f)?N9($APP.F(["Connection lost"])):N9($APP.F(["Connection closed"]))})}, | ||
Ffa=new $APP.I(null,"_line","_line",232847719),Hfa=new $APP.I("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),tfa=new $APP.I(null,"session","session",1008279103),Lfa=new $APP.I(null,"lookup","lookup",1225356838),Mfa=new $APP.I(null,"load-file","load-file",-424586670),Efa=new $APP.I(null,"_load-file?","_load-file?",-1198848711),O9=new $APP.I(null,"op","op",-1882987955),Nfa=new $APP.I(null,"describe","describe",1369790582),Dfa=new $APP.I(null,"code","code",1586293142), | ||
Ofa=new $APP.I(null,"eldoc","eldoc",-1321421900),Pfa=new $APP.I(null,"log_level","log_level",-1756736313),Gfa=new $APP.I("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Qfa=new $APP.I(null,"clone","clone",711747572),Rfa=new $APP.I(null,"close","close",1835149582),Sfa=new $APP.I(null,"info","info",-317069002),Tfa=new $APP.I(null,"host","host",-1558485167),Ufa=new $APP.I(null,"complete","complete",-500388775);var W9=function W9(a,b){switch($APP.t.h(M9(a,1))){case "i":return a=L9(a,1),b=K9(a,"e"),new $APP.J(null,2,5,$APP.N,[parseInt(M9(a,b)),L9(a,b+1)],null);case "l":var d=a=L9(a,1);for(a=$APP.mc($APP.lg);;){if($APP.A.g($APP.t.h(M9(d,1)),"e"))return new $APP.J(null,2,5,$APP.N,[$APP.pc(a),L9(d,1)],null);var e=W9.g?W9.g(d,b):W9.call(null,d,b),f=$APP.C.j(e,0,null),k=$APP.C.j(e,1,null);e=k;a=$APP.gg.g(a,f);d=e}case "d":for(a=L9(a,1),f=$APP.kf(b),f=$APP.fe.g(f,$APP.wu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(M9(d, | ||
var K9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},L9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},M9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},N9=function(a){return console.debug($APP.lp.g(" ",a))},vfa=function(a){return function(b,c){b=$APP.kf(b);var d=$APP.fe.g(b,$APP.EF),e=$APP.fe.g(b,ufa);c=$APP.zi.j(c,"id",d);c=$APP.r(e)?$APP.zi.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},xfa=function(){var a= | ||
wfa;return function(b,c){b=$APP.Lm.j(b,O9,$APP.vi);return a.g?a.g(b,c):a.call(null,b,c)}},zfa=function(){var a=yfa();return function(b,c){N9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},Afa=function(a){return function(b,c){N9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},yfa=function(){var a=xfa();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},P9=function(a){return $APP.zi.j($APP.Yh(new $APP.J(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.wu.h(a.split("."))), | ||
"version-string",a)},Bfa=function(a,b,c){if($APP.r(a))if(a=Q9.h?Q9.h(a):Q9.call(null,a),$APP.r(a)){b=$APP.kf(b);var d=$APP.fe.g(b,$APP.s9),e=$APP.fe.g(b,$APP.l9),f=$APP.fe.g(b,$APP.u9);b=$APP.Qa;var k=$APP.hi,l=$APP.T6;$APP.Qa=e;$APP.hi=f;$APP.T6=d;try{var m=new $APP.Fa;d=$APP.Ta;e=$APP.Ua;$APP.Ta=!0;$APP.Ua=function(g){return m.append(g)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ua=e,$APP.Ta=d}return $APP.t.h(m)}finally{$APP.T6=l,$APP.hi=k,$APP.Qa=b}}else return N9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])), | ||
$APP.Hs.l($APP.F([c]));else return $APP.Hs.l($APP.F([c]))},Dfa=function(a){a:{var b=$APP.jq;$APP.jq=$APP.v(R9);try{var c=$APP.Et(a,new $APP.n(null,5,[$APP.gp,$APP.fp,$APP.Rs,Cfa,$APP.tt,!0,$APP.Vs,!0,$APP.cs,!0],null));break a}finally{$APP.jq=b}c=void 0}c=$APP.kf(c);a=$APP.fe.g(c,$APP.Dt);c=$APP.fe.g(c,$APP.S);a=$APP.Sj("(async function () {\n%s\n}) ()","%s",a);$APP.Jf(R9,c);return a},Jfa=function(a,b){var c=$APP.kf(a);$APP.fe.g(c,$APP.S);a=$APP.fe.g(c,Efa);$APP.fe.g(c,$APP.Sk);$APP.fe.g(c,Ffa);$APP.fe.g(c, | ||
Gfa);return Promise.resolve(a).then(Dfa).then(function(d){$APP.zF.l($APP.F(["About to eval:"]));$APP.zF.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.v(R9)),"value",Bfa(Hfa.h(c),Ifa.h(c),d)],null);return b.g?b.g(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.DF.h($APP.ij(d));e=$APP.r(e)?e:d.message;$APP.r(e)&&(e=new $APP.n(null,1,["err",[$APP.t.h(e),"\n"].join("")],null),b.g?b.g(c,e):b.call(null,c,e));d=new $APP.n(null,2,["ex",$APP.t.h(d), | ||
"ns",$APP.t.h($APP.jq)],null);return b.g?b.g(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.n(null,2,["ns",$APP.t.h($APP.v(R9)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},S9=function(a){a=$APP.kf(a);$APP.fe.g(a,$APP.S);return null},wfa=function(a,b){a=$APP.kf(a);var c=$APP.fe.g(a,O9),d=$APP.fe.g(T9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.lp.g(" ",$APP.F(["Unhandled operation",c])));c=new $APP.n(null,1, | ||
["status",new $APP.J(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},Kfa=function(a){return function(b,c){return a.write(U9(c))}},Lfa=function(a,b){N9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=zfa(),d=vfa(Afa(Kfa(b))),e=$APP.Oi.h(null);b.on("data",function(f){var k=$APP.v(e);if($APP.r(k)){f=[$APP.t.h(k),$APP.t.h(f)].join("");$APP.Jf(e,null);var l=f}else l=f;a:for(f=$APP.F([$APP.xu,!0]),k=$APP.lg;;){var m=$APP.Gf.j(V9,l,f);l=$APP.C.j(m, | ||
0,null);m=$APP.C.j(m,1,null);if(null==l){k=new $APP.J(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k,l);l=m}f=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);$APP.YE(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var g=m=0;;)if(g<m)l=k.ba(null,g),c(l,d),g+=1;else if(f=$APP.x(f))k=f,$APP.Zd(k)?(f=$APP.uc(k),m=$APP.vc(k),k=f,l=$APP.xd(f),f=m,m=l):(l=$APP.y(k),c(l,d),f=$APP.z(k),k=null,m=0),g=0;else return null});return b.on("close",function(f){return $APP.r(f)?N9($APP.F(["Connection lost"])):N9($APP.F(["Connection closed"]))})}, | ||
Gfa=new $APP.I(null,"_line","_line",232847719),Ifa=new $APP.I("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),ufa=new $APP.I(null,"session","session",1008279103),Mfa=new $APP.I(null,"lookup","lookup",1225356838),Nfa=new $APP.I(null,"load-file","load-file",-424586670),Ffa=new $APP.I(null,"_load-file?","_load-file?",-1198848711),O9=new $APP.I(null,"op","op",-1882987955),Ofa=new $APP.I(null,"describe","describe",1369790582),Efa=new $APP.I(null,"code","code",1586293142), | ||
Pfa=new $APP.I(null,"eldoc","eldoc",-1321421900),Qfa=new $APP.I(null,"log_level","log_level",-1756736313),Hfa=new $APP.I("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Rfa=new $APP.I(null,"clone","clone",711747572),Sfa=new $APP.I(null,"close","close",1835149582),Tfa=new $APP.I(null,"info","info",-317069002),Ufa=new $APP.I(null,"host","host",-1558485167),Vfa=new $APP.I(null,"complete","complete",-500388775);var W9=function W9(a,b){switch($APP.t.h(M9(a,1))){case "i":return a=L9(a,1),b=K9(a,"e"),new $APP.J(null,2,5,$APP.N,[parseInt(M9(a,b)),L9(a,b+1)],null);case "l":var d=a=L9(a,1);for(a=$APP.mc($APP.lg);;){if($APP.A.g($APP.t.h(M9(d,1)),"e"))return new $APP.J(null,2,5,$APP.N,[$APP.pc(a),L9(d,1)],null);var e=W9.g?W9.g(d,b):W9.call(null,d,b),f=$APP.C.j(e,0,null),k=$APP.C.j(e,1,null);e=k;a=$APP.gg.g(a,f);d=e}case "d":for(a=L9(a,1),f=$APP.kf(b),f=$APP.fe.g(f,$APP.xu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(M9(d, | ||
1)),"e"))return new $APP.J(null,2,5,$APP.N,[$APP.pc(e),L9(d,1)],null);a=W9.g?W9.g(d,b):W9.call(null,d,b);d=$APP.C.j(a,0,null);k=$APP.C.j(a,1,null);k=W9.g?W9.g(k,b):W9.call(null,k,b);a=$APP.C.j(k,0,null);k=$APP.C.j(k,1,null);d=$APP.r(f)?$APP.vi.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=K9(a,":"),f=parseInt(M9(a,b)),a=L9(a,b+1),new $APP.J(null,2,5,$APP.N,[$APP.t.h(M9(a,f)),L9(a,f)],null)}},V9=function V9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return V9.l(arguments[0], | ||
1<c.length?new $APP.Zc(c.slice(1),0,null):null)};V9.l=function(a,b){try{return W9(a,b)}catch(c){if(c instanceof Error)return new $APP.J(null,2,5,$APP.N,[null,a],null);throw c;}};V9.m=1;V9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)}; | ||
var U9=function U9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.I||a instanceof $APP.w)a=[function(){var c=$APP.Oe(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.Xh(a)].join("");else return"number"===typeof a?["i",$APP.t.h(a),"e"].join(""):$APP.Td(a)||$APP.Yd(a)||null==a?["l",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(U9,a))),"e"].join(""):$APP.Vd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(function(){return function(c){var d=$APP.C.j(c, | ||
0,null);c=$APP.C.j(c,1,null);return[$APP.t.h(U9.h?U9.h(d):U9.call(null,d)),$APP.t.h(U9.h?U9.h(c):U9.call(null,c))].join("")}}(a),$APP.uF.g($APP.y,a)))),"e"].join(""):null}};var R9=$APP.Oi.h($APP.iq),Q9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.B9],null);$APP.Oi.h(!1); | ||
var Bfa=$APP.Oi.h($APP.hf),T9=$APP.vh([Lfa,Rfa,Mfa,Ofa,Qfa,Nfa,Sfa,Ufa,$APP.DF],[S9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.kf(a);$APP.fe.g(a,$APP.Sk);return null},S9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.TE()),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.n(null,4,["versions",new $APP.n(null, | ||
2,["nbb-nrepl",P9("TODO"),"node",P9(process.version)],null),"aux",$APP.hf,"ops",$APP.Yh($APP.ui.g($APP.Xh,$APP.Mh(T9)),$APP.Yt.h($APP.hf)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},S9,function(){return null},function(a,b){a=$APP.kf(a);var c=$APP.fe.g(a,$APP.S);$APP.vF.l($APP.F([$APP.S,c]));return Ifa($APP.zi.j(a,$APP.S,$APP.v(R9)),b)}]),Vfa=$APP.Oi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.zF.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Tfa.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Pfa.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Lk.g(Kfa,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.wF.l($APP.F([["nREPL server started on port ",$APP.t.h(f)," on host ",$APP.t.h(e)," - nrepl://",$APP.t.h(e), | ||
":",$APP.t.h(f)].join("")]));try{return esm_import$fs.writeFileSync(".nrepl-port",$APP.t.h(f))}catch(k){return console.warn($APP.lp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Vfa,d)})}; | ||
var U9=function U9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.I||a instanceof $APP.w)a=[function(){var c=$APP.Oe(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.Xh(a)].join("");else return"number"===typeof a?["i",$APP.t.h(a),"e"].join(""):$APP.Td(a)||$APP.Yd(a)||null==a?["l",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(U9,a))),"e"].join(""):$APP.Wd(a)?["d",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(function(){return function(c){var d=$APP.C.j(c, | ||
0,null);c=$APP.C.j(c,1,null);return[$APP.t.h(U9.h?U9.h(d):U9.call(null,d)),$APP.t.h(U9.h?U9.h(c):U9.call(null,c))].join("")}}(a),$APP.wF.g($APP.y,a)))),"e"].join(""):null}};var R9=$APP.Oi.h($APP.jq),Q9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.B9],null);$APP.Oi.h(!1); | ||
var Cfa=$APP.Oi.h($APP.hf),T9=$APP.vh([Mfa,Sfa,Nfa,Pfa,Rfa,Ofa,Tfa,Vfa,$APP.FF],[S9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.kf(a);$APP.fe.g(a,$APP.Sk);return null},S9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.VE()),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.n(null,4,["versions",new $APP.n(null, | ||
2,["nbb-nrepl",P9("TODO"),"node",P9(process.version)],null),"aux",$APP.hf,"ops",$APP.Yh($APP.ui.g($APP.Xh,$APP.Mh(T9)),$APP.Zt.h($APP.hf)),"status",new $APP.J(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},S9,function(){return null},function(a,b){a=$APP.kf(a);var c=$APP.fe.g(a,$APP.S);$APP.xF.l($APP.F([$APP.S,c]));return Jfa($APP.zi.j(a,$APP.S,$APP.v(R9)),b)}]),Wfa=$APP.Oi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.BF.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Ufa.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Qfa.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Lk.g(Lfa,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.zF.l($APP.F([["nREPL server started on port ",$APP.t.h(f)," on host ",$APP.t.h(e)," - nrepl://",$APP.t.h(e), | ||
":",$APP.t.h(f)].join("")]));try{return esm_import$fs.writeFileSync(".nrepl-port",$APP.t.h(f))}catch(k){return console.warn($APP.lp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Wfa,d)})}; |
@@ -1,1 +0,1 @@ | ||
var squint;(squint||={}).core=(()=>{var B=Object.defineProperty;var Ce=Object.getOwnPropertyDescriptor;var Fe=Object.getOwnPropertyNames;var Ve=Object.prototype.hasOwnProperty;var We=(e,t)=>{for(var r in t)B(e,r,{get:t[r],enumerable:!0})},Je=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Fe(t))!Ve.call(e,o)&&o!==r&&B(e,o,{get:()=>t[o],enumerable:!(n=Ce(t,o))||n.enumerable});return e};var De=e=>Je(B({},"__esModule",{value:!0}),e);var sn={};We(sn,{Atom:()=>pe,Cons:()=>ce,IIterable:()=>Y,IIterable__iterator:()=>ie,LazySeq:()=>xr,NaN_QMARK_:()=>$r,PROTOCOL_SENTINEL:()=>At,_:()=>Ze,_GT_:()=>Ue,_PLUS_:()=>Xe,_iterator:()=>N,aclone:()=>jr,add_watch:()=>Nr,alength:()=>Rr,apply:()=>Ot,array_QMARK_:()=>ge,aset:()=>Kr,assoc:()=>v,assoc_BANG_:()=>A,assoc_in:()=>Z,assoc_in_BANG_:()=>rt,atom:()=>Mt,boolean$:()=>Ar,boolean_QMARK_:()=>en,bounded_count:()=>tn,butlast:()=>_r,coll_QMARK_:()=>Fr,comp:()=>nt,compare:()=>G,complement:()=>ye,concat:()=>we,conj:()=>H,conj_BANG_:()=>z,cons:()=>se,constantly:()=>kt,contains_QMARK_:()=>te,count:()=>Q,counted_QMARK_:()=>qe,cycle:()=>Dt,dec:()=>ft,deref:()=>xe,disj:()=>ot,disj_BANG_:()=>ee,dissoc:()=>it,dissoc_BANG_:()=>ut,distinct:()=>Ut,doall:()=>Sr,dorun:()=>Qr,drop:()=>T,drop_last:()=>hr,drop_while:()=>Qe,empty:()=>ve,empty_QMARK_:()=>fr,es6_iterator:()=>O,even_QMARK_:()=>de,every_QMARK_:()=>je,every_pred:()=>Gr,ex_cause:()=>Dr,ex_data:()=>Wr,ex_info:()=>Ur,ex_message:()=>Jr,false_QMARK_:()=>wr,ffirst:()=>st,filter:()=>C,filterv:()=>ht,find:()=>rn,first:()=>R,fn_QMARK_:()=>Yr,fnil:()=>W,frequencies:()=>pr,get:()=>h,get_in:()=>Se,group_by:()=>ar,identical_QMARK_:()=>Vt,identity:()=>me,inc:()=>re,int_QMARK_:()=>Ye,integer_QMARK_:()=>Xr,interleave:()=>Ae,interpose:()=>Lt,into:()=>Re,into_array:()=>Te,iterable:()=>f,iterate:()=>Lr,js_keys:()=>qr,js_obj:()=>Er,juxt:()=>Pr,keep:()=>er,keep_indexed:()=>gt,key:()=>Me,keys:()=>ze,last:()=>at,lazy:()=>s,list:()=>Gt,list_QMARK_:()=>Tt,map:()=>M,map_QMARK_:()=>Tr,map_indexed:()=>yt,mapcat:()=>Bt,mapv:()=>he,max:()=>ke,max_key:()=>un,merge:()=>qt,merge_with:()=>Ct,meta:()=>Zr,min:()=>kr,min_key:()=>on,mod:()=>nn,neg_QMARK_:()=>vr,next:()=>Ge,nil_QMARK_:()=>mt,not:()=>le,not_any_QMARK_:()=>ur,not_every_QMARK_:()=>Ht,nth:()=>oe,number_QMARK_:()=>Pe,object_QMARK_:()=>et,odd_QMARK_:()=>It,parse_long:()=>cn,partial:()=>Jt,partition:()=>Yt,partition_all:()=>zt,partition_by:()=>$t,pos_QMARK_:()=>Mr,pr_str:()=>ae,println:()=>ne,prn:()=>vt,rand_int:()=>Ie,rand_nth:()=>cr,range:()=>Rt,re_find:()=>Qt,re_matches:()=>Kt,re_seq:()=>Le,reduce:()=>L,reduce_kv:()=>Ir,reduced:()=>pt,reduced_QMARK_:()=>xt,regexp_QMARK_:()=>Vr,remove:()=>dt,remove_watch:()=>Or,repeat:()=>V,repeatedly:()=>lr,replace:()=>ir,reset_BANG_:()=>_e,rest:()=>lt,reverse:()=>tr,satisfies_QMARK_:()=>He,second:()=>ct,select_keys:()=>Pt,seq:()=>$,seqable_QMARK_:()=>ue,set:()=>Nt,shuffle:()=>or,some:()=>Oe,some_QMARK_:()=>mr,some_fn:()=>Br,sort:()=>Ne,sort_by:()=>nr,split_at:()=>dr,split_with:()=>yr,str:()=>wt,string_QMARK_:()=>D,subs:()=>Be,subvec:()=>St,swap_BANG_:()=>Et,system_time:()=>Ft,t:()=>w,take:()=>k,take_nth:()=>Wt,take_while:()=>Ke,to_array:()=>zr,true_QMARK_:()=>gr,update:()=>Xt,update_BANG_:()=>J,update_in:()=>Zt,val:()=>Ee,vals:()=>Cr,vec:()=>E,vector:()=>F,vector_QMARK_:()=>jt,warn_on_lazy_reusage_BANG_:()=>_t,with_meta:()=>Hr,zero_QMARK_:()=>br});function c(e){if(e==null||e instanceof Function)return e;let t=typeof e;return t==="string"?(r,n)=>h(r,e,n):t==="object"?(r,n)=>h(e,r,n):e}globalThis.toFn=c;function Ue(e,t){return e>t}function Xe(...e){return e.reduce((t,r)=>t+r,0)}function Ze(...e){return e.length==1?0-e[0]:e.reduce((t,r)=>t-r)}function He(e,t){return t[e]}function A(e,t,r,...n){if(n.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(p(e)){case x:e.set(t,r);for(let o=0;o<n.length;o+=2)e.set(n[o],n[o+1]);break;case _:case y:e[t]=r;for(let o=0;o<n.length;o+=2)e[n[o]]=n[o+1];break;default:throw new Error(`Illegal argument: assoc! expects a Map, Array, or Object as the first argument, but got ${typeof e}.`)}return e}function X(e){switch(p(e)){case x:return new Map(e.entries());case _:return[...e];case y:return{...e};default:throw new Error(`Don't know how to copy object of type ${typeof e}.`)}}function v(e,t,r,...n){e||(e={});let o=X(e);return A(o,t,r,...n),o}const x=1,_=2,y=3,b=4,g=5,S=6;function j(e){switch(e){case x:return new Map;case _:return[];case y:return{};case b:return new I;case g:return new Set;case S:return s(function*(){})}}function P(e){return e.constructor===Object}function et(e){return e!=null&&P(e)}function p(e){if(e!=null){if(P(e))return y;if(e instanceof Map)return x;if(e instanceof Set)return g;if(e instanceof I)return b;if(Array.isArray(e))return _;if(e instanceof q)return S;if(e instanceof Object)return y}}function tt(e,t,r,n,o){let u=p(r);if(u!==x&&u!==_&&u!==y)throw new Error(`Illegal argument: ${t} expects the first argument to be a Map, Array, or Object.`);const i=[r];let l=r;for(let a=0;a<n.length-1;a+=1){let m=n[a],d;l instanceof Map?d=l.get(m):d=l[m],d||(d=j(u)),i.push(d),l=d}i.push(o);for(let a=i.length-2;a>=0;a-=1)i[a]=e(i[a],n[a],i[a+1]);return i[0]}function Z(e,t,r){return tt(v,"assoc-in",e,t,r)}function rt(e,t,r){var n=e;let o=p(e);for(const u of t.splice(0,t.length-1)){let i=h(n,u);i===void 0&&(i=j(o),A(n,u,i)),n=i}return A(n,t[t.length-1],r),e}function nt(...e){if(e=e.map(c),e.length===0)return me;if(e.length===1)return e[0];let[t,...r]=e.slice().reverse();return function(...n){let o=t(...n);for(const u of r)o=u(o);return o}}function z(...e){if(e.length===0)return F();let[t,...r]=e;switch(t==null&&(t=[]),p(t)){case g:for(const n of r)t.add(n);break;case b:t.unshift(...r.reverse());break;case _:t.push(...r);break;case x:for(const n of r)Array.isArray(n)?t.set(n[0],n[1]):f(n).forEach(o=>{t.set(o[0],o[1])});break;case y:for(const n of r)Array.isArray(n)?t[n[0]]=n[1]:Object.assign(t,n);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return t}function H(...e){if(e.length===0)return F();let[t,...r]=e;switch(t==null&&(t=[]),p(t)){case g:return new Set([...t,...r]);case b:return new I(...r.reverse(),...t);case _:return[...t,...r];case x:const n=new Map(t);for(const u of r)Array.isArray(u)?n.set(u[0],u[1]):f(u).forEach(i=>{n.set(i[0],i[1])});return n;case S:return s(function*(){yield*r,yield*t});case y:const o={...t};for(const u of r)Array.isArray(u)?o[u[0]]=u[1]:Object.assign(o,u);return o;default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function ee(e,...t){for(const r of t)e.delete(r);return e}function ot(e,...t){let r=new Set([...e]);return ee(r,...t)}function te(e,t){switch(p(e)){case g:case x:return e.has(t);case void 0:return!1;default:return t in e}}function ut(e,...t){for(const r of t)delete e[r];return e}function it(e,...t){let r={...e};for(const n of t)delete r[n];return r}function re(e){return e+1}function ft(e){return e-1}function ne(...e){console.log(...e)}function oe(e,t,r){if(e){var n=void 0;if(Array.isArray(e))n=e[t];else{let o=f(e),u=0;for(let i of o)if(u++==t){n=i;break}}if(n!==void 0)return n}return r}function h(e,t,r=void 0){if(e==null)return r;let n;if(P(e))return n=e[t],n===void 0?r:n;switch(p(e)){case g:e.has(t)&&(n=t);break;case x:n=e.get(t);break;case _:n=e[t];break;default:if(e.get instanceof Function)try{n=e.get(t);break}catch{}n=e[t];break}return n!==void 0?n:r}function ue(e){return typeof e=="string"||e===null||e===void 0||e instanceof Object&&Symbol.iterator in e}function f(e){return e==null?[]:ue(e)?e:Object.entries(e)}const Y=Symbol("Iterable"),ie=Symbol.iterator;function N(e){return e[Symbol.iterator]()}const O=N;function $(e){let t=f(e);return t.length===0||t.size===0?null:t}function R(e){let[t]=f(e);return t}function ct(e){let[t,r]=f(e);return r}function st(e){return R(R(e))}function lt(e){return s(function*(){let t=!0;for(const r of f(e))t?t=!1:yield r})}class K{value;constructor(t){this.value=t}_deref(){return this.value}}function at(e){switch(e=f(e),p(e)){case _:return e[e.length-1];default:let t;for(const r of e)t=r;return t}}function pt(e){return new K(e)}function xt(e){return e instanceof K}function L(e,t,r){e=c(e);let n,o;if(r===void 0){let u=f(t)[Symbol.iterator]();o=u.next().value,n=u}else o=t,n=f(r);if(o instanceof K)return o.value;for(const u of n)if(o=e(o,u),o instanceof K){o=o.value;break}return o}var fe=!1;function _t(){fe=!0}class q{constructor(t){this.gen=t,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&fe)try{throw new Error}catch(t){console.warn("Re-use of lazy value",t.stack)}return this.gen()}}q.prototype[Y]=!0;function s(e){return new q(e)}class ce{constructor(t,r){this.x=t,this.coll=r}*[Symbol.iterator](){yield this.x,yield*f(this.coll)}}function se(e,t){return new ce(e,t)}function M(e,...t){switch(e=c(e),t.length){case 0:throw new Error("map with 2 arguments is not supported yet");case 1:return s(function*(){for(const r of f(t[0]))yield e(r)});default:return s(function*(){const r=t.map(n=>O(f(n)));for(;;){let n=[];for(const o of r){const u=o.next();if(u.done)return;n.push(u.value)}yield e(...n)}})}}function C(e,t){return e=c(e),s(function*(){for(const r of f(t))w(e(r))&&(yield r)})}function ht(e,t){return[...C(e,t)]}function dt(e,t){return C(ye(e),t)}function yt(e,t){e=c(e);let r=[],n=0;for(const o of f(t))r.push(e(n,o)),n++;return r}function gt(e,t){e=c(e);let r=[],n=0;for(const o of f(t)){let u=e(n,o);w(u)&&r.push(u),n++}return r}function wt(...e){return e.join("")}function le(e){return!e}function mt(e){return e==null}const At={};function bt(e){return e===null?"null":JSON.stringify(e,(t,r)=>{switch(p(r)){case g:case S:return[...r];case x:return Object.fromEntries(r);default:return r}})}function ae(...e){return e.map(bt).join(" ")}function vt(...e){ne(ae(...e))}function pe(e){this.val=e,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=t=>{let r=this.val;if(this.val=t,this._hasWatches)for(let n of Object.entries(this._watches)){let o=n[0],u=n[1];u(o,this,r,t)}return t},this._add_watch=(t,r)=>{this._watches[t]=r,this._hasWatches=!0},this._remove_watch=t=>{delete this._watches[t]}}function Mt(e){return new pe(e)}function xe(e){return e._deref()}function _e(e,t){e._reset_BANG_(t)}function Et(e,t,...r){t=c(t);const n=t(xe(e),...r);return _e(e,n),n}function Rt(e,t,r){return s(function*(){let n=e,o=t,u=r;t===void 0&&(n=0,o=e);let i=n||0;for(u=r||1;o===void 0||i<o;)yield i,i+=u})}function Kt(e,t){let r=e.exec(t);return r&&t===r[0]?r.length===1?r[0]:r:null}function Qt(e,t){if(D(t)){let r=e.exec(t);return r!=null?r.length===1?r[0]:[...r]:null}else throw new TypeError("re-find must match against a string.")}function St(e,t,r){return e.slice(t,r)}function F(...e){return e}function jt(e){return p(e)===_}function he(...e){return[...M(...e)]}function E(e){return ge(e)?e:[...f(e)]}function Nt(e){return new Set(f(e))}function Ot(e,...t){e=c(e);const r=t.slice(0,t.length-1),n=t[t.length-1];return e(...r,...n)}function de(e){return e%2==0}function It(e){return!de(e)}function ye(e){return e=c(e),(...t)=>le(e(...t))}function kt(e){return(...t)=>e}class I extends Array{constructor(...t){super(),this.push(...t)}}function Tt(e){return p(e)===b}function Gt(...e){return new I(...e)}function ge(e){return Array.isArray(e)}function we(...e){return s(function*(){for(const t of e)yield*f(t)})}function Bt(e,...t){return we(...M(e,...t))}function me(e){return e}function Ae(...e){return s(function*(){const t=e.map(r=>O(f(r)));for(;;){let r=[];for(const n of t){const o=n.next();if(o.done)return;r.push(o.value)}yield*r}})}function Lt(e,t){return T(1,Ae(V(e),t))}function Pt(e,t){const r=p(e),n=j(r)||{};for(const o of t){const u=h(e,o);u!=null&&A(n,o,u)}return n}function zt(e,...t){let r=e,n=t[0];return t.length===2&&([r,n]=t),be(e,r,[],n,!0)}function Yt(e,...t){let r=e,n=[],o=t[0];return t.length===2?[r,o]=t:t.length>2&&([r,n,o]=t),be(e,r,n,o,!1)}function be(e,t,r,n,o){return s(function*(){let u=[],i=0;for(let l of f(n))i<e&&(u.push(l),u.length===e&&(yield u,u=t<e?u.slice(t):[])),i++,i===t&&(i=0);u.length>0&&(u.length===e||o?yield u:r.length&&(u.push(...r.slice(0,e-u.length)),yield u))})}function $t(e,t){return e=c(e),s(function*(){let r=O(t),n=r.next();n.done&&(yield*null);let o=n.value,u=e(o),i=[o],l=[];for(;;){let a=r.next();if(a.done){yield i;break}let m=a.value,d=e(m);u==d?i.push(m):(yield i,l.push(m),i=l,u=d,l=[])}})}function ve(e){const t=p(e);if(t!=null)return j(t);throw new Error(`Can't create empty of ${typeof e}`)}function qt(...e){const t=e[0];let r;return t==null?r={}:r=Re(ve(t),t),z(r,...e.slice(1))}function Me(e){return e[0]}function Ee(e){return e[1]}function Ct(e,...t){e=c(e);var r=!1;for(const n of t)if(n!=null){r=!0;break}if(r){let n=(u,i)=>{let l=Me(i),a=Ee(i);return te(u,l)?v(u,l,e(h(u,l),a)):v(u,l,a)};return L((u,i)=>L(n,u||{},$(i)),t)}else return null}function Ft(){return performance.now()}function Re(...e){switch(e.length){case 0:return[];case 1:return e[0];default:return H(e[0]??[],...f(e[1]))}}function Vt(e,t){return e===t}function V(...e){if(e.length==0||e.length>2)throw new Error(`Invalid arity: ${e.length}`);return{[Y]:!0,[ie]:e.length==1?function*(){let t=e[0];for(;;)yield t}:function*(){let[t,r]=e;for(var n=0;n<t;n++)yield r}}}function k(e,t){return s(function*(){let r=e-1;for(const n of f(t))if(r-->=0&&(yield n),r<0)return})}function Ke(e,t){return e=c(e),s(function*(){for(const r of f(t))if(w(e(r)))yield r;else return})}function Wt(e,t){return e<=0?V(R(t)):s(function*(){let r=0;for(let n of f(t))r%e===0&&(yield n),r++})}function Jt(e,...t){return e=c(e),function(...r){return e(...t,...r)}}function Dt(e){return s(function*(){for(;;)yield*e})}function T(e,t){return s(function*(){let r=N(f(t));for(let n=0;n<e;n++)r.next();yield*r})}function Qe(e,t){return e=c(e),s(function*(){let r=N(f(t));for(;;){let n=r.next();if(n.done)break;let o=n.value;if(!w(e(o))){yield o;break}}yield*r})}function Ut(e){return s(function*(){let t=new Set;for(const r of f(e))t.has(r)||(yield r),t.add(r)})}function Xt(e,t,r,...n){return r=c(r),v(e,t,r(h(e,t),...n))}function Se(e,t,r){let n=e;for(const o of t)n=h(n,o);return n===void 0?r:n}function Zt(e,t,r,...n){return r=c(r),Z(e,t,r(Se(e,t),...n))}function W(e,t,...r){return e=c(e),function(n,...o){return n?e(n,...r,...o):e(t,...r,...o)}}function je(e,t){e=c(e);for(let r of f(t))if(!e(r))return!1;return!0}function Ht(e,t){return!je(e,t)}function er(e,t){return e=c(e),s(function*(){for(const r of f(t)){const n=e(r);w(n)&&(yield n)}})}function tr(e){return Array.isArray(e)?e.reverse():[...e].reverse()}function Ne(e,t){return t===void 0&&(t=e,e=void 0),e=c(e),[...t].sort(e||G)}function rr(e){return e===G?e:(t,r)=>{let n=e(t,r);return Pe(n)?n:n?-1:e(r,t)?1:0}}function nr(e,t,r){return r===void 0&&(r=t,t=G),e=c(e),t=c(t),Ne((n,o)=>{let u=rr(t),i=e(n),l=e(o);return u(i,l)},r)}function or(e){return[...e].sort(function(t,r){return Math.random()-.5})}function Oe(e,t){e=c(e);for(const r of f(t)){const n=e(r);if(w(n))return n}}function ur(e,t){return e=c(e),!Oe(e,t)}function ir(e,t){return(Array.isArray(t)?he:M)(n=>{const o=e[n];return o!==void 0?o:n},t)}function fr(e){return!$(e)}function Ie(e){return Math.floor(Math.random()*e)}function cr(e){let t=Ie(Q(e));return oe(e,t)}function sr(e){return s(function*(){for(;;)yield e()})}function lr(e,t){t===void 0&&(t=e,e=void 0);const r=sr(t);return e?k(e,r):r}function J(e,t,r,...n){const o=h(e,t);return A(e,t,r(o,...n))}function ar(e,t){const r={};for(const n of f(t)){const o=e(n);J(r,o,W(z,[]),n)}return r}function pr(e){const t={},r=W(re,0);for(const n of f(e))J(t,n,r);return t}class xr{constructor(t){this.f=t,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*f(this.res)}}function _r(e){let t=[...f(e)];return t.pop(),t.length>0?t:null}function hr(...e){let[t,r]=e.length>1?e:[1,e[0]];return M((n,o)=>n,r,T(t,r))}function dr(e,t){return[k(e,t),T(e,t)]}function yr(e,t){return[Ke(e,t),Qe(e,t)]}function Q(e){if(!e)return 0;const t=e.length||e.size;if(typeof t=="number")return t;let r=0;for(const n of f(e))r++;return r}function gr(e){return e===!0}function wr(e){return e===!1}function mr(e){return e!=null}function Ar(e){return!!e}function br(e){return e===0}function vr(e){return e<0}function Mr(e){return e>0}function Er(...e){var t=0;let r={};for(;!(t>=e.length);)r[e[t]]=e[t+1],t=t+2;return r}function Rr(e){return e.length}function Kr(e,t,r,...n){if(n.length==0)return e[t]=r,r;{let o=[t,r,...n],u=o[o.length-1],i=e,l=0,a=o.length-2;for(;l<a;l++)i=i[o[l]];return i[o[l]]=u,r}}function Qr(e){for(const t of f(e));return null}function Sr(e){return E(e)}function jr(e){return[...e]}function Nr(e,t,r){return e._add_watch(t,r)}function Or(e,t){return e._remove_watch(t)}function Ir(e,t,r){if(!r)return t;var n=t;for(let o of Object.entries(r))n=e(n,o[0],o[1]);return n}function ke(e,t,...r){return t==null?e:Math.max(e,t,...r)}function kr(e,t,...r){return t==null?e:Math.min(e,t,...r)}function Tr(e){return e instanceof Object}function Gr(...e){return(...t)=>{for(let r of e)for(let n of t)if(!r(n))return!1;return!0}}function Br(...e){return(...t)=>{for(let r of e)for(let n of t){let o=r(n);if(o)return o}}}function Te(e,t){return E(t||e)}function Lr(e,t){var r=t;return s(function*(){for(;;)yield r,r=e(r)})}function Pr(...e){return e=e.map(c),(...t)=>{let r=[];for(let n of e)r.push(n(...t));return r}}function Ge(e){if(Array.isArray(e)){let t=e.slice(1);return t.length>0?t:null}else return Ge(E(e))}function G(e,t){if(e===t)return 0;if(e==null)return-1;if(t==null)return 1;if(typeof e=="number"){if(typeof t=="number")return e===t?0:e<t?-1:1;throw new Error("comparing number to other type")}else throw new Error("comparing number to other type")}function zr(e){return Te(e)}function w(e){return e!=null&&e!==!1}function Be(e,t,r){return e.substring(t,r)}function Yr(e){return typeof e=="function"}function*Le(e,t){let r=e.exec(t);if(r){let n=r[0],o=r.length===1?n:E(r);yield*se(o,s(function*(){let u=r.index+ke(1,n.length);u<=t.length&&(yield*Le(e,Be(t,u)))}))}}function $r(e){return Number.isNaN(e)}function Pe(e){return typeof e=="number"}function ze(e){return e?Object.keys(e):null}function qr(e){return ze(e)}function Cr(e){return e?Object.values(e):null}function D(e){return typeof e=="string"}function Fr(e){return p(e)!=null}function Vr(e){return e instanceof RegExp}class U extends Error{constructor(t,r,n){super(t),this._data=r,this._cause=n}}function Wr(e){return e instanceof U?e._data:null}function Jr(e){return e instanceof Error?e.message:null}function Dr(e){return e instanceof U?e._cause:null}function Ur(e,t,r){return new U(e,t,r)}function Ye(e){return Number.isInteger(e)}const Xr=Ye,$e=Symbol("meta");function Zr(e){return e instanceof Object?e[$e]:null}function Hr(e,t){let r=X(e);return r[$e]=t,r}function en(e){return e===!0||e===!1}function qe(e){switch(p(e)){case g:return!0}return!1}function tn(e,t){return qe(t)?Q(t):Q(k(e,t))}function rn(e,t){let r=h(e,t);if(r!==void 0)return[t,r]}function nn(e,t){return(e%t+t)%t}function on(e,t,...r){if(r.length==0)return t;var n=e(t),o=t;return r.forEach(u=>{var i=e(u);i<=n&&(n=i,o=u)}),o}function un(e,t,...r){if(r.length==0)return t;var n=e(t),o=t;return r.forEach(u=>{var i=e(u);i>=n&&(n=i,o=u)}),o}function fn(e){throw new Error(`Expected string, got: ${typeof e}`)}function cn(e){if(D(e)){if(/^[+-]?\d+$/.test(e)){let t=parseInt(e);if(Number.MIN_SAFE_INTEGER<=t<=Number.MAX_SAFE_INTEGER)return t}return null}return fn(e)}return De(sn);})(); | ||
var squint;(squint||={}).core=(()=>{var L=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var We=Object.prototype.hasOwnProperty;var Je=(e,t)=>{for(var r in t)L(e,r,{get:t[r],enumerable:!0})},De=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ve(t))!We.call(e,o)&&o!==r&&L(e,o,{get:()=>t[o],enumerable:!(n=Fe(t,o))||n.enumerable});return e};var Ue=e=>De(L({},"__esModule",{value:!0}),e);var pn={};Je(pn,{Atom:()=>xe,Cons:()=>se,IIterable:()=>$,IIterable__iterator:()=>fe,LazySeq:()=>_r,NaN_QMARK_:()=>qr,PROTOCOL_SENTINEL:()=>bt,_:()=>He,_GT_:()=>Xe,_PLUS_:()=>Ze,_iterator:()=>O,aclone:()=>Nr,add_watch:()=>Or,alength:()=>Kr,apply:()=>It,array_QMARK_:()=>we,aset:()=>Qr,assoc:()=>M,assoc_BANG_:()=>b,assoc_in:()=>H,assoc_in_BANG_:()=>nt,atom:()=>Et,boolean$:()=>br,boolean_QMARK_:()=>tn,bounded_count:()=>rn,butlast:()=>hr,coll_QMARK_:()=>Vr,comp:()=>ot,compare:()=>B,complement:()=>ge,concat:()=>me,conj:()=>ee,conj_BANG_:()=>Y,cons:()=>le,constantly:()=>Tt,contains_QMARK_:()=>re,count:()=>S,counted_QMARK_:()=>Ce,cycle:()=>Ut,dec:()=>ct,deref:()=>_e,disj:()=>ut,disj_BANG_:()=>te,dissoc:()=>ft,dissoc_BANG_:()=>it,distinct:()=>Xt,doall:()=>jr,dorun:()=>Sr,drop:()=>G,drop_last:()=>dr,drop_while:()=>Se,empty:()=>Me,empty_QMARK_:()=>cr,es6_iterator:()=>I,even_QMARK_:()=>ye,every_QMARK_:()=>Ne,every_pred:()=>Br,ex_cause:()=>Ur,ex_data:()=>Jr,ex_info:()=>Xr,ex_message:()=>Dr,false_QMARK_:()=>mr,ffirst:()=>lt,filter:()=>F,filterv:()=>dt,find:()=>nn,first:()=>K,fn_QMARK_:()=>$r,fnil:()=>J,frequencies:()=>xr,get:()=>d,get_in:()=>je,group_by:()=>pr,identical_QMARK_:()=>Wt,identity:()=>Ae,inc:()=>ne,int_QMARK_:()=>$e,integer_QMARK_:()=>Zr,interleave:()=>be,interpose:()=>Pt,into:()=>Ke,into_array:()=>Ge,iterable:()=>f,iterate:()=>Pr,js_keys:()=>Cr,js_obj:()=>Rr,juxt:()=>zr,keep:()=>tr,keep_indexed:()=>wt,key:()=>Ee,keys:()=>Ye,last:()=>pt,lazy:()=>s,list:()=>Bt,list_QMARK_:()=>Gt,map:()=>E,map_QMARK_:()=>Gr,map_indexed:()=>gt,mapcat:()=>Lt,mapv:()=>de,max:()=>Te,max_key:()=>fn,merge:()=>Ct,merge_with:()=>Ft,meta:()=>Hr,min:()=>Tr,min_key:()=>un,mod:()=>on,neg_QMARK_:()=>Mr,next:()=>Be,nil_QMARK_:()=>At,not:()=>ae,not_any_QMARK_:()=>ir,not_every_QMARK_:()=>er,nth:()=>ue,number_QMARK_:()=>ze,object_QMARK_:()=>tt,odd_QMARK_:()=>kt,parse_long:()=>sn,partial:()=>Dt,partition:()=>$t,partition_all:()=>Yt,partition_by:()=>qt,pos_QMARK_:()=>Er,pr_str:()=>pe,println:()=>oe,prn:()=>Mt,quot:()=>an,rand_int:()=>ke,rand_nth:()=>sr,range:()=>Kt,re_find:()=>St,re_matches:()=>Qt,re_seq:()=>Pe,reduce:()=>P,reduce_kv:()=>kr,reduced:()=>xt,reduced_QMARK_:()=>_t,regexp_QMARK_:()=>Wr,remove:()=>yt,remove_watch:()=>Ir,repeat:()=>W,repeatedly:()=>ar,replace:()=>fr,reset_BANG_:()=>he,rest:()=>at,reverse:()=>rr,satisfies_QMARK_:()=>et,second:()=>st,select_keys:()=>zt,seq:()=>q,seqable_QMARK_:()=>ie,set:()=>Ot,shuffle:()=>ur,some:()=>Ie,some_QMARK_:()=>Ar,some_fn:()=>Lr,sort:()=>Oe,sort_by:()=>or,split_at:()=>yr,split_with:()=>gr,str:()=>mt,string_QMARK_:()=>U,subs:()=>Le,subvec:()=>jt,swap_BANG_:()=>Rt,system_time:()=>Vt,t:()=>m,take:()=>T,take_nth:()=>Jt,take_while:()=>Qe,to_array:()=>Yr,true_QMARK_:()=>wr,update:()=>Zt,update_BANG_:()=>D,update_in:()=>Ht,val:()=>Re,vals:()=>Fr,vec:()=>R,vector:()=>V,vector_QMARK_:()=>Nt,warn_on_lazy_reusage_BANG_:()=>ht,with_meta:()=>en,zero_QMARK_:()=>vr});function c(e){if(e==null||e instanceof Function)return e;let t=typeof e;return t==="string"?(r,n)=>d(r,e,n):t==="object"?(r,n)=>d(e,r,n):e}globalThis.toFn=c;function Xe(e,t){return e>t}function Ze(...e){return e.reduce((t,r)=>t+r,0)}function He(...e){return e.length==1?0-e[0]:e.reduce((t,r)=>t-r)}function et(e,t){return t[e]}function b(e,t,r,...n){if(n.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(p(e)){case _:e.set(t,r);for(let o=0;o<n.length;o+=2)e.set(n[o],n[o+1]);break;case h:case g:e[t]=r;for(let o=0;o<n.length;o+=2)e[n[o]]=n[o+1];break;default:throw new Error(`Illegal argument: assoc! expects a Map, Array, or Object as the first argument, but got ${typeof e}.`)}return e}function Z(e){switch(p(e)){case _:return new Map(e.entries());case h:return[...e];case g:return{...e};default:throw new Error(`Don't know how to copy object of type ${typeof e}.`)}}function M(e,t,r,...n){e||(e={});let o=Z(e);return b(o,t,r,...n),o}const _=1,h=2,g=3,v=4,w=5,j=6;function N(e){switch(e){case _:return new Map;case h:return[];case g:return{};case v:return new k;case w:return new Set;case j:return s(function*(){})}}function z(e){return e.constructor===Object}function tt(e){return e!=null&&z(e)}function p(e){if(e!=null){if(z(e))return g;if(e instanceof Map)return _;if(e instanceof Set)return w;if(e instanceof k)return v;if(Array.isArray(e))return h;if(e instanceof C)return j;if(e instanceof Object)return g}}function rt(e,t,r,n,o){let u=p(r);if(u!==_&&u!==h&&u!==g)throw new Error(`Illegal argument: ${t} expects the first argument to be a Map, Array, or Object.`);const i=[r];let l=r;for(let a=0;a<n.length-1;a+=1){let A=n[a],y;l instanceof Map?y=l.get(A):y=l[A],y||(y=N(u)),i.push(y),l=y}i.push(o);for(let a=i.length-2;a>=0;a-=1)i[a]=e(i[a],n[a],i[a+1]);return i[0]}function H(e,t,r){return rt(M,"assoc-in",e,t,r)}function nt(e,t,r){var n=e;let o=p(e);for(const u of t.splice(0,t.length-1)){let i=d(n,u);i===void 0&&(i=N(o),b(n,u,i)),n=i}return b(n,t[t.length-1],r),e}function ot(...e){if(e=e.map(c),e.length===0)return Ae;if(e.length===1)return e[0];let[t,...r]=e.slice().reverse();return function(...n){let o=t(...n);for(const u of r)o=u(o);return o}}function Y(...e){if(e.length===0)return V();let[t,...r]=e;switch(t==null&&(t=[]),p(t)){case w:for(const n of r)t.add(n);break;case v:t.unshift(...r.reverse());break;case h:t.push(...r);break;case _:for(const n of r)Array.isArray(n)?t.set(n[0],n[1]):f(n).forEach(o=>{t.set(o[0],o[1])});break;case g:for(const n of r)Array.isArray(n)?t[n[0]]=n[1]:Object.assign(t,n);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return t}function ee(...e){if(e.length===0)return V();let[t,...r]=e;switch(t==null&&(t=[]),p(t)){case w:return new Set([...t,...r]);case v:return new k(...r.reverse(),...t);case h:return[...t,...r];case _:const n=new Map(t);for(const u of r)Array.isArray(u)?n.set(u[0],u[1]):f(u).forEach(i=>{n.set(i[0],i[1])});return n;case j:return s(function*(){yield*r,yield*t});case g:const o={...t};for(const u of r)Array.isArray(u)?o[u[0]]=u[1]:Object.assign(o,u);return o;default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function te(e,...t){for(const r of t)e.delete(r);return e}function ut(e,...t){let r=new Set([...e]);return te(r,...t)}function re(e,t){switch(p(e)){case w:case _:return e.has(t);case void 0:return!1;default:return t in e}}function it(e,...t){for(const r of t)delete e[r];return e}function ft(e,...t){let r={...e};for(const n of t)delete r[n];return r}function ne(e){return e+1}function ct(e){return e-1}function oe(...e){console.log(...e)}function ue(e,t,r){if(e){var n=void 0;if(Array.isArray(e))n=e[t];else{let o=f(e),u=0;for(let i of o)if(u++==t){n=i;break}}if(n!==void 0)return n}return r}function d(e,t,r=void 0){if(e==null)return r;let n;if(z(e))return n=e[t],n===void 0?r:n;switch(p(e)){case w:e.has(t)&&(n=t);break;case _:n=e.get(t);break;case h:n=e[t];break;default:if(e.get instanceof Function)try{n=e.get(t);break}catch{}n=e[t];break}return n!==void 0?n:r}function ie(e){return typeof e=="string"||e===null||e===void 0||e instanceof Object&&Symbol.iterator in e}function f(e){return e==null?[]:ie(e)?e:Object.entries(e)}const $=Symbol("Iterable"),fe=Symbol.iterator;function O(e){return e[Symbol.iterator]()}const I=O;function q(e){let t=f(e);return t.length===0||t.size===0?null:t}function K(e){let[t]=f(e);return t}function st(e){let[t,r]=f(e);return r}function lt(e){return K(K(e))}function at(e){return s(function*(){let t=!0;for(const r of f(e))t?t=!1:yield r})}class Q{value;constructor(t){this.value=t}_deref(){return this.value}}function pt(e){switch(e=f(e),p(e)){case h:return e[e.length-1];default:let t;for(const r of e)t=r;return t}}function xt(e){return new Q(e)}function _t(e){return e instanceof Q}function P(e,t,r){e=c(e);let n,o;if(r===void 0){let u=f(t)[Symbol.iterator]();o=u.next().value,n=u}else o=t,n=f(r);if(o instanceof Q)return o.value;for(const u of n)if(o=e(o,u),o instanceof Q){o=o.value;break}return o}var ce=!1;function ht(){ce=!0}class C{constructor(t){this.gen=t,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&ce)try{throw new Error}catch(t){console.warn("Re-use of lazy value",t.stack)}return this.gen()}}C.prototype[$]=!0;function s(e){return new C(e)}class se{constructor(t,r){this.x=t,this.coll=r}*[Symbol.iterator](){yield this.x,yield*f(this.coll)}}function le(e,t){return new se(e,t)}function E(e,...t){switch(e=c(e),t.length){case 0:throw new Error("map with 2 arguments is not supported yet");case 1:return s(function*(){for(const r of f(t[0]))yield e(r)});default:return s(function*(){const r=t.map(n=>I(f(n)));for(;;){let n=[];for(const o of r){const u=o.next();if(u.done)return;n.push(u.value)}yield e(...n)}})}}function F(e,t){return e=c(e),s(function*(){for(const r of f(t))m(e(r))&&(yield r)})}function dt(e,t){return[...F(e,t)]}function yt(e,t){return F(ge(e),t)}function gt(e,t){e=c(e);let r=[],n=0;for(const o of f(t))r.push(e(n,o)),n++;return r}function wt(e,t){e=c(e);let r=[],n=0;for(const o of f(t)){let u=e(n,o);m(u)&&r.push(u),n++}return r}function mt(...e){return e.join("")}function ae(e){return!e}function At(e){return e==null}const bt={};function vt(e){return e===null?"null":JSON.stringify(e,(t,r)=>{switch(p(r)){case w:case j:return[...r];case _:return Object.fromEntries(r);default:return r}})}function pe(...e){return e.map(vt).join(" ")}function Mt(...e){oe(pe(...e))}function xe(e){this.val=e,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=t=>{let r=this.val;if(this.val=t,this._hasWatches)for(let n of Object.entries(this._watches)){let o=n[0],u=n[1];u(o,this,r,t)}return t},this._add_watch=(t,r)=>{this._watches[t]=r,this._hasWatches=!0},this._remove_watch=t=>{delete this._watches[t]}}function Et(e){return new xe(e)}function _e(e){return e._deref()}function he(e,t){e._reset_BANG_(t)}function Rt(e,t,...r){t=c(t);const n=t(_e(e),...r);return he(e,n),n}function Kt(e,t,r){return s(function*(){let n=e,o=t,u=r;t===void 0&&(n=0,o=e);let i=n||0;for(u=r||1;o===void 0||i<o;)yield i,i+=u})}function Qt(e,t){let r=e.exec(t);return r&&t===r[0]?r.length===1?r[0]:r:null}function St(e,t){if(U(t)){let r=e.exec(t);return r!=null?r.length===1?r[0]:[...r]:null}else throw new TypeError("re-find must match against a string.")}function jt(e,t,r){return e.slice(t,r)}function V(...e){return e}function Nt(e){return p(e)===h}function de(...e){return[...E(...e)]}function R(e){return we(e)?e:[...f(e)]}function Ot(e){return new Set(f(e))}function It(e,...t){e=c(e);const r=t.slice(0,t.length-1),n=t[t.length-1];return e(...r,...n)}function ye(e){return e%2==0}function kt(e){return!ye(e)}function ge(e){return e=c(e),(...t)=>ae(e(...t))}function Tt(e){return(...t)=>e}class k extends Array{constructor(...t){super(),this.push(...t)}}function Gt(e){return p(e)===v}function Bt(...e){return new k(...e)}function we(e){return Array.isArray(e)}function me(...e){return s(function*(){for(const t of e)yield*f(t)})}function Lt(e,...t){return me(...E(e,...t))}function Ae(e){return e}function be(...e){return s(function*(){const t=e.map(r=>I(f(r)));for(;;){let r=[];for(const n of t){const o=n.next();if(o.done)return;r.push(o.value)}yield*r}})}function Pt(e,t){return G(1,be(W(e),t))}function zt(e,t){const r=p(e),n=N(r)||{};for(const o of t){const u=d(e,o);u!=null&&b(n,o,u)}return n}function Yt(e,...t){let r=e,n=t[0];return t.length===2&&([r,n]=t),ve(e,r,[],n,!0)}function $t(e,...t){let r=e,n=[],o=t[0];return t.length===2?[r,o]=t:t.length>2&&([r,n,o]=t),ve(e,r,n,o,!1)}function ve(e,t,r,n,o){return s(function*(){let u=[],i=0;for(let l of f(n))i<e&&(u.push(l),u.length===e&&(yield u,u=t<e?u.slice(t):[])),i++,i===t&&(i=0);u.length>0&&(u.length===e||o?yield u:r.length&&(u.push(...r.slice(0,e-u.length)),yield u))})}function qt(e,t){return e=c(e),s(function*(){let r=I(t),n=r.next();n.done&&(yield*null);let o=n.value,u=e(o),i=[o],l=[];for(;;){let a=r.next();if(a.done){yield i;break}let A=a.value,y=e(A);u==y?i.push(A):(yield i,l.push(A),i=l,u=y,l=[])}})}function Me(e){const t=p(e);if(t!=null)return N(t);throw new Error(`Can't create empty of ${typeof e}`)}function Ct(...e){const t=e[0];let r;return t==null?r={}:r=Ke(Me(t),t),Y(r,...e.slice(1))}function Ee(e){return e[0]}function Re(e){return e[1]}function Ft(e,...t){e=c(e);var r=!1;for(const n of t)if(n!=null){r=!0;break}if(r){let n=(u,i)=>{let l=Ee(i),a=Re(i);return re(u,l)?M(u,l,e(d(u,l),a)):M(u,l,a)};return P((u,i)=>P(n,u||{},q(i)),t)}else return null}function Vt(){return performance.now()}function Ke(...e){switch(e.length){case 0:return[];case 1:return e[0];default:return ee(e[0]??[],...f(e[1]))}}function Wt(e,t){return e===t}function W(...e){if(e.length==0||e.length>2)throw new Error(`Invalid arity: ${e.length}`);return{[$]:!0,[fe]:e.length==1?function*(){let t=e[0];for(;;)yield t}:function*(){let[t,r]=e;for(var n=0;n<t;n++)yield r}}}function T(e,t){return s(function*(){let r=e-1;for(const n of f(t))if(r-->=0&&(yield n),r<0)return})}function Qe(e,t){return e=c(e),s(function*(){for(const r of f(t))if(m(e(r)))yield r;else return})}function Jt(e,t){return e<=0?W(K(t)):s(function*(){let r=0;for(let n of f(t))r%e===0&&(yield n),r++})}function Dt(e,...t){return e=c(e),function(...r){return e(...t,...r)}}function Ut(e){return s(function*(){for(;;)yield*e})}function G(e,t){return s(function*(){let r=O(f(t));for(let n=0;n<e;n++)r.next();yield*r})}function Se(e,t){return e=c(e),s(function*(){let r=O(f(t));for(;;){let n=r.next();if(n.done)break;let o=n.value;if(!m(e(o))){yield o;break}}yield*r})}function Xt(e){return s(function*(){let t=new Set;for(const r of f(e))t.has(r)||(yield r),t.add(r)})}function Zt(e,t,r,...n){return r=c(r),M(e,t,r(d(e,t),...n))}function je(e,t,r){let n=e;for(const o of t)n=d(n,o);return n===void 0?r:n}function Ht(e,t,r,...n){return r=c(r),H(e,t,r(je(e,t),...n))}function J(e,t,...r){return e=c(e),function(n,...o){return n?e(n,...r,...o):e(t,...r,...o)}}function Ne(e,t){e=c(e);for(let r of f(t))if(!e(r))return!1;return!0}function er(e,t){return!Ne(e,t)}function tr(e,t){return e=c(e),s(function*(){for(const r of f(t)){const n=e(r);m(n)&&(yield n)}})}function rr(e){return Array.isArray(e)?e.reverse():[...e].reverse()}function Oe(e,t){return t===void 0&&(t=e,e=void 0),e=c(e),[...t].sort(e||B)}function nr(e){return e===B?e:(t,r)=>{let n=e(t,r);return ze(n)?n:n?-1:e(r,t)?1:0}}function or(e,t,r){return r===void 0&&(r=t,t=B),e=c(e),t=c(t),Oe((n,o)=>{let u=nr(t),i=e(n),l=e(o);return u(i,l)},r)}function ur(e){return[...e].sort(function(t,r){return Math.random()-.5})}function Ie(e,t){e=c(e);for(const r of f(t)){const n=e(r);if(m(n))return n}}function ir(e,t){return e=c(e),!Ie(e,t)}function fr(e,t){return(Array.isArray(t)?de:E)(n=>{const o=e[n];return o!==void 0?o:n},t)}function cr(e){return!q(e)}function ke(e){return Math.floor(Math.random()*e)}function sr(e){let t=ke(S(e));return ue(e,t)}function lr(e){return s(function*(){for(;;)yield e()})}function ar(e,t){t===void 0&&(t=e,e=void 0);const r=lr(t);return e?T(e,r):r}function D(e,t,r,...n){const o=d(e,t);return b(e,t,r(o,...n))}function pr(e,t){const r={};for(const n of f(t)){const o=e(n);D(r,o,J(Y,[]),n)}return r}function xr(e){const t={},r=J(ne,0);for(const n of f(e))D(t,n,r);return t}class _r{constructor(t){this.f=t,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*f(this.res)}}function hr(e){let t=[...f(e)];return t.pop(),t.length>0?t:null}function dr(...e){let[t,r]=e.length>1?e:[1,e[0]];return E((n,o)=>n,r,G(t,r))}function yr(e,t){return[T(e,t),G(e,t)]}function gr(e,t){return[Qe(e,t),Se(e,t)]}function S(e){if(!e)return 0;const t=e.length||e.size;if(typeof t=="number")return t;let r=0;for(const n of f(e))r++;return r}function wr(e){return e===!0}function mr(e){return e===!1}function Ar(e){return e!=null}function br(e){return!!e}function vr(e){return e===0}function Mr(e){return e<0}function Er(e){return e>0}function Rr(...e){var t=0;let r={};for(;!(t>=e.length);)r[e[t]]=e[t+1],t=t+2;return r}function Kr(e){return e.length}function Qr(e,t,r,...n){if(n.length==0)return e[t]=r,r;{let o=[t,r,...n],u=o[o.length-1],i=e,l=0,a=o.length-2;for(;l<a;l++)i=i[o[l]];return i[o[l]]=u,r}}function Sr(e){for(const t of f(e));return null}function jr(e){return R(e)}function Nr(e){return[...e]}function Or(e,t,r){return e._add_watch(t,r)}function Ir(e,t){return e._remove_watch(t)}function kr(e,t,r){if(!r)return t;var n=t;for(let o of Object.entries(r))n=e(n,o[0],o[1]);return n}function Te(e,t,...r){return t==null?e:Math.max(e,t,...r)}function Tr(e,t,...r){return t==null?e:Math.min(e,t,...r)}function Gr(e){return e instanceof Object}function Br(...e){return(...t)=>{for(let r of e)for(let n of t)if(!r(n))return!1;return!0}}function Lr(...e){return(...t)=>{for(let r of e)for(let n of t){let o=r(n);if(o)return o}}}function Ge(e,t){return R(t||e)}function Pr(e,t){var r=t;return s(function*(){for(;;)yield r,r=e(r)})}function zr(...e){return e=e.map(c),(...t)=>{let r=[];for(let n of e)r.push(n(...t));return r}}function Be(e){if(Array.isArray(e)){let t=e.slice(1);return t.length>0?t:null}else return Be(R(e))}function B(e,t){if(e===t)return 0;if(e==null)return-1;if(t==null)return 1;if(typeof e=="number"){if(typeof t=="number")return e===t?0:e<t?-1:1;throw new Error("comparing number to other type")}else throw new Error("comparing number to other type")}function Yr(e){return Ge(e)}function m(e){return e!=null&&e!==!1}function Le(e,t,r){return e.substring(t,r)}function $r(e){return typeof e=="function"}function*Pe(e,t){let r=e.exec(t);if(r){let n=r[0],o=r.length===1?n:R(r);yield*le(o,s(function*(){let u=r.index+Te(1,n.length);u<=t.length&&(yield*Pe(e,Le(t,u)))}))}}function qr(e){return Number.isNaN(e)}function ze(e){return typeof e=="number"}function Ye(e){return e?Object.keys(e):null}function Cr(e){return Ye(e)}function Fr(e){return e?Object.values(e):null}function U(e){return typeof e=="string"}function Vr(e){return p(e)!=null}function Wr(e){return e instanceof RegExp}class X extends Error{constructor(t,r,n){super(t),this._data=r,this._cause=n}}function Jr(e){return e instanceof X?e._data:null}function Dr(e){return e instanceof Error?e.message:null}function Ur(e){return e instanceof X?e._cause:null}function Xr(e,t,r){return new X(e,t,r)}function $e(e){return Number.isInteger(e)}const Zr=$e,qe=Symbol("meta");function Hr(e){return e instanceof Object?e[qe]:null}function en(e,t){let r=Z(e);return r[qe]=t,r}function tn(e){return e===!0||e===!1}function Ce(e){switch(p(e)){case w:return!0}return!1}function rn(e,t){return Ce(t)?S(t):S(T(e,t))}function nn(e,t){let r=d(e,t);if(r!==void 0)return[t,r]}function on(e,t){return(e%t+t)%t}function un(e,t,...r){if(r.length==0)return t;var n=e(t),o=t;return r.forEach(u=>{var i=e(u);i<=n&&(n=i,o=u)}),o}function fn(e,t,...r){if(r.length==0)return t;var n=e(t),o=t;return r.forEach(u=>{var i=e(u);i>=n&&(n=i,o=u)}),o}function cn(e){throw new Error(`Expected string, got: ${typeof e}`)}function sn(e){if(U(e)){if(/^[+-]?\d+$/.test(e)){let t=parseInt(e);if(Number.MIN_SAFE_INTEGER<=t<=Number.MAX_SAFE_INTEGER)return t}return null}return cn(e)}function ln(e){return e>=0?Math.floor(e):Math.ceil(x)}function an(e,t){let r=e%t;return ln((e-r)/t)}return Ue(pn);})(); |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.4.58", | ||
"version": "0.4.59", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "core.js", |
@@ -98,3 +98,3 @@ ## Squint | ||
Solve [Advent of Code](https://adventofcode.com/) puzzles with squint [here](https://squint-cljs.github.io/squint/?boilerplate=https%3A%2F%2Fgist.githubusercontent.com%2Fborkdude%2Fcf94b492d948f7f418aa81ba54f428ff%2Fraw%2Fe613dbceac5b04c2b71b032a75f13881bccd72c5%2Faoc_ui.cljs&src=OzsgSGVscGVyIGZ1bmN0aW9uczoKOzsgKGZldGNoLWlucHV0IHllYXIgZGF5KSAtIGdldCBBT0MgaW5wdXQKOzsgKGFwcGVuZCBzdHIpIC0gYXBwZW5kIHN0ciB0byBET00KOzsgKHNweSB4KSAtIGxvZyB4IHRvIGNvbnNvbGUgYW5kIHJldHVybiB4CgooZGVmIGlucHV0ICgtPj4gKGpzLWF3YWl0IChmZXRjaC1pbnB1dCAyMDIyIDEpKQogICAgICAgICAgICAgI19zcHkKICAgICAgICAgICAgIHN0ci9zcGxpdC1saW5lcwogICAgICAgICAgICAgKG1hcHYgcGFyc2UtbG9uZykpKQoKKGRlZm4gcGFydC0xCiAgW10KICAoLT4%2BIGlucHV0CiAgICAocGFydGl0aW9uLWJ5IG5pbD8pCiAgICAodGFrZS1udGggMikKICAgIChtYXAgIyhhcHBseSArICUpKQogICAgKGFwcGx5IG1heCkKICAgIGFwcGVuZCkpCgooZGVmbiBwYXJ0LTIKICBbXQogICgtPj4gaW5wdXQKICAgIChwYXJ0aXRpb24tYnkgbmlsPykKICAgICh0YWtlLW50aCAyKQogICAgKG1hcCAjKGFwcGx5ICsgJSkpCiAgICAoc29ydC1ieSAtKQogICAgKHRha2UgMykKICAgIChhcHBseSArKQogICAgYXBwZW5kKSkKCih0aW1lIChwYXJ0LTEpKQoodGltZSAocGFydC0yKSk%3D). | ||
Solve [Advent of Code](https://adventofcode.com/) puzzles with squint [here](https://squint-cljs.github.io/squint/examples/aoc/index.html). | ||
@@ -101,0 +101,0 @@ ### Seqs |
@@ -1850,1 +1850,13 @@ // @ts-check | ||
} | ||
function fix(q) { | ||
if (q >= 0) { | ||
return Math.floor(q); | ||
} | ||
return Math.ceil(x); | ||
} | ||
export function quot(n, d) { | ||
let rem = n % d; | ||
return fix((n - rem) / d); | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
7162
1305805