UNPKG

p3x-redis-ui-material

Version:

💿 P3X Redis UI triple frontend — Angular + React/MUI + Vue/Vuetify with 54 languages, 7 themes, Socket.IO, desktop notifications, and full feature parity

166 lines • 405 kB
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/SettingsPage-Bdnk9NTe.js","assets/rolldown-runtime-Dd_uD5pT.js","assets/Box-DSXpVc0K.js","assets/i18n.store-ZJjZbIIr.js","assets/preload-helper-9s1cLCyo.js","assets/extends-CvVTau-c.js","assets/KeyboardArrowDown-D_jWdzEv.js","assets/createSimplePaletteValueFilter-Bt9IjErz.js","assets/TextField-CfzwSAUF.js","assets/useRovingTabIndex-DogldBjs.js","assets/List-DUtnswD8.js","assets/Delete-XFKHCDuD.js","assets/ListItem-DNQFRYWX.js","assets/Save-BjXEBpbN.js","assets/Refresh-DX5rG8wz.js","assets/redis-state.store-C55NDKx3.js","assets/P3xrAccordion-D_hsG8TZ.js","assets/KeyboardArrowUp-xCWEyXLK.js","assets/TreeSettingsDialog-DlIJjZCZ.js","assets/InfoPage-E4FMrqhZ.js","assets/DatabasePage-C0EFm7UC.js","assets/esm-C-0NgAla.js","assets/redis-version-D5h1AGvN.js","assets/DeleteSweep-zecgmp20.js","assets/SkipPrevious-D216pu4I.js","assets/StatisticsPage-BligTV8R.js","assets/Tabs-CIJZqOgZ.js","assets/DatabaseKeyPage-BjaQ8pnh.js","assets/Download-CNMK0XxJ.js","assets/uPlot-CnsZ1jie.css","assets/SearchPage-BWTJlKPi.js","assets/MonitoringShell-DZp4niX2.js","assets/monitoring-data.store-i1uZ54EG.js","assets/PulsePage-A2lcpLMH.js","assets/PlayArrow-cnJ5_FPn.js","assets/ProfilerPage-CqXmaY3o.js","assets/PubSubPage-CNSNOO0J.js","assets/MemoryAnalysisPage-ARoRbRPN.js"])))=>i.map(i=>d[i]);
import{i as e,n as t,t as n}from"./rolldown-runtime-Dd_uD5pT.js";import{$ as r,C as i,D as a,E as o,F as s,H as c,J as l,K as u,L as d,M as f,N as p,R as m,S as h,T as g,U as _,V as v,X as y,Y as b,Z as x,c as S,et as C,h as w,j as T,k as ee,l as te,lt as ne,o as E,ot as re,q as ie,r as D,st as O,t as k,w as ae,y as oe,z as A}from"./Box-DSXpVc0K.js";import{a as se,n as j,o as ce}from"./i18n.store-ZJjZbIIr.js";import{a as M,c as N,h as le,i as ue,l as de,m as fe,n as pe,p as P,r as me,s as he,t as ge}from"./KeyboardArrowDown-D_jWdzEv.js";import{C as _e,D as ve,E as ye,O as be,a as xe,c as Se,d as Ce,f as we,g as Te,i as Ee,l as De,m as Oe,o as ke,p as Ae,r as je,t as Me,w as Ne}from"./TextField-CfzwSAUF.js";import{f as Pe,n as Fe,s as Ie}from"./useRovingTabIndex-DogldBjs.js";import{t as Le}from"./createSimplePaletteValueFilter-Bt9IjErz.js";import{n as Re}from"./List-DUtnswD8.js";import{t as ze}from"./preload-helper-9s1cLCyo.js";import{i as Be,r as F}from"./redis-state.store-C55NDKx3.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Ve=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,ne());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?ne():S=!1}}}var ne;if(typeof y==`function`)ne=function(){y(te)};else if(typeof MessageChannel<`u`){var E=new MessageChannel,re=E.port2;E.port1.onmessage=te,ne=function(){re.postMessage(null)}}else ne=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,ne()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),He=n(((e,t)=>{t.exports=Ve()})),Ue=n((e=>{var t=He(),n=ce(),r=le();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}var f=Object.assign,p=Symbol.for(`react.element`),m=Symbol.for(`react.transitional.element`),h=Symbol.for(`react.portal`),g=Symbol.for(`react.fragment`),_=Symbol.for(`react.strict_mode`),v=Symbol.for(`react.profiler`),y=Symbol.for(`react.consumer`),b=Symbol.for(`react.context`),x=Symbol.for(`react.forward_ref`),S=Symbol.for(`react.suspense`),C=Symbol.for(`react.suspense_list`),w=Symbol.for(`react.memo`),T=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.memo_cache_sentinel`),ne=Symbol.iterator;function E(e){return typeof e!=`object`||!e?null:(e=ne&&e[ne]||e[`@@iterator`],typeof e==`function`?e:null)}var re=Symbol.for(`react.client.reference`);function ie(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===re?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case g:return`Fragment`;case v:return`Profiler`;case _:return`StrictMode`;case S:return`Suspense`;case C:return`SuspenseList`;case ee:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case h:return`Portal`;case b:return e.displayName||`Context`;case y:return(e._context.displayName||`Context`)+`.Consumer`;case x:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case w:return t=e.displayName||null,t===null?ie(e.type)||`Memo`:t;case T:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}var D=Array.isArray,O=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae={pending:!1,data:null,method:null,action:null},oe=[],A=-1;function se(e){return{current:e}}function j(e){0>A||(e.current=oe[A],oe[A]=null,A--)}function M(e,t){A++,oe[A]=e.current,e.current=t}var N=se(null),ue=se(null),de=se(null),fe=se(null);function pe(e,t){switch(M(de,t),M(ue,e),M(N,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}j(N),M(N,e)}function P(){j(N),j(ue),j(de)}function me(e){e.memoizedState!==null&&M(fe,e);var t=N.current,n=Hd(t,e.type);t!==n&&(M(ue,e),M(N,n))}function he(e){ue.current===e&&(j(N),j(ue)),fe.current===e&&(j(fe),Qf._currentValue=ae)}var ge,_e;function ve(e){if(ge===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||``,_e=-1<e.stack.indexOf(`
    at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
