"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8563],{1373:(e,t,n)=>{n.d(t,{A:()=>o});var r=n(12115);function o(){let e=(0,r.useRef)(new Map),t=(0,r.useCallback)((t,n,r,o)=>{let i=o?.once?(...t)=>{e.current.delete(r),r(...t)}:r;e.current.set(r,{type:n,eventTarget:t,fn:i,options:o}),t.addEventListener(n,i,o)},[]),n=(0,r.useCallback)((t,n,r,o)=>{let i=e.current.get(r)?.fn||r;t.removeEventListener(n,i,o),e.current.delete(r)},[]),o=(0,r.useCallback)(()=>{e.current.forEach((e,t)=>{n(e.eventTarget,e.type,t,e.options)})},[n]);return(0,r.useEffect)(()=>o,[o]),{addGlobalListener:t,removeGlobalListener:n,removeAllGlobalListeners:o}}},9091:(e,t,n)=>{n.d(t,{F:()=>r});let r=n(12115).createContext({register:()=>{}});r.displayName="PressResponderContext"},23406:(e,t,n)=>{n.d(t,{R:()=>s});var r=n(70261),o=n(20406),i=n(5589),l=n(1373),u=n(12115);function s(e){let{isDisabled:t,onBlurWithin:n,onFocusWithin:s,onFocusWithinChange:a}=e,c=(0,u.useRef)({isFocusWithin:!1}),{addGlobalListener:f,removeAllGlobalListeners:d}=(0,l.A)(),p=(0,u.useCallback)(e=>{(0,o.sD)(e.currentTarget,(0,o.wt)(e))&&c.current.isFocusWithin&&!(0,o.sD)(e.currentTarget,e.relatedTarget)&&(c.current.isFocusWithin=!1,d(),n&&n(e),a&&a(!1))},[n,a,c,d]),h=(0,r.yB)(p),m=(0,u.useCallback)(e=>{if(!(0,o.sD)(e.currentTarget,(0,o.wt)(e)))return;let t=(0,o.wt)(e),n=(0,i.TW)(t),l=(0,o.bq)(n);if(!c.current.isFocusWithin&&l===t){s&&s(e),a&&a(!0),c.current.isFocusWithin=!0,h(e);let t=e.currentTarget;f(n,"focus",e=>{let i=(0,o.wt)(e);if(c.current.isFocusWithin&&!(0,o.sD)(t,i)){let e=new n.defaultView.FocusEvent("blur",{relatedTarget:i});(0,r.o1)(e,t),p((0,r.eg)(e))}},{capture:!0})}},[s,a,h,f,p]);return t?{focusWithinProps:{onFocus:void 0,onBlur:void 0}}:{focusWithinProps:{onFocus:m,onBlur:p}}}},26497:(e,t,n)=>{n.d(t,{N:()=>b});var r=n(95155),o=n(12115),i=n(60296),l=n(94416),u=n(46436),s=n(59686),a=n(81402),c=n(53127);function f(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends o.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if((0,a.s)(t)&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,n=(0,a.s)(e)&&e.offsetWidth||0,r=(0,a.s)(e)&&e.offsetHeight||0,o=getComputedStyle(t),i=this.props.sizeRef.current;i.height=parseFloat(o.height),i.width=parseFloat(o.width),i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function p({children:e,isPresent:t,anchorX:n,anchorY:i,root:l,pop:u}){let s=(0,o.useId)(),a=(0,o.useRef)(null),p=(0,o.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:h}=(0,o.useContext)(c.Q),m=function(...e){return o.useCallback(function(...e){return t=>{let n=!1,r=e.map(e=>{let r=f(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t{let{width:e,height:r,top:o,left:c,right:f,bottom:d}=p.current;if(t||!1===u||!a.current||!e||!r)return;let m="left"===n?`left: ${c}`:`right: ${f}`,g="bottom"===i?`bottom: ${d}`:`top: ${o}`;a.current.dataset.motionPopId=s;let w=document.createElement("style");h&&(w.nonce=h);let v=l??document.head;return v.appendChild(w),w.sheet&&w.sheet.insertRule(` [data-motion-pop-id="${s}"] { position: absolute !important; width: ${e}px !important; height: ${r}px !important; ${m}px !important; ${g}px !important; } `),()=>{a.current?.removeAttribute("data-motion-pop-id"),v.contains(w)&&v.removeChild(w)}},[t]),(0,r.jsx)(d,{isPresent:t,childRef:a,sizeRef:p,pop:u,children:!1===u?e:o.cloneElement(e,{ref:m})})}let h=({children:e,initial:t,isPresent:n,onExitComplete:i,custom:u,presenceAffectsLayout:a,mode:c,anchorX:f,anchorY:d,root:h})=>{let g=(0,l.M)(m),w=(0,o.useId)(),v=!0,b=(0,o.useMemo)(()=>(v=!1,{id:w,initial:t,isPresent:n,custom:u,onExitComplete:e=>{for(let t of(g.set(e,!0),g.values()))if(!t)return;i&&i()},register:e=>(g.set(e,!1),()=>g.delete(e))}),[n,g,i]);return a&&v&&(b={...b}),(0,o.useMemo)(()=>{g.forEach((e,t)=>g.set(t,!1))},[n]),o.useEffect(()=>{n||g.size||!i||i()},[n]),e=(0,r.jsx)(p,{pop:"popLayout"===c,isPresent:n,anchorX:f,anchorY:d,root:h,children:e}),(0,r.jsx)(s.t.Provider,{value:b,children:e})};function m(){return new Map}var g=n(75601);let w=e=>e.key||"";function v(e){let t=[];return o.Children.forEach(e,e=>{(0,o.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:t,initial:n=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:c="sync",propagate:f=!1,anchorX:d="left",anchorY:p="top",root:m})=>{let[b,E]=(0,g.xQ)(f),x=(0,o.useMemo)(()=>v(e),[e]),C=f&&!b?[]:x.map(w),y=(0,o.useRef)(!0),L=(0,o.useRef)(x),F=(0,l.M)(()=>new Map),R=(0,o.useRef)(new Set),[k,S]=(0,o.useState)(x),[T,P]=(0,o.useState)(x);(0,u.E)(()=>{y.current=!1,L.current=x;for(let e=0;e{let o=w(e),i=(!f||!!b)&&(x===T||C.includes(o));return(0,r.jsx)(h,{isPresent:i,initial:(!y.current||!!n)&&void 0,custom:t,presenceAffectsLayout:a,mode:c,root:m,onExitComplete:i?void 0:()=>{if(R.current.has(o)||!F.has(o))return;R.current.add(o),F.set(o,!0);let e=!0;F.forEach(t=>{t||(e=!1)}),e&&(M?.(),P(L.current),f&&E?.(),s&&s())},anchorX:d,anchorY:p,children:e},o)})})}},74854:(e,t,n)=>{n.d(t,{C:()=>w,Y:()=>v});let r=new Set(["Arab","Syrc","Samr","Mand","Thaa","Mend","Nkoo","Adlm","Rohg","Hebr"]),o=new Set(["ae","ar","arc","bcc","bqi","ckb","dv","fa","glk","he","ku","mzn","nqo","pnb","ps","sd","ug","ur","yi"]);function i(e){if(Intl.Locale){let t=new Intl.Locale(e).maximize(),n="function"==typeof t.getTextInfo?t.getTextInfo():t.textInfo;if(n)return"rtl"===n.direction;if(t.scri