Content inside supertokenslib
(The raw file follows this syntax highlighted file.)
(()=>{var hf=Object.defineProperty;var yf=(n,r)=>{for(var t in r)hf(n,t,{get:r[t],enumerable:!0})};var Ln={};yf(Ln,{F:()=>uo,T:()=>fo,__:()=>so,add:()=>Ar,addIndex:()=>co,addIndexRight:()=>po,adjust:()=>Ht,all:()=>Qt,allPass:()=>$t,always:()=>kr,and:()=>re,andThen:()=>Zi,any:()=>xo,anyPass:()=>te,ap:()=>$r,aperture:()=>_o,append:()=>ee,apply:()=>rt,applySpec:()=>Io,applyTo:()=>bo,ascend:()=>Ao,assoc:()=>Pr,assocPath:()=>tt,binary:()=>Oo,bind:()=>Yt,both:()=>So,call:()=>ae,chain:()=>ie,clamp:()=>Eo,clone:()=>et,collectBy:()=>To,comparator:()=>Wo,complement:()=>kt,compose:()=>Nr,composeWith:()=>No,concat:()=>at,cond:()=>Bo,construct:()=>Co,constructN:()=>ce,converge:()=>pe,count:()=>Lo,countBy:()=>jo,curry:()=>it,curryN:()=>O,dec:()=>Do,defaultTo:()=>ut,descend:()=>Mo,difference:()=>Pt,differenceWith:()=>Et,dissoc:()=>de,dissocPath:()=>me,divide:()=>Fo,drop:()=>he,dropLast:()=>Uo,dropLastWhile:()=>zo,dropRepeats:()=>Vo,dropRepeatsBy:()=>Xo,dropRepeatsWith:()=>st,dropWhile:()=>Ko,either:()=>Ho,empty:()=>xe,endsWith:()=>Qo,eqBy:()=>Tt,eqProps:()=>Zo,equals:()=>W,evolve:()=>Jo,filter:()=>Gr,find:()=>Go,findIndex:()=>Yo,findLast:()=>$o,findLastIndex:()=>ra,flatten:()=>ta,flip:()=>we,forEach:()=>ea,forEachObjIndexed:()=>na,fromPairs:()=>oa,groupBy:()=>aa,groupWith:()=>ia,gt:()=>ua,gte:()=>fa,has:()=>sa,hasIn:()=>ca,hasPath:()=>Ie,head:()=>fe,identical:()=>la,identity:()=>lr,ifElse:()=>ma,inc:()=>da,includes:()=>Wt,indexBy:()=>ha,indexOf:()=>ya,init:()=>va,innerJoin:()=>ga,insert:()=>xa,insertAll:()=>_a,intersection:()=>wa,intersperse:()=>Ia,into:()=>ba,invert:()=>Aa,invertObj:()=>Oa,invoker:()=>vr,is:()=>Hr,isEmpty:()=>Nt,isNil:()=>or,isNotNil:()=>Oe,join:()=>Sa,juxt:()=>Se,keys:()=>j,keysIn:()=>ka,last:()=>ye,lastIndexOf:()=>Ra,length:()=>ke,lens:()=>Lr,lensIndex:()=>Pa,lensPath:()=>Ea,lensProp:()=>Ta,lift:()=>Tr,liftN:()=>oe,lt:()=>Wa,lte:()=>Na,map:()=>C,mapAccum:()=>Ba,mapAccumRight:()=>Ca,mapObjIndexed:()=>Bt,match:()=>La,mathMod:()=>ja,max:()=>J,maxBy:()=>Da,mean:()=>Te,median:()=>Ma,memoizeWith:()=>qa,mergeAll:()=>Fa,mergeDeepLeft:()=>Ua,mergeDeepRight:()=>We,mergeDeepWith:()=>za,mergeDeepWithKey:()=>jr,mergeLeft:()=>Ct,mergeRight:()=>Ne,mergeWith:()=>Va,mergeWithKey:()=>lt,min:()=>Be,minBy:()=>Xa,modify:()=>Ka,modifyPath:()=>Ce,modulo:()=>Ha,move:()=>Qa,multiply:()=>Le,nAry:()=>Er,negate:()=>Ja,none:()=>Ga,not:()=>ue,nth:()=>Y,nthArg:()=>Ya,o:()=>$a,objOf:()=>Ae,of:()=>ri,omit:()=>ti,on:()=>ei,once:()=>ni,or:()=>ve,otherwise:()=>oi,over:()=>je,pair:()=>ii,partial:()=>ui,partialObject:()=>Za,partialRight:()=>fi,partition:()=>si,path:()=>sr,pathEq:()=>ci,pathOr:()=>pi,pathSatisfies:()=>li,paths:()=>Pe,pick:()=>mi,pickAll:()=>De,pickBy:()=>di,pipe:()=>Rt,pipeWith:()=>se,pluck:()=>hr,prepend:()=>Me,product:()=>hi,project:()=>yi,promap:()=>vi,prop:()=>$,propEq:()=>gi,propIs:()=>xi,propOr:()=>_i,propSatisfies:()=>wi,props:()=>Ii,range:()=>bi,reduce:()=>K,reduceBy:()=>Br,reduceRight:()=>Fe,reduceWhile:()=>Ai,reduced:()=>Oi,reject:()=>Sr,remove:()=>le,repeat:()=>Si,replace:()=>ki,reverse:()=>ot,scan:()=>Ei,sequence:()=>ze,set:()=>Ti,slice:()=>M,sort:()=>Wi,sortBy:()=>Ni,sortWith:()=>Bi,split:()=>Ci,splitAt:()=>Li,splitEvery:()=>ji,splitWhen:()=>Di,splitWhenever:()=>Mi,startsWith:()=>qi,subtract:()=>Fi,sum:()=>Ee,swap:()=>zi,symmetricDifference:()=>Vi,symmetricDifferenceWith:()=>Xi,tail:()=>nt,take:()=>ft,takeLast:()=>_e,takeLastWhile:()=>Ki,takeWhile:()=>Hi,tap:()=>Mt,test:()=>Qi,thunkify:()=>bu,times:()=>Ue,toLower:()=>Ji,toPairs:()=>Gi,toPairsIn:()=>Yi,toString:()=>Z,toUpper:()=>$i,transduce:()=>ru,transpose:()=>tu,traverse:()=>eu,trim:()=>nu,tryCatch:()=>ou,type:()=>zr,unapply:()=>au,unary:()=>iu,uncurryN:()=>uu,unfold:()=>fu,union:()=>su,unionWith:()=>cu,uniq:()=>ct,uniqBy:()=>be,uniqWith:()=>Ve,unless:()=>pu,unnest:()=>Xe,until:()=>lu,unwind:()=>mu,update:()=>Re,useWith:()=>qe,values:()=>ne,valuesIn:()=>du,view:()=>hu,when:()=>Ft,where:()=>Ke,whereAny:()=>yu,whereEq:()=>He,without:()=>vu,xor:()=>gu,xprod:()=>xu,zip:()=>_u,zipObj:()=>wu,zipWith:()=>Iu});var vf=function(){return!1},uo=vf;var gf=function(){return!0},fo=gf;var so={"@@functional/placeholder":!0};function E(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function p(n){return function r(t){return arguments.length===0||E(t)?r:n.apply(this,arguments)}}function f(n){return function r(t,o){switch(arguments.length){case 0:return r;case 1:return E(t)?r:p(function(a){return n(t,a)});default:return E(t)&&E(o)?r:E(t)?p(function(a){return n(a,o)}):E(o)?p(function(a){return n(t,a)}):n(t,o)}}}var xf=f(function(r,t){return Number(r)+Number(t)}),Ar=xf;function B(n,r){n=n||[],r=r||[];var t,o=n.length,a=r.length,i=[];for(t=0;t<o;)i[i.length]=n[t],t+=1;for(t=0;t<a;)i[i.length]=r[t],t+=1;return i}function z(n,r){switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,o){return r.apply(this,arguments)};case 3:return function(t,o,a){return r.apply(this,arguments)};case 4:return function(t,o,a,i){return r.apply(this,arguments)};case 5:return function(t,o,a,i,u){return r.apply(this,arguments)};case 6:return function(t,o,a,i,u,c){return r.apply(this,arguments)};case 7:return function(t,o,a,i,u,c,s){return r.apply(this,arguments)};case 8:return function(t,o,a,i,u,c,s,d){return r.apply(this,arguments)};case 9:return function(t,o,a,i,u,c,s,d,m){return r.apply(this,arguments)};case 10:return function(t,o,a,i,u,c,s,d,m,h){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ar(n,r,t){return function(){for(var o=[],a=0,i=n,u=0,c=!1;u<r.length||a<arguments.length;){var s;u<r.length&&(!E(r[u])||a>=arguments.length)?s=r[u]:(s=arguments[a],a+=1),o[u]=s,E(s)?c=!0:i-=1,u+=1}return!c&&i<=0?t.apply(this,o):z(Math.max(0,i),ar(n,o,t))}}var _f=f(function(r,t){return r===1?p(t):z(r,ar(r,[],t))}),O=_f;var wf=p(function(r){return O(r.length,function(){var t=0,o=arguments[0],a=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=o.apply(this,B(arguments,[t,a]));return t+=1,u},r.apply(this,i)})}),co=wf;var If=p(function(r){return O(r.length,function(){var t=arguments[0],o=arguments[arguments.length-1],a=o.length-1,i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=t.apply(this,B(arguments,[a,o]));return a-=1,u},r.apply(this,i)})}),po=If;function l(n){return function r(t,o,a){switch(arguments.length){case 0:return r;case 1:return E(t)?r:f(function(i,u){return n(t,i,u)});case 2:return E(t)&&E(o)?r:E(t)?f(function(i,u){return n(i,o,u)}):E(o)?f(function(i,u){return n(t,i,u)}):p(function(i){return n(t,o,i)});default:return E(t)&&E(o)&&E(a)?r:E(t)&&E(o)?f(function(i,u){return n(i,u,a)}):E(t)&&E(a)?f(function(i,u){return n(i,o,u)}):E(o)&&E(a)?f(function(i,u){return n(t,i,u)}):E(t)?p(function(i){return n(i,o,a)}):E(o)?p(function(i){return n(t,i,a)}):E(a)?p(function(i){return n(t,o,i)}):n(t,o,a)}}}var bf=l(function(r,t,o){var a=o.length;if(r>=a||r<-a)return o;var i=(a+r)%a,u=B(o);return u[i]=t(o[i]),u}),Ht=bf;var P=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function Fr(n){return n!=null&&typeof n["@@transducer/step"]=="function"}function _(n,r,t){return function(){if(arguments.length===0)return t();var o=arguments[arguments.length-1];if(!P(o)){for(var a=0;a<n.length;){if(typeof o[n[a]]=="function")return o[n[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Fr(o)){var i=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(o)}}return t.apply(this,arguments)}}function V(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}var y={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}};var Af=function(){function n(r,t){this.xf=t,this.f=r,this.all=!0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.all&&(r=this.xf["@@transducer/step"](r,!0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)||(this.all=!1,r=V(this.xf["@@transducer/step"](r,!1))),r},n}();function en(n){return function(r){return new Af(n,r)}}var Of=f(_(["all"],en,function(r,t){for(var o=0;o<t.length;){if(!r(t[o]))return!1;o+=1}return!0})),Qt=Of;function Zt(n){for(var r=[],t;!(t=n.next()).done;)r.push(t.value);return r}function er(n,r,t){for(var o=0,a=t.length;o<a;){if(n(r,t[o]))return!0;o+=1}return!1}function nn(n){var r=String(n).match(/^function (\w*)/);return r==null?"":r[1]}function k(n,r){return Object.prototype.hasOwnProperty.call(r,n)}function Sf(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}var Ur=typeof Object.is=="function"?Object.is:Sf;var lo=Object.prototype.toString,kf=function(){return lo.call(arguments)==="[object Arguments]"?function(r){return lo.call(r)==="[object Arguments]"}:function(r){return k("callee",r)}}(),Jt=kf;var Rf=!{toString:null}.propertyIsEnumerable("toString"),mo=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ho=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Pf=function(r,t){for(var o=0;o<r.length;){if(r[o]===t)return!0;o+=1}return!1},Ef=typeof Object.keys=="function"&&!ho?p(function(r){return Object(r)!==r?[]:Object.keys(r)}):p(function(r){if(Object(r)!==r)return[];var t,o,a=[],i=ho&&Jt(r);for(t in r)k(t,r)&&(!i||t!=="length")&&(a[a.length]=t);if(Rf)for(o=mo.length-1;o>=0;)t=mo[o],k(t,r)&&!Pf(a,t)&&(a[a.length]=t),o-=1;return a}),j=Ef;var Tf=p(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)}),zr=Tf;function yo(n,r,t,o){var a=Zt(n),i=Zt(r);function u(c,s){return gt(c,s,t.slice(),o.slice())}return!er(function(c,s){return!er(u,s,c)},i,a)}function gt(n,r,t,o){if(Ur(n,r))return!0;var a=zr(n);if(a!==zr(r))return!1;if(typeof n["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](n);if(typeof n.equals=="function"||typeof r.equals=="function")return typeof n.equals=="function"&&n.equals(r)&&typeof r.equals=="function"&&r.equals(n);switch(a){case"Arguments":case"Array":case"Object":if(typeof n.constructor=="function"&&nn(n.constructor)==="Promise")return n===r;break;case"Boolean":case"Number":case"String":if(!(typeof n==typeof r&&Ur(n.valueOf(),r.valueOf())))return!1;break;case"Date":if(!Ur(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(!(n.source===r.source&&n.global===r.global&&n.ignoreCase===r.ignoreCase&&n.multiline===r.multiline&&n.sticky===r.sticky&&n.unicode===r.unicode))return!1;break}for(var i=t.length-1;i>=0;){if(t[i]===n)return o[i]===r;i-=1}switch(a){case"Map":return n.size!==r.size?!1:yo(n.entries(),r.entries(),t.concat([n]),o.concat([r]));case"Set":return n.size!==r.size?!1:yo(n.values(),r.values(),t.concat([n]),o.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 u=j(n);if(u.length!==j(r).length)return!1;var c=t.concat([n]),s=o.concat([r]);for(i=u.length-1;i>=0;){var d=u[i];if(!(k(d,r)&>(r[d],n[d],c,s)))return!1;i-=1}return!0}var Wf=f(function(r,t){return gt(r,t,[],[])}),W=Wf;function xt(n,r,t){var o,a;if(typeof n.indexOf=="function")switch(typeof r){case"number":if(r===0){for(o=1/r;t<n.length;){if(a=n[t],a===0&&1/a===o)return t;t+=1}return-1}else if(r!==r){for(;t<n.length;){if(a=n[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return n.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(r,t);case"object":if(r===null)return n.indexOf(r,t)}for(;t<n.length;){if(W(n[t],r))return t;t+=1}return-1}function Or(n,r){return xt(r,n,0)>=0}function nr(n,r){for(var t=0,o=r.length,a=Array(o);t<o;)a[t]=n(r[t]),t+=1;return a}function _t(n){var r=n.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");return'"'+r.replace(/"/g,'\\"')+'"'}var wt=function(r){return(r<10?"0":"")+r},Nf=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+wt(r.getUTCMonth()+1)+"-"+wt(r.getUTCDate())+"T"+wt(r.getUTCHours())+":"+wt(r.getUTCMinutes())+":"+wt(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},vo=Nf;function It(n){return function(){return!n.apply(this,arguments)}}function cr(n,r,t){for(var o=0,a=t.length;o<a;)r=n(r,t[o]),o+=1;return r}function Vr(n,r){for(var t=0,o=r.length,a=[];t<o;)n(r[t])&&(a[a.length]=r[t]),t+=1;return a}function ir(n){return Object.prototype.toString.call(n)==="[object Object]"}var Bf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},n}();function on(n){return function(r){return new Bf(n,r)}}var Cf=f(_(["fantasy-land/filter","filter"],on,function(n,r){return ir(r)?cr(function(t,o){return n(r[o])&&(t[o]=r[o]),t},{},j(r)):Vr(n,r)})),Gr=Cf;var Lf=f(function(r,t){return Gr(It(r),t)}),Sr=Lf;function Yr(n,r){var t=function(u){var c=r.concat([n]);return Or(u,c)?"<Circular>":Yr(u,c)},o=function(i,u){return nr(function(c){return _t(c)+": "+t(i[c])},u.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+nr(t,n).join(", ")+"))";case"[object Array]":return"["+nr(t,n).concat(o(n,Sr(function(i){return/^\d+$/.test(i)},j(n)))).join(", ")+"]";case"[object Boolean]":return typeof n=="object"?"new Boolean("+t(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?t(NaN):_t(vo(n)))+")";case"[object Map]":return"new Map("+t(Array.from(n))+")";case"[object Null]":return"null";case"[object Number]":return typeof n=="object"?"new Number("+t(n.valueOf())+")":1/n===-1/0?"-0":n.toString(10);case"[object Set]":return"new Set("+t(Array.from(n).sort())+")";case"[object String]":return typeof n=="object"?"new String("+t(n.valueOf())+")":_t(n);case"[object Undefined]":return"undefined";default:if(typeof n.toString=="function"){var a=n.toString();if(a!=="[object Object]")return a}return"{"+o(n,j(n)).join(", ")+"}"}}var jf=p(function(r){return Yr(r,[])}),Z=jf;var Df=f(function(r,t){if(r===t)return t;function o(s,d){if(s>d!=d>s)return d>s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=Z(r),c=o(u,Z(t));return c!==void 0&&c===u?r:t}),J=Df;var Mf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},n}(),qf=function(r){return function(t){return new Mf(r,t)}},Gt=qf;var Ff=f(_(["fantasy-land/map","map"],Gt,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return O(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return cr(function(o,a){return o[a]=r(t[a]),o},{},j(t));default:return nr(r,t)}})),C=Ff;var H=Number.isInteger||function(r){return r<<0===r};function G(n){return Object.prototype.toString.call(n)==="[object String]"}var Uf=f(function(r,t){var o=r<0?t.length+r:r;return G(t)?t.charAt(o):t[o]}),Y=Uf;var zf=f(function(r,t){if(t!=null)return H(r)?Y(r,t):t[r]}),$=zf;var Vf=f(function(r,t){return C($(r),t)}),hr=Vf;var Xf=p(function(r){return P(r)?!0:!r||typeof r!="object"||G(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),_r=Xf;var go=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function bt(n,r,t){return function(a,i,u){if(_r(u))return n(a,i,u);if(u==null)return i;if(typeof u["fantasy-land/reduce"]=="function")return r(a,i,u,"fantasy-land/reduce");if(u[go]!=null)return t(a,i,u[go]());if(typeof u.next=="function")return t(a,i,u);if(typeof u.reduce=="function")return r(a,i,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function At(n,r,t){for(var o=0,a=t.length;o<a;){if(r=n["@@transducer/step"](r,t[o]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o+=1}return n["@@transducer/result"](r)}var Kf=f(function(r,t){return z(r.length,function(){return r.apply(t,arguments)})}),Yt=Kf;function Hf(n,r,t){for(var o=t.next();!o.done;){if(r=n["@@transducer/step"](r,o.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o=t.next()}return n["@@transducer/result"](r)}function Qf(n,r,t,o){return n["@@transducer/result"](t[o](Yt(n["@@transducer/step"],n),r))}var Zf=bt(At,Qf,Hf),rr=Zf;var Jf=function(){function n(r){this.f=r}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(r){return r},n.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},n}();function wr(n){return new Jf(n)}var Gf=l(function(n,r,t){return rr(typeof n=="function"?wr(n):n,r,t)}),K=Gf;var Yf=p(function(r){return O(K(J,0,hr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(!r[t].apply(this,arguments))return!1;t+=1}return!0})}),$t=Yf;var $f=p(function(r){return function(){return r}}),kr=$f;var rs=f(function(r,t){return r&&t}),re=rs;var ts=function(){function n(r,t){this.xf=t,this.f=r,this.any=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.any||(r=this.xf["@@transducer/step"](r,!1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.any=!0,r=V(this.xf["@@transducer/step"](r,!0))),r},n}();function an(n){return function(r){return new ts(n,r)}}var es=f(_(["any"],an,function(r,t){for(var o=0;o<t.length;){if(r(t[o]))return!0;o+=1}return!1})),xo=es;var ns=p(function(r){return O(K(J,0,hr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(r[t].apply(this,arguments))return!0;t+=1}return!1})}),te=ns;function os(n,r,t){for(var o=t.next();!o.done;)r=n(r,o.value),o=t.next();return r}function as(n,r,t,o){return t[o](n,r)}var is=bt(cr,as,os),Rr=is;var us=f(function(r,t){return typeof t["fantasy-land/ap"]=="function"?t["fantasy-land/ap"](r):typeof r.ap=="function"?r.ap(t):typeof r=="function"?function(o){return r(o)(t(o))}:Rr(function(o,a){return B(o,C(a,t))},[],r)}),$r=us;function un(n,r){for(var t=0,o=r.length-(n-1),a=new Array(o>=0?o:0);t<o;)a[t]=Array.prototype.slice.call(r,t,t+n),t+=1;return a}var fs=function(){function n(r,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.store(t),this.full?this.xf["@@transducer/step"](r,this.getCopy()):r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n.prototype.getCopy=function(){return B(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}();function fn(n){return function(r){return new fs(n,r)}}var ss=f(_([],fn,un)),_o=ss;var cs=f(function(r,t){return B(t,[r])}),ee=cs;var ps=f(function(r,t){return r.apply(this,t)}),rt=ps;var ls=p(function(r){for(var t=j(r),o=t.length,a=[],i=0;i<o;)a[i]=r[t[i]],i+=1;return a}),ne=ls;function wo(n,r){return P(r)?r.map(n):j(r).reduce(function(t,o){return t[o]=n(r[o]),t},{})}var ms=p(function n(r){return r=wo(function(t){return typeof t=="function"?t:n(t)},r),O(K(J,0,hr("length",ne(r))),function(){var t=arguments;return wo(function(o){return rt(o,t)},r)})}),Io=ms;var ds=f(function(r,t){return t(r)}),bo=ds;var hs=l(function(r,t,o){var a=r(t),i=r(o);return a<i?-1:a>i?1:0}),Ao=hs;function Xr(n,r,t){if(H(n)&&P(t)){var o=[].concat(t);return o[n]=r,o}var a={};for(var i in t)a[i]=t[i];return a[n]=r,a}var ys=p(function(r){return r==null}),or=ys;var vs=l(function n(r,t,o){if(r.length===0)return t;var a=r[0];if(r.length>1){var i=!or(o)&&k(a,o)&&typeof o[a]=="object"?o[a]:H(r[1])?[]:{};t=n(Array.prototype.slice.call(r,1),t,i)}return Xr(a,t,o)}),tt=vs;var gs=l(function(r,t,o){return tt([r],t,o)}),Pr=gs;var xs=f(function(r,t){switch(r){case 0:return function(){return t.call(this)};case 1:return function(o){return t.call(this,o)};case 2:return function(o,a){return t.call(this,o,a)};case 3:return function(o,a,i){return t.call(this,o,a,i)};case 4:return function(o,a,i,u){return t.call(this,o,a,i,u)};case 5:return function(o,a,i,u,c){return t.call(this,o,a,i,u,c)};case 6:return function(o,a,i,u,c,s){return t.call(this,o,a,i,u,c,s)};case 7:return function(o,a,i,u,c,s,d){return t.call(this,o,a,i,u,c,s,d)};case 8:return function(o,a,i,u,c,s,d,m){return t.call(this,o,a,i,u,c,s,d,m)};case 9:return function(o,a,i,u,c,s,d,m,h){return t.call(this,o,a,i,u,c,s,d,m,h)};case 10:return function(o,a,i,u,c,s,d,m,h,x){return t.call(this,o,a,i,u,c,s,d,m,h,x)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Er=xs;var _s=p(function(r){return Er(2,r)}),Oo=_s;function ur(n){var r=Object.prototype.toString.call(n);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var ws=f(function(r,t){var o=O(r,t);return O(r,function(){return cr($r,C(o,arguments[0]),Array.prototype.slice.call(arguments,1))})}),oe=ws;var Is=p(function(r){return oe(r.length,r)}),Tr=Is;var bs=f(function(r,t){return ur(r)?function(){return r.apply(this,arguments)&&t.apply(this,arguments)}:Tr(re)(r,t)}),So=bs;var As=p(function(r){return r.apply(this,Array.prototype.slice.call(arguments,1))}),ae=As;function Ot(n){return function r(t){for(var o,a,i,u=[],c=0,s=t.length;c<s;){if(_r(t[c]))for(o=n?r(t[c]):t[c],i=0,a=o.length;i<a;)u[u.length]=o[i],i+=1;else u[u.length]=t[c];c+=1}return u}}function sn(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}}var ko="@@transducer/init",cn="@@transducer/step",Ro="@@transducer/result",Os=function(){function n(r){this.xf=r}return n.prototype[ko]=y.init,n.prototype[Ro]=y.result,n.prototype[cn]=function(r,t){var o=this.xf[cn](r,t);return o["@@transducer/reduced"]?sn(o):o},n}(),Ss=function(){function n(r){this.xf=new Os(r)}return n.prototype[ko]=y.init,n.prototype[Ro]=y.result,n.prototype[cn]=function(r,t){return _r(t)?rr(this.xf,r,t):At(this.xf,r,[t])},n}(),ks=function(r){return new Ss(r)},Po=ks;function pn(n){return function(r){return Gt(n)(Po(r))}}var Rs=f(_(["fantasy-land/chain","chain"],pn,function(r,t){return typeof t=="function"?function(o){return r(t(o))(o)}:Ot(!1)(C(r,t))})),ie=Rs;var Ps=l(function(r,t,o){if(r>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return o<r?r:o>t?t:o}),Eo=Ps;function St(n){return new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""))}function Wr(n,r,t){if(t||(t=new Ts),Es(n))return n;var o=function(i){var u=t.get(n);if(u)return u;t.set(n,i);for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(i[c]=r?Wr(n[c],!0,t):n[c]);return i};switch(zr(n)){case"Object":return o(Object.create(Object.getPrototypeOf(n)));case"Array":return o([]);case"Date":return new Date(n.valueOf());case"RegExp":return St(n);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return n.slice();default:return n}}function Es(n){var r=typeof n;return n==null||r!="object"&&r!="function"}var Ts=function(){function n(){this.map={},this.length=0}return n.prototype.set=function(r,t){let o=this.hash(r),a=this.map[o];a||(this.map[o]=a=[]),a.push([r,t]),this.length+=1},n.prototype.hash=function(r){let t=[];for(var o in r)t.push(Object.prototype.toString.call(r[o]));return t.join()},n.prototype.get=function(r){if(this.length<=180){for(let a in this.map){let i=this.map[a];for(let u=0;u<i.length;u+=1){let c=i[u];if(c[0]===r)return c[1]}}return}let t=this.hash(r),o=this.map[t];if(o)for(let a=0;a<o.length;a+=1){let i=o[a];if(i[0]===r)return i[1]}},n}();var Ws=p(function(r){return r!=null&&typeof r.clone=="function"?r.clone():Wr(r,!0)}),et=Ws;var Ns=f(function(r,t){var o=Rr(function(u,c){var s=r(c);return u[s]===void 0&&(u[s]=[]),u[s].push(c),u},{},t),a=[];for(var i in o)a.push(o[i]);return a}),To=Ns;var Bs=p(function(r){return function(t,o){return r(t,o)?-1:r(o,t)?1:0}}),Wo=Bs;var Cs=p(function(r){return!r}),ue=Cs;var Ls=Tr(ue),kt=Ls;function ln(n,r){return function(){return r.call(this,n.apply(this,arguments))}}function pr(n,r){return function(){var t=arguments.length;if(t===0)return r();var o=arguments[t-1];return P(o)||typeof o[n]!="function"?r.apply(this,arguments):o[n].apply(o,Array.prototype.slice.call(arguments,0,t-1))}}var js=l(pr("slice",function(r,t,o){return Array.prototype.slice.call(o,r,t)})),M=js;var Ds=p(pr("tail",M(1,1/0))),nt=Ds;function Rt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return z(arguments[0].length,K(ln,arguments[0],nt(arguments)))}var Ms=p(function(r){return G(r)?r.split("").reverse().join(""):Array.prototype.slice.call(r,0).reverse()}),ot=Ms;function Nr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Rt.apply(this,ot(arguments))}var qs=Y(0),fe=qs;function fr(n){return n}var Fs=p(fr),lr=Fs;var Us=f(function(r,t){if(t.length<=0)return lr;var o=fe(t),a=nt(t);return z(o.length,function(){return Rr(function(i,u){return r.call(this,u,i)},o.apply(this,arguments),a)})}),se=Us;var zs=f(function(r,t){return se.apply(this,[r,ot(t)])}),No=zs;var Vs=f(function(r,t){if(P(r)){if(P(t))return r.concat(t);throw new TypeError(Z(t)+" is not an array")}if(G(r)){if(G(t))return r+t;throw new TypeError(Z(t)+" is not a string")}if(r!=null&&ur(r["fantasy-land/concat"]))return r["fantasy-land/concat"](t);if(r!=null&&ur(r.concat))return r.concat(t);throw new TypeError(Z(r)+' does not have a method named "concat" or "fantasy-land/concat"')}),at=Vs;var Xs=p(function(r){var t=K(J,0,C(function(o){return o[0].length},r));return z(t,function(){for(var o=0;o<r.length;){if(r[o][0].apply(this,arguments))return r[o][1].apply(this,arguments);o+=1}})}),Bo=Xs;var Ks=p(function(r){return O(r.length,r)}),it=Ks;var Hs=f(function(r,t){if(r>10)throw new Error("Constructor with greater than ten arguments");return r===0?function(){return new t}:it(Er(r,function(o,a,i,u,c,s,d,m,h,x){switch(r){case 1:return new t(o);case 2:return new t(o,a);case 3:return new t(o,a,i);case 4:return new t(o,a,i,u);case 5:return new t(o,a,i,u,c);case 6:return new t(o,a,i,u,c,s);case 7:return new t(o,a,i,u,c,s,d);case 8:return new t(o,a,i,u,c,s,d,m);case 9:return new t(o,a,i,u,c,s,d,m,h);case 10:return new t(o,a,i,u,c,s,d,m,h,x)}}))}),ce=Hs;var Qs=p(function(r){return ce(r.length,r)}),Co=Qs;var Zs=f(function(r,t){return O(K(J,0,hr("length",t)),function(){var o=arguments,a=this;return r.apply(a,nr(function(i){return i.apply(a,o)},t))})}),pe=Zs;var Js=it(function(n,r){return Rr(function(t,o){return n(o)?t+1:t},0,r)}),Lo=Js;var Gs=function(){function n(r,t,o,a){this.valueFn=r,this.valueAcc=t,this.keyFn=o,this.xf=a,this.inputs={}}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){var t;for(t in this.inputs)if(k(t,this.inputs)&&(r=this.xf["@@transducer/step"](r,this.inputs[t]),r["@@transducer/reduced"])){r=r["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){var o=this.keyFn(t);return this.inputs[o]=this.inputs[o]||[o,Wr(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],t),r},n}();function mn(n,r,t){return function(o){return new Gs(n,r,t,o)}}var Ys=ar(4,[],_([],mn,function(r,t,o,a){var i=wr(function(u,c){var s=o(c),d=r(k(s,u)?u[s]:Wr(t,!1),c);return d&&d["@@transducer/reduced"]?V(u):(u[s]=d,u)});return rr(i,{},a)})),Br=Ys;var $s=Br(function(n,r){return n+1},0),jo=$s;var rc=Ar(-1),Do=rc;var tc=f(function(r,t){return t==null||t!==t?r:t}),ut=tc;var ec=l(function(r,t,o){var a=r(t),i=r(o);return a>i?-1:a<i?1:0}),Mo=ec;var nc=function(){function n(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return n.prototype.add=function(r){return!qo(r,!0,this)},n.prototype.has=function(r){return qo(r,!1,this)},n}();function qo(n,r,t){var o=typeof n,a,i;switch(o){case"string":case"number":return n===0&&1/n===-1/0?t._items["-0"]?!0:(r&&(t._items["-0"]=!0),!1):t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?n in t._items[o]?!0:(r&&(t._items[o][n]=!0),!1):(r&&(t._items[o]={},t._items[o][n]=!0),!1);case"boolean":if(o in t._items){var u=n?1:0;return t._items[o][u]?!0:(r&&(t._items[o][u]=!0),!1)}else return r&&(t._items[o]=n?[!1,!0]:[!0,!1]),!1;case"function":return t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?Or(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1);case"undefined":return t._items[o]?!0:(r&&(t._items[o]=!0),!1);case"object":if(n===null)return t._items.null?!0:(r&&(t._items.null=!0),!1);default:return o=Object.prototype.toString.call(n),o in t._items?Or(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1)}}var yr=nc;var oc=f(function(r,t){for(var o=[],a=0,i=r.length,u=t.length,c=new yr,s=0;s<u;s+=1)c.add(t[s]);for(;a<i;)c.add(r[a])&&(o[o.length]=r[a]),a+=1;return o}),Pt=oc;var ac=l(function(r,t,o){for(var a=[],i=0,u=t.length;i<u;)!er(r,t[i],o)&&!er(r,t[i],a)&&a.push(t[i]),i+=1;return a}),Et=ac;var ic=l(function(r,t,o){var a=Array.prototype.slice.call(o,0);return a.splice(r,t),a}),le=ic;function dn(n,r){if(r==null)return r;if(H(n)&&P(r))return le(n,1,r);var t={};for(var o in r)t[o]=r[o];return delete t[n],t}function uc(n,r){if(H(n)&&P(r))return[].concat(r);var t={};for(var o in r)t[o]=r[o];return t}var fc=f(function n(r,t){if(t==null)return t;switch(r.length){case 0:return t;case 1:return dn(r[0],t);default:var o=r[0],a=Array.prototype.slice.call(r,1);return t[o]==null?uc(o,t):Pr(o,n(a,t[o]),t)}}),me=fc;var sc=f(function(r,t){return me([r],t)}),de=sc;var cc=f(function(r,t){return r/t}),Fo=cc;var pc=function(){function n(r,t){this.xf=t,this.n=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.n>0?(this.n-=1,r):this.xf["@@transducer/step"](r,t)},n}();function hn(n){return function(r){return new pc(n,r)}}var lc=f(_(["drop"],hn,function(r,t){return M(Math.max(0,r),1/0,t)})),he=lc;var mc=function(){function n(r,t){this.xf=t,this.n=r,this.i=0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){this.i+=1;var o=this.n===0?r:this.xf["@@transducer/step"](r,t);return this.n>=0&&this.i>=this.n?V(o):o},n}();function yn(n){return function(r){return new mc(n,r)}}var dc=f(_(["take"],yn,function(r,t){return M(0,r<0?1/0:r,t)})),ft=dc;function vn(n,r){return ft(n<r.length?r.length-n:0,r)}var hc=function(){function n(r,t){if(r<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.full&&(r=this.xf["@@transducer/step"](r,this.acc[this.pos])),this.store(t),r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n}();function gn(n){return function(r){return new hc(n,r)}}var yc=f(_([],gn,vn)),Uo=yc;function xn(n,r){for(var t=r.length-1;t>=0&&n(r[t]);)t-=1;return M(0,t+1,r)}var vc=function(){function n(r,t){this.f=r,this.retained=[],this.xf=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.retained=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.retain(r,t):this.flush(r,t)},n.prototype.flush=function(r,t){return r=rr(this.xf,r,this.retained),this.retained=[],this.xf["@@transducer/step"](r,t)},n.prototype.retain=function(r,t){return this.retained.push(t),r},n}();function _n(n){return function(r){return new vc(n,r)}}var gc=f(_([],_n,xn)),zo=gc;var xc=function(){function n(r,t){this.xf=t,this.pred=r,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){var o=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(o=!0):this.seenFirstValue=!0,this.lastValue=t,o?r:this.xf["@@transducer/step"](r,t)},n}();function Kr(n){return function(r){return new xc(n,r)}}var _c=Y(-1),ye=_c;var wc=f(_([],Kr,function(r,t){var o=[],a=1,i=t.length;if(i!==0)for(o[0]=t[0];a<i;)r(ye(o),t[a])||(o[o.length]=t[a]),a+=1;return o})),st=wc;var Ic=p(_([],function(){return Kr(W)},st(W))),Vo=Ic;var bc=l(function(r,t,o){return W(r(t),r(o))}),Tt=bc;var Ac=f(function(n,r){return _([],function(){return Kr(Tt(n))},st(Tt(n)))(r)}),Xo=Ac;var Oc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){if(this.f){if(this.f(t))return r;this.f=null}return this.xf["@@transducer/step"](r,t)},n}();function wn(n){return function(r){return new Oc(n,r)}}var Sc=f(_(["dropWhile"],wn,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(o,1/0,t)})),Ko=Sc;var kc=f(function(r,t){return r||t}),ve=kc;var Rc=f(function(r,t){return ur(r)?function(){return r.apply(this,arguments)||t.apply(this,arguments)}:Tr(ve)(r,t)}),Ho=Rc;function In(n){var r=Object.prototype.toString.call(n);return r==="[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]"}var Pc=p(function(r){return r!=null&&typeof r["fantasy-land/empty"]=="function"?r["fantasy-land/empty"]():r!=null&&r.constructor!=null&&typeof r.constructor["fantasy-land/empty"]=="function"?r.constructor["fantasy-land/empty"]():r!=null&&typeof r.empty=="function"?r.empty():r!=null&&r.constructor!=null&&typeof r.constructor.empty=="function"?r.constructor.empty():P(r)?[]:G(r)?"":ir(r)?{}:Jt(r)?function(){return arguments}():In(r)?r.constructor.from(""):void 0}),xe=Pc;var Ec=f(function(r,t){return he(r>=0?t.length-r:0,t)}),_e=Ec;var Tc=f(function(n,r){return W(_e(n.length,r),n)}),Qo=Tc;var Wc=l(function(r,t,o){return W(t[r],o[r])}),Zo=Wc;var Nc=f(function n(r,t){if(!ir(t)&&!P(t))return t;var o=t instanceof Array?[]:{},a,i,u;for(i in t)a=r[i],u=typeof a,o[i]=u==="function"?a(t[i]):a&&u==="object"?n(a,t[i]):t[i];return o}),Jo=Nc;var Bc=function(){function n(r,t){this.xf=t,this.f=r,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,void 0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,t))),r},n}();function bn(n){return function(r){return new Bc(n,r)}}var Cc=f(_(["find"],bn,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return t[o];o+=1}})),Go=Cc;var Lc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,-1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,this.idx))),r},n}();function An(n){return function(r){return new Lc(n,r)}}var jc=f(_([],An,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return o;o+=1}return-1})),Yo=jc;var Dc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.last))},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.last=t),r},n}();function On(n){return function(r){return new Dc(n,r)}}var Mc=f(_([],On,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return t[o];o-=1}})),$o=Mc;var qc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.lastIdx))},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),r},n}();function Sn(n){return function(r){return new qc(n,r)}}var Fc=f(_([],Sn,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return o;o-=1}return-1})),ra=Fc;var Uc=p(Ot(!0)),ta=Uc;var zc=p(function(r){return O(r.length,function(t,o){var a=Array.prototype.slice.call(arguments,0);return a[0]=o,a[1]=t,r.apply(this,a)})}),we=zc;var Vc=f(pr("forEach",function(r,t){for(var o=t.length,a=0;a<o;)r(t[a]),a+=1;return t})),ea=Vc;var Xc=f(function(r,t){for(var o=j(t),a=0;a<o.length;){var i=o[a];r(t[i],i,t),a+=1}return t}),na=Xc;var Kc=p(function(r){for(var t={},o=0;o<r.length;)t[r[o][0]]=r[o][1],o+=1;return t}),oa=Kc;var Hc=f(pr("groupBy",Br(function(n,r){return n.push(r),n},[]))),aa=Hc;var Qc=f(function(n,r){for(var t=[],o=0,a=r.length;o<a;){for(var i=o+1;i<a&&n(r[i-1],r[i]);)i+=1;t.push(r.slice(o,i)),o=i}return t}),ia=Qc;var Zc=f(function(r,t){return r>t}),ua=Zc;var Jc=f(function(r,t){return r>=t}),fa=Jc;var Gc=f(function(r,t){if(r.length===0||or(t))return!1;for(var o=t,a=0;a<r.length;)if(!or(o)&&k(r[a],o))o=o[r[a]],a+=1;else return!1;return!0}),Ie=Gc;var Yc=f(function(r,t){return Ie([r],t)}),sa=Yc;var $c=f(function(r,t){return or(t)?!1:r in t}),ca=$c;var pa=function(n,r){switch(arguments.length){case 0:return pa;case 1:return function(){return function t(o){switch(arguments.length){case 0:return t;default:return Ur(n,o)}}}();default:return Ur(n,r)}},la=pa;var rp=l(function(r,t,o){return O(Math.max(r.length,t.length,o.length),function(){return r.apply(this,arguments)?t.apply(this,arguments):o.apply(this,arguments)})}),ma=rp;var tp=Ar(1),da=tp;var ep=f(Or),Wt=ep;var np=Br(function(n,r){return r},null),ha=np;var op=f(function(r,t){return typeof t.indexOf=="function"&&!P(t)?t.indexOf(r):xt(t,r,0)}),ya=op;var ap=M(0,-1),va=ap;var ip=l(function(r,t,o){return Vr(function(a){return er(r,a,o)},t)}),ga=ip;var up=l(function(r,t,o){r=r<o.length&&r>=0?r:o.length;var a=Array.prototype.slice.call(o,0);return a.splice(r,0,t),a}),xa=up;var fp=l(function(r,t,o){return r=r<o.length&&r>=0?r:o.length,[].concat(Array.prototype.slice.call(o,0,r),t,Array.prototype.slice.call(o,r))}),_a=fp;var sp=function(){function n(r,t){this.xf=t,this.f=r,this.set=new yr}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](r,t):r},n}();function kn(n){return function(r){return new sp(n,r)}}var cp=f(_([],kn,function(n,r){for(var t=new yr,o=[],a=0,i,u;a<r.length;)u=r[a],i=n(u),t.add(i)&&o.push(u),a+=1;return o})),be=cp;var pp=be(lr),ct=pp;var lp=f(function(r,t){for(var o=new yr,a=0;a<r.length;a+=1)o.add(r[a]);return ct(Vr(o.has.bind(o),t))}),wa=lp;var mp=f(pr("intersperse",function(r,t){for(var o=[],a=0,i=t.length;a<i;)a===i-1?o.push(t[a]):o.push(t[a],r),a+=1;return o})),Ia=mp;function dp(n){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(n),t=1,o=arguments.length;t<o;){var a=arguments[t];if(a!=null)for(var i in a)k(i,a)&&(r[i]=a[i]);t+=1}return r}var Cr=typeof Object.assign=="function"?Object.assign:dp;var hp=f(function(r,t){var o={};return o[r]=t,o}),Ae=hp;var yp={"@@transducer/init":Array,"@@transducer/step":function(n,r){return n.push(r),n},"@@transducer/result":fr},vp={"@@transducer/init":String,"@@transducer/step":function(n,r){return n+r},"@@transducer/result":fr},gp={"@@transducer/init":Object,"@@transducer/step":function(n,r){return Cr(n,_r(r)?Ae(r[0],r[1]):r)},"@@transducer/result":fr};function Rn(n){if(Fr(n))return n;if(_r(n))return yp;if(typeof n=="string")return vp;if(typeof n=="object")return gp;throw new Error("Cannot create transformer for "+n)}var xp=l(function(r,t,o){var a=t(Fr(r)?r:Rn(r));return rr(a,a["@@transducer/init"](),o)}),ba=xp;var _p=p(function(r){for(var t=j(r),o=t.length,a=0,i={};a<o;){var u=t[a],c=r[u],s=k(c,i)?i[c]:i[c]=[];s[s.length]=u,a+=1}return i}),Aa=_p;var wp=p(function(r){for(var t=j(r),o=t.length,a=0,i={};a<o;){var u=t[a];i[r[u]]=u,a+=1}return i}),Oa=wp;var Ip=f(function(r,t){return O(r+1,function(){var o=arguments[r];if(o!=null&&ur(o[t]))return o[t].apply(o,Array.prototype.slice.call(arguments,0,r));throw new TypeError(Z(o)+' does not have a method named "'+t+'"')})}),vr=Ip;var bp=f(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),Hr=bp;var Ap=p(function(r){return r!=null&&W(r,xe(r))}),Nt=Ap;var Op=p(function(r){return!or(r)}),Oe=Op;var Sp=vr(1,"join"),Sa=Sp;var kp=p(function(r){return pe(function(){return Array.prototype.slice.call(arguments,0)},r)}),Se=kp;var Rp=p(function(r){var t,o=[];for(t in r)o[o.length]=t;return o}),ka=Rp;var Pp=f(function(r,t){if(typeof t.lastIndexOf=="function"&&!P(t))return t.lastIndexOf(r);for(var o=t.length-1;o>=0;){if(W(t[o],r))return o;o-=1}return-1}),Ra=Pp;function pt(n){return Object.prototype.toString.call(n)==="[object Number]"}var Ep=p(function(r){return r!=null&&pt(r.length)?r.length:NaN}),ke=Ep;var Tp=f(function(r,t){return function(o){return function(a){return C(function(i){return t(i,a)},o(r(a)))}}}),Lr=Tp;var Wp=l(function(r,t,o){return Ht(r,kr(t),o)}),Re=Wp;var Np=p(function(r){return Lr(Y(r),Re(r))}),Pa=Np;var Bp=f(function(r,t){return r.map(function(o){for(var a=t,i=0,u;i<o.length;){if(a==null)return;u=o[i],a=H(u)?Y(u,a):a[u],i+=1}return a})}),Pe=Bp;var Cp=f(function(r,t){return Pe([r],t)[0]}),sr=Cp;var Lp=p(function(r){return Lr(sr(r),tt(r))}),Ea=Lp;var jp=p(function(r){return Lr($(r),Pr(r))}),Ta=jp;var Dp=f(function(r,t){return r<t}),Wa=Dp;var Mp=f(function(r,t){return r<=t}),Na=Mp;var qp=l(function(r,t,o){for(var a=0,i=o.length,u=[],c=[t];a<i;)c=r(c[0],o[a]),u[a]=c[1],a+=1;return[c[0],u]}),Ba=qp;var Fp=l(function(r,t,o){for(var a=o.length-1,i=[],u=[t];a>=0;)u=r(u[0],o[a]),i[a]=u[1],a-=1;return[u[0],i]}),Ca=Fp;var Up=f(function(r,t){return cr(function(o,a){return o[a]=r(t[a],a,t),o},{},j(t))}),Bt=Up;var zp=f(function(r,t){return t.match(r)||[]}),La=zp;var Vp=f(function(r,t){return H(r)?!H(t)||t<1?NaN:(r%t+t)%t:NaN}),ja=Vp;var Xp=l(function(r,t,o){var a=r(o);return J(r(t),a)===a?o:t}),Da=Xp;var Kp=K(Ar,0),Ee=Kp;var Hp=p(function(r){return Ee(r)/r.length}),Te=Hp;var Qp=p(function(r){var t=r.length;if(t===0)return NaN;var o=2-t%2,a=(t-o)/2;return Te(Array.prototype.slice.call(r,0).sort(function(i,u){return i<u?-1:i>u?1:0}).slice(a,a+o))}),Ma=Qp;var Zp=f(function(r,t){var o={};return z(t.length,function(){var a=r.apply(this,arguments);return k(a,o)||(o[a]=t.apply(this,arguments)),o[a]})}),qa=Zp;var Jp=p(function(r){return Cr.apply(null,[{}].concat(r))}),Fa=Jp;var Gp=l(function(r,t,o){var a={},i;t=t||{},o=o||{};for(i in t)k(i,t)&&(a[i]=k(i,o)?r(i,t[i],o[i]):t[i]);for(i in o)k(i,o)&&!k(i,a)&&(a[i]=o[i]);return a}),lt=Gp;var Yp=l(function n(r,t,o){return lt(function(a,i,u){return ir(i)&&ir(u)?n(r,i,u):r(a,i,u)},t,o)}),jr=Yp;var $p=f(function(r,t){return jr(function(o,a,i){return a},r,t)}),Ua=$p;var rl=f(function(r,t){return jr(function(o,a,i){return i},r,t)}),We=rl;var tl=l(function(r,t,o){return jr(function(a,i,u){return r(i,u)},t,o)}),za=tl;var el=f(function(r,t){return Cr({},t,r)}),Ct=el;var nl=f(function(r,t){return Cr({},r,t)}),Ne=nl;var ol=l(function(r,t,o){return lt(function(a,i,u){return r(i,u)},t,o)}),Va=ol;var al=f(function(r,t){if(r===t)return r;function o(s,d){if(s<d!=d<s)return d<s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=Z(r),c=o(u,Z(t));return c!==void 0?c===u?r:t:r}),Be=al;var il=l(function(r,t,o){var a=r(o);return Be(r(t),a)===a?o:t}),Xa=il;function Pn(n,r,t){if(H(n)&&P(t)){var o=[].concat(t);return o[n]=r(o[n]),o}var a={};for(var i in t)a[i]=t[i];return a[n]=r(a[n]),a}var ul=l(function n(r,t,o){if(!ir(o)&&!P(o))return o;if(r.length===0)return t(o);var a=r[0];if(!k(a,o))return o;if(r.length===1)return Pn(a,t,o);var i=n(Array.prototype.slice.call(r,1),t,o[a]);return i===o[a]?o:Xr(a,i,o)}),Ce=ul;var fl=l(function(r,t,o){return Ce([r],t,o)}),Ka=fl;var sl=f(function(r,t){return r%t}),Ha=sl;var cl=l(function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=a.splice(i,1);return i<0||i>=t.length||u<0||u>=t.length?t:[].concat(a.slice(0,u)).concat(c).concat(a.slice(u,t.length))}),Qa=cl;var pl=f(function(r,t){return r*t}),Le=pl;var ll=f((n,r)=>t=>n.call(void 0,We(r,t))),Za=ll;var ml=p(function(r){return-r}),Ja=ml;var dl=f(function(r,t){return Qt(It(r),t)}),Ga=dl;var hl=p(function(r){var t=r<0?1:r+1;return O(t,function(){return Y(r,arguments)})}),Ya=hl;var yl=l(function(r,t,o){return r(t(o))}),$a=yl;var vl=f(function(r,t){return typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"](t):typeof r.of=="function"?r.of(t):[t]}),ri=vl;var gl=f(function(r,t){for(var o={},a={},i=0,u=r.length;i<u;)a[r[i]]=1,i+=1;for(var c in t)a.hasOwnProperty(c)||(o[c]=t[c]);return o}),ti=gl;var xl=ar(4,[],function(r,t,o,a){return r(t(o),t(a))}),ei=xl;var _l=p(function(r){var t=!1,o;return z(r.length,function(){return t||(t=!0,o=r.apply(this,arguments)),o})}),ni=_l;function Lt(n,r){if(r==null||!ur(r.then))throw new TypeError("`"+n+"` expected a Promise, received "+Yr(r,[]))}var wl=f(function(r,t){return Lt("otherwise",t),t.then(null,r)}),oi=wl;var ai=function(n){return{value:n,map:function(r){return ai(r(n))}}},Il=l(function(r,t,o){return r(function(a){return ai(t(a))})(o).value}),je=Il;var bl=f(function(r,t){return[r,t]}),ii=bl;function jt(n){return f(function(r,t){return z(Math.max(0,r.length-t.length),function(){return r.apply(this,n(t,arguments))})})}var Al=jt(B),ui=Al;var Ol=jt(we(B)),fi=Ol;var Sl=Se([Gr,Sr]),si=Sl;var kl=l(function(r,t,o){return W(sr(t,o),r)}),ci=kl;var Rl=l(function(r,t,o){return ut(r,sr(t,o))}),pi=Rl;var Pl=l(function(r,t,o){return r(sr(t,o))}),li=Pl;var El=f(function(r,t){for(var o={},a=0;a<r.length;)r[a]in t&&(o[r[a]]=t[r[a]]),a+=1;return o}),mi=El;var Tl=f(function(r,t){for(var o={},a=0,i=r.length;a<i;){var u=r[a];o[u]=t[u],a+=1}return o}),De=Tl;var Wl=f(function(r,t){var o={};for(var a in t)r(t[a],a,t)&&(o[a]=t[a]);return o}),di=Wl;var Nl=f(function(r,t){return B([r],t)}),Me=Nl;var Bl=K(Le,1),hi=Bl;var Cl=f(function(r,t){return O(t.length,function(){for(var o=[],a=0;a<t.length;)o.push(t[a].call(this,arguments[a])),a+=1;return r.apply(this,o.concat(Array.prototype.slice.call(arguments,t.length)))})}),qe=Cl;var Ll=qe(nr,[De,lr]),yi=Ll;function Dt(n,r,t){return function(o){return r(t(n(o)))}}var jl=function(){function n(r,t,o){this.xf=o,this.f=r,this.g=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,Dt(this.f,this.g,t))},n}();function En(n,r){return function(t){return new jl(n,r,t)}}var Dl=l(_(["fantasy-land/promap","promap"],En,Dt)),vi=Dl;var Ml=l(function(r,t,o){return W(r,$(t,o))}),gi=Ml;var ql=l(function(r,t,o){return Hr(r,$(t,o))}),xi=ql;var Fl=l(function(r,t,o){return ut(r,$(t,o))}),_i=Fl;var Ul=l(function(r,t,o){return r($(t,o))}),wi=Ul;var zl=f(function(r,t){return r.map(function(o){return sr([o],t)})}),Ii=zl;var Vl=f(function(r,t){if(!(pt(r)&&pt(t)))throw new TypeError("Both arguments to range must be numbers");for(var o=[],a=r;a<t;)o.push(a),a+=1;return o}),bi=Vl;var Xl=l(function(r,t,o){for(var a=o.length-1;a>=0;){if(t=r(o[a],t),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}a-=1}return t}),Fe=Xl;var Kl=ar(4,[],function(r,t,o,a){var i=wr(function(u,c){return r(u,c)?t(u,c):V(u)});return rr(i,o,a)}),Ai=Kl;var Hl=p(V),Oi=Hl;var Ql=f(function(r,t){var o=Number(t),a=0,i;if(o<0||isNaN(o))throw new RangeError("n must be a non-negative number");for(i=[];a<o;)i.push(r(a)),a+=1;return i}),Ue=Ql;var Zl=f(function(r,t){return Ue(kr(r),t)}),Si=Zl;var Jl=l(function(r,t,o){return o.replace(r,t)}),ki=Jl;var Ri="@@transducer/init",Tn="@@transducer/step",Gl=function(){function n(r,t,o){this.xf=o,this.f=r,this.acc=t}return n.prototype[Ri]=function(){return this.xf[Tn](this.xf[Ri](),this.acc)},n.prototype["@@transducer/result"]=y.result,n.prototype[Tn]=function(r,t){return r["@@transducer/reduced"]?r:(this.acc=this.f(this.acc,t),this.xf[Tn](r,this.acc))},n}(),Yl=l(function(r,t,o){return new Gl(r,t,o)}),Pi=Yl;var $l=l(_([],Pi,function(r,t,o){for(var a=0,i=o.length,u=[t];a<i;)t=r(t,o[a]),u[a+1]=t,a+=1;return u})),Ei=$l;var rm=f(function(r,t){var o=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,a={"fantasy-land/of":o};return typeof t["fantasy-land/traverse"]=="function"?t["fantasy-land/traverse"](a,fr):typeof t.traverse=="function"?t.traverse(a,fr):Fe(function(i,u){return $r(C(Me,i),u)},o([]),t)}),ze=rm;var tm=l(function(r,t,o){return je(r,kr(t),o)}),Ti=tm;var em=f(function(r,t){return Array.prototype.slice.call(t,0).sort(r)}),Wi=em;var nm=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){var i=r(o),u=r(a);return i<u?-1:i>u?1:0})}),Ni=nm;var om=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){for(var i=0,u=0;i===0&&u<r.length;)i=r[u](o,a),u+=1;return i})}),Bi=om;var am=vr(1,"split"),Ci=am;var im=f(function(r,t){return[M(0,r,t),M(r,ke(t),t)]}),Li=im;var um=f(function(r,t){if(r<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var o=[],a=0;a<t.length;)o.push(M(a,a+=r,t));return o}),ji=um;var fm=f(function(r,t){for(var o=0,a=t.length,i=[];o<a&&!r(t[o]);)i.push(t[o]),o+=1;return[i,Array.prototype.slice.call(t,o)]}),Di=fm;var sm=ar(2,[],function(r,t){for(var o=[],a=[],i=0;i<t.length;i=i+1)r(t[i])||a.push(t[i]),(i<t.length-1&&r(t[i+1])||i===t.length-1)&&a.length>0&&(o.push(a),a=[]);return o}),Mi=sm;var cm=f(function(n,r){return W(ft(n.length,r),n)}),qi=cm;var pm=f(function(r,t){return Number(r)-Number(t)}),Fi=pm;var lm=function(n,r,t){var o=et(t),a=Object.getOwnPropertyNames(o);if(a.includes(n)&&a.includes(r)){var i=o[n];o[n]=o[r],o[r]=i}return o},Ui=function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=Math.min(i,u),s=Math.max(i,u);return i<0||i>o||u<0||u>o||i===u||(a=[].concat(a.slice(0,c)).concat([a[s]]).concat(a.slice(c+1,s)).concat([a[c]]).concat(a.slice(s+1,o))),a},mm=function(n,r,t){var o=Ui(n,r,t);return P(o)?o.join(""):o},dm=l(function(n,r,t){return P(t)?Ui(n,r,t):G(t)?mm(n,r,t):lm(n,r,t)}),zi=dm;var hm=f(function(r,t){return at(Pt(r,t),Pt(t,r))}),Vi=hm;var ym=l(function(r,t,o){return at(Et(r,t,o),Et(r,o,t))}),Xi=ym;var vm=f(function(r,t){for(var o=t.length-1;o>=0&&r(t[o]);)o-=1;return M(o+1,1/0,t)}),Ki=vm;var gm=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):V(r)},n}();function Wn(n){return function(r){return new gm(n,r)}}var xm=f(_(["takeWhile"],Wn,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(0,o,t)})),Hi=xm;var _m=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t),this.xf["@@transducer/step"](r,t)},n}();function Nn(n){return function(r){return new _m(n,r)}}var wm=f(_([],Nn,function(r,t){return r(t),t})),Mt=wm;function Bn(n){return Object.prototype.toString.call(n)==="[object RegExp]"}var Im=f(function(r,t){if(!Bn(r))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+Z(r));return St(r).test(t)}),Qi=Im;var bm=f(function(r,t){return Lt("andThen",t),t.then(r)}),Zi=bm;var Am=vr(0,"toLowerCase"),Ji=Am;var Om=p(function(r){var t=[];for(var o in r)k(o,r)&&(t[t.length]=[o,r[o]]);return t}),Gi=Om;var Sm=p(function(r){var t=[];for(var o in r)t[t.length]=[o,r[o]];return t}),Yi=Sm;var km=vr(0,"toUpperCase"),$i=km;var Rm=O(4,function(r,t,o,a){return rr(r(typeof t=="function"?wr(t):t),o,a)}),ru=Rm;var Pm=p(function(r){for(var t=0,o=[];t<r.length;){for(var a=r[t],i=0;i<a.length;)typeof o[i]>"u"&&(o[i]=[]),o[i].push(a[i]),i+=1;t+=1}return o}),tu=Pm;var Em=l(function(r,t,o){var a=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,i={"fantasy-land/of":a};return typeof o["fantasy-land/traverse"]=="function"?o["fantasy-land/traverse"](i,t):typeof o.traverse=="function"?o.traverse(i,t):ze(i,C(t,o))}),eu=Em;var qt=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Tm="\u200B",Wm=typeof String.prototype.trim=="function",Nm=!Wm||qt.trim()||!Tm.trim()?p(function(r){var t=new RegExp("^["+qt+"]["+qt+"]*"),o=new RegExp("["+qt+"]["+qt+"]*$");return r.replace(t,"").replace(o,"")}):p(function(r){return r.trim()}),nu=Nm;var Bm=f(function(r,t){return z(r.length,function(){try{return r.apply(this,arguments)}catch(o){return t.apply(this,B([o],arguments))}})}),ou=Bm;var Cm=p(function(r){return function(){return r(Array.prototype.slice.call(arguments,0))}}),au=Cm;var Lm=p(function(r){return Er(1,r)}),iu=Lm;var jm=f(function(r,t){return O(r,function(){for(var o=1,a=t,i=0,u;o<=r&&typeof a=="function";)u=o===r?arguments.length:i+a.length,a=a.apply(this,Array.prototype.slice.call(arguments,i,u)),o+=1,i=u;return a})}),uu=jm;var Dm=f(function(r,t){for(var o=r(t),a=[];o&&o.length;)a[a.length]=o[0],o=r(o[1]);return a}),fu=Dm;var Mm=f(Nr(ct,B)),su=Mm;var qm=function(){function n(r,t){this.xf=t,this.pred=r,this.items=[]}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return er(this.pred,t,this.items)?r:(this.items.push(t),this.xf["@@transducer/step"](r,t))},n}();function Cn(n){return function(r){return new qm(n,r)}}var Fm=f(_([],Cn,function(n,r){for(var t=0,o=r.length,a=[],i;t<o;)i=r[t],er(n,i,a)||(a[a.length]=i),t+=1;return a})),Ve=Fm;var Um=l(function(r,t,o){return Ve(r,B(t,o))}),cu=Um;var zm=l(function(r,t,o){return r(o)?o:t(o)}),pu=zm;var Vm=ie(fr),Xe=Vm;var Xm=l(function(r,t,o){for(var a=o;!r(a);)a=t(a);return a}),lu=Xm;var Km=f(function(n,r){return n in r&&P(r[n])?nr(function(t){return Xr(n,t,r)},r[n]):[r]}),mu=Km;var Hm=p(function(r){var t,o=[];for(t in r)o[o.length]=r[t];return o}),du=Hm;var Qm=function(n){return{value:n,"fantasy-land/map":function(){return this}}},Zm=f(function(r,t){return r(Qm)(t).value}),hu=Zm;var Jm=l(function(r,t,o){return r(o)?t(o):o}),Ft=Jm;var Gm=f(function(r,t){for(var o in r)if(k(o,r)&&!r[o](t[o]))return!1;return!0}),Ke=Gm;var Ym=f(function(r,t){for(var o in r)if(k(o,r)&&r[o](t[o]))return!0;return!1}),yu=Ym;var $m=f(function(r,t){return Ke(C(W,r),t)}),He=$m;var rd=f(function(r,t){for(var o=new yr,a=0;a<r.length;a+=1)o.add(r[a]);return Sr(o.has.bind(o),t)}),vu=rd;var td=f(function(r,t){return!!(!r^!t)}),gu=td;var ed=f(function(r,t){for(var o=0,a=r.length,i,u=t.length,c=[];o<a;){for(i=0;i<u;)c[c.length]=[r[o],t[i]],i+=1;o+=1}return c}),xu=ed;var nd=f(function(r,t){for(var o=[],a=0,i=Math.min(r.length,t.length);a<i;)o[a]=[r[a],t[a]],a+=1;return o}),_u=nd;var od=f(function(r,t){for(var o=0,a=Math.min(r.length,t.length),i={};o<a;)i[r[o]]=t[o],o+=1;return i}),wu=od;var ad=l(function(r,t,o){for(var a=[],i=0,u=Math.min(t.length,o.length);i<u;)a[i]=r(t[i],o[i]),i+=1;return a}),Iu=ad;var id=p(function(r){return O(r.length,function(){var o=arguments;return function(){return r.apply(this,o)}})}),bu=id;var Pu={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},qn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},ud=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Qe={CSS:{},springs:{}};function gr(n,r,t){return Math.min(Math.max(n,r),t)}function Ut(n,r){return n.indexOf(r)>-1}function jn(n,r){return n.apply(null,r)}var g={arr:function(n){return Array.isArray(n)},obj:function(n){return Ut(Object.prototype.toString.call(n),"Object")},pth:function(n){return g.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||g.svg(n)},str:function(n){return typeof n=="string"},fnc:function(n){return typeof n=="function"},und:function(n){return typeof n>"u"},nil:function(n){return g.und(n)||n===null},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return g.hex(n)||g.rgb(n)||g.hsl(n)},key:function(n){return!Pu.hasOwnProperty(n)&&!qn.hasOwnProperty(n)&&n!=="targets"&&n!=="keyframes"}};function Eu(n){var r=/\(([^)]+)\)/.exec(n);return r?r[1].split(",").map(function(t){return parseFloat(t)}):[]}function Tu(n,r){var t=Eu(n),o=gr(g.und(t[0])?1:t[0],.1,100),a=gr(g.und(t[1])?100:t[1],.1,100),i=gr(g.und(t[2])?10:t[2],.1,100),u=gr(g.und(t[3])?0:t[3],.1,100),c=Math.sqrt(a/o),s=i/(2*Math.sqrt(a*o)),d=s<1?c*Math.sqrt(1-s*s):0,m=1,h=s<1?(s*c+-u)/d:-u+c;function x(v){var I=r?r*v/1e3:v;return s<1?I=Math.exp(-I*s*c)*(m*Math.cos(d*I)+h*Math.sin(d*I)):I=(m+h*I)*Math.exp(-I*c),v===0||v===1?v:1-I}function N(){var v=Qe.springs[n];if(v)return v;for(var I=1/6,b=0,L=0;;)if(b+=I,x(b)===1){if(L++,L>=16)break}else L=0;var q=b*I*1e3;return Qe.springs[n]=q,q}return r?x:N}function fd(n){return n===void 0&&(n=10),function(r){return Math.ceil(gr(r,1e-6,1)*n)*(1/n)}}var sd=function(){var n=11,r=1/(n-1);function t(m,h){return 1-3*h+3*m}function o(m,h){return 3*h-6*m}function a(m){return 3*m}function i(m,h,x){return((t(h,x)*m+o(h,x))*m+a(h))*m}function u(m,h,x){return 3*t(h,x)*m*m+2*o(h,x)*m+a(h)}function c(m,h,x,N,v){var I,b,L=0;do b=h+(x-h)/2,I=i(b,N,v)-m,I>0?x=b:h=b;while(Math.abs(I)>1e-7&&++L<10);return b}function s(m,h,x,N){for(var v=0;v<4;++v){var I=u(h,x,N);if(I===0)return h;var b=i(h,x,N)-m;h-=b/I}return h}function d(m,h,x,N){if(!(0<=m&&m<=1&&0<=x&&x<=1))return;var v=new Float32Array(n);if(m!==h||x!==N)for(var I=0;I<n;++I)v[I]=i(I*r,m,x);function b(L){for(var q=0,w=1,A=n-1;w!==A&&v[w]<=L;++w)q+=r;--w;var Q=(L-v[w])/(v[w+1]-v[w]),tr=q+Q*r,D=u(tr,m,x);return D>=.001?s(L,tr,m,x):D===0?tr:c(L,q,q+r,m,x)}return function(L){return m===h&&x===N||L===0||L===1?L:i(b(L),h,N)}}return d}(),Wu=function(){var n={linear:function(){return function(o){return o}}},r={Sine:function(){return function(o){return 1-Math.cos(o*Math.PI/2)}},Circ:function(){return function(o){return 1-Math.sqrt(1-o*o)}},Back:function(){return function(o){return o*o*(3*o-2)}},Bounce:function(){return function(o){for(var a,i=4;o<((a=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((a*3-2)/22-o,2)}},Elastic:function(o,a){o===void 0&&(o=1),a===void 0&&(a=.5);var i=gr(o,1,10),u=gr(a,.1,2);return function(c){return c===0||c===1?c:-i*Math.pow(2,10*(c-1))*Math.sin((c-1-u/(Math.PI*2)*Math.asin(1/i))*(Math.PI*2)/u)}}},t=["Quad","Cubic","Quart","Quint","Expo"];return t.forEach(function(o,a){r[o]=function(){return function(i){return Math.pow(i,a+2)}}}),Object.keys(r).forEach(function(o){var a=r[o];n["easeIn"+o]=a,n["easeOut"+o]=function(i,u){return function(c){return 1-a(i,u)(1-c)}},n["easeInOut"+o]=function(i,u){return function(c){return c<.5?a(i,u)(c*2)/2:1-a(i,u)(c*-2+2)/2}},n["easeOutIn"+o]=function(i,u){return function(c){return c<.5?(1-a(i,u)(1-c*2))/2:(a(i,u)(c*2-1)+1)/2}}}),n}();function Fn(n,r){if(g.fnc(n))return n;var t=n.split("(")[0],o=Wu[t],a=Eu(n);switch(t){case"spring":return Tu(n,r);case"cubicBezier":return jn(sd,a);case"steps":return jn(fd,a);default:return jn(o,a)}}function Nu(n){try{var r=document.querySelectorAll(n);return r}catch{return}}function Ze(n,r){for(var t=n.length,o=arguments.length>=2?arguments[1]:void 0,a=[],i=0;i<t;i++)if(i in n){var u=n[i];r.call(o,u,i,n)&&a.push(u)}return a}function Je(n){return n.reduce(function(r,t){return r.concat(g.arr(t)?Je(t):t)},[])}function Au(n){return g.arr(n)?n:(g.str(n)&&(n=Nu(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function Un(n,r){return n.some(function(t){return t===r})}function zn(n){var r={};for(var t in n)r[t]=n[t];return r}function Dn(n,r){var t=zn(n);for(var o in n)t[o]=r.hasOwnProperty(o)?r[o]:n[o];return t}function Ge(n,r){var t=zn(n);for(var o in r)t[o]=g.und(n[o])?r[o]:n[o];return t}function cd(n){var r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);return r?"rgba("+r[1]+",1)":n}function pd(n){var r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t=n.replace(r,function(c,s,d,m){return s+s+d+d+m+m}),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),a=parseInt(o[1],16),i=parseInt(o[2],16),u=parseInt(o[3],16);return"rgba("+a+","+i+","+u+",1)"}function ld(n){var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),t=parseInt(r[1],10)/360,o=parseInt(r[2],10)/100,a=parseInt(r[3],10)/100,i=r[4]||1;function u(x,N,v){return v<0&&(v+=1),v>1&&(v-=1),v<1/6?x+(N-x)*6*v:v<1/2?N:v<2/3?x+(N-x)*(2/3-v)*6:x}var c,s,d;if(o==0)c=s=d=a;else{var m=a<.5?a*(1+o):a+o-a*o,h=2*a-m;c=u(h,m,t+1/3),s=u(h,m,t),d=u(h,m,t-1/3)}return"rgba("+c*255+","+s*255+","+d*255+","+i+")"}function md(n){if(g.rgb(n))return cd(n);if(g.hex(n))return pd(n);if(g.hsl(n))return ld(n)}function Ir(n){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(r)return r[1]}function dd(n){if(Ut(n,"translate")||n==="perspective")return"px";if(Ut(n,"rotate")||Ut(n,"skew"))return"deg"}function Mn(n,r){return g.fnc(n)?n(r.target,r.id,r.total):n}function xr(n,r){return n.getAttribute(r)}function Vn(n,r,t){var o=Ir(r);if(Un([t,"deg","rad","turn"],o))return r;var a=Qe.CSS[r+t];if(!g.und(a))return a;var i=100,u=document.createElement(n.tagName),c=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;c.appendChild(u),u.style.position="absolute",u.style.width=i+t;var s=i/u.offsetWidth;c.removeChild(u);var d=s*parseFloat(r);return Qe.CSS[r+t]=d,d}function Bu(n,r,t){if(r in n.style){var o=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[r]||getComputedStyle(n).getPropertyValue(o)||"0";return t?Vn(n,a,t):a}}function Xn(n,r){if(g.dom(n)&&!g.inp(n)&&(!g.nil(xr(n,r))||g.svg(n)&&n[r]))return"attribute";if(g.dom(n)&&Un(ud,r))return"transform";if(g.dom(n)&&r!=="transform"&&Bu(n,r))return"css";if(n[r]!=null)return"object"}function Cu(n){if(g.dom(n)){for(var r=n.style.transform||"",t=/(\w+)\(([^)]*)\)/g,o=new Map,a;a=t.exec(r);)o.set(a[1],a[2]);return o}}function hd(n,r,t,o){var a=Ut(r,"scale")?1:0+dd(r),i=Cu(n).get(r)||a;return t&&(t.transforms.list.set(r,i),t.transforms.last=r),o?Vn(n,i,o):i}function Kn(n,r,t,o){switch(Xn(n,r)){case"transform":return hd(n,r,o,t);case"css":return Bu(n,r,t);case"attribute":return xr(n,r);default:return n[r]||0}}function Hn(n,r){var t=/^(\*=|\+=|-=)/.exec(n);if(!t)return n;var o=Ir(n)||0,a=parseFloat(r),i=parseFloat(n.replace(t[0],""));switch(t[0][0]){case"+":return a+i+o;case"-":return a-i+o;case"*":return a*i+o}}function Lu(n,r){if(g.col(n))return md(n);if(/\s/g.test(n))return n;var t=Ir(n),o=t?n.substr(0,n.length-t.length):n;return r?o+r:o}function Qn(n,r){return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}function yd(n){return Math.PI*2*xr(n,"r")}function vd(n){return xr(n,"width")*2+xr(n,"height")*2}function gd(n){return Qn({x:xr(n,"x1"),y:xr(n,"y1")},{x:xr(n,"x2"),y:xr(n,"y2")})}function ju(n){for(var r=n.points,t=0,o,a=0;a<r.numberOfItems;a++){var i=r.getItem(a);a>0&&(t+=Qn(o,i)),o=i}return t}function xd(n){var r=n.points;return ju(n)+Qn(r.getItem(r.numberOfItems-1),r.getItem(0))}function Du(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return yd(n);case"rect":return vd(n);case"line":return gd(n);case"polyline":return ju(n);case"polygon":return xd(n)}}function _d(n){var r=Du(n);return n.setAttribute("stroke-dasharray",r),r}function wd(n){for(var r=n.parentNode;g.svg(r)&&g.svg(r.parentNode);)r=r.parentNode;return r}function Mu(n,r){var t=r||{},o=t.el||wd(n),a=o.getBoundingClientRect(),i=xr(o,"viewBox"),u=a.width,c=a.height,s=t.viewBox||(i?i.split(" "):[0,0,u,c]);return{el:o,viewBox:s,x:s[0]/1,y:s[1]/1,w:u,h:c,vW:s[2],vH:s[3]}}function Id(n,r){var t=g.str(n)?Nu(n)[0]:n,o=r||100;return function(a){return{property:a,el:t,svg:Mu(t),totalLength:Du(t)*(o/100)}}}function bd(n,r,t){function o(m){m===void 0&&(m=0);var h=r+m>=1?r+m:0;return n.el.getPointAtLength(h)}var a=Mu(n.el,n.svg),i=o(),u=o(-1),c=o(1),s=t?1:a.w/a.vW,d=t?1:a.h/a.vH;switch(n.property){case"x":return(i.x-a.x)*s;case"y":return(i.y-a.y)*d;case"angle":return Math.atan2(c.y-u.y,c.x-u.x)*180/Math.PI}}function Ou(n,r){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,o=Lu(g.pth(n)?n.totalLength:n,r)+"";return{original:o,numbers:o.match(t)?o.match(t).map(Number):[0],strings:g.str(n)||r?o.split(t):[]}}function Zn(n){var r=n?Je(g.arr(n)?n.map(Au):Au(n)):[];return Ze(r,function(t,o,a){return a.indexOf(t)===o})}function qu(n){var r=Zn(n);return r.map(function(t,o){return{target:t,id:o,total:r.length,transforms:{list:Cu(t)}}})}function Ad(n,r){var t=zn(r);if(/^spring/.test(t.easing)&&(t.duration=Tu(t.easing)),g.arr(n)){var o=n.length,a=o===2&&!g.obj(n[0]);a?n={value:n}:g.fnc(r.duration)||(t.duration=r.duration/o)}var i=g.arr(n)?n:[n];return i.map(function(u,c){var s=g.obj(u)&&!g.pth(u)?u:{value:u};return g.und(s.delay)&&(s.delay=c?0:r.delay),g.und(s.endDelay)&&(s.endDelay=c===i.length-1?r.endDelay:0),s}).map(function(u){return Ge(u,t)})}function Od(n){for(var r=Ze(Je(n.map(function(i){return Object.keys(i)})),function(i){return g.key(i)}).reduce(function(i,u){return i.indexOf(u)<0&&i.push(u),i},[]),t={},o=function(i){var u=r[i];t[u]=n.map(function(c){var s={};for(var d in c)g.key(d)?d==u&&(s.value=c[d]):s[d]=c[d];return s})},a=0;a<r.length;a++)o(a);return t}function Sd(n,r){var t=[],o=r.keyframes;o&&(r=Ge(Od(o),r));for(var a in r)g.key(a)&&t.push({name:a,tweens:Ad(r[a],n)});return t}function kd(n,r){var t={};for(var o in n){var a=Mn(n[o],r);g.arr(a)&&(a=a.map(function(i){return Mn(i,r)}),a.length===1&&(a=a[0])),t[o]=a}return t.duration=parseFloat(t.duration),t.delay=parseFloat(t.delay),t}function Rd(n,r){var t;return n.tweens.map(function(o){var a=kd(o,r),i=a.value,u=g.arr(i)?i[1]:i,c=Ir(u),s=Kn(r.target,n.name,c,r),d=t?t.to.original:s,m=g.arr(i)?i[0]:d,h=Ir(m)||Ir(s),x=c||h;return g.und(u)&&(u=d),a.from=Ou(m,x),a.to=Ou(Hn(u,m),x),a.start=t?t.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=Fn(a.easing,a.duration),a.isPath=g.pth(i),a.isPathTargetInsideSVG=a.isPath&&g.svg(r.target),a.isColor=g.col(a.from.original),a.isColor&&(a.round=1),t=a,a})}var Fu={css:function(n,r,t){return n.style[r]=t},attribute:function(n,r,t){return n.setAttribute(r,t)},object:function(n,r,t){return n[r]=t},transform:function(n,r,t,o,a){if(o.list.set(r,t),r===o.last||a){var i="";o.list.forEach(function(u,c){i+=c+"("+u+") "}),n.style.transform=i}}};function Uu(n,r){var t=qu(n);t.forEach(function(o){for(var a in r){var i=Mn(r[a],o),u=o.target,c=Ir(i),s=Kn(u,a,c,o),d=c||Ir(s),m=Hn(Lu(i,d),s),h=Xn(u,a);Fu[h](u,a,m,o.transforms,!0)}})}function Pd(n,r){var t=Xn(n.target,r.name);if(t){var o=Rd(r,n),a=o[o.length-1];return{type:t,property:r.name,animatable:n,tweens:o,duration:a.end,delay:o[0].delay,endDelay:a.endDelay}}}function Ed(n,r){return Ze(Je(n.map(function(t){return r.map(function(o){return Pd(t,o)})})),function(t){return!g.und(t)})}function zu(n,r){var t=n.length,o=function(i){return i.timelineOffset?i.timelineOffset:0},a={};return a.duration=t?Math.max.apply(Math,n.map(function(i){return o(i)+i.duration})):r.duration,a.delay=t?Math.min.apply(Math,n.map(function(i){return o(i)+i.delay})):r.delay,a.endDelay=t?a.duration-Math.max.apply(Math,n.map(function(i){return o(i)+i.duration-i.endDelay})):r.endDelay,a}var Su=0;function Td(n){var r=Dn(Pu,n),t=Dn(qn,n),o=Sd(t,n),a=qu(n.targets),i=Ed(a,o),u=zu(i,t),c=Su;return Su++,Ge(r,{id:c,children:[],animatables:a,animations:i,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}var mr=[],Vu=function(){var n;function r(){!n&&(!ku()||!U.suspendWhenDocumentHidden)&&mr.length>0&&(n=requestAnimationFrame(t))}function t(a){for(var i=mr.length,u=0;u<i;){var c=mr[u];c.paused?(mr.splice(u,1),i--):(c.tick(a),u++)}n=u>0?requestAnimationFrame(t):void 0}function o(){U.suspendWhenDocumentHidden&&(ku()?n=cancelAnimationFrame(n):(mr.forEach(function(a){return a._onDocumentVisibility()}),Vu()))}return typeof document<"u"&&document.addEventListener("visibilitychange",o),r}();function ku(){return!!document&&document.hidden}function U(n){n===void 0&&(n={});var r=0,t=0,o=0,a,i=0,u=null;function c(w){var A=window.Promise&&new Promise(function(Q){return u=Q});return w.finished=A,A}var s=Td(n),d=c(s);function m(){var w=s.direction;w!=="alternate"&&(s.direction=w!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,a.forEach(function(A){return A.reversed=s.reversed})}function h(w){return s.reversed?s.duration-w:w}function x(){r=0,t=h(s.currentTime)*(1/U.speed)}function N(w,A){A&&A.seek(w-A.timelineOffset)}function v(w){if(s.reversePlayback)for(var Q=i;Q--;)N(w,a[Q]);else for(var A=0;A<i;A++)N(w,a[A])}function I(w){for(var A=0,Q=s.animations,tr=Q.length;A<tr;){var D=Q[A],X=D.animatable,dr=D.tweens,br=dr.length-1,F=dr[br];br&&(F=Ze(dr,function(df){return w<df.end})[0]||F);for(var Qr=gr(w-F.start-F.delay,0,F.duration)/F.duration,S=isNaN(Qr)?1:F.easing(Qr),T=F.to.strings,qr=F.round,Zr=[],Kt=F.to.numbers.length,Jr=void 0,ht=0;ht<Kt;ht++){var yt=void 0,no=F.to.numbers[ht],oo=F.from.numbers[ht]||0;F.isPath?yt=bd(F.value,S*no,F.isPathTargetInsideSVG):yt=oo+S*(no-oo),qr&&(F.isColor&&ht>2||(yt=Math.round(yt*qr)/qr)),Zr.push(yt)}var ao=T.length;if(!ao)Jr=Zr[0];else{Jr=T[0];for(var vt=0;vt<ao;vt++){var mh=T[vt],io=T[vt+1],tn=Zr[vt];isNaN(tn)||(io?Jr+=tn+io:Jr+=tn+" ")}}Fu[D.type](X.target,D.property,Jr,X.transforms),D.currentValue=Jr,A++}}function b(w){s[w]&&!s.passThrough&&s[w](s)}function L(){s.remaining&&s.remaining!==!0&&s.remaining--}function q(w){var A=s.duration,Q=s.delay,tr=A-s.endDelay,D=h(w);s.progress=gr(D/A*100,0,100),s.reversePlayback=D<s.currentTime,a&&v(D),!s.began&&s.currentTime>0&&(s.began=!0,b("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,b("loopBegin")),D<=Q&&s.currentTime!==0&&I(0),(D>=tr&&s.currentTime!==A||!A)&&I(A),D>Q&&D<tr?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,b("changeBegin")),b("change"),I(D)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,b("changeComplete")),s.currentTime=gr(D,0,A),s.began&&b("update"),w>=A&&(t=0,L(),s.remaining?(r=o,b("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&m()):(s.paused=!0,s.completed||(s.completed=!0,b("loopComplete"),b("complete"),!s.passThrough&&"Promise"in window&&(u(),d=c(s)))))}return s.reset=function(){var w=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=w==="reverse",s.remaining=s.loop,a=s.children,i=a.length;for(var A=i;A--;)s.children[A].reset();(s.reversed&&s.loop!==!0||w==="alternate"&&s.loop===1)&&s.remaining++,I(s.reversed?s.duration:0)},s._onDocumentVisibility=x,s.set=function(w,A){return Uu(w,A),s},s.tick=function(w){o=w,r||(r=o),q((o+(t-r))*U.speed)},s.seek=function(w){q(h(w))},s.pause=function(){s.paused=!0,x()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,mr.push(s),x(),Vu())},s.reverse=function(){m(),s.completed=!s.reversed,x()},s.restart=function(){s.reset(),s.play()},s.remove=function(w){var A=Zn(w);Xu(A,s)},s.reset(),s.autoplay&&s.play(),s}function Ru(n,r){for(var t=r.length;t--;)Un(n,r[t].animatable.target)&&r.splice(t,1)}function Xu(n,r){var t=r.animations,o=r.children;Ru(n,t);for(var a=o.length;a--;){var i=o[a],u=i.animations;Ru(n,u),!u.length&&!i.children.length&&o.splice(a,1)}!t.length&&!o.length&&r.pause()}function Wd(n){for(var r=Zn(n),t=mr.length;t--;){var o=mr[t];Xu(r,o)}}function Nd(n,r){r===void 0&&(r={});var t=r.direction||"normal",o=r.easing?Fn(r.easing):null,a=r.grid,i=r.axis,u=r.from||0,c=u==="first",s=u==="center",d=u==="last",m=g.arr(n),h=parseFloat(m?n[0]:n),x=m?parseFloat(n[1]):0,N=Ir(m?n[1]:n)||0,v=r.start||0+(m?h:0),I=[],b=0;return function(L,q,w){if(c&&(u=0),s&&(u=(w-1)/2),d&&(u=w-1),!I.length){for(var A=0;A<w;A++){if(!a)I.push(Math.abs(u-A));else{var Q=s?(a[0]-1)/2:u%a[0],tr=s?(a[1]-1)/2:Math.floor(u/a[0]),D=A%a[0],X=Math.floor(A/a[0]),dr=Q-D,br=tr-X,F=Math.sqrt(dr*dr+br*br);i==="x"&&(F=-dr),i==="y"&&(F=-br),I.push(F)}b=Math.max.apply(Math,I)}o&&(I=I.map(function(S){return o(S/b)*b})),t==="reverse"&&(I=I.map(function(S){return i?S<0?S*-1:-S:Math.abs(b-S)}))}var Qr=m?(x-h)/b:h;return v+Qr*(Math.round(I[q]*100)/100)+N}}function Bd(n){n===void 0&&(n={});var r=U(n);return r.duration=0,r.add=function(t,o){var a=mr.indexOf(r),i=r.children;a>-1&&mr.splice(a,1);function u(x){x.passThrough=!0}for(var c=0;c<i.length;c++)u(i[c]);var s=Ge(t,Dn(qn,n));s.targets=s.targets||n.targets;var d=r.duration;s.autoplay=!1,s.direction=r.direction,s.timelineOffset=g.und(o)?d:Hn(o,d),u(r),r.seek(s.timelineOffset);var m=U(s);u(m),i.push(m);var h=zu(i,n);return r.delay=h.delay,r.endDelay=h.endDelay,r.duration=h.duration,r.seek(0),r.reset(),r.autoplay&&r.play(),r},r}U.version="3.2.1";U.speed=1;U.suspendWhenDocumentHidden=!0;U.running=mr;U.remove=Wd;U.get=Kn;U.set=Uu;U.convertPx=Vn;U.path=Id;U.setDashoffset=_d;U.stagger=Nd;U.timeline=Bd;U.easing=Fn;U.penner=Wu;U.random=function(n,r){return Math.floor(Math.random()*(r-n+1))+n};var Dr=U;var Qu=0,Zu=Object.create(null),Cd=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(let n of Cd)for(let r of["-webkit-","-ms-","-moz-","-o-",""])Zu[r+n]=!0;function Jn(n,r){return n.replace(/&/g,r)}function Ku(n){return n.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Ld(n){let r=5381,t=n.length;for(;t--;)r=r*33^n.charCodeAt(t);return(r>>>0).toString(36)}function jd(n,r){return n.indexOf("&")===-1?`${r} ${n}`:Jn(n,r)}function Hu(n,r){return n[0]>r[0]?1:n[0]<r[0]?-1:n[2]-r[2]}function Dd([n,r]){return typeof r=="number"&&r&&!Zu[n]?`${n}:${r}px`:`${n}:${String(r)}`}function Ju(n,r,t,o,a){let i=[],u=[];for(let I of Object.keys(o)){let b=o[I];if(I.charCodeAt(0)!==36&&b!=null)if(Array.isArray(b)){let L=Ku(I);for(let q=0;q<b.length;q++){let w=b[q];w!=null&&i.push([L,w,q])}}else typeof b=="object"?u.push([I,b,0]):i.push([Ku(I),b,0])}let c=!!o.$unique,s=o.$global?"":a,d=s?u:u.sort(Hu),m=i.sort(Hu).map(Dd).join(";"),h=m,x=s,N=n,v=r;t.charCodeAt(0)===64?(N=[],v=[],s&&m&&v.push({selector:x,style:m,isUnique:c}),n.push({selector:t,rules:N,styles:v,style:s?"":m})):(x=s?t?jd(t,s):s:t,m&&r.push({selector:x,style:m,isUnique:c}));for(let[I,b]of d)h+=`|${I}#${Ju(N,v,I,b,x)}`;return h}function Gu(n,r,t,o,a){for(let{selector:i,style:u,isUnique:c}of t){let s=Jn(i,a),d=new Yn(u,c?(++Qu).toString(36):o);d.add(new Gn(s)),n.add(d)}for(let{selector:i,style:u,rules:c,styles:s}of r){let d=Jn(i,a),m=new $n(d,u,o);Gu(m,c,s,o,a),n.add(m)}}function Yu(n){let r="";for(let t=0;t<n.length;t++)r+=n[t];return r}var zt=class n{constructor(r){this.changes=r,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(r){let t=r.id,o=this._counters[t]||0,a=this._children[t]||r.clone();if(this._counters[t]=o+1,o===0)this._children[t]=a,this._keys.push(t),this.sheet.push(a.getStyles()),this.changeId++,this.changes&&this.changes.add(a,this._keys.length-1);else if(a instanceof n&&r instanceof n){let i=a.changeId;if(a.merge(r),a.changeId!==i){let u=this._keys.indexOf(t);this.sheet.splice(u,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,u,u)}}}remove(r){let t=r.id,o=this._counters[t];if(o){this._counters[t]=o-1;let a=this._children[t],i=this._keys.indexOf(t);if(o===1)delete this._counters[t],delete this._children[t],this._keys.splice(i,1),this.sheet.splice(i,1),this.changeId++,this.changes&&this.changes.remove(a,i);else if(a instanceof n&&r instanceof n){let u=a.changeId;a.unmerge(r),a.changeId!==u&&(this.sheet.splice(i,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,i,i))}}}values(){return this._keys.map(r=>this._children[r])}merge(r){for(let t of r.values())this.add(t);return this}unmerge(r){for(let t of r.values())this.remove(t);return this}clone(){return new n().merge(this)}},Gn=class{constructor(r){this.selector=r}get id(){return`k:${this.selector}`}getStyles(){return this.selector}clone(){return this}},Yn=class n extends zt{constructor(r,t){super(),this.style=r,this.pid=t}get id(){return`s:${this.pid}:${this.style}`}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new n(this.style,this.pid).merge(this)}},$n=class n extends zt{constructor(r,t,o){super(),this.rule=r,this.style=t,this.pid=o}get id(){return`r:${this.pid}:${this.rule}:${this.style}`}getStyles(){return`${this.rule}{${this.style}${Yu(this.sheet)}}`}clone(){return new n(this.rule,this.style,this.pid).merge(this)}},ro=class n extends zt{constructor(r,t){super(t),this.id=r}registerStyle(r){let t=[],o=[],a=Ju(t,o,"",r,".&"),i=`f${Ld(a)}`;return Gu(this,t,o,i,i),i}getStyles(){return Yu(this.sheet)}clone(){return new n(this.id,this.changes).merge(this)}};function $u(n){return new ro(`f${(++Qu).toString(36)}`,n)}var Md=console.log,Ye=$t([Oe,kt(Nt)]),Vt=te([or,Nt]),qd=(n,r=lr,t=lr,...o)=>{let a=n,i=o;return{get state(){return a},mod:u=>{let c=et(a),s=t(Ne(a,r(u,c)),c);return kt(W)(s,a)&&(a=s,C(ae,i)),{onceAfter:d=>Vt(d)?()=>{}:d(a)}},subscribe:u=>i=ee(u,i)}},dt=document,$e=n=>dt.createElement(n),rf=n=>dt.createTextNode(n),tf=n=>dt.head.appendChild(n),ef=n=>dt.body.appendChild(n),Mr="lcc"+crypto.randomUUID(),Fd=Mt(n=>{Vt(n[Mr].added)&&Vt(n[Mr].removed)||new MutationObserver((r,t)=>C(o=>{Wt(n,o.addedNodes)&&Ye(n[Mr].added)&&n[Mr].added(n),Wt(n,o.removedNodes)&&Ye(n[Mr].removed)&&(t.disconnect(),n[Mr].removed(n))})(r)).observe(window.document,{childList:!0,subtree:!0})}),nf=(n,r,...t)=>{let o=$e(n);return Bt((a,i)=>Vt(a)?delete o[i]:o[i]=a,de("lifecycle",r)),o[Mr]={},Bt((a,i)=>o[Mr][i]=a,r.lifecycle),C(a=>{a&&o.appendChild(Hr(String,a)?rf(a):a)},Ft(Hr(Array),Xe,t)),Fd(o)},Ud=(n,r,t)=>{let o=nf(n,r);return o.innerHTML=t,o},mt=n=>dt.getElementById(n),of=n=>{n.preventDefault(),n.stopPropagation()},af=n=>(r,t=!0)=>o=>{n(o)&&(r(o),t&&of(o))},zd=n=>{Ye(mt(n))&&mt(n).offsetParent!=null&&mt(n).focus()},Vd=n=>{let r=$e("script");r.setAttribute("src",n),r.async=!1,ef(r)},uf=n=>{let r=$u(),t=r.registerStyle(n),o=$e("style");return o.textContent=r.getStyles(),tf(o),t},Xd=Nr(rt(Nr),C(Mt)),Kd=n=>mt(n).value,Hd=n=>Ct({[`disabled${n}`]:!0}),Qd=n=>Ct({[`disabled${n}`]:!1}),Zd=n=>Ft(r=>n.state[`disabled${r.id}`],Pr("disabled",!0)),Jd=n=>mt(n).value="",ff=n=>{let r=null;return t=>{r&&clearTimeout(r),r=setTimeout(t,n)}},Gd=window.localStorage,Yd=JSON.parse,$d=JSON.stringify,rh=af(He({key:"Enter",keyCode:13}));uf({$global:!0,"*":{boxSizing:"border-box"},body:{margin:0,padding:0,letterSpacing:"0.2px",fontSize:"14pt"},"a,a:visited,a:hover,a:active":{color:"LinkText"}},!0);var to=1e3,th=to*6,eh=n=>()=>{Dr({targets:n,translateY:["-100%",0],duration:to,easing:"easeInOutQuad",complete:()=>{Dr({targets:n,top:[0,"-100%"],duration:to,delay:th,easing:"easeInOutQuad",complete:()=>{Dr.remove(n)}})}})},eo=1e3,nh=eo*2,oh=n=>()=>{Dr({targets:n,opacity:["0%","100%"],duration:eo,easing:"easeInOutQuad",complete:()=>{Dr({targets:n,opacity:["100%","0%"],duration:eo,delay:nh,easing:"easeInOutQuad",complete:()=>{Dr.remove(n)}})}})},ah=ff(1e3);Object.assign(globalThis,{R:Ln,anime:Dr,l:Md,neon:Ye,eon:Vt,store:qd,d:dt,dce:$e,dctn:rf,dhac:tf,dbac:ef,e:nf,innere:Ud,ge:mt,stopEvent:of,onEFN:af,onEnter:rh,focusIfVisible:zd,addjs:Vd,addcss:uf,callall:Xd,valueByID:Kd,disableID:Hd,enableID:Qd,clearValueByID:Jd,disableable:Zd,debounce:ff,runAfterOneSecondPause:ah,wls:Gd,jp:Yd,js:$d,slideDownUp:eh,fadeInOut:oh});var Xt=n=>"{{.Cfg.SuperTokensWebLibBase}}"+n;addjs(Xt("/website.js"));addjs(Xt("/supertokens.js"));addjs(Xt("/session.js"));addjs(Xt("/passwordless.js"));addjs(Xt("/emailverification.js"));var ih=addcss({boxSizing:"border-box",position:"absolute",top:"12px",right:"12px",zIndex:999,display:"flex",alignItems:"flex-end",flexDirection:"column"}),uh=addcss({backgroundColor:"white",minWidth:"10em",display:"flex",flexDirection:"column",border:"black solid 1px",paddingTop:"4px",div:{minHeight:"10px",marginBottom:"4px"}}),lf={padding:"4px",cursor:"pointer",marginLeft:"12px",fontVariant:"small-caps"},l3=addcss(lf),rn=addcss(R.mergeRight(lf,{marginLeft:"0px",paddingLeft:"12px",display:"inline-block",width:"calc(100% - 16px)","&:hover":{backgroundColor:"#e6e6e6"}})),fh=addcss({width:"32px",height:"32px",padding:"4px",border:0,cursor:"pointer",borderRadius:"16px",marginLeft:"12px"}),sh=addcss({width:"24px",height:"24px"}),sf=addcss({display:"flex",flexDirection:"column",padding:"4px",backgroundColor:"white",input:{marginBottom:"10px"}}),cf=addcss({textAlign:"center"}),ch=addcss({opacity:"0%"}),pf=addcss({marginTop:"10px"}),mf={display:"flex",alignItems:"center"},m3=addcss(mf),ph=addcss(R.mergeRight(mf,{width:"32px",height:"32px",justifyContent:"center"})),lh=R.replace(/(.)[^@]*(.)@(.).*(.\.[^.]+)/,"$1-$2@$3-$4");window.onload=()=>{let n=R.equals("{{.Cfg.PlainUI}}","true"),r=S=>"{{.Cfg.APIBasePath}}"+S,t=()=>R.equals("{{.LoggedIn}}","true"),o=()=>"{{.UserEmail}}",a=()=>"{{.UserID}}",i="st"+crypto.randomUUID(),u=i+"email",c=i+"otp",s=()=>{globalThis.stAuth.sendOTP(valueByID(u)),v.mod(disableID(u)(disableID(i+"emailButton")({})))},d=()=>{globalThis.stAuth.verifyOTP(valueByID(c)),disableID(c)({}),disableID(i+"otpButton")({})},m=()=>{v.mod({stState:"init",displayState:h.init}),X.state("loggedOut")},h={init:()=>null,enterEmail:()=>e("div",{className:sf},e("input",disableable(v)({id:u,type:"email",placeholder:"your.email@address.com",onkeyup:onEnter(s),className:cf})),e("button",disableable(v)({id:i+"emailButton",onclick:s}),"Request one-time code"),e("button",{className:pf,onclick:m},"Close")),enterOTP:()=>e("div",{className:sf},e("input",disableable(v)({id:c,type:"text",placeholder:"One-time code in email",onkeyup:onEnter(d),className:cf})),e("button",disableable(v)({id:i+"otpButton",onclick:d}),"Verify code"),e("button",{className:pf,onclick:m},"Close")),showEmail:()=>n?null:e("div",{className:ph},e("div",{id:i+"userEmail",className:ch},o()),e("button",{className:fh,onclick:fadeInOut("#"+i+"userEmail")},e("img",{className:sh,src:t()?r("/person_outline.svg"):null})))},x=()=>fetch(window.location.href+"?t="+Date.now(),{Pragma:"no-cache",Expires:-1,"Cache-Control":"no-cache"}).then(()=>window.location.reload()),N=S=>({init:R.identity,loggedOut:R.identity,checkEmail:R.mergeLeft({displayState:h.enterOTP}),wrongOTP:R.identity,oldOTP:R.identity,failedOTP:R.identity,signUpSuccess:R.tap(()=>setTimeout(()=>x(),1e3)),signInSuccess:R.tap(()=>setTimeout(()=>x(),1e3)),loggedIn:R.mergeLeft({displayState:h.showEmail}),logoutCompleted:R.tap(()=>setTimeout(()=>x(),1e3))})[R.propOr("init","stState",S)](S),v=store({init:!0,label:"...",stState:"init",showMenu:!1,menuItems:[],displayState:R.always(null)},N),I=()=>{t()||m(),v.mod({showMenu:!v.state.showMenu})},b=()=>v.mod({showMenu:!1}),L=()=>{b(),v.state.stState==="loggedOut"?v.mod({displayState:h.enterEmail}):v.state.stState==="loggedIn"&&globalThis.stAuth.logout()},q=null,w=S=>{neon(q)&&!q.contains(S.target)&&b()},A=S=>{q=S,document.removeEventListener("click",w,!0)},Q=S=>{q=S,A(S),document.addEventListener("click",w,!0)},tr=S=>v.mod({menuItems:R.map(([T,qr])=>e("div",{},e("a",{href:"javascript:",className:rn,onclick:()=>{b(),qr()}},T)),R.reject(eon,S))}),D=()=>e("div",{id:i,className:ih,style:"opacity:"+(v.state.stState=="init"?0:100)+"%;background:rgba(0,0,0,0)",onmouseleave:b,lifecycle:{added:Q,removed:A}},e("button",{style:"width:32px;height:32px;padding:0;border:0;background-color:white;cursor:pointer",onclick:I},e("img",{style:"width:32px;height:32px",src:r("/menu.svg")})),v.state.displayState(),v.state.showMenu?e("div",{className:uh},t()?null:e("div",{},e("a",{href:"#",className:rn,onclick:L},"login")),t()?e("div",{className:rn,style:"cursor:default;font-variant:normal"},lh(o())):null,...v.state.menuItems,t()?e("div",{},e("a",{href:"#",className:rn,onclick:L},"logout")):null):null);v.subscribe(()=>{ge(i).replaceWith(D()),focusIfVisible(u),focusIfVisible(c)}),dbac(D());let X={catch:(S,T)=>{},state:(S,T)=>v.mod({stState:S,stData:T})},dr=(S,T)=>X.catch(S+(T.isSuperTokensGeneralError?" (some other failure)":""),T);supertokens.init({appInfo:{apiDomain:"{{.Cfg.APIDomain}}",apiBasePath:"{{.Cfg.APIBasePath}}",appName:"{{.Cfg.AppName}}"},recipeList:[supertokensEmailVerification.init(),supertokensSession.init(),supertokensPasswordless.init()]});let br=async S=>{try{(await supertokensPasswordless.createCode({email:S})).status!="SIGN_IN_UP_NOT_ALLOWED"&&X.state("checkEmail")}catch(T){dr("sendOTP",T)}},F=async S=>{try{let T=await supertokensPasswordless.consumeCode({userInputCode:S});T.status==="OK"?T.createdNewRecipeUser&&T.user.loginMethods.length===1?X.state("signUpSuccess",T.user.id):X.state("signInSuccess",T.user.id):T.status==="INCORRECT_USER_INPUT_CODE_ERROR"?X.state("wrongOTP"):T.status==="EXPIRED_USER_INPUT_CODE_ERROR"?X.state("oldOTP"):X.state("failedOTP")}catch(T){dr("handleOTP",T)}},Qr=async()=>{await supertokensSession.signOut(),X.state("logoutCompleted")};globalThis.stAuth={sendOTP:br,verifyOTP:F,logout:Qr,isLoggedIn:t,userEmail:o,userID:a,setMenuItems:tr},neon(globalThis.authHooks)&&globalThis.authHooks.forEach(([S,T])=>{let qr=X[S];X[S]=(Zr,Kt)=>{qr(Zr,Kt),T(Zr,Kt)}}),neon(globalThis.menuItems)&&tr(globalThis.menuItems),t()?X.state("loggedIn",o()):X.state("loggedOut"),anime({targets:"#"+i,opacity:"100%",duration:1e3,easing:"easeInOutQuad",complete:()=>anime.remove("#"+i)})};})();
(()=>{var hf=Object.defineProperty;var yf=(n,r)=>{for(var t in r)hf(n,t,{get:r[t],enumerable:!0})};var Ln={};yf(Ln,{F:()=>uo,T:()=>fo,__:()=>so,add:()=>Ar,addIndex:()=>co,addIndexRight:()=>po,adjust:()=>Ht,all:()=>Qt,allPass:()=>$t,always:()=>kr,and:()=>re,andThen:()=>Zi,any:()=>xo,anyPass:()=>te,ap:()=>$r,aperture:()=>_o,append:()=>ee,apply:()=>rt,applySpec:()=>Io,applyTo:()=>bo,ascend:()=>Ao,assoc:()=>Pr,assocPath:()=>tt,binary:()=>Oo,bind:()=>Yt,both:()=>So,call:()=>ae,chain:()=>ie,clamp:()=>Eo,clone:()=>et,collectBy:()=>To,comparator:()=>Wo,complement:()=>kt,compose:()=>Nr,composeWith:()=>No,concat:()=>at,cond:()=>Bo,construct:()=>Co,constructN:()=>ce,converge:()=>pe,count:()=>Lo,countBy:()=>jo,curry:()=>it,curryN:()=>O,dec:()=>Do,defaultTo:()=>ut,descend:()=>Mo,difference:()=>Pt,differenceWith:()=>Et,dissoc:()=>de,dissocPath:()=>me,divide:()=>Fo,drop:()=>he,dropLast:()=>Uo,dropLastWhile:()=>zo,dropRepeats:()=>Vo,dropRepeatsBy:()=>Xo,dropRepeatsWith:()=>st,dropWhile:()=>Ko,either:()=>Ho,empty:()=>xe,endsWith:()=>Qo,eqBy:()=>Tt,eqProps:()=>Zo,equals:()=>W,evolve:()=>Jo,filter:()=>Gr,find:()=>Go,findIndex:()=>Yo,findLast:()=>$o,findLastIndex:()=>ra,flatten:()=>ta,flip:()=>we,forEach:()=>ea,forEachObjIndexed:()=>na,fromPairs:()=>oa,groupBy:()=>aa,groupWith:()=>ia,gt:()=>ua,gte:()=>fa,has:()=>sa,hasIn:()=>ca,hasPath:()=>Ie,head:()=>fe,identical:()=>la,identity:()=>lr,ifElse:()=>ma,inc:()=>da,includes:()=>Wt,indexBy:()=>ha,indexOf:()=>ya,init:()=>va,innerJoin:()=>ga,insert:()=>xa,insertAll:()=>_a,intersection:()=>wa,intersperse:()=>Ia,into:()=>ba,invert:()=>Aa,invertObj:()=>Oa,invoker:()=>vr,is:()=>Hr,isEmpty:()=>Nt,isNil:()=>or,isNotNil:()=>Oe,join:()=>Sa,juxt:()=>Se,keys:()=>j,keysIn:()=>ka,last:()=>ye,lastIndexOf:()=>Ra,length:()=>ke,lens:()=>Lr,lensIndex:()=>Pa,lensPath:()=>Ea,lensProp:()=>Ta,lift:()=>Tr,liftN:()=>oe,lt:()=>Wa,lte:()=>Na,map:()=>C,mapAccum:()=>Ba,mapAccumRight:()=>Ca,mapObjIndexed:()=>Bt,match:()=>La,mathMod:()=>ja,max:()=>J,maxBy:()=>Da,mean:()=>Te,median:()=>Ma,memoizeWith:()=>qa,mergeAll:()=>Fa,mergeDeepLeft:()=>Ua,mergeDeepRight:()=>We,mergeDeepWith:()=>za,mergeDeepWithKey:()=>jr,mergeLeft:()=>Ct,mergeRight:()=>Ne,mergeWith:()=>Va,mergeWithKey:()=>lt,min:()=>Be,minBy:()=>Xa,modify:()=>Ka,modifyPath:()=>Ce,modulo:()=>Ha,move:()=>Qa,multiply:()=>Le,nAry:()=>Er,negate:()=>Ja,none:()=>Ga,not:()=>ue,nth:()=>Y,nthArg:()=>Ya,o:()=>$a,objOf:()=>Ae,of:()=>ri,omit:()=>ti,on:()=>ei,once:()=>ni,or:()=>ve,otherwise:()=>oi,over:()=>je,pair:()=>ii,partial:()=>ui,partialObject:()=>Za,partialRight:()=>fi,partition:()=>si,path:()=>sr,pathEq:()=>ci,pathOr:()=>pi,pathSatisfies:()=>li,paths:()=>Pe,pick:()=>mi,pickAll:()=>De,pickBy:()=>di,pipe:()=>Rt,pipeWith:()=>se,pluck:()=>hr,prepend:()=>Me,product:()=>hi,project:()=>yi,promap:()=>vi,prop:()=>$,propEq:()=>gi,propIs:()=>xi,propOr:()=>_i,propSatisfies:()=>wi,props:()=>Ii,range:()=>bi,reduce:()=>K,reduceBy:()=>Br,reduceRight:()=>Fe,reduceWhile:()=>Ai,reduced:()=>Oi,reject:()=>Sr,remove:()=>le,repeat:()=>Si,replace:()=>ki,reverse:()=>ot,scan:()=>Ei,sequence:()=>ze,set:()=>Ti,slice:()=>M,sort:()=>Wi,sortBy:()=>Ni,sortWith:()=>Bi,split:()=>Ci,splitAt:()=>Li,splitEvery:()=>ji,splitWhen:()=>Di,splitWhenever:()=>Mi,startsWith:()=>qi,subtract:()=>Fi,sum:()=>Ee,swap:()=>zi,symmetricDifference:()=>Vi,symmetricDifferenceWith:()=>Xi,tail:()=>nt,take:()=>ft,takeLast:()=>_e,takeLastWhile:()=>Ki,takeWhile:()=>Hi,tap:()=>Mt,test:()=>Qi,thunkify:()=>bu,times:()=>Ue,toLower:()=>Ji,toPairs:()=>Gi,toPairsIn:()=>Yi,toString:()=>Z,toUpper:()=>$i,transduce:()=>ru,transpose:()=>tu,traverse:()=>eu,trim:()=>nu,tryCatch:()=>ou,type:()=>zr,unapply:()=>au,unary:()=>iu,uncurryN:()=>uu,unfold:()=>fu,union:()=>su,unionWith:()=>cu,uniq:()=>ct,uniqBy:()=>be,uniqWith:()=>Ve,unless:()=>pu,unnest:()=>Xe,until:()=>lu,unwind:()=>mu,update:()=>Re,useWith:()=>qe,values:()=>ne,valuesIn:()=>du,view:()=>hu,when:()=>Ft,where:()=>Ke,whereAny:()=>yu,whereEq:()=>He,without:()=>vu,xor:()=>gu,xprod:()=>xu,zip:()=>_u,zipObj:()=>wu,zipWith:()=>Iu});var vf=function(){return!1},uo=vf;var gf=function(){return!0},fo=gf;var so={"@@functional/placeholder":!0};function E(n){return n!=null&&typeof n=="object"&&n["@@functional/placeholder"]===!0}function p(n){return function r(t){return arguments.length===0||E(t)?r:n.apply(this,arguments)}}function f(n){return function r(t,o){switch(arguments.length){case 0:return r;case 1:return E(t)?r:p(function(a){return n(t,a)});default:return E(t)&&E(o)?r:E(t)?p(function(a){return n(a,o)}):E(o)?p(function(a){return n(t,a)}):n(t,o)}}}var xf=f(function(r,t){return Number(r)+Number(t)}),Ar=xf;function B(n,r){n=n||[],r=r||[];var t,o=n.length,a=r.length,i=[];for(t=0;t<o;)i[i.length]=n[t],t+=1;for(t=0;t<a;)i[i.length]=r[t],t+=1;return i}function z(n,r){switch(n){case 0:return function(){return r.apply(this,arguments)};case 1:return function(t){return r.apply(this,arguments)};case 2:return function(t,o){return r.apply(this,arguments)};case 3:return function(t,o,a){return r.apply(this,arguments)};case 4:return function(t,o,a,i){return r.apply(this,arguments)};case 5:return function(t,o,a,i,u){return r.apply(this,arguments)};case 6:return function(t,o,a,i,u,c){return r.apply(this,arguments)};case 7:return function(t,o,a,i,u,c,s){return r.apply(this,arguments)};case 8:return function(t,o,a,i,u,c,s,d){return r.apply(this,arguments)};case 9:return function(t,o,a,i,u,c,s,d,m){return r.apply(this,arguments)};case 10:return function(t,o,a,i,u,c,s,d,m,h){return r.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function ar(n,r,t){return function(){for(var o=[],a=0,i=n,u=0,c=!1;u<r.length||a<arguments.length;){var s;u<r.length&&(!E(r[u])||a>=arguments.length)?s=r[u]:(s=arguments[a],a+=1),o[u]=s,E(s)?c=!0:i-=1,u+=1}return!c&&i<=0?t.apply(this,o):z(Math.max(0,i),ar(n,o,t))}}var _f=f(function(r,t){return r===1?p(t):z(r,ar(r,[],t))}),O=_f;var wf=p(function(r){return O(r.length,function(){var t=0,o=arguments[0],a=arguments[arguments.length-1],i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=o.apply(this,B(arguments,[t,a]));return t+=1,u},r.apply(this,i)})}),co=wf;var If=p(function(r){return O(r.length,function(){var t=arguments[0],o=arguments[arguments.length-1],a=o.length-1,i=Array.prototype.slice.call(arguments,0);return i[0]=function(){var u=t.apply(this,B(arguments,[a,o]));return a-=1,u},r.apply(this,i)})}),po=If;function l(n){return function r(t,o,a){switch(arguments.length){case 0:return r;case 1:return E(t)?r:f(function(i,u){return n(t,i,u)});case 2:return E(t)&&E(o)?r:E(t)?f(function(i,u){return n(i,o,u)}):E(o)?f(function(i,u){return n(t,i,u)}):p(function(i){return n(t,o,i)});default:return E(t)&&E(o)&&E(a)?r:E(t)&&E(o)?f(function(i,u){return n(i,u,a)}):E(t)&&E(a)?f(function(i,u){return n(i,o,u)}):E(o)&&E(a)?f(function(i,u){return n(t,i,u)}):E(t)?p(function(i){return n(i,o,a)}):E(o)?p(function(i){return n(t,i,a)}):E(a)?p(function(i){return n(t,o,i)}):n(t,o,a)}}}var bf=l(function(r,t,o){var a=o.length;if(r>=a||r<-a)return o;var i=(a+r)%a,u=B(o);return u[i]=t(o[i]),u}),Ht=bf;var P=Array.isArray||function(r){return r!=null&&r.length>=0&&Object.prototype.toString.call(r)==="[object Array]"};function Fr(n){return n!=null&&typeof n["@@transducer/step"]=="function"}function _(n,r,t){return function(){if(arguments.length===0)return t();var o=arguments[arguments.length-1];if(!P(o)){for(var a=0;a<n.length;){if(typeof o[n[a]]=="function")return o[n[a]].apply(o,Array.prototype.slice.call(arguments,0,-1));a+=1}if(Fr(o)){var i=r.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(o)}}return t.apply(this,arguments)}}function V(n){return n&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}}var y={init:function(){return this.xf["@@transducer/init"]()},result:function(n){return this.xf["@@transducer/result"](n)}};var Af=function(){function n(r,t){this.xf=t,this.f=r,this.all=!0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.all&&(r=this.xf["@@transducer/step"](r,!0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)||(this.all=!1,r=V(this.xf["@@transducer/step"](r,!1))),r},n}();function en(n){return function(r){return new Af(n,r)}}var Of=f(_(["all"],en,function(r,t){for(var o=0;o<t.length;){if(!r(t[o]))return!1;o+=1}return!0})),Qt=Of;function Zt(n){for(var r=[],t;!(t=n.next()).done;)r.push(t.value);return r}function er(n,r,t){for(var o=0,a=t.length;o<a;){if(n(r,t[o]))return!0;o+=1}return!1}function nn(n){var r=String(n).match(/^function (\w*)/);return r==null?"":r[1]}function k(n,r){return Object.prototype.hasOwnProperty.call(r,n)}function Sf(n,r){return n===r?n!==0||1/n===1/r:n!==n&&r!==r}var Ur=typeof Object.is=="function"?Object.is:Sf;var lo=Object.prototype.toString,kf=function(){return lo.call(arguments)==="[object Arguments]"?function(r){return lo.call(r)==="[object Arguments]"}:function(r){return k("callee",r)}}(),Jt=kf;var Rf=!{toString:null}.propertyIsEnumerable("toString"),mo=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ho=function(){"use strict";return arguments.propertyIsEnumerable("length")}(),Pf=function(r,t){for(var o=0;o<r.length;){if(r[o]===t)return!0;o+=1}return!1},Ef=typeof Object.keys=="function"&&!ho?p(function(r){return Object(r)!==r?[]:Object.keys(r)}):p(function(r){if(Object(r)!==r)return[];var t,o,a=[],i=ho&&Jt(r);for(t in r)k(t,r)&&(!i||t!=="length")&&(a[a.length]=t);if(Rf)for(o=mo.length-1;o>=0;)t=mo[o],k(t,r)&&!Pf(a,t)&&(a[a.length]=t),o-=1;return a}),j=Ef;var Tf=p(function(r){return r===null?"Null":r===void 0?"Undefined":Object.prototype.toString.call(r).slice(8,-1)}),zr=Tf;function yo(n,r,t,o){var a=Zt(n),i=Zt(r);function u(c,s){return gt(c,s,t.slice(),o.slice())}return!er(function(c,s){return!er(u,s,c)},i,a)}function gt(n,r,t,o){if(Ur(n,r))return!0;var a=zr(n);if(a!==zr(r))return!1;if(typeof n["fantasy-land/equals"]=="function"||typeof r["fantasy-land/equals"]=="function")return typeof n["fantasy-land/equals"]=="function"&&n["fantasy-land/equals"](r)&&typeof r["fantasy-land/equals"]=="function"&&r["fantasy-land/equals"](n);if(typeof n.equals=="function"||typeof r.equals=="function")return typeof n.equals=="function"&&n.equals(r)&&typeof r.equals=="function"&&r.equals(n);switch(a){case"Arguments":case"Array":case"Object":if(typeof n.constructor=="function"&&nn(n.constructor)==="Promise")return n===r;break;case"Boolean":case"Number":case"String":if(!(typeof n==typeof r&&Ur(n.valueOf(),r.valueOf())))return!1;break;case"Date":if(!Ur(n.valueOf(),r.valueOf()))return!1;break;case"Error":return n.name===r.name&&n.message===r.message;case"RegExp":if(!(n.source===r.source&&n.global===r.global&&n.ignoreCase===r.ignoreCase&&n.multiline===r.multiline&&n.sticky===r.sticky&&n.unicode===r.unicode))return!1;break}for(var i=t.length-1;i>=0;){if(t[i]===n)return o[i]===r;i-=1}switch(a){case"Map":return n.size!==r.size?!1:yo(n.entries(),r.entries(),t.concat([n]),o.concat([r]));case"Set":return n.size!==r.size?!1:yo(n.values(),r.values(),t.concat([n]),o.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 u=j(n);if(u.length!==j(r).length)return!1;var c=t.concat([n]),s=o.concat([r]);for(i=u.length-1;i>=0;){var d=u[i];if(!(k(d,r)&>(r[d],n[d],c,s)))return!1;i-=1}return!0}var Wf=f(function(r,t){return gt(r,t,[],[])}),W=Wf;function xt(n,r,t){var o,a;if(typeof n.indexOf=="function")switch(typeof r){case"number":if(r===0){for(o=1/r;t<n.length;){if(a=n[t],a===0&&1/a===o)return t;t+=1}return-1}else if(r!==r){for(;t<n.length;){if(a=n[t],typeof a=="number"&&a!==a)return t;t+=1}return-1}return n.indexOf(r,t);case"string":case"boolean":case"function":case"undefined":return n.indexOf(r,t);case"object":if(r===null)return n.indexOf(r,t)}for(;t<n.length;){if(W(n[t],r))return t;t+=1}return-1}function Or(n,r){return xt(r,n,0)>=0}function nr(n,r){for(var t=0,o=r.length,a=Array(o);t<o;)a[t]=n(r[t]),t+=1;return a}function _t(n){var r=n.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");return'"'+r.replace(/"/g,'\\"')+'"'}var wt=function(r){return(r<10?"0":"")+r},Nf=typeof Date.prototype.toISOString=="function"?function(r){return r.toISOString()}:function(r){return r.getUTCFullYear()+"-"+wt(r.getUTCMonth()+1)+"-"+wt(r.getUTCDate())+"T"+wt(r.getUTCHours())+":"+wt(r.getUTCMinutes())+":"+wt(r.getUTCSeconds())+"."+(r.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"},vo=Nf;function It(n){return function(){return!n.apply(this,arguments)}}function cr(n,r,t){for(var o=0,a=t.length;o<a;)r=n(r,t[o]),o+=1;return r}function Vr(n,r){for(var t=0,o=r.length,a=[];t<o;)n(r[t])&&(a[a.length]=r[t]),t+=1;return a}function ir(n){return Object.prototype.toString.call(n)==="[object Object]"}var Bf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):r},n}();function on(n){return function(r){return new Bf(n,r)}}var Cf=f(_(["fantasy-land/filter","filter"],on,function(n,r){return ir(r)?cr(function(t,o){return n(r[o])&&(t[o]=r[o]),t},{},j(r)):Vr(n,r)})),Gr=Cf;var Lf=f(function(r,t){return Gr(It(r),t)}),Sr=Lf;function Yr(n,r){var t=function(u){var c=r.concat([n]);return Or(u,c)?"<Circular>":Yr(u,c)},o=function(i,u){return nr(function(c){return _t(c)+": "+t(i[c])},u.slice().sort())};switch(Object.prototype.toString.call(n)){case"[object Arguments]":return"(function() { return arguments; }("+nr(t,n).join(", ")+"))";case"[object Array]":return"["+nr(t,n).concat(o(n,Sr(function(i){return/^\d+$/.test(i)},j(n)))).join(", ")+"]";case"[object Boolean]":return typeof n=="object"?"new Boolean("+t(n.valueOf())+")":n.toString();case"[object Date]":return"new Date("+(isNaN(n.valueOf())?t(NaN):_t(vo(n)))+")";case"[object Map]":return"new Map("+t(Array.from(n))+")";case"[object Null]":return"null";case"[object Number]":return typeof n=="object"?"new Number("+t(n.valueOf())+")":1/n===-1/0?"-0":n.toString(10);case"[object Set]":return"new Set("+t(Array.from(n).sort())+")";case"[object String]":return typeof n=="object"?"new String("+t(n.valueOf())+")":_t(n);case"[object Undefined]":return"undefined";default:if(typeof n.toString=="function"){var a=n.toString();if(a!=="[object Object]")return a}return"{"+o(n,j(n)).join(", ")+"}"}}var jf=p(function(r){return Yr(r,[])}),Z=jf;var Df=f(function(r,t){if(r===t)return t;function o(s,d){if(s>d!=d>s)return d>s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=Z(r),c=o(u,Z(t));return c!==void 0&&c===u?r:t}),J=Df;var Mf=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,this.f(t))},n}(),qf=function(r){return function(t){return new Mf(r,t)}},Gt=qf;var Ff=f(_(["fantasy-land/map","map"],Gt,function(r,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return O(t.length,function(){return r.call(this,t.apply(this,arguments))});case"[object Object]":return cr(function(o,a){return o[a]=r(t[a]),o},{},j(t));default:return nr(r,t)}})),C=Ff;var H=Number.isInteger||function(r){return r<<0===r};function G(n){return Object.prototype.toString.call(n)==="[object String]"}var Uf=f(function(r,t){var o=r<0?t.length+r:r;return G(t)?t.charAt(o):t[o]}),Y=Uf;var zf=f(function(r,t){if(t!=null)return H(r)?Y(r,t):t[r]}),$=zf;var Vf=f(function(r,t){return C($(r),t)}),hr=Vf;var Xf=p(function(r){return P(r)?!0:!r||typeof r!="object"||G(r)?!1:r.length===0?!0:r.length>0?r.hasOwnProperty(0)&&r.hasOwnProperty(r.length-1):!1}),_r=Xf;var go=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function bt(n,r,t){return function(a,i,u){if(_r(u))return n(a,i,u);if(u==null)return i;if(typeof u["fantasy-land/reduce"]=="function")return r(a,i,u,"fantasy-land/reduce");if(u[go]!=null)return t(a,i,u[go]());if(typeof u.next=="function")return t(a,i,u);if(typeof u.reduce=="function")return r(a,i,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function At(n,r,t){for(var o=0,a=t.length;o<a;){if(r=n["@@transducer/step"](r,t[o]),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o+=1}return n["@@transducer/result"](r)}var Kf=f(function(r,t){return z(r.length,function(){return r.apply(t,arguments)})}),Yt=Kf;function Hf(n,r,t){for(var o=t.next();!o.done;){if(r=n["@@transducer/step"](r,o.value),r&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}o=t.next()}return n["@@transducer/result"](r)}function Qf(n,r,t,o){return n["@@transducer/result"](t[o](Yt(n["@@transducer/step"],n),r))}var Zf=bt(At,Qf,Hf),rr=Zf;var Jf=function(){function n(r){this.f=r}return n.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},n.prototype["@@transducer/result"]=function(r){return r},n.prototype["@@transducer/step"]=function(r,t){return this.f(r,t)},n}();function wr(n){return new Jf(n)}var Gf=l(function(n,r,t){return rr(typeof n=="function"?wr(n):n,r,t)}),K=Gf;var Yf=p(function(r){return O(K(J,0,hr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(!r[t].apply(this,arguments))return!1;t+=1}return!0})}),$t=Yf;var $f=p(function(r){return function(){return r}}),kr=$f;var rs=f(function(r,t){return r&&t}),re=rs;var ts=function(){function n(r,t){this.xf=t,this.f=r,this.any=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.any||(r=this.xf["@@transducer/step"](r,!1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.any=!0,r=V(this.xf["@@transducer/step"](r,!0))),r},n}();function an(n){return function(r){return new ts(n,r)}}var es=f(_(["any"],an,function(r,t){for(var o=0;o<t.length;){if(r(t[o]))return!0;o+=1}return!1})),xo=es;var ns=p(function(r){return O(K(J,0,hr("length",r)),function(){for(var t=0,o=r.length;t<o;){if(r[t].apply(this,arguments))return!0;t+=1}return!1})}),te=ns;function os(n,r,t){for(var o=t.next();!o.done;)r=n(r,o.value),o=t.next();return r}function as(n,r,t,o){return t[o](n,r)}var is=bt(cr,as,os),Rr=is;var us=f(function(r,t){return typeof t["fantasy-land/ap"]=="function"?t["fantasy-land/ap"](r):typeof r.ap=="function"?r.ap(t):typeof r=="function"?function(o){return r(o)(t(o))}:Rr(function(o,a){return B(o,C(a,t))},[],r)}),$r=us;function un(n,r){for(var t=0,o=r.length-(n-1),a=new Array(o>=0?o:0);t<o;)a[t]=Array.prototype.slice.call(r,t,t+n),t+=1;return a}var fs=function(){function n(r,t){this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.store(t),this.full?this.xf["@@transducer/step"](r,this.getCopy()):r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n.prototype.getCopy=function(){return B(Array.prototype.slice.call(this.acc,this.pos),Array.prototype.slice.call(this.acc,0,this.pos))},n}();function fn(n){return function(r){return new fs(n,r)}}var ss=f(_([],fn,un)),_o=ss;var cs=f(function(r,t){return B(t,[r])}),ee=cs;var ps=f(function(r,t){return r.apply(this,t)}),rt=ps;var ls=p(function(r){for(var t=j(r),o=t.length,a=[],i=0;i<o;)a[i]=r[t[i]],i+=1;return a}),ne=ls;function wo(n,r){return P(r)?r.map(n):j(r).reduce(function(t,o){return t[o]=n(r[o]),t},{})}var ms=p(function n(r){return r=wo(function(t){return typeof t=="function"?t:n(t)},r),O(K(J,0,hr("length",ne(r))),function(){var t=arguments;return wo(function(o){return rt(o,t)},r)})}),Io=ms;var ds=f(function(r,t){return t(r)}),bo=ds;var hs=l(function(r,t,o){var a=r(t),i=r(o);return a<i?-1:a>i?1:0}),Ao=hs;function Xr(n,r,t){if(H(n)&&P(t)){var o=[].concat(t);return o[n]=r,o}var a={};for(var i in t)a[i]=t[i];return a[n]=r,a}var ys=p(function(r){return r==null}),or=ys;var vs=l(function n(r,t,o){if(r.length===0)return t;var a=r[0];if(r.length>1){var i=!or(o)&&k(a,o)&&typeof o[a]=="object"?o[a]:H(r[1])?[]:{};t=n(Array.prototype.slice.call(r,1),t,i)}return Xr(a,t,o)}),tt=vs;var gs=l(function(r,t,o){return tt([r],t,o)}),Pr=gs;var xs=f(function(r,t){switch(r){case 0:return function(){return t.call(this)};case 1:return function(o){return t.call(this,o)};case 2:return function(o,a){return t.call(this,o,a)};case 3:return function(o,a,i){return t.call(this,o,a,i)};case 4:return function(o,a,i,u){return t.call(this,o,a,i,u)};case 5:return function(o,a,i,u,c){return t.call(this,o,a,i,u,c)};case 6:return function(o,a,i,u,c,s){return t.call(this,o,a,i,u,c,s)};case 7:return function(o,a,i,u,c,s,d){return t.call(this,o,a,i,u,c,s,d)};case 8:return function(o,a,i,u,c,s,d,m){return t.call(this,o,a,i,u,c,s,d,m)};case 9:return function(o,a,i,u,c,s,d,m,h){return t.call(this,o,a,i,u,c,s,d,m,h)};case 10:return function(o,a,i,u,c,s,d,m,h,x){return t.call(this,o,a,i,u,c,s,d,m,h,x)};default:throw new Error("First argument to nAry must be a non-negative integer no greater than ten")}}),Er=xs;var _s=p(function(r){return Er(2,r)}),Oo=_s;function ur(n){var r=Object.prototype.toString.call(n);return r==="[object Function]"||r==="[object AsyncFunction]"||r==="[object GeneratorFunction]"||r==="[object AsyncGeneratorFunction]"}var ws=f(function(r,t){var o=O(r,t);return O(r,function(){return cr($r,C(o,arguments[0]),Array.prototype.slice.call(arguments,1))})}),oe=ws;var Is=p(function(r){return oe(r.length,r)}),Tr=Is;var bs=f(function(r,t){return ur(r)?function(){return r.apply(this,arguments)&&t.apply(this,arguments)}:Tr(re)(r,t)}),So=bs;var As=p(function(r){return r.apply(this,Array.prototype.slice.call(arguments,1))}),ae=As;function Ot(n){return function r(t){for(var o,a,i,u=[],c=0,s=t.length;c<s;){if(_r(t[c]))for(o=n?r(t[c]):t[c],i=0,a=o.length;i<a;)u[u.length]=o[i],i+=1;else u[u.length]=t[c];c+=1}return u}}function sn(n){return{"@@transducer/value":n,"@@transducer/reduced":!0}}var ko="@@transducer/init",cn="@@transducer/step",Ro="@@transducer/result",Os=function(){function n(r){this.xf=r}return n.prototype[ko]=y.init,n.prototype[Ro]=y.result,n.prototype[cn]=function(r,t){var o=this.xf[cn](r,t);return o["@@transducer/reduced"]?sn(o):o},n}(),Ss=function(){function n(r){this.xf=new Os(r)}return n.prototype[ko]=y.init,n.prototype[Ro]=y.result,n.prototype[cn]=function(r,t){return _r(t)?rr(this.xf,r,t):At(this.xf,r,[t])},n}(),ks=function(r){return new Ss(r)},Po=ks;function pn(n){return function(r){return Gt(n)(Po(r))}}var Rs=f(_(["fantasy-land/chain","chain"],pn,function(r,t){return typeof t=="function"?function(o){return r(t(o))(o)}:Ot(!1)(C(r,t))})),ie=Rs;var Ps=l(function(r,t,o){if(r>t)throw new Error("min must not be greater than max in clamp(min, max, value)");return o<r?r:o>t?t:o}),Eo=Ps;function St(n){return new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""))}function Wr(n,r,t){if(t||(t=new Ts),Es(n))return n;var o=function(i){var u=t.get(n);if(u)return u;t.set(n,i);for(var c in n)Object.prototype.hasOwnProperty.call(n,c)&&(i[c]=r?Wr(n[c],!0,t):n[c]);return i};switch(zr(n)){case"Object":return o(Object.create(Object.getPrototypeOf(n)));case"Array":return o([]);case"Date":return new Date(n.valueOf());case"RegExp":return St(n);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return n.slice();default:return n}}function Es(n){var r=typeof n;return n==null||r!="object"&&r!="function"}var Ts=function(){function n(){this.map={},this.length=0}return n.prototype.set=function(r,t){let o=this.hash(r),a=this.map[o];a||(this.map[o]=a=[]),a.push([r,t]),this.length+=1},n.prototype.hash=function(r){let t=[];for(var o in r)t.push(Object.prototype.toString.call(r[o]));return t.join()},n.prototype.get=function(r){if(this.length<=180){for(let a in this.map){let i=this.map[a];for(let u=0;u<i.length;u+=1){let c=i[u];if(c[0]===r)return c[1]}}return}let t=this.hash(r),o=this.map[t];if(o)for(let a=0;a<o.length;a+=1){let i=o[a];if(i[0]===r)return i[1]}},n}();var Ws=p(function(r){return r!=null&&typeof r.clone=="function"?r.clone():Wr(r,!0)}),et=Ws;var Ns=f(function(r,t){var o=Rr(function(u,c){var s=r(c);return u[s]===void 0&&(u[s]=[]),u[s].push(c),u},{},t),a=[];for(var i in o)a.push(o[i]);return a}),To=Ns;var Bs=p(function(r){return function(t,o){return r(t,o)?-1:r(o,t)?1:0}}),Wo=Bs;var Cs=p(function(r){return!r}),ue=Cs;var Ls=Tr(ue),kt=Ls;function ln(n,r){return function(){return r.call(this,n.apply(this,arguments))}}function pr(n,r){return function(){var t=arguments.length;if(t===0)return r();var o=arguments[t-1];return P(o)||typeof o[n]!="function"?r.apply(this,arguments):o[n].apply(o,Array.prototype.slice.call(arguments,0,t-1))}}var js=l(pr("slice",function(r,t,o){return Array.prototype.slice.call(o,r,t)})),M=js;var Ds=p(pr("tail",M(1,1/0))),nt=Ds;function Rt(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return z(arguments[0].length,K(ln,arguments[0],nt(arguments)))}var Ms=p(function(r){return G(r)?r.split("").reverse().join(""):Array.prototype.slice.call(r,0).reverse()}),ot=Ms;function Nr(){if(arguments.length===0)throw new Error("compose requires at least one argument");return Rt.apply(this,ot(arguments))}var qs=Y(0),fe=qs;function fr(n){return n}var Fs=p(fr),lr=Fs;var Us=f(function(r,t){if(t.length<=0)return lr;var o=fe(t),a=nt(t);return z(o.length,function(){return Rr(function(i,u){return r.call(this,u,i)},o.apply(this,arguments),a)})}),se=Us;var zs=f(function(r,t){return se.apply(this,[r,ot(t)])}),No=zs;var Vs=f(function(r,t){if(P(r)){if(P(t))return r.concat(t);throw new TypeError(Z(t)+" is not an array")}if(G(r)){if(G(t))return r+t;throw new TypeError(Z(t)+" is not a string")}if(r!=null&&ur(r["fantasy-land/concat"]))return r["fantasy-land/concat"](t);if(r!=null&&ur(r.concat))return r.concat(t);throw new TypeError(Z(r)+' does not have a method named "concat" or "fantasy-land/concat"')}),at=Vs;var Xs=p(function(r){var t=K(J,0,C(function(o){return o[0].length},r));return z(t,function(){for(var o=0;o<r.length;){if(r[o][0].apply(this,arguments))return r[o][1].apply(this,arguments);o+=1}})}),Bo=Xs;var Ks=p(function(r){return O(r.length,r)}),it=Ks;var Hs=f(function(r,t){if(r>10)throw new Error("Constructor with greater than ten arguments");return r===0?function(){return new t}:it(Er(r,function(o,a,i,u,c,s,d,m,h,x){switch(r){case 1:return new t(o);case 2:return new t(o,a);case 3:return new t(o,a,i);case 4:return new t(o,a,i,u);case 5:return new t(o,a,i,u,c);case 6:return new t(o,a,i,u,c,s);case 7:return new t(o,a,i,u,c,s,d);case 8:return new t(o,a,i,u,c,s,d,m);case 9:return new t(o,a,i,u,c,s,d,m,h);case 10:return new t(o,a,i,u,c,s,d,m,h,x)}}))}),ce=Hs;var Qs=p(function(r){return ce(r.length,r)}),Co=Qs;var Zs=f(function(r,t){return O(K(J,0,hr("length",t)),function(){var o=arguments,a=this;return r.apply(a,nr(function(i){return i.apply(a,o)},t))})}),pe=Zs;var Js=it(function(n,r){return Rr(function(t,o){return n(o)?t+1:t},0,r)}),Lo=Js;var Gs=function(){function n(r,t,o,a){this.valueFn=r,this.valueAcc=t,this.keyFn=o,this.xf=a,this.inputs={}}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){var t;for(t in this.inputs)if(k(t,this.inputs)&&(r=this.xf["@@transducer/step"](r,this.inputs[t]),r["@@transducer/reduced"])){r=r["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){var o=this.keyFn(t);return this.inputs[o]=this.inputs[o]||[o,Wr(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],t),r},n}();function mn(n,r,t){return function(o){return new Gs(n,r,t,o)}}var Ys=ar(4,[],_([],mn,function(r,t,o,a){var i=wr(function(u,c){var s=o(c),d=r(k(s,u)?u[s]:Wr(t,!1),c);return d&&d["@@transducer/reduced"]?V(u):(u[s]=d,u)});return rr(i,{},a)})),Br=Ys;var $s=Br(function(n,r){return n+1},0),jo=$s;var rc=Ar(-1),Do=rc;var tc=f(function(r,t){return t==null||t!==t?r:t}),ut=tc;var ec=l(function(r,t,o){var a=r(t),i=r(o);return a>i?-1:a<i?1:0}),Mo=ec;var nc=function(){function n(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return n.prototype.add=function(r){return!qo(r,!0,this)},n.prototype.has=function(r){return qo(r,!1,this)},n}();function qo(n,r,t){var o=typeof n,a,i;switch(o){case"string":case"number":return n===0&&1/n===-1/0?t._items["-0"]?!0:(r&&(t._items["-0"]=!0),!1):t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?n in t._items[o]?!0:(r&&(t._items[o][n]=!0),!1):(r&&(t._items[o]={},t._items[o][n]=!0),!1);case"boolean":if(o in t._items){var u=n?1:0;return t._items[o][u]?!0:(r&&(t._items[o][u]=!0),!1)}else return r&&(t._items[o]=n?[!1,!0]:[!0,!1]),!1;case"function":return t._nativeSet!==null?r?(a=t._nativeSet.size,t._nativeSet.add(n),i=t._nativeSet.size,i===a):t._nativeSet.has(n):o in t._items?Or(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1);case"undefined":return t._items[o]?!0:(r&&(t._items[o]=!0),!1);case"object":if(n===null)return t._items.null?!0:(r&&(t._items.null=!0),!1);default:return o=Object.prototype.toString.call(n),o in t._items?Or(n,t._items[o])?!0:(r&&t._items[o].push(n),!1):(r&&(t._items[o]=[n]),!1)}}var yr=nc;var oc=f(function(r,t){for(var o=[],a=0,i=r.length,u=t.length,c=new yr,s=0;s<u;s+=1)c.add(t[s]);for(;a<i;)c.add(r[a])&&(o[o.length]=r[a]),a+=1;return o}),Pt=oc;var ac=l(function(r,t,o){for(var a=[],i=0,u=t.length;i<u;)!er(r,t[i],o)&&!er(r,t[i],a)&&a.push(t[i]),i+=1;return a}),Et=ac;var ic=l(function(r,t,o){var a=Array.prototype.slice.call(o,0);return a.splice(r,t),a}),le=ic;function dn(n,r){if(r==null)return r;if(H(n)&&P(r))return le(n,1,r);var t={};for(var o in r)t[o]=r[o];return delete t[n],t}function uc(n,r){if(H(n)&&P(r))return[].concat(r);var t={};for(var o in r)t[o]=r[o];return t}var fc=f(function n(r,t){if(t==null)return t;switch(r.length){case 0:return t;case 1:return dn(r[0],t);default:var o=r[0],a=Array.prototype.slice.call(r,1);return t[o]==null?uc(o,t):Pr(o,n(a,t[o]),t)}}),me=fc;var sc=f(function(r,t){return me([r],t)}),de=sc;var cc=f(function(r,t){return r/t}),Fo=cc;var pc=function(){function n(r,t){this.xf=t,this.n=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.n>0?(this.n-=1,r):this.xf["@@transducer/step"](r,t)},n}();function hn(n){return function(r){return new pc(n,r)}}var lc=f(_(["drop"],hn,function(r,t){return M(Math.max(0,r),1/0,t)})),he=lc;var mc=function(){function n(r,t){this.xf=t,this.n=r,this.i=0}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){this.i+=1;var o=this.n===0?r:this.xf["@@transducer/step"](r,t);return this.n>=0&&this.i>=this.n?V(o):o},n}();function yn(n){return function(r){return new mc(n,r)}}var dc=f(_(["take"],yn,function(r,t){return M(0,r<0?1/0:r,t)})),ft=dc;function vn(n,r){return ft(n<r.length?r.length-n:0,r)}var hc=function(){function n(r,t){if(r<=0)return t;this.xf=t,this.pos=0,this.full=!1,this.acc=new Array(r)}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.acc=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.full&&(r=this.xf["@@transducer/step"](r,this.acc[this.pos])),this.store(t),r},n.prototype.store=function(r){this.acc[this.pos]=r,this.pos+=1,this.pos===this.acc.length&&(this.pos=0,this.full=!0)},n}();function gn(n){return function(r){return new hc(n,r)}}var yc=f(_([],gn,vn)),Uo=yc;function xn(n,r){for(var t=r.length-1;t>=0&&n(r[t]);)t-=1;return M(0,t+1,r)}var vc=function(){function n(r,t){this.f=r,this.retained=[],this.xf=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.retained=null,this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.retain(r,t):this.flush(r,t)},n.prototype.flush=function(r,t){return r=rr(this.xf,r,this.retained),this.retained=[],this.xf["@@transducer/step"](r,t)},n.prototype.retain=function(r,t){return this.retained.push(t),r},n}();function _n(n){return function(r){return new vc(n,r)}}var gc=f(_([],_n,xn)),zo=gc;var xc=function(){function n(r,t){this.xf=t,this.pred=r,this.lastValue=void 0,this.seenFirstValue=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){var o=!1;return this.seenFirstValue?this.pred(this.lastValue,t)&&(o=!0):this.seenFirstValue=!0,this.lastValue=t,o?r:this.xf["@@transducer/step"](r,t)},n}();function Kr(n){return function(r){return new xc(n,r)}}var _c=Y(-1),ye=_c;var wc=f(_([],Kr,function(r,t){var o=[],a=1,i=t.length;if(i!==0)for(o[0]=t[0];a<i;)r(ye(o),t[a])||(o[o.length]=t[a]),a+=1;return o})),st=wc;var Ic=p(_([],function(){return Kr(W)},st(W))),Vo=Ic;var bc=l(function(r,t,o){return W(r(t),r(o))}),Tt=bc;var Ac=f(function(n,r){return _([],function(){return Kr(Tt(n))},st(Tt(n)))(r)}),Xo=Ac;var Oc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){if(this.f){if(this.f(t))return r;this.f=null}return this.xf["@@transducer/step"](r,t)},n}();function wn(n){return function(r){return new Oc(n,r)}}var Sc=f(_(["dropWhile"],wn,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(o,1/0,t)})),Ko=Sc;var kc=f(function(r,t){return r||t}),ve=kc;var Rc=f(function(r,t){return ur(r)?function(){return r.apply(this,arguments)||t.apply(this,arguments)}:Tr(ve)(r,t)}),Ho=Rc;function In(n){var r=Object.prototype.toString.call(n);return r==="[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]"}var Pc=p(function(r){return r!=null&&typeof r["fantasy-land/empty"]=="function"?r["fantasy-land/empty"]():r!=null&&r.constructor!=null&&typeof r.constructor["fantasy-land/empty"]=="function"?r.constructor["fantasy-land/empty"]():r!=null&&typeof r.empty=="function"?r.empty():r!=null&&r.constructor!=null&&typeof r.constructor.empty=="function"?r.constructor.empty():P(r)?[]:G(r)?"":ir(r)?{}:Jt(r)?function(){return arguments}():In(r)?r.constructor.from(""):void 0}),xe=Pc;var Ec=f(function(r,t){return he(r>=0?t.length-r:0,t)}),_e=Ec;var Tc=f(function(n,r){return W(_e(n.length,r),n)}),Qo=Tc;var Wc=l(function(r,t,o){return W(t[r],o[r])}),Zo=Wc;var Nc=f(function n(r,t){if(!ir(t)&&!P(t))return t;var o=t instanceof Array?[]:{},a,i,u;for(i in t)a=r[i],u=typeof a,o[i]=u==="function"?a(t[i]):a&&u==="object"?n(a,t[i]):t[i];return o}),Jo=Nc;var Bc=function(){function n(r,t){this.xf=t,this.f=r,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,void 0)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,t))),r},n}();function bn(n){return function(r){return new Bc(n,r)}}var Cc=f(_(["find"],bn,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return t[o];o+=1}})),Go=Cc;var Lc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.found=!1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.found||(r=this.xf["@@transducer/step"](r,-1)),this.xf["@@transducer/result"](r)},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.found=!0,r=V(this.xf["@@transducer/step"](r,this.idx))),r},n}();function An(n){return function(r){return new Lc(n,r)}}var jc=f(_([],An,function(r,t){for(var o=0,a=t.length;o<a;){if(r(t[o]))return o;o+=1}return-1})),Yo=jc;var Dc=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.last))},n.prototype["@@transducer/step"]=function(r,t){return this.f(t)&&(this.last=t),r},n}();function On(n){return function(r){return new Dc(n,r)}}var Mc=f(_([],On,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return t[o];o-=1}})),$o=Mc;var qc=function(){function n(r,t){this.xf=t,this.f=r,this.idx=-1,this.lastIdx=-1}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=function(r){return this.xf["@@transducer/result"](this.xf["@@transducer/step"](r,this.lastIdx))},n.prototype["@@transducer/step"]=function(r,t){return this.idx+=1,this.f(t)&&(this.lastIdx=this.idx),r},n}();function Sn(n){return function(r){return new qc(n,r)}}var Fc=f(_([],Sn,function(r,t){for(var o=t.length-1;o>=0;){if(r(t[o]))return o;o-=1}return-1})),ra=Fc;var Uc=p(Ot(!0)),ta=Uc;var zc=p(function(r){return O(r.length,function(t,o){var a=Array.prototype.slice.call(arguments,0);return a[0]=o,a[1]=t,r.apply(this,a)})}),we=zc;var Vc=f(pr("forEach",function(r,t){for(var o=t.length,a=0;a<o;)r(t[a]),a+=1;return t})),ea=Vc;var Xc=f(function(r,t){for(var o=j(t),a=0;a<o.length;){var i=o[a];r(t[i],i,t),a+=1}return t}),na=Xc;var Kc=p(function(r){for(var t={},o=0;o<r.length;)t[r[o][0]]=r[o][1],o+=1;return t}),oa=Kc;var Hc=f(pr("groupBy",Br(function(n,r){return n.push(r),n},[]))),aa=Hc;var Qc=f(function(n,r){for(var t=[],o=0,a=r.length;o<a;){for(var i=o+1;i<a&&n(r[i-1],r[i]);)i+=1;t.push(r.slice(o,i)),o=i}return t}),ia=Qc;var Zc=f(function(r,t){return r>t}),ua=Zc;var Jc=f(function(r,t){return r>=t}),fa=Jc;var Gc=f(function(r,t){if(r.length===0||or(t))return!1;for(var o=t,a=0;a<r.length;)if(!or(o)&&k(r[a],o))o=o[r[a]],a+=1;else return!1;return!0}),Ie=Gc;var Yc=f(function(r,t){return Ie([r],t)}),sa=Yc;var $c=f(function(r,t){return or(t)?!1:r in t}),ca=$c;var pa=function(n,r){switch(arguments.length){case 0:return pa;case 1:return function(){return function t(o){switch(arguments.length){case 0:return t;default:return Ur(n,o)}}}();default:return Ur(n,r)}},la=pa;var rp=l(function(r,t,o){return O(Math.max(r.length,t.length,o.length),function(){return r.apply(this,arguments)?t.apply(this,arguments):o.apply(this,arguments)})}),ma=rp;var tp=Ar(1),da=tp;var ep=f(Or),Wt=ep;var np=Br(function(n,r){return r},null),ha=np;var op=f(function(r,t){return typeof t.indexOf=="function"&&!P(t)?t.indexOf(r):xt(t,r,0)}),ya=op;var ap=M(0,-1),va=ap;var ip=l(function(r,t,o){return Vr(function(a){return er(r,a,o)},t)}),ga=ip;var up=l(function(r,t,o){r=r<o.length&&r>=0?r:o.length;var a=Array.prototype.slice.call(o,0);return a.splice(r,0,t),a}),xa=up;var fp=l(function(r,t,o){return r=r<o.length&&r>=0?r:o.length,[].concat(Array.prototype.slice.call(o,0,r),t,Array.prototype.slice.call(o,r))}),_a=fp;var sp=function(){function n(r,t){this.xf=t,this.f=r,this.set=new yr}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.set.add(this.f(t))?this.xf["@@transducer/step"](r,t):r},n}();function kn(n){return function(r){return new sp(n,r)}}var cp=f(_([],kn,function(n,r){for(var t=new yr,o=[],a=0,i,u;a<r.length;)u=r[a],i=n(u),t.add(i)&&o.push(u),a+=1;return o})),be=cp;var pp=be(lr),ct=pp;var lp=f(function(r,t){for(var o=new yr,a=0;a<r.length;a+=1)o.add(r[a]);return ct(Vr(o.has.bind(o),t))}),wa=lp;var mp=f(pr("intersperse",function(r,t){for(var o=[],a=0,i=t.length;a<i;)a===i-1?o.push(t[a]):o.push(t[a],r),a+=1;return o})),Ia=mp;function dp(n){if(n==null)throw new TypeError("Cannot convert undefined or null to object");for(var r=Object(n),t=1,o=arguments.length;t<o;){var a=arguments[t];if(a!=null)for(var i in a)k(i,a)&&(r[i]=a[i]);t+=1}return r}var Cr=typeof Object.assign=="function"?Object.assign:dp;var hp=f(function(r,t){var o={};return o[r]=t,o}),Ae=hp;var yp={"@@transducer/init":Array,"@@transducer/step":function(n,r){return n.push(r),n},"@@transducer/result":fr},vp={"@@transducer/init":String,"@@transducer/step":function(n,r){return n+r},"@@transducer/result":fr},gp={"@@transducer/init":Object,"@@transducer/step":function(n,r){return Cr(n,_r(r)?Ae(r[0],r[1]):r)},"@@transducer/result":fr};function Rn(n){if(Fr(n))return n;if(_r(n))return yp;if(typeof n=="string")return vp;if(typeof n=="object")return gp;throw new Error("Cannot create transformer for "+n)}var xp=l(function(r,t,o){var a=t(Fr(r)?r:Rn(r));return rr(a,a["@@transducer/init"](),o)}),ba=xp;var _p=p(function(r){for(var t=j(r),o=t.length,a=0,i={};a<o;){var u=t[a],c=r[u],s=k(c,i)?i[c]:i[c]=[];s[s.length]=u,a+=1}return i}),Aa=_p;var wp=p(function(r){for(var t=j(r),o=t.length,a=0,i={};a<o;){var u=t[a];i[r[u]]=u,a+=1}return i}),Oa=wp;var Ip=f(function(r,t){return O(r+1,function(){var o=arguments[r];if(o!=null&&ur(o[t]))return o[t].apply(o,Array.prototype.slice.call(arguments,0,r));throw new TypeError(Z(o)+' does not have a method named "'+t+'"')})}),vr=Ip;var bp=f(function(r,t){return t instanceof r||t!=null&&(t.constructor===r||r.name==="Object"&&typeof t=="object")}),Hr=bp;var Ap=p(function(r){return r!=null&&W(r,xe(r))}),Nt=Ap;var Op=p(function(r){return!or(r)}),Oe=Op;var Sp=vr(1,"join"),Sa=Sp;var kp=p(function(r){return pe(function(){return Array.prototype.slice.call(arguments,0)},r)}),Se=kp;var Rp=p(function(r){var t,o=[];for(t in r)o[o.length]=t;return o}),ka=Rp;var Pp=f(function(r,t){if(typeof t.lastIndexOf=="function"&&!P(t))return t.lastIndexOf(r);for(var o=t.length-1;o>=0;){if(W(t[o],r))return o;o-=1}return-1}),Ra=Pp;function pt(n){return Object.prototype.toString.call(n)==="[object Number]"}var Ep=p(function(r){return r!=null&&pt(r.length)?r.length:NaN}),ke=Ep;var Tp=f(function(r,t){return function(o){return function(a){return C(function(i){return t(i,a)},o(r(a)))}}}),Lr=Tp;var Wp=l(function(r,t,o){return Ht(r,kr(t),o)}),Re=Wp;var Np=p(function(r){return Lr(Y(r),Re(r))}),Pa=Np;var Bp=f(function(r,t){return r.map(function(o){for(var a=t,i=0,u;i<o.length;){if(a==null)return;u=o[i],a=H(u)?Y(u,a):a[u],i+=1}return a})}),Pe=Bp;var Cp=f(function(r,t){return Pe([r],t)[0]}),sr=Cp;var Lp=p(function(r){return Lr(sr(r),tt(r))}),Ea=Lp;var jp=p(function(r){return Lr($(r),Pr(r))}),Ta=jp;var Dp=f(function(r,t){return r<t}),Wa=Dp;var Mp=f(function(r,t){return r<=t}),Na=Mp;var qp=l(function(r,t,o){for(var a=0,i=o.length,u=[],c=[t];a<i;)c=r(c[0],o[a]),u[a]=c[1],a+=1;return[c[0],u]}),Ba=qp;var Fp=l(function(r,t,o){for(var a=o.length-1,i=[],u=[t];a>=0;)u=r(u[0],o[a]),i[a]=u[1],a-=1;return[u[0],i]}),Ca=Fp;var Up=f(function(r,t){return cr(function(o,a){return o[a]=r(t[a],a,t),o},{},j(t))}),Bt=Up;var zp=f(function(r,t){return t.match(r)||[]}),La=zp;var Vp=f(function(r,t){return H(r)?!H(t)||t<1?NaN:(r%t+t)%t:NaN}),ja=Vp;var Xp=l(function(r,t,o){var a=r(o);return J(r(t),a)===a?o:t}),Da=Xp;var Kp=K(Ar,0),Ee=Kp;var Hp=p(function(r){return Ee(r)/r.length}),Te=Hp;var Qp=p(function(r){var t=r.length;if(t===0)return NaN;var o=2-t%2,a=(t-o)/2;return Te(Array.prototype.slice.call(r,0).sort(function(i,u){return i<u?-1:i>u?1:0}).slice(a,a+o))}),Ma=Qp;var Zp=f(function(r,t){var o={};return z(t.length,function(){var a=r.apply(this,arguments);return k(a,o)||(o[a]=t.apply(this,arguments)),o[a]})}),qa=Zp;var Jp=p(function(r){return Cr.apply(null,[{}].concat(r))}),Fa=Jp;var Gp=l(function(r,t,o){var a={},i;t=t||{},o=o||{};for(i in t)k(i,t)&&(a[i]=k(i,o)?r(i,t[i],o[i]):t[i]);for(i in o)k(i,o)&&!k(i,a)&&(a[i]=o[i]);return a}),lt=Gp;var Yp=l(function n(r,t,o){return lt(function(a,i,u){return ir(i)&&ir(u)?n(r,i,u):r(a,i,u)},t,o)}),jr=Yp;var $p=f(function(r,t){return jr(function(o,a,i){return a},r,t)}),Ua=$p;var rl=f(function(r,t){return jr(function(o,a,i){return i},r,t)}),We=rl;var tl=l(function(r,t,o){return jr(function(a,i,u){return r(i,u)},t,o)}),za=tl;var el=f(function(r,t){return Cr({},t,r)}),Ct=el;var nl=f(function(r,t){return Cr({},r,t)}),Ne=nl;var ol=l(function(r,t,o){return lt(function(a,i,u){return r(i,u)},t,o)}),Va=ol;var al=f(function(r,t){if(r===t)return r;function o(s,d){if(s<d!=d<s)return d<s?d:s}var a=o(r,t);if(a!==void 0)return a;var i=o(typeof r,typeof t);if(i!==void 0)return i===typeof r?r:t;var u=Z(r),c=o(u,Z(t));return c!==void 0?c===u?r:t:r}),Be=al;var il=l(function(r,t,o){var a=r(o);return Be(r(t),a)===a?o:t}),Xa=il;function Pn(n,r,t){if(H(n)&&P(t)){var o=[].concat(t);return o[n]=r(o[n]),o}var a={};for(var i in t)a[i]=t[i];return a[n]=r(a[n]),a}var ul=l(function n(r,t,o){if(!ir(o)&&!P(o))return o;if(r.length===0)return t(o);var a=r[0];if(!k(a,o))return o;if(r.length===1)return Pn(a,t,o);var i=n(Array.prototype.slice.call(r,1),t,o[a]);return i===o[a]?o:Xr(a,i,o)}),Ce=ul;var fl=l(function(r,t,o){return Ce([r],t,o)}),Ka=fl;var sl=f(function(r,t){return r%t}),Ha=sl;var cl=l(function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=a.splice(i,1);return i<0||i>=t.length||u<0||u>=t.length?t:[].concat(a.slice(0,u)).concat(c).concat(a.slice(u,t.length))}),Qa=cl;var pl=f(function(r,t){return r*t}),Le=pl;var ll=f((n,r)=>t=>n.call(void 0,We(r,t))),Za=ll;var ml=p(function(r){return-r}),Ja=ml;var dl=f(function(r,t){return Qt(It(r),t)}),Ga=dl;var hl=p(function(r){var t=r<0?1:r+1;return O(t,function(){return Y(r,arguments)})}),Ya=hl;var yl=l(function(r,t,o){return r(t(o))}),$a=yl;var vl=f(function(r,t){return typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"](t):typeof r.of=="function"?r.of(t):[t]}),ri=vl;var gl=f(function(r,t){for(var o={},a={},i=0,u=r.length;i<u;)a[r[i]]=1,i+=1;for(var c in t)a.hasOwnProperty(c)||(o[c]=t[c]);return o}),ti=gl;var xl=ar(4,[],function(r,t,o,a){return r(t(o),t(a))}),ei=xl;var _l=p(function(r){var t=!1,o;return z(r.length,function(){return t||(t=!0,o=r.apply(this,arguments)),o})}),ni=_l;function Lt(n,r){if(r==null||!ur(r.then))throw new TypeError("`"+n+"` expected a Promise, received "+Yr(r,[]))}var wl=f(function(r,t){return Lt("otherwise",t),t.then(null,r)}),oi=wl;var ai=function(n){return{value:n,map:function(r){return ai(r(n))}}},Il=l(function(r,t,o){return r(function(a){return ai(t(a))})(o).value}),je=Il;var bl=f(function(r,t){return[r,t]}),ii=bl;function jt(n){return f(function(r,t){return z(Math.max(0,r.length-t.length),function(){return r.apply(this,n(t,arguments))})})}var Al=jt(B),ui=Al;var Ol=jt(we(B)),fi=Ol;var Sl=Se([Gr,Sr]),si=Sl;var kl=l(function(r,t,o){return W(sr(t,o),r)}),ci=kl;var Rl=l(function(r,t,o){return ut(r,sr(t,o))}),pi=Rl;var Pl=l(function(r,t,o){return r(sr(t,o))}),li=Pl;var El=f(function(r,t){for(var o={},a=0;a<r.length;)r[a]in t&&(o[r[a]]=t[r[a]]),a+=1;return o}),mi=El;var Tl=f(function(r,t){for(var o={},a=0,i=r.length;a<i;){var u=r[a];o[u]=t[u],a+=1}return o}),De=Tl;var Wl=f(function(r,t){var o={};for(var a in t)r(t[a],a,t)&&(o[a]=t[a]);return o}),di=Wl;var Nl=f(function(r,t){return B([r],t)}),Me=Nl;var Bl=K(Le,1),hi=Bl;var Cl=f(function(r,t){return O(t.length,function(){for(var o=[],a=0;a<t.length;)o.push(t[a].call(this,arguments[a])),a+=1;return r.apply(this,o.concat(Array.prototype.slice.call(arguments,t.length)))})}),qe=Cl;var Ll=qe(nr,[De,lr]),yi=Ll;function Dt(n,r,t){return function(o){return r(t(n(o)))}}var jl=function(){function n(r,t,o){this.xf=o,this.f=r,this.g=t}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.xf["@@transducer/step"](r,Dt(this.f,this.g,t))},n}();function En(n,r){return function(t){return new jl(n,r,t)}}var Dl=l(_(["fantasy-land/promap","promap"],En,Dt)),vi=Dl;var Ml=l(function(r,t,o){return W(r,$(t,o))}),gi=Ml;var ql=l(function(r,t,o){return Hr(r,$(t,o))}),xi=ql;var Fl=l(function(r,t,o){return ut(r,$(t,o))}),_i=Fl;var Ul=l(function(r,t,o){return r($(t,o))}),wi=Ul;var zl=f(function(r,t){return r.map(function(o){return sr([o],t)})}),Ii=zl;var Vl=f(function(r,t){if(!(pt(r)&&pt(t)))throw new TypeError("Both arguments to range must be numbers");for(var o=[],a=r;a<t;)o.push(a),a+=1;return o}),bi=Vl;var Xl=l(function(r,t,o){for(var a=o.length-1;a>=0;){if(t=r(o[a],t),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}a-=1}return t}),Fe=Xl;var Kl=ar(4,[],function(r,t,o,a){var i=wr(function(u,c){return r(u,c)?t(u,c):V(u)});return rr(i,o,a)}),Ai=Kl;var Hl=p(V),Oi=Hl;var Ql=f(function(r,t){var o=Number(t),a=0,i;if(o<0||isNaN(o))throw new RangeError("n must be a non-negative number");for(i=[];a<o;)i.push(r(a)),a+=1;return i}),Ue=Ql;var Zl=f(function(r,t){return Ue(kr(r),t)}),Si=Zl;var Jl=l(function(r,t,o){return o.replace(r,t)}),ki=Jl;var Ri="@@transducer/init",Tn="@@transducer/step",Gl=function(){function n(r,t,o){this.xf=o,this.f=r,this.acc=t}return n.prototype[Ri]=function(){return this.xf[Tn](this.xf[Ri](),this.acc)},n.prototype["@@transducer/result"]=y.result,n.prototype[Tn]=function(r,t){return r["@@transducer/reduced"]?r:(this.acc=this.f(this.acc,t),this.xf[Tn](r,this.acc))},n}(),Yl=l(function(r,t,o){return new Gl(r,t,o)}),Pi=Yl;var $l=l(_([],Pi,function(r,t,o){for(var a=0,i=o.length,u=[t];a<i;)t=r(t,o[a]),u[a+1]=t,a+=1;return u})),Ei=$l;var rm=f(function(r,t){var o=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,a={"fantasy-land/of":o};return typeof t["fantasy-land/traverse"]=="function"?t["fantasy-land/traverse"](a,fr):typeof t.traverse=="function"?t.traverse(a,fr):Fe(function(i,u){return $r(C(Me,i),u)},o([]),t)}),ze=rm;var tm=l(function(r,t,o){return je(r,kr(t),o)}),Ti=tm;var em=f(function(r,t){return Array.prototype.slice.call(t,0).sort(r)}),Wi=em;var nm=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){var i=r(o),u=r(a);return i<u?-1:i>u?1:0})}),Ni=nm;var om=f(function(r,t){return Array.prototype.slice.call(t,0).sort(function(o,a){for(var i=0,u=0;i===0&&u<r.length;)i=r[u](o,a),u+=1;return i})}),Bi=om;var am=vr(1,"split"),Ci=am;var im=f(function(r,t){return[M(0,r,t),M(r,ke(t),t)]}),Li=im;var um=f(function(r,t){if(r<=0)throw new Error("First argument to splitEvery must be a positive integer");for(var o=[],a=0;a<t.length;)o.push(M(a,a+=r,t));return o}),ji=um;var fm=f(function(r,t){for(var o=0,a=t.length,i=[];o<a&&!r(t[o]);)i.push(t[o]),o+=1;return[i,Array.prototype.slice.call(t,o)]}),Di=fm;var sm=ar(2,[],function(r,t){for(var o=[],a=[],i=0;i<t.length;i=i+1)r(t[i])||a.push(t[i]),(i<t.length-1&&r(t[i+1])||i===t.length-1)&&a.length>0&&(o.push(a),a=[]);return o}),Mi=sm;var cm=f(function(n,r){return W(ft(n.length,r),n)}),qi=cm;var pm=f(function(r,t){return Number(r)-Number(t)}),Fi=pm;var lm=function(n,r,t){var o=et(t),a=Object.getOwnPropertyNames(o);if(a.includes(n)&&a.includes(r)){var i=o[n];o[n]=o[r],o[r]=i}return o},Ui=function(n,r,t){var o=t.length,a=t.slice(),i=n<0?o+n:n,u=r<0?o+r:r,c=Math.min(i,u),s=Math.max(i,u);return i<0||i>o||u<0||u>o||i===u||(a=[].concat(a.slice(0,c)).concat([a[s]]).concat(a.slice(c+1,s)).concat([a[c]]).concat(a.slice(s+1,o))),a},mm=function(n,r,t){var o=Ui(n,r,t);return P(o)?o.join(""):o},dm=l(function(n,r,t){return P(t)?Ui(n,r,t):G(t)?mm(n,r,t):lm(n,r,t)}),zi=dm;var hm=f(function(r,t){return at(Pt(r,t),Pt(t,r))}),Vi=hm;var ym=l(function(r,t,o){return at(Et(r,t,o),Et(r,o,t))}),Xi=ym;var vm=f(function(r,t){for(var o=t.length-1;o>=0&&r(t[o]);)o-=1;return M(o+1,1/0,t)}),Ki=vm;var gm=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t)?this.xf["@@transducer/step"](r,t):V(r)},n}();function Wn(n){return function(r){return new gm(n,r)}}var xm=f(_(["takeWhile"],Wn,function(r,t){for(var o=0,a=t.length;o<a&&r(t[o]);)o+=1;return M(0,o,t)})),Hi=xm;var _m=function(){function n(r,t){this.xf=t,this.f=r}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return this.f(t),this.xf["@@transducer/step"](r,t)},n}();function Nn(n){return function(r){return new _m(n,r)}}var wm=f(_([],Nn,function(r,t){return r(t),t})),Mt=wm;function Bn(n){return Object.prototype.toString.call(n)==="[object RegExp]"}var Im=f(function(r,t){if(!Bn(r))throw new TypeError("\u2018test\u2019 requires a value of type RegExp as its first argument; received "+Z(r));return St(r).test(t)}),Qi=Im;var bm=f(function(r,t){return Lt("andThen",t),t.then(r)}),Zi=bm;var Am=vr(0,"toLowerCase"),Ji=Am;var Om=p(function(r){var t=[];for(var o in r)k(o,r)&&(t[t.length]=[o,r[o]]);return t}),Gi=Om;var Sm=p(function(r){var t=[];for(var o in r)t[t.length]=[o,r[o]];return t}),Yi=Sm;var km=vr(0,"toUpperCase"),$i=km;var Rm=O(4,function(r,t,o,a){return rr(r(typeof t=="function"?wr(t):t),o,a)}),ru=Rm;var Pm=p(function(r){for(var t=0,o=[];t<r.length;){for(var a=r[t],i=0;i<a.length;)typeof o[i]>"u"&&(o[i]=[]),o[i].push(a[i]),i+=1;t+=1}return o}),tu=Pm;var Em=l(function(r,t,o){var a=typeof r["fantasy-land/of"]=="function"?r["fantasy-land/of"]:typeof r.of=="function"?r.of:r,i={"fantasy-land/of":a};return typeof o["fantasy-land/traverse"]=="function"?o["fantasy-land/traverse"](i,t):typeof o.traverse=="function"?o.traverse(i,t):ze(i,C(t,o))}),eu=Em;var qt=` \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`,Tm="\u200B",Wm=typeof String.prototype.trim=="function",Nm=!Wm||qt.trim()||!Tm.trim()?p(function(r){var t=new RegExp("^["+qt+"]["+qt+"]*"),o=new RegExp("["+qt+"]["+qt+"]*$");return r.replace(t,"").replace(o,"")}):p(function(r){return r.trim()}),nu=Nm;var Bm=f(function(r,t){return z(r.length,function(){try{return r.apply(this,arguments)}catch(o){return t.apply(this,B([o],arguments))}})}),ou=Bm;var Cm=p(function(r){return function(){return r(Array.prototype.slice.call(arguments,0))}}),au=Cm;var Lm=p(function(r){return Er(1,r)}),iu=Lm;var jm=f(function(r,t){return O(r,function(){for(var o=1,a=t,i=0,u;o<=r&&typeof a=="function";)u=o===r?arguments.length:i+a.length,a=a.apply(this,Array.prototype.slice.call(arguments,i,u)),o+=1,i=u;return a})}),uu=jm;var Dm=f(function(r,t){for(var o=r(t),a=[];o&&o.length;)a[a.length]=o[0],o=r(o[1]);return a}),fu=Dm;var Mm=f(Nr(ct,B)),su=Mm;var qm=function(){function n(r,t){this.xf=t,this.pred=r,this.items=[]}return n.prototype["@@transducer/init"]=y.init,n.prototype["@@transducer/result"]=y.result,n.prototype["@@transducer/step"]=function(r,t){return er(this.pred,t,this.items)?r:(this.items.push(t),this.xf["@@transducer/step"](r,t))},n}();function Cn(n){return function(r){return new qm(n,r)}}var Fm=f(_([],Cn,function(n,r){for(var t=0,o=r.length,a=[],i;t<o;)i=r[t],er(n,i,a)||(a[a.length]=i),t+=1;return a})),Ve=Fm;var Um=l(function(r,t,o){return Ve(r,B(t,o))}),cu=Um;var zm=l(function(r,t,o){return r(o)?o:t(o)}),pu=zm;var Vm=ie(fr),Xe=Vm;var Xm=l(function(r,t,o){for(var a=o;!r(a);)a=t(a);return a}),lu=Xm;var Km=f(function(n,r){return n in r&&P(r[n])?nr(function(t){return Xr(n,t,r)},r[n]):[r]}),mu=Km;var Hm=p(function(r){var t,o=[];for(t in r)o[o.length]=r[t];return o}),du=Hm;var Qm=function(n){return{value:n,"fantasy-land/map":function(){return this}}},Zm=f(function(r,t){return r(Qm)(t).value}),hu=Zm;var Jm=l(function(r,t,o){return r(o)?t(o):o}),Ft=Jm;var Gm=f(function(r,t){for(var o in r)if(k(o,r)&&!r[o](t[o]))return!1;return!0}),Ke=Gm;var Ym=f(function(r,t){for(var o in r)if(k(o,r)&&r[o](t[o]))return!0;return!1}),yu=Ym;var $m=f(function(r,t){return Ke(C(W,r),t)}),He=$m;var rd=f(function(r,t){for(var o=new yr,a=0;a<r.length;a+=1)o.add(r[a]);return Sr(o.has.bind(o),t)}),vu=rd;var td=f(function(r,t){return!!(!r^!t)}),gu=td;var ed=f(function(r,t){for(var o=0,a=r.length,i,u=t.length,c=[];o<a;){for(i=0;i<u;)c[c.length]=[r[o],t[i]],i+=1;o+=1}return c}),xu=ed;var nd=f(function(r,t){for(var o=[],a=0,i=Math.min(r.length,t.length);a<i;)o[a]=[r[a],t[a]],a+=1;return o}),_u=nd;var od=f(function(r,t){for(var o=0,a=Math.min(r.length,t.length),i={};o<a;)i[r[o]]=t[o],o+=1;return i}),wu=od;var ad=l(function(r,t,o){for(var a=[],i=0,u=Math.min(t.length,o.length);i<u;)a[i]=r(t[i],o[i]),i+=1;return a}),Iu=ad;var id=p(function(r){return O(r.length,function(){var o=arguments;return function(){return r.apply(this,o)}})}),bu=id;var Pu={update:null,begin:null,loopBegin:null,changeBegin:null,change:null,changeComplete:null,loopComplete:null,complete:null,loop:1,direction:"normal",autoplay:!0,timelineOffset:0},qn={duration:1e3,delay:0,endDelay:0,easing:"easeOutElastic(1, .5)",round:0},ud=["translateX","translateY","translateZ","rotate","rotateX","rotateY","rotateZ","scale","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective","matrix","matrix3d"],Qe={CSS:{},springs:{}};function gr(n,r,t){return Math.min(Math.max(n,r),t)}function Ut(n,r){return n.indexOf(r)>-1}function jn(n,r){return n.apply(null,r)}var g={arr:function(n){return Array.isArray(n)},obj:function(n){return Ut(Object.prototype.toString.call(n),"Object")},pth:function(n){return g.obj(n)&&n.hasOwnProperty("totalLength")},svg:function(n){return n instanceof SVGElement},inp:function(n){return n instanceof HTMLInputElement},dom:function(n){return n.nodeType||g.svg(n)},str:function(n){return typeof n=="string"},fnc:function(n){return typeof n=="function"},und:function(n){return typeof n>"u"},nil:function(n){return g.und(n)||n===null},hex:function(n){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)/i.test(n)},rgb:function(n){return/^rgb/.test(n)},hsl:function(n){return/^hsl/.test(n)},col:function(n){return g.hex(n)||g.rgb(n)||g.hsl(n)},key:function(n){return!Pu.hasOwnProperty(n)&&!qn.hasOwnProperty(n)&&n!=="targets"&&n!=="keyframes"}};function Eu(n){var r=/\(([^)]+)\)/.exec(n);return r?r[1].split(",").map(function(t){return parseFloat(t)}):[]}function Tu(n,r){var t=Eu(n),o=gr(g.und(t[0])?1:t[0],.1,100),a=gr(g.und(t[1])?100:t[1],.1,100),i=gr(g.und(t[2])?10:t[2],.1,100),u=gr(g.und(t[3])?0:t[3],.1,100),c=Math.sqrt(a/o),s=i/(2*Math.sqrt(a*o)),d=s<1?c*Math.sqrt(1-s*s):0,m=1,h=s<1?(s*c+-u)/d:-u+c;function x(v){var I=r?r*v/1e3:v;return s<1?I=Math.exp(-I*s*c)*(m*Math.cos(d*I)+h*Math.sin(d*I)):I=(m+h*I)*Math.exp(-I*c),v===0||v===1?v:1-I}function N(){var v=Qe.springs[n];if(v)return v;for(var I=1/6,b=0,L=0;;)if(b+=I,x(b)===1){if(L++,L>=16)break}else L=0;var q=b*I*1e3;return Qe.springs[n]=q,q}return r?x:N}function fd(n){return n===void 0&&(n=10),function(r){return Math.ceil(gr(r,1e-6,1)*n)*(1/n)}}var sd=function(){var n=11,r=1/(n-1);function t(m,h){return 1-3*h+3*m}function o(m,h){return 3*h-6*m}function a(m){return 3*m}function i(m,h,x){return((t(h,x)*m+o(h,x))*m+a(h))*m}function u(m,h,x){return 3*t(h,x)*m*m+2*o(h,x)*m+a(h)}function c(m,h,x,N,v){var I,b,L=0;do b=h+(x-h)/2,I=i(b,N,v)-m,I>0?x=b:h=b;while(Math.abs(I)>1e-7&&++L<10);return b}function s(m,h,x,N){for(var v=0;v<4;++v){var I=u(h,x,N);if(I===0)return h;var b=i(h,x,N)-m;h-=b/I}return h}function d(m,h,x,N){if(!(0<=m&&m<=1&&0<=x&&x<=1))return;var v=new Float32Array(n);if(m!==h||x!==N)for(var I=0;I<n;++I)v[I]=i(I*r,m,x);function b(L){for(var q=0,w=1,A=n-1;w!==A&&v[w]<=L;++w)q+=r;--w;var Q=(L-v[w])/(v[w+1]-v[w]),tr=q+Q*r,D=u(tr,m,x);return D>=.001?s(L,tr,m,x):D===0?tr:c(L,q,q+r,m,x)}return function(L){return m===h&&x===N||L===0||L===1?L:i(b(L),h,N)}}return d}(),Wu=function(){var n={linear:function(){return function(o){return o}}},r={Sine:function(){return function(o){return 1-Math.cos(o*Math.PI/2)}},Circ:function(){return function(o){return 1-Math.sqrt(1-o*o)}},Back:function(){return function(o){return o*o*(3*o-2)}},Bounce:function(){return function(o){for(var a,i=4;o<((a=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((a*3-2)/22-o,2)}},Elastic:function(o,a){o===void 0&&(o=1),a===void 0&&(a=.5);var i=gr(o,1,10),u=gr(a,.1,2);return function(c){return c===0||c===1?c:-i*Math.pow(2,10*(c-1))*Math.sin((c-1-u/(Math.PI*2)*Math.asin(1/i))*(Math.PI*2)/u)}}},t=["Quad","Cubic","Quart","Quint","Expo"];return t.forEach(function(o,a){r[o]=function(){return function(i){return Math.pow(i,a+2)}}}),Object.keys(r).forEach(function(o){var a=r[o];n["easeIn"+o]=a,n["easeOut"+o]=function(i,u){return function(c){return 1-a(i,u)(1-c)}},n["easeInOut"+o]=function(i,u){return function(c){return c<.5?a(i,u)(c*2)/2:1-a(i,u)(c*-2+2)/2}},n["easeOutIn"+o]=function(i,u){return function(c){return c<.5?(1-a(i,u)(1-c*2))/2:(a(i,u)(c*2-1)+1)/2}}}),n}();function Fn(n,r){if(g.fnc(n))return n;var t=n.split("(")[0],o=Wu[t],a=Eu(n);switch(t){case"spring":return Tu(n,r);case"cubicBezier":return jn(sd,a);case"steps":return jn(fd,a);default:return jn(o,a)}}function Nu(n){try{var r=document.querySelectorAll(n);return r}catch{return}}function Ze(n,r){for(var t=n.length,o=arguments.length>=2?arguments[1]:void 0,a=[],i=0;i<t;i++)if(i in n){var u=n[i];r.call(o,u,i,n)&&a.push(u)}return a}function Je(n){return n.reduce(function(r,t){return r.concat(g.arr(t)?Je(t):t)},[])}function Au(n){return g.arr(n)?n:(g.str(n)&&(n=Nu(n)||n),n instanceof NodeList||n instanceof HTMLCollection?[].slice.call(n):[n])}function Un(n,r){return n.some(function(t){return t===r})}function zn(n){var r={};for(var t in n)r[t]=n[t];return r}function Dn(n,r){var t=zn(n);for(var o in n)t[o]=r.hasOwnProperty(o)?r[o]:n[o];return t}function Ge(n,r){var t=zn(n);for(var o in r)t[o]=g.und(n[o])?r[o]:n[o];return t}function cd(n){var r=/rgb\((\d+,\s*[\d]+,\s*[\d]+)\)/g.exec(n);return r?"rgba("+r[1]+",1)":n}function pd(n){var r=/^#?([a-f\d])([a-f\d])([a-f\d])$/i,t=n.replace(r,function(c,s,d,m){return s+s+d+d+m+m}),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t),a=parseInt(o[1],16),i=parseInt(o[2],16),u=parseInt(o[3],16);return"rgba("+a+","+i+","+u+",1)"}function ld(n){var r=/hsl\((\d+),\s*([\d.]+)%,\s*([\d.]+)%\)/g.exec(n)||/hsla\((\d+),\s*([\d.]+)%,\s*([\d.]+)%,\s*([\d.]+)\)/g.exec(n),t=parseInt(r[1],10)/360,o=parseInt(r[2],10)/100,a=parseInt(r[3],10)/100,i=r[4]||1;function u(x,N,v){return v<0&&(v+=1),v>1&&(v-=1),v<1/6?x+(N-x)*6*v:v<1/2?N:v<2/3?x+(N-x)*(2/3-v)*6:x}var c,s,d;if(o==0)c=s=d=a;else{var m=a<.5?a*(1+o):a+o-a*o,h=2*a-m;c=u(h,m,t+1/3),s=u(h,m,t),d=u(h,m,t-1/3)}return"rgba("+c*255+","+s*255+","+d*255+","+i+")"}function md(n){if(g.rgb(n))return cd(n);if(g.hex(n))return pd(n);if(g.hsl(n))return ld(n)}function Ir(n){var r=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?(%|px|pt|em|rem|in|cm|mm|ex|ch|pc|vw|vh|vmin|vmax|deg|rad|turn)?$/.exec(n);if(r)return r[1]}function dd(n){if(Ut(n,"translate")||n==="perspective")return"px";if(Ut(n,"rotate")||Ut(n,"skew"))return"deg"}function Mn(n,r){return g.fnc(n)?n(r.target,r.id,r.total):n}function xr(n,r){return n.getAttribute(r)}function Vn(n,r,t){var o=Ir(r);if(Un([t,"deg","rad","turn"],o))return r;var a=Qe.CSS[r+t];if(!g.und(a))return a;var i=100,u=document.createElement(n.tagName),c=n.parentNode&&n.parentNode!==document?n.parentNode:document.body;c.appendChild(u),u.style.position="absolute",u.style.width=i+t;var s=i/u.offsetWidth;c.removeChild(u);var d=s*parseFloat(r);return Qe.CSS[r+t]=d,d}function Bu(n,r,t){if(r in n.style){var o=r.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),a=n.style[r]||getComputedStyle(n).getPropertyValue(o)||"0";return t?Vn(n,a,t):a}}function Xn(n,r){if(g.dom(n)&&!g.inp(n)&&(!g.nil(xr(n,r))||g.svg(n)&&n[r]))return"attribute";if(g.dom(n)&&Un(ud,r))return"transform";if(g.dom(n)&&r!=="transform"&&Bu(n,r))return"css";if(n[r]!=null)return"object"}function Cu(n){if(g.dom(n)){for(var r=n.style.transform||"",t=/(\w+)\(([^)]*)\)/g,o=new Map,a;a=t.exec(r);)o.set(a[1],a[2]);return o}}function hd(n,r,t,o){var a=Ut(r,"scale")?1:0+dd(r),i=Cu(n).get(r)||a;return t&&(t.transforms.list.set(r,i),t.transforms.last=r),o?Vn(n,i,o):i}function Kn(n,r,t,o){switch(Xn(n,r)){case"transform":return hd(n,r,o,t);case"css":return Bu(n,r,t);case"attribute":return xr(n,r);default:return n[r]||0}}function Hn(n,r){var t=/^(\*=|\+=|-=)/.exec(n);if(!t)return n;var o=Ir(n)||0,a=parseFloat(r),i=parseFloat(n.replace(t[0],""));switch(t[0][0]){case"+":return a+i+o;case"-":return a-i+o;case"*":return a*i+o}}function Lu(n,r){if(g.col(n))return md(n);if(/\s/g.test(n))return n;var t=Ir(n),o=t?n.substr(0,n.length-t.length):n;return r?o+r:o}function Qn(n,r){return Math.sqrt(Math.pow(r.x-n.x,2)+Math.pow(r.y-n.y,2))}function yd(n){return Math.PI*2*xr(n,"r")}function vd(n){return xr(n,"width")*2+xr(n,"height")*2}function gd(n){return Qn({x:xr(n,"x1"),y:xr(n,"y1")},{x:xr(n,"x2"),y:xr(n,"y2")})}function ju(n){for(var r=n.points,t=0,o,a=0;a<r.numberOfItems;a++){var i=r.getItem(a);a>0&&(t+=Qn(o,i)),o=i}return t}function xd(n){var r=n.points;return ju(n)+Qn(r.getItem(r.numberOfItems-1),r.getItem(0))}function Du(n){if(n.getTotalLength)return n.getTotalLength();switch(n.tagName.toLowerCase()){case"circle":return yd(n);case"rect":return vd(n);case"line":return gd(n);case"polyline":return ju(n);case"polygon":return xd(n)}}function _d(n){var r=Du(n);return n.setAttribute("stroke-dasharray",r),r}function wd(n){for(var r=n.parentNode;g.svg(r)&&g.svg(r.parentNode);)r=r.parentNode;return r}function Mu(n,r){var t=r||{},o=t.el||wd(n),a=o.getBoundingClientRect(),i=xr(o,"viewBox"),u=a.width,c=a.height,s=t.viewBox||(i?i.split(" "):[0,0,u,c]);return{el:o,viewBox:s,x:s[0]/1,y:s[1]/1,w:u,h:c,vW:s[2],vH:s[3]}}function Id(n,r){var t=g.str(n)?Nu(n)[0]:n,o=r||100;return function(a){return{property:a,el:t,svg:Mu(t),totalLength:Du(t)*(o/100)}}}function bd(n,r,t){function o(m){m===void 0&&(m=0);var h=r+m>=1?r+m:0;return n.el.getPointAtLength(h)}var a=Mu(n.el,n.svg),i=o(),u=o(-1),c=o(1),s=t?1:a.w/a.vW,d=t?1:a.h/a.vH;switch(n.property){case"x":return(i.x-a.x)*s;case"y":return(i.y-a.y)*d;case"angle":return Math.atan2(c.y-u.y,c.x-u.x)*180/Math.PI}}function Ou(n,r){var t=/[+-]?\d*\.?\d+(?:\.\d+)?(?:[eE][+-]?\d+)?/g,o=Lu(g.pth(n)?n.totalLength:n,r)+"";return{original:o,numbers:o.match(t)?o.match(t).map(Number):[0],strings:g.str(n)||r?o.split(t):[]}}function Zn(n){var r=n?Je(g.arr(n)?n.map(Au):Au(n)):[];return Ze(r,function(t,o,a){return a.indexOf(t)===o})}function qu(n){var r=Zn(n);return r.map(function(t,o){return{target:t,id:o,total:r.length,transforms:{list:Cu(t)}}})}function Ad(n,r){var t=zn(r);if(/^spring/.test(t.easing)&&(t.duration=Tu(t.easing)),g.arr(n)){var o=n.length,a=o===2&&!g.obj(n[0]);a?n={value:n}:g.fnc(r.duration)||(t.duration=r.duration/o)}var i=g.arr(n)?n:[n];return i.map(function(u,c){var s=g.obj(u)&&!g.pth(u)?u:{value:u};return g.und(s.delay)&&(s.delay=c?0:r.delay),g.und(s.endDelay)&&(s.endDelay=c===i.length-1?r.endDelay:0),s}).map(function(u){return Ge(u,t)})}function Od(n){for(var r=Ze(Je(n.map(function(i){return Object.keys(i)})),function(i){return g.key(i)}).reduce(function(i,u){return i.indexOf(u)<0&&i.push(u),i},[]),t={},o=function(i){var u=r[i];t[u]=n.map(function(c){var s={};for(var d in c)g.key(d)?d==u&&(s.value=c[d]):s[d]=c[d];return s})},a=0;a<r.length;a++)o(a);return t}function Sd(n,r){var t=[],o=r.keyframes;o&&(r=Ge(Od(o),r));for(var a in r)g.key(a)&&t.push({name:a,tweens:Ad(r[a],n)});return t}function kd(n,r){var t={};for(var o in n){var a=Mn(n[o],r);g.arr(a)&&(a=a.map(function(i){return Mn(i,r)}),a.length===1&&(a=a[0])),t[o]=a}return t.duration=parseFloat(t.duration),t.delay=parseFloat(t.delay),t}function Rd(n,r){var t;return n.tweens.map(function(o){var a=kd(o,r),i=a.value,u=g.arr(i)?i[1]:i,c=Ir(u),s=Kn(r.target,n.name,c,r),d=t?t.to.original:s,m=g.arr(i)?i[0]:d,h=Ir(m)||Ir(s),x=c||h;return g.und(u)&&(u=d),a.from=Ou(m,x),a.to=Ou(Hn(u,m),x),a.start=t?t.end:0,a.end=a.start+a.delay+a.duration+a.endDelay,a.easing=Fn(a.easing,a.duration),a.isPath=g.pth(i),a.isPathTargetInsideSVG=a.isPath&&g.svg(r.target),a.isColor=g.col(a.from.original),a.isColor&&(a.round=1),t=a,a})}var Fu={css:function(n,r,t){return n.style[r]=t},attribute:function(n,r,t){return n.setAttribute(r,t)},object:function(n,r,t){return n[r]=t},transform:function(n,r,t,o,a){if(o.list.set(r,t),r===o.last||a){var i="";o.list.forEach(function(u,c){i+=c+"("+u+") "}),n.style.transform=i}}};function Uu(n,r){var t=qu(n);t.forEach(function(o){for(var a in r){var i=Mn(r[a],o),u=o.target,c=Ir(i),s=Kn(u,a,c,o),d=c||Ir(s),m=Hn(Lu(i,d),s),h=Xn(u,a);Fu[h](u,a,m,o.transforms,!0)}})}function Pd(n,r){var t=Xn(n.target,r.name);if(t){var o=Rd(r,n),a=o[o.length-1];return{type:t,property:r.name,animatable:n,tweens:o,duration:a.end,delay:o[0].delay,endDelay:a.endDelay}}}function Ed(n,r){return Ze(Je(n.map(function(t){return r.map(function(o){return Pd(t,o)})})),function(t){return!g.und(t)})}function zu(n,r){var t=n.length,o=function(i){return i.timelineOffset?i.timelineOffset:0},a={};return a.duration=t?Math.max.apply(Math,n.map(function(i){return o(i)+i.duration})):r.duration,a.delay=t?Math.min.apply(Math,n.map(function(i){return o(i)+i.delay})):r.delay,a.endDelay=t?a.duration-Math.max.apply(Math,n.map(function(i){return o(i)+i.duration-i.endDelay})):r.endDelay,a}var Su=0;function Td(n){var r=Dn(Pu,n),t=Dn(qn,n),o=Sd(t,n),a=qu(n.targets),i=Ed(a,o),u=zu(i,t),c=Su;return Su++,Ge(r,{id:c,children:[],animatables:a,animations:i,duration:u.duration,delay:u.delay,endDelay:u.endDelay})}var mr=[],Vu=function(){var n;function r(){!n&&(!ku()||!U.suspendWhenDocumentHidden)&&mr.length>0&&(n=requestAnimationFrame(t))}function t(a){for(var i=mr.length,u=0;u<i;){var c=mr[u];c.paused?(mr.splice(u,1),i--):(c.tick(a),u++)}n=u>0?requestAnimationFrame(t):void 0}function o(){U.suspendWhenDocumentHidden&&(ku()?n=cancelAnimationFrame(n):(mr.forEach(function(a){return a._onDocumentVisibility()}),Vu()))}return typeof document<"u"&&document.addEventListener("visibilitychange",o),r}();function ku(){return!!document&&document.hidden}function U(n){n===void 0&&(n={});var r=0,t=0,o=0,a,i=0,u=null;function c(w){var A=window.Promise&&new Promise(function(Q){return u=Q});return w.finished=A,A}var s=Td(n),d=c(s);function m(){var w=s.direction;w!=="alternate"&&(s.direction=w!=="normal"?"normal":"reverse"),s.reversed=!s.reversed,a.forEach(function(A){return A.reversed=s.reversed})}function h(w){return s.reversed?s.duration-w:w}function x(){r=0,t=h(s.currentTime)*(1/U.speed)}function N(w,A){A&&A.seek(w-A.timelineOffset)}function v(w){if(s.reversePlayback)for(var Q=i;Q--;)N(w,a[Q]);else for(var A=0;A<i;A++)N(w,a[A])}function I(w){for(var A=0,Q=s.animations,tr=Q.length;A<tr;){var D=Q[A],X=D.animatable,dr=D.tweens,br=dr.length-1,F=dr[br];br&&(F=Ze(dr,function(df){return w<df.end})[0]||F);for(var Qr=gr(w-F.start-F.delay,0,F.duration)/F.duration,S=isNaN(Qr)?1:F.easing(Qr),T=F.to.strings,qr=F.round,Zr=[],Kt=F.to.numbers.length,Jr=void 0,ht=0;ht<Kt;ht++){var yt=void 0,no=F.to.numbers[ht],oo=F.from.numbers[ht]||0;F.isPath?yt=bd(F.value,S*no,F.isPathTargetInsideSVG):yt=oo+S*(no-oo),qr&&(F.isColor&&ht>2||(yt=Math.round(yt*qr)/qr)),Zr.push(yt)}var ao=T.length;if(!ao)Jr=Zr[0];else{Jr=T[0];for(var vt=0;vt<ao;vt++){var mh=T[vt],io=T[vt+1],tn=Zr[vt];isNaN(tn)||(io?Jr+=tn+io:Jr+=tn+" ")}}Fu[D.type](X.target,D.property,Jr,X.transforms),D.currentValue=Jr,A++}}function b(w){s[w]&&!s.passThrough&&s[w](s)}function L(){s.remaining&&s.remaining!==!0&&s.remaining--}function q(w){var A=s.duration,Q=s.delay,tr=A-s.endDelay,D=h(w);s.progress=gr(D/A*100,0,100),s.reversePlayback=D<s.currentTime,a&&v(D),!s.began&&s.currentTime>0&&(s.began=!0,b("begin")),!s.loopBegan&&s.currentTime>0&&(s.loopBegan=!0,b("loopBegin")),D<=Q&&s.currentTime!==0&&I(0),(D>=tr&&s.currentTime!==A||!A)&&I(A),D>Q&&D<tr?(s.changeBegan||(s.changeBegan=!0,s.changeCompleted=!1,b("changeBegin")),b("change"),I(D)):s.changeBegan&&(s.changeCompleted=!0,s.changeBegan=!1,b("changeComplete")),s.currentTime=gr(D,0,A),s.began&&b("update"),w>=A&&(t=0,L(),s.remaining?(r=o,b("loopComplete"),s.loopBegan=!1,s.direction==="alternate"&&m()):(s.paused=!0,s.completed||(s.completed=!0,b("loopComplete"),b("complete"),!s.passThrough&&"Promise"in window&&(u(),d=c(s)))))}return s.reset=function(){var w=s.direction;s.passThrough=!1,s.currentTime=0,s.progress=0,s.paused=!0,s.began=!1,s.loopBegan=!1,s.changeBegan=!1,s.completed=!1,s.changeCompleted=!1,s.reversePlayback=!1,s.reversed=w==="reverse",s.remaining=s.loop,a=s.children,i=a.length;for(var A=i;A--;)s.children[A].reset();(s.reversed&&s.loop!==!0||w==="alternate"&&s.loop===1)&&s.remaining++,I(s.reversed?s.duration:0)},s._onDocumentVisibility=x,s.set=function(w,A){return Uu(w,A),s},s.tick=function(w){o=w,r||(r=o),q((o+(t-r))*U.speed)},s.seek=function(w){q(h(w))},s.pause=function(){s.paused=!0,x()},s.play=function(){s.paused&&(s.completed&&s.reset(),s.paused=!1,mr.push(s),x(),Vu())},s.reverse=function(){m(),s.completed=!s.reversed,x()},s.restart=function(){s.reset(),s.play()},s.remove=function(w){var A=Zn(w);Xu(A,s)},s.reset(),s.autoplay&&s.play(),s}function Ru(n,r){for(var t=r.length;t--;)Un(n,r[t].animatable.target)&&r.splice(t,1)}function Xu(n,r){var t=r.animations,o=r.children;Ru(n,t);for(var a=o.length;a--;){var i=o[a],u=i.animations;Ru(n,u),!u.length&&!i.children.length&&o.splice(a,1)}!t.length&&!o.length&&r.pause()}function Wd(n){for(var r=Zn(n),t=mr.length;t--;){var o=mr[t];Xu(r,o)}}function Nd(n,r){r===void 0&&(r={});var t=r.direction||"normal",o=r.easing?Fn(r.easing):null,a=r.grid,i=r.axis,u=r.from||0,c=u==="first",s=u==="center",d=u==="last",m=g.arr(n),h=parseFloat(m?n[0]:n),x=m?parseFloat(n[1]):0,N=Ir(m?n[1]:n)||0,v=r.start||0+(m?h:0),I=[],b=0;return function(L,q,w){if(c&&(u=0),s&&(u=(w-1)/2),d&&(u=w-1),!I.length){for(var A=0;A<w;A++){if(!a)I.push(Math.abs(u-A));else{var Q=s?(a[0]-1)/2:u%a[0],tr=s?(a[1]-1)/2:Math.floor(u/a[0]),D=A%a[0],X=Math.floor(A/a[0]),dr=Q-D,br=tr-X,F=Math.sqrt(dr*dr+br*br);i==="x"&&(F=-dr),i==="y"&&(F=-br),I.push(F)}b=Math.max.apply(Math,I)}o&&(I=I.map(function(S){return o(S/b)*b})),t==="reverse"&&(I=I.map(function(S){return i?S<0?S*-1:-S:Math.abs(b-S)}))}var Qr=m?(x-h)/b:h;return v+Qr*(Math.round(I[q]*100)/100)+N}}function Bd(n){n===void 0&&(n={});var r=U(n);return r.duration=0,r.add=function(t,o){var a=mr.indexOf(r),i=r.children;a>-1&&mr.splice(a,1);function u(x){x.passThrough=!0}for(var c=0;c<i.length;c++)u(i[c]);var s=Ge(t,Dn(qn,n));s.targets=s.targets||n.targets;var d=r.duration;s.autoplay=!1,s.direction=r.direction,s.timelineOffset=g.und(o)?d:Hn(o,d),u(r),r.seek(s.timelineOffset);var m=U(s);u(m),i.push(m);var h=zu(i,n);return r.delay=h.delay,r.endDelay=h.endDelay,r.duration=h.duration,r.seek(0),r.reset(),r.autoplay&&r.play(),r},r}U.version="3.2.1";U.speed=1;U.suspendWhenDocumentHidden=!0;U.running=mr;U.remove=Wd;U.get=Kn;U.set=Uu;U.convertPx=Vn;U.path=Id;U.setDashoffset=_d;U.stagger=Nd;U.timeline=Bd;U.easing=Fn;U.penner=Wu;U.random=function(n,r){return Math.floor(Math.random()*(r-n+1))+n};var Dr=U;var Qu=0,Zu=Object.create(null),Cd=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(let n of Cd)for(let r of["-webkit-","-ms-","-moz-","-o-",""])Zu[r+n]=!0;function Jn(n,r){return n.replace(/&/g,r)}function Ku(n){return n.replace(/[A-Z]/g,r=>`-${r.toLowerCase()}`).replace(/^ms-/,"-ms-")}function Ld(n){let r=5381,t=n.length;for(;t--;)r=r*33^n.charCodeAt(t);return(r>>>0).toString(36)}function jd(n,r){return n.indexOf("&")===-1?`${r} ${n}`:Jn(n,r)}function Hu(n,r){return n[0]>r[0]?1:n[0]<r[0]?-1:n[2]-r[2]}function Dd([n,r]){return typeof r=="number"&&r&&!Zu[n]?`${n}:${r}px`:`${n}:${String(r)}`}function Ju(n,r,t,o,a){let i=[],u=[];for(let I of Object.keys(o)){let b=o[I];if(I.charCodeAt(0)!==36&&b!=null)if(Array.isArray(b)){let L=Ku(I);for(let q=0;q<b.length;q++){let w=b[q];w!=null&&i.push([L,w,q])}}else typeof b=="object"?u.push([I,b,0]):i.push([Ku(I),b,0])}let c=!!o.$unique,s=o.$global?"":a,d=s?u:u.sort(Hu),m=i.sort(Hu).map(Dd).join(";"),h=m,x=s,N=n,v=r;t.charCodeAt(0)===64?(N=[],v=[],s&&m&&v.push({selector:x,style:m,isUnique:c}),n.push({selector:t,rules:N,styles:v,style:s?"":m})):(x=s?t?jd(t,s):s:t,m&&r.push({selector:x,style:m,isUnique:c}));for(let[I,b]of d)h+=`|${I}#${Ju(N,v,I,b,x)}`;return h}function Gu(n,r,t,o,a){for(let{selector:i,style:u,isUnique:c}of t){let s=Jn(i,a),d=new Yn(u,c?(++Qu).toString(36):o);d.add(new Gn(s)),n.add(d)}for(let{selector:i,style:u,rules:c,styles:s}of r){let d=Jn(i,a),m=new $n(d,u,o);Gu(m,c,s,o,a),n.add(m)}}function Yu(n){let r="";for(let t=0;t<n.length;t++)r+=n[t];return r}var zt=class n{constructor(r){this.changes=r,this.sheet=[],this.changeId=0,this._keys=[],this._children=Object.create(null),this._counters=Object.create(null)}add(r){let t=r.id,o=this._counters[t]||0,a=this._children[t]||r.clone();if(this._counters[t]=o+1,o===0)this._children[t]=a,this._keys.push(t),this.sheet.push(a.getStyles()),this.changeId++,this.changes&&this.changes.add(a,this._keys.length-1);else if(a instanceof n&&r instanceof n){let i=a.changeId;if(a.merge(r),a.changeId!==i){let u=this._keys.indexOf(t);this.sheet.splice(u,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,u,u)}}}remove(r){let t=r.id,o=this._counters[t];if(o){this._counters[t]=o-1;let a=this._children[t],i=this._keys.indexOf(t);if(o===1)delete this._counters[t],delete this._children[t],this._keys.splice(i,1),this.sheet.splice(i,1),this.changeId++,this.changes&&this.changes.remove(a,i);else if(a instanceof n&&r instanceof n){let u=a.changeId;a.unmerge(r),a.changeId!==u&&(this.sheet.splice(i,1,a.getStyles()),this.changeId++,this.changes&&this.changes.change(a,i,i))}}}values(){return this._keys.map(r=>this._children[r])}merge(r){for(let t of r.values())this.add(t);return this}unmerge(r){for(let t of r.values())this.remove(t);return this}clone(){return new n().merge(this)}},Gn=class{constructor(r){this.selector=r}get id(){return`k:${this.selector}`}getStyles(){return this.selector}clone(){return this}},Yn=class n extends zt{constructor(r,t){super(),this.style=r,this.pid=t}get id(){return`s:${this.pid}:${this.style}`}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new n(this.style,this.pid).merge(this)}},$n=class n extends zt{constructor(r,t,o){super(),this.rule=r,this.style=t,this.pid=o}get id(){return`r:${this.pid}:${this.rule}:${this.style}`}getStyles(){return`${this.rule}{${this.style}${Yu(this.sheet)}}`}clone(){return new n(this.rule,this.style,this.pid).merge(this)}},ro=class n extends zt{constructor(r,t){super(t),this.id=r}registerStyle(r){let t=[],o=[],a=Ju(t,o,"",r,".&"),i=`f${Ld(a)}`;return Gu(this,t,o,i,i),i}getStyles(){return Yu(this.sheet)}clone(){return new n(this.id,this.changes).merge(this)}};function $u(n){return new ro(`f${(++Qu).toString(36)}`,n)}var Md=console.log,Ye=$t([Oe,kt(Nt)]),Vt=te([or,Nt]),qd=(n,r=lr,t=lr,...o)=>{let a=n,i=o;return{get state(){return a},mod:u=>{let c=et(a),s=t(Ne(a,r(u,c)),c);return kt(W)(s,a)&&(a=s,C(ae,i)),{onceAfter:d=>Vt(d)?()=>{}:d(a)}},subscribe:u=>i=ee(u,i)}},dt=document,$e=n=>dt.createElement(n),rf=n=>dt.createTextNode(n),tf=n=>dt.head.appendChild(n),ef=n=>dt.body.appendChild(n),Mr="lcc"+crypto.randomUUID(),Fd=Mt(n=>{Vt(n[Mr].added)&&Vt(n[Mr].removed)||new MutationObserver((r,t)=>C(o=>{Wt(n,o.addedNodes)&&Ye(n[Mr].added)&&n[Mr].added(n),Wt(n,o.removedNodes)&&Ye(n[Mr].removed)&&(t.disconnect(),n[Mr].removed(n))})(r)).observe(window.document,{childList:!0,subtree:!0})}),nf=(n,r,...t)=>{let o=$e(n);return Bt((a,i)=>Vt(a)?delete o[i]:o[i]=a,de("lifecycle",r)),o[Mr]={},Bt((a,i)=>o[Mr][i]=a,r.lifecycle),C(a=>{a&&o.appendChild(Hr(String,a)?rf(a):a)},Ft(Hr(Array),Xe,t)),Fd(o)},Ud=(n,r,t)=>{let o=nf(n,r);return o.innerHTML=t,o},mt=n=>dt.getElementById(n),of=n=>{n.preventDefault(),n.stopPropagation()},af=n=>(r,t=!0)=>o=>{n(o)&&(r(o),t&&of(o))},zd=n=>{Ye(mt(n))&&mt(n).offsetParent!=null&&mt(n).focus()},Vd=n=>{let r=$e("script");r.setAttribute("src",n),r.async=!1,ef(r)},uf=n=>{let r=$u(),t=r.registerStyle(n),o=$e("style");return o.textContent=r.getStyles(),tf(o),t},Xd=Nr(rt(Nr),C(Mt)),Kd=n=>mt(n).value,Hd=n=>Ct({[`disabled${n}`]:!0}),Qd=n=>Ct({[`disabled${n}`]:!1}),Zd=n=>Ft(r=>n.state[`disabled${r.id}`],Pr("disabled",!0)),Jd=n=>mt(n).value="",ff=n=>{let r=null;return t=>{r&&clearTimeout(r),r=setTimeout(t,n)}},Gd=window.localStorage,Yd=JSON.parse,$d=JSON.stringify,rh=af(He({key:"Enter",keyCode:13}));uf({$global:!0,"*":{boxSizing:"border-box"},body:{margin:0,padding:0,letterSpacing:"0.2px",fontSize:"14pt"},"a,a:visited,a:hover,a:active":{color:"LinkText"}},!0);var to=1e3,th=to*6,eh=n=>()=>{Dr({targets:n,translateY:["-100%",0],duration:to,easing:"easeInOutQuad",complete:()=>{Dr({targets:n,top:[0,"-100%"],duration:to,delay:th,easing:"easeInOutQuad",complete:()=>{Dr.remove(n)}})}})},eo=1e3,nh=eo*2,oh=n=>()=>{Dr({targets:n,opacity:["0%","100%"],duration:eo,easing:"easeInOutQuad",complete:()=>{Dr({targets:n,opacity:["100%","0%"],duration:eo,delay:nh,easing:"easeInOutQuad",complete:()=>{Dr.remove(n)}})}})},ah=ff(1e3);Object.assign(globalThis,{R:Ln,anime:Dr,l:Md,neon:Ye,eon:Vt,store:qd,d:dt,dce:$e,dctn:rf,dhac:tf,dbac:ef,e:nf,innere:Ud,ge:mt,stopEvent:of,onEFN:af,onEnter:rh,focusIfVisible:zd,addjs:Vd,addcss:uf,callall:Xd,valueByID:Kd,disableID:Hd,enableID:Qd,clearValueByID:Jd,disableable:Zd,debounce:ff,runAfterOneSecondPause:ah,wls:Gd,jp:Yd,js:$d,slideDownUp:eh,fadeInOut:oh});var Xt=n=>"{{.Cfg.SuperTokensWebLibBase}}"+n;addjs(Xt("/website.js"));addjs(Xt("/supertokens.js"));addjs(Xt("/session.js"));addjs(Xt("/passwordless.js"));addjs(Xt("/emailverification.js"));var ih=addcss({boxSizing:"border-box",position:"absolute",top:"12px",right:"12px",zIndex:999,display:"flex",alignItems:"flex-end",flexDirection:"column"}),uh=addcss({backgroundColor:"white",minWidth:"10em",display:"flex",flexDirection:"column",border:"black solid 1px",paddingTop:"4px",div:{minHeight:"10px",marginBottom:"4px"}}),lf={padding:"4px",cursor:"pointer",marginLeft:"12px",fontVariant:"small-caps"},l3=addcss(lf),rn=addcss(R.mergeRight(lf,{marginLeft:"0px",paddingLeft:"12px",display:"inline-block",width:"calc(100% - 16px)","&:hover":{backgroundColor:"#e6e6e6"}})),fh=addcss({width:"32px",height:"32px",padding:"4px",border:0,cursor:"pointer",borderRadius:"16px",marginLeft:"12px"}),sh=addcss({width:"24px",height:"24px"}),sf=addcss({display:"flex",flexDirection:"column",padding:"4px",backgroundColor:"white",input:{marginBottom:"10px"}}),cf=addcss({textAlign:"center"}),ch=addcss({opacity:"0%"}),pf=addcss({marginTop:"10px"}),mf={display:"flex",alignItems:"center"},m3=addcss(mf),ph=addcss(R.mergeRight(mf,{width:"32px",height:"32px",justifyContent:"center"})),lh=R.replace(/(.)[^@]*(.)@(.).*(.\.[^.]+)/,"$1-$2@$3-$4");window.onload=()=>{let n=R.equals("{{.Cfg.PlainUI}}","true"),r=S=>"{{.Cfg.APIBasePath}}"+S,t=()=>R.equals("{{.LoggedIn}}","true"),o=()=>"{{.UserEmail}}",a=()=>"{{.UserID}}",i="st"+crypto.randomUUID(),u=i+"email",c=i+"otp",s=()=>{globalThis.stAuth.sendOTP(valueByID(u)),v.mod(disableID(u)(disableID(i+"emailButton")({})))},d=()=>{globalThis.stAuth.verifyOTP(valueByID(c)),disableID(c)({}),disableID(i+"otpButton")({})},m=()=>{v.mod({stState:"init",displayState:h.init}),X.state("loggedOut")},h={init:()=>null,enterEmail:()=>e("div",{className:sf},e("input",disableable(v)({id:u,type:"email",placeholder:"your.email@address.com",onkeyup:onEnter(s),className:cf})),e("button",disableable(v)({id:i+"emailButton",onclick:s}),"Request one-time code"),e("button",{className:pf,onclick:m},"Close")),enterOTP:()=>e("div",{className:sf},e("input",disableable(v)({id:c,type:"text",placeholder:"One-time code in email",onkeyup:onEnter(d),className:cf})),e("button",disableable(v)({id:i+"otpButton",onclick:d}),"Verify code"),e("button",{className:pf,onclick:m},"Close")),showEmail:()=>n?null:e("div",{className:ph},e("div",{id:i+"userEmail",className:ch},o()),e("button",{className:fh,onclick:fadeInOut("#"+i+"userEmail")},e("img",{className:sh,src:t()?r("/person_outline.svg"):null})))},x=()=>fetch(window.location.href+"?t="+Date.now(),{Pragma:"no-cache",Expires:-1,"Cache-Control":"no-cache"}).then(()=>window.location.reload()),N=S=>({init:R.identity,loggedOut:R.identity,checkEmail:R.mergeLeft({displayState:h.enterOTP}),wrongOTP:R.identity,oldOTP:R.identity,failedOTP:R.identity,signUpSuccess:R.tap(()=>setTimeout(()=>x(),1e3)),signInSuccess:R.tap(()=>setTimeout(()=>x(),1e3)),loggedIn:R.mergeLeft({displayState:h.showEmail}),logoutCompleted:R.tap(()=>setTimeout(()=>x(),1e3))})[R.propOr("init","stState",S)](S),v=store({init:!0,label:"...",stState:"init",showMenu:!1,menuItems:[],displayState:R.always(null)},N),I=()=>{t()||m(),v.mod({showMenu:!v.state.showMenu})},b=()=>v.mod({showMenu:!1}),L=()=>{b(),v.state.stState==="loggedOut"?v.mod({displayState:h.enterEmail}):v.state.stState==="loggedIn"&&globalThis.stAuth.logout()},q=null,w=S=>{neon(q)&&!q.contains(S.target)&&b()},A=S=>{q=S,document.removeEventListener("click",w,!0)},Q=S=>{q=S,A(S),document.addEventListener("click",w,!0)},tr=S=>v.mod({menuItems:R.map(([T,qr])=>e("div",{},e("a",{href:"javascript:",className:rn,onclick:()=>{b(),qr()}},T)),R.reject(eon,S))}),D=()=>e("div",{id:i,className:ih,style:"opacity:"+(v.state.stState=="init"?0:100)+"%;background:rgba(0,0,0,0)",onmouseleave:b,lifecycle:{added:Q,removed:A}},e("button",{style:"width:32px;height:32px;padding:0;border:0;background-color:white;cursor:pointer",onclick:I},e("img",{style:"width:32px;height:32px",src:r("/menu.svg")})),v.state.displayState(),v.state.showMenu?e("div",{className:uh},t()?null:e("div",{},e("a",{href:"#",className:rn,onclick:L},"login")),t()?e("div",{className:rn,style:"cursor:default;font-variant:normal"},lh(o())):null,...v.state.menuItems,t()?e("div",{},e("a",{href:"#",className:rn,onclick:L},"logout")):null):null);v.subscribe(()=>{ge(i).replaceWith(D()),focusIfVisible(u),focusIfVisible(c)}),dbac(D());let X={catch:(S,T)=>{},state:(S,T)=>v.mod({stState:S,stData:T})},dr=(S,T)=>X.catch(S+(T.isSuperTokensGeneralError?" (some other failure)":""),T);supertokens.init({appInfo:{apiDomain:"{{.Cfg.APIDomain}}",apiBasePath:"{{.Cfg.APIBasePath}}",appName:"{{.Cfg.AppName}}"},recipeList:[supertokensEmailVerification.init(),supertokensSession.init(),supertokensPasswordless.init()]});let br=async S=>{try{(await supertokensPasswordless.createCode({email:S})).status!="SIGN_IN_UP_NOT_ALLOWED"&&X.state("checkEmail")}catch(T){dr("sendOTP",T)}},F=async S=>{try{let T=await supertokensPasswordless.consumeCode({userInputCode:S});T.status==="OK"?T.createdNewRecipeUser&&T.user.loginMethods.length===1?X.state("signUpSuccess",T.user.id):X.state("signInSuccess",T.user.id):T.status==="INCORRECT_USER_INPUT_CODE_ERROR"?X.state("wrongOTP"):T.status==="EXPIRED_USER_INPUT_CODE_ERROR"?X.state("oldOTP"):X.state("failedOTP")}catch(T){dr("handleOTP",T)}},Qr=async()=>{await supertokensSession.signOut(),X.state("logoutCompleted")};globalThis.stAuth={sendOTP:br,verifyOTP:F,logout:Qr,isLoggedIn:t,userEmail:o,userID:a,setMenuItems:tr},neon(globalThis.authHooks)&&globalThis.authHooks.forEach(([S,T])=>{let qr=X[S];X[S]=(Zr,Kt)=>{qr(Zr,Kt),T(Zr,Kt)}}),neon(globalThis.menuItems)&&tr(globalThis.menuItems),t()?X.state("loggedIn",o()):X.state("loggedOut"),anime({targets:"#"+i,opacity:"100%",duration:1e3,easing:"easeInOutQuad",complete:()=>anime.remove("#"+i)})};})();