@lifesg/react-design-system 1.0.0-alpha.19 → 1.0.0-alpha.20
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/accordion/index.js +4 -4
- package/accordion/index.js.map +1 -1
- package/alert/index.js +42 -42
- package/alert/index.js.map +1 -1
- package/box-container/index.js +5 -5
- package/box-container/index.js.map +1 -1
- package/breadcrumb/index.js +2 -2
- package/breadcrumb/index.js.map +1 -1
- package/button/index.js +125 -125
- package/button/index.js.map +1 -1
- package/card/index.js +23 -23
- package/card/index.js.map +1 -1
- package/checkbox/index.js +3 -3
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +44 -46
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +4 -0
- package/date-input/index.js +53 -49
- package/date-input/index.js.map +1 -1
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/{icon → design-token}/package.json +1 -1
- package/design-token/types.d.ts +7 -0
- package/error-display/index.js +92 -92
- package/error-display/index.js.map +1 -1
- package/feedback-rating/index.js +58 -58
- package/feedback-rating/index.js.map +1 -1
- package/footer/index.js +10 -10
- package/footer/index.js.map +1 -1
- package/form/index.js +144 -140
- package/form/index.js.map +1 -1
- package/icon-button/index.js +3 -3
- package/icon-button/index.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +63 -65
- package/index.js.map +1 -1
- package/input/index.js +18 -14
- package/input/index.js.map +1 -1
- package/input-group/index.js +125 -121
- package/input-group/index.js.map +1 -1
- package/input-select/index.js +32 -28
- package/input-select/index.js.map +1 -1
- package/input-textarea/index.js +112 -108
- package/input-textarea/index.js.map +1 -1
- package/link-list/index.js +35 -35
- package/link-list/index.js.map +1 -1
- package/modal/index.js +15 -15
- package/modal/index.js.map +1 -1
- package/navbar/index.js +188 -188
- package/navbar/index.js.map +1 -1
- package/notification-banner/index.js +2 -2
- package/notification-banner/index.js.map +1 -1
- package/package.json +1 -1
- package/phone-number-input/index.js +126 -122
- package/phone-number-input/index.js.map +1 -1
- package/popover/index.js +7 -7
- package/popover/index.js.map +1 -1
- package/progress-indicator/index.js +7 -7
- package/progress-indicator/index.js.map +1 -1
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/smart-app-banner/index.js +14 -14
- package/smart-app-banner/index.js.map +1 -1
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +18 -18
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +10 -1
- package/timeline/index.js +8 -8
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +61 -57
- package/timepicker/index.js.map +1 -1
- package/toggle-button/index.js +109 -109
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +5 -5
- package/tooltip/index.js.map +1 -1
- package/unit-number/index.js +113 -109
- package/unit-number/index.js.map +1 -1
- package/util/utility-types.d.ts +3 -0
- package/icon/document-with-pencil-icon.d.ts +0 -5
- package/icon/icon-data.d.ts +0 -3
- package/icon/icon-style.d.ts +0 -1
- package/icon/icon.d.ts +0 -6
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -8
- package/icon/index.js.map +0 -1
- package/icon/location-unknown-icon.d.ts +0 -5
- package/icon/mail-unread-icon.d.ts +0 -5
- package/icon/types.d.ts +0 -18
package/input-group/index.js
CHANGED
|
@@ -1,25 +1,29 @@
|
|
|
1
|
-
import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i from"react";import o,{useEffect as a,useLayoutEffect as s,useState as l,useRef as c,forwardRef as u,useCallback as d,useContext as h,useMemo as p}from"react";import f,{css as g,keyframes as m}from"styled-components";import{unstable_batchedUpdates as y}from"react-dom";var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v=Array.isArray,w="object"==typeof b&&b&&b.Object===Object&&b,_=w,$="object"==typeof self&&self&&self.Object===Object&&self,x=_||$||Function("return this")(),S=x.Symbol,C=S,k=Object.prototype,F=k.hasOwnProperty,j=k.toString,O=C?C.toStringTag:void 0;var B=function(e){var t=F.call(e,O),r=e[O];try{e[O]=void 0;var n=!0}catch(e){}var i=j.call(e);return n&&(t?e[O]=r:delete e[O]),i},A=Object.prototype.toString;var P=B,z=function(e){return A.call(e)},I=S?S.toStringTag:void 0;var D=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":I&&I in Object(e)?P(e):z(e)};var N=function(e){return null!=e&&"object"==typeof e},H=D,E=N;var M=function(e){return"symbol"==typeof e||E(e)&&"[object Symbol]"==H(e)},V=v,L=M,T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/;var W=function(e,t){if(V(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!L(e))||(R.test(e)||!T.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},U=D,Q=q;var Z,G=function(e){if(!Q(e))return!1;var t=U(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=x["__core-js_shared__"],K=(Z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var Y=function(e){return!!K&&K in e},J=Function.prototype.toString;var ee=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},te=G,re=Y,ne=q,ie=ee,oe=/^\[object .+?Constructor\]$/,ae=Function.prototype,se=Object.prototype,le=ae.toString,ce=se.hasOwnProperty,ue=RegExp("^"+le.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var de=function(e){return!(!ne(e)||re(e))&&(te(e)?ue:oe).test(ie(e))},he=function(e,t){return null==e?void 0:e[t]};var pe=function(e,t){var r=he(e,t);return de(r)?r:void 0},fe=pe(Object,"create"),ge=fe;var me=function(){this.__data__=ge?ge(null):{},this.size=0};var ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be=fe,ve=Object.prototype.hasOwnProperty;var we=function(e){var t=this.__data__;if(be){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ve.call(t,e)?t[e]:void 0},_e=fe,$e=Object.prototype.hasOwnProperty;var xe=fe;var Se=me,Ce=ye,ke=we,Fe=function(e){var t=this.__data__;return _e?void 0!==t[e]:$e.call(t,e)},je=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this};function Oe(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])}}Oe.prototype.clear=Se,Oe.prototype.delete=Ce,Oe.prototype.get=ke,Oe.prototype.has=Fe,Oe.prototype.set=je;var Be=Oe;var Ae=function(){this.__data__=[],this.size=0};var Pe=function(e,t){return e===t||e!=e&&t!=t},ze=Pe;var Ie=function(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1},De=Ie,Ne=Array.prototype.splice;var He=Ie;var Ee=Ie;var Me=Ie;var Ve=Ae,Le=function(e){var t=this.__data__,r=De(t,e);return!(r<0)&&(r==t.length-1?t.pop():Ne.call(t,r,1),--this.size,!0)},Te=function(e){var t=this.__data__,r=He(t,e);return r<0?void 0:t[r][1]},Re=function(e){return Ee(this.__data__,e)>-1},We=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function qe(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])}}qe.prototype.clear=Ve,qe.prototype.delete=Le,qe.prototype.get=Te,qe.prototype.has=Re,qe.prototype.set=We;var Ue=qe,Qe=pe(x,"Map"),Ze=Be,Ge=Ue,Xe=Qe;var Ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var r=e.__data__;return Ke(t)?r["string"==typeof t?"string":"hash"]:r.map},Je=Ye;var et=Ye;var tt=Ye;var rt=Ye;var nt=function(){this.size=0,this.__data__={hash:new Ze,map:new(Xe||Ge),string:new Ze}},it=function(e){var t=Je(this,e).delete(e);return this.size-=t?1:0,t},ot=function(e){return et(this,e).get(e)},at=function(e){return tt(this,e).has(e)},st=function(e,t){var r=rt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function lt(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])}}lt.prototype.clear=nt,lt.prototype.delete=it,lt.prototype.get=ot,lt.prototype.has=at,lt.prototype.set=st;var ct=lt,ut=ct;function dt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(dt.Cache||ut),r}dt.Cache=ut;var ht=dt;var pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/\\(\\)?/g,gt=function(e){var t=ht(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(pt,(function(e,r,n,i){t.push(n?i.replace(ft,"$1"):r||e)})),t}));var mt=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},yt=v,bt=M,vt=S?S.prototype:void 0,wt=vt?vt.toString:void 0;var _t=function e(t){if("string"==typeof t)return t;if(yt(t))return mt(t,e)+"";if(bt(t))return wt?wt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},$t=_t;var xt=v,St=W,Ct=gt,kt=function(e){return null==e?"":$t(e)};var Ft=function(e,t){return xt(e)?e:St(e,t)?[e]:Ct(kt(e))},jt=M;var Ot=function(e){if("string"==typeof e||jt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Bt=Ft,At=Ot;var Pt=function(e,t){for(var r=0,n=(t=Bt(t,e)).length;null!=e&&r<n;)e=e[At(t[r++])];return r&&r==n?e:void 0},zt=Pt;var It=function(e,t,r){var n=null==e?void 0:zt(e,t);return void 0===n?r:n};const Dt=(e,t,r)=>t?It(r,t)||It(e,t):r||e,Nt=(e,t)=>{const r=t||e.defaultValue;return It(e.collections,r)};var Ht;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(Ht||(Ht={}));const Et={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"}}},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"}}}},defaultValue:"base"},Mt=e=>t=>{const r=t.theme,n=Nt(Et,r[Ht.colorScheme]);return r.options&&r.options.color?Dt(n,e,r.options.color):Dt(n,e)},Vt={Brand:{1:Mt("Brand.1"),2:Mt("Brand.2"),3:Mt("Brand.3"),4:Mt("Brand.4"),5:Mt("Brand.5"),6:Mt("Brand.6")},Primary:Mt("Primary"),PrimaryDark:Mt("PrimaryDark"),Secondary:Mt("Secondary"),Accent:{Light:{1:Mt("Accent.Light.1"),2:Mt("Accent.Light.2"),3:Mt("Accent.Light.3"),4:Mt("Accent.Light.4"),5:Mt("Accent.Light.5"),6:Mt("Accent.Light.6")},Dark:{1:Mt("Accent.Dark.1"),2:Mt("Accent.Dark.2"),3:Mt("Accent.Dark.3")}},Neutral:{1:Mt("Neutral.1"),2:Mt("Neutral.2"),3:Mt("Neutral.3"),4:Mt("Neutral.4"),5:Mt("Neutral.5"),6:Mt("Neutral.6"),7:Mt("Neutral.7"),8:Mt("Neutral.8")},Validation:{Green:{Text:Mt("Validation.Green.Text"),Icon:Mt("Validation.Green.Icon"),Border:Mt("Validation.Green.Border"),Background:Mt("Validation.Green.Background")},Orange:{Text:Mt("Validation.Orange.Text"),Icon:Mt("Validation.Orange.Icon"),Border:Mt("Validation.Orange.Border"),Background:Mt("Validation.Orange.Background"),Badge:Mt("Validation.Orange.Badge")},Red:{Text:Mt("Validation.Red.Text"),Icon:Mt("Validation.Red.Icon"),Border:Mt("Validation.Red.Border"),Background:Mt("Validation.Red.Background")}}};var Lt;!function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,n)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const o=n+i;if(o<e.length){const t=Math.floor(o/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(Lt||(Lt={}));var Tt,Rt={};Object.defineProperty(Rt,"__esModule",{value:!0});var Wt=e;const qt=e=>Wt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Wt.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});qt.displayName="CrossIcon",Tt=Rt.CrossIcon=qt;const Ut={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Qt={collections:{base:{D1:{fontFamily:Ut.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Ut.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Ut.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Ut.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Ut.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Ut.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Ut.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Ut.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Ut.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Ut.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Ut.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Ut.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Ut.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Ut.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Zt=e=>t=>{const r=t.theme,n=Nt(Qt,r[Ht.textStyleScheme]);return r.options&&r.options.textStyle?Dt(n,e,r.options.textStyle):Dt(n,e)},Gt={D1:{fontFamily:Zt("D1.fontFamily"),fontSize:Zt("D1.fontSize"),fontWeight:Zt("D1.fontWeight"),lineHeight:Zt("D1.lineHeight"),letterSpacing:Zt("D1.letterSpacing")},D2:{fontFamily:Zt("D2.fontFamily"),fontSize:Zt("D2.fontSize"),fontWeight:Zt("D2.fontWeight"),lineHeight:Zt("D2.lineHeight"),letterSpacing:Zt("D2.letterSpacing")},D3:{fontFamily:Zt("D3.fontFamily"),fontSize:Zt("D3.fontSize"),fontWeight:Zt("D3.fontWeight"),lineHeight:Zt("D3.lineHeight"),letterSpacing:Zt("D3.letterSpacing")},D4:{fontFamily:Zt("D4.fontFamily"),fontSize:Zt("D4.fontSize"),fontWeight:Zt("D4.fontWeight"),lineHeight:Zt("D4.lineHeight"),letterSpacing:Zt("D4.letterSpacing")},DBody:{fontFamily:Zt("DBody.fontFamily"),fontSize:Zt("DBody.fontSize"),fontWeight:Zt("DBody.fontWeight"),lineHeight:Zt("DBody.lineHeight"),letterSpacing:Zt("DBody.letterSpacing")},H1:{fontFamily:Zt("H1.fontFamily"),fontSize:Zt("H1.fontSize"),fontWeight:Zt("H1.fontWeight"),lineHeight:Zt("H1.lineHeight"),letterSpacing:Zt("H1.letterSpacing")},H2:{fontFamily:Zt("H2.fontFamily"),fontSize:Zt("H2.fontSize"),fontWeight:Zt("H2.fontWeight"),lineHeight:Zt("H2.lineHeight"),letterSpacing:Zt("H2.letterSpacing")},H3:{fontFamily:Zt("H3.fontFamily"),fontSize:Zt("H3.fontSize"),fontWeight:Zt("H3.fontWeight"),lineHeight:Zt("H3.lineHeight"),letterSpacing:Zt("H3.letterSpacing")},H4:{fontFamily:Zt("H4.fontFamily"),fontSize:Zt("H4.fontSize"),fontWeight:Zt("H4.fontWeight"),lineHeight:Zt("H4.lineHeight"),letterSpacing:Zt("H4.letterSpacing")},H5:{fontFamily:Zt("H5.fontFamily"),fontSize:Zt("H5.fontSize"),fontWeight:Zt("H5.fontWeight"),lineHeight:Zt("H5.lineHeight"),letterSpacing:Zt("H5.letterSpacing")},H6:{fontFamily:Zt("H6.fontFamily"),fontSize:Zt("H6.fontSize"),fontWeight:Zt("H6.fontWeight"),lineHeight:Zt("H6.lineHeight"),letterSpacing:Zt("H6.letterSpacing")},Body:{fontFamily:Zt("Body.fontFamily"),fontSize:Zt("Body.fontSize"),fontWeight:Zt("Body.fontWeight"),lineHeight:Zt("Body.lineHeight"),letterSpacing:Zt("Body.letterSpacing")},BodySmall:{fontFamily:Zt("BodySmall.fontFamily"),fontSize:Zt("BodySmall.fontSize"),fontWeight:Zt("BodySmall.fontWeight"),lineHeight:Zt("BodySmall.lineHeight"),letterSpacing:Zt("BodySmall.letterSpacing")},XSmall:{fontFamily:Zt("XSmall.fontFamily"),fontSize:Zt("XSmall.fontSize"),fontWeight:Zt("XSmall.fontWeight"),lineHeight:Zt("XSmall.lineHeight"),letterSpacing:Zt("XSmall.letterSpacing")}},Xt=e=>{switch(e){case 700:case"bold":return Ut.Bold;case 600:case"semibold":return Ut.Semibold;case 300:case"light":return Ut.Light;case 400:case"regular":return Ut.Regular;default:return""}},Kt=(e,t)=>r=>{const n=Gt[e].fontFamily(r),i=Gt[e].fontWeight(r);return Object.values(Ut).includes(n)?g`
|
|
2
|
-
|
|
1
|
+
import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i from"react";import o,{useEffect as a,useLayoutEffect as s,useState as l,useRef as c,forwardRef as u,useCallback as d,useContext as h,useMemo as p}from"react";import f,{css as g,keyframes as m}from"styled-components";import{unstable_batchedUpdates as y}from"react-dom";var b="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},v=Array.isArray,w="object"==typeof b&&b&&b.Object===Object&&b,_=w,$="object"==typeof self&&self&&self.Object===Object&&self,x=_||$||Function("return this")(),S=x.Symbol,C=S,k=Object.prototype,F=k.hasOwnProperty,j=k.toString,O=C?C.toStringTag:void 0;var B=function(e){var t=F.call(e,O),r=e[O];try{e[O]=void 0;var n=!0}catch(e){}var i=j.call(e);return n&&(t?e[O]=r:delete e[O]),i},A=Object.prototype.toString;var P=B,z=function(e){return A.call(e)},I=S?S.toStringTag:void 0;var N=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":I&&I in Object(e)?P(e):z(e)};var D=function(e){return null!=e&&"object"==typeof e},E=N,H=D;var M=function(e){return"symbol"==typeof e||H(e)&&"[object Symbol]"==E(e)},V=v,L=M,T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,R=/^\w*$/;var W=function(e,t){if(V(e))return!1;var r=typeof e;return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!L(e))||(R.test(e)||!T.test(e)||null!=t&&e in Object(t))};var q=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},U=N,Q=q;var Z,G=function(e){if(!Q(e))return!1;var t=U(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},X=x["__core-js_shared__"],K=(Z=/[^.]+$/.exec(X&&X.keys&&X.keys.IE_PROTO||""))?"Symbol(src)_1."+Z:"";var Y=function(e){return!!K&&K in e},J=Function.prototype.toString;var ee=function(e){if(null!=e){try{return J.call(e)}catch(e){}try{return e+""}catch(e){}}return""},te=G,re=Y,ne=q,ie=ee,oe=/^\[object .+?Constructor\]$/,ae=Function.prototype,se=Object.prototype,le=ae.toString,ce=se.hasOwnProperty,ue=RegExp("^"+le.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var de=function(e){return!(!ne(e)||re(e))&&(te(e)?ue:oe).test(ie(e))},he=function(e,t){return null==e?void 0:e[t]};var pe=function(e,t){var r=he(e,t);return de(r)?r:void 0},fe=pe(Object,"create"),ge=fe;var me=function(){this.__data__=ge?ge(null):{},this.size=0};var ye=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},be=fe,ve=Object.prototype.hasOwnProperty;var we=function(e){var t=this.__data__;if(be){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return ve.call(t,e)?t[e]:void 0},_e=fe,$e=Object.prototype.hasOwnProperty;var xe=fe;var Se=me,Ce=ye,ke=we,Fe=function(e){var t=this.__data__;return _e?void 0!==t[e]:$e.call(t,e)},je=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=xe&&void 0===t?"__lodash_hash_undefined__":t,this};function Oe(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])}}Oe.prototype.clear=Se,Oe.prototype.delete=Ce,Oe.prototype.get=ke,Oe.prototype.has=Fe,Oe.prototype.set=je;var Be=Oe;var Ae=function(){this.__data__=[],this.size=0};var Pe=function(e,t){return e===t||e!=e&&t!=t},ze=Pe;var Ie=function(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1},Ne=Ie,De=Array.prototype.splice;var Ee=Ie;var He=Ie;var Me=Ie;var Ve=Ae,Le=function(e){var t=this.__data__,r=Ne(t,e);return!(r<0)&&(r==t.length-1?t.pop():De.call(t,r,1),--this.size,!0)},Te=function(e){var t=this.__data__,r=Ee(t,e);return r<0?void 0:t[r][1]},Re=function(e){return He(this.__data__,e)>-1},We=function(e,t){var r=this.__data__,n=Me(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};function qe(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])}}qe.prototype.clear=Ve,qe.prototype.delete=Le,qe.prototype.get=Te,qe.prototype.has=Re,qe.prototype.set=We;var Ue=qe,Qe=pe(x,"Map"),Ze=Be,Ge=Ue,Xe=Qe;var Ke=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Ye=function(e,t){var r=e.__data__;return Ke(t)?r["string"==typeof t?"string":"hash"]:r.map},Je=Ye;var et=Ye;var tt=Ye;var rt=Ye;var nt=function(){this.size=0,this.__data__={hash:new Ze,map:new(Xe||Ge),string:new Ze}},it=function(e){var t=Je(this,e).delete(e);return this.size-=t?1:0,t},ot=function(e){return et(this,e).get(e)},at=function(e){return tt(this,e).has(e)},st=function(e,t){var r=rt(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};function lt(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])}}lt.prototype.clear=nt,lt.prototype.delete=it,lt.prototype.get=ot,lt.prototype.has=at,lt.prototype.set=st;var ct=lt,ut=ct;function dt(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var r=function(){var n=arguments,i=t?t.apply(this,n):n[0],o=r.cache;if(o.has(i))return o.get(i);var a=e.apply(this,n);return r.cache=o.set(i,a)||o,a};return r.cache=new(dt.Cache||ut),r}dt.Cache=ut;var ht=dt;var pt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ft=/\\(\\)?/g,gt=function(e){var t=ht(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(pt,(function(e,r,n,i){t.push(n?i.replace(ft,"$1"):r||e)})),t}));var mt=function(e,t){for(var r=-1,n=null==e?0:e.length,i=Array(n);++r<n;)i[r]=t(e[r],r,e);return i},yt=v,bt=M,vt=S?S.prototype:void 0,wt=vt?vt.toString:void 0;var _t=function e(t){if("string"==typeof t)return t;if(yt(t))return mt(t,e)+"";if(bt(t))return wt?wt.call(t):"";var r=t+"";return"0"==r&&1/t==-Infinity?"-0":r},$t=_t;var xt=v,St=W,Ct=gt,kt=function(e){return null==e?"":$t(e)};var Ft=function(e,t){return xt(e)?e:St(e,t)?[e]:Ct(kt(e))},jt=M;var Ot=function(e){if("string"==typeof e||jt(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t},Bt=Ft,At=Ot;var Pt=function(e,t){for(var r=0,n=(t=Bt(t,e)).length;null!=e&&r<n;)e=e[At(t[r++])];return r&&r==n?e:void 0},zt=Pt;var It=function(e,t,r){var n=null==e?void 0:zt(e,t);return void 0===n?r:n};const Nt=(e,t,r)=>t?It(r,t)||It(e,t):r||e,Dt=(e,t)=>{const r=t||e.defaultValue;return It(e.collections,r)};var Et;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(Et||(Et={}));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"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},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"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},Mt=e=>t=>{const r=t.theme,n=Dt(Ht,r[Et.colorScheme]);return r.options&&r.options.color?Nt(n,e,r.options.color):Nt(n,e)},Vt={Brand:{1:Mt("Brand.1"),2:Mt("Brand.2"),3:Mt("Brand.3"),4:Mt("Brand.4"),5:Mt("Brand.5"),6:Mt("Brand.6")},Primary:Mt("Primary"),PrimaryDark:Mt("PrimaryDark"),Secondary:Mt("Secondary"),Accent:{Light:{1:Mt("Accent.Light.1"),2:Mt("Accent.Light.2"),3:Mt("Accent.Light.3"),4:Mt("Accent.Light.4"),5:Mt("Accent.Light.5"),6:Mt("Accent.Light.6")},Dark:{1:Mt("Accent.Dark.1"),2:Mt("Accent.Dark.2"),3:Mt("Accent.Dark.3")}},Neutral:{1:Mt("Neutral.1"),2:Mt("Neutral.2"),3:Mt("Neutral.3"),4:Mt("Neutral.4"),5:Mt("Neutral.5"),6:Mt("Neutral.6"),7:Mt("Neutral.7"),8:Mt("Neutral.8")},Validation:{Green:{Text:Mt("Validation.Green.Text"),Icon:Mt("Validation.Green.Icon"),Border:Mt("Validation.Green.Border"),Background:Mt("Validation.Green.Background")},Orange:{Text:Mt("Validation.Orange.Text"),Icon:Mt("Validation.Orange.Icon"),Border:Mt("Validation.Orange.Border"),Background:Mt("Validation.Orange.Background"),Badge:Mt("Validation.Orange.Badge")},Red:{Text:Mt("Validation.Red.Text"),Icon:Mt("Validation.Red.Icon"),Border:Mt("Validation.Red.Border"),Background:Mt("Validation.Red.Background")}},Shadow:{Accent:Mt("Shadow.Accent"),Red:Mt("Shadow.Red")}},Lt={collections:{base:{InputBoxShadow:g`
|
|
2
|
+
inset 0 0 6px 1px ${Vt.Shadow.Accent}
|
|
3
|
+
`,InputErrorBoxShadow:g`
|
|
4
|
+
inset 0 0 6px 1px ${Vt.Shadow.Red}
|
|
5
|
+
`}},defaultValue:"base"},Tt=e=>t=>{const r=t.theme,n=Dt(Lt,r[Et.designTokenScheme]);return r.options?.designToken?Nt(n,e,r.options.designToken):Nt(n,e)},Rt=Tt("InputBoxShadow"),Wt=Tt("InputErrorBoxShadow");var qt;!function(e){e.transformWithSpaces=(e,t)=>{const r="(.{"+t+"})";return e.replace(/[^\dA-Z]/gi,"").replace(new RegExp(r,"g"),"$1 ").trim()},e.padValue=(e,t)=>{if("0"===e)return t?e:e.padStart(2,"0");if(""===e)return e;return parseInt(e).toString().padStart(2,"0")},e.shouldTruncateToTwoLines=(e,t)=>{const r=Math.floor(t/9);return e.length>=2*r||1===e.split(" ").length&&e.length>r},e.truncateOneLine=(e,t,r,n)=>{let i=0;t>r&&(i=Math.floor((t-r)/8));const o=n+i;if(o<e.length){const t=Math.floor(o/2);return e.substring(0,t)+" ... "+e.substring(e.length-t,e.length)}return e}}(qt||(qt={}));var Ut,Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});var Zt=e;const Gt=e=>Zt.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Zt.jsx("path",{d:"M9.99991 11.229L5.97891 15.25C5.81224 15.4167 5.61091 15.4967 5.37491 15.49C5.13891 15.4827 4.93757 15.3957 4.77091 15.229C4.60424 15.0623 4.52091 14.8577 4.52091 14.615C4.52091 14.3717 4.60424 14.1667 4.77091 14L8.77091 10L4.74991 5.979C4.58324 5.81233 4.50324 5.60767 4.50991 5.365C4.51724 5.12167 4.60424 4.91667 4.77091 4.75C4.93757 4.58333 5.14224 4.5 5.38491 4.5C5.62824 4.5 5.83324 4.58333 5.99991 4.75L9.99991 8.771L14.0209 4.75C14.1876 4.58333 14.3922 4.5 14.6349 4.5C14.8782 4.5 15.0832 4.58333 15.2499 4.75C15.4166 4.91667 15.4999 5.12167 15.4999 5.365C15.4999 5.60767 15.4166 5.81233 15.2499 5.979L11.2289 10L15.2499 14.021C15.4166 14.1877 15.4999 14.389 15.4999 14.625C15.4999 14.861 15.4166 15.0623 15.2499 15.229C15.0832 15.3957 14.8782 15.479 14.6349 15.479C14.3922 15.479 14.1876 15.3957 14.0209 15.229L9.99991 11.229Z",fill:"currentColor"})});Gt.displayName="CrossIcon",Ut=Qt.CrossIcon=Gt;const Xt={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Kt={collections:{base:{D1:{fontFamily:Xt.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Xt.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Xt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Xt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Xt.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Xt.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Xt.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Xt.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Xt.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Xt.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Xt.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Xt.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Xt.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Xt.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Yt=e=>t=>{const r=t.theme,n=Dt(Kt,r[Et.textStyleScheme]);return r.options&&r.options.textStyle?Nt(n,e,r.options.textStyle):Nt(n,e)},Jt={D1:{fontFamily:Yt("D1.fontFamily"),fontSize:Yt("D1.fontSize"),fontWeight:Yt("D1.fontWeight"),lineHeight:Yt("D1.lineHeight"),letterSpacing:Yt("D1.letterSpacing")},D2:{fontFamily:Yt("D2.fontFamily"),fontSize:Yt("D2.fontSize"),fontWeight:Yt("D2.fontWeight"),lineHeight:Yt("D2.lineHeight"),letterSpacing:Yt("D2.letterSpacing")},D3:{fontFamily:Yt("D3.fontFamily"),fontSize:Yt("D3.fontSize"),fontWeight:Yt("D3.fontWeight"),lineHeight:Yt("D3.lineHeight"),letterSpacing:Yt("D3.letterSpacing")},D4:{fontFamily:Yt("D4.fontFamily"),fontSize:Yt("D4.fontSize"),fontWeight:Yt("D4.fontWeight"),lineHeight:Yt("D4.lineHeight"),letterSpacing:Yt("D4.letterSpacing")},DBody:{fontFamily:Yt("DBody.fontFamily"),fontSize:Yt("DBody.fontSize"),fontWeight:Yt("DBody.fontWeight"),lineHeight:Yt("DBody.lineHeight"),letterSpacing:Yt("DBody.letterSpacing")},H1:{fontFamily:Yt("H1.fontFamily"),fontSize:Yt("H1.fontSize"),fontWeight:Yt("H1.fontWeight"),lineHeight:Yt("H1.lineHeight"),letterSpacing:Yt("H1.letterSpacing")},H2:{fontFamily:Yt("H2.fontFamily"),fontSize:Yt("H2.fontSize"),fontWeight:Yt("H2.fontWeight"),lineHeight:Yt("H2.lineHeight"),letterSpacing:Yt("H2.letterSpacing")},H3:{fontFamily:Yt("H3.fontFamily"),fontSize:Yt("H3.fontSize"),fontWeight:Yt("H3.fontWeight"),lineHeight:Yt("H3.lineHeight"),letterSpacing:Yt("H3.letterSpacing")},H4:{fontFamily:Yt("H4.fontFamily"),fontSize:Yt("H4.fontSize"),fontWeight:Yt("H4.fontWeight"),lineHeight:Yt("H4.lineHeight"),letterSpacing:Yt("H4.letterSpacing")},H5:{fontFamily:Yt("H5.fontFamily"),fontSize:Yt("H5.fontSize"),fontWeight:Yt("H5.fontWeight"),lineHeight:Yt("H5.lineHeight"),letterSpacing:Yt("H5.letterSpacing")},H6:{fontFamily:Yt("H6.fontFamily"),fontSize:Yt("H6.fontSize"),fontWeight:Yt("H6.fontWeight"),lineHeight:Yt("H6.lineHeight"),letterSpacing:Yt("H6.letterSpacing")},Body:{fontFamily:Yt("Body.fontFamily"),fontSize:Yt("Body.fontSize"),fontWeight:Yt("Body.fontWeight"),lineHeight:Yt("Body.lineHeight"),letterSpacing:Yt("Body.letterSpacing")},BodySmall:{fontFamily:Yt("BodySmall.fontFamily"),fontSize:Yt("BodySmall.fontSize"),fontWeight:Yt("BodySmall.fontWeight"),lineHeight:Yt("BodySmall.lineHeight"),letterSpacing:Yt("BodySmall.letterSpacing")},XSmall:{fontFamily:Yt("XSmall.fontFamily"),fontSize:Yt("XSmall.fontSize"),fontWeight:Yt("XSmall.fontWeight"),lineHeight:Yt("XSmall.lineHeight"),letterSpacing:Yt("XSmall.letterSpacing")}},er=e=>{switch(e){case 700:case"bold":return Xt.Bold;case 600:case"semibold":return Xt.Semibold;case 300:case"light":return Xt.Light;case 400:case"regular":return Xt.Regular;default:return""}},tr=(e,t)=>r=>{const n=Jt[e].fontFamily(r),i=Jt[e].fontWeight(r);return Object.values(Xt).includes(n)?g`
|
|
6
|
+
font-family: ${er(t)||er(i)||n};
|
|
3
7
|
font-weight: normal !important;
|
|
4
8
|
`:g`
|
|
5
9
|
font-family: ${n};
|
|
6
|
-
font-weight: ${(
|
|
7
|
-
`},
|
|
8
|
-
${
|
|
10
|
+
font-weight: ${(rr(t)||i)??"normal"};
|
|
11
|
+
`},rr=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},nr=(e,t,r=!1)=>n=>{const i=Jt[e],o=i.fontSize(n);return g`
|
|
12
|
+
${tr(e,t)}
|
|
9
13
|
font-size: ${o}rem !important;
|
|
10
14
|
line-height: ${i.lineHeight}rem !important;
|
|
11
15
|
letter-spacing: ${i.letterSpacing(n)||0}rem !important;
|
|
12
16
|
${g`
|
|
13
17
|
margin-bottom: ${o*(r?1.05:0)}rem;
|
|
14
18
|
`}
|
|
15
|
-
`},
|
|
19
|
+
`},ir=(e=!1,t=!1)=>t?g`
|
|
16
20
|
display: block;
|
|
17
21
|
`:e?g`
|
|
18
22
|
display: inline;
|
|
19
23
|
`:g`
|
|
20
24
|
display: block;
|
|
21
|
-
`,
|
|
22
|
-
${
|
|
25
|
+
`,or=f.div`
|
|
26
|
+
${nr("Body","regular")}
|
|
23
27
|
border: 1px solid ${Vt.Neutral[5]};
|
|
24
28
|
border-radius: 4px;
|
|
25
29
|
display: flex;
|
|
@@ -33,7 +37,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
33
37
|
:focus-within {
|
|
34
38
|
outline: none;
|
|
35
39
|
border: 1px solid ${Vt.Accent.Light[1]};
|
|
36
|
-
box-shadow:
|
|
40
|
+
box-shadow: ${Rt};
|
|
37
41
|
}
|
|
38
42
|
|
|
39
43
|
::placeholder,
|
|
@@ -77,17 +81,17 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
77
81
|
|
|
78
82
|
:focus-within {
|
|
79
83
|
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
80
|
-
box-shadow:
|
|
84
|
+
box-shadow: ${Wt};
|
|
81
85
|
}
|
|
82
86
|
`:void 0}
|
|
83
|
-
`,
|
|
87
|
+
`,ar=f.input`
|
|
84
88
|
// overwrite default styles
|
|
85
89
|
background: transparent;
|
|
86
90
|
border: none;
|
|
87
91
|
height: 3rem;
|
|
88
92
|
width: 100%;
|
|
89
93
|
|
|
90
|
-
${
|
|
94
|
+
${nr("Body","regular")}
|
|
91
95
|
padding: 0.2rem 1rem 0.3rem; // Somehow the input text appears lower
|
|
92
96
|
|
|
93
97
|
:focus,
|
|
@@ -96,7 +100,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
96
100
|
border: none;
|
|
97
101
|
box-shadow: none;
|
|
98
102
|
}
|
|
99
|
-
`,
|
|
103
|
+
`,sr=f.button`
|
|
100
104
|
position: relative;
|
|
101
105
|
display: flex;
|
|
102
106
|
align-items: center;
|
|
@@ -106,96 +110,96 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
106
110
|
color: ${Vt.Neutral[3]};
|
|
107
111
|
background-color: transparent;
|
|
108
112
|
border: none;
|
|
109
|
-
`,
|
|
113
|
+
`,lr=f(Ut)`
|
|
110
114
|
height: 1.25rem;
|
|
111
115
|
width: 1.25rem;
|
|
112
|
-
`,
|
|
116
|
+
`,cr=o.forwardRef((({value:e,spacing:n,type:i,error:o,disabled:a,readOnly:s,onChange:l,onClear:c,allowClear:u=!1,...d},h)=>{const p=()=>"tel"===i&&n,f=e=>{const t=e.target,r=t.value,n=t.value.replace(/\s/g,"");t.value=n,l(e),t.value=r},g=e?(e=>e?p()?qt.transformWithSpaces(e,n):e:"")(e):e,m=l?e=>{p()?f(e):l(e)}:void 0,y=u&&!a&&!s&&!o;return t(or,{error:o,disabled:a,readOnly:s,className:d.className,children:[r(ar,{"data-testid":"input",ref:h,disabled:a,value:g,error:o,onChange:m,type:i,readOnly:s,...d}),y&&r(sr,{onClick:()=>{c&&c()},children:r(lr,{})})]})}));var ur,dr={};Object.defineProperty(dr,"__esModule",{value:!0});var hr=e;const pr=e=>hr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:hr.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});var fr;pr.displayName="ExternalIcon",ur=dr.ExternalIcon=pr,function(e){e.D1=f.h1`
|
|
113
117
|
${e=>g`
|
|
114
|
-
${
|
|
118
|
+
${nr("D1",e.weight,e.paragraph)}
|
|
115
119
|
color: ${Vt.Neutral[1]};
|
|
116
|
-
${
|
|
120
|
+
${ir(e.inline,e.paragraph)}
|
|
117
121
|
`}
|
|
118
122
|
`,e.D2=f.h1`
|
|
119
123
|
${e=>g`
|
|
120
|
-
${
|
|
124
|
+
${nr("D2",e.weight,e.paragraph)}
|
|
121
125
|
color: ${Vt.Neutral[1]};
|
|
122
|
-
${
|
|
126
|
+
${ir(e.inline,e.paragraph)}
|
|
123
127
|
`}
|
|
124
128
|
`,e.D3=f.h1`
|
|
125
129
|
${e=>g`
|
|
126
|
-
${
|
|
130
|
+
${nr("D3",e.weight,e.paragraph)}
|
|
127
131
|
color: ${Vt.Neutral[1]};
|
|
128
|
-
${
|
|
132
|
+
${ir(e.inline,e.paragraph)}
|
|
129
133
|
`}
|
|
130
134
|
`,e.D4=f.h1`
|
|
131
135
|
${e=>g`
|
|
132
|
-
${
|
|
136
|
+
${nr("D4",e.weight,e.paragraph)}
|
|
133
137
|
color: ${Vt.Neutral[1]};
|
|
134
|
-
${
|
|
138
|
+
${ir(e.inline,e.paragraph)}
|
|
135
139
|
`}
|
|
136
140
|
`,e.DBody=f.h1`
|
|
137
141
|
${e=>g`
|
|
138
|
-
${
|
|
142
|
+
${nr("DBody",e.weight,e.paragraph)}
|
|
139
143
|
color: ${Vt.Neutral[1]};
|
|
140
|
-
${
|
|
144
|
+
${ir(e.inline,e.paragraph)}
|
|
141
145
|
`}
|
|
142
146
|
`,e.H1=f.h1`
|
|
143
147
|
${e=>g`
|
|
144
|
-
${
|
|
148
|
+
${nr("H1",e.weight,e.paragraph)}
|
|
145
149
|
color: ${Vt.Neutral[1]};
|
|
146
|
-
${
|
|
150
|
+
${ir(e.inline,e.paragraph)}
|
|
147
151
|
`}
|
|
148
152
|
`,e.H2=f.h2`
|
|
149
153
|
${e=>g`
|
|
150
|
-
${
|
|
154
|
+
${nr("H2",e.weight,e.paragraph)}
|
|
151
155
|
color: ${Vt.Neutral[1]};
|
|
152
|
-
${
|
|
156
|
+
${ir(e.inline,e.paragraph)}
|
|
153
157
|
`}
|
|
154
158
|
`,e.H3=f.h3`
|
|
155
159
|
${e=>g`
|
|
156
|
-
${
|
|
160
|
+
${nr("H3",e.weight,e.paragraph)}
|
|
157
161
|
color: ${Vt.Neutral[1]};
|
|
158
|
-
${
|
|
162
|
+
${ir(e.inline,e.paragraph)}
|
|
159
163
|
`}
|
|
160
164
|
`,e.H4=f.h4`
|
|
161
165
|
${e=>g`
|
|
162
|
-
${
|
|
166
|
+
${nr("H4",e.weight,e.paragraph)}
|
|
163
167
|
color: ${Vt.Neutral[1]};
|
|
164
|
-
${
|
|
168
|
+
${ir(e.inline,e.paragraph)}
|
|
165
169
|
`}
|
|
166
170
|
`,e.H5=f.h5`
|
|
167
171
|
${e=>g`
|
|
168
|
-
${
|
|
172
|
+
${nr("H5",e.weight,e.paragraph)}
|
|
169
173
|
color: ${Vt.Neutral[1]};
|
|
170
|
-
${
|
|
174
|
+
${ir(e.inline,e.paragraph)}
|
|
171
175
|
`}
|
|
172
176
|
`,e.H6=f.h6`
|
|
173
177
|
${e=>g`
|
|
174
|
-
${
|
|
178
|
+
${nr("H6",e.weight,e.paragraph)}
|
|
175
179
|
color: ${Vt.Neutral[1]};
|
|
176
|
-
${
|
|
180
|
+
${ir(e.inline,e.paragraph)}
|
|
177
181
|
`}
|
|
178
182
|
`,e.Body=f.p`
|
|
179
183
|
${e=>g`
|
|
180
|
-
${
|
|
184
|
+
${nr("Body",e.weight,e.paragraph)}
|
|
181
185
|
color: ${Vt.Neutral[1]};
|
|
182
|
-
${
|
|
186
|
+
${ir(e.inline,e.paragraph)}
|
|
183
187
|
`}
|
|
184
188
|
`,e.BodySmall=f.p`
|
|
185
189
|
${e=>g`
|
|
186
|
-
${
|
|
190
|
+
${nr("BodySmall",e.weight,e.paragraph)}
|
|
187
191
|
color: ${Vt.Neutral[1]};
|
|
188
|
-
${
|
|
192
|
+
${ir(e.inline,e.paragraph)}
|
|
189
193
|
`}
|
|
190
194
|
`,e.XSmall=f.span`
|
|
191
195
|
${e=>g`
|
|
192
|
-
${
|
|
196
|
+
${nr("XSmall",e.weight,e.paragraph)}
|
|
193
197
|
color: ${Vt.Neutral[1]};
|
|
194
|
-
${
|
|
198
|
+
${ir(e.inline,e.paragraph)}
|
|
195
199
|
`}
|
|
196
|
-
`,e.Hyperlink={Default:e=>
|
|
200
|
+
`,e.Hyperlink={Default:e=>yr({...e,textStyle:"Body"}),Small:e=>yr({...e,textStyle:"BodySmall"})}}(fr||(fr={}));const gr=f.a`
|
|
197
201
|
${e=>g`
|
|
198
|
-
${
|
|
202
|
+
${nr(e.textStyle,e.weight)}
|
|
199
203
|
color: ${Vt.Primary};
|
|
200
204
|
text-decoration: none;
|
|
201
205
|
|
|
@@ -209,12 +213,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
209
213
|
}
|
|
210
214
|
}
|
|
211
215
|
`}
|
|
212
|
-
`,
|
|
216
|
+
`,mr=f(ur)`
|
|
213
217
|
height: 1rem;
|
|
214
218
|
width: 1rem;
|
|
215
219
|
margin-left: 0.4rem;
|
|
216
220
|
vertical-align: middle;
|
|
217
|
-
`,
|
|
221
|
+
`,yr=({external:e=!1,children:n,...i})=>t(gr,{...i,children:[n,e&&r(mr,{})]});var br;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(br||(br={}));const vr=f.div`
|
|
218
222
|
display: flex;
|
|
219
223
|
position: relative;
|
|
220
224
|
border: 1px solid ${Vt.Neutral[5]};
|
|
@@ -226,7 +230,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
226
230
|
|
|
227
231
|
:focus-within {
|
|
228
232
|
border: 1px solid ${Vt.Accent.Light[1]};
|
|
229
|
-
box-shadow:
|
|
233
|
+
box-shadow: ${Rt};
|
|
230
234
|
}
|
|
231
235
|
|
|
232
236
|
${e=>e.$readOnly?g`
|
|
@@ -253,10 +257,10 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
253
257
|
|
|
254
258
|
:focus-within {
|
|
255
259
|
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
256
|
-
box-shadow:
|
|
260
|
+
box-shadow: ${Wt};
|
|
257
261
|
}
|
|
258
262
|
`:void 0}
|
|
259
|
-
`,
|
|
263
|
+
`,wr=f(cr)`
|
|
260
264
|
// overwrite default styles
|
|
261
265
|
background: transparent;
|
|
262
266
|
border: none;
|
|
@@ -277,7 +281,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
277
281
|
padding-left: 0;
|
|
278
282
|
}
|
|
279
283
|
`}
|
|
280
|
-
`,
|
|
284
|
+
`,_r=f.div`
|
|
281
285
|
position: relative;
|
|
282
286
|
display: flex;
|
|
283
287
|
align-items: center;
|
|
@@ -285,7 +289,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
285
289
|
border-bottom-left-radius: 4px;
|
|
286
290
|
padding: 0 0.6875rem 0 1rem;
|
|
287
291
|
|
|
288
|
-
${
|
|
292
|
+
${nr("Body","regular")}
|
|
289
293
|
color: ${Vt.Neutral[1]};
|
|
290
294
|
|
|
291
295
|
/* SVG Icon */
|
|
@@ -307,19 +311,19 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
307
311
|
}
|
|
308
312
|
}
|
|
309
313
|
`:void 0}
|
|
310
|
-
`;var br=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},vr=Ue;var wr=Ue,_r=Qe,$r=ct;var xr=Ue,Sr=function(){this.__data__=new vr,this.size=0},Cr=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},kr=function(e){return this.__data__.get(e)},Fr=function(e){return this.__data__.has(e)},jr=function(e,t){var r=this.__data__;if(r instanceof wr){var n=r.__data__;if(!_r||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new $r(n)}return r.set(e,t),this.size=r.size,this};function Or(e){var t=this.__data__=new xr(e);this.size=t.size}Or.prototype.clear=Sr,Or.prototype.delete=Cr,Or.prototype.get=kr,Or.prototype.has=Fr,Or.prototype.set=jr;var Br=Or;var Ar=ct,Pr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},zr=function(e){return this.__data__.has(e)};function Ir(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Ar;++t<r;)this.add(e[t])}Ir.prototype.add=Ir.prototype.push=Pr,Ir.prototype.has=zr;var Dr=Ir,Nr=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},Hr=function(e,t){return e.has(t)};var Er=function(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Dr:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=a?n(g,f,d,t,e,o):n(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Nr(t,(function(e,t){if(!Hr(p,t)&&(f===e||i(f,e,r,n,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Mr=x.Uint8Array,Vr=Pe,Lr=Er,Tr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},Rr=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r},Wr=S?S.prototype:void 0,qr=Wr?Wr.valueOf:void 0;var Ur=function(e,t,r,n,i,o,a){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||!o(new Mr(e),new Mr(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return Vr(+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=Tr;case"[object Set]":var l=1&n;if(s||(s=Rr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=Lr(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(qr)return qr.call(e)==qr.call(t)}return!1};var Qr=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Zr=v;var Gr=function(e,t,r){var n=t(e);return Zr(e)?n:Qr(n,r(e))};var Xr=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},Kr=function(){return[]},Yr=Object.prototype.propertyIsEnumerable,Jr=Object.getOwnPropertySymbols,en=Jr?function(e){return null==e?[]:(e=Object(e),Xr(Jr(e),(function(t){return Yr.call(e,t)})))}:Kr;var tn=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},rn=D,nn=N;var on=function(e){return nn(e)&&"[object Arguments]"==rn(e)},an=N,sn=Object.prototype,ln=sn.hasOwnProperty,cn=sn.propertyIsEnumerable,un=on(function(){return arguments}())?on:function(e){return an(e)&&ln.call(e,"callee")&&!cn.call(e,"callee")},dn={exports:{}};var hn=function(){return!1};!function(e,t){var r=x,n=hn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(dn,dn.exports);var pn=/^(?:0|[1-9]\d*)$/;var fn=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&pn.test(e))&&e>-1&&e%1==0&&e<t};var gn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},mn=D,yn=gn,bn=N,vn={};vn["[object Float32Array]"]=vn["[object Float64Array]"]=vn["[object Int8Array]"]=vn["[object Int16Array]"]=vn["[object Int32Array]"]=vn["[object Uint8Array]"]=vn["[object Uint8ClampedArray]"]=vn["[object Uint16Array]"]=vn["[object Uint32Array]"]=!0,vn["[object Arguments]"]=vn["[object Array]"]=vn["[object ArrayBuffer]"]=vn["[object Boolean]"]=vn["[object DataView]"]=vn["[object Date]"]=vn["[object Error]"]=vn["[object Function]"]=vn["[object Map]"]=vn["[object Number]"]=vn["[object Object]"]=vn["[object RegExp]"]=vn["[object Set]"]=vn["[object String]"]=vn["[object WeakMap]"]=!1;var wn=function(e){return bn(e)&&yn(e.length)&&!!vn[mn(e)]};var _n=function(e){return function(t){return e(t)}},$n={exports:{}};!function(e,t){var r=w,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}($n,$n.exports);var xn=wn,Sn=_n,Cn=$n.exports,kn=Cn&&Cn.isTypedArray,Fn=kn?Sn(kn):xn,jn=tn,On=un,Bn=v,An=dn.exports,Pn=fn,zn=Fn,In=Object.prototype.hasOwnProperty;var Dn=function(e,t){var r=Bn(e),n=!r&&On(e),i=!r&&!n&&An(e),o=!r&&!n&&!i&&zn(e),a=r||n||i||o,s=a?jn(e.length,String):[],l=s.length;for(var c in e)!t&&!In.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Pn(c,l))||s.push(c);return s},Nn=Object.prototype;var Hn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Nn)};var En=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Mn=Hn,Vn=En,Ln=Object.prototype.hasOwnProperty;var Tn=G,Rn=gn;var Wn=Dn,qn=function(e){if(!Mn(e))return Vn(e);var t=[];for(var r in Object(e))Ln.call(e,r)&&"constructor"!=r&&t.push(r);return t},Un=function(e){return null!=e&&Rn(e.length)&&!Tn(e)};var Qn=function(e){return Un(e)?Wn(e):qn(e)},Zn=Gr,Gn=en,Xn=Qn;var Kn=function(e){return Zn(e,Xn,Gn)},Yn=Object.prototype.hasOwnProperty;var Jn=function(e,t,r,n,i,o){var a=1&r,s=Kn(e),l=s.length;if(l!=Kn(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:Yn.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var y=a?n(m,g,u,t,e,o):n(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p},ei=pe(x,"DataView"),ti=Qe,ri=pe(x,"Promise"),ni=pe(x,"Set"),ii=pe(x,"WeakMap"),oi=D,ai=ee,si=ai(ei),li=ai(ti),ci=ai(ri),ui=ai(ni),di=ai(ii),hi=oi;(ei&&"[object DataView]"!=hi(new ei(new ArrayBuffer(1)))||ti&&"[object Map]"!=hi(new ti)||ri&&"[object Promise]"!=hi(ri.resolve())||ni&&"[object Set]"!=hi(new ni)||ii&&"[object WeakMap]"!=hi(new ii))&&(hi=function(e){var t=oi(e),r="[object Object]"==t?e.constructor:void 0,n=r?ai(r):"";if(n)switch(n){case si:return"[object DataView]";case li:return"[object Map]";case ci:return"[object Promise]";case ui:return"[object Set]";case di:return"[object WeakMap]"}return t});var pi=Br,fi=Er,gi=Ur,mi=Jn,yi=hi,bi=v,vi=dn.exports,wi=Fn,_i="[object Object]",$i=Object.prototype.hasOwnProperty;var xi=function(e,t,r,n,i,o){var a=bi(e),s=bi(t),l=a?"[object Array]":yi(e),c=s?"[object Array]":yi(t),u=(l="[object Arguments]"==l?_i:l)==_i,d=(c="[object Arguments]"==c?_i:c)==_i,h=l==c;if(h&&vi(e)){if(!vi(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new pi),a||wi(e)?fi(e,t,r,n,i,o):gi(e,t,l,r,n,i,o);if(!(1&r)){var p=u&&$i.call(e,"__wrapped__"),f=d&&$i.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new pi),i(g,m,r,n,o)}}return!!h&&(o||(o=new pi),mi(e,t,r,n,i,o))},Si=N;var Ci=function e(t,r,n,i,o){return t===r||(null==t||null==r||!Si(t)&&!Si(r)?t!=t&&r!=r:xi(t,r,n,i,e,o))},ki=Br,Fi=Ci;var ji=q;var Oi=function(e){return e==e&&!ji(e)},Bi=Oi,Ai=Qn;var Pi=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},zi=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new ki;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Fi(u,c,3,n,d):h))return!1}}return!0},Ii=function(e){for(var t=Ai(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Bi(i)]}return t},Di=Pi;var Ni=Ft,Hi=un,Ei=v,Mi=fn,Vi=gn,Li=Ot;var Ti=function(e,t){return null!=e&&t in Object(e)},Ri=function(e,t,r){for(var n=-1,i=(t=Ni(t,e)).length,o=!1;++n<i;){var a=Li(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Vi(i)&&Mi(a,i)&&(Ei(e)||Hi(e))};var Wi=Ci,qi=It,Ui=function(e,t){return null!=e&&Ri(e,t,Ti)},Qi=W,Zi=Oi,Gi=Pi,Xi=Ot;var Ki=Pt;var Yi=function(e){return function(t){return null==t?void 0:t[e]}},Ji=function(e){return function(t){return Ki(t,e)}},eo=W,to=Ot;var ro=function(e){var t=Ii(e);return 1==t.length&&t[0][2]?Di(t[0][0],t[0][1]):function(r){return r===e||zi(r,e,t)}},no=function(e,t){return Qi(e)&&Zi(t)?Gi(Xi(e),t):function(r){var n=qi(r,e);return void 0===n&&n===t?Ui(r,e):Wi(t,n,3)}},io=function(e){return e},oo=v,ao=function(e){return eo(e)?Yi(to(e)):Ji(e)};var so=/\s/;var lo=function(e){for(var t=e.length;t--&&so.test(e.charAt(t)););return t},co=/^\s+/;var uo=function(e){return e?e.slice(0,lo(e)+1).replace(co,""):e},ho=q,po=M,fo=/^[-+]0x[0-9a-f]+$/i,go=/^0b[01]+$/i,mo=/^0o[0-7]+$/i,yo=parseInt;var bo=function(e){if("number"==typeof e)return e;if(po(e))return NaN;if(ho(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ho(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=uo(e);var r=go.test(e);return r||mo.test(e)?yo(e.slice(2),r?2:8):fo.test(e)?NaN:+e};var vo=function(e){return e?Infinity===(e=bo(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var wo=br,_o=function(e){return"function"==typeof e?e:null==e?io:"object"==typeof e?oo(e)?no(e[0],e[1]):ro(e):ao(e)},$o=function(e){var t=vo(e),r=t%1;return t==t?r?t-r:t:0},xo=Math.max;var So=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:$o(r);return i<0&&(i=xo(n+i,0)),wo(e,_o(t),i)};let Co=Lo();const ko=e=>Ho(e,Co);let Fo=Lo();ko.write=e=>Ho(e,Fo);let jo=Lo();ko.onStart=e=>Ho(e,jo);let Oo=Lo();ko.onFrame=e=>Ho(e,Oo);let Bo=Lo();ko.onFinish=e=>Ho(e,Bo);let Ao=[];ko.setTimeout=(e,t)=>{let r=ko.now()+t,n=()=>{let e=Ao.findIndex((e=>e.cancel==n));~e&&Ao.splice(e,1),Do-=~e?1:0},i={time:r,handler:e,cancel:n};return Ao.splice(Po(r),0,i),Do+=1,Eo(),i};let Po=e=>~(~Ao.findIndex((t=>t.time>e))||~Ao.length);ko.cancel=e=>{jo.delete(e),Oo.delete(e),Bo.delete(e),Co.delete(e),Fo.delete(e)},ko.sync=e=>{No=!0,ko.batchedUpdates(e),No=!1},ko.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,ko.onStart(r)}return n.handler=e,n.cancel=()=>{jo.delete(r),t=null},n};let zo="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ko.use=e=>zo=e,ko.now="undefined"!=typeof performance?()=>performance.now():Date.now,ko.batchedUpdates=e=>e(),ko.catch=console.error,ko.frameLoop="always",ko.advance=()=>{"demand"!==ko.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Vo()};let Io=-1,Do=0,No=!1;function Ho(e,t){No?(t.delete(e),e(0)):(t.add(e),Eo())}function Eo(){Io<0&&(Io=0,"demand"!==ko.frameLoop&&zo(Mo))}function Mo(){~Io&&(zo(Mo),ko.batchedUpdates(Vo))}function Vo(){let e=Io;Io=ko.now();let t=Po(Io);t&&(To(Ao.splice(0,t),(e=>e.handler())),Do-=t),Do?(jo.flush(),Co.flush(e?Math.min(64,Io-e):16.667),Oo.flush(),Fo.flush(),Bo.flush()):Io=-1}function Lo(){let e=new Set,t=e;return{add(r){Do+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Do-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Do-=t.size,To(t,(t=>t(r)&&e.add(t))),Do+=e.size,t=e)}}}function To(e,t){e.forEach((e=>{try{t(e)}catch(e){ko.catch(e)}}))}function Ro(){}const Wo={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 qo(e,t){if(Wo.arr(e)){if(!Wo.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 Uo=(e,t)=>e.forEach(t);function Qo(e,t,r){if(Wo.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 Zo=e=>Wo.und(e)?[]:Wo.arr(e)?e:[e];function Go(e,t){if(e.size){const r=Array.from(e);e.clear(),Uo(r,t)}}const Xo=(e,...t)=>Go(e,(e=>e(...t))),Ko=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Yo,Jo,ea=null,ta=!1,ra=Ro;var na=Object.freeze({__proto__:null,get createStringInterpolator(){return Yo},get to(){return Jo},get colors(){return ea},get skipAnimation(){return ta},get willAdvance(){return ra},assign:e=>{e.to&&(Jo=e.to),e.now&&(ko.now=e.now),void 0!==e.colors&&(ea=e.colors),null!=e.skipAnimation&&(ta=e.skipAnimation),e.createStringInterpolator&&(Yo=e.createStringInterpolator),e.requestAnimationFrame&&ko.use(e.requestAnimationFrame),e.batchedUpdates&&(ko.batchedUpdates=e.batchedUpdates),e.willAdvance&&(ra=e.willAdvance),e.frameLoop&&(ko.frameLoop=e.frameLoop)}});const ia=new Set;let oa=[],aa=[],sa=0;const la={get idle(){return!ia.size&&!oa.length},start(e){sa>e.priority?(ia.add(e),ko.onStart(ca)):(ua(e),ko(ha))},advance:ha,sort(e){if(sa)ko.onFrame((()=>la.sort(e)));else{const t=oa.indexOf(e);~t&&(oa.splice(t,1),da(e))}},clear(){oa=[],ia.clear()}};function ca(){ia.forEach(ua),ia.clear(),ko(ha)}function ua(e){oa.includes(e)||da(e)}function da(e){oa.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(oa,(t=>t.priority>e.priority)),0,e)}function ha(e){const t=aa;for(let r=0;r<oa.length;r++){const n=oa[r];sa=n.priority,n.idle||(ra(n),n.advance(e),n.idle||t.push(n))}return sa=0,aa=oa,aa.length=0,oa=t,oa.length>0}const pa="[-+]?\\d*\\.?\\d+";function fa(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const ga=new RegExp("rgb"+fa(pa,pa,pa)),ma=new RegExp("rgba"+fa(pa,pa,pa,pa)),ya=new RegExp("hsl"+fa(pa,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ba=new RegExp("hsla"+fa(pa,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",pa)),va=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,wa=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,_a=/^#([0-9a-fA-F]{6})$/,$a=/^#([0-9a-fA-F]{8})$/;function xa(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 Sa(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=xa(i,n,e+1/3),a=xa(i,n,e),s=xa(i,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Ca(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function ka(e){return(parseFloat(e)%360+360)%360/360}function Fa(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ja(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Oa(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=_a.exec(e))?parseInt(t[1]+"ff",16)>>>0:ea&&void 0!==ea[e]?ea[e]:(t=ga.exec(e))?(Ca(t[1])<<24|Ca(t[2])<<16|Ca(t[3])<<8|255)>>>0:(t=ma.exec(e))?(Ca(t[1])<<24|Ca(t[2])<<16|Ca(t[3])<<8|Fa(t[4]))>>>0:(t=va.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=$a.exec(e))?parseInt(t[1],16)>>>0:(t=wa.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ya.exec(e))?(255|Sa(ka(t[1]),ja(t[2]),ja(t[3])))>>>0:(t=ba.exec(e))?(Sa(ka(t[1]),ja(t[2]),ja(t[3]))|Fa(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 Ba=(e,t,r)=>{if(Wo.fun(e))return e;if(Wo.arr(e))return Ba({range:e,output:t,extrapolate:r});if(Wo.str(e.output[0]))return Yo(e);const n=e,i=n.output,o=n.range||[0,1],a=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,o);return function(e,t,r,n,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=o(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,n.map)}};function Aa(){return Aa=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},Aa.apply(this,arguments)}const Pa=Symbol.for("FluidValue.get"),za=Symbol.for("FluidValue.observers"),Ia=e=>Boolean(e&&e[Pa]),Da=e=>e&&e[Pa]?e[Pa]():e,Na=e=>e[za]||null;function Ha(e,t){let r=e[za];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ea{constructor(e){if(this[Pa]=void 0,this[za]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ma(this,e)}}const Ma=(e,t)=>Ta(e,Pa,t);function Va(e,t){if(e[Pa]){let r=e[za];r||Ta(e,za,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function La(e,t){let r=e[za];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[za]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Ta=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Ra=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Wa=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,qa=new RegExp(`(${Ra.source})(%|[a-z]+)`,"i"),Ua=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Qa=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Za=e=>{const[t,r]=Ga(e);if(!t||Ko())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&&Qa.test(r)?Za(r):r||e},Ga=e=>{const t=Qa.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let Xa;const Ka=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,Ya=e=>{Xa||(Xa=ea?new RegExp(`(${Object.keys(ea).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Da(e).replace(Qa,Za).replace(Wa,Oa).replace(Xa,Oa))),r=t.map((e=>e.match(Ra).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=>Ba(Aa({},e,{output:t}))));return e=>{var r;const i=!qa.test(t[0])&&(null==(r=t.find((e=>qa.test(e))))?void 0:r.replace(Ra,""));let o=0;return t[0].replace(Ra,(()=>`${n[o++](e)}${i||""}`)).replace(Ua,Ka)}},Ja="react-spring: ",es=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${Ja}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},ts=es(console.warn);const rs=es(console.warn);function ns(e){return Wo.str(e)&&("#"==e[0]||/\d/.test(e)||!Ko()&&Qa.test(e)||e in(ea||{}))}const is=Ko()?a:s;function os(){const e=l()[1],t=(()=>{const e=c(!1);return is((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const as=e=>a(e,ss),ss=[];function ls(e){const t=c();return a((()=>{t.current=e})),t.current}const cs=Symbol.for("Animated:node"),us=e=>e&&e[cs],ds=(e,t)=>{return r=e,n=cs,i=t,Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0});var r,n,i},hs=e=>e&&e[cs]&&e[cs].getPayload();class ps{constructor(){this.payload=void 0,ds(this,this)}getPayload(){return this.payload||[]}}class fs extends ps{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,Wo.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new fs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Wo.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,Wo.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class gs extends fs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Ba({output:[e,e]})}static create(e){return new gs(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Wo.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=Ba({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ms={dependencies:null};class ys extends ps{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Qo(this.source,((r,n)=>{var i;(i=r)&&i[cs]===i?t[n]=r.getValue(e):Ia(r)?t[n]=Da(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Uo(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Qo(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ms.dependencies&&Ia(e)&&ms.dependencies.add(e);const t=hs(e);t&&Uo(t,(e=>this.add(e)))}}class bs extends ys{constructor(e){super(e)}static create(e){return new bs(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(vs)),!0)}}function vs(e){return(ns(e)?gs:fs).create(e)}function ws(e){const t=us(e);return t?t.constructor:Wo.arr(e)?bs:ns(e)?gs:fs}function _s(){return _s=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},_s.apply(this,arguments)}const $s=(e,t)=>{const r=!Wo.fun(e)||e.prototype&&e.prototype.isReactComponent;return u(((n,o)=>{const s=c(null),l=r&&d((e=>{s.current=function(e,t){e&&(Wo.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,h]=function(e,t){const r=new Set;ms.dependencies=r,e.style&&(e=_s({},e,{style:t.createAnimatedStyle(e.style)}));return e=new ys(e),ms.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 xs(f,h),m=c();is((()=>(m.current=g,Uo(h,(e=>Va(e,g))),()=>{m.current&&(Uo(m.current.deps,(e=>La(e,m.current))),ko.cancel(m.current.update))}))),a(f,[]),as((()=>()=>{const e=m.current;Uo(e.deps,(t=>La(t,e)))}));const y=t.getComponentProps(u.getValue());return i.createElement(e,_s({},y,{ref:l}))}))};class xs{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ko.write(this.update)}}const Ss=Symbol.for("AnimatedComponent"),Cs=e=>Wo.str(e)?e:e&&Wo.str(e.displayName)?e.displayName:Wo.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 Fs(e,...t){return Wo.fun(e)?e(...t):e}const js=(e,t)=>!0===e||!!(t&&e&&(Wo.fun(e)?e(t):Zo(e).includes(t))),Os=(e,t)=>Wo.obj(e)?t&&e[t]:e,Bs=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,As=e=>e,Ps=(e,t=As)=>{let r=zs;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);Wo.und(r)||(n[i]=r)}return n},zs=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Is={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 Ds(e){const t=function(e){const t={};let r=0;if(Qo(e,((e,n)=>{Is[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Qo(e,((e,n)=>n in t||(r[n]=e))),r}return ks({},e)}function Ns(e){return e=Da(e),Wo.arr(e)?e.map(Ns):ns(e)?na.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hs(e){for(const t in e)return!0;return!1}function Es(e){return Wo.fun(e)||Wo.arr(e)&&Wo.obj(e[0])}function Ms(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function Vs(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const Ls=1.70158,Ts=1.525*Ls,Rs=2*Math.PI/3,Ws=2*Math.PI/4.5,qs=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},Us=ks({},{tension:170,friction:26},{mass:1,damping:1,easing:{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=>2.70158*e*e*e-Ls*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+Ls*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Ts)/2:(Math.pow(2*e-2,2)*((Ts+1)*(2*e-2)+Ts)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Rs),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Rs)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Ws)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Ws)/2+1,easeInBounce:e=>1-qs(1-e),easeOutBounce:qs,easeInOutBounce:e=>e<.5?(1-qs(1-2*e))/2:(1+qs(2*e-1))/2}.linear,clamp:!1});class Qs{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,Us)}}function Zs(e,t){if(Wo.und(t.decay)){const r=!Wo.und(t.tension)||!Wo.und(t.friction);!r&&Wo.und(t.frequency)&&Wo.und(t.damping)&&Wo.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const Gs=[];class Xs{constructor(){this.changed=!1,this.values=Gs,this.toValues=null,this.fromValues=Gs,this.to=void 0,this.from=void 0,this.config=new Qs,this.immediate=!1}}function Ks(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=js(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{Wo.und(r.pause)||(i.paused=js(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||js(e,t)),c=Fs(r.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-ko.now()}function p(){c>0&&!na.skipAnimation?(i.delayed=!0,u=ko.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(ks({},r,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Ys=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?tl(e.get()):t.every((e=>e.noop))?Js(e.get()):el(e.get(),t.every((e=>e.finished))),Js=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),el=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),tl=e=>({value:e,cancelled:!0,finished:!1});function rl(e,t,r,n){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=Ps(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(r.cancelId||0)&&tl(n)||i!==r.asyncId&&el(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new il,a=new ol;return(async()=>{if(na.skipAnimation)throw nl(r),a.result=el(n,!1),d(a),a;p(o);const s=Wo.obj(e)?ks({},e):ks({},t,{to:e});s.parentId=i,Qo(c,((e,t)=>{Wo.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(na.skipAnimation)return nl(r),el(n,!1);try{let t;t=Wo.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=el(n.get(),!0,!1)}catch(e){if(e instanceof il)g=e.result;else{if(!(e instanceof ol))throw e;g=e.result}}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return Wo.fun(a)&&ko.batchedUpdates((()=>{a(g,n,n.item)})),g})():l}function nl(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 il 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 ol extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const al=e=>e instanceof ll;let sl=1;class ll extends Ea{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=us(this);return e&&e.getValue()}to(...e){return na.to(this,e)}interpolate(...e){return ts(`${Ja}The "interpolate" function is deprecated in v9 (use "to" instead)`),na.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){Ha(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||la.sort(this),Ha(this,{type:"priority",parent:this,priority:e})}}const cl=Symbol.for("SpringPhase"),ul=e=>(1&e[cl])>0,dl=e=>(2&e[cl])>0,hl=e=>(4&e[cl])>0,pl=(e,t)=>t?e[cl]|=3:e[cl]&=-3,fl=(e,t)=>t?e[cl]|=4:e[cl]&=-5;class gl extends ll{constructor(e,t){if(super(),this.key=void 0,this.animation=new Xs,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,!Wo.und(e)||!Wo.und(t)){const r=Wo.obj(e)?ks({},e):ks({},t,{from:e});Wo.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(dl(this)||this._state.asyncTo)||hl(this)}get goal(){return Da(this.animation.to)}get velocity(){const e=us(this);return e instanceof fs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return ul(this)}get isAnimating(){return dl(this)}get isPaused(){return hl(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:o}=n;const a=hs(n.to);!a&&Ia(n.to)&&(o=Zo(Da(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==gs?1:a?a[l].lastPosition:o[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],o=null!=s.v0?s.v0:s.v0=Wo.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(Wo.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,n=i.clamp?0:i.bounce,l=!Wo.und(n),p=r==c?s.v0>0:r<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*n,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(c-r),a=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(r=!0)}));const s=us(this),l=s.getValue();if(t){const e=Da(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return ko.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(dl(this)){const{to:e,config:t}=this.animation;ko.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 Wo.und(e)?(r=this.queue||[],this.queue=[]):r=[Wo.obj(e)?e:ks({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>Ys(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),nl(this._state,e&&this._lastCallId),ko.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=Wo.obj(r)?r[t]:r,(null==r||Es(r))&&(r=void 0),n=Wo.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return ul(this)||(e.reverse&&([r,n]=[n,r]),n=Da(n),Wo.und(n)?us(this)||this._set(r):this._set(n)),i}_update(e,t){let r=ks({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,Ps(r,((e,t)=>/^on/.test(t)?Os(e,n):e))),$l(this,r,"onProps"),xl(this,"onProps",r,this);const o=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 a=this._state;return Ks(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{hl(this)||(fl(this,!0),Xo(a.pauseQueue),xl(this,"onPause",el(this,ml(this,this.animation.to)),this))},resume:()=>{hl(this)&&(fl(this,!1),dl(this)&&this._resume(),Xo(a.resumeQueue),xl(this,"onResume",el(this,ml(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=yl(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(tl(this));const n=!Wo.und(e.to),i=!Wo.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(tl(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||n||t.default&&!Wo.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!qo(d,c);h&&(s.from=d),d=Da(d);const p=!qo(u,l);p&&this._focus(u);const f=Es(t.to),{config:g}=s,{decay:m,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(Zs(r=ks({},r),t),t=ks({},r,t)),Zs(e,t),Object.assign(e,t);for(const t in Us)null==e[t]&&(e[t]=Us[t]);let{mass:n,frequency:i,damping:o}=e;Wo.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*o*n/i)}(g,Fs(t.config,o),t.config!==a.config?Fs(a.config,o):void 0);let b=us(this);if(!b||Wo.und(u))return r(el(this,!0));const v=Wo.und(t.reset)?i&&!t.default:!Wo.und(d)&&js(t.reset,o),w=v?d:this.get(),_=Ns(u),$=Wo.num(_)||Wo.arr(_)||ns(_),x=!f&&(!$||js(a.immediate||t.immediate,o));if(p){const e=ws(u);if(e!==b.constructor){if(!x)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const S=b.constructor;let C=Ia(u),k=!1;if(!C){const e=v||!ul(this)&&h;(p||e)&&(k=qo(Ns(w),_),C=!k),(qo(s.immediate,x)||x)&&qo(g.decay,m)&&qo(g.velocity,y)||(C=!0)}if(k&&dl(this)&&(s.changed&&!v?C=!0:C||this._stop(l)),!f&&((C||Ia(l))&&(s.values=b.getPayload(),s.toValues=Ia(u)?null:S==gs?[1]:Zo(_)),s.immediate!=x&&(s.immediate=x,x||v||this._set(l)),C)){const{onRest:e}=s;Uo(_l,(e=>$l(this,t,e)));const n=el(this,ml(this,l));Xo(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&ko.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?Fs(a.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(rl(t.to,t,this._state,this)):C?this._start():dl(this)&&!p?this._pendingCalls.add(r):r(Js(w))}_focus(e){const t=this.animation;e!==t.to&&(Na(this)&&this._detach(),t.to=e,Na(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ia(t)&&(Va(t,this),al(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ia(e)&&La(e,this)}_set(e,t=!0){const r=Da(e);if(!Wo.und(r)){const e=us(this);if(!e||!qo(r,e.getValue())){const n=ws(r);e&&e.constructor==n?e.setValue(r):ds(this,n.create(r)),e&&ko.batchedUpdates((()=>{this._onChange(r,t)}))}}return us(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,xl(this,"onStart",el(this,ml(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),Fs(this.animation.onChange,e,this)),Fs(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;us(this).reset(Da(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),dl(this)||(pl(this,!0),hl(this)||this._resume())}_resume(){na.skipAnimation?this.finish():la.start(this)}_stop(e,t){if(dl(this)){pl(this,!1);const r=this.animation;Uo(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),Ha(this,{type:"idle",parent:this});const n=t?tl(this.get()):el(this.get(),ml(this,null!=e?e:r.to));Xo(this._pendingCalls,n),r.changed&&(r.changed=!1,xl(this,"onRest",n,this))}}}function ml(e,t){const r=Ns(t);return qo(Ns(e.get()),r)}function yl(e,t=e.loop,r=e.to){let n=Fs(t);if(n){const i=!0!==n&&Ds(n),o=(i||e).reverse,a=!i||i.reset;return bl(ks({},e,{loop:t,default:!1,pause:void 0,to:!o||Es(r)?r:void 0,from:a?e.from:void 0,reset:a},i))}}function bl(e){const{to:t,from:r}=e=Ds(e),n=new Set;return Wo.obj(t)&&wl(t,n),Wo.obj(r)&&wl(r,n),e.keys=n.size?Array.from(n):null,e}function vl(e){const t=bl(e);return Wo.und(t.default)&&(t.default=Ps(t)),t}function wl(e,t){Qo(e,((e,r)=>null!=e&&t.add(r)))}const _l=["onStart","onRest","onChange","onPause","onResume"];function $l(e,t,r){e.animation[r]=t[r]!==Bs(t,r)?Os(t[r],e.key):void 0}function xl(e,t,...r){var n,i,o,a;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(o=(a=e.defaultProps)[t])||o.call(a,...r)}const Sl=["onStart","onChange","onRest"];let Cl=1;class kl{constructor(e,t){this.id=Cl++,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];Wo.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push(bl(e)),this}start(e){let{queue:t}=this;return e?t=Zo(e).map(bl):this.queue=[],this._flush?this._flush(this,t):(zl(this,t),Fl(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Uo(Zo(t),(t=>r[t].stop(!!e)))}else nl(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Wo.und(e))this.start({pause:!0});else{const t=this.springs;Uo(Zo(e),(e=>t[e].pause()))}return this}resume(e){if(Wo.und(e))this.start({pause:!1});else{const t=this.springs;Uo(Zo(e),(e=>t[e].resume()))}return this}each(e){Qo(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Go(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&Go(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Go(r,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}ko.onFrame(this._onFrame)}}function Fl(e,t){return Promise.all(t.map((t=>jl(e,t)))).then((t=>Ys(e,t)))}async function jl(e,t,r){const{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Wo.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Wo.arr(i)||Wo.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Uo(Sl,(r=>{const n=t[r];if(Wo.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.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,Xo(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===Bs(t,"cancel");(u||p&&d.asyncId)&&h.push(Ks(++e._lastAsyncId,{props:t,state:d,actions:{pause:Ro,resume:Ro,start(t,r){p?(nl(d,e._lastAsyncId),r(tl(e))):(t.onRest=s,r(rl(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ys(e,await Promise.all(h));if(a&&f.finished&&(!r||!f.noop)){const r=yl(t,a,i);if(r)return zl(e,[r]),jl(e,r,!0)}return l&&ko.batchedUpdates((()=>l(f,e,e.item))),f}function Ol(e,t){const r=ks({},e.springs);return t&&Uo(Zo(t),(e=>{Wo.und(e.keys)&&(e=bl(e)),Wo.obj(e.to)||(e=ks({},e,{to:void 0})),Pl(r,e,(e=>Al(e)))})),Bl(e,r),r}function Bl(e,t){Qo(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Va(t,e))}))}function Al(e,t){const r=new gl;return r.key=e,t&&Va(r,t),r}function Pl(e,t,r){t.keys&&Uo(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function zl(e,t){Uo(t,(t=>{Pl(e.springs,t,(t=>Al(t,e)))}))}const Il=["children"],Dl=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,Il);const n=h(Nl),o=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=l((()=>({inputs:t,result:e()}))),n=c(),i=n.current;let o=i;o?Boolean(t&&o.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,o.inputs))||(o={inputs:t,result:e()}):o=r;return a((()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:u}=Nl;return i.createElement(u,{value:r},t)},Nl=(Hl=Dl,El={},Object.assign(Hl,i.createContext(El)),Hl.Provider._context=Hl,Hl.Consumer._context=Hl,Hl);var Hl,El;Dl.Provider=Nl.Provider,Dl.Consumer=Nl.Consumer;const Ml=()=>{const e=[],t=function(t){rs(`${Ja}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 Uo(e,((e,i)=>{if(Wo.und(t))n.push(e.start());else{const o=r(t,e,i);o&&n.push(e.start(o))}})),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 Uo(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Uo(e,(e=>e.resume(...arguments))),this},t.set=function(t){Uo(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Uo(e,((e,n)=>{if(Wo.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return Uo(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Uo(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Wo.fun(e)?e(r,t):e};return t._getProps=r,t};function Vl(e,t,r){const n=Wo.fun(t)&&t;n&&!r&&(r=[]);const i=p((()=>n||3==arguments.length?Ml():void 0),[]),o=c(0),a=os(),s=p((()=>({ctrls:[],queue:[],flush(e,t){const r=Ol(e,t);return o.current>0&&!s.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Fl(e,t):new Promise((n=>{Bl(e,r),s.queue.push((()=>{n(Fl(e,t))})),a()}))}})),[]),l=c([...s.ctrls]),u=[],d=ls(e)||0;function f(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new kl(null,s.flush)),r=n?n(i,e):t[i];r&&(u[i]=vl(r))}}p((()=>{Uo(l.current.slice(e,d),(e=>{Ms(e,i),e.stop(!0)})),l.current.length=e,f(d,e)}),[e]),p((()=>{f(0,Math.min(d,e))}),r);const g=l.current.map(((e,t)=>Ol(e,u[t]))),m=h(Dl),y=ls(m),b=m!==y&&Hs(m);is((()=>{o.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],Uo(e,(e=>e()))),Uo(l.current,((e,t)=>{null==i||i.add(e),b&&e.start({default:m});const r=u[t];r&&(Vs(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),as((()=>()=>{Uo(s.ctrls,(e=>e.stop(!0)))}));const v=g.map((e=>ks({},e)));return i?[v,i]:v}let Ll;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ll||(Ll={}));class Tl extends ll{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Ba(...t);const r=this._get(),n=ws(r);ds(this,n.create(r))}advance(e){const t=this._get();qo(t,this.get())||(us(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Wl(this._active)&&ql(this)}_get(){const e=Wo.arr(this.source)?this.source.map(Da):Zo(Da(this.source));return this.calc(...e)}_start(){this.idle&&!Wl(this._active)&&(this.idle=!1,Uo(hs(this),(e=>{e.done=!1})),na.skipAnimation?(ko.batchedUpdates((()=>this.advance())),ql(this)):la.start(this))}_attach(){let e=1;Uo(Zo(this.source),(t=>{Ia(t)&&Va(t,this),al(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Uo(Zo(this.source),(e=>{Ia(e)&&La(e,this)})),this._active.clear(),ql(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=Zo(this.source).reduce(((e,t)=>Math.max(e,(al(t)?t.priority:0)+1)),0))}}function Rl(e){return!1!==e.idle}function Wl(e){return!e.size||Array.from(e).every(Rl)}function ql(e){e.idle||(e.idle=!0,Uo(hs(e),(e=>{e.done=!0})),Ha(e,{type:"idle",parent:e}))}function Ul(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}na.assign({createStringInterpolator:Ya,to:(e,t)=>new Tl(e,t)});const Ql=["style","children","scrollTop","scrollLeft"],Zl=/^--/;function Gl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Zl.test(e)||Kl.hasOwnProperty(e)&&Kl[e]?(""+t).trim():t+"px"}const Xl={};let Kl={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 Yl=["Webkit","Ms","Moz","O"];Kl=Object.keys(Kl).reduce(((e,t)=>(Yl.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),Kl);const Jl=["x","y","z"],ec=/^(matrix|translate|scale|rotate|skew)/,tc=/^(translate)/,rc=/^(rotate|skew)/,nc=(e,t)=>Wo.num(e)&&0!==e?e+t:e,ic=(e,t)=>Wo.arr(e)?e.every((e=>ic(e,t))):Wo.num(e)?e===t:parseFloat(e)===t;class oc extends ys{constructor(e){let{x:t,y:r,z:n}=e,i=Ul(e,Jl);const o=[],a=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>nc(e,"px"))).join(",")})`,ic(e,0)]))),Qo(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(ec.test(t)){if(delete i[t],Wo.und(e))return;const r=tc.test(t)?"px":rc.test(t)?"deg":"";o.push(Zo(e)),a.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${nc(i,r)})`,ic(i,0)]:e=>[`${t}(${e.map((e=>nc(e,r))).join(",")})`,ic(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new ac(o,a)),super(i)}}class ac extends Ea{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 Uo(this.inputs,((r,n)=>{const i=Da(r[0]),[o,a]=this.transforms[n](Wo.arr(i)?i:r.map(Da));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Uo(this.inputs,(e=>Uo(e,(e=>Ia(e)&&Va(e,this)))))}observerRemoved(e){0==e&&Uo(this.inputs,(e=>Uo(e,(e=>Ia(e)&&La(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ha(this,e)}}const sc=["scrollTop","scrollLeft"];na.assign({batchedUpdates:y,createStringInterpolator:Ya,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 lc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new ys(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=Cs(e)||"Anonymous";return(e=Wo.str(e)?o[e]||(o[e]=$s(e,i)):e[Ss]||(e[Ss]=$s(e,i))).displayName=`Animated(${t})`,e};return Qo(e,((t,r)=>{Wo.arr(e)&&(r=Cs(t)),o[r]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=n,l=Ul(n,Ql),c=Object.values(l),u=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:Xl[t]||(Xl[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const r=Gl(t,i[t]);Zl.test(t)?e.style.setProperty(t,r):e.style[t]=r}u.forEach(((t,r)=>{e.setAttribute(t,c[r])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new oc(e),getComponentProps:e=>Ul(e,sc)}),cc=lc.animated,uc={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},dc=e=>Object.keys(uc).reduce(((t,r)=>{const n=uc[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),hc=dc("max-width"),pc=(dc("min-width"),f.div`
|
|
314
|
+
`;var $r=function(e,t,r,n){for(var i=e.length,o=r+(n?1:-1);n?o--:++o<i;)if(t(e[o],o,e))return o;return-1},xr=Ue;var Sr=Ue,Cr=Qe,kr=ct;var Fr=Ue,jr=function(){this.__data__=new xr,this.size=0},Or=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Br=function(e){return this.__data__.get(e)},Ar=function(e){return this.__data__.has(e)},Pr=function(e,t){var r=this.__data__;if(r instanceof Sr){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 zr(e){var t=this.__data__=new Fr(e);this.size=t.size}zr.prototype.clear=jr,zr.prototype.delete=Or,zr.prototype.get=Br,zr.prototype.has=Ar,zr.prototype.set=Pr;var Ir=zr;var Nr=ct,Dr=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Er=function(e){return this.__data__.has(e)};function Hr(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new Nr;++t<r;)this.add(e[t])}Hr.prototype.add=Hr.prototype.push=Dr,Hr.prototype.has=Er;var Mr=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 Tr=function(e,t,r,n,i,o){var a=1&r,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e),u=o.get(t);if(c&&u)return c==t&&u==e;var d=-1,h=!0,p=2&r?new Mr:void 0;for(o.set(e,t),o.set(t,e);++d<s;){var f=e[d],g=t[d];if(n)var m=a?n(g,f,d,t,e,o):n(f,g,d,e,t,o);if(void 0!==m){if(m)continue;h=!1;break}if(p){if(!Vr(t,(function(e,t){if(!Lr(p,t)&&(f===e||i(f,e,r,n,o)))return p.push(t)}))){h=!1;break}}else if(f!==g&&!i(f,g,r,n,o)){h=!1;break}}return o.delete(e),o.delete(t),h};var Rr=x.Uint8Array,Wr=Pe,qr=Tr,Ur=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=S?S.prototype:void 0,Gr=Zr?Zr.valueOf:void 0;var Xr=function(e,t,r,n,i,o,a){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||!o(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=Qr),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;n|=2,a.set(e,t);var u=qr(s(e),s(t),n,i,o,a);return a.delete(e),u;case"[object Symbol]":if(Gr)return Gr.call(e)==Gr.call(t)}return!1};var Kr=function(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e},Yr=v;var Jr=function(e,t,r){var n=t(e);return Yr(e)?n:Kr(n,r(e))};var en=function(e,t){for(var r=-1,n=null==e?0:e.length,i=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[i++]=a)}return o},tn=function(){return[]},rn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols,on=nn?function(e){return null==e?[]:(e=Object(e),en(nn(e),(function(t){return rn.call(e,t)})))}:tn;var an=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},sn=N,ln=D;var cn=function(e){return ln(e)&&"[object Arguments]"==sn(e)},un=D,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=x,n=mn,i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=(a?a.isBuffer:void 0)||n;e.exports=s}(gn,gn.exports);var yn=/^(?:0|[1-9]\d*)$/;var bn=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 vn=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},wn=N,_n=vn,$n=D,xn={};xn["[object Float32Array]"]=xn["[object Float64Array]"]=xn["[object Int8Array]"]=xn["[object Int16Array]"]=xn["[object Int32Array]"]=xn["[object Uint8Array]"]=xn["[object Uint8ClampedArray]"]=xn["[object Uint16Array]"]=xn["[object Uint32Array]"]=!0,xn["[object Arguments]"]=xn["[object Array]"]=xn["[object ArrayBuffer]"]=xn["[object Boolean]"]=xn["[object DataView]"]=xn["[object Date]"]=xn["[object Error]"]=xn["[object Function]"]=xn["[object Map]"]=xn["[object Number]"]=xn["[object Object]"]=xn["[object RegExp]"]=xn["[object Set]"]=xn["[object String]"]=xn["[object WeakMap]"]=!1;var Sn=function(e){return $n(e)&&_n(e.length)&&!!xn[wn(e)]};var Cn=function(e){return function(t){return e(t)}},kn={exports:{}};!function(e,t){var r=w,n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a}(kn,kn.exports);var Fn=Sn,jn=Cn,On=kn.exports,Bn=On&&On.isTypedArray,An=Bn?jn(Bn):Fn,Pn=an,zn=fn,In=v,Nn=gn.exports,Dn=bn,En=An,Hn=Object.prototype.hasOwnProperty;var Mn=function(e,t){var r=In(e),n=!r&&zn(e),i=!r&&!n&&Nn(e),o=!r&&!n&&!i&&En(e),a=r||n||i||o,s=a?Pn(e.length,String):[],l=s.length;for(var c in e)!t&&!Hn.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Dn(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 Tn=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),Rn=Ln,Wn=Tn,qn=Object.prototype.hasOwnProperty;var Un=G,Qn=vn;var Zn=Mn,Gn=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=function(e){return null!=e&&Qn(e.length)&&!Un(e)};var Kn=function(e){return Xn(e)?Zn(e):Gn(e)},Yn=Jr,Jn=on,ei=Kn;var ti=function(e){return Yn(e,ei,Jn)},ri=Object.prototype.hasOwnProperty;var ni=function(e,t,r,n,i,o){var a=1&r,s=ti(e),l=s.length;if(l!=ti(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:ri.call(t,u)))return!1}var d=o.get(e),h=o.get(t);if(d&&h)return d==t&&h==e;var p=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var g=e[u=s[c]],m=t[u];if(n)var y=a?n(m,g,u,t,e,o):n(g,m,u,e,t,o);if(!(void 0===y?g===m||i(g,m,r,n,o):y)){p=!1;break}f||(f="constructor"==u)}if(p&&!f){var b=e.constructor,v=t.constructor;b==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(p=!1)}return o.delete(e),o.delete(t),p},ii=pe(x,"DataView"),oi=Qe,ai=pe(x,"Promise"),si=pe(x,"Set"),li=pe(x,"WeakMap"),ci=N,ui=ee,di=ui(ii),hi=ui(oi),pi=ui(ai),fi=ui(si),gi=ui(li),mi=ci;(ii&&"[object DataView]"!=mi(new ii(new ArrayBuffer(1)))||oi&&"[object Map]"!=mi(new oi)||ai&&"[object Promise]"!=mi(ai.resolve())||si&&"[object Set]"!=mi(new si)||li&&"[object WeakMap]"!=mi(new li))&&(mi=function(e){var t=ci(e),r="[object Object]"==t?e.constructor:void 0,n=r?ui(r):"";if(n)switch(n){case di:return"[object DataView]";case hi:return"[object Map]";case pi:return"[object Promise]";case fi:return"[object Set]";case gi:return"[object WeakMap]"}return t});var yi=Ir,bi=Tr,vi=Xr,wi=ni,_i=mi,$i=v,xi=gn.exports,Si=An,Ci="[object Object]",ki=Object.prototype.hasOwnProperty;var Fi=function(e,t,r,n,i,o){var a=$i(e),s=$i(t),l=a?"[object Array]":_i(e),c=s?"[object Array]":_i(t),u=(l="[object Arguments]"==l?Ci:l)==Ci,d=(c="[object Arguments]"==c?Ci:c)==Ci,h=l==c;if(h&&xi(e)){if(!xi(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new yi),a||Si(e)?bi(e,t,r,n,i,o):vi(e,t,l,r,n,i,o);if(!(1&r)){var p=u&&ki.call(e,"__wrapped__"),f=d&&ki.call(t,"__wrapped__");if(p||f){var g=p?e.value():e,m=f?t.value():t;return o||(o=new yi),i(g,m,r,n,o)}}return!!h&&(o||(o=new yi),wi(e,t,r,n,i,o))},ji=D;var Oi=function e(t,r,n,i,o){return t===r||(null==t||null==r||!ji(t)&&!ji(r)?t!=t&&r!=r:Fi(t,r,n,i,e,o))},Bi=Ir,Ai=Oi;var Pi=q;var zi=function(e){return e==e&&!Pi(e)},Ii=zi,Ni=Kn;var Di=function(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}},Ei=function(e,t,r,n){var i=r.length,o=i,a=!n;if(null==e)return!o;for(e=Object(e);i--;){var s=r[i];if(a&&s[2]?s[1]!==e[s[0]]:!(s[0]in e))return!1}for(;++i<o;){var l=(s=r[i])[0],c=e[l],u=s[1];if(a&&s[2]){if(void 0===c&&!(l in e))return!1}else{var d=new Bi;if(n)var h=n(c,u,l,e,t,d);if(!(void 0===h?Ai(u,c,3,n,d):h))return!1}}return!0},Hi=function(e){for(var t=Ni(e),r=t.length;r--;){var n=t[r],i=e[n];t[r]=[n,i,Ii(i)]}return t},Mi=Di;var Vi=Ft,Li=fn,Ti=v,Ri=bn,Wi=vn,qi=Ot;var Ui=function(e,t){return null!=e&&t in Object(e)},Qi=function(e,t,r){for(var n=-1,i=(t=Vi(t,e)).length,o=!1;++n<i;){var a=qi(t[n]);if(!(o=null!=e&&r(e,a)))break;e=e[a]}return o||++n!=i?o:!!(i=null==e?0:e.length)&&Wi(i)&&Ri(a,i)&&(Ti(e)||Li(e))};var Zi=Oi,Gi=It,Xi=function(e,t){return null!=e&&Qi(e,t,Ui)},Ki=W,Yi=zi,Ji=Di,eo=Ot;var to=Pt;var ro=function(e){return function(t){return null==t?void 0:t[e]}},no=function(e){return function(t){return to(t,e)}},io=W,oo=Ot;var ao=function(e){var t=Hi(e);return 1==t.length&&t[0][2]?Mi(t[0][0],t[0][1]):function(r){return r===e||Ei(r,e,t)}},so=function(e,t){return Ki(e)&&Yi(t)?Ji(eo(e),t):function(r){var n=Gi(r,e);return void 0===n&&n===t?Xi(r,e):Zi(t,n,3)}},lo=function(e){return e},co=v,uo=function(e){return io(e)?ro(oo(e)):no(e)};var ho=/\s/;var po=function(e){for(var t=e.length;t--&&ho.test(e.charAt(t)););return t},fo=/^\s+/;var go=function(e){return e?e.slice(0,po(e)+1).replace(fo,""):e},mo=q,yo=M,bo=/^[-+]0x[0-9a-f]+$/i,vo=/^0b[01]+$/i,wo=/^0o[0-7]+$/i,_o=parseInt;var $o=function(e){if("number"==typeof e)return e;if(yo(e))return NaN;if(mo(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=mo(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=go(e);var r=vo.test(e);return r||wo.test(e)?_o(e.slice(2),r?2:8):bo.test(e)?NaN:+e};var xo=function(e){return e?Infinity===(e=$o(e))||-Infinity===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0};var So=$r,Co=function(e){return"function"==typeof e?e:null==e?lo:"object"==typeof e?co(e)?so(e[0],e[1]):ao(e):uo(e)},ko=function(e){var t=xo(e),r=t%1;return t==t?r?t-r:t:0},Fo=Math.max;var jo=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var i=null==r?0:ko(r);return i<0&&(i=Fo(n+i,0)),So(e,Co(t),i)};let Oo=qo();const Bo=e=>Lo(e,Oo);let Ao=qo();Bo.write=e=>Lo(e,Ao);let Po=qo();Bo.onStart=e=>Lo(e,Po);let zo=qo();Bo.onFrame=e=>Lo(e,zo);let Io=qo();Bo.onFinish=e=>Lo(e,Io);let No=[];Bo.setTimeout=(e,t)=>{let r=Bo.now()+t,n=()=>{let e=No.findIndex((e=>e.cancel==n));~e&&No.splice(e,1),Mo-=~e?1:0},i={time:r,handler:e,cancel:n};return No.splice(Do(r),0,i),Mo+=1,To(),i};let Do=e=>~(~No.findIndex((t=>t.time>e))||~No.length);Bo.cancel=e=>{Po.delete(e),zo.delete(e),Io.delete(e),Oo.delete(e),Ao.delete(e)},Bo.sync=e=>{Vo=!0,Bo.batchedUpdates(e),Vo=!1},Bo.throttle=e=>{let t;function r(){try{e(...t)}finally{t=null}}function n(...e){t=e,Bo.onStart(r)}return n.handler=e,n.cancel=()=>{Po.delete(r),t=null},n};let Eo="undefined"!=typeof window?window.requestAnimationFrame:()=>{};Bo.use=e=>Eo=e,Bo.now="undefined"!=typeof performance?()=>performance.now():Date.now,Bo.batchedUpdates=e=>e(),Bo.catch=console.error,Bo.frameLoop="always",Bo.advance=()=>{"demand"!==Bo.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Wo()};let Ho=-1,Mo=0,Vo=!1;function Lo(e,t){Vo?(t.delete(e),e(0)):(t.add(e),To())}function To(){Ho<0&&(Ho=0,"demand"!==Bo.frameLoop&&Eo(Ro))}function Ro(){~Ho&&(Eo(Ro),Bo.batchedUpdates(Wo))}function Wo(){let e=Ho;Ho=Bo.now();let t=Do(Ho);t&&(Uo(No.splice(0,t),(e=>e.handler())),Mo-=t),Mo?(Po.flush(),Oo.flush(e?Math.min(64,Ho-e):16.667),zo.flush(),Ao.flush(),Io.flush()):Ho=-1}function qo(){let e=new Set,t=e;return{add(r){Mo+=t!=e||e.has(r)?0:1,e.add(r)},delete:r=>(Mo-=t==e&&e.has(r)?1:0,e.delete(r)),flush(r){t.size&&(e=new Set,Mo-=t.size,Uo(t,(t=>t(r)&&e.add(t))),Mo+=e.size,t=e)}}}function Uo(e,t){e.forEach((e=>{try{t(e)}catch(e){Bo.catch(e)}}))}function Qo(){}const Zo={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 Go(e,t){if(Zo.arr(e)){if(!Zo.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 Xo=(e,t)=>e.forEach(t);function Ko(e,t,r){if(Zo.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 Yo=e=>Zo.und(e)?[]:Zo.arr(e)?e:[e];function Jo(e,t){if(e.size){const r=Array.from(e);e.clear(),Xo(r,t)}}const ea=(e,...t)=>Jo(e,(e=>e(...t))),ta=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let ra,na,ia=null,oa=!1,aa=Qo;var sa=Object.freeze({__proto__:null,get createStringInterpolator(){return ra},get to(){return na},get colors(){return ia},get skipAnimation(){return oa},get willAdvance(){return aa},assign:e=>{e.to&&(na=e.to),e.now&&(Bo.now=e.now),void 0!==e.colors&&(ia=e.colors),null!=e.skipAnimation&&(oa=e.skipAnimation),e.createStringInterpolator&&(ra=e.createStringInterpolator),e.requestAnimationFrame&&Bo.use(e.requestAnimationFrame),e.batchedUpdates&&(Bo.batchedUpdates=e.batchedUpdates),e.willAdvance&&(aa=e.willAdvance),e.frameLoop&&(Bo.frameLoop=e.frameLoop)}});const la=new Set;let ca=[],ua=[],da=0;const ha={get idle(){return!la.size&&!ca.length},start(e){da>e.priority?(la.add(e),Bo.onStart(pa)):(fa(e),Bo(ma))},advance:ma,sort(e){if(da)Bo.onFrame((()=>ha.sort(e)));else{const t=ca.indexOf(e);~t&&(ca.splice(t,1),ga(e))}},clear(){ca=[],la.clear()}};function pa(){la.forEach(fa),la.clear(),Bo(ma)}function fa(e){ca.includes(e)||ga(e)}function ga(e){ca.splice(function(e,t){const r=e.findIndex(t);return r<0?e.length:r}(ca,(t=>t.priority>e.priority)),0,e)}function ma(e){const t=ua;for(let r=0;r<ca.length;r++){const n=ca[r];da=n.priority,n.idle||(aa(n),n.advance(e),n.idle||t.push(n))}return da=0,ua=ca,ua.length=0,ca=t,ca.length>0}const ya="[-+]?\\d*\\.?\\d+";function ba(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const va=new RegExp("rgb"+ba(ya,ya,ya)),wa=new RegExp("rgba"+ba(ya,ya,ya,ya)),_a=new RegExp("hsl"+ba(ya,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),$a=new RegExp("hsla"+ba(ya,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",ya)),xa=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Sa=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,Ca=/^#([0-9a-fA-F]{6})$/,ka=/^#([0-9a-fA-F]{8})$/;function Fa(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 ja(e,t,r){const n=r<.5?r*(1+t):r+t-r*t,i=2*r-n,o=Fa(i,n,e+1/3),a=Fa(i,n,e),s=Fa(i,n,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Oa(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Ba(e){return(parseFloat(e)%360+360)%360/360}function Aa(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Pa(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function za(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=Ca.exec(e))?parseInt(t[1]+"ff",16)>>>0:ia&&void 0!==ia[e]?ia[e]:(t=va.exec(e))?(Oa(t[1])<<24|Oa(t[2])<<16|Oa(t[3])<<8|255)>>>0:(t=wa.exec(e))?(Oa(t[1])<<24|Oa(t[2])<<16|Oa(t[3])<<8|Aa(t[4]))>>>0:(t=xa.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ka.exec(e))?parseInt(t[1],16)>>>0:(t=Sa.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=_a.exec(e))?(255|ja(Ba(t[1]),Pa(t[2]),Pa(t[3])))>>>0:(t=$a.exec(e))?(ja(Ba(t[1]),Pa(t[2]),Pa(t[3]))|Aa(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 Ia=(e,t,r)=>{if(Zo.fun(e))return e;if(Zo.arr(e))return Ia({range:e,output:t,extrapolate:r});if(Zo.str(e.output[0]))return ra(e);const n=e,i=n.output,o=n.range||[0,1],a=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,o);return function(e,t,r,n,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>r){if("identity"===s)return c;"clamp"===s&&(c=r)}if(n===i)return n;if(t===r)return e<=t?n:i;t===-1/0?c=-c:r===1/0?c-=t:c=(c-t)/(r-t);c=o(c),n===-1/0?c=-c:i===1/0?c+=n:c=c*(i-n)+n;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,n.map)}};function Na(){return Na=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},Na.apply(this,arguments)}const Da=Symbol.for("FluidValue.get"),Ea=Symbol.for("FluidValue.observers"),Ha=e=>Boolean(e&&e[Da]),Ma=e=>e&&e[Da]?e[Da]():e,Va=e=>e[Ea]||null;function La(e,t){let r=e[Ea];r&&r.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ta{constructor(e){if(this[Da]=void 0,this[Ea]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Ra(this,e)}}const Ra=(e,t)=>Ua(e,Da,t);function Wa(e,t){if(e[Da]){let r=e[Ea];r||Ua(e,Ea,r=new Set),r.has(t)||(r.add(t),e.observerAdded&&e.observerAdded(r.size,t))}return t}function qa(e,t){let r=e[Ea];if(r&&r.has(t)){const n=r.size-1;n?r.delete(t):e[Ea]=null,e.observerRemoved&&e.observerRemoved(n,t)}}const Ua=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,configurable:!0}),Qa=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Za=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ga=new RegExp(`(${Qa.source})(%|[a-z]+)`,"i"),Xa=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Ka=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Ya=e=>{const[t,r]=Ja(e);if(!t||ta())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&&Ka.test(r)?Ya(r):r||e},Ja=e=>{const t=Ka.exec(e);if(!t)return[,];const[,r,n]=t;return[r,n]};let es;const ts=(e,t,r,n,i)=>`rgba(${Math.round(t)}, ${Math.round(r)}, ${Math.round(n)}, ${i})`,rs=e=>{es||(es=ia?new RegExp(`(${Object.keys(ia).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ma(e).replace(Ka,Ya).replace(Za,za).replace(es,za))),r=t.map((e=>e.match(Qa).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=>Ia(Na({},e,{output:t}))));return e=>{var r;const i=!Ga.test(t[0])&&(null==(r=t.find((e=>Ga.test(e))))?void 0:r.replace(Qa,""));let o=0;return t[0].replace(Qa,(()=>`${n[o++](e)}${i||""}`)).replace(Xa,ts)}},ns="react-spring: ",is=e=>{const t=e;let r=!1;if("function"!=typeof t)throw new TypeError(`${ns}once requires a function parameter`);return(...e)=>{r||(t(...e),r=!0)}},os=is(console.warn);const as=is(console.warn);function ss(e){return Zo.str(e)&&("#"==e[0]||/\d/.test(e)||!ta()&&Ka.test(e)||e in(ia||{}))}const ls=ta()?a:s;function cs(){const e=l()[1],t=(()=>{const e=c(!1);return ls((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const us=e=>a(e,ds),ds=[];function hs(e){const t=c();return a((()=>{t.current=e})),t.current}const ps=Symbol.for("Animated:node"),fs=e=>e&&e[ps],gs=(e,t)=>{return r=e,n=ps,i=t,Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0});var r,n,i},ms=e=>e&&e[ps]&&e[ps].getPayload();class ys{constructor(){this.payload=void 0,gs(this,this)}getPayload(){return this.payload||[]}}class bs extends ys{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,Zo.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new bs(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Zo.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,Zo.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class vs extends bs{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Ia({output:[e,e]})}static create(e){return new vs(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Zo.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=Ia({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ws={dependencies:null};class _s extends ys{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ko(this.source,((r,n)=>{var i;(i=r)&&i[ps]===i?t[n]=r.getValue(e):Ha(r)?t[n]=Ma(r):e||(t[n]=r)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Xo(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ko(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ws.dependencies&&Ha(e)&&ws.dependencies.add(e);const t=ms(e);t&&Xo(t,(e=>this.add(e)))}}class $s extends _s{constructor(e){super(e)}static create(e){return new $s(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(xs)),!0)}}function xs(e){return(ss(e)?vs:bs).create(e)}function Ss(e){const t=fs(e);return t?t.constructor:Zo.arr(e)?$s:ss(e)?vs:bs}function Cs(){return Cs=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},Cs.apply(this,arguments)}const ks=(e,t)=>{const r=!Zo.fun(e)||e.prototype&&e.prototype.isReactComponent;return u(((n,o)=>{const s=c(null),l=r&&d((e=>{s.current=function(e,t){e&&(Zo.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,h]=function(e,t){const r=new Set;ws.dependencies=r,e.style&&(e=Cs({},e,{style:t.createAnimatedStyle(e.style)}));return e=new _s(e),ws.dependencies=null,[e,r]}(n,t),p=cs(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&p()},g=new Fs(f,h),m=c();ls((()=>(m.current=g,Xo(h,(e=>Wa(e,g))),()=>{m.current&&(Xo(m.current.deps,(e=>qa(e,m.current))),Bo.cancel(m.current.update))}))),a(f,[]),us((()=>()=>{const e=m.current;Xo(e.deps,(t=>qa(t,e)))}));const y=t.getComponentProps(u.getValue());return i.createElement(e,Cs({},y,{ref:l}))}))};class Fs{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&Bo.write(this.update)}}const js=Symbol.for("AnimatedComponent"),Os=e=>Zo.str(e)?e:e&&Zo.str(e.displayName)?e.displayName:Zo.fun(e)&&e.name||null;function Bs(){return Bs=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},Bs.apply(this,arguments)}function As(e,...t){return Zo.fun(e)?e(...t):e}const Ps=(e,t)=>!0===e||!!(t&&e&&(Zo.fun(e)?e(t):Yo(e).includes(t))),zs=(e,t)=>Zo.obj(e)?t&&e[t]:e,Is=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Ns=e=>e,Ds=(e,t=Ns)=>{let r=Es;e.default&&!0!==e.default&&(e=e.default,r=Object.keys(e));const n={};for(const i of r){const r=t(e[i],i);Zo.und(r)||(n[i]=r)}return n},Es=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Hs={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 Ms(e){const t=function(e){const t={};let r=0;if(Ko(e,((e,n)=>{Hs[n]||(t[n]=e,r++)})),r)return t}(e);if(t){const r={to:t};return Ko(e,((e,n)=>n in t||(r[n]=e))),r}return Bs({},e)}function Vs(e){return e=Ma(e),Zo.arr(e)?e.map(Vs):ss(e)?sa.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Ls(e){for(const t in e)return!0;return!1}function Ts(e){return Zo.fun(e)||Zo.arr(e)&&Zo.obj(e[0])}function Rs(e,t){var r;null==(r=e.ref)||r.delete(e),null==t||t.delete(e)}function Ws(e,t){var r;t&&e.ref!==t&&(null==(r=e.ref)||r.delete(e),t.add(e),e.ref=t)}const qs=1.70158,Us=1.525*qs,Qs=2*Math.PI/3,Zs=2*Math.PI/4.5,Gs=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},Xs=Bs({},{tension:170,friction:26},{mass:1,damping:1,easing:{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=>2.70158*e*e*e-qs*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+qs*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Us)/2:(Math.pow(2*e-2,2)*((Us+1)*(2*e-2)+Us)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Qs),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Qs)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*Zs)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*Zs)/2+1,easeInBounce:e=>1-Gs(1-e),easeOutBounce:Gs,easeInOutBounce:e=>e<.5?(1-Gs(1-2*e))/2:(1+Gs(2*e-1))/2}.linear,clamp:!1});class Ks{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,Xs)}}function Ys(e,t){if(Zo.und(t.decay)){const r=!Zo.und(t.tension)||!Zo.und(t.friction);!r&&Zo.und(t.frequency)&&Zo.und(t.damping)&&Zo.und(t.mass)||(e.duration=void 0,e.decay=void 0),r&&(e.frequency=void 0)}else e.duration=void 0}const Js=[];class el{constructor(){this.changed=!1,this.values=Js,this.toValues=null,this.fromValues=Js,this.to=void 0,this.from=void 0,this.config=new Ks,this.immediate=!1}}function tl(e,{key:t,props:r,defaultProps:n,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=Ps(null!=(l=r.cancel)?l:null==n?void 0:n.cancel,t);if(d)f();else{Zo.und(r.pause)||(i.paused=Ps(r.pause,t));let e=null==n?void 0:n.pause;!0!==e&&(e=i.paused||Ps(e,t)),c=As(r.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-Bo.now()}function p(){c>0&&!sa.skipAnimation?(i.delayed=!0,u=Bo.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(Bs({},r,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const rl=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ol(e.get()):t.every((e=>e.noop))?nl(e.get()):il(e.get(),t.every((e=>e.finished))),nl=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),il=(e,t,r=!1)=>({value:e,finished:t,cancelled:r}),ol=e=>({value:e,cancelled:!0,finished:!1});function al(e,t,r,n){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=r;return o||e!==s||t.reset?r.promise=(async()=>{r.asyncId=i,r.asyncTo=e;const c=Ds(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(r.cancelId||0)&&ol(n)||i!==r.asyncId&&il(n,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new ll,a=new cl;return(async()=>{if(sa.skipAnimation)throw sl(r),a.result=il(n,!1),d(a),a;p(o);const s=Zo.obj(e)?Bs({},e):Bs({},t,{to:e});s.parentId=i,Ko(c,((e,t)=>{Zo.und(s[t])&&(s[t]=e)}));const l=await n.start(s);return p(o),r.paused&&await new Promise((e=>{r.resumeQueue.add(e)})),l})()};let g;if(sa.skipAnimation)return sl(r),il(n,!1);try{let t;t=Zo.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=il(n.get(),!0,!1)}catch(e){if(e instanceof ll)g=e.result;else{if(!(e instanceof cl))throw e;g=e.result}}finally{i==r.asyncId&&(r.asyncId=o,r.asyncTo=o?s:void 0,r.promise=o?l:void 0)}return Zo.fun(a)&&Bo.batchedUpdates((()=>{a(g,n,n.item)})),g})():l}function sl(e,t){Jo(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class ll 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 cl extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ul=e=>e instanceof hl;let dl=1;class hl extends Ta{constructor(...e){super(...e),this.id=dl++,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=fs(this);return e&&e.getValue()}to(...e){return sa.to(this,e)}interpolate(...e){return os(`${ns}The "interpolate" function is deprecated in v9 (use "to" instead)`),sa.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){La(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||ha.sort(this),La(this,{type:"priority",parent:this,priority:e})}}const pl=Symbol.for("SpringPhase"),fl=e=>(1&e[pl])>0,gl=e=>(2&e[pl])>0,ml=e=>(4&e[pl])>0,yl=(e,t)=>t?e[pl]|=3:e[pl]&=-3,bl=(e,t)=>t?e[pl]|=4:e[pl]&=-5;class vl extends hl{constructor(e,t){if(super(),this.key=void 0,this.animation=new el,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,!Zo.und(e)||!Zo.und(t)){const r=Zo.obj(e)?Bs({},e):Bs({},t,{from:e});Zo.und(r.default)&&(r.default=!0),this.start(r)}}get idle(){return!(gl(this)||this._state.asyncTo)||ml(this)}get goal(){return Ma(this.animation.to)}get velocity(){const e=fs(this);return e instanceof bs?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return fl(this)}get isAnimating(){return gl(this)}get isPaused(){return ml(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,r=!1;const n=this.animation;let{config:i,toValues:o}=n;const a=ms(n.to);!a&&Ha(n.to)&&(o=Yo(Ma(n.to))),n.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==vs?1:a?a[l].lastPosition:o[l];let u=n.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const r=n.fromValues[l],o=null!=s.v0?s.v0:s.v0=Zo.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(r==c?.005:Math.min(1,.001*Math.abs(c-r)));if(Zo.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,n=Math.exp(-(1-e)*t);d=r+o/(1-e)*(1-n),u=Math.abs(s.lastPosition-d)<=h,a=o*n}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,n=i.clamp?0:i.bounce,l=!Zo.und(n),p=r==c?s.v0>0:r<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(g=d==c||d>c==p,g&&(a=-a*n,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let n=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),n=(i.progress||0)+t/this._memoizedDuration,n=n>1?1:n<0?0:n,s.durationProgress=n),d=r+i.easing(n)*(c-r),a=(d-s.lastPosition)/e,u=1==n}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(r=!0)}));const s=fs(this),l=s.getValue();if(t){const e=Ma(n.to);l===e&&!r||i.decay?r&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else r&&this._onChange(l)}set(e){return Bo.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(gl(this)){const{to:e,config:t}=this.animation;Bo.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 Zo.und(e)?(r=this.queue||[],this.queue=[]):r=[Zo.obj(e)?e:Bs({},t,{to:e})],Promise.all(r.map((e=>this._update(e)))).then((e=>rl(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),sl(this._state,e&&this._lastCallId),Bo.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=Zo.obj(r)?r[t]:r,(null==r||Ts(r))&&(r=void 0),n=Zo.obj(n)?n[t]:n,null==n&&(n=void 0);const i={to:r,from:n};return fl(this)||(e.reverse&&([r,n]=[n,r]),n=Ma(n),Zo.und(n)?fs(this)||this._set(r):this._set(n)),i}_update(e,t){let r=Bs({},e);const{key:n,defaultProps:i}=this;r.default&&Object.assign(i,Ds(r,((e,t)=>/^on/.test(t)?zs(e,n):e))),kl(this,r,"onProps"),Fl(this,"onProps",r,this);const o=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 a=this._state;return tl(++this._lastCallId,{key:n,props:r,defaultProps:i,state:a,actions:{pause:()=>{ml(this)||(bl(this,!0),ea(a.pauseQueue),Fl(this,"onPause",il(this,wl(this,this.animation.to)),this))},resume:()=>{ml(this)&&(bl(this,!1),gl(this)&&this._resume(),ea(a.resumeQueue),Fl(this,"onResume",il(this,wl(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(r.loop&&e.finished&&(!t||!e.noop)){const e=_l(r);if(e)return this._update(e,!0)}return e}))}_merge(e,t,r){if(t.cancel)return this.stop(!0),r(ol(this));const n=!Zo.und(e.to),i=!Zo.und(e.from);if(n||i){if(!(t.callId>this._lastToId))return r(ol(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||n||t.default&&!Zo.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Go(d,c);h&&(s.from=d),d=Ma(d);const p=!Go(u,l);p&&this._focus(u);const f=Ts(t.to),{config:g}=s,{decay:m,velocity:y}=g;(n||i)&&(g.velocity=0),t.config&&!f&&function(e,t,r){r&&(Ys(r=Bs({},r),t),t=Bs({},r,t)),Ys(e,t),Object.assign(e,t);for(const t in Xs)null==e[t]&&(e[t]=Xs[t]);let{mass:n,frequency:i,damping:o}=e;Zo.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*n,e.friction=4*Math.PI*o*n/i)}(g,As(t.config,o),t.config!==a.config?As(a.config,o):void 0);let b=fs(this);if(!b||Zo.und(u))return r(il(this,!0));const v=Zo.und(t.reset)?i&&!t.default:!Zo.und(d)&&Ps(t.reset,o),w=v?d:this.get(),_=Vs(u),$=Zo.num(_)||Zo.arr(_)||ss(_),x=!f&&(!$||Ps(a.immediate||t.immediate,o));if(p){const e=Ss(u);if(e!==b.constructor){if(!x)throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`);b=this._set(_)}}const S=b.constructor;let C=Ha(u),k=!1;if(!C){const e=v||!fl(this)&&h;(p||e)&&(k=Go(Vs(w),_),C=!k),(Go(s.immediate,x)||x)&&Go(g.decay,m)&&Go(g.velocity,y)||(C=!0)}if(k&&gl(this)&&(s.changed&&!v?C=!0:C||this._stop(l)),!f&&((C||Ha(l))&&(s.values=b.getPayload(),s.toValues=Ha(u)?null:S==vs?[1]:Yo(_)),s.immediate!=x&&(s.immediate=x,x||v||this._set(l)),C)){const{onRest:e}=s;Xo(Cl,(e=>kl(this,t,e)));const n=il(this,wl(this,l));ea(this._pendingCalls,n),this._pendingCalls.add(r),s.changed&&Bo.batchedUpdates((()=>{s.changed=!v,null==e||e(n,this),v?As(a.onRest,n):null==s.onStart||s.onStart(n,this)}))}v&&this._set(w),f?r(al(t.to,t,this._state,this)):C?this._start():gl(this)&&!p?this._pendingCalls.add(r):r(nl(w))}_focus(e){const t=this.animation;e!==t.to&&(Va(this)&&this._detach(),t.to=e,Va(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ha(t)&&(Wa(t,this),ul(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ha(e)&&qa(e,this)}_set(e,t=!0){const r=Ma(e);if(!Zo.und(r)){const e=fs(this);if(!e||!Go(r,e.getValue())){const n=Ss(r);e&&e.constructor==n?e.setValue(r):gs(this,n.create(r)),e&&Bo.batchedUpdates((()=>{this._onChange(r,t)}))}}return fs(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,Fl(this,"onStart",il(this,wl(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),As(this.animation.onChange,e,this)),As(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;fs(this).reset(Ma(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),gl(this)||(yl(this,!0),ml(this)||this._resume())}_resume(){sa.skipAnimation?this.finish():ha.start(this)}_stop(e,t){if(gl(this)){yl(this,!1);const r=this.animation;Xo(r.values,(e=>{e.done=!0})),r.toValues&&(r.onChange=r.onPause=r.onResume=void 0),La(this,{type:"idle",parent:this});const n=t?ol(this.get()):il(this.get(),wl(this,null!=e?e:r.to));ea(this._pendingCalls,n),r.changed&&(r.changed=!1,Fl(this,"onRest",n,this))}}}function wl(e,t){const r=Vs(t);return Go(Vs(e.get()),r)}function _l(e,t=e.loop,r=e.to){let n=As(t);if(n){const i=!0!==n&&Ms(n),o=(i||e).reverse,a=!i||i.reset;return $l(Bs({},e,{loop:t,default:!1,pause:void 0,to:!o||Ts(r)?r:void 0,from:a?e.from:void 0,reset:a},i))}}function $l(e){const{to:t,from:r}=e=Ms(e),n=new Set;return Zo.obj(t)&&Sl(t,n),Zo.obj(r)&&Sl(r,n),e.keys=n.size?Array.from(n):null,e}function xl(e){const t=$l(e);return Zo.und(t.default)&&(t.default=Ds(t)),t}function Sl(e,t){Ko(e,((e,r)=>null!=e&&t.add(r)))}const Cl=["onStart","onRest","onChange","onPause","onResume"];function kl(e,t,r){e.animation[r]=t[r]!==Is(t,r)?zs(t[r],e.key):void 0}function Fl(e,t,...r){var n,i,o,a;null==(n=(i=e.animation)[t])||n.call(i,...r),null==(o=(a=e.defaultProps)[t])||o.call(a,...r)}const jl=["onStart","onChange","onRest"];let Ol=1;class Bl{constructor(e,t){this.id=Ol++,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(Bs({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];Zo.und(r)||this.springs[t].set(r)}}update(e){return e&&this.queue.push($l(e)),this}start(e){let{queue:t}=this;return e?t=Yo(e).map($l):this.queue=[],this._flush?this._flush(this,t):(El(this,t),Al(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const r=this.springs;Xo(Yo(t),(t=>r[t].stop(!!e)))}else sl(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Zo.und(e))this.start({pause:!0});else{const t=this.springs;Xo(Yo(e),(e=>t[e].pause()))}return this}resume(e){if(Zo.und(e))this.start({pause:!1});else{const t=this.springs;Xo(Yo(e),(e=>t[e].resume()))}return this}each(e){Ko(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:r}=this._events,n=this._active.size>0,i=this._changed.size>0;(n&&!this._started||i&&!this._started)&&(this._started=!0,Jo(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!n&&this._started,a=i||o&&r.size?this.get():null;i&&t.size&&Jo(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Jo(r,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}Bo.onFrame(this._onFrame)}}function Al(e,t){return Promise.all(t.map((t=>Pl(e,t)))).then((t=>rl(e,t)))}async function Pl(e,t,r){const{keys:n,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Zo.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Zo.arr(i)||Zo.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Xo(jl,(r=>{const n=t[r];if(Zo.fun(n)){const i=e._events[r];t[r]=({finished:e,cancelled:t})=>{const r=i.get(n);r?(e||(r.finished=!1),t&&(r.cancelled=!0)):i.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,ea(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===Is(t,"cancel");(u||p&&d.asyncId)&&h.push(tl(++e._lastAsyncId,{props:t,state:d,actions:{pause:Qo,resume:Qo,start(t,r){p?(sl(d,e._lastAsyncId),r(ol(e))):(t.onRest=s,r(al(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=rl(e,await Promise.all(h));if(a&&f.finished&&(!r||!f.noop)){const r=_l(t,a,i);if(r)return El(e,[r]),Pl(e,r,!0)}return l&&Bo.batchedUpdates((()=>l(f,e,e.item))),f}function zl(e,t){const r=Bs({},e.springs);return t&&Xo(Yo(t),(e=>{Zo.und(e.keys)&&(e=$l(e)),Zo.obj(e.to)||(e=Bs({},e,{to:void 0})),Dl(r,e,(e=>Nl(e)))})),Il(e,r),r}function Il(e,t){Ko(t,((t,r)=>{e.springs[r]||(e.springs[r]=t,Wa(t,e))}))}function Nl(e,t){const r=new vl;return r.key=e,t&&Wa(r,t),r}function Dl(e,t,r){t.keys&&Xo(t.keys,(n=>{(e[n]||(e[n]=r(n)))._prepareNode(t)}))}function El(e,t){Xo(t,(t=>{Dl(e.springs,t,(t=>Nl(t,e)))}))}const Hl=["children"],Ml=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,Hl);const n=h(Vl),o=r.pause||!!n.pause,s=r.immediate||!!n.immediate;r=function(e,t){const[r]=l((()=>({inputs:t,result:e()}))),n=c(),i=n.current;let o=i;o?Boolean(t&&o.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,o.inputs))||(o={inputs:t,result:e()}):o=r;return a((()=>{n.current=o,i==r&&(r.inputs=r.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:s})),[o,s]);const{Provider:u}=Vl;return i.createElement(u,{value:r},t)},Vl=(Ll=Ml,Tl={},Object.assign(Ll,i.createContext(Tl)),Ll.Provider._context=Ll,Ll.Consumer._context=Ll,Ll);var Ll,Tl;Ml.Provider=Vl.Provider,Ml.Consumer=Vl.Consumer;const Rl=()=>{const e=[],t=function(t){as(`${ns}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 Xo(e,((e,i)=>{if(Zo.und(t))n.push(e.start());else{const o=r(t,e,i);o&&n.push(e.start(o))}})),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 Xo(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Xo(e,(e=>e.resume(...arguments))),this},t.set=function(t){Xo(e,(e=>e.set(t)))},t.start=function(t){const r=[];return Xo(e,((e,n)=>{if(Zo.und(t))r.push(e.start());else{const i=this._getProps(t,e,n);i&&r.push(e.start(i))}})),r},t.stop=function(){return Xo(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Xo(e,((e,r)=>e.update(this._getProps(t,e,r)))),this};const r=function(e,t,r){return Zo.fun(e)?e(r,t):e};return t._getProps=r,t};function Wl(e,t,r){const n=Zo.fun(t)&&t;n&&!r&&(r=[]);const i=p((()=>n||3==arguments.length?Rl():void 0),[]),o=c(0),a=cs(),s=p((()=>({ctrls:[],queue:[],flush(e,t){const r=zl(e,t);return o.current>0&&!s.queue.length&&!Object.keys(r).some((t=>!e.springs[t]))?Al(e,t):new Promise((n=>{Il(e,r),s.queue.push((()=>{n(Al(e,t))})),a()}))}})),[]),l=c([...s.ctrls]),u=[],d=hs(e)||0;function f(e,r){for(let i=e;i<r;i++){const e=l.current[i]||(l.current[i]=new Bl(null,s.flush)),r=n?n(i,e):t[i];r&&(u[i]=xl(r))}}p((()=>{Xo(l.current.slice(e,d),(e=>{Rs(e,i),e.stop(!0)})),l.current.length=e,f(d,e)}),[e]),p((()=>{f(0,Math.min(d,e))}),r);const g=l.current.map(((e,t)=>zl(e,u[t]))),m=h(Ml),y=hs(m),b=m!==y&&Ls(m);ls((()=>{o.current++,s.ctrls=l.current;const{queue:e}=s;e.length&&(s.queue=[],Xo(e,(e=>e()))),Xo(l.current,((e,t)=>{null==i||i.add(e),b&&e.start({default:m});const r=u[t];r&&(Ws(e,r.ref),e.ref?e.queue.push(r):e.start(r))}))})),us((()=>()=>{Xo(s.ctrls,(e=>e.stop(!0)))}));const v=g.map((e=>Bs({},e)));return i?[v,i]:v}let ql;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(ql||(ql={}));class Ul extends hl{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Ia(...t);const r=this._get(),n=Ss(r);gs(this,n.create(r))}advance(e){const t=this._get();Go(t,this.get())||(fs(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Zl(this._active)&&Gl(this)}_get(){const e=Zo.arr(this.source)?this.source.map(Ma):Yo(Ma(this.source));return this.calc(...e)}_start(){this.idle&&!Zl(this._active)&&(this.idle=!1,Xo(ms(this),(e=>{e.done=!1})),sa.skipAnimation?(Bo.batchedUpdates((()=>this.advance())),Gl(this)):ha.start(this))}_attach(){let e=1;Xo(Yo(this.source),(t=>{Ha(t)&&Wa(t,this),ul(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Xo(Yo(this.source),(e=>{Ha(e)&&qa(e,this)})),this._active.clear(),Gl(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=Yo(this.source).reduce(((e,t)=>Math.max(e,(ul(t)?t.priority:0)+1)),0))}}function Ql(e){return!1!==e.idle}function Zl(e){return!e.size||Array.from(e).every(Ql)}function Gl(e){e.idle||(e.idle=!0,Xo(ms(e),(e=>{e.done=!0})),La(e,{type:"idle",parent:e}))}function Xl(e,t){if(null==e)return{};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)r=o[n],t.indexOf(r)>=0||(i[r]=e[r]);return i}sa.assign({createStringInterpolator:rs,to:(e,t)=>new Ul(e,t)});const Kl=["style","children","scrollTop","scrollLeft"],Yl=/^--/;function Jl(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Yl.test(e)||tc.hasOwnProperty(e)&&tc[e]?(""+t).trim():t+"px"}const ec={};let tc={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 rc=["Webkit","Ms","Moz","O"];tc=Object.keys(tc).reduce(((e,t)=>(rc.forEach((r=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(r,t)]=e[t])),e)),tc);const nc=["x","y","z"],ic=/^(matrix|translate|scale|rotate|skew)/,oc=/^(translate)/,ac=/^(rotate|skew)/,sc=(e,t)=>Zo.num(e)&&0!==e?e+t:e,lc=(e,t)=>Zo.arr(e)?e.every((e=>lc(e,t))):Zo.num(e)?e===t:parseFloat(e)===t;class cc extends _s{constructor(e){let{x:t,y:r,z:n}=e,i=Xl(e,nc);const o=[],a=[];(t||r||n)&&(o.push([t||0,r||0,n||0]),a.push((e=>[`translate3d(${e.map((e=>sc(e,"px"))).join(",")})`,lc(e,0)]))),Ko(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(ic.test(t)){if(delete i[t],Zo.und(e))return;const r=oc.test(t)?"px":ac.test(t)?"deg":"";o.push(Yo(e)),a.push("rotate3d"===t?([e,t,n,i])=>[`rotate3d(${e},${t},${n},${sc(i,r)})`,lc(i,0)]:e=>[`${t}(${e.map((e=>sc(e,r))).join(",")})`,lc(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new uc(o,a)),super(i)}}class uc extends Ta{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 Xo(this.inputs,((r,n)=>{const i=Ma(r[0]),[o,a]=this.transforms[n](Zo.arr(i)?i:r.map(Ma));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Xo(this.inputs,(e=>Xo(e,(e=>Ha(e)&&Wa(e,this)))))}observerRemoved(e){0==e&&Xo(this.inputs,(e=>Xo(e,(e=>Ha(e)&&qa(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),La(this,e)}}const dc=["scrollTop","scrollLeft"];sa.assign({batchedUpdates:y,createStringInterpolator:rs,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 hc=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:r=(e=>new _s(e)),getComponentProps:n=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:r,getComponentProps:n},o=e=>{const t=Os(e)||"Anonymous";return(e=Zo.str(e)?o[e]||(o[e]=ks(e,i)):e[js]||(e[js]=ks(e,i))).displayName=`Animated(${t})`,e};return Ko(e,((t,r)=>{Zo.arr(e)&&(r=Os(t)),o[r]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const r="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,n=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=n,l=Xl(n,Kl),c=Object.values(l),u=Object.keys(l).map((t=>r||e.hasAttribute(t)?t:ec[t]||(ec[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const r=Jl(t,i[t]);Yl.test(t)?e.style.setProperty(t,r):e.style[t]=r}u.forEach(((t,r)=>{e.setAttribute(t,c[r])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new cc(e),getComponentProps:e=>Xl(e,dc)}),pc=hc.animated,fc={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},gc=e=>Object.keys(fc).reduce(((t,r)=>{const n=fc[r];return t[r]=`@media screen and (${e}: ${n}px)`,t}),{}),mc=gc("max-width"),yc=(gc("min-width"),f.div`
|
|
311
315
|
display: inline-block;
|
|
312
316
|
position: relative;
|
|
313
317
|
width: ${e=>e.$size}px;
|
|
314
318
|
height: ${e=>e.$size}px;
|
|
315
|
-
`),
|
|
319
|
+
`),bc=m`
|
|
316
320
|
0% {
|
|
317
321
|
transform: rotate(0deg);
|
|
318
322
|
}
|
|
319
323
|
100% {
|
|
320
324
|
transform: rotate(360deg);
|
|
321
325
|
}
|
|
322
|
-
`,
|
|
326
|
+
`,vc=f.div`
|
|
323
327
|
box-sizing: border-box;
|
|
324
328
|
display: block;
|
|
325
329
|
position: absolute;
|
|
@@ -331,12 +335,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
331
335
|
border-radius: 50%;
|
|
332
336
|
border-color: ${e=>e.$color||Vt.Neutral[8](e)}
|
|
333
337
|
transparent transparent transparent;
|
|
334
|
-
animation: ${
|
|
335
|
-
`,
|
|
338
|
+
animation: ${bc} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
339
|
+
`,wc=f(vc)`
|
|
336
340
|
animation-delay: -0.45s;
|
|
337
|
-
`,
|
|
341
|
+
`,_c=f(vc)`
|
|
338
342
|
animation-delay: -0.3s;
|
|
339
|
-
|
|
343
|
+
`,$c=f(vc)`
|
|
340
344
|
animation-delay: -0.15s;
|
|
341
345
|
`;f.button`
|
|
342
346
|
padding: 0.5rem 1rem;
|
|
@@ -404,7 +408,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
404
408
|
background-color: ${Vt.Primary(e)};
|
|
405
409
|
border: 1px solid transparent;
|
|
406
410
|
|
|
407
|
-
${
|
|
411
|
+
${mc.mobileL} {
|
|
408
412
|
width: 100%;
|
|
409
413
|
}
|
|
410
414
|
|
|
@@ -419,23 +423,23 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
419
423
|
${e=>"small"===e.$buttonSizeStyle?g`
|
|
420
424
|
height: 2.5rem;
|
|
421
425
|
span {
|
|
422
|
-
${
|
|
426
|
+
${nr("H5","semibold")}
|
|
423
427
|
}
|
|
424
428
|
|
|
425
|
-
${
|
|
429
|
+
${mc.mobileS} {
|
|
426
430
|
height: auto;
|
|
427
431
|
}
|
|
428
432
|
`:g`
|
|
429
433
|
height: 3rem;
|
|
430
434
|
span {
|
|
431
|
-
${
|
|
435
|
+
${nr("H4","semibold")}
|
|
432
436
|
}
|
|
433
437
|
|
|
434
|
-
${
|
|
438
|
+
${mc.mobileS} {
|
|
435
439
|
height: auto;
|
|
436
440
|
}
|
|
437
441
|
`}
|
|
438
|
-
`;const
|
|
442
|
+
`;const xc=f((({color:e,className:n,size:i=18})=>t(yc,{className:n,$size:i,$color:e,children:[r(vc,{id:"inner1",$size:i-2,$borderWidth:2}),r(wc,{id:"inner2",$size:i-2,$borderWidth:2}),r(_c,{id:"inner3",$size:i-2,$borderWidth:2}),r($c,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
439
443
|
margin-right: 0.5rem;
|
|
440
444
|
${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 g`
|
|
441
445
|
#inner1,
|
|
@@ -445,7 +449,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
445
449
|
border-color: ${t} transparent transparent transparent;
|
|
446
450
|
}
|
|
447
451
|
`}}
|
|
448
|
-
`;var
|
|
452
|
+
`;var Sc,Cc={};Object.defineProperty(Cc,"__esModule",{value:!0});var kc=e;const Fc=e=>kc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:kc.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"})});Fc.displayName="ExclamationCircleFillIcon",Sc=Cc.ExclamationCircleFillIcon=Fc;var jc,Oc={};Object.defineProperty(Oc,"__esModule",{value:!0});var Bc=e;const Ac=e=>Bc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Bc.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"})});Ac.displayName="TickIcon",jc=Oc.TickIcon=Ac;const Pc=f.div`
|
|
449
453
|
display: flex;
|
|
450
454
|
justify-content: center;
|
|
451
455
|
align-items: center;
|
|
@@ -462,22 +466,22 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
462
466
|
background: transparent;
|
|
463
467
|
|
|
464
468
|
${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`}}
|
|
465
|
-
`,
|
|
469
|
+
`,zc=f.input`
|
|
466
470
|
position: absolute;
|
|
467
471
|
opacity: 0;
|
|
468
472
|
height: 100%;
|
|
469
473
|
width: 100%;
|
|
470
474
|
cursor: ${e=>e.disabled?"not-allowed":"pointer"};
|
|
471
|
-
`,
|
|
475
|
+
`,Ic=f(jc)`
|
|
472
476
|
${e=>{let t;if("small"===e.$displaySize)t="1.5rem";else t="1.75rem";return g`
|
|
473
477
|
height: ${t};
|
|
474
478
|
width: ${t};
|
|
475
479
|
`}}
|
|
476
480
|
color: ${e=>e.disabled?Vt.Neutral[4]:Vt.Neutral[8]};
|
|
477
|
-
`,
|
|
481
|
+
`,Nc=f(pc.div)`
|
|
478
482
|
overflow: hidden;
|
|
479
483
|
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.2);
|
|
480
|
-
`,
|
|
484
|
+
`,Dc=f.ul`
|
|
481
485
|
border-bottom-left-radius: 4px;
|
|
482
486
|
border-bottom-right-radius: 4px;
|
|
483
487
|
background: transparent;
|
|
@@ -501,10 +505,10 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
501
505
|
border-bottom-right-radius: 4px;
|
|
502
506
|
}
|
|
503
507
|
|
|
504
|
-
${
|
|
508
|
+
${mc.mobileL} {
|
|
505
509
|
max-height: 15rem;
|
|
506
510
|
}
|
|
507
|
-
`,
|
|
511
|
+
`,Ec=f.li`
|
|
508
512
|
:hover,
|
|
509
513
|
:focus,
|
|
510
514
|
:active {
|
|
@@ -513,7 +517,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
513
517
|
${e=>{if(e.checked)return g`
|
|
514
518
|
background: ${Vt.Accent.Light[5]};
|
|
515
519
|
`}}
|
|
516
|
-
`,
|
|
520
|
+
`,Hc=f.button`
|
|
517
521
|
display: flex;
|
|
518
522
|
${e=>e.multiSelect?g`
|
|
519
523
|
padding: 0.5rem 1rem;
|
|
@@ -545,8 +549,8 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
545
549
|
justify-content: center;
|
|
546
550
|
align-items: center;
|
|
547
551
|
background: ${Vt.Neutral[8]};
|
|
548
|
-
`;const
|
|
549
|
-
${
|
|
552
|
+
`;const Mc=f.div`
|
|
553
|
+
${nr("Body","regular")}
|
|
550
554
|
color: ${Vt.Neutral[1]};
|
|
551
555
|
text-align: left;
|
|
552
556
|
line-height: 1.375rem;
|
|
@@ -557,26 +561,26 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
557
561
|
-webkit-line-clamp: 2;
|
|
558
562
|
-webkit-box-orient: vertical;
|
|
559
563
|
`}}
|
|
560
|
-
`,
|
|
564
|
+
`,Vc=f.span`
|
|
561
565
|
color: ${Vt.Neutral[4]};
|
|
562
566
|
display: inline;
|
|
563
567
|
padding-left: 0.4rem;
|
|
564
|
-
`,
|
|
568
|
+
`,Lc=f.div`
|
|
565
569
|
display: flex;
|
|
566
570
|
flex-direction: column;
|
|
567
|
-
`,
|
|
571
|
+
`,Tc=f.div`
|
|
568
572
|
width: 100%;
|
|
569
573
|
height: 1.5rem;
|
|
570
574
|
word-break: break-all;
|
|
571
575
|
overflow: hidden;
|
|
572
|
-
`,
|
|
576
|
+
`,Rc=f.div`
|
|
573
577
|
width: 100%;
|
|
574
578
|
text-overflow: ellipsis;
|
|
575
579
|
white-space: nowrap;
|
|
576
580
|
overflow: hidden;
|
|
577
581
|
direction: rtl;
|
|
578
582
|
text-align: right;
|
|
579
|
-
`;f(
|
|
583
|
+
`;f(fr.Hyperlink.Default)`
|
|
580
584
|
color: ${Vt.Neutral[1]} !important;
|
|
581
585
|
padding: 1.25rem 1rem;
|
|
582
586
|
margin-bottom: 0;
|
|
@@ -588,16 +592,16 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
588
592
|
outline-color: ${Vt.Accent.Light[3]};
|
|
589
593
|
color: ${Vt.Neutral[1]};
|
|
590
594
|
}
|
|
591
|
-
`;const
|
|
595
|
+
`;const Wc=f((({className:e,checked:n,disabled:i,onChange:o,onKeyPress:s,displaySize:c="default",...u})=>{const[d,h]=l(n);a((()=>{h(n)}),[n]);const p=e=>{if(!i){const t=e;if(!(" "===t.key||"change"===e.type))return;o&&o(e),s&&s(t)}};return t(Pc,{selected:d,disabled:i,className:e,"data-testid":"checkbox",$displaySize:c,role:"checkbox","aria-checked":d,"aria-labelledby":"checkbox-input",tabIndex:i?-1:0,onKeyDown:p,children:[r(zc,{id:"checkbox-input","data-testid":"checkbox-input","aria-hidden":"true",type:"checkbox",tabIndex:-1,onChange:p,disabled:i,checked:d,...u}),d&&r(Ic,{id:"checkmark","data-testid":"checkmark",disabled:i,$displaySize:c})]})}))`
|
|
592
596
|
flex: 0 0 1.5rem;
|
|
593
597
|
margin-right: 1rem;
|
|
594
|
-
`,
|
|
598
|
+
`,qc=f.div`
|
|
595
599
|
width: 100%;
|
|
596
600
|
display: flex;
|
|
597
601
|
justify-content: flex-end;
|
|
598
602
|
padding: 1rem 0 0.5rem 0;
|
|
599
|
-
`,
|
|
600
|
-
${
|
|
603
|
+
`,Uc=f.button`
|
|
604
|
+
${nr("Body","semibold")}
|
|
601
605
|
background-color: transparent;
|
|
602
606
|
background-repeat: no-repeat;
|
|
603
607
|
border: none;
|
|
@@ -605,17 +609,17 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
605
609
|
overflow: hidden;
|
|
606
610
|
outline: none;
|
|
607
611
|
${e=>`\n\t\t\tcolor: ${Vt.Primary(e)};\n\t\t`}
|
|
608
|
-
`,
|
|
612
|
+
`,Qc=f.div`
|
|
609
613
|
width: 100%;
|
|
610
614
|
display: flex;
|
|
611
615
|
padding: 1rem 0.5rem;
|
|
612
616
|
align-items: center;
|
|
613
|
-
`,
|
|
617
|
+
`,Zc=f(fr.Body)``,Gc=f(Sc)`
|
|
614
618
|
margin-right: 0.625rem;
|
|
615
619
|
height: 1.5rem;
|
|
616
620
|
width: 1.5rem;
|
|
617
621
|
color: ${Vt.Validation.Red.Icon};
|
|
618
|
-
`;var
|
|
622
|
+
`;var Xc,Kc={};Object.defineProperty(Kc,"__esModule",{value:!0});var Yc=e;const Jc=e=>Yc.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Yc.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"})});Jc.displayName="MagnifierIcon",Xc=Kc.MagnifierIcon=Jc;const eu=f.button`
|
|
619
623
|
display: flex;
|
|
620
624
|
justify-content: center;
|
|
621
625
|
align-items: center;
|
|
@@ -637,13 +641,13 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
637
641
|
background-color: ${Vt.Neutral[7]};
|
|
638
642
|
`}
|
|
639
643
|
}
|
|
640
|
-
`,
|
|
644
|
+
`,tu=o.forwardRef((({children:e,focusHighlight:t=!0,focusOutline:n="none",...i},o)=>r(eu,{ref:o,$outline:n,$highlight:t,...i,children:e}))),ru=f.li`
|
|
641
645
|
background: ${Vt.Neutral[7]};
|
|
642
646
|
display: flex;
|
|
643
647
|
border-radius: 4px;
|
|
644
648
|
align-items: center;
|
|
645
|
-
`,
|
|
646
|
-
${
|
|
649
|
+
`,nu=f.input`
|
|
650
|
+
${nr("Body","regular")}
|
|
647
651
|
height: 3rem;
|
|
648
652
|
border: none;
|
|
649
653
|
background: transparent;
|
|
@@ -659,30 +663,30 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
659
663
|
::-webkit-input-placeholder {
|
|
660
664
|
color: ${Vt.Neutral[3]};
|
|
661
665
|
}
|
|
662
|
-
`,
|
|
666
|
+
`,iu=f(Xc)`
|
|
663
667
|
height: 1.375rem;
|
|
664
668
|
width: 1.375rem;
|
|
665
669
|
margin: 0 0.5rem;
|
|
666
670
|
color: ${Vt.Neutral[3]};
|
|
667
|
-
`,
|
|
671
|
+
`,ou=f(tu)`
|
|
668
672
|
padding: 0;
|
|
669
673
|
margin: 0 0.5rem;
|
|
670
674
|
color: ${Vt.Neutral[3]};
|
|
671
675
|
cursor: pointer;
|
|
672
|
-
`,
|
|
676
|
+
`,au=f(Ut)`
|
|
673
677
|
height: 1.375rem;
|
|
674
678
|
width: 1.375rem;
|
|
675
679
|
color: ${Vt.Neutral[3]};
|
|
676
|
-
`,
|
|
680
|
+
`,su=u(((e,n)=>{const{onClear:i,...o}=e;return t(ru,{children:[r(iu,{}),r(nu,{ref:n,...o}),o.value&&r(ou,{"aria-label":"Clear search",focusOutline:"browser",onClick:i,children:r(au,{})})]},"search")})),lu=({listItems:e,listExtractor:i,valueExtractor:o,onSelectItem:s,listStyleWidth:u,visible:d,enableSearch:h,searchPlaceholder:p="Search",onSearch:f,searchFunction:g,onDismiss:m,multiSelect:y,selectedItems:b,onSelectAll:v,onRetry:w,itemsLoadState:_="success",itemTruncationType:$="end",renderListItem:x,...S})=>{const[C,k]=l(0),[F,j]=l(""),[O,B]=l(e),[A,P]=l(0),z=function(e,t){const r=Zo.fun(e),[[n],i]=Wl(1,r?e:[e],r?t||[]:t);return r||2==arguments.length?[n,i]:n}({height:A}),I=c(),N=c(),D=c([]),E=c(),H=c(C),M=c(O),V=e=>{H.current=e,k(e)},L=e=>{M.current=e,B(e)};a((()=>(document.addEventListener("keydown",Q),()=>{document.removeEventListener("keydown",Q)})),[]),a((()=>{q(F)}),[F]),a((()=>{j(""),d?(P(U()),E&&E.current?(E.current.focus(),V(-1)):D.current[C]&&D.current[C].focus()):P(0)}),[d]),a((()=>{if(d){const e=U();P(e)}}),[O]),a((()=>{L(e),j(""),V(0)}),[e]);const T=e=>i?i(e):e.toString(),R=e=>{const t=i?i(e):e.toString();let r=0;return N&&N.current&&(r=N.current.getBoundingClientRect().width-100),qt.shouldTruncateToTwoLines("string"==typeof t?t:t.title,r)},W=e=>jo(b,e)>-1,q=t=>{if(""===t)L(e);else if(g){const e=g(t);L(e)}else{const r=e.filter((e=>{const r=T(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)}},U=()=>N&&N.current?N.current.getBoundingClientRect().height:0,Q=e=>{if(I&&I.current.contains(e.target))switch(e.code){case"ArrowDown":if(H.current<M.current.length-1){const e=H.current+1;D.current[e].focus(),V(e)}break;case"ArrowUp":if(H.current>0){const e=H.current-1;D.current[e].focus(),V(H.current-1)}break;case"Escape":m&&m()}},Z=(e,t)=>{e.preventDefault(),s&&s(t,(e=>o?o(e):e)(t))},G=e=>{const t=e.target.value;j(t),f&&f()},X=()=>{j(""),f&&f()},K=()=>{w&&w()},Y=e=>{const n=T(e),i="string"==typeof n?n:n.title;return t(Lc,{"data-testid":"truncate-middle-container",children:[r(Tc,{children:i}),t(Rc,{children:[" ",i]})]})},J=e=>{const i=T(e);return"string"==typeof i?r(n,{children:i}):t(n,{children:[i.title,i.secondaryLabel&&r(Vc,{children:i.secondaryLabel})]})},ee=()=>{if(!w||w&&"success"===_)return O.map(((e,n)=>r(Ec,{checked:W(e)&&!y,children:t(Hc,{onClick:t=>{Z(t,e)},ref:e=>D.current[n]=e,"data-testid":"list-item",type:"button",tabIndex:d?0:-1,multiSelect:y,children:[y&&r(Wc,{checked:W(e),displaySize:"small"}),x?x(e,{selected:W(e)}):r(Mc,{truncateType:$,children:"middle"===$&&R(e)?Y(e):J(e)})]})},((e,t)=>`item_${t}__${o?o(e):e}`)(e,n))))},te=()=>{if(y&&O.length>0&&!F&&"success"===_)return r(qc,{children:r(Uc,{onClick:v,children:0===b.length?"Select all":"Unselect all"})},"selectAll")},re=()=>{if(F&&0===O.length)return t(Qc,{"data-testid":"list-no-results",children:[r(Gc,{"data-testid":"no-result-icon"}),r(Zc,{children:"No results found."})]},"noResults")},ne=()=>{if(w&&"loading"===_)return t(Qc,{"data-testid":"list-loading",children:[r(xc,{$buttonStyle:"secondary",size:24}),r(Zc,{children:"Loading..."})]},"loading")},ie=()=>{if(w&&"fail"===_)return t(Qc,{"data-testid":"list-fail",children:[r(Gc,{"data-testid":"load-error-icon"}),r(Zc,{children:"Failed to load."}),r(Uc,{onClick:K,children:"Try again."})]},"noResults")};return r(Nc,{style:z,"data-testid":d?"dropdown-container":"dropdown-container-hidden",ref:I,children:(()=>{if(d)return t(Dc,{ref:N,"data-testid":"dropdown-list",width:u,role:"list",...S,children:[(h||g)&&"success"===_?r(su,{ref:E,onChange:G,value:F,placeholder:p,"data-testid":"search-input","aria-label":"search-input",tabIndex:d?0:-1,onClear:X}):null,te(),re(),ne(),ie(),ee()]})})()})};var cu,uu={};Object.defineProperty(uu,"__esModule",{value:!0});var du=e;const hu=e=>du.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:du.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"})});hu.displayName="ChevronDownIcon",cu=uu.ChevronDownIcon=hu;const pu="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",fu=f.div`
|
|
677
681
|
position: relative;
|
|
678
682
|
min-height: 3rem;
|
|
679
683
|
height: 3rem;
|
|
680
684
|
width: 100%;
|
|
681
685
|
|
|
682
|
-
${
|
|
686
|
+
${mc.tablet} {
|
|
683
687
|
height: auto;
|
|
684
688
|
}
|
|
685
|
-
`,
|
|
689
|
+
`,gu=f.button`
|
|
686
690
|
display: flex;
|
|
687
691
|
position: relative;
|
|
688
692
|
align-items: center;
|
|
@@ -698,7 +702,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
698
702
|
:active {
|
|
699
703
|
outline: none;
|
|
700
704
|
}
|
|
701
|
-
`,
|
|
705
|
+
`,mu=m`
|
|
702
706
|
from {
|
|
703
707
|
position: absolute;
|
|
704
708
|
top: 0;
|
|
@@ -710,7 +714,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
710
714
|
to {
|
|
711
715
|
position: relative;
|
|
712
716
|
}
|
|
713
|
-
`,
|
|
717
|
+
`,yu=f.div`
|
|
714
718
|
position: relative;
|
|
715
719
|
border: 1px solid ${Vt.Neutral[5]};
|
|
716
720
|
border-radius: ${"4px"};
|
|
@@ -718,7 +722,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
718
722
|
|
|
719
723
|
:focus-within {
|
|
720
724
|
border: 1px solid ${Vt.Accent.Light[1]};
|
|
721
|
-
box-shadow:
|
|
725
|
+
box-shadow: ${Rt};
|
|
722
726
|
}
|
|
723
727
|
|
|
724
728
|
${e=>e.expanded?g`
|
|
@@ -728,13 +732,13 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
728
732
|
width: 100%;
|
|
729
733
|
z-index: 2;
|
|
730
734
|
`:g`
|
|
731
|
-
animation: ${
|
|
735
|
+
animation: ${mu} 0.5s ease-in-out;
|
|
732
736
|
`}
|
|
733
737
|
|
|
734
738
|
${e=>e.disabled?g`
|
|
735
739
|
background: ${Vt.Neutral[6](e)};
|
|
736
740
|
|
|
737
|
-
${
|
|
741
|
+
${gu} {
|
|
738
742
|
cursor: not-allowed;
|
|
739
743
|
}
|
|
740
744
|
|
|
@@ -746,7 +750,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
746
750
|
border: none;
|
|
747
751
|
background: transparent !important;
|
|
748
752
|
|
|
749
|
-
${
|
|
753
|
+
${gu} {
|
|
750
754
|
padding-left: 0rem;
|
|
751
755
|
}
|
|
752
756
|
|
|
@@ -759,17 +763,17 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
759
763
|
|
|
760
764
|
:focus-within {
|
|
761
765
|
border: 1px solid ${Vt.Validation.Red.Border(e)};
|
|
762
|
-
box-shadow:
|
|
766
|
+
box-shadow: ${Wt};
|
|
763
767
|
}
|
|
764
768
|
`:void 0}
|
|
765
769
|
`;f.div`
|
|
766
770
|
transform: rotate(${e=>e.expanded?180:0}deg);
|
|
767
|
-
transition: ${
|
|
771
|
+
transition: ${pu};
|
|
768
772
|
margin-left: 1rem;
|
|
769
|
-
`,f(
|
|
773
|
+
`,f(cu)`
|
|
770
774
|
color: ${Vt.Neutral[3]};
|
|
771
|
-
height: ${
|
|
772
|
-
width: ${
|
|
775
|
+
height: ${Jt.Body.fontSize}rem;
|
|
776
|
+
width: ${Jt.Body.fontSize}rem;
|
|
773
777
|
`,f.div`
|
|
774
778
|
height: 1px;
|
|
775
779
|
background: ${Vt.Neutral[5]};
|
|
@@ -777,7 +781,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
777
781
|
`,f.div`
|
|
778
782
|
display: flex;
|
|
779
783
|
flex: 1;
|
|
780
|
-
`;const
|
|
784
|
+
`;const bu=f(fr.Body)`
|
|
781
785
|
text-align: left;
|
|
782
786
|
line-height: 1.375rem;
|
|
783
787
|
${e=>{if("middle"!==e.truncateType)return g`
|
|
@@ -787,9 +791,9 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
787
791
|
text-overflow: ellipsis;
|
|
788
792
|
`}}
|
|
789
793
|
overflow: hidden;
|
|
790
|
-
`;f(
|
|
794
|
+
`;f(bu)`
|
|
791
795
|
color: ${Vt.Neutral[3]};
|
|
792
|
-
`;const
|
|
796
|
+
`;const vu=fu,wu=f(yu)``,_u=f.div`
|
|
793
797
|
position: relative;
|
|
794
798
|
display: flex;
|
|
795
799
|
height: 3rem;
|
|
@@ -797,7 +801,7 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
797
801
|
${e=>{if(e.$expanded)return g`
|
|
798
802
|
border-bottom: 1px solid ${Vt.Neutral[5](e)};
|
|
799
803
|
`}}
|
|
800
|
-
|
|
804
|
+
`,$u=f.button`
|
|
801
805
|
display: flex;
|
|
802
806
|
position: relative;
|
|
803
807
|
align-items: center;
|
|
@@ -813,19 +817,19 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
813
817
|
:active {
|
|
814
818
|
outline-color: ${Vt.Accent.Light[3]};
|
|
815
819
|
}
|
|
816
|
-
`,
|
|
820
|
+
`,xu=f.div`
|
|
817
821
|
transform: rotate(${e=>e.$expanded?180:0}deg);
|
|
818
|
-
transition: ${
|
|
822
|
+
transition: ${pu};
|
|
819
823
|
margin-left: 1rem;
|
|
820
|
-
`,
|
|
824
|
+
`,Su=f(cu)`
|
|
821
825
|
color: ${Vt.Neutral[3]};
|
|
822
|
-
height: ${
|
|
823
|
-
width: ${
|
|
826
|
+
height: ${Jt.Body.fontSize}rem;
|
|
827
|
+
width: ${Jt.Body.fontSize}rem;
|
|
824
828
|
vertical-align: bottom;
|
|
825
|
-
`,
|
|
829
|
+
`,Cu=f.div`
|
|
826
830
|
display: flex;
|
|
827
831
|
flex: 1 1 auto;
|
|
828
|
-
|
|
832
|
+
`,ku=f(fr.Body)`
|
|
829
833
|
text-align: left;
|
|
830
834
|
line-height: 1.375rem;
|
|
831
835
|
display: -webkit-box;
|
|
@@ -833,12 +837,12 @@ import e,{jsxs as t,jsx as r,Fragment as n}from"react/jsx-runtime";import*as i f
|
|
|
833
837
|
-webkit-box-orient: vertical;
|
|
834
838
|
overflow: hidden;
|
|
835
839
|
text-overflow: ellipsis;
|
|
836
|
-
`,
|
|
840
|
+
`,Fu=f(ku)`
|
|
837
841
|
color: ${Vt.Neutral[3]};
|
|
838
|
-
`,
|
|
842
|
+
`,ju=f.div`
|
|
839
843
|
margin: 1rem 1rem 1rem 0;
|
|
840
844
|
width: 1px;
|
|
841
845
|
height: 1.25rem;
|
|
842
846
|
background: ${Vt.Neutral[5]};
|
|
843
|
-
`,
|
|
847
|
+
`,Ou=({addon:e,error:i,onChange:o,...s})=>{const{value:u,placeholder:d,options:h,enableSearch:p,searchFunction:f,searchPlaceholder:g,valueExtractor:m,listExtractor:y,displayValueExtractor:b,selectedOption:v,onSelectOption:w,onHideOptions:_,onShowOptions:$,"data-selector-testid":x}=e.attributes,[S,C]=l(u),[k,F]=l(!1),j=c(),O=c();a((()=>{C(u)}),[u]),a((()=>(document.addEventListener("mousedown",A),()=>{document.removeEventListener("mousedown",A)})),[]);const B=e=>{!e&&_&&_(),e&&$&&$()},A=e=>{if(!s.disabled){if(j&&j.current.contains(e.target))return;F(!1),B(!1)}},P=e=>{e.preventDefault(),s.disabled||(F(!k),B(!k))},z=(e,t)=>{C(e),F(!1),B(!1),O&&O.current.focus(),w&&w(e,t)},I=e=>{o&&o(e)};return r(vu,{children:t(wu,{ref:j,disabled:s.disabled,error:i&&!k,expanded:k,children:[t(_u,{$expanded:k,children:[r($u,{ref:O,type:"button","data-testid":x||"addon-selector",onClick:P,children:t(n,{children:[t(Cu,{children:[d&&!S&&r(Fu,{children:d}),S&&r(ku,{"data-testid":"selector-label",children:b?b(S):m?m(S):S.toString()})]}),r(xu,{$expanded:k,children:r(Su,{})})]})}),r(ju,{}),r(wr,{...s,error:i,onChange:I,"data-testid":s["data-testid"]||"input"})]}),h&&h.length>0?r(lu,{listItems:h,selectedItems:v?[v]:[],onSelectItem:z,valueExtractor:m,listExtractor:y,visible:k,enableSearch:p,searchFunction:f,searchPlaceholder:g,"data-testid":"dropdown-list"}):null]})})},Bu=o.forwardRef((({addon:e,error:n,...i},o)=>{const a=()=>r(vr,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],children:r(wr,{ref:o,...i,"data-testid":"input"})});if(!e)return a();{const{type:o="label",position:s="left"}=e,{allowClear:l}=i;switch(o){case"list":{const t=e.attributes;return t.options&&t.options.length>0?r(Ou,{addon:e,error:n,...i}):a()}case"custom":{const o=e.attributes;return o.children?t(vr,{$error:n,disabled:i.disabled,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:s,children:[r(_r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,children:o.children}),r(wr,{...i,allowClear:l&&"right"!==s,error:n,$position:s,"data-testid":"input"})]}):a()}default:{const o=e.attributes;return o.value?t(vr,{disabled:i.disabled,$error:n,$readOnly:i.readOnly,"data-testid":i["data-testid"],$position:s,children:[r(_r,{"data-testid":"addon",disabled:i.disabled,$readOnly:i.readOnly,children:o.value}),r(wr,{...i,allowClear:l&&"right"!==s,error:n,$position:s,"data-testid":"input"})]}):a()}}}}));export{Bu as InputGroup};
|
|
844
848
|
//# sourceMappingURL=index.js.map
|