@lifesg/react-design-system 1.0.1 → 1.0.2
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.
- package/cjs/index.js +6 -6
- package/cjs/index.js.map +1 -1
- package/date-input/index.js +78 -78
- package/date-input/index.js.map +1 -1
- package/filter/index.js +166 -166
- package/filter/index.js.map +1 -1
- package/form/index.js +116 -116
- package/form/index.js.map +1 -1
- package/index.js +67 -67
- package/index.js.map +1 -1
- package/input-group/index.js +58 -58
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +168 -168
- package/input-select/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +59 -59
- package/phone-number-input/index.js.map +1 -1
- package/time-slot-bar/index.js +80 -80
- package/time-slot-bar/index.js.map +1 -1
- package/timepicker/index.js +209 -209
- package/timepicker/index.js.map +1 -1
- package/toggle/index.js +147 -147
- package/toggle/index.js.map +1 -1
- package/util/index.d.ts +1 -0
- package/util/simple-id-generator.d.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a from"react";import i,{useRef as o,useImperativeHandle as s,useEffect as l,useLayoutEffect as c,useState as u,forwardRef as d,useCallback as h,useContext as p,useMemo as f}from"react";import g,{css as m,keyframes as b}from"styled-components";import{unstable_batchedUpdates as y}from"react-dom";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},w=Array.isArray,x="object"==typeof v&&v&&v.Object===Object&&v,$=x,S="object"==typeof self&&self&&self.Object===Object&&self,_=$||S||Function("return this")(),C=_.Symbol,k=C,B=Object.prototype,
|
|
1
|
+
import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a from"react";import i,{useRef as o,useImperativeHandle as s,useEffect as l,useLayoutEffect as c,useState as u,forwardRef as d,useCallback as h,useContext as p,useMemo as f}from"react";import g,{css as m,keyframes as b}from"styled-components";import{unstable_batchedUpdates as y}from"react-dom";var v="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},w=Array.isArray,x="object"==typeof v&&v&&v.Object===Object&&v,$=x,S="object"==typeof self&&self&&self.Object===Object&&self,_=$||S||Function("return this")(),C=_.Symbol,k=C,B=Object.prototype,O=B.hasOwnProperty,F=B.toString,j=k?k.toStringTag:void 0;var A=function(e){var t=O.call(e,j),r=e[j];try{e[j]=void 0;var n=!0}catch(e){}var a=F.call(e);return n&&(t?e[j]=r:delete e[j]),a},z=Object.prototype.toString;var P=A,N=function(e){return z.call(e)},I=C?C.toStringTag:void 0;var E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":I&&I in Object(e)?P(e):N(e)};var M=function(e){return null!=e&&"object"==typeof e},D=E,H=M;var T=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==D(e)},V=w,L=T,R=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,W=/^\w*$/;var q=function(e,t){if(V(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!L(e))||(W.test(e)||!R.test(e)||null!=t&&e in Object(t))};var U=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},G=E,Q=U;var Z,K=function(e){if(!Q(e))return!1;var t=G(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=_["__core-js_shared__"],J=(Z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var Y=function(e){return!!J&&J in e},ee=Function.prototype.toString;var te=function(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""},re=K,ne=Y,ae=U,ie=te,oe=/^\[object .+?Constructor\]$/,se=Function.prototype,le=Object.prototype,ce=se.toString,ue=le.hasOwnProperty,de=RegExp("^"+ce.call(ue).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var he=function(e){return!(!ae(e)||ne(e))&&(re(e)?de:oe).test(ie(e))},pe=function(e,t){return null==e?void 0:e[t]};var fe=function(e,t){var r=pe(e,t);return he(r)?r:void 0},ge=fe(Object,"create"),me=ge;var be=function(){this.__data__=me?me(null):{},this.size=0};var ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ve=ge,we=Object.prototype.hasOwnProperty;var xe=function(e){var t=this.__data__;if(ve){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return we.call(t,e)?t[e]:void 0},$e=ge,Se=Object.prototype.hasOwnProperty;var _e=ge;var Ce=be,ke=ye,Be=xe,Oe=function(e){var t=this.__data__;return $e?void 0!==t[e]:Se.call(t,e)},Fe=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=_e&&void 0===t?"__lodash_hash_undefined__":t,this};function je(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}je.prototype.clear=Ce,je.prototype.delete=ke,je.prototype.get=Be,je.prototype.has=Oe,je.prototype.set=Fe;var Ae=je;var ze=function(){this.__data__=[],this.size=0};var Pe=function(e,t){return e===t||e!=e&&t!=t},Ne=Pe;var Ie=function(e,t){for(var r=e.length;r--;)if(Ne(e[r][0],t))return r;return-1},Ee=Ie,Me=Array.prototype.splice;var De=Ie;var He=Ie;var Te=Ie;var Ve=ze,Le=function(e){var t=this.__data__,r=Ee(t,e);return!(r<0)&&(r==t.length-1?t.pop():Me.call(t,r,1),--this.size,!0)},Re=function(e){var t=this.__data__,r=De(t,e);return r<0?void 0:t[r][1]},We=function(e){return He(this.__data__,e)>-1},qe=function(e,t){var r=this.__data__,n=Te(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function Ue(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Ue.prototype.clear=Ve,Ue.prototype.delete=Le,Ue.prototype.get=Re,Ue.prototype.has=We,Ue.prototype.set=qe;var Ge=Ue,Qe=fe(_,"Map"),Ze=Ae,Ke=Ge,Xe=Qe;var Je=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 r=e.__data__;return Je(t)?r["string"==typeof t?"string":"hash"]:r.map},et=Ye;var tt=Ye;var rt=Ye;var nt=Ye;var at=function(){this.size=0,this.__data__={hash:new Ze,map:new(Xe||Ke),string:new Ze}},it=function(e){var t=et(this,e).delete(e);return this.size-=t?1:0,t},ot=function(e){return tt(this,e).get(e)},st=function(e){return rt(this,e).has(e)},lt=function(e,t){var r=nt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function ct(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ct.prototype.clear=at,ct.prototype.delete=it,ct.prototype.get=ot,ct.prototype.has=st,ct.prototype.set=lt;var ut=ct,dt=ut;function ht(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,a=t?t.apply(this,n):n[0],i=r.cache;if(i.has(a))return i.get(a);var o=e.apply(this,n);return r.cache=i.set(a,o)||i,o};return r.cache=new(ht.Cache||dt),r}ht.Cache=dt;var pt=ht;var ft=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,gt=/\\(\\)?/g,mt=function(e){var t=pt(e,(function(e){return 500===r.size&&r.clear(),e})),r=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ft,(function(e,r,n,a){t.push(n?a.replace(gt,"$1"):r||e)})),t}));var bt=function(e,t){for(var r=-1,n=null==e?0:e.length,a=Array(n);++r<n;)a[r]=t(e[r],r,e);return a},yt=w,vt=T,wt=C?C.prototype:void 0,xt=wt?wt.toString:void 0;var $t=function e(t){if("string"==typeof t)return t;if(yt(t))return bt(t,e)+"";if(vt(t))return xt?xt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},St=$t;var _t=w,Ct=q,kt=mt,Bt=function(e){return null==e?"":St(e)};var Ot=function(e,t){return _t(e)?e:Ct(e,t)?[e]:kt(Bt(e))},Ft=T;var jt=function(e){if("string"==typeof e||Ft(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},At=Ot,zt=jt;var Pt=function(e,t){for(var r=0,n=(t=At(t,e)).length;null!=e&&r<n;)e=e[zt(t[r++])];return r&&r==n?e:void 0},Nt=Pt;var It=function(e,t,r){var n=null==e?void 0:Nt(e,t);return void 0===n?r:n};const Et=(e,t,r)=>t?It(r,t)||It(e,t):r||e,Mt=(e,t)=>{const r=t||e.defaultValue;return It(e.collections,r)};var Dt;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(Dt||(Dt={}));const Ht={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},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:"#9F82D9",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)"}}},defaultValue:"base"},Tt=e=>t=>{const r=t.theme,n=Mt(Ht,r[Dt.colorScheme]);return r.options&&r.options.color?Et(n,e,r.options.color):Et(n,e)},Vt={Brand:{1:Tt("Brand.1"),2:Tt("Brand.2"),3:Tt("Brand.3"),4:Tt("Brand.4"),5:Tt("Brand.5"),6:Tt("Brand.6")},Primary:Tt("Primary"),PrimaryDark:Tt("PrimaryDark"),Secondary:Tt("Secondary"),Accent:{Light:{1:Tt("Accent.Light.1"),2:Tt("Accent.Light.2"),3:Tt("Accent.Light.3"),4:Tt("Accent.Light.4"),5:Tt("Accent.Light.5"),6:Tt("Accent.Light.6")},Dark:{1:Tt("Accent.Dark.1"),2:Tt("Accent.Dark.2"),3:Tt("Accent.Dark.3")}},Neutral:{1:Tt("Neutral.1"),2:Tt("Neutral.2"),3:Tt("Neutral.3"),4:Tt("Neutral.4"),5:Tt("Neutral.5"),6:Tt("Neutral.6"),7:Tt("Neutral.7"),8:Tt("Neutral.8")},Validation:{Green:{Text:Tt("Validation.Green.Text"),Icon:Tt("Validation.Green.Icon"),Border:Tt("Validation.Green.Border"),Background:Tt("Validation.Green.Background")},Orange:{Text:Tt("Validation.Orange.Text"),Icon:Tt("Validation.Orange.Icon"),Border:Tt("Validation.Orange.Border"),Background:Tt("Validation.Orange.Background"),Badge:Tt("Validation.Orange.Badge")},Red:{Text:Tt("Validation.Red.Text"),Icon:Tt("Validation.Red.Icon"),Border:Tt("Validation.Red.Border"),Background:Tt("Validation.Red.Background")},Blue:{Text:Tt("Validation.Blue.Text"),Icon:Tt("Validation.Blue.Icon"),Border:Tt("Validation.Blue.Border"),Background:Tt("Validation.Blue.Background")}},Shadow:{Accent:Tt("Shadow.Accent"),Red:Tt("Shadow.Red"),Elevation:Tt("Shadow.Elevation")}},Lt={collections:{base:{InputBoxShadow:m`
|
|
2
2
|
inset 0 0 6px 1px ${Vt.Shadow.Accent}
|
|
3
3
|
`,InputErrorBoxShadow:m`
|
|
4
4
|
inset 0 0 6px 1px ${Vt.Shadow.Red}
|
|
@@ -308,19 +308,19 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
308
308
|
`:m`
|
|
309
309
|
margin-right: ${e.$readOnly?"0.25rem":"0.75rem"};
|
|
310
310
|
`};
|
|
311
|
-
`;var Sr=function(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1},_r=Ge;var Cr=Ge,kr=Qe,Br=ut;var Fr=Ge,Or=function(){this.__data__=new _r,this.size=0},jr=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Ar=function(e){return this.__data__.get(e)},zr=function(e){return this.__data__.has(e)},Pr=function(e,t){var r=this.__data__;if(r instanceof Cr){var n=r.__data__;if(!kr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Br(n)}return r.set(e,t),this.size=r.size,this};function Nr(e){var t=this.__data__=new Fr(e);this.size=t.size}Nr.prototype.clear=Or,Nr.prototype.delete=jr,Nr.prototype.get=Ar,Nr.prototype.has=zr,Nr.prototype.set=Pr;var Ir=Nr;var Er=ut,Mr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Dr=function(e){return this.__data__.has(e)};function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Er;++t<r;)this.add(e[t])}Hr.prototype.add=Hr.prototype.push=Mr,Hr.prototype.has=Dr;var Tr=Hr,Vr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Lr=function(e,t){return e.has(t)};var Rr=function(e,t,r,n,a,i){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Tr:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=o?n(g,f,d,t,e,i):n(f,g,d,e,t,i);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Vr(t,(function(e,t){if(!Lr(p,t)&&(f===e||a(f,e,r,n,i)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!a(f,g,r,n,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var Wr=_.Uint8Array,qr=Pe,Ur=Rr,Gr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Qr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Zr=C?C.prototype:void 0,Kr=Zr?Zr.valueOf:void 0;var Xr=function(e,t,r,n,a,i,o){switch(r){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||!i(new Wr(e),new Wr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return qr(+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=Gr;case"[object Set]":var l=1&n;if(s||(s=Qr),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=Ur(s(e),s(t),n,a,i,o);return o.delete(e),u;case"[object Symbol]":if(Kr)return Kr.call(e)==Kr.call(t)}return!1};var Jr=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},Yr=w;var en=function(e,t,r){var n=t(e);return Yr(e)?n:Jr(n,r(e))};var tn=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i},rn=function(){return[]},nn=Object.prototype.propertyIsEnumerable,an=Object.getOwnPropertySymbols,on=an?function(e){return null==e?[]:(e=Object(e),tn(an(e),(function(t){return nn.call(e,t)})))}:rn;var sn=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},ln=E,cn=M;var un=function(e){return cn(e)&&"[object Arguments]"==ln(e)},dn=M,hn=Object.prototype,pn=hn.hasOwnProperty,fn=hn.propertyIsEnumerable,gn=un(function(){return arguments}())?un:function(e){return dn(e)&&pn.call(e,"callee")&&!fn.call(e,"callee")},mn={exports:{}};var bn=function(){return!1};!function(e,t){var r=_,n=bn,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=(o?o.isBuffer:void 0)||n;e.exports=s}(mn,mn.exports);var yn=/^(?:0|[1-9]\d*)$/;var vn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&yn.test(e))&&e>-1&&e%1==0&&e<t};var wn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},xn=E,$n=wn,Sn=M,_n={};_n["[object Float32Array]"]=_n["[object Float64Array]"]=_n["[object Int8Array]"]=_n["[object Int16Array]"]=_n["[object Int32Array]"]=_n["[object Uint8Array]"]=_n["[object Uint8ClampedArray]"]=_n["[object Uint16Array]"]=_n["[object Uint32Array]"]=!0,_n["[object Arguments]"]=_n["[object Array]"]=_n["[object ArrayBuffer]"]=_n["[object Boolean]"]=_n["[object DataView]"]=_n["[object Date]"]=_n["[object Error]"]=_n["[object Function]"]=_n["[object Map]"]=_n["[object Number]"]=_n["[object Object]"]=_n["[object RegExp]"]=_n["[object Set]"]=_n["[object String]"]=_n["[object WeakMap]"]=!1;var Cn=function(e){return Sn(e)&&$n(e.length)&&!!_n[xn(e)]};var kn=function(e){return function(t){return e(t)}},Bn={exports:{}};!function(e,t){var r=x,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,i=a&&a.exports===n&&r.process,o=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(Bn,Bn.exports);var Fn=Cn,On=kn,jn=Bn.exports,An=jn&&jn.isTypedArray,zn=An?On(An):Fn,Pn=sn,Nn=gn,In=w,En=mn.exports,Mn=vn,Dn=zn,Hn=Object.prototype.hasOwnProperty;var Tn=function(e,t){var r=In(e),n=!r&&Nn(e),a=!r&&!n&&En(e),i=!r&&!n&&!a&&Dn(e),o=r||n||a||i,s=o?Pn(e.length,String):[],l=s.length;for(var c in e)!t&&!Hn.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Mn(c,l))||s.push(c);return s},Vn=Object.prototype;var Ln=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Vn)};var Rn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Wn=Ln,qn=Rn,Un=Object.prototype.hasOwnProperty;var Gn=K,Qn=wn;var Zn=function(e){return null!=e&&Qn(e.length)&&!Gn(e)},Kn=Tn,Xn=function(e){if(!Wn(e))return qn(e);var t=[];for(var r in Object(e))Un.call(e,r)&&"constructor"!=r&&t.push(r);return t},Jn=Zn;var Yn=function(e){return Jn(e)?Kn(e):Xn(e)},ea=en,ta=on,ra=Yn;var na=function(e){return ea(e,ra,ta)},aa=Object.prototype.hasOwnProperty;var ia=function(e,t,r,n,a,i){var o=1&r,s=na(e),l=s.length;if(l!=na(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:aa.call(t,u)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);for(var f=o;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var b=o?n(m,g,u,t,e,i):n(g,m,u,e,t,i);if(!(void 0===b?g===m||a(g,m,r,n,i):b)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return i.delete(e),i.delete(t),p},oa=fe(_,"DataView"),sa=Qe,la=fe(_,"Promise"),ca=fe(_,"Set"),ua=fe(_,"WeakMap"),da=E,ha=te,pa="[object Map]",fa="[object Promise]",ga="[object Set]",ma="[object WeakMap]",ba="[object DataView]",ya=ha(oa),va=ha(sa),wa=ha(la),xa=ha(ca),$a=ha(ua),Sa=da;(oa&&Sa(new oa(new ArrayBuffer(1)))!=ba||sa&&Sa(new sa)!=pa||la&&Sa(la.resolve())!=fa||ca&&Sa(new ca)!=ga||ua&&Sa(new ua)!=ma)&&(Sa=function(e){var t=da(e),r="[object Object]"==t?e.constructor:void 0,n=r?ha(r):"";if(n)switch(n){case ya:return ba;case va:return pa;case wa:return fa;case xa:return ga;case $a:return ma}return t});var _a=Ir,Ca=Rr,ka=Xr,Ba=ia,Fa=Sa,Oa=w,ja=mn.exports,Aa=zn,za="[object Arguments]",Pa="[object Array]",Na="[object Object]",Ia=Object.prototype.hasOwnProperty;var Ea=function(e,t,r,n,a,i){var o=Oa(e),s=Oa(t),l=o?Pa:Fa(e),c=s?Pa:Fa(t),u=(l=l==za?Na:l)==Na,d=(c=c==za?Na:c)==Na,h=l==c;if(h&&ja(e)){if(!ja(t))return!1;o=!0,u=!1}if(h&&!u)return i||(i=new _a),o||Aa(e)?Ca(e,t,r,n,a,i):ka(e,t,l,r,n,a,i);if(!(1&r)){var p=u&&Ia.call(e,"__wrapped__"),f=d&&Ia.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return i||(i=new _a),a(g,m,r,n,i)}}return!!h&&(i||(i=new _a),Ba(e,t,r,n,a,i))},Ma=M;var Da=function e(t,r,n,a,i){return t===r||(null==t||null==r||!Ma(t)&&!Ma(r)?t!=t&&r!=r:Ea(t,r,n,a,e,i))},Ha=Ir,Ta=Da;var Va=U;var La=function(e){return e==e&&!Va(e)},Ra=La,Wa=Yn;var qa=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Ua=function(e,t,r,n){var a=r.length,i=a,o=!n;if(null==e)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var l=(s=r[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Ha;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Ta(u,c,3,n,d):h))return!1}}return!0},Ga=function(e){for(var t=Wa(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,Ra(a)]}return t},Qa=qa;var Za=Ft,Ka=gn,Xa=w,Ja=vn,Ya=wn,ei=jt;var ti=function(e,t){return null!=e&&t in Object(e)},ri=function(e,t,r){for(var n=-1,a=(t=Za(t,e)).length,i=!1;++n<a;){var o=ei(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Ya(a)&&Ja(o,a)&&(Xa(e)||Ka(e))};var ni=Da,ai=It,ii=function(e,t){return null!=e&&ri(e,t,ti)},oi=q,si=La,li=qa,ci=jt;var ui=Pt;var di=function(e){return function(t){return null==t?void 0:t[e]}},hi=function(e){return function(t){return ui(t,e)}},pi=q,fi=jt;var gi=function(e){var t=Ga(e);return 1==t.length&&t[0][2]?Qa(t[0][0],t[0][1]):function(r){return r===e||Ua(r,e,t)}},mi=function(e,t){return oi(e)&&si(t)?li(ci(e),t):function(r){var n=ai(r,e);return void 0===n&&n===t?ii(r,e):ni(t,n,3)}},bi=function(e){return e},yi=w,vi=function(e){return pi(e)?di(fi(e)):hi(e)};var wi=function(e){return"function"==typeof e?e:null==e?bi:"object"==typeof e?yi(e)?mi(e[0],e[1]):gi(e):vi(e)},xi=/\s/;var $i=function(e){for(var t=e.length;t--&&xi.test(e.charAt(t)););return t},Si=/^\s+/;var _i=function(e){return e?e.slice(0,$i(e)+1).replace(Si,""):e},Ci=U,ki=T,Bi=/^[-+]0x[0-9a-f]+$/i,Fi=/^0b[01]+$/i,Oi=/^0o[0-7]+$/i,ji=parseInt;var Ai=function(e){if("number"==typeof e)return e;if(ki(e))return NaN;if(Ci(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ci(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=_i(e);var r=Fi.test(e);return r||Oi.test(e)?ji(e.slice(2),r?2:8):Bi.test(e)?NaN:+e},zi=1/0;var Pi=function(e){return e?(e=Ai(e))===zi||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Ni=Sr,Ii=wi,Ei=function(e){var t=Pi(e),r=t%1;return t==t?r?t-r:t:0},Mi=Math.max;var Di=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:Ei(r);return a<0&&(a=Mi(n+a,0)),Ni(e,Ii(t),a)};let Hi=to();const Ti=e=>Xi(e,Hi);let Vi=to();Ti.write=e=>Xi(e,Vi);let Li=to();Ti.onStart=e=>Xi(e,Li);let Ri=to();Ti.onFrame=e=>Xi(e,Ri);let Wi=to();Ti.onFinish=e=>Xi(e,Wi);let qi=[];Ti.setTimeout=(e,t)=>{let r=Ti.now()+t,n=()=>{let e=qi.findIndex((e=>e.cancel==n));~e&&qi.splice(e,1),Zi-=~e?1:0},a={time:r,handler:e,cancel:n};return qi.splice(Ui(r),0,a),Zi+=1,Ji(),a};let Ui=e=>~(~qi.findIndex((t=>t.time>e))||~qi.length);Ti.cancel=e=>{Li.delete(e),Ri.delete(e),Wi.delete(e),Hi.delete(e),Vi.delete(e)},Ti.sync=e=>{Ki=!0,Ti.batchedUpdates(e),Ki=!1},Ti.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,Ti.onStart(r)}return n.handler=e,n.cancel=()=>{Li.delete(r),t=null},n};let Gi="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Ti.use=e=>Gi=e,Ti.now="undefined"!=typeof performance?()=>performance.now():Date.now,Ti.batchedUpdates=e=>e(),Ti.catch=console.error,Ti.frameLoop="always",Ti.advance=()=>{"demand"!==Ti.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):eo()};let Qi=-1,Zi=0,Ki=!1;function Xi(e,t){Ki?(t.delete(e),e(0)):(t.add(e),Ji())}function Ji(){Qi<0&&(Qi=0,"demand"!==Ti.frameLoop&&Gi(Yi))}function Yi(){~Qi&&(Gi(Yi),Ti.batchedUpdates(eo))}function eo(){let e=Qi;Qi=Ti.now();let t=Ui(Qi);t&&(ro(qi.splice(0,t),(e=>e.handler())),Zi-=t),Zi?(Li.flush(),Hi.flush(e?Math.min(64,Qi-e):16.667),Ri.flush(),Vi.flush(),Wi.flush()):Qi=-1}function to(){let e=new Set,t=e;return{add(r){Zi+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Zi-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Zi-=t.size,ro(t,(t=>t(r)&&e.add(t))),Zi+=e.size,t=e)}}}function ro(e,t){e.forEach((e=>{try{t(e)}catch(e){Ti.catch(e)}}))}function no(){}const ao={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 io(e,t){if(ao.arr(e)){if(!ao.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const oo=(e,t)=>e.forEach(t);function so(e,t,r){if(ao.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const lo=e=>ao.und(e)?[]:ao.arr(e)?e:[e];function co(e,t){if(e.size){const r=Array.from(e);e.clear(),oo(r,t)}}const uo=(e,...t)=>co(e,(e=>e(...t))),ho=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let po,fo,go=null,mo=!1,bo=no;var yo=Object.freeze({__proto__:null,get createStringInterpolator(){return po},get to(){return fo},get colors(){return go},get skipAnimation(){return mo},get willAdvance(){return bo},assign:e=>{e.to&&(fo=e.to),e.now&&(Ti.now=e.now),void 0!==e.colors&&(go=e.colors),null!=e.skipAnimation&&(mo=e.skipAnimation),e.createStringInterpolator&&(po=e.createStringInterpolator),e.requestAnimationFrame&&Ti.use(e.requestAnimationFrame),e.batchedUpdates&&(Ti.batchedUpdates=e.batchedUpdates),e.willAdvance&&(bo=e.willAdvance),e.frameLoop&&(Ti.frameLoop=e.frameLoop)}});const vo=new Set;let wo=[],xo=[],$o=0;const So={get idle(){return!vo.size&&!wo.length},start(e){$o>e.priority?(vo.add(e),Ti.onStart(_o)):(Co(e),Ti(Bo))},advance:Bo,sort(e){if($o)Ti.onFrame((()=>So.sort(e)));else{const t=wo.indexOf(e);~t&&(wo.splice(t,1),ko(e))}},clear(){wo=[],vo.clear()}};function _o(){vo.forEach(Co),vo.clear(),Ti(Bo)}function Co(e){wo.includes(e)||ko(e)}function ko(e){wo.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(wo,(t=>t.priority>e.priority)),0,e)}function Bo(e){const t=xo;for(let r=0;r<wo.length;r++){const n=wo[r];$o=n.priority,n.idle||(bo(n),n.advance(e),n.idle||t.push(n))}return $o=0,xo=wo,xo.length=0,wo=t,wo.length>0}const Fo="[-+]?\\d*\\.?\\d+",Oo=Fo+"%";function jo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Ao=new RegExp("rgb"+jo(Fo,Fo,Fo)),zo=new RegExp("rgba"+jo(Fo,Fo,Fo,Fo)),Po=new RegExp("hsl"+jo(Fo,Oo,Oo)),No=new RegExp("hsla"+jo(Fo,Oo,Oo,Fo)),Io=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Eo=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Mo=/^#([0-9a-fA-F]{6})$/,Do=/^#([0-9a-fA-F]{8})$/;function Ho(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function To(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n,i=Ho(a,n,e+1/3),o=Ho(a,n,e),s=Ho(a,n,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function Vo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Lo(e){return(parseFloat(e)%360+360)%360/360}function Ro(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Wo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function qo(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Mo.exec(e))?parseInt(t[1]+"ff",16)>>>0:go&&void 0!==go[e]?go[e]:(t=Ao.exec(e))?(Vo(t[1])<<24|Vo(t[2])<<16|Vo(t[3])<<8|255)>>>0:(t=zo.exec(e))?(Vo(t[1])<<24|Vo(t[2])<<16|Vo(t[3])<<8|Ro(t[4]))>>>0:(t=Io.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Do.exec(e))?parseInt(t[1],16)>>>0:(t=Eo.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Po.exec(e))?(255|To(Lo(t[1]),Wo(t[2]),Wo(t[3])))>>>0:(t=No.exec(e))?(To(Lo(t[1]),Wo(t[2]),Wo(t[3]))|Ro(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 Uo=(e,t,r)=>{if(ao.fun(e))return e;if(ao.arr(e))return Uo({range:e,output:t,extrapolate:r});if(ao.str(e.output[0]))return po(e);const n=e,a=n.output,i=n.range||[0,1],o=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,i);return function(e,t,r,n,a,i,o,s,l){let c=l?l(e):e;if(c<t){if("identity"===o)return c;"clamp"===o&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===a)return n;if(t===r)return e<=t?n:a;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=i(c),n===-1/0?c=-c:a===1/0?c+=n:c=c*(a-n)+n;return c}(e,i[t],i[t+1],a[t],a[t+1],l,o,s,n.map)}};const Go=1.70158,Qo=1.525*Go,Zo=Go+1,Ko=2*Math.PI/3,Xo=2*Math.PI/4.5,Jo=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},Yo={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=>Zo*e*e*e-Go*e*e,easeOutBack:e=>1+Zo*Math.pow(e-1,3)+Go*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Qo)/2:(Math.pow(2*e-2,2)*((Qo+1)*(2*e-2)+Qo)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ko),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ko)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Xo)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Xo)/2+1,easeInBounce:e=>1-Jo(1-e),easeOutBounce:Jo,easeInOutBounce:e=>e<.5?(1-Jo(1-2*e))/2:(1+Jo(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,a="end"===t?Math.floor(n):Math.ceil(n);return i=0,o=1,s=a/e,Math.min(Math.max(s,i),o);var i,o,s}};function es(){return es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},es.apply(this,arguments)}const ts=Symbol.for("FluidValue.get"),rs=Symbol.for("FluidValue.observers"),ns=e=>Boolean(e&&e[ts]),as=e=>e&&e[ts]?e[ts]():e,is=e=>e[rs]||null;function os(e,t){let r=e[rs];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class ss{constructor(e){if(this[ts]=void 0,this[rs]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ls(this,e)}}const ls=(e,t)=>ds(e,ts,t);function cs(e,t){if(e[ts]){let r=e[rs];r||ds(e,rs,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function us(e,t){let r=e[rs];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[rs]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const ds=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),hs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ps=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,fs=new RegExp(`(${hs.source})(%|[a-z]+)`,"i"),gs=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,ms=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,bs=e=>{const[t,r]=ys(e);if(!t||ho())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&ms.test(r)?bs(r):r||e},ys=e=>{const t=ms.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let vs;const ws=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,xs=e=>{vs||(vs=go?new RegExp(`(${Object.keys(go).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>as(e).replace(ms,bs).replace(ps,qo).replace(vs,qo))),r=t.map((e=>e.match(hs).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Uo(es({},e,{output:t}))));return e=>{var r;const a=!fs.test(t[0])&&(null==(r=t.find((e=>fs.test(e))))?void 0:r.replace(hs,""));let i=0;return t[0].replace(hs,(()=>`${n[i++](e)}${a||""}`)).replace(gs,ws)}},$s="react-spring: ",Ss=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${$s}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},_s=Ss(console.warn);const Cs=Ss(console.warn);function ks(e){return ao.str(e)&&("#"==e[0]||/\d/.test(e)||!ho()&&ms.test(e)||e in(go||{}))}const Bs=ho()?l:c,Fs=()=>{const e=o(!1);return Bs((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Os(){const e=u()[1],t=Fs();return()=>{t.current&&e(Math.random())}}const js=e=>l(e,As),As=[];function zs(e){const t=o();return l((()=>{t.current=e})),t.current}const Ps=Symbol.for("Animated:node"),Ns=e=>e&&e[Ps],Is=(e,t)=>{return r=e,n=Ps,a=t,Object.defineProperty(r,n,{value:a,writable:!0,configurable:!0});var r,n,a},Es=e=>e&&e[Ps]&&e[Ps].getPayload();class Ms{constructor(){this.payload=void 0,Is(this,this)}getPayload(){return this.payload||[]}}class Ds extends Ms{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,ao.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Ds(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return ao.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,ao.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class Hs extends Ds{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Uo({output:[e,e]})}static create(e){return new Hs(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(ao.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=Uo({output:[this.getValue(),e]})),this._value=0,super.reset()}}const Ts={dependencies:null};class Vs extends Ms{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return so(this.source,((r,n)=>{var a;(a=r)&&a[Ps]===a?t[n]=r.getValue(e):ns(r)?t[n]=as(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&oo(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return so(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){Ts.dependencies&&ns(e)&&Ts.dependencies.add(e);const t=Es(e);t&&oo(t,(e=>this.add(e)))}}class Ls extends Vs{constructor(e){super(e)}static create(e){return new Ls(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(Rs)),!0)}}function Rs(e){return(ks(e)?Hs:Ds).create(e)}function Ws(e){const t=Ns(e);return t?t.constructor:ao.arr(e)?Ls:ks(e)?Hs:Ds}function qs(){return qs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},qs.apply(this,arguments)}const Us=(e,t)=>{const r=!ao.fun(e)||e.prototype&&e.prototype.isReactComponent;return d(((n,i)=>{const s=o(null),c=r&&h((e=>{s.current=function(e,t){e&&(ao.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,d]=function(e,t){const r=new Set;Ts.dependencies=r,e.style&&(e=qs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Vs(e),Ts.dependencies=null,[e,r]}(n,t),p=Os(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&p()},g=new Gs(f,d),m=o();Bs((()=>(m.current=g,oo(d,(e=>cs(e,g))),()=>{m.current&&(oo(m.current.deps,(e=>us(e,m.current))),Ti.cancel(m.current.update))}))),l(f,[]),js((()=>()=>{const e=m.current;oo(e.deps,(t=>us(t,e)))}));const b=t.getComponentProps(u.getValue());return a.createElement(e,qs({},b,{ref:c}))}))};class Gs{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Ti.write(this.update)}}const Qs=Symbol.for("AnimatedComponent"),Zs=e=>ao.str(e)?e:e&&ao.str(e.displayName)?e.displayName:ao.fun(e)&&e.name||null;function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(this,arguments)}function Xs(e,...t){return ao.fun(e)?e(...t):e}const Js=(e,t)=>!0===e||!!(t&&e&&(ao.fun(e)?e(t):lo(e).includes(t))),Ys=(e,t)=>ao.obj(e)?t&&e[t]:e,el=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,tl=e=>e,rl=(e,t=tl)=>{let r=nl;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const a of r){const r=t(e[a],a);ao.und(r)||(n[a]=r)}return n},nl=["config","onProps","onStart","onChange","onPause","onResume","onRest"],al={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 il(e){const t=function(e){const t={};let r=0;if(so(e,((e,n)=>{al[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return so(e,((e,n)=>n in t||(r[n]=e))),r}return Ks({},e)}function ol(e){return e=as(e),ao.arr(e)?e.map(ol):ks(e)?yo.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function sl(e){return ao.fun(e)||ao.arr(e)&&ao.obj(e[0])}const ll=Ks({},{tension:170,friction:26},{mass:1,damping:1,easing:Yo.linear,clamp:!1});class cl{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,ll)}}function ul(e,t){if(ao.und(t.decay)){const r=!ao.und(t.tension)||!ao.und(t.friction);!r&&ao.und(t.frequency)&&ao.und(t.damping)&&ao.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const dl=[];class hl{constructor(){this.changed=!1,this.values=dl,this.toValues=null,this.fromValues=dl,this.to=void 0,this.from=void 0,this.config=new cl,this.immediate=!1}}function pl(e,{key:t,props:r,defaultProps:n,state:a,actions:i}){return new Promise(((o,s)=>{var l;let c,u,d=Js(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{ao.und(r.pause)||(a.paused=Js(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=a.paused||Js(e,t)),c=Xs(r.delay||0,t),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){a.resumeQueue.add(p),a.timeouts.delete(u),u.cancel(),c=u.time-Ti.now()}function p(){c>0&&!yo.skipAnimation?(a.delayed=!0,u=Ti.setTimeout(f,c),a.pauseQueue.add(h),a.timeouts.add(u)):f()}function f(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(h),a.timeouts.delete(u),e<=(a.cancelId||0)&&(d=!0);try{i.start(Ks({},r,{callId:e,cancel:d}),o)}catch(e){s(e)}}}))}const fl=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?bl(e.get()):t.every((e=>e.noop))?gl(e.get()):ml(e.get(),t.every((e=>e.finished))),gl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),ml=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),bl=e=>({value:e,cancelled:!0,finished:!1});function yl(e,t,r,n){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:l}=r;return i||e!==s||t.reset?r.promise=(async()=>{r.asyncId=a,r.asyncTo=e;const c=rl(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=a<=(r.cancelId||0)&&bl(n)||a!==r.asyncId&&ml(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new wl,o=new xl;return(async()=>{if(yo.skipAnimation)throw vl(r),o.result=ml(n,!1),d(o),o;p(i);const s=ao.obj(e)?Ks({},e):Ks({},t,{to:e});s.parentId=a,so(c,((e,t)=>{ao.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(i),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(yo.skipAnimation)return vl(r),ml(n,!1);try{let t;t=ao.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),h]),g=ml(n.get(),!0,!1)}catch(e){if(e instanceof wl)g=e.result;else{if(!(e instanceof xl))throw e;g=e.result}}finally{a==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?l:void 0)}return ao.fun(o)&&Ti.batchedUpdates((()=>{o(g,n,n.item)})),g})():l}function vl(e,t){co(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class wl 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 xl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const $l=e=>e instanceof _l;let Sl=1;class _l extends ss{constructor(...e){super(...e),this.id=Sl++,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=Ns(this);return e&&e.getValue()}to(...e){return yo.to(this,e)}interpolate(...e){return _s(`${$s}The "interpolate" function is deprecated in v9 (use "to" instead)`),yo.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){os(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||So.sort(this),os(this,{type:"priority",parent:this,priority:e})}}const Cl=Symbol.for("SpringPhase"),kl=e=>(1&e[Cl])>0,Bl=e=>(2&e[Cl])>0,Fl=e=>(4&e[Cl])>0,Ol=(e,t)=>t?e[Cl]|=3:e[Cl]&=-3,jl=(e,t)=>t?e[Cl]|=4:e[Cl]&=-5;class Al extends _l{constructor(e,t){if(super(),this.key=void 0,this.animation=new hl,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,!ao.und(e)||!ao.und(t)){const r=ao.obj(e)?Ks({},e):Ks({},t,{from:e});ao.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(Bl(this)||this._state.asyncTo)||Fl(this)}get goal(){return as(this.animation.to)}get velocity(){const e=Ns(this);return e instanceof Ds?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return kl(this)}get isAnimating(){return Bl(this)}get isPaused(){return Fl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:a,toValues:i}=n;const o=Es(n.to);!o&&ns(n.to)&&(i=lo(as(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Hs?1:o?o[l].lastPosition:i[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,a.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],i=null!=s.v0?s.v0:s.v0=ao.arr(a.velocity)?a.velocity[l]:a.velocity;let o;const h=a.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(ao.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);d=r+i/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,o=i*n}else{o=null==s.lastVelocity?i:s.lastVelocity;const t=a.restVelocity||h/10,n=a.clamp?0:a.bounce,l=!ao.und(n),p=r==c?s.v0>0:r<c;let f,g=!1;const m=1,b=Math.ceil(e/m);for(let e=0;e<b&&(f=Math.abs(o)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(o=-o*n,d=c));o+=(1e-6*-a.tension*(d-c)+.001*-a.friction*o)/a.mass*m,d+=o*m}}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(a.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+a.easing(n)*(c-r),o=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}o&&!o[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(r=!0)}));const s=Ns(this),l=s.getValue();if(t){const e=as(n.to);l===e&&!r||a.decay?r&&a.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return Ti.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Bl(this)){const{to:e,config:t}=this.animation;Ti.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 r;return ao.und(e)?(r=this.queue||[],this.queue=[]):r=[ao.obj(e)?e:Ks({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>fl(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),vl(this._state,e&&this._lastCallId),Ti.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:r,from:n}=e;r=ao.obj(r)?r[t]:r,(null==r||sl(r))&&(r=void 0),n=ao.obj(n)?n[t]:n,null==n&&(n=void 0);const a={to:r,from:n};return kl(this)||(e.reverse&&([r,n]=[n,r]),n=as(n),ao.und(n)?Ns(this)||this._set(r):this._set(n)),a}_update(e,t){let r=Ks({},e);const{key:n,defaultProps:a}=this;r.default&&Object.assign(a,rl(r,((e,t)=>/^on/.test(t)?Ys(e,n):e))),Dl(this,r,"onProps"),Hl(this,"onProps",r,this);const i=this._prepareNode(r);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 o=this._state;return pl(++this._lastCallId,{key:n,props:r,defaultProps:a,state:o,actions:{pause:()=>{Fl(this)||(jl(this,!0),uo(o.pauseQueue),Hl(this,"onPause",ml(this,zl(this,this.animation.to)),this))},resume:()=>{Fl(this)&&(jl(this,!1),Bl(this)&&this._resume(),uo(o.resumeQueue),Hl(this,"onResume",ml(this,zl(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=Pl(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(bl(this));const n=!ao.und(e.to),a=!ao.und(e.from);if(n||a){if(!(t.callId>this._lastToId))return r(bl(this));this._lastToId=t.callId}const{key:i,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||n||t.default&&!ao.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!io(d,c);h&&(s.from=d),d=as(d);const p=!io(u,l);p&&this._focus(u);const f=sl(t.to),{config:g}=s,{decay:m,velocity:b}=g;(n||a)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(ul(r=Ks({},r),t),t=Ks({},r,t)),ul(e,t),Object.assign(e,t);for(const t in ll)null==e[t]&&(e[t]=ll[t]);let{mass:n,frequency:a,damping:i}=e;ao.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*n,e.friction=4*Math.PI*i*n/a)}(g,Xs(t.config,i),t.config!==o.config?Xs(o.config,i):void 0);let y=Ns(this);if(!y||ao.und(u))return r(ml(this,!0));const v=ao.und(t.reset)?a&&!t.default:!ao.und(d)&&Js(t.reset,i),w=v?d:this.get(),x=ol(u),$=ao.num(x)||ao.arr(x)||ks(x),S=!f&&(!$||Js(o.immediate||t.immediate,i));if(p){const e=Ws(u);if(e!==y.constructor){if(!S)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(x)}}const _=y.constructor;let C=ns(u),k=!1;if(!C){const e=v||!kl(this)&&h;(p||e)&&(k=io(ol(w),x),C=!k),(io(s.immediate,S)||S)&&io(g.decay,m)&&io(g.velocity,b)||(C=!0)}if(k&&Bl(this)&&(s.changed&&!v?C=!0:C||this._stop(l)),!f&&((C||ns(l))&&(s.values=y.getPayload(),s.toValues=ns(u)?null:_==Hs?[1]:lo(x)),s.immediate!=S&&(s.immediate=S,S||v||this._set(l)),C)){const{onRest:e}=s;oo(Ml,(e=>Dl(this,t,e)));const n=ml(this,zl(this,l));uo(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&Ti.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?Xs(o.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(yl(t.to,t,this._state,this)):C?this._start():Bl(this)&&!p?this._pendingCalls.add(r):r(gl(w))}_focus(e){const t=this.animation;e!==t.to&&(is(this)&&this._detach(),t.to=e,is(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ns(t)&&(cs(t,this),$l(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ns(e)&&us(e,this)}_set(e,t=!0){const r=as(e);if(!ao.und(r)){const e=Ns(this);if(!e||!io(r,e.getValue())){const n=Ws(r);e&&e.constructor==n?e.setValue(r):Is(this,n.create(r)),e&&Ti.batchedUpdates((()=>{this._onChange(r,t)}))}}return Ns(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Hl(this,"onStart",ml(this,zl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Xs(this.animation.onChange,e,this)),Xs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Ns(this).reset(as(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Bl(this)||(Ol(this,!0),Fl(this)||this._resume())}_resume(){yo.skipAnimation?this.finish():So.start(this)}_stop(e,t){if(Bl(this)){Ol(this,!1);const r=this.animation;oo(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),os(this,{type:"idle",parent:this});const n=t?bl(this.get()):ml(this.get(),zl(this,null!=e?e:r.to));uo(this._pendingCalls,n),r.changed&&(r.changed=!1,Hl(this,"onRest",n,this))}}}function zl(e,t){const r=ol(t);return io(ol(e.get()),r)}function Pl(e,t=e.loop,r=e.to){let n=Xs(t);if(n){const a=!0!==n&&il(n),i=(a||e).reverse,o=!a||a.reset;return Nl(Ks({},e,{loop:t,default:!1,pause:void 0,to:!i||sl(r)?r:void 0,from:o?e.from:void 0,reset:o},a))}}function Nl(e){const{to:t,from:r}=e=il(e),n=new Set;return ao.obj(t)&&El(t,n),ao.obj(r)&&El(r,n),e.keys=n.size?Array.from(n):null,e}function Il(e){const t=Nl(e);return ao.und(t.default)&&(t.default=rl(t)),t}function El(e,t){so(e,((e,r)=>null!=e&&t.add(r)))}const Ml=["onStart","onRest","onChange","onPause","onResume"];function Dl(e,t,r){e.animation[r]=t[r]!==el(t,r)?Ys(t[r],e.key):void 0}function Hl(e,t,...r){var n,a,i,o;null==(n=(a=e.animation)[t])||n.call(a,...r),null==(i=(o=e.defaultProps)[t])||i.call(o,...r)}const Tl=["onStart","onChange","onRest"];let Vl=1;class Ll{constructor(e,t){this.id=Vl++,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(Ks({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,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];ao.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Nl(e)),this}start(e){let{queue:t}=this;return e?t=lo(e).map(Nl):this.queue=[],this._flush?this._flush(this,t):(Zl(this,t),Rl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;oo(lo(t),(t=>r[t].stop(!!e)))}else vl(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(ao.und(e))this.start({pause:!0});else{const t=this.springs;oo(lo(e),(e=>t[e].pause()))}return this}resume(e){if(ao.und(e))this.start({pause:!1});else{const t=this.springs;oo(lo(e),(e=>t[e].resume()))}return this}each(e){so(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,a=this._changed.size>0;(n&&!this._started||a&&!this._started)&&(this._started=!0,co(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!n&&this._started,o=a||i&&r.size?this.get():null;a&&t.size&&co(t,(([e,t])=>{t.value=o,e(t,this,this._item)})),i&&(this._started=!1,co(r,(([e,t])=>{t.value=o,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)}Ti.onFrame(this._onFrame)}}function Rl(e,t){return Promise.all(t.map((t=>Wl(e,t)))).then((t=>fl(e,t)))}async function Wl(e,t,r){const{keys:n,to:a,from:i,loop:o,onRest:s,onResolve:l}=t,c=ao.obj(t.default)&&t.default;o&&(t.loop=!1),!1===a&&(t.to=null),!1===i&&(t.from=null);const u=ao.arr(a)||ao.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):oo(Tl,(r=>{const n=t[r];if(ao.fun(n)){const a=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,uo(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),p=!0===t.cancel||!0===el(t,"cancel");(u||p&&d.asyncId)&&h.push(pl(++e._lastAsyncId,{props:t,state:d,actions:{pause:no,resume:no,start(t,r){p?(vl(d,e._lastAsyncId),r(bl(e))):(t.onRest=s,r(yl(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=fl(e,await Promise.all(h));if(o&&f.finished&&(!r||!f.noop)){const r=Pl(t,o,a);if(r)return Zl(e,[r]),Wl(e,r,!0)}return l&&Ti.batchedUpdates((()=>l(f,e,e.item))),f}function ql(e,t){const r=Ks({},e.springs);return t&&oo(lo(t),(e=>{ao.und(e.keys)&&(e=Nl(e)),ao.obj(e.to)||(e=Ks({},e,{to:void 0})),Ql(r,e,(e=>Gl(e)))})),Ul(e,r),r}function Ul(e,t){so(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,cs(t,e))}))}function Gl(e,t){const r=new Al;return r.key=e,t&&cs(r,t),r}function Ql(e,t,r){t.keys&&oo(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function Zl(e,t){oo(t,(t=>{Ql(e.springs,t,(t=>Gl(t,e)))}))}const Kl=["children"],Xl=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,Kl);const n=p(Jl),i=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=u((()=>({inputs:t,result:e()}))),n=o(),a=n.current;let i=a;i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=r;return l((()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)}),[i]),i.result}((()=>({pause:i,immediate:s})),[i,s]);const{Provider:c}=Jl;return a.createElement(c,{value:r},t)},Jl=(Yl=Xl,ec={},Object.assign(Yl,a.createContext(ec)),Yl.Provider._context=Yl,Yl.Consumer._context=Yl,Yl);var Yl,ec;Xl.Provider=Jl.Provider,Xl.Consumer=Jl.Consumer;const tc=()=>{const e=[],t=function(t){Cs(`${$s}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 n=[];return oo(e,((e,a)=>{if(ao.und(t))n.push(e.start());else{const i=r(t,e,a);i&&n.push(e.start(i))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return oo(e,(e=>e.pause(...arguments))),this},t.resume=function(){return oo(e,(e=>e.resume(...arguments))),this},t.set=function(t){oo(e,(e=>e.set(t)))},t.start=function(t){const r=[];return oo(e,((e,n)=>{if(ao.und(t))r.push(e.start());else{const a=this._getProps(t,e,n);a&&r.push(e.start(a))}})),r},t.stop=function(){return oo(e,(e=>e.stop(...arguments))),this},t.update=function(t){return oo(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return ao.fun(e)?e(r,t):e};return t._getProps=r,t};function rc(e,t){const r=ao.fun(e),[[n],a]=function(e,t,r){const n=ao.fun(t)&&t;n&&!r&&(r=[]);const a=f((()=>n||3==arguments.length?tc():void 0),[]),i=o(0),s=Os(),l=f((()=>({ctrls:[],queue:[],flush(e,t){const r=ql(e,t);return i.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Rl(e,t):new Promise((n=>{Ul(e,r),l.queue.push((()=>{n(Rl(e,t))})),s()}))}})),[]),c=o([...l.ctrls]),u=[],d=zs(e)||0;function h(e,r){for(let a=e;a<r;a++){const e=c.current[a]||(c.current[a]=new Ll(null,l.flush)),r=n?n(a,e):t[a];r&&(u[a]=Il(r))}}f((()=>{oo(c.current.slice(e,d),(e=>{!function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}(e,a),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),f((()=>{h(0,Math.min(d,e))}),r);const g=c.current.map(((e,t)=>ql(e,u[t]))),m=p(Xl),b=zs(m),y=m!==b&&function(e){for(const t in e)return!0;return!1}(m);Bs((()=>{i.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],oo(e,(e=>e()))),oo(c.current,((e,t)=>{null==a||a.add(e),y&&e.start({default:m});const r=u[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),js((()=>()=>{oo(l.ctrls,(e=>e.stop(!0)))}));const v=g.map((e=>Ks({},e)));return a?[v,a]:v}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,a]:n}let nc;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(nc||(nc={}));class ac extends _l{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Uo(...t);const r=this._get(),n=Ws(r);Is(this,n.create(r))}advance(e){const t=this._get();io(t,this.get())||(Ns(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&oc(this._active)&&sc(this)}_get(){const e=ao.arr(this.source)?this.source.map(as):lo(as(this.source));return this.calc(...e)}_start(){this.idle&&!oc(this._active)&&(this.idle=!1,oo(Es(this),(e=>{e.done=!1})),yo.skipAnimation?(Ti.batchedUpdates((()=>this.advance())),sc(this)):So.start(this))}_attach(){let e=1;oo(lo(this.source),(t=>{ns(t)&&cs(t,this),$l(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){oo(lo(this.source),(e=>{ns(e)&&us(e,this)})),this._active.clear(),sc(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=lo(this.source).reduce(((e,t)=>Math.max(e,($l(t)?t.priority:0)+1)),0))}}function ic(e){return!1!==e.idle}function oc(e){return!e.size||Array.from(e).every(ic)}function sc(e){e.idle||(e.idle=!0,oo(Es(e),(e=>{e.done=!0})),os(e,{type:"idle",parent:e}))}function lc(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}yo.assign({createStringInterpolator:xs,to:(e,t)=>new ac(e,t)});const cc=["style","children","scrollTop","scrollLeft","viewBox"],uc=/^--/;function dc(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||uc.test(e)||pc.hasOwnProperty(e)&&pc[e]?(""+t).trim():t+"px"}const hc={};let pc={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 fc=["Webkit","Ms","Moz","O"];pc=Object.keys(pc).reduce(((e,t)=>(fc.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),pc);const gc=["x","y","z"],mc=/^(matrix|translate|scale|rotate|skew)/,bc=/^(translate)/,yc=/^(rotate|skew)/,vc=(e,t)=>ao.num(e)&&0!==e?e+t:e,wc=(e,t)=>ao.arr(e)?e.every((e=>wc(e,t))):ao.num(e)?e===t:parseFloat(e)===t;class xc extends Vs{constructor(e){let{x:t,y:r,z:n}=e,a=lc(e,gc);const i=[],o=[];(t||r||n)&&(i.push([t||0,r||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>vc(e,"px"))).join(",")})`,wc(e,0)]))),so(a,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(mc.test(t)){if(delete a[t],ao.und(e))return;const r=bc.test(t)?"px":yc.test(t)?"deg":"";i.push(lo(e)),o.push("rotate3d"===t?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${vc(a,r)})`,wc(a,0)]:e=>[`${t}(${e.map((e=>vc(e,r))).join(",")})`,wc(e,t.startsWith("scale")?1:0)])}})),i.length&&(a.transform=new $c(i,o)),super(a)}}class $c extends ss{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 oo(this.inputs,((r,n)=>{const a=as(r[0]),[i,o]=this.transforms[n](ao.arr(a)?a:r.map(as));e+=" "+i,t=t&&o})),t?"none":e}observerAdded(e){1==e&&oo(this.inputs,(e=>oo(e,(e=>ns(e)&&cs(e,this)))))}observerRemoved(e){0==e&&oo(this.inputs,(e=>oo(e,(e=>ns(e)&&us(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),os(this,e)}}const Sc=["scrollTop","scrollLeft"];yo.assign({batchedUpdates:y,createStringInterpolator:xs,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 _c=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new Vs(e)),getComponentProps:n=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=e=>{const t=Zs(e)||"Anonymous";return(e=ao.str(e)?i[e]||(i[e]=Us(e,a)):e[Qs]||(e[Qs]=Us(e,a))).displayName=`Animated(${t})`,e};return so(e,((t,r)=>{ao.arr(e)&&(r=Zs(t)),i[r]=i(t)})),{animated:i}})(["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 r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:a,children:i,scrollTop:o,scrollLeft:s,viewBox:l}=n,c=lc(n,cc),u=Object.values(c),d=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:hc[t]||(hc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in a)if(a.hasOwnProperty(t)){const r=dc(t,a[t]);uc.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,u[r])})),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new xc(e),getComponentProps:e=>lc(e,Sc)}),Cc=_c.animated,kc={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Bc=e=>Object.keys(kc).reduce(((t,r)=>{const n=kc[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),Fc=Bc("max-width"),Oc=(Bc("min-width"),g.div`
|
|
311
|
+
`;var Sr=Ge;var _r=Ge,Cr=Qe,kr=ut;var Br=Ge,Or=function(){this.__data__=new Sr,this.size=0},Fr=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},jr=function(e){return this.__data__.get(e)},Ar=function(e){return this.__data__.has(e)},zr=function(e,t){var r=this.__data__;if(r instanceof _r){var n=r.__data__;if(!Cr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new kr(n)}return r.set(e,t),this.size=r.size,this};function Pr(e){var t=this.__data__=new Br(e);this.size=t.size}Pr.prototype.clear=Or,Pr.prototype.delete=Fr,Pr.prototype.get=jr,Pr.prototype.has=Ar,Pr.prototype.set=zr;var Nr=Pr;var Ir=ut,Er=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mr=function(e){return this.__data__.has(e)};function Dr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ir;++t<r;)this.add(e[t])}Dr.prototype.add=Dr.prototype.push=Er,Dr.prototype.has=Mr;var Hr=Dr,Tr=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1},Vr=function(e,t){return e.has(t)};var Lr=function(e,t,r,n,a,i){var o=1&r,s=e.length,l=t.length;if(s!=l&&!(o&&l>s))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Hr:void 0;for(i.set(e,t),i.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=o?n(g,f,d,t,e,i):n(f,g,d,e,t,i);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Tr(t,(function(e,t){if(!Vr(p,t)&&(f===e||a(f,e,r,n,i)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!a(f,g,r,n,i)){h=!1;break}}return i.delete(e),i.delete(t),h};var Rr=_.Uint8Array,Wr=Pe,qr=Lr,Ur=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Gr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Qr=C?C.prototype:void 0,Zr=Qr?Qr.valueOf:void 0;var Kr=function(e,t,r,n,a,i,o){switch(r){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||!i(new Rr(e),new Rr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Wr(+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=Ur;case"[object Set]":var l=1&n;if(s||(s=Gr),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;n|=2,o.set(e,t);var u=qr(s(e),s(t),n,a,i,o);return o.delete(e),u;case"[object Symbol]":if(Zr)return Zr.call(e)==Zr.call(t)}return!1};var Xr=function(e,t){for(var r=-1,n=t.length,a=e.length;++r<n;)e[a+r]=t[r];return e},Jr=w;var Yr=function(e,t,r){var n=t(e);return Jr(e)?n:Xr(n,r(e))};var en=function(e,t){for(var r=-1,n=null==e?0:e.length,a=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[a++]=o)}return i},tn=function(){return[]},rn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols,an=nn?function(e){return null==e?[]:(e=Object(e),en(nn(e),(function(t){return rn.call(e,t)})))}:tn;var on=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},sn=E,ln=M;var cn=function(e){return ln(e)&&"[object Arguments]"==sn(e)},un=M,dn=Object.prototype,hn=dn.hasOwnProperty,pn=dn.propertyIsEnumerable,fn=cn(function(){return arguments}())?cn:function(e){return un(e)&&hn.call(e,"callee")&&!pn.call(e,"callee")},gn={exports:{}};var mn=function(){return!1};!function(e,t){var r=_,n=mn,a=t&&!t.nodeType&&t,i=a&&e&&!e.nodeType&&e,o=i&&i.exports===a?r.Buffer:void 0,s=(o?o.isBuffer:void 0)||n;e.exports=s}(gn,gn.exports);var bn=/^(?:0|[1-9]\d*)$/;var yn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&bn.test(e))&&e>-1&&e%1==0&&e<t};var vn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},wn=E,xn=vn,$n=M,Sn={};Sn["[object Float32Array]"]=Sn["[object Float64Array]"]=Sn["[object Int8Array]"]=Sn["[object Int16Array]"]=Sn["[object Int32Array]"]=Sn["[object Uint8Array]"]=Sn["[object Uint8ClampedArray]"]=Sn["[object Uint16Array]"]=Sn["[object Uint32Array]"]=!0,Sn["[object Arguments]"]=Sn["[object Array]"]=Sn["[object ArrayBuffer]"]=Sn["[object Boolean]"]=Sn["[object DataView]"]=Sn["[object Date]"]=Sn["[object Error]"]=Sn["[object Function]"]=Sn["[object Map]"]=Sn["[object Number]"]=Sn["[object Object]"]=Sn["[object RegExp]"]=Sn["[object Set]"]=Sn["[object String]"]=Sn["[object WeakMap]"]=!1;var _n=function(e){return $n(e)&&xn(e.length)&&!!Sn[wn(e)]};var Cn=function(e){return function(t){return e(t)}},kn={exports:{}};!function(e,t){var r=x,n=t&&!t.nodeType&&t,a=n&&e&&!e.nodeType&&e,i=a&&a.exports===n&&r.process,o=function(){try{var e=a&&a.require&&a.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=o}(kn,kn.exports);var Bn=_n,On=Cn,Fn=kn.exports,jn=Fn&&Fn.isTypedArray,An=jn?On(jn):Bn,zn=on,Pn=fn,Nn=w,In=gn.exports,En=yn,Mn=An,Dn=Object.prototype.hasOwnProperty;var Hn=function(e,t){var r=Nn(e),n=!r&&Pn(e),a=!r&&!n&&In(e),i=!r&&!n&&!a&&Mn(e),o=r||n||a||i,s=o?zn(e.length,String):[],l=s.length;for(var c in e)!t&&!Dn.call(e,c)||o&&("length"==c||a&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||En(c,l))||s.push(c);return s},Tn=Object.prototype;var Vn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Tn)};var Ln=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rn=Vn,Wn=Ln,qn=Object.prototype.hasOwnProperty;var Un=K,Gn=vn;var Qn=function(e){return null!=e&&Gn(e.length)&&!Un(e)},Zn=Hn,Kn=function(e){if(!Rn(e))return Wn(e);var t=[];for(var r in Object(e))qn.call(e,r)&&"constructor"!=r&&t.push(r);return t},Xn=Qn;var Jn=function(e){return Xn(e)?Zn(e):Kn(e)},Yn=Yr,ea=an,ta=Jn;var ra=function(e){return Yn(e,ta,ea)},na=Object.prototype.hasOwnProperty;var aa=function(e,t,r,n,a,i){var o=1&r,s=ra(e),l=s.length;if(l!=ra(t).length&&!o)return!1;for(var c=l;c--;){var u=s[c];if(!(o?u in t:na.call(t,u)))return!1}var d=i.get(e),h=i.get(t);if(d&&h)return d==t&&h==e;var p=!0;i.set(e,t),i.set(t,e);for(var f=o;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var b=o?n(m,g,u,t,e,i):n(g,m,u,e,t,i);if(!(void 0===b?g===m||a(g,m,r,n,i):b)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var y=e.constructor,v=t.constructor;y==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof y&&y instanceof y&&"function"==typeof v&&v instanceof v||(p=!1)}return i.delete(e),i.delete(t),p},ia=fe(_,"DataView"),oa=Qe,sa=fe(_,"Promise"),la=fe(_,"Set"),ca=fe(_,"WeakMap"),ua=E,da=te,ha="[object Map]",pa="[object Promise]",fa="[object Set]",ga="[object WeakMap]",ma="[object DataView]",ba=da(ia),ya=da(oa),va=da(sa),wa=da(la),xa=da(ca),$a=ua;(ia&&$a(new ia(new ArrayBuffer(1)))!=ma||oa&&$a(new oa)!=ha||sa&&$a(sa.resolve())!=pa||la&&$a(new la)!=fa||ca&&$a(new ca)!=ga)&&($a=function(e){var t=ua(e),r="[object Object]"==t?e.constructor:void 0,n=r?da(r):"";if(n)switch(n){case ba:return ma;case ya:return ha;case va:return pa;case wa:return fa;case xa:return ga}return t});var Sa=Nr,_a=Lr,Ca=Kr,ka=aa,Ba=$a,Oa=w,Fa=gn.exports,ja=An,Aa="[object Arguments]",za="[object Array]",Pa="[object Object]",Na=Object.prototype.hasOwnProperty;var Ia=function(e,t,r,n,a,i){var o=Oa(e),s=Oa(t),l=o?za:Ba(e),c=s?za:Ba(t),u=(l=l==Aa?Pa:l)==Pa,d=(c=c==Aa?Pa:c)==Pa,h=l==c;if(h&&Fa(e)){if(!Fa(t))return!1;o=!0,u=!1}if(h&&!u)return i||(i=new Sa),o||ja(e)?_a(e,t,r,n,a,i):Ca(e,t,l,r,n,a,i);if(!(1&r)){var p=u&&Na.call(e,"__wrapped__"),f=d&&Na.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return i||(i=new Sa),a(g,m,r,n,i)}}return!!h&&(i||(i=new Sa),ka(e,t,r,n,a,i))},Ea=M;var Ma=function e(t,r,n,a,i){return t===r||(null==t||null==r||!Ea(t)&&!Ea(r)?t!=t&&r!=r:Ia(t,r,n,a,e,i))},Da=Nr,Ha=Ma;var Ta=U;var Va=function(e){return e==e&&!Ta(e)},La=Va,Ra=Jn;var Wa=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},qa=function(e,t,r,n){var a=r.length,i=a,o=!n;if(null==e)return!i;for(e=Object(e);a--;){var s=r[a];if(o&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++a<i;){var l=(s=r[a])[0],c=e[l],u=s[1];if(o&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Da;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Ha(u,c,3,n,d):h))return!1}}return!0},Ua=function(e){for(var t=Ra(e),r=t.length;r--;){var n=t[r],a=e[n];t[r]=[n,a,La(a)]}return t},Ga=Wa;var Qa=Ot,Za=fn,Ka=w,Xa=yn,Ja=vn,Ya=jt;var ei=function(e,t){return null!=e&&t in Object(e)},ti=function(e,t,r){for(var n=-1,a=(t=Qa(t,e)).length,i=!1;++n<a;){var o=Ya(t[n]);if(!(i=null!=e&&r(e,o)))break;e=e[o]}return i||++n!=a?i:!!(a=null==e?0:e.length)&&Ja(a)&&Xa(o,a)&&(Ka(e)||Za(e))};var ri=Ma,ni=It,ai=function(e,t){return null!=e&&ti(e,t,ei)},ii=q,oi=Va,si=Wa,li=jt;var ci=Pt;var ui=function(e){return function(t){return null==t?void 0:t[e]}},di=function(e){return function(t){return ci(t,e)}},hi=q,pi=jt;var fi=function(e){var t=Ua(e);return 1==t.length&&t[0][2]?Ga(t[0][0],t[0][1]):function(r){return r===e||qa(r,e,t)}},gi=function(e,t){return ii(e)&&oi(t)?si(li(e),t):function(r){var n=ni(r,e);return void 0===n&&n===t?ai(r,e):ri(t,n,3)}},mi=function(e){return e},bi=w,yi=function(e){return hi(e)?ui(pi(e)):di(e)};var vi=function(e){return"function"==typeof e?e:null==e?mi:"object"==typeof e?bi(e)?gi(e[0],e[1]):fi(e):yi(e)},wi=vi,xi=Qn,$i=Jn;var Si=function(e){return function(t,r,n){var a=Object(t);if(!xi(t)){var i=wi(r);t=$i(t),r=function(e){return i(a[e],e,a)}}var o=e(t,r,n);return o>-1?a[i?t[o]:o]:void 0}};var _i=/\s/;var Ci=function(e){for(var t=e.length;t--&&_i.test(e.charAt(t)););return t},ki=/^\s+/;var Bi=function(e){return e?e.slice(0,Ci(e)+1).replace(ki,""):e},Oi=U,Fi=T,ji=/^[-+]0x[0-9a-f]+$/i,Ai=/^0b[01]+$/i,zi=/^0o[0-7]+$/i,Pi=parseInt;var Ni=function(e){if("number"==typeof e)return e;if(Fi(e))return NaN;if(Oi(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Oi(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Bi(e);var r=Ai.test(e);return r||zi.test(e)?Pi(e.slice(2),r?2:8):ji.test(e)?NaN:+e},Ii=1/0;var Ei=function(e){return e?(e=Ni(e))===Ii||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var Mi=function(e,t,r,n){for(var a=e.length,i=r+(n?1:-1);n?i--:++i<a;)if(t(e[i],i,e))return i;return-1},Di=vi,Hi=function(e){var t=Ei(e),r=t%1;return t==t?r?t-r:t:0},Ti=Math.max;var Vi=Si((function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var a=null==r?0:Hi(r);return a<0&&(a=Ti(n+a,0)),Mi(e,Di(t),a)})),Li=Ma;var Ri=function(e,t){return Li(e,t)};let Wi=oo();const qi=e=>ro(e,Wi);let Ui=oo();qi.write=e=>ro(e,Ui);let Gi=oo();qi.onStart=e=>ro(e,Gi);let Qi=oo();qi.onFrame=e=>ro(e,Qi);let Zi=oo();qi.onFinish=e=>ro(e,Zi);let Ki=[];qi.setTimeout=(e,t)=>{let r=qi.now()+t,n=()=>{let e=Ki.findIndex((e=>e.cancel==n));~e&&Ki.splice(e,1),eo-=~e?1:0},a={time:r,handler:e,cancel:n};return Ki.splice(Xi(r),0,a),eo+=1,no(),a};let Xi=e=>~(~Ki.findIndex((t=>t.time>e))||~Ki.length);qi.cancel=e=>{Gi.delete(e),Qi.delete(e),Zi.delete(e),Wi.delete(e),Ui.delete(e)},qi.sync=e=>{to=!0,qi.batchedUpdates(e),to=!1},qi.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,qi.onStart(r)}return n.handler=e,n.cancel=()=>{Gi.delete(r),t=null},n};let Ji="undefined"!=typeof window?window.requestAnimationFrame:()=>{};qi.use=e=>Ji=e,qi.now="undefined"!=typeof performance?()=>performance.now():Date.now,qi.batchedUpdates=e=>e(),qi.catch=console.error,qi.frameLoop="always",qi.advance=()=>{"demand"!==qi.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):io()};let Yi=-1,eo=0,to=!1;function ro(e,t){to?(t.delete(e),e(0)):(t.add(e),no())}function no(){Yi<0&&(Yi=0,"demand"!==qi.frameLoop&&Ji(ao))}function ao(){~Yi&&(Ji(ao),qi.batchedUpdates(io))}function io(){let e=Yi;Yi=qi.now();let t=Xi(Yi);t&&(so(Ki.splice(0,t),(e=>e.handler())),eo-=t),eo?(Gi.flush(),Wi.flush(e?Math.min(64,Yi-e):16.667),Qi.flush(),Ui.flush(),Zi.flush()):Yi=-1}function oo(){let e=new Set,t=e;return{add(r){eo+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(eo-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,eo-=t.size,so(t,(t=>t(r)&&e.add(t))),eo+=e.size,t=e)}}}function so(e,t){e.forEach((e=>{try{t(e)}catch(e){qi.catch(e)}}))}function lo(){}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 uo(e,t){if(co.arr(e)){if(!co.arr(t)||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}return e===t}const ho=(e,t)=>e.forEach(t);function po(e,t,r){if(co.arr(e))for(let n=0;n<e.length;n++)t.call(r,e[n],`${n}`);else for(const n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n)}const fo=e=>co.und(e)?[]:co.arr(e)?e:[e];function go(e,t){if(e.size){const r=Array.from(e);e.clear(),ho(r,t)}}const mo=(e,...t)=>go(e,(e=>e(...t))),bo=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let yo,vo,wo=null,xo=!1,$o=lo;var So=Object.freeze({__proto__:null,get createStringInterpolator(){return yo},get to(){return vo},get colors(){return wo},get skipAnimation(){return xo},get willAdvance(){return $o},assign:e=>{e.to&&(vo=e.to),e.now&&(qi.now=e.now),void 0!==e.colors&&(wo=e.colors),null!=e.skipAnimation&&(xo=e.skipAnimation),e.createStringInterpolator&&(yo=e.createStringInterpolator),e.requestAnimationFrame&&qi.use(e.requestAnimationFrame),e.batchedUpdates&&(qi.batchedUpdates=e.batchedUpdates),e.willAdvance&&($o=e.willAdvance),e.frameLoop&&(qi.frameLoop=e.frameLoop)}});const _o=new Set;let Co=[],ko=[],Bo=0;const Oo={get idle(){return!_o.size&&!Co.length},start(e){Bo>e.priority?(_o.add(e),qi.onStart(Fo)):(jo(e),qi(zo))},advance:zo,sort(e){if(Bo)qi.onFrame((()=>Oo.sort(e)));else{const t=Co.indexOf(e);~t&&(Co.splice(t,1),Ao(e))}},clear(){Co=[],_o.clear()}};function Fo(){_o.forEach(jo),_o.clear(),qi(zo)}function jo(e){Co.includes(e)||Ao(e)}function Ao(e){Co.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(Co,(t=>t.priority>e.priority)),0,e)}function zo(e){const t=ko;for(let r=0;r<Co.length;r++){const n=Co[r];Bo=n.priority,n.idle||($o(n),n.advance(e),n.idle||t.push(n))}return Bo=0,ko=Co,ko.length=0,Co=t,Co.length>0}const Po="[-+]?\\d*\\.?\\d+",No=Po+"%";function Io(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const Eo=new RegExp("rgb"+Io(Po,Po,Po)),Mo=new RegExp("rgba"+Io(Po,Po,Po,Po)),Do=new RegExp("hsl"+Io(Po,No,No)),Ho=new RegExp("hsla"+Io(Po,No,No,Po)),To=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Vo=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Lo=/^#([0-9a-fA-F]{6})$/,Ro=/^#([0-9a-fA-F]{8})$/;function Wo(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function qo(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,a=2*r-n,i=Wo(a,n,e+1/3),o=Wo(a,n,e),s=Wo(a,n,e-1/3);return Math.round(255*i)<<24|Math.round(255*o)<<16|Math.round(255*s)<<8}function Uo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Go(e){return(parseFloat(e)%360+360)%360/360}function Qo(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Zo(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Ko(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Lo.exec(e))?parseInt(t[1]+"ff",16)>>>0:wo&&void 0!==wo[e]?wo[e]:(t=Eo.exec(e))?(Uo(t[1])<<24|Uo(t[2])<<16|Uo(t[3])<<8|255)>>>0:(t=Mo.exec(e))?(Uo(t[1])<<24|Uo(t[2])<<16|Uo(t[3])<<8|Qo(t[4]))>>>0:(t=To.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Ro.exec(e))?parseInt(t[1],16)>>>0:(t=Vo.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Do.exec(e))?(255|qo(Go(t[1]),Zo(t[2]),Zo(t[3])))>>>0:(t=Ho.exec(e))?(qo(Go(t[1]),Zo(t[2]),Zo(t[3]))|Qo(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 Xo=(e,t,r)=>{if(co.fun(e))return e;if(co.arr(e))return Xo({range:e,output:t,extrapolate:r});if(co.str(e.output[0]))return yo(e);const n=e,a=n.output,i=n.range||[0,1],o=n.extrapolateLeft||n.extrapolate||"extend",s=n.extrapolateRight||n.extrapolate||"extend",l=n.easing||(e=>e);return e=>{const t=function(e,t){for(var r=1;r<t.length-1&&!(t[r]>=e);++r);return r-1}(e,i);return function(e,t,r,n,a,i,o,s,l){let c=l?l(e):e;if(c<t){if("identity"===o)return c;"clamp"===o&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===a)return n;if(t===r)return e<=t?n:a;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=i(c),n===-1/0?c=-c:a===1/0?c+=n:c=c*(a-n)+n;return c}(e,i[t],i[t+1],a[t],a[t+1],l,o,s,n.map)}};const Jo=1.70158,Yo=1.525*Jo,es=Jo+1,ts=2*Math.PI/3,rs=2*Math.PI/4.5,ns=e=>{const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},as={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=>es*e*e*e-Jo*e*e,easeOutBack:e=>1+es*Math.pow(e-1,3)+Jo*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Yo)/2:(Math.pow(2*e-2,2)*((Yo+1)*(2*e-2)+Yo)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ts),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ts)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*rs)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*rs)/2+1,easeInBounce:e=>1-ns(1-e),easeOutBounce:ns,easeInOutBounce:e=>e<.5?(1-ns(1-2*e))/2:(1+ns(2*e-1))/2,steps:(e,t="end")=>r=>{const n=(r="end"===t?Math.min(r,.999):Math.max(r,.001))*e,a="end"===t?Math.floor(n):Math.ceil(n);return i=0,o=1,s=a/e,Math.min(Math.max(s,i),o);var i,o,s}};function is(){return is=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},is.apply(this,arguments)}const os=Symbol.for("FluidValue.get"),ss=Symbol.for("FluidValue.observers"),ls=e=>Boolean(e&&e[os]),cs=e=>e&&e[os]?e[os]():e,us=e=>e[ss]||null;function ds(e,t){let r=e[ss];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class hs{constructor(e){if(this[os]=void 0,this[ss]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");ps(this,e)}}const ps=(e,t)=>ms(e,os,t);function fs(e,t){if(e[os]){let r=e[ss];r||ms(e,ss,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function gs(e,t){let r=e[ss];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[ss]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const ms=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),bs=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ys=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,vs=new RegExp(`(${bs.source})(%|[a-z]+)`,"i"),ws=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,xs=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,$s=e=>{const[t,r]=Ss(e);if(!t||bo())return e;const n=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim();if(r&&r.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(r);return t||e}return r&&xs.test(r)?$s(r):r||e},Ss=e=>{const t=xs.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let _s;const Cs=(e,t,r,n,a)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${a})`,ks=e=>{_s||(_s=wo?new RegExp(`(${Object.keys(wo).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>cs(e).replace(xs,$s).replace(ys,Ko).replace(_s,Ko))),r=t.map((e=>e.match(bs).map(Number))),n=r[0].map(((e,t)=>r.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Xo(is({},e,{output:t}))));return e=>{var r;const a=!vs.test(t[0])&&(null==(r=t.find((e=>vs.test(e))))?void 0:r.replace(bs,""));let i=0;return t[0].replace(bs,(()=>`${n[i++](e)}${a||""}`)).replace(ws,Cs)}},Bs="react-spring: ",Os=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${Bs}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},Fs=Os(console.warn);const js=Os(console.warn);function As(e){return co.str(e)&&("#"==e[0]||/\d/.test(e)||!bo()&&xs.test(e)||e in(wo||{}))}const zs=bo()?l:c,Ps=()=>{const e=o(!1);return zs((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Ns(){const e=u()[1],t=Ps();return()=>{t.current&&e(Math.random())}}const Is=e=>l(e,Es),Es=[];function Ms(e){const t=o();return l((()=>{t.current=e})),t.current}const Ds=Symbol.for("Animated:node"),Hs=e=>e&&e[Ds],Ts=(e,t)=>{return r=e,n=Ds,a=t,Object.defineProperty(r,n,{value:a,writable:!0,configurable:!0});var r,n,a},Vs=e=>e&&e[Ds]&&e[Ds].getPayload();class Ls{constructor(){this.payload=void 0,Ts(this,this)}getPayload(){return this.payload||[]}}class Rs extends Ls{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 Rs(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 Ws extends Rs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Xo({output:[e,e]})}static create(e){return new Ws(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=Xo({output:[this.getValue(),e]})),this._value=0,super.reset()}}const qs={dependencies:null};class Us extends Ls{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return po(this.source,((r,n)=>{var a;(a=r)&&a[Ds]===a?t[n]=r.getValue(e):ls(r)?t[n]=cs(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&ho(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return po(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){qs.dependencies&&ls(e)&&qs.dependencies.add(e);const t=Vs(e);t&&ho(t,(e=>this.add(e)))}}class Gs extends Us{constructor(e){super(e)}static create(e){return new Gs(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,r)=>t.setValue(e[r]))).some(Boolean):(super.setValue(e.map(Qs)),!0)}}function Qs(e){return(As(e)?Ws:Rs).create(e)}function Zs(e){const t=Hs(e);return t?t.constructor:co.arr(e)?Gs:As(e)?Ws:Rs}function Ks(){return Ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ks.apply(this,arguments)}const Xs=(e,t)=>{const r=!co.fun(e)||e.prototype&&e.prototype.isReactComponent;return d(((n,i)=>{const s=o(null),c=r&&h((e=>{s.current=function(e,t){e&&(co.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,d]=function(e,t){const r=new Set;qs.dependencies=r,e.style&&(e=Ks({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Us(e),qs.dependencies=null,[e,r]}(n,t),p=Ns(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&p()},g=new Js(f,d),m=o();zs((()=>(m.current=g,ho(d,(e=>fs(e,g))),()=>{m.current&&(ho(m.current.deps,(e=>gs(e,m.current))),qi.cancel(m.current.update))}))),l(f,[]),Is((()=>()=>{const e=m.current;ho(e.deps,(t=>gs(t,e)))}));const b=t.getComponentProps(u.getValue());return a.createElement(e,Ks({},b,{ref:c}))}))};class Js{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&qi.write(this.update)}}const Ys=Symbol.for("AnimatedComponent"),el=e=>co.str(e)?e:e&&co.str(e.displayName)?e.displayName:co.fun(e)&&e.name||null;function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},tl.apply(this,arguments)}function rl(e,...t){return co.fun(e)?e(...t):e}const nl=(e,t)=>!0===e||!!(t&&e&&(co.fun(e)?e(t):fo(e).includes(t))),al=(e,t)=>co.obj(e)?t&&e[t]:e,il=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,ol=e=>e,sl=(e,t=ol)=>{let r=ll;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const a of r){const r=t(e[a],a);co.und(r)||(n[a]=r)}return n},ll=["config","onProps","onStart","onChange","onPause","onResume","onRest"],cl={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 ul(e){const t=function(e){const t={};let r=0;if(po(e,((e,n)=>{cl[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return po(e,((e,n)=>n in t||(r[n]=e))),r}return tl({},e)}function dl(e){return e=cs(e),co.arr(e)?e.map(dl):As(e)?So.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function hl(e){return co.fun(e)||co.arr(e)&&co.obj(e[0])}const pl=tl({},{tension:170,friction:26},{mass:1,damping:1,easing:as.linear,clamp:!1});class fl{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,pl)}}function gl(e,t){if(co.und(t.decay)){const r=!co.und(t.tension)||!co.und(t.friction);!r&&co.und(t.frequency)&&co.und(t.damping)&&co.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const ml=[];class bl{constructor(){this.changed=!1,this.values=ml,this.toValues=null,this.fromValues=ml,this.to=void 0,this.from=void 0,this.config=new fl,this.immediate=!1}}function yl(e,{key:t,props:r,defaultProps:n,state:a,actions:i}){return new Promise(((o,s)=>{var l;let c,u,d=nl(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{co.und(r.pause)||(a.paused=nl(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=a.paused||nl(e,t)),c=rl(r.delay||0,t),e?(a.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){a.resumeQueue.add(p),a.timeouts.delete(u),u.cancel(),c=u.time-qi.now()}function p(){c>0&&!So.skipAnimation?(a.delayed=!0,u=qi.setTimeout(f,c),a.pauseQueue.add(h),a.timeouts.add(u)):f()}function f(){a.delayed&&(a.delayed=!1),a.pauseQueue.delete(h),a.timeouts.delete(u),e<=(a.cancelId||0)&&(d=!0);try{i.start(tl({},r,{callId:e,cancel:d}),o)}catch(e){s(e)}}}))}const vl=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?$l(e.get()):t.every((e=>e.noop))?wl(e.get()):xl(e.get(),t.every((e=>e.finished))),wl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),xl=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),$l=e=>({value:e,cancelled:!0,finished:!1});function Sl(e,t,r,n){const{callId:a,parentId:i,onRest:o}=t,{asyncTo:s,promise:l}=r;return i||e!==s||t.reset?r.promise=(async()=>{r.asyncId=a,r.asyncTo=e;const c=sl(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=a<=(r.cancelId||0)&&$l(n)||a!==r.asyncId&&xl(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new Cl,o=new kl;return(async()=>{if(So.skipAnimation)throw _l(r),o.result=xl(n,!1),d(o),o;p(i);const s=co.obj(e)?tl({},e):tl({},t,{to:e});s.parentId=a,po(c,((e,t)=>{co.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(i),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(So.skipAnimation)return _l(r),xl(n,!1);try{let t;t=co.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,n.stop.bind(n))),await Promise.all([t.then(u),h]),g=xl(n.get(),!0,!1)}catch(e){if(e instanceof Cl)g=e.result;else{if(!(e instanceof kl))throw e;g=e.result}}finally{a==r.asyncId&&(r.asyncId=i,r.asyncTo=i?s:void 0,r.promise=i?l:void 0)}return co.fun(o)&&qi.batchedUpdates((()=>{o(g,n,n.item)})),g})():l}function _l(e,t){go(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Cl 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 kl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Bl=e=>e instanceof Fl;let Ol=1;class Fl extends hs{constructor(...e){super(...e),this.id=Ol++,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=Hs(this);return e&&e.getValue()}to(...e){return So.to(this,e)}interpolate(...e){return Fs(`${Bs}The "interpolate" function is deprecated in v9 (use "to" instead)`),So.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){ds(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Oo.sort(this),ds(this,{type:"priority",parent:this,priority:e})}}const jl=Symbol.for("SpringPhase"),Al=e=>(1&e[jl])>0,zl=e=>(2&e[jl])>0,Pl=e=>(4&e[jl])>0,Nl=(e,t)=>t?e[jl]|=3:e[jl]&=-3,Il=(e,t)=>t?e[jl]|=4:e[jl]&=-5;class El extends Fl{constructor(e,t){if(super(),this.key=void 0,this.animation=new bl,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 r=co.obj(e)?tl({},e):tl({},t,{from:e});co.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(zl(this)||this._state.asyncTo)||Pl(this)}get goal(){return cs(this.animation.to)}get velocity(){const e=Hs(this);return e instanceof Rs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Al(this)}get isAnimating(){return zl(this)}get isPaused(){return Pl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:a,toValues:i}=n;const o=Vs(n.to);!o&&ls(n.to)&&(i=fo(cs(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==Ws?1:o?o[l].lastPosition:i[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,a.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],i=null!=s.v0?s.v0:s.v0=co.arr(a.velocity)?a.velocity[l]:a.velocity;let o;const h=a.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(co.und(a.duration))if(a.decay){const e=!0===a.decay?.998:a.decay,n=Math.exp(-(1-e)*t);d=r+i/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,o=i*n}else{o=null==s.lastVelocity?i:s.lastVelocity;const t=a.restVelocity||h/10,n=a.clamp?0:a.bounce,l=!co.und(n),p=r==c?s.v0>0:r<c;let f,g=!1;const m=1,b=Math.ceil(e/m);for(let e=0;e<b&&(f=Math.abs(o)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(o=-o*n,d=c));o+=(1e-6*-a.tension*(d-c)+.001*-a.friction*o)/a.mass*m,d+=o*m}}else{let n=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(a.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+a.easing(n)*(c-r),o=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=o,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}o&&!o[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(r=!0)}));const s=Hs(this),l=s.getValue();if(t){const e=cs(n.to);l===e&&!r||a.decay?r&&a.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return qi.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(zl(this)){const{to:e,config:t}=this.animation;qi.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 r;return co.und(e)?(r=this.queue||[],this.queue=[]):r=[co.obj(e)?e:tl({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>vl(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),_l(this._state,e&&this._lastCallId),qi.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:r,from:n}=e;r=co.obj(r)?r[t]:r,(null==r||hl(r))&&(r=void 0),n=co.obj(n)?n[t]:n,null==n&&(n=void 0);const a={to:r,from:n};return Al(this)||(e.reverse&&([r,n]=[n,r]),n=cs(n),co.und(n)?Hs(this)||this._set(r):this._set(n)),a}_update(e,t){let r=tl({},e);const{key:n,defaultProps:a}=this;r.default&&Object.assign(a,sl(r,((e,t)=>/^on/.test(t)?al(e,n):e))),Rl(this,r,"onProps"),Wl(this,"onProps",r,this);const i=this._prepareNode(r);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 o=this._state;return yl(++this._lastCallId,{key:n,props:r,defaultProps:a,state:o,actions:{pause:()=>{Pl(this)||(Il(this,!0),mo(o.pauseQueue),Wl(this,"onPause",xl(this,Ml(this,this.animation.to)),this))},resume:()=>{Pl(this)&&(Il(this,!1),zl(this)&&this._resume(),mo(o.resumeQueue),Wl(this,"onResume",xl(this,Ml(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=Dl(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r($l(this));const n=!co.und(e.to),a=!co.und(e.from);if(n||a){if(!(t.callId>this._lastToId))return r($l(this));this._lastToId=t.callId}const{key:i,defaultProps:o,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!a||n||t.default&&!co.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!uo(d,c);h&&(s.from=d),d=cs(d);const p=!uo(u,l);p&&this._focus(u);const f=hl(t.to),{config:g}=s,{decay:m,velocity:b}=g;(n||a)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(gl(r=tl({},r),t),t=tl({},r,t)),gl(e,t),Object.assign(e,t);for(const t in pl)null==e[t]&&(e[t]=pl[t]);let{mass:n,frequency:a,damping:i}=e;co.und(a)||(a<.01&&(a=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/a,2)*n,e.friction=4*Math.PI*i*n/a)}(g,rl(t.config,i),t.config!==o.config?rl(o.config,i):void 0);let y=Hs(this);if(!y||co.und(u))return r(xl(this,!0));const v=co.und(t.reset)?a&&!t.default:!co.und(d)&&nl(t.reset,i),w=v?d:this.get(),x=dl(u),$=co.num(x)||co.arr(x)||As(x),S=!f&&(!$||nl(o.immediate||t.immediate,i));if(p){const e=Zs(u);if(e!==y.constructor){if(!S)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(x)}}const _=y.constructor;let C=ls(u),k=!1;if(!C){const e=v||!Al(this)&&h;(p||e)&&(k=uo(dl(w),x),C=!k),(uo(s.immediate,S)||S)&&uo(g.decay,m)&&uo(g.velocity,b)||(C=!0)}if(k&&zl(this)&&(s.changed&&!v?C=!0:C||this._stop(l)),!f&&((C||ls(l))&&(s.values=y.getPayload(),s.toValues=ls(u)?null:_==Ws?[1]:fo(x)),s.immediate!=S&&(s.immediate=S,S||v||this._set(l)),C)){const{onRest:e}=s;ho(Ll,(e=>Rl(this,t,e)));const n=xl(this,Ml(this,l));mo(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&qi.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?rl(o.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(Sl(t.to,t,this._state,this)):C?this._start():zl(this)&&!p?this._pendingCalls.add(r):r(wl(w))}_focus(e){const t=this.animation;e!==t.to&&(us(this)&&this._detach(),t.to=e,us(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;ls(t)&&(fs(t,this),Bl(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;ls(e)&&gs(e,this)}_set(e,t=!0){const r=cs(e);if(!co.und(r)){const e=Hs(this);if(!e||!uo(r,e.getValue())){const n=Zs(r);e&&e.constructor==n?e.setValue(r):Ts(this,n.create(r)),e&&qi.batchedUpdates((()=>{this._onChange(r,t)}))}}return Hs(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Wl(this,"onStart",xl(this,Ml(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),rl(this.animation.onChange,e,this)),rl(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Hs(this).reset(cs(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),zl(this)||(Nl(this,!0),Pl(this)||this._resume())}_resume(){So.skipAnimation?this.finish():Oo.start(this)}_stop(e,t){if(zl(this)){Nl(this,!1);const r=this.animation;ho(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),ds(this,{type:"idle",parent:this});const n=t?$l(this.get()):xl(this.get(),Ml(this,null!=e?e:r.to));mo(this._pendingCalls,n),r.changed&&(r.changed=!1,Wl(this,"onRest",n,this))}}}function Ml(e,t){const r=dl(t);return uo(dl(e.get()),r)}function Dl(e,t=e.loop,r=e.to){let n=rl(t);if(n){const a=!0!==n&&ul(n),i=(a||e).reverse,o=!a||a.reset;return Hl(tl({},e,{loop:t,default:!1,pause:void 0,to:!i||hl(r)?r:void 0,from:o?e.from:void 0,reset:o},a))}}function Hl(e){const{to:t,from:r}=e=ul(e),n=new Set;return co.obj(t)&&Vl(t,n),co.obj(r)&&Vl(r,n),e.keys=n.size?Array.from(n):null,e}function Tl(e){const t=Hl(e);return co.und(t.default)&&(t.default=sl(t)),t}function Vl(e,t){po(e,((e,r)=>null!=e&&t.add(r)))}const Ll=["onStart","onRest","onChange","onPause","onResume"];function Rl(e,t,r){e.animation[r]=t[r]!==il(t,r)?al(t[r],e.key):void 0}function Wl(e,t,...r){var n,a,i,o;null==(n=(a=e.animation)[t])||n.call(a,...r),null==(i=(o=e.defaultProps)[t])||i.call(o,...r)}const ql=["onStart","onChange","onRest"];let Ul=1;class Gl{constructor(e,t){this.id=Ul++,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(tl({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,r)=>e[r]=t.get())),e}set(e){for(const t in e){const r=e[t];co.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(Hl(e)),this}start(e){let{queue:t}=this;return e?t=fo(e).map(Hl):this.queue=[],this._flush?this._flush(this,t):(ec(this,t),Ql(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;ho(fo(t),(t=>r[t].stop(!!e)))}else _l(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;ho(fo(e),(e=>t[e].pause()))}return this}resume(e){if(co.und(e))this.start({pause:!1});else{const t=this.springs;ho(fo(e),(e=>t[e].resume()))}return this}each(e){po(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,a=this._changed.size>0;(n&&!this._started||a&&!this._started)&&(this._started=!0,go(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!n&&this._started,o=a||i&&r.size?this.get():null;a&&t.size&&go(t,(([e,t])=>{t.value=o,e(t,this,this._item)})),i&&(this._started=!1,go(r,(([e,t])=>{t.value=o,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)}qi.onFrame(this._onFrame)}}function Ql(e,t){return Promise.all(t.map((t=>Zl(e,t)))).then((t=>vl(e,t)))}async function Zl(e,t,r){const{keys:n,to:a,from:i,loop:o,onRest:s,onResolve:l}=t,c=co.obj(t.default)&&t.default;o&&(t.loop=!1),!1===a&&(t.to=null),!1===i&&(t.from=null);const u=co.arr(a)||co.fun(a)?a:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):ho(ql,(r=>{const n=t[r];if(co.fun(n)){const a=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=a.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):a.set(n,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[r]=t[r])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,mo(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(n||Object.keys(e.springs)).map((r=>e.springs[r].start(t))),p=!0===t.cancel||!0===il(t,"cancel");(u||p&&d.asyncId)&&h.push(yl(++e._lastAsyncId,{props:t,state:d,actions:{pause:lo,resume:lo,start(t,r){p?(_l(d,e._lastAsyncId),r($l(e))):(t.onRest=s,r(Sl(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=vl(e,await Promise.all(h));if(o&&f.finished&&(!r||!f.noop)){const r=Dl(t,o,a);if(r)return ec(e,[r]),Zl(e,r,!0)}return l&&qi.batchedUpdates((()=>l(f,e,e.item))),f}function Kl(e,t){const r=tl({},e.springs);return t&&ho(fo(t),(e=>{co.und(e.keys)&&(e=Hl(e)),co.obj(e.to)||(e=tl({},e,{to:void 0})),Yl(r,e,(e=>Jl(e)))})),Xl(e,r),r}function Xl(e,t){po(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,fs(t,e))}))}function Jl(e,t){const r=new El;return r.key=e,t&&fs(r,t),r}function Yl(e,t,r){t.keys&&ho(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function ec(e,t){ho(t,(t=>{Yl(e.springs,t,(t=>Jl(t,e)))}))}const tc=["children"],rc=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,tc);const n=p(nc),i=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=u((()=>({inputs:t,result:e()}))),n=o(),a=n.current;let i=a;i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=r;return l((()=>{n.current=i,a==r&&(r.inputs=r.result=void 0)}),[i]),i.result}((()=>({pause:i,immediate:s})),[i,s]);const{Provider:c}=nc;return a.createElement(c,{value:r},t)},nc=(ac=rc,ic={},Object.assign(ac,a.createContext(ic)),ac.Provider._context=ac,ac.Consumer._context=ac,ac);var ac,ic;rc.Provider=nc.Provider,rc.Consumer=nc.Consumer;const oc=()=>{const e=[],t=function(t){js(`${Bs}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 n=[];return ho(e,((e,a)=>{if(co.und(t))n.push(e.start());else{const i=r(t,e,a);i&&n.push(e.start(i))}})),n};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const r=e.indexOf(t);~r&&e.splice(r,1)},t.pause=function(){return ho(e,(e=>e.pause(...arguments))),this},t.resume=function(){return ho(e,(e=>e.resume(...arguments))),this},t.set=function(t){ho(e,(e=>e.set(t)))},t.start=function(t){const r=[];return ho(e,((e,n)=>{if(co.und(t))r.push(e.start());else{const a=this._getProps(t,e,n);a&&r.push(e.start(a))}})),r},t.stop=function(){return ho(e,(e=>e.stop(...arguments))),this},t.update=function(t){return ho(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return co.fun(e)?e(r,t):e};return t._getProps=r,t};function sc(e,t){const r=co.fun(e),[[n],a]=function(e,t,r){const n=co.fun(t)&&t;n&&!r&&(r=[]);const a=f((()=>n||3==arguments.length?oc():void 0),[]),i=o(0),s=Ns(),l=f((()=>({ctrls:[],queue:[],flush(e,t){const r=Kl(e,t);return i.current>0&&!l.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Ql(e,t):new Promise((n=>{Xl(e,r),l.queue.push((()=>{n(Ql(e,t))})),s()}))}})),[]),c=o([...l.ctrls]),u=[],d=Ms(e)||0;function h(e,r){for(let a=e;a<r;a++){const e=c.current[a]||(c.current[a]=new Gl(null,l.flush)),r=n?n(a,e):t[a];r&&(u[a]=Tl(r))}}f((()=>{ho(c.current.slice(e,d),(e=>{!function(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}(e,a),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),f((()=>{h(0,Math.min(d,e))}),r);const g=c.current.map(((e,t)=>Kl(e,u[t]))),m=p(rc),b=Ms(m),y=m!==b&&function(e){for(const t in e)return!0;return!1}(m);zs((()=>{i.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],ho(e,(e=>e()))),ho(c.current,((e,t)=>{null==a||a.add(e),y&&e.start({default:m});const r=u[t];r&&(function(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),Is((()=>()=>{ho(l.ctrls,(e=>e.stop(!0)))}));const v=g.map((e=>tl({},e)));return a?[v,a]:v}(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,a]:n}let lc;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(lc||(lc={}));class cc extends Fl{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Xo(...t);const r=this._get(),n=Zs(r);Ts(this,n.create(r))}advance(e){const t=this._get();uo(t,this.get())||(Hs(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&dc(this._active)&&hc(this)}_get(){const e=co.arr(this.source)?this.source.map(cs):fo(cs(this.source));return this.calc(...e)}_start(){this.idle&&!dc(this._active)&&(this.idle=!1,ho(Vs(this),(e=>{e.done=!1})),So.skipAnimation?(qi.batchedUpdates((()=>this.advance())),hc(this)):Oo.start(this))}_attach(){let e=1;ho(fo(this.source),(t=>{ls(t)&&fs(t,this),Bl(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){ho(fo(this.source),(e=>{ls(e)&&gs(e,this)})),this._active.clear(),hc(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=fo(this.source).reduce(((e,t)=>Math.max(e,(Bl(t)?t.priority:0)+1)),0))}}function uc(e){return!1!==e.idle}function dc(e){return!e.size||Array.from(e).every(uc)}function hc(e){e.idle||(e.idle=!0,ho(Vs(e),(e=>{e.done=!0})),ds(e,{type:"idle",parent:e}))}function pc(e,t){if(null==e)return{};var r,n,a={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}So.assign({createStringInterpolator:ks,to:(e,t)=>new cc(e,t)});const fc=["style","children","scrollTop","scrollLeft","viewBox"],gc=/^--/;function mc(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||gc.test(e)||yc.hasOwnProperty(e)&&yc[e]?(""+t).trim():t+"px"}const bc={};let yc={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 vc=["Webkit","Ms","Moz","O"];yc=Object.keys(yc).reduce(((e,t)=>(vc.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),yc);const wc=["x","y","z"],xc=/^(matrix|translate|scale|rotate|skew)/,$c=/^(translate)/,Sc=/^(rotate|skew)/,_c=(e,t)=>co.num(e)&&0!==e?e+t:e,Cc=(e,t)=>co.arr(e)?e.every((e=>Cc(e,t))):co.num(e)?e===t:parseFloat(e)===t;class kc extends Us{constructor(e){let{x:t,y:r,z:n}=e,a=pc(e,wc);const i=[],o=[];(t||r||n)&&(i.push([t||0,r||0,n||0]),o.push((e=>[`translate3d(${e.map((e=>_c(e,"px"))).join(",")})`,Cc(e,0)]))),po(a,((e,t)=>{if("transform"===t)i.push([e||""]),o.push((e=>[e,""===e]));else if(xc.test(t)){if(delete a[t],co.und(e))return;const r=$c.test(t)?"px":Sc.test(t)?"deg":"";i.push(fo(e)),o.push("rotate3d"===t?([e,t,n,a])=>[`rotate3d(${e},${t},${n},${_c(a,r)})`,Cc(a,0)]:e=>[`${t}(${e.map((e=>_c(e,r))).join(",")})`,Cc(e,t.startsWith("scale")?1:0)])}})),i.length&&(a.transform=new Bc(i,o)),super(a)}}class Bc extends hs{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 ho(this.inputs,((r,n)=>{const a=cs(r[0]),[i,o]=this.transforms[n](co.arr(a)?a:r.map(cs));e+=" "+i,t=t&&o})),t?"none":e}observerAdded(e){1==e&&ho(this.inputs,(e=>ho(e,(e=>ls(e)&&fs(e,this)))))}observerRemoved(e){0==e&&ho(this.inputs,(e=>ho(e,(e=>ls(e)&&gs(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),ds(this,e)}}const Oc=["scrollTop","scrollLeft"];So.assign({batchedUpdates:y,createStringInterpolator:ks,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 Fc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new Us(e)),getComponentProps:n=(e=>e)}={})=>{const a={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},i=e=>{const t=el(e)||"Anonymous";return(e=co.str(e)?i[e]||(i[e]=Xs(e,a)):e[Ys]||(e[Ys]=Xs(e,a))).displayName=`Animated(${t})`,e};return po(e,((t,r)=>{co.arr(e)&&(r=el(t)),i[r]=i(t)})),{animated:i}})(["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 r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:a,children:i,scrollTop:o,scrollLeft:s,viewBox:l}=n,c=pc(n,fc),u=Object.values(c),d=Object.keys(c).map((t=>r||e.hasAttribute(t)?t:bc[t]||(bc[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in a)if(a.hasOwnProperty(t)){const r=mc(t,a[t]);gc.test(t)?e.style.setProperty(t,r):e.style[t]=r}d.forEach(((t,r)=>{e.setAttribute(t,u[r])})),void 0!==o&&(e.scrollTop=o),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new kc(e),getComponentProps:e=>pc(e,Oc)}),jc=Fc.animated,Ac={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},zc=e=>Object.keys(Ac).reduce(((t,r)=>{const n=Ac[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),Pc=zc("max-width"),Nc=(zc("min-width"),g.div`
|
|
312
312
|
display: inline-block;
|
|
313
313
|
position: relative;
|
|
314
314
|
width: ${e=>e.$size}px;
|
|
315
315
|
height: ${e=>e.$size}px;
|
|
316
|
-
`),
|
|
316
|
+
`),Ic=b`
|
|
317
317
|
0% {
|
|
318
318
|
transform: rotate(0deg);
|
|
319
319
|
}
|
|
320
320
|
100% {
|
|
321
321
|
transform: rotate(360deg);
|
|
322
322
|
}
|
|
323
|
-
`,
|
|
323
|
+
`,Ec=g.div`
|
|
324
324
|
box-sizing: border-box;
|
|
325
325
|
display: block;
|
|
326
326
|
position: absolute;
|
|
@@ -332,12 +332,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
332
332
|
border-radius: 50%;
|
|
333
333
|
border-color: ${e=>e.$color||Vt.Neutral[8](e)}
|
|
334
334
|
transparent transparent transparent;
|
|
335
|
-
animation: ${
|
|
336
|
-
`,
|
|
335
|
+
animation: ${Ic} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
336
|
+
`,Mc=g(Ec)`
|
|
337
337
|
animation-delay: -0.45s;
|
|
338
|
-
`,
|
|
338
|
+
`,Dc=g(Ec)`
|
|
339
339
|
animation-delay: -0.3s;
|
|
340
|
-
`,
|
|
340
|
+
`,Hc=g(Ec)`
|
|
341
341
|
animation-delay: -0.15s;
|
|
342
342
|
`;g.button`
|
|
343
343
|
padding: 0.5rem 1rem;
|
|
@@ -405,7 +405,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
405
405
|
background-color: ${Vt.Primary(e)};
|
|
406
406
|
border: 1px solid transparent;
|
|
407
407
|
|
|
408
|
-
${
|
|
408
|
+
${Pc.mobileL} {
|
|
409
409
|
width: 100%;
|
|
410
410
|
}
|
|
411
411
|
|
|
@@ -423,7 +423,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
423
423
|
${ir("H5","semibold")}
|
|
424
424
|
}
|
|
425
425
|
|
|
426
|
-
${
|
|
426
|
+
${Pc.mobileS} {
|
|
427
427
|
height: auto;
|
|
428
428
|
}
|
|
429
429
|
`:m`
|
|
@@ -432,11 +432,11 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
432
432
|
${ir("H4","semibold")}
|
|
433
433
|
}
|
|
434
434
|
|
|
435
|
-
${
|
|
435
|
+
${Pc.mobileS} {
|
|
436
436
|
height: auto;
|
|
437
437
|
}
|
|
438
438
|
`}
|
|
439
|
-
`;const
|
|
439
|
+
`;const Tc=g((({color:e,className:n,size:a=18})=>t(Nc,{className:n,$size:a,$color:e,children:[r(Ec,{id:"inner1",$size:a-2,$borderWidth:2}),r(Mc,{id:"inner2",$size:a-2,$borderWidth:2}),r(Dc,{id:"inner3",$size:a-2,$borderWidth:2}),r(Hc,{id:"inner4",$size:a-2,$borderWidth:2})]})))`
|
|
440
440
|
margin-right: 0.5rem;
|
|
441
441
|
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Vt.Primary(e);break;case"disabled":t=Vt.Neutral[3](e);break;default:t=Vt.Neutral[8](e)}return m`
|
|
442
442
|
#inner1,
|
|
@@ -446,7 +446,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
446
446
|
border-color: ${t} transparent transparent transparent;
|
|
447
447
|
}
|
|
448
448
|
`}}
|
|
449
|
-
`;var
|
|
449
|
+
`;var Vc,Lc={};Object.defineProperty(Lc,"__esModule",{value:!0});var Rc=e;const Wc=e=>Rc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Rc.jsx("path",{d:"M9.99999 10.792C10.236 10.792 10.441 10.705 10.615 10.531C10.7883 10.3577 10.875 10.153 10.875 9.91701V6.70801C10.875 6.47201 10.7883 6.27067 10.615 6.10401C10.441 5.93734 10.236 5.85401 9.99999 5.85401C9.76399 5.85401 9.55899 5.94101 9.38499 6.11501C9.21166 6.28834 9.12499 6.49301 9.12499 6.72901V9.93801C9.12499 10.174 9.21166 10.3753 9.38499 10.542C9.55899 10.7087 9.76399 10.792 9.99999 10.792ZM9.99999 14.188C10.236 14.188 10.441 14.108 10.615 13.948C10.7883 13.788 10.875 13.576 10.875 13.312C10.875 13.076 10.7883 12.8713 10.615 12.698C10.441 12.5247 10.236 12.438 9.99999 12.438C9.76399 12.438 9.55899 12.5247 9.38499 12.698C9.21166 12.8713 9.12499 13.076 9.12499 13.312C9.12499 13.576 9.21166 13.788 9.38499 13.948C9.55899 14.108 9.76399 14.188 9.99999 14.188ZM9.99999 18.333C8.84733 18.333 7.76399 18.1143 6.74999 17.677C5.73599 17.2397 4.85399 16.646 4.10399 15.896C3.35399 15.146 2.76033 14.264 2.32299 13.25C1.88566 12.236 1.66699 11.1527 1.66699 10C1.66699 8.84734 1.88566 7.76401 2.32299 6.75001C2.76033 5.73601 3.35399 4.85401 4.10399 4.10401C4.85399 3.35401 5.73599 2.76034 6.74999 2.32301C7.76399 1.88567 8.84733 1.66701 9.99999 1.66701C11.1527 1.66701 12.236 1.88567 13.25 2.32301C14.264 2.76034 15.146 3.35401 15.896 4.10401C16.646 4.85401 17.2397 5.73601 17.677 6.75001C18.1143 7.76401 18.333 8.84734 18.333 10C18.333 11.1527 18.1143 12.236 17.677 13.25C17.2397 14.264 16.646 15.146 15.896 15.896C15.146 16.646 14.264 17.2397 13.25 17.677C12.236 18.1143 11.1527 18.333 9.99999 18.333Z",fill:"currentColor"})});Wc.displayName="ExclamationCircleFillIcon",Vc=Lc.ExclamationCircleFillIcon=Wc;var qc,Uc={};Object.defineProperty(Uc,"__esModule",{value:!0});var Gc=e;const Qc=e=>Gc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Gc.jsx("path",{d:"M7.97897 14.646C7.86764 14.646 7.75997 14.625 7.65597 14.583C7.55197 14.5417 7.4513 14.4723 7.35397 14.375L3.83297 10.854C3.6663 10.6873 3.58664 10.4757 3.59397 10.219C3.60064 9.96167 3.6873 9.74967 3.85397 9.583C4.02064 9.41634 4.22897 9.333 4.47897 9.333C4.72897 9.333 4.9373 9.41634 5.10397 9.583L8.02097 12.5L14.917 5.604C15.0836 5.43734 15.2883 5.354 15.531 5.354C15.7743 5.354 15.9793 5.43734 16.146 5.604C16.3126 5.77067 16.396 5.97567 16.396 6.219C16.396 6.46167 16.3126 6.66634 16.146 6.833L8.60397 14.375C8.50664 14.4723 8.40597 14.5417 8.30197 14.583C8.19797 14.625 8.0903 14.646 7.97897 14.646Z",fill:"currentColor"})});Qc.displayName="TickIcon",qc=Uc.TickIcon=Qc;const Zc=g.div`
|
|
450
450
|
display: flex;
|
|
451
451
|
justify-content: center;
|
|
452
452
|
align-items: center;
|
|
@@ -463,22 +463,22 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
463
463
|
background: transparent;
|
|
464
464
|
|
|
465
465
|
${e=>{let t,r;return e.selected&&(t=Vt.Primary(e),r=Vt.Primary(e)),e.disabled&&(t=Vt.Neutral[6](e),r=Vt.Neutral[6](e)),`\n\t\t\tborder: 1px solid ${t};\n\t\t\tbackground: ${r};\n\t\t`}}
|
|
466
|
-
`,
|
|
466
|
+
`,Kc=g.input`
|
|
467
467
|
position: absolute;
|
|
468
468
|
opacity: 0;
|
|
469
469
|
height: 100%;
|
|
470
470
|
width: 100%;
|
|
471
471
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
472
|
-
`,
|
|
472
|
+
`,Xc=g(qc)`
|
|
473
473
|
${e=>{let t;if("small"===e.$displaySize)t="1.5rem";else t="1.75rem";return m`
|
|
474
474
|
height: ${t};
|
|
475
475
|
width: ${t};
|
|
476
476
|
`}}
|
|
477
477
|
color: ${e=>e.disabled?Vt.Neutral[4]:Vt.Neutral[8]};
|
|
478
|
-
`,
|
|
478
|
+
`,Jc=g(jc.div)`
|
|
479
479
|
overflow: hidden;
|
|
480
480
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
481
|
-
`,
|
|
481
|
+
`,Yc=g.ul`
|
|
482
482
|
border-bottom-left-radius: 4px;
|
|
483
483
|
border-bottom-right-radius: 4px;
|
|
484
484
|
background: transparent;
|
|
@@ -502,10 +502,10 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
502
502
|
border-bottom-right-radius: 4px;
|
|
503
503
|
}
|
|
504
504
|
|
|
505
|
-
${
|
|
505
|
+
${Pc.mobileL} {
|
|
506
506
|
max-height: 15rem;
|
|
507
507
|
}
|
|
508
|
-
`,
|
|
508
|
+
`,eu=g.li`
|
|
509
509
|
:hover,
|
|
510
510
|
:focus,
|
|
511
511
|
:active {
|
|
@@ -514,7 +514,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
514
514
|
${e=>{if(e.checked)return m`
|
|
515
515
|
background: ${Vt.Accent.Light[5]};
|
|
516
516
|
`}}
|
|
517
|
-
`,
|
|
517
|
+
`,tu=g.button`
|
|
518
518
|
display: flex;
|
|
519
519
|
${e=>e.multiSelect?m`
|
|
520
520
|
padding: 0.5rem 1rem;
|
|
@@ -546,7 +546,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
546
546
|
justify-content: center;
|
|
547
547
|
align-items: center;
|
|
548
548
|
background: ${Vt.Neutral[8]};
|
|
549
|
-
`;const
|
|
549
|
+
`;const ru=g.div`
|
|
550
550
|
${ir("Body","regular")}
|
|
551
551
|
color: ${Vt.Neutral[1]};
|
|
552
552
|
text-align: left;
|
|
@@ -558,19 +558,19 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
558
558
|
-webkit-line-clamp: 2;
|
|
559
559
|
-webkit-box-orient: vertical;
|
|
560
560
|
`}}
|
|
561
|
-
`,
|
|
561
|
+
`,nu=g.span`
|
|
562
562
|
color: ${Vt.Neutral[4]};
|
|
563
563
|
display: inline;
|
|
564
564
|
padding-left: 0.4rem;
|
|
565
|
-
`,
|
|
565
|
+
`,au=g.div`
|
|
566
566
|
display: flex;
|
|
567
567
|
flex-direction: column;
|
|
568
|
-
`,
|
|
568
|
+
`,iu=g.div`
|
|
569
569
|
width: 100%;
|
|
570
570
|
height: 1.5rem;
|
|
571
571
|
word-break: break-all;
|
|
572
572
|
overflow: hidden;
|
|
573
|
-
`,
|
|
573
|
+
`,ou=g.div`
|
|
574
574
|
width: 100%;
|
|
575
575
|
text-overflow: ellipsis;
|
|
576
576
|
white-space: nowrap;
|
|
@@ -589,15 +589,15 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
589
589
|
outline-color: ${Vt.Accent.Light[3]};
|
|
590
590
|
color: ${Vt.Neutral[1]};
|
|
591
591
|
}
|
|
592
|
-
`;const
|
|
592
|
+
`;const su=g((({className:e,checked:n,disabled:a,onChange:i,onKeyPress:o,displaySize:s="default",...c})=>{const[d,h]=u(n);l((()=>{h(n)}),[n]);const p=e=>{if(!a){const t=e;if(!(" "===t.key||"change"===e.type))return;i&&i(e),o&&o(t)}};return t(Zc,{selected:d,disabled:a,className:e,"data-testid":"checkbox",$displaySize:s,role:"checkbox","aria-checked":d,"aria-labelledby":"checkbox-input",tabIndex:a?-1:0,onKeyDown:p,children:[r(Kc,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:p,disabled:a,checked:d,...c}),d&&r(Xc,{id:"checkmark","data-testid":"checkmark",disabled:a,$displaySize:s})]})}))`
|
|
593
593
|
flex: 0 0 1.5rem;
|
|
594
594
|
margin-right: 1rem;
|
|
595
|
-
`,
|
|
595
|
+
`,lu=g.div`
|
|
596
596
|
width: 100%;
|
|
597
597
|
display: flex;
|
|
598
598
|
justify-content: flex-end;
|
|
599
599
|
padding: 1rem 0 0.5rem 0;
|
|
600
|
-
`,
|
|
600
|
+
`,cu=g.button`
|
|
601
601
|
${ir("Body","semibold")}
|
|
602
602
|
background-color: transparent;
|
|
603
603
|
background-repeat: no-repeat;
|
|
@@ -606,17 +606,17 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
606
606
|
overflow: hidden;
|
|
607
607
|
outline: none;
|
|
608
608
|
${e=>`\n\t\t\tcolor: ${Vt.Primary(e)};\n\t\t`}
|
|
609
|
-
`,
|
|
609
|
+
`,uu=g.div`
|
|
610
610
|
width: 100%;
|
|
611
611
|
display: flex;
|
|
612
612
|
padding: 1rem 0.5rem;
|
|
613
613
|
align-items: center;
|
|
614
|
-
`,
|
|
614
|
+
`,du=g(gr.Body)``,hu=g(Vc)`
|
|
615
615
|
margin-right: 0.625rem;
|
|
616
616
|
height: 1.5rem;
|
|
617
617
|
width: 1.5rem;
|
|
618
618
|
color: ${Vt.Validation.Red.Icon};
|
|
619
|
-
`;var
|
|
619
|
+
`;var pu,fu={};Object.defineProperty(fu,"__esModule",{value:!0});var gu=e;const mu=e=>gu.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:gu.jsx("path",{d:"M15.688 16.896L11.125 12.333C10.667 12.6803 10.1703 12.941 9.635 13.115C9.10033 13.2883 8.54133 13.375 7.958 13.375C6.44467 13.375 5.15667 12.8507 4.094 11.802C3.03133 10.7533 2.5 9.472 2.5 7.958C2.5 6.44467 3.03133 5.15667 4.094 4.094C5.15667 3.03133 6.44467 2.5 7.958 2.5C9.472 2.5 10.7533 3.03133 11.802 4.094C12.8507 5.15667 13.375 6.44467 13.375 7.958C13.375 8.54133 13.2917 9.10033 13.125 9.635C12.9583 10.1703 12.6943 10.66 12.333 11.104L16.917 15.708C17.0837 15.8747 17.1633 16.0727 17.156 16.302C17.1493 16.5313 17.0627 16.7293 16.896 16.896C16.7293 17.0627 16.528 17.146 16.292 17.146C16.056 17.146 15.8547 17.0627 15.688 16.896ZM7.958 11.625C8.972 11.625 9.83667 11.2673 10.552 10.552C11.2673 9.83667 11.625 8.972 11.625 7.958C11.625 6.93067 11.2707 6.05567 10.562 5.333C9.854 4.611 8.986 4.25 7.958 4.25C6.93067 4.25 6.05567 4.611 5.333 5.333C4.611 6.05567 4.25 6.93067 4.25 7.958C4.25 8.986 4.611 9.854 5.333 10.562C6.05567 11.2707 6.93067 11.625 7.958 11.625Z",fill:"currentColor"})});mu.displayName="MagnifierIcon",pu=fu.MagnifierIcon=mu;const bu=g.button`
|
|
620
620
|
display: flex;
|
|
621
621
|
justify-content: center;
|
|
622
622
|
align-items: center;
|
|
@@ -638,12 +638,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
638
638
|
background-color: ${Vt.Neutral[7]};
|
|
639
639
|
`}
|
|
640
640
|
}
|
|
641
|
-
`,
|
|
641
|
+
`,yu=i.forwardRef((({children:e,focusHighlight:t=!0,focusOutline:n="none",...a},i)=>r(bu,{ref:i,$outline:n,$highlight:t,...a,children:e}))),vu=g.li`
|
|
642
642
|
background: ${Vt.Neutral[7]};
|
|
643
643
|
display: flex;
|
|
644
644
|
border-radius: 4px;
|
|
645
645
|
align-items: center;
|
|
646
|
-
`,
|
|
646
|
+
`,wu=g.input`
|
|
647
647
|
${ir("Body","regular")}
|
|
648
648
|
height: 3rem;
|
|
649
649
|
border: none;
|
|
@@ -661,30 +661,30 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
661
661
|
::-webkit-input-placeholder {
|
|
662
662
|
color: ${Vt.Neutral[3]};
|
|
663
663
|
}
|
|
664
|
-
`,
|
|
664
|
+
`,xu=g(pu)`
|
|
665
665
|
height: 1.375rem;
|
|
666
666
|
width: 1.375rem;
|
|
667
667
|
margin: 0 0.5rem;
|
|
668
668
|
color: ${Vt.Neutral[3]};
|
|
669
|
-
|
|
669
|
+
`,$u=g(yu)`
|
|
670
670
|
padding: 0;
|
|
671
671
|
margin: 0 0.5rem;
|
|
672
672
|
color: ${Vt.Neutral[3]};
|
|
673
673
|
cursor: pointer;
|
|
674
|
-
`,
|
|
674
|
+
`,Su=g(Qt)`
|
|
675
675
|
height: 1.375rem;
|
|
676
676
|
width: 1.375rem;
|
|
677
677
|
color: ${Vt.Neutral[3]};
|
|
678
|
-
`,
|
|
678
|
+
`,_u=d(((e,n)=>{const{onClear:a,...i}=e;return t(vu,{children:[r(xu,{}),r(wu,{ref:n,...i}),i.value&&r($u,{"aria-label":"Clear search",focusOutline:"browser",onClick:a,children:r(Su,{})})]},"search")})),Cu=({listItems:e,listExtractor:a,valueExtractor:i,onSelectItem:s,listStyleWidth:c,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:g,onDismiss:m,multiSelect:b,selectedItems:y,onSelectAll:v,onRetry:w,itemsLoadState:x="success",itemTruncationType:$="end",renderListItem:S,onBlur:_,...C})=>{const[k,B]=u(0),[O,F]=u(""),[j,A]=u(e),[z,P]=u(0),N=sc({height:z}),I=o(),E=o(),M=o([]),D=o(),H=o(k),T=o(j),V=e=>{H.current=e,B(e)},L=e=>{T.current=e,A(e)};l((()=>(document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)})),[]),l((()=>{U(O)}),[O]),l((()=>{F(""),d?(P(G()),D&&D.current?(D.current.focus(),V(-1)):M.current[k]&&M.current[k].focus()):P(0)}),[d]),l((()=>{if(d){const e=G();P(e)}}),[j]),l((()=>{L(e),F(""),V(0)}),[e]);const R=e=>a?a(e):e.toString(),W=e=>{const t=a?a(e):e.toString();let r=0;return E&&E.current&&(r=E.current.getBoundingClientRect().width-100),Gt.shouldTruncateToTwoLines("string"==typeof t?t:t.title,r)},q=e=>!!Vi(y,(t=>Ri(t,e))),U=t=>{if(""===t)L(e);else if(g){const e=g(t);L(e)}else{const r=e.filter((e=>{const r=R(e),n="object"==typeof r?r.title.toLowerCase():r.toLowerCase();return"object"==typeof r&&r.secondaryLabel?n.includes(t.trim().toLowerCase())||r.secondaryLabel.includes(t.trim().toLowerCase()):n.includes(t.trim().toLowerCase())}));L(r)}},G=()=>E&&E.current?E.current.getBoundingClientRect().height:0,Q=e=>{if(I&&I.current.contains(e.target))switch(e.code){case"ArrowDown":if(H.current<T.current.length-1){const e=H.current+1;M.current[e].focus(),V(e)}break;case"ArrowUp":if(H.current>0){const e=H.current-1;M.current[e].focus(),V(H.current-1)}break;case"Escape":m&&m()}},Z=(e,t)=>{e.preventDefault(),s&&s(t,(e=>i?i(e):e)(t))},K=e=>{const t=e.target.value;F(t),f&&f()},X=()=>{F(""),f&&f()},J=()=>{w&&w()},Y=()=>{_&&_()},ee=e=>{const n=R(e),a="string"==typeof n?n:n.title;return t(au,{"data-testid":"truncate-middle-container",children:[r(iu,{children:a}),t(ou,{children:[" ",a]})]})},te=e=>{const a=R(e);return"string"==typeof a?r(n,{children:a}):t(n,{children:[a.title,a.secondaryLabel&&r(nu,{children:a.secondaryLabel})]})},re=()=>{if(!w||w&&"success"===x)return j.map(((e,n)=>r(eu,{checked:q(e)&&!b,children:t(tu,{onClick:t=>{Z(t,e)},ref:e=>M.current[n]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,multiSelect:b,onBlur:Y,children:[b&&r(su,{checked:q(e),displaySize:"small"}),S?S(e,{selected:q(e)}):r(ru,{truncateType:$,children:"middle"===$&&W(e)?ee(e):te(e)})]})},((e,t)=>`item_${t}__${i?i(e):e}`)(e,n))))},ne=()=>{if(b&&j.length>0&&!O&&"success"===x)return r(lu,{children:r(cu,{onClick:v,children:0===y.length?"Select all":"Unselect all"})},"selectAll")},ae=()=>{if(O&&0===j.length)return t(uu,{"data-testid":"list-no-results",children:[r(hu,{"data-testid":"no-result-icon"}),r(du,{children:"No results found."})]},"noResults")},ie=()=>{if(w&&"loading"===x)return t(uu,{"data-testid":"list-loading",children:[r(Tc,{$buttonStyle:"secondary",size:24}),r(du,{children:"Loading..."})]},"loading")},oe=()=>{if(w&&"fail"===x)return t(uu,{"data-testid":"list-fail",children:[r(hu,{"data-testid":"load-error-icon"}),r(du,{children:"Failed to load."}),r(cu,{onClick:J,children:"Try again."})]},"noResults")};return r(Jc,{style:N,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:I,children:(()=>{if(d)return t(Yc,{ref:E,"data-testid":"dropdown-list",width:c,role:"list",...C,children:[(h||g)&&"success"===x?r(_u,{ref:D,onChange:K,value:O,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:X}):null,ne(),ae(),ie(),oe(),re()]})})()})};var ku,Bu={};Object.defineProperty(Bu,"__esModule",{value:!0});var Ou=e;const Fu=e=>Ou.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Ou.jsx("path",{d:"M2.62611 5.81312C2.84811 5.59112 3.10478 5.48012 3.39611 5.48012C3.68811 5.48012 3.94511 5.59112 4.16711 5.81312L10.1881 11.8341L16.2301 5.79212C16.4381 5.58412 16.6881 5.48012 16.9801 5.48012C17.2714 5.48012 17.5281 5.59112 17.7501 5.81312C17.9588 6.02179 18.0631 6.27545 18.0631 6.57412C18.0631 6.87279 17.9588 7.12612 17.7501 7.33412L10.8131 14.2721C10.7158 14.3688 10.6151 14.4381 10.5111 14.4801C10.4071 14.5215 10.2994 14.5421 10.1881 14.5421C10.0768 14.5421 9.96911 14.5215 9.86511 14.4801C9.76111 14.4381 9.66044 14.3688 9.56311 14.2721L2.60511 7.31312C2.38244 7.09112 2.27811 6.83779 2.29211 6.55312C2.30611 6.26845 2.41744 6.02179 2.62611 5.81312Z",fill:"currentColor"})});Fu.displayName="ChevronDownIcon",ku=Bu.ChevronDownIcon=Fu;const ju="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",Au=g.div`
|
|
679
679
|
position: relative;
|
|
680
680
|
min-height: 3rem;
|
|
681
681
|
height: 3rem; // Need this to persist the height when expanding or collapsing list
|
|
682
682
|
width: 100%;
|
|
683
683
|
|
|
684
|
-
${
|
|
684
|
+
${Pc.tablet} {
|
|
685
685
|
height: auto;
|
|
686
686
|
}
|
|
687
|
-
`,
|
|
687
|
+
`,zu=g.button`
|
|
688
688
|
display: flex;
|
|
689
689
|
position: relative;
|
|
690
690
|
align-items: center;
|
|
@@ -705,7 +705,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
705
705
|
:focus-visible {
|
|
706
706
|
outline: 2px solid ${Vt.Accent.Light[3]};
|
|
707
707
|
}
|
|
708
|
-
`,
|
|
708
|
+
`,Pu=b`
|
|
709
709
|
from {
|
|
710
710
|
position: absolute;
|
|
711
711
|
top: 0;
|
|
@@ -717,7 +717,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
717
717
|
to {
|
|
718
718
|
position: relative;
|
|
719
719
|
}
|
|
720
|
-
`,
|
|
720
|
+
`,Nu=g.div`
|
|
721
721
|
position: relative;
|
|
722
722
|
border: 1px solid ${Vt.Neutral[5]};
|
|
723
723
|
border-radius: ${"4px"};
|
|
@@ -735,13 +735,13 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
735
735
|
width: 100%;
|
|
736
736
|
z-index: 2;
|
|
737
737
|
`:m`
|
|
738
|
-
animation: ${
|
|
738
|
+
animation: ${Pu} 0.5s ease-in-out;
|
|
739
739
|
`}
|
|
740
740
|
|
|
741
741
|
${e=>e.disabled?m`
|
|
742
742
|
background: ${Vt.Neutral[6](e)};
|
|
743
743
|
|
|
744
|
-
${
|
|
744
|
+
${zu} {
|
|
745
745
|
cursor: not-allowed;
|
|
746
746
|
}
|
|
747
747
|
|
|
@@ -753,7 +753,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
753
753
|
border: none;
|
|
754
754
|
background: transparent !important;
|
|
755
755
|
|
|
756
|
-
${
|
|
756
|
+
${zu} {
|
|
757
757
|
padding-left: 0rem;
|
|
758
758
|
}
|
|
759
759
|
|
|
@@ -771,9 +771,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
771
771
|
`:void 0}
|
|
772
772
|
`;g.div`
|
|
773
773
|
transform: rotate(${e=>e.expanded?180:0}deg);
|
|
774
|
-
transition: ${
|
|
774
|
+
transition: ${ju};
|
|
775
775
|
margin-left: 1rem;
|
|
776
|
-
`,g(
|
|
776
|
+
`,g(ku)`
|
|
777
777
|
color: ${Vt.Neutral[3]};
|
|
778
778
|
height: ${tr.Body.fontSize}rem;
|
|
779
779
|
width: ${tr.Body.fontSize}rem;
|
|
@@ -784,7 +784,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
784
784
|
`,g.div`
|
|
785
785
|
display: flex;
|
|
786
786
|
flex: 1;
|
|
787
|
-
`;const
|
|
787
|
+
`;const Iu=g(gr.Body)`
|
|
788
788
|
text-align: left;
|
|
789
789
|
line-height: 1.375rem;
|
|
790
790
|
${e=>{if("middle"!==e.truncateType)return m`
|
|
@@ -794,9 +794,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
794
794
|
text-overflow: ellipsis;
|
|
795
795
|
`}}
|
|
796
796
|
overflow: hidden;
|
|
797
|
-
`;g(
|
|
797
|
+
`;g(Iu)`
|
|
798
798
|
color: ${Vt.Neutral[3]};
|
|
799
|
-
`;const Au
|
|
799
|
+
`;const Eu=Au,Mu=g(Nu)``,Du=g.div`
|
|
800
800
|
position: relative;
|
|
801
801
|
display: flex;
|
|
802
802
|
margin: 0 1rem;
|
|
@@ -813,29 +813,29 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
813
813
|
`:m`
|
|
814
814
|
flex-direction: row;
|
|
815
815
|
`}
|
|
816
|
-
`,
|
|
816
|
+
`,Hu=g(zu)`
|
|
817
817
|
padding: 0;
|
|
818
818
|
width: auto;
|
|
819
|
-
`,
|
|
819
|
+
`,Tu=g.div`
|
|
820
820
|
height: 3rem;
|
|
821
821
|
display: flex;
|
|
822
822
|
align-items: center;
|
|
823
823
|
padding: 0;
|
|
824
824
|
background: transparent;
|
|
825
825
|
margin-right: 0.75rem;
|
|
826
|
-
`,
|
|
826
|
+
`,Vu=g.div`
|
|
827
827
|
transform: rotate(${e=>e.$expanded?180:0}deg);
|
|
828
|
-
transition: ${
|
|
828
|
+
transition: ${ju};
|
|
829
829
|
margin: 0 0.75rem;
|
|
830
|
-
`,
|
|
830
|
+
`,Lu=g(ku)`
|
|
831
831
|
color: ${Vt.Neutral[3]};
|
|
832
832
|
height: ${tr.Body.fontSize}rem;
|
|
833
833
|
width: ${tr.Body.fontSize}rem;
|
|
834
834
|
vertical-align: bottom;
|
|
835
|
-
`,
|
|
835
|
+
`,Ru=g.div`
|
|
836
836
|
display: flex;
|
|
837
837
|
flex: 1 1 auto;
|
|
838
|
-
`,
|
|
838
|
+
`,Wu=g(gr.Body)`
|
|
839
839
|
text-align: left;
|
|
840
840
|
display: -webkit-box;
|
|
841
841
|
-webkit-line-clamp: 2;
|
|
@@ -843,9 +843,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
843
843
|
overflow: hidden;
|
|
844
844
|
text-overflow: ellipsis;
|
|
845
845
|
margin-top: 1px; // align with input
|
|
846
|
-
`,
|
|
846
|
+
`,qu=g(Wu)`
|
|
847
847
|
color: ${Vt.Neutral[3]};
|
|
848
|
-
`,
|
|
848
|
+
`,Uu=g.div`
|
|
849
849
|
width: 1px;
|
|
850
850
|
background: ${Vt.Neutral[5]};
|
|
851
851
|
|
|
@@ -858,5 +858,5 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as a f
|
|
|
858
858
|
`:m`
|
|
859
859
|
margin: 1rem 0.75rem 1rem 0;
|
|
860
860
|
`}
|
|
861
|
-
`,Lu=({addon:e,error:a,onChange:i,readOnly:s,className:c,onBlur:d,...h})=>{const{placeholder:p,options:f,enableSearch:g,searchFunction:m,searchPlaceholder:b,valueExtractor:y,listExtractor:v,displayValueExtractor:w,selectedOption:x,onSelectOption:$,onHideOptions:S,onShowOptions:_,"data-selector-testid":C}=e.attributes,{position:k}=e,[B,F]=u(x),[O,j]=u(!1),A=o(),z=o();l((()=>{F(x)}),[x]),l((()=>(document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)})),[]);const P=()=>w?w(B):y?y(B):B.toString(),N=e=>{!e&&S&&S(),e&&_&&_()},I=e=>{if(!h.disabled){if(A&&A.current.contains(e.target))return;j(!1),N(!1),H()}},E=e=>{e.preventDefault(),h.disabled||(j(!O),N(!O))},M=(e,t)=>{F(e),j(!1),N(!1),z&&z.current.focus(),$&&$(e,t)},D=e=>{i&&i(e)},H=()=>{d&&d()},T=()=>{j(!1),N(!1),z&&z.current.focus()};return r(Au,{className:c,children:t(zu,{ref:A,disabled:h.disabled,error:a&&!O,expanded:O,$readOnly:s,children:[t(Pu,{$expanded:O,$readOnly:s,$position:k,children:[s?B?r(Iu,{children:r(Hu,{"data-testid":"selector-label",children:P()})}):null:r(Nu,{ref:z,type:"button",disabled:h.disabled,"data-testid":C||"addon-selector",onClick:E,children:t(n,{children:[t(Du,{children:[p&&!B&&r(Tu,{children:p}),B&&r(Hu,{"data-testid":"selector-label",children:P()})]}),r(Eu,{$expanded:O,children:r(Mu,{})})]})}),r(Vu,{$readOnly:s,$position:k}),r(xr,{...h,readOnly:s,error:a,onChange:D,"data-testid":h["data-testid"]||"input",onBlur:H})]}),f&&f.length>0?r(wu,{listItems:f,selectedItems:x?[x]:[],onSelectItem:M,valueExtractor:y,listExtractor:v,visible:O,enableSearch:g,searchFunction:m,searchPlaceholder:b,"data-testid":"dropdown-list",onBlur:H,onDismiss:T}):null]})})},Ru=i.forwardRef((({addon:e,error:n,className:a,...i},o)=>{const s=()=>r(wr,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],className:a,children:r(xr,{ref:o,...i,"data-testid":"input"})});if(!e)return s();{const{type:o="label",position:l="left"}=e,{allowClear:c}=i;switch(o){case"list":{const t=e.attributes;return t.options&&t.options.length>0?r(Lu,{addon:e,error:n,className:a,...i}):s()}case"custom":{const o=e.attributes;return o.children?t(Ut,{$error:n,disabled:i.disabled,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:l,className:a,children:[r($r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,$position:l,children:o.children}),r(xr,{...i,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}default:{const o=e.attributes;return o.value?t(Ut,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:l,className:a,children:[r($r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,$position:l,children:o.value}),r(xr,{...i,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}}}}));var Wu=function(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r};var qu=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return t}}(),Uu=Yn;var Gu=Zn;var Qu=function(e,t){return function(r,n){if(null==r)return r;if(!Gu(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&!1!==n(o[i],i,o););return r}}((function(e,t){return e&&qu(e,t,Uu)}));var Zu=Wu,Ku=Qu,Xu=wi,Ju=function(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r},Yu=w;var ed=function(e,t,r){var n=Yu(e)?Zu:Ju,a=arguments.length<3;return n(e,Xu(t),r,a,Ku)};const td=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ...."],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ... ...."],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599",""],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86",".. ........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506",".... ...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599",""],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1",""],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503",".... ...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502",".... ...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509",".... ...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91","..... ....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... ......."],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ... .. .."],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60",".. .... ...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ...."],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) .. .. .."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","... ... ...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","... ......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","... ... ..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1",""],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ... .. .."],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65",".... ...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ... ..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ... ...."],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ...."],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],rd=(e,t,r,n)=>r?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n;var nd;!function(e){e.getCountries=()=>[].concat(...td.map((e=>({name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],format:rd("+",e[3],e[4],"... ... ... ... ..")})))),e.formatNumber=(e="",t)=>{if(!t)return e;const r=e.replace(/[\s()]+/g,""),{format:n}=t,a=n.split(" ");a.shift();const i=a.join(" ");return ed(i,((e,t)=>{if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};const[r,...n]=e.remainingText;return{formattedText:e.formattedText+r,remainingText:n}}),{formattedText:"",remainingText:r}).formattedText}}(nd||(nd={}));const ad=({onChange:e,value:t,allowClear:n,onClear:a,onBlur:i,error:s,fixedCountry:c=!1,optionPlaceholder:d="Select",optionSearchPlaceholder:h,enableSearch:p,onHideOptions:f,onShowOptions:g,placeholder:m,...b})=>{const[y]=u(nd.getCountries()),[v,w]=u(void 0),[x,$]=u(""),S=o();l((()=>{const e=y.filter((e=>e.countryCode===id(t?.countryCode)))[0];w(e),$(nd.formatNumber(t?.number,e))}),[t]);const _=t=>{e?C(x,t):k(x,t)},C=(t,r)=>{const n=nd.formatNumber(t,r);e({number:n.replace(/[\s()]+/g,""),countryCode:r&&od(r.countryCode)})},k=(e,t)=>{$(nd.formatNumber(e,t)),w(t)};return r(Ru,{ref:S,value:x,onChange:t=>{const r=t.target.value.replace(/[^0-9]/g,"");e?C(r,v):k(r,v)},allowClear:n&&!!x,onClear:()=>{a?a():$("")},onBlur:i,error:s,placeholder:m,addon:c?{type:"label",attributes:{value:od(v?.countryCode)}}:{type:"list",attributes:{placeholder:d,options:y,selectedOption:v,enableSearch:p,searchPlaceholder:h,valueExtractor:e=>`+${e.countryCode}`,listExtractor:e=>({title:e.name,secondaryLabel:od(e.countryCode)}),onSelectOption:_,onHideOptions:f,onShowOptions:g}},inputMode:"numeric",...b})},id=e=>e?e.replace("+",""):"",od=e=>e?e.includes("+")?e:`+${e}`:"";export{ad as PhoneNumberInput};
|
|
861
|
+
`,Gu=({addon:e,error:a,onChange:i,readOnly:s,className:c,onBlur:d,...h})=>{const{placeholder:p,options:f,enableSearch:g,searchFunction:m,searchPlaceholder:b,valueExtractor:y,listExtractor:v,displayValueExtractor:w,selectedOption:x,onSelectOption:$,onHideOptions:S,onShowOptions:_,"data-selector-testid":C}=e.attributes,{position:k}=e,[B,O]=u(x),[F,j]=u(!1),A=o(),z=o();l((()=>{O(x)}),[x]),l((()=>(document.addEventListener("mousedown",I),()=>{document.removeEventListener("mousedown",I)})),[]);const P=()=>w?w(B):y?y(B):B.toString(),N=e=>{!e&&S&&S(),e&&_&&_()},I=e=>{if(!h.disabled){if(A&&A.current.contains(e.target))return;j(!1),N(!1),H()}},E=e=>{e.preventDefault(),h.disabled||(j(!F),N(!F))},M=(e,t)=>{O(e),j(!1),N(!1),z&&z.current.focus(),$&&$(e,t)},D=e=>{i&&i(e)},H=()=>{d&&d()},T=()=>{j(!1),N(!1),z&&z.current.focus()};return r(Eu,{className:c,children:t(Mu,{ref:A,disabled:h.disabled,error:a&&!F,expanded:F,$readOnly:s,children:[t(Du,{$expanded:F,$readOnly:s,$position:k,children:[s?B?r(Tu,{children:r(Wu,{"data-testid":"selector-label",children:P()})}):null:r(Hu,{ref:z,type:"button",disabled:h.disabled,"data-testid":C||"addon-selector",onClick:E,children:t(n,{children:[t(Ru,{children:[p&&!B&&r(qu,{children:p}),B&&r(Wu,{"data-testid":"selector-label",children:P()})]}),r(Vu,{$expanded:F,children:r(Lu,{})})]})}),r(Uu,{$readOnly:s,$position:k}),r(xr,{...h,readOnly:s,error:a,onChange:D,"data-testid":h["data-testid"]||"input",onBlur:H})]}),f&&f.length>0?r(Cu,{listItems:f,selectedItems:x?[x]:[],onSelectItem:M,valueExtractor:y,listExtractor:v,visible:F,enableSearch:g,searchFunction:m,searchPlaceholder:b,"data-testid":"dropdown-list",onBlur:H,onDismiss:T}):null]})})},Qu=i.forwardRef((({addon:e,error:n,className:a,...i},o)=>{const s=()=>r(wr,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],className:a,children:r(xr,{ref:o,...i,"data-testid":"input"})});if(!e)return s();{const{type:o="label",position:l="left"}=e,{allowClear:c}=i;switch(o){case"list":{const t=e.attributes;return t.options&&t.options.length>0?r(Gu,{addon:e,error:n,className:a,...i}):s()}case"custom":{const o=e.attributes;return o.children?t(Ut,{$error:n,disabled:i.disabled,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:l,className:a,children:[r($r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,$position:l,children:o.children}),r(xr,{...i,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}default:{const o=e.attributes;return o.value?t(Ut,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:l,className:a,children:[r($r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,$position:l,children:o.value}),r(xr,{...i,allowClear:c&&"right"!==l,error:n,"data-testid":"input"})]}):s()}}}}));var Zu=function(e,t,r,n){var a=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++a]);++a<i;)r=t(r,e[a],a,e);return r};var Ku=function(e){return function(t,r,n){for(var a=-1,i=Object(t),o=n(t),s=o.length;s--;){var l=o[e?s:++a];if(!1===r(i[l],l,i))break}return t}}(),Xu=Jn;var Ju=Qn;var Yu=function(e,t){return function(r,n){if(null==r)return r;if(!Ju(r))return e(r,n);for(var a=r.length,i=t?a:-1,o=Object(r);(t?i--:++i<a)&&!1!==n(o[i],i,o););return r}}((function(e,t){return e&&Ku(e,t,Xu)}));var ed=Zu,td=Yu,rd=vi,nd=function(e,t,r,n,a){return a(e,(function(e,a,i){r=n?(n=!1,e):t(r,e,a,i)})),r},ad=w;var id=function(e,t,r){var n=ad(e)?ed:nd,a=arguments.length<3;return n(e,rd(t),r,a,td)};const od=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........"],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ...."],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ... ...."],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599",""],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86",".. ........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506",".... ...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599",""],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1",""],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503",".... ...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502",".... ...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509",".... ...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91","..... ....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... ......."],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ... .. .."],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60",".. .... ...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ...."],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) .. .. .."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","... ... ...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","... ......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","... ... ..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1",""],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ... .. .."],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65",".... ...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ... ..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ... ...."],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ...."],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],sd=(e,t,r,n)=>r?e+"".padEnd(t.length,".")+" "+r:e+"".padEnd(t.length,".")+" "+n;var ld;!function(e){e.getCountries=()=>[].concat(...od.map((e=>({name:e[0],regions:e[1],iso2:e[2],countryCode:e[3],format:sd("+",e[3],e[4],"... ... ... ... ..")})))),e.formatNumber=(e="",t)=>{if(!t)return e;const r=e.replace(/[\s()]+/g,""),{format:n}=t,a=n.split(" ");a.shift();const i=a.join(" ");return id(i,((e,t)=>{if(0===e.remainingText.length)return e;if("."!==t)return{formattedText:e.formattedText+t,remainingText:e.remainingText};const[r,...n]=e.remainingText;return{formattedText:e.formattedText+r,remainingText:n}}),{formattedText:"",remainingText:r}).formattedText}}(ld||(ld={}));const cd=({onChange:e,value:t,allowClear:n,onClear:a,onBlur:i,error:s,fixedCountry:c=!1,optionPlaceholder:d="Select",optionSearchPlaceholder:h,enableSearch:p,onHideOptions:f,onShowOptions:g,placeholder:m,...b})=>{const[y]=u(ld.getCountries()),[v,w]=u(void 0),[x,$]=u(""),S=o();l((()=>{const e=y.filter((e=>e.countryCode===ud(t?.countryCode)))[0];w(e),$(ld.formatNumber(t?.number,e))}),[t]);const _=t=>{e?C(x,t):k(x,t)},C=(t,r)=>{const n=ld.formatNumber(t,r);e({number:n.replace(/[\s()]+/g,""),countryCode:r&&dd(r.countryCode)})},k=(e,t)=>{$(ld.formatNumber(e,t)),w(t)};return r(Qu,{ref:S,value:x,onChange:t=>{const r=t.target.value.replace(/[^0-9]/g,"");e?C(r,v):k(r,v)},allowClear:n&&!!x,onClear:()=>{a?a():$("")},onBlur:i,error:s,placeholder:m,addon:c?{type:"label",attributes:{value:dd(v?.countryCode)}}:{type:"list",attributes:{placeholder:d,options:y,selectedOption:v,enableSearch:p,searchPlaceholder:h,valueExtractor:e=>`+${e.countryCode}`,listExtractor:e=>({title:e.name,secondaryLabel:dd(e.countryCode)}),onSelectOption:_,onHideOptions:f,onShowOptions:g}},inputMode:"numeric",...b})},ud=e=>e?e.replace("+",""):"",dd=e=>e?e.includes("+")?e:`+${e}`:"";export{cd as PhoneNumberInput};
|
|
862
862
|
//# sourceMappingURL=index.js.map
|