@lifesg/react-design-system 2.0.0-canary.6 → 2.0.0-canary.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import i,{useEffect as o,useLayoutEffect as a,useState as s,useRef as l,forwardRef as c,useCallback as u,useContext as d,useMemo as h}from"react";import{unstable_batchedUpdates as p}from"react-dom";import f,{keyframes as g,css as m}from"styled-components";import{ExternalIcon as y}from"@lifesg/react-icons/external";import{ExclamationCircleFillIcon as v}from"@lifesg/react-icons/exclamation-circle-fill";import{TickIcon as b}from"@lifesg/react-icons/tick";import{CrossIcon as w}from"@lifesg/react-icons/cross";import{MagnifierIcon as $}from"@lifesg/react-icons/magnifier";import{ChevronDownIcon as _}from"@lifesg/react-icons/chevron-down";import{ArrowRightIcon as S}from"@lifesg/react-icons";var x="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var F=function(){this.__data__=[],this.size=0};var k=function(e,t){return e===t||e!=e&&t!=t},B=k;var A=function(e,t){for(var n=e.length;n--;)if(B(e[n][0],t))return n;return-1},O=A,j=Array.prototype.splice;var E=A;var D=A;var C=A;var P=F,I=function(e){var t=this.__data__,n=O(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),--this.size,!0)},z=function(e){var t=this.__data__,n=E(t,e);return n<0?void 0:t[n][1]},T=function(e){return D(this.__data__,e)>-1},H=function(e,t){var n=this.__data__,r=C(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function N(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N.prototype.clear=P,N.prototype.delete=I,N.prototype.get=z,N.prototype.has=T,N.prototype.set=H;var M=N,V=M;var R=function(){this.__data__=new V,this.size=0};var L=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var W=function(e){return this.__data__.get(e)};var q=function(e){return this.__data__.has(e)},U="object"==typeof x&&x&&x.Object===Object&&x,Q=U,G="object"==typeof self&&self&&self.Object===Object&&self,X=Q||G||Function("return this")(),Z=X.Symbol,K=Z,Y=Object.prototype,J=Y.hasOwnProperty,ee=Y.toString,te=K?K.toStringTag:void 0;var ne=function(e){var t=J.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var i=ee.call(e);return r&&(t?e[te]=n:delete e[te]),i},re=Object.prototype.toString;var ie=ne,oe=function(e){return re.call(e)},ae=Z?Z.toStringTag:void 0;var se=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ae&&ae in Object(e)?ie(e):oe(e)};var le=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ce=se,ue=le;var de,he=function(e){if(!ue(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},pe=X["__core-js_shared__"],fe=(de=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+de:"";var ge=function(e){return!!fe&&fe in e},me=Function.prototype.toString;var ye=function(e){if(null!=e){try{return me.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ve=he,be=ge,we=le,$e=ye,_e=/^\[object .+?Constructor\]$/,Se=Function.prototype,xe=Object.prototype,Fe=Se.toString,ke=xe.hasOwnProperty,Be=RegExp("^"+Fe.call(ke).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Ae=function(e){return!(!we(e)||be(e))&&(ve(e)?Be:_e).test($e(e))},Oe=function(e,t){return null==e?void 0:e[t]};var je=function(e,t){var n=Oe(e,t);return Ae(n)?n:void 0},Ee=je(X,"Map"),De=je(Object,"create"),Ce=De;var Pe=function(){this.__data__=Ce?Ce(null):{},this.size=0};var Ie=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ze=De,Te=Object.prototype.hasOwnProperty;var He=function(e){var t=this.__data__;if(ze){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Te.call(t,e)?t[e]:void 0},Ne=De,Me=Object.prototype.hasOwnProperty;var Ve=De;var Re=Pe,Le=Ie,We=He,qe=function(e){var t=this.__data__;return Ne?void 0!==t[e]:Me.call(t,e)},Ue=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ve&&void 0===t?"__lodash_hash_undefined__":t,this};function Qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qe.prototype.clear=Re,Qe.prototype.delete=Le,Qe.prototype.get=We,Qe.prototype.has=qe,Qe.prototype.set=Ue;var Ge=Qe,Xe=M,Ze=Ee;var Ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var n=e.__data__;return Ke(t)?n["string"==typeof t?"string":"hash"]:n.map},Je=Ye;var et=Ye;var tt=Ye;var nt=Ye;var rt=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ze||Xe),string:new Ge}},it=function(e){var t=Je(this,e).delete(e);return this.size-=t?1:0,t},ot=function(e){return et(this,e).get(e)},at=function(e){return tt(this,e).has(e)},st=function(e,t){var n=nt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function lt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lt.prototype.clear=rt,lt.prototype.delete=it,lt.prototype.get=ot,lt.prototype.has=at,lt.prototype.set=st;var ct=lt,ut=M,dt=Ee,ht=ct;var pt=M,ft=R,gt=L,mt=W,yt=q,vt=function(e,t){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!dt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ht(r)}return n.set(e,t),this.size=n.size,this};function bt(e){var t=this.__data__=new pt(e);this.size=t.size}bt.prototype.clear=ft,bt.prototype.delete=gt,bt.prototype.get=mt,bt.prototype.has=yt,bt.prototype.set=vt;var wt=bt;var $t=ct,_t=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},St=function(e){return this.__data__.has(e)};function xt(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $t;++t<n;)this.add(e[t])}xt.prototype.add=xt.prototype.push=_t,xt.prototype.has=St;var Ft=xt,kt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Bt=function(e,t){return e.has(t)};var At=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&n?new Ft:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(r)var m=a?r(g,f,d,t,e,o):r(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!kt(t,(function(e,t){if(!Bt(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Ot=X.Uint8Array,jt=k,Et=At,Dt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Ct=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Pt=Z?Z.prototype:void 0,It=Pt?Pt.valueOf:void 0;var zt=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new Ot(e),new Ot(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return jt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Dt;case"[object Set]":var l=1&r;if(s||(s=Ct),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Et(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(It)return It.call(e)==It.call(t)}return!1};var Tt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Ht=Array.isArray,Nt=Tt,Mt=Ht;var Vt=function(e,t,n){var r=t(e);return Mt(e)?r:Nt(r,n(e))};var Rt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o},Lt=function(){return[]},Wt=Object.prototype.propertyIsEnumerable,qt=Object.getOwnPropertySymbols,Ut=qt?function(e){return null==e?[]:(e=Object(e),Rt(qt(e),(function(t){return Wt.call(e,t)})))}:Lt;var Qt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Gt=function(e){return null!=e&&"object"==typeof e},Xt=se,Zt=Gt;var Kt=function(e){return Zt(e)&&"[object Arguments]"==Xt(e)},Yt=Gt,Jt=Object.prototype,en=Jt.hasOwnProperty,tn=Jt.propertyIsEnumerable,nn=Kt(function(){return arguments}())?Kt:function(e){return Yt(e)&&en.call(e,"callee")&&!tn.call(e,"callee")},rn={exports:{}};var on=function(){return!1};!function(e,t){var n=X,r=on,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(rn,rn.exports);var an=/^(?:0|[1-9]\d*)$/;var sn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&an.test(e))&&e>-1&&e%1==0&&e<t};var ln=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},cn=se,un=ln,dn=Gt,hn={};hn["[object Float32Array]"]=hn["[object Float64Array]"]=hn["[object Int8Array]"]=hn["[object Int16Array]"]=hn["[object Int32Array]"]=hn["[object Uint8Array]"]=hn["[object Uint8ClampedArray]"]=hn["[object Uint16Array]"]=hn["[object Uint32Array]"]=!0,hn["[object Arguments]"]=hn["[object Array]"]=hn["[object ArrayBuffer]"]=hn["[object Boolean]"]=hn["[object DataView]"]=hn["[object Date]"]=hn["[object Error]"]=hn["[object Function]"]=hn["[object Map]"]=hn["[object Number]"]=hn["[object Object]"]=hn["[object RegExp]"]=hn["[object Set]"]=hn["[object String]"]=hn["[object WeakMap]"]=!1;var pn=function(e){return dn(e)&&un(e.length)&&!!hn[cn(e)]};var fn=function(e){return function(t){return e(t)}},gn={exports:{}};!function(e,t){var n=U,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(gn,gn.exports);var mn=pn,yn=fn,vn=gn.exports,bn=vn&&vn.isTypedArray,wn=bn?yn(bn):mn,$n=Qt,_n=nn,Sn=Ht,xn=rn.exports,Fn=sn,kn=wn,Bn=Object.prototype.hasOwnProperty;var An=function(e,t){var n=Sn(e),r=!n&&_n(e),i=!n&&!r&&xn(e),o=!n&&!r&&!i&&kn(e),a=n||r||i||o,s=a?$n(e.length,String):[],l=s.length;for(var c in e)!t&&!Bn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fn(c,l))||s.push(c);return s},On=Object.prototype;var jn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||On)};var En=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Dn=jn,Cn=En,Pn=Object.prototype.hasOwnProperty;var In=he,zn=ln;var Tn=function(e){return null!=e&&zn(e.length)&&!In(e)},Hn=An,Nn=function(e){if(!Dn(e))return Cn(e);var t=[];for(var n in Object(e))Pn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Mn=Tn;var Vn=function(e){return Mn(e)?Hn(e):Nn(e)},Rn=Vt,Ln=Ut,Wn=Vn;var qn=function(e){return Rn(e,Wn,Ln)},Un=Object.prototype.hasOwnProperty;var Qn=function(e,t,n,r,i,o){var a=1&n,s=qn(e),l=s.length;if(l!=qn(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Un.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},Gn=je(X,"DataView"),Xn=Ee,Zn=je(X,"Promise"),Kn=je(X,"Set"),Yn=je(X,"WeakMap"),Jn=se,er=ye,tr="[object Map]",nr="[object Promise]",rr="[object Set]",ir="[object WeakMap]",or="[object DataView]",ar=er(Gn),sr=er(Xn),lr=er(Zn),cr=er(Kn),ur=er(Yn),dr=Jn;(Gn&&dr(new Gn(new ArrayBuffer(1)))!=or||Xn&&dr(new Xn)!=tr||Zn&&dr(Zn.resolve())!=nr||Kn&&dr(new Kn)!=rr||Yn&&dr(new Yn)!=ir)&&(dr=function(e){var t=Jn(e),n="[object Object]"==t?e.constructor:void 0,r=n?er(n):"";if(r)switch(r){case ar:return or;case sr:return tr;case lr:return nr;case cr:return rr;case ur:return ir}return t});var hr=wt,pr=At,fr=zt,gr=Qn,mr=dr,yr=Ht,vr=rn.exports,br=wn,wr="[object Arguments]",$r="[object Array]",_r="[object Object]",Sr=Object.prototype.hasOwnProperty;var xr=function(e,t,n,r,i,o){var a=yr(e),s=yr(t),l=a?$r:mr(e),c=s?$r:mr(t),u=(l=l==wr?_r:l)==_r,d=(c=c==wr?_r:c)==_r,h=l==c;if(h&&vr(e)){if(!vr(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new hr),a||br(e)?pr(e,t,n,r,i,o):fr(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&Sr.call(e,"__wrapped__"),f=d&&Sr.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new hr),i(g,m,n,r,o)}}return!!h&&(o||(o=new hr),gr(e,t,n,r,i,o))},Fr=Gt;var kr=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Fr(t)&&!Fr(n)?t!=t&&n!=n:xr(t,n,r,i,e,o))},Br=wt,Ar=kr;var Or=le;var jr=function(e){return e==e&&!Or(e)},Er=jr,Dr=Vn;var Cr=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Pr=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Br;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?Ar(u,c,3,r,d):h))return!1}}return!0},Ir=function(e){for(var t=Dr(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Er(i)]}return t},zr=Cr;var Tr=function(e){var t=Ir(e);return 1==t.length&&t[0][2]?zr(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}},Hr=se,Nr=Gt;var Mr=function(e){return"symbol"==typeof e||Nr(e)&&"[object Symbol]"==Hr(e)},Vr=Ht,Rr=Mr,Lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;var qr=function(e,t){if(Vr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rr(e))||(Wr.test(e)||!Lr.test(e)||null!=t&&e in Object(t))},Ur=ct;function Qr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Qr.Cache||Ur),n}Qr.Cache=Ur;var Gr=Qr;var Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/\\(\\)?/g,Kr=function(e){var t=Gr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Xr,(function(e,n,r,i){t.push(r?i.replace(Zr,"$1"):n||e)})),t}));var Yr=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},Jr=Ht,ei=Mr,ti=Z?Z.prototype:void 0,ni=ti?ti.toString:void 0;var ri=function e(t){if("string"==typeof t)return t;if(Jr(t))return Yr(t,e)+"";if(ei(t))return ni?ni.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},ii=ri;var oi=Ht,ai=qr,si=Kr,li=function(e){return null==e?"":ii(e)};var ci=function(e,t){return oi(e)?e:ai(e,t)?[e]:si(li(e))},ui=Mr;var di=function(e){if("string"==typeof e||ui(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},hi=ci,pi=di;var fi=function(e,t){for(var n=0,r=(t=hi(t,e)).length;null!=e&&n<r;)e=e[pi(t[n++])];return n&&n==r?e:void 0},gi=fi;var mi=function(e,t,n){var r=null==e?void 0:gi(e,t);return void 0===r?n:r};var yi=ci,vi=nn,bi=Ht,wi=sn,$i=ln,_i=di;var Si=function(e,t){return null!=e&&t in Object(e)},xi=function(e,t,n){for(var r=-1,i=(t=yi(t,e)).length,o=!1;++r<i;){var a=_i(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&$i(i)&&wi(a,i)&&(bi(e)||vi(e))};var Fi=kr,ki=mi,Bi=function(e,t){return null!=e&&xi(e,t,Si)},Ai=qr,Oi=jr,ji=Cr,Ei=di;var Di=fi;var Ci=function(e){return function(t){return null==t?void 0:t[e]}},Pi=function(e){return function(t){return Di(t,e)}},Ii=qr,zi=di;var Ti=Tr,Hi=function(e,t){return Ai(e)&&Oi(t)?ji(Ei(e),t):function(n){var r=ki(n,e);return void 0===r&&r===t?Bi(n,e):Fi(t,r,3)}},Ni=function(e){return e},Mi=Ht,Vi=function(e){return Ii(e)?Ci(zi(e)):Pi(e)};var Ri=function(e){return"function"==typeof e?e:null==e?Ni:"object"==typeof e?Mi(e)?Hi(e[0],e[1]):Ti(e):Vi(e)},Li=Ri,Wi=Tn,qi=Vn;var Ui=function(e){return function(t,n,r){var i=Object(t);if(!Wi(t)){var o=Li(n);t=qi(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}};var Qi=/\s/;var Gi=function(e){for(var t=e.length;t--&&Qi.test(e.charAt(t)););return t},Xi=/^\s+/;var Zi=function(e){return e?e.slice(0,Gi(e)+1).replace(Xi,""):e},Ki=le,Yi=Mr,Ji=/^[-+]0x[0-9a-f]+$/i,eo=/^0b[01]+$/i,to=/^0o[0-7]+$/i,no=parseInt;var ro=function(e){if("number"==typeof e)return e;if(Yi(e))return NaN;if(Ki(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ki(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zi(e);var n=eo.test(e);return n||to.test(e)?no(e.slice(2),n?2:8):Ji.test(e)?NaN:+e},io=1/0;var oo=function(e){return e?(e=ro(e))===io||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var ao=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1},so=Ri,lo=function(e){var t=oo(e),n=t%1;return t==t?n?t-n:t:0},co=Math.max;var uo=Ui((function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:lo(n);return i<0&&(i=co(r+i,0)),ao(e,so(t),i)})),ho=kr;var po=function(e,t){return ho(e,t)};let fo=jo();const go=e=>ko(e,fo);let mo=jo();go.write=e=>ko(e,mo);let yo=jo();go.onStart=e=>ko(e,yo);let vo=jo();go.onFrame=e=>ko(e,vo);let bo=jo();go.onFinish=e=>ko(e,bo);let wo=[];go.setTimeout=(e,t)=>{let n=go.now()+t,r=()=>{let e=wo.findIndex((e=>e.cancel==r));~e&&wo.splice(e,1),xo-=~e?1:0},i={time:n,handler:e,cancel:r};return wo.splice($o(n),0,i),xo+=1,Bo(),i};let $o=e=>~(~wo.findIndex((t=>t.time>e))||~wo.length);go.cancel=e=>{yo.delete(e),vo.delete(e),bo.delete(e),fo.delete(e),mo.delete(e)},go.sync=e=>{Fo=!0,go.batchedUpdates(e),Fo=!1},go.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,go.onStart(n)}return r.handler=e,r.cancel=()=>{yo.delete(n),t=null},r};let _o="undefined"!=typeof window?window.requestAnimationFrame:()=>{};go.use=e=>_o=e,go.now="undefined"!=typeof performance?()=>performance.now():Date.now,go.batchedUpdates=e=>e(),go.catch=console.error,go.frameLoop="always",go.advance=()=>{"demand"!==go.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Oo()};let So=-1,xo=0,Fo=!1;function ko(e,t){Fo?(t.delete(e),e(0)):(t.add(e),Bo())}function Bo(){So<0&&(So=0,"demand"!==go.frameLoop&&_o(Ao))}function Ao(){~So&&(_o(Ao),go.batchedUpdates(Oo))}function Oo(){let e=So;So=go.now();let t=$o(So);t&&(Eo(wo.splice(0,t),(e=>e.handler())),xo-=t),xo?(yo.flush(),fo.flush(e?Math.min(64,So-e):16.667),vo.flush(),mo.flush(),bo.flush()):So=-1}function jo(){let e=new Set,t=e;return{add(n){xo+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(xo-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,xo-=t.size,Eo(t,(t=>t(n)&&e.add(t))),xo+=e.size,t=e)}}}function Eo(e,t){e.forEach((e=>{try{t(e)}catch(e){go.catch(e)}}))}function Do(){}const Co={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Po(e,t){if(Co.arr(e)){if(!Co.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Io=(e,t)=>e.forEach(t);function zo(e,t,n){if(Co.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const To=e=>Co.und(e)?[]:Co.arr(e)?e:[e];function Ho(e,t){if(e.size){const n=Array.from(e);e.clear(),Io(n,t)}}const No=(e,...t)=>Ho(e,(e=>e(...t))),Mo=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Vo,Ro,Lo=null,Wo=!1,qo=Do;var Uo=Object.freeze({__proto__:null,get createStringInterpolator(){return Vo},get to(){return Ro},get colors(){return Lo},get skipAnimation(){return Wo},get willAdvance(){return qo},assign:e=>{e.to&&(Ro=e.to),e.now&&(go.now=e.now),void 0!==e.colors&&(Lo=e.colors),null!=e.skipAnimation&&(Wo=e.skipAnimation),e.createStringInterpolator&&(Vo=e.createStringInterpolator),e.requestAnimationFrame&&go.use(e.requestAnimationFrame),e.batchedUpdates&&(go.batchedUpdates=e.batchedUpdates),e.willAdvance&&(qo=e.willAdvance),e.frameLoop&&(go.frameLoop=e.frameLoop)}});const Qo=new Set;let Go=[],Xo=[],Zo=0;const Ko={get idle(){return!Qo.size&&!Go.length},start(e){Zo>e.priority?(Qo.add(e),go.onStart(Yo)):(Jo(e),go(ta))},advance:ta,sort(e){if(Zo)go.onFrame((()=>Ko.sort(e)));else{const t=Go.indexOf(e);~t&&(Go.splice(t,1),ea(e))}},clear(){Go=[],Qo.clear()}};function Yo(){Qo.forEach(Jo),Qo.clear(),go(ta)}function Jo(e){Go.includes(e)||ea(e)}function ea(e){Go.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Go,(t=>t.priority>e.priority)),0,e)}function ta(e){const t=Xo;for(let n=0;n<Go.length;n++){const r=Go[n];Zo=r.priority,r.idle||(qo(r),r.advance(e),r.idle||t.push(r))}return Zo=0,Xo=Go,Xo.length=0,Go=t,Go.length>0}const na="[-+]?\\d*\\.?\\d+",ra=na+"%";function ia(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const oa=new RegExp("rgb"+ia(na,na,na)),aa=new RegExp("rgba"+ia(na,na,na,na)),sa=new RegExp("hsl"+ia(na,ra,ra)),la=new RegExp("hsla"+ia(na,ra,ra,na)),ca=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ua=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,da=/^#([0-9a-fA-F]{6})$/,ha=/^#([0-9a-fA-F]{8})$/;function pa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fa(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=pa(i,r,e+1/3),a=pa(i,r,e),s=pa(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function ga(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ma(e){return(parseFloat(e)%360+360)%360/360}function ya(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function va(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ba(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=da.exec(e))?parseInt(t[1]+"ff",16)>>>0:Lo&&void 0!==Lo[e]?Lo[e]:(t=oa.exec(e))?(ga(t[1])<<24|ga(t[2])<<16|ga(t[3])<<8|255)>>>0:(t=aa.exec(e))?(ga(t[1])<<24|ga(t[2])<<16|ga(t[3])<<8|ya(t[4]))>>>0:(t=ca.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ha.exec(e))?parseInt(t[1],16)>>>0:(t=ua.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=sa.exec(e))?(255|fa(ma(t[1]),va(t[2]),va(t[3])))>>>0:(t=la.exec(e))?(fa(ma(t[1]),va(t[2]),va(t[3]))|ya(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const wa=(e,t,n)=>{if(Co.fun(e))return e;if(Co.arr(e))return wa({range:e,output:t,extrapolate:n});if(Co.str(e.output[0]))return Vo(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};const $a=1.70158,_a=1.525*$a,Sa=$a+1,xa=2*Math.PI/3,Fa=2*Math.PI/4.5,ka=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ba={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>Sa*e*e*e-$a*e*e,easeOutBack:e=>1+Sa*Math.pow(e-1,3)+$a*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-_a)/2:(Math.pow(2*e-2,2)*((_a+1)*(2*e-2)+_a)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*xa),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*xa)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Fa)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Fa)/2+1,easeInBounce:e=>1-ka(1-e),easeOutBounce:ka,easeInOutBounce:e=>e<.5?(1-ka(1-2*e))/2:(1+ka(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}};function Aa(){return Aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Aa.apply(this,arguments)}const Oa=Symbol.for("FluidValue.get"),ja=Symbol.for("FluidValue.observers"),Ea=e=>Boolean(e&&e[Oa]),Da=e=>e&&e[Oa]?e[Oa]():e,Ca=e=>e[ja]||null;function Pa(e,t){let n=e[ja];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ia{constructor(e){if(this[Oa]=void 0,this[ja]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");za(this,e)}}const za=(e,t)=>Na(e,Oa,t);function Ta(e,t){if(e[Oa]){let n=e[ja];n||Na(e,ja,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ha(e,t){let n=e[ja];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ja]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Na=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ma=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Va=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ra=new RegExp(`(${Ma.source})(%|[a-z]+)`,"i"),La=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qa=e=>{const[t,n]=Ua(e);if(!t||Mo())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Wa.test(n)?qa(n):n||e},Ua=e=>{const t=Wa.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Qa;const Ga=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Xa=e=>{Qa||(Qa=Lo?new RegExp(`(${Object.keys(Lo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Da(e).replace(Wa,qa).replace(Va,ba).replace(Qa,ba))),n=t.map((e=>e.match(Ma).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>wa(Aa({},e,{output:t}))));return e=>{var n;const i=!Ra.test(t[0])&&(null==(n=t.find((e=>Ra.test(e))))?void 0:n.replace(Ma,""));let o=0;return t[0].replace(Ma,(()=>`${r[o++](e)}${i||""}`)).replace(La,Ga)}},Za="react-spring: ",Ka=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Za}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ya=Ka(console.warn);const Ja=Ka(console.warn);function es(e){return Co.str(e)&&("#"==e[0]||/\d/.test(e)||!Mo()&&Wa.test(e)||e in(Lo||{}))}const ts=Mo()?o:a,ns=()=>{const e=l(!1);return ts((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function rs(){const e=s()[1],t=ns();return()=>{t.current&&e(Math.random())}}const is=e=>o(e,os),os=[];function as(e){const t=l();return o((()=>{t.current=e})),t.current}const ss=Symbol.for("Animated:node"),ls=e=>e&&e[ss],cs=(e,t)=>{return n=e,r=ss,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},us=e=>e&&e[ss]&&e[ss].getPayload();class ds{constructor(){this.payload=void 0,cs(this,this)}getPayload(){return this.payload||[]}}class hs extends ds{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Co.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new hs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Co.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Co.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class ps extends hs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=wa({output:[e,e]})}static create(e){return new ps(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Co.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=wa({output:[this.getValue(),e]})),this._value=0,super.reset()}}const fs={dependencies:null};class gs extends ds{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return zo(this.source,((n,r)=>{var i;(i=n)&&i[ss]===i?t[r]=n.getValue(e):Ea(n)?t[r]=Da(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Io(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return zo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){fs.dependencies&&Ea(e)&&fs.dependencies.add(e);const t=us(e);t&&Io(t,(e=>this.add(e)))}}class ms extends gs{constructor(e){super(e)}static create(e){return new ms(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(ys)),!0)}}function ys(e){return(es(e)?ps:hs).create(e)}function vs(e){const t=ls(e);return t?t.constructor:Co.arr(e)?ms:es(e)?ps:hs}function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bs.apply(this,arguments)}const ws=(e,t)=>{const n=!Co.fun(e)||e.prototype&&e.prototype.isReactComponent;return c(((i,a)=>{const s=l(null),c=n&&u((e=>{s.current=function(e,t){e&&(Co.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[d,h]=function(e,t){const n=new Set;fs.dependencies=n,e.style&&(e=bs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new gs(e),fs.dependencies=null,[e,n]}(i,t),p=rs(),f=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,d.getValue(!0)))&&p()},g=new $s(f,h),m=l();ts((()=>(m.current=g,Io(h,(e=>Ta(e,g))),()=>{m.current&&(Io(m.current.deps,(e=>Ha(e,m.current))),go.cancel(m.current.update))}))),o(f,[]),is((()=>()=>{const e=m.current;Io(e.deps,(t=>Ha(t,e)))}));const y=t.getComponentProps(d.getValue());return r.createElement(e,bs({},y,{ref:c}))}))};class $s{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&go.write(this.update)}}const _s=Symbol.for("AnimatedComponent"),Ss=e=>Co.str(e)?e:e&&Co.str(e.displayName)?e.displayName:Co.fun(e)&&e.name||null;function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xs.apply(this,arguments)}function Fs(e,...t){return Co.fun(e)?e(...t):e}const ks=(e,t)=>!0===e||!!(t&&e&&(Co.fun(e)?e(t):To(e).includes(t))),Bs=(e,t)=>Co.obj(e)?t&&e[t]:e,As=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Os=e=>e,js=(e,t=Os)=>{let n=Es;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);Co.und(n)||(r[i]=n)}return r},Es=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ds={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Cs(e){const t=function(e){const t={};let n=0;if(zo(e,((e,r)=>{Ds[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return zo(e,((e,r)=>r in t||(n[r]=e))),n}return xs({},e)}function Ps(e){return e=Da(e),Co.arr(e)?e.map(Ps):es(e)?Uo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Is(e){return Co.fun(e)||Co.arr(e)&&Co.obj(e[0])}const zs=xs({},{tension:170,friction:26},{mass:1,damping:1,easing:Ba.linear,clamp:!1});class Ts{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,zs)}}function Hs(e,t){if(Co.und(t.decay)){const n=!Co.und(t.tension)||!Co.und(t.friction);!n&&Co.und(t.frequency)&&Co.und(t.damping)&&Co.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Ns=[];class Ms{constructor(){this.changed=!1,this.values=Ns,this.toValues=null,this.fromValues=Ns,this.to=void 0,this.from=void 0,this.config=new Ts,this.immediate=!1}}function Vs(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=ks(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{Co.und(n.pause)||(i.paused=ks(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||ks(e,t)),c=Fs(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-go.now()}function p(){c>0&&!Uo.skipAnimation?(i.delayed=!0,u=go.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(xs({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Rs=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?qs(e.get()):t.every((e=>e.noop))?Ls(e.get()):Ws(e.get(),t.every((e=>e.finished))),Ls=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ws=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),qs=e=>({value:e,cancelled:!0,finished:!1});function Us(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=js(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&qs(r)||i!==n.asyncId&&Ws(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Gs,a=new Xs;return(async()=>{if(Uo.skipAnimation)throw Qs(n),a.result=Ws(r,!1),d(a),a;p(o);const s=Co.obj(e)?xs({},e):xs({},t,{to:e});s.parentId=i,zo(c,((e,t)=>{Co.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Uo.skipAnimation)return Qs(n),Ws(r,!1);try{let t;t=Co.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),g=Ws(r.get(),!0,!1)}catch(e){if(e instanceof Gs)g=e.result;else{if(!(e instanceof Xs))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Co.fun(a)&&go.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Qs(e,t){Ho(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Gs extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Xs extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Zs=e=>e instanceof Ys;let Ks=1;class Ys extends Ia{constructor(...e){super(...e),this.id=Ks++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ls(this);return e&&e.getValue()}to(...e){return Uo.to(this,e)}interpolate(...e){return Ya(`${Za}The "interpolate" function is deprecated in v9 (use "to" instead)`),Uo.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Pa(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ko.sort(this),Pa(this,{type:"priority",parent:this,priority:e})}}const Js=Symbol.for("SpringPhase"),el=e=>(1&e[Js])>0,tl=e=>(2&e[Js])>0,nl=e=>(4&e[Js])>0,rl=(e,t)=>t?e[Js]|=3:e[Js]&=-3,il=(e,t)=>t?e[Js]|=4:e[Js]&=-5;class ol extends Ys{constructor(e,t){if(super(),this.key=void 0,this.animation=new Ms,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Co.und(e)||!Co.und(t)){const n=Co.obj(e)?xs({},e):xs({},t,{from:e});Co.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(tl(this)||this._state.asyncTo)||nl(this)}get goal(){return Da(this.animation.to)}get velocity(){const e=ls(this);return e instanceof hs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return el(this)}get isAnimating(){return tl(this)}get isPaused(){return nl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=us(r.to);!a&&Ea(r.to)&&(o=To(Da(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ps?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Co.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Co.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!Co.und(r),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=ls(this),l=s.getValue();if(t){const e=Da(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return go.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tl(this)){const{to:e,config:t}=this.animation;go.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Co.und(e)?(n=this.queue||[],this.queue=[]):n=[Co.obj(e)?e:xs({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Rs(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Qs(this._state,e&&this._lastCallId),go.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Co.obj(n)?n[t]:n,(null==n||Is(n))&&(n=void 0),r=Co.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return el(this)||(e.reverse&&([n,r]=[r,n]),r=Da(r),Co.und(r)?ls(this)||this._set(n):this._set(r)),i}_update(e,t){let n=xs({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,js(n,((e,t)=>/^on/.test(t)?Bs(e,r):e))),hl(this,n,"onProps"),pl(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Vs(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{nl(this)||(il(this,!0),No(a.pauseQueue),pl(this,"onPause",Ws(this,al(this,this.animation.to)),this))},resume:()=>{nl(this)&&(il(this,!1),tl(this)&&this._resume(),No(a.resumeQueue),pl(this,"onResume",Ws(this,al(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=sl(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(qs(this));const r=!Co.und(e.to),i=!Co.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(qs(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||r||t.default&&!Co.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Po(d,c);h&&(s.from=d),d=Da(d);const p=!Po(u,l);p&&this._focus(u);const f=Is(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Hs(n=xs({},n),t),t=xs({},n,t)),Hs(e,t),Object.assign(e,t);for(const t in zs)null==e[t]&&(e[t]=zs[t]);let{mass:r,frequency:i,damping:o}=e;Co.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,Fs(t.config,o),t.config!==a.config?Fs(a.config,o):void 0);let v=ls(this);if(!v||Co.und(u))return n(Ws(this,!0));const b=Co.und(t.reset)?i&&!t.default:!Co.und(d)&&ks(t.reset,o),w=b?d:this.get(),$=Ps(u),_=Co.num($)||Co.arr($)||es($),S=!f&&(!_||ks(a.immediate||t.immediate,o));if(p){const e=vs(u);if(e!==v.constructor){if(!S)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set($)}}const x=v.constructor;let F=Ea(u),k=!1;if(!F){const e=b||!el(this)&&h;(p||e)&&(k=Po(Ps(w),$),F=!k),(Po(s.immediate,S)||S)&&Po(g.decay,m)&&Po(g.velocity,y)||(F=!0)}if(k&&tl(this)&&(s.changed&&!b?F=!0:F||this._stop(l)),!f&&((F||Ea(l))&&(s.values=v.getPayload(),s.toValues=Ea(u)?null:x==ps?[1]:To($)),s.immediate!=S&&(s.immediate=S,S||b||this._set(l)),F)){const{onRest:e}=s;Io(dl,(e=>hl(this,t,e)));const r=Ws(this,al(this,l));No(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&go.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?Fs(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Us(t.to,t,this._state,this)):F?this._start():tl(this)&&!p?this._pendingCalls.add(n):n(Ls(w))}_focus(e){const t=this.animation;e!==t.to&&(Ca(this)&&this._detach(),t.to=e,Ca(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ea(t)&&(Ta(t,this),Zs(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ea(e)&&Ha(e,this)}_set(e,t=!0){const n=Da(e);if(!Co.und(n)){const e=ls(this);if(!e||!Po(n,e.getValue())){const r=vs(n);e&&e.constructor==r?e.setValue(n):cs(this,r.create(n)),e&&go.batchedUpdates((()=>{this._onChange(n,t)}))}}return ls(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,pl(this,"onStart",Ws(this,al(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fs(this.animation.onChange,e,this)),Fs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ls(this).reset(Da(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),tl(this)||(rl(this,!0),nl(this)||this._resume())}_resume(){Uo.skipAnimation?this.finish():Ko.start(this)}_stop(e,t){if(tl(this)){rl(this,!1);const n=this.animation;Io(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Pa(this,{type:"idle",parent:this});const r=t?qs(this.get()):Ws(this.get(),al(this,null!=e?e:n.to));No(this._pendingCalls,r),n.changed&&(n.changed=!1,pl(this,"onRest",r,this))}}}function al(e,t){const n=Ps(t);return Po(Ps(e.get()),n)}function sl(e,t=e.loop,n=e.to){let r=Fs(t);if(r){const i=!0!==r&&Cs(r),o=(i||e).reverse,a=!i||i.reset;return ll(xs({},e,{loop:t,default:!1,pause:void 0,to:!o||Is(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function ll(e){const{to:t,from:n}=e=Cs(e),r=new Set;return Co.obj(t)&&ul(t,r),Co.obj(n)&&ul(n,r),e.keys=r.size?Array.from(r):null,e}function cl(e){const t=ll(e);return Co.und(t.default)&&(t.default=js(t)),t}function ul(e,t){zo(e,((e,n)=>null!=e&&t.add(n)))}const dl=["onStart","onRest","onChange","onPause","onResume"];function hl(e,t,n){e.animation[n]=t[n]!==As(t,n)?Bs(t[n],e.key):void 0}function pl(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const fl=["onStart","onChange","onRest"];let gl=1;class ml{constructor(e,t){this.id=gl++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(xs({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Co.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ll(e)),this}start(e){let{queue:t}=this;return e?t=To(e).map(ll):this.queue=[],this._flush?this._flush(this,t):(Sl(this,t),yl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Io(To(t),(t=>n[t].stop(!!e)))}else Qs(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Co.und(e))this.start({pause:!0});else{const t=this.springs;Io(To(e),(e=>t[e].pause()))}return this}resume(e){if(Co.und(e))this.start({pause:!1});else{const t=this.springs;Io(To(e),(e=>t[e].resume()))}return this}each(e){zo(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ho(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Ho(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Ho(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}go.onFrame(this._onFrame)}}function yl(e,t){return Promise.all(t.map((t=>vl(e,t)))).then((t=>Rs(e,t)))}async function vl(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Co.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Co.arr(i)||Co.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Io(fl,(n=>{const r=t[n];if(Co.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,No(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===As(t,"cancel");(u||p&&d.asyncId)&&h.push(Vs(++e._lastAsyncId,{props:t,state:d,actions:{pause:Do,resume:Do,start(t,n){p?(Qs(d,e._lastAsyncId),n(qs(e))):(t.onRest=s,n(Us(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Rs(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=sl(t,a,i);if(n)return Sl(e,[n]),vl(e,n,!0)}return l&&go.batchedUpdates((()=>l(f,e,e.item))),f}function bl(e,t){const n=xs({},e.springs);return t&&Io(To(t),(e=>{Co.und(e.keys)&&(e=ll(e)),Co.obj(e.to)||(e=xs({},e,{to:void 0})),_l(n,e,(e=>$l(e)))})),wl(e,n),n}function wl(e,t){zo(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ta(t,e))}))}function $l(e,t){const n=new ol;return n.key=e,t&&Ta(n,t),n}function _l(e,t,n){t.keys&&Io(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Sl(e,t){Io(t,(t=>{_l(e.springs,t,(t=>$l(t,e)))}))}const xl=["children"],Fl=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,xl);const i=d(kl),a=n.pause||!!i.pause,c=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=l(),i=r.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return o((()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:a,immediate:c})),[a,c]);const{Provider:u}=kl;return r.createElement(u,{value:n},t)},kl=(Bl=Fl,Al={},Object.assign(Bl,r.createContext(Al)),Bl.Provider._context=Bl,Bl.Consumer._context=Bl,Bl);var Bl,Al;Fl.Provider=kl.Provider,Fl.Consumer=kl.Consumer;const Ol=()=>{const e=[],t=function(t){Ja(`${Za}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Io(e,((e,i)=>{if(Co.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Io(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Io(e,(e=>e.resume(...arguments))),this},t.set=function(t){Io(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Io(e,((e,r)=>{if(Co.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Io(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Io(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Co.fun(e)?e(n,t):e};return t._getProps=n,t};function jl(e,t){const n=Co.fun(e),[[r],i]=function(e,t,n){const r=Co.fun(t)&&t;r&&!n&&(n=[]);const i=h((()=>r||3==arguments.length?Ol():void 0),[]),o=l(0),a=rs(),s=h((()=>({ctrls:[],queue:[],flush(e,t){const n=bl(e,t);return o.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?yl(e,t):new Promise((r=>{wl(e,n),s.queue.push((()=>{r(yl(e,t))})),a()}))}})),[]),c=l([...s.ctrls]),u=[],p=as(e)||0;function f(e,n){for(let i=e;i<n;i++){const e=c.current[i]||(c.current[i]=new ml(null,s.flush)),n=r?r(i,e):t[i];n&&(u[i]=cl(n))}}h((()=>{Io(c.current.slice(e,p),(e=>{!function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}(e,i),e.stop(!0)})),c.current.length=e,f(p,e)}),[e]),h((()=>{f(0,Math.min(p,e))}),n);const g=c.current.map(((e,t)=>bl(e,u[t]))),m=d(Fl),y=as(m),v=m!==y&&function(e){for(const t in e)return!0;return!1}(m);ts((()=>{o.current++,s.ctrls=c.current;const{queue:e}=s;e.length&&(s.queue=[],Io(e,(e=>e()))),Io(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:m});const n=u[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),is((()=>()=>{Io(s.ctrls,(e=>e.stop(!0)))}));const b=g.map((e=>xs({},e)));return i?[b,i]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}let El;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(El||(El={}));class Dl extends Ys{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=wa(...t);const n=this._get(),r=vs(n);cs(this,r.create(n))}advance(e){const t=this._get();Po(t,this.get())||(ls(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Pl(this._active)&&Il(this)}_get(){const e=Co.arr(this.source)?this.source.map(Da):To(Da(this.source));return this.calc(...e)}_start(){this.idle&&!Pl(this._active)&&(this.idle=!1,Io(us(this),(e=>{e.done=!1})),Uo.skipAnimation?(go.batchedUpdates((()=>this.advance())),Il(this)):Ko.start(this))}_attach(){let e=1;Io(To(this.source),(t=>{Ea(t)&&Ta(t,this),Zs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Io(To(this.source),(e=>{Ea(e)&&Ha(e,this)})),this._active.clear(),Il(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=To(this.source).reduce(((e,t)=>Math.max(e,(Zs(t)?t.priority:0)+1)),0))}}function Cl(e){return!1!==e.idle}function Pl(e){return!e.size||Array.from(e).every(Cl)}function Il(e){e.idle||(e.idle=!0,Io(us(e),(e=>{e.done=!0})),Pa(e,{type:"idle",parent:e}))}function zl(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Uo.assign({createStringInterpolator:Xa,to:(e,t)=>new Dl(e,t)});const Tl=["style","children","scrollTop","scrollLeft","viewBox"],Hl=/^--/;function Nl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Hl.test(e)||Vl.hasOwnProperty(e)&&Vl[e]?(""+t).trim():t+"px"}const Ml={};let Vl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Rl=["Webkit","Ms","Moz","O"];Vl=Object.keys(Vl).reduce(((e,t)=>(Rl.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Vl);const Ll=["x","y","z"],Wl=/^(matrix|translate|scale|rotate|skew)/,ql=/^(translate)/,Ul=/^(rotate|skew)/,Ql=(e,t)=>Co.num(e)&&0!==e?e+t:e,Gl=(e,t)=>Co.arr(e)?e.every((e=>Gl(e,t))):Co.num(e)?e===t:parseFloat(e)===t;class Xl extends gs{constructor(e){let{x:t,y:n,z:r}=e,i=zl(e,Ll);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Ql(e,"px"))).join(",")})`,Gl(e,0)]))),zo(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Wl.test(t)){if(delete i[t],Co.und(e))return;const n=ql.test(t)?"px":Ul.test(t)?"deg":"";o.push(To(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Ql(i,n)})`,Gl(i,0)]:e=>[`${t}(${e.map((e=>Ql(e,n))).join(",")})`,Gl(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Zl(o,a)),super(i)}}class Zl extends Ia{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Io(this.inputs,((n,r)=>{const i=Da(n[0]),[o,a]=this.transforms[r](Co.arr(i)?i:n.map(Da));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Io(this.inputs,(e=>Io(e,(e=>Ea(e)&&Ta(e,this)))))}observerRemoved(e){0==e&&Io(this.inputs,(e=>Io(e,(e=>Ea(e)&&Ha(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Pa(this,e)}}const Kl=["scrollTop","scrollLeft"];Uo.assign({batchedUpdates:p,createStringInterpolator:Xa,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const Yl=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new gs(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=Ss(e)||"Anonymous";return(e=Co.str(e)?o[e]||(o[e]=ws(e,i)):e[_s]||(e[_s]=ws(e,i))).displayName=`Animated(${t})`,e};return zo(e,((t,n)=>{Co.arr(e)&&(n=Ss(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l}=r,c=zl(r,Tl),u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:Ml[t]||(Ml[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Nl(t,i[t]);Hl.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Xl(e),getComponentProps:e=>zl(e,Kl)}),Jl=Yl.animated,ec=(e,t,n)=>t?mi(n,t)||mi(e,t):n||e,tc=(e,t)=>{const n=t||e.defaultValue;return mi(e.collections,n)};var nc;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(nc||(nc={}));const rc={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#977ECC",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},rbs:{Brand:{1:"#3E4DFF",2:"#AEACFF",3:"#AD44FF",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#4855D4",PrimaryDark:"#3E49B2",Secondary:"#364891",Accent:{Dark:{1:"#5E516E",2:"#7A6F87",3:"#C5C0CC"},Light:{1:"#8397FC",2:"#ABB8FC",3:"#CED6FD ",4:"#E1E4FA",5:"#F0F2FF",6:"#FAFBFF"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(90, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},ic=e=>t=>{const n=t.theme,r=tc(rc,n[nc.colorScheme]);return n.options&&n.options.color?ec(r,e,n.options.color):ec(r,e)},oc={Brand:{1:ic("Brand.1"),2:ic("Brand.2"),3:ic("Brand.3"),4:ic("Brand.4"),5:ic("Brand.5"),6:ic("Brand.6")},Primary:ic("Primary"),PrimaryDark:ic("PrimaryDark"),Secondary:ic("Secondary"),Accent:{Light:{1:ic("Accent.Light.1"),2:ic("Accent.Light.2"),3:ic("Accent.Light.3"),4:ic("Accent.Light.4"),5:ic("Accent.Light.5"),6:ic("Accent.Light.6")},Dark:{1:ic("Accent.Dark.1"),2:ic("Accent.Dark.2"),3:ic("Accent.Dark.3")}},Neutral:{1:ic("Neutral.1"),2:ic("Neutral.2"),3:ic("Neutral.3"),4:ic("Neutral.4"),5:ic("Neutral.5"),6:ic("Neutral.6"),7:ic("Neutral.7"),8:ic("Neutral.8")},Validation:{Green:{Text:ic("Validation.Green.Text"),Icon:ic("Validation.Green.Icon"),Border:ic("Validation.Green.Border"),Background:ic("Validation.Green.Background")},Orange:{Text:ic("Validation.Orange.Text"),Icon:ic("Validation.Orange.Icon"),Border:ic("Validation.Orange.Border"),Background:ic("Validation.Orange.Background"),Badge:ic("Validation.Orange.Badge")},Red:{Text:ic("Validation.Red.Text"),Icon:ic("Validation.Red.Icon"),Border:ic("Validation.Red.Border"),Background:ic("Validation.Red.Background")},Blue:{Text:ic("Validation.Blue.Text"),Icon:ic("Validation.Blue.Icon"),Border:ic("Validation.Blue.Border"),Background:ic("Validation.Blue.Background")}},Shadow:{Accent:ic("Shadow.Accent"),Red:ic("Shadow.Red"),Elevation:ic("Shadow.Elevation")}},ac={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},sc=e=>Object.keys(ac).reduce(((t,n)=>{const r=ac[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),lc=sc("max-width"),cc=(sc("min-width"),f.div`
1
+ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from"react";import i,{useEffect as o,useLayoutEffect as a,useState as s,useRef as l,forwardRef as c,useCallback as u,useContext as d,useMemo as h}from"react";import{unstable_batchedUpdates as p}from"react-dom";import f,{keyframes as g,css as m}from"styled-components";import{ExternalIcon as y}from"@lifesg/react-icons/external";import{ExclamationCircleFillIcon as v}from"@lifesg/react-icons/exclamation-circle-fill";import{TickIcon as b}from"@lifesg/react-icons/tick";import{CrossIcon as w}from"@lifesg/react-icons/cross";import{MagnifierIcon as $}from"@lifesg/react-icons/magnifier";import{ChevronDownIcon as x}from"@lifesg/react-icons/chevron-down";import{ArrowRightIcon as _}from"@lifesg/react-icons";var S="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var F=function(){this.__data__=[],this.size=0};var k=function(e,t){return e===t||e!=e&&t!=t},B=k;var O=function(e,t){for(var n=e.length;n--;)if(B(e[n][0],t))return n;return-1},A=O,j=Array.prototype.splice;var E=O;var D=O;var C=O;var P=F,I=function(e){var t=this.__data__,n=A(t,e);return!(n<0)&&(n==t.length-1?t.pop():j.call(t,n,1),--this.size,!0)},z=function(e){var t=this.__data__,n=E(t,e);return n<0?void 0:t[n][1]},T=function(e){return D(this.__data__,e)>-1},H=function(e,t){var n=this.__data__,r=C(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function N(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}N.prototype.clear=P,N.prototype.delete=I,N.prototype.get=z,N.prototype.has=T,N.prototype.set=H;var M=N,V=M;var R=function(){this.__data__=new V,this.size=0};var L=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};var W=function(e){return this.__data__.get(e)};var q=function(e){return this.__data__.has(e)},U="object"==typeof S&&S&&S.Object===Object&&S,Q=U,G="object"==typeof self&&self&&self.Object===Object&&self,X=Q||G||Function("return this")(),Z=X.Symbol,K=Z,Y=Object.prototype,J=Y.hasOwnProperty,ee=Y.toString,te=K?K.toStringTag:void 0;var ne=function(e){var t=J.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var i=ee.call(e);return r&&(t?e[te]=n:delete e[te]),i},re=Object.prototype.toString;var ie=ne,oe=function(e){return re.call(e)},ae=Z?Z.toStringTag:void 0;var se=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ae&&ae in Object(e)?ie(e):oe(e)};var le=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ce=se,ue=le;var de,he=function(e){if(!ue(e))return!1;var t=ce(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},pe=X["__core-js_shared__"],fe=(de=/[^.]+$/.exec(pe&&pe.keys&&pe.keys.IE_PROTO||""))?"Symbol(src)_1."+de:"";var ge=function(e){return!!fe&&fe in e},me=Function.prototype.toString;var ye=function(e){if(null!=e){try{return me.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ve=he,be=ge,we=le,$e=ye,xe=/^\[object .+?Constructor\]$/,_e=Function.prototype,Se=Object.prototype,Fe=_e.toString,ke=Se.hasOwnProperty,Be=RegExp("^"+Fe.call(ke).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Oe=function(e){return!(!we(e)||be(e))&&(ve(e)?Be:xe).test($e(e))},Ae=function(e,t){return null==e?void 0:e[t]};var je=function(e,t){var n=Ae(e,t);return Oe(n)?n:void 0},Ee=je(X,"Map"),De=je(Object,"create"),Ce=De;var Pe=function(){this.__data__=Ce?Ce(null):{},this.size=0};var Ie=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ze=De,Te=Object.prototype.hasOwnProperty;var He=function(e){var t=this.__data__;if(ze){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Te.call(t,e)?t[e]:void 0},Ne=De,Me=Object.prototype.hasOwnProperty;var Ve=De;var Re=Pe,Le=Ie,We=He,qe=function(e){var t=this.__data__;return Ne?void 0!==t[e]:Me.call(t,e)},Ue=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Ve&&void 0===t?"__lodash_hash_undefined__":t,this};function Qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Qe.prototype.clear=Re,Qe.prototype.delete=Le,Qe.prototype.get=We,Qe.prototype.has=qe,Qe.prototype.set=Ue;var Ge=Qe,Xe=M,Ze=Ee;var Ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var n=e.__data__;return Ke(t)?n["string"==typeof t?"string":"hash"]:n.map},Je=Ye;var et=Ye;var tt=Ye;var nt=Ye;var rt=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ze||Xe),string:new Ge}},it=function(e){var t=Je(this,e).delete(e);return this.size-=t?1:0,t},ot=function(e){return et(this,e).get(e)},at=function(e){return tt(this,e).has(e)},st=function(e,t){var n=nt(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function lt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}lt.prototype.clear=rt,lt.prototype.delete=it,lt.prototype.get=ot,lt.prototype.has=at,lt.prototype.set=st;var ct=lt,ut=M,dt=Ee,ht=ct;var pt=M,ft=R,gt=L,mt=W,yt=q,vt=function(e,t){var n=this.__data__;if(n instanceof ut){var r=n.__data__;if(!dt||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ht(r)}return n.set(e,t),this.size=n.size,this};function bt(e){var t=this.__data__=new pt(e);this.size=t.size}bt.prototype.clear=ft,bt.prototype.delete=gt,bt.prototype.get=mt,bt.prototype.has=yt,bt.prototype.set=vt;var wt=bt;var $t=ct,xt=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},_t=function(e){return this.__data__.has(e)};function St(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new $t;++t<n;)this.add(e[t])}St.prototype.add=St.prototype.push=xt,St.prototype.has=_t;var Ft=St,kt=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1},Bt=function(e,t){return e.has(t)};var Ot=function(e,t,n,r,i,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&n?new Ft:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(r)var m=a?r(g,f,d,t,e,o):r(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!kt(t,(function(e,t){if(!Bt(p,t)&&(f===e||i(f,e,n,r,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,n,r,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var At=X.Uint8Array,jt=k,Et=Ot,Dt=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n},Ct=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Pt=Z?Z.prototype:void 0,It=Pt?Pt.valueOf:void 0;var zt=function(e,t,n,r,i,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new At(e),new At(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return jt(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Dt;case"[object Set]":var l=1&r;if(s||(s=Ct),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;r|=2,a.set(e,t);var u=Et(s(e),s(t),r,i,o,a);return a.delete(e),u;case"[object Symbol]":if(It)return It.call(e)==It.call(t)}return!1};var Tt=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e},Ht=Array.isArray,Nt=Tt,Mt=Ht;var Vt=function(e,t,n){var r=t(e);return Mt(e)?r:Nt(r,n(e))};var Rt=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o},Lt=function(){return[]},Wt=Object.prototype.propertyIsEnumerable,qt=Object.getOwnPropertySymbols,Ut=qt?function(e){return null==e?[]:(e=Object(e),Rt(qt(e),(function(t){return Wt.call(e,t)})))}:Lt;var Qt=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r};var Gt=function(e){return null!=e&&"object"==typeof e},Xt=se,Zt=Gt;var Kt=function(e){return Zt(e)&&"[object Arguments]"==Xt(e)},Yt=Gt,Jt=Object.prototype,en=Jt.hasOwnProperty,tn=Jt.propertyIsEnumerable,nn=Kt(function(){return arguments}())?Kt:function(e){return Yt(e)&&en.call(e,"callee")&&!tn.call(e,"callee")},rn={exports:{}};var on=function(){return!1};!function(e,t){var n=X,r=on,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,s=(a?a.isBuffer:void 0)||r;e.exports=s}(rn,rn.exports);var an=/^(?:0|[1-9]\d*)$/;var sn=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&an.test(e))&&e>-1&&e%1==0&&e<t};var ln=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},cn=se,un=ln,dn=Gt,hn={};hn["[object Float32Array]"]=hn["[object Float64Array]"]=hn["[object Int8Array]"]=hn["[object Int16Array]"]=hn["[object Int32Array]"]=hn["[object Uint8Array]"]=hn["[object Uint8ClampedArray]"]=hn["[object Uint16Array]"]=hn["[object Uint32Array]"]=!0,hn["[object Arguments]"]=hn["[object Array]"]=hn["[object ArrayBuffer]"]=hn["[object Boolean]"]=hn["[object DataView]"]=hn["[object Date]"]=hn["[object Error]"]=hn["[object Function]"]=hn["[object Map]"]=hn["[object Number]"]=hn["[object Object]"]=hn["[object RegExp]"]=hn["[object Set]"]=hn["[object String]"]=hn["[object WeakMap]"]=!1;var pn=function(e){return dn(e)&&un(e.length)&&!!hn[cn(e)]};var fn=function(e){return function(t){return e(t)}},gn={exports:{}};!function(e,t){var n=U,r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(gn,gn.exports);var mn=pn,yn=fn,vn=gn.exports,bn=vn&&vn.isTypedArray,wn=bn?yn(bn):mn,$n=Qt,xn=nn,_n=Ht,Sn=rn.exports,Fn=sn,kn=wn,Bn=Object.prototype.hasOwnProperty;var On=function(e,t){var n=_n(e),r=!n&&xn(e),i=!n&&!r&&Sn(e),o=!n&&!r&&!i&&kn(e),a=n||r||i||o,s=a?$n(e.length,String):[],l=s.length;for(var c in e)!t&&!Bn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Fn(c,l))||s.push(c);return s},An=Object.prototype;var jn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||An)};var En=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),Dn=jn,Cn=En,Pn=Object.prototype.hasOwnProperty;var In=he,zn=ln;var Tn=function(e){return null!=e&&zn(e.length)&&!In(e)},Hn=On,Nn=function(e){if(!Dn(e))return Cn(e);var t=[];for(var n in Object(e))Pn.call(e,n)&&"constructor"!=n&&t.push(n);return t},Mn=Tn;var Vn=function(e){return Mn(e)?Hn(e):Nn(e)},Rn=Vt,Ln=Ut,Wn=Vn;var qn=function(e){return Rn(e,Wn,Ln)},Un=Object.prototype.hasOwnProperty;var Qn=function(e,t,n,r,i,o){var a=1&n,s=qn(e),l=s.length;if(l!=qn(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Un.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(r)var y=a?r(m,g,u,t,e,o):r(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,n,r,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var v=e.constructor,b=t.constructor;v==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof b&&b instanceof b||(p=!1)}return o.delete(e),o.delete(t),p},Gn=je(X,"DataView"),Xn=Ee,Zn=je(X,"Promise"),Kn=je(X,"Set"),Yn=je(X,"WeakMap"),Jn=se,er=ye,tr="[object Map]",nr="[object Promise]",rr="[object Set]",ir="[object WeakMap]",or="[object DataView]",ar=er(Gn),sr=er(Xn),lr=er(Zn),cr=er(Kn),ur=er(Yn),dr=Jn;(Gn&&dr(new Gn(new ArrayBuffer(1)))!=or||Xn&&dr(new Xn)!=tr||Zn&&dr(Zn.resolve())!=nr||Kn&&dr(new Kn)!=rr||Yn&&dr(new Yn)!=ir)&&(dr=function(e){var t=Jn(e),n="[object Object]"==t?e.constructor:void 0,r=n?er(n):"";if(r)switch(r){case ar:return or;case sr:return tr;case lr:return nr;case cr:return rr;case ur:return ir}return t});var hr=wt,pr=Ot,fr=zt,gr=Qn,mr=dr,yr=Ht,vr=rn.exports,br=wn,wr="[object Arguments]",$r="[object Array]",xr="[object Object]",_r=Object.prototype.hasOwnProperty;var Sr=function(e,t,n,r,i,o){var a=yr(e),s=yr(t),l=a?$r:mr(e),c=s?$r:mr(t),u=(l=l==wr?xr:l)==xr,d=(c=c==wr?xr:c)==xr,h=l==c;if(h&&vr(e)){if(!vr(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new hr),a||br(e)?pr(e,t,n,r,i,o):fr(e,t,l,n,r,i,o);if(!(1&n)){var p=u&&_r.call(e,"__wrapped__"),f=d&&_r.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new hr),i(g,m,n,r,o)}}return!!h&&(o||(o=new hr),gr(e,t,n,r,i,o))},Fr=Gt;var kr=function e(t,n,r,i,o){return t===n||(null==t||null==n||!Fr(t)&&!Fr(n)?t!=t&&n!=n:Sr(t,n,r,i,e,o))},Br=wt,Or=kr;var Ar=le;var jr=function(e){return e==e&&!Ar(e)},Er=jr,Dr=Vn;var Cr=function(e,t){return function(n){return null!=n&&(n[e]===t&&(void 0!==t||e in Object(n)))}},Pr=function(e,t,n,r){var i=n.length,o=i,a=!r;if(null==e)return!o;for(e=Object(e);i--;){var s=n[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=n[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Br;if(r)var h=r(c,u,l,e,t,d);if(!(void 0===h?Or(u,c,3,r,d):h))return!1}}return!0},Ir=function(e){for(var t=Dr(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Er(i)]}return t},zr=Cr;var Tr=function(e){var t=Ir(e);return 1==t.length&&t[0][2]?zr(t[0][0],t[0][1]):function(n){return n===e||Pr(n,e,t)}},Hr=se,Nr=Gt;var Mr=function(e){return"symbol"==typeof e||Nr(e)&&"[object Symbol]"==Hr(e)},Vr=Ht,Rr=Mr,Lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Wr=/^\w*$/;var qr=function(e,t){if(Vr(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Rr(e))||(Wr.test(e)||!Lr.test(e)||null!=t&&e in Object(t))},Ur=ct;function Qr(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Qr.Cache||Ur),n}Qr.Cache=Ur;var Gr=Qr;var Xr=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Zr=/\\(\\)?/g,Kr=function(e){var t=Gr(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Xr,(function(e,n,r,i){t.push(r?i.replace(Zr,"$1"):n||e)})),t}));var Yr=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},Jr=Ht,ei=Mr,ti=Z?Z.prototype:void 0,ni=ti?ti.toString:void 0;var ri=function e(t){if("string"==typeof t)return t;if(Jr(t))return Yr(t,e)+"";if(ei(t))return ni?ni.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},ii=ri;var oi=Ht,ai=qr,si=Kr,li=function(e){return null==e?"":ii(e)};var ci=function(e,t){return oi(e)?e:ai(e,t)?[e]:si(li(e))},ui=Mr;var di=function(e){if("string"==typeof e||ui(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},hi=ci,pi=di;var fi=function(e,t){for(var n=0,r=(t=hi(t,e)).length;null!=e&&n<r;)e=e[pi(t[n++])];return n&&n==r?e:void 0},gi=fi;var mi=function(e,t,n){var r=null==e?void 0:gi(e,t);return void 0===r?n:r};var yi=ci,vi=nn,bi=Ht,wi=sn,$i=ln,xi=di;var _i=function(e,t){return null!=e&&t in Object(e)},Si=function(e,t,n){for(var r=-1,i=(t=yi(t,e)).length,o=!1;++r<i;){var a=xi(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&$i(i)&&wi(a,i)&&(bi(e)||vi(e))};var Fi=kr,ki=mi,Bi=function(e,t){return null!=e&&Si(e,t,_i)},Oi=qr,Ai=jr,ji=Cr,Ei=di;var Di=fi;var Ci=function(e){return function(t){return null==t?void 0:t[e]}},Pi=function(e){return function(t){return Di(t,e)}},Ii=qr,zi=di;var Ti=Tr,Hi=function(e,t){return Oi(e)&&Ai(t)?ji(Ei(e),t):function(n){var r=ki(n,e);return void 0===r&&r===t?Bi(n,e):Fi(t,r,3)}},Ni=function(e){return e},Mi=Ht,Vi=function(e){return Ii(e)?Ci(zi(e)):Pi(e)};var Ri=function(e){return"function"==typeof e?e:null==e?Ni:"object"==typeof e?Mi(e)?Hi(e[0],e[1]):Ti(e):Vi(e)},Li=Ri,Wi=Tn,qi=Vn;var Ui=function(e){return function(t,n,r){var i=Object(t);if(!Wi(t)){var o=Li(n);t=qi(t),n=function(e){return o(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[o?t[a]:a]:void 0}};var Qi=/\s/;var Gi=function(e){for(var t=e.length;t--&&Qi.test(e.charAt(t)););return t},Xi=/^\s+/;var Zi=function(e){return e?e.slice(0,Gi(e)+1).replace(Xi,""):e},Ki=le,Yi=Mr,Ji=/^[-+]0x[0-9a-f]+$/i,eo=/^0b[01]+$/i,to=/^0o[0-7]+$/i,no=parseInt;var ro=function(e){if("number"==typeof e)return e;if(Yi(e))return NaN;if(Ki(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ki(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Zi(e);var n=eo.test(e);return n||to.test(e)?no(e.slice(2),n?2:8):Ji.test(e)?NaN:+e},io=1/0;var oo=function(e){return e?(e=ro(e))===io||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var ao=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1},so=Ri,lo=function(e){var t=oo(e),n=t%1;return t==t?n?t-n:t:0},co=Math.max;var uo=Ui((function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:lo(n);return i<0&&(i=co(r+i,0)),ao(e,so(t),i)})),ho=kr;var po=function(e,t){return ho(e,t)};let fo=jo();const go=e=>ko(e,fo);let mo=jo();go.write=e=>ko(e,mo);let yo=jo();go.onStart=e=>ko(e,yo);let vo=jo();go.onFrame=e=>ko(e,vo);let bo=jo();go.onFinish=e=>ko(e,bo);let wo=[];go.setTimeout=(e,t)=>{let n=go.now()+t,r=()=>{let e=wo.findIndex((e=>e.cancel==r));~e&&wo.splice(e,1),So-=~e?1:0},i={time:n,handler:e,cancel:r};return wo.splice($o(n),0,i),So+=1,Bo(),i};let $o=e=>~(~wo.findIndex((t=>t.time>e))||~wo.length);go.cancel=e=>{yo.delete(e),vo.delete(e),bo.delete(e),fo.delete(e),mo.delete(e)},go.sync=e=>{Fo=!0,go.batchedUpdates(e),Fo=!1},go.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,go.onStart(n)}return r.handler=e,r.cancel=()=>{yo.delete(n),t=null},r};let xo="undefined"!=typeof window?window.requestAnimationFrame:()=>{};go.use=e=>xo=e,go.now="undefined"!=typeof performance?()=>performance.now():Date.now,go.batchedUpdates=e=>e(),go.catch=console.error,go.frameLoop="always",go.advance=()=>{"demand"!==go.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Ao()};let _o=-1,So=0,Fo=!1;function ko(e,t){Fo?(t.delete(e),e(0)):(t.add(e),Bo())}function Bo(){_o<0&&(_o=0,"demand"!==go.frameLoop&&xo(Oo))}function Oo(){~_o&&(xo(Oo),go.batchedUpdates(Ao))}function Ao(){let e=_o;_o=go.now();let t=$o(_o);t&&(Eo(wo.splice(0,t),(e=>e.handler())),So-=t),So?(yo.flush(),fo.flush(e?Math.min(64,_o-e):16.667),vo.flush(),mo.flush(),bo.flush()):_o=-1}function jo(){let e=new Set,t=e;return{add(n){So+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(So-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,So-=t.size,Eo(t,(t=>t(n)&&e.add(t))),So+=e.size,t=e)}}}function Eo(e,t){e.forEach((e=>{try{t(e)}catch(e){go.catch(e)}}))}function Do(){}const Co={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function Po(e,t){if(Co.arr(e)){if(!Co.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Io=(e,t)=>e.forEach(t);function zo(e,t,n){if(Co.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const To=e=>Co.und(e)?[]:Co.arr(e)?e:[e];function Ho(e,t){if(e.size){const n=Array.from(e);e.clear(),Io(n,t)}}const No=(e,...t)=>Ho(e,(e=>e(...t))),Mo=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Vo,Ro,Lo=null,Wo=!1,qo=Do;var Uo=Object.freeze({__proto__:null,get createStringInterpolator(){return Vo},get to(){return Ro},get colors(){return Lo},get skipAnimation(){return Wo},get willAdvance(){return qo},assign:e=>{e.to&&(Ro=e.to),e.now&&(go.now=e.now),void 0!==e.colors&&(Lo=e.colors),null!=e.skipAnimation&&(Wo=e.skipAnimation),e.createStringInterpolator&&(Vo=e.createStringInterpolator),e.requestAnimationFrame&&go.use(e.requestAnimationFrame),e.batchedUpdates&&(go.batchedUpdates=e.batchedUpdates),e.willAdvance&&(qo=e.willAdvance),e.frameLoop&&(go.frameLoop=e.frameLoop)}});const Qo=new Set;let Go=[],Xo=[],Zo=0;const Ko={get idle(){return!Qo.size&&!Go.length},start(e){Zo>e.priority?(Qo.add(e),go.onStart(Yo)):(Jo(e),go(ta))},advance:ta,sort(e){if(Zo)go.onFrame((()=>Ko.sort(e)));else{const t=Go.indexOf(e);~t&&(Go.splice(t,1),ea(e))}},clear(){Go=[],Qo.clear()}};function Yo(){Qo.forEach(Jo),Qo.clear(),go(ta)}function Jo(e){Go.includes(e)||ea(e)}function ea(e){Go.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Go,(t=>t.priority>e.priority)),0,e)}function ta(e){const t=Xo;for(let n=0;n<Go.length;n++){const r=Go[n];Zo=r.priority,r.idle||(qo(r),r.advance(e),r.idle||t.push(r))}return Zo=0,Xo=Go,Xo.length=0,Go=t,Go.length>0}const na="[-+]?\\d*\\.?\\d+",ra=na+"%";function ia(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const oa=new RegExp("rgb"+ia(na,na,na)),aa=new RegExp("rgba"+ia(na,na,na,na)),sa=new RegExp("hsl"+ia(na,ra,ra)),la=new RegExp("hsla"+ia(na,ra,ra,na)),ca=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ua=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,da=/^#([0-9a-fA-F]{6})$/,ha=/^#([0-9a-fA-F]{8})$/;function pa(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function fa(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=pa(i,r,e+1/3),a=pa(i,r,e),s=pa(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function ga(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ma(e){return(parseFloat(e)%360+360)%360/360}function ya(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function va(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function ba(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=da.exec(e))?parseInt(t[1]+"ff",16)>>>0:Lo&&void 0!==Lo[e]?Lo[e]:(t=oa.exec(e))?(ga(t[1])<<24|ga(t[2])<<16|ga(t[3])<<8|255)>>>0:(t=aa.exec(e))?(ga(t[1])<<24|ga(t[2])<<16|ga(t[3])<<8|ya(t[4]))>>>0:(t=ca.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ha.exec(e))?parseInt(t[1],16)>>>0:(t=ua.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=sa.exec(e))?(255|fa(ma(t[1]),va(t[2]),va(t[3])))>>>0:(t=la.exec(e))?(fa(ma(t[1]),va(t[2]),va(t[3]))|ya(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const wa=(e,t,n)=>{if(Co.fun(e))return e;if(Co.arr(e))return wa({range:e,output:t,extrapolate:n});if(Co.str(e.output[0]))return Vo(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};const $a=1.70158,xa=1.525*$a,_a=$a+1,Sa=2*Math.PI/3,Fa=2*Math.PI/4.5,ka=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},Ba={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>_a*e*e*e-$a*e*e,easeOutBack:e=>1+_a*Math.pow(e-1,3)+$a*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-xa)/2:(Math.pow(2*e-2,2)*((xa+1)*(2*e-2)+xa)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Sa),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Sa)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Fa)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Fa)/2+1,easeInBounce:e=>1-ka(1-e),easeOutBounce:ka,easeInOutBounce:e=>e<.5?(1-ka(1-2*e))/2:(1+ka(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,i="end"===t?Math.floor(r):Math.ceil(r);return o=0,a=1,s=i/e,Math.min(Math.max(s,o),a);var o,a,s}};function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oa.apply(this,arguments)}const Aa=Symbol.for("FluidValue.get"),ja=Symbol.for("FluidValue.observers"),Ea=e=>Boolean(e&&e[Aa]),Da=e=>e&&e[Aa]?e[Aa]():e,Ca=e=>e[ja]||null;function Pa(e,t){let n=e[ja];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ia{constructor(e){if(this[Aa]=void 0,this[ja]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");za(this,e)}}const za=(e,t)=>Na(e,Aa,t);function Ta(e,t){if(e[Aa]){let n=e[ja];n||Na(e,ja,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Ha(e,t){let n=e[ja];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[ja]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Na=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ma=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Va=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ra=new RegExp(`(${Ma.source})(%|[a-z]+)`,"i"),La=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Wa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,qa=e=>{const[t,n]=Ua(e);if(!t||Mo())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Wa.test(n)?qa(n):n||e},Ua=e=>{const t=Wa.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Qa;const Ga=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Xa=e=>{Qa||(Qa=Lo?new RegExp(`(${Object.keys(Lo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Da(e).replace(Wa,qa).replace(Va,ba).replace(Qa,ba))),n=t.map((e=>e.match(Ma).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>wa(Oa({},e,{output:t}))));return e=>{var n;const i=!Ra.test(t[0])&&(null==(n=t.find((e=>Ra.test(e))))?void 0:n.replace(Ma,""));let o=0;return t[0].replace(Ma,(()=>`${r[o++](e)}${i||""}`)).replace(La,Ga)}},Za="react-spring: ",Ka=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Za}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ya=Ka(console.warn);const Ja=Ka(console.warn);function es(e){return Co.str(e)&&("#"==e[0]||/\d/.test(e)||!Mo()&&Wa.test(e)||e in(Lo||{}))}const ts=Mo()?o:a,ns=()=>{const e=l(!1);return ts((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function rs(){const e=s()[1],t=ns();return()=>{t.current&&e(Math.random())}}const is=e=>o(e,os),os=[];function as(e){const t=l();return o((()=>{t.current=e})),t.current}const ss=Symbol.for("Animated:node"),ls=e=>e&&e[ss],cs=(e,t)=>{return n=e,r=ss,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},us=e=>e&&e[ss]&&e[ss].getPayload();class ds{constructor(){this.payload=void 0,cs(this,this)}getPayload(){return this.payload||[]}}class hs extends ds{constructor(e){super(),this.done=!0,this.elapsedTime=void 0,this.lastPosition=void 0,this.lastVelocity=void 0,this.v0=void 0,this.durationProgress=0,this._value=e,Co.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new hs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Co.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,Co.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class ps extends hs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=wa({output:[e,e]})}static create(e){return new ps(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Co.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=wa({output:[this.getValue(),e]})),this._value=0,super.reset()}}const fs={dependencies:null};class gs extends ds{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return zo(this.source,((n,r)=>{var i;(i=n)&&i[ss]===i?t[r]=n.getValue(e):Ea(n)?t[r]=Da(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Io(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return zo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){fs.dependencies&&Ea(e)&&fs.dependencies.add(e);const t=us(e);t&&Io(t,(e=>this.add(e)))}}class ms extends gs{constructor(e){super(e)}static create(e){return new ms(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(ys)),!0)}}function ys(e){return(es(e)?ps:hs).create(e)}function vs(e){const t=ls(e);return t?t.constructor:Co.arr(e)?ms:es(e)?ps:hs}function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bs.apply(this,arguments)}const ws=(e,t)=>{const n=!Co.fun(e)||e.prototype&&e.prototype.isReactComponent;return c(((i,a)=>{const s=l(null),c=n&&u((e=>{s.current=function(e,t){e&&(Co.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[d,h]=function(e,t){const n=new Set;fs.dependencies=n,e.style&&(e=bs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new gs(e),fs.dependencies=null,[e,n]}(i,t),p=rs(),f=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,d.getValue(!0)))&&p()},g=new $s(f,h),m=l();ts((()=>(m.current=g,Io(h,(e=>Ta(e,g))),()=>{m.current&&(Io(m.current.deps,(e=>Ha(e,m.current))),go.cancel(m.current.update))}))),o(f,[]),is((()=>()=>{const e=m.current;Io(e.deps,(t=>Ha(t,e)))}));const y=t.getComponentProps(d.getValue());return r.createElement(e,bs({},y,{ref:c}))}))};class $s{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&go.write(this.update)}}const xs=Symbol.for("AnimatedComponent"),_s=e=>Co.str(e)?e:e&&Co.str(e.displayName)?e.displayName:Co.fun(e)&&e.name||null;function Ss(){return Ss=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ss.apply(this,arguments)}function Fs(e,...t){return Co.fun(e)?e(...t):e}const ks=(e,t)=>!0===e||!!(t&&e&&(Co.fun(e)?e(t):To(e).includes(t))),Bs=(e,t)=>Co.obj(e)?t&&e[t]:e,Os=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,As=e=>e,js=(e,t=As)=>{let n=Es;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);Co.und(n)||(r[i]=n)}return r},Es=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Ds={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Cs(e){const t=function(e){const t={};let n=0;if(zo(e,((e,r)=>{Ds[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return zo(e,((e,r)=>r in t||(n[r]=e))),n}return Ss({},e)}function Ps(e){return e=Da(e),Co.arr(e)?e.map(Ps):es(e)?Uo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Is(e){return Co.fun(e)||Co.arr(e)&&Co.obj(e[0])}const zs=Ss({},{tension:170,friction:26},{mass:1,damping:1,easing:Ba.linear,clamp:!1});class Ts{constructor(){this.tension=void 0,this.friction=void 0,this.frequency=void 0,this.damping=void 0,this.mass=void 0,this.velocity=0,this.restVelocity=void 0,this.precision=void 0,this.progress=void 0,this.duration=void 0,this.easing=void 0,this.clamp=void 0,this.bounce=void 0,this.decay=void 0,this.round=void 0,Object.assign(this,zs)}}function Hs(e,t){if(Co.und(t.decay)){const n=!Co.und(t.tension)||!Co.und(t.friction);!n&&Co.und(t.frequency)&&Co.und(t.damping)&&Co.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Ns=[];class Ms{constructor(){this.changed=!1,this.values=Ns,this.toValues=null,this.fromValues=Ns,this.to=void 0,this.from=void 0,this.config=new Ts,this.immediate=!1}}function Vs(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=ks(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{Co.und(n.pause)||(i.paused=ks(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||ks(e,t)),c=Fs(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-go.now()}function p(){c>0&&!Uo.skipAnimation?(i.delayed=!0,u=go.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(Ss({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Rs=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?qs(e.get()):t.every((e=>e.noop))?Ls(e.get()):Ws(e.get(),t.every((e=>e.finished))),Ls=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Ws=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),qs=e=>({value:e,cancelled:!0,finished:!1});function Us(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=js(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&qs(r)||i!==n.asyncId&&Ws(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Gs,a=new Xs;return(async()=>{if(Uo.skipAnimation)throw Qs(n),a.result=Ws(r,!1),d(a),a;p(o);const s=Co.obj(e)?Ss({},e):Ss({},t,{to:e});s.parentId=i,zo(c,((e,t)=>{Co.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Uo.skipAnimation)return Qs(n),Ws(r,!1);try{let t;t=Co.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),g=Ws(r.get(),!0,!1)}catch(e){if(e instanceof Gs)g=e.result;else{if(!(e instanceof Xs))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Co.fun(a)&&go.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Qs(e,t){Ho(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Gs extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."),this.result=void 0}}class Xs extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Zs=e=>e instanceof Ys;let Ks=1;class Ys extends Ia{constructor(...e){super(...e),this.id=Ks++,this.key=void 0,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=ls(this);return e&&e.getValue()}to(...e){return Uo.to(this,e)}interpolate(...e){return Ya(`${Za}The "interpolate" function is deprecated in v9 (use "to" instead)`),Uo.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Pa(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ko.sort(this),Pa(this,{type:"priority",parent:this,priority:e})}}const Js=Symbol.for("SpringPhase"),el=e=>(1&e[Js])>0,tl=e=>(2&e[Js])>0,nl=e=>(4&e[Js])>0,rl=(e,t)=>t?e[Js]|=3:e[Js]&=-3,il=(e,t)=>t?e[Js]|=4:e[Js]&=-5;class ol extends Ys{constructor(e,t){if(super(),this.key=void 0,this.animation=new Ms,this.queue=void 0,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!Co.und(e)||!Co.und(t)){const n=Co.obj(e)?Ss({},e):Ss({},t,{from:e});Co.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(tl(this)||this._state.asyncTo)||nl(this)}get goal(){return Da(this.animation.to)}get velocity(){const e=ls(this);return e instanceof hs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return el(this)}get isAnimating(){return tl(this)}get isPaused(){return nl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=us(r.to);!a&&Ea(r.to)&&(o=To(Da(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ps?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Co.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Co.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!Co.und(r),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*r,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=ls(this),l=s.getValue();if(t){const e=Da(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return go.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tl(this)){const{to:e,config:t}=this.animation;go.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Co.und(e)?(n=this.queue||[],this.queue=[]):n=[Co.obj(e)?e:Ss({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Rs(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Qs(this._state,e&&this._lastCallId),go.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Co.obj(n)?n[t]:n,(null==n||Is(n))&&(n=void 0),r=Co.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return el(this)||(e.reverse&&([n,r]=[r,n]),r=Da(r),Co.und(r)?ls(this)||this._set(n):this._set(r)),i}_update(e,t){let n=Ss({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,js(n,((e,t)=>/^on/.test(t)?Bs(e,r):e))),hl(this,n,"onProps"),pl(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Vs(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{nl(this)||(il(this,!0),No(a.pauseQueue),pl(this,"onPause",Ws(this,al(this,this.animation.to)),this))},resume:()=>{nl(this)&&(il(this,!1),tl(this)&&this._resume(),No(a.resumeQueue),pl(this,"onResume",Ws(this,al(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=sl(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(qs(this));const r=!Co.und(e.to),i=!Co.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(qs(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||r||t.default&&!Co.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Po(d,c);h&&(s.from=d),d=Da(d);const p=!Po(u,l);p&&this._focus(u);const f=Is(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Hs(n=Ss({},n),t),t=Ss({},n,t)),Hs(e,t),Object.assign(e,t);for(const t in zs)null==e[t]&&(e[t]=zs[t]);let{mass:r,frequency:i,damping:o}=e;Co.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,Fs(t.config,o),t.config!==a.config?Fs(a.config,o):void 0);let v=ls(this);if(!v||Co.und(u))return n(Ws(this,!0));const b=Co.und(t.reset)?i&&!t.default:!Co.und(d)&&ks(t.reset,o),w=b?d:this.get(),$=Ps(u),x=Co.num($)||Co.arr($)||es($),_=!f&&(!x||ks(a.immediate||t.immediate,o));if(p){const e=vs(u);if(e!==v.constructor){if(!_)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set($)}}const S=v.constructor;let F=Ea(u),k=!1;if(!F){const e=b||!el(this)&&h;(p||e)&&(k=Po(Ps(w),$),F=!k),(Po(s.immediate,_)||_)&&Po(g.decay,m)&&Po(g.velocity,y)||(F=!0)}if(k&&tl(this)&&(s.changed&&!b?F=!0:F||this._stop(l)),!f&&((F||Ea(l))&&(s.values=v.getPayload(),s.toValues=Ea(u)?null:S==ps?[1]:To($)),s.immediate!=_&&(s.immediate=_,_||b||this._set(l)),F)){const{onRest:e}=s;Io(dl,(e=>hl(this,t,e)));const r=Ws(this,al(this,l));No(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&go.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?Fs(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Us(t.to,t,this._state,this)):F?this._start():tl(this)&&!p?this._pendingCalls.add(n):n(Ls(w))}_focus(e){const t=this.animation;e!==t.to&&(Ca(this)&&this._detach(),t.to=e,Ca(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ea(t)&&(Ta(t,this),Zs(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ea(e)&&Ha(e,this)}_set(e,t=!0){const n=Da(e);if(!Co.und(n)){const e=ls(this);if(!e||!Po(n,e.getValue())){const r=vs(n);e&&e.constructor==r?e.setValue(n):cs(this,r.create(n)),e&&go.batchedUpdates((()=>{this._onChange(n,t)}))}}return ls(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,pl(this,"onStart",Ws(this,al(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fs(this.animation.onChange,e,this)),Fs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;ls(this).reset(Da(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),tl(this)||(rl(this,!0),nl(this)||this._resume())}_resume(){Uo.skipAnimation?this.finish():Ko.start(this)}_stop(e,t){if(tl(this)){rl(this,!1);const n=this.animation;Io(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Pa(this,{type:"idle",parent:this});const r=t?qs(this.get()):Ws(this.get(),al(this,null!=e?e:n.to));No(this._pendingCalls,r),n.changed&&(n.changed=!1,pl(this,"onRest",r,this))}}}function al(e,t){const n=Ps(t);return Po(Ps(e.get()),n)}function sl(e,t=e.loop,n=e.to){let r=Fs(t);if(r){const i=!0!==r&&Cs(r),o=(i||e).reverse,a=!i||i.reset;return ll(Ss({},e,{loop:t,default:!1,pause:void 0,to:!o||Is(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function ll(e){const{to:t,from:n}=e=Cs(e),r=new Set;return Co.obj(t)&&ul(t,r),Co.obj(n)&&ul(n,r),e.keys=r.size?Array.from(r):null,e}function cl(e){const t=ll(e);return Co.und(t.default)&&(t.default=js(t)),t}function ul(e,t){zo(e,((e,n)=>null!=e&&t.add(n)))}const dl=["onStart","onRest","onChange","onPause","onResume"];function hl(e,t,n){e.animation[n]=t[n]!==Os(t,n)?Bs(t[n],e.key):void 0}function pl(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const fl=["onStart","onChange","onRest"];let gl=1;class ml{constructor(e,t){this.id=gl++,this.springs={},this.queue=[],this.ref=void 0,this._flush=void 0,this._initialProps=void 0,this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._item=void 0,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start(Ss({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Co.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(ll(e)),this}start(e){let{queue:t}=this;return e?t=To(e).map(ll):this.queue=[],this._flush?this._flush(this,t):(_l(this,t),yl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Io(To(t),(t=>n[t].stop(!!e)))}else Qs(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Co.und(e))this.start({pause:!0});else{const t=this.springs;Io(To(e),(e=>t[e].pause()))}return this}resume(e){if(Co.und(e))this.start({pause:!1});else{const t=this.springs;Io(To(e),(e=>t[e].resume()))}return this}each(e){zo(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Ho(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Ho(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Ho(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}go.onFrame(this._onFrame)}}function yl(e,t){return Promise.all(t.map((t=>vl(e,t)))).then((t=>Rs(e,t)))}async function vl(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Co.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Co.arr(i)||Co.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Io(fl,(n=>{const r=t[n];if(Co.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,No(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Os(t,"cancel");(u||p&&d.asyncId)&&h.push(Vs(++e._lastAsyncId,{props:t,state:d,actions:{pause:Do,resume:Do,start(t,n){p?(Qs(d,e._lastAsyncId),n(qs(e))):(t.onRest=s,n(Us(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Rs(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=sl(t,a,i);if(n)return _l(e,[n]),vl(e,n,!0)}return l&&go.batchedUpdates((()=>l(f,e,e.item))),f}function bl(e,t){const n=Ss({},e.springs);return t&&Io(To(t),(e=>{Co.und(e.keys)&&(e=ll(e)),Co.obj(e.to)||(e=Ss({},e,{to:void 0})),xl(n,e,(e=>$l(e)))})),wl(e,n),n}function wl(e,t){zo(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ta(t,e))}))}function $l(e,t){const n=new ol;return n.key=e,t&&Ta(n,t),n}function xl(e,t,n){t.keys&&Io(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function _l(e,t){Io(t,(t=>{xl(e.springs,t,(t=>$l(t,e)))}))}const Sl=["children"],Fl=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Sl);const i=d(kl),a=n.pause||!!i.pause,c=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=l(),i=r.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return o((()=>{r.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:a,immediate:c})),[a,c]);const{Provider:u}=kl;return r.createElement(u,{value:n},t)},kl=(Bl=Fl,Ol={},Object.assign(Bl,r.createContext(Ol)),Bl.Provider._context=Bl,Bl.Consumer._context=Bl,Bl);var Bl,Ol;Fl.Provider=kl.Provider,Fl.Consumer=kl.Consumer;const Al=()=>{const e=[],t=function(t){Ja(`${Za}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Io(e,((e,i)=>{if(Co.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Io(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Io(e,(e=>e.resume(...arguments))),this},t.set=function(t){Io(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Io(e,((e,r)=>{if(Co.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Io(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Io(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Co.fun(e)?e(n,t):e};return t._getProps=n,t};function jl(e,t){const n=Co.fun(e),[[r],i]=function(e,t,n){const r=Co.fun(t)&&t;r&&!n&&(n=[]);const i=h((()=>r||3==arguments.length?Al():void 0),[]),o=l(0),a=rs(),s=h((()=>({ctrls:[],queue:[],flush(e,t){const n=bl(e,t);return o.current>0&&!s.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?yl(e,t):new Promise((r=>{wl(e,n),s.queue.push((()=>{r(yl(e,t))})),a()}))}})),[]),c=l([...s.ctrls]),u=[],p=as(e)||0;function f(e,n){for(let i=e;i<n;i++){const e=c.current[i]||(c.current[i]=new ml(null,s.flush)),n=r?r(i,e):t[i];n&&(u[i]=cl(n))}}h((()=>{Io(c.current.slice(e,p),(e=>{!function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}(e,i),e.stop(!0)})),c.current.length=e,f(p,e)}),[e]),h((()=>{f(0,Math.min(p,e))}),n);const g=c.current.map(((e,t)=>bl(e,u[t]))),m=d(Fl),y=as(m),v=m!==y&&function(e){for(const t in e)return!0;return!1}(m);ts((()=>{o.current++,s.ctrls=c.current;const{queue:e}=s;e.length&&(s.queue=[],Io(e,(e=>e()))),Io(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:m});const n=u[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),is((()=>()=>{Io(s.ctrls,(e=>e.stop(!0)))}));const b=g.map((e=>Ss({},e)));return i?[b,i]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}let El;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(El||(El={}));class Dl extends Ys{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=wa(...t);const n=this._get(),r=vs(n);cs(this,r.create(n))}advance(e){const t=this._get();Po(t,this.get())||(ls(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Pl(this._active)&&Il(this)}_get(){const e=Co.arr(this.source)?this.source.map(Da):To(Da(this.source));return this.calc(...e)}_start(){this.idle&&!Pl(this._active)&&(this.idle=!1,Io(us(this),(e=>{e.done=!1})),Uo.skipAnimation?(go.batchedUpdates((()=>this.advance())),Il(this)):Ko.start(this))}_attach(){let e=1;Io(To(this.source),(t=>{Ea(t)&&Ta(t,this),Zs(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Io(To(this.source),(e=>{Ea(e)&&Ha(e,this)})),this._active.clear(),Il(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=To(this.source).reduce(((e,t)=>Math.max(e,(Zs(t)?t.priority:0)+1)),0))}}function Cl(e){return!1!==e.idle}function Pl(e){return!e.size||Array.from(e).every(Cl)}function Il(e){e.idle||(e.idle=!0,Io(us(e),(e=>{e.done=!0})),Pa(e,{type:"idle",parent:e}))}function zl(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Uo.assign({createStringInterpolator:Xa,to:(e,t)=>new Dl(e,t)});const Tl=["style","children","scrollTop","scrollLeft","viewBox"],Hl=/^--/;function Nl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Hl.test(e)||Vl.hasOwnProperty(e)&&Vl[e]?(""+t).trim():t+"px"}const Ml={};let Vl={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const Rl=["Webkit","Ms","Moz","O"];Vl=Object.keys(Vl).reduce(((e,t)=>(Rl.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Vl);const Ll=["x","y","z"],Wl=/^(matrix|translate|scale|rotate|skew)/,ql=/^(translate)/,Ul=/^(rotate|skew)/,Ql=(e,t)=>Co.num(e)&&0!==e?e+t:e,Gl=(e,t)=>Co.arr(e)?e.every((e=>Gl(e,t))):Co.num(e)?e===t:parseFloat(e)===t;class Xl extends gs{constructor(e){let{x:t,y:n,z:r}=e,i=zl(e,Ll);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Ql(e,"px"))).join(",")})`,Gl(e,0)]))),zo(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Wl.test(t)){if(delete i[t],Co.und(e))return;const n=ql.test(t)?"px":Ul.test(t)?"deg":"";o.push(To(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Ql(i,n)})`,Gl(i,0)]:e=>[`${t}(${e.map((e=>Ql(e,n))).join(",")})`,Gl(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Zl(o,a)),super(i)}}class Zl extends Ia{constructor(e,t){super(),this._value=null,this.inputs=e,this.transforms=t}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return Io(this.inputs,((n,r)=>{const i=Da(n[0]),[o,a]=this.transforms[r](Co.arr(i)?i:n.map(Da));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Io(this.inputs,(e=>Io(e,(e=>Ea(e)&&Ta(e,this)))))}observerRemoved(e){0==e&&Io(this.inputs,(e=>Io(e,(e=>Ea(e)&&Ha(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Pa(this,e)}}const Kl=["scrollTop","scrollLeft"];Uo.assign({batchedUpdates:p,createStringInterpolator:Xa,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});const Yl=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new gs(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=_s(e)||"Anonymous";return(e=Co.str(e)?o[e]||(o[e]=ws(e,i)):e[xs]||(e[xs]=ws(e,i))).displayName=`Animated(${t})`,e};return zo(e,((t,n)=>{Co.arr(e)&&(n=_s(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s,viewBox:l}=r,c=zl(r,Tl),u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:Ml[t]||(Ml[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Nl(t,i[t]);Hl.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Xl(e),getComponentProps:e=>zl(e,Kl)}),Jl=Yl.animated,ec=(e,t,n)=>t?mi(n,t)||mi(e,t):n||e,tc=(e,t)=>{const n=t||e.defaultValue;return mi(e.collections,n)};var nc;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(nc||(nc={}));const rc={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#4B539F",2:"#6D74B1",3:"#959BC5"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#977ECC",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},rbs:{Brand:{1:"#3E4DFF",2:"#AEACFF",3:"#AD44FF",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#4855D4",PrimaryDark:"#3E49B2",Secondary:"#364891",Accent:{Dark:{1:"#5E516E",2:"#7A6F87",3:"#C5C0CC"},Light:{1:"#8397FC",2:"#ABB8FC",3:"#CED6FD ",4:"#E1E4FA",5:"#F0F2FF",6:"#FAFBFF"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(90, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},ic=e=>t=>{const n=t.theme,r=tc(rc,n[nc.colorScheme]);return n.options&&n.options.color?ec(r,e,n.options.color):ec(r,e)},oc={Brand:{1:ic("Brand.1"),2:ic("Brand.2"),3:ic("Brand.3"),4:ic("Brand.4"),5:ic("Brand.5"),6:ic("Brand.6")},Primary:ic("Primary"),PrimaryDark:ic("PrimaryDark"),Secondary:ic("Secondary"),Accent:{Light:{1:ic("Accent.Light.1"),2:ic("Accent.Light.2"),3:ic("Accent.Light.3"),4:ic("Accent.Light.4"),5:ic("Accent.Light.5"),6:ic("Accent.Light.6")},Dark:{1:ic("Accent.Dark.1"),2:ic("Accent.Dark.2"),3:ic("Accent.Dark.3")}},Neutral:{1:ic("Neutral.1"),2:ic("Neutral.2"),3:ic("Neutral.3"),4:ic("Neutral.4"),5:ic("Neutral.5"),6:ic("Neutral.6"),7:ic("Neutral.7"),8:ic("Neutral.8")},Validation:{Green:{Text:ic("Validation.Green.Text"),Icon:ic("Validation.Green.Icon"),Border:ic("Validation.Green.Border"),Background:ic("Validation.Green.Background")},Orange:{Text:ic("Validation.Orange.Text"),Icon:ic("Validation.Orange.Icon"),Border:ic("Validation.Orange.Border"),Background:ic("Validation.Orange.Background"),Badge:ic("Validation.Orange.Badge")},Red:{Text:ic("Validation.Red.Text"),Icon:ic("Validation.Red.Icon"),Border:ic("Validation.Red.Border"),Background:ic("Validation.Red.Background")},Blue:{Text:ic("Validation.Blue.Text"),Icon:ic("Validation.Blue.Icon"),Border:ic("Validation.Blue.Border"),Background:ic("Validation.Blue.Background")}},Shadow:{Accent:ic("Shadow.Accent"),Red:ic("Shadow.Red"),Elevation:ic("Shadow.Elevation")}},ac={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},sc=e=>Object.keys(ac).reduce(((t,n)=>{const r=ac[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),lc=sc("max-width"),cc=(sc("min-width"),f.div`
2
2
  display: inline-block;
3
3
  position: relative;
4
4
  width: ${e=>e.$size}px;
@@ -35,7 +35,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
35
35
  `:m`
36
36
  font-family: ${r};
37
37
  font-weight: ${($c(t)||i)??"normal"};
38
- `},$c=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},_c=(e,t,n=!1)=>r=>{const i=vc[e],o=i.fontSize(r);return m`
38
+ `},$c=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},xc=(e,t,n=!1)=>r=>{const i=vc[e],o=i.fontSize(r);return m`
39
39
  ${wc(e,t)}
40
40
  font-size: ${o}rem !important;
41
41
  line-height: ${i.lineHeight}rem !important;
@@ -43,99 +43,99 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
43
43
  ${m`
44
44
  margin-bottom: ${o*(n?1.05:0)}rem;
45
45
  `}
46
- `},Sc=(e=!1,t=!1)=>t?m`
46
+ `},_c=(e=!1,t=!1)=>t?m`
47
47
  display: block;
48
48
  `:e?m`
49
49
  display: inline;
50
50
  `:m`
51
51
  display: block;
52
- `;var xc;!function(e){e.D1=f.h1`
52
+ `;var Sc;!function(e){e.D1=f.h1`
53
53
  ${e=>m`
54
- ${_c("D1",e.weight,e.paragraph)}
54
+ ${xc("D1",e.weight,e.paragraph)}
55
55
  color: ${oc.Neutral[1]};
56
- ${Sc(e.inline,e.paragraph)}
56
+ ${_c(e.inline,e.paragraph)}
57
57
  `}
58
58
  `,e.D2=f.h1`
59
59
  ${e=>m`
60
- ${_c("D2",e.weight,e.paragraph)}
60
+ ${xc("D2",e.weight,e.paragraph)}
61
61
  color: ${oc.Neutral[1]};
62
- ${Sc(e.inline,e.paragraph)}
62
+ ${_c(e.inline,e.paragraph)}
63
63
  `}
64
64
  `,e.D3=f.h1`
65
65
  ${e=>m`
66
- ${_c("D3",e.weight,e.paragraph)}
66
+ ${xc("D3",e.weight,e.paragraph)}
67
67
  color: ${oc.Neutral[1]};
68
- ${Sc(e.inline,e.paragraph)}
68
+ ${_c(e.inline,e.paragraph)}
69
69
  `}
70
70
  `,e.D4=f.h1`
71
71
  ${e=>m`
72
- ${_c("D4",e.weight,e.paragraph)}
72
+ ${xc("D4",e.weight,e.paragraph)}
73
73
  color: ${oc.Neutral[1]};
74
- ${Sc(e.inline,e.paragraph)}
74
+ ${_c(e.inline,e.paragraph)}
75
75
  `}
76
76
  `,e.DBody=f.h1`
77
77
  ${e=>m`
78
- ${_c("DBody",e.weight,e.paragraph)}
78
+ ${xc("DBody",e.weight,e.paragraph)}
79
79
  color: ${oc.Neutral[1]};
80
- ${Sc(e.inline,e.paragraph)}
80
+ ${_c(e.inline,e.paragraph)}
81
81
  `}
82
82
  `,e.H1=f.h1`
83
83
  ${e=>m`
84
- ${_c("H1",e.weight,e.paragraph)}
84
+ ${xc("H1",e.weight,e.paragraph)}
85
85
  color: ${oc.Neutral[1]};
86
- ${Sc(e.inline,e.paragraph)}
86
+ ${_c(e.inline,e.paragraph)}
87
87
  `}
88
88
  `,e.H2=f.h2`
89
89
  ${e=>m`
90
- ${_c("H2",e.weight,e.paragraph)}
90
+ ${xc("H2",e.weight,e.paragraph)}
91
91
  color: ${oc.Neutral[1]};
92
- ${Sc(e.inline,e.paragraph)}
92
+ ${_c(e.inline,e.paragraph)}
93
93
  `}
94
94
  `,e.H3=f.h3`
95
95
  ${e=>m`
96
- ${_c("H3",e.weight,e.paragraph)}
96
+ ${xc("H3",e.weight,e.paragraph)}
97
97
  color: ${oc.Neutral[1]};
98
- ${Sc(e.inline,e.paragraph)}
98
+ ${_c(e.inline,e.paragraph)}
99
99
  `}
100
100
  `,e.H4=f.h4`
101
101
  ${e=>m`
102
- ${_c("H4",e.weight,e.paragraph)}
102
+ ${xc("H4",e.weight,e.paragraph)}
103
103
  color: ${oc.Neutral[1]};
104
- ${Sc(e.inline,e.paragraph)}
104
+ ${_c(e.inline,e.paragraph)}
105
105
  `}
106
106
  `,e.H5=f.h5`
107
107
  ${e=>m`
108
- ${_c("H5",e.weight,e.paragraph)}
108
+ ${xc("H5",e.weight,e.paragraph)}
109
109
  color: ${oc.Neutral[1]};
110
- ${Sc(e.inline,e.paragraph)}
110
+ ${_c(e.inline,e.paragraph)}
111
111
  `}
112
112
  `,e.H6=f.h6`
113
113
  ${e=>m`
114
- ${_c("H6",e.weight,e.paragraph)}
114
+ ${xc("H6",e.weight,e.paragraph)}
115
115
  color: ${oc.Neutral[1]};
116
- ${Sc(e.inline,e.paragraph)}
116
+ ${_c(e.inline,e.paragraph)}
117
117
  `}
118
118
  `,e.Body=f.p`
119
119
  ${e=>m`
120
- ${_c("Body",e.weight,e.paragraph)}
120
+ ${xc("Body",e.weight,e.paragraph)}
121
121
  color: ${oc.Neutral[1]};
122
- ${Sc(e.inline,e.paragraph)}
122
+ ${_c(e.inline,e.paragraph)}
123
123
  `}
124
124
  `,e.BodySmall=f.p`
125
125
  ${e=>m`
126
- ${_c("BodySmall",e.weight,e.paragraph)}
126
+ ${xc("BodySmall",e.weight,e.paragraph)}
127
127
  color: ${oc.Neutral[1]};
128
- ${Sc(e.inline,e.paragraph)}
128
+ ${_c(e.inline,e.paragraph)}
129
129
  `}
130
130
  `,e.XSmall=f.span`
131
131
  ${e=>m`
132
- ${_c("XSmall",e.weight,e.paragraph)}
132
+ ${xc("XSmall",e.weight,e.paragraph)}
133
133
  color: ${oc.Neutral[1]};
134
- ${Sc(e.inline,e.paragraph)}
134
+ ${_c(e.inline,e.paragraph)}
135
135
  `}
136
- `,e.Hyperlink={Default:e=>Bc({...e,textStyle:"Body"}),Small:e=>Bc({...e,textStyle:"BodySmall"})}}(xc||(xc={}));const Fc=f.a`
136
+ `,e.Hyperlink={Default:e=>Bc({...e,textStyle:"Body"}),Small:e=>Bc({...e,textStyle:"BodySmall"})}}(Sc||(Sc={}));const Fc=f.a`
137
137
  ${e=>m`
138
- ${_c(e.textStyle,e.weight)}
138
+ ${xc(e.textStyle,e.weight)}
139
139
  color: ${oc.Primary};
140
140
  text-decoration: none;
141
141
 
@@ -154,7 +154,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
154
154
  width: 1rem;
155
155
  margin-left: 0.4rem;
156
156
  vertical-align: middle;
157
- `,Bc=({external:n=!1,children:r,...i})=>e(Fc,{...i,children:[r,n&&t(kc,{})]});var Ac;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Ac||(Ac={})),f.button`
157
+ `,Bc=({external:n=!1,children:r,...i})=>e(Fc,{...i,children:[r,n&&t(kc,{})]});var Oc;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Oc||(Oc={})),f.button`
158
158
  padding: 0.5rem 1rem;
159
159
  min-width: 4rem;
160
160
  border-radius: 4px;
@@ -235,7 +235,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
235
235
  ${e=>"small"===e.$buttonSizeStyle?m`
236
236
  height: 2.5rem;
237
237
  span {
238
- ${_c("H5","semibold")}
238
+ ${xc("H5","semibold")}
239
239
  }
240
240
 
241
241
  ${lc.mobileS} {
@@ -244,14 +244,14 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
244
244
  `:m`
245
245
  height: 3rem;
246
246
  span {
247
- ${_c("H4","semibold")}
247
+ ${xc("H4","semibold")}
248
248
  }
249
249
 
250
250
  ${lc.mobileS} {
251
251
  height: auto;
252
252
  }
253
253
  `}
254
- `;const Oc=f((({color:n,className:r,size:i=18})=>e(cc,{className:r,$size:i,$color:n,children:[t(dc,{id:"inner1",$size:i-2,$borderWidth:2}),t(hc,{id:"inner2",$size:i-2,$borderWidth:2}),t(pc,{id:"inner3",$size:i-2,$borderWidth:2}),t(fc,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
254
+ `;const Ac=f((({color:n,className:r,size:i=18})=>e(cc,{className:r,$size:i,$color:n,children:[t(dc,{id:"inner1",$size:i-2,$borderWidth:2}),t(hc,{id:"inner2",$size:i-2,$borderWidth:2}),t(pc,{id:"inner3",$size:i-2,$borderWidth:2}),t(fc,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
255
255
  margin-right: 0.5rem;
256
256
  ${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=oc.Primary(e);break;case"disabled":t=oc.Neutral[3](e);break;default:t=oc.Neutral[8](e)}return m`
257
257
  #inner1,
@@ -362,7 +362,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
362
362
  -webkit-box-orient: vertical;
363
363
  overflow-wrap: break-word;
364
364
  `,Nc=f.div`
365
- ${_c("Body","regular")}
365
+ ${xc("Body","regular")}
366
366
  color: ${oc.Neutral[1]};
367
367
  width: 100%;
368
368
 
@@ -374,9 +374,9 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
374
374
  ${e=>"end"===e.$truncateType&&Hc}
375
375
 
376
376
  ${e=>"next-line"===e.$labelDisplayType?m`
377
- ${_c("BodySmall","semibold")}
377
+ ${xc("BodySmall","semibold")}
378
378
  `:m`
379
- ${_c("Body","regular")}
379
+ ${xc("Body","regular")}
380
380
  `}
381
381
  `,Vc=f.div`
382
382
  text-align: left;
@@ -419,7 +419,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
419
419
  justify-content: flex-end;
420
420
  padding: 1rem 0 0.5rem 0;
421
421
  `,Uc=f.button`
422
- ${_c("Body","semibold")}
422
+ ${xc("Body","semibold")}
423
423
  background-color: transparent;
424
424
  background-repeat: no-repeat;
425
425
  border: none;
@@ -432,7 +432,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
432
432
  display: flex;
433
433
  padding: 1rem 0.5rem;
434
434
  align-items: center;
435
- `,Gc=f(xc.Body)``,Xc=f(v)`
435
+ `,Gc=f(Sc.Body)``,Xc=f(v)`
436
436
  margin-right: 0.625rem;
437
437
  height: 1.5rem;
438
438
  width: 1.5rem;
@@ -514,7 +514,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
514
514
  }
515
515
  `:void 0}
516
516
  `;const nu=f.input`
517
- ${_c("Body","regular")}
517
+ ${xc("Body","regular")}
518
518
  color: ${oc.Neutral[1]};
519
519
  display: block;
520
520
  background: transparent;
@@ -571,7 +571,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
571
571
  height: 1.375rem;
572
572
  width: 1.375rem;
573
573
  color: ${oc.Neutral[3]};
574
- `,lu=c(((n,r)=>{const{onClear:i,...o}=n;return e(ru,{children:[t(ou,{}),t(iu,{ref:r,...o}),o.value&&t(au,{"aria-label":"Clear search",focusOutline:"browser",onClick:i,children:t(su,{})})]},"search")})),cu=({listItems:r,listExtractor:i,valueExtractor:a,onSelectItem:c,listStyleWidth:u,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:g,onDismiss:m,disableItemFocus:y,multiSelect:v,selectedItems:b,onSelectAll:w,onRetry:$,itemsLoadState:_="success",itemTruncationType:S="end",itemMaxLines:x=2,labelDisplayType:F="inline",renderListItem:k,onBlur:B,hideNoResultsDisplay:A,renderCustomCallToAction:O,...j})=>{const[E,D]=s(0),[C,P]=s(""),[I,z]=s(r),[T,H]=s(0),N=jl({height:T}),M=l(),V=l(),R=l([]),L=l(),W=l(),q=l(E),U=l(I),Q=e=>{q.current=e,D(e)},G=e=>{U.current=e,z(e)};o((()=>(document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)})),[]),o((()=>{Y(C)}),[C]),o((()=>{if(P(""),d){if(setTimeout((()=>{H(J())})),y)return;L&&L.current?(L.current.focus(),Q(-1)):R.current[E]&&R.current[E].focus()}else H(0)}),[d]),o((()=>{if(d){const e=J();H(e)}}),[I,_]),o((()=>{G(r),P(""),Q(0)}),[r]);const X=e=>i?i(e):e.toString(),Z=e=>{if("inline"!==F)return!1;let t=0;V&&V.current&&(t=V.current.getBoundingClientRect().width-60);return jc.getTextWidth(e,"1.125rem 'Open Sans'")>t*x},K=e=>!!uo(b,(t=>po(t,e))),Y=e=>{if(""===e)G(r);else if(g){const t=g(e);G(t)}else{const t=r.filter((t=>{const n=X(t),r="object"==typeof n?n.title.toLowerCase():n.toLowerCase();return"object"==typeof n&&n.secondaryLabel?r.includes(e.trim().toLowerCase())||n.secondaryLabel.includes(e.trim().toLowerCase()):r.includes(e.trim().toLowerCase())}));G(t)}},J=()=>(V&&V.current?V.current.getBoundingClientRect().height:0)+(W.current?W.current.getBoundingClientRect().height:0),ee=e=>{if(M&&M.current.contains(e.target))switch(e.code){case"ArrowDown":if(q.current<U.current.length-1){const e=q.current+1;R.current[e].focus(),Q(e)}break;case"ArrowUp":if(q.current>0){const e=q.current-1;R.current[e].focus(),Q(q.current-1)}break;case"Escape":m&&m(!0)}},te=(e,t)=>{e.preventDefault(),c&&c(t,(e=>a?a(e):e)(t))},ne=e=>{const t=e.target.value;P(t),f&&f()},re=()=>{P(""),L.current.focus(),f&&f()},ie=()=>{$&&$()},oe=()=>{B&&B()},ae=r=>e(n,{children:[t(Rc,{$maxLines:x,"aria-hidden":!0,children:r}),t(Lc,{$maxLines:x,"aria-hidden":!0,children:r})]}),se=n=>{const r=X(n),i="string"==typeof r?r:r.title,o="string"==typeof r?void 0:r.secondaryLabel,a=Z(i),s=o&&Z(o);return e(Vc,{$labelDisplayType:a||s?"next-line":F,children:[t(Nc,{$truncateType:S,$maxLines:x,"aria-label":i,children:"middle"===S&&a?ae(i):i}),o&&t(Mc,{$truncateType:S,$maxLines:x,$labelDisplayType:F,"aria-label":o,children:"middle"===S&&s?ae(o):o})]})},le=()=>{if(!$||$&&"success"===_)return I.map(((n,r)=>t(zc,{$checked:K(n)&&!v,children:e(Tc,{$hasNextLineLabel:"next-line"===F&&I.length>0&&i&&"string"!=typeof i(I[0]),onClick:e=>{te(e,n)},ref:e=>R.current[r]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,$multiSelect:v,onBlur:oe,children:[v&&t(Wc,{checked:K(n),displaySize:"small"}),k?k(n,{selected:K(n)}):se(n)]})},((e,t)=>`item_${t}__${a?a(e):e}`)(n,r))))},ce=()=>{if(v&&I.length>0&&!C&&"success"===_)return t(qc,{children:t(Uc,{onClick:w,type:"button",children:0===b.length?"Select all":"Unselect all"})},"selectAll")},ue=()=>{if(!A&&(C||!h)&&0===I.length&&"success"===_)return e(Qc,{"data-testid":"list-no-results",children:[t(Xc,{"data-testid":"no-result-icon"}),t(Gc,{children:"No results found."})]},"noResults")},de=()=>{if($&&"loading"===_)return e(Qc,{"data-testid":"list-loading",children:[t(Oc,{$buttonStyle:"secondary",size:24}),t(Gc,{children:"Loading..."})]},"loading")},he=()=>{if($&&"fail"===_)return e(Qc,{"data-testid":"list-fail",children:[t(Xc,{"data-testid":"load-error-icon"}),t(Gc,{children:"Failed to load."}),t(Uc,{onClick:ie,type:"button",children:"Try again."})]},"noResults")};return t(n,{children:e(Pc,{style:N,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:M,children:[(()=>{if(d)return e(Ic,{ref:V,"data-testid":"dropdown-list",width:u,role:"list",...j,children:[(h||g)&&"success"===_?t(lu,{ref:L,onChange:ne,value:C,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:re}):null,ce(),ue(),de(),he(),le()]})})(),(()=>{if(d&&O)return t("div",{ref:W,"data-testid":"custom-cta",children:O(m,I)})})()]})})},uu="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",du=f.div`
574
+ `,lu=c(((n,r)=>{const{onClear:i,...o}=n;return e(ru,{children:[t(ou,{}),t(iu,{ref:r,...o}),o.value&&t(au,{"aria-label":"Clear search",focusOutline:"browser",onClick:i,children:t(su,{})})]},"search")})),cu=({listItems:r,listExtractor:i,valueExtractor:a,onSelectItem:c,listStyleWidth:u,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:g,onDismiss:m,disableItemFocus:y,multiSelect:v,selectedItems:b,onSelectAll:w,onRetry:$,itemsLoadState:x="success",itemTruncationType:_="end",itemMaxLines:S=2,labelDisplayType:F="inline",renderListItem:k,onBlur:B,hideNoResultsDisplay:O,renderCustomCallToAction:A,...j})=>{const[E,D]=s(0),[C,P]=s(""),[I,z]=s(r),[T,H]=s(0),N=jl({height:T}),M=l(),V=l(),R=l([]),L=l(),W=l(),q=l(E),U=l(I),Q=e=>{q.current=e,D(e)},G=e=>{U.current=e,z(e)};o((()=>(document.addEventListener("keydown",ee),()=>{document.removeEventListener("keydown",ee)})),[]),o((()=>{Y(C)}),[C]),o((()=>{if(P(""),d){if(setTimeout((()=>{H(J())})),y)return;L&&L.current?(L.current.focus(),Q(-1)):R.current[E]&&R.current[E].focus()}else H(0)}),[d]),o((()=>{if(d){const e=J();H(e)}}),[I,x]),o((()=>{G(r),P(""),Q(0)}),[r]);const X=e=>i?i(e):e.toString(),Z=e=>{if("inline"!==F)return!1;let t=0;V&&V.current&&(t=V.current.getBoundingClientRect().width-60);return jc.getTextWidth(e,"1.125rem 'Open Sans'")>t*S},K=e=>!!uo(b,(t=>po(t,e))),Y=e=>{if(""===e)G(r);else if(g){const t=g(e);G(t)}else{const t=r.filter((t=>{const n=X(t),r="object"==typeof n?n.title.toLowerCase():n.toLowerCase(),i="string"==typeof n?void 0:n.secondaryLabel?.toLowerCase(),o=e.trim().toLowerCase();return r.includes(o)||i&&i.includes(o)}));G(t)}},J=()=>(V&&V.current?V.current.getBoundingClientRect().height:0)+(W.current?W.current.getBoundingClientRect().height:0),ee=e=>{if(M&&M.current.contains(e.target))switch(e.code){case"ArrowDown":if(q.current<U.current.length-1){const e=q.current+1;R.current[e].focus(),Q(e)}break;case"ArrowUp":if(q.current>0){const e=q.current-1;R.current[e].focus(),Q(q.current-1)}break;case"Escape":m&&m(!0)}},te=(e,t)=>{e.preventDefault(),c&&c(t,(e=>a?a(e):e)(t))},ne=e=>{const t=e.target.value;P(t),f&&f()},re=()=>{P(""),L.current.focus(),f&&f()},ie=()=>{$&&$()},oe=()=>{B&&B()},ae=r=>e(n,{children:[t(Rc,{$maxLines:S,"aria-hidden":!0,children:r}),t(Lc,{$maxLines:S,"aria-hidden":!0,children:r})]}),se=n=>{const r=X(n),i="string"==typeof r?r:r.title,o="string"==typeof r?void 0:r.secondaryLabel,a=Z(i),s=o&&Z(o);return e(Vc,{$labelDisplayType:a||s?"next-line":F,children:[t(Nc,{$truncateType:_,$maxLines:S,"aria-label":i,children:"middle"===_&&a?ae(i):i}),o&&t(Mc,{$truncateType:_,$maxLines:S,$labelDisplayType:F,"aria-label":o,children:"middle"===_&&s?ae(o):o})]})},le=()=>{if(!$||$&&"success"===x)return I.map(((n,r)=>t(zc,{$checked:K(n)&&!v,children:e(Tc,{$hasNextLineLabel:"next-line"===F&&I.length>0&&i&&"string"!=typeof i(I[0]),onClick:e=>{te(e,n)},ref:e=>R.current[r]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,$multiSelect:v,onBlur:oe,children:[v&&t(Wc,{checked:K(n),displaySize:"small"}),k?k(n,{selected:K(n)}):se(n)]})},((e,t)=>`item_${t}__${a?a(e):e}`)(n,r))))},ce=()=>{if(v&&I.length>0&&!C&&"success"===x)return t(qc,{children:t(Uc,{onClick:w,type:"button",children:0===b.length?"Select all":"Unselect all"})},"selectAll")},ue=()=>{if(!O&&(C||!h)&&0===I.length&&"success"===x)return e(Qc,{"data-testid":"list-no-results",children:[t(Xc,{"data-testid":"no-result-icon"}),t(Gc,{children:"No results found."})]},"noResults")},de=()=>{if($&&"loading"===x)return e(Qc,{"data-testid":"list-loading",children:[t(Ac,{$buttonStyle:"secondary",size:24}),t(Gc,{children:"Loading..."})]},"loading")},he=()=>{if($&&"fail"===x)return e(Qc,{"data-testid":"list-fail",children:[t(Xc,{"data-testid":"load-error-icon"}),t(Gc,{children:"Failed to load."}),t(Uc,{onClick:ie,type:"button",children:"Try again."})]},"noResults")};return t(n,{children:e(Pc,{style:N,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:M,children:[(()=>{if(d)return e(Ic,{ref:V,"data-testid":"dropdown-list",width:u,role:"list",...j,children:[(h||g)&&"success"===x?t(lu,{ref:L,onChange:ne,value:C,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:re}):null,ce(),ue(),de(),he(),le()]})})(),(()=>{if(d&&A)return t("div",{ref:W,"data-testid":"custom-cta",children:A(m,I)})})()]})})},uu="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",du=f.div`
575
575
  position: relative;
576
576
  min-height: 3rem;
577
577
  height: 3rem; // Need this to persist the height when expanding or collapsing list
@@ -669,7 +669,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
669
669
  transform: rotate(${e=>e.expanded?180:0}deg);
670
670
  transition: ${uu};
671
671
  margin-left: 1rem;
672
- `,f(_)`
672
+ `,f(x)`
673
673
  color: ${oc.Neutral[3]};
674
674
  height: ${vc.Body.fontSize}rem;
675
675
  width: ${vc.Body.fontSize}rem;
@@ -680,7 +680,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
680
680
  `,yu=f.div`
681
681
  display: flex;
682
682
  flex: 1;
683
- `,vu=f(xc.Body)`
683
+ `,vu=f(Sc.Body)`
684
684
  text-align: left;
685
685
  line-height: 1.375rem;
686
686
  ${e=>{if("middle"!==e.truncateType)return m`
@@ -692,7 +692,7 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
692
692
  overflow: hidden;
693
693
  `,bu=f(vu)`
694
694
  color: ${oc.Neutral[3]};
695
- `,wu=({children:e,show:n,error:r,disabled:i,testId:a,onBlur:s,readOnly:c})=>{const u=l();return((e,t,n="window",r)=>{const i=l();o((()=>{i.current=t}),[t]),o((()=>{let t;switch(n){case"window":t=window;break;case"document":t=document;break;default:t=n}if(!t||!t.addEventListener)return;const o=e=>i.current(e);return t.addEventListener(e,o,r),()=>{t.removeEventListener(e,o,r)}}),[e,n])})("mousedown",(function(e){if(!i){if(u&&u.current.contains(e.target))return;n&&s()}}),"document"),t(du,{children:t(gu,{ref:u,error:r&&!n,disabled:i,$readOnly:c,expanded:n,"data-testid":a,children:e})})},$u=e=>`@media screen and (max-width: ${e}px)`,_u=f.div`
695
+ `,wu=({children:e,show:n,error:r,disabled:i,testId:a,onBlur:s,readOnly:c})=>{const u=l();return((e,t,n="window",r)=>{const i=l();o((()=>{i.current=t}),[t]),o((()=>{let t;switch(n){case"window":t=window;break;case"document":t=document;break;default:t=n}if(!t||!t.addEventListener)return;const o=e=>i.current(e);return t.addEventListener(e,o,r),()=>{t.removeEventListener(e,o,r)}}),[e,n])})("mousedown",(function(e){if(!i){if(u&&u.current.contains(e.target))return;n&&s()}}),"document"),t(du,{children:t(gu,{ref:u,error:r&&!n,disabled:i,$readOnly:c,expanded:n,"data-testid":a,children:e})})},$u=e=>`@media screen and (max-width: ${e}px)`,xu=f.div`
696
696
  position: relative;
697
697
  height: 100%;
698
698
  display: flex;
@@ -715,12 +715,12 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
715
715
  }
716
716
  }
717
717
  `}}
718
- `,Su=f.div`
718
+ `,_u=f.div`
719
719
  height: 100%;
720
720
  display: flex;
721
721
  flex: 1;
722
722
  align-items: center;
723
- `,xu=f(S)`
723
+ `,Su=f(_)`
724
724
  color: ${oc.Neutral[3]};
725
725
  width: 1.125rem;
726
726
  height: 1.125rem;
@@ -751,5 +751,71 @@ import{jsxs as e,jsx as t,Fragment as n}from"react/jsx-runtime";import*as r from
751
751
  display: none;
752
752
  }
753
753
  `}}
754
- `,ku=({children:n,currentActive:r,error:i,className:o,minWidthBeforeWrap:a})=>{const[s,l]=n;return e(_u,{className:o,$minWidthBeforeWrap:a,children:[t(Su,{"data-id":"range-container-elem1-container",children:s}),t(xu,{}),t(Su,{"data-id":"range-container-elem2-container",children:l}),t(Fu,{"data-id":"range-container-indicator",$position:r,$error:i,$minWidthBeforeWrap:a})]})},Bu=({selectedOptions:n,placeholders:r={from:"Select",to:"Select"},options:i,disabled:a,className:c,readOnly:u,error:d,"data-testid":h,id:p,enableSearch:f=!1,searchFunction:g,searchPlaceholder:m,valueExtractor:y,valueToStringFunction:v,listExtractor:b,displayValueExtractor:w,onSelectOption:$,listStyleWidth:_,onShowOptions:S,onHideOptions:x,onRetry:F,optionsLoadState:k={from:"success",to:"success"},optionTruncationType:B="middle",renderCustomSelectedOption:A,renderListItem:O,renderCustomCallToAction:j,...E})=>{const[D,C]=s(),[P,I]=s(),z=l(),T={from:l(),to:l()},[H,N]=s("none");o((()=>{C(n?.from),I(n?.to)}),[n]);const M=e=>t=>{t.stopPropagation(),t.preventDefault(),a||u||N("from"===e?"from":"to"===e&&D?"to":"from")},V=e=>{const t="from"===e?D:P;return w?w(t):y?y(t):t?.toString()},R=(e,t)=>{if("middle"===B){let n=0;return T[e]&&T[e].current&&(n=T[e].current.getBoundingClientRect().width),jc.truncateOneLine((e=>"string"==typeof e?e:v(e)||e.toString())(t),n,120,8)}return t},L=e=>{!e&&x&&x(),e&&S&&S()},W=e=>{const n="from"===e?D:P;return n?A?A(n):t(vu,{truncateType:B,children:R(e,V(e))}):t(bu,{truncateType:B,children:R(e,r[e])})},q=e=>t(yu,{onClick:M(e),ref:T[e],children:W(e)});return e(wu,{show:"none"!==H,"data-testid":E["data-testid"],error:d&&!("none"!==H),disabled:a,readOnly:u,testId:h,onBlur:()=>{L(!1),N("none"),D&&P||(I(void 0),C(void 0))},className:c,children:[t(pu,{type:"button","data-testid":p||"selector",disabled:a,ref:z,onClick:M(),...E,children:e(ku,{currentActive:(()=>{switch(H){case"from":return"start";case"to":return"end";case"none":return H}})(),children:[q("from"),q("to")]})}),"none"!==H&&t(mu,{}),(()=>{if("none"===H)return null;const e=i[H];if(e&&e.length>0){const n="from"===H?D:P;return t(cu,{listItems:e,onSelectItem:(e,t)=>{return n=e,r=t,"from"===(i=H)?C(n):I(n),L(!1),z&&z.current.focus(),$&&$({[i]:n},r),void("from"===i?(I(void 0),N("to"),L(!0)):N("none"));var n,r,i},onDismiss:()=>(N("none"),L(!1),z&&z.current.focus(),void(D&&P||(I(void 0),C(void 0)))),valueExtractor:y,listExtractor:b,listStyleWidth:_,visible:!0,enableSearch:f,searchPlaceholder:m,searchFunction:g,"data-testid":`${H}-dropdown-list`,selectedItems:n?[n]:[],onRetry:F,itemsLoadState:k[H],itemTruncationType:B,renderListItem:O,renderCustomCallToAction:j})}return null})()]})};export{Bu as InputRangeSelect};
754
+ `,ku=({children:n,currentActive:r,error:i,className:o,minWidthBeforeWrap:a})=>{const[s,l]=n;return e(xu,{className:o,$minWidthBeforeWrap:a,children:[t(_u,{"data-id":"range-container-elem1-container",children:s}),t(Su,{}),t(_u,{"data-id":"range-container-elem2-container",children:l}),t(Fu,{"data-id":"range-container-indicator",$position:r,$error:i,$minWidthBeforeWrap:a})]})};f.input`
755
+ ${xc("Body","regular")}
756
+ color: ${oc.Neutral[1]};
757
+
758
+ // overwrite default styles
759
+ background: transparent;
760
+ border: none;
761
+ height: calc(3rem - 2px); // exclude top and bottom borders
762
+ width: 100%;
763
+ padding: 0;
764
+
765
+ :focus,
766
+ :active {
767
+ outline: none;
768
+ border: none;
769
+ box-shadow: none;
770
+ }
771
+
772
+ ::placeholder,
773
+ ::-webkit-input-placeholder {
774
+ color: ${oc.Neutral[3]};
775
+ }
776
+
777
+ ${e=>"number"===e.type?m`
778
+ // Chrome, Safari, Edge, Opera
779
+ ::-webkit-outer-spin-button,
780
+ ::-webkit-inner-spin-button {
781
+ -webkit-appearance: none;
782
+ margin: 0;
783
+ }
784
+
785
+ // Firefox
786
+ -moz-appearance: textfield;
787
+ `:e.disabled?m`
788
+ cursor: not-allowed;
789
+ `:void 0}
790
+ `;const Bu=f.button`
791
+ position: relative;
792
+ height: auto;
793
+ padding: 0.75rem 1rem;
794
+
795
+ margin-right: -1rem; // offset the padding
796
+ cursor: pointer;
797
+
798
+ color: ${oc.Neutral[3]};
799
+ background-color: transparent;
800
+ border: none;
801
+ `,Ou=f(w)`
802
+ height: 1.25rem;
803
+ width: 1.25rem;
804
+ vertical-align: middle;
805
+ `;f.div`
806
+ display: flex;
807
+ width: 100%;
808
+ `;const Au=f.div`
809
+ display: flex;
810
+ position: relative;
811
+ align-items: center;
812
+ justify-content: space-between;
813
+ `,ju=f(Bu)`
814
+ position: absolute;
815
+ right: 0;
816
+ padding-left: 0.5rem;
817
+ margin-right: 0;
818
+ `,Eu=f(pu)`
819
+ padding-right: 2.75rem;
820
+ `,Du=({selectedOptions:n,placeholders:r={from:"Select",to:"Select"},options:i,disabled:a,className:c,readOnly:u,error:d,"data-testid":h,id:p,enableSearch:f=!1,searchFunction:g,searchPlaceholder:m,valueExtractor:y,valueToStringFunction:v,listExtractor:b,displayValueExtractor:w,onSelectOption:$,listStyleWidth:x,onShowOptions:_,onHideOptions:S,onRetry:F,optionsLoadState:k={from:"success",to:"success"},optionTruncationType:B="middle",renderCustomSelectedOption:O,renderListItem:A,renderCustomCallToAction:j,...E})=>{const[D,C]=s(),[P,I]=s(),z=l(),T={from:l(),to:l()},[H,N]=s("none");o((()=>{C(n?.from),I(n?.to)}),[n]);const M=e=>t=>{t.stopPropagation(),t.preventDefault(),a||u||N("from"===e?"from":"to"===e&&D?"to":"from")},V=e=>{const t="from"===e?D:P;return w?w(t):y?y(t):t?.toString()},R=(e,t)=>{if("middle"===B){let n=0;return T[e]&&T[e].current&&(n=T[e].current.getBoundingClientRect().width),jc.truncateOneLine((e=>"string"==typeof e?e:v(e)||e.toString())(t),n,120,8)}return t},L=e=>{!e&&S&&S(),e&&_&&_()},W=e=>{const n="from"===e?D:P;return n?O?O(n):t(vu,{truncateType:B,children:R(e,V(e))}):t(bu,{truncateType:B,children:R(e,r[e])})},q=e=>t(yu,{onClick:M(e),ref:T[e],children:W(e)});return e(wu,{show:"none"!==H,"data-testid":E["data-testid"],error:d&&!("none"!==H),disabled:a,readOnly:u,testId:h,onBlur:()=>{L(!1),N("none"),D&&P||(I(void 0),C(void 0))},className:c,children:[e(Au,{children:[t(Eu,{type:"button","data-testid":p||"selector",disabled:a,ref:z,onClick:M(),...E,children:e(ku,{currentActive:(()=>{switch(H){case"from":return"start";case"to":return"end";case"none":return H}})(),children:[q("from"),q("to")]})}),"none"===H&&D&&P&&!u&&!a&&t(ju,{onClick:e=>{e.stopPropagation(),C(void 0),I(void 0),$&&$({from:void 0,to:void 0},void 0)},type:"button","aria-label":"Clear",children:t(Ou,{"aria-hidden":!0})})]}),"none"!==H&&t(mu,{}),(()=>{if("none"===H)return null;const e=i[H];if(e&&e.length>0){const n="from"===H?D:P;return t(cu,{listItems:e,onSelectItem:(e,t)=>{return n=e,r=t,"from"===(i=H)?C(n):I(n),L(!1),z&&z.current.focus(),$&&$({[i]:n},r),void("from"===i?(I(void 0),N("to"),L(!0)):N("none"));var n,r,i},onDismiss:()=>(N("none"),L(!1),z&&z.current.focus(),void(D&&P||(I(void 0),C(void 0)))),valueExtractor:y,listExtractor:b,listStyleWidth:x,visible:!0,enableSearch:f,searchPlaceholder:m,searchFunction:g,"data-testid":`${H}-dropdown-list`,selectedItems:n?[n]:[],onRetry:F,itemsLoadState:k[H],itemTruncationType:B,renderListItem:A,renderCustomCallToAction:j})}return null})()]})};export{Du as InputRangeSelect};
755
821
  //# sourceMappingURL=index.js.map