squint-cljs
Advanced tools
Comparing version 0.8.116 to 0.8.117
@@ -6,48 +6,48 @@ 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$url from"url";import*as esm_import$path from"path"; | ||
var Kha=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Qk.l($APP.F([a,b])):$APP.Rd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Rd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},U9=function(a,b){return $APP.ne.j(function(c,d){return $APP.nv.l(Kha,$APP.F([c,d]))},a,b)},V9=function(a){throw $APP.cl.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Lha,a],null));},W9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:V9(a)},Mha=function(a){var b=JSON.parse(a);return $APP.bH(b)?b:V9(a)},Nha= | ||
function(a){var b=JSON.parse(a);return $APP.cH(b)?b:V9(a)},X9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:V9(a)},Y9=function(a){return"string"===typeof a?$APP.B.j(a,0,null):null},Z9=function(a){return $APP.A.g(":",Y9(a))?$APP.zi.h($APP.ji.g(a,1)):$APP.zi.h(a)},Oha=function(a){return $APP.Rd(a)?$APP.y(a):a},$9=function(a){if("string"===typeof a)try{var b=Y9(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=W9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e= | ||
X9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.hi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?Z9(a):a}d=e}c=d}return c}catch(l){return a}else return a},a$=function(a,b,c,d){throw $APP.cl.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Ri.l($APP.F([a]))].join(""),c instanceof $APP.H?" to ":" with ",$APP.t.h(c instanceof $APP.H?$APP.ai(c):c)].join(""),new $APP.n(null,2,[Pha,a,Qha,c],null),d);},Rha=function(a,b,c){var d=function(){switch(b instanceof $APP.H?b.da:null){case "boolean":case "bool":return W9; | ||
case "int":case "long":return Mha;case "double":return Nha;case "number":return X9;case "symbol":return $APP.Hi;case "keyword":return Z9;case "string":return $APP.se;case "edn":return $APP.OH;case "auto":return $9;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=a$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?a$(a,c,b,null):d},b$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Rd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Rd(c)?$APP.$q.g($APP.Ee, | ||
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.gH(a,b),$APP.r(c)?($APP.B.j(c,0,null),c=$APP.B.j(c,1,null),$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},Sha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Rha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Tha=function(a){return $APP.ne.j(function(b,c){var d=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);var e=$APP.jf(c),f=$APP.fe.g(e, | ||
d$),k=$APP.fe.g(e,e$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.gF);e=$APP.fe.g(e,f$);b=$APP.r(f)?$APP.Tm.J(b,d$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,e$,function(m){if($APP.he(m,k))throw $APP.cl.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,[e$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.gF,$APP.$q.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,f$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
$APP.Tm.J(b,g$,$APP.Rh,d,c):b},$APP.hf,a)},k$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,h$);b=$APP.hH(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[i$,a,j$,b],null)},m$=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.I(null,2,5,$APP.N,[$APP.R.g($APP.Zu.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.I(null,2,5,$APP.N,[a,b],null); | ||
var Nha=function(a,b){return $APP.Vd(a)&&$APP.Vd(b)?$APP.Qk.l($APP.F([a,b])):$APP.Rd(a)&&($APP.Ud(a)||$APP.Td(a))&&$APP.Rd(b)&&($APP.Ud(b)||$APP.Td(b))?$APP.Rg.g(a,b):b},U9=function(a,b){return $APP.ne.j(function(c,d){return $APP.ov.l(Nha,$APP.F([c,d]))},a,b)},V9=function(a){throw $APP.cl.g(["Unexpected format: ",$APP.t.h(a)].join(""),new $APP.n(null,1,[Oha,a],null));},W9=function(a){var b=JSON.parse(a);return $APP.ae(b)?b:V9(a)},Pha=function(a){var b=JSON.parse(a);return $APP.eH(b)?b:V9(a)},Qha= | ||
function(a){var b=JSON.parse(a);return $APP.fH(b)?b:V9(a)},X9=function(a){var b=JSON.parse(a);return"number"===typeof b?b:V9(a)},Y9=function(a){return"string"===typeof a?$APP.B.j(a,0,null):null},Z9=function(a){return $APP.A.g(":",Y9(a))?$APP.vi.h($APP.ji.g(a,1)):$APP.vi.h(a)},Rha=function(a){return $APP.Rd(a)?$APP.y(a):a},$9=function(a){if("string"===typeof a)try{var b=Y9(a);if($APP.A.g("true",a)||$APP.A.g("false",a))var c=W9(a);else{if($APP.A.g("nil",a))var d=null;else{if($APP.Za(isNaN(a)))var e= | ||
X9(a);else{var f=$APP.A.g(":",b);var k=f?$APP.hi(/:[a-zA-Z][a-zA-Z0-9_\/\.-]*/,a):f;e=$APP.r(k)?Z9(a):a}d=e}c=d}return c}catch(l){return a}else return a},a$=function(a,b,c,d){throw $APP.cl.j(["Coerce failure: cannot transform ",$APP.r(b)?"(implicit) true":["input ",$APP.Ri.l($APP.F([a]))].join(""),c instanceof $APP.H?" to ":" with ",$APP.t.h(c instanceof $APP.H?$APP.ai(c):c)].join(""),new $APP.n(null,2,[Sha,a,Tha,c],null),d);},Uha=function(a,b,c){var d=function(){switch(b instanceof $APP.H?b.da:null){case "boolean":case "bool":return W9; | ||
case "int":case "long":return Pha;case "double":return Qha;case "number":return X9;case "symbol":return $APP.Hi;case "keyword":return Z9;case "string":return $APP.se;case "edn":return $APP.RH;case "auto":return $9;default:return b}}();if("string"===typeof a)try{var e=d.h?d.h(a):d.call(null,a)}catch(f){e=a$(a,c,b,f)}else e=a;d=e;return $APP.r($APP.r(c)?!0!==d:c)?a$(a,c,b,null):d},b$=function(a,b,c){a=$APP.fe.g(a,b);c=$APP.r(a)?a:$APP.Rd(c)?$APP.Hd(c):null;return $APP.r(c)?$APP.Rd(c)?$APP.Zq.g($APP.Ee, | ||
c):c:null},c$=function(a,b,c,d){return $APP.Qh.g(b,c)?(c=$APP.jH(a,b),$APP.r(c)?($APP.B.j(c,0,null),c=$APP.B.j(c,1,null),$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(c,!0):d.call(null,c,!0):!0)):$APP.Rh.j(a,b,$APP.r(d)?d.g?d.g(null,!0):d.call(null,null,!0):!0)):a},Vha=function(a,b,c,d,e,f){d=$APP.r($APP.r(d)?!$APP.Rd(d):d)?Uha(e,d,f):$9(e);return $APP.r(c)?$APP.Tm.A(a,b,c,d):$APP.Rh.j(a,b,d)},Wha=function(a){return $APP.ne.j(function(b,c){var d=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);var e=$APP.jf(c),f=$APP.fe.g(e, | ||
d$),k=$APP.fe.g(e,e$);c=$APP.fe.g(e,$APP.Dm);var l=$APP.fe.g(e,$APP.iF);e=$APP.fe.g(e,f$);b=$APP.r(f)?$APP.Tm.J(b,d$,$APP.Rh,d,f):b;b=$APP.r(k)?$APP.Tm.j(b,e$,function(m){if($APP.he(m,k))throw $APP.cl.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,[e$,k],null));return $APP.Rh.j(m,k,d)}):b;b=$APP.r(l)?$APP.Tm.j(b,$APP.iF,$APP.Zq.g(function(m){return $APP.Ee.g(m,d)},$APP.Vh)):b;b=$APP.r(e)?$APP.Tm.J(b,f$,$APP.Rh,d,e):b;return $APP.r(c)? | ||
$APP.Tm.J(b,g$,$APP.Rh,d,c):b},$APP.hf,a)},k$=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,h$);b=$APP.kH(function(d){var e=$APP.r(c)?null:$APP.qa(d,":");return!($APP.r(e)?e:$APP.qa(d,"-"))},a);a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[i$,a,j$,b],null)},m$=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.I(null,2,5,$APP.N,[$APP.R.g($APP.$u.g(b,a),$APP.Nf.g(c,a)),$APP.Nf.g(c,b)],null)}else a=new $APP.I(null,2,5,$APP.N,[a,b],null); | ||
else a=new $APP.I(null,2,5,$APP.N,[a,b],null);b=a;a=$APP.B.j(b,0,null);b=$APP.B.j(b,1,null);return new $APP.n(null,2,[j$,a,l$,b],null)},u$=function(a,b,c,d,e){var f=Y9(a),k="string"===typeof a?$APP.B.j(a,1,null):null,l;if(l=$APP.A.g(f,"-")){try{var m=X9($APP.t.h(k))}catch(h){m=null}l=$APP.Za(m)}b=$APP.r(b)?b:l?n$:null;f=$APP.A.g(":",f);c=$APP.Qh.g(n$,b)&&f&&($APP.A.g(o$,d)||$APP.Za(c)||$APP.A.g(e,c));d=$APP.r(b)?b:c?p$:null;a=l?$APP.r(k)?$APP.Qh.g("-",k)&&2<$APP.xd(a):k:null;return new $APP.n(null, | ||
5,[$APP.jx,d,q$,l,r$,a,s$,c,t$,f],null)},Xha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Tha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Mr.h(e)}(),l=Uha.h(e),m=$APP.gF.h(e),h=g$.h(e),q=h$.h(e),p=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Vha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))), | ||
D=$APP.A.g(!0,p)?v:null==p?null:$APP.Zh(p),J=f$.h(e),O=function(){var vb=Wha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Jc=$APP.fe.g(Zb,y$);throw $APP.cl.g(Jc,Zb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),oa=function(){var vb=l$.h(e);vb=$APP.r(vb)?vb:z$.h(e);return $APP.r(vb)?m$(ca,vb):new $APP.n(null,2,[l$,null,j$,ha],null)}(),pa=$APP.jf(oa),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),C=$APP.Qh.g(fa,ha)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null): | ||
new $APP.I(null,2,5,$APP.N,[ca,ha],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Zb=null,Jc=null,Ne=$APP.r(q)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Zb,Jc],null);var pg=$APP.y(hd),Uc=pg instanceof $APP.H;if(Uc){Zb=c$(vb,Zb,Jc,null);var oe=pg;hd=$APP.z(hd);vb=Zb;Zb=oe}else{var Cl=!0===pg,Tf=$APP.t.h(pg);oe=b$(l,Zb,$APP.fe.g(f,Zb));var xi=$APP.fe.g(f,Zb),Dl=u$(Tf,Ne,Zb,xi,Jc),Lh=$APP.jf(Dl),El=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh, | ||
r$),Fl=$APP.fe.g(Lh,s$),Uf=$APP.fe.g(Lh,$APP.jx),pk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Pe=El;return $APP.r(Pe)?Pe:Fl}())){var Yc=$APP.qa(Tf,"--"),qk=Yc&&$APP.A.g("--",Tf);if(qk){var Gl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Pe=vb;return Gl?$APP.jo.A(Pe,$APP.av,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Gl)):Pe}(),Zb,Jc],null)}var rk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),Af=Yc?$APP.Ir.g(rk,/=/):new $APP.I(null,1,5,$APP.N,[rk],null),Sd=$APP.B.j(Af,0,null),Ce= | ||
$APP.B.j(Af,1,null),Vb=$APP.zi.h(Sd),Fc=$APP.fe.j(k,Vb,Vb);if($APP.r(Ce))Jc=c$(vb,Zb,Jc,oe),Zb=Fc,Ne=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Oe=$APP.y(Ab),tw=u$(Oe,Uf,Zb,xi,Jc);if($APP.r(function(){var Pe=q$.h(tw);return $APP.r(Pe)?Pe:$APP.Qd(Ab)}()))if($APP.r(Mh)){var uw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Pe){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Pe)].join(""),!0],null)}}(vb,Zb,Jc,Ne,hd,Kg,uw,Ab,Oe,tw,rk,Af,Sd,Ce,Vb,Fc,Yc,qk,Cl,Tf,oe,xi,Dl,Lh, | ||
El,Mh,Fl,Uf,pk,pg,Uc,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K),$APP.F([uw]));hd=$APP.R.g(Jc,Ab);Ne=Uf;Jc=Zb=null}else hd=$APP.he(v,Fc)?null:$APP.XG($APP.t.h(Fc),":no-"),Ne=$APP.r(hd)?$APP.zi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Zb=c$(vb,Zb,Jc,oe),oe=Ne,Ne=Uf,vb=Zb,Zb=oe;else Zb=c$(vb,Zb,Jc,oe),oe=Fc,Ne=Uf,hd=Ab,vb=Zb,Zb=oe}}else if(qk=$APP.A.g(o$,xi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Jc,Zb)&&$APP.Za(oe))if(Kg=$APP.r(hd)?$APP.r(Kg)?m$(hd, | ||
Kg):new $APP.n(null,1,[j$,hd],null):new $APP.n(null,1,[j$,hd],null),Ne=$APP.jf(Kg),Kg=$APP.fe.g(Ne,j$),Ne=$APP.fe.g(Ne,l$),$APP.Qh.g(hd,Kg))oe=Ne,Ne=Uf,hd=Kg,Kg=oe;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.av,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(hd)),Zb,Jc],null);else{try{var Yd=Sha(vb,Zb,oe,Oha(xi),Tf,Cl)}catch(Pe){c(new $APP.n(null,4,[A$,d$,y$,$APP.lH(Pe),B$,Zb,C$,Tf],null)),Yd=vb}Jc=$APP.r(function(){var Pe=$APP.A.g(p$,Uf);return Pe?pk:Pe}())?null:Zb;oe=$APP.r(function(){var Pe= | ||
$APP.A.g(p$,Uf);return Pe?pk:Pe}())?null:Zb;Ne=Uf;hd=$APP.z(hd);vb=Yd;Zb=Jc;Jc=oe}}}}(),da=$APP.B.j(M,0,null),ia=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=b$(l,ia,$APP.fe.g(f,ia)),ta=function(){var vb=c$(da,ia,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[w$,j$],null),function(Zb){return $APP.Rg.g($APP.lg(ea),Zb)}):vb}(),wa=$APP.r(h)?$APP.Md($APP.Qk.l($APP.F([h,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Kh(wa));b=null;for(var ya=0,Ca=0;;)if(Ca<ya){var Ha=b.ba(null, | ||
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(Ha)].join(""),x$,D,B$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(a)].join(""),x$,D,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ca=ya=0;;)if(Ca<ya)Ha=b.ba(null,Ca),$APP.r($APP.gH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.gF,y$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.gF,m,B$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.gH(wa,a))||c(new $APP.n(null,4,[A$,$APP.gF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.gF,m,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(J))for(var Da=$APP.x(J),Aa=null,Oa=0,Ua=0;;)if(Ua<Oa){var db=Aa.ba(null,Ua),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.gH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(of):Yb.call(null,of))){var lk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Sb,of,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,ub,C$,of],null);return lk.h?lk.h(vb):lk.call(null,vb)}(),f$,J,B$,ub,C$,of],null))}}Ua+=1}else{var zl=$APP.x(Da);if(zl){var vi=zl;if($APP.Zd(vi))ya=$APP.uc(vi),a=$APP.vc(vi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var mk=$APP.y(vi),nk=$APP.B.j(mk,0,null),sj=$APP.B.j(mk,1,null),ok=function(){var vb=(vb=$APP.Vd(sj))?D$.h(sj):vb;return $APP.r(vb)?vb:sj}(),Al=$APP.gH(wa,nk);if($APP.r(Al)){var Ic=Al,tj=$APP.B.j(Ic,0,null),wi=$APP.B.j(Ic,1,null);if(!$APP.r(ok.h? | ||
ok.h(wi):ok.call(null,wi))){var Bl=function(){var vb=E$.h(sj);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,tj,wi,Al,ok,mk,nk,sj,vi,zl,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,nk,C$,wi],null);return Bl.h?Bl.h(vb):Bl.call(null,vb)}(), | ||
f$,J,B$,nk,C$,wi],null))}}Da=$APP.z(vi);Aa=null;Oa=0}Ua=0}else break}return wa},Yha=function(a,b){a=Xha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.QH,$APP.Rk.g(a,w$))},Zha=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);return $APP.A.g(b,a)?c:null},J$=function(a,b){$APP.Jf(F$,!1);a.setPrompt([$APP.t.h($APP.u(G$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(H$))?null:I$.g?I$.g(b,a):I$.call(null,b,a)},K$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
var c=$APP.mH($APP.u(H$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.ji.g(b,a):null;$APP.Jf(H$,$APP.Jp.g("\n",$APP.He(a,c)))},$ha=function(a,b,c){var d=function(){var k=$APP.pr;$APP.pr=$APP.u(G$);try{a:{var l=$APP.La;$APP.La=!0;try{var m=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=l}m=void 0}return $APP.yu(m,new $APP.n(null,3,[$APP.Kp,$APP.Pp,$APP.ou,!0,$APP.$p,!0],null),$APP.u(L$))}finally{$APP.pr=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.xu);d=$APP.fe.g(e,$APP.T);$APP.Jf(L$, | ||
e);e=$APP.Zj("(async function () {\n%s\n}) ()","%s",f);$APP.Jf(G$,d);return Promise.resolve(eval(e)).then(function(k){$APP.r(c)?c.write(esm_import$node_util.inspect(k),"\n"):console.log(k);return I$.g?I$.g(c,b):I$.call(null,c,b)}).catch(function(k){esm_import$squint_cljs$core.println(k);return J$(b,c)})},I$=function(a,b){if($APP.r(function(){var e=$APP.u(F$);return $APP.r(e)?e:!$APP.gk($APP.u(H$))}())){$APP.Jf(F$,!0);var c=$APP.hp($APP.u(H$)),d=function(){try{return $APP.jp(c,$APP.lu)}catch(f){var e= | ||
f;if(-1!=$APP.lH(e).indexOf("EOF while reading"))return M$;K$(c);$APP.MH.l($APP.F([$APP.t.h(e)]));return N$}}();if($APP.A.g(N$,d))return J$(b,a);if($APP.A.g(M$,d))return $APP.Jf(F$,!1);K$(c);return $APP.A.g($APP.ip,d)?J$(b,a):$ha(d,b,a)}return null},O$=function(a,b){a.on("line",function(c){$APP.Wi.A(H$,$APP.t,c,"\n");return I$(b,a)})},aia=function(a){var b=esm_import$readline.createInterface({input:a,output:a});O$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.NH.l($APP.F(["Client closed connection."]))})}, | ||
P$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.BH(a,b)):a},Q$=function(a,b,c){var d=$APP.GH.h(a),e=$APP.pH.h(a);b=P$(b,e,d);c=$APP.rH(c);d=null==c?null:P$(c,e,d);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.FH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e= | ||
esm_import$path.resolve(c,$APP.BH(b,d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.NH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.NH.l($APP.F(["[squint] zCopying resource",b,"to",c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.u($APP.qH), | ||
d=$APP.Qk.l($APP.F([c,a])),e=$APP.pH.h(c),f=S$.h(c),k=$APP.GH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.GH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.NH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.NH(),$APP.NH.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.ne.j(function(l,m){return Promise.resolve(l).then(function(){return $APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(m))?($APP.NH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.HH($APP.Rh.l(d,$APP.CH,m,$APP.F([$APP.xr,function(h){return Q$(d,m,h)}])))):R$(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.EH);$APP.r(h)&&$APP.NH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},bia=function(a){var b=$APP.u($APP.qH), | ||
c=$APP.Qk.l($APP.F([b,a])),d=$APP.pH.h(b),e=$APP.GH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.NH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,q=0;;)if(q<h){var p=m.ba(null,q);(k.h?k.h(p):k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null: | ||
5,[$APP.lx,d,q$,l,r$,a,s$,c,t$,f],null)},$ha=function(a,b){function c(vb){vb=$APP.Qk.l($APP.F([new $APP.n(null,2,[v$,d,$APP.Xk,w$],null),vb]));return O.h?O.h(vb):O.call(null,vb)}var d=v$.h(b),e=$APP.r(d)?U9(b,$APP.F([Wha(d)])):b,f=d$.h(e),k=function(){var vb=e$.h(e);return $APP.r(vb)?vb:$APP.Lr.h(e)}(),l=Xha.h(e),m=$APP.iF.h(e),h=g$.h(e),q=h$.h(e),p=function(){var vb=x$.h(e);return $APP.r(vb)?vb:Yha.h(e)}(),v=$APP.Zh($APP.R.l($APP.Kh($APP.Vd(d)?d:$APP.Rg.g($APP.hf,d)),$APP.Oh(k),$APP.F([$APP.Kh(f)]))), | ||
D=$APP.A.g(!0,p)?v:null==p?null:$APP.Zh(p),J=f$.h(e),O=function(){var vb=Zha.h(e);return $APP.r(vb)?vb:function(Zb){Zb=$APP.jf(Zb);var Jc=$APP.fe.g(Zb,y$);throw $APP.cl.g(Jc,Zb);}}(),P=k$(a,null),W=$APP.jf(P),ca=$APP.fe.g(W,i$),ha=$APP.fe.g(W,j$),oa=function(){var vb=l$.h(e);vb=$APP.r(vb)?vb:z$.h(e);return $APP.r(vb)?m$(ca,vb):new $APP.n(null,2,[l$,null,j$,ha],null)}(),pa=$APP.jf(oa),fa=$APP.fe.g(pa,j$),E=$APP.fe.g(pa,l$),C=$APP.Qh.g(fa,ha)?new $APP.I(null,2,5,$APP.N,[null,$APP.R.g(fa,ha)],null): | ||
new $APP.I(null,2,5,$APP.N,[ca,ha],null),ea=$APP.B.j(C,0,null),K=$APP.B.j(C,1,null),M=function(){for(var vb=$APP.hf,Zb=null,Jc=null,Pe=$APP.r(q)?n$:null,hd=$APP.x(K),Kg=E;;){if($APP.Za(hd))return new $APP.I(null,3,5,$APP.N,[vb,Zb,Jc],null);var pg=$APP.y(hd),Uc=pg instanceof $APP.H;if(Uc){Zb=c$(vb,Zb,Jc,null);var oe=pg;hd=$APP.z(hd);vb=Zb;Zb=oe}else{var Cl=!0===pg,Tf=$APP.t.h(pg);oe=b$(l,Zb,$APP.fe.g(f,Zb));var yi=$APP.fe.g(f,Zb),Dl=u$(Tf,Pe,Zb,yi,Jc),Lh=$APP.jf(Dl),El=$APP.fe.g(Lh,q$),Mh=$APP.fe.g(Lh, | ||
r$),Fl=$APP.fe.g(Lh,s$),Uf=$APP.fe.g(Lh,$APP.lx),pk=$APP.fe.g(Lh,t$);if($APP.r(function(){var Re=El;return $APP.r(Re)?Re:Fl}())){var Yc=$APP.qa(Tf,"--"),qk=Yc&&$APP.A.g("--",Tf);if(qk){var Gl=$APP.z(hd);return new $APP.I(null,3,5,$APP.N,[function(){var Re=vb;return Gl?$APP.jo.A(Re,$APP.bv,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(Gl)):Re}(),Zb,Jc],null)}var rk=Yc?$APP.ji.g(Tf,2):$APP.Zj(Tf,/^(:|-|)/,""),Af=Yc?$APP.Hr.g(rk,/=/):new $APP.I(null,1,5,$APP.N,[rk],null),Sd=$APP.B.j(Af,0,null),Ce= | ||
$APP.B.j(Af,1,null),Vb=$APP.vi.h(Sd),Fc=$APP.fe.j(k,Vb,Vb);if($APP.r(Ce))Jc=c$(vb,Zb,Jc,oe),Zb=Fc,Pe=Uf,hd=$APP.He(Ce,$APP.cd(hd)),vb=Jc,Jc=null;else{var Ab=$APP.z(hd),Qe=$APP.y(Ab),uw=u$(Qe,Uf,Zb,yi,Jc);if($APP.r(function(){var Re=q$.h(uw);return $APP.r(Re)?Re:$APP.Qd(Ab)}()))if($APP.r(Mh)){var vw=$APP.ai(Fc);Jc=$APP.Zp.l(function(){return function(Re){return new $APP.I(null,2,5,$APP.N,[["-",$APP.t.h(Re)].join(""),!0],null)}}(vb,Zb,Jc,Pe,hd,Kg,vw,Ab,Qe,uw,rk,Af,Sd,Ce,Vb,Fc,Yc,qk,Cl,Tf,oe,yi,Dl,Lh, | ||
El,Mh,Fl,Uf,pk,pg,Uc,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K),$APP.F([vw]));hd=$APP.R.g(Jc,Ab);Pe=Uf;Jc=Zb=null}else hd=$APP.he(v,Fc)?null:$APP.$G($APP.t.h(Fc),":no-"),Pe=$APP.r(hd)?$APP.vi.h($APP.Zj($APP.t.h(Fc),":no-","")):Fc,hd=$APP.He($APP.Za(hd),Ab),Zb=c$(vb,Zb,Jc,oe),oe=Pe,Pe=Uf,vb=Zb,Zb=oe;else Zb=c$(vb,Zb,Jc,oe),oe=Fc,Pe=Uf,hd=Ab,vb=Zb,Zb=oe}}else if(qk=$APP.A.g(o$,yi)&&$APP.Qh.g(Tf,"true")&&$APP.Qh.g(Tf,"false")||$APP.A.g(Jc,Zb)&&$APP.Za(oe))if(Kg=$APP.r(hd)?$APP.r(Kg)?m$(hd, | ||
Kg):new $APP.n(null,1,[j$,hd],null):new $APP.n(null,1,[j$,hd],null),Pe=$APP.jf(Kg),Kg=$APP.fe.g(Pe,j$),Pe=$APP.fe.g(Pe,l$),$APP.Qh.g(hd,Kg))oe=Pe,Pe=Uf,hd=Kg,Kg=oe;else return new $APP.I(null,3,5,$APP.N,[$APP.jo.A(vb,$APP.bv,new $APP.I(null,2,5,$APP.N,[w$,j$],null),$APP.lg(hd)),Zb,Jc],null);else{try{var Yd=Vha(vb,Zb,oe,Rha(yi),Tf,Cl)}catch(Re){c(new $APP.n(null,4,[A$,d$,y$,$APP.oH(Re),B$,Zb,C$,Tf],null)),Yd=vb}Jc=$APP.r(function(){var Re=$APP.A.g(p$,Uf);return Re?pk:Re}())?null:Zb;oe=$APP.r(function(){var Re= | ||
$APP.A.g(p$,Uf);return Re?pk:Re}())?null:Zb;Pe=Uf;hd=$APP.z(hd);vb=Yd;Zb=Jc;Jc=oe}}}}(),da=$APP.B.j(M,0,null),ia=$APP.B.j(M,1,null),ja=$APP.B.j(M,2,null),sa=b$(l,ia,$APP.fe.g(f,ia)),ta=function(){var vb=c$(da,ia,ja,sa);return $APP.x(ea)?$APP.jo.A(vb,$APP.Nk,new $APP.I(null,2,5,$APP.N,[w$,j$],null),function(Zb){return $APP.Rg.g($APP.lg(ea),Zb)}):vb}(),wa=$APP.r(h)?$APP.Md($APP.Qk.l($APP.F([h,ta])),$APP.Nd(ta)):ta;if($APP.r(D)){a=$APP.x($APP.Kh(wa));b=null;for(var ya=0,Ca=0;;)if(Ca<ya){var Ha=b.ba(null, | ||
Ca);$APP.he(D,Ha)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(Ha)].join(""),x$,D,B$,Ha],null));Ca+=1}else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.he(D,a)||c(new $APP.n(null,4,[A$,x$,y$,["Unknown option: ",$APP.t.h(a)].join(""),x$,D,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break}if($APP.r(m))for(a=$APP.x(m),b=null,Ca=ya=0;;)if(Ca<ya)Ha=b.ba(null,Ca),$APP.r($APP.jH(wa,Ha))||c(new $APP.n(null,4,[A$,$APP.iF,y$,["Required option: ", | ||
$APP.t.h(Ha)].join(""),$APP.iF,m,B$,Ha],null)),Ca+=1;else if(a=$APP.x(a))b=a,$APP.Zd(b)?(a=$APP.uc(b),Ca=$APP.vc(b),b=a,ya=$APP.xd(a),a=Ca):(a=$APP.y(b),$APP.r($APP.jH(wa,a))||c(new $APP.n(null,4,[A$,$APP.iF,y$,["Required option: ",$APP.t.h(a)].join(""),$APP.iF,m,B$,a],null)),a=$APP.z(b),b=null,ya=0),Ca=0;else break;if($APP.r(J))for(var Da=$APP.x(J),Aa=null,Oa=0,Ua=0;;)if(Ua<Oa){var db=Aa.ba(null,Ua),ub=$APP.B.j(db,0,null),Bb=$APP.B.j(db,1,null),Yb=function(){var vb=(vb=$APP.Vd(Bb))?D$.h(Bb):vb;return $APP.r(vb)? | ||
vb:Bb}(),qc=$APP.jH(wa,ub);if($APP.r(qc)){var $c=qc,Sb=$APP.B.j($c,0,null),of=$APP.B.j($c,1,null);if(!$APP.r(Yb.h?Yb.h(of):Yb.call(null,of))){var lk=function(){var vb=E$.h(Bb);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,$c,Sb,of,qc,Yb,db,ub,Bb,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null, | ||
5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,ub,C$,of],null);return lk.h?lk.h(vb):lk.call(null,vb)}(),f$,J,B$,ub,C$,of],null))}}Ua+=1}else{var zl=$APP.x(Da);if(zl){var wi=zl;if($APP.Zd(wi))ya=$APP.uc(wi),a=$APP.vc(wi),b=ya,ya=$APP.xd(ya),Da=a,Aa=b,Oa=ya;else{var mk=$APP.y(wi),nk=$APP.B.j(mk,0,null),sj=$APP.B.j(mk,1,null),ok=function(){var vb=(vb=$APP.Vd(sj))?D$.h(sj):vb;return $APP.r(vb)?vb:sj}(),Al=$APP.jH(wa,nk);if($APP.r(Al)){var Ic=Al,tj=$APP.B.j(Ic,0,null),xi=$APP.B.j(Ic,1,null);if(!$APP.r(ok.h? | ||
ok.h(xi):ok.call(null,xi))){var Bl=function(){var vb=E$.h(sj);return $APP.r(vb)?vb:function(){return function(Zb){var Jc=$APP.jf(Zb);Zb=$APP.fe.g(Jc,B$);Jc=$APP.fe.g(Jc,C$);return["Invalid value for option ",$APP.t.h(Zb),": ",$APP.t.h(Jc)].join("")}}(Da,Aa,Oa,Ua,vb,Ic,tj,xi,Al,ok,mk,nk,sj,wi,zl,d,e,f,k,l,m,h,q,p,v,D,J,O,c,P,W,ca,ha,oa,pa,fa,E,C,ea,K,M,da,ia,ja,sa,ta,wa)}();c(new $APP.n(null,5,[A$,f$,y$,function(){var vb=new $APP.n(null,2,[B$,nk,C$,xi],null);return Bl.h?Bl.h(vb):Bl.call(null,vb)}(), | ||
f$,J,B$,nk,C$,xi],null))}}Da=$APP.z(wi);Aa=null;Oa=0}Ua=0}else break}return wa},aia=function(a,b){a=$ha(a,b);b=w$.h($APP.Nd(a));return $APP.Rh.j(b,$APP.TH,$APP.Rk.g(a,w$))},bia=function(a,b){var c=$APP.Of($APP.xd(a),b);b=$APP.B.j(c,0,null);c=$APP.B.j(c,1,null);return $APP.A.g(b,a)?c:null},J$=function(a,b){$APP.Jf(F$,!1);a.setPrompt([$APP.t.h($APP.u(G$)),"\x3d\x3e "].join(""));a.prompt();return $APP.gk($APP.u(H$))?null:I$.g?I$.g(b,a):I$.call(null,b,a)},K$=function(a){var b=$APP.Bk(a);a=$APP.Ck(a); | ||
var c=$APP.pH($APP.u(H$));b=$APP.Nf.g(b-1,c);c=$APP.x(b);b=$APP.y(c);c=$APP.z(c);a=$APP.r(b)?$APP.ji.g(b,a):null;$APP.Jf(H$,$APP.Jp.g("\n",$APP.He(a,c)))},cia=function(a,b,c){var d=function(){var k=$APP.or;$APP.or=$APP.u(G$);try{a:{var l=$APP.La;$APP.La=!0;try{var m=$APP.Ri.l($APP.F([a]));break a}finally{$APP.La=l}m=void 0}return $APP.zu(m,new $APP.n(null,3,[$APP.Kp,$APP.Pp,$APP.pu,!0,$APP.$p,!0],null),$APP.u(L$))}finally{$APP.or=k}}(),e=$APP.jf(d),f=$APP.fe.g(e,$APP.yu);d=$APP.fe.g(e,$APP.T);$APP.Jf(L$, | ||
e);e=$APP.Zj("(async function () {\n%s\n}) ()","%s",f);$APP.Jf(G$,d);return Promise.resolve(eval(e)).then(function(k){$APP.r(c)?c.write(esm_import$node_util.inspect(k),"\n"):console.log(k);return I$.g?I$.g(c,b):I$.call(null,c,b)}).catch(function(k){esm_import$squint_cljs$core.println(k);return J$(b,c)})},I$=function(a,b){if($APP.r(function(){var e=$APP.u(F$);return $APP.r(e)?e:!$APP.gk($APP.u(H$))}())){$APP.Jf(F$,!0);var c=$APP.hp($APP.u(H$)),d=function(){try{return $APP.jp(c,$APP.mu)}catch(f){var e= | ||
f;if(-1!=$APP.oH(e).indexOf("EOF while reading"))return M$;K$(c);$APP.PH.l($APP.F([$APP.t.h(e)]));return N$}}();if($APP.A.g(N$,d))return J$(b,a);if($APP.A.g(M$,d))return $APP.Jf(F$,!1);K$(c);return $APP.A.g($APP.ip,d)?J$(b,a):cia(d,b,a)}return null},O$=function(a,b){a.on("line",function(c){$APP.Wi.A(H$,$APP.t,c,"\n");return I$(b,a)})},dia=function(a){var b=esm_import$readline.createInterface({input:a,output:a});O$(b,a);a.setNoDelay(!0);return a.on("close",function(){return $APP.QH.l($APP.F(["Client closed connection."]))})}, | ||
P$=function(a,b,c){return $APP.r(c)?esm_import$path.resolve(c,$APP.EH(a,b)):a},Q$=function(a,b,c){var d=$APP.JH.h(a),e=$APP.sH.h(a);b=P$(b,e,d);c=$APP.uH(c);d=null==c?null:P$(c,e,d);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.IH.g(a,".mjs"),a=$APP.qa(a,".")?a:[".",$APP.t.h(a)].join(""),e=esm_import$path.extname(d),["./",$APP.Zj(d,$APP.ki([$APP.t.h(e),"$"].join("")),a)].join("")):null},R$=function(a,b,c,d){if($APP.r(a)){var e= | ||
esm_import$path.resolve(c,$APP.EH(b,d));c=esm_import$path.dirname(e);if($APP.r($APP.Ef(function(f){return f instanceof $APP.H?$APP.ii($APP.ki(["\\.",$APP.ai(f),"$"].join("")),e):"string"===typeof f?$APP.ii($APP.ki(f),e):null},a)))return $APP.r(esm_import$fs.existsSync(c))||($APP.QH.l($APP.F(["[squint] Creating directory:",c])),esm_import$fs.mkdirSync(c,{recursive:!0})),$APP.QH.l($APP.F(["[squint] zCopying resource",b,"to",c])),esm_import$fs.copyFileSync(b,e)}return null},V$=function(a,b){var c=$APP.u($APP.tH), | ||
d=$APP.Qk.l($APP.F([c,a])),e=$APP.sH.h(c),f=S$.h(c),k=$APP.JH.g(c,".");a=$APP.Qd(b)?$APP.lg($APP.Zp.l(T$,$APP.F([e]))):b;b=$APP.JH.h(d);if($APP.r(b)&&"string"!==typeof b)throw Error("output-dir must be a string");return $APP.r(U$.h(d))?($APP.QH.l($APP.F(["Usage: squint compile \x3cfiles\x3e \x3copts\x3e"])),$APP.QH(),$APP.QH.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.ne.j(function(l,m){return Promise.resolve(l).then(function(){return $APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(m))?($APP.QH.l($APP.F(["[squint] Compiling CLJS file:",m])),$APP.KH($APP.Rh.l(d,$APP.FH,m,$APP.F([$APP.wr,function(h){return Q$(d,m,h)}])))):R$(f,m,k,e)}).then(function(h){h=$APP.jf(h);h=$APP.fe.g(h,$APP.HH);$APP.r(h)&&$APP.QH.l($APP.F(["[squint] Wrote file:",h]));return h})},null,a)},eia=function(a){var b=$APP.u($APP.tH), | ||
c=$APP.Qk.l($APP.F([b,a])),d=$APP.sH.h(b),e=$APP.JH.g(b,"."),f=S$.h(b);return shadow_esm_import("chokidar").catch(function(k){return console.error(k)}).then(function(k){k=k.watch;$APP.QH.l($APP.F(["[squint] Watching paths:",$APP.Jp.g(", ",d)]));for(var l=$APP.x(d),m=null,h=0,q=0;;)if(q<h){var p=m.ba(null,q);(k.h?k.h(p):k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,pa,fa,E,C){return function(ea,K){return $APP.r(esm_import$fs.existsSync(K))?$APP.r(esm_import$fs.lstatSync(K).isDirectory())?null: | ||
$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),ea)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(K))?V$(pa,new $APP.I(null,1,5,$APP.N,[K],null)).catch(function(){return function(M){return console.error(M)}}(J,O,P,W,ca,ha,oa,pa,fa,E,C)):R$(C,K,E,fa):null}}(l,m,h,q,p,k,b,c,d,e,f));q+=1}else{var v=$APP.x(l);if(v){var D=v;$APP.Zd(D)?(l=$APP.uc(D),h=$APP.vc(D),m=l,D=$APP.xd(l),l=h,h=D):(p=$APP.y(D),(k.h?k.h(p): | ||
k.call(null,p)).on("all",function(J,O,P,W,ca,ha,oa,pa,fa,E,C,ea,K){return function(M,da){return $APP.r(esm_import$fs.existsSync(da))?$APP.r(esm_import$fs.lstatSync(da).isDirectory())?null:$APP.he(new $APP.Uh(null,new $APP.n(null,2,["add",null,"change",null],null),null),M)&&$APP.he(new $APP.Uh(null,new $APP.n(null,2,[".cljc",null,".cljs",null],null),null),esm_import$path.extname(da))?V$(E,new $APP.I(null,1,5,$APP.N,[da],null)).catch(function(){return function(ia){return console.error(ia)}}(J,O,P,W, | ||
ca,ha,oa,pa,fa,E,C,ea,K)):R$(K,da,ea,C):null}}(l,m,h,q,p,D,v,k,b,c,d,e,f)),l=$APP.z(D),m=null,h=0);q=0}else return null}})},s$=new $APP.H(null,"kwd-opt","kwd-opt",1313309243),n$=new $APP.H(null,"hyphens","hyphens",2113533609),v$=new $APP.H(null,"spec","spec",347520401),d$=new $APP.H(null,"coerce","coerce",1917884504),x$=new $APP.H(null,"restrict","restrict",-1071101511),p$=new $APP.H(null,"keywords","keywords",1526959054),N$=new $APP.H("squint.repl.node","continue","squint.repl.node/continue",1558138730), | ||
y$=new $APP.H(null,"msg","msg",-1386103444),cia=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Pha=new $APP.H(null,"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),w$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),l$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),e$=new $APP.H(null,"alias","alias",-2039751630),Uha=new $APP.H(null,"collect","collect",-284321549),f$=new $APP.H(null,"validate", | ||
"validate",-201300827),r$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),dia=new $APP.H(null,"run","run",-1821166653),q$=new $APP.H(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),A$=new $APP.H(null,"cause","cause",231901252),t$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Qha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),j$=new $APP.H(null,"args","args",1315556576),h$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018), | ||
C$=new $APP.H(null,"value","value",305978217),S$=new $APP.H(null,"copy-resources","copy-resources",-1367155536),D$=new $APP.H(null,"pred","pred",1927423397),Vha=new $APP.H(null,"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Wha=new $APP.H(null,"error-fn","error-fn",-171437615),B$=new $APP.H(null,"option","option",65132272),g$=new $APP.H(null,"exec-args","exec-args",-1860766354),E$=new $APP.H(null,"ex-msg","ex-msg", | ||
-1111774387),Lha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),eia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds",-1841503952);var H$=$APP.Vi.h(""),F$=$APP.Vi.h(!1),G$=$APP.Vi.h($APP.pr),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var L$=$APP.Vi.h(null),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.pr=$APP.ry;$APP.dr=$APP.or=!0;var b=function(){var d=$APP.PH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(aia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.NH.l($APP.F([["Socket REPL listening on port ",$APP.t.h(d.port)," on host ",$APP.t.h(e)].join("")]))})};Z$.m=1; | ||
y$=new $APP.H(null,"msg","msg",-1386103444),fia=new $APP.H(null,"show","show",-576705889),o$=new $APP.H(null,"boolean","boolean",-1919418404),Sha=new $APP.H(null,"input","input",556931961),W$=new $APP.H(null,"rest-cmds","rest-cmds",-423198324),w$=new $APP.H("org.babashka","cli","org.babashka/cli",1162430315),l$=new $APP.H(null,"args-\x3eopts","args-\x3eopts",964391046),e$=new $APP.H(null,"alias","alias",-2039751630),Xha=new $APP.H(null,"collect","collect",-284321549),f$=new $APP.H(null,"validate", | ||
"validate",-201300827),r$=new $APP.H(null,"composite-opt","composite-opt",-2021292928),gia=new $APP.H(null,"run","run",-1821166653),q$=new $APP.H(null,"hyphen-opt","hyphen-opt",1836909464),U$=new $APP.H(null,"help","help",-439233446),A$=new $APP.H(null,"cause","cause",231901252),t$=new $APP.H(null,"fst-colon","fst-colon",1618567071),Tha=new $APP.H(null,"coerce-fn","coerce-fn",-821146515),j$=new $APP.H(null,"args","args",1315556576),h$=new $APP.H(null,"no-keyword-opts","no-keyword-opts",761286018), | ||
C$=new $APP.H(null,"value","value",305978217),S$=new $APP.H(null,"copy-resources","copy-resources",-1367155536),D$=new $APP.H(null,"pred","pred",1927423397),Yha=new $APP.H(null,"closed","closed",-919675359),M$=new $APP.H("squint.repl.node","eof-while-reading","squint.repl.node/eof-while-reading",198833493),Zha=new $APP.H(null,"error-fn","error-fn",-171437615),B$=new $APP.H(null,"option","option",65132272),g$=new $APP.H(null,"exec-args","exec-args",-1860766354),E$=new $APP.H(null,"ex-msg","ex-msg", | ||
-1111774387),Oha=new $APP.H(null,"s","s",1705939918),z$=new $APP.H(null,"cmds-opts","cmds-opts",-390130362),hia=new $APP.H(null,"h","h",1109658740),i$=new $APP.H(null,"cmds","cmds",-1841503952);var H$=$APP.Vi.h(""),F$=$APP.Vi.h(!1),G$=$APP.Vi.h($APP.or),X$,Y$=process.stdout.isTTY;X$=$APP.r(Y$)?process.stdin.setRawMode:Y$;var L$=$APP.Vi.h(null),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.or=$APP.ry;$APP.cr=$APP.nr=!0;var b=function(){var d=$APP.SH.h(a);return $APP.r(d)?d:0}(),c=esm_import$net.createServer(dia);return c.listen(b,"127.0.0.1",function(){var d=c.address(),e=d.address;return $APP.QH.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.pr=$APP.ry;$APP.dr=$APP.or=!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});O$(b,null);b.setPrompt([$APP.t.h($APP.u(G$)),"\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.lg($APP.Zp.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.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},fia=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.QH);var b=$APP.u($APP.qH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.NH.l($APP.F(["[squint] Running",d]));return $APP.HH($APP.Rh.l(c,$APP.CH,d,$APP.F([$APP.xr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.EH);e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return shadow_esm_import(e)})},z$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["compile"],null), | ||
$APP.yo,function(a){var b=$APP.jf(a);a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.QH);return V$(b,a)}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.QH);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,[i$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.QH);return bia(a)}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.QH);a=$APP.OE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.NH.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.r($APP.$p.h(c))? | ||
$APP.Zj("(do %s\n)","%s",a):a;a=$APP.WG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Jr,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ry],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.ou,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.ou.h(c):f}()])));a=$APP.r($APP.$p.h(c))?$APP.Zj("(async function() { %s })()","%s",a):a;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(cia.h(c))&&$APP.NH.l($APP.F([a])); | ||
if(!1===dia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.MH.l($APP.F([f])):null}).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.Qd(b)}())?$APP.NH.l($APP.F(["Squint v0.8.116\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.Mr,new $APP.n(null,1,[eia,U$],null),d$,new $APP.n(null,4,[$APP.ou,o$,$APP.Nr,o$,$APP.GH,$APP.nl,$APP.$p,o$],null)],null),b=k$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,i$),e=$APP.fe.g(c,j$);return $APP.ne.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,i$),m=$APP.fe.g(f,$APP.yo),h=Zha(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.lg(v)}();k=$APP.R.g(k,e);f=Yha(k,U9(a,$APP.F([f])));k=$APP.jf(f);var q=$APP.fe.g(k, | ||
$APP.QH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var p=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,p,$APP.F([W$,p,$APP.QH,q,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,fia)})(); | ||
$$.h=function(){$APP.or=$APP.ry;$APP.cr=$APP.nr=!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});O$(b,null);b.setPrompt([$APP.t.h($APP.u(G$)),"\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.lg($APP.Zp.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.I(null,1,5,$APP.N,[d],null)},$APP.F([c])))},iia=new $APP.I(null,7,5,$APP.N,[new $APP.n(null,3,[i$,new $APP.I(null,1,5,$APP.N,["run"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);var b=$APP.u($APP.tH),c=$APP.Qk.l($APP.F([b,a]));a=$APP.jf(c);var d=$APP.fe.g(a,$APP.$k); | ||
a=$APP.fe.g(a,U$);if($APP.r(a))return null;$APP.QH.l($APP.F(["[squint] Running",d]));return $APP.KH($APP.Rh.l(c,$APP.FH,d,$APP.F([$APP.wr,function(e){return Q$(c,d,e)}]))).then(function(e){e=$APP.jf(e);e=$APP.fe.g(e,$APP.HH);e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return shadow_esm_import(e)})},z$,new $APP.I(null,1,5,$APP.N,[$APP.$k],null)],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["compile"],null), | ||
$APP.yo,function(a){var b=$APP.jf(a);a=$APP.fe.g(b,W$);b=$APP.fe.g(b,$APP.TH);return V$(b,a)}],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["repl"],null),$APP.yo,$$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["socket-repl"],null),$APP.yo,Z$],null),new $APP.n(null,2,[i$,new $APP.I(null,1,5,$APP.N,["nrepl-server"],null),$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.TH);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,[i$,new $APP.I(null,1,5,$APP.N,["watch"],null),$APP.yo,function(a){a=$APP.jf(a);a=$APP.fe.g(a,$APP.TH);return eia(a)}],null),new $APP.n(null,2,[i$,$APP.kg,$APP.yo,function(a){a=$APP.jf(a);var b=$APP.fe.g(a,W$),c=$APP.fe.g(a,$APP.TH);a=$APP.RE.h(c);if($APP.r(a)){if($APP.r(U$.h(c)))return $APP.QH.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.r($APP.$p.h(c))? | ||
$APP.Zj("(do %s\n)","%s",a):a;a=$APP.ZG.g(a,$APP.Rh.l(c,$APP.$p,$APP.$p.h(c),$APP.F([$APP.Ir,$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ry],null)),$APP.Kp,$APP.r($APP.$p.h(c))?$APP.Pp:$APP.Qp,$APP.pu,function(){var f=$APP.$p.h(c);return $APP.r(f)?!1!==$APP.pu.h(c):f}()])));a=$APP.r($APP.$p.h(c))?$APP.Zj("(async function() { %s })()","%s",a):a;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(fia.h(c))&&$APP.QH.l($APP.F([a])); | ||
if(!1===gia.h(c))return null;e=$APP.r(esm_import$path.isAbsolute(e))?e:esm_import$path.resolve(process.cwd(),e);e=$APP.t.h(esm_import$url.pathToFileURL(e));return($APP.r($APP.$p.h(c))?Promise.resolve(eval(a)):shadow_esm_import(e)).then(function(f){return $APP.r($APP.$p.h(c))?$APP.PH.l($APP.F([f])):null}).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.Qd(b)}())?$APP.QH.l($APP.F(["Squint v0.8.117\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.Lr,new $APP.n(null,1,[hia,U$],null),d$,new $APP.n(null,4,[$APP.pu,o$,$APP.Mr,o$,$APP.JH,$APP.nl,$APP.$p,o$],null)],null),b=k$(process.argv.slice(2),a),c=$APP.jf(b),d=$APP.fe.g(c,i$),e=$APP.fe.g(c,j$);return $APP.ne.j(function(f,k){f=$APP.jf(k);var l=$APP.fe.g(f,i$),m=$APP.fe.g(f,$APP.yo),h=bia(l,d);if($APP.r(h)){k=function(){var v=null==h?null:$APP.x(h);return null==v?null:$APP.lg(v)}();k=$APP.R.g(k,e);f=aia(k,U9(a,$APP.F([f])));k=$APP.jf(f);var q=$APP.fe.g(k, | ||
$APP.TH);f=$APP.fe.g(k,j$);k=$APP.fe.g(k,i$);var p=$APP.R.g(k,f);return $APP.ld(function(){var v=$APP.Rh.l(c,j$,p,$APP.F([W$,p,$APP.TH,q,$APP.ap,l]));return m.h?m.h(v):m.call(null,v)}())}return null},null,iia)})(); |
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 YG,ZG,$G,nH,oH,yH,zH,AH,IH,JH,sH,xH,DH;$APP.XG=function(a,b){return $APP.qa(a,b)};YG=function(a,b){a.sort(b||$APP.Ba)};ZG=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.Ba;YG(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};$G=function(){}; | ||
$APP.aH=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.cb($APP.yb,a):$APP.cb($APP.yb,a)};$APP.bH=function(a){return $APP.ee(a)||!1};$APP.cH=function(a){return"number"===typeof a};$APP.dH=function(){this.C=[]};$APP.eH=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.fH=function(a){$APP.pi("\n");return $APP.fe.g(a,$APP.Ga),null}; | ||
$APP.gH=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.cb($G,a)):$APP.cb($G,a))?$APP.Db(a,b):null!=a&&$APP.aH(a)&&$APP.he(a,b)?new $APP.Ig(b,$APP.fe.g(a,b),null):null};$APP.hH=function(a,b){return new $APP.I(null,2,5,$APP.N,[$APP.rs.g(a,b),$APP.ss.g(a,b)],null)};$APP.iH=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.jH=function(a){return Math.floor(Math.random()*a)}; | ||
$APP.kH=function(){function a(){return $APP.jH(16).toString(16)}var b=(8|3&$APP.jH(16)).toString(16);return new $APP.nj([$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.lH=function(a){return a instanceof Error?a.message:null};$APP.mH=function(a){return $APP.Ir.g(a,/\n|\r\n/)};nH=function(a,b){return $APP.r($APP.r(b)?$APP.Qh.g(b,""):b)?$APP.Em(a,$APP.Kk(b)):null};oH=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.I(null,2,5,$APP.N,["cljc","cljs"],null))}; | ||
$APP.rH=function(a){var b=$APP.Zj($APP.Zj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return oH(c,b)},$APP.pH.g($APP.u($APP.qH),new $APP.I(null,2,5,$APP.N,[".","src"],null)))}; | ||
yH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Jr);a=$APP.jp($APP.hp(a),$APP.lu);if($APP.be(a)&&$APP.A.g($APP.Dj,$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.B.j(k,0,null);k=$APP.B.j(k,1,null);return $APP.be(l)&&$APP.A.g(sH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.tH.j(2,1,a));var e=$APP.B.j(a,0,null),f=$APP.B.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.uH.h($APP.u($APP.vH)); | ||
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),q=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var p=$APP.fe.g(h,$APP.Er),v=$APP.fe.g(h,$APP.Fr);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.lF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,q,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.I(null,1,5,$APP.N,[$APP.wH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
xH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,null,1,null),new $APP.G(null,q,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(J);J=$APP.Oh(J);J=$APP.ui.g($APP.od,J);return $APP.bi(D,J)}()).then(function(D){return $APP.Wi.g(c,function(J){J=$APP.av(J,new $APP.I(null,2,5,$APP.N,[$APP.Qt,q],null),D);J=$APP.r(v)?$APP.av(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Mr,v],null),q):J;return $APP.r(p)?$APP.av(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Kr], | ||
null),$APP.bi(p,$APP.Lr.h(q))):J})})})},Promise.resolve(null),e)}):null}return null};zH=function(a){var b=$APP.Rh.j;var c=$APP.Jr.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ry],null));return b.call($APP.Rh,a,$APP.Jr,c)};AH=function(a,b){var c=zH(b);return Promise.resolve(yH(a,c)).then(function(){return $APP.yu(a,c,null)})}; | ||
$APP.BH=function(a,b){return $APP.ne.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.Qd(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.HH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.CH),c=$APP.fe.g(a,DH),d=$APP.fe.g(a,$APP.EH),e=$APP.fe.g(a,$APP.FH),f=$APP.fe.j(a,$APP.GH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=zH(a);return AH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.xu),m=$APP.fe.g(k,$APP.zq),h=$APP.pH.g($APP.u($APP.qH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),q=esm_import$path,p=q.resolve;$APP.r(d)?h=d:(h=$APP.BH(b,h),$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""): | ||
null,m=$APP.r(m)?m:".mjs"),h=$APP.Zj(h,/.clj(s|c)$/,m));q=p.call(q,f,h);p=esm_import$path.dirname(q);$APP.r(esm_import$fs.existsSync(p))||esm_import$fs.mkdirSync(p,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(p)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.GH,f,$APP.EH,q],null));esm_import$fs.writeFileSync(q,l,"utf-8");return $APP.Rh.j(k,$APP.EH,q)})};IH=function(a){return $APP.zu.l(a,$APP.F([$APP.Au,!0]))}; | ||
JH=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.Xc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.$u.g(IH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.uv):$APP.uv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.dH.prototype.add=function(a){return this.C.push(a)};$APP.dH.prototype.size=function(){return this.C.length}; | ||
$APP.dH.prototype.clear=function(){return this.C=[]};$APP.dH.prototype.fd=function(){return 0===this.C.length};$APP.KH=function KH(a){switch(arguments.length){case 1:return KH.h(arguments[0]);case 2:return KH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.KH.h=function(a){return $APP.KH.g($APP.ie,a)};$APP.KH.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);ZG(c,$APP.eH(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd}; | ||
$APP.KH.m=2;$APP.LH=function LH(a){switch(arguments.length){case 2:return LH.g(arguments[0],arguments[1]);case 3:return LH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.LH.g=function(a,b){return $APP.LH.j(a,$APP.ie,b)};$APP.LH.j=function(a,b,c){return $APP.KH.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.eH(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.LH.m=3; | ||
$APP.MH=function MH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return MH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)};$APP.MH.l=function(a){$APP.Gi(a,$APP.Ra());return $APP.r($APP.Sa)?$APP.fH($APP.Ra()):null};$APP.MH.m=0;$APP.MH.o=function(a){return this.l($APP.x(a))};$APP.NH=function NH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return NH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)}; | ||
$APP.NH.l=function(a){$APP.Gi(a,$APP.Rh.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Sa)?$APP.fH($APP.Ra()):null};$APP.NH.m=0;$APP.NH.o=function(a){return this.l($APP.x(a))};$APP.tH=function tH(a){switch(arguments.length){case 1:return tH.h(arguments[0]);case 2:return tH.g(arguments[0],arguments[1]);case 3:return tH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.tH.h=function(a){return function(b){var c=new $APP.dH;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.lg(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.lg(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.tH.g=function(a,b){return $APP.tH.j(a,a,b)};$APP.tH.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.tH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.tH.m=3;$APP.iH.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.iH.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.iH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.DD,null==this.f?$APP.Mw:$APP.nB,$APP.sv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.OH=function OH(a){switch(arguments.length){case 1:return OH.h(arguments[0]);case 2:return OH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.OH.h=function(a){return nH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.YF),$APP.Dm,$APP.u($APP.XF),$APP.il,null],null),a)};$APP.OH.g=function(a,b){return nH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.XF)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.YF),c]))}),b)};$APP.OH.m=2;$APP.PH=new $APP.H(null,"port","port",1534937262);$APP.wH=new $APP.H(null,"reload","reload",863702807);$APP.QH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.GH=new $APP.H(null,"output-dir","output-dir",-290956991);sH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.RH=new $APP.H(null,"message","message",-406056002);$APP.CH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.SH=new $APP.H(null,"id","id",-1388402092);xH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.pH=new $APP.H(null,"paths","paths",-1807389588);$APP.TH=new $APP.H(null,"eval","eval",-1103567905); | ||
$APP.uH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.EH=new $APP.H(null,"out-file","out-file",-1187066405);DH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.FH=new $APP.H(null,"extension","extension",1453374065);$APP.qH=new $APP.iH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.OH.h(a)}else a=null;return a},null);var UH;$APP.vH=$APP.Vi.h(null);UH=JH(AH);export const compileFile=JH($APP.HH);export const compileString=UH; | ||
import*as esm_import$fs from"fs";import*as esm_import$path from"path";var aH,bH,cH,qH,rH,BH,CH,DH,LH,MH,vH,AH,GH;$APP.$G=function(a,b){return $APP.qa(a,b)};aH=function(a,b){a.sort(b||$APP.Ba)};bH=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.Ba;aH(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};cH=function(){}; | ||
$APP.dH=function(a){return null!=a?a.D&512||$APP.Oc===a.Ce?!0:a.D?!1:$APP.cb($APP.yb,a):$APP.cb($APP.yb,a)};$APP.eH=function(a){return $APP.ee(a)||!1};$APP.fH=function(a){return"number"===typeof a};$APP.gH=function(){this.C=[]};$APP.hH=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.iH=function(a){$APP.pi("\n");return $APP.fe.g(a,$APP.Ga),null}; | ||
$APP.jH=function(a,b){return(null!=a?$APP.Oc===a.Hc||(a.wd?0:$APP.cb(cH,a)):$APP.cb(cH,a))?$APP.Db(a,b):null!=a&&$APP.dH(a)&&$APP.he(a,b)?new $APP.Ig(b,$APP.fe.g(a,b),null):null};$APP.kH=function(a,b){return new $APP.I(null,2,5,$APP.N,[$APP.ss.g(a,b),$APP.ts.g(a,b)],null)};$APP.lH=function(a,b){this.f=a;this.value=b;this.D=2147516416;this.M=1};$APP.mH=function(a){return Math.floor(Math.random()*a)}; | ||
$APP.nH=function(){function a(){return $APP.mH(16).toString(16)}var b=(8|3&$APP.mH(16)).toString(16);return new $APP.nj([$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.oH=function(a){return a instanceof Error?a.message:null};$APP.pH=function(a){return $APP.Hr.g(a,/\n|\r\n/)};qH=function(a,b){return $APP.r($APP.r(b)?$APP.Qh.g(b,""):b)?$APP.Em(a,$APP.Kk(b)):null};rH=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.I(null,2,5,$APP.N,["cljc","cljs"],null))}; | ||
$APP.uH=function(a){var b=$APP.Zj($APP.Zj($APP.t.h(a),"-","_"),".","/");return $APP.Ef(function(c){return rH(c,b)},$APP.sH.g($APP.u($APP.tH),new $APP.I(null,2,5,$APP.N,[".","src"],null)))}; | ||
BH=function(a,b){b=$APP.jf(b);var c=$APP.fe.g(b,$APP.Ir);a=$APP.jp($APP.hp(a),$APP.mu);if($APP.be(a)&&$APP.A.g($APP.Dj,$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.B.j(k,0,null);k=$APP.B.j(k,1,null);return $APP.be(l)&&$APP.A.g(vH,$APP.y(l))?new $APP.I(null,2,5,$APP.N,[$APP.cd(l),k],null):null},$APP.wH.j(2,1,a));var e=$APP.B.j(a,0,null),f=$APP.B.j(a,1,null);return $APP.r(e)?shadow_esm_import("./compiler.sci.js").then(function(){var k=$APP.xH.h($APP.u($APP.yH)); | ||
return $APP.ne.j(function(l,m){return l.then(function(){var h=$APP.x(m),q=$APP.y(h);h=$APP.z(h);h=$APP.jf(h);var p=$APP.fe.g(h,$APP.Dr),v=$APP.fe.g(h,$APP.Er);return Promise.resolve(function(){var D=function(){var O=new $APP.G(null,$APP.nF,new $APP.G(null,new $APP.G(null,$APP.Mj,new $APP.G(null,q,null,1,null),2,null),null,1,null),2,null);return $APP.r(f)?$APP.R.g(O,new $APP.I(null,1,5,$APP.N,[$APP.zH],null)):O}();k.h?k.h(D):k.call(null,D);var J=function(){var O=$APP.S.h($APP.x($APP.R.g(new $APP.G(null, | ||
AH,null,1,null),new $APP.G(null,$APP.S.h($APP.x($APP.R.g(new $APP.G(null,$APP.Mj,null,1,null),new $APP.G(null,q,null,1,null)))),null,1,null))));return k.h?k.h(O):k.call(null,O)}();D=$APP.Kh(J);J=$APP.Oh(J);J=$APP.ui.g($APP.od,J);return $APP.bi(D,J)}()).then(function(D){return $APP.Wi.g(c,function(J){J=$APP.bv(J,new $APP.I(null,2,5,$APP.N,[$APP.Rt,q],null),D);J=$APP.r(v)?$APP.bv(J,new $APP.I(null,3,5,$APP.N,[d,$APP.Lr,v],null),q):J;return $APP.r(p)?$APP.bv(J,new $APP.I(null,2,5,$APP.N,[d,$APP.Jr], | ||
null),$APP.bi(p,$APP.Kr.h(q))):J})})})},Promise.resolve(null),e)}):null}return null};CH=function(a){var b=$APP.Rh.j;var c=$APP.Ir.h(a);c=$APP.r(c)?c:$APP.Vi.h(new $APP.n(null,1,[$APP.to,$APP.ry],null));return b.call($APP.Rh,a,$APP.Ir,c)};DH=function(a,b){var c=CH(b);return Promise.resolve(BH(a,c)).then(function(){return $APP.zu(a,c,null)})}; | ||
$APP.EH=function(a,b){return $APP.ne.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.Qd(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.KH=function(a){a=$APP.jf(a);var b=$APP.fe.g(a,$APP.FH),c=$APP.fe.g(a,GH),d=$APP.fe.g(a,$APP.HH),e=$APP.fe.g(a,$APP.IH),f=$APP.fe.j(a,$APP.JH,"");c=$APP.r(c)?c:esm_import$fs.readFileSync(b,"utf-8");a=CH(a);return DH(c,a).then(function(k){k=$APP.jf(k);var l=$APP.fe.g(k,$APP.yu),m=$APP.fe.g(k,$APP.zq),h=$APP.sH.g($APP.u($APP.tH),new $APP.I(null,2,5,$APP.N,[".","src"],null)),q=esm_import$path,p=q.resolve;$APP.r(d)?h=d:(h=$APP.EH(b,h),$APP.r(m)?m=".jsx":(m=$APP.r(e)?[".",$APP.Zj(e,/^\./,"")].join(""): | ||
null,m=$APP.r(m)?m:".mjs"),h=$APP.Zj(h,/.clj(s|c)$/,m));q=p.call(q,f,h);p=esm_import$path.dirname(q);$APP.r(esm_import$fs.existsSync(p))||esm_import$fs.mkdirSync(p,{recursive:!0});if(!$APP.r(esm_import$fs.existsSync(p)))throw Error("File not found, make sure output-dir is a valid path: ",new $APP.n(null,2,[$APP.JH,f,$APP.HH,q],null));esm_import$fs.writeFileSync(q,l,"utf-8");return $APP.Rh.j(k,$APP.HH,q)})};LH=function(a){return $APP.Au.l(a,$APP.F([$APP.Bu,!0]))}; | ||
MH=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.Xc(f,0,null)}return c.call(this,e)}function c(d){d=$APP.av.g(LH,d);d=$APP.Gf.g(a,d);return d instanceof Promise?d.then($APP.vv):$APP.vv(d)}b.m=0;b.o=function(d){d=$APP.x(d);return c(d)};b.l=c;return b}()};$APP.gH.prototype.add=function(a){return this.C.push(a)};$APP.gH.prototype.size=function(){return this.C.length}; | ||
$APP.gH.prototype.clear=function(){return this.C=[]};$APP.gH.prototype.fd=function(){return 0===this.C.length};$APP.NH=function NH(a){switch(arguments.length){case 1:return NH.h(arguments[0]);case 2:return NH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.NH.h=function(a){return $APP.NH.g($APP.ie,a)};$APP.NH.g=function(a,b){if($APP.x(b)){var c=$APP.Ze.h?$APP.Ze.h(b):$APP.Ze.call(null,b);bH(c,$APP.hH(a));return $APP.Md($APP.x(c),$APP.Nd(b))}return $APP.bd}; | ||
$APP.NH.m=2;$APP.OH=function OH(a){switch(arguments.length){case 2:return OH.g(arguments[0],arguments[1]);case 3:return OH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}};$APP.OH.g=function(a,b){return $APP.OH.j(a,$APP.ie,b)};$APP.OH.j=function(a,b,c){return $APP.NH.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.hH(b);return f.g?f.g(d,e):f.call(null,d,e)},c)};$APP.OH.m=3; | ||
$APP.PH=function PH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return PH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)};$APP.PH.l=function(a){$APP.Gi(a,$APP.Ra());return $APP.r($APP.Sa)?$APP.iH($APP.Ra()):null};$APP.PH.m=0;$APP.PH.o=function(a){return this.l($APP.x(a))};$APP.QH=function QH(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return QH.l(0<c.length?new $APP.Xc(c.slice(0),0,null):null)}; | ||
$APP.QH.l=function(a){$APP.Gi(a,$APP.Rh.j($APP.Ra(),$APP.Ia,!1));return $APP.r($APP.Sa)?$APP.iH($APP.Ra()):null};$APP.QH.m=0;$APP.QH.o=function(a){return this.l($APP.x(a))};$APP.wH=function wH(a){switch(arguments.length){case 1:return wH.h(arguments[0]);case 2:return wH.g(arguments[0],arguments[1]);case 3:return wH.j(arguments[0],arguments[1],arguments[2]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.wH.h=function(a){return function(b){var c=new $APP.gH;return function(){function d(l,m){c.add(m);return a===c.size()?(m=$APP.lg(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.lg(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.wH.g=function(a,b){return $APP.wH.j(a,a,b)};$APP.wH.j=function(a,b,c){return new $APP.Ne(null,function(){var d=$APP.x(c);return d?$APP.He($APP.Mf.g(a,d),$APP.wH.j(a,b,$APP.Nf.g(b,d))):null},null,null)};$APP.wH.m=3;$APP.lH.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.lH.prototype.$c=function(){return $APP.Za(this.f)}; | ||
$APP.lH.prototype.R=function(a,b,c){$APP.ic(b,"#object[cljs.core.Delay ");$APP.ti(new $APP.n(null,2,[$APP.HD,null==this.f?$APP.Nw:$APP.tB,$APP.tv,this.value],null),b,c);return $APP.ic(b,"]")};$APP.RH=function RH(a){switch(arguments.length){case 1:return RH.h(arguments[0]);case 2:return RH.g(arguments[0],arguments[1]);default:throw Error(["Invalid arity: ",$APP.t.h(arguments.length)].join(""));}}; | ||
$APP.RH.h=function(a){return qH(new $APP.n(null,3,[$APP.Cm,$APP.u($APP.aG),$APP.Dm,$APP.u($APP.$F),$APP.il,null],null),a)};$APP.RH.g=function(a,b){return qH($APP.Tm.j($APP.Qk.l($APP.F([new $APP.n(null,1,[$APP.Dm,$APP.u($APP.$F)],null),a])),$APP.Cm,function(c){return $APP.Qk.l($APP.F([$APP.u($APP.aG),c]))}),b)};$APP.RH.m=2;$APP.SH=new $APP.H(null,"port","port",1534937262);$APP.zH=new $APP.H(null,"reload","reload",863702807);$APP.TH=new $APP.H(null,"opts","opts",155075701); | ||
$APP.JH=new $APP.H(null,"output-dir","output-dir",-290956991);vH=new $APP.H(null,"require-macros","require-macros",707947416);$APP.UH=new $APP.H(null,"message","message",-406056002);$APP.FH=new $APP.H(null,"in-file","in-file",-1682176692);$APP.VH=new $APP.H(null,"id","id",-1388402092);AH=new $APP.w("cljs.core","ns-publics","cljs.core/ns-publics",488240955,null);$APP.sH=new $APP.H(null,"paths","paths",-1807389588);$APP.WH=new $APP.H(null,"eval","eval",-1103567905); | ||
$APP.xH=new $APP.H(null,"eval-form","eval-form",-1934118476);$APP.HH=new $APP.H(null,"out-file","out-file",-1187066405);GH=new $APP.H(null,"in-str","in-str",-1014658121);$APP.IH=new $APP.H(null,"extension","extension",1453374065);$APP.tH=new $APP.lH(function(){if($APP.r(esm_import$fs.existsSync("squint.edn"))){var a=esm_import$fs.readFileSync("squint.edn","utf-8");a=$APP.RH.h(a)}else a=null;return a},null);var XH;$APP.yH=$APP.Vi.h(null);XH=MH(DH);export const compileFile=MH($APP.KH);export const compileString=XH; |
@@ -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 G9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},H9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},I9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},J9=function(a){return console.debug($APP.Jp.g(" ",a))},jha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.SH),e=$APP.fe.g(b,iha);c=$APP.Rh.j(c,"id",d);c=$APP.r(e)?$APP.Rh.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},lha=function(){var a= | ||
kha;return function(b,c){b=$APP.Tm.j(b,K9,$APP.zi);return a.g?a.g(b,c):a.call(null,b,c)}},nha=function(){var a=mha();return function(b,c){J9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},oha=function(a){return function(b,c){J9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},mha=function(){var a=lha();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},L9=function(a){return $APP.Rh.j($APP.bi(new $APP.I(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.zu.h(a.split("."))), | ||
"version-string",a)},pha=function(a,b,c){if($APP.r(a))if(a=M9.h?M9.h(a):M9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.n9),e=$APP.fe.g(b,$APP.g9),f=$APP.fe.g(b,$APP.p9);b=$APP.Qa;var k=$APP.li,l=$APP.P6;$APP.Qa=e;$APP.li=f;$APP.P6=d;try{var m=new $APP.Fa;d=$APP.Sa;e=$APP.Ta;$APP.Sa=!0;$APP.Ta=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ta=e,$APP.Sa=d}return $APP.t.h(m)}finally{$APP.P6=l,$APP.li=k,$APP.Qa=b}}else return J9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])), | ||
$APP.Ri.l($APP.F([c]));else return $APP.Ri.l($APP.F([c]))},qha=function(a){a=$APP.yu(a,new $APP.n(null,4,[$APP.Kp,$APP.Pp,$APP.ou,!0,$APP.$p,!0,$APP.Sp,!0],null),$APP.u(N9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.xu);a=$APP.fe.g(b,$APP.T);$APP.Jf(N9,b);b=$APP.Zj("(async function () {\n%s\n}) ()","%s",c);$APP.Jf(O9,a);return b},wha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,rha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,sha);$APP.fe.g(c,tha);return Promise.resolve(a).then(qha).then(function(d){$APP.NH.l($APP.F(["About to eval:"])); | ||
$APP.NH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(O9)),"value",pha(uha.h(c),vha.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.RH.h($APP.pj(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.pr)],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.u(O9)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},P9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},kha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,K9),d=$APP.fe.g(Q9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.Jp.g(" ",$APP.F(["Unhandled operation",c])));c=new $APP.n(null,1,["status",new $APP.I(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a, | ||
c):b.call(null,a,c)},xha=function(a){return function(b,c){return a.write(R9(c))}},yha=function(a,b){J9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=nha(),d=jha(oha(xha(b))),e=$APP.Vi.h(null);b.on("data",function(f){var k=$APP.u(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.Au,!0]),k=$APP.kg;;){var m=$APP.Gf.j(S9,l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.I(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k, | ||
l);l=m}f=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);$APP.gk(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var h=m=0;;)if(h<m)l=k.ba(null,h),c(l,d),h+=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),h=0;else return null});return b.on("close",function(f){return $APP.r(f)?J9($APP.F(["Connection lost"])):J9($APP.F(["Connection closed"]))})},tha=new $APP.H(null,"_line","_line",232847719),vha=new $APP.H("nrepl.middleware.print", | ||
"options","nrepl.middleware.print/options",868480159),iha=new $APP.H(null,"session","session",1008279103),zha=new $APP.H(null,"lookup","lookup",1225356838),Aha=new $APP.H(null,"load-file","load-file",-424586670),sha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),K9=new $APP.H(null,"op","op",-1882987955),Bha=new $APP.H(null,"describe","describe",1369790582),rha=new $APP.H(null,"code","code",1586293142),Cha=new $APP.H(null,"eldoc","eldoc",-1321421900),Dha=new $APP.H(null,"log_level","log_level", | ||
-1756736313),uha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Eha=new $APP.H(null,"clone","clone",711747572),Fha=new $APP.H(null,"close","close",1835149582),Gha=new $APP.H(null,"info","info",-317069002),Hha=new $APP.H(null,"host","host",-1558485167),Iha=new $APP.H(null,"complete","complete",-500388775);var T9=function T9(a,b){switch($APP.t.h(I9(a,1))){case "i":return a=H9(a,1),b=G9(a,"e"),new $APP.I(null,2,5,$APP.N,[parseInt(I9(a,b)),H9(a,b+1)],null);case "l":var d=a=H9(a,1);for(a=$APP.mc($APP.kg);;){if($APP.A.g($APP.t.h(I9(d,1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(a),H9(d,1)],null);var e=T9.g?T9.g(d,b):T9.call(null,d,b),f=$APP.B.j(e,0,null),k=$APP.B.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=H9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.Au),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(I9(d, | ||
1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(e),H9(d,1)],null);a=T9.g?T9.g(d,b):T9.call(null,d,b);d=$APP.B.j(a,0,null);k=$APP.B.j(a,1,null);k=T9.g?T9.g(k,b):T9.call(null,k,b);a=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);d=$APP.r(f)?$APP.zi.h(d):d;a=$APP.Ug.j(e,d,a);d=k;e=a}default:return b=G9(a,":"),f=parseInt(I9(a,b)),a=H9(a,b+1),new $APP.I(null,2,5,$APP.N,[$APP.t.h(I9(a,f)),H9(a,f)],null)}},S9=function S9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return S9.l(arguments[0], | ||
var G9=function(a,b){a=a.indexOf(b);if(0>a)throw Error("out of input");return a},H9=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},I9=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},J9=function(a){return console.debug($APP.Jp.g(" ",a))},mha=function(a){return function(b,c){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.VH),e=$APP.fe.g(b,lha);c=$APP.Rh.j(c,"id",d);c=$APP.r(e)?$APP.Rh.j(c,"session",e):c;return a.g?a.g(b,c):a.call(null,b,c)}},oha=function(){var a= | ||
nha;return function(b,c){b=$APP.Tm.j(b,K9,$APP.vi);return a.g?a.g(b,c):a.call(null,b,c)}},qha=function(){var a=pha();return function(b,c){J9($APP.F(["request",b]));return a.g?a.g(b,c):a.call(null,b,c)}},rha=function(a){return function(b,c){J9($APP.F(["response",c]));return a.g?a.g(b,c):a.call(null,b,c)}},pha=function(){var a=oha();return function(b,c){return a.g?a.g(b,c):a.call(null,b,c)}},L9=function(a){return $APP.Rh.j($APP.bi(new $APP.I(null,3,5,$APP.N,["major","minor","incremental"],null),$APP.Au.h(a.split("."))), | ||
"version-string",a)},sha=function(a,b,c){if($APP.r(a))if(a=M9.h?M9.h(a):M9.call(null,a),$APP.r(a)){b=$APP.jf(b);var d=$APP.fe.g(b,$APP.n9),e=$APP.fe.g(b,$APP.g9),f=$APP.fe.g(b,$APP.p9);b=$APP.Qa;var k=$APP.li,l=$APP.P6;$APP.Qa=e;$APP.li=f;$APP.P6=d;try{var m=new $APP.Fa;d=$APP.Sa;e=$APP.Ta;$APP.Sa=!0;$APP.Ta=function(h){return m.append(h)};try{a.h?a.h(c):a.call(null,c)}finally{$APP.Ta=e,$APP.Sa=d}return $APP.t.h(m)}finally{$APP.P6=l,$APP.li=k,$APP.Qa=b}}else return J9($APP.F(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"])), | ||
$APP.Ri.l($APP.F([c]));else return $APP.Ri.l($APP.F([c]))},tha=function(a){a=$APP.zu(a,new $APP.n(null,4,[$APP.Kp,$APP.Pp,$APP.pu,!0,$APP.$p,!0,$APP.Sp,!0],null),$APP.u(N9));var b=$APP.jf(a),c=$APP.fe.g(b,$APP.yu);a=$APP.fe.g(b,$APP.T);$APP.Jf(N9,b);b=$APP.Zj("(async function () {\n%s\n}) ()","%s",c);$APP.Jf(O9,a);return b},zha=function(a,b){var c=$APP.jf(a);$APP.fe.g(c,$APP.T);a=$APP.fe.g(c,uha);$APP.fe.g(c,$APP.$k);$APP.fe.g(c,vha);$APP.fe.g(c,wha);return Promise.resolve(a).then(tha).then(function(d){$APP.QH.l($APP.F(["About to eval:"])); | ||
$APP.QH.l($APP.F([d]));return eval(d)}).then(function(d){d=new $APP.n(null,2,["ns",$APP.t.h($APP.u(O9)),"value",sha(xha.h(c),yha.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.UH.h($APP.pj(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.or)],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.u(O9)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(c,d):b.call(null,c,d)})},P9=function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.T);return null},nha=function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,K9),d=$APP.fe.g(Q9,c);if($APP.r(d))return d.g?d.g(a,b):d.call(null,a,b);console.warn($APP.Jp.g(" ",$APP.F(["Unhandled operation",c])));c=new $APP.n(null,1,["status",new $APP.I(null,3,5,$APP.N,["error","unknown-op","done"],null)],null);return b.g?b.g(a, | ||
c):b.call(null,a,c)},Aha=function(a){return function(b,c){return a.write(R9(c))}},Bha=function(a,b){J9($APP.F(["Connection accepted"]));b.setNoDelay(!0);var c=qha(),d=mha(rha(Aha(b))),e=$APP.Vi.h(null);b.on("data",function(f){var k=$APP.u(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.Bu,!0]),k=$APP.kg;;){var m=$APP.Gf.j(S9,l,f);l=$APP.B.j(m,0,null);m=$APP.B.j(m,1,null);if(null==l){k=new $APP.I(null,2,5,$APP.N,[k,m],null);break a}k=$APP.Ee.g(k, | ||
l);l=m}f=$APP.B.j(k,0,null);k=$APP.B.j(k,1,null);$APP.gk(k)||$APP.Jf(e,k);f=$APP.x(f);k=null;for(var h=m=0;;)if(h<m)l=k.ba(null,h),c(l,d),h+=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),h=0;else return null});return b.on("close",function(f){return $APP.r(f)?J9($APP.F(["Connection lost"])):J9($APP.F(["Connection closed"]))})},wha=new $APP.H(null,"_line","_line",232847719),yha=new $APP.H("nrepl.middleware.print", | ||
"options","nrepl.middleware.print/options",868480159),lha=new $APP.H(null,"session","session",1008279103),Cha=new $APP.H(null,"lookup","lookup",1225356838),Dha=new $APP.H(null,"load-file","load-file",-424586670),vha=new $APP.H(null,"_load-file?","_load-file?",-1198848711),K9=new $APP.H(null,"op","op",-1882987955),Eha=new $APP.H(null,"describe","describe",1369790582),uha=new $APP.H(null,"code","code",1586293142),Fha=new $APP.H(null,"eldoc","eldoc",-1321421900),Gha=new $APP.H(null,"log_level","log_level", | ||
-1756736313),xha=new $APP.H("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Hha=new $APP.H(null,"clone","clone",711747572),Iha=new $APP.H(null,"close","close",1835149582),Jha=new $APP.H(null,"info","info",-317069002),Kha=new $APP.H(null,"host","host",-1558485167),Lha=new $APP.H(null,"complete","complete",-500388775);var T9=function T9(a,b){switch($APP.t.h(I9(a,1))){case "i":return a=H9(a,1),b=G9(a,"e"),new $APP.I(null,2,5,$APP.N,[parseInt(I9(a,b)),H9(a,b+1)],null);case "l":var d=a=H9(a,1);for(a=$APP.mc($APP.kg);;){if($APP.A.g($APP.t.h(I9(d,1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(a),H9(d,1)],null);var e=T9.g?T9.g(d,b):T9.call(null,d,b),f=$APP.B.j(e,0,null),k=$APP.B.j(e,1,null);e=k;a=$APP.fg.g(a,f);d=e}case "d":for(a=H9(a,1),f=$APP.jf(b),f=$APP.fe.g(f,$APP.Bu),d=a,e=$APP.mc($APP.hf);;){if($APP.A.g($APP.t.h(I9(d, | ||
1)),"e"))return new $APP.I(null,2,5,$APP.N,[$APP.oc(e),H9(d,1)],null);a=T9.g?T9.g(d,b):T9.call(null,d,b);d=$APP.B.j(a,0,null);k=$APP.B.j(a,1,null);k=T9.g?T9.g(k,b):T9.call(null,k,b);a=$APP.B.j(k,0,null);k=$APP.B.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=G9(a,":"),f=parseInt(I9(a,b)),a=H9(a,b+1),new $APP.I(null,2,5,$APP.N,[$APP.t.h(I9(a,f)),H9(a,f)],null)}},S9=function S9(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),e+=1;else break;return S9.l(arguments[0], | ||
1<c.length?new $APP.Xc(c.slice(1),0,null):null)};S9.l=function(a,b){try{return T9(a,b)}catch(c){if(c instanceof Error)return new $APP.I(null,2,5,$APP.N,[null,a],null);throw c;}};S9.m=1;S9.o=function(a){var b=$APP.y(a);a=$APP.z(a);return this.l(b,a)}; | ||
var R9=function R9(a){for(;;){if("string"===typeof a)return[$APP.t.h(Buffer.from(a).length),":",a].join("");if(a instanceof $APP.H||a instanceof $APP.w)a=[function(){var c=$APP.Le(a);return $APP.r(c)?[c,"/"].join(""):null}(),$APP.ai(a)].join("");else return"number"===typeof a?["i",$APP.t.h(a),"e"].join(""):$APP.Td(a)||$APP.Xd(a)||null==a?["l",$APP.t.h($APP.Gf.g($APP.t,$APP.ui.g(R9,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.B.j(c, | ||
0,null);c=$APP.B.j(c,1,null);return[$APP.t.h(R9.h?R9.h(d):R9.call(null,d)),$APP.t.h(R9.h?R9.h(c):R9.call(null,c))].join("")}}(a),$APP.LH.g($APP.y,a)))),"e"].join(""):null}};var O9=$APP.Vi.h($APP.pr),M9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.w9],null);$APP.Vi.h(!1); | ||
var N9=$APP.Vi.h(null),Q9=$APP.vh([zha,Fha,Aha,Cha,Eha,Bha,Gha,Iha,$APP.TH],[P9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.$k);return null},P9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.kH()),"status",new $APP.I(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",L9("TODO"),"node",L9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(Q9)),$APP.Lr.h($APP.hf)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},P9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.MH.l($APP.F([$APP.T,c]));return wha($APP.Rh.j(a,$APP.T,$APP.u(O9)),b)}]),Jha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.PH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Hha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Dha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(yha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.NH.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.Jp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Jha,d)})}; | ||
0,null);c=$APP.B.j(c,1,null);return[$APP.t.h(R9.h?R9.h(d):R9.call(null,d)),$APP.t.h(R9.h?R9.h(c):R9.call(null,c))].join("")}}(a),$APP.OH.g($APP.y,a)))),"e"].join(""):null}};var O9=$APP.Vi.h($APP.or),M9=new $APP.n(null,1,["cider.nrepl.pprint/pprint",$APP.w9],null);$APP.Vi.h(!1); | ||
var N9=$APP.Vi.h(null),Q9=$APP.vh([Cha,Iha,Dha,Fha,Hha,Eha,Jha,Lha,$APP.WH],[P9,function(a,b){var c=new $APP.n(null,1,["status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},function(a){a=$APP.jf(a);$APP.fe.g(a,$APP.$k);return null},P9,function(a,b){var c=new $APP.n(null,2,["new-session",$APP.t.h($APP.nH()),"status",new $APP.I(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",L9("TODO"),"node",L9(process.version)],null),"aux",$APP.hf,"ops",$APP.bi($APP.ui.g($APP.ai,$APP.Kh(Q9)),$APP.Kr.h($APP.hf)),"status",new $APP.I(null,1,5,$APP.N,["done"],null)],null);return b.g?b.g(a,c):b.call(null,a,c)},P9,function(){return null},function(a,b){a=$APP.jf(a);var c=$APP.fe.g(a,$APP.T);$APP.PH.l($APP.F([$APP.T,c]));return zha($APP.Rh.j(a,$APP.T,$APP.u(O9)),b)}]),Mha=$APP.Vi.h(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var e=$APP.SH.h(a);return $APP.r(e)?e:0}(),c=function(){var e=Kha.h(a);return $APP.r(e)?e:"127.0.0.1"}();(function(){var e=$APP.$a(a)?a.bg:Gha.h(a);return $APP.r(e)?e:"info"})();var d=esm_import$net.createServer($APP.Tk.g(Bha,$APP.hf));d.listen(b,c,function(){var e=d.address(),f=e.port;e=e.address;$APP.QH.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.Jp.g(" ",$APP.F(["Could not write .nrepl-port",k])))}});return $APP.Jf(Mha,d)})}; |
@@ -1,1 +0,1 @@ | ||
var squint;(squint||={}).core=(()=>{var U=Object.defineProperty;var ye=Object.getOwnPropertyDescriptor;var me=Object.getOwnPropertyNames;var we=Object.prototype.hasOwnProperty;var ge=(t,e)=>{for(var n in e)U(t,n,{get:e[n],enumerable:!0})},be=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of me(e))!we.call(t,o)&&o!==n&&U(t,o,{get:()=>e[o],enumerable:!(r=ye(e,o))||r.enumerable});return t};var Ae=t=>be(U({},"__esModule",{value:!0}),t);var Ao={};ge(Ao,{Atom:()=>Lt,Cons:()=>qt,IIterable:()=>et,IIterable__iterator:()=>Nt,LazySeq:()=>ur,NaN_QMARK_:()=>qr,PROTOCOL_SENTINEL:()=>nn,_:()=>ke,_EQ_:()=>ve,_GT_:()=>wt,_GT__EQ_:()=>gt,_LT_:()=>Me,_LT__EQ_:()=>Ee,_PLUS_:()=>Re,_STAR_:()=>Se,_iterator:()=>L,abs:()=>ao,aclone:()=>Ar,add_watch:()=>vr,alength:()=>mr,apply:()=>xn,array_QMARK_:()=>C,aset:()=>wr,assoc:()=>S,assoc_BANG_:()=>b,assoc_in:()=>At,assoc_in_BANG_:()=>vt,atom:()=>un,boolean$:()=>hr,boolean_QMARK_:()=>Dr,bounded_count:()=>Jr,butlast:()=>ir,cat:()=>xo,coll_QMARK_:()=>Lr,comp:()=>Oe,compare:()=>v,complement:()=>ut,concat:()=>Ct,conj:()=>Et,conj_BANG_:()=>B,cons:()=>Ce,constantly:()=>yn,contains_QMARK_:()=>St,count:()=>T,counted_QMARK_:()=>le,cycle:()=>Gn,dec:()=>Be,deref:()=>rt,disj:()=>Te,disj_BANG_:()=>Rt,dissoc:()=>Ge,dissoc_BANG_:()=>qe,distinct:()=>zn,doall:()=>br,dorun:()=>gr,drop:()=>J,drop_last:()=>cr,drop_while:()=>Ht,empty:()=>V,empty_QMARK_:()=>Hn,ensure_reduced:()=>Zt,es6_iterator:()=>$,even_QMARK_:()=>Pt,every_QMARK_:()=>te,every_pred:()=>Sr,ex_cause:()=>Pr,ex_data:()=>zr,ex_info:()=>Yr,ex_message:()=>Fr,false_QMARK_:()=>ar,ffirst:()=>$e,filter:()=>P,filterv:()=>We,find:()=>Ur,first:()=>k,flatten:()=>oo,fn_QMARK_:()=>Or,fnil:()=>lt,frequencies:()=>or,get:()=>g,get_in:()=>ft,group_by:()=>rr,identical_QMARK_:()=>In,identity:()=>Vt,inc:()=>kt,int_QMARK_:()=>se,integer_QMARK_:()=>Cr,interleave:()=>Wt,interpose:()=>bn,into:()=>Xt,into_array:()=>oe,iterable:()=>c,iterate:()=>Qr,js_keys:()=>Gr,js_obj:()=>yr,juxt:()=>Kr,keep:()=>Vn,keep_indexed:()=>He,key:()=>Jt,keys:()=>ce,last:()=>ze,lazy:()=>a,list:()=>Yt,list_QMARK_:()=>mn,long$:()=>po,map:()=>j,map_QMARK_:()=>Rr,map_indexed:()=>Ue,mapcat:()=>wn,mapv:()=>zt,max:()=>re,max_key:()=>Hr,memoize:()=>yo,merge:()=>kn,merge_with:()=>Qn,meta:()=>Vr,min:()=>Er,min_key:()=>Zr,mod:()=>Xr,neg_QMARK_:()=>xr,next:()=>Z,nil_QMARK_:()=>en,nnext:()=>Ir,not:()=>Gt,not_any_QMARK_:()=>Xn,not_empty:()=>ro,not_every_QMARK_:()=>Yn,nth:()=>Kt,number_QMARK_:()=>ie,object_QMARK_:()=>je,odd_QMARK_:()=>dn,parse_long:()=>eo,partial:()=>qn,partition:()=>En,partition_all:()=>Mn,partition_by:()=>Sn,peek:()=>mo,persistent_BANG_:()=>io,pop:()=>wo,pos_QMARK_:()=>dr,pr_str:()=>Bt,println:()=>Qt,prn:()=>on,quot:()=>pe,rand_int:()=>ne,rand_nth:()=>tr,range:()=>sn,re_find:()=>ln,re_matches:()=>fn,re_pattern:()=>an,re_seq:()=>Tr,reduce:()=>Q,reduce_kv:()=>ht,reduced:()=>F,reduced_QMARK_:()=>A,reductions:()=>Pe,regexp_QMARK_:()=>$r,rem:()=>xe,remove:()=>De,remove_watch:()=>Mr,repeat:()=>st,repeatedly:()=>nr,replace:()=>Zn,reset_BANG_:()=>$t,rest:()=>z,reverse:()=>Wn,satisfies_QMARK_:()=>Qe,second:()=>Le,select_keys:()=>An,seq:()=>E,seq_QMARK_:()=>It,seqable_QMARK_:()=>jt,sequential_QMARK_:()=>X,set:()=>_n,shuffle:()=>Un,some:()=>ee,some_QMARK_:()=>pr,some_fn:()=>kr,sort:()=>at,sort_by:()=>Jn,sorted_set:()=>co,split_at:()=>sr,split_with:()=>fr,str:()=>tn,string_QMARK_:()=>_t,subs:()=>ue,subseq:()=>lo,subvec:()=>pn,swap_BANG_:()=>cn,system_time:()=>Kn,t:()=>Nr,take:()=>W,take_nth:()=>Tn,take_while:()=>D,to_array:()=>jr,transduce:()=>dt,transient$:()=>uo,tree_seq:()=>he,true_QMARK_:()=>lr,truth_:()=>_,type:()=>ho,unreduced:()=>ct,update:()=>Fn,update_BANG_:()=>pt,update_in:()=>Pn,update_keys:()=>go,update_vals:()=>bo,val:()=>Ut,vals:()=>Br,vec:()=>R,vector:()=>ot,vector_QMARK_:()=>hn,warn_on_lazy_reusage_BANG_:()=>Ye,with_meta:()=>Wr,zero_QMARK_:()=>_r,zipmap:()=>no});function l(t){if(t==null||t instanceof Function)return t;const e=typeof t;return e==="string"?(n,r)=>g(n,t,r):e==="object"?(n,r)=>g(t,n,r):t}function K(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function ve(...t){return K(t,(e,n)=>e===n)}function wt(...t){return K(t,(e,n)=>e>n)}function gt(...t){return K(t,(e,n)=>e>=n)}function Me(...t){return K(t,(e,n)=>e<n)}function Ee(...t){return K(t,(e,n)=>e<=n)}function Re(...t){return t.reduce((e,n)=>e+n,0)}function Se(...t){return t.reduce((e,n)=>e*n,1)}function ke(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}function Qe(t,e){return e[t]}function Ke(t,e,n){return t.set(e,n),t}function Ie(t,e,n){return t[e]=n,t}function bt(t){switch(p(t)){case h:return Ke;case y:case m:return Ie}}function b(t,e,n,...r){if(r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(p(t)){case h:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case y:case m:t[e]=n;for(let o=0;o<r.length;o+=2)t[r[o]]=r[o+1];break;default:throw new Error(`Illegal argument: assoc! expects a Map, Array, or Object as the first argument, but got ${typeof t}.`)}return t}function I(t){switch(p(t)){case h:return new Map(t);case w:return new t.constructor(t);case y:return[...t];case m:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function S(t,e,n,...r){t||(t={});const o=I(t);return b(o,e,n,...r),o}const h=1,y=2,m=3,M=4,w=5,q=6;function G(t){switch(t){case h:return new Map;case y:return[];case m:return{};case M:return new Y;case w:return new Set;case q:return a(function*(){})}}function tt(t){return t.constructor===Object}function je(t){return t!=null&&tt(t)}function p(t){if(t!=null){if(tt(t))return m;if(t instanceof Map)return h;if(t instanceof Set)return w;if(t instanceof Y)return M;if(Array.isArray(t))return y;if(t instanceof nt)return q;if(t instanceof N)return w;if(t instanceof Object)return m}}function Ne(t,e,n,r,o){r=R(r);const u=p(n);if(u!==h&&u!==y&&u!==m)throw new Error(`Illegal argument: ${e} expects the first argument to be a Map, Array, or Object.`);const i=[n];let s=n;for(let f=0;f<r.length-1;f+=1){const x=r[f];let d;s instanceof Map?d=s.get(x):d=s[x],d||(d=G(u)),i.push(d),s=d}i.push(o);for(let f=i.length-2;f>=0;f-=1)i[f]=t(i[f],r[f],i[f+1]);return i[0]}function At(t,e,n){return Ne(S,"assoc-in",t,e,n)}function vt(t,e,n){e=R(e);var r=t;const o=p(t);for(const u of e.splice(0,e.length-1)){let i=g(r,u);i===void 0&&(i=G(o),b(r,u,i)),r=i}return b(r,e[e.length-1],n),t}function Oe(...t){if(t=t.map(l),t.length===0)return Vt;if(t.length===1)return t[0];const[e,...n]=t.slice().reverse();return function(...r){let o=e(...r);for(const u of n)o=u(o);return o}}function Mt(t,e){for(const n of e)t.add(n);return t}function B(...t){if(t.length===0)return ot();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case w:Mt(r,n);break;case M:r.unshift(...n.reverse());break;case y:r.push(...n);break;case h:for(const o of n)Array.isArray(o)?r.set(o[0],o[1]):c(o).forEach(u=>{r.set(u[0],u[1])});break;case m:for(const o of n)Array.isArray(o)?r[o[0]]=o[1]:Object.assign(r,o);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return r}function Et(...t){if(t.length===0)return ot();const[e,...n]=t;let r=e;r==null&&(r=Yt());let o,u;switch(p(r)){case w:return r instanceof N?Mt(new r.constructor(r),n):new r.constructor([...r,...n]);case M:return new Y(...n.reverse(),...r);case y:return[...r,...n];case h:o=new Map(r);for(const i of n)Array.isArray(i)?o.set(i[0],i[1]):c(i).forEach(s=>{o.set(s[0],s[1])});return o;case q:return a(function*(){yield*n,yield*r});case m:u={...r};for(const i of n)Array.isArray(i)?u[i[0]]=i[1]:Object.assign(u,i);return u;default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function Rt(t,...e){for(const n of e)t.delete(n);return t}function Te(t,...e){const n=new t.constructor([...t]);return Rt(n,...e)}function St(t,e){switch(p(t)){case w:case h:return t.has(e);case void 0:return!1;default:return e in t}}function qe(t,...e){for(const n of e)delete t[n];return t}function Ge(t,...e){if(e.length===0)return t;const n=I(t);switch(p(t)){case h:for(const r of e)n.delete(r);break;default:for(const r of e)delete n[r];break}return n}function kt(t){return t+1}function Be(t){return t-1}function Qt(...t){console.log(...t)}function Kt(t,e,n){if(t){var r=void 0;if(Array.isArray(t))r=t[e];else{const o=c(t);let u=0;for(const i of o)if(u++==e){r=i;break}}if(r!==void 0)return r}return n}function g(t,e,n=void 0){if(t==null)return n;let r;if(tt(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case w:t.has(e)&&(r=e);break;case h:r=t.get(e);break;case y:r=t[e];break;default:if(o=t.get,o instanceof Function)try{r=t.get(e);break}catch{}r=t[e];break}return r!==void 0?r:n}function It(t){return t!=null&&!!t[Symbol.iterator]}const X=It;function jt(t){return t==null||!!t[Symbol.iterator]}function c(t){if(t==null)return[];if(jt(t))return t;if(t instanceof Object)return Object.entries(t);throw new TypeError(`${t} is not iterable`)}const et=Symbol("Iterable"),Nt=Symbol.iterator;function L(t){return t[Symbol.iterator]()}const $=L;function E(t){if(t==null)return t;const e=c(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function k(t){const[e]=c(t);return e}function Le(t){const[e,n]=c(t);return n}function $e(t){return k(k(t))}function z(t){return a(function*(){let e=!0;for(const n of c(t))e?e=!1:yield n})}class O{value;constructor(e){this.value=e}_deref(){return this.value}}function ze(t){t=c(t);let e;switch(p(t)){case y:return t[t.length-1];default:for(const n of t)e=n;return e}}function F(t){return new O(t)}function A(t){return t instanceof O}function Q(t,e,n){t=l(t);let r,o;if(arguments.length===2){const u=c(e)[Symbol.iterator](),i=u.next();i.done?o=t():o=i.value,r=u}else o=e,r=c(n);if(o instanceof O)return o.value;for(const u of r)if(o=t(o,u),o instanceof O){o=o.value;break}return o}function*Fe(t,e){const n=e.next();n.done?yield t():yield*Ot(t,n.value,e)}function*Ot(t,e,n){let r=e,o=n;for(;;){if(A(r)){yield r.value;return}else yield r;const u=o.next();if(u.done)break;r=t(r,u.value)}}function Pe(t,e,n){return t=l(t),arguments.length===2?a(function*(){yield*Fe(t,c(e)[Symbol.iterator]())}):a(function*(){yield*Ot(t,e,c(n)[Symbol.iterator]())})}var Tt=!1;function Ye(){Tt=!0}class nt{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&Tt)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}nt.prototype[et]=!0;function a(t){return new nt(t)}class qt{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*c(this.coll)}}function Ce(t,e){return new qt(t,e)}function j(t,...e){switch(t=l(t),e.length){case 0:return n=>(...r)=>{switch(r.length){case 0:return n();case 1:return n(r[0]);case 2:return n(r[0],t(r[1]));default:return n(r[0],t(...r.slice(1)))}};case 1:return a(function*(){for(const n of c(e[0]))yield t(n)});default:return a(function*(){const n=e.map(r=>$(c(r)));for(;;){const r=[];for(const o of n){const u=o.next();if(u.done)return;r.push(u.value)}yield t(...r)}})}}function Ve(t){return e=>(...n)=>{switch(n.length){case 0:return e();case 1:return e(n[0]);case 2:{const r=n[0],o=n[1];return _(t(o))?e(r,o):r}}}}function P(t,e){return arguments.length===1?Ve(t):(t=l(t),a(function*(){for(const n of c(e))_(t(n))&&(yield n)}))}function We(t,e){return[...P(t,e)]}function De(t,e){return P(ut(t),e)}function Je(t){return e=>{let n=-1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:return e(r[0],t((n=n+1,n),r[1]))}}}}function Ue(t,e){if(t=l(t),arguments.length===1)return Je(t);const n=[];let r=0;for(const o of c(e))n.push(t(r,o)),r++;return n}function Xe(t,e){t=l(t);const n=[];let r=0;for(const o of c(e)){const u=t(r,o);_(u)&&n.push(u),r++}return n}function Ze(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];n++;const s=t(n,i);return s==null?u:e(u,s)}}}}function He(t,e){return arguments.length===1?Ze(t):Xe(t,e)}function tn(...t){return t.join("")}function Gt(t){return!_(t)}function en(t){return t==null}const nn={};function rn(t){return t===null?"null":JSON.stringify(t,(e,n)=>{switch(p(n)){case w:case q:return[...n];case h:return Object.fromEntries(n);default:return n}})}function Bt(...t){return t.map(rn).join(" ")}function on(...t){Qt(Bt(...t))}class Lt{constructor(e){this.val=e,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=n=>{const r=this.val;if(this.val=n,this._hasWatches)for(const o of Object.entries(this._watches)){const u=o[0],i=o[1];i(u,this,r,n)}return n},this._add_watch=(n,r)=>{this._watches[n]=r,this._hasWatches=!0},this._remove_watch=n=>{delete this._watches[n]}}}function un(t){return new Lt(t)}function rt(t){return t._deref()}function $t(t,e){t._reset_BANG_(e)}function cn(t,e,...n){e=l(e);const r=e(rt(t),...n);return $t(t,r),r}function sn(t,e,n){return a(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;for(u=n||1;o===void 0||i<o;)yield i,i+=u})}function fn(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function ln(t,e){if(_t(e)){const n=t.exec(e);return n!=null?n.length===1?n[0]:[...n]:null}else throw new TypeError("re-find must match against a string.")}function an(t){if(t instanceof RegExp)return t;const e=t.match(/^\(\?([dgimsuvy]*)\)/);return e?new RegExp(t.slice(e[0].length),e[1]):new RegExp(t)}function pn(t,e,n){return t.slice(e,n)}function ot(...t){return t}function hn(t){return p(t)===y}function zt(...t){return[...j(...t)]}function R(t){return C(t)?t:[...c(t)]}function _n(t){return new Set(c(t))}const Ft=Symbol("IApply__apply");function xn(t,...e){t=l(t);const n=e.slice(0,e.length-1),r=c(e[e.length-1]),o=t[Ft];return o?o(...n,r):t(...n,...r)}function Pt(t){return t%2==0}function dn(t){return!Pt(t)}function ut(t){return t=l(t),(...e)=>Gt(t(...e))}function yn(t){return(...e)=>t}class Y extends Array{constructor(...e){super(),this.push(...e)}}function mn(t){return p(t)===M}function Yt(...t){return new Y(...t)}function C(t){return Array.isArray(t)}function it(t){return a(function*(){for(const e of t)yield*c(e)})}function Ct(...t){return it(t)}Ct[Ft]=t=>it(t);function wn(t,...e){const n=j(t,...e);return it(n)}function Vt(t){return t}function Wt(...t){return a(function*(){const e=t.map(n=>$(c(n)));for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function gn(t){return e=>{let n=!1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:if(n){const o=e(r[0],t);return A(o)?o:e(o,r[1])}else return n=!0,e(r[0],r[1])}}}}function bn(t,e){return arguments.length===1?gn(t):J(1,Wt(st(t),e))}function An(t,e){const n=p(t),r=G(n)||{};for(const o of e){const u=g(t,o);u!=null&&b(r,o,u)}return r}function ct(t){return A(t)?rt(t):t}function vn(t){return e=>{let n=[];return(...r)=>{let o,u;switch(r.length){case 0:return e();case 1:return o=r[0],n.length!==0&&(u=[...n],n=[],o=ct(e(o,u))),e(o);case 2:return o=r[0],n.push(r[1]),t===n.length?(u=[...n],n=[],e(o,u)):o}}}}function Mn(t,...e){if(arguments.length===1)return vn(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),Dt(t,n,[],r,!0)}function En(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),Dt(t,n,r,o,!1)}function Dt(t,e,n,r,o){return a(function*(){let u=[],i=0;for(const s of c(r))i<t&&(u.push(s),u.length===t&&(yield u,u=e<t?u.slice(e):[])),i++,i===e&&(i=0);u.length>0&&(u.length===t||o?yield u:n.length&&(u.push(...n.slice(0,t-u.length)),yield u))})}function Rn(t){return e=>{let n=[];const r={};let o=r;return(...u)=>{const i=u.length;let s;if(i===0)return e();if(i===1){let f=u[0];if(n.length!==0){const x=[...n];n=[],f=ct(e(f,x))}return e(f)}if(i===2){const f=u[0],x=u[1],d=o,yt=t(x);if(o=yt,d===r||yt===d)return n.push(x),f;{const de=[...n];n=[];const mt=e(f,de);return A(mt)||n.push(x),mt}}}}}function Sn(t,e){return t=l(t),arguments.length===1?Rn(t):a(function*(){const n=$(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],s=[];for(;;){const f=n.next();if(f.done){yield i;break}const x=f.value,d=t(x);u==d?i.push(x):(yield i,s.push(x),i=s,u=d,s=[])}})}function V(t){const e=p(t);if(e!=null)return G(e);throw new Error(`Can't create empty of ${typeof t}`)}function kn(...t){const e=t[0];let n;return e==null?n={}:n=Xt(V(e),e),B(n,...t.slice(1))}function Jt(t){return t[0]}function Ut(t){return t[1]}function Qn(t,...e){t=l(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const s=Jt(i),f=Ut(i);return St(u,s)?S(u,s,t(g(u,s),f)):S(u,s,f)};return Q((u,i)=>Q(r,u||{},E(i)),e)}else return null}function Kn(){return performance.now()}function Xt(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return Et(t[0]??[],...c(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=I(e),u=(i,s)=>s===void 0?i:B(i,s),dt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function In(t,e){return t===e}function st(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[et]:!0,[Nt]:t.length==1?function*(){const e=t[0];for(;;)yield e}:function*(){const[e,n]=t;for(var r=0;r<e;r++)yield n}}}function Zt(t){return A(t)?t:F(t)}function jn(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1){const u=r[0];return e(u)}if(o===2){let u=r[0];const i=r[1],s=n,f=(n=n-1,n);return s>0&&(u=e(u,i)),f>0?u:Zt(u)}}}}function W(t,e){return arguments.length===1?jn(t):a(function*(){let n=t-1;for(const r of c(e))if(n-->=0&&(yield r),n<0)return})}function Nn(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1];return _(t(u))?e(o,u):F(o)}}}function D(t,e){return t=l(t),arguments.length===1?Nn(t):a(function*(){for(const n of c(e))if(_(t(n)))yield n;else return})}function On(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];return n++,xe(n,t)===0?e(u,i):u}}}}function Tn(t,e){return arguments.length===1?On(t):t<=0?st(k(e)):a(function*(){let n=0;for(const r of c(e))n%t===0&&(yield r),n++})}function qn(t,...e){return t=l(t),function(...n){return t(...e,...n)}}function Gn(t){return a(function*(){for(;;)yield*t})}function Bn(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1],s=n;return n--,s>0?u:e(u,i)}}}}function J(t,e){return arguments.length===1?Bn(t):a(function*(){const n=L(c(e));for(let r=0;r<t;r++)n.next();yield*n})}function Ln(t){return e=>{let n=!0;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=n,i=r[0],s=r[1];return u&&_(t(s))?i:(n=null,e(i,s))}}}}function Ht(t,e){return t=l(t),arguments.length===1?Ln(t):a(function*(){const n=L(c(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!_(t(o))){yield o;break}}yield*n})}function $n(){return t=>{const e=new Set;return(...n)=>{const r=n.length;if(r===0)return t();if(r===1)return t(n[0]);if(r===2){const o=n[0],u=n[1];return e.has(u)?o:(e.add(u),t(o,u))}}}}function zn(t){return arguments.length===0?$n():a(function*(){const e=new Set;for(const n of c(t))e.has(n)||(yield n),e.add(n)})}function Fn(t,e,n,...r){return n=l(n),S(t,e,n(g(t,e),...r))}function ft(t,e,n){let r=t;for(const o of e)r=g(r,o);return r===void 0?n:r}function Pn(t,e,n,...r){return n=l(n),At(t,e,n(ft(t,e),...r))}function lt(t,e,...n){return t=l(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function te(t,e){t=l(t);for(const n of c(e))if(!t(n))return!1;return!0}function Yn(t,e){return!te(t,e)}function Cn(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1],i=t(u);return i==null?o:e(o,i)}}}function Vn(t,e){return t=l(t),arguments.length===1?Cn(t):a(function*(){for(const n of c(e)){const r=t(n);_(r)&&(yield r)}})}function Wn(t){return t=c(t),[...t].reverse()}function at(t,e){return arguments.length===1&&(e=t,t=void 0),t=l(t),e=c(e),[...e].sort(t||v)}function Dn(t){return t===v?t:(e,n)=>{const r=t(e,n);return ie(r)?r:r?-1:t(n,e)?1:0}}function Jn(t,e,n){return arguments.length===2&&(n=e,e=v),t=l(t),e=l(e),at((r,o)=>{const u=Dn(e),i=t(r),s=t(o);return u(i,s)},n)}function Un(t){const e=[...t];let n=t.length;for(;n;){const r=Math.floor(Math.random()*n--),o=e[n];e[n]=e[r],e[r]=o}return e}function ee(t,e){t=l(t);for(const n of c(e)){const r=t(n);if(_(r))return r}}function Xn(t,e){return t=l(t),!ee(t,e)}function Zn(t,e){return(Array.isArray(e)?zt:j)(r=>{const o=t[r];return o!==void 0?o:r},e)}function Hn(t){return!E(t)}function ne(t){return Math.floor(Math.random()*t)}function tr(t){const e=ne(T(t));return Kt(t,e)}function er(t){return a(function*(){for(;;)yield t()})}function nr(t,e){arguments.length===1&&(e=t,t=void 0);const n=er(e);return t?W(t,n):n}function pt(t,e,n,...r){const o=g(t,e);return b(t,e,n(o,...r))}function rr(t,e){t=l(t);const n={};for(const r of c(e)){const o=t(r);pt(n,o,lt(B,[]),r)}return n}function or(t){const e={},n=lt(kt,0);for(const r of c(t))pt(e,r,n);return e}class ur{constructor(e){this.f=e,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*c(this.res)}}function ir(t){const e=[...c(t)];return e.pop(),e.length>0?e:null}function cr(...t){const[e,n]=t.length>1?t:[1,t[0]];return j((r,o)=>r,n,J(e,n))}function sr(t,e){return[W(t,e),J(t,e)]}function fr(t,e){return[D(t,e),Ht(t,e)]}function T(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;let n=0;for(const r of c(t))n++;return n}function lr(t){return t===!0}function ar(t){return t===!1}function pr(t){return t!=null}function hr(t){return!!t}function _r(t){return t===0}function xr(t){return t<0}function dr(t){return t>0}function yr(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function mr(t){return t.length}function wr(t,e,n,...r){if(r.length==0)return t[e]=n,n;{const o=[e,n,...r],u=o[o.length-1];let i=t,s=0;const f=o.length-2;for(;s<f;s++)i=i[o[s]];return i[o[s]]=u,n}}function gr(t){for(const e of c(t));return null}function br(t){return R(t)}function Ar(t){return[...t]}function vr(t,e,n){return t._add_watch(e,n)}function Mr(t,e){return t._remove_watch(e)}function ht(t,e,n){if(!n)return e;var r=e;for(const o of c(n))r=t(r,o[0],o[1]);return r}function re(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Er(t,e,...n){return e==null?t:Math.min(t,e,...n)}function Rr(t){return t instanceof Object}function Sr(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function kr(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function oe(t,e){return R(e||t)}function Qr(t,e){var n=e;return a(function*(){for(;;)yield n,n=t(n)})}function Kr(...t){return t=t.map(l),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function Z(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return E(z(t))}function Ir(t){return Z(Z(t))}function v(t,e){if(t===e)return 0;{if(t==null)return-1;if(e==null)return 1;const n=typeof t,r=typeof e;if(n==="number"&&r==="number"||n==="string"&&r==="string")return t===e?0:t<e?-1:1;throw new Error(`comparing ${n} to ${r}`)}}function jr(t){return oe(t)}function _(t){return t!=null&&t!==!1}const Nr=_;function ue(t,e,n){return t.substring(e,n)}function Or(t){return typeof t=="function"}function Tr(t,e){return a(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:R(n);const u=n.index+re(1,r.length);if(u>e.length)break;e=ue(e,u)}else break}})}function qr(t){return Number.isNaN(t)}function ie(t){return typeof t=="number"}function ce(t){return t?Object.keys(t):null}function Gr(t){return ce(t)}function Br(t){return t?Object.values(t):null}function _t(t){return typeof t=="string"}function Lr(t){return p(t)!=null}function $r(t){return t instanceof RegExp}class xt extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function zr(t){return t instanceof xt?t._data:null}function Fr(t){return t instanceof Error?t.message:null}function Pr(t){return t instanceof xt?t._cause:null}function Yr(t,e,n){return new xt(t,e,n)}function se(t){return Number.isInteger(t)}const Cr=se,fe=Symbol("meta");function Vr(t){return t instanceof Object?t[fe]:null}function Wr(t,e){const n=I(t);return n[fe]=e,n}function Dr(t){return t===!0||t===!1}function le(t){switch(p(t)){case y:case h:case m:case M:case w:return!0}return!1}function Jr(t,e){return le(e)?T(e):T(W(t,e))}function Ur(t,e){const n=g(t,e);if(n!==void 0)return[e,n]}function Xr(t,e){return(t%e+e)%e}function Zr(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i<=r&&(r=i,o=u)}),o}function Hr(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i>=r&&(r=i,o=u)}),o}function to(t){throw new Error(`Expected string, got: ${typeof t}`)}function eo(t){if(_t(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return to(t)}function ae(t){return t>=0?Math.floor(t):Math.ceil(t)}function pe(t,e){const n=t%e;return ae((t-n)/e)}function dt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return dt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=Q(n,r,o);return n(u)}}}function no(t,e){const n={},r=c(t)[Symbol.iterator](),o=c(e)[Symbol.iterator]();let u,i;for(;u=r.next(),!(u.done||(i=o.next(),i.done));)n[u.value]=i.value;return n}function ro(t){return E(t)?t:null}function he(t,e,n){const r=function*(o){if(yield o,_(t(o)))for(const u of c(e(o)))yield*r(u)};return a(function*(){yield*r(n)})}function oo(t){return P(ut(X),z(he(X,E,t)))}function uo(t){return I(t)}function io(t){return Object.freeze(t)}class N{constructor(e){e instanceof N||(e=at(e));const r=new Set(e);this._elts=[...r],this._set=r}add(e){if(this._set.has(e))return this;const n=this._elts;let r=!1;for(let o=0;o<n.length;o++)if(v(e,n[o])<=0){n.splice(o,0,e),r=!0;break}return r?this._set=new Set(n):(n.push(e),this._set.add(e)),this.size=n.length,this}delete(e){if(!this._set.has(e))return this;const n=this._elts,r=n.indexOf(e);return n.splice(r,1),this._set=new Set(n),this.size=n.length,this}has(e){return this._set.has(e)}keys(){return this.values()}values(){return this._elts[Symbol.iterator]()}entries(){return this._set.entries()}forEach(...e){return this.set.forEach(...e)}clear(){this._elts=[],this._set=new Set(this._elts)}[Symbol.iterator](){return this.keys()}}function co(...t){return new N(t)}function H(t,e,n){return r=>e(v(r,n),0)}function _e(t,e,n=!0){let r=0;for(;r<t.length&&v(e,t[r])>0;r++);return r}function so([t,e,n]){const r=H(t,e,n);if(e===wt||e===gt){const o=[...t],u=_e(o,n,!0);return o.splice(0,u),r(o[0])||o.splice(0,1),o}else return[...D(r,t)]}function fo([t,e,n,r,o]){const u=[...t],i=_e(u,n,!0);u.splice(0,i);const s=H(t,r,o);return H(t,e,n)(u[0])||u.splice(0,1),[...D(s,u)]}function lo(...t){if(t.length===3)return so(t);if(t.length===5)return fo(t)}function ao(t){return Math.abs(t)}function po(t){return ae(t)}function ho(t){return t!=null&&t.constructor}function _o(t){return(e,n)=>{const r=t(e,n);return A(r)?F(r):r}}function xo(t){return t=_o(t),(...e)=>{switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return Q(t,e[0],e[1])}}}function xe(t,e){const n=pe(t,e);return t-e*n}function yo(t){const e=new Map;return(...n)=>{const r=[n.length,...n],o=ft(e,r);if(o===void 0){const u=t(...n);return vt(e,r,u),u}else return o}}function mo(t){return C(t)?t[t.length-1]:k(t)}function wo(t){if(C(t)){const e=[...t];return e.pop(),e}else return z(t)}function go(t,e){const n=V(t),r=bt(t)||b;return ht((o,u,i)=>r(o,e(u),i),n,t),n}function bo(t,e){const n=V(t),r=bt(t)||b;return ht((o,u,i)=>r(o,u,e(i)),n,t),n}return Ae(Ao);})(); | ||
var squint;(squint||={}).core=(()=>{var U=Object.defineProperty;var me=Object.getOwnPropertyDescriptor;var we=Object.getOwnPropertyNames;var ge=Object.prototype.hasOwnProperty;var be=(t,e)=>{for(var n in e)U(t,n,{get:e[n],enumerable:!0})},Ae=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of we(e))!ge.call(t,o)&&o!==n&&U(t,o,{get:()=>e[o],enumerable:!(r=me(e,o))||r.enumerable});return t};var ve=t=>Ae(U({},"__esModule",{value:!0}),t);var vo={};be(vo,{Atom:()=>Bt,Cons:()=>Tt,IIterable:()=>et,IIterable__iterator:()=>jt,LazySeq:()=>ir,NaN_QMARK_:()=>Gr,PROTOCOL_SENTINEL:()=>rn,_:()=>Qe,_EQ_:()=>Me,_GT_:()=>mt,_GT__EQ_:()=>wt,_LT_:()=>Ee,_LT__EQ_:()=>Re,_PLUS_:()=>Se,_STAR_:()=>ke,_iterator:()=>L,abs:()=>po,aclone:()=>vr,add_watch:()=>Mr,alength:()=>wr,apply:()=>dn,array_QMARK_:()=>C,aset:()=>gr,assoc:()=>S,assoc_BANG_:()=>b,assoc_in:()=>bt,assoc_in_BANG_:()=>At,atom:()=>cn,boolean$:()=>_r,boolean_QMARK_:()=>Jr,bounded_count:()=>Ur,butlast:()=>cr,cat:()=>yo,coll_QMARK_:()=>$r,comp:()=>Te,compare:()=>v,complement:()=>ut,concat:()=>Yt,conj:()=>Mt,conj_BANG_:()=>B,cons:()=>Ve,constantly:()=>mn,contains_QMARK_:()=>Rt,count:()=>T,counted_QMARK_:()=>ae,cycle:()=>Bn,dec:()=>Le,deref:()=>rt,disj:()=>qe,disj_BANG_:()=>Et,dissoc:()=>Be,dissoc_BANG_:()=>Ge,distinct:()=>Fn,doall:()=>Ar,dorun:()=>br,drop:()=>J,drop_last:()=>sr,drop_while:()=>te,empty:()=>V,empty_QMARK_:()=>tr,ensure_reduced:()=>Ht,es6_iterator:()=>$,even_QMARK_:()=>Ft,every_QMARK_:()=>ee,every_pred:()=>kr,ex_cause:()=>Yr,ex_data:()=>Fr,ex_info:()=>Cr,ex_message:()=>Pr,false_QMARK_:()=>pr,ffirst:()=>ze,filter:()=>P,filterv:()=>De,find:()=>Xr,first:()=>k,flatten:()=>uo,fn_QMARK_:()=>Tr,fnil:()=>lt,frequencies:()=>ur,get:()=>w,get_in:()=>ft,group_by:()=>or,identical_QMARK_:()=>jn,identity:()=>Ct,inc:()=>St,int_QMARK_:()=>fe,integer_QMARK_:()=>Vr,interleave:()=>Vt,interpose:()=>An,into:()=>Zt,into_array:()=>ue,iterable:()=>s,iterate:()=>Kr,js_keys:()=>Br,js_obj:()=>mr,juxt:()=>Ir,keep:()=>Wn,keep_indexed:()=>tn,key:()=>Ut,keys:()=>se,last:()=>Fe,lazy:()=>a,list:()=>Pt,list_QMARK_:()=>wn,long$:()=>ho,map:()=>j,map_QMARK_:()=>Sr,map_indexed:()=>Xe,mapcat:()=>gn,mapv:()=>$t,max:()=>oe,max_key:()=>to,memoize:()=>mo,merge:()=>Qn,merge_with:()=>Kn,meta:()=>Wr,min:()=>Rr,min_key:()=>Hr,mod:()=>Zr,neg_QMARK_:()=>dr,next:()=>Z,nil_QMARK_:()=>nn,nnext:()=>jr,not:()=>qt,not_any_QMARK_:()=>Zn,not_empty:()=>oo,not_every_QMARK_:()=>Cn,nth:()=>Qt,number_QMARK_:()=>ce,object_QMARK_:()=>Ne,odd_QMARK_:()=>yn,parse_long:()=>no,partial:()=>Gn,partition:()=>Dt,partition_all:()=>Wt,partition_by:()=>kn,partitionv:()=>En,partitionv_all:()=>Rn,peek:()=>wo,persistent_BANG_:()=>co,pop:()=>go,pos_QMARK_:()=>yr,pr_str:()=>Gt,println:()=>kt,prn:()=>un,quot:()=>he,rand_int:()=>re,rand_nth:()=>er,range:()=>fn,re_find:()=>an,re_matches:()=>ln,re_pattern:()=>pn,re_seq:()=>qr,reduce:()=>Q,reduce_kv:()=>ht,reduced:()=>F,reduced_QMARK_:()=>A,reductions:()=>Ye,regexp_QMARK_:()=>zr,rem:()=>de,remove:()=>Je,remove_watch:()=>Er,repeat:()=>st,repeatedly:()=>rr,replace:()=>Hn,reset_BANG_:()=>Lt,rest:()=>z,reverse:()=>Dn,satisfies_QMARK_:()=>Ke,second:()=>$e,select_keys:()=>vn,seq:()=>E,seq_QMARK_:()=>Kt,seqable_QMARK_:()=>It,sequential_QMARK_:()=>X,set:()=>xn,shuffle:()=>Xn,some:()=>ne,some_QMARK_:()=>hr,some_fn:()=>Qr,sort:()=>at,sort_by:()=>Un,sorted_set:()=>so,split_at:()=>fr,split_with:()=>lr,str:()=>en,string_QMARK_:()=>_t,subs:()=>ie,subseq:()=>ao,subvec:()=>hn,swap_BANG_:()=>sn,system_time:()=>In,t:()=>Or,take:()=>W,take_nth:()=>qn,take_while:()=>D,to_array:()=>Nr,transduce:()=>dt,transient$:()=>io,tree_seq:()=>_e,true_QMARK_:()=>ar,truth_:()=>_,type:()=>_o,unreduced:()=>ct,update:()=>Pn,update_BANG_:()=>pt,update_in:()=>Yn,update_keys:()=>bo,update_vals:()=>Ao,val:()=>Xt,vals:()=>Lr,vec:()=>R,vector:()=>ot,vector_QMARK_:()=>_n,warn_on_lazy_reusage_BANG_:()=>Ce,with_meta:()=>Dr,zero_QMARK_:()=>xr,zipmap:()=>ro});function f(t){if(t==null||t instanceof Function)return t;const e=typeof t;return e==="string"?(n,r)=>w(n,t,r):e==="object"?(n,r)=>w(t,n,r):t}function K(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function Me(...t){return K(t,(e,n)=>e===n)}function mt(...t){return K(t,(e,n)=>e>n)}function wt(...t){return K(t,(e,n)=>e>=n)}function Ee(...t){return K(t,(e,n)=>e<n)}function Re(...t){return K(t,(e,n)=>e<=n)}function Se(...t){return t.reduce((e,n)=>e+n,0)}function ke(...t){return t.reduce((e,n)=>e*n,1)}function Qe(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}function Ke(t,e){return e[t]}function Ie(t,e,n){return t.set(e,n),t}function je(t,e,n){return t[e]=n,t}function gt(t){switch(p(t)){case h:return Ie;case d:case y:return je}}function b(t,e,n,...r){if(r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(p(t)){case h:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case d:case y:t[e]=n;for(let o=0;o<r.length;o+=2)t[r[o]]=r[o+1];break;default:throw new Error(`Illegal argument: assoc! expects a Map, Array, or Object as the first argument, but got ${typeof t}.`)}return t}function I(t){switch(p(t)){case h:return new Map(t);case m:return new t.constructor(t);case d:return[...t];case y:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function S(t,e,n,...r){t||(t={});const o=I(t);return b(o,e,n,...r),o}const h=1,d=2,y=3,M=4,m=5,q=6;function G(t){switch(t){case h:return new Map;case d:return[];case y:return{};case M:return new Y;case m:return new Set;case q:return a(function*(){})}}function tt(t){return t.constructor===Object}function Ne(t){return t!=null&&tt(t)}function p(t){if(t!=null){if(tt(t))return y;if(t instanceof Map)return h;if(t instanceof Set)return m;if(t instanceof Y)return M;if(Array.isArray(t))return d;if(t instanceof nt)return q;if(t instanceof N)return m;if(t instanceof Object)return y}}function Oe(t,e,n,r,o){r=R(r);const u=p(n);if(u!==h&&u!==d&&u!==y)throw new Error(`Illegal argument: ${e} expects the first argument to be a Map, Array, or Object.`);const i=[n];let c=n;for(let l=0;l<r.length-1;l+=1){const g=r[l];let x;c instanceof Map?x=c.get(g):x=c[g],x||(x=G(u)),i.push(x),c=x}i.push(o);for(let l=i.length-2;l>=0;l-=1)i[l]=t(i[l],r[l],i[l+1]);return i[0]}function bt(t,e,n){return Oe(S,"assoc-in",t,e,n)}function At(t,e,n){e=R(e);var r=t;const o=p(t);for(const u of e.splice(0,e.length-1)){let i=w(r,u);i===void 0&&(i=G(o),b(r,u,i)),r=i}return b(r,e[e.length-1],n),t}function Te(...t){if(t=t.map(f),t.length===0)return Ct;if(t.length===1)return t[0];const[e,...n]=t.slice().reverse();return function(...r){let o=e(...r);for(const u of n)o=u(o);return o}}function vt(t,e){for(const n of e)t.add(n);return t}function B(...t){if(t.length===0)return ot();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case m:vt(r,n);break;case M:r.unshift(...n.reverse());break;case d:r.push(...n);break;case h:for(const o of n)Array.isArray(o)?r.set(o[0],o[1]):s(o).forEach(u=>{r.set(u[0],u[1])});break;case y:for(const o of n)Array.isArray(o)?r[o[0]]=o[1]:Object.assign(r,o);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return r}function Mt(...t){if(t.length===0)return ot();const[e,...n]=t;let r=e;r==null&&(r=Pt());let o,u;switch(p(r)){case m:return r instanceof N?vt(new r.constructor(r),n):new r.constructor([...r,...n]);case M:return new Y(...n.reverse(),...r);case d:return[...r,...n];case h:o=new Map(r);for(const i of n)Array.isArray(i)?o.set(i[0],i[1]):s(i).forEach(c=>{o.set(c[0],c[1])});return o;case q:return a(function*(){yield*n,yield*r});case y:u={...r};for(const i of n)Array.isArray(i)?u[i[0]]=i[1]:Object.assign(u,i);return u;default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function Et(t,...e){for(const n of e)t.delete(n);return t}function qe(t,...e){const n=new t.constructor([...t]);return Et(n,...e)}function Rt(t,e){switch(p(t)){case m:case h:return t.has(e);case void 0:return!1;default:return e in t}}function Ge(t,...e){for(const n of e)delete t[n];return t}function Be(t,...e){if(e.length===0)return t;const n=I(t);switch(p(t)){case h:for(const r of e)n.delete(r);break;default:for(const r of e)delete n[r];break}return n}function St(t){return t+1}function Le(t){return t-1}function kt(...t){console.log(...t)}function Qt(t,e,n){if(t){var r=void 0;if(Array.isArray(t))r=t[e];else{const o=s(t);let u=0;for(const i of o)if(u++==e){r=i;break}}if(r!==void 0)return r}return n}function w(t,e,n=void 0){if(t==null)return n;let r;if(tt(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case m:t.has(e)&&(r=e);break;case h:r=t.get(e);break;case d:r=t[e];break;default:if(o=t.get,o instanceof Function)try{r=t.get(e);break}catch{}r=t[e];break}return r!==void 0?r:n}function Kt(t){return t!=null&&!!t[Symbol.iterator]}const X=Kt;function It(t){return t==null||!!t[Symbol.iterator]}function s(t){if(t==null)return[];if(It(t))return t;if(t instanceof Object)return Object.entries(t);throw new TypeError(`${t} is not iterable`)}const et=Symbol("Iterable"),jt=Symbol.iterator;function L(t){return t[Symbol.iterator]()}const $=L;function E(t){if(t==null)return t;const e=s(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function k(t){const[e]=s(t);return e}function $e(t){const[e,n]=s(t);return n}function ze(t){return k(k(t))}function z(t){return a(function*(){let e=!0;for(const n of s(t))e?e=!1:yield n})}class O{value;constructor(e){this.value=e}_deref(){return this.value}}function Fe(t){t=s(t);let e;switch(p(t)){case d:return t[t.length-1];default:for(const n of t)e=n;return e}}function F(t){return new O(t)}function A(t){return t instanceof O}function Q(t,e,n){t=f(t);let r,o;if(arguments.length===2){const u=s(e)[Symbol.iterator](),i=u.next();i.done?o=t():o=i.value,r=u}else o=e,r=s(n);if(o instanceof O)return o.value;for(const u of r)if(o=t(o,u),o instanceof O){o=o.value;break}return o}function*Pe(t,e){const n=e.next();n.done?yield t():yield*Nt(t,n.value,e)}function*Nt(t,e,n){let r=e,o=n;for(;;){if(A(r)){yield r.value;return}else yield r;const u=o.next();if(u.done)break;r=t(r,u.value)}}function Ye(t,e,n){return t=f(t),arguments.length===2?a(function*(){yield*Pe(t,s(e)[Symbol.iterator]())}):a(function*(){yield*Nt(t,e,s(n)[Symbol.iterator]())})}var Ot=!1;function Ce(){Ot=!0}class nt{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&Ot)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}nt.prototype[et]=!0;function a(t){return new nt(t)}class Tt{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*s(this.coll)}}function Ve(t,e){return new Tt(t,e)}function j(t,...e){switch(t=f(t),e.length){case 0:return n=>(...r)=>{switch(r.length){case 0:return n();case 1:return n(r[0]);case 2:return n(r[0],t(r[1]));default:return n(r[0],t(...r.slice(1)))}};case 1:return a(function*(){for(const n of s(e[0]))yield t(n)});default:return a(function*(){const n=e.map(r=>$(s(r)));for(;;){const r=[];for(const o of n){const u=o.next();if(u.done)return;r.push(u.value)}yield t(...r)}})}}function We(t){return e=>(...n)=>{switch(n.length){case 0:return e();case 1:return e(n[0]);case 2:{const r=n[0],o=n[1];return _(t(o))?e(r,o):r}}}}function P(t,e){return arguments.length===1?We(t):(t=f(t),a(function*(){for(const n of s(e))_(t(n))&&(yield n)}))}function De(t,e){return[...P(t,e)]}function Je(t,e){return P(ut(t),e)}function Ue(t){return e=>{let n=-1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:return e(r[0],t((n=n+1,n),r[1]))}}}}function Xe(t,e){if(t=f(t),arguments.length===1)return Ue(t);const n=[];let r=0;for(const o of s(e))n.push(t(r,o)),r++;return n}function Ze(t,e){t=f(t);const n=[];let r=0;for(const o of s(e)){const u=t(r,o);_(u)&&n.push(u),r++}return n}function He(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];n++;const c=t(n,i);return c==null?u:e(u,c)}}}}function tn(t,e){return arguments.length===1?He(t):Ze(t,e)}function en(...t){return t.join("")}function qt(t){return!_(t)}function nn(t){return t==null}const rn={};function on(t){return t===null?"null":JSON.stringify(t,(e,n)=>{switch(p(n)){case m:case q:return[...n];case h:return Object.fromEntries(n);default:return n}})}function Gt(...t){return t.map(on).join(" ")}function un(...t){kt(Gt(...t))}class Bt{constructor(e){this.val=e,this._watches={},this._deref=()=>this.val,this._hasWatches=!1,this._reset_BANG_=n=>{const r=this.val;if(this.val=n,this._hasWatches)for(const o of Object.entries(this._watches)){const u=o[0],i=o[1];i(u,this,r,n)}return n},this._add_watch=(n,r)=>{this._watches[n]=r,this._hasWatches=!0},this._remove_watch=n=>{delete this._watches[n]}}}function cn(t){return new Bt(t)}function rt(t){return t._deref()}function Lt(t,e){t._reset_BANG_(e)}function sn(t,e,...n){e=f(e);const r=e(rt(t),...n);return Lt(t,r),r}function fn(t,e,n){return a(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;for(u=n||1;o===void 0||i<o;)yield i,i+=u})}function ln(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function an(t,e){if(_t(e)){const n=t.exec(e);return n!=null?n.length===1?n[0]:[...n]:null}else throw new TypeError("re-find must match against a string.")}function pn(t){if(t instanceof RegExp)return t;const e=t.match(/^\(\?([dgimsuvy]*)\)/);return e?new RegExp(t.slice(e[0].length),e[1]):new RegExp(t)}function hn(t,e,n){return t.slice(e,n)}function ot(...t){return t}function _n(t){return p(t)===d}function $t(...t){return[...j(...t)]}function R(t){return C(t)?t:[...s(t)]}function xn(t){return new Set(s(t))}const zt=Symbol("IApply__apply");function dn(t,...e){t=f(t);const n=e.slice(0,e.length-1),r=s(e[e.length-1]),o=t[zt];return o?o(...n,r):t(...n,...r)}function Ft(t){return t%2==0}function yn(t){return!Ft(t)}function ut(t){return t=f(t),(...e)=>qt(t(...e))}function mn(t){return(...e)=>t}class Y extends Array{constructor(...e){super(),this.push(...e)}}function wn(t){return p(t)===M}function Pt(...t){return new Y(...t)}function C(t){return Array.isArray(t)}function it(t){return a(function*(){for(const e of t)yield*s(e)})}function Yt(...t){return it(t)}Yt[zt]=t=>it(t);function gn(t,...e){const n=j(t,...e);return it(n)}function Ct(t){return t}function Vt(...t){return a(function*(){const e=t.map(n=>$(s(n)));for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function bn(t){return e=>{let n=!1;return(...r)=>{switch(r.length){case 0:return e();case 1:return e(r[0]);case 2:if(n){const o=e(r[0],t);return A(o)?o:e(o,r[1])}else return n=!0,e(r[0],r[1])}}}}function An(t,e){return arguments.length===1?bn(t):J(1,Vt(st(t),e))}function vn(t,e){const n=p(t),r=G(n)||{};for(const o of e){const u=w(t,o);u!=null&&b(r,o,u)}return r}function ct(t){return A(t)?rt(t):t}function Mn(t){return e=>{let n=[];return(...r)=>{let o,u;switch(r.length){case 0:return e();case 1:return o=r[0],n.length!==0&&(u=[...n],n=[],o=ct(e(o,u))),e(o);case 2:return o=r[0],n.push(r[1]),t===n.length?(u=[...n],n=[],e(o,u)):o}}}}function Wt(t,...e){if(arguments.length===1)return Mn(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),Jt(t,n,[],r,!0)}function Dt(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),Jt(t,n,r,o,!1)}const En=Dt,Rn=Wt;function Jt(t,e,n,r,o){return a(function*(){let u=[],i=0;for(const c of s(r))i<t&&(u.push(c),u.length===t&&(yield u,u=e<t?u.slice(e):[])),i++,i===e&&(i=0);u.length>0&&(u.length===t||o?yield u:n.length&&(u.push(...n.slice(0,t-u.length)),yield u))})}function Sn(t){return e=>{let n=[];const r={};let o=r;return(...u)=>{const i=u.length;if(i===0)return e();if(i===1){let c=u[0];if(n.length!==0){const l=[...n];n=[],c=ct(e(c,l))}return e(c)}if(i===2){const c=u[0],l=u[1],g=o,x=t(l);if(o=x,g===r||x===g)return n.push(l),c;{const ye=[...n];n=[];const yt=e(c,ye);return A(yt)||n.push(l),yt}}}}}function kn(t,e){return t=f(t),arguments.length===1?Sn(t):a(function*(){const n=$(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],c=[];for(;;){const l=n.next();if(l.done){yield i;break}const g=l.value,x=t(g);u==x?i.push(g):(yield i,c.push(g),i=c,u=x,c=[])}})}function V(t){const e=p(t);if(e!=null)return G(e);throw new Error(`Can't create empty of ${typeof t}`)}function Qn(...t){const e=t[0];let n;return e==null?n={}:n=Zt(V(e),e),B(n,...t.slice(1))}function Ut(t){return t[0]}function Xt(t){return t[1]}function Kn(t,...e){t=f(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const c=Ut(i),l=Xt(i);return Rt(u,c)?S(u,c,t(w(u,c),l)):S(u,c,l)};return Q((u,i)=>Q(r,u||{},E(i)),e)}else return null}function In(){return performance.now()}function Zt(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return Mt(t[0]??[],...s(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=I(e),u=(i,c)=>c===void 0?i:B(i,c),dt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function jn(t,e){return t===e}function st(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[et]:!0,[jt]:t.length==1?function*(){const e=t[0];for(;;)yield e}:function*(){const[e,n]=t;for(var r=0;r<e;r++)yield n}}}function Ht(t){return A(t)?t:F(t)}function Nn(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1){const u=r[0];return e(u)}if(o===2){let u=r[0];const i=r[1],c=n,l=(n=n-1,n);return c>0&&(u=e(u,i)),l>0?u:Ht(u)}}}}function W(t,e){return arguments.length===1?Nn(t):a(function*(){let n=t-1;for(const r of s(e))if(n-->=0&&(yield r),n<0)return})}function On(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1];return _(t(u))?e(o,u):F(o)}}}function D(t,e){return t=f(t),arguments.length===1?On(t):a(function*(){for(const n of s(e))if(_(t(n)))yield n;else return})}function Tn(t){return e=>{let n=-1;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1];return n++,de(n,t)===0?e(u,i):u}}}}function qn(t,e){return arguments.length===1?Tn(t):t<=0?st(k(e)):a(function*(){let n=0;for(const r of s(e))n%t===0&&(yield r),n++})}function Gn(t,...e){return t=f(t),function(...n){return t(...e,...n)}}function Bn(t){return a(function*(){for(;;)yield*t})}function Ln(t){return e=>{let n=t;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=r[0],i=r[1],c=n;return n--,c>0?u:e(u,i)}}}}function J(t,e){return arguments.length===1?Ln(t):a(function*(){const n=L(s(e));for(let r=0;r<t;r++)n.next();yield*n})}function $n(t){return e=>{let n=!0;return(...r)=>{const o=r.length;if(o===0)return e();if(o===1)return e(r[0]);if(o===2){const u=n,i=r[0],c=r[1];return u&&_(t(c))?i:(n=null,e(i,c))}}}}function te(t,e){return t=f(t),arguments.length===1?$n(t):a(function*(){const n=L(s(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!_(t(o))){yield o;break}}yield*n})}function zn(){return t=>{const e=new Set;return(...n)=>{const r=n.length;if(r===0)return t();if(r===1)return t(n[0]);if(r===2){const o=n[0],u=n[1];return e.has(u)?o:(e.add(u),t(o,u))}}}}function Fn(t){return arguments.length===0?zn():a(function*(){const e=new Set;for(const n of s(t))e.has(n)||(yield n),e.add(n)})}function Pn(t,e,n,...r){return n=f(n),S(t,e,n(w(t,e),...r))}function ft(t,e,n){let r=t;for(const o of e)r=w(r,o);return r===void 0?n:r}function Yn(t,e,n,...r){return n=f(n),bt(t,e,n(ft(t,e),...r))}function lt(t,e,...n){return t=f(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function ee(t,e){t=f(t);for(const n of s(e))if(!t(n))return!1;return!0}function Cn(t,e){return!ee(t,e)}function Vn(t){return e=>(...n)=>{const r=n.length;if(r===0)return e();if(r===1)return e(n[0]);if(r===2){const o=n[0],u=n[1],i=t(u);return i==null?o:e(o,i)}}}function Wn(t,e){return t=f(t),arguments.length===1?Vn(t):a(function*(){for(const n of s(e)){const r=t(n);_(r)&&(yield r)}})}function Dn(t){return t=s(t),[...t].reverse()}function at(t,e){return arguments.length===1&&(e=t,t=void 0),t=f(t),e=s(e),[...e].sort(t||v)}function Jn(t){return t===v?t:(e,n)=>{const r=t(e,n);return ce(r)?r:r?-1:t(n,e)?1:0}}function Un(t,e,n){return arguments.length===2&&(n=e,e=v),t=f(t),e=f(e),at((r,o)=>{const u=Jn(e),i=t(r),c=t(o);return u(i,c)},n)}function Xn(t){const e=[...t];let n=t.length;for(;n;){const r=Math.floor(Math.random()*n--),o=e[n];e[n]=e[r],e[r]=o}return e}function ne(t,e){t=f(t);for(const n of s(e)){const r=t(n);if(_(r))return r}}function Zn(t,e){return t=f(t),!ne(t,e)}function Hn(t,e){return(Array.isArray(e)?$t:j)(r=>{const o=t[r];return o!==void 0?o:r},e)}function tr(t){return!E(t)}function re(t){return Math.floor(Math.random()*t)}function er(t){const e=re(T(t));return Qt(t,e)}function nr(t){return a(function*(){for(;;)yield t()})}function rr(t,e){arguments.length===1&&(e=t,t=void 0);const n=nr(e);return t?W(t,n):n}function pt(t,e,n,...r){const o=w(t,e);return b(t,e,n(o,...r))}function or(t,e){t=f(t);const n={};for(const r of s(e)){const o=t(r);pt(n,o,lt(B,[]),r)}return n}function ur(t){const e={},n=lt(St,0);for(const r of s(t))pt(e,r,n);return e}class ir{constructor(e){this.f=e,this.res=void 0}*[Symbol.iterator](){this.res===void 0&&(this.res=this.f(),this.f=null),yield*s(this.res)}}function cr(t){const e=[...s(t)];return e.pop(),e.length>0?e:null}function sr(...t){const[e,n]=t.length>1?t:[1,t[0]];return j((r,o)=>r,n,J(e,n))}function fr(t,e){return[W(t,e),J(t,e)]}function lr(t,e){return[D(t,e),te(t,e)]}function T(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;let n=0;for(const r of s(t))n++;return n}function ar(t){return t===!0}function pr(t){return t===!1}function hr(t){return t!=null}function _r(t){return!!t}function xr(t){return t===0}function dr(t){return t<0}function yr(t){return t>0}function mr(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function wr(t){return t.length}function gr(t,e,n,...r){if(r.length==0)return t[e]=n,n;{const o=[e,n,...r],u=o[o.length-1];let i=t,c=0;const l=o.length-2;for(;c<l;c++)i=i[o[c]];return i[o[c]]=u,n}}function br(t){for(const e of s(t));return null}function Ar(t){return R(t)}function vr(t){return[...t]}function Mr(t,e,n){return t._add_watch(e,n)}function Er(t,e){return t._remove_watch(e)}function ht(t,e,n){if(!n)return e;var r=e;for(const o of s(n))r=t(r,o[0],o[1]);return r}function oe(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Rr(t,e,...n){return e==null?t:Math.min(t,e,...n)}function Sr(t){return t instanceof Object}function kr(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Qr(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function ue(t,e){return R(e||t)}function Kr(t,e){var n=e;return a(function*(){for(;;)yield n,n=t(n)})}function Ir(...t){return t=t.map(f),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function Z(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return E(z(t))}function jr(t){return Z(Z(t))}function v(t,e){if(t===e)return 0;{if(t==null)return-1;if(e==null)return 1;const n=typeof t,r=typeof e;if(n==="number"&&r==="number"||n==="string"&&r==="string")return t===e?0:t<e?-1:1;throw new Error(`comparing ${n} to ${r}`)}}function Nr(t){return ue(t)}function _(t){return t!=null&&t!==!1}const Or=_;function ie(t,e,n){return t.substring(e,n)}function Tr(t){return typeof t=="function"}function qr(t,e){return a(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:R(n);const u=n.index+oe(1,r.length);if(u>e.length)break;e=ie(e,u)}else break}})}function Gr(t){return Number.isNaN(t)}function ce(t){return typeof t=="number"}function se(t){return t?Object.keys(t):null}function Br(t){return se(t)}function Lr(t){return t?Object.values(t):null}function _t(t){return typeof t=="string"}function $r(t){return p(t)!=null}function zr(t){return t instanceof RegExp}class xt extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function Fr(t){return t instanceof xt?t._data:null}function Pr(t){return t instanceof Error?t.message:null}function Yr(t){return t instanceof xt?t._cause:null}function Cr(t,e,n){return new xt(t,e,n)}function fe(t){return Number.isInteger(t)}const Vr=fe,le=Symbol("meta");function Wr(t){return t instanceof Object?t[le]:null}function Dr(t,e){const n=I(t);return n[le]=e,n}function Jr(t){return t===!0||t===!1}function ae(t){switch(p(t)){case d:case h:case y:case M:case m:return!0}return!1}function Ur(t,e){return ae(e)?T(e):T(W(t,e))}function Xr(t,e){const n=w(t,e);if(n!==void 0)return[e,n]}function Zr(t,e){return(t%e+e)%e}function Hr(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i<=r&&(r=i,o=u)}),o}function to(t,e,...n){if(n.length==0)return e;var r=t(e),o=e;return n.forEach(u=>{var i=t(u);i>=r&&(r=i,o=u)}),o}function eo(t){throw new Error(`Expected string, got: ${typeof t}`)}function no(t){if(_t(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return eo(t)}function pe(t){return t>=0?Math.floor(t):Math.ceil(t)}function he(t,e){const n=t%e;return pe((t-n)/e)}function dt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return dt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=Q(n,r,o);return n(u)}}}function ro(t,e){const n={},r=s(t)[Symbol.iterator](),o=s(e)[Symbol.iterator]();let u,i;for(;u=r.next(),!(u.done||(i=o.next(),i.done));)n[u.value]=i.value;return n}function oo(t){return E(t)?t:null}function _e(t,e,n){const r=function*(o){if(yield o,_(t(o)))for(const u of s(e(o)))yield*r(u)};return a(function*(){yield*r(n)})}function uo(t){return P(ut(X),z(_e(X,E,t)))}function io(t){return I(t)}function co(t){return Object.freeze(t)}class N{constructor(e){e instanceof N||(e=at(e));const r=new Set(e);this._elts=[...r],this._set=r}add(e){if(this._set.has(e))return this;const n=this._elts;let r=!1;for(let o=0;o<n.length;o++)if(v(e,n[o])<=0){n.splice(o,0,e),r=!0;break}return r?this._set=new Set(n):(n.push(e),this._set.add(e)),this.size=n.length,this}delete(e){if(!this._set.has(e))return this;const n=this._elts,r=n.indexOf(e);return n.splice(r,1),this._set=new Set(n),this.size=n.length,this}has(e){return this._set.has(e)}keys(){return this.values()}values(){return this._elts[Symbol.iterator]()}entries(){return this._set.entries()}forEach(...e){return this.set.forEach(...e)}clear(){this._elts=[],this._set=new Set(this._elts)}[Symbol.iterator](){return this.keys()}}function so(...t){return new N(t)}function H(t,e,n){return r=>e(v(r,n),0)}function xe(t,e,n=!0){let r=0;for(;r<t.length&&v(e,t[r])>0;r++);return r}function fo([t,e,n]){const r=H(t,e,n);if(e===mt||e===wt){const o=[...t],u=xe(o,n,!0);return o.splice(0,u),r(o[0])||o.splice(0,1),o}else return[...D(r,t)]}function lo([t,e,n,r,o]){const u=[...t],i=xe(u,n,!0);u.splice(0,i);const c=H(t,r,o);return H(t,e,n)(u[0])||u.splice(0,1),[...D(c,u)]}function ao(...t){if(t.length===3)return fo(t);if(t.length===5)return lo(t)}function po(t){return Math.abs(t)}function ho(t){return pe(t)}function _o(t){return t!=null&&t.constructor}function xo(t){return(e,n)=>{const r=t(e,n);return A(r)?F(r):r}}function yo(t){return t=xo(t),(...e)=>{switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return Q(t,e[0],e[1])}}}function de(t,e){const n=he(t,e);return t-e*n}function mo(t){const e=new Map;return(...n)=>{const r=[n.length,...n],o=ft(e,r);if(o===void 0){const u=t(...n);return At(e,r,u),u}else return o}}function wo(t){return C(t)?t[t.length-1]:k(t)}function go(t){if(C(t)){const e=[...t];return e.pop(),e}else return z(t)}function bo(t,e){const n=V(t),r=gt(t)||b;return ht((o,u,i)=>r(o,e(u),i),n,t),n}function Ao(t,e){const n=V(t),r=gt(t)||b;return ht((o,u,i)=>r(o,u,e(i)),n,t),n}return ve(vo);})(); |
@@ -5,3 +5,3 @@ { | ||
"sideEffects": false, | ||
"version": "0.8.116", | ||
"version": "0.8.117", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "core.js", |
@@ -87,2 +87,3 @@ <img src="./logo/logo.svg" width="100%"> | ||
- `pr-str` and `prn` coerce values to a string using `JSON.stringify` (currently, this may change) | ||
- Since JavaScript only supports strings for keys in maps, any data structures used as keys will be stringified | ||
@@ -452,2 +453,3 @@ If you are looking for closer ClojureScript semantics, take a look at [Cherry 🍒](https://github.com/squint-cljs/cherry). | ||
- [defmulti](https://squint-cljs.github.io/squint/?src=KHJlcXVpcmUgJ1siaHR0cHM6Ly9lc20uc2gvQHRoaS5uZy9kZWZtdWx0aSIgOnJlZmVyIFtkZWZtdWx0aV1dKQoKKGRlZiBmb28gKGRlZm11bHRpIChmbiBbeF0geCkpKQoKKC5pc2EgZm9vIDIzICJvZGQiKQoKKC5hZGQgZm9vICJvZGQiIChmbiBbeF0gKHN0ciB4ICIgaXMgYW4gb2RkIG51bWJlciIpKSkKCihmb28gMjMp): multimethods in squint as a library | ||
- [Game of life](https://squint-cljs.github.io/squint/?src=KG5zIGluZGV4KQoKKGRlZm4gY2VsbCBbZ3JpZC14IGdyaWQteSBzaXplXQogIHs6c2l6ZSBzaXplCiAgIDp4IGdyaWQteAogICA6eSBncmlkLXkKICAgOmFsaXZlPyAoPiAoanMvTWF0aC5yYW5kb20pIDAuNSl9KQoKKGRlZm4gZHJhdy1jZWxsIFtjdHggW18gezprZXlzIFthbGl2ZT8geCB5IHNpemVdfV1dCiAgKC5iZWdpblBhdGggY3R4KQogICguYXJjIGN0eCAoKiB4IHNpemUpICgqIHkgc2l6ZSkgKC8gc2l6ZSAyKSAwICgqIDIganMvTWF0aC5QSSkpCiAgKHNldCEgKC4tZmlsbFN0eWxlIGN0eCkgKGlmIGFsaXZlPyAiIzExNzg1NSIgIiMzMDMwMzAiKSkKICAoLmZpbGwgY3R4KQogICguc3Ryb2tlIGN0eCkKICAoLmNsb3NlUGF0aCBjdHgpKQoKKGRlZm4gY3JlYXRlLWdyaWQgW3Jvd3MgY29sdW1ucyBjZWxsLXNpemVdCiAgKGludG8ge30KICAgICAgICAoZm9yIFt4IChyYW5nZSByb3dzKQogICAgICAgICAgICAgIHkgKHJhbmdlIGNvbHVtbnMpXQogICAgICAgICAgW1t4IHldIChjZWxsIHggeSBjZWxsLXNpemUpXSkpKQoKKGRlZm4gY2xlYXItc2NyZWVuIFtjdHggY2FudmFzXQogIChzZXQhICguLWZpbGxTdHlsZSBjdHgpICIjMzAzMDMwIikKICAoLmZpbGxSZWN0IGN0eCAwIDAgKC4td2lkdGggY2FudmFzKSAoLi1oZWlnaHQgY2FudmFzKSkpCgooZGVmbiByZW5kZXIgW3s6a2V5cyBbY3R4IGdyaWQgY2FudmFzXX1dCiAgKGNsZWFyLXNjcmVlbiBjdHggY2FudmFzKQogIChkb3NlcSBbY2VsbCBncmlkXQogICAgKGRyYXctY2VsbCBjdHggY2VsbCkpKQoKKGRlZm4gZ2V0LWNlbGwgW2dyaWQgeCB5IG1heC14IG1heC15XQogIChsZXQgW3ggKGNvbmQgKDwgeCAwKSBtYXgteCAoPiB4IG1heC14KSAwIDplbHNlIHgpCiAgICAgICAgeSAoY29uZCAoPCB5IDApIG1heC15ICg%2BIHkgbWF4LXkpIDAgOmVsc2UgeSldCiAgICAoZ2V0IGdyaWQgW3ggeV0pKSkKCihkZWZuIGNvbXB1dGUtZ3JpZCBbezprZXlzIFtncmlkIG1heC14IG1heC15XX1dCiAgKGRvc2VxIFtbXyB7OmtleXMgW3ggeSBhbGl2ZT9dIDphcyBjZWxsfV0gZ3JpZF0KICAgIChsZXQgW2xpdmUtbmVpZ2hib3VyLWNvdW50ICgtPj4gWyhnZXQtY2VsbCBncmlkIChkZWMgeCkgKGRlYyB5KSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIChpbmMgeCkgKGluYyB5KSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIChpbmMgeCkgKGRlYyB5KSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIChkZWMgeCkgKGluYyB5KSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIHggKGluYyB5KSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIHggKGRlYyB5KSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIChkZWMgeCkgeSBtYXgteCBtYXgteSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChnZXQtY2VsbCBncmlkIChpbmMgeCkgeSBtYXgteCBtYXgteSldCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIChtYXAgIyhnZXQgJSA6YWxpdmU%2FKSkKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGZpbHRlciB0cnVlPykKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgKGRvYWxsKQogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAoY291bnQpKV0KICAgICAgKGFzc29jISBjZWxsIDphbGl2ZT8KICAgICAgICAgICAgICAoaWYgYWxpdmU%2FCiAgICAgICAgICAgICAgICAoY29uZHAgPSBsaXZlLW5laWdoYm91ci1jb3VudAogICAgICAgICAgICAgICAgICAwIGZhbHNlCiAgICAgICAgICAgICAgICAgIDEgZmFsc2UKICAgICAgICAgICAgICAgICAgMiB0cnVlCiAgICAgICAgICAgICAgICAgIDMgdHJ1ZQogICAgICAgICAgICAgICAgICA0IGZhbHNlCiAgICAgICAgICAgICAgICAgIGZhbHNlKQogICAgICAgICAgICAgICAgKD0gMyBsaXZlLW5laWdoYm91ci1jb3VudCkpKSkpKQoKKGRlZm4gZ2FtZS1sb29wIFtzdGF0ZV0KICAocmVuZGVyIHN0YXRlKQogIChjb21wdXRlLWdyaWQgc3RhdGUpCiAgKGpzL3NldFRpbWVvdXQgIyhqcy93aW5kb3cucmVxdWVzdEFuaW1hdGlvbkZyYW1lIChmbiBbXSAoZ2FtZS1sb29wIHN0YXRlKSkpIDYwKSkKCihkZWZuIGdhbWUgW2NhbnZhcy1pZF0KICAobGV0IFtjYW52YXMgKGpzL2RvY3VtZW50LmdldEVsZW1lbnRCeUlkIGNhbnZhcy1pZCkKICAgICAgICBjdHggKC5nZXRDb250ZXh0IGNhbnZhcyAiMmQiKQogICAgICAgIG1heC15IDUwCiAgICAgICAgbWF4LXggKCogbWF4LXkgKC8gKC4td2lkdGggY2FudmFzKSAoLi1oZWlnaHQgY2FudmFzKSkpIAogICAgICAgIGluaXRpYWwtZ3JpZCAoY3JlYXRlLWdyaWQgbWF4LXggbWF4LXkgMTApXQogICAgKGdhbWUtbG9vcCB7OmNhbnZhcyBjYW52YXMKICAgICAgICAgICAgICAgIDpjdHggY3R4CiAgICAgICAgICAgICAgICA6bWF4LXggKGRlYyBtYXgteCkKICAgICAgICAgICAgICAgIDptYXgteSAoZGVjIG1heC15KQogICAgICAgICAgICAgICAgOmdyaWQgaW5pdGlhbC1ncmlkfSkpKQoKKGRlZm9uY2UgbWFrZS1jYW52YXMKICAoZG8gKGpzL2RvY3VtZW50LmJvZHkucHJlcGVuZAogICAgICAgIChkb3RvIChqcy9kb2N1bWVudC5jcmVhdGVFbGVtZW50ICJjYW52YXMiKQogICAgICAgICAgKHNldCEgLWlkICJjYW52YXMiKQogICAgICAgICAgKHNldCEgLWhlaWdodCAoKiBqcy93aW5kb3cuaW5uZXJIZWlnaHQgMC4yNSkpCiAgICAgICAgICAoc2V0ISAtd2lkdGggKCoganMvd2luZG93LmlubmVyV2lkdGggMC4yNSkpKSkKICAgIHRydWUpKQoKKGdhbWUgImNhbnZhcyIp) | ||
@@ -454,0 +456,0 @@ ## T-shirt |
@@ -1261,2 +1261,5 @@ /*eslint no-unused-vars: ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_"}]*/ | ||
export const partitionv = partition; // partition already returns a lazy of arrays | ||
export const partitionv_all = partition_all; | ||
function partitionInternal(n, step, pad, coll, all) { | ||
@@ -1298,3 +1301,2 @@ return lazy(function* () { | ||
const l = args.length; | ||
let v; | ||
if (l === 0) { | ||
@@ -2630,3 +2632,3 @@ return rf(); | ||
return (a1, a2) => { | ||
const ret = rf(a1, a2) | ||
const ret = rf(a1, a2); | ||
if (reduced_QMARK_(ret)) { | ||
@@ -2702,2 +2704,2 @@ return reduced(ret); | ||
return m2; | ||
} | ||
} |
@@ -35,3 +35,4 @@ import * as squint_core from './core.js'; | ||
function css(v) { | ||
export function css(v, props) { | ||
v = Object.assign(props, v); | ||
let ret = ""; | ||
@@ -51,5 +52,5 @@ if (v == null) return ret; | ||
export function attr(v) { | ||
function attr(v) { | ||
if (typeof(v) === 'object') { | ||
return css(v); | ||
return css({}, v); | ||
} else | ||
@@ -56,0 +57,0 @@ { |
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
1394547
8382
462