`+ge+e+_e}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
`),l=s.split(`
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function xe(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function Se(e){try{var t=``,n=null;do t+=xe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
Error generating stack: `+e.message+`
`+e.stack}}var Ce=Object.prototype.hasOwnProperty,we=t.unstable_scheduleCallback,Te=t.unstable_cancelCallback,Ee=t.unstable_shouldYield,De=t.unstable_requestPaint,Oe=t.unstable_now,ke=t.unstable_getCurrentPriorityLevel,Ae=t.unstable_ImmediatePriority,je=t.unstable_UserBlockingPriority,Me=t.unstable_NormalPriority,Ne=t.unstable_LowPriority,Pe=t.unstable_IdlePriority,Fe=t.log,Ie=t.unstable_setDisableYieldValue,Le=null,Re=null;function ze(e){if(typeof Fe==`function`&&Ie(e),Re&&typeof Re.setStrictMode==`function`)try{Re.setStrictMode(Le,e)}catch{}}var Be=Math.clz32?Math.clz32:Ue,F=Math.log,Ve=Math.LN2;function Ue(e){return e>>>=0,e===0?32:31-(F(e)/Ve|0)|0}var We=256,Ge=262144,I=4194304;function Ke(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qe(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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 t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=I;return I<<=1,!(I&62914560)&&(I=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function L(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Be(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&$e(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function $e(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Be(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function et(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Be(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function tt(e,t){var n=t&-t;return n=n&42?1:nt(n),(n&(e.suspendedLanes|t))===0?n:0}function nt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function rt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function it(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function at(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var ot=Math.random().toString(36).slice(2),st=`__reactFiber$`+ot,ct=`__reactProps$`+ot,lt=`__reactContainer$`+ot,ut=`__reactEvents$`+ot,dt=`__reactListeners$`+ot,ft=`__reactHandles$`+ot,pt=`__reactResources$`+ot,mt=`__reactMarker$`+ot;function ht(e){delete e[st],delete e[ct],delete e[ut],delete e[dt],delete e[ft]}function gt(e){var t=e[st];if(t)return t;for(var n=e.parentNode;n;){if(t=n[lt]||n[st]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[st])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[st]||e[lt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function yt(e){var t=e[pt];return t||=e[pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[mt]=!0}var xt=new Set,St={};function Ct(e,t){wt(e,t),wt(e+`Capture`,t)}function wt(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var Tt=RegExp(`^[: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]*$`),Et={},Dt={};function Ot(e){return Ce.call(Dt,e)?!0:Ce.call(Et,e)?!1:Tt.test(e)?Dt[e]=!0:(Et[e]=!0,!1)}function kt(e,t,n){if(Ot(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function At(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function jt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Mt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Nt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Pt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ft(e){if(!e._valueTracker){var t=Nt(e)?`checked`:`value`;e._valueTracker=Pt(e,t,``+e[t])}}function It(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Nt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function Lt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var Rt=/[\n"\\]/g;function zt(e){return e.replace(Rt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Bt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Mt(t)):e.value!==``+Mt(t)&&(e.value=``+Mt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ht(e,o,Mt(n)):Ht(e,o,Mt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Mt(s):e.removeAttribute(`name`)}function Vt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ft(e);return}n=n==null?``:``+Mt(n),t=t==null?n:``+Mt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ft(e)}function Ht(e,t,n){t===`number`&&Lt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Ut(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Mt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Wt(e,t,n){if(t!=null&&(t=``+Mt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Mt(n)}function Gt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(D(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Mt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ft(e)}function Kt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var qt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Jt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||qt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Yt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Jt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Jt(e,o,t[o])}function Xt(e){if(e.indexOf(`-`)===-1)return!1;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 Zt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Qt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $t(e){return Qt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function en(){}var tn=null;function nn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var rn=null,an=null;function on(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[ct]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Bt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+zt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[ct]||null;if(!a)throw Error(i(90));Bt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&It(r)}break a;case`textarea`:Wt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Ut(e,!!n.multiple,t,!1)}}}var sn=!1;function cn(e,t,n){if(sn)return e(t,n);sn=!0;try{return e(t)}finally{if(sn=!1,(rn!==null||an!==null)&&(bu(),rn&&(t=rn,e=an,an=rn=null,on(t),e)))for(t=0;t<e.length;t++)on(e[t])}}function ln(e,t){var n=e.stateNode;if(n===null)return null;var r=n[ct]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var un=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),dn=!1;if(un)try{var fn={};Object.defineProperty(fn,"passive",{get:function(){dn=!0}}),window.addEventListener(`test`,fn,fn),window.removeEventListener(`test`,fn,fn)}catch{dn=!1}var pn=null,mn=null,hn=null;function gn(){if(hn)return hn;var e,t=mn,n=t.length,r,i=`value`in pn?pn.value:pn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return hn=i.slice(e,1<r?1-r:void 0)}function _n(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function vn(){return!0}function yn(){return!1}function bn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?vn:yn,this.isPropagationStopped=yn,this}return f(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=vn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=vn)},persist:function(){},isPersistent:vn}),t}var xn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Sn=bn(xn),Cn=f({},xn,{view:0,detail:0}),wn=bn(Cn),Tn,En,Dn,On=f({},Cn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:zn,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!==Dn&&(Dn&&e.type===`mousemove`?(Tn=e.screenX-Dn.screenX,En=e.screenY-Dn.screenY):En=Tn=0,Dn=e),Tn)},movementY:function(e){return`movementY`in e?e.movementY:En}}),kn=bn(On),An=bn(f({},On,{dataTransfer:0})),jn=bn(f({},Cn,{relatedTarget:0})),Mn=bn(f({},xn,{animationName:0,elapsedTime:0,pseudoElement:0})),Nn=bn(f({},xn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Pn=bn(f({},xn,{data:0})),Fn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},In={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`},Ln={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Rn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Ln[e])?!!t[e]:!1}function zn(){return Rn}var Bn=bn(f({},Cn,{key:function(e){if(e.key){var t=Fn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=_n(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?In[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:zn,charCode:function(e){return e.type===`keypress`?_n(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?_n(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Vn=bn(f({},On,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Hn=bn(f({},Cn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:zn})),Un=bn(f({},xn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Wn=bn(f({},On,{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})),Gn=bn(f({},xn,{newState:0,oldState:0})),Kn=[9,13,27,32],qn=un&&`CompositionEvent`in window,Jn=null;un&&`documentMode`in document&&(Jn=document.documentMode);var Yn=un&&`TextEvent`in window&&!Jn,Xn=un&&(!qn||Jn&&8<Jn&&11>=Jn),Zn=` `,Qn=!1;function $n(e,t){switch(e){case`keyup`:return Kn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function er(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var tr=!1;function nr(e,t){switch(e){case`compositionend`:return er(t);case`keypress`:return t.which===32?(Qn=!0,Zn):null;case`textInput`:return e=t.data,e===Zn&&Qn?null:e;default:return null}}function rr(e,t){if(tr)return e===`compositionend`||!qn&&$n(e,t)?(e=gn(),hn=mn=pn=null,tr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return Xn&&t.locale!==`ko`?null:t.data;default:return null}}var ir={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 ar(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!ir[e.type]:t===`textarea`}function or(e,t,n,r){rn?an?an.push(r):an=[r]:rn=r,t=Ed(t,`onChange`),0<t.length&&(n=new Sn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var sr=null,cr=null;function lr(e){yd(e,0)}function R(e){if(It(vt(e)))return e}function ur(e,t){if(e===`change`)return t}var dr=!1;if(un){var fr;if(un){var pr=`oninput`in document;if(!pr){var mr=document.createElement(`div`);mr.setAttribute(`oninput`,`return;`),pr=typeof mr.oninput==`function`}fr=pr}else fr=!1;dr=fr&&(!document.documentMode||9<document.documentMode)}function hr(){sr&&(sr.detachEvent(`onpropertychange`,gr),cr=sr=null)}function gr(e){if(e.propertyName===`value`&&R(cr)){var t=[];or(t,cr,e,nn(e)),cn(lr,t)}}function _r(e,t,n){e===`focusin`?(hr(),sr=t,cr=n,sr.attachEvent(`onpropertychange`,gr)):e===`focusout`&&hr()}function vr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return R(cr)}function yr(e,t){if(e===`click`)return R(t)}function br(e,t){if(e===`input`||e===`change`)return R(t)}function xr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Sr=typeof Object.is==`function`?Object.is:xr;function Cr(e,t){if(Sr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Ce.call(t,i)||!Sr(e[i],t[i]))return!1}return!0}function wr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Tr(e,t){var n=wr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=wr(n)}}function Er(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Er(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Lt(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Lt(e.document)}return t}function Or(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var kr=un&&`documentMode`in document&&11>=document.documentMode,Ar=null,jr=null,Mr=null,Nr=!1;function Pr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Nr||Ar==null||Ar!==Lt(r)||(r=Ar,`selectionStart`in r&&Or(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Mr&&Cr(Mr,r)||(Mr=r,r=Ed(jr,`onSelect`),0<r.length&&(t=new Sn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Ar)))}function Fr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ir={animationend:Fr(`Animation`,`AnimationEnd`),animationiteration:Fr(`Animation`,`AnimationIteration`),animationstart:Fr(`Animation`,`AnimationStart`),transitionrun:Fr(`Transition`,`TransitionRun`),transitionstart:Fr(`Transition`,`TransitionStart`),transitioncancel:Fr(`Transition`,`TransitionCancel`),transitionend:Fr(`Transition`,`TransitionEnd`)},Lr={},Rr={};un&&(Rr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ir.animationend.animation,delete Ir.animationiteration.animation,delete Ir.animationstart.animation),`TransitionEvent`in window||delete Ir.transitionend.transition);function zr(e){if(Lr[e])return Lr[e];if(!Ir[e])return e;var t=Ir[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Rr)return Lr[e]=t[n];return e}var Br=zr(`animationend`),Vr=zr(`animationiteration`),Hr=zr(`animationstart`),Ur=zr(`transitionrun`),Wr=zr(`transitionstart`),Gr=zr(`transitioncancel`),Kr=zr(`transitionend`),qr=new Map,Jr=`abort auxClick beforeToggle 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(` `);Jr.push(`scrollEnd`);function Yr(e,t){qr.set(e,t),Ct(t,[e])}var Xr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Zr=[],Qr=0,$r=0;function ei(){for(var e=Qr,t=$r=Qr=0;t<e;){var n=Zr[t];Zr[t++]=null;var r=Zr[t];Zr[t++]=null;var i=Zr[t];Zr[t++]=null;var a=Zr[t];if(Zr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&ii(n,i,a)}}function ti(e,t,n,r){Zr[Qr++]=e,Zr[Qr++]=t,Zr[Qr++]=n,Zr[Qr++]=r,$r|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function ni(e,t,n,r){return ti(e,t,n,r),ai(e)}function ri(e,t){return ti(e,null,null,t),ai(e)}function ii(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Be(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ai(e){if(50<du)throw du=0,fu=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var oi={};function si(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ci(e,t,n,r){return new si(e,t,n,r)}function li(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ui(e,t){var n=e.alternate;return n===null?(n=ci(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function di(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function fi(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)li(e)&&(s=1);else if(typeof e==`string`)s=Uf(e,n,N.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ee:return e=ci(31,n,t,a),e.elementType=ee,e.lanes=o,e;case g:return pi(n.children,a,o,t);case _:s=8,a|=24;break;case v:return e=ci(12,n,t,a|2),e.elementType=v,e.lanes=o,e;case S:return e=ci(13,n,t,a),e.elementType=S,e.lanes=o,e;case C:return e=ci(19,n,t,a),e.elementType=C,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case b:s=10;break a;case y:s=9;break a;case x:s=11;break a;case w:s=14;break a;case T:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ci(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function pi(e,t,n,r){return e=ci(7,e,r,t),e.lanes=n,e}function mi(e,t,n){return e=ci(6,e,null,t),e.lanes=n,e}function hi(e){var t=ci(18,null,null,0);return t.stateNode=e,t}function gi(e,t,n){return t=ci(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var _i=new WeakMap;function vi(e,t){if(typeof e==`object`&&e){var n=_i.get(e);return n===void 0?(t={value:e,source:t,stack:Se(t)},_i.set(e,t),t):n}return{value:e,source:t,stack:Se(t)}}var yi=[],bi=0,xi=null,Si=0,Ci=[],wi=0,Ti=null,Ei=1,Di=``;function Oi(e,t){yi[bi++]=Si,yi[bi++]=xi,xi=e,Si=t}function ki(e,t,n){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ti=e;var r=Ei;e=Di;var i=32-Be(r)-1;r&=~(1<<i),n+=1;var a=32-Be(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Ei=1<<32-Be(t)+i|n<<i|r,Di=a+e}else Ei=1<<a|n<<i|r,Di=e}function Ai(e){e.return!==null&&(Oi(e,1),ki(e,1,0))}function ji(e){for(;e===xi;)xi=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null;for(;e===Ti;)Ti=Ci[--wi],Ci[wi]=null,Di=Ci[--wi],Ci[wi]=null,Ei=Ci[--wi],Ci[wi]=null}function Mi(e,t){Ci[wi++]=Ei,Ci[wi++]=Di,Ci[wi++]=Ti,Ei=t.id,Di=t.overflow,Ti=e}var Ni=null,Pi=null,z=!1,Fi=null,Ii=!1,Li=Error(i(519));function Ri(e){throw Wi(vi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Li}function zi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[st]=e,t[ct]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),Vt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Gt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=en),t=!0):t=!1,t||Ri(e,!0)}function Bi(e){for(Ni=e.return;Ni;)switch(Ni.tag){case 5:case 31:case 13:Ii=!1;return;case 27:case 3:Ii=!0;return;default:Ni=Ni.return}}function Vi(e){if(e!==Ni)return!1;if(!z)return Bi(e),z=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Ud(e.type,e.memoizedProps)),n=!n),n&&Pi&&Ri(e),Bi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Pi=uf(e)}else t===27?(t=Pi,Zd(e.type)?(e=lf,lf=null,Pi=e):Pi=t):Pi=Ni?cf(e.stateNode.nextSibling):null;return!0}function Hi(){Pi=Ni=null,z=!1}function Ui(){var e=Fi;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),Fi=null),e}function Wi(e){Fi===null?Fi=[e]:Fi.push(e)}var Gi=se(null),Ki=null,qi=null;function Ji(e,t,n){M(Gi,t._currentValue),t._currentValue=n}function Yi(e){e._currentValue=Gi.current,j(Gi)}function Xi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Zi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Xi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Xi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Qi(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Sr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===fe.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}a=a.return}e!==null&&Zi(t,e,n,r),t.flags|=262144}function $i(e){for(e=e.firstContext;e!==null;){if(!Sr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ea(e){Ki=e,qi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ta(e){return ra(Ki,e)}function na(e,t){return Ki===null&&ea(e),ra(e,t)}function ra(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},qi===null){if(e===null)throw Error(i(308));qi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else qi=qi.next=t;return n}var ia=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},aa=t.unstable_scheduleCallback,oa=t.unstable_NormalPriority,sa={$$typeof:b,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ca(){return{controller:new ia,data:new Map,refCount:0}}function la(e){e.refCount--,e.refCount===0&&aa(oa,function(){e.controller.abort()})}var ua=null,da=0,fa=0,pa=null;function ma(e,t){if(ua===null){var n=ua=[];da=0,fa=dd(),pa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return da++,t.then(ha,ha),t}function ha(){if(--da===0&&ua!==null){pa!==null&&(pa.status=`fulfilled`);var e=ua;ua=null,fa=0,pa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ga(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var _a=O.S;O.S=function(e,t){eu=Oe(),typeof t==`object`&&t&&typeof t.then==`function`&&ma(e,t),_a!==null&&_a(e,t)};var va=se(null);function ya(){var e=va.current;return e===null?q.pooledCache:e}function ba(e,t){t===null?M(va,va.current):M(va,t.pool)}function xa(){var e=ya();return e===null?null:{parent:sa._currentValue,pool:e}}var Sa=Error(i(460)),Ca=Error(i(474)),wa=Error(i(542)),Ta={then:function(){}};function Ea(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Da(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(en,en),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e;default:if(typeof t.status==`string`)t.then(en,en);else{if(e=q,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,ja(e),e}throw ka=t,Sa}}function Oa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(ka=e,Sa):e}}var ka=null;function Aa(){if(ka===null)throw Error(i(459));var e=ka;return ka=null,e}function ja(e){if(e===Sa||e===wa)throw Error(i(483))}var Ma=null,Na=0;function Pa(e){var t=Na;return Na+=1,Ma===null&&(Ma=[]),Da(Ma,e,t)}function Fa(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ia(e,t){throw t.$$typeof===p?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function La(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ui(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=mi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===g?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===T&&Oa(i)===t.type)?(t=a(t,n.props),Fa(t,n),t.return=e,t):(t=fi(n.type,n.key,n.props,null,e.mode,r),Fa(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=gi(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=mi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case m:return n=fi(t.type,t.key,t.props,null,e.mode,n),Fa(n,t),n.return=e,n;case h:return t=gi(t,e.mode,n),t.return=e,t;case T:return t=Oa(t),f(e,t,n)}if(D(t)||E(t))return t=pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Pa(t),n);if(t.$$typeof===b)return f(e,na(e,t),n);Ia(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case m:return n.key===i?l(e,t,n,r):null;case h:return n.key===i?u(e,t,n,r):null;case T:return n=Oa(n),p(e,t,n,r)}if(D(n)||E(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Pa(n),r);if(n.$$typeof===b)return p(e,t,na(e,n),r);Ia(e,n)}return null}function _(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case m:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case h:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case T:return r=Oa(r),_(e,t,n,r,i)}if(D(r)||E(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return _(e,t,n,Pa(r),i);if(r.$$typeof===b)return _(e,t,n,na(t,r),i);Ia(t,r)}return null}function v(i,a,s,c){for(var l=null,u=null,d=a,m=a=0,h=null;d!==null&&m<s.length;m++){d.index>m?(h=d,d=null):h=d.sibling;var g=p(i,d,s[m],c);if(g===null){d===null&&(d=h);break}e&&d&&g.alternate===null&&t(i,d),a=o(g,a,m),u===null?l=g:u.sibling=g,u=g,d=h}if(m===s.length)return n(i,d),z&&Oi(i,m),l;if(d===null){for(;m<s.length;m++)d=f(i,s[m],c),d!==null&&(a=o(d,a,m),u===null?l=d:u.sibling=d,u=d);return z&&Oi(i,m),l}for(d=r(d);m<s.length;m++)h=_(d,i,m,s[m],c),h!==null&&(e&&h.alternate!==null&&d.delete(h.key===null?m:h.key),a=o(h,a,m),u===null?l=h:u.sibling=h,u=h);return e&&d.forEach(function(e){return t(i,e)}),z&&Oi(i,m),l}function y(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,m=s,h=s=0,g=null,v=c.next();m!==null&&!v.done;h++,v=c.next()){m.index>h?(g=m,m=null):g=m.sibling;var y=p(a,m,v.value,l);if(y===null){m===null&&(m=g);break}e&&m&&y.alternate===null&&t(a,m),s=o(y,s,h),d===null?u=y:d.sibling=y,d=y,m=g}if(v.done)return n(a,m),z&&Oi(a,h),u;if(m===null){for(;!v.done;h++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return z&&Oi(a,h),u}for(m=r(m);!v.done;h++,v=c.next())v=_(m,a,h,v.value,l),v!==null&&(e&&v.alternate!==null&&m.delete(v.key===null?h:v.key),s=o(v,s,h),d===null?u=v:d.sibling=v,d=v);return e&&m.forEach(function(e){return t(a,e)}),z&&Oi(a,h),u}function x(e,r,o,c){if(typeof o==`object`&&o&&o.type===g&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case m:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===g){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===T&&Oa(l)===r.type){n(e,r.sibling),c=a(r,o.props),Fa(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===g?(c=pi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=fi(o.type,o.key,o.props,null,e.mode,c),Fa(c,o),c.return=e,e=c)}return s(e);case h:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=gi(o,e.mode,c),c.return=e,e=c}return s(e);case T:return o=Oa(o),x(e,r,o,c)}if(D(o))return v(e,r,o,c);if(E(o)){if(l=E(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),y(e,r,o,c)}if(typeof o.then==`function`)return x(e,r,Pa(o),c);if(o.$$typeof===b)return x(e,r,na(e,o),c);Ia(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=mi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Na=0;var i=x(e,t,n,r);return Ma=null,i}catch(t){if(t===Sa||t===wa)throw t;var a=ci(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ra=La(!0),za=La(!1),Ba=!1;function Va(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ua(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Wa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ai(e),ii(e,null,n),t}return ti(e,r,t,n),ai(e)}function Ga(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}function Ka(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var qa=!1;function Ja(){if(qa){var e=pa;if(e!==null)throw e}}function Ya(e,t,n,r){qa=!1;var i=e.updateQueue;Ba=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var p=s.lane&-536870913,m=p!==s.lane;if(m?(Y&p)===p:(r&p)===p){p!==0&&p===fa&&(qa=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;p=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,p);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,p=typeof h==`function`?h.call(_,d,p):h,p==null)break a;d=f({},d,p);break a;case 2:Ba=!0}}p=s.callback,p!==null&&(e.flags|=64,m&&(e.flags|=8192),m=i.callbacks,m===null?i.callbacks=[p]:m.push(p))}else m={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=m,c=d):u=u.next=m,o|=p;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;m=s,s=m.next,m.next=null,i.lastBaseUpdate=m,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Gl|=o,e.lanes=o,e.memoizedState=d}}function Xa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Za(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Xa(n[e],t)}var Qa=se(null),$a=se(0);function eo(e,t){e=Ul,M($a,e),M(Qa,t),Ul=e|t.baseLanes}function to(){M($a,Ul),M(Qa,Qa.current)}function no(){Ul=$a.current,j(Qa),j($a)}var ro=se(null),io=null;function ao(e){var t=e.alternate;M(uo,uo.current&1),M(ro,e),io===null&&(t===null||Qa.current!==null||t.memoizedState!==null)&&(io=e)}function oo(e){M(uo,uo.current),M(ro,e),io===null&&(io=e)}function so(e){e.tag===22?(M(uo,uo.current),M(ro,e),io===null&&(io=e)):co(e)}function co(){M(uo,uo.current),M(ro,ro.current)}function lo(e){j(ro),io===e&&(io=null),j(uo)}var uo=se(0);function fo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var po=0,B=null,V=null,mo=null,ho=!1,go=!1,_o=!1,vo=0,yo=0,bo=null,xo=0;function So(){throw Error(i(321))}function Co(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Sr(e[n],t[n]))return!1;return!0}function wo(e,t,n,r,i,a){return po=a,B=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Vs:Hs,_o=!1,a=n(r,i),_o=!1,go&&(a=Eo(t,n,r,i)),To(e),a}function To(e){O.H=Bs;var t=V!==null&&V.next!==null;if(po=0,mo=V=B=null,ho=!1,yo=0,bo=null,t)throw Error(i(300));e===null||ac||(e=e.dependencies,e!==null&&$i(e)&&(ac=!0))}function Eo(e,t,n,r){B=e;var a=0;do{if(go&&(bo=null),yo=0,go=!1,25<=a)throw Error(i(301));if(a+=1,mo=V=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}O.H=Us,o=t(n,r)}while(go);return o}function Do(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?Po(t):t,e=e.useState()[0],(V===null?null:V.memoizedState)!==e&&(B.flags|=1024),t}function Oo(){var e=vo!==0;return vo=0,e}function ko(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Ao(e){if(ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}ho=!1}po=0,mo=V=B=null,go=!1,yo=vo=0,bo=null}function jo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return mo===null?B.memoizedState=mo=e:mo=mo.next=e,mo}function Mo(){if(V===null){var e=B.alternate;e=e===null?null:e.memoizedState}else e=V.next;var t=mo===null?B.memoizedState:mo.next;if(t!==null)mo=t,V=e;else{if(e===null)throw B.alternate===null?Error(i(467)):Error(i(310));V=e,e={memoizedState:V.memoizedState,baseState:V.baseState,baseQueue:V.baseQueue,queue:V.queue,next:null},mo===null?B.memoizedState=mo=e:mo=mo.next=e}return mo}function No(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Po(e){var t=yo;return yo+=1,bo===null&&(bo=[]),e=Da(bo,e,t),t=B,(mo===null?t.memoizedState:mo.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Vs:Hs),e}function Fo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Po(e);if(e.$$typeof===b)return ta(e)}throw Error(i(438,String(e)))}function Io(e){var t=null,n=B.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=B.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=No(),B.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=te;return t.index++,n}function Lo(e,t){return typeof t==`function`?t(e):t}function Ro(e){return zo(Mo(),V,e)}function zo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(po&f)===f:(Y&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===fa&&(d=!0);else if((po&p)===p){u=u.next,p===fa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,B.lanes|=p,Gl|=p;f=u.action,_o&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,B.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Sr(o,e.memoizedState)&&(ac=!0,d&&(n=pa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Bo(e){var t=Mo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Sr(o,t.memoizedState)||(ac=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Vo(e,t,n){var r=B,a=Mo(),o=z;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Sr((V||a).memoizedState,n);if(s&&(a.memoizedState=n,ac=!0),a=a.queue,fs(Wo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||mo!==null&&mo.memoizedState.tag&1){if(r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,a,n,t),null),q===null)throw Error(i(349));o||po&127||Ho(r,t,n)}return n}function Ho(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=B.updateQueue,t===null?(t=No(),B.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Uo(e,t,n,r){t.value=n,t.getSnapshot=r,Go(t)&&Ko(e)}function Wo(e,t,n){return n(function(){Go(t)&&Ko(e)})}function Go(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Sr(e,n)}catch{return!0}}function Ko(e){var t=ri(e,2);t!==null&&hu(t,e,2)}function qo(e){var t=jo();if(typeof e==`function`){var n=e;if(e=n(),_o){ze(!0);try{n()}finally{ze(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:e},t}function Jo(e,t,n,r){return e.baseState=n,zo(e,V,typeof r==`function`?r:Lo)}function Yo(e,t,n,r,a){if(Ls(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};O.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Xo(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),Zo(e,t,s)}catch(n){$o(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),Zo(e,t,a)}catch(n){$o(e,t,n)}}function Zo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Qo(e,t,n)},function(n){return $o(e,t,n)}):Qo(e,t,n)}function Qo(e,t,n){t.status=`fulfilled`,t.value=n,es(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Xo(e,n)))}function $o(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,es(t),t=t.next;while(t!==r)}e.action=null}function es(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function ts(e,t){return t}function ns(e,t){if(z){var n=q.formState;if(n!==null){a:{var r=B;if(z){if(Pi){b:{for(var i=Pi,a=Ii;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Pi=cf(i.nextSibling),r=i.data===`F!`;break a}}Ri(r)}r=!1}r&&(t=n[0])}}return n=jo(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ts,lastRenderedState:t},n.queue=r,n=Ps.bind(null,B,r),r.dispatch=n,r=qo(!1),a=Is.bind(null,B,!1,r.queue),r=jo(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Yo.bind(null,B,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function rs(e){return is(Mo(),V,e)}function is(e,t,n){if(t=zo(e,t,ts)[0],e=Ro(Lo)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Po(t)}catch(e){throw e===Sa?wa:e}else r=t;t=Mo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(B.flags|=2048,ss(9,{destroy:void 0},as.bind(null,i,n),null)),[r,a,e]}function as(e,t){e.action=t}function os(e){var t=Mo(),n=V;if(n!==null)return is(t,n,e);Mo(),t=t.memoizedState,n=Mo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function ss(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=B.updateQueue,t===null&&(t=No(),B.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function cs(){return Mo().memoizedState}function ls(e,t,n,r){var i=jo();B.flags|=e,i.memoizedState=ss(1|t,{destroy:void 0},n,r===void 0?null:r)}function us(e,t,n,r){var i=Mo();r=r===void 0?null:r;var a=i.memoizedState.inst;V!==null&&r!==null&&Co(r,V.memoizedState.deps)?i.memoizedState=ss(t,a,n,r):(B.flags|=e,i.memoizedState=ss(1|t,a,n,r))}function ds(e,t){ls(8390656,8,e,t)}function fs(e,t){us(2048,8,e,t)}function ps(e){B.flags|=4;var t=B.updateQueue;if(t===null)t=No(),B.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ms(e){var t=Mo().memoizedState;return ps({ref:t,nextImpl:e}),function(){if(K&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function hs(e,t){return us(4,2,e,t)}function gs(e,t){return us(4,4,e,t)}function _s(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function vs(e,t,n){n=n==null?null:n.concat([e]),us(4,4,_s.bind(null,t,e),n)}function ys(){}function bs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Co(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xs(e,t){var n=Mo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Co(t,r[1]))return r[0];if(r=e(),_o){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r}function Ss(e,t,n){return n===void 0||po&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),B.lanes|=e,Gl|=e,n)}function Cs(e,t,n,r){return Sr(n,t)?n:Qa.current===null?!(po&42)||po&1073741824&&!(Y&261930)?(ac=!0,e.memoizedState=n):(e=mu(),B.lanes|=e,Gl|=e,t):(e=Ss(e,n,r),Sr(e,t)||(ac=!0),e)}function ws(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,Is(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?Fs(e,t,ga(c,r),pu(e)):Fs(e,t,r,pu(e))}catch(n){Fs(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function Ts(){}function Es(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Ds(e).queue;ws(e,a,t,ae,n===null?Ts:function(){return Os(e),n(r)})}function Ds(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ae,baseState:ae,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:ae},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lo,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Os(e){var t=Ds(e);t.next===null&&(t=e.alternate.memoizedState),Fs(e,t.next.queue,{},pu())}function ks(){return ta(Qf)}function As(){return Mo().memoizedState}function js(){return Mo().memoizedState}function Ms(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=Ua(n);var r=Wa(t,e,n);r!==null&&(hu(r,t,n),Ga(r,t,n)),t={cache:ca()},e.payload=t;return}t=t.return}}function Ns(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ls(e)?Rs(t,n):(n=ni(e,t,n,r),n!==null&&(hu(n,e,r),zs(n,t,r)))}function Ps(e,t,n){Fs(e,t,n,pu())}function Fs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ls(e))Rs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Sr(s,o))return ti(e,t,i,0),q===null&&ei(),!1}catch{}if(n=ni(e,t,i,r),n!==null)return hu(n,e,r),zs(n,t,r),!0}return!1}function Is(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ls(e)){if(t)throw Error(i(479))}else t=ni(e,n,r,2),t!==null&&hu(t,e,2)}function Ls(e){var t=e.alternate;return e===B||t!==null&&t===B}function Rs(e,t){go=ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,et(e,n)}}var Bs={readContext:ta,use:Fo,useCallback:So,useContext:So,useEffect:So,useImperativeHandle:So,useLayoutEffect:So,useInsertionEffect:So,useMemo:So,useReducer:So,useRef:So,useState:So,useDebugValue:So,useDeferredValue:So,useTransition:So,useSyncExternalStore:So,useId:So,useHostTransitionStatus:So,useFormState:So,useActionState:So,useOptimistic:So,useMemoCache:So,useCacheRefresh:So};Bs.useEffectEvent=So;var Vs={readContext:ta,use:Fo,useCallback:function(e,t){return jo().memoizedState=[e,t===void 0?null:t],e},useContext:ta,useEffect:ds,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),ls(4194308,4,_s.bind(null,t,e),n)},useLayoutEffect:function(e,t){return ls(4194308,4,e,t)},useInsertionEffect:function(e,t){ls(4,2,e,t)},useMemo:function(e,t){var n=jo();t=t===void 0?null:t;var r=e();if(_o){ze(!0);try{e()}finally{ze(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=jo();if(n!==void 0){var i=n(t);if(_o){ze(!0);try{n(t)}finally{ze(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=Ns.bind(null,B,e),[r.memoizedState,e]},useRef:function(e){var t=jo();return e={current:e},t.memoizedState=e},useState:function(e){e=qo(e);var t=e.queue,n=Ps.bind(null,B,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:ys,useDeferredValue:function(e,t){return Ss(jo(),e,t)},useTransition:function(){var e=qo(!1);return e=ws.bind(null,B,e.queue,!0,!1),jo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=B,a=jo();if(z){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),q===null)throw Error(i(349));Y&127||Ho(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ds(Wo.bind(null,r,o,e),[e]),r.flags|=2048,ss(9,{destroy:void 0},Uo.bind(null,r,o,n,t),null),n},useId:function(){var e=jo(),t=q.identifierPrefix;if(z){var n=Di,r=Ei;n=(r&~(1<<32-Be(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=vo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ks,useFormState:ns,useActionState:ns,useOptimistic:function(e){var t=jo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Is.bind(null,B,!0,n),n.dispatch=t,[e,t]},useMemoCache:Io,useCacheRefresh:function(){return jo().memoizedState=Ms.bind(null,B)},useEffectEvent:function(e){var t=jo(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Hs={readContext:ta,use:Fo,useCallback:bs,useContext:ta,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Ro,useRef:cs,useState:function(){return Ro(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){return Cs(Mo(),V.memoizedState,e,t)},useTransition:function(){var e=Ro(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:rs,useActionState:rs,useOptimistic:function(e,t){return Jo(Mo(),V,e,t)},useMemoCache:Io,useCacheRefresh:js};Hs.useEffectEvent=ms;var Us={readContext:ta,use:Fo,useCallback:bs,useContext:ta,useEffect:fs,useImperativeHandle:vs,useInsertionEffect:hs,useLayoutEffect:gs,useMemo:xs,useReducer:Bo,useRef:cs,useState:function(){return Bo(Lo)},useDebugValue:ys,useDeferredValue:function(e,t){var n=Mo();return V===null?Ss(n,e,t):Cs(n,V.memoizedState,e,t)},useTransition:function(){var e=Bo(Lo)[0],t=Mo().memoizedState;return[typeof e==`boolean`?e:Po(e),t]},useSyncExternalStore:Vo,useId:As,useHostTransitionStatus:ks,useFormState:os,useActionState:os,useOptimistic:function(e,t){var n=Mo();return V===null?(n.baseState=e,[e,n.queue.dispatch]):Jo(n,V,e,t)},useMemoCache:Io,useCacheRefresh:js};Us.useEffectEvent=ms;function Ws(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:f({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Gs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ua(r);i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(hu(t,e,r),Ga(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=Ua(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Wa(e,i,r),t!==null&&(hu(t,e,r),Ga(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=Ua(n);r.tag=2,t!=null&&(r.callback=t),t=Wa(e,r,n),t!==null&&(hu(t,e,n),Ga(t,e,n))}};function Ks(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Cr(n,r)||!Cr(i,a):!0}function qs(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Gs.enqueueReplaceState(t,t.state,null)}function Js(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=f({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Ys(e){Xr(e)}function Xs(e){console.error(e)}function Zs(e){Xr(e)}function Qs(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function $s(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ec(e,t,n){return n=Ua(n),n.tag=3,n.payload={element:null},n.callback=function(){Qs(e,t)},n}function tc(e){return e=Ua(e),e.tag=3,e}function nc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){$s(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){$s(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function rc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Qi(t,n,a,!0),n=ro.current,n!==null){switch(n.tag){case 31:case 13:return io===null?Du():n.alternate===null&&Wl===0&&(Wl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,a)),!1;case 22:return n.flags|=65536,r===Ta?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Gu(e,r,a)),!1}throw Error(i(435,n.tag))}return Gu(e,r,a),Du(),!1}if(z)return t=ro.current,t===null?(r!==Li&&(t=Error(i(423),{cause:r}),Wi(vi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=vi(r,n),a=ec(e.stateNode,r,a),Ka(e,a),Wl!==4&&(Wl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Li&&(e=Error(i(422),{cause:r}),Wi(vi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=vi(o,n),Xl===null?Xl=[o]:Xl.push(o),Wl!==4&&(Wl=2),t===null)return!0;r=vi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=ec(n.stateNode,r,e),Ka(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(ru===null||!ru.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=tc(a),nc(a,e,n,r),Ka(n,a),!1}n=n.return}while(n!==null);return!1}var ic=Error(i(461)),ac=!1;function oc(e,t,n,r){t.child=e===null?za(t,null,n,r):Ra(t,e.child,n,r)}function sc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return ea(t),r=wo(e,t,n,o,a,i),s=Oo(),e!==null&&!ac?(ko(e,t,i),Ac(e,t,i)):(z&&s&&Ai(t),t.flags|=1,oc(e,t,r,i),t.child)}function cc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!li(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,lc(e,t,a,r,i)):(e=fi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!jc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Cr:n,n(o,r)&&e.ref===t.ref)return Ac(e,t,i)}return t.flags|=1,e=ui(a,r),e.ref=t.ref,e.return=t,t.child=e}function lc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Cr(a,r)&&e.ref===t.ref){if(ac=!1,t.pendingProps=r=a,jc(e,i))e.flags&131072&&(ac=!0);else return t.lanes=e.lanes,Ac(e,t,i)}}return _c(e,t,n,r,i)}function uc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return fc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ba(t,a===null?null:a.cachePool),a===null?to():eo(t,a),so(t);else return r=t.lanes=536870912,fc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ba(t,null),to(),co(t)):(ba(t,a.cachePool),eo(t,a),co(t),t.memoizedState=null);return oc(e,t,i,n),t.child}function dc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function fc(e,t,n,r,i){var a=ya();return a=a===null?null:{parent:sa._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ba(t,null),to(),so(t),e!==null&&Qi(e,t,r,!0),t.childLanes=i,null}function pc(e,t){return t=Ec({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function mc(e,t,n){return Ra(t,e.child,null,n),e=pc(t,t.pendingProps),e.flags|=2,lo(t),t.memoizedState=null,e}function hc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(z){if(r.mode===`hidden`)return e=pc(t,r),t.lanes=536870912,dc(null,e);if(oo(t),(e=Pi)?(e=rf(e,Ii),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return t.lanes=536870912,null}return pc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(oo(t),a){if(t.flags&256)t.flags&=-257,t=mc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(ac||Qi(e,t,n,!1),a=(n&e.childLanes)!==0,ac||a){if(r=q,r!==null&&(s=tt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,ri(e,s),hu(r,e,s),ic;Du(),t=mc(e,t,n)}else e=o.treeContext,Pi=cf(s.nextSibling),Ni=t,z=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=pc(t,r),t.flags|=4096;return t}return e=ui(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function _c(e,t,n,r,i){return ea(t),n=wo(e,t,n,r,void 0,i),r=Oo(),e!==null&&!ac?(ko(e,t,i),Ac(e,t,i)):(z&&r&&Ai(t),t.flags|=1,oc(e,t,n,i),t.child)}function vc(e,t,n,r,i,a){return ea(t),t.updateQueue=null,n=Eo(t,r,n,i),To(e),r=Oo(),e!==null&&!ac?(ko(e,t,a),Ac(e,t,a)):(z&&r&&Ai(t),t.flags|=1,oc(e,t,n,a),t.child)}function yc(e,t,n,r,i){if(ea(t),t.stateNode===null){var a=oi,o=n.contextType;typeof o==`object`&&o&&(a=ta(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Gs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Va(t),o=n.contextType,a.context=typeof o==`object`&&o?ta(o):oi,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Ws(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Gs.enqueueReplaceState(a,a.state,null),Ya(t,r,a,i),Ja(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Js(n,s);a.props=c;var l=a.context,u=n.contextType;o=oi,typeof u==`object`&&u&&(o=ta(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&qs(t,a,r,o),Ba=!1;var f=t.memoizedState;a.state=f,Ya(t,r,a,i),Ja(),l=t.memoizedState,s||f!==l||Ba?(typeof d==`function`&&(Ws(t,n,d,r),l=t.memoizedState),(c=Ba||Ks(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ha(e,t),o=t.memoizedProps,u=Js(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=oi,typeof l==`object`&&l&&(c=ta(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&qs(t,a,r,c),Ba=!1,f=t.memoizedState,a.state=f,Ya(t,r,a,i),Ja();var p=t.memoizedState;o!==d||f!==p||Ba||e!==null&&e.dependencies!==null&&$i(e.dependencies)?(typeof s==`function`&&(Ws(t,n,s,r),p=t.memoizedState),(u=Ba||Ks(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&$i(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,gc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ra(t,e.child,null,i),t.child=Ra(t,null,n,i)):oc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Ac(e,t,i),e}function bc(e,t,n,r){return Hi(),t.flags|=256,oc(e,t,n,r),t.child}var xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Sc(e){return{baseLanes:e,cachePool:xa()}}function Cc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function wc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(uo.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(z){if(a?ao(t):co(t),(e=Pi)?(e=rf(e,Ii),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ti===null?null:{id:Ei,overflow:Di},retryLane:536870912,hydrationErrors:null},n=hi(e),n.return=t,t.child=n,Ni=t,Pi=null)):e=null,e===null)throw Ri(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(co(t),a=t.mode,c=Ec({mode:`hidden`,children:c},a),r=pi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(null,r)):(ao(t),Tc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?(ao(t),t.flags&=-257,t=Dc(e,t,n)):t.memoizedState===null?(co(t),c=r.fallback,a=t.mode,r=Ec({mode:`visible`,children:r.children},a),c=pi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ra(t,e.child,null,n),r=t.child,r.memoizedState=Sc(n),r.childLanes=Cc(e,s,n),t.memoizedState=xc,t=dc(null,r)):(co(t),t.child=e.child,t.flags|=128,t=null);else if(ao(t),of(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Wi({value:r,source:null,stack:null}),t=Dc(e,t,n)}else if(ac||Qi(e,t,n,!1),s=(n&e.childLanes)!==0,ac||s){if(s=q,s!==null&&(r=tt(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,ri(e,r),hu(s,e,r),ic;af(c)||Du(),t=Dc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Pi=cf(c.nextSibling),Ni=t,z=!0,Fi=null,Ii=!1,e!==null&&Mi(t,e),t=Tc(t,r.children),t.flags|=4096);return t}return a?(co(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ui(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=pi(c,a,n,null),c.flags|=2):c=ui(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,dc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=Sc(n):(a=c.cachePool,a===null?a=xa():(l=sa._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=Cc(e,s,n),t.memoizedState=xc,dc(e.child,r)):(ao(t),n=e.child,e=n.sibling,n=ui(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Tc(e,t){return t=Ec({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ec(e,t){return e=ci(22,e,null,t),e.lanes=0,e}function Dc(e,t,n){return Ra(t,e.child,null,n),e=Tc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Oc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Xi(e.return,t,n)}function H(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function kc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=uo.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,M(uo,o),oc(e,t,r,n),r=z?Si:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Oc(e,n,t);else if(e.tag===19)Oc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&fo(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),H(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&fo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}H(t,!0,n,null,a,r);break;case`together`:H(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Ac(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Qi(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ui(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ui(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function jc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&$i(e)))}function Mc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Ji(t,sa,e.memoizedState.cache),Hi();break;case 27:case 5:me(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Ji(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,oo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ao(t),e=Ac(e,t,n),e===null?null:e.sibling):wc(e,t,n):(ao(t),t.flags|=128,null);ao(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Qi(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return kc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),M(uo,uo.current),r)break;return null;case 22:return t.lanes=0,uc(e,t,n,t.pendingProps);case 24:Ji(t,sa,e.memoizedState.cache)}return Ac(e,t,n)}function Nc(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)ac=!0;else{if(!jc(e,n)&&!(t.flags&128))return ac=!1,Mc(e,t,n);ac=!!(e.flags&131072)}}else ac=!1,z&&t.flags&1048576&&ki(t,Si,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Oa(t.elementType),t.type=e,typeof e==`function`)li(e)?(r=Js(e,r),t.tag=1,t=yc(null,t,e,r,n)):(t.tag=0,t=_c(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===x){t.tag=11,t=sc(null,t,e,r,n);break a}if(a===w){t.tag=14,t=cc(null,t,e,r,n);break a}}throw t=ie(e)||e,Error(i(306,t,``))}}return t;case 0:return _c(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Js(r,t.pendingProps),yc(e,t,r,a,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ha(e,t),Ya(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ji(t,sa,r),r!==o.cache&&Zi(t,[sa],n,!0),Ja(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=bc(e,t,r,n);break a}if(r!==a){a=vi(Error(i(424)),t),Wi(a),t=bc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Pi=cf(e.firstChild),Ni=t,z=!0,Fi=null,Ii=!0,n=za(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Hi(),r===a){t=Ac(e,t,n);break a}oc(e,t,r,n)}t=t.child}return t;case 26:return gc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:z||(n=t.type,e=t.pendingProps,r=Bd(de.current).createElement(n),r[st]=t,r[ct]=e,Pd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return me(t),e===null&&z&&(r=t.stateNode=ff(t.type,t.pendingProps,de.current),Ni=t,Ii=!0,a=Pi,Zd(t.type)?(lf=a,Pi=cf(r.firstChild)):Pi=a),oc(e,t,t.pendingProps.children,n),gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&z&&((a=r=Pi)&&(r=tf(r,t.type,t.pendingProps,Ii),r===null?a=!1:(t.stateNode=r,Ni=t,Pi=cf(r.firstChild),Ii=!1,a=!0)),a||Ri(t)),me(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Ud(a,o)?r=null:s!==null&&Ud(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=wo(e,t,Do,null,null,n),Qf._currentValue=a),gc(e,t),oc(e,t,r,n),t.child;case 6:return e===null&&z&&((e=n=Pi)&&(n=nf(n,t.pendingProps,Ii),n===null?e=!1:(t.stateNode=n,Ni=t,Pi=null,e=!0)),e||Ri(t)),null;case 13:return wc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ra(t,null,r,n):oc(e,t,r,n),t.child;case 11:return sc(e,t,t.type,t.pendingProps,n);case 7:return oc(e,t,t.pendingProps,n),t.child;case 8:return oc(e,t,t.pendingProps.children,n),t.child;case 12:return oc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ji(t,t.type,r.value),oc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,ea(t),a=ta(a),r=r(a),t.flags|=1,oc(e,t,r,n),t.child;case 14:return cc(e,t,t.type,t.pendingProps,n);case 15:return lc(e,t,t.type,t.pendingProps,n);case 19:return kc(e,t,n);case 31:return hc(e,t,n);case 22:return uc(e,t,n,t.pendingProps);case 24:return ea(t),r=ta(sa),e===null?(a=ya(),a===null&&(a=q,o=ca(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Va(t),Ji(t,sa,a)):((e.lanes&n)!==0&&(Ha(e,t),Ya(t,null,null,n),Ja()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Ji(t,sa,r),r!==a.cache&&Zi(t,[sa],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ji(t,sa,r))),oc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function Pc(e){e.flags|=4}function Fc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw ka=Ta,Ca}}else e.flags&=-16777217}function Ic(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t)){if(wu())e.flags|=8192;else throw ka=Ta,Ca}}function Lc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Yl|=t)}function Rc(e,t){if(!z)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function U(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function zc(e,t,n){var r=t.pendingProps;switch(ji(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return U(t),null;case 1:return U(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Yi(sa),P(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Vi(t)?Pc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Ui())),U(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(Pc(t),o===null?(U(t),Fc(t,a,null,r,n)):(U(t),Ic(t,o))):o?o===e.memoizedState?(U(t),t.flags&=-16777217):(Pc(t),U(t),Ic(t,o)):(e=e.memoizedProps,e!==r&&Pc(t),U(t),Fc(t,a,e,r,n)),null;case 27:if(he(t),n=de.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return U(t),null}e=N.current,Vi(t)?zi(t,e):(e=ff(a,r,n),t.stateNode=e,Pc(t))}return U(t),null;case 5:if(he(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return U(t),null}if(o=N.current,Vi(t))zi(t,o);else{var s=Bd(de.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[st]=t,o[ct]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Pd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Pc(t)}}return U(t),Fc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Pc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=de.current,Vi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ni,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[st]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Ri(t,!0)}else e=Bd(e).createTextNode(r),e[st]=t,t.stateNode=e}return U(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Vi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[st]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),e=!1}else n=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(lo(t),t):(lo(t),null);if(t.flags&128)throw Error(i(558))}return U(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Vi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[st]=t}else Hi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;U(t),a=!1}else a=Ui(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(lo(t),t):(lo(t),null)}return lo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Lc(t,t.updateQueue),U(t),null);case 4:return P(),e===null&&Sd(t.stateNode.containerInfo),U(t),null;case 10:return Yi(t.type),U(t),null;case 19:if(j(uo),r=t.memoizedState,r===null)return U(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Rc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=fo(e),o!==null){for(t.flags|=128,Rc(r,!1),e=o.updateQueue,t.updateQueue=e,Lc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)di(n,e),n=n.sibling;return M(uo,uo.current&1|2),z&&Oi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Oe()>tu&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=fo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Lc(t,e),Rc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!z)return U(t),null}else 2*Oe()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,a=!0,Rc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(U(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Oe(),e.sibling=null,n=uo.current,M(uo,a?n&1|2:n&1),z&&Oi(t,r.treeForkCount),e);case 22:case 23:return lo(t),no(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(U(t),t.subtreeFlags&6&&(t.flags|=8192)):U(t),n=t.updateQueue,n!==null&&Lc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&j(va),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Yi(sa),U(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Bc(e,t){switch(ji(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Yi(sa),P(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return he(t),null;case 31:if(t.memoizedState!==null){if(lo(t),t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(lo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Hi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return j(uo),null;case 4:return P(),null;case 10:return Yi(t.type),null;case 22:case 23:return lo(t),no(),e!==null&&j(va),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Yi(sa),null;case 25:return null;default:return null}}function Vc(e,t){switch(ji(t),t.tag){case 3:Yi(sa),P();break;case 26:case 27:case 5:he(t);break;case 4:P();break;case 31:t.memoizedState!==null&&lo(t);break;case 13:lo(t);break;case 19:j(uo);break;case 10:Yi(t.type);break;case 22:case 23:lo(t),no(),e!==null&&j(va);break;case 24:Yi(sa)}}function Hc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Uc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Wc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Za(t,n)}catch(t){Z(e,e.return,t)}}}function Gc(e,t,n){n.props=Js(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Kc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function qc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}}function Jc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function Yc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[ct]=t}catch(t){Z(e,e.return,t)}}function Xc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Zc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Xc(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.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=en));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qc(e,t,n),e=e.sibling;e!==null;)Qc(e,t,n),e=e.sibling}function $c(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for($c(e,t,n),e=e.sibling;e!==null;)$c(e,t,n),e=e.sibling}function el(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[st]=e,t[ct]=n}catch(t){Z(e,e.return,t)}}var tl=!1,W=!1,nl=!1,rl=typeof WeakSet==`function`?WeakSet:Set,il=null;function al(e,t){if(e=e.containerInfo,Rd=sp,e=Dr(e),Or(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,il=t;il!==null;)if(t=il,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,il=e;else for(;il!==null;){switch(t=il,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Js(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,il=e;break}il=t.return}}function ol(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Hc(5,n);break;case 1:if(bl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Js(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}}r&64&&Wc(n),r&512&&Kc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Za(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&el(n);case 26:case 5:bl(e,n),t===null&&r&4&&Jc(n),r&512&&Kc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||tl,!r){t=t!==null&&t.memoizedState!==null||W,i=tl;var a=W;tl=r,(W=t)&&!a?Sl(e,n,!!(n.subtreeFlags&8772)):bl(e,n),tl=i,W=a}break;case 30:break;default:bl(e,n)}}function sl(e){var t=e.alternate;t!==null&&(e.alternate=null,sl(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ht(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var G=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Re&&typeof Re.onCommitFiberUnmount==`function`)try{Re.onCommitFiberUnmount(Le,n)}catch{}switch(n.tag){case 26:W||qc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:W||qc(n,t);var r=G,i=cl;Zd(n.type)&&(G=n.stateNode,cl=!1),ll(e,t,n),pf(n.stateNode),G=r,cl=i;break;case 5:W||qc(n,t);case 6:if(r=G,i=cl,G=null,ll(e,t,n),G=r,cl=i,G!==null){if(cl)try{(G.nodeType===9?G.body:G.nodeName===`HTML`?G.ownerDocument.body:G).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{G.removeChild(n.stateNode)}catch(e){Z(n,t,e)}}break;case 18:G!==null&&(cl?(e=G,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(G,n.stateNode));break;case 4:r=G,i=cl,G=n.stateNode.containerInfo,cl=!0,ll(e,t,n),G=r,cl=i;break;case 0:case 11:case 14:case 15:Uc(2,n,t),W||Uc(4,n,t),ll(e,t,n);break;case 1:W||(qc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Gc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:W=(r=W)||n.memoizedState!==null,ll(e,t,n),W=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new rl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new rl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){G=c.stateNode,cl=!1;break a}break;case 5:G=c.stateNode,cl=!1;break a;case 3:case 4:G=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(G===null)throw Error(i(160));ul(o,s,a),G=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Uc(3,e,e.return),Hc(3,e),Uc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(W||n===null||qc(n,n.return)),r&64&&tl&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(W||n===null||qc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[mt]||o[st]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Pd(o,r,n),o[st]=e,bt(o),r=o;break a;case`link`:var s=Vf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Vf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Pd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[st]=e,bt(o),r=o}e.stateNode=r}else Hf(a,e.type,e.stateNode)}else e.stateNode=If(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&Yc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Hf(a,e.type,e.stateNode):If(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(W||n===null||qc(n,n.return)),n!==null&&r&4&&Yc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(W||n===null||qc(n,n.return)),e.flags&32){a=e.stateNode;try{Kt(a,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Yc(e,a,n===null?a:n.memoizedProps)),r&1024&&(nl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Bf=null,a=gl,gl=gf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}nl&&(nl=!1,yl(e));break;case 4:r=gl,gl=gf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=Oe()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=tl,d=W;if(tl=u||a,W=d||l,hl(t,e),W=d,tl=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||tl||W||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?$d(m,!0):$d(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Xc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;$c(e,Zc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(Kt(o,``),n.flags&=-33),$c(e,Zc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Qc(e,Zc(e),s);break;default:throw Error(i(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)ol(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Uc(4,t,t.return),xl(t);break;case 1:qc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Gc(t,t.return,n),xl(t);break;case 27:pf(t.stateNode);case 26:case 5:qc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Hc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Xa(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Wc(a),Kc(a,a.return);break;case 27:el(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Jc(a),Kc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Kc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&la(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Hc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&la(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Hc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Gf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=gf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Uc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];il=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Uc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;il!==null;){var n=il;switch(n.tag){case 0:case 11:case 15:Uc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:la(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,il=r;else a:for(n=e;il!==null;){r=il;var i=r.sibling,a=r.return;if(sl(r),r===n){il=null;break a}if(i!==null){i.return=a,il=i;break a}il=a}}}var Ll={getCacheForType:function(e){var t=ta(sa),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ta(sa).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,K=0,q=null,J=null,Y=0,X=0,zl=null,Bl=!1,Vl=!1,Hl=!1,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return K&2&&Y!==0?Y&-Y:O.T===null?it():dd()}function mu(){if(Jl===0){if(!(Y&536870912)||z){var e=Ge;Ge<<=1,!(Ge&3932160)&&(Ge=262144),Jl=e}else Jl=536870912}return e=ro.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===q&&(X===2||X===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Y,Jl,!1)),Qe(e,n),(!(K&2)||e!==q)&&(e===q&&(!(K&2)&&(Kl|=n),Wl===4&&yu(e,Y,Jl,!1)),rd(e))}function gu(e,t,n){if(K&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Je(e,t),a=r?Au(e,t):Ou(e,t,!0),o=r;do{if(a===0){Vl&&!r&&yu(e,t,0,!1);break}if(n=e.current.alternate,o&&!vu(n)){a=Ou(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,s).flags|=256),s=Ou(c,s,!1),s!==2){if(Hl&&!l){c.errorRecoveryDisabledLanes|=o,Kl|=o,a=4;break a}o=Zl,Zl=a,o!==null&&(Zl===null?Zl=o:Zl.push.apply(Zl,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Bl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=$l+300-Oe(),10<a)){if(yu(r,t,Jl,!Bl),qe(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Kd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,`Throttled`,-0,0),a);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,o,null,-0,0)}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:en},jl(t,a,d);var m=(a&62914560)===a?$l-Oe():(a&4194048)===a?eu-Oe():0;if(m=qf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Sr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Be(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&$e(e,n,t)}function bu(){return K&6?!0:(id(0,!1),!1)}function xu(){if(J!==null){if(X===0)var e=J.return;else e=J,qi=Ki=null,Ao(e),Ma=null,Na=0,e=J;for(;e!==null;)Vc(e.alternate,e),e=e.return;J=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),q=e,J=n=ui(e.current,null),Y=t,X=0,zl=null,Bl=!1,Vl=Je(e,t),Hl=!1,Yl=Jl=ql=Kl=Gl=Wl=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Be(r),a=1<<i;t|=e[i],r&=~a}return Ul=t,ei(),n}function Cu(e,t){B=null,O.H=Bs,t===Sa||t===wa?(t=Aa(),X=3):t===Ca?(t=Aa(),X=4):X=t===ic?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,zl=t,J===null&&(Wl=1,Qs(e,vi(t,e.current)))}function wu(){var e=ro.current;return e===null?!0:(Y&4194048)===Y?io===null:(Y&62914560)===Y||Y&536870912?e===io:!1}function Tu(){var e=O.H;return O.H=Bs,e===null?Bs:e}function Eu(){var e=O.A;return O.A=Ll,e}function Du(){Wl=4,Bl||(Y&4194048)!==Y&&ro.current!==null||(Vl=!0),!(Gl&134217727)&&!(Kl&134217727)||q===null||yu(q,Y,Jl,!1)}function Ou(e,t,n){var r=K;K|=2;var i=Tu(),a=Eu();(q!==e||Y!==t)&&(nu=null,Su(e,t)),t=!1;var o=Wl;a:do try{if(X!==0&&J!==null){var s=J,c=zl;switch(X){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:ro.current===null&&(t=!0);var l=X;if(X=0,zl=null,Pu(e,s,c,l),n&&Vl){o=0;break a}break;default:l=X,X=0,zl=null,Pu(e,s,c,l)}}ku(),o=Wl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,qi=Ki=null,K=r,O.H=i,O.A=a,J===null&&(q=null,Y=0,ei()),o}function ku(){for(;J!==null;)Mu(J)}function Au(e,t){var n=K;K|=2;var r=Tu(),a=Eu();q!==e||Y!==t?(nu=null,tu=Oe()+500,Su(e,t)):Vl=Je(e,t);a:do try{if(X!==0&&J!==null){t=J;var o=zl;b:switch(X){case 1:X=0,zl=null,Pu(e,t,o,1);break;case 2:case 9:if(Ea(o)){X=0,zl=null,Nu(t);break}t=function(){X!==2&&X!==9||q!==e||(X=7),rd(e)},o.then(t,t);break a;case 3:X=7;break a;case 4:X=5;break a;case 7:Ea(o)?(X=0,zl=null,Nu(t)):(X=0,zl=null,Pu(e,t,o,7));break;case 5:var s=null;switch(J.tag){case 26:s=J.memoizedState;case 5:case 27:var c=J;if(s?Wf(s):c.stateNode.complete){X=0,zl=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,Fu(u))}break b}}X=0,zl=null,Pu(e,t,o,5);break;case 6:X=0,zl=null,Pu(e,t,o,6);break;case 8:xu(),Wl=6;break a;default:throw Error(i(462))}}ju();break}catch(t){Cu(e,t)}while(1);return qi=Ki=null,O.H=r,O.A=a,K=n,J===null?(q=null,Y=0,ei(),Wl):0}function ju(){for(;J!==null&&!Ee();)Mu(J)}function Mu(e){var t=Nc(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=vc(n,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=vc(n,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:Ao(t);default:Vc(n,t),t=J=di(t,Ul),t=Nc(n,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Pu(e,t,n,r){qi=Ki=null,Ao(t),Ma=null,Na=0;var i=t.return;try{if(rc(e,i,t,n,Y)){Wl=1,Qs(e,vi(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;Wl=1,Qs(e,vi(n,e.current)),J=null;return}t.flags&32768?(z||r===1?e=!0:Vl||Y&536870912?e=!1:(Bl=e=!0,(r===2||r===9||r===3||r===6)&&(r=ro.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Bl);return}e=t.return;var n=zc(t.alternate,t,Ul);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Wl===0&&(Wl=5)}function Iu(e,t){do{var n=Bc(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);Wl=6,J=null}function Lu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(K&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=$r,L(e,n,o,s,c,l),e===q&&(J=q=null,Y=0),ou=t,au=e,su=n,cu=o,lu=a,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(Me,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=O.T,O.T=null,a=k.p,k.p=2,s=K,K|=4;try{al(e,t,n)}finally{K=s,k.p=a,O.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=K;K|=4;try{_l(t,e);var a=zd,o=Dr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Er(s.ownerDocument.documentElement,s)){if(c!==null&&Or(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Tr(s,h),v=Tr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}sp=!!Rd,zd=Rd=null}finally{K=i,k.p=r,O.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=K;K|=4;try{ol(e,t.alternate,t)}finally{K=i,k.p=r,O.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,De();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),rt(n),t=t.stateNode,Re&&typeof Re.onCommitFiberRoot==`function`)try{Re.onCommitFiberRoot(Le,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{O.T=t,k.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,la(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=rt(su),r=O.T,a=k.p;try{k.p=32>n?32:n,O.T=null,n=lu,lu=null;var o=au,s=su;if(iu=0,ou=au=null,su=0,K&6)throw Error(i(331));var c=K;if(K|=4,Pl(o.current),El(o,o.current,s,n),K=c,id(0,!1),Re&&typeof Re.onPostCommitFiberRoot==`function`)try{Re.onPostCommitFiberRoot(Le,o)}catch{}return!0}finally{k.p=a,O.T=r,Vu(e,t)}}function Wu(e,t,n){t=vi(n,t),t=ec(e.stateNode,t,2),e=Wa(e,t,2),e!==null&&(Qe(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=vi(n,e),n=tc(2),r=Wa(t,n,2),r!==null&&(nc(n,r,t,e),Qe(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>Oe()-$l?!(K&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=Xe()),e=ri(e,t),e!==null&&(Qe(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return we(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Be(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Y,a=qe(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,ld(r,a))}r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=Oe(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Be(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=q,n=Y,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(X===2||X===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Te(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Te(r),rt(n)){case 2:case 8:n=je;break;case 32:n=Me;break;case 268435456:n=Pe;break;default:n=Me}return r=cd.bind(null,e),n=we(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Te(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Y;return r=qe(e,e===q?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,Oe()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Yd(function(){K&6?we(Ae,ad):od()})}function dd(){if(nd===0){var e=fa;e===0&&(e=We,We<<=1,!(We&261888)&&(We=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:$t(``+e)}function pd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[ct]||null).action),o=r.submitter;o&&(t=(t=o[ct]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Sn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Es(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Es(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Jr.length;hd++){var gd=Jr[hd];Yr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Yr(Br,`onAnimationEnd`),Yr(Vr,`onAnimationIteration`),Yr(Hr,`onAnimationStart`),Yr(`dblclick`,`onDoubleClick`),Yr(`focusin`,`onFocus`),Yr(`focusout`,`onBlur`),Yr(Ur,`onTransitionRun`),Yr(Wr,`onTransitionStart`),Yr(Gr,`onTransitionCancel`),Yr(Kr,`onTransitionEnd`),wt(`onMouseEnter`,[`mouseout`,`mouseover`]),wt(`onMouseLeave`,[`mouseout`,`mouseover`]),wt(`onPointerEnter`,[`pointerout`,`pointerover`]),wt(`onPointerLeave`,[`pointerout`,`pointerover`]),Ct(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Ct(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Ct(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Ct(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Ct(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Xr(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[ut];n===void 0&&(n=t[ut]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!dn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function wd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=gt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}cn(function(){var r=a,i=nn(n),s=[];a:{var c=qr.get(e);if(c!==void 0){var l=Sn,u=e;switch(e){case`keypress`:if(_n(n)===0)break a;case`keydown`:case`keyup`:l=Bn;break;case`focusin`:u=`focus`,l=jn;break;case`focusout`:u=`blur`,l=jn;break;case`beforeblur`:case`afterblur`:l=jn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=kn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=An;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Hn;break;case Br:case Vr:case Hr:l=Mn;break;case Kr:l=Un;break;case`scroll`:case`scrollend`:l=wn;break;case`wheel`:l=Wn;break;case`copy`:case`cut`:case`paste`:l=Nn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Vn;break;case`toggle`:case`beforetoggle`:l=Gn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=ln(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==tn&&(u=n.relatedTarget||n.fromElement)&&(gt(u)||u[lt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?gt(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=kn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Vn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:vt(l),h=u==null?c:vt(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,gt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Dd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Od(s,c,l,d,!1),u!==null&&f!==null&&Od(s,f,u,d,!0)}}a:{if(c=r?vt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ur;else if(ar(c)){if(dr)v=br;else{v=vr;var y=_r}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Xt(r.elementType)&&(v=ur):v=yr;if(v&&=v(e,r)){or(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ht(c,`number`,c.value)}switch(y=r?vt(r):window,e){case`focusin`:(ar(y)||y.contentEditable===`true`)&&(Ar=y,jr=r,Mr=null);break;case`focusout`:Mr=jr=Ar=null;break;case`mousedown`:Nr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Nr=!1,Pr(s,n,i);break;case`selectionchange`:if(kr)break;case`keydown`:case`keyup`:Pr(s,n,i)}var b;if(qn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else tr?$n(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Xn&&n.locale!==`ko`&&(tr||x!==`onCompositionStart`?x===`onCompositionEnd`&&tr&&(b=gn()):(pn=i,mn=`value`in pn?pn.value:pn.textContent,tr=!0)),y=Ed(r,x),0<y.length&&(x=new Pn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=er(n),b!==null&&(x.data=b)))),(b=Yn?nr(e,n):rr(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new Pn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),md(s,e,r,n,i)}yd(s,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=ln(e,n),i!=null&&r.unshift(Td(e,i,a)),i=ln(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=ln(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=ln(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Kt(e,``+r);break;case`className`:At(e,`class`,r);break;case`tabIndex`:At(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:At(e,n,r);break;case`style`:Yt(e,r,o);break;case`data`:if(t!==`object`){At(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,a.name,a,null),$(e,t,`formEncType`,a.formEncType,a,null),$(e,t,`formMethod`,a.formMethod,a,null),$(e,t,`formTarget`,a.formTarget,a,null)):($(e,t,`encType`,a.encType,a,null),$(e,t,`method`,a.method,a,null),$(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=$t(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=en);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=$t(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),kt(e,`popover`,r);break;case`xlinkActuate`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:jt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:jt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:kt(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Zt.get(n)||n,kt(e,n,r))}}function Nd(e,t,n,r,a,o){switch(n){case`style`:Yt(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Kt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Kt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=en);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[ct]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):kt(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,o,s,n,null)}}a&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:$(e,t,r,d,n,null)}}Vt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Q(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:$(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&Ut(e,!!r,n,!0):Ut(e,!!r,t,!1);return;case`textarea`:for(s in Q(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:$(e,t,s,c,n,null)}Gt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:$(e,t,u,r,n,null)}return;default:if(Xt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Bt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||$(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&$(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?Ut(e,!!n,n?[]:``,!1):Ut(e,!!n,t,!0)):Ut(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&$(e,t,s,a,r,o)}Wt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(Xt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Id(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e!==Wd&&(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body)}n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function ef(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:ef(n),ht(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[mt])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ht(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?Os(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=zt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+zt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+zt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+zt(n.imageSizes)+`"]`)):i+=`[href="`+zt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=f({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+zt(r)+`"][href="`+zt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=f({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=yt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=f({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);bt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=f({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var a=(a=de.current)?gf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=yt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var o=yt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(jf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),o||Nf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=yt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Af(e){return`href="`+zt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return f({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),bt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+zt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+zt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var a=f({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Pd(r,`style`,a),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Af(n.href);var o=e.querySelector(jf(a));if(o)return t.state.loading|=4,t.instance=o,bt(o),o;r=Mf(n),(a=mf.get(a))&&Rf(r,a),o=(e.ownerDocument||e).createElement(`link`),bt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Pd(o,`link`,r),t.state.loading|=4,Lf(o,n.precedence,e),t.instance=o;case`script`:return o=Pf(n.src),(a=e.querySelector(Ff(o)))?(t.instance=a,bt(a),a):(r=n,(a=mf.get(o))&&(r=f({},n),zf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),bt(a),Pd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[mt]||a[st]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:b,Provider:null,Consumer:null,_currentValue:ae,_currentValue2:ae,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ze(0),this.hiddenUpdates=Ze(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ci(3,null,null,t),e.current=a,a.stateNode=e,t=ca(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Va(a),e}function tp(e){return e?(e=oi,e):oi}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=Ua(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Wa(e,r,t),n!==null&&(hu(n,e,t),Ga(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=ri(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=nt(t);var n=ri(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Be(o);s.entanglements[1]|=c,o&=~c}rd(a),!(K&6)&&(tu=Oe()+500,id(0,!1))}}break;case 31:case 13:s=ri(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=nn(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=gt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return fp=e,null}function mp(e){switch(e){case`beforetoggle`: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`toggle`: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 2;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`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(ke()){case Ae:return 2;case je:return 8;case Me:case Ne:return 32;case Pe:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`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`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=_t(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=gt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,at(e.priority,function(){op(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,at(e.priority,function(){op(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);tn=r,n.target.dispatchEvent(r),tn=null}else return t=_t(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(pp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,Es(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[ct]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[ct]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[lt]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=it();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=n.version;if(Lp!==`19.2.8`)throw Error(i(527,Lp,`19.2.8`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Le=zp.inject(Rp),Re=zp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Ys,s=Xs,c=Zs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=ep(e,1,!1,null,null,n,r,null,o,s,c,Pp),e[lt]=t.current,Sd(e),new Fp(t)}})),We=n(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=Ue()}));function Ge(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:l(t.components[n].defaultProps,r)}var I=e(ce(),1);function Ke(e,t,n,r,i){let[a,o]=I.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return ie(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var qe={...I}.useSyncExternalStore;function Je(e,t,n,r,i){let a=I.useCallback(()=>t,[t]),o=I.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=I.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return qe(c,s,o)}function Ye(e={}){let{themeId:t}=e;return function(e,n={}){let i=r();i&&t&&(i=i[t]||i);let a=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:o=!1,matchMedia:s,ssrMatchMedia:c=null,noSsr:l=!1}=Ge({name:`MuiUseMediaQuery`,props:n,theme:i}),u=I.useMemo(()=>s===void 0?a===null?null:a.bind(window):s,[s,a]),d=typeof e==`function`?e(i):e;return d=d.replace(/^@media( ?)/m,``),d.includes(`print`)&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.",`Using the print media query to modify print styles can lead to unexpected results.`,"Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(qe===void 0?Ke:Je)(d,o,u,c,l)}}Ye();var Xe=I.createContext(null);function Ze(){return I.useContext(Xe)}var Qe=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`,L=ne();function $e(e,t){return typeof t==`function`?t(e):{...e,...t}}function et(e){let{children:t,theme:n}=e,r=Ze(),i=I.useMemo(()=>{let e=r===null?{...n}:$e(r,n);return e!=null&&(e[Qe]=r!==null),e},[n,r]);return(0,L.jsx)(Xe.Provider,{value:i,children:t})}function tt(e){let t=r(),n=fe()||``,{modularCssLayers:i}=e,a=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return a=!i||t!==null?``:typeof i==`string`?i.replace(/mui(?!\.)/g,a):`@layer ${a};`,ie(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(a){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=a,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[a,n]),a?(0,L.jsx)(ve,{styles:a}):null}var nt={};function rt(e,t,n,r=!1){return I.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function it(e){let{children:t,theme:n,themeId:i}=e,a=r(nt),o=Ze()||nt,s=rt(i,a,n),l=rt(i,o,n,!0),u=(i?s[i]:s).direction===`rtl`,d=tt(s);return(0,L.jsx)(et,{theme:l,children:(0,L.jsx)(re.Provider,{value:s,children:(0,L.jsx)(_,{value:u,children:(0,L.jsxs)(c,{value:i?s[i].components:s.components,children:[d,t]})})})})}var at=`mode`,ot=`color-scheme`,st=`data-color-scheme`;({...I}).useSyncExternalStore;function ct(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=at,colorSchemeStorageKey:a=ot,attribute:o=st,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove('${e}'.replace('%s', light), '${e}'.replace('%s', dark));
      ${s}.classList.add('${e}'.replace('%s', colorScheme));`}let d=u.match(/\[([^[\]]+)\]/);if(d){let[e,t]=d[1].split(`=`);t||(l+=`${s}.removeAttribute('${e}'.replace('%s', light));
      ${s}.removeAttribute('${e}'.replace('%s', dark));`),l+=`
      ${s}.setAttribute('${e}'.replace('%s', colorScheme), ${t?`${t}.replace('%s', colorScheme)`:`""`});`}else u!==`.%s`&&(l+=`${s}.setAttribute('${u}', colorScheme);`);return(0,L.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${i}') || '${t}';
  const dark = localStorage.getItem('${a}-dark') || '${r}';
  const light = localStorage.getItem('${a}-light') || '${n}';
  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) {
    ${l}
  }
} catch(e){}})();`}},`mui-color-scheme-init`)}function lt(){}var ut=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return lt;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function dt(){}function ft(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function pt(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function mt(e){return pt(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function ht(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=at,colorSchemeStorageKey:o=ot,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=ut,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=I.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=I.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=I.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=I.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:ft(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=I.useState(l||!d);I.useEffect(()=>{v(!0)},[]);let y=mt(h),b=I.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:ft(r)}})},[f,t]),x=I.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return pt(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=I.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=I.useRef(S);return C.current=S,I.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),I.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||dt,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||dt,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||dt;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var gt=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function _t(e){let{themeId:t,theme:n={},modeStorageKey:r=at,colorSchemeStorageKey:i=ot,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=I.createContext(void 0),u=()=>I.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=I.useRef(!1),ee=Ze(),te=I.useContext(l),ne=!!te&&!b,E=I.useMemo(()=>u||(typeof n==`function`?n():n),[u]),re=E[t],D=re||E,{colorSchemes:O=d,components:k=f,cssVarPrefix:ae}=D,oe=Object.keys(O).filter(e=>!!O[e]).join(`,`),A=I.useMemo(()=>oe.split(`,`),[oe]),se=typeof o==`string`?o:o.light,j=typeof o==`string`?o:o.dark,{mode:ce,setMode:M,systemMode:N,lightColorScheme:le,darkColorScheme:ue,colorScheme:de,setColorScheme:fe}=ht({supportedColorSchemes:A,defaultLightColorScheme:se,defaultDarkColorScheme:j,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:O[se]&&O[j]?S:O[D.defaultColorScheme]?.palette?.mode||D.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),pe=ce,P=de;ne&&(pe=te.mode,P=te.colorScheme);let me=P||D.defaultColorScheme;D.vars&&!C&&(me=D.defaultColorScheme);let he=I.useMemo(()=>{let e=D.generateThemeVars?.()||D.vars,t={...D,components:k,colorSchemes:O,cssVarPrefix:ae,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),me){let e=O[me];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[D,me,k,O,ae]),ge=D.colorSchemeSelector;ie(()=>{if(P&&y&&ge&&ge!==`media`){let e=ge,t=ge;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...A.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,P));else{let e=t.replace(`%s`,P).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||A.forEach(e=>{y.removeAttribute(t.replace(P,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,P)}}},[P,ge,y,A]),I.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(gt)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[P,h,v]),I.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let _e=I.useMemo(()=>({allColorSchemes:A,colorScheme:P,darkColorScheme:ue,lightColorScheme:le,mode:pe,setColorScheme:fe,setMode:M,systemMode:N}),[A,P,ue,le,pe,fe,M,N,he.colorSchemeSelector]),ve=!0;(x||D.cssVariables===!1||ne&&ee?.cssVarPrefix===ae)&&(ve=!1);let ye=(0,L.jsxs)(I.Fragment,{children:[(0,L.jsx)(it,{themeId:re?t:void 0,theme:he,children:c}),ve&&(0,L.jsx)(be,{styles:he.generateStyleSheets?.()||[]})]});return ne?ye:(0,L.jsx)(l.Provider,{value:_e,children:ye})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>ct({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function vt(e){return y(`MuiMenuItem`,e)}var yt=b(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function bt({theme:e,...t}){let n=`$$material`in e?e[O]:void 0;return(0,L.jsx)(it,{...t,themeId:n?O:void 0,theme:n||e})}var xt={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:St,useColorScheme:Ct,getInitColorSchemeScript:wt}=_t({themeId:O,theme:()=>s({cssVariables:!0}),colorSchemeStorageKey:xt.colorSchemeStorageKey,modeStorageKey:xt.modeStorageKey,defaultColorScheme:{light:xt.defaultLightColorScheme,dark:xt.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:d(e.palette,e.typography)};return t.unstable_sx=function(e){return C({sx:e,theme:this})},t}}),Tt=St;function Et({theme:e,...t}){let n=I.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[O]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,L.jsx)(bt,{theme:n,...t}):(0,L.jsx)(Tt,{theme:e,...t})}function Dt(e){return y(`MuiTypography`,e)}b(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]);var Ot=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:a,classes:o}=e,s={root:[`root`,a,e.align!==`inherit`&&`align${i(t)}`,n&&`gutterBottom`,r&&`noWrap`]};return v(s,Dt,o)},kt=o(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${i(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(g(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Le()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${i(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),At={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},jt=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=At,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||At[l]||`span`,m=Ot(f);return(0,L.jsx)(kt,{as:p,ref:t,className:x(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function Mt(e){return y(`MuiAppBar`,e)}b(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var Nt=e=>{let{color:t,position:n,classes:r}=e,a={root:[`root`,`color${i(t)}`,`position${i(n)}`]};return v(a,Mt,r)},Pt=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,Ft=o(Te,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${i(n.position)}`],t[`color${i(n.color)}`]]}})(g(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Le([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText,...e.focusVisible&&m(`0 0 0 4px ${(e.vars||e).palette.background.default}`)}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?Pt(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?Pt(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),It=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a},l=Nt(c);return(0,L.jsx)(Ft,{square:!0,component:`header`,ownerState:c,elevation:4,className:x(l.root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})});function Lt(e){return y(`MuiButton`,e)}var Rt=b(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),zt=I.createContext({}),Bt=I.createContext(void 0),Vt=e=>{let{color:t,disableElevation:n,fullWidth:r,size:a,variant:o,loading:s,loadingPosition:c,classes:l}=e,u={root:[`root`,s&&`loading`,o,`size${i(a)}`,`color${i(t)}`,n&&`disableElevation`,r&&`fullWidth`,s&&`loadingPosition${i(c)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},d=v(u,Lt,l);return{...l,...d}},Ht=[{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}}}],Ut=o(D,{shouldForwardProp:e=>a(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${i(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(g(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...oe(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${Rt.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Rt.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${Rt.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)`,[`&.${Rt.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(Le()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${Rt.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??`none`},"&:active":{boxShadow:`none`},[`&.${Rt.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loadingPosition:`center`},style:{...oe(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${Rt.loading}`]:{color:`transparent`}}}]}})),Wt=o(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...oe(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...Ht]})),Gt=o(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...oe(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...Ht]})),Kt=o(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({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:(e.vars||e).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}}]})),qt=o(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),Jt=I.forwardRef(function(e,t){let n=I.useContext(zt),r=I.useContext(Bt),i=l(n,e),a=ae({props:i,name:`MuiButton`}),{children:o,color:s=`primary`,component:c=`button`,className:u,disabled:d=!1,disableElevation:f=!1,disableFocusRipple:p=!1,endIcon:m,focusVisibleClassName:h,fullWidth:g=!1,id:_,loading:v=null,loadingIndicator:y,loadingPosition:b=`center`,size:S=`medium`,startIcon:C,type:w,variant:T=`text`,...ee}=a,te=P(_),ne=y??(0,L.jsx)(de,{"aria-labelledby":te,color:`inherit`,size:16}),E={...a,color:s,component:c,disabled:d,disableElevation:f,disableFocusRipple:p,fullWidth:g,loading:v,loadingIndicator:ne,loadingPosition:b,size:S,type:w,variant:T},re=Vt(E),ie=(C||v&&b===`start`)&&(0,L.jsx)(Wt,{className:re.startIcon,ownerState:E,children:C||(0,L.jsx)(qt,{className:re.loadingIconPlaceholder,ownerState:E})}),D=(m||v&&b===`end`)&&(0,L.jsx)(Gt,{className:re.endIcon,ownerState:E,children:m||(0,L.jsx)(qt,{className:re.loadingIconPlaceholder,ownerState:E})}),O=r||``,k=typeof v==`boolean`?(0,L.jsx)(`span`,{className:re.loadingWrapper,style:{display:`contents`},children:v&&(0,L.jsx)(Kt,{className:re.loadingIndicator,ownerState:E,children:ne})}):null,{root:oe,...A}=re;return(0,L.jsxs)(Ut,{ownerState:E,className:x(n.className,re.root,u,O),component:c,disabled:d||v,focusRipple:!p,focusVisibleClassName:x(re.focusVisible,h),ref:t,internalNativeButton:!0,type:w,id:v?te:_,...ee,classes:A,children:[ie,b!==`end`&&k,o,b===`end`&&k,D]})});function Yt(e){return e.substring(2).toLowerCase()}function Xt(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function Zt(e){let{children:t,disableReactTree:n=!1,mouseEvent:r=`onClick`,onClickAway:i,touchEvent:a=`onTouchEnd`}=e,o=I.useRef(!1),s=I.useRef(null),c=I.useRef(!1),l=I.useRef(!1);I.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);let u=p(he(t),s),d=f(e=>{let t=l.current;l.current=!1;let r=T(s.current);if(!c.current||!s.current||`clientX`in e&&Xt(e,r))return;if(o.current){o.current=!1;return}let a;a=e.composedPath?e.composedPath().includes(s.current):!Ie(r.documentElement,e.target)||Ie(s.current,e.target),!a&&(n||!t)&&i(e)}),m=e=>n=>{l.current=!0;let r=t.props[e];r&&r(n)},h={ref:u};return a!==!1&&(h[a]=m(a)),I.useEffect(()=>{if(a!==!1){let e=Yt(a),t=T(s.current),n=()=>{o.current=!0};return t.addEventListener(e,d),t.addEventListener(`touchmove`,n),()=>{t.removeEventListener(e,d),t.removeEventListener(`touchmove`,n)}}},[d,a]),r!==!1&&(h[r]=m(r)),I.useEffect(()=>{if(r!==!1){let e=Yt(r),t=T(s.current);return t.addEventListener(e,d),()=>{t.removeEventListener(e,d)}}},[d,r]),I.cloneElement(t,h)}var Qt=typeof _e({})==`function`,$t=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),en=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),tn=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:$t(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...en(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},nn=`mui-ecs`,rn=e=>{let t=tn(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${nn})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${nn}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${nn}))`]:{colorScheme:r.palette?.mode}}}),t},an=_e(Qt?({theme:e,enableColorScheme:t})=>tn(e,t):({theme:e})=>rn(e));function on(e){let{children:t,enableColorScheme:n=!1}=ae({props:e,name:`MuiCssBaseline`});return(0,L.jsxs)(I.Fragment,{children:[Qt&&(0,L.jsx)(an,{enableColorScheme:n}),!Qt&&!n&&(0,L.jsx)(`span`,{className:nn,style:{display:`none`}}),t]})}function sn(e){return y(`MuiDialog`,e)}b(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var cn=I.createContext({}),ln=o(Ae,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),un=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:o}=e,s={root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${i(n)}`],paper:[`paper`,`paperWidth${i(String(r))}`,a&&`paperFullWidth`,o&&`paperFullScreen`]};return v(s,sn,t)},dn=o(Ce,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),fn=o(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${i(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),pn=o(Te,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${i(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(g(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),mn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiDialog`}),r=ee(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:c,className:l,fullScreen:u=!1,fullWidth:d=!1,maxWidth:f=`sm`,onClick:p,onClose:m,open:h,PaperComponent:g=Te,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:C=i,...w}=n,T={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},te=un(T),ne=I.useRef(),E=e=>{ne.current=e.target===e.currentTarget},re=e=>{p&&p(e),ne.current&&(ne.current=null,m&&m(e,`backdropClick`))},ie=fe(o),D=I.useMemo(()=>({titleId:ie}),[ie]),O={slots:y,slotProps:b},[k,oe]=S(`root`,{elementType:dn,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:T,className:x(te.root,l),ref:t}),[A,se]=S(`backdrop`,{elementType:ln,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:T,className:te.backdrop}),[j,ce]=S(`paper`,{elementType:pn,shouldForwardComponentProp:!0,externalForwardedProps:O,ownerState:T,className:te.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":ie,"aria-modal":s,tabIndex:-1,[we]:``}}),[M,N]=S(`container`,{elementType:fn,externalForwardedProps:O,ownerState:T,className:te.container}),[le,ue]=S(`transition`,{elementType:Oe,externalForwardedProps:O,ownerState:T,additionalProps:{appear:!0,in:h,timeout:C,role:`presentation`}});return(0,L.jsx)(k,{closeAfterTransition:!0,slots:{backdrop:A},slotProps:{backdrop:{transitionDuration:C,...se}},onClose:m,open:h,onClick:re,...oe,...w,children:(0,L.jsx)(le,{...ue,children:(0,L.jsx)(M,{onMouseDown:E,...N,children:(0,L.jsx)(j,{as:g,...ce,children:(0,L.jsx)(cn.Provider,{value:D,children:c})})})})})});function hn(e){return y(`MuiDialogActions`,e)}b(`MuiDialogActions`,[`root`,`spacing`]);var gn=e=>{let{classes:t,disableSpacing:n}=e;return v({root:[`root`,!n&&`spacing`]},hn,t)},_n=o(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),vn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=gn(o);return(0,L.jsx)(_n,{className:x(s.root,r),ownerState:o,ref:t,...a})});function yn(e){return y(`MuiDialogContent`,e)}b(`MuiDialogContent`,[`root`,`dividers`]);var bn=b(`MuiDialogTitle`,[`root`]),xn=e=>{let{classes:t,dividers:n}=e;return v({root:[`root`,n&&`dividers`]},yn,t)},Sn=o(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(g(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${bn.root} + &`]:{paddingTop:0}}}]}))),Cn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=xn(o);return(0,L.jsx)(Sn,{className:x(s.root,r),ownerState:o,ref:t,...a})});function wn(e){return y(`MuiDivider`,e)}var Tn=b(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),En=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return v({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},wn,r)},Dn=o(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(g(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),On=o(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(g(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),kn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,role:l=s===`hr`?void 0:`separator`,textAlign:u=`center`,variant:d=`fullWidth`,...f}=n,p={...n,absolute:r,component:s,flexItem:c,orientation:o,role:l,textAlign:u,variant:d},m=En(p);return(0,L.jsx)(Dn,{as:s,className:x(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,L.jsx)(On,{className:m.wrapper,ownerState:p,children:i}):null})});function An(e){return y(`MuiFab`,e)}var jn=b(`MuiFab`,[`root`,`primary`,`secondary`,`extended`,`circular`,`focusVisible`,`disabled`,`colorInherit`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`info`,`error`,`warning`,`success`]),Mn=e=>{let{color:t,variant:n,classes:r,size:a}=e,o={root:[`root`,n,`size${i(a)}`,t===`inherit`?`colorInherit`:t]},s=v(o,An,r);return{...r,...s}},Nn=o(D,{name:`MuiFab`,slot:`Root`,shouldForwardProp:e=>a(e)||e===`classes`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${i(n.size)}`],n.color===`inherit`&&t.colorInherit,t[i(n.size)],t[n.color]]}})(g(({theme:e})=>({...e.typography.button,minHeight:36,...oe(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),borderRadius:`50%`,padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:`none`},[`&.${jn.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},variants:[{props:{size:`small`},style:{width:40,height:40}},{props:{size:`medium`},style:{width:48,height:48}},{props:{variant:`extended`},style:{borderRadius:24,padding:`0 16px`,width:`auto`,minHeight:`auto`,minWidth:48,height:48}},{props:{variant:`extended`,size:`small`},style:{width:`auto`,padding:`0 8px`,borderRadius:17,minWidth:34,height:34}},{props:{variant:`extended`,size:`medium`},style:{width:`auto`,padding:`0 16px`,borderRadius:20,minWidth:40,height:40}},{props:{color:`inherit`},style:{color:`inherit`}}]})),g(({theme:e})=>({variants:[...Object.entries(e.palette).filter(Le([`dark`,`contrastText`])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),g(({theme:e})=>({[`&.${jn.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Pn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiFab`}),{children:r,className:i,color:a=`default`,component:o=`button`,disabled:s=!1,disableFocusRipple:c=!1,focusVisibleClassName:l,size:u=`large`,variant:d=`circular`,...f}=n,p={...n,color:a,component:o,disabled:s,disableFocusRipple:c,size:u,variant:d},m=Mn(p),{root:h,...g}=m;return(0,L.jsx)(Nn,{className:x(m.root,i),component:o,internalNativeButton:!0,disabled:s,focusRipple:!c,focusVisibleClassName:x(m.focusVisible,l),ownerState:p,ref:t,...f,classes:g,children:r})}),Fn,In=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${i(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},Ln=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:o,variant:s}=e,c={root:[`root`,n&&`disablePointerEvents`,a&&`position${i(a)}`,s,r&&`hiddenLabel`,o&&`size${i(o)}`]};return v(c,Se,t)},Rn=o(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:In})(g(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${De.positionStart}&:not(.${De.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),zn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiInputAdornment`}),{children:r,className:i,component:a=`div`,disablePointerEvents:o=!1,disableTypography:s=!1,position:c,variant:l,...u}=n,d=Ne()||{},f=l;l&&d.variant,d&&!f&&(f=d.variant);let p={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:c,variant:f},m=Ln(p);return(0,L.jsx)(ye.Provider,{value:null,children:(0,L.jsx)(Rn,{as:a,ownerState:p,className:x(m.root,i),ref:t,...u,children:typeof r==`string`&&!s?(0,L.jsx)(jt,{color:`textSecondary`,children:r}):(0,L.jsxs)(I.Fragment,{children:[c===`start`?Fn||=(0,L.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:`​`}):null,r]})})})}),Bn=b(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),Vn=b(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),Hn=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},Un=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=v({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},vt,o);return{...o,...s}},Wn=o(D,{shouldForwardProp:e=>a(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:Hn})(g(({theme:e})=>({...e.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:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${yt.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${yt.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${yt.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?A(1):{[`&.${yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Tn.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Tn.inset}`]:{marginLeft:52},[`& .${Vn.root}`]:{marginTop:0,marginBottom:0},[`& .${Vn.inset}`]:{paddingLeft:36},[`& .${Bn.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Bn.root} svg`]:{fontSize:`1.25rem`}}}]}))),Gn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=xe(),g=I.useContext(Re),_=I.useMemo(()=>({dense:a||g.dense||!1,disableGutters:s}),[g.dense,a,s]),v=Ee(),y=P(),b=v.suppressInitialFocusVisible,S=v.itemsFocusableWhenDisabled,C=I.useRef(null);Pe(()=>{r&&C.current&&ke(C.current,m)},[r]);let w={...n,dense:_.dense,divider:o,disableGutters:s},T=Un(n),{root:ee,...te}=T,ne=Fe({id:y,ref:t,disabled:n.disabled,focusableWhenDisabled:S,selected:n.selected}),E=h(C,ne.ref),re;return u===void 0?v.variant===`selectedMenu`?re=ne.tabIndex:(!n.disabled||S)&&(re=-1):re=u,(0,L.jsx)(Re.Provider,{value:_,children:(0,L.jsx)(Wn,{ref:E,role:l,"aria-checked":p,tabIndex:re,component:i,internalNativeButton:!1,focusableWhenDisabled:S,suppressFocusVisible:b,focusVisibleClassName:x(T.focusVisible,c),className:x(T.root,d),...f,ownerState:w,classes:te})})});function Kn(e={}){let{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:a}=e,o=E();I.useEffect(()=>{if(!i)return;function e(e){e.defaultPrevented||e.key===`Escape`&&r?.(e,`escapeKeyDown`)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[i,r]);let s=f((e,t)=>{r?.(e,t)}),c=f(e=>{!r||e==null||o.start(e,()=>{s(null,`timeout`)})});I.useEffect(()=>(i&&c(t),o.clear),[i,t,c,o]);let l=e=>{r?.(e,`clickaway`)},u=o.clear,d=I.useCallback(()=>{t!=null&&c(a??t*.5)},[t,a,c]),p=e=>t=>{let n=e.onBlur;n?.(t),d()},m=e=>t=>{let n=e.onFocus;n?.(t),u()},h=e=>t=>{let n=e.onMouseEnter;n?.(t),u()},g=e=>t=>{let n=e.onMouseLeave;n?.(t),d()};return I.useEffect(()=>{if(!n&&i)return window.addEventListener(`focus`,d),window.addEventListener(`blur`,u),()=>{window.removeEventListener(`focus`,d),window.removeEventListener(`blur`,u)}},[n,i,d,u]),{getRootProps:(t={})=>{let n={...te(e),...te(t)};return{role:`presentation`,...t,...n,onBlur:p(n),onFocus:m(n),onMouseEnter:h(n),onMouseLeave:g(n)}},onClickAway:l}}function qn(e){return y(`MuiSnackbarContent`,e)}b(`MuiSnackbarContent`,[`root`,`message`,`action`]);var Jn=e=>{let{classes:t}=e;return v({root:[`root`],action:[`action`],message:[`message`]},qn,t)},Yn=o(Te,{name:`MuiSnackbarContent`,slot:`Root`})(g(({theme:e})=>{let t=e.palette.mode===`light`?.8:.98;return{...e.focusVisible&&m(`0 0 0 4px ${(e.vars||e).palette.background.default}`),...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(u(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:u(e.palette.background.default,t),display:`flex`,alignItems:`center`,flexWrap:`wrap`,padding:`6px 16px`,flexGrow:1,[e.breakpoints.up(`sm`)]:{flexGrow:`initial`,minWidth:288}}})),Xn=o(`div`,{name:`MuiSnackbarContent`,slot:`Message`})({padding:`8px 0`}),Zn=o(`div`,{name:`MuiSnackbarContent`,slot:`Action`})({display:`flex`,alignItems:`center`,marginLeft:`auto`,paddingLeft:16,marginRight:-8}),Qn=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiSnackbarContent`}),{action:r,className:i,message:a,role:o=`alert`,...s}=n,c=n,l=Jn(c);return(0,L.jsxs)(Yn,{role:o,elevation:6,className:x(l.root,i),ownerState:c,ref:t,...s,children:[(0,L.jsx)(Xn,{className:l.message,ownerState:c,children:a}),r?(0,L.jsx)(Zn,{className:l.action,ownerState:c,children:r}):null]})});function $n(e){return y(`MuiSnackbar`,e)}b(`MuiSnackbar`,[`root`,`anchorOriginTopCenter`,`anchorOriginBottomCenter`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`]);var er=e=>{let{classes:t,anchorOrigin:n}=e,r={root:[`root`,`anchorOrigin${i(n.vertical)}${i(n.horizontal)}`]};return v(r,$n,t)},tr=o(`div`,{name:`MuiSnackbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`anchorOrigin${i(n.anchorOrigin.vertical)}${i(n.anchorOrigin.horizontal)}`]]}})(g(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:`fixed`,display:`flex`,left:8,right:8,justifyContent:`center`,alignItems:`center`,variants:[{props:({ownerState:e})=>e.anchorOrigin.vertical===`top`,style:{top:8,[e.breakpoints.up(`sm`)]:{top:24}}},{props:({ownerState:e})=>e.anchorOrigin.vertical!==`top`,style:{bottom:8,[e.breakpoints.up(`sm`)]:{bottom:24}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`left`,style:{justifyContent:`flex-start`,[e.breakpoints.up(`sm`)]:{left:24,right:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`right`,style:{justifyContent:`flex-end`,[e.breakpoints.up(`sm`)]:{right:24,left:`auto`}}},{props:({ownerState:e})=>e.anchorOrigin.horizontal===`center`,style:{[e.breakpoints.up(`sm`)]:{left:`50%`,right:`auto`,transform:`translateX(-50%)`}}}]}))),nr=I.forwardRef(function(e,t){let n=ae({props:e,name:`MuiSnackbar`}),r=ee(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:o,horizontal:s}={vertical:`bottom`,horizontal:`left`},autoHideDuration:c=null,children:l,className:u,disableWindowBlurListener:d=!1,message:f,onBlur:p,onClose:m,onFocus:h,onMouseEnter:g,onMouseLeave:_,open:v,resumeHideDuration:y,slots:b={},slotProps:x={},transitionDuration:C=i,...w}=n,T={...n,anchorOrigin:{vertical:o,horizontal:s},autoHideDuration:c,disableWindowBlurListener:d,transitionDuration:C},te=er(T),{getRootProps:ne,onClickAway:E}=Kn(T),[re,ie]=I.useState(!0),D={slots:b,slotProps:x},[O,k]=S(`root`,{ref:t,className:[te.root,u],elementType:tr,getSlotProps:ne,externalForwardedProps:{...D,...w},ownerState:T}),[oe,{ownerState:A,...se}]=S(`clickAwayListener`,{elementType:Zt,externalForwardedProps:D,getSlotProps:e=>({onClickAway:(...t)=>{let n=t[0];e.onClickAway?.(...t),!n?.defaultMuiPrevented&&E(...t)}}),ownerState:T}),[j,ce]=S(`content`,{elementType:Qn,shouldForwardComponentProp:!0,externalForwardedProps:D,additionalProps:{message:f,action:a},ownerState:T}),[M,N]=S(`transition`,{elementType:ue,externalForwardedProps:D,getSlotProps:e=>({onEnter:(...t)=>{e.onEnter?.(...t),ie(!1)},onExited:(...t)=>{e.onExited?.(...t),ie(!0)}}),additionalProps:{appear:!0,in:v,timeout:C,direction:o===`top`?`down`:`up`},ownerState:T});return!v&&re?null:(0,L.jsx)(oe,{...se,...b.clickAwayListener&&{ownerState:A},children:(0,L.jsx)(O,{...k,children:(0,L.jsx)(M,{...N,children:l||(0,L.jsx)(j,{...ce})})})})}),rr=Ye({themeId:O}),ir=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,ar=/^[\\/]{2}/;function or(e,t){return t+e.replace(/\\/g,`/`)}var sr=`popstate`;function cr(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function lr(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return pr(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:mr(t)}return gr(t,n,null,e)}function R(e,t){if(e===!1||e==null)throw Error(t)}function ur(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function dr(){return Math.random().toString(36).substring(2,10)}function fr(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function pr(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?hr(t):t,state:n,key:t&&t.key||r||dr(),mask:i}}function mr({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function hr(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function gr(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=cr(e)?e:pr(h.location,e,t);n&&n(r,e),l=u()+1;let d=fr(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=cr(e)?e:pr(h.location,e,t);n&&n(r,e),l=u();let i=fr(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return _r(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(sr,d),c=e,()=>{i.removeEventListener(sr,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function _r(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),R(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:mr(t);return i=i.replace(/ $/,`%20`),!n&&ar.test(i)&&(i=r+i),new URL(i,r)}function vr(e,t,n=`/`){return yr(e,t,n,!1)}function yr(e,t,n,r,i){let a=Rr((typeof t==`string`?hr(t):t).pathname||`/`,n);if(a==null)return null;let o=i??br(e),s=null,c=Lr(a);for(let e=0;s==null&&e<o.length;++e)s=Nr(o[e],c,r);return s}function br(e){let t=xr(e);return Cr(t),t}function xr(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;R(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Kr([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(R(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),xr(e.children,t,u,l,o)),!(e.path==null&&!e.index)&&t.push({path:l,score:jr(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Ir(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of Sr(e.path))a(e,t,!0,n)}),t}function Sr(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Sr(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function Cr(e){e.sort((e,t)=>e.score===t.score?Mr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var wr=/^:[\w-]+$/,Tr=3,Er=2,Dr=1,Or=10,kr=-2,Ar=e=>e===`*`;function jr(e,t){let n=e.split(`/`),r=n.length;return n.some(Ar)&&(r+=kr),t&&(r+=Er),n.filter(e=>!Ar(e)).reduce((e,t)=>e+(wr.test(t)?Tr:t===``?Dr:Or),r)}function Mr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function Nr(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Fr(u,l,s.matcher,s.compiledParams):Pr(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Pr({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Kr([a,d.pathname]),pathnameBase:Jr(Kr([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Kr([a,d.pathnameBase]))}return o}function Pr(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Ir(e.path,e.caseSensitive,e.end);return Fr(e,t,n,r)}function Fr(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=qr(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=qr(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Ir(e,t=!1,n=!0){ur(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Lr(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return ur(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Rr(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function zr(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?hr(e):e,a;return n?(n=Gr(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Br(n.substring(1),`/`):Br(n,t)):a=t,{pathname:a,search:Yr(r),hash:Xr(i)}}function Br(e,t){let n=qr(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function Vr(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Hr(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Ur(e){let t=Hr(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Wr(e,t,n,r=!1){let i;typeof e==`string`?i=hr(e):(i={...e},R(!i.pathname||!i.pathname.includes(`?`),Vr(`?`,`pathname`,`search`,i)),R(!i.pathname||!i.pathname.includes(`#`),Vr(`#`,`pathname`,`hash`,i)),R(!i.search||!i.search.includes(`#`),Vr(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=zr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Gr=e=>e.replace(/[\\/]{2,}/g,`/`),Kr=e=>Gr(e.join(`/`));function qr(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Jr=e=>qr(e).replace(/^\/*/,`/`),Yr=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Xr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Zr=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Qr(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function $r(e){return Kr(e.map(e=>e.route.path).filter(Boolean))||`/`}var ei=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function ti(e,t){let n=e;if(typeof n!=`string`||!ir.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(ei)try{let e=new URL(window.location.href),r=ar.test(n)?new URL(or(n,e.protocol)):new URL(n),a=Rr(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{ur(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var ni=new URL(`http://localhost`);function ri(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),ni)}catch{return ni}}function ii(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function ai(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function oi(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!ii(i,n),s=!ii(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!ai(e,i)||!ii(i,a)))throw Error(`External navigation is not allowed`)}var si=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(si);var ci=[`GET`,...si];new Set(ci);var li=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function ui(e){try{return li.includes(new URL(e).protocol)}catch{return!1}}var di=I.createContext(null);di.displayName=`DataRouter`;var fi=I.createContext(null);fi.displayName=`DataRouterState`;var pi=I.createContext(!1);function mi(){return I.useContext(pi)}var hi=I.createContext({isTransitioning:!1});hi.displayName=`ViewTransition`;var gi=I.createContext(new Map);gi.displayName=`Fetchers`;var _i=I.createContext(null);_i.displayName=`Await`;var vi=I.createContext(null);vi.displayName=`Navigation`;var yi=I.createContext(null);yi.displayName=`Location`;var bi=I.createContext({outlet:null,matches:[],isDataRoute:!1});bi.displayName=`Route`;var xi=I.createContext(null);xi.displayName=`RouteError`;var Si=`REACT_ROUTER_ERROR`,Ci=`REDIRECT`,wi=`ROUTE_ERROR_RESPONSE`;function Ti(e){if(e.startsWith(`${Si}:${Ci}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function Ei(e){if(e.startsWith(`${Si}:${wi}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Zr(t.status,t.statusText,t.data)}catch{}}function Di(e,{relative:t}={}){R(Oi(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=I.useContext(vi),{hash:i,pathname:a,search:o}=Ii(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Kr([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Oi(){return I.useContext(yi)!=null}function ki(){return R(Oi(),`useLocation() may be used only in the context of a <Router> component.`),I.useContext(yi).location}var Ai=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function ji(e){I.useContext(vi).static||I.useLayoutEffect(e)}function Mi(){let{isDataRoute:e}=I.useContext(bi);return e?$i():Ni()}function Ni(){R(Oi(),`useNavigate() may be used only in the context of a <Router> component.`);let e=I.useContext(di),{basename:t,navigator:n}=I.useContext(vi),{matches:r}=I.useContext(bi),{pathname:i}=ki(),a=JSON.stringify(Ur(r)),o=I.useRef(!1);return ji(()=>{o.current=!0}),I.useCallback((r,s={})=>{if(ur(o.current,Ai),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Wr(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Kr([t,c.pathname])),oi(typeof r==`string`?r:mr(r),n.createHref(c),ri(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Pi=I.createContext(null);function z(e){let t=I.useContext(bi).outlet;return I.useMemo(()=>t&&I.createElement(Pi.Provider,{value:e},t),[t,e])}function Fi(){let{matches:e}=I.useContext(bi);return e[e.length-1]?.params??{}}function Ii(e,{relative:t}={}){let{matches:n}=I.useContext(bi),{pathname:r}=ki(),i=JSON.stringify(Ur(n));return I.useMemo(()=>Wr(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Li(e,t){return Ri(e,t)}function Ri(e,t,n){R(Oi(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=I.useContext(vi),{matches:i}=I.useContext(bi),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;ta(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=ki(),d;if(t){let e=typeof t==`string`?hr(t):t;R(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,p=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);p=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let m=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):vr(e,{pathname:p});ur(l||m!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),ur(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let h=Gi(m&&m.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Kr([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Kr([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&h?I.createElement(yi.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},h):h}function zi(){let e=Qi(),t=Qr(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=I.createElement(I.Fragment,null,I.createElement(`p`,null,`💿 Hey developer 👋`),I.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,I.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,I.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),I.createElement(I.Fragment,null,I.createElement(`h2`,null,`Unexpected Application Error!`),I.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?I.createElement(`pre`,{style:i},n):null,o)}var Bi=I.createElement(zi,null),Vi=class extends I.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=Ei(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:I.createElement(bi.Provider,{value:this.props.routeContext},I.createElement(xi.Provider,{value:e,children:this.props.component}));return this.context?I.createElement(Ui,{error:e},t):t}};Vi.contextType=pi;var Hi=new WeakMap;function Ui({children:e,error:t}){let{basename:n,navigator:r}=I.useContext(vi);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ti(t.digest);if(e){let i=Hi.get(t);if(i)throw i;let a=ti(e.location,n),o=a.absoluteURL||a.to;if(oi(e.location,o,ri(r),`allow-explicit`),ui(o))throw Error(`Invalid redirect location`);if(ei&&!Hi.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Hi.set(t,n),n}}return I.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Wi({routeContext:e,match:t,children:n}){let r=I.useContext(di);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),I.createElement(bi.Provider,{value:e},n)}function Gi(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);R(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:$r(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,p=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||Bi,o&&(s<0&&c===0?(ta(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,p=null):s===c&&(d=!0,p=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,c+1)),h=()=>{let t;return t=u?f:d?p:n.route.Component?I.createElement(n.route.Component,null):n.route.element?n.route.element:e,I.createElement(Wi,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?I.createElement(Vi,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:h(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:l}):h()},null)}function Ki(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function qi(e){let t=I.useContext(di);return R(t,Ki(e)),t}function Ji(e){let t=I.useContext(fi);return R(t,Ki(e)),t}function Yi(e){let t=I.useContext(bi);return R(t,Ki(e)),t}function Xi(e){let t=Yi(e),n=t.matches[t.matches.length-1];return R(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Zi(){return Xi(`useRouteId`)}function Qi(){let e=I.useContext(xi),t=Ji(`useRouteError`),n=Xi(`useRouteError`);return e===void 0?t.errors?.[n]:e}function $i(){let{router:e}=qi(`useNavigate`),t=Xi(`useNavigate`),n=I.useRef(!1);return ji(()=>{n.current=!0}),I.useCallback(async(r,i={})=>{ur(n.current,Ai),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var ea={};function ta(e,t,n){!t&&!ea[e]&&(ea[e]=!0,ur(!1,n))}I.memo(na);function na({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Ri(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ra({to:e,replace:t,state:n,relative:r}){R(Oi(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=I.useContext(vi);ur(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=I.useContext(bi),{pathname:s}=ki(),c=Mi(),l=Wr(e,Ur(o),s,r===`path`);oi(typeof e==`string`?e:mr(e),a.createHref(l),ri(a),`reject`);let u=JSON.stringify(l);return I.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function ia(e){return z(e.context)}function aa(e){R(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function oa({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){R(!Oi(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=I.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=hr(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:p=`default`,mask:m}=n,h=I.useMemo(()=>{let e=Rr(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:p,mask:m},navigationType:r}},[s,l,u,d,f,p,r,m]);return ur(h!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),h==null?null:I.createElement(vi.Provider,{value:c},I.createElement(yi.Provider,{children:t,value:h}))}function sa({children:e,location:t}){return Li(ca(e),t)}I.Component;function ca(e,t=[]){let n=[];return I.Children.forEach(e,(e,r)=>{if(!I.isValidElement(e))return;let i=[...t,r];if(e.type===I.Fragment){n.push.apply(n,ca(e.props.children,i));return}R(e.type===aa,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),R(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=ca(e.props.children,i)),n.push(a)}),n}var la=`get`,ua=`application/x-www-form-urlencoded`;function da(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function fa(e){return da(e)&&e.tagName.toLowerCase()===`button`}function pa(e){return da(e)&&e.tagName.toLowerCase()===`form`}function ma(e){return da(e)&&e.tagName.toLowerCase()===`input`}function ha(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ga(e,t){return e.button===0&&(!t||t===`_self`)&&!ha(e)}var _a=null;function va(){if(_a===null)try{new FormData(document.createElement(`form`),0),_a=!1}catch{_a=!0}return _a}var ya=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function ba(e){return e!=null&&!ya.has(e)?(ur(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ua}"`),null):e}function xa(e,t){let n,r,i,a,o;if(pa(e)){let o=e.getAttribute(`action`);r=o?Rr(o,t):null,n=e.getAttribute(`method`)||la,i=ba(e.getAttribute(`enctype`))||ua,a=new FormData(e)}else if(fa(e)||ma(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Rr(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||la,i=ba(e.getAttribute(`formenctype`))||ba(o.getAttribute(`enctype`))||ua,a=new FormData(o,e),!va()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(da(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=la,r=null,i=ua,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function Sa(e,t){if(e===!1||e==null)throw Error(t)}function Ca(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Rr(i.pathname,t)===`/`?`${qr(t)}/_root.${r}`:`${qr(i.pathname)}.${r}`,i}async function wa(e,t){if(e.id in t)return t[e.id];try{let n=await ze(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function Ta(e){return e!=null&&typeof e.page==`string`}function Ea(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function Da(e,t,n){return Ma((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await wa(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(Ea).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function Oa(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function ka(e,t,{includeHydrateFallback:n}={}){return Aa(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function Aa(e){return[...new Set(e)]}function ja(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Ma(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!Ta(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(ja(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Na(){let e=I.useContext(di);return Sa(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function Pa(){let e=I.useContext(fi);return Sa(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Fa=I.createContext(void 0);Fa.displayName=`FrameworkContext`;function Ia(){let e=I.useContext(Fa);return Sa(e,`You must render this element inside a <HydratedRouter> element`),e}function La(e,t){let n=I.useContext(Fa),[r,i]=I.useState(!1),[a,o]=I.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=I.useRef(null);I.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),I.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let p=()=>{i(!0)},m=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Ra(s,p),onBlur:Ra(c,m),onMouseEnter:Ra(l,p),onMouseLeave:Ra(u,m),onTouchStart:Ra(d,p)}]:[a,f,{}]:[!1,f,{}]}function Ra(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function za({page:e,...t}){let n=mi(),{nonce:r}=Ia(),{router:i}=Na(),a=I.useMemo(()=>vr(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?I.createElement(Va,{page:e,matches:a,...t}):I.createElement(Ha,{page:e,matches:a,...t})):null}function Ba(e){let{manifest:t,routeModules:n}=Ia(),[r,i]=I.useState([]);return I.useEffect(()=>{let r=!1;return Da(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function Va({page:e,matches:t,...n}){let r=ki(),{future:i}=Ia(),{basename:a}=Na(),o=I.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=Ca(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return I.createElement(I.Fragment,null,o.map(e=>I.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Ha({page:e,matches:t,...n}){let r=ki(),{future:i,manifest:a,routeModules:o}=Ia(),{basename:s}=Na(),{loaderData:c,matches:l}=Pa(),u=I.useMemo(()=>Oa(e,t,l,a,r,`data`),[e,t,l,a,r]),d=I.useMemo(()=>Oa(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=I.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];!t||!t.hasLoader||(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=Ca(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),p=I.useMemo(()=>ka(d,a),[d,a]),m=Ba(d);return I.createElement(I.Fragment,null,f.map(e=>I.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),p.map(e=>I.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),m.map(({key:e,link:t})=>I.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ua(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}I.Component;var Wa=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Wa&&(window.__reactRouterVersion=`7.18.3`)}catch{}function Ga({basename:e,children:t,useTransitions:n,window:r}){let i=I.useRef();i.current??=lr({window:r,v5Compat:!0});let a=i.current,[o,s]=I.useState({action:a.action,location:a.location}),c=I.useCallback(e=>{n===!1?s(e):I.startTransition(()=>s(e))},[n]);return I.useLayoutEffect(()=>a.listen(c),[a,c]),I.createElement(oa,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Ka=I.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m){let{basename:h,navigator:g,useTransitions:_}=I.useContext(vi),v=typeof l==`string`&&ir.test(l),y=ti(l,h);l=y.to;let b=Di(l,{relative:r}),x=ki(),S=null;if(o){let e=Wr(o,[],x.mask?x.mask.pathname:`/`,!0);h!==`/`&&(e.pathname=e.pathname===`/`?h:Kr([h,e.pathname])),S=g.createHref(e)}let[C,w,T]=La(n,p),ee=Za(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:_});function te(t){e&&e(t),t.defaultPrevented||ee(t)}let ne=!(y.isExternal||i),E=I.createElement(`a`,{...p,...T,href:(ne?S:void 0)||y.absoluteURL||b,onClick:ne?te:e,ref:Ua(m,w),target:c,"data-discover":!v&&t===`render`?`true`:void 0});return C&&!v?I.createElement(I.Fragment,null,E,I.createElement(za,{page:b})):E});Ka.displayName=`Link`;var qa=I.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Ii(a,{relative:c.relative}),d=ki(),f=I.useContext(fi),{navigator:p,basename:m}=I.useContext(vi),h=f!=null&&no(u)&&o===!0,g=p.encodeLocation?p.encodeLocation(u).pathname:u.pathname,_=d.pathname,v=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(_=_.toLowerCase(),v=v?v.toLowerCase():null,g=g.toLowerCase()),v&&m&&(v=Rr(v,m)||v);let y=g!==`/`&&g.endsWith(`/`)?g.length-1:g.length,b=_===g||!r&&_.startsWith(g)&&_.charAt(y)===`/`,x=v!=null&&(v===g||!r&&v.startsWith(g)&&v.charAt(g.length)===`/`),S={isActive:b,isPending:x,isTransitioning:h},C=b?e:void 0,w;w=typeof n==`function`?n(S):[n,b?`active`:null,x?`pending`:null,h?`transitioning`:null].filter(Boolean).join(` `);let T=typeof i==`function`?i(S):i;return I.createElement(Ka,{...c,"aria-current":C,className:w,ref:l,style:T,to:a,viewTransition:o},typeof s==`function`?s(S):s)});qa.displayName=`NavLink`;var Ja=I.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=la,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...p},m)=>{let{useTransitions:h}=I.useContext(vi),g=eo(),_=to(s,{relative:l}),v=o.toLowerCase()===`get`?`get`:`post`,y=typeof s==`string`&&ir.test(s);return I.createElement(`form`,{ref:m,method:v,action:_,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,p=()=>g(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});h&&n!==!1?I.startTransition(()=>p()):p()},...p,"data-discover":!y&&e===`render`?`true`:void 0})});Ja.displayName=`Form`;function Ya(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Xa(e){let t=I.useContext(di);return R(t,Ya(e)),t}function Za(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Mi(),d=ki(),f=Ii(e,{relative:o});return I.useCallback(p=>{if(ga(p,t)){p.preventDefault();let t=n===void 0?mr(d)===mr(f):n,m=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?I.startTransition(()=>m()):m()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}var Qa=0,$a=()=>`__${String(++Qa)}__`;function eo(){let{router:e}=Xa(`useSubmit`),{basename:t}=I.useContext(vi),n=Zi(),r=e.fetch,i=e.navigate;return I.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=xa(e,t);if(a.navigate===!1){let e=a.fetcherKey||$a();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function to(e,{relative:t}={}){let{basename:n}=I.useContext(vi),r=I.useContext(bi);R(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Ii(e||`.`,{relative:t})},o=ki();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Kr([n,a.pathname])),mr(a)}function no(e,{relative:t}={}){let n=I.useContext(hi);R(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Xa(`useViewTransitionState`),i=Ii(e,{relative:t});if(!n.isTransitioning)return!1;let a=Rr(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Rr(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Pr(i.pathname,o)!=null||Pr(i.pathname,a)!=null}var ro=We(),io=48,ao={display:`inline-flex`,alignItems:`center`,justifyContent:`center`,width:24,height:24,fontSize:20,lineHeight:`24px`,verticalAlign:`middle`},oo={...ao,fontSize:18};function so(e,t){let n=t.includes(`0,0,0`)?`0, 0, 0`:`255, 255, 255`,r={color:`inherit !important`,letterSpacing:`0.1px !important`,textTransform:`uppercase`,height:36,minHeight:36,minWidth:`auto`,padding:`0 4px`,margin:`0 4px`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,whiteSpace:`nowrap`,gap:0,borderRadius:`4px`,"&:hover":{backgroundColor:`rgba(${n}, 0.15) !important`},"&.Mui-focusVisible":{backgroundColor:`rgba(${n}, 0.15) !important`},"&:active":{backgroundColor:`rgba(${n}, 0.25) !important`},"& .MuiTouchRipple-child":{backgroundColor:`rgba(${n}, 0.3) !important`},"& .MuiSvgIcon-root, & i.fa, & i.fas, & i.far, & i.fab":{marginRight:4,marginLeft:0},"& .MuiSvgIcon-root:only-child, & i:only-child":{marginRight:0}},i={borderRadius:`4px !important`,color:`inherit !important`,margin:`0 2px`,"&:hover":{backgroundColor:`rgba(${n}, 0.15) !important`,borderRadius:`4px !important`},"&.Mui-focusVisible":{backgroundColor:`rgba(${n}, 0.15) !important`,borderRadius:`4px !important`},"&:active":{backgroundColor:`rgba(${n}, 0.25) !important`,borderRadius:`4px !important`},"& .MuiTouchRipple-root":{borderRadius:`4px !important`},"& .MuiTouchRipple-child":{borderRadius:`4px !important`,backgroundColor:`rgba(${n}, 0.3) !important`}};return{MuiCssBaseline:{styleOverrides:`
            body.p3xr-no-main-scroll { overflow: hidden; }
            body.p3xr-no-main-scroll #p3xr-layout-content { overflow: hidden; }
            body.p3xr-no-main-scroll #p3xr-monitoring-content { overflow: hidden; }
            body.p3xr-theme-dark { color-scheme: dark; }
            body.p3xr-theme-light { color-scheme: light; }
            [data-color-scheme="dark"] { color-scheme: dark; }
            [data-color-scheme="light"] { color-scheme: light; }
            body.p3xr-theme-dark ::selection { color: white; background: black; }
            body.p3xr-theme-light fieldset { border-color: rgba(0, 0, 0, 0.5); }
            body.p3xr-theme-dark fieldset { border-color: rgba(255, 255, 255, 0.25); }
            body.p3xr-no-animation *,
            body.p3xr-no-animation *::before,
            body.p3xr-no-animation *::after {
                animation-duration: 0ms !important;
                transition-duration: 0ms !important;
                transition-delay: 0ms !important;
            }
            body.p3xr-no-animation .fa-spin {
                animation-duration: 2s !important;
            }
            .p3xr-console-content-output-item:before {
                content: "> ";
                opacity: 0.5;
            }
            .p3xr-console-content-output-item pre {
                font-family: 'Roboto Mono', monospace;
                white-space: pre-wrap;
                word-break: break-word;
                overflow-wrap: anywhere;
                /* Top margin creates the blank line between "> keys *" and the
                   first result line; bottom margin is the gap before the next
                   prompt. Matches Angular's browser default pre margin. */
                margin: 1em 0;
            }
            .p3xr-console-ai-result {
                display: block;
            }
            #p3xr-console-content {
                font-family: 'Roboto Mono', monospace;
                font-size: 13px;
                text-align: center;
            }
            #p3xr-console-content-output {
                min-width: calc(100% - 20px);
                text-align: left;
                overflow: auto;
            }
            #p3xr-console-content-output pre {
                font-family: 'Roboto Mono', monospace;
                white-space: pre-wrap;
                word-break: break-word;
                overflow-wrap: anywhere;
                /* Blank line between "> keys *" and the result (top margin) and
                   before the next prompt (bottom). Same as Angular's browser default. */
                margin: 1em 0;
            }
            #p3xr-console-input {
                display: block;
                width: 100%;
                box-sizing: border-box;
                font-family: 'Roboto Mono', monospace;
                resize: none;
                overflow-y: hidden;
                outline: none;
                max-height: 90px;
            }
            .p3xr-key-type-actions {
                display: flex; flex-wrap: wrap; justify-content: flex-end;
                align-items: center; gap: 8px; padding: 4px 8px;
            }
            .p3xr-key-type-content { padding: 8px 16px 24px; }
            .p3xr-key-type-display { padding: 8px; }
            .p3xr-key-type-editor { width: 100%; }
            .p3xr-key-type-editor textarea { font-family: 'Roboto Mono', monospace; font-size: 13px; }
            .p3xr-key-type-buffer-info { padding: 8px; opacity: 0.7; font-style: italic; }
            .p3xr-json-tree-key { color: var(--p3xr-json-key-color, inherit); }
            .p3xr-json-tree-value-string { color: var(--p3xr-json-value-string, #0b7500); }
            .p3xr-json-tree-value-number { color: var(--p3xr-json-value-number, #1a01cc); }
            .p3xr-json-tree-value-boolean { color: var(--p3xr-json-value-boolean, #c41a16); }
            .p3xr-json-tree-value-null { color: var(--p3xr-json-value-null, #808080); font-style: italic; }
            .p3xr-console-hint {
                font-family: 'Roboto Mono', monospace;
                font-size: 12px;
                padding: 2px 6px;
                opacity: 0.6;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }
            .p3xr-pager-input::-webkit-outer-spin-button,
            .p3xr-pager-input::-webkit-inner-spin-button {
                -webkit-appearance: none;
                margin: 0;
            }
        `},MuiButton:{styleOverrides:{root:{height:36,minHeight:36,fontSize:`14px`,padding:`0 6px`,textTransform:`uppercase`,letterSpacing:`0.1px`,borderRadius:`4px`,gap:`3px`,"& .MuiSvgIcon-root":{marginRight:`4px`},"& .MuiSvgIcon-root:only-child":{marginRight:0}}}},MuiToolbar:{styleOverrides:{root:{minHeight:`${io}px !important`,height:io,"& i.fa, & i.fas, & i.far, & i.fab":ao,"& i.fa-power-off":oo,"& i.fa-donate":oo}}},MuiAppBar:{styleOverrides:{root:{backgroundColor:e,color:t,"& .MuiButton-root":r,"& .MuiIconButton-root":i}}}}}function co(e){return s({typography:{fontFamily:`Roboto, 'Helvetica Neue', sans-serif`,h1:{letterSpacing:`normal`},h2:{letterSpacing:`normal`},h3:{letterSpacing:`normal`},h4:{letterSpacing:`normal`},h5:{letterSpacing:`normal`},h6:{letterSpacing:`normal`},subtitle1:{letterSpacing:`normal`},subtitle2:{letterSpacing:`normal`},body1:{letterSpacing:`normal`},body2:{letterSpacing:`normal`},button:{letterSpacing:`normal`},caption:{letterSpacing:`normal`},overline:{letterSpacing:`normal`}},p3xr:{accordionBg:e.accordionBg,accordionColor:e.accordionColor,strongBg:e.strongBg,strongColor:`rgba(255,255,255,0.87)`,inputBorderColor:e.inputBorderColor,inputBg:e.inputBg,inputColor:e.inputColor,treeBranchColor:e.treeBranchColor,commonWarnColor:e.commonWarnColor,treecontrolIconColor:e.treecontrolIconColor,matSysPrimary:e.matSysPrimary},palette:{mode:e.mode,primary:{main:e.primary,contrastText:e.primaryText},secondary:{main:e.accent,contrastText:e.accentText},error:{main:e.warn,contrastText:e.warnText},success:{main:e.success,contrastText:e.successText},warning:{main:e.warn,contrastText:e.warnText},background:{default:e.bodyBg,paper:e.contentBg},divider:e.mode===`dark`?`rgba(255,255,255,0.12)`:`rgba(0,0,0,0.12)`,action:{hover:e.hoverBg,selected:e.selectedBg}},components:{...so(e.toolbarBg,e.toolbarColor),MuiDialog:{styleOverrides:{paper:{backgroundColor:e.dialogBg,backgroundImage:`none`}}}}})}var lo={enterprise:co({mode:`light`,toolbarBg:`#424242`,toolbarColor:`rgba(255,255,255,0.87)`,strongBg:`#212121`,accordionBg:`#9e9e9e`,accordionColor:`rgba(0,0,0,0.87)`,primary:`#3f51b5`,primaryText:`#fff`,accent:`#1976d2`,accentText:`#fff`,warn:`#d32f2f`,warnText:`#fff`,success:`#4caf50`,successText:`#fff`,bodyBg:`#e0e0e0`,contentBg:`#fafafa`,dialogBg:`#ffffff`,borderColor:`#424242`,hoverBg:`rgba(0,0,0,0.1)`,selectedBg:`rgba(0,0,0,0.1)`,linkColor:`#1a73e8`,inputBorderColor:`#9e9e9e`,inputBg:`white`,inputColor:`black`,treeBranchColor:`#343dff`,commonWarnColor:`#03a9f4`,treecontrolIconColor:`rgba(0,0,0,0.87)`,matSysPrimary:`#005faf`}),light:co({mode:`light`,toolbarBg:`#37474f`,toolbarColor:`rgba(255,255,255,0.87)`,strongBg:`#263238`,accordionBg:`#b0bec5`,accordionColor:`rgba(0,0,0,0.87)`,primary:`#673ab7`,primaryText:`#fff`,accent:`#9c27b0`,accentText:`#fff`,warn:`#d32f2f`,warnText:`#fff`,success:`#4caf50`,successText:`#fff`,bodyBg:`#cfd8dc`,contentBg:`#eceff1`,dialogBg:`#cfd8dc`,borderColor:`#37474f`,hoverBg:`rgba(0,0,0,0.1)`,selectedBg:`rgba(0,0,0,0.1)`,linkColor:`#1a73e8`,inputBorderColor:`#b0bec5`,inputBg:`white`,inputColor:`black`,treeBranchColor:`#a900a9`,commonWarnColor:`#607d8b`,treecontrolIconColor:`rgba(0,0,0,0.87)`,matSysPrimary:`#6750a4`}),redis:co({mode:`light`,toolbarBg:`#c62828`,toolbarColor:`rgba(255,255,255,0.87)`,strongBg:`#b71c1c`,accordionBg:`#ef9a9a`,accordionColor:`rgba(0,0,0,0.87)`,primary:`#212121`,primaryText:`rgba(255,255,255,0.87)`,accent:`#757575`,accentText:`#fff`,warn:`#ffc107`,warnText:`#fff`,success:`#4caf50`,successText:`#fff`,bodyBg:`#ffcdd2`,contentBg:`#fafafa`,dialogBg:`#ffffff`,borderColor:`#c62828`,hoverBg:`rgba(0,0,0,0.1)`,selectedBg:`rgba(0,0,0,0.1)`,linkColor:`#1a73e8`,inputBorderColor:`#ef9a9a`,inputBg:`white`,inputColor:`black`,treeBranchColor:`#964900`,commonWarnColor:`#f44336`,treecontrolIconColor:`rgba(0,0,0,0.87)`,matSysPrimary:`#b0294b`}),dark:co({mode:`dark`,toolbarBg:`#424242`,toolbarColor:`rgba(255,255,255,0.87)`,strongBg:`#212121`,accordionBg:`#9e9e9e`,accordionColor:`rgba(0,0,0,0.87)`,primary:`#7986cb`,primaryText:`rgba(0,0,0,0.87)`,accent:`#2196f3`,accentText:`rgba(0,0,0,0.87)`,warn:`#ff9800`,warnText:`rgba(0,0,0,0.87)`,success:`#4caf50`,successText:`rgba(0,0,0,0.87)`,bodyBg:`#212121`,contentBg:`#303030`,dialogBg:`#424242`,borderColor:`#424242`,hoverBg:`rgba(255,255,255,0.1)`,selectedBg:`rgba(255,255,255,0.1)`,linkColor:`#82b1ff`,inputBorderColor:`#9e9e9e`,inputBg:`rgba(64,64,64,1)`,inputColor:`white`,treeBranchColor:`#bec2ff`,commonWarnColor:`#9fa8da`,treecontrolIconColor:`rgba(255,255,255,0.7)`,matSysPrimary:`#9ecaff`}),darkNeu:co({mode:`dark`,toolbarBg:`#37474f`,toolbarColor:`rgba(255,255,255,0.87)`,strongBg:`#263238`,accordionBg:`#90a4ae`,accordionColor:`rgba(0,0,0,0.87)`,primary:`#00bcd4`,primaryText:`rgba(0,0,0,0.87)`,accent:`#2196f3`,accentText:`rgba(0,0,0,0.87)`,warn:`#ffeb3b`,warnText:`rgba(0,0,0,0.87)`,success:`#4caf50`,successText:`rgba(0,0,0,0.87)`,bodyBg:`#263238`,contentBg:`#303030`,dialogBg:`#424242`,borderColor:`#37474f`,hoverBg:`rgba(255,255,255,0.1)`,selectedBg:`rgba(255,255,255,0.1)`,linkColor:`#82b1ff`,inputBorderColor:`#90a4ae`,inputBg:`rgba(64,64,64,1)`,inputColor:`white`,treeBranchColor:`#bec2ff`,commonWarnColor:`#2196f3`,treecontrolIconColor:`rgba(255,255,255,0.7)`,matSysPrimary:`#54d7eb`}),darkoBluo:co({mode:`dark`,toolbarBg:`#1a237e`,toolbarColor:`rgba(255,255,255,0.87)`,strongBg:`#1a237e`,accordionBg:`#3f51b5`,accordionColor:`#fff`,primary:`#7986cb`,primaryText:`rgba(0,0,0,0.87)`,accent:`#2196f3`,accentText:`rgba(0,0,0,0.87)`,warn:`#ff9800`,warnText:`rgba(0,0,0,0.87)`,success:`#4caf50`,successText:`rgba(0,0,0,0.87)`,bodyBg:`#283593`,contentBg:`#303030`,dialogBg:`#424242`,borderColor:`#1a237e`,hoverBg:`rgba(255,255,255,0.1)`,selectedBg:`rgba(255,255,255,0.1)`,linkColor:`#82b1ff`,inputBorderColor:`#3f51b5`,inputBg:`rgba(64,64,64,1)`,inputColor:`white`,treeBranchColor:`#bec2ff`,commonWarnColor:`#03a9f4`,treecontrolIconColor:`rgba(255,255,255,0.7)`,matSysPrimary:`#cfbcff`}),matrix:co({mode:`dark`,toolbarBg:`#76ff03`,toolbarColor:`rgba(0,0,0,0.87)`,strongBg:`#33691e`,accordionBg:`#76ff03`,accordionColor:`rgba(0,0,0,0.87)`,primary:`#76ff03`,primaryText:`rgba(0,0,0,0.87)`,accent:`#c6ff00`,accentText:`rgba(0,0,0,0.87)`,warn:`#00c853`,warnText:`rgba(0,0,0,0.87)`,success:`#76ff03`,successText:`rgba(0,0,0,0.87)`,bodyBg:`#1b5e20`,contentBg:`#303030`,dialogBg:`#424242`,borderColor:`#76ff03`,hoverBg:`rgba(255,255,255,0.1)`,selectedBg:`rgba(255,255,255,0.1)`,linkColor:`#82b1ff`,inputBorderColor:`#76ff03`,inputBg:`rgba(64,64,64,1)`,inputColor:`white`,treeBranchColor:`#76ff03`,commonWarnColor:`#4caf50`,treecontrolIconColor:`rgba(255,255,255,0.7)`,matSysPrimary:`#a1d45b`})},uo=[`dark`,`darkNeu`,`darkoBluo`,`matrix`],fo=[`light`,`enterprise`,`dark`,`darkNeu`,`darkoBluo`,`matrix`,`redis`];function po(e){return uo.includes(e)}lo.enterprise,lo.dark;var B=`p3xr-theme`,V=`auto`;function mo(){return typeof window<`u`&&window.matchMedia?.(`(prefers-color-scheme: dark)`).matches}function ho(e){if(e.startsWith(`p3xrTheme`)){let t=e.replace(`p3xrTheme`,``);return t.charAt(0).toLowerCase()+t.slice(1)}return e}function go(){try{let e=localStorage.getItem(B)||V;return e===V?V:ho(e)}catch{return V}}function _o(e){if(typeof document>`u`)return;let t=po(e);document.documentElement.setAttribute(`data-color-scheme`,t?`dark`:`light`),document.body.classList.toggle(`p3xr-theme-dark`,t),document.body.classList.toggle(`p3xr-theme-light`,!t)}function vo(e){return e===V?mo()?`dark`:`enterprise`:e}var yo=se(e=>{let t=go(),n=t===V,r=vo(t);return _o(r),{isAuto:n,themeKey:r,storedValue:t,setTheme:t=>{let n=t===V,r=n?vo(V):t;try{localStorage.setItem(B,t)}catch{}_o(r);try{window.parent?.postMessage({type:`p3x-theme-change`,dark:po(r)},`*`)}catch{}e({isAuto:n,themeKey:r,storedValue:t})}}});typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).addEventListener(`change`,()=>{let{isAuto:e}=yo.getState();if(e){let e=mo()?`dark`:`enterprise`;_o(e),yo.setState({themeKey:e})}});var bo=null;function xo(e){bo=e}function So(e,t){let n={info:`/info`,settings:`/settings`,monitoring:`/monitoring`,search:`/search`,"database.statistics":`/database/statistics`,"main.statistics":`/database/statistics`,database:`/database`},r;e===`database.key`||e===`main.key`?r=`/database/key/${encodeURIComponent(t?.key??``)}`:(r=n[e],r||=(console.warn(`[navigation] Unknown state: ${e}`),`/settings`)),bo&&bo(r)}var Co=w((0,L.jsx)(`path`,{d:`M22 3H7c-.69 0-1.23.35-1.59.88L0 12l5.41 8.11c.36.53.9.89 1.59.89h15c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-3 12.59L17.59 17 14 13.41 10.41 17 9 15.59 12.59 12 9 8.41 10.41 7 14 10.59 17.59 7 19 8.41 15.41 12z`}),`Backspace`),wo=w((0,L.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z`}),`Cancel`),To=w((0,L.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2m-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckBox`),Eo=w((0,L.jsx)(`path`,{d:`M19 5v14H5V5zm0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`}),`CheckBoxOutlineBlank`),Do=w((0,L.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`),Oo=w((0,L.jsx)(`path`,{d:`M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9c.83 0 1.5-.67 1.5-1.5 0-.39-.15-.74-.39-1.01-.23-.26-.38-.61-.38-.99 0-.83.67-1.5 1.5-1.5H16c2.76 0 5-2.24 5-5 0-4.42-4.03-8-9-8m-5.5 9c-.83 0-1.5-.67-1.5-1.5S5.67 9 6.5 9 8 9.67 8 10.5 7.33 12 6.5 12m3-4C8.67 8 8 7.33 8 6.5S8.67 5 9.5 5s1.5.67 1.5 1.5S10.33 8 9.5 8m5 0c-.83 0-1.5-.67-1.5-1.5S13.67 5 14.5 5s1.5.67 1.5 1.5S15.33 8 14.5 8m3 4c-.83 0-1.5-.67-1.5-1.5S16.67 9 17.5 9s1.5.67 1.5 1.5-.67 1.5-1.5 1.5`}),`ColorLens`),ko=w((0,L.jsx)(`path`,{d:`M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z`}),`Done`),Ao=w((0,L.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z`}),`Info`),jo=w((0,L.jsx)(`path`,{d:`M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m6.93 6h-2.95c-.32-1.25-.78-2.45-1.38-3.56 1.84.63 3.37 1.91 4.33 3.56M12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96M4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2s.06 1.34.14 2zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56-1.84-.63-3.37-1.9-4.33-3.56m2.95-8H5.08c.96-1.66 2.49-2.93 4.33-3.56C8.81 5.55 8.35 6.75 8.03 8M12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96M14.34 14H9.66c-.09-.66-.16-1.32-.16-2s.07-1.35.16-2h4.68c.09.65.16 1.32.16 2s-.07 1.34-.16 2m.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95c-.96 1.65-2.49 2.93-4.33 3.56M16.36 14c.08-.66.14-1.32.14-2s-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2z`}),`Language`),Mo=w((0,L.jsx)(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2m-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2m3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1s3.1 1.39 3.1 3.1z`}),`Lock`),No=w((0,L.jsx)(`path`,{d:`M11 7 9.6 8.4l2.6 2.6H2v2h10.2l-2.6 2.6L11 17l5-5zm9 12h-8v2h8c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-8v2h8z`}),`Login`),Po=w((0,L.jsx)(`path`,{d:`m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z`}),`Logout`),Fo=w([(0,L.jsx)(`path`,{d:`M21 5c-1.11-.35-2.33-.5-3.5-.5-1.95 0-4.05.4-5.5 1.5-1.45-1.1-3.55-1.5-5.5-1.5S2.45 4.9 1 6v14.65c0 .25.25.5.5.5.1 0 .15-.05.25-.05C3.1 20.45 5.05 20 6.5 20c1.95 0 4.05.4 5.5 1.5 1.35-.85 3.8-1.5 5.5-1.5 1.65 0 3.35.3 4.75 1.05.1.05.15.05.25.05.25 0 .5-.25.5-.5V6c-.6-.45-1.25-.75-2-1m0 13.5c-1.1-.35-2.3-.5-3.5-.5-1.7 0-4.15.65-5.5 1.5V8c1.35-.85 3.8-1.5 5.5-1.5 1.2 0 2.4.15 3.5.5z`},`0`),(0,L.jsx)(`path`,{d:`M17.5 10.5c.88 0 1.73.09 2.5.26V9.24c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99M13 12.49v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26V11.9c-.79-.15-1.64-.24-2.5-.24-1.7 0-3.24.3-4.5.83m4.5 1.84c-1.7 0-3.24.29-4.5.83v1.66c1.13-.64 2.7-.99 4.5-.99.88 0 1.73.09 2.5.26v-1.52c-.79-.16-1.64-.24-2.5-.24`},`1`)],`MenuBook`),Io=w([(0,L.jsx)(`path`,{d:`M15.11 12.45 14 10.24l-3.11 6.21c-.16.34-.51.55-.89.55s-.73-.21-.89-.55L7.38 13H2v5c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-5h-6c-.38 0-.73-.21-.89-.55`},`0`),(0,L.jsx)(`path`,{d:`M20 4H4c-1.1 0-2 .9-2 2v5h6c.38 0 .73.21.89.55L10 13.76l3.11-6.21c.34-.68 1.45-.68 1.79 0L16.62 11H22V6c0-1.1-.9-2-2-2`},`1`)],`MonitorHeart`),Lo=w((0,L.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4m0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4`}),`Person`),Ro=w((0,L.jsx)(`path`,{d:`M16.01 7 16 3h-2v4h-4V3H8v4h-.01C7 6.99 6 7.99 6 8.99v5.49L9.5 18v3h5v-3l3.5-3.51v-5.5c0-1-1-2-1.99-1.99`}),`Power`),zo=w((0,L.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14`}),`Search`),Bo=w((0,L.jsx)(`path`,{d:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6`}),`Settings`),Vo=w((0,L.jsx)(`path`,{d:`M12 1 3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5z`}),`Shield`),Ho=w((0,L.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m4 14H8V8h8z`}),`StopCircle`),Uo=w((0,L.jsx)(`path`,{d:`M2 20h20v-4H2zm2-3h2v2H4zM2 4v4h20V4zm4 3H4V5h2zm-4 7h20v-4H2zm2-3h2v2H4z`}),`Storage`),Wo=w((0,L.jsx)(`path`,{d:`M20 4H4c-1.11 0-2 .9-2 2v12c0 1.1.89 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.89-2-2-2m0 14H4V8h16zm-2-1h-6v-2h6zM7.5 17l-1.41-1.41L8.67 13l-2.59-2.59L7.5 9l4 4z`}),`Terminal`),Go=w((0,L.jsx)(`path`,{d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3`}),`Visibility`),Ko=w((0,L.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z`}),`VisibilityOff`);function qo(e){let{line:t}=e,n=e.divider??`,`,r=e.fieldDivider??`=`,i=t.split(n),a={};for(let e of i){let t=e.split(r);a[t[0]]=(t[1]??``).trim()}return a}function Jo(e){let t=e.split(`
`),n={},r,i={},a=0;for(let e of t)if(e.startsWith(`#`))r!==void 0&&(n[r]=i),r=e.substring(1).toLowerCase().trim(),i={};else if(e.length>2){if(e.includes(`:`)){let t=e.split(`:`),n=t[1]??``;i[t[0]]=n.includes(`,`)?qo({line:n.trim()}):n.trim()}else{let[t,...n]=e.split(/ (.+)/),r=(n[0]??``).split(`,`).map(e=>`${a}-${e.trim()}`).join(`,`);i.hasOwnProperty(`db0`)?Object.assign(i.db0,r.includes(`,`)?qo({line:r.trim()}):r.trim()):i.db0=r.includes(`,`)?qo({line:r.trim()}):r.trim(),a++}}return r!==void 0&&Object.keys(i).length>0&&(n[r]=i),n.keyspaceDatabases={},n.hasOwnProperty(`keyspace`)&&Object.keys(n.keyspace).forEach(e=>{n.keyspaceDatabases[parseInt(e.substring(2))]=!0}),n}function Yo(e){return typeof e==`object`&&e?Object.keys(e).map(t=>e[t]).join(`
`):e}var Xo={};function Zo(e,t){return Xo[e]||(Xo[e]=new Set),Xo[e].add(t),()=>{Xo[e].delete(t)}}function Qo(e){Xo[e]?.forEach(e=>e())}var $o=null,es=se((e,t)=>({toastMessage:``,toastOpen:!1,toastDuration:5e3,toast:(t,n)=>{e({toastMessage:t,toastOpen:!0,toastDuration:n||5e3})},closeToast:()=>{let n=t().resolveToastUndo;n&&(n(!1),e({resolveToastUndo:null,toastUndoAction:null})),e({toastOpen:!1})},toastUndoAction:null,resolveToastUndo:null,toastWithUndo:t=>new Promise(n=>{e({toastMessage:t,toastOpen:!0,toastUndoAction:`Undo`,resolveToastUndo:n})}),handleToastUndoClick:()=>{let n=t().resolveToastUndo;n&&(n(!0),e({resolveToastUndo:null,toastUndoAction:null,toastOpen:!1}))},confirmOpen:!1,confirmOptions:null,resolveConfirm:null,confirm:t=>new Promise((n,r)=>{let i=j.getState().strings,a=t.disableCancel===!0;e({confirmOpen:!0,confirmOptions:{title:t.title||(a?i?.confirm?.info:i?.confirm?.title),message:t.message,disableCancel:a},resolveConfirm:t=>{e({confirmOpen:!1,confirmOptions:null,resolveConfirm:null}),t?n():r()}})}),promptOpen:!1,promptOptions:null,resolvePrompt:null,prompt:t=>new Promise((n,r)=>{e({promptOpen:!0,promptOptions:t,resolvePrompt:t=>{e({promptOpen:!1,promptOptions:null,resolvePrompt:null}),t===null?r():n(t)}})}),askAuthOpen:!1,resolveAskAuth:null,askAuth:()=>new Promise((t,n)=>{e({askAuthOpen:!0,resolveAskAuth:r=>{e({askAuthOpen:!1,resolveAskAuth:null}),r===null?n():t(r)}})}),commandPaletteOpen:!1,setCommandPaletteOpen:t=>e({commandPaletteOpen:t}),generalHandleError:e=>{if(e===void 0)return!0;if(e instanceof Error||e instanceof Object||(e=Error(String(e))),e instanceof Error||e.status===`error`){let n=e instanceof Error?e:e.error;console.warn(`generalHandleError`),console.error(n);let r=j.getState().strings,i=r?.code||{};return typeof n==`string`&&i.hasOwnProperty(n)?n=Error(i[n]):n?.code&&i.hasOwnProperty(n.code)?n.message=i[n.code]:n?.message&&i.hasOwnProperty(n.message)&&(n.message=i[n.message]),n?.message===`Connection is closed.`&&F.setState({connection:void 0}),t().confirm({title:r?.title?.error,message:n?.message||String(n),disableCancel:!0}).catch(()=>{}),!1}return!0},loadRedisInfoResponse:(e={})=>{let t=e.response||$o;if($o=t,!t)return;let n=Be.getState(),r=Jo(t.info),i=n.keysSort&&t.keys.length<=n.maxLightKeysCount?[...t.keys].sort():t.keys;F.setState({info:r,keysRaw:i,keysInfo:t.keysInfo,keysInfoFetchedAt:Date.now()})}})),ts=se(e=>({visible:!1,message:``,show:t=>{e({visible:!0,message:t?.message||``})},hide:()=>{e({visible:!1,message:``})}})),ns=Object.create(null);ns.open=`0`,ns.close=`1`,ns.ping=`2`,ns.pong=`3`,ns.message=`4`,ns.upgrade=`5`,ns.noop=`6`;var rs=Object.create(null);Object.keys(ns).forEach(e=>{rs[ns[e]]=e});var is={type:`error`,data:`parser error`},as=typeof Blob==`function`||typeof Blob<`u`&&Object.prototype.toString.call(Blob)===`[object BlobConstructor]`,os=typeof ArrayBuffer==`function`,ss=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,cs=({type:e,data:t},n,r)=>as&&t instanceof Blob?n?r(t):ls(t,r):os&&(t instanceof ArrayBuffer||ss(t))?n?r(t):ls(new Blob([t]),r):r(ns[e]+(t||``)),ls=(e,t)=>{let n=new FileReader;return n.onload=function(){let e=n.result.split(`,`)[1];t(`b`+(e||``))},n.readAsDataURL(e)};function us(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var ds;function fs(e,t){if(as&&e.data instanceof Blob)return e.data.arrayBuffer().then(us).then(t);if(os&&(e.data instanceof ArrayBuffer||ss(e.data)))return t(us(e.data));cs(e,!1,e=>{ds||=new TextEncoder,t(ds.encode(e))})}var ps=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,ms=typeof Uint8Array>`u`?[]:new Uint8Array(256);for(let e=0;e<64;e++)ms[ps.charCodeAt(e)]=e;var hs=e=>{let t=e.length*.75,n=e.length,r,i=0,a,o,s,c;e[e.length-1]===`=`&&(t--,e[e.length-2]===`=`&&t--);let l=new ArrayBuffer(t),u=new Uint8Array(l);for(r=0;r<n;r+=4)a=ms[e.charCodeAt(r)],o=ms[e.charCodeAt(r+1)],s=ms[e.charCodeAt(r+2)],c=ms[e.charCodeAt(r+3)],u[i++]=a<<2|o>>4,u[i++]=(o&15)<<4|s>>2,u[i++]=(s&3)<<6|c&63;return l},gs=typeof ArrayBuffer==`function`,_s=(e,t)=>{if(typeof e!=`string`)return{type:`message`,data:ys(e,t)};let n=e.charAt(0);return n===`b`?{type:`message`,data:vs(e.substring(1),t)}:rs[n]?e.length>1?{type:rs[n],data:e.substring(1)}:{type:rs[n]}:is},vs=(e,t)=>gs?ys(hs(e),t):{base64:!0,data:e},ys=(e,t)=>{switch(t){case`blob`:return e instanceof Blob?e:new Blob([e]);default:return e instanceof ArrayBuffer?e:e.buffer}},bs=``,xs=(e,t)=>{let n=e.length,r=Array(n),i=0;e.forEach((e,a)=>{cs(e,!1,e=>{r[a]=e,++i===n&&t(r.join(bs))})})},Ss=(e,t)=>{let n=e.split(bs),r=[];for(let e=0;e<n.length;e++){let i=_s(n[e],t);if(r.push(i),i.type===`error`)break}return r};function Cs(){return new TransformStream({transform(e,t){fs(e,n=>{let r=n.length,i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);let e=new DataView(i.buffer);e.setUint8(0,126),e.setUint16(1,r)}else{i=new Uint8Array(9);let e=new DataView(i.buffer);e.setUint8(0,127),e.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!=`string`&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}var ws;function Ts(e){return e.reduce((e,t)=>e+t.length,0)}function Es(e,t){if(e[0].length===t)return e.shift();let n=new Uint8Array(t),r=0;for(let i=0;i<t;i++)n[i]=e[0][r++],r===e[0].length&&(e.shift(),r=0);return e.length&&r<e[0].length&&(e[0]=e[0].slice(r)),n}function Ds(e,t){ws||=new TextDecoder;let n=[],r=0,i=-1,a=!1;return new TransformStream({transform(o,s){for(n.push(o);;){if(r===0){if(Ts(n)<1)break;let e=Es(n,1);a=(e[0]&128)==128,i=e[0]&127,r=i<126?3:i===126?1:2}else if(r===1){if(Ts(n)<2)break;let e=Es(n,2);i=new DataView(e.buffer,e.byteOffset,e.length).getUint16(0),r=3}else if(r===2){if(Ts(n)<8)break;let e=Es(n,8),t=new DataView(e.buffer,e.byteOffset,e.length),a=t.getUint32(0);if(a>2**21-1){s.enqueue(is);break}i=a*2**32+t.getUint32(4),r=3}else{if(Ts(n)<i)break;let e=Es(n,i);s.enqueue(_s(a?e:ws.decode(e),t)),r=0}if(i===0||i>e){s.enqueue(is);break}}}})}function Os(e){if(e)return ks(e)}function ks(e){for(var t in Os.prototype)e[t]=Os.prototype[t];return e}Os.prototype.on=Os.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[`$`+e]=this._callbacks[`$`+e]||[]).push(t),this},Os.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this},Os.prototype.off=Os.prototype.removeListener=Os.prototype.removeAllListeners=Os.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks[`$`+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks[`$`+e],this;for(var r,i=0;i<n.length;i++)if(r=n[i],r===t||r.fn===t){n.splice(i,1);break}return n.length===0&&delete this._callbacks[`$`+e],this},Os.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=Array(arguments.length-1),n=this._callbacks[`$`+e],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(n){n=n.slice(0);for(var r=0,i=n.length;r<i;++r)n[r].apply(this,t)}return this},Os.prototype.emitReserved=Os.prototype.emit,Os.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[`$`+e]||[]},Os.prototype.hasListeners=function(e){return!!this.listeners(e).length};var As=typeof Promise==`function`&&typeof Promise.resolve==`function`?e=>Promise.resolve().then(e):(e,t)=>t(e,0),js=typeof self<`u`?self:typeof window<`u`?window:Function(`return this`)(),Ms=`arraybuffer`;function Ns(e,...t){return t.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{})}var Ps=js.setTimeout,Fs=js.clearTimeout;function Is(e,t){t.useNativeTimers?(e.setTimeoutFn=Ps.bind(js),e.clearTimeoutFn=Fs.bind(js)):(e.setTimeoutFn=js.setTimeout.bind(js),e.clearTimeoutFn=js.clearTimeout.bind(js))}var Ls=1.33;function Rs(e){return typeof e==`string`?zs(e):Math.ceil((e.byteLength||e.size)*Ls)}function zs(e){let t=0,n=0;for(let r=0,i=e.length;r<i;r++)t=e.charCodeAt(r),t<128?n+=1:t<2048?n+=2:t<55296||t>=57344?n+=3:(r++,n+=4);return n}function Bs(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function Vs(e){let t=``;for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+=`&`),t+=encodeURIComponent(n)+`=`+encodeURIComponent(e[n]));return t}function Hs(e){let t={},n=e.split(`&`);for(let e=0,r=n.length;e<r;e++){let r=n[e].split(`=`);t[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return t}var Us=class extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type=`TransportError`}},Ws=class extends Os{constructor(e){super(),this.writable=!1,Is(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,n){return super.emitReserved(`error`,new Us(e,t,n)),this}open(){return this.readyState=`opening`,this.doOpen(),this}close(){return(this.readyState===`opening`||this.readyState===`open`)&&(this.doClose(),this.onClose()),this}send(e){this.readyState===`open`&&this.write(e)}onOpen(){this.readyState=`open`,this.writable=!0,super.emitReserved(`open`)}onData(e){let t=_s(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved(`packet`,e)}onClose(e){this.readyState=`closed`,super.emitReserved(`close`,e)}pause(e){}createUri(e,t={}){return e+`://`+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(`:`)===-1?e:`[`+e+`]`}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?`:`+this.opts.port:``}_query(e){let t=Vs(e);return t.length?`?`+t:``}},Gs=class extends Ws{constructor(){super(...arguments),this._polling=!1}get name(){return`polling`}doOpen(){this._poll()}pause(e){this.readyState=`pausing`;let t=()=>{this.readyState=`paused`,e()};if(this._polling||!this.writable){let e=0;this._polling&&(e++,this.once(`pollComplete`,function(){--e||t()})),this.writable||(e++,this.once(`drain`,function(){--e||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved(`poll`)}onData(e){Ss(e,this.socket.binaryType).forEach(e=>{if(this.readyState===`opening`&&e.type===`open`&&this.onOpen(),e.type===`close`)return this.onClose({description:`transport closed by the server`}),!1;this.onPacket(e)}),this.readyState!==`closed`&&(this._polling=!1,this.emitReserved(`pollComplete`),this.readyState===`open`&&this._poll())}doClose(){let e=()=>{this.write([{type:`close`}])};this.readyState===`open`?e():this.once(`open`,e)}write(e){this.writable=!1,xs(e,e=>{this.doWrite(e,()=>{this.writable=!0,this.emitReserved(`drain`)})})}uri(){let e=this.opts.secure?`https`:`http`,t=this.query||{};return!1!==this.opts.timestampRequests&&(t[this.opts.timestampParam]=Bs()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},Ks=!1;try{Ks=typeof XMLHttpRequest<`u`&&`withCredentials`in new XMLHttpRequest}catch{}var qs=Ks;function Js(){}var Ys=class extends Gs{constructor(e){if(super(e),typeof location<`u`){let t=location.protocol===`https:`,n=location.port;n||=t?`443`:`80`,this.xd=typeof location<`u`&&e.hostname!==location.hostname||n!==e.port}}doWrite(e,t){let n=this.request({method:`POST`,data:e});n.on(`success`,t),n.on(`error`,(e,t)=>{this.onError(`xhr post error`,e,t)})}doPoll(){let e=this.request();e.on(`data`,this.onData.bind(this)),e.on(`error`,(e,t)=>{this.onError(`xhr poll error`,e,t)}),this.pollXhr=e}},Xs=class e extends Os{constructor(e,t,n){super(),this.createRequest=e,Is(this,n),this._opts=n,this._method=n.method||`GET`,this._uri=t,this._data=n.data===void 0?null:n.data,this._create()}_create(){var t;let n=Ns(this._opts,`agent`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`autoUnref`);n.xdomain=!!this._opts.xd;let r=this._xhr=this.createRequest(n);try{r.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let e in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(e)&&r.setRequestHeader(e,this._opts.extraHeaders[e])}}catch{}if(this._method===`POST`)try{r.setRequestHeader(`Content-type`,`text/plain;charset=UTF-8`)}catch{}try{r.setRequestHeader(`Accept`,`*/*`)}catch{}(t=this._opts.cookieJar)==null||t.addCookies(r),`withCredentials`in r&&(r.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(r.timeout=this._opts.requestTimeout),r.onreadystatechange=()=>{var e;r.readyState===3&&((e=this._opts.cookieJar)==null||e.parseCookies(r.getResponseHeader(`set-cookie`))),r.readyState===4&&(r.status===200||r.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof r.status==`number`?r.status:0)},0))},r.send(this._data)}catch(e){this.setTimeoutFn(()=>{this._onError(e)},0);return}typeof document<`u`&&(this._index=e.requestsCount++,e.requests[this._index]=this)}_onError(e){this.emitReserved(`error`,e,this._xhr),this._cleanup(!0)}_cleanup(t){if(this._xhr!==void 0&&this._xhr!==null){if(this._xhr.onreadystatechange=Js,t)try{this._xhr.abort()}catch{}typeof document<`u`&&delete e.requests[this._index],this._xhr=null}}_onLoad(){let e=this._xhr.responseText;e!==null&&(this.emitReserved(`data`,e),this.emitReserved(`success`),this._cleanup())}abort(){this._cleanup()}};if(Xs.requestsCount=0,Xs.requests={},typeof document<`u`){if(typeof attachEvent==`function`)attachEvent(`onunload`,Zs);else if(typeof addEventListener==`function`){let e=`onpagehide`in js?`pagehide`:`unload`;addEventListener(e,Zs,!1)}}function Zs(){for(let e in Xs.requests)Xs.requests.hasOwnProperty(e)&&Xs.requests[e].abort()}var Qs=(function(){let e=ec({xdomain:!1});return e&&e.responseType!==null})(),$s=class extends Ys{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=Qs&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Xs(ec,this.uri(),e)}};function ec(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<`u`&&(!t||qs))return new XMLHttpRequest}catch{}if(!t)try{return new js[[`Active`,`Object`].join(`X`)](`Microsoft.XMLHTTP`)}catch{}}var tc=typeof navigator<`u`&&typeof navigator.product==`string`&&navigator.product.toLowerCase()===`reactnative`,nc=class extends Ws{get name(){return`websocket`}doOpen(){let e=this.uri(),t=this.opts.protocols,n=tc?{}:Ns(this.opts,`agent`,`perMessageDeflate`,`pfx`,`key`,`passphrase`,`cert`,`ca`,`ciphers`,`rejectUnauthorized`,`localAddress`,`protocolVersion`,`origin`,`maxPayload`,`family`,`checkServerIdentity`);this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,n)}catch(e){return this.emitReserved(`error`,e)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:`websocket connection closed`,context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError(`websocket error`,e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;cs(n,this.supportsBinary,e=>{try{this.doWrite(n,e)}catch{}r&&As(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){this.ws!==void 0&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?`wss`:`ws`,t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Bs()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},rc=js.WebSocket||js.MozWebSocket,ic={websocket:class extends nc{createSocket(e,t,n){return tc?new rc(e,t,n):t?new rc(e,t):new rc(e)}doWrite(e,t){this.ws.send(t)}},webtransport:class extends Ws{get name(){return`webtransport`}doOpen(){try{this._transport=new WebTransport(this.createUri(`https`),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved(`error`,e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError(`webtransport error`,e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=Ds(2**53-1,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),r=Cs();r.readable.pipeTo(e.writable),this._writer=r.writable.getWriter();let i=()=>{n.read().then(({done:e,value:t})=>{e||(this.onPacket(t),i())}).catch(e=>{})};i();let a={type:`open`};this.query.sid&&(a.data=`{"sid":"${this.query.sid}"}`),this._writer.write(a).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let n=e[t],r=t===e.length-1;this._writer.write(n).then(()=>{r&&As(()=>{this.writable=!0,this.emitReserved(`drain`)},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)==null||e.close()}},polling:$s},ac=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,oc=[`source`,`protocol`,`authority`,`userInfo`,`user`,`password`,`host`,`port`,`relative`,`path`,`directory`,`file`,`query`,`anchor`];function sc(e){if(e.length>8e3)throw`URI too long`;let t=e,n=e.indexOf(`[`),r=e.indexOf(`]`);n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,`;`)+e.substring(r,e.length));let i=ac.exec(e||``),a={},o=14;for(;o--;)a[oc[o]]=i[o]||``;return n!=-1&&r!=-1&&(a.source=t,a.host=a.host.substring(1,a.host.length-1).replace(/;/g,`:`),a.authority=a.authority.replace(`[`,``).replace(`]`,``).replace(/;/g,`:`),a.ipv6uri=!0),a.pathNames=cc(a,a.path),a.queryKey=lc(a,a.query),a}function cc(e,t){let n=t.replace(/\/{2,9}/g,`/`).split(`/`);return(t.slice(0,1)==`/`||t.length===0)&&n.splice(0,1),t.slice(-1)==`/`&&n.splice(n.length-1,1),n}function lc(e,t){let n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(e,t,r){t&&(n[t]=r)}),n}var uc=typeof addEventListener==`function`&&typeof removeEventListener==`function`,dc=[];uc&&addEventListener(`offline`,()=>{dc.forEach(e=>e())},!1);var fc=class e extends Os{constructor(e,t){if(super(),this.binaryType=Ms,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,e&&typeof e==`object`&&(t=e,e=null),e){let n=sc(e);t.hostname=n.host,t.secure=n.protocol===`https`||n.protocol===`wss`,t.port=n.port,n.query&&(t.query=n.query)}else t.host&&(t.hostname=sc(t.host).host);Is(this,t),this.secure=t.secure==null?typeof location<`u`&&location.protocol===`https:`:t.secure,t.hostname&&!t.port&&(t.port=this.secure?`443`:`80`),this.hostname=t.hostname||(typeof location<`u`?location.hostname:`localhost`),this.port=t.port||(typeof location<`u`&&location.port?location.port:this.secure?`443`:`80`),this.transports=[],this._transportsByName={},t.transports.forEach(e=>{let t=e.prototype.name;this.transports.push(t),this._transportsByName[t]=e}),this.opts=Object.assign({path:`/engine.io`,agent:!1,withCredentials:!1,upgrade:!0,timestampParam:`t`,rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,``)+(this.opts.addTrailingSlash?`/`:``),typeof this.opts.query==`string`&&(this.opts.query=Hs(this.opts.query)),uc&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener(`beforeunload`,this._beforeunloadEventListener,!1)),this.hostname!==`localhost`&&(this._offlineEventListener=()=>{this._onClose(`transport close`,{description:`network connection lost`})},dc.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(e){let t=Object.assign({},this.opts.query);t.EIO=4,t.transport=e,this.id&&(t.sid=this.id);let n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new this._transportsByName[e](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved(`error`,`No transports available`)},0);return}let t=this.opts.rememberUpgrade&&e.priorWebsocketSuccess&&this.transports.indexOf(`websocket`)!==-1?`websocket`:this.transports[0];this.readyState=`opening`;let n=this.createTransport(t);n.open(),this.setTransport(n)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on(`drain`,this._onDrain.bind(this)).on(`packet`,this._onPacket.bind(this)).on(`error`,this._onError.bind(this)).on(`close`,e=>this._onClose(`transport close`,e))}onOpen(){this.readyState=`open`,e.priorWebsocketSuccess=this.transport.name===`websocket`,this.emitReserved(`open`),this.flush()}_onPacket(e){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`)switch(this.emitReserved(`packet`,e),this.emitReserved(`heartbeat`),e.type){case`open`:this.onHandshake(JSON.parse(e.data));break;case`ping`:this._sendPacket(`pong`),this.emitReserved(`ping`),this.emitReserved(`pong`),this._resetPingTimeout();break;case`error`:let t=Error(`server error`);t.code=e.data,this._onError(t);break;case`message`:this.emitReserved(`data`,e.data),this.emitReserved(`message`,e.data)}}onHandshake(e){this.emitReserved(`handshake`,e),this.id=e.sid,this.transport.query.sid=e.sid,this._pingInterval=e.pingInterval,this._pingTimeout=e.pingTimeout,this._maxPayload=e.maxPayload,this.onOpen(),this.readyState!==`closed`&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let e=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+e,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose(`ping timeout`)},e),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved(`drain`):this.flush()}flush(){if(this.readyState!==`closed`&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let e=this._getWritablePackets();this.transport.send(e),this._prevBufferLen=e.length,this.emitReserved(`flush`)}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name===`polling`&&this.writeBuffer.length>1))return this.writeBuffer;let e=1;for(let t=0;t<this.writeBuffer.length;t++){let n=this.writeBuffer[t].data;if(n&&(e+=Rs(n)),t>0&&e>this._maxPayload)return this.writeBuffer.slice(0,t);e+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let e=Date.now()>this._pingTimeoutTime;return e&&(this._pingTimeoutTime=0,As(()=>{this._onClose(`ping timeout`)},this.setTimeoutFn)),e}write(e,t,n){return this._sendPacket(`message`,e,t,n),this}send(e,t,n){return this._sendPacket(`message`,e,t,n),this}_sendPacket(e,t,n,r){if(typeof t==`function`&&(r=t,t=void 0),typeof n==`function`&&(r=n,n=null),this.readyState===`closing`||this.readyState===`closed`)return;n||={},n.compress=!1!==n.compress;let i={type:e,data:t,options:n};this.emitReserved(`packetCreate`,i),this.writeBuffer.push(i),r&&this.once(`flush`,r),this.flush()}close(){let e=()=>{this._onClose(`forced close`),this.transport.close()},t=()=>{this.off(`upgrade`,t),this.off(`upgradeError`,t),e()},n=()=>{this.once(`upgrade`,t),this.once(`upgradeError`,t)};return(this.readyState===`opening`||this.readyState===`open`)&&(this.readyState=`closing`,this.writeBuffer.length?this.once(`drain`,()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}_onError(t){if(e.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState===`opening`)return this.transports.shift(),this._open();this.emitReserved(`error`,t),this._onClose(`transport error`,t)}_onClose(e,t){if(this.readyState===`opening`||this.readyState===`open`||this.readyState===`closing`){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners(`close`),this.transport.close(),this.transport.removeAllListeners(),uc&&(this._beforeunloadEventListener&&removeEventListener(`beforeunload`,this._beforeunloadEventListener,!1),this._offlineEventListener)){let e=dc.indexOf(this._offlineEventListener);e!==-1&&dc.splice(e,1)}this.readyState=`closed`,this.id=null,this.emitReserved(`close`,e,t),this.writeBuffer=[],this._prevBufferLen=0}}};fc.protocol=4;var pc=class extends fc{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState===`open`&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),n=!1;fc.priorWebsocketSuccess=!1;let r=()=>{n||(t.send([{type:`ping`,data:`probe`}]),t.once(`packet`,e=>{if(!n){if(e.type===`pong`&&e.data===`probe`){if(this.upgrading=!0,this.emitReserved(`upgrading`,t),!t)return;fc.priorWebsocketSuccess=t.name===`websocket`,this.transport.pause(()=>{n||this.readyState!==`closed`&&(l(),this.setTransport(t),t.send([{type:`upgrade`}]),this.emitReserved(`upgrade`,t),t=null,this.upgrading=!1,this.flush())})}else{let e=Error(`probe error`);e.transport=t.name,this.emitReserved(`upgradeError`,e)}}}))};function i(){n||(n=!0,l(),t.close(),t=null)}let a=e=>{let n=Error(`probe error: `+e);n.transport=t.name,i(),this.emitReserved(`upgradeError`,n)};function o(){a(`transport closed`)}function s(){a(`socket closed`)}function c(e){t&&e.name!==t.name&&i()}let l=()=>{t.removeListener(`open`,r),t.removeListener(`error`,a),t.removeListener(`close`,o),this.off(`close`,s),this.off(`upgrading`,c)};t.once(`open`,r),t.once(`error`,a),t.once(`close`,o),this.once(`close`,s),this.once(`upgrading`,c),this._upgrades.indexOf(`webtransport`)!==-1&&e!==`webtransport`?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let n=0;n<e.length;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}},mc=class extends pc{constructor(e,t={}){let n=typeof e==`object`?e:t;(!n.transports||n.transports&&typeof n.transports[0]==`string`)&&(n.transports=(n.transports||[`polling`,`websocket`,`webtransport`]).map(e=>ic[e]).filter(e=>!!e)),super(e,n)}};mc.protocol;function hc(e,t=``,n){let r=e;n||=typeof location<`u`&&location,e??=n.protocol+`//`+n.host,typeof e==`string`&&(e.charAt(0)===`/`&&(e=e.charAt(1)===`/`?n.protocol+e:n.host+e),/^(https?|wss?):\/\//.test(e)||(e=n===void 0?`https://`+e:n.protocol+`//`+e),r=sc(e)),r.port||(/^(http|ws)$/.test(r.protocol)?r.port=`80`:/^(http|ws)s$/.test(r.protocol)&&(r.port=`443`)),r.path=r.path||`/`;let i=r.host.indexOf(`:`)===-1?r.host:`[`+r.host+`]`;return r.id=r.protocol+`://`+i+`:`+r.port+t,r.href=r.protocol+`://`+i+(n&&n.port===r.port?``:`:`+r.port),r}var gc=typeof ArrayBuffer==`function`,_c=e=>typeof ArrayBuffer.isView==`function`?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,vc=Object.prototype.toString,yc=typeof Blob==`function`||typeof Blob<`u`&&vc.call(Blob)===`[object BlobConstructor]`,bc=typeof File==`function`||typeof File<`u`&&vc.call(File)===`[object FileConstructor]`;function xc(e){return gc&&(e instanceof ArrayBuffer||_c(e))||yc&&e instanceof Blob||bc&&e instanceof File}function Sc(e,t){if(!e||typeof e!=`object`)return!1;if(Array.isArray(e)){for(let t=0,n=e.length;t<n;t++)if(Sc(e[t]))return!0;return!1}if(xc(e))return!0;if(e.toJSON&&typeof e.toJSON==`function`&&arguments.length===1)return Sc(e.toJSON(),!0);for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&Sc(e[t]))return!0;return!1}function Cc(e){let t=[],n=e.data,r=e;return r.data=wc(n,t),r.attachments=t.length,{packet:r,buffers:t}}function wc(e,t){if(!e)return e;if(xc(e)){let n={_placeholder:!0,num:t.length};return t.push(e),n}if(Array.isArray(e)){let n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=wc(e[r],t);return n}if(typeof e==`object`&&!(e instanceof Date)){let n={};for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=wc(e[r],t));return n}return e}function Tc(e,t){return e.data=Ec(e.data,t),delete e.attachments,e}function Ec(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num==`number`&&e.num>=0&&e.num<t.length)return t[e.num];throw Error(`illegal attachments`)}if(Array.isArray(e))for(let n=0;n<e.length;n++)e[n]=Ec(e[n],t);else if(typeof e==`object`)for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(e[n]=Ec(e[n],t));return e}var Dc=t({Decoder:()=>jc,Encoder:()=>kc,PacketType:()=>H,protocol:()=>5}),Oc=[`connect`,`connect_error`,`disconnect`,`disconnecting`,`newListener`,`removeListener`],H;(function(e){e[e.CONNECT=0]=`CONNECT`,e[e.DISCONNECT=1]=`DISCONNECT`,e[e.EVENT=2]=`EVENT`,e[e.ACK=3]=`ACK`,e[e.CONNECT_ERROR=4]=`CONNECT_ERROR`,e[e.BINARY_EVENT=5]=`BINARY_EVENT`,e[e.BINARY_ACK=6]=`BINARY_ACK`})(H||={});var kc=class{constructor(e){this.replacer=e}encode(e){return(e.type===H.EVENT||e.type===H.ACK)&&Sc(e)?this.encodeAsBinary({type:e.type===H.EVENT?H.BINARY_EVENT:H.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=``+e.type;return(e.type===H.BINARY_EVENT||e.type===H.BINARY_ACK)&&(t+=e.attachments+`-`),e.nsp&&e.nsp!==`/`&&(t+=e.nsp+`,`),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){let t=Cc(e),n=this.encodeAsString(t.packet),r=t.buffers;return r.unshift(n),r}};function Ac(e){return Object.prototype.toString.call(e)===`[object Object]`}var jc=class e extends Os{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e==`string`){if(this.reconstructor)throw Error(`got plaintext data when reconstructing a packet`);t=this.decodeString(e);let n=t.type===H.BINARY_EVENT;n||t.type===H.BINARY_ACK?(t.type=n?H.EVENT:H.ACK,this.reconstructor=new Mc(t),t.attachments===0&&super.emitReserved(`decoded`,t)):super.emitReserved(`decoded`,t)}else if(xc(e)||e.base64){if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved(`decoded`,t));else throw Error(`got binary data when not reconstructing a packet`)}else throw Error(`Unknown type: `+e)}decodeString(t){let n=0,r={type:Number(t.charAt(0))};if(H[r.type]===void 0)throw Error(`unknown packet type `+r.type);if(r.type===H.BINARY_EVENT||r.type===H.BINARY_ACK){let e=n+1;for(;t.charAt(++n)!==`-`&&n!=t.length;);let i=t.substring(e,n);if(i!=Number(i)||t.charAt(n)!==`-`)throw Error(`Illegal attachments`);r.attachments=Number(i)}if(t.charAt(n+1)===`/`){let e=n+1;for(;++n&&t.charAt(n)!==`,`&&n!==t.length;);r.nsp=t.substring(e,n)}else r.nsp=`/`;let i=t.charAt(n+1);if(i!==``&&Number(i)==i){let e=n+1;for(;++n;){let e=t.charAt(n);if(e==null||Number(e)!=e){--n;break}if(n===t.length)break}r.id=Number(t.substring(e,n+1))}if(t.charAt(++n)){let i=this.tryParse(t.substr(n));if(e.isPayloadValid(r.type,i))r.data=i;else throw Error(`invalid payload`)}return r}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case H.CONNECT:return Ac(t);case H.DISCONNECT:return t===void 0;case H.CONNECT_ERROR:return typeof t==`string`||Ac(t);case H.EVENT:case H.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]==`number`||typeof t[0]==`string`&&Oc.indexOf(t[0])===-1);case H.ACK:case H.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&=(this.reconstructor.finishedReconstruction(),null)}},Mc=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let e=Tc(this.reconPack,this.buffers);return this.finishedReconstruction(),e}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function Nc(e,t,n){return e.on(t,n),function(){e.off(t,n)}}var Pc=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),Fc=class extends Os{constructor(e,t,n){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Nc(e,`open`,this.onopen.bind(this)),Nc(e,`packet`,this.onpacket.bind(this)),Nc(e,`error`,this.onerror.bind(this)),Nc(e,`close`,this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState===`open`&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift(`message`),this.emit.apply(this,e),this}emit(e,...t){if(Pc.hasOwnProperty(e))throw Error(`"`+e.toString()+`" is a reserved event name`);if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let n={type:H.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]==`function`){let e=this.ids++,r=t.pop();this._registerAckCallback(e,r),n.id=e}let r=this.io.engine?.transport?.writable,i=this.connected&&!this.io.engine?._hasPingExpired();return this.flags.volatile&&!r||(i?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){let n=this.flags.timeout??this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let r=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let t=0;t<this.sendBuffer.length;t++)this.sendBuffer[t].id===e&&this.sendBuffer.splice(t,1);t.call(this,Error(`operation has timed out`))},n),i=(...e)=>{this.io.clearTimeoutFn(r),t.apply(this,e)};i.withError=!0,this.acks[e]=i}emitWithAck(e,...t){return new Promise((n,r)=>{let i=(e,t)=>e?r(e):n(t);i.withError=!0,t.push(i),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]==`function`&&(t=e.pop());let n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((e,...r)=>(this._queue[0],e===null?(this._queue.shift(),t&&t(null,...r)):n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(e)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth==`function`?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:H.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved(`connect_error`,e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved(`disconnect`,e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,Error(`socket has been disconnected`))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case H.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved(`connect_error`,Error(`It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)`));break;case H.EVENT:case H.BINARY_EVENT:this.onevent(e);break;case H.ACK:case H.BINARY_ACK:this.onack(e);break;case H.DISCONNECT:this.ondisconnect();break;case H.CONNECT_ERROR:this.destroy();let t=Error(e.data.message);t.data=e.data.data,this.emitReserved(`connect_error`,t)}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]==`string`&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,n=!1;return function(...r){n||(n=!0,t.packet({type:H.ACK,id:e,data:r}))}}onack(e){let t=this.acks[e.id];typeof t==`function`&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved(`connect`)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose(`io server disconnect`)}destroy(){this.subs&&=(this.subs.forEach(e=>e()),void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:H.DISCONNECT}),this.destroy(),this.connected&&this.onclose(`io client disconnect`),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let n of t)n.apply(this,e.data)}}};function Ic(e){e||={},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Ic.prototype.duration=function(){var e=this.ms*this.factor**+this.attempts++;if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0},Ic.prototype.reset=function(){this.attempts=0},Ic.prototype.setMin=function(e){this.ms=e},Ic.prototype.setMax=function(e){this.max=e},Ic.prototype.setJitter=function(e){this.jitter=e};var Lc=class extends Os{constructor(e,t){super(),this.nsps={},this.subs=[],e&&typeof e==`object`&&(t=e,e=void 0),t||={},t.path=t.path||`/socket.io`,this.opts=t,Is(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor(t.randomizationFactor??.5),this.backoff=new Ic({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState=`closed`,this.uri=e;let n=t.parser||Dc;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)==null||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)==null||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)==null||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf(`open`))return this;this.engine=new mc(this.uri,this.opts);let t=this.engine,n=this;this._readyState=`opening`,this.skipReconnect=!1;let r=Nc(t,`open`,function(){n.onopen(),e&&e()}),i=t=>{this.cleanup(),this._readyState=`closed`,this.emitReserved(`error`,t),e?e(t):this.maybeReconnectOnOpen()},a=Nc(t,`error`,i);if(!1!==this._timeout){let e=this._timeout,n=this.setTimeoutFn(()=>{r(),i(Error(`timeout`)),t.close()},e);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}return this.subs.push(r),this.subs.push(a),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState=`open`,this.emitReserved(`open`);let e=this.engine;this.subs.push(Nc(e,`ping`,this.onping.bind(this)),Nc(e,`data`,this.ondata.bind(this)),Nc(e,`error`,this.onerror.bind(this)),Nc(e,`close`,this.onclose.bind(this)),Nc(this.decoder,`decoded`,this.ondecoded.bind(this)))}onping(){this.emitReserved(`ping`)}ondata(e){try{this.decoder.add(e)}catch(e){this.onclose(`parse error`,e)}}ondecoded(e){As(()=>{this.emitReserved(`packet`,e)},this.setTimeoutFn)}onerror(e){this.emitReserved(`error`,e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new Fc(this,e,t),this.nsps[e]=n),n}_destroy(e){let t=Object.keys(this.nsps);for(let e of t)if(this.nsps[e].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose(`forced close`)}disconnect(){return this._close()}onclose(e,t){var n;this.cleanup(),(n=this.engine)==null||n.close(),this.backoff.reset(),this._readyState=`closed`,this.emitReserved(`close`,e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved(`reconnect_failed`),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved(`reconnect_attempt`,e.backoff.attempts),!e.skipReconnect&&e.open(t=>{t?(e._reconnecting=!1,e.reconnect(),this.emitReserved(`reconnect_error`,t)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved(`reconnect`,e)}},Rc={};function U(e,t){typeof e==`object`&&(t=e,e=void 0),t||={};let n=hc(e,t.path||`/socket.io`),r=n.source,i=n.id,a=n.path,o=Rc[i]&&a in Rc[i].nsps,s=t.forceNew||t[`force new connection`]||!1===t.multiplex||o,c;return s?c=new Lc(r,t):(Rc[i]||(Rc[i]=new Lc(r,t)),c=Rc[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(U,{Manager:Lc,Socket:Fc,io:U,connect:U});var zc=`p3xr-desktop-notifications`,Bc=/electron/i.test(navigator.userAgent);function Vc(){try{let e=localStorage.getItem(zc);return e===null?Bc:e===`true`}catch{return!1}}function Hc(e){try{localStorage.setItem(zc,String(e))}catch{}e&&!Bc&&Uc()}function Uc(){typeof Notification>`u`||Notification.permission!==`granted`&&Notification.permission!==`denied`&&Notification.requestPermission()}function Wc(e,t){if(Vc()&&!(!document.hidden&&document.hasFocus())){if(Bc){try{window.parent?.postMessage({type:`p3x-notify`,title:e,body:t},`*`)}catch{}return}if(typeof Notification<`u`&&Notification.permission===`granted`)try{let n=new Notification(e,{body:t,icon:`/images/redis.svg`});n.onclick=()=>{window.focus(),n.close()}}catch{}}}var Gc={};function Kc(e,t){Gc[e]?.forEach(e=>e(t))}function qc(e,t){return Gc[e]||(Gc[e]=new Set),Gc[e].add(t),()=>{Gc[e].delete(t)}}var Jc=null,Yc=!1,Xc=!1,Zc=!1,Qc=!1;function $c(){if(Jc)return Jc;let e=F.getState(),t={rejectUnauthorized:!1,path:`/socket.io`,secure:!0,reconnection:!0,reconnectionAttempts:1/0,reconnectionDelay:1e3,reconnectionDelayMax:5e3},n=localStorage.getItem(`p3xr-auth-token`);n&&(t.auth={token:n}),Jc=U(e.apiHost,t),Jc.on(`connect`,()=>{if(Zc||Xc){console.log(`p3xr-socket RE-connected`,Jc.id),Wc(j.getState().strings?.title?.name,j.getState().strings?.status?.connectionRestored),Zc=!1,Xc=!1,location.reload();return}console.log(Yc?`p3xr-socket RE-connected`:`p3xr-socket connected`,Jc.id),Yc=!0}),Jc.on(`disconnect`,()=>{Qc||(Zc=!0,Kc(`disconnect`))}),Jc.on(`error`,e=>{el(e)}),Jc.on(`connect_error`,e=>{if(e?.message===`auth_required`){Qc=!0,Jc.disconnect(),Kc(`auth_required`);return}el(e)}),Jc.on(`connections`,e=>{if(e.status===`error`){F.getState().resetConnections();return}F.setState({connections:e.connections}),Kc(`connections`,e)}),Jc.on(`redis-disconnected`,e=>{let t=F.getState().connection;if(t!==void 0&&t.id===e.connectionId){if(F.setState({monitor:!1,connection:void 0}),e.status===`error`){let t=j.getState().strings,n=t?.status?.redisDisconnected,r=typeof n==`function`?n(e):`Redis disconnected`;tl(r),Wc(t?.title?.name,r)}else if(e.status===`code`){let t=j.getState().strings,n=(t?.code??{})[e.code]??`unknown redis disconnect code: ${e.code}`;tl(n),Wc(t?.title?.name,n)}Kc(`redis-disconnected`,e),W({action:`connection/trigger-disconnect`,enableResponse:!1}).catch(()=>{})}}),Jc.on(`redis-status`,e=>{F.setState({redisConnections:e.redisConnections}),Kc(`redis-status`,e)});let r=!1;return Jc.on(`configuration`,e=>{let t=e.snapshot===!0?`SNAPSHOT`:`v`+e.version;if(F.setState({cfg:e,version:t}),!r&&!e.snapshot){r=!0;try{let e=Be.getState().googleAnalytics;window.gtag?.(`config`,e,{page_path:`/version/`+t})}catch{}}Kc(`configuration`,e)}),Jc}function el(e){Xc||(Xc=!0,Kc(`socket-error`,e))}function tl(e){try{let t=globalThis.__p3xr_snackbar;if(t){let n=t.open(e,`x`,{duration:5e3,horizontalPosition:`right`,verticalPosition:`bottom`});n.onAction().subscribe(()=>n.dismiss())}}catch{}}function W(e){let t=$c(),n=Be.getState();return e.payload||={},e.payload.maxKeys=n.maxKeys,e.enableResponse===!1?(t.emit(`p3xr-request`,e),Promise.resolve()):new Promise((r,i)=>{let a=n.generateId();e.requestId=a;let o=`p3xr-response-${a}`,s,c=e=>{if(clearTimeout(s),t.off(o),e?.status===`ok`)r(e);else{let t=`Unknown error`;try{let n=e?.error;typeof n==`string`?t=n:n?.message?t=n.message:n!=null&&(t=String(n))}catch{}i(Error(t))}};s=setTimeout(()=>{t.off(o,c);let e=j.getState().strings?.label?.socketIoTimeout,r=typeof e==`function`?e({timeout:n.socketTimeout}):`Socket.IO timeout (${n.socketTimeout}ms)`;i(Error(r))},n.socketTimeout),t.on(o,c),t.emit(`p3xr-request`,e)})}$c();var nl=t({emitCommand:()=>al,onCommandEvent:()=>il,useMainCommandStore:()=>sl}),rl={};function il(e,t){return rl[e]||(rl[e]=new Set),rl[e].add(t),()=>{rl[e].delete(t)}}function al(e,t){rl[e]?.forEach(e=>e(t))}var ol=0,sl=se(()=>({connect:async e=>{let t=structuredClone(e),n=Be.getState(),r=ts.getState();try{let e=n.getStorageKeyCurrentDatabase(t.id),i;try{i=localStorage.getItem(e)??void 0}catch{}if(t.askAuth===!0)try{let e=await es.getState().askAuth();t.username=e.username||void 0,t.password=e.password||void 0}catch{return}let a=j.getState().strings;r.show({message:a?.title?.connectingRedis}),F.setState({connectionState:`connecting`});let o=await W({action:`connection/connect`,payload:{connection:t,db:i}}),s=[],c=0;for(;c<o.databases;)s.push(c++);let l=[];Object.keys(o.commands??{}).forEach(e=>l.push(o.commands[e][0])),l.sort();let u=Array.isArray(o.modules)?o.modules:[];F.setState({page:1,monitor:!1,dbsize:o.dbsize,databaseIndexes:s,connection:t,commands:l,commandsMeta:o.commandsMeta??{},modules:u,hasReJSON:u.some(e=>e.name===`ReJSON`),hasRediSearch:u.some(e=>e.name===`search`),hasTimeSeries:u.some(e=>e.name===`timeseries`||e.name===`Timeseries`),hasBloom:u.some(e=>e.name===`bf`),connectionState:`connected`}),es.getState().loadRedisInfoResponse({response:o});try{localStorage.setItem(n.connectInfoStorageKey,JSON.stringify(t))}catch{}}catch(e){try{localStorage.removeItem(n.connectInfoStorageKey)}catch{}F.setState({connection:void 0,connectionState:`none`}),es.getState().generalHandleError(e)}finally{r.hide()}},selectDatabase:async e=>{let t=F.getState(),n=Be.getState();F.setState({currentDatabase:e,page:1,redisChanged:!0});try{await W({action:`redis/console`,payload:{command:`select ${e}`}});let r=j.getState().strings?.status?.dbChanged,i=typeof r==`function`?r({db:e}):``;i&&es.getState().toast(i);let a=n.getStorageKeyCurrentDatabase(t.connection?.id);if(a)try{localStorage.setItem(a,String(e))}catch{}await sl.getState().refresh({force:!0})}catch(e){es.getState().generalHandleError(e)}},save:async()=>{try{let e=Jo((await W({action:`redis/save`})).info);F.setState({info:e});let t=j.getState().strings;es.getState().toast(t?.status?.savedRedis)}catch(e){es.getState().generalHandleError(e)}},statistics:async()=>{try{So(`database.statistics`),await sl.getState().refresh({force:!0})}catch(e){es.getState().generalHandleError(e)}},refresh:async(e={})=>{let t=Date.now();if(!(!e.force&&t-ol<2e3)){ol=t;try{let t=F.getState(),n=Be.getState(),r={},i=t.search;!n.searchClientSide&&typeof i==`string`&&i.length>0&&(r.match=n.searchStartsWith?i+`*`:`*`+i+`*`);let a=await W({action:`redis/refresh`,payload:r});F.setState({dbsize:a.dbsize,redisChanged:!0}),es.getState().loadRedisInfoResponse({response:a}),al(`tree-refresh`),e.withoutParent||al(`refresh-key`)}catch(e){es.getState().generalHandleError(e)}}},disconnect:async()=>{let e=F.getState(),t=Be.getState();try{localStorage.removeItem(t.connectInfoStorageKey)}catch{}F.setState({connection:void 0,connectionState:`none`,redisConnections:{},monitor:!1});try{await W({action:`connection/disconnect`,payload:{connectionId:e.connection?.id}})}catch{}So(`settings`)},addKey:e=>{e.event.stopPropagation(),al(`key-new`,e)},getCurrentDatabase:()=>{let e=F.getState(),t=Be.getState(),n=e.currentDatabase;if(n===void 0){let r=t.getStorageKeyCurrentDatabase(e.connection?.id);if(r)try{n=localStorage.getItem(r)}catch{}}return Number(n??0)},setCurrentDatabase:e=>{let t=F.getState(),n=Be.getState();F.setState({currentDatabase:e});let r=n.getStorageKeyCurrentDatabase(t.connection?.id);if(r)try{localStorage.setItem(r,String(e))}catch{}}})),G=`p3xr-auth-token`,cl=se((e,t)=>({authRequired:!1,isAuthenticated:!1,authChecked:!1,loginError:``,checkAuthStatus:async()=>{try{if(!(await(await fetch(`/api/auth-status`)).json()).enabled)e({authRequired:!1,isAuthenticated:!0});else{e({authRequired:!0});let n=t().getToken();if(n){let t=await(await fetch(`/api/verify-token`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({token:n})})).json();e({isAuthenticated:t.valid}),t.valid||localStorage.removeItem(G)}}}catch{e({isAuthenticated:!0})}e({authChecked:!0})},login:async(t,n)=>{e({loginError:``});try{let r=await(await fetch(`/api/login`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({username:t,password:n})})).json();return r.status===`ok`&&r.token?(localStorage.setItem(G,r.token),e({isAuthenticated:!0}),!0):(e({loginError:r.error}),!1)}catch{return e({loginError:`network_error`}),!1}},getToken:()=>{try{return localStorage.getItem(G)}catch{return null}},logout:()=>{try{localStorage.removeItem(G)}catch{}location.reload()}}));function ll(e){let t=e===`react`?`/react/`:e===`vue`?`/vue/`:`/ng/`;try{localStorage.setItem(`p3xr-frontend`,e)}catch{}location.href=t}function ul(){let[e,t]=(0,I.useState)(``),[n,r]=(0,I.useState)(``),[i,a]=(0,I.useState)(!1),[o,s]=(0,I.useState)(!1),[c,l]=(0,I.useState)(null),u=j(e=>e.strings),d=rr(`(min-width: 600px)`),{login:f,loginError:p}=cl(),m=ee(),h=yo(e=>e.themeKey)===`matrix`?`#0a2e0d`:m.p3xr.accordionBg,g=(()=>{try{return localStorage.getItem(`p3xr-frontend`)}catch{return`ng`}})(),_=async()=>{o||!e||!n||(s(!0),await f(e,n)&&location.reload(),s(!1))},v=e=>ll(e);return(0,L.jsx)(k,{sx:{display:`flex`,alignItems:`center`,justifyContent:`center`,minHeight:`calc(100vh - 96px)`},children:(0,L.jsxs)(k,{sx:{width:400,maxWidth:`calc(100vw - 32px)`,borderRadius:`4px`,overflow:`hidden`,boxShadow:`0 11px 15px -7px rgba(0,0,0,.2), 0 24px 38px 3px rgba(0,0,0,.14), 0 9px 46px 8px rgba(0,0,0,.12)`},children:[(0,L.jsx)(It,{position:`static`,sx:{backgroundColor:`${m.p3xr.strongBg} !important`,backgroundImage:`none !important`,color:`rgba(255,255,255,0.87) !important`,boxShadow:`none`},children:(0,L.jsxs)(pe,{variant:`dense`,disableGutters:!0,sx:{minHeight:`48px !important`,height:48,px:1},children:[(0,L.jsx)(k,{sx:{flex:1}}),(0,L.jsx)(Jt,{color:`inherit`,size:`small`,onClick:e=>l(e.currentTarget),startIcon:(0,L.jsx)(`i`,{className:`fas fa-desktop`,style:{fontSize:14}}),children:`GUI`}),(0,L.jsxs)(je,{anchorEl:c,open:!!c,onClose:()=>l(null),children:[(0,L.jsxs)(Gn,{selected:g===`ng`,onClick:()=>v(`ng`),children:[(0,L.jsx)(`i`,{className:`fab fa-angular`,style:{fontSize:18,width:24,textAlign:`center`,marginRight:8,color:`#dd0031`}}),`Angular`]}),(0,L.jsxs)(Gn,{selected:g===`react`,onClick:()=>v(`react`),children:[(0,L.jsx)(`i`,{className:`fab fa-react`,style:{fontSize:18,width:24,textAlign:`center`,marginRight:8,color:`#61dafb`}}),`React`]}),(0,L.jsxs)(Gn,{selected:g===`vue`,onClick:()=>v(`vue`),children:[(0,L.jsx)(`i`,{className:`fab fa-vuejs`,style:{fontSize:18,width:24,textAlign:`center`,marginRight:8,color:`#42b883`}}),`Vue`]})]})]})}),(0,L.jsxs)(k,{sx:{p:2,bgcolor:m.palette.background.paper,color:m.palette.text.primary},children:[(0,L.jsx)(Me,{autoFocus:!0,fullWidth:!0,margin:`dense`,label:u?.form?.connection?.label?.username,value:e,onChange:e=>t(e.target.value),autoComplete:`username`,onKeyDown:e=>e.key===`Enter`&&_(),slotProps:{input:{startAdornment:(0,L.jsx)(zn,{position:`start`,children:(0,L.jsx)(Lo,{fontSize:`small`})})}}}),(0,L.jsx)(Me,{fullWidth:!0,margin:`dense`,label:u?.form?.connection?.label?.password,type:i?`text`:`password`,value:n,onChange:e=>r(e.target.value),autoComplete:`current-password`,onKeyDown:e=>e.key===`Enter`&&_(),slotProps:{input:{startAdornment:(0,L.jsx)(zn,{position:`start`,children:(0,L.jsx)(Mo,{fontSize:`small`})}),endAdornment:(0,L.jsx)(zn,{position:`end`,children:(0,L.jsx)(N,{onClick:()=>a(!i),size:`small`,children:i?(0,L.jsx)(Ko,{fontSize:`small`}):(0,L.jsx)(Go,{fontSize:`small`})})})}}}),p&&(0,L.jsx)(k,{sx:{color:`#f44336`,fontSize:13,mt:1},children:(e=>u?.confirm?.invalidCredentials)(p)})]}),(0,L.jsx)(k,{sx:{bgcolor:h,gap:1,px:1,py:1,display:`flex`,justifyContent:`flex-end`},children:d?(0,L.jsxs)(Jt,{variant:`contained`,color:`primary`,onClick:_,disabled:o||!e||!n,children:[(0,L.jsx)(No,{fontSize:`small`}),(0,L.jsx)(`span`,{style:{marginLeft:3},children:u?.intention?.ok})]}):(0,L.jsx)(me,{title:u?.intention?.ok,placement:`top`,children:(0,L.jsx)(`span`,{children:(0,L.jsx)(N,{color:`primary`,onClick:_,disabled:o||!e||!n,sx:{borderRadius:`4px`},children:(0,L.jsx)(ko,{fontSize:`small`})})})})})]})})}var dl=/spider|bot|yahoo|bing|google|yandex|crawl|slurp|curl/i.test(navigator.userAgent);function fl(e){if(!dl)try{let t=Be.getState().googleAnalytics;window.gtag?.(`config`,t,{page_path:e})}catch{}}function pl({open:e,onClose:t,title:n,children:r,actions:i,headerActions:a,contentPadding:o=!0,height:s,fullScreenOnMobile:c=!0,width:l=`75vw`,maxWidth:u,scroll:d=`paper`}){let f=ee(),p=yo(e=>e.themeKey),m=rr(`(max-width: 599px)`),h=c&&m,g=p===`matrix`?`#0a2e0d`:f.p3xr.accordionBg;return(0,L.jsxs)(mn,{open:e,onClose:t,scroll:d,fullScreen:h,maxWidth:u??!1,slotProps:{paper:{sx:{...!h&&{width:l,maxWidth:l},...s&&!h&&{height:s},maxHeight:`calc(100vh - 64px)`,display:`flex`,flexDirection:`column`,overflow:`hidden`}}},children:[(0,L.jsx)(It,{position:`static`,sx:{backgroundColor:`${f.p3xr.strongBg} !important`,backgroundImage:`none !important`,color:`rgba(255,255,255,0.87) !important`,flexShrink:0,boxShadow:`none`},children:(0,L.jsxs)(pe,{variant:`dense`,disableGutters:!0,sx:{minHeight:`48px !important`,height:48,maxHeight:48,px:1},children:[(0,L.jsx)(k,{sx:{flex:`1 1 auto`,height:`100%`,display:`flex`,alignItems:`center`,lineHeight:`28px`,fontSize:16,fontWeight:500,pl:1,overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`},children:n}),a,(0,L.jsx)(N,{color:`inherit`,onClick:t,size:`small`,sx:{m:0},children:(0,L.jsx)(Do,{})})]})}),(0,L.jsx)(Cn,{sx:{flex:`1 1 auto`,minHeight:0,overflow:`auto`,p:o?2:0,bgcolor:f.palette.background.paper,backgroundImage:`none`,color:f.palette.text.primary},children:r}),i&&(0,L.jsx)(vn,{sx:{flexShrink:0,bgcolor:g,gap:1,px:1,py:1,justifyContent:`flex-end`,"& .MuiButton-root":{m:0,minWidth:0,whiteSpace:`nowrap`,pl:`10px`,pr:`8px`,letterSpacing:`0.01em`}},children:i})]})}function ml({open:e,onClose:t,onPick:n}){let r=j(e=>e.strings),i=F(e=>e.modules)||[],a=F(e=>e.info),[o,s]=(0,I.useState)(``),c=(0,I.useMemo)(()=>i.map(e=>(e?.name||``).toLowerCase()),[i]),l=(0,I.useMemo)(()=>{let e=a?.server?.redis_version||``,t=/^(\d+)/.exec(e);return t?parseInt(t[1],10):0},[a]),u=a?.server?.redis_mode===`cluster`,d=(0,I.useMemo)(()=>{let e=r?.label?.cheatsheet?.groups;if(!e)return[];let t=[],n=(e,n)=>{!n||!Array.isArray(n.prompts)||n.prompts.length===0||t.push({key:e,name:n.name,description:n.description,prompts:n.prompts})};return n(`diagnostics`,e.diagnostics),n(`keys`,e.keys),n(`dataTypes`,e.dataTypes),(c.includes(`rejson`)||c.includes(`rejson-rl`)||c.includes(`json`))&&n(`json`,e.json),(c.includes(`search`)||c.includes(`searchlight`))&&n(`search`,e.search),c.includes(`timeseries`)&&n(`timeseries`,e.timeseries),c.includes(`bf`)&&n(`bloom`,e.bloom),l>=8&&(n(`vectorSet`,e.vectorSet),n(`redis8`,e.redis8),n(`array`,e.array)),n(`scripting`,e.scripting),u&&n(`cluster`,e.cluster),l>=6&&n(`acl`,e.acl),n(`qna`,e.qna),n(`translate`,e.translate),t},[r,c,l,u]),f=e=>{let t=o.trim().toLowerCase();return t?e.filter(e=>e.toLowerCase().includes(t)):e},p=d.every(e=>f(e.prompts).length===0),m=r?.label?.cheatsheet;return e?(0,L.jsxs)(pl,{open:!0,onClose:t,title:m?.title,width:`720px`,contentPadding:!1,actions:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(k,{sx:{flex:`1 1 auto`}}),(0,L.jsxs)(Jt,{variant:`contained`,color:`primary`,size:`small`,onClick:()=>window.open(`https://redis.io/docs/latest/commands/`,`_blank`),children:[(0,L.jsx)(Fo,{fontSize:`small`}),(0,L.jsx)(`span`,{style:{marginLeft:3},children:m?.openOfficialDocs})]}),(0,L.jsxs)(Jt,{variant:`contained`,color:`primary`,size:`small`,onClick:t,children:[(0,L.jsx)(Do,{fontSize:`small`}),(0,L.jsx)(`span`,{style:{marginLeft:3},children:r?.intention?.close})]})]}),children:[(0,L.jsxs)(k,{sx:{position:`sticky`,top:0,zIndex:2,bgcolor:`background.paper`,borderBottom:`1px solid rgba(127,127,127,0.2)`,px:2,py:1.5},children:[m?.subtitle&&(0,L.jsx)(k,{sx:{fontSize:13,opacity:.8,lineHeight:1.4,pb:.5},children:m.subtitle}),m?.footerHint&&(0,L.jsx)(k,{sx:{fontSize:13,opacity:.8,lineHeight:1.4,pb:.75},children:m.footerHint}),(0,L.jsx)(Me,{fullWidth:!0,size:`small`,variant:`filled`,hiddenLabel:!0,placeholder:m?.searchPlaceholder||``,value:o,onChange:e=>s(e.target.value),onKeyDown:e=>e.stopPropagation(),sx:{"& .MuiFormHelperText-root":{display:`none`},"& .MuiFilledInput-root":{mb:0}},InputProps:{startAdornment:(0,L.jsx)(zn,{position:`start`,children:(0,L.jsx)(zo,{fontSize:`small`})})}})]}),(0,L.jsxs)(k,{sx:{p:`12px 16px`},children:[d.map(e=>{let r=f(e.prompts);return r.length===0?null:(0,L.jsxs)(k,{sx:{mb:2.5},children:[(0,L.jsx)(k,{sx:{fontSize:14,fontWeight:600,textTransform:`uppercase`,letterSpacing:`0.5px`,opacity:.85,mt:1},children:e.name}),e.description&&(0,L.jsx)(k,{sx:{fontSize:12,opacity:.65,mt:.5,mb:1},children:e.description}),(0,L.jsx)(k,{sx:{display:`flex`,flexDirection:`column`,gap:.5,mt:.5},children:r.map((e,r)=>(0,L.jsx)(Jt,{variant:`outlined`,size:`small`,onClick:()=>{n(`ai: `+e),t()},sx:{justifyContent:`flex-start`,textAlign:`left`,fontFamily:`Roboto Mono, monospace`,fontSize:12,textTransform:`none`,letterSpacing:`normal`,lineHeight:1.4,minHeight:32,py:.75,px:1.5,borderRadius:`4px`,whiteSpace:`normal`},children:e},r))})]},e.key)}),p&&(0,L.jsx)(k,{sx:{p:3,textAlign:`center`,opacity:.6,fontSize:13},children:m?.empty})]})]}):null}function hl({label:e,icon:t,raised:n=!1,color:r=`inherit`,disabled:i=!1,tooltipPlacement:a=`top`,breakpoint:o=720,onClick:s}){return rr(`(min-width: ${o}px)`)?(0,L.jsxs)(Jt,{variant:n?`contained`:`text`,color:r,disabled:i,onClick:s,sx:{gap:`3px`},children:[t,(0,L.jsx)(`span`,{children:e})]}):n?(0,L.jsx)(me,{title:e,placement:a,children:(0,L.jsx)(`span`,{children:(0,L.jsx)(Pn,{size:`small`,color:r===`inherit`?`primary`:r,disabled:i,onClick:s,sx:{borderRadius:`4px`,boxShadow:`none`},children:t})})}):(0,L.jsx)(me,{title:e,placement:a,children:(0,L.jsx)(`span`,{children:(0,L.jsx)(N,{color:r,disabled:i,onClick:s,sx:{borderRadius:`4px`,m:0},children:t})})})}function gl(e){return String(e).replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/"/g,`&quot;`).replace(/'/g,`&#39;`)}var _l=`p3xr-console-output-v1`,vl=10485760,yl=-1;function bl({embedded:e=!1,collapsed:t=!1,showCloseButton:n=!1,onCloseRequest:r}){let i=j(e=>e.strings),a=F(e=>e.cfg),o=F(e=>e.commands),s=F(e=>e.commandsMeta),c=ee(),{toast:l}=es(),[u,d]=(0,I.useState)(``),[f,p]=(0,I.useState)(``),[m,h]=(0,I.useState)(!1),g=(0,I.useRef)(0),[_,v]=(0,I.useState)(()=>{try{return localStorage.getItem(`p3xr-ai-auto-detect`)!==`false`}catch{return!0}}),y=(0,I.useRef)(null),b=(0,I.useRef)(null),x=(0,I.useRef)(null),S=(0,I.useRef)(0),C=(0,I.useRef)(0),w=(0,I.useRef)(!1),T=a?.aiEnabled!==!1,[te,ne]=(0,I.useState)(0),[E,re]=(0,I.useState)(!1),[ie,D]=(0,I.useState)(!1),[O,ae]=(0,I.useState)(!1),oe=(0,I.useMemo)(()=>{if(!u||u.length===0||!o?.length)return[];let e=u.toUpperCase(),t=o.filter(t=>t.toUpperCase().includes(e)).slice(0,20),n=new Map;for(let e of t){let t=s[e.toUpperCase()],r=t?.group||`Other`,i=t?.syntax||``;n.has(r)||n.set(r,[]),n.get(r).push({name:e,syntax:i})}return Array.from(n.entries()).map(([e,t])=>({group:e,commands:t}))},[u,o,s]),A=(0,I.useMemo)(()=>{let e=[];for(let t of oe)e.push(...t.commands);return e},[oe]),se=(0,I.useCallback)(()=>{let e=!_;v(e);try{localStorage.setItem(`p3xr-ai-auto-detect`,String(e))}catch{}},[_]),ce=e=>{try{return new Blob([e||``]).size}catch{return(e||``).length}},le=(0,I.useCallback)(()=>{let e=y.current;if(!e)return!1;let t=e.querySelectorAll(`.p3xr-console-content-output-item`);if(t.length<1)return!1;let n=Math.max(Math.floor(t.length*.1),1);for(let e=0;e<n;e++)t[e].remove();return!0},[]),ue=(0,I.useCallback)(()=>{let e=y.current;if(e)for(;ce(e.innerHTML)>vl&&le(););},[le]),de=(0,I.useCallback)(()=>{let e=y.current;if(e){ue();try{localStorage.setItem(_l,e.innerHTML||``)}catch{try{localStorage.removeItem(_l)}catch{}}}},[ue]),fe=(0,I.useRef)(null),P=(0,I.useCallback)(()=>{clearTimeout(fe.current),fe.current=setTimeout(de,100)},[de]),he=(0,I.useCallback)(()=>{setTimeout(()=>{let e=b.current;e&&e.scrollHeight-e.scrollTop-e.clientHeight<100&&(e.scrollTop=e.scrollHeight)},0)},[]),_e=(0,I.useCallback)(()=>{let e=()=>{let e=b.current;e&&(e.scrollTop=e.scrollHeight)};requestAnimationFrame(()=>requestAnimationFrame(e)),setTimeout(e,120)},[]),ve=(0,I.useCallback)(e=>{let t=y.current;t&&e.replace(/<[^>]*>/g,``).replace(/&[a-z]+;/g,``).trim()&&(t.insertAdjacentHTML(`beforeend`,`<span data-index="${S.current++}" class="p3xr-console-content-output-item">${e}<br/></span>`),ue(),P(),he())},[ue,P,he]);(0,I.useEffect)(()=>{let e=y.current;if(!e)return;let t=``;try{t=localStorage.getItem(_l)||``}catch{}if(t){e.innerHTML=t,ue(),de();let n=e.querySelectorAll(`.p3xr-console-content-output-item`),r=n.length>0?n[n.length-1]:null;if(r){let e=Number(r.getAttribute(`data-index`));Number.isFinite(e)&&(S.current=e+1)}_e()}else{e.innerHTML=``;let t=i?.label?.welcomeConsole??`Welcome to the Redis Console`,n=i?.label?.welcomeConsoleInfo??`Shift + Cursor UP or DOWN for history`;e.insertAdjacentHTML(`beforeend`,`<span data-index="${S.current++}" class="p3xr-console-content-output-item"><strong>${t}</strong><br/></span>`),e.insertAdjacentHTML(`beforeend`,`<span data-index="${S.current++}" class="p3xr-console-content-output-item">${n}<br/></span>`),e.insertAdjacentHTML(`beforeend`,`<div class="p3xr-console-spacer">&nbsp;</div>`),de()}},[]);let ye=(0,I.useCallback)(()=>{let e=y.current;if(!e)return;e.innerHTML=``;let t=i?.label?.welcomeConsole??`Welcome to the Redis Console`,n=i?.label?.welcomeConsoleInfo??`Shift + Cursor UP or DOWN for history`;ve(`<strong>${t}</strong>`),ve(n),e.insertAdjacentHTML(`beforeend`,`<div class="p3xr-console-spacer">&nbsp;</div>`),de(),_e(),x.current?.focus()},[i,ve,de,_e]),be=()=>{try{return JSON.parse(localStorage.getItem(`console-history`)||`[]`)}catch{return[]}},xe=e=>{let t=be(),n=t.indexOf(e);n>-1&&t.splice(n,1),t.unshift(e),t.length>20&&(t=t.slice(0,20)),localStorage.setItem(`console-history`,JSON.stringify(t)),yl=-1},Se=(0,I.useCallback)(()=>{let e=x.current;if(e){if(C.current||=e.offsetHeight,document.activeElement!==e&&(e.value||``).includes(`
`)){e.style.height=C.current+`px`,e.style.overflowY=`hidden`;return}if(e.style.height=C.current+`px`,e.style.overflowY=`hidden`,(e.value||``).includes(`
`)&&e.scrollHeight>e.clientHeight){let t=C.current*3,n=e.offsetHeight-e.clientHeight,r=e.scrollHeight+n;r>t?(e.style.height=t+`px`,e.style.overflowY=`auto`):e.style.height=r+`px`}}},[]),Ce=(0,I.useRef)(null);(0,I.useEffect)(()=>{ne(0)},[A.length]),(0,I.useEffect)(()=>{let e=Ce.current;if(!e)return;let t=e.querySelector(`[data-ac-idx="${te}"]`);t&&t.scrollIntoView({block:`nearest`})},[te]);let we=(0,I.useCallback)(e=>{d(e),re(!0),setTimeout(()=>{x.current?.focus(),Se()},0)},[Se]),Ee=(0,I.useCallback)(()=>{re(!0)},[]),De=(0,I.useCallback)((e,t)=>{if(!/unknown command|wrong number of arguments|ERR unknown/i.test(t))return!1;let n=e.trim().split(/\s+/)[0].toUpperCase();return!o?.includes(n)},[o]),Oe=(0,I.useCallback)(async(e,t)=>{if(e.length>4096)return l(i?.error?.aiPromptTooLong),!1;let n=++g.current;h(!0),x.current?.focus();try{let r=[];try{r=(await W({action:`search/list`,payload:{}})).data||[]}catch{}let i=F.getState().info||{},a=i.server||{},o=i.clients||{},s=i.memory||{},l=i.keyspace||{},u=F.getState().modules||[],f={indexes:r};a.redis_version&&(f.redisVersion=a.redis_version),a.redis_mode&&(f.redisMode=a.redis_mode),a.os&&(f.os=a.os),o.connected_clients&&(f.connectedClients=o.connected_clients),s.used_memory_human&&(f.usedMemory=s.used_memory_human);let m=Object.keys(l).filter(e=>/^db\d+$/.test(e));m.length>0&&(f.databases=m.map(e=>`${e}: ${l[e]}`)),u.length>0&&(f.modules=u),f.uiLanguage=j.getState().currentLang;let h=F.getState();f.connectionState=h.connectionState,f.currentPage=h.currentPage,h.connection?.name&&(f.connectionName=h.connection.name),h.currentDatabase!==void 0&&(f.currentDatabase=h.currentDatabase);let _=await W({action:`ai/redis-query`,payload:{prompt:e,context:f}});if(n!==g.current)return!1;let v=_.command||``,y=_.explanation||``,b=Array.isArray(_.toolTrail)?_.toolTrail:[];ve(`<strong>${gl(t)}</strong>`),xe(t);for(let e of b){let t=e.args&&Object.keys(e.args).length?`(`+Object.entries(e.args).map(([e,t])=>`${e}=${JSON.stringify(t)}`).join(`, `)+`)`:`()`,n=`<span style="opacity: 0.85;"><strong>tool:</strong> <code>${gl(e.name+t)}</code> <span style="opacity: 0.6;">${e.ms??0}ms</span></span>`;if(e.ok){let t=String(e.result??``).split(`
`).slice(0,12).join(`
`);ve(`${n}<br/><pre style="opacity: 0.85; margin: 2px 0 6px 0;">${gl(t)}</pre>`)}else ve(`${n}<br/><span style="color: ${c.palette.error.main};">${gl(e.error||`tool error`)}</span>`)}let x=b.length>0;if(v){let e=`<strong style="color: ${c.palette.primary.main};">AI &rarr;</strong> <code>${gl(v)}</code>`;y&&(e+=`<pre>${gl(y)}</pre>`),ve(e),x||(d(v),p(``),w.current=!0,setTimeout(()=>Se(),0))}else y&&ve(`<pre>${gl(y)}</pre>`);return!0}catch(e){if(n!==g.current)return!1;let t=e.message||String(e);return ve(`<span style="color: ${c.palette.error.main};">AI error: ${gl(t)}</span>`),t.includes(`429`)||t.includes(`rate_limit`)?l(i?.page?.key?.label?.aiRateLimited):l(i?.page?.key?.label?.aiError+`: `+t),!1}finally{n===g.current&&(h(!1),_e(),x.current?.focus())}},[c,i,ve,_e,l,Se]),ke=(0,I.useCallback)(()=>{g.current++,h(!1),d(``),p(``),setTimeout(()=>{Se(),x.current?.focus()},0)},[Se]),Ae=(0,I.useCallback)(async e=>{let t=e.trim();if(t){if(T&&/^ai:\s*/i.test(t)){let e=t.replace(/^ai:\s*/i,``).trim();e&&await Oe(e,t);return}try{let e=await W({action:`redis/console`,payload:{command:t}}),n=gl(String(Yo(e.result)));ve(`<strong>${gl(t)}</strong><br/><pre>${n}</pre>`),e.hasOwnProperty(`database`)&&F.setState({currentDatabase:e.database,redisChanged:!0})}catch(e){let n=e.message||``;if(T&&_&&De(t,n)&&await Oe(t,t))return;let r=j.getState().strings;ve(`<strong>${gl(t)}</strong><br/><pre style="color: ${c.palette.error.main};">${r?.code?.[n]||n}</pre>`)}}},[T,_,De,Oe,ve]),je=(0,I.useCallback)(async()=>{let t=u.trim();if(!(!t||m))try{let e=t.split(`
`).map(e=>e.trim()).filter(e=>e.length>0);if(!e.length)return;let n=e[0].split(/\s+/)[0].toUpperCase();if(e.length===1||n===`EVAL`||n===`EVALSHA`)await Ae(t);else for(let t of e)await Ae(t)}finally{xe(t),p(``),w.current?w.current=!1:(d(``),setTimeout(()=>Se(),0)),_e(),e&&sl.getState().refresh({withoutParent:!0,force:!0}),x.current?.focus()}},[u,m,Ae,Se,_e,e]),Me=(0,I.useCallback)(e=>{d(e),re(!1),D(!1);let t=e.trim().split(/\s+/)[0]?.toUpperCase();t&&s[t]?.syntax?p(t+` `+s[t].syntax):p(``),setTimeout(()=>Se(),0)},[s,Se]),Ne=A.length>0&&!E,Pe=(0,I.useCallback)(e=>{if(e.key===`Tab`&&Ne){e.preventDefault();let t=A[te];t&&we(t.name);return}if(e.key===`Enter`){if(e.shiftKey){setTimeout(()=>Se(),0);return}if(e.preventDefault(),Ne&&ie){let e=A[te];if(e){we(e.name);return}}re(!0),je();return}if(Ne&&!e.shiftKey&&(e.key===`ArrowDown`||e.key===`ArrowUp`)){e.preventDefault(),D(!0),ne(t=>e.key===`ArrowDown`?(t+1)%A.length:(t-1+A.length)%A.length);return}if(e.key===`Escape`){re(!0);return}if(e.key!==`ArrowUp`&&e.key!==`ArrowDown`){yl=-1;return}if(!e.shiftKey)return;let t=be();if(t.length<1)return;e.preventDefault(),e.stopPropagation(),e.key===`ArrowDown`?(yl===-1&&(yl=t.length),yl--,yl<0&&(yl=t.length-1)):(yl++,yl>=t.length&&(yl=0));let n=t[yl]??``;d(n),setTimeout(()=>{let e=x.current;e&&(e.blur(),e.focus()),Se()},0)},[je,Se,A,te,we,E,ie,Ne]);return(0,I.useEffect)(()=>{requestAnimationFrame(()=>Se())},[u,Se]),(0,I.useEffect)(()=>{let e=x.current;if(!e)return;let t=()=>setTimeout(()=>Se(),0);return e.addEventListener(`paste`,t),()=>e.removeEventListener(`paste`,t)},[Se]),(0,I.useEffect)(()=>()=>{clearTimeout(fe.current),de()},[de]),(0,L.jsxs)(k,{className:`p3xr-console-root`,sx:{display:`flex`,flexDirection:`column`,width:`100%`,height:`100%`,overflow:`hidden`},children:[(0,L.jsx)(pe,{id:`p3xr-console-header`,variant:`dense`,disableGutters:!0,sx:{backgroundColor:`${c.p3xr.accordionBg} !important`,backgroundImage:`none !important`,color:`${c.p3xr.accordionColor} !important`,minHeight:`48px !important`,height:48,maxHeight:48,px:0,flexShrink:0,zIndex:2,"& *":{color:`inherit`},"& .MuiButton-root":{color:`inherit !important`,textTransform:`uppercase`,height:36,minHeight:36,minWidth:`auto`,px:1,mx:1,letterSpacing:`0.1px`,display:`inline-flex`,alignItems:`center`,gap:`3px`,"&:hover":{bgcolor:`rgba(0,0,0,0.08) !important`}},"& .MuiIconButton-root":{color:`inherit !important`,borderRadius:`4px`,"&:hover":{bgcolor:`rgba(0,0,0,0.08) !important`}}},children:(0,L.jsxs)(k,{sx:{display:`flex`,alignItems:`center`,width:`100%`,height:`100%`,px:`3px`},children:[(0,L.jsx)(Wo,{sx:{mr:`6px`}}),(0,L.jsx)(k,{className:`p3xr-console-title`,sx:{fontSize:20,fontWeight:500,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:i?.label?.console}),(0,L.jsx)(k,{sx:{flex:`1 1 auto`}}),(0,L.jsxs)(k,{className:`p3xr-console-toolbar-actions`,sx:{display:`inline-flex`,alignItems:`center`,flexShrink:0,whiteSpace:`nowrap`},children:[T&&(0,L.jsxs)(k,{className:`p3xr-console-ai-toggle`,onClick:se,sx:{display:`inline-flex`,alignItems:`center`,gap:`4px`,mx:1,px:1,height:36,cursor:`pointer`,fontSize:13,textTransform:`uppercase`,borderRadius:`4px`,userSelect:`none`,whiteSpace:`nowrap`,flexShrink:0,"&:hover":{bgcolor:`rgba(255,255,255,0.15)`}},children:[_?(0,L.jsx)(To,{sx:{fontSize:20,width:20,height:20}}):(0,L.jsx)(Eo,{sx:{fontSize:20,width:20,height:20}}),(0,L.jsx)(`span`,{children:`Auto AI`})]}),(0,L.jsx)(hl,{label:i?.label?.redisCommandsReference??`Redis Commands`,icon:(0,L.jsx)(Fo,{fontSize:`small`}),onClick:()=>ae(!0)}),(0,L.jsx)(hl,{label:i?.intention?.clear??`Clear`,icon:(0,L.jsx)(Co,{fontSize:`small`}),onClick:ye}),n&&(0,L.jsx)(me,{title:i?.label?.consoleDrawer?.closeTooltip??i?.intention?.close??``,placement:`top`,children:(0,L.jsx)(N,{onClick:r,"aria-label":i?.label?.consoleDrawer?.closeTooltip??i?.intention?.close??``,children:(0,L.jsx)(ge,{fontSize:`small`})})})]})]})}),(0,L.jsx)(k,{ref:b,id:`p3xr-console-content`,sx:{flex:t?`0 0 0px`:`1 1 auto`,minHeight:0,overflow:t?`hidden`:`auto`,display:t?`none`:`block`,fontFamily:`'Roboto Mono', monospace`,textAlign:`center`,px:`4px`,"& pre":{fontFamily:`'Roboto Mono', monospace`,whiteSpace:`pre-wrap`,wordBreak:`break-word`,overflowWrap:`anywhere`}},children:(0,L.jsx)(k,{ref:y,id:`p3xr-console-content-output`,sx:{textAlign:`left`,overflow:`auto`,flexGrow:1,minWidth:`calc(100% - 20px)`}})}),Ne&&!t&&x.current&&(0,L.jsx)(Zt,{onClickAway:Ee,children:(0,L.jsx)(M,{open:!0,anchorEl:x.current,placement:`top-start`,sx:{zIndex:1300,width:x.current?.offsetWidth||`100%`},children:(0,L.jsx)(Te,{ref:Ce,sx:{maxHeight:350,overflow:`auto`,fontFamily:`'Roboto Mono', monospace`,fontSize:13,bgcolor:`background.paper`,backgroundImage:`none`},children:oe.map(e=>(0,L.jsxs)(k,{children:[(0,L.jsx)(k,{sx:{fontSize:11,fontWeight:`bold`,textTransform:`uppercase`,letterSpacing:`0.5px`,minHeight:28,lineHeight:`28px`,opacity:.7,px:2},children:e.group}),e.commands.map(e=>{let t=A.indexOf(e);return(0,L.jsxs)(k,{"data-ac-idx":t,onClick:()=>we(e.name),sx:{minHeight:32,lineHeight:`32px`,px:2,cursor:`pointer`,fontSize:13,fontFamily:`'Roboto Mono', monospace`,bgcolor:t===te?`action.hover`:`transparent`,"&:hover":{bgcolor:`action.hover`}},children:[(0,L.jsx)(k,{component:`span`,sx:{fontWeight:`bold`,mr:1},children:e.name}),e.syntax&&(0,L.jsx)(k,{component:`span`,sx:{opacity:.5,fontSize:11},children:e.syntax})]},e.name)})]},e.group))})})}),(0,L.jsxs)(k,{id:`p3xr-console-autocomplete`,sx:{position:`relative`,width:`100%`,flexShrink:0,minWidth:0},children:[f&&!t&&(0,L.jsx)(k,{className:`p3xr-console-hint`,sx:{fontFamily:`'Roboto Mono', monospace`,fontSize:12,px:`6px`,py:`2px`,opacity:.6,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`},children:f}),(0,L.jsx)(`textarea`,{ref:x,id:`p3xr-console-input`,rows:1,value:u,onChange:e=>Me(e.target.value),onKeyDown:Pe,onFocus:()=>Se(),onBlur:()=>setTimeout(()=>Se(),0),autoComplete:`off`,readOnly:m,placeholder:m?i?.label?.aiTranslating??`Translating...`:``,style:{display:`block`,width:t?`calc(100% - 1px)`:`100%`,minWidth:t?`calc(100% - 1px)`:`100%`,boxSizing:`border-box`,padding:3,paddingRight:m?40:3,borderStyle:`solid`,borderWidth:3,margin:0,fontFamily:`'Roboto Mono', monospace`,resize:`none`,overflowY:`hidden`,outline:`none`,maxHeight:90,position:`relative`,backgroundColor:c.p3xr.inputBg,color:c.p3xr.inputColor,borderColor:m?c.palette.primary.main:c.p3xr.inputBorderColor,opacity:m?.55:1,cursor:m?`not-allowed`:`text`}}),m&&(0,L.jsx)(me,{title:i?.intention?.cancel??`Cancel`,children:(0,L.jsx)(N,{size:`small`,onClick:ke,sx:{position:`absolute`,top:`50%`,right:6,transform:`translateY(-50%)`,zIndex:3,color:c.palette.primary.main,padding:`2px`,"&:hover":{backgroundColor:`transparent`,opacity:.8}},children:(0,L.jsx)(Ho,{fontSize:`medium`})})})]}),(0,L.jsx)(ml,{open:O,onClose:()=>ae(!1),onPick:e=>{d(e),p(``),setTimeout(()=>{x.current?.focus(),Se()},0)}})]})}var xl=`p3xr-console-drawer-height`,Sl=15,Cl=66,wl=48;function Tl(){let e=F(e=>e.consoleDrawerOpen),t=F(e=>e.setConsoleDrawerOpen),n=ee(),r=n.palette.mode===`dark`,[i,a]=(0,I.useState)(!1),[o,s]=(0,I.useState)(!1),c=(0,I.useRef)(null),l=(0,I.useRef)(null),u=(0,I.useRef)(null),d=(0,I.useCallback)(e=>{let t=u.current;t||(t=document.createElement(`style`),t.setAttribute(`data-p3xr-console-drawer-drag`,``),document.head.appendChild(t),u.current=t),t.textContent=`*, *::before, *::after { cursor: ${e} !important; }`},[]),f=(0,I.useCallback)(()=>{u.current?.remove(),u.current=null},[]);(0,I.useEffect)(()=>{if(!c.current||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{window.dispatchEvent(new Event(`resize`))});return e.observe(c.current),()=>e.disconnect()},[]),(0,I.useEffect)(()=>{if(!i)return;let e=e=>{let t=Sl/100*window.innerHeight,n=Cl/100*window.innerHeight,r=window.innerHeight-e.clientY-wl,i=r<t||r>n;r<t&&(r=t),r>n&&(r=n),d(i?`not-allowed`:`ns-resize`),document.documentElement.style.setProperty(`--p3xr-console-drawer-height`,`${Math.round(r)}px`)},t=()=>{a(!1),f(),document.body.classList.remove(`p3xr-not-selectable`),document.documentElement.classList.remove(`p3xr-console-drawer-resizing`);let e=document.documentElement.style.getPropertyValue(`--p3xr-console-drawer-height`);e&&e.endsWith(`px`)&&localStorage.setItem(xl,e)};return document.addEventListener(`mousemove`,e),document.addEventListener(`mouseup`,t),()=>{document.removeEventListener(`mousemove`,e),document.removeEventListener(`mouseup`,t)}},[i,d,f]);let p=(0,I.useCallback)(e=>{e.preventDefault(),e.stopPropagation(),a(!0),d(`ns-resize`),document.body.classList.add(`p3xr-not-selectable`),document.documentElement.classList.add(`p3xr-console-drawer-resizing`)},[d]),m=i?r?`brightness(2)`:`brightness(0.5)`:o?r?`brightness(1.5)`:`brightness(0.75)`:`none`;return(0,L.jsxs)(k,{ref:c,id:`p3xr-console-drawer`,className:e?`p3xr-drawer-open`:``,sx:{position:`fixed`,left:`5px`,right:`calc(5px + var(--p3xr-scroll-gutter, 0px))`,bottom:`48px`,height:e?`var(--p3xr-console-drawer-height, 30vh)`:0,overflow:`hidden`,bgcolor:`background.paper`,color:`text.primary`,border:e?`1px solid`:`0 solid`,borderColor:n.p3xr?.accordionBg,borderRadius:`4px 4px 0 0`,zIndex:8,transition:i?`none`:`height 150ms ease-out`,display:`flex`,flexDirection:`column`},children:[(0,L.jsx)(k,{ref:l,id:`p3xr-console-drawer-sizer`,role:`separator`,"aria-orientation":`horizontal`,"aria-label":`Resize console drawer`,onMouseDown:p,onMouseEnter:()=>s(!0),onMouseLeave:()=>s(!1),sx:{position:`absolute`,top:0,left:0,right:0,height:`5px`,cursor:`ns-resize`,zIndex:3,bgcolor:o||i?n.p3xr?.accordionBg:`transparent`,filter:m,transition:`background-color 0.15s ease, filter 0.15s ease`}}),(0,L.jsx)(k,{id:`p3xr-console-drawer-body`,sx:{flex:`1 1 auto`,minHeight:0,overflow:`hidden`,position:`relative`},children:(0,L.jsx)(bl,{embedded:!0,showCloseButton:!0,onCloseRequest:()=>t(!1)})})]})}var El=!1;function Dl(){if(El)return;El=!0;let e=document.createElement(`style`);e.setAttribute(`data-p3xr-overlay-scroll`,``),e.textContent=`
        .p3xr-os-viewport { scrollbar-width: none !important; -ms-overflow-style: none !important; }
        .p3xr-os-viewport::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
        .p3xr-os-thumb {
            position: fixed;
            width: 8px;
            border-radius: 4px;
            background-color: rgba(128, 128, 128, 0.5);
            opacity: 0;
            transition: opacity 0.25s ease, background-color 0.15s ease;
            pointer-events: auto;
            z-index: 2147483647;
            /* will-change was creating a GPU layer that composited BEHIND
               Angular Material cdk-overlay-container subtree on some themes,
               even though the thumb z-index is higher than the container.
               Without it, the thumb paints in normal document order and
               respects z-index. Removed. */
            isolation: isolate;
        }
        .p3xr-os-thumb:hover { background-color: rgba(128, 128, 128, 0.75); }
        body.p3xr-theme-dark .p3xr-os-thumb { background-color: rgba(255, 255, 255, 0.35); }
        body.p3xr-theme-dark .p3xr-os-thumb:hover { background-color: rgba(255, 255, 255, 0.6); }
        body.p3xr-theme-light .p3xr-os-thumb { background-color: rgba(0, 0, 0, 0.35); }
        body.p3xr-theme-light .p3xr-os-thumb:hover { background-color: rgba(0, 0, 0, 0.6); }
    `,document.head.appendChild(e)}function Ol(e){Dl(),e.classList.add(`p3xr-os-viewport`);let t=document.createElement(`div`);t.className=`p3xr-os-thumb`;let n=e.closest(`.mat-mdc-dialog-surface, .mat-mdc-menu-panel, .mat-mdc-autocomplete-panel, .mat-mdc-select-panel`),r=e.closest(`.cdk-overlay-container`);(n||r||document.body).appendChild(t);let i=null,a=!1,o=0,s=0,c=30,l=n?16:10,u=()=>{t.style.opacity=`1`,i&&clearTimeout(i),i=setTimeout(()=>{a||(t.style.opacity=`0`)},1200)},d=()=>{let n=e.getBoundingClientRect(),{scrollTop:r,scrollHeight:i,clientHeight:a}=e;if(i<=a+1){t.style.display=`none`;return}t.style.display=`block`,c=Math.max(30,a/i*a);let o=i-a,s=a-c-8,u=o>0?r/o*s:0;t.style.left=`${n.right-l}px`,t.style.top=`${n.top+4+u}px`,t.style.height=`${c}px`},f=()=>{d(),u()},p=()=>u(),m=t=>{t.preventDefault(),a=!0,o=t.clientY,s=e.scrollTop,document.addEventListener(`mousemove`,h),document.addEventListener(`mouseup`,g)},h=t=>{if(!a)return;let{scrollHeight:n,clientHeight:r}=e,i=n-r,l=r-c,d=t.clientY-o;e.scrollTop=s+(l>0?d/l:0)*i,u()},g=()=>{a=!1,document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,g),u()};e.addEventListener(`scroll`,f,{passive:!0}),e.addEventListener(`mousemove`,p),t.addEventListener(`mousedown`,m);let _=new ResizeObserver(d);_.observe(e);for(let t of Array.from(e.children))_.observe(t);let v=new MutationObserver(e=>{for(let t of e)t.addedNodes.forEach(e=>{e.nodeType===1&&_.observe(e)});d()});v.observe(e,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:[`style`,`class`,`hidden`]}),window.addEventListener(`resize`,d);let y=!1,b=0,x=e=>{if(b=Date.now()+e,y)return;y=!0;let t=()=>{d(),Date.now()<b?requestAnimationFrame(t):y=!1};requestAnimationFrame(t)},S=t=>{(t.target===e||t.target===e.parentElement)&&x(250)};return window.addEventListener(`transitionrun`,S),d(),{destroy(){e.removeEventListener(`scroll`,f),e.removeEventListener(`mousemove`,p),t.removeEventListener(`mousedown`,m),document.removeEventListener(`mousemove`,h),document.removeEventListener(`mouseup`,g),window.removeEventListener(`resize`,d),window.removeEventListener(`transitionrun`,S),_.disconnect(),v.disconnect(),i&&clearTimeout(i),t.remove(),e.classList.remove(`p3xr-os-viewport`)},update:d}}var kl=[`.cm-scroller`,`.xterm-viewport`,`.monaco-scrollable-element`];function Al(e){let t=getComputedStyle(e),n=t.overflowY,r=t.overflowX;return!(n!==`auto`&&n!==`scroll`&&r!==`auto`&&r!==`scroll`||e.clientHeight===0&&e.clientWidth===0)}function jl(e){if(e.classList.contains(`p3xr-os-viewport`))return!0;for(let t of kl)if(e.matches(t)||e.closest(t))return!0;return!1}function Ml(){let e=new Map,t=t=>{e.has(t)||jl(t)||Al(t)&&e.set(t,Ol(t))},n=e=>{t(e),e.querySelectorAll(`*`).forEach(t)},r=()=>{for(let[t,n]of e)t.isConnected||(n.destroy(),e.delete(t))};n(document.body);let i=new MutationObserver(e=>{let i=!1,a=[];for(let r of e)r.addedNodes.forEach(e=>{if(e.nodeType===1){let t=e;n(t),a.push(t)}}),r.removedNodes.length>0&&(i=!0),r.type===`attributes`&&r.target.nodeType===1&&t(r.target);if(i&&r(),a.length>0){let e=()=>{for(let e of a)e.isConnected&&n(e)};requestAnimationFrame(e),setTimeout(e,150),setTimeout(e,350)}});i.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`style`,`class`]});let a=setInterval(()=>{r(),n(document.body)},1e3);return()=>{i.disconnect(),clearInterval(a);for(let t of e.values())t.destroy();e.clear()}}var Nl=48,Pl=5;function Fl(){let e=Mi(),t=ki(),n=j(e=>e.strings),r=j(e=>e.currentLang),i=j(e=>e.isAuto),a=j(e=>e.setLanguage),{themeKey:o,isAuto:s,setTheme:c}=yo(),l=F(e=>e.connection),u=F(e=>e.connections),d=F(e=>e.version),f=F(e=>e.hasRediSearch),p=F(e=>e.consoleDrawerOpen),m=F(e=>e.toggleConsoleDrawer),h=Be(),{generalHandleError:g}=es(),_=ts(),{connect:v,disconnect:y}=sl(),{authChecked:b,authRequired:x,isAuthenticated:S,checkAuthStatus:C}=cl(),w=b&&x&&!S;(0,I.useEffect)(()=>{C().then(()=>{let e=cl.getState();e.authRequired&&!e.isAuthenticated&&_.hide()})},[C]);let T=rr(`(min-width: 720px)`),ee=rr(`(min-width: 600px)`),te=rr(`(min-width: 960px)`),ne=(0,I.useMemo)(()=>/electron/i.test(navigator.userAgent),[]),E=u?.list??[],re=(0,I.useMemo)(()=>{if(l){let e=n?.label?.connected;return typeof e==`function`?e({name:l.name}):l.name}return n?.intention?.connect},[l,n]),[ie,D]=(0,I.useState)(()=>{try{return localStorage.getItem(`p3xr-connection-group-mode`)===`true`}catch{return!1}});(0,I.useEffect)(()=>{let e=()=>{try{D(localStorage.getItem(`p3xr-connection-group-mode`)===`true`)}catch{}};window.addEventListener(`storage`,e);let t=setInterval(e,1e3);return()=>{window.removeEventListener(`storage`,e),clearInterval(t)}},[]);let O=(0,I.useMemo)(()=>{if(!ie)return[{name:``,connections:E}];let e=new Map;for(let t of E){let n=t.group?.trim()||``;e.has(n)||e.set(n,[]),e.get(n).push(t)}return Array.from(e,([e,t])=>({name:e,connections:t}))},[E,ie]),ae=e=>{let n=t.pathname;switch(e){case`database`:return n.startsWith(`/database`);case`search`:return n===`/search`;case`monitoring`:return n.startsWith(`/monitoring`);case`info`:return n===`/info`;case`settings`:return n===`/settings`;default:return!1}},oe=t=>{e({"database.statistics":`/database/statistics`,database:`/database`,monitoring:`/monitoring`,search:`/search`,info:`/info`,settings:`/settings`}[t]||`/${t}`)},A=e=>{window.open({github:`https://github.com/patrikx3/redis-ui`,githubRelease:`https://github.com/patrikx3/redis-ui/releases`,githubChangelog:`https://github.com/patrikx3/redis-ui/blob/master/change-log.md#change-log`,donate:`https://www.paypal.me/patrikx3`}[e],`_blank`)},[se,ce]=(0,I.useState)(null),[M,le]=(0,I.useState)(null),[ue,de]=(0,I.useState)(null),[fe,P]=(0,I.useState)(null),[he,ge]=(0,I.useState)(``),[_e,ve]=(0,I.useState)(0),ye=(0,I.useRef)(null),be=(0,I.useMemo)(()=>Object.keys(n?.language??{}),[n]),xe=(0,I.useMemo)(()=>{let e=he.trim().toLowerCase();return e?be.filter(t=>(n?.language?.[t]??t).toLowerCase().includes(e)||t.toLowerCase().includes(e)):be},[be,he,n]),Se=(0,I.useCallback)(e=>n?.language?.[e]??e,[n]),Ce=()=>{let e=xe.indexOf(r);ve(e>=0?e:0),setTimeout(()=>{ye.current?.focus();let t=document.querySelector(`.p3xr-language-menu .MuiList-root`);t&&t.querySelectorAll(`.MuiMenuItem-root`)[e>=0?e:0]?.scrollIntoView({block:`nearest`})},150)},we=()=>{ge(``)},Te=e=>{if(e.key===`Escape`){P(null);return}if(e.key===`Enter`){e.preventDefault(),xe.length>0&&(a(xe[_e]),P(null));return}if(e.key===`ArrowDown`||e.key===`ArrowUp`){e.preventDefault();let t=xe.length;if(!t)return;ve(n=>e.key===`ArrowDown`?(n+1)%t:(n-1+t)%t);return}e.stopPropagation()};(0,I.useEffect)(()=>{fe&&setTimeout(()=>{let e=document.querySelector(`.p3xr-language-menu .MuiList-root`);e&&e.querySelectorAll(`.MuiMenuItem-root`)[_e]?.scrollIntoView({block:`nearest`})})},[_e,fe]),(0,I.useEffect)(()=>{p&&l?(document.documentElement.classList.add(`p3xr-console-drawer-open`),document.documentElement.style.setProperty(`--p3xr-console-drawer-height-active`,`var(--p3xr-console-drawer-height, 30vh)`)):(document.documentElement.classList.remove(`p3xr-console-drawer-open`),document.documentElement.style.setProperty(`--p3xr-console-drawer-height-active`,`0px`))},[p,l]),(0,I.useEffect)(()=>{let e=document.body.style.overflow;return document.body.style.overflow=`hidden`,()=>{document.body.style.overflow=e}},[]),(0,I.useEffect)(()=>{let e=e=>{e.key==="`"&&(e.ctrlKey||e.metaKey)&&!e.altKey&&!e.shiftKey&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]),(0,I.useEffect)(()=>{if(!ne)return;let e=e=>{let t=e.data;!t||typeof t.type!=`string`||(t.type===`p3x-set-language`&&typeof t.translation==`string`?a(t.translation):t.type===`p3x-menu`&&typeof t.action==`string`&&oe(t.action))};return window.addEventListener(`message`,e),()=>{window.removeEventListener(`message`,e)}},[ne]),(0,I.useEffect)(()=>{if(S)try{let e=localStorage.getItem(h.connectInfoStorageKey);if(e){let t=JSON.parse(e);t?.id&&v(t)}}catch{}},[S]),(0,I.useEffect)(()=>qc(`redis-disconnected`,()=>{F.setState({connection:void 0,connectionState:`none`}),oe(`settings`)}),[]),(0,I.useEffect)(()=>Ml(),[]),(0,I.useEffect)(()=>{let e=setTimeout(()=>{for(let e of[`/ng/`,`/vue/`])fetch(e).then(e=>e.text()).then(e=>{new DOMParser().parseFromString(e,`text/html`).querySelectorAll(`script[src], link[rel="stylesheet"]`).forEach(e=>{let t=e.src||e.href;t&&fetch(t).catch(()=>{})})}).catch(()=>{})},3e3);return()=>clearTimeout(e)},[]),(0,I.useEffect)(()=>{if(window.location.hostname!==`p3x.redis.patrikx3.com`)return;let e=0,t=()=>{let t=e%3==1?j.getState().strings?.promo:j.getState().strings?.promoMeeting;if(t?.toastMessage){let e=t.toastMessage+(t.disclaimer?` · `+t.disclaimer:``);es.getState().toast(e,3e4)}e++},n=setTimeout(t,5e3),r=setInterval(t,42e4);return()=>{clearTimeout(n),clearInterval(r)}},[]),(0,I.useEffect)(()=>{fl(t.pathname.toLowerCase().startsWith(`/database/key/`)?`/database/key`:t.pathname);let e=t.pathname.toLowerCase(),n=e.startsWith(`/database`)?`database`:e.startsWith(`/monitoring/profiler`)?`profiler`:e.startsWith(`/monitoring/pubsub`)?`pubsub`:e.startsWith(`/monitoring/memory-analysis`)||e.startsWith(`/monitoring/analysis`)?`analysis`:e.startsWith(`/monitoring`)?`pulse`:e.startsWith(`/search`)?`search`:e.startsWith(`/timeseries`)?`timeseries`:e.startsWith(`/info`)?`info`:e.startsWith(`/settings`)?`settings`:`unknown`;F.setState({currentPage:n})},[t.pathname]),(0,I.useEffect)(()=>{let e=qc(`disconnect`,()=>{w||_.show({message:n?.status?.socketDisconnected})}),t=qc(`socket-error`,()=>{w||_.show({message:n?.status?.socketError})});return()=>{e(),t()}},[n,w]);let Ee={bgcolor:o===`matrix`?`rgba(0,0,0,0.15)`:`rgba(255,255,255,0.1)`},De=({icon:e,label:t,tooltip:n,page:r,onClick:i})=>{let a=r?ae(r):!1;return T?(0,L.jsxs)(Jt,{color:`inherit`,onClick:i,sx:a?Ee:void 0,children:[e,(0,L.jsx)(`span`,{children:t})]}):(0,L.jsx)(me,{title:n||t,placement:`bottom`,children:(0,L.jsx)(N,{color:`inherit`,onClick:i,sx:a?Ee:void 0,children:e})})};return(0,L.jsxs)(k,{sx:{display:`flex`,flexDirection:`column`,minHeight:`100vh`,bgcolor:`background.default`},children:[(0,L.jsx)(It,{position:`fixed`,sx:{height:Nl,zIndex:2},children:(0,L.jsxs)(pe,{variant:`dense`,sx:{minHeight:Nl,height:Nl,overflow:`hidden`},children:[(0,L.jsx)(De,{icon:(0,L.jsx)(`i`,{className:`fas fa-database`}),label:n?.title?.name,tooltip:`${n?.title?.name||``}${d?` `+d:``}`,onClick:()=>oe(l?`database.statistics`:`settings`)}),d&&T&&(0,L.jsx)(jt,{variant:`caption`,sx:{fontSize:10,opacity:.7,pointerEvents:`none`,position:`absolute`,top:31,left:20,width:120,textAlign:`right`,color:`inherit`},children:d}),l&&(0,L.jsx)(De,{icon:(0,L.jsx)(Uo,{fontSize:`small`}),label:n?.intention?.main,page:`database`,onClick:()=>oe(`database.statistics`)}),l&&(0,L.jsx)(De,{icon:(0,L.jsx)(Io,{fontSize:`small`}),label:n?.page?.monitor?.title,page:`monitoring`,onClick:()=>oe(`monitoring`)}),l&&f&&(0,L.jsx)(De,{icon:(0,L.jsx)(zo,{fontSize:`small`}),label:n?.page?.search?.title,page:`search`,onClick:()=>oe(`search`)}),(0,L.jsx)(k,{sx:{flex:1,minWidth:8}}),!w&&(0,L.jsx)(De,{icon:(0,L.jsx)(Ao,{fontSize:`small`}),label:n?.intention?.info,page:`info`,onClick:()=>oe(`info`)}),!w&&(0,L.jsx)(De,{icon:(0,L.jsx)(Bo,{fontSize:`small`}),label:n?.intention?.settings,page:`settings`,onClick:()=>oe(`settings`)}),x&&S&&(0,L.jsx)(me,{title:n?.intention?.logout,placement:`bottom`,children:(0,L.jsx)(N,{color:`inherit`,onClick:async()=>{try{await es.getState().confirm({message:n?.intention?.logout}),cl.getState().logout()}catch{}},children:(0,L.jsx)(Po,{fontSize:`small`})})})]})}),(0,L.jsx)(k,{id:`p3xr-layout-content`,sx:{position:`fixed`,left:0,right:0,top:`${Nl}px`,bottom:`calc(${Nl}px + ${p&&l?`var(--p3xr-console-drawer-height, 30vh)`:`0px`})`,padding:`${Pl}px`,paddingBottom:`4px`,overflowY:`auto`,overflowX:`hidden`,display:`flex`,flexDirection:`column`,transition:`bottom 150ms ease-out`},children:w?(0,L.jsx)(ul,{}):(0,L.jsx)(ia,{})}),!w&&l&&(0,L.jsx)(Tl,{}),(0,L.jsx)(It,{id:`p3xr-layout-footer-container`,position:`fixed`,sx:{top:`auto`,bottom:0,height:Nl,zIndex:2},children:(0,L.jsxs)(pe,{variant:`dense`,sx:{minHeight:Nl,height:Nl},children:[!w&&E.length>0&&(0,L.jsxs)(L.Fragment,{children:[T?(0,L.jsxs)(Jt,{color:`inherit`,onClick:e=>ce(e.currentTarget),children:[(0,L.jsx)(Ro,{fontSize:`small`}),(0,L.jsx)(`span`,{children:re})]}):(0,L.jsx)(me,{title:re,placement:`top`,children:(0,L.jsx)(N,{color:`inherit`,onClick:e=>ce(e.currentTarget),children:(0,L.jsx)(Ro,{fontSize:`small`})})}),(0,L.jsx)(je,{anchorEl:se,open:!!se,onClose:()=>ce(null),anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`},children:O.map((e,t)=>[O.length>1&&(0,L.jsx)(k,{sx:{px:2,pt:.75,pb:.25,fontSize:11,fontWeight:600,textTransform:`uppercase`,letterSpacing:.5,opacity:.6,pointerEvents:`none`},children:e.name||n?.label?.ungrouped},`g-${t}`),...e.connections.map(e=>(0,L.jsx)(Gn,{selected:l?.id===e.id,onClick:()=>{ce(null),v(e)},children:e.name},e.id)),t<O.length-1&&O.length>1&&(0,L.jsx)(kn,{},`d-${t}`)])})]}),!w&&l&&(0,L.jsx)(({icon:e,label:t,onClick:n,bp:r=`wide`})=>(r===`gtXs`?ee:r===`gtSm`?te:T)?(0,L.jsxs)(Jt,{color:`inherit`,onClick:n,children:[e,(0,L.jsx)(`span`,{children:t})]}):(0,L.jsx)(me,{title:t,placement:`top`,children:(0,L.jsx)(N,{color:`inherit`,onClick:n,children:e})}),{icon:(0,L.jsx)(`i`,{className:`fa fa-power-off`}),label:n?.intention?.disconnect,bp:`gtSm`,onClick:()=>y()}),(0,L.jsx)(k,{sx:{flex:1}}),l&&(T?(0,L.jsxs)(Jt,{color:`inherit`,onClick:()=>m(),"aria-pressed":p,sx:p?Ee:void 0,children:[(0,L.jsx)(Wo,{fontSize:`small`}),(0,L.jsx)(`span`,{children:n?.intention?.console})]}):(0,L.jsx)(me,{title:n?.intention?.console||``,placement:`top`,children:(0,L.jsx)(N,{color:`inherit`,onClick:()=>m(),"aria-pressed":p,sx:p?Ee:void 0,children:(0,L.jsx)(Wo,{fontSize:`small`})})})),te?(0,L.jsxs)(Jt,{color:`inherit`,onClick:e=>{P(e.currentTarget),Ce()},children:[(0,L.jsx)(jo,{fontSize:`small`}),(0,L.jsx)(`span`,{children:n?.intention?.language})]}):(0,L.jsx)(me,{title:n?.intention?.language,placement:`top`,children:(0,L.jsx)(N,{color:`inherit`,onClick:e=>{P(e.currentTarget),Ce()},children:(0,L.jsx)(jo,{fontSize:`small`})})}),(0,L.jsxs)(je,{anchorEl:fe,open:!!fe,onClose:()=>{P(null),we()},className:`p3xr-language-menu`,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,autoFocus:!1,anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`},slotProps:{paper:{sx:{minWidth:320,maxWidth:`90vw`,maxHeight:400,overflow:`hidden`}},list:{autoFocus:!1,autoFocusItem:!1,sx:{pt:0,overflow:`auto`,maxHeight:400}}},children:[(0,L.jsx)(k,{sx:e=>({position:`sticky`,top:0,zIndex:1,bgcolor:e.palette.mode===`dark`?e.palette.background.paper:`background.paper`,backgroundImage:e.palette.mode===`dark`?`linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12))`:`none`,px:1,py:1,overflow:`hidden`}),onClick:e=>e.stopPropagation(),onKeyDown:Te,children:(0,L.jsx)(k,{component:`input`,ref:ye,placeholder:n?.label?.searchLanguage,value:he,onChange:e=>{ge(e.target.value),ve(0)},autoComplete:`off`,sx:{display:`block`,width:`100%`,mx:`auto`,px:1,py:1,borderStyle:`solid`,borderWidth:2,borderColor:`rgba(255,255,255,0.25)`,borderRadius:`4px`,fontSize:14,bgcolor:`transparent`,color:`text.primary`,outline:`none`,boxSizing:`border-box`,overflow:`hidden`,textOverflow:`ellipsis`,"&:focus":{borderWidth:3,borderColor:`primary.main`},"&::placeholder":{color:`text.secondary`,opacity:.5}}})}),(0,L.jsx)(Gn,{selected:i,sx:{borderRadius:0,"&:hover":{borderRadius:0},"&.Mui-selected":{borderRadius:0}},onClick:()=>{a(`auto`),P(null)},children:n?.label?.languageAuto}),(0,L.jsx)(kn,{}),xe.map((e,t)=>(0,L.jsx)(Gn,{selected:!i&&r===e,sx:{borderRadius:0,...!i&&r===e&&{bgcolor:`action.selected`},...t===_e&&{bgcolor:`action.hover`},"&:hover":{borderRadius:0},"&.Mui-selected":{borderRadius:0}},onClick:()=>{a(e),P(null)},children:Se(e)},e))]}),ee?(0,L.jsxs)(Jt,{color:`inherit`,onClick:e=>le(e.currentTarget),children:[(0,L.jsx)(Oo,{fontSize:`small`}),(0,L.jsx)(`span`,{children:n?.intention?.theme})]}):(0,L.jsx)(me,{title:n?.intention?.theme,placement:`top`,children:(0,L.jsx)(N,{color:`inherit`,onClick:e=>le(e.currentTarget),children:(0,L.jsx)(Oo,{fontSize:`small`})})}),(0,L.jsxs)(je,{anchorEl:M,open:!!M,onClose:()=>le(null),anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`},children:[(0,L.jsx)(Gn,{selected:s,onClick:()=>{c(`auto`),le(null)},children:n?.label?.themeAuto}),(0,L.jsx)(kn,{}),fo.map(e=>(0,L.jsx)(Gn,{selected:!s&&o===e,onClick:()=>{c(e),le(null)},children:n?.label?.theme?.[e]??e},e))]}),te?(0,L.jsxs)(Jt,{color:`inherit`,onClick:e=>de(e.currentTarget),children:[(0,L.jsx)(`i`,{className:`fab fa-github`}),(0,L.jsx)(`span`,{children:n?.intention?.github})]}):(0,L.jsx)(me,{title:n?.intention?.github,placement:`top`,children:(0,L.jsx)(N,{color:`inherit`,onClick:e=>de(e.currentTarget),children:(0,L.jsx)(`i`,{className:`fab fa-github`})})}),(0,L.jsxs)(je,{anchorEl:ue,open:!!ue,onClose:()=>de(null),anchorOrigin:{vertical:`top`,horizontal:`left`},transformOrigin:{vertical:`bottom`,horizontal:`left`},children:[(0,L.jsx)(Gn,{onClick:()=>{A(`github`),de(null)},children:n?.intention?.githubRepo}),(0,L.jsx)(Gn,{onClick:()=>{A(`githubRelease`),de(null)},children:n?.intention?.githubRelease}),(0,L.jsx)(Gn,{onClick:()=>{A(`githubChangelog`),de(null)},children:n?.intention?.githubChangelog})]})]})})]})}function Il(){let e=j(e=>e.strings),{confirmOpen:t,confirmOptions:n,resolveConfirm:r}=es(),i=rr(`(min-width: 600px)`);if(!t||!n)return null;let a=n.disableCancel===!0,o=a?e?.intention?.ok:e?.intention?.sure,s=e?.intention?.cancel;return(0,L.jsx)(pl,{open:!0,onClose:()=>r?.(!1),title:n.title,width:`600px`,actions:(0,L.jsxs)(L.Fragment,{children:[!a&&(0,L.jsx)(me,{title:i?``:s,placement:`top`,children:(0,L.jsxs)(Jt,{variant:`contained`,color:`warning`,onClick:()=>r?.(!1),children:[(0,L.jsx)(wo,{sx:i?{mr:.5}:void 0}),i&&(0,L.jsx)(`span`,{children:s})]})}),(0,L.jsxs)(Jt,{variant:`contained`,color:`primary`,onClick:()=>r?.(!0),children:[(0,L.jsx)(ko,{sx:{mr:.5}}),(0,L.jsx)(`span`,{children:o})]})]}),children:(0,L.jsx)(`div`,{dangerouslySetInnerHTML:{__html:n.message}})})}function Ll(){let{promptOpen:e,promptOptions:t,resolvePrompt:n}=es(),r=rr(`(min-width: 600px)`),[i,a]=(0,I.useState)(``);if((0,I.useEffect)(()=>{e&&t&&a(t.initialValue??``)},[e,t]),!e||!t)return null;let o=()=>{i.trim()&&n?.(i)};return(0,L.jsx)(pl,{open:!0,onClose:()=>n?.(null),title:t.title,width:`600px`,actions:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(me,{title:r?``:t.cancelLabel,placement:`top`,children:(0,L.jsxs)(Jt,{variant:`contained`,color:`warning`,onClick:()=>n?.(null),children:[(0,L.jsx)(wo,{sx:r?{mr:.5}:void 0}),r&&(0,L.jsx)(`span`,{children:t.cancelLabel})]})}),(0,L.jsx)(me,{title:r?``:t.okLabel,placement:`top`,children:(0,L.jsxs)(Jt,{variant:`contained`,color:`primary`,disabled:!i.trim(),onClick:o,children:[(0,L.jsx)(ko,{sx:r?{mr:.5}:void 0}),r&&(0,L.jsx)(`span`,{children:t.okLabel})]})})]}),children:(0,L.jsx)(Me,{autoFocus:!0,fullWidth:!0,label:t.placeholder,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>e.key===`Enter`&&o()})})}function Rl(){let{toastOpen:e,toastMessage:t,toastDuration:n,closeToast:r,toastUndoAction:i,handleToastUndoClick:a}=es();return(0,L.jsx)(nr,{open:e,autoHideDuration:n,onClose:r,anchorOrigin:{vertical:`bottom`,horizontal:`right`},message:t,action:(0,L.jsxs)(L.Fragment,{children:[i&&(0,L.jsx)(Jt,{color:`primary`,size:`small`,onClick:a,children:i}),(0,L.jsx)(N,{size:`small`,color:`inherit`,onClick:r,children:(0,L.jsx)(Do,{fontSize:`small`})})]}),sx:{"& .MuiSnackbarContent-root":{flexWrap:`nowrap`}}})}function K(){let{visible:e,message:t}=ts(),{authRequired:n,isAuthenticated:r}=cl();return!e||n&&!r?null:(0,L.jsx)(k,{id:`p3xr-overlay`,sx:{position:`fixed`,left:0,top:0,width:`100vw`,height:`100vh`,textAlign:`center`,display:`flex`,flexDirection:`column`,alignItems:`center`,alignContent:`center`,justifyContent:`center`,bgcolor:`rgba(0, 0, 0, 0.9)`,zIndex:99999,color:`rgba(128, 128, 128, 0.5)`,fontSize:`125%`},children:(0,L.jsxs)(k,{id:`p3xr-overlay-info`,children:[(0,L.jsx)(`i`,{className:`fas fa-cog fa-spin`,style:{fontSize:`500%`,transform:`scale(1.5)`,margin:`0 5px`,display:`inline-block`}}),t&&(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(`br`,{}),(0,L.jsx)(`br`,{}),(0,L.jsx)(`span`,{children:t})]})]})})}function q(){let{askAuthOpen:e,resolveAskAuth:t}=es(),n=j(e=>e.strings),r=rr(`(min-width: 600px)`),[i,a]=(0,I.useState)(``),[o,s]=(0,I.useState)(``),[c,l]=(0,I.useState)(!1);if((0,I.useEffect)(()=>{e&&(a(``),s(``),l(!1))},[e]),!e)return null;let u=()=>{t?.({username:i,password:o})},d=()=>{t?.(null)};return(0,L.jsxs)(pl,{open:!0,onClose:d,title:(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(Vo,{sx:{mr:1,verticalAlign:`middle`,fontSize:20}}),n?.label?.askAuth]}),width:`400px`,actions:(0,L.jsxs)(L.Fragment,{children:[r?(0,L.jsxs)(Jt,{variant:`contained`,color:`error`,onClick:d,children:[(0,L.jsx)(wo,{fontSize:`small`}),(0,L.jsx)(`span`,{style:{marginLeft:3},children:n?.intention?.cancel})]}):(0,L.jsx)(me,{title:n?.intention?.cancel,placement:`top`,children:(0,L.jsx)(N,{color:`error`,onClick:d,sx:{borderRadius:`4px`},children:(0,L.jsx)(wo,{fontSize:`small`})})}),r?(0,L.jsxs)(Jt,{variant:`contained`,color:`primary`,onClick:u,children:[(0,L.jsx)(ko,{fontSize:`small`}),(0,L.jsx)(`span`,{style:{marginLeft:3},children:n?.intention?.ok})]}):(0,L.jsx)(me,{title:n?.intention?.ok,placement:`top`,children:(0,L.jsx)(N,{color:`primary`,onClick:u,sx:{borderRadius:`4px`},children:(0,L.jsx)(ko,{fontSize:`small`})})})]}),children:[(0,L.jsx)(k,{sx:{fontSize:12,opacity:.7,mb:.5},children:n?.label?.aclAuthHint}),(0,L.jsx)(Me,{autoFocus:!0,fullWidth:!0,margin:`dense`,label:n?.form?.connection?.label?.username,value:i,onChange:e=>a(e.target.value),autoComplete:`off`,onKeyDown:e=>e.key===`Enter`&&u(),slotProps:{input:{startAdornment:(0,L.jsx)(zn,{position:`start`,children:(0,L.jsx)(Lo,{fontSize:`small`})})}}}),(0,L.jsx)(Me,{fullWidth:!0,margin:`dense`,label:n?.form?.connection?.label?.password,type:c?`text`:`password`,value:o,onChange:e=>s(e.target.value),autoComplete:`off`,onKeyDown:e=>e.key===`Enter`&&u(),slotProps:{input:{startAdornment:(0,L.jsx)(zn,{position:`start`,children:(0,L.jsx)(Mo,{fontSize:`small`})}),endAdornment:(0,L.jsx)(zn,{position:`end`,children:(0,L.jsx)(N,{onClick:()=>l(!c),size:`small`,children:c?(0,L.jsx)(Ko,{fontSize:`small`}):(0,L.jsx)(Go,{fontSize:`small`})})})}}})]})}var J=/electron/i.test(navigator.userAgent);function Y(){return!!F.getState().connection}function X(e){if(Y())e();else{let e=j.getState().strings;es.getState().toast(e?.label?.connectFirst)}}function zl(e){if(!Y()){let e=j.getState().strings;es.getState().toast(e?.label?.connectFirst);return}!location.pathname.startsWith(`/database`)&&!location.pathname.startsWith(`/react/database`)?(So(`database.statistics`),setTimeout(()=>e(),300)):e()}var Bl=J?[{key:`r`,ctrlKey:!0,label:`Ctrl+R`,descriptionKey:`shortcutRefresh`,action:()=>X(()=>{ze(()=>Promise.resolve().then(()=>nl).then(e=>e.onCommandEvent),void 0),sl.getState().refresh()})},{key:`F5`,label:`F5`,descriptionKey:`shortcutRefresh`,action:()=>X(()=>sl.getState().refresh())},{key:`f`,ctrlKey:!0,label:`Ctrl+F`,descriptionKey:`shortcutSearch`,action:()=>zl(()=>{document.querySelector(`.p3xr-database-treecontrol-controls-search input`)?.focus()})},{key:`n`,ctrlKey:!0,label:`Ctrl+N`,descriptionKey:`shortcutNewKey`,action:()=>zl(()=>{al(`key-new`,{})})},{key:`k`,ctrlKey:!0,label:`Ctrl+K`,descriptionKey:`shortcutCommandPalette`,action:()=>{es.getState().setCommandPaletteOpen(!0)}},{key:`d`,ctrlKey:!0,label:`Ctrl+D`,descriptionKey:`shortcutDisconnect`,action:()=>X(()=>sl.getState().disconnect())}]:[];function Vl(){return J}function Hl(){return Bl}function Ul(){let e=j.getState().strings;return Bl.filter((e,t,n)=>n.findIndex(t=>t.descriptionKey===e.descriptionKey)===t).map(t=>({key:t.label,description:e?.label?.[t.descriptionKey]||t.descriptionKey}))}function Wl(e){if(!J)return!1;let t=e.target,n=t?.tagName?.toLowerCase();if(n===`input`||n===`textarea`||t?.closest(`.cm-editor`))return!1;for(let t of Bl){let n=t.ctrlKey?e.ctrlKey||e.metaKey:!e.ctrlKey&&!e.metaKey,r=t.shiftKey?e.shiftKey:!e.shiftKey,i=t.altKey?e.altKey:!e.altKey,a=e.key.toLowerCase()===t.key.toLowerCase()||e.key===t.key;if(n&&r&&i&&a)return e.preventDefault(),e.stopPropagation(),t.action(),!0}return!1}J&&document.addEventListener(`keydown`,Wl);function Gl(){let e=es(e=>e.commandPaletteOpen),t=es(e=>e.setCommandPaletteOpen),n=j(e=>e.strings),r=ee().palette.mode===`dark`,[i,a]=(0,I.useState)(``),[o,s]=(0,I.useState)(0),c=(0,I.useRef)(null),l=(0,I.useRef)(null),u=(0,I.useMemo)(()=>{let e=new Set,t=[];for(let r of Hl())e.has(r.descriptionKey)||(e.add(r.descriptionKey),t.push({label:r.label,description:n?.label?.[r.descriptionKey]||r.descriptionKey,shortcut:r}));return t},[n]),d=(0,I.useMemo)(()=>{let e=i.toLowerCase().trim();return e?u.filter(t=>t.description.toLowerCase().includes(e)||t.label.toLowerCase().includes(e)):u},[i,u]);(0,I.useEffect)(()=>{e&&(a(``),s(0),setTimeout(()=>c.current?.focus(),50))},[e]),(0,I.useEffect)(()=>{!e||!l.current||l.current.querySelectorAll(`.p3xr-cmd-palette-item`)[o]?.scrollIntoView({block:`nearest`})},[o,e]);let f=(0,I.useCallback)(e=>{t(!1),e.shortcut.action()},[t]),p=(0,I.useCallback)(e=>{e.key===`ArrowDown`?(e.preventDefault(),s(e=>Math.min(e+1,d.length-1))):e.key===`ArrowUp`?(e.preventDefault(),s(e=>Math.max(e-1,0))):e.key===`Enter`?(e.preventDefault(),d[o]&&f(d[o])):e.key===`Escape`&&t(!1)},[d,o,f,t]);if(!e)return null;let m=r?`rgba(255,255,255,0.08)`:`rgba(0,0,0,0.04)`,h=r?`rgba(255,255,255,0.12)`:`rgba(0,0,0,0.08)`;return(0,L.jsxs)(mn,{open:!0,onClose:()=>t(!1),slotProps:{paper:{sx:{width:`100%`,maxWidth:500,minWidth:360,borderRadius:2,overflow:`hidden`}}},children:[(0,L.jsxs)(k,{sx:{display:`flex`,alignItems:`center`,gap:1,px:2,py:1.5,borderBottom:1,borderColor:`divider`},children:[(0,L.jsx)(zo,{sx:{opacity:.5}}),(0,L.jsx)(k,{component:`input`,ref:c,value:i,onChange:e=>{a(e.target.value),s(0)},onKeyDown:p,placeholder:n?.label?.commandPalette,autoComplete:`off`,sx:{flex:1,border:`none`,outline:`none`,background:`transparent`,color:`text.primary`,fontSize:16,fontFamily:`inherit`,"&::placeholder":{color:`text.secondary`,opacity:.5}}})]}),(0,L.jsxs)(k,{ref:l,sx:{maxHeight:300,overflowY:`auto`},children:[d.map((e,t)=>(0,L.jsxs)(k,{className:`p3xr-cmd-palette-item`,onClick:()=>f(e),sx:{display:`flex`,alignItems:`center`,justifyContent:`space-between`,px:2,py:1.25,cursor:`pointer`,bgcolor:t===o?h:`transparent`,"&:hover":{bgcolor:m}},children:[(0,L.jsx)(k,{component:`span`,sx:{fontSize:14},children:e.description}),(0,L.jsx)(k,{component:`kbd`,sx:{px:1,py:.25,borderRadius:`4px`,fontSize:12,bgcolor:`action.hover`,fontFamily:`'Roboto Mono', monospace`,whiteSpace:`nowrap`},children:e.label})]},e.label)),d.length===0&&(0,L.jsx)(k,{sx:{p:2,textAlign:`center`,opacity:.5},children:n?.label?.noResults})]})]})}var Kl=(0,I.lazy)(()=>ze(()=>import(`./SettingsPage-Bdnk9NTe.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]))),ql=(0,I.lazy)(()=>ze(()=>import(`./InfoPage-E4FMrqhZ.js`),__vite__mapDeps([19,1,2,3,4,5,12,10,15,16,6,7,17]))),Jl=(0,I.lazy)(()=>ze(()=>import(`./DatabasePage-C0EFm7UC.js`),__vite__mapDeps([20,1,2,3,4,5,6,7,8,9,10,11,21,13,17,15,22,23,24,14,18]))),Yl=(0,I.lazy)(()=>ze(()=>import(`./StatisticsPage-BligTV8R.js`),__vite__mapDeps([25,1,2,3,4,5,26,9,15]))),Xl=(0,I.lazy)(()=>ze(()=>import(`./DatabaseKeyPage-BjaQ8pnh.js`).then(e=>e.t),__vite__mapDeps([27,1,2,3,4,5,6,7,8,9,10,11,12,21,13,17,15,22,28,24,14,16,29]))),Zl=(0,I.lazy)(()=>ze(()=>import(`./SearchPage-BWTJlKPi.js`),__vite__mapDeps([30,1,2,3,4,5,6,7,8,9,10,11,12,24,15,22,16,17]))),Ql=(0,I.lazy)(()=>ze(()=>import(`./MonitoringShell-DZp4niX2.js`),__vite__mapDeps([31,1,2,3,4,5,26,9,15,32]))),$l=(0,I.lazy)(()=>ze(()=>import(`./PulsePage-A2lcpLMH.js`),__vite__mapDeps([33,1,2,3,4,5,6,7,12,10,23,28,34,14,15,22,16,17,29]))),eu=(0,I.lazy)(()=>ze(()=>import(`./ProfilerPage-CqXmaY3o.js`),__vite__mapDeps([35,1,2,3,4,5,28,15,16,6,7,17,32]))),tu=(0,I.lazy)(()=>ze(()=>import(`./PubSubPage-CNSNOO0J.js`),__vite__mapDeps([36,1,2,3,4,5,8,6,7,9,10,28,15,16,17,32]))),nu=(0,I.lazy)(()=>ze(()=>import(`./MemoryAnalysisPage-ARoRbRPN.js`),__vite__mapDeps([37,1,2,3,4,5,8,6,7,9,10,12,28,34,14,15,16,17])));function ru(){let e=Mi();return(0,I.useEffect)(()=>{xo(e)},[e]),null}function iu(){let e=yo(e=>e.themeKey),t=j(e=>e.ready),n=(0,I.useMemo)(()=>lo[e]||lo.enterprise,[e]);return t?(0,L.jsxs)(Et,{theme:n,children:[(0,L.jsx)(on,{}),(0,L.jsxs)(Ga,{basename:`/react`,children:[(0,L.jsx)(ru,{}),(0,L.jsx)(I.Suspense,{fallback:null,children:(0,L.jsx)(sa,{children:(0,L.jsxs)(aa,{element:(0,L.jsx)(Fl,{}),children:[(0,L.jsx)(aa,{path:`/`,element:(0,L.jsx)(ra,{to:`/settings`,replace:!0})}),(0,L.jsx)(aa,{path:`/settings`,element:(0,L.jsx)(Kl,{})}),(0,L.jsx)(aa,{path:`/info`,element:(0,L.jsx)(ql,{})}),(0,L.jsxs)(aa,{path:`/database`,element:(0,L.jsx)(Jl,{}),children:[(0,L.jsx)(aa,{path:`statistics`,element:(0,L.jsx)(Yl,{})}),(0,L.jsx)(aa,{path:`key/:key`,element:(0,L.jsx)(Xl,{})})]}),(0,L.jsx)(aa,{path:`/search`,element:(0,L.jsx)(Zl,{})}),(0,L.jsxs)(aa,{path:`/monitoring`,element:(0,L.jsx)(Ql,{}),children:[(0,L.jsx)(aa,{index:!0,element:(0,L.jsx)($l,{})}),(0,L.jsx)(aa,{path:`profiler`,element:(0,L.jsx)(eu,{})}),(0,L.jsx)(aa,{path:`pubsub`,element:(0,L.jsx)(tu,{})}),(0,L.jsx)(aa,{path:`analysis`,element:(0,L.jsx)(nu,{})})]})]})})})]}),(0,L.jsx)(Il,{}),(0,L.jsx)(Ll,{}),(0,L.jsx)(q,{}),(0,L.jsx)(Gl,{}),(0,L.jsx)(Rl,{}),(0,L.jsx)(K,{})]}):null}var au=`p3xr-console-drawer-height`,ou=15,su=66,cu=null;function lu(e){cu||(cu=document.createElement(`style`),cu.setAttribute(`data-p3xr-console-drawer-height-bootstrap`,``),document.head.appendChild(cu)),cu.textContent=`:root { --p3xr-console-drawer-height: ${e}px; }`,document.documentElement.style.setProperty(`--p3xr-console-drawer-height`,`${e}px`)}function uu(){return{minPx:ou/100*window.innerHeight,maxPx:su/100*window.innerHeight}}function du(){let e=localStorage.getItem(au);if(!e)return null;let t=parseInt(e,10);return Number.isFinite(t)?t:null}function fu(){let e=du();if(e===null)return;let{minPx:t,maxPx:n}=uu();lu(Math.max(t,Math.min(n,e))),window.addEventListener(`resize`,()=>{let e=document.documentElement.style.getPropertyValue(`--p3xr-console-drawer-height`);if(!e||!e.endsWith(`px`))return;let t=parseInt(e,10);if(!Number.isFinite(t))return;let{minPx:n,maxPx:r}=uu(),i=Math.max(n,Math.min(r,t));i!==t&&lu(i)})}if(window.parent===window&&location.pathname.startsWith(`/react`))try{localStorage.getItem(`p3xr-frontend`)!==`react`&&location.replace(`/ng/`+location.search)}catch{}fu(),globalThis.__p3xr_test={state:new Proxy({},{get(e,t){return()=>F.getState()[t]}}),settings:new Proxy({},{get(e,t){return()=>Be.getState()[t]}})},(0,ro.createRoot)(document.getElementById(`root`)).render((0,L.jsx)(I.StrictMode,{children:(0,L.jsx)(iu,{})}));export{Co as A,kn as B,Lo as C,Eo as D,Do as E,ki as F,jt as H,Mi as I,Fi as L,yo as M,po as N,To as O,ia as P,rr as R,Ro as S,ko as T,Jt as V,es as _,fl as a,Bo as b,sl as c,W as d,Vc as f,Zo as g,Qo as h,pl as i,So as j,wo as k,$c as l,ts as m,Vl as n,ll as o,Hc as p,hl as r,il as s,Ul as t,qc as u,Ko as v,Ao as w,zo as x,Go as y,Gn as z};