@lifesg/react-design-system 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.js +2 -2
- package/cjs/index.js.map +1 -1
- package/filter/index.js +37 -37
- package/filter/index.js.map +1 -1
- package/form/index.js +39 -39
- package/form/index.js.map +1 -1
- package/index.js +67 -67
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/timepicker/index.js +149 -149
- package/timepicker/index.js.map +1 -1
- package/toggle/index.js +86 -86
- package/toggle/index.js.map +1 -1
package/filter/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
34
34
|
\********************************************/e=>{e.exports=Function.call.bind(Object.prototype.hasOwnProperty)},"./node_modules/react-is/cjs/react-is.development.js":
|
|
35
35
|
/*!***********************************************************!*\
|
|
36
36
|
!*** ./node_modules/react-is/cjs/react-is.development.js ***!
|
|
37
|
-
\***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case o:case a:case i:case h:return p;default:var g=p&&p.$$typeof;switch(g){case l:case d:case m:case f:case s:return g;default:return t}}case r:return t}}}var C=c,_=u,x=l,$=s,S=n,O=d,k=o,j=m,F=f,P=r,
|
|
37
|
+
\***********************************************************/(e,t)=>{!function(){var e="function"==typeof Symbol&&Symbol.for,n=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,o=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,u=e?Symbol.for("react.concurrent_mode"):60111,d=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,g=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case c:case u:case o:case a:case i:case h:return p;default:var g=p&&p.$$typeof;switch(g){case l:case d:case m:case f:case s:return g;default:return t}}case r:return t}}}var C=c,_=u,x=l,$=s,S=n,O=d,k=o,j=m,F=f,P=r,I=a,H=i,E=h,M=!1;function B(e){return w(e)===u}t.AsyncMode=C,t.ConcurrentMode=_,t.ContextConsumer=x,t.ContextProvider=$,t.Element=S,t.ForwardRef=O,t.Fragment=k,t.Lazy=j,t.Memo=F,t.Portal=P,t.Profiler=I,t.StrictMode=H,t.Suspense=E,t.isAsyncMode=function(e){return M||(M=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(e)||w(e)===c},t.isConcurrentMode=B,t.isContextConsumer=function(e){return w(e)===l},t.isContextProvider=function(e){return w(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return w(e)===d},t.isFragment=function(e){return w(e)===o},t.isLazy=function(e){return w(e)===m},t.isMemo=function(e){return w(e)===f},t.isPortal=function(e){return w(e)===r},t.isProfiler=function(e){return w(e)===a},t.isStrictMode=function(e){return w(e)===i},t.isSuspense=function(e){return w(e)===h},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===o||e===u||e===a||e===i||e===h||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===f||e.$$typeof===s||e.$$typeof===l||e.$$typeof===d||e.$$typeof===y||e.$$typeof===v||e.$$typeof===b||e.$$typeof===g)},t.typeOf=w}()},"./node_modules/react-is/index.js":
|
|
38
38
|
/*!****************************************!*\
|
|
39
39
|
!*** ./node_modules/react-is/index.js ***!
|
|
40
40
|
\****************************************/(e,t,n)=>{e.exports=n(/*! ./cjs/react-is.development.js */"./node_modules/react-is/cjs/react-is.development.js")},"./node_modules/shallow-equal/dist/index.esm.js":
|
|
@@ -61,7 +61,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
61
61
|
\******************************/function(e,t,n){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(/*! react */"react"),i=r(n(/*! matchmediaquery */"./node_modules/matchmediaquery/index.js")),a=r(n(/*! hyphenate-style-name */"./node_modules/hyphenate-style-name/index.js")),s=n(/*! shallow-equal */"./node_modules/shallow-equal/dist/index.esm.js"),l=r(n(/*! ./toQuery */"./src/toQuery.ts")),c=r(n(/*! ./Context */"./src/Context.ts")),u=function(e){if(e)return Object.keys(e).reduce((function(t,n){return t[(0,a.default)(n)]=e[n],t}),{})},d=function(){var e=(0,o.useRef)(!1);return(0,o.useEffect)((function(){e.current=!0}),[]),e.current},h=function(e){var t=function(){return function(e){return e.query||(0,l.default)(e)}(e)},n=(0,o.useState)(t),r=n[0],i=n[1];return(0,o.useEffect)((function(){var e=t();r!==e&&i(e)}),[e]),r};t.default=function(e,t,n){var r=function(e){var t=(0,o.useContext)(c.default),n=function(){return u(e)||u(t)},r=(0,o.useState)(n),i=r[0],a=r[1];return(0,o.useEffect)((function(){var e=n();(0,s.shallowEqualObjects)(i,e)||a(e)}),[e,t]),i}(t),a=h(e);if(!a)throw new Error("Invalid or missing MediaQuery!");var l=function(e,t){var n=function(){return(0,i.default)(e,t||{},!!t)},r=(0,o.useState)(n),a=r[0],s=r[1],l=d();return(0,o.useEffect)((function(){if(l){var e=n();return s(e),function(){e&&e.dispose()}}}),[e,t]),a}(a,r),p=function(e){var t=(0,o.useState)(e.matches),n=t[0],r=t[1];return(0,o.useEffect)((function(){var t=function(e){r(e.matches)};return e.addListener(t),r(e.matches),function(){e.removeListener(t)}}),[e]),n}(l),f=d();return(0,o.useEffect)((function(){f&&n&&n(p)}),[p]),(0,o.useEffect)((function(){return function(){l&&l.dispose()}}),[]),p}},react:
|
|
62
62
|
/*!**************************************************************************************!*\
|
|
63
63
|
!*** external {"commonjs":"react","commonjs2":"react","amd":"react","root":"React"} ***!
|
|
64
|
-
\**************************************************************************************/t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),P.exports=F(i);const
|
|
64
|
+
\**************************************************************************************/t=>{t.exports=e}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e].call(i.exports,i,i.exports,r),i.exports}return r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r("./src/index.ts")})(),P.exports=F(i);const I=C.div`
|
|
65
65
|
position: fixed;
|
|
66
66
|
left: 0;
|
|
67
67
|
top: 0;
|
|
@@ -75,7 +75,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
75
75
|
width: 100vw;
|
|
76
76
|
visibility: visible;
|
|
77
77
|
`}}
|
|
78
|
-
`,
|
|
78
|
+
`,H=C.div`
|
|
79
79
|
position: absolute;
|
|
80
80
|
left: 0;
|
|
81
81
|
top: 0;
|
|
@@ -99,7 +99,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
99
99
|
`,e.$disableTransition&&(t+=_`
|
|
100
100
|
transition: none;
|
|
101
101
|
`),t}}
|
|
102
|
-
`,M=({show:e=!1,rootId:n,onOverlayClick:r,children:o,backgroundOpacity:c,backgroundBlur:u=!0,disableTransition:d=!1,enableOverlayClick:h=!1,zIndex:p,id:f})=>{const[m,g]=a(null),[y,b]=a(),w=s(),C=s(null),_=o&&i.cloneElement(o,{ref:C}),x=f?`lifesg-ds-overlay-root-${f}`:"lifesg-ds-overlay-root";l((()=>{if(e){const e=O();if($(e),!e){const e=setTimeout((()=>{j("add")}),200);return()=>clearTimeout(e)}}else if(!w.current){const e=setTimeout((()=>{j("remove")}),200);return()=>clearTimeout(e)}}),[e]),l((()=>{g(S());const e=O();return $(e),e||k(),()=>{j("remove")}}),[]);const $=e=>{w.current=e,b(e)},S=()=>document&&n?document.getElementById(n):document?document.body:null,O=()=>document.body.classList.contains(B),k=()=>{if(!document.getElementById(E)){const e=document.createElement("style");e.id=E;const t=document.documentElement.clientWidth,n=window.innerWidth-t;e.innerHTML=`\n\t\t\t\t.${B} {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tpadding-right: ${n}px !important;\n\t\t\t\t\t-ms-overflow-style: none;\n\t\t\t\t\tscrollbar-width: none;\n\t\t\t\t}\n\n\t\t\t\t.${B}::-webkit-scrollbar {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t`,document.body.appendChild(e)}},j=e=>{const t=document.body.classList.contains(B);"add"!==e||t?"remove"===e&&t&&document.body.classList.remove(B):document.body.classList.add(B)},F=e=>{const t=C.current?.firstChild;t&&t.contains(e.target)||r&&h&&(e.preventDefault(),r())};return m?v.createPortal(t(H,{id:x,"data-testid":x,$show:e,zIndex:p,$stacked:y,children:o&&t(I,{"data-testid":"overlay-wrapper",$show:e,$backgroundOpacity:c||(y?.5:.8),$backgroundBlur:u,$disableTransition:d,$enableOverlayClick:h,onClick:F,children:_})}),m):null},E="lifesg-ds-overlay-stylesheet",B="lifesg-ds-overlay-open",D={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840};var T=function(e,t){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},T(e,t)};var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)};var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var R=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},N="object"==typeof z&&z&&z.Object===Object&&z,L="object"==typeof self&&self&&self.Object===Object&&self,V=N||L||Function("return this")(),W=V,q=function(){return W.Date.now()},Q=/\s/;var U=function(e){for(var t=e.length;t--&&Q.test(e.charAt(t)););return t},Z=/^\s+/;var G=function(e){return e?e.slice(0,U(e)+1).replace(Z,""):e},X=V.Symbol,Y=X,J=Object.prototype,K=J.hasOwnProperty,ee=J.toString,te=Y?Y.toStringTag:void 0;var ne=function(e){var t=K.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var o=ee.call(e);return r&&(t?e[te]=n:delete e[te]),o},re=Object.prototype.toString;var oe=ne,ie=function(e){return re.call(e)},ae=X?X.toStringTag:void 0;var se=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ae&&ae in Object(e)?oe(e):ie(e)},le=function(e){return null!=e&&"object"==typeof e};var ce=G,ue=R,de=function(e){return"symbol"==typeof e||le(e)&&"[object Symbol]"==se(e)},he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,fe=/^0o[0-7]+$/i,me=parseInt;var ge=R,ye=q,ve=function(e){if("number"==typeof e)return e;if(de(e))return NaN;if(ue(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ue(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ce(e);var n=pe.test(e);return n||fe.test(e)?me(e.slice(2),n?2:8):he.test(e)?NaN:+e},be=Math.max,we=Math.min;var Ce=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=ye();if(f(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?we(n,i-(e-c)):n}(e))}function g(e){return s=void 0,h&&r?p(e):(r=o=void 0,a)}function y(){var e=ye(),n=f(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ve(t)||0,ge(n)&&(u=!!n.leading,i=(d="maxWait"in n)?be(ve(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(ye())},y},_e=Ce,xe=R;var $e=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return xe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_e(e,t,{leading:r,maxWait:t,trailing:o})},Se=function(e,t,n,r){switch(t){case"debounce":return Ce(e,n,r);case"throttle":return $e(e,n,r);default:return e}},Oe=function(e){return"function"==typeof e},ke=function(){return"undefined"==typeof window},je=function(e){return e instanceof Element||e instanceof HTMLDocument},Fe=function(e,t,n,r){return function(o){var i=o.width,a=o.height;t((function(t){return t.width===i&&t.height===a||t.width===i&&!r||t.height===a&&!n?t:(e&&Oe(e)&&e(i,a),{width:i,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!ke()){t&&t.current&&(n.targetRef.current=t.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(ke())return null;if(t)return document.querySelector(t);if(r&&je(r))return r;if(n.targetRef&&je(n.targetRef.current))return n.targetRef.current;var o=b(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,o=void 0===r||r,i=t.handleHeight,a=void 0===i||i,s=t.onResize;if(o||a){var l=Fe(s,n.setState.bind(n),o,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,o=t.height;!n.skipOnMount&&!ke()&&l({width:r,height:o}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return Oe(t)?"renderProp":Oe(r)?"childFunction":u(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,o=t.refreshMode,i=t.refreshRate,a=void 0===i?1e3:i,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=d(),n.observableElement=null,ke()||(n.resizeHandler=Se(n.createResizeHandler,o,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){ke()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,r=t.children,i=t.nodeType,a=void 0===i?"div":i,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(l);case"childFunction":return(e=r)(l);case"child":if((e=r).type&&"string"==typeof e.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(l,["targetRef"]);return c(e,u)}return c(e,l);case"childArray":return(e=r).map((function(e){return!!e&&c(e,l)}));default:return o.createElement(a,null)}}}(h);var Pe=ke()?l:p;function He(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,o=e.refreshRate,i=void 0===o?1e3:o,l=e.refreshOptions,c=e.handleWidth,u=void 0===c||c,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,m=e.onResize,g=s(n),y=s(null),v=null!=p?p:y,b=s(),w=a({width:void 0,height:void 0}),C=w[0],_=w[1];return Pe((function(){if(!ke()){var e=Fe(m,_,u,h);b.current=Se((function(t){(u||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,o=n.height;!g.current&&!ke()&&e({width:r,height:o}),g.current=!1}))}),r,i,l);var t=new window.ResizeObserver(b.current);return v.current&&t.observe(v.current,f),function(){t.disconnect();var e=b.current;e&&e.cancel&&e.cancel()}}}),[r,i,l,u,h,m,f,v.current]),A({ref:v},C)}const Ie=i.createContext({mode:"default"});var Me=Array.isArray,Ee="object"==typeof S&&S&&S.Object===Object&&S,Be="object"==typeof self&&self&&self.Object===Object&&self,De=Ee||Be||Function("return this")(),Te=De.Symbol,Ae=Te,ze=Object.prototype,Re=ze.hasOwnProperty,Ne=ze.toString,Le=Ae?Ae.toStringTag:void 0;var Ve=function(e){var t=Re.call(e,Le),n=e[Le];try{e[Le]=void 0;var r=!0}catch(e){}var o=Ne.call(e);return r&&(t?e[Le]=n:delete e[Le]),o},We=Object.prototype.toString;var qe=Ve,Qe=function(e){return We.call(e)},Ue=Te?Te.toStringTag:void 0;var Ze=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ue&&Ue in Object(e)?qe(e):Qe(e)};var Ge=Ze,Xe=function(e){return null!=e&&"object"==typeof e};var Ye=function(e){return"symbol"==typeof e||Xe(e)&&"[object Symbol]"==Ge(e)},Je=Me,Ke=Ye,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tt=/^\w*$/;var nt=function(e,t){if(Je(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ke(e))||(tt.test(e)||!et.test(e)||null!=t&&e in Object(t))};var rt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ot=Ze,it=rt;var at,st=function(e){if(!it(e))return!1;var t=ot(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lt=De["__core-js_shared__"],ct=(at=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";var ut=function(e){return!!ct&&ct in e},dt=Function.prototype.toString;var ht=st,pt=ut,ft=rt,mt=function(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},gt=/^\[object .+?Constructor\]$/,yt=Function.prototype,vt=Object.prototype,bt=yt.toString,wt=vt.hasOwnProperty,Ct=RegExp("^"+bt.call(wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var _t=function(e){return!(!ft(e)||pt(e))&&(ht(e)?Ct:gt).test(mt(e))},xt=function(e,t){return null==e?void 0:e[t]};var $t=function(e,t){var n=xt(e,t);return _t(n)?n:void 0},St=$t(Object,"create"),Ot=St;var kt=function(){this.__data__=Ot?Ot(null):{},this.size=0};var jt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ft=St,Pt=Object.prototype.hasOwnProperty;var Ht=function(e){var t=this.__data__;if(Ft){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Pt.call(t,e)?t[e]:void 0},It=St,Mt=Object.prototype.hasOwnProperty;var Et=St;var Bt=kt,Dt=jt,Tt=Ht,At=function(e){var t=this.__data__;return It?void 0!==t[e]:Mt.call(t,e)},zt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Et&&void 0===t?"__lodash_hash_undefined__":t,this};function Rt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rt.prototype.clear=Bt,Rt.prototype.delete=Dt,Rt.prototype.get=Tt,Rt.prototype.has=At,Rt.prototype.set=zt;var Nt=Rt;var Lt=function(){this.__data__=[],this.size=0};var Vt=function(e,t){return e===t||e!=e&&t!=t};var Wt=function(e,t){for(var n=e.length;n--;)if(Vt(e[n][0],t))return n;return-1},qt=Wt,Qt=Array.prototype.splice;var Ut=Wt;var Zt=Wt;var Gt=Wt;var Xt=Lt,Yt=function(e){var t=this.__data__,n=qt(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qt.call(t,n,1),--this.size,!0)},Jt=function(e){var t=this.__data__,n=Ut(t,e);return n<0?void 0:t[n][1]},Kt=function(e){return Zt(this.__data__,e)>-1},en=function(e,t){var n=this.__data__,r=Gt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=Xt,tn.prototype.delete=Yt,tn.prototype.get=Jt,tn.prototype.has=Kt,tn.prototype.set=en;var nn=tn,rn=$t(De,"Map"),on=Nt,an=nn,sn=rn;var ln=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var cn=function(e,t){var n=e.__data__;return ln(t)?n["string"==typeof t?"string":"hash"]:n.map},un=cn;var dn=cn;var hn=cn;var pn=cn;var fn=function(){this.size=0,this.__data__={hash:new on,map:new(sn||an),string:new on}},mn=function(e){var t=un(this,e).delete(e);return this.size-=t?1:0,t},gn=function(e){return dn(this,e).get(e)},yn=function(e){return hn(this,e).has(e)},vn=function(e,t){var n=pn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bn.prototype.clear=fn,bn.prototype.delete=mn,bn.prototype.get=gn,bn.prototype.has=yn,bn.prototype.set=vn;var wn=bn;function Cn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Cn.Cache||wn),n}Cn.Cache=wn;var _n=Cn;var xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$n=/\\(\\)?/g,Sn=function(e){var t=_n(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xn,(function(e,n,r,o){t.push(r?o.replace($n,"$1"):n||e)})),t}));var On=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},kn=Me,jn=Ye,Fn=Te?Te.prototype:void 0,Pn=Fn?Fn.toString:void 0;var Hn=function e(t){if("string"==typeof t)return t;if(kn(t))return On(t,e)+"";if(jn(t))return Pn?Pn.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},In=Hn;var Mn=Me,En=nt,Bn=Sn,Dn=function(e){return null==e?"":In(e)};var Tn=Ye;var An=function(e,t){return Mn(e)?e:En(e,t)?[e]:Bn(Dn(e))},zn=function(e){if("string"==typeof e||Tn(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Rn=function(e,t){for(var n=0,r=(t=An(t,e)).length;null!=e&&n<r;)e=e[zn(t[n++])];return n&&n==r?e:void 0};var Nn=function(e,t,n){var r=null==e?void 0:Rn(e,t);return void 0===r?n:r};const Ln=(e,t,n)=>t?Nn(n,t)||Nn(e,t):n||e,Vn=(e,t)=>{const n=t||e.defaultValue;return Nn(e.collections,n)};var Wn;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(Wn||(Wn={}));const qn={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Qn=e=>t=>{const n=t.theme,r=Vn(qn,n[Wn.colorScheme]);return n.options&&n.options.color?Ln(r,e,n.options.color):Ln(r,e)},Un={Brand:{1:Qn("Brand.1"),2:Qn("Brand.2"),3:Qn("Brand.3"),4:Qn("Brand.4"),5:Qn("Brand.5"),6:Qn("Brand.6")},Primary:Qn("Primary"),PrimaryDark:Qn("PrimaryDark"),Secondary:Qn("Secondary"),Accent:{Light:{1:Qn("Accent.Light.1"),2:Qn("Accent.Light.2"),3:Qn("Accent.Light.3"),4:Qn("Accent.Light.4"),5:Qn("Accent.Light.5"),6:Qn("Accent.Light.6")},Dark:{1:Qn("Accent.Dark.1"),2:Qn("Accent.Dark.2"),3:Qn("Accent.Dark.3")}},Neutral:{1:Qn("Neutral.1"),2:Qn("Neutral.2"),3:Qn("Neutral.3"),4:Qn("Neutral.4"),5:Qn("Neutral.5"),6:Qn("Neutral.6"),7:Qn("Neutral.7"),8:Qn("Neutral.8")},Validation:{Green:{Text:Qn("Validation.Green.Text"),Icon:Qn("Validation.Green.Icon"),Border:Qn("Validation.Green.Border"),Background:Qn("Validation.Green.Background")},Orange:{Text:Qn("Validation.Orange.Text"),Icon:Qn("Validation.Orange.Icon"),Border:Qn("Validation.Orange.Border"),Background:Qn("Validation.Orange.Background"),Badge:Qn("Validation.Orange.Badge")},Red:{Text:Qn("Validation.Red.Text"),Icon:Qn("Validation.Red.Icon"),Border:Qn("Validation.Red.Border"),Background:Qn("Validation.Red.Background")},Blue:{Text:Qn("Validation.Blue.Text"),Icon:Qn("Validation.Blue.Icon"),Border:Qn("Validation.Blue.Border"),Background:Qn("Validation.Blue.Background")}},Shadow:{Accent:Qn("Shadow.Accent"),Red:Qn("Shadow.Red"),Elevation:Qn("Shadow.Elevation")}},Zn=e=>Object.keys(D).reduce(((t,n)=>{const r=D[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),Gn=Zn("max-width"),Xn=(Zn("min-width"),{Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"}),Yn={collections:{base:{D1:{fontFamily:Xn.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Xn.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Xn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Xn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Xn.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Xn.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Xn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Xn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Xn.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Xn.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Xn.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Xn.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Xn.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Xn.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Jn=e=>t=>{const n=t.theme,r=Vn(Yn,n[Wn.textStyleScheme]);return n.options&&n.options.textStyle?Ln(r,e,n.options.textStyle):Ln(r,e)},Kn={D1:{fontFamily:Jn("D1.fontFamily"),fontSize:Jn("D1.fontSize"),fontWeight:Jn("D1.fontWeight"),lineHeight:Jn("D1.lineHeight"),letterSpacing:Jn("D1.letterSpacing")},D2:{fontFamily:Jn("D2.fontFamily"),fontSize:Jn("D2.fontSize"),fontWeight:Jn("D2.fontWeight"),lineHeight:Jn("D2.lineHeight"),letterSpacing:Jn("D2.letterSpacing")},D3:{fontFamily:Jn("D3.fontFamily"),fontSize:Jn("D3.fontSize"),fontWeight:Jn("D3.fontWeight"),lineHeight:Jn("D3.lineHeight"),letterSpacing:Jn("D3.letterSpacing")},D4:{fontFamily:Jn("D4.fontFamily"),fontSize:Jn("D4.fontSize"),fontWeight:Jn("D4.fontWeight"),lineHeight:Jn("D4.lineHeight"),letterSpacing:Jn("D4.letterSpacing")},DBody:{fontFamily:Jn("DBody.fontFamily"),fontSize:Jn("DBody.fontSize"),fontWeight:Jn("DBody.fontWeight"),lineHeight:Jn("DBody.lineHeight"),letterSpacing:Jn("DBody.letterSpacing")},H1:{fontFamily:Jn("H1.fontFamily"),fontSize:Jn("H1.fontSize"),fontWeight:Jn("H1.fontWeight"),lineHeight:Jn("H1.lineHeight"),letterSpacing:Jn("H1.letterSpacing")},H2:{fontFamily:Jn("H2.fontFamily"),fontSize:Jn("H2.fontSize"),fontWeight:Jn("H2.fontWeight"),lineHeight:Jn("H2.lineHeight"),letterSpacing:Jn("H2.letterSpacing")},H3:{fontFamily:Jn("H3.fontFamily"),fontSize:Jn("H3.fontSize"),fontWeight:Jn("H3.fontWeight"),lineHeight:Jn("H3.lineHeight"),letterSpacing:Jn("H3.letterSpacing")},H4:{fontFamily:Jn("H4.fontFamily"),fontSize:Jn("H4.fontSize"),fontWeight:Jn("H4.fontWeight"),lineHeight:Jn("H4.lineHeight"),letterSpacing:Jn("H4.letterSpacing")},H5:{fontFamily:Jn("H5.fontFamily"),fontSize:Jn("H5.fontSize"),fontWeight:Jn("H5.fontWeight"),lineHeight:Jn("H5.lineHeight"),letterSpacing:Jn("H5.letterSpacing")},H6:{fontFamily:Jn("H6.fontFamily"),fontSize:Jn("H6.fontSize"),fontWeight:Jn("H6.fontWeight"),lineHeight:Jn("H6.lineHeight"),letterSpacing:Jn("H6.letterSpacing")},Body:{fontFamily:Jn("Body.fontFamily"),fontSize:Jn("Body.fontSize"),fontWeight:Jn("Body.fontWeight"),lineHeight:Jn("Body.lineHeight"),letterSpacing:Jn("Body.letterSpacing")},BodySmall:{fontFamily:Jn("BodySmall.fontFamily"),fontSize:Jn("BodySmall.fontSize"),fontWeight:Jn("BodySmall.fontWeight"),lineHeight:Jn("BodySmall.lineHeight"),letterSpacing:Jn("BodySmall.letterSpacing")},XSmall:{fontFamily:Jn("XSmall.fontFamily"),fontSize:Jn("XSmall.fontSize"),fontWeight:Jn("XSmall.fontWeight"),lineHeight:Jn("XSmall.lineHeight"),letterSpacing:Jn("XSmall.letterSpacing")}},er=e=>{switch(e){case 700:case"bold":return Xn.Bold;case 600:case"semibold":return Xn.Semibold;case 300:case"light":return Xn.Light;case 400:case"regular":return Xn.Regular;default:return""}},tr=(e,t)=>n=>{const r=Kn[e].fontFamily(n),o=Kn[e].fontWeight(n);return Object.values(Xn).includes(r)?_`
|
|
102
|
+
`,E=({show:e=!1,rootId:n,onOverlayClick:r,children:o,backgroundOpacity:c,backgroundBlur:u=!0,disableTransition:d=!1,enableOverlayClick:h=!1,zIndex:p,id:f})=>{const[m,g]=a(null),[y,b]=a(),w=s(),C=s(null),_=o&&i.cloneElement(o,{ref:C}),x=f?`lifesg-ds-overlay-root-${f}`:"lifesg-ds-overlay-root";l((()=>{if(e){const e=O();if($(e),!e){const e=setTimeout((()=>{j("add")}),200);return()=>clearTimeout(e)}}else if(!w.current){const e=setTimeout((()=>{j("remove")}),200);return()=>clearTimeout(e)}}),[e]),l((()=>{g(S());const e=O();return $(e),e||k(),()=>{j("remove")}}),[]);const $=e=>{w.current=e,b(e)},S=()=>document&&n?document.getElementById(n):document?document.body:null,O=()=>document.body.classList.contains(B),k=()=>{if(!document.getElementById(M)){const e=document.createElement("style");e.id=M;const t=document.documentElement.clientWidth,n=window.innerWidth-t;e.innerHTML=`\n\t\t\t\t.${B} {\n\t\t\t\t\toverflow: hidden;\n\t\t\t\t\tpadding-right: ${n}px !important;\n\t\t\t\t\t-ms-overflow-style: none;\n\t\t\t\t\tscrollbar-width: none;\n\t\t\t\t}\n\n\t\t\t\t.${B}::-webkit-scrollbar {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t`,document.body.appendChild(e)}},j=e=>{const t=document.body.classList.contains(B);"add"!==e||t?"remove"===e&&t&&document.body.classList.remove(B):document.body.classList.add(B)},F=e=>{const t=C.current?.firstChild;t&&t.contains(e.target)||r&&h&&(e.preventDefault(),r())};return m?v.createPortal(t(I,{id:x,"data-testid":x,$show:e,zIndex:p,$stacked:y,children:o&&t(H,{"data-testid":"overlay-wrapper",$show:e,$backgroundOpacity:c||(y?.5:.8),$backgroundBlur:u,$disableTransition:d,$enableOverlayClick:h,onClick:F,children:_})}),m):null},M="lifesg-ds-overlay-stylesheet",B="lifesg-ds-overlay-open",D={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840};var T=function(e,t){return T=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},T(e,t)};var A=function(){return A=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},A.apply(this,arguments)};var z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var R=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},N="object"==typeof z&&z&&z.Object===Object&&z,V="object"==typeof self&&self&&self.Object===Object&&self,L=N||V||Function("return this")(),W=L,q=function(){return W.Date.now()},Q=/\s/;var U=function(e){for(var t=e.length;t--&&Q.test(e.charAt(t)););return t},Z=/^\s+/;var G=function(e){return e?e.slice(0,U(e)+1).replace(Z,""):e},X=L.Symbol,Y=X,J=Object.prototype,K=J.hasOwnProperty,ee=J.toString,te=Y?Y.toStringTag:void 0;var ne=function(e){var t=K.call(e,te),n=e[te];try{e[te]=void 0;var r=!0}catch(e){}var o=ee.call(e);return r&&(t?e[te]=n:delete e[te]),o},re=Object.prototype.toString;var oe=ne,ie=function(e){return re.call(e)},ae=X?X.toStringTag:void 0;var se=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ae&&ae in Object(e)?oe(e):ie(e)},le=function(e){return null!=e&&"object"==typeof e};var ce=G,ue=R,de=function(e){return"symbol"==typeof e||le(e)&&"[object Symbol]"==se(e)},he=/^[-+]0x[0-9a-f]+$/i,pe=/^0b[01]+$/i,fe=/^0o[0-7]+$/i,me=parseInt;var ge=R,ye=q,ve=function(e){if("number"==typeof e)return e;if(de(e))return NaN;if(ue(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ue(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=ce(e);var n=pe.test(e);return n||fe.test(e)?me(e.slice(2),n?2:8):he.test(e)?NaN:+e},be=Math.max,we=Math.min;var Ce=function(e,t,n){var r,o,i,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,i=o;return r=o=void 0,c=t,a=e.apply(i,n)}function f(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=i}function m(){var e=ye();if(f(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?we(n,i-(e-c)):n}(e))}function g(e){return s=void 0,h&&r?p(e):(r=o=void 0,a)}function y(){var e=ye(),n=f(e);if(r=arguments,o=this,l=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(m,t),u?p(e):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ve(t)||0,ge(n)&&(u=!!n.leading,i=(d="maxWait"in n)?be(ve(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h),y.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=o=s=void 0},y.flush=function(){return void 0===s?a:g(ye())},y},_e=Ce,xe=R;var $e=function(e,t,n){var r=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return xe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_e(e,t,{leading:r,maxWait:t,trailing:o})},Se=function(e,t,n,r){switch(t){case"debounce":return Ce(e,n,r);case"throttle":return $e(e,n,r);default:return e}},Oe=function(e){return"function"==typeof e},ke=function(){return"undefined"==typeof window},je=function(e){return e instanceof Element||e instanceof HTMLDocument},Fe=function(e,t,n,r){return function(o){var i=o.width,a=o.height;t((function(t){return t.width===i&&t.height===a||t.width===i&&!r||t.height===a&&!n?t:(e&&Oe(e)&&e(i,a),{width:i,height:a})}))}};!function(e){function t(t){var n=e.call(this,t)||this;n.cancelHandler=function(){n.resizeHandler&&n.resizeHandler.cancel&&(n.resizeHandler.cancel(),n.resizeHandler=null)},n.attachObserver=function(){var e=n.props,t=e.targetRef,r=e.observerOptions;if(!ke()){t&&t.current&&(n.targetRef.current=t.current);var o=n.getElement();o&&(n.observableElement&&n.observableElement===o||(n.observableElement=o,n.resizeObserver.observe(o,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(ke())return null;if(t)return document.querySelector(t);if(r&&je(r))return r;if(n.targetRef&&je(n.targetRef.current))return n.targetRef.current;var o=b(n);if(!o)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return o;default:return o.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,o=void 0===r||r,i=t.handleHeight,a=void 0===i||i,s=t.onResize;if(o||a){var l=Fe(s,n.setState.bind(n),o,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,o=t.height;!n.skipOnMount&&!ke()&&l({width:r,height:o}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return Oe(t)?"renderProp":Oe(r)?"childFunction":u(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,o=t.refreshMode,i=t.refreshRate,a=void 0===i?1e3:i,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=d(),n.observableElement=null,ke()||(n.resizeHandler=Se(n.createResizeHandler,o,a,s),n.resizeObserver=new window.ResizeObserver(n.resizeHandler)),n}(function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}T(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)})(t,e),t.prototype.componentDidMount=function(){this.attachObserver()},t.prototype.componentDidUpdate=function(){this.attachObserver()},t.prototype.componentWillUnmount=function(){ke()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,r=t.children,i=t.nodeType,a=void 0===i?"div":i,s=this.state,l={width:s.width,height:s.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(l);case"childFunction":return(e=r)(l);case"child":if((e=r).type&&"string"==typeof e.type){var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(l,["targetRef"]);return c(e,u)}return c(e,l);case"childArray":return(e=r).map((function(e){return!!e&&c(e,l)}));default:return o.createElement(a,null)}}}(h);var Pe=ke()?l:p;function Ie(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,o=e.refreshRate,i=void 0===o?1e3:o,l=e.refreshOptions,c=e.handleWidth,u=void 0===c||c,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,m=e.onResize,g=s(n),y=s(null),v=null!=p?p:y,b=s(),w=a({width:void 0,height:void 0}),C=w[0],_=w[1];return Pe((function(){if(!ke()){var e=Fe(m,_,u,h);b.current=Se((function(t){(u||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,o=n.height;!g.current&&!ke()&&e({width:r,height:o}),g.current=!1}))}),r,i,l);var t=new window.ResizeObserver(b.current);return v.current&&t.observe(v.current,f),function(){t.disconnect();var e=b.current;e&&e.cancel&&e.cancel()}}}),[r,i,l,u,h,m,f,v.current]),A({ref:v},C)}const He=i.createContext({mode:"default"});var Ee=Array.isArray,Me="object"==typeof S&&S&&S.Object===Object&&S,Be="object"==typeof self&&self&&self.Object===Object&&self,De=Me||Be||Function("return this")(),Te=De.Symbol,Ae=Te,ze=Object.prototype,Re=ze.hasOwnProperty,Ne=ze.toString,Ve=Ae?Ae.toStringTag:void 0;var Le=function(e){var t=Re.call(e,Ve),n=e[Ve];try{e[Ve]=void 0;var r=!0}catch(e){}var o=Ne.call(e);return r&&(t?e[Ve]=n:delete e[Ve]),o},We=Object.prototype.toString;var qe=Le,Qe=function(e){return We.call(e)},Ue=Te?Te.toStringTag:void 0;var Ze=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ue&&Ue in Object(e)?qe(e):Qe(e)};var Ge=Ze,Xe=function(e){return null!=e&&"object"==typeof e};var Ye=function(e){return"symbol"==typeof e||Xe(e)&&"[object Symbol]"==Ge(e)},Je=Ee,Ke=Ye,et=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tt=/^\w*$/;var nt=function(e,t){if(Je(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ke(e))||(tt.test(e)||!et.test(e)||null!=t&&e in Object(t))};var rt=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},ot=Ze,it=rt;var at,st=function(e){if(!it(e))return!1;var t=ot(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},lt=De["__core-js_shared__"],ct=(at=/[^.]+$/.exec(lt&<.keys&<.keys.IE_PROTO||""))?"Symbol(src)_1."+at:"";var ut=function(e){return!!ct&&ct in e},dt=Function.prototype.toString;var ht=st,pt=ut,ft=rt,mt=function(e){if(null!=e){try{return dt.call(e)}catch(e){}try{return e+""}catch(e){}}return""},gt=/^\[object .+?Constructor\]$/,yt=Function.prototype,vt=Object.prototype,bt=yt.toString,wt=vt.hasOwnProperty,Ct=RegExp("^"+bt.call(wt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var _t=function(e){return!(!ft(e)||pt(e))&&(ht(e)?Ct:gt).test(mt(e))},xt=function(e,t){return null==e?void 0:e[t]};var $t=function(e,t){var n=xt(e,t);return _t(n)?n:void 0},St=$t(Object,"create"),Ot=St;var kt=function(){this.__data__=Ot?Ot(null):{},this.size=0};var jt=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ft=St,Pt=Object.prototype.hasOwnProperty;var It=function(e){var t=this.__data__;if(Ft){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Pt.call(t,e)?t[e]:void 0},Ht=St,Et=Object.prototype.hasOwnProperty;var Mt=St;var Bt=kt,Dt=jt,Tt=It,At=function(e){var t=this.__data__;return Ht?void 0!==t[e]:Et.call(t,e)},zt=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Mt&&void 0===t?"__lodash_hash_undefined__":t,this};function Rt(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rt.prototype.clear=Bt,Rt.prototype.delete=Dt,Rt.prototype.get=Tt,Rt.prototype.has=At,Rt.prototype.set=zt;var Nt=Rt;var Vt=function(){this.__data__=[],this.size=0};var Lt=function(e,t){return e===t||e!=e&&t!=t};var Wt=function(e,t){for(var n=e.length;n--;)if(Lt(e[n][0],t))return n;return-1},qt=Wt,Qt=Array.prototype.splice;var Ut=Wt;var Zt=Wt;var Gt=Wt;var Xt=Vt,Yt=function(e){var t=this.__data__,n=qt(t,e);return!(n<0)&&(n==t.length-1?t.pop():Qt.call(t,n,1),--this.size,!0)},Jt=function(e){var t=this.__data__,n=Ut(t,e);return n<0?void 0:t[n][1]},Kt=function(e){return Zt(this.__data__,e)>-1},en=function(e,t){var n=this.__data__,r=Gt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function tn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}tn.prototype.clear=Xt,tn.prototype.delete=Yt,tn.prototype.get=Jt,tn.prototype.has=Kt,tn.prototype.set=en;var nn=tn,rn=$t(De,"Map"),on=Nt,an=nn,sn=rn;var ln=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var cn=function(e,t){var n=e.__data__;return ln(t)?n["string"==typeof t?"string":"hash"]:n.map},un=cn;var dn=cn;var hn=cn;var pn=cn;var fn=function(){this.size=0,this.__data__={hash:new on,map:new(sn||an),string:new on}},mn=function(e){var t=un(this,e).delete(e);return this.size-=t?1:0,t},gn=function(e){return dn(this,e).get(e)},yn=function(e){return hn(this,e).has(e)},vn=function(e,t){var n=pn(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function bn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}bn.prototype.clear=fn,bn.prototype.delete=mn,bn.prototype.get=gn,bn.prototype.has=yn,bn.prototype.set=vn;var wn=bn;function Cn(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(Cn.Cache||wn),n}Cn.Cache=wn;var _n=Cn;var xn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$n=/\\(\\)?/g,Sn=function(e){var t=_n(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(xn,(function(e,n,r,o){t.push(r?o.replace($n,"$1"):n||e)})),t}));var On=function(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o},kn=Ee,jn=Ye,Fn=Te?Te.prototype:void 0,Pn=Fn?Fn.toString:void 0;var In=function e(t){if("string"==typeof t)return t;if(kn(t))return On(t,e)+"";if(jn(t))return Pn?Pn.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},Hn=In;var En=Ee,Mn=nt,Bn=Sn,Dn=function(e){return null==e?"":Hn(e)};var Tn=Ye;var An=function(e,t){return En(e)?e:Mn(e,t)?[e]:Bn(Dn(e))},zn=function(e){if("string"==typeof e||Tn(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var Rn=function(e,t){for(var n=0,r=(t=An(t,e)).length;null!=e&&n<r;)e=e[zn(t[n++])];return n&&n==r?e:void 0};var Nn=function(e,t,n){var r=null==e?void 0:Rn(e,t);return void 0===r?n:r};const Vn=(e,t,n)=>t?Nn(n,t)||Nn(e,t):n||e,Ln=(e,t)=>{const n=t||e.defaultValue;return Nn(e.collections,n)};var Wn;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme",e.resourceScheme="resourceScheme"}(Wn||(Wn={}));const qn={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"},Blue:{Text:"#064D70",Icon:" #066391",Border:"#84B7DB",Background:"#E8F4FA"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)",Elevation:"rgba(75, 83, 159, 0.24)"}}},defaultValue:"base"},Qn=e=>t=>{const n=t.theme,r=Ln(qn,n[Wn.colorScheme]);return n.options&&n.options.color?Vn(r,e,n.options.color):Vn(r,e)},Un={Brand:{1:Qn("Brand.1"),2:Qn("Brand.2"),3:Qn("Brand.3"),4:Qn("Brand.4"),5:Qn("Brand.5"),6:Qn("Brand.6")},Primary:Qn("Primary"),PrimaryDark:Qn("PrimaryDark"),Secondary:Qn("Secondary"),Accent:{Light:{1:Qn("Accent.Light.1"),2:Qn("Accent.Light.2"),3:Qn("Accent.Light.3"),4:Qn("Accent.Light.4"),5:Qn("Accent.Light.5"),6:Qn("Accent.Light.6")},Dark:{1:Qn("Accent.Dark.1"),2:Qn("Accent.Dark.2"),3:Qn("Accent.Dark.3")}},Neutral:{1:Qn("Neutral.1"),2:Qn("Neutral.2"),3:Qn("Neutral.3"),4:Qn("Neutral.4"),5:Qn("Neutral.5"),6:Qn("Neutral.6"),7:Qn("Neutral.7"),8:Qn("Neutral.8")},Validation:{Green:{Text:Qn("Validation.Green.Text"),Icon:Qn("Validation.Green.Icon"),Border:Qn("Validation.Green.Border"),Background:Qn("Validation.Green.Background")},Orange:{Text:Qn("Validation.Orange.Text"),Icon:Qn("Validation.Orange.Icon"),Border:Qn("Validation.Orange.Border"),Background:Qn("Validation.Orange.Background"),Badge:Qn("Validation.Orange.Badge")},Red:{Text:Qn("Validation.Red.Text"),Icon:Qn("Validation.Red.Icon"),Border:Qn("Validation.Red.Border"),Background:Qn("Validation.Red.Background")},Blue:{Text:Qn("Validation.Blue.Text"),Icon:Qn("Validation.Blue.Icon"),Border:Qn("Validation.Blue.Border"),Background:Qn("Validation.Blue.Background")}},Shadow:{Accent:Qn("Shadow.Accent"),Red:Qn("Shadow.Red"),Elevation:Qn("Shadow.Elevation")}},Zn=e=>Object.keys(D).reduce(((t,n)=>{const r=D[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),Gn=Zn("max-width"),Xn=(Zn("min-width"),{Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"}),Yn={collections:{base:{D1:{fontFamily:Xn.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Xn.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Xn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Xn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Xn.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Xn.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Xn.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Xn.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Xn.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Xn.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Xn.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Xn.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Xn.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Xn.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},Jn=e=>t=>{const n=t.theme,r=Ln(Yn,n[Wn.textStyleScheme]);return n.options&&n.options.textStyle?Vn(r,e,n.options.textStyle):Vn(r,e)},Kn={D1:{fontFamily:Jn("D1.fontFamily"),fontSize:Jn("D1.fontSize"),fontWeight:Jn("D1.fontWeight"),lineHeight:Jn("D1.lineHeight"),letterSpacing:Jn("D1.letterSpacing")},D2:{fontFamily:Jn("D2.fontFamily"),fontSize:Jn("D2.fontSize"),fontWeight:Jn("D2.fontWeight"),lineHeight:Jn("D2.lineHeight"),letterSpacing:Jn("D2.letterSpacing")},D3:{fontFamily:Jn("D3.fontFamily"),fontSize:Jn("D3.fontSize"),fontWeight:Jn("D3.fontWeight"),lineHeight:Jn("D3.lineHeight"),letterSpacing:Jn("D3.letterSpacing")},D4:{fontFamily:Jn("D4.fontFamily"),fontSize:Jn("D4.fontSize"),fontWeight:Jn("D4.fontWeight"),lineHeight:Jn("D4.lineHeight"),letterSpacing:Jn("D4.letterSpacing")},DBody:{fontFamily:Jn("DBody.fontFamily"),fontSize:Jn("DBody.fontSize"),fontWeight:Jn("DBody.fontWeight"),lineHeight:Jn("DBody.lineHeight"),letterSpacing:Jn("DBody.letterSpacing")},H1:{fontFamily:Jn("H1.fontFamily"),fontSize:Jn("H1.fontSize"),fontWeight:Jn("H1.fontWeight"),lineHeight:Jn("H1.lineHeight"),letterSpacing:Jn("H1.letterSpacing")},H2:{fontFamily:Jn("H2.fontFamily"),fontSize:Jn("H2.fontSize"),fontWeight:Jn("H2.fontWeight"),lineHeight:Jn("H2.lineHeight"),letterSpacing:Jn("H2.letterSpacing")},H3:{fontFamily:Jn("H3.fontFamily"),fontSize:Jn("H3.fontSize"),fontWeight:Jn("H3.fontWeight"),lineHeight:Jn("H3.lineHeight"),letterSpacing:Jn("H3.letterSpacing")},H4:{fontFamily:Jn("H4.fontFamily"),fontSize:Jn("H4.fontSize"),fontWeight:Jn("H4.fontWeight"),lineHeight:Jn("H4.lineHeight"),letterSpacing:Jn("H4.letterSpacing")},H5:{fontFamily:Jn("H5.fontFamily"),fontSize:Jn("H5.fontSize"),fontWeight:Jn("H5.fontWeight"),lineHeight:Jn("H5.lineHeight"),letterSpacing:Jn("H5.letterSpacing")},H6:{fontFamily:Jn("H6.fontFamily"),fontSize:Jn("H6.fontSize"),fontWeight:Jn("H6.fontWeight"),lineHeight:Jn("H6.lineHeight"),letterSpacing:Jn("H6.letterSpacing")},Body:{fontFamily:Jn("Body.fontFamily"),fontSize:Jn("Body.fontSize"),fontWeight:Jn("Body.fontWeight"),lineHeight:Jn("Body.lineHeight"),letterSpacing:Jn("Body.letterSpacing")},BodySmall:{fontFamily:Jn("BodySmall.fontFamily"),fontSize:Jn("BodySmall.fontSize"),fontWeight:Jn("BodySmall.fontWeight"),lineHeight:Jn("BodySmall.lineHeight"),letterSpacing:Jn("BodySmall.letterSpacing")},XSmall:{fontFamily:Jn("XSmall.fontFamily"),fontSize:Jn("XSmall.fontSize"),fontWeight:Jn("XSmall.fontWeight"),lineHeight:Jn("XSmall.lineHeight"),letterSpacing:Jn("XSmall.letterSpacing")}},er=e=>{switch(e){case 700:case"bold":return Xn.Bold;case 600:case"semibold":return Xn.Semibold;case 300:case"light":return Xn.Light;case 400:case"regular":return Xn.Regular;default:return""}},tr=(e,t)=>n=>{const r=Kn[e].fontFamily(n),o=Kn[e].fontWeight(n);return Object.values(Xn).includes(r)?_`
|
|
103
103
|
font-family: ${er(t)||er(o)||r};
|
|
104
104
|
font-weight: normal !important;
|
|
105
105
|
`:_`
|
|
@@ -134,7 +134,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
134
134
|
color: ${Un.Neutral[4]};
|
|
135
135
|
`};
|
|
136
136
|
}
|
|
137
|
-
`,Or=({type:e,active:n=!1,disabled:r,className:o})=>{let i;switch(e){case"checkbox":i=t(n?yr:pr,{});break;case"radio":i=t(n?cr:ir,{});break;case"tick":i=t(Cr,{});break;case"cross":i=t($,{});break;default:i=null}return t(Sr,{className:o,$active:n,disabled:r,children:i})};let kr=Vr();const jr=e=>zr(e,kr);let Fr=Vr();jr.write=e=>zr(e,Fr);let Pr=Vr();jr.onStart=e=>zr(e,Pr);let Hr=Vr();jr.onFrame=e=>zr(e,Hr);let Ir=Vr();jr.onFinish=e=>zr(e,Ir);let Mr=[];jr.setTimeout=(e,t)=>{let n=jr.now()+t,r=()=>{let e=Mr.findIndex((e=>e.cancel==r));~e&&Mr.splice(e,1),Tr-=~e?1:0},o={time:n,handler:e,cancel:r};return Mr.splice(Er(n),0,o),Tr+=1,Rr(),o};let Er=e=>~(~Mr.findIndex((t=>t.time>e))||~Mr.length);jr.cancel=e=>{Pr.delete(e),Hr.delete(e),Ir.delete(e),kr.delete(e),Fr.delete(e)},jr.sync=e=>{Ar=!0,jr.batchedUpdates(e),Ar=!1},jr.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,jr.onStart(n)}return r.handler=e,r.cancel=()=>{Pr.delete(n),t=null},r};let Br="undefined"!=typeof window?window.requestAnimationFrame:()=>{};jr.use=e=>Br=e,jr.now="undefined"!=typeof performance?()=>performance.now():Date.now,jr.batchedUpdates=e=>e(),jr.catch=console.error,jr.frameLoop="always",jr.advance=()=>{"demand"!==jr.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Lr()};let Dr=-1,Tr=0,Ar=!1;function zr(e,t){Ar?(t.delete(e),e(0)):(t.add(e),Rr())}function Rr(){Dr<0&&(Dr=0,"demand"!==jr.frameLoop&&Br(Nr))}function Nr(){~Dr&&(Br(Nr),jr.batchedUpdates(Lr))}function Lr(){let e=Dr;Dr=jr.now();let t=Er(Dr);t&&(Wr(Mr.splice(0,t),(e=>e.handler())),Tr-=t),Tr?(Pr.flush(),kr.flush(e?Math.min(64,Dr-e):16.667),Hr.flush(),Fr.flush(),Ir.flush()):Dr=-1}function Vr(){let e=new Set,t=e;return{add(n){Tr+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Tr-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Tr-=t.size,Wr(t,(t=>t(n)&&e.add(t))),Tr+=e.size,t=e)}}}function Wr(e,t){e.forEach((e=>{try{t(e)}catch(e){jr.catch(e)}}))}function qr(){}const Qr={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 Ur(e,t){if(Qr.arr(e)){if(!Qr.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Zr=(e,t)=>e.forEach(t);function Gr(e,t,n){if(Qr.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Xr=e=>Qr.und(e)?[]:Qr.arr(e)?e:[e];function Yr(e,t){if(e.size){const n=Array.from(e);e.clear(),Zr(n,t)}}const Jr=(e,...t)=>Yr(e,(e=>e(...t))),Kr=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let eo,to,no=null,ro=!1,oo=qr;var io=Object.freeze({__proto__:null,get createStringInterpolator(){return eo},get to(){return to},get colors(){return no},get skipAnimation(){return ro},get willAdvance(){return oo},assign:e=>{e.to&&(to=e.to),e.now&&(jr.now=e.now),void 0!==e.colors&&(no=e.colors),null!=e.skipAnimation&&(ro=e.skipAnimation),e.createStringInterpolator&&(eo=e.createStringInterpolator),e.requestAnimationFrame&&jr.use(e.requestAnimationFrame),e.batchedUpdates&&(jr.batchedUpdates=e.batchedUpdates),e.willAdvance&&(oo=e.willAdvance),e.frameLoop&&(jr.frameLoop=e.frameLoop)}});const ao=new Set;let so=[],lo=[],co=0;const uo={get idle(){return!ao.size&&!so.length},start(e){co>e.priority?(ao.add(e),jr.onStart(ho)):(po(e),jr(mo))},advance:mo,sort(e){if(co)jr.onFrame((()=>uo.sort(e)));else{const t=so.indexOf(e);~t&&(so.splice(t,1),fo(e))}},clear(){so=[],ao.clear()}};function ho(){ao.forEach(po),ao.clear(),jr(mo)}function po(e){so.includes(e)||fo(e)}function fo(e){so.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(so,(t=>t.priority>e.priority)),0,e)}function mo(e){const t=lo;for(let n=0;n<so.length;n++){const r=so[n];co=r.priority,r.idle||(oo(r),r.advance(e),r.idle||t.push(r))}return co=0,lo=so,lo.length=0,so=t,so.length>0}const go="[-+]?\\d*\\.?\\d+",yo=go+"%";function vo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const bo=new RegExp("rgb"+vo(go,go,go)),wo=new RegExp("rgba"+vo(go,go,go,go)),Co=new RegExp("hsl"+vo(go,yo,yo)),_o=new RegExp("hsla"+vo(go,yo,yo,go)),xo=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$o=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,So=/^#([0-9a-fA-F]{6})$/,Oo=/^#([0-9a-fA-F]{8})$/;function ko(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jo(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ko(o,r,e+1/3),a=ko(o,r,e),s=ko(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Fo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Po(e){return(parseFloat(e)%360+360)%360/360}function Ho(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Io(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Mo(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=So.exec(e))?parseInt(t[1]+"ff",16)>>>0:no&&void 0!==no[e]?no[e]:(t=bo.exec(e))?(Fo(t[1])<<24|Fo(t[2])<<16|Fo(t[3])<<8|255)>>>0:(t=wo.exec(e))?(Fo(t[1])<<24|Fo(t[2])<<16|Fo(t[3])<<8|Ho(t[4]))>>>0:(t=xo.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Oo.exec(e))?parseInt(t[1],16)>>>0:(t=$o.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Co.exec(e))?(255|jo(Po(t[1]),Io(t[2]),Io(t[3])))>>>0:(t=_o.exec(e))?(jo(Po(t[1]),Io(t[2]),Io(t[3]))|Ho(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 Eo=(e,t,n)=>{if(Qr.fun(e))return e;if(Qr.arr(e))return Eo({range:e,output:t,extrapolate:n});if(Qr.str(e.output[0]))return eo(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};const Bo=1.70158,Do=1.525*Bo,To=Bo+1,Ao=2*Math.PI/3,zo=2*Math.PI/4.5,Ro=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},No={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=>To*e*e*e-Bo*e*e,easeOutBack:e=>1+To*Math.pow(e-1,3)+Bo*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Do)/2:(Math.pow(2*e-2,2)*((Do+1)*(2*e-2)+Do)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ao),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ao)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zo)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zo)/2+1,easeInBounce:e=>1-Ro(1-e),easeOutBounce:Ro,easeInOutBounce:e=>e<.5?(1-Ro(1-2*e))/2:(1+Ro(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return i=0,a=1,s=o/e,Math.min(Math.max(s,i),a);var i,a,s}};function Lo(){return Lo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}const Vo=Symbol.for("FluidValue.get"),Wo=Symbol.for("FluidValue.observers"),qo=e=>Boolean(e&&e[Vo]),Qo=e=>e&&e[Vo]?e[Vo]():e,Uo=e=>e[Wo]||null;function Zo(e,t){let n=e[Wo];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Go{constructor(e){if(this[Vo]=void 0,this[Wo]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Xo(this,e)}}const Xo=(e,t)=>Ko(e,Vo,t);function Yo(e,t){if(e[Vo]){let n=e[Wo];n||Ko(e,Wo,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Jo(e,t){let n=e[Wo];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Wo]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Ko=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ei=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ti=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ni=new RegExp(`(${ei.source})(%|[a-z]+)`,"i"),ri=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,oi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ii=e=>{const[t,n]=ai(e);if(!t||Kr())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&oi.test(n)?ii(n):n||e},ai=e=>{const t=oi.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let si;const li=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ci=e=>{si||(si=no?new RegExp(`(${Object.keys(no).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Qo(e).replace(oi,ii).replace(ti,Mo).replace(si,Mo))),n=t.map((e=>e.match(ei).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Eo(Lo({},e,{output:t}))));return e=>{var n;const o=!ni.test(t[0])&&(null==(n=t.find((e=>ni.test(e))))?void 0:n.replace(ei,""));let i=0;return t[0].replace(ei,(()=>`${r[i++](e)}${o||""}`)).replace(ri,li)}},ui="react-spring: ",di=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ui}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},hi=di(console.warn);const pi=di(console.warn);function fi(e){return Qr.str(e)&&("#"==e[0]||/\d/.test(e)||!Kr()&&oi.test(e)||e in(no||{}))}const mi=Kr()?l:p,gi=()=>{const e=s(!1);return mi((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function yi(){const e=a()[1],t=gi();return()=>{t.current&&e(Math.random())}}const vi=e=>l(e,bi),bi=[];function wi(e){const t=s();return l((()=>{t.current=e})),t.current}const Ci=Symbol.for("Animated:node"),_i=e=>e&&e[Ci],xi=(e,t)=>{return n=e,r=Ci,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},$i=e=>e&&e[Ci]&&e[Ci].getPayload();class Si{constructor(){this.payload=void 0,xi(this,this)}getPayload(){return this.payload||[]}}class Oi extends Si{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,Qr.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Oi(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Qr.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,Qr.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class ki extends Oi{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Eo({output:[e,e]})}static create(e){return new ki(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Qr.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=Eo({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ji={dependencies:null};class Fi extends Si{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Gr(this.source,((n,r)=>{var o;(o=n)&&o[Ci]===o?t[r]=n.getValue(e):qo(n)?t[r]=Qo(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Zr(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Gr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ji.dependencies&&qo(e)&&ji.dependencies.add(e);const t=$i(e);t&&Zr(t,(e=>this.add(e)))}}class Pi extends Fi{constructor(e){super(e)}static create(e){return new Pi(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Hi)),!0)}}function Hi(e){return(fi(e)?ki:Oi).create(e)}function Ii(e){const t=_i(e);return t?t.constructor:Qr.arr(e)?Pi:fi(e)?ki:Oi}function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mi.apply(this,arguments)}const Ei=(e,t)=>{const n=!Qr.fun(e)||e.prototype&&e.prototype.isReactComponent;return f(((r,i)=>{const a=s(null),c=n&&m((e=>{a.current=function(e,t){e&&(Qr.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,d]=function(e,t){const n=new Set;ji.dependencies=n,e.style&&(e=Mi({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Fi(e),ji.dependencies=null,[e,n]}(r,t),h=yi(),p=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},f=new Bi(p,d),g=s();mi((()=>(g.current=f,Zr(d,(e=>Yo(e,f))),()=>{g.current&&(Zr(g.current.deps,(e=>Jo(e,g.current))),jr.cancel(g.current.update))}))),l(p,[]),vi((()=>()=>{const e=g.current;Zr(e.deps,(t=>Jo(t,e)))}));const y=t.getComponentProps(u.getValue());return o.createElement(e,Mi({},y,{ref:c}))}))};class Bi{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&jr.write(this.update)}}const Di=Symbol.for("AnimatedComponent"),Ti=e=>Qr.str(e)?e:e&&Qr.str(e.displayName)?e.displayName:Qr.fun(e)&&e.name||null;function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ai.apply(this,arguments)}function zi(e,...t){return Qr.fun(e)?e(...t):e}const Ri=(e,t)=>!0===e||!!(t&&e&&(Qr.fun(e)?e(t):Xr(e).includes(t))),Ni=(e,t)=>Qr.obj(e)?t&&e[t]:e,Li=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Vi=e=>e,Wi=(e,t=Vi)=>{let n=qi;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);Qr.und(n)||(r[o]=n)}return r},qi=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Qi={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 Ui(e){const t=function(e){const t={};let n=0;if(Gr(e,((e,r)=>{Qi[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Gr(e,((e,r)=>r in t||(n[r]=e))),n}return Ai({},e)}function Zi(e){return e=Qo(e),Qr.arr(e)?e.map(Zi):fi(e)?io.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Gi(e){return Qr.fun(e)||Qr.arr(e)&&Qr.obj(e[0])}const Xi=Ai({},{tension:170,friction:26},{mass:1,damping:1,easing:No.linear,clamp:!1});class Yi{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,Xi)}}function Ji(e,t){if(Qr.und(t.decay)){const n=!Qr.und(t.tension)||!Qr.und(t.friction);!n&&Qr.und(t.frequency)&&Qr.und(t.damping)&&Qr.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Ki=[];class ea{constructor(){this.changed=!1,this.values=Ki,this.toValues=null,this.fromValues=Ki,this.to=void 0,this.from=void 0,this.config=new Yi,this.immediate=!1}}function ta(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{var l;let c,u,d=Ri(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{Qr.und(n.pause)||(o.paused=Ri(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=o.paused||Ri(e,t)),c=zi(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){o.resumeQueue.add(p),o.timeouts.delete(u),u.cancel(),c=u.time-jr.now()}function p(){c>0&&!io.skipAnimation?(o.delayed=!0,u=jr.setTimeout(f,c),o.pauseQueue.add(h),o.timeouts.add(u)):f()}function f(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(u),e<=(o.cancelId||0)&&(d=!0);try{i.start(Ai({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const na=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ia(e.get()):t.every((e=>e.noop))?ra(e.get()):oa(e.get(),t.every((e=>e.finished))),ra=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),oa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ia=e=>({value:e,cancelled:!0,finished:!1});function aa(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Wi(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=o<=(n.cancelId||0)&&ia(r)||o!==n.asyncId&&oa(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new la,a=new ca;return(async()=>{if(io.skipAnimation)throw sa(n),a.result=oa(r,!1),d(a),a;p(i);const s=Qr.obj(e)?Ai({},e):Ai({},t,{to:e});s.parentId=o,Gr(c,((e,t)=>{Qr.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(io.skipAnimation)return sa(n),oa(r,!1);try{let t;t=Qr.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),m=oa(r.get(),!0,!1)}catch(e){if(e instanceof la)m=e.result;else{if(!(e instanceof ca))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Qr.fun(a)&&jr.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function sa(e,t){Yr(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class la 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 ca extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ua=e=>e instanceof ha;let da=1;class ha extends Go{constructor(...e){super(...e),this.id=da++,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=_i(this);return e&&e.getValue()}to(...e){return io.to(this,e)}interpolate(...e){return hi(`${ui}The "interpolate" function is deprecated in v9 (use "to" instead)`),io.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){Zo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||uo.sort(this),Zo(this,{type:"priority",parent:this,priority:e})}}const pa=Symbol.for("SpringPhase"),fa=e=>(1&e[pa])>0,ma=e=>(2&e[pa])>0,ga=e=>(4&e[pa])>0,ya=(e,t)=>t?e[pa]|=3:e[pa]&=-3,va=(e,t)=>t?e[pa]|=4:e[pa]&=-5;class ba extends ha{constructor(e,t){if(super(),this.key=void 0,this.animation=new ea,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,!Qr.und(e)||!Qr.und(t)){const n=Qr.obj(e)?Ai({},e):Ai({},t,{from:e});Qr.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ma(this)||this._state.asyncTo)||ga(this)}get goal(){return Qo(this.animation.to)}get velocity(){const e=_i(this);return e instanceof Oi?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return fa(this)}get isAnimating(){return ma(this)}get isPaused(){return ga(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:o,toValues:i}=r;const a=$i(r.to);!a&&qo(r.to)&&(i=Xr(Qo(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ki?1:a?a[l].lastPosition:i[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=Qr.arr(o.velocity)?o.velocity[l]:o.velocity;let a;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Qr.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!Qr.und(r),p=n==c?s.v0>0:n<c;let f,m=!1;const g=1,y=Math.ceil(e/g);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(a=-a*r,d=c));a+=(1e-6*-o.tension*(d-c)+.001*-o.friction*a)/o.mass*g,d+=a*g}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+o.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)}));const s=_i(this),l=s.getValue();if(t){const e=Qo(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return jr.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ma(this)){const{to:e,config:t}=this.animation;jr.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Qr.und(e)?(n=this.queue||[],this.queue=[]):n=[Qr.obj(e)?e:Ai({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>na(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),sa(this._state,e&&this._lastCallId),jr.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Qr.obj(n)?n[t]:n,(null==n||Gi(n))&&(n=void 0),r=Qr.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return fa(this)||(e.reverse&&([n,r]=[r,n]),r=Qo(r),Qr.und(r)?_i(this)||this._set(n):this._set(r)),o}_update(e,t){let n=Ai({},e);const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,Wi(n,((e,t)=>/^on/.test(t)?Ni(e,r):e))),Oa(this,n,"onProps"),ka(this,"onProps",n,this);const i=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return ta(++this._lastCallId,{key:r,props:n,defaultProps:o,state:a,actions:{pause:()=>{ga(this)||(va(this,!0),Jr(a.pauseQueue),ka(this,"onPause",oa(this,wa(this,this.animation.to)),this))},resume:()=>{ga(this)&&(va(this,!1),ma(this)&&this._resume(),Jr(a.resumeQueue),ka(this,"onResume",oa(this,wa(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=Ca(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ia(this));const r=!Qr.und(e.to),o=!Qr.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(ia(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!Qr.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Ur(d,c);h&&(s.from=d),d=Qo(d);const p=!Ur(u,l);p&&this._focus(u);const f=Gi(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Ji(n=Ai({},n),t),t=Ai({},n,t)),Ji(e,t),Object.assign(e,t);for(const t in Xi)null==e[t]&&(e[t]=Xi[t]);let{mass:r,frequency:o,damping:i}=e;Qr.und(o)||(o<.01&&(o=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/o,2)*r,e.friction=4*Math.PI*i*r/o)}(m,zi(t.config,i),t.config!==a.config?zi(a.config,i):void 0);let v=_i(this);if(!v||Qr.und(u))return n(oa(this,!0));const b=Qr.und(t.reset)?o&&!t.default:!Qr.und(d)&&Ri(t.reset,i),w=b?d:this.get(),C=Zi(u),_=Qr.num(C)||Qr.arr(C)||fi(C),x=!f&&(!_||Ri(a.immediate||t.immediate,i));if(p){const e=Ii(u);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(C)}}const $=v.constructor;let S=qo(u),O=!1;if(!S){const e=b||!fa(this)&&h;(p||e)&&(O=Ur(Zi(w),C),S=!O),(Ur(s.immediate,x)||x)&&Ur(m.decay,g)&&Ur(m.velocity,y)||(S=!0)}if(O&&ma(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!f&&((S||qo(l))&&(s.values=v.getPayload(),s.toValues=qo(u)?null:$==ki?[1]:Xr(C)),s.immediate!=x&&(s.immediate=x,x||b||this._set(l)),S)){const{onRest:e}=s;Zr(Sa,(e=>Oa(this,t,e)));const r=oa(this,wa(this,l));Jr(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&jr.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?zi(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(aa(t.to,t,this._state,this)):S?this._start():ma(this)&&!p?this._pendingCalls.add(n):n(ra(w))}_focus(e){const t=this.animation;e!==t.to&&(Uo(this)&&this._detach(),t.to=e,Uo(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;qo(t)&&(Yo(t,this),ua(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;qo(e)&&Jo(e,this)}_set(e,t=!0){const n=Qo(e);if(!Qr.und(n)){const e=_i(this);if(!e||!Ur(n,e.getValue())){const r=Ii(n);e&&e.constructor==r?e.setValue(n):xi(this,r.create(n)),e&&jr.batchedUpdates((()=>{this._onChange(n,t)}))}}return _i(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ka(this,"onStart",oa(this,wa(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zi(this.animation.onChange,e,this)),zi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;_i(this).reset(Qo(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),ma(this)||(ya(this,!0),ga(this)||this._resume())}_resume(){io.skipAnimation?this.finish():uo.start(this)}_stop(e,t){if(ma(this)){ya(this,!1);const n=this.animation;Zr(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Zo(this,{type:"idle",parent:this});const r=t?ia(this.get()):oa(this.get(),wa(this,null!=e?e:n.to));Jr(this._pendingCalls,r),n.changed&&(n.changed=!1,ka(this,"onRest",r,this))}}}function wa(e,t){const n=Zi(t);return Ur(Zi(e.get()),n)}function Ca(e,t=e.loop,n=e.to){let r=zi(t);if(r){const o=!0!==r&&Ui(r),i=(o||e).reverse,a=!o||o.reset;return _a(Ai({},e,{loop:t,default:!1,pause:void 0,to:!i||Gi(n)?n:void 0,from:a?e.from:void 0,reset:a},o))}}function _a(e){const{to:t,from:n}=e=Ui(e),r=new Set;return Qr.obj(t)&&$a(t,r),Qr.obj(n)&&$a(n,r),e.keys=r.size?Array.from(r):null,e}function xa(e){const t=_a(e);return Qr.und(t.default)&&(t.default=Wi(t)),t}function $a(e,t){Gr(e,((e,n)=>null!=e&&t.add(n)))}const Sa=["onStart","onRest","onChange","onPause","onResume"];function Oa(e,t,n){e.animation[n]=t[n]!==Li(t,n)?Ni(t[n],e.key):void 0}function ka(e,t,...n){var r,o,i,a;null==(r=(o=e.animation)[t])||r.call(o,...n),null==(i=(a=e.defaultProps)[t])||i.call(a,...n)}const ja=["onStart","onChange","onRest"];let Fa=1;class Pa{constructor(e,t){this.id=Fa++,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(Ai({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Qr.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_a(e)),this}start(e){let{queue:t}=this;return e?t=Xr(e).map(_a):this.queue=[],this._flush?this._flush(this,t):(Ta(this,t),Ha(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Zr(Xr(t),(t=>n[t].stop(!!e)))}else sa(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Qr.und(e))this.start({pause:!0});else{const t=this.springs;Zr(Xr(e),(e=>t[e].pause()))}return this}resume(e){if(Qr.und(e))this.start({pause:!1});else{const t=this.springs;Zr(Xr(e),(e=>t[e].resume()))}return this}each(e){Gr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Yr(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Yr(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,Yr(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}jr.onFrame(this._onFrame)}}function Ha(e,t){return Promise.all(t.map((t=>Ia(e,t)))).then((t=>na(e,t)))}async function Ia(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Qr.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Qr.arr(o)||Qr.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Zr(ja,(n=>{const r=t[n];if(Qr.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Jr(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Li(t,"cancel");(u||p&&d.asyncId)&&h.push(ta(++e._lastAsyncId,{props:t,state:d,actions:{pause:qr,resume:qr,start(t,n){p?(sa(d,e._lastAsyncId),n(ia(e))):(t.onRest=s,n(aa(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=na(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=Ca(t,a,o);if(n)return Ta(e,[n]),Ia(e,n,!0)}return l&&jr.batchedUpdates((()=>l(f,e,e.item))),f}function Ma(e,t){const n=Ai({},e.springs);return t&&Zr(Xr(t),(e=>{Qr.und(e.keys)&&(e=_a(e)),Qr.obj(e.to)||(e=Ai({},e,{to:void 0})),Da(n,e,(e=>Ba(e)))})),Ea(e,n),n}function Ea(e,t){Gr(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Yo(t,e))}))}function Ba(e,t){const n=new ba;return n.key=e,t&&Yo(n,t),n}function Da(e,t,n){t.keys&&Zr(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Ta(e,t){Zr(t,(t=>{Da(e.springs,t,(t=>Ba(t,e)))}))}const Aa=["children"],za=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Aa);const r=g(Ra),i=n.pause||!!r.pause,c=n.immediate||!!r.immediate;n=function(e,t){const[n]=a((()=>({inputs:t,result:e()}))),r=s(),o=r.current;let i=o;i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=n;return l((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:i,immediate:c})),[i,c]);const{Provider:u}=Ra;return o.createElement(u,{value:n},t)},Ra=(Na=za,La={},Object.assign(Na,o.createContext(La)),Na.Provider._context=Na,Na.Consumer._context=Na,Na);var Na,La;za.Provider=Ra.Provider,za.Consumer=Ra.Consumer;const Va=()=>{const e=[],t=function(t){pi(`${ui}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Zr(e,((e,o)=>{if(Qr.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Zr(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Zr(e,(e=>e.resume(...arguments))),this},t.set=function(t){Zr(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Zr(e,((e,r)=>{if(Qr.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return Zr(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Zr(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Qr.fun(e)?e(n,t):e};return t._getProps=n,t};function Wa(e,t){const n=Qr.fun(e),[[r],o]=function(e,t,n){const r=Qr.fun(t)&&t;r&&!n&&(n=[]);const o=y((()=>r||3==arguments.length?Va():void 0),[]),i=s(0),a=yi(),l=y((()=>({ctrls:[],queue:[],flush(e,t){const n=Ma(e,t);return i.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?Ha(e,t):new Promise((r=>{Ea(e,n),l.queue.push((()=>{r(Ha(e,t))})),a()}))}})),[]),c=s([...l.ctrls]),u=[],d=wi(e)||0;function h(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new Pa(null,l.flush)),n=r?r(o,e):t[o];n&&(u[o]=xa(n))}}y((()=>{Zr(c.current.slice(e,d),(e=>{!function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}(e,o),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),y((()=>{h(0,Math.min(d,e))}),n);const p=c.current.map(((e,t)=>Ma(e,u[t]))),f=g(za),m=wi(f),v=f!==m&&function(e){for(const t in e)return!0;return!1}(f);mi((()=>{i.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Zr(e,(e=>e()))),Zr(c.current,((e,t)=>{null==o||o.add(e),v&&e.start({default:f});const n=u[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),vi((()=>()=>{Zr(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>Ai({},e)));return o?[b,o]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}let qa;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(qa||(qa={}));class Qa extends ha{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Eo(...t);const n=this._get(),r=Ii(n);xi(this,r.create(n))}advance(e){const t=this._get();Ur(t,this.get())||(_i(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Za(this._active)&&Ga(this)}_get(){const e=Qr.arr(this.source)?this.source.map(Qo):Xr(Qo(this.source));return this.calc(...e)}_start(){this.idle&&!Za(this._active)&&(this.idle=!1,Zr($i(this),(e=>{e.done=!1})),io.skipAnimation?(jr.batchedUpdates((()=>this.advance())),Ga(this)):uo.start(this))}_attach(){let e=1;Zr(Xr(this.source),(t=>{qo(t)&&Yo(t,this),ua(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Zr(Xr(this.source),(e=>{qo(e)&&Jo(e,this)})),this._active.clear(),Ga(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=Xr(this.source).reduce(((e,t)=>Math.max(e,(ua(t)?t.priority:0)+1)),0))}}function Ua(e){return!1!==e.idle}function Za(e){return!e.size||Array.from(e).every(Ua)}function Ga(e){e.idle||(e.idle=!0,Zr($i(e),(e=>{e.done=!0})),Zo(e,{type:"idle",parent:e}))}function Xa(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}io.assign({createStringInterpolator:ci,to:(e,t)=>new Qa(e,t)});const Ya=["style","children","scrollTop","scrollLeft","viewBox"],Ja=/^--/;function Ka(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ja.test(e)||ts.hasOwnProperty(e)&&ts[e]?(""+t).trim():t+"px"}const es={};let ts={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 ns=["Webkit","Ms","Moz","O"];ts=Object.keys(ts).reduce(((e,t)=>(ns.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),ts);const rs=["x","y","z"],os=/^(matrix|translate|scale|rotate|skew)/,is=/^(translate)/,as=/^(rotate|skew)/,ss=(e,t)=>Qr.num(e)&&0!==e?e+t:e,ls=(e,t)=>Qr.arr(e)?e.every((e=>ls(e,t))):Qr.num(e)?e===t:parseFloat(e)===t;class cs extends Fi{constructor(e){let{x:t,y:n,z:r}=e,o=Xa(e,rs);const i=[],a=[];(t||n||r)&&(i.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>ss(e,"px"))).join(",")})`,ls(e,0)]))),Gr(o,((e,t)=>{if("transform"===t)i.push([e||""]),a.push((e=>[e,""===e]));else if(os.test(t)){if(delete o[t],Qr.und(e))return;const n=is.test(t)?"px":as.test(t)?"deg":"";i.push(Xr(e)),a.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${ss(o,n)})`,ls(o,0)]:e=>[`${t}(${e.map((e=>ss(e,n))).join(",")})`,ls(e,t.startsWith("scale")?1:0)])}})),i.length&&(o.transform=new us(i,a)),super(o)}}class us extends Go{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 Zr(this.inputs,((n,r)=>{const o=Qo(n[0]),[i,a]=this.transforms[r](Qr.arr(o)?o:n.map(Qo));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Zr(this.inputs,(e=>Zr(e,(e=>qo(e)&&Yo(e,this)))))}observerRemoved(e){0==e&&Zr(this.inputs,(e=>Zr(e,(e=>qo(e)&&Jo(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Zo(this,e)}}const ds=["scrollTop","scrollLeft"];io.assign({batchedUpdates:w,createStringInterpolator:ci,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 hs=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Fi(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Ti(e)||"Anonymous";return(e=Qr.str(e)?i[e]||(i[e]=Ei(e,o)):e[Di]||(e[Di]=Ei(e,o))).displayName=`Animated(${t})`,e};return Gr(e,((t,n)=>{Qr.arr(e)&&(n=Ti(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:o,children:i,scrollTop:a,scrollLeft:s,viewBox:l}=r,c=Xa(r,Ya),u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:es[t]||(es[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){const n=Ka(t,o[t]);Ja.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new cs(e),getComponentProps:e=>Xa(e,ds)}),ps=hs.animated;var fs,ms={};Object.defineProperty(ms,"__esModule",{value:!0});var gs=e;const ys=e=>gs.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:gs.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"})});ys.displayName="ChevronDownIcon",fs=ms.ChevronDownIcon=ys;const vs=C.div`
|
|
137
|
+
`,Or=({type:e,active:n=!1,disabled:r,className:o})=>{let i;switch(e){case"checkbox":i=t(n?yr:pr,{});break;case"radio":i=t(n?cr:ir,{});break;case"tick":i=t(Cr,{});break;case"cross":i=t($,{});break;default:i=null}return t(Sr,{className:o,$active:n,disabled:r,children:i})};let kr=Lr();const jr=e=>zr(e,kr);let Fr=Lr();jr.write=e=>zr(e,Fr);let Pr=Lr();jr.onStart=e=>zr(e,Pr);let Ir=Lr();jr.onFrame=e=>zr(e,Ir);let Hr=Lr();jr.onFinish=e=>zr(e,Hr);let Er=[];jr.setTimeout=(e,t)=>{let n=jr.now()+t,r=()=>{let e=Er.findIndex((e=>e.cancel==r));~e&&Er.splice(e,1),Tr-=~e?1:0},o={time:n,handler:e,cancel:r};return Er.splice(Mr(n),0,o),Tr+=1,Rr(),o};let Mr=e=>~(~Er.findIndex((t=>t.time>e))||~Er.length);jr.cancel=e=>{Pr.delete(e),Ir.delete(e),Hr.delete(e),kr.delete(e),Fr.delete(e)},jr.sync=e=>{Ar=!0,jr.batchedUpdates(e),Ar=!1},jr.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,jr.onStart(n)}return r.handler=e,r.cancel=()=>{Pr.delete(n),t=null},r};let Br="undefined"!=typeof window?window.requestAnimationFrame:()=>{};jr.use=e=>Br=e,jr.now="undefined"!=typeof performance?()=>performance.now():Date.now,jr.batchedUpdates=e=>e(),jr.catch=console.error,jr.frameLoop="always",jr.advance=()=>{"demand"!==jr.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):Vr()};let Dr=-1,Tr=0,Ar=!1;function zr(e,t){Ar?(t.delete(e),e(0)):(t.add(e),Rr())}function Rr(){Dr<0&&(Dr=0,"demand"!==jr.frameLoop&&Br(Nr))}function Nr(){~Dr&&(Br(Nr),jr.batchedUpdates(Vr))}function Vr(){let e=Dr;Dr=jr.now();let t=Mr(Dr);t&&(Wr(Er.splice(0,t),(e=>e.handler())),Tr-=t),Tr?(Pr.flush(),kr.flush(e?Math.min(64,Dr-e):16.667),Ir.flush(),Fr.flush(),Hr.flush()):Dr=-1}function Lr(){let e=new Set,t=e;return{add(n){Tr+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Tr-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Tr-=t.size,Wr(t,(t=>t(n)&&e.add(t))),Tr+=e.size,t=e)}}}function Wr(e,t){e.forEach((e=>{try{t(e)}catch(e){jr.catch(e)}}))}function qr(){}const Qr={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 Ur(e,t){if(Qr.arr(e)){if(!Qr.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}const Zr=(e,t)=>e.forEach(t);function Gr(e,t,n){if(Qr.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}const Xr=e=>Qr.und(e)?[]:Qr.arr(e)?e:[e];function Yr(e,t){if(e.size){const n=Array.from(e);e.clear(),Zr(n,t)}}const Jr=(e,...t)=>Yr(e,(e=>e(...t))),Kr=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let eo,to,no=null,ro=!1,oo=qr;var io=Object.freeze({__proto__:null,get createStringInterpolator(){return eo},get to(){return to},get colors(){return no},get skipAnimation(){return ro},get willAdvance(){return oo},assign:e=>{e.to&&(to=e.to),e.now&&(jr.now=e.now),void 0!==e.colors&&(no=e.colors),null!=e.skipAnimation&&(ro=e.skipAnimation),e.createStringInterpolator&&(eo=e.createStringInterpolator),e.requestAnimationFrame&&jr.use(e.requestAnimationFrame),e.batchedUpdates&&(jr.batchedUpdates=e.batchedUpdates),e.willAdvance&&(oo=e.willAdvance),e.frameLoop&&(jr.frameLoop=e.frameLoop)}});const ao=new Set;let so=[],lo=[],co=0;const uo={get idle(){return!ao.size&&!so.length},start(e){co>e.priority?(ao.add(e),jr.onStart(ho)):(po(e),jr(mo))},advance:mo,sort(e){if(co)jr.onFrame((()=>uo.sort(e)));else{const t=so.indexOf(e);~t&&(so.splice(t,1),fo(e))}},clear(){so=[],ao.clear()}};function ho(){ao.forEach(po),ao.clear(),jr(mo)}function po(e){so.includes(e)||fo(e)}function fo(e){so.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(so,(t=>t.priority>e.priority)),0,e)}function mo(e){const t=lo;for(let n=0;n<so.length;n++){const r=so[n];co=r.priority,r.idle||(oo(r),r.advance(e),r.idle||t.push(r))}return co=0,lo=so,lo.length=0,so=t,so.length>0}const go="[-+]?\\d*\\.?\\d+",yo=go+"%";function vo(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const bo=new RegExp("rgb"+vo(go,go,go)),wo=new RegExp("rgba"+vo(go,go,go,go)),Co=new RegExp("hsl"+vo(go,yo,yo)),_o=new RegExp("hsla"+vo(go,yo,yo,go)),xo=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,$o=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,So=/^#([0-9a-fA-F]{6})$/,Oo=/^#([0-9a-fA-F]{8})$/;function ko(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function jo(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ko(o,r,e+1/3),a=ko(o,r,e),s=ko(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function Fo(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function Po(e){return(parseFloat(e)%360+360)%360/360}function Io(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Ho(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function Eo(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=So.exec(e))?parseInt(t[1]+"ff",16)>>>0:no&&void 0!==no[e]?no[e]:(t=bo.exec(e))?(Fo(t[1])<<24|Fo(t[2])<<16|Fo(t[3])<<8|255)>>>0:(t=wo.exec(e))?(Fo(t[1])<<24|Fo(t[2])<<16|Fo(t[3])<<8|Io(t[4]))>>>0:(t=xo.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=Oo.exec(e))?parseInt(t[1],16)>>>0:(t=$o.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Co.exec(e))?(255|jo(Po(t[1]),Ho(t[2]),Ho(t[3])))>>>0:(t=_o.exec(e))?(jo(Po(t[1]),Ho(t[2]),Ho(t[3]))|Io(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 Mo=(e,t,n)=>{if(Qr.fun(e))return e;if(Qr.arr(e))return Mo({range:e,output:t,extrapolate:n});if(Qr.str(e.output[0]))return eo(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],l,a,s,r.map)}};const Bo=1.70158,Do=1.525*Bo,To=Bo+1,Ao=2*Math.PI/3,zo=2*Math.PI/4.5,Ro=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},No={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=>To*e*e*e-Bo*e*e,easeOutBack:e=>1+To*Math.pow(e-1,3)+Bo*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Do)/2:(Math.pow(2*e-2,2)*((Do+1)*(2*e-2)+Do)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Ao),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Ao)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*zo)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*zo)/2+1,easeInBounce:e=>1-Ro(1-e),easeOutBounce:Ro,easeInOutBounce:e=>e<.5?(1-Ro(1-2*e))/2:(1+Ro(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return i=0,a=1,s=o/e,Math.min(Math.max(s,i),a);var i,a,s}};function Vo(){return Vo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vo.apply(this,arguments)}const Lo=Symbol.for("FluidValue.get"),Wo=Symbol.for("FluidValue.observers"),qo=e=>Boolean(e&&e[Lo]),Qo=e=>e&&e[Lo]?e[Lo]():e,Uo=e=>e[Wo]||null;function Zo(e,t){let n=e[Wo];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Go{constructor(e){if(this[Lo]=void 0,this[Wo]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Xo(this,e)}}const Xo=(e,t)=>Ko(e,Lo,t);function Yo(e,t){if(e[Lo]){let n=e[Wo];n||Ko(e,Wo,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Jo(e,t){let n=e[Wo];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Wo]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Ko=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),ei=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,ti=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,ni=new RegExp(`(${ei.source})(%|[a-z]+)`,"i"),ri=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,oi=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,ii=e=>{const[t,n]=ai(e);if(!t||Kr())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&oi.test(n)?ii(n):n||e},ai=e=>{const t=oi.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let si;const li=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ci=e=>{si||(si=no?new RegExp(`(${Object.keys(no).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Qo(e).replace(oi,ii).replace(ti,Eo).replace(si,Eo))),n=t.map((e=>e.match(ei).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>Mo(Vo({},e,{output:t}))));return e=>{var n;const o=!ni.test(t[0])&&(null==(n=t.find((e=>ni.test(e))))?void 0:n.replace(ei,""));let i=0;return t[0].replace(ei,(()=>`${r[i++](e)}${o||""}`)).replace(ri,li)}},ui="react-spring: ",di=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${ui}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},hi=di(console.warn);const pi=di(console.warn);function fi(e){return Qr.str(e)&&("#"==e[0]||/\d/.test(e)||!Kr()&&oi.test(e)||e in(no||{}))}const mi=Kr()?l:p,gi=()=>{const e=s(!1);return mi((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function yi(){const e=a()[1],t=gi();return()=>{t.current&&e(Math.random())}}const vi=e=>l(e,bi),bi=[];function wi(e){const t=s();return l((()=>{t.current=e})),t.current}const Ci=Symbol.for("Animated:node"),_i=e=>e&&e[Ci],xi=(e,t)=>{return n=e,r=Ci,o=t,Object.defineProperty(n,r,{value:o,writable:!0,configurable:!0});var n,r,o},$i=e=>e&&e[Ci]&&e[Ci].getPayload();class Si{constructor(){this.payload=void 0,xi(this,this)}getPayload(){return this.payload||[]}}class Oi extends Si{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,Qr.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new Oi(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Qr.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,Qr.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class ki extends Oi{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=Mo({output:[e,e]})}static create(e){return new ki(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Qr.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=Mo({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ji={dependencies:null};class Fi extends Si{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Gr(this.source,((n,r)=>{var o;(o=n)&&o[Ci]===o?t[r]=n.getValue(e):qo(n)?t[r]=Qo(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Zr(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Gr(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ji.dependencies&&qo(e)&&ji.dependencies.add(e);const t=$i(e);t&&Zr(t,(e=>this.add(e)))}}class Pi extends Fi{constructor(e){super(e)}static create(e){return new Pi(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(Ii)),!0)}}function Ii(e){return(fi(e)?ki:Oi).create(e)}function Hi(e){const t=_i(e);return t?t.constructor:Qr.arr(e)?Pi:fi(e)?ki:Oi}function Ei(){return Ei=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ei.apply(this,arguments)}const Mi=(e,t)=>{const n=!Qr.fun(e)||e.prototype&&e.prototype.isReactComponent;return f(((r,i)=>{const a=s(null),c=n&&m((e=>{a.current=function(e,t){e&&(Qr.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[u,d]=function(e,t){const n=new Set;ji.dependencies=n,e.style&&(e=Ei({},e,{style:t.createAnimatedStyle(e.style)}));return e=new Fi(e),ji.dependencies=null,[e,n]}(r,t),h=yi(),p=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},f=new Bi(p,d),g=s();mi((()=>(g.current=f,Zr(d,(e=>Yo(e,f))),()=>{g.current&&(Zr(g.current.deps,(e=>Jo(e,g.current))),jr.cancel(g.current.update))}))),l(p,[]),vi((()=>()=>{const e=g.current;Zr(e.deps,(t=>Jo(t,e)))}));const y=t.getComponentProps(u.getValue());return o.createElement(e,Ei({},y,{ref:c}))}))};class Bi{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&jr.write(this.update)}}const Di=Symbol.for("AnimatedComponent"),Ti=e=>Qr.str(e)?e:e&&Qr.str(e.displayName)?e.displayName:Qr.fun(e)&&e.name||null;function Ai(){return Ai=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ai.apply(this,arguments)}function zi(e,...t){return Qr.fun(e)?e(...t):e}const Ri=(e,t)=>!0===e||!!(t&&e&&(Qr.fun(e)?e(t):Xr(e).includes(t))),Ni=(e,t)=>Qr.obj(e)?t&&e[t]:e,Vi=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Li=e=>e,Wi=(e,t=Li)=>{let n=qi;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);Qr.und(n)||(r[o]=n)}return r},qi=["config","onProps","onStart","onChange","onPause","onResume","onRest"],Qi={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 Ui(e){const t=function(e){const t={};let n=0;if(Gr(e,((e,r)=>{Qi[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Gr(e,((e,r)=>r in t||(n[r]=e))),n}return Ai({},e)}function Zi(e){return e=Qo(e),Qr.arr(e)?e.map(Zi):fi(e)?io.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Gi(e){return Qr.fun(e)||Qr.arr(e)&&Qr.obj(e[0])}const Xi=Ai({},{tension:170,friction:26},{mass:1,damping:1,easing:No.linear,clamp:!1});class Yi{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,Xi)}}function Ji(e,t){if(Qr.und(t.decay)){const n=!Qr.und(t.tension)||!Qr.und(t.friction);!n&&Qr.und(t.frequency)&&Qr.und(t.damping)&&Qr.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Ki=[];class ea{constructor(){this.changed=!1,this.values=Ki,this.toValues=null,this.fromValues=Ki,this.to=void 0,this.from=void 0,this.config=new Yi,this.immediate=!1}}function ta(e,{key:t,props:n,defaultProps:r,state:o,actions:i}){return new Promise(((a,s)=>{var l;let c,u,d=Ri(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{Qr.und(n.pause)||(o.paused=Ri(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=o.paused||Ri(e,t)),c=zi(n.delay||0,t),e?(o.resumeQueue.add(p),i.pause()):(i.resume(),p())}function h(){o.resumeQueue.add(p),o.timeouts.delete(u),u.cancel(),c=u.time-jr.now()}function p(){c>0&&!io.skipAnimation?(o.delayed=!0,u=jr.setTimeout(f,c),o.pauseQueue.add(h),o.timeouts.add(u)):f()}function f(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(h),o.timeouts.delete(u),e<=(o.cancelId||0)&&(d=!0);try{i.start(Ai({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const na=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?ia(e.get()):t.every((e=>e.noop))?ra(e.get()):oa(e.get(),t.every((e=>e.finished))),ra=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),oa=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),ia=e=>({value:e,cancelled:!0,finished:!1});function aa(e,t,n,r){const{callId:o,parentId:i,onRest:a}=t,{asyncTo:s,promise:l}=n;return i||e!==s||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const c=Wi(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=o<=(n.cancelId||0)&&ia(r)||o!==n.asyncId&&oa(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const i=new la,a=new ca;return(async()=>{if(io.skipAnimation)throw sa(n),a.result=oa(r,!1),d(a),a;p(i);const s=Qr.obj(e)?Ai({},e):Ai({},t,{to:e});s.parentId=o,Gr(c,((e,t)=>{Qr.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(i),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let m;if(io.skipAnimation)return sa(n),oa(r,!1);try{let t;t=Qr.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),m=oa(r.get(),!0,!1)}catch(e){if(e instanceof la)m=e.result;else{if(!(e instanceof ca))throw e;m=e.result}}finally{o==n.asyncId&&(n.asyncId=i,n.asyncTo=i?s:void 0,n.promise=i?l:void 0)}return Qr.fun(a)&&jr.batchedUpdates((()=>{a(m,r,r.item)})),m})():l}function sa(e,t){Yr(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class la 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 ca extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const ua=e=>e instanceof ha;let da=1;class ha extends Go{constructor(...e){super(...e),this.id=da++,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=_i(this);return e&&e.getValue()}to(...e){return io.to(this,e)}interpolate(...e){return hi(`${ui}The "interpolate" function is deprecated in v9 (use "to" instead)`),io.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){Zo(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||uo.sort(this),Zo(this,{type:"priority",parent:this,priority:e})}}const pa=Symbol.for("SpringPhase"),fa=e=>(1&e[pa])>0,ma=e=>(2&e[pa])>0,ga=e=>(4&e[pa])>0,ya=(e,t)=>t?e[pa]|=3:e[pa]&=-3,va=(e,t)=>t?e[pa]|=4:e[pa]&=-5;class ba extends ha{constructor(e,t){if(super(),this.key=void 0,this.animation=new ea,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,!Qr.und(e)||!Qr.und(t)){const n=Qr.obj(e)?Ai({},e):Ai({},t,{from:e});Qr.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(ma(this)||this._state.asyncTo)||ga(this)}get goal(){return Qo(this.animation.to)}get velocity(){const e=_i(this);return e instanceof Oi?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return fa(this)}get isAnimating(){return ma(this)}get isPaused(){return ga(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:o,toValues:i}=r;const a=$i(r.to);!a&&qo(r.to)&&(i=Xr(Qo(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==ki?1:a?a[l].lastPosition:i[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,o.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],i=null!=s.v0?s.v0:s.v0=Qr.arr(o.velocity)?o.velocity[l]:o.velocity;let a;const h=o.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(Qr.und(o.duration))if(o.decay){const e=!0===o.decay?.998:o.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=h,a=i*r}else{a=null==s.lastVelocity?i:s.lastVelocity;const t=o.restVelocity||h/10,r=o.clamp?0:o.bounce,l=!Qr.und(r),p=n==c?s.v0>0:n<c;let f,m=!1;const g=1,y=Math.ceil(e/g);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(u=Math.abs(c-d)<=h,!u));++e){l&&(m=d==c||d>c==p,m&&(a=-a*r,d=c));a+=(1e-6*-o.tension*(d-c)+.001*-o.friction*a)/o.mass*g,d+=a*g}}else{let r=1;o.duration>0&&(this._memoizedDuration!==o.duration&&(this._memoizedDuration=o.duration,s.durationProgress>0&&(s.elapsedTime=o.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(o.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+o.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,o.round)&&(n=!0)}));const s=_i(this),l=s.getValue();if(t){const e=Qo(r.to);l===e&&!n||o.decay?n&&o.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return jr.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(ma(this)){const{to:e,config:t}=this.animation;jr.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return Qr.und(e)?(n=this.queue||[],this.queue=[]):n=[Qr.obj(e)?e:Ai({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>na(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),sa(this._state,e&&this._lastCallId),jr.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=Qr.obj(n)?n[t]:n,(null==n||Gi(n))&&(n=void 0),r=Qr.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return fa(this)||(e.reverse&&([n,r]=[r,n]),r=Qo(r),Qr.und(r)?_i(this)||this._set(n):this._set(r)),o}_update(e,t){let n=Ai({},e);const{key:r,defaultProps:o}=this;n.default&&Object.assign(o,Wi(n,((e,t)=>/^on/.test(t)?Ni(e,r):e))),Oa(this,n,"onProps"),ka(this,"onProps",n,this);const i=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return ta(++this._lastCallId,{key:r,props:n,defaultProps:o,state:a,actions:{pause:()=>{ga(this)||(va(this,!0),Jr(a.pauseQueue),ka(this,"onPause",oa(this,wa(this,this.animation.to)),this))},resume:()=>{ga(this)&&(va(this,!1),ma(this)&&this._resume(),Jr(a.resumeQueue),ka(this,"onResume",oa(this,wa(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=Ca(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(ia(this));const r=!Qr.und(e.to),o=!Qr.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(ia(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!o||r||t.default&&!Qr.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Ur(d,c);h&&(s.from=d),d=Qo(d);const p=!Ur(u,l);p&&this._focus(u);const f=Gi(t.to),{config:m}=s,{decay:g,velocity:y}=m;(r||o)&&(m.velocity=0),t.config&&!f&&function(e,t,n){n&&(Ji(n=Ai({},n),t),t=Ai({},n,t)),Ji(e,t),Object.assign(e,t);for(const t in Xi)null==e[t]&&(e[t]=Xi[t]);let{mass:r,frequency:o,damping:i}=e;Qr.und(o)||(o<.01&&(o=.01),i<0&&(i=0),e.tension=Math.pow(2*Math.PI/o,2)*r,e.friction=4*Math.PI*i*r/o)}(m,zi(t.config,i),t.config!==a.config?zi(a.config,i):void 0);let v=_i(this);if(!v||Qr.und(u))return n(oa(this,!0));const b=Qr.und(t.reset)?o&&!t.default:!Qr.und(d)&&Ri(t.reset,i),w=b?d:this.get(),C=Zi(u),_=Qr.num(C)||Qr.arr(C)||fi(C),x=!f&&(!_||Ri(a.immediate||t.immediate,i));if(p){const e=Hi(u);if(e!==v.constructor){if(!x)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(C)}}const $=v.constructor;let S=qo(u),O=!1;if(!S){const e=b||!fa(this)&&h;(p||e)&&(O=Ur(Zi(w),C),S=!O),(Ur(s.immediate,x)||x)&&Ur(m.decay,g)&&Ur(m.velocity,y)||(S=!0)}if(O&&ma(this)&&(s.changed&&!b?S=!0:S||this._stop(l)),!f&&((S||qo(l))&&(s.values=v.getPayload(),s.toValues=qo(u)?null:$==ki?[1]:Xr(C)),s.immediate!=x&&(s.immediate=x,x||b||this._set(l)),S)){const{onRest:e}=s;Zr(Sa,(e=>Oa(this,t,e)));const r=oa(this,wa(this,l));Jr(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&jr.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?zi(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(aa(t.to,t,this._state,this)):S?this._start():ma(this)&&!p?this._pendingCalls.add(n):n(ra(w))}_focus(e){const t=this.animation;e!==t.to&&(Uo(this)&&this._detach(),t.to=e,Uo(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;qo(t)&&(Yo(t,this),ua(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;qo(e)&&Jo(e,this)}_set(e,t=!0){const n=Qo(e);if(!Qr.und(n)){const e=_i(this);if(!e||!Ur(n,e.getValue())){const r=Hi(n);e&&e.constructor==r?e.setValue(n):xi(this,r.create(n)),e&&jr.batchedUpdates((()=>{this._onChange(n,t)}))}}return _i(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,ka(this,"onStart",oa(this,wa(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),zi(this.animation.onChange,e,this)),zi(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;_i(this).reset(Qo(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),ma(this)||(ya(this,!0),ga(this)||this._resume())}_resume(){io.skipAnimation?this.finish():uo.start(this)}_stop(e,t){if(ma(this)){ya(this,!1);const n=this.animation;Zr(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Zo(this,{type:"idle",parent:this});const r=t?ia(this.get()):oa(this.get(),wa(this,null!=e?e:n.to));Jr(this._pendingCalls,r),n.changed&&(n.changed=!1,ka(this,"onRest",r,this))}}}function wa(e,t){const n=Zi(t);return Ur(Zi(e.get()),n)}function Ca(e,t=e.loop,n=e.to){let r=zi(t);if(r){const o=!0!==r&&Ui(r),i=(o||e).reverse,a=!o||o.reset;return _a(Ai({},e,{loop:t,default:!1,pause:void 0,to:!i||Gi(n)?n:void 0,from:a?e.from:void 0,reset:a},o))}}function _a(e){const{to:t,from:n}=e=Ui(e),r=new Set;return Qr.obj(t)&&$a(t,r),Qr.obj(n)&&$a(n,r),e.keys=r.size?Array.from(r):null,e}function xa(e){const t=_a(e);return Qr.und(t.default)&&(t.default=Wi(t)),t}function $a(e,t){Gr(e,((e,n)=>null!=e&&t.add(n)))}const Sa=["onStart","onRest","onChange","onPause","onResume"];function Oa(e,t,n){e.animation[n]=t[n]!==Vi(t,n)?Ni(t[n],e.key):void 0}function ka(e,t,...n){var r,o,i,a;null==(r=(o=e.animation)[t])||r.call(o,...n),null==(i=(a=e.defaultProps)[t])||i.call(a,...n)}const ja=["onStart","onChange","onRest"];let Fa=1;class Pa{constructor(e,t){this.id=Fa++,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(Ai({default:!0},e))}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];Qr.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(_a(e)),this}start(e){let{queue:t}=this;return e?t=Xr(e).map(_a):this.queue=[],this._flush?this._flush(this,t):(Ta(this,t),Ia(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Zr(Xr(t),(t=>n[t].stop(!!e)))}else sa(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Qr.und(e))this.start({pause:!0});else{const t=this.springs;Zr(Xr(e),(e=>t[e].pause()))}return this}resume(e){if(Qr.und(e))this.start({pause:!1});else{const t=this.springs;Zr(Xr(e),(e=>t[e].resume()))}return this}each(e){Gr(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,Yr(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&Yr(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,Yr(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}jr.onFrame(this._onFrame)}}function Ia(e,t){return Promise.all(t.map((t=>Ha(e,t)))).then((t=>na(e,t)))}async function Ha(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:l}=t,c=Qr.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const u=Qr.arr(o)||Qr.fun(o)?o:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):Zr(ja,(n=>{const r=t[n];if(Qr.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Jr(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const h=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),p=!0===t.cancel||!0===Vi(t,"cancel");(u||p&&d.asyncId)&&h.push(ta(++e._lastAsyncId,{props:t,state:d,actions:{pause:qr,resume:qr,start(t,n){p?(sa(d,e._lastAsyncId),n(ia(e))):(t.onRest=s,n(aa(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=na(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=Ca(t,a,o);if(n)return Ta(e,[n]),Ha(e,n,!0)}return l&&jr.batchedUpdates((()=>l(f,e,e.item))),f}function Ea(e,t){const n=Ai({},e.springs);return t&&Zr(Xr(t),(e=>{Qr.und(e.keys)&&(e=_a(e)),Qr.obj(e.to)||(e=Ai({},e,{to:void 0})),Da(n,e,(e=>Ba(e)))})),Ma(e,n),n}function Ma(e,t){Gr(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Yo(t,e))}))}function Ba(e,t){const n=new ba;return n.key=e,t&&Yo(n,t),n}function Da(e,t,n){t.keys&&Zr(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Ta(e,t){Zr(t,(t=>{Da(e.springs,t,(t=>Ba(t,e)))}))}const Aa=["children"],za=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,Aa);const r=g(Ra),i=n.pause||!!r.pause,c=n.immediate||!!r.immediate;n=function(e,t){const[n]=a((()=>({inputs:t,result:e()}))),r=s(),o=r.current;let i=o;i?Boolean(t&&i.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.inputs))||(i={inputs:t,result:e()}):i=n;return l((()=>{r.current=i,o==n&&(n.inputs=n.result=void 0)}),[i]),i.result}((()=>({pause:i,immediate:c})),[i,c]);const{Provider:u}=Ra;return o.createElement(u,{value:n},t)},Ra=(Na=za,Va={},Object.assign(Na,o.createContext(Va)),Na.Provider._context=Na,Na.Consumer._context=Na,Na);var Na,Va;za.Provider=Ra.Provider,za.Consumer=Ra.Consumer;const La=()=>{const e=[],t=function(t){pi(`${ui}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return Zr(e,((e,o)=>{if(Qr.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Zr(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Zr(e,(e=>e.resume(...arguments))),this},t.set=function(t){Zr(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Zr(e,((e,r)=>{if(Qr.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return Zr(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Zr(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Qr.fun(e)?e(n,t):e};return t._getProps=n,t};function Wa(e,t){const n=Qr.fun(e),[[r],o]=function(e,t,n){const r=Qr.fun(t)&&t;r&&!n&&(n=[]);const o=y((()=>r||3==arguments.length?La():void 0),[]),i=s(0),a=yi(),l=y((()=>({ctrls:[],queue:[],flush(e,t){const n=Ea(e,t);return i.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?Ia(e,t):new Promise((r=>{Ma(e,n),l.queue.push((()=>{r(Ia(e,t))})),a()}))}})),[]),c=s([...l.ctrls]),u=[],d=wi(e)||0;function h(e,n){for(let o=e;o<n;o++){const e=c.current[o]||(c.current[o]=new Pa(null,l.flush)),n=r?r(o,e):t[o];n&&(u[o]=xa(n))}}y((()=>{Zr(c.current.slice(e,d),(e=>{!function(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}(e,o),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),y((()=>{h(0,Math.min(d,e))}),n);const p=c.current.map(((e,t)=>Ea(e,u[t]))),f=g(za),m=wi(f),v=f!==m&&function(e){for(const t in e)return!0;return!1}(f);mi((()=>{i.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],Zr(e,(e=>e()))),Zr(c.current,((e,t)=>{null==o||o.add(e),v&&e.start({default:f});const n=u[t];n&&(function(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),vi((()=>()=>{Zr(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>Ai({},e)));return o?[b,o]:b}(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,o]:r}let qa;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(qa||(qa={}));class Qa extends ha{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=Mo(...t);const n=this._get(),r=Hi(n);xi(this,r.create(n))}advance(e){const t=this._get();Ur(t,this.get())||(_i(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Za(this._active)&&Ga(this)}_get(){const e=Qr.arr(this.source)?this.source.map(Qo):Xr(Qo(this.source));return this.calc(...e)}_start(){this.idle&&!Za(this._active)&&(this.idle=!1,Zr($i(this),(e=>{e.done=!1})),io.skipAnimation?(jr.batchedUpdates((()=>this.advance())),Ga(this)):uo.start(this))}_attach(){let e=1;Zr(Xr(this.source),(t=>{qo(t)&&Yo(t,this),ua(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Zr(Xr(this.source),(e=>{qo(e)&&Jo(e,this)})),this._active.clear(),Ga(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=Xr(this.source).reduce(((e,t)=>Math.max(e,(ua(t)?t.priority:0)+1)),0))}}function Ua(e){return!1!==e.idle}function Za(e){return!e.size||Array.from(e).every(Ua)}function Ga(e){e.idle||(e.idle=!0,Zr($i(e),(e=>{e.done=!0})),Zo(e,{type:"idle",parent:e}))}function Xa(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}io.assign({createStringInterpolator:ci,to:(e,t)=>new Qa(e,t)});const Ya=["style","children","scrollTop","scrollLeft","viewBox"],Ja=/^--/;function Ka(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Ja.test(e)||ts.hasOwnProperty(e)&&ts[e]?(""+t).trim():t+"px"}const es={};let ts={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 ns=["Webkit","Ms","Moz","O"];ts=Object.keys(ts).reduce(((e,t)=>(ns.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),ts);const rs=["x","y","z"],os=/^(matrix|translate|scale|rotate|skew)/,is=/^(translate)/,as=/^(rotate|skew)/,ss=(e,t)=>Qr.num(e)&&0!==e?e+t:e,ls=(e,t)=>Qr.arr(e)?e.every((e=>ls(e,t))):Qr.num(e)?e===t:parseFloat(e)===t;class cs extends Fi{constructor(e){let{x:t,y:n,z:r}=e,o=Xa(e,rs);const i=[],a=[];(t||n||r)&&(i.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>ss(e,"px"))).join(",")})`,ls(e,0)]))),Gr(o,((e,t)=>{if("transform"===t)i.push([e||""]),a.push((e=>[e,""===e]));else if(os.test(t)){if(delete o[t],Qr.und(e))return;const n=is.test(t)?"px":as.test(t)?"deg":"";i.push(Xr(e)),a.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${ss(o,n)})`,ls(o,0)]:e=>[`${t}(${e.map((e=>ss(e,n))).join(",")})`,ls(e,t.startsWith("scale")?1:0)])}})),i.length&&(o.transform=new us(i,a)),super(o)}}class us extends Go{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 Zr(this.inputs,((n,r)=>{const o=Qo(n[0]),[i,a]=this.transforms[r](Qr.arr(o)?o:n.map(Qo));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Zr(this.inputs,(e=>Zr(e,(e=>qo(e)&&Yo(e,this)))))}observerRemoved(e){0==e&&Zr(this.inputs,(e=>Zr(e,(e=>qo(e)&&Jo(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Zo(this,e)}}const ds=["scrollTop","scrollLeft"];io.assign({batchedUpdates:w,createStringInterpolator:ci,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 hs=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new Fi(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=Ti(e)||"Anonymous";return(e=Qr.str(e)?i[e]||(i[e]=Mi(e,o)):e[Di]||(e[Di]=Mi(e,o))).displayName=`Animated(${t})`,e};return Gr(e,((t,n)=>{Qr.arr(e)&&(n=Ti(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:o,children:i,scrollTop:a,scrollLeft:s,viewBox:l}=r,c=Xa(r,Ya),u=Object.values(c),d=Object.keys(c).map((t=>n||e.hasAttribute(t)?t:es[t]||(es[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==i&&(e.textContent=i);for(let t in o)if(o.hasOwnProperty(t)){const n=Ka(t,o[t]);Ja.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new cs(e),getComponentProps:e=>Xa(e,ds)}),ps=hs.animated;var fs,ms={};Object.defineProperty(ms,"__esModule",{value:!0});var gs=e;const ys=e=>gs.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:gs.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"})});ys.displayName="ChevronDownIcon",fs=ms.ChevronDownIcon=ys;const vs=C.div`
|
|
138
138
|
display: inline-block;
|
|
139
139
|
position: relative;
|
|
140
140
|
width: ${e=>e.$size}px;
|
|
@@ -249,7 +249,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
249
249
|
color: ${Un.Neutral[1]};
|
|
250
250
|
${or(e.inline,e.paragraph)}
|
|
251
251
|
`}
|
|
252
|
-
`,e.Hyperlink={Default:e=>
|
|
252
|
+
`,e.Hyperlink={Default:e=>Is({...e,textStyle:"Body"}),Small:e=>Is({...e,textStyle:"BodySmall"})}}(js||(js={}));const Fs=C.a`
|
|
253
253
|
${e=>_`
|
|
254
254
|
${rr(e.textStyle,e.weight)}
|
|
255
255
|
color: ${Un.Primary};
|
|
@@ -270,7 +270,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
270
270
|
width: 1rem;
|
|
271
271
|
margin-left: 0.4rem;
|
|
272
272
|
vertical-align: middle;
|
|
273
|
-
`,
|
|
273
|
+
`,Is=({external:e=!1,children:r,...o})=>n(Fs,{...o,children:[r,e&&t(Ps,{})]});var Hs;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(Hs||(Hs={}));const Es=C.button`
|
|
274
274
|
padding: 0.5rem 1rem;
|
|
275
275
|
min-width: 4rem;
|
|
276
276
|
border-radius: 4px;
|
|
@@ -367,7 +367,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
367
367
|
height: auto;
|
|
368
368
|
}
|
|
369
369
|
`}
|
|
370
|
-
`,
|
|
370
|
+
`,Ms=C((({color:e,className:r,size:o=18})=>n(vs,{className:r,$size:o,$color:e,children:[t(ws,{id:"inner1",$size:o-2,$borderWidth:2}),t(Cs,{id:"inner2",$size:o-2,$borderWidth:2}),t(_s,{id:"inner3",$size:o-2,$borderWidth:2}),t(xs,{id:"inner4",$size:o-2,$borderWidth:2})]})))`
|
|
371
371
|
margin-right: 0.5rem;
|
|
372
372
|
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Un.Primary(e);break;case"disabled":t=Un.Neutral[3](e);break;default:t=Un.Neutral[8](e)}return _`
|
|
373
373
|
#inner1,
|
|
@@ -377,7 +377,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
377
377
|
border-color: ${t} transparent transparent transparent;
|
|
378
378
|
}
|
|
379
379
|
`}}
|
|
380
|
-
`,Bs={Default:i.forwardRef(((e,r)=>{const{children:o,disabled:i=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"default"};return n(
|
|
380
|
+
`,Bs={Default:i.forwardRef(((e,r)=>{const{children:o,disabled:i=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"default"};return n(Es,{ref:r,"data-testid":l["data-testid"]||"button",disabled:i,...c,...l,children:[a&&t(Ms,{...c}),t("span",{children:o})]})})),Small:i.forwardRef(((e,r)=>{const{children:o,disabled:i=!1,loading:a=!1,styleType:s="default",...l}=e,c={$buttonStyle:i?"disabled":s,$buttonSizeStyle:"small"};return n(Es,{ref:r,"data-testid":l["data-testid"]||"button",disabled:i,...c,...l,children:[a&&t(Ms,{...c,size:16}),t("span",{children:o})]})}))},Ds=C.button`
|
|
381
381
|
display: flex;
|
|
382
382
|
justify-content: center;
|
|
383
383
|
align-items: center;
|
|
@@ -425,7 +425,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
425
425
|
}
|
|
426
426
|
`,Ns=C(Ts)`
|
|
427
427
|
margin: 0 0 0 auto;
|
|
428
|
-
`,
|
|
428
|
+
`,Vs=C(fs)`
|
|
429
429
|
height: 1.125rem;
|
|
430
430
|
width: 1.125rem;
|
|
431
431
|
color: ${Un.Neutral[3]};
|
|
@@ -436,7 +436,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
436
436
|
&:hover {
|
|
437
437
|
color: ${Un.Neutral[2]};
|
|
438
438
|
}
|
|
439
|
-
`,
|
|
439
|
+
`,Ls=C(js.H4)`
|
|
440
440
|
margin: 1.5rem 0 1.5rem 1.25rem;
|
|
441
441
|
|
|
442
442
|
${Gn.mobileL} {
|
|
@@ -464,7 +464,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
464
464
|
${rr("H6","semibold")}
|
|
465
465
|
}
|
|
466
466
|
}
|
|
467
|
-
`,Zs=({collapsible:e=!0,minimisable:r=!1,minimisedHeight:o,showDivider:i=!0,showMobileDivider:s=!0,title:l,children:c,...u})=>{const{mode:d}=g(
|
|
467
|
+
`,Zs=({collapsible:e=!0,minimisable:r=!1,minimisedHeight:o,showDivider:i=!0,showMobileDivider:s=!0,title:l,children:c,...u})=>{const{mode:d}=g(He),h="mobile"===d,[p,f]=a(!h&&e),[m,y]=a(r),v=!h&&e,b=Ie(),w=Ie(),C=Wa({height:p?0:b.height}),_=m?o??Math.min(.5*w.height,216):w.height;return n(As,{$collapsible:v,children:[t(zs,{$showDivider:i,$showMobileDivider:s}),(l||v)&&n(Rs,{children:[l&&t(Ls,{weight:"semibold",children:l}),v&&t(Ns,{focusHighlight:!1,focusOutline:"browser",onClick:()=>{f(!p)},"aria-label":p?"Expand":"Collapse",children:t(Vs,{$expanded:!p})})]}),t(Ws,{style:h?void 0:C,children:t("div",{ref:b.ref,children:n(qs,{...u,children:[t(Qs,{$height:_,$minimisable:r,children:t("div",{ref:w.ref,children:t("div",{"data-id":"content-container",children:"function"==typeof c?c(d,{minimised:m}):c})})}),r&&n(Us,{"data-id":"minimise-button",styleType:"link",onClick:()=>{y(!m)},children:["View ",m?"more":"less"]})]})})})]})};let Gs;const Xs=new Uint8Array(16);function Ys(){if(!Gs&&(Gs="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Gs))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Gs(Xs)}const Js=[];for(let e=0;e<256;++e)Js.push((e+256).toString(16).slice(1));var Ks={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function el(e,t,n){if(Ks.randomUUID&&!t&&!e)return Ks.randomUUID();const r=(e=e||{}).random||(e.rng||Ys)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return(Js[e[t+0]]+Js[e[t+1]]+Js[e[t+2]]+Js[e[t+3]]+"-"+Js[e[t+4]]+Js[e[t+5]]+"-"+Js[e[t+6]]+Js[e[t+7]]+"-"+Js[e[t+8]]+Js[e[t+9]]+"-"+Js[e[t+10]]+Js[e[t+11]]+Js[e[t+12]]+Js[e[t+13]]+Js[e[t+14]]+Js[e[t+15]]).toLowerCase()}(r)}const tl=C.div`
|
|
468
468
|
position: relative;
|
|
469
469
|
display: inline-flex;
|
|
470
470
|
min-width: 10.375rem;
|
|
@@ -524,7 +524,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
524
524
|
border-color: ${Un.Accent.Light[1]};
|
|
525
525
|
}
|
|
526
526
|
`}
|
|
527
|
-
`,
|
|
527
|
+
`,nl=C.input`
|
|
528
528
|
position: absolute;
|
|
529
529
|
height: 100%;
|
|
530
530
|
width: 100%;
|
|
@@ -535,10 +535,10 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
535
535
|
/* Hide appearance but keep it focusable using keyboard interactions */
|
|
536
536
|
appearance: none;
|
|
537
537
|
background: transparent;
|
|
538
|
-
`,
|
|
538
|
+
`,rl=C.div`
|
|
539
539
|
display: flex;
|
|
540
540
|
flex-direction: column;
|
|
541
|
-
`,
|
|
541
|
+
`,ol=C.label`
|
|
542
542
|
${e=>e.$selected&&!e.$indicator?_`
|
|
543
543
|
${rr("H4","semibold")}
|
|
544
544
|
`:_`
|
|
@@ -552,7 +552,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
552
552
|
`:e.$selected?_`
|
|
553
553
|
color: ${Un.Primary(e)};
|
|
554
554
|
`:void 0}
|
|
555
|
-
`,
|
|
555
|
+
`,il=C(Zs)`
|
|
556
556
|
padding: 0 0 1rem;
|
|
557
557
|
|
|
558
558
|
[data-id="content-container"] {
|
|
@@ -571,7 +571,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
571
571
|
margin: 0.5rem 1.25rem 0;
|
|
572
572
|
}
|
|
573
573
|
}
|
|
574
|
-
`,
|
|
574
|
+
`,al=C.div`
|
|
575
575
|
display: flex;
|
|
576
576
|
flex-direction: column;
|
|
577
577
|
|
|
@@ -580,7 +580,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
580
580
|
flex-wrap: wrap;
|
|
581
581
|
gap: 1rem;
|
|
582
582
|
}
|
|
583
|
-
`,
|
|
583
|
+
`,sl=C.label`
|
|
584
584
|
display: flex;
|
|
585
585
|
align-items: flex-start;
|
|
586
586
|
${e=>!e.$visible&&"display: none;"}
|
|
@@ -595,52 +595,52 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
595
595
|
${e=>e.$selected&&_`
|
|
596
596
|
color: ${Un.Primary};
|
|
597
597
|
`}
|
|
598
|
-
`,
|
|
598
|
+
`,ll=C.input`
|
|
599
599
|
appearance: none;
|
|
600
|
-
`,
|
|
600
|
+
`,cl=C(Or)`
|
|
601
601
|
height: 1.5rem;
|
|
602
602
|
width: 1.5rem;
|
|
603
603
|
flex-shrink: 0;
|
|
604
604
|
|
|
605
|
-
${
|
|
605
|
+
${ll}:focus-visible + & {
|
|
606
606
|
outline: 2px solid ${Un.Primary};
|
|
607
607
|
outline-offset: -2px;
|
|
608
608
|
border-radius: 4px;
|
|
609
609
|
}
|
|
610
|
-
`,
|
|
610
|
+
`,ul=C((({type:e="checkbox",indicator:r,checked:o,styleType:i="default",children:c,disabled:u,error:d,name:h,id:p,className:f,"data-testid":m,onChange:g})=>{const[y,v]=a(o),[b]=a((()=>el())),w=p?`${p}-input`:b,C=s();l((()=>{v(o)}),[o]);return n(tl,{$selected:y,$disabled:u,className:f,$styleType:i,$error:d,$indicator:r,id:p,"data-testid":m,children:[r&&(()=>{let n;switch(e){case"yes":n="tick";break;case"no":n="cross";break;case"checkbox":case"radio":n=e}return t(Or,{type:n,active:y,disabled:u})})(),t(nl,{ref:C,name:h,id:w,type:"checkbox"===e?"checkbox":"radio","data-testid":"toggle-input",disabled:u,onChange:t=>{if(!u){switch(e){case"checkbox":y||v((e=>!e));break;case"radio":case"yes":case"no":y||v(!0)}g&&g(t)}},checked:y}),t(rl,{children:t(ol,{htmlFor:w,$selected:y,$indicator:r,$disabled:u,"data-testid":"toggle-label",children:c})})]})}))`
|
|
611
611
|
${e=>!e.$visible&&"visibility: hidden;"}
|
|
612
|
-
`;var
|
|
612
|
+
`;var dl,hl={};Object.defineProperty(hl,"__esModule",{value:!0});var pl=e;const fl=e=>pl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:pl.jsx("path",{d:"M12.521 17.562L5.58301 10.625C5.48635 10.5277 5.41701 10.427 5.37501 10.323C5.33301 10.219 5.31201 10.1113 5.31201 10C5.31201 9.88867 5.33301 9.781 5.37501 9.677C5.41701 9.573 5.48635 9.47234 5.58301 9.375L12.542 2.417C12.75 2.20834 13.0033 2.104 13.302 2.104C13.6007 2.104 13.854 2.21534 14.062 2.438C14.2847 2.646 14.389 2.90267 14.375 3.208C14.361 3.514 14.25 3.771 14.042 3.979L8.02101 10L14.062 16.042C14.2567 16.236 14.354 16.4893 14.354 16.802C14.354 17.1147 14.2567 17.368 14.062 17.562C13.854 17.7707 13.5973 17.875 13.292 17.875C12.986 17.875 12.729 17.7707 12.521 17.562Z",fill:"currentColor"})});fl.displayName="ChevronLeftIcon",dl=hl.ChevronLeftIcon=fl;const ml=C.div`
|
|
613
613
|
background-color: ${Un.Neutral[8]};
|
|
614
614
|
height: 100%;
|
|
615
615
|
width: 100%;
|
|
616
616
|
display: flex;
|
|
617
617
|
flex-direction: column;
|
|
618
|
-
`;var
|
|
618
|
+
`;var gl,yl={};Object.defineProperty(yl,"__esModule",{value:!0});var vl=e;const bl=e=>vl.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:vl.jsx("path",{d:"M3.375 15.833C3.139 15.833 2.934 15.7463 2.76 15.573C2.58667 15.399 2.5 15.194 2.5 14.958C2.5 14.722 2.58667 14.5173 2.76 14.344C2.934 14.17 3.139 14.083 3.375 14.083H6.792C7.028 14.083 7.23267 14.17 7.406 14.344C7.58 14.5173 7.667 14.722 7.667 14.958C7.667 15.194 7.58 15.399 7.406 15.573C7.23267 15.7463 7.028 15.833 6.792 15.833H3.375ZM3.375 5.917C3.139 5.917 2.934 5.83 2.76 5.656C2.58667 5.48267 2.5 5.278 2.5 5.042C2.5 4.806 2.58667 4.601 2.76 4.427C2.934 4.25367 3.139 4.167 3.375 4.167H9.896C10.132 4.167 10.3367 4.25367 10.51 4.427C10.684 4.601 10.771 4.806 10.771 5.042C10.771 5.278 10.684 5.48267 10.51 5.656C10.3367 5.83 10.132 5.917 9.896 5.917H3.375ZM10.083 17.5C9.847 17.5 9.64233 17.4133 9.469 17.24C9.295 17.066 9.208 16.861 9.208 16.625V13.312C9.208 13.076 9.295 12.8713 9.469 12.698C9.64233 12.5247 9.847 12.438 10.083 12.438C10.3197 12.438 10.5247 12.5247 10.698 12.698C10.8713 12.8713 10.958 13.076 10.958 13.312V14.083H16.625C16.861 14.083 17.066 14.17 17.24 14.344C17.4133 14.5173 17.5 14.722 17.5 14.958C17.5 15.194 17.4133 15.399 17.24 15.573C17.066 15.7463 16.861 15.833 16.625 15.833H10.958V16.625C10.958 16.861 10.8713 17.066 10.698 17.24C10.5247 17.4133 10.3197 17.5 10.083 17.5ZM6.792 12.542C6.556 12.542 6.351 12.455 6.177 12.281C6.00367 12.1077 5.917 11.903 5.917 11.667V10.875H3.375C3.139 10.875 2.934 10.7883 2.76 10.615C2.58667 10.441 2.5 10.236 2.5 10C2.5 9.764 2.58667 9.559 2.76 9.385C2.934 9.21167 3.139 9.125 3.375 9.125H5.917V8.354C5.917 8.118 6.00367 7.91333 6.177 7.74C6.351 7.566 6.556 7.479 6.792 7.479C7.028 7.479 7.23267 7.566 7.406 7.74C7.58 7.91333 7.667 8.118 7.667 8.354V11.667C7.667 11.903 7.58 12.1077 7.406 12.281C7.23267 12.455 7.028 12.542 6.792 12.542ZM10.083 10.875C9.847 10.875 9.64233 10.7883 9.469 10.615C9.295 10.441 9.208 10.236 9.208 10C9.208 9.764 9.295 9.559 9.469 9.385C9.64233 9.21167 9.847 9.125 10.083 9.125H16.625C16.861 9.125 17.066 9.21167 17.24 9.385C17.4133 9.559 17.5 9.764 17.5 10C17.5 10.236 17.4133 10.441 17.24 10.615C17.066 10.7883 16.861 10.875 16.625 10.875H10.083ZM13.208 7.562C12.972 7.562 12.7673 7.47533 12.594 7.302C12.42 7.12867 12.333 6.924 12.333 6.688V3.375C12.333 3.139 12.42 2.934 12.594 2.76C12.7673 2.58667 12.972 2.5 13.208 2.5C13.444 2.5 13.649 2.58667 13.823 2.76C13.9963 2.934 14.083 3.139 14.083 3.375V4.167H16.625C16.861 4.167 17.066 4.25367 17.24 4.427C17.4133 4.601 17.5 4.806 17.5 5.042C17.5 5.278 17.4133 5.48267 17.24 5.656C17.066 5.83 16.861 5.917 16.625 5.917H14.083V6.688C14.083 6.924 13.9963 7.12867 13.823 7.302C13.649 7.47533 13.444 7.562 13.208 7.562Z",fill:"currentColor"})});bl.displayName="FilterIcon",gl=yl.FilterIcon=bl;const wl=C.div`
|
|
619
619
|
${Gn.mobileL} {
|
|
620
620
|
display: none;
|
|
621
621
|
}
|
|
622
|
-
`,
|
|
622
|
+
`,Cl=C.div`
|
|
623
623
|
display: none;
|
|
624
624
|
${Gn.mobileL} {
|
|
625
625
|
display: block;
|
|
626
626
|
}
|
|
627
|
-
`,
|
|
627
|
+
`,_l=C.div`
|
|
628
628
|
background-color: ${Un.Neutral[8]};
|
|
629
629
|
border: 1px solid ${Un.Neutral[5]};
|
|
630
630
|
border-radius: 0.5rem;
|
|
631
631
|
overflow: hidden;
|
|
632
632
|
width: 100%;
|
|
633
|
-
`,
|
|
633
|
+
`,xl=C.div`
|
|
634
634
|
background-color: ${Un.Neutral[7]};
|
|
635
635
|
height: 100%;
|
|
636
636
|
width: 100%;
|
|
637
637
|
display: flex;
|
|
638
638
|
flex-direction: column;
|
|
639
|
-
|
|
639
|
+
`,$l=C.div`
|
|
640
640
|
flex: 1;
|
|
641
641
|
width: 100%;
|
|
642
642
|
overflow-y: auto;
|
|
643
|
-
`,
|
|
643
|
+
`,Sl=C.div`
|
|
644
644
|
display: flex;
|
|
645
645
|
align-items: center;
|
|
646
646
|
|
|
@@ -649,7 +649,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
649
649
|
${Gn.mobileL} {
|
|
650
650
|
border-bottom: 1px solid ${Un.Neutral[5]};
|
|
651
651
|
}
|
|
652
|
-
`,
|
|
652
|
+
`,Ol=C(js.H4)`
|
|
653
653
|
flex: 1;
|
|
654
654
|
margin: 1.5rem 0 1rem 1.25rem;
|
|
655
655
|
|
|
@@ -657,7 +657,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
657
657
|
text-align: center;
|
|
658
658
|
margin: 1.5rem 0;
|
|
659
659
|
}
|
|
660
|
-
`,
|
|
660
|
+
`,kl=C(Ts)`
|
|
661
661
|
padding: 1.5rem 1.25rem;
|
|
662
662
|
margin-right: auto;
|
|
663
663
|
color: ${Un.Neutral[3]};
|
|
@@ -670,7 +670,7 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
670
670
|
&:hover {
|
|
671
671
|
color: ${Un.Neutral[2]};
|
|
672
672
|
}
|
|
673
|
-
`,
|
|
673
|
+
`,jl=C(Bs.Small)`
|
|
674
674
|
background-color: transparent;
|
|
675
675
|
padding: 1.5rem 1.25rem 1rem 1.25rem;
|
|
676
676
|
height: auto;
|
|
@@ -678,19 +678,19 @@ var t=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,r=Object.pr
|
|
|
678
678
|
${Gn.mobileL} {
|
|
679
679
|
padding: 1.5rem 1.25rem;
|
|
680
680
|
}
|
|
681
|
-
`,
|
|
681
|
+
`,Fl=C(Bs.Default)`
|
|
682
682
|
width: 100%;
|
|
683
683
|
span {
|
|
684
684
|
display: flex;
|
|
685
685
|
align-items: center;
|
|
686
686
|
}
|
|
687
|
-
|
|
687
|
+
`,Pl=C(gl)`
|
|
688
688
|
margin-right: 0.625rem;
|
|
689
|
-
`,
|
|
689
|
+
`,Il=C.div`
|
|
690
690
|
padding: 1.5rem 1.25rem;
|
|
691
691
|
background-color: ${Un.Neutral[8]};
|
|
692
692
|
border-top: 1px solid ${Un.Neutral[5]};
|
|
693
|
-
`,
|
|
693
|
+
`,Hl=C(Bs.Default)`
|
|
694
694
|
width: 100%;
|
|
695
|
-
`,
|
|
695
|
+
`,El=Object.assign((({toggleFilterButtonLabel:e="Filters",headerTitle:o="Filters",clearButtonDisabled:i=!1,onClear:s,onDismiss:l,onDone:c,children:u,...d})=>{const[h,p]=a(!1);P.exports.useMediaQuery({maxWidth:D.mobileL},void 0,(e=>{e||m()}));const f=()=>{p(!0)},m=()=>{p(!1),l&&l()},g=()=>{p(!1),c&&c()},y=()=>{s&&s()},v=e=>"function"==typeof u?u(e):u,b=e=>n(Sl,{children:["mobile"===e&&t(kl,{onClick:m,focusOutline:"browser",focusHighlight:!1,"aria-label":"Dismiss",children:t($,{})}),t(Ol,{weight:"semibold",children:o}),t(jl,{styleType:"link",onClick:y,disabled:i,children:"Clear"})]});return n("div",{...d,children:[t(Cl,{children:t(He.Provider,{value:{mode:"mobile"},children:n(r,{children:[n(Fl,{styleType:"light",onClick:f,children:[t(Pl,{})," ",e]}),t(E,{show:h,disableTransition:!0,children:n(xl,{children:[b("mobile"),t($l,{children:v("mobile")}),t(Il,{children:t(Hl,{onClick:g,children:"Done"})})]})})]})})}),t(wl,{children:t(He.Provider,{value:{mode:"default"},children:n(_l,{children:[b("default"),v("default")]})})})]})}),{Item:Zs,Page:({onDismiss:e,onDone:r,children:o})=>n(ml,{children:[t(kl,{onClick:e,focusOutline:"browser",focusHighlight:!1,"aria-label":"Dismiss",children:t(dl,{})}),t($l,{children:o}),t(Il,{children:t(Hl,{onClick:r,children:"Done"})})]}),Checkbox:({selectedOptions:e,options:r,onSelect:o,labelExtractor:i,valueExtractor:c,...u})=>{const{mode:d}=g(He),[h,p]=a(e||[]),[f,y]=a(),[v,b]=a(r.length),w=s(),C=s(),_=e=>()=>{const t=[...h],n=h.findIndex((t=>$(t)===$(e)));n>=0?t.splice(n,1):t.push(e),p(t),o?.(t)},x=e=>i?i(e):e.label??e.toString(),$=e=>c?c(e):e.value??e.toString(),S=m((()=>{if(!w.current)return void y(void 0);const e=Array.from(w.current.children);let t=0,n=0,r=-1;for(let o=0;o<e.length;o++){const i=e[o].offsetTop;if(i>r&&(n++,r=i,n>2))break;t=o}b(t),y(n>2?r-8:void 0)}),[]);l((()=>{e!==h&&p(e||[])}),[e]),l((()=>{"default"===d?(()=>{const e=C.current?C.current.offsetTop+C.current.clientHeight:void 0;y(e)})():S()}),[r]),Ie({handleWidth:"mobile"===d,handleHeight:!1,skipOnMount:!0,refreshMode:"throttle",targetRef:w,onResize:S});return t(il,{minimisable:r.length>5,minimisedHeight:f,...u,children:(e,{minimised:o})=>t(al,{role:"group","aria-label":u.title,ref:w,children:r.map(((r,i)=>"default"===e?((e,r,o)=>{const i=x(e),a=$(e),s=!!h.find((e=>$(e)===a));return n(sl,{$visible:!o||r<5,$selected:s,ref:4===r?C:void 0,children:[t(ll,{type:"checkbox",checked:s,onChange:_(e)}),t(cl,{type:"checkbox",active:s}),i]},a)})(r,i,o):((e,n,r)=>{const o=x(e),i=$(e),a=!!h.find((e=>$(e)===i));return t(ul,{type:"checkbox",checked:a,$visible:!r||f&&n<=v,onChange:_(e),children:o})})(r,i,o)))})})}});export{El as Filter};
|
|
696
696
|
//# sourceMappingURL=index.js.map
|