"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4116,7460],{8357:function(e,t,r){r.d(t,{w_:function(){return c}});var n=r(7294),o={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},l=n.createContext&&n.createContext(o),i=function(){return(i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},s=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)0>t.indexOf(n[o])&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function c(e){return function(t){return n.createElement(u,i({attr:i({},e.attr)},t),function e(t){return t&&t.map(function(t,r){return n.createElement(t.tag,i({key:r},t.attr),e(t.child))})}(e.child))}}function u(e){var t=function(t){var r,o=e.attr,l=e.size,c=e.title,u=s(e,["attr","size","title"]),a=l||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),n.createElement("svg",i({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,u,{className:r,style:i(i({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),c&&n.createElement("title",null,c),e.children)};return void 0!==l?n.createElement(l.Consumer,null,function(e){return t(e)}):t(o)}},1526:function(e,t,r){r.d(t,{M:function(){return E}});var n=r(7294),o=r(8868);function l(){let e=(0,n.useRef)(!1);return(0,o.L)(()=>(e.current=!0,()=>{e.current=!1}),[]),e}var i=r(2074),s=r(240),c=r(6681);class u extends n.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){let e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function a({children:e,isPresent:t}){let r=(0,n.useId)(),o=(0,n.useRef)(null),l=(0,n.useRef)({width:0,height:0,top:0,left:0});return(0,n.useInsertionEffect)(()=>{let{width:e,height:n,top:i,left:s}=l.current;if(t||!o.current||!e||!n)return;o.current.dataset.motionPopId=r;let c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule(`
          [data-motion-pop-id="${r}"] {
            position: absolute !important;
            width: ${e}px !important;
            height: ${n}px !important;
            top: ${i}px !important;
            left: ${s}px !important;
          }
        `),()=>{document.head.removeChild(c)}},[t]),n.createElement(u,{isPresent:t,childRef:o,sizeRef:l},n.cloneElement(e,{ref:o}))}let f=({children:e,initial:t,isPresent:r,onExitComplete:o,custom:l,presenceAffectsLayout:i,mode:u})=>{let f=(0,c.h)(p),d=(0,n.useId)(),m=(0,n.useMemo)(()=>({id:d,initial:t,isPresent:r,custom:l,onExitComplete:e=>{for(let t of(f.set(e,!0),f.values()))if(!t)return;o&&o()},register:e=>(f.set(e,!1),()=>f.delete(e))}),i?void 0:[r]);return(0,n.useMemo)(()=>{f.forEach((e,t)=>f.set(t,!1))},[r]),n.useEffect(()=>{r||f.size||!o||o()},[r]),"popLayout"===u&&(e=n.createElement(a,{isPresent:r},e)),n.createElement(s.O.Provider,{value:m},e)};function p(){return new Map}var d=r(5364),m=r(5487);let h=e=>e.key||"",E=({children:e,custom:t,initial:r=!0,onExitComplete:s,exitBeforeEnter:c,presenceAffectsLayout:u=!0,mode:a="sync"})=>{var p;(0,m.k)(!c,"Replace exitBeforeEnter with mode='wait'");let E=(0,n.useContext)(d.p).forceRender||function(){let e=l(),[t,r]=(0,n.useState)(0),o=(0,n.useCallback)(()=>{e.current&&r(t+1)},[t]);return[(0,n.useCallback)(()=>i.Wi.postRender(o),[o]),t]}()[0],y=l(),v=function(e){let t=[];return n.Children.forEach(e,e=>{(0,n.isValidElement)(e)&&t.push(e)}),t}(e),w=v,g=(0,n.useRef)(new Map).current,x=(0,n.useRef)(w),k=(0,n.useRef)(new Map).current,C=(0,n.useRef)(!0);if((0,o.L)(()=>{C.current=!1,function(e,t){e.forEach(e=>{let r=h(e);t.set(r,e)})}(v,k),x.current=w}),p=()=>{C.current=!0,k.clear(),g.clear()},(0,n.useEffect)(()=>()=>p(),[]),C.current)return n.createElement(n.Fragment,null,w.map(e=>n.createElement(f,{key:h(e),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:u,mode:a},e)));w=[...w];let O=x.current.map(h),R=v.map(h),b=O.length;for(let e=0;e<b;e++){let t=O[e];-1!==R.indexOf(t)||g.has(t)||g.set(t,void 0)}return"wait"===a&&g.size&&(w=[]),g.forEach((e,r)=>{if(-1!==R.indexOf(r))return;let o=k.get(r);if(!o)return;let l=O.indexOf(r),i=e;i||(i=n.createElement(f,{key:h(o),isPresent:!1,onExitComplete:()=>{g.delete(r);let e=Array.from(k.keys()).filter(e=>!R.includes(e));if(e.forEach(e=>k.delete(e)),x.current=v.filter(t=>{let n=h(t);return n===r||e.includes(n)}),!g.size){if(!1===y.current)return;E(),s&&s()}},custom:t,presenceAffectsLayout:u,mode:a},o),g.set(r,i)),w.splice(l,0,i)}),w=w.map(e=>{let t=e.key;return g.has(t)?e:n.createElement(f,{key:h(e),isPresent:!0,presenceAffectsLayout:u,mode:a},e)}),n.createElement(n.Fragment,null,g.size?w:w.map(e=>(0,n.cloneElement)(e)))}}}]);