Skip to content

Instantly share code, notes, and snippets.

@michalmarczyk michalmarczyk/phm.js
Created Apr 30, 2012

Embed
What would you like to do?
ClojureScript perf tests (large map conversion threshold)
function c(a){throw a;}var g=!0,k=null,l=!1;function aa(){return function(a){return a}}function m(a){return function(){return this[a]}}function n(a){return function(){return a}}var o,ba=this;
function q(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var d=Object.prototype.toString.call(a);if("[object Window]"==d)return"object";if("[object Array]"==d||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==d||"undefined"!=typeof a.call&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";
else if("function"==b&&"undefined"==typeof a.call)return"object";return b}function r(a){return void 0!==a}function ca(a){return"string"==typeof a}function da(a){return a[ea]||(a[ea]=++fa)}var ea="closure_uid_"+Math.floor(2147483648*Math.random()).toString(36),fa=0;function s(a,b){var d=a.split("."),e=ba;!(d[0]in e)&&e.execScript&&e.execScript("var "+d[0]);for(var f;d.length&&(f=d.shift());)!d.length&&r(b)?e[f]=b:e=e[f]?e[f]:e[f]={}};var ga={"\x00":"\\0","\u0008":"\\b","\u000c":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\u000b":"\\x0B",'"':'\\"',"\\":"\\\\"},ha={"'":"\\'"};
function ia(a){var p;a=""+a;if(a.quote)return a.quote();for(var b=['"'],d=0;d<a.length;d++){var e=a.charAt(d),f=e.charCodeAt(0),h=b,i=d+1,j;if(!(j=ga[e])){if(!(31<f&&127>f))if(e in ha)e=ha[e];else if(e in ga)p=ha[e]=ga[e],e=p;else{f=e;j=e.charCodeAt(0);if(31<j&&127>j)f=e;else{if(256>j){if(f="\\x",16>j||256<j)f+="0"}else f="\\u",4096>j&&(f+="0");f+=j.toString(16).toUpperCase()}e=ha[e]=f}j=e}h[i]=j}b.push('"');return b.join("")}
function ja(a){for(var b=0,d=0;d<a.length;++d)b=31*b+a.charCodeAt(d),b%=4294967296;return b};function ka(a,b){return a>b?1:a<b?-1:0};function la(a,b,d){for(var e in a)b.call(d,a[e],e,a)}function ma(a){var b={},d;for(d in a)b[d]=a[d];return b}function na(a){var b=arguments.length;if(1==b&&"array"==q(arguments[0]))return na.apply(k,arguments[0]);b%2&&c(Error("Uneven number of arguments"));for(var d={},e=0;e<b;e+=2)d[arguments[e]]=arguments[e+1];return d};var oa;(oa="ScriptEngine"in ba&&"JScript"==ba.ScriptEngine())&&(ba.ScriptEngineMajorVersion(),ba.ScriptEngineMinorVersion(),ba.ScriptEngineBuildVersion());function pa(a,b){this.L=oa?[]:"";a!=k&&this.append.apply(this,arguments)}oa?(pa.prototype.Ha=0,pa.prototype.append=function(a,b,d){b==k?this.L[this.Ha++]=a:(this.L.push.apply(this.L,arguments),this.Ha=this.L.length);return this}):pa.prototype.append=function(a,b,d){this.L+=a;if(b!=k)for(var e=1;e<arguments.length;e++)this.L+=arguments[e];return this};pa.prototype.clear=function(){oa?this.Ha=this.L.length=0:this.L=""};
pa.prototype.toString=function(){if(oa){var a=this.L.join("");this.clear();a&&this.append(a);return a}return this.L};function u(a){return a!=k&&a!==l}function qa(a,b){var d=a[q.call(k,b)];if(u(d))return d;d=a._;return u(d)?d:l}function v(a,b){return Error("No protocol method "+a+" defined for type "+q.call(k,b)+": "+b)}function w(a){return Array.prototype.slice.call(a)}var x=function(){function a(a,e){return b.call(k,e)}var b=k,b=function(b,e){switch(arguments.length){case 1:return Array(b);case 2:return a.call(this,0,e)}c("Invalid arity: "+arguments.length)};b.n=function(a){return Array(a)};b.f=a;return b}();
function y(a){if(a?a.o:a)a=a.o(a);else{var b;var d=y[q.call(k,a)];d?b=d:(d=y._)?b=d:c(v.call(k,"ICounted.-count",a));a=b.call(k,a)}return a}function ra(a){if(a?a.F:a)a=a.F(a);else{var b;var d=ra[q.call(k,a)];d?b=d:(d=ra._)?b=d:c(v.call(k,"IEmptyableCollection.-empty",a));a=b.call(k,a)}return a}function z(a,b){var d;if(a?a.s:a)d=a.s(a,b);else{var e=z[q.call(k,a)];e?d=e:(e=z._)?d=e:c(v.call(k,"ICollection.-conj",a));d=d.call(k,a,b)}return d}
var A=function(){function a(a,b,d){if(a?a.ea:a)a=a.ea(a,b,d);else{var i;var j=A[q.call(k,a)];j?i=j:(j=A._)?i=j:c(v.call(k,"IIndexed.-nth",a));a=i.call(k,a,b,d)}return a}function b(a,b){var d;if(a?a.da:a)d=a.da(a,b);else{var i=A[q.call(k,a)];i?d=i:(i=A._)?d=i:c(v.call(k,"IIndexed.-nth",a));d=d.call(k,a,b)}return d}var d=k,d=function(d,f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}(),sa={};
function ta(a){if(a?a.R:a)a=a.R(a);else{var b;var d=ta[q.call(k,a)];d?b=d:(d=ta._)?b=d:c(v.call(k,"ISeq.-first",a));a=b.call(k,a)}return a}function ua(a){if(a?a.S:a)a=a.S(a);else{var b;var d=ua[q.call(k,a)];d?b=d:(d=ua._)?b=d:c(v.call(k,"ISeq.-rest",a));a=b.call(k,a)}return a}
var B=function(){function a(a,b,d){if(a?a.H:a)a=a.H(a,b,d);else{var i;var j=B[q.call(k,a)];j?i=j:(j=B._)?i=j:c(v.call(k,"ILookup.-lookup",a));a=i.call(k,a,b,d)}return a}function b(a,b){var d;if(a?a.G:a)d=a.G(a,b);else{var i=B[q.call(k,a)];i?d=i:(i=B._)?d=i:c(v.call(k,"ILookup.-lookup",a));d=d.call(k,a,b)}return d}var d=k,d=function(d,f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}();
function wa(a,b){var d;if(a?a.ia:a)d=a.ia(a,b);else{var e=wa[q.call(k,a)];e?d=e:(e=wa._)?d=e:c(v.call(k,"IAssociative.-contains-key?",a));d=d.call(k,a,b)}return d}function xa(a,b,d){if(a?a.N:a)a=a.N(a,b,d);else{var e;var f=xa[q.call(k,a)];f?e=f:(f=xa._)?e=f:c(v.call(k,"IAssociative.-assoc",a));a=e.call(k,a,b,d)}return a}var ya={};function za(a,b){var d;if(a?a.ba:a)d=a.ba(a,b);else{var e=za[q.call(k,a)];e?d=e:(e=za._)?d=e:c(v.call(k,"IMap.-dissoc",a));d=d.call(k,a,b)}return d}var Aa={};
function Ba(a){if(a?a.Ca:a)a=a.Ca(a);else{var b;var d=Ba[q.call(k,a)];d?b=d:(d=Ba._)?b=d:c(v.call(k,"IMapEntry.-key",a));a=b.call(k,a)}return a}function Ca(a){if(a?a.Da:a)a=a.Da(a);else{var b;var d=Ca[q.call(k,a)];d?b=d:(d=Ca._)?b=d:c(v.call(k,"IMapEntry.-val",a));a=b.call(k,a)}return a}var Da={};function Ea(a){if(a?a.la:a)a=a.la(a);else{var b;var d=Ea[q.call(k,a)];d?b=d:(d=Ea._)?b=d:c(v.call(k,"IStack.-peek",a));a=b.call(k,a)}return a}
function Fa(a){if(a?a.ma:a)a=a.ma(a);else{var b;var d=Fa[q.call(k,a)];d?b=d:(d=Fa._)?b=d:c(v.call(k,"IStack.-pop",a));a=b.call(k,a)}return a}var Ga={},Ha={};function Ia(a){if(a?a.u:a)a=a.u(a);else{var b;var d=Ia[q.call(k,a)];d?b=d:(d=Ia._)?b=d:c(v.call(k,"IMeta.-meta",a));a=b.call(k,a)}return a}function Ja(a,b){var d;if(a?a.z:a)d=a.z(a,b);else{var e=Ja[q.call(k,a)];e?d=e:(e=Ja._)?d=e:c(v.call(k,"IWithMeta.-with-meta",a));d=d.call(k,a,b)}return d}
var Ka=function(){function a(a,b,d){if(a?a.ka:a)a=a.ka(a,b,d);else{var i;var j=Ka[q.call(k,a)];j?i=j:(j=Ka._)?i=j:c(v.call(k,"IReduce.-reduce",a));a=i.call(k,a,b,d)}return a}function b(a,b){var d;if(a?a.ja:a)d=a.ja(a,b);else{var i=Ka[q.call(k,a)];i?d=i:(i=Ka._)?d=i:c(v.call(k,"IReduce.-reduce",a));d=d.call(k,a,b)}return d}var d=k,d=function(d,f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}();
function La(a,b){var d;if(a?a.l:a)d=a.l(a,b);else{var e=La[q.call(k,a)];e?d=e:(e=La._)?d=e:c(v.call(k,"IEquiv.-equiv",a));d=d.call(k,a,b)}return d}function Ma(a){if(a?a.p:a)a=a.p(a);else{var b;var d=Ma[q.call(k,a)];d?b=d:(d=Ma._)?b=d:c(v.call(k,"IHash.-hash",a));a=b.call(k,a)}return a}function Na(a){if(a?a.w:a)a=a.w(a);else{var b;var d=Na[q.call(k,a)];d?b=d:(d=Na._)?b=d:c(v.call(k,"ISeqable.-seq",a));a=b.call(k,a)}return a}var Oa={},Pa={};
function Qa(a,b){var d;if(a?a.q:a)d=a.q(a,b);else{var e=Qa[q.call(k,a)];e?d=e:(e=Qa._)?d=e:c(v.call(k,"IPrintable.-pr-seq",a));d=d.call(k,a,b)}return d}var Sa={};function Ta(a){if(a?a.sa:a)a=a.sa(a);else{var b;var d=Ta[q.call(k,a)];d?b=d:(d=Ta._)?b=d:c(v.call(k,"IEditableCollection.-as-transient",a));a=b.call(k,a)}return a}function Ua(a,b){var d;if(a?a.ta:a)d=a.ta(a,b);else{var e=Ua[q.call(k,a)];e?d=e:(e=Ua._)?d=e:c(v.call(k,"ITransientCollection.-conj!",a));d=d.call(k,a,b)}return d}
function Va(a){if(a?a.ua:a)a=a.ua(a);else{var b;var d=Va[q.call(k,a)];d?b=d:(d=Va._)?b=d:c(v.call(k,"ITransientCollection.-persistent!",a));a=b.call(k,a)}return a}function Wa(a,b,d){if(a?a.Ea:a)a=a.Ea(a,b,d);else{var e;var f=Wa[q.call(k,a)];f?e=f:(f=Wa._)?e=f:c(v.call(k,"ITransientAssociative.-assoc!",a));a=e.call(k,a,b,d)}return a}
function Xa(a,b,d){if(a?a.Oa:a)a=a.Oa(a,b,d);else{var e;var f=Xa[q.call(k,a)];f?e=f:(f=Xa._)?e=f:c(v.call(k,"ITransientVector.-assoc-n!",a));a=e.call(k,a,b,d)}return a}function Ya(a,b){return a===b}
var G=function(){function a(a,b){var d=a===b;return d?d:La.call(k,a,b)}var b=k,d=function(){function a(b,e,j){var p=k;r(j)&&(p=C(Array.prototype.slice.call(arguments,2),0));return d.call(this,b,e,p)}function d(a,e,f){for(;;)if(u(b.call(k,a,e)))if(u(D.call(k,f)))a=e,e=E.call(k,f),f=D.call(k,f);else return b.call(k,e,E.call(k,f));else return l}a.h=2;a.c=function(a){var b=E(a),e=E(D(a)),a=F(D(a));return d.call(this,b,e,a)};return a}(),b=function(b,f,h){switch(arguments.length){case 1:return g;case 2:return a.call(this,
b,f);default:return d.apply(this,arguments)}c("Invalid arity: "+arguments.length)};b.h=2;b.c=d.c;b.n=n(g);b.f=a;b.i=d;return b}();function Za(a){var b=a===k;return(b?b:void 0===a)?k:a.constructor}Ma["null"]=n(0);B["null"]=function(){return function(a,b,d){switch(arguments.length){case 2:return k;case 3:return d}c("Invalid arity: "+arguments.length)}}();xa["null"]=function(a,b,d){return $a.call(k,b,d)};z["null"]=function(a,b){return H.call(k,b)};
Ka["null"]=function(){return function(a,b,d){switch(arguments.length){case 2:return b.call(k);case 3:return d}c("Invalid arity: "+arguments.length)}}();Pa["null"]=g;Qa["null"]=function(){return H.call(k,"nil")};Da["null"]=g;y["null"]=n(0);Ea["null"]=n(k);Fa["null"]=n(k);sa["null"]=g;ta["null"]=n(k);ua["null"]=function(){return H.call(k)};La["null"]=function(a,b){return b===k};Ja["null"]=n(k);Ha["null"]=g;Ia["null"]=n(k);
A["null"]=function(){return function(a,b,d){switch(arguments.length){case 2:return k;case 3:return d}c("Invalid arity: "+arguments.length)}}();ra["null"]=n(k);ya["null"]=g;za["null"]=n(k);Date.prototype.l=function(a,b){return a.toString()===b.toString()};Ma.number=aa();La.number=function(a,b){return a===b};Ma["boolean"]=function(a){return a===g?1:0};Ma["function"]=function(a){return da.call(k,a)};
var ab=function(){function a(a,b,d,e){for(;;)if(e<y.call(k,a))d=b.call(k,d,A.call(k,a,e)),e+=1;else return d}function b(a,b,d){for(var e=0;;)if(e<y.call(k,a))d=b.call(k,d,A.call(k,a,e)),e+=1;else return d}function d(a,b){if(G.call(k,0,y.call(k,a)))return b.call(k);for(var d=A.call(k,a,0),e=1;;)if(e<y.call(k,a))d=b.call(k,d,A.call(k,a,e)),e+=1;else return d}var e=k,e=function(e,h,i,j){switch(arguments.length){case 2:return d.call(this,e,h);case 3:return b.call(this,e,h,i);case 4:return a.call(this,
e,h,i,j)}c("Invalid arity: "+arguments.length)};e.f=d;e.i=b;e.T=a;return e}();function bb(a,b){this.r=a;this.C=b}o=bb.prototype;o.p=function(a){return cb.call(k,a)};o.M=g;o.s=function(a,b){return I.call(k,b,a)};o.toString=function(){return J.call(k,this)};o.ja=function(a,b){return ab.call(k,this.r,b,this.r[this.C],this.C+1)};o.ka=function(a,b,d){return ab.call(k,this.r,b,d,this.C)};o.w=aa();o.o=function(){return this.r.length-this.C};o.X=g;o.R=function(){return this.r[this.C]};
o.S=function(){return this.C+1<this.r.length?new bb(this.r,this.C+1):H.call(k)};o.l=function(a,b){return db.call(k,a,b)};o.da=function(a,b){var d=b+this.C;return d<this.r.length?this.r[d]:k};o.ea=function(a,b,d){a=b+this.C;return a<this.r.length?this.r[a]:d};function eb(a,b){return G.call(k,0,a.length)?k:new bb(a,b)}function C(a,b){return eb.call(k,a,b)}
Ka.array=function(){return function(a,b,d){switch(arguments.length){case 2:return ab.call(k,a,b);case 3:return ab.call(k,a,b,d)}c("Invalid arity: "+arguments.length)}}();B.array=function(){return function(a,b,d){switch(arguments.length){case 2:return a[b];case 3:return A.call(k,a,b,d)}c("Invalid arity: "+arguments.length)}}();A.array=function(){return function(a,b,d){switch(arguments.length){case 2:return b<a.length?a[b]:k;case 3:return b<a.length?a[b]:d}c("Invalid arity: "+arguments.length)}}();
y.array=function(a){return a.length};Na.array=function(a){return C.call(k,a,0)};function K(a){return u(a)?Na.call(k,a):k}function E(a){a=K.call(k,a);return u(a)?ta.call(k,a):k}function F(a){return ua.call(k,K.call(k,a))}function D(a){return u(a)?K.call(k,F.call(k,a)):k}function fb(a){return E.call(k,D.call(k,a))}function gb(a){return D.call(k,D.call(k,a))}La._=function(a,b){return a===b};function L(a){return u(a)?l:g}
var hb=function(){function a(a,b){return z.call(k,a,b)}var b=k,d=function(){function a(b,e,j){var p=k;r(j)&&(p=C(Array.prototype.slice.call(arguments,2),0));return d.call(this,b,e,p)}function d(a,e,f){for(;;)if(u(f))a=b.call(k,a,e),e=E.call(k,f),f=D.call(k,f);else return b.call(k,a,e)}a.h=2;a.c=function(a){var b=E(a),e=E(D(a)),a=F(D(a));return d.call(this,b,e,a)};return a}(),b=function(b,f,h){switch(arguments.length){case 2:return a.call(this,b,f);default:return d.apply(this,arguments)}c("Invalid arity: "+
arguments.length)};b.h=2;b.c=d.c;b.f=a;b.i=d;return b}();function ib(a){return y.call(k,a)}
var jb=function(){function a(a,b,d){return A.call(k,a,Math.floor(b),d)}function b(a,b){return A.call(k,a,Math.floor(b))}var d=k,d=function(d,f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}(),kb=function(){function a(a,b,d){return B.call(k,a,b,d)}function b(a,b){return B.call(k,a,b)}var d=k,d=function(d,f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,
h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}(),lb=function(){function a(a,b,d){return xa.call(k,a,b,d)}var b=k,d=function(){function a(b,e,j,p){var t=k;r(p)&&(t=C(Array.prototype.slice.call(arguments,3),0));return d.call(this,b,e,j,t)}function d(a,e,f,p){for(;;)if(a=b.call(k,a,e,f),u(p))e=E.call(k,p),f=fb.call(k,p),p=gb.call(k,p);else return a}a.h=3;a.c=function(a){var b=E(a),e=E(D(a)),p=E(D(D(a))),a=F(D(D(a)));return d.call(this,b,e,p,a)};return a}(),b=function(b,f,h,i){switch(arguments.length){case 3:return a.call(this,
b,f,h);default:return d.apply(this,arguments)}c("Invalid arity: "+arguments.length)};b.h=3;b.c=d.c;b.i=a;b.T=d;return b}(),mb=function(){function a(a,b){return za.call(k,a,b)}var b=k,d=function(){function a(b,e,j){var p=k;r(j)&&(p=C(Array.prototype.slice.call(arguments,2),0));return d.call(this,b,e,p)}function d(a,e,f){for(;;)if(a=b.call(k,a,e),u(f))e=E.call(k,f),f=D.call(k,f);else return a}a.h=2;a.c=function(a){var b=E(a),e=E(D(a)),a=F(D(a));return d.call(this,b,e,a)};return a}(),b=function(b,f,
h){switch(arguments.length){case 1:return b;case 2:return a.call(this,b,f);default:return d.apply(this,arguments)}c("Invalid arity: "+arguments.length)};b.h=2;b.c=d.c;b.n=aa();b.f=a;b.i=d;return b}();function N(a,b){return Ja.call(k,a,b)}function nb(a){var b;u(a)?(b=a.t,b=u(b)?L.call(k,a.hasOwnProperty("cljs$core$IMeta$")):b):b=a;b=u(b)?g:qa.call(k,Ha,a);return u(b)?Ia.call(k,a):k}function ob(a){return Ea.call(k,a)}function pb(a){return Fa.call(k,a)}function O(a){return Ma.call(k,a)}
function qb(a){if(a===k)a=l;else{var b;u(a)?(b=a.Qa,b=u(b)?L.call(k,a.hasOwnProperty("cljs$core$ISet$")):b):b=a;a=u(b)?g:qa.call(k,Da,a)}return a}function rb(a){var b;u(a)?(b=a.M,b=u(b)?L.call(k,a.hasOwnProperty("cljs$core$ISequential$")):b):b=a;return u(b)?g:qa.call(k,Oa,a)}function sb(a){if(a===k)a=l;else{var b;u(a)?(b=a.fa,b=u(b)?L.call(k,a.hasOwnProperty("cljs$core$IMap$")):b):b=a;a=u(b)?g:qa.call(k,ya,a)}return a}
function tb(a){var b;u(a)?(b=a.Ia,b=u(b)?L.call(k,a.hasOwnProperty("cljs$core$IVector$")):b):b=a;return u(b)?g:qa.call(k,Ga,a)}
var ub=function(){var a=k,b=function(){function a(b){var d=k;r(b)&&(d=C(Array.prototype.slice.call(arguments,0),0));return P.call(k,na,d)}a.h=0;a.c=function(a){a=K(a);return P.call(k,na,a)};return a}(),a=function(a){switch(arguments.length){case 0:return{};default:return b.apply(this,arguments)}c("Invalid arity: "+arguments.length)};a.h=0;a.c=b.c;a.Fa=function(){return{}};a.n=b;return a}();function vb(a){var b=[];la.call(k,a,function(a,e){return b.push(e)});return b}
function wb(a,b){return delete a[b]}function xb(a,b,d,e,f){for(;;){if(0===f)return d;d[e]=a[b];e+=1;f-=1;b+=1}}function yb(a,b,d,e,f){b+=f-1;for(e+=f-1;;){if(0===f)return d;d[e]=a[b];e-=1;f-=1;b-=1}}var zb={};function Q(a,b){return b!=k&&(b instanceof a||b.constructor===a||a===Object)}function Ab(a){if(a===k)a=l;else{var b;u(a)?(b=a.X,b=u(b)?L.call(k,a.hasOwnProperty("cljs$core$ISeq$")):b):b=a;a=u(b)?g:qa.call(k,sa,a)}return a}function Bb(a){return u(a)?g:l}
function Cb(a){var b=ca.call(k,a);return u(b)?L.call(k,function(){var b=G.call(k,a.charAt(0),"\ufdd0");return b?b:G.call(k,a.charAt(0),"\ufdd1")}()):b}function Db(a){var b=ca.call(k,a);return u(b)?G.call(k,a.charAt(0),"\ufdd0"):b}function Eb(a){var b=ca.call(k,a);return u(b)?G.call(k,a.charAt(0),"\ufdd1"):b}function Fb(a,b){return B.call(k,a,b,zb)===zb?l:g}
var R=function(){function a(a,b,d){return Ka.call(k,d,a,b)}function b(a,b){return Ka.call(k,b,a)}var d=k,d=function(d,f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}(),Gb=function(){function a(a,b,d){for(d=K.call(k,d);;)if(u(d))b=a.call(k,b,E.call(k,d)),d=D.call(k,d);else return b}function b(a,b){var d=K.call(k,b);return u(d)?R.call(k,a,E.call(k,d),D.call(k,d)):a.call(k)}var d=k,d=function(d,
f,h){switch(arguments.length){case 2:return b.call(this,d,f);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.f=b;d.i=a;return d}();Ka._=function(){return function(a,b,d){switch(arguments.length){case 2:return Gb.call(k,b,a);case 3:return Gb.call(k,b,d,a)}c("Invalid arity: "+arguments.length)}}();
var Hb=function(){var a=k,b=function(){function a(d,h,i){var j=k;r(i)&&(j=C(Array.prototype.slice.call(arguments,2),0));return b.call(this,d,h,j)}function b(a,d,e){for(;;)if(a<d)if(u(D.call(k,e)))a=d,d=E.call(k,e),e=D.call(k,e);else return d<E.call(k,e);else return l}a.h=2;a.c=function(a){var d=E(a),i=E(D(a)),a=F(D(a));return b.call(this,d,i,a)};return a}(),a=function(a,e,f){switch(arguments.length){case 1:return g;case 2:return a<e;default:return b.apply(this,arguments)}c("Invalid arity: "+arguments.length)};
a.h=2;a.c=b.c;a.n=n(g);a.f=function(a,b){return a<b};a.i=b;return a}(),Ib=function(){var a=k,b=function(){function a(d,h,i){var j=k;r(i)&&(j=C(Array.prototype.slice.call(arguments,2),0));return b.call(this,d,h,j)}function b(a,d,e){for(;;)if(a>d)if(u(D.call(k,e)))a=d,d=E.call(k,e),e=D.call(k,e);else return d>E.call(k,e);else return l}a.h=2;a.c=function(a){var d=E(a),i=E(D(a)),a=F(D(a));return b.call(this,d,i,a)};return a}(),a=function(a,e,f){switch(arguments.length){case 1:return g;case 2:return a>
e;default:return b.apply(this,arguments)}c("Invalid arity: "+arguments.length)};a.h=2;a.c=b.c;a.n=n(g);a.f=function(a,b){return a>b};a.i=b;return a}();function Jb(a){return 0<=a?Math.floor.call(k,a):Math.ceil.call(k,a)}function Kb(a,b){return Jb.call(k,(a-a%b)/b)}function Lb(a){for(var b=0;;){if(0===a)return b;a&=a-1;b+=1}}function Mb(a,b){for(var d=b,e=K.call(k,a);;){var f=e;if(u(u(f)?0<d:f))d-=1,e=D.call(k,e);else return e}}
A._=function(){return function(a,b,d){switch(arguments.length){case 2:var e;var f=Mb.call(k,a,b);u(f)?e=E.call(k,f):c(Error("Index out of bounds"));return e;case 3:return e=Mb.call(k,a,b),u(e)?E.call(k,e):d}c("Invalid arity: "+arguments.length)}}();
var Nb=function(){function a(a){return a===k?"":a.toString()}var b=k,d=function(){function a(b,e){var j=k;r(e)&&(j=C(Array.prototype.slice.call(arguments,1),0));return d.call(this,b,j)}function d(a,e){return function(a,d){for(;;)if(u(d))var e=a.append(b.call(k,E.call(k,d))),f=D.call(k,d),a=e,d=f;else return b.call(k,a)}.call(k,new pa(b.call(k,a)),e)}a.h=1;a.c=function(a){var b=E(a),a=F(a);return d.call(this,b,a)};return a}(),b=function(b,f){switch(arguments.length){case 0:return"";case 1:return a.call(this,
b);default:return d.apply(this,arguments)}c("Invalid arity: "+arguments.length)};b.h=1;b.c=d.c;b.Fa=n("");b.n=a;b.f=d;return b}(),S=function(){function a(a){return Eb.call(k,a)?a.substring(2,a.length):Db.call(k,a)?Nb.call(k,":",a.substring(2,a.length)):a===k?"":a.toString()}var b=k,d=function(){function a(b,e){var j=k;r(e)&&(j=C(Array.prototype.slice.call(arguments,1),0));return d.call(this,b,j)}function d(a,e){return function(a,d){for(;;)if(u(d))var e=a.append(b.call(k,E.call(k,d))),f=D.call(k,d),
a=e,d=f;else return Nb.call(k,a)}.call(k,new pa(b.call(k,a)),e)}a.h=1;a.c=function(a){var b=E(a),a=F(a);return d.call(this,b,a)};return a}(),b=function(b,f){switch(arguments.length){case 0:return"";case 1:return a.call(this,b);default:return d.apply(this,arguments)}c("Invalid arity: "+arguments.length)};b.h=1;b.c=d.c;b.Fa=n("");b.n=a;b.f=d;return b}(),Ob=function(){var a=k,a=function(a,d,e){switch(arguments.length){case 2:return a.substring(d);case 3:return a.substring(d,e)}c("Invalid arity: "+arguments.length)};
a.f=function(a,d){return a.substring(d)};a.i=function(a,d,e){return a.substring(d,e)};return a}(),Pb=function(){function a(a,b){return d.call(k,Nb.call(k,a,"/",b))}function b(a){return Db.call(k,a)?a:Eb.call(k,a)?Nb.call(k,"\ufdd0","'",Ob.call(k,a,2)):Nb.call(k,"\ufdd0","'",a)}var d=k,d=function(d,f){switch(arguments.length){case 1:return b.call(this,d);case 2:return a.call(this,d,f)}c("Invalid arity: "+arguments.length)};d.n=b;d.f=a;return d}();
function db(a,b){return Bb.call(k,rb.call(k,b)?function(){for(var d=K.call(k,a),e=K.call(k,b);;){if(d===k)return e===k;if(e!==k&&G.call(k,E.call(k,d),E.call(k,e)))d=D.call(k,d),e=D.call(k,e);else return l}}():k)}function Qb(a,b){return a^b+2654435769+(a<<6)+(a>>2)}function cb(a){return R.call(k,function(a,d){return Qb.call(k,a,O.call(k,d))},O.call(k,E.call(k,a)),D.call(k,a))}
function Rb(a){for(var b=0,a=K.call(k,a);;)if(u(a))var d=E.call(k,a),b=(b+(O.call(k,Sb.call(k,d))^O.call(k,Tb.call(k,d))))%4503599627370496,a=D.call(k,a);else return b}function Ub(a){for(var b=0,a=K.call(k,a);;)if(u(a))var d=E.call(k,a),b=(b+O.call(k,d))%4503599627370496,a=D.call(k,a);else return b}function Vb(a,b,d,e,f){this.d=a;this.oa=b;this.qa=d;this.B=e;this.g=f}o=Vb.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.M=g;
o.s=function(a,b){return new Vb(this.d,b,a,this.B+1,k)};o.toString=function(){return J.call(k,this)};o.w=aa();o.o=m("B");o.la=m("oa");o.ma=function(a){return ua.call(k,a)};o.X=g;o.R=m("oa");o.S=m("qa");o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return new Vb(b,this.oa,this.qa,this.B,this.g)};o.t=g;o.u=m("d");o.F=function(){return Wb};function Xb(a){this.d=a}o=Xb.prototype;o.p=n(0);o.M=g;o.s=function(a,b){return new Vb(this.d,b,k,1,k)};o.toString=function(){return J.call(k,this)};
o.w=n(k);o.o=n(0);o.la=n(k);o.ma=n(k);o.X=g;o.R=n(k);o.S=n(k);o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return new Xb(b)};o.t=g;o.u=m("d");o.F=aa();var Wb=new Xb(k);function Yb(a){return R.call(k,hb,Wb,a)}var H=function(){function a(a){var d=k;r(a)&&(d=C(Array.prototype.slice.call(arguments,0),0));return R.call(k,hb,Wb,Yb.call(k,d))}a.h=0;a.c=function(a){a=K(a);return R.call(k,hb,Wb,Yb.call(k,a))};return a}();function Zb(a,b,d,e){this.d=a;this.oa=b;this.qa=d;this.g=e}o=Zb.prototype;
o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.M=g;o.s=function(a,b){return new Zb(k,b,a,this.g)};o.toString=function(){return J.call(k,this)};o.w=aa();o.o=function(a){for(var a=K.call(k,a),b=0;;)if(u(a))a=D.call(k,a),b+=1;else return b};o.X=g;o.R=m("oa");o.S=function(){return this.qa===k?Wb:this.qa};o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return new Zb(b,this.oa,this.qa,this.g)};o.t=g;o.u=m("d");o.F=function(){return N.call(k,Wb,this.d)};
function I(a,b){return new Zb(k,a,b,k)}Ka.string=function(){return function(a,b,d){switch(arguments.length){case 2:return ab.call(k,a,b);case 3:return ab.call(k,a,b,d)}c("Invalid arity: "+arguments.length)}}();B.string=function(){return function(a,b,d){switch(arguments.length){case 2:return A.call(k,a,b);case 3:return A.call(k,a,b,d)}c("Invalid arity: "+arguments.length)}}();
A.string=function(){return function(a,b,d){switch(arguments.length){case 2:return b<y.call(k,a)?a.charAt(b):k;case 3:return b<y.call(k,a)?a.charAt(b):d}c("Invalid arity: "+arguments.length)}}();y.string=function(a){return a.length};Na.string=function(a){return eb.call(k,a,0)};Ma.string=function(a){return ja.call(k,a)};
String.prototype.call=function(){return function(a,b,d){switch(arguments.length){case 2:return kb.call(k,b,this.toString());case 3:return kb.call(k,b,this.toString(),d)}c("Invalid arity: "+arguments.length)}}();String.prototype.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};String.prototype.apply=function(a,b){return 2>ib.call(k,b)?kb.call(k,b[0],a):kb.call(k,b[0],a,b[1])};function $b(a){var b=a.x;if(u(a.Ja))return b;a.x=b.call(k);a.Ja=g;return a.x}
function U(a,b,d,e){this.d=a;this.Ja=b;this.x=d;this.g=e}o=U.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.M=g;o.s=function(a,b){return I.call(k,b,a)};o.toString=function(){return J.call(k,this)};o.w=function(a){return K.call(k,$b.call(k,a))};o.X=g;o.R=function(a){return E.call(k,$b.call(k,a))};o.S=function(a){return F.call(k,$b.call(k,a))};o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return new U(b,this.Ja,this.x,this.g)};o.t=g;o.u=m("d");
o.F=function(){return N.call(k,Wb,this.d)};function ac(a){for(var b=[];;)if(u(K.call(k,a)))b.push(E.call(k,a)),a=D.call(k,a);else return b}function bc(a,b){for(var d=a,e=b,f=0;;){var h;h=(h=0<e)?K.call(k,d):h;if(u(h))d=D.call(k,d),e-=1,f+=1;else return f}}
var dc=function cc(b){return b===k?k:D.call(k,b)===k?K.call(k,E.call(k,b)):I.call(k,E.call(k,b),cc.call(k,D.call(k,b)))},ec=function(){function a(a,b){return new U(k,l,function(){var d=K.call(k,a);return u(d)?I.call(k,E.call(k,d),e.call(k,F.call(k,d),b)):b})}function b(a){return new U(k,l,function(){return a})}function d(){return new U(k,l,n(k))}var e=k,f=function(){function a(d,e,f){var h=k;r(f)&&(h=C(Array.prototype.slice.call(arguments,2),0));return b.call(this,d,e,h)}function b(a,d,f){return function M(a,
b){return new U(k,l,function(){var d=K.call(k,a);return u(d)?I.call(k,E.call(k,d),M.call(k,F.call(k,d),b)):u(b)?M.call(k,E.call(k,b),D.call(k,b)):k})}.call(k,e.call(k,a,d),f)}a.h=2;a.c=function(a){var d=E(a),e=E(D(a)),a=F(D(a));return b.call(this,d,e,a)};return a}(),e=function(e,i,j){switch(arguments.length){case 0:return d.call(this);case 1:return b.call(this,e);case 2:return a.call(this,e,i);default:return f.apply(this,arguments)}c("Invalid arity: "+arguments.length)};e.h=2;e.c=f.c;e.Fa=d;e.n=b;
e.f=a;e.i=f;return e}(),fc=function(){function a(a,b,d,e){return I.call(k,a,I.call(k,b,I.call(k,d,e)))}function b(a,b,d){return I.call(k,a,I.call(k,b,d))}function d(a,b){return I.call(k,a,b)}function e(a){return K.call(k,a)}var f=k,h=function(){function a(d,e,f,h,i){var Ra=k;r(i)&&(Ra=C(Array.prototype.slice.call(arguments,4),0));return b.call(this,d,e,f,h,Ra)}function b(a,d,e,f,h){return I.call(k,a,I.call(k,d,I.call(k,e,I.call(k,f,dc.call(k,h)))))}a.h=4;a.c=function(a){var d=E(a),e=E(D(a)),f=E(D(D(a))),
h=E(D(D(D(a)))),a=F(D(D(D(a))));return b.call(this,d,e,f,h,a)};return a}(),f=function(f,j,p,t,T){switch(arguments.length){case 1:return e.call(this,f);case 2:return d.call(this,f,j);case 3:return b.call(this,f,j,p);case 4:return a.call(this,f,j,p,t);default:return h.apply(this,arguments)}c("Invalid arity: "+arguments.length)};f.h=4;f.c=h.c;f.n=e;f.f=d;f.i=b;f.T=a;f.Ga=h;return f}();function gc(a){return Ta.call(k,a)}function hc(a){return Va.call(k,a)}function ic(a,b){return Ua.call(k,a,b)}
function jc(a,b,d){return Wa.call(k,a,b,d)}
var P=function(){function a(a,b,d,e,f){b=fc.call(k,b,d,e,f);d=a.h;return u(a.c)?bc.call(k,b,d)<=d?a.apply(a,ac.call(k,b)):a.c(b):a.apply(a,ac.call(k,b))}function b(a,b,d,e){b=fc.call(k,b,d,e);d=a.h;return u(a.c)?bc.call(k,b,d)<=d?a.apply(a,ac.call(k,b)):a.c(b):a.apply(a,ac.call(k,b))}function d(a,b,d){b=fc.call(k,b,d);d=a.h;return u(a.c)?bc.call(k,b,d)<=d?a.apply(a,ac.call(k,b)):a.c(b):a.apply(a,ac.call(k,b))}function e(a,b){var d=a.h;return u(a.c)?bc.call(k,b,d+1)<=d?a.apply(a,ac.call(k,b)):a.c(b):
a.apply(a,ac.call(k,b))}var f=k,h=function(){function a(d,e,f,h,i,Ra){var Rc=k;r(Ra)&&(Rc=C(Array.prototype.slice.call(arguments,5),0));return b.call(this,d,e,f,h,i,Rc)}function b(a,d,e,f,h,i){d=I.call(k,d,I.call(k,e,I.call(k,f,I.call(k,h,dc.call(k,i)))));e=a.h;return u(a.c)?bc.call(k,d,e)<=e?a.apply(a,ac.call(k,d)):a.c(d):a.apply(a,ac.call(k,d))}a.h=5;a.c=function(a){var d=E(a),e=E(D(a)),f=E(D(D(a))),h=E(D(D(D(a)))),i=E(D(D(D(D(a))))),a=F(D(D(D(D(a)))));return b.call(this,d,e,f,h,i,a)};return a}(),
f=function(f,j,p,t,T,M){switch(arguments.length){case 2:return e.call(this,f,j);case 3:return d.call(this,f,j,p);case 4:return b.call(this,f,j,p,t);case 5:return a.call(this,f,j,p,t,T);default:return h.apply(this,arguments)}c("Invalid arity: "+arguments.length)};f.h=5;f.c=h.c;f.f=e;f.i=d;f.T=b;f.Ga=a;f.Pa=h;return f}();function kc(a){return u(K.call(k,a))?a:k}function lc(a,b){for(;;){if(K.call(k,b)===k)return g;if(u(a.call(k,E.call(k,b))))var d=a,e=D.call(k,b),a=d,b=e;else return l}}
function mc(a){return a}
var nc=function(){function a(a,b,d,e){return function(){function f(t){var M=k;r(t)&&(M=C(Array.prototype.slice.call(arguments,0),0));return P.call(k,a,b,d,e,M)}f.h=0;f.c=function(f){f=K(f);return P.call(k,a,b,d,e,f)};return f}()}function b(a,b,d){return function(){function e(f){var p=k;r(f)&&(p=C(Array.prototype.slice.call(arguments,0),0));return P.call(k,a,b,d,p)}e.h=0;e.c=function(e){e=K(e);return P.call(k,a,b,d,e)};return e}()}function d(a,b){return function(){function d(e){var f=k;r(e)&&(f=C(Array.prototype.slice.call(arguments,
0),0));return P.call(k,a,b,f)}d.h=0;d.c=function(d){d=K(d);return P.call(k,a,b,d)};return d}()}var e=k,f=function(){function a(d,e,f,h,M){var va=k;r(M)&&(va=C(Array.prototype.slice.call(arguments,4),0));return b.call(this,d,e,f,h,va)}function b(a,d,e,f,h){return function(){function b(a){var d=k;r(a)&&(d=C(Array.prototype.slice.call(arguments,0),0));return i.call(this,d)}function i(b){return P.call(k,a,d,e,f,ec.call(k,h,b))}b.h=0;b.c=function(a){a=K(a);return i.call(this,a)};return b}()}a.h=4;a.c=
function(a){var d=E(a),e=E(D(a)),f=E(D(D(a))),h=E(D(D(D(a)))),a=F(D(D(D(a))));return b.call(this,d,e,f,h,a)};return a}(),e=function(e,i,j,p,t){switch(arguments.length){case 2:return d.call(this,e,i);case 3:return b.call(this,e,i,j);case 4:return a.call(this,e,i,j,p);default:return f.apply(this,arguments)}c("Invalid arity: "+arguments.length)};e.h=4;e.c=f.c;e.f=d;e.i=b;e.T=a;e.Ga=f;return e}(),oc=function(){function a(a,b,d,f){return new U(k,l,function(){var t=K.call(k,b),T=K.call(k,d),M=K.call(k,
f);return u(u(t)?u(T)?M:T:t)?I.call(k,a.call(k,E.call(k,t),E.call(k,T),E.call(k,M)),e.call(k,a,F.call(k,t),F.call(k,T),F.call(k,M))):k})}function b(a,b,d){return new U(k,l,function(){var f=K.call(k,b),t=K.call(k,d);return u(u(f)?t:f)?I.call(k,a.call(k,E.call(k,f),E.call(k,t)),e.call(k,a,F.call(k,f),F.call(k,t))):k})}function d(a,b){return new U(k,l,function(){var d=K.call(k,b);return u(d)?I.call(k,a.call(k,E.call(k,d)),e.call(k,a,F.call(k,d))):k})}var e=k,f=function(){function a(d,e,f,h,M){var va=
k;r(M)&&(va=C(Array.prototype.slice.call(arguments,4),0));return b.call(this,d,e,f,h,va)}function b(a,d,f,h,i){return e.call(k,function(b){return P.call(k,a,b)},function Ra(a){return new U(k,l,function(){var b=e.call(k,K,a);return lc.call(k,mc,b)?I.call(k,e.call(k,E,b),Ra.call(k,e.call(k,F,b))):k})}.call(k,hb.call(k,i,h,f,d)))}a.h=4;a.c=function(a){var d=E(a),e=E(D(a)),f=E(D(D(a))),h=E(D(D(D(a)))),a=F(D(D(D(a))));return b.call(this,d,e,f,h,a)};return a}(),e=function(e,i,j,p,t){switch(arguments.length){case 2:return d.call(this,
e,i);case 3:return b.call(this,e,i,j);case 4:return a.call(this,e,i,j,p);default:return f.apply(this,arguments)}c("Invalid arity: "+arguments.length)};e.h=4;e.c=f.c;e.f=d;e.i=b;e.T=a;e.Ga=f;return e}(),qc=function pc(b,d){return new U(k,l,function(){if(0<b){var e=K.call(k,d);return u(e)?I.call(k,E.call(k,e),pc.call(k,b-1,F.call(k,e))):k}return k})};
function rc(a,b){function d(a,b){for(;;){var d=K.call(k,b),i=0<a;if(u(i?d:i))i=a-1,d=F.call(k,d),a=i,b=d;else return d}}return new U(k,l,function(){return d.call(k,a,b)})}
var sc=function(){function a(a,b){return qc.call(k,a,d.call(k,b))}function b(a){return new U(k,l,function(){return I.call(k,a,d.call(k,a))})}var d=k,d=function(d,f){switch(arguments.length){case 1:return b.call(this,d);case 2:return a.call(this,d,f)}c("Invalid arity: "+arguments.length)};d.n=b;d.f=a;return d}(),tc=function(){function a(a,d){return new U(k,l,function(){var h=K.call(k,a),i=K.call(k,d);return u(u(h)?i:h)?I.call(k,E.call(k,h),I.call(k,E.call(k,i),b.call(k,F.call(k,h),F.call(k,i)))):k})}
var b=k,d=function(){function a(b,e,j){var p=k;r(j)&&(p=C(Array.prototype.slice.call(arguments,2),0));return d.call(this,b,e,p)}function d(a,e,f){return new U(k,l,function(){var d=oc.call(k,K,hb.call(k,f,e,a));return lc.call(k,mc,d)?ec.call(k,oc.call(k,E,d),P.call(k,b,oc.call(k,F,d))):k})}a.h=2;a.c=function(a){var b=E(a),e=E(D(a)),a=F(D(a));return d.call(this,b,e,a)};return a}(),b=function(b,f,h){switch(arguments.length){case 2:return a.call(this,b,f);default:return d.apply(this,arguments)}c("Invalid arity: "+
arguments.length)};b.h=2;b.c=d.c;b.f=a;b.i=d;return b}();function uc(a,b){return rc.call(k,1,tc.call(k,sc.call(k,a),b))}function vc(a){return function d(a,f){return new U(k,l,function(){var h=K.call(k,a);return u(h)?I.call(k,E.call(k,h),d.call(k,F.call(k,h),f)):u(K.call(k,f))?d.call(k,E.call(k,f),F.call(k,f)):k})}.call(k,k,a)}
var wc=function(){function a(a,b){return vc.call(k,oc.call(k,a,b))}var b=k,d=function(){function a(b,d,e){var j=k;r(e)&&(j=C(Array.prototype.slice.call(arguments,2),0));return vc.call(k,P.call(k,oc,b,d,j))}a.h=2;a.c=function(a){var b=E(a),d=E(D(a)),a=F(D(a));return vc.call(k,P.call(k,oc,b,d,a))};return a}(),b=function(b,f,h){switch(arguments.length){case 2:return a.call(this,b,f);default:return d.apply(this,arguments)}c("Invalid arity: "+arguments.length)};b.h=2;b.c=d.c;b.f=a;b.i=d;return b}();
function xc(a,b){var d;u(a)?(d=a.Aa,d=u(d)?L.call(k,a.hasOwnProperty("cljs$core$IEditableCollection$")):d):d=a;d=u(d)?g:qa.call(k,Sa,a);return u(d)?hc.call(k,R.call(k,Ua,gc.call(k,a),b)):R.call(k,z,a,b)}
var yc=function(){function a(a,b,d,j){return new U(k,l,function(){var p=K.call(k,j);if(u(p)){var t=qc.call(k,a,p);return G.call(k,a,ib.call(k,t))?I.call(k,t,e.call(k,a,b,d,rc.call(k,b,p))):H.call(k,qc.call(k,a,ec.call(k,t,d)))}return k})}function b(a,b,d){return new U(k,l,function(){var j=K.call(k,d);if(u(j)){var p=qc.call(k,a,j);return G.call(k,a,ib.call(k,p))?I.call(k,p,e.call(k,a,b,rc.call(k,b,j))):k}return k})}function d(a,b){return e.call(k,a,a,b)}var e=k,e=function(e,h,i,j){switch(arguments.length){case 2:return d.call(this,
e,h);case 3:return b.call(this,e,h,i);case 4:return a.call(this,e,h,i,j)}c("Invalid arity: "+arguments.length)};e.f=d;e.i=b;e.T=a;return e}();function zc(a,b){this.j=a;this.a=b}function Ac(a){return new zc(a,x.call(k,32))}function Bc(a,b){return a.a[b]}function Cc(a,b,d){return a.a[b]=d}function Dc(a){return new zc(a.j,w.call(k,a.a))}function Ec(a){a=a.b;return 32>a?0:a-1>>>5<<5}function Fc(a,b,d){for(;;){if(0===b)return d;var e=Ac.call(k,a);Cc.call(k,e,0,d);d=e;b-=5}}
var Hc=function Gc(b,d,e,f){var h=Dc.call(k,e),i=b.b-1>>>d&31;5===d?Cc.call(k,h,i,f):(e=Bc.call(k,e,i),b=u(e)?Gc.call(k,b,d-5,e,f):Fc.call(k,k,d-5,f),Cc.call(k,h,i,b));return h};function Ic(a,b){var d=0<=b;if(d?b<a.b:d){if(b>=Ec.call(k,a))return a.J;for(var d=a.root,e=a.shift;;)if(0<e)var f=e-5,d=Bc.call(k,d,b>>>e&31),e=f;else return d.a}else c(Error([S("No item "),S(b),S(" in vector of length "),S(a.b)].join("")))}
var Kc=function Jc(b,d,e,f,h){var i=Dc.call(k,e);if(0===d)Cc.call(k,i,f&31,h);else{var j=f>>>d&31;Cc.call(k,i,j,Jc.call(k,b,d-5,Bc.call(k,e,j),f,h))}return i},Mc=function Lc(b,d,e){var f=b.b-2>>>d&31;if(5<d){b=Lc.call(k,b,d-5,Bc.call(k,e,f));if((d=b===k)?0===f:d)return k;e=Dc.call(k,e);Cc.call(k,e,f,b);return e}if(0===f)return k;e=Dc.call(k,e);Cc.call(k,e,f,k);return e};function Nc(a,b,d,e,f,h){this.d=a;this.b=b;this.shift=d;this.root=e;this.J=f;this.g=h}o=Nc.prototype;o.Aa=g;
o.sa=function(){return new Oc(this.b,this.shift,Pc.call(k,this.root),Qc.call(k,this.J))};o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.G=function(a,b){return A.call(k,a,b,k)};o.H=function(a,b,d){return A.call(k,a,b,d)};
o.N=function(a,b,d){var e=0<=b;if(e?b<this.b:e)return Ec.call(k,a)<=b?(a=w.call(k,this.J),a[b&31]=d,new Nc(this.d,this.b,this.shift,this.root,a,k)):new Nc(this.d,this.b,this.shift,Kc.call(k,a,this.shift,this.root,b,d),this.J,k);if(b===this.b)return z.call(k,a,d);c(Error([S("Index "),S(b),S(" out of bounds [0,"),S(this.b),S("]")].join("")))};o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();
o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.M=g;o.s=function(a,b){if(32>this.b-Ec.call(k,a)){var d=w.call(k,this.J);d.push(b);return new Nc(this.d,this.b+1,this.shift,this.root,d,k)}var e=this.b>>>5>1<<this.shift,d=e?this.shift+5:this.shift;e?(e=Ac.call(k,k),Cc.call(k,e,0,this.root),Cc.call(k,e,1,Fc.call(k,k,this.shift,new zc(k,this.J)))):e=Hc.call(k,a,this.shift,this.root,new zc(k,this.J));return new Nc(this.d,this.b+1,d,e,[b],k)};o.Ba=g;
o.Ca=function(a){return A.call(k,a,0)};o.Da=function(a){return A.call(k,a,1)};o.toString=function(){return J.call(k,this)};o.ja=function(a,b){return ab.call(k,a,b)};o.ka=function(a,b,d){return ab.call(k,a,b,d)};o.w=function(a){var b=this;return 0<b.b?function e(f){return new U(k,l,function(){return f<b.b?I.call(k,A.call(k,a,f),e.call(k,f+1)):k})}.call(k,0):k};o.o=m("b");o.la=function(a){return 0<this.b?A.call(k,a,this.b-1):k};
o.ma=function(a){0===this.b&&c(Error("Can't pop empty vector"));if(1===this.b)return Ja.call(k,Sc,this.d);if(1<this.b-Ec.call(k,a))return new Nc(this.d,this.b-1,this.shift,this.root,this.J.slice(0,-1),k);var b=Ic.call(k,a,this.b-2),a=Mc.call(k,a,this.shift,this.root),a=a===k?Tc:a,d=this.b-1,e=5<this.shift;return(e?Bc.call(k,a,1)===k:e)?new Nc(this.d,d,this.shift-5,Bc.call(k,a,0),b,k):new Nc(this.d,d,this.shift,a,b,k)};o.Ia=g;o.l=function(a,b){return db.call(k,a,b)};
o.z=function(a,b){return new Nc(b,this.b,this.shift,this.root,this.J,this.g)};o.t=g;o.u=m("d");o.da=function(a,b){return Ic.call(k,a,b)[b&31]};o.ea=function(a,b,d){var e=0<=b;return(e?b<this.b:e)?A.call(k,a,b):d};o.F=function(){return N.call(k,Sc,this.d)};var Tc=Ac.call(k,k),Sc=new Nc(k,0,5,Tc,[],0);function V(a){for(var a=K.call(k,a),b=gc.call(k,Sc);;)if(u(a))var d=D.call(k,a),b=ic.call(k,b,E.call(k,a)),a=d;else return hc.call(k,b)}function Uc(a){return R.call(k,hb,Sc,a)}
var W=function(){function a(a){var d=k;r(a)&&(d=C(Array.prototype.slice.call(arguments,0),0));return Uc.call(k,d)}a.h=0;a.c=function(a){a=K(a);return Uc.call(k,a)};return a}();function Vc(a,b){return a===b.j?b:new zc(a,w.call(k,b.a))}function Pc(a){return new zc({},w.call(k,a.a))}function Qc(a){var b=x.call(k,32);xb.call(k,a,0,b,0,a.length);return b}
var Xc=function Wc(b,d,e,f){var h=Vc.call(k,b.root.j,e),i=b.b-1>>>d&31;Cc.call(k,h,i,5===d?f:function(){var e=Bc.call(k,h,i);return e==k?Wc.call(k,b,d-5,e,f):Fc.call(k,b.root.j,d-5,f)}());return h};function Oc(a,b,d,e){this.b=a;this.shift=b;this.root=d;this.J=e}o=Oc.prototype;o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();
o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.G=function(a,b){return A.call(k,a,b,k)};o.H=function(a,b,d){return A.call(k,a,b,d)};o.da=function(a,b){if(u(this.root.j))return Ic.call(k,a,b)[b&31];c(Error("nth after persistent!"))};o.ea=function(a,b,d){var e=0<=b;return(e?b<this.b:e)?A.call(k,a,b):d};o.o=function(){if(u(this.root.j))return this.b;c(Error("count after persistent!"))};
o.Oa=function(a,b,d){var e=this;if(u(e.root.j)){if(function(){var a=0<=b;return a?b<e.b:a}()){if(Ec.call(k,a)<=b)e.J[b&31]=d;else{var f=function i(a,f){var t=Vc.call(k,e.root.j,f);if(0===a)Cc.call(k,t,b&31,d);else{var T=b>>>a&31;Cc.call(k,t,T,i.call(k,a-5,Bc.call(k,t,T)))}return t}.call(k,e.shift,e.root);e.root=f}return a}if(b===e.b)return Ua.call(k,a,d);c(Error([S("Index "),S(b),S(" out of bounds for TransientVector of length"),S(e.b)].join("")))}c(Error("assoc! after persistent!"))};
o.Ea=function(a,b,d){return Xa.call(k,a,b,d)};o.ta=function(a,b){if(u(this.root.j)){if(32>this.b-Ec.call(k,a))this.J[this.b&31]=b;else{var d=new zc(this.root.j,this.J),e=x.call(k,32);e[0]=b;this.J=e;if(this.b>>>5>1<<this.shift){var e=x.call(k,32),f=this.shift+5;e[0]=this.root;e[1]=Fc.call(k,this.root.j,this.shift,d);this.root=new zc(this.root.j,e);this.shift=f}else this.root=Xc.call(k,a,this.shift,this.root,d)}this.b+=1;return a}c(Error("conj! after persistent!"))};
o.ua=function(a){if(u(this.root.j)){this.root.j=k;var a=this.b-Ec.call(k,a),b=x.call(k,a);xb.call(k,this.J,0,b,0,a);return new Nc(k,this.b,this.shift,this.root,b,k)}c(Error("persistent! called twice"))};V([]);function Yc(){}Yc.prototype.l=n(l);var Zc=new Yc;function $c(a,b){return Bb.call(k,sb.call(k,b)?G.call(k,ib.call(k,a),ib.call(k,b))?lc.call(k,mc,oc.call(k,function(a){return G.call(k,kb.call(k,b,E.call(k,a),Zc),fb.call(k,a))},a)):k:k)}
function ad(a,b,d){for(var e=d.length,f=0;;)if(f<e){if(G.call(k,b,d[f]))return f;f+=a}else return k}var bd=function(){function a(a,b,d,i){var j=ca.call(k,a);return u(u(j)?b.hasOwnProperty(a):j)?d:i}function b(a,b){return d.call(k,a,b,g,l)}var d=k,d=function(d,f,h,i){switch(arguments.length){case 2:return b.call(this,d,f);case 4:return a.call(this,d,f,h,i)}c("Invalid arity: "+arguments.length)};d.f=b;d.T=a;return d}();function cd(a,b){var d=O.call(k,a),e=O.call(k,b);return d<e?-1:d>e?1:0}
function dd(a,b,d){for(var e=a.keys,f=e.length,h=a.Q,i=N.call(k,ed,nb.call(k,a)),a=0,i=gc.call(k,i);;)if(a<f)var j=e[a],a=a+1,i=jc.call(k,i,j,h[j]);else return hc.call(k,jc.call(k,i,b,d))}function fd(a,b,d,e){this.d=a;this.keys=b;this.Q=d;this.g=e}o=fd.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=Rb.call(k,a)};o.G=function(a,b){return B.call(k,a,b,k)};o.H=function(a,b,d){return bd.call(k,b,this.Q,this.Q[b],d)};
o.N=function(a,b,d){if(u(ca.call(k,b))){if(u(this.Q.hasOwnProperty(b)))return a=ma.call(k,this.Q),a[b]=d,new fd(this.d,this.keys,a);if(this.keys.length<gd){var a=ma.call(k,this.Q),e=w.call(k,this.keys);a[b]=d;e.push(b);return new fd(this.d,e,a)}}return dd.call(k,a,b,d)};o.ia=function(a,b){return bd.call(k,b,this.Q)};o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();
o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.s=function(a,b){return tb.call(k,b)?xa.call(k,a,A.call(k,b,0),A.call(k,b,1)):R.call(k,z,a,b)};o.toString=function(){return J.call(k,this)};o.w=function(){var a=this;return 0<a.keys.length?oc.call(k,function(b){return W.call(k,b,a.Q[b])},a.keys.sort(cd)):k};o.o=function(){return this.keys.length};o.l=function(a,b){return $c.call(k,a,b)};o.z=function(a,b){return new fd(b,this.keys,this.Q,this.g)};o.t=g;o.u=m("d");
o.F=function(){return N.call(k,hd,this.d)};o.fa=g;o.ba=function(a,b){var d=ca.call(k,b);if(u(u(d)?this.Q.hasOwnProperty(b):d)){var d=w.call(k,this.keys),e=ma.call(k,this.Q);d.splice(ad.call(k,1,b,d),1);wb.call(k,e,b);return new fd(this.d,d,e,k)}return a};var hd=new fd(k,[],{},0),gd=512;function id(a,b){return new fd(k,a,b,k)}function jd(a,b,d,e){this.d=a;this.B=b;this.U=d;this.g=e}o=jd.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=Rb.call(k,a)};
o.G=function(a,b){return B.call(k,a,b,k)};o.H=function(a,b,d){a=this.U[O.call(k,b)];b=u(a)?ad.call(k,2,b,a):k;return u(b)?a[b+1]:d};o.N=function(a,b,d){var a=O.call(k,b),e=this.U[a];if(u(e)){var e=w.call(k,e),f=ma.call(k,this.U);f[a]=e;a=ad.call(k,2,b,e);if(u(a))return e[a+1]=d,new jd(this.d,this.B,f,k);e.push(b,d);return new jd(this.d,this.B+1,f,k)}e=ma.call(k,this.U);e[a]=[b,d];return new jd(this.d,this.B+1,e,k)};
o.ia=function(a,b){var d=this.U[O.call(k,b)],d=u(d)?ad.call(k,2,b,d):k;return u(d)?g:l};o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.s=function(a,b){return tb.call(k,b)?xa.call(k,a,A.call(k,b,0),A.call(k,b,1)):R.call(k,z,a,b)};o.toString=function(){return J.call(k,this)};
o.w=function(){var a=this;if(0<a.B){var b=vb.call(k,a.U).sort();return wc.call(k,function(b){return oc.call(k,Uc,yc.call(k,2,a.U[b]))},b)}return k};o.o=m("B");o.l=function(a,b){return $c.call(k,a,b)};o.z=function(a,b){return new jd(b,this.B,this.U,this.g)};o.t=g;o.u=m("d");o.F=function(){return N.call(k,kd,this.d)};o.fa=g;
o.ba=function(a,b){var d=O.call(k,b),e=this.U[d],f=u(e)?ad.call(k,2,b,e):k;if(L.call(k,f))return a;var h=ma.call(k,this.U);3>e.length?wb.call(k,h,d):(e=w.call(k,e),e.splice(f,2),h[d]=e);return new jd(this.d,this.B-1,h,k)};var kd=new jd(k,0,{},0);function ld(a,b){for(var d=a.a,e=d.length,f=0;;){if(e<=f)return-1;if(G.call(k,d[f],b))return f;f+=2}}function md(a,b,d,e){this.d=a;this.b=b;this.a=d;this.g=e}o=md.prototype;o.Aa=g;o.sa=function(){return new nd({},this.a.length,w.call(k,this.a))};
o.p=function(a){var b=this.g;return b!=k?b:this.g=a=Rb.call(k,a)};o.G=function(a,b){return B.call(k,a,b,k)};o.H=function(a,b,d){a=ld.call(k,a,b);return-1===a?d:this.a[a+1]};o.N=function(a,b,d){var e=this,f=ld.call(k,a,b);return-1===f?e.b<od?new md(e.d,e.b+1,function(){var a=w.call(k,e.a);a.push(b);a.push(d);return a}(),k):hc.call(k,jc.call(k,gc.call(k,xc.call(k,ed,a)),b,d)):d===e.a[f+1]?a:new md(e.d,e.b,function(){var a=w.call(k,e.a);a[f+1]=d;return a}(),k)};
o.ia=function(a,b){return-1!=ld.call(k,a,b)};o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.s=function(a,b){return tb.call(k,b)?xa.call(k,a,A.call(k,b,0),A.call(k,b,1)):R.call(k,z,a,b)};o.toString=function(){return J.call(k,this)};
o.w=function(){var a=this;if(0<a.b){var b=a.a.length;return function e(f){return new U(k,l,function(){return f<b?I.call(k,V([a.a[f],a.a[f+1]]),e.call(k,f+2)):k})}.call(k,0)}return k};o.o=m("b");o.l=function(a,b){return $c.call(k,a,b)};o.z=function(a,b){return new md(b,this.b,this.a,this.g)};o.t=g;o.u=m("d");o.F=function(){return Ja.call(k,pd,this.d)};o.fa=g;
o.ba=function(a,b){if(0<=ld.call(k,a,b)){var d=this.a.length,e=d-2;if(0===e)return ra.call(k,a);for(var e=x.call(k,e),f=0,h=0;;){if(f>=d)return new md(this.d,this.b-1,e,k);G.call(k,b,this.a[f])||(e[h]=this.a[f],e[h+1]=this.a[f+1],h+=2);f+=2}}else return a};var pd=new md(k,0,[],k),od=512;function nd(a,b,d){this.na=a;this.pa=b;this.a=d}o=nd.prototype;
o.Ea=function(a,b,d){if(u(this.na)){var e=ld.call(k,a,b);if(-1===e)return this.pa+2<=2*od?(this.pa+=2,this.a.push(b),this.a.push(d),a):jc.call(k,qd.call(k,this.pa,this.a),b,d);d!==this.a[e+1]&&(this.a[e+1]=d);return a}c(Error("assoc! after persistent!"))};
o.ta=function(a,b){if(u(this.na)){var d;u(b)?(d=b.Ba,d=u(d)?L.call(k,b.hasOwnProperty("cljs$core$IMapEntry$")):d):d=b;d=u(d)?g:qa.call(k,Aa,b);if(u(d))return Wa.call(k,a,Sb.call(k,b),Tb.call(k,b));d=K.call(k,b);for(var e=a;;){var f=E.call(k,d);if(u(f))d=D.call(k,d),e=Wa.call(k,e,Sb.call(k,f),Tb.call(k,f));else return e}}else c(Error("conj! after persistent!"))};o.ua=function(){if(u(this.na))return this.na=l,new md(k,Kb.call(k,this.pa,2),this.a,k);c(Error("persistent! called twice"))};
o.G=function(a,b){return B.call(k,a,b,k)};o.H=function(a,b,d){if(u(this.na))return a=ld.call(k,a,b),-1===a?d:this.a[a+1];c(Error("lookup after persistent!"))};o.o=function(){if(u(this.na))return Kb.call(k,this.pa,2);c(Error("count after persistent!"))};function qd(a,b){for(var d=gc.call(k,id([],{})),e=0;;)if(e<a)d=jc.call(k,d,b[e],b[e+1]),e+=2;else return d}
var rd=function(){function a(a,b,d,i,j){a=w.call(k,a);a[b]=d;a[i]=j;return a}function b(a,b,d){a=w.call(k,a);a[b]=d;return a}var d=k,d=function(d,f,h,i,j){switch(arguments.length){case 3:return b.call(this,d,f,h);case 5:return a.call(this,d,f,h,i,j)}c("Invalid arity: "+arguments.length)};d.i=b;d.Ga=a;return d}();function sd(a,b){var d=x.call(k,a.length-2);xb.call(k,a,0,d,0,2*b);xb.call(k,a,2*(b+1),d,2*b,d.length-2*b);return d}function td(a,b){return Lb.call(k,a&b-1)}
var ud=function(){function a(a,b,d,i,j,p){a=a.ga(b);a.a[d]=i;a.a[j]=p;return a}function b(a,b,d,i){a=a.ga(b);a.a[d]=i;return a}var d=k,d=function(d,f,h,i,j,p){switch(arguments.length){case 4:return b.call(this,d,f,h,i);case 6:return a.call(this,d,f,h,i,j,p)}c("Invalid arity: "+arguments.length)};d.T=b;d.Pa=a;return d}();function vd(a,b,d){this.j=a;this.k=b;this.a=d}o=vd.prototype;
o.O=function(a,b,d,e,f){var h=1<<(b>>>a&31),i=td.call(k,this.k,h);if(0===(this.k&h)){var j=Lb.call(k,this.k);if(16<=j){i=x.call(k,32);i[b>>>a&31]=wd.O(a+5,b,d,e,f);for(e=d=0;;)if(32>d)0!==(this.k>>>d&1)&&(i[d]=k!=this.a[e]?wd.O(a+5,O.call(k,this.a[e]),this.a[e],this.a[e+1],f):this.a[e+1],e+=2),d+=1;else break;return new xd(k,j+1,i)}a=x.call(k,2*(j+1));xb.call(k,this.a,0,a,0,2*i);a[2*i]=d;f[0]=g;a[2*i+1]=e;xb.call(k,this.a,2*i,a,2*(i+1),2*(j-i));return new vd(k,this.k|h,a)}h=this.a[2*i];j=this.a[2*
i+1];if(k==h)return f=j.O(a+5,b,d,e,f),f===j?this:new vd(k,this.k,rd.call(k,this.a,2*i+1,f));if(G.call(k,d,h))return e===j?this:new vd(k,this.k,rd.call(k,this.a,2*i+1,e));f[0]=g;return new vd(k,this.k,rd.call(k,this.a,2*i,k,2*i+1,yd.call(k,a+5,h,j,b,d,e)))};
o.xa=function(a,b,d){var e=1<<(b>>>a&31);if(0===(this.k&e))return this;var f=td.call(k,this.k,e),h=this.a[2*f],i=this.a[2*f+1];return k==h?(a=i.xa(a+5,b,d),a===i?this:k!=a?new vd(k,this.k,rd.call(k,this.a,2*f+1,a)):this.k===e?k:new vd(k,this.k^e,sd.call(k,this.a,f))):G.call(k,d,h)?new vd(k,this.k^e,sd.call(k,this.a,f)):this};
o.V=function(){return function(a,b,d,e){switch(arguments.length){case 3:var f;f=1<<(b>>>a&31);if(0===(this.k&f))f=k;else{var h=td.call(k,this.k,f);f=this.a[2*h];h=this.a[2*h+1];f=k==f?h.V(a+5,b,d):G.call(k,d,f)?V([f,h]):k}return f;case 4:return f=1<<(b>>>a&31),0===(this.k&f)?f=e:(h=td.call(k,this.k,f),f=this.a[2*h],h=this.a[2*h+1],f=k==f?h.V(a+5,b,d,e):G.call(k,d,f)?V([f,h]):e),f}c("Invalid arity: "+arguments.length)}}();o.wa=function(){return zd.call(k,this.a)};
o.ga=function(a){if(a===this.j)return this;var b=Lb.call(k,this.k),d=x.call(k,0>b?4:2*(b+1));xb.call(k,this.a,0,d,0,2*b);return new vd(a,this.k,d)};
o.P=function(a,b,d,e,f,h){var i=1<<(d>>>b&31),j=td.call(k,this.k,i);if(0===(this.k&i)){var p=Lb.call(k,this.k);if(2*p<this.a.length)return a=this.ga(a),b=a.a,h[0]=g,yb.call(k,b,2*j,b,2*(j+1),2*(p-j)),b[2*j]=e,b[2*j+1]=f,a.k|=i,a;if(16<=p){j=x.call(k,32);j[d>>>b&31]=wd.P(a,b+5,d,e,f,h);for(f=e=0;;)if(32>e)0!==(this.k>>>e&1)&&(j[e]=k!=this.a[f]?wd.P(a,b+5,O.call(k,this.a[f]),this.a[f],this.a[f+1],h):this.a[f+1],f+=2),e+=1;else break;return new xd(a,p+1,j)}b=x.call(k,2*(p+4));xb.call(k,this.a,0,b,0,
2*j);b[2*j]=e;h[0]=g;b[2*j+1]=f;xb.call(k,this.a,2*j,b,2*(j+1),2*(p-j));h=this.ga(a);h.a=b;h.k|=i;return h}i=this.a[2*j];p=this.a[2*j+1];if(k==i)return h=p.P(a,b+5,d,e,f,h),h===p?this:ud.call(k,this,a,2*j+1,h);if(G.call(k,e,i))return f===p?this:ud.call(k,this,a,2*j+1,f);h[0]=g;return ud.call(k,this,a,2*j,k,2*j+1,yd.call(k,a,b+5,i,p,d,e,f))};var wd=new vd(k,0,x.call(k,0));
function Ad(a,b,d){for(var e=a.a,a=2*(a.b-1),f=x.call(k,a),h=0,i=1,j=0;;)if(h<a){var p=h!=d;if(p?k!=e[h]:p)f[i]=e[h],i+=2,j|=1<<h;h+=1}else return new vd(b,j,f)}function xd(a,b,d){this.j=a;this.b=b;this.a=d}o=xd.prototype;o.O=function(a,b,d,e,f){var h=b>>>a&31,i=this.a[h];if(k==i)return new xd(k,this.b+1,rd.call(k,this.a,h,wd.O(a+5,b,d,e,f)));a=i.O(a+5,b,d,e,f);return a===i?this:new xd(k,this.b,rd.call(k,this.a,h,a))};
o.xa=function(a,b,d){var e=b>>>a&31,f=this.a[e];return k!=f?(a=f.xa(a+5,b,d),a===f?this:a===k?8>=this.b?Ad.call(k,this,k,e):new xd(k,this.b-1,rd.call(k,this.a,e,a)):new xd(k,this.b,rd.call(k,this.a,e,a))):this};o.V=function(){return function(a,b,d,e){switch(arguments.length){case 3:var f=this.a[b>>>a&31];return k!=f?f.V(a+5,b,d):k;case 4:return f=this.a[b>>>a&31],k!=f?f.V(a+5,b,d,e):e}c("Invalid arity: "+arguments.length)}}();o.wa=function(){return Bd.call(k,this.a)};
o.ga=function(a){return a===this.j?this:new xd(a,this.b,w.call(k,this.a))};o.P=function(a,b,d,e,f,h){var i=d>>>b&31,j=this.a[i];if(k==j)return a=ud.call(k,this,a,i,wd.P(a,b+5,d,e,f,h)),a.b+=1,a;b=j.P(a,b+5,d,e,f,h);return b===j?this:ud.call(k,this,a,i,b)};function Cd(a,b,d){for(var b=2*b,e=0;;)if(e<b){if(G.call(k,d,a[e]))return e;e+=2}else return-1}function Dd(a,b,d,e){this.j=a;this.Y=b;this.b=d;this.a=e}o=Dd.prototype;
o.O=function(a,b,d,e,f){if(b===this.Y){a=Cd.call(k,this.a,this.b,d);return-1===a?(a=this.a.length,b=x.call(k,a+2),xb.call(k,this.a,0,b,0,a),b[a]=d,b[a+1]=e,f[0]=g,new Dd(k,this.Y,this.b+1,b)):G.call(k,this.a[a],e)?this:new Dd(k,this.Y,this.b,rd.call(k,this.a,a+1,e))}return(new vd(k,1<<(this.Y>>>a&31),[k,this])).O(a,b,d,e,f)};o.xa=function(a,b,d){a=Cd.call(k,this.a,this.b,d);return-1===a?this:1===this.b?k:new Dd(k,this.Y,this.b-1,sd.call(k,this.a,Kb.call(k,a,2)))};
o.V=function(){return function(a,b,d,e){switch(arguments.length){case 3:var f=Cd.call(k,this.a,this.b,d);return 0>f?k:G.call(k,d,this.a[f])?V([this.a[f],this.a[f+1]]):k;case 4:return f=Cd.call(k,this.a,this.b,d),0>f?e:G.call(k,d,this.a[f])?V([this.a[f],this.a[f+1]]):e}c("Invalid arity: "+arguments.length)}}();o.wa=function(){return zd.call(k,this.a)};
o.ga=function(){return function(a,b,d){switch(arguments.length){case 1:var e;a===this.j?e=this:(e=x.call(k,2*(this.b+1)),xb.call(k,this.a,0,e,0,2*this.b),e=new Dd(a,this.Y,this.b,e));return e;case 3:return a===this.j?(this.a=d,this.b=b,e=this):e=new Dd(this.j,this.Y,b,d),e}c("Invalid arity: "+arguments.length)}}();
o.P=function(a,b,d,e,f,h){if(d===this.Y){b=Cd.call(k,this.a,this.b,e);if(-1===b){if(this.a.length>2*this.b)return a=ud.call(k,this,a,2*this.b,e,2*this.b+1,f),h[0]=g,a.b+=1,a;b=this.a.length;d=x.call(k,b+2);xb.call(k,this.a,0,d,0,b);d[b]=e;d[b+1]=f;h[0]=g;return this.ga(a,this.b+1,d)}return this.a[b+1]===f?this:ud.call(k,this,a,b+1,f)}return(new vd(a,1<<(this.Y>>>b&31),[k,this,k,k])).P(a,b,d,e,f,h)};
var yd=function(){function a(a,b,d,i,j,p,t){var T=O.call(k,d);if(T===j)return new Dd(k,T,2,[d,i,p,t]);var M=[l];return wd.P(a,b,T,d,i,M).P(a,b,j,p,t,M)}function b(a,b,d,i,j,p){var t=O.call(k,b);if(t===i)return new Dd(k,t,2,[b,d,j,p]);var T=[l];return wd.O(a,t,b,d,T).O(a,i,j,p,T)}var d=k,d=function(d,f,h,i,j,p,t){switch(arguments.length){case 6:return b.call(this,d,f,h,i,j,p);case 7:return a.call(this,d,f,h,i,j,p,t)}c("Invalid arity: "+arguments.length)};d.Pa=b;d.Ra=a;return d}();
function Ed(a,b,d,e,f){this.d=a;this.ca=b;this.C=d;this.A=e;this.g=f}o=Ed.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.M=g;o.s=function(a,b){return I.call(k,b,a)};o.toString=function(){return J.call(k,this)};o.w=aa();o.X=g;o.R=function(){return this.A===k?V([this.ca[this.C],this.ca[this.C+1]]):E.call(k,this.A)};o.S=function(){return this.A===k?zd.call(k,this.ca,this.C+2,k):zd.call(k,this.ca,this.C,D.call(k,this.A))};o.l=function(a,b){return db.call(k,a,b)};
o.z=function(a,b){return new Ed(b,this.ca,this.C,this.A,this.g)};o.t=g;o.u=m("d");o.F=function(){return N.call(k,Wb,this.d)};
var zd=function(){function a(a,b,d){if(d===k)for(d=a.length;;)if(b<d){if(k!=a[b])return new Ed(k,a,b,k,k);var i=a[b+1];if(u(i)&&(i=i.wa(),u(i)))return new Ed(k,a,b+2,i,k);b+=2}else return k;else return new Ed(k,a,b,d,k)}function b(a){return d.call(k,a,0,k)}var d=k,d=function(d,f,h){switch(arguments.length){case 1:return b.call(this,d);case 3:return a.call(this,d,f,h)}c("Invalid arity: "+arguments.length)};d.n=b;d.i=a;return d}();
function Fd(a,b,d,e,f){this.d=a;this.ca=b;this.C=d;this.A=e;this.g=f}o=Fd.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.M=g;o.s=function(a,b){return I.call(k,b,a)};o.toString=function(){return J.call(k,this)};o.w=aa();o.X=g;o.R=function(){return E.call(k,this.A)};o.S=function(){return Bd.call(k,k,this.ca,this.C,D.call(k,this.A))};o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return new Fd(b,this.ca,this.C,this.A,this.g)};o.t=g;o.u=m("d");
o.F=function(){return N.call(k,Wb,this.d)};var Bd=function(){function a(a,b,d,i){if(i===k)for(i=b.length;;)if(d<i){var j=b[d];if(u(j)&&(j=j.wa(),u(j)))return new Fd(a,b,d+1,j,k);d+=1}else return k;else return new Fd(a,b,d,i,k)}function b(a){return d.call(k,k,a,0,k)}var d=k,d=function(d,f,h,i){switch(arguments.length){case 1:return b.call(this,d);case 4:return a.call(this,d,f,h,i)}c("Invalid arity: "+arguments.length)};d.n=b;d.T=a;return d}();
function Gd(a,b,d,e,f,h){this.d=a;this.b=b;this.root=d;this.I=e;this.K=f;this.g=h}o=Gd.prototype;o.Aa=g;o.sa=function(){return new Hd({},this.root,this.b,this.I,this.K)};o.p=function(a){var b=this.g;return b!=k?b:this.g=a=Rb.call(k,a)};o.G=function(a,b){return B.call(k,a,b,k)};o.H=function(a,b,d){return b===k?u(this.I)?this.K:d:this.root===k?d:jb.call(k,this.root.V(0,O.call(k,b),b,[k,d]),1)};
o.N=function(a,b,d){if(b===k){var e=this.I;return u(u(e)?d===this.K:e)?a:new Gd(this.d,u(this.I)?this.b:this.b+1,this.root,g,d,k)}e=[l];d=(this.root===k?wd:this.root).O(0,O.call(k,b),b,d,e);return d===this.root?a:new Gd(this.d,u(e[0])?this.b+1:this.b,d,this.I,this.K,k)};o.ia=function(a,b){return b===k?this.I:this.root===k?l:L.call(k,this.root.V(0,O.call(k,b),b,zb)===zb)};
o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.s=function(a,b){return tb.call(k,b)?xa.call(k,a,A.call(k,b,0),A.call(k,b,1)):R.call(k,z,a,b)};o.toString=function(){return J.call(k,this)};o.w=function(){if(0<this.b){var a=k!=this.root?this.root.wa():k;return u(this.I)?I.call(k,V([k,this.K]),a):a}return k};
o.o=m("b");o.l=function(a,b){return $c.call(k,a,b)};o.z=function(a,b){return new Gd(b,this.b,this.root,this.I,this.K,this.g)};o.t=g;o.u=m("d");o.F=function(){return Ja.call(k,ed,this.d)};o.fa=g;o.ba=function(a,b){if(b===k)return u(this.I)?new Gd(this.d,this.b-1,this.root,l,k,k):a;if(this.root===k)return a;var d=this.root.xa(0,O.call(k,b),b);return d===this.root?a:new Gd(this.d,this.b-1,d,this.I,this.K,k)};var ed=new Gd(k,0,k,l,k,0);
function Hd(a,b,d,e,f){this.j=a;this.root=b;this.B=d;this.I=e;this.K=f}o=Hd.prototype;o.Ea=function(a,b,d){return Id(a,b,d)};o.ta=function(a,b){var d;a:if(u(a.j)){var e;u(b)?(e=b.Ba,e=u(e)?L.call(k,b.hasOwnProperty("cljs$core$IMapEntry$")):e):e=b;e=u(e)?g:qa.call(k,Aa,b);if(u(e))d=Id(a,Sb.call(k,b),Tb.call(k,b));else{e=K.call(k,b);for(var f=a;;){var h=E.call(k,e);if(u(h))e=D.call(k,e),f=Id(f,Sb.call(k,h),Tb.call(k,h));else{d=f;break a}}}}else c(Error("conj! after persistent"));return d};
o.ua=function(a){var b;u(a.j)?(a.j=k,b=new Gd(k,a.B,a.root,a.I,a.K,k)):c(Error("persistent! called twice"));return b};o.G=function(a,b){return b===k?u(this.I)?this.K:k:this.root===k?k:jb.call(k,this.root.V(0,O.call(k,b),b),1)};o.H=function(a,b,d){return b===k?u(this.I)?this.K:d:this.root===k?d:jb.call(k,this.root.V(0,O.call(k,b),b,d),1)};o.o=function(){if(u(this.j))return this.B;c(Error("count after persistent!"))};
function Id(a,b,d){if(u(a.j)){if(b===k){if(a.K!==d)a.K=d;if(!u(a.I))a.B+=1,a.I=g}else{var e=[l],b=(a.root===k?wd:a.root).P(a.j,0,O.call(k,b),b,d,e);if(b!==a.root)a.root=b;u(e[0])&&(a.B+=1)}return a}c(Error("assoc! after persistent!"))}function Jd(a,b,d){for(var e=b;;)if(a!=k)b=u(d)?a.left:a.right,e=hb.call(k,e,a),a=b;else return e}function Kd(a,b,d,e,f){this.d=a;this.stack=b;this.za=d;this.b=e;this.g=f}o=Kd.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.M=g;
o.s=function(a,b){return I.call(k,b,a)};o.toString=function(){return J.call(k,this)};o.w=aa();o.o=function(a){return 0>this.b?ib.call(k,D.call(k,a))+1:this.b};o.X=g;o.R=function(){return ob.call(k,this.stack)};o.S=function(){var a=ob.call(k,this.stack),a=Jd.call(k,u(this.za)?a.right:a.left,pb.call(k,this.stack),this.za);return a!=k?new Kd(k,a,this.za,this.b-1,k):k};o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return new Kd(b,this.stack,this.za,this.b,this.g)};o.t=g;o.u=m("d");
function Ld(a,b,d){return new Kd(k,Jd.call(k,a,k,b),b,d,k)}function Md(a,b,d,e){return Q.call(k,X,d)?Q.call(k,X,d.left)?new X(d.key,d.e,d.left.W(),new Y(a,b,d.right,e,k),k):Q.call(k,X,d.right)?new X(d.right.key,d.right.e,new Y(d.key,d.e,d.left,d.right.left,k),new Y(a,b,d.right.right,e,k),k):new Y(a,b,d,e,k):new Y(a,b,d,e,k)}
function Nd(a,b,d,e){return Q.call(k,X,e)?Q.call(k,X,e.right)?new X(e.key,e.e,new Y(a,b,d,e.left,k),e.right.W(),k):Q.call(k,X,e.left)?new X(e.left.key,e.left.e,new Y(a,b,d,e.left.left,k),new Y(e.key,e.e,e.left.right,e.right,k),k):new Y(a,b,d,e,k):new Y(a,b,d,e,k)}
function Od(a,b,d,e){if(Q.call(k,X,d))return new X(a,b,d.W(),e,k);if(Q.call(k,Y,e))return Nd.call(k,a,b,d,e.ya());var f=Q.call(k,X,e);if(f?Q.call(k,Y,e.left):f)return new X(e.left.key,e.left.e,new Y(a,b,d,e.left.left,k),Nd.call(k,e.key,e.e,e.left.right,e.right.ya()),k);c(Error("red-black tree invariant violation"))}
function Pd(a,b,d,e){if(Q.call(k,X,e))return new X(a,b,d,e.W(),k);if(Q.call(k,Y,d))return Md.call(k,a,b,d.ya(),e);var f=Q.call(k,X,d);if(f?Q.call(k,Y,d.right):f)return new X(d.right.key,d.right.e,Md.call(k,d.key,d.e,d.left.ya(),d.right.left),new Y(a,b,d.right.right,e,k),k);c(Error("red-black tree invariant violation"))}function Y(a,b,d,e,f){this.key=a;this.e=b;this.left=d;this.right=e;this.g=f}o=Y.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};
o.G=function(a,b){return A.call(k,a,b,k)};o.H=function(a,b,d){return A.call(k,a,b,d)};o.N=function(a,b,d){return lb.call(k,V([this.key,this.e]),b,d)};o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.M=g;o.s=function(a,b){return V([this.key,this.e,b])};o.Ba=g;o.Ca=m("key");o.Da=m("e");o.La=function(a){return a.Na(this)};
o.ya=function(){return new X(this.key,this.e,this.left,this.right,k)};o.replace=function(a,b,d,e){return new Y(a,b,d,e,k)};o.Ka=function(a){return a.Ma(this)};o.Ma=function(a){return new Y(a.key,a.e,this,a.right,k)};o.toString=function(){return function(){switch(arguments.length){case 0:return J.call(k,this)}c("Invalid arity: "+arguments.length)}}();o.Na=function(a){return new Y(a.key,a.e,a.left,this,k)};o.W=function(){return this};o.ja=function(a,b){return b.call(k,this.key,this.e)};
o.ka=function(a,b,d){return b.call(k,b.call(k,d,this.key))};o.w=function(){return H.call(k,this.key,this.e)};o.o=n(2);o.la=m("e");o.ma=function(){return V([this.key])};o.Ia=g;o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return N.call(k,V([this.key,this.e]),b)};o.t=g;o.u=n(k);o.da=function(a,b){return 0===b?this.key:1===b?this.e:k};o.ea=function(a,b,d){return 0===b?this.key:1===b?this.e:d};o.F=function(){return V([])};
function X(a,b,d,e,f){this.key=a;this.e=b;this.left=d;this.right=e;this.g=f}o=X.prototype;o.p=function(a){var b=this.g;return b!=k?b:this.g=a=cb.call(k,a)};o.G=function(a,b){return A.call(k,a,b,k)};o.H=function(a,b,d){return A.call(k,a,b,d)};o.N=function(a,b,d){return lb.call(k,V([this.key,this.e]),b,d)};o.call=function(){return function(a,b,d){switch(arguments.length){case 2:return B.call(k,this,b);case 3:return B.call(k,this,b,d)}c("Invalid arity: "+arguments.length)}}();
o.apply=function(a,b){return a.call.apply(a,[a].concat(w.call(k,b)))};o.M=g;o.s=function(a,b){return V([this.key,this.e,b])};o.Ba=g;o.Ca=m("key");o.Da=m("e");o.La=function(a){return new X(this.key,this.e,this.left,a,k)};o.ya=function(){c(Error("red-black tree invariant violation"))};o.replace=function(a,b,d,e){return new X(a,b,d,e,k)};o.Ka=function(a){return new X(this.key,this.e,a,this.right,k)};
o.Ma=function(a){return Q.call(k,X,this.left)?new X(this.key,this.e,this.left.W(),new Y(a.key,a.e,this.right,a.right,k),k):Q.call(k,X,this.right)?new X(this.right.key,this.right.e,new Y(this.key,this.e,this.left,this.right.left,k),new Y(a.key,a.e,this.right.right,a.right,k),k):new Y(a.key,a.e,this,a.right,k)};o.toString=function(){return function(){switch(arguments.length){case 0:return J.call(k,this)}c("Invalid arity: "+arguments.length)}}();
o.Na=function(a){return Q.call(k,X,this.right)?new X(this.key,this.e,new Y(a.key,a.e,a.left,this.left,k),this.right.W(),k):Q.call(k,X,this.left)?new X(this.left.key,this.left.e,new Y(a.key,a.e,a.left,this.left.left,k),new Y(this.key,this.e,this.left.right,this.right,k),k):new Y(a.key,a.e,a.left,this,k)};o.W=function(){return new Y(this.key,this.e,this.left,this.right,k)};o.ja=function(a,b){return b.call(k,this.key,this.e)};o.ka=function(a,b,d){return b.call(k,b.call(k,d,this.key))};
o.w=function(){return H.call(k,this.key,this.e)};o.o=n(2);o.la=m("e");o.ma=function(){return V([this.key])};o.Ia=g;o.l=function(a,b){return db.call(k,a,b)};o.z=function(a,b){return N.call(k,V([this.key,this.e]),b)};o.t=g;o.u=n(k)