squint-cljs 0.12.192 → 0.13.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -56
- package/lib/cli.js +117 -45
- package/lib/cljs.pprint.js +265 -265
- package/lib/compiler.js +1356 -1324
- package/lib/compiler.node.js +39 -32
- package/lib/compiler.sci.js +1312 -1167
- package/lib/node.nrepl_server.js +29 -21
- package/lib/squint.core.umd.js +1 -1
- package/package.json +3 -1
- package/src/squint/core.js +647 -416
- package/src/squint/multi.js +10 -10
- package/src/squint/set.js +3 -3
- package/src/squint/string.js +20 -3
- package/src/squint/test.js +42 -42
- package/src/squint/walk.js +103 -0
- package/vite.js +34 -3
package/lib/node.nrepl_server.js
CHANGED
|
@@ -4,24 +4,32 @@ import "./node.js";
|
|
|
4
4
|
import "./compiler.node.js";
|
|
5
5
|
const shadow_esm_import = function(x) { return import(x) };
|
|
6
6
|
import*as esm_import$fs from"fs";import*as esm_import$net from"net";
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
"version-string",a)},
|
|
10
|
-
$APP.
|
|
11
|
-
$APP.
|
|
12
|
-
"%s",b)},
|
|
13
|
-
|
|
14
|
-
b)
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
new $APP.
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
$APP.
|
|
27
|
-
|
|
7
|
+
var m7=function(a,b){a=a.indexOf(b);if(a<0)throw Error("out of input");return a},n7=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},o7=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},p7=function(a){return console.debug($APP.oq.h(" ",a))},voa=function(a){return function(b,c){b=$APP.af(b);var d=$APP.Zd.h(b,$APP.ft),e=$APP.Zd.h(b,q7);c=$APP.Kh.j(c,"id",d);c=$APP.m(e)?$APP.Kh.j(c,"session",e):c;return a.h?a.h(b,c):a.call(null,b,c)}},xoa=function(){var a=
|
|
8
|
+
woa;return function(b,c){b=$APP.vn.j(b,r7,$APP.ui);return a.h?a.h(b,c):a.call(null,b,c)}},zoa=function(){var a=yoa();return function(b,c){p7($APP.A(["request",b],0));return a.h?a.h(b,c):a.call(null,b,c)}},Aoa=function(a){return function(b,c){p7($APP.A(["response",c],0));return a.h?a.h(b,c):a.call(null,b,c)}},yoa=function(){var a=xoa();return function(b,c){return a.h?a.h(b,c):a.call(null,b,c)}},s7=function(a){return $APP.Kh.j($APP.Vh(new $APP.E(null,3,5,$APP.G,["major","minor","incremental"],null),
|
|
9
|
+
$APP.cw.g(a.split("."))),"version-string",a)},v7=function(){var a=function(){var b=$APP.Ib(t7);b=b==null?null:$APP.Pn.g(b);b=b==null?null:$APP.Ib(b);return b==null?null:$APP.ol.g(b)}();if($APP.m(a))return a;a=function(){var b=$APP.Ib(u7);b=b==null?null:$APP.Ib(b);return b==null?null:$APP.ol.g(b)}();return $APP.m(a)?a:$APP.Oq},Boa=function(a,b,c){if($APP.m(a)){var d=w7.g?w7.g(a):w7.call(null,a);if($APP.m(d)){var e=$APP.af(b);a=$APP.Zd.h(e,$APP.V6);b=$APP.Zd.h(e,$APP.P6);e=$APP.Zd.h(e,$APP.X6);var f=
|
|
10
|
+
$APP.ii,h=$APP.gi,k=$APP.x4;$APP.ii=b;$APP.gi=e;$APP.x4=a;try{return Promise.resolve(function(){var l=new $APP.Ca,n=$APP.Ea,q=$APP.Fa;$APP.Ea=!0;$APP.Fa=function(r){return l.append(r)};try{d.g?d.g(c):d.call(null,c)}finally{$APP.Fa=q,$APP.Ea=n}return""+$APP.I.g(l)}())}finally{$APP.x4=k,$APP.gi=h,$APP.ii=f}}else return p7($APP.A(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"],0)),$APP.WF(c)}else return $APP.WF(c)},Coa=function(a,b){var c=function(){var f=$APP.uF();f=f==null?null:
|
|
11
|
+
$APP.vr.g(f);return f==null?null:$APP.Kh.j(f,$APP.Zv,!0)}(),d=$APP.m(b)?$APP.Di.g(b):null;b=function(){var f=new $APP.H(null,4,[$APP.pq,$APP.Uv,$APP.Yv,!0,$APP.qs,!0,$APP.yq,!0],null);f=$APP.m(c)?$APP.Kh.j(f,$APP.vr,c):f;f=$APP.m($APP.Ib(u7))?$APP.Kh.j(f,$APP.Pn,$APP.Ib(u7)):f;f=$APP.m(d)?$APP.Kh.j(f,$APP.W,d):f;var h=$APP.Ib(t7);return $APP.Wv?$APP.Wv(a,f,h):$APP.rF.call(null,a,f,h)}();b=$APP.af(b);var e=$APP.Zd.h(b,$APP.bw);$APP.Cf(t7,b);b=""+$APP.I.g(e)+"\n;return [undefined];";return $APP.Yq("(async function () {\n%s\n}) ()",
|
|
12
|
+
"%s",b)},x7=function(a,b){return Promise.resolve(eval(a)).then(function(c){c=c[0];return Boa(Doa.g(b),Eoa.g(b),c)})},Foa=function(a,b){return new Promise(function(c,d){var e=$APP.ft.g(b);$APP.Si.A(y7,$APP.Kh,e,{resolve:function(k){k=k.value;return c.g?c.g(k):c.call(null,k)},reject:d});setTimeout(function(){if($APP.m($APP.Zd.h($APP.Ib(y7),e))){$APP.Si.j(y7,$APP.Uk,e);var k=$APP.Ib(z7);k=$APP.m(k)?k.o?k.o():k.call(null):null;k=$APP.m(k)?"Open "+$APP.I.g(k)+" in a browser tab.":"Open the dev server URL in a browser tab.";
|
|
13
|
+
k=Error("No response from the browser within "+$APP.I.g(8E3)+"ms. "+$APP.I.g(k)+" The REPL evaluates in the page.");return d.g?d.g(k):d.call(null,k)}return null},8E3);var f=$APP.Ib(A7);if($APP.m(f)){var h={op:"eval",code:a,id:e,session:q7.g(b)};return f.g?f.g(h):f.call(null,h)}$APP.Si.j(y7,$APP.Uk,e);f=Error("No browser transport connected");return d.g?d.g(f):d.call(null,f)})},Goa=function(a){for(var b=new Set;;)if(a!=null){for(var c=$APP.v(Object.getOwnPropertyNames(a)),d=null,e=0,f=0;;)if(f<e){var h=
|
|
14
|
+
d.da(null,f);b.add(h);f+=1}else if(c=$APP.v(c))d=c,$APP.Qd(d)?(c=$APP.lc(d),f=$APP.mc(d),d=c,e=$APP.pd(c),c=f):(c=$APP.w(d),b.add(c),c=$APP.x(d),d=null,e=0),f=0;else break;a=Object.getPrototypeOf(a)}else break;return Array.from(b)},Hoa=function(a){if($APP.na(a,"js/")){a=$APP.ei.h(a,3).split(".");var b=a[a.length-1];a=a.slice(0,a.length-1);var c=$APP.he.j(function(e,f){return e!=null?e[f]:null},globalThis,Array.from(a));if(c==null)return[];var d="js/"+$APP.I.g(a.length>0?""+$APP.I.g(a.join("."))+".":
|
|
15
|
+
null);return $APP.jw.g($APP.hk.h(function(e){return""+$APP.I.g(d)+$APP.I.g(e)},$APP.Ff.h(100,$APP.XF.g($APP.Yk.h(function(e){return $APP.na(e,b)},Goa(c))))))}return[]},Ioa=function(a,b){return new Promise(function(c){var d=$APP.ft.g(b);$APP.Si.A(y7,$APP.Kh,d,{resolve:function(h){h=h.completions;h=$APP.m(h)?h:[];return c.g?c.g(h):c.call(null,h)},reject:function(){var h=[];return c.g?c.g(h):c.call(null,h)}});setTimeout(function(){if($APP.m($APP.Zd.h($APP.Ib(y7),d))){$APP.Si.j(y7,$APP.Uk,d);var h=[];
|
|
16
|
+
return c.g?c.g(h):c.call(null,h)}return null},8E3);var e=$APP.Ib(A7);if($APP.m(e)){var f={op:"complete-js",prefix:a,id:d,session:q7.g(b)};return e.g?e.g(f):e.call(null,f)}$APP.Si.j(y7,$APP.Uk,d);e=[];return c.g?c.g(e):c.call(null,e)})},C7=function(a,b){return Promise.resolve(a).then(function(c){return Coa(c,$APP.W.g(b))}).then(function(c){var d=$APP.Ib(B7);return d.h?d.h(c,b):d.call(null,c,b)})},E7=function(a,b){var c=$APP.af(a);$APP.Zd.h(c,$APP.W);a=$APP.Zd.h(c,D7);$APP.Zd.h(c,$APP.S);$APP.Zd.h(c,
|
|
17
|
+
Joa);$APP.Zd.h(c,Koa);return C7(a,c).then(function(d){d=new $APP.H(null,2,["ns",""+$APP.I.g(v7()),"value",d],null);return b.h?b.h(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.$u.g($APP.qj(d));e=$APP.m(e)?e:d.message;$APP.m(e)&&(e=new $APP.H(null,1,["err",""+$APP.I.g(e)+"\n"],null),b.h?b.h(c,e):b.call(null,c,e));d=new $APP.H(null,2,["ex",""+$APP.I.g(d),"ns",""+$APP.I.g(v7())],null);return b.h?b.h(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.H(null,2,["ns",""+$APP.I.g(v7()),
|
|
18
|
+
"status",new $APP.E(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(c,d):b.call(null,c,d)})},F7=function(){var a=$APP.Ib(t7);a=a==null?null:$APP.Pn.g(a);a=a==null?null:$APP.Ib(a);if($APP.m(a))return a;a=$APP.Ib(u7);return a==null?null:$APP.Ib(a)},G7=function(a,b){var c=$APP.af(a),d=$APP.Zd.h(c,r7),e=$APP.Zd.h(c,$APP.W);a=function(){var u=$APP.hea.g(c);return $APP.m(u)?u:$APP.Hm.g(c)}();e=$APP.Di.g($APP.m(e)?e:""+$APP.I.g(v7()));var f=$APP.m($APP.m(a)?a.indexOf("/")==-1:a)?$APP.Mp.h(F7(),new $APP.E(null,
|
|
19
|
+
2,5,$APP.G,[e,$APP.Di.g(a)],null)):null,h=$APP.af(f),k=$APP.Zd.h(h,$APP.nr),l=$APP.Zd.h(h,$APP.P),n=$APP.Zd.h(h,$APP.T),q=$APP.Zd.h(h,$APP.S);if($APP.m(f)){var r=new $APP.H(null,3,["ns",""+$APP.I.g(e),"name",""+$APP.I.g(a),"status",new $APP.E(null,1,5,$APP.G,["done"],null)],null);a=function(){switch(d instanceof $APP.C?d.$:null){case "eldoc":var u=$APP.Kh.l(r,"eldoc",$APP.Bw.h(function(p){return $APP.Bw.h($APP.I,p)},k),$APP.A(["type",$APP.m(k)?"function":"variable"],0));return $APP.m(l)?$APP.Kh.j(u,
|
|
20
|
+
"docstring",l):u;default:return u=$APP.m(k)?$APP.Kh.j(r,"arglists-str",$APP.oq.h("\n",$APP.hk.h($APP.Ni,k))):r,u=$APP.m(l)?$APP.Kh.j(u,"doc",l):u,u=$APP.m(q)?$APP.Kh.j(u,"file",q):u,$APP.m(n)?$APP.Kh.j(u,"line",n):u}}();return b.h?b.h(c,a):b.call(null,c,a)}a:switch(d instanceof $APP.C?d.$:null){case "eldoc":a=new $APP.E(null,2,5,$APP.G,["no-eldoc","done"],null);break a;default:a=new $APP.E(null,2,5,$APP.G,["no-info","done"],null)}a=new $APP.H(null,1,["status",a],null);return b.h?b.h(c,a):b.call(null,
|
|
21
|
+
c,a)},woa=function(a,b){a=$APP.af(a);var c=$APP.Zd.h(a,r7),d=$APP.Zd.h(H7,c);if($APP.m(d))return d.h?d.h(a,b):d.call(null,a,b);console.warn($APP.oq.h(" ",$APP.A(["Unhandled operation",c],0)));c=new $APP.H(null,1,["status",new $APP.E(null,3,5,$APP.G,["error","unknown-op","done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},Loa=function(a){return function(b,c){return a.write(I7(c))}},Moa=function(a,b){p7($APP.A(["Connection accepted"],0));b.setNoDelay(!0);var c=zoa(),d=voa(Aoa(Loa(b))),e=$APP.Ri.g(null);
|
|
22
|
+
b.on("data",function(f){var h=$APP.Ib(e);if($APP.m(h)){f=""+$APP.I.g(h)+$APP.I.g(f);$APP.Cf(e,null);var k=f}else k=f;a:{f=$APP.A([$APP.dw,!0],0);for(h=$APP.cg;;){var l=$APP.zf.j(J7,k,f);k=$APP.z.j(l,0,null);l=$APP.z.j(l,1,null);if(k==null){h=new $APP.E(null,2,5,$APP.G,[h,l],null);break a}h=$APP.xe.h(h,k);k=l}h=void 0}f=$APP.z.j(h,0,null);h=$APP.z.j(h,1,null);$APP.lk(h)||$APP.Cf(e,h);f=$APP.v(f);h=null;for(var n=l=0;;)if(n<l)k=h.da(null,n),c(k,d),n+=1;else if(f=$APP.v(f))h=f,$APP.Qd(h)?(f=$APP.lc(h),
|
|
23
|
+
l=$APP.mc(h),h=f,k=$APP.pd(f),f=l,l=k):(k=$APP.w(h),c(k,d),f=$APP.x(h),h=null,l=0),n=0;else return null});return b.on("close",function(f){return $APP.m(f)?p7($APP.A(["Connection lost"],0)):p7($APP.A(["Connection closed"],0))})},Koa=new $APP.C(null,"_line","_line",232847719),Eoa=new $APP.C("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),q7=new $APP.C(null,"session","session",1008279103),Noa=new $APP.C(null,"lookup","lookup",1225356838),Ooa=new $APP.C(null,"browser-transport",
|
|
24
|
+
"browser-transport",-653558483),Poa=new $APP.C(null,"load-file","load-file",-424586670),Joa=new $APP.C(null,"_load-file?","_load-file?",-1198848711),r7=new $APP.C(null,"op","op",-1882987955),Qoa=new $APP.C(null,"describe","describe",1369790582),D7=new $APP.C(null,"code","code",1586293142),Roa=new $APP.C(null,"eldoc","eldoc",-1321421900),Soa=new $APP.C(null,"log_level","log_level",-1756736313),Doa=new $APP.C("nrepl.middleware.print","print","nrepl.middleware.print/print",-1616742548),Toa=new $APP.C(null,
|
|
25
|
+
"clone","clone",711747572),Uoa=new $APP.C(null,"close","close",1835149582),Voa=new $APP.C(null,"info","info",-317069002),Woa=new $APP.C(null,"load-file?","load-file?",1892536169);var K7=function K7(a,b){switch(""+$APP.I.g(o7(a,1))){case "i":return a=n7(a,1),b=m7(a,"e"),new $APP.E(null,2,5,$APP.G,[parseInt(o7(a,b)),n7(a,b+1)],null);case "l":var d=a=n7(a,1);for(a=$APP.dc($APP.cg);;){if($APP.y.h(""+$APP.I.g(o7(d,1)),"e"))return new $APP.E(null,2,5,$APP.G,[$APP.fc(a),n7(d,1)],null);var e=K7.h?K7.h(d,b):K7.call(null,d,b),f=$APP.z.j(e,0,null),h=$APP.z.j(e,1,null);e=h;a=$APP.Yf.h(a,f);d=e}break;case "d":a=n7(a,1);f=$APP.af(b);f=$APP.Zd.h(f,$APP.dw);d=a;for(e=$APP.dc($APP.$e);;){if($APP.y.h(""+
|
|
26
|
+
$APP.I.g(o7(d,1)),"e"))return new $APP.E(null,2,5,$APP.G,[$APP.fc(e),n7(d,1)],null);a=K7.h?K7.h(d,b):K7.call(null,d,b);d=$APP.z.j(a,0,null);h=$APP.z.j(a,1,null);h=K7.h?K7.h(h,b):K7.call(null,h,b);a=$APP.z.j(h,0,null);h=$APP.z.j(h,1,null);d=$APP.m(f)?$APP.ui.g(d):d;a=$APP.Pg.j(e,d,a);d=h;e=a}break;default:return b=m7(a,":"),f=parseInt(o7(a,b)),a=n7(a,b+1),new $APP.E(null,2,5,$APP.G,[""+$APP.I.g(o7(a,f)),n7(a,f)],null)}},J7=function J7(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),
|
|
27
|
+
e+=1;else break;return J7.l(arguments[0],1<c.length?new $APP.Oc(c.slice(1),0,null):null)};J7.l=function(a,b){try{return K7(a,b)}catch(c){if(c instanceof Error)return new $APP.E(null,2,5,$APP.G,[null,a],null);throw c;}};J7.m=1;J7.v=function(a){var b=$APP.w(a);a=$APP.x(a);return this.l(b,a)};
|
|
28
|
+
var I7=function I7(a){for(;;){if(typeof a==="string")return""+$APP.I.g(Buffer.from(a).length)+":"+$APP.I.g(a);if(a instanceof $APP.C||a instanceof $APP.t)a=""+$APP.I.g(function(){var c=$APP.Ee(a);return $APP.m(c)?""+$APP.I.g(c)+"/":null}())+$APP.I.g($APP.Uh(a));else return typeof a==="number"?"i"+$APP.I.g(a)+"e":$APP.Ld(a)||$APP.Pd(a)||a==null?"l"+$APP.I.g($APP.zf.h($APP.I,$APP.hk.h(I7,a)))+"e":$APP.Nd(a)?"d"+$APP.I.g($APP.zf.h($APP.I,$APP.hk.h(function(){return function(c){var d=$APP.z.j(c,0,null);
|
|
29
|
+
c=$APP.z.j(c,1,null);return""+$APP.I.g(I7.g?I7.g(d):I7.call(null,d))+$APP.I.g(I7.g?I7.g(c):I7.call(null,c))}}(a),$APP.YF.h($APP.w,a))))+"e":null}};var t7=$APP.Ri.g(null),u7=$APP.Ri.g(null),w7=new $APP.H(null,1,["cider.nrepl.pprint/pprint",$APP.d7],null);$APP.Ri.g(!1);
|
|
30
|
+
var A7=$APP.Ri.g(null),z7=$APP.Ri.g(null),y7=$APP.Ri.g($APP.$e),B7=$APP.Ri.g(x7),H7=$APP.qh([Noa,Uoa,Poa,Roa,Toa,Qoa,Voa,$APP.eG,$APP.Qfa],[G7,function(a,b){var c=new $APP.H(null,1,["status",new $APP.E(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},function(a,b){a=$APP.af(a);var c=$APP.Zd.h(a,$APP.S);return E7($APP.Kh.l(a,D7,c,$APP.A([Woa,!0],0)),b)},G7,function(a,b){var c=new $APP.H(null,2,["new-session",""+$APP.I.g($APP.iF()),"status",new $APP.E(null,1,5,$APP.G,["done"],
|
|
31
|
+
null)],null);return b.h?b.h(a,c):b.call(null,a,c)},function(a,b){var c=new $APP.H(null,4,["versions",new $APP.H(null,2,["nbb-nrepl",s7("TODO"),"node",s7(process.version)],null),"aux",$APP.$e,"ops",$APP.Vh($APP.hk.h($APP.Uh,$APP.Fh(H7)),$APP.$k.g($APP.$e)),"status",new $APP.E(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},G7,function(a,b){var c=$APP.af(a);a=$APP.Zd.h(c,$APP.W);var d=function(){var f=$APP.Q6.g(c);if($APP.m(f))return f;f=$APP.Hm.g(c);return $APP.m(f)?f:""}();
|
|
32
|
+
a=$APP.Di.g($APP.m(a)?a:""+$APP.I.g(v7()));a=$APP.Zd.h(F7(),a);a=$APP.K.l($APP.Yk.h($APP.Jc,$APP.Fh(a)),$APP.Fh($APP.As.g(a)),$APP.A([$APP.Fh($APP.ql.g(a))],0));var e=$APP.Yk.h(function(f){return $APP.na(f,d)},$APP.Bs.h(function(f){return f.indexOf("_DOT_")!=-1},$APP.hk.h($APP.I,a)));return($APP.na(d,"js/")?$APP.m($APP.Ib(A7))?Ioa(d,c):Promise.resolve(Hoa(d)):Promise.resolve([])).then(function(f){f=$APP.Bw.h(function(h){return new $APP.H(null,1,["candidate",h],null)},$APP.XF.g($APP.yF.g($APP.K.h(e,
|
|
33
|
+
Array.from(f)))));f=new $APP.H(null,2,["completions",f,"status",new $APP.E(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(c,f):b.call(null,c,f)}).catch(function(){var f=new $APP.H(null,2,["completions",$APP.Bw.h(function(h){return new $APP.H(null,1,["candidate",h],null)},$APP.XF.g(e)),"status",new $APP.E(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(c,f):b.call(null,c,f)})},function(a,b){a=$APP.af(a);var c=$APP.Zd.h(a,$APP.W);return E7($APP.Kh.j(a,$APP.W,$APP.m(c)?c:v7()),b)}]),Xoa=$APP.Ri.g(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var h=$APP.Pa(a)?a.port:$APP.aG.g(a);return $APP.m(h)?h:0}(),c=function(){var h=$APP.Pa(a)?a.host:$APP.dG.g(a);return $APP.m(h)?h:"127.0.0.1"}();(function(){var h=$APP.Pa(a)?a.log_level:Soa.g(a);return $APP.m(h)?h:"info"})();var d=function(){var h=Ooa.g(a);return $APP.m(h)?h:$APP.Pa(a)?a.browserTransport:null}(),e=function(){var h=$APP.Pn.g(a);return $APP.m(h)?h:$APP.Pa(a)?a.nsState:null}(),f=esm_import$net.createServer($APP.zl.h(Moa,
|
|
34
|
+
$APP.$e));$APP.m(e)&&$APP.Cf(u7,e);$APP.m(d)?($APP.Cf(A7,d.send),$APP.Cf(z7,d.url),$APP.Cf(B7,Foa)):$APP.Cf(B7,x7);f.listen(b,c,function(){var h=f.address(),k=h.port;h=h.address;$APP.$F.l($APP.A(["nREPL server started on port "+$APP.I.g(k)+" on host "+$APP.I.g(h)+" - nrepl://"+$APP.I.g(h)+":"+$APP.I.g(k)],0));try{return esm_import$fs.writeFileSync(".nrepl-port",""+$APP.I.g(k))}catch(l){return console.warn($APP.oq.h(" ",$APP.A(["Could not write .nrepl-port",l],0)))}});return $APP.Cf(Xoa,f)})};
|
|
35
|
+
export const handleBrowserMessage=function(a){a=typeof a==="string"?JSON.parse(a):a;var b=a.id,c=$APP.Zd.h($APP.Ib(y7),b);if($APP.m(c)){$APP.Si.j(y7,$APP.Uk,b);b=a.ex;if(b==null)return c=c.resolve,c.g?c.g(a):c.call(null,a);a=Error(""+$APP.I.g(b));c=c.reject;return c.g?c.g(a):c.call(null,a)}return null};export const evalString=function(a){return C7(a,new $APP.H(null,2,[$APP.ft,""+$APP.I.g($APP.iF()),q7,"http"],null)).then(function(b){return{value:b,ns:""+$APP.I.g(v7())}})};
|
package/lib/squint.core.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var squint;(squint||={}).core=(()=>{var ct=Object.defineProperty;var Ie=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var Te=Object.prototype.hasOwnProperty;var $e=(t,e)=>{for(var n in e)ct(t,n,{get:e[n],enumerable:!0})},Ge=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Oe(e))!Te.call(t,o)&&o!==n&&ct(t,o,{get:()=>e[o],enumerable:!(r=Ie(e,o))||r.enumerable});return t};var Be=t=>Ge(ct({},"__esModule",{value:!0}),t);var nu={};$e(nu,{Atom:()=>Wt,Cons:()=>Vt,Delay:()=>Uo,IIterable:()=>ht,IIterable__iterator:()=>Dt,LazySeq:()=>Qr,NaN_QMARK_:()=>io,PROTOCOL_SENTINEL:()=>wn,_:()=>Pe,_EQ_:()=>T,_GT_:()=>kt,_GT__EQ_:()=>Kt,_LT_:()=>ze,_LT__EQ_:()=>qe,_PLUS_:()=>Le,_STAR_:()=>Fe,__protocol_satisfies:()=>De,__toFn:()=>f,_iterator:()=>U,abs:()=>zo,aclone:()=>Yr,add_watch:()=>Cr,alength:()=>Lr,any_QMARK_:()=>ro,apply:()=>Zt,array:()=>kn,array_QMARK_:()=>et,aset:()=>Fr,assoc:()=>j,assoc_BANG_:()=>A,assoc_in:()=>It,assoc_in_BANG_:()=>Ot,atom:()=>gn,boolean$:()=>$r,boolean_QMARK_:()=>bo,bounded_count:()=>vo,butlast:()=>Nr,cat:()=>Qe,clj__GT_js:()=>Wo,coll_QMARK_:()=>fo,comp:()=>Tt,compare:()=>b,compare_and_set_BANG_:()=>Mn,complement:()=>L,concat:()=>ee,conj:()=>Gt,conj_BANG_:()=>V,cons:()=>sn,constantly:()=>Tn,contains_QMARK_:()=>zt,count:()=>P,counted_QMARK_:()=>Ae,cycle:()=>rr,dec:()=>He,dedupe:()=>fr,deref:()=>N,disj:()=>Je,disj_BANG_:()=>Bt,dissoc:()=>Ze,dissoc_BANG_:()=>Xe,distinct:()=>cr,distinct_QMARK_:()=>oo,doall:()=>Dr,dorun:()=>Pr,drop:()=>ut,drop_last:()=>kr,drop_while:()=>ae,empty:()=>nt,empty_QMARK_:()=>Ar,ensure_reduced:()=>le,es6_iterator:()=>W,even_QMARK_:()=>Ht,every_QMARK_:()=>pe,every_pred:()=>Wr,ex_cause:()=>ho,ex_data:()=>ao,ex_info:()=>_o,ex_message:()=>po,false_QMARK_:()=>Or,ffirst:()=>nn,filter:()=>Z,filterv:()=>fn,find:()=>Mo,first:()=>I,flatten:()=>jo,fn_QMARK_:()=>Mt,fnil:()=>gt,frequencies:()=>Sr,get:()=>w,get_in:()=>wt,group_by:()=>Rr,identical_QMARK_:()=>Jn,identity:()=>ne,ifn_QMARK_:()=>no,inc:()=>qt,int_QMARK_:()=>B,integer_QMARK_:()=>xo,interleave:()=>re,interpose:()=>qn,into:()=>fe,into_array:()=>ye,iterable:()=>s,iterate:()=>Xr,js_keys:()=>co,js_obj:()=>qr,juxt:()=>Zr,keep:()=>_r,keep_indexed:()=>dn,key:()=>ce,keys:()=>ge,last:()=>rn,lazy:()=>l,list:()=>te,list_QMARK_:()=>$n,list_STAR_:()=>Gn,long$:()=>qo,map:()=>Q,map_QMARK_:()=>xe,map_indexed:()=>pn,mapcat:()=>Bn,mapv:()=>tt,max:()=>de,max_key:()=>So,memoize:()=>Po,merge:()=>Vn,merge_with:()=>Un,meta:()=>go,min:()=>Ur,min_key:()=>Ro,mod:()=>Eo,name:()=>yn,nat_int_QMARK_:()=>mo,neg_QMARK_:()=>Br,neg_int_QMARK_:()=>wo,next:()=>ft,nil_QMARK_:()=>mn,nnext:()=>Hr,not:()=>dt,not_EQ_:()=>Xo,not_any_QMARK_:()=>wr,not_empty:()=>Ko,not_every_QMARK_:()=>pr,nth:()=>Lt,number_QMARK_:()=>we,object_QMARK_:()=>Ue,odd_QMARK_:()=>On,parse_double:()=>No,parse_long:()=>Qo,partial:()=>nr,partition:()=>ue,partition_all:()=>oe,partition_by:()=>Cn,partitionv:()=>Pn,partitionv_all:()=>Dn,peek:()=>Do,persistent_BANG_:()=>Oo,pop:()=>Yo,pos_QMARK_:()=>zr,pos_int_QMARK_:()=>yo,pr_str:()=>Ke,println:()=>tn,prn:()=>eu,quot:()=>Me,rand:()=>br,rand_int:()=>_e,rand_nth:()=>vr,random_uuid:()=>Vo,range:()=>En,re_find:()=>Sn,re_matches:()=>Rn,re_pattern:()=>Qn,re_seq:()=>uo,reduce:()=>S,reduce_kv:()=>vt,reduced:()=>X,reduced_QMARK_:()=>R,reductions:()=>un,regexp_QMARK_:()=>lo,rem:()=>Ne,remove:()=>ln,remove_watch:()=>Vr,repeat:()=>mt,repeatedly:()=>Er,replace:()=>gr,reset_BANG_:()=>Jt,reset_vals_BANG_:()=>vn,rest:()=>J,reverse:()=>dr,run_BANG_:()=>Jo,satisfies_QMARK_:()=>Ye,second:()=>en,select_keys:()=>Ln,seq:()=>E,seq_QMARK_:()=>Ft,seqable_QMARK_:()=>Pt,sequential_QMARK_:()=>st,set:()=>jn,set_QMARK_:()=>In,shuffle:()=>mr,some:()=>he,some_QMARK_:()=>Tr,some_fn:()=>Jr,sort:()=>At,sort_by:()=>yr,sorted_set:()=>To,split_at:()=>Kr,split_with:()=>jr,str:()=>xn,string_QMARK_:()=>it,subs:()=>me,subseq:()=>Bo,subvec:()=>Nn,swap_BANG_:()=>An,swap_vals_BANG_:()=>bn,system_time:()=>Wn,t:()=>eo,take:()=>rt,take_last:()=>Zn,take_nth:()=>er,take_while:()=>ot,to_array:()=>to,trampoline:()=>Ee,transduce:()=>Rt,transient$:()=>Io,tree_seq:()=>Re,true_QMARK_:()=>Ir,truth_:()=>h,type:()=>Lo,unreduced:()=>yt,update:()=>lr,update_BANG_:()=>bt,update_in:()=>ar,update_keys:()=>Co,update_vals:()=>ke,val:()=>se,vals:()=>so,vec:()=>k,vector:()=>H,vector_QMARK_:()=>Kn,volatile_BANG_:()=>Ho,vreset_BANG_:()=>tu,warn_on_lazy_reusage_BANG_:()=>cn,with_meta:()=>Ao,zero_QMARK_:()=>Gr,zipmap:()=>ko});function f(t){if(t==null||typeof t=="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}var Qt=Object.prototype.hasOwnProperty;function Nt(t,e,n){for(n of t.keys())if(K(n,e))return n}function K(t,e){if(t===e)return!0;var n,r,o;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Array){if((r=t.length)===e.length)for(;r--&&K(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(const u of t)if(o=u,o&&typeof o=="object"&&(o=Nt(e,o),!o)||!e.has(o))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(const u of t)if(o=u[0],o&&typeof o=="object"&&(o=Nt(e,o),!o)||!K(u[1],e.get(o)))return!1;return!0}if(!n||typeof t=="object"){r=0;for(const u in t)if(Qt.call(t,u)&&++r&&!Qt.call(e,u)||!(u in e)||!K(t[u],e[u]))return!1;return Object.keys(e).length===r}}return!1}function O(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function T(...t){return O(t,(e,n)=>K(e,n))}function kt(...t){return O(t,(e,n)=>e>n)}function Kt(...t){return O(t,(e,n)=>e>=n)}function ze(...t){return O(t,(e,n)=>e<n)}function qe(...t){return O(t,(e,n)=>e<=n)}function Le(...t){return t.reduce((e,n)=>e+n,0)}function Fe(...t){return t.reduce((e,n)=>e*n,1)}function Pe(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}const De={};function Ye(t,e){return e==null?t[null]:typeof t=="symbol"?e[t]:e[t.__sym]}function Ce(t,e,n){return t.set(e,n),t}function Ve(t,e,n){return t[e]=n,t}function jt(t){switch(p(t)){case _:return Ce;case x:case d:return Ve}}function A(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 _:t.set(e,n);for(let o=0;o<r.length;o+=2)t.set(r[o],r[o+1]);break;case x:case d: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 $(t){switch(p(t)){case _:return new Map(t);case m:return new t.constructor(t);case x:return[...t];case d:return{...t};default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function j(t,e,n,...r){t||(t={});const o=$(t);return A(o,e,n,...r),o}const _=1,x=2,d=3,M=4,m=5,D=6;function Y(t){switch(t){case _:return new Map;case x:return[];case d:return{};case M:return new G;case m:return new Set;case D:return l(function*(){})}}function C(t){return t.constructor===Object}function Ue(t){return t!=null&&C(t)}function p(t){if(t!=null){if(C(t))return d;if(t instanceof Map)return _;if(t instanceof Set)return m;if(t instanceof G)return M;if(Array.isArray(t))return x;if(t instanceof _t)return D;if(t instanceof z)return m;if(t instanceof Object)return d}}function We(t,e,n,r,o){r=k(r),n=n||{};const u=p(n);if(u!==_&&u!==x&&u!==d)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 a=0;a<r.length-1;a+=1){const g=r[a];let y;c instanceof Map?y=c.get(g):y=c[g],y||(y=Y(u)),i.push(y),c=y}i.push(o);for(let a=i.length-2;a>=0;a-=1)i[a]=t(i[a],r[a],i[a+1]);return i[0]}function It(t,e,n){return We(j,"assoc-in",t,e,n)}function Ot(t,e,n){e=k(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=Y(o),A(r,u,i)),r=i}return A(r,e[e.length-1],n),t}function Tt(...t){if(t=t.map(f),t.length===0)return ne;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 $t(t,e){for(const n of e)t.add(n);return t}function V(...t){if(t.length===0)return H();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),p(r)){case m:$t(r,n);break;case M:r.unshift(...n.reverse());break;case x:r.push(...n);break;case _: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 d: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 Gt(...t){if(t.length===0)return H();const[e,...n]=t;let r=e;r==null&&(r=te());let o,u;switch(p(r)){case m:return r instanceof z?$t(new r.constructor(r),n):new r.constructor([...r,...n]);case M:return new G(...n.reverse(),...r);case x:return[...r,...n];case _: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 D:return l(function*(){yield*n,yield*r});case d: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 Bt(t,...e){for(const n of e)t.delete(n);return t}function Je(t,...e){const n=new t.constructor([...t]);return Bt(n,...e)}function zt(t,e){switch(p(t)){case m:case _:return t.has(e);case void 0:return!1;default:return e in t}}function Xe(t,...e){for(const n of e)delete t[n];return t}function Ze(t,...e){if(!t)return;if(e.length===0)return t;const n=$(t);switch(p(t)){case _:for(const r of e)n.delete(r);break;default:for(const r of e)delete n[r];break}return n}function qt(t){return t+1}function He(t){return t-1}function tn(...t){console.log(...t)}function Lt(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(C(t))return r=t[e],r===void 0?n:r;let o;switch(p(t)){case m:t.has(e)&&(r=e);break;case _:r=t.get(e);break;case x:r=t[e];break;default:if(o=t.get,typeof o=="function")try{r=t.get(e);break}catch{}r=t[e];break}return r!==void 0?r:n}function Ft(t){return t!=null&&!!t[Symbol.iterator]}const st=Ft;function Pt(t){return t==null||!!t[Symbol.iterator]}function s(t){if(t==null)return[];if(Pt(t))return t;if(t instanceof Object)return Object.entries(t);throw new TypeError(`${t} is not iterable`)}const ht=Symbol("Iterable"),Dt=Symbol.iterator;function U(t){return t[Symbol.iterator]()}const W=U;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 I(t){const[e]=s(t);return e}function en(t){const[e,n]=s(t);return n}function nn(t){return I(I(t))}function J(t){return l(function*(){let e=!0;for(const n of s(t))e?e=!1:yield n})}class q{value;constructor(e){this.value=e}_deref(){return this.value}}function rn(t){t=s(t);let e;switch(p(t)){case x:return t[t.length-1];default:for(const n of t)e=n;return e}}function X(t){return new q(t)}function R(t){return t instanceof q}function S(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 q)return o.value;for(const u of r)if(o=t(o,u),o instanceof q){o=o.value;break}return o}function*on(t,e){const n=e.next();n.done?yield t():yield*Yt(t,n.value,e)}function*Yt(t,e,n){let r=e,o=n;for(;;){if(R(r)){yield r.value;return}else yield r;const u=o.next();if(u.done)break;r=t(r,u.value)}}function un(t,e,n){return t=f(t),arguments.length===2?l(function*(){yield*on(t,s(e)[Symbol.iterator]())}):l(function*(){yield*Yt(t,e,s(n)[Symbol.iterator]())})}var Ct=!1;function cn(){Ct=!0}class _t{constructor(e){this.gen=e,this.usages=0}[Symbol.iterator](){if(this.usages++,this.usages>=2&&Ct)try{throw new Error}catch(e){console.warn("Re-use of lazy value",e.stack)}return this.gen()}}_t.prototype[ht]=!0;function l(t){return new _t(t)}class Vt{constructor(e,n){this.x=e,this.coll=n}*[Symbol.iterator](){yield this.x,yield*s(this.coll)}}function sn(t,e){return new Vt(t,e)}function Q(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 l(function*(){for(const n of s(e[0]))yield t(n)});default:return l(function*(){const n=e.map(r=>W(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 Ut(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 h(t(o))?e(r,o):r}}}}function Z(t,e){return arguments.length===1?Ut(t):(t=f(t),l(function*(){for(const n of s(e))h(t(n))&&(yield n)}))}function fn(t,e){return[...Z(t,e)]}function ln(t,e){return arguments.length===1?Ut(L(t)):Z(L(t),e)}function an(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 pn(t,e){return t=f(t),arguments.length===1?an(t):l(function*(){let n=0;for(const r of s(e))yield t(n,r),n++})}function hn(t,e){return t=f(t),l(function*(){let n=0;for(const r of s(e)){const o=t(n,r);h(o)&&(yield o),n++}})}function _n(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 dn(t,e){return arguments.length===1?_n(t):hn(t,e)}function xn(...t){return t.join("")}function yn(t){if(typeof t=="string")return t;throw new Error("Doesn't support name: "+typeof t)}function dt(t){return!h(t)}function mn(t){return t==null}const wn={};class Wt{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 gn(t){return new Wt(t)}function N(t){return t._deref()}function Jt(t,e){t._reset_BANG_(e)}function An(t,e,...n){e=f(e);const r=e(N(t),...n);return Jt(t,r),r}function bn(t,e,...n){const r=N(t);e=f(e);const o=e(r,...n);return t._reset_BANG_(o),[r,o]}function vn(t,e){const n=N(t);return t._reset_BANG_(e),[n,e]}function Mn(t,e,n){return N(t)===e?(t._reset_BANG_(n),!0):!1}function En(t,e,n){return l(function*(){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);let i=r||0;u=n??1;const c=u>=0;for(;o===void 0||c&&i<o||!c&&o<i;)yield i,i+=u})}function Rn(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function Sn(t,e){if(it(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 Qn(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 Nn(t,e,n){return t.slice(e,n)}function H(...t){return t}const kn=H;function Kn(t){return p(t)===x}function tt(...t){if(t.length===2){const[r,o]=t,u=f(r),i=s(o);if(Array.isArray(i)){const c=new Array(i.length);for(var e=0;e<i.length;e++)c[e]=u(i[e]);return c}else{var n=[];for(const c of i)n.push(u(c));return n}}return[...Q(...t)]}function k(t){return et(t)?t:[...s(t)]}function jn(t){return new Set(s(t))}function In(t){return p(t)===m}const Xt=Symbol("IApply__apply");function Zt(t,...e){t=f(t);const n=e.slice(0,e.length-1),r=s(e[e.length-1]),o=t[Xt];return o?o(...n,r):t(...n,...r)}function Ht(t){return t%2==0}function On(t){return!Ht(t)}function L(t){return t=f(t),(...e)=>dt(t(...e))}function Tn(t){return(...e)=>t}class G extends Array{constructor(...e){super(),this.push(...e)}}function $n(t){return p(t)===M}function te(...t){return new G(...t)}function Gn(...t){const e=t.pop();return new G(...t,...s(e))}function et(t){return Array.isArray(t)}function xt(t){return l(function*(){for(const e of t)yield*s(e)})}function ee(...t){return xt(t)}ee[Xt]=t=>xt(t);function Bn(t,...e){if(e.length===0)return Tt(Q(t),Qe);{const n=Q(t,...e);return xt(n)}}function ne(t){return t}function re(...t){return l(function*(){const e=t.map(n=>W(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 zn(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 R(o)?o:e(o,r[1])}else return n=!0,e(r[0],r[1])}}}}function qn(t,e){return arguments.length===1?zn(t):ut(1,re(mt(t),e))}function Ln(t,e){const n=p(t),r=Y(n)||{};for(const o of e){const u=w(t,o);u!=null&&A(r,o,u)}return r}function yt(t){return R(t)?N(t):t}function Fn(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=yt(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 oe(t,...e){if(arguments.length===1)return Fn(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),ie(t,n,[],r,!0)}function ue(t,...e){let n=t,r=[],o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),ie(t,n,r,o,!1)}const Pn=ue,Dn=oe;function ie(t,e,n,r,o){return l(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 Yn(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 a=[...n];n=[],c=yt(e(c,a))}return e(c)}if(i===2){const c=u[0],a=u[1],g=o,y=t(a);if(o=y,g===r||y===g)return n.push(a),c;{const je=[...n];n=[];const St=e(c,je);return R(St)||n.push(a),St}}}}}function Cn(t,e){return t=f(t),arguments.length===1?Yn(t):l(function*(){const n=W(e),r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],c=[];for(;;){const a=n.next();if(a.done){yield i;break}const g=a.value,y=t(g);u==y?i.push(g):(yield i,c.push(g),i=c,u=y,c=[])}})}function nt(t){const e=p(t);if(e!=null)return Y(e);throw new Error(`Can't create empty of ${typeof t}`)}function Vn(...t){const e=t[0];let n;return e==null?n={}:n=fe(nt(e),e),V(n,...t.slice(1))}function ce(t){return t[0]}function se(t){return t[1]}function Un(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=ce(i),a=se(i);return zt(u,c)?j(u,c,t(w(u,c),a)):j(u,c,a)};return S((u,i)=>S(r,u||{},E(i)),e)}else return null}function Wn(){return performance.now()}function fe(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return Gt(t[0]??[],...s(t[1]));case 3:return e=t[0],n=t[1],r=t[2],o=$(e),u=(i,c)=>c===void 0?i:V(i,c),Rt(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function Jn(t,e){return t===e}function mt(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[ht]:!0,[Dt]: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 le(t){return R(t)?t:X(t)}function Xn(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,a=(n=n-1,n);return c>0&&(u=e(u,i)),a>0?u:le(u)}}}}function rt(t,e){return arguments.length===1?Xn(t):l(function*(){let n=t-1;for(const r of s(e))if(n-->=0&&(yield r),n<0)return})}function Zn(t,e){if(t<=0)return null;if(Array.isArray(e))return E(e.slice(-t));{const n=new Array(t);let r=0;for(const o of s(e))n[r%t]=o,r++;return r%t!==0&&r>=t?n.slice(r%t).concat(n.slice(0,r%t)):(n.length=Math.min(r,t),n)}}function Hn(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 h(t(u))?e(o,u):X(o)}}}function ot(t,e){return t=f(t),arguments.length===1?Hn(t):l(function*(){for(const n of s(e))if(h(t(n)))yield n;else return})}function tr(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++,Ne(n,t)===0?e(u,i):u}}}}function er(t,e){return arguments.length===1?tr(t):t<=0?mt(I(e)):l(function*(){let n=0;for(const r of s(e))n%t===0&&(yield r),n++})}function nr(t,...e){return t=f(t),function(...n){return t(...e,...n)}}function rr(t){return l(function*(){for(;;)yield*t})}function or(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 ut(t,e){return arguments.length===1?or(t):l(function*(){const n=U(s(e));for(let r=0;r<t;r++)n.next();yield*n})}function ur(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&&h(t(c))?i:(n=null,e(i,c))}}}}function ae(t,e){return t=f(t),arguments.length===1?ur(t):l(function*(){const n=U(s(e));for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!h(t(o))){yield o;break}}yield*n})}function ir(){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 cr(t){return arguments.length===0?ir():l(function*(){const e=new Set;for(const n of s(t))e.has(n)||(yield n),e.add(n)})}const F=Symbol("dedupe-none");function sr(){return t=>{let e=F;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],i=e!==F&&h(T(e,u));return e=u,i?o:t(o,u)}}}}function fr(t){return arguments.length===0?sr():l(function*(){let e=F;for(const n of s(t))(e===F||!h(T(e,n)))&&(yield n),e=n})}function lr(t,e,n,...r){return n=f(n),j(t,e,n(w(t,e),...r))}function wt(t,e,n){let r=t;for(const o of e)r=w(r,o);return r===void 0?n:r}function ar(t,e,n,...r){return n=f(n),It(t,e,n(wt(t,e),...r))}function gt(t,e,...n){return t=f(t),function(r,...o){return r?t(r,...n,...o):t(e,...n,...o)}}function pe(t,e){t=f(t);for(const n of s(e))if(!t(n))return!1;return!0}function pr(t,e){return!pe(t,e)}function hr(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 _r(t,e){return t=f(t),arguments.length===1?hr(t):l(function*(){for(const n of s(e)){const r=t(n);h(r)&&(yield r)}})}function dr(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||b)}function xr(t){return t===b?t:(e,n)=>{const r=t(e,n);return we(r)?r:r?-1:t(n,e)?1:0}}function yr(t,e,n){return arguments.length===2&&(n=e,e=b),t=f(t),e=f(e),At((r,o)=>{const u=xr(e),i=t(r),c=t(o);return u(i,c)},n)}function mr(t){const e=[...t];let n=e.length;for(;n;){const r=Math.floor(Math.random()*n--),o=e[n];e[n]=e[r],e[r]=o}return e}function he(t,e){t=f(t);for(const n of s(e)){const r=t(n);if(h(r))return r}}function wr(t,e){return t=f(t),!he(t,e)}function gr(t,e){return(Array.isArray(e)?tt:Q)(r=>{const o=t[r];return o!==void 0?o:r},e)}function Ar(t){return!E(t)}function br(t){return t===void 0&&(t=1),Math.random()*t}function _e(t){return Math.floor(Math.random()*t)}function vr(t){const e=_e(P(t));return Lt(t,e)}function Mr(t){return l(function*(){for(;;)yield t()})}function Er(t,e){arguments.length===1&&(e=t,t=void 0);const n=Mr(e);return t?rt(t,n):n}function bt(t,e,n,...r){n=f(n);const o=w(t,e);return A(t,e,n(o,...r))}function Rr(t,e){t=f(t);const n={};for(const r of s(e)){const o=t(r);bt(n,o,gt(V,[]),r)}return n}function Sr(t){const e={},n=gt(qt,0);for(const r of s(t))bt(e,r,n);return e}class Qr{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 Nr(t){const e=[...s(t)];return e.pop(),e.length>0?e:null}function kr(...t){const[e,n]=t.length>1?t:[1,t[0]];return Q((r,o)=>r,n,ut(e,n))}function Kr(t,e){return[rt(t,e),ut(t,e)]}function jr(t,e){return[ot(t,e),ae(t,e)]}function P(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 Ir(t){return t===!0}function Or(t){return t===!1}function Tr(t){return t!=null}function $r(t){return!!t}function Gr(t){return t===0}function Br(t){return t<0}function zr(t){return t>0}function qr(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function Lr(t){return t.length}function Fr(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 a=o.length-2;for(;c<a;c++)i=i[o[c]];return i[o[c]]=u,n}}function Pr(t){for(const e of s(t));return null}function Dr(t){return k(t)}function Yr(t){return[...t]}function Cr(t,e,n){return t._add_watch(e,n)}function Vr(t,e){return t._remove_watch(e)}function vt(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 de(t,e,...n){return e==null?t:Math.max(t,e,...n)}function Ur(t,e,...n){return e==null?t:Math.min(t,e,...n)}function xe(t){return t==null?!1:!!(C(t)||t instanceof Map)}function Wr(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Jr(...t){return(...e)=>{for(const n of t)for(const r of e){const o=n(r);if(o)return o}}}function ye(t,e){return k(e||t)}function Xr(t,e){var n=e;return l(function*(){for(;;)yield n,n=t(n)})}function Zr(...t){return t=t.map(f),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function ft(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return E(J(t))}function Hr(t){return ft(ft(t))}function b(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;if(Array.isArray(t)&&Array.isArray(e)){if(t.length<e.length)return-1;if(t.length>e.length)return 1;for(let o=0;o<t.length;o++){const u=b(t[o],e[o]);if(u!=0)return u}return 0}else throw new Error(`comparing ${n} to ${r}`)}}function to(t){return ye(t)}function h(t){return t!=null&&t!==!1}const eo=h;function me(t,e,n){return t.substring(e,n)}function Mt(t){return typeof t=="function"}function no(t){return Mt(t)}function ro(t){return!0}function oo(t,...e){if(e.length===0)return!0;const n=[t];for(const r of e){for(const o of n)if(h(T(o,r)))return!1;n.push(r)}return!0}function uo(t,e){return l(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:k(n);const u=n.index+de(1,r.length);if(u>e.length)break;e=me(e,u)}else break}})}function io(t){return Number.isNaN(t)}function we(t){return typeof t=="number"}function ge(t){if(t==null)return;switch(p(t)){case d:return Object.keys(t);case _:return Array.from(t.keys())}}function co(t){return ge(t)}function so(t){if(t==null)return;switch(p(t)){case d:return Object.values(t);case _:return Array.from(t.values())}}function it(t){return typeof t=="string"}function fo(t){return p(t)!=null}function lo(t){return t instanceof RegExp}class Et extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function ao(t){return t instanceof Et?t._data:null}function po(t){return t instanceof Error?t.message:null}function ho(t){return t instanceof Et?t._cause:null}function _o(t,e,n){return new Et(t,e,n)}function B(t){return Number.isInteger(t)}const xo=B;function yo(t){return B(t)&&t>0}function mo(t){return B(t)&&t>-1}function wo(t){return B(t)&&t<0}const lt=Symbol("meta");function go(t){return t instanceof Object?t[lt]:null}function Ao(t,e){if(typeof t=="function"){const r=function(...o){return t.apply(this,o)};return r[lt]=e,r}const n=$(t);return n[lt]=e,n}function bo(t){return t===!0||t===!1}function Ae(t){switch(p(t)){case x:case _:case d:case M:case m:return!0}return!1}function vo(t,e){return Ae(e)?P(e):P(rt(t,e))}function Mo(t,e){const n=w(t,e);if(n!==void 0)return[e,n]}function Eo(t,e){return(t%e+e)%e}function Ro(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 So(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 be(t){throw new Error(`Expected string, got: ${typeof t}`)}function Qo(t){if(it(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e<=Number.MAX_SAFE_INTEGER)return e}return null}return be(t)}function No(t){if(it(t))return/^[\\x00-\\x20]*[+-]?NaN[\\x00-\\x20]*$/.test(t)?NaN:/^[\\x00-\\x20]*[+-]?(Infinity|((\d+\.?\d*|\.\d+)([eE][+-]?\d+)?)[dDfF]?)[\\x00-\\x20]*$/.test(t)?parseFloat(t):null;throw new be(t)}function ve(t){return t>=0?Math.floor(t):Math.ceil(t)}function Me(t,e){const n=t%e;return ve((t-n)/e)}function Ee(t,...e){if(e.length==0)for(;;){const n=t();if(h(Mt(n))){t=n;continue}else return n}else return Ee(function(){return Zt(t,e)})}function Rt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return Rt(t,n,n(),r)}default:{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=S(n,r,o);return n(u)}}}function ko(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 Ko(t){return E(t)?t:null}function Re(t,e,n){const r=function*(o){if(yield o,h(t(o)))for(const u of s(e(o)))yield*r(u)};return l(function*(){yield*r(n)})}function jo(t){return Z(L(st),J(Re(st,E,t)))}function Io(t){return $(t)}function Oo(t){return Object.freeze(t)}class z{constructor(e){e instanceof z||(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(b(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 To(...t){return new z(t)}function at(t,e,n){return r=>e(b(r,n),0)}function Se(t,e,n=!0){let r=0;for(;r<t.length&&b(e,t[r])>0;r++);return r}function $o([t,e,n]){const r=at(t,e,n);if(e===kt||e===Kt){const o=[...t],u=Se(o,n,!0);return o.splice(0,u),r(o[0])||o.splice(0,1),o}else return[...ot(r,t)]}function Go([t,e,n,r,o]){const u=[...t],i=Se(u,n,!0);u.splice(0,i);const c=at(t,r,o);return at(t,e,n)(u[0])||u.splice(0,1),[...ot(c,u)]}function Bo(...t){if(t.length===3)return $o(t);if(t.length===5)return Go(t)}function zo(t){return Math.abs(t)}function qo(t){return ve(t)}function Lo(t){return t!=null&&t.constructor}function Fo(t){return(e,n)=>{const r=t(e,n);return R(r)?X(r):r}}function Qe(t){return t=Fo(t),(...e)=>{switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return S(t,e[0],e[1])}}}function Ne(t,e){const n=Me(t,e);return t-e*n}function Po(t){const e=new Map;return(...n)=>{const r=[n.length,...n],o=wt(e,r);if(o===void 0){const u=t(...n);return Ot(e,r,u),u}else return o}}function Do(t){return et(t)?t[t.length-1]:I(t)}function Yo(t){if(et(t)){const e=[...t];return e.pop(),e}else return J(t)}function Co(t,e){const n=nt(t),r=jt(t)||A;return vt((o,u,i)=>r(o,e(u),i),n,t),n}function ke(t,e){const n=nt(t),r=jt(t)||A;return vt((o,u,i)=>r(o,u,e(i)),n,t),n}function Vo(){return crypto.randomUUID()}class Uo{constructor(e){this.f=e}_deref(){return this.realized?this.v:(this.v=this.f(),this.realized=!0,this.v)}}function pt(t,e){if(e.has(t))return t;if(e.add(t),xe(t))return ke(t,r=>pt(r,e));const n=p(t);return n&&n!=d?tt(r=>pt(r,e),t):t}function Wo(t){return pt(t,new Set)}function Jo(t,e){S((n,r)=>t(r),null,e)}function Xo(...t){return dt(T(...t))}class Zo{constructor(e){this.v=e}_deref(){return this.v}}function Ho(t){return new Zo(t)}function tu(t,e){t.v=e}function v(t,e=new WeakSet){if(t==null)return"nil";if(typeof t=="number"||typeof t=="boolean")return String(t);if(typeof t=="string")return JSON.stringify(t);if(typeof t=="bigint")return`${t}N`;if(typeof t=="object"){if(e.has(t))return"#object[circular]";e.add(t);const n=p(t);let r;switch(n){case x:return`[${t.map(o=>v(o,e)).join(" ")}]`;case m:return`#{${Array.from(t).map(o=>v(o,e)).join(" ")}}`;case _:return`#js/Map {${Array.from(t.entries()).map(([o,u])=>`${v(o,e)} ${v(u,e)}`).join(", ")}}`;case D:case M:return`(${tt(o=>`${v(o,e)}`,t).join(", ")})`;default:return t.constructor&&t.constructor!==Object?`#<${t.constructor.name}>`:(r=Object.keys(t),`{${r.map(o=>`:${o} ${v(t[o],e)}`).join(", ")}}`)}}return`#object[${t.constructor.name}]`}function Ke(...t){return t.map((e,n)=>v(e)).join(" ")}function eu(...t){return console.log(Ke(...t))}return Be(nu);})();
|
|
1
|
+
var squint;(squint||={}).core=(()=>{var gt=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var De=Object.getOwnPropertyNames;var Ye=Object.prototype.hasOwnProperty;var Ue=(t,e)=>{for(var n in e)gt(t,n,{get:e[n],enumerable:!0})},Ve=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of De(e))!Ye.call(t,u)&&u!==n&>(t,u,{get:()=>e[u],enumerable:!(r=Pe(e,u))||r.enumerable});return t};var We=t=>Ve(gt({},"__esModule",{value:!0}),t);var Ro={};Ue(Ro,{Atom:()=>ce,Cons:()=>oe,Delay:()=>go,IIterable:()=>vt,IIterable__iterator:()=>ne,LazySeq:()=>Cr,NaN_QMARK_:()=>Au,PROTOCOL_SENTINEL:()=>In,_:()=>tn,_EQ_:()=>V,_GT_:()=>Ct,_GT__EQ_:()=>Ft,_LT_:()=>Je,_LT__EQ_:()=>Ze,_PLUS_:()=>He,_STAR_:()=>Xe,__protocol_satisfies:()=>en,__toFn:()=>f,_iterator:()=>re,abs:()=>so,aclone:()=>uu,add_watch:()=>ou,alength:()=>tu,any_QMARK_:()=>xu,apply:()=>le,array:()=>Ln,array_QMARK_:()=>pt,aset:()=>eu,assoc:()=>D,assoc_BANG_:()=>R,assoc_in:()=>Dt,assoc_in_BANG_:()=>Yt,atom:()=>jn,boolean$:()=>Wr,boolean_QMARK_:()=>Du,bounded_count:()=>Yu,butlast:()=>Fr,cat:()=>qe,clj__GT_js:()=>Ao,coll_QMARK_:()=>ju,comp:()=>Ut,compare:()=>Q,compare_and_set_BANG_:()=>Gn,complement:()=>H,concat:()=>he,conj:()=>cn,conj_BANG_:()=>Y,cons:()=>wn,constantly:()=>Vn,contains_QMARK_:()=>Jt,count:()=>tt,counted_QMARK_:()=>je,cycle:()=>xr,dec:()=>an,dedupe:()=>br,deref:()=>F,disj:()=>sn,disj_BANG_:()=>Wt,dissoc:()=>ln,dissoc_BANG_:()=>fn,distinct:()=>mr,distinct_QMARK_:()=>yu,doall:()=>ru,dorun:()=>nu,drop:()=>xt,drop_last:()=>Lr,drop_while:()=>Me,empty:()=>ht,empty_QMARK_:()=>Or,ensure_reduced:()=>be,es6_iterator:()=>m,even_QMARK_:()=>ae,every_QMARK_:()=>ve,every_pred:()=>su,ex_cause:()=>Gu,ex_data:()=>Tu,ex_info:()=>Bu,ex_message:()=>$u,false_QMARK_:()=>Ur,ffirst:()=>xn,filter:()=>ct,filterv:()=>bn,find:()=>Uu,first:()=>q,flatten:()=>eo,fn_QMARK_:()=>$t,fnil:()=>It,frequencies:()=>qr,get:()=>v,get_in:()=>Kt,group_by:()=>zr,identical_QMARK_:()=>fr,identity:()=>_e,ifn_QMARK_:()=>du,inc:()=>Zt,int_QMARK_:()=>J,integer_QMARK_:()=>zu,interleave:()=>de,interpose:()=>Xn,into:()=>we,into_array:()=>Ne,iterable:()=>l,iterate:()=>lu,js_keys:()=>mu,js_obj:()=>Xr,juxt:()=>au,keep:()=>Er,keep_indexed:()=>Sn,key:()=>Ae,keys:()=>Ie,keyword:()=>Eu,keyword_QMARK_:()=>Su,last:()=>yn,lazy:()=>y,list:()=>pe,list_QMARK_:()=>Wn,list_STAR_:()=>Jn,long$:()=>fo,map:()=>C,map_QMARK_:()=>Se,map_entry_QMARK_:()=>_n,map_indexed:()=>kn,mapcat:()=>Zn,mapv:()=>ft,max:()=>Ee,max_key:()=>Ju,memoize:()=>po,merge:()=>ir,merge_with:()=>cr,meta:()=>Lu,min:()=>cu,min_key:()=>Wu,mod:()=>Vu,name:()=>Qn,namespace:()=>Ru,nat_int_QMARK_:()=>Cu,neg_QMARK_:()=>Zr,neg_int_QMARK_:()=>Fu,next:()=>wt,nil_QMARK_:()=>Kn,nnext:()=>pu,not:()=>Et,not_EQ_:()=>wo,not_any_QMARK_:()=>Ir,not_empty:()=>to,not_every_QMARK_:()=>kr,nth:()=>Ht,number_QMARK_:()=>Ke,object_QMARK_:()=>Pt,odd_QMARK_:()=>Un,parse_double:()=>Hu,parse_long:()=>Zu,partial:()=>dr,partition:()=>ye,partition_all:()=>xe,partition_by:()=>or,partitionv:()=>nr,partitionv_all:()=>rr,peek:()=>ho,persistent_BANG_:()=>ro,pop:()=>_o,pos_QMARK_:()=>Hr,pos_int_QMARK_:()=>qu,pr_str:()=>Le,println:()=>pn,prn:()=>ko,qualified_keyword_QMARK_:()=>Iu,quot:()=>$e,rand:()=>Tr,rand_int:()=>Re,rand_nth:()=>$r,random_uuid:()=>yo,range:()=>Bn,re_find:()=>qn,re_matches:()=>zn,re_pattern:()=>Cn,re_seq:()=>gu,reduce:()=>O,reduce_kv:()=>Tt,reduced:()=>ot,reduced_QMARK_:()=>$,reductions:()=>An,regexp_QMARK_:()=>Ou,rem:()=>Ce,remove:()=>Mn,remove_watch:()=>iu,repeat:()=>Qt,repeatedly:()=>Br,replace:()=>jr,reset_BANG_:()=>se,reset_vals_BANG_:()=>$n,rest:()=>ut,reverse:()=>Sr,run_BANG_:()=>mo,satisfies_QMARK_:()=>nn,second:()=>dn,select_keys:()=>tr,seq:()=>T,seq_QMARK_:()=>Xt,seqable_QMARK_:()=>hn,sequential_QMARK_:()=>mt,set:()=>Dn,set_QMARK_:()=>Yn,shuffle:()=>Kr,simple_keyword_QMARK_:()=>Ku,some:()=>ke,some_QMARK_:()=>Vr,some_fn:()=>fu,sort:()=>jt,sort_by:()=>Qr,sorted_set:()=>uo,split_at:()=>Pr,split_with:()=>Dr,str:()=>Nn,string_QMARK_:()=>yt,subs:()=>Qe,subseq:()=>co,subvec:()=>Fn,swap_BANG_:()=>On,swap_vals_BANG_:()=>Tn,symbol_QMARK_:()=>Nu,system_time:()=>sr,t:()=>_u,take:()=>_t,take_last:()=>ar,take_nth:()=>_r,take_while:()=>dt,to_array:()=>hu,trampoline:()=>Ge,transduce:()=>Bt,transient$:()=>no,tree_seq:()=>Be,true_QMARK_:()=>Yr,truth_:()=>d,type:()=>lo,unchecked_add_int:()=>ku,unchecked_dec_int:()=>vu,unchecked_inc_int:()=>Mu,unchecked_int:()=>bu,unreduced:()=>Nt,update:()=>Mr,update_BANG_:()=>Ot,update_in:()=>vr,update_keys:()=>xo,update_vals:()=>Fe,val:()=>me,vals:()=>wu,var_QMARK_:()=>Qu,vec:()=>L,vector:()=>st,vector_QMARK_:()=>Pn,volatile_BANG_:()=>Mo,vreset_BANG_:()=>vo,warn_on_lazy_reusage_BANG_:()=>mn,with_meta:()=>Pu,zero_QMARK_:()=>Jr,zipmap:()=>Xu});function f(t){if(t==null||typeof t=="function")return t;const e=typeof t;return e==="string"?(n,r)=>v(n,t,r):e==="object"?(n,r)=>v(t,n,r):t}var zt=Object.prototype.hasOwnProperty;function qt(t,e,n){for(n of t.keys())if(B(n,e))return n}function B(t,e){if(t===e)return!0;if(t==null)return e==null;var n,r,u;if(t&&e&&(n=t.constructor)===e.constructor){if(n===Array){if((r=t.length)===e.length)for(;r--&&B(t[r],e[r]););return r===-1}if(n===Set){if(t.size!==e.size)return!1;for(const o of t)if(u=o,u&&typeof u=="object"&&(u=qt(e,u),!u)||!e.has(u))return!1;return!0}if(n===Map){if(t.size!==e.size)return!1;for(const o of t)if(u=o[0],u&&typeof u=="object"&&(u=qt(e,u),!u)||!B(o[1],e.get(u)))return!1;return!0}if((!n||typeof t=="object")&&!(t instanceof h)){r=0;for(const o in t)if(zt.call(t,o)&&++r&&!zt.call(e,o)||!(o in e)||!B(t[o],e[o]))return!1;return Object.keys(e).length===r}}if(t&&e&&(Array.isArray(t)||t instanceof h)&&(Array.isArray(e)||e instanceof h)){const o=t[Symbol.iterator](),i=e[Symbol.iterator]();for(;;){const c=o.next(),s=i.next();if(c.done||s.done)return!!(c.done&&s.done);if(!B(c.value,s.value))return!1}}return!1}function U(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function V(...t){return U(t,(e,n)=>B(e,n))}function Ct(...t){return U(t,(e,n)=>e>n)}function Ft(...t){return U(t,(e,n)=>e>=n)}function Je(...t){return U(t,(e,n)=>e<n)}function Ze(...t){return U(t,(e,n)=>e<=n)}function He(...t){return t.reduce((e,n)=>e+n,0)}function Xe(...t){return t.reduce((e,n)=>e*n,1)}function tn(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}const en={};function nn(t,e){return e==null?t[null]:typeof t=="symbol"?e[t]:e[t.__sym]}function rn(t,e,n){return t.set(e,n),t}function un(t,e,n){return t[e]=n,t}function Lt(t){switch(_(t)){case x:return rn;case w:case g:return un}}function R(t,e,n,...r){if(r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(_(t)){case x:t.set(e,n);for(let u=0;u<r.length;u+=2)t.set(r[u],r[u+1]);break;case w:case g:t[e]=n;for(let u=0;u<r.length;u+=2)t[r[u]]=r[u+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}const P=Symbol("meta");function A(t,e){const n=t?.[P];return n!==void 0&&(e[P]=n),e}function j(t){switch(_(t)){case x:return A(t,new Map(t));case M:return A(t,new t.constructor(t));case w:return A(t,[...t]);case g:return A(t,{...t});case E:return A(t,new G(...t));default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function D(t,e,n,...r){t||(t={});const u=j(t);return R(u,e,n,...r),u}const x=1,w=2,g=3,E=4,M=5,et=6;function nt(t){switch(t){case x:return new Map;case w:return[];case g:return{};case E:return new G;case M:return new Set;case et:return y(function*(){})}}function rt(t){return t.constructor===Object}function Pt(t){return t!=null&&rt(t)}function _(t){if(t!=null){if(rt(t))return g;if(t instanceof Map)return x;if(t instanceof Set)return M;if(t instanceof G)return E;if(Array.isArray(t))return w;if(t instanceof h)return et;if(t instanceof Z)return M;if(t instanceof Object)return g}}function on(t,e,n,r,u){r=L(r),n=n||{};const o=_(n);if(o!==x&&o!==w&&o!==g)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 s=0;s<r.length-1;s+=1){const a=r[s];let p;c instanceof Map?p=c.get(a):p=c[a],p||(p=nt(o)),i.push(p),c=p}i.push(u);for(let s=i.length-2;s>=0;s-=1)i[s]=t(i[s],r[s],i[s+1]);return i[0]}function Dt(t,e,n){return on(D,"assoc-in",t,e,n)}function Yt(t,e,n){e=L(e);var r=t;const u=_(t);for(const o of e.splice(0,e.length-1)){let i=v(r,o);i===void 0&&(i=nt(u),R(r,o,i)),r=i}return R(r,e[e.length-1],n),t}function Ut(...t){if(t=t.map(f),t.length===0)return _e;if(t.length===1)return t[0];const[e,...n]=t.slice().reverse();return function(...r){let u=e(...r);for(const o of n)u=o(u);return u}}function Vt(t,e){for(const n of e)t.add(n);return t}function Y(...t){if(t.length===0)return st();const[e,...n]=t;let r=e;switch(r==null&&(r=[]),_(r)){case M:Vt(r,n);break;case E:r.unshift(...n.reverse());break;case w:r.push(...n);break;case x:for(const u of n)Array.isArray(u)?r.set(u[0],u[1]):l(u).forEach(o=>{r.set(o[0],o[1])});break;case g:for(const u of n)Array.isArray(u)?r[u[0]]=u[1]:Object.assign(r,u);break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return r}function cn(...t){if(t.length===0)return st();const[e,...n]=t;let r=e;r==null&&(r=pe());let u,o;switch(_(r)){case M:return r instanceof Z?A(r,Vt(new r.constructor(r),n)):A(r,new r.constructor([...r,...n]));case E:return A(r,new G(...n.reverse(),...r));case w:return A(r,[...r,...n]);case x:u=new Map(r);for(const i of n)Array.isArray(i)?u.set(i[0],i[1]):l(i).forEach(c=>{u.set(c[0],c[1])});return A(r,u);case et:return y(function*(){yield*n,yield*r});case g:o={...r};for(const i of n)Array.isArray(i)?o[i[0]]=i[1]:Object.assign(o,i);return A(r,o);default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function Wt(t,...e){for(const n of e)t.delete(n);return t}function sn(t,...e){if(t==null)return t;const n=new t.constructor([...t]);return Wt(n,...e)}function Jt(t,e){switch(_(t)){case M:case x:return t.has(e);case void 0:return!1;default:return e in t}}function fn(t,...e){for(const n of e)delete t[n];return t}function ln(t,...e){if(!t)return;if(e.length===0)return t;const n=j(t);switch(_(t)){case x:for(const r of e)n.delete(r);break;default:for(const r of e)delete n[r];break}return n}function Zt(t){return t+1}function an(t){return t-1}function pn(...t){console.log(...t)}function Ht(t,e,n){const r=arguments.length>2;if(t==null)return r?n:null;if(Array.isArray(t)){if(e>=0&&e<t.length)return t[e]}else if(e>=0){const u=N(t);let o=0,i;for(;(i=u())!==null;){if(e<o+i.length)return i[e-o];o+=i.length}}if(r)return n;throw new Error("Index out of bounds: "+e)}function v(t,e,n=void 0){if(t==null)return n;let r;if(rt(t))return r=t[e],r===void 0?n:r;let u;switch(_(t)){case M:t.has(e)&&(r=e);break;case x:r=t.get(e);break;case w:r=t[e];break;default:if(u=t.get,typeof u=="function")try{r=t.get(e);break}catch{}r=t[e];break}return r!==void 0?r:n}function Xt(t){return t!=null&&!!t[Symbol.iterator]}const mt=Xt;function hn(t){return t==null||Pt(t)||!!t[Symbol.iterator]}const te=Symbol("squint.lang.map-entry");function ee(t){return t[te]=!0,t}function _n(t){return Array.isArray(t)&&t[te]===!0}function l(t){if(t==null)return[];if(t[Symbol.iterator])return t;if(t instanceof Object)return Object.entries(t).map(ee);throw new TypeError(`${t} is not iterable`)}const vt=Symbol("Iterable"),ne=Symbol.iterator;function re(t){return t[Symbol.iterator]()}const m=re;function T(t){if(t==null)return t;const e=l(t);return e.length===0||e.size===0||e[Symbol.iterator]().next().done?null:e}function q(t){if(t==null)return;if(Array.isArray(t))return t[0];if(t instanceof h)return t.force(),t.chunk===null?void 0:t.chunk[0];const[e]=l(t);return e}function dn(t){if(t instanceof h){t.force();const r=t.chunk;return r===null?void 0:r.length>1?r[1]:q(t._rest)}const[e,n]=l(t);return n}function xn(t){return q(q(t))}function ut(t){const e=Rt(t);e.force();const n=e.chunk;if(n===null)return e;if(n.length>1){const r=new h(null);return r.realized=!0,r.chunk=n.slice(1),r._rest=e._rest,r}return e._rest}class z{value;constructor(e){this.value=e}_deref(){return this.value}}function yn(t){if(t=l(t),Array.isArray(t))return t[t.length-1];const e=N(t);let n,r;for(;(r=e())!==null;)n=r[r.length-1];return n}function ot(t){return new z(t)}function $(t){return t instanceof z}function O(t,e,n){t=f(t);const r=arguments.length!==2,u=r?n:e;let o=r?e:void 0;if(Array.isArray(u)){let a=0;if(!r){if(u.length===0)return t();o=u[0],a=1}if(o instanceof z)return o.value;for(;a<u.length;a++)if(o=t(o,u[a]),o instanceof z)return o.value;return o}const i=N(u);let c=i(),s=0;if(!r){if(c===null)return t();o=c[0],s=1}if(o instanceof z)return o.value;for(;c!==null;){for(;s<c.length;s++)if(o=t(o,c[s]),o instanceof z)return o.value;c=i(),s=0}return o}function*gn(t,e){const n=e.next();n.done?yield t():yield*ue(t,n.value,e)}function*ue(t,e,n){let r=e,u=n;for(;;){if($(r)){yield r.value;return}else yield r;const o=u.next();if(o.done)break;r=t(r,o.value)}}function An(t,e,n){if(t=f(t),arguments.length===2){const u=m(l(e));return y(function*(){yield*gn(t,u)})}const r=m(l(n));return y(function*(){yield*ue(t,e,r)})}function mn(){console.warn("warn-on-lazy-reusage! is deprecated and does nothing: lazy values are now cached.")}const it=32;class h{constructor(e){this.step=e,this.realized=!1,this.chunk=null,this._rest=null}force(){if(!this.realized){this.realized=!0;const e=this.step();this.step=null,e!=null&&(this.chunk=e[0],this._rest=new h(e[1]))}return this}[Symbol.iterator](){let e=this,n=0;return{next(){for(;;){e.force();const r=e.chunk;if(r===null)return{value:void 0,done:!0};if(n<r.length)return{value:r[n++],done:!1};e=e._rest,n=0}},[Symbol.iterator](){return this}}}}h.prototype[vt]=!0;function kt(t){const e=()=>{const n=t.next();return n.done?null:[[n.value],e]};return e}function y(t){return new h(kt(t()))}function S(t,e){const n=m(l(t));return y(()=>e(n))}function Rt(t){if(t instanceof h)return t;if(Array.isArray(t)){const e=n=>()=>{if(n>=t.length)return null;const r=Math.min(n+it,t.length);return[t.slice(n,r),e(r)]};return new h(e(0))}return new h(kt(m(l(t))))}function N(t){if(t instanceof h){let n=t;return()=>{if(n===null)return null;n.force();const r=n.chunk;return n=r===null?null:n._rest,r}}const e=m(l(t));return()=>{const n=[];for(let r=0;r<it;r++){const u=e.next();if(u.done)break;n.push(u.value)}return n.length===0?null:n}}function W(t,e){const n=Rt(t),r=(u,o)=>()=>{let i=u,c=o;for(;;){i.force();const s=i.chunk;if(s===null)return null;const a=e(s,c),p=i._rest;if(c+=s.length,a.length!==0)return[a,r(p,c)];i=p}};return new h(r(n,0))}class oe{constructor(e,n){this.x=e,this.coll=n}[Symbol.iterator](){const e=this.x;let n=this.coll,r=!1,u=null;return{next(){return r?(u||(u=m(l(n)),n=null),u.next()):(r=!0,{value:e,done:!1})},[Symbol.iterator](){return this}}}}function wn(t,e){return new oe(t,e)}function C(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 W(e[0],n=>{const r=new Array(n.length);for(let u=0;u<n.length;u++)r[u]=t(n[u]);return r});default:{const n=e.map(r=>m(l(r)));return y(function*(){for(;;){const r=[];for(const u of n){const o=u.next();if(o.done)return;r.push(o.value)}yield t(...r)}})}}}function b(t){return e=>{const n=t(e);return(...r)=>r.length===0?e():r.length===1?e(r[0]):n(r[0],r[1])}}function ie(t){return b(e=>(n,r)=>d(t(r))?e(n,r):n)}function ct(t,e){return arguments.length===1?ie(t):(t=f(t),W(e,n=>{const r=[];for(let u=0;u<n.length;u++){const o=n[u];d(t(o))&&r.push(o)}return r}))}function bn(t,e){return lt([],ct(t,e))}function Mn(t,e){return arguments.length===1?ie(H(t)):ct(H(t),e)}function vn(t){return b(e=>{let n=-1;return(r,u)=>e(r,t(++n,u))})}function kn(t,e){return t=f(t),arguments.length===1?vn(t):W(e,(n,r)=>{const u=new Array(n.length);for(let o=0;o<n.length;o++)u[o]=t(r+o,n[o]);return u})}function Rn(t,e){return t=f(t),W(e,(n,r)=>{const u=[];for(let o=0;o<n.length;o++){const i=t(r+o,n[o]);d(i)&&u.push(i)}return u})}function En(t){return b(e=>{let n=-1;return(r,u)=>{const o=t(++n,u);return o==null?r:e(r,o)}})}function Sn(t,e){return arguments.length===1?En(t):Rn(t,e)}function Nn(...t){return t.join("")}function Qn(t){if(typeof t=="string"){const e=t.indexOf("/");return e>=1?t.slice(e+1):t}throw new Error("Doesn't support name: "+typeof t)}function Et(t){return!d(t)}function Kn(t){return t==null}const In={};class ce{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 u of Object.entries(this._watches)){const o=u[0],i=u[1];i(o,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 jn(t){return new ce(t)}function F(t){return t._deref()}function se(t,e){t._reset_BANG_(e)}function On(t,e,...n){e=f(e);const r=e(F(t),...n);return se(t,r),r}function Tn(t,e,...n){const r=F(t);e=f(e);const u=e(r,...n);return t._reset_BANG_(u),[r,u]}function $n(t,e){const n=F(t);return t._reset_BANG_(e),[n,e]}function Gn(t,e,n){return F(t)===e?(t._reset_BANG_(n),!0):!1}function Bn(t,e,n){let r=t,u=e,o=n;e===void 0&&(r=0,u=t);const i=r||0;o=n??1;const c=o>=0,s=p=>u===void 0||c&&p<u||!c&&u<p,a=p=>()=>{if(!s(p))return null;const k=[];let K=p;for(;k.length<it&&s(K);)k.push(K),K+=o;return[k,a(K)]};return new h(a(i))}function zn(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function qn(t,e){if(yt(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 Cn(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 Fn(t,e,n){return t.slice(e,n)}function st(...t){return t}const Ln=st;function Pn(t){return _(t)===w}function ft(...t){if(t.length===2){const[n,r]=t,u=f(n),o=l(r);if(Array.isArray(o)){const i=new Array(o.length);for(var e=0;e<o.length;e++)i[e]=u(o[e]);return i}else{const i=[],c=N(o);let s;for(;(s=c())!==null;)for(let a=0;a<s.length;a++)i.push(u(s[a]));return i}}return[...C(...t)]}function lt(t,e){if(e instanceof h){let n=e;for(;;){n.force();const r=n.chunk;if(r===null)return t;Array.prototype.push.apply(t,r),n=n._rest}}for(const n of l(e))t.push(n);return t}function at(t){return t instanceof h?lt([],t):[...l(t)]}function L(t){return pt(t)?t:lt([],t)}function Dn(t){return new Set(l(t))}function Yn(t){return _(t)===M}const fe=Symbol("IApply__apply");function le(t,...e){t=f(t);const n=e.slice(0,e.length-1),r=l(e[e.length-1]),u=t[fe];return u?u(...n,r):t(...n,...r)}function ae(t){return t%2==0}function Un(t){return!ae(t)}function H(t){return t=f(t),(...e)=>Et(t(...e))}function Vn(t){return(...e)=>t}class G extends Array{constructor(...e){super(),this.push(...e)}}function Wn(t){return _(t)===E}function pe(...t){return new G(...t)}function Jn(...t){const e=t.pop();return new G(...t,...l(e))}function pt(t){return Array.isArray(t)}const At=Symbol("concat-done");function St(t){const e=Array.isArray(t),n=e?t.slice():null,r=e?null:m(l(t));let u=0;const o=()=>{if(e){if(u>=n.length)return At;const s=n[u];return n[u]=null,u++,s}const c=r.next();return c.done?At:c.value},i=c=>()=>{for(;;){if(c!==null)if(c instanceof h){if(c.force(),c.chunk!==null)return[c.chunk,i(c._rest)];c=null}else{const a=c.a,p=c.pos;if(p<a.length){const k=Math.min(p+it,a.length);return[a.slice(p,k),i({a,pos:k})]}c=null}const s=o();if(s===At)return null;c=s instanceof h?s:Array.isArray(s)?{a:s,pos:0}:Rt(s)}};return new h(i(null))}function he(...t){return St(t)}he[fe]=t=>St(t);function Zn(t,...e){return e.length===0?Ut(C(t),qe):St(C(t,...e))}function _e(t){return t}function de(...t){const e=t.map(n=>m(l(n)));return y(function*(){for(;;){const n=[];for(const r of e){const u=r.next();if(u.done)return;n.push(u.value)}yield*n}})}function Hn(t){return b(e=>{let n=!1;return(r,u)=>{if(!n)return n=!0,e(r,u);const o=e(r,t);return $(o)?o:e(o,u)}})}function Xn(t,e){return arguments.length===1?Hn(t):xt(1,de(Qt(t),e))}function tr(t,e){const n=_(t),r=nt(n)||{};for(const u of e){const o=v(t,u);o!==void 0&&R(r,u,o)}return r}function Nt(t){return $(t)?F(t):t}function er(t){return e=>{let n=[];return(...r)=>{let u,o;switch(r.length){case 0:return e();case 1:return u=r[0],n.length!==0&&(o=[...n],n=[],u=Nt(e(u,o))),e(u);case 2:return u=r[0],n.push(r[1]),t===n.length?(o=[...n],n=[],e(u,o)):u}}}}function xe(t,...e){if(arguments.length===1)return er(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),ge(t,n,[],r,!0)}function ye(t,...e){let n=t,r=[],u=e[0];return e.length===2?[n,u]=e:e.length>2&&([n,r,u]=e),ge(t,n,r,u,!1)}const nr=ye,rr=xe;function ge(t,e,n,r,u){return S(r,function*(o){let i=[],c=0;for(const s of o)c<t&&(i.push(s),i.length===t&&(yield i,i=e<t?i.slice(e):[])),c++,c===e&&(c=0);i.length>0&&(i.length===t||u?yield i:n.length&&(i.push(...n.slice(0,t-i.length)),yield i))})}function ur(t){return e=>{let n=[];const r={};let u=r;return(...o)=>{const i=o.length;if(i===0)return e();if(i===1){let c=o[0];if(n.length!==0){const s=[...n];n=[],c=Nt(e(c,s))}return e(c)}if(i===2){const c=o[0],s=o[1],a=u,p=t(s);if(u=p,a===r||p===a)return n.push(s),c;{const k=[...n];n=[];const K=e(c,k);return $(K)||n.push(s),K}}}}}function or(t,e){if(t=f(t),arguments.length===1)return ur(t);const n=m(e);return y(function*(){const r=n.next();r.done&&(yield*null);const u=r.value;let o=t(u),i=[u],c=[];for(;;){const s=n.next();if(s.done){yield i;break}const a=s.value,p=t(a);o==p?i.push(a):(yield i,c.push(a),i=c,o=p,c=[])}})}function ht(t){const e=_(t);if(e!=null)return A(t,nt(e));throw new Error(`Can't create empty of ${typeof t}`)}function ir(...t){const e=t[0];let n;return e==null?n={}:n=we(ht(e),e),Y(n,...t.slice(1))}function Ae(t){return t[0]}function me(t){return t[1]}function cr(t,...e){t=f(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(o,i)=>{const c=Ae(i),s=me(i);return Jt(o,c)?D(o,c,t(v(o,c),s)):D(o,c,s)};return O((o,i)=>O(r,o||{},T(i)),e)}else return null}function sr(){return performance.now()}function we(...t){let e,n,r,u,o;switch(t.length){case 0:return[];case 1:return t[0];case 2:return e=t[0]??[],Array.isArray(e)&&!(e instanceof G)?lt(j(e),t[1]):O(Y,j(e),t[1]);case 3:return e=t[0],n=t[1],r=t[2],u=j(e),o=(i,c)=>c===void 0?i:Y(i,c),Bt(n,o,u,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function fr(t,e){return t===e}function Qt(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);return{[vt]:!0,[ne]: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 be(t){return $(t)?t:ot(t)}function lr(t){return b(e=>{let n=t;return(r,u)=>{const o=--n+1;return o>0&&(r=e(r,u)),o>1?r:be(r)}})}function _t(t,e){return arguments.length===1?lr(t):S(e,function*(n){let r=t-1;for(const u of n)if(r-->=0&&(yield u),r<0)return})}function ar(t,e){if(t<=0)return null;if(Array.isArray(e))return T(e.slice(-t));{const n=new Array(t);let r=0;for(const u of l(e))n[r%t]=u,r++;return r%t!==0&&r>=t?n.slice(r%t).concat(n.slice(0,r%t)):(n.length=Math.min(r,t),n)}}function pr(t){return b(e=>(n,r)=>d(t(r))?e(n,r):ot(n))}function dt(t,e){return t=f(t),arguments.length===1?pr(t):S(e,function*(n){for(const r of n)if(d(t(r)))yield r;else return})}function hr(t){return b(e=>{let n=-1;return(r,u)=>Ce(++n,t)===0?e(r,u):r})}function _r(t,e){return arguments.length===1?hr(t):t<=0?Qt(q(e)):S(e,function*(n){let r=0;for(const u of n)r%t===0&&(yield u),r++})}function dr(t,...e){return t=f(t),function(...n){return t(...e,...n)}}function xr(t){return y(function*(){for(;;)yield*t})}function yr(t){return b(e=>{let n=t;return(r,u)=>n-- >0?r:e(r,u)})}function xt(t,e){return arguments.length===1?yr(t):S(e,function*(n){for(let r=0;r<t;r++)n.next();yield*n})}function gr(t){return b(e=>{let n=!0;return(r,u)=>n&&d(t(u))?r:(n=!1,e(r,u))})}function Me(t,e){return t=f(t),arguments.length===1?gr(t):S(e,function*(n){for(;;){const r=n.next();if(r.done)break;const u=r.value;if(!d(t(u))){yield u;break}}yield*n})}function Ar(){return b(t=>{const e=new Set;return(n,r)=>e.has(r)?n:(e.add(r),t(n,r))})}function mr(t){return arguments.length===0?Ar():S(t,function*(e){const n=new Set;for(const r of e)n.has(r)||(yield r),n.add(r)})}const X=Symbol("dedupe-none");function wr(){return b(t=>{let e=X;return(n,r)=>{const u=e!==X&&d(V(e,r));return e=r,u?n:t(n,r)}})}function br(t){return arguments.length===0?wr():S(t,function*(e){let n=X;for(const r of e)(n===X||!d(V(n,r)))&&(yield r),n=r})}function Mr(t,e,n,...r){return n=f(n),D(t,e,n(v(t,e),...r))}function Kt(t,e,n){let r=t;for(const u of e)r=v(r,u);return r===void 0?n:r}function vr(t,e,n,...r){return n=f(n),Dt(t,e,n(Kt(t,e),...r))}function It(t,e,...n){return t=f(t),function(r,...u){return r?t(r,...n,...u):t(e,...n,...u)}}function ve(t,e){if(t=f(t),Array.isArray(e)){for(let u=0;u<e.length;u++)if(!t(e[u]))return!1;return!0}const n=N(e);let r;for(;(r=n())!==null;)for(let u=0;u<r.length;u++)if(!t(r[u]))return!1;return!0}function kr(t,e){return!ve(t,e)}function Rr(t){return b(e=>(n,r)=>{const u=t(r);return u==null?n:e(n,u)})}function Er(t,e){return t=f(t),arguments.length===1?Rr(t):W(e,n=>{const r=[];for(let u=0;u<n.length;u++){const o=t(n[u]);d(o)&&r.push(o)}return r})}function Sr(t){return at(t).reverse()}function jt(t,e){return arguments.length===1&&(e=t,t=void 0),t=f(t),at(e).sort(t||Q)}function Nr(t){return t===Q?t:(e,n)=>{const r=t(e,n);return Ke(r)?r:r?-1:t(n,e)?1:0}}function Qr(t,e,n){return arguments.length===2&&(n=e,e=Q),t=f(t),e=f(e),jt((r,u)=>{const o=Nr(e),i=t(r),c=t(u);return o(i,c)},n)}function Kr(t){const e=at(t);let n=e.length;for(;n;){const r=Math.floor(Math.random()*n--),u=e[n];e[n]=e[r],e[r]=u}return e}function ke(t,e){if(t=f(t),Array.isArray(e)){for(let u=0;u<e.length;u++){const o=t(e[u]);if(d(o))return o}return}const n=N(e);let r;for(;(r=n())!==null;)for(let u=0;u<r.length;u++){const o=t(r[u]);if(d(o))return o}}function Ir(t,e){return t=f(t),!ke(t,e)}function jr(t,e){return(Array.isArray(e)?ft:C)(r=>{const u=t[r];return u!==void 0?u:r},e)}function Or(t){return!T(t)}function Tr(t){return t===void 0&&(t=1),Math.random()*t}function Re(t){return Math.floor(Math.random()*t)}function $r(t){const e=Re(tt(t));return Ht(t,e)}function Gr(t){return y(function*(){for(;;)yield t()})}function Br(t,e){arguments.length===1&&(e=t,t=void 0);const n=Gr(e);return t?_t(t,n):n}function Ot(t,e,n,...r){n=f(n);const u=v(t,e);return R(t,e,n(u,...r))}function zr(t,e){t=f(t);const n={};for(const r of l(e)){const u=t(r);Ot(n,u,It(Y,[]),r)}return n}function qr(t){const e={},n=It(Zt,0);for(const r of l(t))Ot(e,r,n);return e}class Cr extends h{constructor(e){super(()=>kt(m(l(e())))())}}function Fr(t){const e=at(t);return e.pop(),e.length>0?e:null}function Lr(...t){const[e,n]=t.length>1?t:[1,t[0]];return C((r,u)=>r,n,xt(e,n))}function Pr(t,e){return[_t(t,e),xt(t,e)]}function Dr(t,e){return[dt(t,e),Me(t,e)]}function tt(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;const n=N(t);let r=0,u;for(;(u=n())!==null;)r+=u.length;return r}function Yr(t){return t===!0}function Ur(t){return t===!1}function Vr(t){return t!=null}function Wr(t){return!!t}function Jr(t){return t===0}function Zr(t){return t<0}function Hr(t){return t>0}function Xr(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function tu(t){return t.length}function eu(t,e,n,...r){if(r.length==0)return t[e]=n,n;{const u=[e,n,...r],o=u[u.length-1];let i=t,c=0;const s=u.length-2;for(;c<s;c++)i=i[u[c]];return i[u[c]]=o,n}}function nu(t){if(t instanceof h){const e=N(t);for(;e()!==null;);return null}for(const e of l(t));return null}function ru(t){return L(t)}function uu(t){return[...t]}function ou(t,e,n){return t._add_watch(e,n)}function iu(t,e){return t._remove_watch(e)}function Tt(t,e,n){if(!n)return e;var r=e;for(const u of l(n))r=t(r,u[0],u[1]);return r}function Ee(t,e,...n){return e==null?t:Math.max(t,e,...n)}function cu(t,e,...n){return e==null?t:Math.min(t,e,...n)}function Se(t){return t==null?!1:!!(rt(t)||t instanceof Map)}function su(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function fu(...t){return(...e)=>{for(const n of t)for(const r of e){const u=n(r);if(u)return u}}}function Ne(t,e){return L(e||t)}function lu(t,e){var n=e;return y(function*(){for(;;)yield n,n=t(n)})}function au(...t){return t=t.map(f),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function wt(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return T(ut(t))}function pu(t){return wt(wt(t))}function Q(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"||n==="boolean"&&r==="boolean")return t===e?0:t<e?-1:1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length<e.length)return-1;if(t.length>e.length)return 1;for(let u=0;u<t.length;u++){const o=Q(t[u],e[u]);if(o!=0)return o}return 0}else throw new Error(`comparing ${n} to ${r}`)}}function hu(t){return Ne(t)}function d(t){return t!=null&&t!==!1}const _u=d;function Qe(t,e,n){return t.substring(e,n)}function $t(t){return typeof t=="function"}function du(t){return $t(t)}function xu(t){return!0}function yu(t,...e){if(e.length===0)return!0;const n=[t];for(const r of e){for(const u of n)if(d(V(u,r)))return!1;n.push(r)}return!0}function gu(t,e){return y(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:L(n);const o=n.index+Ee(1,r.length);if(o>e.length)break;e=Qe(e,o)}else break}})}function Au(t){return Number.isNaN(t)}function Ke(t){return typeof t=="number"}function Ie(t){if(t==null)return;switch(_(t)){case g:return Object.keys(t);case x:return Array.from(t.keys())}}function mu(t){return Ie(t)}function wu(t){if(t==null)return;switch(_(t)){case g:return Object.values(t);case x:return Array.from(t.values())}}function yt(t){return typeof t=="string"}function bu(t){return Math.trunc(t)}function Mu(t){return t+1}function vu(t){return t-1}function ku(t,e){return t+e}function Ru(t){const e=t.indexOf("/");return e>=1?t.slice(0,e):null}function Eu(t,e){return e!==void 0?(t!=null?t+"/":"")+e:t}function Su(t){return typeof t=="string"}function Nu(t){return typeof t=="string"}function Qu(t){return!1}function Ku(t){return typeof t=="string"&&!t.includes("/")}function Iu(t){return typeof t=="string"&&t.includes("/")}function ju(t){return _(t)!=null}function Ou(t){return t instanceof RegExp}class Gt extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function Tu(t){return t instanceof Gt?t._data:null}function $u(t){return t instanceof Error?t.message:null}function Gu(t){return t instanceof Gt?t._cause:null}function Bu(t,e,n){return new Gt(t,e,n)}function J(t){return Number.isInteger(t)}const zu=J;function qu(t){return J(t)&&t>0}function Cu(t){return J(t)&&t>-1}function Fu(t){return J(t)&&t<0}function Lu(t){return t instanceof Object?t[P]:null}function Pu(t,e){if(typeof t=="function"){const r=function(...u){return t.apply(this,u)};return r[P]=e,r}const n=j(t);return n[P]=e,n}function Du(t){return t===!0||t===!1}function je(t){switch(_(t)){case w:case x:case g:case E:case M:return!0}return!1}function Yu(t,e){return je(e)?tt(e):tt(_t(t,e))}function Uu(t,e){const n=v(t,e);if(n!==void 0)return ee([e,n])}function Vu(t,e){return(t%e+e)%e}function Wu(t,e,...n){if(n.length==0)return e;var r=t(e),u=e;return n.forEach(o=>{var i=t(o);i<=r&&(r=i,u=o)}),u}function Ju(t,e,...n){if(n.length==0)return e;var r=t(e),u=e;return n.forEach(o=>{var i=t(o);i>=r&&(r=i,u=o)}),u}function Oe(t){throw new Error(`Expected string, got: ${typeof t}`)}function Zu(t){if(yt(t)){if(/^[+-]?\d+$/.test(t)){const e=parseInt(t);if(Number.MIN_SAFE_INTEGER<=e&&e<=Number.MAX_SAFE_INTEGER)return e}return null}return Oe(t)}function Hu(t){return yt(t)?/^[\x00-\x20]*[+-]?NaN[\x00-\x20]*$/.test(t)?NaN:/^[\x00-\x20]*[+-]?(Infinity|((\d+\.?\d*|\.\d+)([eE][+-]?\d+)?)[dDfF]?)[\x00-\x20]*$/.test(t)?parseFloat(t):null:Oe(t)}function Te(t){return t>=0?Math.floor(t):Math.ceil(t)}function $e(t,e){const n=t%e;return Te((t-n)/e)}function Ge(t,...e){if(e.length==0)for(;;){const n=t();if(d($t(n))){t=n;continue}else return n}else return Ge(function(){return le(t,e)})}function Bt(t,...e){switch(e.length){case 2:{const n=e[0],r=e[1];return Bt(t,n,n(),r)}default:{let n=e[0];const r=e[1],u=e[2];n=t(n);const o=O(n,r,u);return n(o)}}}function Xu(t,e){const n={},r=l(t)[Symbol.iterator](),u=l(e)[Symbol.iterator]();let o,i;for(;o=r.next(),!(o.done||(i=u.next(),i.done));)n[o.value]=i.value;return n}function to(t){return T(t)?t:null}function Be(t,e,n){const r=function*(u){if(yield u,d(t(u)))for(const o of l(e(u)))yield*r(o)};return y(function*(){yield*r(n)})}function eo(t){return ct(H(mt),ut(Be(mt,T,t)))}function no(t){return j(t)}function ro(t){return t}class Z{constructor(e){e instanceof Z||(e=jt(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 u=0;u<n.length;u++)if(Q(e,n[u])<=0){n.splice(u,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 uo(...t){return new Z(t)}function bt(t,e,n){return r=>e(Q(r,n),0)}function ze(t,e,n=!0){let r=0;for(;r<t.length&&Q(e,t[r])>0;r++);return r}function oo([t,e,n]){const r=bt(t,e,n);if(e===Ct||e===Ft){const u=[...t],o=ze(u,n,!0);return u.splice(0,o),r(u[0])||u.splice(0,1),u}else return[...dt(r,t)]}function io([t,e,n,r,u]){const o=[...t],i=ze(o,n,!0);o.splice(0,i);const c=bt(t,r,u);return bt(t,e,n)(o[0])||o.splice(0,1),[...dt(c,o)]}function co(...t){if(t.length===3)return oo(t);if(t.length===5)return io(t)}function so(t){return Math.abs(t)}function fo(t){return Te(t)}function lo(t){return t!=null&&t.constructor}function ao(t){return(e,n)=>{const r=t(e,n);return $(r)?ot(r):r}}function qe(t){return t=ao(t),(...e)=>{switch(e.length){case 0:return t();case 1:return t(e[0]);case 2:return O(t,e[0],e[1])}}}function Ce(t,e){const n=$e(t,e);return t-e*n}function po(t){const e=new Map;return(...n)=>{const r=[n.length,...n],u=Kt(e,r);if(u===void 0){const o=t(...n);return Yt(e,r,o),o}else return u}}function ho(t){return pt(t)?t[t.length-1]:q(t)}function _o(t){if(pt(t)){const e=[...t];return e.pop(),e}else return ut(t)}function xo(t,e){const n=ht(t),r=Lt(t)||R;return Tt((u,o,i)=>r(u,e(o),i),n,t),n}function Fe(t,e){const n=ht(t),r=Lt(t)||R;return Tt((u,o,i)=>r(u,o,e(i)),n,t),n}function yo(){return crypto.randomUUID()}class go{constructor(e){this.f=e}_deref(){return this.realized?this.v:(this.v=this.f(),this.realized=!0,this.v)}}function Mt(t,e){if(e.has(t))return t;if(e.add(t),Se(t))return Fe(t,r=>Mt(r,e));const n=_(t);return n&&n!=g?ft(r=>Mt(r,e),t):t}function Ao(t){return Mt(t,new Set)}function mo(t,e){O((n,r)=>t(r),null,e)}function wo(...t){return Et(V(...t))}class bo{constructor(e){this.v=e}_deref(){return this.v}}function Mo(t){return new bo(t)}function vo(t,e){return t.v=e,e}function I(t,e=new WeakSet){if(t==null)return"nil";if(typeof t=="number")return t===1/0?"##Inf":t===-1/0?"##-Inf":Number.isNaN(t)?"##NaN":String(t);if(typeof t=="boolean")return String(t);if(typeof t=="string")return JSON.stringify(t);if(typeof t=="bigint")return`${t}N`;if(typeof t=="object"){if(e.has(t))return"#object[circular]";e.add(t);const n=_(t);let r;switch(n){case w:return`[${t.map(u=>I(u,e)).join(" ")}]`;case M:return`#{${Array.from(t).map(u=>I(u,e)).join(" ")}}`;case x:return`#js/Map {${Array.from(t.entries()).map(([u,o])=>`${I(u,e)} ${I(o,e)}`).join(", ")}}`;case et:case E:return`(${ft(u=>`${I(u,e)}`,t).join(", ")})`;default:return t.constructor&&t.constructor!==Object?`#<${t.constructor.name}>`:(r=Object.keys(t),`{${r.map(u=>`:${u} ${I(t[u],e)}`).join(", ")}}`)}}return`#object[${t.constructor.name}]`}function Le(...t){return t.map((e,n)=>I(e)).join(" ")}function ko(...t){return console.log(Le(...t))}return We(Ro);})();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "squint-cljs",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.13.194",
|
|
6
6
|
"files": [
|
|
7
7
|
"core.js",
|
|
8
8
|
"src/squint/core.js",
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
"src/squint/set.js",
|
|
12
12
|
"src/squint/html.js",
|
|
13
13
|
"src/squint/math.js",
|
|
14
|
+
"src/squint/walk.js",
|
|
14
15
|
"src/squint/multi.js",
|
|
15
16
|
"src/squint/test.js",
|
|
16
17
|
"lib",
|
|
@@ -60,6 +61,7 @@
|
|
|
60
61
|
"./src/squint/core.js": "./src/squint/core.js",
|
|
61
62
|
"./src/squint/set.js": "./src/squint/set.js",
|
|
62
63
|
"./src/squint/math.js": "./src/squint/math.js",
|
|
64
|
+
"./src/squint/walk.js": "./src/squint/walk.js",
|
|
63
65
|
"./src/squint/string.js": "./src/squint/string.js",
|
|
64
66
|
"./node-api.js": "./node-api.js",
|
|
65
67
|
"./vite": "./vite.js",
|