squint-cljs 0.14.201 → 0.14.203
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 +3 -0
- package/lib/cli.js +115 -113
- package/lib/cljs.pprint.js +262 -262
- package/lib/compiler.js +1400 -1367
- package/lib/compiler.node.js +45 -45
- package/lib/compiler.sci.js +1280 -1281
- package/lib/node.nrepl_server.js +29 -29
- package/lib/squint.core.umd.js +5 -3
- package/package.json +3 -1
- package/src/squint/core.js +743 -51
- package/src/squint/multi.js +9 -1
- package/src/squint/record.js +103 -0
- package/src/squint/set.js +142 -46
package/lib/node.nrepl_server.js
CHANGED
|
@@ -4,32 +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
|
-
$APP.
|
|
10
|
-
$APP.
|
|
11
|
-
$APP.
|
|
12
|
-
"\n;return [undefined];";return $APP.
|
|
13
|
-
k=$APP.m(k)?"Open "+$APP.I.g(k)+" in a browser tab.":"Open the dev server URL in a browser tab.";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.
|
|
14
|
-
new Set;;)if(a!=null){for(var c=$APP.u(Object.getOwnPropertyNames(a)),d=null,e=0,f=0;;)if(f<e){var h=d.da(null,f);b.add(h);f+=1}else if(c=$APP.u(c))d=c,$APP.
|
|
15
|
-
Array.from(a));if(c==null)return[];var d="js/"+$APP.I.g(a.length>0?""+$APP.I.g(a.join("."))+".":null);return $APP.
|
|
16
|
-
setTimeout(function(){if($APP.m($APP.
|
|
17
|
-
b){var c=$APP.
|
|
18
|
-
b.h(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.H(null,2,["ns",""+$APP.I.g(
|
|
19
|
-
e:""+$APP.I.g(
|
|
20
|
-
p)},k),$APP.A(["type",$APP.m(k)?"function":"variable"],0));return $APP.m(l)?$APP.
|
|
21
|
-
"done"],null)}a=new $APP.H(null,1,["status",a],null);return b.h?b.h(c,a):b.call(null,c,a)},
|
|
22
|
-
0));b.setNoDelay(!0);var c=
|
|
23
|
-
n),c(k,d),n+=1;else if(f=$APP.u(f))h=f,$APP.
|
|
24
|
-
"lookup","lookup",1225356838),
|
|
25
|
-
"print","nrepl.middleware.print/print",-1616742548),
|
|
26
|
-
$APP.I.g(
|
|
27
|
-
e+=1;else break;return
|
|
28
|
-
var
|
|
29
|
-
c=$APP.z.j(c,1,null);return""+$APP.I.g(
|
|
30
|
-
var
|
|
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",
|
|
32
|
-
a=$APP.
|
|
33
|
-
Array.from(f)))));f=new $APP.H(null,2,["completions",f,"status",new $APP.D(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.
|
|
34
|
-
$APP.
|
|
35
|
-
export const handleBrowserMessage=function(a){a=typeof a==="string"?JSON.parse(a):a;var b=a.id,c=$APP.
|
|
7
|
+
var R7=function(a,b){a=a.indexOf(b);if(a<0)throw Error("out of input");return a},S7=function(a,b){if(a.length<b)throw Error("out of input");return a.slice(b)},T7=function(a,b){if(b>a.length)throw Error("out of input");return a.slice(0,b)},U7=function(a){return console.debug($APP.Eo.h(" ",a))},mta=function(a){return function(b,c){b=$APP.We(b);var d=$APP.Td.h(b,$APP.fr),e=$APP.Td.h(b,V7);c=$APP.zh.j(c,"id",d);c=$APP.m(e)?$APP.zh.j(c,"session",e):c;return a.h?a.h(b,c):a.call(null,b,c)}},ota=function(){var a=
|
|
8
|
+
nta;return function(b,c){b=$APP.qm.j(b,W7,$APP.fi);return a.h?a.h(b,c):a.call(null,b,c)}},qta=function(){var a=pta();return function(b,c){U7($APP.A(["request",b],0));return a.h?a.h(b,c):a.call(null,b,c)}},rta=function(a){return function(b,c){U7($APP.A(["response",c],0));return a.h?a.h(b,c):a.call(null,b,c)}},pta=function(){var a=ota();return function(b,c){return a.h?a.h(b,c):a.call(null,b,c)}},X7=function(a){return $APP.zh.j($APP.Kh(new $APP.D(null,3,5,$APP.G,["major","minor","incremental"],null),
|
|
9
|
+
$APP.Zs.g(a.split("."))),"version-string",a)},$7=function(){var a=function(){var b=$APP.Fb(Y7);b=b==null?null:$APP.Cm.g(b);b=b==null?null:$APP.Fb(b);return b==null?null:$APP.Sk.g(b)}();if($APP.m(a))return a;a=function(){var b=$APP.Fb(Z7);b=b==null?null:$APP.Fb(b);return b==null?null:$APP.Sk.g(b)}();return $APP.m(a)?a:$APP.Zo},sta=function(a,b,c){if($APP.m(a)){var d=a8.g?a8.g(a):a8.call(null,a);if($APP.m(d)){var e=$APP.We(b);a=$APP.Td.h(e,$APP.z7);b=$APP.Td.h(e,$APP.t7);e=$APP.Td.h(e,$APP.B7);var f=
|
|
10
|
+
$APP.Xh,h=$APP.Vh,k=$APP.T2;$APP.Xh=b;$APP.Vh=e;$APP.T2=a;try{return Promise.resolve(function(){var l=new $APP.Aa,n=$APP.Ba,t=$APP.Ca;$APP.Ba=!0;$APP.Ca=function(q){return l.append(q)};try{d.g?d.g(c):d.call(null,c)}finally{$APP.Ca=t,$APP.Ba=n}return""+$APP.I.g(l)}())}finally{$APP.T2=k,$APP.Vh=h,$APP.Xh=f}}else return U7($APP.A(["Pretty-Printing is only supported for cider.nrepl.pprint/pprint"],0)),$APP.gH(c)}else return $APP.gH(c)},tta=function(a,b){var c=function(){var f=$APP.zG();f=f==null?null:
|
|
11
|
+
$APP.Ep.g(f);return f==null?null:$APP.zh.j(f,$APP.Vs,!0)}(),d=$APP.m(b)?$APP.mi.g(b):null;b=function(){var f=new $APP.H(null,5,[$APP.Fo,$APP.Ps,$APP.Us,!0,$APP.sq,!0,$APP.No,!0,$APP.fq,$APP.m($APP.Fb(b8))?null:$APP.bH],null);f=$APP.m(c)?$APP.zh.j(f,$APP.Ep,c):f;f=$APP.m($APP.Fb(Z7))?$APP.zh.j(f,$APP.Cm,$APP.Fb(Z7)):f;f=$APP.m(d)?$APP.zh.j(f,$APP.V,d):f;var h=$APP.Fb(Y7);return $APP.Ss?$APP.Ss(a,f,h):$APP.wG.call(null,a,f,h)}();b=$APP.We(b);var e=$APP.Td.h(b,$APP.Ys);$APP.vf(Y7,b);b=""+$APP.I.g(e)+
|
|
12
|
+
"\n;return [undefined];";return $APP.jp("(async function () {\n%s\n}) ()","%s",b)},c8=function(a,b){return Promise.resolve(eval(a)).then(function(c){c=c[0];return sta(uta.g(b),vta.g(b),c)})},wta=function(a,b){return new Promise(function(c,d){var e=$APP.fr.g(b);$APP.Bi.A(d8,$APP.zh,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.Td.h($APP.Fb(d8),e))){$APP.Bi.j(d8,$APP.Ak,e);var k=$APP.Fb(e8);k=$APP.m(k)?k.o?k.o():k.call(null):null;
|
|
13
|
+
k=$APP.m(k)?"Open "+$APP.I.g(k)+" in a browser tab.":"Open the dev server URL in a browser tab.";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.Fb(b8);if($APP.m(f)){var h={op:"eval",code:a,id:e,session:V7.g(b)};return f.g?f.g(h):f.call(null,h)}$APP.Bi.j(d8,$APP.Ak,e);f=Error("No browser transport connected");return d.g?d.g(f):d.call(null,f)})},xta=function(a){for(var b=
|
|
14
|
+
new Set;;)if(a!=null){for(var c=$APP.u(Object.getOwnPropertyNames(a)),d=null,e=0,f=0;;)if(f<e){var h=d.da(null,f);b.add(h);f+=1}else if(c=$APP.u(c))d=c,$APP.Md(d)?(c=$APP.ic(d),f=$APP.jc(d),d=c,e=$APP.md(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)},yta=function(a){if($APP.ia(a,"js/")){a=$APP.Th.h(a,3).split(".");var b=a[a.length-1];a=a.slice(0,a.length-1);var c=$APP.de.j(function(e,f){return e!=null?e[f]:null},globalThis,
|
|
15
|
+
Array.from(a));if(c==null)return[];var d="js/"+$APP.I.g(a.length>0?""+$APP.I.g(a.join("."))+".":null);return $APP.ft.g($APP.Nj.h(function(e){return""+$APP.I.g(d)+$APP.I.g(e)},$APP.yf.h(100,$APP.hH.g($APP.Ck.h(function(e){return $APP.ia(e,b)},xta(c))))))}return[]},zta=function(a,b){return new Promise(function(c){var d=$APP.fr.g(b);$APP.Bi.A(d8,$APP.zh,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)}});
|
|
16
|
+
setTimeout(function(){if($APP.m($APP.Td.h($APP.Fb(d8),d))){$APP.Bi.j(d8,$APP.Ak,d);var h=[];return c.g?c.g(h):c.call(null,h)}return null},8E3);var e=$APP.Fb(b8);if($APP.m(e)){var f={op:"complete-js",prefix:a,id:d,session:V7.g(b)};return e.g?e.g(f):e.call(null,f)}$APP.Bi.j(d8,$APP.Ak,d);e=[];return c.g?c.g(e):c.call(null,e)})},g8=function(a,b){return Promise.resolve(a).then(function(c){return tta(c,$APP.V.g(b))}).then(function(c){var d=$APP.Fb(f8);return d.h?d.h(c,b):d.call(null,c,b)})},i8=function(a,
|
|
17
|
+
b){var c=$APP.We(a);$APP.Td.h(c,$APP.V);a=$APP.Td.h(c,h8);$APP.Td.h(c,$APP.O);$APP.Td.h(c,Ata);$APP.Td.h(c,Bta);return g8(a,c).then(function(d){d=new $APP.H(null,2,["ns",""+$APP.I.g($7()),"value",d],null);return b.h?b.h(c,d):b.call(null,c,d)}).catch(function(d){console.error(d);var e=$APP.os.g($APP.aj(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($7())],null);return b.h?
|
|
18
|
+
b.h(c,d):b.call(null,c,d)}).finally(function(){var d=new $APP.H(null,2,["ns",""+$APP.I.g($7()),"status",new $APP.D(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(c,d):b.call(null,c,d)})},j8=function(){var a=$APP.Fb(Y7);a=a==null?null:$APP.Cm.g(a);a=a==null?null:$APP.Fb(a);if($APP.m(a))return a;a=$APP.Fb(Z7);return a==null?null:$APP.Fb(a)},k8=function(a,b){var c=$APP.We(a),d=$APP.Td.h(c,W7),e=$APP.Td.h(c,$APP.V);a=function(){var v=$APP.sia.g(c);return $APP.m(v)?v:$APP.Wl.g(c)}();e=$APP.mi.g($APP.m(e)?
|
|
19
|
+
e:""+$APP.I.g($7()));var f=$APP.m($APP.m(a)?a.indexOf("/")==-1:a)?$APP.eo.h(j8(),new $APP.D(null,2,5,$APP.G,[e,$APP.mi.g(a)],null)):null,h=$APP.We(f),k=$APP.Td.h(h,$APP.xp),l=$APP.Td.h(h,$APP.K),n=$APP.Td.h(h,$APP.R),t=$APP.Td.h(h,$APP.O);if($APP.m(f)){var q=new $APP.H(null,3,["ns",""+$APP.I.g(e),"name",""+$APP.I.g(a),"status",new $APP.D(null,1,5,$APP.G,["done"],null)],null);a=function(){switch(d instanceof $APP.C?d.$:null){case "eldoc":var v=$APP.zh.l(q,"eldoc",$APP.Yr.h(function(p){return $APP.Yr.h($APP.I,
|
|
20
|
+
p)},k),$APP.A(["type",$APP.m(k)?"function":"variable"],0));return $APP.m(l)?$APP.zh.j(v,"docstring",l):v;default:return v=$APP.m(k)?$APP.zh.j(q,"arglists-str",$APP.Eo.h("\n",$APP.Nj.h($APP.wi,k))):q,v=$APP.m(l)?$APP.zh.j(v,"doc",l):v,v=$APP.m(t)?$APP.zh.j(v,"file",t):v,$APP.m(n)?$APP.zh.j(v,"line",n):v}}();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.D(null,2,5,$APP.G,["no-eldoc","done"],null);break a;default:a=new $APP.D(null,2,5,$APP.G,["no-info",
|
|
21
|
+
"done"],null)}a=new $APP.H(null,1,["status",a],null);return b.h?b.h(c,a):b.call(null,c,a)},nta=function(a,b){a=$APP.We(a);var c=$APP.Td.h(a,W7),d=$APP.Td.h(l8,c);if($APP.m(d))return d.h?d.h(a,b):d.call(null,a,b);console.warn($APP.Eo.h(" ",$APP.A(["Unhandled operation",c],0)));c=new $APP.H(null,1,["status",new $APP.D(null,3,5,$APP.G,["error","unknown-op","done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},Cta=function(a){return function(b,c){return a.write(m8(c))}},Dta=function(a,b){U7($APP.A(["Connection accepted"],
|
|
22
|
+
0));b.setNoDelay(!0);var c=qta(),d=mta(rta(Cta(b))),e=$APP.Ai.g(null);b.on("data",function(f){var h=$APP.Fb(e);if($APP.m(h)){f=""+$APP.I.g(h)+$APP.I.g(f);$APP.vf(e,null);var k=f}else k=f;a:{f=$APP.A([$APP.$s,!0],0);for(h=$APP.Xf;;){var l=$APP.sf.j(n8,k,f);k=$APP.z.j(l,0,null);l=$APP.z.j(l,1,null);if(k==null){h=new $APP.D(null,2,5,$APP.G,[h,l],null);break a}h=$APP.te.h(h,k);k=l}h=void 0}f=$APP.z.j(h,0,null);h=$APP.z.j(h,1,null);$APP.Qj(h)||$APP.vf(e,h);f=$APP.u(f);h=null;for(var n=l=0;;)if(n<l)k=h.da(null,
|
|
23
|
+
n),c(k,d),n+=1;else if(f=$APP.u(f))h=f,$APP.Md(h)?(f=$APP.ic(h),l=$APP.jc(h),h=f,k=$APP.md(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)?U7($APP.A(["Connection lost"],0)):U7($APP.A(["Connection closed"],0))})},Bta=new $APP.C(null,"_line","_line",232847719),vta=new $APP.C("nrepl.middleware.print","options","nrepl.middleware.print/options",868480159),V7=new $APP.C(null,"session","session",1008279103),Eta=new $APP.C(null,
|
|
24
|
+
"lookup","lookup",1225356838),Fta=new $APP.C(null,"browser-transport","browser-transport",-653558483),Gta=new $APP.C(null,"load-file","load-file",-424586670),Ata=new $APP.C(null,"_load-file?","_load-file?",-1198848711),W7=new $APP.C(null,"op","op",-1882987955),Hta=new $APP.C(null,"describe","describe",1369790582),h8=new $APP.C(null,"code","code",1586293142),Ita=new $APP.C(null,"eldoc","eldoc",-1321421900),Jta=new $APP.C(null,"log_level","log_level",-1756736313),uta=new $APP.C("nrepl.middleware.print",
|
|
25
|
+
"print","nrepl.middleware.print/print",-1616742548),Kta=new $APP.C(null,"clone","clone",711747572),Lta=new $APP.C(null,"close","close",1835149582),Mta=new $APP.C(null,"info","info",-317069002),Nta=new $APP.C(null,"load-file?","load-file?",1892536169);var o8=function o8(a,b){switch(""+$APP.I.g(T7(a,1))){case "i":return a=S7(a,1),b=R7(a,"e"),new $APP.D(null,2,5,$APP.G,[parseInt(T7(a,b)),S7(a,b+1)],null);case "l":var d=a=S7(a,1);for(a=$APP.bc($APP.Xf);;){if($APP.y.h(""+$APP.I.g(T7(d,1)),"e"))return new $APP.D(null,2,5,$APP.G,[$APP.dc(a),S7(d,1)],null);var e=o8.h?o8.h(d,b):o8.call(null,d,b),f=$APP.z.j(e,0,null),h=$APP.z.j(e,1,null);e=h;a=$APP.Rf.h(a,f);d=e}break;case "d":a=S7(a,1);f=$APP.We(b);f=$APP.Td.h(f,$APP.$s);d=a;for(e=$APP.bc($APP.Ve);;){if($APP.y.h(""+
|
|
26
|
+
$APP.I.g(T7(d,1)),"e"))return new $APP.D(null,2,5,$APP.G,[$APP.dc(e),S7(d,1)],null);a=o8.h?o8.h(d,b):o8.call(null,d,b);d=$APP.z.j(a,0,null);h=$APP.z.j(a,1,null);h=o8.h?o8.h(h,b):o8.call(null,h,b);a=$APP.z.j(h,0,null);h=$APP.z.j(h,1,null);d=$APP.m(f)?$APP.fi.g(d):d;a=$APP.Fg.j(e,d,a);d=h;e=a}break;default:return b=R7(a,":"),f=parseInt(T7(a,b)),a=S7(a,b+1),new $APP.D(null,2,5,$APP.G,[""+$APP.I.g(T7(a,f)),S7(a,f)],null)}},n8=function n8(a){for(var c=[],d=arguments.length,e=0;;)if(e<d)c.push(arguments[e]),
|
|
27
|
+
e+=1;else break;return n8.l(arguments[0],1<c.length?new $APP.Lc(c.slice(1),0,null):null)};n8.l=function(a,b){try{return o8(a,b)}catch(c){if(c instanceof Error)return new $APP.D(null,2,5,$APP.G,[null,a],null);throw c;}};n8.m=1;n8.v=function(a){var b=$APP.w(a);a=$APP.x(a);return this.l(b,a)};
|
|
28
|
+
var m8=function m8(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.r)a=""+$APP.I.g(function(){var c=$APP.ze(a);return $APP.m(c)?""+$APP.I.g(c)+"/":null}())+$APP.I.g($APP.Jh(a));else return typeof a==="number"?"i"+$APP.I.g(a)+"e":$APP.Hd(a)||$APP.Ld(a)||a==null?"l"+$APP.I.g($APP.sf.h($APP.I,$APP.Nj.h(m8,a)))+"e":$APP.Jd(a)?"d"+$APP.I.g($APP.sf.h($APP.I,$APP.Nj.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(m8.g?m8.g(d):m8.call(null,d))+$APP.I.g(m8.g?m8.g(c):m8.call(null,c))}}(a),$APP.iH.h($APP.w,a))))+"e":null}};var Y7=$APP.Ai.g(null),Z7=$APP.Ai.g(null),a8=new $APP.H(null,1,["cider.nrepl.pprint/pprint",$APP.I7],null);$APP.Ai.g(!1);
|
|
30
|
+
var b8=$APP.Ai.g(null),e8=$APP.Ai.g(null),d8=$APP.Ai.g($APP.Ve),f8=$APP.Ai.g(c8),l8=$APP.gh([Eta,Lta,Gta,Ita,Kta,Hta,Mta,$APP.qH,$APP.Dka],[k8,function(a,b){var c=new $APP.H(null,1,["status",new $APP.D(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.We(a);var c=$APP.Td.h(a,$APP.O);return i8($APP.zh.l(a,h8,c,$APP.A([Nta,!0],0)),b)},k8,function(a,b){var c=new $APP.H(null,2,["new-session",""+$APP.I.g($APP.mG()),"status",new $APP.D(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",X7("TODO"),"node",X7(process.version)],null),"aux",$APP.Ve,"ops",$APP.Kh($APP.Nj.h($APP.Jh,$APP.uh(l8)),$APP.Ek.g($APP.Ve)),"status",new $APP.D(null,1,5,$APP.G,["done"],null)],null);return b.h?b.h(a,c):b.call(null,a,c)},k8,function(a,b){var c=$APP.We(a);a=$APP.Td.h(c,$APP.V);var d=function(){var f=$APP.u7.g(c);if($APP.m(f))return f;f=$APP.Wl.g(c);return $APP.m(f)?f:""}();
|
|
32
|
+
a=$APP.mi.g($APP.m(a)?a:""+$APP.I.g($7()));a=$APP.Td.h(j8(),a);a=$APP.J.l($APP.Ck.h($APP.Hc,$APP.uh(a)),$APP.uh($APP.Tp.g(a)),$APP.A([$APP.uh($APP.Tk.g(a))],0));var e=$APP.Ck.h(function(f){return $APP.ia(f,d)},$APP.Gq.h(function(f){return f.indexOf("_DOT_")!=-1},$APP.Nj.h($APP.I,a)));return($APP.ia(d,"js/")?$APP.m($APP.Fb(b8))?zta(d,c):Promise.resolve(yta(d)):Promise.resolve([])).then(function(f){f=$APP.Yr.h(function(h){return new $APP.H(null,1,["candidate",h],null)},$APP.hH.g($APP.DG.g($APP.J.h(e,
|
|
33
|
+
Array.from(f)))));f=new $APP.H(null,2,["completions",f,"status",new $APP.D(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.Yr.h(function(h){return new $APP.H(null,1,["candidate",h],null)},$APP.hH.g(e)),"status",new $APP.D(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.We(a);var c=$APP.Td.h(a,$APP.V);return i8($APP.zh.j(a,$APP.V,$APP.m(c)?c:$7()),b)}]),Ota=$APP.Ai.g(null);export const startServer=function(a){return Promise.resolve(null).then(function(){var b=function(){var h=$APP.La(a)?a.port:$APP.lH.g(a);return $APP.m(h)?h:0}(),c=function(){var h=$APP.La(a)?a.host:$APP.pH.g(a);return $APP.m(h)?h:"127.0.0.1"}();(function(){var h=$APP.La(a)?a.log_level:Jta.g(a);return $APP.m(h)?h:"info"})();var d=function(){var h=Fta.g(a);return $APP.m(h)?h:$APP.La(a)?a.browserTransport:null}(),e=function(){var h=$APP.Cm.g(a);return $APP.m(h)?h:$APP.La(a)?a.nsState:null}(),f=esm_import$net.createServer($APP.Zk.h(Dta,
|
|
34
|
+
$APP.Ve));$APP.m(e)&&$APP.vf(Z7,e);$APP.m(d)?($APP.vf(b8,d.send),$APP.vf(e8,d.url),$APP.vf(f8,wta)):$APP.vf(f8,c8);f.listen(b,c,function(){var h=f.address(),k=h.port;h=h.address;$APP.kH.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.Eo.h(" ",$APP.A(["Could not write .nrepl-port",l],0)))}});return $APP.vf(Ota,f)})};
|
|
35
|
+
export const handleBrowserMessage=function(a){a=typeof a==="string"?JSON.parse(a):a;var b=a.id,c=$APP.Td.h($APP.Fb(d8),b);if($APP.m(c)){$APP.Bi.j(d8,$APP.Ak,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 g8(a,new $APP.H(null,2,[$APP.fr,""+$APP.I.g($APP.mG()),V7,"http"],null)).then(function(b){return{value:b,ns:""+$APP.I.g($7())}})};
|
package/lib/squint.core.umd.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
var squint;(squint||={}).core=(()=>{var Gt=Object.defineProperty;var Dn=Object.getOwnPropertyDescriptor;var Gn=Object.getOwnPropertyNames;var Bn=Object.prototype.hasOwnProperty;var Fn=(t,e)=>{for(var n in e)Gt(t,n,{get:e[n],enumerable:!0})},Cn=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Gn(e))!Bn.call(t,o)&&o!==n&&Gt(t,o,{get:()=>e[o],enumerable:!(r=Dn(e,o))||r.enumerable});return t};var Ln=t=>Cn(Gt({},"__esModule",{value:!0}),t);var ts={};Fn(ts,{Atom:()=>Ze,Cons:()=>Ce,Delay:()=>we,IAtom:()=>Qr,IDeref:()=>Kr,IDeref__deref:()=>T,IIterable:()=>De,IIterable__iterator:()=>hr,IReset:()=>Ue,IReset__reset_BANG_:()=>H,ISeqable:()=>Or,ISeqable__seq:()=>ot,ISwap:()=>Ve,ISwap__swap_BANG_:()=>k,IWatchable:()=>Je,IWatchable__add_watch:()=>J,IWatchable__notify_watches:()=>wt,IWatchable__remove_watch:()=>X,LazySeq:()=>Xo,NaN_QMARK_:()=>$u,PROTOCOL_SENTINEL:()=>Tr,UUID:()=>pt,_:()=>Vn,_EQ_:()=>it,_GT_:()=>Me,_GT__EQ_:()=>Ee,_LT_:()=>Wn,_LT__EQ_:()=>Pn,_PLUS_:()=>Yn,_STAR_:()=>Un,_STAR_print_err_fn_STAR_:()=>cr,_STAR_print_fn_STAR_:()=>U,_STAR_print_newline_STAR_:()=>Ut,__protocol_satisfies:()=>Hn,__toFn:()=>a,_add_watch:()=>re,_deref:()=>ee,_iterator:()=>Ge,_notify_watches:()=>Xe,_remove_watch:()=>oe,_reset_BANG_:()=>ne,_seq:()=>Ye,_swap_BANG_:()=>He,abs:()=>vi,aclone:()=>du,add_watch:()=>Au,alength:()=>au,any_QMARK_:()=>Qu,apply:()=>tn,array:()=>Hr,array_QMARK_:()=>ie,array_map:()=>tr,aset:()=>pu,assoc:()=>Y,assoc_BANG_:()=>z,assoc_in:()=>ve,assoc_in_BANG_:()=>ke,atom:()=>Gr,boolean$:()=>iu,boolean_QMARK_:()=>ci,bounded_count:()=>fi,butlast:()=>Zo,cat:()=>$n,char_QMARK_:()=>no,clj__GT_js:()=>Pi,coll_QMARK_:()=>Hu,comp:()=>Ne,compare:()=>K,compare_and_set_BANG_:()=>Lr,complement:()=>gt,concat:()=>io,conj:()=>rr,conj_BANG_:()=>rt,cons:()=>Ar,constantly:()=>oo,contains_QMARK_:()=>Ke,count:()=>Mt,counted_QMARK_:()=>Sn,cycle:()=>Ro,dec:()=>sr,dedupe:()=>Ko,deref:()=>tt,disj:()=>or,disj_BANG_:()=>Qe,dissoc:()=>ir,dissoc_BANG_:()=>ur,distinct:()=>To,distinct_QMARK_:()=>Ku,doall:()=>_u,dorun:()=>hu,double$:()=>Ti,double_QMARK_:()=>ni,double_array:()=>gu,drop:()=>zt,drop_last:()=>tu,drop_while:()=>hn,empty:()=>$t,empty_QMARK_:()=>Wo,ensure_reduced:()=>pn,es6_iterator:()=>E,even_QMARK_:()=>en,every_QMARK_:()=>_n,every_pred:()=>Eu,ex_cause:()=>ti,ex_data:()=>Xu,ex_info:()=>ei,ex_message:()=>Zu,false_QMARK_:()=>ou,ffirst:()=>dr,filter:()=>kt,filterv:()=>br,find:()=>li,first:()=>C,flatten:()=>wi,float$:()=>Ni,float_array:()=>wu,fn_QMARK_:()=>de,fnil:()=>ae,force:()=>Wi,frequencies:()=>Jo,get:()=>v,get_in:()=>le,group_by:()=>Ho,hash_map:()=>Ie,hash_set:()=>to,identical_QMARK_:()=>mo,identity:()=>rn,ifn_QMARK_:()=>Tu,inc:()=>Oe,inst_QMARK_:()=>Fi,int_QMARK_:()=>et,int_array:()=>yu,integer_QMARK_:()=>ri,interleave:()=>on,interpose:()=>fo,into:()=>an,into_array:()=>gn,iterable:()=>f,iterate:()=>Iu,js_keys:()=>ju,js_obj:()=>lu,juxt:()=>Ru,keep:()=>zo,keep_indexed:()=>vr,key:()=>fn,keys:()=>bn,keyword:()=>Cu,keyword_QMARK_:()=>Wu,last:()=>xr,lazy:()=>w,list:()=>nn,list_QMARK_:()=>ue,list_STAR_:()=>uo,long$:()=>ki,long_array:()=>xu,map:()=>V,map_QMARK_:()=>wn,map_entry_QMARK_:()=>pr,map_indexed:()=>Sr,mapcat:()=>so,mapv:()=>Qt,max:()=>xn,max_key:()=>hi,memoize:()=>Oi,merge:()=>xo,merge_with:()=>wo,meta:()=>Mn,min:()=>Mu,min_key:()=>pi,missing_protocol:()=>Nt,mod:()=>ai,name:()=>kr,namespace:()=>Fu,nat_int_QMARK_:()=>ui,neg_QMARK_:()=>cu,neg_int_QMARK_:()=>ii,next:()=>Et,nil_QMARK_:()=>Nr,nnext:()=>vu,not:()=>Zt,not_EQ_:()=>Ui,not_any_QMARK_:()=>Co,not_empty:()=>xi,not_every_QMARK_:()=>jo,nth:()=>je,number_QMARK_:()=>An,object_QMARK_:()=>Re,object_array:()=>mu,odd_QMARK_:()=>ro,parse_double:()=>di,parse_long:()=>_i,parse_uuid:()=>Bi,partial:()=>Io,partition:()=>sn,partition_all:()=>un,partition_by:()=>yo,partitionv:()=>po,partitionv_all:()=>ho,peek:()=>$i,persistent_BANG_:()=>mi,pop:()=>ji,pos_QMARK_:()=>fu,pos_int_QMARK_:()=>oi,pr:()=>lr,pr_str:()=>ge,print:()=>$e,println:()=>fr,prn:()=>Zi,qualified_keyword_QMARK_:()=>Vu,quot:()=>vn,rand:()=>Po,rand_int:()=>yn,rand_nth:()=>Yo,random_uuid:()=>zi,range:()=>Wr,re_find:()=>Yr,re_matches:()=>Pr,re_pattern:()=>Ur,re_seq:()=>Ou,realized_QMARK_:()=>Li,reduce:()=>L,reduce_kv:()=>_e,reduced:()=>Rt,reduced_QMARK_:()=>W,reductions:()=>gr,regexp_QMARK_:()=>Ju,rem:()=>jn,remove:()=>Mr,remove_watch:()=>bu,repeat:()=>ce,repeatedly:()=>Vo,replace:()=>Lo,reset_BANG_:()=>ct,reset_vals_BANG_:()=>Cr,rest:()=>It,reverse:()=>Do,rseq:()=>Go,run_BANG_:()=>Yi,satisfies_QMARK_:()=>Jn,second:()=>_r,select_keys:()=>lo,seq:()=>N,seq_QMARK_:()=>ar,seqable_QMARK_:()=>Vt,sequential_QMARK_:()=>Lt,set:()=>Xr,set_QMARK_:()=>Zr,shuffle:()=>Fo,simple_keyword_QMARK_:()=>Uu,some:()=>dn,some_QMARK_:()=>uu,some_fn:()=>Su,sort:()=>bt,sort_by:()=>Bo,sorted_QMARK_:()=>eo,sorted_map:()=>Mi,sorted_map_by:()=>Ei,sorted_set:()=>Ai,sorted_set_by:()=>bi,split_at:()=>eu,split_with:()=>nu,str:()=>Xt,string_QMARK_:()=>Dt,subs:()=>mn,subseq:()=>Ri,subvec:()=>Vr,swap_BANG_:()=>Br,swap_vals_BANG_:()=>Fr,symbol:()=>Lu,symbol_QMARK_:()=>Pu,system_time:()=>go,t:()=>Nu,take:()=>jt,take_last:()=>bo,take_nth:()=>So,take_while:()=>qt,to_array:()=>ku,trampoline:()=>kn,transduce:()=>xe,transient$:()=>gi,tree_seq:()=>Nn,true_QMARK_:()=>ru,truth_:()=>d,type:()=>Qi,unchecked_add_int:()=>Bu,unchecked_dec_int:()=>Gu,unchecked_inc_int:()=>Du,unchecked_int:()=>zu,unreduced:()=>se,update:()=>Oo,update_BANG_:()=>he,update_in:()=>$o,update_keys:()=>qi,update_vals:()=>qn,uuid:()=>zn,uuid_QMARK_:()=>Di,val:()=>ln,vals:()=>qu,var_QMARK_:()=>Yu,vary_meta:()=>si,vec:()=>ft,vector:()=>Tt,vector_QMARK_:()=>Jr,volatile_BANG_:()=>Ji,vreset_BANG_:()=>Xi,warn_on_lazy_reusage_BANG_:()=>mr,with_meta:()=>En,zero_QMARK_:()=>su,zipmap:()=>yi});function a(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 Ct=Object.prototype.hasOwnProperty;function me(t,e,n){for(n of t.keys())if($(n,e))return n}function Ae(t){return t!=null&&t[Z]===!0&&t[_]===h}function ht(t){return t!=null&&(t instanceof Set||t[_]===m)}function dt(t){return t!=null&&typeof t=="object"&&(t.constructor===Object||t instanceof Map||t[_]===h)}function be(t,e){return t instanceof Map||t[_]===h?t.has(e):Ct.call(t,e)}function Bt(t,e){return t instanceof Map||t[_]===h?t.get(e):t[e]}function _t(t){return t instanceof Map||t[_]===h?t.size:Object.keys(t).length}function $(t,e){if(t===e)return!0;if(t==null)return e==null;var n,r,o;const u=Ae(t);if(u||Ae(e)){const i=u?t:e,s=i===t?e:t;if(!dt(s)||_t(i)!==_t(s))return!1;for(const c of i.keys())if(!be(s,c)||!$(i.get(c),Bt(s,c)))return!1;return!0}if(dt(t)&&dt(e)&&t.constructor!==e.constructor){if(_t(t)!==_t(e))return!1;for(const i of t instanceof Map?t.keys():Object.keys(t))if(!be(e,i)||!$(Bt(t,i),Bt(e,i)))return!1;return!0}if(ht(t)||ht(e)){if(!ht(t)||!ht(e)||t.size!==e.size)return!1;for(let i of t)if(i&&typeof i=="object"&&(i=me(e,i),!i)||!e.has(i))return!1;return!0}if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return!1;if(n===Array){if((r=t.length)===e.length)for(;r--&&$(t[r],e[r]););return r===-1}if(n===Map){if(t.size!==e.size)return!1;for(const i of t)if(o=i[0],o&&typeof o=="object"&&(o=me(e,o),!o)||!$(i[1],e.get(o)))return!1;return!0}if((!n||typeof t=="object")&&t[_]!==I){r=0;for(const i in t)if(Ct.call(t,i)&&++r&&!Ct.call(e,i)||!(i in e)||!$(t[i],e[i]))return!1;return Object.keys(e).length===r}}if(t&&e&&(Array.isArray(t)||t[_]===I)&&(Array.isArray(e)||e[_]===I)){const i=t[Symbol.iterator](),s=e[Symbol.iterator]();for(;;){const c=i.next(),l=s.next();if(c.done||l.done)return!!(c.done&&l.done);if(!$(c.value,l.value))return!1}}return!1}function ut(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function it(...t){return ut(t,(e,n)=>$(e,n))}function Me(...t){return ut(t,(e,n)=>e>n)}function Ee(...t){return ut(t,(e,n)=>e>=n)}function Wn(...t){return ut(t,(e,n)=>e<n)}function Pn(...t){return ut(t,(e,n)=>e<=n)}function Yn(...t){return t.reduce((e,n)=>e+n,0)}function Un(...t){return t.reduce((e,n)=>e*n,1)}function Vn(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}const Hn={};function Jn(t,e){return e==null?t[null]:typeof t=="symbol"?e[t]:e[t.__sym]}function Xn(t,e,n){return t.set(e,n),t}function Zn(t,e,n){return t[e]=n,t}function Se(t){switch(y(t)){case h:return Xn;case b:case g:return Zn}}function z(t,e,n,...r){if(r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(y(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 b:case g: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}const F=Symbol("meta");function A(t,e){const n=t?.[F];return n!==void 0&&(e[F]=n),e}function q(t){switch(y(t)){case h:return A(t,new t.constructor(t));case m:return A(t,new t.constructor(t));case b:return A(t,[...t]);case g:return A(t,{...t});case Q:return A(t,new lt(...t));default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function Y(t,e,n,...r){if(t==null&&(t={}),M(t)){let u=t.length;for(let i=0;i<r.length+2;i+=2){const s=i===0?e:r[i-2];if(!Number.isInteger(s))throw new Error("Vector's key for assoc must be a number.");if(s<0||s>u)throw new Error(`Index ${s} out of bounds [0,${u}]`);s===u&&u++}}const o=q(t);return z(o,e,n,...r),o}function Ie(...t){if(t.length===0)return{};if(t.length%2!==0)throw new Error("No value supplied for key: "+t[t.length-1]);return Y({},...t)}const tr=Ie,h=1,b=2,g=3,Q=4,m=5,I=6,_=Symbol("squint.lang.type"),Z=Symbol("squint.lang.sorted");function er(t,e){return t.squint$lang$variadic=e,t}function Yt(t){switch(t){case h:return new Map;case b:return[];case g:return{};case Q:return new lt;case m:return new Set;case I:return w(function*(){})}}function St(t){return t.constructor===Object}function M(t){return Array.isArray(t)&&t[_]!==Q}function Re(t){return t!=null&&St(t)}function y(t){if(t==null)return;if(St(t))return g;if(t instanceof Map)return h;if(t instanceof Set)return m;const e=t[_];if(e!==void 0)return e;if(M(t))return b;if(typeof t=="object")return g}function nr(t,e,n,r,o){r=ft(r),n=n||{};const u=y(n);if(u!==h&&u!==b&&u!==g)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 c=0;c<r.length-1;c+=1){const l=r[c];let p;s instanceof Map?p=s.get(l):p=s[l],p||(p=Yt(u)),i.push(p),s=p}i.push(o);for(let c=i.length-2;c>=0;c-=1)i[c]=t(i[c],r[c],i[c+1]);return i[0]}function ve(t,e,n){return nr(Y,"assoc-in",t,e,n)}function ke(t,e,n){e=ft(e);var r=t;const o=y(t);for(const u of e.splice(0,e.length-1)){let i=v(r,u);i===void 0&&(i=Yt(o),z(r,u,i)),r=i}return z(r,e[e.length-1],n),t}function Ne(...t){if(t=t.map(a),t.length===0)return rn;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 Te(t,e){for(const n of e)t.add(n);return t}function rt(...t){const e=t.length;if(e===0)return Tt();if(e===1)return t[0];let n=t[0];if(n==null&&(n=[]),e===2)switch(y(n)){case b:return n.push(t[1]),n;case m:return n.add(t[1]),n}const r=t.slice(1);switch(y(n)){case m:Te(n,r);break;case Q:n.unshift(...r.reverse());break;case b:n.push(...r);break;case h:for(const o of r)if(M(o))xt(o),n.set(o[0],o[1]);else for(const u of yt(o))n.set(u[0],u[1]);break;case g:for(const o of r)if(M(o))xt(o),n[o[0]]=o[1];else for(const u of yt(o))n[u[0]]=u[1];break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return n}function*yt(t){if(dt(t)){yield*f(t);return}for(const e of f(t)){if(!M(e))throw new Error("conj on a map takes map entries or seqables of map entries");yield e}}function xt(t){if(t.length<2)throw new Error("Vector arg to map conj must be a pair");return t}function rr(...t){if(t.length===0)return Tt();const[e,...n]=t;if(n.length===0)return e;let r=e;r==null&&(r=nn());let o,u;switch(y(r)){case m:return r[Z]?A(r,Te(new r.constructor(r),n)):A(r,new r.constructor([...r,...n]));case Q:return A(r,new lt(...n.reverse(),...r));case b:return A(r,[...r,...n]);case h:o=new Map(r);for(const i of n)if(M(i))xt(i),o.set(i[0],i[1]);else for(const s of yt(i))o.set(s[0],s[1]);return A(r,o);case I:return w(function*(){yield*n,yield*r});case g:u={...r};for(const i of n)if(M(i))xt(i),u[i[0]]=i[1];else for(const s of yt(i))u[s[0]]=s[1];return A(r,u);default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function Qe(t,...e){for(const n of e)t.delete(n);return t}function or(t,...e){if(t==null)return t;const n=new t.constructor(t);return A(t,Qe(n,...e))}function Ke(t,e){if(typeof t=="string")return et(e)&&e>=0&&e<t.length;switch(y(t)){case m:case h:return t.has(e);case void 0:return!1;default:return e in t}}function ur(t,...e){for(const n of e)delete t[n];return t}function ir(t,...e){if(!t)return;if(e.length===0)return t;const n=y(t);if(n!==h&&n!==g)throw new Error("dissoc expects a map, got: "+typeof t);if(n===h){let u=!1;for(const s of e)if(t.has(s)){u=!0;break}if(!u)return t;const i=q(t);for(const s of e)i.delete(s);return i}let r=!1;for(const u of e)if(u in t){r=!0;break}if(!r)return t;const o=q(t);for(const u of e)delete o[u];return o}function Oe(t){return t+1}function sr(t){return t-1}const Ut={val:!1},U={val:t=>console.log(t)},cr={val:t=>console.error(t)};function $e(...t){U.val(t.map(e=>j(e,void 0,!1)).join(" "))}function fr(...t){$e(...t),Ut.val&&U.val(`
|
|
2
|
-
`)}function lr(...t){U.val(ge(...t))}function je(t,e,n){if(typeof e!="number")throw new Error("Index argument to nth must be a number");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 o=G(t);let u=0,i;for(;(i=o())!==null;){if(e<u+i.length)return i[e-u];u+=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(St(t))return r=t[e],r===void 0?n:r;let o;switch(y(t)){case m:t.has(e)&&(r=e);break;case h:r=t.get(e);break;case b: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 ar(t){return t!=null&&!!t[Symbol.iterator]}function Lt(t){return Array.isArray(t)||t?.[_]===I}function Vt(t){return t==null||Re(t)||!!t[Symbol.iterator]||!!t[Pe]}const qe=Symbol("squint.lang.map-entry");function ze(t){return t[qe]=!0,t}function pr(t){return Array.isArray(t)&&t[qe]===!0}function f(t){if(t==null)return[];if(t[Symbol.iterator])return t;if(t[ot]!==void 0)return f(t[ot](t));if(t instanceof Object)return Object.entries(t).map(ze);throw new TypeError(`${t} is not iterable`)}const De=Symbol("Iterable"),hr=Symbol.iterator;function Ge(t){return t[Symbol.iterator]()}const E=Ge;function N(t){if(t==null)return t;if(!Vt(t))throw new TypeError(t+" is not ISeqable");if(typeof t=="string")return t.length?[...t]:null;const e=f(t);return e.length===0||e.size===0?null:e instanceof Set||e[_]===m?[...e]:e[Symbol.iterator]().next().done?null:e}function C(t){if(t==null)return;if(Array.isArray(t))return t[0];if(t instanceof x)return t.force(),t.chunk===null?void 0:t.chunk[0];const[e]=f(t);return e}function _r(t){if(t instanceof x){t.force();const r=t.chunk;return r===null?void 0:r.length>1?r[1]:C(t._rest)}const[e,n]=f(t);return n}function dr(t){return C(C(t))}function It(t){const e=Jt(t);e.force();const n=e.chunk;if(n===null)return e;if(n.length>1){const r=new x(null);return r.realized=!0,r.chunk=n.slice(1),r._rest=e._rest,r}return e._rest}const yr=t=>t.value;class P{value;constructor(e){this.value=e,this[T]=yr}}function xr(t){if(t=f(t),Array.isArray(t))return t[t.length-1];const e=G(t);let n,r;for(;(r=e())!==null;)n=r[r.length-1];return n}function Rt(t){return new P(t)}function W(t){return t instanceof P}function L(t,e,n){t=a(t);const r=arguments.length!==2,o=r?n:e;let u=r?e:void 0;if(Array.isArray(o)){let l=0;if(!r){if(o.length===0)return t();u=o[0],l=1}if(u instanceof P)return u.value;for(;l<o.length;l++)if(u=t(u,o[l]),u instanceof P)return u.value;return u}const i=G(o);let s=i(),c=0;if(!r){if(s===null)return t();u=s[0],c=1}if(u instanceof P)return u.value;for(;s!==null;){for(;c<s.length;c++)if(u=t(u,s[c]),u instanceof P)return u.value;s=i(),c=0}return u}function*wr(t,e){const n=e.next();n.done?yield t():yield*Be(t,n.value,e)}function*Be(t,e,n){let r=e;const o=n;for(;;){if(W(r)){yield r.value;return}else yield r;const u=o.next();if(u.done)break;r=t(r,u.value)}}function gr(t,e,n){if(t=a(t),arguments.length===2){const o=E(f(e));return w(function*(){yield*wr(t,o)})}const r=E(f(n));return w(function*(){yield*Be(t,e,r)})}function mr(){console.warn("warn-on-lazy-reusage! is deprecated and does nothing: lazy values are now cached.")}const vt=32,x=class Fe{constructor(e){this[_]=I,this[De]=!0,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 Fe(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}}}indexOf(e,n=0){let r=0;for(const o of this){if(r>=n&&o===e)return r;r++}return-1}};function Ht(t){const e=()=>{const n=t.next();return n.done?null:[[n.value],e]};return e}function w(t){return new x(Ht(t()))}function D(t,e){const n=E(f(t));return w(()=>e(n))}function Jt(t){if(t instanceof x)return t;if(Array.isArray(t)){const e=n=>()=>{if(n>=t.length)return null;const r=Math.min(n+vt,t.length);return[t.slice(n,r),e(r)]};return new x(e(0))}return new x(Ht(E(f(t))))}function G(t){if(t instanceof x){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=E(f(t));return()=>{const n=[];for(let r=0;r<vt;r++){const o=e.next();if(o.done)break;n.push(o.value)}return n.length===0?null:n}}function st(t,e){const n=Jt(t),r=(o,u)=>()=>{let i=o,s=u;for(;;){i.force();const c=i.chunk;if(c===null)return null;const l=e(c,s),p=i._rest;if(s+=c.length,l.length!==0)return[l,r(p,s)];i=p}};return new x(r(n,0))}const Ce=class{constructor(e,n){this[_]=I,this.x=e,this.coll=n}[Symbol.iterator](){const e=this.x;let n=this.coll,r=!1,o=null;return{next(){return r?(o||(o=E(f(n)),n=null),o.next()):(r=!0,{value:e,done:!1})},[Symbol.iterator](){return this}}}};function Ar(t,e){if(!Vt(e))throw new TypeError(e+" is not ISeqable");return new Ce(t,e)}function V(t,...e){switch(t=a(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 st(e[0],n=>{const r=new Array(n.length);for(let o=0;o<n.length;o++)r[o]=t(n[o]);return r});default:{const n=e.map(r=>E(f(r)));return w(function*(){for(;;){const r=[];for(const o of n){const u=o.next();if(u.done)return;r.push(u.value)}yield t(...r)}})}}}function S(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 Le(t){return S(e=>(n,r)=>d(t(r))?e(n,r):n)}function kt(t,e){return arguments.length===1?Le(t):(t=a(t),st(e,n=>{const r=[];for(let o=0;o<n.length;o++){const u=n[o];d(t(u))&&r.push(u)}return r}))}function br(t,e){return Kt([],kt(t,e))}function Mr(t,e){return arguments.length===1?Le(gt(t)):kt(gt(t),e)}function Er(t){return S(e=>{let n=-1;return(r,o)=>e(r,t(++n,o))})}function Sr(t,e){return t=a(t),arguments.length===1?Er(t):st(e,(n,r)=>{const o=new Array(n.length);for(let u=0;u<n.length;u++)o[u]=t(r+u,n[u]);return o})}function Ir(t,e){return t=a(t),st(e,(n,r)=>{const o=[];for(let u=0;u<n.length;u++){const i=t(r+u,n[u]);d(i)&&o.push(i)}return o})}function Rr(t){return S(e=>{let n=-1;return(r,o)=>{const u=t(++n,o);return u==null?r:e(r,u)}})}function vr(t,e){return arguments.length===1?Rr(t):Ir(t,e)}function Xt(...t){return t.join("")}function kr(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 Zt(t){return!d(t)}function Nr(t){return t==null}const Tr={},We=Symbol("squint.core.IAtom"),te=Symbol("squint.core.IDeref"),Pe=Symbol("squint.core.ISeqable"),Qr={__sym:We},Kr={__sym:te},T=Symbol("IDeref_-deref");function ee(t){return t!=null&&t[T]!==void 0?t[T](t):R(ee,"IDeref.-deref",t)(t)}const Or={__sym:Pe},ot=Symbol("ISeqable_-seq");function Ye(t){return t!=null&&t[ot]!==void 0?t[ot](t):R(Ye,"ISeqable.-seq",t)(t)}function R(t,e,n){const r=t[null];if(r===void 0)throw Nt(e,n);return r}const Ue={__sym:Symbol("squint.core.IReset")},H=Symbol("IReset_-reset!");function ne(t,e){return t!=null&&t[H]!==void 0?t[H](t,e):R(ne,"IReset.-reset!",t)(t,e)}const Ve={__sym:Symbol("squint.core.ISwap")},k=Symbol("ISwap_-swap!");function He(t,e,...n){return t!=null&&t[k]!==void 0?t[k](t,e,...n):R(He,"ISwap.-swap!",t)(t,e,...n)}const Je={__sym:Symbol("squint.core.IWatchable")},J=Symbol("IWatchable_-add-watch"),X=Symbol("IWatchable_-remove-watch"),wt=Symbol("IWatchable_-notify-watches");function re(t,e,n){return t!=null&&t[J]!==void 0?t[J](t,e,n):R(re,"IWatchable.-add-watch",t)(t,e,n)}function oe(t,e){return t!=null&&t[X]!==void 0?t[X](t,e):R(oe,"IWatchable.-remove-watch",t)(t,e)}function Xe(t,e,n){return t!=null&&t[wt]!==void 0?t[wt](t,e,n):R(Xe,"IWatchable.-notify-watches",t)(t,e,n)}const $r=t=>t.val,nt=(t,e)=>{if(t._validator&&!d(t._validator(e)))throw new Error("Validator rejected reference state");const n=t.val;if(t.val=e,t._hasWatches)for(const[r,o]of Object.entries(t._watches))o(r,t,n,e);return e},jr=function(t,e,n,r,o){switch(arguments.length){case 2:return nt(t,e(t.val));case 3:return nt(t,e(t.val,n));case 4:return nt(t,e(t.val,n,r));default:return nt(t,e(t.val,n,r,...o))}},qr=(t,e,n)=>{t._watches[e]=n,t._hasWatches=!0},zr=(t,e)=>{delete t._watches[e]},Dr=(t,e,n)=>{for(const[r,o]of Object.entries(t._watches))o(r,t,e,n)};class Ze{constructor(e){this.val=e,this._watches={},this._hasWatches=!1,this[We]=!0,this[te]=!0,this[T]=$r,this[Ue.__sym]=!0,this[H]=nt,this[Ve.__sym]=!0,this[k]=jr,this[Je.__sym]=!0,this[J]=qr,this[X]=zr,this[wt]=Dr}}function Gr(t,...e){const n=new Ze(t);for(let r=0;r<e.length;r+=2)e[r]==="meta"?n[F]=e[r+1]:e[r]==="validator"&&(n._validator=e[r+1]);return n}function Nt(t,e){let n;return e===null?n="null":e===void 0?n="undefined":Array.isArray(e)?n="array":typeof e=="object"&&e.constructor&&e.constructor!==Object?n=e.constructor.name:n=typeof e,new Error(`No protocol method ${t} defined for type ${n}: ${e??""}`)}function tt(t){return t?.[T]!==void 0?t[T](t):R(ee,"IDeref.-deref",t)(t)}function ct(t,e){return t?.[H]!==void 0?t[H](t,e):R(ne,"IReset.-reset!",t)(t,e)}function Br(t,e,...n){if(e=a(e),t?.[k]!==void 0)switch(n.length){case 0:return t[k](t,e);case 1:return t[k](t,e,n[0]);case 2:return t[k](t,e,n[0],n[1]);default:return t[k](t,e,n[0],n[1],n.slice(2))}const r=e(tt(t),...n);return ct(t,r),r}function Fr(t,e,...n){const r=tt(t);e=a(e);const o=e(r,...n);return ct(t,o),[r,o]}function Cr(t,e){const n=tt(t);return ct(t,e),[n,e]}function Lr(t,e,n){return tt(t)===e?(ct(t,n),!0):!1}function Wr(t,e,n){let r=t,o=e,u=n;e===void 0&&(r=0,o=t);const i=r||0;u=n??1;const s=u>=0,c=p=>o===void 0||s&&p<o||!s&&o<p,l=p=>()=>{if(!c(p))return null;const O=[];let B=p;for(;O.length<vt&&c(B);)O.push(B),B+=u;return[O,l(B)]};return new x(l(i))}function Pr(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function Yr(t,e){if(Dt(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 Ur(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 Vr(t,e,n){if(!M(t))throw new Error("subvec: argument must be a vector");if(n===void 0&&(n=t.length),e==null||n==null)throw new Error("subvec: start and end must not be nil");if(e=e|0,n=n|0,e<0||n<e||n>t.length)throw new Error("subvec: index out of bounds");return t.slice(e,n)}function Tt(...t){return t}const Hr=Tt;function Jr(t){return M(t)}function Qt(...t){if(t.length===2){const[n,r]=t,o=a(n),u=f(r);if(Array.isArray(u)){const i=new Array(u.length);for(var e=0;e<u.length;e++)i[e]=o(u[e]);return i}else{const i=[],s=G(u);let c;for(;(c=s())!==null;)for(let l=0;l<c.length;l++)i.push(o(c[l]));return i}}return[...V(...t)]}function Kt(t,e){if(e instanceof x){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 f(e))t.push(n);return t}function Ot(t){return t instanceof x?Kt([],t):[...f(t)]}function ft(t){return M(t)?t:Kt([],t)}function Xr(t){return new Set(f(t))}function Zr(t){return y(t)===m}function to(...t){return new Set(t)}function eo(t){return t!=null&&t[Z]===!0}function no(t){return typeof t=="string"&&t.length===1}function tn(t,...e){t=a(t);const n=e.slice(0,e.length-1),r=e[e.length-1],o=t.squint$lang$variadic;if(o){const u=o.length-1,i=[];let s=0,c;for(;s<u&&s<n.length;s++)i.push(n[s]);if(s<u){let l=N(r);for(;s<u&&l!=null;s++)i.push(C(l)),l=Et(l);c=l}else c=s<n.length?mt([n.slice(s),r]):r;return c=c==null?null:N(c),c==null?t(...i):o(...i,c)}return t(...n,...f(r))}function en(t){if(!Number.isInteger(t))throw new Error(`Argument must be an integer: ${t}`);return t%2==0}function ro(t){return!en(t)}function gt(t){return t=a(t),(...e)=>Zt(t(...e))}function oo(t){return(...e)=>t}class lt extends Array{constructor(...e){super(),this[_]=Q,this.push(...e)}}function ue(t){return t?.[_]===Q}function nn(...t){return new lt(...t)}function uo(...t){const e=t.pop();return new lt(...t,...f(e))}function ie(t){return Array.isArray(t)}const Ft=Symbol("concat-done");function mt(t){const e=Array.isArray(t),n=e?t.slice():null,r=e?null:E(f(t));let o=0;const u=()=>{if(e){if(o>=n.length)return Ft;const c=n[o];return n[o]=null,o++,c}const s=r.next();return s.done?Ft:s.value},i=s=>()=>{for(;;){if(s!==null)if(s instanceof x){if(s.force(),s.chunk!==null)return[s.chunk,i(s._rest)];s=null}else{const l=s.a,p=s.pos;if(p<l.length){const O=Math.min(p+vt,l.length);return[l.slice(p,O),i({a:l,pos:O})]}s=null}const c=u();if(c===Ft)return null;s=c instanceof x?c:Array.isArray(c)?{a:c,pos:0}:Jt(c)}};return new x(i(null))}const io=er((...t)=>mt(t),t=>mt(t));function so(t,...e){return e.length===0?Ne(V(t),$n):mt(V(t,...e))}function rn(t){return t}function on(...t){const e=t.map(n=>E(f(n)));return w(function*(){for(;;){const n=[];for(const r of e){const o=r.next();if(o.done)return;n.push(o.value)}yield*n}})}function co(t){return S(e=>{let n=!1;return(r,o)=>{if(!n)return n=!0,e(r,o);const u=e(r,t);return W(u)?u:e(u,o)}})}function fo(t,e){return arguments.length===1?co(t):zt(1,on(ce(t),e))}function lo(t,e){const r=y(t)===h?new Map:{};for(const o of f(e)){const u=v(t,o);u!==void 0&&z(r,o,u)}return r}function se(t){return W(t)?tt(t):t}function ao(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=se(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 un(t,...e){if(arguments.length===1)return ao(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),cn(t,n,[],r,!0)}function sn(t,...e){let n=t,r,o=e[0];return e.length===2?[n,o]=e:e.length>2&&([n,r,o]=e),cn(t,n,r,o,!1)}const po=sn,ho=un;function cn(t,e,n,r,o){return D(r,function*(u){let i=[],s=0;for(const c of u)s<t&&(i.push(c),i.length===t&&(yield i,i=e<t?i.slice(e):[])),s++,s===e&&(s=0);i.length>0&&(i.length===t||o?yield i:n!==void 0&&(n!=null&&i.push(...[...f(n)].slice(0,t-i.length)),yield i))})}function _o(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 s=u[0];if(n.length!==0){const c=[...n];n=[],s=se(e(s,c))}return e(s)}if(i===2){const s=u[0],c=u[1],l=o,p=t(c);if(o=p,l===r||p===l)return n.push(c),s;{const O=[...n];n=[];const B=e(s,O);return W(B)||n.push(c),B}}}}}function yo(t,e){if(t=a(t),arguments.length===1)return _o(t);const n=E(e);return w(function*(){const r=n.next();r.done&&(yield*null);const o=r.value;let u=t(o),i=[o],s=[];for(;;){const c=n.next();if(c.done){yield i;break}const l=c.value,p=t(l);u==p?i.push(l):(yield i,s.push(l),i=s,u=p,s=[])}})}function $t(t){const e=y(t);if(e!=null)return A(t,Yt(e));throw new Error(`Can't create empty of ${typeof t}`)}function xo(...t){if(!t.some(d))return null;const e=t[0];let n;return e==null?n={}:y(e)===void 0?n=e:n=an($t(e),e),rt(n,...t.slice(1))}function fn(t){return t[0]}function ln(t){return t[1]}function wo(t,...e){t=a(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(u,i)=>{const s=fn(i),c=ln(i);return Ke(u,s)?Y(u,s,t(v(u,s),c)):Y(u,s,c)};return L((u,i)=>L(r,u||{},N(i)),e)}else return null}function go(){return performance.now()}function an(...t){let e,n,r,o,u;switch(t.length){case 0:return[];case 1:return t[0];case 2:return e=t[0]??[],M(e)?Kt(q(e),t[1]):L(rt,q(e),t[1]);case 3:return e=t[0],n=t[1],r=t[2],o=q(e),u=(i,s)=>s===void 0?i:rt(i,s),xe(n,u,o,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function mo(t,e){return t===e}function ce(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);if(t.length==1){const r=t[0];return w(function*(){for(;;)yield r})}const[e,n]=t;return w(function*(){for(var r=0;r<e;r++)yield n})}function pn(t){return W(t)?t:Rt(t)}function Ao(t){return S(e=>{let n=t;return(r,o)=>{const u=--n+1;return u>0&&(r=e(r,o)),u>1?r:pn(r)}})}function fe(t){if(typeof t!="number")throw new Error("Assert failed: (number? n)");return t}function jt(t,e){return fe(t),arguments.length===1?Ao(t):D(e,function*(n){let r=t-1;for(const o of n)if(r-->=0&&(yield o),r<0)return})}function bo(t,e){if(fe(t),t<=0)return null;if(Array.isArray(e))return N(e.slice(-t));{const n=new Array(t);let r=0;for(const o of f(e))n[r%t]=o,r++;return r===0?null:r%t!==0&&r>=t?n.slice(r%t).concat(n.slice(0,r%t)):(n.length=Math.min(r,t),n)}}function Mo(t){return S(e=>(n,r)=>d(t(r))?e(n,r):Rt(n))}function qt(t,e){return t=a(t),arguments.length===1?Mo(t):D(e,function*(n){for(const r of n)if(d(t(r)))yield r;else return})}function Eo(t){return S(e=>{let n=-1;return(r,o)=>jn(++n,t)===0?e(r,o):r})}function So(t,e){return arguments.length===1?Eo(t):t<=0?ce(C(e)):D(e,function*(n){let r=0;for(const o of n)r%t===0&&(yield o),r++})}function Io(t,...e){return t=a(t),function(...n){return t(...e,...n)}}function Ro(t){const e=f(t);return w(function*(){const n=[];for(const r of e)n.push(r),yield r;for(;n.length;)yield*n})}function vo(t){return S(e=>{let n=t;return(r,o)=>n-- >0?r:e(r,o)})}function zt(t,e){return fe(t),arguments.length===1?vo(t):D(e,function*(n){for(let r=0;r<t;r++)n.next();yield*n})}function ko(t){return S(e=>{let n=!0;return(r,o)=>n&&d(t(o))?r:(n=!1,e(r,o))})}function hn(t,e){return t=a(t),arguments.length===1?ko(t):D(e,function*(n){for(;;){const r=n.next();if(r.done)break;const o=r.value;if(!d(t(o))){yield o;break}}yield*n})}function No(){return S(t=>{const e=new Set;return(n,r)=>e.has(r)?n:(e.add(r),t(n,r))})}function To(t){return arguments.length===0?No():D(t,function*(e){const n=new Set;for(const r of e)n.has(r)||(yield r),n.add(r)})}const At=Symbol("dedupe-none");function Qo(){return S(t=>{let e=At;return(n,r)=>{const o=e!==At&&d(it(e,r));return e=r,o?n:t(n,r)}})}function Ko(t){return arguments.length===0?Qo():D(t,function*(e){let n=At;for(const r of e)(n===At||!d(it(n,r)))&&(yield r),n=r})}function Oo(t,e,n,...r){return n=a(n),Y(t,e,n(v(t,e),...r))}function le(t,e,n){let r=t;for(const o of f(e))r=v(r,o);return r===void 0?n:r}function $o(t,e,n,...r){return n=a(n),ve(t,e,n(le(t,e),...r))}function ae(t,...e){t=a(t);const n=e.length;return function(...r){for(let o=0;o<n;o++)r[o]==null&&(r[o]=e[o]);return t(...r)}}function _n(t,e){if(t=a(t),Array.isArray(e)){for(let o=0;o<e.length;o++)if(!t(e[o]))return!1;return!0}const n=G(e);let r;for(;(r=n())!==null;)for(let o=0;o<r.length;o++)if(!t(r[o]))return!1;return!0}function jo(t,e){return!_n(t,e)}function qo(t){return S(e=>(n,r)=>{const o=t(r);return o==null?n:e(n,o)})}function zo(t,e){return t=a(t),arguments.length===1?qo(t):st(e,n=>{const r=[];for(let o=0;o<n.length;o++){const u=t(n[o]);d(u)&&r.push(u)}return r})}function Do(t){return Ot(t).reverse()}function Go(t){if(M(t))return t.length===0?null:[...t].reverse();if(t!=null&&t[Z]===!0){const e=[...t].reverse();return e.length===0?null:e}throw new Error("rseq not supported on: "+typeof t)}function bt(t,e){return arguments.length===1&&(e=t,t=void 0),t=a(t),Ot(e).sort(t||K)}function pe(t){return t===K?t:(e,n)=>{const r=t(e,n);return An(r)?r:r?-1:t(n,e)?1:0}}function Bo(t,e,n){return arguments.length===2&&(n=e,e=K),t=a(t),e=a(e),bt((r,o)=>{const u=pe(e),i=t(r),s=t(o);return u(i,s)},n)}function Fo(t){const e=Ot(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 dn(t,e){if(t=a(t),Array.isArray(e)){for(let o=0;o<e.length;o++){const u=t(e[o]);if(d(u))return u}return}const n=G(e);let r;for(;(r=n())!==null;)for(let o=0;o<r.length;o++){const u=t(r[o]);if(d(u))return u}}function Co(t,e){return t=a(t),!dn(t,e)}function Lo(t,e){return(Array.isArray(e)?Qt:V)(r=>{const o=t[r];return o!==void 0?o:r},e)}function Wo(t){return!N(t)}function Po(t){return t===void 0&&(t=1),Math.random()*t}function yn(t){return Math.floor(Math.random()*t)}function Yo(t){const e=yn(Mt(t));return je(t,e)}function Uo(t){return w(function*(){for(;;)yield t()})}function Vo(t,e){arguments.length===1&&(e=t,t=void 0);const n=Uo(e);if(t!==void 0){if(typeof t!="number")throw new Error("repeatedly: count must be a number, got: "+Xt(t));return jt(t,n)}else return n}function he(t,e,n,...r){n=a(n);const o=v(t,e);return z(t,e,n(o,...r))}function Ho(t,e){t=a(t);const n={};for(const r of f(e)){const o=t(r);he(n,o,ae(rt,[]),r)}return n}function Jo(t){const e={},n=ae(Oe,0);for(const r of f(t))he(e,r,n);return e}class Xo extends x{static[Symbol.hasInstance](e){return e instanceof x}constructor(e){super(()=>Ht(E(f(e())))())}}function Zo(t){const e=Ot(t);return e.pop(),e.length>0?e:null}function tu(...t){const[e,n]=t.length>1?t:[1,t[0]];return V((r,o)=>r,n,zt(e,n))}function eu(t,e){return[jt(t,e),zt(t,e)]}function nu(t,e){return[qt(t,e),hn(t,e)]}function Mt(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;const n=G(t);let r=0,o;for(;(o=n())!==null;)r+=o.length;return r}function ru(t){return t===!0}function ou(t){return t===!1}function uu(t){return t!=null}function iu(t){return d(t)}function su(t){return t===0}function cu(t){return t<0}function fu(t){return t>0}function lu(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function au(t){return t.length}function pu(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 c=o.length-2;for(;s<c;s++)i=i[o[s]];return i[o[s]]=u,n}}function hu(t){if(t instanceof x){const e=G(t);for(;e()!==null;);return null}for(const e of f(t));return null}function _u(t){if(t!=null&&t[_]===I)for(const e of t);return t}function du(t){return[...t]}function at(t,e){if(e!==void 0){const n=new Array(t);if(typeof e=="number")return n.fill(e);let r=0;for(const o of f(e)){if(r>=t)break;n[r++]=o}return n}return typeof t=="number"?new Array(t).fill(null):[...f(t)]}function yu(t,e){return at(t,e)}function xu(t,e){return at(t,e)}function wu(t,e){return at(t,e)}function gu(t,e){return at(t,e)}function mu(t,e){return at(t,e)}function Au(t,e,n){return t?.[J]!==void 0?(t[J](t,e,n),t):(R(re,"IWatchable.-add-watch",t)(t,e,n),t)}function bu(t,e){return t?.[X]!==void 0?(t[X](t,e),t):(R(oe,"IWatchable.-remove-watch",t)(t,e),t)}function _e(t,e,n){if(!n)return e;var r=e;for(const o of f(n))r=t(r,o[0],o[1]);return r}function xn(t,...e){let n=t;for(const r of e)n=isNaN(n)?n:isNaN(r)?r:n>r?n:r;return n}function Mu(t,...e){let n=t;for(const r of e)n=isNaN(n)?n:isNaN(r)?r:n<r?n:r;return n}function wn(t){return t==null?!1:!!(St(t)||t instanceof Map||t[_]===h)}function Eu(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Su(...t){return(...e)=>{let n;for(const r of t)for(const o of e)if(n=r(o),d(n))return n;return n}}function gn(t,e){return ft(e||t)}function Iu(t,e){var n=e;return w(function*(){for(;;)yield n,n=t(n)})}function Ru(...t){return t=t.map(a),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function Et(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return N(It(t))}function vu(t){return Et(Et(t))}function K(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 o=0;o<t.length;o++){const u=K(t[o],e[o]);if(u!=0)return u}return 0}else throw new Error(`comparing ${n} to ${r}`)}}function ku(t){return gn(t)}function d(t){return t!=null&&t!==!1}const Nu=d;function mn(t,e,n){return t.substring(e,n)}function de(t){return typeof t=="function"}function Tu(t){return de(t)}function Qu(t){return!0}function Ku(t,...e){if(e.length===0)return!0;const n=[t];for(const r of e){for(const o of n)if(d(it(o,r)))return!1;n.push(r)}return!0}function Ou(t,e){return w(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:ft(n);const u=n.index+xn(1,r.length);if(u>e.length)break;e=mn(e,u)}else break}})}function $u(t){return isNaN(t)}function An(t){return typeof t=="number"}function bn(t){if(t==null)return null;switch(y(t)){case g:{const n=Object.keys(t);return n.length?n:void 0}case h:return t.size?Array.from(t.keys()):void 0}for(const n of f(t))throw new TypeError(t+" is not a map");return null}function ju(t){return bn(t)??[]}function qu(t){if(t==null)return null;switch(y(t)){case g:{const n=Object.values(t);return n.length?n:void 0}case h:return t.size?Array.from(t.values()):void 0}for(const n of f(t))throw new TypeError(t+" is not a map");return null}function Dt(t){return typeof t=="string"}function zu(t){return Math.trunc(t)}function Du(t){return t+1}function Gu(t){return t-1}function Bu(t,e){return t+e}function Fu(t){const e=t.indexOf("/");return e>=1?t.slice(0,e):null}function Cu(t,e){return e!==void 0?(t!=null?t+"/":"")+e:t}function Lu(t,e){return e!==void 0?(t!=null?t+"/":"")+e:t}function Wu(t){return typeof t=="string"}function Pu(t){return typeof t=="string"}function Yu(t){return!1}function Uu(t){return typeof t=="string"&&!t.includes("/")}function Vu(t){return typeof t=="string"&&t.includes("/")}function Hu(t){return y(t)!=null}function Ju(t){return t instanceof RegExp}class ye extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function Xu(t){return t instanceof ye?t._data:null}function Zu(t){return t instanceof Error?t.message:null}function ti(t){return t instanceof ye?t._cause:null}function ei(t,e,n){return new ye(t,e,n)}function et(t){return Number.isInteger(t)}function ni(t){return typeof t=="number"}const ri=et;function oi(t){return et(t)&&t>0}function ui(t){return et(t)&&t>-1}function ii(t){return et(t)&&t<0}function Mn(t){return t instanceof Object?t[F]:null}function En(t,e){if(typeof t=="function"){const r=function(...o){return t.apply(this,o)};return r[F]=e,r}if(t?.[_]===I){const r=Object.assign(Object.create(Object.getPrototypeOf(t)),t);return r[F]=e,r}const n=q(t);return n[F]=e,n}function si(t,e,...n){return En(t,e(Mn(t),...n))}function ci(t){return t===!0||t===!1}function Sn(t){switch(y(t)){case b:case h:case g:case Q:case m:return!0}return!1}function fi(t,e){return Sn(e)?Mt(e):Mt(jt(t,e))}function li(t,e){const n=v(t,e);if(n!==void 0)return ze([e,n])}function ai(t,e){return(t%e+e)%e}function pi(t,e,...n){t=a(t);let r=e;for(const o of n)t(r)<t(o)||(r=o);return r}function hi(t,e,...n){t=a(t);let r=e;for(const o of n)t(r)>t(o)||(r=o);return r}function In(t){throw new Error(`Expected string, got: ${typeof t}`)}function _i(t){if(Dt(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 In(t)}function di(t){return Dt(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:In(t)}function Rn(t){return t>=0?Math.floor(t):Math.ceil(t)}function vn(t,e){const n=t%e;return Rn((t-n)/e)}function kn(t,...e){if(e.length==0)for(;;){const n=t();if(d(de(n))){t=n;continue}else return n}else return kn(function(){return tn(t,e)})}function xe(t,...e){if(e.length===2){const n=e[0],r=e[1];return xe(t,n,n(),r)}else{let n=e[0];const r=e[1],o=e[2];n=t(n);const u=L(n,r,o);return n(u)}}function yi(t,e){const n={},r=f(t)[Symbol.iterator](),o=f(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 xi(t){return N(t)?t:null}function Nn(t,e,n){const r=function*(o){if(yield o,d(t(o)))for(const u of f(e(o)))yield*r(u)};return w(function*(){yield*r(n)})}function wi(t){return kt(gt(Lt),It(Nn(Lt,N,t)))}function gi(t){return q(t)}function mi(t){return t}const Tn=class Qn{constructor(e,n){this[_]=m,this[Z]=!0,this._cmp=n??e?._cmp,e instanceof Qn&&e._cmp===this._cmp||(e=this._cmp?bt(this._cmp,e):bt(e));const o=new Set(e);this._elts=[...o],this._set=o,this.size=this._elts.length}add(e){if(this._set.has(e))return this;const n=this._elts,r=this._cmp;let o=!1;for(let u=0;u<n.length;u++)if((r?r(e,n[u]):K(e,n[u]))<=0){n.splice(u,0,e),o=!0;break}return o?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 Ai(...t){return new Tn(t)}function bi(t,...e){return new Tn(e,pe(a(t)))}const Kn=class{constructor(e,n){if(this[_]=h,this[Z]=!0,this._cmp=n??e?._cmp,this._map=new Map,this._keys=[],this.size=0,e)for(const[r,o]of e)this.set(r,o)}set(e,n){if(!this._map.has(e)){const r=this._keys,o=this._cmp;let u=0;for(;u<r.length&&(o?o(e,r[u]):K(e,r[u]))>0;)u++;r.splice(u,0,e)}return this._map.set(e,n),this.size=this._map.size,this}get(e){return this._map.get(e)}has(e){return this._map.has(e)}delete(e){return this._map.delete(e)&&(this._keys.splice(this._keys.indexOf(e),1),this.size=this._map.size),this}*keys(){yield*this._keys}*values(){for(const e of this._keys)yield this._map.get(e)}*entries(){for(const e of this._keys)yield[e,this._map.get(e)]}forEach(e){for(const n of this._keys)e(this._map.get(n),n,this)}clear(){this._map.clear(),this._keys=[],this.size=0}[Symbol.iterator](){return this.entries()}};function Mi(...t){const e=new Kn;for(let n=0;n<t.length;n+=2)e.set(t[n],t[n+1]);return e}function Ei(t,...e){const n=new Kn(null,pe(a(t)));for(let r=0;r<e.length;r+=2)n.set(e[r],e[r+1]);return n}function Wt(t,e,n){return r=>e(K(r,n),0)}function On(t,e,n=!0){let r=0;for(;r<t.length&&K(e,t[r])>0;r++);return r}function Si([t,e,n]){const r=Wt(t,e,n);if(e===Me||e===Ee){const o=[...t],u=On(o,n,!0);return o.splice(0,u),r(o[0])||o.splice(0,1),o}else return[...qt(r,t)]}function Ii([t,e,n,r,o]){const u=[...t],i=On(u,n,!0);u.splice(0,i);const s=Wt(t,r,o);return Wt(t,e,n)(u[0])||u.splice(0,1),[...qt(s,u)]}function Ri(...t){if(t.length===3)return Si(t);if(t.length===5)return Ii(t)}function vi(t){return Math.abs(t)}function ki(t){return Rn(t)}function Ni(t){return t}function Ti(t){return t}function Qi(t){return t!=null&&t.constructor}function Ki(t){return(e,n)=>{const r=t(e,n);return W(r)?Rt(r):r}}function $n(t){const e=Ki(t);return(...n)=>{switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return L(e,n[0],n[1])}}}function jn(t,e){const n=vn(t,e);return t-e*n}function Oi(t){const e=new Map;return(...n)=>{const r=[n.length,...n],o=le(e,r);if(o===void 0){const u=t(...n);return ke(e,r,u),u}else return o}}function $i(t){if(t==null)return null;if(ue(t))return C(t);if(ie(t))return t[t.length-1];throw Nt("IStack.-peek",t)}function ji(t){if(t==null)return null;if(ue(t)){if(t.length===0)throw new Error("Can't pop empty list");return It(t)}else if(ie(t)){if(t.length===0)throw new Error("Can't pop empty vector");const e=[...t];return e.pop(),e}else throw Nt("IStack.-pop",t)}function qi(t,e){const n=$t(t),r=Se(t)||z;return _e((o,u,i)=>r(o,e(u),i),n,t),n}function qn(t,e){const n=$t(t),r=Se(t)||z;return _e((o,u,i)=>r(o,u,e(i)),n,t),n}function zi(){return new pt(crypto.randomUUID())}class pt{constructor(e){this.uuid=e}toString(){return this.uuid}}function zn(t){return new pt(t.toLowerCase())}function Di(t){return t instanceof pt}const Gi=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;function Bi(t){if(typeof t!="string")throw new Error("Expected string, got: "+(t===null?"nil":typeof t));return Gi.test(t)?zn(t):null}function Fi(t){return t instanceof Date}const Ci=t=>t._deref();class we{constructor(e){this.f=e,this[te]=!0,this[T]=Ci}_deref(){return this.realized?this.v:(this.v=this.f(),this.realized=!0,this.v)}}function Li(t){if(t instanceof we||t instanceof x)return t.realized===!0;throw new Error("realized? not supported on: "+Xt(t))}function Wi(t){return t instanceof we?t._deref():t}function Pt(t,e){if(e.has(t))return t;if(e.add(t),wn(t))return qn(t,r=>Pt(r,e));const n=y(t);return n&&n!=g?Qt(r=>Pt(r,e),t):t}function Pi(t){return Pt(t,new Set)}function Yi(t,e){L((n,r)=>t(r),null,e)}function Ui(...t){return Zt(it(...t))}const Vi=t=>t.v;class Hi{constructor(e){this.v=e,this[T]=Vi}}function Ji(t){return new Hi(t)}function Xi(t,e){return t.v=e,e}function j(t,e=new WeakSet,n=!0){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 n?JSON.stringify(t):t;if(typeof t=="bigint")return`${t}N`;if(typeof t=="object"){if(t instanceof pt)return n?`#uuid "${t.uuid}"`:t.uuid;if(e.has(t))return"#object[circular]";e.add(t);const r=y(t);let o,u;switch(r){case b:u=`[${t.map(i=>j(i,e,n)).join(" ")}]`;break;case m:u=`#{${Array.from(t).map(i=>j(i,e,n)).join(" ")}}`;break;case h:u=`#js/Map {${Array.from(t.entries()).map(([i,s])=>`${j(i,e,n)} ${j(s,e,n)}`).join(", ")}}`;break;case I:case Q:u=`(${Qt(i=>`${j(i,e,n)}`,t).join(", ")})`;break;default:if(t.constructor&&t.constructor!==Object)return e.delete(t),`#<${t.constructor.name}>`;o=Object.keys(t),u=`{${o.map(i=>`:${i} ${j(t[i],e,n)}`).join(", ")}}`}return e.delete(t),u}return`#object[${t.constructor.name}]`}function ge(...t){return t.map((e,n)=>j(e)).join(" ")}function Zi(...t){U.val(ge(...t)),Ut.val&&U.val(`
|
|
3
|
-
`)}return Ln(ts);})();
|
|
1
|
+
var squint;(squint||={}).core=(()=>{var me=Object.defineProperty;var nu=Object.getOwnPropertyDescriptor;var ru=Object.getOwnPropertyNames;var uu=Object.prototype.hasOwnProperty;var ou=(t,e)=>{for(var n in e)me(t,n,{get:e[n],enumerable:!0})},iu=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let u of ru(e))!uu.call(t,u)&&u!==n&&me(t,u,{get:()=>e[u],enumerable:!(r=nu(e,u))||r.enumerable});return t};var su=t=>iu(me({},"__esModule",{value:!0}),t);var hf={};ou(hf,{Atom:()=>hr,Cons:()=>On,Delay:()=>cn,IAssociative:()=>eo,IAssociative__assoc:()=>q,IAssociative__contains_key_QMARK_:()=>At,IAtom:()=>Ju,ICollection:()=>uo,ICollection__conj:()=>w,ICounted:()=>no,ICounted__count:()=>bt,IDeref:()=>Xu,IDeref__deref:()=>O,IEditableCollection:()=>so,IEditableCollection__as_transient:()=>St,IEmptyableCollection:()=>oo,IEmptyableCollection__empty:()=>pt,IEncodeJS:()=>Ko,IEncodeJS__clj__GT_js:()=>Ne,IEquiv:()=>io,IEquiv__equiv:()=>R,IHash:()=>ho,IHash__hash:()=>Ee,IIndexed:()=>No,IIndexed__nth:()=>gt,IIterable:()=>Kn,IIterable__iterator:()=>Tu,IKVReduce:()=>ro,IKVReduce__kv_reduce:()=>$,ILookup:()=>to,ILookup__lookup:()=>H,IMap:()=>Wn,IMap__dissoc:()=>X,IMeta:()=>po,IMeta__meta:()=>Z,IPrintWithWriter:()=>ko,IPrintWithWriter__pr_writer:()=>Re,IRecord:()=>Le,IReset:()=>lr,IReset__reset_BANG_:()=>dt,ISeqable:()=>Zu,ISeqable__seq:()=>wt,ISet:()=>Dn,ISet__disjoin:()=>It,IStack:()=>vo,IStack__peek:()=>ke,IStack__pop:()=>Te,ISwap:()=>ar,ISwap__swap_BANG_:()=>j,ITransientAssociative:()=>fo,ITransientAssociative__assoc_BANG_:()=>ot,ITransientCollection:()=>co,ITransientCollection__conj_BANG_:()=>Mt,ITransientCollection__persistent_BANG_:()=>Et,ITransientMap:()=>lo,ITransientMap__dissoc_BANG_:()=>it,ITransientSet:()=>ao,ITransientSet__disjoin_BANG_:()=>st,ITransientVector:()=>qo,ITransientVector__pop_BANG_:()=>ve,IVector:()=>Qt,IWatchable:()=>_r,IWatchable__add_watch:()=>ht,IWatchable__notify_watches:()=>Jt,IWatchable__remove_watch:()=>yt,IWithMeta:()=>_o,IWithMeta__with_meta:()=>_t,IWriter:()=>Pn,IWriter__write:()=>Yt,LazySeq:()=>ts,NaN_QMARK_:()=>Ws,PROTOCOL_SENTINEL:()=>Uu,UUID:()=>Wt,_:()=>pu,_EQ_:()=>vt,_GT_:()=>dn,_GT__EQ_:()=>hn,_LT_:()=>cu,_LT__EQ_:()=>fu,_PLUS_:()=>lu,_SLASH_:()=>_u,_STAR_:()=>au,_STAR_print_err_fn_STAR_:()=>Iu,_STAR_print_fn_STAR_:()=>ft,_STAR_print_newline_STAR_:()=>Ce,__protocol_satisfies:()=>du,__toFn:()=>a,_add_watch:()=>Pe,_as_transient:()=>ur,_assoc:()=>Yn,_assoc_BANG_:()=>sr,_conj:()=>Zn,_conj_BANG_:()=>or,_contains_key_QMARK_:()=>Un,_count:()=>Ut,_deref:()=>ze,_disjoin:()=>rr,_disjoin_BANG_:()=>fr,_dissoc:()=>Jn,_dissoc_BANG_:()=>cr,_empty:()=>tr,_equiv:()=>er,_iterator:()=>Qn,_kv_reduce:()=>Xn,_lookup:()=>Hn,_notify_watches:()=>dr,_persistent_BANG_:()=>ir,_remove_watch:()=>He,_reset_BANG_:()=>Ve,_seq:()=>nr,_swap_BANG_:()=>pr,_write:()=>Fe,abs:()=>Oc,aclone:()=>xs,add_watch:()=>Ss,alength:()=>ds,any_QMARK_:()=>$s,apply:()=>yr,array:()=>Xo,array_QMARK_:()=>Ue,array_map:()=>gu,aset:()=>hs,assoc:()=>ct,assoc_BANG_:()=>V,assoc_in:()=>gn,assoc_in_BANG_:()=>wn,associative_QMARK_:()=>Rs,atom:()=>Bo,boolean$:()=>cs,boolean_QMARK_:()=>mc,bounded_count:()=>xc,butlast:()=>es,byte$:()=>Dc,cat:()=>Xr,char$:()=>oi,char_QMARK_:()=>ui,clj__GT_js:()=>of,coll_QMARK_:()=>oc,comp:()=>An,compare:()=>W,compare_and_set_BANG_:()=>Vo,complement:()=>Xt,concat:()=>fi,conj:()=>In,conj_BANG_:()=>L,cons:()=>Gu,constantly:()=>si,contains_QMARK_:()=>Mn,count:()=>ne,counted_QMARK_:()=>Dr,cycle:()=>Ti,dec:()=>bu,dedupe:()=>ji,deref:()=>rt,disj:()=>Sn,disj_BANG_:()=>je,dissoc:()=>Rn,dissoc_BANG_:()=>En,distinct:()=>Ki,distinct_QMARK_:()=>Gs,doall:()=>ms,dorun:()=>ys,double$:()=>Bc,double_QMARK_:()=>$r,double_array:()=>bs,drop:()=>de,drop_last:()=>ns,drop_while:()=>kr,empty:()=>le,empty_QMARK_:()=>Hi,ensure_reduced:()=>Rr,equiv:()=>yo,es6_iterator:()=>k,even_QMARK_:()=>mr,every_QMARK_:()=>Tr,every_pred:()=>ks,ex_cause:()=>fc,ex_data:()=>sc,ex_info:()=>lc,ex_message:()=>cc,false_QMARK_:()=>is,ffirst:()=>Nu,filter:()=>at,filterv:()=>Bu,find:()=>gc,first:()=>C,flatten:()=>Rc,float$:()=>Gc,float_QMARK_:()=>ac,float_array:()=>As,fn_QMARK_:()=>rn,fnext:()=>qu,fnil:()=>tn,force:()=>uf,frequencies:()=>Zi,get:()=>N,get_in:()=>Ze,get_validator:()=>Wo,group_by:()=>Xi,hash:()=>Rt,hash_map:()=>mn,hash_ordered_coll:()=>So,hash_set:()=>ni,hash_unordered_coll:()=>Mo,ident_QMARK_:()=>tc,identical_QMARK_:()=>bi,identity:()=>gr,ifn_QMARK_:()=>Os,inc:()=>kn,inst_QMARK_:()=>ef,int_QMARK_:()=>mt,int_array:()=>gs,integer_QMARK_:()=>pc,interleave:()=>wr,interpose:()=>pi,into:()=>Er,into_array:()=>Qr,iterable:()=>l,iterate:()=>vs,js_keys:()=>Ds,js_obj:()=>_s,juxt:()=>Ns,keep:()=>Bi,keep_indexed:()=>Pu,key:()=>Sr,keys:()=>Or,keyword:()=>Hs,keyword_QMARK_:()=>Us,last:()=>ju,lazy:()=>A,list:()=>xr,list_QMARK_:()=>Ye,list_STAR_:()=>ci,long$:()=>$c,long_array:()=>ws,map:()=>lt,map_QMARK_:()=>Kr,map_entry_QMARK_:()=>ku,map_indexed:()=>Fu,mapcat:()=>li,mapv:()=>se,max:()=>qr,max_key:()=>bc,memoize:()=>Vc,merge:()=>gi,merge_with:()=>wi,meta:()=>Gr,min:()=>Es,min_key:()=>Ac,missing_protocol:()=>jt,mod:()=>wc,name:()=>Hu,namespace:()=>Bt,nat_int_QMARK_:()=>dc,neg_QMARK_:()=>as,neg_int_QMARK_:()=>hc,next:()=>tt,nfirst:()=>Ku,nil_QMARK_:()=>Yu,nnext:()=>qs,not:()=>We,not_EQ_:()=>cf,not_any_QMARK_:()=>Vi,not_empty:()=>Ec,not_every_QMARK_:()=>$i,nth:()=>Nn,nthnext:()=>Ks,nthrest:()=>Qs,num:()=>Wc,number_QMARK_:()=>Cr,object_QMARK_:()=>xn,object_array:()=>Is,odd_QMARK_:()=>ii,parse_boolean:()=>fs,parse_double:()=>Sc,parse_long:()=>Ic,parse_uuid:()=>tf,partial:()=>ki,partition:()=>br,partition_all:()=>Ar,partition_by:()=>xi,partitionv:()=>hi,partitionv_all:()=>yi,peek:()=>Pc,persistent_BANG_:()=>Tc,pop:()=>Hc,pop_BANG_:()=>Yc,pos_QMARK_:()=>ps,pos_int_QMARK_:()=>_c,pr:()=>Eu,pr_str:()=>ye,print:()=>Tn,print_str:()=>vn,println:()=>Su,println_str:()=>Mu,prn:()=>_f,prn_str:()=>df,qualified_ident_QMARK_:()=>nc,qualified_keyword_QMARK_:()=>Zs,qualified_symbol_QMARK_:()=>uc,quot:()=>Lr,rand:()=>qe,rand_int:()=>Nr,rand_nth:()=>Yi,random_sample:()=>Wu,random_uuid:()=>Jc,range:()=>Po,re_find:()=>Yo,re_matches:()=>Ho,re_pattern:()=>Uo,re_seq:()=>Bs,realized_QMARK_:()=>rf,record_QMARK_:()=>Qo,reduce:()=>P,reduce_kv:()=>kt,reduced:()=>re,reduced_QMARK_:()=>nt,reductions:()=>Ou,regexp_QMARK_:()=>ic,rem:()=>Zr,remove:()=>Du,remove_watch:()=>Ms,repeat:()=>Xe,repeatedly:()=>Ji,replace:()=>Pi,reset_BANG_:()=>Ct,reset_vals_BANG_:()=>Lo,rest:()=>qt,reverse:()=>Wi,reversible_QMARK_:()=>Di,rseq:()=>zi,run_BANG_:()=>sf,satisfies_QMARK_:()=>hu,second:()=>vu,select_keys:()=>_i,seq:()=>K,seq_QMARK_:()=>Ru,seqable_QMARK_:()=>Oe,sequential_QMARK_:()=>Me,set:()=>ti,set_QMARK_:()=>ei,set_validator_BANG_:()=>Do,short$:()=>zc,shuffle:()=>Li,simple_ident_QMARK_:()=>ec,simple_keyword_QMARK_:()=>Xs,simple_symbol_QMARK_:()=>rc,some:()=>vr,some_QMARK_:()=>ss,some_fn:()=>Ts,sort:()=>ee,sort_by:()=>Fi,sorted_QMARK_:()=>ri,sorted_map:()=>qc,sorted_map_by:()=>Kc,sorted_set:()=>vc,sorted_set_by:()=>Nc,split_at:()=>rs,split_with:()=>us,str:()=>Be,string_QMARK_:()=>he,subs:()=>jr,subseq:()=>Cc,subvec:()=>Jo,swap_BANG_:()=>zo,swap_vals_BANG_:()=>Fo,symbol:()=>Ys,symbol_QMARK_:()=>un,system_time:()=>Ai,t:()=>Cs,take:()=>pe,take_last:()=>Si,take_nth:()=>Ri,take_while:()=>_e,to_array:()=>js,trampoline:()=>Vr,transduce:()=>sn,transient$:()=>kc,tree_seq:()=>Pr,true_QMARK_:()=>os,truth_:()=>m,type:()=>Fc,unchecked_add_int:()=>Ps,unchecked_dec_int:()=>Vs,unchecked_inc_int:()=>Ls,unchecked_int:()=>Fs,unreduced:()=>Je,update:()=>Ci,update_BANG_:()=>nn,update_in:()=>Oi,update_keys:()=>Uc,update_vals:()=>tu,uuid:()=>eu,uuid_QMARK_:()=>Xc,val:()=>Mr,vals:()=>zs,var_QMARK_:()=>Js,vary_meta:()=>yc,vec:()=>Ot,vector:()=>ie,vector_QMARK_:()=>Zo,volatile_BANG_:()=>af,vreset_BANG_:()=>pf,warn_on_lazy_reusage_BANG_:()=>$u,with_meta:()=>Br,write_all:()=>To,zero_QMARK_:()=>ls,zipmap:()=>Mc});function a(t){if(t==null||typeof t=="function")return t;if(typeof t=="string")return(e,n)=>N(e,t,n);switch(y(t)){case _:case M:case I:case b:return(e,n)=>N(t,e,n);case g:if(t[H]!==void 0)return(e,n)=>N(t,e,n)}return t}var Se=Object.prototype.hasOwnProperty;function fn(t,e,n){for(n of t.keys())if(z(n,e))return n}function ln(t){return t!=null&&t[et]===!0&&t[h]===_}function Dt(t){return t!=null&&(t instanceof Set||t[h]===b)}function Ft(t){return t!=null&&typeof t=="object"&&(t.constructor===Object||t instanceof Map||t[h]===_)}function an(t,e){return t instanceof Map||t[h]===_?t.has(e):Se.call(t,e)}function xe(t,e){return t instanceof Map||t[h]===_?t.get(e):t[e]}function zt(t){return t instanceof Map||t[h]===_?t.size:Object.keys(t).length}function z(t,e){if(t===e)return!0;if(t==null)return e==null;if(e==null)return!1;if(typeof t=="object"&&t[R]!==void 0)return!!t[R](t,e);if(typeof e=="object"&&e[R]!==void 0)return!!e[R](e,t);var n,r,u;const o=ln(t);if(o||ln(e)){const i=o?t:e,s=i===t?e:t;if(!Ft(s)||zt(i)!==zt(s))return!1;for(const c of i.keys())if(!an(s,c)||!z(i.get(c),xe(s,c)))return!1;return!0}if(Ft(t)&&Ft(e)&&t.constructor!==e.constructor){if(zt(t)!==zt(e))return!1;for(const i of t instanceof Map?t.keys():Object.keys(t))if(!an(e,i)||!z(xe(t,i),xe(e,i)))return!1;return!0}if(Dt(t)||Dt(e)){if(!Dt(t)||!Dt(e)||t.size!==e.size)return!1;for(let i of t)if(i&&typeof i=="object"&&(i=fn(e,i),!i)||!e.has(i))return!1;return!0}if(t&&e&&(n=t.constructor)===e.constructor){if(n===Date)return t.getTime()===e.getTime();if(n===RegExp)return!1;if(n===Array){if((r=t.length)===e.length)for(;r--&&z(t[r],e[r]););return r===-1}if(n===Map){if(t.size!==e.size)return!1;for(const i of t)if(u=i[0],u&&typeof u=="object"&&(u=fn(e,u),!u)||!z(i[1],e.get(u)))return!1;return!0}if((!n||typeof t=="object")&&t[h]!==v){r=0;for(const i in t)if(Se.call(t,i)&&++r&&!Se.call(e,i)||!(i in e)||!z(t[i],e[i]))return!1;return Object.keys(e).length===r}}if(t&&e&&(Array.isArray(t)||t[h]===v)&&(Array.isArray(e)||e[h]===v)){const i=t[Symbol.iterator](),s=e[Symbol.iterator]();for(;;){const c=i.next(),f=s.next();if(c.done||f.done)return!!(c.done&&f.done);if(!z(c.value,f.value))return!1}}return!1}function Tt(t,e){return t.every(function(n,r){return r===0||e(t[r-1],n)})}function vt(...t){return Tt(t,(e,n)=>z(e,n))}function dn(...t){return Tt(t,(e,n)=>e>n)}function hn(...t){return Tt(t,(e,n)=>e>=n)}function cu(...t){return Tt(t,(e,n)=>e<n)}function fu(...t){return Tt(t,(e,n)=>e<=n)}function lu(...t){return t.reduce((e,n)=>e+n,0)}function au(...t){return t.reduce((e,n)=>e*n,1)}function pu(...t){return t.length==1?0-t[0]:t.reduce((e,n)=>e-n)}function _u(...t){return t.length===1?1/t[0]:t.reduce((e,n)=>e/n)}const du={};function hu(t,e){return e==null?t[null]:typeof t=="symbol"?e[t]:e[t.__sym]}function yu(t,e,n){return t.set(e,n),t}function mu(t,e,n){return t[e]=n,t}function yn(t){switch(y(t)){case _:return yu;case M:case I:case g:return mu}}function xu(t,e,n){let r=t.length;for(let u=0;u<n.length+2;u+=2){const o=u===0?e:n[u-2];if(!Number.isInteger(o))throw new Error("Vector's key for assoc must be a number.");if(o<0||o>r)throw new Error(`Index ${o} out of bounds [0,${r}]`);o===r&&r++}}function V(t,e,n,...r){if(arguments.length<3||r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");switch(y(t)){case _:t.set(e,n);for(let u=0;u<r.length;u+=2)t.set(r[u],r[u+1]);break;case M:xu(t,e,r),t[e]=n;for(let u=0;u<r.length;u+=2)t[r[u]]=r[u+1];break;case g:if(t[ot]!==void 0){let u=t[ot](t,e,n);for(let o=0;o<r.length;o+=2)u=u[ot](u,r[o],r[o+1]);return u}case I: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}function S(t,e){const n=t?.[Z];return n!==void 0&&(e[Z]=n,e[_t]=t[_t]),e}function F(t){switch(y(t)){case _:return S(t,new t.constructor(t));case b:return S(t,new t.constructor(t));case M:return S(t,[...t]);case g:case I:return S(t,{...t});case B:return S(t,new $t(...t));default:throw new Error(`Don't know how to copy object of type ${typeof t}.`)}}function ct(t,e,n,...r){if(arguments.length<3||r.length%2!==0)throw new Error("Illegal argument: assoc expects an odd number of arguments.");if(t==null&&(t={}),t[q]!==void 0){let o=t[q](t,e,n);for(let i=0;i<r.length;i+=2)o=o[q](o,r[i],r[i+1]);return o}const u=F(t);return V(u,e,n,...r),u}function mn(...t){if(t.length===0)return{};if(t.length%2!==0)throw new Error("No value supplied for key: "+t[t.length-1]);return ct({},...t)}const gu=mn,_=1,M=2,I=3,B=4,b=5,v=6,g=7,h=Symbol("squint.lang.type"),et=Symbol("squint.lang.sorted");function wu(t,e){return t.squint$lang$variadic=e,t}function Qe(t){switch(t){case _:return new Map;case M:return[];case I:return{};case B:return new $t;case b:return new Set;case v:return A(function*(){})}}function Nt(t){return t.constructor===Object}function E(t){return Array.isArray(t)&&t[h]!==B}function xn(t){return t!=null&&Nt(t)}function y(t){if(t==null)return;if(Nt(t))return I;if(t instanceof Map)return _;if(t instanceof Set)return b;const e=t[h];if(e!==void 0)return e;if(E(t))return M;if(typeof t=="object")return g}function Au(t,e,n,r,u){r=Ot(r),n=n||{};const o=y(n);if(o!==_&&o!==M&&o!==I&&o!==g)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 c=0;c<r.length-1;c+=1){const f=r[c];let d;s instanceof Map?d=s.get(f):s!=null&&s[H]!==void 0?d=s[H](s,f,void 0):d=s[f],d||(d=Qe(o)??{}),i.push(d),s=d}i.push(u);for(let c=i.length-2;c>=0;c-=1)i[c]=t(i[c],r[c],i[c+1]);return i[0]}function gn(t,e,n){return Au(ct,"assoc-in",t,e,n)}function wn(t,e,n){e=Ot(e);var r=t;const u=y(t);for(const o of e.splice(0,e.length-1)){let i=N(r,o);i===void 0&&(i=Qe(u),V(r,o,i)),r=i}return V(r,e[e.length-1],n),t}function An(...t){if(t=t.map(a),t.length===0)return gr;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 bn(t,e){for(const n of e)t.add(n);return t}function L(...t){const e=t.length;if(e===0)return ie();if(e===1)return t[0];let n=t[0];if(n==null&&(n=[]),e===2)switch(y(n)){case M:return n.push(t[1]),n;case b:return n.add(t[1]),n}const r=t.slice(1);switch(y(n)){case b:bn(n,r);break;case B:n.unshift(...r.reverse());break;case M:n.push(...r);break;case _:for(const u of r)if(E(u))Pt(u),n.set(u[0],u[1]);else for(const o of Vt(u))n.set(o[0],o[1]);break;case g:if(n[Mt]!==void 0){let u=n[Mt](n,r[0]);for(let o=1;o<r.length;o++)u=L(u,r[o]);return u}case I:for(const u of r)if(E(u))Pt(u),n[u[0]]=u[1];else for(const o of Vt(u))n[o[0]]=o[1];break;default:throw new Error("Illegal argument: conj! expects a Set, Array, List, Map, or Object as the first argument.")}return n}function*Vt(t){if(Ft(t)){yield*l(t);return}for(const e of l(t)){if(!E(e))throw new Error("conj on a map takes map entries or seqables of map entries");yield e}}function Pt(t){if(t.length<2)throw new Error("Vector arg to map conj must be a pair");return t}function In(...t){if(t.length===0)return ie();const[e,...n]=t;if(n.length===0)return e;let r=e;r==null&&(r=xr());let u,o;switch(y(r)){case b:return r[et]?S(r,bn(new r.constructor(r),n)):S(r,new r.constructor([...r,...n]));case B:return S(r,new $t(...n.reverse(),...r));case M:return S(r,[...r,...n]);case _:u=new Map(r);for(const i of n)if(E(i))Pt(i),u.set(i[0],i[1]);else for(const s of Vt(i))u.set(s[0],s[1]);return S(r,u);case v:return A(function*(){yield*n,yield*r});case g:if(r[w]!==void 0){o=r[w](r,n[0]);for(let i=1;i<n.length;i++)o=In(o,n[i]);return o}case I:o={...r};for(const i of n)if(E(i))Pt(i),o[i[0]]=i[1];else for(const s of Vt(i))o[s[0]]=s[1];return S(r,o);default:throw new Error("Illegal argument: conj expects a Set, Array, List, Map, or Object as the first argument.")}}function je(t,...e){if(t!=null&&t[st]!==void 0){let n=t;for(const r of e)n=n!=null&&n[st]!==void 0?n[st](n,r):je(n,r);return n}for(const n of e)t.delete(n);return t}function Sn(t,...e){if(t==null||e.length===0)return t;if(t[It]!==void 0){let r=t[It](t,e[0]);for(let u=1;u<e.length;u++)r=Sn(r,e[u]);return r}const n=new t.constructor(t);return S(t,je(n,...e))}function Mn(t,e){if(typeof t=="string")return mt(e)&&e>=0&&e<t.length;switch(y(t)){case b:case _:return t.has(e);case void 0:return!1;case g:if(t[At]!==void 0)return t[At](t,e);default:return e in t}}function En(t,...e){if(t!=null&&t[it]!==void 0){let n=t;for(const r of e)n=n!=null&&n[it]!==void 0?n[it](n,r):En(n,r);return n}for(const n of e)delete t[n];return t}function Rn(t,...e){if(!t)return;if(e.length===0)return t;const n=y(t);if(n!==_&&n!==I&&n!==g)throw new Error("dissoc expects a map, got: "+typeof t);if(n===g&&t[X]!==void 0){let o=t;for(const i of e){if(o==null)return o;o=o[X]!==void 0?o[X](o,i):Rn(o,i)}return o}if(n===_){let o=!1;for(const s of e)if(t.has(s)){o=!0;break}if(!o)return t;const i=F(t);for(const s of e)i.delete(s);return i}let r=!1;for(const o of e)if(o in t){r=!0;break}if(!r)return t;const u=F(t);for(const o of e)delete u[o];return u}function kn(t){return t+1}function bu(t){return t-1}const Ce={val:!1},ft={val:t=>console.log(t)},Iu={val:t=>console.error(t)};function Tn(...t){ft.val(t.map(e=>Q(e,void 0,!1)).join(" "))}function Su(...t){Tn(...t),Ce.val&&ft.val(`
|
|
2
|
+
`)}function vn(...t){return t.map(e=>Q(e,void 0,!1)).join(" ")}function Mu(...t){return vn(...t)+`
|
|
3
|
+
`}function Eu(...t){ft.val(ye(...t))}function Nn(t,e,n){if(typeof e!="number")throw new Error("Index argument to nth must be a number");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(t[gt]!==void 0)return r?t[gt](t,e,n):t[gt](t,e);if(e>=0){const u=U(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 N(t,e,n=void 0){if(t==null)return n;let r;if(Nt(t))return r=t[e],r===void 0?n:r;let u;switch(y(t)){case b:t.has(e)&&(r=e);break;case _:r=t.get(e);break;case M:r=t[e];break;default:if(t[H]!==void 0)return r=t[H](t,e,n),r===void 0?n:r;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 Ru(t){return t!=null&&!!t[Symbol.iterator]}function Me(t){return Array.isArray(t)||t?.[h]===v||t!=null&&t[Qt.__sym]!==void 0}function Oe(t){return t==null||xn(t)||!!t[Symbol.iterator]||!!t[Bn]}const qn=Symbol("squint.lang.map-entry");function Ht(t){return t[qn]=!0,t}function ku(t){return Array.isArray(t)&&t[qn]===!0}function l(t){if(t==null)return[];if(t[Symbol.iterator])return t;if(t[wt]!==void 0)return l(t[wt](t));if(Nt(t))return Object.entries(t).map(Ht);throw new TypeError(`${t} is not iterable`)}const Kn=Symbol("Iterable"),Tu=Symbol.iterator;function Qn(t){return t[Symbol.iterator]()}const k=Qn;function K(t){if(t==null)return t;if(!Oe(t))throw new TypeError(t+" is not ISeqable");if(typeof t=="string")return t.length?[...t]:null;const e=l(t);if(e.length===0||e.size===0)return null;if(e instanceof Set||e[h]===b)return[...e];if(e instanceof Map||e[h]===_)return[...e].map(Ht);if(e[X]!==void 0){const r=[...e].map(Ht);return r.length===0?null:r}return e[Symbol.iterator]().next().done?null:e}function C(t){if(t==null)return;if(Array.isArray(t))return t[0];if(t instanceof x)return t.force(),t.chunk===null?void 0:t.chunk[0];const[e]=l(t);return e}function vu(t){if(t instanceof x){t.force();const r=t.chunk;return r===null?void 0:r.length>1?r[1]:C(t._rest)}const[e,n]=l(t);return n}function Nu(t){return C(C(t))}function qu(t){return C(tt(t))}function Ku(t){return tt(C(t))}function qt(t){const e=Ge(t);e.force();const n=e.chunk;if(n===null)return e;if(n.length>1){const r=new x(null);return r.realized=!0,r.chunk=n.slice(1),r._rest=e._rest,r}return e._rest}const Qu=t=>t.value;class ut{value;constructor(e){this.value=e,this[O]=Qu}}function ju(t){if(t=l(t),Array.isArray(t))return t[t.length-1];const e=U(t);let n,r;for(;(r=e())!==null;)n=r[r.length-1];return n}function re(t){return new ut(t)}function nt(t){return t instanceof ut}function P(t,e,n){t=a(t);const r=arguments.length!==2,u=r?n:e;let o=r?e:void 0;if(Array.isArray(u)){let f=0;if(!r){if(u.length===0)return t();o=u[0],f=1}if(o instanceof ut)return o.value;for(;f<u.length;f++)if(o=t(o,u[f]),o instanceof ut)return o.value;return o}const i=U(u);let s=i(),c=0;if(!r){if(s===null)return t();o=s[0],c=1}if(o instanceof ut)return o.value;for(;s!==null;){for(;c<s.length;c++)if(o=t(o,s[c]),o instanceof ut)return o.value;s=i(),c=0}return o}function*Cu(t,e){const n=e.next();n.done?yield t():yield*jn(t,n.value,e)}function*jn(t,e,n){let r=e;const u=n;for(;;){if(nt(r)){yield r.value;return}else yield r;const o=u.next();if(o.done)break;r=t(r,o.value)}}function Ou(t,e,n){if(t=a(t),arguments.length===2){const u=k(l(e));return A(function*(){yield*Cu(t,u)})}const r=k(l(n));return A(function*(){yield*jn(t,e,r)})}function $u(){console.warn("warn-on-lazy-reusage! is deprecated and does nothing: lazy values are now cached.")}const ue=32,x=class Cn{constructor(e){this[h]=v,this[Kn]=!0,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 Cn(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}}}indexOf(e,n=0){let r=0;for(const u of this){if(r>=n&&u===e)return r;r++}return-1}};function $e(t){const e=()=>{const n=t.next();return n.done?null:[[n.value],e]};return e}function A(t){return new x($e(t()))}function Y(t,e){const n=k(l(t));return A(()=>e(n))}function Ge(t){if(t instanceof x)return t;if(Array.isArray(t)){const e=n=>()=>{if(n>=t.length)return null;const r=Math.min(n+ue,t.length);return[t.slice(n,r),e(r)]};return new x(e(0))}return new x($e(k(l(t))))}function U(t){if(t instanceof x){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=k(l(t));return()=>{const n=[];for(let r=0;r<ue;r++){const u=e.next();if(u.done)break;n.push(u.value)}return n.length===0?null:n}}function Kt(t,e){const n=Ge(t),r=(u,o)=>()=>{let i=u,s=o;for(;;){i.force();const c=i.chunk;if(c===null)return null;const f=e(c,s),d=i._rest;if(s+=c.length,f.length!==0)return[f,r(d,s)];i=d}};return new x(r(n,0))}const On=class{constructor(e,n){this[h]=v,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=k(l(n)),n=null),u.next()):(r=!0,{value:e,done:!1})},[Symbol.iterator](){return this}}}};function Gu(t,e){if(!Oe(e))throw new TypeError(e+" is not ISeqable");return new On(t,e)}function lt(t,...e){switch(t=a(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 Kt(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=>k(l(r)));return A(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 T(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 $n(t){return T(e=>(n,r)=>m(t(r))?e(n,r):n)}function at(t,e){return arguments.length===1?$n(t):(t=a(t),Kt(e,n=>{const r=[];for(let u=0;u<n.length;u++){const o=n[u];m(t(o))&&r.push(o)}return r}))}function Bu(t,e){return ce([],at(t,e))}function Wu(t,e){return arguments.length===1?at(n=>qe()<t):at(n=>qe()<t,e)}function Du(t,e){return arguments.length===1?$n(Xt(t)):at(Xt(t),e)}function zu(t){return T(e=>{let n=-1;return(r,u)=>e(r,t(++n,u))})}function Fu(t,e){return t=a(t),arguments.length===1?zu(t):Kt(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 Lu(t,e){return t=a(t),Kt(e,(n,r)=>{const u=[];for(let o=0;o<n.length;o++){const i=t(r+o,n[o]);m(i)&&u.push(i)}return u})}function Vu(t){return T(e=>{let n=-1;return(r,u)=>{const o=t(++n,u);return o==null?r:e(r,o)}})}function Pu(t,e){return arguments.length===1?Vu(t):Lu(t,e)}function Be(...t){return t.join("")}function Hu(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 We(t){return!m(t)}function Yu(t){return t==null}const Uu={},Gn=Symbol("squint.core.IAtom"),De=Symbol("squint.core.IDeref"),Bn=Symbol("squint.core.ISeqable"),Ju={__sym:Gn},Xu={__sym:De},O=Symbol("IDeref_-deref");function ze(t){return t!=null&&t[O]!==void 0?t[O](t):p(ze,"IDeref.-deref",t)(t)}const Zu={__sym:Bn},wt=Symbol("ISeqable_-seq"),to={__sym:Symbol("squint.core.ILookup")},H=Symbol("ILookup_-lookup"),eo={__sym:Symbol("squint.core.IAssociative")},q=Symbol("IAssociative_-assoc"),At=Symbol("IAssociative_-contains-key?"),Wn={__sym:Symbol("squint.core.IMap")},X=Symbol("IMap_-dissoc"),no={__sym:Symbol("squint.core.ICounted")},bt=Symbol("ICounted_-count"),ro={__sym:Symbol("squint.core.IKVReduce")},$=Symbol("IKVReduce_-kv-reduce"),uo={__sym:Symbol("squint.core.ICollection")},w=Symbol("ICollection_-conj"),oo={__sym:Symbol("squint.core.IEmptyableCollection")},pt=Symbol("IEmptyableCollection_-empty"),io={__sym:Symbol("squint.core.IEquiv")},R=Symbol("IEquiv_-equiv"),Dn={__sym:Symbol("squint.core.ISet")},It=Symbol("ISet_-disjoin"),so={__sym:Symbol("squint.core.IEditableCollection")},St=Symbol("IEditableCollection_-as-transient"),co={__sym:Symbol("squint.core.ITransientCollection")},Mt=Symbol("ITransientCollection_-conj!"),Et=Symbol("ITransientCollection_-persistent!"),fo={__sym:Symbol("squint.core.ITransientAssociative")},ot=Symbol("ITransientAssociative_-assoc!"),lo={__sym:Symbol("squint.core.ITransientMap")},it=Symbol("ITransientMap_-dissoc!"),ao={__sym:Symbol("squint.core.ITransientSet")},st=Symbol("ITransientSet_-disjoin!"),po={__sym:Symbol("squint.core.IMeta")},Z=Symbol("IMeta_-meta"),_o={__sym:Symbol("squint.core.IWithMeta")},_t=Symbol("IWithMeta_-with-meta"),ho={__sym:Symbol("squint.core.IHash")},Ee=Symbol("IHash_-hash");function yo(t,e){return t===e?!0:t==null?e==null:e==null?!1:t[R]!==void 0?!!t[R](t,e):e[R]!==void 0?!!e[R](e,t):t instanceof Date&&e instanceof Date?t.getTime()===e.getTime():!1}const pn=new WeakMap;let mo=0;function _n(t){let e=pn.get(t);return e===void 0&&(e=++mo,pn.set(t,e)),e}const G=Math.imul,xo=-862048943,go=461845907;function zn(t,e){return t<<e|t>>>32-e}function Fn(t){return G(zn(G(t|0,xo),15),go)}function Ln(t,e){return G(zn((t|0)^(e|0),13),5)+-430675100|0}function Vn(t,e){return t=t^e|0,t=t^t>>>16|0,t=G(t,-2048144789),t=t^t>>>13|0,t=G(t,-1028477387),t^t>>>16|0}function wo(t){return t===0?0:Vn(Ln(0,Fn(t)),4)}let ge=Object.create(null),we=0;function Ao(t){let e=0;for(let n=0;n<t.length;n++)e=G(31,e)+t.charCodeAt(n)|0;return e}function bo(t){we>8192&&(ge=Object.create(null),we=0);let e=ge[t];return typeof e!="number"&&(e=Ao(t),ge[t]=e,we++),e}const Ae=(()=>{const t=new Float64Array(1);return{f64:t,i32:new Int32Array(t.buffer)}})();function Io(t){return Ae.f64[0]=t,Ae.i32[0]^Ae.i32[1]|0}function oe(t,e){return Vn(Ln(0,Fn(t)),e)}function So(t){let e=0,n=1;for(const r of t)n=G(31,n)+Rt(r)|0,e++;return oe(n,e)}function Mo(t){let e=0,n=0;for(const r of t)n=n+Rt(r)|0,e++;return oe(n,e)}function Eo(t,e){return oe(G(31,G(31,1)+Rt(t)|0)+Rt(e)|0,2)}function Ro(t){let e=0,n=0;for(const[r,u]of t)n=n+Eo(r,u)|0,e++;return oe(n,e)}function Rt(t){if(t==null)return 0;switch(typeof t){case"number":return Number.isFinite(t)?Number.isSafeInteger(t)?t%2147483647|0:Io(t):t===1/0?2146435072:t===-1/0?-1048576:2146959360;case"boolean":return t?1231:1237;case"string":return wo(bo(t));case"bigint":return Number(t%2147483647n)|0;case"function":return _n(t)|0;case"object":break;default:return 0}return t[Ee]!==void 0?t[Ee](t)|0:t instanceof Date?t.valueOf()|0:t[R]!==void 0?Ro(Object.entries(t)):_n(t)|0}const Pn={__sym:Symbol("squint.core.IWriter")},Yt=Symbol("IWriter_-write"),ko={__sym:Symbol("squint.core.IPrintWithWriter")},Re=Symbol("IPrintWithWriter_-pr-writer");function Fe(t,e){return t!=null&&t[Yt]!==void 0?t[Yt](t,e):p(Fe,"IWriter.-write",t)(t,e)}function To(t,...e){for(const n of e)Fe(t,n)}const vo={__sym:Symbol("squint.core.IStack")},ke=Symbol("IStack_-peek"),Te=Symbol("IStack_-pop"),No={__sym:Symbol("squint.core.IIndexed")},gt=Symbol("IIndexed_-nth"),qo={__sym:Symbol("squint.core.ITransientVector")},ve=Symbol("ITransientVector_-pop!"),Qt={__sym:Symbol("squint.core.IVector")},Ko={__sym:Symbol("squint.core.IEncodeJS")},Ne=Symbol("IEncodeJS_-clj->js"),Le={__sym:Symbol("squint.core.IRecord")};function Qo(t){return t!=null&&t[Le.__sym]!==void 0}function Hn(t,e,n){return t!=null&&t[H]!==void 0?t[H](t,e,n):p(Hn,"ILookup.-lookup",t)(t,e,n)}function Yn(t,e,n){return t!=null&&t[q]!==void 0?t[q](t,e,n):p(Yn,"IAssociative.-assoc",t)(t,e,n)}function Un(t,e){return t!=null&&t[At]!==void 0?t[At](t,e):p(Un,"IAssociative.-contains-key?",t)(t,e)}function Jn(t,e){return t!=null&&t[X]!==void 0?t[X](t,e):p(Jn,"IMap.-dissoc",t)(t,e)}function Ut(t){return t!=null&&t[bt]!==void 0?t[bt](t):p(Ut,"ICounted.-count",t)(t)}function Xn(t,e,n){return t!=null&&t[$]!==void 0?t[$](t,e,n):p(Xn,"IKVReduce.-kv-reduce",t)(t,e,n)}function Zn(t,e){return t!=null&&t[w]!==void 0?t[w](t,e):p(Zn,"ICollection.-conj",t)(t,e)}function tr(t){return t!=null&&t[pt]!==void 0?t[pt](t):p(tr,"IEmptyableCollection.-empty",t)(t)}function er(t,e){return t!=null&&t[R]!==void 0?t[R](t,e):p(er,"IEquiv.-equiv",t)(t,e)}function nr(t){return t!=null&&t[wt]!==void 0?t[wt](t):p(nr,"ISeqable.-seq",t)(t)}function rr(t,e){return t!=null&&t[It]!==void 0?t[It](t,e):p(rr,"ISet.-disjoin",t)(t,e)}function ur(t){return t!=null&&t[St]!==void 0?t[St](t):p(ur,"IEditableCollection.-as-transient",t)(t)}function or(t,e){return t!=null&&t[Mt]!==void 0?t[Mt](t,e):p(or,"ITransientCollection.-conj!",t)(t,e)}function ir(t){return t!=null&&t[Et]!==void 0?t[Et](t):p(ir,"ITransientCollection.-persistent!",t)(t)}function sr(t,e,n){return t!=null&&t[ot]!==void 0?t[ot](t,e,n):p(sr,"ITransientAssociative.-assoc!",t)(t,e,n)}function cr(t,e){return t!=null&&t[it]!==void 0?t[it](t,e):p(cr,"ITransientMap.-dissoc!",t)(t,e)}function fr(t,e){return t!=null&&t[st]!==void 0?t[st](t,e):p(fr,"ITransientSet.-disjoin!",t)(t,e)}function p(t,e,n){const r=t[null];if(r===void 0)throw jt(e,n);return r}const lr={__sym:Symbol("squint.core.IReset")},dt=Symbol("IReset_-reset!");function Ve(t,e){return t!=null&&t[dt]!==void 0?t[dt](t,e):p(Ve,"IReset.-reset!",t)(t,e)}const ar={__sym:Symbol("squint.core.ISwap")},j=Symbol("ISwap_-swap!");function pr(t,e,...n){return t!=null&&t[j]!==void 0?t[j](t,e,...n):p(pr,"ISwap.-swap!",t)(t,e,...n)}const _r={__sym:Symbol("squint.core.IWatchable")},ht=Symbol("IWatchable_-add-watch"),yt=Symbol("IWatchable_-remove-watch"),Jt=Symbol("IWatchable_-notify-watches");function Pe(t,e,n){return t!=null&&t[ht]!==void 0?t[ht](t,e,n):p(Pe,"IWatchable.-add-watch",t)(t,e,n)}function He(t,e){return t!=null&&t[yt]!==void 0?t[yt](t,e):p(He,"IWatchable.-remove-watch",t)(t,e)}function dr(t,e,n){return t!=null&&t[Jt]!==void 0?t[Jt](t,e,n):p(dr,"IWatchable.-notify-watches",t)(t,e,n)}const jo=t=>t.val,xt=(t,e)=>{if(t._validator&&!m(t._validator(e)))throw new Error("Validator rejected reference state");const n=t.val;if(t.val=e,t._hasWatches)for(const[r,u]of Object.entries(t._watches))u(r,t,n,e);return e},Co=function(t,e,n,r,u){switch(arguments.length){case 2:return xt(t,e(t.val));case 3:return xt(t,e(t.val,n));case 4:return xt(t,e(t.val,n,r));default:return xt(t,e(t.val,n,r,...u))}},Oo=(t,e,n)=>{t._watches[e]=n,t._hasWatches=!0},$o=(t,e)=>{delete t._watches[e]},Go=(t,e,n)=>{for(const[r,u]of Object.entries(t._watches))u(r,t,e,n)};class hr{constructor(e){this.val=e,this._watches={},this._hasWatches=!1,this[Gn]=!0,this[De]=!0,this[O]=jo,this[lr.__sym]=!0,this[dt]=xt,this[ar.__sym]=!0,this[j]=Co,this[_r.__sym]=!0,this[ht]=Oo,this[yt]=$o,this[Jt]=Go}}function Bo(t,...e){const n=new hr(t);for(let r=0;r<e.length;r+=2)if(e[r]==="meta"){const u=e[r+1];n[Z]=()=>u}else e[r]==="validator"&&(n._validator=e[r+1]);return n}function Wo(t){return t._validator??null}function Do(t,e){if(e!=null&&!m(e(rt(t))))throw new Error("Validator rejected reference state");return t._validator=e,null}function jt(t,e){let n;return e===null?n="null":e===void 0?n="undefined":Array.isArray(e)?n="array":typeof e=="object"&&e.constructor&&e.constructor!==Object?n=e.constructor.name:n=typeof e,new Error(`No protocol method ${t} defined for type ${n}: ${e??""}`)}function rt(t){return t?.[O]!==void 0?t[O](t):p(ze,"IDeref.-deref",t)(t)}function Ct(t,e){return t?.[dt]!==void 0?t[dt](t,e):p(Ve,"IReset.-reset!",t)(t,e)}function zo(t,e,...n){if(e=a(e),t?.[j]!==void 0)switch(n.length){case 0:return t[j](t,e);case 1:return t[j](t,e,n[0]);case 2:return t[j](t,e,n[0],n[1]);default:return t[j](t,e,n[0],n[1],n.slice(2))}const r=e(rt(t),...n);return Ct(t,r),r}function Fo(t,e,...n){const r=rt(t);e=a(e);const u=e(r,...n);return Ct(t,u),[r,u]}function Lo(t,e){const n=rt(t);return Ct(t,e),[n,e]}function Vo(t,e,n){return rt(t)===e?(Ct(t,n),!0):!1}function Po(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 s=o>=0,c=d=>u===void 0||s&&d<u||!s&&u<d,f=d=>()=>{if(!c(d))return null;const D=[];let J=d;for(;D.length<ue&&c(J);)D.push(J),J+=o;return[D,f(J)]};return new x(f(i))}function Ho(t,e){const n=t.exec(e);return n&&e===n[0]?n.length===1?n[0]:n:null}function Yo(t,e){if(he(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 Uo(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 Jo(t,e,n){if(t!=null&&t[Qt.__sym]!==void 0){if(n===void 0&&(n=Ut(t)),e==null||n==null)throw new Error("subvec: start and end must not be nil");if(e=e|0,n=n|0,e<0||n<e||n>Ut(t))throw new Error("subvec: index out of bounds");let r=t[pt](t);for(let u=e;u<n;u++)r=r[w](r,t[gt](t,u));return r}if(!E(t))throw new Error("subvec: argument must be a vector");if(n===void 0&&(n=t.length),e==null||n==null)throw new Error("subvec: start and end must not be nil");if(e=e|0,n=n|0,e<0||n<e||n>t.length)throw new Error("subvec: index out of bounds");return t.slice(e,n)}function ie(...t){return t}const Xo=ie;function Zo(t){return t==null?!1:E(t)||t[Qt.__sym]!==void 0}function se(...t){if(t.length===2){const[n,r]=t,u=a(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=[],s=U(o);let c;for(;(c=s())!==null;)for(let f=0;f<c.length;f++)i.push(u(c[f]));return i}}return[...lt(...t)]}function ce(t,e){if(e instanceof x){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 fe(t){return t instanceof x?ce([],t):[...l(t)]}function Ot(t){return E(t)||t!=null&&t[Qt.__sym]!==void 0?t:ce([],t)}function ti(t){return new Set(l(t))}function ei(t){return t==null?!1:y(t)===b||t[Dn.__sym]!==void 0}function ni(...t){return new Set(t)}function ri(t){return t!=null&&t[et]===!0}function ui(t){return typeof t=="string"&&t.length===1}function oi(t){if(typeof t=="string"&&t.length===1)return t;if(typeof t=="number")return String.fromCharCode(t);throw new Error("Argument to char must be a character or number: "+t)}function yr(t,...e){t=a(t);const n=e.slice(0,e.length-1),r=e[e.length-1],u=t.squint$lang$variadic;if(u){const o=u.length-1,i=[];let s=0,c;for(;s<o&&s<n.length;s++)i.push(n[s]);if(s<o){let f=K(r);for(;s<o&&f!=null;s++)i.push(C(f)),f=tt(f);c=f}else c=s<n.length?Zt([n.slice(s),r]):r;return c=c==null?null:K(c),c==null?t(...i):u(...i,c)}return t(...n,...l(r))}function mr(t){if(!Number.isInteger(t))throw new Error(`Argument must be an integer: ${t}`);return t%2==0}function ii(t){return!mr(t)}function Xt(t){return t=a(t),(...e)=>We(t(...e))}function si(t){return(...e)=>t}class $t extends Array{constructor(...e){super(),this[h]=B,this.push(...e)}}function Ye(t){return t?.[h]===B}function xr(...t){return new $t(...t)}function ci(...t){const e=t.pop();return new $t(...t,...l(e))}function Ue(t){return Array.isArray(t)}const be=Symbol("concat-done");function Zt(t){const e=Array.isArray(t),n=e?t.slice():null,r=e?null:k(l(t));let u=0;const o=()=>{if(e){if(u>=n.length)return be;const c=n[u];return n[u]=null,u++,c}const s=r.next();return s.done?be:s.value},i=s=>()=>{for(;;){if(s!==null)if(s instanceof x){if(s.force(),s.chunk!==null)return[s.chunk,i(s._rest)];s=null}else{const f=s.a,d=s.pos;if(d<f.length){const D=Math.min(d+ue,f.length);return[f.slice(d,D),i({a:f,pos:D})]}s=null}const c=o();if(c===be)return null;s=c instanceof x?c:Array.isArray(c)?{a:c,pos:0}:Ge(c)}};return new x(i(null))}const fi=wu((...t)=>Zt(t),t=>Zt(t));function li(t,...e){return e.length===0?An(lt(t),Xr):Zt(lt(t,...e))}function gr(t){return t}function wr(...t){const e=t.map(n=>k(l(n)));return A(function*(){for(;;){const n=[];for(const r of e){const u=r.next();if(u.done)return;n.push(u.value)}yield*n}})}function ai(t){return T(e=>{let n=!1;return(r,u)=>{if(!n)return n=!0,e(r,u);const o=e(r,t);return nt(o)?o:e(o,u)}})}function pi(t,e){return arguments.length===1?ai(t):de(1,wr(Xe(t),e))}function _i(t,e){const r=y(t)===_?new Map:{};for(const u of l(e)){const o=N(t,u);o!==void 0&&V(r,u,o)}return r}function Je(t){return nt(t)?rt(t):t}function di(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=Je(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 Ar(t,...e){if(arguments.length===1)return di(t);let n=t,r=e[0];return e.length===2&&([n,r]=e),Ir(t,n,[],r,!0)}function br(t,...e){let n=t,r,u=e[0];return e.length===2?[n,u]=e:e.length>2&&([n,r,u]=e),Ir(t,n,r,u,!1)}const hi=br,yi=Ar;function Ir(t,e,n,r,u){return Y(r,function*(o){let i=[],s=0;for(const c of o)s<t&&(i.push(c),i.length===t&&(yield i,i=e<t?i.slice(e):[])),s++,s===e&&(s=0);i.length>0&&(i.length===t||u?yield i:n!==void 0&&(n!=null&&i.push(...[...l(n)].slice(0,t-i.length)),yield i))})}function mi(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 s=o[0];if(n.length!==0){const c=[...n];n=[],s=Je(e(s,c))}return e(s)}if(i===2){const s=o[0],c=o[1],f=u,d=t(c);if(u=d,f===r||d===f)return n.push(c),s;{const D=[...n];n=[];const J=e(s,D);return nt(J)||n.push(c),J}}}}}function xi(t,e){if(t=a(t),arguments.length===1)return mi(t);const n=k(e);return A(function*(){const r=n.next();r.done&&(yield*null);const u=r.value;let o=t(u),i=[u],s=[];for(;;){const c=n.next();if(c.done){yield i;break}const f=c.value,d=t(f);o==d?i.push(f):(yield i,s.push(f),i=s,o=d,s=[])}})}function le(t){const e=y(t);return e!=null?e===g?t[pt]!==void 0?t[pt](t):t.constructor===void 0?S(t,{}):null:S(t,Qe(e)):null}function gi(...t){if(!t.some(m))return null;const e=t[0];let n;if(e==null?n={}:y(e)===void 0||e[w]!==void 0?n=e:n=Er(le(e),e),n!=null&&n[w]!==void 0){for(let r=1;r<t.length;r++)n=n!=null&&n[w]!==void 0?n[w](n,t[r]):L(n,t[r]);return n}return L(n,...t.slice(1))}function Sr(t){return t[0]}function Mr(t){return t[1]}function wi(t,...e){t=a(t);var n=!1;for(const r of e)if(r!=null){n=!0;break}if(n){const r=(o,i)=>{const s=Sr(i),c=Mr(i);return Mn(o,s)?ct(o,s,t(N(o,s),c)):ct(o,s,c)};return P((o,i)=>P(r,o||{},K(i)),e)}else return null}function Ai(){return performance.now()}function Er(...t){let e,n,r,u,o;switch(t.length){case 0:return[];case 1:return t[0];case 2:return e=t[0]??[],E(e)?ce(F(e),t[1]):e[w]!==void 0?P((i,s)=>i!=null&&i[w]!==void 0?i[w](i,s):L(i,s),e,t[1]):P(L,F(e),t[1]);case 3:return e=t[0],n=t[1],r=t[2],u=e!=null&&e[w]!==void 0?e:F(e),o=(i,s)=>s===void 0?i:i!=null&&i[w]!==void 0?i[w](i,s):L(i,s),sn(n,o,u,r);default:throw TypeError(`Invalid arity call of into: ${t.length}`)}}function bi(t,e){return t===e}function Xe(...t){if(t.length==0||t.length>2)throw new Error(`Invalid arity: ${t.length}`);if(t.length==1){const r=t[0];return A(function*(){for(;;)yield r})}const[e,n]=t;return A(function*(){for(var r=0;r<e;r++)yield n})}function Rr(t){return nt(t)?t:re(t)}function Ii(t){return T(e=>{let n=t;return(r,u)=>{const o=--n+1;return o>0&&(r=e(r,u)),o>1?r:Rr(r)}})}function ae(t){if(typeof t!="number")throw new Error("Assert failed: (number? n)");return t}function pe(t,e){return ae(t),arguments.length===1?Ii(t):Y(e,function*(n){let r=t-1;for(const u of n)if(r-->=0&&(yield u),r<0)return})}function Si(t,e){if(ae(t),t<=0)return null;if(Array.isArray(e))return K(e.slice(-t));{const n=new Array(t);let r=0;for(const u of l(e))n[r%t]=u,r++;return r===0?null:r%t!==0&&r>=t?n.slice(r%t).concat(n.slice(0,r%t)):(n.length=Math.min(r,t),n)}}function Mi(t){return T(e=>(n,r)=>m(t(r))?e(n,r):re(n))}function _e(t,e){return t=a(t),arguments.length===1?Mi(t):Y(e,function*(n){for(const r of n)if(m(t(r)))yield r;else return})}function Ei(t){return T(e=>{let n=-1;return(r,u)=>Zr(++n,t)===0?e(r,u):r})}function Ri(t,e){return ae(t),arguments.length===1?Ei(t):t<=0?Xe(C(e)):Y(e,function*(n){let r=0;for(const u of n)r%t===0&&(yield u),r++})}function ki(t,...e){return t=a(t),function(...n){return t(...e,...n)}}function Ti(t){const e=l(t);return A(function*(){const n=[];for(const r of e)n.push(r),yield r;for(;n.length;)yield*n})}function vi(t){return T(e=>{let n=t;return(r,u)=>n-- >0?r:e(r,u)})}function de(t,e){return ae(t),arguments.length===1?vi(t):Y(e,function*(n){for(let r=0;r<t;r++)n.next();yield*n})}function Ni(t){return T(e=>{let n=!0;return(r,u)=>n&&m(t(u))?r:(n=!1,e(r,u))})}function kr(t,e){return t=a(t),arguments.length===1?Ni(t):Y(e,function*(n){for(;;){const r=n.next();if(r.done)break;const u=r.value;if(!m(t(u))){yield u;break}}yield*n})}function qi(){return T(t=>{const e=new Set;return(n,r)=>e.has(r)?n:(e.add(r),t(n,r))})}function Ki(t){return arguments.length===0?qi():Y(t,function*(e){const n=new Set;for(const r of e)n.has(r)||(yield r),n.add(r)})}const te=Symbol("dedupe-none");function Qi(){return T(t=>{let e=te;return(n,r)=>{const u=e!==te&&m(vt(e,r));return e=r,u?n:t(n,r)}})}function ji(t){return arguments.length===0?Qi():Y(t,function*(e){let n=te;for(const r of e)(n===te||!m(vt(n,r)))&&(yield r),n=r})}function Ci(t,e,n,...r){return n=a(n),ct(t,e,n(N(t,e),...r))}function Ze(t,e,n){let r=t;for(const u of l(e))r=N(r,u);return r===void 0?n:r}function Oi(t,e,n,...r){return n=a(n),gn(t,e,n(Ze(t,e),...r))}function tn(t,...e){t=a(t);const n=e.length;return function(...r){for(let u=0;u<n;u++)r[u]==null&&(r[u]=e[u]);return t(...r)}}function Tr(t,e){if(t=a(t),Array.isArray(e)){for(let u=0;u<e.length;u++)if(!t(e[u]))return!1;return!0}const n=U(e);let r;for(;(r=n())!==null;)for(let u=0;u<r.length;u++)if(!t(r[u]))return!1;return!0}function $i(t,e){return!Tr(t,e)}function Gi(t){return T(e=>(n,r)=>{const u=t(r);return u==null?n:e(n,u)})}function Bi(t,e){return t=a(t),arguments.length===1?Gi(t):Kt(e,n=>{const r=[];for(let u=0;u<n.length;u++){const o=t(n[u]);m(o)&&r.push(o)}return r})}function Wi(t){return fe(t).reverse()}function Di(t){return E(t)||t!=null&&t[et]===!0}function zi(t){if(E(t))return t.length===0?null:[...t].reverse();if(t!=null&&t[et]===!0){const e=[...t].reverse();return e.length===0?null:e}throw new Error("rseq not supported on: "+typeof t)}function ee(t,e){return arguments.length===1&&(e=t,t=void 0),t=a(t),fe(e).sort(t||W)}function en(t){return t===W?t:(e,n)=>{const r=t(e,n);return Cr(r)?r:r?-1:t(n,e)?1:0}}function Fi(t,e,n){return arguments.length===2&&(n=e,e=W),t=a(t),e=a(e),ee((r,u)=>{const o=en(e),i=t(r),s=t(u);return o(i,s)},n)}function Li(t){const e=fe(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 vr(t,e){if(t=a(t),Array.isArray(e)){for(let u=0;u<e.length;u++){const o=t(e[u]);if(m(o))return o}return}const n=U(e);let r;for(;(r=n())!==null;)for(let u=0;u<r.length;u++){const o=t(r[u]);if(m(o))return o}}function Vi(t,e){return t=a(t),!vr(t,e)}function Pi(t,e){return(Array.isArray(e)?se:lt)(r=>{const u=t[r];return u!==void 0?u:r},e)}function Hi(t){return!K(t)}function qe(t){return t===void 0&&(t=1),Math.random()*t}function Nr(t){return Math.floor(Math.random()*t)}function Yi(t){const e=Nr(ne(t));return Nn(t,e)}function Ui(t){return A(function*(){for(;;)yield t()})}function Ji(t,e){arguments.length===1&&(e=t,t=void 0);const n=Ui(e);if(t!==void 0){if(typeof t!="number")throw new Error("repeatedly: count must be a number, got: "+Be(t));return pe(t,n)}else return n}function nn(t,e,n,...r){n=a(n);const u=N(t,e);return V(t,e,n(u,...r))}function Xi(t,e){t=a(t);const n={};for(const r of l(e)){const u=t(r);nn(n,u,tn(L,[]),r)}return n}function Zi(t){const e={},n=tn(kn,0);for(const r of l(t))nn(e,r,n);return e}class ts extends x{static[Symbol.hasInstance](e){return e instanceof x}constructor(e){super(()=>$e(k(l(e())))())}}function es(t){const e=fe(t);return e.pop(),e.length>0?e:null}function ns(...t){const[e,n]=t.length>1?t:[1,t[0]];return lt((r,u)=>r,n,de(e,n))}function rs(t,e){return[pe(t,e),de(t,e)]}function us(t,e){return[_e(t,e),kr(t,e)]}function ne(t){if(!t)return 0;const e=t.length||t.size;if(typeof e=="number")return e;if(t[bt]!==void 0)return t[bt](t);const n=U(t);let r=0,u;for(;(u=n())!==null;)r+=u.length;return r}function os(t){return t===!0}function is(t){return t===!1}function ss(t){return t!=null}function cs(t){return m(t)}function fs(t){if(typeof t!="string")throw new Error("Argument must be a string");return t==="true"?!0:t==="false"?!1:null}function ls(t){return t===0}function as(t){return t<0}function ps(t){return t>0}function _s(...t){let e=0;const n={};for(;!(e>=t.length);)n[t[e]]=t[e+1],e=e+2;return n}function ds(t){return t.length}function hs(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,s=0;const c=u.length-2;for(;s<c;s++)i=i[u[s]];return i[u[s]]=o,n}}function ys(t){if(t instanceof x){const e=U(t);for(;e()!==null;);return null}for(const e of l(t));return null}function ms(t){if(t!=null&&t[h]===v)for(const e of t);return t}function xs(t){return[...t]}function Gt(t,e){if(e!==void 0){const n=new Array(t);if(typeof e=="number")return n.fill(e);let r=0;for(const u of l(e)){if(r>=t)break;n[r++]=u}return n}return typeof t=="number"?new Array(t).fill(null):[...l(t)]}function gs(t,e){return Gt(t,e)}function ws(t,e){return Gt(t,e)}function As(t,e){return Gt(t,e)}function bs(t,e){return Gt(t,e)}function Is(t,e){return Gt(t,e)}function Ss(t,e,n){return t?.[ht]!==void 0?(t[ht](t,e,n),t):(p(Pe,"IWatchable.-add-watch",t)(t,e,n),t)}function Ms(t,e){return t?.[yt]!==void 0?(t[yt](t,e),t):(p(He,"IWatchable.-remove-watch",t)(t,e),t)}function kt(t,e,n){if(!n)return e;if(n[$]!==void 0)return n[$](n,t,e);var r=e;for(const u of l(n))r=t(r,u[0],u[1]);return r}function qr(t,...e){let n=t;for(const r of e)n=isNaN(n)?n:isNaN(r)?r:n>r?n:r;return n}function Es(t,...e){let n=t;for(const r of e)n=isNaN(n)?n:isNaN(r)?r:n<r?n:r;return n}function Rs(t){switch(y(t)){case _:case M:case I:return!0;case g:return t[q]!==void 0;default:return!1}}function Kr(t){return t==null?!1:!!(Nt(t)||t instanceof Map||t[h]===_||t[Wn.__sym]!==void 0)}function ks(...t){return(...e)=>{for(const n of t)for(const r of e)if(!n(r))return!1;return!0}}function Ts(...t){return(...e)=>{let n;for(const r of t)for(const u of e)if(n=r(u),m(n))return n;return n}}function Qr(t,e){return Ot(e||t)}function vs(t,e){var n=e;return A(function*(){for(;;)yield n,n=t(n)})}function Ns(...t){return t=t.map(a),(...e)=>{const n=[];for(const r of t)n.push(r(...e));return n}}function tt(t){if(Array.isArray(t)){const e=t.slice(1);return e.length>0?e:null}else return K(qt(t))}function qs(t){return tt(tt(t))}function Ks(t,e){let n=K(t);for(;n!=null&&e>0;)n=tt(n),e=e-1;return n}function Qs(t,e){let n=t;for(;e>0&&K(n)!=null;)n=qt(n),e=e-1;return n}function W(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=W(t[u],e[u]);if(o!=0)return o}return 0}else throw new Error(`comparing ${n} to ${r}`)}}function js(t){return Qr(t)}function m(t){return t!=null&&t!==!1}const Cs=m;function jr(t,e,n){return t.substring(e,n)}function rn(t){return typeof t=="function"}function Os(t){return rn(t)}function $s(t){return!0}function Gs(t,...e){if(e.length===0)return!0;const n=[t];for(const r of e){for(const u of n)if(m(vt(u,r)))return!1;n.push(r)}return!0}function Bs(t,e){return A(function*(){for(;;){const n=t.exec(e);if(n){const r=n[0];yield n.length===1?r:Ot(n);const o=n.index+qr(1,r.length);if(o>e.length)break;e=jr(e,o)}else break}})}function Ws(t){return isNaN(t)}function Cr(t){return typeof t=="number"}function Or(t){if(t==null)return null;switch(y(t)){case g:if(t[$]!==void 0){const n=t[$](t,(r,u,o)=>(r.push(u),r),[]);return n.length?n:void 0}case I:{const n=Object.keys(t);return n.length?n:void 0}case _:return t.size?Array.from(t.keys()):void 0}for(const n of l(t))throw new TypeError(t+" is not a map");return null}function Ds(t){return Or(t)??[]}function zs(t){if(t==null)return null;switch(y(t)){case g:if(t[$]!==void 0){const n=t[$](t,(r,u,o)=>(r.push(o),r),[]);return n.length?n:void 0}case I:{const n=Object.values(t);return n.length?n:void 0}case _:return t.size?Array.from(t.values()):void 0}for(const n of l(t))throw new TypeError(t+" is not a map");return null}function he(t){return typeof t=="string"}function Fs(t){return Math.trunc(t)}function Ls(t){return t+1}function Vs(t){return t-1}function Ps(t,e){return t+e}function Bt(t){const e=t.indexOf("/");return e>=1?t.slice(0,e):null}function Hs(t,e){return e!==void 0?(t!=null?t+"/":"")+e:t}function Ys(t,e){return e!==void 0?(t!=null?t+"/":"")+e:t}function Us(t){return typeof t=="string"}function un(t){return typeof t=="string"}function Js(t){return!1}function Xs(t){return typeof t=="string"&&!t.includes("/")}function Zs(t){return typeof t=="string"&&t.includes("/")}function tc(t){return typeof t=="string"}function ec(t){return typeof t=="string"&&Bt(t)==null}function nc(t){return typeof t=="string"&&Bt(t)!=null}function rc(t){return un(t)&&Bt(t)==null}function uc(t){return un(t)&&Bt(t)!=null}function oc(t){return y(t)!=null}function ic(t){return t instanceof RegExp}class on extends Error{constructor(e,n,r){super(e),this._data=n,this._cause=r}}function sc(t){return t instanceof on?t._data:null}function cc(t){return t instanceof Error?t.message:null}function fc(t){return t instanceof on?t._cause:null}function lc(t,e,n){return new on(t,e,n)}function mt(t){return Number.isInteger(t)}function $r(t){return typeof t=="number"}function ac(t){return $r(t)}const pc=mt;function _c(t){return mt(t)&&t>0}function dc(t){return mt(t)&&t>-1}function hc(t){return mt(t)&&t<0}function Gr(t){return t!=null&&t[Z]!==void 0?t[Z](t):null}function Br(t,e){return t!=null&&t[_t]!==void 0?t[_t](t,e):Wr(t,e)}function Ie(t,e){return t[Z]=()=>e,t[_t]=Wr,t}function Wr(t,e){if(typeof t=="function")return Ie(function(...r){return t.apply(this,r)},e);if(t?.[h]===v){const n=Object.assign(Object.create(Object.getPrototypeOf(t)),t);return Ie(n,e)}return Ie(F(t),e)}function yc(t,e,...n){return Br(t,e(Gr(t),...n))}function mc(t){return t===!0||t===!1}function Dr(t){switch(y(t)){case M:case _:case I:case g:case B:case b:return!0}return!1}function xc(t,e){return Dr(e)?ne(e):ne(pe(t,e))}function gc(t,e){const n=N(t,e);if(n!==void 0)return Ht([e,n])}function wc(t,e){return(t%e+e)%e}function Ac(t,e,...n){t=a(t);let r=e;for(const u of n)t(r)<t(u)||(r=u);return r}function bc(t,e,...n){t=a(t);let r=e;for(const u of n)t(r)>t(u)||(r=u);return r}function zr(t){throw new Error(`Expected string, got: ${typeof t}`)}function Ic(t){if(he(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 zr(t)}function Sc(t){return he(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:zr(t)}function Fr(t){return t>=0?Math.floor(t):Math.ceil(t)}function Lr(t,e){const n=t%e;return Fr((t-n)/e)}function Vr(t,...e){if(e.length==0)for(;;){const n=t();if(m(rn(n))){t=n;continue}else return n}else return Vr(function(){return yr(t,e)})}function sn(t,...e){if(e.length===2){const n=e[0],r=e[1];return sn(t,n,n(),r)}else{let n=e[0];const r=e[1],u=e[2];n=t(n);const o=P(n,r,u);return n(o)}}function Mc(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 Ec(t){return K(t)?t:null}function Pr(t,e,n){const r=function*(u){if(yield u,m(t(u)))for(const o of l(e(u)))yield*r(o)};return A(function*(){yield*r(n)})}function Rc(t){return at(Xt(Me),qt(Pr(Me,K,t)))}function kc(t){return t!=null&&t[St]!==void 0?t[St](t):F(t)}function Tc(t){return t!=null&&t[Et]!==void 0?t[Et](t):t}const Hr=class Yr{constructor(e,n){this[h]=b,this[et]=!0,this._cmp=n??e?._cmp,e instanceof Yr&&e._cmp===this._cmp||(e=this._cmp?ee(this._cmp,e):ee(e));const u=new Set(e);this._elts=[...u],this._set=u,this.size=this._elts.length}add(e){if(this._set.has(e))return this;const n=this._elts,r=this._cmp;let u=!1;for(let o=0;o<n.length;o++)if((r?r(e,n[o]):W(e,n[o]))<=0){n.splice(o,0,e),u=!0;break}return u?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 vc(...t){return new Hr(t)}function Nc(t,...e){return new Hr(e,en(a(t)))}const Ur=class{constructor(e,n){if(this[h]=_,this[et]=!0,this._cmp=n??e?._cmp,this._map=new Map,this._keys=[],this.size=0,e)for(const[r,u]of e)this.set(r,u)}set(e,n){if(!this._map.has(e)){const r=this._keys,u=this._cmp;let o=0;for(;o<r.length&&(u?u(e,r[o]):W(e,r[o]))>0;)o++;r.splice(o,0,e)}return this._map.set(e,n),this.size=this._map.size,this}get(e){return this._map.get(e)}has(e){return this._map.has(e)}delete(e){return this._map.delete(e)&&(this._keys.splice(this._keys.indexOf(e),1),this.size=this._map.size),this}*keys(){yield*this._keys}*values(){for(const e of this._keys)yield this._map.get(e)}*entries(){for(const e of this._keys)yield[e,this._map.get(e)]}forEach(e){for(const n of this._keys)e(this._map.get(n),n,this)}clear(){this._map.clear(),this._keys=[],this.size=0}[Symbol.iterator](){return this.entries()}};function qc(...t){const e=new Ur;for(let n=0;n<t.length;n+=2)e.set(t[n],t[n+1]);return e}function Kc(t,...e){const n=new Ur(null,en(a(t)));for(let r=0;r<e.length;r+=2)n.set(e[r],e[r+1]);return n}function Ke(t,e,n){return r=>e(W(r,n),0)}function Jr(t,e,n=!0){let r=0;for(;r<t.length&&W(e,t[r])>0;r++);return r}function Qc([t,e,n]){const r=Ke(t,e,n);if(e===dn||e===hn){const u=[...t],o=Jr(u,n,!0);return u.splice(0,o),r(u[0])||u.splice(0,1),u}else return[..._e(r,t)]}function jc([t,e,n,r,u]){const o=[...t],i=Jr(o,n,!0);o.splice(0,i);const s=Ke(t,r,u);return Ke(t,e,n)(o[0])||o.splice(0,1),[..._e(s,o)]}function Cc(...t){if(t.length===3)return Qc(t);if(t.length===5)return jc(t)}function Oc(t){return Math.abs(t)}function $c(t){return Fr(t)}function Gc(t){return t}function Bc(t){return t}function Wc(t){return t}function Dc(t){return t}function zc(t){return t}function Fc(t){return t!=null&&t.constructor}function Lc(t){return(e,n)=>{const r=t(e,n);return nt(r)?re(r):r}}function Xr(t){const e=Lc(t);return(...n)=>{switch(n.length){case 0:return t();case 1:return t(n[0]);case 2:return P(e,n[0],n[1])}}}function Zr(t,e){const n=Lr(t,e);return t-e*n}function Vc(t){const e=new Map;return(...n)=>{const r=[n.length,...n],u=Ze(e,r);if(u===void 0){const o=t(...n);return wn(e,r,o),o}else return u}}function Pc(t){if(t==null)return null;if(Ye(t))return C(t);if(Ue(t))return t[t.length-1];if(t[ke]!==void 0)return t[ke](t);throw jt("IStack.-peek",t)}function Hc(t){if(t==null)return null;if(Ye(t)){if(t.length===0)throw new Error("Can't pop empty list");return qt(t)}else if(Ue(t)){if(t.length===0)throw new Error("Can't pop empty vector");const e=[...t];return e.pop(),e}else{if(t[Te]!==void 0)return t[Te](t);throw jt("IStack.-pop",t)}}function Yc(t){if(t!=null&&E(t)){if(t.length===0)throw new Error("Can't pop empty vector");return t.pop(),t}if(t!=null&&t[ve]!==void 0)return t[ve](t);throw jt("ITransientVector.-pop!",t)}function Uc(t,e){const n=le(t);if(n!=null&&n[q]!==void 0)return kt((u,o,i)=>u[q](u,e(o),i),n,t);const r=yn(t)||V;return kt((u,o,i)=>r(u,e(o),i),n,t),n}function tu(t,e){const n=le(t);if(n!=null&&n[q]!==void 0)return kt((u,o,i)=>u[q](u,o,e(i)),n,t);const r=yn(t)||V;return kt((u,o,i)=>r(u,o,e(i)),n,t),n}function Jc(){return new Wt(crypto.randomUUID())}class Wt{constructor(e){this.uuid=e}toString(){return this.uuid}}function eu(t){return new Wt(t.toLowerCase())}function Xc(t){return t instanceof Wt}const Zc=/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;function tf(t){if(typeof t!="string")throw new Error("Expected string, got: "+(t===null?"nil":typeof t));return Zc.test(t)?eu(t):null}function ef(t){return t instanceof Date}const nf=t=>t._deref();class cn{constructor(e){this.f=e,this[De]=!0,this[O]=nf}_deref(){return this.realized?this.v:(this.v=this.f(),this.realized=!0,this.v)}}function rf(t){if(t instanceof cn||t instanceof x)return t.realized===!0;throw new Error("realized? not supported on: "+Be(t))}function uf(t){return t instanceof cn?t._deref():t}function Lt(t,e){if(e.has(t))return t;if(e.add(t),t!=null&&t[Ne]!==void 0)return t[Ne](t,r=>Lt(r,e));if(Kr(t))return tu(t,r=>Lt(r,e));const n=y(t);return n&&n!=I&&n!=g?se(r=>Lt(r,e),t):t}function of(t){return Lt(t,new Set)}function sf(t,e){P((n,r)=>t(r),null,e)}function cf(...t){return We(vt(...t))}const ff=t=>t.v;class lf{constructor(e){this.v=e,this[O]=ff}}function af(t){return new lf(t)}function pf(t,e){return t.v=e,e}function Q(t,e=new WeakSet,n=!0){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 n?JSON.stringify(t):t;if(typeof t=="bigint")return`${t}N`;if(typeof t=="object"){if(t instanceof Wt)return n?`#uuid "${t.uuid}"`:t.uuid;if(e.has(t))return"#object[circular]";e.add(t);const r=y(t);let u,o;switch(r){case M:o=`[${t.map(i=>Q(i,e,n)).join(" ")}]`;break;case b:o=`#{${Array.from(t).map(i=>Q(i,e,n)).join(" ")}}`;break;case _:o=`#js/Map {${Array.from(t.entries()).map(([i,s])=>`${Q(i,e,n)} ${Q(s,e,n)}`).join(", ")}}`;break;case v:case B:o=`(${se(i=>`${Q(i,e,n)}`,t).join(", ")})`;break;default:if(t[Re]!==void 0){let i="";const s={[Yt]:(c,f)=>i+=f,[Pn.__sym]:!0};t[Re](t,s,{readably:n}),o=i;break}if(t[Le.__sym]!==void 0){u=Object.keys(t),o=`#${t.constructor.name}{${u.map(i=>`:${i} ${Q(t[i],e,n)}`).join(", ")}}`;break}if(t.constructor&&t.constructor!==Object)return e.delete(t),`#<${t.constructor.name}>`;u=Object.keys(t),o=`{${u.map(i=>`:${i} ${Q(t[i],e,n)}`).join(", ")}}`}return e.delete(t),o}return`#object[${t.constructor.name}]`}function ye(...t){return t.map((e,n)=>Q(e)).join(" ")}function _f(...t){ft.val(ye(...t)),Ce.val&&ft.val(`
|
|
4
|
+
`)}function df(...t){return ye(...t)+`
|
|
5
|
+
`}return su(hf);})();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "squint-cljs",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.14.
|
|
5
|
+
"version": "0.14.203",
|
|
6
6
|
"files": [
|
|
7
7
|
"core.js",
|
|
8
8
|
"src/squint/core.js",
|
|
@@ -13,6 +13,7 @@
|
|
|
13
13
|
"src/squint/math.js",
|
|
14
14
|
"src/squint/walk.js",
|
|
15
15
|
"src/squint/multi.js",
|
|
16
|
+
"src/squint/record.js",
|
|
16
17
|
"src/squint/test.js",
|
|
17
18
|
"src/squint/edn.js",
|
|
18
19
|
"lib",
|
|
@@ -69,6 +70,7 @@
|
|
|
69
70
|
"./vite.js": "./vite.js",
|
|
70
71
|
"./src/squint/html.js": "./src/squint/html.js",
|
|
71
72
|
"./src/squint/multi.js": "./src/squint/multi.js",
|
|
73
|
+
"./src/squint/record.js": "./src/squint/record.js",
|
|
72
74
|
"./src/squint/test.js": "./src/squint/test.js",
|
|
73
75
|
"./src/squint/edn.js": "./src/squint/edn.js",
|
|
74
76
|
"./lib/node.nrepl_server.js": "./lib/node.nrepl_server.js"
|