lyrics-transcriber 0.34.2__py3-none-any.whl → 0.35.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. lyrics_transcriber/core/controller.py +10 -1
  2. lyrics_transcriber/correction/corrector.py +4 -3
  3. lyrics_transcriber/frontend/dist/assets/index-CQCER5Fo.js +181 -0
  4. lyrics_transcriber/frontend/dist/index.html +1 -1
  5. lyrics_transcriber/frontend/src/App.tsx +6 -2
  6. lyrics_transcriber/frontend/src/api.ts +9 -0
  7. lyrics_transcriber/frontend/src/components/AudioPlayer.tsx +155 -0
  8. lyrics_transcriber/frontend/src/components/CorrectionMetrics.tsx +1 -1
  9. lyrics_transcriber/frontend/src/components/DetailsModal.tsx +23 -191
  10. lyrics_transcriber/frontend/src/components/EditModal.tsx +407 -0
  11. lyrics_transcriber/frontend/src/components/LyricsAnalyzer.tsx +255 -221
  12. lyrics_transcriber/frontend/src/components/ModeSelector.tsx +39 -0
  13. lyrics_transcriber/frontend/src/components/ReferenceView.tsx +35 -264
  14. lyrics_transcriber/frontend/src/components/ReviewChangesModal.tsx +232 -0
  15. lyrics_transcriber/frontend/src/components/SegmentDetailsModal.tsx +64 -0
  16. lyrics_transcriber/frontend/src/components/TimelineEditor.tsx +315 -0
  17. lyrics_transcriber/frontend/src/components/TranscriptionView.tsx +116 -138
  18. lyrics_transcriber/frontend/src/components/WordEditControls.tsx +116 -0
  19. lyrics_transcriber/frontend/src/components/shared/components/HighlightedText.tsx +243 -0
  20. lyrics_transcriber/frontend/src/components/shared/components/SourceSelector.tsx +28 -0
  21. lyrics_transcriber/frontend/src/components/shared/components/Word.tsx +52 -0
  22. lyrics_transcriber/frontend/src/components/{constants.ts → shared/constants.ts} +1 -0
  23. lyrics_transcriber/frontend/src/components/shared/hooks/useWordClick.ts +137 -0
  24. lyrics_transcriber/frontend/src/components/{styles.ts → shared/styles.ts} +1 -1
  25. lyrics_transcriber/frontend/src/components/shared/types.ts +99 -0
  26. lyrics_transcriber/frontend/src/components/shared/utils/newlineCalculator.ts +37 -0
  27. lyrics_transcriber/frontend/src/components/shared/utils/referenceLineCalculator.ts +76 -0
  28. lyrics_transcriber/frontend/src/types.ts +2 -43
  29. lyrics_transcriber/frontend/tsconfig.tsbuildinfo +1 -1
  30. lyrics_transcriber/lyrics/spotify.py +11 -0
  31. lyrics_transcriber/output/generator.py +28 -11
  32. lyrics_transcriber/review/server.py +38 -12
  33. {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/METADATA +1 -1
  34. {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/RECORD +37 -24
  35. lyrics_transcriber/frontend/dist/assets/index-DqFgiUni.js +0 -245
  36. lyrics_transcriber/frontend/src/components/DebugPanel.tsx +0 -311
  37. {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/LICENSE +0 -0
  38. {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/WHEEL +0 -0
  39. {lyrics_transcriber-0.34.2.dist-info → lyrics_transcriber-0.35.0.dist-info}/entry_points.txt +0 -0
@@ -1,245 +0,0 @@
1
- var By=Object.defineProperty;var Wy=(n,r,i)=>r in n?By(n,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):n[r]=i;var Si=(n,r,i)=>Wy(n,typeof r!="symbol"?r+"":r,i);function Uy(n,r){for(var i=0;i<r.length;i++){const l=r[i];if(typeof l!="string"&&!Array.isArray(l)){for(const a in l)if(a!=="default"&&!(a in n)){const c=Object.getOwnPropertyDescriptor(l,a);c&&Object.defineProperty(n,a,c.get?c:{enumerable:!0,get:()=>l[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))l(a);new MutationObserver(a=>{for(const c of a)if(c.type==="childList")for(const f of c.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function i(a){const c={};return a.integrity&&(c.integrity=a.integrity),a.referrerPolicy&&(c.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?c.credentials="include":a.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function l(a){if(a.ep)return;a.ep=!0;const c=i(a);fetch(a.href,c)}})();function cc(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var bu={exports:{}},wi={},Eu={exports:{}},$e={};/**
2
- * @license React
3
- * react.production.min.js
4
- *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Rp;function Hy(){if(Rp)return $e;Rp=1;var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),x=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=x&&M[x]||M["@@iterator"],typeof M=="function"?M:null)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function $(M,H,se){this.props=M,this.context=H,this.refs=S,this.updater=se||b}$.prototype.isReactComponent={},$.prototype.setState=function(M,H){if(typeof M!="object"&&typeof M!="function"&&M!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,M,H,"setState")},$.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function _(){}_.prototype=$.prototype;function O(M,H,se){this.props=M,this.context=H,this.refs=S,this.updater=se||b}var E=O.prototype=new _;E.constructor=O,C(E,$.prototype),E.isPureReactComponent=!0;var T=Array.isArray,I=Object.prototype.hasOwnProperty,z={current:null},L={key:!0,ref:!0,__self:!0,__source:!0};function Q(M,H,se){var le,de={},ie=null,he=null;if(H!=null)for(le in H.ref!==void 0&&(he=H.ref),H.key!==void 0&&(ie=""+H.key),H)I.call(H,le)&&!L.hasOwnProperty(le)&&(de[le]=H[le]);var ge=arguments.length-2;if(ge===1)de.children=se;else if(1<ge){for(var ve=Array(ge),ye=0;ye<ge;ye++)ve[ye]=arguments[ye+2];de.children=ve}if(M&&M.defaultProps)for(le in ge=M.defaultProps,ge)de[le]===void 0&&(de[le]=ge[le]);return{$$typeof:n,type:M,key:ie,ref:he,props:de,_owner:z.current}}function ne(M,H){return{$$typeof:n,type:M.type,key:H,ref:M.ref,props:M.props,_owner:M._owner}}function m(M){return typeof M=="object"&&M!==null&&M.$$typeof===n}function j(M){var H={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(se){return H[se]})}var B=/\/+/g;function U(M,H){return typeof M=="object"&&M!==null&&M.key!=null?j(""+M.key):H.toString(36)}function Y(M,H,se,le,de){var ie=typeof M;(ie==="undefined"||ie==="boolean")&&(M=null);var he=!1;if(M===null)he=!0;else switch(ie){case"string":case"number":he=!0;break;case"object":switch(M.$$typeof){case n:case r:he=!0}}if(he)return he=M,de=de(he),M=le===""?"."+U(he,0):le,T(de)?(se="",M!=null&&(se=M.replace(B,"$&/")+"/"),Y(de,H,se,"",function(ye){return ye})):de!=null&&(m(de)&&(de=ne(de,se+(!de.key||he&&he.key===de.key?"":(""+de.key).replace(B,"$&/")+"/")+M)),H.push(de)),1;if(he=0,le=le===""?".":le+":",T(M))for(var ge=0;ge<M.length;ge++){ie=M[ge];var ve=le+U(ie,ge);he+=Y(ie,H,se,ve,de)}else if(ve=v(M),typeof ve=="function")for(M=ve.call(M),ge=0;!(ie=M.next()).done;)ie=ie.value,ve=le+U(ie,ge++),he+=Y(ie,H,se,ve,de);else if(ie==="object")throw H=String(M),Error("Objects are not valid as a React child (found: "+(H==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":H)+"). If you meant to render a collection of children, use an array instead.");return he}function K(M,H,se){if(M==null)return M;var le=[],de=0;return Y(M,le,"","",function(ie){return H.call(se,ie,de++)}),le}function X(M){if(M._status===-1){var H=M._result;H=H(),H.then(function(se){(M._status===0||M._status===-1)&&(M._status=1,M._result=se)},function(se){(M._status===0||M._status===-1)&&(M._status=2,M._result=se)}),M._status===-1&&(M._status=0,M._result=H)}if(M._status===1)return M._result.default;throw M._result}var te={current:null},V={transition:null},q={ReactCurrentDispatcher:te,ReactCurrentBatchConfig:V,ReactCurrentOwner:z};function J(){throw Error("act(...) is not supported in production builds of React.")}return $e.Children={map:K,forEach:function(M,H,se){K(M,function(){H.apply(this,arguments)},se)},count:function(M){var H=0;return K(M,function(){H++}),H},toArray:function(M){return K(M,function(H){return H})||[]},only:function(M){if(!m(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},$e.Component=$,$e.Fragment=i,$e.Profiler=a,$e.PureComponent=O,$e.StrictMode=l,$e.Suspense=h,$e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=q,$e.act=J,$e.cloneElement=function(M,H,se){if(M==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+M+".");var le=C({},M.props),de=M.key,ie=M.ref,he=M._owner;if(H!=null){if(H.ref!==void 0&&(ie=H.ref,he=z.current),H.key!==void 0&&(de=""+H.key),M.type&&M.type.defaultProps)var ge=M.type.defaultProps;for(ve in H)I.call(H,ve)&&!L.hasOwnProperty(ve)&&(le[ve]=H[ve]===void 0&&ge!==void 0?ge[ve]:H[ve])}var ve=arguments.length-2;if(ve===1)le.children=se;else if(1<ve){ge=Array(ve);for(var ye=0;ye<ve;ye++)ge[ye]=arguments[ye+2];le.children=ge}return{$$typeof:n,type:M.type,key:de,ref:ie,props:le,_owner:he}},$e.createContext=function(M){return M={$$typeof:f,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},M.Provider={$$typeof:c,_context:M},M.Consumer=M},$e.createElement=Q,$e.createFactory=function(M){var H=Q.bind(null,M);return H.type=M,H},$e.createRef=function(){return{current:null}},$e.forwardRef=function(M){return{$$typeof:p,render:M}},$e.isValidElement=m,$e.lazy=function(M){return{$$typeof:k,_payload:{_status:-1,_result:M},_init:X}},$e.memo=function(M,H){return{$$typeof:y,type:M,compare:H===void 0?null:H}},$e.startTransition=function(M){var H=V.transition;V.transition={};try{M()}finally{V.transition=H}},$e.unstable_act=J,$e.useCallback=function(M,H){return te.current.useCallback(M,H)},$e.useContext=function(M){return te.current.useContext(M)},$e.useDebugValue=function(){},$e.useDeferredValue=function(M){return te.current.useDeferredValue(M)},$e.useEffect=function(M,H){return te.current.useEffect(M,H)},$e.useId=function(){return te.current.useId()},$e.useImperativeHandle=function(M,H,se){return te.current.useImperativeHandle(M,H,se)},$e.useInsertionEffect=function(M,H){return te.current.useInsertionEffect(M,H)},$e.useLayoutEffect=function(M,H){return te.current.useLayoutEffect(M,H)},$e.useMemo=function(M,H){return te.current.useMemo(M,H)},$e.useReducer=function(M,H,se){return te.current.useReducer(M,H,se)},$e.useRef=function(M){return te.current.useRef(M)},$e.useState=function(M){return te.current.useState(M)},$e.useSyncExternalStore=function(M,H,se){return te.current.useSyncExternalStore(M,H,se)},$e.useTransition=function(){return te.current.useTransition()},$e.version="18.3.1",$e}var Tp;function dc(){return Tp||(Tp=1,Eu.exports=Hy()),Eu.exports}/**
10
- * @license React
11
- * react-jsx-runtime.production.min.js
12
- *
13
- * Copyright (c) Facebook, Inc. and its affiliates.
14
- *
15
- * This source code is licensed under the MIT license found in the
16
- * LICENSE file in the root directory of this source tree.
17
- */var $p;function Vy(){if($p)return wi;$p=1;var n=dc(),r=Symbol.for("react.element"),i=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,a=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function f(p,h,y){var k,x={},v=null,b=null;y!==void 0&&(v=""+y),h.key!==void 0&&(v=""+h.key),h.ref!==void 0&&(b=h.ref);for(k in h)l.call(h,k)&&!c.hasOwnProperty(k)&&(x[k]=h[k]);if(p&&p.defaultProps)for(k in h=p.defaultProps,h)x[k]===void 0&&(x[k]=h[k]);return{$$typeof:r,type:p,key:v,ref:b,props:x,_owner:a.current}}return wi.Fragment=i,wi.jsx=f,wi.jsxs=f,wi}var Ip;function Gy(){return Ip||(Ip=1,bu.exports=Vy()),bu.exports}var w=Gy(),rl={},Pu={exports:{}},Ut={},Ru={exports:{}},Tu={};/**
18
- * @license React
19
- * scheduler.production.min.js
20
- *
21
- * Copyright (c) Facebook, Inc. and its affiliates.
22
- *
23
- * This source code is licensed under the MIT license found in the
24
- * LICENSE file in the root directory of this source tree.
25
- */var _p;function Ky(){return _p||(_p=1,function(n){function r(V,q){var J=V.length;V.push(q);e:for(;0<J;){var M=J-1>>>1,H=V[M];if(0<a(H,q))V[M]=q,V[J]=H,J=M;else break e}}function i(V){return V.length===0?null:V[0]}function l(V){if(V.length===0)return null;var q=V[0],J=V.pop();if(J!==q){V[0]=J;e:for(var M=0,H=V.length,se=H>>>1;M<se;){var le=2*(M+1)-1,de=V[le],ie=le+1,he=V[ie];if(0>a(de,J))ie<H&&0>a(he,de)?(V[M]=he,V[ie]=J,M=ie):(V[M]=de,V[le]=J,M=le);else if(ie<H&&0>a(he,J))V[M]=he,V[ie]=J,M=ie;else break e}}return q}function a(V,q){var J=V.sortIndex-q.sortIndex;return J!==0?J:V.id-q.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;n.unstable_now=function(){return c.now()}}else{var f=Date,p=f.now();n.unstable_now=function(){return f.now()-p}}var h=[],y=[],k=1,x=null,v=3,b=!1,C=!1,S=!1,$=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function E(V){for(var q=i(y);q!==null;){if(q.callback===null)l(y);else if(q.startTime<=V)l(y),q.sortIndex=q.expirationTime,r(h,q);else break;q=i(y)}}function T(V){if(S=!1,E(V),!C)if(i(h)!==null)C=!0,X(I);else{var q=i(y);q!==null&&te(T,q.startTime-V)}}function I(V,q){C=!1,S&&(S=!1,_(Q),Q=-1),b=!0;var J=v;try{for(E(q),x=i(h);x!==null&&(!(x.expirationTime>q)||V&&!j());){var M=x.callback;if(typeof M=="function"){x.callback=null,v=x.priorityLevel;var H=M(x.expirationTime<=q);q=n.unstable_now(),typeof H=="function"?x.callback=H:x===i(h)&&l(h),E(q)}else l(h);x=i(h)}if(x!==null)var se=!0;else{var le=i(y);le!==null&&te(T,le.startTime-q),se=!1}return se}finally{x=null,v=J,b=!1}}var z=!1,L=null,Q=-1,ne=5,m=-1;function j(){return!(n.unstable_now()-m<ne)}function B(){if(L!==null){var V=n.unstable_now();m=V;var q=!0;try{q=L(!0,V)}finally{q?U():(z=!1,L=null)}}else z=!1}var U;if(typeof O=="function")U=function(){O(B)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,K=Y.port2;Y.port1.onmessage=B,U=function(){K.postMessage(null)}}else U=function(){$(B,0)};function X(V){L=V,z||(z=!0,U())}function te(V,q){Q=$(function(){V(n.unstable_now())},q)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(V){V.callback=null},n.unstable_continueExecution=function(){C||b||(C=!0,X(I))},n.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ne=0<V?Math.floor(1e3/V):5},n.unstable_getCurrentPriorityLevel=function(){return v},n.unstable_getFirstCallbackNode=function(){return i(h)},n.unstable_next=function(V){switch(v){case 1:case 2:case 3:var q=3;break;default:q=v}var J=v;v=q;try{return V()}finally{v=J}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(V,q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var J=v;v=V;try{return q()}finally{v=J}},n.unstable_scheduleCallback=function(V,q,J){var M=n.unstable_now();switch(typeof J=="object"&&J!==null?(J=J.delay,J=typeof J=="number"&&0<J?M+J:M):J=M,V){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=J+H,V={id:k++,callback:q,priorityLevel:V,startTime:J,expirationTime:H,sortIndex:-1},J>M?(V.sortIndex=J,r(y,V),i(h)===null&&V===i(y)&&(S?(_(Q),Q=-1):S=!0,te(T,J-M))):(V.sortIndex=H,r(h,V),C||b||(C=!0,X(I))),V},n.unstable_shouldYield=j,n.unstable_wrapCallback=function(V){var q=v;return function(){var J=v;v=q;try{return V.apply(this,arguments)}finally{v=J}}}}(Tu)),Tu}var Mp;function qy(){return Mp||(Mp=1,Ru.exports=Ky()),Ru.exports}/**
26
- * @license React
27
- * react-dom.production.min.js
28
- *
29
- * Copyright (c) Facebook, Inc. and its affiliates.
30
- *
31
- * This source code is licensed under the MIT license found in the
32
- * LICENSE file in the root directory of this source tree.
33
- */var Np;function Qy(){if(Np)return Ut;Np=1;var n=dc(),r=qy();function i(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)t+="&args[]="+encodeURIComponent(arguments[o]);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."}var l=new Set,a={};function c(e,t){f(e,t),f(e+"Capture",t)}function f(e,t){for(a[e]=t,e=0;e<t.length;e++)l.add(t[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,y=/^[: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]*$/,k={},x={};function v(e){return h.call(x,e)?!0:h.call(k,e)?!1:y.test(e)?x[e]=!0:(k[e]=!0,!1)}function b(e,t,o,s){if(o!==null&&o.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,t,o,s){if(t===null||typeof t>"u"||b(e,t,o,s))return!0;if(s)return!1;if(o!==null)switch(o.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function S(e,t,o,s,u,d,g){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=u,this.mustUseProperty=o,this.propertyName=e,this.type=t,this.sanitizeURL=d,this.removeEmptyString=g}var $={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){$[e]=new S(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];$[t]=new S(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){$[e]=new S(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){$[e]=new S(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){$[e]=new S(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){$[e]=new S(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){$[e]=new S(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){$[e]=new S(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){$[e]=new S(e,5,!1,e.toLowerCase(),null,!1,!1)});var _=/[\-:]([a-z])/g;function O(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(_,O);$[t]=new S(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(_,O);$[t]=new S(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(_,O);$[t]=new S(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){$[e]=new S(e,1,!1,e.toLowerCase(),null,!1,!1)}),$.xlinkHref=new S("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){$[e]=new S(e,1,!1,e.toLowerCase(),null,!0,!0)});function E(e,t,o,s){var u=$.hasOwnProperty(t)?$[t]:null;(u!==null?u.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(C(t,o,u,s)&&(o=null),s||u===null?v(t)&&(o===null?e.removeAttribute(t):e.setAttribute(t,""+o)):u.mustUseProperty?e[u.propertyName]=o===null?u.type===3?!1:"":o:(t=u.attributeName,s=u.attributeNamespace,o===null?e.removeAttribute(t):(u=u.type,o=u===3||u===4&&o===!0?"":""+o,s?e.setAttributeNS(s,t,o):e.setAttribute(t,o))))}var T=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,I=Symbol.for("react.element"),z=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),ne=Symbol.for("react.profiler"),m=Symbol.for("react.provider"),j=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),Y=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),V=Symbol.iterator;function q(e){return e===null||typeof e!="object"?null:(e=V&&e[V]||e["@@iterator"],typeof e=="function"?e:null)}var J=Object.assign,M;function H(e){if(M===void 0)try{throw Error()}catch(o){var t=o.stack.trim().match(/\n( *(at )?)/);M=t&&t[1]||""}return`
34
- `+M+e}var se=!1;function le(e,t){if(!e||se)return"";se=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(W){var s=W}Reflect.construct(e,[],t)}else{try{t.call()}catch(W){s=W}e.call(t.prototype)}else{try{throw Error()}catch(W){s=W}e()}}catch(W){if(W&&s&&typeof W.stack=="string"){for(var u=W.stack.split(`
35
- `),d=s.stack.split(`
36
- `),g=u.length-1,R=d.length-1;1<=g&&0<=R&&u[g]!==d[R];)R--;for(;1<=g&&0<=R;g--,R--)if(u[g]!==d[R]){if(g!==1||R!==1)do if(g--,R--,0>R||u[g]!==d[R]){var N=`
37
- `+u[g].replace(" at new "," at ");return e.displayName&&N.includes("<anonymous>")&&(N=N.replace("<anonymous>",e.displayName)),N}while(1<=g&&0<=R);break}}}finally{se=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?H(e):""}function de(e){switch(e.tag){case 5:return H(e.type);case 16:return H("Lazy");case 13:return H("Suspense");case 19:return H("SuspenseList");case 0:case 2:case 15:return e=le(e.type,!1),e;case 11:return e=le(e.type.render,!1),e;case 1:return e=le(e.type,!0),e;default:return""}}function ie(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case L:return"Fragment";case z:return"Portal";case ne:return"Profiler";case Q:return"StrictMode";case U:return"Suspense";case Y:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case j:return(e.displayName||"Context")+".Consumer";case m:return(e._context.displayName||"Context")+".Provider";case B:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case K:return t=e.displayName||null,t!==null?t:ie(e.type)||"Memo";case X:t=e._payload,e=e._init;try{return ie(e(t))}catch{}}return null}function he(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ie(t);case 8:return t===Q?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ve(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ye(e){var t=ve(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var u=o.get,d=o.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return u.call(this)},set:function(g){s=""+g,d.call(this,g)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return s},setValue:function(g){s=""+g},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _e(e){e._valueTracker||(e._valueTracker=ye(e))}function Te(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var o=t.getValue(),s="";return e&&(s=ve(e)?e.checked?"true":"false":e.value),e=s,e!==o?(t.setValue(e),!0):!1}function Ge(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Re(e,t){var o=t.checked;return J({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Ke(e,t){var o=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;o=ge(t.value!=null?t.value:o),e._wrapperState={initialChecked:s,initialValue:o,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Rt(e,t){t=t.checked,t!=null&&E(e,"checked",t,!1)}function gt(e,t){Rt(e,t);var o=ge(t.value),s=t.type;if(o!=null)s==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?zt(e,t.type,o):t.hasOwnProperty("defaultValue")&&zt(e,t.type,ge(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function at(e,t,o){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,o||t===e.value||(e.value=t),e.defaultValue=t}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function zt(e,t,o){(t!=="number"||Ge(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var ut=Array.isArray;function Ye(e,t,o,s){if(e=e.options,t){t={};for(var u=0;u<o.length;u++)t["$"+o[u]]=!0;for(o=0;o<e.length;o++)u=t.hasOwnProperty("$"+e[o].value),e[o].selected!==u&&(e[o].selected=u),u&&s&&(e[o].defaultSelected=!0)}else{for(o=""+ge(o),t=null,u=0;u<e.length;u++){if(e[u].value===o){e[u].selected=!0,s&&(e[u].defaultSelected=!0);return}t!==null||e[u].disabled||(t=e[u])}t!==null&&(t.selected=!0)}}function xe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(i(91));return J({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Ln(e,t){var o=t.value;if(o==null){if(o=t.children,t=t.defaultValue,o!=null){if(t!=null)throw Error(i(92));if(ut(o)){if(1<o.length)throw Error(i(93));o=o[0]}t=o}t==null&&(t=""),o=t}e._wrapperState={initialValue:ge(o)}}function Ct(e,t){var o=ge(t.value),s=ge(t.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),t.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),s!=null&&(e.defaultValue=""+s)}function Fn(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function er(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Dn(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?er(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var cn,Bn=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,o,s,u){MSApp.execUnsafeLocalFunction(function(){return e(t,o,s,u)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(cn=cn||document.createElement("div"),cn.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=cn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Vt(e,t){if(t){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=t;return}}e.textContent=t}var Be={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},tr=["Webkit","ms","Moz","O"];Object.keys(Be).forEach(function(e){tr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Be[t]=Be[e]})});function nr(e,t,o){return t==null||typeof t=="boolean"||t===""?"":o||typeof t!="number"||t===0||Be.hasOwnProperty(e)&&Be[e]?(""+t).trim():t+"px"}function zo(e,t){e=e.style;for(var o in t)if(t.hasOwnProperty(o)){var s=o.indexOf("--")===0,u=nr(o,t[o],s);o==="float"&&(o="cssFloat"),s?e.setProperty(o,u):e[o]=u}}var ke=J({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Ue(e,t){if(t){if(ke[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(i(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(i(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(i(61))}if(t.style!=null&&typeof t.style!="object")throw Error(i(62))}}function ct(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kn=null;function Kr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Dl=null,qr=null,Qr=null;function Uc(e){if(e=ii(e)){if(typeof Dl!="function")throw Error(i(280));var t=e.stateNode;t&&(t=vs(t),Dl(e.stateNode,e.type,t))}}function Hc(e){qr?Qr?Qr.push(e):Qr=[e]:qr=e}function Vc(){if(qr){var e=qr,t=Qr;if(Qr=qr=null,Uc(e),t)for(e=0;e<t.length;e++)Uc(t[e])}}function Gc(e,t){return e(t)}function Kc(){}var Bl=!1;function qc(e,t,o){if(Bl)return e(t,o);Bl=!0;try{return Gc(e,t,o)}finally{Bl=!1,(qr!==null||Qr!==null)&&(Kc(),Vc())}}function Lo(e,t){var o=e.stateNode;if(o===null)return null;var s=vs(o);if(s===null)return null;o=s[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(i(231,t,typeof o));return o}var Wl=!1;if(p)try{var Fo={};Object.defineProperty(Fo,"passive",{get:function(){Wl=!0}}),window.addEventListener("test",Fo,Fo),window.removeEventListener("test",Fo,Fo)}catch{Wl=!1}function qh(e,t,o,s,u,d,g,R,N){var W=Array.prototype.slice.call(arguments,3);try{t.apply(o,W)}catch(ee){this.onError(ee)}}var Do=!1,Yi=null,Xi=!1,Ul=null,Qh={onError:function(e){Do=!0,Yi=e}};function Yh(e,t,o,s,u,d,g,R,N){Do=!1,Yi=null,qh.apply(Qh,arguments)}function Xh(e,t,o,s,u,d,g,R,N){if(Yh.apply(this,arguments),Do){if(Do){var W=Yi;Do=!1,Yi=null}else throw Error(i(198));Xi||(Xi=!0,Ul=W)}}function Rr(e){var t=e,o=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(o=t.return),e=t.return;while(e)}return t.tag===3?o:null}function Qc(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 Yc(e){if(Rr(e)!==e)throw Error(i(188))}function Jh(e){var t=e.alternate;if(!t){if(t=Rr(e),t===null)throw Error(i(188));return t!==e?null:e}for(var o=e,s=t;;){var u=o.return;if(u===null)break;var d=u.alternate;if(d===null){if(s=u.return,s!==null){o=s;continue}break}if(u.child===d.child){for(d=u.child;d;){if(d===o)return Yc(u),e;if(d===s)return Yc(u),t;d=d.sibling}throw Error(i(188))}if(o.return!==s.return)o=u,s=d;else{for(var g=!1,R=u.child;R;){if(R===o){g=!0,o=u,s=d;break}if(R===s){g=!0,s=u,o=d;break}R=R.sibling}if(!g){for(R=d.child;R;){if(R===o){g=!0,o=d,s=u;break}if(R===s){g=!0,s=d,o=u;break}R=R.sibling}if(!g)throw Error(i(189))}}if(o.alternate!==s)throw Error(i(190))}if(o.tag!==3)throw Error(i(188));return o.stateNode.current===o?e:t}function Xc(e){return e=Jh(e),e!==null?Jc(e):null}function Jc(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=Jc(e);if(t!==null)return t;e=e.sibling}return null}var Zc=r.unstable_scheduleCallback,ed=r.unstable_cancelCallback,Zh=r.unstable_shouldYield,eg=r.unstable_requestPaint,dt=r.unstable_now,tg=r.unstable_getCurrentPriorityLevel,Hl=r.unstable_ImmediatePriority,td=r.unstable_UserBlockingPriority,Ji=r.unstable_NormalPriority,ng=r.unstable_LowPriority,nd=r.unstable_IdlePriority,Zi=null,bn=null;function rg(e){if(bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(Zi,e,void 0,(e.current.flags&128)===128)}catch{}}var dn=Math.clz32?Math.clz32:sg,og=Math.log,ig=Math.LN2;function sg(e){return e>>>=0,e===0?32:31-(og(e)/ig|0)|0}var es=64,ts=4194304;function Bo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ns(e,t){var o=e.pendingLanes;if(o===0)return 0;var s=0,u=e.suspendedLanes,d=e.pingedLanes,g=o&268435455;if(g!==0){var R=g&~u;R!==0?s=Bo(R):(d&=g,d!==0&&(s=Bo(d)))}else g=o&~u,g!==0?s=Bo(g):d!==0&&(s=Bo(d));if(s===0)return 0;if(t!==0&&t!==s&&!(t&u)&&(u=s&-s,d=t&-t,u>=d||u===16&&(d&4194240)!==0))return t;if(s&4&&(s|=o&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)o=31-dn(t),u=1<<o,s|=e[o],t&=~u;return s}function lg(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ag(e,t){for(var o=e.suspendedLanes,s=e.pingedLanes,u=e.expirationTimes,d=e.pendingLanes;0<d;){var g=31-dn(d),R=1<<g,N=u[g];N===-1?(!(R&o)||R&s)&&(u[g]=lg(R,t)):N<=t&&(e.expiredLanes|=R),d&=~R}}function Vl(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function rd(){var e=es;return es<<=1,!(es&4194240)&&(es=64),e}function Gl(e){for(var t=[],o=0;31>o;o++)t.push(e);return t}function Wo(e,t,o){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-dn(t),e[t]=o}function ug(e,t){var o=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<o;){var u=31-dn(o),d=1<<u;t[u]=0,s[u]=-1,e[u]=-1,o&=~d}}function Kl(e,t){var o=e.entangledLanes|=t;for(e=e.entanglements;o;){var s=31-dn(o),u=1<<s;u&t|e[s]&t&&(e[s]|=t),o&=~u}}var He=0;function od(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var id,ql,sd,ld,ad,Ql=!1,rs=[],rr=null,or=null,ir=null,Uo=new Map,Ho=new Map,sr=[],cg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ud(e,t){switch(e){case"focusin":case"focusout":rr=null;break;case"dragenter":case"dragleave":or=null;break;case"mouseover":case"mouseout":ir=null;break;case"pointerover":case"pointerout":Uo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ho.delete(t.pointerId)}}function Vo(e,t,o,s,u,d){return e===null||e.nativeEvent!==d?(e={blockedOn:t,domEventName:o,eventSystemFlags:s,nativeEvent:d,targetContainers:[u]},t!==null&&(t=ii(t),t!==null&&ql(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,u!==null&&t.indexOf(u)===-1&&t.push(u),e)}function dg(e,t,o,s,u){switch(t){case"focusin":return rr=Vo(rr,e,t,o,s,u),!0;case"dragenter":return or=Vo(or,e,t,o,s,u),!0;case"mouseover":return ir=Vo(ir,e,t,o,s,u),!0;case"pointerover":var d=u.pointerId;return Uo.set(d,Vo(Uo.get(d)||null,e,t,o,s,u)),!0;case"gotpointercapture":return d=u.pointerId,Ho.set(d,Vo(Ho.get(d)||null,e,t,o,s,u)),!0}return!1}function cd(e){var t=Tr(e.target);if(t!==null){var o=Rr(t);if(o!==null){if(t=o.tag,t===13){if(t=Qc(o),t!==null){e.blockedOn=t,ad(e.priority,function(){sd(o)});return}}else if(t===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function os(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var o=Xl(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var s=new o.constructor(o.type,o);kn=s,o.target.dispatchEvent(s),kn=null}else return t=ii(o),t!==null&&ql(t),e.blockedOn=o,!1;t.shift()}return!0}function dd(e,t,o){os(e)&&o.delete(t)}function fg(){Ql=!1,rr!==null&&os(rr)&&(rr=null),or!==null&&os(or)&&(or=null),ir!==null&&os(ir)&&(ir=null),Uo.forEach(dd),Ho.forEach(dd)}function Go(e,t){e.blockedOn===t&&(e.blockedOn=null,Ql||(Ql=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,fg)))}function Ko(e){function t(u){return Go(u,e)}if(0<rs.length){Go(rs[0],e);for(var o=1;o<rs.length;o++){var s=rs[o];s.blockedOn===e&&(s.blockedOn=null)}}for(rr!==null&&Go(rr,e),or!==null&&Go(or,e),ir!==null&&Go(ir,e),Uo.forEach(t),Ho.forEach(t),o=0;o<sr.length;o++)s=sr[o],s.blockedOn===e&&(s.blockedOn=null);for(;0<sr.length&&(o=sr[0],o.blockedOn===null);)cd(o),o.blockedOn===null&&sr.shift()}var Yr=T.ReactCurrentBatchConfig,is=!0;function pg(e,t,o,s){var u=He,d=Yr.transition;Yr.transition=null;try{He=1,Yl(e,t,o,s)}finally{He=u,Yr.transition=d}}function mg(e,t,o,s){var u=He,d=Yr.transition;Yr.transition=null;try{He=4,Yl(e,t,o,s)}finally{He=u,Yr.transition=d}}function Yl(e,t,o,s){if(is){var u=Xl(e,t,o,s);if(u===null)ma(e,t,s,ss,o),ud(e,s);else if(dg(u,e,t,o,s))s.stopPropagation();else if(ud(e,s),t&4&&-1<cg.indexOf(e)){for(;u!==null;){var d=ii(u);if(d!==null&&id(d),d=Xl(e,t,o,s),d===null&&ma(e,t,s,ss,o),d===u)break;u=d}u!==null&&s.stopPropagation()}else ma(e,t,s,null,o)}}var ss=null;function Xl(e,t,o,s){if(ss=null,e=Kr(s),e=Tr(e),e!==null)if(t=Rr(e),t===null)e=null;else if(o=t.tag,o===13){if(e=Qc(t),e!==null)return e;e=null}else if(o===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ss=e,null}function fd(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(tg()){case Hl:return 1;case td:return 4;case Ji:case ng:return 16;case nd:return 536870912;default:return 16}default:return 16}}var lr=null,Jl=null,ls=null;function pd(){if(ls)return ls;var e,t=Jl,o=t.length,s,u="value"in lr?lr.value:lr.textContent,d=u.length;for(e=0;e<o&&t[e]===u[e];e++);var g=o-e;for(s=1;s<=g&&t[o-s]===u[d-s];s++);return ls=u.slice(e,1<s?1-s:void 0)}function as(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 us(){return!0}function md(){return!1}function Gt(e){function t(o,s,u,d,g){this._reactName=o,this._targetInst=u,this.type=s,this.nativeEvent=d,this.target=g,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(o=e[R],this[R]=o?o(d):d[R]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?us:md,this.isPropagationStopped=md,this}return J(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=us)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=us)},persist:function(){},isPersistent:us}),t}var Xr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zl=Gt(Xr),qo=J({},Xr,{view:0,detail:0}),hg=Gt(qo),ea,ta,Qo,cs=J({},qo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ra,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!==Qo&&(Qo&&e.type==="mousemove"?(ea=e.screenX-Qo.screenX,ta=e.screenY-Qo.screenY):ta=ea=0,Qo=e),ea)},movementY:function(e){return"movementY"in e?e.movementY:ta}}),hd=Gt(cs),gg=J({},cs,{dataTransfer:0}),yg=Gt(gg),vg=J({},qo,{relatedTarget:0}),na=Gt(vg),xg=J({},Xr,{animationName:0,elapsedTime:0,pseudoElement:0}),Sg=Gt(xg),wg=J({},Xr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Cg=Gt(wg),kg=J({},Xr,{data:0}),gd=Gt(kg),bg={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Eg={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"},Pg={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Rg(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Pg[e])?!!t[e]:!1}function ra(){return Rg}var Tg=J({},qo,{key:function(e){if(e.key){var t=bg[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=as(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Eg[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ra,charCode:function(e){return e.type==="keypress"?as(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?as(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$g=Gt(Tg),Ig=J({},cs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yd=Gt(Ig),_g=J({},qo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ra}),Mg=Gt(_g),Ng=J({},Xr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Og=Gt(Ng),Ag=J({},cs,{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}),jg=Gt(Ag),zg=[9,13,27,32],oa=p&&"CompositionEvent"in window,Yo=null;p&&"documentMode"in document&&(Yo=document.documentMode);var Lg=p&&"TextEvent"in window&&!Yo,vd=p&&(!oa||Yo&&8<Yo&&11>=Yo),xd=" ",Sd=!1;function wd(e,t){switch(e){case"keyup":return zg.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Cd(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Jr=!1;function Fg(e,t){switch(e){case"compositionend":return Cd(t);case"keypress":return t.which!==32?null:(Sd=!0,xd);case"textInput":return e=t.data,e===xd&&Sd?null:e;default:return null}}function Dg(e,t){if(Jr)return e==="compositionend"||!oa&&wd(e,t)?(e=pd(),ls=Jl=lr=null,Jr=!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 vd&&t.locale!=="ko"?null:t.data;default:return null}}var Bg={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 kd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Bg[e.type]:t==="textarea"}function bd(e,t,o,s){Hc(s),t=hs(t,"onChange"),0<t.length&&(o=new Zl("onChange","change",null,o,s),e.push({event:o,listeners:t}))}var Xo=null,Jo=null;function Wg(e){Wd(e,0)}function ds(e){var t=ro(e);if(Te(t))return e}function Ug(e,t){if(e==="change")return t}var Ed=!1;if(p){var ia;if(p){var sa="oninput"in document;if(!sa){var Pd=document.createElement("div");Pd.setAttribute("oninput","return;"),sa=typeof Pd.oninput=="function"}ia=sa}else ia=!1;Ed=ia&&(!document.documentMode||9<document.documentMode)}function Rd(){Xo&&(Xo.detachEvent("onpropertychange",Td),Jo=Xo=null)}function Td(e){if(e.propertyName==="value"&&ds(Jo)){var t=[];bd(t,Jo,e,Kr(e)),qc(Wg,t)}}function Hg(e,t,o){e==="focusin"?(Rd(),Xo=t,Jo=o,Xo.attachEvent("onpropertychange",Td)):e==="focusout"&&Rd()}function Vg(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ds(Jo)}function Gg(e,t){if(e==="click")return ds(t)}function Kg(e,t){if(e==="input"||e==="change")return ds(t)}function qg(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var fn=typeof Object.is=="function"?Object.is:qg;function Zo(e,t){if(fn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var o=Object.keys(e),s=Object.keys(t);if(o.length!==s.length)return!1;for(s=0;s<o.length;s++){var u=o[s];if(!h.call(t,u)||!fn(e[u],t[u]))return!1}return!0}function $d(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Id(e,t){var o=$d(e);e=0;for(var s;o;){if(o.nodeType===3){if(s=e+o.textContent.length,e<=t&&s>=t)return{node:o,offset:t-e};e=s}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=$d(o)}}function _d(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?_d(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Md(){for(var e=window,t=Ge();t instanceof e.HTMLIFrameElement;){try{var o=typeof t.contentWindow.location.href=="string"}catch{o=!1}if(o)e=t.contentWindow;else break;t=Ge(e.document)}return t}function la(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")}function Qg(e){var t=Md(),o=e.focusedElem,s=e.selectionRange;if(t!==o&&o&&o.ownerDocument&&_d(o.ownerDocument.documentElement,o)){if(s!==null&&la(o)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in o)o.selectionStart=t,o.selectionEnd=Math.min(e,o.value.length);else if(e=(t=o.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var u=o.textContent.length,d=Math.min(s.start,u);s=s.end===void 0?d:Math.min(s.end,u),!e.extend&&d>s&&(u=s,s=d,d=u),u=Id(o,d);var g=Id(o,s);u&&g&&(e.rangeCount!==1||e.anchorNode!==u.node||e.anchorOffset!==u.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(t=t.createRange(),t.setStart(u.node,u.offset),e.removeAllRanges(),d>s?(e.addRange(t),e.extend(g.node,g.offset)):(t.setEnd(g.node,g.offset),e.addRange(t)))}}for(t=[],e=o;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<t.length;o++)e=t[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Yg=p&&"documentMode"in document&&11>=document.documentMode,Zr=null,aa=null,ei=null,ua=!1;function Nd(e,t,o){var s=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ua||Zr==null||Zr!==Ge(s)||(s=Zr,"selectionStart"in s&&la(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),ei&&Zo(ei,s)||(ei=s,s=hs(aa,"onSelect"),0<s.length&&(t=new Zl("onSelect","select",null,t,o),e.push({event:t,listeners:s}),t.target=Zr)))}function fs(e,t){var o={};return o[e.toLowerCase()]=t.toLowerCase(),o["Webkit"+e]="webkit"+t,o["Moz"+e]="moz"+t,o}var eo={animationend:fs("Animation","AnimationEnd"),animationiteration:fs("Animation","AnimationIteration"),animationstart:fs("Animation","AnimationStart"),transitionend:fs("Transition","TransitionEnd")},ca={},Od={};p&&(Od=document.createElement("div").style,"AnimationEvent"in window||(delete eo.animationend.animation,delete eo.animationiteration.animation,delete eo.animationstart.animation),"TransitionEvent"in window||delete eo.transitionend.transition);function ps(e){if(ca[e])return ca[e];if(!eo[e])return e;var t=eo[e],o;for(o in t)if(t.hasOwnProperty(o)&&o in Od)return ca[e]=t[o];return e}var Ad=ps("animationend"),jd=ps("animationiteration"),zd=ps("animationstart"),Ld=ps("transitionend"),Fd=new Map,Dd="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function ar(e,t){Fd.set(e,t),c(t,[e])}for(var da=0;da<Dd.length;da++){var fa=Dd[da],Xg=fa.toLowerCase(),Jg=fa[0].toUpperCase()+fa.slice(1);ar(Xg,"on"+Jg)}ar(Ad,"onAnimationEnd"),ar(jd,"onAnimationIteration"),ar(zd,"onAnimationStart"),ar("dblclick","onDoubleClick"),ar("focusin","onFocus"),ar("focusout","onBlur"),ar(Ld,"onTransitionEnd"),f("onMouseEnter",["mouseout","mouseover"]),f("onMouseLeave",["mouseout","mouseover"]),f("onPointerEnter",["pointerout","pointerover"]),f("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ti="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(" "),Zg=new Set("cancel close invalid load scroll toggle".split(" ").concat(ti));function Bd(e,t,o){var s=e.type||"unknown-event";e.currentTarget=o,Xh(s,t,void 0,e),e.currentTarget=null}function Wd(e,t){t=(t&4)!==0;for(var o=0;o<e.length;o++){var s=e[o],u=s.event;s=s.listeners;e:{var d=void 0;if(t)for(var g=s.length-1;0<=g;g--){var R=s[g],N=R.instance,W=R.currentTarget;if(R=R.listener,N!==d&&u.isPropagationStopped())break e;Bd(u,R,W),d=N}else for(g=0;g<s.length;g++){if(R=s[g],N=R.instance,W=R.currentTarget,R=R.listener,N!==d&&u.isPropagationStopped())break e;Bd(u,R,W),d=N}}}if(Xi)throw e=Ul,Xi=!1,Ul=null,e}function Je(e,t){var o=t[Sa];o===void 0&&(o=t[Sa]=new Set);var s=e+"__bubble";o.has(s)||(Ud(t,e,2,!1),o.add(s))}function pa(e,t,o){var s=0;t&&(s|=4),Ud(o,e,s,t)}var ms="_reactListening"+Math.random().toString(36).slice(2);function ni(e){if(!e[ms]){e[ms]=!0,l.forEach(function(o){o!=="selectionchange"&&(Zg.has(o)||pa(o,!1,e),pa(o,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[ms]||(t[ms]=!0,pa("selectionchange",!1,t))}}function Ud(e,t,o,s){switch(fd(t)){case 1:var u=pg;break;case 4:u=mg;break;default:u=Yl}o=u.bind(null,t,o,e),u=void 0,!Wl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(u=!0),s?u!==void 0?e.addEventListener(t,o,{capture:!0,passive:u}):e.addEventListener(t,o,!0):u!==void 0?e.addEventListener(t,o,{passive:u}):e.addEventListener(t,o,!1)}function ma(e,t,o,s,u){var d=s;if(!(t&1)&&!(t&2)&&s!==null)e:for(;;){if(s===null)return;var g=s.tag;if(g===3||g===4){var R=s.stateNode.containerInfo;if(R===u||R.nodeType===8&&R.parentNode===u)break;if(g===4)for(g=s.return;g!==null;){var N=g.tag;if((N===3||N===4)&&(N=g.stateNode.containerInfo,N===u||N.nodeType===8&&N.parentNode===u))return;g=g.return}for(;R!==null;){if(g=Tr(R),g===null)return;if(N=g.tag,N===5||N===6){s=d=g;continue e}R=R.parentNode}}s=s.return}qc(function(){var W=d,ee=Kr(o),re=[];e:{var Z=Fd.get(e);if(Z!==void 0){var ue=Zl,fe=e;switch(e){case"keypress":if(as(o)===0)break e;case"keydown":case"keyup":ue=$g;break;case"focusin":fe="focus",ue=na;break;case"focusout":fe="blur",ue=na;break;case"beforeblur":case"afterblur":ue=na;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ue=hd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ue=yg;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ue=Mg;break;case Ad:case jd:case zd:ue=Sg;break;case Ld:ue=Og;break;case"scroll":ue=hg;break;case"wheel":ue=jg;break;case"copy":case"cut":case"paste":ue=Cg;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ue=yd}var pe=(t&4)!==0,ft=!pe&&e==="scroll",F=pe?Z!==null?Z+"Capture":null:Z;pe=[];for(var A=W,D;A!==null;){D=A;var oe=D.stateNode;if(D.tag===5&&oe!==null&&(D=oe,F!==null&&(oe=Lo(A,F),oe!=null&&pe.push(ri(A,oe,D)))),ft)break;A=A.return}0<pe.length&&(Z=new ue(Z,fe,null,o,ee),re.push({event:Z,listeners:pe}))}}if(!(t&7)){e:{if(Z=e==="mouseover"||e==="pointerover",ue=e==="mouseout"||e==="pointerout",Z&&o!==kn&&(fe=o.relatedTarget||o.fromElement)&&(Tr(fe)||fe[Wn]))break e;if((ue||Z)&&(Z=ee.window===ee?ee:(Z=ee.ownerDocument)?Z.defaultView||Z.parentWindow:window,ue?(fe=o.relatedTarget||o.toElement,ue=W,fe=fe?Tr(fe):null,fe!==null&&(ft=Rr(fe),fe!==ft||fe.tag!==5&&fe.tag!==6)&&(fe=null)):(ue=null,fe=W),ue!==fe)){if(pe=hd,oe="onMouseLeave",F="onMouseEnter",A="mouse",(e==="pointerout"||e==="pointerover")&&(pe=yd,oe="onPointerLeave",F="onPointerEnter",A="pointer"),ft=ue==null?Z:ro(ue),D=fe==null?Z:ro(fe),Z=new pe(oe,A+"leave",ue,o,ee),Z.target=ft,Z.relatedTarget=D,oe=null,Tr(ee)===W&&(pe=new pe(F,A+"enter",fe,o,ee),pe.target=D,pe.relatedTarget=ft,oe=pe),ft=oe,ue&&fe)t:{for(pe=ue,F=fe,A=0,D=pe;D;D=to(D))A++;for(D=0,oe=F;oe;oe=to(oe))D++;for(;0<A-D;)pe=to(pe),A--;for(;0<D-A;)F=to(F),D--;for(;A--;){if(pe===F||F!==null&&pe===F.alternate)break t;pe=to(pe),F=to(F)}pe=null}else pe=null;ue!==null&&Hd(re,Z,ue,pe,!1),fe!==null&&ft!==null&&Hd(re,ft,fe,pe,!0)}}e:{if(Z=W?ro(W):window,ue=Z.nodeName&&Z.nodeName.toLowerCase(),ue==="select"||ue==="input"&&Z.type==="file")var me=Ug;else if(kd(Z))if(Ed)me=Kg;else{me=Vg;var we=Hg}else(ue=Z.nodeName)&&ue.toLowerCase()==="input"&&(Z.type==="checkbox"||Z.type==="radio")&&(me=Gg);if(me&&(me=me(e,W))){bd(re,me,o,ee);break e}we&&we(e,Z,W),e==="focusout"&&(we=Z._wrapperState)&&we.controlled&&Z.type==="number"&&zt(Z,"number",Z.value)}switch(we=W?ro(W):window,e){case"focusin":(kd(we)||we.contentEditable==="true")&&(Zr=we,aa=W,ei=null);break;case"focusout":ei=aa=Zr=null;break;case"mousedown":ua=!0;break;case"contextmenu":case"mouseup":case"dragend":ua=!1,Nd(re,o,ee);break;case"selectionchange":if(Yg)break;case"keydown":case"keyup":Nd(re,o,ee)}var Ce;if(oa)e:{switch(e){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else Jr?wd(e,o)&&(Pe="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(Pe="onCompositionStart");Pe&&(vd&&o.locale!=="ko"&&(Jr||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Jr&&(Ce=pd()):(lr=ee,Jl="value"in lr?lr.value:lr.textContent,Jr=!0)),we=hs(W,Pe),0<we.length&&(Pe=new gd(Pe,e,null,o,ee),re.push({event:Pe,listeners:we}),Ce?Pe.data=Ce:(Ce=Cd(o),Ce!==null&&(Pe.data=Ce)))),(Ce=Lg?Fg(e,o):Dg(e,o))&&(W=hs(W,"onBeforeInput"),0<W.length&&(ee=new gd("onBeforeInput","beforeinput",null,o,ee),re.push({event:ee,listeners:W}),ee.data=Ce))}Wd(re,t)})}function ri(e,t,o){return{instance:e,listener:t,currentTarget:o}}function hs(e,t){for(var o=t+"Capture",s=[];e!==null;){var u=e,d=u.stateNode;u.tag===5&&d!==null&&(u=d,d=Lo(e,o),d!=null&&s.unshift(ri(e,d,u)),d=Lo(e,t),d!=null&&s.push(ri(e,d,u))),e=e.return}return s}function to(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Hd(e,t,o,s,u){for(var d=t._reactName,g=[];o!==null&&o!==s;){var R=o,N=R.alternate,W=R.stateNode;if(N!==null&&N===s)break;R.tag===5&&W!==null&&(R=W,u?(N=Lo(o,d),N!=null&&g.unshift(ri(o,N,R))):u||(N=Lo(o,d),N!=null&&g.push(ri(o,N,R)))),o=o.return}g.length!==0&&e.push({event:t,listeners:g})}var ey=/\r\n?/g,ty=/\u0000|\uFFFD/g;function Vd(e){return(typeof e=="string"?e:""+e).replace(ey,`
38
- `).replace(ty,"")}function gs(e,t,o){if(t=Vd(t),Vd(e)!==t&&o)throw Error(i(425))}function ys(){}var ha=null,ga=null;function ya(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var va=typeof setTimeout=="function"?setTimeout:void 0,ny=typeof clearTimeout=="function"?clearTimeout:void 0,Gd=typeof Promise=="function"?Promise:void 0,ry=typeof queueMicrotask=="function"?queueMicrotask:typeof Gd<"u"?function(e){return Gd.resolve(null).then(e).catch(oy)}:va;function oy(e){setTimeout(function(){throw e})}function xa(e,t){var o=t,s=0;do{var u=o.nextSibling;if(e.removeChild(o),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(s===0){e.removeChild(u),Ko(t);return}s--}else o!=="$"&&o!=="$?"&&o!=="$!"||s++;o=u}while(o);Ko(t)}function ur(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==="$?")break;if(t==="/$")return null}}return e}function Kd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(t===0)return e;t--}else o==="/$"&&t++}e=e.previousSibling}return null}var no=Math.random().toString(36).slice(2),En="__reactFiber$"+no,oi="__reactProps$"+no,Wn="__reactContainer$"+no,Sa="__reactEvents$"+no,iy="__reactListeners$"+no,sy="__reactHandles$"+no;function Tr(e){var t=e[En];if(t)return t;for(var o=e.parentNode;o;){if(t=o[Wn]||o[En]){if(o=t.alternate,t.child!==null||o!==null&&o.child!==null)for(e=Kd(e);e!==null;){if(o=e[En])return o;e=Kd(e)}return t}e=o,o=e.parentNode}return null}function ii(e){return e=e[En]||e[Wn],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ro(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(i(33))}function vs(e){return e[oi]||null}var wa=[],oo=-1;function cr(e){return{current:e}}function Ze(e){0>oo||(e.current=wa[oo],wa[oo]=null,oo--)}function Xe(e,t){oo++,wa[oo]=e.current,e.current=t}var dr={},Tt=cr(dr),Lt=cr(!1),$r=dr;function io(e,t){var o=e.type.contextTypes;if(!o)return dr;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var u={},d;for(d in o)u[d]=t[d];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=u),u}function Ft(e){return e=e.childContextTypes,e!=null}function xs(){Ze(Lt),Ze(Tt)}function qd(e,t,o){if(Tt.current!==dr)throw Error(i(168));Xe(Tt,t),Xe(Lt,o)}function Qd(e,t,o){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return o;s=s.getChildContext();for(var u in s)if(!(u in t))throw Error(i(108,he(e)||"Unknown",u));return J({},o,s)}function Ss(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||dr,$r=Tt.current,Xe(Tt,e),Xe(Lt,Lt.current),!0}function Yd(e,t,o){var s=e.stateNode;if(!s)throw Error(i(169));o?(e=Qd(e,t,$r),s.__reactInternalMemoizedMergedChildContext=e,Ze(Lt),Ze(Tt),Xe(Tt,e)):Ze(Lt),Xe(Lt,o)}var Un=null,ws=!1,Ca=!1;function Xd(e){Un===null?Un=[e]:Un.push(e)}function ly(e){ws=!0,Xd(e)}function fr(){if(!Ca&&Un!==null){Ca=!0;var e=0,t=He;try{var o=Un;for(He=1;e<o.length;e++){var s=o[e];do s=s(!0);while(s!==null)}Un=null,ws=!1}catch(u){throw Un!==null&&(Un=Un.slice(e+1)),Zc(Hl,fr),u}finally{He=t,Ca=!1}}return null}var so=[],lo=0,Cs=null,ks=0,Jt=[],Zt=0,Ir=null,Hn=1,Vn="";function _r(e,t){so[lo++]=ks,so[lo++]=Cs,Cs=e,ks=t}function Jd(e,t,o){Jt[Zt++]=Hn,Jt[Zt++]=Vn,Jt[Zt++]=Ir,Ir=e;var s=Hn;e=Vn;var u=32-dn(s)-1;s&=~(1<<u),o+=1;var d=32-dn(t)+u;if(30<d){var g=u-u%5;d=(s&(1<<g)-1).toString(32),s>>=g,u-=g,Hn=1<<32-dn(t)+u|o<<u|s,Vn=d+e}else Hn=1<<d|o<<u|s,Vn=e}function ka(e){e.return!==null&&(_r(e,1),Jd(e,1,0))}function ba(e){for(;e===Cs;)Cs=so[--lo],so[lo]=null,ks=so[--lo],so[lo]=null;for(;e===Ir;)Ir=Jt[--Zt],Jt[Zt]=null,Vn=Jt[--Zt],Jt[Zt]=null,Hn=Jt[--Zt],Jt[Zt]=null}var Kt=null,qt=null,et=!1,pn=null;function Zd(e,t){var o=rn(5,null,null,0);o.elementType="DELETED",o.stateNode=t,o.return=e,t=e.deletions,t===null?(e.deletions=[o],e.flags|=16):t.push(o)}function ef(e,t){switch(e.tag){case 5:var o=e.type;return t=t.nodeType!==1||o.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Kt=e,qt=ur(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Kt=e,qt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(o=Ir!==null?{id:Hn,overflow:Vn}:null,e.memoizedState={dehydrated:t,treeContext:o,retryLane:1073741824},o=rn(18,null,null,0),o.stateNode=t,o.return=e,e.child=o,Kt=e,qt=null,!0):!1;default:return!1}}function Ea(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Pa(e){if(et){var t=qt;if(t){var o=t;if(!ef(e,t)){if(Ea(e))throw Error(i(418));t=ur(o.nextSibling);var s=Kt;t&&ef(e,t)?Zd(s,o):(e.flags=e.flags&-4097|2,et=!1,Kt=e)}}else{if(Ea(e))throw Error(i(418));e.flags=e.flags&-4097|2,et=!1,Kt=e}}}function tf(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function bs(e){if(e!==Kt)return!1;if(!et)return tf(e),et=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!ya(e.type,e.memoizedProps)),t&&(t=qt)){if(Ea(e))throw nf(),Error(i(418));for(;t;)Zd(e,t),t=ur(t.nextSibling)}if(tf(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(t===0){qt=ur(e.nextSibling);break e}t--}else o!=="$"&&o!=="$!"&&o!=="$?"||t++}e=e.nextSibling}qt=null}}else qt=Kt?ur(e.stateNode.nextSibling):null;return!0}function nf(){for(var e=qt;e;)e=ur(e.nextSibling)}function ao(){qt=Kt=null,et=!1}function Ra(e){pn===null?pn=[e]:pn.push(e)}var ay=T.ReactCurrentBatchConfig;function si(e,t,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(i(309));var s=o.stateNode}if(!s)throw Error(i(147,e));var u=s,d=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===d?t.ref:(t=function(g){var R=u.refs;g===null?delete R[d]:R[d]=g},t._stringRef=d,t)}if(typeof e!="string")throw Error(i(284));if(!o._owner)throw Error(i(290,e))}return e}function Es(e,t){throw e=Object.prototype.toString.call(t),Error(i(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function rf(e){var t=e._init;return t(e._payload)}function of(e){function t(F,A){if(e){var D=F.deletions;D===null?(F.deletions=[A],F.flags|=16):D.push(A)}}function o(F,A){if(!e)return null;for(;A!==null;)t(F,A),A=A.sibling;return null}function s(F,A){for(F=new Map;A!==null;)A.key!==null?F.set(A.key,A):F.set(A.index,A),A=A.sibling;return F}function u(F,A){return F=Sr(F,A),F.index=0,F.sibling=null,F}function d(F,A,D){return F.index=D,e?(D=F.alternate,D!==null?(D=D.index,D<A?(F.flags|=2,A):D):(F.flags|=2,A)):(F.flags|=1048576,A)}function g(F){return e&&F.alternate===null&&(F.flags|=2),F}function R(F,A,D,oe){return A===null||A.tag!==6?(A=vu(D,F.mode,oe),A.return=F,A):(A=u(A,D),A.return=F,A)}function N(F,A,D,oe){var me=D.type;return me===L?ee(F,A,D.props.children,oe,D.key):A!==null&&(A.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===X&&rf(me)===A.type)?(oe=u(A,D.props),oe.ref=si(F,A,D),oe.return=F,oe):(oe=Qs(D.type,D.key,D.props,null,F.mode,oe),oe.ref=si(F,A,D),oe.return=F,oe)}function W(F,A,D,oe){return A===null||A.tag!==4||A.stateNode.containerInfo!==D.containerInfo||A.stateNode.implementation!==D.implementation?(A=xu(D,F.mode,oe),A.return=F,A):(A=u(A,D.children||[]),A.return=F,A)}function ee(F,A,D,oe,me){return A===null||A.tag!==7?(A=Fr(D,F.mode,oe,me),A.return=F,A):(A=u(A,D),A.return=F,A)}function re(F,A,D){if(typeof A=="string"&&A!==""||typeof A=="number")return A=vu(""+A,F.mode,D),A.return=F,A;if(typeof A=="object"&&A!==null){switch(A.$$typeof){case I:return D=Qs(A.type,A.key,A.props,null,F.mode,D),D.ref=si(F,null,A),D.return=F,D;case z:return A=xu(A,F.mode,D),A.return=F,A;case X:var oe=A._init;return re(F,oe(A._payload),D)}if(ut(A)||q(A))return A=Fr(A,F.mode,D,null),A.return=F,A;Es(F,A)}return null}function Z(F,A,D,oe){var me=A!==null?A.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return me!==null?null:R(F,A,""+D,oe);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case I:return D.key===me?N(F,A,D,oe):null;case z:return D.key===me?W(F,A,D,oe):null;case X:return me=D._init,Z(F,A,me(D._payload),oe)}if(ut(D)||q(D))return me!==null?null:ee(F,A,D,oe,null);Es(F,D)}return null}function ue(F,A,D,oe,me){if(typeof oe=="string"&&oe!==""||typeof oe=="number")return F=F.get(D)||null,R(A,F,""+oe,me);if(typeof oe=="object"&&oe!==null){switch(oe.$$typeof){case I:return F=F.get(oe.key===null?D:oe.key)||null,N(A,F,oe,me);case z:return F=F.get(oe.key===null?D:oe.key)||null,W(A,F,oe,me);case X:var we=oe._init;return ue(F,A,D,we(oe._payload),me)}if(ut(oe)||q(oe))return F=F.get(D)||null,ee(A,F,oe,me,null);Es(A,oe)}return null}function fe(F,A,D,oe){for(var me=null,we=null,Ce=A,Pe=A=0,wt=null;Ce!==null&&Pe<D.length;Pe++){Ce.index>Pe?(wt=Ce,Ce=null):wt=Ce.sibling;var je=Z(F,Ce,D[Pe],oe);if(je===null){Ce===null&&(Ce=wt);break}e&&Ce&&je.alternate===null&&t(F,Ce),A=d(je,A,Pe),we===null?me=je:we.sibling=je,we=je,Ce=wt}if(Pe===D.length)return o(F,Ce),et&&_r(F,Pe),me;if(Ce===null){for(;Pe<D.length;Pe++)Ce=re(F,D[Pe],oe),Ce!==null&&(A=d(Ce,A,Pe),we===null?me=Ce:we.sibling=Ce,we=Ce);return et&&_r(F,Pe),me}for(Ce=s(F,Ce);Pe<D.length;Pe++)wt=ue(Ce,F,Pe,D[Pe],oe),wt!==null&&(e&&wt.alternate!==null&&Ce.delete(wt.key===null?Pe:wt.key),A=d(wt,A,Pe),we===null?me=wt:we.sibling=wt,we=wt);return e&&Ce.forEach(function(wr){return t(F,wr)}),et&&_r(F,Pe),me}function pe(F,A,D,oe){var me=q(D);if(typeof me!="function")throw Error(i(150));if(D=me.call(D),D==null)throw Error(i(151));for(var we=me=null,Ce=A,Pe=A=0,wt=null,je=D.next();Ce!==null&&!je.done;Pe++,je=D.next()){Ce.index>Pe?(wt=Ce,Ce=null):wt=Ce.sibling;var wr=Z(F,Ce,je.value,oe);if(wr===null){Ce===null&&(Ce=wt);break}e&&Ce&&wr.alternate===null&&t(F,Ce),A=d(wr,A,Pe),we===null?me=wr:we.sibling=wr,we=wr,Ce=wt}if(je.done)return o(F,Ce),et&&_r(F,Pe),me;if(Ce===null){for(;!je.done;Pe++,je=D.next())je=re(F,je.value,oe),je!==null&&(A=d(je,A,Pe),we===null?me=je:we.sibling=je,we=je);return et&&_r(F,Pe),me}for(Ce=s(F,Ce);!je.done;Pe++,je=D.next())je=ue(Ce,F,Pe,je.value,oe),je!==null&&(e&&je.alternate!==null&&Ce.delete(je.key===null?Pe:je.key),A=d(je,A,Pe),we===null?me=je:we.sibling=je,we=je);return e&&Ce.forEach(function(Dy){return t(F,Dy)}),et&&_r(F,Pe),me}function ft(F,A,D,oe){if(typeof D=="object"&&D!==null&&D.type===L&&D.key===null&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case I:e:{for(var me=D.key,we=A;we!==null;){if(we.key===me){if(me=D.type,me===L){if(we.tag===7){o(F,we.sibling),A=u(we,D.props.children),A.return=F,F=A;break e}}else if(we.elementType===me||typeof me=="object"&&me!==null&&me.$$typeof===X&&rf(me)===we.type){o(F,we.sibling),A=u(we,D.props),A.ref=si(F,we,D),A.return=F,F=A;break e}o(F,we);break}else t(F,we);we=we.sibling}D.type===L?(A=Fr(D.props.children,F.mode,oe,D.key),A.return=F,F=A):(oe=Qs(D.type,D.key,D.props,null,F.mode,oe),oe.ref=si(F,A,D),oe.return=F,F=oe)}return g(F);case z:e:{for(we=D.key;A!==null;){if(A.key===we)if(A.tag===4&&A.stateNode.containerInfo===D.containerInfo&&A.stateNode.implementation===D.implementation){o(F,A.sibling),A=u(A,D.children||[]),A.return=F,F=A;break e}else{o(F,A);break}else t(F,A);A=A.sibling}A=xu(D,F.mode,oe),A.return=F,F=A}return g(F);case X:return we=D._init,ft(F,A,we(D._payload),oe)}if(ut(D))return fe(F,A,D,oe);if(q(D))return pe(F,A,D,oe);Es(F,D)}return typeof D=="string"&&D!==""||typeof D=="number"?(D=""+D,A!==null&&A.tag===6?(o(F,A.sibling),A=u(A,D),A.return=F,F=A):(o(F,A),A=vu(D,F.mode,oe),A.return=F,F=A),g(F)):o(F,A)}return ft}var uo=of(!0),sf=of(!1),Ps=cr(null),Rs=null,co=null,Ta=null;function $a(){Ta=co=Rs=null}function Ia(e){var t=Ps.current;Ze(Ps),e._currentValue=t}function _a(e,t,o){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===o)break;e=e.return}}function fo(e,t){Rs=e,Ta=co=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Dt=!0),e.firstContext=null)}function en(e){var t=e._currentValue;if(Ta!==e)if(e={context:e,memoizedValue:t,next:null},co===null){if(Rs===null)throw Error(i(308));co=e,Rs.dependencies={lanes:0,firstContext:e}}else co=co.next=e;return t}var Mr=null;function Ma(e){Mr===null?Mr=[e]:Mr.push(e)}function lf(e,t,o,s){var u=t.interleaved;return u===null?(o.next=o,Ma(t)):(o.next=u.next,u.next=o),t.interleaved=o,Gn(e,s)}function Gn(e,t){e.lanes|=t;var o=e.alternate;for(o!==null&&(o.lanes|=t),o=e,e=e.return;e!==null;)e.childLanes|=t,o=e.alternate,o!==null&&(o.childLanes|=t),o=e,e=e.return;return o.tag===3?o.stateNode:null}var pr=!1;function Na(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function af(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Kn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function mr(e,t,o){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,Ne&2){var u=s.pending;return u===null?t.next=t:(t.next=u.next,u.next=t),s.pending=t,Gn(e,o)}return u=s.interleaved,u===null?(t.next=t,Ma(s)):(t.next=u.next,u.next=t),s.interleaved=t,Gn(e,o)}function Ts(e,t,o){if(t=t.updateQueue,t!==null&&(t=t.shared,(o&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,Kl(e,o)}}function uf(e,t){var o=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,o===s)){var u=null,d=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};d===null?u=d=g:d=d.next=g,o=o.next}while(o!==null);d===null?u=d=t:d=d.next=t}else u=d=t;o={baseState:s.baseState,firstBaseUpdate:u,lastBaseUpdate:d,shared:s.shared,effects:s.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=t:e.next=t,o.lastBaseUpdate=t}function $s(e,t,o,s){var u=e.updateQueue;pr=!1;var d=u.firstBaseUpdate,g=u.lastBaseUpdate,R=u.shared.pending;if(R!==null){u.shared.pending=null;var N=R,W=N.next;N.next=null,g===null?d=W:g.next=W,g=N;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,R=ee.lastBaseUpdate,R!==g&&(R===null?ee.firstBaseUpdate=W:R.next=W,ee.lastBaseUpdate=N))}if(d!==null){var re=u.baseState;g=0,ee=W=N=null,R=d;do{var Z=R.lane,ue=R.eventTime;if((s&Z)===Z){ee!==null&&(ee=ee.next={eventTime:ue,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var fe=e,pe=R;switch(Z=t,ue=o,pe.tag){case 1:if(fe=pe.payload,typeof fe=="function"){re=fe.call(ue,re,Z);break e}re=fe;break e;case 3:fe.flags=fe.flags&-65537|128;case 0:if(fe=pe.payload,Z=typeof fe=="function"?fe.call(ue,re,Z):fe,Z==null)break e;re=J({},re,Z);break e;case 2:pr=!0}}R.callback!==null&&R.lane!==0&&(e.flags|=64,Z=u.effects,Z===null?u.effects=[R]:Z.push(R))}else ue={eventTime:ue,lane:Z,tag:R.tag,payload:R.payload,callback:R.callback,next:null},ee===null?(W=ee=ue,N=re):ee=ee.next=ue,g|=Z;if(R=R.next,R===null){if(R=u.shared.pending,R===null)break;Z=R,R=Z.next,Z.next=null,u.lastBaseUpdate=Z,u.shared.pending=null}}while(!0);if(ee===null&&(N=re),u.baseState=N,u.firstBaseUpdate=W,u.lastBaseUpdate=ee,t=u.shared.interleaved,t!==null){u=t;do g|=u.lane,u=u.next;while(u!==t)}else d===null&&(u.shared.lanes=0);Ar|=g,e.lanes=g,e.memoizedState=re}}function cf(e,t,o){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],u=s.callback;if(u!==null){if(s.callback=null,s=o,typeof u!="function")throw Error(i(191,u));u.call(s)}}}var li={},Pn=cr(li),ai=cr(li),ui=cr(li);function Nr(e){if(e===li)throw Error(i(174));return e}function Oa(e,t){switch(Xe(ui,t),Xe(ai,e),Xe(Pn,li),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Dn(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Dn(t,e)}Ze(Pn),Xe(Pn,t)}function po(){Ze(Pn),Ze(ai),Ze(ui)}function df(e){Nr(ui.current);var t=Nr(Pn.current),o=Dn(t,e.type);t!==o&&(Xe(ai,e),Xe(Pn,o))}function Aa(e){ai.current===e&&(Ze(Pn),Ze(ai))}var rt=cr(0);function Is(e){for(var t=e;t!==null;){if(t.tag===13){var o=t.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){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 ja=[];function za(){for(var e=0;e<ja.length;e++)ja[e]._workInProgressVersionPrimary=null;ja.length=0}var _s=T.ReactCurrentDispatcher,La=T.ReactCurrentBatchConfig,Or=0,ot=null,yt=null,xt=null,Ms=!1,ci=!1,di=0,uy=0;function $t(){throw Error(i(321))}function Fa(e,t){if(t===null)return!1;for(var o=0;o<t.length&&o<e.length;o++)if(!fn(e[o],t[o]))return!1;return!0}function Da(e,t,o,s,u,d){if(Or=d,ot=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,_s.current=e===null||e.memoizedState===null?py:my,e=o(s,u),ci){d=0;do{if(ci=!1,di=0,25<=d)throw Error(i(301));d+=1,xt=yt=null,t.updateQueue=null,_s.current=hy,e=o(s,u)}while(ci)}if(_s.current=As,t=yt!==null&&yt.next!==null,Or=0,xt=yt=ot=null,Ms=!1,t)throw Error(i(300));return e}function Ba(){var e=di!==0;return di=0,e}function Rn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xt===null?ot.memoizedState=xt=e:xt=xt.next=e,xt}function tn(){if(yt===null){var e=ot.alternate;e=e!==null?e.memoizedState:null}else e=yt.next;var t=xt===null?ot.memoizedState:xt.next;if(t!==null)xt=t,yt=e;else{if(e===null)throw Error(i(310));yt=e,e={memoizedState:yt.memoizedState,baseState:yt.baseState,baseQueue:yt.baseQueue,queue:yt.queue,next:null},xt===null?ot.memoizedState=xt=e:xt=xt.next=e}return xt}function fi(e,t){return typeof t=="function"?t(e):t}function Wa(e){var t=tn(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=yt,u=s.baseQueue,d=o.pending;if(d!==null){if(u!==null){var g=u.next;u.next=d.next,d.next=g}s.baseQueue=u=d,o.pending=null}if(u!==null){d=u.next,s=s.baseState;var R=g=null,N=null,W=d;do{var ee=W.lane;if((Or&ee)===ee)N!==null&&(N=N.next={lane:0,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null}),s=W.hasEagerState?W.eagerState:e(s,W.action);else{var re={lane:ee,action:W.action,hasEagerState:W.hasEagerState,eagerState:W.eagerState,next:null};N===null?(R=N=re,g=s):N=N.next=re,ot.lanes|=ee,Ar|=ee}W=W.next}while(W!==null&&W!==d);N===null?g=s:N.next=R,fn(s,t.memoizedState)||(Dt=!0),t.memoizedState=s,t.baseState=g,t.baseQueue=N,o.lastRenderedState=s}if(e=o.interleaved,e!==null){u=e;do d=u.lane,ot.lanes|=d,Ar|=d,u=u.next;while(u!==e)}else u===null&&(o.lanes=0);return[t.memoizedState,o.dispatch]}function Ua(e){var t=tn(),o=t.queue;if(o===null)throw Error(i(311));o.lastRenderedReducer=e;var s=o.dispatch,u=o.pending,d=t.memoizedState;if(u!==null){o.pending=null;var g=u=u.next;do d=e(d,g.action),g=g.next;while(g!==u);fn(d,t.memoizedState)||(Dt=!0),t.memoizedState=d,t.baseQueue===null&&(t.baseState=d),o.lastRenderedState=d}return[d,s]}function ff(){}function pf(e,t){var o=ot,s=tn(),u=t(),d=!fn(s.memoizedState,u);if(d&&(s.memoizedState=u,Dt=!0),s=s.queue,Ha(gf.bind(null,o,s,e),[e]),s.getSnapshot!==t||d||xt!==null&&xt.memoizedState.tag&1){if(o.flags|=2048,pi(9,hf.bind(null,o,s,u,t),void 0,null),St===null)throw Error(i(349));Or&30||mf(o,t,u)}return u}function mf(e,t,o){e.flags|=16384,e={getSnapshot:t,value:o},t=ot.updateQueue,t===null?(t={lastEffect:null,stores:null},ot.updateQueue=t,t.stores=[e]):(o=t.stores,o===null?t.stores=[e]:o.push(e))}function hf(e,t,o,s){t.value=o,t.getSnapshot=s,yf(t)&&vf(e)}function gf(e,t,o){return o(function(){yf(t)&&vf(e)})}function yf(e){var t=e.getSnapshot;e=e.value;try{var o=t();return!fn(e,o)}catch{return!0}}function vf(e){var t=Gn(e,1);t!==null&&yn(t,e,1,-1)}function xf(e){var t=Rn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:e},t.queue=e,e=e.dispatch=fy.bind(null,ot,e),[t.memoizedState,e]}function pi(e,t,o,s){return e={tag:e,create:t,destroy:o,deps:s,next:null},t=ot.updateQueue,t===null?(t={lastEffect:null,stores:null},ot.updateQueue=t,t.lastEffect=e.next=e):(o=t.lastEffect,o===null?t.lastEffect=e.next=e:(s=o.next,o.next=e,e.next=s,t.lastEffect=e)),e}function Sf(){return tn().memoizedState}function Ns(e,t,o,s){var u=Rn();ot.flags|=e,u.memoizedState=pi(1|t,o,void 0,s===void 0?null:s)}function Os(e,t,o,s){var u=tn();s=s===void 0?null:s;var d=void 0;if(yt!==null){var g=yt.memoizedState;if(d=g.destroy,s!==null&&Fa(s,g.deps)){u.memoizedState=pi(t,o,d,s);return}}ot.flags|=e,u.memoizedState=pi(1|t,o,d,s)}function wf(e,t){return Ns(8390656,8,e,t)}function Ha(e,t){return Os(2048,8,e,t)}function Cf(e,t){return Os(4,2,e,t)}function kf(e,t){return Os(4,4,e,t)}function bf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Ef(e,t,o){return o=o!=null?o.concat([e]):null,Os(4,4,bf.bind(null,t,e),o)}function Va(){}function Pf(e,t){var o=tn();t=t===void 0?null:t;var s=o.memoizedState;return s!==null&&t!==null&&Fa(t,s[1])?s[0]:(o.memoizedState=[e,t],e)}function Rf(e,t){var o=tn();t=t===void 0?null:t;var s=o.memoizedState;return s!==null&&t!==null&&Fa(t,s[1])?s[0]:(e=e(),o.memoizedState=[e,t],e)}function Tf(e,t,o){return Or&21?(fn(o,t)||(o=rd(),ot.lanes|=o,Ar|=o,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Dt=!0),e.memoizedState=o)}function cy(e,t){var o=He;He=o!==0&&4>o?o:4,e(!0);var s=La.transition;La.transition={};try{e(!1),t()}finally{He=o,La.transition=s}}function $f(){return tn().memoizedState}function dy(e,t,o){var s=vr(e);if(o={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null},If(e))_f(t,o);else if(o=lf(e,t,o,s),o!==null){var u=jt();yn(o,e,s,u),Mf(o,t,s)}}function fy(e,t,o){var s=vr(e),u={lane:s,action:o,hasEagerState:!1,eagerState:null,next:null};if(If(e))_f(t,u);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=t.lastRenderedReducer,d!==null))try{var g=t.lastRenderedState,R=d(g,o);if(u.hasEagerState=!0,u.eagerState=R,fn(R,g)){var N=t.interleaved;N===null?(u.next=u,Ma(t)):(u.next=N.next,N.next=u),t.interleaved=u;return}}catch{}finally{}o=lf(e,t,u,s),o!==null&&(u=jt(),yn(o,e,s,u),Mf(o,t,s))}}function If(e){var t=e.alternate;return e===ot||t!==null&&t===ot}function _f(e,t){ci=Ms=!0;var o=e.pending;o===null?t.next=t:(t.next=o.next,o.next=t),e.pending=t}function Mf(e,t,o){if(o&4194240){var s=t.lanes;s&=e.pendingLanes,o|=s,t.lanes=o,Kl(e,o)}}var As={readContext:en,useCallback:$t,useContext:$t,useEffect:$t,useImperativeHandle:$t,useInsertionEffect:$t,useLayoutEffect:$t,useMemo:$t,useReducer:$t,useRef:$t,useState:$t,useDebugValue:$t,useDeferredValue:$t,useTransition:$t,useMutableSource:$t,useSyncExternalStore:$t,useId:$t,unstable_isNewReconciler:!1},py={readContext:en,useCallback:function(e,t){return Rn().memoizedState=[e,t===void 0?null:t],e},useContext:en,useEffect:wf,useImperativeHandle:function(e,t,o){return o=o!=null?o.concat([e]):null,Ns(4194308,4,bf.bind(null,t,e),o)},useLayoutEffect:function(e,t){return Ns(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ns(4,2,e,t)},useMemo:function(e,t){var o=Rn();return t=t===void 0?null:t,e=e(),o.memoizedState=[e,t],e},useReducer:function(e,t,o){var s=Rn();return t=o!==void 0?o(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=dy.bind(null,ot,e),[s.memoizedState,e]},useRef:function(e){var t=Rn();return e={current:e},t.memoizedState=e},useState:xf,useDebugValue:Va,useDeferredValue:function(e){return Rn().memoizedState=e},useTransition:function(){var e=xf(!1),t=e[0];return e=cy.bind(null,e[1]),Rn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,o){var s=ot,u=Rn();if(et){if(o===void 0)throw Error(i(407));o=o()}else{if(o=t(),St===null)throw Error(i(349));Or&30||mf(s,t,o)}u.memoizedState=o;var d={value:o,getSnapshot:t};return u.queue=d,wf(gf.bind(null,s,d,e),[e]),s.flags|=2048,pi(9,hf.bind(null,s,d,o,t),void 0,null),o},useId:function(){var e=Rn(),t=St.identifierPrefix;if(et){var o=Vn,s=Hn;o=(s&~(1<<32-dn(s)-1)).toString(32)+o,t=":"+t+"R"+o,o=di++,0<o&&(t+="H"+o.toString(32)),t+=":"}else o=uy++,t=":"+t+"r"+o.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},my={readContext:en,useCallback:Pf,useContext:en,useEffect:Ha,useImperativeHandle:Ef,useInsertionEffect:Cf,useLayoutEffect:kf,useMemo:Rf,useReducer:Wa,useRef:Sf,useState:function(){return Wa(fi)},useDebugValue:Va,useDeferredValue:function(e){var t=tn();return Tf(t,yt.memoizedState,e)},useTransition:function(){var e=Wa(fi)[0],t=tn().memoizedState;return[e,t]},useMutableSource:ff,useSyncExternalStore:pf,useId:$f,unstable_isNewReconciler:!1},hy={readContext:en,useCallback:Pf,useContext:en,useEffect:Ha,useImperativeHandle:Ef,useInsertionEffect:Cf,useLayoutEffect:kf,useMemo:Rf,useReducer:Ua,useRef:Sf,useState:function(){return Ua(fi)},useDebugValue:Va,useDeferredValue:function(e){var t=tn();return yt===null?t.memoizedState=e:Tf(t,yt.memoizedState,e)},useTransition:function(){var e=Ua(fi)[0],t=tn().memoizedState;return[e,t]},useMutableSource:ff,useSyncExternalStore:pf,useId:$f,unstable_isNewReconciler:!1};function mn(e,t){if(e&&e.defaultProps){t=J({},t),e=e.defaultProps;for(var o in e)t[o]===void 0&&(t[o]=e[o]);return t}return t}function Ga(e,t,o,s){t=e.memoizedState,o=o(s,t),o=o==null?t:J({},t,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var js={isMounted:function(e){return(e=e._reactInternals)?Rr(e)===e:!1},enqueueSetState:function(e,t,o){e=e._reactInternals;var s=jt(),u=vr(e),d=Kn(s,u);d.payload=t,o!=null&&(d.callback=o),t=mr(e,d,u),t!==null&&(yn(t,e,u,s),Ts(t,e,u))},enqueueReplaceState:function(e,t,o){e=e._reactInternals;var s=jt(),u=vr(e),d=Kn(s,u);d.tag=1,d.payload=t,o!=null&&(d.callback=o),t=mr(e,d,u),t!==null&&(yn(t,e,u,s),Ts(t,e,u))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var o=jt(),s=vr(e),u=Kn(o,s);u.tag=2,t!=null&&(u.callback=t),t=mr(e,u,s),t!==null&&(yn(t,e,s,o),Ts(t,e,s))}};function Nf(e,t,o,s,u,d,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,d,g):t.prototype&&t.prototype.isPureReactComponent?!Zo(o,s)||!Zo(u,d):!0}function Of(e,t,o){var s=!1,u=dr,d=t.contextType;return typeof d=="object"&&d!==null?d=en(d):(u=Ft(t)?$r:Tt.current,s=t.contextTypes,d=(s=s!=null)?io(e,u):dr),t=new t(o,d),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=js,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=u,e.__reactInternalMemoizedMaskedChildContext=d),t}function Af(e,t,o,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(o,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(o,s),t.state!==e&&js.enqueueReplaceState(t,t.state,null)}function Ka(e,t,o,s){var u=e.stateNode;u.props=o,u.state=e.memoizedState,u.refs={},Na(e);var d=t.contextType;typeof d=="object"&&d!==null?u.context=en(d):(d=Ft(t)?$r:Tt.current,u.context=io(e,d)),u.state=e.memoizedState,d=t.getDerivedStateFromProps,typeof d=="function"&&(Ga(e,t,d,o),u.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof u.getSnapshotBeforeUpdate=="function"||typeof u.UNSAFE_componentWillMount!="function"&&typeof u.componentWillMount!="function"||(t=u.state,typeof u.componentWillMount=="function"&&u.componentWillMount(),typeof u.UNSAFE_componentWillMount=="function"&&u.UNSAFE_componentWillMount(),t!==u.state&&js.enqueueReplaceState(u,u.state,null),$s(e,o,u,s),u.state=e.memoizedState),typeof u.componentDidMount=="function"&&(e.flags|=4194308)}function mo(e,t){try{var o="",s=t;do o+=de(s),s=s.return;while(s);var u=o}catch(d){u=`
39
- Error generating stack: `+d.message+`
40
- `+d.stack}return{value:e,source:t,stack:u,digest:null}}function qa(e,t,o){return{value:e,source:null,stack:o??null,digest:t??null}}function Qa(e,t){try{console.error(t.value)}catch(o){setTimeout(function(){throw o})}}var gy=typeof WeakMap=="function"?WeakMap:Map;function jf(e,t,o){o=Kn(-1,o),o.tag=3,o.payload={element:null};var s=t.value;return o.callback=function(){Us||(Us=!0,cu=s),Qa(e,t)},o}function zf(e,t,o){o=Kn(-1,o),o.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var u=t.value;o.payload=function(){return s(u)},o.callback=function(){Qa(e,t)}}var d=e.stateNode;return d!==null&&typeof d.componentDidCatch=="function"&&(o.callback=function(){Qa(e,t),typeof s!="function"&&(gr===null?gr=new Set([this]):gr.add(this));var g=t.stack;this.componentDidCatch(t.value,{componentStack:g!==null?g:""})}),o}function Lf(e,t,o){var s=e.pingCache;if(s===null){s=e.pingCache=new gy;var u=new Set;s.set(t,u)}else u=s.get(t),u===void 0&&(u=new Set,s.set(t,u));u.has(o)||(u.add(o),e=Iy.bind(null,e,t,o),t.then(e,e))}function Ff(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Df(e,t,o,s,u){return e.mode&1?(e.flags|=65536,e.lanes=u,e):(e===t?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(t=Kn(-1,1),t.tag=2,mr(o,t,1))),o.lanes|=1),e)}var yy=T.ReactCurrentOwner,Dt=!1;function At(e,t,o,s){t.child=e===null?sf(t,null,o,s):uo(t,e.child,o,s)}function Bf(e,t,o,s,u){o=o.render;var d=t.ref;return fo(t,u),s=Da(e,t,o,s,d,u),o=Ba(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,qn(e,t,u)):(et&&o&&ka(t),t.flags|=1,At(e,t,s,u),t.child)}function Wf(e,t,o,s,u){if(e===null){var d=o.type;return typeof d=="function"&&!yu(d)&&d.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(t.tag=15,t.type=d,Uf(e,t,d,s,u)):(e=Qs(o.type,null,s,t,t.mode,u),e.ref=t.ref,e.return=t,t.child=e)}if(d=e.child,!(e.lanes&u)){var g=d.memoizedProps;if(o=o.compare,o=o!==null?o:Zo,o(g,s)&&e.ref===t.ref)return qn(e,t,u)}return t.flags|=1,e=Sr(d,s),e.ref=t.ref,e.return=t,t.child=e}function Uf(e,t,o,s,u){if(e!==null){var d=e.memoizedProps;if(Zo(d,s)&&e.ref===t.ref)if(Dt=!1,t.pendingProps=s=d,(e.lanes&u)!==0)e.flags&131072&&(Dt=!0);else return t.lanes=e.lanes,qn(e,t,u)}return Ya(e,t,o,s,u)}function Hf(e,t,o){var s=t.pendingProps,u=s.children,d=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Xe(go,Qt),Qt|=o;else{if(!(o&1073741824))return e=d!==null?d.baseLanes|o:o,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Xe(go,Qt),Qt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=d!==null?d.baseLanes:o,Xe(go,Qt),Qt|=s}else d!==null?(s=d.baseLanes|o,t.memoizedState=null):s=o,Xe(go,Qt),Qt|=s;return At(e,t,u,o),t.child}function Vf(e,t){var o=t.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(t.flags|=512,t.flags|=2097152)}function Ya(e,t,o,s,u){var d=Ft(o)?$r:Tt.current;return d=io(t,d),fo(t,u),o=Da(e,t,o,s,d,u),s=Ba(),e!==null&&!Dt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~u,qn(e,t,u)):(et&&s&&ka(t),t.flags|=1,At(e,t,o,u),t.child)}function Gf(e,t,o,s,u){if(Ft(o)){var d=!0;Ss(t)}else d=!1;if(fo(t,u),t.stateNode===null)Ls(e,t),Of(t,o,s),Ka(t,o,s,u),s=!0;else if(e===null){var g=t.stateNode,R=t.memoizedProps;g.props=R;var N=g.context,W=o.contextType;typeof W=="object"&&W!==null?W=en(W):(W=Ft(o)?$r:Tt.current,W=io(t,W));var ee=o.getDerivedStateFromProps,re=typeof ee=="function"||typeof g.getSnapshotBeforeUpdate=="function";re||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R!==s||N!==W)&&Af(t,g,s,W),pr=!1;var Z=t.memoizedState;g.state=Z,$s(t,s,g,u),N=t.memoizedState,R!==s||Z!==N||Lt.current||pr?(typeof ee=="function"&&(Ga(t,o,ee,s),N=t.memoizedState),(R=pr||Nf(t,o,R,s,Z,N,W))?(re||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(t.flags|=4194308)):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=N),g.props=s,g.state=N,g.context=W,s=R):(typeof g.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{g=t.stateNode,af(e,t),R=t.memoizedProps,W=t.type===t.elementType?R:mn(t.type,R),g.props=W,re=t.pendingProps,Z=g.context,N=o.contextType,typeof N=="object"&&N!==null?N=en(N):(N=Ft(o)?$r:Tt.current,N=io(t,N));var ue=o.getDerivedStateFromProps;(ee=typeof ue=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R!==re||Z!==N)&&Af(t,g,s,N),pr=!1,Z=t.memoizedState,g.state=Z,$s(t,s,g,u);var fe=t.memoizedState;R!==re||Z!==fe||Lt.current||pr?(typeof ue=="function"&&(Ga(t,o,ue,s),fe=t.memoizedState),(W=pr||Nf(t,o,W,s,Z,fe,N)||!1)?(ee||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(s,fe,N),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(s,fe,N)),typeof g.componentDidUpdate=="function"&&(t.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof g.componentDidUpdate!="function"||R===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=fe),g.props=s,g.state=fe,g.context=N,s=W):(typeof g.componentDidUpdate!="function"||R===e.memoizedProps&&Z===e.memoizedState||(t.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&Z===e.memoizedState||(t.flags|=1024),s=!1)}return Xa(e,t,o,s,d,u)}function Xa(e,t,o,s,u,d){Vf(e,t);var g=(t.flags&128)!==0;if(!s&&!g)return u&&Yd(t,o,!1),qn(e,t,d);s=t.stateNode,yy.current=t;var R=g&&typeof o.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&g?(t.child=uo(t,e.child,null,d),t.child=uo(t,null,R,d)):At(e,t,R,d),t.memoizedState=s.state,u&&Yd(t,o,!0),t.child}function Kf(e){var t=e.stateNode;t.pendingContext?qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&qd(e,t.context,!1),Oa(e,t.containerInfo)}function qf(e,t,o,s,u){return ao(),Ra(u),t.flags|=256,At(e,t,o,s),t.child}var Ja={dehydrated:null,treeContext:null,retryLane:0};function Za(e){return{baseLanes:e,cachePool:null,transitions:null}}function Qf(e,t,o){var s=t.pendingProps,u=rt.current,d=!1,g=(t.flags&128)!==0,R;if((R=g)||(R=e!==null&&e.memoizedState===null?!1:(u&2)!==0),R?(d=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(u|=1),Xe(rt,u&1),e===null)return Pa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(g=s.children,e=s.fallback,d?(s=t.mode,d=t.child,g={mode:"hidden",children:g},!(s&1)&&d!==null?(d.childLanes=0,d.pendingProps=g):d=Ys(g,s,0,null),e=Fr(e,s,o,null),d.return=t,e.return=t,d.sibling=e,t.child=d,t.child.memoizedState=Za(o),t.memoizedState=Ja,e):eu(t,g));if(u=e.memoizedState,u!==null&&(R=u.dehydrated,R!==null))return vy(e,t,g,s,R,u,o);if(d){d=s.fallback,g=t.mode,u=e.child,R=u.sibling;var N={mode:"hidden",children:s.children};return!(g&1)&&t.child!==u?(s=t.child,s.childLanes=0,s.pendingProps=N,t.deletions=null):(s=Sr(u,N),s.subtreeFlags=u.subtreeFlags&14680064),R!==null?d=Sr(R,d):(d=Fr(d,g,o,null),d.flags|=2),d.return=t,s.return=t,s.sibling=d,t.child=s,s=d,d=t.child,g=e.child.memoizedState,g=g===null?Za(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},d.memoizedState=g,d.childLanes=e.childLanes&~o,t.memoizedState=Ja,s}return d=e.child,e=d.sibling,s=Sr(d,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=o),s.return=t,s.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=s,t.memoizedState=null,s}function eu(e,t){return t=Ys({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function zs(e,t,o,s){return s!==null&&Ra(s),uo(t,e.child,null,o),e=eu(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vy(e,t,o,s,u,d,g){if(o)return t.flags&256?(t.flags&=-257,s=qa(Error(i(422))),zs(e,t,g,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(d=s.fallback,u=t.mode,s=Ys({mode:"visible",children:s.children},u,0,null),d=Fr(d,u,g,null),d.flags|=2,s.return=t,d.return=t,s.sibling=d,t.child=s,t.mode&1&&uo(t,e.child,null,g),t.child.memoizedState=Za(g),t.memoizedState=Ja,d);if(!(t.mode&1))return zs(e,t,g,null);if(u.data==="$!"){if(s=u.nextSibling&&u.nextSibling.dataset,s)var R=s.dgst;return s=R,d=Error(i(419)),s=qa(d,s,void 0),zs(e,t,g,s)}if(R=(g&e.childLanes)!==0,Dt||R){if(s=St,s!==null){switch(g&-g){case 4:u=2;break;case 16:u=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:u=32;break;case 536870912:u=268435456;break;default:u=0}u=u&(s.suspendedLanes|g)?0:u,u!==0&&u!==d.retryLane&&(d.retryLane=u,Gn(e,u),yn(s,e,u,-1))}return gu(),s=qa(Error(i(421))),zs(e,t,g,s)}return u.data==="$?"?(t.flags|=128,t.child=e.child,t=_y.bind(null,e),u._reactRetry=t,null):(e=d.treeContext,qt=ur(u.nextSibling),Kt=t,et=!0,pn=null,e!==null&&(Jt[Zt++]=Hn,Jt[Zt++]=Vn,Jt[Zt++]=Ir,Hn=e.id,Vn=e.overflow,Ir=t),t=eu(t,s.children),t.flags|=4096,t)}function Yf(e,t,o){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),_a(e.return,t,o)}function tu(e,t,o,s,u){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:o,tailMode:u}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=s,d.tail=o,d.tailMode=u)}function Xf(e,t,o){var s=t.pendingProps,u=s.revealOrder,d=s.tail;if(At(e,t,s.children,o),s=rt.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Yf(e,o,t);else if(e.tag===19)Yf(e,o,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Xe(rt,s),!(t.mode&1))t.memoizedState=null;else switch(u){case"forwards":for(o=t.child,u=null;o!==null;)e=o.alternate,e!==null&&Is(e)===null&&(u=o),o=o.sibling;o=u,o===null?(u=t.child,t.child=null):(u=o.sibling,o.sibling=null),tu(t,!1,u,o,d);break;case"backwards":for(o=null,u=t.child,t.child=null;u!==null;){if(e=u.alternate,e!==null&&Is(e)===null){t.child=u;break}e=u.sibling,u.sibling=o,o=u,u=e}tu(t,!0,o,null,d);break;case"together":tu(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Ls(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function qn(e,t,o){if(e!==null&&(t.dependencies=e.dependencies),Ar|=t.lanes,!(o&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,o=Sr(e,e.pendingProps),t.child=o,o.return=t;e.sibling!==null;)e=e.sibling,o=o.sibling=Sr(e,e.pendingProps),o.return=t;o.sibling=null}return t.child}function xy(e,t,o){switch(t.tag){case 3:Kf(t),ao();break;case 5:df(t);break;case 1:Ft(t.type)&&Ss(t);break;case 4:Oa(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,u=t.memoizedProps.value;Xe(Ps,s._currentValue),s._currentValue=u;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Xe(rt,rt.current&1),t.flags|=128,null):o&t.child.childLanes?Qf(e,t,o):(Xe(rt,rt.current&1),e=qn(e,t,o),e!==null?e.sibling:null);Xe(rt,rt.current&1);break;case 19:if(s=(o&t.childLanes)!==0,e.flags&128){if(s)return Xf(e,t,o);t.flags|=128}if(u=t.memoizedState,u!==null&&(u.rendering=null,u.tail=null,u.lastEffect=null),Xe(rt,rt.current),s)break;return null;case 22:case 23:return t.lanes=0,Hf(e,t,o)}return qn(e,t,o)}var Jf,nu,Zf,ep;Jf=function(e,t){for(var o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break;for(;o.sibling===null;){if(o.return===null||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},nu=function(){},Zf=function(e,t,o,s){var u=e.memoizedProps;if(u!==s){e=t.stateNode,Nr(Pn.current);var d=null;switch(o){case"input":u=Re(e,u),s=Re(e,s),d=[];break;case"select":u=J({},u,{value:void 0}),s=J({},s,{value:void 0}),d=[];break;case"textarea":u=xe(e,u),s=xe(e,s),d=[];break;default:typeof u.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=ys)}Ue(o,s);var g;o=null;for(W in u)if(!s.hasOwnProperty(W)&&u.hasOwnProperty(W)&&u[W]!=null)if(W==="style"){var R=u[W];for(g in R)R.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else W!=="dangerouslySetInnerHTML"&&W!=="children"&&W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&W!=="autoFocus"&&(a.hasOwnProperty(W)?d||(d=[]):(d=d||[]).push(W,null));for(W in s){var N=s[W];if(R=u!=null?u[W]:void 0,s.hasOwnProperty(W)&&N!==R&&(N!=null||R!=null))if(W==="style")if(R){for(g in R)!R.hasOwnProperty(g)||N&&N.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in N)N.hasOwnProperty(g)&&R[g]!==N[g]&&(o||(o={}),o[g]=N[g])}else o||(d||(d=[]),d.push(W,o)),o=N;else W==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,R=R?R.__html:void 0,N!=null&&R!==N&&(d=d||[]).push(W,N)):W==="children"?typeof N!="string"&&typeof N!="number"||(d=d||[]).push(W,""+N):W!=="suppressContentEditableWarning"&&W!=="suppressHydrationWarning"&&(a.hasOwnProperty(W)?(N!=null&&W==="onScroll"&&Je("scroll",e),d||R===N||(d=[])):(d=d||[]).push(W,N))}o&&(d=d||[]).push("style",o);var W=d;(t.updateQueue=W)&&(t.flags|=4)}},ep=function(e,t,o,s){o!==s&&(t.flags|=4)};function mi(e,t){if(!et)switch(e.tailMode){case"hidden":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var s=null;o!==null;)o.alternate!==null&&(s=o),o=o.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function It(e){var t=e.alternate!==null&&e.alternate.child===e.child,o=0,s=0;if(t)for(var u=e.child;u!==null;)o|=u.lanes|u.childLanes,s|=u.subtreeFlags&14680064,s|=u.flags&14680064,u.return=e,u=u.sibling;else for(u=e.child;u!==null;)o|=u.lanes|u.childLanes,s|=u.subtreeFlags,s|=u.flags,u.return=e,u=u.sibling;return e.subtreeFlags|=s,e.childLanes=o,t}function Sy(e,t,o){var s=t.pendingProps;switch(ba(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return It(t),null;case 1:return Ft(t.type)&&xs(),It(t),null;case 3:return s=t.stateNode,po(),Ze(Lt),Ze(Tt),za(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(bs(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,pn!==null&&(pu(pn),pn=null))),nu(e,t),It(t),null;case 5:Aa(t);var u=Nr(ui.current);if(o=t.type,e!==null&&t.stateNode!=null)Zf(e,t,o,s,u),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(i(166));return It(t),null}if(e=Nr(Pn.current),bs(t)){s=t.stateNode,o=t.type;var d=t.memoizedProps;switch(s[En]=t,s[oi]=d,e=(t.mode&1)!==0,o){case"dialog":Je("cancel",s),Je("close",s);break;case"iframe":case"object":case"embed":Je("load",s);break;case"video":case"audio":for(u=0;u<ti.length;u++)Je(ti[u],s);break;case"source":Je("error",s);break;case"img":case"image":case"link":Je("error",s),Je("load",s);break;case"details":Je("toggle",s);break;case"input":Ke(s,d),Je("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!d.multiple},Je("invalid",s);break;case"textarea":Ln(s,d),Je("invalid",s)}Ue(o,d),u=null;for(var g in d)if(d.hasOwnProperty(g)){var R=d[g];g==="children"?typeof R=="string"?s.textContent!==R&&(d.suppressHydrationWarning!==!0&&gs(s.textContent,R,e),u=["children",R]):typeof R=="number"&&s.textContent!==""+R&&(d.suppressHydrationWarning!==!0&&gs(s.textContent,R,e),u=["children",""+R]):a.hasOwnProperty(g)&&R!=null&&g==="onScroll"&&Je("scroll",s)}switch(o){case"input":_e(s),at(s,d,!0);break;case"textarea":_e(s),Fn(s);break;case"select":case"option":break;default:typeof d.onClick=="function"&&(s.onclick=ys)}s=u,t.updateQueue=s,s!==null&&(t.flags|=4)}else{g=u.nodeType===9?u:u.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=er(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=g.createElement(o,{is:s.is}):(e=g.createElement(o),o==="select"&&(g=e,s.multiple?g.multiple=!0:s.size&&(g.size=s.size))):e=g.createElementNS(e,o),e[En]=t,e[oi]=s,Jf(e,t,!1,!1),t.stateNode=e;e:{switch(g=ct(o,s),o){case"dialog":Je("cancel",e),Je("close",e),u=s;break;case"iframe":case"object":case"embed":Je("load",e),u=s;break;case"video":case"audio":for(u=0;u<ti.length;u++)Je(ti[u],e);u=s;break;case"source":Je("error",e),u=s;break;case"img":case"image":case"link":Je("error",e),Je("load",e),u=s;break;case"details":Je("toggle",e),u=s;break;case"input":Ke(e,s),u=Re(e,s),Je("invalid",e);break;case"option":u=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},u=J({},s,{value:void 0}),Je("invalid",e);break;case"textarea":Ln(e,s),u=xe(e,s),Je("invalid",e);break;default:u=s}Ue(o,u),R=u;for(d in R)if(R.hasOwnProperty(d)){var N=R[d];d==="style"?zo(e,N):d==="dangerouslySetInnerHTML"?(N=N?N.__html:void 0,N!=null&&Bn(e,N)):d==="children"?typeof N=="string"?(o!=="textarea"||N!=="")&&Vt(e,N):typeof N=="number"&&Vt(e,""+N):d!=="suppressContentEditableWarning"&&d!=="suppressHydrationWarning"&&d!=="autoFocus"&&(a.hasOwnProperty(d)?N!=null&&d==="onScroll"&&Je("scroll",e):N!=null&&E(e,d,N,g))}switch(o){case"input":_e(e),at(e,s,!1);break;case"textarea":_e(e),Fn(e);break;case"option":s.value!=null&&e.setAttribute("value",""+ge(s.value));break;case"select":e.multiple=!!s.multiple,d=s.value,d!=null?Ye(e,!!s.multiple,d,!1):s.defaultValue!=null&&Ye(e,!!s.multiple,s.defaultValue,!0);break;default:typeof u.onClick=="function"&&(e.onclick=ys)}switch(o){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break e;case"img":s=!0;break e;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return It(t),null;case 6:if(e&&t.stateNode!=null)ep(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(i(166));if(o=Nr(ui.current),Nr(Pn.current),bs(t)){if(s=t.stateNode,o=t.memoizedProps,s[En]=t,(d=s.nodeValue!==o)&&(e=Kt,e!==null))switch(e.tag){case 3:gs(s.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&gs(s.nodeValue,o,(e.mode&1)!==0)}d&&(t.flags|=4)}else s=(o.nodeType===9?o:o.ownerDocument).createTextNode(s),s[En]=t,t.stateNode=s}return It(t),null;case 13:if(Ze(rt),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(et&&qt!==null&&t.mode&1&&!(t.flags&128))nf(),ao(),t.flags|=98560,d=!1;else if(d=bs(t),s!==null&&s.dehydrated!==null){if(e===null){if(!d)throw Error(i(318));if(d=t.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(i(317));d[En]=t}else ao(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;It(t),d=!1}else pn!==null&&(pu(pn),pn=null),d=!0;if(!d)return t.flags&65536?t:null}return t.flags&128?(t.lanes=o,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||rt.current&1?vt===0&&(vt=3):gu())),t.updateQueue!==null&&(t.flags|=4),It(t),null);case 4:return po(),nu(e,t),e===null&&ni(t.stateNode.containerInfo),It(t),null;case 10:return Ia(t.type._context),It(t),null;case 17:return Ft(t.type)&&xs(),It(t),null;case 19:if(Ze(rt),d=t.memoizedState,d===null)return It(t),null;if(s=(t.flags&128)!==0,g=d.rendering,g===null)if(s)mi(d,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(g=Is(e),g!==null){for(t.flags|=128,mi(d,!1),s=g.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=o,o=t.child;o!==null;)d=o,e=s,d.flags&=14680066,g=d.alternate,g===null?(d.childLanes=0,d.lanes=e,d.child=null,d.subtreeFlags=0,d.memoizedProps=null,d.memoizedState=null,d.updateQueue=null,d.dependencies=null,d.stateNode=null):(d.childLanes=g.childLanes,d.lanes=g.lanes,d.child=g.child,d.subtreeFlags=0,d.deletions=null,d.memoizedProps=g.memoizedProps,d.memoizedState=g.memoizedState,d.updateQueue=g.updateQueue,d.type=g.type,e=g.dependencies,d.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return Xe(rt,rt.current&1|2),t.child}e=e.sibling}d.tail!==null&&dt()>yo&&(t.flags|=128,s=!0,mi(d,!1),t.lanes=4194304)}else{if(!s)if(e=Is(g),e!==null){if(t.flags|=128,s=!0,o=e.updateQueue,o!==null&&(t.updateQueue=o,t.flags|=4),mi(d,!0),d.tail===null&&d.tailMode==="hidden"&&!g.alternate&&!et)return It(t),null}else 2*dt()-d.renderingStartTime>yo&&o!==1073741824&&(t.flags|=128,s=!0,mi(d,!1),t.lanes=4194304);d.isBackwards?(g.sibling=t.child,t.child=g):(o=d.last,o!==null?o.sibling=g:t.child=g,d.last=g)}return d.tail!==null?(t=d.tail,d.rendering=t,d.tail=t.sibling,d.renderingStartTime=dt(),t.sibling=null,o=rt.current,Xe(rt,s?o&1|2:o&1),t):(It(t),null);case 22:case 23:return hu(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?Qt&1073741824&&(It(t),t.subtreeFlags&6&&(t.flags|=8192)):It(t),null;case 24:return null;case 25:return null}throw Error(i(156,t.tag))}function wy(e,t){switch(ba(t),t.tag){case 1:return Ft(t.type)&&xs(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return po(),Ze(Lt),Ze(Tt),za(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Aa(t),null;case 13:if(Ze(rt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ao()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ze(rt),null;case 4:return po(),null;case 10:return Ia(t.type._context),null;case 22:case 23:return hu(),null;case 24:return null;default:return null}}var Fs=!1,_t=!1,Cy=typeof WeakSet=="function"?WeakSet:Set,ce=null;function ho(e,t){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(s){it(e,t,s)}else o.current=null}function ru(e,t,o){try{o()}catch(s){it(e,t,s)}}var tp=!1;function ky(e,t){if(ha=is,e=Md(),la(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var s=o.getSelection&&o.getSelection();if(s&&s.rangeCount!==0){o=s.anchorNode;var u=s.anchorOffset,d=s.focusNode;s=s.focusOffset;try{o.nodeType,d.nodeType}catch{o=null;break e}var g=0,R=-1,N=-1,W=0,ee=0,re=e,Z=null;t:for(;;){for(var ue;re!==o||u!==0&&re.nodeType!==3||(R=g+u),re!==d||s!==0&&re.nodeType!==3||(N=g+s),re.nodeType===3&&(g+=re.nodeValue.length),(ue=re.firstChild)!==null;)Z=re,re=ue;for(;;){if(re===e)break t;if(Z===o&&++W===u&&(R=g),Z===d&&++ee===s&&(N=g),(ue=re.nextSibling)!==null)break;re=Z,Z=re.parentNode}re=ue}o=R===-1||N===-1?null:{start:R,end:N}}else o=null}o=o||{start:0,end:0}}else o=null;for(ga={focusedElem:e,selectionRange:o},is=!1,ce=t;ce!==null;)if(t=ce,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,ce=e;else for(;ce!==null;){t=ce;try{var fe=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(fe!==null){var pe=fe.memoizedProps,ft=fe.memoizedState,F=t.stateNode,A=F.getSnapshotBeforeUpdate(t.elementType===t.type?pe:mn(t.type,pe),ft);F.__reactInternalSnapshotBeforeUpdate=A}break;case 3:var D=t.stateNode.containerInfo;D.nodeType===1?D.textContent="":D.nodeType===9&&D.documentElement&&D.removeChild(D.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(i(163))}}catch(oe){it(t,t.return,oe)}if(e=t.sibling,e!==null){e.return=t.return,ce=e;break}ce=t.return}return fe=tp,tp=!1,fe}function hi(e,t,o){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var u=s=s.next;do{if((u.tag&e)===e){var d=u.destroy;u.destroy=void 0,d!==void 0&&ru(t,o,d)}u=u.next}while(u!==s)}}function Ds(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var o=t=t.next;do{if((o.tag&e)===e){var s=o.create;o.destroy=s()}o=o.next}while(o!==t)}}function ou(e){var t=e.ref;if(t!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof t=="function"?t(e):t.current=e}}function np(e){var t=e.alternate;t!==null&&(e.alternate=null,np(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[En],delete t[oi],delete t[Sa],delete t[iy],delete t[sy])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function rp(e){return e.tag===5||e.tag===3||e.tag===4}function op(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||rp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function iu(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?o.nodeType===8?o.parentNode.insertBefore(e,t):o.insertBefore(e,t):(o.nodeType===8?(t=o.parentNode,t.insertBefore(e,o)):(t=o,t.appendChild(e)),o=o._reactRootContainer,o!=null||t.onclick!==null||(t.onclick=ys));else if(s!==4&&(e=e.child,e!==null))for(iu(e,t,o),e=e.sibling;e!==null;)iu(e,t,o),e=e.sibling}function su(e,t,o){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?o.insertBefore(e,t):o.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(su(e,t,o),e=e.sibling;e!==null;)su(e,t,o),e=e.sibling}var kt=null,hn=!1;function hr(e,t,o){for(o=o.child;o!==null;)ip(e,t,o),o=o.sibling}function ip(e,t,o){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(Zi,o)}catch{}switch(o.tag){case 5:_t||ho(o,t);case 6:var s=kt,u=hn;kt=null,hr(e,t,o),kt=s,hn=u,kt!==null&&(hn?(e=kt,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):kt.removeChild(o.stateNode));break;case 18:kt!==null&&(hn?(e=kt,o=o.stateNode,e.nodeType===8?xa(e.parentNode,o):e.nodeType===1&&xa(e,o),Ko(e)):xa(kt,o.stateNode));break;case 4:s=kt,u=hn,kt=o.stateNode.containerInfo,hn=!0,hr(e,t,o),kt=s,hn=u;break;case 0:case 11:case 14:case 15:if(!_t&&(s=o.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){u=s=s.next;do{var d=u,g=d.destroy;d=d.tag,g!==void 0&&(d&2||d&4)&&ru(o,t,g),u=u.next}while(u!==s)}hr(e,t,o);break;case 1:if(!_t&&(ho(o,t),s=o.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=o.memoizedProps,s.state=o.memoizedState,s.componentWillUnmount()}catch(R){it(o,t,R)}hr(e,t,o);break;case 21:hr(e,t,o);break;case 22:o.mode&1?(_t=(s=_t)||o.memoizedState!==null,hr(e,t,o),_t=s):hr(e,t,o);break;default:hr(e,t,o)}}function sp(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Cy),t.forEach(function(s){var u=My.bind(null,e,s);o.has(s)||(o.add(s),s.then(u,u))})}}function gn(e,t){var o=t.deletions;if(o!==null)for(var s=0;s<o.length;s++){var u=o[s];try{var d=e,g=t,R=g;e:for(;R!==null;){switch(R.tag){case 5:kt=R.stateNode,hn=!1;break e;case 3:kt=R.stateNode.containerInfo,hn=!0;break e;case 4:kt=R.stateNode.containerInfo,hn=!0;break e}R=R.return}if(kt===null)throw Error(i(160));ip(d,g,u),kt=null,hn=!1;var N=u.alternate;N!==null&&(N.return=null),u.return=null}catch(W){it(u,t,W)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)lp(t,e),t=t.sibling}function lp(e,t){var o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(gn(t,e),Tn(e),s&4){try{hi(3,e,e.return),Ds(3,e)}catch(pe){it(e,e.return,pe)}try{hi(5,e,e.return)}catch(pe){it(e,e.return,pe)}}break;case 1:gn(t,e),Tn(e),s&512&&o!==null&&ho(o,o.return);break;case 5:if(gn(t,e),Tn(e),s&512&&o!==null&&ho(o,o.return),e.flags&32){var u=e.stateNode;try{Vt(u,"")}catch(pe){it(e,e.return,pe)}}if(s&4&&(u=e.stateNode,u!=null)){var d=e.memoizedProps,g=o!==null?o.memoizedProps:d,R=e.type,N=e.updateQueue;if(e.updateQueue=null,N!==null)try{R==="input"&&d.type==="radio"&&d.name!=null&&Rt(u,d),ct(R,g);var W=ct(R,d);for(g=0;g<N.length;g+=2){var ee=N[g],re=N[g+1];ee==="style"?zo(u,re):ee==="dangerouslySetInnerHTML"?Bn(u,re):ee==="children"?Vt(u,re):E(u,ee,re,W)}switch(R){case"input":gt(u,d);break;case"textarea":Ct(u,d);break;case"select":var Z=u._wrapperState.wasMultiple;u._wrapperState.wasMultiple=!!d.multiple;var ue=d.value;ue!=null?Ye(u,!!d.multiple,ue,!1):Z!==!!d.multiple&&(d.defaultValue!=null?Ye(u,!!d.multiple,d.defaultValue,!0):Ye(u,!!d.multiple,d.multiple?[]:"",!1))}u[oi]=d}catch(pe){it(e,e.return,pe)}}break;case 6:if(gn(t,e),Tn(e),s&4){if(e.stateNode===null)throw Error(i(162));u=e.stateNode,d=e.memoizedProps;try{u.nodeValue=d}catch(pe){it(e,e.return,pe)}}break;case 3:if(gn(t,e),Tn(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{Ko(t.containerInfo)}catch(pe){it(e,e.return,pe)}break;case 4:gn(t,e),Tn(e);break;case 13:gn(t,e),Tn(e),u=e.child,u.flags&8192&&(d=u.memoizedState!==null,u.stateNode.isHidden=d,!d||u.alternate!==null&&u.alternate.memoizedState!==null||(uu=dt())),s&4&&sp(e);break;case 22:if(ee=o!==null&&o.memoizedState!==null,e.mode&1?(_t=(W=_t)||ee,gn(t,e),_t=W):gn(t,e),Tn(e),s&8192){if(W=e.memoizedState!==null,(e.stateNode.isHidden=W)&&!ee&&e.mode&1)for(ce=e,ee=e.child;ee!==null;){for(re=ce=ee;ce!==null;){switch(Z=ce,ue=Z.child,Z.tag){case 0:case 11:case 14:case 15:hi(4,Z,Z.return);break;case 1:ho(Z,Z.return);var fe=Z.stateNode;if(typeof fe.componentWillUnmount=="function"){s=Z,o=Z.return;try{t=s,fe.props=t.memoizedProps,fe.state=t.memoizedState,fe.componentWillUnmount()}catch(pe){it(s,o,pe)}}break;case 5:ho(Z,Z.return);break;case 22:if(Z.memoizedState!==null){cp(re);continue}}ue!==null?(ue.return=Z,ce=ue):cp(re)}ee=ee.sibling}e:for(ee=null,re=e;;){if(re.tag===5){if(ee===null){ee=re;try{u=re.stateNode,W?(d=u.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none"):(R=re.stateNode,N=re.memoizedProps.style,g=N!=null&&N.hasOwnProperty("display")?N.display:null,R.style.display=nr("display",g))}catch(pe){it(e,e.return,pe)}}}else if(re.tag===6){if(ee===null)try{re.stateNode.nodeValue=W?"":re.memoizedProps}catch(pe){it(e,e.return,pe)}}else if((re.tag!==22&&re.tag!==23||re.memoizedState===null||re===e)&&re.child!==null){re.child.return=re,re=re.child;continue}if(re===e)break e;for(;re.sibling===null;){if(re.return===null||re.return===e)break e;ee===re&&(ee=null),re=re.return}ee===re&&(ee=null),re.sibling.return=re.return,re=re.sibling}}break;case 19:gn(t,e),Tn(e),s&4&&sp(e);break;case 21:break;default:gn(t,e),Tn(e)}}function Tn(e){var t=e.flags;if(t&2){try{e:{for(var o=e.return;o!==null;){if(rp(o)){var s=o;break e}o=o.return}throw Error(i(160))}switch(s.tag){case 5:var u=s.stateNode;s.flags&32&&(Vt(u,""),s.flags&=-33);var d=op(e);su(e,d,u);break;case 3:case 4:var g=s.stateNode.containerInfo,R=op(e);iu(e,R,g);break;default:throw Error(i(161))}}catch(N){it(e,e.return,N)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function by(e,t,o){ce=e,ap(e)}function ap(e,t,o){for(var s=(e.mode&1)!==0;ce!==null;){var u=ce,d=u.child;if(u.tag===22&&s){var g=u.memoizedState!==null||Fs;if(!g){var R=u.alternate,N=R!==null&&R.memoizedState!==null||_t;R=Fs;var W=_t;if(Fs=g,(_t=N)&&!W)for(ce=u;ce!==null;)g=ce,N=g.child,g.tag===22&&g.memoizedState!==null?dp(u):N!==null?(N.return=g,ce=N):dp(u);for(;d!==null;)ce=d,ap(d),d=d.sibling;ce=u,Fs=R,_t=W}up(e)}else u.subtreeFlags&8772&&d!==null?(d.return=u,ce=d):up(e)}}function up(e){for(;ce!==null;){var t=ce;if(t.flags&8772){var o=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:_t||Ds(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!_t)if(o===null)s.componentDidMount();else{var u=t.elementType===t.type?o.memoizedProps:mn(t.type,o.memoizedProps);s.componentDidUpdate(u,o.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var d=t.updateQueue;d!==null&&cf(t,d,s);break;case 3:var g=t.updateQueue;if(g!==null){if(o=null,t.child!==null)switch(t.child.tag){case 5:o=t.child.stateNode;break;case 1:o=t.child.stateNode}cf(t,g,o)}break;case 5:var R=t.stateNode;if(o===null&&t.flags&4){o=R;var N=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":N.autoFocus&&o.focus();break;case"img":N.src&&(o.src=N.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var W=t.alternate;if(W!==null){var ee=W.memoizedState;if(ee!==null){var re=ee.dehydrated;re!==null&&Ko(re)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(i(163))}_t||t.flags&512&&ou(t)}catch(Z){it(t,t.return,Z)}}if(t===e){ce=null;break}if(o=t.sibling,o!==null){o.return=t.return,ce=o;break}ce=t.return}}function cp(e){for(;ce!==null;){var t=ce;if(t===e){ce=null;break}var o=t.sibling;if(o!==null){o.return=t.return,ce=o;break}ce=t.return}}function dp(e){for(;ce!==null;){var t=ce;try{switch(t.tag){case 0:case 11:case 15:var o=t.return;try{Ds(4,t)}catch(N){it(t,o,N)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var u=t.return;try{s.componentDidMount()}catch(N){it(t,u,N)}}var d=t.return;try{ou(t)}catch(N){it(t,d,N)}break;case 5:var g=t.return;try{ou(t)}catch(N){it(t,g,N)}}}catch(N){it(t,t.return,N)}if(t===e){ce=null;break}var R=t.sibling;if(R!==null){R.return=t.return,ce=R;break}ce=t.return}}var Ey=Math.ceil,Bs=T.ReactCurrentDispatcher,lu=T.ReactCurrentOwner,nn=T.ReactCurrentBatchConfig,Ne=0,St=null,mt=null,bt=0,Qt=0,go=cr(0),vt=0,gi=null,Ar=0,Ws=0,au=0,yi=null,Bt=null,uu=0,yo=1/0,Qn=null,Us=!1,cu=null,gr=null,Hs=!1,yr=null,Vs=0,vi=0,du=null,Gs=-1,Ks=0;function jt(){return Ne&6?dt():Gs!==-1?Gs:Gs=dt()}function vr(e){return e.mode&1?Ne&2&&bt!==0?bt&-bt:ay.transition!==null?(Ks===0&&(Ks=rd()),Ks):(e=He,e!==0||(e=window.event,e=e===void 0?16:fd(e.type)),e):1}function yn(e,t,o,s){if(50<vi)throw vi=0,du=null,Error(i(185));Wo(e,o,s),(!(Ne&2)||e!==St)&&(e===St&&(!(Ne&2)&&(Ws|=o),vt===4&&xr(e,bt)),Wt(e,s),o===1&&Ne===0&&!(t.mode&1)&&(yo=dt()+500,ws&&fr()))}function Wt(e,t){var o=e.callbackNode;ag(e,t);var s=ns(e,e===St?bt:0);if(s===0)o!==null&&ed(o),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(o!=null&&ed(o),t===1)e.tag===0?ly(pp.bind(null,e)):Xd(pp.bind(null,e)),ry(function(){!(Ne&6)&&fr()}),o=null;else{switch(od(s)){case 1:o=Hl;break;case 4:o=td;break;case 16:o=Ji;break;case 536870912:o=nd;break;default:o=Ji}o=wp(o,fp.bind(null,e))}e.callbackPriority=t,e.callbackNode=o}}function fp(e,t){if(Gs=-1,Ks=0,Ne&6)throw Error(i(327));var o=e.callbackNode;if(vo()&&e.callbackNode!==o)return null;var s=ns(e,e===St?bt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=qs(e,s);else{t=s;var u=Ne;Ne|=2;var d=hp();(St!==e||bt!==t)&&(Qn=null,yo=dt()+500,zr(e,t));do try{Ty();break}catch(R){mp(e,R)}while(!0);$a(),Bs.current=d,Ne=u,mt!==null?t=0:(St=null,bt=0,t=vt)}if(t!==0){if(t===2&&(u=Vl(e),u!==0&&(s=u,t=fu(e,u))),t===1)throw o=gi,zr(e,0),xr(e,s),Wt(e,dt()),o;if(t===6)xr(e,s);else{if(u=e.current.alternate,!(s&30)&&!Py(u)&&(t=qs(e,s),t===2&&(d=Vl(e),d!==0&&(s=d,t=fu(e,d))),t===1))throw o=gi,zr(e,0),xr(e,s),Wt(e,dt()),o;switch(e.finishedWork=u,e.finishedLanes=s,t){case 0:case 1:throw Error(i(345));case 2:Lr(e,Bt,Qn);break;case 3:if(xr(e,s),(s&130023424)===s&&(t=uu+500-dt(),10<t)){if(ns(e,0)!==0)break;if(u=e.suspendedLanes,(u&s)!==s){jt(),e.pingedLanes|=e.suspendedLanes&u;break}e.timeoutHandle=va(Lr.bind(null,e,Bt,Qn),t);break}Lr(e,Bt,Qn);break;case 4:if(xr(e,s),(s&4194240)===s)break;for(t=e.eventTimes,u=-1;0<s;){var g=31-dn(s);d=1<<g,g=t[g],g>u&&(u=g),s&=~d}if(s=u,s=dt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*Ey(s/1960))-s,10<s){e.timeoutHandle=va(Lr.bind(null,e,Bt,Qn),s);break}Lr(e,Bt,Qn);break;case 5:Lr(e,Bt,Qn);break;default:throw Error(i(329))}}}return Wt(e,dt()),e.callbackNode===o?fp.bind(null,e):null}function fu(e,t){var o=yi;return e.current.memoizedState.isDehydrated&&(zr(e,t).flags|=256),e=qs(e,t),e!==2&&(t=Bt,Bt=o,t!==null&&pu(t)),e}function pu(e){Bt===null?Bt=e:Bt.push.apply(Bt,e)}function Py(e){for(var t=e;;){if(t.flags&16384){var o=t.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var s=0;s<o.length;s++){var u=o[s],d=u.getSnapshot;u=u.value;try{if(!fn(d(),u))return!1}catch{return!1}}}if(o=t.child,t.subtreeFlags&16384&&o!==null)o.return=t,t=o;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 xr(e,t){for(t&=~au,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var o=31-dn(t),s=1<<o;e[o]=-1,t&=~s}}function pp(e){if(Ne&6)throw Error(i(327));vo();var t=ns(e,0);if(!(t&1))return Wt(e,dt()),null;var o=qs(e,t);if(e.tag!==0&&o===2){var s=Vl(e);s!==0&&(t=s,o=fu(e,s))}if(o===1)throw o=gi,zr(e,0),xr(e,t),Wt(e,dt()),o;if(o===6)throw Error(i(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Lr(e,Bt,Qn),Wt(e,dt()),null}function mu(e,t){var o=Ne;Ne|=1;try{return e(t)}finally{Ne=o,Ne===0&&(yo=dt()+500,ws&&fr())}}function jr(e){yr!==null&&yr.tag===0&&!(Ne&6)&&vo();var t=Ne;Ne|=1;var o=nn.transition,s=He;try{if(nn.transition=null,He=1,e)return e()}finally{He=s,nn.transition=o,Ne=t,!(Ne&6)&&fr()}}function hu(){Qt=go.current,Ze(go)}function zr(e,t){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,ny(o)),mt!==null)for(o=mt.return;o!==null;){var s=o;switch(ba(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&xs();break;case 3:po(),Ze(Lt),Ze(Tt),za();break;case 5:Aa(s);break;case 4:po();break;case 13:Ze(rt);break;case 19:Ze(rt);break;case 10:Ia(s.type._context);break;case 22:case 23:hu()}o=o.return}if(St=e,mt=e=Sr(e.current,null),bt=Qt=t,vt=0,gi=null,au=Ws=Ar=0,Bt=yi=null,Mr!==null){for(t=0;t<Mr.length;t++)if(o=Mr[t],s=o.interleaved,s!==null){o.interleaved=null;var u=s.next,d=o.pending;if(d!==null){var g=d.next;d.next=u,s.next=g}o.pending=s}Mr=null}return e}function mp(e,t){do{var o=mt;try{if($a(),_s.current=As,Ms){for(var s=ot.memoizedState;s!==null;){var u=s.queue;u!==null&&(u.pending=null),s=s.next}Ms=!1}if(Or=0,xt=yt=ot=null,ci=!1,di=0,lu.current=null,o===null||o.return===null){vt=1,gi=t,mt=null;break}e:{var d=e,g=o.return,R=o,N=t;if(t=bt,R.flags|=32768,N!==null&&typeof N=="object"&&typeof N.then=="function"){var W=N,ee=R,re=ee.tag;if(!(ee.mode&1)&&(re===0||re===11||re===15)){var Z=ee.alternate;Z?(ee.updateQueue=Z.updateQueue,ee.memoizedState=Z.memoizedState,ee.lanes=Z.lanes):(ee.updateQueue=null,ee.memoizedState=null)}var ue=Ff(g);if(ue!==null){ue.flags&=-257,Df(ue,g,R,d,t),ue.mode&1&&Lf(d,W,t),t=ue,N=W;var fe=t.updateQueue;if(fe===null){var pe=new Set;pe.add(N),t.updateQueue=pe}else fe.add(N);break e}else{if(!(t&1)){Lf(d,W,t),gu();break e}N=Error(i(426))}}else if(et&&R.mode&1){var ft=Ff(g);if(ft!==null){!(ft.flags&65536)&&(ft.flags|=256),Df(ft,g,R,d,t),Ra(mo(N,R));break e}}d=N=mo(N,R),vt!==4&&(vt=2),yi===null?yi=[d]:yi.push(d),d=g;do{switch(d.tag){case 3:d.flags|=65536,t&=-t,d.lanes|=t;var F=jf(d,N,t);uf(d,F);break e;case 1:R=N;var A=d.type,D=d.stateNode;if(!(d.flags&128)&&(typeof A.getDerivedStateFromError=="function"||D!==null&&typeof D.componentDidCatch=="function"&&(gr===null||!gr.has(D)))){d.flags|=65536,t&=-t,d.lanes|=t;var oe=zf(d,R,t);uf(d,oe);break e}}d=d.return}while(d!==null)}yp(o)}catch(me){t=me,mt===o&&o!==null&&(mt=o=o.return);continue}break}while(!0)}function hp(){var e=Bs.current;return Bs.current=As,e===null?As:e}function gu(){(vt===0||vt===3||vt===2)&&(vt=4),St===null||!(Ar&268435455)&&!(Ws&268435455)||xr(St,bt)}function qs(e,t){var o=Ne;Ne|=2;var s=hp();(St!==e||bt!==t)&&(Qn=null,zr(e,t));do try{Ry();break}catch(u){mp(e,u)}while(!0);if($a(),Ne=o,Bs.current=s,mt!==null)throw Error(i(261));return St=null,bt=0,vt}function Ry(){for(;mt!==null;)gp(mt)}function Ty(){for(;mt!==null&&!Zh();)gp(mt)}function gp(e){var t=Sp(e.alternate,e,Qt);e.memoizedProps=e.pendingProps,t===null?yp(e):mt=t,lu.current=null}function yp(e){var t=e;do{var o=t.alternate;if(e=t.return,t.flags&32768){if(o=wy(o,t),o!==null){o.flags&=32767,mt=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{vt=6,mt=null;return}}else if(o=Sy(o,t,Qt),o!==null){mt=o;return}if(t=t.sibling,t!==null){mt=t;return}mt=t=e}while(t!==null);vt===0&&(vt=5)}function Lr(e,t,o){var s=He,u=nn.transition;try{nn.transition=null,He=1,$y(e,t,o,s)}finally{nn.transition=u,He=s}return null}function $y(e,t,o,s){do vo();while(yr!==null);if(Ne&6)throw Error(i(327));o=e.finishedWork;var u=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(i(177));e.callbackNode=null,e.callbackPriority=0;var d=o.lanes|o.childLanes;if(ug(e,d),e===St&&(mt=St=null,bt=0),!(o.subtreeFlags&2064)&&!(o.flags&2064)||Hs||(Hs=!0,wp(Ji,function(){return vo(),null})),d=(o.flags&15990)!==0,o.subtreeFlags&15990||d){d=nn.transition,nn.transition=null;var g=He;He=1;var R=Ne;Ne|=4,lu.current=null,ky(e,o),lp(o,e),Qg(ga),is=!!ha,ga=ha=null,e.current=o,by(o),eg(),Ne=R,He=g,nn.transition=d}else e.current=o;if(Hs&&(Hs=!1,yr=e,Vs=u),d=e.pendingLanes,d===0&&(gr=null),rg(o.stateNode),Wt(e,dt()),t!==null)for(s=e.onRecoverableError,o=0;o<t.length;o++)u=t[o],s(u.value,{componentStack:u.stack,digest:u.digest});if(Us)throw Us=!1,e=cu,cu=null,e;return Vs&1&&e.tag!==0&&vo(),d=e.pendingLanes,d&1?e===du?vi++:(vi=0,du=e):vi=0,fr(),null}function vo(){if(yr!==null){var e=od(Vs),t=nn.transition,o=He;try{if(nn.transition=null,He=16>e?16:e,yr===null)var s=!1;else{if(e=yr,yr=null,Vs=0,Ne&6)throw Error(i(331));var u=Ne;for(Ne|=4,ce=e.current;ce!==null;){var d=ce,g=d.child;if(ce.flags&16){var R=d.deletions;if(R!==null){for(var N=0;N<R.length;N++){var W=R[N];for(ce=W;ce!==null;){var ee=ce;switch(ee.tag){case 0:case 11:case 15:hi(8,ee,d)}var re=ee.child;if(re!==null)re.return=ee,ce=re;else for(;ce!==null;){ee=ce;var Z=ee.sibling,ue=ee.return;if(np(ee),ee===W){ce=null;break}if(Z!==null){Z.return=ue,ce=Z;break}ce=ue}}}var fe=d.alternate;if(fe!==null){var pe=fe.child;if(pe!==null){fe.child=null;do{var ft=pe.sibling;pe.sibling=null,pe=ft}while(pe!==null)}}ce=d}}if(d.subtreeFlags&2064&&g!==null)g.return=d,ce=g;else e:for(;ce!==null;){if(d=ce,d.flags&2048)switch(d.tag){case 0:case 11:case 15:hi(9,d,d.return)}var F=d.sibling;if(F!==null){F.return=d.return,ce=F;break e}ce=d.return}}var A=e.current;for(ce=A;ce!==null;){g=ce;var D=g.child;if(g.subtreeFlags&2064&&D!==null)D.return=g,ce=D;else e:for(g=A;ce!==null;){if(R=ce,R.flags&2048)try{switch(R.tag){case 0:case 11:case 15:Ds(9,R)}}catch(me){it(R,R.return,me)}if(R===g){ce=null;break e}var oe=R.sibling;if(oe!==null){oe.return=R.return,ce=oe;break e}ce=R.return}}if(Ne=u,fr(),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(Zi,e)}catch{}s=!0}return s}finally{He=o,nn.transition=t}}return!1}function vp(e,t,o){t=mo(o,t),t=jf(e,t,1),e=mr(e,t,1),t=jt(),e!==null&&(Wo(e,1,t),Wt(e,t))}function it(e,t,o){if(e.tag===3)vp(e,e,o);else for(;t!==null;){if(t.tag===3){vp(t,e,o);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(gr===null||!gr.has(s))){e=mo(o,e),e=zf(t,e,1),t=mr(t,e,1),e=jt(),t!==null&&(Wo(t,1,e),Wt(t,e));break}}t=t.return}}function Iy(e,t,o){var s=e.pingCache;s!==null&&s.delete(t),t=jt(),e.pingedLanes|=e.suspendedLanes&o,St===e&&(bt&o)===o&&(vt===4||vt===3&&(bt&130023424)===bt&&500>dt()-uu?zr(e,0):au|=o),Wt(e,t)}function xp(e,t){t===0&&(e.mode&1?(t=ts,ts<<=1,!(ts&130023424)&&(ts=4194304)):t=1);var o=jt();e=Gn(e,t),e!==null&&(Wo(e,t,o),Wt(e,o))}function _y(e){var t=e.memoizedState,o=0;t!==null&&(o=t.retryLane),xp(e,o)}function My(e,t){var o=0;switch(e.tag){case 13:var s=e.stateNode,u=e.memoizedState;u!==null&&(o=u.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(i(314))}s!==null&&s.delete(t),xp(e,o)}var Sp;Sp=function(e,t,o){if(e!==null)if(e.memoizedProps!==t.pendingProps||Lt.current)Dt=!0;else{if(!(e.lanes&o)&&!(t.flags&128))return Dt=!1,xy(e,t,o);Dt=!!(e.flags&131072)}else Dt=!1,et&&t.flags&1048576&&Jd(t,ks,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Ls(e,t),e=t.pendingProps;var u=io(t,Tt.current);fo(t,o),u=Da(null,t,s,e,u,o);var d=Ba();return t.flags|=1,typeof u=="object"&&u!==null&&typeof u.render=="function"&&u.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ft(s)?(d=!0,Ss(t)):d=!1,t.memoizedState=u.state!==null&&u.state!==void 0?u.state:null,Na(t),u.updater=js,t.stateNode=u,u._reactInternals=t,Ka(t,s,e,o),t=Xa(null,t,s,!0,d,o)):(t.tag=0,et&&d&&ka(t),At(null,t,u,o),t=t.child),t;case 16:s=t.elementType;e:{switch(Ls(e,t),e=t.pendingProps,u=s._init,s=u(s._payload),t.type=s,u=t.tag=Oy(s),e=mn(s,e),u){case 0:t=Ya(null,t,s,e,o);break e;case 1:t=Gf(null,t,s,e,o);break e;case 11:t=Bf(null,t,s,e,o);break e;case 14:t=Wf(null,t,s,mn(s.type,e),o);break e}throw Error(i(306,s,""))}return t;case 0:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:mn(s,u),Ya(e,t,s,u,o);case 1:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:mn(s,u),Gf(e,t,s,u,o);case 3:e:{if(Kf(t),e===null)throw Error(i(387));s=t.pendingProps,d=t.memoizedState,u=d.element,af(e,t),$s(t,s,null,o);var g=t.memoizedState;if(s=g.element,d.isDehydrated)if(d={element:s,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},t.updateQueue.baseState=d,t.memoizedState=d,t.flags&256){u=mo(Error(i(423)),t),t=qf(e,t,s,o,u);break e}else if(s!==u){u=mo(Error(i(424)),t),t=qf(e,t,s,o,u);break e}else for(qt=ur(t.stateNode.containerInfo.firstChild),Kt=t,et=!0,pn=null,o=sf(t,null,s,o),t.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(ao(),s===u){t=qn(e,t,o);break e}At(e,t,s,o)}t=t.child}return t;case 5:return df(t),e===null&&Pa(t),s=t.type,u=t.pendingProps,d=e!==null?e.memoizedProps:null,g=u.children,ya(s,u)?g=null:d!==null&&ya(s,d)&&(t.flags|=32),Vf(e,t),At(e,t,g,o),t.child;case 6:return e===null&&Pa(t),null;case 13:return Qf(e,t,o);case 4:return Oa(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=uo(t,null,s,o):At(e,t,s,o),t.child;case 11:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:mn(s,u),Bf(e,t,s,u,o);case 7:return At(e,t,t.pendingProps,o),t.child;case 8:return At(e,t,t.pendingProps.children,o),t.child;case 12:return At(e,t,t.pendingProps.children,o),t.child;case 10:e:{if(s=t.type._context,u=t.pendingProps,d=t.memoizedProps,g=u.value,Xe(Ps,s._currentValue),s._currentValue=g,d!==null)if(fn(d.value,g)){if(d.children===u.children&&!Lt.current){t=qn(e,t,o);break e}}else for(d=t.child,d!==null&&(d.return=t);d!==null;){var R=d.dependencies;if(R!==null){g=d.child;for(var N=R.firstContext;N!==null;){if(N.context===s){if(d.tag===1){N=Kn(-1,o&-o),N.tag=2;var W=d.updateQueue;if(W!==null){W=W.shared;var ee=W.pending;ee===null?N.next=N:(N.next=ee.next,ee.next=N),W.pending=N}}d.lanes|=o,N=d.alternate,N!==null&&(N.lanes|=o),_a(d.return,o,t),R.lanes|=o;break}N=N.next}}else if(d.tag===10)g=d.type===t.type?null:d.child;else if(d.tag===18){if(g=d.return,g===null)throw Error(i(341));g.lanes|=o,R=g.alternate,R!==null&&(R.lanes|=o),_a(g,o,t),g=d.sibling}else g=d.child;if(g!==null)g.return=d;else for(g=d;g!==null;){if(g===t){g=null;break}if(d=g.sibling,d!==null){d.return=g.return,g=d;break}g=g.return}d=g}At(e,t,u.children,o),t=t.child}return t;case 9:return u=t.type,s=t.pendingProps.children,fo(t,o),u=en(u),s=s(u),t.flags|=1,At(e,t,s,o),t.child;case 14:return s=t.type,u=mn(s,t.pendingProps),u=mn(s.type,u),Wf(e,t,s,u,o);case 15:return Uf(e,t,t.type,t.pendingProps,o);case 17:return s=t.type,u=t.pendingProps,u=t.elementType===s?u:mn(s,u),Ls(e,t),t.tag=1,Ft(s)?(e=!0,Ss(t)):e=!1,fo(t,o),Of(t,s,u),Ka(t,s,u,o),Xa(null,t,s,!0,e,o);case 19:return Xf(e,t,o);case 22:return Hf(e,t,o)}throw Error(i(156,t.tag))};function wp(e,t){return Zc(e,t)}function Ny(e,t,o,s){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function rn(e,t,o,s){return new Ny(e,t,o,s)}function yu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Oy(e){if(typeof e=="function")return yu(e)?1:0;if(e!=null){if(e=e.$$typeof,e===B)return 11;if(e===K)return 14}return 2}function Sr(e,t){var o=e.alternate;return o===null?(o=rn(e.tag,t,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=t,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,t=e.dependencies,o.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Qs(e,t,o,s,u,d){var g=2;if(s=e,typeof e=="function")yu(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case L:return Fr(o.children,u,d,t);case Q:g=8,u|=8;break;case ne:return e=rn(12,o,t,u|2),e.elementType=ne,e.lanes=d,e;case U:return e=rn(13,o,t,u),e.elementType=U,e.lanes=d,e;case Y:return e=rn(19,o,t,u),e.elementType=Y,e.lanes=d,e;case te:return Ys(o,u,d,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case m:g=10;break e;case j:g=9;break e;case B:g=11;break e;case K:g=14;break e;case X:g=16,s=null;break e}throw Error(i(130,e==null?e:typeof e,""))}return t=rn(g,o,t,u),t.elementType=e,t.type=s,t.lanes=d,t}function Fr(e,t,o,s){return e=rn(7,e,s,t),e.lanes=o,e}function Ys(e,t,o,s){return e=rn(22,e,s,t),e.elementType=te,e.lanes=o,e.stateNode={isHidden:!1},e}function vu(e,t,o){return e=rn(6,e,null,t),e.lanes=o,e}function xu(e,t,o){return t=rn(4,e.children!==null?e.children:[],e.key,t),t.lanes=o,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Ay(e,t,o,s,u){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Gl(0),this.expirationTimes=Gl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gl(0),this.identifierPrefix=s,this.onRecoverableError=u,this.mutableSourceEagerHydrationData=null}function Su(e,t,o,s,u,d,g,R,N){return e=new Ay(e,t,o,R,N),t===1?(t=1,d===!0&&(t|=8)):t=0,d=rn(3,null,null,t),e.current=d,d.stateNode=e,d.memoizedState={element:s,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},Na(d),e}function jy(e,t,o){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:z,key:s==null?null:""+s,children:e,containerInfo:t,implementation:o}}function Cp(e){if(!e)return dr;e=e._reactInternals;e:{if(Rr(e)!==e||e.tag!==1)throw Error(i(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ft(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(i(171))}if(e.tag===1){var o=e.type;if(Ft(o))return Qd(e,o,t)}return t}function kp(e,t,o,s,u,d,g,R,N){return e=Su(o,s,!0,e,u,d,g,R,N),e.context=Cp(null),o=e.current,s=jt(),u=vr(o),d=Kn(s,u),d.callback=t??null,mr(o,d,u),e.current.lanes=u,Wo(e,u,s),Wt(e,s),e}function Xs(e,t,o,s){var u=t.current,d=jt(),g=vr(u);return o=Cp(o),t.context===null?t.context=o:t.pendingContext=o,t=Kn(d,g),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=mr(u,t,g),e!==null&&(yn(e,u,g,d),Ts(e,u,g)),g}function Js(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function bp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<t?o:t}}function wu(e,t){bp(e,t),(e=e.alternate)&&bp(e,t)}var Ep=typeof reportError=="function"?reportError:function(e){console.error(e)};function Cu(e){this._internalRoot=e}Zs.prototype.render=Cu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));Xs(e,t,null,null)},Zs.prototype.unmount=Cu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;jr(function(){Xs(null,e,null,null)}),t[Wn]=null}};function Zs(e){this._internalRoot=e}Zs.prototype.unstable_scheduleHydration=function(e){if(e){var t=ld();e={blockedOn:null,target:e,priority:t};for(var o=0;o<sr.length&&t!==0&&t<sr[o].priority;o++);sr.splice(o,0,e),o===0&&cd(e)}};function ku(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function el(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Pp(){}function zy(e,t,o,s,u){if(u){if(typeof s=="function"){var d=s;s=function(){var W=Js(g);d.call(W)}}var g=kp(t,s,e,0,null,!1,!1,"",Pp);return e._reactRootContainer=g,e[Wn]=g.current,ni(e.nodeType===8?e.parentNode:e),jr(),g}for(;u=e.lastChild;)e.removeChild(u);if(typeof s=="function"){var R=s;s=function(){var W=Js(N);R.call(W)}}var N=Su(e,0,!1,null,null,!1,!1,"",Pp);return e._reactRootContainer=N,e[Wn]=N.current,ni(e.nodeType===8?e.parentNode:e),jr(function(){Xs(t,N,o,s)}),N}function tl(e,t,o,s,u){var d=o._reactRootContainer;if(d){var g=d;if(typeof u=="function"){var R=u;u=function(){var N=Js(g);R.call(N)}}Xs(t,g,e,u)}else g=zy(o,t,e,u,s);return Js(g)}id=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var o=Bo(t.pendingLanes);o!==0&&(Kl(t,o|1),Wt(t,dt()),!(Ne&6)&&(yo=dt()+500,fr()))}break;case 13:jr(function(){var s=Gn(e,1);if(s!==null){var u=jt();yn(s,e,1,u)}}),wu(e,1)}},ql=function(e){if(e.tag===13){var t=Gn(e,134217728);if(t!==null){var o=jt();yn(t,e,134217728,o)}wu(e,134217728)}},sd=function(e){if(e.tag===13){var t=vr(e),o=Gn(e,t);if(o!==null){var s=jt();yn(o,e,t,s)}wu(e,t)}},ld=function(){return He},ad=function(e,t){var o=He;try{return He=e,t()}finally{He=o}},Dl=function(e,t,o){switch(t){case"input":if(gt(e,o),t=o.name,o.type==="radio"&&t!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<o.length;t++){var s=o[t];if(s!==e&&s.form===e.form){var u=vs(s);if(!u)throw Error(i(90));Te(s),gt(s,u)}}}break;case"textarea":Ct(e,o);break;case"select":t=o.value,t!=null&&Ye(e,!!o.multiple,t,!1)}},Gc=mu,Kc=jr;var Ly={usingClientEntryPoint:!1,Events:[ii,ro,vs,Hc,Vc,mu]},xi={findFiberByHostInstance:Tr,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Fy={bundleType:xi.bundleType,version:xi.version,rendererPackageName:xi.rendererPackageName,rendererConfig:xi.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:T.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Xc(e),e===null?null:e.stateNode},findFiberByHostInstance:xi.findFiberByHostInstance,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var nl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nl.isDisabled&&nl.supportsFiber)try{Zi=nl.inject(Fy),bn=nl}catch{}}return Ut.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Ly,Ut.createPortal=function(e,t){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!ku(t))throw Error(i(200));return jy(e,t,null,o)},Ut.createRoot=function(e,t){if(!ku(e))throw Error(i(299));var o=!1,s="",u=Ep;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(u=t.onRecoverableError)),t=Su(e,1,!1,null,null,o,!1,s,u),e[Wn]=t.current,ni(e.nodeType===8?e.parentNode:e),new Cu(t)},Ut.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return 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=Xc(t),e=e===null?null:e.stateNode,e},Ut.flushSync=function(e){return jr(e)},Ut.hydrate=function(e,t,o){if(!el(t))throw Error(i(200));return tl(null,e,t,!0,o)},Ut.hydrateRoot=function(e,t,o){if(!ku(e))throw Error(i(405));var s=o!=null&&o.hydratedSources||null,u=!1,d="",g=Ep;if(o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),t=kp(t,null,e,1,o??null,u,!1,d,g),e[Wn]=t.current,ni(e),s)for(e=0;e<s.length;e++)o=s[e],u=o._getVersion,u=u(o._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[o,u]:t.mutableSourceEagerHydrationData.push(o,u);return new Zs(t)},Ut.render=function(e,t,o){if(!el(t))throw Error(i(200));return tl(null,e,t,!1,o)},Ut.unmountComponentAtNode=function(e){if(!el(e))throw Error(i(40));return e._reactRootContainer?(jr(function(){tl(null,null,e,!1,function(){e._reactRootContainer=null,e[Wn]=null})}),!0):!1},Ut.unstable_batchedUpdates=mu,Ut.unstable_renderSubtreeIntoContainer=function(e,t,o,s){if(!el(o))throw Error(i(200));if(e==null||e._reactInternals===void 0)throw Error(i(38));return tl(e,t,o,!1,s)},Ut.version="18.3.1-next-f1338f8080-20240426",Ut}var Op;function Dm(){if(Op)return Pu.exports;Op=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(r){console.error(r)}}return n(),Pu.exports=Qy(),Pu.exports}var Ap;function Yy(){if(Ap)return rl;Ap=1;var n=Dm();return rl.createRoot=n.createRoot,rl.hydrateRoot=n.hydrateRoot,rl}var Xy=Yy();const Jy=cc(Xy);var P=dc();const An=cc(P),gl=Uy({__proto__:null,default:An},[P]);var $u={exports:{}},Ve={};/**
41
- * @license React
42
- * react-is.production.js
43
- *
44
- * Copyright (c) Meta Platforms, Inc. and affiliates.
45
- *
46
- * This source code is licensed under the MIT license found in the
47
- * LICENSE file in the root directory of this source tree.
48
- */var jp;function Zy(){if(jp)return Ve;jp=1;var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),y=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.offscreen"),b=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var $=S.$$typeof;switch($){case n:switch(S=S.type,S){case i:case a:case l:case h:case y:return S;default:switch(S=S&&S.$$typeof,S){case f:case p:case x:case k:return S;case c:return S;default:return $}}case r:return $}}}return Ve.ContextConsumer=c,Ve.ContextProvider=f,Ve.Element=n,Ve.ForwardRef=p,Ve.Fragment=i,Ve.Lazy=x,Ve.Memo=k,Ve.Portal=r,Ve.Profiler=a,Ve.StrictMode=l,Ve.Suspense=h,Ve.SuspenseList=y,Ve.isContextConsumer=function(S){return C(S)===c},Ve.isContextProvider=function(S){return C(S)===f},Ve.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===n},Ve.isForwardRef=function(S){return C(S)===p},Ve.isFragment=function(S){return C(S)===i},Ve.isLazy=function(S){return C(S)===x},Ve.isMemo=function(S){return C(S)===k},Ve.isPortal=function(S){return C(S)===r},Ve.isProfiler=function(S){return C(S)===a},Ve.isStrictMode=function(S){return C(S)===l},Ve.isSuspense=function(S){return C(S)===h},Ve.isSuspenseList=function(S){return C(S)===y},Ve.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===i||S===a||S===l||S===h||S===y||S===v||typeof S=="object"&&S!==null&&(S.$$typeof===x||S.$$typeof===k||S.$$typeof===f||S.$$typeof===c||S.$$typeof===p||S.$$typeof===b||S.getModuleId!==void 0)},Ve.typeOf=C,Ve}var zp;function e0(){return zp||(zp=1,$u.exports=Zy()),$u.exports}var Bm=e0();function Nn(n){if(typeof n!="object"||n===null)return!1;const r=Object.getPrototypeOf(n);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in n)&&!(Symbol.iterator in n)}function Wm(n){if(P.isValidElement(n)||Bm.isValidElementType(n)||!Nn(n))return n;const r={};return Object.keys(n).forEach(i=>{r[i]=Wm(n[i])}),r}function Ot(n,r,i={clone:!0}){const l=i.clone?{...n}:n;return Nn(n)&&Nn(r)&&Object.keys(r).forEach(a=>{P.isValidElement(r[a])||Bm.isValidElementType(r[a])?l[a]=r[a]:Nn(r[a])&&Object.prototype.hasOwnProperty.call(n,a)&&Nn(n[a])?l[a]=Ot(n[a],r[a],i):i.clone?l[a]=Nn(r[a])?Wm(r[a]):r[a]:l[a]=r[a]}),l}function Jn(n,...r){const i=new URL(`https://mui.com/production-error/?code=${n}`);return r.forEach(l=>i.searchParams.append("args[]",l)),`Minified MUI error #${n}; visit ${i} for the full message.`}function Se(n){if(typeof n!="string")throw new Error(Jn(7));return n.charAt(0).toUpperCase()+n.slice(1)}function Lp(...n){return n.reduce((r,i)=>i==null?r:function(...a){r.apply(this,a),i.apply(this,a)},()=>{})}function Um(n,r=166){let i;function l(...a){const c=()=>{n.apply(this,a)};clearTimeout(i),i=setTimeout(c,r)}return l.clear=()=>{clearTimeout(i)},l}function Iu(n,r){var i,l,a;return P.isValidElement(n)&&r.indexOf(n.type.muiName??((a=(l=(i=n.type)==null?void 0:i._payload)==null?void 0:l.value)==null?void 0:a.muiName))!==-1}function xn(n){return n&&n.ownerDocument||document}function Zn(n){return xn(n).defaultView||window}function Hu(n,r){typeof n=="function"?n(r):n&&(n.current=r)}const br=typeof window<"u"?P.useLayoutEffect:P.useEffect;let Fp=0;function t0(n){const[r,i]=P.useState(n),l=n||r;return P.useEffect(()=>{r==null&&(Fp+=1,i(`mui-${Fp}`))},[r]),l}const n0={...gl},Dp=n0.useId;function Wi(n){if(Dp!==void 0){const r=Dp();return n??r}return t0(n)}function Vu({controlled:n,default:r,name:i,state:l="value"}){const{current:a}=P.useRef(n!==void 0),[c,f]=P.useState(r),p=a?n:c,h=P.useCallback(y=>{a||f(y)},[]);return[p,h]}function Ro(n){const r=P.useRef(n);return br(()=>{r.current=n}),P.useRef((...i)=>(0,r.current)(...i)).current}function Pt(...n){return P.useMemo(()=>n.every(r=>r==null)?null:r=>{n.forEach(i=>{Hu(i,r)})},n)}const Bp={};function Hm(n,r){const i=P.useRef(Bp);return i.current===Bp&&(i.current=n(r)),i}const r0=[];function o0(n){P.useEffect(n,r0)}class fc{constructor(){Si(this,"currentId",null);Si(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Si(this,"disposeEffect",()=>this.clear)}static create(){return new fc}start(r,i){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,i()},r)}}function pc(){const n=Hm(fc.create).current;return o0(n.disposeEffect),n}function Wp(n){try{return n.matches(":focus-visible")}catch{}return!1}function Vm(n=window){const r=n.document.documentElement.clientWidth;return n.innerWidth-r}function Oi(n,r){const i={...r};for(const l in n)if(Object.prototype.hasOwnProperty.call(n,l)){const a=l;if(a==="components"||a==="slots")i[a]={...n[a],...i[a]};else if(a==="componentsProps"||a==="slotProps"){const c=n[a],f=r[a];if(!f)i[a]=c||{};else if(!c)i[a]=f;else{i[a]={...f};for(const p in c)if(Object.prototype.hasOwnProperty.call(c,p)){const h=p;i[a][h]=Oi(c[h],f[h])}}}else i[a]===void 0&&(i[a]=n[a])}return i}function Oe(n,r,i=void 0){const l={};for(const a in n){const c=n[a];let f="",p=!0;for(let h=0;h<c.length;h+=1){const y=c[h];y&&(f+=(p===!0?"":" ")+r(y),p=!1,i&&i[y]&&(f+=" "+i[y]))}l[a]=f}return l}const Up=n=>n,i0=()=>{let n=Up;return{configure(r){n=r},generate(r){return n(r)},reset(){n=Up}}},Gm=i0(),s0={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Ae(n,r,i="Mui"){const l=s0[r];return l?`${i}-${l}`:`${Gm.generate(n)}-${r}`}function Me(n,r,i="Mui"){const l={};return r.forEach(a=>{l[a]=Ae(n,a,i)}),l}function l0(n,r=Number.MIN_SAFE_INTEGER,i=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(n,i))}function a0(n){return typeof n=="string"}function Km(n,r,i){return n===void 0||a0(n)?r:{...r,ownerState:{...r.ownerState,...i}}}function qm(n){var r,i,l="";if(typeof n=="string"||typeof n=="number")l+=n;else if(typeof n=="object")if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(i=qm(n[r]))&&(l&&(l+=" "),l+=i)}else for(i in n)n[i]&&(l&&(l+=" "),l+=i);return l}function Ee(){for(var n,r,i=0,l="",a=arguments.length;i<a;i++)(n=arguments[i])&&(r=qm(n))&&(l&&(l+=" "),l+=r);return l}function Qm(n,r=[]){if(n===void 0)return{};const i={};return Object.keys(n).filter(l=>l.match(/^on[A-Z]/)&&typeof n[l]=="function"&&!r.includes(l)).forEach(l=>{i[l]=n[l]}),i}function Hp(n){if(n===void 0)return{};const r={};return Object.keys(n).filter(i=>!(i.match(/^on[A-Z]/)&&typeof n[i]=="function")).forEach(i=>{r[i]=n[i]}),r}function Ym(n){const{getSlotProps:r,additionalProps:i,externalSlotProps:l,externalForwardedProps:a,className:c}=n;if(!r){const b=Ee(i==null?void 0:i.className,c,a==null?void 0:a.className,l==null?void 0:l.className),C={...i==null?void 0:i.style,...a==null?void 0:a.style,...l==null?void 0:l.style},S={...i,...a,...l};return b.length>0&&(S.className=b),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const f=Qm({...a,...l}),p=Hp(l),h=Hp(a),y=r(f),k=Ee(y==null?void 0:y.className,i==null?void 0:i.className,c,a==null?void 0:a.className,l==null?void 0:l.className),x={...y==null?void 0:y.style,...i==null?void 0:i.style,...a==null?void 0:a.style,...l==null?void 0:l.style},v={...y,...i,...h,...p};return k.length>0&&(v.className=k),Object.keys(x).length>0&&(v.style=x),{props:v,internalRef:y.ref}}function Xm(n,r,i){return typeof n=="function"?n(r,i):n}function Vp(n){var x;const{elementType:r,externalSlotProps:i,ownerState:l,skipResolvingSlotProps:a=!1,...c}=n,f=a?{}:Xm(i,l),{props:p,internalRef:h}=Ym({...c,externalSlotProps:f}),y=Pt(h,f==null?void 0:f.ref,(x=n.additionalProps)==null?void 0:x.ref);return Km(r,{...p,ref:y},l)}function Ui(n){var r;return parseInt(P.version,10)>=19?((r=n==null?void 0:n.props)==null?void 0:r.ref)||null:(n==null?void 0:n.ref)||null}function _i(n,r){return r?Ot(n,r,{clone:!1}):n}function u0(n,r){if(!n.containerQueries)return r;const i=Object.keys(r).filter(l=>l.startsWith("@container")).sort((l,a)=>{var f,p;const c=/min-width:\s*([0-9.]+)/;return+(((f=l.match(c))==null?void 0:f[1])||0)-+(((p=a.match(c))==null?void 0:p[1])||0)});return i.length?i.reduce((l,a)=>{const c=r[a];return delete l[a],l[a]=c,l},{...r}):r}function c0(n,r){return r==="@"||r.startsWith("@")&&(n.some(i=>r.startsWith(`@${i}`))||!!r.match(/^@\d/))}function d0(n,r){const i=r.match(/^@([^/]+)?\/?(.+)?$/);if(!i)return null;const[,l,a]=i,c=Number.isNaN(+l)?l||0:+l;return n.containerQueries(a).up(c)}function f0(n){const r=(c,f)=>c.replace("@media",f?`@container ${f}`:"@container");function i(c,f){c.up=(...p)=>r(n.breakpoints.up(...p),f),c.down=(...p)=>r(n.breakpoints.down(...p),f),c.between=(...p)=>r(n.breakpoints.between(...p),f),c.only=(...p)=>r(n.breakpoints.only(...p),f),c.not=(...p)=>{const h=r(n.breakpoints.not(...p),f);return h.includes("not all and")?h.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):h}}const l={},a=c=>(i(l,c),l);return i(a),{...n,containerQueries:a}}const kl={xs:0,sm:600,md:900,lg:1200,xl:1536},Gp={keys:["xs","sm","md","lg","xl"],up:n=>`@media (min-width:${kl[n]}px)`},p0={containerQueries:n=>({up:r=>{let i=typeof r=="number"?r:kl[r]||r;return typeof i=="number"&&(i=`${i}px`),n?`@container ${n} (min-width:${i})`:`@container (min-width:${i})`}})};function an(n,r,i){const l=n.theme||{};if(Array.isArray(r)){const c=l.breakpoints||Gp;return r.reduce((f,p,h)=>(f[c.up(c.keys[h])]=i(r[h]),f),{})}if(typeof r=="object"){const c=l.breakpoints||Gp;return Object.keys(r).reduce((f,p)=>{if(c0(c.keys,p)){const h=d0(l.containerQueries?l:p0,p);h&&(f[h]=i(r[p],p))}else if(Object.keys(c.values||kl).includes(p)){const h=c.up(p);f[h]=i(r[p],p)}else{const h=p;f[h]=r[h]}return f},{})}return i(r)}function m0(n={}){var i;return((i=n.keys)==null?void 0:i.reduce((l,a)=>{const c=n.up(a);return l[c]={},l},{}))||{}}function h0(n,r){return n.reduce((i,l)=>{const a=i[l];return(!a||Object.keys(a).length===0)&&delete i[l],i},r)}function g0(n,r){if(typeof n!="object")return{};const i={},l=Object.keys(r);return Array.isArray(n)?l.forEach((a,c)=>{c<n.length&&(i[a]=!0)}):l.forEach(a=>{n[a]!=null&&(i[a]=!0)}),i}function bl({values:n,breakpoints:r,base:i}){const l=i||g0(n,r),a=Object.keys(l);if(a.length===0)return n;let c;return a.reduce((f,p,h)=>(Array.isArray(n)?(f[p]=n[h]!=null?n[h]:n[c],c=h):typeof n=="object"?(f[p]=n[p]!=null?n[p]:n[c],c=p):f[p]=n,f),{})}function El(n,r,i=!0){if(!r||typeof r!="string")return null;if(n&&n.vars&&i){const l=`vars.${r}`.split(".").reduce((a,c)=>a&&a[c]?a[c]:null,n);if(l!=null)return l}return r.split(".").reduce((l,a)=>l&&l[a]!=null?l[a]:null,n)}function yl(n,r,i,l=i){let a;return typeof n=="function"?a=n(i):Array.isArray(n)?a=n[i]||l:a=El(n,i)||l,r&&(a=r(a,l,n)),a}function pt(n){const{prop:r,cssProperty:i=n.prop,themeKey:l,transform:a}=n,c=f=>{if(f[r]==null)return null;const p=f[r],h=f.theme,y=El(h,l)||{};return an(f,p,x=>{let v=yl(y,a,x);return x===v&&typeof x=="string"&&(v=yl(y,a,`${r}${x==="default"?"":Se(x)}`,x)),i===!1?v:{[i]:v}})};return c.propTypes={},c.filterProps=[r],c}function y0(n){const r={};return i=>(r[i]===void 0&&(r[i]=n(i)),r[i])}const v0={m:"margin",p:"padding"},x0={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Kp={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},S0=y0(n=>{if(n.length>2)if(Kp[n])n=Kp[n];else return[n];const[r,i]=n.split(""),l=v0[r],a=x0[i]||"";return Array.isArray(a)?a.map(c=>l+c):[l+a]}),mc=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hc=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...mc,...hc];function Hi(n,r,i,l){const a=El(n,r,!0)??i;return typeof a=="number"||typeof a=="string"?c=>typeof c=="string"?c:typeof a=="string"?`calc(${c} * ${a})`:a*c:Array.isArray(a)?c=>{if(typeof c=="string")return c;const f=Math.abs(c),p=a[f];return c>=0?p:typeof p=="number"?-p:`-${p}`}:typeof a=="function"?a:()=>{}}function gc(n){return Hi(n,"spacing",8)}function Vi(n,r){return typeof r=="string"||r==null?r:n(r)}function w0(n,r){return i=>n.reduce((l,a)=>(l[a]=Vi(r,i),l),{})}function C0(n,r,i,l){if(!r.includes(i))return null;const a=S0(i),c=w0(a,l),f=n[i];return an(n,f,c)}function Jm(n,r){const i=gc(n.theme);return Object.keys(n).map(l=>C0(n,r,l,i)).reduce(_i,{})}function st(n){return Jm(n,mc)}st.propTypes={};st.filterProps=mc;function lt(n){return Jm(n,hc)}lt.propTypes={};lt.filterProps=hc;function Pl(...n){const r=n.reduce((l,a)=>(a.filterProps.forEach(c=>{l[c]=a}),l),{}),i=l=>Object.keys(l).reduce((a,c)=>r[c]?_i(a,r[c](l)):a,{});return i.propTypes={},i.filterProps=n.reduce((l,a)=>l.concat(a.filterProps),[]),i}function sn(n){return typeof n!="number"?n:`${n}px solid`}function un(n,r){return pt({prop:n,themeKey:"borders",transform:r})}const k0=un("border",sn),b0=un("borderTop",sn),E0=un("borderRight",sn),P0=un("borderBottom",sn),R0=un("borderLeft",sn),T0=un("borderColor"),$0=un("borderTopColor"),I0=un("borderRightColor"),_0=un("borderBottomColor"),M0=un("borderLeftColor"),N0=un("outline",sn),O0=un("outlineColor"),Rl=n=>{if(n.borderRadius!==void 0&&n.borderRadius!==null){const r=Hi(n.theme,"shape.borderRadius",4),i=l=>({borderRadius:Vi(r,l)});return an(n,n.borderRadius,i)}return null};Rl.propTypes={};Rl.filterProps=["borderRadius"];Pl(k0,b0,E0,P0,R0,T0,$0,I0,_0,M0,Rl,N0,O0);const Tl=n=>{if(n.gap!==void 0&&n.gap!==null){const r=Hi(n.theme,"spacing",8),i=l=>({gap:Vi(r,l)});return an(n,n.gap,i)}return null};Tl.propTypes={};Tl.filterProps=["gap"];const $l=n=>{if(n.columnGap!==void 0&&n.columnGap!==null){const r=Hi(n.theme,"spacing",8),i=l=>({columnGap:Vi(r,l)});return an(n,n.columnGap,i)}return null};$l.propTypes={};$l.filterProps=["columnGap"];const Il=n=>{if(n.rowGap!==void 0&&n.rowGap!==null){const r=Hi(n.theme,"spacing",8),i=l=>({rowGap:Vi(r,l)});return an(n,n.rowGap,i)}return null};Il.propTypes={};Il.filterProps=["rowGap"];const A0=pt({prop:"gridColumn"}),j0=pt({prop:"gridRow"}),z0=pt({prop:"gridAutoFlow"}),L0=pt({prop:"gridAutoColumns"}),F0=pt({prop:"gridAutoRows"}),D0=pt({prop:"gridTemplateColumns"}),B0=pt({prop:"gridTemplateRows"}),W0=pt({prop:"gridTemplateAreas"}),U0=pt({prop:"gridArea"});Pl(Tl,$l,Il,A0,j0,z0,L0,F0,D0,B0,W0,U0);function To(n,r){return r==="grey"?r:n}const H0=pt({prop:"color",themeKey:"palette",transform:To}),V0=pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:To}),G0=pt({prop:"backgroundColor",themeKey:"palette",transform:To});Pl(H0,V0,G0);function Yt(n){return n<=1&&n!==0?`${n*100}%`:n}const K0=pt({prop:"width",transform:Yt}),yc=n=>{if(n.maxWidth!==void 0&&n.maxWidth!==null){const r=i=>{var a,c,f,p,h;const l=((f=(c=(a=n.theme)==null?void 0:a.breakpoints)==null?void 0:c.values)==null?void 0:f[i])||kl[i];return l?((h=(p=n.theme)==null?void 0:p.breakpoints)==null?void 0:h.unit)!=="px"?{maxWidth:`${l}${n.theme.breakpoints.unit}`}:{maxWidth:l}:{maxWidth:Yt(i)}};return an(n,n.maxWidth,r)}return null};yc.filterProps=["maxWidth"];const q0=pt({prop:"minWidth",transform:Yt}),Q0=pt({prop:"height",transform:Yt}),Y0=pt({prop:"maxHeight",transform:Yt}),X0=pt({prop:"minHeight",transform:Yt});pt({prop:"size",cssProperty:"width",transform:Yt});pt({prop:"size",cssProperty:"height",transform:Yt});const J0=pt({prop:"boxSizing"});Pl(K0,yc,q0,Q0,Y0,X0,J0);const Gi={border:{themeKey:"borders",transform:sn},borderTop:{themeKey:"borders",transform:sn},borderRight:{themeKey:"borders",transform:sn},borderBottom:{themeKey:"borders",transform:sn},borderLeft:{themeKey:"borders",transform:sn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rl},color:{themeKey:"palette",transform:To},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:To},backgroundColor:{themeKey:"palette",transform:To},p:{style:lt},pt:{style:lt},pr:{style:lt},pb:{style:lt},pl:{style:lt},px:{style:lt},py:{style:lt},padding:{style:lt},paddingTop:{style:lt},paddingRight:{style:lt},paddingBottom:{style:lt},paddingLeft:{style:lt},paddingX:{style:lt},paddingY:{style:lt},paddingInline:{style:lt},paddingInlineStart:{style:lt},paddingInlineEnd:{style:lt},paddingBlock:{style:lt},paddingBlockStart:{style:lt},paddingBlockEnd:{style:lt},m:{style:st},mt:{style:st},mr:{style:st},mb:{style:st},ml:{style:st},mx:{style:st},my:{style:st},margin:{style:st},marginTop:{style:st},marginRight:{style:st},marginBottom:{style:st},marginLeft:{style:st},marginX:{style:st},marginY:{style:st},marginInline:{style:st},marginInlineStart:{style:st},marginInlineEnd:{style:st},marginBlock:{style:st},marginBlockStart:{style:st},marginBlockEnd:{style:st},displayPrint:{cssProperty:!1,transform:n=>({"@media print":{display:n}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Tl},rowGap:{style:Il},columnGap:{style:$l},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Yt},maxWidth:{style:yc},minWidth:{transform:Yt},height:{transform:Yt},maxHeight:{transform:Yt},minHeight:{transform:Yt},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Z0(...n){const r=n.reduce((l,a)=>l.concat(Object.keys(a)),[]),i=new Set(r);return n.every(l=>i.size===Object.keys(l).length)}function ev(n,r){return typeof n=="function"?n(r):n}function tv(){function n(i,l,a,c){const f={[i]:l,theme:a},p=c[i];if(!p)return{[i]:l};const{cssProperty:h=i,themeKey:y,transform:k,style:x}=p;if(l==null)return null;if(y==="typography"&&l==="inherit")return{[i]:l};const v=El(a,y)||{};return x?x(f):an(f,l,C=>{let S=yl(v,k,C);return C===S&&typeof C=="string"&&(S=yl(v,k,`${i}${C==="default"?"":Se(C)}`,C)),h===!1?S:{[h]:S}})}function r(i){const{sx:l,theme:a={}}=i||{};if(!l)return null;const c=a.unstable_sxConfig??Gi;function f(p){let h=p;if(typeof p=="function")h=p(a);else if(typeof p!="object")return p;if(!h)return null;const y=m0(a.breakpoints),k=Object.keys(y);let x=y;return Object.keys(h).forEach(v=>{const b=ev(h[v],a);if(b!=null)if(typeof b=="object")if(c[v])x=_i(x,n(v,b,a,c));else{const C=an({theme:a},b,S=>({[v]:S}));Z0(C,b)?x[v]=r({sx:b,theme:a}):x=_i(x,C)}else x=_i(x,n(v,b,a,c))}),u0(a,h0(k,x))}return Array.isArray(l)?l.map(f):f(l)}return r}const Vr=tv();Vr.filterProps=["sx"];const nv=n=>{var l;const r={systemProps:{},otherProps:{}},i=((l=n==null?void 0:n.theme)==null?void 0:l.unstable_sxConfig)??Gi;return Object.keys(n).forEach(a=>{i[a]?r.systemProps[a]=n[a]:r.otherProps[a]=n[a]}),r};function vc(n){const{sx:r,...i}=n,{systemProps:l,otherProps:a}=nv(i);let c;return Array.isArray(r)?c=[l,...r]:typeof r=="function"?c=(...f)=>{const p=r(...f);return Nn(p)?{...l,...p}:l}:c={...l,...r},{...a,sx:c}}function vl(){return vl=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var i=arguments[r];for(var l in i)({}).hasOwnProperty.call(i,l)&&(n[l]=i[l])}return n},vl.apply(null,arguments)}function rv(n){if(n.sheet)return n.sheet;for(var r=0;r<document.styleSheets.length;r++)if(document.styleSheets[r].ownerNode===n)return document.styleSheets[r]}function ov(n){var r=document.createElement("style");return r.setAttribute("data-emotion",n.key),n.nonce!==void 0&&r.setAttribute("nonce",n.nonce),r.appendChild(document.createTextNode("")),r.setAttribute("data-s",""),r}var iv=function(){function n(i){var l=this;this._insertTag=function(a){var c;l.tags.length===0?l.insertionPoint?c=l.insertionPoint.nextSibling:l.prepend?c=l.container.firstChild:c=l.before:c=l.tags[l.tags.length-1].nextSibling,l.container.insertBefore(a,c),l.tags.push(a)},this.isSpeedy=i.speedy===void 0?!0:i.speedy,this.tags=[],this.ctr=0,this.nonce=i.nonce,this.key=i.key,this.container=i.container,this.prepend=i.prepend,this.insertionPoint=i.insertionPoint,this.before=null}var r=n.prototype;return r.hydrate=function(l){l.forEach(this._insertTag)},r.insert=function(l){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(ov(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var c=rv(a);try{c.insertRule(l,c.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(l));this.ctr++},r.flush=function(){this.tags.forEach(function(l){var a;return(a=l.parentNode)==null?void 0:a.removeChild(l)}),this.tags=[],this.ctr=0},n}(),Nt="-ms-",xl="-moz-",Fe="-webkit-",Zm="comm",xc="rule",Sc="decl",sv="@import",eh="@keyframes",lv="@layer",av=Math.abs,_l=String.fromCharCode,uv=Object.assign;function cv(n,r){return Et(n,0)^45?(((r<<2^Et(n,0))<<2^Et(n,1))<<2^Et(n,2))<<2^Et(n,3):0}function th(n){return n.trim()}function dv(n,r){return(n=r.exec(n))?n[0]:n}function De(n,r,i){return n.replace(r,i)}function Gu(n,r){return n.indexOf(r)}function Et(n,r){return n.charCodeAt(r)|0}function Ai(n,r,i){return n.slice(r,i)}function _n(n){return n.length}function wc(n){return n.length}function ol(n,r){return r.push(n),n}function fv(n,r){return n.map(r).join("")}var Ml=1,Io=1,nh=0,Ht=0,ht=0,No="";function Nl(n,r,i,l,a,c,f){return{value:n,root:r,parent:i,type:l,props:a,children:c,line:Ml,column:Io,length:f,return:""}}function Ci(n,r){return uv(Nl("",null,null,"",null,null,0),n,{length:-n.length},r)}function pv(){return ht}function mv(){return ht=Ht>0?Et(No,--Ht):0,Io--,ht===10&&(Io=1,Ml--),ht}function Xt(){return ht=Ht<nh?Et(No,Ht++):0,Io++,ht===10&&(Io=1,Ml++),ht}function jn(){return Et(No,Ht)}function fl(){return Ht}function Ki(n,r){return Ai(No,n,r)}function ji(n){switch(n){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rh(n){return Ml=Io=1,nh=_n(No=n),Ht=0,[]}function oh(n){return No="",n}function pl(n){return th(Ki(Ht-1,Ku(n===91?n+2:n===40?n+1:n)))}function hv(n){for(;(ht=jn())&&ht<33;)Xt();return ji(n)>2||ji(ht)>3?"":" "}function gv(n,r){for(;--r&&Xt()&&!(ht<48||ht>102||ht>57&&ht<65||ht>70&&ht<97););return Ki(n,fl()+(r<6&&jn()==32&&Xt()==32))}function Ku(n){for(;Xt();)switch(ht){case n:return Ht;case 34:case 39:n!==34&&n!==39&&Ku(ht);break;case 40:n===41&&Ku(n);break;case 92:Xt();break}return Ht}function yv(n,r){for(;Xt()&&n+ht!==57;)if(n+ht===84&&jn()===47)break;return"/*"+Ki(r,Ht-1)+"*"+_l(n===47?n:Xt())}function vv(n){for(;!ji(jn());)Xt();return Ki(n,Ht)}function xv(n){return oh(ml("",null,null,null,[""],n=rh(n),0,[0],n))}function ml(n,r,i,l,a,c,f,p,h){for(var y=0,k=0,x=f,v=0,b=0,C=0,S=1,$=1,_=1,O=0,E="",T=a,I=c,z=l,L=E;$;)switch(C=O,O=Xt()){case 40:if(C!=108&&Et(L,x-1)==58){Gu(L+=De(pl(O),"&","&\f"),"&\f")!=-1&&(_=-1);break}case 34:case 39:case 91:L+=pl(O);break;case 9:case 10:case 13:case 32:L+=hv(C);break;case 92:L+=gv(fl()-1,7);continue;case 47:switch(jn()){case 42:case 47:ol(Sv(yv(Xt(),fl()),r,i),h);break;default:L+="/"}break;case 123*S:p[y++]=_n(L)*_;case 125*S:case 59:case 0:switch(O){case 0:case 125:$=0;case 59+k:_==-1&&(L=De(L,/\f/g,"")),b>0&&_n(L)-x&&ol(b>32?Qp(L+";",l,i,x-1):Qp(De(L," ","")+";",l,i,x-2),h);break;case 59:L+=";";default:if(ol(z=qp(L,r,i,y,k,a,p,E,T=[],I=[],x),c),O===123)if(k===0)ml(L,r,z,z,T,c,x,p,I);else switch(v===99&&Et(L,3)===110?100:v){case 100:case 108:case 109:case 115:ml(n,z,z,l&&ol(qp(n,z,z,0,0,a,p,E,a,T=[],x),I),a,I,x,p,l?T:I);break;default:ml(L,z,z,z,[""],I,0,p,I)}}y=k=b=0,S=_=1,E=L="",x=f;break;case 58:x=1+_n(L),b=C;default:if(S<1){if(O==123)--S;else if(O==125&&S++==0&&mv()==125)continue}switch(L+=_l(O),O*S){case 38:_=k>0?1:(L+="\f",-1);break;case 44:p[y++]=(_n(L)-1)*_,_=1;break;case 64:jn()===45&&(L+=pl(Xt())),v=jn(),k=x=_n(E=L+=vv(fl())),O++;break;case 45:C===45&&_n(L)==2&&(S=0)}}return c}function qp(n,r,i,l,a,c,f,p,h,y,k){for(var x=a-1,v=a===0?c:[""],b=wc(v),C=0,S=0,$=0;C<l;++C)for(var _=0,O=Ai(n,x+1,x=av(S=f[C])),E=n;_<b;++_)(E=th(S>0?v[_]+" "+O:De(O,/&\f/g,v[_])))&&(h[$++]=E);return Nl(n,r,i,a===0?xc:p,h,y,k)}function Sv(n,r,i){return Nl(n,r,i,Zm,_l(pv()),Ai(n,2,-2),0)}function Qp(n,r,i,l){return Nl(n,r,i,Sc,Ai(n,0,l),Ai(n,l+1,-1),l)}function $o(n,r){for(var i="",l=wc(n),a=0;a<l;a++)i+=r(n[a],a,n,r)||"";return i}function wv(n,r,i,l){switch(n.type){case lv:if(n.children.length)break;case sv:case Sc:return n.return=n.return||n.value;case Zm:return"";case eh:return n.return=n.value+"{"+$o(n.children,l)+"}";case xc:n.value=n.props.join(",")}return _n(i=$o(n.children,l))?n.return=n.value+"{"+i+"}":""}function Cv(n){var r=wc(n);return function(i,l,a,c){for(var f="",p=0;p<r;p++)f+=n[p](i,l,a,c)||"";return f}}function kv(n){return function(r){r.root||(r=r.return)&&n(r)}}function ih(n){var r=Object.create(null);return function(i){return r[i]===void 0&&(r[i]=n(i)),r[i]}}var bv=function(r,i,l){for(var a=0,c=0;a=c,c=jn(),a===38&&c===12&&(i[l]=1),!ji(c);)Xt();return Ki(r,Ht)},Ev=function(r,i){var l=-1,a=44;do switch(ji(a)){case 0:a===38&&jn()===12&&(i[l]=1),r[l]+=bv(Ht-1,i,l);break;case 2:r[l]+=pl(a);break;case 4:if(a===44){r[++l]=jn()===58?"&\f":"",i[l]=r[l].length;break}default:r[l]+=_l(a)}while(a=Xt());return r},Pv=function(r,i){return oh(Ev(rh(r),i))},Yp=new WeakMap,Rv=function(r){if(!(r.type!=="rule"||!r.parent||r.length<1)){for(var i=r.value,l=r.parent,a=r.column===l.column&&r.line===l.line;l.type!=="rule";)if(l=l.parent,!l)return;if(!(r.props.length===1&&i.charCodeAt(0)!==58&&!Yp.get(l))&&!a){Yp.set(r,!0);for(var c=[],f=Pv(i,c),p=l.props,h=0,y=0;h<f.length;h++)for(var k=0;k<p.length;k++,y++)r.props[y]=c[h]?f[h].replace(/&\f/g,p[k]):p[k]+" "+f[h]}}},Tv=function(r){if(r.type==="decl"){var i=r.value;i.charCodeAt(0)===108&&i.charCodeAt(2)===98&&(r.return="",r.value="")}};function sh(n,r){switch(cv(n,r)){case 5103:return Fe+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Fe+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return Fe+n+xl+n+Nt+n+n;case 6828:case 4268:return Fe+n+Nt+n+n;case 6165:return Fe+n+Nt+"flex-"+n+n;case 5187:return Fe+n+De(n,/(\w+).+(:[^]+)/,Fe+"box-$1$2"+Nt+"flex-$1$2")+n;case 5443:return Fe+n+Nt+"flex-item-"+De(n,/flex-|-self/,"")+n;case 4675:return Fe+n+Nt+"flex-line-pack"+De(n,/align-content|flex-|-self/,"")+n;case 5548:return Fe+n+Nt+De(n,"shrink","negative")+n;case 5292:return Fe+n+Nt+De(n,"basis","preferred-size")+n;case 6060:return Fe+"box-"+De(n,"-grow","")+Fe+n+Nt+De(n,"grow","positive")+n;case 4554:return Fe+De(n,/([^-])(transform)/g,"$1"+Fe+"$2")+n;case 6187:return De(De(De(n,/(zoom-|grab)/,Fe+"$1"),/(image-set)/,Fe+"$1"),n,"")+n;case 5495:case 3959:return De(n,/(image-set\([^]*)/,Fe+"$1$`$1");case 4968:return De(De(n,/(.+:)(flex-)?(.*)/,Fe+"box-pack:$3"+Nt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Fe+n+n;case 4095:case 3583:case 4068:case 2532:return De(n,/(.+)-inline(.+)/,Fe+"$1$2")+n;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(_n(n)-1-r>6)switch(Et(n,r+1)){case 109:if(Et(n,r+4)!==45)break;case 102:return De(n,/(.+:)(.+)-([^]+)/,"$1"+Fe+"$2-$3$1"+xl+(Et(n,r+3)==108?"$3":"$2-$3"))+n;case 115:return~Gu(n,"stretch")?sh(De(n,"stretch","fill-available"),r)+n:n}break;case 4949:if(Et(n,r+1)!==115)break;case 6444:switch(Et(n,_n(n)-3-(~Gu(n,"!important")&&10))){case 107:return De(n,":",":"+Fe)+n;case 101:return De(n,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Fe+(Et(n,14)===45?"inline-":"")+"box$3$1"+Fe+"$2$3$1"+Nt+"$2box$3")+n}break;case 5936:switch(Et(n,r+11)){case 114:return Fe+n+Nt+De(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return Fe+n+Nt+De(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return Fe+n+Nt+De(n,/[svh]\w+-[tblr]{2}/,"lr")+n}return Fe+n+Nt+n+n}return n}var $v=function(r,i,l,a){if(r.length>-1&&!r.return)switch(r.type){case Sc:r.return=sh(r.value,r.length);break;case eh:return $o([Ci(r,{value:De(r.value,"@","@"+Fe)})],a);case xc:if(r.length)return fv(r.props,function(c){switch(dv(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $o([Ci(r,{props:[De(c,/:(read-\w+)/,":"+xl+"$1")]})],a);case"::placeholder":return $o([Ci(r,{props:[De(c,/:(plac\w+)/,":"+Fe+"input-$1")]}),Ci(r,{props:[De(c,/:(plac\w+)/,":"+xl+"$1")]}),Ci(r,{props:[De(c,/:(plac\w+)/,Nt+"input-$1")]})],a)}return""})}},Iv=[$v],_v=function(r){var i=r.key;if(i==="css"){var l=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(l,function(S){var $=S.getAttribute("data-emotion");$.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var a=r.stylisPlugins||Iv,c={},f,p=[];f=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+i+' "]'),function(S){for(var $=S.getAttribute("data-emotion").split(" "),_=1;_<$.length;_++)c[$[_]]=!0;p.push(S)});var h,y=[Rv,Tv];{var k,x=[wv,kv(function(S){k.insert(S)})],v=Cv(y.concat(a,x)),b=function($){return $o(xv($),v)};h=function($,_,O,E){k=O,b($?$+"{"+_.styles+"}":_.styles),E&&(C.inserted[_.name]=!0)}}var C={key:i,sheet:new iv({key:i,container:f,nonce:r.nonce,speedy:r.speedy,prepend:r.prepend,insertionPoint:r.insertionPoint}),nonce:r.nonce,inserted:c,registered:{},insert:h};return C.sheet.hydrate(p),C},_u={exports:{}},We={};/** @license React v16.13.1
49
- * react-is.production.min.js
50
- *
51
- * Copyright (c) Facebook, Inc. and its affiliates.
52
- *
53
- * This source code is licensed under the MIT license found in the
54
- * LICENSE file in the root directory of this source tree.
55
- */var Xp;function Mv(){if(Xp)return We;Xp=1;var n=typeof Symbol=="function"&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,l=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,c=n?Symbol.for("react.profiler"):60114,f=n?Symbol.for("react.provider"):60109,p=n?Symbol.for("react.context"):60110,h=n?Symbol.for("react.async_mode"):60111,y=n?Symbol.for("react.concurrent_mode"):60111,k=n?Symbol.for("react.forward_ref"):60112,x=n?Symbol.for("react.suspense"):60113,v=n?Symbol.for("react.suspense_list"):60120,b=n?Symbol.for("react.memo"):60115,C=n?Symbol.for("react.lazy"):60116,S=n?Symbol.for("react.block"):60121,$=n?Symbol.for("react.fundamental"):60117,_=n?Symbol.for("react.responder"):60118,O=n?Symbol.for("react.scope"):60119;function E(I){if(typeof I=="object"&&I!==null){var z=I.$$typeof;switch(z){case r:switch(I=I.type,I){case h:case y:case l:case c:case a:case x:return I;default:switch(I=I&&I.$$typeof,I){case p:case k:case C:case b:case f:return I;default:return z}}case i:return z}}}function T(I){return E(I)===y}return We.AsyncMode=h,We.ConcurrentMode=y,We.ContextConsumer=p,We.ContextProvider=f,We.Element=r,We.ForwardRef=k,We.Fragment=l,We.Lazy=C,We.Memo=b,We.Portal=i,We.Profiler=c,We.StrictMode=a,We.Suspense=x,We.isAsyncMode=function(I){return T(I)||E(I)===h},We.isConcurrentMode=T,We.isContextConsumer=function(I){return E(I)===p},We.isContextProvider=function(I){return E(I)===f},We.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===r},We.isForwardRef=function(I){return E(I)===k},We.isFragment=function(I){return E(I)===l},We.isLazy=function(I){return E(I)===C},We.isMemo=function(I){return E(I)===b},We.isPortal=function(I){return E(I)===i},We.isProfiler=function(I){return E(I)===c},We.isStrictMode=function(I){return E(I)===a},We.isSuspense=function(I){return E(I)===x},We.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===l||I===y||I===c||I===a||I===x||I===v||typeof I=="object"&&I!==null&&(I.$$typeof===C||I.$$typeof===b||I.$$typeof===f||I.$$typeof===p||I.$$typeof===k||I.$$typeof===$||I.$$typeof===_||I.$$typeof===O||I.$$typeof===S)},We.typeOf=E,We}var Jp;function Nv(){return Jp||(Jp=1,_u.exports=Mv()),_u.exports}var Mu,Zp;function Ov(){if(Zp)return Mu;Zp=1;var n=Nv(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},c={};c[n.ForwardRef]=l,c[n.Memo]=a;function f(C){return n.isMemo(C)?a:c[C.$$typeof]||r}var p=Object.defineProperty,h=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,k=Object.getOwnPropertyDescriptor,x=Object.getPrototypeOf,v=Object.prototype;function b(C,S,$){if(typeof S!="string"){if(v){var _=x(S);_&&_!==v&&b(C,_,$)}var O=h(S);y&&(O=O.concat(y(S)));for(var E=f(C),T=f(S),I=0;I<O.length;++I){var z=O[I];if(!i[z]&&!($&&$[z])&&!(T&&T[z])&&!(E&&E[z])){var L=k(S,z);try{p(C,z,L)}catch{}}}}return C}return Mu=b,Mu}Ov();var Av=!0;function lh(n,r,i){var l="";return i.split(" ").forEach(function(a){n[a]!==void 0?r.push(n[a]+";"):a&&(l+=a+" ")}),l}var Cc=function(r,i,l){var a=r.key+"-"+i.name;(l===!1||Av===!1)&&r.registered[a]===void 0&&(r.registered[a]=i.styles)},kc=function(r,i,l){Cc(r,i,l);var a=r.key+"-"+i.name;if(r.inserted[i.name]===void 0){var c=i;do r.insert(i===c?"."+a:"",c,r.sheet,!0),c=c.next;while(c!==void 0)}};function jv(n){for(var r=0,i,l=0,a=n.length;a>=4;++l,a-=4)i=n.charCodeAt(l)&255|(n.charCodeAt(++l)&255)<<8|(n.charCodeAt(++l)&255)<<16|(n.charCodeAt(++l)&255)<<24,i=(i&65535)*1540483477+((i>>>16)*59797<<16),i^=i>>>24,r=(i&65535)*1540483477+((i>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(a){case 3:r^=(n.charCodeAt(l+2)&255)<<16;case 2:r^=(n.charCodeAt(l+1)&255)<<8;case 1:r^=n.charCodeAt(l)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var zv={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Lv=/[A-Z]|^ms/g,Fv=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ah=function(r){return r.charCodeAt(1)===45},em=function(r){return r!=null&&typeof r!="boolean"},Nu=ih(function(n){return ah(n)?n:n.replace(Lv,"-$&").toLowerCase()}),tm=function(r,i){switch(r){case"animation":case"animationName":if(typeof i=="string")return i.replace(Fv,function(l,a,c){return Mn={name:a,styles:c,next:Mn},a})}return zv[r]!==1&&!ah(r)&&typeof i=="number"&&i!==0?i+"px":i};function zi(n,r,i){if(i==null)return"";var l=i;if(l.__emotion_styles!==void 0)return l;switch(typeof i){case"boolean":return"";case"object":{var a=i;if(a.anim===1)return Mn={name:a.name,styles:a.styles,next:Mn},a.name;var c=i;if(c.styles!==void 0){var f=c.next;if(f!==void 0)for(;f!==void 0;)Mn={name:f.name,styles:f.styles,next:Mn},f=f.next;var p=c.styles+";";return p}return Dv(n,r,i)}case"function":{if(n!==void 0){var h=Mn,y=i(n);return Mn=h,zi(n,r,y)}break}}var k=i;if(r==null)return k;var x=r[k];return x!==void 0?x:k}function Dv(n,r,i){var l="";if(Array.isArray(i))for(var a=0;a<i.length;a++)l+=zi(n,r,i[a])+";";else for(var c in i){var f=i[c];if(typeof f!="object"){var p=f;r!=null&&r[p]!==void 0?l+=c+"{"+r[p]+"}":em(p)&&(l+=Nu(c)+":"+tm(c,p)+";")}else if(Array.isArray(f)&&typeof f[0]=="string"&&(r==null||r[f[0]]===void 0))for(var h=0;h<f.length;h++)em(f[h])&&(l+=Nu(c)+":"+tm(c,f[h])+";");else{var y=zi(n,r,f);switch(c){case"animation":case"animationName":{l+=Nu(c)+":"+y+";";break}default:l+=c+"{"+y+"}"}}}return l}var nm=/label:\s*([^\s;{]+)\s*(;|$)/g,Mn;function qi(n,r,i){if(n.length===1&&typeof n[0]=="object"&&n[0]!==null&&n[0].styles!==void 0)return n[0];var l=!0,a="";Mn=void 0;var c=n[0];if(c==null||c.raw===void 0)l=!1,a+=zi(i,r,c);else{var f=c;a+=f[0]}for(var p=1;p<n.length;p++)if(a+=zi(i,r,n[p]),l){var h=c;a+=h[p]}nm.lastIndex=0;for(var y="",k;(k=nm.exec(a))!==null;)y+="-"+k[1];var x=jv(a)+y;return{name:x,styles:a,next:Mn}}var Bv=function(r){return r()},uh=gl.useInsertionEffect?gl.useInsertionEffect:!1,ch=uh||Bv,rm=uh||P.useLayoutEffect,dh=P.createContext(typeof HTMLElement<"u"?_v({key:"css"}):null);dh.Provider;var bc=function(r){return P.forwardRef(function(i,l){var a=P.useContext(dh);return r(i,a,l)})},Ol=P.createContext({}),Ec={}.hasOwnProperty,qu="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Wv=function(r,i){var l={};for(var a in i)Ec.call(i,a)&&(l[a]=i[a]);return l[qu]=r,l},Uv=function(r){var i=r.cache,l=r.serialized,a=r.isStringTag;return Cc(i,l,a),ch(function(){return kc(i,l,a)}),null},Hv=bc(function(n,r,i){var l=n.css;typeof l=="string"&&r.registered[l]!==void 0&&(l=r.registered[l]);var a=n[qu],c=[l],f="";typeof n.className=="string"?f=lh(r.registered,c,n.className):n.className!=null&&(f=n.className+" ");var p=qi(c,void 0,P.useContext(Ol));f+=r.key+"-"+p.name;var h={};for(var y in n)Ec.call(n,y)&&y!=="css"&&y!==qu&&(h[y]=n[y]);return h.className=f,i&&(h.ref=i),P.createElement(P.Fragment,null,P.createElement(Uv,{cache:r,serialized:p,isStringTag:typeof a=="string"}),P.createElement(a,h))}),Vv=Hv,Gv=function(r,i){var l=arguments;if(i==null||!Ec.call(i,"css"))return P.createElement.apply(void 0,l);var a=l.length,c=new Array(a);c[0]=Vv,c[1]=Wv(r,i);for(var f=2;f<a;f++)c[f]=l[f];return P.createElement.apply(null,c)};(function(n){var r;r||(r=n.JSX||(n.JSX={}))})(Gv);var Kv=bc(function(n,r){var i=n.styles,l=qi([i],void 0,P.useContext(Ol)),a=P.useRef();return rm(function(){var c=r.key+"-global",f=new r.sheet.constructor({key:c,nonce:r.sheet.nonce,container:r.sheet.container,speedy:r.sheet.isSpeedy}),p=!1,h=document.querySelector('style[data-emotion="'+c+" "+l.name+'"]');return r.sheet.tags.length&&(f.before=r.sheet.tags[0]),h!==null&&(p=!0,h.setAttribute("data-emotion",c),f.hydrate([h])),a.current=[f,p],function(){f.flush()}},[r]),rm(function(){var c=a.current,f=c[0],p=c[1];if(p){c[1]=!1;return}if(l.next!==void 0&&kc(r,l.next,!0),f.tags.length){var h=f.tags[f.tags.length-1].nextElementSibling;f.before=h,f.flush()}r.insert("",l,f,!1)},[r,l.name]),null});function Pc(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return qi(r)}function Oo(){var n=Pc.apply(void 0,arguments),r="animation-"+n.name;return{name:r,styles:"@keyframes "+r+"{"+n.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var qv=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qv=ih(function(n){return qv.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),Yv=Qv,Xv=function(r){return r!=="theme"},om=function(r){return typeof r=="string"&&r.charCodeAt(0)>96?Yv:Xv},im=function(r,i,l){var a;if(i){var c=i.shouldForwardProp;a=r.__emotion_forwardProp&&c?function(f){return r.__emotion_forwardProp(f)&&c(f)}:c}return typeof a!="function"&&l&&(a=r.__emotion_forwardProp),a},Jv=function(r){var i=r.cache,l=r.serialized,a=r.isStringTag;return Cc(i,l,a),ch(function(){return kc(i,l,a)}),null},Zv=function n(r,i){var l=r.__emotion_real===r,a=l&&r.__emotion_base||r,c,f;i!==void 0&&(c=i.label,f=i.target);var p=im(r,i,l),h=p||om(a),y=!h("as");return function(){var k=arguments,x=l&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(c!==void 0&&x.push("label:"+c+";"),k[0]==null||k[0].raw===void 0)x.push.apply(x,k);else{var v=k[0];x.push(v[0]);for(var b=k.length,C=1;C<b;C++)x.push(k[C],v[C])}var S=bc(function($,_,O){var E=y&&$.as||a,T="",I=[],z=$;if($.theme==null){z={};for(var L in $)z[L]=$[L];z.theme=P.useContext(Ol)}typeof $.className=="string"?T=lh(_.registered,I,$.className):$.className!=null&&(T=$.className+" ");var Q=qi(x.concat(I),_.registered,z);T+=_.key+"-"+Q.name,f!==void 0&&(T+=" "+f);var ne=y&&p===void 0?om(E):h,m={};for(var j in $)y&&j==="as"||ne(j)&&(m[j]=$[j]);return m.className=T,O&&(m.ref=O),P.createElement(P.Fragment,null,P.createElement(Jv,{cache:_,serialized:Q,isStringTag:typeof E=="string"}),P.createElement(E,m))});return S.displayName=c!==void 0?c:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",S.defaultProps=r.defaultProps,S.__emotion_real=S,S.__emotion_base=a,S.__emotion_styles=x,S.__emotion_forwardProp=p,Object.defineProperty(S,"toString",{value:function(){return"."+f}}),S.withComponent=function($,_){var O=n($,vl({},i,_,{shouldForwardProp:im(S,_,!0)}));return O.apply(void 0,x)},S}},e1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Qu=Zv.bind(null);e1.forEach(function(n){Qu[n]=Qu(n)});function t1(n){return n==null||Object.keys(n).length===0}function n1(n){const{styles:r,defaultTheme:i={}}=n,l=typeof r=="function"?a=>r(t1(a)?i:a):r;return w.jsx(Kv,{styles:l})}/**
56
- * @mui/styled-engine v6.4.0
57
- *
58
- * @license MIT
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */function fh(n,r){return Qu(n,r)}function r1(n,r){Array.isArray(n.__emotion_styles)&&(n.__emotion_styles=r(n.__emotion_styles))}const sm=[];function lm(n){return sm[0]=n,qi(sm)}const o1=n=>{const r=Object.keys(n).map(i=>({key:i,val:n[i]}))||[];return r.sort((i,l)=>i.val-l.val),r.reduce((i,l)=>({...i,[l.key]:l.val}),{})};function i1(n){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:i="px",step:l=5,...a}=n,c=o1(r),f=Object.keys(c);function p(v){return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${i})`}function h(v){return`@media (max-width:${(typeof r[v]=="number"?r[v]:v)-l/100}${i})`}function y(v,b){const C=f.indexOf(b);return`@media (min-width:${typeof r[v]=="number"?r[v]:v}${i}) and (max-width:${(C!==-1&&typeof r[f[C]]=="number"?r[f[C]]:b)-l/100}${i})`}function k(v){return f.indexOf(v)+1<f.length?y(v,f[f.indexOf(v)+1]):p(v)}function x(v){const b=f.indexOf(v);return b===0?p(f[1]):b===f.length-1?h(f[b]):y(v,f[f.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:f,values:c,up:p,down:h,between:y,only:k,not:x,unit:i,...a}}const s1={borderRadius:4};function ph(n=8,r=gc({spacing:n})){if(n.mui)return n;const i=(...l)=>(l.length===0?[1]:l).map(c=>{const f=r(c);return typeof f=="number"?`${f}px`:f}).join(" ");return i.mui=!0,i}function l1(n,r){var l;const i=this;if(i.vars){if(!((l=i.colorSchemes)!=null&&l[n])||typeof i.getColorSchemeSelector!="function")return{};let a=i.getColorSchemeSelector(n);return a==="&"?r:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:r})}return i.palette.mode===n?r:{}}function Rc(n={},...r){const{breakpoints:i={},palette:l={},spacing:a,shape:c={},...f}=n,p=i1(i),h=ph(a);let y=Ot({breakpoints:p,direction:"ltr",components:{},palette:{mode:"light",...l},spacing:h,shape:{...s1,...c}},f);return y=f0(y),y.applyStyles=l1,y=r.reduce((k,x)=>Ot(k,x),y),y.unstable_sxConfig={...Gi,...f==null?void 0:f.unstable_sxConfig},y.unstable_sx=function(x){return Vr({sx:x,theme:this})},y}function a1(n){return Object.keys(n).length===0}function mh(n=null){const r=P.useContext(Ol);return!r||a1(r)?n:r}const u1=Rc();function Tc(n=u1){return mh(n)}function c1({styles:n,themeId:r,defaultTheme:i={}}){const l=Tc(i),a=typeof n=="function"?n(r&&l[r]||l):n;return w.jsx(n1,{styles:a})}function d1(n={}){const{themeId:r,defaultTheme:i,defaultClassName:l="MuiBox-root",generateClassName:a}=n,c=fh("div",{shouldForwardProp:p=>p!=="theme"&&p!=="sx"&&p!=="as"})(Vr);return P.forwardRef(function(h,y){const k=Tc(i),{className:x,component:v="div",...b}=vc(h);return w.jsx(c,{as:v,ref:y,className:Ee(x,a?a(l):l),theme:r&&k[r]||k,...b})})}function hh(n){const{variants:r,...i}=n,l={variants:r,style:lm(i),isProcessed:!0};return l.style===i||r&&r.forEach(a=>{typeof a.style!="function"&&(a.style=lm(a.style))}),l}const f1=Rc();function Ou(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}function p1(n){return n?(r,i)=>i[n]:null}function m1(n,r,i){n.theme=g1(n.theme)?i:n.theme[r]||n.theme}function hl(n,r){const i=typeof r=="function"?r(n):r;if(Array.isArray(i))return i.flatMap(l=>hl(n,l));if(Array.isArray(i==null?void 0:i.variants)){let l;if(i.isProcessed)l=i.style;else{const{variants:a,...c}=i;l=c}return gh(n,i.variants,[l])}return i!=null&&i.isProcessed?i.style:i}function gh(n,r,i=[]){var a;let l;e:for(let c=0;c<r.length;c+=1){const f=r[c];if(typeof f.props=="function"){if(l??(l={...n,...n.ownerState,ownerState:n.ownerState}),!f.props(l))continue}else for(const p in f.props)if(n[p]!==f.props[p]&&((a=n.ownerState)==null?void 0:a[p])!==f.props[p])continue e;typeof f.style=="function"?(l??(l={...n,...n.ownerState,ownerState:n.ownerState}),i.push(f.style(l))):i.push(f.style)}return i}function yh(n={}){const{themeId:r,defaultTheme:i=f1,rootShouldForwardProp:l=Ou,slotShouldForwardProp:a=Ou}=n;function c(p){m1(p,r,i)}return(p,h={})=>{r1(p,I=>I.filter(z=>z!==Vr));const{name:y,slot:k,skipVariantsResolver:x,skipSx:v,overridesResolver:b=p1(v1(k)),...C}=h,S=x!==void 0?x:k&&k!=="Root"&&k!=="root"||!1,$=v||!1;let _=Ou;k==="Root"||k==="root"?_=l:k?_=a:y1(p)&&(_=void 0);const O=fh(p,{shouldForwardProp:_,label:h1(),...C}),E=I=>{if(typeof I=="function"&&I.__emotion_real!==I)return function(L){return hl(L,I)};if(Nn(I)){const z=hh(I);return z.variants?function(Q){return hl(Q,z)}:z.style}return I},T=(...I)=>{const z=[],L=I.map(E),Q=[];if(z.push(c),y&&b&&Q.push(function(B){var X,te;const Y=(te=(X=B.theme.components)==null?void 0:X[y])==null?void 0:te.styleOverrides;if(!Y)return null;const K={};for(const V in Y)K[V]=hl(B,Y[V]);return b(B,K)}),y&&!S&&Q.push(function(B){var K,X;const U=B.theme,Y=(X=(K=U==null?void 0:U.components)==null?void 0:K[y])==null?void 0:X.variants;return Y?gh(B,Y):null}),$||Q.push(Vr),Array.isArray(L[0])){const j=L.shift(),B=new Array(z.length).fill(""),U=new Array(Q.length).fill("");let Y;Y=[...B,...j,...U],Y.raw=[...B,...j.raw,...U],z.unshift(Y)}const ne=[...z,...L,...Q],m=O(...ne);return p.muiName&&(m.muiName=p.muiName),m};return O.withConfig&&(T.withConfig=O.withConfig),T}}function h1(n,r){return void 0}function g1(n){for(const r in n)return!1;return!0}function y1(n){return typeof n=="string"&&n.charCodeAt(0)>96}function v1(n){return n&&n.charAt(0).toLowerCase()+n.slice(1)}const x1=yh();function S1(n){const{theme:r,name:i,props:l}=n;return!r||!r.components||!r.components[i]||!r.components[i].defaultProps?l:Oi(r.components[i].defaultProps,l)}function w1(n,r,i,l,a){const[c,f]=P.useState(()=>a&&i?i(n).matches:l?l(n).matches:r);return br(()=>{if(!i)return;const p=i(n),h=()=>{f(p.matches)};return h(),p.addEventListener("change",h),()=>{p.removeEventListener("change",h)}},[n,i]),c}const C1={...gl},vh=C1.useSyncExternalStore;function k1(n,r,i,l,a){const c=P.useCallback(()=>r,[r]),f=P.useMemo(()=>{if(a&&i)return()=>i(n).matches;if(l!==null){const{matches:k}=l(n);return()=>k}return c},[c,n,l,a,i]),[p,h]=P.useMemo(()=>{if(i===null)return[c,()=>()=>{}];const k=i(n);return[()=>k.matches,x=>(k.addEventListener("change",x),()=>{k.removeEventListener("change",x)})]},[c,i,n]);return vh(h,p,f)}function b1(n={}){const{themeId:r}=n;return function(l,a={}){let c=mh();c&&r&&(c=c[r]||c);const f=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:p=!1,matchMedia:h=f?window.matchMedia:null,ssrMatchMedia:y=null,noSsr:k=!1}=S1({name:"MuiUseMediaQuery",props:a,theme:c});let x=typeof l=="function"?l(c):l;return x=x.replace(/^@media( ?)/m,""),(vh!==void 0?k1:w1)(x,p,h,y,k)}}function $c(n,r=0,i=1){return l0(n,r,i)}function E1(n){n=n.slice(1);const r=new RegExp(`.{1,${n.length>=6?2:1}}`,"g");let i=n.match(r);return i&&i[0].length===1&&(i=i.map(l=>l+l)),i?`rgb${i.length===4?"a":""}(${i.map((l,a)=>a<3?parseInt(l,16):Math.round(parseInt(l,16)/255*1e3)/1e3).join(", ")})`:""}function Er(n){if(n.type)return n;if(n.charAt(0)==="#")return Er(E1(n));const r=n.indexOf("("),i=n.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(i))throw new Error(Jn(9,n));let l=n.substring(r+1,n.length-1),a;if(i==="color"){if(l=l.split(" "),a=l.shift(),l.length===4&&l[3].charAt(0)==="/"&&(l[3]=l[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Jn(10,a))}else l=l.split(",");return l=l.map(c=>parseFloat(c)),{type:i,values:l,colorSpace:a}}const P1=n=>{const r=Er(n);return r.values.slice(0,3).map((i,l)=>r.type.includes("hsl")&&l!==0?`${i}%`:i).join(" ")},Ti=(n,r)=>{try{return P1(n)}catch{return n}};function Al(n){const{type:r,colorSpace:i}=n;let{values:l}=n;return r.includes("rgb")?l=l.map((a,c)=>c<3?parseInt(a,10):a):r.includes("hsl")&&(l[1]=`${l[1]}%`,l[2]=`${l[2]}%`),r.includes("color")?l=`${i} ${l.join(" ")}`:l=`${l.join(", ")}`,`${r}(${l})`}function xh(n){n=Er(n);const{values:r}=n,i=r[0],l=r[1]/100,a=r[2]/100,c=l*Math.min(a,1-a),f=(y,k=(y+i/30)%12)=>a-c*Math.max(Math.min(k-3,9-k,1),-1);let p="rgb";const h=[Math.round(f(0)*255),Math.round(f(8)*255),Math.round(f(4)*255)];return n.type==="hsla"&&(p+="a",h.push(r[3])),Al({type:p,values:h})}function Yu(n){n=Er(n);let r=n.type==="hsl"||n.type==="hsla"?Er(xh(n)).values:n.values;return r=r.map(i=>(n.type!=="color"&&(i/=255),i<=.03928?i/12.92:((i+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function R1(n,r){const i=Yu(n),l=Yu(r);return(Math.max(i,l)+.05)/(Math.min(i,l)+.05)}function On(n,r){return n=Er(n),r=$c(r),(n.type==="rgb"||n.type==="hsl")&&(n.type+="a"),n.type==="color"?n.values[3]=`/${r}`:n.values[3]=r,Al(n)}function il(n,r,i){try{return On(n,r)}catch{return n}}function Li(n,r){if(n=Er(n),r=$c(r),n.type.includes("hsl"))n.values[2]*=1-r;else if(n.type.includes("rgb")||n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]*=1-r;return Al(n)}function qe(n,r,i){try{return Li(n,r)}catch{return n}}function Fi(n,r){if(n=Er(n),r=$c(r),n.type.includes("hsl"))n.values[2]+=(100-n.values[2])*r;else if(n.type.includes("rgb"))for(let i=0;i<3;i+=1)n.values[i]+=(255-n.values[i])*r;else if(n.type.includes("color"))for(let i=0;i<3;i+=1)n.values[i]+=(1-n.values[i])*r;return Al(n)}function Qe(n,r,i){try{return Fi(n,r)}catch{return n}}function T1(n,r=.15){return Yu(n)>.5?Li(n,r):Fi(n,r)}function sl(n,r,i){try{return T1(n,r)}catch{return n}}const $1=P.createContext(),I1=()=>P.useContext($1)??!1,_1=P.createContext(void 0);function M1(n){const{theme:r,name:i,props:l}=n;if(!r||!r.components||!r.components[i])return l;const a=r.components[i];return a.defaultProps?Oi(a.defaultProps,l):!a.styleOverrides&&!a.variants?Oi(a,l):l}function N1({props:n,name:r}){const i=P.useContext(_1);return M1({props:n,name:r,theme:{components:i}})}const am={theme:void 0};function O1(n){let r,i;return function(a){let c=r;return(c===void 0||a.theme!==i)&&(am.theme=a.theme,c=hh(n(am)),r=c,i=a.theme),c}}function A1(n=""){function r(...l){if(!l.length)return"";const a=l[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${n?`${n}-`:""}${a}${r(...l.slice(1))})`:`, ${a}`}return(l,...a)=>`var(--${n?`${n}-`:""}${l}${r(...a)})`}const um=(n,r,i,l=[])=>{let a=n;r.forEach((c,f)=>{f===r.length-1?Array.isArray(a)?a[Number(c)]=i:a&&typeof a=="object"&&(a[c]=i):a&&typeof a=="object"&&(a[c]||(a[c]=l.includes(c)?[]:{}),a=a[c])})},j1=(n,r,i)=>{function l(a,c=[],f=[]){Object.entries(a).forEach(([p,h])=>{(!i||!i([...c,p]))&&h!=null&&(typeof h=="object"&&Object.keys(h).length>0?l(h,[...c,p],Array.isArray(h)?[...f,p]:f):r([...c,p],h,f))})}l(n)},z1=(n,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(l=>n.includes(l))||n[n.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function Au(n,r){const{prefix:i,shouldSkipGeneratingVar:l}=r||{},a={},c={},f={};return j1(n,(p,h,y)=>{if((typeof h=="string"||typeof h=="number")&&(!l||!l(p,h))){const k=`--${i?`${i}-`:""}${p.join("-")}`,x=z1(p,h);Object.assign(a,{[k]:x}),um(c,p,`var(${k})`,y),um(f,p,`var(${k}, ${x})`,y)}},p=>p[0]==="vars"),{css:a,vars:c,varsWithDefaults:f}}function L1(n,r={}){const{getSelector:i=$,disableCssColorScheme:l,colorSchemeSelector:a}=r,{colorSchemes:c={},components:f,defaultColorScheme:p="light",...h}=n,{vars:y,css:k,varsWithDefaults:x}=Au(h,r);let v=x;const b={},{[p]:C,...S}=c;if(Object.entries(S||{}).forEach(([E,T])=>{const{vars:I,css:z,varsWithDefaults:L}=Au(T,r);v=Ot(v,L),b[E]={css:z,vars:I}}),C){const{css:E,vars:T,varsWithDefaults:I}=Au(C,r);v=Ot(v,I),b[p]={css:E,vars:T}}function $(E,T){var z,L;let I=a;if(a==="class"&&(I=".%s"),a==="data"&&(I="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(I=`[${a}="%s"]`),E){if(I==="media")return n.defaultColorScheme===E?":root":{[`@media (prefers-color-scheme: ${((L=(z=c[E])==null?void 0:z.palette)==null?void 0:L.mode)||E})`]:{":root":T}};if(I)return n.defaultColorScheme===E?`:root, ${I.replace("%s",String(E))}`:I.replace("%s",String(E))}return":root"}return{vars:v,generateThemeVars:()=>{let E={...y};return Object.entries(b).forEach(([,{vars:T}])=>{E=Ot(E,T)}),E},generateStyleSheets:()=>{var Q,ne;const E=[],T=n.defaultColorScheme||"light";function I(m,j){Object.keys(j).length&&E.push(typeof m=="string"?{[m]:{...j}}:m)}I(i(void 0,{...k}),k);const{[T]:z,...L}=b;if(z){const{css:m}=z,j=(ne=(Q=c[T])==null?void 0:Q.palette)==null?void 0:ne.mode,B=!l&&j?{colorScheme:j,...m}:{...m};I(i(T,{...B}),B)}return Object.entries(L).forEach(([m,{css:j}])=>{var Y,K;const B=(K=(Y=c[m])==null?void 0:Y.palette)==null?void 0:K.mode,U=!l&&B?{colorScheme:B,...j}:{...j};I(i(m,{...U}),U)}),E}}}function F1(n){return function(i){return n==="media"?`@media (prefers-color-scheme: ${i})`:n?n.startsWith("data-")&&!n.includes("%s")?`[${n}="${i}"] &`:n==="class"?`.${i} &`:n==="data"?`[data-${i}] &`:`${n.replace("%s",i)} &`:"&"}}const Di={black:"#000",white:"#fff"},D1={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},xo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},So={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ki={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},wo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Co={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ko={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function Sh(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Di.white,default:Di.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const B1=Sh();function wh(){return{text:{primary:Di.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Di.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const cm=wh();function dm(n,r,i,l){const a=l.light||l,c=l.dark||l*1.5;n[r]||(n.hasOwnProperty(i)?n[r]=n[i]:r==="light"?n.light=Fi(n.main,a):r==="dark"&&(n.dark=Li(n.main,c)))}function W1(n="light"){return n==="dark"?{main:wo[200],light:wo[50],dark:wo[400]}:{main:wo[700],light:wo[400],dark:wo[800]}}function U1(n="light"){return n==="dark"?{main:xo[200],light:xo[50],dark:xo[400]}:{main:xo[500],light:xo[300],dark:xo[700]}}function H1(n="light"){return n==="dark"?{main:So[500],light:So[300],dark:So[700]}:{main:So[700],light:So[400],dark:So[800]}}function V1(n="light"){return n==="dark"?{main:Co[400],light:Co[300],dark:Co[700]}:{main:Co[700],light:Co[500],dark:Co[900]}}function G1(n="light"){return n==="dark"?{main:ko[400],light:ko[300],dark:ko[700]}:{main:ko[800],light:ko[500],dark:ko[900]}}function K1(n="light"){return n==="dark"?{main:ki[400],light:ki[300],dark:ki[700]}:{main:"#ed6c02",light:ki[500],dark:ki[900]}}function Ic(n){const{mode:r="light",contrastThreshold:i=3,tonalOffset:l=.2,...a}=n,c=n.primary||W1(r),f=n.secondary||U1(r),p=n.error||H1(r),h=n.info||V1(r),y=n.success||G1(r),k=n.warning||K1(r);function x(S){return R1(S,cm.text.primary)>=i?cm.text.primary:B1.text.primary}const v=({color:S,name:$,mainShade:_=500,lightShade:O=300,darkShade:E=700})=>{if(S={...S},!S.main&&S[_]&&(S.main=S[_]),!S.hasOwnProperty("main"))throw new Error(Jn(11,$?` (${$})`:"",_));if(typeof S.main!="string")throw new Error(Jn(12,$?` (${$})`:"",JSON.stringify(S.main)));return dm(S,"light",O,l),dm(S,"dark",E,l),S.contrastText||(S.contrastText=x(S.main)),S};let b;return r==="light"?b=Sh():r==="dark"&&(b=wh()),Ot({common:{...Di},mode:r,primary:v({color:c,name:"primary"}),secondary:v({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:p,name:"error"}),warning:v({color:k,name:"warning"}),info:v({color:h,name:"info"}),success:v({color:y,name:"success"}),grey:D1,contrastThreshold:i,getContrastText:x,augmentColor:v,tonalOffset:l,...b},a)}function q1(n){const r={};return Object.entries(n).forEach(l=>{const[a,c]=l;typeof c=="object"&&(r[a]=`${c.fontStyle?`${c.fontStyle} `:""}${c.fontVariant?`${c.fontVariant} `:""}${c.fontWeight?`${c.fontWeight} `:""}${c.fontStretch?`${c.fontStretch} `:""}${c.fontSize||""}${c.lineHeight?`/${c.lineHeight} `:""}${c.fontFamily||""}`)}),r}function Q1(n,r){return{toolbar:{minHeight:56,[n.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[n.up("sm")]:{minHeight:64}},...r}}function Y1(n){return Math.round(n*1e5)/1e5}const fm={textTransform:"uppercase"},pm='"Roboto", "Helvetica", "Arial", sans-serif';function X1(n,r){const{fontFamily:i=pm,fontSize:l=14,fontWeightLight:a=300,fontWeightRegular:c=400,fontWeightMedium:f=500,fontWeightBold:p=700,htmlFontSize:h=16,allVariants:y,pxToRem:k,...x}=typeof r=="function"?r(n):r,v=l/14,b=k||($=>`${$/h*v}rem`),C=($,_,O,E,T)=>({fontFamily:i,fontWeight:$,fontSize:b(_),lineHeight:O,...i===pm?{letterSpacing:`${Y1(E/_)}em`}:{},...T,...y}),S={h1:C(a,96,1.167,-1.5),h2:C(a,60,1.2,-.5),h3:C(c,48,1.167,0),h4:C(c,34,1.235,.25),h5:C(c,24,1.334,0),h6:C(f,20,1.6,.15),subtitle1:C(c,16,1.75,.15),subtitle2:C(f,14,1.57,.1),body1:C(c,16,1.5,.15),body2:C(c,14,1.43,.15),button:C(f,14,1.75,.4,fm),caption:C(c,12,1.66,.4),overline:C(c,12,2.66,1,fm),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ot({htmlFontSize:h,pxToRem:b,fontFamily:i,fontSize:l,fontWeightLight:a,fontWeightRegular:c,fontWeightMedium:f,fontWeightBold:p,...S},x,{clone:!1})}const J1=.2,Z1=.14,ex=.12;function tt(...n){return[`${n[0]}px ${n[1]}px ${n[2]}px ${n[3]}px rgba(0,0,0,${J1})`,`${n[4]}px ${n[5]}px ${n[6]}px ${n[7]}px rgba(0,0,0,${Z1})`,`${n[8]}px ${n[9]}px ${n[10]}px ${n[11]}px rgba(0,0,0,${ex})`].join(",")}const tx=["none",tt(0,2,1,-1,0,1,1,0,0,1,3,0),tt(0,3,1,-2,0,2,2,0,0,1,5,0),tt(0,3,3,-2,0,3,4,0,0,1,8,0),tt(0,2,4,-1,0,4,5,0,0,1,10,0),tt(0,3,5,-1,0,5,8,0,0,1,14,0),tt(0,3,5,-1,0,6,10,0,0,1,18,0),tt(0,4,5,-2,0,7,10,1,0,2,16,1),tt(0,5,5,-3,0,8,10,1,0,3,14,2),tt(0,5,6,-3,0,9,12,1,0,3,16,2),tt(0,6,6,-3,0,10,14,1,0,4,18,3),tt(0,6,7,-4,0,11,15,1,0,4,20,3),tt(0,7,8,-4,0,12,17,2,0,5,22,4),tt(0,7,8,-4,0,13,19,2,0,5,24,4),tt(0,7,9,-4,0,14,21,2,0,5,26,4),tt(0,8,9,-5,0,15,22,2,0,6,28,5),tt(0,8,10,-5,0,16,24,2,0,6,30,5),tt(0,8,11,-5,0,17,26,2,0,6,32,5),tt(0,9,11,-5,0,18,28,2,0,7,34,6),tt(0,9,12,-6,0,19,29,2,0,7,36,6),tt(0,10,13,-6,0,20,31,3,0,8,38,7),tt(0,10,13,-6,0,21,33,3,0,8,40,7),tt(0,10,14,-6,0,22,35,3,0,8,42,7),tt(0,11,14,-7,0,23,36,3,0,9,44,8),tt(0,11,15,-7,0,24,38,3,0,9,46,8)],nx={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},Ch={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function mm(n){return`${Math.round(n)}ms`}function rx(n){if(!n)return 0;const r=n/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function ox(n){const r={...nx,...n.easing},i={...Ch,...n.duration};return{getAutoHeightDuration:rx,create:(a=["all"],c={})=>{const{duration:f=i.standard,easing:p=r.easeInOut,delay:h=0,...y}=c;return(Array.isArray(a)?a:[a]).map(k=>`${k} ${typeof f=="string"?f:mm(f)} ${p} ${typeof h=="string"?h:mm(h)}`).join(",")},...n,easing:r,duration:i}}const ix={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function sx(n){return Nn(n)||typeof n>"u"||typeof n=="string"||typeof n=="boolean"||typeof n=="number"||Array.isArray(n)}function kh(n={}){const r={...n};function i(l){const a=Object.entries(l);for(let c=0;c<a.length;c++){const[f,p]=a[c];!sx(p)||f.startsWith("unstable_")?delete l[f]:Nn(p)&&(l[f]={...p},i(l[f]))}}return i(r),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
62
-
63
- const theme = ${JSON.stringify(r,null,2)};
64
-
65
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
66
- theme.transitions = createTransitions(theme.transitions || {});
67
-
68
- export default theme;`}function Xu(n={},...r){const{breakpoints:i,mixins:l={},spacing:a,palette:c={},transitions:f={},typography:p={},shape:h,...y}=n;if(n.vars)throw new Error(Jn(20));const k=Ic(c),x=Rc(n);let v=Ot(x,{mixins:Q1(x.breakpoints,l),palette:k,shadows:tx.slice(),typography:X1(k,p),transitions:ox(f),zIndex:{...ix}});return v=Ot(v,y),v=r.reduce((b,C)=>Ot(b,C),v),v.unstable_sxConfig={...Gi,...y==null?void 0:y.unstable_sxConfig},v.unstable_sx=function(C){return Vr({sx:C,theme:this})},v.toRuntimeSource=kh,v}function Ju(n){let r;return n<1?r=5.11916*n**2:r=4.5*Math.log(n+1)+2,Math.round(r*10)/1e3}const lx=[...Array(25)].map((n,r)=>{if(r===0)return"none";const i=Ju(r);return`linear-gradient(rgba(255 255 255 / ${i}), rgba(255 255 255 / ${i}))`});function bh(n){return{inputPlaceholder:n==="dark"?.5:.42,inputUnderline:n==="dark"?.7:.42,switchTrackDisabled:n==="dark"?.2:.12,switchTrack:n==="dark"?.3:.38}}function Eh(n){return n==="dark"?lx:[]}function ax(n){const{palette:r={mode:"light"},opacity:i,overlays:l,...a}=n,c=Ic(r);return{palette:c,opacity:{...bh(c.mode),...i},overlays:l||Eh(c.mode),...a}}function ux(n){var r;return!!n[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!n[0].match(/sxConfig$/)||n[0]==="palette"&&!!((r=n[1])!=null&&r.match(/(mode|contrastThreshold|tonalOffset)/))}const cx=n=>[...[...Array(25)].map((r,i)=>`--${n?`${n}-`:""}overlays-${i}`),`--${n?`${n}-`:""}palette-AppBar-darkBg`,`--${n?`${n}-`:""}palette-AppBar-darkColor`],dx=n=>(r,i)=>{const l=n.rootSelector||":root",a=n.colorSchemeSelector;let c=a;if(a==="class"&&(c=".%s"),a==="data"&&(c="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(c=`[${a}="%s"]`),n.defaultColorScheme===r){if(r==="dark"){const f={};return cx(n.cssVarPrefix).forEach(p=>{f[p]=i[p],delete i[p]}),c==="media"?{[l]:i,"@media (prefers-color-scheme: dark)":{[l]:f}}:c?{[c.replace("%s",r)]:f,[`${l}, ${c.replace("%s",r)}`]:i}:{[l]:{...i,...f}}}if(c&&c!=="media")return`${l}, ${c.replace("%s",String(r))}`}else if(r){if(c==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[l]:i}};if(c)return c.replace("%s",String(r))}return l};function fx(n,r){r.forEach(i=>{n[i]||(n[i]={})})}function G(n,r,i){!n[r]&&i&&(n[r]=i)}function $i(n){return typeof n!="string"||!n.startsWith("hsl")?n:xh(n)}function Yn(n,r){`${r}Channel`in n||(n[`${r}Channel`]=Ti($i(n[r])))}function px(n){return typeof n=="number"?`${n}px`:typeof n=="string"||typeof n=="function"||Array.isArray(n)?n:"8px"}const $n=n=>{try{return n()}catch{}},mx=(n="mui")=>A1(n);function ju(n,r,i,l){if(!r)return;r=r===!0?{}:r;const a=l==="dark"?"dark":"light";if(!i){n[l]=ax({...r,palette:{mode:a,...r==null?void 0:r.palette}});return}const{palette:c,...f}=Xu({...i,palette:{mode:a,...r==null?void 0:r.palette}});return n[l]={...r,palette:c,opacity:{...bh(a),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||Eh(a)},f}function hx(n={},...r){const{colorSchemes:i={light:!0},defaultColorScheme:l,disableCssColorScheme:a=!1,cssVarPrefix:c="mui",shouldSkipGeneratingVar:f=ux,colorSchemeSelector:p=i.light&&i.dark?"media":void 0,rootSelector:h=":root",...y}=n,k=Object.keys(i)[0],x=l||(i.light&&k!=="light"?"light":k),v=mx(c),{[x]:b,light:C,dark:S,...$}=i,_={...$};let O=b;if((x==="dark"&&!("dark"in i)||x==="light"&&!("light"in i))&&(O=!0),!O)throw new Error(Jn(21,x));const E=ju(_,O,y,x);C&&!_.light&&ju(_,C,void 0,"light"),S&&!_.dark&&ju(_,S,void 0,"dark");let T={defaultColorScheme:x,...E,cssVarPrefix:c,colorSchemeSelector:p,rootSelector:h,getCssVar:v,colorSchemes:_,font:{...q1(E.typography),...E.font},spacing:px(y.spacing)};Object.keys(T.colorSchemes).forEach(ne=>{const m=T.colorSchemes[ne].palette,j=B=>{const U=B.split("-"),Y=U[1],K=U[2];return v(B,m[Y][K])};if(m.mode==="light"&&(G(m.common,"background","#fff"),G(m.common,"onBackground","#000")),m.mode==="dark"&&(G(m.common,"background","#000"),G(m.common,"onBackground","#fff")),fx(m,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),m.mode==="light"){G(m.Alert,"errorColor",qe(m.error.light,.6)),G(m.Alert,"infoColor",qe(m.info.light,.6)),G(m.Alert,"successColor",qe(m.success.light,.6)),G(m.Alert,"warningColor",qe(m.warning.light,.6)),G(m.Alert,"errorFilledBg",j("palette-error-main")),G(m.Alert,"infoFilledBg",j("palette-info-main")),G(m.Alert,"successFilledBg",j("palette-success-main")),G(m.Alert,"warningFilledBg",j("palette-warning-main")),G(m.Alert,"errorFilledColor",$n(()=>m.getContrastText(m.error.main))),G(m.Alert,"infoFilledColor",$n(()=>m.getContrastText(m.info.main))),G(m.Alert,"successFilledColor",$n(()=>m.getContrastText(m.success.main))),G(m.Alert,"warningFilledColor",$n(()=>m.getContrastText(m.warning.main))),G(m.Alert,"errorStandardBg",Qe(m.error.light,.9)),G(m.Alert,"infoStandardBg",Qe(m.info.light,.9)),G(m.Alert,"successStandardBg",Qe(m.success.light,.9)),G(m.Alert,"warningStandardBg",Qe(m.warning.light,.9)),G(m.Alert,"errorIconColor",j("palette-error-main")),G(m.Alert,"infoIconColor",j("palette-info-main")),G(m.Alert,"successIconColor",j("palette-success-main")),G(m.Alert,"warningIconColor",j("palette-warning-main")),G(m.AppBar,"defaultBg",j("palette-grey-100")),G(m.Avatar,"defaultBg",j("palette-grey-400")),G(m.Button,"inheritContainedBg",j("palette-grey-300")),G(m.Button,"inheritContainedHoverBg",j("palette-grey-A100")),G(m.Chip,"defaultBorder",j("palette-grey-400")),G(m.Chip,"defaultAvatarColor",j("palette-grey-700")),G(m.Chip,"defaultIconColor",j("palette-grey-700")),G(m.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),G(m.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),G(m.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),G(m.LinearProgress,"primaryBg",Qe(m.primary.main,.62)),G(m.LinearProgress,"secondaryBg",Qe(m.secondary.main,.62)),G(m.LinearProgress,"errorBg",Qe(m.error.main,.62)),G(m.LinearProgress,"infoBg",Qe(m.info.main,.62)),G(m.LinearProgress,"successBg",Qe(m.success.main,.62)),G(m.LinearProgress,"warningBg",Qe(m.warning.main,.62)),G(m.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.11)`),G(m.Slider,"primaryTrack",Qe(m.primary.main,.62)),G(m.Slider,"secondaryTrack",Qe(m.secondary.main,.62)),G(m.Slider,"errorTrack",Qe(m.error.main,.62)),G(m.Slider,"infoTrack",Qe(m.info.main,.62)),G(m.Slider,"successTrack",Qe(m.success.main,.62)),G(m.Slider,"warningTrack",Qe(m.warning.main,.62));const B=sl(m.background.default,.8);G(m.SnackbarContent,"bg",B),G(m.SnackbarContent,"color",$n(()=>m.getContrastText(B))),G(m.SpeedDialAction,"fabHoverBg",sl(m.background.paper,.15)),G(m.StepConnector,"border",j("palette-grey-400")),G(m.StepContent,"border",j("palette-grey-400")),G(m.Switch,"defaultColor",j("palette-common-white")),G(m.Switch,"defaultDisabledColor",j("palette-grey-100")),G(m.Switch,"primaryDisabledColor",Qe(m.primary.main,.62)),G(m.Switch,"secondaryDisabledColor",Qe(m.secondary.main,.62)),G(m.Switch,"errorDisabledColor",Qe(m.error.main,.62)),G(m.Switch,"infoDisabledColor",Qe(m.info.main,.62)),G(m.Switch,"successDisabledColor",Qe(m.success.main,.62)),G(m.Switch,"warningDisabledColor",Qe(m.warning.main,.62)),G(m.TableCell,"border",Qe(il(m.divider,1),.88)),G(m.Tooltip,"bg",il(m.grey[700],.92))}if(m.mode==="dark"){G(m.Alert,"errorColor",Qe(m.error.light,.6)),G(m.Alert,"infoColor",Qe(m.info.light,.6)),G(m.Alert,"successColor",Qe(m.success.light,.6)),G(m.Alert,"warningColor",Qe(m.warning.light,.6)),G(m.Alert,"errorFilledBg",j("palette-error-dark")),G(m.Alert,"infoFilledBg",j("palette-info-dark")),G(m.Alert,"successFilledBg",j("palette-success-dark")),G(m.Alert,"warningFilledBg",j("palette-warning-dark")),G(m.Alert,"errorFilledColor",$n(()=>m.getContrastText(m.error.dark))),G(m.Alert,"infoFilledColor",$n(()=>m.getContrastText(m.info.dark))),G(m.Alert,"successFilledColor",$n(()=>m.getContrastText(m.success.dark))),G(m.Alert,"warningFilledColor",$n(()=>m.getContrastText(m.warning.dark))),G(m.Alert,"errorStandardBg",qe(m.error.light,.9)),G(m.Alert,"infoStandardBg",qe(m.info.light,.9)),G(m.Alert,"successStandardBg",qe(m.success.light,.9)),G(m.Alert,"warningStandardBg",qe(m.warning.light,.9)),G(m.Alert,"errorIconColor",j("palette-error-main")),G(m.Alert,"infoIconColor",j("palette-info-main")),G(m.Alert,"successIconColor",j("palette-success-main")),G(m.Alert,"warningIconColor",j("palette-warning-main")),G(m.AppBar,"defaultBg",j("palette-grey-900")),G(m.AppBar,"darkBg",j("palette-background-paper")),G(m.AppBar,"darkColor",j("palette-text-primary")),G(m.Avatar,"defaultBg",j("palette-grey-600")),G(m.Button,"inheritContainedBg",j("palette-grey-800")),G(m.Button,"inheritContainedHoverBg",j("palette-grey-700")),G(m.Chip,"defaultBorder",j("palette-grey-700")),G(m.Chip,"defaultAvatarColor",j("palette-grey-300")),G(m.Chip,"defaultIconColor",j("palette-grey-300")),G(m.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),G(m.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),G(m.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),G(m.LinearProgress,"primaryBg",qe(m.primary.main,.5)),G(m.LinearProgress,"secondaryBg",qe(m.secondary.main,.5)),G(m.LinearProgress,"errorBg",qe(m.error.main,.5)),G(m.LinearProgress,"infoBg",qe(m.info.main,.5)),G(m.LinearProgress,"successBg",qe(m.success.main,.5)),G(m.LinearProgress,"warningBg",qe(m.warning.main,.5)),G(m.Skeleton,"bg",`rgba(${j("palette-text-primaryChannel")} / 0.13)`),G(m.Slider,"primaryTrack",qe(m.primary.main,.5)),G(m.Slider,"secondaryTrack",qe(m.secondary.main,.5)),G(m.Slider,"errorTrack",qe(m.error.main,.5)),G(m.Slider,"infoTrack",qe(m.info.main,.5)),G(m.Slider,"successTrack",qe(m.success.main,.5)),G(m.Slider,"warningTrack",qe(m.warning.main,.5));const B=sl(m.background.default,.98);G(m.SnackbarContent,"bg",B),G(m.SnackbarContent,"color",$n(()=>m.getContrastText(B))),G(m.SpeedDialAction,"fabHoverBg",sl(m.background.paper,.15)),G(m.StepConnector,"border",j("palette-grey-600")),G(m.StepContent,"border",j("palette-grey-600")),G(m.Switch,"defaultColor",j("palette-grey-300")),G(m.Switch,"defaultDisabledColor",j("palette-grey-600")),G(m.Switch,"primaryDisabledColor",qe(m.primary.main,.55)),G(m.Switch,"secondaryDisabledColor",qe(m.secondary.main,.55)),G(m.Switch,"errorDisabledColor",qe(m.error.main,.55)),G(m.Switch,"infoDisabledColor",qe(m.info.main,.55)),G(m.Switch,"successDisabledColor",qe(m.success.main,.55)),G(m.Switch,"warningDisabledColor",qe(m.warning.main,.55)),G(m.TableCell,"border",qe(il(m.divider,1),.68)),G(m.Tooltip,"bg",il(m.grey[700],.92))}Yn(m.background,"default"),Yn(m.background,"paper"),Yn(m.common,"background"),Yn(m.common,"onBackground"),Yn(m,"divider"),Object.keys(m).forEach(B=>{const U=m[B];B!=="tonalOffset"&&U&&typeof U=="object"&&(U.main&&G(m[B],"mainChannel",Ti($i(U.main))),U.light&&G(m[B],"lightChannel",Ti($i(U.light))),U.dark&&G(m[B],"darkChannel",Ti($i(U.dark))),U.contrastText&&G(m[B],"contrastTextChannel",Ti($i(U.contrastText))),B==="text"&&(Yn(m[B],"primary"),Yn(m[B],"secondary")),B==="action"&&(U.active&&Yn(m[B],"active"),U.selected&&Yn(m[B],"selected")))})}),T=r.reduce((ne,m)=>Ot(ne,m),T);const I={prefix:c,disableCssColorScheme:a,shouldSkipGeneratingVar:f,getSelector:dx(T)},{vars:z,generateThemeVars:L,generateStyleSheets:Q}=L1(T,I);return T.vars=z,Object.entries(T.colorSchemes[T.defaultColorScheme]).forEach(([ne,m])=>{T[ne]=m}),T.generateThemeVars=L,T.generateStyleSheets=Q,T.generateSpacing=function(){return ph(y.spacing,gc(this))},T.getColorSchemeSelector=F1(p),T.spacing=T.generateSpacing(),T.shouldSkipGeneratingVar=f,T.unstable_sxConfig={...Gi,...y==null?void 0:y.unstable_sxConfig},T.unstable_sx=function(m){return Vr({sx:m,theme:this})},T.toRuntimeSource=kh,T}function hm(n,r,i){n.colorSchemes&&i&&(n.colorSchemes[r]={...i!==!0&&i,palette:Ic({...i===!0?{}:i.palette,mode:r})})}function Ph(n={},...r){const{palette:i,cssVariables:l=!1,colorSchemes:a=i?void 0:{light:!0},defaultColorScheme:c=i==null?void 0:i.mode,...f}=n,p=c||"light",h=a==null?void 0:a[p],y={...a,...i?{[p]:{...typeof h!="boolean"&&h,palette:i}}:void 0};if(l===!1){if(!("colorSchemes"in n))return Xu(n,...r);let k=i;"palette"in n||y[p]&&(y[p]!==!0?k=y[p].palette:p==="dark"&&(k={mode:"dark"}));const x=Xu({...n,palette:k},...r);return x.defaultColorScheme=p,x.colorSchemes=y,x.palette.mode==="light"&&(x.colorSchemes.light={...y.light!==!0&&y.light,palette:x.palette},hm(x,"dark",y.dark)),x.palette.mode==="dark"&&(x.colorSchemes.dark={...y.dark!==!0&&y.dark,palette:x.palette},hm(x,"light",y.light)),x}return!i&&!("light"in y)&&p==="light"&&(y.light=!0),hx({...f,colorSchemes:y,defaultColorScheme:p,...typeof l!="boolean"&&l},...r)}const _c=Ph(),Qi="$$material";function Gr(){const n=Tc(_c);return n[Qi]||n}function gx(n){return w.jsx(c1,{...n,defaultTheme:_c,themeId:Qi})}function Rh(n){return n!=="ownerState"&&n!=="theme"&&n!=="sx"&&n!=="as"}const Sn=n=>Rh(n)&&n!=="classes",ae=yh({themeId:Qi,defaultTheme:_c,rootShouldForwardProp:Sn});function yx(n){return function(i){return w.jsx(gx,{styles:typeof n=="function"?l=>n({theme:l,...i}):n})}}function vx(){return vc}const ze=O1;function Le(n){return N1(n)}function xx(n){return Ae("MuiSvgIcon",n)}Me("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sx=n=>{const{color:r,fontSize:i,classes:l}=n,a={root:["root",r!=="inherit"&&`color${Se(r)}`,`fontSize${Se(i)}`]};return Oe(a,xx,l)},wx=ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.color!=="inherit"&&r[`color${Se(i.color)}`],r[`fontSize${Se(i.fontSize)}`]]}})(ze(({theme:n})=>{var r,i,l,a,c,f,p,h,y,k,x,v,b,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(r=n.transitions)==null?void 0:r.create)==null?void 0:a.call(r,"fill",{duration:(l=(i=(n.vars??n).transitions)==null?void 0:i.duration)==null?void 0:l.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((f=(c=n.typography)==null?void 0:c.pxToRem)==null?void 0:f.call(c,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((h=(p=n.typography)==null?void 0:p.pxToRem)==null?void 0:h.call(p,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((k=(y=n.typography)==null?void 0:y.pxToRem)==null?void 0:k.call(y,35))||"2.1875rem"}},...Object.entries((n.vars??n).palette).filter(([,S])=>S&&S.main).map(([S])=>{var $,_;return{props:{color:S},style:{color:(_=($=(n.vars??n).palette)==null?void 0:$[S])==null?void 0:_.main}}}),{props:{color:"action"},style:{color:(v=(x=(n.vars??n).palette)==null?void 0:x.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(C=(b=(n.vars??n).palette)==null?void 0:b.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Zu=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiSvgIcon"}),{children:a,className:c,color:f="inherit",component:p="svg",fontSize:h="medium",htmlColor:y,inheritViewBox:k=!1,titleAccess:x,viewBox:v="0 0 24 24",...b}=l,C=P.isValidElement(a)&&a.type==="svg",S={...l,color:f,component:p,fontSize:h,instanceFontSize:r.fontSize,inheritViewBox:k,viewBox:v,hasSvgAsChild:C},$={};k||($.viewBox=v);const _=Sx(S);return w.jsxs(wx,{as:p,className:Ee(_.root,c),focusable:"false",color:y,"aria-hidden":x?void 0:!0,role:x?"img":void 0,ref:i,...$,...b,...C&&a.props,ownerState:S,children:[C?a.props.children:a,x?w.jsx("title",{children:x}):null]})});Zu.muiName="SvgIcon";function wn(n,r){function i(l,a){return w.jsx(Zu,{"data-testid":`${r}Icon`,ref:a,...l,children:n})}return i.muiName=Zu.muiName,P.memo(P.forwardRef(i))}const Th=wn(w.jsx("path",{d:"M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8zm4 18H6V4h7v5h5zM8 15.01l1.41 1.41L11 14.84V19h2v-4.16l1.59 1.59L16 15.01 12.01 11z"}),"UploadFile");function $h(n,r){if(n==null)return{};var i={};for(var l in n)if({}.hasOwnProperty.call(n,l)){if(r.indexOf(l)!==-1)continue;i[l]=n[l]}return i}function ec(n,r){return ec=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,l){return i.__proto__=l,i},ec(n,r)}function Ih(n,r){n.prototype=Object.create(r.prototype),n.prototype.constructor=n,ec(n,r)}var _h=Dm();const ll=cc(_h),gm={disabled:!1},Sl=An.createContext(null);var Cx=function(r){return r.scrollTop},Ii="unmounted",Wr="exited",Ur="entering",Eo="entered",tc="exiting",Cn=function(n){Ih(r,n);function r(l,a){var c;c=n.call(this,l,a)||this;var f=a,p=f&&!f.isMounting?l.enter:l.appear,h;return c.appearStatus=null,l.in?p?(h=Wr,c.appearStatus=Ur):h=Eo:l.unmountOnExit||l.mountOnEnter?h=Ii:h=Wr,c.state={status:h},c.nextCallback=null,c}r.getDerivedStateFromProps=function(a,c){var f=a.in;return f&&c.status===Ii?{status:Wr}:null};var i=r.prototype;return i.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},i.componentDidUpdate=function(a){var c=null;if(a!==this.props){var f=this.state.status;this.props.in?f!==Ur&&f!==Eo&&(c=Ur):(f===Ur||f===Eo)&&(c=tc)}this.updateStatus(!1,c)},i.componentWillUnmount=function(){this.cancelNextCallback()},i.getTimeouts=function(){var a=this.props.timeout,c,f,p;return c=f=p=a,a!=null&&typeof a!="number"&&(c=a.exit,f=a.enter,p=a.appear!==void 0?a.appear:f),{exit:c,enter:f,appear:p}},i.updateStatus=function(a,c){if(a===void 0&&(a=!1),c!==null)if(this.cancelNextCallback(),c===Ur){if(this.props.unmountOnExit||this.props.mountOnEnter){var f=this.props.nodeRef?this.props.nodeRef.current:ll.findDOMNode(this);f&&Cx(f)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Wr&&this.setState({status:Ii})},i.performEnter=function(a){var c=this,f=this.props.enter,p=this.context?this.context.isMounting:a,h=this.props.nodeRef?[p]:[ll.findDOMNode(this),p],y=h[0],k=h[1],x=this.getTimeouts(),v=p?x.appear:x.enter;if(!a&&!f||gm.disabled){this.safeSetState({status:Eo},function(){c.props.onEntered(y)});return}this.props.onEnter(y,k),this.safeSetState({status:Ur},function(){c.props.onEntering(y,k),c.onTransitionEnd(v,function(){c.safeSetState({status:Eo},function(){c.props.onEntered(y,k)})})})},i.performExit=function(){var a=this,c=this.props.exit,f=this.getTimeouts(),p=this.props.nodeRef?void 0:ll.findDOMNode(this);if(!c||gm.disabled){this.safeSetState({status:Wr},function(){a.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:tc},function(){a.props.onExiting(p),a.onTransitionEnd(f.exit,function(){a.safeSetState({status:Wr},function(){a.props.onExited(p)})})})},i.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},i.safeSetState=function(a,c){c=this.setNextCallback(c),this.setState(a,c)},i.setNextCallback=function(a){var c=this,f=!0;return this.nextCallback=function(p){f&&(f=!1,c.nextCallback=null,a(p))},this.nextCallback.cancel=function(){f=!1},this.nextCallback},i.onTransitionEnd=function(a,c){this.setNextCallback(c);var f=this.props.nodeRef?this.props.nodeRef.current:ll.findDOMNode(this),p=a==null&&!this.props.addEndListener;if(!f||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var h=this.props.nodeRef?[this.nextCallback]:[f,this.nextCallback],y=h[0],k=h[1];this.props.addEndListener(y,k)}a!=null&&setTimeout(this.nextCallback,a)},i.render=function(){var a=this.state.status;if(a===Ii)return null;var c=this.props,f=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var p=$h(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return An.createElement(Sl.Provider,{value:null},typeof f=="function"?f(a,p):An.cloneElement(An.Children.only(f),p))},r}(An.Component);Cn.contextType=Sl;Cn.propTypes={};function bo(){}Cn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bo,onEntering:bo,onEntered:bo,onExit:bo,onExiting:bo,onExited:bo};Cn.UNMOUNTED=Ii;Cn.EXITED=Wr;Cn.ENTERING=Ur;Cn.ENTERED=Eo;Cn.EXITING=tc;function kx(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function Mc(n,r){var i=function(c){return r&&P.isValidElement(c)?r(c):c},l=Object.create(null);return n&&P.Children.map(n,function(a){return a}).forEach(function(a){l[a.key]=i(a)}),l}function bx(n,r){n=n||{},r=r||{};function i(k){return k in r?r[k]:n[k]}var l=Object.create(null),a=[];for(var c in n)c in r?a.length&&(l[c]=a,a=[]):a.push(c);var f,p={};for(var h in r){if(l[h])for(f=0;f<l[h].length;f++){var y=l[h][f];p[l[h][f]]=i(y)}p[h]=i(h)}for(f=0;f<a.length;f++)p[a[f]]=i(a[f]);return p}function Hr(n,r,i){return i[r]!=null?i[r]:n.props[r]}function Ex(n,r){return Mc(n.children,function(i){return P.cloneElement(i,{onExited:r.bind(null,i),in:!0,appear:Hr(i,"appear",n),enter:Hr(i,"enter",n),exit:Hr(i,"exit",n)})})}function Px(n,r,i){var l=Mc(n.children),a=bx(r,l);return Object.keys(a).forEach(function(c){var f=a[c];if(P.isValidElement(f)){var p=c in r,h=c in l,y=r[c],k=P.isValidElement(y)&&!y.props.in;h&&(!p||k)?a[c]=P.cloneElement(f,{onExited:i.bind(null,f),in:!0,exit:Hr(f,"exit",n),enter:Hr(f,"enter",n)}):!h&&p&&!k?a[c]=P.cloneElement(f,{in:!1}):h&&p&&P.isValidElement(y)&&(a[c]=P.cloneElement(f,{onExited:i.bind(null,f),in:y.props.in,exit:Hr(f,"exit",n),enter:Hr(f,"enter",n)}))}}),a}var Rx=Object.values||function(n){return Object.keys(n).map(function(r){return n[r]})},Tx={component:"div",childFactory:function(r){return r}},Nc=function(n){Ih(r,n);function r(l,a){var c;c=n.call(this,l,a)||this;var f=c.handleExited.bind(kx(c));return c.state={contextValue:{isMounting:!0},handleExited:f,firstRender:!0},c}var i=r.prototype;return i.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},i.componentWillUnmount=function(){this.mounted=!1},r.getDerivedStateFromProps=function(a,c){var f=c.children,p=c.handleExited,h=c.firstRender;return{children:h?Ex(a,p):Px(a,f,p),firstRender:!1}},i.handleExited=function(a,c){var f=Mc(this.props.children);a.key in f||(a.props.onExited&&a.props.onExited(c),this.mounted&&this.setState(function(p){var h=vl({},p.children);return delete h[a.key],{children:h}}))},i.render=function(){var a=this.props,c=a.component,f=a.childFactory,p=$h(a,["component","childFactory"]),h=this.state.contextValue,y=Rx(this.state.children).map(f);return delete p.appear,delete p.enter,delete p.exit,c===null?An.createElement(Sl.Provider,{value:h},y):An.createElement(Sl.Provider,{value:h},An.createElement(c,p,y))},r}(An.Component);Nc.propTypes={};Nc.defaultProps=Tx;const Mh=n=>n.scrollTop;function _o(n,r){const{timeout:i,easing:l,style:a={}}=n;return{duration:a.transitionDuration??(typeof i=="number"?i:i[r.mode]||0),easing:a.transitionTimingFunction??(typeof l=="object"?l[r.mode]:l),delay:a.transitionDelay}}function $x(n){return Ae("MuiCollapse",n)}Me("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ix=n=>{const{orientation:r,classes:i}=n,l={root:["root",`${r}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${r}`],wrapperInner:["wrapperInner",`${r}`]};return Oe(l,$x,i)},_x=ae("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[i.orientation],i.state==="entered"&&r.entered,i.state==="exited"&&!i.in&&i.collapsedSize==="0px"&&r.hidden]}})(ze(({theme:n})=>({height:0,overflow:"hidden",transition:n.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:n.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:r})=>r.state==="exited"&&!r.in&&r.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Mx=ae("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(n,r)=>r.wrapper})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Nx=ae("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(n,r)=>r.wrapperInner})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),nc=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiCollapse"}),{addEndListener:a,children:c,className:f,collapsedSize:p="0px",component:h,easing:y,in:k,onEnter:x,onEntered:v,onEntering:b,onExit:C,onExited:S,onExiting:$,orientation:_="vertical",style:O,timeout:E=Ch.standard,TransitionComponent:T=Cn,...I}=l,z={...l,orientation:_,collapsedSize:p},L=Ix(z),Q=Gr(),ne=pc(),m=P.useRef(null),j=P.useRef(),B=typeof p=="number"?`${p}px`:p,U=_==="horizontal",Y=U?"width":"height",K=P.useRef(null),X=Pt(i,K),te=ie=>he=>{if(ie){const ge=K.current;he===void 0?ie(ge):ie(ge,he)}},V=()=>m.current?m.current[U?"clientWidth":"clientHeight"]:0,q=te((ie,he)=>{m.current&&U&&(m.current.style.position="absolute"),ie.style[Y]=B,x&&x(ie,he)}),J=te((ie,he)=>{const ge=V();m.current&&U&&(m.current.style.position="");const{duration:ve,easing:ye}=_o({style:O,timeout:E,easing:y},{mode:"enter"});if(E==="auto"){const _e=Q.transitions.getAutoHeightDuration(ge);ie.style.transitionDuration=`${_e}ms`,j.current=_e}else ie.style.transitionDuration=typeof ve=="string"?ve:`${ve}ms`;ie.style[Y]=`${ge}px`,ie.style.transitionTimingFunction=ye,b&&b(ie,he)}),M=te((ie,he)=>{ie.style[Y]="auto",v&&v(ie,he)}),H=te(ie=>{ie.style[Y]=`${V()}px`,C&&C(ie)}),se=te(S),le=te(ie=>{const he=V(),{duration:ge,easing:ve}=_o({style:O,timeout:E,easing:y},{mode:"exit"});if(E==="auto"){const ye=Q.transitions.getAutoHeightDuration(he);ie.style.transitionDuration=`${ye}ms`,j.current=ye}else ie.style.transitionDuration=typeof ge=="string"?ge:`${ge}ms`;ie.style[Y]=B,ie.style.transitionTimingFunction=ve,$&&$(ie)}),de=ie=>{E==="auto"&&ne.start(j.current||0,ie),a&&a(K.current,ie)};return w.jsx(T,{in:k,onEnter:q,onEntered:M,onEntering:J,onExit:H,onExited:se,onExiting:le,addEndListener:de,nodeRef:K,timeout:E==="auto"?null:E,...I,children:(ie,{ownerState:he,...ge})=>w.jsx(_x,{as:h,className:Ee(L.root,f,{entered:L.entered,exited:!k&&B==="0px"&&L.hidden}[ie]),style:{[U?"minWidth":"minHeight"]:B,...O},ref:X,ownerState:{...z,state:ie},...ge,children:w.jsx(Mx,{ownerState:{...z,state:ie},className:L.wrapper,ref:m,children:w.jsx(Nx,{ownerState:{...z,state:ie},className:L.wrapperInner,children:c})})})})});nc&&(nc.muiSupportAuto=!0);function Ox(n){return Ae("MuiPaper",n)}Me("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const Ax=n=>{const{square:r,elevation:i,variant:l,classes:a}=n,c={root:["root",l,!r&&"rounded",l==="elevation"&&`elevation${i}`]};return Oe(c,Ox,a)},jx=ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[i.variant],!i.square&&r.rounded,i.variant==="elevation"&&r[`elevation${i.elevation}`]]}})(ze(({theme:n})=>({backgroundColor:(n.vars||n).palette.background.paper,color:(n.vars||n).palette.text.primary,transition:n.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:n.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(n.vars||n).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Pr=P.forwardRef(function(r,i){var b;const l=Le({props:r,name:"MuiPaper"}),a=Gr(),{className:c,component:f="div",elevation:p=1,square:h=!1,variant:y="elevation",...k}=l,x={...l,component:f,elevation:p,square:h,variant:y},v=Ax(x);return w.jsx(jx,{as:f,ownerState:x,className:Ee(v.root,c),ref:i,...k,style:{...y==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[p],...a.vars&&{"--Paper-overlay":(b=a.vars.overlays)==null?void 0:b[p]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${On("#fff",Ju(p))}, ${On("#fff",Ju(p))})`}},...k.style}})}),Nh=P.createContext({});function nt(n,r){const{className:i,elementType:l,ownerState:a,externalForwardedProps:c,internalForwardedProps:f,shouldForwardComponentProp:p=!1,...h}=r,{component:y,slots:k={[n]:void 0},slotProps:x={[n]:void 0},...v}=c,b=k[n]||l,C=Xm(x[n],a),{props:{component:S,...$},internalRef:_}=Ym({className:i,...h,externalForwardedProps:n==="root"?v:void 0,externalSlotProps:C}),O=Pt(_,C==null?void 0:C.ref,r.ref),E=n==="root"?S||y:S,T=Km(b,{...n==="root"&&!y&&!k[n]&&f,...n!=="root"&&!k[n]&&f,...$,...E&&!p&&{as:E},...E&&p&&{component:E},ref:O},a);return[b,T]}function zx(n){return Ae("MuiAccordion",n)}const al=Me("MuiAccordion",["root","heading","rounded","expanded","disabled","gutters","region"]),Lx=n=>{const{classes:r,square:i,expanded:l,disabled:a,disableGutters:c}=n;return Oe({root:["root",!i&&"rounded",l&&"expanded",a&&"disabled",!c&&"gutters"],heading:["heading"],region:["region"]},zx,r)},Fx=ae(Pr,{name:"MuiAccordion",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[{[`& .${al.region}`]:r.region},r.root,!i.square&&r.rounded,!i.disableGutters&&r.gutters]}})(ze(({theme:n})=>{const r={duration:n.transitions.duration.shortest};return{position:"relative",transition:n.transitions.create(["margin"],r),overflowAnchor:"none","&::before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(n.vars||n).palette.divider,transition:n.transitions.create(["opacity","background-color"],r)},"&:first-of-type":{"&::before":{display:"none"}},[`&.${al.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:"none"}}},[`&.${al.disabled}`]:{backgroundColor:(n.vars||n).palette.action.disabledBackground}}}),ze(({theme:n})=>({variants:[{props:r=>!r.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(n.vars||n).shape.borderRadius,borderTopRightRadius:(n.vars||n).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(n.vars||n).shape.borderRadius,borderBottomRightRadius:(n.vars||n).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:r=>!r.disableGutters,style:{[`&.${al.expanded}`]:{margin:"16px 0"}}}]}))),Dx=ae("h3",{name:"MuiAccordion",slot:"Heading",overridesResolver:(n,r)=>r.heading})({all:"unset"}),Bx=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiAccordion"}),{children:a,className:c,defaultExpanded:f=!1,disabled:p=!1,disableGutters:h=!1,expanded:y,onChange:k,square:x=!1,slots:v={},slotProps:b={},TransitionComponent:C,TransitionProps:S,...$}=l,[_,O]=Vu({controlled:y,default:f,name:"Accordion",state:"expanded"}),E=P.useCallback(X=>{O(!_),k&&k(X,!_)},[_,k,O]),[T,...I]=P.Children.toArray(a),z=P.useMemo(()=>({expanded:_,disabled:p,disableGutters:h,toggle:E}),[_,p,h,E]),L={...l,square:x,disabled:p,disableGutters:h,expanded:_},Q=Lx(L),ne={transition:C,...v},m={transition:S,...b},j={slots:ne,slotProps:m},[B,U]=nt("heading",{elementType:Dx,externalForwardedProps:j,className:Q.heading,ownerState:L}),[Y,K]=nt("transition",{elementType:nc,externalForwardedProps:j,ownerState:L});return w.jsxs(Fx,{className:Ee(Q.root,c),ref:i,ownerState:L,square:x,...$,children:[w.jsx(B,{...U,children:w.jsx(Nh.Provider,{value:z,children:T})}),w.jsx(Y,{in:_,timeout:"auto",...K,children:w.jsx("div",{"aria-labelledby":T.props.id,id:T.props["aria-controls"],role:"region",className:Q.region,children:I})})]})});function Wx(n){return Ae("MuiAccordionDetails",n)}Me("MuiAccordionDetails",["root"]);const Ux=n=>{const{classes:r}=n;return Oe({root:["root"]},Wx,r)},Hx=ae("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(n,r)=>r.root})(ze(({theme:n})=>({padding:n.spacing(1,2,2)}))),Vx=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiAccordionDetails"}),{className:a,...c}=l,f=l,p=Ux(f);return w.jsx(Hx,{className:Ee(p.root,a),ref:i,ownerState:f,...c})});class wl{constructor(){Si(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new wl}static use(){const r=Hm(wl.create).current,[i,l]=P.useState(!1);return r.shouldMount=i,r.setShouldMount=l,P.useEffect(r.mountEffect,[i]),r}mount(){return this.mounted||(this.mounted=Kx(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...r){this.mount().then(()=>{var i;return(i=this.ref.current)==null?void 0:i.start(...r)})}stop(...r){this.mount().then(()=>{var i;return(i=this.ref.current)==null?void 0:i.stop(...r)})}pulsate(...r){this.mount().then(()=>{var i;return(i=this.ref.current)==null?void 0:i.pulsate(...r)})}}function Gx(){return wl.use()}function Kx(){let n,r;const i=new Promise((l,a)=>{n=l,r=a});return i.resolve=n,i.reject=r,i}function qx(n){const{className:r,classes:i,pulsate:l=!1,rippleX:a,rippleY:c,rippleSize:f,in:p,onExited:h,timeout:y}=n,[k,x]=P.useState(!1),v=Ee(r,i.ripple,i.rippleVisible,l&&i.ripplePulsate),b={width:f,height:f,top:-(f/2)+c,left:-(f/2)+a},C=Ee(i.child,k&&i.childLeaving,l&&i.childPulsate);return!p&&!k&&x(!0),P.useEffect(()=>{if(!p&&h!=null){const S=setTimeout(h,y);return()=>{clearTimeout(S)}}},[h,p,y]),w.jsx("span",{className:v,style:b,children:w.jsx("span",{className:C})})}const on=Me("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),rc=550,Qx=80,Yx=Oo`
69
- 0% {
70
- transform: scale(0);
71
- opacity: 0.1;
72
- }
73
-
74
- 100% {
75
- transform: scale(1);
76
- opacity: 0.3;
77
- }
78
- `,Xx=Oo`
79
- 0% {
80
- opacity: 1;
81
- }
82
-
83
- 100% {
84
- opacity: 0;
85
- }
86
- `,Jx=Oo`
87
- 0% {
88
- transform: scale(1);
89
- }
90
-
91
- 50% {
92
- transform: scale(0.92);
93
- }
94
-
95
- 100% {
96
- transform: scale(1);
97
- }
98
- `,Zx=ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),eS=ae(qx,{name:"MuiTouchRipple",slot:"Ripple"})`
99
- opacity: 0;
100
- position: absolute;
101
-
102
- &.${on.rippleVisible} {
103
- opacity: 0.3;
104
- transform: scale(1);
105
- animation-name: ${Yx};
106
- animation-duration: ${rc}ms;
107
- animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
108
- }
109
-
110
- &.${on.ripplePulsate} {
111
- animation-duration: ${({theme:n})=>n.transitions.duration.shorter}ms;
112
- }
113
-
114
- & .${on.child} {
115
- opacity: 1;
116
- display: block;
117
- width: 100%;
118
- height: 100%;
119
- border-radius: 50%;
120
- background-color: currentColor;
121
- }
122
-
123
- & .${on.childLeaving} {
124
- opacity: 0;
125
- animation-name: ${Xx};
126
- animation-duration: ${rc}ms;
127
- animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
128
- }
129
-
130
- & .${on.childPulsate} {
131
- position: absolute;
132
- /* @noflip */
133
- left: 0px;
134
- top: 0;
135
- animation-name: ${Jx};
136
- animation-duration: 2500ms;
137
- animation-timing-function: ${({theme:n})=>n.transitions.easing.easeInOut};
138
- animation-iteration-count: infinite;
139
- animation-delay: 200ms;
140
- }
141
- `,tS=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiTouchRipple"}),{center:a=!1,classes:c={},className:f,...p}=l,[h,y]=P.useState([]),k=P.useRef(0),x=P.useRef(null);P.useEffect(()=>{x.current&&(x.current(),x.current=null)},[h]);const v=P.useRef(!1),b=pc(),C=P.useRef(null),S=P.useRef(null),$=P.useCallback(T=>{const{pulsate:I,rippleX:z,rippleY:L,rippleSize:Q,cb:ne}=T;y(m=>[...m,w.jsx(eS,{classes:{ripple:Ee(c.ripple,on.ripple),rippleVisible:Ee(c.rippleVisible,on.rippleVisible),ripplePulsate:Ee(c.ripplePulsate,on.ripplePulsate),child:Ee(c.child,on.child),childLeaving:Ee(c.childLeaving,on.childLeaving),childPulsate:Ee(c.childPulsate,on.childPulsate)},timeout:rc,pulsate:I,rippleX:z,rippleY:L,rippleSize:Q},k.current)]),k.current+=1,x.current=ne},[c]),_=P.useCallback((T={},I={},z=()=>{})=>{const{pulsate:L=!1,center:Q=a||I.pulsate,fakeElement:ne=!1}=I;if((T==null?void 0:T.type)==="mousedown"&&v.current){v.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(v.current=!0);const m=ne?null:S.current,j=m?m.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,U,Y;if(Q||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)B=Math.round(j.width/2),U=Math.round(j.height/2);else{const{clientX:K,clientY:X}=T.touches&&T.touches.length>0?T.touches[0]:T;B=Math.round(K-j.left),U=Math.round(X-j.top)}if(Q)Y=Math.sqrt((2*j.width**2+j.height**2)/3),Y%2===0&&(Y+=1);else{const K=Math.max(Math.abs((m?m.clientWidth:0)-B),B)*2+2,X=Math.max(Math.abs((m?m.clientHeight:0)-U),U)*2+2;Y=Math.sqrt(K**2+X**2)}T!=null&&T.touches?C.current===null&&(C.current=()=>{$({pulsate:L,rippleX:B,rippleY:U,rippleSize:Y,cb:z})},b.start(Qx,()=>{C.current&&(C.current(),C.current=null)})):$({pulsate:L,rippleX:B,rippleY:U,rippleSize:Y,cb:z})},[a,$,b]),O=P.useCallback(()=>{_({},{pulsate:!0})},[_]),E=P.useCallback((T,I)=>{if(b.clear(),(T==null?void 0:T.type)==="touchend"&&C.current){C.current(),C.current=null,b.start(0,()=>{E(T,I)});return}C.current=null,y(z=>z.length>0?z.slice(1):z),x.current=I},[b]);return P.useImperativeHandle(i,()=>({pulsate:O,start:_,stop:E}),[O,_,E]),w.jsx(Zx,{className:Ee(on.root,c.root,f),ref:S,...p,children:w.jsx(Nc,{component:null,exit:!0,children:h})})});function nS(n){return Ae("MuiButtonBase",n)}const rS=Me("MuiButtonBase",["root","disabled","focusVisible"]),oS=n=>{const{disabled:r,focusVisible:i,focusVisibleClassName:l,classes:a}=n,f=Oe({root:["root",r&&"disabled",i&&"focusVisible"]},nS,a);return i&&l&&(f.root+=` ${l}`),f},iS=ae("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(n,r)=>r.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${rS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Oc=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiButtonBase"}),{action:a,centerRipple:c=!1,children:f,className:p,component:h="button",disabled:y=!1,disableRipple:k=!1,disableTouchRipple:x=!1,focusRipple:v=!1,focusVisibleClassName:b,LinkComponent:C="a",onBlur:S,onClick:$,onContextMenu:_,onDragLeave:O,onFocus:E,onFocusVisible:T,onKeyDown:I,onKeyUp:z,onMouseDown:L,onMouseLeave:Q,onMouseUp:ne,onTouchEnd:m,onTouchMove:j,onTouchStart:B,tabIndex:U=0,TouchRippleProps:Y,touchRippleRef:K,type:X,...te}=l,V=P.useRef(null),q=Gx(),J=Pt(q.ref,K),[M,H]=P.useState(!1);y&&M&&H(!1),P.useImperativeHandle(a,()=>({focusVisible:()=>{H(!0),V.current.focus()}}),[]);const se=q.shouldMount&&!k&&!y;P.useEffect(()=>{M&&v&&!k&&q.pulsate()},[k,v,M,q]);const le=Xn(q,"start",L,x),de=Xn(q,"stop",_,x),ie=Xn(q,"stop",O,x),he=Xn(q,"stop",ne,x),ge=Xn(q,"stop",xe=>{M&&xe.preventDefault(),Q&&Q(xe)},x),ve=Xn(q,"start",B,x),ye=Xn(q,"stop",m,x),_e=Xn(q,"stop",j,x),Te=Xn(q,"stop",xe=>{Wp(xe.target)||H(!1),S&&S(xe)},!1),Ge=Ro(xe=>{V.current||(V.current=xe.currentTarget),Wp(xe.target)&&(H(!0),T&&T(xe)),E&&E(xe)}),Re=()=>{const xe=V.current;return h&&h!=="button"&&!(xe.tagName==="A"&&xe.href)},Ke=Ro(xe=>{v&&!xe.repeat&&M&&xe.key===" "&&q.stop(xe,()=>{q.start(xe)}),xe.target===xe.currentTarget&&Re()&&xe.key===" "&&xe.preventDefault(),I&&I(xe),xe.target===xe.currentTarget&&Re()&&xe.key==="Enter"&&!y&&(xe.preventDefault(),$&&$(xe))}),Rt=Ro(xe=>{v&&xe.key===" "&&M&&!xe.defaultPrevented&&q.stop(xe,()=>{q.pulsate(xe)}),z&&z(xe),$&&xe.target===xe.currentTarget&&Re()&&xe.key===" "&&!xe.defaultPrevented&&$(xe)});let gt=h;gt==="button"&&(te.href||te.to)&&(gt=C);const at={};gt==="button"?(at.type=X===void 0?"button":X,at.disabled=y):(!te.href&&!te.to&&(at.role="button"),y&&(at["aria-disabled"]=y));const zt=Pt(i,V),ut={...l,centerRipple:c,component:h,disabled:y,disableRipple:k,disableTouchRipple:x,focusRipple:v,tabIndex:U,focusVisible:M},Ye=oS(ut);return w.jsxs(iS,{as:gt,className:Ee(Ye.root,p),ownerState:ut,onBlur:Te,onClick:$,onContextMenu:de,onFocus:Ge,onKeyDown:Ke,onKeyUp:Rt,onMouseDown:le,onMouseLeave:ge,onMouseUp:he,onDragLeave:ie,onTouchEnd:ye,onTouchMove:_e,onTouchStart:ve,ref:zt,tabIndex:y?-1:U,type:X,...at,...te,children:[f,se?w.jsx(tS,{ref:J,center:c,...Y}):null]})});function Xn(n,r,i,l=!1){return Ro(a=>(i&&i(a),l||n[r](a),!0))}function sS(n){return Ae("MuiAccordionSummary",n)}const Po=Me("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]),lS=n=>{const{classes:r,expanded:i,disabled:l,disableGutters:a}=n;return Oe({root:["root",i&&"expanded",l&&"disabled",!a&&"gutters"],focusVisible:["focusVisible"],content:["content",i&&"expanded",!a&&"contentGutters"],expandIconWrapper:["expandIconWrapper",i&&"expanded"]},sS,r)},aS=ae(Oc,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(n,r)=>r.root})(ze(({theme:n})=>{const r={duration:n.transitions.duration.shortest};return{display:"flex",width:"100%",minHeight:48,padding:n.spacing(0,2),transition:n.transitions.create(["min-height","background-color"],r),[`&.${Po.focusVisible}`]:{backgroundColor:(n.vars||n).palette.action.focus},[`&.${Po.disabled}`]:{opacity:(n.vars||n).palette.action.disabledOpacity},[`&:hover:not(.${Po.disabled})`]:{cursor:"pointer"},variants:[{props:i=>!i.disableGutters,style:{[`&.${Po.expanded}`]:{minHeight:64}}}]}})),uS=ae("span",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(n,r)=>r.content})(ze(({theme:n})=>({display:"flex",textAlign:"start",flexGrow:1,margin:"12px 0",variants:[{props:r=>!r.disableGutters,style:{transition:n.transitions.create(["margin"],{duration:n.transitions.duration.shortest}),[`&.${Po.expanded}`]:{margin:"20px 0"}}}]}))),cS=ae("span",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(n,r)=>r.expandIconWrapper})(ze(({theme:n})=>({display:"flex",color:(n.vars||n).palette.action.active,transform:"rotate(0deg)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shortest}),[`&.${Po.expanded}`]:{transform:"rotate(180deg)"}}))),dS=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiAccordionSummary"}),{children:a,className:c,expandIcon:f,focusVisibleClassName:p,onClick:h,...y}=l,{disabled:k=!1,disableGutters:x,expanded:v,toggle:b}=P.useContext(Nh),C=_=>{b&&b(_),h&&h(_)},S={...l,expanded:v,disabled:k,disableGutters:x},$=lS(S);return w.jsxs(aS,{focusRipple:!1,disableRipple:!0,disabled:k,"aria-expanded":v,className:Ee($.root,c),focusVisibleClassName:Ee($.focusVisible,p),onClick:C,ref:i,ownerState:S,...y,children:[w.jsx(uS,{className:$.content,ownerState:S,children:a}),f&&w.jsx(cS,{className:$.expandIconWrapper,ownerState:S,children:f})]})});function fS(n){return typeof n.main=="string"}function pS(n,r=[]){if(!fS(n))return!1;for(const i of r)if(!n.hasOwnProperty(i)||typeof n[i]!="string")return!1;return!0}function ln(n=[]){return([,r])=>r&&pS(r,n)}function mS(n){return Ae("MuiAlert",n)}const ym=Me("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function hS(n){return Ae("MuiCircularProgress",n)}Me("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Cr=44,oc=Oo`
142
- 0% {
143
- transform: rotate(0deg);
144
- }
145
-
146
- 100% {
147
- transform: rotate(360deg);
148
- }
149
- `,ic=Oo`
150
- 0% {
151
- stroke-dasharray: 1px, 200px;
152
- stroke-dashoffset: 0;
153
- }
154
-
155
- 50% {
156
- stroke-dasharray: 100px, 200px;
157
- stroke-dashoffset: -15px;
158
- }
159
-
160
- 100% {
161
- stroke-dasharray: 1px, 200px;
162
- stroke-dashoffset: -126px;
163
- }
164
- `,gS=typeof oc!="string"?Pc`
165
- animation: ${oc} 1.4s linear infinite;
166
- `:null,yS=typeof ic!="string"?Pc`
167
- animation: ${ic} 1.4s ease-in-out infinite;
168
- `:null,vS=n=>{const{classes:r,variant:i,color:l,disableShrink:a}=n,c={root:["root",i,`color${Se(l)}`],svg:["svg"],circle:["circle",`circle${Se(i)}`,a&&"circleDisableShrink"]};return Oe(c,hS,r)},xS=ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[i.variant],r[`color${Se(i.color)}`]]}})(ze(({theme:n})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:n.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gS||{animation:`${oc} 1.4s linear infinite`}},...Object.entries(n.palette).filter(ln()).map(([r])=>({props:{color:r},style:{color:(n.vars||n).palette[r].main}}))]}))),SS=ae("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(n,r)=>r.svg})({display:"block"}),wS=ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.circle,r[`circle${Se(i.variant)}`],i.disableShrink&&r.circleDisableShrink]}})(ze(({theme:n})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:n.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:yS||{animation:`${ic} 1.4s ease-in-out infinite`}}]}))),Oh=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiCircularProgress"}),{className:a,color:c="primary",disableShrink:f=!1,size:p=40,style:h,thickness:y=3.6,value:k=0,variant:x="indeterminate",...v}=l,b={...l,color:c,disableShrink:f,size:p,thickness:y,value:k,variant:x},C=vS(b),S={},$={},_={};if(x==="determinate"){const O=2*Math.PI*((Cr-y)/2);S.strokeDasharray=O.toFixed(3),_["aria-valuenow"]=Math.round(k),S.strokeDashoffset=`${((100-k)/100*O).toFixed(3)}px`,$.transform="rotate(-90deg)"}return w.jsx(xS,{className:Ee(C.root,a),style:{width:p,height:p,...$,...h},ownerState:b,ref:i,role:"progressbar",..._,...v,children:w.jsx(SS,{className:C.svg,ownerState:b,viewBox:`${Cr/2} ${Cr/2} ${Cr} ${Cr}`,children:w.jsx(wS,{className:C.circle,style:S,ownerState:b,cx:Cr,cy:Cr,r:(Cr-y)/2,fill:"none",strokeWidth:y})})})});function CS(n){return Ae("MuiIconButton",n)}const vm=Me("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),kS=n=>{const{classes:r,disabled:i,color:l,edge:a,size:c,loading:f}=n,p={root:["root",f&&"loading",i&&"disabled",l!=="default"&&`color${Se(l)}`,a&&`edge${Se(a)}`,`size${Se(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Oe(p,CS,r)},bS=ae(Oc,{name:"MuiIconButton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.loading&&r.loading,i.color!=="default"&&r[`color${Se(i.color)}`],i.edge&&r[`edge${Se(i.edge)}`],r[`size${Se(i.size)}`]]}})(ze(({theme:n})=>({textAlign:"center",flex:"0 0 auto",fontSize:n.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(n.vars||n).palette.action.active,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":n.vars?`rgba(${n.vars.palette.action.activeChannel} / ${n.vars.palette.action.hoverOpacity})`:On(n.palette.action.active,n.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),ze(({theme:n})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(n.palette).filter(ln()).map(([r])=>({props:{color:r},style:{color:(n.vars||n).palette[r].main}})),...Object.entries(n.palette).filter(ln()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":n.vars?`rgba(${(n.vars||n).palette[r].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:On((n.vars||n).palette[r].main,n.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:n.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:n.typography.pxToRem(28)}}],[`&.${vm.disabled}`]:{backgroundColor:"transparent",color:(n.vars||n).palette.action.disabled},[`&.${vm.loading}`]:{color:"transparent"}}))),ES=ae("span",{name:"MuiIconButton",slot:"LoadingIndicator",overridesResolver:(n,r)=>r.loadingIndicator})(({theme:n})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(n.vars||n).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ah=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiIconButton"}),{edge:a=!1,children:c,className:f,color:p="default",disabled:h=!1,disableFocusRipple:y=!1,size:k="medium",id:x,loading:v=null,loadingIndicator:b,...C}=l,S=Wi(x),$=b??w.jsx(Oh,{"aria-labelledby":S,color:"inherit",size:16}),_={...l,edge:a,color:p,disabled:h,disableFocusRipple:y,loading:v,loadingIndicator:$,size:k},O=kS(_);return w.jsxs(bS,{id:S,className:Ee(O.root,f),centerRipple:!0,focusRipple:!y,disabled:h||v,ref:i,...C,ownerState:_,children:[typeof v=="boolean"&&w.jsx("span",{className:O.loadingWrapper,style:{display:"contents"},children:w.jsx(ES,{className:O.loadingIndicator,ownerState:_,children:v&&$})}),c]})}),PS=wn(w.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),RS=wn(w.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),TS=wn(w.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),$S=wn(w.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),IS=wn(w.jsx("path",{d:"M19 6.41L17.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"),_S=n=>{const{variant:r,color:i,severity:l,classes:a}=n,c={root:["root",`color${Se(i||l)}`,`${r}${Se(i||l)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return Oe(c,mS,a)},MS=ae(Pr,{name:"MuiAlert",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[i.variant],r[`${i.variant}${Se(i.color||i.severity)}`]]}})(ze(({theme:n})=>{const r=n.palette.mode==="light"?Li:Fi,i=n.palette.mode==="light"?Fi:Li;return{...n.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(n.palette).filter(ln(["light"])).map(([l])=>({props:{colorSeverity:l,variant:"standard"},style:{color:n.vars?n.vars.palette.Alert[`${l}Color`]:r(n.palette[l].light,.6),backgroundColor:n.vars?n.vars.palette.Alert[`${l}StandardBg`]:i(n.palette[l].light,.9),[`& .${ym.icon}`]:n.vars?{color:n.vars.palette.Alert[`${l}IconColor`]}:{color:n.palette[l].main}}})),...Object.entries(n.palette).filter(ln(["light"])).map(([l])=>({props:{colorSeverity:l,variant:"outlined"},style:{color:n.vars?n.vars.palette.Alert[`${l}Color`]:r(n.palette[l].light,.6),border:`1px solid ${(n.vars||n).palette[l].light}`,[`& .${ym.icon}`]:n.vars?{color:n.vars.palette.Alert[`${l}IconColor`]}:{color:n.palette[l].main}}})),...Object.entries(n.palette).filter(ln(["dark"])).map(([l])=>({props:{colorSeverity:l,variant:"filled"},style:{fontWeight:n.typography.fontWeightMedium,...n.vars?{color:n.vars.palette.Alert[`${l}FilledColor`],backgroundColor:n.vars.palette.Alert[`${l}FilledBg`]}:{backgroundColor:n.palette.mode==="dark"?n.palette[l].dark:n.palette[l].main,color:n.palette.getContrastText(n.palette[l].main)}}}))]}})),NS=ae("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(n,r)=>r.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),OS=ae("div",{name:"MuiAlert",slot:"Message",overridesResolver:(n,r)=>r.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),AS=ae("div",{name:"MuiAlert",slot:"Action",overridesResolver:(n,r)=>r.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),xm={success:w.jsx(PS,{fontSize:"inherit"}),warning:w.jsx(RS,{fontSize:"inherit"}),error:w.jsx(TS,{fontSize:"inherit"}),info:w.jsx($S,{fontSize:"inherit"})},ul=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiAlert"}),{action:a,children:c,className:f,closeText:p="Close",color:h,components:y={},componentsProps:k={},icon:x,iconMapping:v=xm,onClose:b,role:C="alert",severity:S="success",slotProps:$={},slots:_={},variant:O="standard",...E}=l,T={...l,color:h,severity:S,variant:O,colorSeverity:h||S},I=_S(T),z={slots:{closeButton:y.CloseButton,closeIcon:y.CloseIcon,..._},slotProps:{...k,...$}},[L,Q]=nt("root",{ref:i,shouldForwardComponentProp:!0,className:Ee(I.root,f),elementType:MS,externalForwardedProps:{...z,...E},ownerState:T,additionalProps:{role:C,elevation:0}}),[ne,m]=nt("icon",{className:I.icon,elementType:NS,externalForwardedProps:z,ownerState:T}),[j,B]=nt("message",{className:I.message,elementType:OS,externalForwardedProps:z,ownerState:T}),[U,Y]=nt("action",{className:I.action,elementType:AS,externalForwardedProps:z,ownerState:T}),[K,X]=nt("closeButton",{elementType:Ah,externalForwardedProps:z,ownerState:T}),[te,V]=nt("closeIcon",{elementType:IS,externalForwardedProps:z,ownerState:T});return w.jsxs(L,{...Q,children:[x!==!1?w.jsx(ne,{...m,children:x||v[S]||xm[S]}):null,w.jsx(j,{...B,children:c}),a!=null?w.jsx(U,{...Y,children:a}):null,a==null&&b?w.jsx(U,{...Y,children:w.jsx(K,{size:"small","aria-label":p,title:p,color:"inherit",onClick:b,...X,children:w.jsx(te,{fontSize:"small",...V})})}):null]})});function jS(n){return Ae("MuiTypography",n)}Me("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const zS={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},LS=vx(),FS=n=>{const{align:r,gutterBottom:i,noWrap:l,paragraph:a,variant:c,classes:f}=n,p={root:["root",c,n.align!=="inherit"&&`align${Se(r)}`,i&&"gutterBottom",l&&"noWrap",a&&"paragraph"]};return Oe(p,jS,f)},DS=ae("span",{name:"MuiTypography",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.variant&&r[i.variant],i.align!=="inherit"&&r[`align${Se(i.align)}`],i.noWrap&&r.noWrap,i.gutterBottom&&r.gutterBottom,i.paragraph&&r.paragraph]}})(ze(({theme:n})=>{var r;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(n.typography).filter(([i,l])=>i!=="inherit"&&l&&typeof l=="object").map(([i,l])=>({props:{variant:i},style:l})),...Object.entries(n.palette).filter(ln()).map(([i])=>({props:{color:i},style:{color:(n.vars||n).palette[i].main}})),...Object.entries(((r=n.palette)==null?void 0:r.text)||{}).filter(([,i])=>typeof i=="string").map(([i])=>({props:{color:`text${Se(i)}`},style:{color:(n.vars||n).palette.text[i]}})),{props:({ownerState:i})=>i.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:i})=>i.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:i})=>i.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:i})=>i.paragraph,style:{marginBottom:16}}]}})),Sm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},be=P.forwardRef(function(r,i){const{color:l,...a}=Le({props:r,name:"MuiTypography"}),c=!zS[l],f=LS({...a,...c&&{color:l}}),{align:p="inherit",className:h,component:y,gutterBottom:k=!1,noWrap:x=!1,paragraph:v=!1,variant:b="body1",variantMapping:C=Sm,...S}=f,$={...f,align:p,color:l,className:h,component:y,gutterBottom:k,noWrap:x,paragraph:v,variant:b,variantMapping:C},_=y||(v?"p":C[b]||Sm[b])||"span",O=FS($);return w.jsx(DS,{as:_,ref:i,className:Ee(O.root,h),...S,ownerState:$,style:{...p!=="inherit"&&{"--Typography-textAlign":p},...S.style}})});function BS(n){return typeof n=="function"?n():n}const WS=P.forwardRef(function(r,i){const{children:l,container:a,disablePortal:c=!1}=r,[f,p]=P.useState(null),h=Pt(P.isValidElement(l)?Ui(l):null,i);if(br(()=>{c||p(BS(a)||document.body)},[a,c]),br(()=>{if(f&&!c)return Hu(i,f),()=>{Hu(i,null)}},[i,f,c]),c){if(P.isValidElement(l)){const y={ref:h};return P.cloneElement(l,y)}return l}return f&&_h.createPortal(l,f)});function cl(n){return parseInt(n,10)||0}const US={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function HS(n){return n==null||Object.keys(n).length===0||n.outerHeightStyle===0&&!n.overflowing}const VS=P.forwardRef(function(r,i){const{onChange:l,maxRows:a,minRows:c=1,style:f,value:p,...h}=r,{current:y}=P.useRef(p!=null),k=P.useRef(null),x=Pt(i,k),v=P.useRef(null),b=P.useRef(null),C=P.useCallback(()=>{const _=k.current,E=Zn(_).getComputedStyle(_);if(E.width==="0px")return{outerHeightStyle:0,overflowing:!1};const T=b.current;T.style.width=E.width,T.value=_.value||r.placeholder||"x",T.value.slice(-1)===`
169
- `&&(T.value+=" ");const I=E.boxSizing,z=cl(E.paddingBottom)+cl(E.paddingTop),L=cl(E.borderBottomWidth)+cl(E.borderTopWidth),Q=T.scrollHeight;T.value="x";const ne=T.scrollHeight;let m=Q;c&&(m=Math.max(Number(c)*ne,m)),a&&(m=Math.min(Number(a)*ne,m)),m=Math.max(m,ne);const j=m+(I==="border-box"?z+L:0),B=Math.abs(m-Q)<=1;return{outerHeightStyle:j,overflowing:B}},[a,c,r.placeholder]),S=P.useCallback(()=>{const _=C();if(HS(_))return;const O=_.outerHeightStyle,E=k.current;v.current!==O&&(v.current=O,E.style.height=`${O}px`),E.style.overflow=_.overflowing?"hidden":""},[C]);br(()=>{const _=()=>{S()};let O;const E=Um(_),T=k.current,I=Zn(T);I.addEventListener("resize",E);let z;return typeof ResizeObserver<"u"&&(z=new ResizeObserver(_),z.observe(T)),()=>{E.clear(),cancelAnimationFrame(O),I.removeEventListener("resize",E),z&&z.disconnect()}},[C,S]),br(()=>{S()});const $=_=>{y||S(),l&&l(_)};return w.jsxs(P.Fragment,{children:[w.jsx("textarea",{value:p,onChange:$,ref:x,rows:c,style:f,...h}),w.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:b,tabIndex:-1,style:{...US.shadow,...f,paddingTop:0,paddingBottom:0}})]})});function sc(n){return typeof n=="string"}function Ao({props:n,states:r,muiFormControl:i}){return r.reduce((l,a)=>(l[a]=n[a],i&&typeof n[a]>"u"&&(l[a]=i[a]),l),{})}const Ac=P.createContext(void 0);function jo(){return P.useContext(Ac)}function wm(n){return n!=null&&!(Array.isArray(n)&&n.length===0)}function Cl(n,r=!1){return n&&(wm(n.value)&&n.value!==""||r&&wm(n.defaultValue)&&n.defaultValue!=="")}function GS(n){return n.startAdornment}function KS(n){return Ae("MuiInputBase",n)}const Mo=Me("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var Cm;const jl=(n,r)=>{const{ownerState:i}=n;return[r.root,i.formControl&&r.formControl,i.startAdornment&&r.adornedStart,i.endAdornment&&r.adornedEnd,i.error&&r.error,i.size==="small"&&r.sizeSmall,i.multiline&&r.multiline,i.color&&r[`color${Se(i.color)}`],i.fullWidth&&r.fullWidth,i.hiddenLabel&&r.hiddenLabel]},zl=(n,r)=>{const{ownerState:i}=n;return[r.input,i.size==="small"&&r.inputSizeSmall,i.multiline&&r.inputMultiline,i.type==="search"&&r.inputTypeSearch,i.startAdornment&&r.inputAdornedStart,i.endAdornment&&r.inputAdornedEnd,i.hiddenLabel&&r.inputHiddenLabel]},qS=n=>{const{classes:r,color:i,disabled:l,error:a,endAdornment:c,focused:f,formControl:p,fullWidth:h,hiddenLabel:y,multiline:k,readOnly:x,size:v,startAdornment:b,type:C}=n,S={root:["root",`color${Se(i)}`,l&&"disabled",a&&"error",h&&"fullWidth",f&&"focused",p&&"formControl",v&&v!=="medium"&&`size${Se(v)}`,k&&"multiline",b&&"adornedStart",c&&"adornedEnd",y&&"hiddenLabel",x&&"readOnly"],input:["input",l&&"disabled",C==="search"&&"inputTypeSearch",k&&"inputMultiline",v==="small"&&"inputSizeSmall",y&&"inputHiddenLabel",b&&"inputAdornedStart",c&&"inputAdornedEnd",x&&"readOnly"]};return Oe(S,KS,r)},Ll=ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jl})(ze(({theme:n})=>({...n.typography.body1,color:(n.vars||n).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Mo.disabled}`]:{color:(n.vars||n).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:i})=>r.multiline&&i==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),Fl=ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zl})(ze(({theme:n})=>{const r=n.palette.mode==="light",i={color:"currentColor",...n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:n.transitions.create("opacity",{duration:n.transitions.duration.shorter})},l={opacity:"0 !important"},a=n.vars?{opacity:n.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Mo.formControl} &`]:{"&::-webkit-input-placeholder":l,"&::-moz-placeholder":l,"&::-ms-input-placeholder":l,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Mo.disabled}`]:{opacity:1,WebkitTextFillColor:(n.vars||n).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:c})=>c.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),km=yx({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),jc=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:c,autoFocus:f,className:p,color:h,components:y={},componentsProps:k={},defaultValue:x,disabled:v,disableInjectingGlobalStyles:b,endAdornment:C,error:S,fullWidth:$=!1,id:_,inputComponent:O="input",inputProps:E={},inputRef:T,margin:I,maxRows:z,minRows:L,multiline:Q=!1,name:ne,onBlur:m,onChange:j,onClick:B,onFocus:U,onKeyDown:Y,onKeyUp:K,placeholder:X,readOnly:te,renderSuffix:V,rows:q,size:J,slotProps:M={},slots:H={},startAdornment:se,type:le="text",value:de,...ie}=l,he=E.value!=null?E.value:de,{current:ge}=P.useRef(he!=null),ve=P.useRef(),ye=P.useCallback(Be=>{},[]),_e=Pt(ve,T,E.ref,ye),[Te,Ge]=P.useState(!1),Re=jo(),Ke=Ao({props:l,muiFormControl:Re,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Ke.focused=Re?Re.focused:Te,P.useEffect(()=>{!Re&&v&&Te&&(Ge(!1),m&&m())},[Re,v,Te,m]);const Rt=Re&&Re.onFilled,gt=Re&&Re.onEmpty,at=P.useCallback(Be=>{Cl(Be)?Rt&&Rt():gt&&gt()},[Rt,gt]);br(()=>{ge&&at({value:he})},[he,at,ge]);const zt=Be=>{U&&U(Be),E.onFocus&&E.onFocus(Be),Re&&Re.onFocus?Re.onFocus(Be):Ge(!0)},ut=Be=>{m&&m(Be),E.onBlur&&E.onBlur(Be),Re&&Re.onBlur?Re.onBlur(Be):Ge(!1)},Ye=(Be,...tr)=>{if(!ge){const nr=Be.target||ve.current;if(nr==null)throw new Error(Jn(1));at({value:nr.value})}E.onChange&&E.onChange(Be,...tr),j&&j(Be,...tr)};P.useEffect(()=>{at(ve.current)},[]);const xe=Be=>{ve.current&&Be.currentTarget===Be.target&&ve.current.focus(),B&&B(Be)};let Ln=O,Ct=E;Q&&Ln==="input"&&(q?Ct={type:void 0,minRows:q,maxRows:q,...Ct}:Ct={type:void 0,maxRows:z,minRows:L,...Ct},Ln=VS);const Fn=Be=>{at(Be.animationName==="mui-auto-fill-cancel"?ve.current:{value:"x"})};P.useEffect(()=>{Re&&Re.setAdornedStart(!!se)},[Re,se]);const er={...l,color:Ke.color||"primary",disabled:Ke.disabled,endAdornment:C,error:Ke.error,focused:Ke.focused,formControl:Re,fullWidth:$,hiddenLabel:Ke.hiddenLabel,multiline:Q,size:Ke.size,startAdornment:se,type:le},Dn=qS(er),cn=H.root||y.Root||Ll,Bn=M.root||k.root||{},Vt=H.input||y.Input||Fl;return Ct={...Ct,...M.input??k.input},w.jsxs(P.Fragment,{children:[!b&&typeof km=="function"&&(Cm||(Cm=w.jsx(km,{}))),w.jsxs(cn,{...Bn,ref:i,onClick:xe,...ie,...!sc(cn)&&{ownerState:{...er,...Bn.ownerState}},className:Ee(Dn.root,Bn.className,p,te&&"MuiInputBase-readOnly"),children:[se,w.jsx(Ac.Provider,{value:null,children:w.jsx(Vt,{"aria-invalid":Ke.error,"aria-describedby":a,autoComplete:c,autoFocus:f,defaultValue:x,disabled:Ke.disabled,id:_,onAnimationStart:Fn,name:ne,placeholder:X,readOnly:te,required:Ke.required,rows:q,value:he,onKeyDown:Y,onKeyUp:K,type:le,...Ct,...!sc(Vt)&&{as:Ln,ownerState:{...er,...Ct.ownerState}},ref:_e,className:Ee(Dn.input,Ct.className,te&&"MuiInputBase-readOnly"),onBlur:ut,onChange:Ye,onFocus:zt})}),C,V?V({...Ke,startAdornment:se}):null]})]})});function QS(n){return Ae("MuiInput",n)}const bi={...Mo,...Me("MuiInput",["root","underline","input"])};function YS(n){return Ae("MuiOutlinedInput",n)}const In={...Mo,...Me("MuiOutlinedInput",["root","notchedOutline","input"])};function XS(n){return Ae("MuiFilledInput",n)}const Dr={...Mo,...Me("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},JS=wn(w.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),ZS={entering:{opacity:1},entered:{opacity:1}},lc=P.forwardRef(function(r,i){const l=Gr(),a={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{addEndListener:c,appear:f=!0,children:p,easing:h,in:y,onEnter:k,onEntered:x,onEntering:v,onExit:b,onExited:C,onExiting:S,style:$,timeout:_=a,TransitionComponent:O=Cn,...E}=r,T=P.useRef(null),I=Pt(T,Ui(p),i),z=Y=>K=>{if(Y){const X=T.current;K===void 0?Y(X):Y(X,K)}},L=z(v),Q=z((Y,K)=>{Mh(Y);const X=_o({style:$,timeout:_,easing:h},{mode:"enter"});Y.style.webkitTransition=l.transitions.create("opacity",X),Y.style.transition=l.transitions.create("opacity",X),k&&k(Y,K)}),ne=z(x),m=z(S),j=z(Y=>{const K=_o({style:$,timeout:_,easing:h},{mode:"exit"});Y.style.webkitTransition=l.transitions.create("opacity",K),Y.style.transition=l.transitions.create("opacity",K),b&&b(Y)}),B=z(C),U=Y=>{c&&c(T.current,Y)};return w.jsx(O,{appear:f,in:y,nodeRef:T,onEnter:Q,onEntered:ne,onEntering:L,onExit:j,onExited:B,onExiting:m,addEndListener:U,timeout:_,...E,children:(Y,{ownerState:K,...X})=>P.cloneElement(p,{style:{opacity:0,visibility:Y==="exited"&&!y?"hidden":void 0,...ZS[Y],...$,...p.props.style},ref:I,...X})})});function ew(n){return Ae("MuiBackdrop",n)}Me("MuiBackdrop",["root","invisible"]);const tw=n=>{const{classes:r,invisible:i}=n;return Oe({root:["root",i&&"invisible"]},ew,r)},nw=ae("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),jh=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiBackdrop"}),{children:a,className:c,component:f="div",invisible:p=!1,open:h,components:y={},componentsProps:k={},slotProps:x={},slots:v={},TransitionComponent:b,transitionDuration:C,...S}=l,$={...l,component:f,invisible:p},_=tw($),O={transition:b,root:y.Root,...v},E={...k,...x},T={slots:O,slotProps:E},[I,z]=nt("root",{elementType:nw,externalForwardedProps:T,className:Ee(_.root,c),ownerState:$}),[L,Q]=nt("transition",{elementType:lc,externalForwardedProps:T,ownerState:$});return w.jsx(L,{in:h,timeout:C,...S,...Q,children:w.jsx(I,{"aria-hidden":!0,...z,classes:_,ref:i,children:a})})}),rw=Me("MuiBox",["root"]),ow=Ph(),Ie=d1({themeId:Qi,defaultTheme:ow,defaultClassName:rw.root,generateClassName:Gm.generate});function iw(n){return Ae("MuiButton",n)}const Br=Me("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),sw=P.createContext({}),lw=P.createContext(void 0),aw=n=>{const{color:r,disableElevation:i,fullWidth:l,size:a,variant:c,loading:f,loadingPosition:p,classes:h}=n,y={root:["root",f&&"loading",c,`${c}${Se(r)}`,`size${Se(a)}`,`${c}Size${Se(a)}`,`color${Se(r)}`,i&&"disableElevation",l&&"fullWidth",f&&`loadingPosition${Se(p)}`],startIcon:["icon","startIcon",`iconSize${Se(a)}`],endIcon:["icon","endIcon",`iconSize${Se(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},k=Oe(y,iw,h);return{...h,...k}},zh=[{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}}}],uw=ae(Oc,{shouldForwardProp:n=>Sn(n)||n==="classes",name:"MuiButton",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[i.variant],r[`${i.variant}${Se(i.color)}`],r[`size${Se(i.size)}`],r[`${i.variant}Size${Se(i.size)}`],i.color==="inherit"&&r.colorInherit,i.disableElevation&&r.disableElevation,i.fullWidth&&r.fullWidth,i.loading&&r.loading]}})(ze(({theme:n})=>{const r=n.palette.mode==="light"?n.palette.grey[300]:n.palette.grey[800],i=n.palette.mode==="light"?n.palette.grey.A100:n.palette.grey[700];return{...n.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create(["background-color","box-shadow","border-color","color"],{duration:n.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Br.disabled}`]:{color:(n.vars||n).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(n.vars||n).shadows[2],"&:hover":{boxShadow:(n.vars||n).shadows[4],"@media (hover: none)":{boxShadow:(n.vars||n).shadows[2]}},"&:active":{boxShadow:(n.vars||n).shadows[8]},[`&.${Br.focusVisible}`]:{boxShadow:(n.vars||n).shadows[6]},[`&.${Br.disabled}`]:{color:(n.vars||n).palette.action.disabled,boxShadow:(n.vars||n).shadows[0],backgroundColor:(n.vars||n).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)",[`&.${Br.disabled}`]:{border:`1px solid ${(n.vars||n).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(n.palette).filter(ln()).map(([l])=>({props:{color:l},style:{"--variant-textColor":(n.vars||n).palette[l].main,"--variant-outlinedColor":(n.vars||n).palette[l].main,"--variant-outlinedBorder":n.vars?`rgba(${n.vars.palette[l].mainChannel} / 0.5)`:On(n.palette[l].main,.5),"--variant-containedColor":(n.vars||n).palette[l].contrastText,"--variant-containedBg":(n.vars||n).palette[l].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(n.vars||n).palette[l].dark,"--variant-textBg":n.vars?`rgba(${n.vars.palette[l].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:On(n.palette[l].main,n.palette.action.hoverOpacity),"--variant-outlinedBorder":(n.vars||n).palette[l].main,"--variant-outlinedBg":n.vars?`rgba(${n.vars.palette[l].mainChannel} / ${n.vars.palette.action.hoverOpacity})`:On(n.palette[l].main,n.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":n.vars?n.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":n.vars?n.vars.palette.Button.inheritContainedHoverBg:i,"--variant-textBg":n.vars?`rgba(${n.vars.palette.text.primaryChannel} / ${n.vars.palette.action.hoverOpacity})`:On(n.palette.text.primary,n.palette.action.hoverOpacity),"--variant-outlinedBg":n.vars?`rgba(${n.vars.palette.text.primaryChannel} / ${n.vars.palette.action.hoverOpacity})`:On(n.palette.text.primary,n.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:n.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:n.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:n.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:n.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:n.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:n.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Br.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Br.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:n.transitions.create(["background-color","box-shadow","border-color"],{duration:n.transitions.duration.short}),[`&.${Br.loading}`]:{color:"transparent"}}}]}})),cw=ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.startIcon,i.loading&&r.startIconLoadingStart,r[`iconSize${Se(i.size)}`]]}})(({theme:n})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...zh]})),dw=ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.endIcon,i.loading&&r.endIconLoadingEnd,r[`iconSize${Se(i.size)}`]]}})(({theme:n})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:n.transitions.create(["opacity"],{duration:n.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...zh]})),fw=ae("span",{name:"MuiButton",slot:"LoadingIndicator",overridesResolver:(n,r)=>r.loadingIndicator})(({theme:n})=>({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:(n.vars||n).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}}]})),bm=ae("span",{name:"MuiButton",slot:"LoadingIconPlaceholder",overridesResolver:(n,r)=>r.loadingIconPlaceholder})({display:"inline-block",width:"1em",height:"1em"}),kr=P.forwardRef(function(r,i){const l=P.useContext(sw),a=P.useContext(lw),c=Oi(l,r),f=Le({props:c,name:"MuiButton"}),{children:p,color:h="primary",component:y="button",className:k,disabled:x=!1,disableElevation:v=!1,disableFocusRipple:b=!1,endIcon:C,focusVisibleClassName:S,fullWidth:$=!1,id:_,loading:O=null,loadingIndicator:E,loadingPosition:T="center",size:I="medium",startIcon:z,type:L,variant:Q="text",...ne}=f,m=Wi(_),j=E??w.jsx(Oh,{"aria-labelledby":m,color:"inherit",size:16}),B={...f,color:h,component:y,disabled:x,disableElevation:v,disableFocusRipple:b,fullWidth:$,loading:O,loadingIndicator:j,loadingPosition:T,size:I,type:L,variant:Q},U=aw(B),Y=(z||O&&T==="start")&&w.jsx(cw,{className:U.startIcon,ownerState:B,children:z||w.jsx(bm,{className:U.loadingIconPlaceholder,ownerState:B})}),K=(C||O&&T==="end")&&w.jsx(dw,{className:U.endIcon,ownerState:B,children:C||w.jsx(bm,{className:U.loadingIconPlaceholder,ownerState:B})}),X=a||"",te=typeof O=="boolean"?w.jsx("span",{className:U.loadingWrapper,style:{display:"contents"},children:O&&w.jsx(fw,{className:U.loadingIndicator,ownerState:B,children:j})}):null;return w.jsxs(uw,{ownerState:B,className:Ee(l.className,U.root,k,X),component:y,disabled:x||O,focusRipple:!b,focusVisibleClassName:Ee(U.focusVisible,S),ref:i,type:L,id:m,...ne,classes:U,children:[Y,T!=="end"&&te,p,T==="end"&&te,K]})});function pw(n){const r=xn(n);return r.body===n?Zn(n).innerWidth>r.documentElement.clientWidth:n.scrollHeight>n.clientHeight}function Mi(n,r){r?n.setAttribute("aria-hidden","true"):n.removeAttribute("aria-hidden")}function Em(n){return parseInt(Zn(n).getComputedStyle(n).paddingRight,10)||0}function mw(n){const i=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(n.tagName),l=n.tagName==="INPUT"&&n.getAttribute("type")==="hidden";return i||l}function Pm(n,r,i,l,a){const c=[r,i,...l];[].forEach.call(n.children,f=>{const p=!c.includes(f),h=!mw(f);p&&h&&Mi(f,a)})}function zu(n,r){let i=-1;return n.some((l,a)=>r(l)?(i=a,!0):!1),i}function hw(n,r){const i=[],l=n.container;if(!r.disableScrollLock){if(pw(l)){const f=Vm(Zn(l));i.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${Em(l)+f}px`;const p=xn(l).querySelectorAll(".mui-fixed");[].forEach.call(p,h=>{i.push({value:h.style.paddingRight,property:"padding-right",el:h}),h.style.paddingRight=`${Em(h)+f}px`})}let c;if(l.parentNode instanceof DocumentFragment)c=xn(l).body;else{const f=l.parentElement,p=Zn(l);c=(f==null?void 0:f.nodeName)==="HTML"&&p.getComputedStyle(f).overflowY==="scroll"?f:l}i.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return()=>{i.forEach(({value:c,el:f,property:p})=>{c?f.style.setProperty(p,c):f.style.removeProperty(p)})}}function gw(n){const r=[];return[].forEach.call(n.children,i=>{i.getAttribute("aria-hidden")==="true"&&r.push(i)}),r}class yw{constructor(){this.modals=[],this.containers=[]}add(r,i){let l=this.modals.indexOf(r);if(l!==-1)return l;l=this.modals.length,this.modals.push(r),r.modalRef&&Mi(r.modalRef,!1);const a=gw(i);Pm(i,r.mount,r.modalRef,a,!0);const c=zu(this.containers,f=>f.container===i);return c!==-1?(this.containers[c].modals.push(r),l):(this.containers.push({modals:[r],container:i,restore:null,hiddenSiblings:a}),l)}mount(r,i){const l=zu(this.containers,c=>c.modals.includes(r)),a=this.containers[l];a.restore||(a.restore=hw(a,i))}remove(r,i=!0){const l=this.modals.indexOf(r);if(l===-1)return l;const a=zu(this.containers,f=>f.modals.includes(r)),c=this.containers[a];if(c.modals.splice(c.modals.indexOf(r),1),this.modals.splice(l,1),c.modals.length===0)c.restore&&c.restore(),r.modalRef&&Mi(r.modalRef,i),Pm(c.container,r.mount,r.modalRef,c.hiddenSiblings,!1),this.containers.splice(a,1);else{const f=c.modals[c.modals.length-1];f.modalRef&&Mi(f.modalRef,!1)}return l}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const vw=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xw(n){const r=parseInt(n.getAttribute("tabindex")||"",10);return Number.isNaN(r)?n.contentEditable==="true"||(n.nodeName==="AUDIO"||n.nodeName==="VIDEO"||n.nodeName==="DETAILS")&&n.getAttribute("tabindex")===null?0:n.tabIndex:r}function Sw(n){if(n.tagName!=="INPUT"||n.type!=="radio"||!n.name)return!1;const r=l=>n.ownerDocument.querySelector(`input[type="radio"]${l}`);let i=r(`[name="${n.name}"]:checked`);return i||(i=r(`[name="${n.name}"]`)),i!==n}function ww(n){return!(n.disabled||n.tagName==="INPUT"&&n.type==="hidden"||Sw(n))}function Cw(n){const r=[],i=[];return Array.from(n.querySelectorAll(vw)).forEach((l,a)=>{const c=xw(l);c===-1||!ww(l)||(c===0?r.push(l):i.push({documentOrder:a,tabIndex:c,node:l}))}),i.sort((l,a)=>l.tabIndex===a.tabIndex?l.documentOrder-a.documentOrder:l.tabIndex-a.tabIndex).map(l=>l.node).concat(r)}function kw(){return!0}function bw(n){const{children:r,disableAutoFocus:i=!1,disableEnforceFocus:l=!1,disableRestoreFocus:a=!1,getTabbable:c=Cw,isEnabled:f=kw,open:p}=n,h=P.useRef(!1),y=P.useRef(null),k=P.useRef(null),x=P.useRef(null),v=P.useRef(null),b=P.useRef(!1),C=P.useRef(null),S=Pt(Ui(r),C),$=P.useRef(null);P.useEffect(()=>{!p||!C.current||(b.current=!i)},[i,p]),P.useEffect(()=>{if(!p||!C.current)return;const E=xn(C.current);return C.current.contains(E.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),b.current&&C.current.focus()),()=>{a||(x.current&&x.current.focus&&(h.current=!0,x.current.focus()),x.current=null)}},[p]),P.useEffect(()=>{if(!p||!C.current)return;const E=xn(C.current),T=L=>{$.current=L,!(l||!f()||L.key!=="Tab")&&E.activeElement===C.current&&L.shiftKey&&(h.current=!0,k.current&&k.current.focus())},I=()=>{var ne,m;const L=C.current;if(L===null)return;if(!E.hasFocus()||!f()||h.current){h.current=!1;return}if(L.contains(E.activeElement)||l&&E.activeElement!==y.current&&E.activeElement!==k.current)return;if(E.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!b.current)return;let Q=[];if((E.activeElement===y.current||E.activeElement===k.current)&&(Q=c(C.current)),Q.length>0){const j=!!((ne=$.current)!=null&&ne.shiftKey&&((m=$.current)==null?void 0:m.key)==="Tab"),B=Q[0],U=Q[Q.length-1];typeof B!="string"&&typeof U!="string"&&(j?U.focus():B.focus())}else L.focus()};E.addEventListener("focusin",I),E.addEventListener("keydown",T,!0);const z=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(z),E.removeEventListener("focusin",I),E.removeEventListener("keydown",T,!0)}},[i,l,a,f,p,c]);const _=E=>{x.current===null&&(x.current=E.relatedTarget),b.current=!0,v.current=E.target;const T=r.props.onFocus;T&&T(E)},O=E=>{x.current===null&&(x.current=E.relatedTarget),b.current=!0};return w.jsxs(P.Fragment,{children:[w.jsx("div",{tabIndex:p?0:-1,onFocus:O,ref:y,"data-testid":"sentinelStart"}),P.cloneElement(r,{ref:S,onFocus:_}),w.jsx("div",{tabIndex:p?0:-1,onFocus:O,ref:k,"data-testid":"sentinelEnd"})]})}function Ew(n){return typeof n=="function"?n():n}function Pw(n){return n?n.props.hasOwnProperty("in"):!1}const Rm=()=>{},dl=new yw;function Rw(n){const{container:r,disableEscapeKeyDown:i=!1,disableScrollLock:l=!1,closeAfterTransition:a=!1,onTransitionEnter:c,onTransitionExited:f,children:p,onClose:h,open:y,rootRef:k}=n,x=P.useRef({}),v=P.useRef(null),b=P.useRef(null),C=Pt(b,k),[S,$]=P.useState(!y),_=Pw(p);let O=!0;(n["aria-hidden"]==="false"||n["aria-hidden"]===!1)&&(O=!1);const E=()=>xn(v.current),T=()=>(x.current.modalRef=b.current,x.current.mount=v.current,x.current),I=()=>{dl.mount(T(),{disableScrollLock:l}),b.current&&(b.current.scrollTop=0)},z=Ro(()=>{const K=Ew(r)||E().body;dl.add(T(),K),b.current&&I()}),L=()=>dl.isTopModal(T()),Q=Ro(K=>{v.current=K,K&&(y&&L()?I():b.current&&Mi(b.current,O))}),ne=P.useCallback(()=>{dl.remove(T(),O)},[O]);P.useEffect(()=>()=>{ne()},[ne]),P.useEffect(()=>{y?z():(!_||!a)&&ne()},[y,ne,_,a,z]);const m=K=>X=>{var te;(te=K.onKeyDown)==null||te.call(K,X),!(X.key!=="Escape"||X.which===229||!L())&&(i||(X.stopPropagation(),h&&h(X,"escapeKeyDown")))},j=K=>X=>{var te;(te=K.onClick)==null||te.call(K,X),X.target===X.currentTarget&&h&&h(X,"backdropClick")};return{getRootProps:(K={})=>{const X=Qm(n);delete X.onTransitionEnter,delete X.onTransitionExited;const te={...X,...K};return{role:"presentation",...te,onKeyDown:m(te),ref:C}},getBackdropProps:(K={})=>{const X=K;return{"aria-hidden":!0,...X,onClick:j(X),open:y}},getTransitionProps:()=>{const K=()=>{$(!1),c&&c()},X=()=>{$(!0),f&&f(),a&&ne()};return{onEnter:Lp(K,(p==null?void 0:p.props.onEnter)??Rm),onExited:Lp(X,(p==null?void 0:p.props.onExited)??Rm)}},rootRef:C,portalRef:Q,isTopModal:L,exited:S,hasTransition:_}}function Tw(n){return Ae("MuiModal",n)}Me("MuiModal",["root","hidden","backdrop"]);const $w=n=>{const{open:r,exited:i,classes:l}=n;return Oe({root:["root",!r&&i&&"hidden"],backdrop:["backdrop"]},Tw,l)},Iw=ae("div",{name:"MuiModal",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,!i.open&&i.exited&&r.hidden]}})(ze(({theme:n})=>({position:"fixed",zIndex:(n.vars||n).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),_w=ae(jh,{name:"MuiModal",slot:"Backdrop",overridesResolver:(n,r)=>r.backdrop})({zIndex:-1}),zc=P.forwardRef(function(r,i){const l=Le({name:"MuiModal",props:r}),{BackdropComponent:a=_w,BackdropProps:c,classes:f,className:p,closeAfterTransition:h=!1,children:y,container:k,component:x,components:v={},componentsProps:b={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:$=!1,disablePortal:_=!1,disableRestoreFocus:O=!1,disableScrollLock:E=!1,hideBackdrop:T=!1,keepMounted:I=!1,onBackdropClick:z,onClose:L,onTransitionEnter:Q,onTransitionExited:ne,open:m,slotProps:j={},slots:B={},theme:U,...Y}=l,K={...l,closeAfterTransition:h,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:$,disablePortal:_,disableRestoreFocus:O,disableScrollLock:E,hideBackdrop:T,keepMounted:I},{getRootProps:X,getBackdropProps:te,getTransitionProps:V,portalRef:q,isTopModal:J,exited:M,hasTransition:H}=Rw({...K,rootRef:i}),se={...K,exited:M},le=$w(se),de={};if(y.props.tabIndex===void 0&&(de.tabIndex="-1"),H){const{onEnter:Te,onExited:Ge}=V();de.onEnter=Te,de.onExited=Ge}const ie={...Y,slots:{root:v.Root,backdrop:v.Backdrop,...B},slotProps:{...b,...j}},[he,ge]=nt("root",{elementType:Iw,externalForwardedProps:ie,getSlotProps:X,additionalProps:{ref:i,as:x},ownerState:se,className:Ee(p,le==null?void 0:le.root,!se.open&&se.exited&&(le==null?void 0:le.hidden))}),[ve,ye]=nt("backdrop",{elementType:a,externalForwardedProps:ie,additionalProps:c,getSlotProps:Te=>te({...Te,onClick:Ge=>{z&&z(Ge),Te!=null&&Te.onClick&&Te.onClick(Ge)}}),className:Ee(c==null?void 0:c.className,le==null?void 0:le.backdrop),ownerState:se}),_e=Pt(c==null?void 0:c.ref,ye.ref);return!I&&!m&&(!H||M)?null:w.jsx(WS,{ref:q,container:k,disablePortal:_,children:w.jsxs(he,{...ge,children:[!T&&a?w.jsx(ve,{...ye,ref:_e}):null,w.jsx(bw,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:O,isEnabled:J,open:m,children:P.cloneElement(y,de)})]})})});function Mw(n){return Ae("MuiDialog",n)}const Lu=Me("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Lh=P.createContext({}),Nw=ae(jh,{name:"MuiDialog",slot:"Backdrop",overrides:(n,r)=>r.backdrop})({zIndex:-1}),Ow=n=>{const{classes:r,scroll:i,maxWidth:l,fullWidth:a,fullScreen:c}=n,f={root:["root"],container:["container",`scroll${Se(i)}`],paper:["paper",`paperScroll${Se(i)}`,`paperWidth${Se(String(l))}`,a&&"paperFullWidth",c&&"paperFullScreen"]};return Oe(f,Mw,r)},Aw=ae(zc,{name:"MuiDialog",slot:"Root",overridesResolver:(n,r)=>r.root})({"@media print":{position:"absolute !important"}}),jw=ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.container,r[`scroll${Se(i.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"}}}]}),zw=ae(Pr,{name:"MuiDialog",slot:"Paper",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.paper,r[`scrollPaper${Se(i.scroll)}`],r[`paperWidth${Se(String(i.maxWidth))}`],i.fullWidth&&r.paperFullWidth,i.fullScreen&&r.paperFullScreen]}})(ze(({theme:n})=>({margin:32,position:"relative",overflowY:"auto","@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:r})=>!r.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:n.breakpoints.unit==="px"?Math.max(n.breakpoints.values.xs,444):`max(${n.breakpoints.values.xs}${n.breakpoints.unit}, 444px)`,[`&.${Lu.paperScrollBody}`]:{[n.breakpoints.down(Math.max(n.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(n.breakpoints.values).filter(r=>r!=="xs").map(r=>({props:{maxWidth:r},style:{maxWidth:`${n.breakpoints.values[r]}${n.breakpoints.unit}`,[`&.${Lu.paperScrollBody}`]:{[n.breakpoints.down(n.breakpoints.values[r]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:r})=>r.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:r})=>r.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Lu.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Lw=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiDialog"}),a=Gr(),c={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":f,"aria-labelledby":p,"aria-modal":h=!0,BackdropComponent:y,BackdropProps:k,children:x,className:v,disableEscapeKeyDown:b=!1,fullScreen:C=!1,fullWidth:S=!1,maxWidth:$="sm",onBackdropClick:_,onClick:O,onClose:E,open:T,PaperComponent:I=Pr,PaperProps:z={},scroll:L="paper",slots:Q={},slotProps:ne={},TransitionComponent:m=lc,transitionDuration:j=c,TransitionProps:B,...U}=l,Y={...l,disableEscapeKeyDown:b,fullScreen:C,fullWidth:S,maxWidth:$,scroll:L},K=Ow(Y),X=P.useRef(),te=Re=>{X.current=Re.target===Re.currentTarget},V=Re=>{O&&O(Re),X.current&&(X.current=null,_&&_(Re),E&&E(Re,"backdropClick"))},q=Wi(p),J=P.useMemo(()=>({titleId:q}),[q]),M={transition:m,...Q},H={transition:B,paper:z,backdrop:k,...ne},se={slots:M,slotProps:H},[le,de]=nt("root",{elementType:Aw,shouldForwardComponentProp:!0,externalForwardedProps:se,ownerState:Y,className:Ee(K.root,v),ref:i}),[ie,he]=nt("backdrop",{elementType:Nw,shouldForwardComponentProp:!0,externalForwardedProps:se,ownerState:Y}),[ge,ve]=nt("paper",{elementType:zw,shouldForwardComponentProp:!0,externalForwardedProps:se,ownerState:Y,className:Ee(K.paper,z.className)}),[ye,_e]=nt("container",{elementType:jw,externalForwardedProps:se,ownerState:Y,className:Ee(K.container)}),[Te,Ge]=nt("transition",{elementType:lc,externalForwardedProps:se,ownerState:Y,additionalProps:{appear:!0,in:T,timeout:j,role:"presentation"}});return w.jsx(le,{closeAfterTransition:!0,slots:{backdrop:ie},slotProps:{backdrop:{transitionDuration:j,as:y,...he}},disableEscapeKeyDown:b,onClose:E,open:T,onClick:V,...de,...U,children:w.jsx(Te,{...Ge,children:w.jsx(ye,{onMouseDown:te,..._e,children:w.jsx(ge,{as:I,elevation:24,role:"dialog","aria-describedby":f,"aria-labelledby":q,"aria-modal":h,...ve,children:w.jsx(Lh.Provider,{value:J,children:x})})})})})});function Fw(n){return Ae("MuiDialogContent",n)}Me("MuiDialogContent",["root","dividers"]);function Dw(n){return Ae("MuiDialogTitle",n)}const Bw=Me("MuiDialogTitle",["root"]),Ww=n=>{const{classes:r,dividers:i}=n;return Oe({root:["root",i&&"dividers"]},Fw,r)},Uw=ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.dividers&&r.dividers]}})(ze(({theme:n})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:r})=>r.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(n.vars||n).palette.divider}`,borderBottom:`1px solid ${(n.vars||n).palette.divider}`}},{props:({ownerState:r})=>!r.dividers,style:{[`.${Bw.root} + &`]:{paddingTop:0}}}]}))),Hw=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiDialogContent"}),{className:a,dividers:c=!1,...f}=l,p={...l,dividers:c},h=Ww(p);return w.jsx(Uw,{className:Ee(h.root,a),ownerState:p,ref:i,...f})}),Vw=n=>{const{classes:r}=n;return Oe({root:["root"]},Dw,r)},Gw=ae(be,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(n,r)=>r.root})({padding:"16px 24px",flex:"0 0 auto"}),Kw=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiDialogTitle"}),{className:a,id:c,...f}=l,p=l,h=Vw(p),{titleId:y=c}=P.useContext(Lh);return w.jsx(Gw,{component:"h2",className:Ee(h.root,a),ownerState:p,ref:i,variant:"h6",id:c??y,...f})}),qw=n=>{const{classes:r,disableUnderline:i,startAdornment:l,endAdornment:a,size:c,hiddenLabel:f,multiline:p}=n,h={root:["root",!i&&"underline",l&&"adornedStart",a&&"adornedEnd",c==="small"&&`size${Se(c)}`,f&&"hiddenLabel",p&&"multiline"],input:["input"]},y=Oe(h,XS,r);return{...r,...y}},Qw=ae(Ll,{shouldForwardProp:n=>Sn(n)||n==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[...jl(n,r),!i.disableUnderline&&r.underline]}})(ze(({theme:n})=>{const r=n.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",l=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:n.vars?n.vars.palette.FilledInput.bg:l,borderTopLeftRadius:(n.vars||n).shape.borderRadius,borderTopRightRadius:(n.vars||n).shape.borderRadius,transition:n.transitions.create("background-color",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),"&:hover":{backgroundColor:n.vars?n.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:l}},[`&.${Dr.focused}`]:{backgroundColor:n.vars?n.vars.palette.FilledInput.bg:l},[`&.${Dr.disabled}`]:{backgroundColor:n.vars?n.vars.palette.FilledInput.disabledBg:c},variants:[{props:({ownerState:f})=>!f.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Dr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Dr.error}`]:{"&::before, &::after":{borderBottomColor:(n.vars||n).palette.error.main}},"&::before":{borderBottom:`1px solid ${n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})`:i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Dr.disabled}, .${Dr.error}):before`]:{borderBottom:`1px solid ${(n.vars||n).palette.text.primary}`},[`&.${Dr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(n.palette).filter(ln()).map(([f])=>{var p;return{props:{disableUnderline:!1,color:f},style:{"&::after":{borderBottom:`2px solid ${(p=(n.vars||n).palette[f])==null?void 0:p.main}`}}}}),{props:({ownerState:f})=>f.startAdornment,style:{paddingLeft:12}},{props:({ownerState:f})=>f.endAdornment,style:{paddingRight:12}},{props:({ownerState:f})=>f.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:f,size:p})=>f.multiline&&p==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:f})=>f.multiline&&f.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:f})=>f.multiline&&f.hiddenLabel&&f.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),Yw=ae(Fl,{name:"MuiFilledInput",slot:"Input",overridesResolver:zl})(ze(({theme:n})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:n.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:n.palette.mode==="light"?null:"#fff",caretColor:n.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...n.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[n.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:r})=>r.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}},{props:({ownerState:r})=>r.hiddenLabel&&r.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:r})=>r.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Lc=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:c={},componentsProps:f,fullWidth:p=!1,hiddenLabel:h,inputComponent:y="input",multiline:k=!1,slotProps:x,slots:v={},type:b="text",...C}=l,S={...l,disableUnderline:a,fullWidth:p,inputComponent:y,multiline:k,type:b},$=qw(l),_={root:{ownerState:S},input:{ownerState:S}},O=x??f?Ot(_,x??f):_,E=v.root??c.Root??Qw,T=v.input??c.Input??Yw;return w.jsx(jc,{slots:{root:E,input:T},slotProps:O,fullWidth:p,inputComponent:y,multiline:k,ref:i,type:b,...C,classes:$})});Lc.muiName="Input";function Xw(n){return Ae("MuiFormControl",n)}Me("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Jw=n=>{const{classes:r,margin:i,fullWidth:l}=n,a={root:["root",i!=="none"&&`margin${Se(i)}`,l&&"fullWidth"]};return Oe(a,Xw,r)},Zw=ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,r[`margin${Se(i.margin)}`],i.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),eC=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiFormControl"}),{children:a,className:c,color:f="primary",component:p="div",disabled:h=!1,error:y=!1,focused:k,fullWidth:x=!1,hiddenLabel:v=!1,margin:b="none",required:C=!1,size:S="medium",variant:$="outlined",..._}=l,O={...l,color:f,component:p,disabled:h,error:y,fullWidth:x,hiddenLabel:v,margin:b,required:C,size:S,variant:$},E=Jw(O),[T,I]=P.useState(()=>{let K=!1;return a&&P.Children.forEach(a,X=>{if(!Iu(X,["Input","Select"]))return;const te=Iu(X,["Select"])?X.props.input:X;te&&GS(te.props)&&(K=!0)}),K}),[z,L]=P.useState(()=>{let K=!1;return a&&P.Children.forEach(a,X=>{Iu(X,["Input","Select"])&&(Cl(X.props,!0)||Cl(X.props.inputProps,!0))&&(K=!0)}),K}),[Q,ne]=P.useState(!1);h&&Q&&ne(!1);const m=k!==void 0&&!h?k:Q;let j;P.useRef(!1);const B=P.useCallback(()=>{L(!0)},[]),U=P.useCallback(()=>{L(!1)},[]),Y=P.useMemo(()=>({adornedStart:T,setAdornedStart:I,color:f,disabled:h,error:y,filled:z,focused:m,fullWidth:x,hiddenLabel:v,size:S,onBlur:()=>{ne(!1)},onFocus:()=>{ne(!0)},onEmpty:U,onFilled:B,registerEffect:j,required:C,variant:$}),[T,f,h,y,z,m,x,v,j,U,B,C,S,$]);return w.jsx(Ac.Provider,{value:Y,children:w.jsx(Zw,{as:p,ownerState:O,className:Ee(E.root,c),ref:i,..._,children:a})})});function tC(n){return Ae("MuiFormHelperText",n)}const Tm=Me("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var $m;const nC=n=>{const{classes:r,contained:i,size:l,disabled:a,error:c,filled:f,focused:p,required:h}=n,y={root:["root",a&&"disabled",c&&"error",l&&`size${Se(l)}`,i&&"contained",p&&"focused",f&&"filled",h&&"required"]};return Oe(y,tC,r)},rC=ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.size&&r[`size${Se(i.size)}`],i.contained&&r.contained,i.filled&&r.filled]}})(ze(({theme:n})=>({color:(n.vars||n).palette.text.secondary,...n.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Tm.disabled}`]:{color:(n.vars||n).palette.text.disabled},[`&.${Tm.error}`]:{color:(n.vars||n).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),oC=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiFormHelperText"}),{children:a,className:c,component:f="p",disabled:p,error:h,filled:y,focused:k,margin:x,required:v,variant:b,...C}=l,S=jo(),$=Ao({props:l,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),_={...l,component:f,contained:$.variant==="filled"||$.variant==="outlined",variant:$.variant,size:$.size,disabled:$.disabled,error:$.error,filled:$.filled,focused:$.focused,required:$.required};delete _.ownerState;const O=nC(_);return w.jsx(rC,{as:f,className:Ee(O.root,c),ref:i,...C,ownerState:_,children:a===" "?$m||($m=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function iC(n){return Ae("MuiFormLabel",n)}const Ni=Me("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),sC=n=>{const{classes:r,color:i,focused:l,disabled:a,error:c,filled:f,required:p}=n,h={root:["root",`color${Se(i)}`,a&&"disabled",c&&"error",f&&"filled",l&&"focused",p&&"required"],asterisk:["asterisk",c&&"error"]};return Oe(h,iC,r)},lC=ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,i.color==="secondary"&&r.colorSecondary,i.filled&&r.filled]}})(ze(({theme:n})=>({color:(n.vars||n).palette.text.secondary,...n.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(n.palette).filter(ln()).map(([r])=>({props:{color:r},style:{[`&.${Ni.focused}`]:{color:(n.vars||n).palette[r].main}}})),{props:{},style:{[`&.${Ni.disabled}`]:{color:(n.vars||n).palette.text.disabled},[`&.${Ni.error}`]:{color:(n.vars||n).palette.error.main}}}]}))),aC=ae("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(n,r)=>r.asterisk})(ze(({theme:n})=>({[`&.${Ni.error}`]:{color:(n.vars||n).palette.error.main}}))),uC=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiFormLabel"}),{children:a,className:c,color:f,component:p="label",disabled:h,error:y,filled:k,focused:x,required:v,...b}=l,C=jo(),S=Ao({props:l,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),$={...l,color:S.color||"primary",component:p,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},_=sC($);return w.jsxs(lC,{as:p,ownerState:$,className:Ee(_.root,c),ref:i,...b,children:[a,S.required&&w.jsxs(aC,{ownerState:$,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]})}),Im=P.createContext();function cC(n){return Ae("MuiGrid",n)}const dC=[0,1,2,3,4,5,6,7,8,9,10],fC=["column-reverse","column","row-reverse","row"],pC=["nowrap","wrap-reverse","wrap"],Ei=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],Bi=Me("MuiGrid",["root","container","item","zeroMinWidth",...dC.map(n=>`spacing-xs-${n}`),...fC.map(n=>`direction-xs-${n}`),...pC.map(n=>`wrap-xs-${n}`),...Ei.map(n=>`grid-xs-${n}`),...Ei.map(n=>`grid-sm-${n}`),...Ei.map(n=>`grid-md-${n}`),...Ei.map(n=>`grid-lg-${n}`),...Ei.map(n=>`grid-xl-${n}`)]);function mC({theme:n,ownerState:r}){let i;return n.breakpoints.keys.reduce((l,a)=>{let c={};if(r[a]&&(i=r[a]),!i)return l;if(i===!0)c={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(i==="auto")c={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const f=bl({values:r.columns,breakpoints:n.breakpoints.values}),p=typeof f=="object"?f[a]:f;if(p==null)return l;const h=`${Math.round(i/p*1e8)/1e6}%`;let y={};if(r.container&&r.item&&r.columnSpacing!==0){const k=n.spacing(r.columnSpacing);if(k!=="0px"){const x=`calc(${h} + ${k})`;y={flexBasis:x,maxWidth:x}}}c={flexBasis:h,flexGrow:0,maxWidth:h,...y}}return n.breakpoints.values[a]===0?Object.assign(l,c):l[n.breakpoints.up(a)]=c,l},{})}function hC({theme:n,ownerState:r}){const i=bl({values:r.direction,breakpoints:n.breakpoints.values});return an({theme:n},i,l=>{const a={flexDirection:l};return l.startsWith("column")&&(a[`& > .${Bi.item}`]={maxWidth:"none"}),a})}function Fh({breakpoints:n,values:r}){let i="";Object.keys(r).forEach(a=>{i===""&&r[a]!==0&&(i=a)});const l=Object.keys(n).sort((a,c)=>n[a]-n[c]);return l.slice(0,l.indexOf(i))}function gC({theme:n,ownerState:r}){const{container:i,rowSpacing:l}=r;let a={};if(i&&l!==0){const c=bl({values:l,breakpoints:n.breakpoints.values});let f;typeof c=="object"&&(f=Fh({breakpoints:n.breakpoints.values,values:c})),a=an({theme:n},c,(p,h)=>{const y=n.spacing(p);return y!=="0px"?{marginTop:`calc(-1 * ${y})`,[`& > .${Bi.item}`]:{paddingTop:y}}:f!=null&&f.includes(h)?{}:{marginTop:0,[`& > .${Bi.item}`]:{paddingTop:0}}})}return a}function yC({theme:n,ownerState:r}){const{container:i,columnSpacing:l}=r;let a={};if(i&&l!==0){const c=bl({values:l,breakpoints:n.breakpoints.values});let f;typeof c=="object"&&(f=Fh({breakpoints:n.breakpoints.values,values:c})),a=an({theme:n},c,(p,h)=>{const y=n.spacing(p);if(y!=="0px"){const k=`calc(-1 * ${y})`;return{width:`calc(100% + ${y})`,marginLeft:k,[`& > .${Bi.item}`]:{paddingLeft:y}}}return f!=null&&f.includes(h)?{}:{width:"100%",marginLeft:0,[`& > .${Bi.item}`]:{paddingLeft:0}}})}return a}function vC(n,r,i={}){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[i[`spacing-xs-${String(n)}`]];const l=[];return r.forEach(a=>{const c=n[a];Number(c)>0&&l.push(i[`spacing-${a}-${String(c)}`])}),l}const xC=ae("div",{name:"MuiGrid",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n,{container:l,direction:a,item:c,spacing:f,wrap:p,zeroMinWidth:h,breakpoints:y}=i;let k=[];l&&(k=vC(f,y,r));const x=[];return y.forEach(v=>{const b=i[v];b&&x.push(r[`grid-${v}-${String(b)}`])}),[r.root,l&&r.container,c&&r.item,h&&r.zeroMinWidth,...k,a!=="row"&&r[`direction-xs-${String(a)}`],p!=="wrap"&&r[`wrap-xs-${String(p)}`],...x]}})(({ownerState:n})=>({boxSizing:"border-box",...n.container&&{display:"flex",flexWrap:"wrap",width:"100%"},...n.item&&{margin:0},...n.zeroMinWidth&&{minWidth:0},...n.wrap!=="wrap"&&{flexWrap:n.wrap}}),hC,gC,yC,mC);function SC(n,r){if(!n||n<=0)return[];if(typeof n=="string"&&!Number.isNaN(Number(n))||typeof n=="number")return[`spacing-xs-${String(n)}`];const i=[];return r.forEach(l=>{const a=n[l];if(Number(a)>0){const c=`spacing-${l}-${String(a)}`;i.push(c)}}),i}const wC=n=>{const{classes:r,container:i,direction:l,item:a,spacing:c,wrap:f,zeroMinWidth:p,breakpoints:h}=n;let y=[];i&&(y=SC(c,h));const k=[];h.forEach(v=>{const b=n[v];b&&k.push(`grid-${v}-${String(b)}`)});const x={root:["root",i&&"container",a&&"item",p&&"zeroMinWidth",...y,l!=="row"&&`direction-xs-${String(l)}`,f!=="wrap"&&`wrap-xs-${String(f)}`,...k]};return Oe(x,cC,r)},vn=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiGrid"}),{breakpoints:a}=Gr(),c=vc(l),{className:f,columns:p,columnSpacing:h,component:y="div",container:k=!1,direction:x="row",item:v=!1,rowSpacing:b,spacing:C=0,wrap:S="wrap",zeroMinWidth:$=!1,..._}=c,O=b||C,E=h||C,T=P.useContext(Im),I=k?p||12:T,z={},L={..._};a.keys.forEach(m=>{_[m]!=null&&(z[m]=_[m],delete L[m])});const Q={...c,columns:I,container:k,direction:x,item:v,rowSpacing:O,columnSpacing:E,wrap:S,zeroMinWidth:$,spacing:C,...z,breakpoints:a.keys},ne=wC(Q);return w.jsx(Im.Provider,{value:I,children:w.jsx(xC,{ownerState:Q,className:Ee(ne.root,f),as:y,ref:i,...L})})});function ac(n){return`scale(${n}, ${n**2})`}const CC={entering:{opacity:1,transform:ac(1)},entered:{opacity:1,transform:"none"}},Fu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),uc=P.forwardRef(function(r,i){const{addEndListener:l,appear:a=!0,children:c,easing:f,in:p,onEnter:h,onEntered:y,onEntering:k,onExit:x,onExited:v,onExiting:b,style:C,timeout:S="auto",TransitionComponent:$=Cn,..._}=r,O=pc(),E=P.useRef(),T=Gr(),I=P.useRef(null),z=Pt(I,Ui(c),i),L=K=>X=>{if(K){const te=I.current;X===void 0?K(te):K(te,X)}},Q=L(k),ne=L((K,X)=>{Mh(K);const{duration:te,delay:V,easing:q}=_o({style:C,timeout:S,easing:f},{mode:"enter"});let J;S==="auto"?(J=T.transitions.getAutoHeightDuration(K.clientHeight),E.current=J):J=te,K.style.transition=[T.transitions.create("opacity",{duration:J,delay:V}),T.transitions.create("transform",{duration:Fu?J:J*.666,delay:V,easing:q})].join(","),h&&h(K,X)}),m=L(y),j=L(b),B=L(K=>{const{duration:X,delay:te,easing:V}=_o({style:C,timeout:S,easing:f},{mode:"exit"});let q;S==="auto"?(q=T.transitions.getAutoHeightDuration(K.clientHeight),E.current=q):q=X,K.style.transition=[T.transitions.create("opacity",{duration:q,delay:te}),T.transitions.create("transform",{duration:Fu?q:q*.666,delay:Fu?te:te||q*.333,easing:V})].join(","),K.style.opacity=0,K.style.transform=ac(.75),x&&x(K)}),U=L(v),Y=K=>{S==="auto"&&O.start(E.current||0,K),l&&l(I.current,K)};return w.jsx($,{appear:a,in:p,nodeRef:I,onEnter:ne,onEntered:m,onEntering:Q,onExit:B,onExited:U,onExiting:j,addEndListener:Y,timeout:S==="auto"?null:S,..._,children:(K,{ownerState:X,...te})=>P.cloneElement(c,{style:{opacity:0,transform:ac(.75),visibility:K==="exited"&&!p?"hidden":void 0,...CC[K],...C,...c.props.style},ref:z,...te})})});uc&&(uc.muiSupportAuto=!0);const kC=b1({themeId:Qi}),bC=n=>{const{classes:r,disableUnderline:i}=n,a=Oe({root:["root",!i&&"underline"],input:["input"]},QS,r);return{...r,...a}},EC=ae(Ll,{shouldForwardProp:n=>Sn(n)||n==="classes",name:"MuiInput",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[...jl(n,r),!i.disableUnderline&&r.underline]}})(ze(({theme:n})=>{let i=n.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return n.vars&&(i=`rgba(${n.vars.palette.common.onBackgroundChannel} / ${n.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:l})=>l.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:n.transitions.create("transform",{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bi.error}`]:{"&::before, &::after":{borderBottomColor:(n.vars||n).palette.error.main}},"&::before":{borderBottom:`1px solid ${i}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:n.transitions.create("border-bottom-color",{duration:n.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bi.disabled}, .${bi.error}):before`]:{borderBottom:`2px solid ${(n.vars||n).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${i}`}},[`&.${bi.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(n.palette).filter(ln()).map(([l])=>({props:{color:l,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(n.vars||n).palette[l].main}`}}}))]}})),PC=ae(Fl,{name:"MuiInput",slot:"Input",overridesResolver:zl})({}),Fc=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiInput"}),{disableUnderline:a=!1,components:c={},componentsProps:f,fullWidth:p=!1,inputComponent:h="input",multiline:y=!1,slotProps:k,slots:x={},type:v="text",...b}=l,C=bC(l),$={root:{ownerState:{disableUnderline:a}}},_=k??f?Ot(k??f,$):$,O=x.root??c.Root??EC,E=x.input??c.Input??PC;return w.jsx(jc,{slots:{root:O,input:E},slotProps:_,fullWidth:p,inputComponent:h,multiline:y,ref:i,type:v,...b,classes:C})});Fc.muiName="Input";function RC(n){return Ae("MuiInputLabel",n)}Me("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const TC=n=>{const{classes:r,formControl:i,size:l,shrink:a,disableAnimation:c,variant:f,required:p}=n,h={root:["root",i&&"formControl",!c&&"animated",a&&"shrink",l&&l!=="normal"&&`size${Se(l)}`,f],asterisk:[p&&"asterisk"]},y=Oe(h,RC,r);return{...r,...y}},$C=ae(uC,{shouldForwardProp:n=>Sn(n)||n==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[{[`& .${Ni.asterisk}`]:r.asterisk},r.root,i.formControl&&r.formControl,i.size==="small"&&r.sizeSmall,i.shrink&&r.shrink,!i.disableAnimation&&r.animated,i.focused&&r.focused,r[i.variant]]}})(ze(({theme:n})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:n.transitions.create(["color","transform","max-width"],{duration:n.transitions.duration.shorter,easing:n.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:i})=>r==="filled"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:i,size:l})=>r==="filled"&&i.shrink&&l==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:i})=>r==="outlined"&&i.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),IC=P.forwardRef(function(r,i){const l=Le({name:"MuiInputLabel",props:r}),{disableAnimation:a=!1,margin:c,shrink:f,variant:p,className:h,...y}=l,k=jo();let x=f;typeof x>"u"&&k&&(x=k.filled||k.focused||k.adornedStart);const v=Ao({props:l,muiFormControl:k,states:["size","variant","required","focused"]}),b={...l,disableAnimation:a,formControl:k,shrink:x,size:v.size,variant:v.variant,required:v.required,focused:v.focused},C=TC(b);return w.jsx($C,{"data-shrink":x,ref:i,className:Ee(C.root,h),...y,ownerState:b,classes:C})}),_C=P.createContext({});function MC(n){return Ae("MuiList",n)}Me("MuiList",["root","padding","dense","subheader"]);const NC=n=>{const{classes:r,disablePadding:i,dense:l,subheader:a}=n;return Oe({root:["root",!i&&"padding",l&&"dense",a&&"subheader"]},MC,r)},OC=ae("ul",{name:"MuiList",slot:"Root",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.root,!i.disablePadding&&r.padding,i.dense&&r.dense,i.subheader&&r.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:n})=>!n.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:n})=>n.subheader,style:{paddingTop:0}}]}),AC=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiList"}),{children:a,className:c,component:f="ul",dense:p=!1,disablePadding:h=!1,subheader:y,...k}=l,x=P.useMemo(()=>({dense:p}),[p]),v={...l,component:f,dense:p,disablePadding:h},b=NC(v);return w.jsx(_C.Provider,{value:x,children:w.jsxs(OC,{as:f,className:Ee(b.root,c),ref:i,ownerState:v,...k,children:[y,a]})})});function Du(n,r,i){return n===r?n.firstChild:r&&r.nextElementSibling?r.nextElementSibling:i?null:n.firstChild}function _m(n,r,i){return n===r?i?n.firstChild:n.lastChild:r&&r.previousElementSibling?r.previousElementSibling:i?null:n.lastChild}function Dh(n,r){if(r===void 0)return!0;let i=n.innerText;return i===void 0&&(i=n.textContent),i=i.trim().toLowerCase(),i.length===0?!1:r.repeating?i[0]===r.keys[0]:i.startsWith(r.keys.join(""))}function Pi(n,r,i,l,a,c){let f=!1,p=a(n,r,r?i:!1);for(;p;){if(p===n.firstChild){if(f)return!1;f=!0}const h=l?!1:p.disabled||p.getAttribute("aria-disabled")==="true";if(!p.hasAttribute("tabindex")||!Dh(p,c)||h)p=a(n,p,i);else return p.focus(),!0}return!1}const jC=P.forwardRef(function(r,i){const{actions:l,autoFocus:a=!1,autoFocusItem:c=!1,children:f,className:p,disabledItemsFocusable:h=!1,disableListWrap:y=!1,onKeyDown:k,variant:x="selectedMenu",...v}=r,b=P.useRef(null),C=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});br(()=>{a&&b.current.focus()},[a]),P.useImperativeHandle(l,()=>({adjustStyleForScrollbar:(E,{direction:T})=>{const I=!b.current.style.width;if(E.clientHeight<b.current.clientHeight&&I){const z=`${Vm(Zn(E))}px`;b.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=z,b.current.style.width=`calc(100% + ${z})`}return b.current}}),[]);const S=E=>{const T=b.current,I=E.key;if(E.ctrlKey||E.metaKey||E.altKey){k&&k(E);return}const L=xn(T).activeElement;if(I==="ArrowDown")E.preventDefault(),Pi(T,L,y,h,Du);else if(I==="ArrowUp")E.preventDefault(),Pi(T,L,y,h,_m);else if(I==="Home")E.preventDefault(),Pi(T,null,y,h,Du);else if(I==="End")E.preventDefault(),Pi(T,null,y,h,_m);else if(I.length===1){const Q=C.current,ne=I.toLowerCase(),m=performance.now();Q.keys.length>0&&(m-Q.lastTime>500?(Q.keys=[],Q.repeating=!0,Q.previousKeyMatched=!0):Q.repeating&&ne!==Q.keys[0]&&(Q.repeating=!1)),Q.lastTime=m,Q.keys.push(ne);const j=L&&!Q.repeating&&Dh(L,Q);Q.previousKeyMatched&&(j||Pi(T,L,!1,h,Du,Q))?E.preventDefault():Q.previousKeyMatched=!1}k&&k(E)},$=Pt(b,i);let _=-1;P.Children.forEach(f,(E,T)=>{if(!P.isValidElement(E)){_===T&&(_+=1,_>=f.length&&(_=-1));return}E.props.disabled||(x==="selectedMenu"&&E.props.selected||_===-1)&&(_=T),_===T&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(_+=1,_>=f.length&&(_=-1))});const O=P.Children.map(f,(E,T)=>{if(T===_){const I={};return c&&(I.autoFocus=!0),E.props.tabIndex===void 0&&x==="selectedMenu"&&(I.tabIndex=0),P.cloneElement(E,I)}return E});return w.jsx(AC,{role:"menu",ref:$,className:p,onKeyDown:S,tabIndex:a?0:-1,...v,children:O})});function zC(n){return Ae("MuiPopover",n)}Me("MuiPopover",["root","paper"]);function Mm(n,r){let i=0;return typeof r=="number"?i=r:r==="center"?i=n.height/2:r==="bottom"&&(i=n.height),i}function Nm(n,r){let i=0;return typeof r=="number"?i=r:r==="center"?i=n.width/2:r==="right"&&(i=n.width),i}function Om(n){return[n.horizontal,n.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function Bu(n){return typeof n=="function"?n():n}const LC=n=>{const{classes:r}=n;return Oe({root:["root"],paper:["paper"]},zC,r)},FC=ae(zc,{name:"MuiPopover",slot:"Root",overridesResolver:(n,r)=>r.root})({}),Bh=ae(Pr,{name:"MuiPopover",slot:"Paper",overridesResolver:(n,r)=>r.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),DC=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:h="anchorEl",children:y,className:k,container:x,elevation:v=8,marginThreshold:b=16,open:C,PaperProps:S={},slots:$={},slotProps:_={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:E=uc,transitionDuration:T="auto",TransitionProps:{onEntering:I,...z}={},disableScrollLock:L=!1,...Q}=l,ne=(_==null?void 0:_.paper)??S,m=P.useRef(),j={...l,anchorOrigin:f,anchorReference:h,elevation:v,marginThreshold:b,externalPaperSlotProps:ne,transformOrigin:O,TransitionComponent:E,transitionDuration:T,TransitionProps:z},B=LC(j),U=P.useCallback(()=>{if(h==="anchorPosition")return p;const ye=Bu(c),Te=(ye&&ye.nodeType===1?ye:xn(m.current).body).getBoundingClientRect();return{top:Te.top+Mm(Te,f.vertical),left:Te.left+Nm(Te,f.horizontal)}},[c,f.horizontal,f.vertical,p,h]),Y=P.useCallback(ye=>({vertical:Mm(ye,O.vertical),horizontal:Nm(ye,O.horizontal)}),[O.horizontal,O.vertical]),K=P.useCallback(ye=>{const _e={width:ye.offsetWidth,height:ye.offsetHeight},Te=Y(_e);if(h==="none")return{top:null,left:null,transformOrigin:Om(Te)};const Ge=U();let Re=Ge.top-Te.vertical,Ke=Ge.left-Te.horizontal;const Rt=Re+_e.height,gt=Ke+_e.width,at=Zn(Bu(c)),zt=at.innerHeight-b,ut=at.innerWidth-b;if(b!==null&&Re<b){const Ye=Re-b;Re-=Ye,Te.vertical+=Ye}else if(b!==null&&Rt>zt){const Ye=Rt-zt;Re-=Ye,Te.vertical+=Ye}if(b!==null&&Ke<b){const Ye=Ke-b;Ke-=Ye,Te.horizontal+=Ye}else if(gt>ut){const Ye=gt-ut;Ke-=Ye,Te.horizontal+=Ye}return{top:`${Math.round(Re)}px`,left:`${Math.round(Ke)}px`,transformOrigin:Om(Te)}},[c,h,U,Y,b]),[X,te]=P.useState(C),V=P.useCallback(()=>{const ye=m.current;if(!ye)return;const _e=K(ye);_e.top!==null&&ye.style.setProperty("top",_e.top),_e.left!==null&&(ye.style.left=_e.left),ye.style.transformOrigin=_e.transformOrigin,te(!0)},[K]);P.useEffect(()=>(L&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[c,L,V]);const q=(ye,_e)=>{I&&I(ye,_e),V()},J=()=>{te(!1)};P.useEffect(()=>{C&&V()}),P.useImperativeHandle(a,()=>C?{updatePosition:()=>{V()}}:null,[C,V]),P.useEffect(()=>{if(!C)return;const ye=Um(()=>{V()}),_e=Zn(c);return _e.addEventListener("resize",ye),()=>{ye.clear(),_e.removeEventListener("resize",ye)}},[c,C,V]);let M=T;T==="auto"&&!E.muiSupportAuto&&(M=void 0);const H=x||(c?xn(Bu(c)).body:void 0),se={slots:$,slotProps:{..._,paper:ne}},[le,de]=nt("paper",{elementType:Bh,externalForwardedProps:se,additionalProps:{elevation:v,className:Ee(B.paper,ne==null?void 0:ne.className),style:X?ne.style:{...ne.style,opacity:0}},ownerState:j}),[ie,{slotProps:he,...ge}]=nt("root",{elementType:FC,externalForwardedProps:se,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:H,open:C},ownerState:j,className:Ee(B.root,k)}),ve=Pt(m,de.ref);return w.jsx(ie,{...ge,...!sc(ie)&&{slotProps:he,disableScrollLock:L},...Q,ref:i,children:w.jsx(E,{appear:!0,in:C,onEntering:q,onExited:J,timeout:M,...z,children:w.jsx(le,{...de,ref:ve,children:y})})})});function BC(n){return Ae("MuiMenu",n)}Me("MuiMenu",["root","paper","list"]);const WC={vertical:"top",horizontal:"right"},UC={vertical:"top",horizontal:"left"},HC=n=>{const{classes:r}=n;return Oe({root:["root"],paper:["paper"],list:["list"]},BC,r)},VC=ae(DC,{shouldForwardProp:n=>Sn(n)||n==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(n,r)=>r.root})({}),GC=ae(Bh,{name:"MuiMenu",slot:"Paper",overridesResolver:(n,r)=>r.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),KC=ae(jC,{name:"MuiMenu",slot:"List",overridesResolver:(n,r)=>r.list})({outline:0}),qC=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiMenu"}),{autoFocus:a=!0,children:c,className:f,disableAutoFocusItem:p=!1,MenuListProps:h={},onClose:y,open:k,PaperProps:x={},PopoverClasses:v,transitionDuration:b="auto",TransitionProps:{onEntering:C,...S}={},variant:$="selectedMenu",slots:_={},slotProps:O={},...E}=l,T=I1(),I={...l,autoFocus:a,disableAutoFocusItem:p,MenuListProps:h,onEntering:C,PaperProps:x,transitionDuration:b,TransitionProps:S,variant:$},z=HC(I),L=a&&!p&&k,Q=P.useRef(null),ne=(X,te)=>{Q.current&&Q.current.adjustStyleForScrollbar(X,{direction:T?"rtl":"ltr"}),C&&C(X,te)},m=X=>{X.key==="Tab"&&(X.preventDefault(),y&&y(X,"tabKeyDown"))};let j=-1;P.Children.map(c,(X,te)=>{P.isValidElement(X)&&(X.props.disabled||($==="selectedMenu"&&X.props.selected||j===-1)&&(j=te))});const B=_.paper??GC,U=O.paper??x,Y=Vp({elementType:_.root,externalSlotProps:O.root,ownerState:I,className:[z.root,f]}),K=Vp({elementType:B,externalSlotProps:U,ownerState:I,className:z.paper});return w.jsx(VC,{onClose:y,anchorOrigin:{vertical:"bottom",horizontal:T?"right":"left"},transformOrigin:T?WC:UC,slots:{paper:B,root:_.root},slotProps:{root:Y,paper:K},open:k,ref:i,transitionDuration:b,TransitionProps:{onEntering:ne,...S},ownerState:I,...E,classes:v,children:w.jsx(KC,{onKeyDown:m,actions:Q,autoFocus:a&&(j===-1||p),autoFocusItem:L,variant:$,...h,className:Ee(z.list,h.className),children:c})})});function QC(n){return Ae("MuiNativeSelect",n)}const Dc=Me("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YC=n=>{const{classes:r,variant:i,disabled:l,multiple:a,open:c,error:f}=n,p={select:["select",i,l&&"disabled",a&&"multiple",f&&"error"],icon:["icon",`icon${Se(i)}`,c&&"iconOpen",l&&"disabled"]};return Oe(p,QC,r)},Wh=ae("select")(({theme:n})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Dc.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(n.vars||n).palette.background.paper},variants:[{props:({ownerState:r})=>r.variant!=="filled"&&r.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(n.vars||n).shape.borderRadius,"&:focus":{borderRadius:(n.vars||n).shape.borderRadius},"&&&":{paddingRight:32}}}]})),XC=ae(Wh,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Sn,overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.select,r[i.variant],i.error&&r.error,{[`&.${Dc.multiple}`]:r.multiple}]}})({}),Uh=ae("svg")(({theme:n})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(n.vars||n).palette.action.active,[`&.${Dc.disabled}`]:{color:(n.vars||n).palette.action.disabled},variants:[{props:({ownerState:r})=>r.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),JC=ae(Uh,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.icon,i.variant&&r[`icon${Se(i.variant)}`],i.open&&r.iconOpen]}})({}),ZC=P.forwardRef(function(r,i){const{className:l,disabled:a,error:c,IconComponent:f,inputRef:p,variant:h="standard",...y}=r,k={...r,disabled:a,variant:h,error:c},x=YC(k);return w.jsxs(P.Fragment,{children:[w.jsx(XC,{ownerState:k,className:Ee(x.select,l),disabled:a,ref:p||i,...y}),r.multiple?null:w.jsx(JC,{as:f,ownerState:k,className:x.icon})]})});var Am;const e2=ae("fieldset",{shouldForwardProp:Sn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),t2=ae("legend",{shouldForwardProp:Sn})(ze(({theme:n})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:r})=>!r.withLabel,style:{padding:0,lineHeight:"11px",transition:n.transitions.create("width",{duration:150,easing:n.transitions.easing.easeOut})}},{props:({ownerState:r})=>r.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:n.transitions.create("max-width",{duration:50,easing:n.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:r})=>r.withLabel&&r.notched,style:{maxWidth:"100%",transition:n.transitions.create("max-width",{duration:100,easing:n.transitions.easing.easeOut,delay:50})}}]})));function n2(n){const{children:r,classes:i,className:l,label:a,notched:c,...f}=n,p=a!=null&&a!=="",h={...n,notched:c,withLabel:p};return w.jsx(e2,{"aria-hidden":!0,className:l,ownerState:h,...f,children:w.jsx(t2,{ownerState:h,children:p?w.jsx("span",{children:a}):Am||(Am=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const r2=n=>{const{classes:r}=n,l=Oe({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},YS,r);return{...r,...l}},o2=ae(Ll,{shouldForwardProp:n=>Sn(n)||n==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:jl})(ze(({theme:n})=>{const r=n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(n.vars||n).shape.borderRadius,[`&:hover .${In.notchedOutline}`]:{borderColor:(n.vars||n).palette.text.primary},"@media (hover: none)":{[`&:hover .${In.notchedOutline}`]:{borderColor:n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${In.focused} .${In.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(n.palette).filter(ln()).map(([i])=>({props:{color:i},style:{[`&.${In.focused} .${In.notchedOutline}`]:{borderColor:(n.vars||n).palette[i].main}}})),{props:{},style:{[`&.${In.error} .${In.notchedOutline}`]:{borderColor:(n.vars||n).palette.error.main},[`&.${In.disabled} .${In.notchedOutline}`]:{borderColor:(n.vars||n).palette.action.disabled}}},{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:14}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:14}},{props:({ownerState:i})=>i.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:i,size:l})=>i.multiline&&l==="small",style:{padding:"8.5px 14px"}}]}})),i2=ae(n2,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(n,r)=>r.notchedOutline})(ze(({theme:n})=>{const r=n.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:n.vars?`rgba(${n.vars.palette.common.onBackgroundChannel} / 0.23)`:r}})),s2=ae(Fl,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zl})(ze(({theme:n})=>({padding:"16.5px 14px",...!n.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:n.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:n.palette.mode==="light"?null:"#fff",caretColor:n.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...n.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[n.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:r})=>r.multiline,style:{padding:0}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}}]}))),Bc=P.forwardRef(function(r,i){var l;const a=Le({props:r,name:"MuiOutlinedInput"}),{components:c={},fullWidth:f=!1,inputComponent:p="input",label:h,multiline:y=!1,notched:k,slots:x={},type:v="text",...b}=a,C=r2(a),S=jo(),$=Ao({props:a,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),_={...a,color:$.color||"primary",disabled:$.disabled,error:$.error,focused:$.focused,formControl:S,fullWidth:f,hiddenLabel:$.hiddenLabel,multiline:y,size:$.size,type:v},O=x.root??c.Root??o2,E=x.input??c.Input??s2;return w.jsx(jc,{slots:{root:O,input:E},renderSuffix:T=>w.jsx(i2,{ownerState:_,className:C.notchedOutline,label:h!=null&&h!==""&&$.required?l||(l=w.jsxs(P.Fragment,{children:[h," ","*"]})):h,notched:typeof k<"u"?k:!!(T.startAdornment||T.filled||T.focused)}),fullWidth:f,inputComponent:p,multiline:y,ref:i,type:v,...b,classes:{...C,notchedOutline:null}})});Bc.muiName="Input";function Hh(n){return Ae("MuiSelect",n)}const Ri=Me("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var jm;const l2=ae(Wh,{name:"MuiSelect",slot:"Select",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[{[`&.${Ri.select}`]:r.select},{[`&.${Ri.select}`]:r[i.variant]},{[`&.${Ri.error}`]:r.error},{[`&.${Ri.multiple}`]:r.multiple}]}})({[`&.${Ri.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),a2=ae(Uh,{name:"MuiSelect",slot:"Icon",overridesResolver:(n,r)=>{const{ownerState:i}=n;return[r.icon,i.variant&&r[`icon${Se(i.variant)}`],i.open&&r.iconOpen]}})({}),u2=ae("input",{shouldForwardProp:n=>Rh(n)&&n!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(n,r)=>r.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zm(n,r){return typeof r=="object"&&r!==null?n===r:String(n)===String(r)}function c2(n){return n==null||typeof n=="string"&&!n.trim()}const d2=n=>{const{classes:r,variant:i,disabled:l,multiple:a,open:c,error:f}=n,p={select:["select",i,l&&"disabled",a&&"multiple",f&&"error"],icon:["icon",`icon${Se(i)}`,c&&"iconOpen",l&&"disabled"],nativeInput:["nativeInput"]};return Oe(p,Hh,r)},f2=P.forwardRef(function(r,i){var zo;const{"aria-describedby":l,"aria-label":a,autoFocus:c,autoWidth:f,children:p,className:h,defaultOpen:y,defaultValue:k,disabled:x,displayEmpty:v,error:b=!1,IconComponent:C,inputRef:S,labelId:$,MenuProps:_={},multiple:O,name:E,onBlur:T,onChange:I,onClose:z,onFocus:L,onOpen:Q,open:ne,readOnly:m,renderValue:j,required:B,SelectDisplayProps:U={},tabIndex:Y,type:K,value:X,variant:te="standard",...V}=r,[q,J]=Vu({controlled:X,default:k,name:"Select"}),[M,H]=Vu({controlled:ne,default:y,name:"Select"}),se=P.useRef(null),le=P.useRef(null),[de,ie]=P.useState(null),{current:he}=P.useRef(ne!=null),[ge,ve]=P.useState(),ye=Pt(i,S),_e=P.useCallback(ke=>{le.current=ke,ke&&ie(ke)},[]),Te=de==null?void 0:de.parentNode;P.useImperativeHandle(ye,()=>({focus:()=>{le.current.focus()},node:se.current,value:q}),[q]),P.useEffect(()=>{y&&M&&de&&!he&&(ve(f?null:Te.clientWidth),le.current.focus())},[de,f]),P.useEffect(()=>{c&&le.current.focus()},[c]),P.useEffect(()=>{if(!$)return;const ke=xn(le.current).getElementById($);if(ke){const Ue=()=>{getSelection().isCollapsed&&le.current.focus()};return ke.addEventListener("click",Ue),()=>{ke.removeEventListener("click",Ue)}}},[$]);const Ge=(ke,Ue)=>{ke?Q&&Q(Ue):z&&z(Ue),he||(ve(f?null:Te.clientWidth),H(ke))},Re=ke=>{ke.button===0&&(ke.preventDefault(),le.current.focus(),Ge(!0,ke))},Ke=ke=>{Ge(!1,ke)},Rt=P.Children.toArray(p),gt=ke=>{const Ue=Rt.find(ct=>ct.props.value===ke.target.value);Ue!==void 0&&(J(Ue.props.value),I&&I(ke,Ue))},at=ke=>Ue=>{let ct;if(Ue.currentTarget.hasAttribute("tabindex")){if(O){ct=Array.isArray(q)?q.slice():[];const kn=q.indexOf(ke.props.value);kn===-1?ct.push(ke.props.value):ct.splice(kn,1)}else ct=ke.props.value;if(ke.props.onClick&&ke.props.onClick(Ue),q!==ct&&(J(ct),I)){const kn=Ue.nativeEvent||Ue,Kr=new kn.constructor(kn.type,kn);Object.defineProperty(Kr,"target",{writable:!0,value:{value:ct,name:E}}),I(Kr,ke)}O||Ge(!1,Ue)}},zt=ke=>{m||[" ","ArrowUp","ArrowDown","Enter"].includes(ke.key)&&(ke.preventDefault(),Ge(!0,ke))},ut=de!==null&&M,Ye=ke=>{!ut&&T&&(Object.defineProperty(ke,"target",{writable:!0,value:{value:q,name:E}}),T(ke))};delete V["aria-invalid"];let xe,Ln;const Ct=[];let Fn=!1;(Cl({value:q})||v)&&(j?xe=j(q):Fn=!0);const er=Rt.map(ke=>{if(!P.isValidElement(ke))return null;let Ue;if(O){if(!Array.isArray(q))throw new Error(Jn(2));Ue=q.some(ct=>zm(ct,ke.props.value)),Ue&&Fn&&Ct.push(ke.props.children)}else Ue=zm(q,ke.props.value),Ue&&Fn&&(Ln=ke.props.children);return P.cloneElement(ke,{"aria-selected":Ue?"true":"false",onClick:at(ke),onKeyUp:ct=>{ct.key===" "&&ct.preventDefault(),ke.props.onKeyUp&&ke.props.onKeyUp(ct)},role:"option",selected:Ue,value:void 0,"data-value":ke.props.value})});Fn&&(O?Ct.length===0?xe=null:xe=Ct.reduce((ke,Ue,ct)=>(ke.push(Ue),ct<Ct.length-1&&ke.push(", "),ke),[]):xe=Ln);let Dn=ge;!f&&he&&de&&(Dn=Te.clientWidth);let cn;typeof Y<"u"?cn=Y:cn=x?null:0;const Bn=U.id||(E?`mui-component-select-${E}`:void 0),Vt={...r,variant:te,value:q,open:ut,error:b},Be=d2(Vt),tr={..._.PaperProps,...(zo=_.slotProps)==null?void 0:zo.paper},nr=Wi();return w.jsxs(P.Fragment,{children:[w.jsx(l2,{as:"div",ref:_e,tabIndex:cn,role:"combobox","aria-controls":ut?nr:void 0,"aria-disabled":x?"true":void 0,"aria-expanded":ut?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[$,Bn].filter(Boolean).join(" ")||void 0,"aria-describedby":l,"aria-required":B?"true":void 0,"aria-invalid":b?"true":void 0,onKeyDown:zt,onMouseDown:x||m?null:Re,onBlur:Ye,onFocus:L,...U,ownerState:Vt,className:Ee(U.className,Be.select,h),id:Bn,children:c2(xe)?jm||(jm=w.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):xe}),w.jsx(u2,{"aria-invalid":b,value:Array.isArray(q)?q.join(","):q,name:E,ref:se,"aria-hidden":!0,onChange:gt,tabIndex:-1,disabled:x,className:Be.nativeInput,autoFocus:c,required:B,...V,ownerState:Vt}),w.jsx(a2,{as:C,className:Be.icon,ownerState:Vt}),w.jsx(qC,{id:`menu-${E||""}`,anchorEl:Te,open:ut,onClose:Ke,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},..._,MenuListProps:{"aria-labelledby":$,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:nr,..._.MenuListProps},slotProps:{..._.slotProps,paper:{...tr,style:{minWidth:Dn,...tr!=null?tr.style:null}}},children:er})]})}),p2=n=>{const{classes:r}=n,l=Oe({root:["root"]},Hh,r);return{...r,...l}},Wc={name:"MuiSelect",overridesResolver:(n,r)=>r.root,shouldForwardProp:n=>Sn(n)&&n!=="variant",slot:"Root"},m2=ae(Fc,Wc)(""),h2=ae(Bc,Wc)(""),g2=ae(Lc,Wc)(""),Vh=P.forwardRef(function(r,i){const l=Le({name:"MuiSelect",props:r}),{autoWidth:a=!1,children:c,classes:f={},className:p,defaultOpen:h=!1,displayEmpty:y=!1,IconComponent:k=JS,id:x,input:v,inputProps:b,label:C,labelId:S,MenuProps:$,multiple:_=!1,native:O=!1,onClose:E,onOpen:T,open:I,renderValue:z,SelectDisplayProps:L,variant:Q="outlined",...ne}=l,m=O?ZC:f2,j=jo(),B=Ao({props:l,muiFormControl:j,states:["variant","error"]}),U=B.variant||Q,Y={...l,variant:U,classes:f},K=p2(Y),{root:X,...te}=K,V=v||{standard:w.jsx(m2,{ownerState:Y}),outlined:w.jsx(h2,{label:C,ownerState:Y}),filled:w.jsx(g2,{ownerState:Y})}[U],q=Pt(i,Ui(V));return w.jsx(P.Fragment,{children:P.cloneElement(V,{inputComponent:m,inputProps:{children:c,error:B.error,IconComponent:k,variant:U,type:void 0,multiple:_,...O?{id:x}:{autoWidth:a,defaultOpen:h,displayEmpty:y,labelId:S,MenuProps:$,onClose:E,onOpen:T,open:I,renderValue:z,SelectDisplayProps:{id:x,...L}},...b,classes:b?Ot(te,b.classes):te,...v?v.props.inputProps:{}},...(_&&O||y)&&U==="outlined"?{notched:!0}:{},ref:q,className:Ee(V.props.className,p,K.root),...!v&&{variant:U},...ne})})});Vh.muiName="Select";function y2(n){return Ae("MuiTextField",n)}Me("MuiTextField",["root"]);const v2={standard:Fc,filled:Lc,outlined:Bc},x2=n=>{const{classes:r}=n;return Oe({root:["root"]},y2,r)},S2=ae(eC,{name:"MuiTextField",slot:"Root",overridesResolver:(n,r)=>r.root})({}),w2=P.forwardRef(function(r,i){const l=Le({props:r,name:"MuiTextField"}),{autoComplete:a,autoFocus:c=!1,children:f,className:p,color:h="primary",defaultValue:y,disabled:k=!1,error:x=!1,FormHelperTextProps:v,fullWidth:b=!1,helperText:C,id:S,InputLabelProps:$,inputProps:_,InputProps:O,inputRef:E,label:T,maxRows:I,minRows:z,multiline:L=!1,name:Q,onBlur:ne,onChange:m,onFocus:j,placeholder:B,required:U=!1,rows:Y,select:K=!1,SelectProps:X,slots:te={},slotProps:V={},type:q,value:J,variant:M="outlined",...H}=l,se={...l,autoFocus:c,color:h,disabled:k,error:x,fullWidth:b,multiline:L,required:U,select:K,variant:M},le=x2(se),de=Wi(S),ie=C&&de?`${de}-helper-text`:void 0,he=T&&de?`${de}-label`:void 0,ge=v2[M],ve={slots:te,slotProps:{input:O,inputLabel:$,htmlInput:_,formHelperText:v,select:X,...V}},ye={},_e=ve.slotProps.inputLabel;M==="outlined"&&(_e&&typeof _e.shrink<"u"&&(ye.notched=_e.shrink),ye.label=T),K&&((!X||!X.native)&&(ye.id=void 0),ye["aria-describedby"]=void 0);const[Te,Ge]=nt("input",{elementType:ge,externalForwardedProps:ve,additionalProps:ye,ownerState:se}),[Re,Ke]=nt("inputLabel",{elementType:IC,externalForwardedProps:ve,ownerState:se}),[Rt,gt]=nt("htmlInput",{elementType:"input",externalForwardedProps:ve,ownerState:se}),[at,zt]=nt("formHelperText",{elementType:oC,externalForwardedProps:ve,ownerState:se}),[ut,Ye]=nt("select",{elementType:Vh,externalForwardedProps:ve,ownerState:se}),xe=w.jsx(Te,{"aria-describedby":ie,autoComplete:a,autoFocus:c,defaultValue:y,fullWidth:b,multiline:L,name:Q,rows:Y,maxRows:I,minRows:z,type:q,value:J,id:de,inputRef:E,onBlur:ne,onChange:m,onFocus:j,placeholder:B,inputProps:gt,slots:{input:te.htmlInput?Rt:void 0},...Ge});return w.jsxs(S2,{className:Ee(le.root,p),disabled:k,error:x,fullWidth:b,ref:i,required:U,color:h,variant:M,ownerState:se,...H,children:[T!=null&&T!==""&&w.jsx(Re,{htmlFor:de,id:he,...Ke,children:T}),K?w.jsx(ut,{"aria-describedby":ie,id:de,labelId:he,value:J,input:xe,...Ye,children:f}):xe,C&&w.jsx(at,{id:ie,...zt,children:C})]})});class Lm{constructor(r){this.baseUrl=r,this.baseUrl=r.replace(/\/$/,"")}async getCorrectionData(){const r=await fetch(`${this.baseUrl}/correction-data`);if(!r.ok)throw new Error(`API error: ${r.statusText}`);return await r.json()}async submitCorrections(r){const i={corrections:r.corrections,corrected_segments:r.corrected_segments},l=await fetch(`${this.baseUrl}/complete`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(i)});if(!l.ok)throw new Error(`API error: ${l.statusText}`)}}class C2{async getCorrectionData(){throw new Error("Not supported in file-only mode")}async submitCorrections(r){throw new Error("Not supported in file-only mode")}}const zn={anchor:"#e3f2fd",corrected:"#e8f5e9",uncorrectedGap:"#fff3e0",highlighted:"#ffeb3b"},k2=Oo`
170
- 0%, 100% {
171
- opacity: 1;
172
- background-color: inherit;
173
- }
174
- 50% {
175
- opacity: 0.6;
176
- background-color: ${zn.highlighted};
177
- }
178
- `;function Wu({color:n,label:r,value:i,description:l,details:a,onClick:c}){return w.jsxs(Pr,{sx:{p:2,cursor:c?"pointer":"default","&:hover":c?{bgcolor:"action.hover"}:void 0},onClick:c,children:[w.jsxs(Ie,{sx:{display:"flex",alignItems:"center",mb:1},children:[n&&w.jsx(Ie,{sx:{width:16,height:16,borderRadius:1,bgcolor:n,mr:1}}),w.jsx(be,{variant:"subtitle2",color:"text.secondary",children:r})]}),w.jsx(be,{variant:"h6",children:i}),w.jsx(be,{variant:"caption",color:"text.secondary",children:l}),a&&w.jsx(Ie,{sx:{mt:1,pt:1,borderTop:1,borderColor:"divider"},children:a.map((f,p)=>w.jsxs(Ie,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mt:.5},children:[w.jsx(be,{variant:"caption",color:"text.secondary",children:f.label}),w.jsx(be,{variant:"caption",children:f.value})]},p))})]})}function Gh({anchorCount:n,multiSourceAnchors:r=0,singleSourceMatches:i={spotify:0,genius:0},correctedGapCount:l=0,uncorrectedGapCount:a=0,uncorrectedGaps:c=[],replacedCount:f=0,addedCount:p=0,deletedCount:h=0,onMetricClick:y}){const k=(x,v)=>v===1?`Position ${x}`:`Positions ${x}-${x+v-1}`;return w.jsxs(vn,{container:!0,spacing:2,children:[w.jsx(vn,{item:!0,xs:12,sm:6,md:4,children:w.jsx(Wu,{color:zn.anchor,label:"Anchor Sequences",value:n??"-",description:"Matched sections between transcription and reference",details:[{label:"Multi-source Matches",value:r},{label:"Spotify Only",value:i.spotify},{label:"Genius Only",value:i.genius}],onClick:y==null?void 0:y.anchor})}),w.jsx(vn,{item:!0,xs:12,sm:6,md:4,children:w.jsx(Wu,{color:zn.corrected,label:"Corrected Gaps",value:l??"-",description:"Successfully corrected sections",details:[{label:"Words Replaced",value:f},{label:"Words Added",value:p},{label:"Words Deleted",value:h}],onClick:y==null?void 0:y.corrected})}),w.jsx(vn,{item:!0,xs:12,sm:6,md:4,children:w.jsx(Wu,{color:zn.uncorrectedGap,label:"Uncorrected Gaps",value:a,description:"Sections that may need manual review",details:c.map(x=>({label:k(x.position,x.length),value:x.length})),onClick:y==null?void 0:y.uncorrected})})]})}const b2=wn(w.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"),E2=wn(w.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");function P2({open:n,content:r,onClose:i,onUpdateCorrection:l,isReadOnly:a=!0}){const[c,f]=P.useState(""),[p,h]=P.useState(!1);if(P.useEffect(()=>{(r==null?void 0:r.type)==="gap"&&(f(r.data.word),h(!1))},[r]),!r)return null;const y=()=>{console.group("DetailsModal Edit Debug"),console.log("Starting edit for content:",JSON.stringify(r,null,2)),r.type==="gap"&&(console.log("Setting edited word:",r.data.word),f(r.data.word)),console.groupEnd(),h(!0)},k=()=>{console.group("DetailsModal Save Debug"),console.log("Current content:",JSON.stringify(r,null,2)),console.log("Edited word:",c),(r==null?void 0:r.type)==="gap"&&l&&(console.log("Saving edit with new word:",c),l(r.data.position,[c])),console.groupEnd(),i()},x=()=>{r.type==="gap"&&(f(r.data.word),h(!1))},v=C=>{console.log("Word changed to:",C.target.value),f(C.target.value)},b=()=>{var C,S,$,_,O;switch(r.type){case"anchor":return w.jsxs(vn,{container:!0,spacing:2,children:[w.jsx(Mt,{title:"Text",value:`"${r.data.text}"`}),w.jsx(Mt,{title:"Words",value:r.data.words.join(" ")}),w.jsx(Mt,{title:"Position",value:r.data.position}),w.jsx(Mt,{title:"Reference Positions",value:w.jsx(Ie,{component:"pre",sx:{margin:0,fontSize:"0.875rem"},children:JSON.stringify(r.data.reference_positions,null,2)})}),w.jsx(Mt,{title:"Confidence",value:`${(r.data.confidence*100).toFixed(2)}%`}),w.jsx(Mt,{title:"Length",value:`${r.data.length} words`}),r.data.phrase_score&&w.jsxs(w.Fragment,{children:[w.jsx(Mt,{title:"Phrase Type",value:r.data.phrase_score.phrase_type}),w.jsx(Mt,{title:"Scores",value:w.jsxs(Ie,{sx:{pl:2},children:[w.jsxs(be,{children:["Total: ",((S=(C=r.data)==null?void 0:C.total_score)==null?void 0:S.toFixed(2))??"N/A"]}),w.jsxs(be,{children:["Natural Break: ",((O=(_=($=r.data)==null?void 0:$.phrase_score)==null?void 0:_.natural_break_score)==null?void 0:O.toFixed(2))??"N/A"]}),w.jsxs(be,{children:["Length: ",r.data.phrase_score.length_score.toFixed(2)]}),w.jsxs(be,{children:["Phrase: ",r.data.phrase_score.total_score.toFixed(2)]})]})})]})]});case"gap":return w.jsxs(vn,{container:!0,spacing:2,children:[w.jsx(Mt,{title:"Transcribed Text",value:`"${r.data.text}"`}),w.jsx(Mt,{title:"Current Text",value:p?w.jsxs(Ie,{children:[w.jsx(w2,{value:c,onChange:v,fullWidth:!0,label:"Edit word",variant:"outlined",size:"small"}),w.jsxs(Ie,{sx:{display:"flex",gap:1},children:[w.jsx(kr,{variant:"contained",onClick:k,children:"Save Changes"}),w.jsx(kr,{variant:"outlined",onClick:x,children:"Cancel"})]})]}):w.jsxs(Ie,{sx:{display:"flex",alignItems:"center",gap:2},children:[w.jsxs(be,{children:['"',r.data.words.map(E=>{const T=r.data.corrections.find(I=>I.original_word===E);return T?T.corrected_word:E}).join(" "),'"']}),!a&&w.jsx(kr,{variant:"outlined",size:"small",onClick:y,children:"Edit"})]})}),w.jsx(Mt,{title:"Position",value:r.data.position}),w.jsx(Mt,{title:"Length",value:`${r.data.length} words`}),r.data.corrections.length>0&&w.jsx(Mt,{title:"Corrections",value:w.jsx(Ie,{sx:{pl:2},children:r.data.corrections.map((E,T)=>w.jsxs(Ie,{sx:{mb:2},children:[w.jsxs(be,{children:['"',E.original_word,'" → "',E.corrected_word,'"']}),w.jsxs(be,{children:["Confidence: ",(E.confidence*100).toFixed(2),"%"]}),w.jsxs(be,{children:["Source: ",E.source]}),w.jsxs(be,{children:["Reason: ",E.reason]}),Object.keys(E.alternatives).length>0&&w.jsxs(be,{component:"pre",sx:{fontSize:"0.875rem"},children:["Alternatives: ",JSON.stringify(E.alternatives,null,2)]})]},T))})}),w.jsx(Mt,{title:"Reference Words",value:w.jsx(Ie,{component:"pre",sx:{margin:0,fontSize:"0.875rem"},children:JSON.stringify(r.data.reference_words,null,2)})}),r.data.preceding_anchor&&w.jsx(Mt,{title:"Preceding Anchor",value:`"${r.data.preceding_anchor.text}"`}),r.data.following_anchor&&w.jsx(Mt,{title:"Following Anchor",value:`"${r.data.following_anchor.text}"`})]});default:return null}};return w.jsxs(Lw,{open:n,onClose:i,maxWidth:"sm",fullWidth:!0,PaperProps:{sx:{position:"relative"}},children:[w.jsx(Ah,{onClick:i,sx:{position:"absolute",right:8,top:8},children:w.jsx(E2,{})}),w.jsxs(Kw,{children:[r.type.charAt(0).toUpperCase()+r.type.slice(1)," Details"]}),w.jsx(Hw,{dividers:!0,children:b()})]})}function Mt({title:n,value:r}){return w.jsxs(w.Fragment,{children:[w.jsx(vn,{item:!0,xs:4,children:w.jsx(be,{variant:"subtitle1",fontWeight:"bold",children:n})}),w.jsx(vn,{item:!0,xs:8,children:typeof r=="string"||typeof r=="number"?w.jsx(be,{children:r}):r})]})}const Kh=x1("span")(({shouldFlash:n})=>({display:"inline-block",marginRight:"0.25em",transition:"background-color 0.2s ease",...n&&{animation:`${k2} 0.4s ease-in-out 3`}})),Uu=n=>n.toLowerCase().replace(/[.,!?']/g,"");function R2({referenceTexts:n,anchors:r,gaps:i,onElementClick:l,onWordClick:a,flashingType:c,corrected_segments:f,highlightedWordIndex:p,currentSource:h,onSourceChange:y,onDebugInfoUpdate:k}){const x=P.useRef([]),{newlineIndices:v}=P.useMemo(()=>(x.current=f.map(S=>({segment:S.text.trim(),lastWord:"",normalizedLastWord:"",overlappingAnchors:[],matchingGap:null,debugLog:[]})),{newlineIndices:new Set(f.slice(0,-1).map((S,$)=>{var Q,ne;const _=S.text.trim(),O=_.split(/\s+/),E=O[O.length-1],T=Uu(E);(Q=x.current[$].debugLog)==null||Q.push(`Processing segment: "${_}"
179
- Words: ${O.join("|")}
180
- Last word: "${E}"
181
- Normalized last word: "${T}"`);const z=f.slice(0,$).reduce((m,j)=>m+j.text.trim().split(/\s+/).length,0)+O.length-1,L=r.find(m=>{var Y;const j=m.transcription_position,B=j+m.length-1,U=z>=j&&z<=B;return(Y=x.current[$].debugLog)==null||Y.push(`Checking anchor: "${m.text}"
182
- Position range: ${j}-${B}
183
- Last word position: ${z}
184
- Is in range: ${U}
185
- Words: ${m.words.join("|")}`),U});if((L==null?void 0:L.reference_positions[h])!==void 0){const m=L.words,j=m.findIndex(B=>{var K;const U=Uu(B),Y=U===T;return(K=x.current[$].debugLog)==null||K.push(`Comparing words:
186
- Anchor word: "${B}" (normalized: "${U}")
187
- Segment word: "${E}" (normalized: "${T}")
188
- Matches: ${Y}`),Y});if(j!==-1){const B=L.reference_positions[h]+j;return(ne=x.current[$].debugLog)==null||ne.push(`Found match:
189
- Word index in anchor: ${j}
190
- Reference position: ${L.reference_positions[h]}
191
- Final position: ${B}`),x.current[$]={...x.current[$],lastWord:E,normalizedLastWord:T,overlappingAnchors:[{text:L.text,range:[L.transcription_position,L.transcription_position+L.length-1],words:m,hasMatchingWord:!0}],wordPositionDebug:{anchorWords:m,wordIndex:j,referencePosition:L.reference_positions[h],finalPosition:B,normalizedWords:{anchor:Uu(m[j]),segment:T}}},B}}return null}).filter(S=>S!==null&&S>=0))}),[f,r,h]);P.useEffect(()=>{k==null||k(x.current)},[k]);const b=()=>{const C=[],S=n[h].split(/\s+/);let $=0;return S.forEach((_,O)=>{const E=$,T=r.find(z=>{const L=z.reference_positions[h];return L===void 0?!1:E>=L&&E<L+z.length}),I=i.find(z=>{var ne;if(!z.corrections.length)return!1;const L=z.corrections[0],Q=(ne=L.reference_positions)==null?void 0:ne[h];return Q===void 0?!1:E>=Q&&E<Q+L.length});C.push(w.jsx(Kh,{shouldFlash:c==="word"&&p===E,style:{backgroundColor:c==="word"&&p===E?zn.highlighted:T?zn.anchor:I?zn.corrected:"transparent",padding:T||I?"2px 4px":"0",borderRadius:"3px",cursor:"pointer"},onClick:z=>{z.detail===1&&setTimeout(()=>{z.defaultPrevented||a==null||a({wordIndex:E,type:T?"anchor":I?"gap":"other",anchor:T,gap:I})},200)},onDoubleClick:z=>{z.preventDefault(),T?l({type:"anchor",data:{...T,position:E}}):I&&l({type:"gap",data:{...I,position:E,word:_}})},children:_},`${_}-${O}`)),v.has(E)?C.push(w.jsx("br",{},`br-${O}`)):C.push(" "),$++}),C};return w.jsxs(Pr,{sx:{p:2},children:[w.jsxs(Ie,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[w.jsx(be,{variant:"h6",children:"Reference Text"}),w.jsxs(Ie,{children:[w.jsx(kr,{size:"small",variant:h==="genius"?"contained":"outlined",onClick:()=>y("genius"),sx:{mr:1},children:"Genius"}),w.jsx(kr,{size:"small",variant:h==="spotify"?"contained":"outlined",onClick:()=>y("spotify"),children:"Spotify"})]})]}),w.jsx(be,{component:"pre",sx:{fontFamily:"monospace",whiteSpace:"pre-wrap",margin:0,lineHeight:1.5},children:b()})]})}function T2({data:n,onElementClick:r,onWordClick:i,flashingType:l,highlightInfo:a}){const c=()=>{const p=n.corrected_text.replace(/\n\n+/g,`
192
- `).split(/(\s+)/);let h=0;const y=new Map;return n.gap_sequences.forEach(k=>{k.corrections.forEach(x=>{y.set(x.original_position,{original:x.original_word,corrected:x.corrected_word,is_deletion:x.is_deletion,split_total:x.split_total})})}),p.map((k,x)=>{if(/^\s+$/.test(k))return k;const v=h,b=n.anchor_sequences.find(O=>{const E=O.transcription_position,T=E+O.length;return v>=E&&v<T}),C=n.gap_sequences.find(O=>{const E=O.transcription_position,T=E+O.length;return v>=E&&v<T}),S=C?C.corrections.length>0:!1,$=!!(l==="anchor"&&b||l==="corrected"&&S||l==="uncorrected"&&C&&!S||l==="word"&&(a==null?void 0:a.type)==="anchor"&&b&&b.transcription_position===a.transcriptionIndex&&v>=b.transcription_position&&v<b.transcription_position+b.length),_=w.jsx(Kh,{shouldFlash:$,style:{backgroundColor:b?zn.anchor:S?zn.corrected:C?zn.uncorrectedGap:"transparent",padding:b||C?"2px 4px":"0",borderRadius:"3px",cursor:"pointer"},onClick:O=>{O.detail===1&&setTimeout(()=>{O.defaultPrevented||i==null||i({wordIndex:v,type:b?"anchor":C?"gap":"other",anchor:b,gap:C})},200)},onDoubleClick:O=>{O.preventDefault(),b?r({type:"anchor",data:{...b,position:v}}):C&&r({type:"gap",data:{...C,position:v,word:k}})},children:k},`${k}-${x}-${$}`);return h++,_})};return w.jsxs(Pr,{sx:{p:2},children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"Corrected Transcription"}),w.jsx(be,{component:"pre",sx:{fontFamily:"monospace",whiteSpace:"pre-wrap",margin:0,lineHeight:1.5},children:c()})]})}const $2=wn(w.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),I2=wn(w.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}),"ExpandMore");function _2({data:n,currentSource:r,anchorMatchInfo:i}){const l=P.useRef(null),[a,c]=P.useState(!1),{newlineInfo:f,newlineIndices:p}=P.useMemo(()=>{const v=new Map,b=new Set(n.corrected_segments.slice(0,-1).map((C,S)=>{const $=C.text.trim().split(/\s+/),_=$[$.length-1],O=n.anchor_sequences.find(z=>{const L=z.transcription_position,Q=L+z.length-1,ne=n.corrected_segments.slice(0,S).reduce((m,j)=>m+j.text.trim().split(/\s+/).length,0)+$.length-1;return ne>=L&&ne<=Q});if(!O)return console.warn(`Could not find anchor for segment end: "${C.text.trim()}"`),null;const E=O.reference_positions[r];if(E===void 0)return null;const T=O.words.indexOf(_),I=E+T;return v.set(I,C.text.trim()),I}).filter(C=>C!==null));return{newlineInfo:v,newlineIndices:b}},[n.corrected_segments,n.anchor_sequences,r]),h=P.useMemo(()=>n.corrected_segments.slice(0,5).map((v,b)=>{const C=v.text.trim().split(/\s+/),S=n.corrected_segments.slice(0,b).reduce((O,E)=>O+E.text.trim().split(/\s+/).length,0),$=S+C.length-1,_=n.anchor_sequences.find(O=>{const E=O.transcription_position,T=E+O.length;return $>=E&&$<T});return{segment:v,segmentWords:C,previousWords:S,lastWordPosition:$,matchingAnchor:_}}),[n.corrected_segments,n.anchor_sequences]),y=P.useMemo(()=>n.anchor_sequences.filter(v=>v.transcription_position<50),[n.anchor_sequences]),k=P.useMemo(()=>n.gap_sequences.filter(v=>v.transcription_position<50),[n.gap_sequences]),x=v=>{v.stopPropagation(),c(!0),setTimeout(()=>{if(l.current){const b=l.current.innerText;navigator.clipboard.writeText(b),c(!1)}},100)};return w.jsx(Ie,{sx:{mb:3},children:w.jsxs(Bx,{expanded:a,onChange:(v,b)=>c(b),children:[w.jsxs(dS,{expandIcon:w.jsx(I2,{}),sx:{"& .MuiAccordionSummary-content":{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"}},children:[w.jsx(be,{children:"Debug Information"}),w.jsx(Ie,{onClick:v=>v.stopPropagation(),sx:{display:"flex",alignItems:"center",mr:2},children:w.jsxs(be,{component:"span",variant:"body2",sx:{display:"flex",alignItems:"center",cursor:"pointer","&:hover":{opacity:.7}},onClick:x,children:[w.jsx($2,{sx:{mr:.5,fontSize:"1rem"}}),"Copy All"]})})]}),w.jsx(Vx,{children:w.jsxs(Ie,{ref:l,sx:{display:"flex",flexDirection:"column",gap:2},children:[w.jsxs(Ie,{children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"Debug Logs (first 5 segments)"}),w.jsx(be,{component:"pre",sx:{fontSize:"0.75rem",whiteSpace:"pre-wrap",backgroundColor:"#f5f5f5",padding:2,borderRadius:1},children:i.slice(0,5).map((v,b)=>`Segment ${b+1}: "${v.segment}"
193
- `+(v.debugLog?v.debugLog.map(C=>` ${C}`).join(`
194
- `):` No debug logs
195
- `)).join(`
196
- `)})]}),w.jsxs(Ie,{children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"First 5 Segments (with position details)"}),w.jsx(be,{component:"pre",sx:{fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:h.map(({segment:v,segmentWords:b,previousWords:C,lastWordPosition:S,matchingAnchor:$},_)=>`Segment ${_+1}: "${v.text.trim()}"
197
- Words: ${v.words.length} (${b.length} after trimming)
198
- Word count before segment: ${C}
199
- Last word position: ${S}
200
- Matching anchor: ${$?`"${$.text}"
201
- Position: ${$.transcription_position}
202
- Length: ${$.length}
203
- Reference positions: genius=${$.reference_positions.genius}, spotify=${$.reference_positions.spotify}`:"None"}
204
- `).join(`
205
- `)})]}),w.jsxs(Ie,{children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"Relevant Anchors"}),w.jsx(be,{component:"pre",sx:{fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:y.map((v,b)=>`Anchor ${b}: "${v.text}"
206
- Position: ${v.transcription_position}
207
- Length: ${v.length}
208
- Words: ${v.words.join(" ")}
209
- Reference Positions: genius=${v.reference_positions.genius}, spotify=${v.reference_positions.spotify}
210
- `).join(`
211
- `)})]}),w.jsxs(Ie,{children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"Relevant Gaps"}),w.jsx(be,{component:"pre",sx:{fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:k.map((v,b)=>`Gap ${b}: "${v.text}"
212
- Position: ${v.transcription_position}
213
- Length: ${v.length}
214
- Words: ${v.words.join(" ")}
215
- Corrections: ${v.corrections.length}
216
- `).join(`
217
- `)})]}),w.jsxs(Ie,{children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"First 5 Newlines (with detailed anchor matching)"}),w.jsx(be,{component:"pre",sx:{fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:Array.from(p).sort((v,b)=>v-b).slice(0,5).map(v=>{const b=n.anchor_sequences.find(E=>{const T=E.reference_positions[r],I=T+E.length;return v>=T&&v<I}),C=n.corrected_segments.find(E=>f.get(v)===E.text.trim()),S=C?n.corrected_segments.indexOf(C):-1,$=C==null?void 0:C.text.trim().split(/\s+/).pop(),_=(b==null?void 0:b.words.indexOf($??""))??-1,O=b&&_!==-1?b.reference_positions[r]+_:"Unknown";return`Position ${v}: "${f.get(v)}"
218
- In Anchor: ${b?`"${b.text}"`:"None"}
219
- Anchor Position: ${b==null?void 0:b.reference_positions[r]}
220
- Matching Segment Index: ${S}
221
- Expected Position in Reference: ${O}
222
- `}).join(`
223
- `)})]}),w.jsxs(Ie,{children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"Anchor Matching Debug (first 5 segments)"}),w.jsx(be,{component:"pre",sx:{fontSize:"0.75rem",whiteSpace:"pre-wrap"},children:i.slice(0,5).map((v,b)=>`
224
- Segment ${b}: "${v.segment}"
225
- Last word: "${v.lastWord}" (normalized: "${v.normalizedLastWord}")
226
- Debug Log:
227
- ${v.debugLog?v.debugLog.map(C=>` ${C}`).join(`
228
- `):" none"}
229
- Overlapping anchors:
230
- ${v.overlappingAnchors.map(C=>` "${C.text}"
231
- Range: ${C.range[0]}-${C.range[1]}
232
- Words: ${C.words.join(", ")}
233
- Has matching word: ${C.hasMatchingWord}
234
- `).join(`
235
- `)}
236
- Word Position Debug: ${v.wordPositionDebug?`
237
- Anchor words: ${v.wordPositionDebug.anchorWords.join(", ")}
238
- Word index in anchor: ${v.wordPositionDebug.wordIndex}
239
- Reference position: ${v.wordPositionDebug.referencePosition}
240
- Final position: ${v.wordPositionDebug.finalPosition}`:"none"}
241
- `).join(`
242
- `)})]})]})})]})})}function Fm(n){const r=JSON.parse(JSON.stringify(n)),i=l=>{for(const a in l){const c=l[a];if(typeof c=="number"){let f;Number.isInteger(c)?f=c.toFixed(1):f=c.toString(),l[a]=parseFloat(f)}else typeof c=="object"&&c!==null&&i(c)}};return i(r),r}function M2({data:n,onFileLoad:r,apiClient:i,isReadOnly:l}){const[a,c]=P.useState(null),[f,p]=P.useState(null),[h,y]=P.useState(null),[k,x]=P.useState("genius"),[v,b]=P.useState([]),[C,S]=P.useState(new Map),[$,_]=P.useState(!1),[O,E]=P.useState(n),T=Gr(),I=kC(T.breakpoints.down("md")),z=P.useCallback((m,j)=>{p(null),y(null),requestAnimationFrame(()=>{requestAnimationFrame(()=>{p(m),j&&y(j),setTimeout(()=>{p(null),y(null)},1200)})})},[]),L=P.useCallback(m=>{if(console.group("Word Click Debug Info"),console.log("Clicked word info:",JSON.stringify(m,null,2)),m.type==="gap"&&m.gap){console.log("Gap sequence:",JSON.stringify(m.gap,null,2));const j={type:"gap",data:{...m.gap,position:m.gap.transcription_position+(m.wordIndex-m.gap.transcription_position),word:m.gap.words[m.wordIndex-m.gap.transcription_position]}};c(j),console.log("Set modal content:",JSON.stringify(j,null,2))}console.groupEnd()},[]),Q=P.useCallback((m,j)=>{console.group("handleUpdateCorrection Debug"),console.log("Position:",m),console.log("Updated words:",j);const B=JSON.parse(JSON.stringify(O)),U=B.gap_sequences.findIndex(Y=>m>=Y.transcription_position&&m<Y.transcription_position+Y.words.length);if(U!==-1){const Y=B.gap_sequences[U],K=m-Y.transcription_position;console.log("Found gap at index:",U,"word index in gap:",K),S(J=>{const M=new Map(J);return M.set(m,j),M});const X={original_word:Y.words[K],corrected_word:j.join(" "),segment_index:0,original_position:m,source:"manual",confidence:1,reason:"Manual correction during review",alternatives:{},is_deletion:!1,length:j.length,reference_positions:{}};let te=0,V=-1,q=-1;for(let J=0;J<B.corrected_segments.length;J++){const M=B.corrected_segments[J];if(m>=te&&m<te+M.words.length){V=J,q=m-te;break}te+=M.words.length}if(console.log("Segment search:",{position:m,segmentIndex:V,wordIndex:q,totalSegments:B.corrected_segments.length}),V!==-1&&q!==-1){const J=B.corrected_segments[V],M=J.words[q];if(console.log("Found matching segment:",{text:J.text,wordCount:J.words.length,wordIndex:q,word:M==null?void 0:M.text}),!M){console.error("Could not find timing word in segment"),console.groupEnd();return}const H=[...Y.words];H[K]=j[0],B.gap_sequences[U]={...Y,words:H,text:H.join(" "),corrections:Y.corrections.filter(le=>le.source!=="manual").concat([X])};const se=[...J.words];se[q]={...M,text:j[0],confidence:1},B.corrected_segments[V]={...J,words:se,text:se.map(le=>le.text).join(" ")},console.log("Updated both gap and segment")}else console.error("Could not find matching segment for position:",m)}B.corrected_text=B.corrected_segments.map(Y=>Y.text).join(`
243
- `),E(B),console.groupEnd()},[O]),ne=P.useCallback(async()=>{if(!i)return;let m;if(C.size>0){console.log("Manual corrections found:",Array.from(C.entries()));const j=JSON.parse(JSON.stringify(O));if(console.log("Deep cloned data:",JSON.stringify(j,null,2)),j.gap_sequences=j.gap_sequences.map(B=>{const U=C.get(B.transcription_position);return U?{...B,words:U,text:U.join(" "),corrections:[...B.corrections,{original_word:B.text,corrected_word:U.join(" "),segment_index:0,original_position:B.transcription_position,source:"manual",confidence:1,reason:"Manual correction during review",alternatives:{},is_deletion:!1,length:U.length,reference_positions:{}}]}:B}),C.size>0){const B=j.corrected_text.split(`
244
- `);let U=0;const Y=B.map(K=>{const X=K.trim().split(/\s+/),te=X.length;let V=!1;for(const[q,J]of C.entries())if(q>=U&&q<U+te){const M=q-U,H=j.gap_sequences.find(se=>se.transcription_position===q);H&&(X.splice(M,H.length,...J),V=!0)}return U+=te,V?X.join(" "):K});j.corrected_text=Y.join(`
245
- `)}m=Fm(j),console.log("Submitting data with manual corrections:",m)}else console.log("Original data:",n),console.log("No manual corrections, submitting original data"),m=Fm(n);console.log("Data being sent to API:",m),await i.submitCorrections(m),_(!0)},[i,n,C]);return w.jsxs(Ie,{children:[l&&w.jsxs(Ie,{sx:{display:"flex",alignItems:"center",mb:2,color:"text.secondary"},children:[w.jsx(b2,{sx:{mr:1}}),w.jsx(be,{variant:"body2",children:"View Only Mode"})]}),w.jsxs(Ie,{sx:{display:"flex",flexDirection:I?"column":"row",gap:2,justifyContent:"space-between",alignItems:I?"stretch":"center",mb:3},children:[w.jsx(be,{variant:"h4",sx:{fontSize:I?"1.75rem":"2.125rem"},children:"Lyrics Correction Review"}),l&&w.jsx(kr,{variant:"outlined",startIcon:w.jsx(Th,{}),onClick:r,fullWidth:I,children:"Load File"})]}),w.jsx(Ie,{sx:{mb:3},children:w.jsx(Gh,{anchorCount:O.metadata.anchor_sequences_count,multiSourceAnchors:O.anchor_sequences.filter(m=>Object.keys(m.reference_positions).length>1).length,singleSourceMatches:{spotify:O.anchor_sequences.filter(m=>Object.keys(m.reference_positions).length===1&&"spotify"in m.reference_positions).length,genius:O.anchor_sequences.filter(m=>Object.keys(m.reference_positions).length===1&&"genius"in m.reference_positions).length},correctedGapCount:O.gap_sequences.filter(m=>{var j;return((j=m.corrections)==null?void 0:j.length)>0}).length,uncorrectedGapCount:O.gap_sequences.filter(m=>{var j;return!((j=m.corrections)!=null&&j.length)}).length,uncorrectedGaps:O.gap_sequences.filter(m=>{var j;return!((j=m.corrections)!=null&&j.length)}).map(m=>({position:m.transcription_position,length:m.length})),replacedCount:O.gap_sequences.reduce((m,j)=>{var B;return m+(((B=j.corrections)==null?void 0:B.filter(U=>!U.is_deletion&&!U.split_total).length)??0)},0),addedCount:O.gap_sequences.reduce((m,j)=>{var B;return m+(((B=j.corrections)==null?void 0:B.filter(U=>U.split_total).length)??0)},0),deletedCount:O.gap_sequences.reduce((m,j)=>{var B;return m+(((B=j.corrections)==null?void 0:B.filter(U=>U.is_deletion).length)??0)},0),onMetricClick:{anchor:()=>z("anchor"),corrected:()=>z("corrected"),uncorrected:()=>z("uncorrected")}})}),w.jsx(_2,{data:O,currentSource:k,anchorMatchInfo:v}),w.jsxs(vn,{container:!0,spacing:2,direction:I?"column":"row",children:[w.jsx(vn,{item:!0,xs:12,md:6,children:w.jsx(T2,{data:O,onElementClick:c,onWordClick:L,flashingType:f,highlightInfo:h})}),w.jsx(vn,{item:!0,xs:12,md:6,children:w.jsx(R2,{referenceTexts:O.reference_texts,anchors:O.anchor_sequences,gaps:O.gap_sequences,onElementClick:c,onWordClick:L,flashingType:f,corrected_segments:O.corrected_segments,currentSource:k,onSourceChange:x,onDebugInfoUpdate:b})})]}),w.jsx(P2,{open:a!==null,content:a,onClose:()=>c(null),onUpdateCorrection:Q,isReadOnly:l}),!l&&i&&w.jsx(Ie,{sx:{mt:2},children:w.jsx(kr,{variant:"contained",onClick:ne,disabled:$,children:$?"Review Complete":"Finish Review"})})]})}function N2(){const[n,r]=P.useState(null),[i,l]=P.useState(!1),[a,c]=P.useState(null),[f,p]=P.useState(null),[h,y]=P.useState(!0);P.useEffect(()=>{const C=new URLSearchParams(window.location.search).get("baseApiUrl");if(C){const S=decodeURIComponent(C);p(new Lm(S)),y(!1),k(S)}else p(new C2),y(!0)},[]);const k=async b=>{try{const S=await new Lm(b).getCorrectionData();console.log("Fetched data:",S),r(S)}catch(C){c(`Failed to fetch data: ${C.message}`)}},x=async()=>{const b=document.createElement("input");b.type="file",b.accept=".json",b.onchange=async C=>{var $;const S=($=C.target.files)==null?void 0:$[0];if(S)try{const _=await S.text();console.log("File contents:",_.slice(0,500)+"...");const O=JSON.parse(_);console.log("Parsed file data:",O),r(O)}catch(_){c(`Error loading file: ${_.message}. Please make sure it is a valid JSON file.`)}},b.click()},v=()=>n?w.jsx(zc,{open:i,onClose:()=>l(!1),"aria-labelledby":"metadata-modal",children:w.jsxs(Ie,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",width:400,bgcolor:"background.paper",boxShadow:24,p:4,borderRadius:1},children:[w.jsx(be,{variant:"h6",gutterBottom:!0,children:"Correction Process Details"}),w.jsxs(Ie,{sx:{mb:2},children:[w.jsx(be,{variant:"subtitle2",color:"text.secondary",children:"Total Words"}),w.jsx(be,{children:n.metadata.total_words})]}),w.jsxs(Ie,{sx:{mb:2},children:[w.jsx(be,{variant:"subtitle2",color:"text.secondary",children:"Gap Sequences"}),w.jsx(be,{children:n.metadata.gap_sequences_count})]}),w.jsxs(Ie,{sx:{mb:2},children:[w.jsx(be,{variant:"subtitle2",color:"text.secondary",children:"Corrections Made"}),w.jsx(be,{children:n.corrections_made})]}),w.jsxs(Ie,{sx:{mb:2},children:[w.jsx(be,{variant:"subtitle2",color:"text.secondary",children:"Correction Ratio"}),w.jsxs(be,{children:[(n.metadata.correction_ratio*100).toFixed(1),"%"]})]})]})}):null;return n?w.jsxs(Ie,{sx:{p:3},children:[a&&w.jsx(ul,{severity:"error",sx:{mb:2},onClose:()=>c(null),children:a}),h&&w.jsx(ul,{severity:"info",sx:{mb:2},children:"Running in read-only mode. Connect to an API to enable editing."}),w.jsx(M2,{data:n,onFileLoad:x,onShowMetadata:()=>l(!0),apiClient:f,isReadOnly:h}),v()]}):w.jsxs(Ie,{sx:{p:3},children:[a&&w.jsx(ul,{severity:"error",sx:{mb:2},onClose:()=>c(null),children:a}),h?w.jsxs(w.Fragment,{children:[w.jsx(ul,{severity:"info",sx:{mb:2},children:"Running in read-only mode. Connect to an API to enable editing."}),w.jsxs(Ie,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[w.jsx(be,{variant:"h4",children:"Lyrics Correction Review"}),w.jsx(kr,{variant:"outlined",startIcon:w.jsx(Th,{}),onClick:x,children:"Load File"})]}),w.jsx(Ie,{sx:{mb:3},children:w.jsx(Gh,{})})]}):w.jsx(Ie,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"50vh"},children:w.jsx(be,{variant:"h6",color:"text.secondary",children:"Loading Lyrics Correction Review..."})})]})}Jy.createRoot(document.getElementById("root")).render(w.jsx(N2,{}));