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