1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7250],{17325:function(t,e,n){n.d(e,{q:function(){return i}});var r=n(2265);function i(t,e){var n,i,o;return n=e||null,i=function(e){return t.forEach(function(t){return"function"==typeof t?t(e):t&&(t.current=e),t})},(o=(0,r.useState)(function(){return{value:n,callback:i,facade:{get current(){return o.value},set current(value){var t=o.value;t!==value&&(o.value=value,o.callback(value,t))}}}})[0]).callback=i,o.facade}},31412:function(t,e,n){n.d(e,{_:function(){return a},s:function(){return s}});var r=n(5853);function i(t){return t}function o(t,e){void 0===e&&(e=i);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:t},useMedium:function(t){var i=e(t,r);return n.push(i),function(){n=n.filter(function(t){return t!==i})}},assignSyncMedium:function(t){for(r=!0;n.length;){var e=n;n=[],e.forEach(t)}n={push:function(e){return t(e)},filter:function(){return n}}},assignMedium:function(t){r=!0;var e=[];if(n.length){var i=n;n=[],i.forEach(t),e=n}var o=function(){var n=e;e=[],n.forEach(t)},s=function(){return Promise.resolve().then(o)};s(),n={push:function(t){e.push(t),s()},filter:function(t){return e=e.filter(t),n}}}}}function s(t,e){return void 0===e&&(e=i),o(t,e)}function a(t){void 0===t&&(t={});var e=o(null);return e.options=(0,r.pi)({async:!0,ssr:!1},t),e}},33707:function(t,e,n){n.d(e,{Z:function(){return i}});var r=n(85533);function i(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,r.Z)(t,e)}},85533:function(t,e,n){n.d(e,{Z:function(){return r}});function r(t,e){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}},70118:function(t,e,n){n.d(e,{P:function(){return c}});var r=n(13856),i=n(68973),o=n(9889),s=n(83707),a=n(68207),l=n(57437);function u(t){return(0,l.jsx)(r.J,{focusable:"false","aria-hidden":!0,...t,children:(0,l.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,
111.823a.25.25,0,0,1,0,.354Z"})})}var c=(0,i.forwardRef)(function(t,e){let n=(0,o.useStyleConfig)("CloseButton",t),{children:r,isDisabled:i,__css:c,...d}=(0,s.Lr)(t);return(0,l.jsx)(a.chakra.button,{type:"button","aria-label":"Close",ref:e,disabled:i,__css:{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,...n,...c},...d,children:r||(0,l.jsx)(u,{width:"1em",height:"1em"})})});c.displayName="CloseButton"},80044:function(t,e,n){function r(t){return null!=t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function i(t){var e;if(!r(t))return!1;let n=null!=(e=t.ownerDocument.defaultView)?e:window;return t instanceof n.HTMLElement}function o(t){var e,n;return null!=(n=null==(e=s(t))?void 0:e.defaultView)?n:window}function s(t){return r(t)?t.ownerDocument:document}function a(t){return s(t).activeElement}n.d(e,{Re:function(){return i},kR:function(){return o},vY:function(){return a}})},62974:function(t,e,n){n.d(e,{EB:function(){return s},Wq:function(){return a}});var r=n(80044),i=t=>t.hasAttribute("tabindex"),o=t=>i(t)&&-1===t.tabIndex;function s(t){var e;if(!(0,r.Re)(t)||function t(e){return!!(e.parentElement&&t(e.parentElement))||e.hidden}(t)||!0==!!(e=t).getAttribute("disabled")||!0==!!e.getAttribute("aria-disabled"))return!1;let{localName:n}=t;if(["input","select","textarea","button"].indexOf(n)>=0)return!0;let o={a:()=>t.hasAttribute("href"),audio:()=>t.hasAttribute("controls"),video:()=>t.hasAttribute("controls")};return n in o?o[n]():!!function(t){let e=t.getAttribute("contenteditable");return"false"!==e&&null!=e}(t)||i(t)}function a(t){return!!t&&(0,r.Re)(t)&&s(t)&&!o(t)}},813:function(t,e,n){n.d(e,{t5:function(){return o}});var r=n(62974),i=t=>t.offsetWidth>0&&t.offsetHeight>0;function o(t){let e=Array.from(t.querySelectorAll("input:not(:disabled):not([disabled]),select:not(:disabled):not([disabled]),textarea:not(:disabled):not([disabled]),embed,iframe,object,a[href],area[href],button:not(:disabled):not([disabled]),[tabindex],audio[controls],video[controls],*[tabindex]:not([aria-disabled]),*[contenteditable]"));return e.unshift(t),e.filter(t=>(0,r.EB)(t)&&i(t))}},13883:function(t,e,n){n.d(e,{E:function(){return tI}});var r,i,o,s=n(1119),a=n(2265),l="data-focus-lock",u="data-focus-lock-disabled",c=n(17325),d={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},h=function(t){var e=t.children;return a.createElement(a.Fragment,null,a.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:d}),e,e&&a.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:d}))};h.propTypes={},h.defaultProps={children:null};var f=n(31412),p=(0,f.s)({},function(t){return{target:t.target,currentTarget:t.currentTarget}}),m=(0,f.s)(),v=(0,f.s)(),g=(0,f._)({async:!0}),y=[],x=a.forwardRef(function(t,e){var n,r=a.useState(),i=r[0],o=r[1],h=a.useRef(),f=a.useRef(!1),v=a.useRef(null),x=t.children,b=t.disabled,w=t.noFocusGuards,P=t.persistentFocus,E=t.crossFrame,C=t.autoFocus,S=(t.allowTextSelection,t.group),A=t.className,T=t.whiteList,M=t.hasPositiveIndices,k=t.shards,R=void 0===k?y:k,V=t.as,D=t.lockProps,L=t.sideCar,j=t.returnFocus,O=t.focusOptions,F=t.onActivation,B=t.onDeactivation,N=a.useState({})[0],I=a.useCallback(function(){v.current=v.current||document&&document.activeElement,h.current&&F&&F(h.current),f.current=!0},[F]),W=a.useCallback(function(){f.current=!1,B&&B(h.current)},[B]);(0,a.useEffect)(function(){b||(v.current=null)},[]);var U=a.useCallback(function(t){var e=v.current;if(e&&e.focus){var n="function"==typeof j?j(e):j;if(n){var r="object"==typeof n?n:void 0;v.current=null,t?Promise.resolve().then(function(){return e.focus(r)}):e.focus(r)}}},[j]),$=a.useCallback(function(t){f.current&&p.useMedium(t)},[]),z=m.useMedium,H=a.useCallback(function(t){h.current!==t&&(h.current=t,o(t))},[]),Z=(0,s.Z)(((n={})[u]=b&&"disabled",n[l]=S,n),void 0===D?{}:D),Y=!0!==w,_=Y&&"tail"!==w,q=(0,c.q)([e,H]);return a.createElement(a.Fragment,null,Y&&[a.createElement("div",{key:"guard-first","data-focus-guard":!0,tabIndex:b?-1:0,style:d}),M?a.createElement("div",{key:"guard-nearest","data-focus-guard":!0,tabIndex:b?-1:1,style:d}):null],!b&&a.createElement(L,{id:N,sideCar:g,observed:i,disabled:b,persistentFocus:P,crossFrame:E,autoFocus:C,whiteList:T,shards:R,onActivation:I,onDeactivation:W,returnFocus:U,focusOptions:O}),a.createElement(void 0===V?"div":V,(0,s.Z)({ref:q}
1,Z,{className:A,onBlur:z,onFocus:$}),x),_&&a.createElement("div",{"data-focus-guard":!0,tabIndex:b?-1:0,style:d}))});x.propTypes={},x.defaultProps={children:void 0,disabled:!1,returnFocus:!1,focusOptions:void 0,noFocusGuards:!1,autoFocus:!0,persistentFocus:!1,crossFrame:!0,hasPositiveIndices:void 0,allowTextSelection:void 0,group:void 0,className:void 0,whiteList:void 0,shards:void 0,as:"div",lockProps:{},onActivation:void 0,onDeactivation:void 0};var b=n(33707);function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var P=function(t){for(var e=Array(t.length),n=0;n<t.length;++n)e[n]=t[n];return e},E=function(t){return Array.isArray(t)?t:[t]},C=function(t){return Array.isArray(t)?t[0]:t},S=function(t){if(t.nodeType!==Node.ELEMENT_NODE)return!1;var e=window.getComputedStyle(t,null);return!!e&&!!e.getPropertyValue&&("none"===e.getPropertyValue("display")||"hidden"===e.getPropertyValue("visibility"))},A=function(t){return t.parentNode&&t.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE?t.parentNode.host:t.parentNode},T=function(t){return t===document||t&&t.nodeType===Node.DOCUMENT_NODE},M=function(t,e){var n,r=t.get(e);if(void 0!==r)return r;var i=(n=M.bind(void 0,t),!e||T(e)||!S(e)&&n(A(e)));return t.set(e,i),i},k=function(t,e){var n,r=t.get(e);if(void 0!==r)return r;var i=(n=k.bind(void 0,t),!e||!!T(e)||!!L(e)&&n(A(e)));return t.set(e,i),i},R=function(t){return t.dataset},V=function(t){return"INPUT"===t.tagName},D=function(t){return V(t)&&"radio"===t.type},L=function(t){return![!0,"true",""].includes(t.getAttribute("data-no-autofocus"))},j=function(t){var e;return!!(t&&(null===(e=R(t))||void 0===e?void 0:e.focusGuard))},O=function(t){return!j(t)},F=function(t){return!!t},B=function(t,e){var n=t.tabIndex-e.tabIndex,r=t.index-e.index;if(n){if(!t.tabIndex)return 1;if(!e.tabIndex)return -1}return n||r},N=function(t,e,n){return P(t).map(function(t,e){return{node:t,index:e,tabIndex:n&&-1===t.tabIndex?(t.dataset||{}).focusGuard?0:-1:t.tabIndex}}).filter(function(t){return!e||t.tabIndex>=0}).sort(B)},I="button:enabled,select:enabled,textarea:enabled,input:enabled,a[href],area[href],summary,iframe,object,embed,audio[controls],video[controls],[tabindex],[contenteditable],[autofocus]",W="".concat(I,", [data-focus-guard]"),U=function(t,e){return P((t.shadowRoot||t).children).reduce(function(t,n){return t.concat(n.matches(e?W:I)?[n]:[],U(n))},[])},$=function(t,e){var n;return t instanceof HTMLIFrameElement&&(null===(n=t.contentDocument)||void 0===n?void 0:n.body)?z([t.contentDocument.body],e):[t]},z=function(t,e){return t.reduce(function(t,n){var r,i=U(n,e),o=(r=[]).concat.apply(r,i.map(function(t){return $(t,e)}));return t.concat(o,n.parentNode?P(n.parentNode.querySelectorAll(I)).filter(function(t){return t===n}):[])},[])},H=function(t,e){return P(t).filter(function(t){return M(e,t)}).filter(function(t){return!((V(t)||"BUTTON"===t.tagName)&&("hidden"===t.type||t.disabled))})},Z=function(t,e){return void 0===e&&(e=new Map),P(t).filter(function(t){return k(e,t)})},Y=function(t,e,n){return N(H(z(t,n),e),!0,n)},_=function(t,e){return N(H(z(t),e),!1)},q=function(t,e){return t.shadowRoot?q(t.shadowRoot,e):!!(void 0!==Object.getPrototypeOf(t).contains&&Object.getPrototypeOf(t).contains.call(t,e))||P(t.children).some(function(t){var n;if(t instanceof HTMLIFrameElement){var r=null===(n=t.contentDocument)||void 0===n?void 0:n.body;return!!r&&q(r,e)}return q(t,e)})},X=function(t){try{return t()}catch(t){return}},G=function(t){if(void 0===t&&(t=document),t&&t.activeElement){var e=t.activeElement;return e.shadowRoot?G(e.shadowRoot):e instanceof HTMLIFrameElement&&X(function(){return e.contentWindow.document})?G(e.contentWindow.document):e}},K=function(t){void 0===t&&(t=document);var e=G(t);return!!e&&P(t.querySelectorAll("[".concat("data-no-focus-lock","]"))).some(function(t){return q(t,e)})},J=function(t){for(var e=new Set,n=t.length,r=0;r<n;r+=1)for(var i=r+1;i<n;i+=1){var o=t[r].compareDocumentPosition(t[i]);(o&Node.DOCUMENT_POSITION_CONTAINED_BY)>0&&e.add(i),(o&Node.DOCUMENT_POSITION_CONTAINS)>0&&e.add(r)}return t.filter(function(t,n){return!e.has(n)})},Q=function(t){return t.parentNode?Q(t.parentNode):t}
1,tt=function(t){return E(t).filter(Boolean).reduce(function(t,e){var n=e.getAttribute(l);return t.push.apply(t,n?J(P(Q(e).querySelectorAll("[".concat(l,'="').concat(n,'"]:not([').concat(u,'="disabled"])')))):[e]),t},[])},te=function(t,e){return void 0===e&&(e=G(C(t).ownerDocument)),!!e&&(!e.dataset||!e.dataset.focusGuard)&&tt(t).some(function(t){var n;return q(t,e)||(n=e,!!P(t.querySelectorAll("iframe")).some(function(t){return t===n}))})},tn=function(t,e){"focus"in t&&t.focus(e),"contentWindow"in t&&t.contentWindow&&t.contentWindow.focus()},tr=function(t,e){return D(t)&&t.name&&e.filter(D).filter(function(e){return e.name===t.name}).filter(function(t){return t.checked})[0]||t},ti=function(t){var e=new Set;return t.forEach(function(n){return e.add(tr(n,t))}),t.filter(function(t){return e.has(t)})},to=function(t){return t[0]&&t.length>1?tr(t[0],t):t[0]},ts=function(t,e){return t.length>1?t.indexOf(tr(t[e],t)):e},ta="NEW_FOCUS",tl=function(t,e,n,r){var i=t.length,o=t[0],s=t[i-1],a=j(n);if(!(n&&t.indexOf(n)>=0)){var l=void 0!==n?e.indexOf(n):-1,u=r?e.indexOf(r):l,c=r?t.indexOf(r):-1,d=l-u,h=e.indexOf(o),f=e.indexOf(s),p=ti(e),m=(void 0!==n?p.indexOf(n):-1)-(r?p.indexOf(r):l),v=ts(t,0),g=ts(t,i-1);if(-1===l||-1===c)return ta;if(!d&&c>=0)return c;if(l<=h&&a&&Math.abs(d)>1)return g;if(l>=f&&a&&Math.abs(d)>1)return v;if(d&&Math.abs(m)>1)return c;if(l<=h)return g;if(l>f)return v;if(d)return Math.abs(d)>1?c:(i+c+d)%i}},tu=function(t,e,n){var r=Z(t.map(function(t){return t.node}).filter(function(t){var e,r=null===(e=R(t))||void 0===e?void 0:e.autofocus;return t.autofocus||void 0!==r&&"false"!==r||n.indexOf(t)>=0}));return r&&r.length?to(r):to(Z(e))},tc=function(t,e){return void 0===e&&(e=[]),e.push(t),t.parentNode&&tc(t.parentNode.host||t.parentNode,e),e},td=function(t,e){for(var n=tc(t),r=tc(e),i=0;i<n.length;i+=1){var o=n[i];if(r.indexOf(o)>=0)return o}return!1},th=function(t,e,n){var r=E(t),i=E(e),o=r[0],s=!1;return i.filter(Boolean).forEach(function(t){s=td(s||t,t)||s,n.filter(Boolean).forEach(function(t){var e=td(o,t);e&&(s=!s||q(e,s)?e:td(e,s))})}),s},tf=function(t,e){var n=new Map;return e.forEach(function(t){return n.set(t.node,t)}),t.map(function(t){return n.get(t)}).filter(F)},tp=function(t,e){var n=G(E(t).length>0?document:C(t).ownerDocument),r=tt(t).filter(O),i=th(n||t,t,r),o=new Map,s=_(r,o),a=Y(r,o).filter(function(t){return O(t.node)});if(a[0]||(a=s)[0]){var l=_([i],o).map(function(t){return t.node}),u=tf(l,a),c=u.map(function(t){return t.node}),d=tl(c,l,n,e);if(d===ta){var h=tu(s,c,r.reduce(function(t,e){return t.concat(H(P(e.querySelectorAll("[".concat("data-autofocus-inside","]"))).map(function(t){return z([t])}).reduce(function(t,e){return t.concat(e)},[]),o))},[]));return h?{node:h}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===d?d:u[d]}},tm=0,tv=!1,tg=function(t,e,n){void 0===n&&(n={});var r=tp(t,e);if(!tv&&r){if(tm>2){console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),tv=!0,setTimeout(function(){tv=!1},1);return}tm++,tn(r.node,n.focusOptions),tm--}},ty=function(t){var e=tt(t).filter(O),n=th(t,t,e),r=new Map,i=Y([n],r,!0),o=Y(e,r).filter(function(t){return O(t.node)}).map(function(t){return t.node});return i.map(function(t){var e=t.node;return{node:e,index:t.index,lockItem:o.indexOf(e)>=0,guard:j(e)}})};function tx(t){setTimeout(t,1)}var tb=null,tw=null,tP=null,tE=!1,tC=function(t,e){tP={observerNode:t,portaledElement:e}};function tS(t,e,n,r){var i=null,o=t;do{var s=r[o];if(s.guard)s.node.dataset.focusAutoGuard&&(i=s);else if(s.lockItem){if(o!==t)return;i=null}else break}while((o+=n)!==e);i&&(i.node.tabIndex=0)}var tA=function(t){return t&&"current"in t?t.current:t},tT=function(){var t=!1;if(tb){var e=tb,n=e.observed,r=e.persistentFocus,i=e.autoFocus,o=e.shards,s=e.crossFrame,a=e.focusOptions,l=n||tP&&tP.portaledElement,u=document&&document.activeElement;if(l){var c=[l].concat(o.map(tA).filter(Boolean));if((!u||(tb.whiteList||function(){return!0})(u))&&(r||(s?!!tE:"meanwhile"===tE)||!(document&&document.activeElement===document.body||K())||!tw&&i)&&(l&&!(te(c)||u&&c.some(function(t){return function t(e,n,r){return n&&(n.host===e&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&t(e,n.parentNode,r))}(u,t,t)})||tP&&tP.portaledElement===u)&&(document&&!tw&&u&&!i?(u.blur&&u.blur(),document.body.focus()):(t=tg(c,tw,{focusOptions:a}),tP={})),tE=!1,tw=document&&document.activeElement),document){var d=document&&document.activeElement,h=ty(c),f=h.map(function(t){return t.node}).indexOf(d);f>-1&&(h.filter(function(t){var e=t.guard,n=t.node;return e&&n.dataset.focusAutoGuard}
1).forEach(function(t){return t.node.removeAttribute("tabIndex")}),tS(f,h.length,1,h),tS(f,-1,-1,h))}}}return t},tM=function(t){tT()&&t&&(t.stopPropagation(),t.preventDefault())},tk=function(){return tx(tT)},tR=function(){tE="just",tx(function(){tE="meanwhile"})},tV=function(){document.addEventListener("focusin",tM),document.addEventListener("focusout",tk),window.addEventListener("blur",tR)},tD=function(){document.removeEventListener("focusin",tM),document.removeEventListener("focusout",tk),window.removeEventListener("blur",tR)};p.assignSyncMedium(function(t){var e=t.target,n=t.currentTarget;n.contains(e)||tC(n,e)}),m.assignMedium(tk),v.assignMedium(function(t){return t({moveFocusInside:tg,focusInside:te})});var tL=(r=function(t){return t.filter(function(t){return!t.disabled})},i=function(t){var e=t.slice(-1)[0];e&&!tb&&tV();var n=tb,r=n&&e&&e.id===n.id;tb=e,!n||r||(n.onDeactivation(),t.filter(function(t){return t.id===n.id}).length||n.returnFocus(!e)),e?(tw=null,r&&n.observed===e.observed||e.onActivation(),tT(!0),tx(tT)):(tD(),tw=null)},function(t){var e,n,o,s,l=[];function u(){i(s=r(l.map(function(t){return t.props})))}var c=function(e){function n(){return e.apply(this,arguments)||this}(0,b.Z)(n,e),n.peek=function(){return s};var r=n.prototype;return r.componentDidMount=function(){l.push(this),u()},r.componentDidUpdate=function(){u()},r.componentWillUnmount=function(){var t=l.indexOf(this);l.splice(t,1),u()},r.render=function(){return a.createElement(t,this.props)},n}(a.PureComponent);return e="displayName",n="SideEffect("+(t.displayName||t.name||"Component")+")",(o=function(t,e){if("object"!=w(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=w(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"),(e="symbol"==w(o)?o:o+"")in c)?Object.defineProperty(c,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):c[e]=n,c})(function(){return null}),tj=a.forwardRef(function(t,e){return a.createElement(x,(0,s.Z)({sideCar:tL,ref:e},t))}),tO=x.propTypes||{};tO.sideCar,function(t,e){if(null!=t){var n={};for(var r in t)if(({}).hasOwnProperty.call(t,r)){if(-1!==e.indexOf(r))continue;n[r]=t[r]}}}(tO,["sideCar"]),tj.propTypes={};var tF=n(813),tB=n(57437),tN=null!=(o=tj.default)?o:tj,tI=t=>{let{initialFocusRef:e,finalFocusRef:n,contentRef:r,restoreFocus:i,children:o,isDisabled:s,autoFocus:l,persistentFocus:u,lockFocusAcrossFrames:c}=t,d=(0,a.useCallback)(()=>{(null==e?void 0:e.current)?e.current.focus():(null==r?void 0:r.current)&&0===(0,tF.t5)(r.current).length&&requestAnimationFrame(()=>{var t;null==(t=r.current)||t.focus()})},[e,r]),h=(0,a.useCallback)(()=>{var t;null==(t=null==n?void 0:n.current)||t.focus()},[n]),f=i&&!n;return(0,tB.jsx)(tN,{crossFrame:c,persistentFocus:u,autoFocus:l,disabled:s,onActivation:d,onDeactivation:h,returnFocus:f,children:o})};tI.displayName="FocusLock"},12098:function(t,e,n){n.d(e,{Me:function(){return i},R3:function(){return s},ZS:function(){return o}});var r=n(2265);function i(t,e){let n=(0,r.useId)();return(0,r.useMemo)(()=>t||[e,n].filter(Boolean).join("-"),[t,e,n])}function o(t){for(var e=arguments.length,n=Array(e>1?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];let s=i(t);return(0,r.useMemo)(()=>n.map(t=>"".concat(t,"-").concat(s)),[s,n])}function s(t){let[e,n]=(0,r.useState)(null);return{ref:(0,r.useCallback)(e=>{n(e?t:null)},[t]),id:e,isRendered:!!e}}},92250:function(t,e,n){n.d(e,{G:function(){return o}});var r=n(24474),i=n(2265),o=r.jU?i.useLayoutEffect:i.useEffect},68499:function(t,e,n){n.d(e,{q:function(){return l}});var r=n(12098),i=n(1275),o=n(48348),s=n(39976),a=n(2265);function l(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{onClose:e,onOpen:n,isOpen:l,id:u}=t,c=(0,o.W)(n),d=(0,o.W)(e),[h,f]=(0,a.useState)(t.defaultIsOpen||!1),[p,m]=(0,i.p)(l,h),v=(0,r.Me)(u,"disclosure"),g=(0,a.useCallback)(()=>{p||f(!1),null==d||d()},[p,d]),y=(0,a.useCallback)(()=>{p||f(!0),null==c||c()},[p,c]),x=(0,a.useCallback)(()=>{(m?g:y)()},[m,y,g]);return{isOpen:!!m,onOpen:y,onClose:g,onToggle:x,isControlled:p,getButtonProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...t,"aria-expanded":m,"aria-controls":v,onClick:(0,s.v0)(t.onClick,x)}},getDisclosureProps:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...t,hidden:!m,id:v}}}}},1275:function(t,e,n){n.d(e,{T:function(){return a},p:function(){return s}});var r=n(48348),i=n(39976),o=n(2265);function s(t,e){let n=void 0!==t;return[n,n&&void 0!==t?t:e]}function a(t){let{value:e,defaultValue:n,onChange:s,shouldUpdate:a=(t,e)=>t!==e}=t,l=(0,r.W)(s),u=(0,r.W)(a),[c,d]=(0,o.useState)(n),h=void 0!==e,f=h?e:c,p=(0,o.useCallback)(t=>{let e=(0,i.Pu)(t,f);u(f,e)&&(h||d(e),l(e))},[h,l,f,u]);return[f,p]}},48348:function(t,e,n){n.d(e,{W:function(){return o}});var r=n(92250),i=n(2265);function o(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,i.useRef)(t);return(0,r.G)(()=>{n.current=t}),(0,i.useCallback)(function(){for(var t,e=arguments.length,r=Array(e),i=0;i<e;i++)r[i]=arguments[i];return null==(t=n.current)?void 0:t.call(n,...r)},e)}},13856:function(t,e,n){n.d(e,{J:function(){return u}});var r=n(68973),i=n(9889),o=n(68207),s=n(14096),a=n(57437),l={path:(0,a.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,a.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,a.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,a.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},u=(0,r.forwardRef)((t,e)=>{let{as:n,viewBox:r,color:u="currentColor",focusable:c=!1,children:d,className:h,__css:f,...p}=t,m=(0,s.cx)("chakra-icon",h),v=(0,i.useStyleConfig)("Icon",t),g={ref:e,focusable:c,className:m,__css:{w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:u,...f,...v}},y=null!=r?r:l.viewBox;if(n&&"string"!=typeof n)return(0,a.jsx)(o.chakra.svg,{as:n,...g,...p});let x=null!=d?d:l.path;return(0,a.jsx)(o.chakra.svg,{verticalAlign:"middle",viewBox:y,...g,...p,children:x})});u.displayName="Icon"},3619:function(t,e,n){n.d(e,{m:function(){return a},$:function(){return l}});var r=Object.defineProperty,i=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,o=(t,e,n)=>(i(t,"symbol"!=typeof e?e+"":e,n),n),s=n(2265),a=new class{add(t){return this.modals.set(t,this.modals.size+1),this.modals.size}remove(t){this.modals.delete(t)}isTopModal(t){return!!t&&this.modals.get(t)===this.modals.size}constructor(){o(this,"modals"),this.modals=new Map}};
1function l(t,e){let[n,r]=(0,s.useState)(0);return(0,s.useEffect)(()=>{let n=t.current;if(n)return e&&r(a.add(n)),()=>{a.remove(n),r(0)}},[e,t]),n}},8196:function(t,e,n){n.d(e,{I_:function(){return c},ny:function(){return d},u_:function(){return f},vR:function(){return h}});var r=n(2553),i=n(85330),o=n(37371),s=n(9889),a=n(5095),l=n(57437),[u,c]=(0,o.k)({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"<Modal />\" "}),[d,h]=(0,o.k)({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in `<Modal />`"}),f=t=>{let e={scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0,...t},{portalProps:n,children:o,autoFocus:c,trapFocus:h,initialFocusRef:f,finalFocusRef:p,returnFocusOnClose:m,blockScrollOnMount:v,allowPinchZoom:g,preserveScrollBarGap:y,motionPreset:x,lockFocusAcrossFrames:b,onCloseComplete:w}=e,P=(0,s.useMultiStyleConfig)("Modal",e),E={...(0,r.d)(e),autoFocus:c,trapFocus:h,initialFocusRef:f,finalFocusRef:p,returnFocusOnClose:m,blockScrollOnMount:v,allowPinchZoom:g,preserveScrollBarGap:y,motionPreset:x,lockFocusAcrossFrames:b};return(0,l.jsx)(d,{value:E,children:(0,l.jsx)(u,{value:P,children:(0,l.jsx)(a.M,{onExitComplete:w,children:E.isOpen&&(0,l.jsx)(i.h,{...n,children:o})})})})};f.displayName="Modal"},17732:function(t,e,n){n.d(e,{M:function(){return H}});var r,i,o=n(8196),s=n(3619),a=n(13883),l=n(49637),u=n(2265),c=n(5853),d="right-scroll-bar-position",h="width-before-scroll-bar",f=n(17325),p=(0,n(31412)._)(),m=function(){},v=u.forwardRef(function(t,e){var n=u.useRef(null),r=u.useState({onScrollCapture:m,onWheelCapture:m,onTouchMoveCapture:m}),i=r[0],o=r[1],s=t.forwardProps,a=t.children,l=t.className,d=t.removeScrollBar,h=t.enabled,v=t.shards,g=t.sideCar,y=t.noIsolation,x=t.inert,b=t.allowPinchZoom,w=t.as,P=t.gapMode,E=(0,c._T)(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),C=(0,f.q)([n,e]),S=(0,c.pi)((0,c.pi)({},E),i);return u.createElement(u.Fragment,null,h&&u.createElement(g,{sideCar:p,removeScrollBar:d,shards:v,noIsolation:y,inert:x,setCallbacks:o,allowPinchZoom:!!b,lockRef:n,gapMode:P}),s?u.cloneElement(u.Children.only(a),(0,c.pi)((0,c.pi)({},S),{ref:C})):u.createElement(void 0===w?"div":w,(0,c.pi)({},S,{className:l,ref:C}),a))});v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:h,zeroRight:d};var g=function(t){var e=t.sideCar,n=(0,c._T)(t,["sideCar"]);if(!e)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=e.read();if(!r)throw Error("Sidecar medium not found");return u.createElement(r,(0,c.pi)({},n))};g.isSideCarExport=!0;var y=function(){var t=0,e=null;return{add:function(r){if(0==t&&(e=function(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=i||n.nc;return e&&t.setAttribute("nonce",e),t}())){var o,s;(o=e).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),s=e,(document.head||document.getElementsByTagName("head")[0]).appendChild(s)}t++},remove:function(){--t||!e||(e.parentNode&&e.parentNode.removeChild(e),e=null)}}},x=function(){var t=y();return function(e,n){u.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&n])}},b=function(){var t=x();return function(e){return t(e.styles,e.dynamic),null}},w={left:0,top:0,right:0,gap:0},P=function(t){return parseInt(t||"",10)||0},E=function(t){var e=window.getComputedStyle(document.body),n=e["padding"===t?"paddingLeft":"marginLeft"],r=e["padding"===t?"paddingTop":"marginTop"],i=e["padding"===t?"paddingRight":"marginRight"];return[P(n),P(r),P(i)]},C=function(t){if(void 0===t&&(t="margin"),"undefined"==typeof window)return w;var e=E(t),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,r-n+e[2]-e[0])}},S=b(),A=function(t,e,n,r){var i=t.left,o=t.top,s=t.right,a=t.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(a,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([e&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(i,"px;\n padding-top: ").concat(o,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(a,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(a,"px ").concat(r,";
1")].filter(Boolean).join(""),"\n }\n \n .").concat(d," {\n right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(h," {\n margin-right: ").concat(a,"px ").concat(r,";\n }\n \n .").concat(d," .").concat(d," {\n right: 0 ").concat(r,";\n }\n \n .").concat(h," .").concat(h," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(a,"px;\n }\n")},T=function(t){var e=t.noRelative,n=t.noImportant,r=t.gapMode,i=void 0===r?"margin":r,o=u.useMemo(function(){return C(i)},[i]);return u.createElement(S,{styles:A(o,!e,i,n?"":"!important")})},M=!1;if("undefined"!=typeof window)try{var k=Object.defineProperty({},"passive",{get:function(){return M=!0,!0}});window.addEventListener("test",k,k),window.removeEventListener("test",k,k)}catch(t){M=!1}var R=!!M&&{passive:!1},V=function(t,e){var n=window.getComputedStyle(t);return"hidden"!==n[e]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==t.tagName&&"visible"===n[e])},D=function(t,e){var n=e.ownerDocument,r=e;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),L(t,r)){var i=j(t,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},L=function(t,e){return"v"===t?V(e,"overflowY"):V(e,"overflowX")},j=function(t,e){return"v"===t?[e.scrollTop,e.scrollHeight,e.clientHeight]:[e.scrollLeft,e.scrollWidth,e.clientWidth]},O=function(t,e,n,r,i){var o,s=(o=window.getComputedStyle(e).direction,"h"===t&&"rtl"===o?-1:1),a=s*r,l=n.target,u=e.contains(l),c=!1,d=a>0,h=0,f=0;do{var p=j(t,l),m=p[0],v=p[1]-p[2]-s*m;(m||v)&&L(t,l)&&(h+=v,f+=m),l instanceof ShadowRoot?l=l.host:l=l.parentNode}while(!u&&l!==document.body||u&&(e.contains(l)||e===l));return d&&(i&&1>Math.abs(h)||!i&&a>h)?c=!0:!d&&(i&&1>Math.abs(f)||!i&&-a>f)&&(c=!0),c},F=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},B=function(t){return[t.deltaX,t.deltaY]},N=function(t){return t&&"current"in t?t.current:t},I=0,W=[],U=(r=function(t){var e=u.useRef([]),n=u.useRef([0,0]),r=u.useRef(),i=u.useState(I++)[0],o=u.useState(b)[0],s=u.useRef(t);u.useEffect(function(){s.current=t},[t]),u.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var e=(0,c.ev)([t.lockRef.current],(t.shards||[]).map(N),!0).filter(Boolean);return e.forEach(function(t){return t.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),e.forEach(function(t){return t.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=u.useCallback(function(t,e){if("touches"in t&&2===t.touches.length)return!s.current.allowPinchZoom;var i,o=F(t),a=n.current,l="deltaX"in t?t.deltaX:a[0]-o[0],u="deltaY"in t?t.deltaY:a[1]-o[1],c=t.target,d=Math.abs(l)>Math.abs(u)?"h":"v";if("touches"in t&&"h"===d&&"range"===c.type)return!1;var h=D(d,c);if(!h)return!0;if(h?i=d:(i="v"===d?"h":"v",h=D(d,c)),!h)return!1;if(!r.current&&"changedTouches"in t&&(l||u)&&(r.current=i),!i)return!0;var f=r.current||i;return O(f,e,t,"h"===f?l:u,!0)},[]),l=u.useCallback(function(t){if(W.length&&W[W.length-1]===o){var n="deltaY"in t?B(t):F(t),r=e.current.filter(function(e){var r;return e.name===t.type&&(e.target===t.target||t.target===e.shadowParent)&&(r=e.delta)[0]===n[0]&&r[1]===n[1]})[0];if(r&&r.should){t.cancelable&&t.preventDefault();return}if(!r){var i=(s.current.shards||[]).map(N).filter(Boolean).filter(function(e){return e.contains(t.target)});(i.length>0?a(t,i[0]):!s.current.noIsolation)&&t.cancelable&&t.preventDefault()}}},[]),d=u.useCallback(function(t,n,r,i){var o={name:t,delta:n,target:r,should:i,shadowParent:function(t){for(var e=null;null!==t;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}(r)};e.current.push(o),setTimeout(function(){e.current=e.current.filter(function(t){return t!==o})},1)},[]),h=u.useCallback(function(t){n.current=F(t),r.current=void 0},[]),f=u.useCallback(function(e){d(e.type,B(e),e.target,a(e,t.lockRef.current))},[]),p=u.useCallback(function(e){d(e.type,F(e),e.target,a(e,t.lockRef.current))},[]);u.useEffect(function(){return W.push(o),t.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,R),document.addEventListener("touchmove",l,R),document.addEventListener("touchstart",h,R),function(){W=W.filter(function(t){return t!==o}),document.removeEventListener("wheel",l,R),document.removeEventListener("touchmove",l,R),document.removeEventListener("touchstart",h,R)}},[]);var m=t.removeScrollBar,v=t.inert;return u.createElement(u.Fragment,null,v?u.createElement(o,{styles:"\n .block-interactivity-".concat(i," {pointer-events: none;}\n .allow-interactivity-").concat(i," {pointer-events: all;}\n")}):null,m?u.createElement(T,{gapMode:t.gapMode}):null)},p.useMedium(r),g),$=u.forwardRef(function(t,e){return u.createElement(v,(0,c.pi)({},t,{ref:e,sideCar:U}))});$.classNames=v.classNames;var z=n(57437);function H(t){let{autoFocus:e,trapFocus:n,dialogRef:r,initialFocusRef:i,blockScrollOnMount:c,allowPinchZoom:d,finalFocusRef:h,returnFocusOnClose
1:f,preserveScrollBarGap:p,lockFocusAcrossFrames:m,isOpen:v}=(0,o.vR)(),[g,y]=(0,l.oO)();(0,u.useEffect)(()=>{!g&&y&&setTimeout(y)},[g,y]);let x=(0,s.$)(r,v);return(0,z.jsx)(a.E,{autoFocus:e,isDisabled:!n,initialFocusRef:i,finalFocusRef:h,restoreFocus:f,contentRef:r,lockFocusAcrossFrames:m,children:(0,z.jsx)($,{removeScrollBar:!p,allowPinchZoom:d,enabled:1===x&&c,forwardProps:!0,children:t.children})})}},16152:function(t,e,n){n.d(e,{f:function(){return u}});var r=n(8196),i=n(14096),o=n(68973),s=n(68207),a=n(2265),l=n(57437),u=(0,o.forwardRef)((t,e)=>{let{className:n,...o}=t,{bodyId:u,setBodyMounted:c}=(0,r.vR)();(0,a.useEffect)(()=>(c(!0),()=>c(!1)),[c]);let d=(0,i.cx)("chakra-modal__body",n),h=(0,r.I_)();return(0,l.jsx)(s.chakra.div,{ref:e,className:d,id:u,...o,__css:h.body})});u.displayName="ModalBody"},2553:function(t,e,n){n.d(e,{d:function(){return p}});var r=n(3619),i=n(14096),o=n(20975),s=new WeakMap,a=new WeakMap,l={},u=0,c=function(t){return t&&(t.host||c(t.parentNode))},d=function(t,e,n,r){var i=(Array.isArray(t)?t:[t]).map(function(t){if(e.contains(t))return t;var n=c(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)}).filter(function(t){return!!t});l[n]||(l[n]=new WeakMap);var o=l[n],d=[],h=new Set,f=new Set(i),p=function(t){!t||h.has(t)||(h.add(t),p(t.parentNode))};i.forEach(p);var m=function(t){!t||f.has(t)||Array.prototype.forEach.call(t.children,function(t){if(h.has(t))m(t);else{var e=t.getAttribute(r),i=null!==e&&"false"!==e,l=(s.get(t)||0)+1,u=(o.get(t)||0)+1;s.set(t,l),o.set(t,u),d.push(t),1===l&&i&&a.set(t,!0),1===u&&t.setAttribute(n,"true"),i||t.setAttribute(r,"true")}})};return m(e),h.clear(),u++,function(){d.forEach(function(t){var e=s.get(t)-1,i=o.get(t)-1;s.set(t,e),o.set(t,i),e||(a.has(t)||t.removeAttribute(r),a.delete(t)),i||t.removeAttribute(n)}),--u||(s=new WeakMap,s=new WeakMap,a=new WeakMap,l={})}},h=function(t,e,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(t)?t:[t]),i=e||("undefined"==typeof document?null:(Array.isArray(t)?t[0]:t).ownerDocument.body);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live]"))),d(r,i,n,"aria-hidden")):function(){return null}},f=n(2265);function p(t){let{isOpen:e,onClose:n,id:s,closeOnOverlayClick:a=!0,closeOnEsc:l=!0,useInert:u=!0,onOverlayClick:c,onEsc:d}=t,p=(0,f.useRef)(null),m=(0,f.useRef)(null),[v,g,y]=function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];let i=(0,f.useId)(),o=t||i;return(0,f.useMemo)(()=>n.map(t=>"".concat(t,"-").concat(o)),[o,n])}(s,"chakra-modal","chakra-modal--header","chakra-modal--body");!function(t,e){let n=t.current;(0,f.useEffect)(()=>{if(t.current&&e)return h(t.current)},[e,t,n])}(p,e&&u);let x=(0,r.$)(p,e),b=(0,f.useRef)(null),w=(0,f.useCallback)(t=>{b.current=t.target},[]),P=(0,f.useCallback)(t=>{"Escape"===t.key&&(t.stopPropagation(),l&&(null==n||n()),null==d||d())},[l,n,d]),[E,C]=(0,f.useState)(!1),[S,A]=(0,f.useState)(!1),T=(0,f.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{role:"dialog",...t,ref:(0,o.lq)(e,p),id:v,tabIndex:-1,"aria-modal":!0,"aria-labelledby":E?g:void 0,"aria-describedby":S?y:void 0,onClick:(0,i.v0)(t.onClick,t=>t.stopPropagation())}},[y,S,v,g,E]),M=(0,f.useCallback)(t=>{t.stopPropagation(),b.current===t.target&&r.m.isTopModal(p.current)&&(a&&(null==n||n()),null==c||c())},[n,a,c]),k=(0,f.useCallback)(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{...t,ref:(0,o.lq)(e,m),onClick:(0,i.v0)(t.onClick,M),onKeyDown:(0,i.v0)(t.onKeyDown,P),onMouseDown:(0,i.v0)(t.onMouseDown,w)}},[P,w,M]);return{isOpen:e,onClose:n,headerId:g,bodyId:y,setBodyMounted:A,setHeaderMounted:C,dialogRef:p,overlayRef:m,getDialogProps:T,getDialogContainerProps:k,index:x}}},85330:function(t,e,n){n.d(e,{h:function(){return m}});var r=n(73210),i=n(6008),o=n(37371),s=n(54887),a=n(2265),l=n(57437),[u,c]=(0,o.k)({strict:!1,name:"PortalContext"}
1),d="chakra-portal",h=t=>(0,l.jsx)("div",{className:"chakra-portal-zIndex",style:{position:"absolute",zIndex:t.zIndex,top:0,left:0,right:0},children:t.children}),f=t=>{let{appendToParentPortal:e,children:n}=t,[o,f]=(0,a.useState)(null),p=(0,a.useRef)(null),[,m]=(0,a.useState)({});(0,a.useEffect)(()=>m({}),[]);let v=c(),g=(0,r.L)();(0,i.G)(()=>{if(!o)return;let t=o.ownerDocument,n=e&&null!=v?v:t.body;if(!n)return;p.current=t.createElement("div"),p.current.className=d,n.appendChild(p.current),m({});let r=p.current;return()=>{n.contains(r)&&n.removeChild(r)}},[o]);let y=(null==g?void 0:g.zIndex)?(0,l.jsx)(h,{zIndex:null==g?void 0:g.zIndex,children:n}):n;return p.current?(0,s.createPortal)((0,l.jsx)(u,{value:p.current,children:y}),p.current):(0,l.jsx)("span",{ref:t=>{t&&f(t)}})},p=t=>{let{children:e,containerRef:n,appendToParentPortal:r}=t,o=n.current,c=null!=o?o:"undefined"!=typeof window?document.body:void 0,h=(0,a.useMemo)(()=>{let t=null==o?void 0:o.ownerDocument.createElement("div");return t&&(t.className=d),t},[o]),[,f]=(0,a.useState)({});return((0,i.G)(()=>f({}),[]),(0,i.G)(()=>{if(h&&c)return c.appendChild(h),()=>{c.removeChild(h)}},[h,c]),c&&h)?(0,s.createPortal)((0,l.jsx)(u,{value:r?h:null,children:e}),h):null};function m(t){let{containerRef:e,...n}={appendToParentPortal:!0,...t};return e?(0,l.jsx)(p,{containerRef:e,...n}):(0,l.jsx)(f,{...n})}m.className=d,m.selector=".chakra-portal",m.displayName="Portal"},73210:function(t,e,n){n.d(e,{L:function(){return s},h:function(){return a}});var r=n(37371),i=n(57437),[o,s]=(0,r.k)({strict:!1,name:"PortalManagerContext"});function a(t){let{children:e,zIndex:n}=t;return(0,i.jsx)(o,{value:{zIndex:n},children:e})}a.displayName="PortalManager"},8588:function(t,e,n){n.d(e,{Lj:function(){return r},Sh:function(){return s},js:function(){return o},p$:function(){return a}});var r={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]},i={slideLeft:{position:{left:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"-100%",y:0}},slideRight:{position:{right:0,top:0,bottom:0,width:"100%"},enter:{x:0,y:0},exit:{x:"100%",y:0}},slideUp:{position:{top:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"-100%"}},slideDown:{position:{bottom:0,left:0,right:0,maxWidth:"100vw"},enter:{x:0,y:0},exit:{x:0,y:"100%"}}};function o(t){var e;switch(null!=(e=null==t?void 0:t.direction)?e:"right"){case"right":default:return i.slideRight;case"left":return i.slideLeft;case"bottom":return i.slideDown;case"top":return i.slideUp}}var s={enter:{duration:.2,ease:r.easeOut},exit:{duration:.1,ease:r.easeIn}},a={enter:(t,e)=>({...t,delay:"number"==typeof e?e:null==e?void 0:e.enter}),exit:(t,e)=>({...t,delay:"number"==typeof e?e:null==e?void 0:e.exit})}},24474:function(t,e,n){function r(t){return null!=t&&"object"==typeof t&&"nodeType"in t&&t.nodeType===Node.ELEMENT_NODE}function i(t){var e;if(!r(t))return!1;let n=null!=(e=t.ownerDocument.defaultView)?e:window;return t instanceof n.HTMLElement}function o(t){var e,n;return r(t)&&null!=(n=null==(e=s(t))?void 0:e.defaultView)?n:window}function s(t){var e;return r(t)&&null!=(e=t.ownerDocument)?e:document}function a(t){var e;return null!=(e=t.view)?e:window}n.d(e,{EV:function(){return d},Re:function(){return i},dh:function(){return a},jU:function(){return l},kR:function(){return o},lZ:function(){return s},r3:function(){return c},vY:function(){return u}});var l=!!("undefined"!=typeof window&&window.document&&window.document.createElement);function u(t){let e=s(t);return null==e?void 0:e.activeElement}function c(t,e){return!!t&&(t===e||t.contains(e))}function d(t,e,n,r){return t.addEventListener(e,n,r),()=>{t.removeEventListener(e,n,r)}}},5095:function(t,e,n){n.d(e,{M:function(){return v}});var r=n(2265),i=n(11534);function o(){let t=(0,r.useRef)(!1);return(0,i.L)(()=>(t.current=!0,()=>{t.current=!1}),[]),t}var s=n(58345),a=n(64252),l=n(53576);class u extends r.Component{getSnapshotBeforeUpdate(t){let e=this.props.childRef.current;if(e&&t.isPresent&&!this.props.isPresent){let t=this.props.sizeRef.current;t.height=e.offsetHeight||0,t.width=e.offsetWidth||0,t.top=e.offsetTop,t.left=e.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function c({children:t,isPresent:e}){let n=(0,r.useId)(),i=(0,r.useRef)(null),o=(0,r.useRef)({width:0,height:0,top:0,left:0});return(0,r.useInsertionEffect)(()=>{let{width:t,height:r,top:s,left:a}=o.current;if(e||!i.current||!t||!r)return;i.current.dataset.motionPopId=n;
1let l=document.createElement("style");return document.head.appendChild(l),l.sheet&&l.sheet.insertRule(` 2 [data-motion-pop-id="${n}"] { 3 position: absolute !important; 4 width: ${t}px !important; 5 height: ${r}px !important; 6 top: ${s}px !important; 7 left: ${a}px !important; 8 } 9 `),()=>{document.head.removeChild(l)}},[e]),r.createElement(u,{isPresent:e,childRef:i,sizeRef:o},r.cloneElement(t,{ref:i}))}let d=({children:t,initial:e,isPresent:n,onExitComplete:i,custom:o,presenceAffectsLayout:s,mode:u})=>{let d=(0,l.h)(h),f=(0,r.useId)(),p=(0,r.useMemo)(()=>({id:f,initial:e,isPresent:n,custom:o,onExitComplete:t=>{for(let e of(d.set(t,!0),d.values()))if(!e)return;i&&i()},register:t=>(d.set(t,!1),()=>d.delete(t))}),s?void 0:[n]);return(0,r.useMemo)(()=>{d.forEach((t,e)=>d.set(e,!1))},[n]),r.useEffect(()=>{n||d.size||!i||i()},[n]),"popLayout"===u&&(t=r.createElement(c,{isPresent:n},t)),r.createElement(a.O.Provider,{value:p},t)};function h(){return new Map}var f=n(58881),p=n(13223);let m=t=>t.key||"",v=({children:t,custom:e,initial:n=!0,onExitComplete:a,exitBeforeEnter:l,presenceAffectsLayout:u=!0,mode:c="sync"})=>{var h;(0,p.k)(!l,"Replace exitBeforeEnter with mode='wait'");let v=(0,r.useContext)(f.p).forceRender||function(){let t=o(),[e,n]=(0,r.useState)(0),i=(0,r.useCallback)(()=>{t.current&&n(e+1)},[e]);return[(0,r.useCallback)(()=>s.Wi.postRender(i),[i]),e]}()[0],g=o(),y=function(t){let e=[];return r.Children.forEach(t,t=>{(0,r.isValidElement)(t)&&e.push(t)}),e}(t),x=y,b=(0,r.useRef)(new Map).current,w=(0,r.useRef)(x),P=(0,r.useRef)(new Map).current,E=(0,r.useRef)(!0);if((0,i.L)(()=>{E.current=!1,function(t,e){t.forEach(t=>{let n=m(t);e.set(n,t)})}(y,P),w.current=x}),h=()=>{E.current=!0,P.clear(),b.clear()},(0,r.useEffect)(()=>()=>h(),[]),E.current)return r.createElement(r.Fragment,null,x.map(t=>r.createElement(d,{key:m(t),isPresent:!0,initial:!!n&&void 0,presenceAffectsLayout:u,mode:c},t)));x=[...x];let C=w.current.map(m),S=y.map(m),A=C.length;for(let t=0;t<A;t++){let e=C[t];-1!==S.indexOf(e)||b.has(e)||b.set(e,void 0)}return"wait"===c&&b.size&&(x=[]),b.forEach((t,n)=>{if(-1!==S.indexOf(n))return;let i=P.get(n);if(!i)return;let o=C.indexOf(n),s=t;s||(s=r.createElement(d,{key:m(i),isPresent:!1,onExitComplete:()=>{b.delete(n);let t=Array.from(P.keys()).filter(t=>!S.includes(t));if(t.forEach(t=>P.delete(t)),w.current=y.filter(e=>{let r=m(e);return r===n||t.includes(r)}),!b.size){if(!1===g.current)return;v(),a&&a()}},custom:e,presenceAffectsLayout:u,mode:c},i),b.set(n,s)),x.splice(o,0,s)}),x=x.map(t=>{let e=t.key;return b.has(e)?t:r.createElement(d,{key:m(t),isPresent:!0,presenceAffectsLayout:u,mode:c},t)}),r.createElement(r.Fragment,null,b.size?x:x.map(t=>(0,r.cloneElement)(t)))}},49637:function(t,e,n){n.d(e,{hO:function(){return s},oO:function(){return o}});var r=n(2265),i=n(64252);function o(){let t=(0,r.useContext)(i.O);if(null===t)return[!0,null];let{isPresent:e,onExitComplete:n,register:o}=t,s=(0,r.useId)();return(0,r.useEffect)(()=>o(s),[]),!e&&n?[!1,()=>n&&n(s)]:[!0]}function s(){var t;return null===(t=(0,r.useContext)(i.O))||t.isPresent}},58881:function(t,e,n){n.d(e,{p:function(){return r}});let r=(0,n(2265).createContext)({})},45750:function(t,e,n){n.d(e,{_:function(){return r}});let r=(0,n(2265).createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"})},64252:function(t,e,n){n.d(e,{O:function(){return r}});let r=(0,n(2265).createContext)(null)},58345:function(t,e,n){n.d(e,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return u}});var r=n(44439);class i{constructor(){this.order=[],this.scheduled=new Set}add(t){if(!this.scheduled.has(t))return this.scheduled.add(t),this.order.push(t),!0}remove(t){let e=this.order.indexOf(t);-1!==e&&(this.order.splice(e,1),this.scheduled.delete(t))}clear(){this.order.length=0,this.scheduled.clear()}}let o=["prepare","read","update","preRender","render","postRender"],{schedule:s,cancel:a,state:l,steps:u}=function(t,e){let n=!1,r=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,e)=>(t[e]=function(t){let e=new i,n=new i,r=0,o=!1,s=!1,a=new WeakSet,l={schedule:(t,i=!1,s=!1)=>{let l=s&&o,u=l?e:n;return i&&a.add(t),u.add(t)&&l&&o&&(r=e.order.length),t},cancel:t=>{n.remove(t),a.delete(t)},process:i=>
9{if(o){s=!0;return}if(o=!0,[e,n]=[n,e],n.clear(),r=e.order.length)for(let n=0;n<r;n++){let r=e.order[n];r(i),a.has(r)&&(l.schedule(r),t())}o=!1,s&&(s=!1,l.process(i))}};return l}(()=>n=!0),t),{}),l=t=>a[t].process(s),u=()=>{let i=performance.now();n=!1,s.delta=r?1e3/60:Math.max(Math.min(i-s.timestamp,40),1),s.timestamp=i,s.isProcessing=!0,o.forEach(l),s.isProcessing=!1,n&&e&&(r=!1,t(u))},c=()=>{n=!0,r=!0,s.isProcessing||t(u)};return{schedule:o.reduce((t,e)=>{let r=a[e];return t[e]=(t,e=!1,i=!1)=>(n||c(),r.schedule(t,e,i)),t},{}),cancel:t=>o.forEach(e=>a[e].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:r.Z,!0)},76046:function(t,e,n){let r;n.d(e,{E:function(){return r8}});var i,o,s=n(2265),a=n(45750);let l=(0,s.createContext)({});var u=n(64252),c=n(11534);let d=(0,s.createContext)({strict:!1}),h=t=>t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),f="data-"+h("framerAppearId");function p(t){return"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function m(t){return"string"==typeof t||Array.isArray(t)}function v(t){return"object"==typeof t&&"function"==typeof t.start}let g=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],y=["initial",...g];function x(t){return v(t.animate)||y.some(e=>m(t[e]))}function b(t){return!!(x(t)||t.variants)}function w(t){return Array.isArray(t)?t.join(" "):t}let P={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"]},E={};for(let t in P)E[t]={isEnabled:e=>P[t].some(t=>!!e[t])};var C=n(44563),S=n(58881);let A=(0,s.createContext)({}),T=Symbol.for("motionComponentSymbol"),M=["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 k(t){if("string"!=typeof t||t.includes("-"));else if(M.indexOf(t)>-1||/[A-Z]/.test(t))return!0;return!1}let R={},V=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],D=new Set(V);function L(t,{layout:e,layoutId:n}){return D.has(t)||t.startsWith("origin")||(e||void 0!==n)&&(!!R[t]||"opacity"===t)}let j=t=>!!(t&&t.getVelocity),O={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},F=V.length;var B=n(37249);let N=(t,e)=>e&&"number"==typeof t?e.transform(t):t;var I=n(74305),W=n(27492);let U={...I.Rx,transform:Math.round},$={borderWidth:W.px,borderTopWidth:W.px,borderRightWidth:W.px,borderBottomWidth:W.px,borderLeftWidth:W.px,borderRadius:W.px,radius:W.px,borderTopLeftRadius:W.px,borderTopRightRadius:W.px,borderBottomRightRadius:W.px,borderBottomLeftRadius:W.px,width:W.px,maxWidth:W.px,height:W.px,maxHeight:W.px,size:W.px,top:W.px,right:W.px,bottom:W.px,left:W.px,padding:W.px,paddingTop:W.px,paddingRight:W.px,paddingBottom:W.px,paddingLeft:W.px,margin:W.px,marginTop:W.px,marginRight:W.px,marginBottom:W.px,marginLeft:W.px,rotate:W.RW,rotateX:W.RW,rotateY:W.RW,rotateZ:W.RW,scale:I.bA,scaleX:I.bA,scaleY:I.bA,scaleZ:I.bA,skew:W.RW,skewX:W.RW,skewY:W.RW,distance:W.px,translateX:W.px,translateY:W.px,translateZ:W.px,x:W.px,y:W.px,z:W.px,perspective:W.px,transformPerspective:W.px,opacity:I.Fq,originX:W.$C,originY:W.$C,originZ:W.px,zIndex:U,fillOpacity:I.Fq,strokeOpacity:I.Fq,numOctaves:U};function z(t,e,n,r){let{style:i,vars:o,transform:s,transformOrigin:a}=t,l=!1,u=!1,c=!0;for(let t in e){let n=e[t];if((0,B.f9)(t)){o[t]=n;continue}let r=$[t],d=N(n,r);if(D.has(t)){if(l=!0,s[t]=d,!c)continue;n!==(r.default||0)&&(c=!1)}else t.startsWith("origin")?(u=!0,a[t]=d):i[t]=d}if(!e.transform&&(l||r?i.transform=function(t,{enableHardwareAcceleration:e=!0,allowTransformNone:n=!0},r,i){let o="";for(let e=0;e<F;e++){let n=V[e];if(void 0!==t[n]){let e=O[n]||n;o+=`${e}(${t[n]}) `}}return e&&!t.z&&(o+="translateZ(0)"),o=o.trim(),i?o=i(t,r?"":o):n&&r&&(o="none"),o}(t.transform,n,c,r):i.transform&&(i.transform="none")),u){let{originX:t="50%",originY:e="50%",originZ:n=0}=a;i.transformOrigin=`${t} ${e} ${n}`}}let H=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Z(t,e,n){for(let r in e)j(e[r])||L(r,n)||(t[r]=e[r])}let Y=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function _(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||Y.has(t)}let q=t=>!_(t);try{(i=require("@emotion/is-prop-valid").default)&&(q=t=>t.startsWith("on")?!_(t):i(t))}catch(t){}function X(t,e,n){return"string"==typeof t?t:W.px.transform(e+n*t)}let G={offset:"stroke-dashoffset",array:"stroke-dasharray"},K={offset:"strokeDashoffset",array:"strokeDasharray"};function J(t,{attrX:e,attrY:n,attrScale:r,originX:i,originY:o,pathLength:s,pathSpacing:a=1,pathOffset:l=0,...u}
9,c,d,h){if(z(t,u,c,h),d){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};let{attrs:f,style:p,dimensions:m}=t;f.transform&&(m&&(p.transform=f.transform),delete f.transform),m&&(void 0!==i||void 0!==o||p.transform)&&(p.transformOrigin=function(t,e,n){let r=X(e,t.x,t.width),i=X(n,t.y,t.height);return`${r} ${i}`}(m,void 0!==i?i:.5,void 0!==o?o:.5)),void 0!==e&&(f.x=e),void 0!==n&&(f.y=n),void 0!==r&&(f.scale=r),void 0!==s&&function(t,e,n=1,r=0,i=!0){t.pathLength=1;let o=i?G:K;t[o.offset]=W.px.transform(-r);let s=W.px.transform(e),a=W.px.transform(n);t[o.array]=`${s} ${a}`}(f,s,a,l,!1)}let Q=()=>({...H(),attrs:{}}),tt=t=>"string"==typeof t&&"svg"===t.toLowerCase();function te(t,{style:e,vars:n},r,i){for(let o in Object.assign(t.style,e,i&&i.getProjectionStyles(r)),n)t.style.setProperty(o,n[o])}let tn=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 tr(t,e,n,r){for(let n in te(t,e,void 0,r),e.attrs)t.setAttribute(tn.has(n)?n:h(n),e.attrs[n])}function ti(t,e){let{style:n}=t,r={};for(let i in n)(j(n[i])||e.style&&j(e.style[i])||L(i,t))&&(r[i]=n[i]);return r}function to(t,e){let n=ti(t,e);for(let r in t)(j(t[r])||j(e[r]))&&(n[-1!==V.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=t[r]);return n}function ts(t,e,n,r={},i={}){return"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),"string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e&&(e=e(void 0!==n?n:t.custom,r,i)),e}var ta=n(53576);let tl=t=>Array.isArray(t),tu=t=>!!(t&&"object"==typeof t&&t.mix&&t.toValue),tc=t=>tl(t)?t[t.length-1]||0:t;function td(t){let e=j(t)?t.get():t;return tu(e)?e.toValue():e}let th=t=>(e,n)=>{let r=(0,s.useContext)(l),i=(0,s.useContext)(u.O),o=()=>(function({scrapeMotionValuesFromProps:t,createRenderState:e,onMount:n},r,i,o){let s={latestValues:function(t,e,n,r){let i={},o=r(t,{});for(let t in o)i[t]=td(o[t]);let{initial:s,animate:a}=t,l=x(t),u=b(t);e&&u&&!l&&!1!==t.inherit&&(void 0===s&&(s=e.initial),void 0===a&&(a=e.animate));let c=!!n&&!1===n.initial,d=(c=c||!1===s)?a:s;return d&&"boolean"!=typeof d&&!v(d)&&(Array.isArray(d)?d:[d]).forEach(e=>{let n=ts(t,e);if(!n)return;let{transitionEnd:r,transition:o,...s}=n;for(let t in s){let e=s[t];if(Array.isArray(e)){let t=c?e.length-1:0;e=e[t]}null!==e&&(i[t]=e)}for(let t in r)i[t]=r[t]}),i}(r,i,o,t),renderState:e()};return n&&(s.mount=t=>n(r,t,s)),s})(t,e,r,i);return n?o():(0,ta.h)(o)};var tf=n(58345);let tp={useVisualState:th({scrapeMotionValuesFromProps:to,createRenderState:Q,onMount:(t,e,{renderState:n,latestValues:r})=>{tf.Wi.read(()=>{try{n.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(t){n.dimensions={x:0,y:0,width:0,height:0}}}),tf.Wi.render(()=>{J(n,r,{enableHardwareAcceleration:!1},tt(e.tagName),t.transformTemplate),tr(e,n)})}})},tm={useVisualState:th({scrapeMotionValuesFromProps:ti,createRenderState:H})};function tv(t,e,n,r={passive:!0}){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}let tg=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary;function ty(t,e="page"){return{point:{x:t[e+"X"],y:t[e+"Y"]}}}let tx=t=>e=>tg(e)&&t(e,ty(e));function tb(t,e,n,r){return tv(t,e,tx(n),r)}var tw=n(56920);function tP(t){let e=null;return()=>null===e&&(e=t,()=>{e=null})}let tE=tP("dragHorizontal"),tC=tP("dragVertical");function tS(t){let e=!1;if("y"===t)e=tC();else if("x"===t)e=tE();else{let t=tE(),n=tC();t&&n?e=()=>{t(),n()}:(t&&t(),n&&n())}return e}function tA(){let t=tS(!0);return!t||(t(),!1)}class tT{constructor(t){this.isMounted=!1,this.node=t}update(){}}function tM(t,e){let n="onHover"+(e?"Start":"End");return tb(t.current,"pointer"+(e?"enter":"leave"),(r,i)=>{if("touch"===r.type||tA())return;let o=t.getProps();t.animationState&&o.whileHover&&t.animationState.setActive("whileHover",e),o[n]&&tf.Wi.update(()=>o[n](r,i))},{passive:!t.getProps()[n]})}class tk extends tT{mount(){this.unmount=(0,tw.z)(tM(this.node,!0),tM(this.node,!1))}unmount(){}}class tR extends tT{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=(0,tw.z)(tv(this.node.current,"focus",()=>this.onFocus()),tv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}let tV=(t,e)=>!!e&&(t===e||tV(t,e.parentElement));var tD=n(44439);function tL(t,e){if(!e)return;let n=new PointerEvent("pointer"+t);e(n,ty(n))}class tj extends tT{constructor(){super(...arguments),this.removeStartListeners=tD.Z,this.removeEndListeners=tD.Z,this.removeAccessibleListeners=tD.Z,this.startPointerPress=(t,e)=>{if(this.removeEndListeners(),this.isPressing)return;let n=this.node.getProps(),r=tb(window,"pointerup",(t,e)=>{if(!this.checkPressEnd())return;let{onTap:n,onTapCancel:r}=this.node.getProps();tf.Wi.update(()=>{tV(this.node.current,t.target)?n&&n(t,e):r&&r(t,e)})},{passive:!(n.onTap||n.onPointerUp)}),i=tb(window,"pointercancel",(t,e)=>this.cancelPress(t,e),{passive:!(n.onTapCancel||n.onPointerCancel)});this.removeEndListeners=(0,tw.z)(r,i),this.startPress(t,e)},this.startAccessiblePress=()=>{let t=tv(this.node.current,"keydown",t=>{"Enter"!==t.key||this.isPressing||(this.removeEndListeners(),this.removeEndListeners=tv(this.node.current,"keyup",t=>{"Enter"===t.key&&this.checkPressEnd()&&tL("up",(t,e)=>{let{onTap:n}=this.node.getProps();
9n&&tf.Wi.update(()=>n(t,e))})}),tL("down",(t,e)=>{this.startPress(t,e)}))}),e=tv(this.node.current,"blur",()=>{this.isPressing&&tL("cancel",(t,e)=>this.cancelPress(t,e))});this.removeAccessibleListeners=(0,tw.z)(t,e)}}startPress(t,e){this.isPressing=!0;let{onTapStart:n,whileTap:r}=this.node.getProps();r&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),n&&tf.Wi.update(()=>n(t,e))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!tA()}cancelPress(t,e){if(!this.checkPressEnd())return;let{onTapCancel:n}=this.node.getProps();n&&tf.Wi.update(()=>n(t,e))}mount(){let t=this.node.getProps(),e=tb(this.node.current,"pointerdown",this.startPointerPress,{passive:!(t.onTapStart||t.onPointerStart)}),n=tv(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=(0,tw.z)(e,n)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}let tO=new WeakMap,tF=new WeakMap,tB=t=>{let e=tO.get(t.target);e&&e(t)},tN=t=>{t.forEach(tB)},tI={some:0,all:1};class tW extends tT{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:i}=t,o={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:tI[r]};return function(t,e,n){let r=function({root:t,...e}){let n=t||document;tF.has(n)||tF.set(n,{});let r=tF.get(n),i=JSON.stringify(e);return r[i]||(r[i]=new IntersectionObserver(tN,{root:t,...e})),r[i]}(e);return tO.set(t,n),r.observe(t),()=>{tO.delete(t),r.unobserve(t)}}(this.node.current,o,t=>{let{isIntersecting:e}=t;if(this.isInView===e||(this.isInView=e,i&&!e&&this.hasEnteredView))return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),o=e?n:r;o&&o(t)})}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;let{props:t,prevProps:e}=this.node;["amount","margin","root"].some(function({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}(t,e))&&this.startObserver()}unmount(){}}function tU(t,e){if(!Array.isArray(e))return!1;let n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(e[r]!==t[r])return!1;return!0}function t$(t,e,n){let r=t.getProps();return ts(r,e,void 0!==n?n:r.custom,function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.get()),e}(t),function(t){let e={};return t.values.forEach((t,n)=>e[n]=t.getVelocity()),e}(t))}var tz=n(13223);let tH=t=>1e3*t,tZ=t=>t/1e3,tY={current:!1},t_=t=>Array.isArray(t)&&"number"==typeof t[0],tq=([t,e,n,r])=>`cubic-bezier(${t}, ${e}, ${n}, ${r})`,tX={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:tq([0,.65,.55,1]),circOut:tq([.55,0,1,.45]),backIn:tq([.31,.01,.66,-.59]),backOut:tq([.33,1.53,.69,.99])},tG=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function tK(t,e,n,r){if(t===e&&n===r)return tD.Z;let i=e=>(function(t,e,n,r,i){let o,s;let a=0;do(o=tG(s=e+(n-e)/2,r,i)-t)>0?n=s:e=s;while(Math.abs(o)>1e-7&&++a<12);return s})(e,0,1,t,n);return t=>0===t||1===t?t:tG(i(t),e,r)}let tJ=tK(.42,0,1,1),tQ=tK(0,0,.58,1),t0=tK(.42,0,.58,1),t1=t=>Array.isArray(t)&&"number"!=typeof t[0],t5=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,t2=t=>e=>1-t(1-e),t3=t=>1-Math.sin(Math.acos(t)),t4=t2(t3),t9=t5(t3),t6=tK(.33,1.53,.69,.99),t7=t2(t6),t8=t5(t7),et={linear:tD.Z,easeIn:tJ,easeInOut:t0,easeOut:tQ,circIn:t3,circInOut:t9,circOut:t4,backIn:t7,backInOut:t8,backOut:t6,anticipate:t=>(t*=2)<1?.5*t7(t):.5*(2-Math.pow(2,-10*(t-1)))},ee=t=>{if(Array.isArray(t)){(0,tz.k)(4===t.length,"Cubic bezier arrays must contain four numerical values.");let[e,n,r,i]=t;return tK(e,n,r,i)}return"string"==typeof t?((0,tz.k)(void 0!==et[t],`Invalid easing type '${t}'`),et[t]):t};var en=n(22888),er=n(8913);function ei({duration:t=300,keyframes:e,times:n,ease:r="easeInOut"}){let i=t1(r)?r.map(ee):ee(r),o={done:!1,value:e[0]},s=(n&&n.length===e.length?n:(0,er.Y)(e)).map(e=>e*t),a=(0,en.s)(s,e,{ease:Array.isArray(i)?i:e.map(()=>i||t0).splice(0,e.length-1)});return{calculatedDuration:t,next:e=>(o.value=a(e),o.done=e>=t,o)}}var eo=n(14438);function es(t,e,n){let r=Math.max(e-5,0);return(0,eo.R)(n-t(r),e-r)}var ea=n(59111);function el(t,e){return t*Math.sqrt(1-e*e)}let eu=["duration","bounce"],ec=["stiffness","damping","mass"];function ed(t,e){return e.some(e=>void 0!==t[e])}function eh({keyframes:t,restDelta:e,restSpeed:n,...r}){let i;let o=t[0],s=t[t.length-1],a={done:!1,value:o},{stiffness:l,damping:u,mass:c,velocity:d,duration:h,isResolvedFromDuration:f}=function(t){let e={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...t};if(!ed(t,ec)&&ed(t,eu)){let n=function({duration:t=800,bounce:e=.25,velocity:n=0,mass:r=1}){let i,o;(0,tz.K)(t<=tH(10),"Spring duration must be 10 seconds or less");let s=1-e;s=(0,ea.u)(.05,1,s),t=(0,ea.u)(.01,10,tZ(t)),s<1?(i=e=>{let r=e*s,i=r*t;return .001-(r-n)/el(e,s)*Math.exp(-i)},o=e=>{let r=e*s*t,o=Math.pow(s,2)*Math.pow(e,2)*t,a=el(Math.pow(e,2),s);return(r*n+n-o)*Math.exp(-r)*(-i(e)+.001>0?-1:1)/a}):(i=e=>-.001+Math.exp(-e*t)*((e-n)*t+1),o=e=>t*t*(n-e)*Math.exp(-e*t));let a=function(t,e,n){let r=n;for(let n=1;n<12;n++)r-=t(r)/e(r);return r}(i,o,5/t);if(t=tH(t),isNaN(a))return{stiffness:100,damping:10,duration:t};{let e=Math.pow(a,2)*r;return{stiffness:e,damping:2*s*Math.sqrt(r*e),duration:t}}}(t);(e={...e,...n,velocity:0,mass:1}).isResolvedFromDuration=!0}return e}(r),p=d?-tZ(d):0,m=u/(2*Math.sqrt(l*c)),v=s-o,g=tZ(Math.sqrt(l/c)),y=5>Math.abs(v);if(n||(n=y?.01:2),e||(e=y?.005:.5),m<1){let t=el(g,m);i=e=>s-Math.exp(-m*g*e)*((p+m*g*v)/t*Math.sin(t*e)+v*Math.cos(t*e))}else if(1===m)i=t=>s-Math.exp(-g*t)*(v+(p+g*v)*t);else{let t=g*Math.sqrt(m*m-1);i=e=>{let n=Math.exp(-m*g*e),r=Math.min(t*e,300);return s-n*((p+m*g*v)*Math.sinh(r)+t*v*Math.cosh(r))/t}}
9return{calculatedDuration:f&&h||null,next:t=>{let r=i(t);if(f)a.done=t>=h;else{let o=p;0!==t&&(o=m<1?es(i,t,r):0);let l=Math.abs(o)<=n,u=Math.abs(s-r)<=e;a.done=l&&u}return a.value=a.done?s:r,a}}}function ef({keyframes:t,velocity:e=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:o=500,modifyTarget:s,min:a,max:l,restDelta:u=.5,restSpeed:c}){let d,h;let f=t[0],p={done:!1,value:f},m=t=>void 0!==a&&t<a||void 0!==l&&t>l,v=t=>void 0===a?l:void 0===l?a:Math.abs(a-t)<Math.abs(l-t)?a:l,g=n*e,y=f+g,x=void 0===s?y:s(y);x!==y&&(g=x-f);let b=t=>-g*Math.exp(-t/r),w=t=>x+b(t),P=t=>{let e=b(t),n=w(t);p.done=Math.abs(e)<=u,p.value=p.done?x:n},E=t=>{m(p.value)&&(d=t,h=eh({keyframes:[p.value,v(p.value)],velocity:es(w,t,p.value),damping:i,stiffness:o,restDelta:u,restSpeed:c}))};return E(0),{calculatedDuration:null,next:t=>{let e=!1;return(h||void 0!==d||(e=!0,P(t),E(t)),void 0!==d&&t>d)?h.next(t-d):(e||P(t),p)}}}let ep=t=>{let e=({timestamp:e})=>t(e);return{start:()=>tf.Wi.update(e,!0),stop:()=>(0,tf.Pn)(e),now:()=>tf.frameData.isProcessing?tf.frameData.timestamp:performance.now()}};function em(t){let e=0,n=t.next(e);for(;!n.done&&e<2e4;)e+=50,n=t.next(e);return e>=2e4?1/0:e}let ev={decay:ef,inertia:ef,tween:ei,keyframes:ei,spring:eh};function eg({autoplay:t=!0,delay:e=0,driver:n=ep,keyframes:r,type:i="keyframes",repeat:o=0,repeatDelay:s=0,repeatType:a="loop",onPlay:l,onStop:u,onComplete:c,onUpdate:d,...h}){let f,p,m,v,g,y=1,x=!1,b=()=>{p=new Promise(t=>{f=t})};b();let w=ev[i]||ei;w!==ei&&"number"!=typeof r[0]&&(v=(0,en.s)([0,100],r,{clamp:!1}),r=[0,100]);let P=w({...h,keyframes:r});"mirror"===a&&(g=w({...h,keyframes:[...r].reverse(),velocity:-(h.velocity||0)}));let E="idle",C=null,S=null,A=null;null===P.calculatedDuration&&o&&(P.calculatedDuration=em(P));let{calculatedDuration:T}=P,M=1/0,k=1/0;null!==T&&(k=(M=T+s)*(o+1)-s);let R=0,V=t=>{if(null===S)return;y>0&&(S=Math.min(S,t)),y<0&&(S=Math.min(t-k/y,S));let n=(R=null!==C?C:Math.round(t-S)*y)-e*(y>=0?1:-1),i=y>=0?n<0:n>k;R=Math.max(n,0),"finished"===E&&null===C&&(R=k);let l=R,u=P;if(o){let t=R/M,e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--;let r=!!((e=Math.min(e,o+1))%2);r&&("reverse"===a?(n=1-n,s&&(n-=s/M)):"mirror"===a&&(u=g));let i=(0,ea.u)(0,1,n);R>k&&(i="reverse"===a&&r?1:0),l=i*M}let c=i?{done:!1,value:r[0]}:u.next(l);v&&(c.value=v(c.value));let{done:h}=c;i||null===T||(h=y>=0?R>=k:R<=0);let f=null===C&&("finished"===E||"running"===E&&h);return d&&d(c.value),f&&j(),c},D=()=>{m&&m.stop(),m=void 0},L=()=>{E="idle",D(),f(),b(),S=A=null},j=()=>{E="finished",c&&c(),D(),f()},O=()=>{if(x)return;m||(m=n(V));let t=m.now();l&&l(),null!==C?S=t-C:S&&"finished"!==E||(S=t),"finished"===E&&b(),A=S,C=null,E="running",m.start()};t&&O();let F={then:(t,e)=>p.then(t,e),get time(){return tZ(R)},set time(newTime){R=newTime=tH(newTime),null===C&&m&&0!==y?S=m.now()-newTime/y:C=newTime},get duration(){return tZ(null===P.calculatedDuration?em(P):P.calculatedDuration)},get speed(){return y},set speed(newSpeed){if(newSpeed===y||!m)return;y=newSpeed,F.time=tZ(R)},get state(){return E},play:O,pause:()=>{E="paused",C=R},stop:()=>{x=!0,"idle"!==E&&(E="idle",u&&u(),L())},cancel:()=>{null!==A&&V(A),L()},complete:()=>{E="finished"},sample:t=>(S=0,V(t))};return F}let ey=(o=()=>Object.hasOwnProperty.call(Element.prototype,"animate"),()=>(void 0===r&&(r=o()),r)),ex=new Set(["opacity","clipPath","filter","transform","backgroundColor"]),eb=(t,e)=>"spring"===e.type||"backgroundColor"===t||!function t(e){return!!(!e||"string"==typeof e&&tX[e]||t_(e)||Array.isArray(e)&&e.every(t))}(e.ease),ew={type:"spring",stiffness:500,damping:25,restSpeed:10},eP=t=>({type:"spring",stiffness:550,damping:0===t?2*Math.sqrt(550):30,restSpeed:10}),eE={type:"keyframes",duration:.8},eC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},eS=(t,{keyframes:e})=>e.length>2?eE:D.has(t)?t.startsWith("scale")?eP(e[1]):ew:eC;var eA=n(15636);let eT=(t,e)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(eA.P.test(e)||"0"===e)&&!e.startsWith("url("));var eM=n(50796);let ek=new Set(["brightness","contrast","saturate","opacity"]);function eR(t){let[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;let[r]=n.match(eM.KP)||[];if(!r)return t;let i=n.replace(r,""),o=ek.has(e)?1:0;return r!==n&&(o*=100),e+"("+o+i+")"}let eV=/([a-z-]*)\(.*?\)/g,eD={...eA.P,getAnimatableNone:t=>{let e=t.match(eV);return e?e.map(eR).join(" "):t}};var eL=n(33964);let ej={...$,color:eL.$,backgroundColor:eL.$,outlineColor:eL.$,fill:eL.$,stroke:eL.$,borderColor:eL.$,borderTopColor:eL.$,borderRightColor:eL.$,borderBottomColor:eL.$,borderLeftColor:eL.$,filter:eD,WebkitFilter:eD},eO=t=>ej[t];function eF(t,e){let n=eO(t);return n!==eD&&(n=eA.P),n.getAnimatableNone?n.getAnimatableNone(e):void 0}let eB=t=>/^0[^.\s]+$/.test(t);function eN(t,e){return t[e]||t.default||t}let eI=(t,e,n,r={})=>i=>{let o=eN(r,t)||{},s=o.delay||r.delay||0,{elapsed:a=0}=r;a-=tH(s);let l=function(t,e,n,r){let i,o;let s=eT(e,n);i=Array.isArray(n)?[...n]:[null,n];let a=void 0!==r.from?r.from:t.get(),l=[];for(let t=0;t<i.length;t++){var u;null===i[t]&&(i[t]=0===t?a:i[t-1]),("number"==typeof(u=i[t])?0===u:null!==u?"none"===u||"0"===u||eB(u):void 0)&&l.push(t),"string"==typeof i[t]&&"none"!==i[t]&&"0"!==i[t]&&(o=i[t])}if(s&&l.length&&o)for(let t=0;t<l.length;t++)i[l[t]]=eF(e,o);return i}(e,t,n,o),u=l[0],c=l[l.length-1],d=eT(t,u),h=eT(t,c);(0,tz.K)(d===h,`You are trying to animate ${t} from "${u}" to "${c}". ${u} is not an animatable value - to enable this animation set ${u} to a value animatable to ${c} via the \`style\` property.`);let f={keyframes:l,velocity:e.getVelocity(),ease:"easeOut",...o,delay:-a,onUpdate:t=>{e.set(t),o.onUpdate&&o.onUpdate(t)},onComplete:()=>{i(),o.onComplete&&o.onComplete()}};if(!function({when:t,delay:e,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:o,repeatType:s,repeatDelay:a,from:l,elapsed:u,...c}){return!!Object.keys(c).length}(o)&&(f={...f,...eS(t,f)}),f.duration&&(f.duration=tH(f.duration)),f.repeatDelay&&(f.repeatDelay=tH(f.repeatDelay)),!d||!h||tY.current||!1===o.type)return function({keyframes:t,delay:e,onUpdate:n,onComplete:r}){let i=()=>(n&&n(t[t.length-1]),r&&r(),{time:0,speed:1,duration:0,play:tD.Z,pause:tD.Z,stop:tD.Z,then:t=>(t(),Promise.resolve()),cancel:tD.Z,complete:tD.Z});return e?eg({keyframes:[0,1],duration:0,delay:e,onComplete:i}):i()}(tY.current?{...f,delay:0}:f);if(!r.isHandoff&&e.owner&&e.owner.current instanceof HTMLElement&&!e.owner.getProps().onUp
9date){let n=function(t,e,{onUpdate:n,onComplete:r,...i}){let o,s;if(!(ey()&&ex.has(e)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;let a=!1,l=()=>{s=new Promise(t=>{o=t})};l();let{keyframes:u,duration:c=300,ease:d,times:h}=i;if(eb(e,i)){let t=eg({...i,repeat:0,delay:0}),e={done:!1,value:u[0]},n=[],r=0;for(;!e.done&&r<2e4;)e=t.sample(r),n.push(e.value),r+=10;h=void 0,u=n,c=r-10,d="linear"}let f=function(t,e,n,{delay:r=0,duration:i,repeat:o=0,repeatType:s="loop",ease:a,times:l}={}){let u={[e]:n};l&&(u.offset=l);let c=function t(e){if(e)return t_(e)?tq(e):Array.isArray(e)?e.map(t):tX[e]}(a);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:i,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"})}(t.owner.current,e,u,{...i,duration:c,ease:d,times:h}),p=()=>f.cancel(),m=()=>{tf.Wi.update(p),o(),l()};return f.onfinish=()=>{t.set(function(t,{repeat:e,repeatType:n="loop"}){let r=e&&"loop"!==n&&e%2==1?0:t.length-1;return t[r]}(u,i)),r&&r(),m()},{then:(t,e)=>s.then(t,e),attachTimeline:t=>(f.timeline=t,f.onfinish=null,tD.Z),get time(){return tZ(f.currentTime||0)},set time(newTime){f.currentTime=tH(newTime)},get speed(){return f.playbackRate},set speed(newSpeed){f.playbackRate=newSpeed},get duration(){return tZ(c)},play:()=>{a||(f.play(),(0,tf.Pn)(p))},pause:()=>f.pause(),stop:()=>{if(a=!0,"idle"===f.playState)return;let{currentTime:e}=f;if(e){let n=eg({...i,autoplay:!1});t.setWithVelocity(n.sample(e-10).value,n.sample(e).value,10)}m()},complete:()=>f.finish(),cancel:m}}(e,t,f);if(n)return n}return eg(f)};function eW(t){return!!(j(t)&&t.add)}let eU=t=>/^\-?\d*\.?\d+$/.test(t);var e$=n(3078);let ez=t=>e=>e.test(t),eH=[I.Rx,W.px,W.aQ,W.RW,W.vw,W.vh,{test:t=>"auto"===t,parse:t=>t}],eZ=t=>eH.find(ez(t)),eY=[...eH,eL.$,eA.P],e_=t=>eY.find(ez(t));function eq(t,e,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:o=t.getDefaultTransition(),transitionEnd:s,...a}=t.makeTargetAnimatable(e),l=t.getValue("willChange");r&&(o=r);let u=[],c=i&&t.animationState&&t.animationState.getState()[i];for(let e in a){let r=t.getValue(e),i=a[e];if(!r||void 0===i||c&&function({protectedKeys:t,needsAnimating:e},n){let r=t.hasOwnProperty(n)&&!0!==e[n];return e[n]=!1,r}(c,e))continue;let s={delay:n,elapsed:0,...eN(o||{},e)};if(window.HandoffAppearAnimations){let n=t.getProps()[f];if(n){let t=window.HandoffAppearAnimations(n,e,r,tf.Wi);null!==t&&(s.elapsed=t,s.isHandoff=!0)}}let d=!s.isHandoff&&!function(t,e){let n=t.get();if(!Array.isArray(e))return n!==e;for(let t=0;t<e.length;t++)if(e[t]!==n)return!0}(r,i);if("spring"===s.type&&(r.getVelocity()||s.velocity)&&(d=!1),r.animation&&(d=!1),d)continue;r.start(eI(e,r,i,t.shouldReduceMotion&&D.has(e)?{type:!1}:s));let h=r.animation;eW(l)&&(l.add(e),h.then(()=>l.remove(e))),u.push(h)}return s&&Promise.all(u).then(()=>{s&&function(t,e){let n=t$(t,e),{transitionEnd:r={},transition:i={},...o}=n?t.makeTargetAnimatable(n,!1):{};for(let e in o={...o,...r}){let n=tc(o[e]);t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,(0,e$.BX)(n))}}(t,s)}),u}function eX(t,e,n={}){let r=t$(t,e,n.custom),{transition:i=t.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let o=r?()=>Promise.all(eq(t,r,n)):()=>Promise.resolve(),s=t.variantChildren&&t.variantChildren.size?(r=0)=>{let{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e,n=0,r=0,i=1,o){let s=[],a=(t.variantChildren.size-1)*r,l=1===i?(t=0)=>t*r:(t=0)=>a-t*r;return Array.from(t.variantChildren).sort(eG).forEach((t,r)=>{t.notify("AnimationStart",e),s.push(eX(t,e,{...o,delay:n+l(r)}).then(()=>t.notify("AnimationComplete",e)))}),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:a}=i;if(!a)return Promise.all([o(),s(n.delay)]);{let[t,e]="beforeChildren"===a?[o,s]:[s,o];return t().then(()=>e())}}function eG(t,e){return t.sortNodePosition(e)}let eK=[...g].reverse(),eJ=g.length;function eQ(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}class e0 extends tT{constructor(t){super(t),t.animationState||(t.animationState=function(t){let e=e=>Promise.all(e.map(({animation:e,options:n})=>(function(t,e,n={}){let r;if(t.notify("AnimationStart",e),Array.isArray(e))r=Promise.all(e.map(e=>eX(t,e,n)));else if("string"==typeof e)r=eX(t,e,n);else{let i="function"==typeof e?t$(t,e,n.custom):e;r=Promise.all(eq(t,i,n))}return r.then(()=>t.notify("AnimationComplete",e))})(t,e,n))),n={animate:eQ(!0),whileInView:eQ(),whileHover:eQ(),whileTap:eQ(),whileDrag:eQ(),whileFocus:eQ(),exit:eQ()},r=!0,i=(e,n)=>{let r=t$(t,n);if(r){let{transition:t,transitionEnd:n,...i}=r;e={...e,...i,...n}}return e};function o(o,s){let a=t.getProps(),l=t.getVariantContext(!0)||{},u=[],c=new Set,d={},h=1/0;for(let e=0;e<eJ;e++){var f;let p=eK[e],g=n[p],y=void 0!==a[p]?a[p]:l[p],x=m(y),b=p===s?g.isActive:null;!1===b&&(h=e);let w=y===l[p]&&y!==a[p]&&x;if(w&&r&&t.manuallyAnimateOnMount&&(w=!1),g.protectedKeys={...d},!g.isActive&&null===b||!y&&!g.prevProp||v(y)||"boolean"==typeof y)continue;let P=(f=g.prevProp,"string"==typeof y?y!==f:!!Array.isArray(y)&&!tU(y,f)),E=P||p===s&&g.isActive&&!w&&x||e>h&&x,C=Array.isArray(y)?y:[y],S=C.reduce(i,{});!1===b&&(S={});let{prevResolvedValues:A={}}=g,T={...A,...S},M=t=>{E=!0,c.delete(t),g.needsAnimating[t]=!0}
9;for(let t in T){let e=S[t],n=A[t];d.hasOwnProperty(t)||(e!==n?tl(e)&&tl(n)?!tU(e,n)||P?M(t):g.protectedKeys[t]=!0:void 0!==e?M(t):c.add(t):void 0!==e&&c.has(t)?M(t):g.protectedKeys[t]=!0)}g.prevProp=y,g.prevResolvedValues=S,g.isActive&&(d={...d,...S}),r&&t.blockInitialAnimation&&(E=!1),E&&!w&&u.push(...C.map(t=>({animation:t,options:{type:p,...o}})))}if(c.size){let e={};c.forEach(n=>{let r=t.getBaseTarget(n);void 0!==r&&(e[n]=r)}),u.push({animation:e})}let p=!!u.length;return r&&(!1===a.initial||a.initial===a.animate)&&!t.manuallyAnimateOnMount&&(p=!1),r=!1,p?e(u):Promise.resolve()}return{animateChanges:o,setActive:function(e,r,i){var s;if(n[e].isActive===r)return Promise.resolve();null===(s=t.variantChildren)||void 0===s||s.forEach(t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)}),n[e].isActive=r;let a=o(i,e);for(let t in n)n[t].protectedKeys={};return a},setAnimateFunction:function(n){e=n(t)},getState:()=>n}}(t))}updateAnimationControlsSubscription(){let{animate:t}=this.node.getProps();this.unmount(),v(t)&&(this.unmount=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){}}let e1=0;class e5 extends tT{constructor(){super(...arguments),this.id=e1++}update(){if(!this.node.presenceContext)return;let{isPresent:t,onExitComplete:e,custom:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;let i=this.node.animationState.setActive("exit",!t,{custom:null!=n?n:this.node.getProps().custom});e&&!t&&i.then(()=>e(this.id))}mount(){let{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}let e2=(t,e)=>Math.abs(t-e);class e3{constructor(t,e,{transformPagePoint:n,contextWindow:r}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{var t,e;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=e6(this.lastMoveEventInfo,this.history),r=null!==this.startEvent,i=(t=n.offset,e={x:0,y:0},Math.sqrt(e2(t.x,e.x)**2+e2(t.y,e.y)**2)>=3);if(!r&&!i)return;let{point:o}=n,{timestamp:s}=tf.frameData;this.history.push({...o,timestamp:s});let{onStart:a,onMove:l}=this.handlers;r||(a&&a(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),l&&l(this.lastMoveEvent,n)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=e4(e,this.transformPagePoint),tf.Wi.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{if(this.end(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let{onEnd:n,onSessionEnd:r}=this.handlers,i=e6("pointercancel"===t.type?this.lastMoveEventInfo:e4(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!tg(t))return;this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;let i=e4(ty(t),this.transformPagePoint),{point:o}=i,{timestamp:s}=tf.frameData;this.history=[{...o,timestamp:s}];let{onSessionStart:a}=e;a&&a(t,e6(i,this.history)),this.removeListeners=(0,tw.z)(tb(this.contextWindow,"pointermove",this.handlePointerMove),tb(this.contextWindow,"pointerup",this.handlePointerUp),tb(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),(0,tf.Pn)(this.updatePoint)}}function e4(t,e){return e?{point:e(t.point)}:t}function e9(t,e){return{x:t.x-e.x,y:t.y-e.y}}function e6({point:t},e){return{point:t,delta:e9(t,e7(e)),offset:e9(t,e[0]),velocity:function(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null,i=e7(t);for(;n>=0&&(r=t[n],!(i.timestamp-r.timestamp>tH(.1)));)n--;if(!r)return{x:0,y:0};let o=tZ(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};let s={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(e,0)}}function e7(t){return t[t.length-1]}var e8=n(76376),nt=n(38090);function ne(t){return t.max-t.min}function nn(t,e=0,n=.01){return Math.abs(t-e)<=n}function nr(t,e,n,r=.5){t.origin=r,t.originPoint=(0,nt.C)(e.min,e.max,t.origin),t.scale=ne(n)/ne(e),(nn(t.scale,1,1e-4)||isNaN(t.scale))&&(t.scale=1),t.translate=(0,nt.C)(n.min,n.max,t.origin)-t.originPoint,(nn(t.translate)||isNaN(t.translate))&&(t.translate=0)}function ni(t,e,n,r){nr(t.x,e.x,n.x,r?r.originX:void 0),nr(t.y,e.y,n.y,r?r.originY:void 0)}function no(t,e,n){t.min=n.min+e.min,t.max=t.min+ne(e)}function ns(t,e,n){t.min=e.min-n.min,t.max=t.min+ne(e)}function na(t,e,n){ns(t.x,e.x,n.x),ns(t.y,e.y,n.y)}function nl(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function nu(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,r]=[r,n]),{min:n,max:r}}function nc(t,e,n){return{min:nd(t,e),max:nd(t,n)}}
9function nd(t,e){return"number"==typeof t?t:t[e]||0}let nh=()=>({translate:0,scale:1,origin:0,originPoint:0}),nf=()=>({x:nh(),y:nh()}),np=()=>({min:0,max:0}),nm=()=>({x:np(),y:np()});function nv(t){return[t("x"),t("y")]}function ng({top:t,left:e,right:n,bottom:r}){return{x:{min:e,max:n},y:{min:t,max:r}}}function ny(t){return void 0===t||1===t}function nx({scale:t,scaleX:e,scaleY:n}){return!ny(t)||!ny(e)||!ny(n)}function nb(t){return nx(t)||nw(t)||t.z||t.rotate||t.rotateX||t.rotateY}function nw(t){var e,n;return(e=t.x)&&"0%"!==e||(n=t.y)&&"0%"!==n}function nP(t,e,n,r,i){return void 0!==i&&(t=r+i*(t-r)),r+n*(t-r)+e}function nE(t,e=0,n=1,r,i){t.min=nP(t.min,e,n,r,i),t.max=nP(t.max,e,n,r,i)}function nC(t,{x:e,y:n}){nE(t.x,e.translate,e.scale,e.originPoint),nE(t.y,n.translate,n.scale,n.originPoint)}function nS(t){return Number.isInteger(t)?t:t>1.0000000000001||t<.999999999999?t:1}function nA(t,e){t.min=t.min+e,t.max=t.max+e}function nT(t,e,[n,r,i]){let o=void 0!==e[i]?e[i]:.5,s=(0,nt.C)(t.min,t.max,o);nE(t,e[n],e[r],s,e.scale)}let nM=["x","scaleX","originX"],nk=["y","scaleY","originY"];function nR(t,e){nT(t.x,e,nM),nT(t.y,e,nk)}function nV(t,e){return ng(function(t,e){if(!e)return t;let n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}let nD=({current:t})=>t?t.ownerDocument.defaultView:null,nL=new WeakMap;class nj{constructor(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=nm(),this.visualElement=t}start(t,{snapToCursor:e=!1}={}){let{presenceContext:n}=this.visualElement;n&&!1===n.isPresent||(this.panSession=new e3(t,{onSessionStart:t=>{this.stopAnimation(),e&&this.snapToCursor(ty(t,"page").point)},onStart:(t,e)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=tS(n),!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),nv(t=>{let e=this.getAxisMotionValue(t).get()||0;if(W.aQ.test(e)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[t];if(r){let t=ne(r);e=parseFloat(e)/100*t}}}this.originPoint[t]=e}),i&&tf.Wi.update(()=>i(t,e),!1,!0);let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(t,e)=>{let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:o}=this.getProps();if(!n&&!this.openGlobalLock)return;let{offset:s}=e;if(r&&null===this.currentDirection){this.currentDirection=function(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}(s),null!==this.currentDirection&&i&&i(this.currentDirection);return}this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),o&&o(t,e)},onSessionEnd:(t,e)=>this.stop(t,e)},{transformPagePoint:this.visualElement.getTransformPagePoint(),contextWindow:nD(this.visualElement)}))}stop(t,e){let n=this.isDragging;if(this.cancel(),!n)return;let{velocity:r}=e;this.startAnimation(r);let{onDragEnd:i}=this.getProps();i&&tf.Wi.update(()=>i(t,e))}cancel(){this.isDragging=!1;let{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;let{dragPropagation:n}=this.getProps();!n&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){let{drag:r}=this.getProps();if(!n||!nO(t,r,this.currentDirection))return;let i=this.getAxisMotionValue(t),o=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(o=function(t,{min:e,max:n},r){return void 0!==e&&t<e?t=r?(0,nt.C)(e,t,r.min):Math.max(t,e):void 0!==n&&t>n&&(t=r?(0,nt.C)(n,t,r.max):Math.min(t,n)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}resolveConstraints(){var t;let{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,i=this.constraints;e&&p(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&r?this.constraints=function(t,{top:e,left:n,bottom:r,right:i}){return{x:nl(t.x,n,i),y:nl(t.y,e,r)}}(r.layoutBox,e):this.constraints=!1,this.elastic=function(t=.35){return!1===t?t=0:!0===t&&(t=.35),{x:nc(t,"left","right"),y:nc(t,"top","bottom")}}(n),i!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&nv(t=>{this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){let n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))})}resolveRefConstraints(){var t;let{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!p(e))return!1;let r=e.current;(0,tz.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");let{projection:i}=this.visualElement;if(!i||!i.layout)return!1;let o=function(t,e,n){let r=nV(t,n),{scroll:i}=e;return i&&(nA(r.x,i.offset.x),nA(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),s={x:nu((t=i.layout.layoutBox).x,o.x),y:nu(t.y,o.y)};if(n){let t=n(function({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}(s));this.hasMutatedConstraints=!!t,t&&(s=ng(t))}return s}startAnimation(t){let{drag:e,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{};return Promise.all(nv(s=>{if(!nO(s,e,this.currentDirection))return;let l=a&&a[s]||{};o&&(l={min:0,max:0});let u={type:"inertia",velocity:n?t[s]:0,bounceStiffness:r?200:1e6,bounceDamping:r?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...i,...l};return this.startAxisValueAnimation(s,u)})).then(s)}startAxisValueAnimation(t,e){let n=this.getAxisMotionValue(t);return n.start(eI(t,n,0,e))}stopAnimation(){nv(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){let e="_drag"+t.toUpperCase(),n=this.visualElement.getProps();return n[e]||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){nv(e=>{let{drag:n}=this.getProps();if(!nO(e,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(e);if(r&&r.layout){let{min:n,max:o}=r.layout.layoutBox[e];i.set(t[e]-(0,nt.C)(n,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;
9if(!p(e)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};nv(t=>{let e=this.getAxisMotionValue(t);if(e){let n=e.get();r[t]=function(t,e){let n=.5,r=ne(t),i=ne(e);return i>r?n=(0,e8.Y)(e.min,e.max-r,t.min):r>i&&(n=(0,e8.Y)(t.min,t.max-i,e.min)),(0,ea.u)(0,1,n)}({min:n,max:n},this.constraints[t])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),nv(e=>{if(!nO(e,t,null))return;let n=this.getAxisMotionValue(e),{min:i,max:o}=this.constraints[e];n.set((0,nt.C)(i,o,r[e]))})}addListeners(){if(!this.visualElement.current)return;nL.set(this.visualElement,this);let t=tb(this.visualElement.current,"pointerdown",t=>{let{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)}),e=()=>{let{dragConstraints:t}=this.getProps();p(t)&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),e();let i=tv(window,"resize",()=>this.scalePositionWithinConstraints()),o=n.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e})=>{this.isDragging&&e&&(nv(e=>{let n=this.getAxisMotionValue(e);n&&(this.originPoint[e]+=t[e].translate,n.set(n.get()+t[e].translate))}),this.visualElement.render())});return()=>{i(),t(),r(),o&&o()}}getProps(){let t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:o=.35,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:o,dragMomentum:s}}}function nO(t,e,n){return(!0===e||e===t)&&(null===n||n===t)}class nF extends tT{constructor(t){super(t),this.removeGroupControls=tD.Z,this.removeListeners=tD.Z,this.controls=new nj(t)}mount(){let{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||tD.Z}unmount(){this.removeGroupControls(),this.removeListeners()}}let nB=t=>(e,n)=>{t&&tf.Wi.update(()=>t(e,n))};class nN extends tT{constructor(){super(...arguments),this.removePointerDownListener=tD.Z}onPointerDown(t){this.session=new e3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:nD(this.node)})}createPanHandlers(){let{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:nB(t),onStart:nB(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&tf.Wi.update(()=>r(t,e))}}}mount(){this.removePointerDownListener=tb(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}var nI=n(49637);let nW={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function nU(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}let n$={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!W.px.test(t))return t;t=parseFloat(t)}let n=nU(t,e.target.x),r=nU(t,e.target.y);return`${n}% ${r}%`}};class nz extends s.Component{componentDidMount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=t;Object.assign(R,nZ),i&&(e.group&&e.group.add(i),n&&n.register&&r&&n.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),nW.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){let{layoutDependency:e,visualElement:n,drag:r,isPresent:i}=this.props,o=n.projection;return o&&(o.isPresent=i,r||t.layoutDependency!==e||void 0===e?o.willUpdate():this.safeToRemove(),t.isPresent===i||(i?o.promote():o.relegate()||tf.Wi.postRender(()=>{let t=o.getStack();t&&t.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),queueMicrotask(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:t}=this.props;t&&t()}render(){return null}}function nH(t){let[e,n]=(0,nI.oO)(),r=(0,s.useContext)(S.p);return s.createElement(nz,{...t,layoutGroup:r,switchLayoutGroup:(0,s.useContext)(A),isPresent:e,safeToRemove:n})}let nZ={borderRadius:{...n$,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:n$,borderTopRightRadius:n$,borderBottomLeftRadius:n$,borderBottomRightRadius:n$,boxShadow:{correct:(t,{treeScale:e,projectionDelta:n})=>{let r=eA.P.parse(t);if(r.length>5)return t;let i=eA.P.createTransformer(t),o="number"!=typeof r[0]?1:0,s=n.x.scale*e.x,a=n.y.scale*e.y;r[0+o]/=s,r[1+o]/=a;let l=(0,nt.C)(s,a,.5);return"number"==typeof r[2+o]&&(r[2+o]/=l),"number"==typeof r[3+o]&&(r[3+o]/=l),i(r)}}};var nY=n(34081);let n_=["TopLeft","TopRight","BottomLeft","BottomRight"],nq=n_.length,nX=t=>"string"==typeof t?parseFloat(t):t,nG=t=>"number"==typeof t||W.px.test(t);function nK(t,e){return void 0!==t[e]?t[e]:t.borderRadius}let nJ=n0(0,.5,t4),nQ=n0(.5,.95,tD.Z);function n0(t,e,n){return r=>r<t?0:r>e?1:n((0,e8.Y)(t,e,r))}function n1(t,e){t.min=e.min,t.max=e.max}function n5(t,e){n1(t.x,e.x),n1(t.y,e.y)}function n2(t,e,n,r,i){return t-=e,t=r+1/n*(t-r),void 0!==i&&(t=r+1/i*(t-r)),t}function n3(t,e,[n,r,i],o,s){!function(t,e=0,n=1,r=.5,i,o=t,s=t){if(W.aQ.test(e)&&(e=parseFloat(e),e=(0,nt.C)(s.min,s.max,e/100)-s.min),"number"!=typeof e)return;let a=(0,nt.C)(o.min,o.max,r);t===o&&(a-=e),t.min=n2(t.min,e,n,a,i),t.max=n2(t.max,e,n,a,i)}(t,e[n],e[r],e[i],e.scale,o,s)}let n4=["x","scaleX","originX"],n9=["y","scaleY","originY"];function n6(t,e,n,r){n3(t.x,e,n4,n?n.x:void 0,r?r.x:void 0),n3(t.y,e,n9,n?n.y:void 0,r?r.y:void 0)}function n7(t){return 0===t.translate&&1===t.scale}function n8(t){return n7(t.x)&&n7(t.y)}function rt(t,e){return Math.round(t.x.min)===Math.round(e.x.min)&&Math.round(t.x.max)===Math.round(e.x.max)&&Math.round(t.y.min)===Math.round(e.y.min)&&Math.round(t.y.max)===Math.round(e.y.max)}function re(t){return ne(t.x)/ne(t.y)}var rn=n(69013);class rr{constructor(){this.members=[]}add(t){(0,rn.y4)(this.members,t),t.scheduleRender()}remove(t){if((0,rn.cl)(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){let t=this.members[this.members.length-1];t&&this.promote(t)}
9}relegate(t){let e;let n=this.members.findIndex(e=>t===e);if(0===n)return!1;for(let t=n;t>=0;t--){let n=this.members[t];if(!1!==n.isPresent){e=n;break}}return!!e&&(this.promote(e),!0)}promote(t,e){let n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);let{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach(t=>{let{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function ri(t,e,n){let r="",i=t.x.translate/e.x,o=t.y.translate/e.y;if((i||o)&&(r=`translate3d(${i}px, ${o}px, 0) `),(1!==e.x||1!==e.y)&&(r+=`scale(${1/e.x}, ${1/e.y}) `),n){let{rotate:t,rotateX:e,rotateY:i}=n;t&&(r+=`rotate(${t}deg) `),e&&(r+=`rotateX(${e}deg) `),i&&(r+=`rotateY(${i}deg) `)}let s=t.x.scale*e.x,a=t.y.scale*e.y;return(1!==s||1!==a)&&(r+=`scale(${s}, ${a})`),r||"none"}let ro=(t,e)=>t.depth-e.depth;class rs{constructor(){this.children=[],this.isDirty=!1}add(t){(0,rn.y4)(this.children,t),this.isDirty=!0}remove(t){(0,rn.cl)(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(ro),this.isDirty=!1,this.children.forEach(t)}}let ra=["","X","Y","Z"],rl={visibility:"hidden"},ru=0,rc={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function rd({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(t={},n=null==e?void 0:e()){this.id=ru++,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.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,rc.totalNodes=rc.resolvedTargetDeltas=rc.recalculatedProjection=0,this.nodes.forEach(rp),this.nodes.forEach(rw),this.nodes.forEach(rP),this.nodes.forEach(rm),window.MotionDebug&&window.MotionDebug.record(rc)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,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 t=0;t<this.path.length;t++)this.path[t].shouldResetTransform=!0;this.root===this&&(this.nodes=new rs)}addEventListener(t,e){return this.eventHandlers.has(t)||this.eventHandlers.set(t,new nY.L),this.eventHandlers.get(t).add(e)}notifyListeners(t,...e){let n=this.eventHandlers.get(t);n&&n.notify(...e)}hasListeners(t){return this.eventHandlers.has(t)}mount(e,n=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=e instanceof SVGElement&&"svg"!==e.tagName,this.instance=e;let{layoutId:r,layout:i,visualElement:o}=this.options;if(o&&!o.current&&o.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||r)&&(this.isLayoutDirty=!0),t){let n;let r=()=>this.root.updateBlockedByResize=!1;t(e,()=>{this.root.updateBlockedByResize=!0,n&&n(),n=function(t,e){let n=performance.now(),r=({timestamp:e})=>{let i=e-n;i>=250&&((0,tf.Pn)(r),t(i-250))};return tf.Wi.read(r,!0),()=>(0,tf.Pn)(r)}(r,0),nW.hasAnimatedSinceResize&&(nW.hasAnimatedSinceResize=!1,this.nodes.forEach(rb))})}r&&this.root.registerSharedNode(r,this),!1!==this.options.animate&&o&&(r||i)&&this.addEventListener("didUpdate",({delta:t,hasLayoutChanged:e,hasRelativeTargetChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let i=this.options.transition||o.getDefaultTransition()||rM,{onLayoutAnimationStart:s,onLayoutAnimationComplete:a}=o.getProps(),l=!this.targetLayout||!rt(this.targetLayout,r)||n,u=!e&&n;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||e&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(t,u);let e={...eN(i,"layout"),onPlay:s,onComplete:a};(o.shouldReduceMotion||this.options.layoutRoot)&&(e.delay=0,e.type=!1),this.startAnimation(e)}else e||rb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,(0,tf.Pn)(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.forEac
9h(rE),this.animationId++)}getTransformTemplate(){let{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(t=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let t=0;t<this.path.length;t++){let e=this.path[t];e.shouldResetTransform=!0,e.updateScroll("snapshot"),e.options.layoutRoot&&e.willUpdate(!1)}let{layoutId:e,layout:n}=this.options;if(void 0===e&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,""):void 0,this.updateSnapshot(),t&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(rg);return}this.isUpdating||this.nodes.forEach(ry),this.isUpdating=!1,this.nodes.forEach(rx),this.nodes.forEach(rh),this.nodes.forEach(rf),this.clearAllSnapshots();let t=performance.now();tf.frameData.delta=(0,ea.u)(0,1e3/60,t-tf.frameData.timestamp),tf.frameData.timestamp=t,tf.frameData.isProcessing=!0,tf.S6.update.process(tf.frameData),tf.S6.preRender.process(tf.frameData),tf.S6.render.process(tf.frameData),tf.frameData.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,queueMicrotask(()=>this.update()))}clearAllSnapshots(){this.nodes.forEach(rv),this.sharedNodes.forEach(rC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,tf.Wi.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){tf.Wi.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let t=0;t<this.path.length;t++)this.path[t].updateScroll();let t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=nm(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:e}=this.options;e&&e.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}updateScroll(t="measure"){let e=!!(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e&&(this.scroll={animationId:this.root.animationId,phase:t,isRoot:r(this.instance),offset:n(this.instance)})}resetTransform(){if(!i)return;let t=this.isLayoutDirty||this.shouldResetTransform,e=this.projectionDelta&&!n8(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||nb(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(t=!0){var e;let n=this.measurePageBox(),r=this.removeElementScroll(n);return t&&(r=this.removeTransform(r)),rV((e=r).x),rV(e.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:t}=this.options;if(!t)return nm();let e=t.measureViewportBox(),{scroll:n}=this.root;return n&&(nA(e.x,n.offset.x),nA(e.y,n.offset.y)),e}removeElementScroll(t){let e=nm();n5(e,t);for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:o}=r;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){n5(e,t);let{scroll:n}=this.root;n&&(nA(e.x,-n.offset.x),nA(e.y,-n.offset.y))}nA(e.x,i.offset.x),nA(e.y,i.offset.y)}}return e}applyTransform(t,e=!1){let n=nm();n5(n,t);for(let t=0;t<this.path.length;t++){let r=this.path[t];!e&&r.options.layoutScroll&&r.scroll&&r!==r.root&&nR(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),nb(r.latestValues)&&nR(n,r.latestValues)}return nb(this.latestValues)&&nR(n,this.latestValues),n}removeTransform(t){let e=nm();n5(e,t);for(let t=0;t<this.path.length;t++){let n=this.path[t];if(!n.instance||!nb(n.latestValues))continue;nx(n.latestValues)&&n.updateSnapshot();let r=nm();n5(r,n.measurePageBox()),n6(e,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return nb(this.latestValues)&&n6(e,this.latestValues),e}setTargetDelta(t){this.targetDelta=t,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(t){this.options={...this.options,...t,crossfade:void 0===t.crossfade||t.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!==tf.frameData.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(t=!1){var e,n,r,i;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(t||s&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget))return;let{layout:a,layoutId:l}=this.options;if(this.layout&&(a||l)){if(this.resolvedRelativeTargetAt=tf.frameData.timestamp,!this.targetDelta&&!this.relativeTarget){let t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nm(),this.relativeTargetOrigin=nm(),na(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),n5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){if((this.target||(this.target=nm(),this.targetWithTransforms=nm()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target)?(this.forceRelativeParentToResolveTarget(),n=this.target,r=this.relativeTarget,i=this.relativeParent.target,no(n.x,r.x,i.x),no(n.y,r.y,i.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):n5(this.target,this.layout.layoutBox),nC(this.target,this.targetDelta)):n5(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;let t=this.getClosestProjectingParent();t&&!!t.resumingFrom==!!this.resumingFrom&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,this.forceRelativeParentToResolveTarget(),this.relativeTarget=nm(),this.relativeTargetOrigin=nm(),na(this.relativeTargetOrigin,this.target,t.target),n5(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}rc.resolvedTargetDeltas++}}}getClosestProjectingParent(){return!this.parent||nx(this.parent.latestValues)||nw(this.parent.latestValues)?void 0:this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var t;let e=this.getLead(),n=!!this.resumingFrom||this!==e,r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===tf.frameData.timestamp&&(r=!1),r)return;let{layout:i,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(i||o))return;n5(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n,r=!1){let i,o;let s=n.length;if(s){e.x=e.y=1;for(let a=0;a<s;a++){o=(i=n[a]).projectionDelta;let s=i.instance;(!s||!s.style||"contents"!==s.style.display)&&(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&nR(t,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),o&&(e.x*=o.x.scale,e.y*=o.y.scale,nC(t,o)),r&&nb(i.latestValues)&&nR(t,i.latestValues))}e.x=nS(e.x),e.y=nS(e.y)}}(this.layoutCorrected,this.treeScale,this.path,n),e.layout&&!e.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(e.target=e.layout.layoutBox);let{target:l}=e;if(!l){this.projectionTransform&&(this.projectionDelta=nf(),this.projectionTransform="none",this.scheduleRender());return}this.projectionDelta||(this.projectionDelta=nf(),this.projectionDeltaWithTransform=nf());let u=this.projectionTransform;ni(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.projectionTransform=ri(this.projectionDelta,this.treeScale),(this.projectionTransform!==u||this.treeScale.x!==s||this.treeScale.y!==a)&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),rc.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(t=!0){if(this.options.scheduleRender&&this.options.scheduleRender(),t){let t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}setAnimationOrigin(t,e=!1){let n;let r=this.snapshot,i=r?r.latestValues:{},o={...this.latestValues},s=nf();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!e;let a=nm(),l=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),u=this.getStack(),c=!u||u.members.length<=1,d=!!(l&&!c&&!0===this.options.crossfade&&!this.path.some(rT));this.animationProgress=0,this.mixTargetDelta=e=>{let r=e/1e3;if(rS(s.x,t.x,r),rS(s.y,t.y,r),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout){var u,h,f,p;na(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),f=this.relativeTarget,p=this.relativeTargetOrigin,rA(f.x,p.x,a.x,r),rA(f.y,p.y,a.y,r),n&&(u=this.relativeTarget,h=n,u.x.min===h.x.min&&u.x.max===h.x.max&&u.y.min===
9h.y.min&&u.y.max===h.y.max)&&(this.isProjectionDirty=!1),n||(n=nm()),n5(n,this.relativeTarget)}l&&(this.animationValues=o,function(t,e,n,r,i,o){i?(t.opacity=(0,nt.C)(0,void 0!==n.opacity?n.opacity:1,nJ(r)),t.opacityExit=(0,nt.C)(void 0!==e.opacity?e.opacity:1,0,nQ(r))):o&&(t.opacity=(0,nt.C)(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let i=0;i<nq;i++){let o=`border${n_[i]}Radius`,s=nK(e,o),a=nK(n,o);(void 0!==s||void 0!==a)&&(s||(s=0),a||(a=0),0===s||0===a||nG(s)===nG(a)?(t[o]=Math.max((0,nt.C)(nX(s),nX(a),r),0),(W.aQ.test(a)||W.aQ.test(s))&&(t[o]+="%")):t[o]=a)}(e.rotate||n.rotate)&&(t.rotate=(0,nt.C)(e.rotate||0,n.rotate||0,r))}(o,i,this.latestValues,r,d,c)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(t){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&((0,tf.Pn)(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=tf.Wi.update(()=>{nW.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){let r=j(0)?0:(0,e$.BX)(0);return r.start(eI("",r,1e3,n)),r.animation}(0,0,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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);let t=this.getStack();t&&t.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(){let t=this.getLead(),{targetWithTransforms:e,target:n,layout:r,latestValues:i}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&rD(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||nm();let e=ne(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;let r=ne(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}n5(e,n),nR(e,i),ni(this.projectionDeltaWithTransform,this.layoutCorrected,e,i)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new rr),this.sharedNodes.get(t).add(e);let n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){let t=this.getStack();return!t||t.lead===this}getLead(){var t;let{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;let{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){let{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote({needsReset:t,transition:e,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){let t=this.getStack();return!!t&&t.relegate(this)}resetRotation(){let{visualElement:t}=this.options;if(!t)return;let e=!1,{latestValues:n}=t;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(e=!0),!e)return;let r={};for(let e=0;e<ra.length;e++){let i="rotate"+ra[e];n[i]&&(r[i]=n[i],t.setStaticValue(i,0))}for(let e in t.render(),r)t.setStaticValue(e,r[e]);t.scheduleRender()}getProjectionStyles(t){var e,n;if(!this.instance||this.isSVG)return;if(!this.isVisible)return rl;let r={visibility:""},i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=td(null==t?void 0:t.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;let o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){let e={};return this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=td(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!nb(this.latestValues)&&(e.transform=i?i({},""):"none",this.hasProjected=!1),e}let s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=ri(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));let{x:a,y:l}=this.projectionDelta;for(let t in r.transformOrigin=`${100*a.origin}% ${100*l.origin}% 0`,o.animationValues?r.opacity=o===this?null!==(n=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==n?n:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,R){if(void 0===s[t])continue;let{correct:e,applyTo:n}=R[t],i="none"===r.transform?s[t]:e(s[t],o);if(n){let t=n.length;for(let e=0;e<t;e++)r[n[e]]=i}else r[t]=i}return this.options.layoutId&&(r.pointerEvents=o===this?td(null==t?void 0:t.pointerEvents)||"":"none"),r}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
9resetTree(){this.root.nodes.forEach(t=>{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()}),this.root.nodes.forEach(rg),this.root.sharedNodes.clear()}}}function rh(t){t.updateLayout()}function rf(t){var e;let n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){let{layoutBox:e,measuredBox:r}=t.layout,{animationType:i}=t.options,o=n.source!==t.layout.source;"size"===i?nv(t=>{let r=o?n.measuredBox[t]:n.layoutBox[t],i=ne(r);r.min=e[t].min,r.max=r.min+i}):rD(i,n.layoutBox,e)&&nv(r=>{let i=o?n.measuredBox[r]:n.layoutBox[r],s=ne(e[r]);i.max=i.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)});let s=nf();ni(s,e,n.layoutBox);let a=nf();o?ni(a,t.applyTransform(r,!0),n.measuredBox):ni(a,e,n.layoutBox);let l=!n8(s),u=!1;if(!t.resumeFrom){let r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:o}=r;if(i&&o){let s=nm();na(s,n.layoutBox,i.layoutBox);let a=nm();na(a,e,o.layoutBox),rt(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(t.isLead()){let{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function rp(t){rc.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function rm(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function rv(t){t.clearSnapshot()}function rg(t){t.clearMeasurements()}function ry(t){t.isLayoutDirty=!1}function rx(t){let{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function rb(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function rw(t){t.resolveTargetDelta()}function rP(t){t.calcProjection()}function rE(t){t.resetRotation()}function rC(t){t.removeLeadSnapshot()}function rS(t,e,n){t.translate=(0,nt.C)(e.translate,0,n),t.scale=(0,nt.C)(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function rA(t,e,n,r){t.min=(0,nt.C)(e.min,n.min,r),t.max=(0,nt.C)(e.max,n.max,r)}function rT(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}let rM={duration:.45,ease:[.4,0,.1,1]},rk=t=>"undefined"!=typeof navigator&&navigator.userAgent.toLowerCase().includes(t),rR=rk("applewebkit/")&&!rk("chrome/")?Math.round:tD.Z;function rV(t){t.min=rR(t.min),t.max=rR(t.max)}function rD(t,e,n){return"position"===t||"preserve-aspect"===t&&!nn(re(e),re(n),.2)}let rL=rd({attachResizeListener:(t,e)=>tv(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rj={current:void 0},rO=rd({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!rj.current){let t=new rL({});t.mount(window),t.setOptions({layoutScroll:!0}),rj.current=t}return rj.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>"fixed"===window.getComputedStyle(t).position}),rF=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function rB(t,e,n=1){(0,tz.k)(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);let[r,i]=function(t){let e=rF.exec(t);if(!e)return[,];let[,n,r]=e;return[n,r]}(t);if(!r)return;let o=window.getComputedStyle(e).getPropertyValue(r);if(o){let t=o.trim();return eU(t)?parseFloat(t):t}return(0,B.tm)(i)?rB(i,e,n+1):i}let rN=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),rI=t=>rN.has(t),rW=t=>Object.keys(t).some(rI),rU=t=>t===I.Rx||t===W.px,r$=(t,e)=>parseFloat(t.split(", ")[e]),rz=(t,e)=>(n,{transform:r})=>{if("none"===r||!r)return 0;let i=r.match(/^matrix3d\((.+)\)$/);if(i)return r$(i[1],e);{let e=r.match(/^matrix\((.+)\)$/);return e?r$(e[1],t):0}},rH=new Set(["x","y","z"]),rZ=V.filter(t=>!rH.has(t)),rY={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:rz(4,13),y:rz(5,14)};rY.translateX=rY.x,rY.translateY=rY.y;let r_=(t,e,n)=>{let r=e.measureViewportBox(),i=getComputedStyle(e.current),{display:o}=i,s={};"none"===o&&e.setStaticValue("display",t.display||"block"),n.forEac
9h(t=>{s[t]=rY[t](r,i)}),e.render();let a=e.measureViewportBox();return n.forEach(n=>{let r=e.getValue(n);r&&r.jump(s[n]),t[n]=rY[n](a,i)}),t},rq=(t,e,n={},r={})=>{e={...e},r={...r};let i=Object.keys(e).filter(rI),o=[],s=!1,a=[];if(i.forEach(i=>{let l;let u=t.getValue(i);if(!t.hasValue(i))return;let c=n[i],d=eZ(c),h=e[i];if(tl(h)){let t=h.length,e=null===h[0]?1:0;d=eZ(c=h[e]);for(let n=e;n<t&&null!==h[n];n++)l?(0,tz.k)(eZ(h[n])===l,"All keyframes must be of the same type"):(l=eZ(h[n]),(0,tz.k)(l===d||rU(d)&&rU(l),"Keyframes must be of the same dimension as the current value"))}else l=eZ(h);if(d!==l){if(rU(d)&&rU(l)){let t=u.get();"string"==typeof t&&u.set(parseFloat(t)),"string"==typeof h?e[i]=parseFloat(h):Array.isArray(h)&&l===W.px&&(e[i]=h.map(parseFloat))}else(null==d?void 0:d.transform)&&(null==l?void 0:l.transform)&&(0===c||0===h)?0===c?u.set(l.transform(c)):e[i]=d.transform(h):(s||(o=function(t){let e=[];return rZ.forEach(n=>{let r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),e.length&&t.render(),e}(t),s=!0),a.push(i),r[i]=void 0!==r[i]?r[i]:e[i],u.jump(h))}}),!a.length)return{target:e,transitionEnd:r};{let n=a.indexOf("height")>=0?window.pageYOffset:null,i=r_(e,t,a);return o.length&&o.forEach(([e,n])=>{t.getValue(e).set(n)}),t.render(),C.j&&null!==n&&window.scrollTo({top:n}),{target:i,transitionEnd:r}}},rX=(t,e,n,r)=>{var i,o;let s=function(t,{...e},n){let r=t.current;if(!(r instanceof Element))return{target:e,transitionEnd:n};for(let i in n&&(n={...n}),t.values.forEach(t=>{let e=t.get();if(!(0,B.tm)(e))return;let n=rB(e,r);n&&t.set(n)}),e){let t=e[i];if(!(0,B.tm)(t))continue;let o=rB(t,r);o&&(e[i]=o,n||(n={}),void 0===n[i]&&(n[i]=t))}return{target:e,transitionEnd:n}}(t,e,r);return e=s.target,r=s.transitionEnd,i=e,o=r,rW(i)?rq(t,i,n,o):{target:i,transitionEnd:o}},rG={current:null},rK={current:!1},rJ=new WeakMap,rQ=Object.keys(E),r0=rQ.length,r1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],r5=y.length;class r2{constructor({parent:t,props:e,presenceContext:n,reducedMotionConfig:r,visualState:i},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>tf.Wi.render(this.render,!1,!0);let{latestValues:s,renderState:a}=i;this.latestValues=s,this.baseTarget={...s},this.initialValues=e.initial?{...s}:{},this.renderState=a,this.parent=t,this.props=e,this.presenceContext=n,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.options=o,this.isControllingVariants=x(e),this.isVariantNode=b(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);let{willChange:l,...u}=this.scrapeMotionValuesFromProps(e,{});for(let t in u){let e=u[t];void 0!==s[t]&&j(e)&&(e.set(s[t],!1),eW(l)&&l.add(t))}}scrapeMotionValuesFromProps(t,e){return{}}mount(t){this.current=t,rJ.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((t,e)=>this.bindToMotionValue(e,t)),rK.current||function(){if(rK.current=!0,C.j){if(window.matchMedia){let t=window.matchMedia("(prefers-reduced-motion)"),e=()=>rG.current=t.matches;t.addListener(e),e()}else rG.current=!1}}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||rG.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){for(let t in rJ.delete(this.current),this.projection&&this.projection.unmount(),(0,tf.Pn)(this.notifyUpdate),(0,tf.Pn)(this.render),this.valueSubscriptions.forEach(t=>t()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[t].clear();for(let t in this.features)this.features[t].unmount();this.current=null}bindToMotionValue(t,e){let n=D.has(t),r=e.on("change",e=>{this.latestValues[t]=e,this.props.onUpdate&&tf.Wi.update(this.notifyUpdate,!1,!0),n&&this.projection&&(this.projection.isTransformDirty=!0)}),i=e.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(t,()=>{r(),i()})}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}loadFeatures({children:t,...e},n,r,i){let o,s;for(let t=0;t<r0;t++){let n=rQ[t],{isEnabled:r,Feature:i,ProjectionNode:a,MeasureLayout:l}=E[n];a&&(o=a),r(e)&&(!this.features[n]&&i&&(this.features[n]=new i(this)),l&&(s=l))}if(!this.projection&&o){this.projection=new o(this.latestValues,this.parent&&this.parent.projection);let{layoutId:t,layout:n,drag:r,dragConstraints:s,layoutScroll:a,layoutRoot:l}=e;this.projection.setOptions({layoutId:t,layout:n,alwaysMeasureLayout:!!r||s&&p(s),visualElement:this,scheduleRender:()=>this.scheduleRender(),animationType:"string"==typeof n?n:"both",initialPromotionConfig:i,layoutScroll:a,layoutRoot:l})}return s}updateFeatures(){for(let t in this.features){let e=this.features[t];
9e.isMounted?e.update():(e.mount(),e.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):nm()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}makeTargetAnimatable(t,e=!0){return this.makeTargetAnimatableFromInstance(t,this.props,e)}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let e=0;e<r1.length;e++){let n=r1[e];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=t["on"+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=function(t,e,n){let{willChange:r}=e;for(let i in e){let o=e[i],s=n[i];if(j(o))t.addValue(i,o),eW(r)&&r.add(i);else if(j(s))t.addValue(i,(0,e$.BX)(o,{owner:t})),eW(r)&&r.remove(i);else if(s!==o){if(t.hasValue(i)){let e=t.getValue(i);e.hasAnimated||e.set(o)}else{let e=t.getStaticValue(i);t.addValue(i,(0,e$.BX)(void 0!==e?e:o,{owner:t}))}}}for(let r in n)void 0===e[r]&&t.removeValue(r);return e}(this,this.scrapeMotionValuesFromProps(t,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t=!1){if(t)return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){let t=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(t.initial=this.props.initial),t}let e={};for(let t=0;t<r5;t++){let n=y[t],r=this.props[n];(m(r)||!1===r)&&(e[n]=r)}return e}addVariantChild(t){let e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){e!==this.values.get(t)&&(this.removeValue(t),this.bindToMotionValue(t,e)),this.values.set(t,e),this.latestValues[t]=e.get()}removeValue(t){this.values.delete(t);let e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=(0,e$.BX)(e,{owner:this}),this.addValue(t,n)),n}readValue(t){var e;return void 0===this.latestValues[t]&&this.current?null!==(e=this.getBaseTargetFromProps(this.props,t))&&void 0!==e?e:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t]}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;let{initial:n}=this.props,r="string"==typeof n||"object"==typeof n?null===(e=ts(this.props,n))||void 0===e?void 0:e[t]:void 0;if(n&&void 0!==r)return r;let i=this.getBaseTargetFromProps(this.props,t);return void 0===i||j(i)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:i}on(t,e){return this.events[t]||(this.events[t]=new nY.L),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}}class r3 extends r2{sortInstanceNodePosition(t,e){return 2&t.compareDocumentPosition(e)?1:-1}getBaseTargetFromProps(t,e){return t.style?t.style[e]:void 0}removeValueFromRenderState(t,{vars:e,style:n}){delete e[t],delete n[t]}makeTargetAnimatableFromInstance({transition:t,transitionEnd:e,...n},{transformValues:r},i){let o=function(t,e,n){let r={};for(let i in t){let t=function(t,e){if(e)return(e[t]||e.default||e).from}(i,e);if(void 0!==t)r[i]=t;else{let t=n.getValue(i);t&&(r[i]=t.get())}}return r}(n,t||{},this);if(r&&(e&&(e=r(e)),n&&(n=r(n)),o&&(o=r(o))),i){!function(t,e,n){var r,i;let o=Object.keys(e).filter(e=>!t.hasValue(e)),s=o.length;if(s)for(let a=0;a<s;a++){let s=o[a],l=e[s],u=null;Array.isArray(l)&&(u=l[0]),null===u&&(u=null!==(i=null!==(r=n[s])&&void 0!==r?r:t.readValue(s))&&void 0!==i?i:e[s]),null!=u&&("string"==typeof u&&(eU(u)||eB(u))?u=parseFloat(u):!e_(u)&&eA.P.test(l)&&(u=eF(s,l)),t.addValue(s,(0,e$.BX)(u,{owner:t})),void 0===n[s]&&(n[s]=u),null!==u&&t.setBaseTarget(s,u))}}(this,n,o);let t=rX(this,n,o,e);e=t.transitionEnd,n=t.target}return{transition:t,transitionEnd:e,...n}}}class r4 extends r3{readValueFromInstance(t,e){if(D.has(e)){let t=eO(e);return t&&t.default||0}{let n=window.getComputedStyle(t),r=((0,B.f9)(e)?n.getPropertyValue(e):n[e])||0;return"string"==typeof r?r.trim():r}}measureInstanceViewportBox(t,{transformPagePoint:e}){return nV(t,e)}build(t,e,n,r){z(t,e,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,e){return ti(t,e)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:t}=this.props;j(t)&&(this.childSubscription=t.on("change",t=>{this.current&&(this.current.textContent=`${t}`)}))}renderInstance(t,e,n,r){te(t,e,n,r)}}class r9 extends r3{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(D.has(e)){let t=eO(e);return t&&t.default||0}return e=tn.has(e)?e:h(e),t.getAttribute(e)}measureInstanceViewportBox(){return nm()}scrapeMotionValuesFromProps(t,e){return to(t,e)}build(t,e,n,r){J(t,e,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,e,n,r){tr(t,e,n,r)}mount(t){this.isSVGTag=tt(t.tagName),super.mount(t)}}let r6=(t,e)=>k(t)?new r9(e,{enableHardwareAcceleration:!1}):new r4(e,{enableHardwareAcceleration:!0}),r7={animation:{Feature:e0},exit:{Feature:e5},inView:{Feature:tW},tap:{Feature:tj},focus:{Feature:tR},hover:{Feature:tk},pan:{Feature:nN},drag:{Feature:nF,ProjectionNode:rO,MeasureLayout:nH},layout:{ProjectionNode:rO,MeasureLayout:nH}},r8=function(t){function e(e,n={}){return function({preloadedFeatures:t,createVisualElement:e,useRender:n,useVisualState:r,Component:i}){t&&function(t){for(let e in t)E[e]={...E[e],...t[e]}}(t);let o=(0,s.forwardRef)(function(o,h){var v;let g;let y={...(0,s.useContext)(a._),...o,layoutId:function({layoutId:t}){let e=(0,s.useContext)(S.p).id;return e&&void 0!==t?e+"-"+t:t}(o)},{isStatic:b}=y,P=function(t){let{initial:e,animate:n}=function(t,e){if(x(t)){let{initial:e,animate:n}=t;return{initial:!1===e||m(e)?e:void 0,animate:m(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,s.useContext)(l));return(0,s.useMemo)(()=>({initial:e,animate:n}),[w(e),w(n)])}(o),E=r(o,b);if(!b&&C.j){P.visualElement=function(t,e,n,r){let{visualElement:i}=(0,s.useContext)(l),o=(0,s.useContext)(d),h=(0,s.useContext)(u.O),p=(0,s.useContext)(a._).reducedMotion,m=(0,s.useRef)();r=r||o.renderer,!m.current&&r&&(m.current=r(t,{visualState:e,parent:i,props:n,presenceContext:h,blockInitialAnimation:!!h&&!1===h.initial,reducedMotionConfig:p}));let v=m.current;(0,s.useInsertionEffect)(()=>{v&&v.update(n,h)});let g=(0,s.useRef)(!!(n[f]&&!window.HandoffComplete));return(0,c.L)(()=>{v&&(v.render(),g.current&&v.animationState&&v.animationState.animateChanges())}),(0,s.useEffect)(()=>{v&&(v.updateFeatures(),!g.current&&v.animationState&&v.animationState.animateChanges(),g.current&&(g.current=!1,window.HandoffComplete=!0))}),v}(i,E,y,e);let n=(0,s.useContext)(A),r=(0,s.useContext)(d).strict;P.visualElement&&(g=P.visualElement.loadFeatures(y,r,t,n))}return s.createElement(l.Provider,{value:P},g&&P.visualElement?s.createElement(g,{visualElement:P.visualElement,...y}):null,n(i,o,(v=P.visualElement,(0,s.useCallback)(t=>{t&&E.mount&&E.mount(t),v&&(t?v.mount(t):v.unmount()),h&&("function"==typeof h?h(t):p(h)&&
9(h.current=t))},[v])),E,b,P.visualElement))});return o[T]=i,o}(t(e,n))}if("undefined"==typeof Proxy)return e;let n=new Map;return new Proxy(e,{get:(t,r)=>(n.has(r)||n.set(r,e(r)),n.get(r))})}((t,e)=>(function(t,{forwardMotionProps:e=!1},n,r){return{...k(t)?tp:tm,preloadedFeatures:n,useRender:function(t=!1){return(e,n,r,{latestValues:i},o)=>{let a=(k(e)?function(t,e,n,r){let i=(0,s.useMemo)(()=>{let n=Q();return J(n,e,{enableHardwareAcceleration:!1},tt(r),t.transformTemplate),{...n.attrs,style:{...n.style}}},[e]);if(t.style){let e={};Z(e,t.style,t),i.style={...e,...i.style}}return i}:function(t,e,n){let r={},i=function(t,e,n){let r=t.style||{},i={};return Z(i,r,t),Object.assign(i,function({transformTemplate:t},e,n){return(0,s.useMemo)(()=>{let r=H();return z(r,e,{enableHardwareAcceleration:!n},t),Object.assign({},r.vars,r.style)},[e])}(t,e,n)),t.transformValues?t.transformValues(i):i}(t,e,n);return t.drag&&!1!==t.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===t.drag?"none":`pan-${"x"===t.drag?"y":"x"}`),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(r.tabIndex=0),r.style=i,r})(n,i,o,e),l={...function(t,e,n){let r={};for(let i in t)("values"!==i||"object"!=typeof t.values)&&(q(i)||!0===n&&_(i)||!e&&!_(i)||t.draggable&&i.startsWith("onDrag"))&&(r[i]=t[i]);return r}(n,"string"==typeof e,t),...a,ref:r},{children:u}=n,c=(0,s.useMemo)(()=>j(u)?u.get():u,[u]);return(0,s.createElement)(e,{...l,children:c})}}(e),createVisualElement:r,Component:t}})(t,e,r7,r6))},37249:function(t,e,n){n.d(e,{Xp:function(){return s},f9:function(){return i},tm:function(){return o}});let r=t=>e=>"string"==typeof e&&e.startsWith(t),i=r("--"),o=r("var(--"),s=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?
9:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g},69013:function(t,e,n){function r(t,e){-1===t.indexOf(e)&&t.push(e)}function i(t,e){let n=t.indexOf(e);n>-1&&t.splice(n,1)}n.d(e,{cl:function(){return i},y4:function(){return r}})},59111:function(t,e,n){n.d(e,{u:function(){return r}});let r=(t,e,n)=>Math.min(Math.max(n,t),e)},13223:function(t,e,n){n.d(e,{K:function(){return i},k:function(){return o}});var r=n(44439);let i=r.Z,o=r.Z},22888:function(t,e,n){n.d(e,{s:function(){return A}});var r=n(13223),i=n(33964),o=n(59111),s=n(38090);function a(t,e,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?t+(e-t)*6*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}var l=n(87325),u=n(18859),c=n(92943);let d=(t,e,n)=>{let r=t*t;return Math.sqrt(Math.max(0,n*(e*e-r)+r))},h=[l.$,u.m,c.J],f=t=>h.find(e=>e.test(t));function p(t){let e=f(t);(0,r.k)(!!e,`'${t}' is not an animatable color. Use the equivalent color code instead.`);let n=e.parse(t);return e===c.J&&(n=function({hue:t,saturation:e,lightness:n,alpha:r}){t/=360,n/=100;let i=0,o=0,s=0;if(e/=100){let r=n<.5?n*(1+e):n+e-n*e,l=2*n-r;i=a(l,r,t+1/3),o=a(l,r,t),s=a(l,r,t-1/3)}else i=o=s=n;return{red:Math.round(255*i),green:Math.round(255*o),blue:Math.round(255*s),alpha:r}}(n)),n}let m=(t,e)=>{let n=p(t),r=p(e),i={...n};return t=>(i.red=d(n.red,r.red,t),i.green=d(n.green,r.green,t),i.blue=d(n.blue,r.blue,t),i.alpha=(0,s.C)(n.alpha,r.alpha,t),u.m.transform(i))};var v=n(56920),g=n(15636);let y=(t,e)=>n=>`${n>0?e:t}`;function x(t,e){return"number"==typeof t?n=>(0,s.C)(t,e,n):i.$.test(t)?m(t,e):t.startsWith("var(")?y(t,e):P(t,e)}let b=(t,e)=>{let n=[...t],r=n.length,i=t.map((t,n)=>x(t,e[n]));return t=>{for(let e=0;e<r;e++)n[e]=i[e](t);return n}},w=(t,e)=>{let n={...t,...e},r={};for(let i in n)void 0!==t[i]&&void 0!==e[i]&&(r[i]=x(t[i],e[i]));return t=>{for(let e in r)n[e]=r[e](t);return n}},P=(t,e)=>{let n=g.P.createTransformer(e),i=(0,g.V)(t),o=(0,g.V)(e);return i.numVars===o.numVars&&i.numColors===o.numColors&&i.numNumbers>=o.numNumbers?(0,v.z)(b(i.values,o.values),n):((0,r.K)(!0,`Complex values '${t}' and '${e}' 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.`),y(t,e))};var E=n(76376),C=n(44439);let S=(t,e)=>n=>(0,s.C)(t,e,n);function A(t,e,{clamp:n=!0,ease:s,mixer:a}={}){let l=t.length;if((0,r.k)(l===e.length,"Both input and output ranges must be the same length"),1===l)return()=>e[0];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());let u=function(t,e,n){let r=[],o=n||function(t){if("number"==typeof t);else if("string"==typeof t)return i.$.test(t)?m:P;else if(Array.isArray(t))return b;else if("object"==typeof t)return w;return S}(t[0]),s=t.length-1;for(let n=0;n<s;n++){let i=o(t[n],t[n+1]);if(e){let t=Array.isArray(e)?e[n]||C.Z:e;i=(0,v.z)(t,i)}r.push(i)}return r}(e,s,a),c=u.length,d=e=>{let n=0;if(c>1)for(;n<t.length-2&&!(e<t[n+1]);n++);let r=(0,E.Y)(t[n],t[n+1],e);return u[n](r)};return n?e=>d((0,o.u)(t[0],t[l-1],e)):d}},44563:function(t,e,n){n.d(e,{j:function(){return r}});let r="undefined"!=typeof document},38090:function(t,e,n){n.d(e,{C:function(){return r}});let r=(t,e,n)=>-n*t+n*e+t},44439:function(t,e,n){n.d(e,{Z:function(){return r}});let r=t=>t},8913:function(t,e,n){n.d(e,{Y:function(){return o}});var r=n(38090),i=n(76376);function o(t){let e=[0];return!function(t,e){let n=t[t.length-1];for(let o=1;o<=e;o++){let s=(0,i.Y)(0,e,o);t.push((0,r.C)(n,1,s))}}(e,t.length-1),e}},56920:function(t,e,n){n.d(e,{z:function(){return i}});let r=(t,e)=>n=>e(t(n)),i=(...t)=>t.reduce(r)},76376:function(t,e,n){n.d(e,{Y:function(){return r}});let r=(t,e,n)=>{let r=e-t;return 0===r?1:(n-t)/r}},34081:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(69013);class i{constructor(){this.subscriptions=[]}add(t){return(0,r.y4)(this.subscriptions,t),()=>(0,r.cl)(this.subscriptions,t)}notify(t,e,n){let r=this.subscriptions.length;if(r){if(1===r)this.subscriptions[0](t,e,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(t,e,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}},53576:function(t,e,n){n.d(e,{h:function(){return i}});var r=n(2265);function i(t){let e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}},11534:function(t,e,n){n.d(e,{L:function(){return i}});var r=n(2265);let i=n(44563).j?r.useLayoutEffect:r.useEffect},14438:function(t,e,n){n.d(e,{R:function(){return r}});function r(t,e){return e?1e3/e*t:0}},3078:function(t,e,n){n.d(e,{BX:function(){return u},S1:function(){return a}});var r=n(34081),i=n(14438),o=n(58345);let s=t=>!isNaN(parseFloat(t)),a={current:void 0};class l{constructor(t,e={}){this.version="10.16.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(t,e=!0)=>{this.prev=this.current,this.current=t;let{delta:n,timestamp:r}=o.frameData;this.lastUpdated!==r&&(this.timeDelta=n,this.lastUpdated=r,o.Wi.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),e&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>o.Wi.postRender(this.velocityCheck),this.velocityCheck=({timestamp:t})=>{t!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=s(this.current),this.owner=e.owner}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new r.L);let n=this.events[t].add(e);return"change"===t?()=>{n(),o.Wi.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=t,this.timeDelta=n}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return a.current&&a.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?(0,i.R)(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 u(t,e){return new l(t,e)}},87325:function(t,e,n){n.d(e,{$:function(){return i}});var r=n(18859);let i={test:(0,n(42702).i)("#"),parse:function(t){let e="",n="",r="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,r+=r,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alph
9a:i?parseInt(i,16)/255:1}},transform:r.m.transform}},92943:function(t,e,n){n.d(e,{J:function(){return a}});var r=n(74305),i=n(27492),o=n(50796),s=n(42702);let a={test:(0,s.i)("hsl","hue"),parse:(0,s.d)("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+i.aQ.transform((0,o.Nw)(e))+", "+i.aQ.transform((0,o.Nw)(n))+", "+(0,o.Nw)(r.Fq.transform(s))+")"}},33964:function(t,e,n){n.d(e,{$:function(){return a}});var r=n(50796),i=n(87325),o=n(92943),s=n(18859);let a={test:t=>s.m.test(t)||i.$.test(t)||o.J.test(t),parse:t=>s.m.test(t)?s.m.parse(t):o.J.test(t)?o.J.parse(t):i.$.parse(t),transform:t=>(0,r.HD)(t)?t:t.hasOwnProperty("red")?s.m.transform(t):o.J.transform(t)}},18859:function(t,e,n){n.d(e,{m:function(){return u}});var r=n(59111),i=n(74305),o=n(50796),s=n(42702);let a=t=>(0,r.u)(0,255,t),l={...i.Rx,transform:t=>Math.round(a(t))},u={test:(0,s.i)("rgb","red"),parse:(0,s.d)("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:r=1})=>"rgba("+l.transform(t)+", "+l.transform(e)+", "+l.transform(n)+", "+(0,o.Nw)(i.Fq.transform(r))+")"}},42702:function(t,e,n){n.d(e,{d:function(){return o},i:function(){return i}});var r=n(50796);let i=(t,e)=>n=>!!((0,r.HD)(n)&&r.mj.test(n)&&n.startsWith(t)||e&&Object.prototype.hasOwnProperty.call(n,e)),o=(t,e,n)=>i=>{if(!(0,r.HD)(i))return i;let[o,s,a,l]=i.match(r.KP);return{[t]:parseFloat(o),[e]:parseFloat(s),[n]:parseFloat(a),alpha:void 0!==l?parseFloat(l):1}}},15636:function(t,e,n){n.d(e,{P:function(){return v},V:function(){return h}});var r=n(37249),i=n(44439),o=n(33964),s=n(74305),a=n(50796);let l={regex:r.Xp,countKey:"Vars",token:"${v}",parse:i.Z},u={regex:a.dA,countKey:"Colors",token:"${c}",parse:o.$.parse},c={regex:a.KP,countKey:"Numbers",token:"${n}",parse:s.Rx.parse};function d(t,{regex:e,countKey:n,token:r,parse:i}){let o=t.tokenised.match(e);o&&(t["num"+n]=o.length,t.tokenised=t.tokenised.replace(e,r),t.values.push(...o.map(i)))}function h(t){let e=t.toString(),n={value:e,tokenised:e,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&d(n,l),d(n,u),d(n,c),n}function f(t){return h(t).values}function p(t){let{values:e,numColors:n,numVars:r,tokenised:i}=h(t),s=e.length;return t=>{let e=i;for(let i=0;i<s;i++)e=i<r?e.replace(l.token,t[i]):i<r+n?e.replace(u.token,o.$.transform(t[i])):e.replace(c.token,(0,a.Nw)(t[i]));return e}}let m=t=>"number"==typeof t?0:t,v={test:function(t){var e,n;return isNaN(t)&&(0,a.HD)(t)&&((null===(e=t.match(a.KP))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(a.dA))||void 0===n?void 0:n.length)||0)>0},parse:f,createTransformer:p,getAnimatableNone:function(t){let e=f(t);return p(t)(e.map(m))}}},74305:function(t,e,n){n.d(e,{Fq:function(){return o},Rx:function(){return i},bA:function(){return s}});var r=n(59111);let i={test:t=>"number"==typeof t,parse:parseFloat,transform:t=>t},o={...i,transform:t=>(0,r.u)(0,1,t)},s={...i,default:1}},27492:function(t,e,n){n.d(e,{$C:function(){return c},RW:function(){return o},aQ:function(){return s},px:function(){return a},vh:function(){return l},vw:function(){return u}});var r=n(50796);let i=t=>({test:e=>(0,r.HD)(e)&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),o=i("deg"),s=i("%"),a=i("px"),l=i("vh"),u=i("vw"),c={...s,parse:t=>s.parse(t)/100,transform:t=>s.transform(100*t)}},50796:function(t,e,n){n.d(e,{HD:function(){return a},KP:function(){return i},Nw:function(){return r},dA:function(){return o},mj:function(){return s}});let r=t=>Math.round(1e5*t)/1e5,i=/(-)?([\d]*\.?[\d])+/g,o=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,s=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function a(t){return"string"==typeof t}},5853:function(t,e,n){n.d(e,{_T:function(){return i},ev:function(){return o},pi:function(){return r}});var r=function(){return(r=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)};function i(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&0>e.indexOf(r)&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(t);i<r.length;i++)0>e.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]]);return n}function o(t,e,n){if(n||2==arguments.length)for(var r,i=0,o=e.length;i<o;i++)!r&&i in e||(r||(r=Array.prototype.slice.call(e,0,i)),r[i]=e[i]);return t.concat(r||Array.prototype.slice.call(e))}"function"==typeof SuppressedError&&SuppressedError}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.