hey. this is part of a source code from a generated js file.

how does it generate the challenge?

        `),()=>{document.head.removeChild(c)}},[n]),o.createElement(PopChildMeasure,{isPresent:n,childRef:i,sizeRef:s},o.cloneElement(t,{ref:i}))}let PresenceChild=({children:t,initial:n,isPresent:r,onExitComplete:i,custom:s,presenceAffectsLayout:a,mode:l})=>{let c=(0,b.h)(newChildrenMap),u=(0,o.useId)(),d=(0,o.useMemo)(()=>({id:u,initial:n,isPresent:r,custom:s,onExitComplete:t=>{for(let n of(c.set(t,!0),c.values()))if(!n)return;i&&i()},register:t=>(c.set(t,!1),()=>c.delete(t))}),a?void 0:[r]);return(0,o.useMemo)(()=>{c.forEach((t,n)=>c.set(n,!1))},[r]),o.useEffect(()=>{r||c.size||!i||i()},[r]),"popLayout"===l&&(t=o.createElement(PopChild,{isPresent:r},t)),o.createElement(v.O.Provider,{value:d},t)};function newChildrenMap(){return new Map}var E=r(25364),x=r(45487);let getChildKey=t=>t.key||"",AnimatePresence=({children:t,custom:n,initial:r=!0,onExitComplete:i,exitBeforeEnter:s,presenceAffectsLayout:a=!0,mode:l="sync"})=>{var c;(0,x.k)(!s,"Replace exitBeforeEnter with mode='wait'");let u=(0,o.useContext)(E.p).forceRender||function(){let t=useIsMounted(),[n,r]=(0,o.useState)(0),i=(0,o.useCallback)(()=>{t.current&&r(n+1)},[n]),s=(0,o.useCallback)(()=>_.Wi.postRender(i),[i]);return[s,n]}()[0],d=useIsMounted(),p=function(t){let n=[];return o.Children.forEach(t,t=>{(0,o.isValidElement)(t)&&n.push(t)}),n}(t),v=p,b=(0,o.useRef)(new Map).current,w=(0,o.useRef)(v),k=(0,o.useRef)(new Map).current,T=(0,o.useRef)(!0);if((0,m.L)(()=>{T.current=!1,function(t,n){t.forEach(t=>{let r=getChildKey(t);n.set(r,t)})}(p,k),w.current=v}),c=()=>{T.current=!0,k.clear(),b.clear()},(0,o.useEffect)(()=>()=>c(),[]),T.current)return o.createElement(o.Fragment,null,v.map(t=>o.createElement(PresenceChild,{key:getChildKey(t),isPresent:!0,initial:!!r&&void 0,presenceAffectsLayout:a,mode:l},t)));v=[...v];let C=w.current.map(getChildKey),R=p.map(getChildKey),M=C.length;for(let t=0;t<M;t++){let n=C[t];-1!==R.indexOf(n)||b.has(n)||b.set(n,void 0)}return"wait"===l&&b.size&&(v=[]),b.forEach((t,r)=>{if(-1!==R.indexOf(r))return;let s=k.get(r);if(!s)return;let c=C.indexOf(r),m=t;m||(m=o.createElement(PresenceChild,{key:getChildKey(s),isPresent:!1,onExitComplete:()=>{b.delete(r);let t=Array.from(k.keys()).filter(t=>!R.includes(t));if(t.forEach(t=>k.delete(t)),w.current=p.filter(n=>{let i=getChildKey(n);return i===r||t.includes(i)}),!b.size){if(!1===d.current)return;u(),i&&i()}},custom:n,presenceAffectsLayout:a,mode:l},s),b.set(r,m)),v.splice(c,0,m)}),v=v.map(t=>{let n=t.key;return b.has(n)?t:o.createElement(PresenceChild,{key:getChildKey(t),isPresent:!0,presenceAffectsLayout:a,mode:l},t)}),o.createElement(o.Fragment,null,b.size?v:v.map(t=>(0,o.cloneElement)(t)))};var w=r(48794),k=r(53160),T=r(97910),C=r(44325),R=r(12074),M=r(73440),O=r(51565),components_ChatHistorySidebarToggle=function(t){let{isSidebarOpen:n,setIsSidebarToggled:r}=(0,R.A)();return(0,i.jsx)("button",{type:"button",onClick:()=>{r(!n)},className:"sidebar-toggle d-none d-lg-block ".concat(n?"sidebar-toggle-open":"sidebar-toggle-closed"," text-black"),children:n?"<":">"})};function Layout(t){let{children:n}=t,r=(0,T.k)(),s=(0,l.useRouter)(),{isSidebarOpen:a}=(0,R.A)(),{headerHeight:c,headerRef:u,expandedHeader:d}=(0,O.g)(),p="/"===s.pathname||"/search?home=true"===s.asPath,m=s.pathname.startsWith("/search")&&"/search?home=true"!==s.asPath,_=s.pathname.startsWith("/agent"),v=s.pathname.startsWith("/code"),[b,E]=(0,o.useState)(!1);(0,o.useEffect)(()=>{let handleStart=t=>{if(t.startsWith(s.pathname)){if(t.startsWith("/search")&&s.pathname.startsWith("/search")||t.startsWith("/agent")&&s.pathname.startsWith("/agent")){let n=new URLSearchParams(new URL(t,window.location.origin).search),r=new URLSearchParams(new URL(s.asPath,window.location.origin).search),i=n.get("cache"),o=r.get("cache"),a=n.get("source"),l=r.get("source"),c=r.get("home"),u=n.get("home");(i!==o&&null!==i&&null!==o||"sidebar"===a&&a!==l||u&&!c)&&E(!0)}}else E(!0)},handleComplete=()=>E(!1);return s.events.on("routeChangeStart",handleStart),s.events.on("routeChangeComplete",handleComplete),s.events.on("routeChangeError",handleComplete),()=>{s.events.off("routeChangeStart",handleStart),s.events.off("routeChangeComplete",handleComplete),s.events.off("routeChangeError",handleComplete)}},[s]);let x=b?(0,i.jsx)("div",{className:"d-flex justify-content-center align-items-center",style:{height:"calc(100vh - ".concat(c,"px - 10px)")},children:(0,i.jsx)("div",{className:"spinner-border",role:"status",children:(0,i.jsx)("span",{className:"visually-hidden",children:"Loading..."})})}):null;return m?(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-lg-2 sidebar ".concat(a?"mt-0 p-0":"sidebar-gone"," sidebar"),children:(0,i.jsxs)("div",{style:{zIndex:1031,position:"fixed",left:0,top:0,width:"inherit"},children:[a&&(0,i.jsx)(M.ZP,{}),(0,i.jsx)(components_ChatHistorySidebarToggle,{})]})}),(0,i.jsxs)("div",{className:"".concat(a?"col-lg-10":"col-lg-12"," sidebar"),children:[(0,i.jsx)("header",{className:"sticky-top",ref:u,children:(0,i.jsx)("div",{className:"bg-white",style:{width:"100%"},children:(0,i.jsx)("div",{className:"container-xl ".concat(d?"interactive":""),style:{transition:"min-width 0.3s ease-in-out"},children:(0,i.jsx)(k.Z,{})})})}),(0,i.jsx)("main",{children:null!=x?x:n})]})]})}):p||_||m||v?(0,i.jsx)("div",{children:(0,i.jsxs)("div",{className:"row",children:[(0,i.jsx)("div",{className:"col-lg-2 sidebar ".concat(a?"d-none d-lg-block mt-0 p-0":"sidebar-gone"),children:(0,i.jsxs)("div",{style:{zIndex:1031,position:"fixed",left:0,top:0,width:"inherit"},children:[a&&(0,i.jsx)(M.ZP,{}),(0,i.jsx)(components_ChatHistorySidebarToggle,{})]})}),(0,i.jsxs)("div",{className:"".concat(a?"col-lg-10":"col-lg-12"," sidebar"),children:[(0,i.jsx)("header",{className:"sticky-top",ref:u,children:(0,i.jsx)("div",{className:r.isXs?"container-xl p-3":"container-xl",children:(0,i.jsx)(k.Z,{})})}),(0,i.jsx)("main",{children:null!=x?x:n})]})]})}):(0,i.jsxs)("div",{children:[(0,i.jsx)("header",{ref:u,children:(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)("div",{className:"row",children:(0,i.jsx)("div",{className:"col-12",children:(0,i.jsx)("div",{className:r.isXs?"container-xl px-6":"container-xl",children:(0,i.jsx)(C.Z,{})})})})})}),(0,i.jsx)("main",{children:null!=x?x:n})]})}var I=r(15497),N=r(11940);function App(t){var n;let{Component:r,pageProps:{session:s,...u}}=t,m=(0,l.useRouter)(),_=null!==(n=r.getLayout)&&void 0!==n?n:t=>(0,i.jsx)(Layout,{children:t});return(0,o.useEffect)(()=>{let keyDownHandler=t=>{var n,r,i;let o=t.shiftKey||t.altKey||t.ctrlKey||t.metaKey,s=(null===(n=document.activeElement)||void 0===n?void 0:n.tagName)==="INPUT"||(null===(r=document.activeElement)||void 0===r?void 0:r.tagName)==="TEXTAREA"||(null===(i=document.activeElement)||void 0===i?void 0:i.className)==="cm-content";if("Slash"!==t.code||o||s)"k"===t.key&&(t.metaKey||t.ctrlKey)&&(t.preventDefault(),t.shiftKey?m.push("/agent?home=true"):m.push("/search?home=true"));else{let n=document.getElementsByClassName("searchbox-textarea");if(0===n.length)return;let r=n[n.length-1];r.select(),r.getBoundingClientRect().top<0&&r.scrollIntoView({behavior:"smooth"}),t.preventDefault()}};return document.addEventListener("keydown",keyDownHandler),()=>{document.removeEventListener("keydown",keyDownHandler)}},[]),(0,o.useEffect)(()=>{let handleRouteChange=t=>{-1===t.indexOf("/search")&&-1===t.indexOf("/agent")&&w.n.track("Route Change",{url:t})};return m.events.on("routeChangeStart",handleRouteChange),()=>{m.events.off("routeChangeStart",handleRouteChange)}},[]),(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(a(),{strategy:"afterInteractive",src:"https://www.googletagmanager.com/gtag/js?id=G-XCLTX4ZEX8"}),(0,i.jsx)(a(),{id:"gtag-init",strategy:"afterInteractive",dangerouslySetInnerHTML:{__html:"\n            window.dataLayer = window.dataLayer || [];\n            function gtag(){dataLayer.push(arguments);}\n            gtag('js', new Date());\n          \n            gtag('config', 'G-XCLTX4ZEX8');\n          "}}),(0,i.jsx)(AnimatePresence,{mode:"sync",children:(0,i.jsxs)(c.f,{enableSystem:!0,disableTransitionOnChange:!0,defaultTheme:"system",children:[(0,i.jsxs)(d(),{children:[(0,i.jsx)("title",{children:"Phind"}),(0,i.jsx)("meta",{name:"description",content:"Phind is a fast and intelligent AI answer engine. Focused on helping you solve challenging problems, Phind gets you from an idea to a working product."}),(0,i.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1"}),(0,i.jsx)("link",{rel:"search",type:"application/opensearchdescription+xml",title:"phind.com",href:"/opensearch.xml"}),(0,i.jsx)("meta",{name:"theme-color",media:"(prefers-color-scheme: light)",content:"#ffffff"}),(0,i.jsx)("meta",{name:"theme-color",media:"(prefers-color-scheme: dark)",content:"#171719"})]}),(0,i.jsx)(p.SessionProvider,{session:s,children:(0,i.jsx)(O.I,{children:(0,i.jsx)(N.x,{children:(0,i.jsx)(R.H,{children:(0,i.jsx)(I.$,{children:_((0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(r,{...u}),(0,i.jsx)(a(),{src:"/goodkit/js/vendor.bundle.js"}),(0,i.jsx)(a(),{src:"/goodkit/js/theme.bundle.js"})]}))})})})})})]})})]})}},9862:function(t,n,r){"use strict";r.d(n,{BM:function(){return fetchMagicEdit},CR:function(){return fetchQueryAutocomplete},Cb:function(){return fetchToggleSearchPrivate},FI:function(){return retrieveCheckoutSession},FW:function(){return fetchUpdateCodeModeHistory},Gg:function(){return fetchChat},HE:function(){return fetchCodeModeAgentResponse},K:function(){return fetchDeleteAccount},Lj:function(){return updateUserProfile},M2:function(){return prefetchWebResults},Mc:function(){return createCheckoutSession},Pv:function(){return fetchToggleUserSettingBool},Q2:function(){return fetchToggleChatPrivate},Qc:function(){return putInCache},T6:function(){return fetchUpdateChat},Vy:function(){return fetchToggleUserSettingStr},f3:function(){return fetchSearchHistory},fZ:function(){return fetchSetThreadIsPinned},iK:function(){return fetchFollowupAnswer},kV:function(){return fetchCodeModeHistory},l6:function(){return fetchDeleteMessagesInChat},lu:function(){return fetchDeleteManyThreads},ot:function(){return fetchCheckIfQueryIsComplete},ou:function(){return fetchCreateChat},pD:function(){return CommonHttpError},pN:function(){return fetchToggleCodeModePrivate},rO:function(){return fetchWithJson},tA:function(){return fetchMainAnswer},tD:function(){return getPortalSession},tI:function(){return updateCache},uE:function(){return fetchAgentResponse},v8:function(){return fetchCodeEdit},zW:function(){return fetchCreateCodeModeHistory}});var i=r(81829),o=r(13662);let CommonHttpError=class CommonHttpError extends Error{toString(){return"HTTP error: ".concat(this.statusCode," - ").concat(this.message)}constructor(t,n){super(n),this.statusCode=t,Object.setPrototypeOf(this,CommonHttpError.prototype)}};let fetchWithJson=(t,n,r,i)=>{let s=n;if(r){let t=(0,o.Nj)((0,o.Fg)(n),r.multiplier,r.addend,r.modulus),i=(0,o.cE)(t);s={...n,challenge:i}}let a={method:"POST",headers:{"Content-Type":"application/json;charset=UTF-8"},body:JSON.stringify(s),...i};return fetch(t,a).then(t=>{if(t.status>=400)throw new CommonHttpError(t.status,t.statusText);return t})},updateCache=(t,n,r)=>fetchWithJson("/api/db/cache",{cacheId:t,title:n,value:r},void 0,{method:"PUT"}),putInCache=(t,n)=>fetchWithJson("/api/db/cache",{title:t,value:n},void 0),fetchMainAnswer=async(t,n,r,o,s,a,l)=>fetchWithJson("".concat((0,i.MJ)(),"/infer/"),{question:t,options:r,context:n,backend_token:s,image_url:a,web_results:l},o),fetchFollowupAnswer=async(t,n,r,o,s,a,l)=>fetchWithJson("".concat((0,i.MJ)(),"/infer/"),{question:t,question_and_answer_history:n,options:o,context:r,backend_token:a,image_url:l},s),updateUserProfile=(t,n)=>fetchWithJson("/api/db/profile",{userProfile:t,answerStylePreference:n}),fetchCodeEdit=(t,n)=>fetchWithJson("/api/code/edit",{code:t,language:n}).then(t=>t.json()),fetchMagicEdit=async(t,n)=>fetchWithJson("".concat((0,i.MJ)(),"/extension/magic_edit/"),{old_code:t,code_to_add:n}),fetchQueryAutocomplete=async(t,n,r)=>fetchWithJson("".concat((0,i.MJ)(),"/query_autocomplete/"),{query:t,created_at:n},r).then(t=>t.json()),fetchCheckIfQueryIsComplete=async(t,n,r)=>fetchWithJson("".concat((0,i.MJ)(),"/check_query_complete/"),{query:t,created_at:n},r).then(t=>t.json()),prefetchWebResults=async(t,n,r)=>fetchWithJson("".concat((0,i.MJ)(),"/prefetch/"),{query:t,created_at:n},r).then(t=>t.json()),fetchAgentResponse=async(t,n,r,o,s,a,l)=>fetchWithJson("".concat((0,i.MJ)(),"/agent/"),{user_input:t,message_history:n,requested_model:r,anon_user_id:s,user_id:a,enable_functions:l},o),fetchCodeModeAgentResponse=async(t,n,r,o,s,a,l)=>fetchWithJson("".concat((0,i.MJ)(),"/agent/"),{user_input:t,message_history:n,requested_model:r,anon_user_id:a,user_id:l,enable_functions:!0,is_code_mode:!0,is_partial_function_call_response:s},o),fetchCreateChat=async(t,n)=>fetchWithJson("/api/db/chat",{title:t,messages:n}),fetchUpdateChat=async(t,n,r)=>fetchWithJson("/api/db/chat",{chatId:t,messages:n,title:r},void 0,{method:"PUT"}),fetchCreateCodeModeHistory=async(t,n,r,i)=>fetchWithJson("/api/db/code_mode",{title:t,messages:n,editorState:r,runCodeResults:i}),fetchUpdateCodeModeHistory=async(t,n,r,i,o)=>fetchWithJson("/api/db/code_mode",{codeModeHistoryId:t,messages:n,editorState:r,runCodeResults:i,title:o},void 0,{method:"PUT"}),fetchDeleteMessagesInChat=async(t,n,r)=>fetchWithJson("/api/db/chat",{chatId:t,index:n,numToDelete:r},void 0,{method:"DELETE"}),fetchDeleteManyThreads=async t=>fetchWithJson("/api/db/chat",{chatIds:t},void 0,{method:"DELETE"}),fetchSetThreadIsPinned=async(t,n)=>{let r=await fetchWithJson("/api/db/history/pin",{threadId:t,newPinnedValue:n},void 0,{method:"PUT"});return r},fetchChat=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return fetch("/api/db/chat?pageOffset=".concat(t))},fetchSearchHistory=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return fetch("/api/db/search_history?pageOffset=".concat(t))},fetchCodeModeHistory=async function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return fetch("/api/db/code_mode?pageOffset=".concat(t))},createCheckoutSession=async function(t,n,r){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4?arguments[4]:void 0,s=arguments.length>5?arguments[5]:void 0;return fetchWithJson("/api/stripe/checkout_sessions/create",{email:t,lookupKey:n,customerId:r,firstUserId:o,enterpriseName:s,includeFreeTrial:i}).then(t=>t.json()).catch(t=>{console.error(t)})},retrieveCheckoutSession=async t=>fetchWithJson("/api/stripe/checkout_sessions/retrieve",{sessionId:t}).then(t=>t.json()).catch(t=>{console.error(t)}),getPortalSession=async t=>fetchWithJson("/api/stripe/checkout_sessions/portal_session",{customerId:t}).then(t=>t.json()).catch(t=>{console.error(t)}),fetchDeleteAccount=async()=>fetch("/api/db/user/",{method:"DELETE"}),fetchToggleChatPrivate=async(t,n)=>fetchWithJson("/api/db/chat/private",{chatId:t,newPrivateValue:n},void 0,{method:"PUT"}),fetchToggleSearchPrivate=async(t,n)=>fetchWithJson("/api/db/search_history/private",{chatId:t,newPrivateValue:n},void 0,{method:"PUT"}),fetchToggleCodeModePrivate=async(t,n)=>fetchWithJson("/api/db/code_mode/private",{chatId:t,newPrivateValue:n},void 0,{method:"PUT"}),fetchToggleUserSettingBool=async(t,n)=>fetchWithJson("/api/db/user/settings",{property:t,newValue:n},void 0,{method:"PUT"}),fetchToggleUserSettingStr=async(t,n)=>fetchWithJson("/api/db/user/settings",{property:t,newValue:n},void 0,{method:"PUT"})},97910:function(t,n,r){"use strict";r.d(n,{k:function(){return useBreakpoints}});var i=r(67294);function useMediaQuery(t){let[n,r]=(0,i.useState)(!1);return(0,i.useEffect)(()=>{let n=window.matchMedia(t);r(n.matches);let handler=t=>r(t.matches);return n.addEventListener("change",handler),()=>n.removeEventListener("change",handler)},[]),n}function useBreakpoints(){let t={isXs:useMediaQuery("(max-width: 640px)"),isSm:useMediaQuery("(min-width: 641px) and (max-width: 768px)"),isMd:useMediaQuery("(min-width: 769px) and (max-width: 991px)"),isLg:useMediaQuery("(min-width: 992px) and (max-width: 1199px)"),isXl:useMediaQuery("(min-width: 1200px)"),active:"xs"};return t.isXs&&(t.active="xs"),t.isSm&&(t.active="sm"),t.isMd&&(t.active="md"),t.isLg&&(t.active="lg"),t.isXl&&(t.active="xl"),t}},81829:function(t,n,r){"use strict";r.d(n,{$K:function(){return U},An:function(){return u},BY:function(){return w},CF:function(){return s},DF:function(){return C},DH:function(){return P},Dv:function(){return c},F2:function(){return p},FK:function(){return R},Ic:function(){return m},MJ:function(){return getBackendEndpoint},N$:function(){return E},O6:function(){return v},O8:function(){return L},Ow:function(){return j},PF:function(){return d},TW:function(){return k},WO:function(){return getPreviewServerEndpoint},WW:function(){return N},Zd:function(){return D},_H:function(){return O},a0:function(){return l},aB:function(){return o},dx:function(){return T},i1:function(){return A},jT:function(){return x},jm:function(){return M},jx:function(){return a},lS:function(){return _},tJ:function(){return i},vV:function(){return b},xn:function(){return I},yj:function(){return B},zh:function(){return F}});let i=3,o="Phind Instant",s="Phind-405B",a=200,l=0,c=5,u=30,d=500,p=99999,m=10,_=5,v=0,b=10,E="https://twitter.com/PhindSearch",x="https://discord.gg/S25yW8TebZ",w="rgb(40, 42, 54)",k=4e3,T=32e3,C=4e3,R=8e3,M=3e4,O=8e3,I=12e3,N="https://marketplace.visualstudio.com/items?itemName=phind.phind",D="Try Phind in VS Code",P="https://chrome.google.com/webstore/detail/hello-cognition/cbkjbnfjbjlcpfaengknbfbffabiloab?hl=en-US",j="Add Phind.com to Chrome",A=["What is the best way to deploy a transformer for inference?","When should I use NextJs vs Vue?","When should I use Electron vs React Native?","How to migrate NPM to Yarn","How to deploy React using Docker on AWS via Gitlab CI","Make a Chrome extension that adds a button to the top of the page","BeautifulSoup how to find node based on multiple conditions","How to speed up BeautifulSoup parsing","How to create a link with query params using React router","How can I expose a range of ports in Docker","How to make HuggingFace tokenizer pad to the longest input sample","How to add a layer on top of HuggingFace model in PyTorch","How to write a shell script to get a program to restart itself on crash","How to expand filesystem after enlarging EC2 EBS disk","What's the difference between BPE and sentencepiece tokenizer?","How to wait for all goroutines to finish","Goroutines vs channels","Sort a list of tuples using the second element","When should I avoid useEffect() in React?","Make four grid containers in CSS that contain one picture and a paragraph of text beneath","Dockerfile for running NextJS example","Quicksort explained with code examples","Nextjs image optimization example","Nextjs app router","Why is state immutable in React?","How can I know if my website was scraped?","XOR gate made only out of AND gates, OR gates and NOT gates","Async/await syntax in JavaScript","Help me start learning about AI","Permission denied when accessing S3 bucket from EC2","How do I compute the Singular Value Decomposition of a matrix in C#?","How do I figure out writing to pipes in C# in a multi-process program without deadlocks?","Can I use a MacBook Pro with less than 16GB of RAM for machine learning?","If I have an anonymous namespace and the std namespace in C++, which one takes precedence?","How do I make an HTTP request in JavaScript?","How to use Spring Framework annotations?","How does Spring decide which bean to inject with @Autowired when there are multiple candidates?","How to get user agent from Vercel Edge Function?","Can you use Lisp in Emacs?","Types of Gunicorn workers","How to update on insert if already exist Postgres","Llama 405B benchmarks","What should I use Llama 3 for vs GPT-4o?","How do I generate images with Stable Diffusion in Huggingface Diffusers?","How to fine-tune a Stable Diffusion model on my own dataset","What is LoRA and how does it make fine-tuning easier?","What is QLoRA and does it have any tradeoffs?","Explain how LoRA works for fine-tuning LLMs","What methods the Toolformer paper mention for LLMs using tools?","How does RLHF work?","How can I use RLHF to fine-tune an LLM?","Nvidia H200 GPU","Nvidia B100 vs B200 GPUs","What's new in Nextjs 14?","What's new in Llama 3.1?","Mistral torrent model","AWS EFA vs Infiniband","Backends for torch.compile()","AMD Milan vs Genoa CPUs","Should I fine-tune a model or use a proprietary one with prompting?","How to delete all objects that have a repeated value for a field in Django?","Java format string explanation and examples","Explain the sliding window technique","How to develop a web crawler","How to use GDB to debug a C++ program","How does PyTorch FSDP work?","How to use torch.compile()","How does DeepSpeed ZeRO work?","Does torch.compile() work with DeepSpeed ZeRO?","DeepSpeed ZeRO vs PyTorch FSDP","Implement 3D parallelism using PyTorch FSDP","What is 3D parallelism in training ML models?","This week's AI news recap","US election latest","Ukraine war latest","Why is San Francisco's fog named Karl?","Compare Lake Tahoe ski resorts","Airpods Pro vs Airpods Max","How did Patrick Collison meet Paul Graham?","How did Stripe start?","How did Airbnb start?","Were Neanderthals smarter than humans?","Waymo vs Tesla self-driving","How does the Tesla FSD subscription work?","Waymo expanding to highways"],L=300,B="".concat(L/1e3,"s"),U=60,F="".concat(U/1e3,"s"),getBackendEndpoint=()=>{let{hostname:t}=window.location;return"localhost"===t?"http://localhost:8500":"staging.phind.com"===t?"https://https-staging.api.phind.com":"https://https.api.phind.com"},getPreviewServerEndpoint=()=>{let{hostname:t}=window.location;return"localhost"===t?"http://localhost:3001":"staging.phind.com"===t?"https://staging.phind.dev":"https://phind.dev"}},13662:function(t,n,r){"use strict";r.d(n,{$j:function(){return formatStreamData},Bj:function(){return convertAnswerHistoryToMessages},Fg:function(){return generateChallengeSeed},Ih:function(){return updateStreamData},Mz:function(){return createStreamWithAbort},N6:function(){return updateArray},N7:function(){return maxNumRequestsPerWindow},Nj:function(){return prngGeneral},TV:function(){return shuffle},Uj:function(){return streamAsyncIterable},WN:function(){return checkPaidUser},Zw:function(){return getLargestCodeBlock},_P:function(){return getHostFromUrl},as:function(){return formatCodeModeStreamData},cE:function(){return linearTransform},jv:function(){return isValidUrl},u2:function(){return formattedTimeStrUntilTomorrowUTC},xu:function(){return isInDevOrStagingMode}});var i=r(64487),o=r(81829);function formattedTimeStrUntilTomorrowUTC(){let t=new Date,n=(24-t.getUTCHours())*3600-60*t.getUTCMinutes()-t.getUTCSeconds();return"".concat(Math.floor(n/3600),"h ").concat(Math.floor(n%3600/60),"m")}let getEnvironmentString=()=>"production",isInDevOrStagingMode=()=>{let t=getEnvironmentString();return["development","staging"].includes(t)};async function*streamAsyncIterable(t){let n=t.getReader();try{for(;;){let{done:t,value:r}=await n.read();if(t)return;yield r}}catch(t){console.error(t),i.Tb(t)}finally{n.releaseLock()}}let createStreamWithAbort=(t,n)=>{let r=t.getReader();return new ReadableStream({async start(t){for(;;){if(n.aborted){r.cancel(),t.close();return}let{done:i,value:o}=await r.read();if(i){t.close();return}t.enqueue(o)}}})},updateArray=(t,n,r)=>{let i=[...t];return n>=i.length&&i.push(r),i[n]=r,i},shuffle=t=>t.map(t=>t).sort(()=>Math.random()-.5),getHostFromUrl=t=>new URL(t).hostname,mergeDicts=(t,n)=>{let r={...t};return Object.keys(n).forEach(t=>{Object.keys(r).includes(t)?"object"==typeof n[t]?r[t]=mergeDicts(r[t],n[t]):r[t]+=n[t]:r[t]=n[t]}),r},updateStreamData=(t,n)=>{let r=n.id,{delta:i}=n.choices[0];if(Object.keys(t).includes(r)){let n=mergeDicts(t[r].choices[0].delta,i);return{...t,[r]:{...t[r],choices:[{delta:n}]}}}return{...t,[r]:{chatCompletionId:r,...n}}},formatStreamData=t=>Object.values(t).map(t=>{let{delta:n}=t.choices[0],{role:r,content:i,function_call:o,name:s,metadata:a}=n,l=null==a?void 0:a.web_results,c={role:r,content:i,functionCall:o,name:s,metadata:{...a,webResults:l}};return c}),formatCodeModeStreamData=t=>Object.values(t).map(t=>{let n=t.id,{delta:r}=t.choices[0],{role:i,content:o,name:s,metadata:a,format_id:l}=r,c=null==a?void 0:a.web_results,u=o;null==o||Array.isArray(o)||(u=Object.keys(o).map(t=>parseInt(t,10)).sort().map(t=>o["".concat(t)])),u=u.map(t=>{if("function_call"===t.type){var n,r,i,o;let s=null!==(i=null===(n=t.function_call)||void 0===n?void 0:n.args)&&void 0!==i?i:"",a=null!==(o=null===(r=t.function_call)||void 0===r?void 0:r.name)&&void 0!==o?o:"";return{...t,function_call:{name:a,args:s}}}return t});let d={role:i,content:u,chatCompletionId:n,name:s,metadata:{...a,webResults:c},formatId:l};return d}),deterministicStringify=t=>{let handleValue=t=>"object"==typeof t&&null!==t?Array.isArray(t)?"[".concat(t.sort().map(t=>handleValue(t)).join(","),"]"):"{".concat(deterministicStringify(t),"}"):"number"==typeof t?t.toFixed(8).replace(/\.?0+$/,""):"boolean"==typeof t?t?"true":"false":"string"==typeof t?'"'.concat(t,'"'):null;return Object.keys(t).sort().reduce((n,r)=>{let i=handleValue(t[r]);return null!==i?"".concat(n).concat(n?",":"").concat(r,":").concat(i):n},"")};function prngGeneral(t,n,r,i){return(t*n+r)%i/i}function linearTransform(t){return 3.87*t-.42}function generateChallengeSeed(t){let n=deterministicStringify(t),r=encodeURIComponent(n);return function(t){let n=[...t],r=0;for(let t=0;t<n.length;t+=1)n[t].length>1||n[t].charCodeAt(0)>=256||(r=(r<<5)-r+n[t][0].charCodeAt(0)|0);return r}(r)}let maxNumRequestsPerWindow=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"GPT-4",r=arguments.length>2?arguments[2]:void 0,i=0;switch(n){case"Claude Opus":case"o1-preview":i=0;break;case"GPT-4":i=o.O6;break;case"Phind-70B":i=o.vV}let s=r&&t.toLowerCase().includes("enterprise");if(r&&"Phind Plus"===t)switch(n){case"Claude Opus":case"o1-preview":i=0;break;case"GPT-4":case"Phind-70B":i=o.An}if(r&&("Phind Pro"===t||"Phind Pro Yearly"===t)||s)switch(n){case"Claude Opus":i=o.Ic;break;case"o1-preview":i=o.lS;break;case"GPT-4":i=o.PF;break;case"Phind-70B":i=o.F2}return i},checkPaidUser=(t,n)=>!!(n&&(t.toLowerCase().includes("enterprise")||"Phind Plus"===t||"Phind Plus Yearly"===t||"Phind Pro"===t||"Phind Pro Yearly"===t));function isValidUrl(t){if(["\n","	","\r"].some(n=>t.includes(n)))return!1;try{new URL(t)}catch(t){return!1}return!0}let convertAnswerHistoryToMessages=t=>{let n=[];for(let r=0;r<t.length;r+=1){let{question:i,answer:o}=t[r];n.push({role:"user",content:i}),n.push({role:"assistant",content:o})}return n},getLargestCodeBlock=t=>{if(null===t.content||"string"!=typeof t.content)return null;let n=t.content.split("```"),r=n.filter((t,n)=>n%2==1),i=r.reduce((t,n)=>t.length>n.length?t:n,""),o=i.split("\n")[0],s=o.match(/^[a-z]+/),a=s?i.substring(s[0].length):i;return{language:s?s[0]:"",code:a}}},48794:function(t,n,r){"use strict";r.d(n,{n:function(){return s}});var i=r(8891),o=r.n(i);o().init("6d31cd4238973a84421371ef3929c915",{debug:!1,api_host:"/api"});let s={identify:t=>{o().identify(t)},alias:t=>{o().alias(t)},track:(t,n)=>{n?o().track(t,n):o().track(t)},people:{set:t=>{o().people.set(t)}},reset:()=>{o().reset()}}},21719:function(t,n,r){"use strict";r.d(n,{Z:function(){return useLocalStorage}});var i=r(67294);function useLocalStorage(t,n){let[r,o]=(0,i.useState)(()=>{{let r=localStorage.getItem(t);return null===r?"function"==typeof n?n():n:JSON.parse(r)}});return(0,i.useEffect)(()=>{localStorage.setItem(t,JSON.stringify(r))},[r]),[r,o]}},55973:function(){},65149:function(){},71633:function(){},47309:function(){},77663:function(t){!function(){var n={229:function(t){var n,r,i,o=t.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(t){if(n===setTimeout)return setTimeout(t,0);if((n===defaultSetTimout||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(r){try{return n.call(null,t,0)}catch(r){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){n=defaultSetTimout}try{r="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){r=defaultClearTimeout}}();var s=[],a=!1,l=-1;function cleanUpNextTick(){a&&i&&(a=!1,i.length?s=i.concat(s):l=-1,s.length&&drainQueue())}function drainQueue(){if(!a){var t=runTimeout(cleanUpNextTick);a=!0;for(var n=s.length;n;){for(i=s,s=[];++l<n;)i&&i[l].run();l=-1,n=s.length}i=null,a=!1,function(t){if(r===clearTimeout)return clearTimeout(t);if((r===defaultClearTimeout||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(t);try{r(t)}catch(n){try{return r.call(null,t)}catch(n){return r.call(this,t)}}}(t)}}function Item(t,n){this.fun=t,this.array=n}function noop(){}o.nextTick=function(t){var n=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)n[r-1]=arguments[r];s.push(new Item(t,n)),1!==s.length||a||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=noop,o.addListener=noop,o.once=noop,o.off=noop,o.removeListener=noop,o.removeAllListeners=noop,o.emit=noop,o.prependListener=noop,o.prependOnceListener=noop,o.listeners=function(t){return[]},o.binding=function(t){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(t){throw Error("process.chdir is not supported")},o.umask=function(){return 0}}},r={};function __nccwpck_require__(t){var i=r[t];if(void 0!==i)return i.exports;var o=r[t]={exports:{}},s=!0;try{n[t](o,o.exports,__nccwpck_require__),s=!1}finally{s&&delete r[t]}return o.exports}__nccwpck_require__.ab="//";var i=__nccwpck_require__(229);t.exports=i}()},9008:function(t,n,r){t.exports=r(79201)},25675:function(t,n,r){t.exports=r(645)},41664:function(t,n,r){t.exports=r(65170)},11163:function(t,n,r){t.exports=r(59974)},4298:function(t,n,r){t.exports=r(85354)},92703:function(t,n,r){"use strict";var i=r(50414);function emptyFunction(){}function emptyFunctionWithReset(){}emptyFunctionWithReset.resetWarningCache=emptyFunction,t.exports=function(){function shim(t,n,r,o,s,a){if(a!==i){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function getShim(){return shim}shim.isRequired=shim;var t={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return t.PropTypes=t,t}},45697:function(t,n,r){t.exports=r(92703)()},50414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77819:function(t,n,r){"use strict";r.d(n,{Z:function(){return b}});var i=r(94184),o=r.n(i),s=r(67294),a=r(39325),l=r(91505),c=r(94305);function parseDuration(t,n){let r=(0,l.Z)(t,n)||"",i=-1===r.indexOf("ms")?1e3:1;return parseFloat(r)*i}function transitionEndListener(t,n){let r=parseDuration(t,"transitionDuration"),i=parseDuration(t,"transitionDelay"),o=(0,c.Z)(t,r=>{r.target===t&&(o(),n(r))},r+i)}var u=r(35654),d=r(8285),p=r(85893);let m=s.forwardRef(({onEnter:t,onEntering:n,onEntered:r,onExit:i,onExiting:o,onExited:l,addEndListener:c,children:m,childRef:_,...v},b)=>{let E=(0,s.useRef)(null),x=(0,u.Z)(E,_),attachRef=t=>{x((0,d.Z)(t))},normalize=t=>n=>{t&&E.current&&t(E.current,n)},w=(0,s.useCallback)(normalize(t),[t]),k=(0,s.useCallback)(normalize(n),[n]),T=(0,s.useCallback)(normalize(r),[r]),C=(0,s.useCallback)(normalize(i),[i]),R=(0,s.useCallback)(normalize(o),[o]),M=(0,s.useCallback)(normalize(l),[l]),O=(0,s.useCallback)(normalize(c),[c]);return(0,p.jsx)(a.ZP,{ref:b,...v,onEnter:w,onEntered:T,onEntering:k,onExit:C,onExited:M,onExiting:R,addEndListener:O,nodeRef:E,children:"function"==typeof m?(t,n)=>m(t,{...n,ref:attachRef}):s.cloneElement(m,{ref:attachRef})})}),_={[a.d0]:"show",[a.cn]:"show"},v=s.forwardRef(({className:t,children:n,transitionClasses:r={},...i},a)=>{let l=(0,s.useCallback)((t,n)=>{t.offsetHeight,null==i.onEnter||i.onEnter(t,n)},[i]);return(0,p.jsx)(m,{ref:a,addEndListener:transitionEndListener,...i,onEnter:l,childRef:n.ref,children:(i,a)=>s.cloneElement(n,{...a,className:o()("fade",t,n.props.className,_[i],r[i])})})});v.defaultProps={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1},v.displayName="Fade";var b=v},50699:function(t,n,r){"use strict";let i,o;r.d(n,{Z:function(){return es}});var s,a=r(94184),l=r.n(a),c=r(9351),u=r(23004),d=r(67216),p=r(30099);function scrollbarSize(t){if((!s&&0!==s||t)&&u.Z){var n=document.createElement("div");n.style.position="absolute",n.style.top="-9999px",n.style.width="50px",n.style.height="50px",n.style.overflow="scroll",document.body.appendChild(n),s=n.offsetWidth-n.clientWidth,document.body.removeChild(n)}return s}var m=r(32092),_=r(51176),v=r(35654),b=r(76852),E=r(94305),x=r(67294);function activeElement(t){void 0===t&&(t=(0,d.Z)());try{var n=t.activeElement;if(!n||!n.nodeName)return null;return n}catch(n){return t.body}}var w=r(90424),k=r(72950),T=r(73935),C=r(6454),R=r(91505);let M="data-rr-ui-modal-open";var O=class{constructor({ownerDocument:t,handleContainerOverflow:n=!0,isRTL:r=!1}={}){this.handleContainerOverflow=n,this.isRTL=r,this.modals=[],this.ownerDocument=t}getScrollbarWidth(){return function(t=document){let n=t.defaultView;return Math.abs(n.innerWidth-t.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(t){}removeModalAttributes(t){}setContainerStyle(t){let n={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",i=this.getElement();t.style={overflow:i.style.overflow,[r]:i.style[r]},t.scrollBarWidth&&(n[r]=`${parseInt((0,R.Z)(i,r)||"0",10)+t.scrollBarWidth}px`),i.setAttribute(M,""),(0,R.Z)(i,n)}reset(){[...this.modals].forEach(t=>this.remove(t))}removeContainerStyle(t){let n=this.getElement();n.removeAttribute(M),Object.assign(n.style,t.style)}add(t){let n=this.modals.indexOf(t);return-1!==n||(n=this.modals.length,this.modals.push(t),this.setModalAttributes(t),0!==n||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state))),n}remove(t){let n=this.modals.indexOf(t);-1!==n&&(this.modals.splice(n,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(t))}isTopModal(t){return!!this.modals.length&&this.modals[this.modals.length-1]===t}},I=r(54194),N=r(12963),D=r(722),P=r(96899),j=r(85893);let A=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"],L=(0,x.forwardRef)((t,n)=>{var r;let{show:o=!1,role:s="dialog",className:a,style:l,children:c,backdrop:d=!0,keyboard:p=!0,onBackdropClick:m,onEscapeKeyDown:v,transition:E,runTransition:R,backdropTransition:M,runBackdropTransition:L,autoFocus:B=!0,enforceFocus:U=!0,restoreFocus:F=!0,restoreFocusOptions:H,renderDialog:G,renderBackdrop:W=t=>(0,j.jsx)("div",Object.assign({},t)),manager:q,container:Y,onShow:z,onHide:Z=()=>{},onExit:V,onExited:K,onExiting:J,onEnter:X,onEntering:Q,onEntered:ee}=t,et=function(t,n){if(null==t)return{};var r,i,o={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],n.indexOf(r)>=0||(o[r]=t[r]);return o}(t,A),en=(0,I.Z)(Y),er=function(t){let n=(0,N.Z)(),r=t||(i||(i=new O({ownerDocument:null==n?void 0:n.document})),i),o=(0,x.useRef)({dialog:null,backdrop:null});return Object.assign(o.current,{add:()=>r.add(o.current),remove:()=>r.remove(o.current),isTopModal:()=>r.isTopModal(o.current),setDialogRef:(0,x.useCallback)(t=>{o.current.dialog=t},[]),setBackdropRef:(0,x.useCallback)(t=>{o.current.backdrop=t},[])})}(q),ei=(0,C.Z)(),eo=(r=(0,x.useRef)(null),(0,x.useEffect)(function(){r.current=o}),r.current),[es,ea]=(0,x.useState)(!o),el=(0,x.useRef)(null);(0,x.useImperativeHandle)(n,()=>er,[er]),u.Z&&!eo&&o&&(el.current=activeElement()),o&&es&&ea(!1);let ec=(0,_.Z)(()=>{if(er.add(),em.current=(0,k.Z)(document,"keydown",eh),ef.current=(0,k.Z)(document,"focus",()=>setTimeout(ed),!0),z&&z(),B){let t=activeElement(document);er.dialog&&t&&!(0,w.Z)(er.dialog,t)&&(el.current=t,er.dialog.focus())}}),eu=(0,_.Z)(()=>{if(er.remove(),null==em.current||em.current(),null==ef.current||ef.current(),F){var t;null==(t=el.current)||null==t.focus||t.focus(H),el.current=null}});(0,x.useEffect)(()=>{o&&en&&ec()},[o,en,ec]),(0,x.useEffect)(()=>{es&&eu()},[es,eu]),(0,b.Z)(()=>{eu()});let ed=(0,_.Z)(()=>{if(!U||!ei()||!er.isTopModal())return;let t=activeElement();er.dialog&&t&&!(0,w.Z)(er.dialog,t)&&er.dialog.focus()}),ep=(0,_.Z)(t=>{t.target===t.currentTarget&&(null==m||m(t),!0===d&&Z())}),eh=(0,_.Z)(t=>{p&&(0,P.k)(t)&&er.isTopModal()&&(null==v||v(t),t.defaultPrevented||Z())}),ef=(0,x.useRef)(),em=(0,x.useRef)();if(!en)return null;let eg=Object.assign({role:s,ref:er.setDialogRef,"aria-modal":"dialog"===s||void 0},et,{style:l,className:a,tabIndex:-1}),e_=G?G(eg):(0,j.jsx)("div",Object.assign({},eg,{children:x.cloneElement(c,{role:"document"})}));e_=(0,D.sD)(E,R,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!o,onExit:V,onExiting:J,onExited:(...t)=>{ea(!0),null==K||K(...t)},onEnter:X,onEntering:Q,onEntered:ee,children:e_});let ey=null;return d&&(ey=W({ref:er.setBackdropRef,onClick:ep}),ey=(0,D.sD)(M,L,{in:!!o,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ey})),(0,j.jsx)(j.Fragment,{children:T.createPortal((0,j.jsxs)(j.Fragment,{children:[ey,e_]}),en)})});L.displayName="Modal";var B=Object.assign(L,{Manager:O}),U=r(58255),F=Function.prototype.bind.call(Function.prototype.call,[].slice);function qsa(t,n){return F(t.querySelectorAll(n))}var H=r(74277);let G={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};let BootstrapModalManager=class BootstrapModalManager extends O{adjustAndStore(t,n,r){let i=n.style[t];n.dataset[t]=i,(0,R.Z)(n,{[t]:`${parseFloat((0,R.Z)(n,t))+r}px`})}restore(t,n){let r=n.dataset[t];void 0!==r&&(delete n.dataset[t],(0,R.Z)(n,{[t]:r}))}setContainerStyle(t){super.setContainerStyle(t);let n=this.getElement();if((0,U.Z)(n,"modal-open"),!t.scrollBarWidth)return;let r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";qsa(n,G.FIXED_CONTENT).forEach(n=>this.adjustAndStore(r,n,t.scrollBarWidth)),qsa(n,G.STICKY_CONTENT).forEach(n=>this.adjustAndStore(i,n,-t.scrollBarWidth)),qsa(n,G.NAVBAR_TOGGLER).forEach(n=>this.adjustAndStore(i,n,t.scrollBarWidth))}removeContainerStyle(t){super.removeContainerStyle(t);let n=this.getElement();(0,H.Z)(n,"modal-open");let r=this.isRTL?"paddingLeft":"paddingRight",i=this.isRTL?"marginLeft":"marginRight";qsa(n,G.FIXED_CONTENT).forEach(t=>this.restore(r,t)),qsa(n,G.STICKY_CONTENT).forEach(t=>this.restore(i,t)),qsa(n,G.NAVBAR_TOGGLER).forEach(t=>this.restore(i,t))}};var W=r(77819),q=r(66611),Y=(0,q.Z)("modal-body");let z=x.createContext({onHide(){}});var Z=r(76792);let V=x.forwardRef(({bsPrefix:t,className:n,contentClassName:r,centered:i,size:o,fullscreen:s,children:a,scrollable:c,...u},d)=>{t=(0,Z.vE)(t,"modal");let p=`${t}-dialog`,m="string"==typeof s?`${t}-fullscreen-${s}`:`${t}-fullscreen`;return(0,j.jsx)("div",{...u,ref:d,className:l()(p,n,o&&`${t}-${o}`,i&&`${p}-centered`,c&&`${p}-scrollable`,s&&m),children:(0,j.jsx)("div",{className:l()(`${t}-content`,r),children:a})})});V.displayName="ModalDialog";var K=(0,q.Z)("modal-footer"),J=r(45697),X=r.n(J);let Q={"aria-label":X().string,onClick:X().func,variant:X().oneOf(["white"])},ee=x.forwardRef(({className:t,variant:n,...r},i)=>(0,j.jsx)("button",{ref:i,type:"button",className:l()("btn-close",n&&`btn-close-${n}`,t),...r}));ee.displayName="CloseButton",ee.propTypes=Q,ee.defaultProps={"aria-label":"Close"};let et=x.forwardRef(({closeLabel:t,closeVariant:n,closeButton:r,onHide:i,children:o,...s},a)=>{let l=(0,x.useContext)(z),c=(0,_.Z)(()=>{null==l||l.onHide(),null==i||i()});return(0,j.jsxs)("div",{ref:a,...s,children:[o,r&&(0,j.jsx)(ee,{"aria-label":t,variant:n,onClick:c})]})});et.defaultProps={closeLabel:"Close",closeButton:!1};let en=x.forwardRef(({bsPrefix:t,className:n,...r},i)=>(t=(0,Z.vE)(t,"modal-header"),(0,j.jsx)(et,{ref:i,...r,className:l()(n,t)})));en.displayName="ModalHeader",en.defaultProps={closeLabel:"Close",closeButton:!1};let er=x.forwardRef((t,n)=>(0,j.jsx)("div",{...t,ref:n,className:l()(t.className,"h4")}));var ei=(0,q.Z)("modal-title",{Component:er});function DialogTransition(t){return(0,j.jsx)(W.Z,{...t,timeout:null})}function BackdropTransition(t){return(0,j.jsx)(W.Z,{...t,timeout:null})}let eo=x.forwardRef(({bsPrefix:t,className:n,style:r,dialogClassName:i,contentClassName:s,children:a,dialogAs:w,"aria-labelledby":k,"aria-describedby":T,"aria-label":C,show:R,animation:M,backdrop:O,keyboard:I,onEscapeKeyDown:N,onShow:D,onHide:P,container:A,autoFocus:L,enforceFocus:U,restoreFocus:F,restoreFocusOptions:H,onEntered:G,onExit:W,onExiting:q,onEnter:Y,onEntering:V,onExited:K,backdropClassName:J,manager:X,...Q},ee)=>{let[et,en]=(0,x.useState)({}),[er,ei]=(0,x.useState)(!1),eo=(0,x.useRef)(!1),es=(0,x.useRef)(!1),ea=(0,x.useRef)(null),[el,ec]=(0,m.Z)(),eu=(0,v.Z)(ee,ec),ed=(0,_.Z)(P),ep=(0,Z.SC)();t=(0,Z.vE)(t,"modal");let eh=(0,x.useMemo)(()=>({onHide:ed}),[ed]);function getModalManager(){return X||(o||(o=new BootstrapModalManager({isRTL:ep})),o)}function updateDialogStyle(t){if(!u.Z)return;let n=getModalManager().getScrollbarWidth()>0,r=t.scrollHeight>(0,d.Z)(t).documentElement.clientHeight;en({paddingRight:n&&!r?scrollbarSize():void 0,paddingLeft:!n&&r?scrollbarSize():void 0})}let ef=(0,_.Z)(()=>{el&&updateDialogStyle(el.dialog)});(0,b.Z)(()=>{(0,p.Z)(window,"resize",ef),null==ea.current||ea.current()});let handleDialogMouseDown=()=>{eo.current=!0},handleMouseUp=t=>{eo.current&&el&&t.target===el.dialog&&(es.current=!0),eo.current=!1},handleStaticModalAnimation=()=>{ei(!0),ea.current=(0,E.Z)(el.dialog,()=>{ei(!1)})},handleStaticBackdropClick=t=>{t.target===t.currentTarget&&handleStaticModalAnimation()},handleClick=t=>{if("static"===O){handleStaticBackdropClick(t);return}if(es.current||t.target!==t.currentTarget){es.current=!1;return}null==P||P()},em=(0,x.useCallback)(n=>(0,j.jsx)("div",{...n,className:l()(`${t}-backdrop`,J,!M&&"show")}),[M,J,t]),eg={...r,...et};return eg.display="block",(0,j.jsx)(z.Provider,{value:eh,children:(0,j.jsx)(B,{show:R,ref:eu,backdrop:O,container:A,keyboard:!0,autoFocus:L,enforceFocus:U,restoreFocus:F,restoreFocusOptions:H,onEscapeKeyDown:t=>{I?null==N||N(t):(t.preventDefault(),"static"===O&&handleStaticModalAnimation())},onShow:D,onHide:P,onEnter:(t,n)=>{t&&updateDialogStyle(t),null==Y||Y(t,n)},onEntering:(t,n)=>{null==V||V(t,n),(0,c.ZP)(window,"resize",ef)},onEntered:G,onExit:t=>{null==ea.current||ea.current(),null==W||W(t)},onExiting:q,onExited:t=>{t&&(t.style.display=""),null==K||K(t),(0,p.Z)(window,"resize",ef)},manager:getModalManager(),transition:M?DialogTransition:void 0,backdropTransition:M?BackdropTransition:void 0,renderBackdrop:em,renderDialog:r=>(0,j.jsx)("div",{role:"dialog",...r,style:eg,className:l()(n,t,er&&`${t}-static`,!M&&"show"),onClick:O?handleClick:void 0,onMouseUp:handleMouseUp,"aria-label":C,"aria-labelledby":k,"aria-describedby":T,children:(0,j.jsx)(w,{...Q,onMouseDown:handleDialogMouseDown,className:i,contentClassName:s,children:a})})})})});eo.displayName="Modal",eo.defaultProps={show:!1,backdrop:!0,keyboard:!0,autoFocus:!0,enforceFocus:!0,restoreFocus:!0,animation:!0,dialogAs:V};var es=Object.assign(eo,{Body:Y,Header:en,Title:ei,Footer:K,Dialog:V,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150})},96748:function(t,n,r){"use strict";r.d(n,{Z:function(){return ev}});var i,o,s,a,l,c=r(67294),u=r(94184),d=r.n(u),p=r(73935),m=r(32092),_=r(35654),v=Object.prototype.hasOwnProperty;function find(t,n,r){for(r of t.keys())if(dequal(r,n))return r}function dequal(t,n){var r,i,o;if(t===n)return!0;if(t&&n&&(r=t.constructor)===n.constructor){if(r===Date)return t.getTime()===n.getTime();if(r===RegExp)return t.toString()===n.toString();if(r===Array){if((i=t.length)===n.length)for(;i--&&dequal(t[i],n[i]););return-1===i}if(r===Set){if(t.size!==n.size)return!1;for(i of t)if((o=i)&&"object"==typeof o&&!(o=find(n,o))||!n.has(o))return!1;return!0}if(r===Map){if(t.size!==n.size)return!1;for(i of t)if((o=i[0])&&"object"==typeof o&&!(o=find(n,o))||!dequal(i[1],n.get(o)))return!1;return!0}if(r===ArrayBuffer)t=new Uint8Array(t),n=new Uint8Array(n);else if(r===DataView){if((i=t.byteLength)===n.byteLength)for(;i--&&t.getInt8(i)===n.getInt8(i););return-1===i}if(ArrayBuffer.isView(t)){if((i=t.byteLength)===n.byteLength)for(;i--&&t[i]===n[i];);return-1===i}if(!r||"object"==typeof t){for(r in i=0,t)if(v.call(t,r)&&++i&&!v.call(n,r)||!(r in n)||!dequal(t[r],n[r]))return!1;return Object.keys(n).length===i}}return t!=t&&n!=n}var b=r(6454),esm_useSafeState=function(t){var n=(0,b.Z)();return[t[0],(0,c.useCallback)(function(r){if(n())return t[1](r)},[n,t[1]])]};function getBasePlacement(t){return t.split("-")[0]}function getWindow(t){if(null==t)return window;if("[object Window]"!==t.toString()){var n=t.ownerDocument;return n&&n.defaultView||window}return t}function isElement(t){var n=getWindow(t).Element;return t instanceof n||t instanceof Element}function isHTMLElement(t){var n=getWindow(t).HTMLElement;return t instanceof n||t instanceof HTMLElement}function isShadowRoot(t){if("undefined"==typeof ShadowRoot)return!1;var n=getWindow(t).ShadowRoot;return t instanceof n||t instanceof ShadowRoot}var E=Math.max,x=Math.min,w=Math.round;function getUAString(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString())}function getBoundingClientRect(t,n,r){void 0===n&&(n=!1),void 0===r&&(r=!1);var i=t.getBoundingClientRect(),o=1,s=1;n&&isHTMLElement(t)&&(o=t.offsetWidth>0&&w(i.width)/t.offsetWidth||1,s=t.offsetHeight>0&&w(i.height)/t.offsetHeight||1);var a=(isElement(t)?getWindow(t):window).visualViewport,l=!isLayoutViewport()&&r,c=(i.left+(l&&a?a.offsetLeft:0))/o,u=(i.top+(l&&a?a.offsetTop:0))/s,d=i.width/o,p=i.height/s;return{width:d,height:p,top:u,right:c+d,bottom:u+p,left:c,x:c,y:u}}function getLayoutRect(t){var n=getBoundingClientRect(t),r=t.offsetWidth,i=t.offsetHeight;return 1>=Math.abs(n.width-r)&&(r=n.width),1>=Math.abs(n.height-i)&&(i=n.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:i}}function contains(t,n){var r=n.getRootNode&&n.getRootNode();if(t.contains(n))return!0;if(r&&isShadowRoot(r)){var i=n;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function getNodeName(t){return t?(t.nodeName||"").toLowerCase():null}function getComputedStyle(t){return getWindow(t).getComputedStyle(t)}function getDocumentElement(t){return((isElement(t)?t.ownerDocument:t.document)||window.document).documentElement}function getParentNode(t){return"html"===getNodeName(t)?t:t.assignedSlot||t.parentNode||(isShadowRoot(t)?t.host:null)||getDocumentElement(t)}function getTrueOffsetParent(t){return isHTMLElement(t)&&"fixed"!==getComputedStyle(t).position?t.offsetParent:null}function getOffsetParent(t){for(var n=getWindow(t),r=getTrueOffsetParent(t);r&&["table","td","th"].indexOf(getNodeName(r))>=0&&"static"===getComputedStyle(r).position;)r=getTrueOffsetParent(r);return r&&("html"===getNodeName(r)||"body"===getNodeName(r)&&"static"===getComputedStyle(r).position)?n:r||function(t){var n=/firefox/i.test(getUAString());if(/Trident/i.test(getUAString())&&isHTMLElement(t)&&"fixed"===getComputedStyle(t).position)return null;var r=getParentNode(t);for(isShadowRoot(r)&&(r=r.host);isHTMLElement(r)&&0>["html","body"].indexOf(getNodeName(r));){var i=getComputedStyle(r);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||n&&"filter"===i.willChange||n&&i.filter&&"none"!==i.filter)return r;r=r.parentNode}return null}(t)||n}function getMainAxisFromPlacement(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function within(t,n,r){return E(t,x(n,r))}function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0}}function mergePaddingObject(t){return Object.assign({},getFreshSideObject(),t)}function expandToHashMap(t,n){return n.reduce(function(n,r){return n[r]=t,n},{})}var k="bottom",T="right",C="left",R="auto",M=["top",k,T,C],O="start",I="viewport",N="popper",D=M.reduce(function(t,n){return t.concat([n+"-"+O,n+"-end"])},[]),P=[].concat(M,[R]).reduce(function(t,n){return t.concat([n,n+"-"+O,n+"-end"])},[]),j=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function getVariation(t){return t.split("-")[1]}var A={top:"auto",right:"auto",bottom:"auto",left:"auto"};function mapToStyles(t){var n,r,i,o,s,a,l,c=t.popper,u=t.popperRect,d=t.placement,p=t.variation,m=t.offsets,_=t.position,v=t.gpuAcceleration,b=t.adaptive,E=t.roundOffsets,x=t.isFixed,R=m.x,M=void 0===R?0:R,O=m.y,I=void 0===O?0:O,N="function"==typeof E?E({x:M,y:I}):{x:M,y:I};M=N.x,I=N.y;var D=m.hasOwnProperty("x"),P=m.hasOwnProperty("y"),j=C,L="top",B=window;if(b){var U=getOffsetParent(c),F="clientHeight",H="clientWidth";U===getWindow(c)&&"static"!==getComputedStyle(U=getDocumentElement(c)).position&&"absolute"===_&&(F="scrollHeight",H="scrollWidth"),("top"===d||(d===C||d===T)&&"end"===p)&&(L=k,I-=(x&&U===B&&B.visualViewport?B.visualViewport.height:U[F])-u.height,I*=v?1:-1),(d===C||("top"===d||d===k)&&"end"===p)&&(j=T,M-=(x&&U===B&&B.visualViewport?B.visualViewport.width:U[H])-u.width,M*=v?1:-1)}var G=Object.assign({position:_},b&&A),W=!0===E?(n={x:M,y:I},r=getWindow(c),i=n.x,o=n.y,{x:w(i*(s=r.devicePixelRatio||1))/s||0,y:w(o*s)/s||0}):{x:M,y:I};return(M=W.x,I=W.y,v)?Object.assign({},G,((l={})[L]=P?"0":"",l[j]=D?"0":"",l.transform=1>=(B.devicePixelRatio||1)?"translate("+M+"px, "+I+"px)":"translate3d("+M+"px, "+I+"px, 0)",l)):Object.assign({},G,((a={})[L]=P?I+"px":"",a[j]=D?M+"px":"",a.transform="",a))}var L={passive:!0},B={left:"right",right:"left",bottom:"top",top:"bottom"};function getOppositePlacement(t){return t.replace(/left|right|bottom|top/g,function(t){return B[t]})}var U={start:"end",end:"start"};function getOppositeVariationPlacement(t){return t.replace(/start|end/g,function(t){return U[t]})}function getWindowScroll(t){var n=getWindow(t);return{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function getWindowScrollBarX(t){return getBoundingClientRect(getDocumentElement(t)).left+getWindowScroll(t).scrollLeft}function isScrollParent(t){var n=getComputedStyle(t),r=n.overflow,i=n.overflowX,o=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+i)}function listScrollParents(t,n){void 0===n&&(n=[]);var r,i=function getScrollParent(t){return["html","body","#document"].indexOf(getNodeName(t))>=0?t.ownerDocument.body:isHTMLElement(t)&&isScrollParent(t)?t:getScrollParent(getParentNode(t))}(t),o=i===(null==(r=t.ownerDocument)?void 0:r.body),s=getWindow(i),a=o?[s].concat(s.visualViewport||[],isScrollParent(i)?i:[]):i,l=n.concat(a);return o?l:l.concat(listScrollParents(getParentNode(a)))}function rectToClientRect(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function getClientRectFromMixedType(t,n,r){var i,o,s,a,l,c,u,d,p,m;return n===I?rectToClientRect(function(t,n){var r=getWindow(t),i=getDocumentElement(t),o=r.visualViewport,s=i.clientWidth,a=i.clientHeight,l=0,c=0;if(o){s=o.width,a=o.height;var u=isLayoutViewport();(u||!u&&"fixed"===n)&&(l=o.offsetLeft,c=o.offsetTop)}return{width:s,height:a,x:l+getWindowScrollBarX(t),y:c}}(t,r)):isElement(n)?((i=getBoundingClientRect(n,!1,"fixed"===r)).top=i.top+n.clientTop,i.left=i.left+n.clientLeft,i.bottom=i.top+n.clientHeight,i.right=i.left+n.clientWidth,i.width=n.clientWidth,i.height=n.clientHeight,i.x=i.left,i.y=i.top,i):rectToClientRect((o=getDocumentElement(t),a=getDocumentElement(o),l=getWindowScroll(o),c=null==(s=o.ownerDocument)?void 0:s.body,u=E(a.scrollWidth,a.clientWidth,c?c.scrollWidth:0,c?c.clientWidth:0),d=E(a.scrollHeight,a.clientHeight,c?c.scrollHeight:0,c?c.clientHeight:0),p=-l.scrollLeft+getWindowScrollBarX(o),m=-l.scrollTop,"rtl"===getComputedStyle(c||a).direction&&(p+=E(a.clientWidth,c?c.clientWidth:0)-u),{width:u,height:d,x:p,y:m}))}function computeOffsets(t){var n,r=t.reference,i=t.element,o=t.placement,s=o?getBasePlacement(o):null,a=o?getVariation(o):null,l=r.x+r.width/2-i.width/2,c=r.y+r.height/2-i.height/2;switch(s){case"top":n={x:l,y:r.y-i.height};break;case k:n={x:l,y:r.y+r.height};break;case T:n={x:r.x+r.width,y:c};break;case C:n={x:r.x-i.width,y:c};break;default:n={x:r.x,y:r.y}}var u=s?getMainAxisFromPlacement(s):null;if(null!=u){var d="y"===u?"height":"width";switch(a){case O:n[u]=n[u]-(r[d]/2-i[d]/2);break;case"end":n[u]=n[u]+(r[d]/2-i[d]/2)}}return n}function detectOverflow(t,n){void 0===n&&(n={});var r,i,o,s,a,l,c,u=n,d=u.placement,p=void 0===d?t.placement:d,m=u.strategy,_=void 0===m?t.strategy:m,v=u.boundary,b=u.rootBoundary,w=u.elementContext,C=void 0===w?N:w,R=u.altBoundary,O=u.padding,D=void 0===O?0:O,P=mergePaddingObject("number"!=typeof D?D:expandToHashMap(D,M)),j=t.rects.popper,A=t.elements[void 0!==R&&R?C===N?"reference":N:C],L=(r=isElement(A)?A:A.contextElement||getDocumentElement(t.elements.popper),l=(a=[].concat("clippingParents"===(i=void 0===v?"clippingParents":v)?(o=listScrollParents(getParentNode(r)),isElement(s=["absolute","fixed"].indexOf(getComputedStyle(r).position)>=0&&isHTMLElement(r)?getOffsetParent(r):r)?o.filter(function(t){return isElement(t)&&contains(t,s)&&"body"!==getNodeName(t)}):[]):[].concat(i),[void 0===b?I:b]))[0],(c=a.reduce(function(t,n){var i=getClientRectFromMixedType(r,n,_);return t.top=E(i.top,t.top),t.right=x(i.right,t.right),t.bottom=x(i.bottom,t.bottom),t.left=E(i.left,t.left),t},getClientRectFromMixedType(r,l,_))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),B=getBoundingClientRect(t.elements.reference),U=computeOffsets({reference:B,element:j,strategy:"absolute",placement:p}),F=rectToClientRect(Object.assign({},j,U)),H=C===N?F:B,G={top:L.top-H.top+P.top,bottom:H.bottom-L.bottom+P.bottom,left:L.left-H.left+P.left,right:H.right-L.right+P.right},W=t.modifiersData.offset;if(C===N&&W){var q=W[p];Object.keys(G).forEach(function(t){var n=[T,k].indexOf(t)>=0?1:-1,r=["top",k].indexOf(t)>=0?"y":"x";G[t]+=q[r]*n})}return G}function getSideOffsets(t,n,r){return void 0===r&&(r={x:0,y:0}),{top:t.top-n.height-r.y,right:t.right-n.width+r.x,bottom:t.bottom-n.height+r.y,left:t.left-n.width-r.x}}function isAnySideFullyClipped(t){return["top",T,k,C].some(function(n){return t[n]>=0})}var F={placement:"bottom",modifiers:[],strategy:"absolute"};function areValidElements(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];return!n.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}let H=(s=void 0===(o=(i={defaultModifiers:[{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var n=t.state,r=t.name,i=n.rects.reference,o=n.rects.popper,s=n.modifiersData.preventOverflow,a=detectOverflow(n,{elementContext:"reference"}),l=detectOverflow(n,{altBoundary:!0}),c=getSideOffsets(a,i),u=getSideOffsets(l,o,s),d=isAnySideFullyClipped(c),p=isAnySideFullyClipped(u);n.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:p},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":p})}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var n=t.state,r=t.name;n.modifiersData[r]=computeOffsets({reference:n.rects.reference,element:n.rects.popper,strategy:"absolute",placement:n.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var n=t.state,r=t.options,i=r.gpuAcceleration,o=r.adaptive,s=r.roundOffsets,a=void 0===s||s,l={placement:getBasePlacement(n.placement),variation:getVariation(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:void 0===i||i,isFixed:"fixed"===n.options.strategy};null!=n.modifiersData.popperOffsets&&(n.styles.popper=Object.assign({},n.styles.popper,mapToStyles(Object.assign({},l,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:void 0===o||o,roundOffsets:a})))),null!=n.modifiersData.arrow&&(n.styles.arrow=Object.assign({},n.styles.arrow,mapToStyles(Object.assign({},l,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})},data:{}},{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var n=t.state,r=t.instance,i=t.options,o=i.scroll,s=void 0===o||o,a=i.resize,l=void 0===a||a,c=getWindow(n.elements.popper),u=[].concat(n.scrollParents.reference,n.scrollParents.popper);return s&&u.forEach(function(t){t.addEventListener("scroll",r.update,L)}),l&&c.addEventListener("resize",r.update,L),function(){s&&u.forEach(function(t){t.removeEventListener("scroll",r.update,L)}),l&&c.removeEventListener("resize",r.update,L)}},data:{}},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var n=t.state,r=t.options,i=t.name,o=r.offset,s=void 0===o?[0,0]:o,a=P.reduce(function(t,r){var i,o,a,l,c,u;return t[r]=(i=n.rects,a=[C,"top"].indexOf(o=getBasePlacement(r))>=0?-1:1,c=(l="function"==typeof s?s(Object.assign({},i,{placement:r})):s)[0],u=l[1],c=c||0,u=(u||0)*a,[C,T].indexOf(o)>=0?{x:u,y:c}:{x:c,y:u}),t},{}),l=a[n.placement],c=l.x,u=l.y;null!=n.modifiersData.popperOffsets&&(n.modifiersData.popperOffsets.x+=c,n.modifiersData.popperOffsets.y+=u),n.modifiersData[i]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var n=t.state,r=t.options,i=t.name;if(!n.modifiersData[i]._skip){for(var o=r.mainAxis,s=void 0===o||o,a=r.altAxis,l=void 0===a||a,c=r.fallbackPlacements,u=r.padding,d=r.boundary,p=r.rootBoundary,m=r.altBoundary,_=r.flipVariations,v=void 0===_||_,b=r.allowedAutoPlacements,E=n.options.placement,x=getBasePlacement(E)===E,w=c||(x||!v?[getOppositePlacement(E)]:function(t){if(getBasePlacement(t)===R)return[];var n=getOppositePlacement(t);return[getOppositeVariationPlacement(t),n,getOppositeVariationPlacement(n)]}(E)),I=[E].concat(w).reduce(function(t,r){var i,o,s,a,l,c,m,_,E,x,w,k;return t.concat(getBasePlacement(r)===R?(o=(i={placement:r,boundary:d,rootBoundary:p,padding:u,flipVariations:v,allowedAutoPlacements:b}).placement,s=i.boundary,a=i.rootBoundary,l=i.padding,c=i.flipVariations,_=void 0===(m=i.allowedAutoPlacements)?P:m,0===(w=(x=(E=getVariation(o))?c?D:D.filter(function(t){return getVariation(t)===E}):M).filter(function(t){return _.indexOf(t)>=0})).length&&(w=x),Object.keys(k=w.reduce(function(t,r){return t[r]=detectOverflow(n,{placement:r,boundary:s,rootBoundary:a,padding:l})[getBasePlacement(r)],t},{})).sort(function(t,n){return k[t]-k[n]})):r)},[]),N=n.rects.reference,j=n.rects.popper,A=new Map,L=!0,B=I[0],U=0;U<I.length;U++){var F=I[U],H=getBasePlacement(F),G=getVariation(F)===O,W=["top",k].indexOf(H)>=0,q=W?"width":"height",Y=detectOverflow(n,{placement:F,boundary:d,rootBoundary:p,altBoundary:m,padding:u}),z=W?G?T:C:G?k:"top";N[q]>j[q]&&(z=getOppositePlacement(z));var Z=getOppositePlacement(z),V=[];if(s&&V.push(Y[H]<=0),l&&V.push(Y[z]<=0,Y[Z]<=0),V.every(function(t){return t})){B=F,L=!1;break}A.set(F,V)}if(L)for(var K=v?3:1,_loop=function(t){var n=I.find(function(n){var r=A.get(n);if(r)return r.slice(0,t).every(function(t){return t})});if(n)return B=n,"break"},J=K;J>0&&"break"!==_loop(J);J--);n.placement!==B&&(n.modifiersData[i]._skip=!0,n.placement=B,n.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var n=t.state,r=t.options,i=t.name,o=r.mainAxis,s=r.altAxis,a=r.boundary,l=r.rootBoundary,c=r.altBoundary,u=r.padding,d=r.tether,p=void 0===d||d,m=r.tetherOffset,_=void 0===m?0:m,v=detectOverflow(n,{boundary:a,rootBoundary:l,padding:u,altBoundary:c}),b=getBasePlacement(n.placement),w=getVariation(n.placement),R=!w,M=getMainAxisFromPlacement(b),I="x"===M?"y":"x",N=n.modifiersData.popperOffsets,D=n.rects.reference,P=n.rects.popper,j="function"==typeof _?_(Object.assign({},n.rects,{placement:n.placement})):_,A="number"==typeof j?{mainAxis:j,altAxis:j}:Object.assign({mainAxis:0,altAxis:0},j),L=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,B={x:0,y:0};if(N){if(void 0===o||o){var U,F="y"===M?"top":C,H="y"===M?k:T,G="y"===M?"height":"width",W=N[M],q=W+v[F],Y=W-v[H],z=p?-P[G]/2:0,Z=w===O?D[G]:P[G],V=w===O?-P[G]:-D[G],K=n.elements.arrow,J=p&&K?getLayoutRect(K):{width:0,height:0},X=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:getFreshSideObject(),Q=X[F],ee=X[H],et=within(0,D[G],J[G]),en=R?D[G]/2-z-et-Q-A.mainAxis:Z-et-Q-A.mainAxis,er=R?-D[G]/2+z+et+ee+A.mainAxis:V+et+ee+A.mainAxis,ei=n.elements.arrow&&getOffsetParent(n.elements.arrow),eo=ei?"y"===M?ei.clientTop||0:ei.clientLeft||0:0,es=null!=(U=null==L?void 0:L[M])?U:0,ea=W+en-es-eo,el=W+er-es,ec=within(p?x(q,ea):q,W,p?E(Y,el):Y);N[M]=ec,B[M]=ec-W}if(void 0!==s&&s){var eu,ed,ep="x"===M?"top":C,eh="x"===M?k:T,ef=N[I],em="y"===I?"height":"width",eg=ef+v[ep],e_=ef-v[eh],ey=-1!==["top",C].indexOf(b),ev=null!=(ed=null==L?void 0:L[I])?ed:0,eb=ey?eg:ef-D[em]-P[em]-ev+A.altAxis,eS=ey?ef+D[em]+P[em]-ev-A.altAxis:e_,eE=p&&ey?(eu=within(eb,ef,eS))>eS?eS:eu:within(p?eb:eg,ef,p?eS:e_);N[I]=eE,B[I]=eE-ef}n.modifiersData[i]=B}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var n,r,i=t.state,o=t.name,s=t.options,a=i.elements.arrow,l=i.modifiersData.popperOffsets,c=getBasePlacement(i.placement),u=getMainAxisFromPlacement(c),d=[C,T].indexOf(c)>=0?"height":"width";if(a&&l){var p=mergePaddingObject("number"!=typeof(n="function"==typeof(n=s.padding)?n(Object.assign({},i.rects,{placement:i.placement})):n)?n:expandToHashMap(n,M)),m=getLayoutRect(a),_="y"===u?"top":C,v="y"===u?k:T,b=i.rects.reference[d]+i.rects.reference[u]-l[u]-i.rects.popper[d],E=l[u]-i.rects.reference[u],x=getOffsetParent(a),w=x?"y"===u?x.clientHeight||0:x.clientWidth||0:0,R=p[_],O=w-m[d]-p[v],I=w/2-m[d]/2+(b/2-E/2),N=within(R,I,O);i.modifiersData[o]=((r={})[u]=N,r.centerOffset=N-I,r)}},effect:function(t){var n=t.state,r=t.options.element,i=void 0===r?"[data-popper-arrow]":r;null!=i&&("string"!=typeof i||(i=n.elements.popper.querySelector(i)))&&contains(n.elements.popper,i)&&(n.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]}]}).defaultModifiers)?[]:o,l=void 0===(a=i.defaultOptions)?F:a,function(t,n,r){void 0===r&&(r=l);var i,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},F,l),modifiersData:{},elements:{reference:t,popper:n},attributes:{},styles:{}},a=[],c=!1,u={state:o,setOptions:function(r){var i,c,d,p,m,_="function"==typeof r?r(o.options):r;cleanupModifierEffects(),o.options=Object.assign({},l,o.options,_),o.scrollParents={reference:isElement(t)?listScrollParents(t):t.contextElement?listScrollParents(t.contextElement):[],popper:listScrollParents(n)};var v=(c=Object.keys(i=[].concat(s,o.options.modifiers).reduce(function(t,n){var r=t[n.name];return t[n.name]=r?Object.assign({},r,n,{options:Object.assign({},r.options,n.options),data:Object.assign({},r.data,n.data)}):n,t},{})).map(function(t){return i[t]}),d=new Map,p=new Set,m=[],c.forEach(function(t){d.set(t.name,t)}),c.forEach(function(t){p.has(t.name)||function sort(t){p.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!p.has(t)){var n=d.get(t);n&&sort(n)}}),m.push(t)}(t)}),j.reduce(function(t,n){return t.concat(m.filter(function(t){return t.phase===n}))},[]));return o.orderedModifiers=v.filter(function(t){return t.enabled}),o.orderedModifiers.forEach(function(t){var n=t.name,r=t.options,i=t.effect;if("function"==typeof i){var s=i({state:o,name:n,instance:u,options:void 0===r?{}:r});a.push(s||function(){})}}),u.update()},forceUpdate:function(){if(!c){var t,n,r,i,s,a,l,d,p,m,_,v,b=o.elements,E=b.reference,x=b.popper;if(areValidElements(E,x)){o.rects={reference:(n=getOffsetParent(x),r="fixed"===o.options.strategy,i=isHTMLElement(n),d=isHTMLElement(n)&&(a=w((s=n.getBoundingClientRect()).width)/n.offsetWidth||1,l=w(s.height)/n.offsetHeight||1,1!==a||1!==l),p=getDocumentElement(n),m=getBoundingClientRect(E,d,r),_={scrollLeft:0,scrollTop:0},v={x:0,y:0},(i||!i&&!r)&&(("body"!==getNodeName(n)||isScrollParent(p))&&(_=(t=n)!==getWindow(t)&&isHTMLElement(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:getWindowScroll(t)),isHTMLElement(n)?(v=getBoundingClientRect(n,!0),v.x+=n.clientLeft,v.y+=n.clientTop):p&&(v.x=getWindowScrollBarX(p))),{x:m.left+_.scrollLeft-v.x,y:m.top+_.scrollTop-v.y,width:m.width,height:m.height}),popper:getLayoutRect(x)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(t){return o.modifiersData[t.name]=Object.assign({},t.data)});for(var k=0;k<o.orderedModifiers.length;k++){if(!0===o.reset){o.reset=!1,k=-1;continue}var T=o.orderedModifiers[k],C=T.fn,R=T.options,M=void 0===R?{}:R,O=T.name;"function"==typeof C&&(o=C({state:o,options:M,name:O,instance:u})||o)}}}},update:function(){return i||(i=new Promise(function(t){Promise.resolve().then(function(){i=void 0,t(new Promise(function(t){u.forceUpdate(),t(o)}))})})),i},destroy:function(){cleanupModifierEffects(),c=!0}};if(!areValidElements(t,n))return u;function cleanupModifierEffects(){a.forEach(function(t){return t()}),a=[]}return u.setOptions(r).then(function(t){!c&&r.onFirstUpdate&&r.onFirstUpdate(t)}),u}),G=["enabled","placement","strategy","modifiers"],W={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>void 0},q={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:t})=>()=>{let{reference:n,popper:r}=t.elements;if("removeAttribute"in n){let t=(n.getAttribute("aria-describedby")||"").split(",").filter(t=>t.trim()!==r.id);t.length?n.setAttribute("aria-describedby",t.join(",")):n.removeAttribute("aria-describedby")}},fn:({state:t})=>{var n;let{popper:r,reference:i}=t.elements,o=null==(n=r.getAttribute("role"))?void 0:n.toLowerCase();if(r.id&&"tooltip"===o&&"setAttribute"in i){let t=i.getAttribute("aria-describedby");if(t&&-1!==t.split(",").indexOf(r.id))return;i.setAttribute("aria-describedby",t?`${t},${r.id}`:r.id)}}},Y=[];var esm_usePopper=function(t,n,r={}){let{enabled:i=!0,placement:o="bottom",strategy:s="absolute",modifiers:a=Y}=r,l=function(t,n){if(null==t)return{};var r,i,o={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],n.indexOf(r)>=0||(o[r]=t[r]);return o}(r,G),u=(0,c.useRef)(a),d=(0,c.useRef)(),p=(0,c.useCallback)(()=>{var t;null==(t=d.current)||t.update()},[]),m=(0,c.useCallback)(()=>{var t;null==(t=d.current)||t.forceUpdate()},[]),[_,v]=esm_useSafeState((0,c.useState)({placement:o,update:p,forceUpdate:m,attributes:{},styles:{popper:{},arrow:{}}})),b=(0,c.useMemo)(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:t})=>{let n={},r={};Object.keys(t.elements).forEach(i=>{n[i]=t.styles[i],r[i]=t.attributes[i]}),v({state:t,styles:n,attributes:r,update:p,forceUpdate:m,placement:t.placement})}}),[p,m,v]),E=(0,c.useMemo)(()=>(dequal(u.current,a)||(u.current=a),u.current),[a]);return(0,c.useEffect)(()=>{d.current&&i&&d.current.setOptions({placement:o,strategy:s,modifiers:[...E,b,W]})},[s,o,b,i,E]),(0,c.useEffect)(()=>{if(i&&null!=t&&null!=n)return d.current=H(t,n,Object.assign({},l,{placement:o,strategy:s,modifiers:[...E,q,b]})),()=>{null!=d.current&&(d.current.destroy(),d.current=void 0,v(t=>Object.assign({},t,{attributes:{},styles:{popper:{}}})))}},[i,t,n]),_},z=r(72950),Z=r(67216),V=r(51176),K=r(90424),J=r(42473),X=r.n(J);let noop=()=>{},getRefTarget=t=>t&&("current"in t?t.current:t),Q={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};var esm_useClickOutside=function(t,n=noop,{disabled:r,clickTrigger:i="click"}={}){let o=(0,c.useRef)(!1),s=(0,c.useRef)(!1),a=(0,c.useCallback)(n=>{let r=getRefTarget(t);X()(!!r,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),o.current=!r||!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)||0!==n.button||!!(0,K.Z)(r,n.target)||s.current,s.current=!1},[t]),l=(0,V.Z)(n=>{let r=getRefTarget(t);r&&(0,K.Z)(r,n.target)&&(s.current=!0)}),u=(0,V.Z)(t=>{o.current||n(t)});(0,c.useEffect)(()=>{if(r||null==t)return;let n=(0,Z.Z)(getRefTarget(t)),o=(n.defaultView||window).event,s=null;Q[i]&&(s=(0,z.Z)(n,Q[i],l,!0));let c=(0,z.Z)(n,i,a,!0),d=(0,z.Z)(n,i,t=>{if(t===o){o=void 0;return}u(t)}),p=[];return"ontouchstart"in n.documentElement&&(p=[].slice.call(n.body.children).map(t=>(0,z.Z)(t,"mousemove",noop))),()=>{null==s||s(),c(),d(),p.forEach(t=>t())}},[t,r,i,a,l,u])},ee=r(96899);let useRootClose_noop=()=>{};var esm_useRootClose=function(t,n,{disabled:r,clickTrigger:i}={}){let o=n||useRootClose_noop;esm_useClickOutside(t,o,{disabled:r,clickTrigger:i});let s=(0,V.Z)(t=>{(0,ee.k)(t)&&o(t)});(0,c.useEffect)(()=>{if(r||null==t)return;let n=(0,Z.Z)(getRefTarget(t)),i=(n.defaultView||window).event,o=(0,z.Z)(n,"keyup",t=>{if(t===i){i=void 0;return}s(t)});return()=>{o()}},[t,r,s])},et=r(54194),en=r(722);let er=c.forwardRef((t,n)=>{let{flip:r,offset:i,placement:o,containerPadding:s,popperConfig:a={},transition:l,runTransition:u}=t,[d,v]=(0,m.Z)(),[b,E]=(0,m.Z)(),x=(0,_.Z)(v,n),w=(0,et.Z)(t.container),k=(0,et.Z)(t.target),[T,C]=(0,c.useState)(!t.show),R=esm_usePopper(k,d,function({enabled:t,enableEvents:n,placement:r,flip:i,offset:o,fixed:s,containerPadding:a,arrowElement:l,popperConfig:c={}}){var u,d,p,m,_;let v=function(t){let n={};return Array.isArray(t)?(null==t||t.forEach(t=>{n[t.name]=t}),n):t||n}(c.modifiers);return Object.assign({},c,{placement:r,enabled:t,strategy:s?"fixed":c.strategy,modifiers:function(t={}){return Array.isArray(t)?t:Object.keys(t).map(n=>(t[n].name=n,t[n]))}(Object.assign({},v,{eventListeners:{enabled:n,options:null==(u=v.eventListeners)?void 0:u.options},preventOverflow:Object.assign({},v.preventOverflow,{options:a?Object.assign({padding:a},null==(d=v.preventOverflow)?void 0:d.options):null==(p=v.preventOverflow)?void 0:p.options}),offset:{options:Object.assign({offset:o},null==(m=v.offset)?void 0:m.options)},arrow:Object.assign({},v.arrow,{enabled:!!l,options:Object.assign({},null==(_=v.arrow)?void 0:_.options,{element:l})}),flip:Object.assign({enabled:!!i},v.flip)}))})}({placement:o,enableEvents:!!t.show,containerPadding:s||5,flip:r,offset:i,arrowElement:b,popperConfig:a}));t.show&&T&&C(!1);let M=t.show||!T;if(esm_useRootClose(d,t.onHide,{disabled:!t.rootClose||t.rootCloseDisabled,clickTrigger:t.rootCloseEvent}),!M)return null;let{onExit:O,onExiting:I,onEnter:N,onEntering:D,onEntered:P}=t,j=t.children(Object.assign({},R.attributes.popper,{style:R.styles.popper,ref:x}),{popper:R,placement:o,show:!!t.show,arrowProps:Object.assign({},R.attributes.arrow,{style:R.styles.arrow,ref:E})});return j=(0,en.sD)(l,u,{in:!!t.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:j,onExit:O,onExiting:I,onExited:(...n)=>{C(!0),t.onExited&&t.onExited(...n)},onEnter:N,onEntering:D,onEntered:P}),w?p.createPortal(j,w):null});er.displayName="Overlay";var ei=r(99585),eo=r(11132),es=r(76792),ea=r(66611),el=(0,ea.Z)("popover-header"),ec=(0,ea.Z)("popover-body"),eu=r(79883),ed=r(53706),ep=r(85893);let eh=c.forwardRef(({bsPrefix:t,placement:n,className:r,style:i,children:o,body:s,arrowProps:a,hasDoneInitialMeasure:l,popper:c,show:u,...p},m)=>{let _=(0,es.vE)(t,"popover"),v=(0,es.SC)(),[b]=(null==n?void 0:n.split("-"))||[],E=(0,eu.z)(b,v),x=i;return u&&!l&&(x={...i,...(0,ed.Z)(null==c?void 0:c.strategy)}),(0,ep.jsxs)("div",{ref:m,role:"tooltip",style:x,"x-placement":b,className:d()(r,_,b&&`bs-popover-${E}`),...p,children:[(0,ep.jsx)("div",{className:"popover-arrow",...a}),s?(0,ep.jsx)(ec,{children:o}):o]})});eh.defaultProps={placement:"right"};var ef=Object.assign(eh,{Header:el,Body:ec,POPPER_OFFSET:[0,8]}),em=r(77819),eg=r(8285);let e_={transition:em.Z,rootClose:!1,show:!1,placement:"top"},ey=c.forwardRef(({children:t,transition:n,popperConfig:r={},...i},o)=>{let s=(0,c.useRef)({}),[a,l]=(0,c.useState)(null),[u,p]=function(t){let n=(0,c.useRef)(null),r=(0,es.vE)(void 0,"popover"),i=(0,c.useMemo)(()=>({name:"offset",options:{offset:()=>n.current&&(0,eo.Z)(n.current,r)?t||ef.POPPER_OFFSET:t||[0,0]}}),[t,r]);return[n,[i]]}(i.offset),m=(0,_.Z)(o,u),v=!0===n?em.Z:n||void 0,b=(0,V.Z)(t=>{l(t),null==r||null==r.onFirstUpdate||r.onFirstUpdate(t)});return(0,ei.Z)(()=>{a&&(null==s.current.scheduleUpdate||s.current.scheduleUpdate())},[a]),(0,c.useEffect)(()=>{i.show||l(null)},[i.show]),(0,ep.jsx)(er,{...i,ref:m,popperConfig:{...r,modifiers:p.concat(r.modifiers||[]),onFirstUpdate:b},transition:v,children:(i,{arrowProps:o,popper:l,show:u})=>{var p,m;!function(t,n){let{ref:r}=t,{ref:i}=n;t.ref=r.__wrapped||(r.__wrapped=t=>r((0,eg.Z)(t))),n.ref=i.__wrapped||(i.__wrapped=t=>i((0,eg.Z)(t)))}(i,o);let _=null==l?void 0:l.placement,v=Object.assign(s.current,{state:null==l?void 0:l.state,scheduleUpdate:null==l?void 0:l.update,placement:_,outOfBoundaries:(null==l?void 0:null==(p=l.state)?void 0:null==(m=p.modifiersData.hide)?void 0:m.isReferenceHidden)||!1,strategy:r.strategy}),b=!!a;return"function"==typeof t?t({...i,placement:_,show:u,...!n&&u&&{className:"show"},popper:v,arrowProps:o,hasDoneInitialMeasure:b}):c.cloneElement(t,{...i,placement:_,arrowProps:o,popper:v,hasDoneInitialMeasure:b,className:d()(t.props.className,!n&&u&&"show"),style:{...t.props.style,...i.style}})}})});ey.displayName="Overlay",ey.defaultProps=e_;var ev=ey},76792:function(t,n,r){"use strict";r.d(n,{SC:function(){return useIsRTL},pi:function(){return useBootstrapBreakpoints},vE:function(){return useBootstrapPrefix},zG:function(){return useBootstrapMinBreakpoint}});var i=r(67294);r(85893);let o=i.createContext({prefixes:{},breakpoints:["xxl","xl","lg","md","sm","xs"],minBreakpoint:"xs"}),{Consumer:s,Provider:a}=o;function useBootstrapPrefix(t,n){let{prefixes:r}=(0,i.useContext)(o);return t||r[n]||n}function useBootstrapBreakpoints(){let{breakpoints:t}=(0,i.useContext)(o);return t}function useBootstrapMinBreakpoint(){let{minBreakpoint:t}=(0,i.useContext)(o);return t}function useIsRTL(){let{dir:t}=(0,i.useContext)(o);return"rtl"===t}},43489:function(t,n,r){"use strict";var i=r(94184),o=r.n(i),s=r(67294),a=r(76792),l=r(79883),c=r(53706),u=r(85893);let d=s.forwardRef(({bsPrefix:t,placement:n,className:r,style:i,children:s,arrowProps:d,hasDoneInitialMeasure:p,popper:m,show:_,...v},b)=>{t=(0,a.vE)(t,"tooltip");let E=(0,a.SC)(),[x]=(null==n?void 0:n.split("-"))||[],w=(0,l.z)(x,E),k=i;return _&&!p&&(k={...i,...(0,c.Z)(null==m?void 0:m.strategy)}),(0,u.jsxs)("div",{ref:b,style:k,role:"tooltip","x-placement":x,className:o()(r,t,`bs-tooltip-${w}`),...v,children:[(0,u.jsx)("div",{className:"tooltip-arrow",...d}),(0,u.jsx)("div",{className:`${t}-inner`,children:s})]})});d.defaultProps={placement:"right"},d.displayName="Tooltip",n.Z=d},66611:function(t,n,r){"use strict";r.d(n,{Z:function(){return createWithBsPrefix}});var i=r(94184),o=r.n(i),s=/-(.)/g,a=r(67294),l=r(76792),c=r(85893);let pascalCase=t=>t[0].toUpperCase()+t.replace(s,function(t,n){return n.toUpperCase()}).slice(1);function createWithBsPrefix(t,{displayName:n=pascalCase(t),Component:r,defaultProps:i}={}){let s=a.forwardRef(({className:n,bsPrefix:i,as:s=r||"div",...a},u)=>{let d=(0,l.vE)(i,t);return(0,c.jsx)(s,{ref:u,className:o()(n,d),...a})});return s.defaultProps=i,s.displayName=n,s}},53706:function(t,n,r){"use strict";function getInitialPopperStyles(t="absolute"){return{position:t,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}r.d(n,{Z:function(){return getInitialPopperStyles}})},79883:function(t,n,r){"use strict";function getOverlayDirection(t,n){let r=t;return"left"===t?r=n?"end":"start":"right"===t&&(r=n?"start":"end"),r}r.d(n,{z:function(){return getOverlayDirection}}),r(67294)},8285:function(t,n,r){"use strict";r.d(n,{Z:function(){return safeFindDOMNode}});var i=r(73935);function safeFindDOMNode(t){return t&&"setState"in t?i.findDOMNode(t):null!=t?t:null}},39325:function(t,n,r){"use strict";r.d(n,{cn:function(){return _},d0:function(){return m},ZP:function(){return E}});var i=r(63366),o=r(75068),s=r(67294),a=r(73935),l={disabled:!1},c=s.createContext(null),u=r(59391),d="unmounted",p="exited",m="entering",_="entered",v="exiting",b=function(t){function Transition(n,r){i=t.call(this,n,r)||this;var i,o,s=r&&!r.isMounting?n.enter:n.appear;return i.appearStatus=null,n.in?s?(o=p,i.appearStatus=m):o=_:o=n.unmountOnExit||n.mountOnEnter?d:p,i.state={status:o},i.nextCallback=null,i}(0,o.Z)(Transition,t),Transition.getDerivedStateFromProps=function(t,n){return t.in&&n.status===d?{status:p}:null};var n=Transition.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var n=null;if(t!==this.props){var r=this.state.status;this.props.in?r!==m&&r!==_&&(n=m):(r===m||r===_)&&(n=v)}this.updateStatus(!1,n)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,n,r,i=this.props.timeout;return t=n=r=i,null!=i&&"number"!=typeof i&&(t=i.exit,n=i.enter,r=void 0!==i.appear?i.appear:n),{exit:t,enter:n,appear:r}},n.updateStatus=function(t,n){if(void 0===t&&(t=!1),null!==n){if(this.cancelNextCallback(),n===m){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this);r&&(0,u.Q)(r)}this.performEnter(t)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===p&&this.setState({status:d})},n.performEnter=function(t){var n=this,r=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[a.findDOMNode(this),i],s=o[0],c=o[1],u=this.getTimeouts(),d=i?u.appear:u.enter;if(!t&&!r||l.disabled){this.safeSetState({status:_},function(){n.props.onEntered(s)});return}this.props.onEnter(s,c),this.safeSetState({status:m},function(){n.props.onEntering(s,c),n.onTransitionEnd(d,function(){n.safeSetState({status:_},function(){n.props.onEntered(s,c)})})})},n.performExit=function(){var t=this,n=this.props.exit,r=this.getTimeouts(),i=this.props.nodeRef?void 0:a.findDOMNode(this);if(!n||l.disabled){this.safeSetState({status:p},function(){t.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:v},function(){t.props.onExiting(i),t.onTransitionEnd(r.exit,function(){t.safeSetState({status:p},function(){t.props.onExited(i)})})})},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,n){n=this.setNextCallback(n),this.setState(t,n)},n.setNextCallback=function(t){var n=this,r=!0;return this.nextCallback=function(i){r&&(r=!1,n.nextCallback=null,t(i))},this.nextCallback.cancel=function(){r=!1},this.nextCallback},n.onTransitionEnd=function(t,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:a.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(!r||i){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],s=o[0],l=o[1];this.props.addEndListener(s,l)}null!=t&&setTimeout(this.nextCallback,t)},n.render=function(){var t=this.state.status;if(t===d)return null;var n=this.props,r=n.children,o=(n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef,(0,i.Z)(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.createElement(c.Provider,{value:null},"function"==typeof r?r(t,o):s.cloneElement(s.Children.only(r),o))},Transition}(s.Component);function noop(){}b.contextType=c,b.propTypes={},b.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:noop,onEntering:noop,onEntered:noop,onExit:noop,onExiting:noop,onExited:noop},b.UNMOUNTED=d,b.EXITED=p,b.ENTERING=m,b.ENTERED=_,b.EXITING=v;var E=b},59391:function(t,n,r){"use strict";r.d(n,{Q:function(){return forceReflow}});var forceReflow=function(t){return t.scrollTop}},42473:function(t){"use strict";t.exports=function(){}},73897:function(t){t.exports=function(t,n){(null==n||n>t.length)&&(n=t.length);for(var r=0,i=Array(n);r<n;r++)i[r]=t[r];return i},t.exports.__esModule=!0,t.exports.default=t.exports},85372:function(t){t.exports=function(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},66115:function(t){t.exports=function(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},17156:function(t){function asyncGeneratorStep(t,n,r,i,o,s,a){try{var l=t[s](a),c=l.value}catch(t){r(t);return}l.done?n(c):Promise.resolve(c).then(i,o)}t.exports=function(t){return function(){var n=this,r=arguments;return new Promise(function(i,o){var s=t.apply(n,r);function _next(t){asyncGeneratorStep(s,i,o,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(s,i,o,_next,_throw,"throw",t)}_next(void 0)})}},t.exports.__esModule=!0,t.exports.default=t.exports},56690:function(t){t.exports=function(t,n){if(!(t instanceof n))throw TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},3515:function(t,n,r){var i=r(6015),o=r(69617);function _construct(n,r,s){return o()?t.exports=_construct=Reflect.construct.bind():t.exports=_construct=function(t,n,r){var o=[null];o.push.apply(o,n);var s=new(Function.bind.apply(t,o));return r&&i(s,r.prototype),s},t.exports.__esModule=!0,t.exports.default=t.exports,_construct.apply(null,arguments)}t.exports=_construct,t.exports.__esModule=!0,t.exports.default=t.exports},89728:function(t,n,r){var i=r(64062);function _defineProperties(t,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,i(o.key),o)}}t.exports=function(t,n,r){return n&&_defineProperties(t.prototype,n),r&&_defineProperties(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t},t.exports.__esModule=!0,t.exports.default=t.exports},38416:function(t,n,r){var i=r(64062);t.exports=function(t,n,r){return(n=i(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t},t.exports.__esModule=!0,t.exports.default=t.exports},73808:function(t){function _getPrototypeOf(n){return t.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,_getPrototypeOf(n)}t.exports=_getPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},61655:function(t,n,r){var i=r(6015);t.exports=function(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&i(t,n)},t.exports.__esModule=!0,t.exports.default=t.exports},64836:function(t){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},46035:function(t){t.exports=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},t.exports.__esModule=!0,t.exports.default=t.exports},69617:function(t){t.exports=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}},t.exports.__esModule=!0,t.exports.default=t.exports},68872:function(t){t.exports=function(t,n){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var i,o,s,a,l=[],c=!0,u=!1;try{if(s=(r=r.call(t)).next,0===n){if(Object(r)!==r)return;c=!1}else for(;!(c=(i=s.call(r)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}},t.exports.__esModule=!0,t.exports.default=t.exports},12218:function(t){t.exports=function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},94993:function(t,n,r){var i=r(18698).default,o=r(66115);t.exports=function(t,n){if(n&&("object"===i(n)||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return o(t)},t.exports.__esModule=!0,t.exports.default=t.exports},17061:function(t,n,r){var i=r(18698).default;function _regeneratorRuntime(){"use strict";/*!regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE*/t.exports=_regeneratorRuntime=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var n={},r=Object.prototype,o=r.hasOwnProperty,s=Object.defineProperty||function(t,n,r){t[n]=r.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function define(t,n,r){return Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[n]}try{define({},"")}catch(t){define=function(t,n,r){return t[n]=r}}function wrap(t,n,r,i){var o,a,l=Object.create((n&&n.prototype instanceof Generator?n:Generator).prototype);return s(l,"_invoke",{value:(o=new Context(i||[]),a="suspendedStart",function(n,i){if("executing"===a)throw Error("Generator is already running");if("completed"===a){if("throw"===n)throw i;return doneResult()}for(o.method=n,o.arg=i;;){var s=o.delegate;if(s){var l=function maybeInvokeDelegate(t,n){var r=n.method,i=t.iterator[r];if(void 0===i)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=void 0,maybeInvokeDelegate(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=TypeError("The iterator does not provide a '"+r+"' method")),d;var o=tryCatch(i,t.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,d;var s=o.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=void 0),n.delegate=null,d):s:(n.method="throw",n.arg=TypeError("iterator result is not an object"),n.delegate=null,d)}(s,o);if(l){if(l===d)continue;return l}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===a)throw a="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);a="executing";var c=tryCatch(t,r,o);if("normal"===c.type){if(a=o.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:o.done}}"throw"===c.type&&(a="completed",o.method="throw",o.arg=c.arg)}})}),l}function tryCatch(t,n,r){try{return{type:"normal",arg:t.call(n,r)}}catch(t){return{type:"throw",arg:t}}}n.wrap=wrap;var d={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,l,function(){return this});var m=Object.getPrototypeOf,_=m&&m(m(values([])));_&&_!==r&&o.call(_,l)&&(p=_);var v=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(n){define(t,n,function(t){return this._invoke(n,t)})})}function AsyncIterator(t,n){var r;s(this,"_invoke",{value:function(s,a){function callInvokeWithMethodAndArg(){return new n(function(r,l){!function invoke(r,s,a,l){var c=tryCatch(t[r],t,s);if("throw"!==c.type){var u=c.arg,d=u.value;return d&&"object"==i(d)&&o.call(d,"__await")?n.resolve(d.__await).then(function(t){invoke("next",t,a,l)},function(t){invoke("throw",t,a,l)}):n.resolve(d).then(function(t){u.value=t,a(u)},function(t){return invoke("throw",t,a,l)})}l(c.arg)}(s,a,r,l)})}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function pushTryEntry(t){var n={tryLoc:t[0]};1 in t&&(n.catchLoc=t[1]),2 in t&&(n.finallyLoc=t[2],n.afterLoc=t[3]),this.tryEntries.push(n)}function resetTryEntry(t){var n=t.completion||{};n.type="normal",delete n.arg,t.completion=n}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t){var n=t[l];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,next=function next(){for(;++r<t.length;)if(o.call(t,r))return next.value=t[r],next.done=!1,next;return next.value=void 0,next.done=!0,next};return next.next=next}}return{next:doneResult}}function doneResult(){return{value:void 0,done:!0}}return GeneratorFunction.prototype=GeneratorFunctionPrototype,s(v,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),s(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var n="function"==typeof t&&t.constructor;return!!n&&(n===GeneratorFunction||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t},n.awrap=function(t){return{__await:t}},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this}),n.AsyncIterator=AsyncIterator,n.async=function(t,r,i,o,s){void 0===s&&(s=Promise);var a=new AsyncIterator(wrap(t,r,i,o),s);return n.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next()})},defineIteratorMethods(v),define(v,u,"Generator"),define(v,l,function(){return this}),define(v,"toString",function(){return"[object Generator]"}),n.keys=function(t){var n=Object(t),r=[];for(var i in n)r.push(i);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in n)return next.value=t,next.done=!1,next}return next.done=!0,next}},n.values=values,Context.prototype={constructor:Context,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(resetTryEntry),!t)for(var n in this)"t"===n.charAt(0)&&o.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function handle(r,i){return s.type="throw",s.arg=t,n.next=r,i&&(n.method="next",n.arg=void 0),!!i}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],s=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var a=o.call(i,"catchLoc"),l=o.call(i,"finallyLoc");if(a&&l){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc)}}}},abrupt:function(t,n){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var s=i;break}}s&&("break"===t||"continue"===t)&&s.tryLoc<=n&&n<=s.finallyLoc&&(s=null);var a=s?s.completion:{};return a.type=t,a.arg=n,s?(this.method="next",this.next=s.finallyLoc,d):this.complete(a)},complete:function(t,n){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&n&&(this.next=n),d},finish:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),d}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc===t){var i=r.completion;if("throw"===i.type){var o=i.arg;resetTryEntry(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:values(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},n}t.exports=_regeneratorRuntime,t.exports.__esModule=!0,t.exports.default=t.exports},6015:function(t){function _setPrototypeOf(n,r){return t.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},t.exports.__esModule=!0,t.exports.default=t.exports,_setPrototypeOf(n,r)}t.exports=_setPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},27424:function(t,n,r){var i=r(85372),o=r(68872),s=r(86116),a=r(12218);t.exports=function(t,n){return i(t)||o(t,n)||s(t,n)||a()},t.exports.__esModule=!0,t.exports.default=t.exports},95036:function(t,n,r){var i=r(18698).default;t.exports=function(t,n){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,n||"default");if("object"!==i(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},64062:function(t,n,r){var i=r(18698).default,o=r(95036);t.exports=function(t){var n=o(t,"string");return"symbol"===i(n)?n:String(n)},t.exports.__esModule=!0,t.exports.default=t.exports},18698:function(t){function _typeof(n){return t.exports=_typeof="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.exports.__esModule=!0,t.exports.default=t.exports,_typeof(n)}t.exports=_typeof,t.exports.__esModule=!0,t.exports.default=t.exports},86116:function(t,n,r){var i=r(73897);t.exports=function(t,n){if(t){if("string"==typeof t)return i(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if("Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return i(t,n)}},t.exports.__esModule=!0,t.exports.default=t.exports},33496:function(t,n,r){var i=r(73808),o=r(6015),s=r(46035),a=r(3515);function _wrapNativeSuper(n){var r="function"==typeof Map?new Map:void 0;return t.exports=_wrapNativeSuper=function(t){if(null===t||!s(t))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==r){if(r.has(t))return r.get(t);r.set(t,Wrapper)}function Wrapper(){return a(t,arguments,i(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),o(Wrapper,t)},t.exports.__esModule=!0,t.exports.default=t.exports,_wrapNativeSuper(n)}t.exports=_wrapNativeSuper,t.exports.__esModule=!0,t.exports.default=t.exports},64687:function(t,n,r){var i=r(17061)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},87462:function(t,n,r){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t}).apply(this,arguments)}r.d(n,{Z:function(){return _extends}})},75068:function(t,n,r){"use strict";function _setPrototypeOf(t,n){return(_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t})(t,n)}function _inheritsLoose(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t,_setPrototypeOf(t,n)}r.d(n,{Z:function(){return _inheritsLoose}})},63366:function(t,n,r){"use strict";function _objectWithoutPropertiesLoose(t,n){if(null==t)return{};var r,i,o={},s=Object.keys(t);for(i=0;i<s.length;i++)r=s[i],n.indexOf(r)>=0||(o[r]=t[r]);return o}r.d(n,{Z:function(){return _objectWithoutPropertiesLoose}})},25364:function(t,n,r){"use strict";r.d(n,{p:function(){return o}});var i=r(67294);let o=(0,i.createContext)({})},240:function(t,n,r){"use strict";r.d(n,{O:function(){return o}});var i=r(67294);let o=(0,i.createContext)(null)},2074:function(t,n,r){"use strict";r.d(n,{Pn:function(){return a},Wi:function(){return s},frameData:function(){return l},S6:function(){return c}});var i=r(81662);let Queue=class Queue{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 n=this.order.indexOf(t);-1!==n&&(this.order.splice(n,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:c}=function(t,n){let r=!1,i=!0,s={delta:0,timestamp:0,isProcessing:!1},a=o.reduce((t,n)=>(t[n]=function(t){let n=new Queue,r=new Queue,i=0,o=!1,s=!1,a=new WeakSet,l={schedule:(t,s=!1,l=!1)=>{let c=l&&o,u=c?n:r;return s&&a.add(t),u.add(t)&&c&&o&&(i=n.order.length),t},cancel:t=>{r.remove(t),a.delete(t)},process:c=>{if(o){s=!0;return}if(o=!0,[n,r]=[r,n],r.clear(),i=n.order.length)for(let r=0;r<i;r++){let i=n.order[r];i(c),a.has(i)&&(l.schedule(i),t())}o=!1,s&&(s=!1,l.process(c))}};return l}(()=>r=!0),t),{}),processStep=t=>a[t].process(s),processBatch=()=>{let a=performance.now();r=!1,s.delta=i?1e3/60:Math.max(Math.min(a-s.timestamp,40),1),s.timestamp=a,s.isProcessing=!0,o.forEach(processStep),s.isProcessing=!1,r&&n&&(i=!1,t(processBatch))},wake=()=>{r=!0,i=!0,s.isProcessing||t(processBatch)},l=o.reduce((t,n)=>{let i=a[n];return t[n]=(t,n=!1,o=!1)=>(r||wake(),i.schedule(t,n,o)),t},{});return{schedule:l,cancel:t=>o.forEach(n=>a[n].cancel(t)),state:s,steps:a}}("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:i.Z,!0)},45487:function(t,n,r){"use strict";r.d(n,{K:function(){return o},k:function(){return s}});var i=r(81662);let o=i.Z,s=i.Z},11741:function(t,n,r){"use strict";r.d(n,{j:function(){return i}});let i="undefined"!=typeof document},81662:function(t,n,r){"use strict";r.d(n,{Z:function(){return noop}});let noop=t=>t},96681:function(t,n,r){"use strict";r.d(n,{h:function(){return useConstant}});var i=r(67294);function useConstant(t){let n=(0,i.useRef)(null);return null===n.current&&(n.current=t()),n.current}},58868:function(t,n,r){"use strict";r.d(n,{L:function(){return s}});var i=r(67294),o=r(11741);let s=o.j?i.useLayoutEffect:i.useEffect}},function(t){var __webpack_exec__=function(n){return t(t.s=n)};t.O(0,[774,179],function(){return __webpack_exec__(65822),__webpack_exec__(6840),__webpack_exec__(59974)}),_N_E=t.O()}]);