Spaces:
Running on Zero
Running on Zero
| <html lang="en"> | |
| <head> | |
| <script>window.__MRTAPP="jam";</script> | |
| <style id="mrt-contain"> | |
| html,body{background:#161719;overflow:hidden} | |
| #root{max-width:1180px;height:calc(100vh - 20px);margin:10px auto;position:relative;border:1px solid #34353a;border-radius:16px;box-shadow:0 12px 48px rgba(0,0,0,.55);overflow:hidden;background:#202124} | |
| #root>div{width:100%;height:100%} | |
| #root [style*="position: fixed"]{position:absolute} | |
| </style> | |
| <script> | |
| /* ── Backend bridge: native WebKit/auHost -> our gradio.Server ── */ | |
| (function(){ | |
| const SID=(crypto.randomUUID?crypto.randomUUID():"s"+Math.random().toString(36).slice(2)); | |
| const APP=(window.__MRTAPP)||"collider"; | |
| const BPOS=({jam:"top:14px;right:90px",studio:"left:22px;bottom:20px",collider:"top:17px;left:230px"})[APP]||"top:17px;left:230px"; | |
| const MODELS=["mrt2_small","mrt2_base"], SR=48000, PIDX={0:"temperature",1:"topk",3:"cfg",4:"cfgnotes",7:"unmaskwidth",8:"buffer",39:"drumless",46:"onsetmode",48:"cfgdrums"}; | |
| let currentModel="mrt2_base", params={temperature:1.1,topk:50,cfg:1.6,cfgnotes:2.4,cfgdrums:4.0,buffer:0,unmaskwidth:0,drumless:0,onsetmode:0}, lastData=null; | |
| const activeNotes=new Set(); | |
| // ── Web MIDI: physical controller support ── | |
| let midiDevs=[], selMidi=0; // selMidi 0=computer keyboard, >0=physical endpoint | |
| function pushMidi(){ US({midiSources:midiDevs.map(d=>({name:d.name,endpoint:d.endpoint,connected:d.endpoint===selMidi}))}); } | |
| function onMidi(e){ const d=midiDevs.find(x=>x.port===e.target); if(!d||d.endpoint!==selMidi)return; | |
| const cmd=e.data[0]&0xf0,note=e.data[1],vel=e.data[2]; | |
| if(cmd===0x90&&vel>0)activeNotes.add(note); else if(cmd===0x80||(cmd===0x90&&vel===0))activeNotes.delete(note); else return; | |
| US({activeNotes:[...activeNotes]}); applyVol(); setStyle(lastData||[{text:'instrumental music',weight:1}]); } | |
| function initMidi(a){ midiDevs=[]; let ep=1; for(const i of a.inputs.values()){ i.onmidimessage=onMidi; midiDevs.push({name:i.name||("MIDI "+ep),endpoint:ep,port:i}); ep++; } pushMidi(); } | |
| if(navigator.requestMIDIAccess){ navigator.requestMIDIAccess().then(a=>{ initMidi(a); a.onstatechange=()=>initMidi(a); }).catch(()=>{}); } | |
| let playing=false, ctx=null, analyser=null, gain=null, vol=1, muted=false, midigate=false, solomode=false, bypassed=false, nextTime=0, client=null, freq=null, ws=null, obtainingToast=null, acquired=false, sessionEnded=false; | |
| let sessionLen=120, budget=120, lastBT=0, deadline=0, mtick=0, settingsOpen=false, resetSeq=0, seedVal=0, bankVer=0, bankOp=null, prefillVer=0, prefillOp=null; | |
| const US=s=>{ if(window.updateState) window.updateState(s); }; | |
| window.webkit={ messageHandlers:{ auHost:{ postMessage:handle } } }; | |
| function refreshBanks(){ fetch("/banks?session_id="+encodeURIComponent(SID)).then(r=>r.json()).then(d=>US({bankStatus:d.bankStatus})).catch(()=>{}); } | |
| function lsGet(k){ try{ return JSON.parse(localStorage.getItem(APP+"_"+k)); }catch(e){ return null; } } | |
| function lsSet(k,v){ try{ localStorage.setItem(APP+"_"+k, JSON.stringify(v)); }catch(e){} } | |
| function handle(m){ | |
| switch(m&&m.type){ | |
| case 'uiReady': | |
| setTimeout(()=>{ US({resourcesMissing:false,localModels:MODELS,remoteModels:MODELS,modelName:currentModel,isPlaying:false, | |
| computerKeyboardMidi:(selMidi===0),midiSources:midiDevs.map(d=>({name:d.name,endpoint:d.endpoint,connected:d.endpoint===selMidi})), | |
| params:{temperature:params.temperature,topk:params.topk,cfgmusiccoca:params.cfg}}); | |
| const ph=lsGet('promptHistory'); if(ph)US({savedPromptHistory:ph.history,savedHistoryIndex:ph.index||0,savedPaletteIndex:ph.paletteIndex||0}); | |
| const up=lsGet('userPresets'); if(up)US({savedUserPresets:up}); | |
| const ri=lsGet('rockerIndex'); if(ri!=null)US({savedRockerIndex:ri}); | |
| const ss=lsGet('surfaceState'); if(ss)US({promptSurfaceState:ss}); },30); break; | |
| case 'listRemoteModels': US({remoteModels:MODELS,localModels:MODELS}); break; | |
| case 'selectModel': if(m.name){ currentModel=m.name; US({modelName:m.name,localModels:MODELS}); setStyle(lastData); } break; | |
| case 'downloadModel': case 'initResources': US({resourcesMissing:false,modelName:currentModel,localModels:MODELS}); break; | |
| case 'textPrompts': lastData=m.value; setStyle(m.value); break; | |
| case 'param': { if(m.index===5){ vol=Math.max(0,Math.min(1,(m.value+60)/60)); applyVol(); break; } | |
| if(m.index===6){ muted=!!m.value; applyVol(); break; } | |
| if(m.index===45){ midigate=!!m.value; applyVol(); break; } | |
| if(m.index===32){ bypassed=!!m.value; applyVol(); break; } | |
| if(m.index===31){ if(m.value){ resetSeq++; setStyle(lastData); } break; } | |
| if(m.index===47){ seedVal++; setStyle(lastData); break; } | |
| const k=PIDX[m.index]; if(k){ params[k]=m.value; setStyle(lastData); if(m.index===39||m.index===46) US({params:{drumless:params.drumless|0,onsetmode:params.onsetmode|0}}); } break; } // echo toggles so the controlled UI switch flips | |
| case 'openSettings': settingsOpen=!settingsOpen; US({openSettings:settingsOpen}); break; | |
| case 'setSoloMode': solomode=!!m.value; applyVol(); US({solomode:!!m.value}); break; | |
| case 'checkBanks': US({bankStatus:{}}); break; | |
| case 'selectMidiSource': selMidi=m.endpoint||0; US({computerKeyboardMidi:(selMidi===0)}); pushMidi(); break; | |
| case 'kbdNote': { if(m.on)activeNotes.add(m.note); else activeNotes.delete(m.note); US({activeNotes:[...activeNotes]}); applyVol(); const _kt=performance.now(); const _p=setStyle(lastData||[{text:'instrumental music',weight:1}]); if(_p&&_p.then)_p.then(()=>{ if(m.on)console.log('[lat] note',m.note,'/set='+((performance.now()-_kt)|0)+'ms queueLead='+(ctx?((nextTime-ctx.currentTime)*1000)|0:0)+'ms buffer='+([0.15,0.3,0.5][params.buffer|0]*1000|0)+'ms'); }); break; } | |
| case 'gpuSession': sessionLen=+m.value; if(!playing)budget=sessionLen; emitGpu(); break; | |
| case 'silentPrefill': resetSeq++; US({audioPrefillStatus:'Success'}); if(lastData)setStyle(lastData); break; | |
| case 'audioPrefill': pickPrefill(); break; | |
| case 'saveBank': bankOp={action:"save",idx:m.index||0,ver:++bankVer}; if(lastData)setStyle(lastData); setTimeout(refreshBanks,600); break; | |
| case 'loadBank': bankOp={action:"load",idx:m.index||0,ver:++bankVer}; if(lastData)setStyle(lastData); break; | |
| case 'checkBanks': refreshBanks(); break; | |
| case 'resetToFactory': resetSeq++; if(lastData)setStyle(lastData); break; | |
| case 'savePromptHistory': lsSet('promptHistory',{history:m.history,index:m.index,paletteIndex:m.paletteIndex}); break; | |
| case 'saveUserPresets': lsSet('userPresets',{solo:m.solo,jam:m.jam}); break; | |
| case 'saveRockerIndex': lsSet('rockerIndex',m.value); break; | |
| case 'promptSurfaceState': lsSet('surfaceState',m.value||m.state||null); break; | |
| case 'listLocalModels': US({localModels:MODELS}); break; | |
| case 'deleteModel': case 'selectDownloadFolder': break; | |
| case 'loadAudioPrompt': pickAudio(m.index||0); break; | |
| case 'clearAudioPrompt': clearAudio(m.index||0); break; | |
| case 'togglePlay': toggle(); break; | |
| default: break; | |
| } | |
| } | |
| function b64enc(u8){ let r=""; const c=0x8000; for(let i=0;i<u8.length;i+=c) r+=String.fromCharCode.apply(null,u8.subarray(i,i+c)); return btoa(r); } | |
| function pickAudio(idx){ const inp=document.createElement("input"); inp.type="file"; inp.accept="audio/*"; | |
| inp.onchange=async()=>{ const file=inp.files&&inp.files[0]; if(!file)return; | |
| try{ const ac=new (window.AudioContext||window.webkitAudioContext)(); const ab=await ac.decodeAudioData(await file.arrayBuffer()); ac.close(); | |
| const n=Math.min(ab.length, ab.sampleRate*20), mono=new Float32Array(n); | |
| for(let ch=0;ch<ab.numberOfChannels;ch++){ const d=ab.getChannelData(ch); for(let i=0;i<n;i++)mono[i]+=d[i]/ab.numberOfChannels; } | |
| await fetch("/audio",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:SID,slot:idx,sample_rate:ab.sampleRate|0,samples:b64enc(new Uint8Array(mono.buffer))})}); | |
| if(!lastData)lastData=[]; while(lastData.length<=idx)lastData.push({text:"",weight:1,isAudio:false}); | |
| lastData[idx].isAudio=true; lastData[idx].text=file.name; US({prompt:file.name,isAudioPrompt:true}); setStyle(lastData); | |
| }catch(e){ console.warn("audio prompt failed",e); } }; | |
| inp.click(); } | |
| function pickPrefill(){ const inp=document.createElement("input"); inp.type="file"; inp.accept="audio/*"; | |
| inp.onchange=async()=>{ const file=inp.files&&inp.files[0]; if(!file)return; | |
| try{ const ac=new (window.AudioContext||window.webkitAudioContext)({sampleRate:48000}); const ab=await ac.decodeAudioData(await file.arrayBuffer()); ac.close(); | |
| const n=Math.min(ab.length,48000*10), L=ab.getChannelData(0), R=ab.numberOfChannels>1?ab.getChannelData(1):L, inter=new Float32Array(n*2); | |
| for(let i=0;i<n;i++){ inter[2*i]=L[i]; inter[2*i+1]=R[i]; } | |
| await fetch("/prefill",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:SID,samples:b64enc(new Uint8Array(inter.buffer))})}); | |
| prefillOp={action:"audio",ver:++prefillVer}; US({audioPrefillStatus:"Success"}); if(lastData)setStyle(lastData); | |
| }catch(e){ console.warn("prefill failed",e); US({audioPrefillStatus:"Failed"}); } }; | |
| inp.click(); } | |
| function clearAudio(idx){ fetch("/audio",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:SID,slot:idx,samples:""})}).catch(()=>{}); | |
| if(lastData&&lastData[idx])lastData[idx].isAudio=false; US({isAudioPrompt:false}); if(lastData)setStyle(lastData); } | |
| function setStyle(data){ | |
| if(!data||!data.length) return Promise.resolve(); lastData=data; | |
| const payload={session_id:SID,prompts:data.map(d=>(d&&d.text)||""),weights:data.map(d=>(d&&d.weight)||0),audio:data.map(d=>!!(d&&d.isAudio)), | |
| temperature:params.temperature,top_k:params.topk|0,cfg:params.cfg,cfg_notes:params.cfgnotes,cfg_drums:params.cfgdrums,buffer:params.buffer|0, | |
| notes:[...activeNotes],unmaskwidth:params.unmaskwidth|0,drumless:!!params.drumless,onsetmode:!!params.onsetmode,reset:resetSeq,seed:seedVal,bank_op:bankOp,prefill_op:prefillOp,model:currentModel}; | |
| if(ws && ws.readyState===1){ try{ ws.send(JSON.stringify({type:"set",...payload})); }catch(e){} return Promise.resolve(); } // low-latency steering over WS (no HTTP RTT) | |
| return fetch("/set",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(payload)}).catch(()=>{}); // fallback before WS open | |
| } | |
| function showToast(msg, kind, sticky){ | |
| let c=document.getElementById("mrt-toasts"); | |
| if(!c){ c=document.createElement("div"); c.id="mrt-toasts"; c.style.cssText="position:fixed;top:18px;left:50%;transform:translateX(-50%);z-index:2147483647;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none"; document.body.appendChild(c); } | |
| const t=document.createElement("div"); const col=kind==="ok"?"#1db954":(kind==="end"?"#e0245e":"#2a2a2e"); | |
| t.style.cssText="background:"+col+";color:#fff;padding:9px 18px;border-radius:18px;font:600 13px/1.2 system-ui,sans-serif;box-shadow:0 6px 22px rgba(0,0,0,.35);opacity:0;transform:translateY(-8px);transition:opacity .25s,transform .25s"; | |
| t.textContent=msg; c.appendChild(t); requestAnimationFrame(()=>{ t.style.opacity="1"; t.style.transform="translateY(0)"; }); | |
| const rm=()=>{ t.style.opacity="0"; t.style.transform="translateY(-8px)"; setTimeout(()=>t.remove(),300); }; | |
| if(!sticky) setTimeout(rm, 3200); return rm; | |
| } | |
| function playPCM(i16){ const n=i16.length>>1; if(n<1||!ctx)return; | |
| const buf=ctx.createBuffer(2,n,SR),L=buf.getChannelData(0),R=buf.getChannelData(1); | |
| for(let i=0;i<n;i++){L[i]=i16[2*i]/32768;R[i]=i16[2*i+1]/32768;} | |
| const s=ctx.createBufferSource(); s.buffer=buf; s.connect(analyser); | |
| if(nextTime<ctx.currentTime+0.03)nextTime=ctx.currentTime+0.1; s.start(nextTime); nextTime+=n/SR; | |
| const _lead=((nextTime-ctx.currentTime)*1000)|0; | |
| if(ws && ws.readyState===1){ try{ ws.send(JSON.stringify({type:"buffer",session_id:SID,lead:_lead})); }catch(e){} } | |
| else fetch("/buffer",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:SID,lead:_lead})}).catch(()=>{}); | |
| } | |
| function playChunk(b64){ const bin=atob(b64),by=new Uint8Array(bin.length); for(let i=0;i<bin.length;i++)by[i]=bin.charCodeAt(i); playPCM(new Int16Array(by.buffer)); } | |
| function startWS(){ if(ws){ try{ws.close();}catch(e){} } | |
| ws=new WebSocket(window.location.origin.replace(/^http/,"ws")+"/ws?session_id="+encodeURIComponent(SID)); ws.binaryType="arraybuffer"; | |
| ws.onmessage=(e)=>{ if(typeof e.data==="string"){ try{ const m=JSON.parse(e.data); if(m.type==="ended"){ sessionEnded=true; budget=0; if(obtainingToast){obtainingToast();obtainingToast=null;} showToast("Your ZeroGPU session ended","end"); if(playing)toggle(true); else emitGpu(); } }catch(_){} return; } | |
| if(!playing||budget<=0)return; const b=e.data; if(!b||b.byteLength<4)return; | |
| if(!acquired){ acquired=true; if(obtainingToast){obtainingToast();obtainingToast=null;} showToast("ZeroGPU acquired","ok"); } | |
| const fm=new DataView(b).getFloat32(0,true); const i16=new Int16Array(b,4); | |
| US({metrics:{frameMs:fm,droppedFrames:0,buffersize:(ctx?Math.max(0,(nextTime-ctx.currentTime)*1000)|0:0)}}); playPCM(i16); }; | |
| ws.onclose=()=>{ if(playing&&budget>0&&!sessionEnded) setTimeout(startWS,400); }; } | |
| function applyVol(){ if(!gain||!ctx) return; const base=(muted||bypassed)?0:vol; | |
| if(solomode){ const on=activeNotes.size>0; gain.gain.setTargetAtTime(on?base:0, ctx.currentTime, on?0.005:0.45); } // solo: instant open / ~2s decay to silence (native JamApp gate, gateDecaySeconds=2) | |
| else if(midigate){ const on=activeNotes.size>0; gain.gain.setTargetAtTime(on?base:0, ctx.currentTime, on?0.0087:0.217); } // attack 8.7ms / release 217ms one-pole = native midi_env_ (piano-like) | |
| else { gain.gain.setTargetAtTime(base, ctx.currentTime, 0.01); } } // 10ms vol smoothing = native | |
| function meter(){ | |
| if(analyser){ analyser.getByteFrequencyData(freq); let m=0; for(let i=0;i<20;i++)m+=freq[i]; const lv=Math.min(1,m/20/150); | |
| US({audioLevel:lv,audioLevels:{left:lv,right:lv}}); | |
| } | |
| tickBudget(); | |
| requestAnimationFrame(meter); | |
| } | |
| async function loop(){ | |
| while(playing&&budget>0){ | |
| try{ const job=client.submit("/stream",{session_id:SID}); | |
| for await(const e of job){ if(!playing||budget<=0)break; if(e.type==="data"&&e.data&&e.data[0]){ let raw=e.data[0]; const bar=raw.indexOf("|"); | |
| if(bar>0&&bar<10){ US({metrics:{frameMs:parseFloat(raw.slice(0,bar)),droppedFrames:0,buffersize:(ctx?Math.max(0,(nextTime-ctx.currentTime)*1000)|0:0)}}); raw=raw.slice(bar+1); } | |
| playChunk(raw); if(ctx)fetch("/buffer",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({session_id:SID,lead:((nextTime-ctx.currentTime)*1000)|0})}).catch(()=>{}); } } } | |
| catch(err){ await new Promise(r=>setTimeout(r,400)); } if(!playing||budget<=0)break; | |
| } | |
| } | |
| async function toggle(depleted){ | |
| if(playing||depleted){ playing=false; US({isPlaying:false}); if(ctx)ctx.suspend(); if(ws){try{ws.close();}catch(e){}ws=null;} if(obtainingToast){obtainingToast();obtainingToast=null;} emitGpu(); return; } | |
| if(!ctx){ ctx=new AudioContext({sampleRate:SR}); analyser=ctx.createAnalyser(); analyser.fftSize=64; gain=ctx.createGain(); analyser.connect(gain); gain.connect(ctx.destination); freq=new Uint8Array(analyser.frequencyBinCount); applyVol(); meter(); } | |
| await ctx.resume(); nextTime=ctx.currentTime+0.15; budget=sessionLen; lastBT=performance.now(); deadline=performance.now()+sessionLen*1000; | |
| playing=true; US({isPlaying:true}); emitGpu(); await setStyle(lastData); | |
| if(!client) client=await Client.connect(window.location.origin); | |
| acquired=false; sessionEnded=false; if(obtainingToast)obtainingToast(); obtainingToast=showToast("Obtaining ZeroGPU\u2026","info",true); | |
| try{ await client.predict("/start",{session_id:SID}); }catch(e){ console.error("start",e); } | |
| startWS(); | |
| } | |
| // ── discreet ZeroGPU-session slider by the play button ── | |
| function fmt(s){ s=Math.max(0,s|0); return Math.floor(s/60)+":"+String(s%60).padStart(2,"0"); } | |
| function emitGpu(){ try{ window.dispatchEvent(new CustomEvent("mrt-gpu",{detail:{remaining:budget,len:sessionLen,playing:playing}})); }catch(e){} } | |
| function tickBudget(){ if(!playing)return; budget=Math.max(0,(deadline-performance.now())/1000); emitGpu(); if(budget<=0){ budget=0; toggle(true); } } // deadline-based: survives hidden-tab rAF pause | |
| setInterval(tickBudget,1000); // setInterval still fires (throttled) when tab hidden; rAF does not | |
| document.addEventListener("visibilitychange",()=>{ if(!document.hidden)tickBudget(); }); // snap to true remaining the instant tab refocuses | |
| let Client; | |
| import("https://cdn.jsdelivr.net/npm/@gradio/client/dist/index.min.js").then(m=>{Client=m.Client;}); | |
| window.addEventListener("load",()=>setTimeout(emitGpu,300)); | |
| })(); | |
| </script> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Jam</title> | |
| <style rel="stylesheet">@import"https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap";@import"https://fonts.googleapis.com/css2?family=Google+Sans+Text:wght@400;500;700&display=swap";@import"https://fonts.googleapis.com/icon?family=Material+Icons";@import"https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200";:root{--prompt-enter-duration: .35s;--prompt-enter-easing: cubic-bezier(.34, 1.56, .64, 1);--prompt-label-fade-duration: .3s;--trash-enter-duration: .25s;--trash-enter-easing: cubic-bezier(.34, 1.56, .64, 1);--slider-enter-duration: .5s;--slider-enter-easing: cubic-bezier(.34, 1.56, .64, 1);--slider-enter-delay: 3s;--slider-fade-duration: .1s}.trash-zone{transform:translate(calc(-100% - 16px),-50%);transition:transform var(--trash-enter-duration) var(--trash-enter-easing)}.trash-zone.visible{transform:translateY(-50%)}.trash-zone-inner{transition:transform .15s ease-out}.trash-zone-inner.over{transform:scale(1.4)}@keyframes prompt-scale-in{0%{transform:scale(0)}to{transform:scale(1)}}.prompt-node{transform-box:fill-box;transform-origin:center;animation:prompt-scale-in var(--prompt-enter-duration) var(--prompt-enter-easing) forwards}@keyframes dash-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ball-selected{stroke-dasharray:4 2;transform-box:fill-box;transform-origin:center;transition:opacity .1s linear;opacity:0;animation:dash-rotate 8s linear infinite}.ball-selected.active{opacity:1}.speed-slider-dock{display:flex;align-items:center;gap:12px;overflow:visible;opacity:0;transition:transform var(--slider-enter-duration) var(--slider-enter-easing) var(--slider-enter-delay),opacity var(--slider-enter-duration) ease var(--slider-enter-delay)}.speed-slider-dock.visible{opacity:1}@keyframes prompt-label-fade-in{0%{opacity:0}to{opacity:1}}.prompt-label{animation:prompt-label-fade-in var(--prompt-label-fade-duration) linear forwards}.draggable{cursor:grab}.draggable:active{cursor:grabbing}body.is-dragging,body.is-dragging *{cursor:grabbing!important}.debug-bounds{display:none}.debug .debug-bounds{display:block}.debug .toolbar,.debug .prompt-label input{outline:1px solid cyan}.debug .hitbox{outline:1px solid cyan;border-radius:100%}.dev-badge{position:absolute;top:53px;left:12px;z-index:9999;font-weight:700;font-size:12px;color:#000;padding:4px;background:#fff;border-radius:4px;line-height:1;cursor:pointer;opacity:0;transition:opacity .15s ease}.dev-badge:hover{opacity:.4}.dev-badge.debug-on{background:#0ff;opacity:1}:root{--color-bg: #202124;--color-fg: #FFF;--color-surface: #2a2b2e;--color-raised: #36373a;--color-border: #353535;--color-muted: rgba(255, 255, 255, .45);--color-accent: #1E70E6;--app-padding: 20px}*,*:before,*:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}html,body{margin:0;padding:0}h1,h2,h3,h4,h5,h6,p{margin:0;font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,[role=button]{cursor:pointer}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}img,svg,video,canvas{display:block;max-width:100%}img,video{height:auto}.app-title{font-family:Google Sans,system-ui,sans-serif;font-size:18px;font-style:normal;font-weight:700;line-height:44px;letter-spacing:1.08px;text-transform:uppercase;color:var(--color-fg);white-space:nowrap}.app-header-bar{display:flex;align-items:center;gap:12px;padding:6px var(--app-padding);flex-shrink:0;line-height:44px}.panel-header{font-family:Google Sans,system-ui,sans-serif;font-size:12px;font-style:normal;font-weight:500;line-height:16px;letter-spacing:.48px;text-transform:uppercase;color:var(--color-fg)}.prompt-box{background-color:var(--color-raised);border-radius:5px;color:var(--color-fg);font-family:Google Sans,system-ui,sans-serif;font-size:14px;font-weight:500}.prompt-box:hover{background-color:#424346}.MuiSlider-root,.MuiButton-root,.MuiMenuItem-root,.MuiTypography-root{font-family:Google Sans Text,system-ui,sans-serif!important}.settings-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#00000080;z-index:1200;opacity:0;pointer-events:none;transition:opacity 225ms cubic-bezier(.4,0,.2,1)}.settings-backdrop.open{opacity:1;pointer-events:auto}.settings-panel{position:fixed;top:0;right:0;bottom:0;width:260px;flex-shrink:0;z-index:1300;background:#202124;border-left:1px solid rgba(255,255,255,.12);color:#fff;padding:0;box-sizing:border-box;font-family:Google Sans Text,system-ui,sans-serif;transform:translate(100%);transition:transform 225ms cubic-bezier(0,0,.2,1);overflow-y:auto}.settings-panel.open{transform:translate(0)}@keyframes magenta-spin{to{transform:rotate(360deg)}}.magenta-spinner{width:14px;height:14px;border:1.5px solid transparent;border-top-color:currentColor;border-right-color:currentColor;border-radius:50%;animation:magenta-spin .7s linear infinite;flex-shrink:0}.magenta-toggle:hover .magenta-toggle-label{opacity:1!important}@keyframes magenta-pulse{0%,to{opacity:.4}50%{opacity:1}}body{font-family:Google Sans Text,system-ui,sans-serif;height:100%;width:100%;overflow:hidden;margin:0;padding:0;-webkit-font-smoothing:antialiased;background-color:#000;color:var(--color-fg)}*{-moz-user-select:none;user-select:none;-webkit-user-select:none}input,textarea{-moz-user-select:text;user-select:text;-webkit-user-select:text}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#1b1c1726;border-radius:3px}.gradient-bg{transition:background 1.2s cubic-bezier(.4,0,.2,1)}input[type=range]{-webkit-appearance:none;-moz-appearance:none;appearance:none;height:4px;border-radius:2px;background:#1b1c1733;outline:none}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:14px;height:14px;border-radius:50%;background:var(--color-fg);cursor:pointer;box-shadow:0 1px 4px #0000004d}.white-key,.black-key{transition:background-color .1s ease,box-shadow .1s ease!important}.jam-box{background:#1a1a1d;border:1px solid rgba(255,255,255,0);border-radius:10px}body.dragging-vertical,body.dragging-vertical *{cursor:ns-resize!important}body.cursor-none,body.cursor-none *{cursor:none!important}body.cursor-grabbing,body.cursor-grabbing *{cursor:grabbing!important}</style> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| <script>var U0=Object.defineProperty;var H0=(t,r,o)=>r in t?U0(t,r,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[r]=o;var is=(t,r,o)=>H0(t,typeof r!="symbol"?r+"":r,o);function V0(t,r){for(var o=0;o<r.length;o++){const s=r[o];if(typeof s!="string"&&!Array.isArray(s)){for(const a in s)if(a!=="default"&&!(a in t)){const u=Object.getOwnPropertyDescriptor(s,a);u&&Object.defineProperty(t,a,u.get?u:{enumerable:!0,get:()=>s[a]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const u of a)if(u.type==="childList")for(const d of u.addedNodes)d.tagName==="LINK"&&d.rel==="modulepreload"&&s(d)}).observe(document,{childList:!0,subtree:!0});function o(a){const u={};return a.integrity&&(u.integrity=a.integrity),a.referrerPolicy&&(u.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?u.credentials="include":a.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(a){if(a.ep)return;a.ep=!0;const u=o(a);fetch(a.href,u)}})();function Fg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Pc={exports:{}},ss={},Mc={exports:{}},We={};/** | |
| * @license React | |
| * react.production.min.js | |
| * | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */var Bm;function G0(){if(Bm)return We;Bm=1;var t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.iterator;function C(A){return A===null||typeof A!="object"?null:(A=w&&A[w]||A["@@iterator"],typeof A=="function"?A:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},k=Object.assign,b={};function E(A,Y,le){this.props=A,this.context=Y,this.refs=b,this.updater=le||T}E.prototype.isReactComponent={},E.prototype.setState=function(A,Y){if(typeof A!="object"&&typeof A!="function"&&A!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,A,Y,"setState")},E.prototype.forceUpdate=function(A){this.updater.enqueueForceUpdate(this,A,"forceUpdate")};function $(){}$.prototype=E.prototype;function j(A,Y,le){this.props=A,this.context=Y,this.refs=b,this.updater=le||T}var P=j.prototype=new $;P.constructor=j,k(P,E.prototype),P.isPureReactComponent=!0;var R=Array.isArray,M=Object.prototype.hasOwnProperty,O={current:null},F={key:!0,ref:!0,__self:!0,__source:!0};function D(A,Y,le){var ie,ae={},de=null,xe=null;if(Y!=null)for(ie in Y.ref!==void 0&&(xe=Y.ref),Y.key!==void 0&&(de=""+Y.key),Y)M.call(Y,ie)&&!F.hasOwnProperty(ie)&&(ae[ie]=Y[ie]);var ge=arguments.length-2;if(ge===1)ae.children=le;else if(1<ge){for(var ye=Array(ge),me=0;me<ge;me++)ye[me]=arguments[me+2];ae.children=ye}if(A&&A.defaultProps)for(ie in ge=A.defaultProps,ge)ae[ie]===void 0&&(ae[ie]=ge[ie]);return{$$typeof:t,type:A,key:de,ref:xe,props:ae,_owner:O.current}}function B(A,Y){return{$$typeof:t,type:A.type,key:Y,ref:A.ref,props:A.props,_owner:A._owner}}function g(A){return typeof A=="object"&&A!==null&&A.$$typeof===t}function N(A){var Y={"=":"=0",":":"=2"};return"$"+A.replace(/[=:]/g,function(le){return Y[le]})}var V=/\/+/g;function G(A,Y){return typeof A=="object"&&A!==null&&A.key!=null?N(""+A.key):Y.toString(36)}function te(A,Y,le,ie,ae){var de=typeof A;(de==="undefined"||de==="boolean")&&(A=null);var xe=!1;if(A===null)xe=!0;else switch(de){case"string":case"number":xe=!0;break;case"object":switch(A.$$typeof){case t:case r:xe=!0}}if(xe)return xe=A,ae=ae(xe),A=ie===""?"."+G(xe,0):ie,R(ae)?(le="",A!=null&&(le=A.replace(V,"$&/")+"/"),te(ae,Y,le,"",function(me){return me})):ae!=null&&(g(ae)&&(ae=B(ae,le+(!ae.key||xe&&xe.key===ae.key?"":(""+ae.key).replace(V,"$&/")+"/")+A)),Y.push(ae)),1;if(xe=0,ie=ie===""?".":ie+":",R(A))for(var ge=0;ge<A.length;ge++){de=A[ge];var ye=ie+G(de,ge);xe+=te(de,Y,le,ye,ae)}else if(ye=C(A),typeof ye=="function")for(A=ye.call(A),ge=0;!(de=A.next()).done;)de=de.value,ye=ie+G(de,ge++),xe+=te(de,Y,le,ye,ae);else if(de==="object")throw Y=String(A),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(A).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.");return xe}function Q(A,Y,le){if(A==null)return A;var ie=[],ae=0;return te(A,ie,"","",function(de){return Y.call(le,de,ae++)}),ie}function U(A){if(A._status===-1){var Y=A._result;Y=Y(),Y.then(function(le){(A._status===0||A._status===-1)&&(A._status=1,A._result=le)},function(le){(A._status===0||A._status===-1)&&(A._status=2,A._result=le)}),A._status===-1&&(A._status=0,A._result=Y)}if(A._status===1)return A._result.default;throw A._result}var J={current:null},X={transition:null},K={ReactCurrentDispatcher:J,ReactCurrentBatchConfig:X,ReactCurrentOwner:O};function ee(){throw Error("act(...) is not supported in production builds of React.")}return We.Children={map:Q,forEach:function(A,Y,le){Q(A,function(){Y.apply(this,arguments)},le)},count:function(A){var Y=0;return Q(A,function(){Y++}),Y},toArray:function(A){return Q(A,function(Y){return Y})||[]},only:function(A){if(!g(A))throw Error("React.Children.only expected to receive a single React element child.");return A}},We.Component=E,We.Fragment=o,We.Profiler=a,We.PureComponent=j,We.StrictMode=s,We.Suspense=m,We.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=K,We.act=ee,We.cloneElement=function(A,Y,le){if(A==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+A+".");var ie=k({},A.props),ae=A.key,de=A.ref,xe=A._owner;if(Y!=null){if(Y.ref!==void 0&&(de=Y.ref,xe=O.current),Y.key!==void 0&&(ae=""+Y.key),A.type&&A.type.defaultProps)var ge=A.type.defaultProps;for(ye in Y)M.call(Y,ye)&&!F.hasOwnProperty(ye)&&(ie[ye]=Y[ye]===void 0&&ge!==void 0?ge[ye]:Y[ye])}var ye=arguments.length-2;if(ye===1)ie.children=le;else if(1<ye){ge=Array(ye);for(var me=0;me<ye;me++)ge[me]=arguments[me+2];ie.children=ge}return{$$typeof:t,type:A.type,key:ae,ref:de,props:ie,_owner:xe}},We.createContext=function(A){return A={$$typeof:d,_currentValue:A,_currentValue2:A,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},A.Provider={$$typeof:u,_context:A},A.Consumer=A},We.createElement=D,We.createFactory=function(A){var Y=D.bind(null,A);return Y.type=A,Y},We.createRef=function(){return{current:null}},We.forwardRef=function(A){return{$$typeof:p,render:A}},We.isValidElement=g,We.lazy=function(A){return{$$typeof:v,_payload:{_status:-1,_result:A},_init:U}},We.memo=function(A,Y){return{$$typeof:h,type:A,compare:Y===void 0?null:Y}},We.startTransition=function(A){var Y=X.transition;X.transition={};try{A()}finally{X.transition=Y}},We.unstable_act=ee,We.useCallback=function(A,Y){return J.current.useCallback(A,Y)},We.useContext=function(A){return J.current.useContext(A)},We.useDebugValue=function(){},We.useDeferredValue=function(A){return J.current.useDeferredValue(A)},We.useEffect=function(A,Y){return J.current.useEffect(A,Y)},We.useId=function(){return J.current.useId()},We.useImperativeHandle=function(A,Y,le){return J.current.useImperativeHandle(A,Y,le)},We.useInsertionEffect=function(A,Y){return J.current.useInsertionEffect(A,Y)},We.useLayoutEffect=function(A,Y){return J.current.useLayoutEffect(A,Y)},We.useMemo=function(A,Y){return J.current.useMemo(A,Y)},We.useReducer=function(A,Y,le){return J.current.useReducer(A,Y,le)},We.useRef=function(A){return J.current.useRef(A)},We.useState=function(A){return J.current.useState(A)},We.useSyncExternalStore=function(A,Y,le){return J.current.useSyncExternalStore(A,Y,le)},We.useTransition=function(){return J.current.useTransition()},We.version="18.3.1",We}var Wm;function Cd(){return Wm||(Wm=1,Mc.exports=G0()),Mc.exports}/** | |
| * @license React | |
| * react-jsx-runtime.production.min.js | |
| * | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */var Um;function K0(){if(Um)return ss;Um=1;var t=Cd(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,a=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function d(p,m,h){var v,w={},C=null,T=null;h!==void 0&&(C=""+h),m.key!==void 0&&(C=""+m.key),m.ref!==void 0&&(T=m.ref);for(v in m)s.call(m,v)&&!u.hasOwnProperty(v)&&(w[v]=m[v]);if(p&&p.defaultProps)for(v in m=p.defaultProps,m)w[v]===void 0&&(w[v]=m[v]);return{$$typeof:r,type:p,key:C,ref:T,props:w,_owner:a.current}}return ss.Fragment=o,ss.jsx=d,ss.jsxs=d,ss}var Hm;function Y0(){return Hm||(Hm=1,Pc.exports=K0()),Pc.exports}var S=Y0(),x=Cd();const Sn=Fg(x),Zc=V0({__proto__:null,default:Sn},[x]);var Ql={},Ic={exports:{}},cn={},Oc={exports:{}},$c={};/** | |
| * @license React | |
| * scheduler.production.min.js | |
| * | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */var Vm;function q0(){return Vm||(Vm=1,(function(t){function r(X,K){var ee=X.length;X.push(K);e:for(;0<ee;){var A=ee-1>>>1,Y=X[A];if(0<a(Y,K))X[A]=K,X[ee]=Y,ee=A;else break e}}function o(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var K=X[0],ee=X.pop();if(ee!==K){X[0]=ee;e:for(var A=0,Y=X.length,le=Y>>>1;A<le;){var ie=2*(A+1)-1,ae=X[ie],de=ie+1,xe=X[de];if(0>a(ae,ee))de<Y&&0>a(xe,ae)?(X[A]=xe,X[de]=ee,A=de):(X[A]=ae,X[ie]=ee,A=ie);else if(de<Y&&0>a(xe,ee))X[A]=xe,X[de]=ee,A=de;else break e}}return K}function a(X,K){var ee=X.sortIndex-K.sortIndex;return ee!==0?ee:X.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var d=Date,p=d.now();t.unstable_now=function(){return d.now()-p}}var m=[],h=[],v=1,w=null,C=3,T=!1,k=!1,b=!1,E=typeof setTimeout=="function"?setTimeout:null,$=typeof clearTimeout=="function"?clearTimeout:null,j=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function P(X){for(var K=o(h);K!==null;){if(K.callback===null)s(h);else if(K.startTime<=X)s(h),K.sortIndex=K.expirationTime,r(m,K);else break;K=o(h)}}function R(X){if(b=!1,P(X),!k)if(o(m)!==null)k=!0,U(M);else{var K=o(h);K!==null&&J(R,K.startTime-X)}}function M(X,K){k=!1,b&&(b=!1,$(D),D=-1),T=!0;var ee=C;try{for(P(K),w=o(m);w!==null&&(!(w.expirationTime>K)||X&&!N());){var A=w.callback;if(typeof A=="function"){w.callback=null,C=w.priorityLevel;var Y=A(w.expirationTime<=K);K=t.unstable_now(),typeof Y=="function"?w.callback=Y:w===o(m)&&s(m),P(K)}else s(m);w=o(m)}if(w!==null)var le=!0;else{var ie=o(h);ie!==null&&J(R,ie.startTime-K),le=!1}return le}finally{w=null,C=ee,T=!1}}var O=!1,F=null,D=-1,B=5,g=-1;function N(){return!(t.unstable_now()-g<B)}function V(){if(F!==null){var X=t.unstable_now();g=X;var K=!0;try{K=F(!0,X)}finally{K?G():(O=!1,F=null)}}else O=!1}var G;if(typeof j=="function")G=function(){j(V)};else if(typeof MessageChannel<"u"){var te=new MessageChannel,Q=te.port2;te.port1.onmessage=V,G=function(){Q.postMessage(null)}}else G=function(){E(V,0)};function U(X){F=X,O||(O=!0,G())}function J(X,K){D=E(function(){X(t.unstable_now())},K)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(X){X.callback=null},t.unstable_continueExecution=function(){k||T||(k=!0,U(M))},t.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):B=0<X?Math.floor(1e3/X):5},t.unstable_getCurrentPriorityLevel=function(){return C},t.unstable_getFirstCallbackNode=function(){return o(m)},t.unstable_next=function(X){switch(C){case 1:case 2:case 3:var K=3;break;default:K=C}var ee=C;C=K;try{return X()}finally{C=ee}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(X,K){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ee=C;C=X;try{return K()}finally{C=ee}},t.unstable_scheduleCallback=function(X,K,ee){var A=t.unstable_now();switch(typeof ee=="object"&&ee!==null?(ee=ee.delay,ee=typeof ee=="number"&&0<ee?A+ee:A):ee=A,X){case 1:var Y=-1;break;case 2:Y=250;break;case 5:Y=1073741823;break;case 4:Y=1e4;break;default:Y=5e3}return Y=ee+Y,X={id:v++,callback:K,priorityLevel:X,startTime:ee,expirationTime:Y,sortIndex:-1},ee>A?(X.sortIndex=ee,r(h,X),o(m)===null&&X===o(h)&&(b?($(D),D=-1):b=!0,J(R,ee-A))):(X.sortIndex=Y,r(m,X),k||T||(k=!0,U(M))),X},t.unstable_shouldYield=N,t.unstable_wrapCallback=function(X){var K=C;return function(){var ee=C;C=K;try{return X.apply(this,arguments)}finally{C=ee}}}})($c)),$c}var Gm;function Q0(){return Gm||(Gm=1,Oc.exports=q0()),Oc.exports}/** | |
| * @license React | |
| * react-dom.production.min.js | |
| * | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */var Km;function X0(){if(Km)return cn;Km=1;var t=Cd(),r=Q0();function o(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=1;i<arguments.length;i++)n+="&args[]="+encodeURIComponent(arguments[i]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,a={};function u(e,n){d(e,n),d(e+"Capture",n)}function d(e,n){for(a[e]=n,e=0;e<n.length;e++)s.add(n[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),m=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,v={},w={};function C(e){return m.call(w,e)?!0:m.call(v,e)?!1:h.test(e)?w[e]=!0:(v[e]=!0,!1)}function T(e,n,i,l){if(i!==null&&i.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return l?!1:i!==null?!i.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function k(e,n,i,l){if(n===null||typeof n>"u"||T(e,n,i,l))return!0;if(l)return!1;if(i!==null)switch(i.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function b(e,n,i,l,c,f,y){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=l,this.attributeNamespace=c,this.mustUseProperty=i,this.propertyName=e,this.type=n,this.sanitizeURL=f,this.removeEmptyString=y}var E={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){E[e]=new b(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];E[n]=new b(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){E[e]=new b(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){E[e]=new b(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){E[e]=new b(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){E[e]=new b(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){E[e]=new b(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){E[e]=new b(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){E[e]=new b(e,5,!1,e.toLowerCase(),null,!1,!1)});var $=/[\-:]([a-z])/g;function j(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var n=e.replace($,j);E[n]=new b(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace($,j);E[n]=new b(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace($,j);E[n]=new b(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){E[e]=new b(e,1,!1,e.toLowerCase(),null,!1,!1)}),E.xlinkHref=new b("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){E[e]=new b(e,1,!1,e.toLowerCase(),null,!0,!0)});function P(e,n,i,l){var c=E.hasOwnProperty(n)?E[n]:null;(c!==null?c.type!==0:l||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(k(n,i,c,l)&&(i=null),l||c===null?C(n)&&(i===null?e.removeAttribute(n):e.setAttribute(n,""+i)):c.mustUseProperty?e[c.propertyName]=i===null?c.type===3?!1:"":i:(n=c.attributeName,l=c.attributeNamespace,i===null?e.removeAttribute(n):(c=c.type,i=c===3||c===4&&i===!0?"":""+i,l?e.setAttributeNS(l,n,i):e.setAttribute(n,i))))}var R=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,M=Symbol.for("react.element"),O=Symbol.for("react.portal"),F=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),B=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),N=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),G=Symbol.for("react.suspense"),te=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),U=Symbol.for("react.lazy"),J=Symbol.for("react.offscreen"),X=Symbol.iterator;function K(e){return e===null||typeof e!="object"?null:(e=X&&e[X]||e["@@iterator"],typeof e=="function"?e:null)}var ee=Object.assign,A;function Y(e){if(A===void 0)try{throw Error()}catch(i){var n=i.stack.trim().match(/\n( *(at )?)/);A=n&&n[1]||""}return` | |
| `+A+e}var le=!1;function ie(e,n){if(!e||le)return"";le=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(q){var l=q}Reflect.construct(e,[],n)}else{try{n.call()}catch(q){l=q}e.call(n.prototype)}else{try{throw Error()}catch(q){l=q}e()}}catch(q){if(q&&l&&typeof q.stack=="string"){for(var c=q.stack.split(` | |
| `),f=l.stack.split(` | |
| `),y=c.length-1,I=f.length-1;1<=y&&0<=I&&c[y]!==f[I];)I--;for(;1<=y&&0<=I;y--,I--)if(c[y]!==f[I]){if(y!==1||I!==1)do if(y--,I--,0>I||c[y]!==f[I]){var L=` | |
| `+c[y].replace(" at new "," at ");return e.displayName&&L.includes("<anonymous>")&&(L=L.replace("<anonymous>",e.displayName)),L}while(1<=y&&0<=I);break}}}finally{le=!1,Error.prepareStackTrace=i}return(e=e?e.displayName||e.name:"")?Y(e):""}function ae(e){switch(e.tag){case 5:return Y(e.type);case 16:return Y("Lazy");case 13:return Y("Suspense");case 19:return Y("SuspenseList");case 0:case 2:case 15:return e=ie(e.type,!1),e;case 11:return e=ie(e.type.render,!1),e;case 1:return e=ie(e.type,!0),e;default:return""}}function de(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case F:return"Fragment";case O:return"Portal";case B:return"Profiler";case D:return"StrictMode";case G:return"Suspense";case te:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case N:return(e.displayName||"Context")+".Consumer";case g:return(e._context.displayName||"Context")+".Provider";case V:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Q:return n=e.displayName||null,n!==null?n:de(e.type)||"Memo";case U:n=e._payload,e=e._init;try{return de(e(n))}catch{}}return null}function xe(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return de(n);case 8:return n===D?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function me(e){var n=ye(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,f=i.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return c.call(this)},set:function(y){l=""+y,f.call(this,y)}}),Object.defineProperty(e,n,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(y){l=""+y},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function ke(e){e._valueTracker||(e._valueTracker=me(e))}function be(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var i=n.getValue(),l="";return e&&(l=ye(e)?e.checked?"true":"false":e.value),e=l,e!==i?(n.setValue(e),!0):!1}function Le(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Ee(e,n){var i=n.checked;return ee({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:i??e._wrapperState.initialChecked})}function Be(e,n){var i=n.defaultValue==null?"":n.defaultValue,l=n.checked!=null?n.checked:n.defaultChecked;i=ge(n.value!=null?n.value:i),e._wrapperState={initialChecked:l,initialValue:i,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function et(e,n){n=n.checked,n!=null&&P(e,"checked",n,!1)}function Ve(e,n){et(e,n);var i=ge(n.value),l=n.type;if(i!=null)l==="number"?(i===0&&e.value===""||e.value!=i)&&(e.value=""+i):e.value!==""+i&&(e.value=""+i);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?it(e,n.type,i):n.hasOwnProperty("defaultValue")&&it(e,n.type,ge(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Ie(e,n,i){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var l=n.type;if(!(l!=="submit"&&l!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,i||n===e.value||(e.value=n),e.defaultValue=n}i=e.name,i!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,i!==""&&(e.name=i)}function it(e,n,i){(n!=="number"||Le(e.ownerDocument)!==e)&&(i==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+i&&(e.defaultValue=""+i))}var ze=Array.isArray;function _e(e,n,i,l){if(e=e.options,n){n={};for(var c=0;c<i.length;c++)n["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=n.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&l&&(e[i].defaultSelected=!0)}else{for(i=""+ge(i),n=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,l&&(e[c].defaultSelected=!0);return}n!==null||e[c].disabled||(n=e[c])}n!==null&&(n.selected=!0)}}function pe(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(o(91));return ee({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wt(e,n){var i=n.value;if(i==null){if(i=n.children,n=n.defaultValue,i!=null){if(n!=null)throw Error(o(92));if(ze(i)){if(1<i.length)throw Error(o(93));i=i[0]}n=i}n==null&&(n=""),i=n}e._wrapperState={initialValue:ge(i)}}function Qe(e,n){var i=ge(n.value),l=ge(n.defaultValue);i!=null&&(i=""+i,i!==e.value&&(e.value=i),n.defaultValue==null&&e.defaultValue!==i&&(e.defaultValue=i)),l!=null&&(e.defaultValue=""+l)}function zt(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function jt(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Et(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?jt(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Ue,Ke=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,i,l,c){MSApp.execUnsafeLocalFunction(function(){return e(n,i,l,c)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Ue=Ue||document.createElement("div"),Ue.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Ue.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ae(e,n){if(n){var i=e.firstChild;if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=n;return}}e.textContent=n}var Pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Ye=["Webkit","ms","Moz","O"];Object.keys(Pe).forEach(function(e){Ye.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Pe[n]=Pe[e]})});function He(e,n,i){return n==null||typeof n=="boolean"||n===""?"":i||typeof n!="number"||n===0||Pe.hasOwnProperty(e)&&Pe[e]?(""+n).trim():n+"px"}function bt(e,n){e=e.style;for(var i in n)if(n.hasOwnProperty(i)){var l=i.indexOf("--")===0,c=He(i,n[i],l);i==="float"&&(i="cssFloat"),l?e.setProperty(i,c):e[i]=c}}var we=ee({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function je(e,n){if(n){if(we[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(o(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(o(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(o(61))}if(n.style!=null&&typeof n.style!="object")throw Error(o(62))}}function dt(e,n){if(e.indexOf("-")===-1)return typeof n.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Rt=null;function st(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var ro=null,_n=null,Dn=null;function Oo(e){if(e=Hi(e)){if(typeof ro!="function")throw Error(o(280));var n=e.stateNode;n&&(n=dl(n),ro(e.stateNode,e.type,n))}}function $o(e){_n?Dn?Dn.push(e):Dn=[e]:_n=e}function oo(){if(_n){var e=_n,n=Dn;if(Dn=_n=null,Oo(e),n)for(e=0;e<n.length;e++)Oo(n[e])}}function ur(e,n){return e(n)}function Oe(){}var Vt=!1;function io(e,n,i){if(Vt)return e(n,i);Vt=!0;try{return ur(e,n,i)}finally{Vt=!1,(_n!==null||Dn!==null)&&(Oe(),oo())}}function cr(e,n){var i=e.stateNode;if(i===null)return null;var l=dl(i);if(l===null)return null;i=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(o(231,n,typeof i));return i}var Us=!1;if(p)try{var so={};Object.defineProperty(so,"passive",{get:function(){Us=!0}}),window.addEventListener("test",so,so),window.removeEventListener("test",so,so)}catch{Us=!1}function Ka(e,n,i,l,c,f,y,I,L){var q=Array.prototype.slice.call(arguments,3);try{n.apply(i,q)}catch(re){this.onError(re)}}var Or=!1,lo=null,ao=!1,_=null,ce={onError:function(e){Or=!0,lo=e}};function De(e,n,i,l,c,f,y,I,L){Or=!1,lo=null,Ka.apply(ce,arguments)}function Ge(e,n,i,l,c,f,y,I,L){if(De.apply(this,arguments),Or){if(Or){var q=lo;Or=!1,lo=null}else throw Error(o(198));ao||(ao=!0,_=q)}}function Fe(e){var n=e,i=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(i=n.return),e=n.return;while(e)}return n.tag===3?i:null}function tt(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function dr(e){if(Fe(e)!==e)throw Error(o(188))}function hf(e){var n=e.alternate;if(!n){if(n=Fe(e),n===null)throw Error(o(188));return n!==e?null:e}for(var i=e,l=n;;){var c=i.return;if(c===null)break;var f=c.alternate;if(f===null){if(l=c.return,l!==null){i=l;continue}break}if(c.child===f.child){for(f=c.child;f;){if(f===i)return dr(c),e;if(f===l)return dr(c),n;f=f.sibling}throw Error(o(188))}if(i.return!==l.return)i=c,l=f;else{for(var y=!1,I=c.child;I;){if(I===i){y=!0,i=c,l=f;break}if(I===l){y=!0,l=c,i=f;break}I=I.sibling}if(!y){for(I=f.child;I;){if(I===i){y=!0,i=f,l=c;break}if(I===l){y=!0,l=f,i=c;break}I=I.sibling}if(!y)throw Error(o(189))}}if(i.alternate!==l)throw Error(o(190))}if(i.tag!==3)throw Error(o(188));return i.stateNode.current===i?e:n}function ki(e){return e=hf(e),e!==null?fr(e):null}function fr(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=fr(e);if(n!==null)return n;e=e.sibling}return null}var pr=r.unstable_scheduleCallback,Ei=r.unstable_cancelCallback,Hs=r.unstable_shouldYield,tv=r.unstable_requestPaint,Ot=r.unstable_now,nv=r.unstable_getCurrentPriorityLevel,Ya=r.unstable_ImmediatePriority,gf=r.unstable_UserBlockingPriority,Vs=r.unstable_NormalPriority,rv=r.unstable_LowPriority,yf=r.unstable_IdlePriority,Gs=null,Yn=null;function ov(e){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Gs,e,void 0,(e.current.flags&128)===128)}catch{}}var Bn=Math.clz32?Math.clz32:lv,iv=Math.log,sv=Math.LN2;function lv(e){return e>>>=0,e===0?32:31-(iv(e)/sv|0)|0}var Ks=64,Ys=4194304;function Ri(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qs(e,n){var i=e.pendingLanes;if(i===0)return 0;var l=0,c=e.suspendedLanes,f=e.pingedLanes,y=i&268435455;if(y!==0){var I=y&~c;I!==0?l=Ri(I):(f&=y,f!==0&&(l=Ri(f)))}else y=i&~c,y!==0?l=Ri(y):f!==0&&(l=Ri(f));if(l===0)return 0;if(n!==0&&n!==l&&(n&c)===0&&(c=l&-l,f=n&-n,c>=f||c===16&&(f&4194240)!==0))return n;if((l&4)!==0&&(l|=i&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=l;0<n;)i=31-Bn(n),c=1<<i,l|=e[i],n&=~c;return l}function av(e,n){switch(e){case 1:case 2:case 4:return n+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return n+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function uv(e,n){for(var i=e.suspendedLanes,l=e.pingedLanes,c=e.expirationTimes,f=e.pendingLanes;0<f;){var y=31-Bn(f),I=1<<y,L=c[y];L===-1?((I&i)===0||(I&l)!==0)&&(c[y]=av(I,n)):L<=n&&(e.expiredLanes|=I),f&=~I}}function qa(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function vf(){var e=Ks;return Ks<<=1,(Ks&4194240)===0&&(Ks=64),e}function Qa(e){for(var n=[],i=0;31>i;i++)n.push(e);return n}function Ti(e,n,i){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-Bn(n),e[n]=i}function cv(e,n){var i=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<i;){var c=31-Bn(i),f=1<<c;n[c]=0,l[c]=-1,e[c]=-1,i&=~f}}function Xa(e,n){var i=e.entangledLanes|=n;for(e=e.entanglements;i;){var l=31-Bn(i),c=1<<l;c&n|e[l]&n&&(e[l]|=n),i&=~c}}var ot=0;function xf(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var Sf,Za,wf,bf,Cf,Ja=!1,Qs=[],$r=null,Ar=null,jr=null,Pi=new Map,Mi=new Map,Lr=[],dv="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function kf(e,n){switch(e){case"focusin":case"focusout":$r=null;break;case"dragenter":case"dragleave":Ar=null;break;case"mouseover":case"mouseout":jr=null;break;case"pointerover":case"pointerout":Pi.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mi.delete(n.pointerId)}}function Ii(e,n,i,l,c,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:i,eventSystemFlags:l,nativeEvent:f,targetContainers:[c]},n!==null&&(n=Hi(n),n!==null&&Za(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,c!==null&&n.indexOf(c)===-1&&n.push(c),e)}function fv(e,n,i,l,c){switch(n){case"focusin":return $r=Ii($r,e,n,i,l,c),!0;case"dragenter":return Ar=Ii(Ar,e,n,i,l,c),!0;case"mouseover":return jr=Ii(jr,e,n,i,l,c),!0;case"pointerover":var f=c.pointerId;return Pi.set(f,Ii(Pi.get(f)||null,e,n,i,l,c)),!0;case"gotpointercapture":return f=c.pointerId,Mi.set(f,Ii(Mi.get(f)||null,e,n,i,l,c)),!0}return!1}function Ef(e){var n=uo(e.target);if(n!==null){var i=Fe(n);if(i!==null){if(n=i.tag,n===13){if(n=tt(i),n!==null){e.blockedOn=n,Cf(e.priority,function(){wf(i)});return}}else if(n===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xs(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var i=tu(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(i===null){i=e.nativeEvent;var l=new i.constructor(i.type,i);Rt=l,i.target.dispatchEvent(l),Rt=null}else return n=Hi(i),n!==null&&Za(n),e.blockedOn=i,!1;n.shift()}return!0}function Rf(e,n,i){Xs(e)&&i.delete(n)}function pv(){Ja=!1,$r!==null&&Xs($r)&&($r=null),Ar!==null&&Xs(Ar)&&(Ar=null),jr!==null&&Xs(jr)&&(jr=null),Pi.forEach(Rf),Mi.forEach(Rf)}function Oi(e,n){e.blockedOn===n&&(e.blockedOn=null,Ja||(Ja=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,pv)))}function $i(e){function n(c){return Oi(c,e)}if(0<Qs.length){Oi(Qs[0],e);for(var i=1;i<Qs.length;i++){var l=Qs[i];l.blockedOn===e&&(l.blockedOn=null)}}for($r!==null&&Oi($r,e),Ar!==null&&Oi(Ar,e),jr!==null&&Oi(jr,e),Pi.forEach(n),Mi.forEach(n),i=0;i<Lr.length;i++)l=Lr[i],l.blockedOn===e&&(l.blockedOn=null);for(;0<Lr.length&&(i=Lr[0],i.blockedOn===null);)Ef(i),i.blockedOn===null&&Lr.shift()}var Ao=R.ReactCurrentBatchConfig,Zs=!0;function mv(e,n,i,l){var c=ot,f=Ao.transition;Ao.transition=null;try{ot=1,eu(e,n,i,l)}finally{ot=c,Ao.transition=f}}function hv(e,n,i,l){var c=ot,f=Ao.transition;Ao.transition=null;try{ot=4,eu(e,n,i,l)}finally{ot=c,Ao.transition=f}}function eu(e,n,i,l){if(Zs){var c=tu(e,n,i,l);if(c===null)vu(e,n,l,Js,i),kf(e,l);else if(fv(c,e,n,i,l))l.stopPropagation();else if(kf(e,l),n&4&&-1<dv.indexOf(e)){for(;c!==null;){var f=Hi(c);if(f!==null&&Sf(f),f=tu(e,n,i,l),f===null&&vu(e,n,l,Js,i),f===c)break;c=f}c!==null&&l.stopPropagation()}else vu(e,n,l,null,i)}}var Js=null;function tu(e,n,i,l){if(Js=null,e=st(l),e=uo(e),e!==null)if(n=Fe(e),n===null)e=null;else if(i=n.tag,i===13){if(e=tt(n),e!==null)return e;e=null}else if(i===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Js=e,null}function Tf(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(nv()){case Ya:return 1;case gf:return 4;case Vs:case rv:return 16;case yf:return 536870912;default:return 16}default:return 16}}var Fr=null,nu=null,el=null;function Pf(){if(el)return el;var e,n=nu,i=n.length,l,c="value"in Fr?Fr.value:Fr.textContent,f=c.length;for(e=0;e<i&&n[e]===c[e];e++);var y=i-e;for(l=1;l<=y&&n[i-l]===c[f-l];l++);return el=c.slice(e,1<l?1-l:void 0)}function tl(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function nl(){return!0}function Mf(){return!1}function mn(e){function n(i,l,c,f,y){this._reactName=i,this._targetInst=c,this.type=l,this.nativeEvent=f,this.target=y,this.currentTarget=null;for(var I in e)e.hasOwnProperty(I)&&(i=e[I],this[I]=i?i(f):f[I]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?nl:Mf,this.isPropagationStopped=Mf,this}return ee(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=nl)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=nl)},persist:function(){},isPersistent:nl}),n}var jo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ru=mn(jo),Ai=ee({},jo,{view:0,detail:0}),gv=mn(Ai),ou,iu,ji,rl=ee({},Ai,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:lu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ji&&(ji&&e.type==="mousemove"?(ou=e.screenX-ji.screenX,iu=e.screenY-ji.screenY):iu=ou=0,ji=e),ou)},movementY:function(e){return"movementY"in e?e.movementY:iu}}),If=mn(rl),yv=ee({},rl,{dataTransfer:0}),vv=mn(yv),xv=ee({},Ai,{relatedTarget:0}),su=mn(xv),Sv=ee({},jo,{animationName:0,elapsedTime:0,pseudoElement:0}),wv=mn(Sv),bv=ee({},jo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cv=mn(bv),kv=ee({},jo,{data:0}),Of=mn(kv),Ev={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Rv={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Tv={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pv(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Tv[e])?!!n[e]:!1}function lu(){return Pv}var Mv=ee({},Ai,{key:function(e){if(e.key){var n=Ev[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=tl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Rv[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:lu,charCode:function(e){return e.type==="keypress"?tl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?tl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Iv=mn(Mv),Ov=ee({},rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$f=mn(Ov),$v=ee({},Ai,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:lu}),Av=mn($v),jv=ee({},jo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lv=mn(jv),Fv=ee({},rl,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Nv=mn(Fv),zv=[9,13,27,32],au=p&&"CompositionEvent"in window,Li=null;p&&"documentMode"in document&&(Li=document.documentMode);var _v=p&&"TextEvent"in window&&!Li,Af=p&&(!au||Li&&8<Li&&11>=Li),jf=" ",Lf=!1;function Ff(e,n){switch(e){case"keyup":return zv.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Nf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Lo=!1;function Dv(e,n){switch(e){case"compositionend":return Nf(n);case"keypress":return n.which!==32?null:(Lf=!0,jf);case"textInput":return e=n.data,e===jf&&Lf?null:e;default:return null}}function Bv(e,n){if(Lo)return e==="compositionend"||!au&&Ff(e,n)?(e=Pf(),el=nu=Fr=null,Lo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return Af&&n.locale!=="ko"?null:n.data;default:return null}}var Wv={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zf(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!Wv[e.type]:n==="textarea"}function _f(e,n,i,l){$o(l),n=al(n,"onChange"),0<n.length&&(i=new ru("onChange","change",null,i,l),e.push({event:i,listeners:n}))}var Fi=null,Ni=null;function Uv(e){rp(e,0)}function ol(e){var n=Do(e);if(be(n))return e}function Hv(e,n){if(e==="change")return n}var Df=!1;if(p){var uu;if(p){var cu="oninput"in document;if(!cu){var Bf=document.createElement("div");Bf.setAttribute("oninput","return;"),cu=typeof Bf.oninput=="function"}uu=cu}else uu=!1;Df=uu&&(!document.documentMode||9<document.documentMode)}function Wf(){Fi&&(Fi.detachEvent("onpropertychange",Uf),Ni=Fi=null)}function Uf(e){if(e.propertyName==="value"&&ol(Ni)){var n=[];_f(n,Ni,e,st(e)),io(Uv,n)}}function Vv(e,n,i){e==="focusin"?(Wf(),Fi=n,Ni=i,Fi.attachEvent("onpropertychange",Uf)):e==="focusout"&&Wf()}function Gv(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ol(Ni)}function Kv(e,n){if(e==="click")return ol(n)}function Yv(e,n){if(e==="input"||e==="change")return ol(n)}function qv(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Wn=typeof Object.is=="function"?Object.is:qv;function zi(e,n){if(Wn(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var i=Object.keys(e),l=Object.keys(n);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var c=i[l];if(!m.call(n,c)||!Wn(e[c],n[c]))return!1}return!0}function Hf(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Vf(e,n){var i=Hf(e);e=0;for(var l;i;){if(i.nodeType===3){if(l=e+i.textContent.length,e<=n&&l>=n)return{node:i,offset:n-e};e=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Hf(i)}}function Gf(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Gf(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Kf(){for(var e=window,n=Le();n instanceof e.HTMLIFrameElement;){try{var i=typeof n.contentWindow.location.href=="string"}catch{i=!1}if(i)e=n.contentWindow;else break;n=Le(e.document)}return n}function du(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function Qv(e){var n=Kf(),i=e.focusedElem,l=e.selectionRange;if(n!==i&&i&&i.ownerDocument&&Gf(i.ownerDocument.documentElement,i)){if(l!==null&&du(i)){if(n=l.start,e=l.end,e===void 0&&(e=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(e,i.value.length);else if(e=(n=i.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var c=i.textContent.length,f=Math.min(l.start,c);l=l.end===void 0?f:Math.min(l.end,c),!e.extend&&f>l&&(c=l,l=f,f=c),c=Vf(i,f);var y=Vf(i,l);c&&y&&(e.rangeCount!==1||e.anchorNode!==c.node||e.anchorOffset!==c.offset||e.focusNode!==y.node||e.focusOffset!==y.offset)&&(n=n.createRange(),n.setStart(c.node,c.offset),e.removeAllRanges(),f>l?(e.addRange(n),e.extend(y.node,y.offset)):(n.setEnd(y.node,y.offset),e.addRange(n)))}}for(n=[],e=i;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<n.length;i++)e=n[i],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Xv=p&&"documentMode"in document&&11>=document.documentMode,Fo=null,fu=null,_i=null,pu=!1;function Yf(e,n,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;pu||Fo==null||Fo!==Le(l)||(l=Fo,"selectionStart"in l&&du(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),_i&&zi(_i,l)||(_i=l,l=al(fu,"onSelect"),0<l.length&&(n=new ru("onSelect","select",null,n,i),e.push({event:n,listeners:l}),n.target=Fo)))}function il(e,n){var i={};return i[e.toLowerCase()]=n.toLowerCase(),i["Webkit"+e]="webkit"+n,i["Moz"+e]="moz"+n,i}var No={animationend:il("Animation","AnimationEnd"),animationiteration:il("Animation","AnimationIteration"),animationstart:il("Animation","AnimationStart"),transitionend:il("Transition","TransitionEnd")},mu={},qf={};p&&(qf=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);function sl(e){if(mu[e])return mu[e];if(!No[e])return e;var n=No[e],i;for(i in n)if(n.hasOwnProperty(i)&&i in qf)return mu[e]=n[i];return e}var Qf=sl("animationend"),Xf=sl("animationiteration"),Zf=sl("animationstart"),Jf=sl("transitionend"),ep=new Map,tp="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Nr(e,n){ep.set(e,n),u(n,[e])}for(var hu=0;hu<tp.length;hu++){var gu=tp[hu],Zv=gu.toLowerCase(),Jv=gu[0].toUpperCase()+gu.slice(1);Nr(Zv,"on"+Jv)}Nr(Qf,"onAnimationEnd"),Nr(Xf,"onAnimationIteration"),Nr(Zf,"onAnimationStart"),Nr("dblclick","onDoubleClick"),Nr("focusin","onFocus"),Nr("focusout","onBlur"),Nr(Jf,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),e0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Di));function np(e,n,i){var l=e.type||"unknown-event";e.currentTarget=i,Ge(l,n,void 0,e),e.currentTarget=null}function rp(e,n){n=(n&4)!==0;for(var i=0;i<e.length;i++){var l=e[i],c=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var y=l.length-1;0<=y;y--){var I=l[y],L=I.instance,q=I.currentTarget;if(I=I.listener,L!==f&&c.isPropagationStopped())break e;np(c,I,q),f=L}else for(y=0;y<l.length;y++){if(I=l[y],L=I.instance,q=I.currentTarget,I=I.listener,L!==f&&c.isPropagationStopped())break e;np(c,I,q),f=L}}}if(ao)throw e=_,ao=!1,_=null,e}function ht(e,n){var i=n[ku];i===void 0&&(i=n[ku]=new Set);var l=e+"__bubble";i.has(l)||(op(n,e,2,!1),i.add(l))}function yu(e,n,i){var l=0;n&&(l|=4),op(i,e,l,n)}var ll="_reactListening"+Math.random().toString(36).slice(2);function Bi(e){if(!e[ll]){e[ll]=!0,s.forEach(function(i){i!=="selectionchange"&&(e0.has(i)||yu(i,!1,e),yu(i,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[ll]||(n[ll]=!0,yu("selectionchange",!1,n))}}function op(e,n,i,l){switch(Tf(n)){case 1:var c=mv;break;case 4:c=hv;break;default:c=eu}i=c.bind(null,n,i,e),c=void 0,!Us||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(c=!0),l?c!==void 0?e.addEventListener(n,i,{capture:!0,passive:c}):e.addEventListener(n,i,!0):c!==void 0?e.addEventListener(n,i,{passive:c}):e.addEventListener(n,i,!1)}function vu(e,n,i,l,c){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var y=l.tag;if(y===3||y===4){var I=l.stateNode.containerInfo;if(I===c||I.nodeType===8&&I.parentNode===c)break;if(y===4)for(y=l.return;y!==null;){var L=y.tag;if((L===3||L===4)&&(L=y.stateNode.containerInfo,L===c||L.nodeType===8&&L.parentNode===c))return;y=y.return}for(;I!==null;){if(y=uo(I),y===null)return;if(L=y.tag,L===5||L===6){l=f=y;continue e}I=I.parentNode}}l=l.return}io(function(){var q=f,re=st(i),oe=[];e:{var ne=ep.get(e);if(ne!==void 0){var ue=ru,he=e;switch(e){case"keypress":if(tl(i)===0)break e;case"keydown":case"keyup":ue=Iv;break;case"focusin":he="focus",ue=su;break;case"focusout":he="blur",ue=su;break;case"beforeblur":case"afterblur":ue=su;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=If;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=vv;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=Av;break;case Qf:case Xf:case Zf:ue=wv;break;case Jf:ue=Lv;break;case"scroll":ue=gv;break;case"wheel":ue=Nv;break;case"copy":case"cut":case"paste":ue=Cv;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=$f}var ve=(n&4)!==0,$t=!ve&&e==="scroll",W=ve?ne!==null?ne+"Capture":null:ne;ve=[];for(var z=q,H;z!==null;){H=z;var se=H.stateNode;if(H.tag===5&&se!==null&&(H=se,W!==null&&(se=cr(z,W),se!=null&&ve.push(Wi(z,se,H)))),$t)break;z=z.return}0<ve.length&&(ne=new ue(ne,he,null,i,re),oe.push({event:ne,listeners:ve}))}}if((n&7)===0){e:{if(ne=e==="mouseover"||e==="pointerover",ue=e==="mouseout"||e==="pointerout",ne&&i!==Rt&&(he=i.relatedTarget||i.fromElement)&&(uo(he)||he[mr]))break e;if((ue||ne)&&(ne=re.window===re?re:(ne=re.ownerDocument)?ne.defaultView||ne.parentWindow:window,ue?(he=i.relatedTarget||i.toElement,ue=q,he=he?uo(he):null,he!==null&&($t=Fe(he),he!==$t||he.tag!==5&&he.tag!==6)&&(he=null)):(ue=null,he=q),ue!==he)){if(ve=If,se="onMouseLeave",W="onMouseEnter",z="mouse",(e==="pointerout"||e==="pointerover")&&(ve=$f,se="onPointerLeave",W="onPointerEnter",z="pointer"),$t=ue==null?ne:Do(ue),H=he==null?ne:Do(he),ne=new ve(se,z+"leave",ue,i,re),ne.target=$t,ne.relatedTarget=H,se=null,uo(re)===q&&(ve=new ve(W,z+"enter",he,i,re),ve.target=H,ve.relatedTarget=$t,se=ve),$t=se,ue&&he)t:{for(ve=ue,W=he,z=0,H=ve;H;H=zo(H))z++;for(H=0,se=W;se;se=zo(se))H++;for(;0<z-H;)ve=zo(ve),z--;for(;0<H-z;)W=zo(W),H--;for(;z--;){if(ve===W||W!==null&&ve===W.alternate)break t;ve=zo(ve),W=zo(W)}ve=null}else ve=null;ue!==null&&ip(oe,ne,ue,ve,!1),he!==null&&$t!==null&&ip(oe,$t,he,ve,!0)}}e:{if(ne=q?Do(q):window,ue=ne.nodeName&&ne.nodeName.toLowerCase(),ue==="select"||ue==="input"&&ne.type==="file")var Se=Hv;else if(zf(ne))if(Df)Se=Yv;else{Se=Gv;var Re=Vv}else(ue=ne.nodeName)&&ue.toLowerCase()==="input"&&(ne.type==="checkbox"||ne.type==="radio")&&(Se=Kv);if(Se&&(Se=Se(e,q))){_f(oe,Se,i,re);break e}Re&&Re(e,ne,q),e==="focusout"&&(Re=ne._wrapperState)&&Re.controlled&&ne.type==="number"&&it(ne,"number",ne.value)}switch(Re=q?Do(q):window,e){case"focusin":(zf(Re)||Re.contentEditable==="true")&&(Fo=Re,fu=q,_i=null);break;case"focusout":_i=fu=Fo=null;break;case"mousedown":pu=!0;break;case"contextmenu":case"mouseup":case"dragend":pu=!1,Yf(oe,i,re);break;case"selectionchange":if(Xv)break;case"keydown":case"keyup":Yf(oe,i,re)}var Te;if(au)e:{switch(e){case"compositionstart":var Me="onCompositionStart";break e;case"compositionend":Me="onCompositionEnd";break e;case"compositionupdate":Me="onCompositionUpdate";break e}Me=void 0}else Lo?Ff(e,i)&&(Me="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Me="onCompositionStart");Me&&(Af&&i.locale!=="ko"&&(Lo||Me!=="onCompositionStart"?Me==="onCompositionEnd"&&Lo&&(Te=Pf()):(Fr=re,nu="value"in Fr?Fr.value:Fr.textContent,Lo=!0)),Re=al(q,Me),0<Re.length&&(Me=new Of(Me,e,null,i,re),oe.push({event:Me,listeners:Re}),Te?Me.data=Te:(Te=Nf(i),Te!==null&&(Me.data=Te)))),(Te=_v?Dv(e,i):Bv(e,i))&&(q=al(q,"onBeforeInput"),0<q.length&&(re=new Of("onBeforeInput","beforeinput",null,i,re),oe.push({event:re,listeners:q}),re.data=Te))}rp(oe,n)})}function Wi(e,n,i){return{instance:e,listener:n,currentTarget:i}}function al(e,n){for(var i=n+"Capture",l=[];e!==null;){var c=e,f=c.stateNode;c.tag===5&&f!==null&&(c=f,f=cr(e,i),f!=null&&l.unshift(Wi(e,f,c)),f=cr(e,n),f!=null&&l.push(Wi(e,f,c))),e=e.return}return l}function zo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function ip(e,n,i,l,c){for(var f=n._reactName,y=[];i!==null&&i!==l;){var I=i,L=I.alternate,q=I.stateNode;if(L!==null&&L===l)break;I.tag===5&&q!==null&&(I=q,c?(L=cr(i,f),L!=null&&y.unshift(Wi(i,L,I))):c||(L=cr(i,f),L!=null&&y.push(Wi(i,L,I)))),i=i.return}y.length!==0&&e.push({event:n,listeners:y})}var t0=/\r\n?/g,n0=/\u0000|\uFFFD/g;function sp(e){return(typeof e=="string"?e:""+e).replace(t0,` | |
| `).replace(n0,"")}function ul(e,n,i){if(n=sp(n),sp(e)!==n&&i)throw Error(o(425))}function cl(){}var xu=null,Su=null;function wu(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var bu=typeof setTimeout=="function"?setTimeout:void 0,r0=typeof clearTimeout=="function"?clearTimeout:void 0,lp=typeof Promise=="function"?Promise:void 0,o0=typeof queueMicrotask=="function"?queueMicrotask:typeof lp<"u"?function(e){return lp.resolve(null).then(e).catch(i0)}:bu;function i0(e){setTimeout(function(){throw e})}function Cu(e,n){var i=n,l=0;do{var c=i.nextSibling;if(e.removeChild(i),c&&c.nodeType===8)if(i=c.data,i==="/$"){if(l===0){e.removeChild(c),$i(n);return}l--}else i!=="$"&&i!=="$?"&&i!=="$!"||l++;i=c}while(i);$i(n)}function zr(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function ap(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(n===0)return e;n--}else i==="/$"&&n++}e=e.previousSibling}return null}var _o=Math.random().toString(36).slice(2),qn="__reactFiber$"+_o,Ui="__reactProps$"+_o,mr="__reactContainer$"+_o,ku="__reactEvents$"+_o,s0="__reactListeners$"+_o,l0="__reactHandles$"+_o;function uo(e){var n=e[qn];if(n)return n;for(var i=e.parentNode;i;){if(n=i[mr]||i[qn]){if(i=n.alternate,n.child!==null||i!==null&&i.child!==null)for(e=ap(e);e!==null;){if(i=e[qn])return i;e=ap(e)}return n}e=i,i=e.parentNode}return null}function Hi(e){return e=e[qn]||e[mr],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Do(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(o(33))}function dl(e){return e[Ui]||null}var Eu=[],Bo=-1;function _r(e){return{current:e}}function gt(e){0>Bo||(e.current=Eu[Bo],Eu[Bo]=null,Bo--)}function ft(e,n){Bo++,Eu[Bo]=e.current,e.current=n}var Dr={},qt=_r(Dr),on=_r(!1),co=Dr;function Wo(e,n){var i=e.type.contextTypes;if(!i)return Dr;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===n)return l.__reactInternalMemoizedMaskedChildContext;var c={},f;for(f in i)c[f]=n[f];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=c),c}function sn(e){return e=e.childContextTypes,e!=null}function fl(){gt(on),gt(qt)}function up(e,n,i){if(qt.current!==Dr)throw Error(o(168));ft(qt,n),ft(on,i)}function cp(e,n,i){var l=e.stateNode;if(n=n.childContextTypes,typeof l.getChildContext!="function")return i;l=l.getChildContext();for(var c in l)if(!(c in n))throw Error(o(108,xe(e)||"Unknown",c));return ee({},i,l)}function pl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Dr,co=qt.current,ft(qt,e),ft(on,on.current),!0}function dp(e,n,i){var l=e.stateNode;if(!l)throw Error(o(169));i?(e=cp(e,n,co),l.__reactInternalMemoizedMergedChildContext=e,gt(on),gt(qt),ft(qt,e)):gt(on),ft(on,i)}var hr=null,ml=!1,Ru=!1;function fp(e){hr===null?hr=[e]:hr.push(e)}function a0(e){ml=!0,fp(e)}function Br(){if(!Ru&&hr!==null){Ru=!0;var e=0,n=ot;try{var i=hr;for(ot=1;e<i.length;e++){var l=i[e];do l=l(!0);while(l!==null)}hr=null,ml=!1}catch(c){throw hr!==null&&(hr=hr.slice(e+1)),pr(Ya,Br),c}finally{ot=n,Ru=!1}}return null}var Uo=[],Ho=0,hl=null,gl=0,En=[],Rn=0,fo=null,gr=1,yr="";function po(e,n){Uo[Ho++]=gl,Uo[Ho++]=hl,hl=e,gl=n}function pp(e,n,i){En[Rn++]=gr,En[Rn++]=yr,En[Rn++]=fo,fo=e;var l=gr;e=yr;var c=32-Bn(l)-1;l&=~(1<<c),i+=1;var f=32-Bn(n)+c;if(30<f){var y=c-c%5;f=(l&(1<<y)-1).toString(32),l>>=y,c-=y,gr=1<<32-Bn(n)+c|i<<c|l,yr=f+e}else gr=1<<f|i<<c|l,yr=e}function Tu(e){e.return!==null&&(po(e,1),pp(e,1,0))}function Pu(e){for(;e===hl;)hl=Uo[--Ho],Uo[Ho]=null,gl=Uo[--Ho],Uo[Ho]=null;for(;e===fo;)fo=En[--Rn],En[Rn]=null,yr=En[--Rn],En[Rn]=null,gr=En[--Rn],En[Rn]=null}var hn=null,gn=null,xt=!1,Un=null;function mp(e,n){var i=In(5,null,null,0);i.elementType="DELETED",i.stateNode=n,i.return=e,n=e.deletions,n===null?(e.deletions=[i],e.flags|=16):n.push(i)}function hp(e,n){switch(e.tag){case 5:var i=e.type;return n=n.nodeType!==1||i.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,hn=e,gn=zr(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,hn=e,gn=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(i=fo!==null?{id:gr,overflow:yr}:null,e.memoizedState={dehydrated:n,treeContext:i,retryLane:1073741824},i=In(18,null,null,0),i.stateNode=n,i.return=e,e.child=i,hn=e,gn=null,!0):!1;default:return!1}}function Mu(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Iu(e){if(xt){var n=gn;if(n){var i=n;if(!hp(e,n)){if(Mu(e))throw Error(o(418));n=zr(i.nextSibling);var l=hn;n&&hp(e,n)?mp(l,i):(e.flags=e.flags&-4097|2,xt=!1,hn=e)}}else{if(Mu(e))throw Error(o(418));e.flags=e.flags&-4097|2,xt=!1,hn=e}}}function gp(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;hn=e}function yl(e){if(e!==hn)return!1;if(!xt)return gp(e),xt=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!wu(e.type,e.memoizedProps)),n&&(n=gn)){if(Mu(e))throw yp(),Error(o(418));for(;n;)mp(e,n),n=zr(n.nextSibling)}if(gp(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(o(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var i=e.data;if(i==="/$"){if(n===0){gn=zr(e.nextSibling);break e}n--}else i!=="$"&&i!=="$!"&&i!=="$?"||n++}e=e.nextSibling}gn=null}}else gn=hn?zr(e.stateNode.nextSibling):null;return!0}function yp(){for(var e=gn;e;)e=zr(e.nextSibling)}function Vo(){gn=hn=null,xt=!1}function Ou(e){Un===null?Un=[e]:Un.push(e)}var u0=R.ReactCurrentBatchConfig;function Vi(e,n,i){if(e=i.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(i._owner){if(i=i._owner,i){if(i.tag!==1)throw Error(o(309));var l=i.stateNode}if(!l)throw Error(o(147,e));var c=l,f=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===f?n.ref:(n=function(y){var I=c.refs;y===null?delete I[f]:I[f]=y},n._stringRef=f,n)}if(typeof e!="string")throw Error(o(284));if(!i._owner)throw Error(o(290,e))}return e}function vl(e,n){throw e=Object.prototype.toString.call(n),Error(o(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function vp(e){var n=e._init;return n(e._payload)}function xp(e){function n(W,z){if(e){var H=W.deletions;H===null?(W.deletions=[z],W.flags|=16):H.push(z)}}function i(W,z){if(!e)return null;for(;z!==null;)n(W,z),z=z.sibling;return null}function l(W,z){for(W=new Map;z!==null;)z.key!==null?W.set(z.key,z):W.set(z.index,z),z=z.sibling;return W}function c(W,z){return W=qr(W,z),W.index=0,W.sibling=null,W}function f(W,z,H){return W.index=H,e?(H=W.alternate,H!==null?(H=H.index,H<z?(W.flags|=2,z):H):(W.flags|=2,z)):(W.flags|=1048576,z)}function y(W){return e&&W.alternate===null&&(W.flags|=2),W}function I(W,z,H,se){return z===null||z.tag!==6?(z=bc(H,W.mode,se),z.return=W,z):(z=c(z,H),z.return=W,z)}function L(W,z,H,se){var Se=H.type;return Se===F?re(W,z,H.props.children,se,H.key):z!==null&&(z.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===U&&vp(Se)===z.type)?(se=c(z,H.props),se.ref=Vi(W,z,H),se.return=W,se):(se=Wl(H.type,H.key,H.props,null,W.mode,se),se.ref=Vi(W,z,H),se.return=W,se)}function q(W,z,H,se){return z===null||z.tag!==4||z.stateNode.containerInfo!==H.containerInfo||z.stateNode.implementation!==H.implementation?(z=Cc(H,W.mode,se),z.return=W,z):(z=c(z,H.children||[]),z.return=W,z)}function re(W,z,H,se,Se){return z===null||z.tag!==7?(z=wo(H,W.mode,se,Se),z.return=W,z):(z=c(z,H),z.return=W,z)}function oe(W,z,H){if(typeof z=="string"&&z!==""||typeof z=="number")return z=bc(""+z,W.mode,H),z.return=W,z;if(typeof z=="object"&&z!==null){switch(z.$$typeof){case M:return H=Wl(z.type,z.key,z.props,null,W.mode,H),H.ref=Vi(W,null,z),H.return=W,H;case O:return z=Cc(z,W.mode,H),z.return=W,z;case U:var se=z._init;return oe(W,se(z._payload),H)}if(ze(z)||K(z))return z=wo(z,W.mode,H,null),z.return=W,z;vl(W,z)}return null}function ne(W,z,H,se){var Se=z!==null?z.key:null;if(typeof H=="string"&&H!==""||typeof H=="number")return Se!==null?null:I(W,z,""+H,se);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case M:return H.key===Se?L(W,z,H,se):null;case O:return H.key===Se?q(W,z,H,se):null;case U:return Se=H._init,ne(W,z,Se(H._payload),se)}if(ze(H)||K(H))return Se!==null?null:re(W,z,H,se,null);vl(W,H)}return null}function ue(W,z,H,se,Se){if(typeof se=="string"&&se!==""||typeof se=="number")return W=W.get(H)||null,I(z,W,""+se,Se);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case M:return W=W.get(se.key===null?H:se.key)||null,L(z,W,se,Se);case O:return W=W.get(se.key===null?H:se.key)||null,q(z,W,se,Se);case U:var Re=se._init;return ue(W,z,H,Re(se._payload),Se)}if(ze(se)||K(se))return W=W.get(H)||null,re(z,W,se,Se,null);vl(z,se)}return null}function he(W,z,H,se){for(var Se=null,Re=null,Te=z,Me=z=0,Ut=null;Te!==null&&Me<H.length;Me++){Te.index>Me?(Ut=Te,Te=null):Ut=Te.sibling;var Xe=ne(W,Te,H[Me],se);if(Xe===null){Te===null&&(Te=Ut);break}e&&Te&&Xe.alternate===null&&n(W,Te),z=f(Xe,z,Me),Re===null?Se=Xe:Re.sibling=Xe,Re=Xe,Te=Ut}if(Me===H.length)return i(W,Te),xt&&po(W,Me),Se;if(Te===null){for(;Me<H.length;Me++)Te=oe(W,H[Me],se),Te!==null&&(z=f(Te,z,Me),Re===null?Se=Te:Re.sibling=Te,Re=Te);return xt&&po(W,Me),Se}for(Te=l(W,Te);Me<H.length;Me++)Ut=ue(Te,W,Me,H[Me],se),Ut!==null&&(e&&Ut.alternate!==null&&Te.delete(Ut.key===null?Me:Ut.key),z=f(Ut,z,Me),Re===null?Se=Ut:Re.sibling=Ut,Re=Ut);return e&&Te.forEach(function(Qr){return n(W,Qr)}),xt&&po(W,Me),Se}function ve(W,z,H,se){var Se=K(H);if(typeof Se!="function")throw Error(o(150));if(H=Se.call(H),H==null)throw Error(o(151));for(var Re=Se=null,Te=z,Me=z=0,Ut=null,Xe=H.next();Te!==null&&!Xe.done;Me++,Xe=H.next()){Te.index>Me?(Ut=Te,Te=null):Ut=Te.sibling;var Qr=ne(W,Te,Xe.value,se);if(Qr===null){Te===null&&(Te=Ut);break}e&&Te&&Qr.alternate===null&&n(W,Te),z=f(Qr,z,Me),Re===null?Se=Qr:Re.sibling=Qr,Re=Qr,Te=Ut}if(Xe.done)return i(W,Te),xt&&po(W,Me),Se;if(Te===null){for(;!Xe.done;Me++,Xe=H.next())Xe=oe(W,Xe.value,se),Xe!==null&&(z=f(Xe,z,Me),Re===null?Se=Xe:Re.sibling=Xe,Re=Xe);return xt&&po(W,Me),Se}for(Te=l(W,Te);!Xe.done;Me++,Xe=H.next())Xe=ue(Te,W,Me,Xe.value,se),Xe!==null&&(e&&Xe.alternate!==null&&Te.delete(Xe.key===null?Me:Xe.key),z=f(Xe,z,Me),Re===null?Se=Xe:Re.sibling=Xe,Re=Xe);return e&&Te.forEach(function(W0){return n(W,W0)}),xt&&po(W,Me),Se}function $t(W,z,H,se){if(typeof H=="object"&&H!==null&&H.type===F&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case M:e:{for(var Se=H.key,Re=z;Re!==null;){if(Re.key===Se){if(Se=H.type,Se===F){if(Re.tag===7){i(W,Re.sibling),z=c(Re,H.props.children),z.return=W,W=z;break e}}else if(Re.elementType===Se||typeof Se=="object"&&Se!==null&&Se.$$typeof===U&&vp(Se)===Re.type){i(W,Re.sibling),z=c(Re,H.props),z.ref=Vi(W,Re,H),z.return=W,W=z;break e}i(W,Re);break}else n(W,Re);Re=Re.sibling}H.type===F?(z=wo(H.props.children,W.mode,se,H.key),z.return=W,W=z):(se=Wl(H.type,H.key,H.props,null,W.mode,se),se.ref=Vi(W,z,H),se.return=W,W=se)}return y(W);case O:e:{for(Re=H.key;z!==null;){if(z.key===Re)if(z.tag===4&&z.stateNode.containerInfo===H.containerInfo&&z.stateNode.implementation===H.implementation){i(W,z.sibling),z=c(z,H.children||[]),z.return=W,W=z;break e}else{i(W,z);break}else n(W,z);z=z.sibling}z=Cc(H,W.mode,se),z.return=W,W=z}return y(W);case U:return Re=H._init,$t(W,z,Re(H._payload),se)}if(ze(H))return he(W,z,H,se);if(K(H))return ve(W,z,H,se);vl(W,H)}return typeof H=="string"&&H!==""||typeof H=="number"?(H=""+H,z!==null&&z.tag===6?(i(W,z.sibling),z=c(z,H),z.return=W,W=z):(i(W,z),z=bc(H,W.mode,se),z.return=W,W=z),y(W)):i(W,z)}return $t}var Go=xp(!0),Sp=xp(!1),xl=_r(null),Sl=null,Ko=null,$u=null;function Au(){$u=Ko=Sl=null}function ju(e){var n=xl.current;gt(xl),e._currentValue=n}function Lu(e,n,i){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===i)break;e=e.return}}function Yo(e,n){Sl=e,$u=Ko=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(ln=!0),e.firstContext=null)}function Tn(e){var n=e._currentValue;if($u!==e)if(e={context:e,memoizedValue:n,next:null},Ko===null){if(Sl===null)throw Error(o(308));Ko=e,Sl.dependencies={lanes:0,firstContext:e}}else Ko=Ko.next=e;return n}var mo=null;function Fu(e){mo===null?mo=[e]:mo.push(e)}function wp(e,n,i,l){var c=n.interleaved;return c===null?(i.next=i,Fu(n)):(i.next=c.next,c.next=i),n.interleaved=i,vr(e,l)}function vr(e,n){e.lanes|=n;var i=e.alternate;for(i!==null&&(i.lanes|=n),i=e,e=e.return;e!==null;)e.childLanes|=n,i=e.alternate,i!==null&&(i.childLanes|=n),i=e,e=e.return;return i.tag===3?i.stateNode:null}var Wr=!1;function Nu(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function bp(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function xr(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function Ur(e,n,i){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(qe&2)!==0){var c=l.pending;return c===null?n.next=n:(n.next=c.next,c.next=n),l.pending=n,vr(e,i)}return c=l.interleaved,c===null?(n.next=n,Fu(l)):(n.next=c.next,c.next=n),l.interleaved=n,vr(e,i)}function wl(e,n,i){if(n=n.updateQueue,n!==null&&(n=n.shared,(i&4194240)!==0)){var l=n.lanes;l&=e.pendingLanes,i|=l,n.lanes=i,Xa(e,i)}}function Cp(e,n){var i=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var c=null,f=null;if(i=i.firstBaseUpdate,i!==null){do{var y={eventTime:i.eventTime,lane:i.lane,tag:i.tag,payload:i.payload,callback:i.callback,next:null};f===null?c=f=y:f=f.next=y,i=i.next}while(i!==null);f===null?c=f=n:f=f.next=n}else c=f=n;i={baseState:l.baseState,firstBaseUpdate:c,lastBaseUpdate:f,shared:l.shared,effects:l.effects},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=n:e.next=n,i.lastBaseUpdate=n}function bl(e,n,i,l){var c=e.updateQueue;Wr=!1;var f=c.firstBaseUpdate,y=c.lastBaseUpdate,I=c.shared.pending;if(I!==null){c.shared.pending=null;var L=I,q=L.next;L.next=null,y===null?f=q:y.next=q,y=L;var re=e.alternate;re!==null&&(re=re.updateQueue,I=re.lastBaseUpdate,I!==y&&(I===null?re.firstBaseUpdate=q:I.next=q,re.lastBaseUpdate=L))}if(f!==null){var oe=c.baseState;y=0,re=q=L=null,I=f;do{var ne=I.lane,ue=I.eventTime;if((l&ne)===ne){re!==null&&(re=re.next={eventTime:ue,lane:0,tag:I.tag,payload:I.payload,callback:I.callback,next:null});e:{var he=e,ve=I;switch(ne=n,ue=i,ve.tag){case 1:if(he=ve.payload,typeof he=="function"){oe=he.call(ue,oe,ne);break e}oe=he;break e;case 3:he.flags=he.flags&-65537|128;case 0:if(he=ve.payload,ne=typeof he=="function"?he.call(ue,oe,ne):he,ne==null)break e;oe=ee({},oe,ne);break e;case 2:Wr=!0}}I.callback!==null&&I.lane!==0&&(e.flags|=64,ne=c.effects,ne===null?c.effects=[I]:ne.push(I))}else ue={eventTime:ue,lane:ne,tag:I.tag,payload:I.payload,callback:I.callback,next:null},re===null?(q=re=ue,L=oe):re=re.next=ue,y|=ne;if(I=I.next,I===null){if(I=c.shared.pending,I===null)break;ne=I,I=ne.next,ne.next=null,c.lastBaseUpdate=ne,c.shared.pending=null}}while(!0);if(re===null&&(L=oe),c.baseState=L,c.firstBaseUpdate=q,c.lastBaseUpdate=re,n=c.shared.interleaved,n!==null){c=n;do y|=c.lane,c=c.next;while(c!==n)}else f===null&&(c.shared.lanes=0);yo|=y,e.lanes=y,e.memoizedState=oe}}function kp(e,n,i){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var l=e[n],c=l.callback;if(c!==null){if(l.callback=null,l=i,typeof c!="function")throw Error(o(191,c));c.call(l)}}}var Gi={},Qn=_r(Gi),Ki=_r(Gi),Yi=_r(Gi);function ho(e){if(e===Gi)throw Error(o(174));return e}function zu(e,n){switch(ft(Yi,n),ft(Ki,e),ft(Qn,Gi),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Et(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Et(n,e)}gt(Qn),ft(Qn,n)}function qo(){gt(Qn),gt(Ki),gt(Yi)}function Ep(e){ho(Yi.current);var n=ho(Qn.current),i=Et(n,e.type);n!==i&&(ft(Ki,e),ft(Qn,i))}function _u(e){Ki.current===e&&(gt(Qn),gt(Ki))}var Ct=_r(0);function Cl(e){for(var n=e;n!==null;){if(n.tag===13){var i=n.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||i.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var Du=[];function Bu(){for(var e=0;e<Du.length;e++)Du[e]._workInProgressVersionPrimary=null;Du.length=0}var kl=R.ReactCurrentDispatcher,Wu=R.ReactCurrentBatchConfig,go=0,kt=null,_t=null,Bt=null,El=!1,qi=!1,Qi=0,c0=0;function Qt(){throw Error(o(321))}function Uu(e,n){if(n===null)return!1;for(var i=0;i<n.length&&i<e.length;i++)if(!Wn(e[i],n[i]))return!1;return!0}function Hu(e,n,i,l,c,f){if(go=f,kt=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,kl.current=e===null||e.memoizedState===null?m0:h0,e=i(l,c),qi){f=0;do{if(qi=!1,Qi=0,25<=f)throw Error(o(301));f+=1,Bt=_t=null,n.updateQueue=null,kl.current=g0,e=i(l,c)}while(qi)}if(kl.current=Pl,n=_t!==null&&_t.next!==null,go=0,Bt=_t=kt=null,El=!1,n)throw Error(o(300));return e}function Vu(){var e=Qi!==0;return Qi=0,e}function Xn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?kt.memoizedState=Bt=e:Bt=Bt.next=e,Bt}function Pn(){if(_t===null){var e=kt.alternate;e=e!==null?e.memoizedState:null}else e=_t.next;var n=Bt===null?kt.memoizedState:Bt.next;if(n!==null)Bt=n,_t=e;else{if(e===null)throw Error(o(310));_t=e,e={memoizedState:_t.memoizedState,baseState:_t.baseState,baseQueue:_t.baseQueue,queue:_t.queue,next:null},Bt===null?kt.memoizedState=Bt=e:Bt=Bt.next=e}return Bt}function Xi(e,n){return typeof n=="function"?n(e):n}function Gu(e){var n=Pn(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=_t,c=l.baseQueue,f=i.pending;if(f!==null){if(c!==null){var y=c.next;c.next=f.next,f.next=y}l.baseQueue=c=f,i.pending=null}if(c!==null){f=c.next,l=l.baseState;var I=y=null,L=null,q=f;do{var re=q.lane;if((go&re)===re)L!==null&&(L=L.next={lane:0,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null}),l=q.hasEagerState?q.eagerState:e(l,q.action);else{var oe={lane:re,action:q.action,hasEagerState:q.hasEagerState,eagerState:q.eagerState,next:null};L===null?(I=L=oe,y=l):L=L.next=oe,kt.lanes|=re,yo|=re}q=q.next}while(q!==null&&q!==f);L===null?y=l:L.next=I,Wn(l,n.memoizedState)||(ln=!0),n.memoizedState=l,n.baseState=y,n.baseQueue=L,i.lastRenderedState=l}if(e=i.interleaved,e!==null){c=e;do f=c.lane,kt.lanes|=f,yo|=f,c=c.next;while(c!==e)}else c===null&&(i.lanes=0);return[n.memoizedState,i.dispatch]}function Ku(e){var n=Pn(),i=n.queue;if(i===null)throw Error(o(311));i.lastRenderedReducer=e;var l=i.dispatch,c=i.pending,f=n.memoizedState;if(c!==null){i.pending=null;var y=c=c.next;do f=e(f,y.action),y=y.next;while(y!==c);Wn(f,n.memoizedState)||(ln=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),i.lastRenderedState=f}return[f,l]}function Rp(){}function Tp(e,n){var i=kt,l=Pn(),c=n(),f=!Wn(l.memoizedState,c);if(f&&(l.memoizedState=c,ln=!0),l=l.queue,Yu(Ip.bind(null,i,l,e),[e]),l.getSnapshot!==n||f||Bt!==null&&Bt.memoizedState.tag&1){if(i.flags|=2048,Zi(9,Mp.bind(null,i,l,c,n),void 0,null),Wt===null)throw Error(o(349));(go&30)!==0||Pp(i,n,c)}return c}function Pp(e,n,i){e.flags|=16384,e={getSnapshot:n,value:i},n=kt.updateQueue,n===null?(n={lastEffect:null,stores:null},kt.updateQueue=n,n.stores=[e]):(i=n.stores,i===null?n.stores=[e]:i.push(e))}function Mp(e,n,i,l){n.value=i,n.getSnapshot=l,Op(n)&&$p(e)}function Ip(e,n,i){return i(function(){Op(n)&&$p(e)})}function Op(e){var n=e.getSnapshot;e=e.value;try{var i=n();return!Wn(e,i)}catch{return!0}}function $p(e){var n=vr(e,1);n!==null&&Kn(n,e,1,-1)}function Ap(e){var n=Xn();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Xi,lastRenderedState:e},n.queue=e,e=e.dispatch=p0.bind(null,kt,e),[n.memoizedState,e]}function Zi(e,n,i,l){return e={tag:e,create:n,destroy:i,deps:l,next:null},n=kt.updateQueue,n===null?(n={lastEffect:null,stores:null},kt.updateQueue=n,n.lastEffect=e.next=e):(i=n.lastEffect,i===null?n.lastEffect=e.next=e:(l=i.next,i.next=e,e.next=l,n.lastEffect=e)),e}function jp(){return Pn().memoizedState}function Rl(e,n,i,l){var c=Xn();kt.flags|=e,c.memoizedState=Zi(1|n,i,void 0,l===void 0?null:l)}function Tl(e,n,i,l){var c=Pn();l=l===void 0?null:l;var f=void 0;if(_t!==null){var y=_t.memoizedState;if(f=y.destroy,l!==null&&Uu(l,y.deps)){c.memoizedState=Zi(n,i,f,l);return}}kt.flags|=e,c.memoizedState=Zi(1|n,i,f,l)}function Lp(e,n){return Rl(8390656,8,e,n)}function Yu(e,n){return Tl(2048,8,e,n)}function Fp(e,n){return Tl(4,2,e,n)}function Np(e,n){return Tl(4,4,e,n)}function zp(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function _p(e,n,i){return i=i!=null?i.concat([e]):null,Tl(4,4,zp.bind(null,n,e),i)}function qu(){}function Dp(e,n){var i=Pn();n=n===void 0?null:n;var l=i.memoizedState;return l!==null&&n!==null&&Uu(n,l[1])?l[0]:(i.memoizedState=[e,n],e)}function Bp(e,n){var i=Pn();n=n===void 0?null:n;var l=i.memoizedState;return l!==null&&n!==null&&Uu(n,l[1])?l[0]:(e=e(),i.memoizedState=[e,n],e)}function Wp(e,n,i){return(go&21)===0?(e.baseState&&(e.baseState=!1,ln=!0),e.memoizedState=i):(Wn(i,n)||(i=vf(),kt.lanes|=i,yo|=i,e.baseState=!0),n)}function d0(e,n){var i=ot;ot=i!==0&&4>i?i:4,e(!0);var l=Wu.transition;Wu.transition={};try{e(!1),n()}finally{ot=i,Wu.transition=l}}function Up(){return Pn().memoizedState}function f0(e,n,i){var l=Kr(e);if(i={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null},Hp(e))Vp(n,i);else if(i=wp(e,n,i,l),i!==null){var c=rn();Kn(i,e,l,c),Gp(i,n,l)}}function p0(e,n,i){var l=Kr(e),c={lane:l,action:i,hasEagerState:!1,eagerState:null,next:null};if(Hp(e))Vp(n,c);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var y=n.lastRenderedState,I=f(y,i);if(c.hasEagerState=!0,c.eagerState=I,Wn(I,y)){var L=n.interleaved;L===null?(c.next=c,Fu(n)):(c.next=L.next,L.next=c),n.interleaved=c;return}}catch{}finally{}i=wp(e,n,c,l),i!==null&&(c=rn(),Kn(i,e,l,c),Gp(i,n,l))}}function Hp(e){var n=e.alternate;return e===kt||n!==null&&n===kt}function Vp(e,n){qi=El=!0;var i=e.pending;i===null?n.next=n:(n.next=i.next,i.next=n),e.pending=n}function Gp(e,n,i){if((i&4194240)!==0){var l=n.lanes;l&=e.pendingLanes,i|=l,n.lanes=i,Xa(e,i)}}var Pl={readContext:Tn,useCallback:Qt,useContext:Qt,useEffect:Qt,useImperativeHandle:Qt,useInsertionEffect:Qt,useLayoutEffect:Qt,useMemo:Qt,useReducer:Qt,useRef:Qt,useState:Qt,useDebugValue:Qt,useDeferredValue:Qt,useTransition:Qt,useMutableSource:Qt,useSyncExternalStore:Qt,useId:Qt,unstable_isNewReconciler:!1},m0={readContext:Tn,useCallback:function(e,n){return Xn().memoizedState=[e,n===void 0?null:n],e},useContext:Tn,useEffect:Lp,useImperativeHandle:function(e,n,i){return i=i!=null?i.concat([e]):null,Rl(4194308,4,zp.bind(null,n,e),i)},useLayoutEffect:function(e,n){return Rl(4194308,4,e,n)},useInsertionEffect:function(e,n){return Rl(4,2,e,n)},useMemo:function(e,n){var i=Xn();return n=n===void 0?null:n,e=e(),i.memoizedState=[e,n],e},useReducer:function(e,n,i){var l=Xn();return n=i!==void 0?i(n):n,l.memoizedState=l.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=f0.bind(null,kt,e),[l.memoizedState,e]},useRef:function(e){var n=Xn();return e={current:e},n.memoizedState=e},useState:Ap,useDebugValue:qu,useDeferredValue:function(e){return Xn().memoizedState=e},useTransition:function(){var e=Ap(!1),n=e[0];return e=d0.bind(null,e[1]),Xn().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,i){var l=kt,c=Xn();if(xt){if(i===void 0)throw Error(o(407));i=i()}else{if(i=n(),Wt===null)throw Error(o(349));(go&30)!==0||Pp(l,n,i)}c.memoizedState=i;var f={value:i,getSnapshot:n};return c.queue=f,Lp(Ip.bind(null,l,f,e),[e]),l.flags|=2048,Zi(9,Mp.bind(null,l,f,i,n),void 0,null),i},useId:function(){var e=Xn(),n=Wt.identifierPrefix;if(xt){var i=yr,l=gr;i=(l&~(1<<32-Bn(l)-1)).toString(32)+i,n=":"+n+"R"+i,i=Qi++,0<i&&(n+="H"+i.toString(32)),n+=":"}else i=c0++,n=":"+n+"r"+i.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},h0={readContext:Tn,useCallback:Dp,useContext:Tn,useEffect:Yu,useImperativeHandle:_p,useInsertionEffect:Fp,useLayoutEffect:Np,useMemo:Bp,useReducer:Gu,useRef:jp,useState:function(){return Gu(Xi)},useDebugValue:qu,useDeferredValue:function(e){var n=Pn();return Wp(n,_t.memoizedState,e)},useTransition:function(){var e=Gu(Xi)[0],n=Pn().memoizedState;return[e,n]},useMutableSource:Rp,useSyncExternalStore:Tp,useId:Up,unstable_isNewReconciler:!1},g0={readContext:Tn,useCallback:Dp,useContext:Tn,useEffect:Yu,useImperativeHandle:_p,useInsertionEffect:Fp,useLayoutEffect:Np,useMemo:Bp,useReducer:Ku,useRef:jp,useState:function(){return Ku(Xi)},useDebugValue:qu,useDeferredValue:function(e){var n=Pn();return _t===null?n.memoizedState=e:Wp(n,_t.memoizedState,e)},useTransition:function(){var e=Ku(Xi)[0],n=Pn().memoizedState;return[e,n]},useMutableSource:Rp,useSyncExternalStore:Tp,useId:Up,unstable_isNewReconciler:!1};function Hn(e,n){if(e&&e.defaultProps){n=ee({},n),e=e.defaultProps;for(var i in e)n[i]===void 0&&(n[i]=e[i]);return n}return n}function Qu(e,n,i,l){n=e.memoizedState,i=i(l,n),i=i==null?n:ee({},n,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var Ml={isMounted:function(e){return(e=e._reactInternals)?Fe(e)===e:!1},enqueueSetState:function(e,n,i){e=e._reactInternals;var l=rn(),c=Kr(e),f=xr(l,c);f.payload=n,i!=null&&(f.callback=i),n=Ur(e,f,c),n!==null&&(Kn(n,e,c,l),wl(n,e,c))},enqueueReplaceState:function(e,n,i){e=e._reactInternals;var l=rn(),c=Kr(e),f=xr(l,c);f.tag=1,f.payload=n,i!=null&&(f.callback=i),n=Ur(e,f,c),n!==null&&(Kn(n,e,c,l),wl(n,e,c))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var i=rn(),l=Kr(e),c=xr(i,l);c.tag=2,n!=null&&(c.callback=n),n=Ur(e,c,l),n!==null&&(Kn(n,e,l,i),wl(n,e,l))}};function Kp(e,n,i,l,c,f,y){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,y):n.prototype&&n.prototype.isPureReactComponent?!zi(i,l)||!zi(c,f):!0}function Yp(e,n,i){var l=!1,c=Dr,f=n.contextType;return typeof f=="object"&&f!==null?f=Tn(f):(c=sn(n)?co:qt.current,l=n.contextTypes,f=(l=l!=null)?Wo(e,c):Dr),n=new n(i,f),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Ml,e.stateNode=n,n._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=c,e.__reactInternalMemoizedMaskedChildContext=f),n}function qp(e,n,i,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(i,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(i,l),n.state!==e&&Ml.enqueueReplaceState(n,n.state,null)}function Xu(e,n,i,l){var c=e.stateNode;c.props=i,c.state=e.memoizedState,c.refs={},Nu(e);var f=n.contextType;typeof f=="object"&&f!==null?c.context=Tn(f):(f=sn(n)?co:qt.current,c.context=Wo(e,f)),c.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Qu(e,n,f,i),c.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof c.getSnapshotBeforeUpdate=="function"||typeof c.UNSAFE_componentWillMount!="function"&&typeof c.componentWillMount!="function"||(n=c.state,typeof c.componentWillMount=="function"&&c.componentWillMount(),typeof c.UNSAFE_componentWillMount=="function"&&c.UNSAFE_componentWillMount(),n!==c.state&&Ml.enqueueReplaceState(c,c.state,null),bl(e,i,c,l),c.state=e.memoizedState),typeof c.componentDidMount=="function"&&(e.flags|=4194308)}function Qo(e,n){try{var i="",l=n;do i+=ae(l),l=l.return;while(l);var c=i}catch(f){c=` | |
| Error generating stack: `+f.message+` | |
| `+f.stack}return{value:e,source:n,stack:c,digest:null}}function Zu(e,n,i){return{value:e,source:null,stack:i??null,digest:n??null}}function Ju(e,n){try{console.error(n.value)}catch(i){setTimeout(function(){throw i})}}var y0=typeof WeakMap=="function"?WeakMap:Map;function Qp(e,n,i){i=xr(-1,i),i.tag=3,i.payload={element:null};var l=n.value;return i.callback=function(){Fl||(Fl=!0,mc=l),Ju(e,n)},i}function Xp(e,n,i){i=xr(-1,i),i.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var c=n.value;i.payload=function(){return l(c)},i.callback=function(){Ju(e,n)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(i.callback=function(){Ju(e,n),typeof l!="function"&&(Vr===null?Vr=new Set([this]):Vr.add(this));var y=n.stack;this.componentDidCatch(n.value,{componentStack:y!==null?y:""})}),i}function Zp(e,n,i){var l=e.pingCache;if(l===null){l=e.pingCache=new y0;var c=new Set;l.set(n,c)}else c=l.get(n),c===void 0&&(c=new Set,l.set(n,c));c.has(i)||(c.add(i),e=O0.bind(null,e,n,i),n.then(e,e))}function Jp(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function em(e,n,i,l,c){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,i.flags|=131072,i.flags&=-52805,i.tag===1&&(i.alternate===null?i.tag=17:(n=xr(-1,1),n.tag=2,Ur(i,n,1))),i.lanes|=1),e):(e.flags|=65536,e.lanes=c,e)}var v0=R.ReactCurrentOwner,ln=!1;function nn(e,n,i,l){n.child=e===null?Sp(n,null,i,l):Go(n,e.child,i,l)}function tm(e,n,i,l,c){i=i.render;var f=n.ref;return Yo(n,c),l=Hu(e,n,i,l,f,c),i=Vu(),e!==null&&!ln?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,Sr(e,n,c)):(xt&&i&&Tu(n),n.flags|=1,nn(e,n,l,c),n.child)}function nm(e,n,i,l,c){if(e===null){var f=i.type;return typeof f=="function"&&!wc(f)&&f.defaultProps===void 0&&i.compare===null&&i.defaultProps===void 0?(n.tag=15,n.type=f,rm(e,n,f,l,c)):(e=Wl(i.type,null,l,n,n.mode,c),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,(e.lanes&c)===0){var y=f.memoizedProps;if(i=i.compare,i=i!==null?i:zi,i(y,l)&&e.ref===n.ref)return Sr(e,n,c)}return n.flags|=1,e=qr(f,l),e.ref=n.ref,e.return=n,n.child=e}function rm(e,n,i,l,c){if(e!==null){var f=e.memoizedProps;if(zi(f,l)&&e.ref===n.ref)if(ln=!1,n.pendingProps=l=f,(e.lanes&c)!==0)(e.flags&131072)!==0&&(ln=!0);else return n.lanes=e.lanes,Sr(e,n,c)}return ec(e,n,i,l,c)}function om(e,n,i){var l=n.pendingProps,c=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},ft(Zo,yn),yn|=i;else{if((i&1073741824)===0)return e=f!==null?f.baseLanes|i:i,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,ft(Zo,yn),yn|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:i,ft(Zo,yn),yn|=l}else f!==null?(l=f.baseLanes|i,n.memoizedState=null):l=i,ft(Zo,yn),yn|=l;return nn(e,n,c,i),n.child}function im(e,n){var i=n.ref;(e===null&&i!==null||e!==null&&e.ref!==i)&&(n.flags|=512,n.flags|=2097152)}function ec(e,n,i,l,c){var f=sn(i)?co:qt.current;return f=Wo(n,f),Yo(n,c),i=Hu(e,n,i,l,f,c),l=Vu(),e!==null&&!ln?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~c,Sr(e,n,c)):(xt&&l&&Tu(n),n.flags|=1,nn(e,n,i,c),n.child)}function sm(e,n,i,l,c){if(sn(i)){var f=!0;pl(n)}else f=!1;if(Yo(n,c),n.stateNode===null)Ol(e,n),Yp(n,i,l),Xu(n,i,l,c),l=!0;else if(e===null){var y=n.stateNode,I=n.memoizedProps;y.props=I;var L=y.context,q=i.contextType;typeof q=="object"&&q!==null?q=Tn(q):(q=sn(i)?co:qt.current,q=Wo(n,q));var re=i.getDerivedStateFromProps,oe=typeof re=="function"||typeof y.getSnapshotBeforeUpdate=="function";oe||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(I!==l||L!==q)&&qp(n,y,l,q),Wr=!1;var ne=n.memoizedState;y.state=ne,bl(n,l,y,c),L=n.memoizedState,I!==l||ne!==L||on.current||Wr?(typeof re=="function"&&(Qu(n,i,re,l),L=n.memoizedState),(I=Wr||Kp(n,i,I,l,ne,L,q))?(oe||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(n.flags|=4194308)):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=L),y.props=l,y.state=L,y.context=q,l=I):(typeof y.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{y=n.stateNode,bp(e,n),I=n.memoizedProps,q=n.type===n.elementType?I:Hn(n.type,I),y.props=q,oe=n.pendingProps,ne=y.context,L=i.contextType,typeof L=="object"&&L!==null?L=Tn(L):(L=sn(i)?co:qt.current,L=Wo(n,L));var ue=i.getDerivedStateFromProps;(re=typeof ue=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(I!==oe||ne!==L)&&qp(n,y,l,L),Wr=!1,ne=n.memoizedState,y.state=ne,bl(n,l,y,c);var he=n.memoizedState;I!==oe||ne!==he||on.current||Wr?(typeof ue=="function"&&(Qu(n,i,ue,l),he=n.memoizedState),(q=Wr||Kp(n,i,q,l,ne,he,L)||!1)?(re||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,he,L),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,he,L)),typeof y.componentDidUpdate=="function"&&(n.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof y.componentDidUpdate!="function"||I===e.memoizedProps&&ne===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||I===e.memoizedProps&&ne===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=he),y.props=l,y.state=he,y.context=L,l=q):(typeof y.componentDidUpdate!="function"||I===e.memoizedProps&&ne===e.memoizedState||(n.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||I===e.memoizedProps&&ne===e.memoizedState||(n.flags|=1024),l=!1)}return tc(e,n,i,l,f,c)}function tc(e,n,i,l,c,f){im(e,n);var y=(n.flags&128)!==0;if(!l&&!y)return c&&dp(n,i,!1),Sr(e,n,f);l=n.stateNode,v0.current=n;var I=y&&typeof i.getDerivedStateFromError!="function"?null:l.render();return n.flags|=1,e!==null&&y?(n.child=Go(n,e.child,null,f),n.child=Go(n,null,I,f)):nn(e,n,I,f),n.memoizedState=l.state,c&&dp(n,i,!0),n.child}function lm(e){var n=e.stateNode;n.pendingContext?up(e,n.pendingContext,n.pendingContext!==n.context):n.context&&up(e,n.context,!1),zu(e,n.containerInfo)}function am(e,n,i,l,c){return Vo(),Ou(c),n.flags|=256,nn(e,n,i,l),n.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function um(e,n,i){var l=n.pendingProps,c=Ct.current,f=!1,y=(n.flags&128)!==0,I;if((I=y)||(I=e!==null&&e.memoizedState===null?!1:(c&2)!==0),I?(f=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(c|=1),ft(Ct,c&1),e===null)return Iu(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(y=l.children,e=l.fallback,f?(l=n.mode,f=n.child,y={mode:"hidden",children:y},(l&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=y):f=Ul(y,l,0,null),e=wo(e,l,i,null),f.return=n,e.return=n,f.sibling=e,n.child=f,n.child.memoizedState=rc(i),n.memoizedState=nc,e):oc(n,y));if(c=e.memoizedState,c!==null&&(I=c.dehydrated,I!==null))return x0(e,n,y,l,I,c,i);if(f){f=l.fallback,y=n.mode,c=e.child,I=c.sibling;var L={mode:"hidden",children:l.children};return(y&1)===0&&n.child!==c?(l=n.child,l.childLanes=0,l.pendingProps=L,n.deletions=null):(l=qr(c,L),l.subtreeFlags=c.subtreeFlags&14680064),I!==null?f=qr(I,f):(f=wo(f,y,i,null),f.flags|=2),f.return=n,l.return=n,l.sibling=f,n.child=l,l=f,f=n.child,y=e.child.memoizedState,y=y===null?rc(i):{baseLanes:y.baseLanes|i,cachePool:null,transitions:y.transitions},f.memoizedState=y,f.childLanes=e.childLanes&~i,n.memoizedState=nc,l}return f=e.child,e=f.sibling,l=qr(f,{mode:"visible",children:l.children}),(n.mode&1)===0&&(l.lanes=i),l.return=n,l.sibling=null,e!==null&&(i=n.deletions,i===null?(n.deletions=[e],n.flags|=16):i.push(e)),n.child=l,n.memoizedState=null,l}function oc(e,n){return n=Ul({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function Il(e,n,i,l){return l!==null&&Ou(l),Go(n,e.child,null,i),e=oc(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function x0(e,n,i,l,c,f,y){if(i)return n.flags&256?(n.flags&=-257,l=Zu(Error(o(422))),Il(e,n,y,l)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(f=l.fallback,c=n.mode,l=Ul({mode:"visible",children:l.children},c,0,null),f=wo(f,c,y,null),f.flags|=2,l.return=n,f.return=n,l.sibling=f,n.child=l,(n.mode&1)!==0&&Go(n,e.child,null,y),n.child.memoizedState=rc(y),n.memoizedState=nc,f);if((n.mode&1)===0)return Il(e,n,y,null);if(c.data==="$!"){if(l=c.nextSibling&&c.nextSibling.dataset,l)var I=l.dgst;return l=I,f=Error(o(419)),l=Zu(f,l,void 0),Il(e,n,y,l)}if(I=(y&e.childLanes)!==0,ln||I){if(l=Wt,l!==null){switch(y&-y){case 4:c=2;break;case 16:c=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:c=32;break;case 536870912:c=268435456;break;default:c=0}c=(c&(l.suspendedLanes|y))!==0?0:c,c!==0&&c!==f.retryLane&&(f.retryLane=c,vr(e,c),Kn(l,e,c,-1))}return Sc(),l=Zu(Error(o(421))),Il(e,n,y,l)}return c.data==="$?"?(n.flags|=128,n.child=e.child,n=$0.bind(null,e),c._reactRetry=n,null):(e=f.treeContext,gn=zr(c.nextSibling),hn=n,xt=!0,Un=null,e!==null&&(En[Rn++]=gr,En[Rn++]=yr,En[Rn++]=fo,gr=e.id,yr=e.overflow,fo=n),n=oc(n,l.children),n.flags|=4096,n)}function cm(e,n,i){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),Lu(e.return,n,i)}function ic(e,n,i,l,c){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:c}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=i,f.tailMode=c)}function dm(e,n,i){var l=n.pendingProps,c=l.revealOrder,f=l.tail;if(nn(e,n,l.children,i),l=Ct.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cm(e,i,n);else if(e.tag===19)cm(e,i,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(ft(Ct,l),(n.mode&1)===0)n.memoizedState=null;else switch(c){case"forwards":for(i=n.child,c=null;i!==null;)e=i.alternate,e!==null&&Cl(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=n.child,n.child=null):(c=i.sibling,i.sibling=null),ic(n,!1,c,i,f);break;case"backwards":for(i=null,c=n.child,n.child=null;c!==null;){if(e=c.alternate,e!==null&&Cl(e)===null){n.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}ic(n,!0,i,null,f);break;case"together":ic(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ol(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Sr(e,n,i){if(e!==null&&(n.dependencies=e.dependencies),yo|=n.lanes,(i&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(o(153));if(n.child!==null){for(e=n.child,i=qr(e,e.pendingProps),n.child=i,i.return=n;e.sibling!==null;)e=e.sibling,i=i.sibling=qr(e,e.pendingProps),i.return=n;i.sibling=null}return n.child}function S0(e,n,i){switch(n.tag){case 3:lm(n),Vo();break;case 5:Ep(n);break;case 1:sn(n.type)&&pl(n);break;case 4:zu(n,n.stateNode.containerInfo);break;case 10:var l=n.type._context,c=n.memoizedProps.value;ft(xl,l._currentValue),l._currentValue=c;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?(ft(Ct,Ct.current&1),n.flags|=128,null):(i&n.child.childLanes)!==0?um(e,n,i):(ft(Ct,Ct.current&1),e=Sr(e,n,i),e!==null?e.sibling:null);ft(Ct,Ct.current&1);break;case 19:if(l=(i&n.childLanes)!==0,(e.flags&128)!==0){if(l)return dm(e,n,i);n.flags|=128}if(c=n.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),ft(Ct,Ct.current),l)break;return null;case 22:case 23:return n.lanes=0,om(e,n,i)}return Sr(e,n,i)}var fm,sc,pm,mm;fm=function(e,n){for(var i=n.child;i!==null;){if(i.tag===5||i.tag===6)e.appendChild(i.stateNode);else if(i.tag!==4&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return;i=i.return}i.sibling.return=i.return,i=i.sibling}},sc=function(){},pm=function(e,n,i,l){var c=e.memoizedProps;if(c!==l){e=n.stateNode,ho(Qn.current);var f=null;switch(i){case"input":c=Ee(e,c),l=Ee(e,l),f=[];break;case"select":c=ee({},c,{value:void 0}),l=ee({},l,{value:void 0}),f=[];break;case"textarea":c=pe(e,c),l=pe(e,l),f=[];break;default:typeof c.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=cl)}je(i,l);var y;i=null;for(q in c)if(!l.hasOwnProperty(q)&&c.hasOwnProperty(q)&&c[q]!=null)if(q==="style"){var I=c[q];for(y in I)I.hasOwnProperty(y)&&(i||(i={}),i[y]="")}else q!=="dangerouslySetInnerHTML"&&q!=="children"&&q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&q!=="autoFocus"&&(a.hasOwnProperty(q)?f||(f=[]):(f=f||[]).push(q,null));for(q in l){var L=l[q];if(I=c!=null?c[q]:void 0,l.hasOwnProperty(q)&&L!==I&&(L!=null||I!=null))if(q==="style")if(I){for(y in I)!I.hasOwnProperty(y)||L&&L.hasOwnProperty(y)||(i||(i={}),i[y]="");for(y in L)L.hasOwnProperty(y)&&I[y]!==L[y]&&(i||(i={}),i[y]=L[y])}else i||(f||(f=[]),f.push(q,i)),i=L;else q==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,I=I?I.__html:void 0,L!=null&&I!==L&&(f=f||[]).push(q,L)):q==="children"?typeof L!="string"&&typeof L!="number"||(f=f||[]).push(q,""+L):q!=="suppressContentEditableWarning"&&q!=="suppressHydrationWarning"&&(a.hasOwnProperty(q)?(L!=null&&q==="onScroll"&&ht("scroll",e),f||I===L||(f=[])):(f=f||[]).push(q,L))}i&&(f=f||[]).push("style",i);var q=f;(n.updateQueue=q)&&(n.flags|=4)}},mm=function(e,n,i,l){i!==l&&(n.flags|=4)};function Ji(e,n){if(!xt)switch(e.tailMode){case"hidden":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function Xt(e){var n=e.alternate!==null&&e.alternate.child===e.child,i=0,l=0;if(n)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags&14680064,l|=c.flags&14680064,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,l|=c.subtreeFlags,l|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=l,e.childLanes=i,n}function w0(e,n,i){var l=n.pendingProps;switch(Pu(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(n),null;case 1:return sn(n.type)&&fl(),Xt(n),null;case 3:return l=n.stateNode,qo(),gt(on),gt(qt),Bu(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(yl(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,Un!==null&&(yc(Un),Un=null))),sc(e,n),Xt(n),null;case 5:_u(n);var c=ho(Yi.current);if(i=n.type,e!==null&&n.stateNode!=null)pm(e,n,i,l,c),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(n.stateNode===null)throw Error(o(166));return Xt(n),null}if(e=ho(Qn.current),yl(n)){l=n.stateNode,i=n.type;var f=n.memoizedProps;switch(l[qn]=n,l[Ui]=f,e=(n.mode&1)!==0,i){case"dialog":ht("cancel",l),ht("close",l);break;case"iframe":case"object":case"embed":ht("load",l);break;case"video":case"audio":for(c=0;c<Di.length;c++)ht(Di[c],l);break;case"source":ht("error",l);break;case"img":case"image":case"link":ht("error",l),ht("load",l);break;case"details":ht("toggle",l);break;case"input":Be(l,f),ht("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},ht("invalid",l);break;case"textarea":wt(l,f),ht("invalid",l)}je(i,f),c=null;for(var y in f)if(f.hasOwnProperty(y)){var I=f[y];y==="children"?typeof I=="string"?l.textContent!==I&&(f.suppressHydrationWarning!==!0&&ul(l.textContent,I,e),c=["children",I]):typeof I=="number"&&l.textContent!==""+I&&(f.suppressHydrationWarning!==!0&&ul(l.textContent,I,e),c=["children",""+I]):a.hasOwnProperty(y)&&I!=null&&y==="onScroll"&&ht("scroll",l)}switch(i){case"input":ke(l),Ie(l,f,!0);break;case"textarea":ke(l),zt(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=cl)}l=c,n.updateQueue=l,l!==null&&(n.flags|=4)}else{y=c.nodeType===9?c:c.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=jt(i)),e==="http://www.w3.org/1999/xhtml"?i==="script"?(e=y.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=y.createElement(i,{is:l.is}):(e=y.createElement(i),i==="select"&&(y=e,l.multiple?y.multiple=!0:l.size&&(y.size=l.size))):e=y.createElementNS(e,i),e[qn]=n,e[Ui]=l,fm(e,n,!1,!1),n.stateNode=e;e:{switch(y=dt(i,l),i){case"dialog":ht("cancel",e),ht("close",e),c=l;break;case"iframe":case"object":case"embed":ht("load",e),c=l;break;case"video":case"audio":for(c=0;c<Di.length;c++)ht(Di[c],e);c=l;break;case"source":ht("error",e),c=l;break;case"img":case"image":case"link":ht("error",e),ht("load",e),c=l;break;case"details":ht("toggle",e),c=l;break;case"input":Be(e,l),c=Ee(e,l),ht("invalid",e);break;case"option":c=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},c=ee({},l,{value:void 0}),ht("invalid",e);break;case"textarea":wt(e,l),c=pe(e,l),ht("invalid",e);break;default:c=l}je(i,c),I=c;for(f in I)if(I.hasOwnProperty(f)){var L=I[f];f==="style"?bt(e,L):f==="dangerouslySetInnerHTML"?(L=L?L.__html:void 0,L!=null&&Ke(e,L)):f==="children"?typeof L=="string"?(i!=="textarea"||L!=="")&&Ae(e,L):typeof L=="number"&&Ae(e,""+L):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(a.hasOwnProperty(f)?L!=null&&f==="onScroll"&&ht("scroll",e):L!=null&&P(e,f,L,y))}switch(i){case"input":ke(e),Ie(e,l,!1);break;case"textarea":ke(e),zt(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ge(l.value));break;case"select":e.multiple=!!l.multiple,f=l.value,f!=null?_e(e,!!l.multiple,f,!1):l.defaultValue!=null&&_e(e,!!l.multiple,l.defaultValue,!0);break;default:typeof c.onClick=="function"&&(e.onclick=cl)}switch(i){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return Xt(n),null;case 6:if(e&&n.stateNode!=null)mm(e,n,e.memoizedProps,l);else{if(typeof l!="string"&&n.stateNode===null)throw Error(o(166));if(i=ho(Yi.current),ho(Qn.current),yl(n)){if(l=n.stateNode,i=n.memoizedProps,l[qn]=n,(f=l.nodeValue!==i)&&(e=hn,e!==null))switch(e.tag){case 3:ul(l.nodeValue,i,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&ul(l.nodeValue,i,(e.mode&1)!==0)}f&&(n.flags|=4)}else l=(i.nodeType===9?i:i.ownerDocument).createTextNode(l),l[qn]=n,n.stateNode=l}return Xt(n),null;case 13:if(gt(Ct),l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(xt&&gn!==null&&(n.mode&1)!==0&&(n.flags&128)===0)yp(),Vo(),n.flags|=98560,f=!1;else if(f=yl(n),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(o(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(o(317));f[qn]=n}else Vo(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Xt(n),f=!1}else Un!==null&&(yc(Un),Un=null),f=!0;if(!f)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=i,n):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Ct.current&1)!==0?Dt===0&&(Dt=3):Sc())),n.updateQueue!==null&&(n.flags|=4),Xt(n),null);case 4:return qo(),sc(e,n),e===null&&Bi(n.stateNode.containerInfo),Xt(n),null;case 10:return ju(n.type._context),Xt(n),null;case 17:return sn(n.type)&&fl(),Xt(n),null;case 19:if(gt(Ct),f=n.memoizedState,f===null)return Xt(n),null;if(l=(n.flags&128)!==0,y=f.rendering,y===null)if(l)Ji(f,!1);else{if(Dt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(y=Cl(e),y!==null){for(n.flags|=128,Ji(f,!1),l=y.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=i,i=n.child;i!==null;)f=i,e=l,f.flags&=14680066,y=f.alternate,y===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=y.childLanes,f.lanes=y.lanes,f.child=y.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=y.memoizedProps,f.memoizedState=y.memoizedState,f.updateQueue=y.updateQueue,f.type=y.type,e=y.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),i=i.sibling;return ft(Ct,Ct.current&1|2),n.child}e=e.sibling}f.tail!==null&&Ot()>Jo&&(n.flags|=128,l=!0,Ji(f,!1),n.lanes=4194304)}else{if(!l)if(e=Cl(y),e!==null){if(n.flags|=128,l=!0,i=e.updateQueue,i!==null&&(n.updateQueue=i,n.flags|=4),Ji(f,!0),f.tail===null&&f.tailMode==="hidden"&&!y.alternate&&!xt)return Xt(n),null}else 2*Ot()-f.renderingStartTime>Jo&&i!==1073741824&&(n.flags|=128,l=!0,Ji(f,!1),n.lanes=4194304);f.isBackwards?(y.sibling=n.child,n.child=y):(i=f.last,i!==null?i.sibling=y:n.child=y,f.last=y)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=Ot(),n.sibling=null,i=Ct.current,ft(Ct,l?i&1|2:i&1),n):(Xt(n),null);case 22:case 23:return xc(),l=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(n.flags|=8192),l&&(n.mode&1)!==0?(yn&1073741824)!==0&&(Xt(n),n.subtreeFlags&6&&(n.flags|=8192)):Xt(n),null;case 24:return null;case 25:return null}throw Error(o(156,n.tag))}function b0(e,n){switch(Pu(n),n.tag){case 1:return sn(n.type)&&fl(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return qo(),gt(on),gt(qt),Bu(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return _u(n),null;case 13:if(gt(Ct),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(o(340));Vo()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return gt(Ct),null;case 4:return qo(),null;case 10:return ju(n.type._context),null;case 22:case 23:return xc(),null;case 24:return null;default:return null}}var $l=!1,Zt=!1,C0=typeof WeakSet=="function"?WeakSet:Set,fe=null;function Xo(e,n){var i=e.ref;if(i!==null)if(typeof i=="function")try{i(null)}catch(l){Tt(e,n,l)}else i.current=null}function lc(e,n,i){try{i()}catch(l){Tt(e,n,l)}}var hm=!1;function k0(e,n){if(xu=Zs,e=Kf(),du(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{i.nodeType,f.nodeType}catch{i=null;break e}var y=0,I=-1,L=-1,q=0,re=0,oe=e,ne=null;t:for(;;){for(var ue;oe!==i||c!==0&&oe.nodeType!==3||(I=y+c),oe!==f||l!==0&&oe.nodeType!==3||(L=y+l),oe.nodeType===3&&(y+=oe.nodeValue.length),(ue=oe.firstChild)!==null;)ne=oe,oe=ue;for(;;){if(oe===e)break t;if(ne===i&&++q===c&&(I=y),ne===f&&++re===l&&(L=y),(ue=oe.nextSibling)!==null)break;oe=ne,ne=oe.parentNode}oe=ue}i=I===-1||L===-1?null:{start:I,end:L}}else i=null}i=i||{start:0,end:0}}else i=null;for(Su={focusedElem:e,selectionRange:i},Zs=!1,fe=n;fe!==null;)if(n=fe,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,fe=e;else for(;fe!==null;){n=fe;try{var he=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(he!==null){var ve=he.memoizedProps,$t=he.memoizedState,W=n.stateNode,z=W.getSnapshotBeforeUpdate(n.elementType===n.type?ve:Hn(n.type,ve),$t);W.__reactInternalSnapshotBeforeUpdate=z}break;case 3:var H=n.stateNode.containerInfo;H.nodeType===1?H.textContent="":H.nodeType===9&&H.documentElement&&H.removeChild(H.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(o(163))}}catch(se){Tt(n,n.return,se)}if(e=n.sibling,e!==null){e.return=n.return,fe=e;break}fe=n.return}return he=hm,hm=!1,he}function es(e,n,i){var l=n.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var c=l=l.next;do{if((c.tag&e)===e){var f=c.destroy;c.destroy=void 0,f!==void 0&&lc(n,i,f)}c=c.next}while(c!==l)}}function Al(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var i=n=n.next;do{if((i.tag&e)===e){var l=i.create;i.destroy=l()}i=i.next}while(i!==n)}}function ac(e){var n=e.ref;if(n!==null){var i=e.stateNode;switch(e.tag){case 5:e=i;break;default:e=i}typeof n=="function"?n(e):n.current=e}}function gm(e){var n=e.alternate;n!==null&&(e.alternate=null,gm(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[qn],delete n[Ui],delete n[ku],delete n[s0],delete n[l0])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ym(e){return e.tag===5||e.tag===3||e.tag===4}function vm(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ym(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function uc(e,n,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?i.nodeType===8?i.parentNode.insertBefore(e,n):i.insertBefore(e,n):(i.nodeType===8?(n=i.parentNode,n.insertBefore(e,i)):(n=i,n.appendChild(e)),i=i._reactRootContainer,i!=null||n.onclick!==null||(n.onclick=cl));else if(l!==4&&(e=e.child,e!==null))for(uc(e,n,i),e=e.sibling;e!==null;)uc(e,n,i),e=e.sibling}function cc(e,n,i){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?i.insertBefore(e,n):i.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(cc(e,n,i),e=e.sibling;e!==null;)cc(e,n,i),e=e.sibling}var Gt=null,Vn=!1;function Hr(e,n,i){for(i=i.child;i!==null;)xm(e,n,i),i=i.sibling}function xm(e,n,i){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Gs,i)}catch{}switch(i.tag){case 5:Zt||Xo(i,n);case 6:var l=Gt,c=Vn;Gt=null,Hr(e,n,i),Gt=l,Vn=c,Gt!==null&&(Vn?(e=Gt,i=i.stateNode,e.nodeType===8?e.parentNode.removeChild(i):e.removeChild(i)):Gt.removeChild(i.stateNode));break;case 18:Gt!==null&&(Vn?(e=Gt,i=i.stateNode,e.nodeType===8?Cu(e.parentNode,i):e.nodeType===1&&Cu(e,i),$i(e)):Cu(Gt,i.stateNode));break;case 4:l=Gt,c=Vn,Gt=i.stateNode.containerInfo,Vn=!0,Hr(e,n,i),Gt=l,Vn=c;break;case 0:case 11:case 14:case 15:if(!Zt&&(l=i.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){c=l=l.next;do{var f=c,y=f.destroy;f=f.tag,y!==void 0&&((f&2)!==0||(f&4)!==0)&&lc(i,n,y),c=c.next}while(c!==l)}Hr(e,n,i);break;case 1:if(!Zt&&(Xo(i,n),l=i.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=i.memoizedProps,l.state=i.memoizedState,l.componentWillUnmount()}catch(I){Tt(i,n,I)}Hr(e,n,i);break;case 21:Hr(e,n,i);break;case 22:i.mode&1?(Zt=(l=Zt)||i.memoizedState!==null,Hr(e,n,i),Zt=l):Hr(e,n,i);break;default:Hr(e,n,i)}}function Sm(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var i=e.stateNode;i===null&&(i=e.stateNode=new C0),n.forEach(function(l){var c=A0.bind(null,e,l);i.has(l)||(i.add(l),l.then(c,c))})}}function Gn(e,n){var i=n.deletions;if(i!==null)for(var l=0;l<i.length;l++){var c=i[l];try{var f=e,y=n,I=y;e:for(;I!==null;){switch(I.tag){case 5:Gt=I.stateNode,Vn=!1;break e;case 3:Gt=I.stateNode.containerInfo,Vn=!0;break e;case 4:Gt=I.stateNode.containerInfo,Vn=!0;break e}I=I.return}if(Gt===null)throw Error(o(160));xm(f,y,c),Gt=null,Vn=!1;var L=c.alternate;L!==null&&(L.return=null),c.return=null}catch(q){Tt(c,n,q)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)wm(n,e),n=n.sibling}function wm(e,n){var i=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Gn(n,e),Zn(e),l&4){try{es(3,e,e.return),Al(3,e)}catch(ve){Tt(e,e.return,ve)}try{es(5,e,e.return)}catch(ve){Tt(e,e.return,ve)}}break;case 1:Gn(n,e),Zn(e),l&512&&i!==null&&Xo(i,i.return);break;case 5:if(Gn(n,e),Zn(e),l&512&&i!==null&&Xo(i,i.return),e.flags&32){var c=e.stateNode;try{Ae(c,"")}catch(ve){Tt(e,e.return,ve)}}if(l&4&&(c=e.stateNode,c!=null)){var f=e.memoizedProps,y=i!==null?i.memoizedProps:f,I=e.type,L=e.updateQueue;if(e.updateQueue=null,L!==null)try{I==="input"&&f.type==="radio"&&f.name!=null&&et(c,f),dt(I,y);var q=dt(I,f);for(y=0;y<L.length;y+=2){var re=L[y],oe=L[y+1];re==="style"?bt(c,oe):re==="dangerouslySetInnerHTML"?Ke(c,oe):re==="children"?Ae(c,oe):P(c,re,oe,q)}switch(I){case"input":Ve(c,f);break;case"textarea":Qe(c,f);break;case"select":var ne=c._wrapperState.wasMultiple;c._wrapperState.wasMultiple=!!f.multiple;var ue=f.value;ue!=null?_e(c,!!f.multiple,ue,!1):ne!==!!f.multiple&&(f.defaultValue!=null?_e(c,!!f.multiple,f.defaultValue,!0):_e(c,!!f.multiple,f.multiple?[]:"",!1))}c[Ui]=f}catch(ve){Tt(e,e.return,ve)}}break;case 6:if(Gn(n,e),Zn(e),l&4){if(e.stateNode===null)throw Error(o(162));c=e.stateNode,f=e.memoizedProps;try{c.nodeValue=f}catch(ve){Tt(e,e.return,ve)}}break;case 3:if(Gn(n,e),Zn(e),l&4&&i!==null&&i.memoizedState.isDehydrated)try{$i(n.containerInfo)}catch(ve){Tt(e,e.return,ve)}break;case 4:Gn(n,e),Zn(e);break;case 13:Gn(n,e),Zn(e),c=e.child,c.flags&8192&&(f=c.memoizedState!==null,c.stateNode.isHidden=f,!f||c.alternate!==null&&c.alternate.memoizedState!==null||(pc=Ot())),l&4&&Sm(e);break;case 22:if(re=i!==null&&i.memoizedState!==null,e.mode&1?(Zt=(q=Zt)||re,Gn(n,e),Zt=q):Gn(n,e),Zn(e),l&8192){if(q=e.memoizedState!==null,(e.stateNode.isHidden=q)&&!re&&(e.mode&1)!==0)for(fe=e,re=e.child;re!==null;){for(oe=fe=re;fe!==null;){switch(ne=fe,ue=ne.child,ne.tag){case 0:case 11:case 14:case 15:es(4,ne,ne.return);break;case 1:Xo(ne,ne.return);var he=ne.stateNode;if(typeof he.componentWillUnmount=="function"){l=ne,i=ne.return;try{n=l,he.props=n.memoizedProps,he.state=n.memoizedState,he.componentWillUnmount()}catch(ve){Tt(l,i,ve)}}break;case 5:Xo(ne,ne.return);break;case 22:if(ne.memoizedState!==null){km(oe);continue}}ue!==null?(ue.return=ne,fe=ue):km(oe)}re=re.sibling}e:for(re=null,oe=e;;){if(oe.tag===5){if(re===null){re=oe;try{c=oe.stateNode,q?(f=c.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(I=oe.stateNode,L=oe.memoizedProps.style,y=L!=null&&L.hasOwnProperty("display")?L.display:null,I.style.display=He("display",y))}catch(ve){Tt(e,e.return,ve)}}}else if(oe.tag===6){if(re===null)try{oe.stateNode.nodeValue=q?"":oe.memoizedProps}catch(ve){Tt(e,e.return,ve)}}else if((oe.tag!==22&&oe.tag!==23||oe.memoizedState===null||oe===e)&&oe.child!==null){oe.child.return=oe,oe=oe.child;continue}if(oe===e)break e;for(;oe.sibling===null;){if(oe.return===null||oe.return===e)break e;re===oe&&(re=null),oe=oe.return}re===oe&&(re=null),oe.sibling.return=oe.return,oe=oe.sibling}}break;case 19:Gn(n,e),Zn(e),l&4&&Sm(e);break;case 21:break;default:Gn(n,e),Zn(e)}}function Zn(e){var n=e.flags;if(n&2){try{e:{for(var i=e.return;i!==null;){if(ym(i)){var l=i;break e}i=i.return}throw Error(o(160))}switch(l.tag){case 5:var c=l.stateNode;l.flags&32&&(Ae(c,""),l.flags&=-33);var f=vm(e);cc(e,f,c);break;case 3:case 4:var y=l.stateNode.containerInfo,I=vm(e);uc(e,I,y);break;default:throw Error(o(161))}}catch(L){Tt(e,e.return,L)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function E0(e,n,i){fe=e,bm(e)}function bm(e,n,i){for(var l=(e.mode&1)!==0;fe!==null;){var c=fe,f=c.child;if(c.tag===22&&l){var y=c.memoizedState!==null||$l;if(!y){var I=c.alternate,L=I!==null&&I.memoizedState!==null||Zt;I=$l;var q=Zt;if($l=y,(Zt=L)&&!q)for(fe=c;fe!==null;)y=fe,L=y.child,y.tag===22&&y.memoizedState!==null?Em(c):L!==null?(L.return=y,fe=L):Em(c);for(;f!==null;)fe=f,bm(f),f=f.sibling;fe=c,$l=I,Zt=q}Cm(e)}else(c.subtreeFlags&8772)!==0&&f!==null?(f.return=c,fe=f):Cm(e)}}function Cm(e){for(;fe!==null;){var n=fe;if((n.flags&8772)!==0){var i=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Zt||Al(5,n);break;case 1:var l=n.stateNode;if(n.flags&4&&!Zt)if(i===null)l.componentDidMount();else{var c=n.elementType===n.type?i.memoizedProps:Hn(n.type,i.memoizedProps);l.componentDidUpdate(c,i.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=n.updateQueue;f!==null&&kp(n,f,l);break;case 3:var y=n.updateQueue;if(y!==null){if(i=null,n.child!==null)switch(n.child.tag){case 5:i=n.child.stateNode;break;case 1:i=n.child.stateNode}kp(n,y,i)}break;case 5:var I=n.stateNode;if(i===null&&n.flags&4){i=I;var L=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":L.autoFocus&&i.focus();break;case"img":L.src&&(i.src=L.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var q=n.alternate;if(q!==null){var re=q.memoizedState;if(re!==null){var oe=re.dehydrated;oe!==null&&$i(oe)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(o(163))}Zt||n.flags&512&&ac(n)}catch(ne){Tt(n,n.return,ne)}}if(n===e){fe=null;break}if(i=n.sibling,i!==null){i.return=n.return,fe=i;break}fe=n.return}}function km(e){for(;fe!==null;){var n=fe;if(n===e){fe=null;break}var i=n.sibling;if(i!==null){i.return=n.return,fe=i;break}fe=n.return}}function Em(e){for(;fe!==null;){var n=fe;try{switch(n.tag){case 0:case 11:case 15:var i=n.return;try{Al(4,n)}catch(L){Tt(n,i,L)}break;case 1:var l=n.stateNode;if(typeof l.componentDidMount=="function"){var c=n.return;try{l.componentDidMount()}catch(L){Tt(n,c,L)}}var f=n.return;try{ac(n)}catch(L){Tt(n,f,L)}break;case 5:var y=n.return;try{ac(n)}catch(L){Tt(n,y,L)}}}catch(L){Tt(n,n.return,L)}if(n===e){fe=null;break}var I=n.sibling;if(I!==null){I.return=n.return,fe=I;break}fe=n.return}}var R0=Math.ceil,jl=R.ReactCurrentDispatcher,dc=R.ReactCurrentOwner,Mn=R.ReactCurrentBatchConfig,qe=0,Wt=null,Lt=null,Kt=0,yn=0,Zo=_r(0),Dt=0,ts=null,yo=0,Ll=0,fc=0,ns=null,an=null,pc=0,Jo=1/0,wr=null,Fl=!1,mc=null,Vr=null,Nl=!1,Gr=null,zl=0,rs=0,hc=null,_l=-1,Dl=0;function rn(){return(qe&6)!==0?Ot():_l!==-1?_l:_l=Ot()}function Kr(e){return(e.mode&1)===0?1:(qe&2)!==0&&Kt!==0?Kt&-Kt:u0.transition!==null?(Dl===0&&(Dl=vf()),Dl):(e=ot,e!==0||(e=window.event,e=e===void 0?16:Tf(e.type)),e)}function Kn(e,n,i,l){if(50<rs)throw rs=0,hc=null,Error(o(185));Ti(e,i,l),((qe&2)===0||e!==Wt)&&(e===Wt&&((qe&2)===0&&(Ll|=i),Dt===4&&Yr(e,Kt)),un(e,l),i===1&&qe===0&&(n.mode&1)===0&&(Jo=Ot()+500,ml&&Br()))}function un(e,n){var i=e.callbackNode;uv(e,n);var l=qs(e,e===Wt?Kt:0);if(l===0)i!==null&&Ei(i),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(i!=null&&Ei(i),n===1)e.tag===0?a0(Tm.bind(null,e)):fp(Tm.bind(null,e)),o0(function(){(qe&6)===0&&Br()}),i=null;else{switch(xf(l)){case 1:i=Ya;break;case 4:i=gf;break;case 16:i=Vs;break;case 536870912:i=yf;break;default:i=Vs}i=Lm(i,Rm.bind(null,e))}e.callbackPriority=n,e.callbackNode=i}}function Rm(e,n){if(_l=-1,Dl=0,(qe&6)!==0)throw Error(o(327));var i=e.callbackNode;if(ei()&&e.callbackNode!==i)return null;var l=qs(e,e===Wt?Kt:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||n)n=Bl(e,l);else{n=l;var c=qe;qe|=2;var f=Mm();(Wt!==e||Kt!==n)&&(wr=null,Jo=Ot()+500,xo(e,n));do try{M0();break}catch(I){Pm(e,I)}while(!0);Au(),jl.current=f,qe=c,Lt!==null?n=0:(Wt=null,Kt=0,n=Dt)}if(n!==0){if(n===2&&(c=qa(e),c!==0&&(l=c,n=gc(e,c))),n===1)throw i=ts,xo(e,0),Yr(e,l),un(e,Ot()),i;if(n===6)Yr(e,l);else{if(c=e.current.alternate,(l&30)===0&&!T0(c)&&(n=Bl(e,l),n===2&&(f=qa(e),f!==0&&(l=f,n=gc(e,f))),n===1))throw i=ts,xo(e,0),Yr(e,l),un(e,Ot()),i;switch(e.finishedWork=c,e.finishedLanes=l,n){case 0:case 1:throw Error(o(345));case 2:So(e,an,wr);break;case 3:if(Yr(e,l),(l&130023424)===l&&(n=pc+500-Ot(),10<n)){if(qs(e,0)!==0)break;if(c=e.suspendedLanes,(c&l)!==l){rn(),e.pingedLanes|=e.suspendedLanes&c;break}e.timeoutHandle=bu(So.bind(null,e,an,wr),n);break}So(e,an,wr);break;case 4:if(Yr(e,l),(l&4194240)===l)break;for(n=e.eventTimes,c=-1;0<l;){var y=31-Bn(l);f=1<<y,y=n[y],y>c&&(c=y),l&=~f}if(l=c,l=Ot()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*R0(l/1960))-l,10<l){e.timeoutHandle=bu(So.bind(null,e,an,wr),l);break}So(e,an,wr);break;case 5:So(e,an,wr);break;default:throw Error(o(329))}}}return un(e,Ot()),e.callbackNode===i?Rm.bind(null,e):null}function gc(e,n){var i=ns;return e.current.memoizedState.isDehydrated&&(xo(e,n).flags|=256),e=Bl(e,n),e!==2&&(n=an,an=i,n!==null&&yc(n)),e}function yc(e){an===null?an=e:an.push.apply(an,e)}function T0(e){for(var n=e;;){if(n.flags&16384){var i=n.updateQueue;if(i!==null&&(i=i.stores,i!==null))for(var l=0;l<i.length;l++){var c=i[l],f=c.getSnapshot;c=c.value;try{if(!Wn(f(),c))return!1}catch{return!1}}}if(i=n.child,n.subtreeFlags&16384&&i!==null)i.return=n,n=i;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function Yr(e,n){for(n&=~fc,n&=~Ll,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var i=31-Bn(n),l=1<<i;e[i]=-1,n&=~l}}function Tm(e){if((qe&6)!==0)throw Error(o(327));ei();var n=qs(e,0);if((n&1)===0)return un(e,Ot()),null;var i=Bl(e,n);if(e.tag!==0&&i===2){var l=qa(e);l!==0&&(n=l,i=gc(e,l))}if(i===1)throw i=ts,xo(e,0),Yr(e,n),un(e,Ot()),i;if(i===6)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,So(e,an,wr),un(e,Ot()),null}function vc(e,n){var i=qe;qe|=1;try{return e(n)}finally{qe=i,qe===0&&(Jo=Ot()+500,ml&&Br())}}function vo(e){Gr!==null&&Gr.tag===0&&(qe&6)===0&&ei();var n=qe;qe|=1;var i=Mn.transition,l=ot;try{if(Mn.transition=null,ot=1,e)return e()}finally{ot=l,Mn.transition=i,qe=n,(qe&6)===0&&Br()}}function xc(){yn=Zo.current,gt(Zo)}function xo(e,n){e.finishedWork=null,e.finishedLanes=0;var i=e.timeoutHandle;if(i!==-1&&(e.timeoutHandle=-1,r0(i)),Lt!==null)for(i=Lt.return;i!==null;){var l=i;switch(Pu(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&fl();break;case 3:qo(),gt(on),gt(qt),Bu();break;case 5:_u(l);break;case 4:qo();break;case 13:gt(Ct);break;case 19:gt(Ct);break;case 10:ju(l.type._context);break;case 22:case 23:xc()}i=i.return}if(Wt=e,Lt=e=qr(e.current,null),Kt=yn=n,Dt=0,ts=null,fc=Ll=yo=0,an=ns=null,mo!==null){for(n=0;n<mo.length;n++)if(i=mo[n],l=i.interleaved,l!==null){i.interleaved=null;var c=l.next,f=i.pending;if(f!==null){var y=f.next;f.next=c,l.next=y}i.pending=l}mo=null}return e}function Pm(e,n){do{var i=Lt;try{if(Au(),kl.current=Pl,El){for(var l=kt.memoizedState;l!==null;){var c=l.queue;c!==null&&(c.pending=null),l=l.next}El=!1}if(go=0,Bt=_t=kt=null,qi=!1,Qi=0,dc.current=null,i===null||i.return===null){Dt=1,ts=n,Lt=null;break}e:{var f=e,y=i.return,I=i,L=n;if(n=Kt,I.flags|=32768,L!==null&&typeof L=="object"&&typeof L.then=="function"){var q=L,re=I,oe=re.tag;if((re.mode&1)===0&&(oe===0||oe===11||oe===15)){var ne=re.alternate;ne?(re.updateQueue=ne.updateQueue,re.memoizedState=ne.memoizedState,re.lanes=ne.lanes):(re.updateQueue=null,re.memoizedState=null)}var ue=Jp(y);if(ue!==null){ue.flags&=-257,em(ue,y,I,f,n),ue.mode&1&&Zp(f,q,n),n=ue,L=q;var he=n.updateQueue;if(he===null){var ve=new Set;ve.add(L),n.updateQueue=ve}else he.add(L);break e}else{if((n&1)===0){Zp(f,q,n),Sc();break e}L=Error(o(426))}}else if(xt&&I.mode&1){var $t=Jp(y);if($t!==null){($t.flags&65536)===0&&($t.flags|=256),em($t,y,I,f,n),Ou(Qo(L,I));break e}}f=L=Qo(L,I),Dt!==4&&(Dt=2),ns===null?ns=[f]:ns.push(f),f=y;do{switch(f.tag){case 3:f.flags|=65536,n&=-n,f.lanes|=n;var W=Qp(f,L,n);Cp(f,W);break e;case 1:I=L;var z=f.type,H=f.stateNode;if((f.flags&128)===0&&(typeof z.getDerivedStateFromError=="function"||H!==null&&typeof H.componentDidCatch=="function"&&(Vr===null||!Vr.has(H)))){f.flags|=65536,n&=-n,f.lanes|=n;var se=Xp(f,I,n);Cp(f,se);break e}}f=f.return}while(f!==null)}Om(i)}catch(Se){n=Se,Lt===i&&i!==null&&(Lt=i=i.return);continue}break}while(!0)}function Mm(){var e=jl.current;return jl.current=Pl,e===null?Pl:e}function Sc(){(Dt===0||Dt===3||Dt===2)&&(Dt=4),Wt===null||(yo&268435455)===0&&(Ll&268435455)===0||Yr(Wt,Kt)}function Bl(e,n){var i=qe;qe|=2;var l=Mm();(Wt!==e||Kt!==n)&&(wr=null,xo(e,n));do try{P0();break}catch(c){Pm(e,c)}while(!0);if(Au(),qe=i,jl.current=l,Lt!==null)throw Error(o(261));return Wt=null,Kt=0,Dt}function P0(){for(;Lt!==null;)Im(Lt)}function M0(){for(;Lt!==null&&!Hs();)Im(Lt)}function Im(e){var n=jm(e.alternate,e,yn);e.memoizedProps=e.pendingProps,n===null?Om(e):Lt=n,dc.current=null}function Om(e){var n=e;do{var i=n.alternate;if(e=n.return,(n.flags&32768)===0){if(i=w0(i,n,yn),i!==null){Lt=i;return}}else{if(i=b0(i,n),i!==null){i.flags&=32767,Lt=i;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Dt=6,Lt=null;return}}if(n=n.sibling,n!==null){Lt=n;return}Lt=n=e}while(n!==null);Dt===0&&(Dt=5)}function So(e,n,i){var l=ot,c=Mn.transition;try{Mn.transition=null,ot=1,I0(e,n,i,l)}finally{Mn.transition=c,ot=l}return null}function I0(e,n,i,l){do ei();while(Gr!==null);if((qe&6)!==0)throw Error(o(327));i=e.finishedWork;var c=e.finishedLanes;if(i===null)return null;if(e.finishedWork=null,e.finishedLanes=0,i===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var f=i.lanes|i.childLanes;if(cv(e,f),e===Wt&&(Lt=Wt=null,Kt=0),(i.subtreeFlags&2064)===0&&(i.flags&2064)===0||Nl||(Nl=!0,Lm(Vs,function(){return ei(),null})),f=(i.flags&15990)!==0,(i.subtreeFlags&15990)!==0||f){f=Mn.transition,Mn.transition=null;var y=ot;ot=1;var I=qe;qe|=4,dc.current=null,k0(e,i),wm(i,e),Qv(Su),Zs=!!xu,Su=xu=null,e.current=i,E0(i),tv(),qe=I,ot=y,Mn.transition=f}else e.current=i;if(Nl&&(Nl=!1,Gr=e,zl=c),f=e.pendingLanes,f===0&&(Vr=null),ov(i.stateNode),un(e,Ot()),n!==null)for(l=e.onRecoverableError,i=0;i<n.length;i++)c=n[i],l(c.value,{componentStack:c.stack,digest:c.digest});if(Fl)throw Fl=!1,e=mc,mc=null,e;return(zl&1)!==0&&e.tag!==0&&ei(),f=e.pendingLanes,(f&1)!==0?e===hc?rs++:(rs=0,hc=e):rs=0,Br(),null}function ei(){if(Gr!==null){var e=xf(zl),n=Mn.transition,i=ot;try{if(Mn.transition=null,ot=16>e?16:e,Gr===null)var l=!1;else{if(e=Gr,Gr=null,zl=0,(qe&6)!==0)throw Error(o(331));var c=qe;for(qe|=4,fe=e.current;fe!==null;){var f=fe,y=f.child;if((fe.flags&16)!==0){var I=f.deletions;if(I!==null){for(var L=0;L<I.length;L++){var q=I[L];for(fe=q;fe!==null;){var re=fe;switch(re.tag){case 0:case 11:case 15:es(8,re,f)}var oe=re.child;if(oe!==null)oe.return=re,fe=oe;else for(;fe!==null;){re=fe;var ne=re.sibling,ue=re.return;if(gm(re),re===q){fe=null;break}if(ne!==null){ne.return=ue,fe=ne;break}fe=ue}}}var he=f.alternate;if(he!==null){var ve=he.child;if(ve!==null){he.child=null;do{var $t=ve.sibling;ve.sibling=null,ve=$t}while(ve!==null)}}fe=f}}if((f.subtreeFlags&2064)!==0&&y!==null)y.return=f,fe=y;else e:for(;fe!==null;){if(f=fe,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:es(9,f,f.return)}var W=f.sibling;if(W!==null){W.return=f.return,fe=W;break e}fe=f.return}}var z=e.current;for(fe=z;fe!==null;){y=fe;var H=y.child;if((y.subtreeFlags&2064)!==0&&H!==null)H.return=y,fe=H;else e:for(y=z;fe!==null;){if(I=fe,(I.flags&2048)!==0)try{switch(I.tag){case 0:case 11:case 15:Al(9,I)}}catch(Se){Tt(I,I.return,Se)}if(I===y){fe=null;break e}var se=I.sibling;if(se!==null){se.return=I.return,fe=se;break e}fe=I.return}}if(qe=c,Br(),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Gs,e)}catch{}l=!0}return l}finally{ot=i,Mn.transition=n}}return!1}function $m(e,n,i){n=Qo(i,n),n=Qp(e,n,1),e=Ur(e,n,1),n=rn(),e!==null&&(Ti(e,1,n),un(e,n))}function Tt(e,n,i){if(e.tag===3)$m(e,e,i);else for(;n!==null;){if(n.tag===3){$m(n,e,i);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Vr===null||!Vr.has(l))){e=Qo(i,e),e=Xp(n,e,1),n=Ur(n,e,1),e=rn(),n!==null&&(Ti(n,1,e),un(n,e));break}}n=n.return}}function O0(e,n,i){var l=e.pingCache;l!==null&&l.delete(n),n=rn(),e.pingedLanes|=e.suspendedLanes&i,Wt===e&&(Kt&i)===i&&(Dt===4||Dt===3&&(Kt&130023424)===Kt&&500>Ot()-pc?xo(e,0):fc|=i),un(e,n)}function Am(e,n){n===0&&((e.mode&1)===0?n=1:(n=Ys,Ys<<=1,(Ys&130023424)===0&&(Ys=4194304)));var i=rn();e=vr(e,n),e!==null&&(Ti(e,n,i),un(e,i))}function $0(e){var n=e.memoizedState,i=0;n!==null&&(i=n.retryLane),Am(e,i)}function A0(e,n){var i=0;switch(e.tag){case 13:var l=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(o(314))}l!==null&&l.delete(n),Am(e,i)}var jm;jm=function(e,n,i){if(e!==null)if(e.memoizedProps!==n.pendingProps||on.current)ln=!0;else{if((e.lanes&i)===0&&(n.flags&128)===0)return ln=!1,S0(e,n,i);ln=(e.flags&131072)!==0}else ln=!1,xt&&(n.flags&1048576)!==0&&pp(n,gl,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;Ol(e,n),e=n.pendingProps;var c=Wo(n,qt.current);Yo(n,i),c=Hu(null,n,l,e,c,i);var f=Vu();return n.flags|=1,typeof c=="object"&&c!==null&&typeof c.render=="function"&&c.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,sn(l)?(f=!0,pl(n)):f=!1,n.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,Nu(n),c.updater=Ml,n.stateNode=c,c._reactInternals=n,Xu(n,l,e,i),n=tc(null,n,l,!0,f,i)):(n.tag=0,xt&&f&&Tu(n),nn(null,n,c,i),n=n.child),n;case 16:l=n.elementType;e:{switch(Ol(e,n),e=n.pendingProps,c=l._init,l=c(l._payload),n.type=l,c=n.tag=L0(l),e=Hn(l,e),c){case 0:n=ec(null,n,l,e,i);break e;case 1:n=sm(null,n,l,e,i);break e;case 11:n=tm(null,n,l,e,i);break e;case 14:n=nm(null,n,l,Hn(l.type,e),i);break e}throw Error(o(306,l,""))}return n;case 0:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:Hn(l,c),ec(e,n,l,c,i);case 1:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:Hn(l,c),sm(e,n,l,c,i);case 3:e:{if(lm(n),e===null)throw Error(o(387));l=n.pendingProps,f=n.memoizedState,c=f.element,bp(e,n),bl(n,l,null,i);var y=n.memoizedState;if(l=y.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:y.cache,pendingSuspenseBoundaries:y.pendingSuspenseBoundaries,transitions:y.transitions},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){c=Qo(Error(o(423)),n),n=am(e,n,l,i,c);break e}else if(l!==c){c=Qo(Error(o(424)),n),n=am(e,n,l,i,c);break e}else for(gn=zr(n.stateNode.containerInfo.firstChild),hn=n,xt=!0,Un=null,i=Sp(n,null,l,i),n.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling;else{if(Vo(),l===c){n=Sr(e,n,i);break e}nn(e,n,l,i)}n=n.child}return n;case 5:return Ep(n),e===null&&Iu(n),l=n.type,c=n.pendingProps,f=e!==null?e.memoizedProps:null,y=c.children,wu(l,c)?y=null:f!==null&&wu(l,f)&&(n.flags|=32),im(e,n),nn(e,n,y,i),n.child;case 6:return e===null&&Iu(n),null;case 13:return um(e,n,i);case 4:return zu(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=Go(n,null,l,i):nn(e,n,l,i),n.child;case 11:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:Hn(l,c),tm(e,n,l,c,i);case 7:return nn(e,n,n.pendingProps,i),n.child;case 8:return nn(e,n,n.pendingProps.children,i),n.child;case 12:return nn(e,n,n.pendingProps.children,i),n.child;case 10:e:{if(l=n.type._context,c=n.pendingProps,f=n.memoizedProps,y=c.value,ft(xl,l._currentValue),l._currentValue=y,f!==null)if(Wn(f.value,y)){if(f.children===c.children&&!on.current){n=Sr(e,n,i);break e}}else for(f=n.child,f!==null&&(f.return=n);f!==null;){var I=f.dependencies;if(I!==null){y=f.child;for(var L=I.firstContext;L!==null;){if(L.context===l){if(f.tag===1){L=xr(-1,i&-i),L.tag=2;var q=f.updateQueue;if(q!==null){q=q.shared;var re=q.pending;re===null?L.next=L:(L.next=re.next,re.next=L),q.pending=L}}f.lanes|=i,L=f.alternate,L!==null&&(L.lanes|=i),Lu(f.return,i,n),I.lanes|=i;break}L=L.next}}else if(f.tag===10)y=f.type===n.type?null:f.child;else if(f.tag===18){if(y=f.return,y===null)throw Error(o(341));y.lanes|=i,I=y.alternate,I!==null&&(I.lanes|=i),Lu(y,i,n),y=f.sibling}else y=f.child;if(y!==null)y.return=f;else for(y=f;y!==null;){if(y===n){y=null;break}if(f=y.sibling,f!==null){f.return=y.return,y=f;break}y=y.return}f=y}nn(e,n,c.children,i),n=n.child}return n;case 9:return c=n.type,l=n.pendingProps.children,Yo(n,i),c=Tn(c),l=l(c),n.flags|=1,nn(e,n,l,i),n.child;case 14:return l=n.type,c=Hn(l,n.pendingProps),c=Hn(l.type,c),nm(e,n,l,c,i);case 15:return rm(e,n,n.type,n.pendingProps,i);case 17:return l=n.type,c=n.pendingProps,c=n.elementType===l?c:Hn(l,c),Ol(e,n),n.tag=1,sn(l)?(e=!0,pl(n)):e=!1,Yo(n,i),Yp(n,l,c),Xu(n,l,c,i),tc(null,n,l,!0,e,i);case 19:return dm(e,n,i);case 22:return om(e,n,i)}throw Error(o(156,n.tag))};function Lm(e,n){return pr(e,n)}function j0(e,n,i,l){this.tag=e,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,n,i,l){return new j0(e,n,i,l)}function wc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function L0(e){if(typeof e=="function")return wc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===V)return 11;if(e===Q)return 14}return 2}function qr(e,n){var i=e.alternate;return i===null?(i=In(e.tag,n,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=n,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&14680064,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,n=e.dependencies,i.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i}function Wl(e,n,i,l,c,f){var y=2;if(l=e,typeof e=="function")wc(e)&&(y=1);else if(typeof e=="string")y=5;else e:switch(e){case F:return wo(i.children,c,f,n);case D:y=8,c|=8;break;case B:return e=In(12,i,n,c|2),e.elementType=B,e.lanes=f,e;case G:return e=In(13,i,n,c),e.elementType=G,e.lanes=f,e;case te:return e=In(19,i,n,c),e.elementType=te,e.lanes=f,e;case J:return Ul(i,c,f,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case g:y=10;break e;case N:y=9;break e;case V:y=11;break e;case Q:y=14;break e;case U:y=16,l=null;break e}throw Error(o(130,e==null?e:typeof e,""))}return n=In(y,i,n,c),n.elementType=e,n.type=l,n.lanes=f,n}function wo(e,n,i,l){return e=In(7,e,l,n),e.lanes=i,e}function Ul(e,n,i,l){return e=In(22,e,l,n),e.elementType=J,e.lanes=i,e.stateNode={isHidden:!1},e}function bc(e,n,i){return e=In(6,e,null,n),e.lanes=i,e}function Cc(e,n,i){return n=In(4,e.children!==null?e.children:[],e.key,n),n.lanes=i,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function F0(e,n,i,l,c){this.tag=n,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Qa(0),this.expirationTimes=Qa(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qa(0),this.identifierPrefix=l,this.onRecoverableError=c,this.mutableSourceEagerHydrationData=null}function kc(e,n,i,l,c,f,y,I,L){return e=new F0(e,n,i,I,L),n===1?(n=1,f===!0&&(n|=8)):n=0,f=In(3,null,null,n),e.current=f,f.stateNode=e,f.memoizedState={element:l,isDehydrated:i,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nu(f),e}function N0(e,n,i){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:l==null?null:""+l,children:e,containerInfo:n,implementation:i}}function Fm(e){if(!e)return Dr;e=e._reactInternals;e:{if(Fe(e)!==e||e.tag!==1)throw Error(o(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(sn(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(o(171))}if(e.tag===1){var i=e.type;if(sn(i))return cp(e,i,n)}return n}function Nm(e,n,i,l,c,f,y,I,L){return e=kc(i,l,!0,e,c,f,y,I,L),e.context=Fm(null),i=e.current,l=rn(),c=Kr(i),f=xr(l,c),f.callback=n??null,Ur(i,f,c),e.current.lanes=c,Ti(e,c,l),un(e,l),e}function Hl(e,n,i,l){var c=n.current,f=rn(),y=Kr(c);return i=Fm(i),n.context===null?n.context=i:n.pendingContext=i,n=xr(f,y),n.payload={element:e},l=l===void 0?null:l,l!==null&&(n.callback=l),e=Ur(c,n,y),e!==null&&(Kn(e,c,y,f),wl(e,c,y)),y}function Vl(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function zm(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<n?i:n}}function Ec(e,n){zm(e,n),(e=e.alternate)&&zm(e,n)}function z0(){return null}var _m=typeof reportError=="function"?reportError:function(e){console.error(e)};function Rc(e){this._internalRoot=e}Gl.prototype.render=Rc.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(o(409));Hl(e,n,null,null)},Gl.prototype.unmount=Rc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;vo(function(){Hl(null,e,null,null)}),n[mr]=null}};function Gl(e){this._internalRoot=e}Gl.prototype.unstable_scheduleHydration=function(e){if(e){var n=bf();e={blockedOn:null,target:e,priority:n};for(var i=0;i<Lr.length&&n!==0&&n<Lr[i].priority;i++);Lr.splice(i,0,e),i===0&&Ef(e)}};function Tc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Kl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Dm(){}function _0(e,n,i,l,c){if(c){if(typeof l=="function"){var f=l;l=function(){var q=Vl(y);f.call(q)}}var y=Nm(n,l,e,0,null,!1,!1,"",Dm);return e._reactRootContainer=y,e[mr]=y.current,Bi(e.nodeType===8?e.parentNode:e),vo(),y}for(;c=e.lastChild;)e.removeChild(c);if(typeof l=="function"){var I=l;l=function(){var q=Vl(L);I.call(q)}}var L=kc(e,0,!1,null,null,!1,!1,"",Dm);return e._reactRootContainer=L,e[mr]=L.current,Bi(e.nodeType===8?e.parentNode:e),vo(function(){Hl(n,L,i,l)}),L}function Yl(e,n,i,l,c){var f=i._reactRootContainer;if(f){var y=f;if(typeof c=="function"){var I=c;c=function(){var L=Vl(y);I.call(L)}}Hl(n,y,e,c)}else y=_0(i,n,e,c,l);return Vl(y)}Sf=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var i=Ri(n.pendingLanes);i!==0&&(Xa(n,i|1),un(n,Ot()),(qe&6)===0&&(Jo=Ot()+500,Br()))}break;case 13:vo(function(){var l=vr(e,1);if(l!==null){var c=rn();Kn(l,e,1,c)}}),Ec(e,1)}},Za=function(e){if(e.tag===13){var n=vr(e,134217728);if(n!==null){var i=rn();Kn(n,e,134217728,i)}Ec(e,134217728)}},wf=function(e){if(e.tag===13){var n=Kr(e),i=vr(e,n);if(i!==null){var l=rn();Kn(i,e,n,l)}Ec(e,n)}},bf=function(){return ot},Cf=function(e,n){var i=ot;try{return ot=e,n()}finally{ot=i}},ro=function(e,n,i){switch(n){case"input":if(Ve(e,i),n=i.name,i.type==="radio"&&n!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<i.length;n++){var l=i[n];if(l!==e&&l.form===e.form){var c=dl(l);if(!c)throw Error(o(90));be(l),Ve(l,c)}}}break;case"textarea":Qe(e,i);break;case"select":n=i.value,n!=null&&_e(e,!!i.multiple,n,!1)}},ur=vc,Oe=vo;var D0={usingClientEntryPoint:!1,Events:[Hi,Do,dl,$o,oo,vc]},os={findFiberByHostInstance:uo,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},B0={bundleType:os.bundleType,version:os.version,rendererPackageName:os.rendererPackageName,rendererConfig:os.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ki(e),e===null?null:e.stateNode},findFiberByHostInstance:os.findFiberByHostInstance||z0,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ql=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ql.isDisabled&&ql.supportsFiber)try{Gs=ql.inject(B0),Yn=ql}catch{}}return cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=D0,cn.createPortal=function(e,n){var i=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Tc(n))throw Error(o(200));return N0(e,n,null,i)},cn.createRoot=function(e,n){if(!Tc(e))throw Error(o(299));var i=!1,l="",c=_m;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(c=n.onRecoverableError)),n=kc(e,1,!1,null,null,i,!1,l,c),e[mr]=n.current,Bi(e.nodeType===8?e.parentNode:e),new Rc(n)},cn.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(o(188)):(e=Object.keys(e).join(","),Error(o(268,e)));return e=ki(n),e=e===null?null:e.stateNode,e},cn.flushSync=function(e){return vo(e)},cn.hydrate=function(e,n,i){if(!Kl(n))throw Error(o(200));return Yl(null,e,n,!0,i)},cn.hydrateRoot=function(e,n,i){if(!Tc(e))throw Error(o(405));var l=i!=null&&i.hydratedSources||null,c=!1,f="",y=_m;if(i!=null&&(i.unstable_strictMode===!0&&(c=!0),i.identifierPrefix!==void 0&&(f=i.identifierPrefix),i.onRecoverableError!==void 0&&(y=i.onRecoverableError)),n=Nm(n,null,e,1,i??null,c,!1,f,y),e[mr]=n.current,Bi(e),l)for(e=0;e<l.length;e++)i=l[e],c=i._getVersion,c=c(i._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[i,c]:n.mutableSourceEagerHydrationData.push(i,c);return new Gl(n)},cn.render=function(e,n,i){if(!Kl(n))throw Error(o(200));return Yl(null,e,n,!1,i)},cn.unmountComponentAtNode=function(e){if(!Kl(e))throw Error(o(40));return e._reactRootContainer?(vo(function(){Yl(null,null,e,!1,function(){e._reactRootContainer=null,e[mr]=null})}),!0):!1},cn.unstable_batchedUpdates=vc,cn.unstable_renderSubtreeIntoContainer=function(e,n,i,l){if(!Kl(i))throw Error(o(200));if(e==null||e._reactInternals===void 0)throw Error(o(38));return Yl(e,n,i,!1,l)},cn.version="18.3.1-next-f1338f8080-20240426",cn}var Ym;function Ng(){if(Ym)return Ic.exports;Ym=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Ic.exports=X0(),Ic.exports}var qm;function Z0(){if(qm)return Ql;qm=1;var t=Ng();return Ql.createRoot=t.createRoot,Ql.hydrateRoot=t.hydrateRoot,Ql}var J0=Z0();function Tr(t,...r){const o=new URL(`https://mui.com/production-error/?code=${t}`);return r.forEach(s=>o.searchParams.append("args[]",s)),`Minified MUI error #${t}; visit ${o} for the full message.`}const or="$$material";function ya(){return ya=Object.assign?Object.assign.bind():function(t){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var s in o)({}).hasOwnProperty.call(o,s)&&(t[s]=o[s])}return t},ya.apply(null,arguments)}function ex(t){if(t.sheet)return t.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===t)return document.styleSheets[r]}function tx(t){var r=document.createElement("style");return r.setAttribute("data-emotion",t.key),t.nonce!==void 0&&r.setAttribute("nonce",t.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var nx=(function(){function t(o){var s=this;this._insertTag=function(a){var u;s.tags.length===0?s.insertionPoint?u=s.insertionPoint.nextSibling:s.prepend?u=s.container.firstChild:u=s.before:u=s.tags[s.tags.length-1].nextSibling,s.container.insertBefore(a,u),s.tags.push(a)},this.isSpeedy=o.speedy===void 0?!0:o.speedy,this.tags=[],this.ctr=0,this.nonce=o.nonce,this.key=o.key,this.container=o.container,this.prepend=o.prepend,this.insertionPoint=o.insertionPoint,this.before=null}var r=t.prototype;return r.hydrate=function(s){s.forEach(this._insertTag)},r.insert=function(s){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(tx(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var u=ex(a);try{u.insertRule(s,u.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(s));this.ctr++},r.flush=function(){this.tags.forEach(function(s){var a;return(a=s.parentNode)==null?void 0:a.removeChild(s)}),this.tags=[],this.ctr=0},t})(),Jt="-ms-",va="-moz-",Ze="-webkit-",zg="comm",kd="rule",Ed="decl",rx="@import",_g="@keyframes",ox="@layer",ix=Math.abs,Pa=String.fromCharCode,sx=Object.assign;function lx(t,r){return Yt(t,0)^45?(((r<<2^Yt(t,0))<<2^Yt(t,1))<<2^Yt(t,2))<<2^Yt(t,3):0}function Dg(t){return t.trim()}function ax(t,r){return(t=r.exec(t))?t[0]:t}function Je(t,r,o){return t.replace(r,o)}function Jc(t,r){return t.indexOf(r)}function Yt(t,r){return t.charCodeAt(r)|0}function Ps(t,r,o){return t.slice(r,o)}function tr(t){return t.length}function Rd(t){return t.length}function Xl(t,r){return r.push(t),t}function ux(t,r){return t.map(r).join("")}var Ma=1,fi=1,Bg=0,pn=0,Ft=0,vi="";function Ia(t,r,o,s,a,u,d){return{value:t,root:r,parent:o,type:s,props:a,children:u,line:Ma,column:fi,length:d,return:""}}function ls(t,r){return sx(Ia("",null,null,"",null,null,0),t,{length:-t.length},r)}function cx(){return Ft}function dx(){return Ft=pn>0?Yt(vi,--pn):0,fi--,Ft===10&&(fi=1,Ma--),Ft}function wn(){return Ft=pn<Bg?Yt(vi,pn++):0,fi++,Ft===10&&(fi=1,Ma++),Ft}function ir(){return Yt(vi,pn)}function fa(){return pn}function js(t,r){return Ps(vi,t,r)}function Ms(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Wg(t){return Ma=fi=1,Bg=tr(vi=t),pn=0,[]}function Ug(t){return vi="",t}function pa(t){return Dg(js(pn-1,ed(t===91?t+2:t===40?t+1:t)))}function fx(t){for(;(Ft=ir())&&Ft<33;)wn();return Ms(t)>2||Ms(Ft)>3?"":" "}function px(t,r){for(;--r&&wn()&&!(Ft<48||Ft>102||Ft>57&&Ft<65||Ft>70&&Ft<97););return js(t,fa()+(r<6&&ir()==32&&wn()==32))}function ed(t){for(;wn();)switch(Ft){case t:return pn;case 34:case 39:t!==34&&t!==39&&ed(Ft);break;case 40:t===41&&ed(t);break;case 92:wn();break}return pn}function mx(t,r){for(;wn()&&t+Ft!==57;)if(t+Ft===84&&ir()===47)break;return"/*"+js(r,pn-1)+"*"+Pa(t===47?t:wn())}function hx(t){for(;!Ms(ir());)wn();return js(t,pn)}function gx(t){return Ug(ma("",null,null,null,[""],t=Wg(t),0,[0],t))}function ma(t,r,o,s,a,u,d,p,m){for(var h=0,v=0,w=d,C=0,T=0,k=0,b=1,E=1,$=1,j=0,P="",R=a,M=u,O=s,F=P;E;)switch(k=j,j=wn()){case 40:if(k!=108&&Yt(F,w-1)==58){Jc(F+=Je(pa(j),"&","&\f"),"&\f")!=-1&&($=-1);break}case 34:case 39:case 91:F+=pa(j);break;case 9:case 10:case 13:case 32:F+=fx(k);break;case 92:F+=px(fa()-1,7);continue;case 47:switch(ir()){case 42:case 47:Xl(yx(mx(wn(),fa()),r,o),m);break;default:F+="/"}break;case 123*b:p[h++]=tr(F)*$;case 125*b:case 59:case 0:switch(j){case 0:case 125:E=0;case 59+v:$==-1&&(F=Je(F,/\f/g,"")),T>0&&tr(F)-w&&Xl(T>32?Xm(F+";",s,o,w-1):Xm(Je(F," ","")+";",s,o,w-2),m);break;case 59:F+=";";default:if(Xl(O=Qm(F,r,o,h,v,a,p,P,R=[],M=[],w),u),j===123)if(v===0)ma(F,r,O,O,R,u,w,p,M);else switch(C===99&&Yt(F,3)===110?100:C){case 100:case 108:case 109:case 115:ma(t,O,O,s&&Xl(Qm(t,O,O,0,0,a,p,P,a,R=[],w),M),a,M,w,p,s?R:M);break;default:ma(F,O,O,O,[""],M,0,p,M)}}h=v=T=0,b=$=1,P=F="",w=d;break;case 58:w=1+tr(F),T=k;default:if(b<1){if(j==123)--b;else if(j==125&&b++==0&&dx()==125)continue}switch(F+=Pa(j),j*b){case 38:$=v>0?1:(F+="\f",-1);break;case 44:p[h++]=(tr(F)-1)*$,$=1;break;case 64:ir()===45&&(F+=pa(wn())),C=ir(),v=w=tr(P=F+=hx(fa())),j++;break;case 45:k===45&&tr(F)==2&&(b=0)}}return u}function Qm(t,r,o,s,a,u,d,p,m,h,v){for(var w=a-1,C=a===0?u:[""],T=Rd(C),k=0,b=0,E=0;k<s;++k)for(var $=0,j=Ps(t,w+1,w=ix(b=d[k])),P=t;$<T;++$)(P=Dg(b>0?C[$]+" "+j:Je(j,/&\f/g,C[$])))&&(m[E++]=P);return Ia(t,r,o,a===0?kd:p,m,h,v)}function yx(t,r,o){return Ia(t,r,o,zg,Pa(cx()),Ps(t,2,-2),0)}function Xm(t,r,o,s){return Ia(t,r,o,Ed,Ps(t,0,s),Ps(t,s+1,-1),s)}function ui(t,r){for(var o="",s=Rd(t),a=0;a<s;a++)o+=r(t[a],a,t,r)||"";return o}function vx(t,r,o,s){switch(t.type){case ox:if(t.children.length)break;case rx:case Ed:return t.return=t.return||t.value;case zg:return"";case _g:return t.return=t.value+"{"+ui(t.children,s)+"}";case kd:t.value=t.props.join(",")}return tr(o=ui(t.children,s))?t.return=t.value+"{"+o+"}":""}function xx(t){var r=Rd(t);return function(o,s,a,u){for(var d="",p=0;p<r;p++)d+=t[p](o,s,a,u)||"";return d}}function Sx(t){return function(r){r.root||(r=r.return)&&t(r)}}function Hg(t){var r=Object.create(null);return function(o){return r[o]===void 0&&(r[o]=t(o)),r[o]}}var wx=function(r,o,s){for(var a=0,u=0;a=u,u=ir(),a===38&&u===12&&(o[s]=1),!Ms(u);)wn();return js(r,pn)},bx=function(r,o){var s=-1,a=44;do switch(Ms(a)){case 0:a===38&&ir()===12&&(o[s]=1),r[s]+=wx(pn-1,o,s);break;case 2:r[s]+=pa(a);break;case 4:if(a===44){r[++s]=ir()===58?"&\f":"",o[s]=r[s].length;break}default:r[s]+=Pa(a)}while(a=wn());return r},Cx=function(r,o){return Ug(bx(Wg(r),o))},Zm=new WeakMap,kx=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var o=r.value,s=r.parent,a=r.column===s.column&&r.line===s.line;s.type!=="rule";)if(s=s.parent,!s)return;if(!(r.props.length===1&&o.charCodeAt(0)!==58&&!Zm.get(s))&&!a){Zm.set(r,!0);for(var u=[],d=Cx(o,u),p=s.props,m=0,h=0;m<d.length;m++)for(var v=0;v<p.length;v++,h++)r.props[h]=u[m]?d[m].replace(/&\f/g,p[v]):p[v]+" "+d[m]}}},Ex=function(r){if(r.type==="decl"){var o=r.value;o.charCodeAt(0)===108&&o.charCodeAt(2)===98&&(r.return="",r.value="")}};function Vg(t,r){switch(lx(t,r)){case 5103:return Ze+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ze+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return Ze+t+va+t+Jt+t+t;case 6828:case 4268:return Ze+t+Jt+t+t;case 6165:return Ze+t+Jt+"flex-"+t+t;case 5187:return Ze+t+Je(t,/(\w+).+(:[^]+)/,Ze+"box-$1$2"+Jt+"flex-$1$2")+t;case 5443:return Ze+t+Jt+"flex-item-"+Je(t,/flex-|-self/,"")+t;case 4675:return Ze+t+Jt+"flex-line-pack"+Je(t,/align-content|flex-|-self/,"")+t;case 5548:return Ze+t+Jt+Je(t,"shrink","negative")+t;case 5292:return Ze+t+Jt+Je(t,"basis","preferred-size")+t;case 6060:return Ze+"box-"+Je(t,"-grow","")+Ze+t+Jt+Je(t,"grow","positive")+t;case 4554:return Ze+Je(t,/([^-])(transform)/g,"$1"+Ze+"$2")+t;case 6187:return Je(Je(Je(t,/(zoom-|grab)/,Ze+"$1"),/(image-set)/,Ze+"$1"),t,"")+t;case 5495:case 3959:return Je(t,/(image-set\([^]*)/,Ze+"$1$`$1");case 4968:return Je(Je(t,/(.+:)(flex-)?(.*)/,Ze+"box-pack:$3"+Jt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ze+t+t;case 4095:case 3583:case 4068:case 2532:return Je(t,/(.+)-inline(.+)/,Ze+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(tr(t)-1-r>6)switch(Yt(t,r+1)){case 109:if(Yt(t,r+4)!==45)break;case 102:return Je(t,/(.+:)(.+)-([^]+)/,"$1"+Ze+"$2-$3$1"+va+(Yt(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Jc(t,"stretch")?Vg(Je(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(Yt(t,r+1)!==115)break;case 6444:switch(Yt(t,tr(t)-3-(~Jc(t,"!important")&&10))){case 107:return Je(t,":",":"+Ze)+t;case 101:return Je(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ze+(Yt(t,14)===45?"inline-":"")+"box$3$1"+Ze+"$2$3$1"+Jt+"$2box$3")+t}break;case 5936:switch(Yt(t,r+11)){case 114:return Ze+t+Jt+Je(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return Ze+t+Jt+Je(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return Ze+t+Jt+Je(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return Ze+t+Jt+t+t}return t}var Rx=function(r,o,s,a){if(r.length>-1&&!r.return)switch(r.type){case Ed:r.return=Vg(r.value,r.length);break;case _g:return ui([ls(r,{value:Je(r.value,"@","@"+Ze)})],a);case kd:if(r.length)return ux(r.props,function(u){switch(ax(u,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ui([ls(r,{props:[Je(u,/:(read-\w+)/,":"+va+"$1")]})],a);case"::placeholder":return ui([ls(r,{props:[Je(u,/:(plac\w+)/,":"+Ze+"input-$1")]}),ls(r,{props:[Je(u,/:(plac\w+)/,":"+va+"$1")]}),ls(r,{props:[Je(u,/:(plac\w+)/,Jt+"input-$1")]})],a)}return""})}},Tx=[Rx],Px=function(r){var o=r.key;if(o==="css"){var s=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(s,function(b){var E=b.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(b),b.setAttribute("data-s",""))})}var a=r.stylisPlugins||Tx,u={},d,p=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(b){for(var E=b.getAttribute("data-emotion").split(" "),$=1;$<E.length;$++)u[E[$]]=!0;p.push(b)});var m,h=[kx,Ex];{var v,w=[vx,Sx(function(b){v.insert(b)})],C=xx(h.concat(a,w)),T=function(E){return ui(gx(E),C)};m=function(E,$,j,P){v=j,T(E?E+"{"+$.styles+"}":$.styles),P&&(k.inserted[$.name]=!0)}}var k={key:o,sheet:new nx({key:o,container:d,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:u,registered:{},insert:m};return k.sheet.hydrate(p),k},Ac={exports:{}},nt={};/** @license React v16.13.1 | |
| * react-is.production.min.js | |
| * | |
| * Copyright (c) Facebook, Inc. and its affiliates. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */var Jm;function Mx(){if(Jm)return nt;Jm=1;var t=typeof Symbol=="function"&&Symbol.for,r=t?Symbol.for("react.element"):60103,o=t?Symbol.for("react.portal"):60106,s=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,u=t?Symbol.for("react.profiler"):60114,d=t?Symbol.for("react.provider"):60109,p=t?Symbol.for("react.context"):60110,m=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,v=t?Symbol.for("react.forward_ref"):60112,w=t?Symbol.for("react.suspense"):60113,C=t?Symbol.for("react.suspense_list"):60120,T=t?Symbol.for("react.memo"):60115,k=t?Symbol.for("react.lazy"):60116,b=t?Symbol.for("react.block"):60121,E=t?Symbol.for("react.fundamental"):60117,$=t?Symbol.for("react.responder"):60118,j=t?Symbol.for("react.scope"):60119;function P(M){if(typeof M=="object"&&M!==null){var O=M.$$typeof;switch(O){case r:switch(M=M.type,M){case m:case h:case s:case u:case a:case w:return M;default:switch(M=M&&M.$$typeof,M){case p:case v:case k:case T:case d:return M;default:return O}}case o:return O}}}function R(M){return P(M)===h}return nt.AsyncMode=m,nt.ConcurrentMode=h,nt.ContextConsumer=p,nt.ContextProvider=d,nt.Element=r,nt.ForwardRef=v,nt.Fragment=s,nt.Lazy=k,nt.Memo=T,nt.Portal=o,nt.Profiler=u,nt.StrictMode=a,nt.Suspense=w,nt.isAsyncMode=function(M){return R(M)||P(M)===m},nt.isConcurrentMode=R,nt.isContextConsumer=function(M){return P(M)===p},nt.isContextProvider=function(M){return P(M)===d},nt.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===r},nt.isForwardRef=function(M){return P(M)===v},nt.isFragment=function(M){return P(M)===s},nt.isLazy=function(M){return P(M)===k},nt.isMemo=function(M){return P(M)===T},nt.isPortal=function(M){return P(M)===o},nt.isProfiler=function(M){return P(M)===u},nt.isStrictMode=function(M){return P(M)===a},nt.isSuspense=function(M){return P(M)===w},nt.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===s||M===h||M===u||M===a||M===w||M===C||typeof M=="object"&&M!==null&&(M.$$typeof===k||M.$$typeof===T||M.$$typeof===d||M.$$typeof===p||M.$$typeof===v||M.$$typeof===E||M.$$typeof===$||M.$$typeof===j||M.$$typeof===b)},nt.typeOf=P,nt}var eh;function Ix(){return eh||(eh=1,Ac.exports=Mx()),Ac.exports}var jc,th;function Ox(){if(th)return jc;th=1;var t=Ix(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},u={};u[t.ForwardRef]=s,u[t.Memo]=a;function d(k){return t.isMemo(k)?a:u[k.$$typeof]||r}var p=Object.defineProperty,m=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,v=Object.getOwnPropertyDescriptor,w=Object.getPrototypeOf,C=Object.prototype;function T(k,b,E){if(typeof b!="string"){if(C){var $=w(b);$&&$!==C&&T(k,$,E)}var j=m(b);h&&(j=j.concat(h(b)));for(var P=d(k),R=d(b),M=0;M<j.length;++M){var O=j[M];if(!o[O]&&!(E&&E[O])&&!(R&&R[O])&&!(P&&P[O])){var F=v(b,O);try{p(k,O,F)}catch{}}}}return k}return jc=T,jc}Ox();var $x=!0;function Gg(t,r,o){var s="";return o.split(" ").forEach(function(a){t[a]!==void 0?r.push(t[a]+";"):a&&(s+=a+" ")}),s}var Td=function(r,o,s){var a=r.key+"-"+o.name;(s===!1||$x===!1)&&r.registered[a]===void 0&&(r.registered[a]=o.styles)},Pd=function(r,o,s){Td(r,o,s);var a=r.key+"-"+o.name;if(r.inserted[o.name]===void 0){var u=o;do r.insert(o===u?"."+a:"",u,r.sheet,!0),u=u.next;while(u!==void 0)}};function Ax(t){for(var r=0,o,s=0,a=t.length;a>=4;++s,a-=4)o=t.charCodeAt(s)&255|(t.charCodeAt(++s)&255)<<8|(t.charCodeAt(++s)&255)<<16|(t.charCodeAt(++s)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,r=(o&65535)*1540483477+((o>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(t.charCodeAt(s+2)&255)<<16;case 2:r^=(t.charCodeAt(s+1)&255)<<8;case 1:r^=t.charCodeAt(s)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var jx={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lx=/[A-Z]|^ms/g,Fx=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Kg=function(r){return r.charCodeAt(1)===45},nh=function(r){return r!=null&&typeof r!="boolean"},Lc=Hg(function(t){return Kg(t)?t:t.replace(Lx,"-$&").toLowerCase()}),rh=function(r,o){switch(r){case"animation":case"animationName":if(typeof o=="string")return o.replace(Fx,function(s,a,u){return nr={name:a,styles:u,next:nr},a})}return jx[r]!==1&&!Kg(r)&&typeof o=="number"&&o!==0?o+"px":o};function Is(t,r,o){if(o==null)return"";var s=o;if(s.__emotion_styles!==void 0)return s;switch(typeof o){case"boolean":return"";case"object":{var a=o;if(a.anim===1)return nr={name:a.name,styles:a.styles,next:nr},a.name;var u=o;if(u.styles!==void 0){var d=u.next;if(d!==void 0)for(;d!==void 0;)nr={name:d.name,styles:d.styles,next:nr},d=d.next;var p=u.styles+";";return p}return Nx(t,r,o)}case"function":{if(t!==void 0){var m=nr,h=o(t);return nr=m,Is(t,r,h)}break}}var v=o;if(r==null)return v;var w=r[v];return w!==void 0?w:v}function Nx(t,r,o){var s="";if(Array.isArray(o))for(var a=0;a<o.length;a++)s+=Is(t,r,o[a])+";";else for(var u in o){var d=o[u];if(typeof d!="object"){var p=d;r!=null&&r[p]!==void 0?s+=u+"{"+r[p]+"}":nh(p)&&(s+=Lc(u)+":"+rh(u,p)+";")}else if(Array.isArray(d)&&typeof d[0]=="string"&&(r==null||r[d[0]]===void 0))for(var m=0;m<d.length;m++)nh(d[m])&&(s+=Lc(u)+":"+rh(u,d[m])+";");else{var h=Is(t,r,d);switch(u){case"animation":case"animationName":{s+=Lc(u)+":"+h+";";break}default:s+=u+"{"+h+"}"}}}return s}var oh=/label:\s*([^\s;{]+)\s*(;|$)/g,nr;function Ls(t,r,o){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var s=!0,a="";nr=void 0;var u=t[0];if(u==null||u.raw===void 0)s=!1,a+=Is(o,r,u);else{var d=u;a+=d[0]}for(var p=1;p<t.length;p++)if(a+=Is(o,r,t[p]),s){var m=u;a+=m[p]}oh.lastIndex=0;for(var h="",v;(v=oh.exec(a))!==null;)h+="-"+v[1];var w=Ax(a)+h;return{name:w,styles:a,next:nr}}var zx=function(r){return r()},Yg=Zc.useInsertionEffect?Zc.useInsertionEffect:!1,qg=Yg||zx,ih=Yg||x.useLayoutEffect,Qg=x.createContext(typeof HTMLElement<"u"?Px({key:"css"}):null);Qg.Provider;var Md=function(r){return x.forwardRef(function(o,s){var a=x.useContext(Qg);return r(o,a,s)})},Fs=x.createContext({}),Id={}.hasOwnProperty,td="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",_x=function(r,o){var s={};for(var a in o)Id.call(o,a)&&(s[a]=o[a]);return s[td]=r,s},Dx=function(r){var o=r.cache,s=r.serialized,a=r.isStringTag;return Td(o,s,a),qg(function(){return Pd(o,s,a)}),null},Bx=Md(function(t,r,o){var s=t.css;typeof s=="string"&&r.registered[s]!==void 0&&(s=r.registered[s]);var a=t[td],u=[s],d="";typeof t.className=="string"?d=Gg(r.registered,u,t.className):t.className!=null&&(d=t.className+" ");var p=Ls(u,void 0,x.useContext(Fs));d+=r.key+"-"+p.name;var m={};for(var h in t)Id.call(t,h)&&h!=="css"&&h!==td&&(m[h]=t[h]);return m.className=d,o&&(m.ref=o),x.createElement(x.Fragment,null,x.createElement(Dx,{cache:r,serialized:p,isStringTag:typeof a=="string"}),x.createElement(a,m))}),Wx=Bx,sh=function(r,o){var s=arguments;if(o==null||!Id.call(o,"css"))return x.createElement.apply(void 0,s);var a=s.length,u=new Array(a);u[0]=Wx,u[1]=_x(r,o);for(var d=2;d<a;d++)u[d]=s[d];return x.createElement.apply(null,u)};(function(t){var r;r||(r=t.JSX||(t.JSX={}))})(sh||(sh={}));var Ux=Md(function(t,r){var o=t.styles,s=Ls([o],void 0,x.useContext(Fs)),a=x.useRef();return ih(function(){var u=r.key+"-global",d=new r.sheet.constructor({key:u,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),p=!1,m=document.querySelector('style[data-emotion="'+u+" "+s.name+'"]');return r.sheet.tags.length&&(d.before=r.sheet.tags[0]),m!==null&&(p=!0,m.setAttribute("data-emotion",u),d.hydrate([m])),a.current=[d,p],function(){d.flush()}},[r]),ih(function(){var u=a.current,d=u[0],p=u[1];if(p){u[1]=!1;return}if(s.next!==void 0&&Pd(r,s.next,!0),d.tags.length){var m=d.tags[d.tags.length-1].nextElementSibling;d.before=m,d.flush()}r.insert("",s,d,!1)},[r,s.name]),null});function Od(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return Ls(r)}function xi(){var t=Od.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var Hx=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Vx=Hg(function(t){return Hx.test(t)||t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&t.charCodeAt(2)<91}),Gx=Vx,Kx=function(r){return r!=="theme"},lh=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Gx:Kx},ah=function(r,o,s){var a;if(o){var u=o.shouldForwardProp;a=r.__emotion_forwardProp&&u?function(d){return r.__emotion_forwardProp(d)&&u(d)}:u}return typeof a!="function"&&s&&(a=r.__emotion_forwardProp),a},Yx=function(r){var o=r.cache,s=r.serialized,a=r.isStringTag;return Td(o,s,a),qg(function(){return Pd(o,s,a)}),null},qx=function t(r,o){var s=r.__emotion_real===r,a=s&&r.__emotion_base||r,u,d;o!==void 0&&(u=o.label,d=o.target);var p=ah(r,o,s),m=p||lh(a),h=!m("as");return function(){var v=arguments,w=s&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(u!==void 0&&w.push("label:"+u+";"),v[0]==null||v[0].raw===void 0)w.push.apply(w,v);else{var C=v[0];w.push(C[0]);for(var T=v.length,k=1;k<T;k++)w.push(v[k],C[k])}var b=Md(function(E,$,j){var P=h&&E.as||a,R="",M=[],O=E;if(E.theme==null){O={};for(var F in E)O[F]=E[F];O.theme=x.useContext(Fs)}typeof E.className=="string"?R=Gg($.registered,M,E.className):E.className!=null&&(R=E.className+" ");var D=Ls(w.concat(M),$.registered,O);R+=$.key+"-"+D.name,d!==void 0&&(R+=" "+d);var B=h&&p===void 0?lh(P):m,g={};for(var N in E)h&&N==="as"||B(N)&&(g[N]=E[N]);return g.className=R,j&&(g.ref=j),x.createElement(x.Fragment,null,x.createElement(Yx,{cache:$,serialized:D,isStringTag:typeof P=="string"}),x.createElement(P,g))});return b.displayName=u!==void 0?u:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",b.defaultProps=r.defaultProps,b.__emotion_real=b,b.__emotion_base=a,b.__emotion_styles=w,b.__emotion_forwardProp=p,Object.defineProperty(b,"toString",{value:function(){return"."+d}}),b.withComponent=function(E,$){var j=t(E,ya({},o,$,{shouldForwardProp:ah(b,$,!0)}));return j.apply(void 0,w)},b}},Qx=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],nd=qx.bind(null);Qx.forEach(function(t){nd[t]=nd(t)});function Xx(t){return t==null||Object.keys(t).length===0}function Xg(t){const{styles:r,defaultTheme:o={}}=t,s=typeof r=="function"?a=>r(Xx(a)?o:a):r;return S.jsx(Ux,{styles:s})}/** | |
| * @mui/styled-engine v6.5.0 | |
| * | |
| * @license MIT | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */function Zg(t,r){return nd(t,r)}function Zx(t,r){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=r(t.__emotion_styles))}const uh=[];function Zr(t){return uh[0]=t,Ls(uh)}var Fc={exports:{}},lt={};/** | |
| * @license React | |
| * react-is.production.js | |
| * | |
| * Copyright (c) Meta Platforms, Inc. and affiliates. | |
| * | |
| * This source code is licensed under the MIT license found in the | |
| * LICENSE file in the root directory of this source tree. | |
| */var ch;function Jx(){if(ch)return lt;ch=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");function k(b){if(typeof b=="object"&&b!==null){var E=b.$$typeof;switch(E){case t:switch(b=b.type,b){case o:case a:case s:case m:case h:case C:return b;default:switch(b=b&&b.$$typeof,b){case d:case p:case w:case v:return b;case u:return b;default:return E}}case r:return E}}}return lt.ContextConsumer=u,lt.ContextProvider=d,lt.Element=t,lt.ForwardRef=p,lt.Fragment=o,lt.Lazy=w,lt.Memo=v,lt.Portal=r,lt.Profiler=a,lt.StrictMode=s,lt.Suspense=m,lt.SuspenseList=h,lt.isContextConsumer=function(b){return k(b)===u},lt.isContextProvider=function(b){return k(b)===d},lt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===t},lt.isForwardRef=function(b){return k(b)===p},lt.isFragment=function(b){return k(b)===o},lt.isLazy=function(b){return k(b)===w},lt.isMemo=function(b){return k(b)===v},lt.isPortal=function(b){return k(b)===r},lt.isProfiler=function(b){return k(b)===a},lt.isStrictMode=function(b){return k(b)===s},lt.isSuspense=function(b){return k(b)===m},lt.isSuspenseList=function(b){return k(b)===h},lt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===o||b===a||b===s||b===m||b===h||typeof b=="object"&&b!==null&&(b.$$typeof===w||b.$$typeof===v||b.$$typeof===d||b.$$typeof===u||b.$$typeof===p||b.$$typeof===T||b.getModuleId!==void 0)},lt.typeOf=k,lt}var dh;function e1(){return dh||(dh=1,Fc.exports=Jx()),Fc.exports}var Jg=e1();function rr(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function ey(t){if(x.isValidElement(t)||Jg.isValidElementType(t)||!rr(t))return t;const r={};return Object.keys(t).forEach(o=>{r[o]=ey(t[o])}),r}function tn(t,r,o={clone:!0}){const s=o.clone?{...t}:t;return rr(t)&&rr(r)&&Object.keys(r).forEach(a=>{x.isValidElement(r[a])||Jg.isValidElementType(r[a])?s[a]=r[a]:rr(r[a])&&Object.prototype.hasOwnProperty.call(t,a)&&rr(t[a])?s[a]=tn(t[a],r[a],o):o.clone?s[a]=rr(r[a])?ey(r[a]):r[a]:s[a]=r[a]}),s}const t1=t=>{const r=Object.keys(t).map(o=>({key:o,val:t[o]}))||[];return r.sort((o,s)=>o.val-s.val),r.reduce((o,s)=>({...o,[s.key]:s.val}),{})};function n1(t){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:s=5,...a}=t,u=t1(r),d=Object.keys(u);function p(C){return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${o})`}function m(C){return`@media (max-width:${(typeof r[C]=="number"?r[C]:C)-s/100}${o})`}function h(C,T){const k=d.indexOf(T);return`@media (min-width:${typeof r[C]=="number"?r[C]:C}${o}) and (max-width:${(k!==-1&&typeof r[d[k]]=="number"?r[d[k]]:T)-s/100}${o})`}function v(C){return d.indexOf(C)+1<d.length?h(C,d[d.indexOf(C)+1]):p(C)}function w(C){const T=d.indexOf(C);return T===0?p(d[1]):T===d.length-1?m(d[T]):h(C,d[d.indexOf(C)+1]).replace("@media","@media not all and")}return{keys:d,values:u,up:p,down:m,between:h,only:v,not:w,unit:o,...a}}function fh(t,r){if(!t.containerQueries)return r;const o=Object.keys(r).filter(s=>s.startsWith("@container")).sort((s,a)=>{var d,p;const u=/min-width:\s*([0-9.]+)/;return+(((d=s.match(u))==null?void 0:d[1])||0)-+(((p=a.match(u))==null?void 0:p[1])||0)});return o.length?o.reduce((s,a)=>{const u=r[a];return delete s[a],s[a]=u,s},{...r}):r}function r1(t,r){return r==="@"||r.startsWith("@")&&(t.some(o=>r.startsWith(`@${o}`))||!!r.match(/^@\d/))}function o1(t,r){const o=r.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,s,a]=o,u=Number.isNaN(+s)?s||0:+s;return t.containerQueries(a).up(u)}function i1(t){const r=(u,d)=>u.replace("@media",d?`@container ${d}`:"@container");function o(u,d){u.up=(...p)=>r(t.breakpoints.up(...p),d),u.down=(...p)=>r(t.breakpoints.down(...p),d),u.between=(...p)=>r(t.breakpoints.between(...p),d),u.only=(...p)=>r(t.breakpoints.only(...p),d),u.not=(...p)=>{const m=r(t.breakpoints.not(...p),d);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const s={},a=u=>(o(s,u),s);return o(a),{...t,containerQueries:a}}const s1={borderRadius:4};function bs(t,r){return r?tn(t,r,{clone:!1}):t}const Oa={xs:0,sm:600,md:900,lg:1200,xl:1536},ph={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Oa[t]}px)`},l1={containerQueries:t=>({up:r=>{let o=typeof r=="number"?r:Oa[r]||r;return typeof o=="number"&&(o=`${o}px`),t?`@container ${t} (min-width:${o})`:`@container (min-width:${o})`}})};function Pr(t,r,o){const s=t.theme||{};if(Array.isArray(r)){const u=s.breakpoints||ph;return r.reduce((d,p,m)=>(d[u.up(u.keys[m])]=o(r[m]),d),{})}if(typeof r=="object"){const u=s.breakpoints||ph;return Object.keys(r).reduce((d,p)=>{if(r1(u.keys,p)){const m=o1(s.containerQueries?s:l1,p);m&&(d[m]=o(r[p],p))}else if(Object.keys(u.values||Oa).includes(p)){const m=u.up(p);d[m]=o(r[p],p)}else{const m=p;d[m]=r[m]}return d},{})}return o(r)}function a1(t={}){var o;return((o=t.keys)==null?void 0:o.reduce((s,a)=>{const u=t.up(a);return s[u]={},s},{}))||{}}function mh(t,r){return t.reduce((o,s)=>{const a=o[s];return(!a||Object.keys(a).length===0)&&delete o[s],o},r)}function $e(t){if(typeof t!="string")throw new Error(Tr(7));return t.charAt(0).toUpperCase()+t.slice(1)}function $a(t,r,o=!0){if(!r||typeof r!="string")return null;if(t&&t.vars&&o){const s=`vars.${r}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,t);if(s!=null)return s}return r.split(".").reduce((s,a)=>s&&s[a]!=null?s[a]:null,t)}function xa(t,r,o,s=o){let a;return typeof t=="function"?a=t(o):Array.isArray(t)?a=t[o]||s:a=$a(t,o)||s,r&&(a=r(a,s,t)),a}function At(t){const{prop:r,cssProperty:o=t.prop,themeKey:s,transform:a}=t,u=d=>{if(d[r]==null)return null;const p=d[r],m=d.theme,h=$a(m,s)||{};return Pr(d,p,w=>{let C=xa(h,a,w);return w===C&&typeof w=="string"&&(C=xa(h,a,`${r}${w==="default"?"":$e(w)}`,w)),o===!1?C:{[o]:C}})};return u.propTypes={},u.filterProps=[r],u}function u1(t){const r={};return o=>(r[o]===void 0&&(r[o]=t(o)),r[o])}const c1={m:"margin",p:"padding"},d1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},f1=u1(t=>{if(t.length>2)if(hh[t])t=hh[t];else return[t];const[r,o]=t.split(""),s=c1[r],a=d1[o]||"";return Array.isArray(a)?a.map(u=>s+u):[s+a]}),$d=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ad=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...$d,...Ad];function Ns(t,r,o,s){const a=$a(t,r,!0)??o;return typeof a=="number"||typeof a=="string"?u=>typeof u=="string"?u:typeof a=="string"?`calc(${u} * ${a})`:a*u:Array.isArray(a)?u=>{if(typeof u=="string")return u;const d=Math.abs(u),p=a[d];return u>=0?p:typeof p=="number"?-p:`-${p}`}:typeof a=="function"?a:()=>{}}function jd(t){return Ns(t,"spacing",8)}function zs(t,r){return typeof r=="string"||r==null?r:t(r)}function p1(t,r){return o=>t.reduce((s,a)=>(s[a]=zs(r,o),s),{})}function m1(t,r,o,s){if(!r.includes(o))return null;const a=f1(o),u=p1(a,s),d=t[o];return Pr(t,d,u)}function ty(t,r){const o=jd(t.theme);return Object.keys(t).map(s=>m1(t,r,s,o)).reduce(bs,{})}function Pt(t){return ty(t,$d)}Pt.propTypes={};Pt.filterProps=$d;function Mt(t){return ty(t,Ad)}Mt.propTypes={};Mt.filterProps=Ad;function ny(t=8,r=jd({spacing:t})){if(t.mui)return t;const o=(...s)=>(s.length===0?[1]:s).map(u=>{const d=r(u);return typeof d=="number"?`${d}px`:d}).join(" ");return o.mui=!0,o}function Aa(...t){const r=t.reduce((s,a)=>(a.filterProps.forEach(u=>{s[u]=a}),s),{}),o=s=>Object.keys(s).reduce((a,u)=>r[u]?bs(a,r[u](s)):a,{});return o.propTypes={},o.filterProps=t.reduce((s,a)=>s.concat(a.filterProps),[]),o}function $n(t){return typeof t!="number"?t:`${t}px solid`}function Nn(t,r){return At({prop:t,themeKey:"borders",transform:r})}const h1=Nn("border",$n),g1=Nn("borderTop",$n),y1=Nn("borderRight",$n),v1=Nn("borderBottom",$n),x1=Nn("borderLeft",$n),S1=Nn("borderColor"),w1=Nn("borderTopColor"),b1=Nn("borderRightColor"),C1=Nn("borderBottomColor"),k1=Nn("borderLeftColor"),E1=Nn("outline",$n),R1=Nn("outlineColor"),ja=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const r=Ns(t.theme,"shape.borderRadius",4),o=s=>({borderRadius:zs(r,s)});return Pr(t,t.borderRadius,o)}return null};ja.propTypes={};ja.filterProps=["borderRadius"];Aa(h1,g1,y1,v1,x1,S1,w1,b1,C1,k1,ja,E1,R1);const La=t=>{if(t.gap!==void 0&&t.gap!==null){const r=Ns(t.theme,"spacing",8),o=s=>({gap:zs(r,s)});return Pr(t,t.gap,o)}return null};La.propTypes={};La.filterProps=["gap"];const Fa=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const r=Ns(t.theme,"spacing",8),o=s=>({columnGap:zs(r,s)});return Pr(t,t.columnGap,o)}return null};Fa.propTypes={};Fa.filterProps=["columnGap"];const Na=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const r=Ns(t.theme,"spacing",8),o=s=>({rowGap:zs(r,s)});return Pr(t,t.rowGap,o)}return null};Na.propTypes={};Na.filterProps=["rowGap"];const T1=At({prop:"gridColumn"}),P1=At({prop:"gridRow"}),M1=At({prop:"gridAutoFlow"}),I1=At({prop:"gridAutoColumns"}),O1=At({prop:"gridAutoRows"}),$1=At({prop:"gridTemplateColumns"}),A1=At({prop:"gridTemplateRows"}),j1=At({prop:"gridTemplateAreas"}),L1=At({prop:"gridArea"});Aa(La,Fa,Na,T1,P1,M1,I1,O1,$1,A1,j1,L1);function ci(t,r){return r==="grey"?r:t}const F1=At({prop:"color",themeKey:"palette",transform:ci}),N1=At({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ci}),z1=At({prop:"backgroundColor",themeKey:"palette",transform:ci});Aa(F1,N1,z1);function xn(t){return t<=1&&t!==0?`${t*100}%`:t}const _1=At({prop:"width",transform:xn}),Ld=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const r=o=>{var a,u,d,p,m;const s=((d=(u=(a=t.theme)==null?void 0:a.breakpoints)==null?void 0:u.values)==null?void 0:d[o])||Oa[o];return s?((m=(p=t.theme)==null?void 0:p.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${s}${t.theme.breakpoints.unit}`}:{maxWidth:s}:{maxWidth:xn(o)}};return Pr(t,t.maxWidth,r)}return null};Ld.filterProps=["maxWidth"];const D1=At({prop:"minWidth",transform:xn}),B1=At({prop:"height",transform:xn}),W1=At({prop:"maxHeight",transform:xn}),U1=At({prop:"minHeight",transform:xn});At({prop:"size",cssProperty:"width",transform:xn});At({prop:"size",cssProperty:"height",transform:xn});const H1=At({prop:"boxSizing"});Aa(_1,Ld,D1,B1,W1,U1,H1);const _s={border:{themeKey:"borders",transform:$n},borderTop:{themeKey:"borders",transform:$n},borderRight:{themeKey:"borders",transform:$n},borderBottom:{themeKey:"borders",transform:$n},borderLeft:{themeKey:"borders",transform:$n},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$n},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ja},color:{themeKey:"palette",transform:ci},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ci},backgroundColor:{themeKey:"palette",transform:ci},p:{style:Mt},pt:{style:Mt},pr:{style:Mt},pb:{style:Mt},pl:{style:Mt},px:{style:Mt},py:{style:Mt},padding:{style:Mt},paddingTop:{style:Mt},paddingRight:{style:Mt},paddingBottom:{style:Mt},paddingLeft:{style:Mt},paddingX:{style:Mt},paddingY:{style:Mt},paddingInline:{style:Mt},paddingInlineStart:{style:Mt},paddingInlineEnd:{style:Mt},paddingBlock:{style:Mt},paddingBlockStart:{style:Mt},paddingBlockEnd:{style:Mt},m:{style:Pt},mt:{style:Pt},mr:{style:Pt},mb:{style:Pt},ml:{style:Pt},mx:{style:Pt},my:{style:Pt},margin:{style:Pt},marginTop:{style:Pt},marginRight:{style:Pt},marginBottom:{style:Pt},marginLeft:{style:Pt},marginX:{style:Pt},marginY:{style:Pt},marginInline:{style:Pt},marginInlineStart:{style:Pt},marginInlineEnd:{style:Pt},marginBlock:{style:Pt},marginBlockStart:{style:Pt},marginBlockEnd:{style:Pt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:La},rowGap:{style:Na},columnGap:{style:Fa},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:xn},maxWidth:{style:Ld},minWidth:{transform:xn},height:{transform:xn},maxHeight:{transform:xn},minHeight:{transform:xn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function V1(...t){const r=t.reduce((s,a)=>s.concat(Object.keys(a)),[]),o=new Set(r);return t.every(s=>o.size===Object.keys(s).length)}function G1(t,r){return typeof t=="function"?t(r):t}function K1(){function t(o,s,a,u){const d={[o]:s,theme:a},p=u[o];if(!p)return{[o]:s};const{cssProperty:m=o,themeKey:h,transform:v,style:w}=p;if(s==null)return null;if(h==="typography"&&s==="inherit")return{[o]:s};const C=$a(a,h)||{};return w?w(d):Pr(d,s,k=>{let b=xa(C,v,k);return k===b&&typeof k=="string"&&(b=xa(C,v,`${o}${k==="default"?"":$e(k)}`,k)),m===!1?b:{[m]:b}})}function r(o){const{sx:s,theme:a={},nested:u}=o||{};if(!s)return null;const d=a.unstable_sxConfig??_s;function p(m){let h=m;if(typeof m=="function")h=m(a);else if(typeof m!="object")return m;if(!h)return null;const v=a1(a.breakpoints),w=Object.keys(v);let C=v;return Object.keys(h).forEach(T=>{const k=G1(h[T],a);if(k!=null)if(typeof k=="object")if(d[T])C=bs(C,t(T,k,a,d));else{const b=Pr({theme:a},k,E=>({[T]:E}));V1(b,k)?C[T]=r({sx:k,theme:a,nested:!0}):C=bs(C,b)}else C=bs(C,t(T,k,a,d))}),!u&&a.modularCssLayers?{"@layer sx":fh(a,mh(w,C))}:fh(a,mh(w,C))}return Array.isArray(s)?s.map(p):p(s)}return r}const Jr=K1();Jr.filterProps=["sx"];function Y1(t,r){var s;const o=this;if(o.vars){if(!((s=o.colorSchemes)!=null&&s[t])||typeof o.getColorSchemeSelector!="function")return{};let a=o.getColorSchemeSelector(t);return a==="&"?r:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:r})}return o.palette.mode===t?r:{}}function Fd(t={},...r){const{breakpoints:o={},palette:s={},spacing:a,shape:u={},...d}=t,p=n1(o),m=ny(a);let h=tn({breakpoints:p,direction:"ltr",components:{},palette:{mode:"light",...s},spacing:m,shape:{...s1,...u}},d);return h=i1(h),h.applyStyles=Y1,h=r.reduce((v,w)=>tn(v,w),h),h.unstable_sxConfig={..._s,...d==null?void 0:d.unstable_sxConfig},h.unstable_sx=function(w){return Jr({sx:w,theme:this})},h}function q1(t){return Object.keys(t).length===0}function Nd(t=null){const r=x.useContext(Fs);return!r||q1(r)?t:r}const Q1=Fd();function zd(t=Q1){return Nd(t)}function Nc(t){const r=Zr(t);return t!==r&&r.styles?(r.styles.match(/^@layer\s+[^{]*$/)||(r.styles=`@layer global{${r.styles}}`),r):t}function ry({styles:t,themeId:r,defaultTheme:o={}}){const s=zd(o),a=r&&s[r]||s;let u=typeof t=="function"?t(a):t;return a.modularCssLayers&&(Array.isArray(u)?u=u.map(d=>Nc(typeof d=="function"?d(a):d)):u=Nc(u)),S.jsx(Xg,{styles:u})}const X1=t=>{var s;const r={systemProps:{},otherProps:{}},o=((s=t==null?void 0:t.theme)==null?void 0:s.unstable_sxConfig)??_s;return Object.keys(t).forEach(a=>{o[a]?r.systemProps[a]=t[a]:r.otherProps[a]=t[a]}),r};function Z1(t){const{sx:r,...o}=t,{systemProps:s,otherProps:a}=X1(o);let u;return Array.isArray(r)?u=[s,...r]:typeof r=="function"?u=(...d)=>{const p=r(...d);return rr(p)?{...s,...p}:s}:u={...s,...r},{...a,sx:u}}const gh=t=>t,J1=()=>{let t=gh;return{configure(r){t=r},generate(r){return t(r)},reset(){t=gh}}},oy=J1();function iy(t){var r,o,s="";if(typeof t=="string"||typeof t=="number")s+=t;else if(typeof t=="object")if(Array.isArray(t)){var a=t.length;for(r=0;r<a;r++)t[r]&&(o=iy(t[r]))&&(s&&(s+=" "),s+=o)}else for(o in t)t[o]&&(s&&(s+=" "),s+=o);return s}function Ne(){for(var t,r,o=0,s="",a=arguments.length;o<a;o++)(t=arguments[o])&&(r=iy(t))&&(s&&(s+=" "),s+=r);return s}function eS(t={}){const{themeId:r,defaultTheme:o,defaultClassName:s="MuiBox-root",generateClassName:a}=t,u=Zg("div",{shouldForwardProp:p=>p!=="theme"&&p!=="sx"&&p!=="as"})(Jr);return x.forwardRef(function(m,h){const v=zd(o),{className:w,component:C="div",...T}=Z1(m);return S.jsx(u,{as:C,ref:h,className:Ne(w,a?a(s):s),theme:r&&v[r]||v,...T})})}const tS={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function pt(t,r,o="Mui"){const s=tS[r];return s?`${o}-${s}`:`${oy.generate(t)}-${r}`}function rt(t,r,o="Mui"){const s={};return r.forEach(a=>{s[a]=pt(t,a,o)}),s}function sy(t){const{variants:r,...o}=t,s={variants:r,style:Zr(o),isProcessed:!0};return s.style===o||r&&r.forEach(a=>{typeof a.style!="function"&&(a.style=Zr(a.style))}),s}const nS=Fd();function zc(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function To(t,r){return r&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${r}{${String(t.styles)}}`),t}function rS(t){return t?(r,o)=>o[t]:null}function oS(t,r,o){t.theme=lS(t.theme)?o:t.theme[r]||t.theme}function ha(t,r,o){const s=typeof r=="function"?r(t):r;if(Array.isArray(s))return s.flatMap(a=>ha(t,a,o));if(Array.isArray(s==null?void 0:s.variants)){let a;if(s.isProcessed)a=o?To(s.style,o):s.style;else{const{variants:u,...d}=s;a=o?To(Zr(d),o):d}return ly(t,s.variants,[a],o)}return s!=null&&s.isProcessed?o?To(Zr(s.style),o):s.style:o?To(Zr(s),o):s}function ly(t,r,o=[],s=void 0){var u;let a;e:for(let d=0;d<r.length;d+=1){const p=r[d];if(typeof p.props=="function"){if(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),!p.props(a))continue}else for(const m in p.props)if(t[m]!==p.props[m]&&((u=t.ownerState)==null?void 0:u[m])!==p.props[m])continue e;typeof p.style=="function"?(a??(a={...t,...t.ownerState,ownerState:t.ownerState}),o.push(s?To(Zr(p.style(a)),s):p.style(a))):o.push(s?To(Zr(p.style),s):p.style)}return o}function iS(t={}){const{themeId:r,defaultTheme:o=nS,rootShouldForwardProp:s=zc,slotShouldForwardProp:a=zc}=t;function u(p){oS(p,r,o)}return(p,m={})=>{Zx(p,O=>O.filter(F=>F!==Jr));const{name:h,slot:v,skipVariantsResolver:w,skipSx:C,overridesResolver:T=rS(uS(v)),...k}=m,b=h&&h.startsWith("Mui")||v?"components":"custom",E=w!==void 0?w:v&&v!=="Root"&&v!=="root"||!1,$=C||!1;let j=zc;v==="Root"||v==="root"?j=s:v?j=a:aS(p)&&(j=void 0);const P=Zg(p,{shouldForwardProp:j,label:sS(),...k}),R=O=>{if(O.__emotion_real===O)return O;if(typeof O=="function")return function(D){return ha(D,O,D.theme.modularCssLayers?b:void 0)};if(rr(O)){const F=sy(O);return function(B){return F.variants?ha(B,F,B.theme.modularCssLayers?b:void 0):B.theme.modularCssLayers?To(F.style,b):F.style}}return O},M=(...O)=>{const F=[],D=O.map(R),B=[];if(F.push(u),h&&T&&B.push(function(G){var J,X;const Q=(X=(J=G.theme.components)==null?void 0:J[h])==null?void 0:X.styleOverrides;if(!Q)return null;const U={};for(const K in Q)U[K]=ha(G,Q[K],G.theme.modularCssLayers?"theme":void 0);return T(G,U)}),h&&!E&&B.push(function(G){var U,J;const te=G.theme,Q=(J=(U=te==null?void 0:te.components)==null?void 0:U[h])==null?void 0:J.variants;return Q?ly(G,Q,[],G.theme.modularCssLayers?"theme":void 0):null}),$||B.push(Jr),Array.isArray(D[0])){const V=D.shift(),G=new Array(F.length).fill(""),te=new Array(B.length).fill("");let Q;Q=[...G,...V,...te],Q.raw=[...G,...V.raw,...te],F.unshift(Q)}const g=[...F,...D,...B],N=P(...g);return p.muiName&&(N.muiName=p.muiName),N};return P.withConfig&&(M.withConfig=P.withConfig),M}}function sS(t,r){return void 0}function lS(t){for(const r in t)return!1;return!0}function aS(t){return typeof t=="string"&&t.charCodeAt(0)>96}function uS(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}function Sa(t,r){const o={...r};for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const a=s;if(a==="components"||a==="slots")o[a]={...t[a],...o[a]};else if(a==="componentsProps"||a==="slotProps"){const u=t[a],d=r[a];if(!d)o[a]=u||{};else if(!u)o[a]=d;else{o[a]={...d};for(const p in u)if(Object.prototype.hasOwnProperty.call(u,p)){const m=p;o[a][m]=Sa(u[m],d[m])}}}else o[a]===void 0&&(o[a]=t[a])}return o}const jn=typeof window<"u"?x.useLayoutEffect:x.useEffect;function cS(t,r=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,o))}function _d(t,r=0,o=1){return cS(t,r,o)}function dS(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let o=t.match(r);return o&&o[0].length===1&&(o=o.map(s=>s+s)),o?`rgb${o.length===4?"a":""}(${o.map((s,a)=>a<3?parseInt(s,16):Math.round(parseInt(s,16)/255*1e3)/1e3).join(", ")})`:""}function eo(t){if(t.type)return t;if(t.charAt(0)==="#")return eo(dS(t));const r=t.indexOf("("),o=t.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Tr(9,t));let s=t.substring(r+1,t.length-1),a;if(o==="color"){if(s=s.split(" "),a=s.shift(),s.length===4&&s[3].charAt(0)==="/"&&(s[3]=s[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Tr(10,a))}else s=s.split(",");return s=s.map(u=>parseFloat(u)),{type:o,values:s,colorSpace:a}}const fS=t=>{const r=eo(t);return r.values.slice(0,3).map((o,s)=>r.type.includes("hsl")&&s!==0?`${o}%`:o).join(" ")},xs=(t,r)=>{try{return fS(t)}catch{return t}};function za(t){const{type:r,colorSpace:o}=t;let{values:s}=t;return r.includes("rgb")?s=s.map((a,u)=>u<3?parseInt(a,10):a):r.includes("hsl")&&(s[1]=`${s[1]}%`,s[2]=`${s[2]}%`),r.includes("color")?s=`${o} ${s.join(" ")}`:s=`${s.join(", ")}`,`${r}(${s})`}function ay(t){t=eo(t);const{values:r}=t,o=r[0],s=r[1]/100,a=r[2]/100,u=s*Math.min(a,1-a),d=(h,v=(h+o/30)%12)=>a-u*Math.max(Math.min(v-3,9-v,1),-1);let p="rgb";const m=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return t.type==="hsla"&&(p+="a",m.push(r[3])),za({type:p,values:m})}function rd(t){t=eo(t);let r=t.type==="hsl"||t.type==="hsla"?eo(ay(t)).values:t.values;return r=r.map(o=>(t.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function pS(t,r){const o=rd(t),s=rd(r);return(Math.max(o,s)+.05)/(Math.min(o,s)+.05)}function en(t,r){return t=eo(t),r=_d(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,za(t)}function Zl(t,r,o){try{return en(t,r)}catch{return t}}function Dd(t,r){if(t=eo(t),r=_d(r),t.type.includes("hsl"))t.values[2]*=1-r;else if(t.type.includes("rgb")||t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]*=1-r;return za(t)}function ut(t,r,o){try{return Dd(t,r)}catch{return t}}function Bd(t,r){if(t=eo(t),r=_d(r),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*r;else if(t.type.includes("rgb"))for(let o=0;o<3;o+=1)t.values[o]+=(255-t.values[o])*r;else if(t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]+=(1-t.values[o])*r;return za(t)}function ct(t,r,o){try{return Bd(t,r)}catch{return t}}function mS(t,r=.15){return rd(t)>.5?Dd(t,r):Bd(t,r)}function Jl(t,r,o){try{return mS(t,r)}catch{return t}}function yh(...t){return t.reduce((r,o)=>o==null?r:function(...a){r.apply(this,a),o.apply(this,a)},()=>{})}function uy(t,r=166){let o;function s(...a){const u=()=>{t.apply(this,a)};clearTimeout(o),o=setTimeout(u,r)}return s.clear=()=>{clearTimeout(o)},s}function _c(t,r){var o,s,a;return x.isValidElement(t)&&r.indexOf(t.type.muiName??((a=(s=(o=t.type)==null?void 0:o._payload)==null?void 0:s.value)==null?void 0:a.muiName))!==-1}function bn(t){return t&&t.ownerDocument||document}function Mr(t){return bn(t).defaultView||window}function vh(t,r){typeof t=="function"?t(r):t&&(t.current=r)}let xh=0;function hS(t){const[r,o]=x.useState(t),s=t||r;return x.useEffect(()=>{r==null&&(xh+=1,o(`mui-${xh}`))},[r]),s}const gS={...Zc},Sh=gS.useId;function Si(t){if(Sh!==void 0){const r=Sh();return t??r}return hS(t)}function od({controlled:t,default:r,name:o,state:s="value"}){const{current:a}=x.useRef(t!==void 0),[u,d]=x.useState(r),p=a?t:u,m=x.useCallback(h=>{a||d(h)},[]);return[p,m]}function Er(t){const r=x.useRef(t);return jn(()=>{r.current=t}),x.useRef((...o)=>(0,r.current)(...o)).current}function Ht(...t){const r=x.useRef(void 0),o=x.useCallback(s=>{const a=t.map(u=>{if(u==null)return null;if(typeof u=="function"){const d=u,p=d(s);return typeof p=="function"?p:()=>{d(null)}}return u.current=s,()=>{u.current=null}});return()=>{a.forEach(u=>u==null?void 0:u())}},t);return x.useMemo(()=>t.every(s=>s==null)?null:s=>{r.current&&(r.current(),r.current=void 0),s!=null&&(r.current=o(s))},t)}const wh={};function cy(t,r){const o=x.useRef(wh);return o.current===wh&&(o.current=t(r)),o}const yS=[];function vS(t){x.useEffect(t,yS)}class _a{constructor(){is(this,"currentId",null);is(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});is(this,"disposeEffect",()=>this.clear)}static create(){return new _a}start(r,o){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,o()},r)}}function ai(){const t=cy(_a.create).current;return vS(t.disposeEffect),t}function wa(t){try{return t.matches(":focus-visible")}catch{}return!1}function dy(t=window){const r=t.document.documentElement.clientWidth;return t.innerWidth-r}function mt(t,r,o=void 0){const s={};for(const a in t){const u=t[a];let d="",p=!0;for(let m=0;m<u.length;m+=1){const h=u[m];h&&(d+=(p===!0?"":" ")+r(h),p=!1,o&&o[h]&&(d+=" "+o[h]))}s[a]=d}return s}function xS(t){return typeof t=="string"}function fy(t,r,o){return t===void 0||xS(t)?r:{...r,ownerState:{...r.ownerState,...o}}}function py(t,r=[]){if(t===void 0)return{};const o={};return Object.keys(t).filter(s=>s.match(/^on[A-Z]/)&&typeof t[s]=="function"&&!r.includes(s)).forEach(s=>{o[s]=t[s]}),o}function bh(t){if(t===void 0)return{};const r={};return Object.keys(t).filter(o=>!(o.match(/^on[A-Z]/)&&typeof t[o]=="function")).forEach(o=>{r[o]=t[o]}),r}function my(t){const{getSlotProps:r,additionalProps:o,externalSlotProps:s,externalForwardedProps:a,className:u}=t;if(!r){const T=Ne(o==null?void 0:o.className,u,a==null?void 0:a.className,s==null?void 0:s.className),k={...o==null?void 0:o.style,...a==null?void 0:a.style,...s==null?void 0:s.style},b={...o,...a,...s};return T.length>0&&(b.className=T),Object.keys(k).length>0&&(b.style=k),{props:b,internalRef:void 0}}const d=py({...a,...s}),p=bh(s),m=bh(a),h=r(d),v=Ne(h==null?void 0:h.className,o==null?void 0:o.className,u,a==null?void 0:a.className,s==null?void 0:s.className),w={...h==null?void 0:h.style,...o==null?void 0:o.style,...a==null?void 0:a.style,...s==null?void 0:s.style},C={...h,...o,...m,...p};return v.length>0&&(C.className=v),Object.keys(w).length>0&&(C.style=w),{props:C,internalRef:h.ref}}function hy(t,r,o){return typeof t=="function"?t(r,o):t}function gy(t){var w;const{elementType:r,externalSlotProps:o,ownerState:s,skipResolvingSlotProps:a=!1,...u}=t,d=a?{}:hy(o,s),{props:p,internalRef:m}=my({...u,externalSlotProps:d}),h=Ht(m,d==null?void 0:d.ref,(w=t.additionalProps)==null?void 0:w.ref);return fy(r,{...p,ref:h},s)}function wi(t){var r;return parseInt(x.version,10)>=19?((r=t==null?void 0:t.props)==null?void 0:r.ref)||null:(t==null?void 0:t.ref)||null}const yy=x.createContext(null);function Wd(){return x.useContext(yy)}const SS=typeof Symbol=="function"&&Symbol.for,wS=SS?Symbol.for("mui.nested"):"__THEME_NESTED__";function bS(t,r){return typeof r=="function"?r(t):{...t,...r}}function CS(t){const{children:r,theme:o}=t,s=Wd(),a=x.useMemo(()=>{const u=s===null?{...o}:bS(s,o);return u!=null&&(u[wS]=s!==null),u},[o,s]);return S.jsx(yy.Provider,{value:a,children:r})}const vy=x.createContext();function kS({value:t,...r}){return S.jsx(vy.Provider,{value:t??!0,...r})}const Ud=()=>x.useContext(vy)??!1,xy=x.createContext(void 0);function ES({value:t,children:r}){return S.jsx(xy.Provider,{value:t,children:r})}function RS(t){const{theme:r,name:o,props:s}=t;if(!r||!r.components||!r.components[o])return s;const a=r.components[o];return a.defaultProps?Sa(a.defaultProps,s):!a.styleOverrides&&!a.variants?Sa(a,s):s}function TS({props:t,name:r}){const o=x.useContext(xy);return RS({props:t,name:r,theme:{components:o}})}function PS(t){const r=Nd(),o=Si()||"",{modularCssLayers:s}=t;let a="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!s||r!==null?a="":typeof s=="string"?a=s.replace(/mui(?!\.)/g,a):a=`@layer ${a};`,jn(()=>{var p,m;const u=document.querySelector("head");if(!u)return;const d=u.firstChild;if(a){if(d&&((p=d.hasAttribute)!=null&&p.call(d,"data-mui-layer-order"))&&d.getAttribute("data-mui-layer-order")===o)return;const h=document.createElement("style");h.setAttribute("data-mui-layer-order",o),h.textContent=a,u.prepend(h)}else(m=u.querySelector(`style[data-mui-layer-order="${o}"]`))==null||m.remove()},[a,o]),a?S.jsx(ry,{styles:a}):null}const Ch={};function kh(t,r,o,s=!1){return x.useMemo(()=>{const a=t&&r[t]||r;if(typeof o=="function"){const u=o(a),d=t?{...r,[t]:u}:u;return s?()=>d:d}return t?{...r,[t]:o}:{...r,...o}},[t,r,o,s])}function Sy(t){const{children:r,theme:o,themeId:s}=t,a=Nd(Ch),u=Wd()||Ch,d=kh(s,a,o),p=kh(s,u,o,!0),m=(s?d[s]:d).direction==="rtl",h=PS(d);return S.jsx(CS,{theme:p,children:S.jsx(Fs.Provider,{value:d,children:S.jsx(kS,{value:m,children:S.jsxs(ES,{value:s?d[s].components:d.components,children:[h,r]})})})})}const Eh={theme:void 0};function MS(t){let r,o;return function(a){let u=r;return(u===void 0||a.theme!==o)&&(Eh.theme=a.theme,u=sy(t(Eh)),r=u,o=a.theme),u}}const Hd="mode",Vd="color-scheme",IS="data-color-scheme";function OS(t){const{defaultMode:r="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:s="dark",modeStorageKey:a=Hd,colorSchemeStorageKey:u=Vd,attribute:d=IS,colorSchemeNode:p="document.documentElement",nonce:m}=t||{};let h="",v=d;if(d==="class"&&(v=".%s"),d==="data"&&(v="[data-%s]"),v.startsWith(".")){const C=v.substring(1);h+=`${p}.classList.remove('${C}'.replace('%s', light), '${C}'.replace('%s', dark)); | |
| ${p}.classList.add('${C}'.replace('%s', colorScheme));`}const w=v.match(/\[([^\]]+)\]/);if(w){const[C,T]=w[1].split("=");T||(h+=`${p}.removeAttribute('${C}'.replace('%s', light)); | |
| ${p}.removeAttribute('${C}'.replace('%s', dark));`),h+=` | |
| ${p}.setAttribute('${C}'.replace('%s', colorScheme), ${T?`${T}.replace('%s', colorScheme)`:'""'});`}else h+=`${p}.setAttribute('${v}', colorScheme);`;return S.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() { | |
| try { | |
| let colorScheme = ''; | |
| const mode = localStorage.getItem('${a}') || '${r}'; | |
| const dark = localStorage.getItem('${u}-dark') || '${s}'; | |
| const light = localStorage.getItem('${u}-light') || '${o}'; | |
| if (mode === 'system') { | |
| // handle system mode | |
| const mql = window.matchMedia('(prefers-color-scheme: dark)'); | |
| if (mql.matches) { | |
| colorScheme = dark | |
| } else { | |
| colorScheme = light | |
| } | |
| } | |
| if (mode === 'light') { | |
| colorScheme = light; | |
| } | |
| if (mode === 'dark') { | |
| colorScheme = dark; | |
| } | |
| if (colorScheme) { | |
| ${h} | |
| } | |
| } catch(e){}})();`}},"mui-color-scheme-init")}function $S(){}const AS=({key:t,storageWindow:r})=>(!r&&typeof window<"u"&&(r=window),{get(o){if(typeof window>"u")return;if(!r)return o;let s;try{s=r.localStorage.getItem(t)}catch{}return s||o},set:o=>{if(r)try{r.localStorage.setItem(t,o)}catch{}},subscribe:o=>{if(!r)return $S;const s=a=>{const u=a.newValue;a.key===t&&o(u)};return r.addEventListener("storage",s),()=>{r.removeEventListener("storage",s)}}});function Dc(){}function Rh(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function wy(t,r){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return r("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return r("dark")}function jS(t){return wy(t,r=>{if(r==="light")return t.lightColorScheme;if(r==="dark")return t.darkColorScheme})}function LS(t){const{defaultMode:r="light",defaultLightColorScheme:o,defaultDarkColorScheme:s,supportedColorSchemes:a=[],modeStorageKey:u=Hd,colorSchemeStorageKey:d=Vd,storageWindow:p=typeof window>"u"?void 0:window,storageManager:m=AS,noSsr:h=!1}=t,v=a.join(","),w=a.length>1,C=x.useMemo(()=>m==null?void 0:m({key:u,storageWindow:p}),[m,u,p]),T=x.useMemo(()=>m==null?void 0:m({key:`${d}-light`,storageWindow:p}),[m,d,p]),k=x.useMemo(()=>m==null?void 0:m({key:`${d}-dark`,storageWindow:p}),[m,d,p]),[b,E]=x.useState(()=>{const D=(C==null?void 0:C.get(r))||r,B=(T==null?void 0:T.get(o))||o,g=(k==null?void 0:k.get(s))||s;return{mode:D,systemMode:Rh(D),lightColorScheme:B,darkColorScheme:g}}),[$,j]=x.useState(h||!w);x.useEffect(()=>{j(!0)},[]);const P=jS(b),R=x.useCallback(D=>{E(B=>{if(D===B.mode)return B;const g=D??r;return C==null||C.set(g),{...B,mode:g,systemMode:Rh(g)}})},[C,r]),M=x.useCallback(D=>{D?typeof D=="string"?D&&!v.includes(D)?console.error(`\`${D}\` does not exist in \`theme.colorSchemes\`.`):E(B=>{const g={...B};return wy(B,N=>{N==="light"&&(T==null||T.set(D),g.lightColorScheme=D),N==="dark"&&(k==null||k.set(D),g.darkColorScheme=D)}),g}):E(B=>{const g={...B},N=D.light===null?o:D.light,V=D.dark===null?s:D.dark;return N&&(v.includes(N)?(g.lightColorScheme=N,T==null||T.set(N)):console.error(`\`${N}\` does not exist in \`theme.colorSchemes\`.`)),V&&(v.includes(V)?(g.darkColorScheme=V,k==null||k.set(V)):console.error(`\`${V}\` does not exist in \`theme.colorSchemes\`.`)),g}):E(B=>(T==null||T.set(o),k==null||k.set(s),{...B,lightColorScheme:o,darkColorScheme:s}))},[v,T,k,o,s]),O=x.useCallback(D=>{b.mode==="system"&&E(B=>{const g=D!=null&&D.matches?"dark":"light";return B.systemMode===g?B:{...B,systemMode:g}})},[b.mode]),F=x.useRef(O);return F.current=O,x.useEffect(()=>{if(typeof window.matchMedia!="function"||!w)return;const D=(...g)=>F.current(...g),B=window.matchMedia("(prefers-color-scheme: dark)");return B.addListener(D),D(B),()=>{B.removeListener(D)}},[w]),x.useEffect(()=>{if(w){const D=(C==null?void 0:C.subscribe(N=>{(!N||["light","dark","system"].includes(N))&&R(N||r)}))||Dc,B=(T==null?void 0:T.subscribe(N=>{(!N||v.match(N))&&M({light:N})}))||Dc,g=(k==null?void 0:k.subscribe(N=>{(!N||v.match(N))&&M({dark:N})}))||Dc;return()=>{D(),B(),g()}}},[M,R,v,r,p,w,C,T,k]),{...b,mode:$?b.mode:void 0,systemMode:$?b.systemMode:void 0,colorScheme:$?P:void 0,setMode:R,setColorScheme:M}}const FS="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function NS(t){const{themeId:r,theme:o={},modeStorageKey:s=Hd,colorSchemeStorageKey:a=Vd,disableTransitionOnChange:u=!1,defaultColorScheme:d,resolveTheme:p}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=x.createContext(void 0),v=()=>x.useContext(h)||m,w={},C={};function T($){var Qe,zt,jt,Et;const{children:j,theme:P,modeStorageKey:R=s,colorSchemeStorageKey:M=a,disableTransitionOnChange:O=u,storageManager:F,storageWindow:D=typeof window>"u"?void 0:window,documentNode:B=typeof document>"u"?void 0:document,colorSchemeNode:g=typeof document>"u"?void 0:document.documentElement,disableNestedContext:N=!1,disableStyleSheetGeneration:V=!1,defaultMode:G="system",noSsr:te}=$,Q=x.useRef(!1),U=Wd(),J=x.useContext(h),X=!!J&&!N,K=x.useMemo(()=>P||(typeof o=="function"?o():o),[P]),ee=K[r],A=ee||K,{colorSchemes:Y=w,components:le=C,cssVarPrefix:ie}=A,ae=Object.keys(Y).filter(Ue=>!!Y[Ue]).join(","),de=x.useMemo(()=>ae.split(","),[ae]),xe=typeof d=="string"?d:d.light,ge=typeof d=="string"?d:d.dark,ye=Y[xe]&&Y[ge]?G:((zt=(Qe=Y[A.defaultColorScheme])==null?void 0:Qe.palette)==null?void 0:zt.mode)||((jt=A.palette)==null?void 0:jt.mode),{mode:me,setMode:ke,systemMode:be,lightColorScheme:Le,darkColorScheme:Ee,colorScheme:Be,setColorScheme:et}=LS({supportedColorSchemes:de,defaultLightColorScheme:xe,defaultDarkColorScheme:ge,modeStorageKey:R,colorSchemeStorageKey:M,defaultMode:ye,storageManager:F,storageWindow:D,noSsr:te});let Ve=me,Ie=Be;X&&(Ve=J.mode,Ie=J.colorScheme);const it=x.useMemo(()=>{var Pe;const Ue=Ie||A.defaultColorScheme,Ke=((Pe=A.generateThemeVars)==null?void 0:Pe.call(A))||A.vars,Ae={...A,components:le,colorSchemes:Y,cssVarPrefix:ie,vars:Ke};if(typeof Ae.generateSpacing=="function"&&(Ae.spacing=Ae.generateSpacing()),Ue){const Ye=Y[Ue];Ye&&typeof Ye=="object"&&Object.keys(Ye).forEach(He=>{Ye[He]&&typeof Ye[He]=="object"?Ae[He]={...Ae[He],...Ye[He]}:Ae[He]=Ye[He]})}return p?p(Ae):Ae},[A,Ie,le,Y,ie]),ze=A.colorSchemeSelector;jn(()=>{if(Ie&&g&&ze&&ze!=="media"){const Ue=ze;let Ke=ze;if(Ue==="class"&&(Ke=".%s"),Ue==="data"&&(Ke="[data-%s]"),Ue!=null&&Ue.startsWith("data-")&&!Ue.includes("%s")&&(Ke=`[${Ue}="%s"]`),Ke.startsWith("."))g.classList.remove(...de.map(Ae=>Ke.substring(1).replace("%s",Ae))),g.classList.add(Ke.substring(1).replace("%s",Ie));else{const Ae=Ke.replace("%s",Ie).match(/\[([^\]]+)\]/);if(Ae){const[Pe,Ye]=Ae[1].split("=");Ye||de.forEach(He=>{g.removeAttribute(Pe.replace(Ie,He))}),g.setAttribute(Pe,Ye?Ye.replace(/"|'/g,""):"")}else g.setAttribute(Ke,Ie)}}},[Ie,ze,g,de]),x.useEffect(()=>{let Ue;if(O&&Q.current&&B){const Ke=B.createElement("style");Ke.appendChild(B.createTextNode(FS)),B.head.appendChild(Ke),window.getComputedStyle(B.body),Ue=setTimeout(()=>{B.head.removeChild(Ke)},1)}return()=>{clearTimeout(Ue)}},[Ie,O,B]),x.useEffect(()=>(Q.current=!0,()=>{Q.current=!1}),[]);const _e=x.useMemo(()=>({allColorSchemes:de,colorScheme:Ie,darkColorScheme:Ee,lightColorScheme:Le,mode:Ve,setColorScheme:et,setMode:ke,systemMode:be}),[de,Ie,Ee,Le,Ve,et,ke,be,it.colorSchemeSelector]);let pe=!0;(V||A.cssVariables===!1||X&&(U==null?void 0:U.cssVarPrefix)===ie)&&(pe=!1);const wt=S.jsxs(x.Fragment,{children:[S.jsx(Sy,{themeId:ee?r:void 0,theme:it,children:j}),pe&&S.jsx(Xg,{styles:((Et=it.generateStyleSheets)==null?void 0:Et.call(it))||[]})]});return X?wt:S.jsx(h.Provider,{value:_e,children:wt})}const k=typeof d=="string"?d:d.light,b=typeof d=="string"?d:d.dark;return{CssVarsProvider:T,useColorScheme:v,getInitColorSchemeScript:$=>OS({colorSchemeStorageKey:a,defaultLightColorScheme:k,defaultDarkColorScheme:b,modeStorageKey:s,...$})}}function zS(t=""){function r(...s){if(!s.length)return"";const a=s[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${a}${r(...s.slice(1))})`:`, ${a}`}return(s,...a)=>`var(--${t?`${t}-`:""}${s}${r(...a)})`}const Th=(t,r,o,s=[])=>{let a=t;r.forEach((u,d)=>{d===r.length-1?Array.isArray(a)?a[Number(u)]=o:a&&typeof a=="object"&&(a[u]=o):a&&typeof a=="object"&&(a[u]||(a[u]=s.includes(u)?[]:{}),a=a[u])})},_S=(t,r,o)=>{function s(a,u=[],d=[]){Object.entries(a).forEach(([p,m])=>{(!o||o&&!o([...u,p]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?s(m,[...u,p],Array.isArray(m)?[...d,p]:d):r([...u,p],m,d))})}s(t)},DS=(t,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(s=>t.includes(s))||t[t.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Bc(t,r){const{prefix:o,shouldSkipGeneratingVar:s}=r||{},a={},u={},d={};return _S(t,(p,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!s||!s(p,m))){const v=`--${o?`${o}-`:""}${p.join("-")}`,w=DS(p,m);Object.assign(a,{[v]:w}),Th(u,p,`var(${v})`,h),Th(d,p,`var(${v}, ${w})`,h)}},p=>p[0]==="vars"),{css:a,vars:u,varsWithDefaults:d}}function BS(t,r={}){const{getSelector:o=E,disableCssColorScheme:s,colorSchemeSelector:a}=r,{colorSchemes:u={},components:d,defaultColorScheme:p="light",...m}=t,{vars:h,css:v,varsWithDefaults:w}=Bc(m,r);let C=w;const T={},{[p]:k,...b}=u;if(Object.entries(b||{}).forEach(([P,R])=>{const{vars:M,css:O,varsWithDefaults:F}=Bc(R,r);C=tn(C,F),T[P]={css:O,vars:M}}),k){const{css:P,vars:R,varsWithDefaults:M}=Bc(k,r);C=tn(C,M),T[p]={css:P,vars:R}}function E(P,R){var O,F;let M=a;if(a==="class"&&(M=".%s"),a==="data"&&(M="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(M=`[${a}="%s"]`),P){if(M==="media")return t.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${((F=(O=u[P])==null?void 0:O.palette)==null?void 0:F.mode)||P})`]:{":root":R}};if(M)return t.defaultColorScheme===P?`:root, ${M.replace("%s",String(P))}`:M.replace("%s",String(P))}return":root"}return{vars:C,generateThemeVars:()=>{let P={...h};return Object.entries(T).forEach(([,{vars:R}])=>{P=tn(P,R)}),P},generateStyleSheets:()=>{var D,B;const P=[],R=t.defaultColorScheme||"light";function M(g,N){Object.keys(N).length&&P.push(typeof g=="string"?{[g]:{...N}}:g)}M(o(void 0,{...v}),v);const{[R]:O,...F}=T;if(O){const{css:g}=O,N=(B=(D=u[R])==null?void 0:D.palette)==null?void 0:B.mode,V=!s&&N?{colorScheme:N,...g}:{...g};M(o(R,{...V}),V)}return Object.entries(F).forEach(([g,{css:N}])=>{var te,Q;const V=(Q=(te=u[g])==null?void 0:te.palette)==null?void 0:Q.mode,G=!s&&V?{colorScheme:V,...N}:{...N};M(o(g,{...G}),G)}),P}}}function WS(t){return function(o){return t==="media"?`@media (prefers-color-scheme: ${o})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${o}"] &`:t==="class"?`.${o} &`:t==="data"?`[data-${o}] &`:`${t.replace("%s",o)} &`:"&"}}const Os={black:"#000",white:"#fff"},US={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},ti={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},ni={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},as={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},ri={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},oi={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},ii={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function by(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Os.white,default:Os.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const HS=by();function Cy(){return{text:{primary:Os.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Os.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const Ph=Cy();function Mh(t,r,o,s){const a=s.light||s,u=s.dark||s*1.5;t[r]||(t.hasOwnProperty(o)?t[r]=t[o]:r==="light"?t.light=Bd(t.main,a):r==="dark"&&(t.dark=Dd(t.main,u)))}function VS(t="light"){return t==="dark"?{main:ri[200],light:ri[50],dark:ri[400]}:{main:ri[700],light:ri[400],dark:ri[800]}}function GS(t="light"){return t==="dark"?{main:ti[200],light:ti[50],dark:ti[400]}:{main:ti[500],light:ti[300],dark:ti[700]}}function KS(t="light"){return t==="dark"?{main:ni[500],light:ni[300],dark:ni[700]}:{main:ni[700],light:ni[400],dark:ni[800]}}function YS(t="light"){return t==="dark"?{main:oi[400],light:oi[300],dark:oi[700]}:{main:oi[700],light:oi[500],dark:oi[900]}}function qS(t="light"){return t==="dark"?{main:ii[400],light:ii[300],dark:ii[700]}:{main:ii[800],light:ii[500],dark:ii[900]}}function QS(t="light"){return t==="dark"?{main:as[400],light:as[300],dark:as[700]}:{main:"#ed6c02",light:as[500],dark:as[900]}}function Gd(t){const{mode:r="light",contrastThreshold:o=3,tonalOffset:s=.2,...a}=t,u=t.primary||VS(r),d=t.secondary||GS(r),p=t.error||KS(r),m=t.info||YS(r),h=t.success||qS(r),v=t.warning||QS(r);function w(b){return pS(b,Ph.text.primary)>=o?Ph.text.primary:HS.text.primary}const C=({color:b,name:E,mainShade:$=500,lightShade:j=300,darkShade:P=700})=>{if(b={...b},!b.main&&b[$]&&(b.main=b[$]),!b.hasOwnProperty("main"))throw new Error(Tr(11,E?` (${E})`:"",$));if(typeof b.main!="string")throw new Error(Tr(12,E?` (${E})`:"",JSON.stringify(b.main)));return Mh(b,"light",j,s),Mh(b,"dark",P,s),b.contrastText||(b.contrastText=w(b.main)),b};let T;return r==="light"?T=by():r==="dark"&&(T=Cy()),tn({common:{...Os},mode:r,primary:C({color:u,name:"primary"}),secondary:C({color:d,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:C({color:p,name:"error"}),warning:C({color:v,name:"warning"}),info:C({color:m,name:"info"}),success:C({color:h,name:"success"}),grey:US,contrastThreshold:o,getContrastText:w,augmentColor:C,tonalOffset:s,...T},a)}function XS(t){const r={};return Object.entries(t).forEach(s=>{const[a,u]=s;typeof u=="object"&&(r[a]=`${u.fontStyle?`${u.fontStyle} `:""}${u.fontVariant?`${u.fontVariant} `:""}${u.fontWeight?`${u.fontWeight} `:""}${u.fontStretch?`${u.fontStretch} `:""}${u.fontSize||""}${u.lineHeight?`/${u.lineHeight} `:""}${u.fontFamily||""}`)}),r}function ZS(t,r){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...r}}function JS(t){return Math.round(t*1e5)/1e5}const Ih={textTransform:"uppercase"},Oh='"Roboto", "Helvetica", "Arial", sans-serif';function ky(t,r){const{fontFamily:o=Oh,fontSize:s=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:d=500,fontWeightBold:p=700,htmlFontSize:m=16,allVariants:h,pxToRem:v,...w}=typeof r=="function"?r(t):r,C=s/14,T=v||(E=>`${E/m*C}rem`),k=(E,$,j,P,R)=>({fontFamily:o,fontWeight:E,fontSize:T($),lineHeight:j,...o===Oh?{letterSpacing:`${JS(P/$)}em`}:{},...R,...h}),b={h1:k(a,96,1.167,-1.5),h2:k(a,60,1.2,-.5),h3:k(u,48,1.167,0),h4:k(u,34,1.235,.25),h5:k(u,24,1.334,0),h6:k(d,20,1.6,.15),subtitle1:k(u,16,1.75,.15),subtitle2:k(d,14,1.57,.1),body1:k(u,16,1.5,.15),body2:k(u,14,1.43,.15),button:k(d,14,1.75,.4,Ih),caption:k(u,12,1.66,.4),overline:k(u,12,2.66,1,Ih),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return tn({htmlFontSize:m,pxToRem:T,fontFamily:o,fontSize:s,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:d,fontWeightBold:p,...b},w,{clone:!1})}const ew=.2,tw=.14,nw=.12;function St(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${ew})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${tw})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${nw})`].join(",")}const rw=["none",St(0,2,1,-1,0,1,1,0,0,1,3,0),St(0,3,1,-2,0,2,2,0,0,1,5,0),St(0,3,3,-2,0,3,4,0,0,1,8,0),St(0,2,4,-1,0,4,5,0,0,1,10,0),St(0,3,5,-1,0,5,8,0,0,1,14,0),St(0,3,5,-1,0,6,10,0,0,1,18,0),St(0,4,5,-2,0,7,10,1,0,2,16,1),St(0,5,5,-3,0,8,10,1,0,3,14,2),St(0,5,6,-3,0,9,12,1,0,3,16,2),St(0,6,6,-3,0,10,14,1,0,4,18,3),St(0,6,7,-4,0,11,15,1,0,4,20,3),St(0,7,8,-4,0,12,17,2,0,5,22,4),St(0,7,8,-4,0,13,19,2,0,5,24,4),St(0,7,9,-4,0,14,21,2,0,5,26,4),St(0,8,9,-5,0,15,22,2,0,6,28,5),St(0,8,10,-5,0,16,24,2,0,6,30,5),St(0,8,11,-5,0,17,26,2,0,6,32,5),St(0,9,11,-5,0,18,28,2,0,7,34,6),St(0,9,12,-6,0,19,29,2,0,7,36,6),St(0,10,13,-6,0,20,31,3,0,8,38,7),St(0,10,13,-6,0,21,33,3,0,8,40,7),St(0,10,14,-6,0,22,35,3,0,8,42,7),St(0,11,14,-7,0,23,36,3,0,9,44,8),St(0,11,15,-7,0,24,38,3,0,9,46,8)],ow={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},iw={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $h(t){return`${Math.round(t)}ms`}function sw(t){if(!t)return 0;const r=t/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function lw(t){const r={...ow,...t.easing},o={...iw,...t.duration};return{getAutoHeightDuration:sw,create:(a=["all"],u={})=>{const{duration:d=o.standard,easing:p=r.easeInOut,delay:m=0,...h}=u;return(Array.isArray(a)?a:[a]).map(v=>`${v} ${typeof d=="string"?d:$h(d)} ${p} ${typeof m=="string"?m:$h(m)}`).join(",")},...t,easing:r,duration:o}}const aw={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function uw(t){return rr(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Ey(t={}){const r={...t};function o(s){const a=Object.entries(s);for(let u=0;u<a.length;u++){const[d,p]=a[u];!uw(p)||d.startsWith("unstable_")?delete s[d]:rr(p)&&(s[d]={...p},o(s[d]))}}return o(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; | |
| const theme = ${JSON.stringify(r,null,2)}; | |
| theme.breakpoints = createBreakpoints(theme.breakpoints || {}); | |
| theme.transitions = createTransitions(theme.transitions || {}); | |
| export default theme;`}function id(t={},...r){const{breakpoints:o,mixins:s={},spacing:a,palette:u={},transitions:d={},typography:p={},shape:m,...h}=t;if(t.vars&&t.generateThemeVars===void 0)throw new Error(Tr(20));const v=Gd(u),w=Fd(t);let C=tn(w,{mixins:ZS(w.breakpoints,s),palette:v,shadows:rw.slice(),typography:ky(v,p),transitions:lw(d),zIndex:{...aw}});return C=tn(C,h),C=r.reduce((T,k)=>tn(T,k),C),C.unstable_sxConfig={..._s,...h==null?void 0:h.unstable_sxConfig},C.unstable_sx=function(k){return Jr({sx:k,theme:this})},C.toRuntimeSource=Ey,C}function sd(t){let r;return t<1?r=5.11916*t**2:r=4.5*Math.log(t+1)+2,Math.round(r*10)/1e3}const cw=[...Array(25)].map((t,r)=>{if(r===0)return"none";const o=sd(r);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function Ry(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function Ty(t){return t==="dark"?cw:[]}function dw(t){const{palette:r={mode:"light"},opacity:o,overlays:s,...a}=t,u=Gd(r);return{palette:u,opacity:{...Ry(u.mode),...o},overlays:s||Ty(u.mode),...a}}function fw(t){var r;return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!((r=t[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const pw=t=>[...[...Array(25)].map((r,o)=>`--${t?`${t}-`:""}overlays-${o}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],mw=t=>(r,o)=>{const s=t.rootSelector||":root",a=t.colorSchemeSelector;let u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(u=`[${a}="%s"]`),t.defaultColorScheme===r){if(r==="dark"){const d={};return pw(t.cssVarPrefix).forEach(p=>{d[p]=o[p],delete o[p]}),u==="media"?{[s]:o,"@media (prefers-color-scheme: dark)":{[s]:d}}:u?{[u.replace("%s",r)]:d,[`${s}, ${u.replace("%s",r)}`]:o}:{[s]:{...o,...d}}}if(u&&u!=="media")return`${s}, ${u.replace("%s",String(r))}`}else if(r){if(u==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[s]:o}};if(u)return u.replace("%s",String(r))}return s};function hw(t,r){r.forEach(o=>{t[o]||(t[o]={})})}function Z(t,r,o){!t[r]&&o&&(t[r]=o)}function Ss(t){return typeof t!="string"||!t.startsWith("hsl")?t:ay(t)}function br(t,r){`${r}Channel`in t||(t[`${r}Channel`]=xs(Ss(t[r])))}function gw(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const Jn=t=>{try{return t()}catch{}},yw=(t="mui")=>zS(t);function Wc(t,r,o,s){if(!r)return;r=r===!0?{}:r;const a=s==="dark"?"dark":"light";if(!o){t[s]=dw({...r,palette:{mode:a,...r==null?void 0:r.palette}});return}const{palette:u,...d}=id({...o,palette:{mode:a,...r==null?void 0:r.palette}});return t[s]={...r,palette:u,opacity:{...Ry(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Ty(a)},d}function vw(t={},...r){const{colorSchemes:o={light:!0},defaultColorScheme:s,disableCssColorScheme:a=!1,cssVarPrefix:u="mui",shouldSkipGeneratingVar:d=fw,colorSchemeSelector:p=o.light&&o.dark?"media":void 0,rootSelector:m=":root",...h}=t,v=Object.keys(o)[0],w=s||(o.light&&v!=="light"?"light":v),C=yw(u),{[w]:T,light:k,dark:b,...E}=o,$={...E};let j=T;if((w==="dark"&&!("dark"in o)||w==="light"&&!("light"in o))&&(j=!0),!j)throw new Error(Tr(21,w));const P=Wc($,j,h,w);k&&!$.light&&Wc($,k,void 0,"light"),b&&!$.dark&&Wc($,b,void 0,"dark");let R={defaultColorScheme:w,...P,cssVarPrefix:u,colorSchemeSelector:p,rootSelector:m,getCssVar:C,colorSchemes:$,font:{...XS(P.typography),...P.font},spacing:gw(h.spacing)};Object.keys(R.colorSchemes).forEach(B=>{const g=R.colorSchemes[B].palette,N=V=>{const G=V.split("-"),te=G[1],Q=G[2];return C(V,g[te][Q])};if(g.mode==="light"&&(Z(g.common,"background","#fff"),Z(g.common,"onBackground","#000")),g.mode==="dark"&&(Z(g.common,"background","#000"),Z(g.common,"onBackground","#fff")),hw(g,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),g.mode==="light"){Z(g.Alert,"errorColor",ut(g.error.light,.6)),Z(g.Alert,"infoColor",ut(g.info.light,.6)),Z(g.Alert,"successColor",ut(g.success.light,.6)),Z(g.Alert,"warningColor",ut(g.warning.light,.6)),Z(g.Alert,"errorFilledBg",N("palette-error-main")),Z(g.Alert,"infoFilledBg",N("palette-info-main")),Z(g.Alert,"successFilledBg",N("palette-success-main")),Z(g.Alert,"warningFilledBg",N("palette-warning-main")),Z(g.Alert,"errorFilledColor",Jn(()=>g.getContrastText(g.error.main))),Z(g.Alert,"infoFilledColor",Jn(()=>g.getContrastText(g.info.main))),Z(g.Alert,"successFilledColor",Jn(()=>g.getContrastText(g.success.main))),Z(g.Alert,"warningFilledColor",Jn(()=>g.getContrastText(g.warning.main))),Z(g.Alert,"errorStandardBg",ct(g.error.light,.9)),Z(g.Alert,"infoStandardBg",ct(g.info.light,.9)),Z(g.Alert,"successStandardBg",ct(g.success.light,.9)),Z(g.Alert,"warningStandardBg",ct(g.warning.light,.9)),Z(g.Alert,"errorIconColor",N("palette-error-main")),Z(g.Alert,"infoIconColor",N("palette-info-main")),Z(g.Alert,"successIconColor",N("palette-success-main")),Z(g.Alert,"warningIconColor",N("palette-warning-main")),Z(g.AppBar,"defaultBg",N("palette-grey-100")),Z(g.Avatar,"defaultBg",N("palette-grey-400")),Z(g.Button,"inheritContainedBg",N("palette-grey-300")),Z(g.Button,"inheritContainedHoverBg",N("palette-grey-A100")),Z(g.Chip,"defaultBorder",N("palette-grey-400")),Z(g.Chip,"defaultAvatarColor",N("palette-grey-700")),Z(g.Chip,"defaultIconColor",N("palette-grey-700")),Z(g.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Z(g.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Z(g.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Z(g.LinearProgress,"primaryBg",ct(g.primary.main,.62)),Z(g.LinearProgress,"secondaryBg",ct(g.secondary.main,.62)),Z(g.LinearProgress,"errorBg",ct(g.error.main,.62)),Z(g.LinearProgress,"infoBg",ct(g.info.main,.62)),Z(g.LinearProgress,"successBg",ct(g.success.main,.62)),Z(g.LinearProgress,"warningBg",ct(g.warning.main,.62)),Z(g.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.11)`),Z(g.Slider,"primaryTrack",ct(g.primary.main,.62)),Z(g.Slider,"secondaryTrack",ct(g.secondary.main,.62)),Z(g.Slider,"errorTrack",ct(g.error.main,.62)),Z(g.Slider,"infoTrack",ct(g.info.main,.62)),Z(g.Slider,"successTrack",ct(g.success.main,.62)),Z(g.Slider,"warningTrack",ct(g.warning.main,.62));const V=Jl(g.background.default,.8);Z(g.SnackbarContent,"bg",V),Z(g.SnackbarContent,"color",Jn(()=>g.getContrastText(V))),Z(g.SpeedDialAction,"fabHoverBg",Jl(g.background.paper,.15)),Z(g.StepConnector,"border",N("palette-grey-400")),Z(g.StepContent,"border",N("palette-grey-400")),Z(g.Switch,"defaultColor",N("palette-common-white")),Z(g.Switch,"defaultDisabledColor",N("palette-grey-100")),Z(g.Switch,"primaryDisabledColor",ct(g.primary.main,.62)),Z(g.Switch,"secondaryDisabledColor",ct(g.secondary.main,.62)),Z(g.Switch,"errorDisabledColor",ct(g.error.main,.62)),Z(g.Switch,"infoDisabledColor",ct(g.info.main,.62)),Z(g.Switch,"successDisabledColor",ct(g.success.main,.62)),Z(g.Switch,"warningDisabledColor",ct(g.warning.main,.62)),Z(g.TableCell,"border",ct(Zl(g.divider,1),.88)),Z(g.Tooltip,"bg",Zl(g.grey[700],.92))}if(g.mode==="dark"){Z(g.Alert,"errorColor",ct(g.error.light,.6)),Z(g.Alert,"infoColor",ct(g.info.light,.6)),Z(g.Alert,"successColor",ct(g.success.light,.6)),Z(g.Alert,"warningColor",ct(g.warning.light,.6)),Z(g.Alert,"errorFilledBg",N("palette-error-dark")),Z(g.Alert,"infoFilledBg",N("palette-info-dark")),Z(g.Alert,"successFilledBg",N("palette-success-dark")),Z(g.Alert,"warningFilledBg",N("palette-warning-dark")),Z(g.Alert,"errorFilledColor",Jn(()=>g.getContrastText(g.error.dark))),Z(g.Alert,"infoFilledColor",Jn(()=>g.getContrastText(g.info.dark))),Z(g.Alert,"successFilledColor",Jn(()=>g.getContrastText(g.success.dark))),Z(g.Alert,"warningFilledColor",Jn(()=>g.getContrastText(g.warning.dark))),Z(g.Alert,"errorStandardBg",ut(g.error.light,.9)),Z(g.Alert,"infoStandardBg",ut(g.info.light,.9)),Z(g.Alert,"successStandardBg",ut(g.success.light,.9)),Z(g.Alert,"warningStandardBg",ut(g.warning.light,.9)),Z(g.Alert,"errorIconColor",N("palette-error-main")),Z(g.Alert,"infoIconColor",N("palette-info-main")),Z(g.Alert,"successIconColor",N("palette-success-main")),Z(g.Alert,"warningIconColor",N("palette-warning-main")),Z(g.AppBar,"defaultBg",N("palette-grey-900")),Z(g.AppBar,"darkBg",N("palette-background-paper")),Z(g.AppBar,"darkColor",N("palette-text-primary")),Z(g.Avatar,"defaultBg",N("palette-grey-600")),Z(g.Button,"inheritContainedBg",N("palette-grey-800")),Z(g.Button,"inheritContainedHoverBg",N("palette-grey-700")),Z(g.Chip,"defaultBorder",N("palette-grey-700")),Z(g.Chip,"defaultAvatarColor",N("palette-grey-300")),Z(g.Chip,"defaultIconColor",N("palette-grey-300")),Z(g.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Z(g.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Z(g.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Z(g.LinearProgress,"primaryBg",ut(g.primary.main,.5)),Z(g.LinearProgress,"secondaryBg",ut(g.secondary.main,.5)),Z(g.LinearProgress,"errorBg",ut(g.error.main,.5)),Z(g.LinearProgress,"infoBg",ut(g.info.main,.5)),Z(g.LinearProgress,"successBg",ut(g.success.main,.5)),Z(g.LinearProgress,"warningBg",ut(g.warning.main,.5)),Z(g.Skeleton,"bg",`rgba(${N("palette-text-primaryChannel")} / 0.13)`),Z(g.Slider,"primaryTrack",ut(g.primary.main,.5)),Z(g.Slider,"secondaryTrack",ut(g.secondary.main,.5)),Z(g.Slider,"errorTrack",ut(g.error.main,.5)),Z(g.Slider,"infoTrack",ut(g.info.main,.5)),Z(g.Slider,"successTrack",ut(g.success.main,.5)),Z(g.Slider,"warningTrack",ut(g.warning.main,.5));const V=Jl(g.background.default,.98);Z(g.SnackbarContent,"bg",V),Z(g.SnackbarContent,"color",Jn(()=>g.getContrastText(V))),Z(g.SpeedDialAction,"fabHoverBg",Jl(g.background.paper,.15)),Z(g.StepConnector,"border",N("palette-grey-600")),Z(g.StepContent,"border",N("palette-grey-600")),Z(g.Switch,"defaultColor",N("palette-grey-300")),Z(g.Switch,"defaultDisabledColor",N("palette-grey-600")),Z(g.Switch,"primaryDisabledColor",ut(g.primary.main,.55)),Z(g.Switch,"secondaryDisabledColor",ut(g.secondary.main,.55)),Z(g.Switch,"errorDisabledColor",ut(g.error.main,.55)),Z(g.Switch,"infoDisabledColor",ut(g.info.main,.55)),Z(g.Switch,"successDisabledColor",ut(g.success.main,.55)),Z(g.Switch,"warningDisabledColor",ut(g.warning.main,.55)),Z(g.TableCell,"border",ut(Zl(g.divider,1),.68)),Z(g.Tooltip,"bg",Zl(g.grey[700],.92))}br(g.background,"default"),br(g.background,"paper"),br(g.common,"background"),br(g.common,"onBackground"),br(g,"divider"),Object.keys(g).forEach(V=>{const G=g[V];V!=="tonalOffset"&&G&&typeof G=="object"&&(G.main&&Z(g[V],"mainChannel",xs(Ss(G.main))),G.light&&Z(g[V],"lightChannel",xs(Ss(G.light))),G.dark&&Z(g[V],"darkChannel",xs(Ss(G.dark))),G.contrastText&&Z(g[V],"contrastTextChannel",xs(Ss(G.contrastText))),V==="text"&&(br(g[V],"primary"),br(g[V],"secondary")),V==="action"&&(G.active&&br(g[V],"active"),G.selected&&br(g[V],"selected")))})}),R=r.reduce((B,g)=>tn(B,g),R);const M={prefix:u,disableCssColorScheme:a,shouldSkipGeneratingVar:d,getSelector:mw(R)},{vars:O,generateThemeVars:F,generateStyleSheets:D}=BS(R,M);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([B,g])=>{R[B]=g}),R.generateThemeVars=F,R.generateStyleSheets=D,R.generateSpacing=function(){return ny(h.spacing,jd(this))},R.getColorSchemeSelector=WS(p),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=d,R.unstable_sxConfig={..._s,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(g){return Jr({sx:g,theme:this})},R.toRuntimeSource=Ey,R}function Ah(t,r,o){t.colorSchemes&&o&&(t.colorSchemes[r]={...o!==!0&&o,palette:Gd({...o===!0?{}:o.palette,mode:r})})}function Da(t={},...r){const{palette:o,cssVariables:s=!1,colorSchemes:a=o?void 0:{light:!0},defaultColorScheme:u=o==null?void 0:o.mode,...d}=t,p=u||"light",m=a==null?void 0:a[p],h={...a,...o?{[p]:{...typeof m!="boolean"&&m,palette:o}}:void 0};if(s===!1){if(!("colorSchemes"in t))return id(t,...r);let v=o;"palette"in t||h[p]&&(h[p]!==!0?v=h[p].palette:p==="dark"&&(v={mode:"dark"}));const w=id({...t,palette:v},...r);return w.defaultColorScheme=p,w.colorSchemes=h,w.palette.mode==="light"&&(w.colorSchemes.light={...h.light!==!0&&h.light,palette:w.palette},Ah(w,"dark",h.dark)),w.palette.mode==="dark"&&(w.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:w.palette},Ah(w,"light",h.light)),w}return!o&&!("light"in h)&&p==="light"&&(h.light=!0),vw({...d,colorSchemes:h,defaultColorScheme:p,...typeof s!="boolean"&&s},...r)}const Kd=Da();function Ba(){const t=zd(Kd);return t[or]||t}function Py(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const zn=t=>Py(t)&&t!=="classes",Ce=iS({themeId:or,defaultTheme:Kd,rootShouldForwardProp:zn});function xw({theme:t,...r}){const o=or in t?t[or]:void 0;return S.jsx(Sy,{...r,themeId:o?or:void 0,theme:o||t})}const ea={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Sw}=NS({themeId:or,theme:()=>Da({cssVariables:!0}),colorSchemeStorageKey:ea.colorSchemeStorageKey,modeStorageKey:ea.modeStorageKey,defaultColorScheme:{light:ea.defaultLightColorScheme,dark:ea.defaultDarkColorScheme},resolveTheme:t=>{const r={...t,typography:ky(t.palette,t.typography)};return r.unstable_sx=function(s){return Jr({sx:s,theme:this})},r}}),ww=Sw;function bw({theme:t,...r}){const o=x.useMemo(()=>{if(typeof t=="function")return t;const s=or in t?t[or]:t;return"colorSchemes"in s?null:"vars"in s?t:{...t,vars:null}},[t]);return o?S.jsx(xw,{theme:o,...r}):S.jsx(ww,{theme:t,...r})}function Cw(t){return S.jsx(ry,{...t,defaultTheme:Kd,themeId:or})}function kw(t){return function(o){return S.jsx(Cw,{styles:typeof t=="function"?s=>t({theme:s,...o}):t})}}const yt=MS;function vt(t){return TS(t)}function My(t,r){if(t==null)return{};var o={};for(var s in t)if({}.hasOwnProperty.call(t,s)){if(r.indexOf(s)!==-1)continue;o[s]=t[s]}return o}function ld(t,r){return ld=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},ld(t,r)}function Iy(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,ld(t,r)}var Oy=Ng();const ta=Fg(Oy),jh={disabled:!1},ba=Sn.createContext(null);var Ew=function(r){return r.scrollTop},ws="unmounted",Eo="exited",Ro="entering",li="entered",ad="exiting",ar=(function(t){Iy(r,t);function r(s,a){var u;u=t.call(this,s,a)||this;var d=a,p=d&&!d.isMounting?s.enter:s.appear,m;return u.appearStatus=null,s.in?p?(m=Eo,u.appearStatus=Ro):m=li:s.unmountOnExit||s.mountOnEnter?m=ws:m=Eo,u.state={status:m},u.nextCallback=null,u}r.getDerivedStateFromProps=function(a,u){var d=a.in;return d&&u.status===ws?{status:Eo}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(a){var u=null;if(a!==this.props){var d=this.state.status;this.props.in?d!==Ro&&d!==li&&(u=Ro):(d===Ro||d===li)&&(u=ad)}this.updateStatus(!1,u)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var a=this.props.timeout,u,d,p;return u=d=p=a,a!=null&&typeof a!="number"&&(u=a.exit,d=a.enter,p=a.appear!==void 0?a.appear:d),{exit:u,enter:d,appear:p}},o.updateStatus=function(a,u){if(a===void 0&&(a=!1),u!==null)if(this.cancelNextCallback(),u===Ro){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:ta.findDOMNode(this);d&&Ew(d)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eo&&this.setState({status:ws})},o.performEnter=function(a){var u=this,d=this.props.enter,p=this.context?this.context.isMounting:a,m=this.props.nodeRef?[p]:[ta.findDOMNode(this),p],h=m[0],v=m[1],w=this.getTimeouts(),C=p?w.appear:w.enter;if(!a&&!d||jh.disabled){this.safeSetState({status:li},function(){u.props.onEntered(h)});return}this.props.onEnter(h,v),this.safeSetState({status:Ro},function(){u.props.onEntering(h,v),u.onTransitionEnd(C,function(){u.safeSetState({status:li},function(){u.props.onEntered(h,v)})})})},o.performExit=function(){var a=this,u=this.props.exit,d=this.getTimeouts(),p=this.props.nodeRef?void 0:ta.findDOMNode(this);if(!u||jh.disabled){this.safeSetState({status:Eo},function(){a.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:ad},function(){a.props.onExiting(p),a.onTransitionEnd(d.exit,function(){a.safeSetState({status:Eo},function(){a.props.onExited(p)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(a,u){u=this.setNextCallback(u),this.setState(a,u)},o.setNextCallback=function(a){var u=this,d=!0;return this.nextCallback=function(p){d&&(d=!1,u.nextCallback=null,a(p))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},o.onTransitionEnd=function(a,u){this.setNextCallback(u);var d=this.props.nodeRef?this.props.nodeRef.current:ta.findDOMNode(this),p=a==null&&!this.props.addEndListener;if(!d||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],h=m[0],v=m[1];this.props.addEndListener(h,v)}a!=null&&setTimeout(this.nextCallback,a)},o.render=function(){var a=this.state.status;if(a===ws)return null;var u=this.props,d=u.children;u.in,u.mountOnEnter,u.unmountOnExit,u.appear,u.enter,u.exit,u.timeout,u.addEndListener,u.onEnter,u.onEntering,u.onEntered,u.onExit,u.onExiting,u.onExited,u.nodeRef;var p=My(u,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Sn.createElement(ba.Provider,{value:null},typeof d=="function"?d(a,p):Sn.cloneElement(Sn.Children.only(d),p))},r})(Sn.Component);ar.contextType=ba;ar.propTypes={};function si(){}ar.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:si,onEntering:si,onEntered:si,onExit:si,onExiting:si,onExited:si};ar.UNMOUNTED=ws;ar.EXITED=Eo;ar.ENTERING=Ro;ar.ENTERED=li;ar.EXITING=ad;function Rw(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Yd(t,r){var o=function(u){return r&&x.isValidElement(u)?r(u):u},s=Object.create(null);return t&&x.Children.map(t,function(a){return a}).forEach(function(a){s[a.key]=o(a)}),s}function Tw(t,r){t=t||{},r=r||{};function o(v){return v in r?r[v]:t[v]}var s=Object.create(null),a=[];for(var u in t)u in r?a.length&&(s[u]=a,a=[]):a.push(u);var d,p={};for(var m in r){if(s[m])for(d=0;d<s[m].length;d++){var h=s[m][d];p[s[m][d]]=o(h)}p[m]=o(m)}for(d=0;d<a.length;d++)p[a[d]]=o(a[d]);return p}function Po(t,r,o){return o[r]!=null?o[r]:t.props[r]}function Pw(t,r){return Yd(t.children,function(o){return x.cloneElement(o,{onExited:r.bind(null,o),in:!0,appear:Po(o,"appear",t),enter:Po(o,"enter",t),exit:Po(o,"exit",t)})})}function Mw(t,r,o){var s=Yd(t.children),a=Tw(r,s);return Object.keys(a).forEach(function(u){var d=a[u];if(x.isValidElement(d)){var p=u in r,m=u in s,h=r[u],v=x.isValidElement(h)&&!h.props.in;m&&(!p||v)?a[u]=x.cloneElement(d,{onExited:o.bind(null,d),in:!0,exit:Po(d,"exit",t),enter:Po(d,"enter",t)}):!m&&p&&!v?a[u]=x.cloneElement(d,{in:!1}):m&&p&&x.isValidElement(h)&&(a[u]=x.cloneElement(d,{onExited:o.bind(null,d),in:h.props.in,exit:Po(d,"exit",t),enter:Po(d,"enter",t)}))}}),a}var Iw=Object.values||function(t){return Object.keys(t).map(function(r){return t[r]})},Ow={component:"div",childFactory:function(r){return r}},qd=(function(t){Iy(r,t);function r(s,a){var u;u=t.call(this,s,a)||this;var d=u.handleExited.bind(Rw(u));return u.state={contextValue:{isMounting:!0},handleExited:d,firstRender:!0},u}var o=r.prototype;return o.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},o.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(a,u){var d=u.children,p=u.handleExited,m=u.firstRender;return{children:m?Pw(a,p):Mw(a,d,p),firstRender:!1}},o.handleExited=function(a,u){var d=Yd(this.props.children);a.key in d||(a.props.onExited&&a.props.onExited(u),this.mounted&&this.setState(function(p){var m=ya({},p.children);return delete m[a.key],{children:m}}))},o.render=function(){var a=this.props,u=a.component,d=a.childFactory,p=My(a,["component","childFactory"]),m=this.state.contextValue,h=Iw(this.state.children).map(d);return delete p.appear,delete p.enter,delete p.exit,u===null?Sn.createElement(ba.Provider,{value:m},h):Sn.createElement(ba.Provider,{value:m},Sn.createElement(u,p,h))},r})(Sn.Component);qd.propTypes={};qd.defaultProps=Ow;const $y=t=>t.scrollTop;function Ca(t,r){const{timeout:o,easing:s,style:a={}}=t;return{duration:a.transitionDuration??(typeof o=="number"?o:o[r.mode]||0),easing:a.transitionTimingFunction??(typeof s=="object"?s[r.mode]:s),delay:a.transitionDelay}}function ud(t){return`scale(${t}, ${t**2})`}const $w={entering:{opacity:1,transform:ud(1)},entered:{opacity:1,transform:"none"}},Uc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ka=x.forwardRef(function(r,o){const{addEndListener:s,appear:a=!0,children:u,easing:d,in:p,onEnter:m,onEntered:h,onEntering:v,onExit:w,onExited:C,onExiting:T,style:k,timeout:b="auto",TransitionComponent:E=ar,...$}=r,j=ai(),P=x.useRef(),R=Ba(),M=x.useRef(null),O=Ht(M,wi(u),o),F=Q=>U=>{if(Q){const J=M.current;U===void 0?Q(J):Q(J,U)}},D=F(v),B=F((Q,U)=>{$y(Q);const{duration:J,delay:X,easing:K}=Ca({style:k,timeout:b,easing:d},{mode:"enter"});let ee;b==="auto"?(ee=R.transitions.getAutoHeightDuration(Q.clientHeight),P.current=ee):ee=J,Q.style.transition=[R.transitions.create("opacity",{duration:ee,delay:X}),R.transitions.create("transform",{duration:Uc?ee:ee*.666,delay:X,easing:K})].join(","),m&&m(Q,U)}),g=F(h),N=F(T),V=F(Q=>{const{duration:U,delay:J,easing:X}=Ca({style:k,timeout:b,easing:d},{mode:"exit"});let K;b==="auto"?(K=R.transitions.getAutoHeightDuration(Q.clientHeight),P.current=K):K=U,Q.style.transition=[R.transitions.create("opacity",{duration:K,delay:J}),R.transitions.create("transform",{duration:Uc?K:K*.666,delay:Uc?J:J||K*.333,easing:X})].join(","),Q.style.opacity=0,Q.style.transform=ud(.75),w&&w(Q)}),G=F(C),te=Q=>{b==="auto"&&j.start(P.current||0,Q),s&&s(M.current,Q)};return S.jsx(E,{appear:a,in:p,nodeRef:M,onEnter:B,onEntered:g,onEntering:D,onExit:V,onExited:G,onExiting:N,addEndListener:te,timeout:b==="auto"?null:b,...$,children:(Q,{ownerState:U,...J})=>x.cloneElement(u,{style:{opacity:0,transform:ud(.75),visibility:Q==="exited"&&!p?"hidden":void 0,...$w[Q],...k,...u.props.style},ref:O,...J})})});ka&&(ka.muiSupportAuto=!0);var dn="top",Ln="bottom",Fn="right",fn="left",Qd="auto",Ds=[dn,Ln,Fn,fn],pi="start",$s="end",Aw="clippingParents",Ay="viewport",us="popper",jw="reference",Lh=Ds.reduce(function(t,r){return t.concat([r+"-"+pi,r+"-"+$s])},[]),jy=[].concat(Ds,[Qd]).reduce(function(t,r){return t.concat([r,r+"-"+pi,r+"-"+$s])},[]),Lw="beforeRead",Fw="read",Nw="afterRead",zw="beforeMain",_w="main",Dw="afterMain",Bw="beforeWrite",Ww="write",Uw="afterWrite",Hw=[Lw,Fw,Nw,zw,_w,Dw,Bw,Ww,Uw];function lr(t){return t?(t.nodeName||"").toLowerCase():null}function Cn(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function Io(t){var r=Cn(t).Element;return t instanceof r||t instanceof Element}function An(t){var r=Cn(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function Xd(t){if(typeof ShadowRoot>"u")return!1;var r=Cn(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function Vw(t){var r=t.state;Object.keys(r.elements).forEach(function(o){var s=r.styles[o]||{},a=r.attributes[o]||{},u=r.elements[o];!An(u)||!lr(u)||(Object.assign(u.style,s),Object.keys(a).forEach(function(d){var p=a[d];p===!1?u.removeAttribute(d):u.setAttribute(d,p===!0?"":p)}))})}function Gw(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow),function(){Object.keys(r.elements).forEach(function(s){var a=r.elements[s],u=r.attributes[s]||{},d=Object.keys(r.styles.hasOwnProperty(s)?r.styles[s]:o[s]),p=d.reduce(function(m,h){return m[h]="",m},{});!An(a)||!lr(a)||(Object.assign(a.style,p),Object.keys(u).forEach(function(m){a.removeAttribute(m)}))})}}const Kw={name:"applyStyles",enabled:!0,phase:"write",fn:Vw,effect:Gw,requires:["computeStyles"]};function sr(t){return t.split("-")[0]}var Mo=Math.max,Ea=Math.min,mi=Math.round;function cd(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Ly(){return!/^((?!chrome|android).)*safari/i.test(cd())}function hi(t,r,o){r===void 0&&(r=!1),o===void 0&&(o=!1);var s=t.getBoundingClientRect(),a=1,u=1;r&&An(t)&&(a=t.offsetWidth>0&&mi(s.width)/t.offsetWidth||1,u=t.offsetHeight>0&&mi(s.height)/t.offsetHeight||1);var d=Io(t)?Cn(t):window,p=d.visualViewport,m=!Ly()&&o,h=(s.left+(m&&p?p.offsetLeft:0))/a,v=(s.top+(m&&p?p.offsetTop:0))/u,w=s.width/a,C=s.height/u;return{width:w,height:C,top:v,right:h+w,bottom:v+C,left:h,x:h,y:v}}function Zd(t){var r=hi(t),o=t.offsetWidth,s=t.offsetHeight;return Math.abs(r.width-o)<=1&&(o=r.width),Math.abs(r.height-s)<=1&&(s=r.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:s}}function Fy(t,r){var o=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(o&&Xd(o)){var s=r;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Ir(t){return Cn(t).getComputedStyle(t)}function Yw(t){return["table","td","th"].indexOf(lr(t))>=0}function no(t){return((Io(t)?t.ownerDocument:t.document)||window.document).documentElement}function Wa(t){return lr(t)==="html"?t:t.assignedSlot||t.parentNode||(Xd(t)?t.host:null)||no(t)}function Fh(t){return!An(t)||Ir(t).position==="fixed"?null:t.offsetParent}function qw(t){var r=/firefox/i.test(cd()),o=/Trident/i.test(cd());if(o&&An(t)){var s=Ir(t);if(s.position==="fixed")return null}var a=Wa(t);for(Xd(a)&&(a=a.host);An(a)&&["html","body"].indexOf(lr(a))<0;){var u=Ir(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||r&&u.willChange==="filter"||r&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function Bs(t){for(var r=Cn(t),o=Fh(t);o&&Yw(o)&&Ir(o).position==="static";)o=Fh(o);return o&&(lr(o)==="html"||lr(o)==="body"&&Ir(o).position==="static")?r:o||qw(t)||r}function Jd(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Cs(t,r,o){return Mo(t,Ea(r,o))}function Qw(t,r,o){var s=Cs(t,r,o);return s>o?o:s}function Ny(){return{top:0,right:0,bottom:0,left:0}}function zy(t){return Object.assign({},Ny(),t)}function _y(t,r){return r.reduce(function(o,s){return o[s]=t,o},{})}var Xw=function(r,o){return r=typeof r=="function"?r(Object.assign({},o.rects,{placement:o.placement})):r,zy(typeof r!="number"?r:_y(r,Ds))};function Zw(t){var r,o=t.state,s=t.name,a=t.options,u=o.elements.arrow,d=o.modifiersData.popperOffsets,p=sr(o.placement),m=Jd(p),h=[fn,Fn].indexOf(p)>=0,v=h?"height":"width";if(!(!u||!d)){var w=Xw(a.padding,o),C=Zd(u),T=m==="y"?dn:fn,k=m==="y"?Ln:Fn,b=o.rects.reference[v]+o.rects.reference[m]-d[m]-o.rects.popper[v],E=d[m]-o.rects.reference[m],$=Bs(u),j=$?m==="y"?$.clientHeight||0:$.clientWidth||0:0,P=b/2-E/2,R=w[T],M=j-C[v]-w[k],O=j/2-C[v]/2+P,F=Cs(R,O,M),D=m;o.modifiersData[s]=(r={},r[D]=F,r.centerOffset=F-O,r)}}function Jw(t){var r=t.state,o=t.options,s=o.element,a=s===void 0?"[data-popper-arrow]":s;a!=null&&(typeof a=="string"&&(a=r.elements.popper.querySelector(a),!a)||Fy(r.elements.popper,a)&&(r.elements.arrow=a))}const eb={name:"arrow",enabled:!0,phase:"main",fn:Zw,effect:Jw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function gi(t){return t.split("-")[1]}var tb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function nb(t,r){var o=t.x,s=t.y,a=r.devicePixelRatio||1;return{x:mi(o*a)/a||0,y:mi(s*a)/a||0}}function Nh(t){var r,o=t.popper,s=t.popperRect,a=t.placement,u=t.variation,d=t.offsets,p=t.position,m=t.gpuAcceleration,h=t.adaptive,v=t.roundOffsets,w=t.isFixed,C=d.x,T=C===void 0?0:C,k=d.y,b=k===void 0?0:k,E=typeof v=="function"?v({x:T,y:b}):{x:T,y:b};T=E.x,b=E.y;var $=d.hasOwnProperty("x"),j=d.hasOwnProperty("y"),P=fn,R=dn,M=window;if(h){var O=Bs(o),F="clientHeight",D="clientWidth";if(O===Cn(o)&&(O=no(o),Ir(O).position!=="static"&&p==="absolute"&&(F="scrollHeight",D="scrollWidth")),O=O,a===dn||(a===fn||a===Fn)&&u===$s){R=Ln;var B=w&&O===M&&M.visualViewport?M.visualViewport.height:O[F];b-=B-s.height,b*=m?1:-1}if(a===fn||(a===dn||a===Ln)&&u===$s){P=Fn;var g=w&&O===M&&M.visualViewport?M.visualViewport.width:O[D];T-=g-s.width,T*=m?1:-1}}var N=Object.assign({position:p},h&&tb),V=v===!0?nb({x:T,y:b},Cn(o)):{x:T,y:b};if(T=V.x,b=V.y,m){var G;return Object.assign({},N,(G={},G[R]=j?"0":"",G[P]=$?"0":"",G.transform=(M.devicePixelRatio||1)<=1?"translate("+T+"px, "+b+"px)":"translate3d("+T+"px, "+b+"px, 0)",G))}return Object.assign({},N,(r={},r[R]=j?b+"px":"",r[P]=$?T+"px":"",r.transform="",r))}function rb(t){var r=t.state,o=t.options,s=o.gpuAcceleration,a=s===void 0?!0:s,u=o.adaptive,d=u===void 0?!0:u,p=o.roundOffsets,m=p===void 0?!0:p,h={placement:sr(r.placement),variation:gi(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:a,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,Nh(Object.assign({},h,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:d,roundOffsets:m})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,Nh(Object.assign({},h,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const ob={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:rb,data:{}};var na={passive:!0};function ib(t){var r=t.state,o=t.instance,s=t.options,a=s.scroll,u=a===void 0?!0:a,d=s.resize,p=d===void 0?!0:d,m=Cn(r.elements.popper),h=[].concat(r.scrollParents.reference,r.scrollParents.popper);return u&&h.forEach(function(v){v.addEventListener("scroll",o.update,na)}),p&&m.addEventListener("resize",o.update,na),function(){u&&h.forEach(function(v){v.removeEventListener("scroll",o.update,na)}),p&&m.removeEventListener("resize",o.update,na)}}const sb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ib,data:{}};var lb={left:"right",right:"left",bottom:"top",top:"bottom"};function ga(t){return t.replace(/left|right|bottom|top/g,function(r){return lb[r]})}var ab={start:"end",end:"start"};function zh(t){return t.replace(/start|end/g,function(r){return ab[r]})}function ef(t){var r=Cn(t),o=r.pageXOffset,s=r.pageYOffset;return{scrollLeft:o,scrollTop:s}}function tf(t){return hi(no(t)).left+ef(t).scrollLeft}function ub(t,r){var o=Cn(t),s=no(t),a=o.visualViewport,u=s.clientWidth,d=s.clientHeight,p=0,m=0;if(a){u=a.width,d=a.height;var h=Ly();(h||!h&&r==="fixed")&&(p=a.offsetLeft,m=a.offsetTop)}return{width:u,height:d,x:p+tf(t),y:m}}function cb(t){var r,o=no(t),s=ef(t),a=(r=t.ownerDocument)==null?void 0:r.body,u=Mo(o.scrollWidth,o.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),d=Mo(o.scrollHeight,o.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),p=-s.scrollLeft+tf(t),m=-s.scrollTop;return Ir(a||o).direction==="rtl"&&(p+=Mo(o.clientWidth,a?a.clientWidth:0)-u),{width:u,height:d,x:p,y:m}}function nf(t){var r=Ir(t),o=r.overflow,s=r.overflowX,a=r.overflowY;return/auto|scroll|overlay|hidden/.test(o+a+s)}function Dy(t){return["html","body","#document"].indexOf(lr(t))>=0?t.ownerDocument.body:An(t)&&nf(t)?t:Dy(Wa(t))}function ks(t,r){var o;r===void 0&&(r=[]);var s=Dy(t),a=s===((o=t.ownerDocument)==null?void 0:o.body),u=Cn(s),d=a?[u].concat(u.visualViewport||[],nf(s)?s:[]):s,p=r.concat(d);return a?p:p.concat(ks(Wa(d)))}function dd(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function db(t,r){var o=hi(t,!1,r==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function _h(t,r,o){return r===Ay?dd(ub(t,o)):Io(r)?db(r,o):dd(cb(no(t)))}function fb(t){var r=ks(Wa(t)),o=["absolute","fixed"].indexOf(Ir(t).position)>=0,s=o&&An(t)?Bs(t):t;return Io(s)?r.filter(function(a){return Io(a)&&Fy(a,s)&&lr(a)!=="body"}):[]}function pb(t,r,o,s){var a=r==="clippingParents"?fb(t):[].concat(r),u=[].concat(a,[o]),d=u[0],p=u.reduce(function(m,h){var v=_h(t,h,s);return m.top=Mo(v.top,m.top),m.right=Ea(v.right,m.right),m.bottom=Ea(v.bottom,m.bottom),m.left=Mo(v.left,m.left),m},_h(t,d,s));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function By(t){var r=t.reference,o=t.element,s=t.placement,a=s?sr(s):null,u=s?gi(s):null,d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m;switch(a){case dn:m={x:d,y:r.y-o.height};break;case Ln:m={x:d,y:r.y+r.height};break;case Fn:m={x:r.x+r.width,y:p};break;case fn:m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}var h=a?Jd(a):null;if(h!=null){var v=h==="y"?"height":"width";switch(u){case pi:m[h]=m[h]-(r[v]/2-o[v]/2);break;case $s:m[h]=m[h]+(r[v]/2-o[v]/2);break}}return m}function As(t,r){r===void 0&&(r={});var o=r,s=o.placement,a=s===void 0?t.placement:s,u=o.strategy,d=u===void 0?t.strategy:u,p=o.boundary,m=p===void 0?Aw:p,h=o.rootBoundary,v=h===void 0?Ay:h,w=o.elementContext,C=w===void 0?us:w,T=o.altBoundary,k=T===void 0?!1:T,b=o.padding,E=b===void 0?0:b,$=zy(typeof E!="number"?E:_y(E,Ds)),j=C===us?jw:us,P=t.rects.popper,R=t.elements[k?j:C],M=pb(Io(R)?R:R.contextElement||no(t.elements.popper),m,v,d),O=hi(t.elements.reference),F=By({reference:O,element:P,placement:a}),D=dd(Object.assign({},P,F)),B=C===us?D:O,g={top:M.top-B.top+$.top,bottom:B.bottom-M.bottom+$.bottom,left:M.left-B.left+$.left,right:B.right-M.right+$.right},N=t.modifiersData.offset;if(C===us&&N){var V=N[a];Object.keys(g).forEach(function(G){var te=[Fn,Ln].indexOf(G)>=0?1:-1,Q=[dn,Ln].indexOf(G)>=0?"y":"x";g[G]+=V[Q]*te})}return g}function mb(t,r){r===void 0&&(r={});var o=r,s=o.placement,a=o.boundary,u=o.rootBoundary,d=o.padding,p=o.flipVariations,m=o.allowedAutoPlacements,h=m===void 0?jy:m,v=gi(s),w=v?p?Lh:Lh.filter(function(k){return gi(k)===v}):Ds,C=w.filter(function(k){return h.indexOf(k)>=0});C.length===0&&(C=w);var T=C.reduce(function(k,b){return k[b]=As(t,{placement:b,boundary:a,rootBoundary:u,padding:d})[sr(b)],k},{});return Object.keys(T).sort(function(k,b){return T[k]-T[b]})}function hb(t){if(sr(t)===Qd)return[];var r=ga(t);return[zh(t),r,zh(r)]}function gb(t){var r=t.state,o=t.options,s=t.name;if(!r.modifiersData[s]._skip){for(var a=o.mainAxis,u=a===void 0?!0:a,d=o.altAxis,p=d===void 0?!0:d,m=o.fallbackPlacements,h=o.padding,v=o.boundary,w=o.rootBoundary,C=o.altBoundary,T=o.flipVariations,k=T===void 0?!0:T,b=o.allowedAutoPlacements,E=r.options.placement,$=sr(E),j=$===E,P=m||(j||!k?[ga(E)]:hb(E)),R=[E].concat(P).reduce(function(ie,ae){return ie.concat(sr(ae)===Qd?mb(r,{placement:ae,boundary:v,rootBoundary:w,padding:h,flipVariations:k,allowedAutoPlacements:b}):ae)},[]),M=r.rects.reference,O=r.rects.popper,F=new Map,D=!0,B=R[0],g=0;g<R.length;g++){var N=R[g],V=sr(N),G=gi(N)===pi,te=[dn,Ln].indexOf(V)>=0,Q=te?"width":"height",U=As(r,{placement:N,boundary:v,rootBoundary:w,altBoundary:C,padding:h}),J=te?G?Fn:fn:G?Ln:dn;M[Q]>O[Q]&&(J=ga(J));var X=ga(J),K=[];if(u&&K.push(U[V]<=0),p&&K.push(U[J]<=0,U[X]<=0),K.every(function(ie){return ie})){B=N,D=!1;break}F.set(N,K)}if(D)for(var ee=k?3:1,A=function(ae){var de=R.find(function(xe){var ge=F.get(xe);if(ge)return ge.slice(0,ae).every(function(ye){return ye})});if(de)return B=de,"break"},Y=ee;Y>0;Y--){var le=A(Y);if(le==="break")break}r.placement!==B&&(r.modifiersData[s]._skip=!0,r.placement=B,r.reset=!0)}}const yb={name:"flip",enabled:!0,phase:"main",fn:gb,requiresIfExists:["offset"],data:{_skip:!1}};function Dh(t,r,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-r.height-o.y,right:t.right-r.width+o.x,bottom:t.bottom-r.height+o.y,left:t.left-r.width-o.x}}function Bh(t){return[dn,Fn,Ln,fn].some(function(r){return t[r]>=0})}function vb(t){var r=t.state,o=t.name,s=r.rects.reference,a=r.rects.popper,u=r.modifiersData.preventOverflow,d=As(r,{elementContext:"reference"}),p=As(r,{altBoundary:!0}),m=Dh(d,s),h=Dh(p,a,u),v=Bh(m),w=Bh(h);r.modifiersData[o]={referenceClippingOffsets:m,popperEscapeOffsets:h,isReferenceHidden:v,hasPopperEscaped:w},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":v,"data-popper-escaped":w})}const xb={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:vb};function Sb(t,r,o){var s=sr(t),a=[fn,dn].indexOf(s)>=0?-1:1,u=typeof o=="function"?o(Object.assign({},r,{placement:t})):o,d=u[0],p=u[1];return d=d||0,p=(p||0)*a,[fn,Fn].indexOf(s)>=0?{x:p,y:d}:{x:d,y:p}}function wb(t){var r=t.state,o=t.options,s=t.name,a=o.offset,u=a===void 0?[0,0]:a,d=jy.reduce(function(v,w){return v[w]=Sb(w,r.rects,u),v},{}),p=d[r.placement],m=p.x,h=p.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=m,r.modifiersData.popperOffsets.y+=h),r.modifiersData[s]=d}const bb={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:wb};function Cb(t){var r=t.state,o=t.name;r.modifiersData[o]=By({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const kb={name:"popperOffsets",enabled:!0,phase:"read",fn:Cb,data:{}};function Eb(t){return t==="x"?"y":"x"}function Rb(t){var r=t.state,o=t.options,s=t.name,a=o.mainAxis,u=a===void 0?!0:a,d=o.altAxis,p=d===void 0?!1:d,m=o.boundary,h=o.rootBoundary,v=o.altBoundary,w=o.padding,C=o.tether,T=C===void 0?!0:C,k=o.tetherOffset,b=k===void 0?0:k,E=As(r,{boundary:m,rootBoundary:h,padding:w,altBoundary:v}),$=sr(r.placement),j=gi(r.placement),P=!j,R=Jd($),M=Eb(R),O=r.modifiersData.popperOffsets,F=r.rects.reference,D=r.rects.popper,B=typeof b=="function"?b(Object.assign({},r.rects,{placement:r.placement})):b,g=typeof B=="number"?{mainAxis:B,altAxis:B}:Object.assign({mainAxis:0,altAxis:0},B),N=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,V={x:0,y:0};if(O){if(u){var G,te=R==="y"?dn:fn,Q=R==="y"?Ln:Fn,U=R==="y"?"height":"width",J=O[R],X=J+E[te],K=J-E[Q],ee=T?-D[U]/2:0,A=j===pi?F[U]:D[U],Y=j===pi?-D[U]:-F[U],le=r.elements.arrow,ie=T&&le?Zd(le):{width:0,height:0},ae=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Ny(),de=ae[te],xe=ae[Q],ge=Cs(0,F[U],ie[U]),ye=P?F[U]/2-ee-ge-de-g.mainAxis:A-ge-de-g.mainAxis,me=P?-F[U]/2+ee+ge+xe+g.mainAxis:Y+ge+xe+g.mainAxis,ke=r.elements.arrow&&Bs(r.elements.arrow),be=ke?R==="y"?ke.clientTop||0:ke.clientLeft||0:0,Le=(G=N==null?void 0:N[R])!=null?G:0,Ee=J+ye-Le-be,Be=J+me-Le,et=Cs(T?Ea(X,Ee):X,J,T?Mo(K,Be):K);O[R]=et,V[R]=et-J}if(p){var Ve,Ie=R==="x"?dn:fn,it=R==="x"?Ln:Fn,ze=O[M],_e=M==="y"?"height":"width",pe=ze+E[Ie],wt=ze-E[it],Qe=[dn,fn].indexOf($)!==-1,zt=(Ve=N==null?void 0:N[M])!=null?Ve:0,jt=Qe?pe:ze-F[_e]-D[_e]-zt+g.altAxis,Et=Qe?ze+F[_e]+D[_e]-zt-g.altAxis:wt,Ue=T&&Qe?Qw(jt,ze,Et):Cs(T?jt:pe,ze,T?Et:wt);O[M]=Ue,V[M]=Ue-ze}r.modifiersData[s]=V}}const Tb={name:"preventOverflow",enabled:!0,phase:"main",fn:Rb,requiresIfExists:["offset"]};function Pb(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function Mb(t){return t===Cn(t)||!An(t)?ef(t):Pb(t)}function Ib(t){var r=t.getBoundingClientRect(),o=mi(r.width)/t.offsetWidth||1,s=mi(r.height)/t.offsetHeight||1;return o!==1||s!==1}function Ob(t,r,o){o===void 0&&(o=!1);var s=An(r),a=An(r)&&Ib(r),u=no(r),d=hi(t,a,o),p={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(s||!s&&!o)&&((lr(r)!=="body"||nf(u))&&(p=Mb(r)),An(r)?(m=hi(r,!0),m.x+=r.clientLeft,m.y+=r.clientTop):u&&(m.x=tf(u))),{x:d.left+p.scrollLeft-m.x,y:d.top+p.scrollTop-m.y,width:d.width,height:d.height}}function $b(t){var r=new Map,o=new Set,s=[];t.forEach(function(u){r.set(u.name,u)});function a(u){o.add(u.name);var d=[].concat(u.requires||[],u.requiresIfExists||[]);d.forEach(function(p){if(!o.has(p)){var m=r.get(p);m&&a(m)}}),s.push(u)}return t.forEach(function(u){o.has(u.name)||a(u)}),s}function Ab(t){var r=$b(t);return Hw.reduce(function(o,s){return o.concat(r.filter(function(a){return a.phase===s}))},[])}function jb(t){var r;return function(){return r||(r=new Promise(function(o){Promise.resolve().then(function(){r=void 0,o(t())})})),r}}function Lb(t){var r=t.reduce(function(o,s){var a=o[s.name];return o[s.name]=a?Object.assign({},a,s,{options:Object.assign({},a.options,s.options),data:Object.assign({},a.data,s.data)}):s,o},{});return Object.keys(r).map(function(o){return r[o]})}var Wh={placement:"bottom",modifiers:[],strategy:"absolute"};function Uh(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return!r.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function Fb(t){t===void 0&&(t={});var r=t,o=r.defaultModifiers,s=o===void 0?[]:o,a=r.defaultOptions,u=a===void 0?Wh:a;return function(p,m,h){h===void 0&&(h=u);var v={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wh,u),modifiersData:{},elements:{reference:p,popper:m},attributes:{},styles:{}},w=[],C=!1,T={state:v,setOptions:function($){var j=typeof $=="function"?$(v.options):$;b(),v.options=Object.assign({},u,v.options,j),v.scrollParents={reference:Io(p)?ks(p):p.contextElement?ks(p.contextElement):[],popper:ks(m)};var P=Ab(Lb([].concat(s,v.options.modifiers)));return v.orderedModifiers=P.filter(function(R){return R.enabled}),k(),T.update()},forceUpdate:function(){if(!C){var $=v.elements,j=$.reference,P=$.popper;if(Uh(j,P)){v.rects={reference:Ob(j,Bs(P),v.options.strategy==="fixed"),popper:Zd(P)},v.reset=!1,v.placement=v.options.placement,v.orderedModifiers.forEach(function(g){return v.modifiersData[g.name]=Object.assign({},g.data)});for(var R=0;R<v.orderedModifiers.length;R++){if(v.reset===!0){v.reset=!1,R=-1;continue}var M=v.orderedModifiers[R],O=M.fn,F=M.options,D=F===void 0?{}:F,B=M.name;typeof O=="function"&&(v=O({state:v,options:D,name:B,instance:T})||v)}}}},update:jb(function(){return new Promise(function(E){T.forceUpdate(),E(v)})}),destroy:function(){b(),C=!0}};if(!Uh(p,m))return T;T.setOptions(h).then(function(E){!C&&h.onFirstUpdate&&h.onFirstUpdate(E)});function k(){v.orderedModifiers.forEach(function(E){var $=E.name,j=E.options,P=j===void 0?{}:j,R=E.effect;if(typeof R=="function"){var M=R({state:v,name:$,instance:T,options:P}),O=function(){};w.push(M||O)}})}function b(){w.forEach(function(E){return E()}),w=[]}return T}}var Nb=[sb,kb,ob,Kw,bb,yb,Tb,eb,xb],zb=Fb({defaultModifiers:Nb});function _b(t){return typeof t=="function"?t():t}const Wy=x.forwardRef(function(r,o){const{children:s,container:a,disablePortal:u=!1}=r,[d,p]=x.useState(null),m=Ht(x.isValidElement(s)?wi(s):null,o);if(jn(()=>{u||p(_b(a)||document.body)},[a,u]),jn(()=>{if(d&&!u)return vh(o,d),()=>{vh(o,null)}},[o,d,u]),u){if(x.isValidElement(s)){const h={ref:m};return x.cloneElement(s,h)}return s}return d&&Oy.createPortal(s,d)});function Db(t){return pt("MuiPopper",t)}rt("MuiPopper",["root"]);function Bb(t,r){if(r==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function fd(t){return typeof t=="function"?t():t}function Wb(t){return t.nodeType!==void 0}const Ub=t=>{const{classes:r}=t;return mt({root:["root"]},Db,r)},Hb={},Vb=x.forwardRef(function(r,o){const{anchorEl:s,children:a,direction:u,disablePortal:d,modifiers:p,open:m,placement:h,popperOptions:v,popperRef:w,slotProps:C={},slots:T={},TransitionProps:k,ownerState:b,...E}=r,$=x.useRef(null),j=Ht($,o),P=x.useRef(null),R=Ht(P,w),M=x.useRef(R);jn(()=>{M.current=R},[R]),x.useImperativeHandle(w,()=>P.current,[]);const O=Bb(h,u),[F,D]=x.useState(O),[B,g]=x.useState(fd(s));x.useEffect(()=>{P.current&&P.current.forceUpdate()}),x.useEffect(()=>{s&&g(fd(s))},[s]),jn(()=>{if(!B||!m)return;const Q=X=>{D(X.placement)};let U=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{Q(X)}}];p!=null&&(U=U.concat(p)),v&&v.modifiers!=null&&(U=U.concat(v.modifiers));const J=zb(B,$.current,{placement:O,...v,modifiers:U});return M.current(J),()=>{J.destroy(),M.current(null)}},[B,d,p,m,v,O]);const N={placement:F};k!==null&&(N.TransitionProps=k);const V=Ub(r),G=T.root??"div",te=gy({elementType:G,externalSlotProps:C.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:j},ownerState:r,className:V.root});return S.jsx(G,{...te,children:typeof a=="function"?a(N):a})}),Gb=x.forwardRef(function(r,o){const{anchorEl:s,children:a,container:u,direction:d="ltr",disablePortal:p=!1,keepMounted:m=!1,modifiers:h,open:v,placement:w="bottom",popperOptions:C=Hb,popperRef:T,style:k,transition:b=!1,slotProps:E={},slots:$={},...j}=r,[P,R]=x.useState(!0),M=()=>{R(!1)},O=()=>{R(!0)};if(!m&&!v&&(!b||P))return null;let F;if(u)F=u;else if(s){const g=fd(s);F=g&&Wb(g)?bn(g).body:bn(null).body}const D=!v&&m&&(!b||P)?"none":void 0,B=b?{in:v,onEnter:M,onExited:O}:void 0;return S.jsx(Wy,{disablePortal:p,container:F,children:S.jsx(Vb,{anchorEl:s,direction:d,disablePortal:p,modifiers:h,ref:o,open:b?!P:v,placement:w,popperOptions:C,popperRef:T,slotProps:E,slots:$,...j,style:{position:"fixed",top:0,left:0,display:D,...k},TransitionProps:B,children:a})})}),Kb=Ce(Gb,{name:"MuiPopper",slot:"Root",overridesResolver:(t,r)=>r.root})({}),Uy=x.forwardRef(function(r,o){const s=Ud(),a=vt({props:r,name:"MuiPopper"}),{anchorEl:u,component:d,components:p,componentsProps:m,container:h,disablePortal:v,keepMounted:w,modifiers:C,open:T,placement:k,popperOptions:b,popperRef:E,transition:$,slots:j,slotProps:P,...R}=a,M=(j==null?void 0:j.root)??(p==null?void 0:p.Root),O={anchorEl:u,container:h,disablePortal:v,keepMounted:w,modifiers:C,open:T,placement:k,popperOptions:b,popperRef:E,transition:$,...R};return S.jsx(Kb,{as:d,direction:s?"rtl":"ltr",slots:{root:M},slotProps:P??m,...O,ref:o})});function Nt(t,r){const{className:o,elementType:s,ownerState:a,externalForwardedProps:u,internalForwardedProps:d,shouldForwardComponentProp:p=!1,...m}=r,{component:h,slots:v={[t]:void 0},slotProps:w={[t]:void 0},...C}=u,T=v[t]||s,k=hy(w[t],a),{props:{component:b,...E},internalRef:$}=my({className:o,...m,externalForwardedProps:t==="root"?C:void 0,externalSlotProps:k}),j=Ht($,k==null?void 0:k.ref,r.ref),P=t==="root"?b||h:b,R=fy(T,{...t==="root"&&!h&&!v[t]&&d,...t!=="root"&&!v[t]&&d,...E,...P&&!p&&{as:P},...P&&p&&{component:P},ref:j},a);return[T,R]}function Yb(t){return pt("MuiTooltip",t)}const It=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function qb(t){return Math.round(t*1e5)/1e5}const Qb=t=>{const{classes:r,disableInteractive:o,arrow:s,touch:a,placement:u}=t,d={popper:["popper",!o&&"popperInteractive",s&&"popperArrow"],tooltip:["tooltip",s&&"tooltipArrow",a&&"touch",`tooltipPlacement${$e(u.split("-")[0])}`],arrow:["arrow"]};return mt(d,Yb,r)},Xb=Ce(Uy,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.popper,!o.disableInteractive&&r.popperInteractive,o.arrow&&r.popperArrow,!o.open&&r.popperClose]}})(yt(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:r})=>!r.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:r})=>!r,style:{pointerEvents:"none"}},{props:({ownerState:r})=>r.arrow,style:{[`&[data-popper-placement*="bottom"] .${It.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${It.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${It.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${It.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:r})=>r.arrow&&!r.isRtl,style:{[`&[data-popper-placement*="right"] .${It.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:r})=>r.arrow&&!!r.isRtl,style:{[`&[data-popper-placement*="right"] .${It.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:r})=>r.arrow&&!r.isRtl,style:{[`&[data-popper-placement*="left"] .${It.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:r})=>r.arrow&&!!r.isRtl,style:{[`&[data-popper-placement*="left"] .${It.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),Zb=Ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.tooltip,o.touch&&r.touch,o.arrow&&r.tooltipArrow,r[`tooltipPlacement${$e(o.placement.split("-")[0])}`]]}})(yt(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:en(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${It.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${It.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${It.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${It.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:r})=>r.arrow,style:{position:"relative",margin:0}},{props:({ownerState:r})=>r.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${qb(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:r})=>!r.isRtl,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:r})=>!r.isRtl&&r.touch,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:r})=>!!r.isRtl,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:r})=>!!r.isRtl&&r.touch,style:{[`.${It.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${It.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:r})=>r.touch,style:{[`.${It.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:r})=>r.touch,style:{[`.${It.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),Jb=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,r)=>r.arrow})(yt(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:en(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let ra=!1;const Hh=new _a;let cs={x:0,y:0};function oa(t,r){return(o,...s)=>{r&&r(o,...s),t(o,...s)}}const di=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiTooltip"}),{arrow:a=!1,children:u,classes:d,components:p={},componentsProps:m={},describeChild:h=!1,disableFocusListener:v=!1,disableHoverListener:w=!1,disableInteractive:C=!1,disableTouchListener:T=!1,enterDelay:k=100,enterNextDelay:b=0,enterTouchDelay:E=700,followCursor:$=!1,id:j,leaveDelay:P=0,leaveTouchDelay:R=1500,onClose:M,onOpen:O,open:F,placement:D="bottom",PopperComponent:B,PopperProps:g={},slotProps:N={},slots:V={},title:G,TransitionComponent:te,TransitionProps:Q,...U}=s,J=x.isValidElement(u)?u:S.jsx("span",{children:u}),X=Ba(),K=Ud(),[ee,A]=x.useState(),[Y,le]=x.useState(null),ie=x.useRef(!1),ae=C||$,de=ai(),xe=ai(),ge=ai(),ye=ai(),[me,ke]=od({controlled:F,default:!1,name:"Tooltip",state:"open"});let be=me;const Le=Si(j),Ee=x.useRef(),Be=Er(()=>{Ee.current!==void 0&&(document.body.style.WebkitUserSelect=Ee.current,Ee.current=void 0),ye.clear()});x.useEffect(()=>Be,[Be]);const et=Oe=>{Hh.clear(),ra=!0,ke(!0),O&&!be&&O(Oe)},Ve=Er(Oe=>{Hh.start(800+P,()=>{ra=!1}),ke(!1),M&&be&&M(Oe),de.start(X.transitions.duration.shortest,()=>{ie.current=!1})}),Ie=Oe=>{ie.current&&Oe.type!=="touchstart"||(ee&&ee.removeAttribute("title"),xe.clear(),ge.clear(),k||ra&&b?xe.start(ra?b:k,()=>{et(Oe)}):et(Oe))},it=Oe=>{xe.clear(),ge.start(P,()=>{Ve(Oe)})},[,ze]=x.useState(!1),_e=Oe=>{wa(Oe.target)||(ze(!1),it(Oe))},pe=Oe=>{ee||A(Oe.currentTarget),wa(Oe.target)&&(ze(!0),Ie(Oe))},wt=Oe=>{ie.current=!0;const Vt=J.props;Vt.onTouchStart&&Vt.onTouchStart(Oe)},Qe=Oe=>{wt(Oe),ge.clear(),de.clear(),Be(),Ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(E,()=>{document.body.style.WebkitUserSelect=Ee.current,Ie(Oe)})},zt=Oe=>{J.props.onTouchEnd&&J.props.onTouchEnd(Oe),Be(),ge.start(R,()=>{Ve(Oe)})};x.useEffect(()=>{if(!be)return;function Oe(Vt){Vt.key==="Escape"&&Ve(Vt)}return document.addEventListener("keydown",Oe),()=>{document.removeEventListener("keydown",Oe)}},[Ve,be]);const jt=Ht(wi(J),A,o);!G&&G!==0&&(be=!1);const Et=x.useRef(),Ue=Oe=>{const Vt=J.props;Vt.onMouseMove&&Vt.onMouseMove(Oe),cs={x:Oe.clientX,y:Oe.clientY},Et.current&&Et.current.update()},Ke={},Ae=typeof G=="string";h?(Ke.title=!be&&Ae&&!w?G:null,Ke["aria-describedby"]=be?Le:null):(Ke["aria-label"]=Ae?G:null,Ke["aria-labelledby"]=be&&!Ae?Le:null);const Pe={...Ke,...U,...J.props,className:Ne(U.className,J.props.className),onTouchStart:wt,ref:jt,...$?{onMouseMove:Ue}:{}},Ye={};T||(Pe.onTouchStart=Qe,Pe.onTouchEnd=zt),w||(Pe.onMouseOver=oa(Ie,Pe.onMouseOver),Pe.onMouseLeave=oa(it,Pe.onMouseLeave),ae||(Ye.onMouseOver=Ie,Ye.onMouseLeave=it)),v||(Pe.onFocus=oa(pe,Pe.onFocus),Pe.onBlur=oa(_e,Pe.onBlur),ae||(Ye.onFocus=pe,Ye.onBlur=_e));const He={...s,isRtl:K,arrow:a,disableInteractive:ae,placement:D,PopperComponentProp:B,touch:ie.current},bt=typeof N.popper=="function"?N.popper(He):N.popper,we=x.useMemo(()=>{var Vt,io;let Oe=[{name:"arrow",enabled:!!Y,options:{element:Y,padding:4}}];return(Vt=g.popperOptions)!=null&&Vt.modifiers&&(Oe=Oe.concat(g.popperOptions.modifiers)),(io=bt==null?void 0:bt.popperOptions)!=null&&io.modifiers&&(Oe=Oe.concat(bt.popperOptions.modifiers)),{...g.popperOptions,...bt==null?void 0:bt.popperOptions,modifiers:Oe}},[Y,g.popperOptions,bt==null?void 0:bt.popperOptions]),je=Qb(He),dt=typeof N.transition=="function"?N.transition(He):N.transition,Rt={slots:{popper:p.Popper,transition:p.Transition??te,tooltip:p.Tooltip,arrow:p.Arrow,...V},slotProps:{arrow:N.arrow??m.arrow,popper:{...g,...bt??m.popper},tooltip:N.tooltip??m.tooltip,transition:{...Q,...dt??m.transition}}},[st,ro]=Nt("popper",{elementType:Xb,externalForwardedProps:Rt,ownerState:He,className:Ne(je.popper,g==null?void 0:g.className)}),[_n,Dn]=Nt("transition",{elementType:ka,externalForwardedProps:Rt,ownerState:He}),[Oo,$o]=Nt("tooltip",{elementType:Zb,className:je.tooltip,externalForwardedProps:Rt,ownerState:He}),[oo,ur]=Nt("arrow",{elementType:Jb,className:je.arrow,externalForwardedProps:Rt,ownerState:He,ref:le});return S.jsxs(x.Fragment,{children:[x.cloneElement(J,Pe),S.jsx(st,{as:B??Uy,placement:D,anchorEl:$?{getBoundingClientRect:()=>({top:cs.y,left:cs.x,right:cs.x,bottom:cs.y,width:0,height:0})}:ee,popperRef:Et,open:ee?be:!1,id:Le,transition:!0,...Ye,...ro,popperOptions:we,children:({TransitionProps:Oe})=>S.jsx(_n,{timeout:X.transitions.duration.shorter,...Oe,...Dn,children:S.jsxs(Oo,{...$o,children:[G,a?S.jsx(oo,{...ur}):null]})})})]})});function eC(t){return pt("MuiSvgIcon",t)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const tC=t=>{const{color:r,fontSize:o,classes:s}=t,a={root:["root",r!=="inherit"&&`color${$e(r)}`,`fontSize${$e(o)}`]};return mt(a,eC,s)},nC=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.color!=="inherit"&&r[`color${$e(o.color)}`],r[`fontSize${$e(o.fontSize)}`]]}})(yt(({theme:t})=>{var r,o,s,a,u,d,p,m,h,v,w,C,T,k;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(r=t.transitions)==null?void 0:r.create)==null?void 0:a.call(r,"fill",{duration:(s=(o=(t.vars??t).transitions)==null?void 0:o.duration)==null?void 0:s.shorter}),variants:[{props:b=>!b.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((d=(u=t.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(p=t.typography)==null?void 0:p.pxToRem)==null?void 0:m.call(p,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((v=(h=t.typography)==null?void 0:h.pxToRem)==null?void 0:v.call(h,35))||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,b])=>b&&b.main).map(([b])=>{var E,$;return{props:{color:b},style:{color:($=(E=(t.vars??t).palette)==null?void 0:E[b])==null?void 0:$.main}}}),{props:{color:"action"},style:{color:(C=(w=(t.vars??t).palette)==null?void 0:w.action)==null?void 0:C.active}},{props:{color:"disabled"},style:{color:(k=(T=(t.vars??t).palette)==null?void 0:T.action)==null?void 0:k.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),pd=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiSvgIcon"}),{children:a,className:u,color:d="inherit",component:p="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:v=!1,titleAccess:w,viewBox:C="0 0 24 24",...T}=s,k=x.isValidElement(a)&&a.type==="svg",b={...s,color:d,component:p,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:v,viewBox:C,hasSvgAsChild:k},E={};v||(E.viewBox=C);const $=tC(b);return S.jsxs(nC,{as:p,className:Ne($.root,u),focusable:"false",color:h,"aria-hidden":w?void 0:!0,role:w?"img":void 0,ref:o,...E,...T,...k&&a.props,ownerState:b,children:[k?a.props.children:a,w?S.jsx("title",{children:w}):null]})});pd.muiName="SvgIcon";function kn(t,r){function o(s,a){return S.jsx(pd,{"data-testid":`${r}Icon`,ref:a,...s,children:t})}return o.muiName=pd.muiName,x.memo(x.forwardRef(o))}function rC(t,r){if(!t)return r;if(typeof t=="function"||typeof r=="function")return a=>{const u=typeof r=="function"?r(a):r,d=typeof t=="function"?t({...a,...u}):t,p=Ne(a==null?void 0:a.className,u==null?void 0:u.className,d==null?void 0:d.className);return{...u,...d,...!!p&&{className:p},...(u==null?void 0:u.style)&&(d==null?void 0:d.style)&&{style:{...u.style,...d.style}},...(u==null?void 0:u.sx)&&(d==null?void 0:d.sx)&&{sx:[...Array.isArray(u.sx)?u.sx:[u.sx],...Array.isArray(d.sx)?d.sx:[d.sx]]}}};const o=r,s=Ne(o==null?void 0:o.className,t==null?void 0:t.className);return{...r,...t,...!!s&&{className:s},...(o==null?void 0:o.style)&&(t==null?void 0:t.style)&&{style:{...o.style,...t.style}},...(o==null?void 0:o.sx)&&(t==null?void 0:t.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}const oC=kn(S.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}),"ArrowBack"),iC=kn(S.jsx("path",{d:"m12 4-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z"}),"ArrowForward"),sC=kn(S.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft"),lC=kn(S.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight"),aC=kn(S.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close"),Hy=kn(S.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8"}),"InfoOutlined"),uC=kn(S.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),cC=kn(S.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),dC=kn(S.jsx("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh"),fC=kn(S.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),pC=kn(S.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"}),"Tune"),mC=kn(S.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile"),Vh=26,md=12,Hc=md-4,Vc=2;function Gh({label:t,checked:r,onChange:o,tooltip:s,labelFontSize:a=12}){const u=r?Vh-Hc-Vc:Vc;return S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px",width:"fit-content"},children:[S.jsxs("div",{onClick:()=>o(!r),className:"magenta-toggle",style:{display:"flex",alignItems:"center",gap:"10px",cursor:"pointer",width:"fit-content"},children:[S.jsx("div",{style:{width:`${Vh}px`,height:`${md}px`,borderRadius:`${md/2}px`,outline:`2px solid ${r?"#71fade":"#fff"}`,position:"relative",transition:"background 0.15s ease, outline 0.15s ease",flexShrink:0},children:S.jsx("div",{style:{position:"absolute",top:`${Vc}px`,left:`${u}px`,width:`${Hc}px`,height:`${Hc}px`,borderRadius:"50%",background:r?"#71fade":"#fff",transition:"left 0.15s ease, background 0.15s ease"}})}),S.jsx("span",{className:"magenta-toggle-label",style:{color:"#FFF",opacity:.7,fontFamily:"'Google Sans', sans-serif",fontSize:`${a}px`,fontWeight:500,lineHeight:"normal",letterSpacing:"0.56px"},children:t})]}),s&&S.jsx(di,{title:s,placement:"top",arrow:!0,children:S.jsx(Hy,{style:{fontSize:"13px",opacity:.3,cursor:"help",color:"#FFF",flexShrink:0}})})]})}class Ra{constructor(){is(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Ra}static use(){const r=cy(Ra.create).current,[o,s]=x.useState(!1);return r.shouldMount=o,r.setShouldMount=s,x.useEffect(r.mountEffect,[o]),r}mount(){return this.mounted||(this.mounted=gC(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.start(...r)})}stop(...r){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.stop(...r)})}pulsate(...r){this.mount().then(()=>{var o;return(o=this.ref.current)==null?void 0:o.pulsate(...r)})}}function hC(){return Ra.use()}function gC(){let t,r;const o=new Promise((s,a)=>{t=s,r=a});return o.resolve=t,o.reject=r,o}function yC(t){const{className:r,classes:o,pulsate:s=!1,rippleX:a,rippleY:u,rippleSize:d,in:p,onExited:m,timeout:h}=t,[v,w]=x.useState(!1),C=Ne(r,o.ripple,o.rippleVisible,s&&o.ripplePulsate),T={width:d,height:d,top:-(d/2)+u,left:-(d/2)+a},k=Ne(o.child,v&&o.childLeaving,s&&o.childPulsate);return!p&&!v&&w(!0),x.useEffect(()=>{if(!p&&m!=null){const b=setTimeout(m,h);return()=>{clearTimeout(b)}}},[m,p,h]),S.jsx("span",{className:C,style:T,children:S.jsx("span",{className:k})})}const On=rt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),hd=550,vC=80,xC=xi` | |
| 0% { | |
| transform: scale(0); | |
| opacity: 0.1; | |
| } | |
| 100% { | |
| transform: scale(1); | |
| opacity: 0.3; | |
| } | |
| `,SC=xi` | |
| 0% { | |
| opacity: 1; | |
| } | |
| 100% { | |
| opacity: 0; | |
| } | |
| `,wC=xi` | |
| 0% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(0.92); | |
| } | |
| 100% { | |
| transform: scale(1); | |
| } | |
| `,bC=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CC=Ce(yC,{name:"MuiTouchRipple",slot:"Ripple"})` | |
| opacity: 0; | |
| position: absolute; | |
| &.${On.rippleVisible} { | |
| opacity: 0.3; | |
| transform: scale(1); | |
| animation-name: ${xC}; | |
| animation-duration: ${hd}ms; | |
| animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; | |
| } | |
| &.${On.ripplePulsate} { | |
| animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; | |
| } | |
| & .${On.child} { | |
| opacity: 1; | |
| display: block; | |
| width: 100%; | |
| height: 100%; | |
| border-radius: 50%; | |
| background-color: currentColor; | |
| } | |
| & .${On.childLeaving} { | |
| opacity: 0; | |
| animation-name: ${SC}; | |
| animation-duration: ${hd}ms; | |
| animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; | |
| } | |
| & .${On.childPulsate} { | |
| position: absolute; | |
| /* @noflip */ | |
| left: 0px; | |
| top: 0; | |
| animation-name: ${wC}; | |
| animation-duration: 2500ms; | |
| animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; | |
| animation-iteration-count: infinite; | |
| animation-delay: 200ms; | |
| } | |
| `,kC=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiTouchRipple"}),{center:a=!1,classes:u={},className:d,...p}=s,[m,h]=x.useState([]),v=x.useRef(0),w=x.useRef(null);x.useEffect(()=>{w.current&&(w.current(),w.current=null)},[m]);const C=x.useRef(!1),T=ai(),k=x.useRef(null),b=x.useRef(null),E=x.useCallback(R=>{const{pulsate:M,rippleX:O,rippleY:F,rippleSize:D,cb:B}=R;h(g=>[...g,S.jsx(CC,{classes:{ripple:Ne(u.ripple,On.ripple),rippleVisible:Ne(u.rippleVisible,On.rippleVisible),ripplePulsate:Ne(u.ripplePulsate,On.ripplePulsate),child:Ne(u.child,On.child),childLeaving:Ne(u.childLeaving,On.childLeaving),childPulsate:Ne(u.childPulsate,On.childPulsate)},timeout:hd,pulsate:M,rippleX:O,rippleY:F,rippleSize:D},v.current)]),v.current+=1,w.current=B},[u]),$=x.useCallback((R={},M={},O=()=>{})=>{const{pulsate:F=!1,center:D=a||M.pulsate,fakeElement:B=!1}=M;if((R==null?void 0:R.type)==="mousedown"&&C.current){C.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(C.current=!0);const g=B?null:b.current,N=g?g.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,G,te;if(D||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)V=Math.round(N.width/2),G=Math.round(N.height/2);else{const{clientX:Q,clientY:U}=R.touches&&R.touches.length>0?R.touches[0]:R;V=Math.round(Q-N.left),G=Math.round(U-N.top)}if(D)te=Math.sqrt((2*N.width**2+N.height**2)/3),te%2===0&&(te+=1);else{const Q=Math.max(Math.abs((g?g.clientWidth:0)-V),V)*2+2,U=Math.max(Math.abs((g?g.clientHeight:0)-G),G)*2+2;te=Math.sqrt(Q**2+U**2)}R!=null&&R.touches?k.current===null&&(k.current=()=>{E({pulsate:F,rippleX:V,rippleY:G,rippleSize:te,cb:O})},T.start(vC,()=>{k.current&&(k.current(),k.current=null)})):E({pulsate:F,rippleX:V,rippleY:G,rippleSize:te,cb:O})},[a,E,T]),j=x.useCallback(()=>{$({},{pulsate:!0})},[$]),P=x.useCallback((R,M)=>{if(T.clear(),(R==null?void 0:R.type)==="touchend"&&k.current){k.current(),k.current=null,T.start(0,()=>{P(R,M)});return}k.current=null,h(O=>O.length>0?O.slice(1):O),w.current=M},[T]);return x.useImperativeHandle(o,()=>({pulsate:j,start:$,stop:P}),[j,$,P]),S.jsx(bC,{className:Ne(On.root,u.root,d),ref:b,...p,children:S.jsx(qd,{component:null,exit:!0,children:m})})});function EC(t){return pt("MuiButtonBase",t)}const RC=rt("MuiButtonBase",["root","disabled","focusVisible"]),TC=t=>{const{disabled:r,focusVisible:o,focusVisibleClassName:s,classes:a}=t,d=mt({root:["root",r&&"disabled",o&&"focusVisible"]},EC,a);return o&&s&&(d.root+=` ${s}`),d},PC=Ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${RC.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),rf=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiButtonBase"}),{action:a,centerRipple:u=!1,children:d,className:p,component:m="button",disabled:h=!1,disableRipple:v=!1,disableTouchRipple:w=!1,focusRipple:C=!1,focusVisibleClassName:T,LinkComponent:k="a",onBlur:b,onClick:E,onContextMenu:$,onDragLeave:j,onFocus:P,onFocusVisible:R,onKeyDown:M,onKeyUp:O,onMouseDown:F,onMouseLeave:D,onMouseUp:B,onTouchEnd:g,onTouchMove:N,onTouchStart:V,tabIndex:G=0,TouchRippleProps:te,touchRippleRef:Q,type:U,...J}=s,X=x.useRef(null),K=hC(),ee=Ht(K.ref,Q),[A,Y]=x.useState(!1);h&&A&&Y(!1),x.useImperativeHandle(a,()=>({focusVisible:()=>{Y(!0),X.current.focus()}}),[]);const le=K.shouldMount&&!v&&!h;x.useEffect(()=>{A&&C&&!v&&K.pulsate()},[v,C,A,K]);const ie=Cr(K,"start",F,w),ae=Cr(K,"stop",$,w),de=Cr(K,"stop",j,w),xe=Cr(K,"stop",B,w),ge=Cr(K,"stop",pe=>{A&&pe.preventDefault(),D&&D(pe)},w),ye=Cr(K,"start",V,w),me=Cr(K,"stop",g,w),ke=Cr(K,"stop",N,w),be=Cr(K,"stop",pe=>{wa(pe.target)||Y(!1),b&&b(pe)},!1),Le=Er(pe=>{X.current||(X.current=pe.currentTarget),wa(pe.target)&&(Y(!0),R&&R(pe)),P&&P(pe)}),Ee=()=>{const pe=X.current;return m&&m!=="button"&&!(pe.tagName==="A"&&pe.href)},Be=Er(pe=>{C&&!pe.repeat&&A&&pe.key===" "&&K.stop(pe,()=>{K.start(pe)}),pe.target===pe.currentTarget&&Ee()&&pe.key===" "&&pe.preventDefault(),M&&M(pe),pe.target===pe.currentTarget&&Ee()&&pe.key==="Enter"&&!h&&(pe.preventDefault(),E&&E(pe))}),et=Er(pe=>{C&&pe.key===" "&&A&&!pe.defaultPrevented&&K.stop(pe,()=>{K.pulsate(pe)}),O&&O(pe),E&&pe.target===pe.currentTarget&&Ee()&&pe.key===" "&&!pe.defaultPrevented&&E(pe)});let Ve=m;Ve==="button"&&(J.href||J.to)&&(Ve=k);const Ie={};Ve==="button"?(Ie.type=U===void 0?"button":U,Ie.disabled=h):(!J.href&&!J.to&&(Ie.role="button"),h&&(Ie["aria-disabled"]=h));const it=Ht(o,X),ze={...s,centerRipple:u,component:m,disabled:h,disableRipple:v,disableTouchRipple:w,focusRipple:C,tabIndex:G,focusVisible:A},_e=TC(ze);return S.jsxs(PC,{as:Ve,className:Ne(_e.root,p),ownerState:ze,onBlur:be,onClick:E,onContextMenu:ae,onFocus:Le,onKeyDown:Be,onKeyUp:et,onMouseDown:ie,onMouseLeave:ge,onMouseUp:xe,onDragLeave:de,onTouchEnd:me,onTouchMove:ke,onTouchStart:ye,ref:it,tabIndex:h?-1:G,type:U,...Ie,...J,children:[d,le?S.jsx(kC,{ref:ee,center:u,...te}):null]})});function Cr(t,r,o,s=!1){return Er(a=>(o&&o(a),s||t[r](a),!0))}function MC(t){return typeof t.main=="string"}function IC(t,r=[]){if(!MC(t))return!1;for(const o of r)if(!t.hasOwnProperty(o)||typeof t[o]!="string")return!1;return!0}function to(t=[]){return([,r])=>r&&IC(r,t)}function OC(t){return pt("MuiCircularProgress",t)}rt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Xr=44,gd=xi` | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| `,yd=xi` | |
| 0% { | |
| stroke-dasharray: 1px, 200px; | |
| stroke-dashoffset: 0; | |
| } | |
| 50% { | |
| stroke-dasharray: 100px, 200px; | |
| stroke-dashoffset: -15px; | |
| } | |
| 100% { | |
| stroke-dasharray: 1px, 200px; | |
| stroke-dashoffset: -126px; | |
| } | |
| `,$C=typeof gd!="string"?Od` | |
| animation: ${gd} 1.4s linear infinite; | |
| `:null,AC=typeof yd!="string"?Od` | |
| animation: ${yd} 1.4s ease-in-out infinite; | |
| `:null,jC=t=>{const{classes:r,variant:o,color:s,disableShrink:a}=t,u={root:["root",o,`color${$e(s)}`],svg:["svg"],circle:["circle",`circle${$e(o)}`,a&&"circleDisableShrink"]};return mt(u,OC,r)},LC=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],r[`color${$e(o.color)}`]]}})(yt(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:$C||{animation:`${gd} 1.4s linear infinite`}},...Object.entries(t.palette).filter(to()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}}))]}))),FC=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,r)=>r.svg})({display:"block"}),NC=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.circle,r[`circle${$e(o.variant)}`],o.disableShrink&&r.circleDisableShrink]}})(yt(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:AC||{animation:`${yd} 1.4s ease-in-out infinite`}}]}))),of=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiCircularProgress"}),{className:a,color:u="primary",disableShrink:d=!1,size:p=40,style:m,thickness:h=3.6,value:v=0,variant:w="indeterminate",...C}=s,T={...s,color:u,disableShrink:d,size:p,thickness:h,value:v,variant:w},k=jC(T),b={},E={},$={};if(w==="determinate"){const j=2*Math.PI*((Xr-h)/2);b.strokeDasharray=j.toFixed(3),$["aria-valuenow"]=Math.round(v),b.strokeDashoffset=`${((100-v)/100*j).toFixed(3)}px`,E.transform="rotate(-90deg)"}return S.jsx(LC,{className:Ne(k.root,a),style:{width:p,height:p,...E,...m},ownerState:T,ref:o,role:"progressbar",...$,...C,children:S.jsx(FC,{className:k.svg,ownerState:T,viewBox:`${Xr/2} ${Xr/2} ${Xr} ${Xr}`,children:S.jsx(NC,{className:k.circle,style:b,ownerState:T,cx:Xr,cy:Xr,r:(Xr-h)/2,fill:"none",strokeWidth:h})})})});function zC(t){return pt("MuiButton",t)}const bo=rt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),_C=x.createContext({}),DC=x.createContext(void 0),BC=t=>{const{color:r,disableElevation:o,fullWidth:s,size:a,variant:u,loading:d,loadingPosition:p,classes:m}=t,h={root:["root",d&&"loading",u,`${u}${$e(r)}`,`size${$e(a)}`,`${u}Size${$e(a)}`,`color${$e(r)}`,o&&"disableElevation",s&&"fullWidth",d&&`loadingPosition${$e(p)}`],startIcon:["icon","startIcon",`iconSize${$e(a)}`],endIcon:["icon","endIcon",`iconSize${$e(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},v=mt(h,zC,m);return{...m,...v}},Vy=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],WC=Ce(rf,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],r[`${o.variant}${$e(o.color)}`],r[`size${$e(o.size)}`],r[`${o.variant}Size${$e(o.size)}`],o.color==="inherit"&&r.colorInherit,o.disableElevation&&r.disableElevation,o.fullWidth&&r.fullWidth,o.loading&&r.loading]}})(yt(({theme:t})=>{const r=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],o=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${bo.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${bo.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${bo.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${bo.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(to()).map(([s])=>({props:{color:s},style:{"--variant-textColor":(t.vars||t).palette[s].main,"--variant-outlinedColor":(t.vars||t).palette[s].main,"--variant-outlinedBorder":t.vars?`rgba(${t.vars.palette[s].mainChannel} / 0.5)`:en(t.palette[s].main,.5),"--variant-containedColor":(t.vars||t).palette[s].contrastText,"--variant-containedBg":(t.vars||t).palette[s].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[s].dark,"--variant-textBg":t.vars?`rgba(${t.vars.palette[s].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:en(t.palette[s].main,t.palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[s].main,"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette[s].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:en(t.palette[s].main,t.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:en(t.palette.text.primary,t.palette.action.hoverOpacity),"--variant-outlinedBg":t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:en(t.palette.text.primary,t.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${bo.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${bo.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${bo.loading}`]:{color:"transparent"}}}]}})),UC=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.startIcon,o.loading&&r.startIconLoadingStart,r[`iconSize${$e(o.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...Vy]})),HC=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.endIcon,o.loading&&r.endIconLoadingEnd,r[`iconSize${$e(o.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Vy]})),VC=Ce("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(t,r)=>r.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),Kh=Ce("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(t,r)=>r.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),Gy=x.forwardRef(function(r,o){const s=x.useContext(_C),a=x.useContext(DC),u=Sa(s,r),d=vt({props:u,name:"MuiButton"}),{children:p,color:m="primary",component:h="button",className:v,disabled:w=!1,disableElevation:C=!1,disableFocusRipple:T=!1,endIcon:k,focusVisibleClassName:b,fullWidth:E=!1,id:$,loading:j=null,loadingIndicator:P,loadingPosition:R="center",size:M="medium",startIcon:O,type:F,variant:D="text",...B}=d,g=Si($),N=P??S.jsx(of,{"aria-labelledby":g,color:"inherit",size:16}),V={...d,color:m,component:h,disabled:w,disableElevation:C,disableFocusRipple:T,fullWidth:E,loading:j,loadingIndicator:N,loadingPosition:R,size:M,type:F,variant:D},G=BC(V),te=(O||j&&R==="start")&&S.jsx(UC,{className:G.startIcon,ownerState:V,children:O||S.jsx(Kh,{className:G.loadingIconPlaceholder,ownerState:V})}),Q=(k||j&&R==="end")&&S.jsx(HC,{className:G.endIcon,ownerState:V,children:k||S.jsx(Kh,{className:G.loadingIconPlaceholder,ownerState:V})}),U=a||"",J=typeof j=="boolean"?S.jsx("span",{className:G.loadingWrapper,style:{display:"contents"},children:j&&S.jsx(VC,{className:G.loadingIndicator,ownerState:V,children:N})}):null;return S.jsxs(WC,{ownerState:V,className:Ne(s.className,G.root,v,U),component:h,disabled:w||j,focusRipple:!T,focusVisibleClassName:Ne(G.focusVisible,b),ref:o,type:F,id:j?g:$,...B,classes:G,children:[te,R!=="end"&&J,p,R==="end"&&J,Q]})}),vd=x.createContext({});function GC(t){return pt("MuiList",t)}rt("MuiList",["root","padding","dense","subheader"]);const KC=t=>{const{classes:r,disablePadding:o,dense:s,subheader:a}=t;return mt({root:["root",!o&&"padding",s&&"dense",a&&"subheader"]},GC,r)},YC=Ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,!o.disablePadding&&r.padding,o.dense&&r.dense,o.subheader&&r.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),qC=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiList"}),{children:a,className:u,component:d="ul",dense:p=!1,disablePadding:m=!1,subheader:h,...v}=s,w=x.useMemo(()=>({dense:p}),[p]),C={...s,component:d,dense:p,disablePadding:m},T=KC(C);return S.jsx(vd.Provider,{value:w,children:S.jsxs(YC,{as:d,className:Ne(T.root,u),ref:o,ownerState:C,...v,children:[h,a]})})});function Gc(t,r,o){return t===r?t.firstChild:r&&r.nextElementSibling?r.nextElementSibling:o?null:t.firstChild}function Yh(t,r,o){return t===r?o?t.firstChild:t.lastChild:r&&r.previousElementSibling?r.previousElementSibling:o?null:t.lastChild}function Ky(t,r){if(r===void 0)return!0;let o=t.innerText;return o===void 0&&(o=t.textContent),o=o.trim().toLowerCase(),o.length===0?!1:r.repeating?o[0]===r.keys[0]:o.startsWith(r.keys.join(""))}function ds(t,r,o,s,a,u){let d=!1,p=a(t,r,r?o:!1);for(;p;){if(p===t.firstChild){if(d)return!1;d=!0}const m=s?!1:p.disabled||p.getAttribute("aria-disabled")==="true";if(!p.hasAttribute("tabindex")||!Ky(p,u)||m)p=a(t,p,o);else return p.focus(),!0}return!1}const QC=x.forwardRef(function(r,o){const{actions:s,autoFocus:a=!1,autoFocusItem:u=!1,children:d,className:p,disabledItemsFocusable:m=!1,disableListWrap:h=!1,onKeyDown:v,variant:w="selectedMenu",...C}=r,T=x.useRef(null),k=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jn(()=>{a&&T.current.focus()},[a]),x.useImperativeHandle(s,()=>({adjustStyleForScrollbar:(P,{direction:R})=>{const M=!T.current.style.width;if(P.clientHeight<T.current.clientHeight&&M){const O=`${dy(Mr(P))}px`;T.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,T.current.style.width=`calc(100% + ${O})`}return T.current}}),[]);const b=P=>{const R=T.current,M=P.key;if(P.ctrlKey||P.metaKey||P.altKey){v&&v(P);return}const F=bn(R).activeElement;if(M==="ArrowDown")P.preventDefault(),ds(R,F,h,m,Gc);else if(M==="ArrowUp")P.preventDefault(),ds(R,F,h,m,Yh);else if(M==="Home")P.preventDefault(),ds(R,null,h,m,Gc);else if(M==="End")P.preventDefault(),ds(R,null,h,m,Yh);else if(M.length===1){const D=k.current,B=M.toLowerCase(),g=performance.now();D.keys.length>0&&(g-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&B!==D.keys[0]&&(D.repeating=!1)),D.lastTime=g,D.keys.push(B);const N=F&&!D.repeating&&Ky(F,D);D.previousKeyMatched&&(N||ds(R,F,!1,m,Gc,D))?P.preventDefault():D.previousKeyMatched=!1}v&&v(P)},E=Ht(T,o);let $=-1;x.Children.forEach(d,(P,R)=>{if(!x.isValidElement(P)){$===R&&($+=1,$>=d.length&&($=-1));return}P.props.disabled||(w==="selectedMenu"&&P.props.selected||$===-1)&&($=R),$===R&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&($+=1,$>=d.length&&($=-1))});const j=x.Children.map(d,(P,R)=>{if(R===$){const M={};return u&&(M.autoFocus=!0),P.props.tabIndex===void 0&&w==="selectedMenu"&&(M.tabIndex=0),x.cloneElement(P,M)}return P});return S.jsx(qC,{role:"menu",ref:E,className:p,onKeyDown:b,tabIndex:a?0:-1,...C,children:j})});function xd(t){return typeof t=="string"}function XC(t){const r=bn(t);return r.body===t?Mr(t).innerWidth>r.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function Es(t,r){r?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function qh(t){return parseInt(Mr(t).getComputedStyle(t).paddingRight,10)||0}function ZC(t){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),s=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return o||s}function Qh(t,r,o,s,a){const u=[r,o,...s];[].forEach.call(t.children,d=>{const p=!u.includes(d),m=!ZC(d);p&&m&&Es(d,a)})}function Kc(t,r){let o=-1;return t.some((s,a)=>r(s)?(o=a,!0):!1),o}function JC(t,r){const o=[],s=t.container;if(!r.disableScrollLock){if(XC(s)){const d=dy(Mr(s));o.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${qh(s)+d}px`;const p=bn(s).querySelectorAll(".mui-fixed");[].forEach.call(p,m=>{o.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${qh(m)+d}px`})}let u;if(s.parentNode instanceof DocumentFragment)u=bn(s).body;else{const d=s.parentElement,p=Mr(s);u=(d==null?void 0:d.nodeName)==="HTML"&&p.getComputedStyle(d).overflowY==="scroll"?d:s}o.push({value:u.style.overflow,property:"overflow",el:u},{value:u.style.overflowX,property:"overflow-x",el:u},{value:u.style.overflowY,property:"overflow-y",el:u}),u.style.overflow="hidden"}return()=>{o.forEach(({value:u,el:d,property:p})=>{u?d.style.setProperty(p,u):d.style.removeProperty(p)})}}function ek(t){const r=[];return[].forEach.call(t.children,o=>{o.getAttribute("aria-hidden")==="true"&&r.push(o)}),r}class tk{constructor(){this.modals=[],this.containers=[]}add(r,o){let s=this.modals.indexOf(r);if(s!==-1)return s;s=this.modals.length,this.modals.push(r),r.modalRef&&Es(r.modalRef,!1);const a=ek(o);Qh(o,r.mount,r.modalRef,a,!0);const u=Kc(this.containers,d=>d.container===o);return u!==-1?(this.containers[u].modals.push(r),s):(this.containers.push({modals:[r],container:o,restore:null,hiddenSiblings:a}),s)}mount(r,o){const s=Kc(this.containers,u=>u.modals.includes(r)),a=this.containers[s];a.restore||(a.restore=JC(a,o))}remove(r,o=!0){const s=this.modals.indexOf(r);if(s===-1)return s;const a=Kc(this.containers,d=>d.modals.includes(r)),u=this.containers[a];if(u.modals.splice(u.modals.indexOf(r),1),this.modals.splice(s,1),u.modals.length===0)u.restore&&u.restore(),r.modalRef&&Es(r.modalRef,o),Qh(u.container,r.mount,r.modalRef,u.hiddenSiblings,!1),this.containers.splice(a,1);else{const d=u.modals[u.modals.length-1];d.modalRef&&Es(d.modalRef,!1)}return s}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const nk=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rk(t){const r=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(r)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:r}function ok(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const r=s=>t.ownerDocument.querySelector(`input[type="radio"]${s}`);let o=r(`[name="${t.name}"]:checked`);return o||(o=r(`[name="${t.name}"]`)),o!==t}function ik(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||ok(t))}function sk(t){const r=[],o=[];return Array.from(t.querySelectorAll(nk)).forEach((s,a)=>{const u=rk(s);u===-1||!ik(s)||(u===0?r.push(s):o.push({documentOrder:a,tabIndex:u,node:s}))}),o.sort((s,a)=>s.tabIndex===a.tabIndex?s.documentOrder-a.documentOrder:s.tabIndex-a.tabIndex).map(s=>s.node).concat(r)}function lk(){return!0}function ak(t){const{children:r,disableAutoFocus:o=!1,disableEnforceFocus:s=!1,disableRestoreFocus:a=!1,getTabbable:u=sk,isEnabled:d=lk,open:p}=t,m=x.useRef(!1),h=x.useRef(null),v=x.useRef(null),w=x.useRef(null),C=x.useRef(null),T=x.useRef(!1),k=x.useRef(null),b=Ht(wi(r),k),E=x.useRef(null);x.useEffect(()=>{!p||!k.current||(T.current=!o)},[o,p]),x.useEffect(()=>{if(!p||!k.current)return;const P=bn(k.current);return k.current.contains(P.activeElement)||(k.current.hasAttribute("tabIndex")||k.current.setAttribute("tabIndex","-1"),T.current&&k.current.focus()),()=>{a||(w.current&&w.current.focus&&(m.current=!0,w.current.focus()),w.current=null)}},[p]),x.useEffect(()=>{if(!p||!k.current)return;const P=bn(k.current),R=F=>{E.current=F,!(s||!d()||F.key!=="Tab")&&P.activeElement===k.current&&F.shiftKey&&(m.current=!0,v.current&&v.current.focus())},M=()=>{var B,g;const F=k.current;if(F===null)return;if(!P.hasFocus()||!d()||m.current){m.current=!1;return}if(F.contains(P.activeElement)||s&&P.activeElement!==h.current&&P.activeElement!==v.current)return;if(P.activeElement!==C.current)C.current=null;else if(C.current!==null)return;if(!T.current)return;let D=[];if((P.activeElement===h.current||P.activeElement===v.current)&&(D=u(k.current)),D.length>0){const N=!!((B=E.current)!=null&&B.shiftKey&&((g=E.current)==null?void 0:g.key)==="Tab"),V=D[0],G=D[D.length-1];typeof V!="string"&&typeof G!="string"&&(N?G.focus():V.focus())}else F.focus()};P.addEventListener("focusin",M),P.addEventListener("keydown",R,!0);const O=setInterval(()=>{P.activeElement&&P.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(O),P.removeEventListener("focusin",M),P.removeEventListener("keydown",R,!0)}},[o,s,a,d,p,u]);const $=P=>{w.current===null&&(w.current=P.relatedTarget),T.current=!0,C.current=P.target;const R=r.props.onFocus;R&&R(P)},j=P=>{w.current===null&&(w.current=P.relatedTarget),T.current=!0};return S.jsxs(x.Fragment,{children:[S.jsx("div",{tabIndex:p?0:-1,onFocus:j,ref:h,"data-testid":"sentinelStart"}),x.cloneElement(r,{ref:b,onFocus:$}),S.jsx("div",{tabIndex:p?0:-1,onFocus:j,ref:v,"data-testid":"sentinelEnd"})]})}const uk={entering:{opacity:1},entered:{opacity:1}},ck=x.forwardRef(function(r,o){const s=Ba(),a={enter:s.transitions.duration.enteringScreen,exit:s.transitions.duration.leavingScreen},{addEndListener:u,appear:d=!0,children:p,easing:m,in:h,onEnter:v,onEntered:w,onEntering:C,onExit:T,onExited:k,onExiting:b,style:E,timeout:$=a,TransitionComponent:j=ar,...P}=r,R=x.useRef(null),M=Ht(R,wi(p),o),O=te=>Q=>{if(te){const U=R.current;Q===void 0?te(U):te(U,Q)}},F=O(C),D=O((te,Q)=>{$y(te);const U=Ca({style:E,timeout:$,easing:m},{mode:"enter"});te.style.webkitTransition=s.transitions.create("opacity",U),te.style.transition=s.transitions.create("opacity",U),v&&v(te,Q)}),B=O(w),g=O(b),N=O(te=>{const Q=Ca({style:E,timeout:$,easing:m},{mode:"exit"});te.style.webkitTransition=s.transitions.create("opacity",Q),te.style.transition=s.transitions.create("opacity",Q),T&&T(te)}),V=O(k),G=te=>{u&&u(R.current,te)};return S.jsx(j,{appear:d,in:h,nodeRef:R,onEnter:D,onEntered:B,onEntering:F,onExit:N,onExited:V,onExiting:g,addEndListener:G,timeout:$,...P,children:(te,{ownerState:Q,...U})=>x.cloneElement(p,{style:{opacity:0,visibility:te==="exited"&&!h?"hidden":void 0,...uk[te],...E,...p.props.style},ref:M,...U})})});function dk(t){return pt("MuiBackdrop",t)}rt("MuiBackdrop",["root","invisible"]);const fk=t=>{const{classes:r,invisible:o}=t;return mt({root:["root",o&&"invisible"]},dk,r)},pk=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),mk=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiBackdrop"}),{children:a,className:u,component:d="div",invisible:p=!1,open:m,components:h={},componentsProps:v={},slotProps:w={},slots:C={},TransitionComponent:T,transitionDuration:k,...b}=s,E={...s,component:d,invisible:p},$=fk(E),j={transition:T,root:h.Root,...C},P={...v,...w},R={slots:j,slotProps:P},[M,O]=Nt("root",{elementType:pk,externalForwardedProps:R,className:Ne($.root,u),ownerState:E}),[F,D]=Nt("transition",{elementType:ck,externalForwardedProps:R,ownerState:E});return S.jsx(F,{in:m,timeout:k,...b,...D,children:S.jsx(M,{"aria-hidden":!0,...O,classes:$,ref:o,children:a})})});function hk(t){return typeof t=="function"?t():t}function gk(t){return t?t.props.hasOwnProperty("in"):!1}const Xh=()=>{},ia=new tk;function yk(t){const{container:r,disableEscapeKeyDown:o=!1,disableScrollLock:s=!1,closeAfterTransition:a=!1,onTransitionEnter:u,onTransitionExited:d,children:p,onClose:m,open:h,rootRef:v}=t,w=x.useRef({}),C=x.useRef(null),T=x.useRef(null),k=Ht(T,v),[b,E]=x.useState(!h),$=gk(p);let j=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(j=!1);const P=()=>bn(C.current),R=()=>(w.current.modalRef=T.current,w.current.mount=C.current,w.current),M=()=>{ia.mount(R(),{disableScrollLock:s}),T.current&&(T.current.scrollTop=0)},O=Er(()=>{const Q=hk(r)||P().body;ia.add(R(),Q),T.current&&M()}),F=()=>ia.isTopModal(R()),D=Er(Q=>{C.current=Q,Q&&(h&&F()?M():T.current&&Es(T.current,j))}),B=x.useCallback(()=>{ia.remove(R(),j)},[j]);x.useEffect(()=>()=>{B()},[B]),x.useEffect(()=>{h?O():(!$||!a)&&B()},[h,B,$,a,O]);const g=Q=>U=>{var J;(J=Q.onKeyDown)==null||J.call(Q,U),!(U.key!=="Escape"||U.which===229||!F())&&(o||(U.stopPropagation(),m&&m(U,"escapeKeyDown")))},N=Q=>U=>{var J;(J=Q.onClick)==null||J.call(Q,U),U.target===U.currentTarget&&m&&m(U,"backdropClick")};return{getRootProps:(Q={})=>{const U=py(t);delete U.onTransitionEnter,delete U.onTransitionExited;const J={...U,...Q};return{role:"presentation",...J,onKeyDown:g(J),ref:k}},getBackdropProps:(Q={})=>{const U=Q;return{"aria-hidden":!0,...U,onClick:N(U),open:h}},getTransitionProps:()=>{const Q=()=>{E(!1),u&&u()},U=()=>{E(!0),d&&d(),a&&B()};return{onEnter:yh(Q,(p==null?void 0:p.props.onEnter)??Xh),onExited:yh(U,(p==null?void 0:p.props.onExited)??Xh)}},rootRef:k,portalRef:D,isTopModal:F,exited:b,hasTransition:$}}function vk(t){return pt("MuiModal",t)}rt("MuiModal",["root","hidden","backdrop"]);const xk=t=>{const{open:r,exited:o,classes:s}=t;return mt({root:["root",!r&&o&&"hidden"],backdrop:["backdrop"]},vk,s)},Sk=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,!o.open&&o.exited&&r.hidden]}})(yt(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),wk=Ce(mk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,r)=>r.backdrop})({zIndex:-1}),bk=x.forwardRef(function(r,o){const s=vt({name:"MuiModal",props:r}),{BackdropComponent:a=wk,BackdropProps:u,classes:d,className:p,closeAfterTransition:m=!1,children:h,container:v,component:w,components:C={},componentsProps:T={},disableAutoFocus:k=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:E=!1,disablePortal:$=!1,disableRestoreFocus:j=!1,disableScrollLock:P=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:O,onClose:F,onTransitionEnter:D,onTransitionExited:B,open:g,slotProps:N={},slots:V={},theme:G,...te}=s,Q={...s,closeAfterTransition:m,disableAutoFocus:k,disableEnforceFocus:b,disableEscapeKeyDown:E,disablePortal:$,disableRestoreFocus:j,disableScrollLock:P,hideBackdrop:R,keepMounted:M},{getRootProps:U,getBackdropProps:J,getTransitionProps:X,portalRef:K,isTopModal:ee,exited:A,hasTransition:Y}=yk({...Q,rootRef:o}),le={...Q,exited:A},ie=xk(le),ae={};if(h.props.tabIndex===void 0&&(ae.tabIndex="-1"),Y){const{onEnter:ke,onExited:be}=X();ae.onEnter=ke,ae.onExited=be}const de={slots:{root:C.Root,backdrop:C.Backdrop,...V},slotProps:{...T,...N}},[xe,ge]=Nt("root",{ref:o,elementType:Sk,externalForwardedProps:{...de,...te,component:w},getSlotProps:U,ownerState:le,className:Ne(p,ie==null?void 0:ie.root,!le.open&&le.exited&&(ie==null?void 0:ie.hidden))}),[ye,me]=Nt("backdrop",{ref:u==null?void 0:u.ref,elementType:a,externalForwardedProps:de,shouldForwardComponentProp:!0,additionalProps:u,getSlotProps:ke=>J({...ke,onClick:be=>{O&&O(be),ke!=null&&ke.onClick&&ke.onClick(be)}}),className:Ne(u==null?void 0:u.className,ie==null?void 0:ie.backdrop),ownerState:le});return!M&&!g&&(!Y||A)?null:S.jsx(Wy,{ref:K,container:v,disablePortal:$,children:S.jsxs(xe,{...ge,children:[!R&&a?S.jsx(ye,{...me}):null,S.jsx(ak,{disableEnforceFocus:b,disableAutoFocus:k,disableRestoreFocus:j,isEnabled:ee,open:g,children:x.cloneElement(h,ae)})]})})});function Ck(t){return pt("MuiPaper",t)}rt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const kk=t=>{const{square:r,elevation:o,variant:s,classes:a}=t,u={root:["root",s,!r&&"rounded",s==="elevation"&&`elevation${o}`]};return mt(u,Ck,a)},Ek=Ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],!o.square&&r.rounded,o.variant==="elevation"&&r[`elevation${o.elevation}`]]}})(yt(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Rk=x.forwardRef(function(r,o){var T;const s=vt({props:r,name:"MuiPaper"}),a=Ba(),{className:u,component:d="div",elevation:p=1,square:m=!1,variant:h="elevation",...v}=s,w={...s,component:d,elevation:p,square:m,variant:h},C=kk(w);return S.jsx(Ek,{as:d,ownerState:w,className:Ne(C.root,u),ref:o,...v,style:{...h==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[p],...a.vars&&{"--Paper-overlay":(T=a.vars.overlays)==null?void 0:T[p]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${en("#fff",sd(p))}, ${en("#fff",sd(p))})`}},...v.style}})});function Tk(t){return pt("MuiPopover",t)}rt("MuiPopover",["root","paper"]);function Zh(t,r){let o=0;return typeof r=="number"?o=r:r==="center"?o=t.height/2:r==="bottom"&&(o=t.height),o}function Jh(t,r){let o=0;return typeof r=="number"?o=r:r==="center"?o=t.width/2:r==="right"&&(o=t.width),o}function eg(t){return[t.horizontal,t.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function sa(t){return typeof t=="function"?t():t}const Pk=t=>{const{classes:r}=t;return mt({root:["root"],paper:["paper"]},Tk,r)},Mk=Ce(bk,{name:"MuiPopover",slot:"Root",overridesResolver:(t,r)=>r.root})({}),Yy=Ce(Rk,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,r)=>r.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Ik=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiPopover"}),{action:a,anchorEl:u,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:h,className:v,container:w,elevation:C=8,marginThreshold:T=16,open:k,PaperProps:b={},slots:E={},slotProps:$={},transformOrigin:j={vertical:"top",horizontal:"left"},TransitionComponent:P,transitionDuration:R="auto",TransitionProps:M={},disableScrollLock:O=!1,...F}=s,D=x.useRef(),B={...s,anchorOrigin:d,anchorReference:m,elevation:C,marginThreshold:T,transformOrigin:j,TransitionComponent:P,transitionDuration:R,TransitionProps:M},g=Pk(B),N=x.useCallback(()=>{if(m==="anchorPosition")return p;const me=sa(u),be=(me&&me.nodeType===1?me:bn(D.current).body).getBoundingClientRect();return{top:be.top+Zh(be,d.vertical),left:be.left+Jh(be,d.horizontal)}},[u,d.horizontal,d.vertical,p,m]),V=x.useCallback(me=>({vertical:Zh(me,j.vertical),horizontal:Jh(me,j.horizontal)}),[j.horizontal,j.vertical]),G=x.useCallback(me=>{const ke={width:me.offsetWidth,height:me.offsetHeight},be=V(ke);if(m==="none")return{top:null,left:null,transformOrigin:eg(be)};const Le=N();let Ee=Le.top-be.vertical,Be=Le.left-be.horizontal;const et=Ee+ke.height,Ve=Be+ke.width,Ie=Mr(sa(u)),it=Ie.innerHeight-T,ze=Ie.innerWidth-T;if(T!==null&&Ee<T){const _e=Ee-T;Ee-=_e,be.vertical+=_e}else if(T!==null&&et>it){const _e=et-it;Ee-=_e,be.vertical+=_e}if(T!==null&&Be<T){const _e=Be-T;Be-=_e,be.horizontal+=_e}else if(Ve>ze){const _e=Ve-ze;Be-=_e,be.horizontal+=_e}return{top:`${Math.round(Ee)}px`,left:`${Math.round(Be)}px`,transformOrigin:eg(be)}},[u,m,N,V,T]),[te,Q]=x.useState(k),U=x.useCallback(()=>{const me=D.current;if(!me)return;const ke=G(me);ke.top!==null&&me.style.setProperty("top",ke.top),ke.left!==null&&(me.style.left=ke.left),me.style.transformOrigin=ke.transformOrigin,Q(!0)},[G]);x.useEffect(()=>(O&&window.addEventListener("scroll",U),()=>window.removeEventListener("scroll",U)),[u,O,U]);const J=()=>{U()},X=()=>{Q(!1)};x.useEffect(()=>{k&&U()}),x.useImperativeHandle(a,()=>k?{updatePosition:()=>{U()}}:null,[k,U]),x.useEffect(()=>{if(!k)return;const me=uy(()=>{U()}),ke=Mr(sa(u));return ke.addEventListener("resize",me),()=>{me.clear(),ke.removeEventListener("resize",me)}},[u,k,U]);let K=R;const ee={slots:{transition:P,...E},slotProps:{transition:M,paper:b,...$}},[A,Y]=Nt("transition",{elementType:ka,externalForwardedProps:ee,ownerState:B,getSlotProps:me=>({...me,onEntering:(ke,be)=>{var Le;(Le=me.onEntering)==null||Le.call(me,ke,be),J()},onExited:ke=>{var be;(be=me.onExited)==null||be.call(me,ke),X()}}),additionalProps:{appear:!0,in:k}});R==="auto"&&!A.muiSupportAuto&&(K=void 0);const le=w||(u?bn(sa(u)).body:void 0),[ie,{slots:ae,slotProps:de,...xe}]=Nt("root",{ref:o,elementType:Mk,externalForwardedProps:{...ee,...F},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:rC(typeof $.backdrop=="function"?$.backdrop(B):$.backdrop,{invisible:!0})},container:le,open:k},ownerState:B,className:Ne(g.root,v)}),[ge,ye]=Nt("paper",{ref:D,className:g.paper,elementType:Yy,externalForwardedProps:ee,shouldForwardComponentProp:!0,additionalProps:{elevation:C,style:te?void 0:{opacity:0}},ownerState:B});return S.jsx(ie,{...xe,...!xd(ie)&&{slots:ae,slotProps:de,disableScrollLock:O},children:S.jsx(A,{...Y,timeout:K,children:S.jsx(ge,{...ye,children:h})})})});function Ok(t){return pt("MuiMenu",t)}rt("MuiMenu",["root","paper","list"]);const $k={vertical:"top",horizontal:"right"},Ak={vertical:"top",horizontal:"left"},jk=t=>{const{classes:r}=t;return mt({root:["root"],paper:["paper"],list:["list"]},Ok,r)},Lk=Ce(Ik,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(t,r)=>r.root})({}),Fk=Ce(Yy,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,r)=>r.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Nk=Ce(QC,{name:"MuiMenu",slot:"List",overridesResolver:(t,r)=>r.list})({outline:0}),qy=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiMenu"}),{autoFocus:a=!0,children:u,className:d,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:v,PaperProps:w={},PopoverClasses:C,transitionDuration:T="auto",TransitionProps:{onEntering:k,...b}={},variant:E="selectedMenu",slots:$={},slotProps:j={},...P}=s,R=Ud(),M={...s,autoFocus:a,disableAutoFocusItem:p,MenuListProps:m,onEntering:k,PaperProps:w,transitionDuration:T,TransitionProps:b,variant:E},O=jk(M),F=a&&!p&&v,D=x.useRef(null),B=(K,ee)=>{D.current&&D.current.adjustStyleForScrollbar(K,{direction:R?"rtl":"ltr"}),k&&k(K,ee)},g=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let N=-1;x.Children.map(u,(K,ee)=>{x.isValidElement(K)&&(K.props.disabled||(E==="selectedMenu"&&K.props.selected||N===-1)&&(N=ee))});const V={slots:$,slotProps:{list:m,transition:b,paper:w,...j}},G=gy({elementType:$.root,externalSlotProps:j.root,ownerState:M,className:[O.root,d]}),[te,Q]=Nt("paper",{className:O.paper,elementType:Fk,externalForwardedProps:V,shouldForwardComponentProp:!0,ownerState:M}),[U,J]=Nt("list",{className:Ne(O.list,m.className),elementType:Nk,shouldForwardComponentProp:!0,externalForwardedProps:V,getSlotProps:K=>({...K,onKeyDown:ee=>{var A;g(ee),(A=K.onKeyDown)==null||A.call(K,ee)}}),ownerState:M}),X=typeof V.slotProps.transition=="function"?V.slotProps.transition(M):V.slotProps.transition;return S.jsx(Lk,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?$k:Ak,slots:{root:$.root,paper:te,backdrop:$.backdrop,...$.transition&&{transition:$.transition}},slotProps:{root:G,paper:Q,backdrop:typeof j.backdrop=="function"?j.backdrop(M):j.backdrop,transition:{...X,onEntering:(...K)=>{var ee;B(...K),(ee=X==null?void 0:X.onEntering)==null||ee.call(X,...K)}}},open:v,ref:o,transitionDuration:T,ownerState:M,...P,classes:C,children:S.jsx(U,{actions:D,autoFocus:a&&(N===-1||p),autoFocusItem:F,variant:E,...J,children:u})})});/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const zk=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qy=(...t)=>t.filter((r,o,s)=>!!r&&r.trim()!==""&&s.indexOf(r)===o).join(" ").trim();/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */var _k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Dk=x.forwardRef(({color:t="currentColor",size:r=24,strokeWidth:o=2,absoluteStrokeWidth:s,className:a="",children:u,iconNode:d,...p},m)=>x.createElement("svg",{ref:m,..._k,width:r,height:r,stroke:t,strokeWidth:s?Number(o)*24/Number(r):o,className:Qy("lucide",a),...p},[...d.map(([h,v])=>x.createElement(h,v)),...Array.isArray(u)?u:[u]]));/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Ws=(t,r)=>{const o=x.forwardRef(({className:s,...a},u)=>x.createElement(Dk,{ref:u,iconNode:r,className:Qy(`lucide-${zk(t)}`,s),...a}));return o.displayName=`${t}`,o};/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Bk=Ws("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Wk=Ws("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Uk=Ws("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Hk=Ws("CloudDownload",[["path",{d:"M12 13v8l-4-4",key:"1f5nwf"}],["path",{d:"m12 21 4-4",key:"1lfcce"}],["path",{d:"M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284",key:"ui1hmy"}]]);/** | |
| * @license lucide-react v0.469.0 - ISC | |
| * | |
| * This source code is licensed under the ISC license. | |
| * See the LICENSE file in the root directory of this source tree. | |
| */const Vk=Ws("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function sf({label:t,disabled:r=!1,id:o,endIcon:s,buttonSx:a={},menuSx:u={},children:d,onOpenChange:p}){const[m,h]=x.useState(null),v=!!m,w=o??"magenta-dropdown-button",C=`${w}-menu`,T=E=>{h(E.currentTarget),p==null||p(!0)},k=()=>{h(null),p==null||p(!1)},b=S.jsx(Wk,{style:{width:"16px",height:"16px",opacity:.6}});return S.jsxs("div",{style:{display:"inline-block",verticalAlign:"baseline"},children:[S.jsx(Gy,{id:w,"aria-controls":v?C:void 0,"aria-haspopup":"true","aria-expanded":v?"true":void 0,onClick:T,disabled:r,endIcon:s??b,sx:[{background:"none",border:"none",boxShadow:"none",color:"inherit",fontSize:"13px",textTransform:"none",fontFamily:"'Google Sans', system-ui, sans-serif",px:1.5,minHeight:"unset",lineHeight:"normal","&:hover":{background:"rgba(128, 128, 128, 0.12)",color:"inherit"},cursor:"pointer"},a],children:t}),S.jsx(qy,{id:C,anchorEl:m,open:v,onClose:k,MenuListProps:{"aria-labelledby":w},sx:{"& .MuiPaper-root":{background:"#2e2e2e",border:"none",borderRadius:"8px",color:"#f3f4f6",minWidth:"240px",...u},"& .MuiList-root":{padding:0},"& .MuiMenuItem-root":{fontSize:"13px",fontFamily:"inherit",height:"45px","&.Mui-selected":{backgroundColor:"rgba(255, 255, 255, 0.15)","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.25)"},"&:has(.MuiIconButton-root:hover):hover":{backgroundColor:"rgba(255, 255, 255, 0.15)"}},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)"},"&:has(.MuiIconButton-root:hover):hover":{backgroundColor:"transparent"}}},children:Sn.Children.map(d,E=>{if(!Sn.isValidElement(E))return E;const $=E.props.onClick;return Sn.cloneElement(E,{onClick:j=>{$&&$(j),E.props.disabled||k()}})})})]})}const tg=rt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ng=rt("MuiListItemIcon",["root","alignItemsFlexStart"]),rg=rt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Gk(t){return pt("MuiMenuItem",t)}const fs=rt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Kk=(t,r)=>{const{ownerState:o}=t;return[r.root,o.dense&&r.dense,o.divider&&r.divider,!o.disableGutters&&r.gutters]},Yk=t=>{const{disabled:r,dense:o,divider:s,disableGutters:a,selected:u,classes:d}=t,m=mt({root:["root",o&&"dense",r&&"disabled",!a&&"gutters",s&&"divider",u&&"selected"]},Gk,d);return{...d,...m}},qk=Ce(rf,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Kk})(yt(({theme:t})=>({...t.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:en(t.palette.primary.main,t.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:en(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:en(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:en(t.palette.primary.main,t.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`& + .${tg.root}`]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},[`& + .${tg.inset}`]:{marginLeft:52},[`& .${rg.root}`]:{marginTop:0,marginBottom:0},[`& .${rg.inset}`]:{paddingLeft:36},[`& .${ng.root}`]:{minWidth:36},variants:[{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:r})=>r.divider,style:{borderBottom:`1px solid ${(t.vars||t).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:r})=>!r.dense,style:{[t.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:r})=>r.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...t.typography.body2,[`& .${ng.root} svg`]:{fontSize:"1.25rem"}}}]}))),Rr=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiMenuItem"}),{autoFocus:a=!1,component:u="li",dense:d=!1,divider:p=!1,disableGutters:m=!1,focusVisibleClassName:h,role:v="menuitem",tabIndex:w,className:C,...T}=s,k=x.useContext(vd),b=x.useMemo(()=>({dense:d||k.dense||!1,disableGutters:m}),[k.dense,d,m]),E=x.useRef(null);jn(()=>{a&&E.current&&E.current.focus()},[a]);const $={...s,dense:b.dense,divider:p,disableGutters:m},j=Yk(s),P=Ht(E,o);let R;return s.disabled||(R=w!==void 0?w:-1),S.jsx(vd.Provider,{value:b,children:S.jsx(qk,{ref:P,role:v,tabIndex:R,component:u,focusVisibleClassName:Ne(j.focusVisible,h),className:Ne(j.root,C),...T,ownerState:$,classes:j})})});function Qk({midiSources:t,keyboardMidiEnabled:r,onSelectSource:o,showComputerKeyboard:s=!0,midiActive:a=!1,buttonSx:u}){var m;const d=(m=t.find(h=>h.connected))==null?void 0:m.name,p=r?"COMPUTER KEYBOARD":d??"NONE";return S.jsxs("div",{style:{display:"inline-flex",alignItems:"center",verticalAlign:"baseline",gap:"4px"},children:[S.jsx("span",{style:{fontFamily:"'Google Sans', system-ui, sans-serif",fontSize:"12px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em",opacity:.7,marginRight:"2px",userSelect:"none"},children:"MIDI INPUT"}),S.jsxs(sf,{id:"midi-input-button",label:p,buttonSx:{fontSize:"12px",fontWeight:700,letterSpacing:"0.05em",textTransform:"uppercase",color:"#FFF","&:hover":{background:"rgba(255, 255, 255, 0.12)"},...u},children:[s&&S.jsx(Rr,{selected:r,onClick:()=>o(0),children:"Computer Keyboard"}),t.map(h=>S.jsx(Rr,{selected:!r&&h.connected,onClick:()=>o(h.endpoint),children:h.name},h.endpoint)),t.length===0&&S.jsx(Rr,{disabled:!0,sx:{opacity:.5},children:"No physical MIDI devices detected"})]}),S.jsx("div",{style:{width:"8px",height:"8px",borderRadius:"50%",backgroundColor:a?"#4CAF50":"rgba(255, 255, 255, 0.35)",transition:"all 0.1s ease-out",flexShrink:0}})]})}function Xk(t){return pt("MuiIconButton",t)}const og=rt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Zk=t=>{const{classes:r,disabled:o,color:s,edge:a,size:u,loading:d}=t,p={root:["root",d&&"loading",o&&"disabled",s!=="default"&&`color${$e(s)}`,a&&`edge${$e(a)}`,`size${$e(u)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return mt(p,Xk,r)},Jk=Ce(rf,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.loading&&r.loading,o.color!=="default"&&r[`color${$e(o.color)}`],o.edge&&r[`edge${$e(o.edge)}`],r[`size${$e(o.size)}`]]}})(yt(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:en(t.palette.action.active,t.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),yt(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(to()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(t.palette).filter(to()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":t.vars?`rgba(${(t.vars||t).palette[r].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:en((t.vars||t).palette[r].main,t.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${og.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${og.loading}`]:{color:"transparent"}}))),e2=Ce("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(t,r)=>r.loadingIndicator})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),vn=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiIconButton"}),{edge:a=!1,children:u,className:d,color:p="default",disabled:m=!1,disableFocusRipple:h=!1,size:v="medium",id:w,loading:C=null,loadingIndicator:T,...k}=s,b=Si(w),E=T??S.jsx(of,{"aria-labelledby":b,color:"inherit",size:16}),$={...s,edge:a,color:p,disabled:m,disableFocusRipple:h,loading:C,loadingIndicator:E,size:v},j=Zk($);return S.jsxs(Jk,{id:C?b:w,className:Ne(j.root,d),centerRipple:!0,focusRipple:!h,disabled:m||C,ref:o,...k,ownerState:$,children:[typeof C=="boolean"&&S.jsx("span",{className:j.loadingWrapper,style:{display:"contents"},children:S.jsx(e2,{className:j.loadingIndicator,ownerState:$,children:C&&E})}),u]})}),t2=Da({typography:{fontFamily:"'Google Sans Text', system-ui, sans-serif"},components:{MuiTooltip:{defaultProps:{arrow:!0,enterDelay:350,enterNextDelay:350,PopperProps:{modifiers:[{name:"preventOverflow",options:{padding:12}}]}},styleOverrides:{popper:{pointerEvents:"none"},tooltip:{backgroundColor:"#eee",color:"#111",borderRadius:"8px",fontSize:"12px",letterSpacing:0,padding:"10px 12px",lineHeight:1.5,boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.25)",pointerEvents:"none"},arrow:{color:"#eee"}}},MuiMenuItem:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:"rgba(255, 255, 255, 0.15) !important","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.25) !important"}},"&:hover":{backgroundColor:"rgba(255, 255, 255, 0.08)"}}}},MuiButton:{variants:[{props:{variant:"ghost"},style:{backgroundColor:"transparent"}}],styleOverrides:{root:{fontFamily:"'Google Sans Text', system-ui, sans-serif",borderRadius:"9999px",textTransform:"none",backgroundColor:"var(--color-raised, #36373a)",color:"rgba(255, 255, 255, 0.9)",fontSize:"12px",fontWeight:500,padding:"6px 16px",border:"none",boxShadow:"none","&:hover":{backgroundColor:"#444649",color:"#ffffff",boxShadow:"none",transition:"none"}}}},MuiIconButton:{variants:[{props:{variant:"ghost"},style:{backgroundColor:"transparent"}},{props:{variant:"jam"},style:{background:"#36373A",borderBottom:"1.5px solid rgba(255, 255, 255, 0.10)",borderRadius:"8px",color:"rgba(255, 255, 255, 0.60)",fontSize:"17px",fontWeight:400,"&:hover":{background:"#444649",color:"rgba(255, 255, 255, 0.85)"}}}],styleOverrides:{root:{color:"rgba(255, 255, 255, 0.9)",backgroundColor:"var(--color-raised, #36373a)",borderRadius:"50%",border:"none","&:hover":{backgroundColor:"#444649",color:"#ffffff",transition:"none"},"&.Mui-disabled":{color:"inherit",opacity:.4}}}}}}),ig=t=>{var r,o,s;(s=(o=(r=window.webkit)==null?void 0:r.messageHandlers)==null?void 0:o.auHost)==null||s.postMessage(t)},sg=t=>t.endsWith(".mlxfn")?t.replace(".mlxfn",""):t;function n2({modelName:t,localModels:r=[],onSelectModel:o,onSelectFolder:s,remoteModels:a=[],onDownloadModel:u,onDeleteModel:d,downloadProgress:p=null,buttonSx:m={}}){const h=o||(P=>ig({type:"selectModel",name:P})),v=s||(()=>ig({type:"selectDownloadFolder"})),w=t.endsWith(".mlxfn")?t.replace(".mlxfn",""):t,C=!!(p&&p.status==="downloading"),T=C&&p.modelName||"",k=!w||w==="No model loaded"||w==="Choose Model...",b=x.useRef(null);x.useEffect(()=>{if(C&&T)b.current=T;else if(!C&&b.current){const P=b.current;b.current=null,k&&r.includes(P)&&h(P)}},[C]);const E=C?`Downloading... (${Math.round(((p==null?void 0:p.percent)||0)*100)}%)`:k?"Select model…":w,$=Array.from(new Set([...r,...a])),j=S.jsx("span",{style:{maxWidth:"90px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"block",color:!C&&k?"red":"inherit"},children:E});return S.jsxs("div",{style:{display:"inline-flex",alignItems:"center",verticalAlign:"baseline"},children:[S.jsx("span",{style:{fontFamily:"'Google Sans', system-ui, sans-serif",fontSize:"12px",fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em",opacity:.7,marginRight:"2px",userSelect:"none"},children:"MODEL"}),S.jsxs(sf,{id:"model-selector-button",label:j,endIcon:C?S.jsx("div",{className:"magenta-spinner"}):void 0,buttonSx:m,children:[$.length===0&&S.jsx(Rr,{disabled:!0,sx:{opacity:.5},children:"No models found"}),$.map(P=>{const R=r.includes(P),M=sg(P)===sg(t),O=C&&T===P;return S.jsxs(Rr,{selected:M,onClick:F=>{R?h(P):F.stopPropagation()},disabled:O,sx:{display:"flex",justifyContent:"space-between",alignItems:"center",cursor:R?"pointer":"default",...R?{}:{"&:hover":{backgroundColor:"transparent !important"}}},children:[S.jsx("span",{style:{fontWeight:M?"bold":"normal",opacity:R||O?1:.6},children:P.endsWith(".mlxfn")?P.replace(".mlxfn",""):P}),S.jsx("div",{style:{width:"32px",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:"12px",marginRight:"-8px",flexShrink:0},children:O?S.jsx("div",{className:"magenta-spinner",style:{color:"#fff"}}):R?M?S.jsx(Bk,{size:14,style:{color:"#10b981"}}):S.jsx(vn,{title:"Delete local model files",variant:"ghost",onClick:F=>{F.stopPropagation(),d&&d(P)},sx:{"&:hover":{backgroundColor:"rgba(239, 68, 68, 0.15)",color:"#ef4444"}},children:S.jsx(Vk,{size:16})}):S.jsx(vn,{title:"Download model",disabled:C,variant:"ghost",onClick:F=>{F.stopPropagation(),u&&u(P)},sx:{color:"#fff","&:hover":{color:"#fff",backgroundColor:"rgba(255, 255, 255, 0.08)"}},children:S.jsx(Hk,{size:16})})})]},P)}),S.jsx(Rr,{onClick:()=>{v()},sx:{fontWeight:"bold",borderTop:"1px solid rgba(255,255,255,0.08)"},children:"Select custom folder…"})]})]})}const Sd=["Dreamy Ambient Pads","Jazz Piano Trio","Electro Synthpop","Chiptune","Synthwave","Jazz Guitar","Saturated Gamelan Choir","Flamenco Nylon Guitar Rasgueado","Reggae Rhythm Guitar","Synthpop Groove Club Mix","Fast Swing Jazz Clarinet and Guitar","Afrobeat Band with Horns and Complex Drums","French House Disco Loops Filter Sweeps","Country Banjo Picking","R&B Smooth Keys","Soft Rock","Cyberpunk Synthwave Mariachi Horns","Trap Beat with Sampled Funk","UK Post-Dubstep String Quartet","African Kalimba","Lo-fi Hip Hop Beat","Smooth Bossa Nova","West African Kora Polyrhythms","Danceable Latin Jazz Salsa with Trombone","Celtic Fiddle Jig","Acoustic Folk Guitar","Church Organ","Surf Rock Guitar","Cavernous Endless Reverb Electric Guitar Swells","Japanese Koto","Gritty Garage Rock","Indian Classical Sitar and Tabla Raga","Middle Eastern Oud and Darbuka Groove","Ambient IDM Glitch Beats","Euphoric Washed-Out Noise Pop Fuzz","Andean Pan Flute Mountain Melody","Balinese Gamelan Metallic Percussion","Dark Cinematic Soundtrack","Brazilian Samba Batucada Percussion Ensemble"],wd=["Heavily Digitally Distorted Harp Shimmer","Warm Vinyl Crackle Dusty Organ Chords","Supersaw Complextro Chords","Melodramatic Tremolo Mandolin","Trance Arpeggiated Synth","Baroque Cello Meets 90s Trance Euphoria","Polka Accordion","Dubstep Wobble Bass Synth","Medieval Rain","Granular Synthesis Frozen Vocal Textures","Slow Pad Sweeps Up","Cinematic Orchestral Hits","Violin Chamber Ensemble","Fanfare French Horn","Retro Synthwave Analog Lead","Ambient Pad Synthesizer","Bowed Vibraphone Sustained Metallic Ringing","Classical Cello","Delicate Vintage Music Box","Bluegrass Picked Banjo","Gentle Microtonal Flutes","Latin Mallet Marimba","Fingerpicked Acoustic Guitar","Chinese Guzheng","Euphoric Washed-Out Noise Pop Fuzz","Cavernous Endless Reverb Electric Guitar Swells","Orchestral Sustained Oboe","Nylon String Classical Guitar"];[...Sd,...wd];const r2=rt("MuiBox",["root"]),o2=Da(),ps=eS({themeId:or,defaultTheme:o2,defaultClassName:r2.root,generateClassName:oy.generate}),lg=(t,r)=>{if(t<=1e-4)return 0;const o=20*Math.log10(t);return o<=r?0:(o-r)/-r};function i2({leftLevel:t,rightLevel:r,decayRate:o=.95,width:s="80px",height:a="14px",color:u="#FFF",minDb:d=-40,orientation:p="horizontal"}){const m=p==="vertical",h=x.useRef(null),v=x.useRef(null),w=x.useRef(0),C=x.useRef(0),T=x.useRef(0),k=x.useRef(0);return x.useEffect(()=>{T.current=lg(t,d)},[t,d]),x.useEffect(()=>{k.current=lg(r,d)},[r,d]),x.useEffect(()=>{let b;const E=()=>{T.current>w.current?w.current=T.current:w.current=Math.max(0,w.current*o),k.current>C.current?C.current=k.current:C.current=Math.max(0,C.current*o);const $=Math.min(1,w.current),j=Math.min(1,C.current);h.current&&(m?h.current.style.height=`${$*100}%`:h.current.style.width=`${$*100}%`),v.current&&(m?v.current.style.height=`${j*100}%`:v.current.style.width=`${j*100}%`),b=requestAnimationFrame(E)};return b=requestAnimationFrame(E),()=>cancelAnimationFrame(b)},[o,m]),S.jsxs(ps,{sx:{display:"flex",flexDirection:m?"row":"column",gap:"4px",width:s,height:a,justifyContent:"center"},children:[S.jsx(ps,{sx:{...m?{width:"4px",height:"100%"}:{height:"4px",width:"100%"},backgroundColor:"rgba(128, 128, 128, 0.25)",borderRadius:"0px",overflow:"hidden",position:"relative"},children:S.jsx(ps,{ref:h,sx:{...m?{width:"100%",height:"0%",position:"absolute",bottom:0}:{height:"100%",width:"0%"},backgroundColor:u,borderRadius:"0px",transition:"none"}})}),S.jsx(ps,{sx:{...m?{width:"4px",height:"100%"}:{height:"4px",width:"100%"},backgroundColor:"rgba(128, 128, 128, 0.25)",borderRadius:"0px",overflow:"hidden",position:"relative"},children:S.jsx(ps,{ref:v,sx:{...m?{width:"100%",height:"0%",position:"absolute",bottom:0}:{height:"100%",width:"0%"},backgroundColor:u,borderRadius:"0px",transition:"none"}})})]})}function s2(t){return pt("MuiNativeSelect",t)}const lf=rt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),l2=t=>{const{classes:r,variant:o,disabled:s,multiple:a,open:u,error:d}=t,p={select:["select",o,s&&"disabled",a&&"multiple",d&&"error"],icon:["icon",`icon${$e(o)}`,u&&"iconOpen",s&&"disabled"]};return mt(p,s2,r)},Xy=Ce("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${lf.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:r})=>r.variant!=="filled"&&r.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),a2=Ce(Xy,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:zn,overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.select,r[o.variant],o.error&&r.error,{[`&.${lf.multiple}`]:r.multiple}]}})({}),Zy=Ce("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${lf.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:r})=>r.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),u2=Ce(Zy,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.icon,o.variant&&r[`icon${$e(o.variant)}`],o.open&&r.iconOpen]}})({}),c2=x.forwardRef(function(r,o){const{className:s,disabled:a,error:u,IconComponent:d,inputRef:p,variant:m="standard",...h}=r,v={...r,disabled:a,variant:m,error:u},w=l2(v);return S.jsxs(x.Fragment,{children:[S.jsx(a2,{ownerState:v,className:Ne(w.select,s),disabled:a,ref:p||o,...h}),r.multiple?null:S.jsx(u2,{as:d,ownerState:v,className:w.icon})]})});function ag(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Ta(t,r=!1){return t&&(ag(t.value)&&t.value!==""||r&&ag(t.defaultValue)&&t.defaultValue!=="")}function d2(t){return t.startAdornment}function Jy(t){return pt("MuiSelect",t)}const ms=rt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var ug;const f2=Ce(Xy,{name:"MuiSelect",slot:"Select",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[{[`&.${ms.select}`]:r.select},{[`&.${ms.select}`]:r[o.variant]},{[`&.${ms.error}`]:r.error},{[`&.${ms.multiple}`]:r.multiple}]}})({[`&.${ms.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),p2=Ce(Zy,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.icon,o.variant&&r[`icon${$e(o.variant)}`],o.open&&r.iconOpen]}})({}),m2=Ce("input",{shouldForwardProp:t=>Py(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,r)=>r.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function cg(t,r){return typeof r=="object"&&r!==null?t===r:String(t)===String(r)}function h2(t){return t==null||typeof t=="string"&&!t.trim()}const g2=t=>{const{classes:r,variant:o,disabled:s,multiple:a,open:u,error:d}=t,p={select:["select",o,s&&"disabled",a&&"multiple",d&&"error"],icon:["icon",`icon${$e(o)}`,u&&"iconOpen",s&&"disabled"],nativeInput:["nativeInput"]};return mt(p,Jy,r)},y2=x.forwardRef(function(r,o){var bt;const{"aria-describedby":s,"aria-label":a,autoFocus:u,autoWidth:d,children:p,className:m,defaultOpen:h,defaultValue:v,disabled:w,displayEmpty:C,error:T=!1,IconComponent:k,inputRef:b,labelId:E,MenuProps:$={},multiple:j,name:P,onBlur:R,onChange:M,onClose:O,onFocus:F,onOpen:D,open:B,readOnly:g,renderValue:N,required:V,SelectDisplayProps:G={},tabIndex:te,type:Q,value:U,variant:J="standard",...X}=r,[K,ee]=od({controlled:U,default:v,name:"Select"}),[A,Y]=od({controlled:B,default:h,name:"Select"}),le=x.useRef(null),ie=x.useRef(null),[ae,de]=x.useState(null),{current:xe}=x.useRef(B!=null),[ge,ye]=x.useState(),me=Ht(o,b),ke=x.useCallback(we=>{ie.current=we,we&&de(we)},[]),be=ae==null?void 0:ae.parentNode;x.useImperativeHandle(me,()=>({focus:()=>{ie.current.focus()},node:le.current,value:K}),[K]),x.useEffect(()=>{h&&A&&ae&&!xe&&(ye(d?null:be.clientWidth),ie.current.focus())},[ae,d]),x.useEffect(()=>{u&&ie.current.focus()},[u]),x.useEffect(()=>{if(!E)return;const we=bn(ie.current).getElementById(E);if(we){const je=()=>{getSelection().isCollapsed&&ie.current.focus()};return we.addEventListener("click",je),()=>{we.removeEventListener("click",je)}}},[E]);const Le=(we,je)=>{we?D&&D(je):O&&O(je),xe||(ye(d?null:be.clientWidth),Y(we))},Ee=we=>{we.button===0&&(we.preventDefault(),ie.current.focus(),Le(!0,we))},Be=we=>{Le(!1,we)},et=x.Children.toArray(p),Ve=we=>{const je=et.find(dt=>dt.props.value===we.target.value);je!==void 0&&(ee(je.props.value),M&&M(we,je))},Ie=we=>je=>{let dt;if(je.currentTarget.hasAttribute("tabindex")){if(j){dt=Array.isArray(K)?K.slice():[];const Rt=K.indexOf(we.props.value);Rt===-1?dt.push(we.props.value):dt.splice(Rt,1)}else dt=we.props.value;if(we.props.onClick&&we.props.onClick(je),K!==dt&&(ee(dt),M)){const Rt=je.nativeEvent||je,st=new Rt.constructor(Rt.type,Rt);Object.defineProperty(st,"target",{writable:!0,value:{value:dt,name:P}}),M(st,we)}j||Le(!1,je)}},it=we=>{g||[" ","ArrowUp","ArrowDown","Enter"].includes(we.key)&&(we.preventDefault(),Le(!0,we))},ze=ae!==null&&A,_e=we=>{!ze&&R&&(Object.defineProperty(we,"target",{writable:!0,value:{value:K,name:P}}),R(we))};delete X["aria-invalid"];let pe,wt;const Qe=[];let zt=!1;(Ta({value:K})||C)&&(N?pe=N(K):zt=!0);const jt=et.map(we=>{if(!x.isValidElement(we))return null;let je;if(j){if(!Array.isArray(K))throw new Error(Tr(2));je=K.some(dt=>cg(dt,we.props.value)),je&&zt&&Qe.push(we.props.children)}else je=cg(K,we.props.value),je&&zt&&(wt=we.props.children);return x.cloneElement(we,{"aria-selected":je?"true":"false",onClick:Ie(we),onKeyUp:dt=>{dt.key===" "&&dt.preventDefault(),we.props.onKeyUp&&we.props.onKeyUp(dt)},role:"option",selected:je,value:void 0,"data-value":we.props.value})});zt&&(j?Qe.length===0?pe=null:pe=Qe.reduce((we,je,dt)=>(we.push(je),dt<Qe.length-1&&we.push(", "),we),[]):pe=wt);let Et=ge;!d&&xe&&ae&&(Et=be.clientWidth);let Ue;typeof te<"u"?Ue=te:Ue=w?null:0;const Ke=G.id||(P?`mui-component-select-${P}`:void 0),Ae={...r,variant:J,value:K,open:ze,error:T},Pe=g2(Ae),Ye={...$.PaperProps,...(bt=$.slotProps)==null?void 0:bt.paper},He=Si();return S.jsxs(x.Fragment,{children:[S.jsx(f2,{as:"div",ref:ke,tabIndex:Ue,role:"combobox","aria-controls":ze?He:void 0,"aria-disabled":w?"true":void 0,"aria-expanded":ze?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[E,Ke].filter(Boolean).join(" ")||void 0,"aria-describedby":s,"aria-required":V?"true":void 0,"aria-invalid":T?"true":void 0,onKeyDown:it,onMouseDown:w||g?null:Ee,onBlur:_e,onFocus:F,...G,ownerState:Ae,className:Ne(G.className,Pe.select,m),id:Ke,children:h2(pe)?ug||(ug=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):pe}),S.jsx(m2,{"aria-invalid":T,value:Array.isArray(K)?K.join(","):K,name:P,ref:le,"aria-hidden":!0,onChange:Ve,tabIndex:-1,disabled:w,className:Pe.nativeInput,autoFocus:u,required:V,...X,ownerState:Ae}),S.jsx(p2,{as:k,className:Pe.icon,ownerState:Ae}),S.jsx(qy,{id:`menu-${P||""}`,anchorEl:be,open:ze,onClose:Be,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...$,slotProps:{...$.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":j?"true":void 0,disableListWrap:!0,id:He,...$.MenuListProps},paper:{...Ye,style:{minWidth:Et,...Ye!=null?Ye.style:null}}},children:jt})]})});function bi({props:t,states:r,muiFormControl:o}){return r.reduce((s,a)=>(s[a]=t[a],o&&typeof t[a]>"u"&&(s[a]=o[a]),s),{})}const af=x.createContext(void 0);function Ci(){return x.useContext(af)}const v2=kn(S.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function la(t){return parseInt(t,10)||0}const x2={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function S2(t){for(const r in t)return!1;return!0}function dg(t){return S2(t)||t.outerHeightStyle===0&&!t.overflowing}const w2=x.forwardRef(function(r,o){const{onChange:s,maxRows:a,minRows:u=1,style:d,value:p,...m}=r,{current:h}=x.useRef(p!=null),v=x.useRef(null),w=Ht(o,v),C=x.useRef(null),T=x.useRef(null),k=x.useCallback(()=>{const P=v.current,R=T.current;if(!P||!R)return;const O=Mr(P).getComputedStyle(P);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=P.value||r.placeholder||"x",R.value.slice(-1)===` | |
| `&&(R.value+=" ");const F=O.boxSizing,D=la(O.paddingBottom)+la(O.paddingTop),B=la(O.borderBottomWidth)+la(O.borderTopWidth),g=R.scrollHeight;R.value="x";const N=R.scrollHeight;let V=g;u&&(V=Math.max(Number(u)*N,V)),a&&(V=Math.min(Number(a)*N,V)),V=Math.max(V,N);const G=V+(F==="border-box"?D+B:0),te=Math.abs(V-g)<=1;return{outerHeightStyle:G,overflowing:te}},[a,u,r.placeholder]),b=Er(()=>{const P=v.current,R=k();if(!P||!R||dg(R))return!1;const M=R.outerHeightStyle;return C.current!=null&&C.current!==M}),E=x.useCallback(()=>{const P=v.current,R=k();if(!P||!R||dg(R))return;const M=R.outerHeightStyle;C.current!==M&&(C.current=M,P.style.height=`${M}px`),P.style.overflow=R.overflowing?"hidden":""},[k]),$=x.useRef(-1);jn(()=>{const P=uy(E),R=v==null?void 0:v.current;if(!R)return;const M=Mr(R);M.addEventListener("resize",P);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{b()&&(O.unobserve(R),cancelAnimationFrame($.current),E(),$.current=requestAnimationFrame(()=>{O.observe(R)}))}),O.observe(R)),()=>{P.clear(),cancelAnimationFrame($.current),M.removeEventListener("resize",P),O&&O.disconnect()}},[k,E,b]),jn(()=>{E()});const j=P=>{h||E(),s&&s(P)};return S.jsxs(x.Fragment,{children:[S.jsx("textarea",{value:p,onChange:j,ref:w,rows:u,style:d,...m}),S.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:T,tabIndex:-1,style:{...x2.shadow,...d,paddingTop:0,paddingBottom:0}})]})});function b2(t){return pt("MuiInputBase",t)}const yi=rt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var fg;const Ua=(t,r)=>{const{ownerState:o}=t;return[r.root,o.formControl&&r.formControl,o.startAdornment&&r.adornedStart,o.endAdornment&&r.adornedEnd,o.error&&r.error,o.size==="small"&&r.sizeSmall,o.multiline&&r.multiline,o.color&&r[`color${$e(o.color)}`],o.fullWidth&&r.fullWidth,o.hiddenLabel&&r.hiddenLabel]},Ha=(t,r)=>{const{ownerState:o}=t;return[r.input,o.size==="small"&&r.inputSizeSmall,o.multiline&&r.inputMultiline,o.type==="search"&&r.inputTypeSearch,o.startAdornment&&r.inputAdornedStart,o.endAdornment&&r.inputAdornedEnd,o.hiddenLabel&&r.inputHiddenLabel]},C2=t=>{const{classes:r,color:o,disabled:s,error:a,endAdornment:u,focused:d,formControl:p,fullWidth:m,hiddenLabel:h,multiline:v,readOnly:w,size:C,startAdornment:T,type:k}=t,b={root:["root",`color${$e(o)}`,s&&"disabled",a&&"error",m&&"fullWidth",d&&"focused",p&&"formControl",C&&C!=="medium"&&`size${$e(C)}`,v&&"multiline",T&&"adornedStart",u&&"adornedEnd",h&&"hiddenLabel",w&&"readOnly"],input:["input",s&&"disabled",k==="search"&&"inputTypeSearch",v&&"inputMultiline",C==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",T&&"inputAdornedStart",u&&"inputAdornedEnd",w&&"readOnly"]};return mt(b,b2,r)},Va=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ua})(yt(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${yi.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:o})=>r.multiline&&o==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),Ga=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ha})(yt(({theme:t})=>{const r=t.palette.mode==="light",o={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},s={opacity:"0 !important"},a=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${yi.formControl} &`]:{"&::-webkit-input-placeholder":s,"&::-moz-placeholder":s,"&::-ms-input-placeholder":s,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${yi.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:u})=>!u.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:u})=>u.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),pg=kw({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),uf=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:u,autoFocus:d,className:p,color:m,components:h={},componentsProps:v={},defaultValue:w,disabled:C,disableInjectingGlobalStyles:T,endAdornment:k,error:b,fullWidth:E=!1,id:$,inputComponent:j="input",inputProps:P={},inputRef:R,margin:M,maxRows:O,minRows:F,multiline:D=!1,name:B,onBlur:g,onChange:N,onClick:V,onFocus:G,onKeyDown:te,onKeyUp:Q,placeholder:U,readOnly:J,renderSuffix:X,rows:K,size:ee,slotProps:A={},slots:Y={},startAdornment:le,type:ie="text",value:ae,...de}=s,xe=P.value!=null?P.value:ae,{current:ge}=x.useRef(xe!=null),ye=x.useRef(),me=x.useCallback(Pe=>{},[]),ke=Ht(ye,R,P.ref,me),[be,Le]=x.useState(!1),Ee=Ci(),Be=bi({props:s,muiFormControl:Ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=Ee?Ee.focused:be,x.useEffect(()=>{!Ee&&C&&be&&(Le(!1),g&&g())},[Ee,C,be,g]);const et=Ee&&Ee.onFilled,Ve=Ee&&Ee.onEmpty,Ie=x.useCallback(Pe=>{Ta(Pe)?et&&et():Ve&&Ve()},[et,Ve]);jn(()=>{ge&&Ie({value:xe})},[xe,Ie,ge]);const it=Pe=>{G&&G(Pe),P.onFocus&&P.onFocus(Pe),Ee&&Ee.onFocus?Ee.onFocus(Pe):Le(!0)},ze=Pe=>{g&&g(Pe),P.onBlur&&P.onBlur(Pe),Ee&&Ee.onBlur?Ee.onBlur(Pe):Le(!1)},_e=(Pe,...Ye)=>{if(!ge){const He=Pe.target||ye.current;if(He==null)throw new Error(Tr(1));Ie({value:He.value})}P.onChange&&P.onChange(Pe,...Ye),N&&N(Pe,...Ye)};x.useEffect(()=>{Ie(ye.current)},[]);const pe=Pe=>{ye.current&&Pe.currentTarget===Pe.target&&ye.current.focus(),V&&V(Pe)};let wt=j,Qe=P;D&&wt==="input"&&(K?Qe={type:void 0,minRows:K,maxRows:K,...Qe}:Qe={type:void 0,maxRows:O,minRows:F,...Qe},wt=w2);const zt=Pe=>{Ie(Pe.animationName==="mui-auto-fill-cancel"?ye.current:{value:"x"})};x.useEffect(()=>{Ee&&Ee.setAdornedStart(!!le)},[Ee,le]);const jt={...s,color:Be.color||"primary",disabled:Be.disabled,endAdornment:k,error:Be.error,focused:Be.focused,formControl:Ee,fullWidth:E,hiddenLabel:Be.hiddenLabel,multiline:D,size:Be.size,startAdornment:le,type:ie},Et=C2(jt),Ue=Y.root||h.Root||Va,Ke=A.root||v.root||{},Ae=Y.input||h.Input||Ga;return Qe={...Qe,...A.input??v.input},S.jsxs(x.Fragment,{children:[!T&&typeof pg=="function"&&(fg||(fg=S.jsx(pg,{}))),S.jsxs(Ue,{...Ke,ref:o,onClick:pe,...de,...!xd(Ue)&&{ownerState:{...jt,...Ke.ownerState}},className:Ne(Et.root,Ke.className,p,J&&"MuiInputBase-readOnly"),children:[le,S.jsx(af.Provider,{value:null,children:S.jsx(Ae,{"aria-invalid":Be.error,"aria-describedby":a,autoComplete:u,autoFocus:d,defaultValue:w,disabled:Be.disabled,id:$,onAnimationStart:zt,name:B,placeholder:U,readOnly:J,required:Be.required,rows:K,value:xe,onKeyDown:te,onKeyUp:Q,type:ie,...Qe,...!xd(Ae)&&{as:wt,ownerState:{...jt,...Qe.ownerState}},ref:ke,className:Ne(Et.input,Qe.className,J&&"MuiInputBase-readOnly"),onBlur:ze,onChange:_e,onFocus:it})}),k,X?X({...Be,startAdornment:le}):null]})]})});function k2(t){return pt("MuiInput",t)}const hs={...yi,...rt("MuiInput",["root","underline","input"])},E2=t=>{const{classes:r,disableUnderline:o}=t,a=mt({root:["root",!o&&"underline"],input:["input"]},k2,r);return{...r,...a}},R2=Ce(Va,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[...Ua(t,r),!o.disableUnderline&&r.underline]}})(yt(({theme:t})=>{let o=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(o=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:s})=>s.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${hs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hs.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hs.disabled}, .${hs.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${hs.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(to()).map(([s])=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[s].main}`}}}))]}})),T2=Ce(Ga,{name:"MuiInput",slot:"Input",overridesResolver:Ha})({}),cf=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiInput"}),{disableUnderline:a=!1,components:u={},componentsProps:d,fullWidth:p=!1,inputComponent:m="input",multiline:h=!1,slotProps:v,slots:w={},type:C="text",...T}=s,k=E2(s),E={root:{ownerState:{disableUnderline:a}}},$=v??d?tn(v??d,E):E,j=w.root??u.Root??R2,P=w.input??u.Input??T2;return S.jsx(uf,{slots:{root:j,input:P},slotProps:$,fullWidth:p,inputComponent:m,multiline:h,ref:o,type:C,...T,classes:k})});cf.muiName="Input";function P2(t){return pt("MuiFilledInput",t)}const Co={...yi,...rt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},M2=t=>{const{classes:r,disableUnderline:o,startAdornment:s,endAdornment:a,size:u,hiddenLabel:d,multiline:p}=t,m={root:["root",!o&&"underline",s&&"adornedStart",a&&"adornedEnd",u==="small"&&`size${$e(u)}`,d&&"hiddenLabel",p&&"multiline"],input:["input"]},h=mt(m,P2,r);return{...r,...h}},I2=Ce(Va,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[...Ua(t,r),!o.disableUnderline&&r.underline]}})(yt(({theme:t})=>{const r=t.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",u=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},[`&.${Co.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},[`&.${Co.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:u},variants:[{props:({ownerState:d})=>!d.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Co.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Co.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Co.disabled}, .${Co.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Co.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(to()).map(([d])=>{var p;return{props:{disableUnderline:!1,color:d},style:{"&::after":{borderBottom:`2px solid ${(p=(t.vars||t).palette[d])==null?void 0:p.main}`}}}}),{props:({ownerState:d})=>d.startAdornment,style:{paddingLeft:12}},{props:({ownerState:d})=>d.endAdornment,style:{paddingRight:12}},{props:({ownerState:d})=>d.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:d,size:p})=>d.multiline&&p==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel&&d.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),O2=Ce(Ga,{name:"MuiFilledInput",slot:"Input",overridesResolver:Ha})(yt(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:r})=>r.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}},{props:({ownerState:r})=>r.hiddenLabel&&r.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:r})=>r.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),df=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:u={},componentsProps:d,fullWidth:p=!1,hiddenLabel:m,inputComponent:h="input",multiline:v=!1,slotProps:w,slots:C={},type:T="text",...k}=s,b={...s,disableUnderline:a,fullWidth:p,inputComponent:h,multiline:v,type:T},E=M2(s),$={root:{ownerState:b},input:{ownerState:b}},j=w??d?tn($,w??d):$,P=C.root??u.Root??I2,R=C.input??u.Input??O2;return S.jsx(uf,{slots:{root:P,input:R},slotProps:j,fullWidth:p,inputComponent:h,multiline:v,ref:o,type:T,...k,classes:E})});df.muiName="Input";var mg;const $2=Ce("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:zn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),A2=Ce("legend",{name:"MuiNotchedOutlined",shouldForwardProp:zn})(yt(({theme:t})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:r})=>!r.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:r})=>r.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:r})=>r.withLabel&&r.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function j2(t){const{children:r,classes:o,className:s,label:a,notched:u,...d}=t,p=a!=null&&a!=="",m={...t,notched:u,withLabel:p};return S.jsx($2,{"aria-hidden":!0,className:s,ownerState:m,...d,children:S.jsx(A2,{ownerState:m,children:p?S.jsx("span",{children:a}):mg||(mg=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function L2(t){return pt("MuiOutlinedInput",t)}const er={...yi,...rt("MuiOutlinedInput",["root","notchedOutline","input"])},F2=t=>{const{classes:r}=t,s=mt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},L2,r);return{...r,...s}},N2=Ce(Va,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ua})(yt(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${er.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${er.notchedOutline}`]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${er.focused} .${er.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(to()).map(([o])=>({props:{color:o},style:{[`&.${er.focused} .${er.notchedOutline}`]:{borderColor:(t.vars||t).palette[o].main}}})),{props:{},style:{[`&.${er.error} .${er.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${er.disabled} .${er.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:14}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:s})=>o.multiline&&s==="small",style:{padding:"8.5px 14px"}}]}})),z2=Ce(j2,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,r)=>r.notchedOutline})(yt(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),_2=Ce(Ga,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ha})(yt(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:r})=>r.multiline,style:{padding:0}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}}]}))),ff=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiOutlinedInput"}),{components:a={},fullWidth:u=!1,inputComponent:d="input",label:p,multiline:m=!1,notched:h,slots:v={},slotProps:w={},type:C="text",...T}=s,k=F2(s),b=Ci(),E=bi({props:s,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),$={...s,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:b,fullWidth:u,hiddenLabel:E.hiddenLabel,multiline:m,size:E.size,type:C},j=v.root??a.Root??N2,P=v.input??a.Input??_2,[R,M]=Nt("notchedOutline",{elementType:z2,className:k.notchedOutline,shouldForwardComponentProp:!0,ownerState:$,externalForwardedProps:{slots:v,slotProps:w},additionalProps:{label:p!=null&&p!==""&&E.required?S.jsxs(x.Fragment,{children:[p," ","*"]}):p}});return S.jsx(uf,{slots:{root:j,input:P},slotProps:w,renderSuffix:O=>S.jsx(R,{...M,notched:typeof h<"u"?h:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:u,inputComponent:d,multiline:m,ref:o,type:C,...T,classes:{...k,notchedOutline:null}})});ff.muiName="Input";const D2=t=>{const{classes:r}=t,s=mt({root:["root"]},Jy,r);return{...r,...s}},pf={name:"MuiSelect",overridesResolver:(t,r)=>r.root,shouldForwardProp:t=>zn(t)&&t!=="variant",slot:"Root"},B2=Ce(cf,pf)(""),W2=Ce(ff,pf)(""),U2=Ce(df,pf)(""),mf=x.forwardRef(function(r,o){const s=vt({name:"MuiSelect",props:r}),{autoWidth:a=!1,children:u,classes:d={},className:p,defaultOpen:m=!1,displayEmpty:h=!1,IconComponent:v=v2,id:w,input:C,inputProps:T,label:k,labelId:b,MenuProps:E,multiple:$=!1,native:j=!1,onClose:P,onOpen:R,open:M,renderValue:O,SelectDisplayProps:F,variant:D="outlined",...B}=s,g=j?c2:y2,N=Ci(),V=bi({props:s,muiFormControl:N,states:["variant","error"]}),G=V.variant||D,te={...s,variant:G,classes:d},Q=D2(te),{root:U,...J}=Q,X=C||{standard:S.jsx(B2,{ownerState:te}),outlined:S.jsx(W2,{label:k,ownerState:te}),filled:S.jsx(U2,{ownerState:te})}[G],K=Ht(o,wi(X));return S.jsx(x.Fragment,{children:x.cloneElement(X,{inputComponent:g,inputProps:{children:u,error:V.error,IconComponent:v,variant:G,type:void 0,multiple:$,...j?{id:w}:{autoWidth:a,defaultOpen:m,displayEmpty:h,labelId:b,MenuProps:E,onClose:P,onOpen:R,open:M,renderValue:O,SelectDisplayProps:{id:w,...F}},...T,classes:T?tn(J,T.classes):J,...C?C.props.inputProps:{}},...($&&j||h)&&G==="outlined"?{notched:!0}:{},ref:K,className:Ne(X.props.className,p,Q.root),...!C&&{variant:G},...B})})});mf.muiName="Select";function H2(t){return pt("MuiFormControl",t)}rt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const V2=t=>{const{classes:r,margin:o,fullWidth:s}=t,a={root:["root",o!=="none"&&`margin${$e(o)}`,s&&"fullWidth"]};return mt(a,H2,r)},G2=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[`margin${$e(o.margin)}`],o.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ev=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiFormControl"}),{children:a,className:u,color:d="primary",component:p="div",disabled:m=!1,error:h=!1,focused:v,fullWidth:w=!1,hiddenLabel:C=!1,margin:T="none",required:k=!1,size:b="medium",variant:E="outlined",...$}=s,j={...s,color:d,component:p,disabled:m,error:h,fullWidth:w,hiddenLabel:C,margin:T,required:k,size:b,variant:E},P=V2(j),[R,M]=x.useState(()=>{let Q=!1;return a&&x.Children.forEach(a,U=>{if(!_c(U,["Input","Select"]))return;const J=_c(U,["Select"])?U.props.input:U;J&&d2(J.props)&&(Q=!0)}),Q}),[O,F]=x.useState(()=>{let Q=!1;return a&&x.Children.forEach(a,U=>{_c(U,["Input","Select"])&&(Ta(U.props,!0)||Ta(U.props.inputProps,!0))&&(Q=!0)}),Q}),[D,B]=x.useState(!1);m&&D&&B(!1);const g=v!==void 0&&!m?v:D;let N;x.useRef(!1);const V=x.useCallback(()=>{F(!0)},[]),G=x.useCallback(()=>{F(!1)},[]),te=x.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:d,disabled:m,error:h,filled:O,focused:g,fullWidth:w,hiddenLabel:C,size:b,onBlur:()=>{B(!1)},onFocus:()=>{B(!0)},onEmpty:G,onFilled:V,registerEffect:N,required:k,variant:E}),[R,d,m,h,O,g,w,C,N,G,V,k,b,E]);return S.jsx(af.Provider,{value:te,children:S.jsx(G2,{as:p,ownerState:j,className:Ne(P.root,u),ref:o,...$,children:a})})}),kr="#5be8cc",hg="#71fade";function K2({progress:t,remoteModels:r=[],downloadPath:o,onStartDownload:s,onSelectFolder:a,isFetchingModels:u=!1}){const d=(t==null?void 0:t.status)||"idle",p=Math.round(((t==null?void 0:t.percent)||0)*100),m=(t==null?void 0:t.text)||"Select a model and destination folder to start playing",h=d==="success",v=d==="error",[w,C]=x.useState("");x.useEffect(()=>{r.length>0&&!w&&C(r[0])},[r,w]);const k=(o.endsWith("/models")?o.slice(0,-7):o).replace(/\/Users\/[^\/]+/,"~"),b=()=>{w&&s(w)};return S.jsx("div",{style:{position:"fixed",top:0,left:0,width:"100vw",height:"100vh",background:"var(--color-bg)",zIndex:9999,display:"flex",justifyContent:"center",alignItems:"center",padding:"var(--app-padding)",boxSizing:"border-box",color:"var(--color-fg)",fontFamily:"'Google Sans Text', system-ui, sans-serif"},children:S.jsxs("div",{style:{background:"var(--color-surface)",border:"1px solid var(--color-border)",borderRadius:"10px",width:"100%",maxWidth:"420px",padding:"32px",display:"flex",flexDirection:"column",gap:"24px"},children:[S.jsxs("div",{style:{textAlign:"center"},children:[S.jsx("div",{style:{fontFamily:"'Google Sans', system-ui, sans-serif",fontSize:"18px",fontWeight:700,letterSpacing:"0.02em",marginBottom:"8px",color:"var(--color-fg)"},children:h?"Onboarding Completed!":v?"Initialization Failed":"Download Model"}),S.jsx("div",{style:{fontSize:"13px",color:"var(--color-muted)",lineHeight:1.5},children:h?"All base shared resources and your selected model are ready.":m})]}),d==="idle"||v?S.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"20px",width:"100%"},children:[S.jsxs("div",{children:[S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[S.jsx("span",{className:"panel-header",style:{fontSize:"11px",letterSpacing:"0.8px"},children:"Select Model"}),u&&S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"6px"},children:[S.jsx("div",{className:"magenta-spinner",style:{color:kr}}),S.jsx("span",{style:{fontSize:"10px",color:kr,fontWeight:700,letterSpacing:"0.5px"},children:"FETCHING…"})]})]}),S.jsx(ev,{fullWidth:!0,size:"small",children:S.jsxs(mf,{value:w,onChange:E=>C(E.target.value),sx:{color:"var(--color-fg)",fontFamily:"'Google Sans Text', system-ui, sans-serif",fontSize:"13px",fontWeight:500,borderRadius:"8px",background:"var(--color-bg)","& .MuiOutlinedInput-notchedOutline":{borderColor:"var(--color-border)"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"rgba(255, 255, 255, 0.25)"},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:kr},"& .MuiSvgIcon-root":{color:"var(--color-muted)"}},MenuProps:{disablePortal:!0,PaperProps:{sx:{background:"var(--color-surface)",border:"1px solid var(--color-border)",color:"var(--color-fg)",borderRadius:"8px","& .MuiMenuItem-root":{fontFamily:"'Google Sans Text', system-ui, sans-serif",fontSize:"13px",py:1,"&.Mui-selected":{background:"rgba(113, 250, 222, 0.12)"},"&:hover":{background:"rgba(255, 255, 255, 0.05)"}}}}},children:[r.length===0&&S.jsx(Rr,{disabled:!0,value:"",children:"Fetching available models..."}),r.map(E=>S.jsx(Rr,{value:E,children:E},E))]})})]}),S.jsxs("div",{children:[S.jsx("span",{className:"panel-header",style:{fontSize:"11px",letterSpacing:"0.8px",display:"block",marginBottom:"8px"},children:"Destination Folder"}),S.jsxs("div",{style:{display:"flex",gap:"8px"},children:[S.jsx("div",{style:{flex:1,background:"var(--color-bg)",border:"1px solid var(--color-border)",borderRadius:"8px",padding:"8px 12px",fontSize:"13px",fontWeight:500,color:"var(--color-fg)",fontFamily:"'Google Sans Text', system-ui, sans-serif",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",display:"flex",alignItems:"center",lineHeight:"24px"},children:k}),S.jsxs("button",{onClick:a,style:{display:"flex",alignItems:"center",gap:"6px",color:"rgba(255, 255, 255, 0.7)",border:"1px solid var(--color-border)",borderRadius:"8px",fontSize:"11px",fontWeight:500,fontFamily:"'Google Sans', system-ui, sans-serif",textTransform:"uppercase",letterSpacing:"0.48px",padding:"8px 14px",background:"none",cursor:"pointer",whiteSpace:"nowrap",lineHeight:"24px"},onMouseEnter:E=>{E.currentTarget.style.borderColor="rgba(255, 255, 255, 0.25)",E.currentTarget.style.color="var(--color-fg)"},onMouseLeave:E=>{E.currentTarget.style.borderColor="var(--color-border)",E.currentTarget.style.color="rgba(255, 255, 255, 0.7)"},children:[S.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"18px"},children:"folder_open"}),"Browse…"]})]})]}),S.jsxs("button",{onClick:b,disabled:!w,style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",background:w?kr:"var(--color-raised)",color:w?"#121214":"var(--color-muted)",borderRadius:"8px",fontWeight:700,fontSize:"13px",fontFamily:"'Google Sans', system-ui, sans-serif",letterSpacing:"0.3px",padding:"14px 20px",border:"none",cursor:w?"pointer":"default",transition:"background 0.15s ease, color 0.15s ease",marginTop:"4px"},onMouseEnter:E=>{w&&(E.currentTarget.style.background=hg)},onMouseLeave:E=>{w&&(E.currentTarget.style.background=kr)},children:[S.jsx("span",{className:"material-symbols-outlined",style:{fontSize:"20px"},children:"cloud_download"}),"Start Download"]}),S.jsxs("div",{style:{textAlign:"center"},children:[S.jsx("span",{style:{fontSize:"11px",color:"var(--color-muted)"},children:"– or –"}),S.jsx("br",{}),S.jsx("button",{onClick:a,style:{color:kr,fontSize:"12px",fontWeight:500,fontFamily:"'Google Sans Text', system-ui, sans-serif",textDecoration:"underline",background:"none",border:"none",cursor:"pointer",padding:"4px 0",marginTop:"2px"},onMouseEnter:E=>{E.currentTarget.style.color=hg},onMouseLeave:E=>{E.currentTarget.style.color=kr},children:"select an existing model folder"})]})]}):S.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",gap:"10px"},children:[S.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[S.jsx("span",{className:"panel-header",style:{fontSize:"11px",letterSpacing:"0.8px"},children:h?"Ready to generate":"Installing components"}),!h&&S.jsxs("span",{style:{fontSize:"12px",fontWeight:700,color:kr,fontFamily:"'Google Sans Text', monospace"},children:[p,"%"]})]}),S.jsx("div",{style:{width:"100%",height:"6px",borderRadius:"3px",background:"var(--color-raised)",overflow:"hidden"},children:S.jsx("div",{style:{width:`${h?100:p}%`,height:"100%",borderRadius:"3px",background:kr,transition:"width 0.3s ease"}})})]})]})})}const gg=xi` | |
| 0% { | |
| opacity: 1; | |
| text-shadow: 0 0 4px rgba(239, 68, 68, 0.5); | |
| } | |
| 50% { | |
| opacity: 0.4; | |
| text-shadow: none; | |
| } | |
| 100% { | |
| opacity: 1; | |
| text-shadow: 0 0 4px rgba(239, 68, 68, 0.5); | |
| } | |
| `,Y2=Ce("span")({display:"inline-flex",alignItems:"center",marginLeft:"4px",cursor:"pointer",verticalAlign:"middle",color:"#ef4444",transform:"translateY(-1px)"}),q2=48e3,yg=[{value:0,samples:2048},{value:1,samples:4096},{value:2,samples:8192}],vg=t=>`${Math.round(t*1e3/q2)} ms`,Q2=5e3,X2=5e3,xg=3e3;function Z2({frameMs:t,droppedFrames:r=0,buffersize:o,onBufferChange:s,buttonSx:a={},isPlaying:u=!0,bufferLabel:d="buffer size",stacked:p=!1}){const[m,h]=x.useState(!1),[v,w]=x.useState(!1),[C,T]=x.useState(!1),k=x.useRef(r),b=x.useRef(null),E=x.useRef(0),$=x.useRef(),j=x.useRef(),P=400;x.useEffect(()=>{if(r<=k.current||(k.current=r,!u||v))return;const B=Date.now();(b.current===null||B-E.current>P)&&(b.current=B),E.current=B;const g=B-b.current;console.log(`[TimingIndicator] Dropout! Total: ${r}. Run: ${g}ms / ${xg}ms`),g>=xg&&!m&&(console.log("[TimingIndicator] 🔥 WARNING TRIGGERED!"),h(!0),b.current=null,clearTimeout($.current),$.current=setTimeout(()=>{h(!1),console.log("[TimingIndicator] Warning hold expired.")},Q2))},[r,u,v,m]),x.useEffect(()=>{u||(b.current=null,h(!1),clearTimeout($.current))},[u]),x.useEffect(()=>()=>{clearTimeout($.current),clearTimeout(j.current)},[]);const R=m&&!v,M=R&&!C;x.useEffect(()=>{console.log(`[TimingIndicator] showWarning transitioned to: ${R} (warningVisible: ${m}, isCooldownActive: ${v})`)},[R,m,v]);const O=yg.find(B=>B.value===o),F=O?vg(O.samples):"43 ms",D=B=>{s&&(s(B),h(!1),w(!0),clearTimeout(j.current),j.current=setTimeout(()=>{w(!1)},X2))};return t<=0?null:S.jsxs("div",{style:{display:"flex",flexDirection:p?"column":"row",gap:p?"2px":"6px",alignItems:p?"flex-start":"baseline",userSelect:"none"},children:[S.jsxs("span",{style:{fontFamily:'"Google Sans Text", system-ui, sans-serif',fontSize:"11px",fontWeight:500,letterSpacing:"0.5px",textTransform:"uppercase",color:R?"#ef4444":"inherit",opacity:R?1:.7,animation:R?`${gg} 1.5s infinite ease-in-out`:"none",transition:"color 0.3s ease",display:"inline-block",verticalAlign:"baseline",marginLeft:p?"12px":"0px",paddingRight:p?"2.2ch":"0px"},children:["FRAME: ",S.jsx("span",{style:{display:"inline-block",width:p?"3.6ch":"2.8ch",lineHeight:1.3,verticalAlign:"baseline",textAlign:"right",paddingRight:"2px"},children:Math.round(t/40*100)}),"%",S.jsx(di,{open:M,title:"Inference time is high. Increase the buffer size to prevent audio dropouts.",arrow:!0,placement:"top",enterTouchDelay:0,leaveTouchDelay:1500,slotProps:{tooltip:{sx:{border:"1px solid #374151",maxWidth:"220px",boxShadow:"0 10px 15px -3px rgba(0, 0, 0, 0.5)"}}},children:S.jsx(Y2,{style:{opacity:R?1:0,pointerEvents:R?"auto":"none"},children:S.jsx(Uk,{style:{width:"13px",height:"13px"}})})})]}),s&&S.jsx(sf,{id:"buffer-size-button",onOpenChange:T,label:S.jsxs(S.Fragment,{children:[d,": ",S.jsx("span",{style:{display:"inline-block",width:"6.5ch",textAlign:"right"},children:F})]}),buttonSx:{px:1.5,fontFamily:'"Google Sans Text", system-ui, sans-serif',fontSize:"11px",fontWeight:500,letterSpacing:"0.5px",textTransform:"uppercase",color:R?"#ef4444":"inherit",opacity:R?1:.7,animation:R?`${gg} 1.5s infinite ease-in-out`:"none",transition:"color 0.3s ease","& .MuiButton-endIcon":{marginLeft:"3px"},...a},menuSx:{minWidth:"100px"},children:yg.map(B=>S.jsx(Rr,{selected:o===B.value,onClick:()=>D(B.value),children:vg(B.samples)},B.value))})]})}const aa=225,Sg=270;function bd(t,r,o,s){const a=(s-90)*Math.PI/180;return{x:t+o*Math.cos(a),y:r+o*Math.sin(a)}}function wg(t,r,o,s,a){const u=bd(t,r,o,a),d=bd(t,r,o,s),m=a-s>180?1:0;return`M ${u.x} ${u.y} A ${o} ${o} 0 ${m} 0 ${d.x} ${d.y}`}function J2(t,r){return Math.round(t/r)*r}function eE(t,r){if(r>=1)return Math.round(t).toString();const o=Math.max(0,-Math.floor(Math.log10(r)));return t.toFixed(o)}function gs({label:t,tooltip:r,value:o,min:s,max:a,step:u,onChange:d,size:p=80,labelFontSize:m=12,accentColor:h="#71fade"}){const[v,w]=x.useState(o),C=x.useRef(null);x.useEffect(()=>{C.current||w(o)},[o]);const T=x.useCallback(g=>{g.preventDefault(),g.target.setPointerCapture(g.pointerId),C.current={startY:g.clientY,startVal:v},document.body.classList.add("dragging-vertical")},[v]),k=x.useCallback(g=>{if(!C.current)return;const N=C.current.startY-g.clientY,V=200,G=a-s,te=C.current.startVal+N/V*G,Q=Math.max(s,Math.min(a,te)),U=J2(Q,u);w(U),d==null||d(U)},[s,a,u,d]),b=x.useCallback(()=>{C.current=null,document.body.classList.remove("dragging-vertical")},[]),E=(v-s)/(a-s),$=80,j=$/2,P=$/2,R=31.5,M=19.5,O=2,F=2,D=aa+Sg*E,B=bd(j,P,M-2,D);return S.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"center",gap:"8px"},children:[S.jsxs("svg",{width:p,height:p,viewBox:`0 0 ${$} ${$}`,style:{touchAction:"none",flexShrink:0},children:[S.jsx("path",{d:wg(j,P,R,aa,aa+Sg),fill:"none",stroke:"#373737",strokeWidth:O,strokeLinecap:"round",style:{pointerEvents:"none"}}),E>.005&&S.jsx("path",{d:wg(j,P,R,aa,D),fill:"none",stroke:h,strokeWidth:O,strokeLinecap:"round",style:{pointerEvents:"none"}}),S.jsx("circle",{cx:j,cy:P,r:M,fill:"none",stroke:"#373737",strokeWidth:F,style:{pointerEvents:"none"}}),S.jsx("line",{x1:j,y1:P,x2:B.x,y2:B.y,stroke:"#FFF",strokeWidth:2,strokeLinecap:"round",style:{pointerEvents:"none"}}),S.jsx("circle",{cx:j,cy:P,r:R+5,fill:"transparent",stroke:"transparent",strokeWidth:1,onPointerDown:T,onPointerMove:k,onPointerUp:b,style:{cursor:"grab",pointerEvents:"auto"}})]}),S.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"4px"},children:[S.jsx("span",{style:{color:"#FFF",opacity:.7,fontFamily:"'Google Sans', sans-serif",fontSize:`${m}px`,fontWeight:500,lineHeight:"normal",letterSpacing:"0.56px",whiteSpace:"nowrap"},children:t}),r&&S.jsx(di,{title:r,arrow:!0,placement:"top",children:S.jsx(Hy,{sx:{fontSize:"13px",opacity:.3,cursor:"help",color:"#FFF"}})})]}),S.jsx("span",{style:{color:h,fontFamily:"'Google Sans', sans-serif",fontSize:"14px",fontWeight:600,lineHeight:"normal"},children:eE(v,u)})]})]})}const Yc=0,qc=5;function tE({temperature:t,topk:r,cfgnotes:o,cfgmusiccoca:s,cfgdrums:a,unmaskwidth:u,onParamChange:d,onResetDefaults:p,columns:m=3,showNoteCfg:h=!0,showPromptCfg:v=!0,showDrumsCfg:w=!0,showUnmaskWidth:C=!0,showMute:T=!1,mute:k=!1,showBypass:b=!1,bypass:E=!1,showDelayComp:$=!1,latencycomp:j=!1,showMidiGate:P=!1,midigate:R=!1,showOnsetMode:M=!1,onsetmode:O=!1,drumless:F=!1,showDrumless:D=!0,labelFontSize:B=14,knobGap:g=36,knobSize:N=64}){const V=`calc((100% - ${(m-1)*g}px) / ${m})`,G=[],te=[];C&&G.push({label:"Solo",checked:u===127,addr:7,onValue:127,offValue:4,tooltip:"Encourages the model to only play the input notes, and not add accompaniment."}),D&&G.push({label:"No Drums",checked:F,addr:39,onValue:1,offValue:0,tooltip:"Encourages the model to not play drums."}),M&&G.push({label:"Auto-Strum",checked:!O,addr:46,onValue:0,offValue:1,tooltip:"Allows the model to continuously retrigger (e.g. strum, bow, or arpeggiate) when notes are held."}),P&&te.push({label:"MIDI Gate",checked:R,addr:45,onValue:1,offValue:0,tooltip:"Gates the output so the model only makes sound when keys are pressed. When enabled, the plugin will mute when you release all notes."}),T&&te.push({label:"Mute",checked:k,addr:6,onValue:1,offValue:0}),b&&te.push({label:"Bypass",checked:E,addr:32,onValue:1,offValue:0}),$&&te.push({label:"Delay Comp",checked:j,addr:9,onValue:1,offValue:0,tooltip:"Reports the plugin's internal buffering latency to your DAW. When enabled, your host DAW will automatically shift all other project tracks to keep the AI's generation in perfect sync with the grid."});const Q=G.length>0||te.length>0;return S.jsxs("div",{style:{display:"flex",flexDirection:"column",color:"#FFF",height:"100%",flex:1},children:[S.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:S.jsxs("div",{style:{display:"flex",flexWrap:"wrap",gap:`${g}px`,justifyContent:"center"},children:[S.jsx("div",{style:{width:V},children:S.jsx(gs,{label:"Temperature",tooltip:"Scales the unpredictability of the generated music. Lower values keep the output focused and conservative, while higher values make it more adventurous",value:t,min:0,max:3,step:.01,onChange:U=>d(0,U),labelFontSize:B,size:N})}),S.jsx("div",{style:{width:V},children:S.jsx(gs,{label:"Top-K Sampling",tooltip:"Restricts the model to choosing from the 'K' most likely next audio tokens. Lower numbers keep the music safe and predictable; higher numbers allow for more unexpected, diverse choices.",value:r,min:1,max:1024,step:1,onChange:U=>d(1,U),labelFontSize:B,size:N})}),v&&S.jsx("div",{style:{width:V},children:S.jsx(gs,{label:"Prompt Strength",tooltip:"Controls how strongly the model follows your style prompts. Higher values stick closely to the prompt but may reduce audio quality, while lower values prioritize musicality over strict accuracy.",value:s,min:Yc,max:qc,step:.1,onChange:U=>d(3,U),labelFontSize:B,size:N})}),h&&S.jsx("div",{style:{width:V},children:S.jsx(gs,{label:"Note Strength",tooltip:"Controls how strongly the model adheres to your input notes. Higher values force strict compliance, while lower values allow the model more creative drift.",value:o,min:Yc,max:qc,step:.1,onChange:U=>d(4,U),labelFontSize:B,size:N})}),w&&S.jsx("div",{style:{width:V},children:S.jsx(gs,{label:"Drums Adherence",tooltip:"Controls how strongly the model adheres to your drum guidelines. Higher values force strict compliance, while lower values allow the model more creative drift",value:a,min:Yc,max:qc,step:.1,onChange:U=>d(48,U),labelFontSize:B,size:N})})]})}),Q&&S.jsxs("div",{style:{marginTop:"18px",display:"flex",padding:"18px",paddingBottom:"12px",gap:"24px"},children:[S.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"20px"},children:G.map(U=>S.jsx(Gh,{label:U.label,checked:U.checked,onChange:J=>{U.addr!==-1&&d(U.addr,J?U.onValue:U.offValue)},tooltip:U.tooltip,labelFontSize:B},U.label))}),te.length>0&&S.jsx("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:"20px"},children:te.map(U=>S.jsx(Gh,{label:U.label,checked:U.checked,onChange:J=>{U.addr!==-1&&d(U.addr,J?U.onValue:U.offValue)},tooltip:U.tooltip,labelFontSize:B},U.label))})]}),S.jsx("div",{style:{marginTop:"auto",paddingTop:"16px",display:"flex",justifyContent:"center",flexShrink:0},children:S.jsx(Gy,{onClick:p,sx:{px:3,py:.6,borderRadius:"20px",fontSize:"11px",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.8px",background:"rgba(255, 255, 255, 0.05)",border:"1px solid rgba(255, 255, 255, 0.08)",color:"rgba(255, 255, 255, 0.7)","&:hover":{background:"rgba(255, 255, 255, 0.1)",color:"#FFF",borderColor:"rgba(255, 255, 255, 0.18)"}},children:"Restore Defaults"})})]})}function nE({open:t,onClose:r,columns:o=2,...s}){return S.jsxs(S.Fragment,{children:[S.jsx("div",{className:`settings-backdrop${t?" open":""}`,onClick:r}),S.jsxs("div",{className:`settings-panel${t?" open":""}`,style:{display:"flex",flexDirection:"column"},children:[S.jsxs("div",{className:"app-header-bar",style:{justifyContent:"space-between",flexShrink:0},children:[S.jsx("span",{style:{color:"#FFF",fontFamily:'"Google Sans"',fontSize:"16px",fontWeight:500,letterSpacing:"0.96px",textTransform:"uppercase"},children:"SETTINGS"}),S.jsx(vn,{onClick:r,variant:"ghost",sx:{width:40,height:40},children:S.jsx("span",{className:"material-icons",style:{fontSize:"20px"},children:"close"})})]}),S.jsxs("div",{style:{padding:"0 var(--app-padding) var(--app-padding)",flex:1,display:"flex",flexDirection:"column"},children:[S.jsx(tE,{...s,columns:o}),S.jsxs("div",{style:{marginTop:"auto",paddingTop:"20px",textAlign:"center",fontSize:"10px",opacity:.25,fontFamily:"'Google Sans Text', system-ui, sans-serif",letterSpacing:"0.5px",color:"#FFF",userSelect:"none"},children:["Build: ","b011caa"]})]})]})]})}function rE(t){var r,o,s;(s=(o=(r=window.webkit)==null?void 0:r.messageHandlers)==null?void 0:o.auHost)==null||s.postMessage(t)}function oE(){const[t,r]=x.useState(120),[o,s]=x.useState(120),[a,u]=x.useState(!1);x.useEffect(()=>{const p=m=>{const h=m.detail||{};h.len!==void 0&&r(h.len),h.remaining!==void 0&&s(h.remaining),h.playing!==void 0&&u(h.playing)};return window.addEventListener("mrt-gpu",p),()=>window.removeEventListener("mrt-gpu",p)},[]);const d=p=>(p=Math.max(0,Math.floor(p)),Math.floor(p/60)+":"+String(p%60).padStart(2,"0"));return S.jsxs("div",{title:"ZeroGPU session length (1-4 min)",style:{display:"flex",alignItems:"center",gap:"8px",padding:"6px 12px",borderRadius:"999px",background:"var(--color-raised, #36373a)",fontFamily:"'Google Sans Text', system-ui",fontSize:"12px",fontWeight:500,color:"rgba(255,255,255,0.85)",whiteSpace:"nowrap",flexShrink:0},children:[S.jsx("span",{style:{color:"#FFC23C",fontSize:"14px",lineHeight:1},children:"⚡"}),S.jsx("input",{type:"range",min:60,max:240,step:30,value:t,disabled:a,onChange:p=>{const m=+p.target.value;r(m),rE({type:"gpuSession",value:m})},style:{width:"74px",accentColor:"#FFC23C",cursor:"pointer",opacity:a?.4:1}}),S.jsx("span",{style:{minWidth:"30px",fontVariantNumeric:"tabular-nums",color:a&&o<30?"#FF4C8D":"rgba(255,255,255,0.85)"},children:d(a?o:t)})]})}const iE="#84F3ED",sE="#81D5FA",lE="#7FB2FF",aE="#7C89FF",uE="#AE5CFF",cE="#FF70F9",dE="#FF4C8D",fE="#FFC23C",Rs=[lE,dE,fE,iE,uE,aE,cE,sE],bg=1.1,Cg=50,Qc=1.6,ua=2.4,kg=4,Eg=0,Rg=0,pE=0,Tg=new Set([1,3,6,8,10]),Pg={0:"A",1:"W",2:"S",3:"E",4:"D",5:"F",6:"T",7:"G",8:"Y",9:"H",10:"U",11:"J",12:"K",13:"O",14:"L",15:"P",16:";"};function mE({activeNotes:t,accentColor:r,startNote:o=60,endNote:s=76,keyboardMidiEnabled:a=!1,onNoteOn:u,onNoteOff:d,whiteKeyColor:p="#FAFAFA",blackKeyColor:m="#000"}){const h=new Set(t),v=x.useRef(null),w=x.useRef(null),C=x.useCallback((O,F)=>{var B;const D=document.elementsFromPoint(O,F);for(const g of D){const N=(B=g.dataset)==null?void 0:B.note;if(N!==void 0)return parseInt(N,10)}return null},[]),T=x.useCallback(O=>{O.preventDefault(),O.currentTarget.setPointerCapture(O.pointerId);const F=C(O.clientX,O.clientY);F!==null&&(w.current=F,u==null||u(F))},[u,C]),k=x.useCallback(O=>{if(w.current===null)return;const F=C(O.clientX,O.clientY);F!==null&&F!==w.current&&(d==null||d(w.current),w.current=F,u==null||u(F))},[u,d,C]),b=x.useCallback(()=>{w.current!==null&&(d==null||d(w.current),w.current=null)},[d]),E=[];let $=0;for(let O=o;O<=s;O++)if(!Tg.has(O%12)){const F=O-o,D=Pg[F];E.push({note:O,label:D,whiteIdx:$}),$++}const j=$,P=[];for(let O=o;O<=s;O++)if(Tg.has(O%12)){const F=O-1,D=E.find(B=>B.note===F);if(D){const B=D.whiteIdx,g=`((100% - ${(j-1)*3}px) / ${j})`,N=`calc(${B+1} * ${g} + ${B} * 3px + 1.5px - (${g} * 0.7 / 2))`,V=O-o,G=Pg[V];P.push({note:O,label:G,leftExpr:N})}}const R=`((100% - ${(j-1)*3}px) / ${j})`;return S.jsxs("div",{ref:v,onPointerDown:T,onPointerMove:k,onPointerUp:b,onPointerCancel:b,style:{position:"relative",width:"100%",height:"100%",display:"flex",gap:"3px",userSelect:"none",WebkitUserSelect:"none",touchAction:"none"},children:[E.map(O=>{const F=h.has(O.note);return S.jsxs("div",{className:"white-key","data-note":O.note,style:{flex:1,height:"100%",backgroundColor:F?r:p,borderRadius:"5px",display:"flex",alignItems:"flex-end",justifyContent:"center",paddingBottom:"30px",boxSizing:"border-box",cursor:"pointer",position:"relative",overflow:"hidden"},children:[S.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"14px",backgroundColor:"rgba(0, 0, 0, 0.54)",pointerEvents:"none"}}),a&&O.label&&S.jsx("span",{style:{fontFamily:"'Google Sans', system-ui, sans-serif",fontSize:"20px",fontWeight:400,color:m,userSelect:"none",pointerEvents:"none"},children:O.label})]},O.note)}),P.map(O=>{const F=h.has(O.note);return S.jsxs("div",{className:"black-key","data-note":O.note,style:{position:"absolute",top:0,left:O.leftExpr,width:`calc(${R} * 0.7)`,height:"60%",backgroundColor:F?r:m,borderBottomLeftRadius:"6px",borderBottomRightRadius:"6px",display:"flex",alignItems:"flex-end",justifyContent:"center",paddingBottom:"12px",boxSizing:"border-box",boxShadow:"0 4px 8px rgba(0, 0, 0, 0.4)",zIndex:2,cursor:"pointer",overflow:"hidden"},children:[S.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:"5.5px",backgroundColor:"rgba(34, 126, 230, 0.26)",pointerEvents:"none"}}),a&&O.label&&S.jsx("span",{style:{fontFamily:"'Google Sans', system-ui, sans-serif",fontSize:"20px",fontWeight:400,color:F?m:p,userSelect:"none",pointerEvents:"none"},children:O.label})]},O.note)})]})}const ko=24,ca=24;function Xc({label:t,value:r,min:o,max:s,step:a=.1,onChange:u,showValueOnThumb:d=!1,valueFormatter:p}){const m=x.useRef(null),[h,v]=x.useState(!1),w=x.useCallback(j=>{const P=m.current;if(!P)return;const R=P.getBoundingClientRect(),M=ko/2,O=ko/2,F=R.height-M-O,D=j-R.top-M,B=Math.max(0,Math.min(1,1-D/F)),g=o+B*(s-o),N=Math.round(g/a)*a,V=parseFloat(Math.max(o,Math.min(s,N)).toFixed(2));u(V)},[o,s,a,u]);x.useEffect(()=>()=>{document.body.classList.remove("dragging-vertical","cursor-none","cursor-grabbing")},[]);const C=j=>{j.preventDefault(),j.currentTarget.setPointerCapture(j.pointerId),v(!0);const P=d?"cursor-none":"cursor-grabbing";document.body.classList.add(P),w(j.clientY)},T=j=>{h&&w(j.clientY)},k=()=>{v(!1),document.body.classList.remove("dragging-vertical","cursor-none","cursor-grabbing")},b=(r-o)/(s-o)*100,E=`calc(${b}% - (${b/100} * ${ko}px))`,$=`calc(${b}% - (${b/100} * ${ko}px) + ${ko/2+2}px)`;return S.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",width:"64px",userSelect:"none",WebkitUserSelect:"none"},children:[S.jsxs("div",{ref:m,style:{position:"relative",width:`${ca}px`,flex:"1 1 0px",minHeight:"30px"},children:[S.jsx("div",{style:{position:"absolute",inset:0,background:"rgba(26, 26, 29, 0.10)",borderRadius:`${ca/2}px`,pointerEvents:"none"}}),S.jsx("div",{style:{position:"absolute",bottom:0,left:0,right:0,height:$,background:"#1A1A1D",borderRadius:`0 0 ${ca/2}px ${ca/2}px`,pointerEvents:"none"}}),S.jsx("div",{style:{position:"absolute",bottom:E,left:"50%",transform:"translateX(-50%)",width:`${ko}px`,height:`${ko}px`,borderRadius:"50%",background:"#FFF",boxShadow:"0 2px 6px rgba(0, 0, 0, 0.25)",pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center"},children:d&&S.jsx("span",{style:{fontWeight:800,textAlign:"center",fontSize:"10px",color:"#000"},children:p?p(r):r.toString()})}),S.jsx("div",{onPointerDown:C,onPointerMove:T,onPointerUp:k,onPointerCancel:k,style:{position:"absolute",top:0,bottom:0,left:"50%",transform:"translateX(-50%)",width:"calc(100% + 40px)",cursor:"grab",touchAction:"none"}})]}),S.jsx("span",{style:{marginTop:"12px",flexShrink:0,fontFamily:"'Google Sans Text', system-ui, sans-serif",fontSize:"11px",fontWeight:500,color:"#1B1C17",userSelect:"none",lineHeight:"1"},children:t})]})}const ys=30,hE=64,gE=40,Mg=24,yE=16,Ig=2,vE=.2,xE=.002;function Og(t,r,o,s){return t<=.5?r+(o-r)*(t/.5):o+(s-o)*((t-.5)/.5)}function SE({label:t,minA:r,midA:o,maxA:s,minB:a,midB:u,maxB:d,onChange:p,accentColor:m="#FFF"}){const h=x.useRef(null),[v,w]=x.useState(.5),[C,T]=x.useState(!1),k=x.useRef(null),b=x.useRef(.5);b.current=v;const E=x.useCallback(D=>{const B=Og(D,r,o,s),g=Og(D,a,u,d);p(B,g)},[r,o,s,a,u,d,p]),$=x.useCallback(D=>{const B=h.current;if(!B)return;const g=B.getBoundingClientRect(),N=ys/2,V=ys/2,G=g.height-N-V,te=D-g.top-N,Q=Math.max(0,Math.min(1,1-te/G));w(Q),E(Q)},[E]),j=x.useCallback(()=>{k.current&&cancelAnimationFrame(k.current);const D=()=>{const B=b.current,g=.5-B;if(Math.abs(g)<xE){w(.5),E(.5),k.current=null;return}const N=B+g*vE;w(N),b.current=N,E(N),k.current=requestAnimationFrame(D)};k.current=requestAnimationFrame(D)},[E]);x.useEffect(()=>()=>{document.body.classList.remove("dragging-vertical"),k.current&&cancelAnimationFrame(k.current)},[]);const P=D=>{D.preventDefault(),D.currentTarget.setPointerCapture(D.pointerId),k.current&&(cancelAnimationFrame(k.current),k.current=null),T(!0),document.body.classList.add("dragging-vertical"),$(D.clientY)},R=D=>{C&&$(D.clientY)},M=()=>{T(!1),document.body.classList.remove("dragging-vertical"),j()},O=v*100,F=`calc(${O}% - (${O/100} * ${ys}px))`;return S.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",height:"100%",width:"100%",userSelect:"none",WebkitUserSelect:"none"},children:[S.jsxs("div",{ref:h,style:{position:"relative",width:`${gE}px`,flex:"1 1 0px",minHeight:"30px"},children:[S.jsx("div",{style:{position:"absolute",inset:0,background:"#1A1A1D",borderRadius:"12px",pointerEvents:"none",overflow:"hidden"},children:S.jsx("div",{style:{position:"absolute",top:"-50%",bottom:"-50%",left:0,right:0,transform:`translateY(calc(${.5-v} * (50% - ${ys}px)))`,backgroundImage:`repeating-linear-gradient( | |
| to bottom, | |
| rgba(255, 255, 255, 0.12) 0px, | |
| rgba(255, 255, 255, 0.12) ${Ig}px, | |
| transparent ${Ig}px, | |
| transparent ${Mg}px | |
| )`,backgroundSize:`${yE}px ${Mg}px`,backgroundPosition:"center",backgroundRepeat:"repeat-y"}})}),S.jsx("div",{style:{position:"absolute",inset:0,borderRadius:"12px",background:"linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%)",pointerEvents:"none"}}),S.jsx("div",{style:{position:"absolute",bottom:F,left:"50%",transform:"translateX(-50%)",width:`${hE}px`,height:`${ys}px`,borderRadius:"10px",background:"#36373A",border:"1px solid rgba(255, 255, 255, 0.08)",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.4)",display:"flex",alignItems:"center",justifyContent:"center",pointerEvents:"none"},children:S.jsx("div",{style:{width:"32px",height:"3px",borderRadius:"1.5px",background:m}})}),S.jsx("div",{onPointerDown:P,onPointerMove:R,onPointerUp:M,onPointerCancel:M,style:{position:"absolute",top:0,bottom:0,left:"50%",transform:"translateX(-50%)",width:"calc(100% + 24px)",cursor:"grab",touchAction:"none"}}),S.jsx("svg",{viewBox:"0 0 10 100",preserveAspectRatio:"none",style:{position:"absolute",top:0,bottom:0,left:"calc(100% + 12px)",width:"10px",height:"100%",pointerEvents:"none"},children:S.jsx("polygon",{points:"0,0 10,0 5,100",fill:"rgba(26, 26, 29, 0.25)"})})]}),S.jsx("span",{style:{marginTop:"12px",flexShrink:0,fontFamily:"'Google Sans Text', system-ui, sans-serif",fontSize:"11px",fontWeight:500,color:"#1B1C17",userSelect:"none",lineHeight:"1"},children:t})]})}function wE(t){return pt("MuiFormHelperText",t)}const $g=rt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ag;const bE=t=>{const{classes:r,contained:o,size:s,disabled:a,error:u,filled:d,focused:p,required:m}=t,h={root:["root",a&&"disabled",u&&"error",s&&`size${$e(s)}`,o&&"contained",p&&"focused",d&&"filled",m&&"required"]};return mt(h,wE,r)},CE=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.size&&r[`size${$e(o.size)}`],o.contained&&r.contained,o.filled&&r.filled]}})(yt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${$g.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${$g.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),kE=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiFormHelperText"}),{children:a,className:u,component:d="p",disabled:p,error:m,filled:h,focused:v,margin:w,required:C,variant:T,...k}=s,b=Ci(),E=bi({props:s,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),$={...s,component:d,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete $.ownerState;const j=bE($);return S.jsx(CE,{as:d,className:Ne(j.root,u),ref:o,...k,ownerState:$,children:a===" "?Ag||(Ag=S.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):a})});function EE(t){return pt("MuiFormLabel",t)}const Ts=rt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),RE=t=>{const{classes:r,color:o,focused:s,disabled:a,error:u,filled:d,required:p}=t,m={root:["root",`color${$e(o)}`,a&&"disabled",u&&"error",d&&"filled",s&&"focused",p&&"required"],asterisk:["asterisk",u&&"error"]};return mt(m,EE,r)},TE=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.color==="secondary"&&r.colorSecondary,o.filled&&r.filled]}})(yt(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(to()).map(([r])=>({props:{color:r},style:{[`&.${Ts.focused}`]:{color:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Ts.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Ts.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),PE=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,r)=>r.asterisk})(yt(({theme:t})=>({[`&.${Ts.error}`]:{color:(t.vars||t).palette.error.main}}))),ME=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiFormLabel"}),{children:a,className:u,color:d,component:p="label",disabled:m,error:h,filled:v,focused:w,required:C,...T}=s,k=Ci(),b=bi({props:s,muiFormControl:k,states:["color","required","focused","disabled","error","filled"]}),E={...s,color:b.color||"primary",component:p,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},$=RE(E);return S.jsxs(TE,{as:p,ownerState:E,className:Ne($.root,u),ref:o,...T,children:[a,b.required&&S.jsxs(PE,{ownerState:E,"aria-hidden":!0,className:$.asterisk,children:[" ","*"]})]})});function IE(t){return pt("MuiInputLabel",t)}rt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const OE=t=>{const{classes:r,formControl:o,size:s,shrink:a,disableAnimation:u,variant:d,required:p}=t,m={root:["root",o&&"formControl",!u&&"animated",a&&"shrink",s&&s!=="normal"&&`size${$e(s)}`,d],asterisk:[p&&"asterisk"]},h=mt(m,IE,r);return{...r,...h}},$E=Ce(ME,{shouldForwardProp:t=>zn(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[{[`& .${Ts.asterisk}`]:r.asterisk},r.root,o.formControl&&r.formControl,o.size==="small"&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,o.focused&&r.focused,r[o.variant]]}})(yt(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:o})=>r==="filled"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:o,size:s})=>r==="filled"&&o.shrink&&s==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:o})=>r==="outlined"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),AE=x.forwardRef(function(r,o){const s=vt({name:"MuiInputLabel",props:r}),{disableAnimation:a=!1,margin:u,shrink:d,variant:p,className:m,...h}=s,v=Ci();let w=d;typeof w>"u"&&v&&(w=v.filled||v.focused||v.adornedStart);const C=bi({props:s,muiFormControl:v,states:["size","variant","required","focused"]}),T={...s,disableAnimation:a,formControl:v,shrink:w,size:C.size,variant:C.variant,required:C.required,focused:C.focused},k=OE(T);return S.jsx($E,{"data-shrink":w,ref:o,className:Ne(k.root,m),...h,ownerState:T,classes:k})});function jE(t){return pt("MuiTextField",t)}rt("MuiTextField",["root"]);const LE={standard:cf,filled:df,outlined:ff},FE=t=>{const{classes:r}=t;return mt({root:["root"]},jE,r)},NE=Ce(ev,{name:"MuiTextField",slot:"Root",overridesResolver:(t,r)=>r.root})({}),zE=x.forwardRef(function(r,o){const s=vt({props:r,name:"MuiTextField"}),{autoComplete:a,autoFocus:u=!1,children:d,className:p,color:m="primary",defaultValue:h,disabled:v=!1,error:w=!1,FormHelperTextProps:C,fullWidth:T=!1,helperText:k,id:b,InputLabelProps:E,inputProps:$,InputProps:j,inputRef:P,label:R,maxRows:M,minRows:O,multiline:F=!1,name:D,onBlur:B,onChange:g,onFocus:N,placeholder:V,required:G=!1,rows:te,select:Q=!1,SelectProps:U,slots:J={},slotProps:X={},type:K,value:ee,variant:A="outlined",...Y}=s,le={...s,autoFocus:u,color:m,disabled:v,error:w,fullWidth:T,multiline:F,required:G,select:Q,variant:A},ie=FE(le),ae=Si(b),de=k&&ae?`${ae}-helper-text`:void 0,xe=R&&ae?`${ae}-label`:void 0,ge=LE[A],ye={slots:J,slotProps:{input:j,inputLabel:E,htmlInput:$,formHelperText:C,select:U,...X}},me={},ke=ye.slotProps.inputLabel;A==="outlined"&&(ke&&typeof ke.shrink<"u"&&(me.notched=ke.shrink),me.label=R),Q&&((!U||!U.native)&&(me.id=void 0),me["aria-describedby"]=void 0);const[be,Le]=Nt("root",{elementType:NE,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...Y},ownerState:le,className:Ne(ie.root,p),ref:o,additionalProps:{disabled:v,error:w,fullWidth:T,required:G,color:m,variant:A}}),[Ee,Be]=Nt("input",{elementType:ge,externalForwardedProps:ye,additionalProps:me,ownerState:le}),[et,Ve]=Nt("inputLabel",{elementType:AE,externalForwardedProps:ye,ownerState:le}),[Ie,it]=Nt("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:le}),[ze,_e]=Nt("formHelperText",{elementType:kE,externalForwardedProps:ye,ownerState:le}),[pe,wt]=Nt("select",{elementType:mf,externalForwardedProps:ye,ownerState:le}),Qe=S.jsx(Ee,{"aria-describedby":de,autoComplete:a,autoFocus:u,defaultValue:h,fullWidth:T,multiline:F,name:D,rows:te,maxRows:M,minRows:O,type:K,value:ee,id:ae,inputRef:P,onBlur:B,onChange:g,onFocus:N,placeholder:V,inputProps:it,slots:{input:J.htmlInput?Ie:void 0},...Be});return S.jsxs(be,{...Le,children:[R!=null&&R!==""&&S.jsx(et,{htmlFor:ae,id:xe,...Ve,children:R}),Q?S.jsx(pe,{"aria-describedby":de,id:ae,labelId:xe,value:ee,input:Qe,...wt,children:d}):Qe,k&&S.jsx(ze,{id:de,..._e,children:k})]})}),at=t=>{var r,o,s;return(s=(o=(r=window.webkit)==null?void 0:r.messageHandlers)==null?void 0:o.auHost)==null?void 0:s.postMessage(t)},_E={a:0,w:1,s:2,e:3,d:4,f:5,t:6,g:7,y:8,h:9,u:10,j:11,k:12,o:13,l:14,p:15,";":16},da=60,DE=3e4,jg=0,Lg=5,BE="435px",vs=t=>{if(!t)return Rs[0];const r=t.charCodeAt(0),o=Math.abs(r)%Rs.length;return Rs[o]};function WE(){var ao;const[t,r]=x.useState({frameMs:0,bufferAvail:0,bufferCap:0,textEncoderStatus:0,droppedFrames:0}),[o,s]=x.useState({left:0,right:0}),[a,u]=x.useState("No model loaded"),[d,p]=x.useState(!1),[m,h]=x.useState([]),[v,w]=x.useState(0),[C,T]=x.useState([]),[k,b]=x.useState([]),[E,$]=x.useState(null),[j,P]=x.useState("~/Documents/Magenta/magenta-rt-v2/models"),[R,M]=x.useState(!1),[O,F]=x.useState(null),[D,B]=x.useState(!0),[g,N]=x.useState(!1),[V,G]=x.useState({temperature:bg,topk:Cg,cfgnotes:ua,cfgnotesuser:ua,cfgmusiccoca:Qc,cfgdrums:kg,unmaskwidth:Eg,buffersize:Rg,volume:pE,drumless:!1,onsetmode:!1}),[te,Q]=x.useState(""),[U,J]=x.useState(!1),[X,K]=x.useState(!1),ee=x.useRef(""),A=x.useRef(null),[Y,le]=x.useState(()=>Rs[Math.floor(Math.random()*Rs.length)]),[ie,ae]=x.useState(!1),de=x.useRef(!1),[xe,ge]=x.useState({}),[ye,me]=x.useState({}),ke=x.useCallback(_=>_?wd:Sd,[]),be=x.useCallback(_=>_?xe:ye,[xe,ye]),[Le,Ee]=x.useState(0),Be=x.useRef(!1);x.useEffect(()=>{Be.current&&at({type:"saveRockerIndex",value:Le})},[Le]);const et=x.useCallback(_=>{const ce=ke(_),De=be(_);return ce.map((Ge,Fe)=>Fe in De?De[Fe]:Ge)},[ke,be]),Ve=x.useCallback((_,ce)=>{const De=_[ce];De&&(X&&at({type:"clearAudioPrompt"}),Q(De),le(vs(De)),Rt(De,!0),J(!1))},[X]),Ie=x.useCallback(_=>{const ce=et(ie);if(ce.length===0)return;let De=Le+_;De<0?De=ce.length-1:De>=ce.length&&(De=0),Ve(ce,De),Ee(De)},[ie,Le,et,Ve]),it=x.useCallback(()=>Ie(-1),[Ie]),ze=x.useCallback(()=>Ie(1),[Ie]),_e=x.useCallback((_,ce)=>{at({type:"saveUserPresets",solo:_,jam:ce})},[]),pe=x.useCallback(()=>{const _=te.trim();if(!_)return;(ie?ge:me)(De=>{const Ge={...De,[Le]:_};return ie?_e(Ge,ye):_e(xe,Ge),J(!1),Ge})},[te,ie,Le,xe,ye,_e]),wt=_=>{ae(_),at({type:"setSoloMode",value:_}),st(7,_?127:0),G(De=>({...De,unmaskwidth:_?127:0}));const ce=et(_);if(ce.length>0){const De=ce[0];Ee(0),Q(De),le(vs(De)),X&&at({type:"clearAudioPrompt"}),K(!1),Rt(De,!0,_)}J(!1)},[Qe,zt]=x.useState([]),[jt,Et]=x.useState(0),Ue=x.useCallback(()=>{Et(_=>{const ce=Math.max(-4,_-1);return Ye.current=da+ce*12,ce})},[]),Ke=x.useCallback(()=>{Et(_=>{const ce=Math.min(4,_+1);return Ye.current=da+ce*12,ce})},[]),[Ae,Pe]=x.useState(!1),Ye=x.useRef(da),He=x.useRef(new Map);Ae||(ao=Qe.find(_=>_.connected))==null||ao.endpoint;const bt=x.useRef(null),we=x.useRef(!1),je=x.useRef(null),dt=()=>{je.current&&clearTimeout(je.current),je.current=window.setTimeout(()=>{we.current&&(we.current=!1,r(_=>({..._}))),je.current=null},2e3)},Rt=(_,ce=!1,De)=>{const Ge=De!==void 0?De:ie,Fe=Ge?`SOLO ${_}`:_;if(_===ee.current&&Ge===de.current)return;const tt=[{text:Fe,weight:1}];bt.current&&(clearTimeout(bt.current),bt.current=null),ce?(ee.current=_,de.current=Ge,we.current=!0,dt(),at({type:"textPrompts",value:tt})):bt.current=window.setTimeout(()=>{ee.current=_,de.current=Ge,we.current=!0,dt(),at({type:"textPrompts",value:tt}),bt.current=null},400)},st=(_,ce)=>{at({type:"param",index:_,value:ce})},ro=()=>{st(0,bg),st(1,Cg),st(3,Qc),st(4,ua),st(48,kg),st(7,Eg),st(8,Rg),st(39,0),st(46,0),G(_=>({..._,cfgnotesuser:ua,cfgmusiccoca:Qc}))},_n=()=>{const _=!d;p(_),at({type:"togglePlay",value:_})},Dn=()=>{st(31,1),setTimeout(()=>st(31,0),100)},Oo=()=>{at({type:"loadAudioPrompt",index:0})},$o=()=>{at({type:"clearAudioPrompt"})},oo=x.useRef(!1);x.useEffect(()=>{if(window.updateState=_=>{var De,Ge;_.metrics&&r(Fe=>{const tt={...Fe,..._.metrics};return tt.textEncoderStatus===1&&(we.current=!1,je.current&&(clearTimeout(je.current),je.current=null)),tt}),_.audioLevels&&s(_.audioLevels),_.modelName!==void 0&&u(_.modelName),_.isPlaying!==void 0&&p(_.isPlaying),_.activeNotes&&(h(_.activeNotes),_.activeNotes.length>0&&(w(Fe=>Fe+1),p(Fe=>Fe||(at({type:"togglePlay",value:!0}),!0))));let ce=ie;if(_.solomode!==void 0&&(ce=!!_.solomode,ae(ce)),_.params!==void 0&&G(Fe=>{const tt={...Fe};return _.params.temperature!==void 0&&(tt.temperature=_.params.temperature),_.params.topk!==void 0&&(tt.topk=_.params.topk),_.params.cfgnotes!==void 0&&(tt.cfgnotes=_.params.cfgnotes),_.params.cfgmusiccoca!==void 0&&(tt.cfgmusiccoca=_.params.cfgmusiccoca),_.params.cfgnotesuser!==void 0&&(tt.cfgnotesuser=_.params.cfgnotesuser),_.params.cfgdrums!==void 0&&(tt.cfgdrums=_.params.cfgdrums),_.params.unmaskwidth!==void 0&&(tt.unmaskwidth=_.params.unmaskwidth),_.params.buffersize!==void 0&&(tt.buffersize=_.params.buffersize),_.params.volume!==void 0&&(tt.volume=_.params.volume),_.params.drumless!==void 0&&(tt.drumless=_.params.drumless),_.params.onsetmode!==void 0&&(tt.onsetmode=!!_.params.onsetmode),tt}),_.openSettings!==void 0&&N(!!_.openSettings),_.savedUserPresets!==void 0&&(_.savedUserPresets.solo&&ge(_.savedUserPresets.solo),_.savedUserPresets.jam&&me(_.savedUserPresets.jam)),_.prompt!==void 0&&!oo.current){let Fe=-1;_.savedRockerIndex!==void 0&&(Fe=_.savedRockerIndex);const tt=((De=_.savedUserPresets)==null?void 0:De.solo)??{},dr=((Ge=_.savedUserPresets)==null?void 0:Ge.jam)??{},ki=(ce?wd:Sd).map((pr,Ei)=>{const Hs=ce?tt:dr;return Ei in Hs?Hs[Ei]:pr});let fr=_.prompt;if(fr)Fe<0&&(Fe=ki.findIndex(pr=>pr.toLowerCase()===fr.toLowerCase()));else{const pr=Fe>=0?Fe:0;fr=ki[pr]||"",Fe=pr}Q(fr),le(vs(fr)),K(_.isAudioPrompt||!1),J(!1),Fe>=0&&Ee(Fe),Be.current=!0,Rt(fr,!0,ce),oo.current=!0}else _.isAudioPrompt!==void 0&&(_.isAudioPrompt&&(Q(_.prompt),le(vs(_.prompt)),J(!1),ee.current=_.prompt),K(_.isAudioPrompt));_.computerKeyboardMidi!==void 0&&Pe(!!_.computerKeyboardMidi),_.localModels!==void 0&&T(_.localModels),_.remoteModels!==void 0&&(b(_.remoteModels),B(!1)),_.remoteModelsError!==void 0&&B(!1),_.downloadProgress!==void 0&&$(_.downloadProgress),_.resourcesMissing!==void 0&&M(_.resourcesMissing),_.resourcesProgress!==void 0&&F(_.resourcesProgress),_.downloadPath!==void 0&&P(_.downloadPath),_.midiSources!==void 0&&zt(_.midiSources),_.solomode!==void 0&&ae(!!_.solomode)},at({type:"uiReady"}),at({type:"listRemoteModels"}),A.current){const _=A.current;_.focus();const ce=_.value.length;_.setSelectionRange(ce,ce)}return()=>{delete window.updateState,je.current&&clearTimeout(je.current)}},[]),x.useEffect(()=>{const _=ce=>{document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||ce.key===" "&&(ce.preventDefault(),_n())};return window.addEventListener("keydown",_),()=>window.removeEventListener("keydown",_)},[d]),x.useEffect(()=>{if(!ie||!d)return;const _=window.setTimeout(()=>{p(!1),at({type:"togglePlay",value:!1})},DE);return()=>clearTimeout(_)},[ie,d,v]);const ur=t.textEncoderStatus===1||we.current,Oe=x.useRef(!1);x.useEffect(()=>{Oe.current&&!ur&&Dn(),Oe.current=ur},[ur]),x.useEffect(()=>{if(!Ae){He.current.forEach(Ge=>{at({type:"kbdNote",note:Ge,on:!1})}),He.current.clear();return}const _=Ge=>{if(document.activeElement instanceof HTMLInputElement||document.activeElement instanceof HTMLTextAreaElement||Ge.metaKey||Ge.ctrlKey||Ge.altKey)return;const Fe=Ge.key.toLowerCase();if(Fe==="z"){if(Ge.preventDefault(),Ge.repeat)return;Ue();return}if(Fe==="x"){if(Ge.preventDefault(),Ge.repeat)return;Ke();return}const tt=_E[Fe];if(tt===void 0||(Ge.preventDefault(),Ge.repeat)||He.current.has(Fe))return;const dr=Ye.current+tt;dr<0||dr>127||(He.current.set(Fe,dr),at({type:"kbdNote",note:dr,on:!0}))},ce=Ge=>{const Fe=Ge.key.toLowerCase(),tt=He.current.get(Fe);tt!==void 0&&(He.current.delete(Fe),at({type:"kbdNote",note:tt,on:!1}))},De=()=>{He.current.forEach(Ge=>{at({type:"kbdNote",note:Ge,on:!1})}),He.current.clear()};return window.addEventListener("keydown",_),window.addEventListener("keyup",ce),window.addEventListener("blur",De),()=>{window.removeEventListener("keydown",_),window.removeEventListener("keyup",ce),window.removeEventListener("blur",De),De()}},[Ae]);const Vt=Ae?60:48,io=Ae?76:72,cr=!a||a==="No model loaded",so=et(ie)[Le]??"",Ka=U&&te.trim()!==""&&te!==so,Or=_=>({height:"100%",padding:"0 24px",borderRadius:"6px",fontSize:"14px",fontWeight:400,fontFamily:"'Google Sans', system-ui, sans-serif",letterSpacing:"0.5px",textTransform:"none",background:_?"#36373A":"transparent",color:_?Y:"rgba(255, 255, 255, 0.45)",transition:"all 0.15s ease",border:"none",outline:"none",cursor:"pointer",whiteSpace:"nowrap"}),lo=S.jsx(vn,{onClick:cr?void 0:_n,disabled:cr,sx:{width:63,height:44,borderRadius:"8px",backgroundColor:"#FFF",color:"#000",borderBottom:"1.5px solid #ddd",transition:"opacity 0.15s ease","&:hover":{backgroundColor:"#FFF",color:"#000",opacity:.9},"&.Mui-disabled":{backgroundColor:"rgba(255, 255, 255, 0.3)",color:"rgba(0, 0, 0, 0.3)"}},title:d?"Pause":"Play",children:d?S.jsx(uC,{sx:{fontSize:24}}):S.jsx(cC,{sx:{fontSize:24}})});return S.jsxs("div",{style:{height:"100vh",width:"100vw",display:"flex",flexDirection:"column",overflow:"hidden",boxSizing:"border-box",color:"#FFF",fontFamily:"'Google Sans Text', system-ui, sans-serif"},children:[S.jsx("div",{style:{flex:"1 1 auto",background:Y,transition:"background-color 0.3s ease",display:"flex",flexDirection:"column",padding:"18px 24px",boxSizing:"border-box",minHeight:0},children:S.jsxs("div",{style:{display:"flex",gap:"16px",flex:"1 1 auto",minHeight:0},children:[S.jsxs("div",{style:{flex:"1 1 0px",minWidth:0,display:"flex",flexDirection:"column",gap:"16px"},children:[S.jsx("div",{style:{display:"flex"},children:S.jsxs("div",{className:"jam-box",style:{display:"inline-flex",height:"44px",boxSizing:"border-box",padding:"2px",alignItems:"center"},children:[S.jsx("button",{onClick:()=>wt(!1),style:Or(!ie),children:"Jam"}),S.jsx("button",{onClick:()=>wt(!0),style:Or(ie),children:"Solo"})]})}),S.jsxs("div",{style:{flex:"1 1 auto",display:"flex",alignItems:"center",justifyContent:"center",gap:"20px",paddingRight:"24px"},children:[S.jsx(SE,{label:"Chaos",minA:.5,midA:1,maxA:2,minB:10,midB:100,maxB:500,accentColor:Y,onChange:(_,ce)=>{G(De=>({...De,temperature:_,topk:ce})),st(0,_),st(1,ce)}}),S.jsx(Xc,{label:"Volume",value:Math.min(1,Math.max(0,(V.volume+60)/60)),min:0,max:1,step:.01,onChange:_=>{const ce=parseFloat((_*60-60).toFixed(1));G(De=>({...De,volume:ce})),st(5,ce)}})]})]}),S.jsxs("div",{style:{width:BE,flexShrink:0,position:"relative",minWidth:0},children:[S.jsx(vn,{variant:"jam",onClick:it,sx:{position:"absolute",left:0,top:"50%",transform:"translateY(-50%)",width:40,height:56,borderRadius:"0 28px 28px 0",zIndex:5},title:"Previous preset",children:S.jsx(oC,{sx:{fontSize:20,color:"#FFF",transform:"translateX(-3px)"}})}),S.jsxs("div",{className:"jam-box",onClick:_=>{_.target instanceof Element&&_.target.closest(".upload-btn-container")||A.current&&A.current.focus()},style:{position:"absolute",inset:0,display:"flex",flexDirection:"column",justifyContent:"flex-start",minWidth:0,padding:"12px 64px",cursor:"text"},children:[ur&&S.jsx(of,{size:16,sx:{color:"rgba(255, 255, 255, 0.6)",position:"absolute",right:"12px",top:"12px",zIndex:10}}),S.jsx(zE,{value:te,onChange:_=>{const ce=_.target.value,De=te;Q(ce),Rt(ce),J(!0);const Ge=De.charAt(0),Fe=ce.charAt(0);!(ce.trim()==="")&&Fe!==Ge&&le(vs(ce))},onKeyDown:_=>{var ce;_.key==="Enter"&&(_.preventDefault(),Rt(te,!0),(ce=A.current)==null||ce.blur())},onBlur:()=>{Rt(te,!0)},placeholder:"Type a prompt or upload an audio file.",disabled:X,variant:"standard",fullWidth:!0,multiline:!0,maxRows:6,inputRef:A,inputProps:{autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false"},InputProps:{disableUnderline:!0,sx:{textWrap:"pretty",color:Y,fontSize:"36px",fontWeight:400,fontFamily:"'Google Sans', system-ui, sans-serif",lineHeight:1.25,caretColor:Y,"&::placeholder":{color:"rgba(255, 255, 255, 0.25)",opacity:1}}},sx:{flex:"1 1 auto",display:"flex",flexDirection:"column",justifyContent:"center","& .MuiInputBase-input":{padding:"0"},"& .MuiInputBase-input.Mui-disabled":{WebkitTextFillColor:Y},"& .MuiInputBase-root":{alignItems:"center",flex:"1 1 auto",display:"flex"}}}),S.jsxs("div",{className:"upload-btn-container",style:{position:"absolute",right:"12px",bottom:"12px",zIndex:10,display:"flex",alignItems:"center",gap:"4px"},children:[!X&&Ka&&S.jsx(di,{title:"Save preset",placement:"top",children:S.jsx("span",{children:S.jsx(vn,{variant:"jam",onClick:pe,sx:{width:36,height:36},children:S.jsx(fC,{sx:{fontSize:18,color:Y}})})})}),X?S.jsx(vn,{variant:"jam",onClick:$o,sx:{width:36,height:36},title:"Remove audio file",children:S.jsx(aC,{sx:{fontSize:18}})}):S.jsx(di,{title:"Upload audio prompt",placement:"top",children:S.jsx(vn,{variant:"jam",onClick:Oo,sx:{width:36,height:36},title:"Choose audio file",children:S.jsx(mC,{sx:{fontSize:18}})})})]})]}),S.jsx(vn,{variant:"jam",onClick:ze,sx:{position:"absolute",right:0,top:"50%",transform:"translateY(-50%)",width:40,height:56,borderRadius:"28px 0 0 28px",zIndex:5},title:"Next preset",children:S.jsx(iC,{sx:{fontSize:20,color:"#FFF",transform:"translateX(3px)"}})})]}),S.jsxs("div",{style:{flex:"1 1 0px",minWidth:0,display:"flex",flexDirection:"column",gap:"16px"},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"flex-end",gap:"8px"},children:[S.jsx(vn,{variant:"jam",onClick:Dn,sx:{width:44,height:44},title:"Reset model state",children:S.jsx(dC,{sx:{fontSize:20}})}),cr?S.jsx(di,{title:"No model selected",placement:"top",children:S.jsx("span",{children:lo})}):lo,S.jsx(vn,{variant:"jam",onClick:()=>N(!0),sx:{width:44,height:44},title:"Settings (Cmd+,)",children:S.jsx(pC,{sx:{fontSize:20}})}),S.jsx(oE,{})]}),S.jsxs("div",{style:{flex:"1 1 auto",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},children:[S.jsx("span",{style:{fontFamily:"'Google Sans Text', system-ui, sans-serif",fontSize:"11px",fontWeight:500,color:"#1B1C17",marginBottom:"8px",letterSpacing:"0.3px"},children:"Strength"}),S.jsxs("div",{style:{flex:"1 1 auto",display:"flex",alignItems:"center",justifyContent:"center",width:"100%"},children:[S.jsx(Xc,{label:"Notes",value:V.cfgnotesuser,min:jg,max:Lg,showValueOnThumb:!0,valueFormatter:_=>_===0||_===5?_.toString():_.toFixed(1),onChange:_=>{G(ce=>({...ce,cfgnotesuser:_})),st(4,_)}}),S.jsx(Xc,{label:"Style",value:V.cfgmusiccoca,min:jg,max:Lg,showValueOnThumb:!0,valueFormatter:_=>_===0||_===5?_.toString():_.toFixed(1),onChange:_=>{G(ce=>({...ce,cfgmusiccoca:_})),st(3,_)}})]})]})]})]})}),S.jsxs("div",{style:{flexShrink:0,height:"240px",backgroundColor:"#000",paddingTop:"10px",position:"relative"},children:[S.jsxs("div",{style:{position:"absolute",top:"0",right:"0",zIndex:10,display:"flex",alignItems:"center",gap:"4px",padding:"4px 8px",borderRadius:"8px",backgroundColor:"#000",visibility:Ae?"visible":"hidden"},children:[S.jsx(vn,{variant:"ghost",onClick:Ue,disabled:jt<=-4,sx:{width:32,height:32,color:"#FFF","&:hover":{backgroundColor:"#36373A"}},children:S.jsx(sC,{sx:{fontSize:18}})}),S.jsxs("span",{style:{fontSize:"13px",fontWeight:600,minWidth:"36px",textAlign:"center",color:"#FFF",fontFamily:"'Google Sans', system-ui, sans-serif",letterSpacing:"0.5px"},children:["C",Math.floor((da+jt*12)/12)-1]}),S.jsx(vn,{variant:"ghost",onClick:Ke,disabled:jt>=4,sx:{width:32,height:32,color:"#FFF","&:hover":{backgroundColor:"#36373A"}},children:S.jsx(lC,{sx:{fontSize:18}})})]}),S.jsx(mE,{activeNotes:Ae?m.map(_=>60+(_-Ye.current)).filter(_=>_>=60&&_<=76):m,accentColor:Y,startNote:Vt,endNote:io,keyboardMidiEnabled:Ae,onNoteOn:_=>{const ce=Ae?Ye.current+(_-60):_;ce>=0&&ce<=127&&at({type:"kbdNote",note:ce,on:!0})},onNoteOff:_=>{const ce=Ae?Ye.current+(_-60):_;ce>=0&&ce<=127&&at({type:"kbdNote",note:ce,on:!1})}})]}),S.jsxs("div",{style:{flexShrink:0,height:"76px",background:"#000",color:"#FFF",display:"flex",alignItems:"center",justifyContent:"space-between",padding:"8px 16px",boxSizing:"border-box"},children:[S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"12px"},children:[S.jsx(n2,{modelName:a,localModels:C,remoteModels:k,downloadProgress:E,onSelectModel:_=>at({type:"selectModel",name:_}),onDownloadModel:_=>at({type:"downloadModel",name:_}),onDeleteModel:_=>at({type:"deleteModel",name:_}),onSelectFolder:()=>at({type:"selectDownloadFolder"}),buttonSx:{color:"#FFF","&:hover":{background:"rgba(255, 255, 255, 0.12)"}}}),S.jsx(Qk,{midiSources:Qe,keyboardMidiEnabled:Ae,onSelectSource:_=>at({type:"selectMidiSource",endpoint:_}),midiActive:m.length>0})]}),S.jsx("div",{style:{flex:"1 1 auto"}}),S.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"16px"},children:[S.jsx(Z2,{frameMs:t.frameMs,droppedFrames:t.droppedFrames,buffersize:V.buffersize,onBufferChange:_=>st(8,_),buttonSx:{color:"#FFF","&:hover":{background:"rgba(255, 255, 255, 0.12)"}},isPlaying:d}),S.jsx(i2,{leftLevel:o.left,rightLevel:o.right,width:"45px",height:"14px"})]})]}),S.jsx(nE,{open:g,onClose:()=>N(!1),temperature:V.temperature,topk:V.topk,cfgnotes:V.cfgnotesuser,cfgmusiccoca:V.cfgmusiccoca,cfgdrums:V.cfgdrums,unmaskwidth:V.unmaskwidth,onParamChange:st,onResetDefaults:ro,showNoteCfg:!1,showPromptCfg:!1,showDrumsCfg:!1,showUnmaskWidth:!1,showOnsetMode:!0,onsetmode:V.onsetmode,showDrumless:!0,columns:1,drumless:V.drumless}),R&&S.jsx(K2,{progress:O,remoteModels:k,downloadPath:j,isFetchingModels:D,onSelectFolder:()=>at({type:"selectDownloadFolder"}),onStartDownload:_=>at({type:"initResources",modelName:_})})]})}window.onerror=function(t,r,o,s,a){const u=document.createElement("div");return u.style.cssText="color:red; background:black; position:fixed; top:0; left:0; width:100vw; height:100vh; z-index:99999; font-family:monospace; padding:20px; word-wrap:break-word;",u.innerText="JS CRASH: "+t+` | |
| `+r+":"+o+":"+s+` | |
| `+(a&&a.stack?a.stack:""),document.body.appendChild(u),!1};J0.createRoot(document.getElementById("root")).render(S.jsx(x.StrictMode,{children:S.jsx(bw,{theme:t2,children:S.jsx(WE,{})})}));</script> | |
| </body> | |
| </html> | |