System.register([],function(Di){"use strict";return{execute:function(){Di({compose:lr,pipe:fr});Di("F",function(){return!1});Di("T",function(){return!0});Di("__",{"@@functional/placeholder":!0});function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t){return null!=t&&"object"===s(t)&&!0===t["@@functional/placeholder"]}function o(n){return function t(r){return 0===arguments.length||f(r)?t:n.apply(this,arguments)}}function r(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return f(r)?t:o(function(t){return e(r,t)});default:return f(r)&&f(n)?t:f(r)?o(function(t){return e(t,n)}):f(n)?o(function(t){return e(r,t)}):e(r,n)}}}var t=r(function(t,r){return+t+ +r});function a(t,r){var n,e=(t=t||[]).length,u=(r=r||[]).length,i=[];for(n=0;n<e;)i[i.length]=t[n],n+=1;for(n=0;n<u;)i[i.length]=r[n],n+=1;return i}function l(t,s){switch(t){case 0:return function(){return s.apply(this,arguments)};case 1:return function(t){return s.apply(this,arguments)};case 2:return function(t,r){return s.apply(this,arguments)};case 3:return function(t,r,n){return s.apply(this,arguments)};case 4:return function(t,r,n,e){return s.apply(this,arguments)};case 5:return function(t,r,n,e,u){return s.apply(this,arguments)};case 6:return function(t,r,n,e,u,i){return s.apply(this,arguments)};case 7:return function(t,r,n,e,u,i,o){return s.apply(this,arguments)};case 8:return function(t,r,n,e,u,i,o,a){return s.apply(this,arguments)};case 9:return function(t,r,n,e,u,i,o,a,c){return s.apply(this,arguments)};case 10:return function(t,r,n,e,u,i,o,a,c,f){return s.apply(this,arguments)};default:throw Error("First argument to _arity must be a non-negative integer no greater than ten")}}function p(o,a,c){return function(){for(var t=[],r=0,n=o,e=0,u=!1;e<a.length||r<arguments.length;){var i;a.length<=e||f(a[e])&&r<arguments.length?(i=arguments[r],r+=1):i=a[e],f(t[e]=i)?u=!0:n-=1,e+=1}return u||0<n?l(Math.max(0,n),p(o,t,c)):c.apply(this,t)}}Di("add",t);var c=r(function(t,r){return 1===t?o(r):l(t,p(t,[],r))});Di("curryN",c);var n=o(function(u){return c(u.length,function(){var r=0,n=arguments[0],e=arguments[arguments.length-1],t=Array.prototype.slice.call(arguments,0);return t[0]=function(){var t=n.apply(this,a(arguments,[r,e]));return r+=1,t},u.apply(this,t)})});Di("addIndex",n);var e=o(function(u){return c(u.length,function(){var r=arguments[0],n=arguments[arguments.length-1],e=n.length-1,t=Array.prototype.slice.call(arguments,0);return t[0]=function(){var t=r.apply(this,a(arguments,[e,n]));return e-=1,t},u.apply(this,t)})});function u(i){return function t(n,e,u){switch(arguments.length){case 0:return t;case 1:return f(n)?t:r(function(t,r){return i(n,t,r)});case 2:return f(n)&&f(e)?t:f(n)?r(function(t,r){return i(t,e,r)}):f(e)?r(function(t,r){return i(n,t,r)}):o(function(t){return i(n,e,t)});default:return f(n)&&f(e)&&f(u)?t:f(n)&&f(e)?r(function(t,r){return i(t,r,u)}):f(n)&&f(u)?r(function(t,r){return i(t,e,r)}):f(e)&&f(u)?r(function(t,r){return i(n,t,r)}):f(n)?o(function(t){return i(t,e,u)}):f(e)?o(function(t){return i(n,t,u)}):f(u)?o(function(t){return i(n,e,t)}):i(n,e,u)}}}Di("addIndexRight",e);var i=u(function(t,r,n){var e=n.length;if(e<=t||t<-e)return n;var u=(e+t)%e,i=a(n);return i[u]=r(n[u]),i});Di("adjust",i);var h=Array.isArray||function(t){return null!=t&&0<=t.length&&"[object Array]"===Object.prototype.toString.call(t)};function v(t){return null!=t&&"function"==typeof t["@@transducer/step"]}function y(n,e,u){return function(){if(0===arguments.length)return u();var t=arguments[arguments.length-1];if(!h(t)){for(var r=0;r<n.length;){if("function"==typeof t[n[r]])return t[n[r]].apply(t,Array.prototype.slice.call(arguments,0,-1));r+=1}if(v(t))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(t)}return u.apply(this,arguments)}}function d(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}var g=function(){return this.xf["@@transducer/init"]()},m=function(t){return this.xf["@@transducer/result"](t)};function b(t,r){this.xf=r,this.f=t,this.all=!0}b.prototype["@@transducer/init"]=g,b.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},b.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=d(this.xf["@@transducer/step"](t,!1))),t};var x=r(y(["all"],function(r){return function(t){return new b(r,t)}},function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));function w(t){for(var r,n=[];!(r=t.next()).done;)n.push(r.value);return n}function j(t,r,n){for(var e=0,u=n.length;e<u;){if(t(r,n[e]))return!0;e+=1}return!1}function A(t,r){return Object.prototype.hasOwnProperty.call(r,t)}Di("all",x);function O(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1}var S="function"==typeof Object.is?Object.is:function(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r},E=Object.prototype.toString,_=function(){return"[object Arguments]"===E.call(arguments)?function(t){return"[object Arguments]"===E.call(t)}:function(t){return A("callee",t)}}(),I=!{toString:null}.propertyIsEnumerable("toString"),N=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),W=o("function"!=typeof Object.keys||k?function(t){if(Object(t)!==t)return[];var r,n,e=[],u=k&&_(t);for(r in t)!A(r,t)||u&&"length"===r||(e[e.length]=r);if(I)for(n=N.length-1;0<=n;)A(r=N[n],t)&&!O(e,r)&&(e[e.length]=r),n-=1;return e}:function(t){return Object(t)!==t?[]:Object.keys(t)});Di("keys",W);var q=o(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function U(t,r,n,e){var u=w(t);function i(t,r){return F(t,r,n.slice(),e.slice())}return!j(function(t,r){return!j(i,r,t)},w(r),u)}function F(t,r,n,e){if(S(t,r))return!0;var u=q(t);if(u!==q(r))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof r["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](r)&&"function"==typeof r["fantasy-land/equals"]&&r["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof r.equals)return"function"==typeof t.equals&&t.equals(r)&&"function"==typeof r.equals&&r.equals(t);switch(u){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===function(t){var r=(t+"").match(/^function (\w*)/);return null==r?"":r[1]}(t.constructor))return t===r;break;case"Boolean":case"Number":case"String":if(s(t)!==s(r)||!S(t.valueOf(),r.valueOf()))return!1;break;case"Date":if(!S(t.valueOf(),r.valueOf()))return!1;break;case"Error":return t.name===r.name&&t.message===r.message;case"RegExp":if(t.source!==r.source||t.global!==r.global||t.ignoreCase!==r.ignoreCase||t.multiline!==r.multiline||t.sticky!==r.sticky||t.unicode!==r.unicode)return!1}for(var i=n.length-1;0<=i;){if(n[i]===t)return e[i]===r;i-=1}switch(u){case"Map":return t.size===r.size&&U(t.entries(),r.entries(),n.concat([t]),e.concat([r]));case"Set":return t.size===r.size&&U(t.values(),r.values(),n.concat([t]),e.concat([r]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=W(t);if(o.length!==W(r).length)return!1;var a=n.concat([t]),c=e.concat([r]);for(i=o.length-1;0<=i;){var f=o[i];if(!A(f,r)||!F(r[f],t[f],a,c))return!1;i-=1}return!0}Di("type",q);var B=r(function(t,r){return F(t,r,[],[])});function P(t,r,n){var e,u;if("function"==typeof t.indexOf)switch(s(r)){case"number":if(0===r){for(e=1/r;n<t.length;){if(0===(u=t[n])&&1/u==e)return n;n+=1}return-1}if(r==r)return t.indexOf(r,n);for(;n<t.length;){if("number"==typeof(u=t[n])&&u!=u)return n;n+=1}return-1;case"string":case"boolean":case"function":case"undefined":return t.indexOf(r,n);case"object":if(null===r)return t.indexOf(r,n)}for(;n<t.length;){if(B(t[n],r))return n;n+=1}return-1}function C(t,r){return 0<=P(r,t,0)}function T(t,r){for(var n=0,e=r.length,u=Array(e);n<e;)u[n]=t(r[n]),n+=1;return u}function R(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}Di("equals",B);function M(t){return(t<10?"0":"")+t}var D="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+M(1+t.getUTCMonth())+"-"+M(t.getUTCDate())+"T"+M(t.getUTCHours())+":"+M(t.getUTCMinutes())+":"+M(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function z(t){return function(){return!t.apply(this,arguments)}}function L(t,r,n){for(var e=0,u=n.length;e<u;)r=t(r,n[e]),e+=1;return r}function V(t,r){for(var n=0,e=r.length,u=[];n<e;)t(r[n])&&(u[u.length]=r[n]),n+=1;return u}function G(t){return"[object Object]"===Object.prototype.toString.call(t)}function K(t,r){this.xf=r,this.f=t}K.prototype["@@transducer/init"]=g,K.prototype["@@transducer/result"]=m,K.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t};var $=r(y(["fantasy-land/filter","filter"],function(r){return function(t){return new K(r,t)}},function(n,e){return G(e)?L(function(t,r){return n(e[r])&&(t[r]=e[r]),t},{},W(e)):V(n,e)}));Di("filter",$);var H=r(function(t,r){return $(z(t),r)});function J(n,e){function u(t){var r=e.concat([n]);return C(t,r)?"<Circular>":J(t,r)}function t(r,t){return T(function(t){return R(t)+": "+u(r[t])},t.slice().sort())}switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+T(u,n).join(", ")+"))";case"[object Array]":return"["+T(u,n).concat(t(n,H(function(t){return/^\d+$/.test(t)},W(n)))).join(", ")+"]";case"[object Boolean]":return"object"===s(n)?"new Boolean("+u(n.valueOf())+")":""+n;case"[object Date]":return"new Date("+(isNaN(n.valueOf())?u(NaN):R(D(n)))+")";case"[object Map]":return"new Map("+u(Array.from(n))+")";case"[object Null]":return"null";case"[object Number]":return"object"===s(n)?"new Number("+u(n.valueOf())+")":1/n==-1/0?"-0":n.toString(10);case"[object Set]":return"new Set("+u(Array.from(n).sort())+")";case"[object String]":return"object"===s(n)?"new String("+u(n.valueOf())+")":R(n);case"[object Undefined]":return"undefined";default:if("function"==typeof n.toString){var r=""+n;if("[object Object]"!=r)return r}return"{"+t(n,W(n)).join(", ")+"}"}}Di("reject",H);var X=o(function(t){return J(t,[])});Di("toString",X);var Y=r(function(t,r){if(t===r)return r;function n(t,r){if(r<t!=t<r)return t<r?r:t}var e=n(t,r);if(void 0!==e)return e;var u=n(s(t),s(r));if(void 0!==u)return u===s(t)?t:r;var i=X(t),o=n(i,X(r));return void 0!==o&&o===i?t:r});function Z(t,r){this.xf=r,this.f=t}Di("max",Y),Z.prototype["@@transducer/init"]=g,Z.prototype["@@transducer/result"]=m,Z.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))};function Q(r){return function(t){return new Z(r,t)}}var tt=r(y(["fantasy-land/map","map"],Q,function(n,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return c(e.length,function(){return n.call(this,e.apply(this,arguments))});case"[object Object]":return L(function(t,r){return t[r]=n(e[r]),t},{},W(e));default:return T(n,e)}}));Di("map",tt);var rt=Number.isInteger||function(t){return t<<0===t};function nt(t){return"[object String]"===Object.prototype.toString.call(t)}function et(t,r){var n=t<0?r.length+t:t;return nt(r)?r[0|n]:r[n]}var ut=r(function(t,r){if(null!=r)return rt(t)?et(t,r):r[t]});Di("prop",ut);var it=r(function(t,r){return tt(ut(t),r)});Di("pluck",it);var ot=o(function(t){return!!h(t)||!!t&&("object"===s(t)&&(!nt(t)&&(0===t.length||0<t.length&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}),at="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ct(e,u,i){return function(t,r,n){if(ot(n))return e(t,r,n);if(null==n)return r;if("function"==typeof n["fantasy-land/reduce"])return u(t,r,n,"fantasy-land/reduce");if(null!=n[at])return i(t,r,n[at]());if("function"==typeof n.next)return i(t,r,n);if("function"==typeof n.reduce)return u(t,r,n,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ft(t,r,n){for(var e=0,u=n.length;e<u;){if((r=t["@@transducer/step"](r,n[e]))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}e+=1}return t["@@transducer/result"](r)}var st=r(function(t,r){return l(t.length,function(){return t.apply(r,arguments)})});Di("bind",st);var lt=ct(ft,function(t,r,n,e){return t["@@transducer/result"](n[e](st(t["@@transducer/step"],t),r))},function(t,r,n){for(var e=n.next();!e.done;){if((r=t["@@transducer/step"](r,e.value))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}e=n.next()}return t["@@transducer/result"](r)});function pt(t){this.f=t}function ht(t){return new pt(t)}pt.prototype["@@transducer/init"]=function(){throw Error("init not implemented on XWrap")},pt.prototype["@@transducer/result"]=function(t){return t},pt.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)};var vt=u(function(t,r,n){return lt("function"==typeof t?ht(t):t,r,n)});Di("reduce",vt);var yt=o(function(n){return c(vt(Y,0,it("length",n)),function(){for(var t=0,r=n.length;t<r;){if(!n[t].apply(this,arguments))return!1;t+=1}return!0})});Di("allPass",yt);var dt=o(function(t){return function(){return t}});Di("always",dt);var gt=r(function(t,r){return t&&r});function mt(t,r){this.xf=r,this.f=t,this.any=!1}Di("and",gt),mt.prototype["@@transducer/init"]=g,mt.prototype["@@transducer/result"]=function(t){return this.any||(t=this.xf["@@transducer/step"](t,!1)),this.xf["@@transducer/result"](t)},mt.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.any=!0,t=d(this.xf["@@transducer/step"](t,!0))),t};var bt=r(y(["any"],function(r){return function(t){return new mt(r,t)}},function(t,r){for(var n=0;n<r.length;){if(t(r[n]))return!0;n+=1}return!1}));Di("any",bt);var xt=o(function(n){return c(vt(Y,0,it("length",n)),function(){for(var t=0,r=n.length;t<r;){if(n[t].apply(this,arguments))return!0;t+=1}return!1})});Di("anyPass",xt);var wt=ct(L,function(t,r,n,e){return n[e](t,r)},function(t,r,n){for(var e=n.next();!e.done;)r=t(r,e.value),e=n.next();return r}),jt=r(function(r,n){return"function"==typeof n["fantasy-land/ap"]?n["fantasy-land/ap"](r):"function"==typeof r.ap?r.ap(n):"function"==typeof r?function(t){return r(t)(n(t))}:wt(function(t,r){return a(t,tt(r,n))},[],r)});function At(t,r){this.xf=r,this.pos=0,this.full=!1,this.acc=Array(t)}Di("ap",jt),At.prototype["@@transducer/init"]=g,At.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},At.prototype["@@transducer/step"]=function(t,r){return this.store(r),this.full?this.xf["@@transducer/step"](t,this.getCopy()):t},At.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},At.prototype.getCopy=function(){return a(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))};var Ot=r(y([],function(r){return function(t){return new At(r,t)}},function(t,r){for(var n=0,e=r.length-(t-1),u=Array(e<0?0:e);n<e;)u[n]=Array.prototype.slice.call(r,n,n+t),n+=1;return u}));Di("aperture",Ot);var St=r(function(t,r){return a(r,[t])});Di("append",St);var Et=r(function(t,r){return t.apply(this,r)});Di("apply",Et);var _t=o(function(t){for(var r=W(t),n=r.length,e=[],u=0;u<n;)e[u]=t[r[u]],u+=1;return e});function It(n,e){return h(e)?e.map(n):W(e).reduce(function(t,r){return t[r]=n(e[r]),t},{})}Di("values",_t);var Nt=o(function r(t){return t=It(function(t){return"function"==typeof t?t:r(t)},t),c(vt(Y,0,it("length",_t(t))),function(){var r=arguments;return It(function(t){return Et(t,r)},t)})});Di("applySpec",Nt);var kt=r(function(t,r){return r(t)});Di("applyTo",kt);var Wt=u(function(t,r,n){var e=t(r),u=t(n);return e<u?-1:u<e?1:0});function qt(t,r,n){if(rt(t)&&h(n)){var e=[].concat(n);return e[t]=r,e}var u={};for(var i in n)u[i]=n[i];return u[t]=r,u}Di("ascend",Wt);var Ut=o(function(t){return null==t});Di("isNil",Ut);var Ft=u(function t(r,n,e){if(0===r.length)return n;var u=r[0];if(1<r.length){var i=!Ut(e)&&A(u,e)&&"object"===s(e[u])?e[u]:rt(r[1])?[]:{};n=t(Array.prototype.slice.call(r,1),n,i)}return qt(u,n,e)});Di("assocPath",Ft);var Bt=u(function(t,r,n){return Ft([t],r,n)});Di("assoc",Bt);var Pt=r(function(t,s){switch(t){case 0:return function(){return s.call(this)};case 1:return function(t){return s.call(this,t)};case 2:return function(t,r){return s.call(this,t,r)};case 3:return function(t,r,n){return s.call(this,t,r,n)};case 4:return function(t,r,n,e){return s.call(this,t,r,n,e)};case 5:return function(t,r,n,e,u){return s.call(this,t,r,n,e,u)};case 6:return function(t,r,n,e,u,i){return s.call(this,t,r,n,e,u,i)};case 7:return function(t,r,n,e,u,i,o){return s.call(this,t,r,n,e,u,i,o)};case 8:return function(t,r,n,e,u,i,o,a){return s.call(this,t,r,n,e,u,i,o,a)};case 9:return function(t,r,n,e,u,i,o,a,c){return s.call(this,t,r,n,e,u,i,o,a,c)};case 10:return function(t,r,n,e,u,i,o,a,c,f){return s.call(this,t,r,n,e,u,i,o,a,c,f)};default:throw Error("First argument to nAry must be a non-negative integer no greater than ten")}});Di("nAry",Pt);var Ct=o(function(t){return Pt(2,t)});function Tt(t){var r=Object.prototype.toString.call(t);return"[object Function]"===r||"[object AsyncFunction]"===r||"[object GeneratorFunction]"===r||"[object AsyncGeneratorFunction]"===r}Di("binary",Ct);var Rt=r(function(t,r){var n=c(t,r);return c(t,function(){return L(jt,tt(n,arguments[0]),Array.prototype.slice.call(arguments,1))})});Di("liftN",Rt);var Mt=o(function(t){return Rt(t.length,t)});Di("lift",Mt);var Dt=r(function(t,r){return Tt(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:Mt(gt)(t,r)});Di("both",Dt);var zt=o(function(t){return t.apply(this,Array.prototype.slice.call(arguments,1))});function Lt(c){return function t(r){for(var n,e,u,i=[],o=0,a=r.length;o<a;){if(ot(r[o]))for(u=0,e=(n=c?t(r[o]):r[o]).length;u<e;)i[i.length]=n[u],u+=1;else i[i.length]=r[o];o+=1}return i}}Di("call",zt);var Vt="@@transducer/init",Gt="@@transducer/step",Kt="@@transducer/result";function $t(t){this.xf=t}function Ht(t){this.xf=new $t(t)}$t.prototype[Vt]=g,$t.prototype[Kt]=m,$t.prototype[Gt]=function(t,r){var n=this.xf[Gt](t,r);return n["@@transducer/reduced"]?function(t){return{"@@transducer/value":t,"@@transducer/reduced":!0}}(n):n},Ht.prototype[Vt]=g,Ht.prototype[Kt]=m,Ht.prototype[Gt]=function(t,r){return ot(r)?lt(this.xf,t,r):ft(this.xf,t,[r])};var Jt=r(y(["fantasy-land/chain","chain"],function(r){return function(t){return Q(r)(function(t){return new Ht(t)}(t))}},function(r,n){return"function"==typeof n?function(t){return r(n(t))(t)}:Lt(!1)(tt(r,n))}));Di("chain",Jt);var Xt=u(function(t,r,n){if(r<t)throw Error("min must not be greater than max in clamp(min, max, value)");return n<t?t:r<n?r:n});function Yt(t){return RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function Zt(e,u,i){if(i||(i=new Qt),function(t){var r=s(t);return null==t||"object"!=r&&"function"!=r}(e))return e;function t(t){var r=i.get(e);if(r)return r;for(var n in i.set(e,t),e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=u?Zt(e[n],!0,i):e[n]);return t}switch(q(e)){case"Object":return t(Object.create(Object.getPrototypeOf(e)));case"Array":return t([]);case"Date":return new Date(e.valueOf());case"RegExp":return Yt(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}function Qt(){this.map={},this.length=0}Di("clamp",Xt),Qt.prototype.set=function(t,r){var n=this.hash(t),e=this.map[n];e||(this.map[n]=e=[]),e.push([t,r]),this.length+=1},Qt.prototype.hash=function(t){var r=[];for(var n in t)r.push(Object.prototype.toString.call(t[n]));return r.join()},Qt.prototype.get=function(t){if(180<this.length){var r=this.hash(t),n=this.map[r];if(n)for(var e=0;e<n.length;e+=1){var u=n[e];if(u[0]===t)return u[1]}}else for(var i in this.map)for(var o=this.map[i],a=0;a<o.length;a+=1){var c=o[a];if(c[0]===t)return c[1]}};var tr=o(function(t){return null!=t&&"function"==typeof t.clone?t.clone():Zt(t,!0)});Di("clone",tr);var rr=r(function(e,t){var r=wt(function(t,r){var n=e(r);return void 0===t[n]&&(t[n]=[]),t[n].push(r),t},{},t),n=[];for(var u in r)n.push(r[u]);return n});Di("collectBy",rr);var nr=o(function(n){return function(t,r){return n(t,r)?-1:n(r,t)?1:0}});Di("comparator",nr);var er=o(function(t){return!t});Di("not",er);var ur=Mt(er);function ir(t,r){return function(){return r.call(this,t.apply(this,arguments))}}function or(n,e){return function(){var t=arguments.length;if(0===t)return e();var r=arguments[t-1];return h(r)||"function"!=typeof r[n]?e.apply(this,arguments):r[n].apply(r,Array.prototype.slice.call(arguments,0,t-1))}}Di("complement",ur);var ar=u(or("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)}));Di("slice",ar);var cr=o(or("tail",ar(1,1/0)));function fr(){if(0===arguments.length)throw Error("pipe requires at least one argument");return l(arguments[0].length,vt(ir,arguments[0],cr(arguments)))}Di("tail",cr);var sr=o(function(t){return nt(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()});function lr(){if(0===arguments.length)throw Error("compose requires at least one argument");return fr.apply(this,sr(arguments))}Di("reverse",sr);var pr=o(function(t){return et(0,t)});function hr(t){return t}Di("head",pr);var vr=o(hr);Di("identity",vr);var yr=r(function(n,t){if(t.length<=0)return vr;var r=pr(t),e=cr(t);return l(r.length,function(){return wt(function(t,r){return n.call(this,r,t)},r.apply(this,arguments),e)})});Di("pipeWith",yr);var dr=r(function(t,r){return yr.call(this,t,sr(r))});Di("composeWith",dr);var gr=r(function(t,r){if(h(t)){if(h(r))return t.concat(r);throw new TypeError(X(r)+" is not an array")}if(nt(t)){if(nt(r))return t+r;throw new TypeError(X(r)+" is not a string")}if(null!=t&&Tt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](r);if(null!=t&&Tt(t.concat))return t.concat(r);throw new TypeError(X(t)+' does not have a method named "concat" or "fantasy-land/concat"')});Di("concat",gr);var mr=o(function(r){return l(vt(Y,0,tt(function(t){return t[0].length},r)),function(){for(var t=0;t<r.length;){if(r[t][0].apply(this,arguments))return r[t][1].apply(this,arguments);t+=1}})});Di("cond",mr);var br=o(function(t){return c(t.length,t)});Di("curry",br);var xr=r(function(s,l){if(10<s)throw Error("Constructor with greater than ten arguments");return 0===s?function(){return new l}:br(Pt(s,function(t,r,n,e,u,i,o,a,c,f){switch(s){case 1:return new l(t);case 2:return new l(t,r);case 3:return new l(t,r,n);case 4:return new l(t,r,n,e);case 5:return new l(t,r,n,e,u);case 6:return new l(t,r,n,e,u,i);case 7:return new l(t,r,n,e,u,i,o);case 8:return new l(t,r,n,e,u,i,o,a);case 9:return new l(t,r,n,e,u,i,o,a,c);case 10:return new l(t,r,n,e,u,i,o,a,c,f)}}))});Di("constructN",xr);var wr=o(function(t){return xr(t.length,t)});Di("construct",wr);var jr=r(function(t,e){return c(vt(Y,0,it("length",e)),function(){var r=arguments,n=this;return t.apply(n,T(function(t){return t.apply(n,r)},e))})});Di("converge",jr);var Ar=br(function(n,t){return wt(function(t,r){return n(r)?t+1:t},0,t)});function Or(t,r,n,e){this.valueFn=t,this.valueAcc=r,this.keyFn=n,this.xf=e,this.inputs={}}Di("count",Ar),Or.prototype["@@transducer/init"]=g,Or.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(A(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},Or.prototype["@@transducer/step"]=function(t,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,Zt(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t};var Sr=p(4,[],y([],function(r,n,e){return function(t){return new Or(r,n,e,t)}},function(u,i,o,t){var r=ht(function(t,r){var n=o(r),e=u(A(n,t)?t[n]:Zt(i,!1),r);return e&&e["@@transducer/reduced"]?d(t):(t[n]=e,t)});return lt(r,{},t)}));Di("reduceBy",Sr);var Er=Sr(function(t,r){return t+1},0);Di("countBy",Er);var _r=t(-1);Di("dec",_r);var Ir=r(function(t,r){return null==r||r!=r?t:r});Di("defaultTo",Ir);var Nr=u(function(t,r,n){var e=t(r),u=t(n);return u<e?-1:e<u?1:0});function kr(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}function Wr(t,r,n){var e,u=s(t);switch(u){case"string":case"number":return 0===t&&1/t==-1/0?!!n._items["-0"]||(r&&(n._items["-0"]=!0),!1):null!==n._nativeSet?r?(e=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===e):n._nativeSet.has(t):u in n._items?t in n._items[u]||(r&&(n._items[u][t]=!0),!1):(r&&(n._items[u]={},n._items[u][t]=!0),!1);case"boolean":if(u in n._items){var i=t?1:0;return!!n._items[u][i]||(r&&(n._items[u][i]=!0),!1)}return r&&(n._items[u]=t?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?r?(e=n._nativeSet.size,n._nativeSet.add(t),n._nativeSet.size===e):n._nativeSet.has(t):u in n._items?!!C(t,n._items[u])||(r&&n._items[u].push(t),!1):(r&&(n._items[u]=[t]),!1);case"undefined":return!!n._items[u]||(r&&(n._items[u]=!0),!1);case"object":if(null===t)return!!n._items.null||(r&&(n._items.null=!0),!1);default:return(u=Object.prototype.toString.call(t))in n._items?!!C(t,n._items[u])||(r&&n._items[u].push(t),!1):(r&&(n._items[u]=[t]),!1)}}Di("descend",Nr),kr.prototype.add=function(t){return!Wr(t,!0,this)},kr.prototype.has=function(t){return Wr(t,!1,this)};var qr=r(function(t,r){for(var n=[],e=0,u=t.length,i=r.length,o=new kr,a=0;a<i;a+=1)o.add(r[a]);for(;e<u;)o.add(t[e])&&(n[n.length]=t[e]),e+=1;return n});Di("difference",qr);var Ur=u(function(t,r,n){for(var e=[],u=0,i=r.length;u<i;)j(t,r[u],n)||j(t,r[u],e)||e.push(r[u]),u+=1;return e});Di("differenceWith",Ur);var Fr=u(function(t,r,n){var e=Array.prototype.slice.call(n,0);return e.splice(t,r),e});Di("remove",Fr);var Br=r(function t(r,n){if(null==n)return n;switch(r.length){case 0:return n;case 1:return function(t,r){if(null==r)return r;if(rt(t)&&h(r))return Fr(t,1,r);var n={};for(var e in r)n[e]=r[e];return delete n[t],n}(r[0],n);default:var e=r[0],u=Array.prototype.slice.call(r,1);return null==n[e]?function(t,r){if(rt(t)&&h(r))return[].concat(r);var n={};for(var e in r)n[e]=r[e];return n}(e,n):Bt(e,t(u,n[e]),n)}});Di("dissocPath",Br);var Pr=r(function(t,r){return Br([t],r)});Di("dissoc",Pr);var Cr=r(function(t,r){return t/r});function Tr(t,r){this.xf=r,this.n=t}Di("divide",Cr),Tr.prototype["@@transducer/init"]=g,Tr.prototype["@@transducer/result"]=m,Tr.prototype["@@transducer/step"]=function(t,r){return 0<this.n?(this.n-=1,t):this.xf["@@transducer/step"](t,r)};var Rr=r(y(["drop"],function(r){return function(t){return new Tr(r,t)}},function(t,r){return ar(Math.max(0,t),1/0,r)}));function Mr(t,r){this.xf=r,this.n=t,this.i=0}Di("drop",Rr),Mr.prototype["@@transducer/init"]=g,Mr.prototype["@@transducer/result"]=m,Mr.prototype["@@transducer/step"]=function(t,r){this.i+=1;var n=0===this.n?t:this.xf["@@transducer/step"](t,r);return this.n<0||this.i<this.n?n:d(n)};var Dr=r(y(["take"],function(r){return function(t){return new Mr(r,t)}},function(t,r){return ar(0,t<0?1/0:t,r)}));function zr(t,r){if(t<=0)return r;this.xf=r,this.pos=0,this.full=!1,this.acc=Array(t)}Di("take",Dr),zr.prototype["@@transducer/init"]=g,zr.prototype["@@transducer/result"]=function(t){return this.acc=null,this.xf["@@transducer/result"](t)},zr.prototype["@@transducer/step"]=function(t,r){return this.full&&(t=this.xf["@@transducer/step"](t,this.acc[this.pos])),this.store(r),t},zr.prototype.store=function(t){this.acc[this.pos]=t,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)};var Lr=r(y([],function(r){return function(t){return new zr(r,t)}},function(t,r){return Dr(t<r.length?r.length-t:0,r)}));function Vr(t,r){this.f=t,this.retained=[],this.xf=r}Di("dropLast",Lr),Vr.prototype["@@transducer/init"]=g,Vr.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},Vr.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},Vr.prototype.flush=function(t,r){return t=lt(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},Vr.prototype.retain=function(t,r){return this.retained.push(r),t};var Gr=r(y([],function(r){return function(t){return new Vr(r,t)}},function(t,r){for(var n=r.length-1;0<=n&&t(r[n]);)n-=1;return ar(0,n+1,r)}));function Kr(t,r){this.xf=r,this.pred=t,this.lastValue=void 0,this.seenFirstValue=!1}function $r(r){return function(t){return new Kr(r,t)}}Di("dropLastWhile",Gr),Kr.prototype["@@transducer/init"]=g,Kr.prototype["@@transducer/result"]=m,Kr.prototype["@@transducer/step"]=function(t,r){var n=!1;return this.seenFirstValue?this.pred(this.lastValue,r)&&(n=!0):this.seenFirstValue=!0,this.lastValue=r,n?t:this.xf["@@transducer/step"](t,r)};var Hr=o(function(t){return et(-1,t)});Di("last",Hr);var Jr=r(y([],$r,function(t,r){var n=[],e=1,u=r.length;if(0!==u)for(n[0]=r[0];e<u;)t(Hr(n),r[e])||(n[n.length]=r[e]),e+=1;return n}));Di("dropRepeatsWith",Jr);var Xr=o(y([],function(){return $r(B)},Jr(B)));Di("dropRepeats",Xr);var Yr=u(function(t,r,n){return B(t(r),t(n))});Di("eqBy",Yr);var Zr=r(function(t,r){return y([],function(){return $r(Yr(t))},Jr(Yr(t)))(r)});function Qr(t,r){this.xf=r,this.f=t}Di("dropRepeatsBy",Zr),Qr.prototype["@@transducer/init"]=g,Qr.prototype["@@transducer/result"]=m,Qr.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)};var tn=r(y(["dropWhile"],function(r){return function(t){return new Qr(r,t)}},function(t,r){for(var n=0,e=r.length;n<e&&t(r[n]);)n+=1;return ar(n,1/0,r)}));Di("dropWhile",tn);var rn=r(function(t,r){return t||r});Di("or",rn);var nn=r(function(t,r){return Tt(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:Mt(rn)(t,r)});Di("either",nn);var en=o(function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():h(t)?[]:nt(t)?"":G(t)?{}:_(t)?function(){return arguments}():function(t){var r=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===r||"[object Int8Array]"===r||"[object Uint8Array]"===r||"[object Int16Array]"===r||"[object Uint16Array]"===r||"[object Int32Array]"===r||"[object Uint32Array]"===r||"[object Float32Array]"===r||"[object Float64Array]"===r||"[object BigInt64Array]"===r||"[object BigUint64Array]"===r}(t)?t.constructor.from(""):void 0});Di("empty",en);var un=r(function(t,r){return Rr(t<0?0:r.length-t,r)});Di("takeLast",un);var on=r(function(t,r){return B(un(t.length,r),t)});Di("endsWith",on);var an=u(function(t,r,n){return B(r[t],n[t])});Di("eqProps",an);var cn=r(function t(r,n){if(!G(n)&&!h(n))return n;var e,u,i,o=n instanceof Array?[]:{};for(u in n)i=s(e=r[u]),o[u]="function"===i?e(n[u]):e&&"object"===i?t(e,n[u]):n[u];return o});function fn(t,r){this.xf=r,this.f=t,this.found=!1}Di("evolve",cn),fn.prototype["@@transducer/init"]=g,fn.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,void 0)),this.xf["@@transducer/result"](t)},fn.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.found=!0,t=d(this.xf["@@transducer/step"](t,r))),t};var sn=r(y(["find"],function(r){return function(t){return new fn(r,t)}},function(t,r){for(var n=0,e=r.length;n<e;){if(t(r[n]))return r[n];n+=1}}));function ln(t,r){this.xf=r,this.f=t,this.idx=-1,this.found=!1}Di("find",sn),ln.prototype["@@transducer/init"]=g,ln.prototype["@@transducer/result"]=function(t){return this.found||(t=this.xf["@@transducer/step"](t,-1)),this.xf["@@transducer/result"](t)},ln.prototype["@@transducer/step"]=function(t,r){return this.idx+=1,this.f(r)&&(this.found=!0,t=d(this.xf["@@transducer/step"](t,this.idx))),t};var pn=r(y([],function(r){return function(t){return new ln(r,t)}},function(t,r){for(var n=0,e=r.length;n<e;){if(t(r[n]))return n;n+=1}return-1}));function hn(t,r){this.xf=r,this.f=t}Di("findIndex",pn),hn.prototype["@@transducer/init"]=g,hn.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.last))},hn.prototype["@@transducer/step"]=function(t,r){return this.f(r)&&(this.last=r),t};var vn=r(y([],function(r){return function(t){return new hn(r,t)}},function(t,r){for(var n=r.length-1;0<=n;){if(t(r[n]))return r[n];n-=1}}));function yn(t,r){this.xf=r,this.f=t,this.idx=-1,this.lastIdx=-1}Di("findLast",vn),yn.prototype["@@transducer/init"]=g,yn.prototype["@@transducer/result"]=function(t){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](t,this.lastIdx))},yn.prototype["@@transducer/step"]=function(t,r){return this.idx+=1,this.f(r)&&(this.lastIdx=this.idx),t};var dn=r(y([],function(r){return function(t){return new yn(r,t)}},function(t,r){for(var n=r.length-1;0<=n;){if(t(r[n]))return n;n-=1}return-1}));Di("findLastIndex",dn);var gn=o(Lt(!0));Di("flatten",gn);var mn=o(function(e){return c(e.length,function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)})});Di("flip",mn);var bn=r(or("forEach",function(t,r){for(var n=r.length,e=0;e<n;)t(r[e]),e+=1;return r}));Di("forEach",bn);var xn=r(function(t,r){for(var n=W(r),e=0;e<n.length;){var u=n[e];t(r[u],u,r),e+=1}return r});Di("forEachObjIndexed",xn);var wn=o(function(t){for(var r={},n=0;n<t.length;)r[t[n][0]]=t[n][1],n+=1;return r});Di("fromPairs",wn);var jn=r(or("groupBy",Sr(function(t,r){return t.push(r),t},[])));Di("groupBy",jn);var An=r(function(t,r){for(var n=[],e=0,u=r.length;e<u;){for(var i=e+1;i<u&&t(r[i-1],r[i]);)i+=1;n.push(r.slice(e,i)),e=i}return n});Di("groupWith",An);var On=r(function(t,r){return r<t});Di("gt",On);var Sn=r(function(t,r){return r<=t});Di("gte",Sn);var En=r(function(t,r){if(0===t.length||Ut(r))return!1;for(var n=r,e=0;e<t.length;){if(Ut(n)||!A(t[e],n))return!1;n=n[t[e]],e+=1}return!0});Di("hasPath",En);var _n=r(function(t,r){return En([t],r)});Di("has",_n);var In=r(function(t,r){return!Ut(r)&&t in r});Di("hasIn",In);Di("identical",function t(n,r){switch(arguments.length){case 0:return t;case 1:return function t(r){switch(arguments.length){case 0:return t;default:return S(n,r)}};default:return S(n,r)}});var Nn=u(function(t,r,n){return c(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})});Di("ifElse",Nn);var kn=t(1);Di("inc",kn);var Wn=r(C);Di("includes",Wn);var qn=Sr(function(t,r){return r},null);Di("indexBy",qn);var Un=r(function(t,r){return"function"!=typeof r.indexOf||h(r)?P(r,t,0):r.indexOf(t)});Di("indexOf",Un);var Fn=ar(0,-1);Di("init",Fn);var Bn=u(function(r,t,n){return V(function(t){return j(r,t,n)},t)});Di("innerJoin",Bn);var Pn=u(function(t,r,n){t=t<n.length&&0<=t?t:n.length;var e=Array.prototype.slice.call(n,0);return e.splice(t,0,r),e});Di("insert",Pn);var Cn=u(function(t,r,n){return[].concat(Array.prototype.slice.call(n,0,t=t<n.length&&0<=t?t:n.length),r,Array.prototype.slice.call(n,t))});function Tn(t,r){this.xf=r,this.f=t,this.set=new kr}Di("insertAll",Cn),Tn.prototype["@@transducer/init"]=g,Tn.prototype["@@transducer/result"]=m,Tn.prototype["@@transducer/step"]=function(t,r){return this.set.add(this.f(r))?this.xf["@@transducer/step"](t,r):t};var Rn=r(y([],function(r){return function(t){return new Tn(r,t)}},function(t,r){for(var n,e,u=new kr,i=[],o=0;o<r.length;)n=t(e=r[o]),u.add(n)&&i.push(e),o+=1;return i}));Di("uniqBy",Rn);var Mn=Rn(vr);Di("uniq",Mn);var Dn=r(function(t,r){for(var n=new kr,e=0;e<t.length;e+=1)n.add(t[e]);return Mn(V(n.has.bind(n),r))});Di("intersection",Dn);var zn=r(or("intersperse",function(t,r){for(var n=[],e=0,u=r.length;e<u;)e===u-1?n.push(r[e]):n.push(r[e],t),e+=1;return n}));Di("intersperse",zn);var Ln="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(t),n=1,e=arguments.length;n<e;){var u=arguments[n];if(null!=u)for(var i in u)A(i,u)&&(r[i]=u[i]);n+=1}return r},Vn=r(function(t,r){var n={};return n[t]=r,n});Di("objOf",Vn);var Gn={"@@transducer/init":Array,"@@transducer/step":function(t,r){return t.push(r),t},"@@transducer/result":hr},Kn={"@@transducer/init":String,"@@transducer/step":function(t,r){return t+r},"@@transducer/result":hr},$n={"@@transducer/init":Object,"@@transducer/step":function(t,r){return Ln(t,ot(r)?Vn(r[0],r[1]):r)},"@@transducer/result":hr};var Hn=u(function(t,r,n){var e=r(v(t)?t:function(t){if(v(t))return t;if(ot(t))return Gn;if("string"==typeof t)return Kn;if("object"===s(t))return $n;throw Error("Cannot create transformer for "+t)}(t));return lt(e,e["@@transducer/init"](),n)});Di("into",Hn);var Jn=o(function(t){for(var r=W(t),n=r.length,e=0,u={};e<n;){var i=r[e],o=t[i],a=A(o,u)?u[o]:u[o]=[];a[a.length]=i,e+=1}return u});Di("invert",Jn);var Xn=o(function(t){for(var r=W(t),n=r.length,e=0,u={};e<n;){var i=r[e];u[t[i]]=i,e+=1}return u});Di("invertObj",Xn);var Yn=r(function(r,n){return c(r+1,function(){var t=arguments[r];if(null!=t&&Tt(t[n]))return t[n].apply(t,Array.prototype.slice.call(arguments,0,r));throw new TypeError(X(t)+' does not have a method named "'+n+'"')})});Di("invoker",Yn);var Zn=r(function(t,r){return r instanceof t||null!=r&&(r.constructor===t||"Object"===t.name&&"object"===s(r))});Di("is",Zn);var Qn=o(function(t){return null!=t&&B(t,en(t))});Di("isEmpty",Qn);var te=o(function(t){return!Ut(t)});Di("isNotNil",te);var re=Yn(1,"join");Di("join",re);var ne=o(function(t){return jr(function(){return Array.prototype.slice.call(arguments,0)},t)});Di("juxt",ne);var ee=o(function(t){var r,n=[];for(r in t)n[n.length]=r;return n});Di("keysIn",ee);var ue=r(function(t,r){if("function"!=typeof r.lastIndexOf||h(r)){for(var n=r.length-1;0<=n;){if(B(r[n],t))return n;n-=1}return-1}return r.lastIndexOf(t)});function ie(t){return"[object Number]"===Object.prototype.toString.call(t)}Di("lastIndexOf",ue);var oe=o(function(t){return null!=t&&ie(t.length)?t.length:NaN});Di("length",oe);var ae=r(function(n,e){return function(t){return function(r){return tt(function(t){return e(t,r)},t(n(r)))}}});Di("lens",ae);var ce=u(function(t,r,n){return i(t,dt(r),n)});Di("update",ce);var fe=o(function(r){return ae(function(t){return et(r,t)},ce(r))});function se(t,r){for(var n=r,e=0;e<t.length;e+=1){if(null==n)return;var u=t[e];n=rt(u)?et(u,n):n[u]}return n}Di("lensIndex",fe);var le=o(function(r){return ae(function(t){return se(r,t)},Ft(r))});Di("lensPath",le);var pe=o(function(t){return ae(ut(t),Bt(t))});Di("lensProp",pe);var he=r(function(t,r){return t<r});Di("lt",he);var ve=r(function(t,r){return t<=r});Di("lte",ve);var ye=u(function(t,r,n){for(var e=0,u=n.length,i=[],o=[r];e<u;)o=t(o[0],n[e]),i[e]=o[1],e+=1;return[o[0],i]});Di("mapAccum",ye);var de=u(function(t,r,n){for(var e=n.length-1,u=[],i=[r];0<=e;)i=t(i[0],n[e]),u[e]=i[1],e-=1;return[i[0],u]});Di("mapAccumRight",de);var ge=r(function(n,e){return L(function(t,r){return t[r]=n(e[r],r,e),t},{},W(e))});Di("mapObjIndexed",ge);var me=r(function(t,r){return r.match(t)||[]});Di("match",me);var be=r(function(t,r){return rt(t)?!rt(r)||r<1?NaN:(t%r+r)%r:NaN});Di("mathMod",be);var xe=u(function(t,r,n){var e=t(n);return Y(t(r),e)===e?n:r});Di("maxBy",xe);var we=vt(t,0);Di("sum",we);var je=o(function(t){return we(t)/t.length});Di("mean",je);var Ae=o(function(t){var r=t.length;if(0===r)return NaN;var n=2-r%2,e=(r-n)/2;return je(Array.prototype.slice.call(t,0).sort(function(t,r){return t<r?-1:r<t?1:0}).slice(e,e+n))});Di("median",Ae);var Oe=r(function(r,n){var e={};return l(n.length,function(){var t=r.apply(this,arguments);return A(t,e)||(e[t]=n.apply(this,arguments)),e[t]})});Di("memoizeWith",Oe);var Se=o(function(t){return Ln.apply(null,[{}].concat(t))});Di("mergeAll",Se);var Ee=u(function(t,r,n){var e,u={};for(e in n=n||{},r=r||{})A(e,r)&&(u[e]=A(e,n)?t(e,r[e],n[e]):r[e]);for(e in n)A(e,n)&&!A(e,u)&&(u[e]=n[e]);return u});Di("mergeWithKey",Ee);var _e=u(function e(u,t,r){return Ee(function(t,r,n){return G(r)&&G(n)?e(u,r,n):u(t,r,n)},t,r)});Di("mergeDeepWithKey",_e);var Ie=r(function(t,r){return _e(function(t,r,n){return r},t,r)});Di("mergeDeepLeft",Ie);var Ne=r(function(t,r){return _e(function(t,r,n){return n},t,r)});Di("mergeDeepRight",Ne);var ke=u(function(e,t,r){return _e(function(t,r,n){return e(r,n)},t,r)});Di("mergeDeepWith",ke);var We=r(function(t,r){return Ln({},r,t)});Di("mergeLeft",We);var qe=r(function(t,r){return Ln({},t,r)});Di("mergeRight",qe);var Ue=u(function(e,t,r){return Ee(function(t,r,n){return e(r,n)},t,r)});Di("mergeWith",Ue);var Fe=r(function(t,r){if(t===r)return t;function n(t,r){if(t<r!=r<t)return r<t?r:t}var e=n(t,r);if(void 0!==e)return e;var u=n(s(t),s(r));if(void 0!==u)return u===s(t)?t:r;var i=X(t),o=n(i,X(r));return void 0!==o?o===i?t:r:t});Di("min",Fe);var Be=u(function(t,r,n){var e=t(n);return Fe(t(r),e)===e?n:r});Di("minBy",Be);var Pe=u(function t(r,n,e){if(!G(e)&&!h(e))return e;if(0===r.length)return n(e);var u=r[0];if(!A(u,e))return e;if(1===r.length)return function(t,r,n){if(rt(t)&&h(n)){var e=[].concat(n);return e[t]=r(e[t]),e}var u={};for(var i in n)u[i]=n[i];return u[t]=r(u[t]),u}(u,n,e);var i=t(Array.prototype.slice.call(r,1),n,e[u]);return i===e[u]?e:qt(u,i,e)});Di("modifyPath",Pe);var Ce=u(function(t,r,n){return Pe([t],r,n)});Di("modify",Ce);var Te=r(function(t,r){return t%r});Di("modulo",Te);var Re=u(function(t,r,n){var e=n.length,u=n.slice(),i=t<0?e+t:t,o=r<0?e+r:r,a=u.splice(i,1);return i<0||n.length<=i||o<0||n.length<=o?n:[].concat(u.slice(0,o)).concat(a).concat(u.slice(o,n.length))});Di("move",Re);var Me=r(function(t,r){return t*r});Di("multiply",Me);var De=r(function(r,n){return function(t){return r.call(void 0,Ne(n,t))}});Di("partialObject",De);var ze=o(function(t){return-t});Di("negate",ze);var Le=r(function(t,r){return x(z(t),r)});Di("none",Le);var Ve=r(et);Di("nth",Ve);var Ge=o(function(t){return c(t<0?1:t+1,function(){return et(t,arguments)})});Di("nthArg",Ge);var Ke=u(function(t,r,n){return t(r(n))});Di("o",Ke);var $e=r(function(t,r){return"function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"](r):"function"==typeof t.of?t.of(r):[r]});Di("of",$e);var He=r(function(t,r){for(var n={},e={},u=0,i=t.length;u<i;)u+=e[t[u]]=1;for(var o in r)e.hasOwnProperty(o)||(n[o]=r[o]);return n});Di("omit",He);var Je=p(4,[],function(t,r,n,e){return t(r(n),r(e))});Di("on",Je);var Xe=o(function(t){var r,n=!1;return l(t.length,function(){return n?r:(n=!0,r=t.apply(this,arguments))})});function Ye(t,r){if(null==r||!Tt(r.then))throw new TypeError("`"+t+"` expected a Promise, received "+J(r,[]))}Di("once",Xe);var Ze=r(function(t,r){return Ye("otherwise",r),r.then(null,t)});Di("otherwise",Ze);var Qe=u(function(t,r,n){return t(function(t){return function r(n){return{value:n,map:function(t){return r(t(n))}}}(r(t))})(n).value});Di("over",Qe);var tu=r(function(t,r){return[t,r]});function ru(n){return r(function(t,r){return l(Math.max(0,t.length-r.length),function(){return t.apply(this,n(r,arguments))})})}Di("pair",tu);var nu=ru(a);Di("partial",nu);var eu=ru(mn(a));Di("partialRight",eu);var uu=ne([$,H]);Di("partition",uu);var iu=r(se);Di("path",iu);var ou=r(function(t,u){return t.map(function(t){for(var r,n=u,e=0;e<t.length;){if(null==n)return;n=rt(r=t[e])?et(r,n):n[r],e+=1}return n})});Di("paths",ou);var au=u(function(t,r,n){return B(se(r,n),t)});Di("pathEq",au);var cu=u(function(t,r,n){return Ir(t,se(r,n))});Di("pathOr",cu);var fu=u(function(t,r,n){return t(se(r,n))});Di("pathSatisfies",fu);var su=r(function(t,r){for(var n={},e=0;e<t.length;)t[e]in r&&(n[t[e]]=r[t[e]]),e+=1;return n});Di("pick",su);var lu=r(function(t,r){for(var n={},e=0,u=t.length;e<u;){var i=t[e];n[i]=r[i],e+=1}return n});Di("pickAll",lu);var pu=r(function(t,r){var n={};for(var e in r)t(r[e],e,r)&&(n[e]=r[e]);return n});Di("pickBy",pu);var hu=r(function(t,r){return a([t],r)});Di("prepend",hu);var vu=vt(Me,1);Di("product",vu);var yu=r(function(n,e){return c(e.length,function(){for(var t=[],r=0;r<e.length;)t.push(e[r].call(this,arguments[r])),r+=1;return n.apply(this,t.concat(Array.prototype.slice.call(arguments,e.length)))})});Di("useWith",yu);var du=yu(T,[lu,vr]);function gu(r,n,e){return function(t){return n(e(r(t)))}}function mu(t,r,n){this.xf=n,this.f=t,this.g=r}Di("project",du),mu.prototype["@@transducer/init"]=g,mu.prototype["@@transducer/result"]=m,mu.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,gu(this.f,this.g,r))};var bu=u(y(["fantasy-land/promap","promap"],function(r,n){return function(t){return new mu(r,n,t)}},gu));Di("promap",bu);var xu=u(function(t,r,n){return B(t,ut(r,n))});Di("propEq",xu);var wu=u(function(t,r,n){return Zn(t,ut(r,n))});Di("propIs",wu);var ju=u(function(t,r,n){return Ir(t,ut(r,n))});Di("propOr",ju);var Au=u(function(t,r,n){return t(ut(r,n))});Di("propSatisfies",Au);var Ou=r(function(t,r){return t.map(function(t){return ut(t,r)})});Di("props",Ou);var Su=r(function(t,r){if(!ie(t)||!ie(r))throw new TypeError("Both arguments to range must be numbers");for(var n=[],e=t;e<r;)n.push(e),e+=1;return n});Di("range",Su);var Eu=u(function(t,r,n){for(var e=n.length-1;0<=e;){if((r=t(n[e],r))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}e-=1}return r});Di("reduceRight",Eu);var _u=p(4,[],function(n,e,t,r){var u=ht(function(t,r){return n(t,r)?e(t,r):d(t)});return lt(u,t,r)});Di("reduceWhile",_u);var Iu=o(d);Di("reduced",Iu);var Nu=r(function(t,r){var n,e=+r,u=0;if(e<0||isNaN(e))throw new RangeError("n must be a non-negative number");for(n=[];u<e;)n.push(t(u)),u+=1;return n});Di("times",Nu);var ku=r(function(t,r){return Nu(dt(t),r)});Di("repeat",ku);var Wu=u(function(t,r,n){return n.replace(t,r)});Di("replace",Wu);var qu="@@transducer/init",Uu="@@transducer/step";function Fu(t,r,n){this.xf=n,this.f=t,this.acc=r}Fu.prototype[qu]=function(){return this.xf[Uu](this.xf[qu](),this.acc)},Fu.prototype["@@transducer/result"]=m,Fu.prototype[Uu]=function(t,r){return t["@@transducer/reduced"]?t:(this.acc=this.f(this.acc,r),this.xf[Uu](t,this.acc))};var Bu=u(y([],u(function(t,r,n){return new Fu(t,r,n)}),function(t,r,n){for(var e=0,u=n.length,i=[r];e<u;)r=t(r,n[e]),i[e+1]=r,e+=1;return i}));Di("scan",Bu);var Pu=r(function(t,r){var n="function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeof t.of?t.of:t,e={"fantasy-land/of":n};return"function"==typeof r["fantasy-land/traverse"]?r["fantasy-land/traverse"](e,hr):"function"==typeof r.traverse?r.traverse(e,hr):Eu(function(t,r){return jt(tt(hu,t),r)},n([]),r)});Di("sequence",Pu);var Cu=u(function(t,r,n){return Qe(t,dt(r),n)});Di("set",Cu);var Tu=r(function(t,r){return Array.prototype.slice.call(r,0).sort(t)});Di("sort",Tu);var Ru=r(function(u,t){return Array.prototype.slice.call(t,0).sort(function(t,r){var n=u(t),e=u(r);return n<e?-1:e<n?1:0})});Di("sortBy",Ru);var Mu=r(function(u,t){return Array.prototype.slice.call(t,0).sort(function(t,r){for(var n=0,e=0;0===n&&e<u.length;)n=u[e](t,r),e+=1;return n})});Di("sortWith",Mu);var Du=Yn(1,"split");Di("split",Du);var zu=r(function(t,r){return[ar(0,t,r),ar(t,oe(r),r)]});Di("splitAt",zu);var Lu=r(function(t,r){if(t<=0)throw Error("First argument to splitEvery must be a positive integer");for(var n=[],e=0;e<r.length;)n.push(ar(e,e+=t,r));return n});Di("splitEvery",Lu);var Vu=r(function(t,r){for(var n=0,e=r.length,u=[];n<e&&!t(r[n]);)u.push(r[n]),n+=1;return[u,Array.prototype.slice.call(r,n)]});Di("splitWhen",Vu);var Gu=p(2,[],function(t,r){for(var n=[],e=[],u=0;u<r.length;u+=1)t(r[u])||e.push(r[u]),(u<r.length-1&&t(r[u+1])||u===r.length-1)&&0<e.length&&(n.push(e),e=[]);return n});Di("splitWhenever",Gu);var Ku=r(function(t,r){return B(Dr(t.length,r),t)});Di("startsWith",Ku);var $u=r(function(t,r){return+t-+r});Di("subtract",$u);function Hu(t,r,n){var e=n.length,u=n.slice(),i=t<0?e+t:t,o=r<0?e+r:r,a=Math.min(i,o),c=Math.max(i,o);return i<0||e<i?u:o<0||e<o?u:i===o?u:u=[].concat(u.slice(0,a)).concat([u[c]]).concat(u.slice(1+a,c)).concat([u[a]]).concat(u.slice(1+c,e))}var Ju=u(function(t,r,n){return h(n)?Hu(t,r,n):nt(n)?function(t,r,n){var e=Hu(t,r,n);return h(e)?e.join(""):e}(t,r,n):function(t,r,n){var e=tr(n),u=Object.getOwnPropertyNames(e);if(u.includes(t)&&u.includes(r)){var i=e[t];e[t]=e[r],e[r]=i}return e}(t,r,n)});Di("swap",Ju);var Xu=r(function(t,r){return gr(qr(t,r),qr(r,t))});Di("symmetricDifference",Xu);var Yu=u(function(t,r,n){return gr(Ur(t,r,n),Ur(t,n,r))});Di("symmetricDifferenceWith",Yu);var Zu=r(function(t,r){for(var n=r.length-1;0<=n&&t(r[n]);)n-=1;return ar(n+1,1/0,r)});function Qu(t,r){this.xf=r,this.f=t}Di("takeLastWhile",Zu),Qu.prototype["@@transducer/init"]=g,Qu.prototype["@@transducer/result"]=m,Qu.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):d(t)};var ti=r(y(["takeWhile"],function(r){return function(t){return new Qu(r,t)}},function(t,r){for(var n=0,e=r.length;n<e&&t(r[n]);)n+=1;return ar(0,n,r)}));function ri(t,r){this.xf=r,this.f=t}Di("takeWhile",ti),ri.prototype["@@transducer/init"]=g,ri.prototype["@@transducer/result"]=m,ri.prototype["@@transducer/step"]=function(t,r){return this.f(r),this.xf["@@transducer/step"](t,r)};var ni=r(y([],function(r){return function(t){return new ri(r,t)}},function(t,r){return t(r),r}));Di("tap",ni);var ei=r(function(t,r){if(!function(t){return"[object RegExp]"===Object.prototype.toString.call(t)}(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+X(t));return Yt(t).test(r)});Di("test",ei);var ui=r(function(t,r){return Ye("andThen",r),r.then(t)});Di("andThen",ui);var ii=Yn(0,"toLowerCase");Di("toLower",ii);var oi=o(function(t){var r=[];for(var n in t)A(n,t)&&(r[r.length]=[n,t[n]]);return r});Di("toPairs",oi);var ai=o(function(t){var r=[];for(var n in t)r[r.length]=[n,t[n]];return r});Di("toPairsIn",ai);var ci=Yn(0,"toUpperCase");Di("toUpper",ci);var fi=c(4,function(t,r,n,e){return lt(t("function"==typeof r?ht(r):r),n,e)});Di("transduce",fi);var si=o(function(t){for(var r=0,n=[];r<t.length;){for(var e=t[r],u=0;u<e.length;)void 0===n[u]&&(n[u]=[]),n[u].push(e[u]),u+=1;r+=1}return n});Di("transpose",si);var li=u(function(t,r,n){var e={"fantasy-land/of":"function"==typeof t["fantasy-land/of"]?t["fantasy-land/of"]:"function"==typeof t.of?t.of:t};return"function"==typeof n["fantasy-land/traverse"]?n["fantasy-land/traverse"](e,r):"function"==typeof n.traverse?n.traverse(e,r):Pu(e,tt(r,n))});Di("traverse",li);var pi="\t\n\v\f\r \u2028\u2029\ufeff",hi=!("function"==typeof String.prototype.trim)||pi.trim()?o(function(t){var r=RegExp("^["+pi+"]["+pi+"]*"),n=RegExp("["+pi+"]["+pi+"]*$");return t.replace(r,"").replace(n,"")}):o(function(t){return t.trim()});Di("trim",hi);var vi=r(function(t,r){return l(t.length,function(){try{return t.apply(this,arguments)}catch(t){return r.apply(this,a([t],arguments))}})});Di("tryCatch",vi);var yi=o(function(t){return function(){return t(Array.prototype.slice.call(arguments,0))}});Di("unapply",yi);var di=o(function(t){return Pt(1,t)});Di("unary",di);var gi=r(function(u,i){return c(u,function(){for(var t,r=1,n=i,e=0;r<=u&&"function"==typeof n;)n=n.apply(this,Array.prototype.slice.call(arguments,e,t=r===u?arguments.length:e+n.length)),r+=1,e=t;return n})});Di("uncurryN",gi);var mi=r(function(t,r){for(var n=t(r),e=[];n&&n.length;)e[e.length]=n[0],n=t(n[1]);return e});Di("unfold",mi);var bi=r(lr(Mn,a));function xi(t,r){this.xf=r,this.pred=t,this.items=[]}Di("union",bi),xi.prototype["@@transducer/init"]=g,xi.prototype["@@transducer/result"]=m,xi.prototype["@@transducer/step"]=function(t,r){return j(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))};var wi=r(y([],function(r){return function(t){return new xi(r,t)}},function(t,r){for(var n,e=0,u=r.length,i=[];e<u;)j(t,n=r[e],i)||(i[i.length]=n),e+=1;return i}));Di("uniqWith",wi);var ji=u(function(t,r,n){return wi(t,a(r,n))});Di("unionWith",ji);var Ai=u(function(t,r,n){return t(n)?n:r(n)});Di("unless",Ai);var Oi=Jt(hr);Di("unnest",Oi);var Si=u(function(t,r,n){for(var e=n;!t(e);)e=r(e);return e});Di("until",Si);var Ei=r(function(r,n){return r in n&&h(n[r])?T(function(t){return qt(r,t,n)},n[r]):[n]});Di("unwind",Ei);var _i=o(function(t){var r,n=[];for(r in t)n[n.length]=t[r];return n});Di("valuesIn",_i);function Ii(t){return{value:t,"fantasy-land/map":function(){return this}}}var Ni=r(function(t,r){return t(Ii)(r).value});Di("view",Ni);var ki=u(function(t,r,n){return t(n)?r(n):n});Di("when",ki);var Wi=r(function(t,r){for(var n in t)if(A(n,t)&&!t[n](r[n]))return!1;return!0});Di("where",Wi);var qi=r(function(t,r){for(var n in t)if(A(n,t)&&t[n](r[n]))return!0;return!1});Di("whereAny",qi);var Ui=r(function(t,r){return Wi(tt(B,t),r)});Di("whereEq",Ui);var Fi=r(function(t,r){for(var n=new kr,e=0;e<t.length;e+=1)n.add(t[e]);return H(n.has.bind(n),r)});Di("without",Fi);var Bi=r(function(t,r){return!!(!t^!r)});Di("xor",Bi);var Pi=r(function(t,r){for(var n,e=0,u=t.length,i=r.length,o=[];e<u;){for(n=0;n<i;)o[o.length]=[t[e],r[n]],n+=1;e+=1}return o});Di("xprod",Pi);var Ci=r(function(t,r){for(var n=[],e=0,u=Math.min(t.length,r.length);e<u;)n[e]=[t[e],r[e]],e+=1;return n});Di("zip",Ci);var Ti=r(function(t,r){for(var n=0,e=Math.min(t.length,r.length),u={};n<e;)u[t[n]]=r[n],n+=1;return u});Di("zipObj",Ti);var Ri=u(function(t,r,n){for(var e=[],u=0,i=Math.min(r.length,n.length);u<i;)e[u]=t(r[u],n[u]),u+=1;return e});Di("zipWith",Ri);var Mi=o(function(r){return c(r.length,function(){var t=arguments;return function(){return r.apply(this,t)}})});Di("thunkify",Mi)}}});