"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[188],{8482:function(e,t,n){n.d(t,{g7:function(){return f}});var r=n(2265),l=n.t(r,2);function o(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}var i=n(7437),u=Symbol.for("react.lazy"),s=l[" use ".trim().toString()];function c(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===u&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}var f=function(e){let t=function(e){let t=r.forwardRef((e,t)=>{let{children:n,...l}=e;if(c(n)&&"function"==typeof s&&(n=s(n._payload)),r.isValidElement(n)){var i;let e,u;let s=(i=n,(e=Object.getOwnPropertyDescriptor(i.props,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.ref:(e=Object.getOwnPropertyDescriptor(i,"ref")?.get)&&"isReactWarning"in e&&e.isReactWarning?i.props.ref:i.props.ref||i.ref),c=function(e,t){let n={...t};for(let r in t){let l=e[r],o=t[r];/^on[A-Z]/.test(r)?l&&o?n[r]=(...e)=>{let t=o(...e);return l(...e),t}:l&&(n[r]=l):"style"===r?n[r]={...l,...o}:"className"===r&&(n[r]=[l,o].filter(Boolean).join(" "))}return{...e,...n}}(l,n.props);return n.type!==r.Fragment&&(c.ref=t?function(...e){return t=>{let n=!1,r=e.map(e=>{let r=o(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():o(e[t],null)}}}}(t,s):s),r.cloneElement(n,c)}return r.Children.count(n)>1?r.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=r.forwardRef((e,n)=>{let{children:l,...o}=e;c(l)&&"function"==typeof s&&(l=s(l._payload));let u=r.Children.toArray(l),f=u.find(p);if(f){let e=f.props.children,l=u.map(t=>t!==f?t:r.Children.count(e)>1?r.Children.only(null):r.isValidElement(e)?e.props.children:null);return(0,i.jsx)(t,{...o,ref:n,children:r.isValidElement(e)?r.cloneElement(e,void 0,l):null})}return(0,i.jsx)(t,{...o,ref:n,children:l})});return n.displayName=`${e}.Slot`,n}("Slot"),a=Symbol("radix.slottable");function p(e){return r.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===a}},535:function(e,t,n){n.d(t,{j:function(){return i}});var r=n(1994);let l=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,o=r.W,i=(e,t)=>n=>{var r;if((null==t?void 0:t.variants)==null)return o(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:i,defaultVariants:u}=t,s=Object.keys(i).map(e=>{let t=null==n?void 0:n[e],r=null==u?void 0:u[e];if(null===t)return null;let o=l(t)||l(r);return i[e][o]}),c=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{});return o(e,s,null==t?void 0:null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...l}=t;return Object.entries(l).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...u,...c}[t]):({...u,...c})[t]===n})?[...e,n,r]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)}},7586:function(e,t,n){n.d(t,{M:function(){return x}});var r=n(7437),l=n(2265),o=n(8881),i=n(3576),u=n(1534),s=n(4252),c=n(3537),f=n(5750);function a(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class p extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=t.offsetParent,n=(0,c.R)(e)&&e.offsetWidth||0,r=this.props.sizeRef.current;r.height=t.offsetHeight||0,r.width=t.offsetWidth||0,r.top=t.offsetTop,r.left=t.offsetLeft,r.right=n-r.width-r.left}return null}componentDidUpdate(){}render(){return this.props.children}}function d(e){let{children:t,isPresent:n,anchorX:o,root:i}=e,u=(0,l.useId)(),s=(0,l.useRef)(null),c=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=(0,l.useContext)(f._),h=function(...e){return l.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=a(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];"function"==typeof n?n():a(e[t],null)}}}}(...e),e)}(s,null==t?void 0:t.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:l,right:f}=c.current;if(n||!s.current||!e||!t)return;s.current.dataset.motionPopId=u;let a=document.createElement("style");d&&(a.nonce=d);let p=null!=i?i:document.head;return p.appendChild(a),a.sheet&&a.sheet.insertRule('\n          [data-motion-pop-id="'.concat(u,'"] {\n            position: absolute !important;\n            width: ').concat(e,"px !important;\n            height: ").concat(t,"px !important;\n            ").concat("left"===o?"left: ".concat(l):"right: ".concat(f),"px !important;\n            top: ").concat(r,"px !important;\n          }\n        ")),()=>{p.contains(a)&&p.removeChild(a)}},[n]),(0,r.jsx)(p,{isPresent:n,childRef:s,sizeRef:c,children:l.cloneElement(t,{ref:h})})}let h=e=>{let{children:t,initial:n,isPresent:o,onExitComplete:u,custom:c,presenceAffectsLayout:f,mode:a,anchorX:p,root:h}=e,y=(0,i.h)(m),v=(0,l.useId)(),g=!0,x=(0,l.useMemo)(()=>(g=!1,{id:v,initial:n,isPresent:o,custom:c,onExitComplete:e=>{for(let t of(y.set(e,!0),y.values()))if(!t)return;u&&u()},register:e=>(y.set(e,!1),()=>y.delete(e))}),[o,y,u]);return f&&g&&(x={...x}),(0,l.useMemo)(()=>{y.forEach((e,t)=>y.set(t,!1))},[o]),l.useEffect(()=>{o||y.size||!u||u()},[o]),"popLayout"===a&&(t=(0,r.jsx)(d,{isPresent:o,anchorX:p,root:h,children:t})),(0,r.jsx)(s.O.Provider,{value:x,children:t})};function m(){return new Map}var y=n(9637);let v=e=>e.key||"";function g(e){let t=[];return l.Children.forEach(e,e=>{(0,l.isValidElement)(e)&&t.push(e)}),t}let x=e=>{let{children:t,custom:n,initial:s=!0,onExitComplete:c,presenceAffectsLayout:f=!0,mode:a="sync",propagate:p=!1,anchorX:d="left",root:m}=e,[x,E]=(0,y.oO)(p),j=(0,l.useMemo)(()=>g(t),[t]),C=p&&!x?[]:j.map(v),R=(0,l.useRef)(!0),b=(0,l.useRef)(j),w=(0,i.h)(()=>new Map),[_,P]=(0,l.useState)(j),[O,S]=(0,l.useState)(j);(0,u.L)(()=>{R.current=!1,b.current=j;for(let e=0;e<O.length;e++){let t=v(O[e]);C.includes(t)?w.delete(t):!0!==w.get(t)&&w.set(t,!1)}},[O,C.length,C.join("-")]);let N=[];if(j!==_){let e=[...j];for(let t=0;t<O.length;t++){let n=O[t],r=v(n);C.includes(r)||(e.splice(t,0,n),N.push(n))}return"wait"===a&&N.length&&(e=N),S(g(e)),P(j),null}let{forceRender:k}=(0,l.useContext)(o.p);return(0,r.jsx)(r.Fragment,{children:O.map(e=>{let t=v(e),l=(!p||!!x)&&(j===O||C.includes(t));return(0,r.jsx)(h,{isPresent:l,initial:(!R.current||!!s)&&void 0,custom:n,presenceAffectsLayout:f,mode:a,root:m,onExitComplete:l?void 0:()=>{if(!w.has(t))return;w.set(t,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(null==k||k(),S(b.current),p&&(null==E||E()),c&&c())},anchorX:d,children:e},t)})})}}}]);