@kroo-web/design-system 1.1.89 → 1.1.90
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/dist/cjs/index.js +1 -1
- package/dist/esm/index.js +1 -1
- package/package.json +1 -1
package/dist/cjs/index.js
CHANGED
|
@@ -56,7 +56,7 @@ object-assign
|
|
|
56
56
|
*
|
|
57
57
|
* This source code is licensed under the MIT license found in the
|
|
58
58
|
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
*/"production"===process.env.NODE_ENV?un.exports=function(){if(an)return cn;an=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case o:case i:case r:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case f:case p:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),cn.ContextConsumer=s,cn.ContextProvider=a,cn.Element=t,cn.ForwardRef=u,cn.Fragment=o,cn.Lazy=f,cn.Memo=p,cn.Portal=n,cn.Profiler=i,cn.StrictMode=r,cn.Suspense=c,cn.SuspenseList=d,cn.isAsyncMode=function(){return!1},cn.isConcurrentMode=function(){return!1},cn.isContextConsumer=function(e){return h(e)===s},cn.isContextProvider=function(e){return h(e)===a},cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},cn.isForwardRef=function(e){return h(e)===u},cn.isFragment=function(e){return h(e)===o},cn.isLazy=function(e){return h(e)===f},cn.isMemo=function(e){return h(e)===p},cn.isPortal=function(e){return h(e)===n},cn.isProfiler=function(e){return h(e)===i},cn.isStrictMode=function(e){return h(e)===r},cn.isSuspense=function(e){return h(e)===c},cn.isSuspenseList=function(e){return h(e)===d},cn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},cn.typeOf=h,cn}():un.exports=(dn||(dn=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case o:case i:case r:case c:case d:return h;default:var g=h&&h.$$typeof;switch(g){case l:case s:case u:case f:case p:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,A=u,b=o,w=f,x=p,E=n,k=i,S=r,C=c,P=d,I=!1,O=!1;pn.ContextConsumer=g,pn.ContextProvider=v,pn.Element=y,pn.ForwardRef=A,pn.Fragment=b,pn.Lazy=w,pn.Memo=x,pn.Portal=E,pn.Profiler=k,pn.StrictMode=S,pn.Suspense=C,pn.SuspenseList=P,pn.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},pn.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},pn.isContextConsumer=function(e){return h(e)===s},pn.isContextProvider=function(e){return h(e)===a},pn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},pn.isForwardRef=function(e){return h(e)===u},pn.isFragment=function(e){return h(e)===o},pn.isLazy=function(e){return h(e)===f},pn.isMemo=function(e){return h(e)===p},pn.isPortal=function(e){return h(e)===n},pn.isProfiler=function(e){return h(e)===i},pn.isStrictMode=function(e){return h(e)===r},pn.isSuspense=function(e){return h(e)===c},pn.isSuspenseList=function(e){return h(e)===d},pn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},pn.typeOf=h}()),pn);var fn=un.exports;const mn=e=>"object"==typeof e&&null!=e&&1===e.nodeType,hn=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,gn=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return hn(n.overflowY,t)||hn(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},vn=(e,t,n,o,r,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-o:a>t&&s<n||i<e&&s>n?a-t+r:0,yn=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var An=0;function bn(e){return"function"==typeof e?e:wn}function wn(){}function xn(e,t){if(e){var n=((e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!mn(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;mn(m)&&d(m);){if(m=yn(m),m===p){f.push(m);break}null!=m&&m===document.body&&gn(m)&&!gn(document.documentElement)||null!=m&&gn(m,c)&&f.push(m)}const h=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,g=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:A,width:b,top:w,right:x,bottom:E,left:k}=e.getBoundingClientRect(),{top:S,right:C,bottom:P,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===s||"nearest"===s?w-S:"end"===s?E+P:w+A/2-S+P,D="center"===l?k+b/2-I+C:"end"===l?x+C:k-I;const T=[];for(let e=0;e<f.length;e++){const t=f[e],{height:n,width:o,top:r,right:i,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===a&&w>=0&&k>=0&&E<=g&&x<=h&&w>=r&&E<=u&&k>=c&&x<=i)return T;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),S=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),P=parseInt(d.borderBottomWidth,10);let I=0,R=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,B="offsetHeight"in t?t.offsetHeight-t.clientHeight-S-P:0,M="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)I="start"===s?O:"end"===s?O-g:"nearest"===s?vn(y,y+g,g,S,P,y+O,y+O+A,A):O-g/2,R="start"===l?D:"center"===l?D-h/2:"end"===l?D-h:vn(v,v+h,h,m,C,v+D,v+D+b,b),I=Math.max(0,I+y),R=Math.max(0,R+v);else{I="start"===s?O-r-S:"end"===s?O-u+P+B:"nearest"===s?vn(r,u,n,S,P+B,O,O+A,A):O-(r+n/2)+B/2,R="start"===l?D-c-m:"center"===l?D-(c+o/2)+N/2:"end"===l?D-i+C+N:vn(c,i,o,m,C+N,D,D+b,b);const{scrollLeft:e,scrollTop:a}=t;I=0===F?0:Math.max(0,Math.min(a+I/F,t.scrollHeight-n/F+B)),R=0===M?0:Math.max(0,Math.min(e+R/M,t.scrollWidth-o/M+N)),O+=a-I,D+=e-R}T.push({el:t,top:I,left:R})}return T})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o}))}}function En(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function kn(e,t){var n;function o(){n&&clearTimeout(n)}function r(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];o(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return r.cancel=o,r}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.some((function(t){return t&&t.apply(void 0,[e].concat(o)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Cn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Pn(){return String(An++)}function In(e){var t=e.isOpen,n=e.resultCount,o=e.previousResultCount;return t?n?n!==o?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function On(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function Dn(e){return"string"==typeof e.type}function Tn(e){return e.props}var Rn=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Nn(e){void 0===e&&(e={});var t={};return Rn.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function Bn(e,t){return e&&t?Object.keys(e).reduce((function(n,o){return n[o]=Mn(t,o)?t[o]:e[o],n}),{}):e}function Mn(e,t){return void 0!==e[t]}function Fn(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Vn(e,t,n,o,r){var i=n.length;if(0===i)return-1;var a=i-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=a:s>a&&(s=0);var l=Ln(s,t<0,n,o,r);return-1===l?e>=i?-1:e:l}function Ln(e,t,n,o,r){void 0===r&&(r=!1);var i=n.length;if(t){for(var a=e;a>=0;a--)if(!o(n[a],a))return a}else for(var s=e;s<i;s++)if(!o(n[s],s))return s;return r?Ln(t?i-1:0,t,n,o):-1}function jn(e,t,n,o){return void 0===o&&(o=!0),n&&t.some((function(t){return t&&(En(t,e,n)||o&&En(t,n.document.activeElement,n))}))}var zn=wn;"production"!==process.env.NODE_ENV&&(zn=function(e,t,n){var o="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach((function(e){void 0!==t[e]&&void 0===n[e]?console.error('downshift: A component has changed the controlled prop "'+e+'" to be uncontrolled. '+o):void 0===t[e]&&void 0!==n[e]&&console.error('downshift: A component has changed the uncontrolled prop "'+e+'" to be controlled. '+o)}))});var Un=kn((function(e){Qn(e).textContent=""}),500);function Qn(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Hn(e,t){e&&t&&(Qn(t).textContent=e,Un(t))}var _n="production"!==process.env.NODE_ENV?"__autocomplete_unknown__":0,qn="production"!==process.env.NODE_ENV?"__autocomplete_mouseup__":1,Kn="production"!==process.env.NODE_ENV?"__autocomplete_item_mouseenter__":2,Wn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_arrow_up__":3,Gn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_arrow_down__":4,Zn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_escape__":5,Xn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_enter__":6,Yn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_home__":7,Jn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_end__":8,$n="production"!==process.env.NODE_ENV?"__autocomplete_click_item__":9,eo="production"!==process.env.NODE_ENV?"__autocomplete_blur_input__":10,to="production"!==process.env.NODE_ENV?"__autocomplete_change_input__":11,no="production"!==process.env.NODE_ENV?"__autocomplete_keydown_space_button__":12,oo="production"!==process.env.NODE_ENV?"__autocomplete_click_button__":13,ro="production"!==process.env.NODE_ENV?"__autocomplete_blur_button__":14,io="production"!==process.env.NODE_ENV?"__autocomplete_controlled_prop_updated_selected_item__":15,ao="production"!==process.env.NODE_ENV?"__autocomplete_touchend__":16,so=Object.freeze({__proto__:null,unknown:_n,mouseUp:qn,itemMouseEnter:Kn,keyDownArrowUp:Wn,keyDownArrowDown:Gn,keyDownEscape:Zn,keyDownEnter:Xn,keyDownHome:Yn,keyDownEnd:Jn,clickItem:$n,blurInput:eo,changeInput:to,keyDownSpaceButton:no,clickButton:oo,blurButton:ro,controlledPropUpdatedSelectedItem:io,touchEnd:ao}),lo=["refKey","ref"],uo=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],co=["onKeyDown","onBlur","onChange","onInput","onChangeText"],po=["refKey","ref"],fo=["onMouseMove","onMouseDown","onClick","onPress","index","item"],mo=function(){var t=function(t){function n(e){var n;(n=t.call(this,e)||this).id=n.props.id||"downshift-"+Pn(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==o})),e()}),t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(e,t){var o=n.getItemNodeFromIndex(t);return o&&o.hasAttribute("disabled")},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=Nn(t),n.internalSetState(Dt({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=Nn(t),n.internalSetState(Dt({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var r=n.items[e];null!=r&&n.selectItem(r,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Dt({},n.getStateAndHelpers(),e)),n.setState((function(t){var s;t=n.getState(t);var l=a?e(t):e;l=n.props.stateReducer(t,l),o=l.hasOwnProperty("selectedItem");var u={};return o&&l.selectedItem!==t.selectedItem&&(r=l.selectedItem),(s=l).type||(s.type=_n),Object.keys(l).forEach((function(e){t[e]!==l[e]&&(i[e]=l[e]),"type"!==e&&(l[e],Mn(n.props,e)||(u[e]=l[e]))})),a&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,Dt({},n.getStateAndHelpers(),l)),u}),(function(){bn(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,r=void 0===e?{}:e,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=Ot(r,lo),u=(void 0===t?{}:t).suppressRefError,c=void 0!==u&&u;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=c;var d=n.getState().isOpen;return Dt(((o={})[a]=Cn(s,n.rootRef),o.role="combobox",o["aria-expanded"]=d,o["aria-haspopup"]="listbox",o["aria-owns"]=d?n.menuId:void 0,o["aria-labelledby"]=n.labelId,o),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:Gn})}else this.internalSetState({isOpen:!0,type:Gn},(function(){var e=t.getItemCount();if(e>0){var n=Vn(t.getState().highlightedIndex,1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:Gn})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:Wn})}else this.internalSetState({isOpen:!0,type:Wn},(function(){var e=t.getItemCount();if(e>0){var n=Vn(t.getState().highlightedIndex,-1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:Wn})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var r=this.items[o],i=this.getItemNodeFromIndex(o);if(null==r||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Xn})}}},Escape:function(e){e.preventDefault(),this.reset(Dt({type:Zn},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=Dt({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:no})}}),n.inputKeyDownHandlers=Dt({},n.keyDownHandlers,{Home:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var o=Ln(0,!1,{length:n},this.isItemDisabled);this.setHighlightedIndex(o,{type:Yn})}}},End:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var o=Ln(n-1,!0,{length:n},this.isItemDisabled);this.setHighlightedIndex(o,{type:Jn})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick;t.onPress;var r=t.onKeyDown,i=t.onKeyUp,a=t.onBlur,s=Ot(t,uo),l=n.getState().isOpen,u={onClick:Sn(o,n.buttonHandleClick),onKeyDown:Sn(r,n.buttonHandleKeyDown),onKeyUp:Sn(i,n.buttonHandleKeyUp),onBlur:Sn(a,n.buttonHandleBlur)};return Dt({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},s.disabled?{}:u,s)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=Fn(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Tt(n),e)},n.buttonHandleClick=function(e){if(e.preventDefault(),n.props.environment){var t=n.props.environment.document,o=t.body,r=t.activeElement;o&&o===r&&e.target.focus()}"test"===process.env.NODE_ENV?n.toggleMenu({type:oo}):n.internalSetTimeout((function(){return n.toggleMenu({type:oo})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){if(!n.isMouseDown&&n.props.environment){var e=n.props.environment.document.activeElement;null!=e&&e.id===n.inputId||e===t||n.reset({type:ro})}}))},n.getLabelProps=function(e){return Dt({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,o=t.onKeyDown,r=t.onBlur,i=t.onChange,a=t.onInput;t.onChangeText;var s=Ot(t,co),l={};var u,c=n.getState(),d=c.inputValue,p=c.isOpen,f=c.highlightedIndex;s.disabled||((u={}).onChange=Sn(i,a,n.inputHandleChange),u.onKeyDown=Sn(o,n.inputHandleKeyDown),u.onBlur=Sn(r,n.inputHandleBlur),l=u);return Dt({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof f&&f>=0?n.getItemId(f):void 0,"aria-controls":p?n.menuId:void 0,"aria-labelledby":s&&s["aria-label"]?void 0:n.labelId,autoComplete:"off",value:d,id:n.inputId},l,s)},n.inputHandleKeyDown=function(e){var t=Fn(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Tt(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:to,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e;if(!n.isMouseDown&&n.props.environment){var t=n.props.environment.document.activeElement;(null==t||null==(e=t.dataset)?void 0:e.toggle)&&n._rootNode&&n._rootNode.contains(t)||n.reset({type:eo})}}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var o,r=void 0===e?{}:e,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=Ot(r,po),u=(void 0===t?{}:t).suppressRefError,c=void 0!==u&&u;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=c,Dt(((o={})[a]=Cn(s,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?void 0:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,r=o.onMouseMove,i=o.onMouseDown,a=o.onClick;o.onPress;var s,l,u=o.index,c=o.item,d=void 0===c?"production"===process.env.NODE_ENV?void 0:(s="getItemProps",l="item",void console.error('The property "'+l+'" is required in "'+s+'"')):c,p=Ot(o,fo);void 0===u?(n.items.push(d),u=n.items.indexOf(d)):n.items[u]=d;var f=a,m=((t={onMouseMove:Sn(r,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:Kn}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:Sn(i,(function(e){e.preventDefault()}))}).onClick=Sn(f,(function(){n.selectItemAtIndex(u,{type:$n})})),t),h=p.disabled?{onMouseDown:m.onMouseDown}:m;return Dt({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},h,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=Nn(e),n.internalSetState((function(t){var o=t.selectedItem;return Dt({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=Nn(e),n.internalSetState((function(t){var o=t.isOpen;return Dt({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var o=n.getState(),r=o.isOpen,i=o.highlightedIndex;r&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),bn(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=kn((function(){var e;if(null!=(e=n.props)&&null!=(e=e.environment)&&e.document){var t=n.getState(),o=n.items[t.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(Dt({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:o},t));n.previousResultCount=r,Hn(i,n.props.environment.document)}}),200);var o=n.props,r=o.defaultHighlightedIndex,i=o.initialHighlightedIndex,a=void 0===i?r:i,s=o.defaultIsOpen,l=o.initialIsOpen,u=void 0===l?s:l,c=o.initialInputValue,d=void 0===c?"":c,p=o.initialSelectedItem,f=void 0===p?null:p,m=n.getState({highlightedIndex:a,isOpen:u,inputValue:d,selectedItem:f});return null!=m.selectedItem&&void 0===n.props.initialInputValue&&(m.inputValue=n.props.itemToString(m.selectedItem)),n.state=m,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rt(e,t)}(n,t);var o=n.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){return void 0===e&&(e=this.state),Bn(e,this.props)},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(e)):null},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount(),o=this.getState().highlightedIndex;if(n>0){var r=Vn(o,e,{length:n},this.isItemDisabled,!0);this.setHighlightedIndex(r,t)}},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,r=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,m=this.closeMenu,h=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,A=this.setHighlightedIndex,b=this.clearSelection,w=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:u,getMenuProps:c,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:m,toggleMenu:h,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:A,clearSelection:b,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:r,selectedItem:o}},o.componentDidMount=function(){var e=this;if("production"!==process.env.NODE_ENV&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ho(this._menuNode,this.getMenuProps),this.props.environment){var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!jn(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:qn},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},i=function(t){var n=jn(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:ao},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",o),a.addEventListener("touchmove",r),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",o),a.removeEventListener("touchmove",r),a.removeEventListener("touchend",i)}}else this.cleanup=function(){e.internalClearTimeouts()}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},o.componentDidUpdate=function(e,t){"production"!==process.env.NODE_ENV&&(zn(this.state,e,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ho(this._menuNode,this.getMenuProps)),Mn(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:io,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var t=On(this.props.children,wn);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var n=On(t(this.getStateAndHelpers()));if(!n)return null;if(this.getRootProps.called||this.props.suppressRefError)return"production"===process.env.NODE_ENV||this.getRootProps.suppressRefError||this.props.suppressRefError||function(e,t){var n=t.refKey,o="ref"!==n,r=!Dn(e);!r||o||fn.isForwardRef(e)?!r&&o&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'):console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");fn.isForwardRef(e)||Tn(e)[n]||console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(n,this.getRootProps),n;if(Dn(n))return e.cloneElement(n,this.getRootProps(Tn(n)));if("production"!==process.env.NODE_ENV)throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n}(e.Component);return t.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:In,itemToString:function(e){return null==e?"":("production"===process.env.NODE_ENV||(t=e,"[object Object]"!==Object.prototype.toString.call(t))||e.hasOwnProperty("toString")||console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",e),String(e));var t},onStateChange:wn,onInputValueChange:wn,onUserAction:wn,onChange:wn,onSelect:wn,onOuterClick:wn,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?void 0:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:xn},t.stateChangeTypes=so,t}();function ho(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}"production"!==process.env.NODE_ENV&&(mo.propTypes={children:ln.func,defaultHighlightedIndex:ln.number,defaultIsOpen:ln.bool,initialHighlightedIndex:ln.number,initialSelectedItem:ln.any,initialInputValue:ln.string,initialIsOpen:ln.bool,getA11yStatusMessage:ln.func,itemToString:ln.func,onChange:ln.func,onSelect:ln.func,onStateChange:ln.func,onInputValueChange:ln.func,onUserAction:ln.func,onOuterClick:ln.func,selectedItemChanged:ln.func,stateReducer:ln.func,itemCount:ln.number,id:ln.string,environment:ln.shape({addEventListener:ln.func.isRequired,removeEventListener:ln.func.isRequired,document:ln.shape({createElement:ln.func.isRequired,getElementById:ln.func.isRequired,activeElement:ln.any.isRequired,body:ln.any.isRequired}).isRequired,Node:ln.func.isRequired}),suppressRefError:ln.bool,scrollIntoView:ln.func,selectedItem:ln.any,isOpen:ln.bool,inputValue:ln.string,highlightedIndex:ln.number,labelId:ln.string,inputId:ln.string,menuId:ln.string,getItemId:ln.func});var go=["highlightedIndex","items","environment"],vo={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function yo(e,t,n){var o=e.props,r=e.type,i={};Object.keys(t).forEach((function(o){!function(e,t,n,o){var r=t.props,i=t.type,a="on"+xo(e)+"Change";r[a]&&void 0!==o[e]&&o[e]!==n[e]&&r[a](Dt({type:i},o))}(o,e,t,n),n[o]!==t[o]&&(i[o]=n[o])})),o.onStateChange&&Object.keys(i).length&&o.onStateChange(Dt({type:r},i))}var Ao=kn((function(e,t){Hn(e(),t)}),200),bo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,wo="useId"in e?function(t){var n=t.id,o=t.labelId,r=t.menuId,i=t.getItemId,a=t.toggleButtonId,s=t.inputId,l="downshift-"+e.useId();n||(n=l);var u=e.useRef({labelId:o||n+"-label",menuId:r||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"});return u.current}:function(t){var n=t.id,o=void 0===n?"downshift-"+Pn():n,r=t.labelId,i=t.menuId,a=t.getItemId,s=t.toggleButtonId,l=t.inputId,u=e.useRef({labelId:r||o+"-label",menuId:i||o+"-menu",getItemId:a||function(e){return o+"-item-"+e},toggleButtonId:s||o+"-toggle-button",inputId:l||o+"-input"});return u.current};function xo(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Eo(t){var n=e.useRef(t);return n.current=t,n}var ko={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:xn,environment:"undefined"==typeof window?void 0:window};function So(e,t,n){void 0===n&&(n=vo);var o=e["default"+xo(t)];return void 0!==o?o:n[t]}function Co(e,t,n){void 0===n&&(n=vo);var o=e[t];if(void 0!==o)return o;var r=e["initial"+xo(t)];return void 0!==r?r:So(e,t,n)}function Po(e,t,n){var o=e.items,r=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,a=e.itemToKey,s=t.selectedItem,l=t.highlightedIndex;return 0===o.length?-1:void 0!==r&&l===r?r:void 0!==i?i:s?o.findIndex((function(e){return a(s)===a(e)})):0===n?-1:n<0?o.length-1:0}var Io=function(){return wn};function Oo(t,n,o){var r=o.highlightedIndex,i=o.items,a=o.environment,s=Ot(o,go),l=No();e.useEffect((function(){!l&&null!=a&&a.document&&Ao((function(){return t(Dt({highlightedIndex:r,highlightedItem:i[r],resultCount:i.length},s))}),a.document)}),n)}"production"!==process.env.NODE_ENV&&(Io=function(){for(var t=e.useRef(!0),n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];var i=e.useRef(o.reduce((function(e,t){return e[t]={},e}),{}));return e.useEffect((function(){Object.keys(i.current).forEach((function(e){var n=i.current[e];if(!t.current||Object.keys(n).length){var o=n.suppressRefError,r=n.refKey,a=n.elementRef;a&&a.current||o||console.error('downshift: The ref prop "'+r+'" from '+e+" was not applied correctly on your element.")}else console.error("downshift: You forgot to call the "+e+" getter function on your component / element.")})),t.current=!1})),e.useCallback((function(e,t,n,o){i.current[e]={suppressRefError:t,refKey:n,elementRef:o}}),[])});var Do=wn;function To(e,t,n){var o;return void 0===n&&(n=!0),Dt({isOpen:!1,highlightedIndex:-1},(null==(o=e.items)?void 0:o.length)&&t>=0&&Dt({selectedItem:e.items[t],isOpen:So(e,"isOpen"),highlightedIndex:So(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Ro(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function No(){var t=e.useRef(!0);return e.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),t.current}"production"!==process.env.NODE_ENV&&(Do=function(t){var n=t.props,o=t.state,r=e.useRef(n),i=No();e.useEffect((function(){i||(zn(o,r.current,n),r.current=n)}),[o,n,i])});var Bo={environment:ln.shape({addEventListener:ln.func.isRequired,removeEventListener:ln.func.isRequired,document:ln.shape({createElement:ln.func.isRequired,getElementById:ln.func.isRequired,activeElement:ln.any.isRequired,body:ln.any.isRequired}).isRequired,Node:ln.func.isRequired}),itemToString:ln.func,itemToKey:ln.func,stateReducer:ln.func},Mo=Dt({},Bo,{getA11yStatusMessage:ln.func,highlightedIndex:ln.number,defaultHighlightedIndex:ln.number,initialHighlightedIndex:ln.number,isOpen:ln.bool,defaultIsOpen:ln.bool,initialIsOpen:ln.bool,selectedItem:ln.any,initialSelectedItem:ln.any,defaultSelectedItem:ln.any,id:ln.string,labelId:ln.string,menuId:ln.string,getItemId:ln.func,toggleButtonId:ln.string,onSelectedItemChange:ln.func,onHighlightedIndexChange:ln.func,onStateChange:ln.func,onIsOpenChange:ln.func,scrollIntoView:ln.func});s(s({},Mo),{items:ln.array.isRequired,isItemDisabled:ln.func,getA11ySelectionMessage:ln.func}),s(s({},ko),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,o=e.previousResultCount;return t?n?n!==o?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""},isItemDisabled:function(){return!1}}),process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Fo="production"!==process.env.NODE_ENV?"__input_keydown_arrow_down__":0,Vo="production"!==process.env.NODE_ENV?"__input_keydown_arrow_up__":1,Lo="production"!==process.env.NODE_ENV?"__input_keydown_escape__":2,jo="production"!==process.env.NODE_ENV?"__input_keydown_home__":3,zo="production"!==process.env.NODE_ENV?"__input_keydown_end__":4,Uo="production"!==process.env.NODE_ENV?"__input_keydown_page_up__":5,Qo="production"!==process.env.NODE_ENV?"__input_keydown_page_down__":6,Ho="production"!==process.env.NODE_ENV?"__input_keydown_enter__":7,_o="production"!==process.env.NODE_ENV?"__input_change__":8,qo="production"!==process.env.NODE_ENV?"__input_blur__":9,Ko="production"!==process.env.NODE_ENV?"__input_click__":10,Wo="production"!==process.env.NODE_ENV?"__menu_mouse_leave__":11,Go="production"!==process.env.NODE_ENV?"__item_mouse_move__":12,Zo="production"!==process.env.NODE_ENV?"__item_click__":13,Xo="production"!==process.env.NODE_ENV?"__togglebutton_click__":14,Yo="production"!==process.env.NODE_ENV?"__function_toggle_menu__":15,Jo="production"!==process.env.NODE_ENV?"__function_open_menu__":16,$o="production"!==process.env.NODE_ENV?"__function_close_menu__":17,er="production"!==process.env.NODE_ENV?"__function_set_highlighted_index__":18,tr="production"!==process.env.NODE_ENV?"__function_select_item__":19,nr="production"!==process.env.NODE_ENV?"__function_set_input_value__":20,or="production"!==process.env.NODE_ENV?"__function_reset__":21,rr="production"!==process.env.NODE_ENV?"__controlled_prop_updated_selected_item__":22,ir=Object.freeze({__proto__:null,InputKeyDownArrowDown:Fo,InputKeyDownArrowUp:Vo,InputKeyDownEscape:Lo,InputKeyDownHome:jo,InputKeyDownEnd:zo,InputKeyDownPageUp:Uo,InputKeyDownPageDown:Qo,InputKeyDownEnter:Ho,InputChange:_o,InputBlur:qo,InputClick:Ko,MenuMouseLeave:Wo,ItemMouseMove:Go,ItemClick:Zo,ToggleButtonClick:Xo,FunctionToggleMenu:Yo,FunctionOpenMenu:Jo,FunctionCloseMenu:$o,FunctionSetHighlightedIndex:er,FunctionSelectItem:tr,FunctionSetInputValue:nr,FunctionReset:or,ControlledPropUpdatedSelectedItem:rr});function ar(e){var t=function(e){var t=Co(e,"selectedItem"),n=Co(e,"isOpen"),o=Co(e,"highlightedIndex"),r=Co(e,"inputValue");return{highlightedIndex:o<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):o,isOpen:n,selectedItem:t,inputValue:r}}(e),n=t.selectedItem,o=t.inputValue;return""===o&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(o=e.itemToString(n)),Dt({},t,{inputValue:o})}var sr=Dt({},Mo,{items:ln.array.isRequired,isItemDisabled:ln.func,selectedItemChanged:ln.func,getA11ySelectionMessage:ln.func,inputValue:ln.string,defaultInputValue:ln.string,initialInputValue:ln.string,inputId:ln.string,onInputValueChange:ln.func});function lr(t,n,o,r){var i=e.useRef(),a=function(t,n,o,r){var i=e.useRef(),a=e.useRef(),s=e.useCallback((function(e,n){a.current=n,e=Bn(e,n.props);var o=t(e,n);return n.props.stateReducer(e,Dt({},n,{changes:o}))}),[t]),l=e.useReducer(s,n,o),u=l[0],c=l[1],d=Eo(n),p=e.useCallback((function(e){return c(Dt({props:d.current},e))}),[d]),f=a.current;return e.useEffect((function(){var e=Bn(i.current,null==f?void 0:f.props);f&&i.current&&!r(e,u)&&yo(f,e,u),i.current=u}),[u,f,r]),[u,p]}(t,n,o,r),s=a[0],l=a[1],u=No();return e.useEffect((function(){if(Mn(n,"selectedItem")){var e;if(!u)void 0===n.selectedItemChanged?e=n.itemToKey(n.selectedItem)!==n.itemToKey(i.current):(console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'),e=n.selectedItemChanged(i.current,n.selectedItem)),e&&l({type:rr,inputValue:n.itemToString(n.selectedItem)});i.current=s.selectedItem===i.current?n.selectedItem:s.selectedItem}}),[s.selectedItem,n.selectedItem]),[Bn(s,n),l]}var ur=wn;"production"!==process.env.NODE_ENV&&(ur=function(e,t){ln.checkPropTypes(sr,e,"prop",t.name)});var cr=Dt({},ko,{getA11yStatusMessage:In,isItemDisabled:function(){return!1}});function dr(e,t){var n,o,r=t.type,i=t.props,a=t.altKey;switch(r){case Zo:o={isOpen:So(i,"isOpen"),highlightedIndex:So(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Fo:o=e.isOpen?{highlightedIndex:Vn(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:a&&null==e.selectedItem?-1:Po(i,e,1),isOpen:i.items.length>=0};break;case Vo:o=e.isOpen?a?To(i,e.highlightedIndex):{highlightedIndex:Vn(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:Po(i,e,-1),isOpen:i.items.length>=0};break;case Ho:o=To(i,e.highlightedIndex);break;case Lo:o=Dt({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Uo:o={highlightedIndex:Vn(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case Qo:o={highlightedIndex:Vn(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case jo:o={highlightedIndex:Ln(0,!1,i.items,i.isItemDisabled)};break;case zo:o={highlightedIndex:Ln(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case qo:o=Dt({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=i.items)?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case _o:o={isOpen:!0,highlightedIndex:So(i,"highlightedIndex"),inputValue:t.inputValue};break;case Ko:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Po(i,e,0)};break;case tr:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case rr:o={inputValue:t.inputValue};break;default:return function(e,t,n){var o,r=t.type,i=t.props;switch(r){case n.ItemMouseMove:o={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:o={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Po(i,e,0)};break;case n.FunctionOpenMenu:o={isOpen:!0,highlightedIndex:Po(i,e,0)};break;case n.FunctionCloseMenu:o={isOpen:!1};break;case n.FunctionSetHighlightedIndex:o={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:o={inputValue:t.inputValue};break;case n.FunctionReset:o={highlightedIndex:So(i,"highlightedIndex"),isOpen:So(i,"isOpen"),selectedItem:So(i,"selectedItem"),inputValue:So(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Dt({},e,o)}(e,t,ir)}return Dt({},e,o)}var pr=["onMouseLeave","refKey","ref"],fr=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],mr=["onClick","onPress","refKey","ref"],hr=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function gr(t){void 0===t&&(t={}),ur(t,gr);var n=Dt({},cr,t),o=n.items,r=n.scrollIntoView,i=n.environment,a=n.getA11yStatusMessage,s=n.getA11ySelectionMessage,l=n.itemToString,u=lr(dr,n,ar,Ro),c=u[0],d=u[1],p=c.isOpen,f=c.highlightedIndex,m=c.selectedItem,h=c.inputValue,g=e.useRef(null),v=e.useRef({}),y=e.useRef(null),A=e.useRef(null),b=No(),w=wo(n),x=e.useRef(),E=Eo({state:c,props:n}),k=e.useCallback((function(e){return v.current[w.getItemId(e)]}),[w]);Oo(a,[p,f,h,o],Dt({previousResultCount:x.current,items:o,environment:i,itemToString:l},c)),Oo(s,[m],Dt({previousResultCount:x.current,items:o,environment:i,itemToString:l},c));var S=function(t){var n=t.highlightedIndex,o=t.isOpen,r=t.itemRefs,i=t.getItemNodeFromIndex,a=t.menuElement,s=t.scrollIntoView,l=e.useRef(!0);return bo((function(){n<0||!o||!Object.keys(r.current).length||(!1===l.current?l.current=!0:s(i(n),a))}),[n]),l}({menuElement:g.current,highlightedIndex:f,isOpen:p,itemRefs:v,scrollIntoView:r,getItemNodeFromIndex:k});Do({props:n,state:c}),e.useEffect((function(){Co(n,"isOpen")&&y.current&&y.current.focus()}),[]),e.useEffect((function(){b||(x.current=o.length)}));var C=function(t,n,o){var r=e.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return e.useEffect((function(){if(!t)return wn;var e=n.map((function(e){return e.current}));function i(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function a(n){r.current.isMouseDown=!1,jn(n.target,e,t)||o()}function s(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function l(){r.current.isTouchMove=!0}function u(n){r.current.isTouchEnd=!0,r.current.isTouchMove||jn(n.target,e,t,!1)||o()}return t.addEventListener("mousedown",i),t.addEventListener("mouseup",a),t.addEventListener("touchstart",s),t.addEventListener("touchmove",l),t.addEventListener("touchend",u),function(){t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",a),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",u)}}),[t,o]),r.current}(i,[A,g,y],e.useCallback((function(){E.current.state.isOpen&&d({type:qo,selectItem:!1})}),[d,E])),P=Io("getInputProps","getMenuProps");e.useEffect((function(){p||(v.current={})}),[p]),e.useEffect((function(){var e;p&&null!=i&&i.document&&null!=y&&null!=(e=y.current)&&e.focus&&i.document.activeElement!==y.current&&y.current.focus()}),[p,i]);var I=e.useMemo((function(){return{ArrowDown:function(e){e.preventDefault(),d({type:Fo,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),d({type:Vo,altKey:e.altKey})},Home:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:jo}))},End:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:zo}))},Escape:function(e){var t=E.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),d({type:Lo}))},Enter:function(e){E.current.state.isOpen&&229!==e.which&&(e.preventDefault(),d({type:Ho}))},PageUp:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:Uo}))},PageDown:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:Qo}))}}}),[d,E]),O=e.useCallback((function(e){return Dt({id:w.labelId,htmlFor:w.inputId},e)}),[w]),D=e.useCallback((function(e,t){var n,o=void 0===e?{}:e,r=o.onMouseLeave,i=o.refKey,a=void 0===i?"ref":i,s=o.ref,l=Ot(o,pr),u=(void 0===t?{}:t).suppressRefError;return P("getMenuProps",void 0!==u&&u,a,g),Dt(((n={})[a]=Cn(s,(function(e){g.current=e})),n.id=w.menuId,n.role="listbox",n["aria-labelledby"]=l&&l["aria-label"]?void 0:""+w.labelId,n.onMouseLeave=Sn(r,(function(){d({type:Wo})})),n),l)}),[d,P,w]),T=e.useCallback((function(e){var t,n,o=void 0===e?{}:e,r=o.item,i=o.index,a=o.refKey,s=void 0===a?"ref":a,l=o.ref,u=o.onMouseMove,c=o.onMouseDown,p=o.onClick;o.onPress;var f=o.disabled,m=Ot(o,fr);void 0!==f&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var h=E.current,g=h.props,y=h.state,A=function(e,t,n,o){var r,i;if(void 0===e){if(void 0===t)throw new Error(o);r=n[t],i=t}else i=void 0===t?n.indexOf(e):t,r=e;return[r,i]}(r,i,g.items,"Pass either item or index to getItemProps!"),b=A[0],x=A[1],k=g.isItemDisabled(b,x),P=p;return Dt(((t={})[s]=Cn(l,(function(e){e&&(v.current[w.getItemId(x)]=e)})),t["aria-disabled"]=k,t["aria-selected"]=""+(x===y.highlightedIndex),t.id=w.getItemId(x),t.role="option",t),!k&&((n={}).onClick=Sn(P,(function(){d({type:Zo,index:x})})),n),{onMouseMove:Sn(u,(function(){C.isTouchEnd||x===y.highlightedIndex||(S.current=!1,d({type:Go,index:x,disabled:k}))})),onMouseDown:Sn(c,(function(e){return e.preventDefault()}))},m)}),[d,w,E,C,S]),R=e.useCallback((function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var r=n.refKey,i=void 0===r?"ref":r,a=n.ref,s=Ot(n,mr),l=E.current.state;return Dt(((t={})[i]=Cn(a,(function(e){A.current=e})),t["aria-controls"]=w.menuId,t["aria-expanded"]=l.isOpen,t.id=w.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&Dt({},{onClick:Sn(o,(function(){d({type:Xo})}))}),s)}),[d,E,w]),N=e.useCallback((function(e,t){var n,o=void 0===e?{}:e,r=o.onKeyDown,a=o.onChange,s=o.onInput,l=o.onBlur;o.onChangeText;var u=o.onClick,c=o.refKey,p=void 0===c?"ref":c,f=o.ref,m=Ot(o,hr),h=(void 0===t?{}:t).suppressRefError;P("getInputProps",void 0!==h&&h,p,y);var g,v=E.current.state,A={};m.disabled||((g={}).onChange=Sn(a,s,(function(e){d({type:_o,inputValue:e.target.value})})),g.onKeyDown=Sn(r,(function(e){var t=Fn(e);t&&I[t]&&I[t](e)})),g.onBlur=Sn(l,(function(e){if(null!=i&&i.document&&v.isOpen&&!C.isMouseDown){var t=null===e.relatedTarget&&i.document.activeElement!==i.document.body;d({type:qo,selectItem:!t})}})),g.onClick=Sn(u,(function(){d({type:Ko})})),A=g);return Dt(((n={})[p]=Cn(f,(function(e){y.current=e})),n["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?w.getItemId(v.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=w.menuId,n["aria-expanded"]=v.isOpen,n["aria-labelledby"]=m&&m["aria-label"]?void 0:w.labelId,n.autoComplete="off",n.id=w.inputId,n.role="combobox",n.value=v.inputValue,n),A,m)}),[d,w,i,I,E,C,P]),B=e.useCallback((function(){d({type:Yo})}),[d]),M=e.useCallback((function(){d({type:$o})}),[d]),F=e.useCallback((function(){d({type:Jo})}),[d]),V=e.useCallback((function(e){d({type:er,highlightedIndex:e})}),[d]),L=e.useCallback((function(e){d({type:tr,selectedItem:e})}),[d]);return{getItemProps:T,getLabelProps:O,getMenuProps:D,getInputProps:N,getToggleButtonProps:R,toggleMenu:B,openMenu:F,closeMenu:M,setHighlightedIndex:V,setInputValue:e.useCallback((function(e){d({type:nr,inputValue:e})}),[d]),selectItem:L,reset:e.useCallback((function(){d({type:or})}),[d]),highlightedIndex:f,isOpen:p,selectedItem:m,inputValue:h}}gr.stateChangeTypes=ir,Dt({},Bo,{selectedItems:ln.array,initialSelectedItems:ln.array,defaultSelectedItems:ln.array,getA11yRemovalMessage:ln.func,activeIndex:ln.number,initialActiveIndex:ln.number,defaultActiveIndex:ln.number,onActiveIndexChange:ln.func,onSelectedItemsChange:ln.func,keyNavigationNext:ln.string,keyNavigationPrevious:ln.string}),process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const vr=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),yr=e.createContext({}),Ar=e.createContext(null),br="undefined"!=typeof window,wr=br?e.useLayoutEffect:e.useEffect,xr=e.createContext({strict:!1}),Er=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kr="data-"+Er("framerAppearId"),Sr=!1;const Cr=["read","resolveKeyframes","update","preRender","render","postRender"];function Pr(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Cr.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,o=!1,r=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,r=!1,a=!1)=>{const s=a&&o?t:n;return r&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,o?r=!0:(o=!0,[t,n]=[n,t],n.clear(),t.forEach(s),o=!1,r&&(r=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=a,f=()=>{const i=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,s.process(r),l.process(r),u.process(r),c.process(r),d.process(r),p.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(f))};return{schedule:Cr.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,o=!0,r.isProcessing||e(f)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<Cr.length;t++)a[Cr[t]].cancel(e)},state:r,steps:a}}const{schedule:Ir,cancel:Or}=Pr(queueMicrotask,!1);function Dr(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const Tr=e.createContext({});let Rr=!1;function Nr(t,n,o,r,i){const{visualElement:a}=e.useContext(yr),s=e.useContext(xr),l=e.useContext(Ar),u=e.useContext(vr).reducedMotion,c=e.useRef();r=r||s.renderer,!c.current&&r&&(c.current=r(t,{visualState:n,parent:a,props:o,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));const d=c.current,p=e.useContext(Tr);!d||d.projection||!i||"html"!==d.type&&"svg"!==d.type||function(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Mr(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:Boolean(a)||s&&Dr(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}(c.current,o,i,p),e.useInsertionEffect((()=>{d&&d.update(o,l)}));const f=e.useRef(Boolean(o[kr]&&!window.HandoffComplete));return wr((()=>{d&&(d.updateFeatures(),Ir.render(d.render),f.current&&d.animationState&&d.animationState.animateChanges())})),e.useEffect((()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(f.current=!1,Rr||(Rr=!0,queueMicrotask(Br))))})),d}function Br(){window.HandoffComplete=!0}function Mr(e){if(e)return!1!==e.options.allowProjection?e.projection:Mr(e.parent)}function Fr(t,n,o){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),o&&("function"==typeof o?o(e):Dr(o)&&(o.current=e))}),[n])}function Vr(e){return"string"==typeof e||Array.isArray(e)}function Lr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const jr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...jr];function Ur(e){return Lr(e.animate)||zr.some((t=>Vr(e[t])))}function Qr(e){return Boolean(Ur(e)||e.variants)}function Hr(t){const{initial:n,animate:o}=function(e,t){if(Ur(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Vr(t)?t:void 0,animate:Vr(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(yr));return e.useMemo((()=>({initial:n,animate:o})),[_r(n),_r(o)])}function _r(e){return Array.isArray(e)?e.join(" "):e}const qr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kr={};for(const e in qr)Kr[e]={isEnabled:t=>qr[e].some((e=>!!t[e]))};const Wr=e.createContext({}),Gr=Symbol.for("motionComponentSymbol"),Zr=e=>e;let Xr=Zr,Yr=Zr;function Jr({preloadedFeatures:n,createVisualElement:o,useRender:r,useVisualState:i,Component:a}){n&&function(e){for(const t in e)Kr[t]={...Kr[t],...e[t]}}(n);const s=e.forwardRef((function(s,l){let u;const c={...e.useContext(vr),...s,layoutId:$r(s)},{isStatic:d}=c,p=Hr(s),f=i(s,d);if(!d&&br){!function(t,n){const o=e.useContext(xr).strict;if("production"!==process.env.NODE_ENV&&n&&o){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Xr(!1,e):Yr(!1,e)}}(c,n);const t=function(e){const{drag:t,layout:n}=Kr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(c);u=t.MeasureLayout,p.visualElement=Nr(a,f,c,o,t.ProjectionNode)}return t.jsxs(yr.Provider,{value:p,children:[u&&p.visualElement?t.jsx(u,{visualElement:p.visualElement,...c}):null,r(a,s,Fr(f,p.visualElement,l),f,d,p.visualElement)]})}));return s[Gr]=a,s}function $r({layoutId:t}){const n=e.useContext(Wr).id;return n&&void 0!==t?n+"-"+t:t}function ei(e){function t(t,n={}){return Jr(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}"production"!==process.env.NODE_ENV&&(Xr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Yr=(e,t)=>{if(!e)throw new Error(t)});const ti=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ni(e){return"string"==typeof e&&!e.includes("-")&&!!(ti.indexOf(e)>-1||/[A-Z]/u.test(e))}const oi={};const ri=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ii=new Set(ri);function ai(e,{layout:t,layoutId:n}){return ii.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!oi[e]||"opacity"===e)}const si=e=>Boolean(e&&e.getVelocity),li=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ui=(e,t,n)=>n>t?t:n<e?e:n,ci={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},di={...ci,transform:e=>ui(0,1,e)},pi={...ci,default:1},fi=e=>Math.round(1e5*e)/1e5,mi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,hi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,gi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function vi(e){return"string"==typeof e}const yi=e=>({test:t=>vi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ai=yi("deg"),bi=yi("%"),wi=yi("px"),xi=yi("vh"),Ei=yi("vw"),ki={...bi,parse:e=>bi.parse(e)/100,transform:e=>bi.transform(100*e)},Si={...ci,transform:Math.round},Ci={borderWidth:wi,borderTopWidth:wi,borderRightWidth:wi,borderBottomWidth:wi,borderLeftWidth:wi,borderRadius:wi,radius:wi,borderTopLeftRadius:wi,borderTopRightRadius:wi,borderBottomRightRadius:wi,borderBottomLeftRadius:wi,width:wi,maxWidth:wi,height:wi,maxHeight:wi,size:wi,top:wi,right:wi,bottom:wi,left:wi,padding:wi,paddingTop:wi,paddingRight:wi,paddingBottom:wi,paddingLeft:wi,margin:wi,marginTop:wi,marginRight:wi,marginBottom:wi,marginLeft:wi,rotate:Ai,rotateX:Ai,rotateY:Ai,rotateZ:Ai,scale:pi,scaleX:pi,scaleY:pi,scaleZ:pi,skew:Ai,skewX:Ai,skewY:Ai,distance:wi,translateX:wi,translateY:wi,translateZ:wi,x:wi,y:wi,z:wi,perspective:wi,transformPerspective:wi,opacity:di,originX:ki,originY:ki,originZ:wi,zIndex:Si,backgroundPositionX:wi,backgroundPositionY:wi,fillOpacity:di,strokeOpacity:di,numOctaves:Si},Pi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ii=ri.length;const Oi=e=>t=>"string"==typeof t&&t.startsWith(e),Di=Oi("--"),Ti=Oi("var(--"),Ri=e=>!!Ti(e)&&Ni.test(e.split("/*")[0].trim()),Ni=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bi(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(ii.has(e))a=!0;else if(Di(e))r[e]=n;else{const t=li(n,Ci[e]);e.startsWith("origin")?(s=!0,i[e]=t):o[e]=t}}if(t.transform||(a||n?o.transform=function(e,t,n){let o="",r=!0;for(let i=0;i<Ii;i++){const a=ri[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=li(s,Ci[a]);l||(r=!1,o+=`${Pi[a]||a}(${e}) `),n&&(t[a]=e)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}(t,e.transform,n):o.transform&&(o.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;o.transformOrigin=`${e} ${t} ${n}`}}const Mi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fi(e,t,n){for(const o in t)si(t[o])||ai(o,n)||(e[o]=t[o])}function Vi(t,n){const o={};return Fi(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n){return e.useMemo((()=>{const e=Mi();return Bi(e,n,t),Object.assign({},e.vars,e.style)}),[n])}(t,n)),o}function Li(e,t){const n={},o=Vi(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const ji=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function zi(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ji.has(e)}let Ui=e=>!zi(e);try{(Qi=require("@emotion/is-prop-valid").default)&&(Ui=e=>e.startsWith("on")?!zi(e):Qi(e))}catch(e){}var Qi;function Hi(e,t,n){return"string"==typeof e?e:wi.transform(t+n*e)}const _i={offset:"stroke-dashoffset",array:"stroke-dasharray"},qi={offset:"strokeDashoffset",array:"strokeDasharray"};function Ki(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(Bi(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${Hi(t,e.x,e.width)} ${Hi(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==o&&(p.scale=o),void 0!==a&&function(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?_i:qi;e[i.offset]=wi.transform(-o);const a=wi.transform(t),s=wi.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const Wi=()=>({...Mi(),attrs:{}}),Gi=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Zi(t,n,o,r){const i=e.useMemo((()=>{const e=Wi();return Ki(e,n,Gi(r),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};Fi(e,t.style,t),i.style={...e,...i.style}}return i}function Xi(t=!1){return(n,o,r,{latestValues:i},a)=>{const s=(ni(n)?Zi:Li)(o,i,a,n),l=function(e,t,n){const o={};for(const r in e)"values"===r&&"object"==typeof e.values||(Ui(r)||!0===n&&zi(r)||!t&&!zi(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}(o,"string"==typeof n,t),u=n!==e.Fragment?{...l,...s,ref:r}:{},{children:c}=o,d=e.useMemo((()=>si(c)?c.get():c),[c]);return e.createElement(n,{...u,children:d})}}function Yi(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const t in n)e.style.setProperty(t,n[t])}const Ji=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $i(e,t,n,o){Yi(e,t,void 0,o);for(const n in t.attrs)e.setAttribute(Ji.has(n)?n:Er(n),t.attrs[n])}function ea(e,t,n){var o;const{style:r}=e,i={};for(const a in r)(si(r[a])||t.style&&si(t.style[a])||ai(a,e)||void 0!==(null===(o=null==n?void 0:n.getValue(a))||void 0===o?void 0:o.liveStyle))&&(i[a]=r[a]);return n&&r&&"string"==typeof r.willChange&&(n.applyWillChange=!1),i}function ta(e,t,n){const o=ea(e,t,n);for(const n in e)if(si(e[n])||si(t[n])){o[-1!==ri.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return o}function na(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function oa(e,t,n,o){if("function"==typeof t){const[r,i]=na(o);t=t(void 0!==n?n:e.custom,r,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[r,i]=na(o);t=t(void 0!==n?n:e.custom,r,i)}return t}const ra=e=>Array.isArray(e),ia=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),aa=e=>ra(e)?e[e.length-1]||0:e;function sa(e){const t=si(e)?e.get():e;return ia(t)?t.toValue():t}const la=new Set(["opacity","clipPath","filter","transform"]);function ua(e){return ii.has(e)?"transform":la.has(e)?Er(e):void 0}function ca(e,t){-1===e.indexOf(t)&&e.push(t)}function da(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const pa=t=>(n,o)=>{const r=e.useContext(yr),i=e.useContext(Ar),a=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:o},r,i,a,s){const l={latestValues:ha(r,i,a,!s&&e,t),renderState:n()};return o&&(l.mount=e=>o(r,e,l)),l}(t,n,r,i,o);return o?a():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(a)};function fa(e,t){const n=ua(t);n&&ca(e,n)}function ma(e,t,n){const o=Array.isArray(t)?t:[t];for(let t=0;t<o.length;t++){const r=oa(e,o[t]);if(r){const{transitionEnd:e,transition:t,...o}=r;n(o,e)}}}function ha(e,t,n,o,r){var i;const a={},s=[],l=o&&void 0===(null===(i=e.style)||void 0===i?void 0:i.willChange),u=r(e,{});for(const e in u)a[e]=sa(u[e]);let{initial:c,animate:d}=e;const p=Ur(e),f=Qr(e);t&&f&&!p&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===d&&(d=t.animate));let m=!!n&&!1===n.initial;m=m||!1===c;const h=m?d:c;return h&&"boolean"!=typeof h&&!Lr(h)&&ma(e,h,((e,t)=>{for(const t in e){let n=e[t];if(Array.isArray(n)){n=n[m?n.length-1:0]}null!==n&&(a[t]=n)}for(const e in t)a[e]=t[e]})),l&&(d&&!1!==c&&!Lr(d)&&ma(e,d,(e=>{for(const t in e)fa(s,t)})),s.length&&(a.willChange=s.join(","))),a}const{schedule:ga,cancel:va,state:ya,steps:Aa}=Pr("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Zr,!0),ba={useVisualState:pa({scrapeMotionValuesFromProps:ta,createRenderState:Wi,onMount:(e,t,{renderState:n,latestValues:o})=>{ga.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),ga.render((()=>{Ki(n,o,Gi(t.tagName),e.transformTemplate),$i(t,n)}))}})},wa={useVisualState:pa({applyWillChange:!0,scrapeMotionValuesFromProps:ea,createRenderState:Mi})};function xa(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const Ea=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ka(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Sa=e=>t=>Ea(t)&&e(t,ka(t));function Ca(e,t,n,o){return xa(e,t,Sa(n),o)}const Pa=(e,t)=>n=>t(e(n)),Ia=(...e)=>e.reduce(Pa);function Oa(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Da=Oa("dragHorizontal"),Ta=Oa("dragVertical");function Ra(e){let t=!1;if("y"===e)t=Ta();else if("x"===e)t=Da();else{const e=Da(),n=Ta();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Na(){const e=Ra(!0);return!e||(e(),!1)}class Ba{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ma(e,t){const n=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd";return Ca(e.current,n,((n,r)=>{if("touch"===n.pointerType||Na())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[o];a&&ga.postRender((()=>a(n,r)))}),{passive:!e.getProps()[o]})}const Fa=(e,t)=>!!t&&(e===t||Fa(e,t.parentElement));function Va(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ka(n))}const La=new WeakMap,ja=new WeakMap,za=e=>{const t=La.get(e.target);t&&t(e)},Ua=e=>{e.forEach(za)};function Qa(e,t,n){const o=function({root:e,...t}){const n=e||document;ja.has(n)||ja.set(n,{});const o=ja.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(Ua,{root:e,...t})),o[r]}(t);return La.set(e,n),o.observe(e),()=>{La.delete(e),o.unobserve(e)}}const Ha={some:0,all:1};const _a={inView:{Feature:class extends Ba{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:o="some",once:r}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:Ha[o]};return Qa(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=t?n:o;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ba{constructor(){super(...arguments),this.removeStartListeners=Zr,this.removeEndListeners=Zr,this.removeAccessibleListeners=Zr,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Ca(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:o,globalTapTarget:r}=this.node.getProps(),i=r||Fa(this.node.current,e.target)?n:o;i&&ga.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),r=Ca(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ia(o,r),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=xa(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=xa(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Va("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&ga.postRender((()=>n(e,t)))}))})),Va("down",((e,t)=>{this.startPress(e,t)}))})),t=xa(this.node.current,"blur",(()=>{this.isPressing&&Va("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ia(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ga.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Na()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ga.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Ca(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=xa(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ia(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ba{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ia(xa(this.node.current,"focus",(()=>this.onFocus())),xa(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ba{mount(){this.unmount=Ia(Ma(this.node,!0),Ma(this.node,!1))}unmount(){}}}};function qa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}function Ka(e,t,n){const o=e.getProps();return oa(o,t,void 0!==n?n:o.custom,e)}const Wa=e=>1e3*e,Ga=e=>e/1e3,Za={type:"spring",stiffness:500,damping:25,restSpeed:10},Xa={type:"keyframes",duration:.8},Ya={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ja=(e,{keyframes:t})=>t.length>2?Xa:ii.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Za:Ya;function $a(e,t){return e[t]||e.default||e}const es=e=>null!==e;function ts(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(es),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return i&&void 0!==o?o:r[i]}let ns;function os(){ns=void 0}const rs={now:()=>(void 0===ns&&rs.set(ya.isProcessing||Sr?ya.timestamp:performance.now()),ns),set:e=>{ns=e,queueMicrotask(os)}},is=e=>/^0[^.\s]+$/u.test(e);const as=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ss=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ls(e,t,n=1){Yr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=function(e){const t=ss.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${null!=n?n:o}`,r]}(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const e=i.trim();return as(e)?parseFloat(e):e}return Ri(r)?ls(r,t,n+1):r}const us=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cs=e=>e===ci||e===wi,ds=(e,t)=>parseFloat(e.split(", ")[t]),ps=(e,t)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return ds(r[1],t);{const t=o.match(/^matrix\((.+)\)$/u);return t?ds(t[1],e):0}},fs=new Set(["x","y","z"]),ms=ri.filter((e=>!fs.has(e)));const hs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ps(4,13),y:ps(5,14)};hs.translateX=hs.x,hs.translateY=hs.y;const gs=e=>t=>t.test(e),vs=[ci,wi,bi,Ai,Ei,xi,{test:e=>"auto"===e,parse:e=>e}],ys=e=>vs.find(gs(e)),As=new Set;let bs=!1,ws=!1;function xs(){if(ws){const e=Array.from(As).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return ms.forEach((n=>{const o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var o;null===(o=e.getValue(t))||void 0===o||o.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}ws=!1,bs=!1,As.forEach((e=>e.complete())),As.clear()}function Es(){As.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(ws=!0)}))}class ks{constructor(e,t,n,o,r,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=o,this.element=r,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(As.add(this),bs||(bs=!0,ga.read(Es),ga.resolveKeyframes(xs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:o}=this;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){const r=null==o?void 0:o.get(),i=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){const o=n.readValue(t,i);null!=o&&(e[0]=o)}void 0===e[0]&&(e[0]=i),o&&void 0===r&&o.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),As.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,As.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ss=(e,t)=>n=>Boolean(vi(n)&&gi.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Cs=(e,t,n)=>o=>{if(!vi(o))return o;const[r,i,a,s]=o.match(mi);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ps={...ci,transform:e=>Math.round((e=>ui(0,255,e))(e))},Is={test:Ss("rgb","red"),parse:Cs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ps.transform(e)+", "+Ps.transform(t)+", "+Ps.transform(n)+", "+fi(di.transform(o))+")"};const Os={test:Ss("#"),parse:function(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:Is.transform},Ds={test:Ss("hsl","hue"),parse:Cs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+bi.transform(fi(t))+", "+bi.transform(fi(n))+", "+fi(di.transform(o))+")"},Ts={test:e=>Is.test(e)||Os.test(e)||Ds.test(e),parse:e=>Is.test(e)?Is.parse(e):Ds.test(e)?Ds.parse(e):Os.parse(e),transform:e=>vi(e)?e:e.hasOwnProperty("red")?Is.transform(e):Ds.transform(e)};const Rs="number",Ns="color",Bs="var",Ms="var(",Fs="${}",Vs=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ls(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Vs,(e=>(Ts.test(e)?(o.color.push(i),r.push(Ns),n.push(Ts.parse(e))):e.startsWith(Ms)?(o.var.push(i),r.push(Bs),n.push(e)):(o.number.push(i),r.push(Rs),n.push(parseFloat(e))),++i,Fs))).split(Fs);return{values:n,split:a,indexes:o,types:r}}function js(e){return Ls(e).values}function zs(e){const{split:t,types:n}=Ls(e),o=t.length;return e=>{let r="";for(let i=0;i<o;i++)if(r+=t[i],void 0!==e[i]){const t=n[i];r+=t===Rs?fi(e[i]):t===Ns?Ts.transform(e[i]):e[i]}return r}}const Us=e=>"number"==typeof e?0:e;const Qs={test:function(e){var t,n;return isNaN(e)&&vi(e)&&((null===(t=e.match(mi))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(hi))||void 0===n?void 0:n.length)||0)>0},parse:js,createTransformer:zs,getAnimatableNone:function(e){const t=js(e);return zs(e)(t.map(Us))}},Hs=new Set(["brightness","contrast","saturate","opacity"]);function _s(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=n.match(mi)||[];if(!o)return e;const r=n.replace(o,"");let i=Hs.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const qs=/\b([a-z-]*)\(.*?\)/gu,Ks={...Qs,getAnimatableNone:e=>{const t=e.match(qs);return t?t.map(_s).join(" "):e}},Ws={...Ci,color:Ts,backgroundColor:Ts,outlineColor:Ts,fill:Ts,stroke:Ts,borderColor:Ts,borderTopColor:Ts,borderRightColor:Ts,borderBottomColor:Ts,borderLeftColor:Ts,filter:Ks,WebkitFilter:Ks},Gs=e=>Ws[e];function Zs(e,t){let n=Gs(e);return n!==Ks&&(n=Qs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xs=new Set(["auto","none","0"]);class Ys extends ks{constructor(e,t,n,o){super(e,t,n,o,null==o?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let o=e[n];if("string"==typeof o&&(o=o.trim(),Ri(o))){const r=ls(o,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!us.has(n)||2!==e.length)return;const[o,r]=e,i=ys(o),a=ys(r);if(i!==a)if(cs(i)&&cs(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(o=e[t])?0===o:null===o||"none"===o||"0"===o||is(o))&&n.push(t);var o;n.length&&function(e,t,n){let o,r=0;for(;r<e.length&&!o;){const t=e[r];"string"==typeof t&&!Xs.has(t)&&Ls(t).values.length&&(o=e[r]),r++}if(o&&n)for(const r of t)e[r]=Zs(n,o)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hs[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const o=t[t.length-1];void 0!==o&&e.getValue(n,o).jump(o,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=hs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function Js(e){let t;return()=>(void 0===t&&(t=e()),t)}const $s=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Qs.test(e)&&"0"!==e||e.startsWith("url(")));class el{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:o,repeatDelay:r,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(Es(),xs()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:r,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,o){const r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=$s(r,t),s=$s(i,t);return Xr(a===s,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&o)}(e,n,o,r)){if(!i)return null==s||s(ts(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function tl(e,t){return t?e*(1e3/t):0}const nl=5;function ol(e,t,n){const o=Math.max(t-nl,0);return tl(n-e(o),t-o)}const rl=.001,il=.01,al=10,sl=.05,ll=1;function ul({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,i;Xr(e<=Wa(al),"Spring duration must be 10 seconds or less");let a=1-t;a=ui(sl,ll,a),e=ui(il,al,Ga(e)),a<1?(r=t=>{const o=t*a,r=o*e,i=o-n,s=dl(t,a),l=Math.exp(-r);return rl-i/s*l},i=t=>{const o=t*a*e,i=o*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=dl(Math.pow(t,2),a);return(-r(t)+rl>0?-1:1)*((i-s)*l)/u}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-rl,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let o=n;for(let n=1;n<cl;n++)o-=e(o)/t(o);return o}(r,i,5/e);if(e=Wa(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:e}}}const cl=12;function dl(e,t){return e*Math.sqrt(1-t*t)}const pl=["duration","bounce"],fl=["stiffness","damping","mass"];function ml(e,t){return t.some((t=>void 0!==e[t]))}function hl({keyframes:e,restDelta:t,restSpeed:n,...o}){const r=e[0],i=e[e.length-1],a={done:!1,value:r},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ml(e,fl)&&ml(e,pl)){const n=ul(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-Ga(o.velocity||0)}),f=d||0,m=l/(2*Math.sqrt(s*u)),h=i-r,g=Ga(Math.sqrt(s/u)),v=Math.abs(h)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=dl(g,m);y=t=>{const n=Math.exp(-m*g*t);return i-n*((f+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)y=e=>i-Math.exp(-g*e)*(h+(f+g*h)*e);else{const e=g*Math.sqrt(m*m-1);y=t=>{const n=Math.exp(-m*g*t),o=Math.min(e*t,300);return i-n*((f+m*g*h)*Math.sinh(o)+e*h*Math.cosh(o))/e}}return{calculatedDuration:p&&c||null,next:e=>{const o=y(e);if(p)a.done=e>=c;else{let r=f;0!==e&&(r=m<1?ol(y,e,o):0);const s=Math.abs(r)<=n,l=Math.abs(i-o)<=t;a.done=s&&l}return a.value=a.done?i:o,a}}}function gl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/o),y=e=>g+v(e),A=e=>{const t=v(e),n=y(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let b,w;const x=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(b=e,w=hl({keyframes:[p.value,f(p.value)],velocity:ol(y,e,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,A(e),x(e)),void 0!==b&&e>=b?w.next(e-b):(!t&&A(e),p)}}}const vl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yl=1e-7,Al=12;function bl(e,t,n,o){if(e===t&&n===o)return Zr;const r=t=>function(e,t,n,o,r){let i,a,s=0;do{a=t+(n-t)/2,i=vl(a,o,r)-e,i>0?n=a:t=a}while(Math.abs(i)>yl&&++s<Al);return a}(t,0,1,e,n);return e=>0===e||1===e?e:vl(r(e),t,o)}const wl=bl(.42,0,1,1),xl=bl(0,0,.58,1),El=bl(.42,0,.58,1),kl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sl=e=>t=>1-e(1-t),Cl=e=>1-Math.sin(Math.acos(e)),Pl=Sl(Cl),Il=kl(Cl),Ol=bl(.33,1.53,.69,.99),Dl=Sl(Ol),Tl=kl(Dl),Rl={linear:Zr,easeIn:wl,easeInOut:El,easeOut:xl,circIn:Cl,circInOut:Il,circOut:Pl,backIn:Dl,backInOut:Tl,backOut:Ol,anticipate:e=>(e*=2)<1?.5*Dl(e):.5*(2-Math.pow(2,-10*(e-1)))},Nl=e=>{if(Array.isArray(e)){Yr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return bl(t,n,o,r)}return"string"==typeof e?(Yr(void 0!==Rl[e],`Invalid easing type '${e}'`),Rl[e]):e},Bl=(e,t,n)=>{const o=t-e;return 0===o?1:(n-e)/o},Ml=(e,t,n)=>e+(t-e)*n;function Fl(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 Vl(e,t){return n=>n>0?t:e}const Ll=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},jl=[Os,Is,Ds];function zl(e){const t=(e=>jl.find((t=>t.test(e))))(e);if(Xr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Ds&&(n=function({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let r=0,i=0,a=0;if(t/=100){const o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Fl(s,o,e+1/3),i=Fl(s,o,e),a=Fl(s,o,e-1/3)}else r=i=a=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*a),alpha:o}}(n)),n}const Ul=(e,t)=>{const n=zl(e),o=zl(t);if(!n||!o)return Vl(e,t);const r={...n};return e=>(r.red=Ll(n.red,o.red,e),r.green=Ll(n.green,o.green,e),r.blue=Ll(n.blue,o.blue,e),r.alpha=Ml(n.alpha,o.alpha,e),Is.transform(r))},Ql=new Set(["none","hidden"]);function Hl(e,t){return n=>Ml(e,t,n)}function _l(e){return"number"==typeof e?Hl:"string"==typeof e?Ri(e)?Vl:Ts.test(e)?Ul:Wl:Array.isArray(e)?ql:"object"==typeof e?Ts.test(e)?Ul:Kl:Vl}function ql(e,t){const n=[...e],o=n.length,r=e.map(((e,n)=>_l(e)(e,t[n])));return e=>{for(let t=0;t<o;t++)n[t]=r[t](e);return n}}function Kl(e,t){const n={...e,...t},o={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(o[r]=_l(e[r])(e[r],t[r]));return e=>{for(const t in o)n[t]=o[t](e);return n}}const Wl=(e,t)=>{const n=Qs.createTransformer(t),o=Ls(e),r=Ls(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Ql.has(e)&&!r.values.length||Ql.has(t)&&!o.values.length?function(e,t){return Ql.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Ia(ql(function(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;o[i]=l,r[a]++}return o}(o,r),r.values),n):(Xr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Vl(e,t))};function Gl(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Ml(e,t,n);return _l(e)(e,t)}function Zl(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Yr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const o=[],r=n||Gl,i=e.length-1;for(let n=0;n<i;n++){let i=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Zr:t;i=Ia(e,i)}o.push(i)}return o}(t,o,r),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const o=Bl(e[n],e[n+1],t);return a[n](o)};return n?t=>l(ui(e[0],e[i-1],t)):l}function Xl(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=Bl(0,t,o);e.push(Ml(n,1,r))}}(t,e.length-1),t}function Yl({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(o)?o.map(Nl):Nl(o),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Xl(t),e),s=Zl(a,t,{ease:Array.isArray(r)?r:(l=t,u=r,l.map((()=>u||El)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Jl=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ga.update(t,!0),stop:()=>va(t),now:()=>ya.isProcessing?ya.timestamp:rs.now()}},$l={decay:gl,inertia:gl,tween:Yl,keyframes:Yl,spring:hl},eu=e=>e/100;class tu extends el{constructor({KeyframeResolver:e=ks,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:n,motionValue:o,keyframes:r}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(r,i,n,o):this.resolver=new e(r,i,n,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r,velocity:i=0}=this.options,a=$l[t]||Yl;let s,l;a!==Yl&&"number"!=typeof e[0]&&("production"!==process.env.NODE_ENV&&Yr(2===e.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),s=Ia(eu,Gl(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===r&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));const{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-o}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:o,generator:r,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return r.next(0);const{delay:d,repeat:p,repeatType:f,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,A=r;if(p){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===f?(n=1-n,m&&(n-=m/c)):"mirror"===f&&(A=i)),y=ui(0,1,n)*c}const b=v?{done:!1,value:s[0]}:A.next(y);a&&(b.value=a(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&void 0!==o&&(b.value=ts(s,this.options,o)),h&&h(b.value),x&&this.finish(),b}get duration(){const{resolved:e}=this;return e?Ga(e.calculatedDuration):0}get time(){return Ga(this.currentTime)}set time(e){e=Wa(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ga(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Jl,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const nu=e=>Array.isArray(e)&&"number"==typeof e[0];function ou(e){return Boolean(!e||"string"==typeof e&&e in iu||nu(e)||Array.isArray(e)&&e.every(ou))}const ru=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,iu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ru([0,.65,.55,1]),circOut:ru([.55,0,1,.45]),backIn:ru([.31,.01,.66,-.59]),backOut:ru([.33,1.53,.69,.99])};function au(e){return su(e)||iu.easeOut}function su(e){return e?nu(e)?ru(e):Array.isArray(e)?e.map(au):iu[e]:void 0}const lu=Js((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class uu extends el{constructor(e){super(e);const{name:t,motionValue:n,keyframes:o}=this.options;this.resolver=new Ys(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:o=300,times:r,ease:i,type:a,motionValue:s,name:l}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||!ou(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:s,...l}=this.options,u=function(e,t){const n=new tu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let i=0;for(;!o.done&&i<2e4;)o=n.sample(i),r.push(o.value),i+=10;return{times:void 0,keyframes:r,duration:i-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,r=u.times,i=u.ease,a="keyframes"}const u=function(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=su(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:o,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:o,times:r,ease:i});return u.startTime=rs.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(ts(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:r,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Ga(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Ga(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Wa(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Zr;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Zr}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:o,type:r,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new tu({...l,keyframes:n,duration:o,type:r,ease:i,times:a,isGenerator:!0}),c=Wa(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;return lu()&&n&&la.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!o&&"mirror"!==r&&0!==i&&"inertia"!==a}}const cu=Js((()=>void 0!==window.ScrollTimeline));class du{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!cu()||!t.attachTimeline)return t.pause(),function(e,t){let n;const o=()=>{const{currentTime:o}=t,r=(null===o?0:o.value)/100;n!==r&&e(r),n=r};return ga.update(o,!0),()=>va(o)}((e=>{t.time=t.duration*e}),e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const pu=(e,t,n,o={},r,i,a)=>s=>{const l=$a(o,e)||{},u=l.delay||o.delay||0;let{elapsed:c=0}=o;c-=Wa(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),a&&a()},onStop:a,name:e,motionValue:t,element:i?void 0:r};(function({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(l)||(d={...d,...Ja(e,d)}),d.duration&&(d.duration=Wa(d.duration)),d.repeatDelay&&(d.repeatDelay=Wa(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(p=!0)),p&&!i&&void 0!==t.get()){const e=ts(d.keyframes,l);if(void 0!==e)return ga.update((()=>{d.onUpdate(e),d.onComplete()})),new du([])}return!i&&uu.supports(d)?new uu(d):new tu(d)};class fu{constructor(){this.subscriptions=[]}add(e){return ca(this.subscriptions,e),()=>da(this.subscriptions,e)}notify(e,t,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(let r=0;r<o;r++){const o=this.subscriptions[r];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mu=new Set;function hu(e,t,n){e||mu.has(t)||(console.warn(t),mu.add(t))}class gu{constructor(e,t={}){this.version="11.3.21",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=rs.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=rs.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&hu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new fu);const n=this.events[e].add(t);return"change"===e?()=>{n(),ga.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=rs.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vu(e,t){return new gu(e,t)}function yu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vu(n))}function Au(e){return e.getProps()[kr]}class bu extends gu{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=ua(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let o=!1;return()=>{if(o)return;o=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(da(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function wu(e,t){var n;if(!e.applyWillChange)return;let o=e.getValue("willChange");return o||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(o=new bu("auto"),e.addValue("willChange",o)),r=o,Boolean(si(r)&&r.add)?o.add(t):void 0;var r}function xu({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,o}function Eu(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;o&&(a=o);const u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const t in l){const o=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),r=l[t];if(void 0===r||c&&xu(c,t))continue;const s={delay:n,elapsed:0,...$a(a||{},t)};let d=!1;if(window.HandoffAppearAnimations){const n=Au(e);if(n){const e=window.HandoffAppearAnimations(n,t,o,ga);null!==e&&(s.elapsed=e,d=!0)}}o.start(pu(t,o,r,e.shouldReduceMotion&&ii.has(t)?{type:!1}:s,e,d,wu(e,t)));const p=o.animation;p&&u.push(p)}return s&&Promise.all(u).then((()=>{ga.update((()=>{s&&function(e,t){const n=Ka(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const t in i)yu(e,t,aa(i[t]))}(e,s)}))})),u}function ku(e,t,n={}){var o;const r=Ka(e,t,"exit"===n.type?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Eu(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,o=0,r=1,i){const a=[],s=(e.variantChildren.size-1)*o,l=1===r?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(Su).forEach(((e,o)=>{e.notify("AnimationStart",t),a.push(ku(e,t,{...i,delay:n+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,r+o,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function Su(e,t){return e.sortNodePosition(t)}const Cu=[...jr].reverse(),Pu=jr.length;function Iu(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map((t=>ku(e,t,n)));o=Promise.all(r)}else if("string"==typeof t)o=ku(e,t,n);else{const r="function"==typeof t?Ka(e,t,n.custom):t;o=Promise.all(Eu(e,r,n))}return o.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function Ou(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!qa(t,e)}function Du(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tu(){return{animate:Du(!0),whileInView:Du(),whileHover:Du(),whileTap:Du(),whileDrag:Du(),whileFocus:Du(),exit:Du()}}let Ru=0;const Nu={animation:{Feature:class extends Ba{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=Iu(e),n=Tu(),o=!0;const r=t=>(n,o)=>{var r;const i=Ka(e,o,"exit"===t?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);if(i){const{transition:e,transitionEnd:t,...o}=i;n={...n,...o,...t}}return n};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<Pu;t++){const p=Cu[t],f=n[p],m=void 0!==a[p]?a[p]:s[p],h=Vr(m),g=p===i?f.isActive:null;!1===g&&(d=t);let v=m===s[p]&&m!==a[p]&&h;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...c},!f.isActive&&null===g||!m&&!f.prevProp||Lr(m)||"boolean"==typeof m)continue;let y=Ou(f.prevProp,m)||p===i&&f.isActive&&!v&&h||t>d&&h,A=!1;const b=Array.isArray(m)?m:[m];let w=b.reduce(r(p),{});!1===g&&(w={});const{prevResolvedValues:x={}}=f,E={...x,...w},k=t=>{y=!0,u.has(t)&&(A=!0,u.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=w[e],n=x[e];if(c.hasOwnProperty(e))continue;let o=!1;o=ra(t)&&ra(n)?!qa(t,n):t!==n,o?null!=t?k(e):u.add(e):void 0!==t&&u.has(e)?k(e):f.protectedKeys[e]=!0}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(c={...c,...w}),o&&e.blockInitialAnimation&&(y=!1),!y||v&&!A||l.push(...b.map((e=>({animation:e,options:{type:p}}))))}if(u.size){const t={};u.forEach((n=>{const o=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=o?o:null})),l.push({animation:t})}let p=Boolean(l.length);return!o||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),o=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,o){var r;if(n[t].isActive===o)return Promise.resolve();null===(r=e.variantChildren)||void 0===r||r.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,o)})),n[t].isActive=o;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Tu(),o=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Lr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Ba{constructor(){super(...arguments),this.id=Ru++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Bu=(e,t)=>Math.abs(e-t);class Mu{constructor(e,t,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Lu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Bu(e.x,t.x),o=Bu(e.y,t.y);return Math.sqrt(n**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:o}=e,{timestamp:r}=ya;this.history.push({...o,timestamp:r});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Fu(t,this.transformPagePoint),ga.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Lu("pointercancel"===e.type?this.lastMoveEventInfo:Fu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),o&&o(e,i)},!Ea(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=o||window;const i=Fu(ka(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=ya;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Lu(i,this.history)),this.removeListeners=Ia(Ca(this.contextWindow,"pointermove",this.handlePointerMove),Ca(this.contextWindow,"pointerup",this.handlePointerUp),Ca(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),va(this.updatePoint)}}function Fu(e,t){return t?{point:t(e.point)}:e}function Vu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lu({point:e},t){return{point:e,delta:Vu(e,zu(t)),offset:Vu(e,ju(t)),velocity:Uu(t,.1)}}function ju(e){return e[0]}function zu(e){return e[e.length-1]}function Uu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=zu(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Wa(t)));)n--;if(!o)return{x:0,y:0};const i=Ga(r.timestamp-o.timestamp);if(0===i)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const Qu=.9999,Hu=1.0001,_u=-.01,qu=.01;function Ku(e){return e.max-e.min}function Wu(e,t,n,o=.5){e.origin=o,e.originPoint=Ml(t.min,t.max,e.origin),e.scale=Ku(n)/Ku(t),e.translate=Ml(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Qu&&e.scale<=Hu||isNaN(e.scale))&&(e.scale=1),(e.translate>=_u&&e.translate<=qu||isNaN(e.translate))&&(e.translate=0)}function Gu(e,t,n,o){Wu(e.x,t.x,n.x,o?o.originX:void 0),Wu(e.y,t.y,n.y,o?o.originY:void 0)}function Zu(e,t,n){e.min=n.min+t.min,e.max=e.min+Ku(t)}function Xu(e,t,n){e.min=t.min-n.min,e.max=e.min+Ku(t)}function Yu(e,t,n){Xu(e.x,t.x,n.x),Xu(e.y,t.y,n.y)}function Ju(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function $u(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}const ec=.35;function tc(e,t,n){return{min:nc(e,t),max:nc(e,n)}}function nc(e,t){return"number"==typeof e?e:e[t]||0}const oc=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),rc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ic(e){return[e("x"),e("y")]}function ac({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function sc(e){return void 0===e||1===e}function lc({scale:e,scaleX:t,scaleY:n}){return!sc(e)||!sc(t)||!sc(n)}function uc(e){return lc(e)||cc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cc(e){return dc(e.x)||dc(e.y)}function dc(e){return e&&"0%"!==e}function pc(e,t,n){return n+t*(e-n)}function fc(e,t,n,o,r){return void 0!==r&&(e=pc(e,r,o)),pc(e,n,o)+t}function mc(e,t=0,n=1,o,r){e.min=fc(e.min,t,n,o,r),e.max=fc(e.max,t,n,o,r)}function hc(e,{x:t,y:n}){mc(e.x,t.translate,t.scale,t.originPoint),mc(e.y,n.translate,n.scale,n.originPoint)}const gc=.999999999999,vc=1.0000000000001;function yc(e,t){e.min=e.min+t,e.max=e.max+t}function Ac(e,t,n,o,r=.5){mc(e,t,n,Ml(e.min,e.max,r),o)}function bc(e,t){Ac(e.x,t.x,t.scaleX,t.scale,t.originX),Ac(e.y,t.y,t.scaleY,t.scale,t.originY)}function wc(e,t){return ac(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const xc=({current:e})=>e?e.ownerDocument.defaultView:null,Ec=new WeakMap;class kc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rc(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Mu(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ka(e,"page").point)},onStart:(e,t)=>{var n;const{drag:o,dragPropagation:r,onDragStart:i}=this.getProps();if(o&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ra(o),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ic((e=>{let t=this.getAxisMotionValue(e).get()||0;if(bi.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[e];if(o){t=Ku(o)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&ga.postRender((()=>i(e,t))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=wu(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(o&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ic((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:xc(this.visualElement)})}stop(e,t){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&ga.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:o}=this.getProps();if(!n||!Sc(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},o){return void 0!==t&&e<t?e=o?Ml(t,e,o.min):Math.max(e,t):void 0!==n&&e>n&&(e=o?Ml(n,e,o.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),r.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,r=this.constraints;t&&Dr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!o)&&function(e,{top:t,left:n,bottom:o,right:r}){return{x:Ju(e.x,n,r),y:Ju(e.y,t,o)}}(o.layoutBox,t),this.elastic=function(e=ec){return!1===e?e=0:!0===e&&(e=ec),{x:tc(e,"left","right"),y:tc(e,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ic((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Dr(e))return!1;const n=e.current;Yr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=function(e,t,n){const o=wc(e,n),{scroll:r}=t;return r&&(yc(o.x,r.offset.x),yc(o.y,r.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:$u(e.x,t.x),y:$u(e.y,t.y)}}(o.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ac(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ic((a=>{if(!Sc(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(pu(e,n,0,t,this.visualElement,!1,wu(this.visualElement,e)))}stopAnimation(){ic((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){ic((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),o=n[t];return o||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ic((t=>{const{drag:n}=this.getProps();if(!Sc(t,n,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(t);if(o&&o.layout){const{min:n,max:i}=o.layout.layoutBox[t];r.set(e[t]-Ml(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Dr(t)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ic((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();o[e]=function(e,t){let n=.5;const o=Ku(e),r=Ku(t);return r>o?n=Bl(t.min,t.max-o,e.min):o>r&&(n=Bl(e.min,e.max-r,t.min)),ui(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ic((t=>{if(!Sc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:i}=this.constraints[t];n.set(Ml(r,i,o[t]))}))}addListeners(){if(!this.visualElement.current)return;Ec.set(this.visualElement,this);const e=Ca(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Dr(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ga.read(t);const r=xa(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ic((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{r(),e(),o(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=ec,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:a}}}function Sc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Cc=e=>(t,n)=>{e&&ga.postRender((()=>e(t,n)))};const Pc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ic(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!wi.test(e))return e;e=parseFloat(e)}return`${Ic(e,t.target.x)}% ${Ic(e,t.target.y)}%`}},Dc={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Qs.parse(e);if(r.length>5)return o;const i=Qs.createTransformer(e),a="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=l;const u=Ml(s,l,.5);return"number"==typeof r[2+a]&&(r[2+a]/=u),"number"==typeof r[3+a]&&(r[3+a]/=u),i(r)}};class Tc extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=e;var i;i=Nc,Object.assign(oi,i),r&&(t.group&&t.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Pc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:o,isPresent:r}=this.props,i=n.projection;return i?(i.isPresent=r,o||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?i.promote():i.relegate()||ga.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ir.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Rc(n){const[o,r]=function(){const t=e.useContext(Ar);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=e.useId();e.useEffect((()=>r(i)),[]);const a=e.useCallback((()=>o&&o(i)),[i,o]);return!n&&o?[!1,a]:[!0]}(),i=e.useContext(Wr);return t.jsx(Tc,{...n,layoutGroup:i,switchLayoutGroup:e.useContext(Tr),isPresent:o,safeToRemove:r})}const Nc={borderRadius:{...Oc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oc,borderTopRightRadius:Oc,borderBottomLeftRadius:Oc,borderBottomRightRadius:Oc,boxShadow:Dc},Bc=["TopLeft","TopRight","BottomLeft","BottomRight"],Mc=Bc.length,Fc=e=>"string"==typeof e?parseFloat(e):e,Vc=e=>"number"==typeof e||wi.test(e);function Lc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const jc=Uc(0,.5,Pl),zc=Uc(.5,.95,Zr);function Uc(e,t,n){return o=>o<e?0:o>t?1:n(Bl(e,t,o))}function Qc(e,t){e.min=t.min,e.max=t.max}function Hc(e,t){Qc(e.x,t.x),Qc(e.y,t.y)}function _c(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qc(e,t,n,o,r){return e=pc(e-=t,1/n,o),void 0!==r&&(e=pc(e,1/r,o)),e}function Kc(e,t,[n,o,r],i,a){!function(e,t=0,n=1,o=.5,r,i=e,a=e){bi.test(t)&&(t=parseFloat(t),t=Ml(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ml(i.min,i.max,o);e===i&&(s-=t),e.min=qc(e.min,t,n,s,r),e.max=qc(e.max,t,n,s,r)}(e,t[n],t[o],t[r],t.scale,i,a)}const Wc=["x","scaleX","originX"],Gc=["y","scaleY","originY"];function Zc(e,t,n,o){Kc(e.x,t,Wc,n?n.x:void 0,o?o.x:void 0),Kc(e.y,t,Gc,n?n.y:void 0,o?o.y:void 0)}function Xc(e){return 0===e.translate&&1===e.scale}function Yc(e){return Xc(e.x)&&Xc(e.y)}function Jc(e,t){return e.min===t.min&&e.max===t.max}function $c(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ed(e,t){return $c(e.x,t.x)&&$c(e.y,t.y)}function td(e){return Ku(e.x)/Ku(e.y)}function nd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class od{constructor(){this.members=[]}add(e){ca(this.members,e),e.scheduleRender()}remove(e){if(da(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const rd=(e,t)=>e.depth-t.depth;class id{constructor(){this.children=[],this.isDirty=!1}add(e){ca(this.children,e),this.isDirty=!0}remove(e){da(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rd),this.isDirty=!1,this.children.forEach(e)}}const ad={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sd="undefined"!=typeof window&&void 0!==window.MotionDebug,ld=["","X","Y","Z"],ud={visibility:"hidden"};let cd=0;function dd(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function pd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return!!t&&(!!Au(t)||!(!e.parent||e.parent.hasCheckedOptimisedAppear)&&pd(e.parent))}function fd({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=cd++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sd&&(ad.totalNodes=ad.resolvedTargetDeltas=ad.recalculatedProjection=0),this.nodes.forEach(gd),this.nodes.forEach(Ed),this.nodes.forEach(kd),this.nodes.forEach(vd),sd&&window.MotionDebug.record(ad)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new id)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new fu),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=rs.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(va(o),e(i-t))};return ga.read(o,!0),()=>va(o)}(o,250),Pc.hasAnimatedSinceResize&&(Pc.hasAnimatedSinceResize=!1,this.nodes.forEach(xd))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||a.getDefaultTransition()||Dd,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!ed(this.targetLayout,o)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...$a(r,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||xd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,va(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Sd),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&pd(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ad);this.isUpdating||this.nodes.forEach(bd),this.isUpdating=!1,this.nodes.forEach(wd),this.nodes.forEach(md),this.nodes.forEach(hd),this.clearAllSnapshots();const e=rs.now();ya.delta=ui(0,1e3/60,e-ya.timestamp),ya.timestamp=e,ya.isProcessing=!0,Aa.update.process(ya),Aa.preRender.process(ya),Aa.render.process(ya),ya.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ir.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yd),this.sharedNodes.forEach(Cd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ga.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ga.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Yc(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;e&&(t||uc(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var o;return e&&(n=this.removeTransform(n)),Nd((o=n).x),Nd(o.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return rc();const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Md))){const{scroll:e}=this.root;e&&(yc(n.x,e.offset.x),yc(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=rc();if(Hc(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const o=this.path[t],{scroll:r,options:i}=o;o!==this.root&&r&&i.layoutScroll&&(r.wasRoot&&Hc(n,e),yc(n.x,r.offset.x),yc(n.y,r.offset.y))}return n}applyTransform(e,t=!1){const n=rc();Hc(n,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bc(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),uc(o.latestValues)&&bc(n,o.latestValues)}return uc(this.latestValues)&&bc(n,this.latestValues),n}removeTransform(e){const t=rc();Hc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!uc(n.latestValues))continue;lc(n.latestValues)&&n.updateSnapshot();const o=rc();Hc(o,n.measurePageBox()),Zc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,o)}return uc(this.latestValues)&&Zc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ya.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=ya.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rc(),this.relativeTargetOrigin=rc(),Yu(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Hc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=rc(),this.targetWithTransforms=rc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Zu(a.x,s.x,l.x),Zu(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Hc(this.target,this.layout.layoutBox),hc(this.target,this.targetDelta)):Hc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rc(),this.relativeTargetOrigin=rc(),Yu(this.relativeTargetOrigin,this.target,e.target),Hc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sd&&ad.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!lc(this.parent.latestValues)&&!cc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===ya.timestamp&&(o=!1),o)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;Hc(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,o=!1){const r=n.length;if(!r)return;let i,a;t.x=t.y=1;for(let s=0;s<r;s++){i=n[s],a=i.projectionDelta;const{visualElement:r}=i.options;r&&r.props.style&&"contents"===r.props.style.display||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&bc(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,hc(e,a)),o&&uc(i.latestValues)&&bc(e,i.latestValues))}t.x<vc&&t.x>gc&&(t.x=1),t.y<vc&&t.y>gc&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=rc());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(_c(this.prevProjectionDelta.x,this.projectionDelta.x),_c(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Gu(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&nd(this.projectionDelta.x,this.prevProjectionDelta.x)&&nd(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sd&&ad.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=oc(),this.projectionDelta=oc(),this.projectionDeltaWithTransform=oc()}setAnimationOrigin(e,t=!1){const n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},i=oc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=rc(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Od));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p,f,m,h,g;Pd(i.x,e.x,n),Pd(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yu(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,h=a,g=n,Id(f.x,m.x,h.x,g),Id(f.y,m.y,h.y,g),d&&(l=this.relativeTarget,p=d,Jc(l.x,p.x)&&Jc(l.y,p.y))&&(this.isProjectionDirty=!1),d||(d=rc()),Hc(d,this.relativeTarget)),s&&(this.animationValues=r,function(e,t,n,o,r,i){r?(e.opacity=Ml(0,void 0!==n.opacity?n.opacity:1,jc(o)),e.opacityExit=Ml(void 0!==t.opacity?t.opacity:1,0,zc(o))):i&&(e.opacity=Ml(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let r=0;r<Mc;r++){const i=`border${Bc[r]}Radius`;let a=Lc(t,i),s=Lc(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Vc(a)===Vc(s)?(e[i]=Math.max(Ml(Fc(a),Fc(s),o),0),(bi.test(s)||bi.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Ml(t.rotate||0,n.rotate||0,o))}(r,o,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(va(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ga.update((()=>{Pc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const o=si(e)?e:vu(e);return o.start(pu("",o,t,n)),o.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:o,latestValues:r}=e;if(t&&n&&o){if(this!==e&&this.layout&&o&&Bd(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||rc();const t=Ku(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const o=Ku(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+o}Hc(t,n),bc(t,r),Gu(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new od);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const o={};n.z&&dd("z",e,o,this.animationValues);for(let t=0;t<ld.length;t++)dd(`rotate${ld[t]}`,e,o,this.animationValues),dd(`skew${ld[t]}`,e,o,this.animationValues);e.render();for(const t in o)e.setStaticValue(t,o[t]),this.animationValues&&(this.animationValues[t]=o[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ud;const o={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=sa(null==e?void 0:e.pointerEvents)||"",o.transform=r?r(this.latestValues,""):"none",o;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=sa(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!uc(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),o.transform=function(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:r,rotateY:i,skewX:a,skewY:s}=n;e&&(o=`perspective(${e}px) ${o}`),t&&(o+=`rotate(${t}deg) `),r&&(o+=`rotateX(${r}deg) `),i&&(o+=`rotateY(${i}deg) `),a&&(o+=`skewX(${a}deg) `),s&&(o+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(o+=`scale(${s}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),r&&(o.transform=r(a,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?o.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in oi){if(void 0===a[e])continue;const{correct:t,applyTo:n}=oi[e],r="none"===o.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)o[n[t]]=r}else o[e]=r}return this.options.layoutId&&(o.pointerEvents=i===this?sa(null==e?void 0:e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Ad),this.root.sharedNodes.clear()}}}function md(e){e.updateLayout()}function hd(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:o}=e.layout,{animationType:r}=e.options,i=n.source!==e.layout.source;"size"===r?ic((e=>{const o=i?n.measuredBox[e]:n.layoutBox[e],r=Ku(o);o.min=t[e].min,o.max=o.min+r})):Bd(r,n.layoutBox,t)&&ic((o=>{const r=i?n.measuredBox[o]:n.layoutBox[o],a=Ku(t[o]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+a)}));const a=oc();Gu(a,t,n.layoutBox);const s=oc();i?Gu(s,e.applyTransform(o,!0),n.measuredBox):Gu(s,t,n.layoutBox);const l=!Yc(a);let u=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:r,layout:i}=o;if(r&&i){const a=rc();Yu(a,n.layoutBox,r.layoutBox);const s=rc();Yu(s,t,i.layoutBox),ed(a,s)||(u=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gd(e){sd&&ad.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yd(e){e.clearSnapshot()}function Ad(e){e.clearMeasurements()}function bd(e){e.isLayoutDirty=!1}function wd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ed(e){e.resolveTargetDelta()}function kd(e){e.calcProjection()}function Sd(e){e.resetSkewAndRotation()}function Cd(e){e.removeLeadSnapshot()}function Pd(e,t,n){e.translate=Ml(t.translate,0,n),e.scale=Ml(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Id(e,t,n,o){e.min=Ml(t.min,n.min,o),e.max=Ml(t.max,n.max,o)}function Od(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Dd={duration:.45,ease:[.4,0,.1,1]},Td=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rd=Td("applewebkit/")&&!Td("chrome/")?Math.round:Zr;function Nd(e){e.min=Rd(e.min),e.max=Rd(e.max)}function Bd(e,t,n){return"position"===e||"preserve-aspect"===e&&(o=td(t),r=td(n),i=.2,!(Math.abs(o-r)<=i));var o,r,i}function Md(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Fd=fd({attachResizeListener:(e,t)=>xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vd={current:void 0},Ld=fd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vd.current){const e=new Fd({});e.mount(window),e.setOptions({layoutScroll:!0}),Vd.current=e}return Vd.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),jd={pan:{Feature:class extends Ba{constructor(){super(...arguments),this.removePointerDownListener=Zr}onPointerDown(e){this.session=new Mu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Cc(e),onStart:Cc(t),onMove:n,onEnd:(e,t)=>{delete this.session,o&&ga.postRender((()=>o(e,t)))}}}mount(){this.removePointerDownListener=Ca(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ba{constructor(e){super(e),this.removeGroupControls=Zr,this.removeListeners=Zr,this.controls=new kc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ld,MeasureLayout:Rc}},zd={current:null},Ud={current:!1};const Qd=new WeakMap,Hd=[...vs,Ts,Qs],_d=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qd=zr.length;class Kd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:r,visualState:i},a={}){this.applyWillChange=!1,this.resolveKeyframes=(e,t,n,o)=>new this.KeyframeResolver(e,t,n,o,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ks,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,ga.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=Ur(t),this.isVariantNode=Qr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==s[e]&&si(t)&&t.set(s[e],!1)}}mount(e){this.current=e,Qd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ud.current||function(){if(Ud.current=!0,br)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zd.current=e.matches;e.addListener(t),t()}else zd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||zd.current),"production"!==process.env.NODE_ENV&&hu(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qd.delete(this.current),this.projection&&this.projection.unmount(),va(this.notifyUpdate),va(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){const n=ii.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ga.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{o(),r(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Kr){const t=Kr[e];if(!t)continue;const{isEnabled:n,Feature:o}=t;if(!this.features[e]&&o&&n(this.props)&&(this.features[e]=new o(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<_d.length;t++){const n=_d[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=e["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(e,t,n){for(const o in t){const r=t[o],i=n[o];if(si(r))e.addValue(o,r),"development"===process.env.NODE_ENV&&hu("11.3.21"===r.version,`Attempting to mix Framer Motion versions ${r.version} with 11.3.21 may not work as expected.`);else if(si(i))e.addValue(o,vu(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{const t=e.getStaticValue(o);e.addValue(o,vu(void 0!==t?t:r,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<qd;e++){const n=zr[e],o=this.props[n];(Vr(o)||!1===o)&&(t[n]=o)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=vu(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let o=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=o&&("string"==typeof o&&(as(o)||is(o))?o=parseFloat(o):!(e=>Hd.find(gs(e)))(o)&&Qs.test(t)&&(o=Zs(e,t)),this.setBaseTarget(e,si(o)?o.get():o)),si(o)?o.get():o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let o;if("string"==typeof n||"object"==typeof n){const r=oa(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);r&&(o=r[e])}if(n&&void 0!==o)return o;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||si(r)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new fu),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Wd extends Kd{constructor(){super(...arguments),this.KeyframeResolver=Ys}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Gd extends Wd{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Yi}readValueFromInstance(e,t){if(ii.has(t)){const e=Gs(t);return e&&e.default||0}{const o=(n=e,window.getComputedStyle(n)),r=(Di(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return wc(e,t)}build(e,t,n){Bi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ea(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;si(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Zd extends Wd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rc}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ii.has(t)){const e=Gs(t);return e&&e.default||0}return t=Ji.has(t)?t:Er(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ta(e,t,n)}build(e,t,n){Ki(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,o){$i(e,t,0,o)}mount(e){this.isSVGTag=Gi(e.tagName),super.mount(e)}}const Xd=(t,n)=>ni(t)?new Zd(n):new Gd(n,{allowProjection:t!==e.Fragment}),Yd={...Nu,..._a,...jd,...{layout:{ProjectionNode:Ld,MeasureLayout:Rc}}},Jd=ei(((e,t)=>function(e,{forwardMotionProps:t=!1},n,o){return{...ni(e)?ba:wa,preloadedFeatures:n,useRender:Xi(t),createVisualElement:o,Component:e}}(e,t,Yd,Xd)));var $d="ComboBox-module_label__e2wbc",ep="ComboBox-module_input__SutxH",tp="ComboBox-module_icon-button__lvd3P",np="ComboBox-module_container__O5sFM",op="ComboBox-module_flyout__-fiv5",rp="ComboBox-module_item__dN8Md",ip="ComboBox-module_imageWrapper__SnKFh",ap="ComboBox-module_itemContent__NvNN1";Pe('.ComboBox-module_label__e2wbc {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n left: 1rem;\n}\n\n.ComboBox-module_input__SutxH {\n all: unset;\n padding: 1.25rem 1rem;\n background: var(--product-greyscale-0);\n border-top-left-radius: 8px;\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n width: 100%;\n padding-top: 36px;\n padding-bottom: 12px;\n}\n\n.ComboBox-module_icon-button__lvd3P {\n all: unset;\n cursor: pointer;\n background: var(--product-greyscale-0);\n padding: 1.25rem 1rem;\n height: 32px;\n border-top-right-radius: 8px;\n}\n\n.ComboBox-module_container__O5sFM {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.ComboBox-module_flyout__-fiv5 {\n background: var(--product-greyscale-0);\n list-style: none;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.5rem;\n border-bottom-left-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n\n.ComboBox-module_item__dN8Md {\n padding: 0.25rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-radius: 12px;\n}\n\n.ComboBox-module_item__dN8Md:hover {\n background: var(--product-greyscale-20);\n}\n\n.ComboBox-module_item__dN8Md:hover .ComboBox-module_imageWrapper__SnKFh {\n background: var(--product-greyscale-0);\n}\n\n.ComboBox-module_item__dN8Md[aria-selected="true"] {\n background: var(--product-greyscale-20);\n}\n\n.ComboBox-module_itemContent__NvNN1 {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.ComboBox-module_imageWrapper__SnKFh {\n display: flex;\n align-items: center;\n border-radius: 0.5rem;\n padding: 0.5rem;\n background: var(--product-greyscale-10);\n}\n\n@media (min-width: 768px) {\n .ComboBox-module_label__e2wbc {\n left: 1.5rem;\n }\n\n .ComboBox-module_input__SutxH {\n font-size: var(--product-font-form-input-desktop-size);\n padding-left: 1.5rem;\n }\n .ComboBox-module_flyout__-fiv5 {\n gap: 8px;\n }\n\n .ComboBox-module_item__dN8Md {\n padding: 0.5rem;\n }\n}\n');var sp=function(t){var n=t.label,o=t.options,r=t.onSelect,i=t.alwaysOpen,a=t.field,u=a.onBlur,c=l(a,["onBlur"]),d=e.useState(""),p=d[0],f=d[1],m=e.useState(o),h=m[0],g=m[1],v=e.useState(!1),y=v[0],A=v[1],b=We().width,w=gr({onInputValueChange:function(e){var t=e.inputValue;c.onChange(t),t&&(f(t),g(o.filter(function(e){var t=e.toLowerCase();return function(n){return!e||n.text.toLowerCase().includes(t)}}(t))))},items:h,itemToString:function(e){return e?e.text:""},onSelectedItemChange:function(e){var t=e.selectedItem;c.onChange(null==t?void 0:t.text),r&&t&&r(t)},defaultIsOpen:i}),x=w.isOpen,E=w.getToggleButtonProps,k=w.getLabelProps,S=w.getInputProps,C=w.getItemProps,P=w.getMenuProps,I=i||x,O=b>768,D={focused:{top:O?"20px":"22px",fontSize:O?"1.25rem":"0.875rem"},notFocused:{transform:"translateY(-50%)",top:"50%",fontSize:O?"1.25rem":"1.125rem"}};return e.createElement("div",null,e.createElement("div",null,e.createElement("div",{className:np},e.createElement(Jd.label,s({className:$d},k(),{initial:"notFocused",variants:D,animate:y||""!==p?"focused":"notFocused"}),e.createElement(Je,{as:"span",variant:"form-input-normal"},n)),e.createElement("input",s({className:ep},S(),{onFocus:function(){return A(!0)},onBlur:function(){u(),A(!1)}})),e.createElement("button",s({"aria-label":"toggle menu",className:tp,type:"button"},E()),x?e.createElement(Xe,{icon:"cancel"}):e.createElement(Xe,{icon:"search"})))),I&&0!==h.length&&e.createElement("ul",s({className:op},P()),h.map((function(t,n){return e.createElement("li",s({className:rp,key:t.text},C({item:t,index:n})),e.createElement("div",{className:ap},e.createElement("div",{className:ip},t.render&&t.render,t.img&&e.createElement("img",{src:t.img,alt:""})),e.createElement(Je,{variant:"form-button"},t.text)),e.createElement(Xe,{icon:"chevron_right"}))}))))},lp="datepicker-module_container__fTCSh",up="datepicker-module_input__ceUPn",cp="datepicker-module_input--error__1ueIj";Pe(".datepicker-module_container__fTCSh {\n display: flex;\n flex-direction: column;\n}\n\n/*\n* NOT WEB IOS\n* */\n\n@supports (-webkit-touch-callout: none) {\n .datepicker-module_input__ceUPn {\n all: unset;\n }\n}\n\n.datepicker-module_input__ceUPn {\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n min-width: 100%;\n min-height: 100%;\n border: none;\n}\n\n/*\n* WEB IOS\n* */\n@supports (-webkit-touch-callout: none) {\n .datepicker-module_input__ceUPn {\n position: relative;\n -webkit-appearance: none;\n text-align: left;\n }\n\n .datepicker-module_input__ceUPn::-webkit-date-and-time-value {\n text-align: left;\n }\n\n .datepicker-module_input__ceUPn::after {\n content: '\\1F4C5';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 1rem;\n }\n}\n\n.datepicker-module_input--error__1ueIj {\n border: 2px solid var(--product-error);\n}\n\n.datepicker-module_error__YkKT5 {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__gVTYV {\n margin-bottom: var(--product-spacing-3);\n}\n\n@media (min-width: 768px) {\n .datepicker-module_input__ceUPn {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var dp="formField-module_container__NqNgX",pp="formField-module_label__x-pW-",fp="formField-module_helper__wLqZB",mp="formField-module_error__cLlyu";Pe(".formField-module_container__NqNgX {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__x-pW- {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__wLqZB {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__cLlyu {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n@media (min-width: 768px) {\n .formField-module_helper__wLqZB,\n .formField-module_error__cLlyu {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n}\n");var hp=function(t){var n=t.id,o=t.error,r=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:dp},e.createElement(Je,{as:"label",variant:"form-input-normal",className:pp,htmlFor:n},i),a,r&&e.createElement(Je,{variant:"form-helper",className:fp},r),o&&e.createElement(Je,{variant:"form-helper",className:mp},o))},gp=function(t){var n=t.field,o=t.error,r=t.helper,i=l(t,["field","error","helper"]);return e.createElement(hp,{id:i.id,label:i.label,error:null==o?void 0:o.message,helper:null==r?void 0:r.message},e.createElement("div",{className:lp},e.createElement("input",s({className:Ce(up,o&&cp),type:"date",id:i.id,max:"9999-12-31"},n))))},vp={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},yp="form-module_form__hX1jQ";Pe(".form-module_form__hX1jQ {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__hX1jQ fieldset {\n all: unset;\n display: flex;\n flex-direction: column;\n}\n\n.form-module_form__hX1jQ > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__hX1jQ > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__hX1jQ > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n@media (min-width: 768px) {\n .form-module_form__hX1jQ {\n padding: 0;\n }\n .form-module_content-title-semi-bold__lF0bK {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var Ap="link-module_link__8RbJR";Pe(".link-module_link__8RbJR {\n color: var(--product-light-blue-100);\n}\n\n.link-module_link__8RbJR:hover {\n color: var(--product-light-blue-120);\n}\n\n.link-module_link__8RbJR:visited {\n color: var(--product-love-pink-120);\n}\n");var bp={small:"25px",medium:"55px",large:"110px",full:"100%"};const wp=e=>{let t;const n=new Set,o=(e,o)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=o?o:"object"!=typeof r||null===r)?r:Object.assign({},t,r),n.forEach((n=>n(t,e)))}},r=()=>t,i={setState:o,getState:r,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(o,r,i);return i};var xp,Ep={exports:{}},kp={},Sp={exports:{}},Cp={};var Pp,Ip,Op,Dp={};
|
|
59
|
+
*/"production"===process.env.NODE_ENV?un.exports=function(){if(an)return cn;an=1;var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case o:case i:case r:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case f:case p:case a:return e;default:return m}}case n:return m}}}return e=Symbol.for("react.module.reference"),cn.ContextConsumer=s,cn.ContextProvider=a,cn.Element=t,cn.ForwardRef=u,cn.Fragment=o,cn.Lazy=f,cn.Memo=p,cn.Portal=n,cn.Profiler=i,cn.StrictMode=r,cn.Suspense=c,cn.SuspenseList=d,cn.isAsyncMode=function(){return!1},cn.isConcurrentMode=function(){return!1},cn.isContextConsumer=function(e){return h(e)===s},cn.isContextProvider=function(e){return h(e)===a},cn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},cn.isForwardRef=function(e){return h(e)===u},cn.isFragment=function(e){return h(e)===o},cn.isLazy=function(e){return h(e)===f},cn.isMemo=function(e){return h(e)===p},cn.isPortal=function(e){return h(e)===n},cn.isProfiler=function(e){return h(e)===i},cn.isStrictMode=function(e){return h(e)===r},cn.isSuspense=function(e){return h(e)===c},cn.isSuspenseList=function(e){return h(e)===d},cn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},cn.typeOf=h,cn}():un.exports=(dn||(dn=1,"production"!==process.env.NODE_ENV&&function(){var e,t=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.for("react.offscreen");function h(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:var h=e.type;switch(h){case o:case i:case r:case c:case d:return h;default:var g=h&&h.$$typeof;switch(g){case l:case s:case u:case f:case p:case a:return g;default:return m}}case n:return m}}}e=Symbol.for("react.module.reference");var g=s,v=a,y=t,A=u,b=o,w=f,x=p,E=n,k=i,S=r,C=c,P=d,I=!1,O=!1;pn.ContextConsumer=g,pn.ContextProvider=v,pn.Element=y,pn.ForwardRef=A,pn.Fragment=b,pn.Lazy=w,pn.Memo=x,pn.Portal=E,pn.Profiler=k,pn.StrictMode=S,pn.Suspense=C,pn.SuspenseList=P,pn.isAsyncMode=function(e){return I||(I=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1},pn.isConcurrentMode=function(e){return O||(O=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1},pn.isContextConsumer=function(e){return h(e)===s},pn.isContextProvider=function(e){return h(e)===a},pn.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},pn.isForwardRef=function(e){return h(e)===u},pn.isFragment=function(e){return h(e)===o},pn.isLazy=function(e){return h(e)===f},pn.isMemo=function(e){return h(e)===p},pn.isPortal=function(e){return h(e)===n},pn.isProfiler=function(e){return h(e)===i},pn.isStrictMode=function(e){return h(e)===r},pn.isSuspense=function(e){return h(e)===c},pn.isSuspenseList=function(e){return h(e)===d},pn.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===o||t===i||t===r||t===c||t===d||t===m||"object"==typeof t&&null!==t&&(t.$$typeof===f||t.$$typeof===p||t.$$typeof===a||t.$$typeof===s||t.$$typeof===u||t.$$typeof===e||void 0!==t.getModuleId)},pn.typeOf=h}()),pn);var fn=un.exports;const mn=e=>"object"==typeof e&&null!=e&&1===e.nodeType,hn=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,gn=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return hn(n.overflowY,t)||hn(n.overflowX,t)||(e=>{const t=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)})(e)}return!1},vn=(e,t,n,o,r,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-o:a>t&&s<n||i<e&&s>n?a-t+r:0,yn=e=>{const t=e.parentElement;return null==t?e.getRootNode().host||null:t};var An=0;function bn(e){return"function"==typeof e?e:wn}function wn(){}function xn(e,t){if(e){var n=((e,t)=>{var n,o,r,i;if("undefined"==typeof document)return[];const{scrollMode:a,block:s,inline:l,boundary:u,skipOverflowHiddenElements:c}=t,d="function"==typeof u?u:e=>e!==u;if(!mn(e))throw new TypeError("Invalid target");const p=document.scrollingElement||document.documentElement,f=[];let m=e;for(;mn(m)&&d(m);){if(m=yn(m),m===p){f.push(m);break}null!=m&&m===document.body&&gn(m)&&!gn(document.documentElement)||null!=m&&gn(m,c)&&f.push(m)}const h=null!=(o=null==(n=window.visualViewport)?void 0:n.width)?o:innerWidth,g=null!=(i=null==(r=window.visualViewport)?void 0:r.height)?i:innerHeight,{scrollX:v,scrollY:y}=window,{height:A,width:b,top:w,right:x,bottom:E,left:k}=e.getBoundingClientRect(),{top:S,right:C,bottom:P,left:I}=(e=>{const t=window.getComputedStyle(e);return{top:parseFloat(t.scrollMarginTop)||0,right:parseFloat(t.scrollMarginRight)||0,bottom:parseFloat(t.scrollMarginBottom)||0,left:parseFloat(t.scrollMarginLeft)||0}})(e);let O="start"===s||"nearest"===s?w-S:"end"===s?E+P:w+A/2-S+P,D="center"===l?k+b/2-I+C:"end"===l?x+C:k-I;const T=[];for(let e=0;e<f.length;e++){const t=f[e],{height:n,width:o,top:r,right:i,bottom:u,left:c}=t.getBoundingClientRect();if("if-needed"===a&&w>=0&&k>=0&&E<=g&&x<=h&&w>=r&&E<=u&&k>=c&&x<=i)return T;const d=getComputedStyle(t),m=parseInt(d.borderLeftWidth,10),S=parseInt(d.borderTopWidth,10),C=parseInt(d.borderRightWidth,10),P=parseInt(d.borderBottomWidth,10);let I=0,R=0;const N="offsetWidth"in t?t.offsetWidth-t.clientWidth-m-C:0,B="offsetHeight"in t?t.offsetHeight-t.clientHeight-S-P:0,M="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,F="offsetHeight"in t?0===t.offsetHeight?0:n/t.offsetHeight:0;if(p===t)I="start"===s?O:"end"===s?O-g:"nearest"===s?vn(y,y+g,g,S,P,y+O,y+O+A,A):O-g/2,R="start"===l?D:"center"===l?D-h/2:"end"===l?D-h:vn(v,v+h,h,m,C,v+D,v+D+b,b),I=Math.max(0,I+y),R=Math.max(0,R+v);else{I="start"===s?O-r-S:"end"===s?O-u+P+B:"nearest"===s?vn(r,u,n,S,P+B,O,O+A,A):O-(r+n/2)+B/2,R="start"===l?D-c-m:"center"===l?D-(c+o/2)+N/2:"end"===l?D-i+C+N:vn(c,i,o,m,C+N,D,D+b,b);const{scrollLeft:e,scrollTop:a}=t;I=0===F?0:Math.max(0,Math.min(a+I/F,t.scrollHeight-n/F+B)),R=0===M?0:Math.max(0,Math.min(e+R/M,t.scrollWidth-o/M+N)),O+=a-I,D+=e-R}T.push({el:t,top:I,left:R})}return T})(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((function(e){var t=e.el,n=e.top,o=e.left;t.scrollTop=n,t.scrollLeft=o}))}}function En(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function kn(e,t){var n;function o(){n&&clearTimeout(n)}function r(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];o(),n=setTimeout((function(){n=null,e.apply(void 0,i)}),t)}return r.cancel=o,r}function Sn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return t.some((function(t){return t&&t.apply(void 0,[e].concat(o)),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault}))}}function Cn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){t.forEach((function(t){"function"==typeof t?t(e):t&&(t.current=e)}))}}function Pn(){return String(An++)}function In(e){var t=e.isOpen,n=e.resultCount,o=e.previousResultCount;return t?n?n!==o?n+" result"+(1===n?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function On(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function Dn(e){return"string"==typeof e.type}function Tn(e){return e.props}var Rn=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function Nn(e){void 0===e&&(e={});var t={};return Rn.forEach((function(n){e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function Bn(e,t){return e&&t?Object.keys(e).reduce((function(n,o){return n[o]=Mn(t,o)?t[o]:e[o],n}),{}):e}function Mn(e,t){return void 0!==e[t]}function Fn(e){var t=e.key,n=e.keyCode;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?"Arrow"+t:t}function Vn(e,t,n,o,r){var i=n.length;if(0===i)return-1;var a=i-1;("number"!=typeof e||e<0||e>a)&&(e=t>0?-1:a+1);var s=e+t;s<0?s=a:s>a&&(s=0);var l=Ln(s,t<0,n,o,r);return-1===l?e>=i?-1:e:l}function Ln(e,t,n,o,r){void 0===r&&(r=!1);var i=n.length;if(t){for(var a=e;a>=0;a--)if(!o(n[a],a))return a}else for(var s=e;s<i;s++)if(!o(n[s],s))return s;return r?Ln(t?i-1:0,t,n,o):-1}function jn(e,t,n,o){return void 0===o&&(o=!0),n&&t.some((function(t){return t&&(En(t,e,n)||o&&En(t,n.document.activeElement,n))}))}var zn=wn;"production"!==process.env.NODE_ENV&&(zn=function(e,t,n){var o="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach((function(e){void 0!==t[e]&&void 0===n[e]?console.error('downshift: A component has changed the controlled prop "'+e+'" to be uncontrolled. '+o):void 0===t[e]&&void 0!==n[e]&&console.error('downshift: A component has changed the uncontrolled prop "'+e+'" to be controlled. '+o)}))});var Un=kn((function(e){Qn(e).textContent=""}),500);function Qn(e){var t=e.getElementById("a11y-status-message");return t||((t=e.createElement("div")).setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Hn(e,t){e&&t&&(Qn(t).textContent=e,Un(t))}var _n="production"!==process.env.NODE_ENV?"__autocomplete_unknown__":0,qn="production"!==process.env.NODE_ENV?"__autocomplete_mouseup__":1,Kn="production"!==process.env.NODE_ENV?"__autocomplete_item_mouseenter__":2,Wn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_arrow_up__":3,Gn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_arrow_down__":4,Zn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_escape__":5,Xn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_enter__":6,Yn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_home__":7,Jn="production"!==process.env.NODE_ENV?"__autocomplete_keydown_end__":8,$n="production"!==process.env.NODE_ENV?"__autocomplete_click_item__":9,eo="production"!==process.env.NODE_ENV?"__autocomplete_blur_input__":10,to="production"!==process.env.NODE_ENV?"__autocomplete_change_input__":11,no="production"!==process.env.NODE_ENV?"__autocomplete_keydown_space_button__":12,oo="production"!==process.env.NODE_ENV?"__autocomplete_click_button__":13,ro="production"!==process.env.NODE_ENV?"__autocomplete_blur_button__":14,io="production"!==process.env.NODE_ENV?"__autocomplete_controlled_prop_updated_selected_item__":15,ao="production"!==process.env.NODE_ENV?"__autocomplete_touchend__":16,so=Object.freeze({__proto__:null,unknown:_n,mouseUp:qn,itemMouseEnter:Kn,keyDownArrowUp:Wn,keyDownArrowDown:Gn,keyDownEscape:Zn,keyDownEnter:Xn,keyDownHome:Yn,keyDownEnd:Jn,clickItem:$n,blurInput:eo,changeInput:to,keyDownSpaceButton:no,clickButton:oo,blurButton:ro,controlledPropUpdatedSelectedItem:io,touchEnd:ao}),lo=["refKey","ref"],uo=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],co=["onKeyDown","onBlur","onChange","onInput","onChangeText"],po=["refKey","ref"],fo=["onMouseMove","onMouseDown","onClick","onPress","index","item"],mo=function(){var t=function(t){function n(e){var n;(n=t.call(this,e)||this).id=n.props.id||"downshift-"+Pn(),n.menuId=n.props.menuId||n.id+"-menu",n.labelId=n.props.labelId||n.id+"-label",n.inputId=n.props.inputId||n.id+"-input",n.getItemId=n.props.getItemId||function(e){return n.id+"-item-"+e},n.items=[],n.itemCount=null,n.previousResultCount=0,n.timeoutIds=[],n.internalSetTimeout=function(e,t){var o=setTimeout((function(){n.timeoutIds=n.timeoutIds.filter((function(e){return e!==o})),e()}),t);n.timeoutIds.push(o)},n.setItemCount=function(e){n.itemCount=e},n.unsetItemCount=function(){n.itemCount=null},n.isItemDisabled=function(e,t){var o=n.getItemNodeFromIndex(t);return o&&o.hasAttribute("disabled")},n.setHighlightedIndex=function(e,t){void 0===e&&(e=n.props.defaultHighlightedIndex),void 0===t&&(t={}),t=Nn(t),n.internalSetState(Dt({highlightedIndex:e},t))},n.clearSelection=function(e){n.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:n.props.defaultHighlightedIndex,isOpen:n.props.defaultIsOpen},e)},n.selectItem=function(e,t,o){t=Nn(t),n.internalSetState(Dt({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,selectedItem:e,inputValue:n.props.itemToString(e)},t),o)},n.selectItemAtIndex=function(e,t,o){var r=n.items[e];null!=r&&n.selectItem(r,t,o)},n.selectHighlightedItem=function(e,t){return n.selectItemAtIndex(n.getState().highlightedIndex,e,t)},n.internalSetState=function(e,t){var o,r,i={},a="function"==typeof e;return!a&&e.hasOwnProperty("inputValue")&&n.props.onInputValueChange(e.inputValue,Dt({},n.getStateAndHelpers(),e)),n.setState((function(t){var s;t=n.getState(t);var l=a?e(t):e;l=n.props.stateReducer(t,l),o=l.hasOwnProperty("selectedItem");var u={};return o&&l.selectedItem!==t.selectedItem&&(r=l.selectedItem),(s=l).type||(s.type=_n),Object.keys(l).forEach((function(e){t[e]!==l[e]&&(i[e]=l[e]),"type"!==e&&(l[e],Mn(n.props,e)||(u[e]=l[e]))})),a&&l.hasOwnProperty("inputValue")&&n.props.onInputValueChange(l.inputValue,Dt({},n.getStateAndHelpers(),l)),u}),(function(){bn(t)(),Object.keys(i).length>1&&n.props.onStateChange(i,n.getStateAndHelpers()),o&&n.props.onSelect(e.selectedItem,n.getStateAndHelpers()),void 0!==r&&n.props.onChange(r,n.getStateAndHelpers()),n.props.onUserAction(i,n.getStateAndHelpers())}))},n.rootRef=function(e){return n._rootNode=e},n.getRootProps=function(e,t){var o,r=void 0===e?{}:e,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=Ot(r,lo),u=(void 0===t?{}:t).suppressRefError,c=void 0!==u&&u;n.getRootProps.called=!0,n.getRootProps.refKey=a,n.getRootProps.suppressRefError=c;var d=n.getState().isOpen;return Dt(((o={})[a]=Cn(s,n.rootRef),o.role="combobox",o["aria-expanded"]=d,o["aria-haspopup"]="listbox",o["aria-owns"]=d?n.menuId:void 0,o["aria-labelledby"]=n.labelId,o),l)},n.keyDownHandlers={ArrowDown:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?5:1;this.moveHighlightedIndex(n,{type:Gn})}else this.internalSetState({isOpen:!0,type:Gn},(function(){var e=t.getItemCount();if(e>0){var n=Vn(t.getState().highlightedIndex,1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:Gn})}}))},ArrowUp:function(e){var t=this;if(e.preventDefault(),this.getState().isOpen){var n=e.shiftKey?-5:-1;this.moveHighlightedIndex(n,{type:Wn})}else this.internalSetState({isOpen:!0,type:Wn},(function(){var e=t.getItemCount();if(e>0){var n=Vn(t.getState().highlightedIndex,-1,{length:e},t.isItemDisabled,!0);t.setHighlightedIndex(n,{type:Wn})}}))},Enter:function(e){if(229!==e.which){var t=this.getState(),n=t.isOpen,o=t.highlightedIndex;if(n&&null!=o){e.preventDefault();var r=this.items[o],i=this.getItemNodeFromIndex(o);if(null==r||i&&i.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Xn})}}},Escape:function(e){e.preventDefault(),this.reset(Dt({type:Zn},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},n.buttonKeyDownHandlers=Dt({},n.keyDownHandlers,{" ":function(e){e.preventDefault(),this.toggleMenu({type:no})}}),n.inputKeyDownHandlers=Dt({},n.keyDownHandlers,{Home:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var o=Ln(0,!1,{length:n},this.isItemDisabled);this.setHighlightedIndex(o,{type:Yn})}}},End:function(e){var t=this.getState().isOpen;if(t){e.preventDefault();var n=this.getItemCount();if(!(n<=0)&&t){var o=Ln(n-1,!0,{length:n},this.isItemDisabled);this.setHighlightedIndex(o,{type:Jn})}}}}),n.getToggleButtonProps=function(e){var t=void 0===e?{}:e,o=t.onClick;t.onPress;var r=t.onKeyDown,i=t.onKeyUp,a=t.onBlur,s=Ot(t,uo),l=n.getState().isOpen,u={onClick:Sn(o,n.buttonHandleClick),onKeyDown:Sn(r,n.buttonHandleKeyDown),onKeyUp:Sn(i,n.buttonHandleKeyUp),onBlur:Sn(a,n.buttonHandleBlur)};return Dt({type:"button",role:"button","aria-label":l?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},s.disabled?{}:u,s)},n.buttonHandleKeyUp=function(e){e.preventDefault()},n.buttonHandleKeyDown=function(e){var t=Fn(e);n.buttonKeyDownHandlers[t]&&n.buttonKeyDownHandlers[t].call(Tt(n),e)},n.buttonHandleClick=function(e){if(e.preventDefault(),n.props.environment){var t=n.props.environment.document,o=t.body,r=t.activeElement;o&&o===r&&e.target.focus()}"test"===process.env.NODE_ENV?n.toggleMenu({type:oo}):n.internalSetTimeout((function(){return n.toggleMenu({type:oo})}))},n.buttonHandleBlur=function(e){var t=e.target;n.internalSetTimeout((function(){if(!n.isMouseDown&&n.props.environment){var e=n.props.environment.document.activeElement;null!=e&&e.id===n.inputId||e===t||n.reset({type:ro})}}))},n.getLabelProps=function(e){return Dt({htmlFor:n.inputId,id:n.labelId},e)},n.getInputProps=function(e){var t=void 0===e?{}:e,o=t.onKeyDown,r=t.onBlur,i=t.onChange,a=t.onInput;t.onChangeText;var s=Ot(t,co),l={};var u,c=n.getState(),d=c.inputValue,p=c.isOpen,f=c.highlightedIndex;s.disabled||((u={}).onChange=Sn(i,a,n.inputHandleChange),u.onKeyDown=Sn(o,n.inputHandleKeyDown),u.onBlur=Sn(r,n.inputHandleBlur),l=u);return Dt({"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof f&&f>=0?n.getItemId(f):void 0,"aria-controls":p?n.menuId:void 0,"aria-labelledby":s&&s["aria-label"]?void 0:n.labelId,autoComplete:"off",value:d,id:n.inputId},l,s)},n.inputHandleKeyDown=function(e){var t=Fn(e);t&&n.inputKeyDownHandlers[t]&&n.inputKeyDownHandlers[t].call(Tt(n),e)},n.inputHandleChange=function(e){n.internalSetState({type:to,isOpen:!0,inputValue:e.target.value,highlightedIndex:n.props.defaultHighlightedIndex})},n.inputHandleBlur=function(){n.internalSetTimeout((function(){var e;if(!n.isMouseDown&&n.props.environment){var t=n.props.environment.document.activeElement;(null==t||null==(e=t.dataset)?void 0:e.toggle)&&n._rootNode&&n._rootNode.contains(t)||n.reset({type:eo})}}))},n.menuRef=function(e){n._menuNode=e},n.getMenuProps=function(e,t){var o,r=void 0===e?{}:e,i=r.refKey,a=void 0===i?"ref":i,s=r.ref,l=Ot(r,po),u=(void 0===t?{}:t).suppressRefError,c=void 0!==u&&u;return n.getMenuProps.called=!0,n.getMenuProps.refKey=a,n.getMenuProps.suppressRefError=c,Dt(((o={})[a]=Cn(s,n.menuRef),o.role="listbox",o["aria-labelledby"]=l&&l["aria-label"]?void 0:n.labelId,o.id=n.menuId,o),l)},n.getItemProps=function(e){var t,o=void 0===e?{}:e,r=o.onMouseMove,i=o.onMouseDown,a=o.onClick;o.onPress;var s,l,u=o.index,c=o.item,d=void 0===c?"production"===process.env.NODE_ENV?void 0:(s="getItemProps",l="item",void console.error('The property "'+l+'" is required in "'+s+'"')):c,p=Ot(o,fo);void 0===u?(n.items.push(d),u=n.items.indexOf(d)):n.items[u]=d;var f=a,m=((t={onMouseMove:Sn(r,(function(){u!==n.getState().highlightedIndex&&(n.setHighlightedIndex(u,{type:Kn}),n.avoidScrolling=!0,n.internalSetTimeout((function(){return n.avoidScrolling=!1}),250))})),onMouseDown:Sn(i,(function(e){e.preventDefault()}))}).onClick=Sn(f,(function(){n.selectItemAtIndex(u,{type:$n})})),t),h=p.disabled?{onMouseDown:m.onMouseDown}:m;return Dt({id:n.getItemId(u),role:"option","aria-selected":n.getState().highlightedIndex===u},h,p)},n.clearItems=function(){n.items=[]},n.reset=function(e,t){void 0===e&&(e={}),e=Nn(e),n.internalSetState((function(t){var o=t.selectedItem;return Dt({isOpen:n.props.defaultIsOpen,highlightedIndex:n.props.defaultHighlightedIndex,inputValue:n.props.itemToString(o)},e)}),t)},n.toggleMenu=function(e,t){void 0===e&&(e={}),e=Nn(e),n.internalSetState((function(t){var o=t.isOpen;return Dt({isOpen:!o},o&&{highlightedIndex:n.props.defaultHighlightedIndex},e)}),(function(){var o=n.getState(),r=o.isOpen,i=o.highlightedIndex;r&&n.getItemCount()>0&&"number"==typeof i&&n.setHighlightedIndex(i,e),bn(t)()}))},n.openMenu=function(e){n.internalSetState({isOpen:!0},e)},n.closeMenu=function(e){n.internalSetState({isOpen:!1},e)},n.updateStatus=kn((function(){var e;if(null!=(e=n.props)&&null!=(e=e.environment)&&e.document){var t=n.getState(),o=n.items[t.highlightedIndex],r=n.getItemCount(),i=n.props.getA11yStatusMessage(Dt({itemToString:n.props.itemToString,previousResultCount:n.previousResultCount,resultCount:r,highlightedItem:o},t));n.previousResultCount=r,Hn(i,n.props.environment.document)}}),200);var o=n.props,r=o.defaultHighlightedIndex,i=o.initialHighlightedIndex,a=void 0===i?r:i,s=o.defaultIsOpen,l=o.initialIsOpen,u=void 0===l?s:l,c=o.initialInputValue,d=void 0===c?"":c,p=o.initialSelectedItem,f=void 0===p?null:p,m=n.getState({highlightedIndex:a,isOpen:u,inputValue:d,selectedItem:f});return null!=m.selectedItem&&void 0===n.props.initialInputValue&&(m.inputValue=n.props.itemToString(m.selectedItem)),n.state=m,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Rt(e,t)}(n,t);var o=n.prototype;return o.internalClearTimeouts=function(){this.timeoutIds.forEach((function(e){clearTimeout(e)})),this.timeoutIds=[]},o.getState=function(e){return void 0===e&&(e=this.state),Bn(e,this.props)},o.getItemCount=function(){var e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e},o.getItemNodeFromIndex=function(e){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(e)):null},o.scrollHighlightedItemIntoView=function(){var e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)},o.moveHighlightedIndex=function(e,t){var n=this.getItemCount(),o=this.getState().highlightedIndex;if(n>0){var r=Vn(o,e,{length:n},this.isItemDisabled,!0);this.setHighlightedIndex(r,t)}},o.getStateAndHelpers=function(){var e=this.getState(),t=e.highlightedIndex,n=e.inputValue,o=e.selectedItem,r=e.isOpen,i=this.props.itemToString,a=this.id,s=this.getRootProps,l=this.getToggleButtonProps,u=this.getLabelProps,c=this.getMenuProps,d=this.getInputProps,p=this.getItemProps,f=this.openMenu,m=this.closeMenu,h=this.toggleMenu,g=this.selectItem,v=this.selectItemAtIndex,y=this.selectHighlightedItem,A=this.setHighlightedIndex,b=this.clearSelection,w=this.clearItems;return{getRootProps:s,getToggleButtonProps:l,getLabelProps:u,getMenuProps:c,getInputProps:d,getItemProps:p,reset:this.reset,openMenu:f,closeMenu:m,toggleMenu:h,selectItem:g,selectItemAtIndex:v,selectHighlightedItem:y,setHighlightedIndex:A,clearSelection:b,clearItems:w,setItemCount:this.setItemCount,unsetItemCount:this.unsetItemCount,setState:this.internalSetState,itemToString:i,id:a,highlightedIndex:t,inputValue:n,isOpen:r,selectedItem:o}},o.componentDidMount=function(){var e=this;if("production"!==process.env.NODE_ENV&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ho(this._menuNode,this.getMenuProps),this.props.environment){var t=function(){e.isMouseDown=!0},n=function(t){e.isMouseDown=!1,!jn(t.target,[e._rootNode,e._menuNode],e.props.environment)&&e.getState().isOpen&&e.reset({type:qn},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},o=function(){e.isTouchMove=!1},r=function(){e.isTouchMove=!0},i=function(t){var n=jn(t.target,[e._rootNode,e._menuNode],e.props.environment,!1);e.isTouchMove||n||!e.getState().isOpen||e.reset({type:ao},(function(){return e.props.onOuterClick(e.getStateAndHelpers())}))},a=this.props.environment;a.addEventListener("mousedown",t),a.addEventListener("mouseup",n),a.addEventListener("touchstart",o),a.addEventListener("touchmove",r),a.addEventListener("touchend",i),this.cleanup=function(){e.internalClearTimeouts(),e.updateStatus.cancel(),a.removeEventListener("mousedown",t),a.removeEventListener("mouseup",n),a.removeEventListener("touchstart",o),a.removeEventListener("touchmove",r),a.removeEventListener("touchend",i)}}else this.cleanup=function(){e.internalClearTimeouts()}},o.shouldScroll=function(e,t){var n=(void 0===this.props.highlightedIndex?this.getState():this.props).highlightedIndex,o=(void 0===t.highlightedIndex?e:t).highlightedIndex;return n&&this.getState().isOpen&&!e.isOpen||n!==o},o.componentDidUpdate=function(e,t){"production"!==process.env.NODE_ENV&&(zn(this.state,e,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ho(this._menuNode,this.getMenuProps)),Mn(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:io,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},o.componentWillUnmount=function(){this.cleanup()},o.render=function(){var t=On(this.props.children,wn);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var n=On(t(this.getStateAndHelpers()));if(!n)return null;if(this.getRootProps.called||this.props.suppressRefError)return"production"===process.env.NODE_ENV||this.getRootProps.suppressRefError||this.props.suppressRefError||function(e,t){var n=t.refKey,o="ref"!==n,r=!Dn(e);!r||o||fn.isForwardRef(e)?!r&&o&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+n+'"'):console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps");fn.isForwardRef(e)||Tn(e)[n]||console.error('downshift: You must apply the ref prop "'+n+'" from getRootProps onto your root element.')}(n,this.getRootProps),n;if(Dn(n))return e.cloneElement(n,this.getRootProps(Tn(n)));if("production"!==process.env.NODE_ENV)throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},n}(e.Component);return t.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:In,itemToString:function(e){return null==e?"":("production"===process.env.NODE_ENV||(t=e,"[object Object]"!==Object.prototype.toString.call(t))||e.hasOwnProperty("toString")||console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",e),String(e));var t},onStateChange:wn,onInputValueChange:wn,onUserAction:wn,onChange:wn,onSelect:wn,onOuterClick:wn,selectedItemChanged:function(e,t){return e!==t},environment:"undefined"==typeof window?void 0:window,stateReducer:function(e,t){return t},suppressRefError:!1,scrollIntoView:xn},t.stateChangeTypes=so,t}();function ho(e,t){var n=t.refKey;e||console.error('downshift: The ref prop "'+n+'" from getMenuProps was not applied correctly on your menu element.')}"production"!==process.env.NODE_ENV&&(mo.propTypes={children:ln.func,defaultHighlightedIndex:ln.number,defaultIsOpen:ln.bool,initialHighlightedIndex:ln.number,initialSelectedItem:ln.any,initialInputValue:ln.string,initialIsOpen:ln.bool,getA11yStatusMessage:ln.func,itemToString:ln.func,onChange:ln.func,onSelect:ln.func,onStateChange:ln.func,onInputValueChange:ln.func,onUserAction:ln.func,onOuterClick:ln.func,selectedItemChanged:ln.func,stateReducer:ln.func,itemCount:ln.number,id:ln.string,environment:ln.shape({addEventListener:ln.func.isRequired,removeEventListener:ln.func.isRequired,document:ln.shape({createElement:ln.func.isRequired,getElementById:ln.func.isRequired,activeElement:ln.any.isRequired,body:ln.any.isRequired}).isRequired,Node:ln.func.isRequired}),suppressRefError:ln.bool,scrollIntoView:ln.func,selectedItem:ln.any,isOpen:ln.bool,inputValue:ln.string,highlightedIndex:ln.number,labelId:ln.string,inputId:ln.string,menuId:ln.string,getItemId:ln.func});var go=["highlightedIndex","items","environment"],vo={highlightedIndex:-1,isOpen:!1,selectedItem:null,inputValue:""};function yo(e,t,n){var o=e.props,r=e.type,i={};Object.keys(t).forEach((function(o){!function(e,t,n,o){var r=t.props,i=t.type,a="on"+xo(e)+"Change";r[a]&&void 0!==o[e]&&o[e]!==n[e]&&r[a](Dt({type:i},o))}(o,e,t,n),n[o]!==t[o]&&(i[o]=n[o])})),o.onStateChange&&Object.keys(i).length&&o.onStateChange(Dt({type:r},i))}var Ao=kn((function(e,t){Hn(e(),t)}),200),bo="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?e.useLayoutEffect:e.useEffect,wo="useId"in e?function(t){var n=t.id,o=t.labelId,r=t.menuId,i=t.getItemId,a=t.toggleButtonId,s=t.inputId,l="downshift-"+e.useId();n||(n=l);var u=e.useRef({labelId:o||n+"-label",menuId:r||n+"-menu",getItemId:i||function(e){return n+"-item-"+e},toggleButtonId:a||n+"-toggle-button",inputId:s||n+"-input"});return u.current}:function(t){var n=t.id,o=void 0===n?"downshift-"+Pn():n,r=t.labelId,i=t.menuId,a=t.getItemId,s=t.toggleButtonId,l=t.inputId,u=e.useRef({labelId:r||o+"-label",menuId:i||o+"-menu",getItemId:a||function(e){return o+"-item-"+e},toggleButtonId:s||o+"-toggle-button",inputId:l||o+"-input"});return u.current};function xo(e){return""+e.slice(0,1).toUpperCase()+e.slice(1)}function Eo(t){var n=e.useRef(t);return n.current=t,n}var ko={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){var t=e.selectedItem,n=e.itemToString;return t?n(t)+" has been selected.":""},scrollIntoView:xn,environment:"undefined"==typeof window?void 0:window};function So(e,t,n){void 0===n&&(n=vo);var o=e["default"+xo(t)];return void 0!==o?o:n[t]}function Co(e,t,n){void 0===n&&(n=vo);var o=e[t];if(void 0!==o)return o;var r=e["initial"+xo(t)];return void 0!==r?r:So(e,t,n)}function Po(e,t,n){var o=e.items,r=e.initialHighlightedIndex,i=e.defaultHighlightedIndex,a=e.itemToKey,s=t.selectedItem,l=t.highlightedIndex;return 0===o.length?-1:void 0!==r&&l===r?r:void 0!==i?i:s?o.findIndex((function(e){return a(s)===a(e)})):0===n?-1:n<0?o.length-1:0}var Io=function(){return wn};function Oo(t,n,o){var r=o.highlightedIndex,i=o.items,a=o.environment,s=Ot(o,go),l=No();e.useEffect((function(){!l&&null!=a&&a.document&&Ao((function(){return t(Dt({highlightedIndex:r,highlightedItem:i[r],resultCount:i.length},s))}),a.document)}),n)}"production"!==process.env.NODE_ENV&&(Io=function(){for(var t=e.useRef(!0),n=arguments.length,o=new Array(n),r=0;r<n;r++)o[r]=arguments[r];var i=e.useRef(o.reduce((function(e,t){return e[t]={},e}),{}));return e.useEffect((function(){Object.keys(i.current).forEach((function(e){var n=i.current[e];if(!t.current||Object.keys(n).length){var o=n.suppressRefError,r=n.refKey,a=n.elementRef;a&&a.current||o||console.error('downshift: The ref prop "'+r+'" from '+e+" was not applied correctly on your element.")}else console.error("downshift: You forgot to call the "+e+" getter function on your component / element.")})),t.current=!1})),e.useCallback((function(e,t,n,o){i.current[e]={suppressRefError:t,refKey:n,elementRef:o}}),[])});var Do=wn;function To(e,t,n){var o;return void 0===n&&(n=!0),Dt({isOpen:!1,highlightedIndex:-1},(null==(o=e.items)?void 0:o.length)&&t>=0&&Dt({selectedItem:e.items[t],isOpen:So(e,"isOpen"),highlightedIndex:So(e,"highlightedIndex")},n&&{inputValue:e.itemToString(e.items[t])}))}function Ro(e,t){return e.isOpen===t.isOpen&&e.inputValue===t.inputValue&&e.highlightedIndex===t.highlightedIndex&&e.selectedItem===t.selectedItem}function No(){var t=e.useRef(!0);return e.useEffect((function(){return t.current=!1,function(){t.current=!0}}),[]),t.current}"production"!==process.env.NODE_ENV&&(Do=function(t){var n=t.props,o=t.state,r=e.useRef(n),i=No();e.useEffect((function(){i||(zn(o,r.current,n),r.current=n)}),[o,n,i])});var Bo={environment:ln.shape({addEventListener:ln.func.isRequired,removeEventListener:ln.func.isRequired,document:ln.shape({createElement:ln.func.isRequired,getElementById:ln.func.isRequired,activeElement:ln.any.isRequired,body:ln.any.isRequired}).isRequired,Node:ln.func.isRequired}),itemToString:ln.func,itemToKey:ln.func,stateReducer:ln.func},Mo=Dt({},Bo,{getA11yStatusMessage:ln.func,highlightedIndex:ln.number,defaultHighlightedIndex:ln.number,initialHighlightedIndex:ln.number,isOpen:ln.bool,defaultIsOpen:ln.bool,initialIsOpen:ln.bool,selectedItem:ln.any,initialSelectedItem:ln.any,defaultSelectedItem:ln.any,id:ln.string,labelId:ln.string,menuId:ln.string,getItemId:ln.func,toggleButtonId:ln.string,onSelectedItemChange:ln.func,onHighlightedIndexChange:ln.func,onStateChange:ln.func,onIsOpenChange:ln.func,scrollIntoView:ln.func});s(s({},Mo),{items:ln.array.isRequired,isItemDisabled:ln.func,getA11ySelectionMessage:ln.func}),s(s({},ko),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,o=e.previousResultCount;return t?n?n!==o?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""},isItemDisabled:function(){return!1}}),process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;var Fo="production"!==process.env.NODE_ENV?"__input_keydown_arrow_down__":0,Vo="production"!==process.env.NODE_ENV?"__input_keydown_arrow_up__":1,Lo="production"!==process.env.NODE_ENV?"__input_keydown_escape__":2,jo="production"!==process.env.NODE_ENV?"__input_keydown_home__":3,zo="production"!==process.env.NODE_ENV?"__input_keydown_end__":4,Uo="production"!==process.env.NODE_ENV?"__input_keydown_page_up__":5,Qo="production"!==process.env.NODE_ENV?"__input_keydown_page_down__":6,Ho="production"!==process.env.NODE_ENV?"__input_keydown_enter__":7,_o="production"!==process.env.NODE_ENV?"__input_change__":8,qo="production"!==process.env.NODE_ENV?"__input_blur__":9,Ko="production"!==process.env.NODE_ENV?"__input_click__":10,Wo="production"!==process.env.NODE_ENV?"__menu_mouse_leave__":11,Go="production"!==process.env.NODE_ENV?"__item_mouse_move__":12,Zo="production"!==process.env.NODE_ENV?"__item_click__":13,Xo="production"!==process.env.NODE_ENV?"__togglebutton_click__":14,Yo="production"!==process.env.NODE_ENV?"__function_toggle_menu__":15,Jo="production"!==process.env.NODE_ENV?"__function_open_menu__":16,$o="production"!==process.env.NODE_ENV?"__function_close_menu__":17,er="production"!==process.env.NODE_ENV?"__function_set_highlighted_index__":18,tr="production"!==process.env.NODE_ENV?"__function_select_item__":19,nr="production"!==process.env.NODE_ENV?"__function_set_input_value__":20,or="production"!==process.env.NODE_ENV?"__function_reset__":21,rr="production"!==process.env.NODE_ENV?"__controlled_prop_updated_selected_item__":22,ir=Object.freeze({__proto__:null,InputKeyDownArrowDown:Fo,InputKeyDownArrowUp:Vo,InputKeyDownEscape:Lo,InputKeyDownHome:jo,InputKeyDownEnd:zo,InputKeyDownPageUp:Uo,InputKeyDownPageDown:Qo,InputKeyDownEnter:Ho,InputChange:_o,InputBlur:qo,InputClick:Ko,MenuMouseLeave:Wo,ItemMouseMove:Go,ItemClick:Zo,ToggleButtonClick:Xo,FunctionToggleMenu:Yo,FunctionOpenMenu:Jo,FunctionCloseMenu:$o,FunctionSetHighlightedIndex:er,FunctionSelectItem:tr,FunctionSetInputValue:nr,FunctionReset:or,ControlledPropUpdatedSelectedItem:rr});function ar(e){var t=function(e){var t=Co(e,"selectedItem"),n=Co(e,"isOpen"),o=Co(e,"highlightedIndex"),r=Co(e,"inputValue");return{highlightedIndex:o<0&&t&&n?e.items.findIndex((function(n){return e.itemToKey(n)===e.itemToKey(t)})):o,isOpen:n,selectedItem:t,inputValue:r}}(e),n=t.selectedItem,o=t.inputValue;return""===o&&n&&void 0===e.defaultInputValue&&void 0===e.initialInputValue&&void 0===e.inputValue&&(o=e.itemToString(n)),Dt({},t,{inputValue:o})}var sr=Dt({},Mo,{items:ln.array.isRequired,isItemDisabled:ln.func,selectedItemChanged:ln.func,getA11ySelectionMessage:ln.func,inputValue:ln.string,defaultInputValue:ln.string,initialInputValue:ln.string,inputId:ln.string,onInputValueChange:ln.func});function lr(t,n,o,r){var i=e.useRef(),a=function(t,n,o,r){var i=e.useRef(),a=e.useRef(),s=e.useCallback((function(e,n){a.current=n,e=Bn(e,n.props);var o=t(e,n);return n.props.stateReducer(e,Dt({},n,{changes:o}))}),[t]),l=e.useReducer(s,n,o),u=l[0],c=l[1],d=Eo(n),p=e.useCallback((function(e){return c(Dt({props:d.current},e))}),[d]),f=a.current;return e.useEffect((function(){var e=Bn(i.current,null==f?void 0:f.props);f&&i.current&&!r(e,u)&&yo(f,e,u),i.current=u}),[u,f,r]),[u,p]}(t,n,o,r),s=a[0],l=a[1],u=No();return e.useEffect((function(){if(Mn(n,"selectedItem")){var e;if(!u)void 0===n.selectedItemChanged?e=n.itemToKey(n.selectedItem)!==n.itemToKey(i.current):(console.warn('The "selectedItemChanged" is deprecated. Please use "itemToKey instead". https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/README.md#selecteditemchanged'),e=n.selectedItemChanged(i.current,n.selectedItem)),e&&l({type:rr,inputValue:n.itemToString(n.selectedItem)});i.current=s.selectedItem===i.current?n.selectedItem:s.selectedItem}}),[s.selectedItem,n.selectedItem]),[Bn(s,n),l]}var ur=wn;"production"!==process.env.NODE_ENV&&(ur=function(e,t){ln.checkPropTypes(sr,e,"prop",t.name)});var cr=Dt({},ko,{getA11yStatusMessage:In,isItemDisabled:function(){return!1}});function dr(e,t){var n,o,r=t.type,i=t.props,a=t.altKey;switch(r){case Zo:o={isOpen:So(i,"isOpen"),highlightedIndex:So(i,"highlightedIndex"),selectedItem:i.items[t.index],inputValue:i.itemToString(i.items[t.index])};break;case Fo:o=e.isOpen?{highlightedIndex:Vn(e.highlightedIndex,1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:a&&null==e.selectedItem?-1:Po(i,e,1),isOpen:i.items.length>=0};break;case Vo:o=e.isOpen?a?To(i,e.highlightedIndex):{highlightedIndex:Vn(e.highlightedIndex,-1,i.items,i.isItemDisabled,!0)}:{highlightedIndex:Po(i,e,-1),isOpen:i.items.length>=0};break;case Ho:o=To(i,e.highlightedIndex);break;case Lo:o=Dt({isOpen:!1,highlightedIndex:-1},!e.isOpen&&{selectedItem:null,inputValue:""});break;case Uo:o={highlightedIndex:Vn(e.highlightedIndex,-10,i.items,i.isItemDisabled,!0)};break;case Qo:o={highlightedIndex:Vn(e.highlightedIndex,10,i.items,i.isItemDisabled,!0)};break;case jo:o={highlightedIndex:Ln(0,!1,i.items,i.isItemDisabled)};break;case zo:o={highlightedIndex:Ln(i.items.length-1,!0,i.items,i.isItemDisabled)};break;case qo:o=Dt({isOpen:!1,highlightedIndex:-1},e.highlightedIndex>=0&&(null==(n=i.items)?void 0:n.length)&&t.selectItem&&{selectedItem:i.items[e.highlightedIndex],inputValue:i.itemToString(i.items[e.highlightedIndex])});break;case _o:o={isOpen:!0,highlightedIndex:So(i,"highlightedIndex"),inputValue:t.inputValue};break;case Ko:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Po(i,e,0)};break;case tr:o={selectedItem:t.selectedItem,inputValue:i.itemToString(t.selectedItem)};break;case rr:o={inputValue:t.inputValue};break;default:return function(e,t,n){var o,r=t.type,i=t.props;switch(r){case n.ItemMouseMove:o={highlightedIndex:t.disabled?-1:t.index};break;case n.MenuMouseLeave:o={highlightedIndex:-1};break;case n.ToggleButtonClick:case n.FunctionToggleMenu:o={isOpen:!e.isOpen,highlightedIndex:e.isOpen?-1:Po(i,e,0)};break;case n.FunctionOpenMenu:o={isOpen:!0,highlightedIndex:Po(i,e,0)};break;case n.FunctionCloseMenu:o={isOpen:!1};break;case n.FunctionSetHighlightedIndex:o={highlightedIndex:t.highlightedIndex};break;case n.FunctionSetInputValue:o={inputValue:t.inputValue};break;case n.FunctionReset:o={highlightedIndex:So(i,"highlightedIndex"),isOpen:So(i,"isOpen"),selectedItem:So(i,"selectedItem"),inputValue:So(i,"inputValue")};break;default:throw new Error("Reducer called without proper action type.")}return Dt({},e,o)}(e,t,ir)}return Dt({},e,o)}var pr=["onMouseLeave","refKey","ref"],fr=["item","index","refKey","ref","onMouseMove","onMouseDown","onClick","onPress","disabled"],mr=["onClick","onPress","refKey","ref"],hr=["onKeyDown","onChange","onInput","onBlur","onChangeText","onClick","refKey","ref"];function gr(t){void 0===t&&(t={}),ur(t,gr);var n=Dt({},cr,t),o=n.items,r=n.scrollIntoView,i=n.environment,a=n.getA11yStatusMessage,s=n.getA11ySelectionMessage,l=n.itemToString,u=lr(dr,n,ar,Ro),c=u[0],d=u[1],p=c.isOpen,f=c.highlightedIndex,m=c.selectedItem,h=c.inputValue,g=e.useRef(null),v=e.useRef({}),y=e.useRef(null),A=e.useRef(null),b=No(),w=wo(n),x=e.useRef(),E=Eo({state:c,props:n}),k=e.useCallback((function(e){return v.current[w.getItemId(e)]}),[w]);Oo(a,[p,f,h,o],Dt({previousResultCount:x.current,items:o,environment:i,itemToString:l},c)),Oo(s,[m],Dt({previousResultCount:x.current,items:o,environment:i,itemToString:l},c));var S=function(t){var n=t.highlightedIndex,o=t.isOpen,r=t.itemRefs,i=t.getItemNodeFromIndex,a=t.menuElement,s=t.scrollIntoView,l=e.useRef(!0);return bo((function(){n<0||!o||!Object.keys(r.current).length||(!1===l.current?l.current=!0:s(i(n),a))}),[n]),l}({menuElement:g.current,highlightedIndex:f,isOpen:p,itemRefs:v,scrollIntoView:r,getItemNodeFromIndex:k});Do({props:n,state:c}),e.useEffect((function(){Co(n,"isOpen")&&y.current&&y.current.focus()}),[]),e.useEffect((function(){b||(x.current=o.length)}));var C=function(t,n,o){var r=e.useRef({isMouseDown:!1,isTouchMove:!1,isTouchEnd:!1});return e.useEffect((function(){if(!t)return wn;var e=n.map((function(e){return e.current}));function i(){r.current.isTouchEnd=!1,r.current.isMouseDown=!0}function a(n){r.current.isMouseDown=!1,jn(n.target,e,t)||o()}function s(){r.current.isTouchEnd=!1,r.current.isTouchMove=!1}function l(){r.current.isTouchMove=!0}function u(n){r.current.isTouchEnd=!0,r.current.isTouchMove||jn(n.target,e,t,!1)||o()}return t.addEventListener("mousedown",i),t.addEventListener("mouseup",a),t.addEventListener("touchstart",s),t.addEventListener("touchmove",l),t.addEventListener("touchend",u),function(){t.removeEventListener("mousedown",i),t.removeEventListener("mouseup",a),t.removeEventListener("touchstart",s),t.removeEventListener("touchmove",l),t.removeEventListener("touchend",u)}}),[t,o]),r.current}(i,[A,g,y],e.useCallback((function(){E.current.state.isOpen&&d({type:qo,selectItem:!1})}),[d,E])),P=Io("getInputProps","getMenuProps");e.useEffect((function(){p||(v.current={})}),[p]),e.useEffect((function(){var e;p&&null!=i&&i.document&&null!=y&&null!=(e=y.current)&&e.focus&&i.document.activeElement!==y.current&&y.current.focus()}),[p,i]);var I=e.useMemo((function(){return{ArrowDown:function(e){e.preventDefault(),d({type:Fo,altKey:e.altKey})},ArrowUp:function(e){e.preventDefault(),d({type:Vo,altKey:e.altKey})},Home:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:jo}))},End:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:zo}))},Escape:function(e){var t=E.current.state;(t.isOpen||t.inputValue||t.selectedItem||t.highlightedIndex>-1)&&(e.preventDefault(),d({type:Lo}))},Enter:function(e){E.current.state.isOpen&&229!==e.which&&(e.preventDefault(),d({type:Ho}))},PageUp:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:Uo}))},PageDown:function(e){E.current.state.isOpen&&(e.preventDefault(),d({type:Qo}))}}}),[d,E]),O=e.useCallback((function(e){return Dt({id:w.labelId,htmlFor:w.inputId},e)}),[w]),D=e.useCallback((function(e,t){var n,o=void 0===e?{}:e,r=o.onMouseLeave,i=o.refKey,a=void 0===i?"ref":i,s=o.ref,l=Ot(o,pr),u=(void 0===t?{}:t).suppressRefError;return P("getMenuProps",void 0!==u&&u,a,g),Dt(((n={})[a]=Cn(s,(function(e){g.current=e})),n.id=w.menuId,n.role="listbox",n["aria-labelledby"]=l&&l["aria-label"]?void 0:""+w.labelId,n.onMouseLeave=Sn(r,(function(){d({type:Wo})})),n),l)}),[d,P,w]),T=e.useCallback((function(e){var t,n,o=void 0===e?{}:e,r=o.item,i=o.index,a=o.refKey,s=void 0===a?"ref":a,l=o.ref,u=o.onMouseMove,c=o.onMouseDown,p=o.onClick;o.onPress;var f=o.disabled,m=Ot(o,fr);void 0!==f&&console.warn('Passing "disabled" as an argument to getItemProps is not supported anymore. Please use the isItemDisabled prop from useCombobox.');var h=E.current,g=h.props,y=h.state,A=function(e,t,n,o){var r,i;if(void 0===e){if(void 0===t)throw new Error(o);r=n[t],i=t}else i=void 0===t?n.indexOf(e):t,r=e;return[r,i]}(r,i,g.items,"Pass either item or index to getItemProps!"),b=A[0],x=A[1],k=g.isItemDisabled(b,x),P=p;return Dt(((t={})[s]=Cn(l,(function(e){e&&(v.current[w.getItemId(x)]=e)})),t["aria-disabled"]=k,t["aria-selected"]=""+(x===y.highlightedIndex),t.id=w.getItemId(x),t.role="option",t),!k&&((n={}).onClick=Sn(P,(function(){d({type:Zo,index:x})})),n),{onMouseMove:Sn(u,(function(){C.isTouchEnd||x===y.highlightedIndex||(S.current=!1,d({type:Go,index:x,disabled:k}))})),onMouseDown:Sn(c,(function(e){return e.preventDefault()}))},m)}),[d,w,E,C,S]),R=e.useCallback((function(e){var t,n=void 0===e?{}:e,o=n.onClick;n.onPress;var r=n.refKey,i=void 0===r?"ref":r,a=n.ref,s=Ot(n,mr),l=E.current.state;return Dt(((t={})[i]=Cn(a,(function(e){A.current=e})),t["aria-controls"]=w.menuId,t["aria-expanded"]=l.isOpen,t.id=w.toggleButtonId,t.tabIndex=-1,t),!s.disabled&&Dt({},{onClick:Sn(o,(function(){d({type:Xo})}))}),s)}),[d,E,w]),N=e.useCallback((function(e,t){var n,o=void 0===e?{}:e,r=o.onKeyDown,a=o.onChange,s=o.onInput,l=o.onBlur;o.onChangeText;var u=o.onClick,c=o.refKey,p=void 0===c?"ref":c,f=o.ref,m=Ot(o,hr),h=(void 0===t?{}:t).suppressRefError;P("getInputProps",void 0!==h&&h,p,y);var g,v=E.current.state,A={};m.disabled||((g={}).onChange=Sn(a,s,(function(e){d({type:_o,inputValue:e.target.value})})),g.onKeyDown=Sn(r,(function(e){var t=Fn(e);t&&I[t]&&I[t](e)})),g.onBlur=Sn(l,(function(e){if(null!=i&&i.document&&v.isOpen&&!C.isMouseDown){var t=null===e.relatedTarget&&i.document.activeElement!==i.document.body;d({type:qo,selectItem:!t})}})),g.onClick=Sn(u,(function(){d({type:Ko})})),A=g);return Dt(((n={})[p]=Cn(f,(function(e){y.current=e})),n["aria-activedescendant"]=v.isOpen&&v.highlightedIndex>-1?w.getItemId(v.highlightedIndex):"",n["aria-autocomplete"]="list",n["aria-controls"]=w.menuId,n["aria-expanded"]=v.isOpen,n["aria-labelledby"]=m&&m["aria-label"]?void 0:w.labelId,n.autoComplete="off",n.id=w.inputId,n.role="combobox",n.value=v.inputValue,n),A,m)}),[d,w,i,I,E,C,P]),B=e.useCallback((function(){d({type:Yo})}),[d]),M=e.useCallback((function(){d({type:$o})}),[d]),F=e.useCallback((function(){d({type:Jo})}),[d]),V=e.useCallback((function(e){d({type:er,highlightedIndex:e})}),[d]),L=e.useCallback((function(e){d({type:tr,selectedItem:e})}),[d]);return{getItemProps:T,getLabelProps:O,getMenuProps:D,getInputProps:N,getToggleButtonProps:R,toggleMenu:B,openMenu:F,closeMenu:M,setHighlightedIndex:V,setInputValue:e.useCallback((function(e){d({type:nr,inputValue:e})}),[d]),selectItem:L,reset:e.useCallback((function(){d({type:or})}),[d]),highlightedIndex:f,isOpen:p,selectedItem:m,inputValue:h}}gr.stateChangeTypes=ir,Dt({},Bo,{selectedItems:ln.array,initialSelectedItems:ln.array,defaultSelectedItems:ln.array,getA11yRemovalMessage:ln.func,activeIndex:ln.number,initialActiveIndex:ln.number,defaultActiveIndex:ln.number,onActiveIndexChange:ln.func,onSelectedItemsChange:ln.func,keyNavigationNext:ln.string,keyNavigationPrevious:ln.string}),process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const vr=e.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),yr=e.createContext({}),Ar=e.createContext(null),br="undefined"!=typeof window,wr=br?e.useLayoutEffect:e.useEffect,xr=e.createContext({strict:!1}),Er=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),kr="data-"+Er("framerAppearId"),Sr=!1;const Cr=["read","resolveKeyframes","update","preRender","render","postRender"];function Pr(e,t){let n=!1,o=!0;const r={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=Cr.reduce(((e,t)=>(e[t]=function(e){let t=new Set,n=new Set,o=!1,r=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,r=!1,a=!1)=>{const s=a&&o?t:n;return r&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{n.delete(e),i.delete(e)},process:e=>{a=e,o?r=!0:(o=!0,[t,n]=[n,t],n.clear(),t.forEach(s),o=!1,r&&(r=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:p}=a,f=()=>{const i=performance.now();n=!1,r.delta=o?1e3/60:Math.max(Math.min(i-r.timestamp,40),1),r.timestamp=i,r.isProcessing=!0,s.process(r),l.process(r),u.process(r),c.process(r),d.process(r),p.process(r),r.isProcessing=!1,n&&t&&(o=!1,e(f))};return{schedule:Cr.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(n||(n=!0,o=!0,r.isProcessing||e(f)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<Cr.length;t++)a[Cr[t]].cancel(e)},state:r,steps:a}}const{schedule:Ir,cancel:Or}=Pr(queueMicrotask,!1);function Dr(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}const Tr=e.createContext({});let Rr=!1;function Nr(t,n,o,r,i){const{visualElement:a}=e.useContext(yr),s=e.useContext(xr),l=e.useContext(Ar),u=e.useContext(vr).reducedMotion,c=e.useRef();r=r||s.renderer,!c.current&&r&&(c.current=r(t,{visualState:n,parent:a,props:o,presenceContext:l,blockInitialAnimation:!!l&&!1===l.initial,reducedMotionConfig:u}));const d=c.current,p=e.useContext(Tr);!d||d.projection||!i||"html"!==d.type&&"svg"!==d.type||function(e,t,n,o){const{layoutId:r,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Mr(e.parent)),e.projection.setOptions({layoutId:r,layout:i,alwaysMeasureLayout:Boolean(a)||s&&Dr(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:o,layoutScroll:l,layoutRoot:u})}(c.current,o,i,p),e.useInsertionEffect((()=>{d&&d.update(o,l)}));const f=e.useRef(Boolean(o[kr]&&!window.HandoffComplete));return wr((()=>{d&&(d.updateFeatures(),Ir.render(d.render),f.current&&d.animationState&&d.animationState.animateChanges())})),e.useEffect((()=>{d&&(!f.current&&d.animationState&&d.animationState.animateChanges(),f.current&&(f.current=!1,Rr||(Rr=!0,queueMicrotask(Br))))})),d}function Br(){window.HandoffComplete=!0}function Mr(e){if(e)return!1!==e.options.allowProjection?e.projection:Mr(e.parent)}function Fr(t,n,o){return e.useCallback((e=>{e&&t.mount&&t.mount(e),n&&(e?n.mount(e):n.unmount()),o&&("function"==typeof o?o(e):Dr(o)&&(o.current=e))}),[n])}function Vr(e){return"string"==typeof e||Array.isArray(e)}function Lr(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const jr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],zr=["initial",...jr];function Ur(e){return Lr(e.animate)||zr.some((t=>Vr(e[t])))}function Qr(e){return Boolean(Ur(e)||e.variants)}function Hr(t){const{initial:n,animate:o}=function(e,t){if(Ur(e)){const{initial:t,animate:n}=e;return{initial:!1===t||Vr(t)?t:void 0,animate:Vr(n)?n:void 0}}return!1!==e.inherit?t:{}}(t,e.useContext(yr));return e.useMemo((()=>({initial:n,animate:o})),[_r(n),_r(o)])}function _r(e){return Array.isArray(e)?e.join(" "):e}const qr={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Kr={};for(const e in qr)Kr[e]={isEnabled:t=>qr[e].some((e=>!!t[e]))};const Wr=e.createContext({}),Gr=Symbol.for("motionComponentSymbol"),Zr=e=>e;let Xr=Zr,Yr=Zr;function Jr({preloadedFeatures:n,createVisualElement:o,useRender:r,useVisualState:i,Component:a}){n&&function(e){for(const t in e)Kr[t]={...Kr[t],...e[t]}}(n);const s=e.forwardRef((function(s,l){let u;const c={...e.useContext(vr),...s,layoutId:$r(s)},{isStatic:d}=c,p=Hr(s),f=i(s,d);if(!d&&br){!function(t,n){const o=e.useContext(xr).strict;if("production"!==process.env.NODE_ENV&&n&&o){const e="You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";t.ignoreStrict?Xr(!1,e):Yr(!1,e)}}(c,n);const t=function(e){const{drag:t,layout:n}=Kr;if(!t&&!n)return{};const o={...t,...n};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==n?void 0:n.isEnabled(e))?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}(c);u=t.MeasureLayout,p.visualElement=Nr(a,f,c,o,t.ProjectionNode)}return t.jsxs(yr.Provider,{value:p,children:[u&&p.visualElement?t.jsx(u,{visualElement:p.visualElement,...c}):null,r(a,s,Fr(f,p.visualElement,l),f,d,p.visualElement)]})}));return s[Gr]=a,s}function $r({layoutId:t}){const n=e.useContext(Wr).id;return n&&void 0!==t?n+"-"+t:t}function ei(e){function t(t,n={}){return Jr(e(t,n))}if("undefined"==typeof Proxy)return t;const n=new Map;return new Proxy(t,{get:(e,o)=>(n.has(o)||n.set(o,t(o)),n.get(o))})}"production"!==process.env.NODE_ENV&&(Xr=(e,t)=>{e||"undefined"==typeof console||console.warn(t)},Yr=(e,t)=>{if(!e)throw new Error(t)});const ti=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ni(e){return"string"==typeof e&&!e.includes("-")&&!!(ti.indexOf(e)>-1||/[A-Z]/u.test(e))}const oi={};const ri=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],ii=new Set(ri);function ai(e,{layout:t,layoutId:n}){return ii.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!oi[e]||"opacity"===e)}const si=e=>Boolean(e&&e.getVelocity),li=(e,t)=>t&&"number"==typeof e?t.transform(e):e,ui=(e,t,n)=>n>t?t:n<e?e:n,ci={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},di={...ci,transform:e=>ui(0,1,e)},pi={...ci,default:1},fi=e=>Math.round(1e5*e)/1e5,mi=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,hi=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,gi=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu;function vi(e){return"string"==typeof e}const yi=e=>({test:t=>vi(t)&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Ai=yi("deg"),bi=yi("%"),wi=yi("px"),xi=yi("vh"),Ei=yi("vw"),ki={...bi,parse:e=>bi.parse(e)/100,transform:e=>bi.transform(100*e)},Si={...ci,transform:Math.round},Ci={borderWidth:wi,borderTopWidth:wi,borderRightWidth:wi,borderBottomWidth:wi,borderLeftWidth:wi,borderRadius:wi,radius:wi,borderTopLeftRadius:wi,borderTopRightRadius:wi,borderBottomRightRadius:wi,borderBottomLeftRadius:wi,width:wi,maxWidth:wi,height:wi,maxHeight:wi,size:wi,top:wi,right:wi,bottom:wi,left:wi,padding:wi,paddingTop:wi,paddingRight:wi,paddingBottom:wi,paddingLeft:wi,margin:wi,marginTop:wi,marginRight:wi,marginBottom:wi,marginLeft:wi,rotate:Ai,rotateX:Ai,rotateY:Ai,rotateZ:Ai,scale:pi,scaleX:pi,scaleY:pi,scaleZ:pi,skew:Ai,skewX:Ai,skewY:Ai,distance:wi,translateX:wi,translateY:wi,translateZ:wi,x:wi,y:wi,z:wi,perspective:wi,transformPerspective:wi,opacity:di,originX:ki,originY:ki,originZ:wi,zIndex:Si,backgroundPositionX:wi,backgroundPositionY:wi,fillOpacity:di,strokeOpacity:di,numOctaves:Si},Pi={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Ii=ri.length;const Oi=e=>t=>"string"==typeof t&&t.startsWith(e),Di=Oi("--"),Ti=Oi("var(--"),Ri=e=>!!Ti(e)&&Ni.test(e.split("/*")[0].trim()),Ni=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Bi(e,t,n){const{style:o,vars:r,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const n=t[e];if(ii.has(e))a=!0;else if(Di(e))r[e]=n;else{const t=li(n,Ci[e]);e.startsWith("origin")?(s=!0,i[e]=t):o[e]=t}}if(t.transform||(a||n?o.transform=function(e,t,n){let o="",r=!0;for(let i=0;i<Ii;i++){const a=ri[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||n){const e=li(s,Ci[a]);l||(r=!1,o+=`${Pi[a]||a}(${e}) `),n&&(t[a]=e)}}return o=o.trim(),n?o=n(t,r?"":o):r&&(o="none"),o}(t,e.transform,n):o.transform&&(o.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:n=0}=i;o.transformOrigin=`${e} ${t} ${n}`}}const Mi=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Fi(e,t,n){for(const o in t)si(t[o])||ai(o,n)||(e[o]=t[o])}function Vi(t,n){const o={};return Fi(o,t.style||{},t),Object.assign(o,function({transformTemplate:t},n){return e.useMemo((()=>{const e=Mi();return Bi(e,n,t),Object.assign({},e.vars,e.style)}),[n])}(t,n)),o}function Li(e,t){const n={},o=Vi(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,o.userSelect=o.WebkitUserSelect=o.WebkitTouchCallout="none",o.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=o,n}const ji=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function zi(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ji.has(e)}let Ui=e=>!zi(e);try{(Qi=require("@emotion/is-prop-valid").default)&&(Ui=e=>e.startsWith("on")?!zi(e):Qi(e))}catch(e){}var Qi;function Hi(e,t,n){return"string"==typeof e?e:wi.transform(t+n*e)}const _i={offset:"stroke-dashoffset",array:"stroke-dasharray"},qi={offset:"strokeDashoffset",array:"strokeDasharray"};function Ki(e,{attrX:t,attrY:n,attrScale:o,originX:r,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(Bi(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:p,style:f,dimensions:m}=e;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==r||void 0!==i||f.transform)&&(f.transformOrigin=function(e,t,n){return`${Hi(t,e.x,e.width)} ${Hi(n,e.y,e.height)}`}(m,void 0!==r?r:.5,void 0!==i?i:.5)),void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==o&&(p.scale=o),void 0!==a&&function(e,t,n=1,o=0,r=!0){e.pathLength=1;const i=r?_i:qi;e[i.offset]=wi.transform(-o);const a=wi.transform(t),s=wi.transform(n);e[i.array]=`${a} ${s}`}(p,a,s,l,!1)}const Wi=()=>({...Mi(),attrs:{}}),Gi=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Zi(t,n,o,r){const i=e.useMemo((()=>{const e=Wi();return Ki(e,n,Gi(r),t.transformTemplate),{...e.attrs,style:{...e.style}}}),[n]);if(t.style){const e={};Fi(e,t.style,t),i.style={...e,...i.style}}return i}function Xi(t=!1){return(n,o,r,{latestValues:i},a)=>{const s=(ni(n)?Zi:Li)(o,i,a,n),l=function(e,t,n){const o={};for(const r in e)"values"===r&&"object"==typeof e.values||(Ui(r)||!0===n&&zi(r)||!t&&!zi(r)||e.draggable&&r.startsWith("onDrag"))&&(o[r]=e[r]);return o}(o,"string"==typeof n,t),u=n!==e.Fragment?{...l,...s,ref:r}:{},{children:c}=o,d=e.useMemo((()=>si(c)?c.get():c),[c]);return e.createElement(n,{...u,children:d})}}function Yi(e,{style:t,vars:n},o,r){Object.assign(e.style,t,r&&r.getProjectionStyles(o));for(const t in n)e.style.setProperty(t,n[t])}const Ji=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function $i(e,t,n,o){Yi(e,t,void 0,o);for(const n in t.attrs)e.setAttribute(Ji.has(n)?n:Er(n),t.attrs[n])}function ea(e,t,n){var o;const{style:r}=e,i={};for(const a in r)(si(r[a])||t.style&&si(t.style[a])||ai(a,e)||void 0!==(null===(o=null==n?void 0:n.getValue(a))||void 0===o?void 0:o.liveStyle))&&(i[a]=r[a]);return n&&r&&"string"==typeof r.willChange&&(n.applyWillChange=!1),i}function ta(e,t,n){const o=ea(e,t,n);for(const n in e)if(si(e[n])||si(t[n])){o[-1!==ri.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]}return o}function na(e){const t=[{},{}];return null==e||e.values.forEach(((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()})),t}function oa(e,t,n,o){if("function"==typeof t){const[r,i]=na(o);t=t(void 0!==n?n:e.custom,r,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[r,i]=na(o);t=t(void 0!==n?n:e.custom,r,i)}return t}const ra=e=>Array.isArray(e),ia=e=>Boolean(e&&"object"==typeof e&&e.mix&&e.toValue),aa=e=>ra(e)?e[e.length-1]||0:e;function sa(e){const t=si(e)?e.get():e;return ia(t)?t.toValue():t}const la=new Set(["opacity","clipPath","filter","transform"]);function ua(e){return ii.has(e)?"transform":la.has(e)?Er(e):void 0}function ca(e,t){-1===e.indexOf(t)&&e.push(t)}function da(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const pa=t=>(n,o)=>{const r=e.useContext(yr),i=e.useContext(Ar),a=()=>function({applyWillChange:e=!1,scrapeMotionValuesFromProps:t,createRenderState:n,onMount:o},r,i,a,s){const l={latestValues:ha(r,i,a,!s&&e,t),renderState:n()};return o&&(l.mount=e=>o(r,e,l)),l}(t,n,r,i,o);return o?a():function(t){const n=e.useRef(null);return null===n.current&&(n.current=t()),n.current}(a)};function fa(e,t){const n=ua(t);n&&ca(e,n)}function ma(e,t,n){const o=Array.isArray(t)?t:[t];for(let t=0;t<o.length;t++){const r=oa(e,o[t]);if(r){const{transitionEnd:e,transition:t,...o}=r;n(o,e)}}}function ha(e,t,n,o,r){var i;const a={},s=[],l=o&&void 0===(null===(i=e.style)||void 0===i?void 0:i.willChange),u=r(e,{});for(const e in u)a[e]=sa(u[e]);let{initial:c,animate:d}=e;const p=Ur(e),f=Qr(e);t&&f&&!p&&!1!==e.inherit&&(void 0===c&&(c=t.initial),void 0===d&&(d=t.animate));let m=!!n&&!1===n.initial;m=m||!1===c;const h=m?d:c;return h&&"boolean"!=typeof h&&!Lr(h)&&ma(e,h,((e,t)=>{for(const t in e){let n=e[t];if(Array.isArray(n)){n=n[m?n.length-1:0]}null!==n&&(a[t]=n)}for(const e in t)a[e]=t[e]})),l&&(d&&!1!==c&&!Lr(d)&&ma(e,d,(e=>{for(const t in e)fa(s,t)})),s.length&&(a.willChange=s.join(","))),a}const{schedule:ga,cancel:va,state:ya,steps:Aa}=Pr("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Zr,!0),ba={useVisualState:pa({scrapeMotionValuesFromProps:ta,createRenderState:Wi,onMount:(e,t,{renderState:n,latestValues:o})=>{ga.read((()=>{try{n.dimensions="function"==typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(e){n.dimensions={x:0,y:0,width:0,height:0}}})),ga.render((()=>{Ki(n,o,Gi(t.tagName),e.transformTemplate),$i(t,n)}))}})},wa={useVisualState:pa({applyWillChange:!0,scrapeMotionValuesFromProps:ea,createRenderState:Mi})};function xa(e,t,n,o={passive:!0}){return e.addEventListener(t,n,o),()=>e.removeEventListener(t,n)}const Ea=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary;function ka(e,t="page"){return{point:{x:e[`${t}X`],y:e[`${t}Y`]}}}const Sa=e=>t=>Ea(t)&&e(t,ka(t));function Ca(e,t,n,o){return xa(e,t,Sa(n),o)}const Pa=(e,t)=>n=>t(e(n)),Ia=(...e)=>e.reduce(Pa);function Oa(e){let t=null;return()=>{const n=()=>{t=null};return null===t&&(t=e,n)}}const Da=Oa("dragHorizontal"),Ta=Oa("dragVertical");function Ra(e){let t=!1;if("y"===e)t=Ta();else if("x"===e)t=Da();else{const e=Da(),n=Ta();e&&n?t=()=>{e(),n()}:(e&&e(),n&&n())}return t}function Na(){const e=Ra(!0);return!e||(e(),!1)}class Ba{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ma(e,t){const n=t?"pointerenter":"pointerleave",o=t?"onHoverStart":"onHoverEnd";return Ca(e.current,n,((n,r)=>{if("touch"===n.pointerType||Na())return;const i=e.getProps();e.animationState&&i.whileHover&&e.animationState.setActive("whileHover",t);const a=i[o];a&&ga.postRender((()=>a(n,r)))}),{passive:!e.getProps()[o]})}const Fa=(e,t)=>!!t&&(e===t||Fa(e,t.parentElement));function Va(e,t){if(!t)return;const n=new PointerEvent("pointer"+e);t(n,ka(n))}const La=new WeakMap,ja=new WeakMap,za=e=>{const t=La.get(e.target);t&&t(e)},Ua=e=>{e.forEach(za)};function Qa(e,t,n){const o=function({root:e,...t}){const n=e||document;ja.has(n)||ja.set(n,{});const o=ja.get(n),r=JSON.stringify(t);return o[r]||(o[r]=new IntersectionObserver(Ua,{root:e,...t})),o[r]}(t);return La.set(e,n),o.observe(e),()=>{La.delete(e),o.unobserve(e)}}const Ha={some:0,all:1};const _a={inView:{Feature:class extends Ba{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:o="some",once:r}=e,i={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof o?o:Ha[o]};return Qa(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,r&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:n,onViewportLeave:o}=this.node.getProps(),i=t?n:o;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Ba{constructor(){super(...arguments),this.removeStartListeners=Zr,this.removeEndListeners=Zr,this.removeAccessibleListeners=Zr,this.startPointerPress=(e,t)=>{if(this.isPressing)return;this.removeEndListeners();const n=this.node.getProps(),o=Ca(window,"pointerup",((e,t)=>{if(!this.checkPressEnd())return;const{onTap:n,onTapCancel:o,globalTapTarget:r}=this.node.getProps(),i=r||Fa(this.node.current,e.target)?n:o;i&&ga.update((()=>i(e,t)))}),{passive:!(n.onTap||n.onPointerUp)}),r=Ca(window,"pointercancel",((e,t)=>this.cancelPress(e,t)),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=Ia(o,r),this.startPress(e,t)},this.startAccessiblePress=()=>{const e=xa(this.node.current,"keydown",(e=>{if("Enter"!==e.key||this.isPressing)return;this.removeEndListeners(),this.removeEndListeners=xa(this.node.current,"keyup",(e=>{"Enter"===e.key&&this.checkPressEnd()&&Va("up",((e,t)=>{const{onTap:n}=this.node.getProps();n&&ga.postRender((()=>n(e,t)))}))})),Va("down",((e,t)=>{this.startPress(e,t)}))})),t=xa(this.node.current,"blur",(()=>{this.isPressing&&Va("cancel",((e,t)=>this.cancelPress(e,t)))}));this.removeAccessibleListeners=Ia(e,t)}}startPress(e,t){this.isPressing=!0;const{onTapStart:n,whileTap:o}=this.node.getProps();o&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&ga.postRender((()=>n(e,t)))}checkPressEnd(){this.removeEndListeners(),this.isPressing=!1;return this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Na()}cancelPress(e,t){if(!this.checkPressEnd())return;const{onTapCancel:n}=this.node.getProps();n&&ga.postRender((()=>n(e,t)))}mount(){const e=this.node.getProps(),t=Ca(e.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=xa(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Ia(t,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}},focus:{Feature:class extends Ba{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ia(xa(this.node.current,"focus",(()=>this.onFocus())),xa(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Ba{mount(){this.unmount=Ia(Ma(this.node,!0),Ma(this.node,!1))}unmount(){}}}};function qa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let o=0;o<n;o++)if(t[o]!==e[o])return!1;return!0}function Ka(e,t,n){const o=e.getProps();return oa(o,t,void 0!==n?n:o.custom,e)}const Wa=e=>1e3*e,Ga=e=>e/1e3,Za={type:"spring",stiffness:500,damping:25,restSpeed:10},Xa={type:"keyframes",duration:.8},Ya={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Ja=(e,{keyframes:t})=>t.length>2?Xa:ii.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:Za:Ya;function $a(e,t){return e[t]||e.default||e}const es=e=>null!==e;function ts(e,{repeat:t,repeatType:n="loop"},o){const r=e.filter(es),i=t&&"loop"!==n&&t%2==1?0:r.length-1;return i&&void 0!==o?o:r[i]}let ns;function os(){ns=void 0}const rs={now:()=>(void 0===ns&&rs.set(ya.isProcessing||Sr?ya.timestamp:performance.now()),ns),set:e=>{ns=e,queueMicrotask(os)}},is=e=>/^0[^.\s]+$/u.test(e);const as=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ss=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ls(e,t,n=1){Yr(n<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[o,r]=function(e){const t=ss.exec(e);if(!t)return[,];const[,n,o,r]=t;return[`--${null!=n?n:o}`,r]}(e);if(!o)return;const i=window.getComputedStyle(t).getPropertyValue(o);if(i){const e=i.trim();return as(e)?parseFloat(e):e}return Ri(r)?ls(r,t,n+1):r}const us=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),cs=e=>e===ci||e===wi,ds=(e,t)=>parseFloat(e.split(", ")[t]),ps=(e,t)=>(n,{transform:o})=>{if("none"===o||!o)return 0;const r=o.match(/^matrix3d\((.+)\)$/u);if(r)return ds(r[1],t);{const t=o.match(/^matrix\((.+)\)$/u);return t?ds(t[1],e):0}},fs=new Set(["x","y","z"]),ms=ri.filter((e=>!fs.has(e)));const hs={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:ps(4,13),y:ps(5,14)};hs.translateX=hs.x,hs.translateY=hs.y;const gs=e=>t=>t.test(e),vs=[ci,wi,bi,Ai,Ei,xi,{test:e=>"auto"===e,parse:e=>e}],ys=e=>vs.find(gs(e)),As=new Set;let bs=!1,ws=!1;function xs(){if(ws){const e=Array.from(As).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),n=new Map;t.forEach((e=>{const t=function(e){const t=[];return ms.forEach((n=>{const o=e.getValue(n);void 0!==o&&(t.push([n,o.get()]),o.set(n.startsWith("scale")?1:0))})),t}(e);t.length&&(n.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=n.get(e);t&&t.forEach((([t,n])=>{var o;null===(o=e.getValue(t))||void 0===o||o.set(n)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}ws=!1,bs=!1,As.forEach((e=>e.complete())),As.clear()}function Es(){As.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(ws=!0)}))}class ks{constructor(e,t,n,o,r,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=o,this.element=r,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(As.add(this),bs||(bs=!0,ga.read(Es),ga.resolveKeyframes(xs))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:n,motionValue:o}=this;for(let r=0;r<e.length;r++)if(null===e[r])if(0===r){const r=null==o?void 0:o.get(),i=e[e.length-1];if(void 0!==r)e[0]=r;else if(n&&t){const o=n.readValue(t,i);null!=o&&(e[0]=o)}void 0===e[0]&&(e[0]=i),o&&void 0===r&&o.set(e[0])}else e[r]=e[r-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),As.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,As.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const Ss=(e,t)=>n=>Boolean(vi(n)&&gi.test(n)&&n.startsWith(e)||t&&!function(e){return null==e}(n)&&Object.prototype.hasOwnProperty.call(n,t)),Cs=(e,t,n)=>o=>{if(!vi(o))return o;const[r,i,a,s]=o.match(mi);return{[e]:parseFloat(r),[t]:parseFloat(i),[n]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Ps={...ci,transform:e=>Math.round((e=>ui(0,255,e))(e))},Is={test:Ss("rgb","red"),parse:Cs("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:o=1})=>"rgba("+Ps.transform(e)+", "+Ps.transform(t)+", "+Ps.transform(n)+", "+fi(di.transform(o))+")"};const Os={test:Ss("#"),parse:function(e){let t="",n="",o="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),o=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),o=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,o+=o,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(o,16),alpha:r?parseInt(r,16)/255:1}},transform:Is.transform},Ds={test:Ss("hsl","hue"),parse:Cs("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:o=1})=>"hsla("+Math.round(e)+", "+bi.transform(fi(t))+", "+bi.transform(fi(n))+", "+fi(di.transform(o))+")"},Ts={test:e=>Is.test(e)||Os.test(e)||Ds.test(e),parse:e=>Is.test(e)?Is.parse(e):Ds.test(e)?Ds.parse(e):Os.parse(e),transform:e=>vi(e)?e:e.hasOwnProperty("red")?Is.transform(e):Ds.transform(e)};const Rs="number",Ns="color",Bs="var",Ms="var(",Fs="${}",Vs=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Ls(e){const t=e.toString(),n=[],o={color:[],number:[],var:[]},r=[];let i=0;const a=t.replace(Vs,(e=>(Ts.test(e)?(o.color.push(i),r.push(Ns),n.push(Ts.parse(e))):e.startsWith(Ms)?(o.var.push(i),r.push(Bs),n.push(e)):(o.number.push(i),r.push(Rs),n.push(parseFloat(e))),++i,Fs))).split(Fs);return{values:n,split:a,indexes:o,types:r}}function js(e){return Ls(e).values}function zs(e){const{split:t,types:n}=Ls(e),o=t.length;return e=>{let r="";for(let i=0;i<o;i++)if(r+=t[i],void 0!==e[i]){const t=n[i];r+=t===Rs?fi(e[i]):t===Ns?Ts.transform(e[i]):e[i]}return r}}const Us=e=>"number"==typeof e?0:e;const Qs={test:function(e){var t,n;return isNaN(e)&&vi(e)&&((null===(t=e.match(mi))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(hi))||void 0===n?void 0:n.length)||0)>0},parse:js,createTransformer:zs,getAnimatableNone:function(e){const t=js(e);return zs(e)(t.map(Us))}},Hs=new Set(["brightness","contrast","saturate","opacity"]);function _s(e){const[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[o]=n.match(mi)||[];if(!o)return e;const r=n.replace(o,"");let i=Hs.has(t)?1:0;return o!==n&&(i*=100),t+"("+i+r+")"}const qs=/\b([a-z-]*)\(.*?\)/gu,Ks={...Qs,getAnimatableNone:e=>{const t=e.match(qs);return t?t.map(_s).join(" "):e}},Ws={...Ci,color:Ts,backgroundColor:Ts,outlineColor:Ts,fill:Ts,stroke:Ts,borderColor:Ts,borderTopColor:Ts,borderRightColor:Ts,borderBottomColor:Ts,borderLeftColor:Ts,filter:Ks,WebkitFilter:Ks},Gs=e=>Ws[e];function Zs(e,t){let n=Gs(e);return n!==Ks&&(n=Qs),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Xs=new Set(["auto","none","0"]);class Ys extends ks{constructor(e,t,n,o){super(e,t,n,o,null==o?void 0:o.owner,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:n}=this;if(!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let o=e[n];if("string"==typeof o&&(o=o.trim(),Ri(o))){const r=ls(o,t.current);void 0!==r&&(e[n]=r),n===e.length-1&&(this.finalKeyframe=o)}}if(this.resolveNoneKeyframes(),!us.has(n)||2!==e.length)return;const[o,r]=e,i=ys(o),a=ys(r);if(i!==a)if(cs(i)&&cs(a))for(let t=0;t<e.length;t++){const n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)("number"==typeof(o=e[t])?0===o:null===o||"none"===o||"0"===o||is(o))&&n.push(t);var o;n.length&&function(e,t,n){let o,r=0;for(;r<e.length&&!o;){const t=e[r];"string"==typeof t&&!Xs.has(t)&&Ls(t).values.length&&(o=e[r]),r++}if(o&&n)for(const r of t)e[r]=Zs(n,o)}(e,n,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:n}=this;if(!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=hs[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const o=t[t.length-1];void 0!==o&&e.getValue(n,o).jump(o,!1)}measureEndState(){var e;const{element:t,name:n,unresolvedKeyframes:o}=this;if(!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const i=o.length-1,a=o[i];o[i]=hs[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,n])=>{t.getValue(e).set(n)})),this.resolveNoneKeyframes()}}function Js(e){let t;return()=>(void 0===t&&(t=e()),t)}const $s=(e,t)=>"zIndex"!==t&&(!("number"!=typeof e&&!Array.isArray(e))||!("string"!=typeof e||!Qs.test(e)&&"0"!==e||e.startsWith("url(")));class el{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:o=0,repeatDelay:r=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.options={autoplay:e,delay:t,type:n,repeat:o,repeatDelay:r,repeatType:i,...a},this.updateFinishedPromise()}get resolved(){return this._resolved||this.hasAttemptedResolve||(Es(),xs()),this._resolved}onKeyframesResolved(e,t){this.hasAttemptedResolve=!0;const{name:n,type:o,velocity:r,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!function(e,t,n,o){const r=e[0];if(null===r)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=$s(r,t),s=$s(i,t);return Xr(a===s,`You are trying to animate ${t} from "${r}" to "${i}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||"spring"===n&&o)}(e,n,o,r)){if(!i)return null==s||s(ts(e,this.options,t)),null==a||a(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}function tl(e,t){return t?e*(1e3/t):0}const nl=5;function ol(e,t,n){const o=Math.max(t-nl,0);return tl(n-e(o),t-o)}const rl=.001,il=.01,al=10,sl=.05,ll=1;function ul({duration:e=800,bounce:t=.25,velocity:n=0,mass:o=1}){let r,i;Xr(e<=Wa(al),"Spring duration must be 10 seconds or less");let a=1-t;a=ui(sl,ll,a),e=ui(il,al,Ga(e)),a<1?(r=t=>{const o=t*a,r=o*e,i=o-n,s=dl(t,a),l=Math.exp(-r);return rl-i/s*l},i=t=>{const o=t*a*e,i=o*n+n,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-o),u=dl(Math.pow(t,2),a);return(-r(t)+rl>0?-1:1)*((i-s)*l)/u}):(r=t=>Math.exp(-t*e)*((t-n)*e+1)-rl,i=t=>Math.exp(-t*e)*(e*e*(n-t)));const s=function(e,t,n){let o=n;for(let n=1;n<cl;n++)o-=e(o)/t(o);return o}(r,i,5/e);if(e=Wa(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*o;return{stiffness:t,damping:2*a*Math.sqrt(o*t),duration:e}}}const cl=12;function dl(e,t){return e*Math.sqrt(1-t*t)}const pl=["duration","bounce"],fl=["stiffness","damping","mass"];function ml(e,t){return t.some((t=>void 0!==e[t]))}function hl({keyframes:e,restDelta:t,restSpeed:n,...o}){const r=e[0],i=e[e.length-1],a={done:!1,value:r},{stiffness:s,damping:l,mass:u,duration:c,velocity:d,isResolvedFromDuration:p}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ml(e,fl)&&ml(e,pl)){const n=ul(e);t={...t,...n,mass:1},t.isResolvedFromDuration=!0}return t}({...o,velocity:-Ga(o.velocity||0)}),f=d||0,m=l/(2*Math.sqrt(s*u)),h=i-r,g=Ga(Math.sqrt(s/u)),v=Math.abs(h)<5;let y;if(n||(n=v?.01:2),t||(t=v?.005:.5),m<1){const e=dl(g,m);y=t=>{const n=Math.exp(-m*g*t);return i-n*((f+m*g*h)/e*Math.sin(e*t)+h*Math.cos(e*t))}}else if(1===m)y=e=>i-Math.exp(-g*e)*(h+(f+g*h)*e);else{const e=g*Math.sqrt(m*m-1);y=t=>{const n=Math.exp(-m*g*t),o=Math.min(e*t,300);return i-n*((f+m*g*h)*Math.sinh(o)+e*h*Math.cosh(o))/e}}return{calculatedDuration:p&&c||null,next:e=>{const o=y(e);if(p)a.done=e>=c;else{let r=f;0!==e&&(r=m<1?ol(y,e,o):0);const s=Math.abs(r)<=n,l=Math.abs(i-o)<=t;a.done=s&&l}return a.value=a.done?i:o,a}}}function gl({keyframes:e,velocity:t=0,power:n=.8,timeConstant:o=325,bounceDamping:r=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],p={done:!1,value:d},f=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let m=n*t;const h=d+m,g=void 0===a?h:a(h);g!==h&&(m=g-d);const v=e=>-m*Math.exp(-e/o),y=e=>g+v(e),A=e=>{const t=v(e),n=y(e);p.done=Math.abs(t)<=u,p.value=p.done?g:n};let b,w;const x=e=>{(e=>void 0!==s&&e<s||void 0!==l&&e>l)(p.value)&&(b=e,w=hl({keyframes:[p.value,f(p.value)],velocity:ol(y,e,p.value),damping:r,stiffness:i,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return w||void 0!==b||(t=!0,A(e),x(e)),void 0!==b&&e>=b?w.next(e-b):(!t&&A(e),p)}}}const vl=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,yl=1e-7,Al=12;function bl(e,t,n,o){if(e===t&&n===o)return Zr;const r=t=>function(e,t,n,o,r){let i,a,s=0;do{a=t+(n-t)/2,i=vl(a,o,r)-e,i>0?n=a:t=a}while(Math.abs(i)>yl&&++s<Al);return a}(t,0,1,e,n);return e=>0===e||1===e?e:vl(r(e),t,o)}const wl=bl(.42,0,1,1),xl=bl(0,0,.58,1),El=bl(.42,0,.58,1),kl=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Sl=e=>t=>1-e(1-t),Cl=e=>1-Math.sin(Math.acos(e)),Pl=Sl(Cl),Il=kl(Cl),Ol=bl(.33,1.53,.69,.99),Dl=Sl(Ol),Tl=kl(Dl),Rl={linear:Zr,easeIn:wl,easeInOut:El,easeOut:xl,circIn:Cl,circInOut:Il,circOut:Pl,backIn:Dl,backInOut:Tl,backOut:Ol,anticipate:e=>(e*=2)<1?.5*Dl(e):.5*(2-Math.pow(2,-10*(e-1)))},Nl=e=>{if(Array.isArray(e)){Yr(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,n,o,r]=e;return bl(t,n,o,r)}return"string"==typeof e?(Yr(void 0!==Rl[e],`Invalid easing type '${e}'`),Rl[e]):e},Bl=(e,t,n)=>{const o=t-e;return 0===o?1:(n-e)/o},Ml=(e,t,n)=>e+(t-e)*n;function Fl(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 Vl(e,t){return n=>n>0?t:e}const Ll=(e,t,n)=>{const o=e*e,r=n*(t*t-o)+o;return r<0?0:Math.sqrt(r)},jl=[Os,Is,Ds];function zl(e){const t=(e=>jl.find((t=>t.test(e))))(e);if(Xr(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Ds&&(n=function({hue:e,saturation:t,lightness:n,alpha:o}){e/=360,n/=100;let r=0,i=0,a=0;if(t/=100){const o=n<.5?n*(1+t):n+t-n*t,s=2*n-o;r=Fl(s,o,e+1/3),i=Fl(s,o,e),a=Fl(s,o,e-1/3)}else r=i=a=n;return{red:Math.round(255*r),green:Math.round(255*i),blue:Math.round(255*a),alpha:o}}(n)),n}const Ul=(e,t)=>{const n=zl(e),o=zl(t);if(!n||!o)return Vl(e,t);const r={...n};return e=>(r.red=Ll(n.red,o.red,e),r.green=Ll(n.green,o.green,e),r.blue=Ll(n.blue,o.blue,e),r.alpha=Ml(n.alpha,o.alpha,e),Is.transform(r))},Ql=new Set(["none","hidden"]);function Hl(e,t){return n=>Ml(e,t,n)}function _l(e){return"number"==typeof e?Hl:"string"==typeof e?Ri(e)?Vl:Ts.test(e)?Ul:Wl:Array.isArray(e)?ql:"object"==typeof e?Ts.test(e)?Ul:Kl:Vl}function ql(e,t){const n=[...e],o=n.length,r=e.map(((e,n)=>_l(e)(e,t[n])));return e=>{for(let t=0;t<o;t++)n[t]=r[t](e);return n}}function Kl(e,t){const n={...e,...t},o={};for(const r in n)void 0!==e[r]&&void 0!==t[r]&&(o[r]=_l(e[r])(e[r],t[r]));return e=>{for(const t in o)n[t]=o[t](e);return n}}const Wl=(e,t)=>{const n=Qs.createTransformer(t),o=Ls(e),r=Ls(t);return o.indexes.var.length===r.indexes.var.length&&o.indexes.color.length===r.indexes.color.length&&o.indexes.number.length>=r.indexes.number.length?Ql.has(e)&&!r.values.length||Ql.has(t)&&!o.values.length?function(e,t){return Ql.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}(e,t):Ia(ql(function(e,t){var n;const o=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][r[a]],l=null!==(n=e.values[s])&&void 0!==n?n:0;o[i]=l,r[a]++}return o}(o,r),r.values),n):(Xr(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Vl(e,t))};function Gl(e,t,n){if("number"==typeof e&&"number"==typeof t&&"number"==typeof n)return Ml(e,t,n);return _l(e)(e,t)}function Zl(e,t,{clamp:n=!0,ease:o,mixer:r}={}){const i=e.length;if(Yr(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&e[0]===e[1])return()=>t[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=function(e,t,n){const o=[],r=n||Gl,i=e.length-1;for(let n=0;n<i;n++){let i=r(e[n],e[n+1]);if(t){const e=Array.isArray(t)?t[n]||Zr:t;i=Ia(e,i)}o.push(i)}return o}(t,o,r),s=a.length,l=t=>{let n=0;if(s>1)for(;n<e.length-2&&!(t<e[n+1]);n++);const o=Bl(e[n],e[n+1],t);return a[n](o)};return n?t=>l(ui(e[0],e[i-1],t)):l}function Xl(e){const t=[0];return function(e,t){const n=e[e.length-1];for(let o=1;o<=t;o++){const r=Bl(0,t,o);e.push(Ml(n,1,r))}}(t,e.length-1),t}function Yl({duration:e=300,keyframes:t,times:n,ease:o="easeInOut"}){const r=(e=>Array.isArray(e)&&"number"!=typeof e[0])(o)?o.map(Nl):Nl(o),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(n&&n.length===t.length?n:Xl(t),e),s=Zl(a,t,{ease:Array.isArray(r)?r:(l=t,u=r,l.map((()=>u||El)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Jl=e=>{const t=({timestamp:t})=>e(t);return{start:()=>ga.update(t,!0),stop:()=>va(t),now:()=>ya.isProcessing?ya.timestamp:rs.now()}},$l={decay:gl,inertia:gl,tween:Yl,keyframes:Yl,spring:hl},eu=e=>e/100;class tu extends el{constructor({KeyframeResolver:e=ks,...t}){super(t),this.holdTime=null,this.startTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:n,motionValue:o,keyframes:r}=this.options,i=(e,t)=>this.onKeyframesResolved(e,t);n&&o&&o.owner?this.resolver=o.owner.resolveKeyframes(r,i,n,o):this.resolver=new e(r,i,n,o),this.resolver.scheduleResolve()}initPlayback(e){const{type:t="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:r,velocity:i=0}=this.options,a=$l[t]||Yl;let s,l;a!==Yl&&"number"!=typeof e[0]&&("production"!==process.env.NODE_ENV&&Yr(2===e.length,`Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`),s=Ia(eu,Gl(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===r&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=function(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}(u));const{calculatedDuration:c}=u,d=c+o;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-o}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:n}=this;if(!n){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:o,generator:r,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return r.next(0);const{delay:d,repeat:p,repeatType:f,repeatDelay:m,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,A=r;if(p){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,t=Math.min(t,p+1);Boolean(t%2)&&("reverse"===f?(n=1-n,m&&(n-=m/c)):"mirror"===f&&(A=i)),y=ui(0,1,n)*c}const b=v?{done:!1,value:s[0]}:A.next(y);a&&(b.value=a(b.value));let{done:w}=b;v||null===l||(w=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&w);return x&&void 0!==o&&(b.value=ts(s,this.options,o)),h&&h(b.value),x&&this.finish(),b}get duration(){const{resolved:e}=this;return e?Ga(e.calculatedDuration):0}get time(){return Ga(this.currentTime)}set time(e){e=Wa(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Ga(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Jl,onPlay:t}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime&&"finished"!==this.state||(this.startTime=n),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const nu=e=>Array.isArray(e)&&"number"==typeof e[0];function ou(e){return Boolean(!e||"string"==typeof e&&e in iu||nu(e)||Array.isArray(e)&&e.every(ou))}const ru=([e,t,n,o])=>`cubic-bezier(${e}, ${t}, ${n}, ${o})`,iu={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ru([0,.65,.55,1]),circOut:ru([.55,0,1,.45]),backIn:ru([.31,.01,.66,-.59]),backOut:ru([.33,1.53,.69,.99])};function au(e){return su(e)||iu.easeOut}function su(e){return e?nu(e)?ru(e):Array.isArray(e)?e.map(au):iu[e]:void 0}const lu=Js((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));class uu extends el{constructor(e){super(e);const{name:t,motionValue:n,keyframes:o}=this.options;this.resolver=new Ys(o,((e,t)=>this.onKeyframesResolved(e,t)),t,n),this.resolver.scheduleResolve()}initPlayback(e,t){var n;let{duration:o=300,times:r,ease:i,type:a,motionValue:s,name:l}=this.options;if(!(null===(n=s.owner)||void 0===n?void 0:n.current))return!1;if(function(e){return"spring"===e.type||!ou(e.ease)}(this.options)){const{onComplete:t,onUpdate:n,motionValue:s,...l}=this.options,u=function(e,t){const n=new tu({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let o={done:!1,value:e[0]};const r=[];let i=0;for(;!o.done&&i<2e4;)o=n.sample(i),r.push(o.value),i+=10;return{times:void 0,keyframes:r,duration:i-10,ease:"linear"}}(e,l);1===(e=u.keyframes).length&&(e[1]=e[0]),o=u.duration,r=u.times,i=u.ease,a="keyframes"}const u=function(e,t,n,{delay:o=0,duration:r=300,repeat:i=0,repeatType:a="loop",ease:s,times:l}={}){const u={[t]:n};l&&(u.offset=l);const c=su(s);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:o,duration:r,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(s.owner.current,l,e,{...this.options,duration:o,times:r,ease:i});return u.startTime=rs.now(),this.pendingTimeline?(u.timeline=this.pendingTimeline,this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:n}=this.options;s.set(ts(e,this.options,t)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:o,times:r,type:a,ease:i,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Ga(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Ga(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.currentTime=Wa(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Zr;const{animation:n}=t;n.timeline=e,n.onfinish=null}else this.pendingTimeline=e;return Zr}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:n,duration:o,type:r,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,...l}=this.options,u=new tu({...l,keyframes:n,duration:o,type:r,ease:i,times:a,isGenerator:!0}),c=Wa(this.time);e.setWithVelocity(u.sample(c-10).value,u.sample(c).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:n,repeatDelay:o,repeatType:r,damping:i,type:a}=e;return lu()&&n&&la.has(n)&&t&&t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate&&!o&&"mirror"!==r&&0!==i&&"inertia"!==a}}const cu=Js((()=>void 0!==window.ScrollTimeline));class du{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}then(e,t){return Promise.all(this.animations).then(e).catch(t)}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){const t=this.animations.map((t=>{if(!cu()||!t.attachTimeline)return t.pause(),function(e,t){let n;const o=()=>{const{currentTime:o}=t,r=(null===o?0:o.value)/100;n!==r&&e(r),n=r};return ga.update(o,!0),()=>va(o)}((e=>{t.time=t.duration*e}),e);t.attachTimeline(e)}));return()=>{t.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}const pu=(e,t,n,o={},r,i,a)=>s=>{const l=$a(o,e)||{},u=l.delay||o.delay||0;let{elapsed:c=0}=o;c-=Wa(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete(),a&&a()},onStop:a,name:e,motionValue:t,element:i?void 0:r};(function({when:e,delay:t,delayChildren:n,staggerChildren:o,staggerDirection:r,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(l)||(d={...d,...Ja(e,d)}),d.duration&&(d.duration=Wa(d.duration)),d.repeatDelay&&(d.repeatDelay=Wa(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if((!1===d.type||0===d.duration&&!d.repeatDelay)&&(d.duration=0,0===d.delay&&(p=!0)),p&&!i&&void 0!==t.get()){const e=ts(d.keyframes,l);if(void 0!==e)return ga.update((()=>{d.onUpdate(e),d.onComplete()})),new du([])}return!i&&uu.supports(d)?new uu(d):new tu(d)};class fu{constructor(){this.subscriptions=[]}add(e){return ca(this.subscriptions,e),()=>da(this.subscriptions,e)}notify(e,t,n){const o=this.subscriptions.length;if(o)if(1===o)this.subscriptions[0](e,t,n);else for(let r=0;r<o;r++){const o=this.subscriptions[r];o&&o(e,t,n)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const mu=new Set;function hu(e,t,n){e||mu.has(t)||(console.warn(t),mu.add(t))}class gu{constructor(e,t={}){this.version="11.3.21",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const n=rs.now();this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=rs.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return"production"!==process.env.NODE_ENV&&hu(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new fu);const n=this.events[e].add(t);return"change"===e?()=>{n(),ga.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=rs.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tl(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function vu(e,t){return new gu(e,t)}function yu(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,vu(n))}function Au(e){return e.getProps()[kr]}class bu extends gu{constructor(){super(...arguments),this.output=[],this.counts=new Map}add(e){const t=ua(e);if(!t)return;const n=this.counts.get(t)||0;this.counts.set(t,n+1),0===n&&(this.output.push(t),this.update());let o=!1;return()=>{if(o)return;o=!0;const e=this.counts.get(t)-1;this.counts.set(t,e),0===e&&(da(this.output,t),this.update())}}update(){this.set(this.output.length?this.output.join(", "):"auto")}}function wu(e,t){var n;if(!e.applyWillChange)return;let o=e.getValue("willChange");return o||(null===(n=e.props.style)||void 0===n?void 0:n.willChange)||(o=new bu("auto"),e.addValue("willChange",o)),r=o,Boolean(si(r)&&r.add)?o.add(t):void 0;var r}function xu({protectedKeys:e,needsAnimating:t},n){const o=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,o}function Eu(e,t,{delay:n=0,transitionOverride:o,type:r}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;o&&(a=o);const u=[],c=r&&e.animationState&&e.animationState.getState()[r];for(const t in l){const o=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),r=l[t];if(void 0===r||c&&xu(c,t))continue;const s={delay:n,elapsed:0,...$a(a||{},t)};let d=!1;if(window.HandoffAppearAnimations){const n=Au(e);if(n){const e=window.HandoffAppearAnimations(n,t,o,ga);null!==e&&(s.elapsed=e,d=!0)}}o.start(pu(t,o,r,e.shouldReduceMotion&&ii.has(t)?{type:!1}:s,e,d,wu(e,t)));const p=o.animation;p&&u.push(p)}return s&&Promise.all(u).then((()=>{ga.update((()=>{s&&function(e,t){const n=Ka(e,t);let{transitionEnd:o={},transition:r={},...i}=n||{};i={...i,...o};for(const t in i)yu(e,t,aa(i[t]))}(e,s)}))})),u}function ku(e,t,n={}){var o;const r=Ka(e,t,"exit"===n.type?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);const a=r?()=>Promise.all(Eu(e,r,n)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(o=0)=>{const{delayChildren:r=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,n=0,o=0,r=1,i){const a=[],s=(e.variantChildren.size-1)*o,l=1===r?(e=0)=>e*o:(e=0)=>s-e*o;return Array.from(e.variantChildren).sort(Su).forEach(((e,o)=>{e.notify("AnimationStart",t),a.push(ku(e,t,{...i,delay:n+l(o)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,r+o,a,s,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(n.delay)])}function Su(e,t){return e.sortNodePosition(t)}const Cu=[...jr].reverse(),Pu=jr.length;function Iu(e){return t=>Promise.all(t.map((({animation:t,options:n})=>function(e,t,n={}){let o;if(e.notify("AnimationStart",t),Array.isArray(t)){const r=t.map((t=>ku(e,t,n)));o=Promise.all(r)}else if("string"==typeof t)o=ku(e,t,n);else{const r="function"==typeof t?Ka(e,t,n.custom):t;o=Promise.all(Eu(e,r,n))}return o.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,n))))}function Ou(e,t){return"string"==typeof t?t!==e:!!Array.isArray(t)&&!qa(t,e)}function Du(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Tu(){return{animate:Du(!0),whileInView:Du(),whileHover:Du(),whileTap:Du(),whileDrag:Du(),whileFocus:Du(),exit:Du()}}let Ru=0;const Nu={animation:{Feature:class extends Ba{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=Iu(e),n=Tu(),o=!0;const r=t=>(n,o)=>{var r;const i=Ka(e,o,"exit"===t?null===(r=e.presenceContext)||void 0===r?void 0:r.custom:void 0);if(i){const{transition:e,transitionEnd:t,...o}=i;n={...n,...o,...t}}return n};function i(i){const a=e.getProps(),s=e.getVariantContext(!0)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<Pu;t++){const p=Cu[t],f=n[p],m=void 0!==a[p]?a[p]:s[p],h=Vr(m),g=p===i?f.isActive:null;!1===g&&(d=t);let v=m===s[p]&&m!==a[p]&&h;if(v&&o&&e.manuallyAnimateOnMount&&(v=!1),f.protectedKeys={...c},!f.isActive&&null===g||!m&&!f.prevProp||Lr(m)||"boolean"==typeof m)continue;let y=Ou(f.prevProp,m)||p===i&&f.isActive&&!v&&h||t>d&&h,A=!1;const b=Array.isArray(m)?m:[m];let w=b.reduce(r(p),{});!1===g&&(w={});const{prevResolvedValues:x={}}=f,E={...x,...w},k=t=>{y=!0,u.has(t)&&(A=!0,u.delete(t)),f.needsAnimating[t]=!0;const n=e.getValue(t);n&&(n.liveStyle=!1)};for(const e in E){const t=w[e],n=x[e];if(c.hasOwnProperty(e))continue;let o=!1;o=ra(t)&&ra(n)?!qa(t,n):t!==n,o?null!=t?k(e):u.add(e):void 0!==t&&u.has(e)?k(e):f.protectedKeys[e]=!0}f.prevProp=m,f.prevResolvedValues=w,f.isActive&&(c={...c,...w}),o&&e.blockInitialAnimation&&(y=!1),!y||v&&!A||l.push(...b.map((e=>({animation:e,options:{type:p}}))))}if(u.size){const t={};u.forEach((n=>{const o=e.getBaseTarget(n),r=e.getValue(n);r&&(r.liveStyle=!0),t[n]=null!=o?o:null})),l.push({animation:t})}let p=Boolean(l.length);return!o||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),o=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,o){var r;if(n[t].isActive===o)return Promise.resolve();null===(r=e.variantChildren)||void 0===r||r.forEach((e=>{var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,o)})),n[t].isActive=o;const a=i(t);for(const e in n)n[e].protectedKeys={};return a},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=Tu(),o=!0}}}(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Lr(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Ba{constructor(){super(...arguments),this.id=Ru++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;const o=this.node.animationState.setActive("exit",!e);t&&!e&&o.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}},Bu=(e,t)=>Math.abs(e-t);class Mu{constructor(e,t,{transformPagePoint:n,contextWindow:o,dragSnapToOrigin:r=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=Lu(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,n=function(e,t){const n=Bu(e.x,t.x),o=Bu(e.y,t.y);return Math.sqrt(n**2+o**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!n)return;const{point:o}=e,{timestamp:r}=ya;this.history.push({...o,timestamp:r});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Fu(t,this.transformPagePoint),ga.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:n,onSessionEnd:o,resumeAnimation:r}=this.handlers;if(this.dragSnapToOrigin&&r&&r(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=Lu("pointercancel"===e.type?this.lastMoveEventInfo:Fu(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,i),o&&o(e,i)},!Ea(e))return;this.dragSnapToOrigin=r,this.handlers=t,this.transformPagePoint=n,this.contextWindow=o||window;const i=Fu(ka(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=ya;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,Lu(i,this.history)),this.removeListeners=Ia(Ca(this.contextWindow,"pointermove",this.handlePointerMove),Ca(this.contextWindow,"pointerup",this.handlePointerUp),Ca(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),va(this.updatePoint)}}function Fu(e,t){return t?{point:t(e.point)}:e}function Vu(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Lu({point:e},t){return{point:e,delta:Vu(e,zu(t)),offset:Vu(e,ju(t)),velocity:Uu(t,.1)}}function ju(e){return e[0]}function zu(e){return e[e.length-1]}function Uu(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,o=null;const r=zu(e);for(;n>=0&&(o=e[n],!(r.timestamp-o.timestamp>Wa(t)));)n--;if(!o)return{x:0,y:0};const i=Ga(r.timestamp-o.timestamp);if(0===i)return{x:0,y:0};const a={x:(r.x-o.x)/i,y:(r.y-o.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}const Qu=.9999,Hu=1.0001,_u=-.01,qu=.01;function Ku(e){return e.max-e.min}function Wu(e,t,n,o=.5){e.origin=o,e.originPoint=Ml(t.min,t.max,e.origin),e.scale=Ku(n)/Ku(t),e.translate=Ml(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Qu&&e.scale<=Hu||isNaN(e.scale))&&(e.scale=1),(e.translate>=_u&&e.translate<=qu||isNaN(e.translate))&&(e.translate=0)}function Gu(e,t,n,o){Wu(e.x,t.x,n.x,o?o.originX:void 0),Wu(e.y,t.y,n.y,o?o.originY:void 0)}function Zu(e,t,n){e.min=n.min+t.min,e.max=e.min+Ku(t)}function Xu(e,t,n){e.min=t.min-n.min,e.max=e.min+Ku(t)}function Yu(e,t,n){Xu(e.x,t.x,n.x),Xu(e.y,t.y,n.y)}function Ju(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function $u(e,t){let n=t.min-e.min,o=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,o]=[o,n]),{min:n,max:o}}const ec=.35;function tc(e,t,n){return{min:nc(e,t),max:nc(e,n)}}function nc(e,t){return"number"==typeof e?e:e[t]||0}const oc=()=>({x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}),rc=()=>({x:{min:0,max:0},y:{min:0,max:0}});function ic(e){return[e("x"),e("y")]}function ac({top:e,left:t,right:n,bottom:o}){return{x:{min:t,max:n},y:{min:e,max:o}}}function sc(e){return void 0===e||1===e}function lc({scale:e,scaleX:t,scaleY:n}){return!sc(e)||!sc(t)||!sc(n)}function uc(e){return lc(e)||cc(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function cc(e){return dc(e.x)||dc(e.y)}function dc(e){return e&&"0%"!==e}function pc(e,t,n){return n+t*(e-n)}function fc(e,t,n,o,r){return void 0!==r&&(e=pc(e,r,o)),pc(e,n,o)+t}function mc(e,t=0,n=1,o,r){e.min=fc(e.min,t,n,o,r),e.max=fc(e.max,t,n,o,r)}function hc(e,{x:t,y:n}){mc(e.x,t.translate,t.scale,t.originPoint),mc(e.y,n.translate,n.scale,n.originPoint)}const gc=.999999999999,vc=1.0000000000001;function yc(e,t){e.min=e.min+t,e.max=e.max+t}function Ac(e,t,n,o,r=.5){mc(e,t,n,Ml(e.min,e.max,r),o)}function bc(e,t){Ac(e.x,t.x,t.scaleX,t.scale,t.originX),Ac(e.y,t.y,t.scaleY,t.scale,t.originY)}function wc(e,t){return ac(function(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),o=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:o.y,right:o.x}}(e.getBoundingClientRect(),t))}const xc=({current:e})=>e?e.ownerDocument.defaultView:null,Ec=new WeakMap;class kc{constructor(e){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=rc(),this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:o}=this.getProps();this.panSession=new Mu(e,{onSessionStart:e=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(ka(e,"page").point)},onStart:(e,t)=>{var n;const{drag:o,dragPropagation:r,onDragStart:i}=this.getProps();if(o&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Ra(o),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ic((e=>{let t=this.getAxisMotionValue(e).get()||0;if(bi.test(t)){const{projection:n}=this.visualElement;if(n&&n.layout){const o=n.layout.layoutBox[e];if(o){t=Ku(o)*(parseFloat(t)/100)}}}this.originPoint[e]=t})),i&&ga.postRender((()=>i(e,t))),null===(n=this.removeWillChange)||void 0===n||n.call(this),this.removeWillChange=wu(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:n,dragDirectionLock:o,onDirectionLock:r,onDrag:i}=this.getProps();if(!n&&!this.openGlobalLock)return;const{offset:a}=t;if(o&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(a),void(null!==this.currentDirection&&r&&r(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>ic((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:o,contextWindow:xc(this.visualElement)})}stop(e,t){var n;null===(n=this.removeWillChange)||void 0===n||n.call(this);const o=this.isDragging;if(this.cancel(),!o)return;const{velocity:r}=t;this.startAnimation(r);const{onDragEnd:i}=this.getProps();i&&ga.postRender((()=>i(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,n){const{drag:o}=this.getProps();if(!n||!Sc(e,o,this.currentDirection))return;const r=this.getAxisMotionValue(e);let i=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:n},o){return void 0!==t&&e<t?e=o?Ml(t,e,o.min):Math.max(e,t):void 0!==n&&e>n&&(e=o?Ml(n,e,o.max):Math.min(e,n)),e}(i,this.constraints[e],this.elastic[e])),r.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:n}=this.getProps(),o=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,r=this.constraints;t&&Dr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!o)&&function(e,{top:t,left:n,bottom:o,right:r}){return{x:Ju(e.x,n,r),y:Ju(e.y,t,o)}}(o.layoutBox,t),this.elastic=function(e=ec){return!1===e?e=0:!0===e&&(e=ec),{x:tc(e,"left","right"),y:tc(e,"top","bottom")}}(n),r!==this.constraints&&o&&this.constraints&&!this.hasMutatedConstraints&&ic((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(o.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!Dr(e))return!1;const n=e.current;Yr(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const r=function(e,t,n){const o=wc(e,n),{scroll:r}=t;return r&&(yc(o.x,r.offset.x),yc(o.y,r.offset.y)),o}(n,o.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:$u(e.x,t.x),y:$u(e.y,t.y)}}(o.layout.layoutBox,r);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=ac(e))}return i}startAnimation(e){const{drag:t,dragMomentum:n,dragElastic:o,dragTransition:r,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=ic((a=>{if(!Sc(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=o?200:1e6,c=o?40:1e7,d={type:"inertia",velocity:n?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...r,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const n=this.getAxisMotionValue(e);return n.start(pu(e,n,0,t,this.visualElement,!1,wu(this.visualElement,e)))}stopAnimation(){ic((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){ic((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps(),o=n[t];return o||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){ic((t=>{const{drag:n}=this.getProps();if(!Sc(t,n,this.currentDirection))return;const{projection:o}=this.visualElement,r=this.getAxisMotionValue(t);if(o&&o.layout){const{min:n,max:i}=o.layout.layoutBox[t];r.set(e[t]-Ml(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Dr(t)||!n||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};ic((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const n=t.get();o[e]=function(e,t){let n=.5;const o=Ku(e),r=Ku(t);return r>o?n=Bl(t.min,t.max-o,e.min):o>r&&(n=Bl(e.min,e.max-r,t.min)),ui(0,1,n)}({min:n,max:n},this.constraints[e])}}));const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),ic((t=>{if(!Sc(t,e,null))return;const n=this.getAxisMotionValue(t),{min:r,max:i}=this.constraints[t];n.set(Ml(r,i,o[t]))}))}addListeners(){if(!this.visualElement.current)return;Ec.set(this.visualElement,this);const e=Ca(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:n=!0}=this.getProps();t&&n&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();Dr(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,o=n.addEventListener("measure",t);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),ga.read(t);const r=xa(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(ic((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{r(),e(),o(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:o=!1,dragConstraints:r=!1,dragElastic:i=ec,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:o,dragConstraints:r,dragElastic:i,dragMomentum:a}}}function Sc(e,t,n){return!(!0!==t&&t!==e||null!==n&&n!==e)}const Cc=e=>(t,n)=>{e&&ga.postRender((()=>e(t,n)))};const Pc={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ic(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Oc={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!wi.test(e))return e;e=parseFloat(e)}return`${Ic(e,t.target.x)}% ${Ic(e,t.target.y)}%`}},Dc={correct:(e,{treeScale:t,projectionDelta:n})=>{const o=e,r=Qs.parse(e);if(r.length>5)return o;const i=Qs.createTransformer(e),a="number"!=typeof r[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;r[0+a]/=s,r[1+a]/=l;const u=Ml(s,l,.5);return"number"==typeof r[2+a]&&(r[2+a]/=u),"number"==typeof r[3+a]&&(r[3+a]/=u),i(r)}};class Tc extends e.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:o}=this.props,{projection:r}=e;var i;i=Nc,Object.assign(oi,i),r&&(t.group&&t.group.add(r),n&&n.register&&o&&n.register(r),r.root.didUpdate(),r.addEventListener("animationComplete",(()=>{this.safeToRemove()})),r.setOptions({...r.options,onExitComplete:()=>this.safeToRemove()})),Pc.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:n,drag:o,isPresent:r}=this.props,i=n.projection;return i?(i.isPresent=r,o||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?i.promote():i.relegate()||ga.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Ir.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:o}=e;o&&(o.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(o),n&&n.deregister&&n.deregister(o))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Rc(n){const[o,r]=function(){const t=e.useContext(Ar);if(null===t)return[!0,null];const{isPresent:n,onExitComplete:o,register:r}=t,i=e.useId();e.useEffect((()=>r(i)),[]);const a=e.useCallback((()=>o&&o(i)),[i,o]);return!n&&o?[!1,a]:[!0]}(),i=e.useContext(Wr);return t.jsx(Tc,{...n,layoutGroup:i,switchLayoutGroup:e.useContext(Tr),isPresent:o,safeToRemove:r})}const Nc={borderRadius:{...Oc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Oc,borderTopRightRadius:Oc,borderBottomLeftRadius:Oc,borderBottomRightRadius:Oc,boxShadow:Dc},Bc=["TopLeft","TopRight","BottomLeft","BottomRight"],Mc=Bc.length,Fc=e=>"string"==typeof e?parseFloat(e):e,Vc=e=>"number"==typeof e||wi.test(e);function Lc(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const jc=Uc(0,.5,Pl),zc=Uc(.5,.95,Zr);function Uc(e,t,n){return o=>o<e?0:o>t?1:n(Bl(e,t,o))}function Qc(e,t){e.min=t.min,e.max=t.max}function Hc(e,t){Qc(e.x,t.x),Qc(e.y,t.y)}function _c(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function qc(e,t,n,o,r){return e=pc(e-=t,1/n,o),void 0!==r&&(e=pc(e,1/r,o)),e}function Kc(e,t,[n,o,r],i,a){!function(e,t=0,n=1,o=.5,r,i=e,a=e){bi.test(t)&&(t=parseFloat(t),t=Ml(a.min,a.max,t/100)-a.min);if("number"!=typeof t)return;let s=Ml(i.min,i.max,o);e===i&&(s-=t),e.min=qc(e.min,t,n,s,r),e.max=qc(e.max,t,n,s,r)}(e,t[n],t[o],t[r],t.scale,i,a)}const Wc=["x","scaleX","originX"],Gc=["y","scaleY","originY"];function Zc(e,t,n,o){Kc(e.x,t,Wc,n?n.x:void 0,o?o.x:void 0),Kc(e.y,t,Gc,n?n.y:void 0,o?o.y:void 0)}function Xc(e){return 0===e.translate&&1===e.scale}function Yc(e){return Xc(e.x)&&Xc(e.y)}function Jc(e,t){return e.min===t.min&&e.max===t.max}function $c(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ed(e,t){return $c(e.x,t.x)&&$c(e.y,t.y)}function td(e){return Ku(e.x)/Ku(e.y)}function nd(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class od{constructor(){this.members=[]}add(e){ca(this.members,e),e.scheduleRender()}remove(e){if(da(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let n;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(e,t){const n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const rd=(e,t)=>e.depth-t.depth;class id{constructor(){this.children=[],this.isDirty=!1}add(e){ca(this.children,e),this.isDirty=!0}remove(e){da(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(rd),this.isDirty=!1,this.children.forEach(e)}}const ad={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},sd="undefined"!=typeof window&&void 0!==window.MotionDebug,ld=["","X","Y","Z"],ud={visibility:"hidden"};let cd=0;function dd(e,t,n,o){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),o&&(o[e]=0))}function pd(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return!1;const{visualElement:t}=e.options;return!!t&&(!!Au(t)||!(!e.parent||e.parent.hasCheckedOptimisedAppear)&&pd(e.parent))}function fd({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:o,resetTransform:r}){return class{constructor(e={},n=(null==t?void 0:t())){this.id=cd++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sd&&(ad.totalNodes=ad.resolvedTargetDeltas=ad.recalculatedProjection=0),this.nodes.forEach(gd),this.nodes.forEach(Ed),this.nodes.forEach(kd),this.nodes.forEach(vd),sd&&window.MotionDebug.record(ad)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new id)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new fu),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,n=this.root.hasTreeAnimated){if(this.instance)return;var o;this.isSVG=(o=t)instanceof SVGElement&&"svg"!==o.tagName,this.instance=t;const{layoutId:r,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),e){let n;const o=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){const n=rs.now(),o=({timestamp:r})=>{const i=r-n;i>=t&&(va(o),e(i-t))};return ga.read(o,!0),()=>va(o)}(o,250),Pc.hasAnimatedSinceResize&&(Pc.hasAnimatedSinceResize=!1,this.nodes.forEach(xd))}))}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&a&&(r||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:n,layout:o})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const r=this.options.transition||a.getDefaultTransition()||Dd,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!ed(this.targetLayout,o)||n,u=!t&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...$a(r,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||xd(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,va(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Sd),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.HandoffCancelAllAnimations&&pd(this)&&window.HandoffCancelAllAnimations(),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;const o=this.getTransformTemplate();this.prevTransformTemplateValue=o?o(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){this.updateScheduled=!1;if(this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(Ad);this.isUpdating||this.nodes.forEach(bd),this.isUpdating=!1,this.nodes.forEach(wd),this.nodes.forEach(md),this.nodes.forEach(hd),this.clearAllSnapshots();const e=rs.now();ya.delta=ui(0,1e3/60,e-ya.timestamp),ya.timestamp=e,ya.isProcessing=!0,Aa.update.process(ya),Aa.preRender.process(ya),Aa.render.process(ya),ya.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ir.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yd),this.sharedNodes.forEach(Cd)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ga.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ga.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++){this.path[e].updateScroll()}const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected=rc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=o(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!r)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Yc(this.projectionDelta),n=this.getTransformTemplate(),o=n?n(this.latestValues,""):void 0,i=o!==this.prevTransformTemplateValue;e&&(t||uc(this.latestValues)||i)&&(r(this.instance,o),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let n=this.removeElementScroll(t);var o;return e&&(n=this.removeTransform(n)),Nd((o=n).x),Nd(o.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return rc();const n=t.measureViewportBox();if(!((null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)||this.path.some(Md))){const{scroll:e}=this.root;e&&(yc(n.x,e.offset.x),yc(n.y,e.offset.y))}return n}removeElementScroll(e){var t;const n=rc();if(Hc(n,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return n;for(let t=0;t<this.path.length;t++){const o=this.path[t],{scroll:r,options:i}=o;o!==this.root&&r&&i.layoutScroll&&(r.wasRoot&&Hc(n,e),yc(n.x,r.offset.x),yc(n.y,r.offset.y))}return n}applyTransform(e,t=!1){const n=rc();Hc(n,e);for(let e=0;e<this.path.length;e++){const o=this.path[e];!t&&o.options.layoutScroll&&o.scroll&&o!==o.root&&bc(n,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),uc(o.latestValues)&&bc(n,o.latestValues)}return uc(this.latestValues)&&bc(n,this.latestValues),n}removeTransform(e){const t=rc();Hc(t,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];if(!n.instance)continue;if(!uc(n.latestValues))continue;lc(n.latestValues)&&n.updateSnapshot();const o=rc();Hc(o,n.measurePageBox()),Zc(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,o)}return uc(this.latestValues)&&Zc(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==ya.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const o=Boolean(this.resumingFrom)||this!==n;if(!(e||o&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:r,layoutId:i}=this.options;if(this.layout&&(r||i)){if(this.resolvedRelativeTargetAt=ya.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rc(),this.relativeTargetOrigin=rc(),Yu(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),Hc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target=rc(),this.targetWithTransforms=rc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,Zu(a.x,s.x,l.x),Zu(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Hc(this.target,this.layout.layoutBox),hc(this.target,this.targetDelta)):Hc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=rc(),this.relativeTargetOrigin=rc(),Yu(this.relativeTargetOrigin,this.target,e.target),Hc(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}sd&&ad.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!lc(this.parent.latestValues)&&!cc(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t;let o=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(o=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(o=!1),this.resolvedRelativeTargetAt===ya.timestamp&&(o=!1),o)return;const{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!r&&!i)return;Hc(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,n,o=!1){const r=n.length;if(!r)return;let i,a;t.x=t.y=1;for(let s=0;s<r;s++){i=n[s],a=i.projectionDelta;const{visualElement:r}=i.options;r&&r.props.style&&"contents"===r.props.style.display||(o&&i.options.layoutScroll&&i.scroll&&i!==i.root&&bc(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,hc(e,a)),o&&uc(i.latestValues)&&bc(e,i.latestValues))}t.x<vc&&t.x>gc&&(t.x=1),t.y<vc&&t.y>gc&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms=rc());const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(_c(this.prevProjectionDelta.x,this.projectionDelta.x),_c(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Gu(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&nd(this.projectionDelta.x,this.prevProjectionDelta.x)&&nd(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),sd&&ad.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=oc(),this.projectionDelta=oc(),this.projectionDeltaWithTransform=oc()}setAnimationOrigin(e,t=!1){const n=this.snapshot,o=n?n.latestValues:{},r={...this.latestValues},i=oc();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a=rc(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some(Od));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const n=t/1e3;var l,p,f,m,h,g;Pd(i.x,e.x,n),Pd(i.y,e.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Yu(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,m=this.relativeTargetOrigin,h=a,g=n,Id(f.x,m.x,h.x,g),Id(f.y,m.y,h.y,g),d&&(l=this.relativeTarget,p=d,Jc(l.x,p.x)&&Jc(l.y,p.y))&&(this.isProjectionDirty=!1),d||(d=rc()),Hc(d,this.relativeTarget)),s&&(this.animationValues=r,function(e,t,n,o,r,i){r?(e.opacity=Ml(0,void 0!==n.opacity?n.opacity:1,jc(o)),e.opacityExit=Ml(void 0!==t.opacity?t.opacity:1,0,zc(o))):i&&(e.opacity=Ml(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,o));for(let r=0;r<Mc;r++){const i=`border${Bc[r]}Radius`;let a=Lc(t,i),s=Lc(n,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||Vc(a)===Vc(s)?(e[i]=Math.max(Ml(Fc(a),Fc(s),o),0),(bi.test(s)||bi.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||n.rotate)&&(e.rotate=Ml(t.rotate||0,n.rotate||0,o))}(r,o,this.latestValues,n,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(va(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ga.update((()=>{Pc.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,n){const o=si(e)?e:vu(e);return o.start(pu("",o,t,n)),o.animation}(0,1e3,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:n,layout:o,latestValues:r}=e;if(t&&n&&o){if(this!==e&&this.layout&&o&&Bd(this.options.animationType,this.layout.layoutBox,o.layoutBox)){n=this.target||rc();const t=Ku(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;const o=Ku(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+o}Hc(t,n),bc(t,r),Gu(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new od);this.sharedNodes.get(e).add(t);const n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){const o=this.getStack();o&&o.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;const o={};n.z&&dd("z",e,o,this.animationValues);for(let t=0;t<ld.length;t++)dd(`rotate${ld[t]}`,e,o,this.animationValues),dd(`skew${ld[t]}`,e,o,this.animationValues);e.render();for(const t in o)e.setStaticValue(t,o[t]),this.animationValues&&(this.animationValues[t]=o[t]);e.scheduleRender()}getProjectionStyles(e){var t,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ud;const o={visibility:""},r=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,o.opacity="",o.pointerEvents=sa(null==e?void 0:e.pointerEvents)||"",o.transform=r?r(this.latestValues,""):"none",o;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=sa(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!uc(this.latestValues)&&(t.transform=r?r({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),o.transform=function(e,t,n){let o="";const r=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==n?void 0:n.z)||0;if((r||i||a)&&(o=`translate3d(${r}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(o+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:e,rotate:t,rotateX:r,rotateY:i,skewX:a,skewY:s}=n;e&&(o=`perspective(${e}px) ${o}`),t&&(o+=`rotate(${t}deg) `),r&&(o+=`rotateX(${r}deg) `),i&&(o+=`rotateY(${i}deg) `),a&&(o+=`skewX(${a}deg) `),s&&(o+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(o+=`scale(${s}, ${l})`),o||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),r&&(o.transform=r(a,o.transform));const{x:s,y:l}=this.projectionDelta;o.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?o.opacity=i===this?null!==(n=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:o.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in oi){if(void 0===a[e])continue;const{correct:t,applyTo:n}=oi[e],r="none"===o.transform?a[e]:t(a[e],i);if(n){const e=n.length;for(let t=0;t<e;t++)o[n[t]]=r}else o[e]=r}return this.options.layoutId&&(o.pointerEvents=i===this?sa(null==e?void 0:e.pointerEvents)||"":"none"),o}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(Ad),this.root.sharedNodes.clear()}}}function md(e){e.updateLayout()}function hd(e){var t;const n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:o}=e.layout,{animationType:r}=e.options,i=n.source!==e.layout.source;"size"===r?ic((e=>{const o=i?n.measuredBox[e]:n.layoutBox[e],r=Ku(o);o.min=t[e].min,o.max=o.min+r})):Bd(r,n.layoutBox,t)&&ic((o=>{const r=i?n.measuredBox[o]:n.layoutBox[o],a=Ku(t[o]);r.max=r.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[o].max=e.relativeTarget[o].min+a)}));const a=oc();Gu(a,t,n.layoutBox);const s=oc();i?Gu(s,e.applyTransform(o,!0),n.measuredBox):Gu(s,t,n.layoutBox);const l=!Yc(a);let u=!1;if(!e.resumeFrom){const o=e.getClosestProjectingParent();if(o&&!o.resumeFrom){const{snapshot:r,layout:i}=o;if(r&&i){const a=rc();Yu(a,n.layoutBox,r.layoutBox);const s=rc();Yu(s,t,i.layoutBox),ed(a,s)||(u=!0),o.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=o)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function gd(e){sd&&ad.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vd(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yd(e){e.clearSnapshot()}function Ad(e){e.clearMeasurements()}function bd(e){e.isLayoutDirty=!1}function wd(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function xd(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ed(e){e.resolveTargetDelta()}function kd(e){e.calcProjection()}function Sd(e){e.resetSkewAndRotation()}function Cd(e){e.removeLeadSnapshot()}function Pd(e,t,n){e.translate=Ml(t.translate,0,n),e.scale=Ml(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Id(e,t,n,o){e.min=Ml(t.min,n.min,o),e.max=Ml(t.max,n.max,o)}function Od(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Dd={duration:.45,ease:[.4,0,.1,1]},Td=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Rd=Td("applewebkit/")&&!Td("chrome/")?Math.round:Zr;function Nd(e){e.min=Rd(e.min),e.max=Rd(e.max)}function Bd(e,t,n){return"position"===e||"preserve-aspect"===e&&(o=td(t),r=td(n),i=.2,!(Math.abs(o-r)<=i));var o,r,i}function Md(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const Fd=fd({attachResizeListener:(e,t)=>xa(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Vd={current:void 0},Ld=fd({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Vd.current){const e=new Fd({});e.mount(window),e.setOptions({layoutScroll:!0}),Vd.current=e}return Vd.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),jd={pan:{Feature:class extends Ba{constructor(){super(...arguments),this.removePointerDownListener=Zr}onPointerDown(e){this.session=new Mu(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:xc(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:o}=this.node.getProps();return{onSessionStart:Cc(e),onStart:Cc(t),onMove:n,onEnd:(e,t)=>{delete this.session,o&&ga.postRender((()=>o(e,t)))}}}mount(){this.removePointerDownListener=Ca(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Ba{constructor(e){super(e),this.removeGroupControls=Zr,this.removeListeners=Zr,this.controls=new kc(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Zr}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Ld,MeasureLayout:Rc}},zd={current:null},Ud={current:!1};const Qd=new WeakMap,Hd=[...vs,Ts,Qs],_d=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qd=zr.length;class Kd{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:o,blockInitialAnimation:r,visualState:i},a={}){this.applyWillChange=!1,this.resolveKeyframes=(e,t,n,o)=>new this.KeyframeResolver(e,t,n,o,this),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ks,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.isRenderScheduled=!1,this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.isRenderScheduled=!1,this.scheduleRender=()=>{this.isRenderScheduled||(this.isRenderScheduled=!0,ga.render(this.render,!1,!0))};const{latestValues:s,renderState:l}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=o,this.options=a,this.blockInitialAnimation=Boolean(r),this.isControllingVariants=Ur(t),this.isVariantNode=Qr(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:u,...c}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in c){const t=c[e];void 0!==s[e]&&si(t)&&t.set(s[e],!1)}}mount(e){this.current=e,Qd.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),Ud.current||function(){if(Ud.current=!0,br)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>zd.current=e.matches;e.addListener(t),t()}else zd.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||zd.current),"production"!==process.env.NODE_ENV&&hu(!0!==this.shouldReduceMotion,"You have Reduced Motion enabled on your device. Animations may not appear as expected."),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Qd.delete(this.current),this.projection&&this.projection.unmount(),va(this.notifyUpdate),va(this.render),this.valueSubscriptions.forEach((e=>e())),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){const n=ii.has(e),o=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&ga.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),r=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(()=>{o(),r(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Kr){const t=Kr[e];if(!t)continue;const{isEnabled:n,Feature:o}=t;if(!this.features[e]&&o&&n(this.props)&&(this.features[e]=new o(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):rc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<_d.length;t++){const n=_d[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);const o=e["on"+n];o&&(this.propEventSubscriptions[n]=this.on(n,o))}this.prevMotionValues=function(e,t,n){for(const o in t){const r=t[o],i=n[o];if(si(r))e.addValue(o,r),"development"===process.env.NODE_ENV&&hu("11.3.21"===r.version,`Attempting to mix Framer Motion versions ${r.version} with 11.3.21 may not work as expected.`);else if(si(i))e.addValue(o,vu(r,{owner:e}));else if(i!==r)if(e.hasValue(o)){const t=e.getValue(o);!0===t.liveStyle?t.jump(r):t.hasAnimated||t.set(r)}else{const t=e.getStaticValue(o);e.addValue(o,vu(void 0!==t?t:r,{owner:e}))}}for(const o in n)void 0===t[o]&&e.removeValue(o);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}getVariantContext(e=!1){if(e)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){const e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}const t={};for(let e=0;e<qd;e++){const n=zr[e],o=this.props[n];(Vr(o)||!1===o)&&(t[n]=o)}return t}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=vu(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){var n;let o=void 0===this.latestValues[e]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,e))&&void 0!==n?n:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=o&&("string"==typeof o&&(as(o)||is(o))?o=parseFloat(o):!(e=>Hd.find(gs(e)))(o)&&Qs.test(t)&&(o=Zs(e,t)),this.setBaseTarget(e,si(o)?o.get():o)),si(o)?o.get():o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:n}=this.props;let o;if("string"==typeof n||"object"==typeof n){const r=oa(this.props,n,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);r&&(o=r[e])}if(n&&void 0!==o)return o;const r=this.getBaseTargetFromProps(this.props,e);return void 0===r||si(r)?void 0!==this.initialValues[e]&&void 0===o?void 0:this.baseTarget[e]:r}on(e,t){return this.events[e]||(this.events[e]=new fu),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class Wd extends Kd{constructor(){super(...arguments),this.KeyframeResolver=Ys}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}}class Gd extends Wd{constructor(){super(...arguments),this.type="html",this.applyWillChange=!0,this.renderInstance=Yi}readValueFromInstance(e,t){if(ii.has(t)){const e=Gs(t);return e&&e.default||0}{const o=(n=e,window.getComputedStyle(n)),r=(Di(t)?o.getPropertyValue(t):o[t])||0;return"string"==typeof r?r.trim():r}var n}measureInstanceViewportBox(e,{transformPagePoint:t}){return wc(e,t)}build(e,t,n){Bi(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return ea(e,t,n)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;si(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class Zd extends Wd{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=rc}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(ii.has(t)){const e=Gs(t);return e&&e.default||0}return t=Ji.has(t)?t:Er(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return ta(e,t,n)}build(e,t,n){Ki(e,t,this.isSVGTag,n.transformTemplate)}renderInstance(e,t,n,o){$i(e,t,0,o)}mount(e){this.isSVGTag=Gi(e.tagName),super.mount(e)}}const Xd=(t,n)=>ni(t)?new Zd(n):new Gd(n,{allowProjection:t!==e.Fragment}),Yd={...Nu,..._a,...jd,...{layout:{ProjectionNode:Ld,MeasureLayout:Rc}}},Jd=ei(((e,t)=>function(e,{forwardMotionProps:t=!1},n,o){return{...ni(e)?ba:wa,preloadedFeatures:n,useRender:Xi(t),createVisualElement:o,Component:e}}(e,t,Yd,Xd)));var $d="ComboBox-module_label__e2wbc",ep="ComboBox-module_input__SutxH",tp="ComboBox-module_icon-button__lvd3P",np="ComboBox-module_container__O5sFM",op="ComboBox-module_flyout__-fiv5",rp="ComboBox-module_item__dN8Md",ip="ComboBox-module_imageWrapper__SnKFh",ap="ComboBox-module_itemContent__NvNN1";Pe('.ComboBox-module_label__e2wbc {\n position: absolute;\n z-index: 3;\n left: var(--product-spacing-5);\n color: var(--product-greyscale-60);\n pointer-events: none;\n left: 1rem;\n}\n\n.ComboBox-module_input__SutxH {\n all: unset;\n padding: 1.25rem 1rem;\n background: var(--product-greyscale-0);\n border-top-left-radius: 8px;\n font-size: var(--product-font-form-input-mobile-size);\n letter-spacing: var(--product-font-form-input-letter-spacing);\n line-height: var(--product-font-form-input-line-height);\n width: 100%;\n padding-top: 36px;\n padding-bottom: 12px;\n}\n\n.ComboBox-module_icon-button__lvd3P {\n all: unset;\n cursor: pointer;\n background: var(--product-greyscale-0);\n padding: 1.25rem 1rem;\n height: 32px;\n border-top-right-radius: 8px;\n}\n\n.ComboBox-module_container__O5sFM {\n position: relative;\n display: flex;\n align-items: center;\n}\n\n.ComboBox-module_flyout__-fiv5 {\n background: var(--product-greyscale-0);\n list-style: none;\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.5rem;\n border-bottom-left-radius: 0.75rem;\n border-bottom-right-radius: 0.75rem;\n}\n\n.ComboBox-module_item__dN8Md {\n padding: 0.25rem;\n cursor: pointer;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-radius: 12px;\n}\n\n.ComboBox-module_item__dN8Md:hover {\n background: var(--product-greyscale-20);\n}\n\n.ComboBox-module_item__dN8Md:hover .ComboBox-module_imageWrapper__SnKFh {\n background: var(--product-greyscale-0);\n}\n\n.ComboBox-module_item__dN8Md[aria-selected="true"] {\n background: var(--product-greyscale-20);\n}\n\n.ComboBox-module_itemContent__NvNN1 {\n display: flex;\n align-items: center;\n gap: 1rem;\n}\n\n.ComboBox-module_imageWrapper__SnKFh {\n display: flex;\n align-items: center;\n border-radius: 0.5rem;\n padding: 0.5rem;\n background: var(--product-greyscale-10);\n}\n\n@media (min-width: 768px) {\n .ComboBox-module_label__e2wbc {\n left: 1.5rem;\n }\n\n .ComboBox-module_input__SutxH {\n font-size: var(--product-font-form-input-desktop-size);\n padding-left: 1.5rem;\n }\n .ComboBox-module_flyout__-fiv5 {\n gap: 8px;\n }\n\n .ComboBox-module_item__dN8Md {\n padding: 0.5rem;\n }\n}\n');var sp=function(t){var n=t.label,o=t.options,r=t.onSelect,i=t.alwaysOpen,a=t.field,u=a.onBlur,c=l(a,["onBlur"]),d=e.useState(""),p=d[0],f=d[1],m=e.useState(o),h=m[0],g=m[1],v=e.useState(!1),y=v[0],A=v[1],b=We().width,w=gr({onInputValueChange:function(e){var t=e.inputValue;c.onChange(t),t&&(f(t),g(o.filter(function(e){var t=e.toLowerCase();return function(n){return!e||n.text.toLowerCase().includes(t)}}(t))))},items:h,itemToString:function(e){return e?e.text:""},onSelectedItemChange:function(e){var t=e.selectedItem;c.onChange(null==t?void 0:t.text),r&&t&&r(t)},defaultIsOpen:i}),x=w.isOpen,E=w.getToggleButtonProps,k=w.getLabelProps,S=w.getInputProps,C=w.getItemProps,P=w.getMenuProps,I=i||x,O=b>768,D={focused:{top:O?"20px":"22px",fontSize:O?"1.25rem":"0.875rem"},notFocused:{transform:"translateY(-50%)",top:"50%",fontSize:O?"1.25rem":"1.125rem"}};return e.createElement("div",null,e.createElement("div",null,e.createElement("div",{className:np},e.createElement(Jd.label,s({className:$d},k(),{initial:"notFocused",variants:D,animate:y||""!==p?"focused":"notFocused"}),e.createElement(Je,{as:"span",variant:"form-input-normal"},n)),e.createElement("input",s({className:ep},S(),{onFocus:function(){return A(!0)},onBlur:function(){u(),A(!1)}})),e.createElement("button",s({"aria-label":"toggle menu",className:tp,type:"button"},E()),x?e.createElement(Xe,{icon:"cancel"}):e.createElement(Xe,{icon:"search"})))),I&&0!==h.length&&e.createElement("ul",s({className:op},P()),h.map((function(t,n){return e.createElement("li",s({className:rp,key:t.text},C({item:t,index:n})),e.createElement("div",{className:ap},e.createElement("div",{className:ip},t.render&&t.render,t.img&&e.createElement("img",{src:t.img,alt:""})),e.createElement(Je,{variant:"form-button"},t.text)),e.createElement(Xe,{icon:"chevron_right"}))}))))},lp="datepicker-module_container__fTCSh",up="datepicker-module_input__ceUPn",cp="datepicker-module_input--error__1ueIj";Pe(".datepicker-module_container__fTCSh {\n display: flex;\n flex-direction: column;\n}\n\n/*\n* NOT WEB IOS\n* */\n\n@supports (-webkit-touch-callout: none) {\n .datepicker-module_input__ceUPn {\n all: unset;\n }\n}\n\n.datepicker-module_input__ceUPn {\n background: var(--product-greyscale-0);\n padding: var(--product-spacing-2_5) var(--product-spacing-4);\n border-radius: var(--product-radius-2);\n z-index: 1;\n font-size: 1.125rem;\n min-width: 100%;\n min-height: 100%;\n border: none;\n}\n\n/*\n* WEB IOS\n* */\n@supports (-webkit-touch-callout: none) {\n .datepicker-module_input__ceUPn {\n position: relative;\n -webkit-appearance: none;\n text-align: left;\n min-width: auto;\n }\n\n .datepicker-module_input__ceUPn::-webkit-date-and-time-value {\n text-align: left;\n }\n\n .datepicker-module_input__ceUPn::after {\n content: '\\1F4C5';\n position: absolute;\n top: 50%;\n transform: translateY(-50%);\n right: 1rem;\n }\n}\n\n.datepicker-module_input--error__1ueIj {\n border: 2px solid var(--product-error);\n}\n\n.datepicker-module_error__YkKT5 {\n color: var(--product-error);\n padding-top: var(--product-spacing-2);\n padding-left: var(--product-spacing-6);\n}\n\n.datepicker-module_label__gVTYV {\n margin-bottom: var(--product-spacing-3);\n}\n\n@media (min-width: 768px) {\n .datepicker-module_input__ceUPn {\n padding: var(--product-spacing-6);\n font-size: 1.25rem;\n }\n}\n");var dp="formField-module_container__NqNgX",pp="formField-module_label__x-pW-",fp="formField-module_helper__wLqZB",mp="formField-module_error__cLlyu";Pe(".formField-module_container__NqNgX {\n display: flex;\n flex-direction: column;\n}\n\n.formField-module_label__x-pW- {\n margin-bottom: var(--product-spacing-3);\n}\n\n.formField-module_helper__wLqZB {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n}\n\n.formField-module_error__cLlyu {\n padding: var(--product-spacing-1) var(--product-spacing-4);\n color: var(--product-error);\n}\n\n@media (min-width: 768px) {\n .formField-module_helper__wLqZB,\n .formField-module_error__cLlyu {\n padding: var(--product-spacing-2) var(--product-spacing-6);\n }\n}\n");var hp=function(t){var n=t.id,o=t.error,r=t.helper,i=t.label,a=t.children;return e.createElement("div",{className:dp},e.createElement(Je,{as:"label",variant:"form-input-normal",className:pp,htmlFor:n},i),a,r&&e.createElement(Je,{variant:"form-helper",className:fp},r),o&&e.createElement(Je,{variant:"form-helper",className:mp},o))},gp=function(t){var n=t.field,o=t.error,r=t.helper,i=l(t,["field","error","helper"]);return e.createElement(hp,{id:i.id,label:i.label,error:null==o?void 0:o.message,helper:null==r?void 0:r.message},e.createElement("div",{className:lp},e.createElement("input",s({className:Ce(up,o&&cp),type:"date",id:i.id,max:"9999-12-31"},n))))},vp={open:{opacity:1,height:"auto"},collapsed:{opacity:0,height:0}},yp="form-module_form__hX1jQ";Pe(".form-module_form__hX1jQ {\n display: flex;\n justify-content: center;\n flex-direction: column;\n gap: 1rem;\n max-width: 640px;\n margin: 0 auto;\n padding: 0 1rem;\n}\n\n.form-module_form__hX1jQ fieldset {\n all: unset;\n display: flex;\n flex-direction: column;\n}\n\n.form-module_form__hX1jQ > fieldset {\n gap: 1rem;\n}\n\n.form-module_form__hX1jQ > fieldset:not(:last-child) {\n margin-bottom: 2.5rem;\n}\n\n.form-module_form__hX1jQ > fieldset > legend {\n all: unset;\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n letter-spacing: var(--product-font-content-large-semi-bold-letter-spacing);\n line-height: var(--product-font-content-large-semi-bold-line-height);\n font-weight: var(--product-font-weight-semi-bold);\n margin-bottom: var(--product-spacing-6);\n}\n\n@media (min-width: 768px) {\n .form-module_form__hX1jQ {\n padding: 0;\n }\n .form-module_content-title-semi-bold__lF0bK {\n font-size: var(--product-font-content-large-semi-bold-desktop-size);\n }\n}\n");var Ap="link-module_link__8RbJR";Pe(".link-module_link__8RbJR {\n color: var(--product-light-blue-100);\n}\n\n.link-module_link__8RbJR:hover {\n color: var(--product-light-blue-120);\n}\n\n.link-module_link__8RbJR:visited {\n color: var(--product-love-pink-120);\n}\n");var bp={small:"25px",medium:"55px",large:"110px",full:"100%"};const wp=e=>{let t;const n=new Set,o=(e,o)=>{const r="function"==typeof e?e(t):e;if(!Object.is(r,t)){const e=t;t=(null!=o?o:"object"!=typeof r||null===r)?r:Object.assign({},t,r),n.forEach((n=>n(t,e)))}},r=()=>t,i={setState:o,getState:r,getInitialState:()=>a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},a=t=e(o,r,i);return i};var xp,Ep={exports:{}},kp={},Sp={exports:{}},Cp={};var Pp,Ip,Op,Dp={};
|
|
60
60
|
/**
|
|
61
61
|
* @license React
|
|
62
62
|
* use-sync-external-store-shim.development.js
|