@lifesg/react-design-system 1.0.0-alpha.2 → 1.0.0-alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/accordion/accordion-item.style.d.ts +5 -2
- package/accordion/accordion.style.d.ts +1 -1
- package/accordion/index.js +165 -172
- package/accordion/index.js.map +1 -1
- package/alert/alert.style.d.ts +4 -1
- package/alert/index.js +107 -119
- package/alert/index.js.map +1 -1
- package/animations/index.js +1 -1
- package/animations/index.js.map +1 -1
- package/box-container/box-container.styles.d.ts +8 -1
- package/box-container/index.js +69 -74
- package/box-container/index.js.map +1 -1
- package/breadcrumb/breadcrumb.style.d.ts +4 -4
- package/breadcrumb/index.js +102 -106
- package/breadcrumb/index.js.map +1 -1
- package/breadcrumb/types.d.ts +5 -1
- package/button/button.d.ts +2 -2
- package/button/index.js +140 -143
- package/button/index.js.map +1 -1
- package/card/card.d.ts +3 -0
- package/card/card.style.d.ts +1 -0
- package/card/index.d.ts +1 -0
- package/card/index.js +132 -0
- package/card/index.js.map +1 -0
- package/{icon → card}/package.json +1 -1
- package/card/types.d.ts +4 -0
- package/checkbox/checkbox.d.ts +1 -1
- package/checkbox/checkbox.style.d.ts +4 -1
- package/checkbox/index.js +11 -21
- package/checkbox/index.js.map +1 -1
- package/cjs/index.js +1999 -1021
- package/cjs/index.js.map +1 -1
- package/color/color.d.ts +4 -59
- package/color/index.js +1 -1
- package/color/index.js.map +1 -1
- package/color/types.d.ts +5 -1
- package/date-input/date-input.d.ts +1 -1
- package/date-input/date-input.style.d.ts +2 -6
- package/date-input/index.js +121 -136
- package/date-input/index.js.map +1 -1
- package/date-input/types.d.ts +14 -16
- package/design-token/design-token.d.ts +4 -0
- package/design-token/index.d.ts +2 -0
- package/design-token/index.js +6 -0
- package/design-token/index.js.map +1 -0
- package/design-token/package.json +7 -0
- package/design-token/types.d.ts +7 -0
- package/error-display/error-display-data.d.ts +11 -0
- package/error-display/error-display.d.ts +3 -0
- package/error-display/error-display.style.d.ts +7 -0
- package/error-display/index.d.ts +2 -0
- package/error-display/index.js +322 -0
- package/error-display/index.js.map +1 -0
- package/error-display/package.json +7 -0
- package/error-display/types.d.ts +20 -0
- package/feedback-rating/feedback-rating-data.d.ts +5 -0
- package/feedback-rating/feedback-rating-stars-container-data.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.d.ts +3 -0
- package/feedback-rating/feedback-rating-stars-container.styles.d.ts +12 -0
- package/feedback-rating/feedback-rating.d.ts +3 -0
- package/feedback-rating/feedback-rating.styles.d.ts +5 -0
- package/feedback-rating/index.d.ts +2 -0
- package/feedback-rating/index.js +329 -0
- package/feedback-rating/index.js.map +1 -0
- package/feedback-rating/package.json +7 -0
- package/feedback-rating/types.d.ts +14 -0
- package/footer/footer-download-app.d.ts +2 -0
- package/footer/footer-download-app.style.d.ts +6 -0
- package/footer/footer-helper.d.ts +12 -0
- package/footer/footer.d.ts +3 -0
- package/footer/footer.style.d.ts +12 -0
- package/footer/index.d.ts +2 -0
- package/footer/index.js +373 -0
- package/footer/index.js.map +1 -0
- package/footer/package.json +7 -0
- package/footer/types.d.ts +31 -0
- package/form/form-custom-field.d.ts +3 -0
- package/form/form-input-group.d.ts +1 -1
- package/form/form-input.d.ts +1 -1
- package/form/form-label-addon.d.ts +1 -2
- package/form/form-label.d.ts +1 -1
- package/form/form-label.style.d.ts +1 -0
- package/form/form-phone-number-input.d.ts +3 -0
- package/form/form-textarea.d.ts +1 -1
- package/form/form-unit-number-input.d.ts +3 -0
- package/form/index.d.ts +9 -6
- package/form/index.js +774 -629
- package/form/index.js.map +1 -1
- package/form/types.d.ts +14 -5
- package/icon-button/icon-button.d.ts +1 -1
- package/icon-button/icon-button.style.d.ts +6 -1
- package/icon-button/index.js +9 -15
- package/icon-button/index.js.map +1 -1
- package/icon-button/types.d.ts +2 -3
- package/index.d.ts +11 -1
- package/index.js +1997 -1019
- package/index.js.map +1 -1
- package/input/index.js +84 -41
- package/input/index.js.map +1 -1
- package/input/input.d.ts +1 -1
- package/input/input.style.d.ts +9 -0
- package/input/types.d.ts +2 -0
- package/input-group/index.js +392 -312
- package/input-group/index.js.map +1 -1
- package/input-group/input-group-list-addon.d.ts +1 -1
- package/input-group/input-group-list-addon.style.d.ts +4 -1
- package/input-group/input-group.d.ts +1 -1
- package/input-group/input-group.style.d.ts +1 -2
- package/input-group/types.d.ts +8 -8
- package/input-select/index.js +278 -242
- package/input-select/index.js.map +1 -1
- package/input-select/input-select-wrapper.d.ts +1 -1
- package/input-select/input-select.d.ts +1 -1
- package/input-select/input-select.styles.d.ts +5 -1
- package/input-select/types.d.ts +15 -11
- package/input-textarea/index.js +132 -121
- package/input-textarea/index.js.map +1 -1
- package/input-textarea/textarea-counter.d.ts +2 -1
- package/input-textarea/textarea.d.ts +2 -2
- package/input-textarea/types.d.ts +1 -0
- package/layout/container.d.ts +3 -0
- package/layout/content.d.ts +3 -0
- package/layout/index.d.ts +7 -0
- package/layout/index.js +55 -0
- package/layout/index.js.map +1 -0
- package/layout/package.json +7 -0
- package/layout/section.d.ts +3 -0
- package/layout/types.d.ts +15 -0
- package/link-list/index.js +130 -130
- package/link-list/index.js.map +1 -1
- package/link-list/link-list.styles.d.ts +12 -2
- package/link-list/types.d.ts +1 -1
- package/masonry/index.js.map +1 -1
- package/masonry/masonry.d.ts +2 -2
- package/masthead/index.d.ts +1 -0
- package/masthead/index.js +9 -0
- package/masthead/index.js.map +1 -0
- package/masthead/masthead.d.ts +2 -0
- package/masthead/masthead.style.d.ts +1 -0
- package/masthead/package.json +7 -0
- package/media/index.js +1 -1
- package/media/index.js.map +1 -1
- package/media/media.d.ts +2 -1
- package/modal/index.d.ts +1 -1
- package/modal/index.js +30 -43
- package/modal/index.js.map +1 -1
- package/modal/modal-box.styles.d.ts +5 -2
- package/modal/modal.d.ts +1 -1
- package/modal/modal.styles.d.ts +1 -0
- package/modal/types.d.ts +4 -2
- package/navbar/brand.d.ts +10 -0
- package/navbar/brand.styles.d.ts +5 -0
- package/navbar/drawer.d.ts +3 -0
- package/navbar/drawer.styles.d.ts +15 -0
- package/navbar/index.d.ts +7 -0
- package/navbar/index.js +651 -0
- package/navbar/index.js.map +1 -0
- package/navbar/navbar-action-buttons.d.ts +10 -0
- package/navbar/navbar-action-buttons.styles.d.ts +9 -0
- package/navbar/navbar-items.d.ts +11 -0
- package/navbar/navbar-items.styles.d.ts +10 -0
- package/navbar/navbar.d.ts +3 -0
- package/navbar/navbar.styles.d.ts +19 -0
- package/navbar/package.json +7 -0
- package/navbar/types.d.ts +56 -0
- package/notification-banner/index.d.ts +3 -0
- package/notification-banner/index.js +266 -0
- package/notification-banner/index.js.map +1 -0
- package/notification-banner/notification-banner-hoc.d.ts +3 -0
- package/notification-banner/notification-banner.d.ts +6 -0
- package/notification-banner/notification-banner.styles.d.ts +15 -0
- package/notification-banner/package.json +7 -0
- package/notification-banner/types.d.ts +22 -0
- package/overlay/index.js +1 -1
- package/overlay/index.js.map +1 -1
- package/overlay/types.d.ts +1 -1
- package/package.json +4 -1
- package/phone-number-input/data/country-code.d.ts +1 -0
- package/phone-number-input/index.d.ts +1 -0
- package/phone-number-input/index.js +850 -0
- package/phone-number-input/index.js.map +1 -0
- package/phone-number-input/package.json +7 -0
- package/phone-number-input/phone-number-input-helper.d.ts +5 -0
- package/phone-number-input/phone-number-input.d.ts +3 -0
- package/phone-number-input/phone-number-input.styles.d.ts +1 -0
- package/phone-number-input/types.d.ts +42 -0
- package/popover/index.js +148 -153
- package/popover/index.js.map +1 -1
- package/popover/popover.styles.d.ts +1 -1
- package/popover/types.d.ts +3 -3
- package/progress-indicator/index.d.ts +2 -0
- package/progress-indicator/index.js +240 -0
- package/progress-indicator/index.js.map +1 -0
- package/progress-indicator/package.json +7 -0
- package/progress-indicator/progress-indicator.d.ts +3 -0
- package/progress-indicator/progress-indicator.style.d.ts +19 -0
- package/progress-indicator/types.d.ts +9 -0
- package/radio-button/index.js +7 -7
- package/radio-button/index.js.map +1 -1
- package/shared/dropdown-list/dropdown-list.d.ts +1 -1
- package/shared/dropdown-list/dropdown-list.styles.d.ts +6 -2
- package/shared/dropdown-list/dropdown-search.d.ts +2 -1
- package/shared/dropdown-list/dropdown-search.styles.d.ts +9 -1
- package/shared/dropdown-list/types.d.ts +21 -12
- package/smart-app-banner/index.d.ts +2 -0
- package/smart-app-banner/index.js +373 -0
- package/smart-app-banner/index.js.map +1 -0
- package/smart-app-banner/package.json +7 -0
- package/smart-app-banner/smart-app-banner.d.ts +3 -0
- package/smart-app-banner/smart-app-banner.styles.d.ts +31 -0
- package/smart-app-banner/types.d.ts +18 -0
- package/spec/design-token-spec/base-design-token-set.d.ts +2 -0
- package/text/index.js +62 -65
- package/text/index.js.map +1 -1
- package/text/text-style.d.ts +4 -100
- package/text-list/index.js +7 -7
- package/text-list/index.js.map +1 -1
- package/theme/design-token-helper.d.ts +2 -0
- package/theme/index.js +1 -1
- package/theme/index.js.map +1 -1
- package/theme/types.d.ts +12 -3
- package/timeline/index.js +95 -98
- package/timeline/index.js.map +1 -1
- package/timepicker/index.js +213 -207
- package/timepicker/index.js.map +1 -1
- package/timepicker/timepicker-dropdown.styles.d.ts +2 -2
- package/timepicker/types.d.ts +3 -3
- package/toggle-button/index.js +118 -121
- package/toggle-button/index.js.map +1 -1
- package/tooltip/index.js +127 -125
- package/tooltip/index.js.map +1 -1
- package/tooltip/tooltip.styles.d.ts +3 -1
- package/unit-number/index.d.ts +2 -0
- package/unit-number/index.js +403 -0
- package/unit-number/index.js.map +1 -0
- package/unit-number/package.json +7 -0
- package/unit-number/types.d.ts +27 -0
- package/unit-number/unit-number-input.d.ts +3 -0
- package/unit-number/unit-number-input.style.d.ts +16 -0
- package/util/date-helper.d.ts +19 -0
- package/util/index.d.ts +2 -0
- package/util/utility-types.d.ts +3 -0
- package/icon/arrow-right-icon.d.ts +0 -3
- package/icon/icon.d.ts +0 -3
- package/icon/index.d.ts +0 -2
- package/icon/index.js +0 -12
- package/icon/index.js.map +0 -1
- package/icon/info-icon.d.ts +0 -3
- package/icon/play-alt-icon.d.ts +0 -3
- package/icon/search-icon.d.ts +0 -3
- package/icon/shared.style.d.ts +0 -1
- package/icon/types.d.ts +0 -9
package/accordion/index.js
CHANGED
|
@@ -1,19 +1,9 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import r,{cloneElement as i,useRef as o,useState as a,isValidElement as s,createRef as l,PureComponent as c,useEffect as u,useLayoutEffect as d,forwardRef as h,useCallback as p,useContext as f,useMemo as g}from"react";import{findDOMNode as m,unstable_batchedUpdates as y}from"react-dom";import v,{css as b,keyframes as w}from"styled-components";var _=function(e,t){return _=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])},_(e,t)};var S=function(){return S=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},S.apply(this,arguments)};var $="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var F=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},x="object"==typeof $&&$&&$.Object===Object&&$,O="object"==typeof self&&self&&self.Object===Object&&self,k=x||O||Function("return this")(),z=k,P=function(){return z.Date.now()},H=/\s/;var B=function(e){for(var t=e.length;t--&&H.test(e.charAt(t)););return t},C=/^\s+/;var D=function(e){return e?e.slice(0,B(e)+1).replace(C,""):e},A=k.Symbol,E=A,j=Object.prototype,I=j.hasOwnProperty,M=j.toString,R=E?E.toStringTag:void 0;var T=function(e){var t=I.call(e,R),n=e[R];try{e[R]=void 0;var r=!0}catch(e){}var i=M.call(e);return r&&(t?e[R]=n:delete e[R]),i},N=Object.prototype.toString;var V=T,W=function(e){return N.call(e)},L=A?A.toStringTag:void 0;var q=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":L&&L in Object(e)?V(e):W(e)},Q=function(e){return null!=e&&"object"==typeof e};var U=D,G=F,X=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==q(e)},Z=/^[-+]0x[0-9a-f]+$/i,Y=/^0b[01]+$/i,J=/^0o[0-7]+$/i,K=parseInt;var ee=F,te=P,ne=function(e){if("number"==typeof e)return e;if(X(e))return NaN;if(G(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=G(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=U(e);var n=Y.test(e);return n||J.test(e)?K(e.slice(2),n?2:8):Z.test(e)?NaN:+e},re=Math.max,ie=Math.min;var oe=function(e,t,n){var r,i,o,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,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function f(e){return c=e,s=setTimeout(m,t),u?p(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=te();if(g(e))return y(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?ie(n,o-(e-c)):n}(e))}function y(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function v(){var e=te(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ne(t)||0,ee(n)&&(u=!!n.leading,o=(d="maxWait"in n)?re(ne(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:y(te())},v},ae=oe,se=F;var le=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return se(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),ae(e,t,{leading:r,maxWait:t,trailing:i})},ce=function(e,t,n,r){switch(t){case"debounce":return oe(e,n,r);case"throttle":return le(e,n,r);default:return e}},ue=function(e){return"function"==typeof e},de=function(){return"undefined"==typeof window},he=function(e){return e instanceof Element||e instanceof HTMLDocument},pe=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&ue(e)&&e(o,a),{width:o,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(!de()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(de())return null;if(t)return document.querySelector(t);if(r&&he(r))return r;if(n.targetRef&&he(n.targetRef.current))return n.targetRef.current;var i=m(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=pe(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!de()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return ue(t)?"renderProp":ue(r)?"childFunction":s(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,c=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=l(),n.observableElement=null,de()||(n.resizeHandler=ce(n.createResizeHandler,i,a,c),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}_(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(){de()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,r=t.render,o=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,c={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return r&&r(c);case"childFunction":return(e=o)(c);case"child":if((e=o).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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(c,["targetRef"]);return i(e,u)}return i(e,c);case"childArray":return(e=o).map((function(e){return!!e&&i(e,c)}));default:return n.createElement(s,null)}}}(c);var fe=de()?u:d;let ge=Be();const me=e=>ke(e,ge);let ye=Be();me.write=e=>ke(e,ye);let ve=Be();me.onStart=e=>ke(e,ve);let be=Be();me.onFrame=e=>ke(e,be);let we=Be();me.onFinish=e=>ke(e,we);let _e=[];me.setTimeout=(e,t)=>{let n=me.now()+t,r=()=>{let e=_e.findIndex((e=>e.cancel==r));~e&&_e.splice(e,1),xe-=~e?1:0},i={time:n,handler:e,cancel:r};return _e.splice(Se(n),0,i),xe+=1,ze(),i};let Se=e=>~(~_e.findIndex((t=>t.time>e))||~_e.length);me.cancel=e=>{ve.delete(e),be.delete(e),ge.delete(e),ye.delete(e),we.delete(e)},me.sync=e=>{Oe=!0,me.batchedUpdates(e),Oe=!1},me.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,me.onStart(n)}return r.handler=e,r.cancel=()=>{ve.delete(n),t=null},r};let $e="undefined"!=typeof window?window.requestAnimationFrame:()=>{};me.use=e=>$e=e,me.now="undefined"!=typeof performance?()=>performance.now():Date.now,me.batchedUpdates=e=>e(),me.catch=console.error,me.frameLoop="always",me.advance=()=>{"demand"!==me.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):He()};let Fe=-1,xe=0,Oe=!1;function ke(e,t){Oe?(t.delete(e),e(0)):(t.add(e),ze())}function ze(){Fe<0&&(Fe=0,"demand"!==me.frameLoop&&$e(Pe))}function Pe(){~Fe&&($e(Pe),me.batchedUpdates(He))}function He(){let e=Fe;Fe=me.now();let t=Se(Fe);t&&(Ce(_e.splice(0,t),(e=>e.handler())),xe-=t),ve.flush(),ge.flush(e?Math.min(64,Fe-e):16.667),be.flush(),ye.flush(),we.flush(),xe||(Fe=-1)}function Be(){let e=new Set,t=e;return{add(n){xe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(xe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,xe-=t.size,Ce(t,(t=>t(n)&&e.add(t))),xe+=e.size,t=e)}}}function Ce(e,t){e.forEach((e=>{try{t(e)}catch(e){me.catch(e)}}))}function De(){}const Ae={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 Ee(e,t){if(Ae.arr(e)){if(!Ae.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 je=(e,t)=>e.forEach(t);function Ie(e,t,n){if(Ae.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 Me=e=>Ae.und(e)?[]:Ae.arr(e)?e:[e];function Re(e,t){if(e.size){const n=Array.from(e);e.clear(),je(n,t)}}const Te=(e,...t)=>Re(e,(e=>e(...t))),Ne=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let Ve,We,Le=null,qe=!1,Qe=De;var Ue=Object.freeze({__proto__:null,get createStringInterpolator(){return Ve},get to(){return We},get colors(){return Le},get skipAnimation(){return qe},get willAdvance(){return Qe},assign:e=>{e.to&&(We=e.to),e.now&&(me.now=e.now),void 0!==e.colors&&(Le=e.colors),null!=e.skipAnimation&&(qe=e.skipAnimation),e.createStringInterpolator&&(Ve=e.createStringInterpolator),e.requestAnimationFrame&&me.use(e.requestAnimationFrame),e.batchedUpdates&&(me.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Qe=e.willAdvance),e.frameLoop&&(me.frameLoop=e.frameLoop)}});const Ge=new Set;let Xe=[],Ze=[],Ye=0;const Je={get idle(){return!Ge.size&&!Xe.length},start(e){Ye>e.priority?(Ge.add(e),me.onStart(Ke)):(et(e),me(nt))},advance:nt,sort(e){if(Ye)me.onFrame((()=>Je.sort(e)));else{const t=Xe.indexOf(e);~t&&(Xe.splice(t,1),tt(e))}},clear(){Xe=[],Ge.clear()}};function Ke(){Ge.forEach(et),Ge.clear(),me(nt)}function et(e){Xe.includes(e)||tt(e)}function tt(e){Xe.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Xe,(t=>t.priority>e.priority)),0,e)}function nt(e){const t=Ze;for(let n=0;n<Xe.length;n++){const r=Xe[n];Ye=r.priority,r.idle||(Qe(r),r.advance(e),r.idle||t.push(r))}return Ye=0,Ze=Xe,Ze.length=0,Xe=t,Xe.length>0}const rt="[-+]?\\d*\\.?\\d+";function it(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const ot=new RegExp("rgb"+it(rt,rt,rt)),at=new RegExp("rgba"+it(rt,rt,rt,rt)),st=new RegExp("hsl"+it(rt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),lt=new RegExp("hsla"+it(rt,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",rt)),ct=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ut=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dt=/^#([0-9a-fA-F]{6})$/,ht=/^#([0-9a-fA-F]{8})$/;function pt(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 ft(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=pt(i,r,e+1/3),a=pt(i,r,e),s=pt(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function gt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function mt(e){return(parseFloat(e)%360+360)%360/360}function yt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function vt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function bt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=dt.exec(e))?parseInt(t[1]+"ff",16)>>>0:Le&&void 0!==Le[e]?Le[e]:(t=ot.exec(e))?(gt(t[1])<<24|gt(t[2])<<16|gt(t[3])<<8|255)>>>0:(t=at.exec(e))?(gt(t[1])<<24|gt(t[2])<<16|gt(t[3])<<8|yt(t[4]))>>>0:(t=ct.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=ht.exec(e))?parseInt(t[1],16)>>>0:(t=ut.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=st.exec(e))?(255|ft(mt(t[1]),vt(t[2]),vt(t[3])))>>>0:(t=lt.exec(e))?(ft(mt(t[1]),vt(t[2]),vt(t[3]))|yt(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 wt=(e,t,n)=>{if(Ae.fun(e))return e;if(Ae.arr(e))return wt({range:e,output:t,extrapolate:n});if(Ae.str(e.output[0]))return Ve(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let c=l?l(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===s)return c;"clamp"===s&&(c=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=o(c),r===-1/0?c=-c:i===1/0?c+=r:c=c*(i-r)+r;return c}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};function _t(){return _t=Object.assign||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},_t.apply(this,arguments)}const St=Symbol.for("FluidValue.get"),$t=Symbol.for("FluidValue.observers"),Ft=e=>Boolean(e&&e[St]),xt=e=>e&&e[St]?e[St]():e,Ot=e=>e[$t]||null;function kt(e,t){let n=e[$t];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class zt{constructor(e){if(this[St]=void 0,this[$t]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Pt(this,e)}}const Pt=(e,t)=>Ct(e,St,t);function Ht(e,t){if(e[St]){let n=e[$t];n||Ct(e,$t,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){let n=e[$t];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[$t]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const Ct=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Dt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,At=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Et=new RegExp(`(${Dt.source})(%|[a-z]+)`,"i"),jt=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,It=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Mt=e=>{const[t,n]=Rt(e);if(!t||Ne())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&&It.test(n)?Mt(n):n||e},Rt=e=>{const t=It.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Tt;const Nt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Vt=e=>{Tt||(Tt=Le?new RegExp(`(${Object.keys(Le).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>xt(e).replace(It,Mt).replace(At,bt).replace(Tt,bt))),n=t.map((e=>e.match(Dt).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=>wt(_t({},e,{output:t}))));return e=>{var n;const i=!Et.test(t[0])&&(null==(n=t.find((e=>Et.test(e))))?void 0:n.replace(Dt,""));let o=0;return t[0].replace(Dt,(()=>`${r[o++](e)}${i||""}`)).replace(jt,Nt)}},Wt="react-spring: ",Lt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Wt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},qt=Lt(console.warn);const Qt=Lt(console.warn);function Ut(e){return Ae.str(e)&&("#"==e[0]||/\d/.test(e)||!Ne()&&It.test(e)||e in(Le||{}))}const Gt="undefined"!=typeof window&&window.document&&window.document.createElement?n.useLayoutEffect:n.useEffect;function Xt(){const e=a()[1],t=(()=>{const e=o(!1);return Gt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const Zt=e=>u(e,Yt),Yt=[];function Jt(e){const t=o();return u((()=>{t.current=e})),t.current}const Kt=Symbol.for("Animated:node"),en=e=>e&&e[Kt],tn=(e,t)=>{return n=e,r=Kt,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},nn=e=>e&&e[Kt]&&e[Kt].getPayload();class rn{constructor(){this.payload=void 0,tn(this,this)}getPayload(){return this.payload||[]}}class on extends rn{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,Ae.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new on(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return Ae.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,Ae.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class an extends on{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=wt({output:[e,e]})}static create(e){return new an(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(Ae.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=wt({output:[this.getValue(),e]})),this._value=0,super.reset()}}const sn={dependencies:null};class ln extends rn{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Ie(this.source,((n,r)=>{var i;(i=n)&&i[Kt]===i?t[r]=n.getValue(e):Ft(n)?t[r]=xt(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&je(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Ie(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){sn.dependencies&&Ft(e)&&sn.dependencies.add(e);const t=nn(e);t&&je(t,(e=>this.add(e)))}}class cn extends ln{constructor(e){super(e)}static create(e){return new cn(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(un)),!0)}}function un(e){return(Ut(e)?an:on).create(e)}function dn(e){const t=en(e);return t?t.constructor:Ae.arr(e)?cn:Ut(e)?an:on}function hn(){return hn=Object.assign||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},hn.apply(this,arguments)}const pn=(e,t)=>{const r=!Ae.fun(e)||e.prototype&&e.prototype.isReactComponent;return h(((i,a)=>{const s=o(null),l=r&&p((e=>{s.current=function(e,t){e&&(Ae.fun(e)?e(t):e.current=t);return t}(a,e)}),[a]),[c,d]=function(e,t){const n=new Set;sn.dependencies=n,e.style&&(e=hn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new ln(e),sn.dependencies=null,[e,n]}(i,t),h=Xt(),f=()=>{const e=s.current;if(r&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&h()},g=new fn(f,d),m=o();Gt((()=>(m.current=g,je(d,(e=>Ht(e,g))),()=>{m.current&&(je(m.current.deps,(e=>Bt(e,m.current))),me.cancel(m.current.update))}))),u(f,[]),Zt((()=>()=>{const e=m.current;je(e.deps,(t=>Bt(t,e)))}));const y=t.getComponentProps(c.getValue());return n.createElement(e,hn({},y,{ref:l}))}))};class fn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&me.write(this.update)}}const gn=Symbol.for("AnimatedComponent"),mn=e=>Ae.str(e)?e:e&&Ae.str(e.displayName)?e.displayName:Ae.fun(e)&&e.name||null;function yn(){return yn=Object.assign||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},yn.apply(this,arguments)}function vn(e,...t){return Ae.fun(e)?e(...t):e}const bn=(e,t)=>!0===e||!!(t&&e&&(Ae.fun(e)?e(t):Me(e).includes(t))),wn=(e,t)=>Ae.obj(e)?t&&e[t]:e,_n=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,Sn=e=>e,$n=(e,t=Sn)=>{let n=Fn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);Ae.und(n)||(r[i]=n)}return r},Fn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],xn={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 On(e){const t=function(e){const t={};let n=0;if(Ie(e,((e,r)=>{xn[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Ie(e,((e,r)=>r in t||(n[r]=e))),n}return yn({},e)}function kn(e){return e=xt(e),Ae.arr(e)?e.map(kn):Ut(e)?Ue.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function zn(e){for(const t in e)return!0;return!1}function Pn(e){return Ae.fun(e)||Ae.arr(e)&&Ae.obj(e[0])}function Hn(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Bn(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const Cn=1.70158,Dn=1.525*Cn,An=2*Math.PI/3,En=2*Math.PI/4.5,jn=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},In=yn({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-Cn*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+Cn*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-Dn)/2:(Math.pow(2*e-2,2)*((Dn+1)*(2*e-2)+Dn)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*An),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*An)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*En)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*En)/2+1,easeInBounce:e=>1-jn(1-e),easeOutBounce:jn,easeInOutBounce:e=>e<.5?(1-jn(1-2*e))/2:(1+jn(2*e-1))/2}.linear,clamp:!1});class Mn{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,In)}}function Rn(e,t){if(Ae.und(t.decay)){const n=!Ae.und(t.tension)||!Ae.und(t.friction);!n&&Ae.und(t.frequency)&&Ae.und(t.damping)&&Ae.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Tn=[];class Nn{constructor(){this.changed=!1,this.values=Tn,this.toValues=null,this.fromValues=Tn,this.to=void 0,this.from=void 0,this.config=new Mn,this.immediate=!1}}function Vn(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let c,u,d=bn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{Ae.und(n.pause)||(i.paused=bn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||bn(e,t)),c=vn(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(u),u.cancel(),c=u.time-me.now()}function p(){c>0&&!Ue.skipAnimation?(i.delayed=!0,u=me.setTimeout(f,c),i.pauseQueue.add(h),i.timeouts.add(u)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(u),e<=(i.cancelId||0)&&(d=!0);try{o.start(yn({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Wn=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qn(e.get()):t.every((e=>e.noop))?Ln(e.get()):qn(e.get(),t.every((e=>e.finished))),Ln=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),qn=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qn=e=>({value:e,cancelled:!0,finished:!1});function Un(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const c=$n(t,((e,t)=>"onRest"===t?void 0:e));let u,d;const h=new Promise(((e,t)=>(u=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&Qn(r)||i!==n.asyncId&&qn(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Xn,a=new Zn;return(async()=>{if(Ue.skipAnimation)throw Gn(n),a.result=qn(r,!1),d(a),a;p(o);const s=Ae.obj(e)?yn({},e):yn({},t,{to:e});s.parentId=i,Ie(c,((e,t)=>{Ae.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Ue.skipAnimation)return Gn(n),qn(r,!1);try{let t;t=Ae.arr(e)?(async e=>{for(const t of e)await f(t)})(e):Promise.resolve(e(f,r.stop.bind(r))),await Promise.all([t.then(u),h]),g=qn(r.get(),!0,!1)}catch(e){if(e instanceof Xn)g=e.result;else{if(!(e instanceof Zn))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return Ae.fun(a)&&me.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Gn(e,t){Re(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Xn 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 Zn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Yn=e=>e instanceof Kn;let Jn=1;class Kn extends zt{constructor(...e){super(...e),this.id=Jn++,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=en(this);return e&&e.getValue()}to(...e){return Ue.to(this,e)}interpolate(...e){return qt(`${Wt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ue.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){kt(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Je.sort(this),kt(this,{type:"priority",parent:this,priority:e})}}const er=Symbol.for("SpringPhase"),tr=e=>(1&e[er])>0,nr=e=>(2&e[er])>0,rr=e=>(4&e[er])>0,ir=(e,t)=>t?e[er]|=3:e[er]&=-3,or=(e,t)=>t?e[er]|=4:e[er]&=-5;class ar extends Kn{constructor(e,t){if(super(),this.key=void 0,this.animation=new Nn,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,!Ae.und(e)||!Ae.und(t)){const n=Ae.obj(e)?yn({},e):yn({},t,{from:e});Ae.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(nr(this)||this._state.asyncTo)||rr(this)}get goal(){return xt(this.animation.to)}get velocity(){const e=en(this);return e instanceof on?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return tr(this)}get isAnimating(){return nr(this)}get isPaused(){return rr(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=nn(r.to);!a&&Ft(r.to)&&(o=Me(xt(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const c=s.constructor==an?1:a?a[l].lastPosition:o[l];let u=r.immediate,d=c;if(!u){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=Ae.arr(i.velocity)?i.velocity[l]:i.velocity;let a;if(Ae.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<.1,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n))),r=i.restVelocity||t/10,l=i.clamp?0:i.bounce,h=!Ae.und(l),p=n==c?s.v0>0:n<c;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>r,f||(u=Math.abs(c-d)<=t,!u));++e){h&&(g=d==c||d>c==p,g&&(a=-a*l,d=c));a+=(1e-6*-i.tension*(d-c)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(c-n),a=(d-s.lastPosition)/e,u=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[l].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=en(this),l=s.getValue();if(t){const e=xt(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return me.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(nr(this)){const{to:e,config:t}=this.animation;me.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 Ae.und(e)?(n=this.queue||[],this.queue=[]):n=[Ae.obj(e)?e:yn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Wn(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Gn(this._state,e&&this._lastCallId),me.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=Ae.obj(n)?n[t]:n,(null==n||Pn(n))&&(n=void 0),r=Ae.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return tr(this)||(e.reverse&&([n,r]=[r,n]),r=xt(r),Ae.und(r)?en(this)||this._set(n):this._set(r)),i}_update(e,t){let n=yn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,$n(n,((e,t)=>/^on/.test(t)?wn(e,r):e))),pr(this,n,"onProps"),fr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Vn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{rr(this)||(or(this,!0),Te(a.pauseQueue),fr(this,"onPause",qn(this,sr(this,this.animation.to)),this))},resume:()=>{rr(this)&&(or(this,!1),nr(this)&&this._resume(),Te(a.resumeQueue),fr(this,"onResume",qn(this,sr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=lr(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qn(this));const r=!Ae.und(e.to),i=!Ae.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Qn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:c}=s;let{to:u=l,from:d=c}=e;!i||r||t.default&&!Ae.und(u)||(u=d),t.reverse&&([u,d]=[d,u]);const h=!Ee(d,c);h&&(s.from=d),d=xt(d);const p=!Ee(u,l);p&&this._focus(u);const f=Pn(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Rn(n=yn({},n),t),t=yn({},n,t)),Rn(e,t),Object.assign(e,t);for(const t in In)null==e[t]&&(e[t]=In[t]);let{mass:r,frequency:i,damping:o}=e;Ae.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,vn(t.config,o),t.config!==a.config?vn(a.config,o):void 0);let v=en(this);if(!v||Ae.und(u))return n(qn(this,!0));const b=Ae.und(t.reset)?i&&!t.default:!Ae.und(d)&&bn(t.reset,o),w=b?d:this.get(),_=kn(u),S=Ae.num(_)||Ae.arr(_)||Ut(_),$=!f&&(!S||bn(a.immediate||t.immediate,o));if(p){const e=dn(u);if(e!==v.constructor){if(!$)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const F=v.constructor;let x=Ft(u),O=!1;if(!x){const e=b||!tr(this)&&h;(p||e)&&(O=Ee(kn(w),_),x=!O),(Ee(s.immediate,$)||$)&&Ee(g.decay,m)&&Ee(g.velocity,y)||(x=!0)}if(O&&nr(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||Ft(l))&&(s.values=v.getPayload(),s.toValues=Ft(u)?null:F==an?[1]:Me(_)),s.immediate!=$&&(s.immediate=$,$||b||this._set(l)),x)){const{onRest:e}=s;je(hr,(e=>pr(this,t,e)));const r=qn(this,sr(this,l));Te(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&me.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?vn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Un(t.to,t,this._state,this)):x?this._start():nr(this)&&!p?this._pendingCalls.add(n):n(Ln(w))}_focus(e){const t=this.animation;e!==t.to&&(Ot(this)&&this._detach(),t.to=e,Ot(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;Ft(t)&&(Ht(t,this),Yn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;Ft(e)&&Bt(e,this)}_set(e,t=!0){const n=xt(e);if(!Ae.und(n)){const e=en(this);if(!e||!Ee(n,e.getValue())){const r=dn(n);e&&e.constructor==r?e.setValue(n):tn(this,r.create(n)),e&&me.batchedUpdates((()=>{this._onChange(n,t)}))}}return en(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,fr(this,"onStart",qn(this,sr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),vn(this.animation.onChange,e,this)),vn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;en(this).reset(xt(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),nr(this)||(ir(this,!0),rr(this)||this._resume())}_resume(){Ue.skipAnimation?this.finish():Je.start(this)}_stop(e,t){if(nr(this)){ir(this,!1);const n=this.animation;je(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),kt(this,{type:"idle",parent:this});const r=t?Qn(this.get()):qn(this.get(),sr(this,null!=e?e:n.to));Te(this._pendingCalls,r),n.changed&&(n.changed=!1,fr(this,"onRest",r,this))}}}function sr(e,t){const n=kn(t);return Ee(kn(e.get()),n)}function lr(e,t=e.loop,n=e.to){let r=vn(t);if(r){const i=!0!==r&&On(r),o=(i||e).reverse,a=!i||i.reset;return cr(yn({},e,{loop:t,default:!1,pause:void 0,to:!o||Pn(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function cr(e){const{to:t,from:n}=e=On(e),r=new Set;return Ae.obj(t)&&dr(t,r),Ae.obj(n)&&dr(n,r),e.keys=r.size?Array.from(r):null,e}function ur(e){const t=cr(e);return Ae.und(t.default)&&(t.default=$n(t)),t}function dr(e,t){Ie(e,((e,n)=>null!=e&&t.add(n)))}const hr=["onStart","onRest","onChange","onPause","onResume"];function pr(e,t,n){e.animation[n]=t[n]!==_n(t,n)?wn(t[n],e.key):void 0}function fr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const gr=["onStart","onChange","onRest"];let mr=1;class yr{constructor(e,t){this.id=mr++,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(yn({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];Ae.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(cr(e)),this}start(e){let{queue:t}=this;return e?t=Me(e).map(cr):this.queue=[],this._flush?this._flush(this,t):(Fr(this,t),vr(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;je(Me(t),(t=>n[t].stop(!!e)))}else Gn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(Ae.und(e))this.start({pause:!0});else{const t=this.springs;je(Me(e),(e=>t[e].pause()))}return this}resume(e){if(Ae.und(e))this.start({pause:!1});else{const t=this.springs;je(Me(e),(e=>t[e].resume()))}return this}each(e){Ie(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Re(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Re(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Re(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)}me.onFrame(this._onFrame)}}function vr(e,t){return Promise.all(t.map((t=>br(e,t)))).then((t=>Wn(e,t)))}async function br(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,c=Ae.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const u=Ae.arr(i)||Ae.fun(i)?i:void 0;u?(t.to=void 0,t.onRest=void 0,c&&(c.onRest=void 0)):je(gr,(n=>{const r=t[n];if(Ae.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},c&&(c[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Te(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===_n(t,"cancel");(u||p&&d.asyncId)&&h.push(Vn(++e._lastAsyncId,{props:t,state:d,actions:{pause:De,resume:De,start(t,n){p?(Gn(d,e._lastAsyncId),n(Qn(e))):(t.onRest=s,n(Un(u,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Wn(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=lr(t,a,i);if(n)return Fr(e,[n]),br(e,n,!0)}return l&&me.batchedUpdates((()=>l(f,e,e.item))),f}function wr(e,t){const n=yn({},e.springs);return t&&je(Me(t),(e=>{Ae.und(e.keys)&&(e=cr(e)),Ae.obj(e.to)||(e=yn({},e,{to:void 0})),$r(n,e,(e=>Sr(e)))})),_r(e,n),n}function _r(e,t){Ie(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,Ht(t,e))}))}function Sr(e,t){const n=new ar;return n.key=e,t&&Ht(n,t),n}function $r(e,t,n){t.keys&&je(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function Fr(e,t){je(t,(t=>{$r(e.springs,t,(t=>Sr(t,e)))}))}const xr=["children"],Or=e=>{let{children:t}=e,r=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,xr);const i=f(kr),s=r.pause||!!i.pause,l=r.immediate||!!i.immediate;r=function(e,t){const[n]=a((()=>({inputs:t,result:e()}))),r=o(),i=r.current;let s=i;s?Boolean(t&&s.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,s.inputs))||(s={inputs:t,result:e()}):s=n;return u((()=>{r.current=s,i==n&&(n.inputs=n.result=void 0)}),[s]),s.result}((()=>({pause:s,immediate:l})),[s,l]);const{Provider:c}=kr;return n.createElement(c,{value:r},t)},kr=(zr=Or,Pr={},Object.assign(zr,n.createContext(Pr)),zr.Provider._context=zr,zr.Consumer._context=zr,zr);var zr,Pr;Or.Provider=kr.Provider,Or.Consumer=kr.Consumer;const Hr=()=>{const e=[],t=function(t){Qt(`${Wt}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 je(e,((e,i)=>{if(Ae.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return je(e,(e=>e.pause(...arguments))),this},t.resume=function(){return je(e,(e=>e.resume(...arguments))),this},t.set=function(t){je(e,(e=>e.set(t)))},t.start=function(t){const n=[];return je(e,((e,r)=>{if(Ae.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return je(e,(e=>e.stop(...arguments))),this},t.update=function(t){return je(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return Ae.fun(e)?e(n,t):e};return t._getProps=n,t};function Br(e,t,n){const r=Ae.fun(t)&&t;r&&!n&&(n=[]);const i=g((()=>r||3==arguments.length?Hr():void 0),[]),a=o(0),s=Xt(),l=g((()=>({ctrls:[],queue:[],flush(e,t){const n=wr(e,t);return a.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?vr(e,t):new Promise((r=>{_r(e,n),l.queue.push((()=>{r(vr(e,t))})),s()}))}})),[]),c=o([...l.ctrls]),u=[],d=Jt(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=c.current[i]||(c.current[i]=new yr(null,l.flush)),n=r?r(i,e):t[i];n&&(u[i]=ur(n))}}g((()=>{je(c.current.slice(e,d),(e=>{Hn(e,i),e.stop(!0)})),c.current.length=e,h(d,e)}),[e]),g((()=>{h(0,Math.min(d,e))}),n);const p=c.current.map(((e,t)=>wr(e,u[t]))),m=f(Or),y=Jt(m),v=m!==y&&zn(m);Gt((()=>{a.current++,l.ctrls=c.current;const{queue:e}=l;e.length&&(l.queue=[],je(e,(e=>e()))),je(c.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:m});const n=u[t];n&&(Bn(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Zt((()=>()=>{je(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>yn({},e)));return i?[b,i]:b}let Cr;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Cr||(Cr={}));class Dr extends Kn{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=wt(...t);const n=this._get(),r=dn(n);tn(this,r.create(n))}advance(e){const t=this._get();Ee(t,this.get())||(en(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Er(this._active)&&jr(this)}_get(){const e=Ae.arr(this.source)?this.source.map(xt):Me(xt(this.source));return this.calc(...e)}_start(){this.idle&&!Er(this._active)&&(this.idle=!1,je(nn(this),(e=>{e.done=!1})),Ue.skipAnimation?(me.batchedUpdates((()=>this.advance())),jr(this)):Je.start(this))}_attach(){let e=1;je(Me(this.source),(t=>{Ft(t)&&Ht(t,this),Yn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){je(Me(this.source),(e=>{Ft(e)&&Bt(e,this)})),this._active.clear(),jr(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=Me(this.source).reduce(((e,t)=>Math.max(e,(Yn(t)?t.priority:0)+1)),0))}}function Ar(e){return!1!==e.idle}function Er(e){return!e.size||Array.from(e).every(Ar)}function jr(e){e.idle||(e.idle=!0,je(nn(e),(e=>{e.done=!0})),kt(e,{type:"idle",parent:e}))}function Ir(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Ue.assign({createStringInterpolator:Vt,to:(e,t)=>new Dr(e,t)});const Mr=["style","children","scrollTop","scrollLeft"],Rr=/^--/;function Tr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Rr.test(e)||Vr.hasOwnProperty(e)&&Vr[e]?(""+t).trim():t+"px"}const Nr={};let Vr={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 Wr=["Webkit","Ms","Moz","O"];Vr=Object.keys(Vr).reduce(((e,t)=>(Wr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Vr);const Lr=["x","y","z"],qr=/^(matrix|translate|scale|rotate|skew)/,Qr=/^(translate)/,Ur=/^(rotate|skew)/,Gr=(e,t)=>Ae.num(e)&&0!==e?e+t:e,Xr=(e,t)=>Ae.arr(e)?e.every((e=>Xr(e,t))):Ae.num(e)?e===t:parseFloat(e)===t;class Zr extends ln{constructor(e){let{x:t,y:n,z:r}=e,i=Ir(e,Lr);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Gr(e,"px"))).join(",")})`,Xr(e,0)]))),Ie(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(qr.test(t)){if(delete i[t],Ae.und(e))return;const n=Qr.test(t)?"px":Ur.test(t)?"deg":"";o.push(Me(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Gr(i,n)})`,Xr(i,0)]:e=>[`${t}(${e.map((e=>Gr(e,n))).join(",")})`,Xr(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Yr(o,a)),super(i)}}class Yr extends zt{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 je(this.inputs,((n,r)=>{const i=xt(n[0]),[o,a]=this.transforms[r](Ae.arr(i)?i:n.map(xt));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&je(this.inputs,(e=>je(e,(e=>Ft(e)&&Ht(e,this)))))}observerRemoved(e){0==e&&je(this.inputs,(e=>je(e,(e=>Ft(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),kt(this,e)}}const Jr=["scrollTop","scrollLeft"];Ue.assign({batchedUpdates:y,createStringInterpolator:Vt,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 Kr=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new ln(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=mn(e)||"Anonymous";return(e=Ae.str(e)?o[e]||(o[e]=pn(e,i)):e[gn]||(e[gn]=pn(e,i))).displayName=`Animated(${t})`,e};return Ie(e,((t,n)=>{Ae.arr(e)&&(n=mn(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Ir(r,Mr),c=Object.values(l),u=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Nr[t]||(Nr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Tr(t,i[t]);Rr.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new Zr(e),getComponentProps:e=>Ir(e,Jr)}),ei=Kr.animated,ti=r.createContext(!1);var ni="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},ri=Array.isArray,ii="object"==typeof ni&&ni&&ni.Object===Object&&ni,oi="object"==typeof self&&self&&self.Object===Object&&self,ai=ii||oi||Function("return this")(),si=ai.Symbol,li=si,ci=Object.prototype,ui=ci.hasOwnProperty,di=ci.toString,hi=li?li.toStringTag:void 0;var pi=function(e){var t=ui.call(e,hi),n=e[hi];try{e[hi]=void 0;var r=!0}catch(e){}var i=di.call(e);return r&&(t?e[hi]=n:delete e[hi]),i},fi=Object.prototype.toString;var gi=pi,mi=function(e){return fi.call(e)},yi=si?si.toStringTag:void 0;var vi=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":yi&&yi in Object(e)?gi(e):mi(e)};var bi=vi,wi=function(e){return null!=e&&"object"==typeof e};var _i=function(e){return"symbol"==typeof e||wi(e)&&"[object Symbol]"==bi(e)},Si=ri,$i=_i,Fi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xi=/^\w*$/;var Oi=function(e,t){if(Si(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!$i(e))||(xi.test(e)||!Fi.test(e)||null!=t&&e in Object(t))};var ki=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},zi=vi,Pi=ki;var Hi,Bi=function(e){if(!Pi(e))return!1;var t=zi(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ci=ai["__core-js_shared__"],Di=(Hi=/[^.]+$/.exec(Ci&&Ci.keys&&Ci.keys.IE_PROTO||""))?"Symbol(src)_1."+Hi:"";var Ai=function(e){return!!Di&&Di in e},Ei=Function.prototype.toString;var ji=Bi,Ii=Ai,Mi=ki,Ri=function(e){if(null!=e){try{return Ei.call(e)}catch(e){}try{return e+""}catch(e){}}return""},Ti=/^\[object .+?Constructor\]$/,Ni=Function.prototype,Vi=Object.prototype,Wi=Ni.toString,Li=Vi.hasOwnProperty,qi=RegExp("^"+Wi.call(Li).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Qi=function(e){return!(!Mi(e)||Ii(e))&&(ji(e)?qi:Ti).test(Ri(e))},Ui=function(e,t){return null==e?void 0:e[t]};var Gi=function(e,t){var n=Ui(e,t);return Qi(n)?n:void 0},Xi=Gi(Object,"create"),Zi=Xi;var Yi=function(){this.__data__=Zi?Zi(null):{},this.size=0};var Ji=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Ki=Xi,eo=Object.prototype.hasOwnProperty;var to=function(e){var t=this.__data__;if(Ki){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return eo.call(t,e)?t[e]:void 0},no=Xi,ro=Object.prototype.hasOwnProperty;var io=Xi;var oo=Yi,ao=Ji,so=to,lo=function(e){var t=this.__data__;return no?void 0!==t[e]:ro.call(t,e)},co=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=io&&void 0===t?"__lodash_hash_undefined__":t,this};function uo(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])}}uo.prototype.clear=oo,uo.prototype.delete=ao,uo.prototype.get=so,uo.prototype.has=lo,uo.prototype.set=co;var ho=uo;var po=function(){this.__data__=[],this.size=0};var fo=function(e,t){return e===t||e!=e&&t!=t};var go=function(e,t){for(var n=e.length;n--;)if(fo(e[n][0],t))return n;return-1},mo=go,yo=Array.prototype.splice;var vo=go;var bo=go;var wo=go;var _o=po,So=function(e){var t=this.__data__,n=mo(t,e);return!(n<0)&&(n==t.length-1?t.pop():yo.call(t,n,1),--this.size,!0)},$o=function(e){var t=this.__data__,n=vo(t,e);return n<0?void 0:t[n][1]},Fo=function(e){return bo(this.__data__,e)>-1},xo=function(e,t){var n=this.__data__,r=wo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function Oo(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])}}Oo.prototype.clear=_o,Oo.prototype.delete=So,Oo.prototype.get=$o,Oo.prototype.has=Fo,Oo.prototype.set=xo;var ko=Oo,zo=Gi(ai,"Map"),Po=ho,Ho=ko,Bo=zo;var Co=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Do=function(e,t){var n=e.__data__;return Co(t)?n["string"==typeof t?"string":"hash"]:n.map},Ao=Do;var Eo=Do;var jo=Do;var Io=Do;var Mo=function(){this.size=0,this.__data__={hash:new Po,map:new(Bo||Ho),string:new Po}},Ro=function(e){var t=Ao(this,e).delete(e);return this.size-=t?1:0,t},To=function(e){return Eo(this,e).get(e)},No=function(e){return jo(this,e).has(e)},Vo=function(e,t){var n=Io(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Wo(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])}}Wo.prototype.clear=Mo,Wo.prototype.delete=Ro,Wo.prototype.get=To,Wo.prototype.has=No,Wo.prototype.set=Vo;var Lo=Wo;function qo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(qo.Cache||Lo),n}qo.Cache=Lo;var Qo=qo;var Uo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Go=/\\(\\)?/g,Xo=function(e){var t=Qo(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(Uo,(function(e,n,r,i){t.push(r?i.replace(Go,"$1"):n||e)})),t}));var Zo=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},Yo=ri,Jo=_i,Ko=si?si.prototype:void 0,ea=Ko?Ko.toString:void 0;var ta=function e(t){if("string"==typeof t)return t;if(Yo(t))return Zo(t,e)+"";if(Jo(t))return ea?ea.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},na=ta;var ra=ri,ia=Oi,oa=Xo,aa=function(e){return null==e?"":na(e)};var sa=_i;var la=function(e,t){return ra(e)?e:ia(e,t)?[e]:oa(aa(e))},ca=function(e){if("string"==typeof e||sa(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ua=function(e,t){for(var n=0,r=(t=la(t,e)).length;null!=e&&n<r;)e=e[ca(t[n++])];return n&&n==r?e:void 0};var da=function(e,t,n){var r=null==e?void 0:ua(e,t);return void 0===r?n:r};const ha=(e,t,n)=>t?da(n,t)||da(e,t):n||e,pa=(e,t)=>{const n=t||e.defaultValue;return da(e.collections,n)};var fa;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme"}(fa||(fa={}));const ga={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}}}},defaultValue:"base"},ma=e=>t=>{const n=t.theme,r=pa(ga,n[fa.colorScheme]);return n.options&&n.options.color?ha(r,e,n.options.color):ha(r,e)},ya={Brand:{1:ma("Brand.1"),2:ma("Brand.2"),3:ma("Brand.3"),4:ma("Brand.4"),5:ma("Brand.5"),6:ma("Brand.6")},Primary:ma("Primary"),PrimaryDark:ma("PrimaryDark"),Secondary:ma("Secondary"),Accent:{Light:{1:ma("Accent.Light.1"),2:ma("Accent.Light.2"),3:ma("Accent.Light.3"),4:ma("Accent.Light.4"),5:ma("Accent.Light.5"),6:ma("Accent.Light.6")},Dark:{1:ma("Accent.Dark.1"),2:ma("Accent.Dark.2"),3:ma("Accent.Dark.3")}},Neutral:{1:ma("Neutral.1"),2:ma("Neutral.2"),3:ma("Neutral.3"),4:ma("Neutral.4"),5:ma("Neutral.5"),6:ma("Neutral.6"),7:ma("Neutral.7"),8:ma("Neutral.8")},Validation:{Green:{Text:ma("Validation.Green.Text"),Icon:ma("Validation.Green.Icon"),Border:ma("Validation.Green.Border"),Background:ma("Validation.Green.Background")},Orange:{Text:ma("Validation.Orange.Text"),Icon:ma("Validation.Orange.Icon"),Border:ma("Validation.Orange.Border"),Background:ma("Validation.Orange.Background"),Badge:ma("Validation.Orange.Badge")},Red:{Text:ma("Validation.Red.Text"),Icon:ma("Validation.Red.Icon"),Border:ma("Validation.Red.Border"),Background:ma("Validation.Red.Background")}}},va=v.svg`
|
|
2
|
-
height: 1rem;
|
|
3
|
-
width: 1rem;
|
|
4
|
-
vertical-align: text-top;
|
|
5
|
-
|
|
6
|
-
#path {
|
|
7
|
-
fill: ${ya.Neutral[8]};
|
|
8
|
-
}
|
|
9
|
-
`,ba=t=>e(va,{xmlns:"http://www.w3.org/2000/svg",width:"1rem",height:"1rem",viewBox:"0 0 16 16",...t,children:e("g",{fill:"none",fillRule:"evenodd",children:e("g",{id:"path",fillRule:"nonzero",children:e("g",{children:e("g",{children:e("g",{children:e("path",{d:"M8.706 14.603l6.075-6.075c.294-.29.294-.765 0-1.06L8.706 1.398c-.29-.294-.765-.294-1.06 0l-.693.694c-.3.297-.294.78.013 1.072L10.73 6.75H1.75c-.416 0-.75.334-.75.75v1c0 .416.334.75.75.75h8.981l-3.765 3.587c-.304.291-.31.775-.013 1.072l.694.694c.29.294.765.294 1.06 0z",transform:"translate(-2384.000000, -760.000000) translate(2253.000000, 692.000000) translate(16.000000, 64.000000) translate(115.000000, 4.000000) translate(0.000000, 0.000000)"})})})})})})}),wa=t=>e(va,{width:"1rem",height:"1rem",viewBox:"0 0 40 40",xmlns:"http://www.w3.org/2000/svg",...t,children:e("path",{id:"path",d:"M20\n\t\t8.639c-.934\n\t\t0-1.742.342-2.43 1.03-.684.684-1.03 1.495-1.03 2.429 0 .931.346 1.742 1.03 2.426.688.688 1.496 1.03 2.43 1.03.931 0 1.742-.342 2.43-1.03.684-.684 1.026-1.495 1.026-2.426 0-.934-.342-1.745-1.026-2.43-.688-.687-1.499-1.03-2.43-1.03m4.61 20.91v-1.976a.959.959 0 0 0-.287-.7.959.959 0 0 0-.7-.286h-.99v-8.232a.954.954 0 0 0-.287-.7.945.945 0 0 0-.7-.29h-5.269a.95.95 0 0 0-.7.29.954.954 0 0 0-.286.7v1.976c0 .271.095.506.286.7a.959.959 0 0 0 .7.287h.99v5.269h-.99a.959.959 0 0 0-.7.286.959.959 0 0 0-.286.7v1.977c0 .274.095.505.286.7a.959.959 0 0 0 .7.286h7.246a.959.959 0 0 0 .7-.287.959.959 0 0 0 .286-.7M20 2.5c3.15 0 6.068.788 8.75 2.365a17.67 17.67 0 0 1 6.385 6.386C36.71 13.933 37.5 16.848 37.5 20c0 3.15-.79 6.068-2.365 8.751a17.71 17.71 0 0 1-6.385 6.385C26.068 36.712 23.15 37.5 20 37.5c-3.153 0-6.068-.788-8.75-2.363a17.71 17.71 0 0 1-6.385-6.385c-1.575-2.683-2.365-5.6-2.365-8.75 0-3.154.79-6.069 2.365-8.751a17.67 17.67 0 0 1 6.385-6.386C13.932 3.288 16.847 2.5 20 2.5",fillRule:"nonzero"})}),_a=t=>e(va,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 64 64",id:"play-icon",...t,children:e("path",{id:"path",d:"M52.762 37.237 20.474 53.38A5.856 5.856 0 0 1 12 48.143V15.856a5.856 5.856 0 0 1 8.474-5.238l32.288 16.144a5.856 5.856 0 0 1 0 10.475z",fillRule:"nonzero"})}),Sa=t=>e(va,{xmlns:"http://www.w3.org/2000/svg",width:"2rem",height:"2rem",viewBox:"0 0 32 32",fill:"none",...t,children:e("g",{id:"search",children:e("path",{id:"path",fillRule:"evenodd",clipRule:"evenodd",d:"M7.60986 7.60986C5.86994 9.34977 5 11.445 5 13.8956C5 16.3462 5.86994 18.4414 7.60986 20.1813C9.34977 21.9212 11.445 22.7911 13.8956 22.7911C15.6355 22.7911 17.2345 22.3133 18.6926 21.3576L24.2063 26.8713C24.3044 26.9571 24.4146 27 24.5372 27C24.6597 27 24.77 26.9571 24.868 26.8713L26.8713 24.868C26.9571 24.77 27 24.6597 27 24.5372C27 24.4146 26.9571 24.3044 26.8713 24.2063L21.3576 18.6926C22.3133 17.2345 22.7911 15.6355 22.7911 13.8956C22.7911 11.445 21.9212 9.34977 20.1813 7.60986C18.4414 5.86994 16.3462 5 13.8956 5C11.445 5 9.34977 5.86994 7.60986 7.60986ZM9.59484 18.178C8.4063 16.9894 7.81205 15.562 7.81205 13.8956C7.81205 12.2292 8.4063 10.8017 9.59484 9.61321C10.7834 8.42468 12.2169 7.83042 13.8956 7.83042C15.5742 7.83042 17.0047 8.42162 18.1872 9.60403C19.3696 10.7864 19.9608 12.2169 19.9608 13.8956C19.9608 15.5742 19.3696 17.0047 18.1872 18.1872C17.0047 19.3696 15.5742 19.9608 13.8956 19.9608C12.2169 19.9608 10.7834 19.3665 9.59484 18.178Z"})})}),$a=({type:t,...n})=>{switch(t){case"arrow-right":return e(ba,{...n});case"info":return e(wa,{...n});case"search":return e(Sa,{...n});case"play-alt":return e(_a,{...n});default:{const r=`sgds-icon sgds-icon-${t}`,i=n.className?`${r} ${n.className}`:r;return e(Fa,{...n,className:i})}}},Fa=v.span`
|
|
10
|
-
font-size: 1rem;
|
|
11
|
-
`,xa=v.button`
|
|
1
|
+
import e,{jsx as t,jsxs as n}from"react/jsx-runtime";import*as r from"react";import i,{cloneElement as o,useRef as a,useState as s,isValidElement as l,createRef as u,PureComponent as c,useEffect as d,useLayoutEffect as h,forwardRef as p,useCallback as f,useContext as g,useMemo as m}from"react";import{findDOMNode as y,unstable_batchedUpdates as v}from"react-dom";import b,{css as w,keyframes as _}from"styled-components";var S=function(e,t){return S=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])},S(e,t)};var $=function(){return $=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},$.apply(this,arguments)};var F="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var x=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O="object"==typeof F&&F&&F.Object===Object&&F,k="object"==typeof self&&self&&self.Object===Object&&self,C=O||k||Function("return this")(),H=C,P=function(){return H.Date.now()},z=/\s/;var B=function(e){for(var t=e.length;t--&&z.test(e.charAt(t)););return t},A=/^\s+/;var j=function(e){return e?e.slice(0,B(e)+1).replace(A,""):e},D=C.Symbol,E=D,I=Object.prototype,M=I.hasOwnProperty,R=I.toString,T=E?E.toStringTag:void 0;var V=function(e){var t=M.call(e,T),n=e[T];try{e[T]=void 0;var r=!0}catch(e){}var i=R.call(e);return r&&(t?e[T]=n:delete e[T]),i},N=Object.prototype.toString;var W=V,L=function(e){return N.call(e)},q=D?D.toStringTag:void 0;var U=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":q&&q in Object(e)?W(e):L(e)},Q=function(e){return null!=e&&"object"==typeof e};var G=j,X=x,Z=function(e){return"symbol"==typeof e||Q(e)&&"[object Symbol]"==U(e)},Y=/^[-+]0x[0-9a-f]+$/i,J=/^0b[01]+$/i,K=/^0o[0-7]+$/i,ee=parseInt;var te=x,ne=P,re=function(e){if("number"==typeof e)return e;if(Z(e))return NaN;if(X(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=X(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=G(e);var n=J.test(e);return n||K.test(e)?ee(e.slice(2),n?2:8):Y.test(e)?NaN:+e},ie=Math.max,oe=Math.min;var ae=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function f(e){return u=e,s=setTimeout(m,t),c?p(e):a}function g(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function m(){var e=ne();if(g(e))return y(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?oe(n,o-(e-u)):n}(e))}function y(e){return s=void 0,h&&r?p(e):(r=i=void 0,a)}function v(){var e=ne(),n=g(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return f(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=re(t)||0,te(n)&&(c=!!n.leading,o=(d="maxWait"in n)?ie(re(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},v.flush=function(){return void 0===s?a:y(ne())},v},se=ae,le=x;var ue=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return le(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),se(e,t,{leading:r,maxWait:t,trailing:i})},ce=function(e,t,n,r){switch(t){case"debounce":return ae(e,n,r);case"throttle":return ue(e,n,r);default:return e}},de=function(e){return"function"==typeof e},he=function(){return"undefined"==typeof window},pe=function(e){return e instanceof Element||e instanceof HTMLDocument},fe=function(e,t,n,r){return function(i){var o=i.width,a=i.height;t((function(t){return t.width===o&&t.height===a||t.width===o&&!r||t.height===a&&!n?t:(e&&de(e)&&e(o,a),{width:o,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(!he()){t&&t.current&&(n.targetRef.current=t.current);var i=n.getElement();i&&(n.observableElement&&n.observableElement===i||(n.observableElement=i,n.resizeObserver.observe(i,r)))}},n.getElement=function(){var e=n.props,t=e.querySelector,r=e.targetDomEl;if(he())return null;if(t)return document.querySelector(t);if(r&&pe(r))return r;if(n.targetRef&&pe(n.targetRef.current))return n.targetRef.current;var i=y(n);if(!i)return null;switch(n.getRenderType()){case"renderProp":case"childFunction":case"child":case"childArray":return i;default:return i.parentElement}},n.createResizeHandler=function(e){var t=n.props,r=t.handleWidth,i=void 0===r||r,o=t.handleHeight,a=void 0===o||o,s=t.onResize;if(i||a){var l=fe(s,n.setState.bind(n),i,a);e.forEach((function(e){var t=e&&e.contentRect||{},r=t.width,i=t.height;!n.skipOnMount&&!he()&&l({width:r,height:i}),n.skipOnMount=!1}))}},n.getRenderType=function(){var e=n.props,t=e.render,r=e.children;return de(t)?"renderProp":de(r)?"childFunction":l(r)?"child":Array.isArray(r)?"childArray":"parent"};var r=t.skipOnMount,i=t.refreshMode,o=t.refreshRate,a=void 0===o?1e3:o,s=t.refreshOptions;return n.state={width:void 0,height:void 0},n.skipOnMount=r,n.targetRef=u(),n.observableElement=null,he()||(n.resizeHandler=ce(n.createResizeHandler,i,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}S(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(){he()||(this.observableElement=null,this.resizeObserver.disconnect(),this.cancelHandler())},t.prototype.render=function(){var e,t=this.props,n=t.render,i=t.children,a=t.nodeType,s=void 0===a?"div":a,l=this.state,u={width:l.width,height:l.height,targetRef:this.targetRef};switch(this.getRenderType()){case"renderProp":return n&&n(u);case"childFunction":return(e=i)(u);case"child":if((e=i).type&&"string"==typeof e.type){var c=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(u,["targetRef"]);return o(e,c)}return o(e,u);case"childArray":return(e=i).map((function(e){return!!e&&o(e,u)}));default:return r.createElement(s,null)}}}(c);var ge=he()?d:h;let me=Be();const ye=e=>Ce(e,me);let ve=Be();ye.write=e=>Ce(e,ve);let be=Be();ye.onStart=e=>Ce(e,be);let we=Be();ye.onFrame=e=>Ce(e,we);let _e=Be();ye.onFinish=e=>Ce(e,_e);let Se=[];ye.setTimeout=(e,t)=>{let n=ye.now()+t,r=()=>{let e=Se.findIndex((e=>e.cancel==r));~e&&Se.splice(e,1),Oe-=~e?1:0},i={time:n,handler:e,cancel:r};return Se.splice($e(n),0,i),Oe+=1,He(),i};let $e=e=>~(~Se.findIndex((t=>t.time>e))||~Se.length);ye.cancel=e=>{be.delete(e),we.delete(e),_e.delete(e),me.delete(e),ve.delete(e)},ye.sync=e=>{ke=!0,ye.batchedUpdates(e),ke=!1},ye.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,ye.onStart(n)}return r.handler=e,r.cancel=()=>{be.delete(n),t=null},r};let Fe="undefined"!=typeof window?window.requestAnimationFrame:()=>{};ye.use=e=>Fe=e,ye.now="undefined"!=typeof performance?()=>performance.now():Date.now,ye.batchedUpdates=e=>e(),ye.catch=console.error,ye.frameLoop="always",ye.advance=()=>{"demand"!==ye.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):ze()};let xe=-1,Oe=0,ke=!1;function Ce(e,t){ke?(t.delete(e),e(0)):(t.add(e),He())}function He(){xe<0&&(xe=0,"demand"!==ye.frameLoop&&Fe(Pe))}function Pe(){~xe&&(Fe(Pe),ye.batchedUpdates(ze))}function ze(){let e=xe;xe=ye.now();let t=$e(xe);t&&(Ae(Se.splice(0,t),(e=>e.handler())),Oe-=t),Oe?(be.flush(),me.flush(e?Math.min(64,xe-e):16.667),we.flush(),ve.flush(),_e.flush()):xe=-1}function Be(){let e=new Set,t=e;return{add(n){Oe+=t!=e||e.has(n)?0:1,e.add(n)},delete:n=>(Oe-=t==e&&e.has(n)?1:0,e.delete(n)),flush(n){t.size&&(e=new Set,Oe-=t.size,Ae(t,(t=>t(n)&&e.add(t))),Oe+=e.size,t=e)}}}function Ae(e,t){e.forEach((e=>{try{t(e)}catch(e){ye.catch(e)}}))}function je(){}const De={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 Ee(e,t){if(De.arr(e)){if(!De.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 Ie=(e,t)=>e.forEach(t);function Me(e,t,n){if(De.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 Re=e=>De.und(e)?[]:De.arr(e)?e:[e];function Te(e,t){if(e.size){const n=Array.from(e);e.clear(),Ie(n,t)}}const Ve=(e,...t)=>Te(e,(e=>e(...t))),Ne=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent);let We,Le,qe=null,Ue=!1,Qe=je;var Ge=Object.freeze({__proto__:null,get createStringInterpolator(){return We},get to(){return Le},get colors(){return qe},get skipAnimation(){return Ue},get willAdvance(){return Qe},assign:e=>{e.to&&(Le=e.to),e.now&&(ye.now=e.now),void 0!==e.colors&&(qe=e.colors),null!=e.skipAnimation&&(Ue=e.skipAnimation),e.createStringInterpolator&&(We=e.createStringInterpolator),e.requestAnimationFrame&&ye.use(e.requestAnimationFrame),e.batchedUpdates&&(ye.batchedUpdates=e.batchedUpdates),e.willAdvance&&(Qe=e.willAdvance),e.frameLoop&&(ye.frameLoop=e.frameLoop)}});const Xe=new Set;let Ze=[],Ye=[],Je=0;const Ke={get idle(){return!Xe.size&&!Ze.length},start(e){Je>e.priority?(Xe.add(e),ye.onStart(et)):(tt(e),ye(rt))},advance:rt,sort(e){if(Je)ye.onFrame((()=>Ke.sort(e)));else{const t=Ze.indexOf(e);~t&&(Ze.splice(t,1),nt(e))}},clear(){Ze=[],Xe.clear()}};function et(){Xe.forEach(tt),Xe.clear(),ye(rt)}function tt(e){Ze.includes(e)||nt(e)}function nt(e){Ze.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(Ze,(t=>t.priority>e.priority)),0,e)}function rt(e){const t=Ye;for(let n=0;n<Ze.length;n++){const r=Ze[n];Je=r.priority,r.idle||(Qe(r),r.advance(e),r.idle||t.push(r))}return Je=0,Ye=Ze,Ye.length=0,Ze=t,Ze.length>0}const it="[-+]?\\d*\\.?\\d+";function ot(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}const at=new RegExp("rgb"+ot(it,it,it)),st=new RegExp("rgba"+ot(it,it,it,it)),lt=new RegExp("hsl"+ot(it,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%")),ut=new RegExp("hsla"+ot(it,"[-+]?\\d*\\.?\\d+%","[-+]?\\d*\\.?\\d+%",it)),ct=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,dt=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ht=/^#([0-9a-fA-F]{6})$/,pt=/^#([0-9a-fA-F]{8})$/;function ft(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 gt(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,o=ft(i,r,e+1/3),a=ft(i,r,e),s=ft(i,r,e-1/3);return Math.round(255*o)<<24|Math.round(255*a)<<16|Math.round(255*s)<<8}function mt(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function yt(e){return(parseFloat(e)%360+360)%360/360}function vt(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function bt(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function wt(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ht.exec(e))?parseInt(t[1]+"ff",16)>>>0:qe&&void 0!==qe[e]?qe[e]:(t=at.exec(e))?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|255)>>>0:(t=st.exec(e))?(mt(t[1])<<24|mt(t[2])<<16|mt(t[3])<<8|vt(t[4]))>>>0:(t=ct.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=pt.exec(e))?parseInt(t[1],16)>>>0:(t=dt.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=lt.exec(e))?(255|gt(yt(t[1]),bt(t[2]),bt(t[3])))>>>0:(t=ut.exec(e))?(gt(yt(t[1]),bt(t[2]),bt(t[3]))|vt(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 _t=(e,t,n)=>{if(De.fun(e))return e;if(De.arr(e))return _t({range:e,output:t,extrapolate:n});if(De.str(e.output[0]))return We(e);const r=e,i=r.output,o=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",s=r.extrapolateRight||r.extrapolate||"extend",l=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,i,o,a,s,l){let u=l?l(e):e;if(u<t){if("identity"===a)return u;"clamp"===a&&(u=t)}if(u>n){if("identity"===s)return u;"clamp"===s&&(u=n)}if(r===i)return r;if(t===n)return e<=t?r:i;t===-1/0?u=-u:n===1/0?u-=t:u=(u-t)/(n-t);u=o(u),r===-1/0?u=-u:i===1/0?u+=r:u=u*(i-r)+r;return u}(e,o[t],o[t+1],i[t],i[t+1],l,a,s,r.map)}};function St(){return St=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},St.apply(this,arguments)}const $t=Symbol.for("FluidValue.get"),Ft=Symbol.for("FluidValue.observers"),xt=e=>Boolean(e&&e[$t]),Ot=e=>e&&e[$t]?e[$t]():e,kt=e=>e[Ft]||null;function Ct(e,t){let n=e[Ft];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}class Ht{constructor(e){if(this[$t]=void 0,this[Ft]=void 0,!e&&!(e=this.get))throw Error("Unknown getter");Pt(this,e)}}const Pt=(e,t)=>At(e,$t,t);function zt(e,t){if(e[$t]){let n=e[Ft];n||At(e,Ft,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function Bt(e,t){let n=e[Ft];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Ft]=null,e.observerRemoved&&e.observerRemoved(r,t)}}const At=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),jt=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Dt=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Et=new RegExp(`(${jt.source})(%|[a-z]+)`,"i"),It=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Mt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Rt=e=>{const[t,n]=Tt(e);if(!t||Ne())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&&Mt.test(n)?Rt(n):n||e},Tt=e=>{const t=Mt.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]};let Vt;const Nt=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,Wt=e=>{Vt||(Vt=qe?new RegExp(`(${Object.keys(qe).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ot(e).replace(Mt,Rt).replace(Dt,wt).replace(Vt,wt))),n=t.map((e=>e.match(jt).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=>_t(St({},e,{output:t}))));return e=>{var n;const i=!Et.test(t[0])&&(null==(n=t.find((e=>Et.test(e))))?void 0:n.replace(jt,""));let o=0;return t[0].replace(jt,(()=>`${r[o++](e)}${i||""}`)).replace(It,Nt)}},Lt="react-spring: ",qt=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Lt}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},Ut=qt(console.warn);const Qt=qt(console.warn);function Gt(e){return De.str(e)&&("#"==e[0]||/\d/.test(e)||!Ne()&&Mt.test(e)||e in(qe||{}))}const Xt=Ne()?d:h;function Zt(){const e=s()[1],t=(()=>{const e=a(!1);return Xt((()=>(e.current=!0,()=>{e.current=!1})),[]),e})();return()=>{t.current&&e(Math.random())}}const Yt=e=>d(e,Jt),Jt=[];function Kt(e){const t=a();return d((()=>{t.current=e})),t.current}const en=Symbol.for("Animated:node"),tn=e=>e&&e[en],nn=(e,t)=>{return n=e,r=en,i=t,Object.defineProperty(n,r,{value:i,writable:!0,configurable:!0});var n,r,i},rn=e=>e&&e[en]&&e[en].getPayload();class on{constructor(){this.payload=void 0,nn(this,this)}getPayload(){return this.payload||[]}}class an extends on{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,De.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new an(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return De.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,De.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}}class sn extends an{constructor(e){super(0),this._string=null,this._toString=void 0,this._toString=_t({output:[e,e]})}static create(e){return new sn(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(De.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=_t({output:[this.getValue(),e]})),this._value=0,super.reset()}}const ln={dependencies:null};class un extends on{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return Me(this.source,((n,r)=>{var i;(i=n)&&i[en]===i?t[r]=n.getValue(e):xt(n)?t[r]=Ot(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&Ie(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return Me(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ln.dependencies&&xt(e)&&ln.dependencies.add(e);const t=rn(e);t&&Ie(t,(e=>this.add(e)))}}class cn extends un{constructor(e){super(e)}static create(e){return new cn(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(dn)),!0)}}function dn(e){return(Gt(e)?sn:an).create(e)}function hn(e){const t=tn(e);return t?t.constructor:De.arr(e)?cn:Gt(e)?sn:an}function pn(){return pn=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},pn.apply(this,arguments)}const fn=(e,t)=>{const n=!De.fun(e)||e.prototype&&e.prototype.isReactComponent;return p(((i,o)=>{const s=a(null),l=n&&f((e=>{s.current=function(e,t){e&&(De.fun(e)?e(t):e.current=t);return t}(o,e)}),[o]),[u,c]=function(e,t){const n=new Set;ln.dependencies=n,e.style&&(e=pn({},e,{style:t.createAnimatedStyle(e.style)}));return e=new un(e),ln.dependencies=null,[e,n]}(i,t),h=Zt(),p=()=>{const e=s.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,u.getValue(!0)))&&h()},g=new gn(p,c),m=a();Xt((()=>(m.current=g,Ie(c,(e=>zt(e,g))),()=>{m.current&&(Ie(m.current.deps,(e=>Bt(e,m.current))),ye.cancel(m.current.update))}))),d(p,[]),Yt((()=>()=>{const e=m.current;Ie(e.deps,(t=>Bt(t,e)))}));const y=t.getComponentProps(u.getValue());return r.createElement(e,pn({},y,{ref:l}))}))};class gn{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&ye.write(this.update)}}const mn=Symbol.for("AnimatedComponent"),yn=e=>De.str(e)?e:e&&De.str(e.displayName)?e.displayName:De.fun(e)&&e.name||null;function vn(){return vn=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},vn.apply(this,arguments)}function bn(e,...t){return De.fun(e)?e(...t):e}const wn=(e,t)=>!0===e||!!(t&&e&&(De.fun(e)?e(t):Re(e).includes(t))),_n=(e,t)=>De.obj(e)?t&&e[t]:e,Sn=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,$n=e=>e,Fn=(e,t=$n)=>{let n=xn;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const i of n){const n=t(e[i],i);De.und(n)||(r[i]=n)}return r},xn=["config","onProps","onStart","onChange","onPause","onResume","onRest"],On={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 kn(e){const t=function(e){const t={};let n=0;if(Me(e,((e,r)=>{On[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return Me(e,((e,r)=>r in t||(n[r]=e))),n}return vn({},e)}function Cn(e){return e=Ot(e),De.arr(e)?e.map(Cn):Gt(e)?Ge.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Hn(e){for(const t in e)return!0;return!1}function Pn(e){return De.fun(e)||De.arr(e)&&De.obj(e[0])}function zn(e,t){var n;null==(n=e.ref)||n.delete(e),null==t||t.delete(e)}function Bn(e,t){var n;t&&e.ref!==t&&(null==(n=e.ref)||n.delete(e),t.add(e),e.ref=t)}const An=1.70158,jn=1.525*An,Dn=2*Math.PI/3,En=2*Math.PI/4.5,In=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},Mn=vn({},{tension:170,friction:26},{mass:1,damping:1,easing:{linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>2.70158*e*e*e-An*e*e,easeOutBack:e=>1+2.70158*Math.pow(e-1,3)+An*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-jn)/2:(Math.pow(2*e-2,2)*((jn+1)*(2*e-2)+jn)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*Dn),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*Dn)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*En)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*En)/2+1,easeInBounce:e=>1-In(1-e),easeOutBounce:In,easeInOutBounce:e=>e<.5?(1-In(1-2*e))/2:(1+In(2*e-1))/2}.linear,clamp:!1});class Rn{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,Mn)}}function Tn(e,t){if(De.und(t.decay)){const n=!De.und(t.tension)||!De.und(t.friction);!n&&De.und(t.frequency)&&De.und(t.damping)&&De.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}const Vn=[];class Nn{constructor(){this.changed=!1,this.values=Vn,this.toValues=null,this.fromValues=Vn,this.to=void 0,this.from=void 0,this.config=new Rn,this.immediate=!1}}function Wn(e,{key:t,props:n,defaultProps:r,state:i,actions:o}){return new Promise(((a,s)=>{var l;let u,c,d=wn(null!=(l=n.cancel)?l:null==r?void 0:r.cancel,t);if(d)f();else{De.und(n.pause)||(i.paused=wn(n.pause,t));let e=null==r?void 0:r.pause;!0!==e&&(e=i.paused||wn(e,t)),u=bn(n.delay||0,t),e?(i.resumeQueue.add(p),o.pause()):(o.resume(),p())}function h(){i.resumeQueue.add(p),i.timeouts.delete(c),c.cancel(),u=c.time-ye.now()}function p(){u>0&&!Ge.skipAnimation?(i.delayed=!0,c=ye.setTimeout(f,u),i.pauseQueue.add(h),i.timeouts.add(c)):f()}function f(){i.delayed&&(i.delayed=!1),i.pauseQueue.delete(h),i.timeouts.delete(c),e<=(i.cancelId||0)&&(d=!0);try{o.start(vn({},n,{callId:e,cancel:d}),a)}catch(e){s(e)}}}))}const Ln=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?Qn(e.get()):t.every((e=>e.noop))?qn(e.get()):Un(e.get(),t.every((e=>e.finished))),qn=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Un=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),Qn=e=>({value:e,cancelled:!0,finished:!1});function Gn(e,t,n,r){const{callId:i,parentId:o,onRest:a}=t,{asyncTo:s,promise:l}=n;return o||e!==s||t.reset?n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;const u=Fn(t,((e,t)=>"onRest"===t?void 0:e));let c,d;const h=new Promise(((e,t)=>(c=e,d=t))),p=e=>{const t=i<=(n.cancelId||0)&&Qn(r)||i!==n.asyncId&&Un(r,!1);if(t)throw e.result=t,d(e),e},f=(e,t)=>{const o=new Zn,a=new Yn;return(async()=>{if(Ge.skipAnimation)throw Xn(n),a.result=Un(r,!1),d(a),a;p(o);const s=De.obj(e)?vn({},e):vn({},t,{to:e});s.parentId=i,Me(u,((e,t)=>{De.und(s[t])&&(s[t]=e)}));const l=await r.start(s);return p(o),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),l})()};let g;if(Ge.skipAnimation)return Xn(n),Un(r,!1);try{let t;t=De.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(c),h]),g=Un(r.get(),!0,!1)}catch(e){if(e instanceof Zn)g=e.result;else{if(!(e instanceof Yn))throw e;g=e.result}}finally{i==n.asyncId&&(n.asyncId=o,n.asyncTo=o?s:void 0,n.promise=o?l:void 0)}return De.fun(a)&&ye.batchedUpdates((()=>{a(g,r,r.item)})),g})():l}function Xn(e,t){Te(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}class Zn 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 Yn extends Error{constructor(){super("SkipAnimationSignal"),this.result=void 0}}const Jn=e=>e instanceof er;let Kn=1;class er extends Ht{constructor(...e){super(...e),this.id=Kn++,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=tn(this);return e&&e.getValue()}to(...e){return Ge.to(this,e)}interpolate(...e){return Ut(`${Lt}The "interpolate" function is deprecated in v9 (use "to" instead)`),Ge.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){Ct(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||Ke.sort(this),Ct(this,{type:"priority",parent:this,priority:e})}}const tr=Symbol.for("SpringPhase"),nr=e=>(1&e[tr])>0,rr=e=>(2&e[tr])>0,ir=e=>(4&e[tr])>0,or=(e,t)=>t?e[tr]|=3:e[tr]&=-3,ar=(e,t)=>t?e[tr]|=4:e[tr]&=-5;class sr extends er{constructor(e,t){if(super(),this.key=void 0,this.animation=new Nn,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,!De.und(e)||!De.und(t)){const n=De.obj(e)?vn({},e):vn({},t,{from:e});De.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(rr(this)||this._state.asyncTo)||ir(this)}get goal(){return Ot(this.animation.to)}get velocity(){const e=tn(this);return e instanceof an?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return nr(this)}get isAnimating(){return rr(this)}get isPaused(){return ir(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{config:i,toValues:o}=r;const a=rn(r.to);!a&&xt(r.to)&&(o=Re(Ot(r.to))),r.values.forEach(((s,l)=>{if(s.done)return;const u=s.constructor==sn?1:a?a[l].lastPosition:o[l];let c=r.immediate,d=u;if(!c){if(d=s.lastPosition,i.tension<=0)return void(s.done=!0);let t=s.elapsedTime+=e;const n=r.fromValues[l],o=null!=s.v0?s.v0:s.v0=De.arr(i.velocity)?i.velocity[l]:i.velocity;let a;const h=i.precision||(n==u?.005:Math.min(1,.001*Math.abs(u-n)));if(De.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);d=n+o/(1-e)*(1-r),c=Math.abs(s.lastPosition-d)<=h,a=o*r}else{a=null==s.lastVelocity?o:s.lastVelocity;const t=i.restVelocity||h/10,r=i.clamp?0:i.bounce,l=!De.und(r),p=n==u?s.v0>0:n<u;let f,g=!1;const m=1,y=Math.ceil(e/m);for(let e=0;e<y&&(f=Math.abs(a)>t,f||(c=Math.abs(u-d)<=h,!c));++e){l&&(g=d==u||d>u==p,g&&(a=-a*r,d=u));a+=(1e-6*-i.tension*(d-u)+.001*-i.friction*a)/i.mass*m,d+=a*m}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,s.durationProgress>0&&(s.elapsedTime=i.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+i.easing(r)*(u-n),a=(d-s.lastPosition)/e,c=1==r}s.lastVelocity=a,Number.isNaN(d)&&(console.warn("Got NaN while animating:",this),c=!0)}a&&!a[l].done&&(c=!1),c?s.done=!0:t=!1,s.setValue(d,i.round)&&(n=!0)}));const s=tn(this),l=s.getValue();if(t){const e=Ot(r.to);l===e&&!n||i.decay?n&&i.decay&&this._onChange(l):(s.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(l)}set(e){return ye.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(rr(this)){const{to:e,config:t}=this.animation;ye.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 De.und(e)?(n=this.queue||[],this.queue=[]):n=[De.obj(e)?e:vn({},t,{to:e})],Promise.all(n.map((e=>this._update(e)))).then((e=>Ln(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Xn(this._state,e&&this._lastCallId),ye.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=De.obj(n)?n[t]:n,(null==n||Pn(n))&&(n=void 0),r=De.obj(r)?r[t]:r,null==r&&(r=void 0);const i={to:n,from:r};return nr(this)||(e.reverse&&([n,r]=[r,n]),r=Ot(r),De.und(r)?tn(this)||this._set(n):this._set(r)),i}_update(e,t){let n=vn({},e);const{key:r,defaultProps:i}=this;n.default&&Object.assign(i,Fn(n,((e,t)=>/^on/.test(t)?_n(e,r):e))),fr(this,n,"onProps"),gr(this,"onProps",n,this);const o=this._prepareNode(n);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const a=this._state;return Wn(++this._lastCallId,{key:r,props:n,defaultProps:i,state:a,actions:{pause:()=>{ir(this)||(ar(this,!0),Ve(a.pauseQueue),gr(this,"onPause",Un(this,lr(this,this.animation.to)),this))},resume:()=>{ir(this)&&(ar(this,!1),rr(this)&&this._resume(),Ve(a.resumeQueue),gr(this,"onResume",Un(this,lr(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((e=>{if(n.loop&&e.finished&&(!t||!e.noop)){const e=ur(n);if(e)return this._update(e,!0)}return e}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(Qn(this));const r=!De.und(e.to),i=!De.und(e.from);if(r||i){if(!(t.callId>this._lastToId))return n(Qn(this));this._lastToId=t.callId}const{key:o,defaultProps:a,animation:s}=this,{to:l,from:u}=s;let{to:c=l,from:d=u}=e;!i||r||t.default&&!De.und(c)||(c=d),t.reverse&&([c,d]=[d,c]);const h=!Ee(d,u);h&&(s.from=d),d=Ot(d);const p=!Ee(c,l);p&&this._focus(c);const f=Pn(t.to),{config:g}=s,{decay:m,velocity:y}=g;(r||i)&&(g.velocity=0),t.config&&!f&&function(e,t,n){n&&(Tn(n=vn({},n),t),t=vn({},n,t)),Tn(e,t),Object.assign(e,t);for(const t in Mn)null==e[t]&&(e[t]=Mn[t]);let{mass:r,frequency:i,damping:o}=e;De.und(i)||(i<.01&&(i=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/i,2)*r,e.friction=4*Math.PI*o*r/i)}(g,bn(t.config,o),t.config!==a.config?bn(a.config,o):void 0);let v=tn(this);if(!v||De.und(c))return n(Un(this,!0));const b=De.und(t.reset)?i&&!t.default:!De.und(d)&&wn(t.reset,o),w=b?d:this.get(),_=Cn(c),S=De.num(_)||De.arr(_)||Gt(_),$=!f&&(!S||wn(a.immediate||t.immediate,o));if(p){const e=hn(c);if(e!==v.constructor){if(!$)throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`);v=this._set(_)}}const F=v.constructor;let x=xt(c),O=!1;if(!x){const e=b||!nr(this)&&h;(p||e)&&(O=Ee(Cn(w),_),x=!O),(Ee(s.immediate,$)||$)&&Ee(g.decay,m)&&Ee(g.velocity,y)||(x=!0)}if(O&&rr(this)&&(s.changed&&!b?x=!0:x||this._stop(l)),!f&&((x||xt(l))&&(s.values=v.getPayload(),s.toValues=xt(c)?null:F==sn?[1]:Re(_)),s.immediate!=$&&(s.immediate=$,$||b||this._set(l)),x)){const{onRest:e}=s;Ie(pr,(e=>fr(this,t,e)));const r=Un(this,lr(this,l));Ve(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&ye.batchedUpdates((()=>{s.changed=!b,null==e||e(r,this),b?bn(a.onRest,r):null==s.onStart||s.onStart(r,this)}))}b&&this._set(w),f?n(Gn(t.to,t,this._state,this)):x?this._start():rr(this)&&!p?this._pendingCalls.add(n):n(qn(w))}_focus(e){const t=this.animation;e!==t.to&&(kt(this)&&this._detach(),t.to=e,kt(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;xt(t)&&(zt(t,this),Jn(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;xt(e)&&Bt(e,this)}_set(e,t=!0){const n=Ot(e);if(!De.und(n)){const e=tn(this);if(!e||!Ee(n,e.getValue())){const r=hn(n);e&&e.constructor==r?e.setValue(n):nn(this,r.create(n)),e&&ye.batchedUpdates((()=>{this._onChange(n,t)}))}}return tn(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,gr(this,"onStart",Un(this,lr(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),bn(this.animation.onChange,e,this)),bn(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;tn(this).reset(Ot(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),rr(this)||(or(this,!0),ir(this)||this._resume())}_resume(){Ge.skipAnimation?this.finish():Ke.start(this)}_stop(e,t){if(rr(this)){or(this,!1);const n=this.animation;Ie(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Ct(this,{type:"idle",parent:this});const r=t?Qn(this.get()):Un(this.get(),lr(this,null!=e?e:n.to));Ve(this._pendingCalls,r),n.changed&&(n.changed=!1,gr(this,"onRest",r,this))}}}function lr(e,t){const n=Cn(t);return Ee(Cn(e.get()),n)}function ur(e,t=e.loop,n=e.to){let r=bn(t);if(r){const i=!0!==r&&kn(r),o=(i||e).reverse,a=!i||i.reset;return cr(vn({},e,{loop:t,default:!1,pause:void 0,to:!o||Pn(n)?n:void 0,from:a?e.from:void 0,reset:a},i))}}function cr(e){const{to:t,from:n}=e=kn(e),r=new Set;return De.obj(t)&&hr(t,r),De.obj(n)&&hr(n,r),e.keys=r.size?Array.from(r):null,e}function dr(e){const t=cr(e);return De.und(t.default)&&(t.default=Fn(t)),t}function hr(e,t){Me(e,((e,n)=>null!=e&&t.add(n)))}const pr=["onStart","onRest","onChange","onPause","onResume"];function fr(e,t,n){e.animation[n]=t[n]!==Sn(t,n)?_n(t[n],e.key):void 0}function gr(e,t,...n){var r,i,o,a;null==(r=(i=e.animation)[t])||r.call(i,...n),null==(o=(a=e.defaultProps)[t])||o.call(a,...n)}const mr=["onStart","onChange","onRest"];let yr=1;class vr{constructor(e,t){this.id=yr++,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(vn({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];De.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(cr(e)),this}start(e){let{queue:t}=this;return e?t=Re(e).map(cr):this.queue=[],this._flush?this._flush(this,t):(xr(this,t),br(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;Ie(Re(t),(t=>n[t].stop(!!e)))}else Xn(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(De.und(e))this.start({pause:!0});else{const t=this.springs;Ie(Re(e),(e=>t[e].pause()))}return this}resume(e){if(De.und(e))this.start({pause:!1});else{const t=this.springs;Ie(Re(e),(e=>t[e].resume()))}return this}each(e){Me(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,Te(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const o=!r&&this._started,a=i||o&&n.size?this.get():null;i&&t.size&&Te(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),o&&(this._started=!1,Te(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)}ye.onFrame(this._onFrame)}}function br(e,t){return Promise.all(t.map((t=>wr(e,t)))).then((t=>Ln(e,t)))}async function wr(e,t,n){const{keys:r,to:i,from:o,loop:a,onRest:s,onResolve:l}=t,u=De.obj(t.default)&&t.default;a&&(t.loop=!1),!1===i&&(t.to=null),!1===o&&(t.from=null);const c=De.arr(i)||De.fun(i)?i:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):Ie(mr,(n=>{const r=t[n];if(De.fun(r)){const i=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,Ve(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===Sn(t,"cancel");(c||p&&d.asyncId)&&h.push(Wn(++e._lastAsyncId,{props:t,state:d,actions:{pause:je,resume:je,start(t,n){p?(Xn(d,e._lastAsyncId),n(Qn(e))):(t.onRest=s,n(Gn(c,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const f=Ln(e,await Promise.all(h));if(a&&f.finished&&(!n||!f.noop)){const n=ur(t,a,i);if(n)return xr(e,[n]),wr(e,n,!0)}return l&&ye.batchedUpdates((()=>l(f,e,e.item))),f}function _r(e,t){const n=vn({},e.springs);return t&&Ie(Re(t),(e=>{De.und(e.keys)&&(e=cr(e)),De.obj(e.to)||(e=vn({},e,{to:void 0})),Fr(n,e,(e=>$r(e)))})),Sr(e,n),n}function Sr(e,t){Me(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,zt(t,e))}))}function $r(e,t){const n=new sr;return n.key=e,t&&zt(n,t),n}function Fr(e,t,n){t.keys&&Ie(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function xr(e,t){Ie(t,(t=>{Fr(e.springs,t,(t=>$r(t,e)))}))}const Or=["children"],kr=e=>{let{children:t}=e,n=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,Or);const i=g(Cr),o=n.pause||!!i.pause,l=n.immediate||!!i.immediate;n=function(e,t){const[n]=s((()=>({inputs:t,result:e()}))),r=a(),i=r.current;let o=i;o?Boolean(t&&o.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,o.inputs))||(o={inputs:t,result:e()}):o=n;return d((()=>{r.current=o,i==n&&(n.inputs=n.result=void 0)}),[o]),o.result}((()=>({pause:o,immediate:l})),[o,l]);const{Provider:u}=Cr;return r.createElement(u,{value:n},t)},Cr=(Hr=kr,Pr={},Object.assign(Hr,r.createContext(Pr)),Hr.Provider._context=Hr,Hr.Consumer._context=Hr,Hr);var Hr,Pr;kr.Provider=Cr.Provider,kr.Consumer=Cr.Consumer;const zr=()=>{const e=[],t=function(t){Qt(`${Lt}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 Ie(e,((e,i)=>{if(De.und(t))r.push(e.start());else{const o=n(t,e,i);o&&r.push(e.start(o))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return Ie(e,(e=>e.pause(...arguments))),this},t.resume=function(){return Ie(e,(e=>e.resume(...arguments))),this},t.set=function(t){Ie(e,(e=>e.set(t)))},t.start=function(t){const n=[];return Ie(e,((e,r)=>{if(De.und(t))n.push(e.start());else{const i=this._getProps(t,e,r);i&&n.push(e.start(i))}})),n},t.stop=function(){return Ie(e,(e=>e.stop(...arguments))),this},t.update=function(t){return Ie(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return De.fun(e)?e(n,t):e};return t._getProps=n,t};function Br(e,t,n){const r=De.fun(t)&&t;r&&!n&&(n=[]);const i=m((()=>r||3==arguments.length?zr():void 0),[]),o=a(0),s=Zt(),l=m((()=>({ctrls:[],queue:[],flush(e,t){const n=_r(e,t);return o.current>0&&!l.queue.length&&!Object.keys(n).some((t=>!e.springs[t]))?br(e,t):new Promise((r=>{Sr(e,n),l.queue.push((()=>{r(br(e,t))})),s()}))}})),[]),u=a([...l.ctrls]),c=[],d=Kt(e)||0;function h(e,n){for(let i=e;i<n;i++){const e=u.current[i]||(u.current[i]=new vr(null,l.flush)),n=r?r(i,e):t[i];n&&(c[i]=dr(n))}}m((()=>{Ie(u.current.slice(e,d),(e=>{zn(e,i),e.stop(!0)})),u.current.length=e,h(d,e)}),[e]),m((()=>{h(0,Math.min(d,e))}),n);const p=u.current.map(((e,t)=>_r(e,c[t]))),f=g(kr),y=Kt(f),v=f!==y&&Hn(f);Xt((()=>{o.current++,l.ctrls=u.current;const{queue:e}=l;e.length&&(l.queue=[],Ie(e,(e=>e()))),Ie(u.current,((e,t)=>{null==i||i.add(e),v&&e.start({default:f});const n=c[t];n&&(Bn(e,n.ref),e.ref?e.queue.push(n):e.start(n))}))})),Yt((()=>()=>{Ie(l.ctrls,(e=>e.stop(!0)))}));const b=p.map((e=>vn({},e)));return i?[b,i]:b}let Ar;!function(e){e.MOUNT="mount",e.ENTER="enter",e.UPDATE="update",e.LEAVE="leave"}(Ar||(Ar={}));class jr extends er{constructor(e,t){super(),this.key=void 0,this.idle=!0,this.calc=void 0,this._active=new Set,this.source=e,this.calc=_t(...t);const n=this._get(),r=hn(n);nn(this,r.create(n))}advance(e){const t=this._get();Ee(t,this.get())||(tn(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&Er(this._active)&&Ir(this)}_get(){const e=De.arr(this.source)?this.source.map(Ot):Re(Ot(this.source));return this.calc(...e)}_start(){this.idle&&!Er(this._active)&&(this.idle=!1,Ie(rn(this),(e=>{e.done=!1})),Ge.skipAnimation?(ye.batchedUpdates((()=>this.advance())),Ir(this)):Ke.start(this))}_attach(){let e=1;Ie(Re(this.source),(t=>{xt(t)&&zt(t,this),Jn(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){Ie(Re(this.source),(e=>{xt(e)&&Bt(e,this)})),this._active.clear(),Ir(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=Re(this.source).reduce(((e,t)=>Math.max(e,(Jn(t)?t.priority:0)+1)),0))}}function Dr(e){return!1!==e.idle}function Er(e){return!e.size||Array.from(e).every(Dr)}function Ir(e){e.idle||(e.idle=!0,Ie(rn(e),(e=>{e.done=!0})),Ct(e,{type:"idle",parent:e}))}function Mr(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}Ge.assign({createStringInterpolator:Wt,to:(e,t)=>new jr(e,t)});const Rr=["style","children","scrollTop","scrollLeft"],Tr=/^--/;function Vr(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||Tr.test(e)||Wr.hasOwnProperty(e)&&Wr[e]?(""+t).trim():t+"px"}const Nr={};let Wr={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 Lr=["Webkit","Ms","Moz","O"];Wr=Object.keys(Wr).reduce(((e,t)=>(Lr.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),Wr);const qr=["x","y","z"],Ur=/^(matrix|translate|scale|rotate|skew)/,Qr=/^(translate)/,Gr=/^(rotate|skew)/,Xr=(e,t)=>De.num(e)&&0!==e?e+t:e,Zr=(e,t)=>De.arr(e)?e.every((e=>Zr(e,t))):De.num(e)?e===t:parseFloat(e)===t;class Yr extends un{constructor(e){let{x:t,y:n,z:r}=e,i=Mr(e,qr);const o=[],a=[];(t||n||r)&&(o.push([t||0,n||0,r||0]),a.push((e=>[`translate3d(${e.map((e=>Xr(e,"px"))).join(",")})`,Zr(e,0)]))),Me(i,((e,t)=>{if("transform"===t)o.push([e||""]),a.push((e=>[e,""===e]));else if(Ur.test(t)){if(delete i[t],De.und(e))return;const n=Qr.test(t)?"px":Gr.test(t)?"deg":"";o.push(Re(e)),a.push("rotate3d"===t?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${Xr(i,n)})`,Zr(i,0)]:e=>[`${t}(${e.map((e=>Xr(e,n))).join(",")})`,Zr(e,t.startsWith("scale")?1:0)])}})),o.length&&(i.transform=new Jr(o,a)),super(i)}}class Jr extends Ht{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 Ie(this.inputs,((n,r)=>{const i=Ot(n[0]),[o,a]=this.transforms[r](De.arr(i)?i:n.map(Ot));e+=" "+o,t=t&&a})),t?"none":e}observerAdded(e){1==e&&Ie(this.inputs,(e=>Ie(e,(e=>xt(e)&&zt(e,this)))))}observerRemoved(e){0==e&&Ie(this.inputs,(e=>Ie(e,(e=>xt(e)&&Bt(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Ct(this,e)}}const Kr=["scrollTop","scrollLeft"];Ge.assign({batchedUpdates:v,createStringInterpolator:Wt,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 ei=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new un(e)),getComponentProps:r=(e=>e)}={})=>{const i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},o=e=>{const t=yn(e)||"Anonymous";return(e=De.str(e)?o[e]||(o[e]=fn(e,i)):e[mn]||(e[mn]=fn(e,i))).displayName=`Animated(${t})`,e};return Me(e,((t,n)=>{De.arr(e)&&(n=yn(t)),o[n]=o(t)})),{animated:o}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,r=t,{style:i,children:o,scrollTop:a,scrollLeft:s}=r,l=Mr(r,Rr),u=Object.values(l),c=Object.keys(l).map((t=>n||e.hasAttribute(t)?t:Nr[t]||(Nr[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(let t in i)if(i.hasOwnProperty(t)){const n=Vr(t,i[t]);Tr.test(t)?e.style.setProperty(t,n):e.style[t]=n}c.forEach(((t,n)=>{e.setAttribute(t,u[n])})),void 0!==a&&(e.scrollTop=a),void 0!==s&&(e.scrollLeft=s)},createAnimatedStyle:e=>new Yr(e),getComponentProps:e=>Mr(e,Kr)}),ti=ei.animated,ni=i.createContext(!1);var ri,ii="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},oi={};Object.defineProperty(oi,"__esModule",{value:!0});var ai=e;const si=e=>ai.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:ai.jsx("path",{d:"M17.7279 14.2091C17.5059 14.4311 17.2492 14.5421 16.9579 14.5421C16.6659 14.5421 16.4089 14.4311 16.1869 14.2091L10.1659 8.18812L4.12389 14.2301C3.91589 14.4381 3.66589 14.5421 3.37389 14.5421C3.08256 14.5421 2.82589 14.4311 2.60389 14.2091C2.39523 14.0005 2.29089 13.7468 2.29089 13.4481C2.29089 13.1495 2.39523 12.8961 2.60389 12.6881L9.54089 5.75012C9.63823 5.65346 9.73889 5.58412 9.84289 5.54212C9.94689 5.50079 10.0546 5.48012 10.1659 5.48012C10.2772 5.48012 10.3849 5.50079 10.4889 5.54212C10.5929 5.58412 10.6936 5.65346 10.7909 5.75012L17.7489 12.7091C17.9716 12.9311 18.0759 13.1845 18.0619 13.4691C18.0479 13.7538 17.9366 14.0005 17.7279 14.2091Z",fill:"currentColor"})});si.displayName="ChevronUpIcon",ri=oi.ChevronUpIcon=si;var li=Array.isArray,ui="object"==typeof ii&&ii&&ii.Object===Object&&ii,ci="object"==typeof self&&self&&self.Object===Object&&self,di=ui||ci||Function("return this")(),hi=di.Symbol,pi=hi,fi=Object.prototype,gi=fi.hasOwnProperty,mi=fi.toString,yi=pi?pi.toStringTag:void 0;var vi=function(e){var t=gi.call(e,yi),n=e[yi];try{e[yi]=void 0;var r=!0}catch(e){}var i=mi.call(e);return r&&(t?e[yi]=n:delete e[yi]),i},bi=Object.prototype.toString;var wi=vi,_i=function(e){return bi.call(e)},Si=hi?hi.toStringTag:void 0;var $i=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Si&&Si in Object(e)?wi(e):_i(e)};var Fi=$i,xi=function(e){return null!=e&&"object"==typeof e};var Oi=function(e){return"symbol"==typeof e||xi(e)&&"[object Symbol]"==Fi(e)},ki=li,Ci=Oi,Hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pi=/^\w*$/;var zi=function(e,t){if(ki(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ci(e))||(Pi.test(e)||!Hi.test(e)||null!=t&&e in Object(t))};var Bi=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Ai=$i,ji=Bi;var Di,Ei=function(e){if(!ji(e))return!1;var t=Ai(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},Ii=di["__core-js_shared__"],Mi=(Di=/[^.]+$/.exec(Ii&&Ii.keys&&Ii.keys.IE_PROTO||""))?"Symbol(src)_1."+Di:"";var Ri=function(e){return!!Mi&&Mi in e},Ti=Function.prototype.toString;var Vi=Ei,Ni=Ri,Wi=Bi,Li=function(e){if(null!=e){try{return Ti.call(e)}catch(e){}try{return e+""}catch(e){}}return""},qi=/^\[object .+?Constructor\]$/,Ui=Function.prototype,Qi=Object.prototype,Gi=Ui.toString,Xi=Qi.hasOwnProperty,Zi=RegExp("^"+Gi.call(Xi).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Yi=function(e){return!(!Wi(e)||Ni(e))&&(Vi(e)?Zi:qi).test(Li(e))},Ji=function(e,t){return null==e?void 0:e[t]};var Ki=function(e,t){var n=Ji(e,t);return Yi(n)?n:void 0},eo=Ki(Object,"create"),to=eo;var no=function(){this.__data__=to?to(null):{},this.size=0};var ro=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},io=eo,oo=Object.prototype.hasOwnProperty;var ao=function(e){var t=this.__data__;if(io){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return oo.call(t,e)?t[e]:void 0},so=eo,lo=Object.prototype.hasOwnProperty;var uo=eo;var co=no,ho=ro,po=ao,fo=function(e){var t=this.__data__;return so?void 0!==t[e]:lo.call(t,e)},go=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=uo&&void 0===t?"__lodash_hash_undefined__":t,this};function mo(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])}}mo.prototype.clear=co,mo.prototype.delete=ho,mo.prototype.get=po,mo.prototype.has=fo,mo.prototype.set=go;var yo=mo;var vo=function(){this.__data__=[],this.size=0};var bo=function(e,t){return e===t||e!=e&&t!=t};var wo=function(e,t){for(var n=e.length;n--;)if(bo(e[n][0],t))return n;return-1},_o=wo,So=Array.prototype.splice;var $o=wo;var Fo=wo;var xo=wo;var Oo=vo,ko=function(e){var t=this.__data__,n=_o(t,e);return!(n<0)&&(n==t.length-1?t.pop():So.call(t,n,1),--this.size,!0)},Co=function(e){var t=this.__data__,n=$o(t,e);return n<0?void 0:t[n][1]},Ho=function(e){return Fo(this.__data__,e)>-1},Po=function(e,t){var n=this.__data__,r=xo(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function zo(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])}}zo.prototype.clear=Oo,zo.prototype.delete=ko,zo.prototype.get=Co,zo.prototype.has=Ho,zo.prototype.set=Po;var Bo=zo,Ao=Ki(di,"Map"),jo=yo,Do=Bo,Eo=Ao;var Io=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};var Mo=function(e,t){var n=e.__data__;return Io(t)?n["string"==typeof t?"string":"hash"]:n.map},Ro=Mo;var To=Mo;var Vo=Mo;var No=Mo;var Wo=function(){this.size=0,this.__data__={hash:new jo,map:new(Eo||Do),string:new jo}},Lo=function(e){var t=Ro(this,e).delete(e);return this.size-=t?1:0,t},qo=function(e){return To(this,e).get(e)},Uo=function(e){return Vo(this,e).has(e)},Qo=function(e,t){var n=No(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this};function Go(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])}}Go.prototype.clear=Wo,Go.prototype.delete=Lo,Go.prototype.get=qo,Go.prototype.has=Uo,Go.prototype.set=Qo;var Xo=Go;function Zo(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Zo.Cache||Xo),n}Zo.Cache=Xo;var Yo=Zo;var Jo=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ko=/\\(\\)?/g,ea=function(e){var t=Yo(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(Jo,(function(e,n,r,i){t.push(r?i.replace(Ko,"$1"):n||e)})),t}));var ta=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i},na=li,ra=Oi,ia=hi?hi.prototype:void 0,oa=ia?ia.toString:void 0;var aa=function e(t){if("string"==typeof t)return t;if(na(t))return ta(t,e)+"";if(ra(t))return oa?oa.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n},sa=aa;var la=li,ua=zi,ca=ea,da=function(e){return null==e?"":sa(e)};var ha=Oi;var pa=function(e,t){return la(e)?e:ua(e,t)?[e]:ca(da(e))},fa=function(e){if("string"==typeof e||ha(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};var ga=function(e,t){for(var n=0,r=(t=pa(t,e)).length;null!=e&&n<r;)e=e[fa(t[n++])];return n&&n==r?e:void 0};var ma=function(e,t,n){var r=null==e?void 0:ga(e,t);return void 0===r?n:r};const ya=(e,t,n)=>t?ma(n,t)||ma(e,t):n||e,va=(e,t)=>{const n=t||e.defaultValue;return ma(e.collections,n)};var ba;!function(e){e.colorScheme="colorScheme",e.layout="layout",e.textStyleScheme="textStyleScheme",e.designTokenScheme="designTokenScheme"}(ba||(ba={}));const wa={collections:{base:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#1C76D5",PrimaryDark:"#1869BF",Secondary:"#0056b3",Accent:{Dark:{1:"#465A88",2:"#556D99",3:"#8D8DBF"},Light:{1:"#57A9FF",2:"#81BFFF",3:"#BED7FF",4:"#E2ECFD",5:"#F6F8FF",6:"#FBFCFE"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(87, 169, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}},bookingsg:{Brand:{1:"#EF413D",2:"#F26664",3:"#F58E8B",4:"#F9B5B2",5:"#FDDDD7",6:"#FFEEEA"},Primary:"#6F4AB8",PrimaryDark:"#6443A6",Secondary:"#6443A6",Accent:{Dark:{1:"#355985",2:"#68819D",3:"#9AABBE"},Light:{1:"#9F82D9",2:"#B5A5D7",3:"#CEC3E4 ",4:"#E2DBEF",5:"#F2EFF8",6:"#F7F6FB"}},Neutral:{1:"#282828",2:"#424242",3:"#686868",4:"#A4A4A4",5:"#E0E4E5",6:"#ECEFEF",7:"#F8F8F8",8:"#FFFFFF"},Validation:{Green:{Text:"#097123",Icon:"#4FC029",Border:"#95D97F",Background:"#F9FDF8"},Orange:{Text:"#B34E00",Icon:"#FEAB10",Border:"#F9CB77",Background:"#FFFCF7",Badge:"#F57F17"},Red:{Text:"#C60000",Icon:"#C60000",Border:"#DD6666",Background:"#FDF7F7"}},Shadow:{Accent:"rgba(161, 87, 255, 0.5)",Red:"rgba(221, 102, 102, 0.8)"}}},defaultValue:"base"},_a=e=>t=>{const n=t.theme,r=va(wa,n[ba.colorScheme]);return n.options&&n.options.color?ya(r,e,n.options.color):ya(r,e)},Sa={Brand:{1:_a("Brand.1"),2:_a("Brand.2"),3:_a("Brand.3"),4:_a("Brand.4"),5:_a("Brand.5"),6:_a("Brand.6")},Primary:_a("Primary"),PrimaryDark:_a("PrimaryDark"),Secondary:_a("Secondary"),Accent:{Light:{1:_a("Accent.Light.1"),2:_a("Accent.Light.2"),3:_a("Accent.Light.3"),4:_a("Accent.Light.4"),5:_a("Accent.Light.5"),6:_a("Accent.Light.6")},Dark:{1:_a("Accent.Dark.1"),2:_a("Accent.Dark.2"),3:_a("Accent.Dark.3")}},Neutral:{1:_a("Neutral.1"),2:_a("Neutral.2"),3:_a("Neutral.3"),4:_a("Neutral.4"),5:_a("Neutral.5"),6:_a("Neutral.6"),7:_a("Neutral.7"),8:_a("Neutral.8")},Validation:{Green:{Text:_a("Validation.Green.Text"),Icon:_a("Validation.Green.Icon"),Border:_a("Validation.Green.Border"),Background:_a("Validation.Green.Background")},Orange:{Text:_a("Validation.Orange.Text"),Icon:_a("Validation.Orange.Icon"),Border:_a("Validation.Orange.Border"),Background:_a("Validation.Orange.Background"),Badge:_a("Validation.Orange.Badge")},Red:{Text:_a("Validation.Red.Text"),Icon:_a("Validation.Red.Icon"),Border:_a("Validation.Red.Border"),Background:_a("Validation.Red.Background")}},Shadow:{Accent:_a("Shadow.Accent"),Red:_a("Shadow.Red")}},$a=b.button`
|
|
12
2
|
display: flex;
|
|
13
3
|
justify-content: center;
|
|
14
4
|
align-items: center;
|
|
15
5
|
padding: 1.5rem;
|
|
16
|
-
background-color:
|
|
6
|
+
background-color: transparent;
|
|
17
7
|
border: none;
|
|
18
8
|
cursor: pointer;
|
|
19
9
|
|
|
@@ -22,189 +12,192 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import
|
|
|
22
12
|
width: 1rem;
|
|
23
13
|
}
|
|
24
14
|
|
|
15
|
+
&:active,
|
|
25
16
|
&:focus {
|
|
26
|
-
outline: none;
|
|
27
|
-
|
|
17
|
+
${({$outline:e})=>"none"===e&&"outline: none;"}
|
|
18
|
+
|
|
19
|
+
${({$highlight:e})=>e&&w`
|
|
20
|
+
background-color: ${Sa.Neutral[7]};
|
|
21
|
+
`}
|
|
28
22
|
}
|
|
29
|
-
`,
|
|
30
|
-
font-family: ${
|
|
23
|
+
`,Fa=i.forwardRef((({children:e,focusHighlight:n=!0,focusOutline:r="none",...i},o)=>t($a,{ref:o,$outline:r,$highlight:n,...i,children:e}))),xa={mobileS:320,mobileM:375,mobileL:480,tablet:1199,desktopM:1399,desktopL:1999,desktop4k:3840},Oa=e=>Object.keys(xa).reduce(((t,n)=>{const r=xa[n];return t[n]=`@media screen and (${e}: ${r}px)`,t}),{}),ka=Oa("max-width");Oa("min-width");var Ca,Ha={};Object.defineProperty(Ha,"__esModule",{value:!0});var Pa=e;const za=e=>Pa.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e,children:Pa.jsx("path",{d:"M4.25 17.5C3.764 17.5 3.35067 17.33 3.01 16.99C2.67 16.6493 2.5 16.236 2.5 15.75V4.25C2.5 3.764 2.67 3.35067 3.01 3.01C3.35067 2.67 3.764 2.5 4.25 2.5H9.208C9.444 2.5 9.649 2.58667 9.823 2.76C9.99633 2.934 10.083 3.139 10.083 3.375C10.083 3.611 9.99633 3.816 9.823 3.99C9.649 4.16333 9.444 4.25 9.208 4.25H4.25V15.75H15.75V10.792C15.75 10.556 15.8367 10.351 16.01 10.177C16.184 10.0037 16.389 9.917 16.625 9.917C16.861 9.917 17.066 10.0037 17.24 10.177C17.4133 10.351 17.5 10.556 17.5 10.792V15.75C17.5 16.236 17.33 16.6493 16.99 16.99C16.6493 17.33 16.236 17.5 15.75 17.5H4.25ZM7.5 12.5C7.33333 12.3333 7.25 12.1283 7.25 11.885C7.25 11.6423 7.33333 11.4377 7.5 11.271L14.521 4.25H12.708C12.472 4.25 12.2673 4.16333 12.094 3.99C11.92 3.816 11.833 3.611 11.833 3.375C11.833 3.139 11.92 2.934 12.094 2.76C12.2673 2.58667 12.472 2.5 12.708 2.5H16.625C16.861 2.5 17.066 2.58667 17.24 2.76C17.4133 2.934 17.5 3.139 17.5 3.375V7.292C17.5 7.528 17.4133 7.73267 17.24 7.906C17.066 8.08 16.861 8.167 16.625 8.167C16.389 8.167 16.184 8.08 16.01 7.906C15.8367 7.73267 15.75 7.528 15.75 7.292V5.479L8.708 12.521C8.54133 12.6877 8.34367 12.771 8.115 12.771C7.88567 12.771 7.68067 12.6807 7.5 12.5Z",fill:"currentColor"})});za.displayName="ExternalIcon",Ca=Ha.ExternalIcon=za;const Ba={Regular:"Open Sans",Semibold:"Open Sans Semibold",Bold:"Open Sans Bold",Light:"Open Sans Light"},Aa={collections:{base:{D1:{fontFamily:Ba.Bold,fontSize:3,fontWeight:700,lineHeight:4,letterSpacing:-.056},D2:{fontFamily:Ba.Bold,fontSize:2.5,fontWeight:700,lineHeight:3.5,letterSpacing:-.032},D3:{fontFamily:Ba.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},D4:{fontFamily:Ba.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},DBody:{fontFamily:Ba.Regular,fontSize:1.375,lineHeight:1.75},H1:{fontFamily:Ba.Bold,fontSize:2,fontWeight:700,lineHeight:2.5},H2:{fontFamily:Ba.Bold,fontSize:1.625,fontWeight:700,lineHeight:2.25},H3:{fontFamily:Ba.Bold,fontSize:1.375,fontWeight:700,lineHeight:1.75},H4:{fontFamily:Ba.Bold,fontSize:1.125,fontWeight:700,lineHeight:1.625},H5:{fontFamily:Ba.Bold,fontSize:1,fontWeight:700,lineHeight:1.5,letterSpacing:.014},H6:{fontFamily:Ba.Bold,fontSize:.875,fontWeight:700,lineHeight:1.6,letterSpacing:.012},Body:{fontFamily:Ba.Regular,fontSize:1.125,lineHeight:1.625},BodySmall:{fontFamily:Ba.Regular,fontSize:1,lineHeight:1.5,letterSpacing:.014},XSmall:{fontFamily:Ba.Regular,fontSize:.75,lineHeight:1.2,letterSpacing:.012}}},defaultValue:"base"},ja=e=>t=>{const n=t.theme,r=va(Aa,n[ba.textStyleScheme]);return n.options&&n.options.textStyle?ya(r,e,n.options.textStyle):ya(r,e)},Da={D1:{fontFamily:ja("D1.fontFamily"),fontSize:ja("D1.fontSize"),fontWeight:ja("D1.fontWeight"),lineHeight:ja("D1.lineHeight"),letterSpacing:ja("D1.letterSpacing")},D2:{fontFamily:ja("D2.fontFamily"),fontSize:ja("D2.fontSize"),fontWeight:ja("D2.fontWeight"),lineHeight:ja("D2.lineHeight"),letterSpacing:ja("D2.letterSpacing")},D3:{fontFamily:ja("D3.fontFamily"),fontSize:ja("D3.fontSize"),fontWeight:ja("D3.fontWeight"),lineHeight:ja("D3.lineHeight"),letterSpacing:ja("D3.letterSpacing")},D4:{fontFamily:ja("D4.fontFamily"),fontSize:ja("D4.fontSize"),fontWeight:ja("D4.fontWeight"),lineHeight:ja("D4.lineHeight"),letterSpacing:ja("D4.letterSpacing")},DBody:{fontFamily:ja("DBody.fontFamily"),fontSize:ja("DBody.fontSize"),fontWeight:ja("DBody.fontWeight"),lineHeight:ja("DBody.lineHeight"),letterSpacing:ja("DBody.letterSpacing")},H1:{fontFamily:ja("H1.fontFamily"),fontSize:ja("H1.fontSize"),fontWeight:ja("H1.fontWeight"),lineHeight:ja("H1.lineHeight"),letterSpacing:ja("H1.letterSpacing")},H2:{fontFamily:ja("H2.fontFamily"),fontSize:ja("H2.fontSize"),fontWeight:ja("H2.fontWeight"),lineHeight:ja("H2.lineHeight"),letterSpacing:ja("H2.letterSpacing")},H3:{fontFamily:ja("H3.fontFamily"),fontSize:ja("H3.fontSize"),fontWeight:ja("H3.fontWeight"),lineHeight:ja("H3.lineHeight"),letterSpacing:ja("H3.letterSpacing")},H4:{fontFamily:ja("H4.fontFamily"),fontSize:ja("H4.fontSize"),fontWeight:ja("H4.fontWeight"),lineHeight:ja("H4.lineHeight"),letterSpacing:ja("H4.letterSpacing")},H5:{fontFamily:ja("H5.fontFamily"),fontSize:ja("H5.fontSize"),fontWeight:ja("H5.fontWeight"),lineHeight:ja("H5.lineHeight"),letterSpacing:ja("H5.letterSpacing")},H6:{fontFamily:ja("H6.fontFamily"),fontSize:ja("H6.fontSize"),fontWeight:ja("H6.fontWeight"),lineHeight:ja("H6.lineHeight"),letterSpacing:ja("H6.letterSpacing")},Body:{fontFamily:ja("Body.fontFamily"),fontSize:ja("Body.fontSize"),fontWeight:ja("Body.fontWeight"),lineHeight:ja("Body.lineHeight"),letterSpacing:ja("Body.letterSpacing")},BodySmall:{fontFamily:ja("BodySmall.fontFamily"),fontSize:ja("BodySmall.fontSize"),fontWeight:ja("BodySmall.fontWeight"),lineHeight:ja("BodySmall.lineHeight"),letterSpacing:ja("BodySmall.letterSpacing")},XSmall:{fontFamily:ja("XSmall.fontFamily"),fontSize:ja("XSmall.fontSize"),fontWeight:ja("XSmall.fontWeight"),lineHeight:ja("XSmall.lineHeight"),letterSpacing:ja("XSmall.letterSpacing")}},Ea=e=>{switch(e){case 700:case"bold":return Ba.Bold;case 600:case"semibold":return Ba.Semibold;case 300:case"light":return Ba.Light;case 400:case"regular":return Ba.Regular;default:return""}},Ia=(e,t)=>n=>{const r=Da[e].fontFamily(n),i=Da[e].fontWeight(n);return Object.values(Ba).includes(r)?w`
|
|
24
|
+
font-family: ${Ea(t)||Ea(i)||r};
|
|
31
25
|
font-weight: normal !important;
|
|
32
|
-
`:
|
|
26
|
+
`:w`
|
|
33
27
|
font-family: ${r};
|
|
34
|
-
font-weight: ${(
|
|
35
|
-
`},
|
|
36
|
-
${
|
|
28
|
+
font-weight: ${(Ma(t)||i)??"normal"};
|
|
29
|
+
`},Ma=e=>{switch(e){case 300:case"light":return 300;case 400:case"regular":return 400;case 600:case"semibold":return 600;case 700:case"bold":return 700;case 900:case"black":return 900;default:return""}},Ra=(e,t,n=!1)=>r=>{const i=Da[e],o=i.fontSize(r);return w`
|
|
30
|
+
${Ia(e,t)}
|
|
37
31
|
font-size: ${o}rem !important;
|
|
38
32
|
line-height: ${i.lineHeight}rem !important;
|
|
39
33
|
letter-spacing: ${i.letterSpacing(r)||0}rem !important;
|
|
40
|
-
${
|
|
34
|
+
${w`
|
|
41
35
|
margin-bottom: ${o*(n?1.05:0)}rem;
|
|
42
36
|
`}
|
|
43
|
-
`},
|
|
37
|
+
`},Ta=(e=!1,t=!1)=>t?w`
|
|
44
38
|
display: block;
|
|
45
|
-
`:e?
|
|
39
|
+
`:e?w`
|
|
46
40
|
display: inline;
|
|
47
|
-
`:
|
|
41
|
+
`:w`
|
|
48
42
|
display: block;
|
|
49
|
-
`;var
|
|
50
|
-
${e=>
|
|
51
|
-
${
|
|
52
|
-
color: ${
|
|
53
|
-
${
|
|
43
|
+
`;var Va;!function(e){e.D1=b.h1`
|
|
44
|
+
${e=>w`
|
|
45
|
+
${Ra("D1",e.weight,e.paragraph)}
|
|
46
|
+
color: ${Sa.Neutral[1]};
|
|
47
|
+
${Ta(e.inline,e.paragraph)}
|
|
54
48
|
`}
|
|
55
|
-
`,e.D2=
|
|
56
|
-
${e=>
|
|
57
|
-
${
|
|
58
|
-
color: ${
|
|
59
|
-
${
|
|
49
|
+
`,e.D2=b.h1`
|
|
50
|
+
${e=>w`
|
|
51
|
+
${Ra("D2",e.weight,e.paragraph)}
|
|
52
|
+
color: ${Sa.Neutral[1]};
|
|
53
|
+
${Ta(e.inline,e.paragraph)}
|
|
60
54
|
`}
|
|
61
|
-
`,e.D3=
|
|
62
|
-
${e=>
|
|
63
|
-
${
|
|
64
|
-
color: ${
|
|
65
|
-
${
|
|
55
|
+
`,e.D3=b.h1`
|
|
56
|
+
${e=>w`
|
|
57
|
+
${Ra("D3",e.weight,e.paragraph)}
|
|
58
|
+
color: ${Sa.Neutral[1]};
|
|
59
|
+
${Ta(e.inline,e.paragraph)}
|
|
66
60
|
`}
|
|
67
|
-
`,e.D4=
|
|
68
|
-
${e=>
|
|
69
|
-
${
|
|
70
|
-
color: ${
|
|
71
|
-
${
|
|
61
|
+
`,e.D4=b.h1`
|
|
62
|
+
${e=>w`
|
|
63
|
+
${Ra("D4",e.weight,e.paragraph)}
|
|
64
|
+
color: ${Sa.Neutral[1]};
|
|
65
|
+
${Ta(e.inline,e.paragraph)}
|
|
72
66
|
`}
|
|
73
|
-
`,e.DBody=
|
|
74
|
-
${e=>
|
|
75
|
-
${
|
|
76
|
-
color: ${
|
|
77
|
-
${
|
|
67
|
+
`,e.DBody=b.h1`
|
|
68
|
+
${e=>w`
|
|
69
|
+
${Ra("DBody",e.weight,e.paragraph)}
|
|
70
|
+
color: ${Sa.Neutral[1]};
|
|
71
|
+
${Ta(e.inline,e.paragraph)}
|
|
78
72
|
`}
|
|
79
|
-
`,e.H1=
|
|
80
|
-
${e=>
|
|
81
|
-
${
|
|
82
|
-
color: ${
|
|
83
|
-
${
|
|
73
|
+
`,e.H1=b.h1`
|
|
74
|
+
${e=>w`
|
|
75
|
+
${Ra("H1",e.weight,e.paragraph)}
|
|
76
|
+
color: ${Sa.Neutral[1]};
|
|
77
|
+
${Ta(e.inline,e.paragraph)}
|
|
84
78
|
`}
|
|
85
|
-
`,e.H2=
|
|
86
|
-
${e=>
|
|
87
|
-
${
|
|
88
|
-
color: ${
|
|
89
|
-
${
|
|
79
|
+
`,e.H2=b.h2`
|
|
80
|
+
${e=>w`
|
|
81
|
+
${Ra("H2",e.weight,e.paragraph)}
|
|
82
|
+
color: ${Sa.Neutral[1]};
|
|
83
|
+
${Ta(e.inline,e.paragraph)}
|
|
90
84
|
`}
|
|
91
|
-
`,e.H3=
|
|
92
|
-
${e=>
|
|
93
|
-
${
|
|
94
|
-
color: ${
|
|
95
|
-
${
|
|
85
|
+
`,e.H3=b.h3`
|
|
86
|
+
${e=>w`
|
|
87
|
+
${Ra("H3",e.weight,e.paragraph)}
|
|
88
|
+
color: ${Sa.Neutral[1]};
|
|
89
|
+
${Ta(e.inline,e.paragraph)}
|
|
96
90
|
`}
|
|
97
|
-
`,e.H4=
|
|
98
|
-
${e=>
|
|
99
|
-
${
|
|
100
|
-
color: ${
|
|
101
|
-
${
|
|
91
|
+
`,e.H4=b.h4`
|
|
92
|
+
${e=>w`
|
|
93
|
+
${Ra("H4",e.weight,e.paragraph)}
|
|
94
|
+
color: ${Sa.Neutral[1]};
|
|
95
|
+
${Ta(e.inline,e.paragraph)}
|
|
102
96
|
`}
|
|
103
|
-
`,e.H5=
|
|
104
|
-
${e=>
|
|
105
|
-
${
|
|
106
|
-
color: ${
|
|
107
|
-
${
|
|
97
|
+
`,e.H5=b.h5`
|
|
98
|
+
${e=>w`
|
|
99
|
+
${Ra("H5",e.weight,e.paragraph)}
|
|
100
|
+
color: ${Sa.Neutral[1]};
|
|
101
|
+
${Ta(e.inline,e.paragraph)}
|
|
108
102
|
`}
|
|
109
|
-
`,e.H6=
|
|
110
|
-
${e=>
|
|
111
|
-
${
|
|
112
|
-
color: ${
|
|
113
|
-
${
|
|
103
|
+
`,e.H6=b.h6`
|
|
104
|
+
${e=>w`
|
|
105
|
+
${Ra("H6",e.weight,e.paragraph)}
|
|
106
|
+
color: ${Sa.Neutral[1]};
|
|
107
|
+
${Ta(e.inline,e.paragraph)}
|
|
114
108
|
`}
|
|
115
|
-
`,e.Body=
|
|
116
|
-
${e=>
|
|
117
|
-
${
|
|
118
|
-
color: ${
|
|
119
|
-
${
|
|
109
|
+
`,e.Body=b.p`
|
|
110
|
+
${e=>w`
|
|
111
|
+
${Ra("Body",e.weight,e.paragraph)}
|
|
112
|
+
color: ${Sa.Neutral[1]};
|
|
113
|
+
${Ta(e.inline,e.paragraph)}
|
|
120
114
|
`}
|
|
121
|
-
`,e.BodySmall=
|
|
122
|
-
${e=>
|
|
123
|
-
${
|
|
124
|
-
color: ${
|
|
125
|
-
${
|
|
115
|
+
`,e.BodySmall=b.p`
|
|
116
|
+
${e=>w`
|
|
117
|
+
${Ra("BodySmall",e.weight,e.paragraph)}
|
|
118
|
+
color: ${Sa.Neutral[1]};
|
|
119
|
+
${Ta(e.inline,e.paragraph)}
|
|
126
120
|
`}
|
|
127
|
-
`,e.XSmall=
|
|
128
|
-
${e=>
|
|
129
|
-
${
|
|
130
|
-
color: ${
|
|
131
|
-
${
|
|
121
|
+
`,e.XSmall=b.span`
|
|
122
|
+
${e=>w`
|
|
123
|
+
${Ra("XSmall",e.weight,e.paragraph)}
|
|
124
|
+
color: ${Sa.Neutral[1]};
|
|
125
|
+
${Ta(e.inline,e.paragraph)}
|
|
132
126
|
`}
|
|
133
|
-
`,e.Hyperlink={Default:e=>
|
|
134
|
-
${e=>
|
|
135
|
-
${
|
|
136
|
-
color: ${
|
|
127
|
+
`,e.Hyperlink={Default:e=>La({...e,textStyle:"Body"}),Small:e=>La({...e,textStyle:"BodySmall"})}}(Va||(Va={}));const Na=b.a`
|
|
128
|
+
${e=>w`
|
|
129
|
+
${Ra(e.textStyle,e.weight)}
|
|
130
|
+
color: ${Sa.Primary};
|
|
137
131
|
text-decoration: none;
|
|
138
132
|
|
|
139
133
|
:hover,
|
|
140
134
|
:active,
|
|
141
135
|
:focus {
|
|
142
|
-
color: ${
|
|
136
|
+
color: ${Sa.Secondary};
|
|
137
|
+
|
|
138
|
+
svg {
|
|
139
|
+
color: ${Sa.Secondary};
|
|
140
|
+
}
|
|
143
141
|
}
|
|
144
142
|
`}
|
|
145
|
-
`,
|
|
143
|
+
`,Wa=b(Ca)`
|
|
144
|
+
height: 1rem;
|
|
145
|
+
width: 1rem;
|
|
146
146
|
margin-left: 0.4rem;
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
vertical-align: middle;
|
|
148
|
+
`,La=({external:e=!1,children:r,...i})=>n(Na,{...i,children:[r,e&&t(Wa,{})]}),qa="all 300ms cubic-bezier(0.21, 0.79, 0.53, 1)",Ua=b.div`
|
|
149
|
+
background-color: ${Sa.Neutral[8]} !important;
|
|
150
|
+
border-top: 1px solid ${Sa.Neutral[6]};
|
|
150
151
|
padding: ${e=>e.$isCollapsed?"0 0 1rem":"0"};
|
|
151
152
|
|
|
152
|
-
${
|
|
153
|
+
${ka.mobileL} {
|
|
153
154
|
padding: ${e=>e.$isCollapsed?".25rem 0 1.05rem":"0.5rem 0"};
|
|
154
155
|
}
|
|
155
|
-
`,
|
|
156
|
+
`,Qa=b.div`
|
|
156
157
|
display: flex;
|
|
157
158
|
flex-direction: row;
|
|
158
159
|
align-items: center;
|
|
159
|
-
`,
|
|
160
|
+
`,Ga=e=>w`
|
|
160
161
|
flex: 1;
|
|
161
162
|
margin: 1rem 2rem ${e?.5:1}rem 0;
|
|
162
|
-
transition: ${
|
|
163
|
-
`,
|
|
164
|
-
${e=>
|
|
165
|
-
`,
|
|
166
|
-
${e=>
|
|
167
|
-
`,
|
|
168
|
-
:active,
|
|
169
|
-
:focus {
|
|
170
|
-
background-color: transparent;
|
|
171
|
-
outline: revert;
|
|
172
|
-
}
|
|
163
|
+
transition: ${qa};
|
|
164
|
+
`,Xa=b(Va.H3)`
|
|
165
|
+
${e=>Ga(e.$isCollapsed)}
|
|
166
|
+
`,Za=b(Va.H4)`
|
|
167
|
+
${e=>Ga(e.$isCollapsed)}
|
|
168
|
+
`,Ya=b(Fa)`
|
|
173
169
|
height: 3.25rem;
|
|
174
170
|
width: 3.25rem;
|
|
175
|
-
display: flex;
|
|
176
|
-
justify-content: center;
|
|
177
|
-
align-items: center;
|
|
178
171
|
padding: 1rem;
|
|
179
172
|
transform: rotate(${e=>e.$isCollapsed?0:180}deg);
|
|
180
173
|
transition: transform 300ms ease-in-out;
|
|
181
174
|
margin: auto -1rem auto 0;
|
|
182
|
-
`,
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
`,
|
|
175
|
+
`,Ja=b(ri)`
|
|
176
|
+
height: 1.25rem;
|
|
177
|
+
width: 1.25rem;
|
|
178
|
+
color: ${Sa.Primary};
|
|
179
|
+
`,Ka=b(ti.div)`
|
|
187
180
|
overflow: hidden;
|
|
188
|
-
`,
|
|
181
|
+
`,es=b.div`
|
|
189
182
|
display: inline-block;
|
|
190
183
|
padding-right: 4rem;
|
|
191
184
|
|
|
192
|
-
${
|
|
185
|
+
${ka.tablet} {
|
|
193
186
|
padding-right: 0;
|
|
194
187
|
}
|
|
195
|
-
`,
|
|
188
|
+
`,ts=b.div`
|
|
196
189
|
display: inline-block;
|
|
197
190
|
position: relative;
|
|
198
191
|
width: ${e=>e.$size}px;
|
|
199
192
|
height: ${e=>e.$size}px;
|
|
200
|
-
`,
|
|
193
|
+
`,ns=_`
|
|
201
194
|
0% {
|
|
202
195
|
transform: rotate(0deg);
|
|
203
196
|
}
|
|
204
197
|
100% {
|
|
205
198
|
transform: rotate(360deg);
|
|
206
199
|
}
|
|
207
|
-
`,
|
|
200
|
+
`,rs=b.div`
|
|
208
201
|
box-sizing: border-box;
|
|
209
202
|
display: block;
|
|
210
203
|
position: absolute;
|
|
@@ -214,16 +207,16 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import
|
|
|
214
207
|
border-width: ${e=>e.$borderWidth}px;
|
|
215
208
|
border-style: solid;
|
|
216
209
|
border-radius: 50%;
|
|
217
|
-
border-color: ${e=>e.$color||
|
|
210
|
+
border-color: ${e=>e.$color||Sa.Neutral[8](e)}
|
|
218
211
|
transparent transparent transparent;
|
|
219
|
-
animation: ${
|
|
220
|
-
`,
|
|
212
|
+
animation: ${ns} 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
|
|
213
|
+
`,is=b(rs)`
|
|
221
214
|
animation-delay: -0.45s;
|
|
222
|
-
`,
|
|
215
|
+
`,os=b(rs)`
|
|
223
216
|
animation-delay: -0.3s;
|
|
224
|
-
`,
|
|
217
|
+
`,as=b(rs)`
|
|
225
218
|
animation-delay: -0.15s;
|
|
226
|
-
`;var
|
|
219
|
+
`;var ss;!function(e){e[e.Subpage=0]="Subpage",e[e.Domain=1]="Domain"}(ss||(ss={}));const ls=b.button`
|
|
227
220
|
padding: 0.5rem 1rem;
|
|
228
221
|
min-width: 4rem;
|
|
229
222
|
border-radius: 4px;
|
|
@@ -242,22 +235,22 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import
|
|
|
242
235
|
// -----------------------------------------------------------------------------
|
|
243
236
|
// BUTTON STYLE + TEXT COLOR
|
|
244
237
|
// -----------------------------------------------------------------------------
|
|
245
|
-
${e=>{switch(e.$buttonStyle){case"secondary":return
|
|
246
|
-
background-color: ${
|
|
247
|
-
border: 1px solid ${
|
|
238
|
+
${e=>{switch(e.$buttonStyle){case"secondary":return w`
|
|
239
|
+
background-color: ${Sa.Neutral[8](e)};
|
|
240
|
+
border: 1px solid ${Sa.Primary(e)};
|
|
248
241
|
|
|
249
242
|
span {
|
|
250
|
-
color: ${
|
|
243
|
+
color: ${Sa.Primary(e)};
|
|
251
244
|
}
|
|
252
|
-
`;case"light":return
|
|
253
|
-
background-color: ${
|
|
254
|
-
border: 1px solid ${
|
|
245
|
+
`;case"light":return w`
|
|
246
|
+
background-color: ${Sa.Neutral[8](e)};
|
|
247
|
+
border: 1px solid ${Sa.Neutral[5](e)};
|
|
255
248
|
|
|
256
249
|
span {
|
|
257
|
-
color: ${
|
|
250
|
+
color: ${Sa.Primary(e)};
|
|
258
251
|
}
|
|
259
|
-
`;case"disabled":return
|
|
260
|
-
background-color: ${
|
|
252
|
+
`;case"disabled":return w`
|
|
253
|
+
background-color: ${Sa.Neutral[6](e)};
|
|
261
254
|
border: 1px solid transparent;
|
|
262
255
|
cursor: not-allowed;
|
|
263
256
|
|
|
@@ -266,9 +259,9 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import
|
|
|
266
259
|
}
|
|
267
260
|
|
|
268
261
|
span {
|
|
269
|
-
color: ${
|
|
262
|
+
color: ${Sa.Neutral[3](e)};
|
|
270
263
|
}
|
|
271
|
-
`;case"link":return
|
|
264
|
+
`;case"link":return w`
|
|
272
265
|
background-color: transparent;
|
|
273
266
|
border: none;
|
|
274
267
|
border-radius: unset;
|
|
@@ -277,52 +270,52 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import
|
|
|
277
270
|
box-shadow: none;
|
|
278
271
|
}
|
|
279
272
|
|
|
280
|
-
color: ${
|
|
273
|
+
color: ${Sa.Primary};
|
|
281
274
|
:hover,
|
|
282
275
|
:active,
|
|
283
276
|
:focus {
|
|
284
277
|
span {
|
|
285
|
-
color: ${
|
|
278
|
+
color: ${Sa.Secondary};
|
|
286
279
|
}
|
|
287
280
|
}
|
|
288
|
-
`;default:return
|
|
289
|
-
background-color: ${
|
|
281
|
+
`;default:return w`
|
|
282
|
+
background-color: ${Sa.Primary(e)};
|
|
290
283
|
border: 1px solid transparent;
|
|
291
284
|
|
|
292
|
-
${
|
|
285
|
+
${ka.mobileL} {
|
|
293
286
|
width: 100%;
|
|
294
287
|
}
|
|
295
288
|
|
|
296
289
|
span {
|
|
297
|
-
color: ${
|
|
290
|
+
color: ${Sa.Neutral[8](e)};
|
|
298
291
|
}
|
|
299
292
|
`}}}
|
|
300
293
|
|
|
301
294
|
// -----------------------------------------------------------------------------
|
|
302
295
|
// BUTTON SIZE + TEXT SIZE
|
|
303
296
|
// -----------------------------------------------------------------------------
|
|
304
|
-
${e=>"small"===e.$buttonSizeStyle?
|
|
297
|
+
${e=>"small"===e.$buttonSizeStyle?w`
|
|
305
298
|
height: 2.5rem;
|
|
306
299
|
span {
|
|
307
|
-
${
|
|
300
|
+
${Ra("H5","semibold")}
|
|
308
301
|
}
|
|
309
302
|
|
|
310
|
-
${
|
|
303
|
+
${ka.mobileS} {
|
|
311
304
|
height: auto;
|
|
312
305
|
}
|
|
313
|
-
`:
|
|
306
|
+
`:w`
|
|
314
307
|
height: 3rem;
|
|
315
308
|
span {
|
|
316
|
-
${
|
|
309
|
+
${Ra("H4","semibold")}
|
|
317
310
|
}
|
|
318
311
|
|
|
319
|
-
${
|
|
312
|
+
${ka.mobileS} {
|
|
320
313
|
height: auto;
|
|
321
314
|
}
|
|
322
315
|
`}
|
|
323
|
-
`,
|
|
316
|
+
`,us=b((({color:e,className:r,size:i=18})=>n(ts,{className:r,$size:i,$color:e,children:[t(rs,{id:"inner1",$size:i-2,$borderWidth:2}),t(is,{id:"inner2",$size:i-2,$borderWidth:2}),t(os,{id:"inner3",$size:i-2,$borderWidth:2}),t(as,{id:"inner4",$size:i-2,$borderWidth:2})]})))`
|
|
324
317
|
margin-right: 0.5rem;
|
|
325
|
-
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=
|
|
318
|
+
${e=>{let t;switch(e.$buttonStyle){case"secondary":case"light":case"link":t=Sa.Primary(e);break;case"disabled":t=Sa.Neutral[3](e);break;default:t=Sa.Neutral[8](e)}return w`
|
|
326
319
|
#inner1,
|
|
327
320
|
#inner2,
|
|
328
321
|
#inner3,
|
|
@@ -330,35 +323,35 @@ import{jsx as e,jsxs as t}from"react/jsx-runtime";import*as n from"react";import
|
|
|
330
323
|
border-color: ${t} transparent transparent transparent;
|
|
331
324
|
}
|
|
332
325
|
`}}
|
|
333
|
-
`,
|
|
326
|
+
`,cs={Default:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,u={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"default"};return n(ls,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...u,...l,children:[a&&t(us,{...u}),t("span",{children:i})]})})),Small:i.forwardRef(((e,r)=>{const{children:i,disabled:o=!1,loading:a=!1,styleType:s="default",...l}=e,u={$buttonStyle:o?"disabled":s,$buttonSizeStyle:"small"};return n(ls,{ref:r,"data-testid":l["data-testid"]||"button",disabled:o,...u,...l,children:[a&&t(us,{...u,size:16}),t("span",{children:i})]})}))},ds=b.div`
|
|
334
327
|
width: 100%;
|
|
335
|
-
border-bottom: 1px solid ${
|
|
336
|
-
`,
|
|
328
|
+
border-bottom: 1px solid ${Sa.Neutral[6]};
|
|
329
|
+
`,hs=b.div`
|
|
337
330
|
display: flex;
|
|
338
331
|
flex-direction: ${e=>e.$hasTitle?"row":"column"};
|
|
339
332
|
align-items: ${e=>e.$hasTitle?"center":"flex-end"};
|
|
340
333
|
padding-bottom: 1rem;
|
|
341
334
|
|
|
342
|
-
${
|
|
335
|
+
${ka.mobileL} {
|
|
343
336
|
justify-content: flex-end;
|
|
344
337
|
}
|
|
345
|
-
`,
|
|
338
|
+
`,ps=b(Va.H2)`
|
|
346
339
|
display: flex;
|
|
347
340
|
align-self: flex-start;
|
|
348
341
|
flex: 1;
|
|
349
|
-
${
|
|
342
|
+
${ka.mobileL} {
|
|
350
343
|
text-align: left;
|
|
351
344
|
}
|
|
352
345
|
|
|
353
|
-
${e=>{if(!e.$showInMobile)return
|
|
354
|
-
${
|
|
346
|
+
${e=>{if(!e.$showInMobile)return w`
|
|
347
|
+
${ka.mobileL} {
|
|
355
348
|
display: none;
|
|
356
349
|
visibility: hidden;
|
|
357
350
|
}
|
|
358
351
|
`}}
|
|
359
|
-
`,
|
|
352
|
+
`,fs=b(cs.Small)`
|
|
360
353
|
padding: 1.75rem 1rem; // larger clickable area
|
|
361
354
|
margin: -1rem -1rem -1rem 0px;
|
|
362
355
|
white-space: nowrap;
|
|
363
|
-
`,
|
|
356
|
+
`,gs=Object.assign((({children:e,title:r,enableExpandAll:i=!0,showTitleInMobile:o=!1,className:a})=>{const[l,u]=s(!0),c=e=>{e.preventDefault(),u((e=>!e))};return t(ni.Provider,{value:l,children:n(ds,{className:a,children:[n(hs,{$hasTitle:!!r||o,children:[r&&t(ps,{$showInMobile:o,"data-testid":"accordion-title",children:r}),i&&t(fs,{"data-testid":"accordion-expand-collapse-button",onClick:c,styleType:"link",children:l?"Hide all":"Show all"})]}),e]})})}),{Item:({title:e,children:r,expanded:i=!0,type:o="default",...l})=>{const u=g(ni),[c,h]=s(u||i),p=l["data-testid"]||"accordion-item",f=function(e){void 0===e&&(e={});var t=e.skipOnMount,n=void 0!==t&&t,r=e.refreshMode,i=e.refreshRate,o=void 0===i?1e3:i,l=e.refreshOptions,u=e.handleWidth,c=void 0===u||u,d=e.handleHeight,h=void 0===d||d,p=e.targetRef,f=e.observerOptions,g=e.onResize,m=a(n),y=a(null),v=null!=p?p:y,b=a(),w=s({width:void 0,height:void 0}),_=w[0],S=w[1];return ge((function(){if(!he()){var e=fe(g,S,c,h);b.current=ce((function(t){(c||h)&&t.forEach((function(t){var n=t&&t.contentRect||{},r=n.width,i=n.height;!m.current&&!he()&&e({width:r,height:i}),m.current=!1}))}),r,o,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,o,l,c,h,g,f,v.current]),$({ref:v},_)}(),m=f.ref;d((()=>{h(u)}),[u]),d((()=>{h(i)}),[i]);const y=function(e,t){const n=De.fun(e),[[r],i]=Br(1,n?e:[e],n?t||[]:t);return n||2==arguments.length?[r,i]:r}({height:c?f.height:0});return n(Ua,{"data-testid":p,className:l.className,$isCollapsed:c,children:[n(Qa,{children:[t("small"===o?Za:Xa,{"data-testid":`${p}-title`,$isCollapsed:c,children:e}),t(Ya,{"data-testid":`${p}-expand-collapse-button`,onClick:e=>{e.preventDefault(),h((e=>!e))},$isCollapsed:c,focusHighlight:!1,focusOutline:"browser","aria-label":c?"Collapse":"Expand",children:t(Ja,{})})]}),t(Ka,{style:y,$isCollapsed:c,children:t(es,{ref:m,id:"content-container",children:r})})]})}});export{gs as Accordion};
|
|
364
357
|
//# sourceMappingURL=index.js.map
|